(function(f){var g=window.AmazonUIPageJS||window.P,l=g._namespace||g.attributeErrors,e=l?l("AmazonUIPromise","AmazonUI"):g;e.guardFatal?e.guardFatal(f)(e,window):e.execute(function(){f(e,window)})})(function(f,g,l){f.register("3p-promise",function(){function e(){}function f(a,b){return function(){a.apply(b,arguments)}}function d(a){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof a)throw new TypeError("not a function");this._state=0;this._handled=
!1;this._value=l;this._deferreds=[];q(a,this)}function r(a,b){for(;3===a._state;)a=a._value;0===a._state?a._deferreds.push(b):(a._handled=!0,m(function(){var c=1===a._state?b.onFulfilled:b.onRejected;if(null===c)(1===a._state?n:k)(b.promise,a._value);else{try{var h=c(a._value)}catch(u){k(b.promise,u);return}n(b.promise,h)}}))}function n(a,b){try{if(b===a)throw new TypeError("A promise cannot be resolved with itself.");if(b&&("object"===typeof b||"function"===typeof b)){var c=b.then;if(b instanceof
d){a._state=3;a._value=b;p(a);return}if("function"===typeof c){q(f(c,b),a);return}}a._state=1;a._value=b;p(a)}catch(h){k(a,h)}}function k(a,b){a._state=2;a._value=b;p(a)}function p(a){2===a._state&&0===a._deferreds.length&&m(function(){a._handled||t(a._value)});for(var b=0,c=a._deferreds.length;b<c;b++)r(a,a._deferreds[b]);a._deferreds=null}function v(a,b,c){this.onFulfilled="function"===typeof a?a:null;this.onRejected="function"===typeof b?b:null;this.promise=c}function q(a,b){var c=!1;try{a(function(a){c||
(c=!0,n(b,a))},function(a){c||(c=!0,k(b,a))})}catch(h){c||(c=!0,k(b,h))}}if("function"===typeof g.Promise)return g.Promise;var w=setTimeout,m="function"===typeof setImmediate&&setImmediate||function(a){w(a,0)},t=function(a){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",a)};d.prototype["catch"]=function(a){return this.then(null,a)};d.prototype.then=function(a,b){var c=new this.constructor(e);r(this,new v(a,b,c));return c};d.all=function(a){var b=Array.prototype.slice.call(a);
return new d(function(a,d){function c(e,f){try{if(f&&("object"===typeof f||"function"===typeof f)){var g=f.then;if("function"===typeof g){g.call(f,function(a){c(e,a)},d);return}}b[e]=f;0===--h&&a(b)}catch(x){d(x)}}if(0===b.length)return a([]);for(var h=b.length,e=0;e<b.length;e++)c(e,b[e])})};d.resolve=function(a){return a&&"object"===typeof a&&a.constructor===d?a:new d(function(b){b(a)})};d.reject=function(a){return new d(function(b,c){c(a)})};d.race=function(a){return new d(function(b,c){for(var d=
0,e=a.length;d<e;d++)a[d].then(b,c)})};d._setImmediateFn=function(a){m=a};d._setUnhandledRejectionFn=function(a){t=a};return d})});
/* ******** */
(function(n){var m=window.AmazonUIPageJS||window.P,q=m._namespace||m.attributeErrors,b=q?q("AmazonUIBaseJS@base","AmazonUI"):m;b.guardFatal?b.guardFatal(n)(b,window):b.execute(function(){n(b,window)})})(function(n,m,q){"use strict";n.register("a-polyfill",function(){});"use strict";n.when("jQuery").register("a-base",function(b){return{version:function(){return"3.0"},$:b}});"use strict";n.declare("prv:a-declarative-analytics",{notify:function(){},setOptions:function(){}});"use strict";n.register("prv:a-guard",
function(){function b(b,d){return b._guard&&"function"===typeof d?b._guard(d):d}return{fn:b,guardTimeFn:function(b,d){return b._guardTime&&"function"===typeof d?b._guardTime(d):d},obj:function(l,d){if(!l._guard)return d;var k={},h;for(h in d)d.hasOwnProperty(h)&&(k[h]=b(l,d[h]));return k}}});"use strict";n.declare("a-timing-analytics",{startWidgetLogging:function(){},stopWidgetLogging:function(){}});"use strict";n.declare("a-event-analytics",{handle:function(){},notifyDeclarativeAction:function(){},
notifyJquery:function(){}});"use strict";n.register("priv:a-visibility",function(){function b(b){for(var d=["hidden","webkitHidden","mozHidden","msHidden","oHidden"],k=0;k<d.length;k+=1)if(d[k]in b)return d[k]}return function(l){var d=b(l);return d?function(){return l[d]}:function(){return!1}}});"use strict";n.register("prv:a-private-util",function(){try{var b=navigator.userAgent}catch(l){b=""}return{ua:b,safeFeatureTest:function(b){try{return b()}catch(d){return!1}}}});"use strict";n.when("priv:a-visibility",
"prv:a-guard","prv:a-private-util").register("a-util",function(b,l,d){function k(b){if(h(b))return[b];if(b.jQuery)return b.get();var a=Object.prototype.toString.call(b);return"[object String]"===a?Array.prototype.slice.call(document.querySelectorAll(b)):"[object Array]"===a?b.filter(b,h):"object"===typeof b&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(a)&&"number"===typeof b.length&&(0===b.length||"object"===typeof b[0]&&0<b[0].nodeType)?Array.prototype.slice.call(b):[]}function h(b){return b instanceof
Element||b instanceof HTMLDocument}var e=d.ua;b={now:Date.now,isPageHidden:b(document)};d=[function(b){return{each:function(a,g,c){if(null!==a)if(Array.prototype.forEach&&a.forEach===Array.prototype.forEach)a.forEach(g,c);else if(a.length===+a.length)for(var f=0,b=a.length;f<b;f++)f in a&&g.call(c,a[f],f,a);else for(f in a)a.hasOwnProperty(f)&&g.call(c,a[f],f,a)},map:function(a,g,c){var f=[];if(null===a)return f;if(Array.prototype.map&&a.map===Array.prototype.map)return a.map(g,c);b.each(a,function(a,
b,e){f[f.length]=g.call(c,a,b,e)});a.length===+a.length&&(f.length=a.length);return f},reduce:function(a,g,c,f){var v=2<arguments.length;null===a&&(a=[]);if(Array.prototype.reduce&&a.reduce===Array.prototype.reduce)return v?a.reduce(g,c):a.reduce(g);b.each(a,function(a,b,e){v?c=g.call(f,c,a,b,e):(c=a,v=!0)});v||n.error("Reduce of empty array with no initial value","A.util","reduce");return c},filter:function(a,g,c){var f=[];if(null===a)return f;if(Array.prototype.filter&&a.filter===Array.prototype.filter)return a.filter(g,
c||a);b.each(a,function(b,e,d){g.call(c||a,b,e,d)&&f.push(b)});return f},range:function(a,g,c){g===q&&(g=a||0,a=0);c=c||1;g=Math.max(Math.ceil((g-a)/c),0);for(var f=Array(g),b=0;b<g;b++,a+=c)f[b]=a;return f},breaker:{}}},function(b){return{throttle:function(a,g,c){var f,v,e,d=l.fn(this,a),h=null,t=0;c=c||{};var x=function(){t=!1===c.leading?0:b.now();h=null;e=d.apply(f,v);f=v=null};return function(){var d=b.now();t||!1!==c.leading||(t=d);var A=g-(d-t);f=this;v=arguments;0>=A?(clearTimeout(h),h=null,
t=d,e=a.apply(f,v),f=v=null):h||!1===c.trailing||(h=setTimeout(x,A));return e}},sequence:function(){var a=[].slice,g=a.call(arguments).reverse(),c=this;return b.reduce(g,function(f,b){return function(){var g=a.call(arguments);g.push(f);b.apply(c,g)}},function(){})},debounce:function(a,g,c){var f,v,e,d,h,t=l.fn(this,a),x=function(){var a=b.now()-d;a<g?f=setTimeout(x,g-a):(f=null,c||(h=t.apply(e,v),e=v=null))};return function(){e=this;v=arguments;d=b.now();var t=c&&!f;f||(f=setTimeout(x,g));t&&(h=a.apply(e,
v),e=v=null);return h}},delay:function(a,g){var c=this,f=l.fn(this,function(){return l.guardTimeFn(c,a).apply(this,arguments)}),b=Array.prototype.slice.call(arguments,2);return setTimeout(function(){return f.apply(null,b)},g)},animationFrameDelay:function(a){return this.delay(a,16)},interval:function(a,b){var c=this,f=l.fn(this,function(){return l.guardTimeFn(c,a).apply(this,arguments)});return setInterval(f,b)},once:function(a){var b=!1,c=l.fn(this,a),f;return function(){b||(b=!0,f=c.apply(this,
arguments));return f}},rest:function(a,b){if(a){var c=Math.max(b===q?a.length-1:b,0);return function(){for(var b=arguments,g=-1,e=Math.max(b.length-c,0),d=Array(e);++g<e;)d[g]=b[g+c];switch(c){case 0:return a.call(this,d);case 1:return a.call(this,b[0],d);case 2:return a.call(this,b[0],b[1],d)}e=Array(c+1);for(g=-1;++g<c;)e[g]=b[g];e[c]=d;return a.apply(this,e)}}},parseFunctionName:function(a){return a.name?"anonymous"===a.name?"":a.name:(a=a.toString().match(/^function\s*([^\s(]+)/))?a[1]:""}}},
function(b){function a(c){var b;"object"!==typeof c&&"function"!==typeof c&&(c={});for(var g=1;g<arguments.length;g++){var f=arguments[g];if(null!=f)for(var e in f){var x=f[e];if(c!==x&&x!==q){var t=c[e];h(x)||(b=d(x))?(b&&!d(t)?t=[]:b||h(t)||(t={}),b=!1,a(t,x)):t=x;c[e]=t}}}return c}function g(a,c){a=a||{};c=c||{};var b={},f;for(f in a)a.hasOwnProperty(f)&&(b[f]="object"===typeof a[f]&&a[f]?g(a[f],c[f]):a[f]!==c[f]);for(f in c)c.hasOwnProperty(f)&&!b[f]&&(b[f]="object"===typeof c[f]&&c[f]?g(c[f],
a[f]):c[f]!==a[f]);return b}function c(a,b){var g;if(a===b)return!0;if(d(a)){if(!d(b)||a.length!==b.length)return!1;for(g=a.length;g--;)if(!c(a[g],b[g]))return!1;return!0}if(h(a)){if(!h(b)||f(a)&&!f(b))return!1;for(g in a)if(!c(a[g],b[g]))return!1;return!0}return!1}function f(a){for(var c in a)if(a.hasOwnProperty(c))return!1;return!0}function e(a){if(!("function"===typeof a||"object"===typeof a&&a))return[];if(Object.keys)return Object.keys(a);var c=[],b;for(b in a)a.hasOwnProperty(b)&&c.push(b);
return c}function d(a){return Array.isArray?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)}function h(a){if(!a||"object"!==typeof a||a.nodeType||a===m)return!1;try{if(a.constructor&&!a.hasOwnProperty("constructor")&&!a.constructor.prototype.hasOwnProperty("isPrototypeOf"))return!1}catch(A){return!1}for(var c in a);return c===q||a.hasOwnProperty(c)}function k(a,c,b){Object.defineProperty(a,c,{value:b,writable:!1});return b}function t(a,c,b){a.hasOwnProperty(c)||(a[c]=b);return b}
return{keys:e,values:function(a){for(var c=e(a),b=Array(c.length),f=0;f<c.length;f++)b[f]=a[c[f]];return b},extend:a,mixin:function(a,c,b){if(b)for(var f=0,g=b.length;f<g;f++)a[b[f]]=c[b[f]];else for(f in c)"function"===typeof c[f]&&(a[f]=c[f])},diff:g,equals:c,copy:function(c){return d(c)?a([],c):h(c)?a({},c):c},indexOfArray:function(a,c,b){if(Array.prototype.indexOf&&a.indexOf===Array.prototype.indexOf)return a.indexOf(c,b);a&&a instanceof Array||n.error("Invalid arr passed to A.indexOfArray: "+
a,"A.util","indexOfArray");b=parseInt(b,10);b=isNaN(b)?0:b;if(!isFinite(b))return-1;for(var f=a.length;b<f;b++)if(a[b]===c)return b;return-1},isArray:d,isPlainObject:h,isFiniteNumber:function(a){return"number"===typeof a&&!isNaN(a)&&isFinite(a)},objectIsEmpty:f,constProp:"function"===typeof Object.defineProperty?k:t}},function(b){var a={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#39;","/":"\x26#x2F;"},g=/^\s+/,c=/\s+$/,f=new RegExp("["+b.keys(a).join("")+"]","g"),
e=/([!"#$%&'\(\)*+,./:;<=>?@\[\\\]^`{|}~])/g;return{trim:function(a){return String.prototype.trim?String.prototype.trim.call(a):a.replace(g,"").replace(c,"")},contains:function(a,c){return-1!==(""+a).indexOf(c)},escapeHtml:function(c){return(""+c).replace(f,function(c){return a[c]})},escapeJquerySelector:function(a){return(""+a).replace(e,"\\$1")},parseJSON:function(a){return JSON.parse(a)}}},function(b){function a(a){return b.map(g,function(c){var b=a.getAttribute(c);return b&&"["+c+"\x3d"+b+"]"}).join("")}
var g=["id","cel_widget_id","data-feature-name","data-action","data-aui-build-date"];return{xpath:function(a){if(""!==a.id)return'//*[@id\x3d"'+a.id+'"]';if(a===document.documentElement)return"/html";var c=b.indexOfArray(b.filter(a.parentNode.childNodes,function(c){return c.tagName===a.tagName}),a);if(-1===c)throw Error("can not evaluate xpath of element `"+a.tagName+(a.id?"#"+a.id:"")+"`");return b.xpath(a.parentNode)+"/"+a.tagName+"["+(c+1)+"]"},cssSelector:function(a){var c=[a.tagName||""];a.className&&
a.className.trim&&c.push("."+a.className.trim().replace(/\s+/g,"."));a.id&&c.push("#"+a.id);return c.join("")},attributionChain:function(c){var f=[];do f.push(a(c)),c=c.parentElement;while(c);return b.filter(f,Boolean).reverse().join(" ")}}},function(b){return{hide:function(a){b.each(k(a),function(a){b.addClass(a,"aok-hidden")})},show:function(a){b.each(k(a),function(a){b.removeClass(a,"aok-hidden")})}}},function(b){function a(){g={};for(var a=(document.cookie||"").split(";"),f=a.length-1;0<=f;f--){var e=
a[f].split("\x3d"),d=b.trim(e[0]);if(d){var h=g;e=e.slice(1).join("\x3d");e=b.trim(e);/^"/.test(e)&&(e=e.slice(1,-1).replace(/\\(.)/g,"$1"));e=m.decodeURIComponent(e);h[d]=e}}}var g;return{cookies:{get:function(c){g||a();return g[c]},getAll:function(){g||a();return b.extend({},g)},refresh:function(){g=null}}}},function(b){return{onScreen:function(a,g){if(!a)return!1;a.jquery&&(a=a[0]);if(!a)return!1;g="number"===typeof g&&!isNaN(g)&&isFinite(g)?g:100;if(1!==a.nodeType||!(a.offsetWidth||a.offsetHeight||
a.getClientRects().length))return!1;var c=b.size(m),f=b.scroll(m),e=f.top,d=m.innerHeight?m.innerHeight:c.height,h=e+d;f=f.left;c=m.innerWidth?m.innerWidth:c.width;var k=f+c;e-=g;h+=g;f-=g;k+=g;var t=b.offset(a),r=b.size(a);a=t.top;g=r.height;var p=a+g;t=t.left;r=r.width;var A=t+r;return(a>=e&&a<h||p>e&&p<=h||g>d&&a<=e&&p>=h)&&(t>=f&&t<k||A>f&&A<=k||r>c&&t<=f&&A>=k)}}},function(b){return{isATF:function(a,g){g="number"===typeof g&&!isNaN(g)&&isFinite(g)?g:100;g=b.size(m).height+g;a=b.offset(a).top;
return 0<=a&&a<g}}},function(b){function a(a,c){return a.classList?a.classList.contains(c):0<=(" "+a.className+" ").indexOf(" "+c+" ")}var g=document.createElement("fakeelement"),c={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},f=null;return{setCssImportant:function(a,c,b){a=a.jquery?a[0]:a;"undefined"!==typeof a&&(a=a.style,a.cssText=a.cssText.replace(new RegExp(c+"\\s*:\\s*[.^;]*(\\s*;)?","gmi"),""),a.cssText+=c+": "+
b+" !important;")},hasClass:a,addClass:function(c,b){a(c,b)||(c.classList?c.classList.add(b):c.className+=" "+b)},removeClass:function(c,b){a(c,b)&&(c.classList?c.classList.remove(b):c.className=(" "+c.className+" ").replace(new RegExp(" "+b+" ","g")," ").replace(/  /g," ").replace(/^ | $/g,""))},offset:function(a){a.jquery&&(a=a[0]);a=a.getBoundingClientRect();var c=document.documentElement,b=document.body;return{top:a.top+(m.pageYOffset||c.scrollTop)-(c&&c.clientTop||b&&b.clientTop||0),left:a.left+
(m.pageXOffset||c.scrollLeft)-(c&&c.clientLeft||b&&b.clientLeft||0)}},size:function(a){var c=document.documentElement,b=document.body;if(a===m)return{width:c.clientWidth,height:c.clientHeight};if(9===a.nodeType)return{width:Math.max(c.clientWidth,b.scrollWidth,c.scrollWidth,b.offsetWidth,c.offsetWidth),height:Math.max(c.clientHeight,b.scrollHeight,c.scrollHeight,b.offsetHeight,c.offsetHeight)};var f=m.getComputedStyle(a);c=parseFloat(f.borderTopWidth);b=parseFloat(f.borderBottomWidth);var g=parseFloat(f.borderLeftWidth),
e=parseFloat(f.borderRightWidth),d=parseFloat(f.paddingTop),h=parseFloat(f.paddingBottom),k=parseFloat(f.paddingLeft);f=parseFloat(f.paddingRight);return{width:a.offsetWidth-g-e-k-f,height:a.offsetHeight-b-c-d-h}},scroll:function(a){var c=document.documentElement,b=document.body;return a?a===m||9===a.nodeType?{top:"pageYOffset"in m?m.pageYOffset:c.scrollTop||b.scrollTop,left:"pageXOffset"in m?m.pageXOffset:c.scrollLeft||b.scrollLeft}:{top:a.scrollTop,left:a.scrollLeft}:null},getTransitionEndEvent:function(){/UCBrowser/.exec(e)&&
(f=c.WebkitTransition);if(null===f)for(var a in c)if(g.style[a]!==q){f=c[a];break}return f},reflowCssChanges:function(a){b.each(a,function(a){})}}},function(b){return{widescreen:function(){return b.hasClass(document.documentElement,"a-ws")}}}];for(var p=0;p<d.length;p++){var r=d[p](b),z;for(z in r)b[z]=r[z]}return b});"use strict";n.when("p-detect","a-util","prv:a-private-util").register("prv:a-capabilities",function(b,l,d){var k={},h=/Trident/.test(d.ua);l.each({isChrome:function(){return/Chrome/.test(d.ua)},
isUCBrowser:function(){return/UCBrowser/.test(d.ua)},isSafari:function(){var b=document.documentElement.style;return!("MozAppearance"in b)&&"webkitAppearance"in b&&/^Apple/.test(navigator.vendor)},isAndroidStockGuess:function(){var e=!1;b.capabilities.android&&!/Chrome|Opera|Firefox|UCBrowser/.test(d.ua)&&(e=/AppleWebKit\/(\d+\.\d+)/.exec(d.ua),e=e[1]&&"535">e[1]);return e},isFirefox:function(){return/Firefox/.test(d.ua)},isIE:function(){return h},isIE10:function(){return h&&"onmspointerup"in document&&
!("onpointerup"in document)},isIE10Plus:function(){return h&&("onpointerup"in document||"onmspointerup"in document)},isIE11Plus:function(){return h&&"onpointerup"in document},isiOS8:function(){return b.capabilities.ios&&/Version\/8\./.test(d.ua)},isIETouchCapable:function(){return k.isIE10Plus&&/Touch;/.test(d.ua)},isMetroIEGuess:function(){var e=!0;try{e=new ActiveXObject("htmlfile")}catch(p){e=!1}return k.isIE10Plus&&!b.capabilities.mobile&&!e}},function(b,h){k[h]=d.safeFeatureTest(b)});return k});
"use strict";n.when("p-detect","prv:a-capabilities","a-util","prv:a-private-util").register("a-detect",function(b,l,d,k){var h=d.copy(b),e=function(){var b=/(?:Android\s+|Windowshop.*Android\/|Android\/)(\d+(?:\.\d+)*)/.exec(k.ua);return b&&b[1]},p={};d.each({isAmazonApp:function(){return/(Windowshop|Amazon|AmazonBusiness|Amazon\.com)\//.test(d.cookies.get("amzn-app-id"))},isGen5App:function(){return/Windowshop.*(?:KFOT|KFTH|KFJWA|KFJWI|KFTT)/.test(k.ua)},isAndroid:function(){return h.capabilities.android},
androidVersion:function(){return e()},isAndroidKitkatPlus:function(){var b=e();return b&&null!==b.match(/(^4\.[4-9]|^[5-9]|^\d\d)/)},isOldAndroid:function(){return/Android\s[12][^0-9]/.test(k.ua)},pointerPrefix:function(){return"onmspointerup"in document||"onpointerup"in document?"onpointerup"in document?"pointer":"MSPointer":!1},actionMode:function(){var b=h.capabilities.pointerPrefix;return b?b:h.capabilities.touch?"touch":"mouse"}},function(b,e){h.capabilities[e]=k.safeFeatureTest(b)});d.extend(h.capabilities,
l);d.each({start:{mouse:"down",touch:"start",pointer:"down",MSPointer:"Down"},end:{mouse:"up",touch:"end",pointer:"up",MSPointer:"Up"},move:{mouse:"move",touch:"move",pointer:"move",MSPointer:"Move"},enter:{mouse:"enter",touch:"enter",pointer:"enter"},leave:{mouse:"leave",touch:"leave",pointer:"leave"},cancel:{touch:"cancel",pointer:"cancel",MSPointer:"Cancel"},over:{mouse:"over",pointer:"over",MSPointer:"Over"},out:{mouse:"out",pointer:"out",MSPointer:"Out"}},function(b,e){var d=h.capabilities.actionMode,
a="string"===typeof b?b:b[d];p[e]=a?d+a:b.mouse===q?"":"mouse"+b.mouse});h.action=p;b={};"pointer"===h.capabilities.pointerPrefix?(b.touch="touch",b.pen="pen",b.mouse="mouse",b.unknown=""):"MSPointer"===h.capabilities.pointerPrefix&&(b.touch=2,b.pen=3,b.mouse=4);h.pointerType=b;return h});"use strict";n.when("prv:a-guard").register("a-defer",function(b){function l(b){var e=0,d=setTimeout(function(){l(b)},0);if(0===b.length)clearTimeout(d),k=!1;else{var n=Date.now();b.shift().call();h+=Date.now()-
n;50<h&&(e=50,h=0);setTimeout(function(){l(b)},e);clearTimeout(d)}}var d=[],k=!1,h=0;return{defer:function(e){var h=this,r=b.fn(this,function(){return b.guardTimeFn(h,e).apply(this,arguments)});d.push(r);k||(k=!0,setTimeout(function(){l(d)},0))},pauseDeferred:function(){},executeDeferred:function(){}}});"use strict";n.when("a-util").register("a-events",function(b,l){function d(a,b){for(var c=a.length;c--;)b(a[c],c,a)||a.splice(c,1)}function k(a){var b=a.shift();if(b===q)return f;try{!1===b.fn.apply(m,
b.args)&&d(a,function(a){return a.id!==b.id})}catch(C){(b.logError?b:n).logError(C,"Event execution failed for event "+b.topic,"FATAL")}}function h(a,f){if(z(a)){var g=B++,e=c[a];f=f||[];var d=b.map(e,function(b){return{topic:a,id:g,fn:b.guard?b.guard(b.fn):b.fn,args:f,logError:b.logError}});e.occurred&&p(a);e.isTimeSliced?v(d):y(d)}}function e(a,b,f){if("function"===typeof b)return f={fn:b,logError:f&&f.logError,guard:f&&f.guard},(c[a]=c[a]||[]).unshift(f),{event:a,callback:b}}function p(a){c[a].length=
0}function r(a,f){function g(a){d(c[a],function(a){return a.fn!==f})}b.each(b.filter(a.split(" "),z),f?g:p)}function z(a){return c.hasOwnProperty(a)&&0<c[a].length}function u(a,f){var g=function(){n.register(a,function(){var a=m.aPageStart;return{time:a?b.now()-a:0}})},d=c[a]=c[a]||[];d.occurred||(d.isTimeSliced=!1!==f,d.occurred=!0,e(a,g),h(a))}function a(a,b){var c=this.on;this.on=function(){return c.apply(this,arguments)};this.on._guard=a;this.on._logError=b;for(var f in c)c.hasOwnProperty(f)&&
(this.on[f]=c[f]);this.constructor=q}function g(a,b){m.attachEvent?m.attachEvent("on"+a,b):m.addEventListener(a,b,!1)}var c={},f={},v=function(){function a(){c=!0;for(var e=b.now();50>b.now()-e;)if(k(g)===f){c=!1;return}b.delay(a,15)}var c=!1,g=[];return function(b){Array.prototype.push.apply(g,b);c||a()}}(),y=function(){var a=!1,b=[];return function(c){Array.prototype.push.apply(b,c);if(!a){for(a=!0;k(b)!==f;);a=!1}}}(),B=0,w=function(){var a=function(a,f,g){var d=a.split(" "),k=[],t=f;!0===g&&(t=
function(){f.apply(m,arguments);r(a,t)});var p=this?{logError:this._logError,guard:this._guard}:{};b.each(d,function(a){(c[a]||[]).occurred?(e(a,f,p),h(a)):k.push(e(a,t,p).event)});return{event:k.join(" "),callback:t}};b.each("ready load unload afterLoad scroll resize orientationchange zoom".split(" "),function(b){a[b]=function(c,f){a.call(this,b,c,f)}});return a}();a.prototype={isListening:z,on:w,one:function(a,b){var c=a.split(" ");if(1<c.length)n.error("A.one only accepts a single event name, but was provided with: "+
c.length+", ("+a+")","A.events","one");else return w(a,b,!0)},off:function(a,b){if("object"===typeof a){var c=a.event;a=a.callback}else c=a,a=b;return r(c,a)},trigger:function(a){for(var b=arguments.length,c=Array(b),f=0;f<b;f++)c[f]=arguments[f];c.shift();h(a,c)},events:{defaults:{input:"change",select:"change",a:"click",button:"click",form:"submit"}}};a.prototype.constructor=a;n.when("a-bodyBegin").execute(function(){u("bodyBegin")});g("unload",function(){u("unload",!1)});n.when("p-detect").execute(function(a){var c=
b.once(function(){u("beforeLoad");u("load");b.delay(function(){u("beforeAfterLoad");u("afterLoad")},1500)}),f=b.once(function(){a.responsiveGridEnabled()&&a.toggleResponsiveGrid(!0);u("beforeReady");u("ready");u("afterReady");"complete"===document.readyState&&c()});(function(a){"loading"!=document.readyState?a():document.addEventListener?document.addEventListener("DOMContentLoaded",a):document.attachEvent("onreadystatechange",function(){"loading"!=document.readyState&&a()})})(f);n.when("a-domready").execute(f);
g("load",c)});return a.prototype});"use strict";n.when("a-util","a-events").register("a-prefix",function(b,l){function d(b){return b.toLowerCase().replace(/-(.)/g,function(b,e){return e.toUpperCase()})}var k={transitionend:null},h=document.createElement("div").style,e={},p=["o","ms","moz","webkit"];l.on("beforeReady",function(){if(m.addEventListener){var e=document.createElement("div"),d=function(b){k.transitionend=b.type;this.removeEventListener("webkitTransitionEnd",d,!1);this.removeEventListener("transitionend",
d,!1);this.removeEventListener("otransitionend",d,!1);this.removeEventListener("oTransitionEnd",d,!1)};e.setAttribute("style","position:absolute;top:0px;z-index:-1;transition:top 1ms ease;-webkit-transition:top 1ms ease;-moz-transition:top 1ms ease;-o-transition:top 1ms ease;");e.addEventListener("transitionend",d,!1);e.addEventListener("webkitTransitionEnd",d,!1);e.addEventListener("otransitionend",d,!1);this.addEventListener("oTransitionEnd",d,!1);document.body.appendChild(e);b.delay(function(){e.style.top=
"100px";b.delay(function(){e.parentNode&&e.parentNode.removeChild(e);e=d=null;b.each(k,function(b){})},100)},0)}});return{prefixes:{getStyle:function(b){if(!e[b]){var k=d(b);if(k in h)e[b]=k;else{k=k.charAt(0).toUpperCase()+k.slice(1);for(var l=p.length;l--;){var a=p[l]+k;a in h&&(e[b]=a)}}}return e[b]},getEvent:function(b){return b?k[b.toLowerCase()]:q}}}});"use strict";n.when("a-util","jQuery","a-declarative").register("a-draggable",function(b,l,d){var k,h={_maxZIndex:0,_isInit:!1,_draggables:[],
_init:function(){this._isInit||(this._isInit=!0,this._maxZIndex=975)},create:function(b){this._init();b._zimIndex||(b._zimIndex=975,this._maxZIndex+=1,this._draggables.push(b));this.acquireFocus(b)},acquireFocus:function(b){b.css("zIndex",this._maxZIndex);k.css("zIndex",this._maxZIndex-1);for(var a=0;a<this._draggables.length;a++){var g=this._draggables[a];g[0]!==b[0]&&g._zimIndex>b._zimIndex&&(g._zimIndex-=g._zimIndex>this._maxZIndex-1?2:1,g.css("zIndex",g._zimIndex))}b._zimIndex=this._maxZIndex}},
e=function(e){var a=e.$event;b.contains("touchstart touchend touchmove",e.type)&&(a=a.originalEvent.touches[0]);return{x:a.clientX,y:a.clientY}},p=function(b){var a=b.data.$draggable,g=a.data("a-draggables"),c=e(b);g.isMouseDown&&(a.css({left:c.x-g.clickOffset.x,top:c.y-g.clickOffset.y}),b.$event.preventDefault())},r=function(b){var a=b.$event.target||b.$event.srcElement,g=b.data.$draggable,c=g.data("a-draggables");h.acquireFocus(g);a=l(a).closest(c.$handle,g);c.isMouseDown=0<a.length;c.isMouseDown&&
(k&&k.removeClass("aok-hidden"),a=e(b),c.clickOffset={x:a.x-parseFloat(g.css("left")),y:a.y-parseFloat(g.css("top"))},g.data("a-draggables",c),k.data("a-draggables",c),b.$event.preventDefault())},n=function(b){b=b.data.$draggable;var a=b.data("a-draggables");a.isMouseDown=!1;b.data("a-draggables",a);k&&k.addClass("aok-hidden")};return{draggable:function(b,a){b=b.jquery?b:l(b);a={isMouseDown:!1,$draggable:b,$handle:a&&a.handle?a.handle:b};a.$handle=a.$handle.jquery?a.$handle:l(a.handle);a.$handle.css("cursor",
"move");k||(k=l("\x3cdiv\x3e",{id:"a-draggables-mousedown-layer","class":"aok-hidden"}).appendTo("body"),d.declarative.create(k,"a-draggables",a));h.create(a.$draggable);d.declarative.create(a.$draggable,"a-draggables",a);d.declarative("a-draggables",["mousedown","touchstart"],r);d.declarative("a-draggables",["mouseup","touchend"],n);d.declarative("a-draggables",["mousemove","touchmove"],p)}}});"use strict";n.when("jQuery","a-util","a-events","a-declarative","a-constants","a-analytics").register("a-state",
function(b,l,d,k,h,e){function p(a,g,c,f){var e=!(a in u);if(null===g||b.isArray(g)||b.isPlainObject(g)){var k=l.copy(u[a]);k&&g&&!f&&(b.isArray(k)||b.isPlainObject(k))?l.extend(u[a],g):u[a]=l.copy(g);g=l.diff(k,u[a]);f=l.copy(u[a]);c||d.trigger("a:state:update:"+a,f,g,k);e&&n.declare(h.constants.PAGESTATE_LOADED_MODULE_PREFIX+a,f);return f}n.error("Invalid value passed to A.state with a namespace of "+a+".  Value: "+g,"A.state","updateNamespace")}function r(a,b,c){if(1===b.length)return a[b.shift()]=
c,a;a[b.shift()]=r({},b,c);return a}function m(){for(var a=document.getElementsByTagName("script"),g=0,c=a.length;g<c;g++)if(!b.data(a[g],"a-eval")){var f=b(a[g]),d=f.attr("data-a-state");if(d){try{var h=l.parseJSON(d)}catch(w){throw e.logError("[AUI] key value interface for accessing state data parsing failed","ERROR",JSON.stringify({xpath:l.xpath(a[g]),cssSelector:l.cssSelector(a[g]),custody:l.attributionChain(a[g])})),w;}if(h.key){try{var k=l.parseJSON(f.html())}catch(w){n.logError(w,"State parsing failed for state "+
h.key,"ERROR");continue}b.data(a[g],"a-eval",!0);(f=u[h.key])&&l.extend(k,f);p(h.key,k)}}}}var u={};k.declarative("a-state",function(a){var b=a.$target,c=a.data.key,f=a.data[a.type];f||d.events.defaults[a.targetTag]!==a.type||(f=b.attr("name"));f&&c&&(b.is("select")&&(b=b.find(":selected")),typeof b.val()!==q&&"string"===typeof f&&(a=b.val(),b.is("input[type\x3dcheckbox]")&&!b.prop("checked")&&(a=null),f=r({},f.split("."),a)),p(c,f))});k=function(a,b,c){return b===q?l.copy(u[a]):p(a,b,!!c)};k.bind=
function(a,b){d.on("a:state:update:"+a,b)};k.replace=function(a,b,c){return p(a,b,!!c,!0)};d.on("beforeReady",m);k.parse=m;return{state:k}});"use strict";n.when("prv:a-guard","jQuery","a-util","a-events","a-declarative","a-state").register("a-ajax",function(b,l,d,k,h,e){function p(a,b){if(!a)return"";var c="string"===typeof a;if("string"===b)return c?a:"";if("json"===b){if(c)return a;try{return JSON&&JSON.stringify?JSON.stringify(a):""}catch(y){n.logError(y,"AJAX POST failed to convert JSON object to string")}return""}return c?
"":l.param(a)}function r(a,b){a&&0!==a.length&&("string"===typeof a&&""===d.trim(a)?b&&b(a):(a[0]instanceof Array||(a=[a]),d.each(a,function(c){var f=u[c[0]];f?f.apply(m,c):((f=b)||n.error("There is no handler for the streaming ajax command: "+a[0],"A.ajax","chunkHandler"),f(c))})))}var z=function(){m.XMLHttpRequest||(m.XMLHttpRequest=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var a=function(){function a(){0<b.length?b.pop().send():c--}var b=[],c=0,f=0,e=0;return{add:function(a){4>
c?(a.send(),c++):(b.push(a),f++,b.length>e&&(e=b.length),(a=m.ue)&&a.count&&(a.count("aui:ajax:queued",f),a.count("aui:ajax:maxQueued",e)))},complete:a,abort:function(c){c=d.indexOfArray(b,c);-1!==c&&b.splice(c,1);a()}}}(),b=function(){},e=function(b){var c=b.http,f=!1,e=!1;switch(c.readyState){case 4:e=!0;break;case 3:f=!0}var g=200===c.status||304===c.status,h=b.responsePosition;if(f||e&&g){var p=c.responseText;if(h<p.length){h=p.substring(h,p.length);p=h.split("\x26\x26\x26");var l=h.lastIndexOf("\x26\x26\x26");
if(-1===l&&f)return;l<h.length-3&&f&&p.pop();d.each(p,function(a,c){if(""!==d.trim(a))try{var f=d.parseJSON(a)}catch(D){n.logError(D,"Invalid streaming ajax JSON response: "+a)}else f=a;b.callbacks.chunk(f)});b.responsePosition+=l}}e&&(clearInterval(b.pollTimer),clearTimeout(b.timeoutTimer),a.complete(),g?b.callbacks.success(null,c.statusText,b):b.callbacks.failure(b,c.statusText,c.statusText),k.trigger("a:pageUpdate"),k.trigger("a:ajax:complete"))},g=function(b){var c=b.http;if(4===c.readyState){clearInterval(b.pollTimer);
clearTimeout(b.timeoutTimer);a.complete();var f=c.responseText;try{f=d.parseJSON(f)}catch(x){}200!==c.status&&304!==c.status?b.callbacks.failure(b,c.statusText,c.statusText):b.callbacks.success(f,c.statusText,b);k.trigger("a:ajax:complete")}};return function(){function c(b){4>b.http.readyState&&(clearInterval(b.pollTimer),b.callbacks.failure(b,"Request Timeout","Request Timeout"),a.complete())}function f(a,b,c){c=c||{};c=d.extend({},k.all,k[b],c);d.each(c,function(b,c){(b||""===b)&&a.setRequestHeader(c,
b)});return a}function h(b,c,e,g,d,h,k,p,l,t){var r=b.http;r.open(c,e);f(r,c,l);b.timeout=g;b.callbacks.chunk=d||b.callbacks.chunk;b.callbacks.success=h||b.callbacks.success;b.callbacks.failure=k||b.callbacks.failure;b.callbacks.abort=p||b.callbacks.abort;t&&(r.withCredentials=!0);a.add(b);return{abort:function(){b.abort()}}}var k={all:{"X-Requested-With":"XMLHttpRequest"},get:{Accept:"text/html,*/*"},post:{Accept:"text/html,*/*","Content-Type":"application/x-www-form-urlencoded"}},p=function(){var a=
new XMLHttpRequest;this.pollTimer=null;this.http=a;this.responsePosition=0;this.buffer="";this.callbacks={success:b,failure:b,chunk:b,abort:b}};p.prototype={send:function(){var a=this;a.http.send(a.params);a.pollTimer=setInterval(function(){if(2<=a.http.readyState&&"unknown"!==typeof a.http.responseText){var b=a.http.getResponseHeader("Content-Type");b=b?b.toLowerCase():"";(-1!==b.indexOf("application/json-amazonui-streaming")||-1!==b.indexOf("application/amazonui-streaming-json")?e:g)(a)}},25);a.timeout=
"undefined"===typeof a.timeout?2E4:a.timeout;a.timeoutTimer=d.delay(c,a.timeout,a)},get:function(a,b,c,f,e,g,d,k,p){if(b){var l=a.indexOf("?"),t=a.charAt(a.length-1);-1<l?"?"!==t&&"\x26"!==t&&(a+="\x26"):a+="?";a+=b}return h(this,"get",a,c,f,e,g,d,k,p)},abort:function(){this.http&&this.http.abort();clearInterval(this.pollTimer);clearTimeout(this.timeoutTimer);a.abort(this);this.callbacks.abort(this)},post:function(a,b,c,f,e,g,d,k,p){this.params=b;return h(this,"post",a,c,f,e,g,d,k,p)}};return p}()}(),
u={update:function(a,b,e){l(b).html(e)},append:function(a,b,e){a=l(b);a.html(a.html()+e)},prepend:function(a,b,e){a=l(b);a.html(e+a.html())},state:function(a,b,g){e.state(b,g)},script:function(a,b){eval(b)},trigger:function(a,b){var c=Array.prototype.slice.call(arguments,1);k.trigger.apply(void 0,c)}},a={"a-ajax-update":function(a){var b=new z,c=function(){var a=m.ue;a&&a.tag&&(a.tag("aui"),a.tag("aui:ajax"))},e=a.abort,g=l(a.indicator),h=g.hasClass("aok-hidden");g.removeClass("aok-hidden").show();
var k=function(a,b){g.hide();h&&g.addClass("aok-hidden");c();a&&a.apply(m,b)},p="string"===typeof a.method&&"post"===a.method.toLowerCase()?"post":"get";"get"===p&&!1===a.cache&&(a.params+=[""===a.params?"":"\x26","_\x3d",d.now()].join(""));return b[p](a.url,a.params,a.timeout,function(b){c();r(b,a.chunk)},function(){k(a.success,arguments)},function(){k(a.failure,arguments)},e,a.headers,a.withCredentials)}};h.declarative("a-ajax-update",function(b){var c=b.$target,e=b.action,g=b.data;if(g||k.events.defaults[b.targetTag]===
b.type)if("object"!==typeof g||g[b.type]){g=g||{};var d=g.url||c.attr("href")||c.attr("action"),h=p(g.params,g.paramsFormat),l=c.attr("method")||g.method,r=g.indicator;g=g.timeout;d||n.error("No ajax url provided.","A.ajax","declarativeHandler");"form"===b.targetTag&&b.type===k.events.defaults.form&&(c=c.serialize(),h+=c);b.$event.preventDefault();return a[e]({url:d,params:h,method:l,indicator:r,operation:e,timeout:g})}});var g=function(c,f){f=f||{};var e=this,g=f.headers||{};f.accepts!==q&&(g.Accept=
f.accepts);f.contentType!==q&&(g["Content-Type"]=f.contentType);var d=p(f.params,f.paramsFormat);return a["a-ajax-update"](b.obj(this,{url:c,cache:f.cache,params:d,method:f.method,chunk:f.chunk,success:f.success&&function(){return b.guardTimeFn(e,f.success).apply(this,arguments)},failure:(f.failure||f.error)&&function(){return b.guardTimeFn(e,f.failure||f.error).apply(this,arguments)},abort:f.abort,indicator:f.indicator,timeout:f.timeout,headers:g,withCredentials:!!f.withCredentials}))};return{ajax:g,
get:function(a,b){b=b||{};b.method="get";return g.call(this,a,b)},post:function(a,b){b=b||{};b.method="post";return g.call(this,a,b)}}});"use strict";n.when("a-util","p-detect","a-prefix").register("a-animate",function(b,l,d){function k(a,b,c){a=a.jquery?a[0]:a;b=d.prefixes.getStyle(b);a.style[b]=c}function h(a){var b="",c=l.capabilities.transform3d;a.top!==q&&a.left!==q?(b="translate",c&&(b+="3d"),b+="("+a.left+", "+a.top,c&&(b+=", 0"),b+=")"):(a.top!==q?b="translateY("+a.top+")":a.left!==q&&(b=
"translateX("+a.left+")"),c&&(b+=" translateZ(0)"));a.scale!==q&&(b+=" scale("+a.scale+")");return b}function e(a){var e={},c=!1;b.each(r,function(b){b in a&&(c=!0,e[b]=a[b],delete a[b])});return c?e:null}function p(a,e,c){l.capabilities.transform?("string"===typeof c&&(c=parseInt(c,10)),b.isFiniteNumber(c)||(c=0),a=parseInt(a.css(e),10),b.isFiniteNumber(a)||(a=0),c=c-a+"px"):b.isFiniteNumber(c)&&(c+="px");return c}var r=["top","left","scale"],n={animate:function(a,b,c,e,d){a._a||(a._a=0);a._a++;
var f=function(){a._a--;d&&d()};a.queue("fx",[function(){a.animate(b,{duration:c,easing:"linear"===e?e:"swing",complete:f,queue:!1})}])},fadeIn:function(a,b,c,e){(a.hasClass("aok-hidden")||a.hasClass("a-hidden"))&&a.css("display","none").removeClass("aok-hidden a-hidden");this.stopAnimation(a,!0,!0);a.fadeIn({duration:b,easing:"linear"===c?c:"swing",complete:e,queue:!1})},fadeOut:function(a,b,c,e){this.stopAnimation(a,!0,!0);var f=a.css("opacity");a.fadeOut({duration:b,easing:"linear"===c?c:"swing",
complete:function(){a.css("opacity",f);e&&e()},queue:!1})},fadeToggle:function(a,b,c,e){a.fadeToggle({duration:b,easing:"linear"===c?c:"swing",complete:e,queue:!1})},slideUp:function(a,b,c,e){a.slideUp({duration:b,easing:"linear"===c?c:"swing",complete:e,queue:!1})},slideDown:function(a,b,c,e){a.slideDown({duration:b,easing:"linear"===c?c:"swing",complete:e,queue:!1})},slideToggle:function(a,b,c,e){a.slideToggle({duration:b,easing:"linear"===c?c:"swing",complete:e,queue:!1})},isAnimated:function(a){a=
a.jquery?a[0]:a;return a._a&&0<a._a},stopAnimation:function(a,b,c){a.stop(b,c)}},m={animate:function(a,d,c,f,r){if(a&&a.length){var g=a[0];d=b.copy(d);c=c===q?250:c;f=f||"linear";d.top!==q&&(d.top=p(a,"top",d.top));d.left!==q&&(d.left=p(a,"left",d.left));k(a,"transition",4>c?"all 0ms":"all "+c+"ms "+f);4<c?(g._a===q&&(g._a=0),g._a++,f=function(){0<g._a&&g._a--;g._a||k(a,"transition","");a.removeData("aAnimateTimeoutId").removeData("aAnimateOnComplete");r&&r()},a.data("aAnimateOnComplete",f).data("aAnimateTimeoutId",
b.delay(f,c))):r&&b.delay(r,0);l.capabilities.transform&&(c=e(d))&&k(a,"transform",h({top:c.top,left:c.left,scale:c.scale}));b.objectIsEmpty(d)||a.css(d)}},fadeIn:function(a,e,c,f){this.stopAnimation(a,!0,!0);if(a.data("aTargetOpacity")===q){var d=a.css("opacity")||1;a.data("aTargetOpacity",d)}else d=a.data("aTargetOpacity");a.css("opacity","0").removeClass("a-hidden aok-hidden").show();b.reflowCssChanges(a);this.animate(a,{opacity:d},e,c,function(){a.show();f&&f()})},fadeOut:function(a,b,c,e){this.stopAnimation(a,
!0,!0);var f=a.css("opacity");a.data("aTargetOpacity")===q&&a.data("aTargetOpacity",f);this.animate(a,{opacity:0},b,c,function(){a.hide().css("opacity",f);e&&e()})},fadeToggle:function(a,b,c,e){("none"===a.css("display")||.05>+a.css("opacity")?this.fadeIn:this.fadeOut).call(this,a,b,c,e)},slideUp:function(a,e,c,f){var d=this.animate;a.css({height:a.innerHeight(),overflow:"hidden"});b.delay(function(){d(a,{height:0},e,c,function(){a.hide();a.css({height:"",overflow:""});f&&f()})},0)},slideDown:function(a,
e,c,f){var d=a.innerHeight(),g=this.animate;a.css({height:0,overflow:"hidden"});a.show();b.delay(function(){g(a,{height:d},e,c,function(){f&&f();a.css({height:"",overflow:""})})},0)},slideToggle:function(a,b,c,e){(a.is(":visible")?this.slideUp:this.slideDown).call(this,a,b,c,e)},isAnimated:function(a){a=a.jquery?a[0]:a;return a._a&&0<a._a},stopAnimation:function(a,e,c){if(a&&a.length){var f=a[0];k(a,"transition","all "+(c?"1":"0")+"ms");e&&(f._a=0);b.reflowCssChanges(a);clearTimeout(a.data("aAnimateTimeoutId"));
a.data("aAnimateOnComplete")&&a.data("aAnimateOnComplete")()}}};return l.capabilities.transition?m:n});"use strict";n.when("A","jQuery").register("a-image-lazy-loader",function(b,l){function d(){l(".a-lazy-loaded").each(function(){e.set(l(this))})}function k(){var k=[];l(".a-lazy-loaded").each(function(){var p=l(this);p.data("src")&&h(p)&&(p.load(function(){b.trigger("a:image:lazyLoaded",p);d()}),k.push(p),p.removeClass("a-lazy-loaded"),e.remove(p))});b.each(k,function(b){b.attr("src",b.data("src"))})}
function h(b){e.get(b)||e.set(b);var d=l(m),h=d.scrollTop();d=m.innerHeight?m.innerHeight:d.height();var k=h+d+500;h-=500;var a=e.get(b);b=a.top;a=a.height;var g=b+a;return b>=h&&b<k||g>h&&g<=k||a>d&&b<=h&&g>=k}var e=function(){var b={},e=0;return{get:function(e){return b[e.data("cacheKey")]},set:function(d){d.data("cacheKey")||(d.data("cacheKey",e),e++);b[d.data("cacheKey")]={top:d.offset().top,height:d.height()}},remove:function(e){e.data("cacheKey")&&delete b[e.data("cacheKey")]}}}();d();k();b.on("scroll",
function(){k()});b.on("scroll",b.debounce(function(){d();k()},250));b.on("resize",k);b.on("a:image:lazyLoad",k);b.on.ready(k)});"use strict";n.register("a-image-url-key-handler",function(){return{generate:function(b,l){return b},parse:function(b){return{url:b}}}});"use strict";n.when("jQuery","a-util","a-events","a-defer","p-detect","a-image-url-key-handler").register("a-image",function(b,l,d,k,h,e){function p(a){a=b(a);var e=a.data("a-dynamic-image");if(e&&"object"===typeof e){var f=a.data("a-dynamic-image-container");
"undefined"===typeof f&&(f=a.closest(".a-dynamic-image-container"),0===f.length&&(f=a.parent()),a.data("a-dynamic-image-container",f));var g=h.capabilities.hires&&m.devicePixelRatio?m.devicePixelRatio:1,k=f.width()*g,p=f.height()*g,r=Number.MAX_VALUE,n=Number.MAX_VALUE,u=a.attr("src")||"",v,q=k/p;l.each(e,function(a,b){var c=parseInt(a[0],10);a=parseInt(a[1],10);c-=p;a-=k;c=1<=q?a:c;Math.abs(c)<n&&0<=c&&(n=Math.abs(c),v=b);Math.abs(c)<r&&(r=Math.abs(c),u=b)});v&&(u=v);c.schedule(u,a);c.fill();a.data("a-image-updated",
!0);d.trigger("a:dynamicImage:updated",{image:a,url:u});return u}}function r(){b("img.a-dynamic-image").each(function(){b(this).data("a-manual-replacement")||p(this)})}function n(){b("img.a-dynamic-image").each(function(){var a=b(this);a.data("a-manual-replacement")||a.data("a-image-updated")||p(this)})}var u=document.getElementsByTagName("img"),a={},g=0,c=function(){var b=[],c={};return{schedule:function(f,d){f=e.generate(f,d.attr("crossorigin"));c[f]||(b.push(f),c[f]=!0);a[f]=a[f]||[];for(var g=
0;g<a[f].length;g++)if(d.is(a[f][g]))return;a[f].push(d)},fill:function(){for(var a=0;a<2-g;a++)if(0<b.length){var e=b.shift();c[e]=!1;f.load(e)}}}}(),f=function(){function f(b){var c=a[b],f=e.parse(b).url;c&&(l.each(c,function(a){a.data("a-image-replaced")!==f&&(a.data("a-image-replaced",f),k.defer(function(){a.attr("src",f);d.trigger("a:image:load",{$imageElement:a,url:f});var b=a.data("a-image-name");b&&d.trigger("a:image:load:"+b,{$imageElement:a,url:f})}))}),a[b]=[])}var h={};return{load:function(a){if(h[a])f(a);
else if(!1!==h[a]){var b=new Image,d=b.onload=l.once(function(){g--;f(a);h[a]=!0;c.fill()});b.onerror=function(){g--;h[a]=!1;c.fill()};g++;k.defer(function(){var c=e.parse(a),f=c.crossOrigin;f&&(b.crossOrigin=f);b.src=c.url;b.complete&&k.defer(d)})}},poll:function(){l.isPageHidden()||l.each(u,function(a){a=b(a);!a.data("a-hires")||a.data("a-hires-loaded")||a.data("a-manual-replacement")||a.is(":hidden")||!l.onScreen(a)||(c.schedule(a.data("a-hires"),a),a.data("a-hires-loaded",!0))})}}}();h.capabilities.hires&&
d.on.ready(function(){l.interval(function(){f.poll();c.fill()},2E3)});d.on("ready",function(){r();d.on("resize",r);d.on("a:pageUpdate",n)});return{loadHiResImage:function(a){var e=[];b(a).each(function(){var a=b(this),f=a.data("a-hires");f&&(c.schedule(f,a),c.fill(),e.push(f));a.data("a-hires-loaded",!0)});return e},loadDynamicImage:function(a){var c=[];b(a).each(function(){c.push(p(this))});return c},loadImageManually:function(a,c){var e=[];b(a,c).each(function(){var a=b(this);if(!a.data("a-image-already-loaded")){a.data("a-image-already-loaded",
!0);var c=p(a),f=b("\x3cimg\x3e").attr("src",c||a.data("a-image-source"));e.push(c);c=""+this.className;var d=a.data("a-extra-classes");d&&(c+=" "+d);f.attr("class",c);f.attr("id",this.id);f.attr("style",a.attr("style"));f.attr("alt",a.attr("alt"));f.attr("usemap",a.attr("usemap"));f.attr("title",a.attr("title"));f.attr("role",a.attr("role"));(c=a.data("a-image-crossorigin"))&&f.attr("crossorigin",c);l.each(this.attributes,function(a){a&&a.name&&(0===a.name.indexOf("data-")||0===a.name.indexOf("aria-"))&&
f.attr(a.name,a.value)});f.data(a.data());a.replaceWith(f)}return e})},loadDescendantImagesManually:function(a,c){a=b(a,c).find("div.a-manually-loaded").filter(function(){return!b(this).data("a-image-already-loaded")});return this.loadImageManually(a)}}});n.register("a-class",function(){function b(){}var l=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;b.extend=function(d){var k=this.prototype,h=Object.create?Object.create(k):function(b){function e(){}e.prototype=b;return new e}(k),e;for(e in d)h[e]=
"function"===typeof d[e]&&"function"===typeof k[e]&&l.test(d[e])?function(b,e){return function(){var d=this._super;this._super=k[b];var h=e.apply(this,arguments);this._super=d;return h}}(e,d[e]):d[e];d="function"===typeof h.init?h.hasOwnProperty("init")?h.init:function(){k.init.apply(this,arguments)}:function(){};d.prototype=h;h.constructor=d;d.extend=b.extend;return d};return{createClass:function(d){return b.extend(d)}}});"use strict";n.register("a-constants",function(){return{constants:{keycodes:{BACKSPACE:8,
TAB:9,ENTER:13,ESCAPE:27,SPACE:32,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,DELETE:46,HOME:36,END:35},declarativeEvents:"blur click dblclick focus focusin focusout mousedown mouseup mouseenter mouseleave mousemove change submit touchstart touchend touchmove touchcancel keydown keyup keypress MSPointerDown pointerdown MSPointerUp pointerup MSPointerMove pointermove MSPointerCancel pointercancel MSPointerOver pointerenter MSPointerOut pointerleave",HIDE_CLASS:"aok-hidden",BROWSER_EVENTS:{SCROLL:"scroll",
RESIZE:"resize",ORIENTATION_CHANGE:"orientationChange"},PAGESTATE_LOADED_MODULE_PREFIX:"page-state-loaded:",NOOP:function(){}}}});"use strict";n.when("jQuery","a-detect","a-events","a-util","a-defer").register("a-browser-events",function(b,l,d,k,h){function e(){return m.innerHeight?m.innerHeight:document.documentElement.clientHeight}function p(){return m.innerWidth?m.innerWidth:document.documentElement.clientWidth}function r(){return m.innerWidth?Math.round(document.documentElement.clientWidth/m.innerWidth*
10)/10:1}function n(a){switch(a){case c.ALL:a="orientation height width zoom scrollLeft scrollTop".split(" ");break;case c.SCROLL:a=["scrollLeft","scrollTop"];break;case c.ZOOM:a=["height","width","zoom","scrollLeft","scrollTop"];break;default:a=["orientation","height","width","scrollLeft","scrollTop"]}for(var b={},d,h;(h=a.pop())!==q;)d=f[h],"orientation"===h?f[h]=m.orientation===q?p()>e()?90:0:m.orientation:"height"===h?f[h]=e():"width"===h?f[h]=p():"scrollTop"===h?f[h]=m.scrollY?m.scrollY:g.scrollTop():
"scrollLeft"===h?f[h]=m.scrollX?m.scrollX:g.scrollLeft():"zoom"===h&&(f[h]=r()),f[h]!==d&&(b[h]=d);return b}function u(a){if(a=w[a])a.pollCounter=a.maxPollCount,a.intervalId||(a.intervalId=setInterval(a.handler,a.pollInterval))}function a(a){(a=w[a])&&a.intervalId&&(clearInterval(a.intervalId),a.intervalId=0)}var g=b(m),c={ORIENTATION_CHANGE:"orientationchange",SCROLL:"scroll",RESIZE:"resize",ZOOM:"zoom",ALL:"all"},f={scrollLeft:0,scrollTop:0,height:e(),width:p(),orientation:m.orientation===q?p()>
e()?90:0:m.orientation,zoom:r()};d.on("beforeReady",function(){n(c.ALL)});var v={speed:0,degree:0,direction:"",positionX:0,positionY:0},y=[],B;g.bind("mousemove",k.throttle(function(a){a={x:a.clientX,y:a.clientY};if(B){var b=B,c=0,e=0;y.push({speed:Math.sqrt(Math.pow(a.x-b.x,2)+Math.pow(a.y-b.y,2))/50*10,degree:Math.atan2(a.y-b.y,a.x-b.x)/(Math.PI/180)});4<y.length&&(y=y.slice(-4));b=y.length;for(var f=0;f<b;f++)c+=y[f].speed,e+=y[f].degree;c=Number((c/b).toFixed(2));e=Math.round(e/b);v={speed:c,
degree:e,direction:0<=e?157.5<e?"W":112.5<e?"SW":67.5<e?"S":22.5<e?"SE":"E":-157.5>e?"W":-112.5>e?"NW":-67.5>e?"N":-22.5>e?"NE":"E",positionX:a.x,positionY:a.y};B=a}else a&&(B=a)},50));g.bind(c.SCROLL,k.throttle(function(){var a=n(c.SCROLL);d.trigger(c.SCROLL,f,a)},100));var w={};k.each([c.RESIZE,c.ZOOM],function(a){w[a]={handler:function(){},lastViewport:k.copy(f),maxPollCount:5,pollCounter:5,pollInterval:100,intervalId:0}});w.resize.handler=function(){var b=[],e=w.resize;n("resize");var h=k.diff(f,
e.lastViewport);h.orientation&&b.push(c.ORIENTATION_CHANGE);h.width||h.height?b.push(c.RESIZE):l.capabilities.isIETouchCapable&&h.scrollTop&&b.push(c.RESIZE);b.length&&(e.lastViewport=k.copy(f),k.each(b,function(a){d.trigger(a,f,h)}));0===--e.pollCounter&&a(c.RESIZE)};w.resize.pollInterval=100;w.resize.maxPollCount=10;g.bind(c.RESIZE,function(a){u(c.RESIZE)});w.zoom.handler=function(){n(c.ZOOM);var b=w.zoom,e=k.diff(f,b.lastViewport);e.zoom&&(b.lastViewport=k.copy(f),d.trigger(c.ZOOM,f,e));0===--b.pollCounter&&
a(c.ZOOM)};w.zoom.pollInterval=200;l.capabilities.android&&g.bind("touchcancel",function(a){2===a.originalEvent.changedTouches.length&&(w.zoom.maxPollCount=15,u(c.ZOOM))});l.capabilities.ios&&g.bind("touchend",function(a){1===a.originalEvent.touches.length&&(w.zoom.maxPollCount=1,u(c.ZOOM))});l.capabilities.ios||l.capabilities.android||g.bind("resize",function(a){w.zoom.maxPollCount=5;u(c.ZOOM)});return{viewport:function(a){a&&n(c.ALL);return k.copy(f)},cursor:function(){return k.copy(v)},scrollBarWidth:function(a){if(a||
(document&&document.body&&document.body.scrollHeight?document.body.scrollHeight:0)>e()){a=document.createElement("div");a.style.visibility="hidden";a.style.width="100%";a.style.overflowX="scroll";document.body.appendChild(a);var b=a.offsetHeight;document.body.removeChild(a);return b}return 0}}});"use strict";n.register("a-analytics",function(){function b(b,k){var d=m&&m.ue&&m.ue.count;if(d&&b){var e="aui:"+b;1<arguments.length&&d(e,k);return d(e)}}var l=m&&m.ue&&m.ue.tag;return{increment:function(d,
k){if(d){var h=b(d)||0;b(d,h+(k||1))}},count:b,logError:function(b,k,h){m.ueLogError&&m.ueLogError({message:b},{logLevel:k,attribution:h})},tag:function(b){l&&b&&l("aui:"+b)}}});"use strict";n.when("a-util").register("a-request-animation-frame",function(b){for(var l=0,d=["ms","moz","webkit","o"],k=0;k<d.length&&!m.requestAnimationFrame;++k)m.requestAnimationFrame=m[d[k]+"RequestAnimationFrame"],m.cancelAnimationFrame=m[d[k]+"CancelAnimationFrame"]||m[d[k]+"CancelRequestAnimationFrame"];m.requestAnimationFrame||
(m.requestAnimationFrame=function(d,e){var h=b.now(),k=Math.max(0,16-(h-l));e=m.setTimeout(function(){d(h+k)},k);l=h+k;return e});m.cancelAnimationFrame||(m.cancelAnimationFrame=function(b){clearTimeout(b)});return{requestAnimationFrame:function(b,e){return m.requestAnimationFrame(b,e)},cancelAnimationFrame:function(b){m.cancelAnimationFrame(b)}}});"use strict";n.when("jQuery").register("a-form-controls-api",function(b){var l=0,d=function(d){return d&&d.jquery?d:d&&1===d.nodeType?b(d):null},k=function(b,
e,k){var h=d(b);if(!h||1!==h.length)return!1;b=h.find("input").first();e!==q&&(e=!!e,h.hasClass("a-touch-multi-select")&&(h.find("i.a-icon").first().toggleClass("a-icon-touch-multi-select-active",e).toggleClass("a-icon-touch-multi-select",!e),h.attr("aria-checked",e)),b.prop("checked")!==e&&b.prop("checked",e).trigger("change"));k!==q&&(k=!!k,b.prop("disabled")!==k&&b.prop("disabled",k))};return{findFormElementContainer:function(h){if((h=d(h))&&1===h.length){var e=h.closest("form");0===e.length&&
(e=h.closest("fieldset"),0===e.length&&(e=b(document)));return e}},toggleCheckboxState:function(b){b=d(b);if(b&&1===b.length){var e=b.find("input").first();k(b,!e[0].checked)}},setCheckboxState:k,setRadioState:k,normalizeElement:function(b){if((b=(b=d(b))?b:d(this))&&1===b.length){var e=b.find("input").first();e.attr("type");var h=b.hasClass("a-touch-multi-select");b.attr("id")||e.attr("id")||h&&(!h||b.parent().attr("id"))||(h="a-form-controls-autoid-"+l,b.attr("aria-labelledby",h).find(".a-checkbox-label, .a-radio-label, .a-touch-multi-select-item-label").attr("id",
h),l++);k(b,e[0].checked,e[0].disabled)}},normalizeFieldsets:function(d){b(d).closest("fieldset").each(function(e,d){e=b(d);d=e.find("legend").first();if(d.length){var h=d.attr("id");h||(h="a-form-controls-autoid-"+l,d.attr("id",h),l++);e.attr("aria-describedby",h)}})}}});"use strict";n.when("a-util","a-constants").execute("prepare-a-weblab",function(b,l){n.when(l.constants.PAGESTATE_LOADED_MODULE_PREFIX+"a-wlab-states").register("a-weblab",function(d){function k(b){m||(q[b]=p[b]);return m&&m[b]||
p[b]}function h(b){return k(b)||"C"}function e(b){return k(b)||"C"}var p=d||{},m,q={};n.when(l.constants.PAGESTATE_LOADED_MODULE_PREFIX+"a-ltree-states").execute(function(e){m=e||{};b.each(b.keys(q),function(a){(m[a]||q[a])&&m[a]!==q[a]&&n.log("a-weblab returned wrong value for "+a+". It returned "+q[a]+". it is set as "+m[a]+" at a-ltree-states.")})});return{is:function(b,a,d){return(d?e:h)(b)===a},isActive:function(b){return!!k(b)},noTrigger:h,trigger:e}})});"use strict";n.declare("prv:a-post-atf-catchdomready",
!0);n.when("a-util","a-defer","prv:a-post-atf-catchdomready").register("prv:a-post-atf",function(b,l,d){function k(){p||(p=!0,b.each(e,function(b){l.defer(b)}),e=[])}function h(){d&&k()}var e=[],p=!1;n.when("af","cf").execute("flush_queued_functions_after_ATF",k);n.when("a-domready").execute("flush_queued_functions_after_domready",function(){b.delay(h,500)});return{execute:function(b){p?l.defer(b):e.push(b)}}});"use strict";n.register("prv:a-tnr",function(){function b(){for(var b=Array(arguments.length),
k=0;k<b.length;++k)b[k]=arguments[k];return b}function l(){}return{findTnrAttribute:function(){return null},ack:l,ackDelegated:l,ackDeclarative:l,wrapJqBindArgs:function(){return b.apply(null,arguments).slice(1)},wrapJqUnbindArgs:b,wrapDeclarativeActionHandler:function(b){return b}}});"use strict";n.register("prv:a-collect-p-debug",function(){var b=!1;return function(){b||(b=!0,n.when("prv:p-debug","afterLoad").execute(function(b){b=JSON&&JSON.stringify?JSON.stringify(b):"{}";n.log(b,"WARN","[AUI] p-debug")}))}});
"use strict";n.when("A").register("a-component-mixins",function(b){function l(d){for(var e=0;e<d.length;e++)if(0>b.indexOfArray(k,d[e]))return!1;return!0}var d=0,k=b.constants.declarativeEvents.split(" ");return{show:function(){this._$element.removeClass("a-hidden aok-hidden").show();return this},hide:function(){this._$element.addClass("aok-hidden");return this},toggle:function(){return this._$element.hasClass("aok-hidden")?this.show():this.hide()},size:function(){return this._$element.size()},isEmpty:function(){return 0===
this._$element.size()},on:function(h,e){var k=b.parseFunctionName(e);k||n.error.call({},"Please name all asynchronous event callbacks");if(h=h?h.split(" "):q){this.fnMap=this.fnMap||{};l(h)||n.error.call({},"That event is not supported!");var m=this;b.each(h,function(h){this.fnMap[h]=this.fnMap[h]||[];var l=this.fnMap[h][e]="a-component-event-"+d++;b.declarative(l,h,function(){try{e.apply(m,m.callbackArgs||[])}catch(a){n.logError.call({},a,"Error occurred in an asynchronous event callback","FATAL",
(e.caller||"")+h+"handler:"+(k||"anonymous"))}});b.declarative.create(m._$element,l)},m)}},off:function(d,e){d=d?d.split(" "):q;this.fnMap||n.error.call({},"There are no callbacks assigned to this component");d&&e?b.each(d,function(d){try{b.declarative.remove(this._$element,this.fnMap[d][e]),delete this.fnMap[d][e]}catch(r){n.error.call({},"The component is not bound to a callback with name "+b.parseFunctionName(e)||"anonymous for event "+d)}},this):e||d?!e&&d?b.each(d,function(b){for(var e in this.fnMap[b])this.fnMap[b].hasOwnProperty(e)&&
this.off(b,e);delete this.fnMap[b]},this):n.error.call({},"Please provide an event associated with the callback"):(b.declarative.remove(this._$element),delete this.fnMap)},trigger:function(d,e){this.callbackArgs=e||[];b.$.fn.trigger.call(this._$element,d)}}});"use strict";n.when("A","jQuery","a-component-mixins","a-analytics","prv:a-sampler").register("a-component",function(b,l,d,k,h){var e=b.createClass({init:function(e,d){b.contains(e,".a-")&&n.error("{API} Cannot create components using 'a-' selectors. Apply your own CSS class or ID to select this element.",
"API","component");this._$element=l(e,d);this._trackApi()},_trackApi:function(){this._componentName&&h("AUI API Analytics")&&k.increment("api:"+this._componentName)}});return{create:function(k){var h=k.mixin;h&&delete k.mixin;k=e.extend(k);h&&b.mixin(k.prototype,d,h);return k}}});"use strict";n.when("A","jQuery","a-component").register("a-alert",function(b,l,d){var k=["error","success","warning","info"],h=b.map(k,function(b){return"a-alert-"+b}).join(" "),e=b.map(k,function(b){return"a-alert-inline-"+
b}).join(" "),p=document.createElement("h4");p.className="a-alert-heading";var m=l(p),q=d.create({_componentName:"alert",init:function(b,a){this._super(b,a);this._$element=this._$element.filter(".a-alert, .a-alert-inline");this._$heading=this._$element.find(".a-alert-heading");this._$content=this._$element.find(".a-alert-content")},mixin:["show","hide","size","isEmpty"],heading:function(b){if("undefined"===typeof b)return this._$heading.text();this._$heading.length?this._$heading.text(b):this._$heading=
m.clone().text(b).insertBefore(this._$content);return this},removeHeading:function(){this._$heading.remove();this._$heading=l();return this},text:function(b){if("undefined"===typeof b)return this._$content.text();this._$content.text(b);return this},html:function(b){if("undefined"===typeof b)return this._$content.html();this._$content.html(b);return this},type:function(d){-1===b.indexOfArray(k,d)&&n.error("{API} Alert type must be one of [error, success, warning, info].","API","alert");this._$element.each(function(a,
b){a=l(b);b="a-alert-";a.hasClass("a-alert-inline")?(b+="inline-",a.removeClass(e)):a.removeClass(h);a.addClass(b+d)});return this}});return function(b,a){return new q(b,a)}});"use strict";n.when("jQuery","a-component","a-form-controls-api").register("a-checkbox",function(b,l,d){var k=d.setCheckboxState,h=l.create({_componentName:"checkbox",init:function(b,d){this._super(b,d);this._$element=this._$element.closest(".a-checkbox");this._$input=this._$element.find("[type\x3dcheckbox]")},mixin:["show",
"hide","size","isEmpty"],check:function(b){b=void 0===b?!0:b;this._$element.each(function(){k(this,b)});return this},uncheck:function(){return this.check(!1)},toggleChecked:function(){this._$element.each(function(){d.toggleCheckboxState(this)});return this},isChecked:function(){for(var b=0,d=this._$input.length;b<d;b++)if(!this._$input[b].checked)return!1;return!0},isUnchecked:function(){for(var b=0,d=this._$input.length;b<d;b++)if(this._$input[b].checked)return!1;return!0},enable:function(b){b=void 0===
b?!0:b;this._$element.each(function(){k(this,void 0,!b)});return this},disable:function(){return this.enable(!1)},toggleEnabled:function(){for(var b=0,d=this._$input.length;b<d;b++)k(this._$element[b],void 0,!this._$input[b].disabled);return this},isEnabled:function(){for(var b=0,d=this._$input.length;b<d;b++)if(this._$input[b].disabled)return!1;return!0},isDisabled:function(){for(var b=0,d=this._$input.length;b<d;b++)if(!this._$input[b].disabled)return!1;return!0},toggle:function(e){"undefined"!==
typeof e&&(e=!!e);this._$element.each(function(){b(this).toggle(e)});return this}});return function(b,d){return new h(b,d)}});"use strict";n.when("A","a-component").register("a-meter",function(b,l){var d=l.create({_componentName:"meter",init:function(b,d){this._super(b,d);this._$element=this._$element.filter(".a-meter, .a-meter-with-txt");this._$bar=this._$element.find(".a-meter-bar");this._$progressTxt=this._$element.find(".a-meter-progress-txt")},mixin:["show","hide","size","isEmpty"],get:function(){return{percent:this.percent(),
txt:this.text()}},enable:function(){this._$element.removeClass("a-inactive");return this},disable:function(){this._$element.addClass("a-inactive");return this},isEnabled:function(){return!this._$element.hasClass("a-inactive")},percent:function(d){if("undefined"===typeof d)return d=this._$bar.get(0).style.width,parseInt(d,10);b.isFiniteNumber(d)||n.error("{API}  Meter percent should be a number between 0 and 100","a-meter","setProgress");d=Math.min(100,Math.max(0,d));d+="%";this._$bar.css({width:d});
this._$element.attr({"aria-label":d,"aria-valuenow":d});return this},text:function(b){if("undefined"===typeof b)return this._$progressTxt.text();this._$progressTxt.text(b);return this},set:function(b,d){this.percent(b);d&&this.text(d);return this}});return function(b,h){return new d(b,h)}});n.when("a-component").register("a-spinner",function(b){var l=b.create({_componentName:"spinner",init:function(b,k){this._super(b,k);this._$element=this._$element.filter(".a-spinner-wrapper, .a-spinner")},mixin:["show",
"hide","isEmpty","size"],remove:function(){this._$element.remove()}});return function(b,k){return new l(b,k)}});"use strict";n.register("a-ua",function(){return{compareVersions:function(b,l,d){var k=function(b){n.error("Versions are not comparable. "+b,"A - extras","compareVersions")};d=d||".";"string"===typeof b&&"string"===typeof l&&"string"===typeof d&&""!==b&&""!==l||k("Input values are not valid.");b=b.split(d);l=l.split(d);d=Math.max(b.length,l.length);for(var h=0;h<d;h++){var e=h<b.length?
Number(b[h]):0,m=h<l.length?Number(l[h]):0;!isNaN(e)&&isFinite(e)&&!isNaN(m)&&isFinite(m)||k("Piece of one version number evaluates to NaN or +/- Infinity.");if(e<m)return-1;if(e>m)return 1}return 0}}});"use strict";n.when("a-analytics","prv:p-debug","ready").execute(function(b,l){n.declare("prv:a-logTrigger",function(d){var k=l[d]&&l[d].registered||0,h=0,e=0,m;for(m in l)if(l.hasOwnProperty(m)){var n=l[m];n.end&&n.end<=k&&(h++,e+=n.end-n.start)}b.count("blocking-count:"+d,h);b.count("blocking-time:"+
d,Math.round(e))})});"use strict";n.when("a-analytics","afterLoad").execute("a-doctype-test",function(b){document.doctype&&document.doctype.name&&"html"===document.doctype.name.toLowerCase()||(n.log("Missing or Invalid HTML doctype. Please refer to http://w?AUI/LogMessages#HDOCTYPE for more details.","WARN"),b.increment("a-doctype-issue"))});"use strict";n.register("prv:a-sampler-inclusion",function(){return{"AUI API Analytics":.01>Math.random()}});n.when("prv:a-sampler-inclusion").register("prv:a-sampler",
function(b){return function(l){return b.hasOwnProperty(l)&&b[l]}});"use strict";n.when("A","3p-promise","load").register("a-pcv",function(b,l){var d;return{getData:function(){d||(d=new l(function(b,d){var e=m.pcv.AmazonUI;e?(document.documentElement.setAttribute("data-aui-version",e),b(e)):d(Error("Package closure version of AmazonUI is not found on the page"))}));return d}}})});
/* ******** */
(function(g){var c=window.AmazonUIPageJS||window.P,n=c._namespace||c.attributeErrors,e=n?n("AmazonUIBaseJS@declarative","AmazonUI"):c;e.guardFatal?e.guardFatal(g)(e,window):e.execute(function(){g(e,window)})})(function(g,c,n){"use strict";g.when("jQuery","a-util","a-events","a-constants","prv:a-guard","prv:csa-logger").register("a-declarative",function(e,k,p,c,g,n){function q(a){var d=e(a.currentTarget),b=e(a.target);if("submit"===a.type){var l=b.closest("form");l.length&&(b=l)}if(l=d.data("action"))a=
{$target:b,$currentTarget:d,targetTag:b.prop("tagName").toLowerCase(),type:a.type,$event:a,$declarativeParent:d},t(l,a)}function t(a,d){var b=d.$event,l=d.$target,e=d.$currentTarget,c=d.type;a=a.split(" ");k.each(a,function(a){var h=r[a]||{},f=e.data(a),m=k.extend({},d,{action:a,data:f});a="a:declarative:"+a;var g=a+":"+c;p.trigger(a,m);p.trigger(g,m);m=!1;f?m=!!f.allowLinkDefault:h&&(m=!!h.allowLinkDefault);"click"!==b.type||m?h=!1:(h=l.closest("a"),h=h.length&&("#"===h[0].href||b.currentTarget===
h[0]||h.parent(".a-declarative").length));h&&b.preventDefault()})}var r={};e(document).delegate(".a-declarative",c.constants.declarativeEvents,q);e(document).delegate(".a-gesture","tap swipe swipe-horizontal swipe-vertical pan-horizontal pan-vertical doubleTap",q);c=function(){switch(arguments.length){case 2:var a=arguments[0];var d=arguments[1];break;case 3:a=arguments[0];var b=arguments[1];d=arguments[2];break;case 4:a=arguments[0];b=arguments[1];var e=arguments[2];d=arguments[3]}if(a){"string"===
typeof a&&(a=k.trim(a).split(" "));var f=this;k.each(a,function(a){var c="a:declarative:"+a;r[a]=e||{};b?(b="string"===typeof b?k.trim(b).split(" "):b,k.each(b,function(b){p.on.call(f,c+":"+b,function(){return g.guardTimeFn(f,d).apply(this,arguments)});"click"!=b&&"swipe"!=b||n.declarative(a,b)})):p.on.call(f,c,d)})}};c.create=function(a,d,b){var c=a.jquery&&a.length?a:e(a);if(c.length&&d){var f=c.data("action");c.data("action",f?f+" "+d:d).data(d,b?b:{});c.addClass("a-declarative")}return a};c.remove=
function(a,d){var b=a.jquery&&a.length?a:e(a);if(!b.length)return a;var c=b.data("action");if(!c)return a;var f=c.split(" ");d?(d=d.split(" "),k.each(d,function(a){var c=k.indexOfArray(f,a);0<=c&&(f.splice(c,1),b.data(a,null))})):(k.each(f,function(a){b.data(a,null)}),f=[]);f.length?b.data("action",f.join(" ")):b.data("action",null).removeClass("a-declarative");return a};return{declarative:c}});g.register("prv:csa-logger",function(){if(c.csa)var e=csa("PageTiming",{producerId:"csa",schemaId:"csa.InteractionFailuresDependencies.1"});
return{declarative:function(c,g){e&&e("mark","functional:aui-da-"+c+":"+g)},element:function(e,g){c.csa&&e&&e instanceof HTMLElement&&csa("Content",{element:e})("mark","functional:"+g)}}})});
/* ******** */
(function(f){var e=window.AmazonUIPageJS||window.P,n=e._namespace||e.attributeErrors,a=n?n("AmazonUIBaseJS@preload","AmazonUI"):e;a.guardFatal?a.guardFatal(f)(a,window):a.execute(function(){f(a,window)})})(function(f,e,n){"use strict";f.when("3p-promise","a-analytics","a-util","prv:a-preload-queue","prv:a-preload-strategies").register("a-preload",function(a,e,h,k,f){function m(){return new a(function(a){setTimeout(a,2500)})}function p(d,b){var p=Date.now();b=f.getStrategy(d,b)(d,b);var g=a.race([b.promise,
m()]).then(function(){e.increment("preload_fulfilled");return{url:d,success:!0,duration:Date.now()-p}},function(g){e.increment("preload_failed");return{url:d,success:!1,reason:g}});b.teardown&&g.then(b.teardown);return g}function l(d,b){if("string"===typeof d){if(!d.trim())return a.resolve();e.increment("preload_asks");return k(b).then(function(a){return p(d,b).then(a)})}return h.isArray(d)?a.all(d.map(function(a){return l(a,b)})):a.reject("not an URL or URL list")}return{preload:l}});f.when("3p-promise").register("prv:a-preload-queue",
function(a){function e(){if(h){var a=(k.length?k:m?q:[]).pop();a&&(h--,a())}}var h=5,k=[],q=[],m=!1;f.when("afterLoad").execute(function(){m=!0;for(var a=h;0<a;a--)e()});return function(f){function l(){l=function(){};h++;e()}return(new a(function(a){var b=f?k:q;b.splice(Math.round(Math.random()*b.length),0,a);e()})).then(function(){return function(a){l();return a}})}});f.when("3p-promise","a-util").register("prv:a-preload-strategies",function(a,f){function h(a){a=(a=/^(?:[^?#]+)[.]([a-z2]+)(?:[?#].*)?$/.exec(a))&&
a[1]||"";return"js"===a?"script":"css"===a?"style":/^gif|jpe?g|png$/.test(a)?"image":/^woff2?$/.test(a)?"font":"fetch"}function k(a,c){var g=/^(https?:|[/][/])/;return!(new RegExp("^("+c.protocol+")?//"+c.hostname+"/")).test(a)&&g.test(a)}function q(g){return function(c){var b=document.createElement("link");return{promise:new a(function(a,f){try{var d=h(c);b.rel=g;b.as=d;if("font"==d||"script"==d&&k(c,e.location))b.crossOrigin="anonymous";b.href=c;b.onerror=b.onload=a;document.head.appendChild(b)}catch(u){f("failed to preload link loader")}}),
teardown:function(){b&&b.parentElement&&b.parentElement.removeChild(b)}}}}function m(b){var c=new Image;return{promise:new a(function(a,g){try{c.style.display="none",c.onerror=c.onload=a,c.src=b,document.documentElement.appendChild(c)}catch(r){g("failed to preload image loader")}}),teardown:function(){c&&c.parentElement&&c.parentElement.removeChild(c)}}}function p(b){return{promise:new a(function(a,g){try{var c=new XMLHttpRequest;c.open("GET",b,!0);c.onreadystatechange=function(){4==this.readyState&&
a()};c.send()}catch(r){g("failed to preload ajax loader")}})}}function l(b){return{promise:new a(function(a,g){try{var c=h(b),d={mode:"font"==c||"script"==c&&k(b,e.location)?"cors":"no-cors"};e.fetch(b,d).finally(a)}catch(t){g("failed to preload fetch loader")}})}}var d=!!e.fetch,b=!1;(function(){try{var a=document.createElement("link");b=a.relList.supports("preload");a.relList.supports("prefetch")}catch(c){}})();var n=b?q("preload"):function(){};return{getStrategy:function(a,c){a=h(a);return b&&
c?n:"image"===a?m:d?l:p}}})});
/* ******** */
(function(c){var b=window.AmazonUIPageJS||window.P,d=b._namespace||b.attributeErrors,a=d?d("AmazonUIBaseJS@touch","AmazonUI"):b;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,b,d){});
/* ******** */
(function(a){var c=window.AmazonUIPageJS||window.P,d=c._namespace||c.attributeErrors,b=d?d("AmazonUIBaseJS@A","AmazonUI"):c;b.guardFatal?b.guardFatal(a)(b,window):b.execute(function(){a(b,window)})})(function(a,c,d){"use strict";a.when("a-bodyBegin").execute("build-A",function(){var b=a.execute().decorate,c=a.when("a-util","a-defer","a-base","a-events","a-declarative","a-state","a-ajax","a-animate","a-image","a-constants","a-detect","a-browser-events","a-preload","a-prefix","a-request-animation-frame",
"a-class","a-draggable").register("A",function(a){function e(b,e,d,f){this._guard=b;this._logError=e;this._guardTime=d;a.each(c,function(c){a.extend(this,new c.constructor(b,e))},this)}var c=[];e.prototype={};a.each(arguments,function(d){b&&d.constructor!==Object?c.push(d):(delete d.constructor,a.extend(e.prototype,d))});return b?e:e.prototype});b&&c.decorate(function(b,a){return new b(a.guard,a.logError,a.guardTime)})})});
/* ******** */
(function(c){var f=window.AmazonUIPageJS||window.P,g=f._namespace||f.attributeErrors,d=g?g("AmazonUIButton@buttonJS","AmazonUI"):f;d.guardFatal?d.guardFatal(c)(d,window):d.execute(function(){c(d,window)})})(function(c,f,g){c.when("A","a-component").register("a-button",function(d,l){function e(a){a.preventDefault()}var h=l.create({_componentName:"button",init:function(a,b){this._super(a,b);this._$element=this._$element.filter(".a-button");this._$coreFormElement=this._$element.children(".a-button-inner").children("button,input");
this._$coreLinkElement=this._$element.children(".a-button-inner").children("a");this._$contentElement=this._$element.find(".a-button-text");this._$accessibleElement=this._$element.children(".a-button-inner").find('[role\x3d"radio"]');0>=this._$accessibleElement.length&&(this._$accessibleElement=this._$element.filter("[role\x3d'radio']"))},mixin:"show hide toggle isEmpty size on off trigger".split(" "),enable:function(){this._$element.removeClass("a-button-disabled");this._$coreFormElement.prop("disabled",
!1);this._$coreLinkElement.unbind("click",e);this._$coreLinkElement.removeAttr("aria-disabled");return this},disable:function(){this._$element.addClass("a-button-disabled").removeClass("a-button-focus");this._$coreFormElement.prop("disabled",!0);this._$coreLinkElement.click(e);this._$coreLinkElement.attr("aria-disabled","true");return this},isEnabled:function(){return!this._$element.hasClass("a-button-disabled")},setStatus:function(a){var b=this._$element,e=[null,"normal","selected","disabled","error",
"inactive"],k=0>d.indexOfArray(e,a),m="radio"===b.attr("role");if(k)return c.error(a+" is not a valid status"),!1;d.each(e,function(a){b.removeClass("a-button-"+a)});this._$coreFormElement.prop("disabled","disabled"===a);this._$accessibleElement.attr("aria-checked",function(b,k){return m?"selected"===a:k});null!==a&&b.addClass("a-button-"+a);return this},text:function(a){if(!(1>this._$contentElement.length)){if("undefined"===typeof a)return this._$contentElement.text();this._$contentElement.text(a);
return this}}});return function(a,b){return new h(a,b)}});"use strict";c.when("A","a-component").register("a-toggle-button",function(d,c){function e(a){a.preventDefault()}function h(a){d.each(b,function(b){a._$element.removeClass(b)},a)}function a(a){return 0===a._$element.length||0===a._$coreFormElement.length}var b=["a-button-selected","a-button-focus"],f=c.create({_componentName:"toggleButton",init:function(a,b){this._super(a,b);this._$element=this._$element.filter(".a-button");this._$coreFormElement=
this._$element.find(".a-button-inner").find("button,input");this._$coreLinkElement=this._$element.find(".a-button-inner a");this._$accessibleElement=this._$element.children(".a-button-inner").find('[role\x3d"radio"]');0>=this._$accessibleElement.length&&(this._$accessibleElement=this._$element.filter("[role\x3d'radio']"))},name:function(){return this._$coreFormElement.attr("name")},enable:function(){this._$element.removeClass("a-button-disabled");this._$coreFormElement.prop("disabled",!1);this._$coreLinkElement.unbind("click",
e);return this},disable:function(){h(this);this._$element.addClass("a-button-disabled");this._$coreFormElement.prop("disabled",!0);this._$coreLinkElement.click(e);return this},setAvailable:function(){this._$element.removeClass("a-button-unavailable");return this},setUnavailable:function(){this._$element.addClass("a-button-unavailable");return this},isEnabled:function(){return!a(this)&&!this._$element.hasClass("a-button-disabled")},setSelected:function(){!a(this)&&this.isEnabled()&&(this._$element.addClass("a-button-selected a-button-focus"),
this._$accessibleElement.attr("aria-checked","true"));return this},setUnselected:function(){h(this);this._$accessibleElement.attr("aria-checked","false");return this},isSelected:function(){return!a(this)&&this._$element.hasClass("a-button-selected")},isAvailable:function(){return!a(this)&&!this._$element.hasClass("a-button-unavailable")}});return function(a,b){return new f(a,b)}});"use strict";c.when("A","a-component","a-toggle-button").register("a-toggle-button-group",function(d,c,e){var f=c.create({_componentName:"toggleButtonGroup",
init:function(a,b){this._super(a,b);this._$toggleGroupElement=this._$element.filter(".a-button-group, .a-button-toggle-group").eq(0);this._$toggleGroupName=(a=this._$toggleGroupElement.data("a-button-group"))?a.name:g},name:function(){return this._$toggleGroupName},getToggleButtonByName:function(a){return this.getToggleButtonBySelector(".a-button:has([name\x3d"+a+"])")},setSelected:function(a){a=this.getToggleButtonBySelector(a);a.isEnabled()&&(this.getSelected().setUnselected(),a.setSelected());
return this},getSelected:function(){return this.getToggleButtonBySelector(".a-button.a-button-selected")},getToggleButtonBySelector:function(a){return e(this._$toggleGroupElement.find(a))}});return function(a,b){return new f(a,b)}})});
/* ******** */
(function(c){var e=window.AmazonUIPageJS||window.P,f=e._namespace||e.attributeErrors,a=f?f("AmazonUIMeter","AmazonUI"):e;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,e,f){c.when("A","ready").register("a-meters",function(a){var b=a.$;if(document.getElementsByClassName){var c=function(a){a.removeClass("a-meter-unfilled").addClass("a-meter-filled")};b(".a-meter-bar").not(".a-manual-animation").each(function(){var d=b(this);a.onScreen(d,0)||d.addClass("a-meter-unfilled")});
b("body").addClass("a-meter-animate");a.on("resize orientationchange scroll",function(d){b(".a-meter-unfilled").each(function(){var d=b(this);a.onScreen(d,0)&&c(d)})});a.on("a:popover:afterShow",function(a){"ajax"!==a.popover.currentDataStrategy&&(a=a.popover.$popover.find(".a-meter-unfilled"),a.length&&c(a))});a.on("a:popover:ajaxContentLoaded",function(d){var b=d.popover.$popover.find(".a-meter-bar").not(".a-manual-animation");b.length&&(b.addClass("a-meter-unfilled"),a.delay(function(){c(b)},17))})}})});
/* ******** */
(function(d){var g=window.AmazonUIPageJS||window.P,f=g._namespace||g.attributeErrors,a=f?f("AmazonUIFont","AmazonUI"):g;a.guardFatal?a.guardFatal(d)(a,window):a.execute(function(){d(a,window)})})(function(d,g,f){d.when("jQuery","A","3p-promise").register("a-fonts",function(a,d,l){function m(a,d){var b=e&&e[a]?e:d;return function(){return b[a].apply(b,arguments)}}var h=[],b=a("body"),f=function(){return new l(function(a,b){var e=g.setInterval(function(){d.reduce(h,function(a,b){return a&&"loaded"===
b.status},!0)&&(a(),clearInterval(e))},50)})}(),k={load:function(d){return new l(function(e,f){var c={variant:d,status:"unloaded"};h.push(c);c.$loader=a("\x3cspan\x3e.\x3c/span\x3e",{"class":"aok-hidden"}).css("font",c.variant).appendTo(b);c.status="loading";c.$checker=a("\x3cspan\x3e.\x3c/span\x3e",{"class":"aok-hidden"}).appendTo(b);c.intervalId=g.setInterval(function(){c.$checker.css("font",c.variant+', Consolas, "Courier New", Courier, monospace');var a=c.$checker.width(),b=c.$checker.height();
c.$checker.css("fontFamily",'Consolas, "Courier New", Courier, monospace');if(c.$checker.width()!==a||c.$checker.height()!==b)e(c.variant),c.status="loaded",c.$loader.remove(),c.$checker.remove(),clearInterval(c.intervalId)},50)})},check:function(a){d.each(h,function(b){if(b.variant===a)return"loaded"===b.status});return!1},ready:f},e=document.fonts;e&&e.ready&&(f=e.ready.then?e.ready:e.ready.apply(e));return{load:m("load",k),check:m("check",k),ready:f}});"use strict";d.when("A","a-fonts","prv:a-capabilities",
"load").register("prv:a-custom-font-loader",function(a,d,f){return function(g,h){!f.isUCBrowser&&a.localStorage&&-1===a.indexOfArray((a.localStorage.getItem("a-font-class")||"").split(" "),g)&&(d.ready.then(function(b){b=a.localStorage.getItem("a-font-class")||"";b+=(b.length?" ":"")+g;a.localStorage.setItem("a-font-class",b)}),a.each(h,function(a){d.load(a)}))}});"use strict";d.when("prv:a-custom-font-loader").execute("a-ember-loader",function(a){a("a-ember","1em Amazon Ember;bold 1em Amazon Ember;200 1em Amazon Ember;500 1em Amazon Ember;italic 1em Amazon Ember;italic bold 1em Amazon Ember;italic 200 1em Amazon Ember;italic 500 1em Amazon Ember".split(";"))})});
/* ******** */
(function(n){var E=window.AmazonUIPageJS||window.P,z=E._namespace||E.attributeErrors,e=z?z("AmazonUICarousel","AmazonUI"):E;e.guardFatal?e.guardFatal(n)(e,window):e.execute(function(){n(e,window)})})(function(n,E,z){n.declare("a-carousel-constants",{ANIMATING:"animating",ANIMATION_SPEED:"animation_speed",AUTO_ADJUST_HEIGHT:"auto_adjust_height",CIRCULAR:"circular",CURRENT_PIXEL:"px",CURRENTLY_WRAPPING:"currentlyWrapping",DELAY_TIME:"delay_time",ELEMENT_CSS_CLASS:"elementCssClass",FETCHED_ITEMS:"fetchedItems",
FIRST_VISIBLE_ITEM:"firstVisibleItem",HEIGHT_ANIMATION_SPEED:"height_animation_speed",HIDE_OFF_SCREEN:"hide_off_screen",INIT_EVENTS:"a:pageUpdate beforeReady",LOADING:"loading",MIN_GUTTER:"minimum_gutter_width",NAME:"name",NO_TRANSITION:"no_transition",PAGE_NUMBER:"pageNumber",PAGE_SIZE:"pageSize",PEEK_GRADIENT:"peek_gradient",PEEK_PERCENTAGE:"peek_percentage",PEEK_WIDTH:"peek_width",SET_SIZE:"set_size",SHOW_PARTIAL_NEXT:"show_partial_next",SPRINGINESS:"springiness",STATIC_LOADER_CSS_CLASS:"staticLoaderCssClass",
TOTAL_PAGES:"totalPages",TOUCH_EASING:"touch_easing",TRANSITION_STRATEGY:"transitionStrategy",DISPLAY_STRATEGY:"displayStrategy",WRAP_EASING:"wrap_easing",TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX:"transitionSlideCircularFirstCardIndex",NEXT_REQUEST_SIZE:"next_request_size",LOADING_THRESHOLD_PIXELS:"loading_threshold_pixels"});"use strict";n.when("jQuery").register("a-carousel-utils",function(e){function m(f){return"string"===typeof f}function g(f){return f&&f.nodeType!==z}function d(f){return""===
f?"\x3cdiv\x3e\x3c/div\x3e":f?m(f)||g(f)?f:d(f.content):null}function k(f){f&&(m(f)||g(f)?f=!0:f.content=k(f.content));return f}return{addElementToDom:function(f,d){if(d){if(m(d))f.html(d);else if(g(d))if(e(d).hasClass("a-carousel-card-fragment")){var c=e(d).clone();f.empty().append(c.contents())}else f.empty().append(d);!0!==d&&f.removeClass("a-carousel-card-empty")}},clearElementFromItem:k,getElementFromItem:d,isElement:g,isString:m}});"use strict";n.register("a-carousel-circular-utils",function(){function e(e){var d=
0<e;return function(e,f,h){var c=f.length;h=(h||1)%c;e=e.get(0);for(var b,a=0;a<h;a++)d?(b=f.get(a),e.appendChild(b)):(b=f.get(c-1-a),e.insertBefore(b,e.children[0]))}}function m(e){var d=0<e;return function(e,f){f=f?f%e.length:1;d?e=e.concat(e.splice(0,f)):e.unshift.apply(e,e.splice(e.length-f,f));return e}}return{rotateCW:e(1),rotateCCW:e(-1),rotateArrayCW:m(1),rotateArrayCCW:m(-1),firstCardIndexAfterRotate:function(e,d,k){e=(d+e)%k;0===e?e=k:0>e&&(e=k+e);return e},relativeIndexFromIndex:function(e,
d,k){var f=1;if(0<e&&e<=k)return e>d?f=e-d+1:e<d&&(f=k-d+e+1),f;n.error("idx should be between 1 and "+k,"a-carousel-circular-utils","relativeIndexFromIndex")}}});"use strict";n.when("A","jQuery").register("a-carousel-measure",function(e,m){return function(g){function d(d,h,c){var b,a,p;h.jquery||(h=m(h));for(e.each(c,function(b){if("top"===b||"left"===b)return a=h.offset(),!1});void 0!==(b=c.pop());){var f=d[b];"left"===b||"top"===b?d[b]=a[b]:-1<b.indexOf("outer")?d[b]=h[b](!0):d[b]=h["outer"+b.charAt(0).toUpperCase()+
b.substr(1)]();d[b]!==f&&(void 0===p&&(p={}),p[b]=f)}return p}var k={carousel:{height:0,width:0,outerHeight:0,outerWidth:0},viewport:{height:0,width:0,outerHeight:0,outerWidth:0},items:[],getFirstCardWidth:function(){return void 0===this.items[0]||!e.isFiniteNumber(this.items[0].width)||0>=this.items[0].width?160:this.items[0].width}};g.measure=function(f){var h=this.dom.$carousel,c=this.dom.$viewport,b={};f&&(f=f.split(" "));if(!f||-1<e.indexOfArray(f,"carousel"))b.carousel=d(k.carousel,h,"top left height width outerHeight outerWidth".split(" "));
if(!f||-1<e.indexOfArray(f,"viewport"))b.viewport=d(k.viewport,c,["height","width","outerHeight","outerWidth"]);if(!f||-1<e.indexOfArray(f,"items"))k.items=[],b.items={},h.children("li").each(function(a,c){k.items[a]={};c=d(k.items[a],c,"top left height width outerHeight outerWidth".split(" "));void 0!==c&&(b.items[a]=c)});return b};g.getItemOffset=function(e){var d=k.items;e--;var c=0;if(d&&d.length&&e<d.length){for(var b=d[0].outerWidth,a=0;a<e;a++)c+=d[a]?d[a].outerWidth:b;0<e&&this.getAttr("first_item_flush_left")&&
(c+=g.getAttr("currentGutter"))}return c};g.getDimensions=function(){return e.copy(k)};g.updateDimensionsCache=function(d){e.extend(k,d)};g.getViewportWidth=function(){try{return k.viewport.width}catch(f){}}}});"use strict";n.when("A","jQuery").register("a-carousel-attributes",function(e,m){return function(g,d){var k={},f={},h={};e.extend(k,d);g.onChange=function(c,b){c=c.split(" ");for(var a=c.length,d;a--;)d=c[a],f[d]||(f[d]=[]),m.isFunction(b)&&-1===e.indexOfArray(f[d],b)&&f[d].push(b);return this};
g.unbind=function(c,b){f[c]&&b&&(b=e.indexOfArray(f[c],b),-1<b&&f[c].splice(b,1));return this};g.once=function(c,b){var a=function(){b.apply(null,arguments);g.unbind(c,a)};return g.onChange(c,a)};g.setAttr=function(c,b,a){var d=k[c];k[c]=b;if(!(a||h[c]||e.equals(b,d))){h[c]=!0;b=e.copy(b);d=e.copy(d);if(f[c]){a=e.copy(f[c]);for(var t=0,x=a.length;t<x;t++)a[t](b,d,g,c)}b={newValue:b,oldValue:d,carousel:g};e.trigger("a:carousel:change:"+c,b);k.name&&e.trigger("a:carousel:"+k.name+":change:"+c,b);h[c]=
!1}return this};g.getAttr=function(c){return e.copy(k[c])}}});"use strict";n.when("A","jQuery","a-carousel-measure","a-carousel-attributes","a-carousel-strategies","a-carousel-constants","a-analytics","prv:a-capabilities").register("a-carousel-base",function(e,m,g,d,k,f,h,c){function b(a){var b=a.getAttr("set_size")<=a.getAttr("pageSize"),c=a.getAttr(f.NO_TRANSITION);1===a.getAttr("totalPages")&&1<a.getAttr("pageNumber")&&a.gotoPage(1,{startover:!0,animationDuration:0});a.dom.$container.find(".a-carousel-left, .a-carousel-right").css("visibility",
b||c?"hidden":"visible")}function a(a,b){return isNaN(a)?(n.log("`set_size` should be an integer: "+a,"WARN","aui:carousel:base"),b):parseInt(a,10)}function p(a){a.onChange("pageSize",function(b,c){var l=a.getAttr("firstVisibleItem"),e=Math.ceil(l/b);1===e&&1<l?e=2:1>e&&(e=1);a.setAttr("pageNumber",e);a.setAttr("totalPages",Math.ceil(a.getAttr("set_size")/b));l=a.getAttr("ajax");b>c&&(l&&l.prefetch_next_page?a.strategies.ajax.wantNextPage(a):a.strategies.ajax.wantCurrentPage(a))});a.onChange("set_size",
function(b,c){var l=a.getAttr("pageSize"),e=a.getAttr("fetchedItems");a.setAttr("totalPages",Math.ceil(b/l));b<c?(e.splice(b,Number.MAX_VALUE),a.setAttr("fetchedItems",e)):a.strategies.ajax.wantCurrentPage&&a.strategies.ajax.wantCurrentPage(a)});a.onChange("firstVisibleItem",function(b){a.dom.$container.find("input.a-carousel-firstvisibleitem").val(b)});a.onChange("pageNumber",function(b){0<b&&b<=a.getAttr("totalPages")&&a.setAttr("currentlyWrapping",!1)})}function t(b,l,c){if(0!==arguments.length){b.jquery||
(b=m(b));this.dom={$container:b,$viewport:b.hasClass("a-carousel-viewport")?b:b.find(".a-carousel-viewport").eq(0),$carousel:b.find(".a-carousel").eq(0)};!b.length||this.dom.$viewport.length&&this.dom.$carousel.length||h.logError("[AUI] CarouselContainer does not have CarouselContent.","ERROR",JSON.stringify({xpath:e.xpath(b.get(0)),cssSelector:e.cssSelector(b.get(0)),custody:e.attributionChain(b.get(0))}));var p={totalPages:1E3,pageNumber:1,pageSize:0,firstVisibleItem:1,initThreshold:100,maintain_state:!0,
px:0,auto_adjust_height:!0,ajax:{}};e.extend(p,c);p.maintain_state=!!p.maintain_state;p.id_list?p.set_size||(p.set_size=p.id_list.length):p.id_list=[];var x=this.dom.$carousel.children("li");if(p.set_size)p.set_size=a(p.set_size,x.length);else{var f=parseInt(x.first().attr("aria-setsize"),10);e.isFiniteNumber(f)&&0<f?p.set_size=f:p.set_size=x.length}var w=[];this.dom.$carousel.children("li").each(function(a,b){w.push(m(b).hasClass("a-carousel-card-empty")?"":e.trim(b.innerHTML))});p.fetchedItems=
w;g(this);d(this,p);this.strategies=l;return this}}e.each(k,function(a,b){t.prototype["set"+b.charAt(0).toUpperCase()+b.slice(1)+"Strategy"]=function(a){this.strategies[name]=a;"function"===typeof a.init&&a.init(this)}});k=t.prototype;k.gotoNextPage=function(a){this.getAttr("transitionPaused")||(this.strategies.transition.gotoNextPage(this,a),a&&a.accessibleSafe&&this.strategies.accessibility.nextPage(this,a.animationDuration,a.animationSpeed))};k.gotoPrevPage=function(a){this.getAttr("transitionPaused")||
(this.strategies.transition.gotoPrevPage(this,a),a&&a.accessibleSafe&&this.strategies.accessibility.prevPage(this,a.animationDuration,a.animationSpeed))};k.gotoPage=function(a,b){this.getAttr("transitionPaused")||(this.strategies.transition.gotoPage(this,a,b),b&&b.accessibleSafe&&this.strategies.accessibility.gotoPage(this,b.animationDuration,b.animationSpeed))};k.gotoIndex=function(a,b){(!this.getAttr("transitionPaused")||b&&b.ignorePause)&&this.strategies.transition.gotoIndex(this,a,b)};k.gotoPixel=
function(a,b){this.getAttr("transitionPaused")||this.strategies.transition.gotoPixel(this,a,b)};k.resize=function(){if(this.dom.$container.is(":visible")){var a=this.measure("carousel viewport");this.strategies.display.resize(this,a)}};k.pause=function(){this.setAttr("transitionPaused",!0)};k.resume=function(){this.setAttr("transitionPaused",!1)};k.triggerEvent=function(a,b){b=b||{};b.carousel=this;e.trigger("a:carousel:"+a,b);var c=this.getAttr("name");c&&e.trigger("a:carousel:"+c+":"+a,b)};k.getStaticLoader=
function(){return this.getAttr(f.STATIC_LOADER_CSS_CLASS)?'\x3cdiv class\x3d"'+this.getAttr(f.STATIC_LOADER_CSS_CLASS)+'"\x3e\x3c/div\x3e':""};k.getEmptyCard=function(a,b){var c="a-carousel-card a-carousel-card-empty";this.getAttr(f.ELEMENT_CSS_CLASS)&&(c=c+" "+this.getAttr(f.ELEMENT_CSS_CLASS));return['\x3cli class\x3d"',c,'" role\x3d"listitem" aria-setsize\x3d"',b,'" aria-posinset\x3d"',a,'"\x3e',this.getStaticLoader(),"\x3c/li\x3e"].join("")};k.initTouchHandling=function(){var a=this,b=a.dom.$viewport;
if(b.length&&((e.capabilities.touch||e.capabilities.pointerPrefix)&&n.when("a-touch").execute(function(c){b.addClass("a-gesture a-gesture-horizontal").bind("pan-horizontal swipe-horizontal",function(){return!1});e.on("a:swipe-horizontal:"+b[0].id,function(b){if(!a.getAttr("transitionPaused")&&a.strategies.transition.onSwipe)a.strategies.transition.onSwipe(a,b)});if(!a.getAttr("disable_panning"))e.on("a:pan-horizontal:"+b[0].id,function(b){if(!a.getAttr("transitionPaused")&&a.strategies.transition.onPan)a.strategies.transition.onPan(a,
b)})}),c.isIE10||c.isIE11Plus)){var d=function(a){a.stopPropagation();a.preventDefault();document.body.removeEventListener("click",d,!0)};b.bind(e.action.start,function(a){b.bind("swipe-horizontal.a-ssiec pan-horizontal.a-ssiec",function(a){b.unbind(".a-ssiec");b.bind(e.action.end+".a-ssiec",function(a){b.unbind(".a-ssiec");document.body&&document.body.addEventListener("click",d,!0)})})})}};k.init=function(){var a=this,c=a.strategies,d=a.dom.$viewport[0];d&&!d.id&&(d.id="anonCarousel"+a.__id);a.dom.$carousel.contents().not(function(){return this.tagName&&
"li"===this.tagName.toLowerCase()}).remove();e.each(a.strategies,function(b){b.initAttrs&&e.each(b.initAttrs,function(b,c){var d=b;"function"===typeof b&&(d=b(a.getAttr(c)));a.setAttr(c,d)})});if(1>a.getAttr("set_size"))return c.ajax.init(a),!1;a.measure();e.each(a.strategies,function(b){b.init(a)});c=a.getAttr("pageSize");d=a.getAttr("set_size");a.setAttr("totalPages",Math.ceil(d/c));p(a);a.setAttr("isInTab",0<a.dom.$container.closest(".a-tab-content").length,!0);a.triggerEvent("init");e.each(a.strategies,
function(b){b.afterInit&&b.afterInit(a)});a.triggerEvent("afterInit");c=a.getAttr("firstVisibleItem");1===c&&a.getAttr("maintain_state")&&(c=parseInt(a.dom.$container.find("input.a-carousel-firstvisibleitem").val(),10),e.isFiniteNumber(c)&&0<c&&c<=d||(c=1));if(1<c){d=700;for(var f=Math.ceil(c/a.getAttr("pageSize")),t=2;t<f;t++)d+=700/t;a.gotoIndex(c,{animationDuration:d,easingFunction:"ease"})}b(this);a.onChange("pageSize set_size",function(){b(a)});c=a.dom.$container.find(".a-carousel-button");c.length&&
(d=c.eq(0).position().top+"px",c.css("top",d));var h=!1,g=function(b){b.preventDefault();b={startover:!0,accessibleSafe:"keydown"===b.type?!0:!1};5<a.getAttr("pageNumber")?b.animationDuration=1250:b.animationSpeed=5*a.getDimensions().viewport.width;a.gotoPage(1,b)};a.dom.$container.delegate(".a-carousel-goto-nextpage","click dblclick",function(b){h||(h=!0,b.preventDefault(),a.gotoNextPage(),e.delay(function(){h=!1},5))}).delegate(".a-carousel-goto-prevpage","click dblclick",function(b){h||(h=!0,b.preventDefault(),
a.gotoPrevPage(),e.delay(function(){h=!1},5))}).delegate(".a-carousel-goto-nextpage","keydown",function(b){if(b.which===e.constants.keycodes.ENTER||b.which===e.constants.keycodes.SPACE)b.preventDefault(),a.gotoNextPage({accessibleSafe:!0})}).delegate(".a-carousel-goto-prevpage","keydown",function(b){if(b.which===e.constants.keycodes.ENTER||b.which===e.constants.keycodes.SPACE)b.preventDefault(),a.gotoPrevPage({accessibleSafe:!0})}).delegate(".a-carousel-restart","keydown",function(a){a.which!==e.constants.keycodes.ENTER&&
a.which!==e.constants.keycodes.SPACE||g(a)}).delegate(".a-carousel-restart","click",function(a){g(a)});a.dom.$container.find(".a-carousel-page-max").html(this.getAttr("totalPages"));return!0};return t});"use strict";n.when("A","jQuery","a-carousel-base","a-carousel-constants").register("a-carousel-mobile",function(e,m,g,d){function k(c){var b=c.getAttr("loaderHeight");b||((b=c.getAttr("maxHeight"))?(b=Math.min(.9*b,90),b=Math.max(b,120)):b=90,c.setAttr("loaderHeight",b));return b}function f(c,b,a){g.call(this,
c,b,a);if(0!==arguments.length)return this.getAttr("circular")===h&&this.setAttr("circular",!1),this.getAttr("show_partial_next")===h&&this.setAttr("show_partial_next",!0),this.getAttr("hide_off_screen")===h&&this.setAttr("hide_off_screen",!1),this.getAttr("springiness")===h&&this.setAttr("springiness",.8),this.getAttr("touch_easing")===h&&this.setAttr("touch_easing","cubic-bezier(0.215, 0.610, 0.355, 1.000)"),this.init=function(){return g.prototype.init.call(this)?(this.getAttr(d.STATIC_LOADER_CSS_CLASS)||
this.dom.$carousel.children("li").children(".a-loading-static").css("height",k(this)+"px"),this.getAttr(d.NO_TRANSITION)||this.initTouchHandling(),!0):!1},this}var h;f.prototype=new g;f.prototype.constructor=f;f.prototype.getStaticLoader=function(){return this.getAttr(d.STATIC_LOADER_CSS_CLASS)?'\x3cdiv class\x3d"'+this.getAttr(d.STATIC_LOADER_CSS_CLASS)+'"\x3e\x3c/div\x3e':'\x3cdiv class\x3d"a-loading-static" style\x3d"height:'+k(this)+'px"\x3e\x3cdiv class\x3d"a-loading-static-inner"\x3e\x3c/div\x3e\x3c/div\x3e'};
return f});"use strict";n.when("A","jQuery","a-carousel-base","a-carousel-constants").register("a-carousel-desktop",function(e,m,g,d){function k(c){var b=c.getAttr("set_size")<=c.getAttr("pageSize"),a=c.getAttr(d.NO_TRANSITION);c.dom.$container.find(".a-carousel-pagination").css("visibility",b||a?"hidden":"visible")}function f(c,b,a){g.call(this,c,b,a);if(0!==arguments.length){var e=this;e.getAttr("circular")===h&&this.setAttr("circular",!0);e.getAttr("hide_off_screen")===h&&this.setAttr("hide_off_screen",
!0);e.onChange("totalPages",function(a){e.dom.$container.find(".a-carousel-page-max").html(a);a<e.getAttr("pageNumber")&&e.gotoPage(a)});e.onChange("pageNumber",function(a,b){b=e.dom.$container;var c=b.find(".a-carousel-restart-container");1<a?c.show():c.hide();b.find(".a-carousel-page-current").html(a)});e.init=function(){var a=this;return g.prototype.init.call(a)?(k(this),a.onChange("pageSize set_size",function(){k(a)}),2>a.getAttr("pageNumber")&&a.dom.$container.find(".a-carousel-restart-container").hide(),
a.getAttr(d.NO_TRANSITION)||a.initTouchHandling(),!0):!1};return e}}var h;f.prototype=new g;return f.prototype.constructor=f});"use strict";n.when("A","a-carousel-desktop","a-carousel-mobile").register("a-carousel-classes",function(e,m,g){return{desktop:m,mobile:g,"default":e.capabilities.mobile||e.capabilities.tablet?"mobile":"desktop"}});"use strict";n.when("A","jQuery","p-detect","a-carousel-constants").register("a-carousel-stretchygoodness",function(e,m,g,d){function k(a,b,c,d){a.getAttr("show_partial_next")&&
(b-=c/10);var p=a.getAttr("minimum_gutter_width");a.getAttr("set_size");a=0;for(var f=!0;0<b;)a++,b=d&&f?b-c:b-(c+p),f=!1;0>b&&a--;return e.isFiniteNumber(a)&&0<a?a:1}function f(a,b,c,d,l,f,h){"stretch"===a.getAttr("single_page_align")&&d>f&&(d=f);b-=c*d;a.getAttr("show_partial_next")?(a=b-l*(d+1),h&&(a+=l),h=a/c,b-=c*(.5<h?.5:h)):h&&(b+=l);c=Math.ceil(b/(d+1));if(!e.isFiniteNumber(c)||c<l)c=l;return c}function h(a){if(a.getAttr("auto_adjust_height"))if(a.getAttr("animating"))a.once("animating",function(){h(a)});
else{var b=a.getAttr("maxHeight"),c=a.getDimensions();b&&e.isFiniteNumber(b)||(b=1);var d=b,f=a.getAttr("pageSize"),g=f*(a.getAttr("pageNumber")-1);f=g+f-1;c=c.items;var k=c.length,m;for(a.getAttr("show_partial_next")&&f++;g<=f&&g<k;g++)(m=c[g])&&m.outerHeight>d&&(d=c[g].outerHeight||c[g].height);d>b&&(a.updateDimensionsCache({viewport:{height:d,outerHeight:d}}),a.setAttr("maxHeight",d),1===b?a.dom.$viewport.height(d):e.animate(a.dom.$viewport,{height:d},a.getAttr("height_animation_speed"),"linear"))}else a.dom.$viewport.css("height",
"")}function c(a){a.onChange("pageNumber",function(){a.getAttr("hide_off_screen")&&a.dom.$carousel.children("li").css("visibility","")});a.onChange("pageSize",function(b,c){b>c&&h(a)});a.onChange("loading",function(b){b||h(a)});a.onChange("firstVisibleItem",function(){h(a)});a.onChange("animating",function(b){if(!b&&a.getAttr("hide_off_screen")){var c=a.getAttr("firstVisibleItem")-1,d=c+a.getAttr("pageSize")-1;a.getAttr("show_partial_next")&&d++;a.dom.$carousel.children("li").each(function(a,b){a=
a>=c&&a<=d;m(b).css("visibility",a?"":"hidden")})}});a.onChange("single_page_align minimum_gutter_width",function(){b(a)});a.onChange("minimum_gutter_width",function(){b(a)})}function b(a){var b=a.getDimensions(),c=b.viewport.width;b=b.getFirstCardWidth();var d=a.getAttr("minimum_gutter_width"),l=a.getAttr("set_size"),h=a.getAttr("first_item_flush_left"),g=k(a,c,b,h),m=f(a,c,b,g,d,l,h);a.setAttr("currentGutter",m);a.setAttr("pageSize",g);var v=a.dom.$carousel,n=v.children("li");d=n.length;var r=a.getAttr("totalPages"),
A=a.getAttr("pageNumber"),C=a.getAttr("firstVisibleItem"),B=(A-1)*g+1;A>r?(C=(r-1)*g+1,a.setAttr("pageNumber",r),a.setAttr("firstVisibleItem",C)):C!==B&&(r=Math.ceil(C/g),C=(r-1)*g+1,a.setAttr("pageNumber",r),a.setAttr("firstVisibleItem",C));var F=C-1,G=F+g-1;a.getAttr("show_partial_next")&&G++;var H=a.getAttr("hide_off_screen"),I=m+"px",J=b+"px",z;n.each(function(a,b){z=!H||a>=F&&a<=G;b.style[e.capabilities.rtl?"marginRight":"marginLeft"]=h&&0===a?0:I;b.style.visibility=z?"":"hidden";b.style.width=
J});var D;a.getAttr("first_item_flush_left")?(m=n.first().outerWidth(!0),1<n.length&&(D=n.eq(1).outerWidth(!0)),r=(d-1)*D+m):(m=D=n.first().outerWidth(!0),r=d*D);g>=l?(r=c,A=a.getAttr("single_page_align"),v.toggleClass("a-text-right","right"===A),v.toggleClass("a-text-center","center"===A),"center"===A&&n.first().css("margin-left",0)):v.removeClass("a-text-right a-text-center");r=g>=l?c:r;v.css("width",r+"px");c={carousel:{width:r,outerWidth:v.outerWidth()},items:[]};for(l=0;l<d;l++)c.items.push({width:b,
outerWidth:0===l?m:D});a.updateDimensionsCache(c);a.gotoIndex(C,{animationDuration:0,ignorePause:!0});a.triggerEvent("repaint")}return{repaint:b,init:function(a){var f=a.getAttr("minimum_gutter_width");e.isFiniteNumber(f)||(f=15,a.setAttr("minimum_gutter_width",f));a.setAttr("currentGutter",f);f=a.getAttr("height_animation_speed");e.isFiniteNumber(f)||a.setAttr("height_animation_speed",200);a.setAttr("first_item_flush_left",!!a.getAttr("first_item_flush_left"));a.setAttr("show_partial_next",!!a.getAttr("show_partial_next"));
b(a);a.getAttr(d.NO_TRANSITION)||h(a);f=a.getDimensions();a.dom.$container.find(".a-carousel-left, .a-carousel-right, .a-carousel-viewport").css("height",Math.max(f.viewport.height,f.items[0]?f.items[0].height:0)+"px");f=a.getAttr("firstVisibleItem");1<f&&(a.setAttr("firstVisibleItem",f),f=Math.ceil(f/a.getAttr("pageSize")),a.gotoPage(f));c(a)},resize:function(a,c){c.viewport&&void 0!==c.viewport.width&&b(a)}}});"use strict";n.when("A","jQuery","p-detect","a-carousel-utils").register("a-carousel-display-swap",
function(e,m,g,d){function k(c){if(c.getAttr("auto_adjust_height")){var b=c.getAttr("maxHeight");b&&e.isFiniteNumber(b)||(b=1);var a=b;c.dom.$carousel.children("li").not(".a-carousel-card-empty").each(function(b,c){b=m(c).outerHeight();a=Math.max(b,a)});a>b&&(c.setAttr("maxHeight",a),g.capabilities.transition?1===b?c.dom.$viewport.height(a):e.animate(c.dom.$viewport,{height:a},c.getAttr("height_animation_speed"),"linear"):c.dom.$viewport.height(a),c.updateDimensionsCache({viewport:{height:a,outerHeight:a}}))}else c.dom.$viewport.css("height",
"")}function f(c){c.onChange("animating",function(b){b||k(c)});c.onChange("loading",function(b){b||k(c)});c.onChange("pageSize",function(b,a){c.dom.$carousel.children("li").slice(b).remove();if(b>a){a=c.getAttr("set_size");var e=c.getDimensions().getFirstCardWidth(),f=c.getAttr("currentGutter"),h=c.getAttr("fetchedItems"),l=c.getAttr("firstVisibleItem")-1,g=c.dom.$carousel.children("li"),u=document.createDocumentFragment();if(m.isArray(h)){for(var q=g.length;q<b;q++){var v=q+l;g=m(['\x3cli class\x3d"a-carousel-card a-carousel-card-empty" role\x3d"listitem" aria-setsize\x3d"',
a,'" aria-posinset\x3d"',v+1,'" style\x3d"width:',e,"px; margin-left:",f,'px;"\x3e',c.getStaticLoader()].join(""));h[v]&&d.addElementToDom(g,d.getElementFromItem(h[v]));v>=a&&g.removeClass("a-carousel-card-empty");u.appendChild(g[0])}c.dom.$carousel.append(u)}k(c)}});c.onChange("set_size",function(b,a){var d=c.getAttr("pageNumber"),f=c.getAttr("totalPages"),g=c.dom.$carousel.children("li");d===f&&b>a&&(g.length&&c.dom.$carousel.children("li").each(function(a,b){e.trim(b.innerHTML)||(b.className+=
" a-carousel-card-empty",b.innerHTML=c.getStaticLoader())}),0===a&&h(c))});c.onChange("single_page_align minimum_gutter_width",function(){h(c)});c.onChange("minimum_gutter_width",function(){h(c)})}function h(c){var b=c.getDimensions(),a=b.viewport.width,d=b.getFirstCardWidth(),f=c.getAttr("minimum_gutter_width");b=c.getAttr("set_size");var h=c.getAttr("minimum_gutter_width");c.getAttr("set_size");h=Math.max(Math.floor(a/(d+h)),1);h=e.isFiniteNumber(h)?h:1;var l=h;"stretch"===c.getAttr("single_page_align")&&
l>b&&(l=b);l=Math.ceil((a-d*l)/(l+1));e.isFiniteNumber(l)||(l=f);var g=l;c.setAttr("currentGutter",g);c.setAttr("pageSize",h);l=c.dom.$carousel;var k=l.children("li");f=k.length;d+=g;var m=f*d,v=Math.min(h,b);c.dom.$carousel.children("li").slice(v).remove();k.css("margin-left",g+"px");h>=b?(m=a,a=c.getAttr("single_page_align"),l.toggleClass("a-text-right","right"===a),l.toggleClass("a-text-center","center"===a),"center"===a&&k.first().css("margin-left",0)):l.removeClass("a-text-right a-text-center");
for(a={carousel:{width:m,outerWidth:l.outerWidth()},items:[]};f--;)a.items.push({outerWidth:d});c.updateDimensionsCache(a);c.triggerEvent("repaint")}return{repaint:h,init:function(c){var b=c.getAttr("minimum_gutter_width");b||(b=15,c.setAttr("minimum_gutter_width",b));c.setAttr("currentGutter",b);b=c.getAttr("height_animation_speed");e.isFiniteNumber(b)||c.setAttr("height_animation_speed",200);f(c);h(c);b=c.getDimensions();c.dom.$container.find(".a-carousel-left, .a-carousel-right, .a-carousel-viewport").css("height",
Math.max(b.viewport.height,b.items[0]?b.items[0].height:0)+"px");b=c.getAttr("firstVisibleItem");1<b&&(c.setAttr("firstVisibleItem",b),b=Math.ceil(b/c.getAttr("pageSize")),c.gotoPage(b))},resize:function(c,b){b.viewport&&void 0!==b.viewport.width&&h(c)}}});"use strict";n.when("A","jQuery").register("a-carousel-display-single",function(e,m){function g(d){if(d.getAttr("auto_adjust_height"))if(d.getAttr("animating"))d.once("animating",function(){g(d)});else d.dom.$viewport.css("height","auto"),e.delay(function(){d.dom.$viewport.height(d.dom.$viewport.height())},
0);else d.dom.$viewport.css("height","")}function d(d,c){var b=d.dom.$carousel.children("li"),a=d.getAttr("firstVisibleItem")-1;d=d.getAttr("show_partial_next")?2:1;a=b.slice(a,a+d);b.not(a).css("visibility","hidden");c&&a.css("visibility","")}function k(e){e.getAttr("fixed_height")||(e.dom.$viewport.delegate("img","load",function(){g(e)}),e.onChange("loading",function(c){c||g(e)}),e.onChange("pageNumber",function(){e.getAttr("hide_off_screen")&&e.dom.$carousel.children("li").css("visibility","")}),
e.onChange("animating",function(c){!c&&e.getAttr("hide_off_screen")&&d(e)}),e.onChange("minimum_gutter_width",function(){f(e)}))}function f(e){var c=e.getDimensions(),b=c.viewport.width,a=e.getAttr("show_partial_next"),f=e.getAttr("minimum_gutter_width"),g=e.getAttr("set_size"),h=e.dom.$carousel.children("li");b-=2*f;a&&(b-=f+c.viewport.width/3);h.css({width:b+"px",margin:"0 "+f+"px"});c=b+2*f;a=c*g;e.dom.$carousel.width(a);for(a={carousel:{width:a},items:[]};g--;)a.items[g]={width:b,outerWidth:c};
e.updateDimensionsCache(a);e.getAttr("hide_off_screen")&&d(e,!0);e.gotoIndex(e.getAttr("firstVisibleItem"),{animationDuration:0,ignorePause:!0});e.triggerEvent("repaint")}return{repaint:f,init:function(d){var c=d.getAttr("minimum_gutter_width");d.setAttr("minimum_gutter_width",e.isFiniteNumber(c)?c:14);d.setAttr("show_partial_next",!!d.getAttr("show_partial_next"));d.setAttr("pageSize",1);d.setAttr("pageSize",1);c=d.getAttr("fixed_height");e.isFiniteNumber(c)?d.dom.$viewport.height(c):d.setAttr("fixed_height",
!1);d.dom.$carousel.children("li").css("visibility","visible");k(d);this.repaint(d);g(d)},resize:function(d,c){c.viewport&&void 0!==c.viewport.width&&(this.repaint(d),d.getAttr("fixed_height")||g(d))}}});"use strict";n.when("A","jQuery","a-carousel-constants").register("a-carousel-display-peekcircular",function(e,m,g){function d(d){return function(f){return e.isFiniteNumber(f)?f:d}}m={};m[g.PAGE_SIZE]=1;m[g.MIN_GUTTER]=d(14);m[g.PEEK_PERCENTAGE]=d(10);return{initAttrs:m,init:function(d){var e=this;
d.onChange(g.PEEK_PERCENTAGE,function(f,c){e.repaint(d)});d.dom.$carousel.children("li").css("visibility","visible");e.repaint(d)},repaint:function(d){var f=d.getAttr(g.MIN_GUTTER),h=d.getAttr(g.SET_SIZE),c=d.getAttr(g.PEEK_PERCENTAGE),b=d.getDimensions().viewport.width,a=d.dom.$carousel,p=a.children("li");c=c/100*b;var t=b-2*c-f,k=t+2*f;b=k*h;a.width(b);p.css({width:t+"px","margin-left":f+"px","margin-right":f+"px"});d.updateDimensionsCache({carousel:{width:b},items:e.map(e.range(h),function(){return{width:t,
outerWidth:k}})});d.setAttr(g.PEEK_WIDTH,c,!1);d.triggerEvent("repaint")},resize:function(d,e){e.viewport&&e.viewport.width!==z&&this.repaint(d)}}});"use strict";n.when("A").register("a-carousel-display-variablewidth",function(e){return{init:e.constants.NOOP,resize:e.constants.NOOP,repaint:e.constants.NOOP}});"use strict";n.when("a-carousel-stretchygoodness","a-carousel-display-swap","a-carousel-display-single","a-carousel-display-peekcircular","a-carousel-display-variablewidth").register("a-carousel-strategies-display",
function(e,m,g,d,k){return{swap:m,single:g,peekCircular:d,stretchyGoodness:e,variableWidth:k,"default":"stretchyGoodness"}});"use strict";n.when("A","jQuery","a-carousel-utils").register("a-carousel-transition-swap",function(e,m,g){function d(d,b){var a=d.getAttr("preloadedImages");a||(a=[]);for(var c=[],f=b.length-1;0<=f;f--)if(b[f]&&!a[f]){var h=g.getElementFromItem(b[f]);h&&m("img",h).each(function(){c.push(this.src)});a[f]=!0}e.preload(c);d.setAttr("preloadedImages",a)}function k(d){return"number"===
typeof d?d?0>d?-1:1:isNaN(d)?NaN:0:NaN}function f(d,b){d.getAttr("pageNumber");d.getAttr("pageSize");var a=d.getAttr("firstVisibleItem"),c=d.getAttr("delay_time"),f=d.dom.$carousel.children("li"),h=f.filter(".a-carousel-card-empty");h.length&&d.setAttr("loading",!0);h.each(function(l,p){var w=m(p);p=f.index(p)+a-1;var k=b[p];k&&e.delay(function(){g.addElementToDom(w,g.getElementFromItem(k));l===h.length-1&&d.setAttr("loading",!1)},0+c)})}function h(d,b,a){a=a||{};var c=d.getAttr("pageNumber");if(b!==
c){var f=d.getAttr("set_size"),h=d.getAttr("totalPages"),l=d.getAttr("circular"),w=d.getAttr("pageSize"),m=a.delayTime||d.getAttr("delay_time"),q=k(a.direction)||NaN;!l&&1>b?b=1:!l&&b>h?b=h:l&&1>b?b=h:l&&b>h&&(b=1);q||(q=c<b?1:-1);a.startover&&(q=m=1);var v=w*(b-1),n=1===q?0:w-1;d.setAttr("pageNumber",b);d.setAttr("firstVisibleItem",v+1);d.setAttr("animating",!0);var r=e.interval(function(){var a=v+n;if(r!==d.getAttr("responsiveTimerId"))clearInterval(r);else if(-1===q&&0>n||1===q&&n>=w)d.setAttr("responsiveTimerId",
z),d.setAttr("animating",!1);else{var b=d.dom.$carousel.children("li").eq(n),c=d.getAttr("fetchedItems")[a];c?g.addElementToDom(b,g.getElementFromItem(c)):a<f?b.html(d.getStaticLoader()).addClass("a-carousel-card-empty"):b.empty().removeClass("a-carousel-card-empty");n+=q}},m);d.setAttr("responsiveTimerId",r)}}return{init:function(c){var b=c.getAttr("delay_time");e.isFiniteNumber(b)||c.setAttr("delay_time",30);c.onChange("responsiveTimerId",function(a,b){b!==a&&clearInterval(b)});c.onChange("fetchedItems",
function(a,b){f(c,a);d(c,a)});d(c,c.getAttr("fetchedItems"))},gotoIndex:function(d,b,a){a=a||{};var c=d.getAttr("pageSize");h(d,Math.ceil(b/c),a)},gotoNextPage:function(d,b){b=b||{};var a=d.getAttr("pageNumber");b.direction=-1;h(d,++a,b)},gotoPrevPage:function(d,b){b=b||{};var a=d.getAttr("pageNumber");b.direction=1;h(d,--a,b)},gotoPage:h}});"use strict";n.when("A","jQuery","a-carousel-utils","a-carousel-constants").register("a-carousel-transition-slide",function(e,m,g,d){function k(b){var a=b.dom.$carousel.children("li").length,
e=a+1,c=b.getAttr(d.SET_SIZE),f=c-a;if(0<f){f=e+f-1;for(var l=[];e<=f;e++)l.push(b.getEmptyCard(e,c));b.dom.$carousel.append(l.join(""));b.setAttr(d.LOADING,!0);f=b.getAttr(d.FETCHED_ITEMS);l=b.dom.$carousel.children("li");var h;for(e=a;e<c;e++)if(h=f[e]){var k=g.getElementFromItem(h);a=l.eq(e);g.addElementToDom(a,k);f[e]=g.clearElementFromItem(h)}b.strategies.display.repaint&&b.strategies.display.repaint(b);b.setAttr(d.FETCHED_ITEMS,f,!0);b.setAttr(d.LOADING,!1)}}function f(b,a,c){if(b.getAttr(d.ANIMATING))b.once(d.ANIMATING,
function(){f(b,a,c)});else{var h=b.getDimensions().items,p=[];if(!c||a.length>=c.length){b.setAttr(d.LOADING,!0);for(var l=b.dom.$carousel.children("li"),k,m,q=a.length;q--;)if(m=a[q],null===m&&p.push(q),m&&!e.equals(m,c[q])&&!0!==m&&!0!==m.content){var n=g.getElementFromItem(m);k=l.eq(q);k.length&&(g.addElementToDom(k,n),h[q]={width:k.outerWidth(),outerWidth:k.outerWidth(!0),height:k.outerHeight(),outerHeight:k.outerHeight(!0)},a[q]=g.clearElementFromItem(m))}p.length&&(e.each(p,function(b){l.eq(b).remove();
a.splice(b,1)}),b.setAttr(d.SET_SIZE,b.getAttr(d.SET_SIZE)-p.length),b.triggerEvent("repaint"))}b.setAttr(d.FETCHED_ITEMS,a);b.updateDimensionsCache({items:h});b.setAttr(d.LOADING,!1)}}var h=e.capabilities.touch?2E3:3E3,c=e.capabilities.rtl?-1:1;return{wrapToFirst:function(b){var a=b.getAttr(d.PAGE_SIZE),e=b.getDimensions().getFirstCardWidth(),c=this;b.gotoPixel(a*e*-1,{animationDuration:0,callback:function(){b.setAttr(d.CURRENTLY_WRAPPING,!1);c.gotoPage(b,1)}})},wrapToLast:function(b){b.getAttr(d.PAGE_SIZE);
var a=b.getAttr(d.TOTAL_PAGES),e=this,c=b.getDimensions().carousel.width;b.gotoPixel(c,{animationDuration:0,callback:function(){b.setAttr(d.CURRENTLY_WRAPPING,!1);e.gotoPage(b,a)}})},gotoPage:function(b,a,e){e=e||{};(void 0===e.animationDuration||0<e.animationDuration)&&!e.silent&&b.setAttr(d.ANIMATING,!0);var c=b.getAttr(d.TOTAL_PAGES);0<a&&a<=c&&b.setAttr(d.PAGE_NUMBER,a);var f=b.getAttr(d.CIRCULAR);!f&&1>a?(a=1,e.animationDuration=Math.pow(b.getAttr(d.ANIMATION_SPEED)*b.getAttr(d.SPRINGINESS))):
!f&&a>c&&(a=c,e.animationDuration=Math.pow(b.getAttr(d.ANIMATION_SPEED),b.getAttr(d.SPRINGINESS)));this.gotoIndex(b,b.getAttr(d.PAGE_SIZE)*(a-1)+1,e)},gotoIndex:function(b,a,c){c=c||{};(void 0===c.animationDuration||0<c.animationDuration)&&!c.silent&&b.setAttr(d.ANIMATING,!0);var f=b.getAttr(d.CIRCULAR)&&!b.getAttr(d.CURRENTLY_WRAPPING),g=c.callback,l=this,h=!1,k=b.getViewportWidth(),m=Math.ceil(a/b.getAttr(d.PAGE_SIZE));m!==b.getAttr(d.PAGE_NUMBER)&&0<m&&m<=b.getAttr(d.TOTAL_PAGES)&&b.setAttr(d.PAGE_NUMBER,
m);b.setAttr(d.FIRST_VISIBLE_ITEM,a);if(1>a){if(f){h=-1*k;var p=function(){g&&g();l.wrapToLast(b)}}}else a>b.getAttr(d.SET_SIZE)?f&&(h=b.getAttr(d.CURRENT_PIXEL)+k,p=function(){g&&g();l.wrapToFirst(b)}):h=b.getItemOffset(a);p?(b.setAttr(d.CURRENTLY_WRAPPING,!0),c.callback=p,c.easingFunction=c.easingFunction||b.getAttr(d.WRAP_EASING),c.animationSpeed=1.3*(e.isFiniteNumber(c.animationSpeed)?c.animationSpeed:b.getAttr(d.ANIMATION_SPEED))):c.callback=g;!1!==h&&this.gotoPixel(b,h,c)},gotoPixel:function(b,
a,c){var f=b.getAttr(d.CURRENT_PIXEL);if(a!==f){c=c||{};var g=c.easingFunction||"ease-out",l=c.callback;b.getViewportWidth();if(void 0!==c.animationDuration)var h=c.animationDuration;else h=e.isFiniteNumber(c.animationSpeed)?c.animationSpeed:b.getAttr(d.ANIMATION_SPEED),f=Math.abs(a-f),h=0===h?0:Math.floor(f/h*1E3);0<h&&!c.silent&&b.setAttr(d.ANIMATING,!0);if(e.isFiniteNumber(a)){f=0<h?function(){l&&l();b.getAttr(d.CURRENTLY_WRAPPING)||b.setAttr(d.ANIMATING,e.isAnimated(b.dom.$carousel),c.silent)}:
l;var k=e.capabilities.rtl?1:-1;b.setAttr(d.CURRENT_PIXEL,a);e.animate(b.dom.$carousel,{left:a*k},h,g,f)}else n.error("Target pixel is not a finite number","a-carousel-transition-slide","gotoPixel")}},gotoNextPage:function(b,a){var c=b.getAttr(d.PAGE_NUMBER);this.gotoPage(b,++c,a)},gotoPrevPage:function(b,a){var c=b.getAttr(d.PAGE_NUMBER);this.gotoPage(b,--c,a)},onSwipe:function(b,a){if(!b.getAttr(d.CURRENTLY_WRAPPING)){var f=b.getAttr(d.FIRST_VISIBLE_ITEM),g=b.getAttr(d.PAGE_SIZE),h=b.getAttr(d.PAGE_NUMBER),
l=0>c*a.velocityX,k=f;l&&h<b.getAttr(d.TOTAL_PAGES)?k=f+g:!l&&1<h&&(k=f-g);g=b.getAttr(d.CURRENT_PIXEL);h=b.getItemOffset(k);a=Math.abs(1E3*(l?g-h:g+h)/a.velocityX);a=Math.max(a,300);a=Math.min(a,1.2*e.viewport().width);a={animationDuration:a,easingFunction:b.getAttr(d.TOUCH_EASING)};k!==f||b.getAttr("circular")?l?b.gotoNextPage(a):b.gotoPrevPage(a):(a.animationSpeed=.95*e.viewport().width,delete a.animationDuration,b.gotoIndex(k,a))}},onPan:function(b,a){if(!b.getAttr(d.CURRENTLY_WRAPPING)){b.setAttr(d.ANIMATING,
!0);var f=b.getItemOffset(b.getAttr(d.FIRST_VISIBLE_ITEM)),g=f-c*a.touchDeltaX,h=b.getAttr(d.CIRCULAR),l=b.getAttr(d.PAGE_NUMBER),k=b.getAttr(d.TOTAL_PAGES);a.ended?(f={easingFunction:b.getAttr(d.TOUCH_EASING),animationSpeed:.95*e.viewport().width,silent:!0},a=c*a.touchDeltaX,g=Math.abs(a)<.4*b.getViewportWidth(),!h&&(0>a&&k===l||0<a&&1===l)||g?b.gotoPage(l,f):0>a?b.gotoNextPage(f):b.gotoPrevPage(f)):(!h&&(h=b.getAttr(d.SPRINGINESS),0>g&&0<a.touchDeltaX||l===k&&0>a.touchDeltaX)&&(l=Math.pow(Math.abs(a.touchDeltaX),
h),g=0>=g?-1*l:f+l),b.gotoPixel(g,{easingFunction:b.getAttr(d.TOUCH_EASING),animationDuration:0,silent:!0}))}},init:function(b){var a=b.getAttr(d.ANIMATION_SPEED);e.isFiniteNumber(a)||b.setAttr(d.ANIMATION_SPEED,h);void 0===b.getAttr(d.WRAP_EASING)&&b.setAttr(d.WRAP_EASING,"linear");k(b);b.onChange(d.FETCHED_ITEMS,function(a,d){f(b,a,d)});b.onChange(d.SET_SIZE,function(a,d){a>d&&k(b)})}}});"use strict";n.when("A","a-carousel-utils","a-carousel-circular-utils","a-carousel-constants").register("a-carousel-transition-slidecircular",
function(e,m,g,d){function k(a){var b=a.dom.$carousel.children("li").length,f=a.getAttr(d.SET_SIZE),g=f-b,l=c(a,b);0<g&&(b+=1,g=e.map(e.range(b,b+g),function(b){return a.getEmptyCard(b,f)}),l.after(g.join("")),a.measure("items"))}function f(c,e){var f=c.getAttr(d.SET_SIZE);if(2<c.getAttr(d.SET_SIZE)){var g=a(c,c.getAttr(d.FIRST_VISIBLE_ITEM)),r=Math.round(c.getAttr(d.SET_SIZE)/2);f=h(r,g,f);0!==f.quantity&&(l(c,f.direction,f.quantity),g=f.direction===u.CLOCKWISE?g-f.quantity:g+f.quantity,e.gotoPixel(c,
b(c,g),{animationDuration:0}))}}function h(a,b,d){var c={};a===b?a=b=0:a>b?(b=a-b,a=d-b):(a=b-a,b=d-a);c.direction=a<=b?u.CLOCKWISE:u.COUNTER_CLOCKWISE;c.quantity=Math.min(a,b);return c}function c(b,d){return b.dom.$carousel.children("li").eq(a(b,d)-1)}function b(a,b){var c=Math.floor(a.getAttr(d.PEEK_WIDTH)||0);return a.getItemOffset(b)-c}function a(a,b){b=b||1;var c=a.getAttr(d.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX);a=a.getAttr(d.SET_SIZE);return g.relativeIndexFromIndex(b,c,a)}function p(b,
f,g){if(b.getAttr(d.ANIMATING))b.once(d.ANIMATING,function(){p(b,f,g)});else{var l=b.getDimensions().items,h=Math.min(f.length,b.getAttr(d.SET_SIZE));if(!g||f.length>=g.length)b.setAttr(d.LOADING,!0),e.each(e.range(h),function(d){var h=d+1,k=f[d],B=c(b,h),r=k&&!(!0===k||!0===k.content);k&&!e.equals(k,g[d])&&B.length&&r&&(h=a(b,h),l[h]={width:B.outerWidth(),outerWidth:B.outerWidth(!0),height:B.outerHeight(),outerHeight:B.outerHeight(!0)},m.addElementToDom(B,m.getElementFromItem(k)),f[d]=m.clearElementFromItem(k))}),
b.setAttr(d.LOADING,!1);b.setAttr(d.FETCHED_ITEMS,f);b.updateDimensionsCache({items:l})}}function t(a){var b={reached:!1,left:!1,right:!1};if(!(2<a.getAttr(d.SET_SIZE))){var c=a.getAttr(d.PAGE_NUMBER);a=a.getAttr(d.SET_SIZE);1===c&&(b.reached=!0,b.left=!0);c===a&&(b.reached=!0,b.right=!0)}return b}function x(a,b,c){var e=t(a),f=a.getAttr(d.PAGE_NUMBER);e.reached&&e[b]?a.gotoPage(f):("right"===b?a.gotoNextPage:a.gotoPrevPage).call(a,c)}function l(a,b,c){var e=a.getAttr(d.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX)||
1,f=a.getAttr(d.SET_SIZE),l=a.dom.$carousel.children("li"),h=a.dom.$carousel;b===u.CLOCKWISE?(g.rotateCW(h,l,c),e=g.firstCardIndexAfterRotate(c,e,f)):(g.rotateCCW(a.dom.$carousel,a.dom.$carousel.children("li"),c),e=g.firstCardIndexAfterRotate(-1*c,e,f));a.setAttr(d.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX,e);c=c||1;b=b||u.CLOCKWISE;e=a.getDimensions().items;e=b===u.CLOCKWISE?g.rotateArrayCW(e,c):g.rotateArrayCCW(e,c);a.updateDimensionsCache({items:e})}function w(c,g,h,k,m){var B=m.callback,r=a(c,
c.getAttr(d.FIRST_VISIBLE_ITEM)),w=c.getAttr(d.CURRENT_PIXEL)-b(c,r);e.sequence(function(a){l(c,g,k);a()},function(a){h.gotoPixel(c,b(c,g===u.CLOCKWISE?r-k:r+k)+w,{animationDuration:0,callback:a})},function(a){m.callback=a;h.gotoPixel(c,b(c,r),m)},function(a){f(c,h);a()},function(a){B&&B();a()})()}var u={CLOCKWISE:1,COUNTER_CLOCKWISE:-1},q=e.capabilities.rtl?-1:1,v=e.capabilities.touch?2E3:3E3,y={};y[d.HIDE_OFF_SCREEN]=!1;y[d.ANIMATION_SPEED]=function(a){return function(b){return e.isFiniteNumber(b)?
b:a}}(v);y[d.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX]=1;return{initAttrs:y,init:function(a){k(a);a.onChange(d.FETCHED_ITEMS,function(b,d){p(a,b,d);a.strategies.display.repaint(a)});a.onChange(d.SET_SIZE,function(b,d){b>d&&k(a)});a.onChange(d.PEEK_WIDTH,function(b,c){b!==c&&(b=a.getAttr(d.FIRST_VISIBLE_ITEM),a.gotoIndex(b))})},afterInit:function(a){f(a,this);a.strategies.display.repaint(a);a.gotoPage(a.getAttr(d.PAGE_NUMBER))},gotoPage:function(a,b,c){c=c||{};var e=a.getAttr(d.TOTAL_PAGES);0<b&&b<=
e&&(a.setAttr(d.PAGE_NUMBER,b),this.gotoIndex(a,a.getAttr(d.PAGE_SIZE)*(b-1)+1,c))},gotoIndex:function(c,e,f){var g=c.getAttr(d.SET_SIZE),l=a(c,c.getAttr(d.FIRST_VISIBLE_ITEM)),k=a(c,e);l===k?this.gotoPixel(c,b(c,l),f):(2<c.getAttr(d.SET_SIZE)?(g=h(l,k,g),f.startover&&(5<g.quantity?f.animationDuration=1250:(delete f.animationDuration,f.animationSpeed=5*c.getDimensions().viewport.width)),w(c,g.direction,this,g.quantity,f)):this.gotoPixel(c,b(c,e),f),c.setAttr(d.FIRST_VISIBLE_ITEM,e))},gotoPixel:function(a,
b,c){var f=a.getAttr(d.CURRENT_PIXEL);if(b!==f){e.isFiniteNumber(b)||n.error("Target pixel is not a finite number","a-carousel-transition-slide-circular","gotoPixel");c=c||{};var g=c.easingFunction||"ease-out",l=c.callback;if(c.animationDuration!==z)var h=c.animationDuration;else h=e.isFiniteNumber(c.animationSpeed)?c.animationSpeed:a.getAttr(d.ANIMATION_SPEED),f=Math.abs(b-f),h=0===h?0:Math.floor(f/h*1E3);0<h&&(!c.silent&&a.setAttr(d.ANIMATING,!0),l=function(){c.callback&&c.callback();a.setAttr(d.ANIMATING,
e.isAnimated(a.dom.$carousel),c.silent)});f=e.capabilities.rtl?u.CLOCKWISE:u.COUNTER_CLOCKWISE;a.setAttr(d.CURRENT_PIXEL,b);e.animate(a.dom.$carousel,{left:b*f},h,g,l)}},gotoNextPage:function(a,b){var c=a.getAttr(d.PAGE_NUMBER);c=c===a.getAttr(d.TOTAL_PAGES)?1:c+1;this.gotoPage(a,c,b)},gotoPrevPage:function(a,b){var c=a.getAttr(d.PAGE_NUMBER);c=1===c?a.getAttr(d.TOTAL_PAGES):c-1;this.gotoPage(a,c,b)},onSwipe:function(c,f){var g=c.getAttr(d.CURRENT_PIXEL),l=c.getAttr(d.PAGE_SIZE),h=a(c,c.getAttr(d.FIRST_VISIBLE_ITEM)),
k=0>q*f.velocityX;l=b(c,k?h+l:h-l);g=Math.abs(1E3*(k?g-l:g+l)/f.velocityX);k=1.2*e.viewport().width;x(c,0>q*f.touchDeltaX?"right":"left",{animationDuration:Math.min(Math.max(g,300),k),easingFunction:c.getAttr(d.TOUCH_EASING)})},onPan:function(c,f){c.setAttr(d.ANIMATING,!0);var g=c.getAttr(d.PAGE_NUMBER),l=a(c,c.getAttr(d.FIRST_VISIBLE_ITEM));l=b(c,l);l=t(c).reached?l-q*f.touchDeltaX*.4:l-q*f.touchDeltaX;f.ended?(l={easingFunction:c.getAttr(d.TOUCH_EASING),animationSpeed:.95*e.viewport().width,silent:!0},
Math.abs(f.touchDeltaX)>=.4*c.getViewportWidth()?x(c,0>q*f.touchDeltaX?"right":"left",l):c.gotoPage(g,l)):c.gotoPixel(l,{easingFunction:c.getAttr(d.TOUCH_EASING),animationDuration:0,silent:!0})}}});"use strict";n.when("A","a-carousel-utils","a-carousel-constants").register("a-carousel-transition-freescroll",function(e,m,g){function d(a){p[a.__id]||(p[a.__id]=new t(a));return p[a.__id]}function k(b){for(var c=b.countItems(),d=[],f=0;f<c;f++)d.push(!0);b.setAttr(g.FETCHED_ITEMS,d);b.getAttr("auto_adjust_height_freescroll")&&
(e.$(b.getViewport()).css("height","auto"),a(b),e.$(b.getViewport()).css("overflow-y","hidden"))}function f(a){var b=a.countItems(),c=a.getAttr(g.SET_SIZE),d=[];if(c>b){for(var e=0;e<c-b;e++){var f=b+e+1;d.push(a.getEmptyCard(f,c))}a.appendItems(d);a.shouldRepaint()&&a.repaint()}}function h(b,c,d){if(!d||c.length>=d.length)for(var f=b.getItems(),h=c.length,l;h--;)(l=c[h])&&!e.equals(l,d[h])&&!0!==l&&!0!==l.content&&b.hasItem(f,h)&&(c[h]=b.insertFetchedItem(l,f,h));b.setAttr(g.FETCHED_ITEMS,c);a(b)}
function c(a){a.attachScrollListener(function(){var c=a.hasEmptyCard();var d=a.getAttr("auto_adjust_height_freescroll"),e=a.getAttr("startIndexForHeightCheck"),f=a.countItems();c||d&&e<f?c=!0:(a.detachScrollListener(),c=!1);c&&a.throttle("detect",b)})}function b(c){var d="undefined"!==typeof c.getAttr(g.LOADING_THRESHOLD_PIXELS)?c.getAttr(g.LOADING_THRESHOLD_PIXELS):400,e=c.measureWidth(),f=c.getFirstEmptyDetails(),h=c.getViewport();-1!==f.index&&f.left<e+d?c.wantNext(f.index,"undefined"!==typeof c.getAttr(g.NEXT_REQUEST_SIZE)?
c.getAttr(g.NEXT_REQUEST_SIZE):10):c.getAttr("currentScrollPosition")===h.scrollLeft()?a(c):c.throttle("detect",b);c.setAttr("currentScrollPosition",h.scrollLeft())}function a(a){if(a.getAttr("auto_adjust_height_freescroll")){var b=a.getAttr("lastScrollPosition"),c=a.getViewport();if(b<c.scrollLeft()){b=a.getAttr("startIndexForHeightCheck");var d=a.getAttr("maxHeight"),f=a.getItems(),h=a.measureWidth(),l=a.getFirstEmptyDetails().index,k=f.length-1;for(-1!==l&&l<f.length&&(k=l-1);b<=k;){if(f[b].getBoundingClientRect().left<=
h)d<e.$(f[b]).outerHeight()&&(d=e.$(f[b]).outerHeight());else break;b+=1}d!=c.outerHeight()&&e.animate(c,{height:d},a.getAttr(g.HEIGHT_ANIMATION_SPEED),"linear");a.setAttr("maxHeight",d);a.setAttr("startIndexForHeightCheck",b)}a.setAttr("lastScrollPosition",c.scrollLeft())}}var p={},t=function(a){this.carousel=a};e.extend(t.prototype,{setAttr:function(a,b){return this.carousel.setAttr(a,b)},getAttr:function(a){return this.carousel.getAttr(a)},onChange:function(a,b){this.carousel.onChange(a,b)},getItems:function(){return this.carousel.dom.$carousel.children("li")},
getViewport:function(){return this.carousel.dom.$viewport},countItems:function(){return this.getItems().length},showItems:function(){return this.getItems().css("visibility","").attr("aria-hidden","false")},getEmptyCard:function(a,b){return this.carousel.getEmptyCard(a,b)},getEmptyCards:function(){return this.carousel.dom.$carousel.children(".a-carousel-card-empty")},hasEmptyCard:function(){return 0<this.getEmptyCards().length},getFirstEmptyDetails:function(){var a=this.getEmptyCards();return 0<a.length?
(a=a.first(),{index:a.index(),left:a.position().left}):{index:-1,left:-1}},appendItems:function(a){this.carousel.dom.$carousel.append(a.join(""))},hasItem:function(a,b){return 0<a.eq(b).length},insertFetchedItem:function(a,b,c){m.addElementToDom(b.eq(c),m.getElementFromItem(a));return m.clearElementFromItem(a)},attachScrollListener:function(a){this.carousel.dom.$carousel.bind(e.action.move+".a-carousel-freeScroll scroll.a-carousel-freeScroll",a);this.triggerEvent("scrollEventAttached")},detachScrollListener:function(a){this.carousel.dom.$carousel.unbind(".a-carousel-freeScroll");
this.triggerEvent("scrollEventDetached")},triggerEvent:function(a){this.carousel.triggerEvent(a,this.carousel)},measureWidth:function(){return this.carousel.dom.$viewport.outerWidth()},wantNext:function(a,b){this.carousel.strategies.ajax.want(this.carousel,a,b)},getDimensions:function(){return this.carousel.getDimensions()},throttle:function(a,b){var c=this;clearTimeout(c[a]);c[a]=setTimeout(function(){b(c)},100)},shouldRepaint:function(){return this.carousel.strategies.display.repaint},repaint:function(){this.carousel.strategies.display.repaint(this.carousel)}});
var n={ajaxLock:!0,startIndexForHeightCheck:0,lastScrollPosition:-1,currentScrollPosition:-1,maxHeight:1};n[g.NO_TRANSITION]=!0;n[g.HIDE_OFF_SCREEN]=!1;n[g.AUTO_ADJUST_HEIGHT]=!1;n[g.HEIGHT_ANIMATION_SPEED]=200;return{gotoIndex:e.constants.NOOP,gotoNextpage:e.constants.NOOP,gotoPrevPage:e.constants.NOOP,gotoPage:e.constants.NOOP,initAttrs:n,init:function(a){var l=d(a);l.showItems();k(l);f(l);c(l);l.onChange(g.FETCHED_ITEMS,function(a,c){h(l,a,c);b(l)});e.on.resize(function(){b(l)})},afterInit:function(a){var c=
d(a);e.delay(function(){c.setAttr("ajaxLock",!1);b(c)})},prepareFetchedItems:k,addEmptyCards:f,handleItemChanges:h,detectEmptyCardsLoadingThreshold:b,ATTR:{NEXT_REQUEST_SIZE:g.NEXT_REQUEST_SIZE,LOADING_THRESHOLD_PIXELS:g.LOADING_THRESHOLD_PIXELS,CURRENT_SCROLL_POSITION:"currentScrollPosition"}}});"use strict";n.when("A","jQuery","a-carousel-transition-slide","a-carousel-transition-swap","a-carousel-transition-freescroll","a-carousel-transition-slidecircular","a-carousel-constants").register("a-carousel-strategies-transition",
function(e,m,g,d,k,f,h){m={};m[h.NO_TRANSITION]=!0;m[h.HIDE_OFF_SCREEN]=!1;m[h.AUTO_ADJUST_HEIGHT]=!1;return{slideHorizontal:g,swap:d,freeScroll:k,slideCircular:f,none:{gotoIndex:e.constants.NOOP,gotoNextPage:e.constants.NOOP,gotoPrevPage:e.constants.NOOP,gotoPage:e.constants.NOOP,initAttrs:m,init:function(c){c.dom.$carousel.children("li").css("visibility","").attr("aria-hidden","false")}},"default":"slideHorizontal"}});"use strict";n.when("A").register("a-carousel-ajax-standard",function(e){function m(f,
g,c,b){f.triggerEvent("beforeAjax",{url:g,params:c});e.get(g,{cache:!1,success:function(a){a=d(a,g);if(null===a)n.error("Invalid JSON returned to carousel from "+g+" - see http://tiny/c1mr5h0u for details.","a-carousel-ajax-standard","sendRequest");else{c.needSetSize&&(a&&a.length||n.error("Carousel requires a set_size and none was returned by the fallback AJAX request at: "+g,"a-carousel-ajax-standard","sendRequest"),f.setAttr("set_size",a[0].setSize?a[0].setSize:a.length));for(var b=f.getAttr("fetchedItems"),
h=f.getAttr("ajax"),k=[],l,m=a.length;m--;)l=a[m],null===l&&k.push(m),l&&(l.content||""===l.content?l.content=e.trim(l.content):l=e.trim(l)),b[c.offset+m]=l;h.remove_nulls&&h.id_list&&k.length&&(e.each(k,function(a){h.id_list.splice(c.offset+a,1)}),f.setAttr("ajax",h));c.needSetSize&&f.init();f.setAttr("fetchedItems",b);f.setAttr("ajaxLock",!1);c.needSetSize&&f.getAttr("pageSize")>=b.length&&f.strategies.ajax.wantCurrentPage(f);f.triggerEvent("ajaxSuccess",{url:g,params:c})}},params:c,headers:b})}
function g(d){var e=d.getAttr("requestTimer");e&&(clearTimeout(e),d.setAttr("requestTimer",null))}function d(d,g){return e.isArray(d)?d:d!==k&&null!==d&&!e.objectIsEmpty(d)&&d.hasOwnProperty("data")&&e.isArray(d.data)?d.data:null}var k;return{getItems:function(d,g,c,b){var a=d.getAttr("ajax");d.setAttr("requestTimer",e.delay(m,a.fetch_delay,d,g,c,b))},wantNextPage:function(d){g(d);if(d.getAttr("ajax").prefetch_next_page){var e=d.getAttr("pageSize"),c=2*e;d.getAttr("show_partial_next")&&c++;this.want(d,
(d.getAttr("pageNumber")-1)*e,c)}else this.wantCurrentPage(d)},wantPrevPage:function(d){g(d);if(d.getAttr("ajax").prefetch_next_page){var e=d.getAttr("pageSize"),c=2*e;d.getAttr("show_partial_next")&&c++;this.want(d,(d.getAttr("pageNumber")-2)*e,c)}else this.wantCurrentPage(d)},wantCurrentPage:function(d){g(d);var e=d.getAttr("pageSize"),c=d.getAttr("show_partial_next")?e+1:e;this.want(d,(d.getAttr("pageNumber")-1)*e,c)},want:function(d,e,c){if(!d.getAttr("ajaxLock")){g(d);var b=d.getAttr("ajax"),
a=d.getAttr("set_size");if(b.url){var f=d.getAttr("fetchedItems"),h=b.id_list;h||(h=[]);var k=-1<e?e:0;e=e+c-1;var l=b.params||{},m=b.headers||{},n=[],q=[];0===a&&(h.length&&(a=h),l.needSetSize="true",d.setAttr("ajaxLock",!0));for(-1===c&&a&&(e=a);k<=e&&k<a;)f[k]||((c=h[k])&&n.push(c),q.push(k),f[k]=!1),k++;d.setAttr("fetchedItems",f,{silent:!0});l.count=q.length;l.offset=q[0]||0;0<n.length&&(l[b.id_param_name]=n.join(","));(0<q.length||l.needSetSize)&&this.getItems(d,b.url,l,m)}}},init:function(d){var f=
d.getAttr("ajax");e.isFiniteNumber(f.fetch_delay)||(f.fetch_delay=500);f.id_param_name=f.id_param_name||"ids";f.prefetch_next_page=f.prefetch_next_page===k?!0:!!f.prefetch_next_page;d.setAttr("ajax",f);d.getAttr("set_size")||this.want(d,0,-1)},afterInit:function(d){d.strategies.ajax.wantCurrentPage(d);d.onChange("pageNumber",function(e,c){e>c?d.strategies.ajax.wantNextPage(d):d.strategies.ajax.wantPrevPage(d)});d.onChange("loading",function(e){e||d.strategies.ajax.wantCurrentPage(d)})}}});"use strict";
n.when("a-util").register("a-carousel-ajax-promise",function(e){function m(g,d){var k=g.getAttr("requestTimer");k&&clearTimeout(k);g.setAttr("requestTimer",e.delay(d,500))}return{getItems:function(g,d,k){m(g,function(){var f=g.getAttr("async_provider");f&&f(d,k).then(function(f){var c=g.getAttr("fetchedItems");e.each(f,function(b,a){c[d[a]]=b});g.setAttr("fetchedItems",c)})})},wantNextPage:function(e){var d=e.getAttr("pageSize"),g=(e.getAttr("pageNumber")-1)*d;this.want(e,g,2*d)},wantPrevPage:function(e){var d=
e.getAttr("pageSize"),g=(e.getAttr("pageNumber")-2)*d;this.want(e,g,2*d)},wantCurrentPage:function(e){var d=e.getAttr("pageSize"),g=(e.getAttr("pageNumber")-1)*d;this.want(e,g,d)},want:function(g,d,k){d=Math.max(0,d);k=Math.min(d+k,g.getAttr("set_size"));for(var f=g.getAttr("fetchedItems"),h=[];d<k;d++)f[d]||(h.push(d),f[d]=!1);if(h.length){var c,b=g.getAttr("ajax").id_list;b&&(c=e.map(h,function(a){return b[a]}));g.setAttr("fetchedItems",f,{silent:!0});this.getItems(g,h,c)}},init:function(e){},afterInit:function(g){g.strategies.ajax.wantCurrentPage(g);
g.onChange("async_provider",e.once(function(){g.strategies.ajax.wantCurrentPage(g)}));g.onChange("pageNumber",function(d,e){d>e?g.strategies.ajax.wantNextPage(g):g.strategies.ajax.wantPrevPage(g)})}}});"use strict";n.when("A","a-carousel-ajax-standard","a-carousel-ajax-promise").register("a-carousel-strategies-ajax",function(e,m,g){return{standard:m,promise:g,none:{wantNextPage:e.constants.NOOP,wantPrevPage:e.constants.NOOP,wantCurrentPage:e.constants.NOOP,want:e.constants.NOOP,init:e.constants.NOOP},
"default":"standard"}});"use strict";n.when("A","a-carousel-constants").register("a-carousel-accessibility-standard-desktop",function(e,m){function g(a){var b=a.dom.$carousel,c=b.children("li"),d=a.getAttr(m.PAGE_SIZE),e=a.getAttr(m.FIRST_VISIBLE_ITEM),f=e-1,g=a.getAttr(m.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX);if(a.getAttr(m.NO_TRANSITION))return c;if(c.length<=d)return b.children("li:not(:empty), li.a-carousel-card-empty");"slideCircular"===a.getAttr(m.TRANSITION_STRATEGY)&&(f=g-e-1,0===c.length%
2&&--f);b=f=(f+2*c.length)%c.length;"peekCircular"===a.getAttr(m.DISPLAY_STRATEGY)&&--b;d=f+d;if("peekCircular"===a.getAttr(m.DISPLAY_STRATEGY)||a.getAttr(m.SHOW_PARTIAL_NEXT))d+=1;return c.slice(Math.max(b,0),Math.min(d,c.length))}function d(a,b,c,d){var h=function(){var c=g(a);(b?c.first():c.last()).find("a, button, input, select, textarea, [tabindex]:not([tabindex\x3d'-1'])").not(":disabled").first().focus();e.delay(function(){f(a)},a.getAttr(m.PAGE_SIZE)*a.getAttr(m.DELAY_TIME)+50)};if(0===c||
0===d)e.delay(h,0);else{var k=function(b){b||(h(),a.unbind(m.ANIMATING,k))};a.onChange(m.ANIMATING,k)}}function k(a){var c=a.dom.$carousel.children("li"),d=a.getAttr(m.TRANSITION_STRATEGY),e=a.getAttr(m.SET_SIZE),f=e?{"aria-setsize":e}:{};if("swap"===d){var g=a.getAttr(m.FIRST_VISIBLE_ITEM);c.each(function(a){var c=b(this);g+a>e?(c.removeAttr("aria-setsize"),c.removeAttr("aria-posinset")):(f["aria-posinset"]=g+a,c.attr(f))})}else c.each(function(a){f["aria-posinset"]=a+1;b(this).attr(f)})}function f(a){a=
a.dom.$container;a.find(".a-carousel-accessibility-page-info").html(a.find(".a-carousel-page-count").text())}function h(a,b){if(!a.getAttr(m.NO_TRANSITION)){var c=a.dom.$carousel.children("li"),d=a.getAttr(m.TRANSITION_STRATEGY);a=a.getAttr(m.DISPLAY_STRATEGY);c=c.not(b);b.attr("aria-hidden",!1);c.attr("aria-hidden",!0);if("slideCircular"===d&&"peekCircular"!==a||"slideHorizontal"===d)b.css("visibility","visible"),c.css("visibility","hidden")}}function c(a,b){if(!a.getAttr(m.CIRCULAR)){var c=a.dom.$container;
c.find(".a-carousel-goto-prevpage").attr("aria-disabled",1===b?"true":"false");c.find(".a-carousel-goto-nextpage").attr("aria-disabled",b===a.getAttr(m.TOTAL_PAGES)?"true":"false")}}var b=e.$;return{init:function(a){var b=a.getAttr(m.NAME);k(a);h(a,g(a));c(a,1);e.on("a:carousel"+(b?":"+b:"")+":repaint",function(){h(a,g(a))});a.onChange(m.SET_SIZE,function(b,c){k(a)});a.onChange(m.LOADING,function(b){a.getAttr(m.ANIMATING)||a.dom.$carousel.attr("aria-busy",(!!b).toString())});a.onChange(m.ANIMATING,
function(b){a.getAttr(m.LOADING)||a.dom.$carousel.attr("aria-busy",(!!b).toString());!b&&a.getAttr(m.SET_SIZE)>a.getAttr(m.PAGE_SIZE)&&(b=a.getAttr(m.TRANSITION_STRATEGY),h(a,g(a)),"slide"!==b&&k(a))});a.onChange(m.PAGE_NUMBER,function(b){c(a,b);h(a,a.dom.$carousel.children("li"))})},afterInit:function(a){f(a)},gotoPage:function(a,b,c){a.getAttr(m.NO_TRANSITION)||d(a,!0,b,c)},nextPage:function(a,b,c){a.getAttr(m.NO_TRANSITION)||d(a,!0,b,c)},prevPage:function(a,b,c){a.getAttr(m.NO_TRANSITION)||d(a,
!1,b,c)}}});"use strict";n.when("A","a-carousel-constants").register("a-carousel-accessibility-standard-mobile",function(e,m){function g(e){var f=e.dom.$carousel;e=f.children(".a-carousel-card-empty");f=f.children("li").not(e);var g=f.length,c=g?{"aria-setsize":g}:{};e.attr("aria-hidden","true").removeAttr("aria-setsize").removeAttr("aria-posinset");f.each(function(b){c["aria-posinset"]=b+1;c["aria-hidden"]="false";d(this).attr(c)})}var d=e.$;e=e.constants.NOOP;return{init:function(d){g(d);d.onChange(m.SET_SIZE,
function(){g(d)});d.onChange(m.LOADING,function(e){d.dom.$carousel.attr("aria-busy",(!!e).toString());e||g(d)})},gotoPage:e,nextPage:e,prevPage:e}});"use strict";n.when("A","a-carousel-accessibility-standard-desktop","a-carousel-accessibility-standard-mobile").register("a-carousel-strategies-accessibility",function(e,m,g){return{standardDesktop:m,standardMobile:g,none:{init:e.constants.NOOP,gotoPage:e.constants.NOOP,nextPage:e.constants.NOOP,prevPage:e.constants.NOOP},"default":e.capabilities.mobile||
e.capabilities.tablet?"standardMobile":"standardDesktop"}});"use strict";n.when("a-carousel-strategies-display","a-carousel-strategies-transition","a-carousel-strategies-ajax","a-carousel-strategies-accessibility").register("a-carousel-strategies",function(e,m,g,d){return{display:e,transition:m,ajax:g,accessibility:d}});"use strict";n.when("A","jQuery","a-carousel-classes","a-carousel-strategies","a-carousel-constants").register("a-carousel-framework",function(e,m,g,d,k){function f(a,b,c,d){var f=
a.hasClass("a-begin"),g=0<a.children(".a-end").length;if(f?g:1)return b=new b(a,c,d),b.__id=++z,a.data("a-carousel",b),a.removeClass("a-carousel-static"),t(a,b)?e.delay(h,10,b):q.push(b),d.name&&(y[d.name]=b),b}function h(a){a.init();u.push(a);a.__initialized=!0;a.dom.$container.addClass("a-carousel-initialized");var b=a.getAttr("name");b&&A[b]&&e.each(A[b],function(b){b(a)})}function c(a,b){(b=b[a+"Strategy"])||(b=d[a]["default"]);return d[a][b]}function b(a){for(var b=a.length,c;b--;)c=a[b],c.dom.$container.length&&
r.find(c.dom.$container).length||((c=c.getAttr("name"))&&delete y[c],a.splice(b,1))}function a(){b(q);b(u)}function p(a){var b=a.data("a-carousel-options")||{};b.displayStrategy=a.data("a-display-strategy");b.transitionStrategy=a.data("a-transition-strategy");b.ajaxStrategy=a.data("a-ajax-strategy");b.accessibilityStrategy=a.data("a-accessibility-strategy");b.carouselClass=a.data("a-class");a=c("display",b);var d=c("transition",b),e=c("ajax",b),f=c("accessibility",b),h=b.carouselClass;h||(h=g["default"]);
h=g[h];if(h!==w&&a!==w&&d!==w&&e!==w&&f!==w)return{carouselClass:h,strategies:{display:a,transition:d,ajax:e,accessibility:f},opts:b}}function t(a,b){return a.hasClass("a-begin")&&0===a.children(".a-end").length?!1:e.onScreen(a,b.getAttr("initThreshold"))}function x(){m(".a-carousel-static").each(function(){var a=m(this),b=p(a);b&&f(a,b.carouselClass,b.strategies,b.opts)})}function l(){for(var a=q.length;a--;){var b=q[a];t(b.dom.$container,b)&&(q.splice(a,1),h(b))}}var w,u=[],q=[],v=!1,y={},r=m(document),
A={},z=0;e.on("resize orientationchange",function(b,c){a();(c.height||c.width)&&e.delay(function(){e.each(u,function(a){a.resize()})},e.capabilities.mobile||e.capabilities.tablet?100:0)});e.on("a:popover:afterSlideOut",function(){e.each(u,function(a){a.resize()})});e.on("a:carousel:change:name",function(a){a.newValue&&(y[a.newValue]=a.carousel);a.oldValue&&delete y[a.oldValue]});e.on(k.INIT_EVENTS,function(){l();x()});e.on("a:pageUpdate",a);e.on("scroll",function(){l();x()});e.declarative("a-tabs",
"click",function(a){e.delay(function(){l();e.each(u,function(a){a.getAttr("isInTab")&&a.resize()})},50)});e.on("a:popover:afterShow",function(){e.delay(l,50)});e.on("a:popover:ajaxContentLoaded",function(){e.delay(function(){a();x()},50)});e.on.ready(function(){v=!0});k={getCarousel:function(a){a.jquery||(a=m(a));var b=a.closest(".a-carousel-container").data("a-carousel");if(!b){var c=p(a);c&&(b=f(a,c.carouselClass,c.strategies,c.opts))}return b},getCarouselByName:function(a){return y[a]},createAll:function(){a();
x()},initializeAll:function(){a();l()},kill:function(a){a.jquery||(a=m(a));if(a.length&&(a=a.closest(".a-carousel-container"),a.length)){var b=a.data("a-carousel");if(b){var c=e.indexOfArray(u,b);-1<c?(u[c].name&&delete y[u[c].name],u.splice(c,1)):(c=e.indexOfArray(q,b),-1<c&&(q[c].name&&delete y[q[c].name],q.splice(c,1)))}a.remove()}},registerStrategy:function(a,b,c){d[a]||(d.type={});d[a][b]&&n.error("Attempted to register a "+a+" strategy which already exists: "+b,"a-carousel-framework","registerStrategy");
d[a][b]=c;v&&x()},registerCarouselClass:function(a,b){g[a]&&n.error("Attempted to register a carousel class which already exists: "+a,"a-carousel-framework","registerCarouselClass");m.isFunction(b)||n.error("Attempted to register carousel class "+a+" without a constructor function.","a-carousel-framework","registerCarouselClass");g[a]=b;v&&x()},getAllCarousels:function(){return u.concat(q)},onInit:function(a,b){a&&(A[a]||(A[a]=[]),m.isFunction(b)&&(A[a].push(b),(a=y[a])&&a.__initialized&&b(a)))}};
Object.freeze!==w&&Object.freeze(k);return k})});
/* ******** */
(function(d){var k=window.AmazonUIPageJS||window.P,l=k._namespace||k.attributeErrors,b=l?l("AmazonUIComponents","AmazonUI"):k;b.guardFatal?b.guardFatal(d)(b,window):b.execute(function(){d(b,window)})})(function(d,k,l){d.when("A","a-form-controls-api").register("a-form-controls-handlers",function(b,e){var c=b.$,f=function(){c(this).removeClass("a-hover-disable")},d=function(a,g){var h=e.findFormElementContainer(a);b.delay(function(){h.find(g).each(e.normalizeElement)},0)};return{handleBoxInputMobileFocus:function(){c(this).addClass("a-form-focus")},
handleBoxInputMobileBlur:function(){c(this).removeClass("a-form-focus")},accessibilityKeyPress:function(a){a.keyCode===b.constants.keycodes.SPACE&&(a.preventDefault(),a.stopPropagation())},formReset:d,handleCheckboxClick:function(){if(!b.capabilities.mobile&&!b.capabilities.tablet)c(this).addClass("a-hover-disable").one("mouseleave",f)},normalizeFormControls:function(){c("form").unbind("reset.a-form-controls-reset").bind("reset.a-form-controls-reset",function(a){d(a.currentTarget,"li .a-touch-multi-select")})},
touchMultiSelectHandler:function(a){e.toggleCheckboxState(a.currentTarget)}}});"use strict";d.when("A","a-form-controls-handlers","ready").register("a-form-controls",function(b,e){var c=b.$;c(document).delegate(".a-checkbox-fancy","click",e.handleCheckboxClick).delegate(".a-checkbox-fancy, .a-radio-fancy","keypress",e.accessibilityKeyPress);b.on("a:pageUpdate beforeReady",e.normalizeFormControls)});"use strict";d.when("A").register("a-buttons",function(b){function e(a){var b=a.children(".a-button-inner").find("[role\x3d'radio']");
return 0<b.length?b:a.filter("[role\x3d'radio']")}function c(a){return function(){e(f(this)).attr("aria-checked",a)}}var f=b.$,d=0;b.declarative("a-button-group",["click"],function(a){var g=a.$target,h=g.closest(".a-button:not(.a-button-disabled)");if(h.length){var d=a.$declarativeParent.find(".a-button");a=a.data&&a.data.name?a.data.name:!1;g=g.closest("input[type\x3dsubmit], button").attr("name")||g.find("input[type\x3dsubmit], button").attr("name");d.removeClass("a-button-selected").each(c("false"));
h.addClass("a-button-selected").each(c("true"));if(g||a)h={$button:h,buttonName:g,buttonGroupName:a},a&&(b.trigger("a:button-group:"+a+":toggle",{selectedButton:h}),g&&b.trigger("a:button-group:"+a+":"+g+":toggle",{selectedButton:h}))}});b.on("a:pageUpdate beforeReady",function(){var a=f(".a-button:not([id])"),b=f(".a-button-group,.a-button-toggle-group");a.each(function(){var a=f(this),b=a.find(".a-button-text"),e=a.find(".a-button-input").not("[aria-label]"),c="a-autoid-"+d++;a.attr("id",c);b.length&&
(c=(a=b.attr("id"))?a:c+"-announce",e.length&&e.attr("aria-labelledby",c),b.attr("id",c))});b.each(function(){var a=f(this).find(".a-button"),b=a.length,c=1;a.each(function(){e(f(this)).attr({"aria-posinset":c++,"aria-setsize":b})})})});f(document).delegate(".a-button-input, .a-button-text","focusin",function(){var a=f(this).closest(".a-button");a.hasClass("a-button-disabled")||a.addClass("a-button-focus")}).delegate(".a-button-input, .a-button-text","focusout "+b.action.cancel,function(){f(this).closest(".a-button").removeClass("a-button-focus")})})});
/* ******** */
(function(d){var f=window.AmazonUIPageJS||window.P,h=f._namespace||f.attributeErrors,c=h?h("AmazonUITabs","AmazonUI"):f;c.guardFatal?c.guardFatal(d)(c,window):c.execute(function(){d(c,window)})})(function(d,f,h){d.when("A").register("a-tabs",function(c){function d(a){var b=a.$target.closest("li"),k=a.data.name,d=b.data("a-tab-name"),e=b.closest(".a-tab-container"),f=e.find(".a-box-tab").not(e.find(".a-box-tab .a-box-tab"));d!==h&&(g(e.find("li.a-active"),b.closest(".a-tabs")).removeClass("a-active").find("a").attr({"aria-selected":!1,
tabindex:-1}),b.addClass("a-active").find("a").attr("aria-selected",!0).removeAttr("tabindex"),g.each(f,function(b,a){g(a).toggleClass("a-hidden",g(a).data("a-name")!==d)}),b={$tab:b,tabName:d,tabSetName:k},c.trigger("a:tabs:"+k+":select",{selectedTab:b}),c.trigger("a:tabs:"+k+":"+d+":select",{selectedTab:b}),a.$event.preventDefault())}var g=c.$,e=c.constants.keycodes;c.declarative("a-tabs",["click"],d);c.on("beforeReady a:pageUpdate a:ajax:complete",function(){var a=g(document).find(".a-tab-container"),
b=a.find(".a-tabs"),c=b.not('[role\x3d"tablist"]');a=a.find(".a-box-tab").not(a.find(".a-box-tab .a-box-tab"));var d=b.find(".a-tab-heading.a-active a"),e=b.find(".a-tab-heading:not('.a-active') a");c.length&&(b.find(".a-tab-heading").attr("role","presentation"),c.attr("role","tablist"),d.add(e).attr("role","tab"),a.attr({role:"tabpanel",tabindex:"0"}),d.attr("aria-selected",!0),e.attr({"aria-selected":!1,tabindex:-1}))});c.declarative("a-tabs",["keydown"],function(a){var b=a.$target.closest(".a-tab-container").find(".a-tab-heading");
switch(a.$event.which){case e.SPACE:d(a);break;case e.END:a.$event.preventDefault();b.last().find("a").focus();break;case e.HOME:a.$event.preventDefault();b.first().find("a").focus();break;case e.LEFT_ARROW:case e.RIGHT_ARROW:b=a.$target.closest(".a-tab-heading");var c=b.closest(".a-tab-container").find(".a-tab-heading");a.$event.which===e.RIGHT_ARROW&&b.next(".a-tab-heading").add(c.first()).last().find("a").focus();a.$event.which===e.LEFT_ARROW&&b.prev(".a-tab-heading").add(c.last()).first().find("a").focus()}})})});
/* ******** */
(function(d){var f=window.AmazonUIPageJS||window.P,k=f._namespace||f.attributeErrors,a=k?k("AmazonUIAccordion@jsAssets","AmazonUI"):f;a.guardFatal?a.guardFatal(d)(a,window):a.execute(function(){d(a,window)})})(function(d,f,k){d.when("A").register("a-accordion-a11y",function(a){var d=a.$,b;return{refreshFocus:function(e,g){g=g||600;b||(b=d("\x3cb /\x3e",{"class":"a-accordion-a11y",tabIndex:-1,style:"position: absolute"}).appendTo("body"));b.css({display:"block"}).offset(e.offset());a.delay(function(){b.focus()},
50);a.delay(function(){e.focus();b.css({display:"none"})},g)}}});d.when("A","a-accordion-a11y","prv:a-capabilities").register("a-accordion",function(a,d,b){function e(b){var h=b.$target.closest(".a-accordion"),c=b.$target.closest(".a-box"),e=h.find(".a-box").not(c),l=c.find(".a-accordion-row"),n=h.data("a-accordion-name"),p=c.data("a-accordion-row-name"),u=h.hasClass("a-accordion-collapse"),v=c.find("a.a-accordion-row"),q=b.$target.closest(".a-accordion-row-a11y");h=h.find(".a-accordion-row-a11y").not(q);
if(p){var t=c.find(".a-accordion-inner"),r=!0;if(c.hasClass("a-accordion-active"))if(u)t[f]({duration:m,complete:function(){c.removeClass("a-accordion-active");c.find(".a-icon.a-accordion-radio").removeClass("a-icon-radio-active").addClass("a-icon-radio-inactive");q.attr("aria-checked","false").attr("aria-expanded","false")}});else r=!1;else e.find(".a-accordion-inner")[f]({duration:m,complete:function(){e.removeClass("a-accordion-active")}}),t[g]({duration:m,complete:function(){c.addClass("a-accordion-active");
e.find(".a-icon.a-accordion-radio").removeClass("a-icon-radio-active").addClass("a-icon-radio-inactive");c.find(".a-icon.a-accordion-radio").removeClass("a-icon-radio-inactive").addClass("a-icon-radio-active")}}),h.attr("aria-checked","false").attr("aria-expanded","false"),q.attr("aria-checked","true").attr("aria-expanded","true");r&&k&&d.refreshFocus(l);r&&(l={$row:c,rowName:p,accordionName:n},a.trigger("a:accordion:select",{selectedRow:l}),a.trigger("a:accordion:"+n+":select",{selectedRow:l}),a.trigger("a:accordion:"+
n+":"+p+":select",{selectedRow:l}))}v.length&&b.$event.preventDefault()}var g="slideDown",f="slideUp",m=300;if(a.capabilities.mobile||a.capabilities.tablet)g="show",f="hide",m=0;var k=!a.capabilities.touch&&b.isFirefox;a.declarative("a-accordion",["click"],e);a.declarative("a-accordion",["keypress"],function(b){var d=a.constants.keycodes,c=b.$event.which;c!==d.ENTER&&c!==d.SPACE||e(b)})})});
/* ******** */
(function(f){var c=window.AmazonUIPageJS||window.P,n=c._namespace||c.attributeErrors,a=n?n("AmazonUIExpander","AmazonUI"):c;a.guardFatal?a.guardFatal(f)(a,window):a.execute(function(){f(a,window)})})(function(f,c,n){f.declare("prv:a-expander-constants",{classNames:{inline:{expand:"a-icon-expand",collapse:"a-icon-collapse"},section:{expand:"a-icon-section-expand",collapse:"a-icon-section-collapse"},extender:{expand:"a-icon-extender-expand",collapse:"a-icon-extender-collapse"}},elementClasses:{container:"a-expander-container",
content:"a-expander-content",header:"a-expander-header",fadeDiv:"a-expander-content-fade"}});f.when("A","jQuery","prv:a-expander-constants").register("a-partial-expander",function(a,c,p){function l(){c(".a-expander-partial-collapse-container").each(function(){var d=c(this),a=d.children("."+r.content),e=d.data("a-expander-collapsed-height"),b=d.children("."+r.header);if(a.height()<=e)b.css({opacity:"0",display:"none"});else{b.css({opacity:"1",display:"block"});a.css("padding-bottom",b.height());var q;
f.now("a-weblab").execute(function(b){q=b&&b.is("AUI_A11Y_SR_678508","T1")?"true"!==a.attr("data-expanded"):"true"!==a.attr("aria-expanded")});q&&d.css({height:e});d.css({"max-height":"none"})}})}var r=p.elementClasses;a.on("load ready resize orientationchange a:popover:afterShow a:popover:ajaxContentLoaded",l);return l});"use strict";f.when("A","jQuery","prv:a-expander-constants","a-partial-expander").register("a-expander",function(a,c,p,l){function r(b,a,e){var q=b.closest("."+d.container),m=q.data("a-expander-collapsed-height"),
c;f.now("a-weblab").execute(function(a){c=a&&a.is("AUI_A11Y_SR_678508","T1")?"true"===b.attr("data-expanded"):"true"===b.attr("aria-expanded")});var g=function(){b.toggleClass(d.content+"-expanded");f.now("a-weblab").execute(function(a){a&&a.is("AUI_A11Y_SR_678508","T1")?b.attr("data-expanded",c?"false":"true"):b.attr("aria-expanded",c?"false":"true")});a.attr("aria-expanded",c?"false":"true");e()};m?(q.css("height",c?m:"auto"),g()):b.toggle(0,function(){g()})}var d=p.elementClasses,g=p.classNames,
e={};a.each(g,function(b,d){e[d]={};a.each(b,function(a,b){e[d][b]=new RegExp("\\b"+a+"\\b","g")})});a.declarative("a-expander-toggle","click",function(b){var c=b.$target.closest("."+d.container),p=c.find("."+d.container),l=c.data("a-expander-name");var m=b.$currentTarget.hasClass(d.header)?b.$currentTarget:c.find("."+d.header).not(p.find("."+d.header));var n=m.is("a[aria-expanded]")?m:m.children("a[aria-expanded]"),t=c.find("."+d.content).not(p.find("."+d.content));r(t,n,function(){var h=m.find(".a-icon")[0],
k=null,n=m.children("."+d.fadeDiv),q;f.now("a-weblab").execute(function(a){q=a&&a.is("AUI_A11Y_SR_678508","T1")?"false"===t.attr("data-expanded"):"false"===t.attr("aria-expanded")});q?(h&&(h.className=h.className.replace(e.inline.collapse,g.inline.expand).replace(e.section.collapse,g.section.expand).replace(e.extender.collapse,g.extender.expand)),b.data&&b.data.expand_prompt&&(k=b.data.expand_prompt),n.show(),h="collapse"):(h&&(h.className=h.className.replace(e.inline.expand,g.inline.collapse).replace(e.section.expand,
g.section.collapse).replace(e.extender.expand,g.extender.collapse)),b.data&&b.data.collapse_prompt&&(k=b.data.collapse_prompt),n.hide(),h="expand");k&&""!==k&&m.find(".a-expander-prompt").not(p.find(".a-expander-prompt")).html(k);k={expander:{$expander:c,expanderName:l}};a.trigger("a:expander:toggle",k);a.trigger("a:expander:toggle:"+h,k);l&&(a.trigger("a:expander:"+l+":toggle",k),a.trigger("a:expander:"+l+":toggle:"+h,k))})});return{initializeExpanders:l}})});
/* ******** */
(function(e){var p=window.AmazonUIPageJS||window.P,l=p._namespace||p.attributeErrors,d=l?l("AmazonUISwitch@control","AmazonUI"):p;d.guardFatal?d.guardFatal(e)(d,window):d.execute(function(){e(d,window)})})(function(e,p,l){e.when("a-switch-framework","jQuery").register("a-switch",function(d,h){var g=d.SWITCH_STATE,e=d.SWITCH_CONTAINER_CLASS,w=d.SWITCH_CLASS;return{getSwitch:function(c){function m(c){var n=k.data(g);if(c===l)return n.isOn;if(!n.isEnabled||f(k))return!1;d.setOnState(k,c);return!0}function f(){return k.data(g).isDragging}
c.jquery||(c=h(c));if(0===c.length)return null;c=c.eq(0);c=c.closest("."+e);if(0===c.length)return null;var k=c.find("."+w);d.ensureInitialized(k);return{toggle:function(){return m(!k.data(g).isOn)},isOn:m,enabled:function(c){var n=k.data(g);if(c===l)return n.isEnabled;if(n.isEnabled===c)return!1;d.setEnabled(k,c);return!0},isDragging:f,label:function(d){var c=k.data(g).label,e=c[0].childNodes[0];if(d===l)return c.text();3===e.nodeType&&(e.textContent=d)}}}}});"use strict";e.when("A","jQuery").register("a-switch-framework",
function(d,h){function g(a){a.preventDefault();var b=a.data.$switch.data("a-switch-state"),c=b.control;if(!d.isAnimated(c)){a=q(a)-b.initialX;b.isOn&&(a+=b.rightBoundary);var e=b.leftBoundary,v=b.rightBoundary;a=a<e?e:a>v?v:a;a!==b.leftOffset&&(d.animate(c,{left:a},0),b.leftOffset=a,b.isDragging=!0,b.dragCount++)}}function f(a){a.preventDefault();if(d.capabilities.touch||1===a.which){a=a.data.$switch;var b=a.data("a-switch-state");m(a,b.isDragging&&1<b.dragCount?b.leftOffset>b.midPoint:!b.isOn);b.isDragging=
!1;t(a)}}function l(a,b,c){c={switchState:a,previousState:c};d.trigger("a:switch:"+b,c);a.name&&d.trigger("a:switch:"+a.name+":"+b,c)}function c(a){if(!a.data("a-switch-state")){var b=a.closest(".a-switch-row"),c=a.children(".a-switch-control"),d=b.find(".a-switch-label"),e=d.siblings("input"),k=e.attr("name"),l=b.hasClass("a-active"),g=!b.hasClass("a-disabled"),h=r.left,f=(a.width()-c.width()+r.right)*z;a.data("a-switch-state",{input:e,container:b,control:c,label:d,isDragging:!1,rightBoundary:f,
leftBoundary:h,midPoint:f/2,initialX:null,leftOffset:l?f:h,maxLeftOffset:r.maxLeftOffset,isOn:l,isEnabled:g,name:k,dragCount:0,clicked:!1})}}function m(a,b){c(a);a=a.data("a-switch-state");var e=a.isOn,k=b!==a.isOn;a.isOn=b;var f=a.control,h=a.maxLeftOffset,g=a.isOn?a.rightBoundary:a.leftBoundary;g=h&&g>h?h:g;d.animate(f,{left:g},300,"ease-out");a.leftOffset=g;f=a.container;a.isOn?f.addClass("a-active"):f.removeClass("a-active");f=a.input;a.isOn?f.attr("checked","checked"):f.removeAttr("checked");
k&&l(a,"flip",e);b?l(a,"on",e):l(a,"off",e)}var p=function(a){a.bind("touchmove.a-switch-component",{$switch:a},g);a.bind("touchend.a-switch-component",{$switch:a},f);a.bind("touchcancel.a-switch-component",{$switch:a},f);a.bind("mouseup.a-switch-component",{$switch:a},f)},k=function(a){a.unbind("touchmove.a-switch-component");a.unbind("touchend.a-switch-component");a.unbind("touchcancel.a-switch-component");a.unbind("mouseup.a-switch-component")},x=function(a){return(a.originalEvent.touches[0]||
a.originalEvent.changedTouches[0]).pageX},n=function(a){h("body").bind("mousemove.a-switch-component",{$switch:a},g);h("body").bind("mouseup.a-switch-component",{$switch:a},f)},y=function(a){h("body").unbind("mousemove.a-switch-component",g);h("body").unbind("mouseup.a-switch-component",f)},A=function(a){return a.pageX},r={left:d.capabilities.rtl?1:-1,right:-1},z=d.capabilities.rtl?-1:1;e.when("prv:skin-vars").execute(function(a){r=a.toggle.bounds});var u=null,t=null,q=null;d.capabilities.touch?(u=
p,t=k,q=x):(u=n,t=y,q=A);d.declarative("a-switch",d.capabilities.touch?"touchstart":"mousedown",function(a){var b=a.$event;b.preventDefault();if(d.capabilities.touch||1===b.which){a=a.$declarativeParent;c(a);var e=a.data("a-switch-state");e.dragCount=0;e.clicked=!0;e.isDragging=!1;e.isEnabled&&(e.initialX=q(b),u(a))}});d.declarative("a-switch-input","change",function(a){a.$event.preventDefault();a=a.$target.closest(".a-switch-row").find(".a-switch");c(a);var b=a.data("a-switch-state");m(a,!b.isOn)});
d.declarative("a-switch-label","click",function(a){a.$event.preventDefault();a=a.$target.closest(".a-switch-row").find(".a-switch");c(a);var b=a.data("a-switch-state");b.clicked?b.clicked=!1:b.isEnabled&&m(a,!b.isOn)});e.when("ready").execute("a-switch-normalization",function(){h(".a-switch-input").each(function(){var a=h(this),b=a.next().children(".a-switch");m(b,a.prop("checked"))})});return{ensureInitialized:c,setOnState:m,setEnabled:function(a,b){c(a);a=a.data("a-switch-state");var d=a.container;
b?d.removeClass("a-disabled"):d.addClass("a-disabled");a.isEnabled=b},SWITCH_STATE:"a-switch-state",SWITCH_CONTAINER_CLASS:"a-switch-row",SWITCH_CLASS:"a-switch"}})});
/* ******** */
(function(a){var f=window.AmazonUIPageJS||window.P,l=f._namespace||f.attributeErrors,b=l?l("AmazonUIProgressBar","AmazonUI"):f;b.guardFatal?b.guardFatal(a)(b,window):b.execute(function(){a(b,window)})})(function(a,f,l){a.when("A","ready").register("a-progress",function(b){function a(a){(a?e(a):e(".a-js-progress-bar")).each(function(){var a=e(this);if(b.onScreen(a,0)){var g=+a.attr("data-progress-percentage");var h=-(g-100);var c=a.width();var f=h/100*c;var d=a.find(".a-js-progress-tooltip"),k=d.width();
d.find(".a-js-tooltip-arrow");g=(g+h/2)/100*c-k/2;h=k+g;(k=h<c)||(g-=h-c);c=g;e(d).css("left",c+0);c=d.width();d=d.find(".a-js-tooltip-arrow");d.removeClass("aok-hidden");k?(c/=2,e(d).css("left",c+-9)):e(d).css("left",c+-27);12>f&&d.addClass("aok-hidden");e(a.find(".a-js-progress-tooltip")).removeClass("a-progress-tooltip-hidden").addClass("a-progress-tooltip-revealed")}})}var e=b.$;a();b.on("resize scroll",function(b){a()});return{init:a}})});
/* ******** */
(function(n){var u=window.AmazonUIPageJS||window.P,z=u._namespace||u.attributeErrors,c=z?z("AmazonUIPopover@base","AmazonUI"):u;c.guardFatal?c.guardFatal(n)(c,window):c.execute(function(){n(c,window)})})(function(n,u,z){n.when("A","a-popover-base-factory").register("a-popover-base-apis",function(c,f){return{show:function(c){var b=f.get(c.$trigger?c.$trigger:c);if(b)return b.show.apply(b,arguments)},hide:function(c){var b=f.get(c);if(b)return b.unlock(1),b.hide.apply(b,arguments)},get:function(c){return f.get(c)},
remove:function(c){return f.remove(c)}}});"use strict";n.when("A","a-popover-util","a-popover-objectclass","a-popover-data").register("a-popover-base-factory",function(c,f,h,b){function m(a){return d[a]?d[a]:null}function l(a,g){return new h.PopoverClass(a,g)}function e(d,k){var e=null;if("number"===typeof d)e=m(d);else if("string"===typeof d)(e=g[d]?g[d]:null)||(e=m(d));else if("object"===typeof d)if(d.$popover)e=d;else if(d=a(d),e=d.data("a-popover-id"),e||(e=d.find(".a-declarative").eq(0),e=e.length?
e.data("a-popover-id"):null),e=m(e),!e){var c=d.data("action");(c=c?d.data(c):null)&&c.name&&(e=c.name,e=g[e]?g[e]:null,!e||k&&e.type!==k?e=null:(k=(k=e.attrs("currentDataStrategy"))?b.getStrategyByName(k):b.guessStrategyByAttrs(e.attrs()))&&k.reusePopover?e.$trigger[0]!==d[0]&&(e.$trigger.data("a-popover-id",null),e.$trigger=d):e=null)}return e}function p(){r||(r=l({id:-1,$popover:q,$trigger:q,immersive:!0},{isActive:function(){return!0},hideMethod:function(){this.hideChildren()},showMethod:c.constants.NOOP}));
return r}var a=c.$,k=1,g={},d={},q=a("\x3cdiv id\x3d'a-popover-root' style\x3d'z-index:-1;position:absolute;' /\x3e").appendTo("body"),r;return{getRoot:p,get:function(a,d){d=d?d:this?this.type:null;return(a=e(a,d))&&d&&a.type!==d?null:a},create:function(b,h){var q=a(b),f=h.attributes||{},r=h.typeSpecificFunctions||h.variant||{};h=h.actionCheck||!1;q.data("a-popover-id");var t=f.type,v=null;!t||q.hasClass("a-declarative")&&q.data("action")&&-1!==q.data("action").indexOf(t)||(q=c.declarative.create(q,
"a-"+t),b=q[0]);if(h&&q.data("action")&&-1===q.data("action").indexOf(t))return null;t&&q&&(v=e(q));if(v)return v.type!==t?null:v;q=f;b=a(b);q.type?b&&b.length?(q=c.extend({id:k++,$trigger:b,$triggerWrapper:null},q),r=c.copy(r),r=l(q,r),d[r.id]=r,r.name&&(g[r.name]=r),b.data("a-popover-id",r.id),b=r.$trigger.closest(".a-popover"),b=!r.attrs("immersive")&&b.length?m(b.data("a-popover-id"))||p():p(),r.parent=b,b.children.push(r)):r=null:r=null;return r},remove:function(a,k){a=this.get(a);var e=!1;if(a){e=
a.id;if(a&&-1<e){var b=c.indexOfArray(a.parent.children,a),q=a.$container,h=a.$trigger;a.parent.children.splice(b,1);a.unlock().hide();a.update({content:""});q&&a.$container.remove();h.data("a-popover-id","");a.name&&delete g[a.name];delete d[e];e=!0}else e=!1;k&&c.declarative.remove(a.$trigger[0],"a-"+k)}return e}}});"use strict";n.when("A","a-popover-util","a-popover-base-factory","prv:a-capabilities").register("a-popover-base-handlers",function(c,f,h,b){function m(a){for(var k;a.length&&!(k=a.data("a-popover-id"));)a=
a.parent();return h.get(k)}var l=c.$;l(document).bind("click "+c.action.start,function(a){var k=l(a.target),g=a.originalEvent;if(!(g&&g.pointerType&&g.pointerType===c.pointerType.touch&&"click"===g.type||k.hasClass("a-modal-scroller")||"a-popover-lgtbox"===k[0].id||"html"===k[0].nodeName.toLowerCase())){var d=function(d){return f.eventOccursWithin(a,d)};c.each(h.getRoot().children,function(a){if(a.isVisible()||a.isContentLoaded()){var g=f.search(a,d);g?g.hideChildren():null!==a.attrs("lightboxOptions")||
a.attrs("immersive")||a.unlock(1).hide()}})}});c.declarative("a-popover-close",["click",c.action.end],function(a){var k=m(a.$target);k&&(k.unlock().hide(),f.trigger("dismiss",k));a.$event.preventDefault()});var e=null,p=null;c.declarative("a-popover-a11y","focusout",function(a){var k=m(a.$target);k&&a.$target.length&&k.$firstTabbable.length&&a.$target[0]===k.$firstTabbable[0]&&!(e&&100>c.now()-e)&&(e=c.now(),c.delay(function(){l(document.activeElement).hasClass("a-popover-start")&&k.$lastTabbable.focus()},
0))});c.declarative("a-popover-a11y","focusin",function(a){var k=m(a.$target);k&&a.$target.length&&a.$target.hasClass("a-popover-end")&&!(p&&100>c.now()-p)&&(p=c.now(),c.delay(function(){k.$firstTabbable.focus()},0))});c.declarative("a-popover-a11y","keydown",function(a){var k=a.$event;k.keyCode===c.constants.keycodes.ESCAPE&&(a=m(a.$target),k.preventDefault(),a&&a.hide())});c.on("resize zoom",function(){h.getRoot().updatePosition()});if(b.isSafari&&c.capabilities.ios)c.on("a:popover:refresh",function(a){a=
a.popover;a.$popover&&a.$popover.undelegate('input[type\x3d"date"]',"blur").delegate('input[type\x3d"date"]',"blur",function(){var a=c.$(u);a.scrollTop(a.scrollTop()+1)})})});"use strict";n.when("A","a-popover-base-apis","a-popover-base-handlers").register("a-popover-base",function(c,f,h){return f});"use strict";n.when("A","a-popover-util","a-popover-data","a-popover-position","a-popover-lightbox","a-popover-animate","prv:a-capabilities").register("a-popover-objectclass",function(c,f,h,b,m,l,e){function p(e,
b){var h=-1,r=[1],p=-2;this.parent=null;this.children=[];this.typeSpecificFunctions={};this.attributes={position:"triggerVertical",alone:!1,immersive:!1,restoreFocusOnHide:!0};var t=function(){this.isActive()?this._willTriggerEvents&&f.trigger("visible",this):f.trigger("invisible",this);return this},A=function(g,e){var b=this.isActive(),h=this.getDataStrategy(),l=!this.$popover,f=e||l;e=!1;g=g||f;if(!f)for(var p=r.length;p--&&!f;)f=!d[r[p]];f&&(f=w.apply(this),f=k(f),l||(h.unloadContent(this),this.$container.remove(),
e=!0),k("body").append(f),this.$container=f,this.$popover=this.$container.hasClass("a-popover")?this.$container:this.$container.find(".a-popover"),this.$startAnchor=this.$popover.hasClass("a-popover-start")?this.$popover:this.$popover.find(".a-popover-start"),this.$endAnchor=this.$popover.find(".a-popover-end"),this.$popover.attr("id","a-popover-"+this.id).data("a-popover-id",this.id));this.attrs("immersive")||(f=parseInt(this.parent.$popover.css("z-index"),10),c.isFiniteNumber(f)||(f=this.parent.attrs("immersive")?
1010:0),"dropdown"===this.type&&q&&(f=Math.max(599,f)),f=Math.max(299,100+f),this.$popover.css("z-index",f));if(h.shouldRefreshContent(this)||g)e||h.unloadContent(this),h.loadContent(this,l);this.typeSpecificFunctions.updateDimensions!==a&&this.typeSpecificFunctions.updateDimensions.apply(this);r=[];b&&y.call(this,[],!1);g=this.$popover.find(".a-popover-inner").find("a, button, input, select, textarea, [tabindex]:not([tabindex\x3d'-1'])");g=g.not(".a-dropdown-link");this.$firstTabbable=this.$popover.find('[data-action\x3d"a-popover-close"]');
this.$firstTabbable=this.$firstTabbable.length?this.$firstTabbable:g.first();this.$lastTabbable=0===g.length?this.$firstTabbable:g.last();return this},y=function(d,k){function e(){b.updatePosition();var a=b.attrs("navigate");!k&&a&&b.attrs("navigate",!1);l.call(b,t,d);k&&f.trigger("show",b);r&&r.apply(b,d);k&&f.trigger("afterShow",b);b.$popover.attr("aria-hidden","false");"tooltip"!==b.type&&g.attr("aria-hidden","true");!k&&a&&b.attrs("navigate",a);p=2}var b=this;k=!!k;var h=b.typeSpecificFunctions,
l=h.showMethod!==a?h.showMethod:B,q=h.beforeShowMethod!==a?h.beforeShowMethod:null,r=h.afterShowMethod!==a?h.afterShowMethod:null;p=1;b._willTriggerEvents=k;b.attrs("originalFocus",document.activeElement);b.$popover.css("visibility","hidden").addClass("a-popover-hidden").show();q&&q.apply(b,d);b.attrs("synchronous")?e():c.delay(function(){e()},0)};this.show=function(){var a=this,d=a.attrs("lightboxOptions")||null;if(a.isActive()||l.isAnimating(a))return this;a.lock(1);d&&m.lock(1);a.parent.$container&&
a.parent.$container.is(".a-popover")&&a.parent.$container.attr("aria-hidden","true");a.attrs("alone")&&c.each(a.parent.children,function(d){d.isActive()&&d.id!==a.id&&!d.attrs("modeless")&&d.unlock().hide()});f.trigger("beforeShow",a);if(!a.$container||a.isDirty()||a.getDataStrategy().shouldRefreshContent(a))f.trigger("refresh",a),A.call(a);if(a.draggable){var g=a.$container;c.draggable(g,{handle:g.find(".a-popover-draggable-handle")})}d&&m.show(c.extend({popover:a},d));y.call(a,arguments,!0);c.delay(function(){a.unlock(1);
d&&m.unlock(1)},0);return this};this.hide=function(){var d=this,e=d.typeSpecificFunctions,b=e.hideMethod!==a?e.hideMethod:n,h=e.beforeHideMethod!==a?e.beforeHideMethod:null,q=e.afterHideMethod!==a?e.afterHideMethod:null,r=d.attrs("lightboxOptions")||null;if(!d.isActive()||d.isLocked()||l.isAnimating(d))return this;p=-1;d.hideChildren();f.trigger("beforeHide",d);h&&h.apply(d,arguments);b.call(d,t,arguments);f.trigger("hide",d);c.delay(function(){function a(){var a=null;"dropdown"===d.type?a=d.$trigger:
d.$trigger&&k(d.$trigger).length&&(a=d.$trigger.is("a, input, button")?d.$trigger:d.$trigger.find("a, input, button"));a&&a.length||(a=k(d.attrs("originalFocus")));!a.length||v&&!a.is(":visible")||c.delay(function(){("secondary-view"===d.type||c.onScreen(a,0))&&a.focus()},400)}q&&q.apply(d,arguments);d.$popover.attr("aria-hidden","true");"tooltip"!==d.type&&g.attr("aria-hidden","false");d.parent.$container&&d.parent.$container.is(".a-popover")&&d.parent.$container.attr("aria-hidden","false");r&&(d.parent.attrs("lightboxOptions")?
m.show(c.extend({popover:d.parent},r)):m.hide(r));f.trigger("afterHide",d);p=-2;d.attrs("restoreFocusOnHide")&&a()},0);return this};this.update=function(a){var d="string"===typeof a?{content:a}:c.copy(a),g=this.attrs();a=this.getDataStrategy();c.each(d,function(a,d){(a&&!g[d]||g[d]&&g[d]!==a)&&r.push(d)});this.isDirty()&&(d=c.extend({},g,d),this.attrs(d),this.getDataStrategy(d),this.$popover&&a.unloadContent(this),this.isActive()&&(A.call(this,!0),this.focus()));return this};this.refresh=function(a,
d){return A.call(this,a||!0,d||!1)};this.isActive=function(){return 1<=p};this.isVisible=function(){return 2===p};this.isContentLoading=function(){return 3===p};this.setContentLoading=function(){p=3};this.isContentLoaded=function(){return 4===p};this.setContentLoaded=function(){p=4};this.isDirty=function(){return 0<r.length};this.lock=function(a){a||(a=10);h<a&&(h=a);return this};this.unlock=function(a){a||(a=10);h<=a&&(h=-1);return this};this.isLocked=function(){return-1!==h};this.typeSpecificFunctions=
b;this.attrs(e);c.extend(this,this.attributes)}var a,k=c.$,g=k("#a-page"),d={name:!0,url:!0,content:!0,width:!0,height:!0,"max-width":!0,"max-height":!0,"min-width":!0,"min-height":!0},q=c.capabilities.mobile,r=q||c.capabilities.tablet,t=q&&e.isIE10Plus,v=k("html").hasClass("a-lt-ie9"),B=function(a){this.$popover.css({visibility:"visible"}).removeClass("a-popover-hidden");this.attrs("focusWhenShown")&&"ajax"!==this.attrs("currentDataStrategy")&&this.focus();a.call(this)},n=function(a){this.$popover.hide().find(".a-lgtbox-vertical-scroll").removeClass("a-lgtbox-vertical-scroll");
a.call(this)},w=function(){var d=this.typeSpecificFunctions;return d.skin!==a?d.skin(this):""},x=p.prototype;x.getDataStrategy=function(a){var d=this.typeSpecificFunctions;a||this.attrs("currentDataStrategy")||(a=this.attrs());a&&(a=a.dataStrategy?h.getStrategyByName(a.dataStrategy):h.guessStrategyByAttrs(a))&&(d.dataStrategy=a,this.attrs("currentDataStrategy",a.name));return d.dataStrategy};x.getContent=function(){return this.typeSpecificFunctions.getContent!==a?this.typeSpecificFunctions.getContent.apply(this,
arguments):null};x.updateContent=function(d){this.typeSpecificFunctions.updateContent!==a&&this.typeSpecificFunctions.updateContent.apply(this,arguments);return this};x.setAriaBusy=function(d){this.typeSpecificFunctions.setAriaBusy!==a&&this.typeSpecificFunctions.setAriaBusy.apply(this,arguments);return this};x.ajax=function(a){return this.update({url:a})};x.updateChildrenPosition=function(){c.each(this.children,function(a){a.isActive()&&a.updatePosition()});return this};x.updatePosition=function(){var d=
this;if(-1===d.id)c.each(d.children,function(a){a.isActive()&&a.updatePosition()});else{if(this.typeSpecificFunctions.updatePosition!==a)return this.typeSpecificFunctions.updatePosition.apply(this,arguments),c.each(d.children,function(a){a.isActive()&&a.updatePosition()}),d;var g=d.$popover;e.isMetroIEGuess&&e.isIETouchCapable?g.css("opacity",.01):g.css("visibility","hidden");var h=function(){var a=g.find(".a-popover-inner").css({height:"auto","overflow-y":"auto"}),h=d.attrs("position"),q={};q=d.typeSpecificFunctions.positionStrategy?
b.customPosition(d,d.typeSpecificFunctions.positionStrategy):b[h](d);f.trigger("beforeUpdatePosition",d);h={top:q.top+"px",left:q.left+"px"};e.isMetroIEGuess&&e.isIETouchCapable?h.opacity=1:h.visibility="visible";g.css(h);d.isContentLoaded()&&0===k(document.activeElement).closest(d.$popover).length&&!0===d.attrs("focusWhenShown")&&d.focus();if(a.length&&(!a[0].style.height||"auto"===a[0].style.height)){q=g.outerHeight()||0;var l=g.find(".a-popover-header, .a-modal-close-nohead-top").outerHeight(!0)||
0,r=g.find(".a-popover-footer").outerHeight(!0)||0;h=a.outerHeight()||0;q=q-l-r;h>q&&a.css({height:q+"px","overflow-y":"scroll"})}f.trigger("afterUpdatePosition",d);f.trigger("positionUpdated",d);c.each(d.children,function(a){a.isActive()&&a.updatePosition()})};d.attrs("immersive")&&r?(g.css({top:0,left:0}),c.delay(function(){h()},0)):h()}return d};x.attrs=function(d,g){var k=this;if(g===a&&"object"!==typeof d)return d?"string"===typeof d?this.attributes[d]!==a?this.attributes[d]:null:null:this.attributes;
"object"===typeof d?c.each(d,function(a,d){k.attrs(d,a)}):"string"===typeof d&&(this.attributes[d]=g,k[d]=g);return this};x.hideChildren=function(){c.each(this.children,function(a){a.unlock(1);a.hide()});return this};x.focus=function(){var a=this,d=k(u),g=d.scrollTop(),e=a.$popover.offset().top;t&&g>e&&d.scrollTop(e);c.delay(function(){a.$firstTabbable.focus()},0);return this};return{PopoverClass:p}});"use strict";n.when("jQuery","ready").register("a-changeover",function(c){c(document).delegate(".a-changeover:not(.a-changeover-manual)",
"webkitAnimationEnd animationend click touchstart",function(c){this.style.display="none"})});"use strict";n.when("A").register("a-dropdown-base-positions",function(c){return{positionStrategy:function(f){var h=f.$popover,b=f.$trigger,m=f.measure;f=h.find(".a-popover-inner");f.css({"min-width":"0px",width:"auto",height:"auto"});var l=b.nextAll(".a-button-dropdown");l.length||(l=b.closest(".a-button-group"));b=m(h,l);m=b.windowWidth-(b.triggerLeft+b.popoverWidth);l=b.windowWidth-b.triggerLeft-b.triggerWidth;
var e=b.triggerLeft,p={},a=b.triggerTop-b.windowTop,k=b.windowBottom-b.triggerBottom,g=h.find(".a-popover-inner");a>k&&k<b.popoverHeight?(k=a,p.top=a<b.popoverHeight?b.triggerBottom-a:b.triggerBottom-b.popoverHeight):p.top=b.triggerTop;g.css("height",k<b.popoverHeight?k-b.headerHeight+"px":"auto");b.popoverHeight>k?g.addClass("a-lgtbox-vertical-scroll"):g.removeClass("a-lgtbox-vertical-scroll");f.hasClass("a-lgtbox-vertical-scroll")&&-1<navigator.appVersion.indexOf("Windows")?(a=Math.max(b.popoverWidth,
b.triggerWidth)+c.scrollBarWidth(!0),f.width(a)):f.css("min-width",b.triggerWidth+"px");b.popoverWidth=h.width();p.left=50>m&&e>l?b.triggerRight-b.popoverWidth:b.triggerLeft;return p}}});"use strict";n.when("A","a-dropdown-base-positions").register("a-dropdown-base-view-base",function(c,f){return c.extend(f,{updateContent:function(c){"string"===typeof c?this.$popover.find(".a-popover-inner").html(c):c&&this.$popover.find(".a-popover-inner").html("").append(c)},beforeShowMethod:function(){this.parent.lock(1);
this.$trigger.attr("aria-pressed",!0)},afterShowMethod:function(){var h=this.$popover,b=h.find(".a-active");c.delay(function(){b.length?b.closest("li").focus():b=h.find("li").first().focus()},0)},beforeHideMethod:function(){this.parent.unlock(1)},afterHideMethod:function(){this.$trigger.attr("aria-pressed",!1);this.$popover.css("width","auto")}})});"use strict";n.when("A","a-dropdown-base-view-base").register("a-dropdown-base-view",function(c,f){return f});"use strict";n.when("A","a-popover-base-factory",
"a-dropdown-base-view").register("a-dropdown-base-factory",function(c,f,h){function b(a,k,g){var d=['\x3cli tabindex\x3d"0" role\x3d"option"'],b=a.data("aCssClass"),h=a.data("aId"),l=a.data("aHtmlContent"),f=a.data("aImageSource"),p=JSON.stringify({stringVal:a.val()});p=['\x3ca tabindex\x3d"-1" href\x3d"javascript:void(0)" aria-hidden\x3d"true" data-value\x3d"',c.escapeHtml(p),'"'];var m=["a-dropdown-link"],n=["a-dropdown-item"];k&&(m.push("a-active"),d.push(' aria-checked\x3d"true"'));e&&(c.capabilities.mobile||
c.capabilities.tablet)&&m.push("a-list-link-after-group");e=!1;b&&n.push(b);h&&d.push(' id\x3d"'+h+'"');d.push('aria-labelledby\x3d"');d.push(g);d.push('"');p.push(' id\x3d"');p.push(g);p.push('"');d.push(' class\x3d"'+n.join(" ")+'"');d.push("\x3e");l?k=l:(k=[],f&&(m.push("a-option-has-image"),k.push('\x3cimg src\x3d"'+f+'" class\x3d"a-rich-option-image" /\x3e')),k.push(a.html()),k=k.join(""));p.push(' class\x3d"');p.push(m.join(" "));p.push('"\x3e');p.push(k);p.push("\x3c/a\x3e");d.push(p.join(""));
d.push("\x3c/li\x3e");return d.join("")}function m(a){a.jquery||(a=l(a));var k=a.children("optgroup,option:not(.a-prompt)"),g=!1,d=a[0],c=a.attr("id")?a.attr("id"):"dropdown"+p++;if(-1<d.selectedIndex)var h=d.options[d.selectedIndex].value;var f=['\x3cul tabindex\x3d"-1" class\x3d"a-nostyle a-list-link',a.data("a-has-images")?" a-box-list":"",'" role\x3d"listbox" aria-multiselectable\x3d"false"\x3e'];var m=0;k.each(function(){var a=l(this);a.is("optgroup")?(a.children().each(function(a){f.push(b(l(this),
h===this.value,c+"_"+m++))}),f.push('\x3cli tabindex\x3d"-1" class\x3d"divider"\x3e\x3chr /\x3e\x3c/li\x3e'),g=e=!0):(f.push(b(a,h===this.value,c+"_"+m++)),g=!1)});g&&f.pop();f.push("\x3c/ul\x3e");return f.join("")}var l=c.$,e=!1,p=1;return c.extend({create:f.create,remove:f.remove,get:f.get},{type:"dropdown",create:function(a,k,g){var d=k.$button,e=k.$sourceSelect,b=e[0],l=d.find(".a-dropdown-label"),p=e.data("aTouchHeader");if(!p||!p.length&&l.length)p=l.text();return f.create(a,{attributes:{type:"dropdown",
header:p,closeButtonLabel:k.closeButtonLabel?k.closeButtonLabel:"Close",inlineContent:e,position:k.position,alone:!0,sourceSelect:e,sourceButton:d,name:e[0].name,preventNameReuse:!0,lightboxOptions:c.capabilities.mobile||c.capabilities.tablet?{showDuration:c.capabilities.ios?null:0,hideDuration:0}:null},typeSpecificFunctions:c.extend({},h,g,{skin:function(a){var d=g.subskin?g.subskin(b):m(b);a.attrs("inlineContent",d);return g.skin(a)}}),actionCheck:!1})}})});"use strict";"use strict";n.when("A",
"a-dropdown-base-factory").register("a-dropdown-keyboard-handlers",function(c,f){function h(a){a.removeData("a-user-navigated-text").removeData("a-user-navigated-idx")}function b(a,g){a.removeAttr("aria-selected");"option"===g.attr("role")&&g.attr("aria-selected","true");g.focus()}function m(a){var g=a.parent("ul");a=g.find("li");var d=g.find(":focus");1>d.length&&(d=g.find('[aria-checked\x3d"true"]'));g=d;return{index:0<g.length?g.index():0,$options:a}}function l(a,g,d){a.preventDefault();g.find("a").eq(0).trigger("click");
h(d)}function e(a){var g=a.data("a-user-navigated-debouncer");g||(g=c.debounce(function(){h(a)},1E3),a.data("a-user-navigated-debouncer",g));g()}var p=c.$,a=c.constants.keycodes;return{keyDown:function(e){var g=p(this),d=g.parent();switch(e.which){case a.UP_ARROW:e.preventDefault();h(d);0<m(g).index&&b(g,g.prev());break;case a.DOWN_ARROW:e.preventDefault();h(d);d=m(g);e=d.index;0<=e&&e+1<d.$options.length&&b(g,g.next());break;case a.ENTER:l(e,g,d);break;case a.ESCAPE:e.preventDefault();g=f.get(g.closest(".a-popover"));
g.sourceButton.find(".a-button-text").focus();g.hide();h(d);break;case a.SPACE:d.data("a-user-navigated-text")||l(e,g,d);break;case a.TAB:h(d);break;case a.BACKSPACE:e.preventDefault()}},keyPress:function(b){var g=p(this),d=g.parent(),k=f.get(g.closest(".a-popover")),h=b.which;if(k&&k.isActive()&&h!==a.TAB&&0!==h){e(d);var m=d.data("a-user-navigated-idx")||0;if(!(0>m)){k=(d.data("a-user-navigated-text")||"")+String.fromCharCode(h).toLocaleLowerCase();d.data("a-user-navigated-text",k);for(var v=d.children();m<
v.length;m++){var n=v.eq(m);if(0===c.trim(n.text().toLocaleLowerCase()).indexOf(k)){n.focus();d.data("a-user-navigated-idx",m);return}}d.data("a-user-navigated-idx",-1);h===a.SPACE&&l(b,g,d)}}}}});"use strict";n.when("A","a-dropdown-select-apis","a-dropdown-base-factory","a-popover-base").register("a-dropdown-base",function(c,f,h,b){function m(b,g,d){try{var k=b.$event||b;k.preventDefault?k.preventDefault():k.returnValue=!1}catch(t){}var l=b.$declarativeParent?b.$declarativeParent:a(b.currentTarget);
c.delay(function(){var k=g.$button?g.$button:g.getButtonFromEvent(b),f=g.$select?g.$select:g.getSelectFromEvent(b);if(!k.hasClass("a-button-disabled")){p(f,g).isSynced()||e(a.extend({$button:k,$select:f},g));f=c.extend({},g,{$button:k,$sourceSelect:f});var q=h.create(l,f,d);if(q&&(q.show(),k.data("a-popover-id",q.id).data("popover",q).data("isPressed",!0),!q.hasOnLoad)){q.hasOnLoad=!0;var r=[];k=q.$popover.find("img");k.length&&(k.each(function(d,g){if(!g.complete||!g.naturalWidth){var e=a.Deferred();
r.push(e);a(g).bind("load error",function(){e.resolve()})}}),r.length?a.when.apply(a,r).done(function(){q.updatePosition()}):q.updatePosition())}}})}function l(a){var g=a.$button;a=a.$select;g||(g=a.nextAll(".a-button-dropdown"));return a.length?((g=h.get(g))&&g.hide(),!0):!1}function e(a){var g=a.$button;a=a.$select;g||(g=a.nextAll(".a-button-dropdown"));return a.length?((g=h.get(g))&&h.remove(g.id),a.data("a-info",null),!0):!1}function p(b,g){b=g.$select?g.$select:"string"===typeof b?a("select#"+
b):b.jquery?b:a(b);if(!b.length)return null;var d=g.$button?g.$button:g.getButtonFromSelect(b);b.data("a-select")?g=b.data("a-select"):(g=c.extend({hidePopover:l,refreshPopover:e,options:c.extend({$select:b,$button:d},g)},f),b.data("a-select",g));return g}var a=c.$;return{toggleDropdown:function(a,g){var d=(g.$button?g.$button:g.getButtonFromEvent(a)).data("popover");d&&d.$popover.is(":visible")?d.hide():m(a,g)},showDropdown:m,getSelect:p}});"use strict";n.when("A","jQuery").register("a-dropdown-options-apis",
function(c,f){return{update:function(c){"object"!==typeof c&&n.error("input of options.update() function must be a hash");this.hidePopover(this.options);for(var b=0,h=this.size();b<h;b++){var l=this.options.elements[b],e=l[0];c.value&&l.val(c.value);void 0!==c.selected&&(!e.selected&&c.selected?this.options.$select.val(e.value):e.selected&&!c.selected&&this.options.$select.val(""));c.html_content&&l.data("a-html-content",c.html_content);c.image_source&&l.data("a-image-source",c.image_source);c.native_css_class&&
(e.className=c.native_css_class);c.css_class&&l.data("a-css-class",c.css_class);c.native_id&&(e.id=c.native_id);c.id&&l.data("a-id",c.id);c.text&&(l.text(c.text),e.selected&&this.setSelectValue(e.value))}this.refreshPopover(this.options);return this},remove:function(){this.hidePopover(this.options);for(var c=0,b=this.size();c<b;c++){var f=this.options.elements[c];f.is(":selected")&&this.setSelectValue("");f.remove()}this.refreshPopover(this.options);return!0},info:function(){for(var c=[],b=0,f=this.size();b<
f;b++){var l=this.options.elements[b];c.push({value:l[0].value,text:l.text(),selected:l[0].selected,html_content:l.data("a-html-content"),image_source:l.data("a-image-source"),native_css_class:l[0].className,css_class:l.data("a-css-class"),native_id:l[0].id,id:l.data("a-id")})}return c},size:function(){return this.options.elements.length}}});"use strict";n.when("A","jQuery","a-dropdown-options-apis").register("a-dropdown-select-apis",function(c,f,h){function b(e){var b=this.options.$select,a=this.options.$button,
c=b[0];"number"===typeof e&&(e=e.toString());for(var g=0,d=c.options.length;g<d&&c.options[g].value!==e;g++);g===d&&""===e&&(g=0);g<d&&(a.find(".a-dropdown-prompt").html(c.options[g].innerHTML),a.css("min-width",g/c.options.length+"%"),b.val()!==e&&(b.val(e),b.trigger("change",[l,!0])));return this}function m(e){if(e===l)return this.options.$select.val();this.setValue=b;return this.setValue(e)}var l;return{isSynced:function(){var e=this.options.$select,b=e.data("a-info"),a=this.getOptions().info();
e.data("a-info",a);return b?c.equals(b,a):!0},update:function(e){"object"!==typeof e&&n.error("input of select.update() function must be an object");this.hidePopover(this.options);var b={none:!0,micro:!0,mini:!0,small:!0,base:!0,medium:!0,large:!0,"extra-large":!0,"double-large":!0,block:!0},a=this.options.$select,c=a[0],g=this.options.$button,d=g[0],h=a.siblings("label");e.name&&(c.name=e.name);if(e.option_prompt){var r=a.find(".a-prompt");r.length?(r.text(e.option_prompt),r.prop("selected")&&g.find(".a-dropdown-prompt").text(e.option_prompt)):
(a.prepend(f("\x3coption class\x3d'a-prompt' /\x3e").text(e.option_prompt)),g.find(".a-dropdown-prompt").text(e.option_prompt))}e.has_images!==l&&a.data("a-has-images",!!e.has_images);e.button_size!==l&&g.length&&("small"===e.button_size?g.addClass("a-button-small"):g.removeClass("a-button-small"));e.spacing!==l&&b.hasOwnProperty(e.spacing)&&(b=/\ba-spacing-[a-z]+\b/g,c.className=c.className.replace(b,""),d.className=d.className.replace(b,""),a.addClass("a-spacing-"+e.spacing),g.addClass("a-spacing-"+
e.spacing));e.grid_units!==l&&(b=/\ba-button-span\d{1,2}\b/g,c.className=c.className.replace(b,""),d.className=d.className.replace(b,""),isFinite(e.grid_units)&&0<e.grid_units&&13>e.grid_units&&(a.addClass("a-button-span"+e.grid_units),g.addClass("a-button-span"+e.grid_units)));e.width_name&&("base"===e.width_named?g.addClass("a-button-width-normal"):g.removeClass("a-button-width-normal"));if(e.status){var m=e.status;b=g.closest(".a-dropdown-container, .a-splitdropdown-container").find(".a-button");
r="error"===m;m="disabled"===m;c.disabled=m;b.toggleClass("a-button-disabled",m);f(c).hasClass("a-native-splitdropdown")?m?b.find("button.a-button-text").attr("aria-disabled","true").parents(".a-button-splitdropdown").find("button.a-button-text").removeAttr("role"):b.find("button.a-button-text").removeAttr("aria-disabled").parents(".a-button-splitdropdown").find("button.a-button-text").attr("role","combobox"):m?b.attr("aria-disabled","true"):b.removeAttr("aria-disabled");b.toggleClass("a-button-error",
r)}e.native_id&&(c.id=e.native_id,h.length&&(h[0].htmlFor=e.native_id));e.id&&(d.id=e.id);e.native_css_class&&((d=a.data("a-native-class"))&&a.removeClass(d),a.addClass(e.native_css_class).data("a-native-class",e.native_css_class));e.css_class&&((d=g.data("a-class"))&&g.removeClass(d),g.addClass(e.css_class).data("a-class",e.css_class));e.label_text!==l&&(""===e.label_text?(g.find(".a-dropdown-label").remove(),a.siblings("label").remove()):(d=g.find(".a-dropdown-label"),d.length?d.text(e.label_text):
g.find(".a-dropdown-prompt").before(f("\x3cspan class\x3d'a-dropdown-label' /\x3e").text(e.label_text)),h.length?h.text(e.label_text):a.before(f("\x3clabel for\x3d'"+c.id+"' class\x3d'a-native-dropdown' /\x3e").text(e.label_text))),g.css("min-width",""===e.label_text?"0.1%":"0%"));this.refreshPopover(this.options);return this},setValue:b,val:m,getOptions:function(b){var e=this.options.$select,a=[];b=b===l?e.children("optgroup, option:not(.a-prompt)"):f.isArray(b)?b:[b];for(var k=0,g=b.length;k<g;k++){var d=
b[k],q=[];c.isFiniteNumber(d)?q=e.children("optgroup, option:not(.a-prompt)").eq(d):"string"===typeof d?q=e.children("option#"+d):"object"===typeof d&&(q=d.jquery?d:f(d));q.length&&a.push(q)}return c.extend({hidePopover:this.hidePopover,refreshPopover:this.refreshPopover,setSelectValue:m,options:c.extend({elements:a},this.options)},h)},getOption:function(b){return this.getOptions(b)},addOptions:function(b,c){f.isArray(b)||(b=[b]);for(var a=b.length;a--;)this.addOption(b[a],c);return this},addOption:function(b,
c){var a=this.options.$select;if(!b.native_id||!a.find("option#"+b.native_id).length){var e=a.children("optgroup, option:not(.a-prompt)"),g=document.createElement("option");c=c&&0<c&&c<=e.length?c:0;b.native_id&&(g.id=b.native_id);0===e.length||c===e.length?a[0].appendChild(g):e.eq(c).before(g);this.getOption(g).update(b)}return this},removeOptions:function(b){this.getOptions(b).remove();return this},removeOption:function(b){return this.removeOptions(b)},appendOption:function(b){return this.addOption(b,
this.options.$select.children("optgroup, option:not(.a-prompt)").length)},appendOptions:function(b){if(f.isArray(b))for(var c=0,a=b.length;c<a;c++)this.addOption(b[c]);return this}}});"use strict";n.when("A","a-dropdown-options","a-dropdown-apis","a-dropdown-keyboard-handlers","a-analytics").register("a-dropdown",function(c,f,h,b,m){var l=c.$,e=l(document);c.on("beforeReady a:pageUpdate a:ajax:complete",function(){var b=e.find("select.a-native-dropdown").not("[tabindex\x3d0]"),a=b.length;a&&(b.next(".a-button-dropdown").attr("aria-hidden",
!0).find(".a-button-text").removeAttr("tabindex"),m.count("dropdown:usage",a),b.attr("tabindex",0))});e.delegate(".a-native-dropdown","change",function(b,a,e){var g=f.getButtonFromEvent(b),d="",k=-1<this.selectedIndex?this.options[this.selectedIndex].value:"",r=g.data("popover");b=!1;if(g.length){g=g.eq(0);for(var m=this.length;m--;){var p=this.options[m];if(p.value===k){d=p.innerHTML;break}}r&&r.$popover&&(r.$popover.find(".a-active").removeClass("a-active").closest("li").attr("aria-checked",!1),
void 0===a&&(a=JSON.stringify({stringVal:k}),a=r.$popover.find('a[data-value\x3d"'+c.escapeJquerySelector(a)+'"]')));a&&a.length&&(b=!0,a.addClass("a-active").closest("li").attr("aria-checked",!0));g.find(".a-dropdown-prompt").html(d);g.css("min-width",this.selectedIndex/this.options.length+"%");r&&(r.hide(),(g=h.getSelect(this))&&l(this).data("a-info",g.getOptions().info()));e||(e=this.name,g=this.id,a={auiItemNode:b?a[0]:null,nativeItemNode:this.options[this.selectedIndex],selectNode:this,id:g,
name:e,value:this.value},e&&""!==e&&(c.trigger("a:dropdown:"+e+":select",a),c.trigger("a:dropdown:selected:"+e,a)),g&&""!==g&&c.trigger("a:dropdown:"+g+":select",a),c.trigger("a:dropdown:select",a))}});e.delegate(".a-button-dropdown:not(.a-button-disabled)","focusin",function(){l(this).find(".a-button-text").focus()});e.delegate("select.a-native-dropdown","focusin",function(){var b=l(this).closest(".a-dropdown-container").find(".a-button-dropdown");b.hasClass("a-button-disabled")||b.addClass("a-button-focus")}).delegate("select.a-native-dropdown",
"focusout",function(){l(this).closest(".a-dropdown-container").find(".a-button-dropdown").removeClass("a-button-focus")});return h});"use strict";n.when("A","a-dropdown-base","a-dropdown-options").register("a-dropdown-apis",function(c,f,h){function b(b){return f.getSelect(b,h)}var m=c.$;c.on("beforeReady",function(){m(".a-dropdown-container select").each(function(){var c=b(this);c&&c.val(c.val())})});return{getSelect:b,updateOption:function(c,e){var f=m("option#"+c).closest("select");b(f).getOption(c).update(e)},
updateSelect:function(c,e){b(c).update(e)},setValue:function(c,e){b(c).setValue(e)}}});"use strict";n.when("A","a-popover-accessibility").register("a-dropdown-view",function(c,f){return{skin:function(c){var b=c.attrs("header")||"";c={id:c.id,header_str:b,needs_declarative:!1};return['\x3cdiv class\x3d"a-popover a-dropdown a-dropdown-common a-declarative" aria-modal\x3d"true" data-action\x3d"a-popover-a11y"\x3e',f.getStartAnchorHtml(c),'\x3cdiv class\x3d"a-popover-wrapper"\x3e\x3cdiv class\x3d"a-popover-inner"\x3e\x3c/div\x3e\x3c/div\x3e',
f.getEndAnchorHtml(c),"\x3c/div\x3e"].join("")}}});"use strict";n.when("A").register("a-dropdown-options",function(c){function f(b){return b.nextAll(".a-button-dropdown")}var h=c.$;return{getSelectFromButton:function(b){return b.closest(".a-button-dropdown").prevAll("select.a-native-dropdown")},getButtonFromEvent:function(b){return b.popover?b.popover.$trigger.nextAll(".a-button-dropdown"):b.$target?f(b.$target):h(b.target).nextAll(".a-button-dropdown")},getButtonFromSelect:f,getSelectFromEvent:function(b){b=
h(b.target);b.length||n.error("Cannot locate the \x3cselect\x3e of dropdown");return b},triggerSelector:".a-button-dropdown"}});"use strict";n.when("A","a-popover-accessibility").register("a-dropdown-split-view",function(c,f){return{skin:function(c){var b=c.attrs("header")||"";c={id:c.id,label_str:b,needs_declarative:!1};return['\x3cdiv class\x3d"a-popover a-splitdropdown a-dropdown-common a-declarative" aria-modal\x3d"true" data-action\x3d"a-popover-a11y"\x3e',f.getStartAnchorHtml(c),'\x3cdiv class\x3d"a-popover-wrapper"\x3e\n\x3cdiv class\x3d"a-popover-inner"\x3e\x3c/div\x3e\n\x3c/div\x3e',
f.getEndAnchorHtml(c),"\x3c/div\x3e"].join("\n")}}});"use strict";n.when("A","a-dropdown-base","a-dropdown-split-utils","a-dropdown-split-view","a-dropdown-split-options","a-dropdown-base-factory","a-dropdown-keyboard-handlers").register("a-dropdown-split-handlers",function(c,f,h,b,m,l,e){var p=c.$;c.declarative("a-splitdropdown-button","click",function(a){var e=m.getButtonFromEvent(a);f.showDropdown(a,c.extend({$button:e},m),b)});c.declarative("a-splitdropdown-main","click",function(a){var b=a.$target.closest(".a-splitdropdown-container").find("select"),
c=b.attr("id"),d=b.val();h.triggerEvent(c,b,d);a.$event.preventDefault()});c.declarative("a-splitdropdown-button","keydown",function(a){var e=m.getButtonFromEvent(a),g=c.constants.keycodes,d=a.$event.which;d!==g.DOWN_ARROW&&d!==g.ENTER&&d!==g.SPACE||f.showDropdown(a,p.extend({$button:e},m),b)});p(document).delegate(".a-popover.a-splitdropdown a","click",function(a){var b=p(this),c=b.data("value").stringVal;b=l.get(b.closest(".a-popover"));var d=b.sourceSelect,e=d.attr("id");b.hide();h.triggerEvent(e,
d,c);a.preventDefault()}).delegate(".a-splitdropdown li","keydown",e.keyDown).delegate(".a-splitdropdown li","keypress",e.keyPress)});"use strict";n.when("A").register("a-dropdown-split-options",function(c){function f(b){return b.popover?b.popover.$trigger.closest(".a-button-splitdropdown"):b.$target?b.$target.closest(".a-button-splitdropdown"):h(b.target).nextAll(".a-button-splitdropdown")}var h=c.$;return{getButtonFromEvent:f,getButtonFromSelect:function(b){return b.next(".a-button-group-splitdropdown").find(".a-button-splitdropdown")},
getSelectFromEvent:function(b){b=f(b).closest(".a-splitdropdown-container").find("select");b.length||n.error("cannot locate the \x3cselect\x3e of the split dropdown");return b}}});"use strict";n.when("A").register("a-dropdown-split-utils",function(c){return{triggerEvent:function(f,h,b){h={$select:h,value:b,id:f};c.trigger("a:splitdropdown:"+f+":select",h);c.trigger("a:splitdropdown:select",h)}}});"use strict";n.when("A","a-dropdown-base","a-dropdown-split-options","a-dropdown-split-utils","a-dropdown-split-handlers",
"a-analytics").register("a-splitdropdown",function(c,f,h,b,m,l){var e=c.$,p=e(document);c.on("a:pageUpdate beforeReady",function(){if((c.capabilities.mobile||c.capabilities.tablet)&&!c.capabilities.touchScrolling){p.find("select.a-native-splitdropdown").removeAttr("tabindex").removeAttr("aria-hidden");var a=p.find(".a-splitdropdown-container label.a-native-dropdown");c.each(a,function(a){e(a).attr("for",e(a).nextAll("select.a-native-splitdropdown").attr("id")||"")})}});p.delegate(".a-native-splitdropdown",
"change",function(a,c,g){a=e(this);c=a.val();var d=a.attr("id");g||b.triggerEvent(d,a,c)}).delegate(".a-button-splitdropdown:not(.a-button-disabled)","focusin",function(){e(this).find(".a-button-text").focus()});c.on("beforeReady a:pageUpdate a:ajax:complete",function(){var a=p.find(".a-button-group-splitdropdown .a-button-disabled");a.attr("aria-disabled")&&(l.count("splitdropdown:usage",a.length),a.removeAttr("aria-disabled").find(".a-button-text").attr("aria-disabled",!0).removeAttr("role"))});
return{getSelect:function(a){return f.getSelect(a,h)}}});"use strict";n.when("A","a-popover-accessibility-templates").register("a-popover-accessibility",function(c,f){var h=f.startAnchorTemplate,b=f.startAnchorDeclarativeTemplate,m=f.endAnchorTemplate,l=f.descriptionTemplate,e=f.offscreenDescriptionTemplate,p=f.labelTemplate,a=f.offscreenStartTemplate,k=function(a,d){var b={"{{DESCRIPTION}}":d,"{{DESCRIPTION_ID}}":a};return l.replace(/\{\{[\w_]*\}\}/g,function(a){return b[a]})},g=function(a){var d=
a.id,b=a.header_str;return(a=a.label_str)?'aria-label\x3d"'+a+'"':b?'aria-labelledby\x3d"a-popover-header-'+d+'"':""},d=function(a,d){var b={"{{DESCRIPTION}}":d,"{{DESCRIPTION_ID}}":a};return e.replace(/\{\{[\w_]*\}\}/g,function(a){return b[a]})};return{getAriaLabelledByDescribedby:function(a){var d=a.id,b=a.header_str,c=a.aria_description,g="";a.label_str?g='aria-labelledby\x3d"a-popover-label-'+d+'"':b&&(g='aria-labelledby\x3d"a-popover-header-'+d+'"');c&&(g+=' aria-describedby\x3d"a-popover-aria-description-'+
d+'"');return g},getPopoverLabelHtml:function(a){var d="",b=a.id;if(a=a.label_str){var c={"{{LABEL}}":a,"{{LABEL_ID}}":"a-popover-label-"+b};d=p.replace(/\{\{[\w_]*\}\}/g,function(a){return c[a]})}return d},getStartAnchorHtml:function(a){var d=a.id,e=a.label_str,f=a.aria_description,l="";if(!d)return"";var q={"{{ROLE}}":'role\x3d"dialog"',"{{ANCHOR_NAME}}":"a-popover-start","{{ARIA_LABEL}}":g(a),"{{LABEL_STR}}":e||"","{{ARIA_DESCRIBEDBY}}":""};a=a.needs_declarative?b:h;f&&(d="a-popover-aria-description-"+
d,q["{{ARIA_DESCRIBEDBY}}"]='aria-describedby\x3d"'+d+'"',l=k(d,f));c.capabilities.ios&&(q["{{ROLE}}"]="");a=a.replace(/\{\{[\w_]*\}\}/g,function(a){return q[a]})+l;return a.replace(/\s\s>|\s>/g,"\x3e")},getEndAnchorHtml:function(a){return m},getDescription:function(a){var b="",c=a.id;(a=a.aria_description)&&(b=d("a-popover-aria-description-"+c,a));return b},getStartAnchorSimplifiedHtml:function(){return a}}});"use strict";n.declare("a-popover-accessibility-templates",{startAnchorTemplate:'\x3cspan tabindex\x3d"0" role\x3d"dialog" class\x3d"{{ANCHOR_NAME}} a-popover-a11y-offscreen" {{ARIA_LABEL}} {{ARIA_DESCRIBEDBY}}\x3e\x3c/span\x3e',
startAnchorDeclarativeTemplate:'\x3cspan tabindex\x3d"0" role\x3d"dialog" data-action\x3d"a-popover-a11y" class\x3d"{{ANCHOR_NAME}} a-popover-a11y-offscreen a-declarative" {{ARIA_LABEL}} {{ARIA_DESCRIBEDBY}}\x3e{{LABEL_STR}}\x3c/span\x3e',endAnchorTemplate:'\x3cspan tabindex\x3d"0" class\x3d"a-popover-end a-popover-a11y-offscreen"\x3e\x3c/span\x3e',descriptionTemplate:'\x3cspan id\x3d"{{DESCRIPTION_ID}}" class\x3d"a-popover-a11y-offscreen"\x3e{{DESCRIPTION}}\x3c/span\x3e',offscreenDescriptionTemplate:'\x3cspan id\x3d"{{DESCRIPTION_ID}}" class\x3d"a-popover-a11y-offscreen" aria-hidden\x3d"true"\x3e{{DESCRIPTION}}\x3c/span\x3e',
labelTemplate:'\x3cspan id\x3d"{{LABEL_ID}}" class\x3d"a-popover-a11y-offscreen" aria-hidden\x3d"true"\x3e{{LABEL}}\x3c/span\x3e',offscreenStartTemplate:'\x3cspan tabindex\x3d"0" class\x3d"a-popover-start a-popover-a11y-offscreen"\x3e\x3c/span\x3e'});"use strict";n.when("A","a-popover-util").register("a-popover-ajax",function(c,f){return{update:function(c,b,f){var l={};l.url=b;f.timeout&&(l.timeout=f.timeout);f.ajaxFailMsg&&(l.ajaxFailMsg=f.ajaxFailMsg);f.cache&&(l.cache=f.cache);c.update(l)},showSpinner:function(c){return f.showSpinner(c)}}});
"use strict";n.when("A").register("a-popover-animate",function(c){function f(b,f){return function(){c[b].apply(c,f)}}function h(b,c){return function(){b._isAnimating=!1;c&&c()}}return{isAnimating:function(b){return b._isAnimating},animate:function(b,m,l,e,p){b._isAnimating=0<l;c.animationFrameDelay(f("animate",[b.$popover,m,l,e,h(b,p)]))},fadeOut:function(b,m,l,e){b._isAnimating=0<m;c.animationFrameDelay(f("fadeOut",[b.$popover,m,l,h(b,e)]))},fadeIn:function(b,m,l,e){b._isAnimating=0<m;c.animationFrameDelay(f("fadeIn",
[b.$popover,m,l,h(b,e)]))}}});n.declare("a-popover-lightbox-markup",{id:"a-popover-lgtbox",div:'\x3cdiv id\x3d"a-popover-lgtbox" class\x3d"a-declarative" data-action\x3d"a-popover-floating-close" /\x3e'});"use strict";n.when("A","ready").register("a-popover-navigate",function(c){function f(a){"string"===typeof a&&(l=!0,u.location.hash=a);return u.location.hash||""}var h=c.$;h=h(u);var b=[],m=[],l=!1,e={},p=!1;m.push(f());h.bind("hashchange",function(a){a.preventDefault();p?p=!1:m.push(f());32<=m.length&&
m.shift();l?l=!1:c.trigger("a:popover:navigate",e[m[m.length-1]])});c.on("a:popover:navigate",function(a){a?a.show({preventNavigate:!0}):(a=0<=b.length-1?b[b.length-1]:null)&&a.unlock().hide({preventNavigate:!0})});c.on("a:popover:showNavigable a:popover:showNavigableLegacy",function(a){b.push(a.popover)});c.on("a:popover:hideNavigable a:popover:hideNavigableLegacy",function(a){b.pop()});return{forward:function(a){var b=a.name+"_"+c.now();e["#"+b]=a;f(b)},back:function(){0<m.length&&m.pop();p=!0;
u.history.back()}}});"use strict";n.when("A","prv:a-capabilities").register("a-popover-position",function(c,f){function h(b,d){var g=c.viewport();if(1===c.viewport().zoom)var f={top:0,left:0};else p||(p=e('\x3cspan id\x3d"a-popover-offset-tracker"\x3e\x3c/span\x3e'),e("body").prepend(p)),f=p.offset();var l=d.offset(),h=b.offset();if(k){var m=u.pageYOffset-document.documentElement.scrollTop;l.top-=m;h.top-=m}l.top-=f.top;l.left-=f.left;h.top-=f.top;h.left-=f.left;m=d[0].getBoundingClientRect();m=m.right-
m.left;d=d.outerHeight();var n=b.outerWidth(!0),w=b.outerHeight(!0);b=b.find(".a-popover-header");b=b.length?b.outerHeight(!0):0;return{windowWidth:g.width,windowHeight:g.height,windowTop:g.scrollTop,windowLeft:g.scrollLeft,windowRight:g.scrollLeft+g.width,windowBottom:g.scrollTop+g.height,zoomTop:f.top,zoomLeft:f.left,triggerWidth:m+1,triggerHeight:d,triggerTop:l.top-a,triggerLeft:l.left-a,triggerRight:l.left+m+a,triggerBottom:l.top+d+a,triggerVerticalCenter:l.top+d/2,triggerHorizontalCenter:l.left+
m/2,popoverWidth:n,popoverHeight:w,popoverTop:h.top,popoverLeft:h.left,popoverRight:h.left+n,popoverBottom:h.top+w,popoverVerticalCenter:h.top+w/2,popoverHorizontalCenter:h.left+n/2,headerHeight:b}}function b(a){return a.removeClass("a-arrow-top a-arrow-bottom a-arrow-left a-arrow-right")}function m(a){var d={deltaTop:0};d.top=a.triggerVerticalCenter-a.popoverHeight/2;if(d.top<a.windowTop+20){var b=Math.min(a.windowTop+20,a.triggerTop-20);d.deltaTop=d.top-b;d.top=b}else d.top+a.popoverHeight>a.windowBottom-
20&&(b=Math.min(20,a.windowBottom-a.triggerBottom+20),d.deltaTop=d.top+a.popoverHeight-(a.windowBottom-b),d.top=a.windowBottom-b-a.popoverHeight);return d}function l(a){var d={deltaLeft:0};d.left=a.triggerHorizontalCenter-a.popoverWidth/2;if(20>d.left){var b=Math.min(20,a.triggerLeft-20);d.deltaLeft=d.left-b;d.left=b}else d.left+a.popoverWidth>a.windowRight-20&&(b=Math.min(20,a.windowRight-a.triggerRight+20),d.deltaLeft=d.left+a.popoverWidth-(a.windowRight-b),d.left=a.windowRight-b-a.popoverWidth);
return d}var e=c.$;e(u);var p=null,a=1,k=c.capabilities.mobile&&f.isIE10Plus;n.when("prv:skin-vars-desktop").execute(function(b){a=b.popover.POPOVER_SPACING?b.popover.POPOVER_SPACING:a});return{windowCenter:function(a){a=h(a.$popover,a.$trigger);var d={};d.top=(a.windowHeight-a.popoverHeight)/2;d.left=(a.windowWidth-a.popoverWidth)/2;0>d.top&&(d.top=0);return d},windowTop:function(a){a=h(a.$popover,a.$trigger);var d={top:0};d.left=a.windowWidth/2-a.popoverWidth/2;return d},windowFullWidth:function(a){return{top:0,
left:0}},triggerRight:function(a,d){var c=a.$popover,e=a.$trigger;d||(d=h(c,e));e=m(d);e.left=d.triggerRight;a.attrs("popoverArrow")&&(b(c).addClass("a-arrow-right"),c.find(".a-arrow-border").css("top",d.popoverHeight/2+e.deltaTop));return e},triggerLeft:function(a,d){var c=a.$popover,e=a.$trigger;d||(d=h(c,e));e=m(d);e.left=d.triggerLeft-d.popoverWidth;e.left=0<e.left?e.left:0;a.attrs("popoverArrow")&&(b(c).addClass("a-arrow-left"),c.find(".a-arrow-border").css("top",d.popoverHeight/2+e.deltaTop));
return e},triggerTop:function(a,d){var c=a.$popover,e=a.$trigger;d||(d=h(c,e));e=l(d);e.top=d.triggerTop-d.popoverHeight;a.attrs("popoverArrow")&&(b(c).addClass("a-arrow-top"),c.find(".a-arrow-border").css("left",d.popoverWidth/2+e.deltaLeft));return e},triggerBottom:function(a,d){var c=a.$popover,e=a.$trigger;d||(d=h(c,e));e=l(d);e.top=d.triggerBottom;a.attrs("popoverArrow")&&(b(c).addClass("a-arrow-bottom"),c.find(".a-arrow-border").css("left",d.popoverWidth/2+e.deltaLeft));return e},triggerHorizontal:function(a,
d){var b=a.$popover,c=a.$trigger;d||(d=h(b,c));return d.triggerLeft-d.windowLeft>d.windowRight-d.triggerRight?this.triggerLeft(a,d):this.triggerRight(a,d)},triggerVertical:function(a,d){var b=a.$popover,c=a.$trigger;d=d?d:h(b,c);return d.triggerTop-d.windowTop>d.popoverHeight+20?this.triggerTop(a,d):this.triggerBottom(a,d)},triggerVerticalAlignLeft:function(a,d){var c=a.$popover,e=a.$trigger;d||(d=h(c,e));e={};var g=0,f=d.windowBottom-d.triggerBottom;e.left=d.triggerLeft;e.top=f>d.popoverHeight?d.triggerBottom+
3:d.triggerTop-d.popoverHeight-3;if(20>e.left){var l=Math.min(20,d.triggerLeft-20);g=e.left-l;e.left=l}else e.left+d.popoverWidth>d.windowRight-20&&(l=Math.min(20,d.windowRight-d.triggerRight+20),g=e.left+d.popoverWidth-(d.windowRight-l),e.left=d.windowRight-l-d.popoverWidth);a.attrs("popoverArrow")&&(b(c).addClass(f>d.popoverHeight?"a-arrow-bottom":"a-arrow-top"),c.find(".a-arrow-border").css("left",d.triggerWidth/2+g));return e},customPosition:function(a,d){return d.call(this,{popover:a,$popover:a.$popover,
$trigger:a.$trigger,measure:h})}}});"use strict";n.when("A","a-modal-view-base","a-modal-positions","a-popover-accessibility").register("a-modal-view",function(c,f,h,b){var m=c.$;m=m("html").hasClass("a-lt-ie9");return c.extend(f,c.capabilities.touch||c.capabilities.mobile||c.capabilities.tablet||m?h.innerScroll:h.modalScroll,{skin:function(f){var e=f.attrs("id"),h=f.attrs("header")||"",a=f.attrs("hideHeader")||!1,k=f.attrs("footer"),g=f.attrs("modeless")||!1,d=f.attrs("closeButton"),l=f.attrs("closeButtonLabel")||
"",m=f.attrs("hideHeaderCloseButtonLayout")||"",n=f.attrs("popoverLabel")||"",v=f.attrs("padding");f=f.attrs("ariaDescription");f={id:e,header_str:h,label_str:n,aria_description:f};n=b.getDescription(f);var u=b.getPopoverLabelHtml(f);d='\x3cbutton data-action\x3d"a-popover-close" class\x3d"'+(d?"":" a-button-close-a11y")+" a-button-close a-declarative"+(a?d?"top"===m?" a-modal-close-nohead-top":" a-button-top-right":" a-button-a11y-top-right":"")+'" aria-label\x3d"'+l+'"\x3e\x3ci class\x3d"a-icon a-icon-close"\x3e\x3c/i\x3e\x3c/button\x3e';
h=!a||u?"\x3cheader"+(a?"":' class\x3d"a-popover-header"')+"\x3e"+(a?"":'\x3ch4 class\x3d"a-popover-header-content'+(g?" a-popover-draggable-handle":"")+'" id\x3d"a-popover-header-'+e+'"\x3e'+h+"\x3c/h4\x3e")+d+u+"\x3c/header\x3e":d;k=k?'\x3cdiv class\x3d"a-popover-footer"\x3e'+k+"\x3c/div\x3e":"";v="none"===v?" a-padding-none":"";a=c.capabilities.isAndroid?"":b.getStartAnchorSimplifiedHtml();d=c.capabilities.isAndroid?"":b.getEndAnchorHtml(f);l=g?"":'\x3cdiv class\x3d"a-modal-scroller a-declarative" data-action\x3d"a-popover-floating-close"\x3e';
f='\x3cdiv class\x3d"a-popover a-popover-modal a-declarative'+(g?" a-modal-modeless":" ")+'" data-action\x3d"a-popover-a11y" aria-modal\x3d"true" role\x3d"dialog"'+b.getAriaLabelledByDescribedby(f)+"\x3e";return l+f+a+n+'\x3cdiv class\x3d"a-popover-wrapper"\x3e'+h+('\x3cdiv class\x3d"a-popover-inner'+v+'" id\x3d"a-popover-content-'+e+'"\x3e\x3c/div\x3e')+k+"\x3c/div\x3e"+d+"\x3c/div\x3e"+(g?"":"\x3c/div\x3e")}})});"use strict";n.when("A","a-popover-lightbox","a-popover-optional-helpers","prv:a-capabilities").register("a-modal-positions",
function(c,f,h,b){function m(a){var d=a.$popover.closest(".a-modal-scroller");d.scrollTop(0).css("visibility","visible");d.bind("scroll",function(){a.updateChildrenPosition()})}function l(){var a=c.viewport();2<a.width/a.height&&c.delay(function(){document.activeElement.scrollIntoView();u.scrollTo(u.pageXOffset,0)},0)}function e(a,b,c){if(0>a)return c({"padding-right":b+"px","box-sizing":"content-box"}),!0;c({"padding-right":"","box-sizing":""});return!1}function p(a){return function(b){a.css(b)}}
var a=c.$,k=b.isIE10Plus&&c.capabilities.mobile,g=0;n.when("prv:skin-vars").execute(function(a){g=a.popover.optionalButtonHeight});n.declare("prv:a-model-applyHorizonalScrollStyles",e);return{innerScroll:{positionStrategy:function(d){var m=d.popover,n=d.$popover,t=d.$trigger,v=n.find(".a-popover-inner").css("height","auto"),B=n.closest(".a-modal-scroller"),y={},w=c.viewport(!0),x=.1*w.height,A=.05*w.width;w=.8*w.height;var z=m.attrs("height");m=m.attrs("min-height");n.css({height:z?z:"","min-height":m?
m:""});t=d.measure(n,t);y.left=(t.windowWidth-t.popoverWidth)/2;e(y.left,A,p(n))&&(y.left=A);h.evaluateActualHeight(d,t.popoverHeight,g)>w?(m=n.find(".a-popover-header, .a-modal-close-nohead-top").outerHeight(!0)||0,z=n.find(".a-popover-footer").outerHeight(!0)||0,d=h.getOffsetTopDelta(d,x,g),w-=d,x+=d,v.css({height:w-m-z+"px","overflow-y":"auto"}),n.css({height:w,"min-height":0}),y.top=x):(y.top=(t.windowHeight-t.popoverHeight)/2,v.css("height","auto"));y.left+=t.zoomLeft;y.top+=t.zoomTop;k&&(B.css("top",
a(u).scrollTop()),n.removeClass("a-popover-pan-y").addClass("a-popover-pan-x"),n=a(document).height(),v=a(document).width(),a("#"+f.LIGHTBOX_ID).css({height:n,width:v>t.popoverWidth?v:t.popoverWidth+A}));b.isMetroIEGuess&&b.isIETouchCapable&&l();return y},beforeShowMethod:c.constants.NOOP,beforeHideMethod:c.constants.NOOP},modalScroll:{positionStrategy:function(a){var d=a.$popover,f=a.$trigger,g=d.closest(".a-modal-scroller"),h=d.find(".a-popover-inner").css("height","auto");if(d.hasClass("a-popover-modal-fixed-height")){var k=
d.find(".a-popover-footer");h.css("padding-bottom",k.height()+15)}h={};var m=c.viewport(!0),n=m.height;k=.1*n;m=.05*m.width;n*=.8;var u=d.height(),z=d.width();a=a.measure(d,f);h.left=(a.windowWidth-z)/2;h.top=(a.windowHeight-u)/2;e(h.left,m,p(d))&&(h.left=m);u>n?g.length?(h.top=0,d.css({position:"relative",margin:a.zoomTop+k+"px 0 "+k+"px "+(a.zoomLeft+h.left)+"px"}),h.left=0,g.css("padding-bottom","1px")):u>n&&(h.top=padding):g.length&&(d.css({position:"absolute",margin:"0px"}),g.css("padding-bottom",
"0px"));h.left+=a.zoomLeft;h.top+=a.zoomTop;b.isMetroIEGuess&&b.isIETouchCapable&&l();return h},beforeShowMethod:function(){m(this)},beforeHideMethod:function(){this.$popover.closest(".a-modal-scroller").css("visibility","hidden").unbind("scroll")}},util:{determineMaximumInnerHeight:function(a){var b=a.$popover;a=.8*c.viewport().height;var d=b.find(".a-popover-header, .a-modal-close-nohead-top").outerHeight(!0)||0;b=b.find(".a-popover-footer").outerHeight(!0)||0;return a-d-b},determineInnerVerticalPadding:function(a){a=
a.$popover.find(".a-popover-inner");return a.outerHeight()-a.height()}}}});"use strict";n.when("A","a-popover-base-factory","a-modal-view","a-popover-util","prv:a-capabilities").register("a-modal-factory",function(c,f,h,b,m){function l(a,k){var g=!1,d=!1;c.capabilities.mobile||c.capabilities.tablet||(g=b.getBool(k.modeless),d=b.getBool(k.draggable));k={modeless:g,draggable:d,type:"modal",alone:!0,immersive:!0,position:"windowCenter",header:k.header,hideHeader:k.hideHeader,footer:k.footer,padding:k.padding,
width:k.width,height:k.height,"max-width":k["max-width"],"max-height":k["max-height"],"min-width":k["min-width"],"min-height":k["min-height"],closeButton:b.getBool(k.closeButton,!0),timeout:k.timeout,lightboxOptions:g?z:{lockScroll:!0,showDuration:e||p?0:null},data:k.data||{},dataStrategy:k.dataStrategy,url:k.url,manualRefresh:!!k.manualRefresh,ajaxFailMsg:k.ajaxFailMsg,cache:b.getBool(k.cache,!0),inlineContent:k.inlineContent?k.inlineContent:k.content,name:k.name,closeButtonLabel:k.closeButtonLabel?
k.closeButtonLabel:"Close",hideHeaderCloseButtonLayout:k.hideHeaderCloseButtonLayout,popoverLabel:k.popoverLabel,ariaDescription:k.ariaDescription,ajaxHeaders:k.ajaxHeaders,withCredentials:b.getBool(k.withCredentials,!1),legacyNavigable:b.getBool(k.legacyNavigable,!0)};return f.create(a,{attributes:k,typeSpecificFunctions:h,actionCheck:!0})}var e=-1<document.documentElement.className.indexOf("a-lt-ie9"),p=c.capabilities.mobile&&m.isIE10Plus;return{type:"modal",create:l,get:function(a){var c=f.get(a,
"modal");c||"object"!==typeof a||(a=b.extractDeclarativeParams(a,"modal"))&&(c=l(a.$trigger,a.attributes||{}));return c},remove:function(a){return f.remove(a,"modal")}}});"use strict";n.when("A","a-modal-factory","a-popover-base","a-modal-handlers").register("a-modal",function(c,f){return f});"use strict";n.when("A","a-popover-util","a-popover-animate").register("a-popover-view-base",function(c,f,h){return{setAriaBusy:function(b){this.$popover.find(".a-popover-wrapper").attr("aria-busy",b)},updateContent:function(b){"string"===
typeof b?this.$popover.find(".a-popover-content").html(b):b&&this.$popover.find(".a-popover-content").html("").append(b)},updateDimensions:function(){this.$popover.css(f.getCSSHash(this.attrs()));this.isActive()&&this.updatePosition();return this},getContent:function(){return this.$popover?this.$popover.find(".a-popover-content"):null},hideMethod:function(b){var c=this;h.fadeOut(c,250,"linear",function(){c.$popover.css({top:"auto",left:"auto"});b.call(c)})}}});n.when("a-util").register("a-popover-optional-helpers",
function(c){return{getOffsetTopDelta:function(f,h,b){b=parseFloat(b);var m=c.isFiniteNumber(b)&&0<b;f=f.$popover.find(".a-button-close").length&&!f.$popover.find(".a-button-close-a11y").length;return m&&f&&0>h-b?b-h:0},evaluateActualHeight:function(c,h,b){return c.$popover.find(".a-button-close").length&&!c.$popover.find(".a-button-close-a11y").length?h+b:h}}});"use strict";n.when("A","a-popover-view-base","a-popover-util","a-popover-accessibility").register("a-popover-view",function(c,f,h,b){var m=
!0;n.when("prv:skin-vars").execute(function(b){m=b.popover.closeButtonEnabled});return c.extend(f,{skin:function(f){var e=f.attrs("id"),h=f.attrs("header"),a=m&&f.attrs("closeButton"),k=f.attrs("closeButtonLabel")||"",g=f.attrs("popoverLabel")||"",d=f.attrs("ariaDescription"),l=f.attrs("padding");f=f.attrs("popoverArrow");d={id:e,header_str:h,label_str:g,aria_description:d};c.capabilities.isAndroid&&(k=(g||h)+" "+k);a='\x3cbutton data-action\x3d"a-popover-close" class\x3d"a-button-close '+(a?"":"a-button-close-a11y")+
' a-declarative" aria-label\x3d"'+k+'"\x3e\x3ci class\x3d"a-icon a-icon-close"\x3e\x3c/i\x3e\x3c/button\x3e';var n=(k=!!h)?"a-popover-has-header":"a-popover-no-header";l="none"===l?" a-padding-none":"";f=f?'\x3cdiv class\x3d"a-arrow-border"\x3e\x3cdiv class\x3d"a-arrow"\x3e\x3c/div\x3e\x3c/div\x3e':"";g=c.capabilities.isAndroid?"":b.getStartAnchorSimplifiedHtml();var t=c.capabilities.isAndroid?"":b.getEndAnchorHtml(d);h=h?'\x3ch4 class\x3d"a-popover-header-content" id\x3d"a-popover-header-'+e+'"\x3e'+
h+"\x3c/h4\x3e":"";n='\x3cdiv class\x3d"a-popover '+n+' a-declarative" data-action\x3d"a-popover-container a-popover-a11y" aria-modal\x3d"true" role\x3d"dialog"'+b.getAriaLabelledByDescribedby(d)+"\x3e";var u=b.getDescription(d);d=b.getPopoverLabelHtml(d);return n+g+u+'\x3cdiv class\x3d"a-popover-wrapper"\x3e'+(k?'\x3cheader class\x3d"a-popover-header"\x3e'+h+a+d+"\x3c/header\x3e":"")+('\x3cdiv class\x3d"a-popover-inner'+l+'"\x3e')+(k?"":d?"\x3cheader\x3e"+a+d+"\x3c/header\x3e":a)+('\x3cdiv class\x3d"a-popover-content" id\x3d"a-popover-content-'+
e+'"\x3e\x3c/div\x3e')+"\x3c/div\x3e"+f+"\x3c/div\x3e"+t+"\x3c/div\x3e"}})});"use strict";n.when("A","a-popover-base-factory","a-popover-view","a-popover-util").register("a-popover-factory",function(c,f,h,b){function m(c,e){e={type:"popover",alone:!0,header:e.header,width:e.width,height:e.height,"max-width":e["max-width"],"max-height":e["max-height"],"min-width":e["min-width"],"min-height":e["min-height"],padding:e.padding,closeButton:b.getBool(e.closeButton,!0),position:e.position||"triggerVertical",
activate:e.activate||"onmouseover",timeout:e.timeout,data:e.data||{},dataStrategy:e.dataStrategy,url:e.url,manualRefresh:!!e.manualRefresh,ajaxFailMsg:e.ajaxFailMsg,cache:b.getBool(e.cache,!0),inlineContent:e.inlineContent?e.inlineContent:e.content,name:e.name,closeButtonLabel:e.closeButtonLabel?e.closeButtonLabel:"Close",popoverLabel:e.popoverLabel,ariaDescription:e.ariaDescription,focusWhenShown:b.getBool(e.focusWhenShown,!0),popoverArrow:b.getBool(e.popoverArrow,!0),restoreFocusOnHide:b.getBool(e.restoreFocusOnHide,
!0)};return f.create(c,{attributes:e,typeSpecificFunctions:h,actionCheck:!0})}return{type:"popover",create:m,get:function(c){var e=f.get(c,"popover");e||"object"!==typeof c||(c=b.extractDeclarativeParams(c,"popover"))&&(e=m(c.$trigger,c.attributes||{}));return e},remove:function(b){return f.remove(b,"popover")}}});"use strict";n.when("A","a-popover-factory").register("a-popover-handlers",function(c,f){function h(a){a&&!a.destroyTimer&&(a.destroyTimer=c.delay(function(){a.hide()},250))}function b(a){a&&
(clearTimeout(a.destroyTimer),a.destroyTimer=null,clearTimeout(a.parent.destroyTimer),a.parent.destroyTimer=null)}var m=c.$,l={},e=!(c.capabilities.mobile||c.capabilities.tablet)&&c.capabilities.ios;c.declarative("a-popover","click",function(a){var b=f.get(a.$declarativeParent);b&&(b.show(),a.$event.preventDefault())});c.declarative("a-popover","keydown",function(a){var b=c.constants.keycodes,e=a.$event.which;if(e===b.ENTER||e===b.SPACE)a.$event.preventDefault(),f.get(a.$declarativeParent).show()});
if(!e){var p;c.declarative("a-popover","mouseenter",function(a){var e=f.get(a.$declarativeParent);e&&"onmouseover"===e.attrs("activate")&&(b(e),p=c.delay(function(){(e=f.get(a.$declarativeParent))&&l.popover===e&&1<l.mouseMoveCount&&e.show()},200))});c.declarative("a-popover","mousemove",function(a){var b=f.get(a.$declarativeParent);l||(l={});l.popover===b?(l.mouseMoveCount||(l.mouseMoveCount=0),l.lastXY&&(l.lastXY.x!==a.$event.clientX||l.lastXY.y!==a.$event.clientY)&&l.mouseMoveCount++):(l.popover=
b,l.mouseMoveCount=1,l.lastXY={x:a.$event.clientX,y:a.$event.clientY});2>c.cursor().speed&&b&&"onmouseover"===b.attrs("activate")&&l.popover===b&&1<l.mouseMoveCount&&b.show()});c.declarative("a-popover","mouseleave",function(a){(a=f.get(a.$declarativeParent))&&"onmouseover"===a.attrs("activate")&&(h(a),p&&clearTimeout(p));l={}});c.declarative("a-popover-container","mouseenter",function(a){(a=f.get(a.$declarativeParent))&&"onmouseover"===a.attrs("activate")&&b(a)});c.declarative("a-popover-container",
"mouseleave",function(a){var b=f.get(a.$declarativeParent),e=!0,d=m(a.$event.relatedTarget);b&&"onmouseover"===b.attrs("activate")&&b.isActive()&&(c.each(b.children,function(a){if(d.closest(a.$popover).length)return e=!1}),e&&(h(b),b.parent.immersive||0!==d.closest(b.parent.$popover).length||h(b.parent)))})}});"use strict";n.when("A","a-popover-factory","a-popover-base","a-popover-handlers").register("a-popover",function(c,f){return f});"use strict";n.when("A","a-popover-base-factory","a-secondary-view-view",
"a-popover-util").register("a-secondary-view-factory",function(c,f,h,b){function m(l,a){a.disableAnimation=a.disableAnimation||c.capabilities.isOldAndroid;a={type:"secondary-view",immersive:!0,disableAnimation:e||a.disableAnimation,synchronous:!!(e||a.synchronous&&"false"!==a.synchronous),animationLength:a.disableAnimation?0:300,alternateBackground:a.alternateBackground||!1,hideHeader:e||a.hideHeader||!1,scrollable:a.scrollable||!0,header:a.header,backButtonText:a.backButtonText,position:"windowFullWidth",
timeout:a.timeout,dataStrategy:a.dataStrategy,inlineContent:a.inlineContent?a.inlineContent:a.content,url:a.url,manualRefresh:!!a.manualRefresh,name:a.name,cache:"false"===a.cache||!1===a.cache?!1:!0,data:a.data||{},popoverLabel:a.popoverLabel,padding:a.padding,ariaDescription:a.ariaDescription,historyApi:"true"===a.historyApi||!0===a.historyApi,withCredentials:b.getBool(a.withCredentials,!1),ajaxFailMsg:a.ajaxFailMsg};return f.create(l,{attributes:a,typeSpecificFunctions:h,actionCheck:!0})}var l=
c.$,e=!1;n.when("mash-will-load").execute(function(){e=!0});return{type:"secondary-view",create:m,get:function(c){var a=f.get(c,"secondary-view");if(!a&&"object"===typeof c){var e=b.extractDeclarativeParams(c,"secondary-view");e&&(a=m(e.$trigger,e.attributes||{}))}a&&"object"===typeof c&&(c=l(c),c=(c=c.hasClass("a-declarative")?c:c.find(".a-declarative").eq(0))?c.data("a-secondary-view"):null,a.data=c.data);return a},remove:function(b){return f.remove(b,"secondary-view")}}});"use strict";n.when("A",
"a-secondary-view-factory","a-popover-base","a-secondary-view-handlers").register("a-secondary-view",function(c,f){return f});"use strict";n.when("A","a-popover-animate").register("a-tooltip-view-base",function(c,f){return{updateContent:function(c){this.$popover.find(".a-tooltip-inner").html(c)},getContent:function(){return this.$popover?this.$popover.find(".a-tooltip-inner"):null},hideMethod:function(c){var b=this;f.fadeOut(b,250,"linear",function(){c.call(b)})}}});"use strict";n.when("A","a-tooltip-view-base").register("a-tooltip-view",
function(c,f){return c.extend(f,{skin:function(c){return['\x3cdiv role\x3d"tooltip" class\x3d"a-popover a-tooltip a-declarative" data-action\x3d"a-popover-close"\x3e\x3cdiv class\x3d"a-tooltip-inner"\x3e\x3c/div\x3e',c.attrs("popoverArrow")?'\x3cdiv class\x3d"a-arrow-border"\x3e\x3cdiv class\x3d"a-arrow"\x3e\x3c/div\x3e\x3c/div\x3e':"","\x3c/div\x3e"].join("")}})});"use strict";n.when("A","a-popover-base-factory","a-tooltip-view","a-popover-util").register("a-tooltip-factory",function(c,f,h,b){function m(c,
e){e={type:"tooltip",name:e.name,inlineContent:e.inlineContent?e.inlineContent:e.content,position:e.position||"triggerVertical",activate:e.activate||"onmouseover",popoverArrow:b.getBool(e.popoverArrow,!0),restoreFocusOnHide:!1};e=f.create(c,{attributes:e,typeSpecificFunctions:h,actionCheck:!0});c.add(c.children()).filter("a, input").attr("aria-describedby","a-popover-"+c.data("a-popover-id"));return e}return{type:"tooltip",create:m,get:function(c){var e=f.get(c,"tooltip");e||"object"!==typeof c||
(c=b.extractDeclarativeParams(c,"tooltip"))&&(e=m(c.$trigger,c.attributes||{}));return e},remove:function(b){return f.remove(b,"tooltip")}}});"use strict";n.when("A","a-tooltip-factory").register("a-tooltip-handlers",function(c,f){c.declarative("a-tooltip","click",function(c){var b=f.get(c.$declarativeParent);b&&"onclick"===b.attrs("activate")&&(b.show(),c.$event.preventDefault())});c.declarative("a-tooltip","mouseenter",function(c){(c=f.get(c.$declarativeParent))&&"onmouseover"===c.attrs("activate")&&
(c.show(),c.destroyTimer&&(clearTimeout(c.destroyTimer),c.destroyTimer=null))});c.declarative("a-tooltip","mouseleave",function(h){var b=f.get(h.$declarativeParent);b&&"onmouseover"===b.attrs("activate")&&(b.destroyTimer=c.delay(function(){b.hide()},125))});c.declarative("a-tooltip","focus focusin",function(c){(c=f.get(c.$declarativeParent))&&c.show()});c.declarative("a-tooltip","blur focusout",function(c){(c=f.get(c.$declarativeParent))&&c.hide()})});"use strict";n.when("A","a-tooltip-factory","a-popover-base",
"a-tooltip-handlers").register("a-tooltip",function(c,f){return f})});
/* ******** */
(function(d){var f=window.AmazonUIPageJS||window.P,c=f._namespace||f.attributeErrors,e=c?c("AmazonUIPopover@modal","AmazonUI"):f;e.guardFatal?e.guardFatal(d)(e,window):e.execute(function(){d(e,window)})})(function(d,f,c){d.when("A","a-popover-util","a-popover-animate").register("a-modal-view-base",function(e,d,f){var c=e.$,g=c("html").hasClass("a-lt-ie9");return{setAriaBusy:function(b){this.$popover.find(".a-popover-wrapper").attr("aria-busy",b)},updateContent:function(b){"string"===typeof b?this.$popover.find(".a-popover-inner").html(b):
b&&this.$popover.find(".a-popover-inner").html("").append(b)},updateDimensions:function(){var b=this.$popover,a=d.getCSSHash(this.attrs());!this.draggable||a.width&&"auto"!==a.width||(a.width=b.width()+"px");b.css(a);a.height?b.addClass("a-popover-modal-fixed-height"):b.removeClass("a-popover-modal-fixed-height");this.isActive()&&this.updatePosition();return this},getContent:function(){return this.$popover?this.$popover.find(".a-popover-inner"):null},showMethod:function(b){var a=this,c=a.$popover;
c.css({visibility:"visible"}).removeClass("a-popover-hidden");g||"ajax"===a.attrs("currentDataStrategy")?b.call(a):(c.css({opacity:0,transform:"translateY(8px)"}),f.animate(a,{opacity:1,transform:"translateY(0)"},200,"linear",function(){b.call(a)}));e.animationFrameDelay(function(){a.focus()});a.attrs("legacyNavigable")&&d.trigger("showNavigableLegacy",a)},hideMethod:function(b){var a=this,c=a.$popover;g?(c.hide().css("visibility","hidden").find(".a-lgtbox-vertical-scroll").removeClass("a-lgtbox-vertical-scroll"),
b.call(a)):f.animate(a,{opacity:0,transform:"translateY(8px)"},100,"linear",function(){c.hide().css({visibility:"hidden",opacity:1});b.call(a)});a.attrs("legacyNavigable")&&d.trigger("hideNavigableLegacy",a)}}})});
/* ******** */
(function(n){var r=window.AmazonUIPageJS||window.P,w=r._namespace||r.attributeErrors,a=w?w("AmazonUIPopover@ready","AmazonUI"):r;a.guardFatal?a.guardFatal(n)(a,window):a.execute(function(){n(a,window)})})(function(n,r,w){n.when("A","a-popover-util").register("a-popover-ajax-strategy",function(a,g){return{name:"ajax",reusePopover:!1,loadContent:function(b,m){b.setContentLoading();var d=b.attrs("url"),f=b.attrs("ajaxHeaders")||{},e=b.attrs("withCredentials")||!1,k=b.attrs("timeout")||1E4,h=b.attrs("ajaxFailMsg")||
g.defaultContentFailureMessage,p=!!b.attrs("cache"),q=b.attrs("spinnerTimer"),c=b.attrs("ajaxHandler"),z=b.attrs("content");b.attrs("content",null);if(z&&!m)b.updateContent(z),q&&clearTimeout(q),c&&c.abort&&c.abort();else{q=a.delay(function(){g.shouldPopoverUpdateContent(b,"ajax")&&(g.showSpinner(b),b.setAriaBusy(!0))},100);var l=function(c,d,l){g.shouldPopoverUpdateContent(b,"ajax")&&(clearTimeout(q),b.setContentLoaded(),g.trigger(d,b),b.setAriaBusy(!1),b.update({content:c}),b.isActive()&&b.updatePosition(),
l&&g.trigger("ajaxContentLoaded",b))};c=a.ajax(d,{type:"GET",timeout:k,cache:p,headers:f,withCredentials:e,success:function(c){l(c,"ajaxSuccess",!0)},error:function(){l(h,"ajaxFail",!1)}});b.attrs({spinnerTimer:q,ajaxHandler:c})}return this},unloadContent:function(b){g.clearContent(b);return this},shouldRefreshContent:function(b){return!b.attrs("manualRefresh")},isValidStrategy:function(b){return!!b.url}}});"use strict";n.when("A","a-popover-util").register("a-popover-inline-strategy",function(a,
g){return{name:"inline",reusePopover:!1,loadContent:function(b){b.setContentLoading();var a=b.attrs("content");a&&b.attrs("content",null);if(!a){a=b.$trigger;var d=a.data("action");a=a.data(d)||{};a=a.inlineContent?a.inlineContent:null}a||(a=b.attrs("inlineContent"));b.updateContent(a);b.setContentLoaded();return this},unloadContent:function(b){var a=b.getContent();a=a&&0<a.length?a.html():b.attrs("inlineContent");var d=b.$trigger,f=d.data("action"),e=d.data(f)||{};e.inlineContent=a;d.data(f,e);g.clearContent(b);
return this},shouldRefreshContent:function(a){return a.isDirty()},isValidStrategy:function(a){return!!a.inlineContent}}});"use strict";n.when("A","a-popover-util","a-dom-poller","a-analytics").register("a-popover-preload-strategy",function(a,g,b,m){function d(c){return"a-popover-"+c}function f(c){c=q("#"+d(c));return c.length?c:p}function e(c){if(c=f(c)){c.detach();c=c[0];for(var a=document.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);return a}return!1}function k(c,a){c.updateContent(a);
c.setContentLoaded();c.setAriaBusy(!1);g.trigger("contentReady",c)}function h(c,a){g.showSpinner(c);c.setAriaBusy(!0);b.waitFor("#"+d(a),function(){if(g.shouldPopoverUpdateContent(c,"preload")){var d=e(a);k(c,d);c.isActive()&&c.updatePosition()}},function(){m.logError("Failed to find preloaded content for popover.","FATAL","Popover: "+a);var d={content:g.defaultContentFailureMessage};g.shouldPopoverUpdateContent(c,"preload")?(c.updateContent(g.defaultContentFailureMessage),c.setContentLoaded(),c.setAriaBusy(!1),
c.isActive()&&c.updatePosition(),d.seenByUser=!0):d.seenByUser=!1;c.attrs("temporaryError",d)})}var p,q=a.$;return{name:"preload",reusePopover:!0,loadContent:function(c){c.setContentLoading();var a=c.attrs("name"),l=c.attrs("content");c.attrs("content",null);var f=c.attrs("temporaryError");if(f)if(!f.seenByUser){var p=f.content;f.seenByUser=!0}else if(f.seenByUser)return c.attrs("temporaryError",null),h(c,a),this;f=e(a);l||p?(c.updateContent(l||p),c.setContentLoaded(),b.stopPollingSelector("#"+d(a))):
a?f?(k(c,f),b.stopPollingSelector("#"+d(a))):b.isPollingSelector("#"+d(a))?g.showSpinner(c):h(c,a):c.setContentLoaded();return this},unloadContent:function(c){var e=c.attrs("name");if(e&&!b.isPollingSelector("#"+d(e))&&!c.attrs("temporaryError")){var l=c.getContent();if(l&&l.html()){var h=f(e);h?h=h[0]:(h=document.createElement("div"),h.id=d(e),h.className="a-popover-preload",document.body.appendChild(h));e=h;if(!a.trim(e.innerHTML))if(l=l[0],"string"===typeof l)q(e).html(l);else{for(h=document.createDocumentFragment();l.firstChild;)h.appendChild(l.firstChild);
e.appendChild(h)}g.clearContent(c)}}return this},shouldRefreshContent:function(a){var c=a.attrs("name"),e=f(c);return!(!e||""===e.html())||a.attrs("temporaryError")||b.isPollingSelector("#"+d(c))},isValidStrategy:function(a){return!!a.name}}});"use strict";n.when("A","a-dropdown-base","a-dropdown-view","a-dropdown-options","a-dropdown-apis","a-dropdown-base-factory","a-dropdown-keyboard-handlers").register("a-dropdown-handlers",function(a,g,b,m,d,f,e){var k=a.$;d=k(document);a.declarative("a-dropdown-button",
"click",function(a){m.getSelectFromButton(a.$target).trigger("click")});d.delegate("select.a-native-dropdown","keydown",function(d){var e=a.constants.keycodes,f=d.which,c=k(d.target).nextAll(".a-button-dropdown").eq(0);if(a.onScreen(c)&&(f===e.UP_ARROW||f===e.DOWN_ARROW||f===e.ENTER||f===e.SPACE)){var h=k(d.target);h.prop("disabled",!0);a.delay(function(){h.prop("disabled",!1)},0);d.preventDefault?d.preventDefault():d.returnValue=!1;g.showDropdown(d,a.extend({$button:c},m),b)}});d.delegate("select.a-native-dropdown",
"click",function(d){d.preventDefault?d.preventDefault():d.returnValue=!1;var e=k(d.target).nextAll(".a-button-dropdown").eq(0);a.onScreen(e)&&g.showDropdown(d,a.extend({$button:e},m),b)});d.delegate(".a-popover.a-dropdown a","click",function(a){a.preventDefault();a=k(this);var d=f.get(a.closest(".a-popover")),b=!d.sourceButton.find(".a-dropdown-prompt").text();!a.hasClass("a-active")||b?(b=a.data("value").stringVal,d.sourceSelect.val(b).trigger("change",[a])):d.hide()});e&&(e.keyDown&&d.delegate(".a-dropdown li",
"keydown",e.keyDown),e.keyPress&&d.delegate(".a-dropdown li","keypress",e.keyPress))});"use strict";n.when("A","a-popover-util","a-popover-inline-strategy","a-popover-preload-strategy","a-popover-ajax-strategy","a-analytics","a-util").register("a-popover-data",function(a,g,b,m,d,f,e){var k=[d,b,m];return{guessStrategyByAttrs:function(a){for(var d=0,b=k.length;d<b;d++){var c=k[d];if(c.isValidStrategy(a))return c}d="NO-ATTRIBUTION-INFO";a&&a.$trigger&&a.$trigger.get(0)&&(d=e.attributionChain(a.$trigger.get(0)));
f.logError("https://tiny.amazon.com/aok2pdnt/auiamazdevepopopopo - Popover failed to be created, no data strategy provided. Please provide a valid dataStrategy param for popover.","FATAL",d)},getStrategyByName:function(a){for(var d=0,b=k.length;d<b;d++){var c=k[d];if(c.name===a)return c}return null},showSpinner:g.showSpinner}});n.when("A","a-analytics","a-util").register("a-dom-poller",function(a,g,b){function m(){var a=Array.prototype.slice.call(arguments);return b.reduce(a,function(a,d){return a||
q===d},!1)}function d(a){a.callbackCalled=!0;a=c.indexOf(a);0<=a&&c.splice(a,1)}function f(c,b){a.defer(function(){c.callbackCalled||c.failureCallback(b);d(c)})}function e(c){a.defer(function(){c.callbackCalled||c.successCallback();d(c)})}function k(a){return b.reduce(c,function(d,c){return d||c.selector===a},!1)}function h(){if(c.length){q=p.POLLING;setTimeout(h,1E3);for(var a=c.length;a--;){var d=c[a];document.querySelector(d.selector)?e(d):r&&5E3<Date.now()-d.startTime&&f(d,"Content not found in time.")}}else q=
p.PAUSED}var p={NOT_STARTED:"NOT_STARTED",POLLING:"POLLING",PAUSED:"PAUSED"},q=p.NOT_STARTED,c=[],r=!1;n.when("ready").execute(function(){r=!0});return{waitFor:function(a,d,b){k(a)?g.logError("Tried to poll for DOM selector ("+a+") that is already being polled for.","WARN","AUI DomPoller: "+a):(a={selector:a,successCallback:d,failureCallback:b,callbackCalled:!1,startTime:Date.now()},c.unshift(a),m(p.NOT_STARTED,p.PAUSED)&&h())},stopPollingSelector:function(a){b.filter(c,function(d){return d.selector===
a}).forEach(function(a){d(a)})},isPollingSelector:k}});"use strict";n.when("A","a-popover-lightbox-markup","prv:a-capabilities","a-bodyBegin").register("a-popover-lightbox",function(a,g,b){function m(a){a.preventDefault();a.stopPropagation();a.stopImmediatePropagation();return!1}function d(){w.unbind("click",m);l=!1}function f(c){var b=e(r);-1<x||!t||(c=c||{},w.bind("click",m),l=!0,"number"!==typeof c.hideDuration&&(c.hideDuration=250),0<c.hideDuration?a.fadeOut(t,c.duration,"linear",function(){c.lockScroll&&
(e("html, body").css("overflow",""),e("body").css("margin-right",""),a.delay(function(){0<u&&(b.scrollTop(u),u=-1);0<y&&(b.scrollLeft(y),y=-1)},100));v=null}):(t.css("display","none"),c.lockScroll&&(e("html, body").css("overflow",""),e("body").css("margin-right",""),0<u&&(b.scrollTop(u),u=-1)),v=null),t.css({height:"",width:""}),a.delay(d,c.hideDuration+350),e("#a-page").removeAttr("aria-hidden"))}var e=a.$,k=-1<document.documentElement.className.indexOf("-ie"),h=b.isIE10Plus&&a.capabilities.mobile,
p=0===(a.capabilities.androidVersion+"").indexOf("4."),q=b.isUCBrowser,c=g.id,n=g.div,l=!1,w=e("body"),t=null,x=-1,u=-1,y=-1,v=null;e(document).delegate("#"+c,"click "+a.action.start+" "+a.action.move,function(a){a.preventDefault()});a.declarative("a-popover-floating-close",a.capabilities.touch?a.action.end:"click",function(a){!l&&a.$target.data("action")&&-1<a.$target.data("action").indexOf("a-popover-floating-close")&&(v&&v.isActive()?(v.unlock().hide(),a.$event.preventDefault()):f())});if(b.isiOS8)a.on("a:popover:afterUpdatePosition",
function(a){a=a.popover;var d=e("#"+c),b=d.length?d.offset().top:-1,f=e(r);if(a.isActive()&&a.attrs("lightboxOptions")&&b){var g=0;var k=setInterval(function(){f.scrollTop(b);5<++g&&clearInterval(k)},200)}});return{show:function(b){e("#a-page").attr("aria-hidden","true");var f=e(r);t||(e("body").append(n),t=e("#"+c));b=b||{};w.bind("click",m);l=!0;b.lockScroll&&(-1===u&&(u=f.scrollTop(),y=f.scrollLeft()),a.setCssImportant(e("body"),"margin-right",a.scrollBarWidth()+"px"),h||(k?e("html, body").css("overflow",
"hidden"):e("body").css("overflow","hidden")));var g=(v=b.popover||null)?v.$popover.css("z-index")-2:-1;0<g&&(t.css("z-index",g),p&&f.width());"number"!==typeof b.showDuration&&(b.showDuration=200);q&&v.$popover.css("overflow","auto");0<b.showDuration?a.fadeIn(t,b.showDuration):t.css("display","block");a.delay(d,b.showDuration+300)},hide:f,lock:function(a){a||(a=10);x<a&&(x=a)},unlock:function(a){a||(a=10);x<=a&&(x=-1)},LIGHTBOX_ID:c}});"use strict";n.when("A").register("a-popover-util",function(a){function g(a,
b){for(var d=a.children.length;d--;){var f=g(a.children[d],b);if(f)return f}if(b(a))return a}var b=a.$,m=/^-?\d+(?:\.\d+)?$/;return{trigger:function(d,b){a.trigger("a:popover:"+d,{popover:b});b.name&&a.trigger("a:popover:"+d+":"+b.name,{popover:b})},extractDeclarativeParams:function(d,f){d=b(d);d=d.hasClass("a-declarative")?d:d.find(".a-declarative").eq(0);f="a-"+f;var e=d.data("action");return e&&a.contains(e,f)?{attributes:d.data(f)||null,$trigger:d}:null},eventOccursWithin:function(a,f){a=b(a.target);
return 0<a.closest(f.$trigger).length||0<a.closest(f.$popover).length},search:g,getCSSHash:function(d){var b={};a.each("height width max-height max-width min-height min-width".split(" "),function(e){if(d[e]){var f=d[e];if(a.isFiniteNumber(f)||m.test(f))f+="px";b[e]=f}});b.height&&!b["max-height"]&&(b["max-height"]="none");b.width&&!b["max-width"]&&(b["max-width"]="none");return b},clearContent:function(a){(a=a.getContent())&&a.empty()},showSpinner:function(a){a.updateContent('\x3cdiv class\x3d"a-popover-loading-wrapper a-text-center"\x3e\x3cdiv class\x3d"a-box a-color-base-background a-popover-loading"\x3e\x3c/div\x3e\x3c/div\x3e');
a.updatePosition();return a},getBool:function(a,b){return void 0!==a?!0===a||"true"===a:!0===b},shouldPopoverUpdateContent:function(a,b){return!a.attrs("content")&&a.attrs("currentDataStrategy")===b&&(a.isVisible()||a.isActive())},defaultContentFailureMessage:"Sorry, content is not available."}});"use strict";n.when("A","a-popover-base-factory","a-modal-factory").register("a-modal-handlers",function(a,g,b){g=a.$;a.declarative("a-modal","click",function(a){b.get(a.$declarativeParent).show();a.$event.preventDefault()});
a.declarative("a-modal","keydown",function(g){g.$event.which===a.constants.keycodes.SPACE&&(g.$event.preventDefault(),b.get(g.$declarativeParent).show())});g(document).delegate(".a-modal-scroller","click "+a.action.start+" "+a.action.move,function(a){a.target===this&&a.preventDefault()})})});
/* ******** */
(function(c){var b=window.AmazonUIPageJS||window.P,d=b._namespace||b.attributeErrors,a=d?d("AmazonUIBottomSheet","AmazonUI"):b;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,b,d){});
/* ******** */
(function(e){var k=window.AmazonUIPageJS||window.P,g=k._namespace||k.attributeErrors,c=g?g("AmazonUITruncate","AmazonUI"):k;c.guardFatal?c.guardFatal(e)(c,window):c.execute(function(){e(c,window)})})(function(e,k,g){e.when("A","a-component","prv:a-truncate-util").register("a-truncate",function(c,e,k){function g(a){var b=a._$fullText,c=Math.ceil(parseFloat(a._$element.css("max-height"))),e=a.getOverflowMarker(),g=a.getSpecialCharacterList(),d=a._$offscreenTextHolder;a._$element.append(d);if(!(parseFloat(d.html(b).css("height"))<=
c)){a=0;for(var f=b.length,h,l;f>a;)h=Math.floor((a+f)/2),l=b.substring(0,h+1)+e,parseFloat(d.html(l).css("height"))>c?f=h:a=h+1;b=k.trimSpecialChars(b.substring(0,f),g)+e}d.remove();return b}function h(a){a=f(a).attr("data-a-recalculate",!0);m();return a.length}function d(){return h('.a-truncate:not([data-a-manual-update\x3d"true"]):not([data-a-updated])')}var f=c.$,l=e.create({_componentName:"truncate",init:function(a,b){this._super(a,b);this._$full=this._$element.find(".a-truncate-full");this._$cut=
this._$element.find(".a-truncate-cut");this._$fullText=this.getFullText();this._$offscreenTextHolder=f('\x3cspan class\x3d"a-truncate-calc a-offscreen"/\x3e');c.capabilities.android&&c.capabilities.isAmazonApp&&(a=this.getMaxHeight(),/[^r]em$/.test(a)&&(a=parseFloat(a),b=parseFloat(this._$element.css("font-size")),this._$element.css("max-height",a*b+"px")))},update:function(a){var b=this._$cut.html(),d=g(this);this._$fullText!==d?this._$cut.height(this.getMaxHeight()):this._$cut.height("auto");this._$cut.html(d);
this._$element.attr("data-a-updated",!0);this._$full.addClass("a-offscreen");this._$cut.removeClass("a-hidden");d={truncateContainer:this._$element,truncateInstance:this};a&&a.silent||(a=this.getTruncatedText(),b!==a&&(c.trigger("a:truncate:updated",d),(b=this._$element.data("a-truncate-name"))&&c.trigger("a:truncate:"+b+":updated",d)))},getFullText:function(){return this._$full.html()},getTruncatedText:function(){return this.getIsUpdated()?this._$cut.html():g(this)},getIsUpdated:function(){return this._$element.is("[data-a-updated]")},
getOverflowMarker:function(){return this._$element.data("a-overflow-marker")||""},getSpecialCharacterList:function(){return this._$element.data("a-special-character-list")||""},getLineHeight:function(){return this._$element[0].style.lineHeight},getMaxHeight:function(){return this._$element[0].style.maxHeight},getIfTextFits:function(){return this._$fullText===g(this)}}),m=function(a){function b(){(d=a())&&c.delay(b,0)}var d=!1;return function(){d||b()}}(function(){var a=f('.a-truncate[data-a-recalculate\x3d"true"]').first(),
b=!!a.length;b&&((new l(a)).update(),a.attr("data-a-recalculate",!1));return b});c.on("ready orientationchange",function(){h('.a-truncate:not([data-a-manual-update\x3d"true"])')});c.on("resize",function(a,b){b.width&&h('.a-truncate:not([data-a-manual-update\x3d"true"])')});c.on("a:pageUpdate",d);return{get:function(a,b){return new l(a,b)},manualTruncate:function(a){return h(f(a).find('.a-truncate[data-a-manual-update\x3d"true"]'))},switchToAutoTruncate:function(a){a=f(a).find('.a-truncate[data-a-manual-update\x3d"true"]');
a.removeAttr("data-a-manual-update");return a.length},refreshAutoTruncate:d}});e.declare("prv:a-truncate-util",{trimSpecialChars:function(c,d){d=new RegExp("["+d.replace(/[.\\+*?[^\]$(){}=!<>|:-]/g,"\\$\x26")+"\\s]+$");return c.replace(d,"")}})});
/* ******** */
(function(l){var m=window.AmazonUIPageJS||window.P,n=m._namespace||m.attributeErrors,b=n?n("AmazonUICardUI","AmazonUI"):m;b.guardFatal?b.guardFatal(l)(b,window):b.execute(function(){l(b,window)})})(function(l,m,n){l.when("A","a-component","prv:a-cardui-peek-toggle","prv:a-cardui-peek-expand").register("a-cardui",function(b,d,g,k){var c=b.$,f=d.create({_componentName:"cardui",init:function(a,c){this._super(a,c);this.metadata={interactedOnce:!1,describedByIds:this._$element.data("describedByIds"),cardExpanded:this.isExpanded(),
cardName:this.getName()}},getCardType:function(){return c(this._$element).data("a-card-type")},isExpanded:function(){},getName:function(){return this._$element.attr("name")},getId:function(){return this._$element.attr("id")},toggle:function(){}});return{get:function(a,d){var e;if(!(e=c(a).data("cardInstance"))){switch(c(a).data("a-card-type")){case "peekToggle":e=f.extend(g);break;case "peekExpand":e=f.extend(k);break;default:e=f}d=new e(a,d);c(a).data("cardInstance",d);b.trigger("a:card:initialized",
d);c(a).attr("id")&&b.trigger("a:card:"+c(a).attr("id")+":initialized",d);e=d}return e}}});"use strict";l.when("A","a-component").register("prv:a-cardui-content",function(b,d){var g=d.create({_componentName:"carduiContent",init:function(b,c){this._super(b,c)},getHeight:function(){return this._$element[0].scrollHeight},getMaxHeightDataAttribute:function(){return this._$element.data("a-max-height")}});return{get:function(b,c){return new g(b,c)}}});"use strict";l.when("A","a-component","a-cardui").register("a-cardui-deck",
function(b,d,g){function k(a,h){f(a).data("cardInstance")||(f(a).attr("name",h.deckName+"-card"+h.cardCount++),f(a).data("describedByIds",h.describedByIds));return g.get(a)}function c(a,h){h=new p(a,h);f(a).data("deckInstance",h);return h}var f=b.$,a=0,p=d.create({_componentName:"carduiDeck",init:function(e,h){this._super(e,h);h=this._$element;e="a-cardui-deck-autoname-"+a++;f(h).attr("name",e);h=this._$element;var c=e+"-teaser-describedby-collapsed",b=e+"-teaser-describedby-expanded";f(h).find(".a-teaser-describedby-collapsed").attr("id",
c);f(h).find(".a-teaser-describedby-expanded").attr("id",b);this.metadata={cardCount:0,deckName:e,describedByIds:{collapsed:c,expanded:b}};this.initializeAllCards()},initializeCard:function(a,h){return k(a,this.metadata)},initializeAllCards:function(){var a=this;f(this._$element).find(".a-cardui").each(function(){return k(this,a.metadata)})},addCards:function(a){var e=this;a&&a.url||l.error("ajax options object or url is not defined.");var c,d=a.targetSelector,k=e._$element;d?(d=f(d),d.closest(k).length?
c=d:l.error("container is outside the deck","ERROR","addCards")):c=k;b.get(a.url,{cache:!1,success:function(a){c.append(a);e.initializeAllCards();b.trigger("a:deck:new-cards-added");f(e._$element).attr("id")&&b.trigger("a:deck:"+f(e._$element).attr("id")+":new-cards-added")},failure:function(a,c,h){b.trigger("a:deck:cards-added-fail",{xhr:a,status:c,errorThrown:h});f(e._$element).attr("id")&&b.trigger("a:deck:"+f(e._$element).attr("id")+":cards-added-fail",{xhr:a,status:c,errorThrown:h})}})}});b.on("ready",
function(){f(".a-cardui-deck").each(function(){c(this)})});return{get:function(a,h){return f(a).data("deckInstance")||c(a,h)}}});"use strict";l.when("A","a-component","prv:a-see-more","prv:a-expander-icon","p-detect","prv:csa-logger").register("prv:a-cardui-expand-control-footer",function(b,d,g,k,c,f){function a(a,c){a._$seeMore.toggleSeeMore(c.cardExpanded);a._$expanderIcon.toggleExpanderIcon(c.cardExpanded)}var p=d.create({_componentName:"carduiExpandControlFooter",init:function(a,c){this._super(a,
c);this._$expanderIcon=k.get(this._$element.find(".a-expander-icon"));this._$seeMore=g.get(this._$element.find(".a-see-more"));this._$button=this._$element.find(".a-cardui-expand-control-footer-button")},toggleExpansion:function(e){var h=this;c.capabilities.transition&&e.interactedOnce?b.fadeOut(h._$element,200,"linear",function(){a(h,e);b.fadeIn(h._$element,200)}):a(h,e)},getName:function(){return this._$element.attr("name")},getId:function(){return this._$element.attr("id")},addTrigger:function(a){this._$element.click(function(){b.trigger("a:card:"+
a+":toggle",this)});this._$element.length&&f.element(this._$element.get(0),"click");this._$element.keypress(function(c){var e=b.constants.keycodes;c=c.which;c!==e.ENTER&&c!==e.SPACE||b.trigger("a:card:"+a+":toggle",this)});this._$element.length&&f.element(this._$element.get(0),"keypress")}});return{get:function(a,c){return new p(a,c)}}});"use strict";l.when("A","a-component","prv:csa-logger").register("prv:a-cardui-expand-control-title",function(b,d,g){var k=d.create({_componentName:"carduiExpandControlTitle",
init:function(c,b){this._super(c,b);this._$button=this._$element.find('span[role\x3d"button"]');this._$header=this._$element.find("h3")},getName:function(){return this._$element.attr("name")},getId:function(){return this._$element.attr("id")},addTrigger:function(c){this._$element.click(function(){b.trigger("a:card:"+c+":toggle",this)});this._$element.length&&g.element(this._$element.get(0),"click");this._$element.keypress(function(d){var a=b.constants.keycodes;d=d.which;d!==a.ENTER&&d!==a.SPACE||
b.trigger("a:card:"+c+":toggle",this)});this._$element.length&&g.element(this._$element.get(0),"keypress")}});return{get:function(c,b){return new k(c,b)}}});"use strict";l.when("A","a-component").register("prv:a-cardui-teaser",function(b,d){var g=d.create({_componentName:"carduiTeaser",init:function(b,c){this._super(b,c)},getHeight:function(){return this._$element[0].scrollHeight}});return{get:function(b,c){return new g(b,c)}}});"use strict";l.when("A","a-component").register("prv:a-expander-icon",
function(b,d){var g=d.create({_componentName:"expanderIcon",init:function(b,c){this._super(b,c);this._$icon=this._$element.find(".a-css-icon")},toggleExpanderIcon:function(b){var c=b?"a-css-icon-expand":"a-css-icon-collapse";b=b?"a-css-icon-collapse":"a-css-icon-expand";this._$icon.addClass("a-css-icon-draw");this._$icon.removeClass(c).addClass(b)}});return{get:function(b,c){return new g(b,c)}}});"use strict";l.when("A","a-component","prv:a-cardui-scroll-viewport").register("a-reactive-container",
function(b,d,g){var k=d.create({_componentName:"reactiveContainer",init:function(c,b){this._super(c,b);this._$measured=!1;this._$element.addClass("a-reactive-container-transition")},setHeight:function(c){this._$element.css("height",c+"px");this._$measured?g.adjustScroll(this,parseFloat(c)):this._$measured=!0},resetInitialization:function(){this._$measured=!1},getHeight:function(){return this._$element.css("height")}});return{get:function(c,b){return new k(c,b)}}});"use strict";l.when("A","a-component").register("prv:a-see-more",
function(b,d){var g=d.create({_componentName:"seeMore",init:function(b,c){this._super(b,c);this._$seeMoreText=this._$element.find(".a-see-more-text");this._$seeLessText=this._$element.find(".a-see-less-text")},toggleSeeMore:function(b){b?(this._$seeMoreText.hide(),this._$seeLessText.show()):(this._$seeMoreText.show(),this._$seeLessText.hide())}});return{get:function(b,c){return new g(b,c)}}});"use strict";l.when("A").register("prv:a-cardui-scroll-viewport",function(b){return{adjustScroll:function(){}}});
"use strict";l.when("A","prv:a-cardui-expand-control-title","prv:a-cardui-expand-control-footer","prv:a-cardui-teaser","prv:a-cardui-content","prv:a-reactive-container").register("prv:a-cardui-type-utility",function(b,d,g,k,c,f){return{getExpandControlTitle:function(a){return d.get(a._$element.find(".a-cardui-expand-control-title"))},getExpandControlFooter:function(a){return g.get(a._$element.find(".a-cardui-expand-control-footer"))},getTeaser:function(a){return k.get(a._$element.find(".a-cardui-teaser"))},
getContent:function(a){return c.get(a._$element.find(".a-cardui-content"))},getReactiveContainer:function(a){a=a._$element.find(".a-reactive-container");return 0<a.length?f.get(a):null},getEventName:function(a){return"a:card:"+a.getName()+":toggle"}}});"use strict";l.when("A","prv:a-cardui-type-utility").register("prv:a-cardui-peek-expand",function(b,d){function g(a){var c=a._$header;a.metadata.interactedOnce&&b.delay(function(){var a=f(document).scrollTop();c._$header.focus();f("html,body").scrollTop(a)},
50)}function k(a){var f=d.getEventName(a);b.on(f,function(e){if(!a.metadata.interactedOnce){a.metadata.interactedOnce=!0;var d=a._$content;a._$teaser._$element.removeClass("a-cardui-uninitialized");d._$element.removeClass("a-cardui-uninitialized");d._$element.css("max-height","none");c(a)}d=!a.isExpanded();a._$element.attr("data-a-expanded",d);a.metadata.cardExpanded=d;a._$footer.toggleExpansion(a.metadata);c(a);g(a);e={carduiInstance:a,triggerElement:e};b.trigger("a:card:toggled",e);a.getId()&&b.trigger("a:card:"+
a.getId()+":toggled",e)})}function c(a){var b=a._$teaser,c=a._$content,d=a._$reactiveContainer,f=a.metadata;c.getMaxHeightDataAttribute()?(b=c.getHeight(),b<=c.getMaxHeightDataAttribute()?(a._$element.attr("data-a-card-type","basic"),a._$element.find(".a-cardui-footer").addClass("a-hidden"),d.setHeight(b)):(a._$element.attr("data-a-card-type","peekExpand"),a._$element.find(".a-cardui-footer").removeClass("a-hidden"),a=c.getMaxHeightDataAttribute(),d.setHeight(f.cardExpanded?c.getHeight():a))):d.setHeight(f.cardExpanded?
b.getHeight()+c.getHeight():b.getHeight())}var f=b.$;return{init:function(a,f){this._super(a,f);this._$content=d.getContent(this);this._$reactiveContainer=d.getReactiveContainer(this);this._$footer=d.getExpandControlFooter(this);var e=this;b.on("orientationchange",function(){e._$reactiveContainer.resetInitialization();c(e)});this._$header=d.getExpandControlTitle(this);this._$teaser=d.getTeaser(this);this._$header.addTrigger(this.metadata.cardName);this._$footer.addTrigger(this.metadata.cardName);
this._$footer.toggleExpansion(this.metadata);g(this);k(this);this._$content.getHeight()<=this._$content.getMaxHeightDataAttribute()&&(this._$reactiveContainer.setHeight(this._$content.getHeight()),this._$element.attr("data-a-card-type","basic"),this._$element.find(".a-cardui-footer").addClass("a-hidden"))},isExpanded:function(){return"true"===this._$element.attr("data-a-expanded")},toggle:function(a){b.trigger("a:card:"+this.getName()+":toggle",a)}}});"use strict";l.when("A","prv:a-cardui-type-utility").register("prv:a-cardui-peek-toggle",
function(b,d){function g(a){var c=a._$header,d=a._$footer,h=a._$teaser,g=a._$content;a=a.metadata;a.interactedOnce&&b.delay(function(){var a=f(document).scrollTop();c._$header.focus();f("html,body").scrollTop(a)},50);c._$button.attr("aria-expanded",a.cardExpanded);c._$header.attr("aria-describedby",a.cardExpanded?a.describedByIds.expanded:a.describedByIds.collapsed);d._$button.attr("aria-expanded",a.cardExpanded);d._$element.attr("aria-describedby",a.cardExpanded?a.describedByIds.expanded:a.describedByIds.collapsed);
h._$element.attr("aria-hidden",a.cardExpanded);g._$element.attr("aria-hidden",!a.cardExpanded)}function k(a){var f=d.getEventName(a);b.on(f,function(d){if(!a.metadata.interactedOnce){a.metadata.interactedOnce=!0;var e=a._$content;a._$teaser._$element.removeClass("a-cardui-uninitialized");e._$element.removeClass("a-cardui-uninitialized");a._$reactiveContainer&&c(a)}e=!a.isExpanded();var f=a._$teaser,k=a._$content;a._$element.attr("data-a-expanded",e);(a.metadata.cardExpanded=e)?(f._$element.addClass("a-cardui-absolute-position"),
k._$element.removeClass("a-cardui-absolute-position")):(k._$element.addClass("a-cardui-absolute-position"),f._$element.removeClass("a-cardui-absolute-position"));a._$footer.toggleExpansion(a.metadata);a._$reactiveContainer&&c(a);g(a);d={carduiInstance:a,triggerElement:d};b.trigger("a:card:toggled",d);a.getId()&&b.trigger("a:card:"+a.getId()+":toggled",d)})}function c(a){var b=a._$teaser,c=a._$content,d=a._$reactiveContainer;a.metadata.cardExpanded?d.setHeight(c.getHeight()):d.setHeight(b.getHeight())}
var f=b.$;return{init:function(a,f){this._super(a,f);this._$header=d.getExpandControlTitle(this);this._$content=d.getContent(this);this._$footer=d.getExpandControlFooter(this);this._$teaser=d.getTeaser(this);this._$reactiveContainer=d.getReactiveContainer(this);this._$header.addTrigger(this.metadata.cardName);this._$footer.addTrigger(this.metadata.cardName);this._$footer.toggleExpansion(this.metadata);g(this);k(this);var e=this;if(e._$reactiveContainer)b.on("orientationchange",function(){e.metadata.interactedOnce&&
(e._$reactiveContainer.resetInitialization(),c(e))})},isExpanded:function(){return"true"===this._$element.attr("data-a-expanded")},toggle:function(a){b.trigger("a:card:"+this.getName()+":toggle",a)}}})});
/* ******** */
(function(c){var b=window.AmazonUIPageJS||window.P,d=b._namespace||b.attributeErrors,a=d?d("AmazonUICompatJS","AmazonUI"):b;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,b,d){});
/* ******** */
(function(c){var a=window.AmazonUIPageJS||window.P,d=a._namespace||a.attributeErrors,b=d?d("AmazonUI","AmazonUI"):a;b.guardFatal?b.guardFatal(c)(b,window):b.execute(function(){c(b,window)})})(function(c,a,d){a.pcv=a.pcv||{};a.pcv.AmazonUI="e9bc2a783ba8096a7d5c2483f82106aacea4dd20"});
/* ******** */
