(function(b){var c=window.AmazonUIPageJS||window.P,e=c._namespace||c.attributeErrors,a=e?e("AmazonUIBaseJS@analytics","AmazonUI"):c;a.guardFatal?a.guardFatal(b)(a,window):a.execute(function(){b(a,window)})})(function(b,c,e){"use strict";b.register("a-analytics",function(){function a(a,d){var b=c&&c.ue&&c.ue.count;if(b&&a){var f="aui:"+a;1<arguments.length&&b(f,d);return b(f)}}var b=c&&c.ue&&c.ue.tag;return{increment:function(b,d){if(b){var f=a(b)||0;a(b,f+(d||1))}},count:a,logError:function(b,d,a){c.ueLogError&&
c.ueLogError({message:b},{logLevel:d,attribution:a})},tag:function(a){b&&a&&b("aui:"+a)},logNexus:function(b,a){var d=c&&c.ue&&c.ue.event;d&&b&&a&&d(a,"aui-analytics",b)}}});b.when("a-analytics").register("prv:a-cache-analytics",function(b){function a(b){return(new URL(b.name)).searchParams.has("AUIClients/AmazonUI")}function f(a){var c;"script"===a.initiatorType&&(c="js");"link"===a.initiatorType&&(c=(new URL(a.name)).pathname.split(".").pop());c=["js","css"].includes(c)?c:"unknown";b.tag(c+":"+
(a.transferSize===e||a.decodedBodySize===e?"unknown":0===a.transferSize&&0<a.decodedBodySize?"cache":0<a.transferSize?"network":0<a.duration?20>a.duration?"cache":"network":"immediate"))}if(c.PerformanceObserver)try{(new PerformanceObserver(function(b){b.getEntriesByType("resource").filter(a).forEach(f)})).observe({type:"resource",buffered:!0})}catch(d){}});"use strict";b.declare("prv:a-declarative-analytics",{notify:function(){},setOptions:function(){}});"use strict";b.when("a-analytics","afterLoad").execute("a-doctype-test",
function(a){document.doctype&&document.doctype.name&&"html"===document.doctype.name.toLowerCase()||(b.log("Missing or Invalid HTML doctype. Please refer to http://w?AUI/LogMessages#HDOCTYPE for more details.","WARN"),a.increment("a-doctype-issue"))});"use strict";b.declare("a-event-analytics",{handle:function(){},notifyDeclarativeAction:function(){},notifyJquery:function(){}});"use strict";b.when("a-analytics","prv:p-debug","ready").execute(function(a,c){b.declare("prv:a-logTrigger",function(b){var d=
c[b]&&c[b].registered||0,f=0,h=0,e;for(e in c)if(c.hasOwnProperty(e)){var g=c[e];g.end&&g.end<=d&&(f++,h+=g.end-g.start)}a.count("blocking-count:"+b,f);a.count("blocking-time:"+b,Math.round(h))})});"use strict";b.register("prv:a-collect-p-debug",function(){var a=!1;return function(){a||(a=!0,b.when("prv:p-debug","afterLoad").execute(function(a){a=JSON&&JSON.stringify?JSON.stringify(a):"{}";b.log(a,"WARN","[AUI] p-debug")}))}});"use strict";b.register("prv:a-sampler-inclusion",function(){return{"AUI API Analytics":.01>
Math.random()}});b.when("prv:a-sampler-inclusion").register("prv:a-sampler",function(a){return function(b){return a.hasOwnProperty(b)&&a[b]}});"use strict";b.declare("a-timing-analytics",{startWidgetLogging:function(){},stopWidgetLogging:function(){}})});
/* ******** */
(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(p){var m=window.AmazonUIPageJS||window.P,q=m._namespace||m.attributeErrors,b=q?q("AmazonUIBaseJS@base","AmazonUI"):m;b.guardFatal?b.guardFatal(p)(b,window):b.execute(function(){p(b,window)})})(function(p,m,q){"use strict";p.register("a-polyfill",function(){});"use strict";p.when("jQuery").register("a-base",function(b){return{version:function(){return"3.0"},$:b}});"use strict";p.register("prv:a-guard",function(){function b(b,f){return b._guard&&"function"===typeof f?b._guard(f):f}return{fn:b,
guardTimeFn:function(b,f){return b._guardTime&&"function"===typeof f?b._guardTime(f):f},obj:function(l,f){if(!l._guard)return f;var h={},g;for(g in f)f.hasOwnProperty(g)&&(h[g]=b(l,f[g]));return h}}});"use strict";p.register("priv:a-visibility",function(){function b(b){for(var f=["hidden","webkitHidden","mozHidden","msHidden","oHidden"],h=0;h<f.length;h+=1)if(f[h]in b)return f[h]}return function(l){var f=b(l);return f?function(){return l[f]}:function(){return!1}}});"use strict";p.register("prv:a-private-util",
function(){try{var b=navigator.userAgent}catch(l){b=""}return{ua:b,safeFeatureTest:function(b){try{return b()}catch(f){return!1}}}});"use strict";p.when("priv:a-visibility","prv:a-guard","prv:a-private-util").register("a-util",function(b,l,f){function h(b){if(g(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,g):"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 g(b){return b instanceof Element||b instanceof HTMLDocument}var e=f.ua;b={now:Date.now,isPageHidden:b(document)};f=[function(b){return{each:function(a,d,c){if(null!==a)if(Array.prototype.forEach&&a.forEach===Array.prototype.forEach)a.forEach(d,c);else if(a.length===+a.length)for(var k=0,v=a.length;k<v;k++)k in a&&d.call(c,a[k],k,a);else for(k in a)a.hasOwnProperty(k)&&d.call(c,
a[k],k,a)},map:function(a,d,c){var k=[];if(null===a)return k;if(Array.prototype.map&&a.map===Array.prototype.map)return a.map(d,c);b.each(a,function(a,b,e){k[k.length]=d.call(c,a,b,e)});a.length===+a.length&&(k.length=a.length);return k},reduce:function(a,d,c,k){var v=2<arguments.length;null===a&&(a=[]);if(Array.prototype.reduce&&a.reduce===Array.prototype.reduce)return v?a.reduce(d,c):a.reduce(d);b.each(a,function(a,b,e){v?c=d.call(k,c,a,b,e):(c=a,v=!0)});v||p.error("Reduce of empty array with no initial value",
"A.util","reduce");return c},filter:function(a,d,c){var k=[];if(null===a)return k;if(Array.prototype.filter&&a.filter===Array.prototype.filter)return a.filter(d,c||a);b.each(a,function(b,e,f){d.call(c||a,b,e,f)&&k.push(b)});return k},range:function(a,d,c){d===q&&(d=a||0,a=0);c=c||1;d=Math.max(Math.ceil((d-a)/c),0);for(var k=Array(d),b=0;b<d;b++,a+=c)k[b]=a;return k},breaker:{}}},function(b){return{throttle:function(a,d,c){var k,v,e,f=l.fn(this,a),g=null,t=0;c=c||{};var x=function(){t=!1===c.leading?
0:b.now();g=null;e=f.apply(k,v);k=v=null};return function(){var f=b.now();t||!1!==c.leading||(t=f);var A=d-(f-t);k=this;v=arguments;0>=A?(clearTimeout(g),g=null,t=f,e=a.apply(k,v),k=v=null):g||!1===c.trailing||(g=setTimeout(x,A));return e}},sequence:function(){var a=[].slice,d=a.call(arguments).reverse(),c=this;return b.reduce(d,function(k,d){return function(){var b=a.call(arguments);b.push(k);d.apply(c,b)}},function(){})},debounce:function(a,d,c){var k,v,e,f,g,t=l.fn(this,a),x=function(){var a=b.now()-
f;a<d?k=setTimeout(x,d-a):(k=null,c||(g=t.apply(e,v),e=v=null))};return function(){e=this;v=arguments;f=b.now();var t=c&&!k;k||(k=setTimeout(x,d));t&&(g=a.apply(e,v),e=v=null);return g}},delay:function(a,d){var c=this,k=l.fn(this,function(){return l.guardTimeFn(c,a).apply(this,arguments)}),b=Array.prototype.slice.call(arguments,2);return setTimeout(function(){return k.apply(null,b)},d)},animationFrameDelay:function(a){return this.delay(a,16)},interval:function(a,d){var c=this,k=l.fn(this,function(){return l.guardTimeFn(c,
a).apply(this,arguments)});return setInterval(k,d)},once:function(a){var d=!1,c=l.fn(this,a),k;return function(){d||(d=!0,k=c.apply(this,arguments));return k}},rest:function(a,d){if(a){var c=Math.max(d===q?a.length-1:d,0);return function(){for(var k=arguments,d=-1,b=Math.max(k.length-c,0),e=Array(b);++d<b;)e[d]=k[d+c];switch(c){case 0:return a.call(this,e);case 1:return a.call(this,k[0],e);case 2:return a.call(this,k[0],k[1],e)}b=Array(c+1);for(d=-1;++d<c;)b[d]=k[d];b[c]=e;return a.apply(this,b)}}},
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 d;"object"!==typeof c&&"function"!==typeof c&&(c={});for(var k=1;k<arguments.length;k++){var b=arguments[k];if(null!=b)for(var e in b){var x=b[e];if(c!==x&&x!==q){var t=c[e];g(x)||(d=f(x))?(d&&!f(t)?t=[]:d||g(t)||(t={}),d=!1,a(t,x)):t=x;c[e]=t}}}return c}function d(a,c){a=a||{};c=c||{};var k={},b;for(b in a)a.hasOwnProperty(b)&&(k[b]="object"===
typeof a[b]&&a[b]?d(a[b],c[b]):a[b]!==c[b]);for(b in c)c.hasOwnProperty(b)&&!k[b]&&(k[b]="object"===typeof c[b]&&c[b]?d(c[b],a[b]):c[b]!==a[b]);return k}function c(a,b){var d;if(a===b)return!0;if(f(a)){if(!f(b)||a.length!==b.length)return!1;for(d=a.length;d--;)if(!c(a[d],b[d]))return!1;return!0}if(g(a)){if(!g(b)||k(a)&&!k(b))return!1;for(d in a)if(!c(a[d],b[d]))return!1;return!0}return!1}function k(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 f(a){return Array.isArray?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)}function g(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 h(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),d=0;d<c.length;d++)b[d]=a[c[d]];return b},extend:a,mixin:function(a,c,b){if(b)for(var d=0,k=b.length;d<k;d++)a[b[d]]=c[b[d]];else for(d in c)"function"===typeof c[d]&&(a[d]=c[d])},diff:d,equals:c,copy:function(c){return f(c)?a([],c):g(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||p.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 d=a.length;b<d;b++)if(a[b]===c)return b;return-1},isArray:f,isPlainObject:g,isFiniteNumber:function(a){return"number"===typeof a&&!isNaN(a)&&isFinite(a)},objectIsEmpty:k,constProp:"function"===typeof Object.defineProperty?h:t}},function(b){var a={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",
'"':"\x26quot;","'":"\x26#39;","/":"\x26#x2F;"},d=/^\s+/,c=/\s+$/,k=new RegExp("["+b.keys(a).join("")+"]","g"),e=/([!"#$%&'\(\)*+,./:;<=>?@\[\\\]^`{|}~])/g;return{trim:function(a){return String.prototype.trim?String.prototype.trim.call(a):a.replace(d,"").replace(c,"")},contains:function(a,c){return-1!==(""+a).indexOf(c)},escapeHtml:function(c){return(""+c).replace(k,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(d,function(c){var b=a.getAttribute(c);return b&&"["+c+"\x3d"+b+"]"}).join("")}var d=["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 d=[];do d.push(a(c)),c=c.parentElement;while(c);return b.filter(d,Boolean).reverse().join(" ")}}},function(b){return{hide:function(a){b.each(h(a),function(a){b.addClass(a,"aok-hidden")})},show:function(a){b.each(h(a),function(a){b.removeClass(a,
"aok-hidden")})}}},function(b){function a(){d={};for(var a=(document.cookie||"").split(";"),k=a.length-1;0<=k;k--){var e=a[k].split("\x3d"),f=b.trim(e[0]);if(f){var g=d;e=e.slice(1).join("\x3d");e=b.trim(e);/^"/.test(e)&&(e=e.slice(1,-1).replace(/\\(.)/g,"$1"));e=m.decodeURIComponent(e);g[f]=e}}}var d;return{cookies:{get:function(c){d||a();return d[c]},getAll:function(){d||a();return b.extend({},d)},refresh:function(){d=null}}}},function(b){return{onScreen:function(a,d){if(!a)return!1;a.jquery&&(a=
a[0]);if(!a)return!1;d="number"===typeof d&&!isNaN(d)&&isFinite(d)?d:100;if(1!==a.nodeType||!(a.offsetWidth||a.offsetHeight||a.getClientRects().length))return!1;var c=b.size(m),k=b.scroll(m),e=k.top,f=m.innerHeight?m.innerHeight:c.height,g=e+f;k=k.left;c=m.innerWidth?m.innerWidth:c.width;var h=k+c;e-=d;g+=d;k-=d;h+=d;var t=b.offset(a),r=b.size(a);a=t.top;d=r.height;var n=a+d;t=t.left;r=r.width;var A=t+r;return(a>=e&&a<g||n>e&&n<=g||d>f&&a<=e&&n>=g)&&(t>=k&&t<h||A>k&&A<=h||r>c&&t<=k&&A>=h)}}},function(b){return{isATF:function(a,
d){d="number"===typeof d&&!isNaN(d)&&isFinite(d)?d:100;d=b.size(m).height+d;a=b.offset(a).top;return 0<=a&&a<d}}},function(b){function a(a,c){return a.classList?a.classList.contains(c):0<=(" "+a.className+" ").indexOf(" "+c+" ")}var d=document.createElement("fakeelement"),c={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},k=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 d=m.getComputedStyle(a);
c=parseFloat(d.borderTopWidth);b=parseFloat(d.borderBottomWidth);var k=parseFloat(d.borderLeftWidth),e=parseFloat(d.borderRightWidth),f=parseFloat(d.paddingTop),g=parseFloat(d.paddingBottom),h=parseFloat(d.paddingLeft);d=parseFloat(d.paddingRight);return{width:a.offsetWidth-k-e-h-d,height:a.offsetHeight-b-c-f-g}},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)&&(k=c.WebkitTransition);if(null===k)for(var a in c)if(d.style[a]!==q){k=c[a];break}return k},reflowCssChanges:function(a){b.each(a,function(a){})}}},function(b){return{widescreen:function(){return b.hasClass(document.documentElement,"a-ws")}}}];for(var n=0;n<f.length;n++){var r=f[n](b),z;for(z in r)b[z]=r[z]}return b});"use strict";p.when("p-detect","a-util","prv:a-private-util").register("prv:a-capabilities",
function(b,l,f){var h={},g=/Trident/.test(f.ua);l.each({isChrome:function(){return/Chrome/.test(f.ua)},isUCBrowser:function(){return/UCBrowser/.test(f.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(f.ua)&&(e=/AppleWebKit\/(\d+\.\d+)/.exec(f.ua),e=e[1]&&"535">e[1]);return e},isFirefox:function(){return/Firefox/.test(f.ua)},
isIE:function(){return g},isIE10:function(){return g&&"onmspointerup"in document&&!("onpointerup"in document)},isIE10Plus:function(){return g&&("onpointerup"in document||"onmspointerup"in document)},isIE11Plus:function(){return g&&"onpointerup"in document},isiOS8:function(){return b.capabilities.ios&&/Version\/8\./.test(f.ua)},isIETouchCapable:function(){return h.isIE10Plus&&/Touch;/.test(f.ua)},isMetroIEGuess:function(){var e=!0;try{e=new ActiveXObject("htmlfile")}catch(n){e=!1}return h.isIE10Plus&&
!b.capabilities.mobile&&!e}},function(b,g){h[g]=f.safeFeatureTest(b)});return h});"use strict";p.when("p-detect","prv:a-capabilities","a-util","prv:a-private-util").register("a-detect",function(b,l,f,h){var g=f.copy(b),e=function(){var b=/(?:Android\s+|Windowshop.*Android\/|Android\/)(\d+(?:\.\d+)*)/.exec(h.ua);return b&&b[1]},n={};f.each({isAmazonApp:function(){return/(Windowshop|Amazon|AmazonBusiness|Amazon\.com)\//.test(f.cookies.get("amzn-app-id"))},isGen5App:function(){return/Windowshop.*(?:KFOT|KFTH|KFJWA|KFJWI|KFTT)/.test(h.ua)},
isAndroid:function(){return g.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(h.ua)},pointerPrefix:function(){return"onmspointerup"in document||"onpointerup"in document?"onpointerup"in document?"pointer":"MSPointer":!1},actionMode:function(){var b=g.capabilities.pointerPrefix;return b?b:g.capabilities.touch?"touch":"mouse"}},function(b,
e){g.capabilities[e]=h.safeFeatureTest(b)});f.extend(g.capabilities,l);f.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 f=g.capabilities.actionMode,a="string"===typeof b?b:b[f];n[e]=a?f+a:b.mouse===q?"":"mouse"+b.mouse});g.action=n;b={};"pointer"===g.capabilities.pointerPrefix?(b.touch="touch",b.pen="pen",b.mouse="mouse",b.unknown=""):"MSPointer"===g.capabilities.pointerPrefix&&(b.touch=2,b.pen=3,b.mouse=4);g.pointerType=b;return g});"use strict";p.when("prv:a-guard").register("a-defer",function(b){function l(b){var e=0,f=setTimeout(function(){l(b)},0);if(0===b.length)clearTimeout(f),
h=!1;else{var z=Date.now();b.shift().call();g+=Date.now()-z;50<g&&(e=50,g=0);setTimeout(function(){l(b)},e);clearTimeout(f)}}var f=[],h=!1,g=0;return{defer:function(e){var g=this,r=b.fn(this,function(){return b.guardTimeFn(g,e).apply(this,arguments)});f.push(r);h||(h=!0,setTimeout(function(){l(f)},0))},pauseDeferred:function(){},executeDeferred:function(){}}});"use strict";p.when("a-util").register("a-events",function(b,l){function f(a,b){for(var c=a.length;c--;)b(a[c],c,a)||a.splice(c,1)}function h(a){var b=
a.shift();if(b===q)return k;try{!1===b.fn.apply(m,b.args)&&f(a,function(a){return a.id!==b.id})}catch(C){(b.logError?b:p).logError(C,"Event execution failed for event "+b.topic,"FATAL")}}function g(a,d){if(z(a)){var k=B++,e=c[a];d=d||[];var f=b.map(e,function(b){return{topic:a,id:k,fn:b.guard?b.guard(b.fn):b.fn,args:d,logError:b.logError}});e.occurred&&n(a);e.isTimeSliced?v(f):y(f)}}function e(a,b,d){if("function"===typeof b)return d={fn:b,logError:d&&d.logError,guard:d&&d.guard},(c[a]=c[a]||[]).unshift(d),
{event:a,callback:b}}function n(a){c[a].length=0}function r(a,d){function k(a){f(c[a],function(a){return a.fn!==d})}b.each(b.filter(a.split(" "),z),d?k:n)}function z(a){return c.hasOwnProperty(a)&&0<c[a].length}function u(a,d){var k=function(){p.register(a,function(){var a=m.aPageStart;return{time:a?b.now()-a:0}})},f=c[a]=c[a]||[];f.occurred||(f.isTimeSliced=!1!==d,f.occurred=!0,e(a,k),g(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 d in c)c.hasOwnProperty(d)&&(this.on[d]=c[d]);this.constructor=q}function d(a,b){m.attachEvent?m.attachEvent("on"+a,b):m.addEventListener(a,b,!1)}var c={},k={},v=function(){function a(){c=!0;for(var e=b.now();50>b.now()-e;)if(h(d)===k){c=!1;return}b.delay(a,15)}var c=!1,d=[];return function(b){Array.prototype.push.apply(d,b);c||a()}}(),y=function(){var a=!1,b=[];return function(c){Array.prototype.push.apply(b,c);if(!a){for(a=!0;h(b)!==k;);a=!1}}}(),B=0,w=function(){var a=function(a,d,k){var f=
a.split(" "),h=[],t=d;!0===k&&(t=function(){d.apply(m,arguments);r(a,t)});var n=this?{logError:this._logError,guard:this._guard}:{};b.each(f,function(a){"unload"===a&&(a="pagehide");(c[a]||[]).occurred?(e(a,d,n),g(a)):h.push(e(a,t,n).event)});return{event:h.join(" "),callback:t}};b.each("ready load unload afterLoad scroll resize orientationchange zoom".split(" "),function(b){a[b]=function(c,d){a.call(this,b,c,d)}});return a}();a.prototype={isListening:z,on:w,one:function(a,b){var c=a.split(" ");if(1<
c.length)p.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),d=0;d<b;d++)c[d]=arguments[d];c.shift();g(a,c)},events:{defaults:{input:"change",select:"change",a:"click",button:"click",form:"submit"}}};a.prototype.constructor=a;p.when("a-bodyBegin").execute(function(){u("bodyBegin")});
d("pagehide",function(){u("pagehide",!1)});p.when("p-detect").execute(function(a){var c=b.once(function(){u("beforeLoad");u("load");b.delay(function(){u("beforeAfterLoad");u("afterLoad")},1500)}),k=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()})})(k);p.when("a-domready").execute(k);d("load",c)});return a.prototype});"use strict";p.register("prv:a-focus-trap",function(){var b=[];m.document.addEventListener("focusin",function(l){if(0!==b.length){var f=b[b.length-1];f.isElContained(l.target)||f.moveFocus()}});return{register:function(l){b.push(l);return function(){var f=b.indexOf(l);-1<f&&b.splice(f,1)}}}});"use strict";p.when("a-util","a-events").register("a-prefix",function(b,l){function f(b){return b.toLowerCase().replace(/-(.)/g,
function(b,e){return e.toUpperCase()})}var h={transitionend:null},g=document.createElement("div").style,e={},n=["o","ms","moz","webkit"];l.on("beforeReady",function(){if(m.addEventListener){var e=document.createElement("div"),f=function(b){h.transitionend=b.type;this.removeEventListener("webkitTransitionEnd",f,!1);this.removeEventListener("transitionend",f,!1);this.removeEventListener("otransitionend",f,!1);this.removeEventListener("oTransitionEnd",f,!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",f,!1);e.addEventListener("webkitTransitionEnd",f,!1);e.addEventListener("otransitionend",f,!1);this.addEventListener("oTransitionEnd",f,!1);document.body.appendChild(e);b.delay(function(){e.style.top="100px";b.delay(function(){e.parentNode&&e.parentNode.removeChild(e);e=f=null;b.each(h,function(b){})},100)},0)}});return{prefixes:{getStyle:function(b){if(!e[b]){var h=f(b);if(h in g)e[b]=h;else{h=h.charAt(0).toUpperCase()+h.slice(1);for(var l=n.length;l--;){var a=
n[l]+h;a in g&&(e[b]=a)}}}return e[b]},getEvent:function(b){return b?h[b.toLowerCase()]:q}}}});"use strict";p.when("a-util","jQuery","a-declarative").register("a-draggable",function(b,l,f){var h,g={_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);h.css("zIndex",
this._maxZIndex-1);for(var a=0;a<this._draggables.length;a++){var d=this._draggables[a];d[0]!==b[0]&&d._zimIndex>b._zimIndex&&(d._zimIndex-=d._zimIndex>this._maxZIndex-1?2:1,d.css("zIndex",d._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}},n=function(b){var a=b.data.$draggable,d=a.data("a-draggables"),c=e(b);d.isMouseDown&&(a.css({left:c.x-d.clickOffset.x,top:c.y-
d.clickOffset.y}),b.$event.preventDefault())},r=function(b){var a=b.$event.target||b.$event.srcElement,d=b.data.$draggable,c=d.data("a-draggables");g.acquireFocus(d);a=l(a).closest(c.$handle,d);c.isMouseDown=0<a.length;c.isMouseDown&&(h&&h.removeClass("aok-hidden"),a=e(b),c.clickOffset={x:a.x-parseFloat(d.css("left")),y:a.y-parseFloat(d.css("top"))},d.data("a-draggables",c),h.data("a-draggables",c),b.$event.preventDefault())},m=function(b){b=b.data.$draggable;var a=b.data("a-draggables");a.isMouseDown=
!1;b.data("a-draggables",a);h&&h.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");h||(h=l("\x3cdiv\x3e",{id:"a-draggables-mousedown-layer","class":"aok-hidden"}).appendTo("body"),f.declarative.create(h,"a-draggables",a));g.create(a.$draggable);f.declarative.create(a.$draggable,"a-draggables",a);f.declarative("a-draggables",["mousedown",
"touchstart"],r);f.declarative("a-draggables",["mouseup","touchend"],m);f.declarative("a-draggables",["mousemove","touchmove"],n)}}});"use strict";p.when("jQuery","a-util","a-events","a-declarative","a-constants","a-analytics").register("a-state",function(b,l,f,h,g,e){function n(a,d,c,k){var e=!(a in u);if(null===d||b.isArray(d)||b.isPlainObject(d)){var h=l.copy(u[a]);h&&d&&!k&&(b.isArray(h)||b.isPlainObject(h))?l.extend(u[a],d):u[a]=l.copy(d);d=l.diff(h,u[a]);k=l.copy(u[a]);c||f.trigger("a:state:update:"+
a,k,d,h);e&&p.declare(g.constants.PAGESTATE_LOADED_MODULE_PREFIX+a,k);return k}p.error("Invalid value passed to A.state with a namespace of "+a+".  Value: "+d,"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"),d=0,c=a.length;d<c;d++)if(!b.data(a[d],"a-eval")){var k=b(a[d]),f=k.attr("data-a-state");if(f){try{var g=l.parseJSON(f)}catch(w){throw e.logError("[AUI] key value interface for accessing state data parsing failed",
"ERROR",JSON.stringify({xpath:l.xpath(a[d]),cssSelector:l.cssSelector(a[d]),custody:l.attributionChain(a[d])})),w;}if(g.key){try{var h=l.parseJSON(k.html())}catch(w){p.logError(w,"State parsing failed for state "+g.key,"ERROR");continue}b.data(a[d],"a-eval",!0);(k=u[g.key])&&l.extend(h,k);n(g.key,h)}}}}var u={};h.declarative("a-state",function(a){var b=a.$target,c=a.data.key,k=a.data[a.type];k||f.events.defaults[a.targetTag]!==a.type||(k=b.attr("name"));k&&c&&(b.is("select")&&(b=b.find(":selected")),
typeof b.val()!==q&&"string"===typeof k&&(a=b.val(),b.is("input[type\x3dcheckbox]")&&!b.prop("checked")&&(a=null),k=r({},k.split("."),a)),n(c,k))});h=function(a,b,c){return b===q?l.copy(u[a]):n(a,b,!!c)};h.bind=function(a,b){f.on("a:state:update:"+a,b)};h.replace=function(a,b,c){return n(a,b,!!c,!0)};f.on("beforeReady",m);h.parse=m;return{state:h}});"use strict";p.when("prv:a-guard","jQuery","a-util","a-events","a-declarative","a-state").register("a-ajax",function(b,l,f,h,g,e){function n(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){p.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&&""===f.trim(a)?b&&b(a):(a[0]instanceof Array||(a=[a]),f.each(a,function(c){var d=u[c[0]];d?d.apply(m,c):((d=b)||p.error("There is no handler for the streaming ajax command: "+a[0],"A.ajax","chunkHandler"),
d(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,d=0,e=0;return{add:function(a){4>c?(a.send(),c++):(b.push(a),d++,b.length>e&&(e=b.length),(a=m.ue)&&a.count&&(a.count("aui:ajax:queued",d),a.count("aui:ajax:maxQueued",e)))},complete:a,abort:function(c){c=f.indexOfArray(b,c);-1!==c&&b.splice(c,1);a()}}}(),b=function(){},d=function(b){var c=b.http,d=!1,e=!1;
switch(c.readyState){case 4:e=!0;break;case 3:d=!0}var k=200===c.status||304===c.status,g=b.responsePosition;if(d||e&&k){var n=c.responseText;if(g<n.length){g=n.substring(g,n.length);n=g.split("\x26\x26\x26");var l=g.lastIndexOf("\x26\x26\x26");if(-1===l&&d)return;l<g.length-3&&d&&n.pop();f.each(n,function(a,c){if(""!==f.trim(a))try{var d=f.parseJSON(a)}catch(D){p.logError(D,"Invalid streaming ajax JSON response: "+a)}else d=a;b.callbacks.chunk(d)});b.responsePosition+=l}}e&&(clearInterval(b.pollTimer),
clearTimeout(b.timeoutTimer),a.complete(),k?b.callbacks.success(null,c.statusText,b):b.callbacks.failure(b,c.statusText,c.statusText),h.trigger("a:pageUpdate"),h.trigger("a:ajax:complete"))},e=function(b){var c=b.http;if(4===c.readyState){clearInterval(b.pollTimer);clearTimeout(b.timeoutTimer);a.complete();var d=c.responseText;try{d=f.parseJSON(d)}catch(x){}200!==c.status&&304!==c.status?b.callbacks.failure(b,c.statusText,c.statusText):b.callbacks.success(d,c.statusText,b);h.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 k(a,b,c){c=c||{};c=f.extend({},h.all,h[b],c);f.each(c,function(b,c){(b||""===b)&&a.setRequestHeader(c,b)});return a}function g(b,c,d,e,f,g,h,n,l,t){var r=b.http;r.open(c,d);k(r,c,l);b.timeout=e;b.callbacks.chunk=f||b.callbacks.chunk;b.callbacks.success=g||b.callbacks.success;b.callbacks.failure=h||b.callbacks.failure;b.callbacks.abort=n||
b.callbacks.abort;t&&(r.withCredentials=!0);a.add(b);return{abort:function(){b.abort()}}}var h={all:{"X-Requested-With":"XMLHttpRequest"},get:{Accept:"text/html,*/*"},post:{Accept:"text/html,*/*","Content-Type":"application/x-www-form-urlencoded"}},n=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}};n.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")?d:e)(a)}},25);a.timeout="undefined"===typeof a.timeout?2E4:a.timeout;a.timeoutTimer=f.delay(c,a.timeout,a)},get:function(a,b,c,d,e,k,f,h,n){if(b){var l=a.indexOf("?"),t=a.charAt(a.length-1);-1<l?"?"!==t&&"\x26"!==t&&(a+="\x26"):a+="?";a+=b}return g(this,"get",a,
c,d,e,k,f,h,n)},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,d,e,k,f,h,n){this.params=b;return g(this,"post",a,c,d,e,k,f,h,n)}};return n}()}(),u={update:function(a,b,d){l(b).html(d)},append:function(a,b,d){a=l(b);a.html(a.html()+d)},prepend:function(a,b,d){a=l(b);a.html(d+a.html())},state:function(a,b,d){e.state(b,d)},script:function(a,b){eval(b)},trigger:function(a,b){var c=
Array.prototype.slice.call(arguments,1);h.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"))},d=a.abort,e=l(a.indicator),g=e.hasClass("aok-hidden");e.removeClass("aok-hidden").show();var h=function(a,b){e.hide();g&&e.addClass("aok-hidden");c();a&&a.apply(m,b)},n="string"===typeof a.method&&"post"===a.method.toLowerCase()?"post":"get";"get"===n&&!1===a.cache&&(a.params+=[""===a.params?"":"\x26","_\x3d",f.now()].join(""));
return b[n](a.url,a.params,a.timeout,function(b){c();r(b,a.chunk)},function(){h(a.success,arguments)},function(){h(a.failure,arguments)},d,a.headers,a.withCredentials)}};g.declarative("a-ajax-update",function(b){var c=b.$target,d=b.action,e=b.data;if(e||h.events.defaults[b.targetTag]===b.type)if("object"!==typeof e||e[b.type]){e=e||{};var f=e.url||c.attr("href")||c.attr("action"),g=n(e.params,e.paramsFormat),l=c.attr("method")||e.method,r=e.indicator;e=e.timeout;f||p.error("No ajax url provided.",
"A.ajax","declarativeHandler");"form"===b.targetTag&&b.type===h.events.defaults.form&&(c=c.serialize(),g+=c);b.$event.preventDefault();return a[d]({url:f,params:g,method:l,indicator:r,operation:d,timeout:e})}});var d=function(c,d){d=d||{};var e=this,f=d.headers||{};d.accepts!==q&&(f.Accept=d.accepts);d.contentType!==q&&(f["Content-Type"]=d.contentType);var k=n(d.params,d.paramsFormat);return a["a-ajax-update"](b.obj(this,{url:c,cache:d.cache,params:k,method:d.method,chunk:d.chunk,success:d.success&&
function(){return b.guardTimeFn(e,d.success).apply(this,arguments)},failure:(d.failure||d.error)&&function(){return b.guardTimeFn(e,d.failure||d.error).apply(this,arguments)},abort:d.abort,indicator:d.indicator,timeout:d.timeout,headers:f,withCredentials:!!d.withCredentials}))};return{ajax:d,get:function(a,b){b=b||{};b.method="get";return d.call(this,a,b)},post:function(a,b){b=b||{};b.method="post";return d.call(this,a,b)}}});"use strict";p.when("a-util","p-detect","a-prefix").register("a-animate",
function(b,l,f){function h(a,b,c){a=a.jquery?a[0]:a;b=f.prefixes.getStyle(b);a.style[b]=c}function g(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 d={},c=!1;b.each(r,function(b){b in a&&(c=!0,d[b]=a[b],delete a[b])});return c?d:null}function n(a,
d,c){l.capabilities.transform?("string"===typeof c&&(c=parseInt(c,10)),b.isFiniteNumber(c)||(c=0),a=parseInt(a.css(d),10),b.isFiniteNumber(a)||(a=0),c=c-a+"px"):b.isFiniteNumber(c)&&(c+="px");return c}var r=["top","left","scale"],m={animate:function(a,b,c,e,f){a._a||(a._a=0);a._a++;var d=function(){a._a--;f&&f()};a.queue("fx",[function(){a.animate(b,{duration:c,easing:"linear"===e?e:"swing",complete:d,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 d=a.css("opacity");a.fadeOut({duration:b,easing:"linear"===c?c:"swing",complete:function(){a.css("opacity",d);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)}},u={animate:function(a,d,c,f,r){if(a&&a.length){var k=a[0];d=b.copy(d);c=c===q?250:c;f=f||"linear";d.top!==q&&(d.top=n(a,"top",d.top));d.left!==q&&
(d.left=n(a,"left",d.left));h(a,"transition",4>c?"all 0ms":"all "+c+"ms "+f);4<c?(k._a===q&&(k._a=0),k._a++,f=function(){0<k._a&&k._a--;k._a||h(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))&&h(a,"transform",g({top:c.top,left:c.left,scale:c.scale}));b.objectIsEmpty(d)||a.css(d)}},fadeIn:function(a,d,c,e){this.stopAnimation(a,!0,!0);
if(a.data("aTargetOpacity")===q){var f=a.css("opacity")||1;a.data("aTargetOpacity",f)}else f=a.data("aTargetOpacity");a.css("opacity","0").removeClass("a-hidden aok-hidden").show();b.reflowCssChanges(a);this.animate(a,{opacity:f},d,c,function(){a.show();e&&e()})},fadeOut:function(a,b,c,e){this.stopAnimation(a,!0,!0);var d=a.css("opacity");a.data("aTargetOpacity")===q&&a.data("aTargetOpacity",d);this.animate(a,{opacity:0},b,c,function(){a.hide().css("opacity",d);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,d,c,e){var f=this.animate;a.css({height:a.innerHeight(),overflow:"hidden"});b.delay(function(){f(a,{height:0},d,c,function(){a.hide();a.css({height:"",overflow:""});e&&e()})},0)},slideDown:function(a,d,c,e){var f=a.innerHeight(),g=this.animate;a.css({height:0,overflow:"hidden"});a.show();b.delay(function(){g(a,{height:f},d,c,function(){e&&e();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,d,c){if(a&&a.length){var e=a[0];h(a,"transition","all "+(c?"1":"0")+"ms");d&&(e._a=0);b.reflowCssChanges(a);clearTimeout(a.data("aAnimateTimeoutId"));a.data("aAnimateOnComplete")&&a.data("aAnimateOnComplete")()}}};return l.capabilities.transition?u:m});"use strict";p.when("A","jQuery").register("a-image-lazy-loader",
function(b,l){function f(){l(".a-lazy-loaded").each(function(){e.set(l(this))})}function h(){var h=[];l(".a-lazy-loaded").each(function(){var n=l(this);n.data("src")&&g(n)&&(n.load(function(){b.trigger("a:image:lazyLoaded",n);f()}),h.push(n),n.removeClass("a-lazy-loaded"),e.remove(n))});b.each(h,function(b){b.attr("src",b.data("src"))})}function g(b){e.get(b)||e.set(b);var f=l(m),g=f.scrollTop();f=m.innerHeight?m.innerHeight:f.height();var h=g+f+500;g-=500;var a=e.get(b);b=a.top;a=a.height;var d=
b+a;return b>=g&&b<h||d>g&&d<=h||a>f&&b<=g&&d>=h}var e=function(){var b={},e=0;return{get:function(e){return b[e.data("cacheKey")]},set:function(f){f.data("cacheKey")||(f.data("cacheKey",e),e++);b[f.data("cacheKey")]={top:f.offset().top,height:f.height()}},remove:function(e){e.data("cacheKey")&&delete b[e.data("cacheKey")]}}}();f();h();b.on("scroll",function(){h()});b.on("scroll",b.debounce(function(){f();h()},250));b.on("resize",h);b.on("a:image:lazyLoad",h);b.on.ready(h)});"use strict";p.register("a-image-url-key-handler",
function(){return{generate:function(b,l){return b},parse:function(b){return{url:b}}}});"use strict";p.when("jQuery","a-util","a-events","a-defer","p-detect","a-image-url-key-handler").register("a-image",function(b,l,f,h,g,e){function n(a){a=b(a);var d=a.data("a-dynamic-image");if(d&&"object"===typeof d){var e=a.data("a-dynamic-image-container");"undefined"===typeof e&&(e=a.closest(".a-dynamic-image-container"),0===e.length&&(e=a.parent()),a.data("a-dynamic-image-container",e));var h=g.capabilities.hires&&
m.devicePixelRatio?m.devicePixelRatio:1,k=e.width()*h,n=e.height()*h,r=Number.MAX_VALUE,p=Number.MAX_VALUE,u=a.attr("src")||"",v,q=k/n;l.each(d,function(a,b){var c="string"===typeof a?JSON.parse(a):a;a=parseInt(c[0],10);c=parseInt(c[1],10);a-=n;c-=k;a=1<=q?c:a;Math.abs(a)<p&&0<=a&&(p=Math.abs(a),v=b);Math.abs(a)<r&&(r=Math.abs(a),u=b)});v&&(u=v);c.schedule(u,a);c.fill();a.data("a-image-updated",!0);f.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")||
n(this)})}function p(){b("img.a-dynamic-image").each(function(){var a=b(this);a.data("a-manual-replacement")||a.data("a-image-updated")||n(this)})}var u=document.getElementsByTagName("img"),a={},d=0,c=function(){var b=[],c={};return{schedule:function(d,f){d=e.generate(d,f.attr("crossorigin"));c[d]||(b.push(d),c[d]=!0);a[d]=a[d]||[];for(var g=0;g<a[d].length;g++)if(f.is(a[d][g]))return;a[d].push(f)},fill:function(){for(var a=0;a<2-d;a++)if(0<b.length){var e=b.shift();c[e]=!1;k.load(e)}}}}(),k=function(){function g(b){var c=
a[b],d=e.parse(b).url;c&&(l.each(c,function(a){a.data("a-image-replaced")!==d&&(a.data("a-image-replaced",d),h.defer(function(){a.attr("src",d);f.trigger("a:image:load",{$imageElement:a,url:d});var b=a.data("a-image-name");b&&f.trigger("a:image:load:"+b,{$imageElement:a,url:d})}))}),a[b]=[])}var k={};return{load:function(a){if(k[a])g(a);else if(!1!==k[a]){var b=new Image,f=b.onload=l.once(function(){d--;g(a);k[a]=!0;c.fill()});b.onerror=function(){d--;k[a]=!1;c.fill()};d++;h.defer(function(){var c=
e.parse(a),d=c.crossOrigin;d&&(b.crossOrigin=d);b.src=c.url;b.complete&&h.defer(f)})}},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))})}}}();g.capabilities.hires&&f.on.ready(function(){l.interval(function(){k.poll();c.fill()},2E3)});f.on("ready",function(){r();f.on("resize",r);f.on("a:pageUpdate",p)});return{loadHiResImage:function(a){var d=
[];b(a).each(function(){var a=b(this),e=a.data("a-hires");e&&(c.schedule(e,a),c.fill(),d.push(e));a.data("a-hires-loaded",!0)});return d},loadDynamicImage:function(a){var c=[];b(a).each(function(){c.push(n(this))});return c},loadImageManually:function(a,c){var d=[];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=n(a),e=b("\x3cimg\x3e").attr("src",c||a.data("a-image-source"));d.push(c);c=""+this.className;var f=a.data("a-extra-classes");
f&&(c+=" "+f);e.attr("class",c);e.attr("id",this.id);e.attr("style",a.attr("style"));e.attr("alt",a.attr("alt"));e.attr("usemap",a.attr("usemap"));e.attr("title",a.attr("title"));e.attr("role",a.attr("role"));(c=a.data("a-image-crossorigin"))&&e.attr("crossorigin",c);l.each(this.attributes,function(a){a&&a.name&&(0===a.name.indexOf("data-")||0===a.name.indexOf("aria-"))&&e.attr(a.name,a.value)});e.data(a.data());a.replaceWith(e)}return d})},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)}}});p.register("a-class",function(){function b(){}var l=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;b.extend=function(f){var h=this.prototype,g=Object.create?Object.create(h):function(b){function e(){}e.prototype=b;return new e}(h),e;for(e in f)g[e]="function"===typeof f[e]&&"function"===typeof h[e]&&l.test(f[e])?function(b,e){return function(){var f=this._super;this._super=h[b];var g=e.apply(this,arguments);this._super=f;return g}}(e,f[e]):f[e];f="function"===typeof g.init?
g.hasOwnProperty("init")?g.init:function(){h.init.apply(this,arguments)}:function(){};f.prototype=g;g.constructor=f;f.extend=b.extend;return f};return{createClass:function(f){return b.extend(f)}}});"use strict";p.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";p.when("jQuery","a-detect","a-events","a-util","a-defer").register("a-browser-events",function(b,l,f,h,g){function e(){return m.innerHeight?m.innerHeight:document.documentElement.clientHeight}function n(){return m.innerWidth?m.innerWidth:document.documentElement.clientWidth}function r(){return m.innerWidth?
Math.round(document.documentElement.clientWidth/m.innerWidth*10)/10:1}function p(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={},f,g;(g=a.pop())!==q;)f=k[g],"orientation"===g?k[g]=m.orientation===q?n()>e()?90:0:m.orientation:"height"===g?k[g]=e():"width"===
g?k[g]=n():"scrollTop"===g?k[g]=m.scrollY?m.scrollY:d.scrollTop():"scrollLeft"===g?k[g]=m.scrollX?m.scrollX:d.scrollLeft():"zoom"===g&&(k[g]=r()),k[g]!==f&&(b[g]=f);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 d=b(m),c={ORIENTATION_CHANGE:"orientationchange",SCROLL:"scroll",RESIZE:"resize",ZOOM:"zoom",ALL:"all"},k={scrollLeft:0,
scrollTop:0,height:e(),width:n(),orientation:m.orientation===q?n()>e()?90:0:m.orientation,zoom:r()};f.on("beforeReady",function(){p(c.ALL)});var v={speed:0,degree:0,direction:"",positionX:0,positionY:0},y=[],B;d.bind("mousemove",h.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 d=0;d<b;d++)c+=y[d].speed,e+=y[d].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));d.bind(c.SCROLL,h.throttle(function(){var a=p(c.SCROLL);f.trigger(c.SCROLL,k,a)},100));var w={};h.each([c.RESIZE,c.ZOOM],function(a){w[a]={handler:function(){},lastViewport:h.copy(k),maxPollCount:5,pollCounter:5,pollInterval:100,intervalId:0}});w.resize.handler=
function(){var b=[],e=w.resize;p("resize");var d=h.diff(k,e.lastViewport);d.orientation&&b.push(c.ORIENTATION_CHANGE);d.width||d.height?b.push(c.RESIZE):l.capabilities.isIETouchCapable&&d.scrollTop&&b.push(c.RESIZE);b.length&&(e.lastViewport=h.copy(k),h.each(b,function(a){f.trigger(a,k,d)}));0===--e.pollCounter&&a(c.RESIZE)};w.resize.pollInterval=100;w.resize.maxPollCount=10;d.bind(c.RESIZE,function(a){u(c.RESIZE)});w.zoom.handler=function(){p(c.ZOOM);var b=w.zoom,e=h.diff(k,b.lastViewport);e.zoom&&
(b.lastViewport=h.copy(k),f.trigger(c.ZOOM,k,e));0===--b.pollCounter&&a(c.ZOOM)};w.zoom.pollInterval=200;l.capabilities.android&&d.bind("touchcancel",function(a){2===a.originalEvent.changedTouches.length&&(w.zoom.maxPollCount=15,u(c.ZOOM))});l.capabilities.ios&&d.bind("touchend",function(a){1===a.originalEvent.touches.length&&(w.zoom.maxPollCount=1,u(c.ZOOM))});l.capabilities.ios||l.capabilities.android||d.bind("resize",function(a){w.zoom.maxPollCount=5;u(c.ZOOM)});return{viewport:function(a){a&&
p(c.ALL);return h.copy(k)},cursor:function(){return h.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";p.when("a-util").register("a-request-animation-frame",function(b){for(var l=0,f=["ms","moz","webkit",
"o"],h=0;h<f.length&&!m.requestAnimationFrame;++h)m.requestAnimationFrame=m[f[h]+"RequestAnimationFrame"],m.cancelAnimationFrame=m[f[h]+"CancelAnimationFrame"]||m[f[h]+"CancelRequestAnimationFrame"];m.requestAnimationFrame||(m.requestAnimationFrame=function(f,e){var g=b.now(),h=Math.max(0,16-(g-l));e=m.setTimeout(function(){f(g+h)},h);l=g+h;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";p.when("jQuery").register("a-form-controls-api",function(b){var l=0,f=function(f){return f&&f.jquery?f:f&&1===f.nodeType?b(f):null},h=function(b,e,h){var g=f(b);if(!g||1!==g.length)return!1;b=g.find("input").first();e!==q&&(e=!!e,g.hasClass("a-touch-multi-select")&&(g.find("i.a-icon").first().toggleClass("a-icon-touch-multi-select-active",e).toggleClass("a-icon-touch-multi-select",!e),g.attr("aria-checked",e)),b.prop("checked")!==
e&&b.prop("checked",e).trigger("change"));h!==q&&(h=!!h,b.prop("disabled")!==h&&b.prop("disabled",h))};return{findFormElementContainer:function(g){if((g=f(g))&&1===g.length){var e=g.closest("form");0===e.length&&(e=g.closest("fieldset"),0===e.length&&(e=b(document)));return e}},toggleCheckboxState:function(b){b=f(b);if(b&&1===b.length){var e=b.find("input").first();h(b,!e[0].checked)}},setCheckboxState:h,setRadioState:h,normalizeElement:function(b){if((b=(b=f(b))?b:f(this))&&1===b.length){var e=b.find("input").first();
e.attr("type");var g=b.hasClass("a-touch-multi-select");b.attr("id")||e.attr("id")||g&&(!g||b.parent().attr("id"))||(g="a-form-controls-autoid-"+l,b.attr("aria-labelledby",g).find(".a-checkbox-label, .a-radio-label, .a-touch-multi-select-item-label").attr("id",g),l++);h(b,e[0].checked,e[0].disabled)}},normalizeFieldsets:function(f){b(f).closest("fieldset").each(function(e,f){e=b(f);f=e.find("legend").first();if(f.length){var g=f.attr("id");g||(g="a-form-controls-autoid-"+l,f.attr("id",g),l++);e.attr("aria-describedby",
g)}})}}});"use strict";p.when("a-util","a-constants").execute("prepare-a-weblab",function(b,l){p.when(l.constants.PAGESTATE_LOADED_MODULE_PREFIX+"a-wlab-states").register("a-weblab",function(f){function h(b){m||(q[b]=n[b]);return m&&m[b]||n[b]}function g(b){return h(b)||"C"}function e(b){return h(b)||"C"}var n=f||{},m,q={};p.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]&&p.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:g)(b)===a},isActive:function(b){return!!h(b)},noTrigger:g,trigger:e}})});"use strict";p.declare("prv:a-post-atf-catchdomready",!0);p.when("a-util","a-defer","prv:a-post-atf-catchdomready").register("prv:a-post-atf",function(b,l,f){function h(){n||(n=!0,b.each(e,function(b){l.defer(b)}),e=[])}function g(){f&&h()}var e=[],n=!1;p.when("af","cf").execute("flush_queued_functions_after_ATF",h);
p.when("a-domready").execute("flush_queued_functions_after_domready",function(){b.delay(g,500)});return{execute:function(b){n?l.defer(b):e.push(b)}}});"use strict";p.register("prv:a-tnr",function(){function b(){for(var b=Array(arguments.length),h=0;h<b.length;++h)b[h]=arguments[h];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";p.when("A").register("a-component-mixins",function(b){function l(f){for(var e=0;e<f.length;e++)if(0>b.indexOfArray(h,f[e]))return!1;return!0}var f=0,h=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(g,e){var h=b.parseFunctionName(e);h||p.error.call({},"Please name all asynchronous event callbacks");if(g=g?g.split(" "):q){this.fnMap=this.fnMap||{};l(g)||p.error.call({},"That event is not supported!");var m=this;b.each(g,function(g){this.fnMap[g]=this.fnMap[g]||[];var l=this.fnMap[g][e]="a-component-event-"+f++;b.declarative(l,g,function(){try{e.apply(m,m.callbackArgs||[])}catch(a){p.logError.call({},a,"Error occurred in an asynchronous event callback","FATAL",
(e.caller||"")+g+"handler:"+(h||"anonymous"))}});b.declarative.create(m._$element,l)},m)}},off:function(f,e){f=f?f.split(" "):q;this.fnMap||p.error.call({},"There are no callbacks assigned to this component");f&&e?b.each(f,function(f){try{b.declarative.remove(this._$element,this.fnMap[f][e]),delete this.fnMap[f][e]}catch(r){p.error.call({},"The component is not bound to a callback with name "+b.parseFunctionName(e)||"anonymous for event "+f)}},this):e||f?!e&&f?b.each(f,function(b){for(var e in this.fnMap[b])this.fnMap[b].hasOwnProperty(e)&&
this.off(b,e);delete this.fnMap[b]},this):p.error.call({},"Please provide an event associated with the callback"):(b.declarative.remove(this._$element),delete this.fnMap)},trigger:function(f,e){this.callbackArgs=e||[];b.$.fn.trigger.call(this._$element,f)}}});"use strict";p.when("A","jQuery","a-component-mixins","a-analytics","prv:a-sampler").register("a-component",function(b,l,f,h,g){var e=b.createClass({init:function(e,f){b.contains(e,".a-")&&p.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,f);this._trackApi()},_trackApi:function(){this._componentName&&g("AUI API Analytics")&&h.increment("api:"+this._componentName)}});return{create:function(h){var g=h.mixin;g&&delete h.mixin;h=e.extend(h);g&&b.mixin(h.prototype,f,g);return h}}});"use strict";p.when("A","jQuery","a-component").register("a-alert",function(b,l,f){var h=["error","success","warning","info"],g=b.map(h,function(b){return"a-alert-"+b}).join(" "),e=b.map(h,function(b){return"a-alert-inline-"+
b}).join(" "),n=document.createElement("h4");n.className="a-alert-heading";var m=l(n),q=f.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(f){-1===b.indexOfArray(h,f)&&p.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(g);a.addClass(b+f)});return this}});return function(b,a){return new q(b,a)}});"use strict";p.when("jQuery","a-component","a-form-controls-api").register("a-checkbox",function(b,l,f){var h=f.setCheckboxState,g=l.create({_componentName:"checkbox",init:function(b,f){this._super(b,f);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(){h(this,b)});return this},uncheck:function(){return this.check(!1)},toggleChecked:function(){this._$element.each(function(){f.toggleCheckboxState(this)});return this},isChecked:function(){for(var b=0,f=this._$input.length;b<f;b++)if(!this._$input[b].checked)return!1;return!0},isUnchecked:function(){for(var b=0,f=this._$input.length;b<f;b++)if(this._$input[b].checked)return!1;return!0},enable:function(b){b=void 0===
b?!0:b;this._$element.each(function(){h(this,void 0,!b)});return this},disable:function(){return this.enable(!1)},toggleEnabled:function(){for(var b=0,f=this._$input.length;b<f;b++)h(this._$element[b],void 0,!this._$input[b].disabled);return this},isEnabled:function(){for(var b=0,f=this._$input.length;b<f;b++)if(this._$input[b].disabled)return!1;return!0},isDisabled:function(){for(var b=0,f=this._$input.length;b<f;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,f){return new g(b,f)}});"use strict";p.when("A","a-component").register("a-meter",function(b,l){var f=l.create({_componentName:"meter",init:function(b,f){this._super(b,f);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(f){if("undefined"===typeof f)return f=this._$bar.get(0).style.width,parseInt(f,10);b.isFiniteNumber(f)||p.error("{API}  Meter percent should be a number between 0 and 100","a-meter","setProgress");f=Math.min(100,Math.max(0,f));var g=f+"%";f=f.toString();this._$bar.css({width:g});
this._$element.attr({"aria-label":g,"aria-valuenow":f});return this},text:function(b){if("undefined"===typeof b)return this._$progressTxt.text();this._$progressTxt.text(b);return this},set:function(b,f){this.percent(b);f&&this.text(f);return this}});return function(b,g){return new f(b,g)}});p.when("a-component").register("a-spinner",function(b){var l=b.create({_componentName:"spinner",init:function(b,h){this._super(b,h);this._$element=this._$element.filter(".a-spinner-wrapper, .a-spinner")},mixin:["show",
"hide","isEmpty","size"],remove:function(){this._$element.remove()}});return function(b,h){return new l(b,h)}});"use strict";p.register("a-ua",function(){return{compareVersions:function(b,l,f){var h=function(b){p.error("Versions are not comparable. "+b,"A - extras","compareVersions")};f=f||".";"string"===typeof b&&"string"===typeof l&&"string"===typeof f&&""!==b&&""!==l||h("Input values are not valid.");b=b.split(f);l=l.split(f);f=Math.max(b.length,l.length);for(var g=0;g<f;g++){var e=g<b.length?
Number(b[g]):0,m=g<l.length?Number(l[g]):0;!isNaN(e)&&isFinite(e)&&!isNaN(m)&&isFinite(m)||h("Piece of one version number evaluates to NaN or +/- Infinity.");if(e<m)return-1;if(e>m)return 1}return 0}}});"use strict";p.when("A","3p-promise","load").register("a-pcv",function(b,l){var f;return{getData:function(){f||(f=new l(function(b,f){var e=m.pcv.AmazonUI;e?(document.documentElement.setAttribute("data-aui-version",e),b(e)):f(Error("Package closure version of AmazonUI is not found on the page"))}));
return f}}})});
/* ******** */
(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"===this._$accessibleElement.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(k,b){return m?"selected"===a:b});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(c){var d=window.AmazonUIPageJS||window.P,e=d._namespace||d.attributeErrors,b=e?e("AmazonUIFilter","AmazonUI"):d;b.guardFatal?b.guardFatal(c)(b,window):b.execute(function(){c(b,window)})})(function(c,d,e){c.when("A").register("a-filter",function(b){function c(a){a.attr("data-a-selected","true").attr("aria-pressed","true")}function d(a){a.attr("data-a-selected","false").attr("aria-pressed","false")}function e(a){return{$filters:a,filter:function(a){return e(this.$filters.filter(a))},pills:function(){return this.filter("[data-a-type\x3d'pill']")},
dropdowns:function(){return this.filter("[data-a-type\x3d'dropdown']")},buttons:function(){return this.filter("[data-a-type\x3d'button']")},selected:function(){return this.filter("[data-a-selected\x3d'true']")},deselected:function(){return this.filter("[data-a-selected\x3d'false']")},enabled:function(){return this.filter(":not([disabled])")},disabled:function(){return this.filter("[disabled]")},select:function(){var a=this.$filters.filter("[data-a-selected\x3d'false']");c(a);g(a);return this},deselect:function(){var a=
this.$filters.filter("[data-a-selected\x3d'true']");d(a);g(a);return this},toggle:function(){var a=this.$filters.filter("[data-a-selected\x3d'false']"),b=this.$filters.filter("[data-a-selected\x3d'true']");c(a);d(b);g(this.$filters);return this},enable:function(){this.$filters.prop("disabled",!1);return this},disable:function(){this.$filters.prop("disabled",!0);return this},show:function(){this.$filters.attr("data-a-hidden","false");return this},hide:function(){this.$filters.attr("data-a-hidden",
"true");return this},setText:function(a){this.$filters.find("[data-a-selector\x3d'user-content']").text(a);return this},getSize:function(){return this.$filters.size()},isEmpty:function(){return 0===this.getSize()},allSelected:function(){var a=!0;this.$filters.each(function(){if("true"!==f(this).attr("data-a-selected"))return a=!1});return a},anySelected:function(){var a=!1;this.$filters.each(function(){if("true"===f(this).attr("data-a-selected"))return a=!0,!1});return a},getName:function(){return this.$filters.attr("name")},
getValue:function(){return this.$filters.attr("value")}}}function g(a){var c={};a.each(function(){var a=f(this),b=a.closest("[data-a-component\x3d'filter-group']").attr("data-a-name");b&&(c[b]=f.merge(c[b]||[],a))});b.each(c,function(a,c){b.trigger("a:filter:group:"+c+":change",h(a))})}function k(a){a=f(a).find("[data-a-component\x3d'filter']");return e(a)}function h(a){a=f(a).filter("[data-a-component\x3d'filter']");return e(a)}var f=b.$;b.declarative("a-filter-pill-toggle","click",function(a){a=
a.$target.closest("[data-a-component\x3d'filter']");h(a).toggle()});return{within:k,inGroup:function(a){return k("[data-a-component\x3d'filter-group'][data-a-name\x3d'"+a+"']")},get:h}})});
/* ******** */
(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,d=z?z("AmazonUICarousel","AmazonUI"):E;d.guardFatal?d.guardFatal(n)(d,window):d.execute(function(){n(d,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(d){function m(b){return"string"===typeof b}function g(b){return b&&b.nodeType!==z}function b(d){return""===
d?"\x3cdiv\x3e\x3c/div\x3e":d?m(d)||g(d)?d:b(d.content):null}function k(b){b&&(m(b)||g(b)?b=!0:b.content=k(b.content));return b}return{addElementToDom:function(b,h){if(h){if(m(h)||g(h))if(d(h).hasClass("a-carousel-card-fragment")){var f=d(h).clone();b.empty().append(f.contents())}else b.empty().append(h);!0!==h&&b.removeClass("a-carousel-card-empty")}},clearElementFromItem:k,getElementFromItem:b,isElement:g,isString:m}});"use strict";n.register("a-carousel-circular-utils",function(){function d(d){var b=
0<d;return function(d,e,h){var f=e.length;h=(h||1)%f;d=d.get(0);for(var c,a=0;a<h;a++)b?(c=e.get(a),d.appendChild(c)):(c=e.get(f-1-a),d.insertBefore(c,d.children[0]))}}function m(d){var b=0<d;return function(d,e){e=e?e%d.length:1;b?d=d.concat(d.splice(0,e)):d.unshift.apply(d,d.splice(d.length-e,e));return d}}return{rotateCW:d(1),rotateCCW:d(-1),rotateArrayCW:m(1),rotateArrayCCW:m(-1),firstCardIndexAfterRotate:function(d,b,k){d=(b+d)%k;0===d?d=k:0>d&&(d=k+d);return d},relativeIndexFromIndex:function(d,
b,k){var e=1;if(0<d&&d<=k)return d>b?e=d-b+1:d<b&&(e=k-b+d+1),e;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(d,m){return function(g){function b(b,h,f){var c,a,p;h.jquery||(h=m(h));for(d.each(f,function(c){if("top"===c||"left"===c)return a=h.offset(),!1});void 0!==(c=f.pop());){var e=b[c];"left"===c||"top"===c?b[c]=a[c]:-1<c.indexOf("outer")?b[c]=h[c](!0):b[c]=h["outer"+c.charAt(0).toUpperCase()+
c.substr(1)]();b[c]!==e&&(void 0===p&&(p={}),p[c]=e)}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]||!d.isFiniteNumber(this.items[0].width)||0>=this.items[0].width?160:this.items[0].width}};g.measure=function(e){var h=this.dom.$carousel,f=this.dom.$viewport,c={};e&&(e=e.split(" "));if(!e||-1<d.indexOfArray(e,"carousel"))c.carousel=b(k.carousel,h,"top left height width outerHeight outerWidth".split(" "));
if(!e||-1<d.indexOfArray(e,"viewport"))c.viewport=b(k.viewport,f,["height","width","outerHeight","outerWidth"]);if(!e||-1<d.indexOfArray(e,"items"))k.items=[],c.items={},h.children("li").each(function(a,d){k.items[a]={};d=b(k.items[a],d,"top left height width outerHeight outerWidth".split(" "));void 0!==d&&(c.items[a]=d)});return c};g.getItemOffset=function(d){var b=k.items;d--;var f=0;if(b&&b.length&&d<b.length){for(var c=b[0].outerWidth,a=0;a<d;a++)f+=b[a]?b[a].outerWidth:c;0<d&&this.getAttr("first_item_flush_left")&&
(f+=g.getAttr("currentGutter"))}return f};g.getDimensions=function(){return d.copy(k)};g.updateDimensionsCache=function(b){d.extend(k,b)};g.getViewportWidth=function(){try{return k.viewport.width}catch(e){}}}});"use strict";n.when("A","jQuery").register("a-carousel-attributes",function(d,m){return function(g,b){var k={},e={},h={};d.extend(k,b);g.onChange=function(f,c){f=f.split(" ");for(var a=f.length,b;a--;)b=f[a],e[b]||(e[b]=[]),m.isFunction(c)&&-1===d.indexOfArray(e[b],c)&&e[b].push(c);return this};
g.unbind=function(b,c){e[b]&&c&&(c=d.indexOfArray(e[b],c),-1<c&&e[b].splice(c,1));return this};g.once=function(d,c){var a=function(){c.apply(null,arguments);g.unbind(d,a)};return g.onChange(d,a)};g.setAttr=function(b,c,a){var f=k[b];k[b]=c;if(!(a||h[b]||d.equals(c,f))){h[b]=!0;c=d.copy(c);f=d.copy(f);if(e[b]){a=d.copy(e[b]);for(var t=0,x=a.length;t<x;t++)a[t](c,f,g,b)}c={newValue:c,oldValue:f,carousel:g};d.trigger("a:carousel:change:"+b,c);k.name&&d.trigger("a:carousel:"+k.name+":change:"+b,c);h[b]=
!1}return this};g.getAttr=function(b){return d.copy(k[b])}}});"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(d,m,g,b,k,e,h,f){function c(a){var c=a.getAttr("set_size")<=a.getAttr("pageSize"),b=a.getAttr(e.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",
c||b?"hidden":"visible")}function a(a,c){return isNaN(a)?(n.log("`set_size` should be an integer: "+a,"WARN","aui:carousel:base"),c):parseInt(a,10)}function p(a){a.onChange("pageSize",function(c,b){var l=a.getAttr("firstVisibleItem"),d=Math.ceil(l/c);1===d&&1<l?d=2:1>d&&(d=1);a.setAttr("pageNumber",d);a.setAttr("totalPages",Math.ceil(a.getAttr("set_size")/c));l=a.getAttr("ajax");c>b&&(l&&l.prefetch_next_page?a.strategies.ajax.wantNextPage(a):a.strategies.ajax.wantCurrentPage(a))});a.onChange("set_size",
function(c,b){var l=a.getAttr("pageSize"),d=a.getAttr("fetchedItems");a.setAttr("totalPages",Math.ceil(c/l));c<b?(d.splice(c,Number.MAX_VALUE),a.setAttr("fetchedItems",d)):a.strategies.ajax.wantCurrentPage&&a.strategies.ajax.wantCurrentPage(a)});a.onChange("firstVisibleItem",function(c){a.dom.$container.find("input.a-carousel-firstvisibleitem").val(c)});a.onChange("pageNumber",function(c){0<c&&c<=a.getAttr("totalPages")&&a.setAttr("currentlyWrapping",!1)})}function t(c,l,f){if(0!==arguments.length){c.jquery||
(c=m(c));this.dom={$container:c,$viewport:c.hasClass("a-carousel-viewport")?c:c.find(".a-carousel-viewport").eq(0),$carousel:c.find(".a-carousel").eq(0)};!c.length||this.dom.$viewport.length&&this.dom.$carousel.length||h.logError("[AUI] CarouselContainer does not have CarouselContent.","ERROR",JSON.stringify({xpath:d.xpath(c.get(0)),cssSelector:d.cssSelector(c.get(0)),custody:d.attributionChain(c.get(0))}));var p={totalPages:1E3,pageNumber:1,pageSize:0,firstVisibleItem:1,initThreshold:100,maintain_state:!0,
px:0,auto_adjust_height:!0,ajax:{}};d.extend(p,f);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 r=parseInt(x.first().attr("aria-setsize"),10);d.isFiniteNumber(r)&&0<r?p.set_size=r:p.set_size=x.length}var t=[];this.dom.$carousel.children("li").each(function(a,c){t.push(m(c).hasClass("a-carousel-card-empty")?"":d.trim(c.innerHTML))});p.fetchedItems=
t;g(this);b(this,p);this.strategies=l;return this}}d.each(k,function(a,c){t.prototype["set"+c.charAt(0).toUpperCase()+c.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,c){this.getAttr("transitionPaused")||(this.strategies.transition.gotoPage(this,a,c),c&&c.accessibleSafe&&this.strategies.accessibility.gotoPage(this,c.animationDuration,c.animationSpeed))};k.gotoIndex=function(a,c){(!this.getAttr("transitionPaused")||c&&c.ignorePause)&&this.strategies.transition.gotoIndex(this,a,c)};k.gotoPixel=
function(a,c){this.getAttr("transitionPaused")||this.strategies.transition.gotoPixel(this,a,c)};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,c){c=c||{};c.carousel=this;d.trigger("a:carousel:"+a,c);var b=this.getAttr("name");b&&d.trigger("a:carousel:"+b+":"+a,c)};k.getStaticLoader=
function(){return this.getAttr(e.STATIC_LOADER_CSS_CLASS)?'\x3cdiv class\x3d"'+this.getAttr(e.STATIC_LOADER_CSS_CLASS)+'"\x3e\x3c/div\x3e':""};k.getEmptyCard=function(a,c){var b="a-carousel-card a-carousel-card-empty";this.getAttr(e.ELEMENT_CSS_CLASS)&&(b=b+" "+this.getAttr(e.ELEMENT_CSS_CLASS));return['\x3cli class\x3d"',b,'" aria-setsize\x3d"',c,'" aria-posinset\x3d"',a,'"\x3e',this.getStaticLoader(),"\x3c/li\x3e"].join("")};k.initTouchHandling=function(){var a=this,c=a.dom.$viewport;if(c.length&&
((d.capabilities.touch||d.capabilities.pointerPrefix)&&n.when("a-touch").execute(function(b){c.addClass("a-gesture a-gesture-horizontal").bind("pan-horizontal swipe-horizontal",function(){return!1});d.on("a:swipe-horizontal:"+c[0].id,function(c){if(!a.getAttr("transitionPaused")&&a.strategies.transition.onSwipe)a.strategies.transition.onSwipe(a,c)});if(!a.getAttr("disable_panning"))d.on("a:pan-horizontal:"+c[0].id,function(c){if(!a.getAttr("transitionPaused")&&a.strategies.transition.onPan)a.strategies.transition.onPan(a,
c)})}),f.isIE10||f.isIE11Plus)){var b=function(a){a.stopPropagation();a.preventDefault();document.body.removeEventListener("click",b,!0)};c.bind(d.action.start,function(a){c.bind("swipe-horizontal.a-ssiec pan-horizontal.a-ssiec",function(a){c.unbind(".a-ssiec");c.bind(d.action.end+".a-ssiec",function(a){c.unbind(".a-ssiec");document.body&&document.body.addEventListener("click",b,!0)})})})}};k.init=function(){var a=this,b=a.strategies,f=a.dom.$viewport[0];f&&!f.id&&(f.id="anonCarousel"+a.__id);a.dom.$carousel.contents().not(function(){return this.tagName&&
"li"===this.tagName.toLowerCase()}).remove();d.each(a.strategies,function(c){c.initAttrs&&d.each(c.initAttrs,function(c,b){var d=c;"function"===typeof c&&(d=c(a.getAttr(b)));a.setAttr(b,d)})});if(1>a.getAttr("set_size"))return b.ajax.init(a),!1;a.measure();d.each(a.strategies,function(c){c.init(a)});b=a.getAttr("pageSize");f=a.getAttr("set_size");a.setAttr("totalPages",Math.ceil(f/b));p(a);a.setAttr("isInTab",0<a.dom.$container.closest(".a-tab-content").length,!0);a.triggerEvent("init");d.each(a.strategies,
function(c){c.afterInit&&c.afterInit(a)});a.triggerEvent("afterInit");b=a.getAttr("firstVisibleItem");1===b&&a.getAttr("maintain_state")&&(b=parseInt(a.dom.$container.find("input.a-carousel-firstvisibleitem").val(),10),d.isFiniteNumber(b)&&0<b&&b<=f||(b=1));if(1<b){f=700;for(var t=Math.ceil(b/a.getAttr("pageSize")),h=2;h<t;h++)f+=700/h;a.gotoIndex(b,{animationDuration:f,easingFunction:"ease"})}c(this);a.onChange("pageSize set_size",function(){c(a)});b=a.dom.$container.find(".a-carousel-button");b.length&&
(f=b.eq(0).position().top+"px",b.css("top",f));var e=!1,g=function(c){c.preventDefault();c={startover:!0,accessibleSafe:"keydown"===c.type?!0:!1};5<a.getAttr("pageNumber")?c.animationDuration=1250:c.animationSpeed=5*a.getDimensions().viewport.width;a.gotoPage(1,c)};a.dom.$container.delegate(".a-carousel-goto-nextpage","click dblclick",function(c){e||(e=!0,c.preventDefault(),a.gotoNextPage({accessibleSafe:!0}),d.delay(function(){e=!1},5))}).delegate(".a-carousel-goto-prevpage","click dblclick",function(c){e||
(e=!0,c.preventDefault(),a.gotoPrevPage({accessibleSafe:!0}),d.delay(function(){e=!1},5))}).delegate(".a-carousel-goto-nextpage","keydown",function(c){if(c.which===d.constants.keycodes.ENTER||c.which===d.constants.keycodes.SPACE)c.preventDefault(),a.gotoNextPage({accessibleSafe:!0})}).delegate(".a-carousel-goto-prevpage","keydown",function(c){if(c.which===d.constants.keycodes.ENTER||c.which===d.constants.keycodes.SPACE)c.preventDefault(),a.gotoPrevPage({accessibleSafe:!0})}).delegate(".a-carousel-restart",
"keydown",function(a){a.which!==d.constants.keycodes.ENTER&&a.which!==d.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(d,m,g,b){function k(b){var c=b.getAttr("loaderHeight");c||((c=b.getAttr("maxHeight"))?(c=Math.min(.9*c,90),c=Math.max(c,120)):
c=90,b.setAttr("loaderHeight",c));return c}function e(d,c,a){g.call(this,d,c,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(b.STATIC_LOADER_CSS_CLASS)||this.dom.$carousel.children("li").children(".a-loading-static").css("height",k(this)+"px"),this.getAttr(b.NO_TRANSITION)||this.initTouchHandling(),!0):!1},this}var h;e.prototype=new g;e.prototype.constructor=e;e.prototype.getStaticLoader=function(){return this.getAttr(b.STATIC_LOADER_CSS_CLASS)?'\x3cdiv class\x3d"'+this.getAttr(b.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 e});"use strict";n.when("A","jQuery","a-carousel-base","a-carousel-constants").register("a-carousel-desktop",function(d,m,g,b){function k(d){var c=d.getAttr("set_size")<=d.getAttr("pageSize"),a=d.getAttr(b.NO_TRANSITION);d.dom.$container.find(".a-carousel-pagination").css("visibility",c||a?"hidden":"visible")}function e(d,c,a){g.call(this,d,c,a);if(0!==arguments.length){var f=this;f.getAttr("circular")===h&&this.setAttr("circular",!0);f.getAttr("hide_off_screen")===h&&this.setAttr("hide_off_screen",
!0);f.onChange("totalPages",function(a){f.dom.$container.find(".a-carousel-page-max").html(a);a<f.getAttr("pageNumber")&&f.gotoPage(a)});f.onChange("pageNumber",function(a,c){c=f.dom.$container;var b=c.find(".a-carousel-restart-container");1<a?b.show():b.hide();c.find(".a-carousel-page-current").html(a)});f.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(b.NO_TRANSITION)||a.initTouchHandling(),!0):!1};return f}}var h;e.prototype=new g;return e.prototype.constructor=e});"use strict";n.when("A","a-carousel-desktop","a-carousel-mobile").register("a-carousel-classes",function(d,m,g){return{desktop:m,mobile:g,"default":d.capabilities.mobile||d.capabilities.tablet?"mobile":"desktop"}});"use strict";n.when("A","jQuery","p-detect","a-carousel-constants").register("a-carousel-stretchygoodness",function(d,m,g,b){function k(a,c,b,f){a.getAttr("show_partial_next")&&
!a.getAttr("force_minimum_gutter_width")&&(c-=b/10);a=a.getAttr("minimum_gutter_width");var l=0,p=!0;for(c-=a;0<c;)l++,c=f&&p?c-b:c-(b+a),p=!1;0>c&&l--;return d.isFiniteNumber(l)&&0<l?l:1}function e(a,c,b,f,l,e,h){if(a.getAttr("force_minimum_gutter_width")&&a.getAttr("show_partial_next"))return l;"stretch"===a.getAttr("single_page_align")&&f>e&&(f=e);c-=b*f;a.getAttr("show_partial_next")?(a=c-l*(f+1),h&&(a+=l),a/=b,c-=b*(.5<a?.5:a)):h&&(c+=l);b=Math.ceil(c/(h?f:f+1));if(!d.isFiniteNumber(b)||b<l)b=
l;return b}function h(a){if(a.getAttr("auto_adjust_height"))if(a.getAttr("animating"))a.once("animating",function(){h(a)});else{var c=a.getAttr("maxHeight"),b=a.getDimensions();c&&d.isFiniteNumber(c)||(c=1);var f=c,l=a.getAttr("pageSize"),e=l*(a.getAttr("pageNumber")-1);l=e+l-1;b=b.items;var g=b.length,k;for(a.getAttr("show_partial_next")&&l++;e<=l&&e<g;e++)(k=b[e])&&k.outerHeight>f&&(f=b[e].outerHeight||b[e].height);f>c&&(a.updateDimensionsCache({viewport:{height:f,outerHeight:f}}),a.setAttr("maxHeight",
f),1===c?a.dom.$viewport.height(f):d.animate(a.dom.$viewport,{height:f},a.getAttr("height_animation_speed"),"linear"))}else a.dom.$viewport.css("height","")}function f(a){a.onChange("pageNumber",function(){a.getAttr("hide_off_screen")&&a.dom.$carousel.children("li").css("visibility","")});a.onChange("pageSize",function(c,b){c>b&&h(a)});a.onChange("loading",function(c){c||h(a)});a.onChange("firstVisibleItem",function(){h(a)});a.onChange("animating",function(c){if(!c&&a.getAttr("hide_off_screen")){var b=
a.getAttr("firstVisibleItem")-1,d=b+a.getAttr("pageSize")-1;a.getAttr("show_partial_next")&&d++;a.dom.$carousel.children("li").each(function(a,c){a=a>=b&&a<=d;m(c).css("visibility",a?"":"hidden")})}});a.onChange("single_page_align minimum_gutter_width",function(){c(a)});a.onChange("minimum_gutter_width",function(){c(a)})}function c(a){var c=a.getDimensions(),b=c.viewport.width;c=c.getFirstCardWidth();var f=a.getAttr("minimum_gutter_width"),l=a.getAttr("set_size"),h=a.getAttr("first_item_flush_left"),
g=k(a,b,c,h),m=e(a,b,c,g,f,l,h);a.setAttr("currentGutter",m);a.setAttr("pageSize",g);var w=a.dom.$carousel,n=w.children("li");f=n.length;var u=a.getAttr("totalPages"),A=a.getAttr("pageNumber"),C=a.getAttr("firstVisibleItem"),B=(A-1)*g+1;A>u?(C=(u-1)*g+1,a.setAttr("pageNumber",u),a.setAttr("firstVisibleItem",C)):C!==B&&(u=Math.ceil(C/g),C=(u-1)*g+1,a.setAttr("pageNumber",u),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=c+"px",z;n.each(function(a,c){z=!H||a>=F&&a<=G;c.style[d.capabilities.rtl?"marginRight":"marginLeft"]=h&&0===a?0:I;c.style.visibility=z?"":"hidden";c.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)),u=(f-1)*D+m):(m=D=n.first().outerWidth(!0),u=f*D);g>=l?(u=b,A=a.getAttr("single_page_align"),w.toggleClass("a-text-right","right"===A),w.toggleClass("a-text-center","center"===A),"center"===A&&n.first().css("margin-left",
0)):w.removeClass("a-text-right a-text-center");u=g>=l?b:u;w.css("width",u+"px");b={carousel:{width:u,outerWidth:w.outerWidth()},items:[]};for(l=0;l<f;l++)b.items.push({width:c,outerWidth:0===l?m:D});a.updateDimensionsCache(b);a.gotoIndex(C,{animationDuration:0,ignorePause:!0});a.triggerEvent("repaint")}return{repaint:c,init:function(a){var e=a.getAttr("minimum_gutter_width");d.isFiniteNumber(e)||(e=15,a.setAttr("minimum_gutter_width",e));a.setAttr("currentGutter",e);e=a.getAttr("height_animation_speed");
d.isFiniteNumber(e)||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"));c(a);a.getAttr(b.NO_TRANSITION)||h(a);e=a.getDimensions();a.dom.$container.find(".a-carousel-left, .a-carousel-right, .a-carousel-viewport").css("height",Math.max(e.viewport.height,e.items[0]?e.items[0].height:0)+"px");e=a.getAttr("firstVisibleItem");1<e&&(a.setAttr("firstVisibleItem",e),e=Math.ceil(e/a.getAttr("pageSize")),
a.gotoPage(e));f(a)},resize:function(a,b){b.viewport&&void 0!==b.viewport.width&&c(a)}}});"use strict";n.when("A","jQuery","p-detect","a-carousel-utils").register("a-carousel-display-swap",function(d,m,g,b){function k(b){if(b.getAttr("auto_adjust_height")){var c=b.getAttr("maxHeight");c&&d.isFiniteNumber(c)||(c=1);var a=c;b.dom.$carousel.children("li").not(".a-carousel-card-empty").each(function(c,b){c=m(b).outerHeight();a=Math.max(c,a)});a>c&&(b.setAttr("maxHeight",a),g.capabilities.transition?1===
c?b.dom.$viewport.height(a):d.animate(b.dom.$viewport,{height:a},b.getAttr("height_animation_speed"),"linear"):b.dom.$viewport.height(a),b.updateDimensionsCache({viewport:{height:a,outerHeight:a}}))}else b.dom.$viewport.css("height","")}function e(f){f.onChange("animating",function(c){c||k(f)});f.onChange("loading",function(c){c||k(f)});f.onChange("pageSize",function(c,a){f.dom.$carousel.children("li").slice(c).remove();if(c>a){a=f.getAttr("set_size");var d=f.getDimensions().getFirstCardWidth(),e=
f.getAttr("currentGutter"),h=f.getAttr("fetchedItems"),l=f.getAttr("firstVisibleItem")-1,g=f.dom.$carousel.children("li"),v=document.createDocumentFragment();if(m.isArray(h)){for(var q=g.length;q<c;q++){var w=q+l;g=m(['\x3cli class\x3d"a-carousel-card a-carousel-card-empty" aria-setsize\x3d"',a,'" aria-posinset\x3d"',w+1,'" style\x3d"width:',d,"px; margin-left:",e,'px;"\x3e',f.getStaticLoader()].join(""));h[w]&&b.addElementToDom(g,b.getElementFromItem(h[w]));w>=a&&g.removeClass("a-carousel-card-empty");
v.appendChild(g[0])}f.dom.$carousel.append(v)}k(f)}});f.onChange("set_size",function(c,a){var b=f.getAttr("pageNumber"),e=f.getAttr("totalPages"),g=f.dom.$carousel.children("li");b===e&&c>a&&(g.length&&f.dom.$carousel.children("li").each(function(a,c){d.trim(c.innerHTML)||(c.className+=" a-carousel-card-empty",c.innerHTML=f.getStaticLoader())}),0===a&&h(f))});f.onChange("single_page_align minimum_gutter_width",function(){h(f)});f.onChange("minimum_gutter_width",function(){h(f)})}function h(b){var c=
b.getDimensions(),a=c.viewport.width,f=c.getFirstCardWidth(),e=b.getAttr("minimum_gutter_width");c=b.getAttr("set_size");var h=b.getAttr("minimum_gutter_width");b.getAttr("set_size");h=Math.max(Math.floor(a/(f+h)),1);h=d.isFiniteNumber(h)?h:1;var l=h;"stretch"===b.getAttr("single_page_align")&&l>c&&(l=c);l=Math.ceil((a-f*l)/(l+1));d.isFiniteNumber(l)||(l=e);var g=l;b.setAttr("currentGutter",g);b.setAttr("pageSize",h);l=b.dom.$carousel;var k=l.children("li");e=k.length;f+=g;var m=e*f,w=Math.min(h,
c);b.dom.$carousel.children("li").slice(w).remove();k.css("margin-left",g+"px");h>=c?(m=a,a=b.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:[]};e--;)a.items.push({outerWidth:f});b.updateDimensionsCache(a);b.triggerEvent("repaint")}return{repaint:h,init:function(b){var c=b.getAttr("minimum_gutter_width");
c||(c=15,b.setAttr("minimum_gutter_width",c));b.setAttr("currentGutter",c);c=b.getAttr("height_animation_speed");d.isFiniteNumber(c)||b.setAttr("height_animation_speed",200);e(b);h(b);c=b.getDimensions();b.dom.$container.find(".a-carousel-left, .a-carousel-right, .a-carousel-viewport").css("height",Math.max(c.viewport.height,c.items[0]?c.items[0].height:0)+"px");c=b.getAttr("firstVisibleItem");1<c&&(b.setAttr("firstVisibleItem",c),c=Math.ceil(c/b.getAttr("pageSize")),b.gotoPage(c))},resize:function(b,
c){c.viewport&&void 0!==c.viewport.width&&h(b)}}});"use strict";n.when("A","jQuery").register("a-carousel-display-single",function(d,m){function g(b){if(b.getAttr("auto_adjust_height"))if(b.getAttr("animating"))b.once("animating",function(){g(b)});else b.dom.$viewport.css("height","auto"),d.delay(function(){b.dom.$viewport.height(b.dom.$viewport.height())},0);else b.dom.$viewport.css("height","")}function b(b,d){var c=b.dom.$carousel.children("li"),a=b.getAttr("firstVisibleItem")-1;b=b.getAttr("show_partial_next")?
2:1;a=c.slice(a,a+b);c.not(a).css("visibility","hidden");d&&a.css("visibility","")}function k(d){d.getAttr("fixed_height")||(d.dom.$viewport.delegate("img","load",function(){g(d)}),d.onChange("loading",function(b){b||g(d)}),d.onChange("pageNumber",function(){d.getAttr("hide_off_screen")&&d.dom.$carousel.children("li").css("visibility","")}),d.onChange("animating",function(f){!f&&d.getAttr("hide_off_screen")&&b(d)}),d.onChange("minimum_gutter_width",function(){e(d)}))}function e(d){var f=d.getDimensions(),
c=f.viewport.width,a=d.getAttr("show_partial_next"),e=d.getAttr("minimum_gutter_width"),g=d.getAttr("set_size"),h=d.dom.$carousel.children("li");c-=2*e;a&&(c-=e+f.viewport.width/3);h.css({width:c+"px",margin:"0 "+e+"px"});f=c+2*e;a=f*g;d.dom.$carousel.width(a);for(a={carousel:{width:a},items:[]};g--;)a.items[g]={width:c,outerWidth:f};d.updateDimensionsCache(a);d.getAttr("hide_off_screen")&&b(d,!0);d.gotoIndex(d.getAttr("firstVisibleItem"),{animationDuration:0,ignorePause:!0});d.triggerEvent("repaint")}
return{repaint:e,init:function(b){var f=b.getAttr("minimum_gutter_width");b.setAttr("minimum_gutter_width",d.isFiniteNumber(f)?f:14);b.setAttr("show_partial_next",!!b.getAttr("show_partial_next"));b.setAttr("pageSize",1);b.setAttr("pageSize",1);f=b.getAttr("fixed_height");d.isFiniteNumber(f)?b.dom.$viewport.height(f):b.setAttr("fixed_height",!1);b.dom.$carousel.children("li").css("visibility","visible");k(b);this.repaint(b);g(b)},resize:function(b,d){d.viewport&&void 0!==d.viewport.width&&(this.repaint(b),
b.getAttr("fixed_height")||g(b))}}});"use strict";n.when("A","jQuery","a-carousel-constants").register("a-carousel-display-peekcircular",function(d,m,g){function b(b){return function(e){return d.isFiniteNumber(e)?e:b}}m={};m[g.PAGE_SIZE]=1;m[g.MIN_GUTTER]=b(14);m[g.PEEK_PERCENTAGE]=b(10);return{initAttrs:m,init:function(b){var d=this;b.onChange(g.PEEK_PERCENTAGE,function(e,f){d.repaint(b)});b.dom.$carousel.children("li").css("visibility","visible");d.repaint(b)},repaint:function(b){var e=b.getAttr(g.MIN_GUTTER),
h=b.getAttr(g.SET_SIZE),f=b.getAttr(g.PEEK_PERCENTAGE),c=b.getDimensions().viewport.width,a=b.dom.$carousel,p=a.children("li");f=f/100*c;var t=c-2*f-e,k=t+2*e;c=k*h;a.width(c);p.css({width:t+"px","margin-left":e+"px","margin-right":e+"px"});b.updateDimensionsCache({carousel:{width:c},items:d.map(d.range(h),function(){return{width:t,outerWidth:k}})});b.setAttr(g.PEEK_WIDTH,f,!1);b.triggerEvent("repaint")},resize:function(b,d){d.viewport&&d.viewport.width!==z&&this.repaint(b)}}});"use strict";n.when("A").register("a-carousel-display-variablewidth",
function(d){return{init:d.constants.NOOP,resize:d.constants.NOOP,repaint:d.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(d,m,g,b,k){return{swap:m,single:g,peekCircular:b,stretchyGoodness:d,variableWidth:k,"default":"stretchyGoodness"}});"use strict";n.when("A","jQuery","a-carousel-utils").register("a-carousel-transition-swap",
function(d,m,g){function b(b,c){var a=b.getAttr("preloadedImages");a||(a=[]);for(var f=[],e=c.length-1;0<=e;e--)if(c[e]&&!a[e]){var h=g.getElementFromItem(c[e]);h&&m("img",h).each(function(){f.push(this.src)});a[e]=!0}d.preload(f);b.setAttr("preloadedImages",a)}function k(b){return"number"===typeof b?b?0>b?-1:1:isNaN(b)?NaN:0:NaN}function e(b,c){b.getAttr("pageNumber");b.getAttr("pageSize");var a=b.getAttr("firstVisibleItem"),e=b.getAttr("delay_time"),f=b.dom.$carousel.children("li"),h=f.filter(".a-carousel-card-empty");
h.length&&b.setAttr("loading",!0);h.each(function(l,p){var r=m(p);p=f.index(p)+a-1;var k=c[p];k&&d.delay(function(){g.addElementToDom(r,g.getElementFromItem(k));l===h.length-1&&b.setAttr("loading",!1)},0+e)})}function h(b,c,a){a=a||{};var e=b.getAttr("pageNumber");if(c!==e){var f=b.getAttr("set_size"),h=b.getAttr("totalPages"),l=b.getAttr("circular"),r=b.getAttr("pageSize"),m=a.delayTime||b.getAttr("delay_time"),q=k(a.direction)||NaN;!l&&1>c?c=1:!l&&c>h?c=h:l&&1>c?c=h:l&&c>h&&(c=1);q||(q=e<c?1:-1);
a.startover&&(q=m=1);var w=r*(c-1),n=1===q?0:r-1;b.setAttr("pageNumber",c);b.setAttr("firstVisibleItem",w+1);b.setAttr("animating",!0);var u=d.interval(function(){var a=w+n;if(u!==b.getAttr("responsiveTimerId"))clearInterval(u);else if(-1===q&&0>n||1===q&&n>=r)b.setAttr("responsiveTimerId",z),b.setAttr("animating",!1);else{var c=b.dom.$carousel.children("li").eq(n),d=b.getAttr("fetchedItems")[a];d?g.addElementToDom(c,g.getElementFromItem(d)):a<f?c.html(b.getStaticLoader()).addClass("a-carousel-card-empty"):
c.empty().removeClass("a-carousel-card-empty");n+=q}},m);b.setAttr("responsiveTimerId",u)}}return{init:function(f){var c=f.getAttr("delay_time");d.isFiniteNumber(c)||f.setAttr("delay_time",30);f.onChange("responsiveTimerId",function(a,c){c!==a&&clearInterval(c)});f.onChange("fetchedItems",function(a,c){e(f,a);b(f,a)});b(f,f.getAttr("fetchedItems"))},gotoIndex:function(b,c,a){a=a||{};var d=b.getAttr("pageSize");h(b,Math.ceil(c/d),a)},gotoNextPage:function(b,c){c=c||{};var a=b.getAttr("pageNumber");
c.direction=-1;h(b,++a,c)},gotoPrevPage:function(b,c){c=c||{};var a=b.getAttr("pageNumber");c.direction=1;h(b,--a,c)},gotoPage:h}});"use strict";n.when("A","jQuery","a-carousel-utils","a-carousel-constants").register("a-carousel-transition-slide",function(d,m,g,b){function k(c){var a=c.dom.$carousel.children("li").length,d=a+1,e=c.getAttr(b.SET_SIZE),f=e-a;if(0<f){f=d+f-1;for(var l=[];d<=f;d++)l.push(c.getEmptyCard(d,e));c.dom.$carousel.append(l.join(""));c.setAttr(b.LOADING,!0);f=c.getAttr(b.FETCHED_ITEMS);
l=c.dom.$carousel.children("li");var h;for(d=a;d<e;d++)if(h=f[d]){var k=g.getElementFromItem(h);a=l.eq(d);g.addElementToDom(a,k);f[d]=g.clearElementFromItem(h)}c.strategies.display.repaint&&c.strategies.display.repaint(c);c.setAttr(b.FETCHED_ITEMS,f,!0);c.setAttr(b.LOADING,!1)}}function e(c,a,f){if(c.getAttr(b.ANIMATING))c.once(b.ANIMATING,function(){e(c,a,f)});else{var h=c.getDimensions().items,p=[];if(!f||a.length>=f.length){c.setAttr(b.LOADING,!0);for(var l=c.dom.$carousel.children("li"),r,k,m=
a.length;m--;)if(k=a[m],null===k&&p.push(m),k&&!d.equals(k,f[m])&&!0!==k&&!0!==k.content){var n=g.getElementFromItem(k);r=l.eq(m);r.length&&(g.addElementToDom(r,n),h[m]={width:r.outerWidth(),outerWidth:r.outerWidth(!0),height:r.outerHeight(),outerHeight:r.outerHeight(!0)},a[m]=g.clearElementFromItem(k))}p.length&&(d.each(p,function(c){l.eq(c).remove();a.splice(c,1)}),c.setAttr(b.SET_SIZE,c.getAttr(b.SET_SIZE)-p.length),c.triggerEvent("repaint"))}c.setAttr(b.FETCHED_ITEMS,a);c.updateDimensionsCache({items:h});
c.setAttr(b.LOADING,!1)}}var h=d.capabilities.touch?2E3:3E3,f=d.capabilities.rtl?-1:1;return{wrapToFirst:function(c){var a=c.getAttr(b.PAGE_SIZE),d=c.getDimensions().getFirstCardWidth(),e=this;c.gotoPixel(a*d*-1,{animationDuration:0,callback:function(){c.setAttr(b.CURRENTLY_WRAPPING,!1);e.gotoPage(c,1)}})},wrapToLast:function(c){c.getAttr(b.PAGE_SIZE);var a=c.getAttr(b.TOTAL_PAGES),d=this,e=c.getDimensions().carousel.width;c.gotoPixel(e,{animationDuration:0,callback:function(){c.setAttr(b.CURRENTLY_WRAPPING,
!1);d.gotoPage(c,a)}})},gotoPage:function(c,a,d){d=d||{};(void 0===d.animationDuration||0<d.animationDuration)&&!d.silent&&c.setAttr(b.ANIMATING,!0);var e=c.getAttr(b.TOTAL_PAGES);0<a&&a<=e&&c.setAttr(b.PAGE_NUMBER,a);var f=c.getAttr(b.CIRCULAR);!f&&1>a?(a=1,d.animationDuration=Math.pow(c.getAttr(b.ANIMATION_SPEED)*c.getAttr(b.SPRINGINESS))):!f&&a>e&&(a=e,d.animationDuration=Math.pow(c.getAttr(b.ANIMATION_SPEED),c.getAttr(b.SPRINGINESS)));this.gotoIndex(c,c.getAttr(b.PAGE_SIZE)*(a-1)+1,d)},gotoIndex:function(c,
a,e){e=e||{};(void 0===e.animationDuration||0<e.animationDuration)&&!e.silent&&c.setAttr(b.ANIMATING,!0);var f=c.getAttr(b.CIRCULAR)&&!c.getAttr(b.CURRENTLY_WRAPPING),g=e.callback,l=this,h=!1,k=c.getViewportWidth(),m=Math.ceil(a/c.getAttr(b.PAGE_SIZE));m!==c.getAttr(b.PAGE_NUMBER)&&0<m&&m<=c.getAttr(b.TOTAL_PAGES)&&c.setAttr(b.PAGE_NUMBER,m);c.setAttr(b.FIRST_VISIBLE_ITEM,a);if(1>a){if(f){h=-1*k;var p=function(){g&&g();l.wrapToLast(c)}}}else a>c.getAttr(b.SET_SIZE)?f&&(h=c.getAttr(b.CURRENT_PIXEL)+
k,p=function(){g&&g();l.wrapToFirst(c)}):h=c.getItemOffset(a);p?(c.setAttr(b.CURRENTLY_WRAPPING,!0),e.callback=p,e.easingFunction=e.easingFunction||c.getAttr(b.WRAP_EASING),e.animationSpeed=1.3*(d.isFiniteNumber(e.animationSpeed)?e.animationSpeed:c.getAttr(b.ANIMATION_SPEED))):e.callback=g;!1!==h&&this.gotoPixel(c,h,e)},gotoPixel:function(c,a,e){var f=c.getAttr(b.CURRENT_PIXEL);if(a!==f){e=e||{};var g=e.easingFunction||"ease-out",l=e.callback;c.getViewportWidth();if(void 0!==e.animationDuration)var h=
e.animationDuration;else h=d.isFiniteNumber(e.animationSpeed)?e.animationSpeed:c.getAttr(b.ANIMATION_SPEED),f=Math.abs(a-f),h=0===h?0:Math.floor(f/h*1E3);0<h&&!e.silent&&c.setAttr(b.ANIMATING,!0);if(d.isFiniteNumber(a)){f=0<h?function(){l&&l();c.getAttr(b.CURRENTLY_WRAPPING)||c.setAttr(b.ANIMATING,d.isAnimated(c.dom.$carousel),e.silent)}:l;var k=d.capabilities.rtl?1:-1;c.setAttr(b.CURRENT_PIXEL,a);d.animate(c.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(c,a){var d=c.getAttr(b.PAGE_NUMBER);this.gotoPage(c,++d,a)},gotoPrevPage:function(c,a){var d=c.getAttr(b.PAGE_NUMBER);this.gotoPage(c,--d,a)},onSwipe:function(c,a){if(!c.getAttr(b.CURRENTLY_WRAPPING)){var e=c.getAttr(b.FIRST_VISIBLE_ITEM),g=c.getAttr(b.PAGE_SIZE),h=c.getAttr(b.PAGE_NUMBER),l=0>f*a.velocityX,k=e;l&&h<c.getAttr(b.TOTAL_PAGES)?k=e+g:!l&&1<h&&(k=e-g);g=c.getAttr(b.CURRENT_PIXEL);h=c.getItemOffset(k);a=Math.abs(1E3*(l?g-h:g+h)/a.velocityX);a=Math.max(a,
300);a=Math.min(a,1.2*d.viewport().width);a={animationDuration:a,easingFunction:c.getAttr(b.TOUCH_EASING)};k!==e||c.getAttr("circular")?l?c.gotoNextPage(a):c.gotoPrevPage(a):(a.animationSpeed=.95*d.viewport().width,delete a.animationDuration,c.gotoIndex(k,a))}},onPan:function(c,a){if(!c.getAttr(b.CURRENTLY_WRAPPING)){c.setAttr(b.ANIMATING,!0);var e=c.getItemOffset(c.getAttr(b.FIRST_VISIBLE_ITEM)),g=e-f*a.touchDeltaX,h=c.getAttr(b.CIRCULAR),l=c.getAttr(b.PAGE_NUMBER),k=c.getAttr(b.TOTAL_PAGES);a.ended?
(e={easingFunction:c.getAttr(b.TOUCH_EASING),animationSpeed:.95*d.viewport().width,silent:!0},a=f*a.touchDeltaX,g=Math.abs(a)<.4*c.getViewportWidth(),!h&&(0>a&&k===l||0<a&&1===l)||g?c.gotoPage(l,e):0>a?c.gotoNextPage(e):c.gotoPrevPage(e)):(!h&&(h=c.getAttr(b.SPRINGINESS),0>g&&0<a.touchDeltaX||l===k&&0>a.touchDeltaX)&&(l=Math.pow(Math.abs(a.touchDeltaX),h),g=0>=g?-1*l:e+l),c.gotoPixel(g,{easingFunction:c.getAttr(b.TOUCH_EASING),animationDuration:0,silent:!0}))}},init:function(c){var a=c.getAttr(b.ANIMATION_SPEED);
d.isFiniteNumber(a)||c.setAttr(b.ANIMATION_SPEED,h);void 0===c.getAttr(b.WRAP_EASING)&&c.setAttr(b.WRAP_EASING,"linear");k(c);c.onChange(b.FETCHED_ITEMS,function(a,b){e(c,a,b)});c.onChange(b.SET_SIZE,function(a,b){a>b&&k(c)})}}});"use strict";n.when("A","a-carousel-utils","a-carousel-circular-utils","a-carousel-constants").register("a-carousel-transition-slidecircular",function(d,m,g,b){function k(a){var c=a.dom.$carousel.children("li").length,e=a.getAttr(b.SET_SIZE),l=e-c,g=f(a,c);0<l&&(c+=1,l=d.map(d.range(c,
c+l),function(c){return a.getEmptyCard(c,e)}),g.after(l.join("")),a.measure("items"))}function e(d,e){var f=d.getAttr(b.SET_SIZE);if(2<d.getAttr(b.SET_SIZE)){var g=a(d,d.getAttr(b.FIRST_VISIBLE_ITEM)),u=Math.round(d.getAttr(b.SET_SIZE)/2);f=h(u,g,f);0!==f.quantity&&(l(d,f.direction,f.quantity),g=f.direction===v.CLOCKWISE?g-f.quantity:g+f.quantity,e.gotoPixel(d,c(d,g),{animationDuration:0}))}}function h(a,c,b){var d={};a===c?a=c=0:a>c?(c=a-c,a=b-c):(a=c-a,c=b-a);d.direction=a<=c?v.CLOCKWISE:v.COUNTER_CLOCKWISE;
d.quantity=Math.min(a,c);return d}function f(c,b){return c.dom.$carousel.children("li").eq(a(c,b)-1)}function c(a,c){var d=Math.floor(a.getAttr(b.PEEK_WIDTH)||0);return a.getItemOffset(c)-d}function a(a,c){c=c||1;var d=a.getAttr(b.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX);a=a.getAttr(b.SET_SIZE);return g.relativeIndexFromIndex(c,d,a)}function p(c,e,l){if(c.getAttr(b.ANIMATING))c.once(b.ANIMATING,function(){p(c,e,l)});else{var g=c.getDimensions().items,h=Math.min(e.length,c.getAttr(b.SET_SIZE));if(!l||
e.length>=l.length)c.setAttr(b.LOADING,!0),d.each(d.range(h),function(b){var h=b+1,k=e[b],B=f(c,h),u=k&&!(!0===k||!0===k.content);k&&!d.equals(k,l[b])&&B.length&&u&&(h=a(c,h),g[h]={width:B.outerWidth(),outerWidth:B.outerWidth(!0),height:B.outerHeight(),outerHeight:B.outerHeight(!0)},m.addElementToDom(B,m.getElementFromItem(k)),e[b]=m.clearElementFromItem(k))}),c.setAttr(b.LOADING,!1);c.setAttr(b.FETCHED_ITEMS,e);c.updateDimensionsCache({items:g})}}function t(a){var c={reached:!1,left:!1,right:!1};
if(!(2<a.getAttr(b.SET_SIZE))){var d=a.getAttr(b.PAGE_NUMBER);a=a.getAttr(b.SET_SIZE);1===d&&(c.reached=!0,c.left=!0);d===a&&(c.reached=!0,c.right=!0)}return c}function x(a,c,d){var e=t(a),f=a.getAttr(b.PAGE_NUMBER);e.reached&&e[c]?a.gotoPage(f):("right"===c?a.gotoNextPage:a.gotoPrevPage).call(a,d)}function l(a,c,d){var e=a.getAttr(b.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX)||1,f=a.getAttr(b.SET_SIZE),l=a.dom.$carousel.children("li"),h=a.dom.$carousel;c===v.CLOCKWISE?(g.rotateCW(h,l,d),e=g.firstCardIndexAfterRotate(d,
e,f)):(g.rotateCCW(a.dom.$carousel,a.dom.$carousel.children("li"),d),e=g.firstCardIndexAfterRotate(-1*d,e,f));a.setAttr(b.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX,e);d=d||1;c=c||v.CLOCKWISE;e=a.getDimensions().items;e=c===v.CLOCKWISE?g.rotateArrayCW(e,d):g.rotateArrayCCW(e,d);a.updateDimensionsCache({items:e})}function r(f,g,h,k,m){var B=m.callback,r=a(f,f.getAttr(b.FIRST_VISIBLE_ITEM)),u=f.getAttr(b.CURRENT_PIXEL)-c(f,r);d.sequence(function(a){l(f,g,k);a()},function(a){h.gotoPixel(f,c(f,g===v.CLOCKWISE?
r-k:r+k)+u,{animationDuration:0,callback:a})},function(a){m.callback=a;h.gotoPixel(f,c(f,r),m)},function(a){e(f,h);a()},function(a){B&&B();a()})()}var v={CLOCKWISE:1,COUNTER_CLOCKWISE:-1},q=d.capabilities.rtl?-1:1,w=d.capabilities.touch?2E3:3E3,y={};y[b.HIDE_OFF_SCREEN]=!1;y[b.ANIMATION_SPEED]=function(a){return function(c){return d.isFiniteNumber(c)?c:a}}(w);y[b.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX]=1;return{initAttrs:y,init:function(a){k(a);a.onChange(b.FETCHED_ITEMS,function(c,b){p(a,c,b);
a.strategies.display.repaint(a)});a.onChange(b.SET_SIZE,function(c,b){c>b&&k(a)});a.onChange(b.PEEK_WIDTH,function(c,d){c!==d&&(c=a.getAttr(b.FIRST_VISIBLE_ITEM),a.gotoIndex(c))})},afterInit:function(a){e(a,this);a.strategies.display.repaint(a);a.gotoPage(a.getAttr(b.PAGE_NUMBER))},gotoPage:function(a,c,d){d=d||{};var e=a.getAttr(b.TOTAL_PAGES);0<c&&c<=e&&(a.setAttr(b.PAGE_NUMBER,c),this.gotoIndex(a,a.getAttr(b.PAGE_SIZE)*(c-1)+1,d))},gotoIndex:function(d,e,f){var l=d.getAttr(b.SET_SIZE),g=a(d,d.getAttr(b.FIRST_VISIBLE_ITEM)),
k=a(d,e);g===k?this.gotoPixel(d,c(d,g),f):(2<d.getAttr(b.SET_SIZE)?(l=h(g,k,l),f.startover&&(5<l.quantity?f.animationDuration=1250:(delete f.animationDuration,f.animationSpeed=5*d.getDimensions().viewport.width)),r(d,l.direction,this,l.quantity,f)):this.gotoPixel(d,c(d,e),f),d.setAttr(b.FIRST_VISIBLE_ITEM,e))},gotoPixel:function(a,c,e){var f=a.getAttr(b.CURRENT_PIXEL);if(c!==f){d.isFiniteNumber(c)||n.error("Target pixel is not a finite number","a-carousel-transition-slide-circular","gotoPixel");e=
e||{};var l=e.easingFunction||"ease-out",g=e.callback;if(e.animationDuration!==z)var h=e.animationDuration;else h=d.isFiniteNumber(e.animationSpeed)?e.animationSpeed:a.getAttr(b.ANIMATION_SPEED),f=Math.abs(c-f),h=0===h?0:Math.floor(f/h*1E3);0<h&&(!e.silent&&a.setAttr(b.ANIMATING,!0),g=function(){e.callback&&e.callback();a.setAttr(b.ANIMATING,d.isAnimated(a.dom.$carousel),e.silent)});f=d.capabilities.rtl?v.CLOCKWISE:v.COUNTER_CLOCKWISE;a.setAttr(b.CURRENT_PIXEL,c);d.animate(a.dom.$carousel,{left:c*
f},h,l,g)}},gotoNextPage:function(a,c){var d=a.getAttr(b.PAGE_NUMBER);d=d===a.getAttr(b.TOTAL_PAGES)?1:d+1;this.gotoPage(a,d,c)},gotoPrevPage:function(a,c){var d=a.getAttr(b.PAGE_NUMBER);d=1===d?a.getAttr(b.TOTAL_PAGES):d-1;this.gotoPage(a,d,c)},onSwipe:function(e,f){var l=e.getAttr(b.CURRENT_PIXEL),g=e.getAttr(b.PAGE_SIZE),h=a(e,e.getAttr(b.FIRST_VISIBLE_ITEM)),k=0>q*f.velocityX;g=c(e,k?h+g:h-g);l=Math.abs(1E3*(k?l-g:l+g)/f.velocityX);k=1.2*d.viewport().width;x(e,0>q*f.touchDeltaX?"right":"left",
{animationDuration:Math.min(Math.max(l,300),k),easingFunction:e.getAttr(b.TOUCH_EASING)})},onPan:function(e,f){e.setAttr(b.ANIMATING,!0);var l=e.getAttr(b.PAGE_NUMBER),g=a(e,e.getAttr(b.FIRST_VISIBLE_ITEM));g=c(e,g);g=t(e).reached?g-q*f.touchDeltaX*.4:g-q*f.touchDeltaX;f.ended?(g={easingFunction:e.getAttr(b.TOUCH_EASING),animationSpeed:.95*d.viewport().width,silent:!0},Math.abs(f.touchDeltaX)>=.4*e.getViewportWidth()?x(e,0>q*f.touchDeltaX?"right":"left",g):e.gotoPage(l,g)):e.gotoPixel(g,{easingFunction:e.getAttr(b.TOUCH_EASING),
animationDuration:0,silent:!0})}}});"use strict";n.when("A","a-carousel-utils","a-carousel-constants").register("a-carousel-transition-freescroll",function(d,m,g){function b(a){p[a.__id]||(p[a.__id]=new t(a));return p[a.__id]}function k(c){for(var b=c.countItems(),e=[],f=0;f<b;f++)e.push(!0);c.setAttr(g.FETCHED_ITEMS,e);c.getAttr("auto_adjust_height_freescroll")&&(d.$(c.getViewport()).css("height","auto"),a(c),d.$(c.getViewport()).css("overflow-y","hidden"))}function e(a){var c=a.countItems(),b=a.getAttr(g.SET_SIZE),
d=[];if(b>c){for(var e=0;e<b-c;e++){var f=c+e+1;d.push(a.getEmptyCard(f,b))}a.appendItems(d);a.shouldRepaint()&&a.repaint()}}function h(c,b,e){if(!e||b.length>=e.length)for(var f=c.getItems(),l=b.length,h;l--;)(h=b[l])&&!d.equals(h,e[l])&&!0!==h&&!0!==h.content&&c.hasItem(f,l)&&(b[l]=c.insertFetchedItem(h,f,l));c.setAttr(g.FETCHED_ITEMS,b);a(c)}function f(a){a.attachScrollListener(function(){var b=a.hasEmptyCard();var d=a.getAttr("auto_adjust_height_freescroll"),e=a.getAttr("startIndexForHeightCheck"),
f=a.countItems();b||d&&e<f?b=!0:(a.detachScrollListener(),b=!1);b&&a.throttle("detect",c)})}function c(b){var d="undefined"!==typeof b.getAttr(g.LOADING_THRESHOLD_PIXELS)?b.getAttr(g.LOADING_THRESHOLD_PIXELS):400,e=b.measureWidth(),f=b.getFirstEmptyDetails(),h=b.getViewport();-1!==f.index&&f.left<e+d?b.wantNext(f.index,"undefined"!==typeof b.getAttr(g.NEXT_REQUEST_SIZE)?b.getAttr(g.NEXT_REQUEST_SIZE):10):b.getAttr("currentScrollPosition")===h.scrollLeft()?a(b):b.throttle("detect",c);b.setAttr("currentScrollPosition",
h.scrollLeft())}function a(a){if(a.getAttr("auto_adjust_height_freescroll")){var c=a.getAttr("lastScrollPosition"),b=a.getViewport();if(c<b.scrollLeft()){c=a.getAttr("startIndexForHeightCheck");var e=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);c<=k;){if(f[c].getBoundingClientRect().left<=h)e<d.$(f[c]).outerHeight()&&(e=d.$(f[c]).outerHeight());else break;c+=1}e!=b.outerHeight()&&d.animate(b,{height:e},a.getAttr(g.HEIGHT_ANIMATION_SPEED),
"linear");a.setAttr("maxHeight",e);a.setAttr("startIndexForHeightCheck",c)}a.setAttr("lastScrollPosition",b.scrollLeft())}}var p={},t=function(a){this.carousel=a};d.extend(t.prototype,{setAttr:function(a,c){return this.carousel.setAttr(a,c)},getAttr:function(a){return this.carousel.getAttr(a)},onChange:function(a,c){this.carousel.onChange(a,c)},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,c){return this.carousel.getEmptyCard(a,c)},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,c){return 0<a.eq(c).length},insertFetchedItem:function(a,c,b){m.addElementToDom(c.eq(b),m.getElementFromItem(a));return m.clearElementFromItem(a)},attachScrollListener:function(a){this.carousel.dom.$carousel.bind(d.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,c){this.carousel.strategies.ajax.want(this.carousel,a,c)},getDimensions:function(){return this.carousel.getDimensions()},throttle:function(a,c){var b=this;clearTimeout(b[a]);b[a]=setTimeout(function(){c(b)},100)},shouldRepaint:function(){return this.carousel.strategies.display.repaint},repaint:function(){this.carousel.strategies.display.repaint(this.carousel)},autorotate:function(a){this.carousel.dom.$viewport.bind("focusin",
function(a){var c=a.currentTarget;a=a.target.getBoundingClientRect();var b=c.getBoundingClientRect();a.left<b.left?c.scrollLeft-=b.left-a.left:a.right>b.right&&(c.scrollLeft+=a.right-b.right)})}});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:d.constants.NOOP,gotoNextpage:d.constants.NOOP,gotoPrevPage:d.constants.NOOP,
gotoPage:d.constants.NOOP,initAttrs:n,init:function(a){var l=b(a);l.showItems();l.autorotate();k(l);e(l);f(l);l.onChange(g.FETCHED_ITEMS,function(a,b){h(l,a,b);c(l)});d.on.resize(function(){c(l)})},afterInit:function(a){var e=b(a);d.delay(function(){e.setAttr("ajaxLock",!1);c(e)})},prepareFetchedItems:k,addEmptyCards:e,handleItemChanges:h,detectEmptyCardsLoadingThreshold:c,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(d,m,g,b,k,e,h){m={};m[h.NO_TRANSITION]=!0;m[h.HIDE_OFF_SCREEN]=!1;m[h.AUTO_ADJUST_HEIGHT]=!1;return{slideHorizontal:g,swap:b,freeScroll:k,slideCircular:e,none:{gotoIndex:d.constants.NOOP,gotoNextPage:d.constants.NOOP,gotoPrevPage:d.constants.NOOP,gotoPage:d.constants.NOOP,
initAttrs:m,init:function(b){b.dom.$carousel.children("li").css("visibility","").attr("aria-hidden","false")}},"default":"slideHorizontal"}});"use strict";n.when("A").register("a-carousel-ajax-standard",function(d){function m(e,g,f,c){e.triggerEvent("beforeAjax",{url:g,params:f});d.get(g,{cache:!1,success:function(a){a=b(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{f.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"),e.setAttr("set_size",a[0].setSize?a[0].setSize:a.length));for(var c=e.getAttr("fetchedItems"),h=e.getAttr("ajax"),k=[],l,m=a.length;m--;)l=a[m],null===l&&k.push(m),l&&(l.content||""===l.content?l.content=d.trim(l.content):l=d.trim(l)),c[f.offset+m]=l;h.remove_nulls&&h.id_list&&k.length&&(d.each(k,function(a){h.id_list.splice(f.offset+a,1)}),e.setAttr("ajax",
h));f.needSetSize&&e.init();e.setAttr("fetchedItems",c);e.setAttr("ajaxLock",!1);f.needSetSize&&e.getAttr("pageSize")>=c.length&&e.strategies.ajax.wantCurrentPage(e);e.triggerEvent("ajaxSuccess",{url:g,params:f})}},params:f,headers:c})}function g(b){var d=b.getAttr("requestTimer");d&&(clearTimeout(d),b.setAttr("requestTimer",null))}function b(b,g){return d.isArray(b)?b:b!==k&&null!==b&&!d.objectIsEmpty(b)&&b.hasOwnProperty("data")&&d.isArray(b.data)?b.data:null}var k;return{getItems:function(b,g,
f,c){var a=b.getAttr("ajax");b.setAttr("requestTimer",d.delay(m,a.fetch_delay,b,g,f,c))},wantNextPage:function(b){g(b);if(b.getAttr("ajax").prefetch_next_page){var d=b.getAttr("pageSize"),e=2*d;b.getAttr("show_partial_next")&&e++;this.want(b,(b.getAttr("pageNumber")-1)*d,e)}else this.wantCurrentPage(b)},wantPrevPage:function(b){g(b);if(b.getAttr("ajax").prefetch_next_page){var d=b.getAttr("pageSize"),e=2*d;b.getAttr("show_partial_next")&&e++;this.want(b,(b.getAttr("pageNumber")-2)*d,e)}else this.wantCurrentPage(b)},
wantCurrentPage:function(b){g(b);var d=b.getAttr("pageSize"),e=b.getAttr("show_partial_next")?d+1:d;this.want(b,(b.getAttr("pageNumber")-1)*d,e)},want:function(b,d,f){if(!b.getAttr("ajaxLock")){g(b);var c=b.getAttr("ajax"),a=b.getAttr("set_size");if(c.url){var e=b.getAttr("fetchedItems"),h=c.id_list;h||(h=[]);var k=-1<d?d:0;d=d+f-1;var l=c.params||{},m=c.headers||{},n=[],q=[];0===a&&(h.length&&(a=h),l.needSetSize="true",b.setAttr("ajaxLock",!0));for(-1===f&&a&&(d=a);k<=d&&k<a;)e[k]||((f=h[k])&&n.push(f),
q.push(k),e[k]=!1),k++;b.setAttr("fetchedItems",e,{silent:!0});l.count=q.length;l.offset=q[0]||0;0<n.length&&(l[c.id_param_name]=n.join(","));(0<q.length||l.needSetSize)&&this.getItems(b,c.url,l,m)}}},init:function(b){var e=b.getAttr("ajax");d.isFiniteNumber(e.fetch_delay)||(e.fetch_delay=500);e.id_param_name=e.id_param_name||"ids";e.prefetch_next_page=e.prefetch_next_page===k?!0:!!e.prefetch_next_page;b.setAttr("ajax",e);b.getAttr("set_size")||this.want(b,0,-1)},afterInit:function(b){b.strategies.ajax.wantCurrentPage(b);
b.onChange("pageNumber",function(d,e){d>e?b.strategies.ajax.wantNextPage(b):b.strategies.ajax.wantPrevPage(b)});b.onChange("loading",function(d){d||b.strategies.ajax.wantCurrentPage(b)})}}});"use strict";n.when("a-util").register("a-carousel-ajax-promise",function(d){function m(g,b){var k=g.getAttr("requestTimer");k&&clearTimeout(k);g.setAttr("requestTimer",d.delay(b,500))}return{getItems:function(g,b,k){m(g,function(){var e=g.getAttr("async_provider");e&&e(b,k).then(function(e){var f=g.getAttr("fetchedItems");
d.each(e,function(c,a){f[b[a]]=c});g.setAttr("fetchedItems",f)})})},wantNextPage:function(d){var b=d.getAttr("pageSize"),g=(d.getAttr("pageNumber")-1)*b;this.want(d,g,2*b)},wantPrevPage:function(d){var b=d.getAttr("pageSize"),g=(d.getAttr("pageNumber")-2)*b;this.want(d,g,2*b)},wantCurrentPage:function(d){var b=d.getAttr("pageSize"),g=(d.getAttr("pageNumber")-1)*b;this.want(d,g,b)},want:function(g,b,k){b=Math.max(0,b);k=Math.min(b+k,g.getAttr("set_size"));for(var e=g.getAttr("fetchedItems"),h=[];b<
k;b++)e[b]||(h.push(b),e[b]=!1);if(h.length){var f,c=g.getAttr("ajax").id_list;c&&(f=d.map(h,function(a){return c[a]}));g.setAttr("fetchedItems",e,{silent:!0});this.getItems(g,h,f)}},init:function(d){},afterInit:function(g){g.strategies.ajax.wantCurrentPage(g);g.onChange("async_provider",d.once(function(){g.strategies.ajax.wantCurrentPage(g)}));g.onChange("pageNumber",function(b,d){b>d?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(d,m,g){return{standard:m,promise:g,none:{wantNextPage:d.constants.NOOP,wantPrevPage:d.constants.NOOP,wantCurrentPage:d.constants.NOOP,want:d.constants.NOOP,init:d.constants.NOOP},"default":"standard"}});"use strict";n.when("A","a-carousel-constants").register("a-carousel-accessibility-standard-desktop",function(d,m){function g(a,c){var b=a.dom.$carousel,d=b.children("li"),e=a.getAttr(m.PAGE_SIZE),f=a.getAttr(m.FIRST_VISIBLE_ITEM),
g=f-1,h=a.getAttr(m.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX);if(a.getAttr(m.NO_TRANSITION))return d;if(d.length<=e)return b.children("li:not(:empty), li.a-carousel-card-empty");"slideCircular"===a.getAttr(m.TRANSITION_STRATEGY)&&(g=h-f-1,0===d.length%2&&--g);b=g=(g+2*d.length)%d.length;e=g+e;c&&("peekCircular"===a.getAttr(m.DISPLAY_STRATEGY)&&--b,"peekCircular"===a.getAttr(m.DISPLAY_STRATEGY)||a.getAttr(m.SHOW_PARTIAL_NEXT))&&(e+=1);return d.slice(Math.max(b,0),Math.min(e,d.length))}function b(a,
c,b,e){var f=function(){var b=g(a,!1);(c?b.first():b.last()).find("a, button, input, select, textarea, [tabindex]:not([tabindex\x3d'-1'])").not(":disabled").first().focus();d.delay(function(){k(a)},a.getAttr(m.PAGE_SIZE)*a.getAttr(m.DELAY_TIME)+50)};if(0===b||0===e)d.delay(f,0);else{var h=function(b){b||(f(),a.unbind(m.ANIMATING,h))};a.onChange(m.ANIMATING,h)}}function k(a){a=a.dom.$container;a.find(".a-carousel-accessibility-page-info").html(a.find(".a-carousel-page-count").text())}function e(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 h(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")}}function f(a){var b=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);b.each(function(a){var b=c(this);g+a>e?(b.removeAttr("aria-setsize"),b.removeAttr("aria-posinset")):(f["aria-posinset"]=g+a,b.attr(f))})}else b.each(function(a){f["aria-posinset"]=a+1;c(this).attr(f);c(this).attr("aria-hidden")||c(this).attr("aria-hidden",!1)})}var c=
d.$;return{init:function(a){var b=a.getAttr(m.NAME);f(a);e(a,g(a,!0));h(a,1);d.on("a:carousel"+(b?":"+b:"")+":repaint",function(){e(a,g(a,!0))});a.onChange(m.SET_SIZE,function(b,c){f(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),e(a,g(a,!0)),
"slide"!==b&&f(a))});a.onChange(m.PAGE_NUMBER,function(b){h(a,b);e(a,a.dom.$carousel.children("li"))})},afterInit:function(a){k(a)},gotoPage:function(a,c,d){a.getAttr(m.NO_TRANSITION)||b(a,!0,c,d)},nextPage:function(a,c,d){a.getAttr(m.NO_TRANSITION)||b(a,!0,c,d)},prevPage:function(a,c,d){a.getAttr(m.NO_TRANSITION)||b(a,!1,c,d)}}});"use strict";n.when("A","a-carousel-constants").register("a-carousel-accessibility-standard-mobile",function(d,m){function g(d){var e=d.dom.$carousel.children("li"),g=d.getAttr(m.TRANSITION_STRATEGY),
f=d.getAttr(m.SET_SIZE),c=f?{"aria-setsize":f}:{};if("swap"===g){var a=d.getAttr(m.FIRST_VISIBLE_ITEM);e.each(function(d){var e=b(this);a+d>f?(e.removeAttr("aria-setsize"),e.removeAttr("aria-posinset")):(c["aria-posinset"]=a+d,e.attr(c))})}else e.each(function(a){c["aria-posinset"]=a+1;b(this).attr(c);b(this).attr("aria-hidden")||b(this).attr("aria-hidden",!1)})}var b=d.$;d=d.constants.NOOP;return{init:function(b){g(b);b.onChange(m.SET_SIZE,function(){g(b)});b.onChange(m.LOADING,function(d){b.dom.$carousel.attr("aria-busy",
(!!d).toString());d||g(b)})},gotoPage:d,nextPage:d,prevPage:d}});"use strict";n.when("A","a-carousel-accessibility-standard-desktop","a-carousel-accessibility-standard-mobile").register("a-carousel-strategies-accessibility",function(d,m,g){return{standardDesktop:m,standardMobile:g,none:{init:d.constants.NOOP,gotoPage:d.constants.NOOP,nextPage:d.constants.NOOP,prevPage:d.constants.NOOP},"default":d.capabilities.mobile||d.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(d,m,g,b){return{display:d,transition:m,ajax:g,accessibility:b}});"use strict";n.when("A","jQuery","a-carousel-classes","a-carousel-strategies","a-carousel-constants").register("a-carousel-framework",function(d,m,g,b,k){function e(a,b,c,e){var f=a.hasClass("a-begin"),g=0<a.children(".a-end").length;if(f?g:1)return b=new b(a,c,e),b.__id=++z,a.data("a-carousel",
b),a.removeClass("a-carousel-static"),t(a,b)?d.delay(h,10,b):q.push(b),e.name&&(y[e.name]=b),b}function h(a){a.init();v.push(a);a.__initialized=!0;a.dom.$container.addClass("a-carousel-initialized");var b=a.getAttr("name");b&&A[b]&&d.each(A[b],function(b){b(a)})}function f(a,c){(c=c[a+"Strategy"])||(c=b[a]["default"]);return b[a][c]}function c(a){for(var b=a.length,c;b--;)c=a[b],c.dom.$container.length&&u.find(c.dom.$container).length||((c=c.getAttr("name"))&&delete y[c],a.splice(b,1))}function a(){c(q);
c(v)}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=f("display",b);var c=f("transition",b),d=f("ajax",b),e=f("accessibility",b),h=b.carouselClass;h||(h=g["default"]);h=g[h];if(h!==r&&a!==r&&c!==r&&d!==r&&e!==r)return{carouselClass:h,strategies:{display:a,transition:c,
ajax:d,accessibility:e},opts:b}}function t(a,b){return a.hasClass("a-begin")&&0===a.children(".a-end").length?!1:d.onScreen(a,b.getAttr("initThreshold"))}function x(){m(".a-carousel-static").each(function(){var a=m(this),b=p(a);b&&e(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 r,v=[],q=[],w=!1,y={},u=m(document),A={},z=0;d.on("resize orientationchange",function(b,c){a();(c.height||c.width)&&d.delay(function(){d.each(v,
function(a){a.resize()})},d.capabilities.mobile||d.capabilities.tablet?100:0)});d.on("a:popover:afterSlideOut",function(){d.each(v,function(a){a.resize()})});d.on("a:carousel:change:name",function(a){a.newValue&&(y[a.newValue]=a.carousel);a.oldValue&&delete y[a.oldValue]});d.on(k.INIT_EVENTS,function(){l();x()});d.on("a:pageUpdate",a);d.on("scroll",function(){l();x()});d.declarative("a-tabs","click",function(a){d.delay(function(){l();d.each(v,function(a){a.getAttr("isInTab")&&a.resize()})},50)});
d.on("a:popover:afterShow",function(){d.delay(l,50)});d.on("a:popover:ajaxContentLoaded",function(){d.delay(function(){a();x()},50)});d.on.ready(function(){w=!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=e(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=d.indexOfArray(v,b);-1<c?(v[c].name&&delete y[v[c].name],v.splice(c,1)):(c=d.indexOfArray(q,b),-1<c&&(q[c].name&&delete y[q[c].name],q.splice(c,1)))}a.remove()}},registerStrategy:function(a,c,d){b[a]||(b.type={});b[a][c]&&n.error("Attempted to register a "+a+" strategy which already exists: "+c,"a-carousel-framework","registerStrategy");b[a][c]=d;w&&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;w&&x()},getAllCarousels:function(){return v.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!==r&&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 a-button-focus").each(c("false"));
h.addClass("a-button-selected a-button-focus").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:"-1"}),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(c){var f=window.AmazonUIPageJS||window.P,g=f._namespace||f.attributeErrors,a=g?g("AmazonUIAccordion","AmazonUI"):f;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,f,g){c.when("A").register("a-accordion-a11y",function(a){var n=a.$,b;return{refreshFocus:function(e,h){h=h||600;b||(b=n("\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"})},h)}}});c.when("A","a-accordion-a11y","prv:a-capabilities").register("a-accordion",function(a,n,b){function e(b){var k=b.$target.closest(".a-accordion"),d=b.$target.closest(".a-box"),e=k.find(".a-box").not(d),l=d.find(".a-accordion-row"),f=k.data("a-accordion-name"),g=d.data("a-accordion-row-name"),t=k.hasClass("a-accordion-collapse"),u=d.find("a.a-accordion-row");var p=b.$target.closest(".a-accordion-sr");k=k.find(".a-accordion-sr").not(p);
if(g){var r=d.find(".a-accordion-inner"),q=!0;if(d.hasClass("a-accordion-active"))if(t)r[c]({duration:m,complete:function(){d.removeClass("a-accordion-active");d.find(".a-icon.a-accordion-radio").removeClass("a-icon-radio-active").addClass("a-icon-radio-inactive");p.attr("aria-expanded","false").filter("[aria-checked]").attr("aria-checked","false")}});else q=!1;else e.find(".a-accordion-inner")[c]({duration:m,complete:function(){e.removeClass("a-accordion-active")}}),r[h]({duration:m,complete:function(){d.addClass("a-accordion-active");
e.find(".a-icon.a-accordion-radio").removeClass("a-icon-radio-active").addClass("a-icon-radio-inactive");d.find(".a-icon.a-accordion-radio").removeClass("a-icon-radio-inactive").addClass("a-icon-radio-active")}}),k.attr("aria-expanded","false").filter("[aria-checked]").attr("aria-checked","false"),p.attr("aria-expanded","true").filter("[aria-checked]").attr("aria-checked","true");q&&v&&n.refreshFocus(l);q&&(l={$row:d,rowName:g,accordionName:f},a.trigger("a:accordion:select",{selectedRow:l}),a.trigger("a:accordion:"+
f+":select",{selectedRow:l}),a.trigger("a:accordion:"+f+":"+g+":select",{selectedRow:l}))}u.length&&b.$event.preventDefault()}var h="slideDown",c="slideUp",m=300;if(a.capabilities.mobile||a.capabilities.tablet)h="show",c="hide",m=0;var v=!a.capabilities.touch&&b.isFirefox;a.declarative("a-accordion",["click"],e);a.declarative("a-accordion",["keypress"],function(b){var c=a.constants.keycodes,d=b.$event.which;d!==c.ENTER&&d!==c.SPACE||e(b)})});"use strict";c.when("A","jQuery").register("a-accordion-initialization",
function(a,c){function b(a){c(a).find(".a-box").each(function(a,b){b=c(b);a=b.find("[role\x3dbutton]");b=b.find(".a-accordion-inner");a.attr("aria-controls")||(b.attr("id")||b.attr("id","a-accordion-auto-"+f++),a.attr("aria-controls",b.attr("id")))})}function e(){c(".a-accordion").each(function(a,c){b(c)})}var f=0;a.on("load ready",e);return{initializeAccordion:b,initializeAllAccordions:e}})});
/* ******** */
(function(c){var d=window.AmazonUIPageJS||window.P,m=d._namespace||d.attributeErrors,a=m?m("AmazonUIExpander@base","AmazonUI"):d;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,d,m){c.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"}});c.when("A","jQuery","prv:a-expander-constants").register("a-partial-expander",function(a,c,d){function l(){c(".a-expander-partial-collapse-container").each(function(){var a=c(this),f=a.children("."+q.content),e=a.data("a-expander-collapsed-height"),b=a.children("."+q.header);f.height()<=e?b.css({opacity:"0",display:"none"}):(b.css({opacity:"1",display:"block"}),f.css("padding-bottom",b.height()),"true"!==
f.attr("data-expanded")&&a.css({height:e}),a.css({"max-height":"none"}))})}var q=d.elementClasses;a.on("load ready resize orientationchange a:popover:afterShow a:popover:ajaxContentLoaded",l);return l});"use strict";c.when("A","jQuery","prv:a-expander-constants","a-partial-expander").register("a-expander",function(a,c,d,l){function q(b,r,f,e){var c=b.closest("."+h.container),d=c.data("a-expander-collapsed-height");var n="true"===b.attr("data-expanded");e=e.$event.originalEvent;n&&e&&e.isTrusted&&
a.delay(function(){r.focus()},100);var g=function(){b.toggleClass(h.content+"-expanded");b.attr("data-expanded",n?"false":"true");r.attr("aria-expanded")&&r.attr("aria-expanded",n?"false":"true");f()};d?(c.css("height",n?d:"auto"),g()):b.toggle(0,function(){g()})}var h=d.elementClasses,f=d.classNames,e={};a.each(f,function(b,c){e[c]={};a.each(b,function(a,b){e[c][b]=new RegExp("\\b"+a+"\\b","g")})});a.declarative("a-expander-toggle","click",function(b){var c=b.$target.closest("."+h.container),d=c.find("."+
h.container),l=c.data("a-expander-name");var p=b.$currentTarget.hasClass(h.header)?b.$currentTarget:c.find("."+h.header).not(d.find("."+h.header));var m=p.is("a")?p:p.children("a"),n=c.find("."+h.content).not(d.find("."+h.content));q(n,m,function(){var g=p.find(".a-icon")[0],k=null,m=p.children("."+h.fadeDiv);"false"===n.attr("data-expanded")?(g&&(g.className=g.className.replace(e.inline.collapse,f.inline.expand).replace(e.section.collapse,f.section.expand).replace(e.extender.collapse,f.extender.expand)),
b.data&&b.data.expand_prompt&&(k=b.data.expand_prompt),m.show(),g="collapse"):(g&&(g.className=g.className.replace(e.inline.expand,f.inline.collapse).replace(e.section.expand,f.section.collapse).replace(e.extender.expand,f.extender.collapse)),b.data&&b.data.collapse_prompt&&(k=b.data.collapse_prompt),m.hide(),g="expand");k&&""!==k&&p.find(".a-expander-prompt").not(d.find(".a-expander-prompt")).html(k);k={expander:{$expander:c,expanderName:l}};a.trigger("a:expander:toggle",k);a.trigger("a:expander:toggle:"+
g,k);l&&(a.trigger("a:expander:"+l+":toggle",k),a.trigger("a:expander:"+l+":toggle:"+g,k))},b)});return{initializeExpanders:l}})});
/* ******** */
(function(h){var p=window.AmazonUIPageJS||window.P,k=p._namespace||p.attributeErrors,c=k?k("AmazonUISwitch","AmazonUI"):p;c.guardFatal?c.guardFatal(h)(c,window):c.execute(function(){h(c,window)})})(function(h,p,k){h.when("a-switch-framework","jQuery").register("a-switch",function(c,f){var g=c.SWITCH_STATE,h=c.SWITCH_CONTAINER_CLASS,x=c.SWITCH_CLASS;return{getSwitch:function(d){function m(d){var n=e.data(g);if(d===k)return n.isOn;if(!n.isEnabled||l(e))return!1;c.setOnState(e,d);return!0}function l(){return e.data(g).isDragging}
d.jquery||(d=f(d));if(0===d.length)return null;d=d.eq(0);d=d.closest("."+h);if(0===d.length)return null;var e=d.find("."+x);c.ensureInitialized(e);return{toggle:function(){return m(!e.data(g).isOn)},isOn:m,enabled:function(d){var n=e.data(g);if(d===k)return n.isEnabled;if(n.isEnabled===d)return!1;c.setEnabled(e,d);return!0},isDragging:l,label:function(c){var d=e.data(g).label,h=d[0].childNodes[0];if(c===k)return d.text();3===h.nodeType&&(h.textContent=c)}}}}});"use strict";h.when("A","jQuery").register("a-switch-framework",
function(c,f){function g(a){a.preventDefault();var b=a.data.$switch.data("a-switch-state"),q=b.control;if(!c.isAnimated(q)){a=t(a)-b.initialX;b.isOn&&(a+=b.rightBoundary);var d=b.leftBoundary,r=b.rightBoundary;a=a<d?d:a>r?r:a;a!==b.leftOffset&&(c.animate(q,{left:a},0),b.leftOffset=a,b.isDragging=!0,b.dragCount++)}}function l(a){a.preventDefault();if(c.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;v(a)}}function k(a,b,d){d={switchState:a,previousState:d};c.trigger("a:switch:"+b,d);a.name&&c.trigger("a:switch:"+a.name+":"+b,d)}function d(a){if(!a.data("a-switch-state")){var b=a.closest(".a-switch-row"),d=a.children(".a-switch-control"),c=b.find(".a-switch-label"),r=c.siblings("input"),h=r.attr("name"),e=b.hasClass("a-active"),k=!b.hasClass("a-disabled"),f=u.left,g=(a.width()-d.width()+u.right)*A;a.data("a-switch-state",{input:r,container:b,control:d,label:c,isDragging:!1,rightBoundary:g,
leftBoundary:f,midPoint:g/2,initialX:null,leftOffset:e?g:f,maxLeftOffset:u.maxLeftOffset,isOn:e,isEnabled:k,name:h,dragCount:0,clicked:!1})}}function m(a,b){d(a);a=a.data("a-switch-state");var q=a.isOn,h=b!==a.isOn;a.isOn=b;var e=a.control,g=a.maxLeftOffset,f=a.isOn?a.rightBoundary:a.leftBoundary;f=g&&f>g?g:f;c.animate(e,{left:f},300,"ease-out");a.leftOffset=f;e=a.container;a.isOn?e.addClass("a-active"):e.removeClass("a-active");e=a.input;a.isOn?e.attr("checked","checked"):e.removeAttr("checked");
h&&k(a,"flip",q);b?k(a,"on",q):k(a,"off",q)}var p=function(a){a.bind("touchmove.a-switch-component",{$switch:a},g);a.bind("touchend.a-switch-component",{$switch:a},l);a.bind("touchcancel.a-switch-component",{$switch:a},l);a.bind("mouseup.a-switch-component",{$switch:a},l)},e=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")},y=function(a){return(a.originalEvent.touches[0]||
a.originalEvent.changedTouches[0]).pageX},n=function(a){f("body").bind("mousemove.a-switch-component",{$switch:a},g);f("body").bind("mouseup.a-switch-component",{$switch:a},l)},z=function(a){f("body").unbind("mousemove.a-switch-component",g);f("body").unbind("mouseup.a-switch-component",l)},B=function(a){return a.pageX},u={left:c.capabilities.rtl?1:-1,right:-3},A=c.capabilities.rtl?-1:1;h.when("prv:skin-vars").execute(function(a){u=a.toggle.bounds});var w=null,v=null,t=null;c.capabilities.touch?(w=
p,v=e,t=y):(w=n,v=z,t=B);c.declarative("a-switch",["touchstart","mousedown"],function(a){var b=a.$event;b.preventDefault();if(c.capabilities.touch||1===b.which){a=a.$declarativeParent;d(a);var e=a.data("a-switch-state");e.dragCount=0;e.clicked=!0;e.isDragging=!1;e.isEnabled&&(e.initialX=t(b),w(a))}});c.declarative("a-switch-input","change",function(a){a.$event.preventDefault();var b=a.$target;a=f("html").hasClass("a-touch");b=b.closest(".a-switch-row").find(".a-switch");d(b);var c=b.data("a-switch-state");
!a&&c.clicked?c.clicked=!1:m(b,!c.isOn)});h.when("ready").execute("a-switch-normalization",function(){f(".a-switch-input").each(function(){var a=f(this),b=a.next().children(".a-switch");m(b,a.prop("checked"))})});return{ensureInitialized:d,setOnState:m,setEnabled:function(a,b){d(a);a=a.data("a-switch-state");var c=a.container;b?c.removeClass("a-disabled").attr("disabled",!1):c.addClass("a-disabled").attr("disabled",!0);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(p){var r=window.AmazonUIPageJS||window.P,B=r._namespace||r.attributeErrors,c=B?B("AmazonUIPopover@base","AmazonUI"):r;c.guardFatal?c.guardFatal(p)(c,window):c.execute(function(){p(c,window)})})(function(p,r,B){p.when("A","a-popover-base-factory").register("a-popover-base-apis",function(c,e){return{show:function(c){var b=e.get(c.$trigger?c.$trigger:c);if(b)return b.show.apply(b,arguments)},hide:function(c){var b=e.get(c);if(b)return b.unlock(1),b.hide.apply(b,arguments)},get:function(c){return e.get(c)},
remove:function(c){return e.remove(c)}}});"use strict";p.when("A","a-popover-util","a-popover-objectclass","a-popover-data","a-analytics").register("a-popover-base-factory",function(c,e,k,b,m){function h(d){return u[d]?u[d]:null}function l(d,f){return new k.PopoverClass(d,f)}function n(d,a){var c=null;if("number"===typeof d)c=h(d);else if("string"===typeof d)(c=f[d]?f[d]:null)||(c=h(d));else if("object"===typeof d)if(d.$popover)c=d;else if(d=g(d),c=d.data("a-popover-id"),c||(c=d.find(".a-declarative").eq(0),
c=c.length?c.data("a-popover-id"):null),c=h(c),!c){var l=d.data("action");(l=l?d.data(l):null)&&l.name&&(c=l.name,c=f[c]?f[c]:null,!c||a&&c.type!==a?c=null:(a=(a=c.attrs("currentDataStrategy"))?b.getStrategyByName(a):b.guessStrategyByAttrs(c.attrs()))&&a.reusePopover?c.$trigger[0]!==d[0]&&(c.$trigger.data("a-popover-id",null),c.$trigger=d):c=null)}return c}function a(){q||(q=l({id:-1,$popover:v,$trigger:v,immersive:!0},{isActive:function(){return!0},hideMethod:function(){this.hideChildren()},showMethod:c.constants.NOOP}));
return q}var g=c.$,d=1,f={},u={},v=g("\x3cdiv id\x3d'a-popover-root' style\x3d'z-index:-1;position:absolute;' /\x3e").appendTo("body"),q;return{getRoot:a,get:function(d,a){a=a?a:this?this.type:null;return(d=n(d,a))&&a&&d.type!==a?null:d},create:function(b,k){var e=g(b),v=k.attributes||{},q=k.typeSpecificFunctions||k.variant||{};k=k.actionCheck||!1;e.data("a-popover-id");var t=v.type,x=null;!t||e.hasClass("a-declarative")&&e.data("action")&&-1!==e.data("action").indexOf(t)||(e=c.declarative.create(e,
"a-"+t),b=e[0]);if(k&&e.data("action")&&-1===e.data("action").indexOf(t))return null;t&&e&&(x=n(e));if(x)return x.type!==t?null:x;e=v;b=g(b);e.type?b&&b.length?(e=c.extend({id:d++,$trigger:b,$triggerWrapper:null},e),q=c.copy(q),q=l(e,q),u[q.id]=q,q.name&&(f[q.name]=q),b.data("a-popover-id",q.id),m.logNexus("aui_analytics.PopoverCloseUsage.1",{hasClose:!!e.closeButton,triggerAttribution:c.attributionChain(b[0]),label:"undefined"===typeof e.popoverLabel?null:e.popoverLabel,closeLabel:"undefined"===
typeof e.closeButtonLabel?null:e.closeButtonLabel}),b=q.$trigger.closest(".a-popover"),b=!q.attrs("immersive")&&b.length?h(b.data("a-popover-id"))||a():a(),q.parent=b,b.children.push(q)):q=null:q=null;return q},remove:function(d,a){d=this.get(d);var g=!1;if(d){g=d.id;if(d&&-1<g){var b=c.indexOfArray(d.parent.children,d),l=d.$container,k=d.$trigger;d.parent.children.splice(b,1);d.unlock().hide();d.update({content:""});l&&d.$container.remove();k.data("a-popover-id","");d.name&&delete f[d.name];delete u[g];
g=!0}else g=!1;a&&c.declarative.remove(d.$trigger[0],"a-"+a)}return g}}});"use strict";p.when("A","a-popover-util","a-popover-base-factory","prv:a-capabilities").register("a-popover-base-handlers",function(c,e,k,b){function m(a){for(var g;a.length&&!(g=a.data("a-popover-id"));)a=a.parent();return k.get(g)}var h=c.$;h(document).bind("click "+c.action.start,function(a){var g=h(a.target),d=a.originalEvent;if(!(d&&d.pointerType&&d.pointerType===c.pointerType.touch&&"click"===d.type||g.hasClass("a-modal-scroller")||
"a-popover-lgtbox"===g[0].id||"html"===g[0].nodeName.toLowerCase())){var f=function(d){return e.eventOccursWithin(a,d)};c.each(k.getRoot().children,function(d){if(d.isVisible()||d.isContentLoaded()){var a=e.search(d,f);a?a.hideChildren():null!==d.attrs("lightboxOptions")||d.attrs("immersive")||d.unlock(1).hide()}})}});c.declarative("a-popover-close",["click",c.action.end],function(a){var g=m(a.$target);g&&(g.unlock().hide(),e.trigger("dismiss",g));a.$event.preventDefault()});var l=null,n=null;c.declarative("a-popover-a11y",
"focusout",function(a){var g=m(a.$target);if(g&&a.$target.length){var d=g.getFirstTabbable();!d.length||a.$target[0]!==d[0]||l&&100>c.now()-l||(l=c.now(),c.delay(function(){h(document.activeElement).hasClass("a-popover-start")&&g.getLastTabbable().focus()},0))}});c.declarative("a-popover-a11y","focusin",function(a){var g=m(a.$target);g&&a.$target.length&&a.$target.hasClass("a-popover-end")&&!(n&&100>c.now()-n)&&(n=c.now(),c.delay(function(){g.getFirstTabbable().focus()},0))});c.declarative("a-popover-a11y",
"keydown",function(a){var g=a.$event;g.keyCode===c.constants.keycodes.ESCAPE&&(a=m(a.$target),g.preventDefault(),a&&a.hide())});c.on("resize zoom",function(){k.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.$(r);a.scrollTop(a.scrollTop()+1)})})});"use strict";p.when("A","a-popover-base-apis","a-popover-base-handlers").register("a-popover-base",
function(c,e,k){return e});"use strict";p.when("A","prv:a-focus-trap","a-popover-util","a-popover-data","a-popover-position","a-popover-lightbox","a-popover-animate","prv:a-capabilities").register("a-popover-objectclass",function(c,e,k,b,m,h,l,n){function a(a,g){var b=-1,n=[1],q=-2;this.parent=null;this.children=[];this.typeSpecificFunctions={};this.attributes={position:"triggerVertical",alone:!1,immersive:!1,restoreFocusOnHide:!0};var m=function(){this.isActive()?this._willTriggerEvents&&k.trigger("visible",
this):k.trigger("invisible",this);return this},t=function(a,g){var b=this.isActive(),l=this.getDataStrategy(),k=!this.$popover,h=g||k;g=!1;a=a||h;if(!h)for(var e=n.length;e--&&!h;)h=!v[n[e]];h&&(h=z.apply(this),h=f(h),k||(l.unloadContent(this),this.$container.remove(),g=!0),f("body").append(h),this.$container=h,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")||(h=parseInt(this.parent.$popover.css("z-index"),10),c.isFiniteNumber(h)||(h=this.parent.attrs("immersive")?1010:0),e=this.$trigger.closest(".a-sheet-web"),1===e.length&&(e=parseInt(e.css("z-index")),c.isFiniteNumber(e)&&(h=Math.max(e,h))),h=Math.max(299,100+h),this.$popover.css("z-index",h));if(l.shouldRefreshContent(this)||a)g||l.unloadContent(this),
l.loadContent(this,k);this.typeSpecificFunctions.updateDimensions!==d&&this.typeSpecificFunctions.updateDimensions.apply(this);n=[];b&&x.call(this,[],!1);return this},x=function(a,f){function g(){b.updatePosition();var d=b.attrs("navigate");!f&&d&&b.attrs("navigate",!1);h.call(b,m,a);f&&k.trigger("show",b);v&&v.apply(b,a);f&&k.trigger("afterShow",b);b.$popover.attr("aria-hidden","false");"tooltip"!==b.type&&u.attr("aria-hidden","true");"tooltip"!==b.type&&(b.unregister=e.register(b._trap));!f&&d&&
b.attrs("navigate",d);q=2}var b=this;f=!!f;var l=b.typeSpecificFunctions,h=l.showMethod!==d?l.showMethod:w,n=l.beforeShowMethod!==d?l.beforeShowMethod:null,v=l.afterShowMethod!==d?l.afterShowMethod:null;q=1;b._willTriggerEvents=f;b.attrs("originalFocus",document.activeElement);b.$popover.css("visibility","hidden").addClass("a-popover-hidden").show();n&&n.apply(b,a);b.attrs("synchronous")?g():c.delay(function(){g()},0)};this.show=function(){var d=this,a=d.attrs("lightboxOptions")||null;if(d.isActive()||
l.isAnimating(d))return this;d.lock(1);a&&h.lock(1);d.parent.$container&&d.parent.$container.is(".a-popover")&&d.parent.$container.attr("aria-hidden","true");d.attrs("alone")&&c.each(d.parent.children,function(a){a.isActive()&&a.id!==d.id&&!a.attrs("modeless")&&a.unlock().hide()});k.trigger("beforeShow",d);if(!d.$container||d.isDirty()||d.getDataStrategy().shouldRefreshContent(d))k.trigger("refresh",d),t.call(d);if(d.draggable){var f=d.$container;c.draggable(f,{handle:f.find(".a-popover-draggable-handle")})}a&&
h.show(c.extend({popover:d},a));x.call(d,arguments,!0);c.delay(function(){d.unlock(1);a&&h.unlock(1)},0);return this};this.hide=function(){var a=this,g=a.typeSpecificFunctions,b=g.hideMethod!==d?g.hideMethod:A,e=g.beforeHideMethod!==d?g.beforeHideMethod:null,n=g.afterHideMethod!==d?g.afterHideMethod:null,v=a.attrs("lightboxOptions")||null;a.unregister&&a.unregister();if(!a.isActive()||a.isLocked()||l.isAnimating(a))return this;q=-1;a.hideChildren();k.trigger("beforeHide",a);e&&e.apply(a,arguments);
b.call(a,m,arguments);k.trigger("hide",a);c.delay(function(){function d(){c.delay(function(){var d=null,g=a.$container.find(document.activeElement).length,b=f(document.activeElement).is("a, button, input:not([type\x3d'hidden']), select, textarea, [tabindex]:not([tabindex\x3d'-1'])");if(g||!b)"dropdown"===a.type?d=a.$trigger:a.$trigger&&f(a.$trigger).length&&(d=a.$trigger.is("a, input, button")?a.$trigger:a.$trigger.find("a, input, button")),d&&d.length||(d=f(a.attrs("originalFocus"))),!d.length||
p&&!d.is(":visible")||("secondary-view"===a.type||c.onScreen(d,0))&&d.focus()},400)}n&&n.apply(a,arguments);a.$popover.attr("aria-hidden","true");"tooltip"!==a.type&&u.attr("aria-hidden","false");a.parent.$container&&a.parent.$container.is(".a-popover")&&a.parent.$container.attr("aria-hidden","false");v&&(a.parent.attrs("lightboxOptions")?h.show(c.extend({popover:a.parent},v)):h.hide(v));k.trigger("afterHide",a);q=-2;a.attrs("restoreFocusOnHide")&&d()},0);return this};this.update=function(d){var a=
"string"===typeof d?{content:d}:c.copy(d),f=this.attrs();d=this.getDataStrategy();c.each(a,function(d,a){(d&&!f[a]||f[a]&&f[a]!==d)&&n.push(a)});this.isDirty()&&(a=c.extend({},f,a),this.attrs(a),this.getDataStrategy(a),this.$popover&&d.unloadContent(this),this.isActive()&&(t.call(this,!0),this.focus()));return this};this.refresh=function(d,a){return t.call(this,d||!0,a||!1)};this.isActive=function(){return 1<=q};this.isVisible=function(){return 2===q};this.isContentLoading=function(){return 3===q};
this.setContentLoading=function(){q=3};this.isContentLoaded=function(){return 4===q};this.setContentLoaded=function(){q=4};this.isDirty=function(){return 0<n.length};this.lock=function(d){d||(d=10);b<d&&(b=d);return this};this.unlock=function(d){d||(d=10);b<=d&&(b=-1);return this};this.isLocked=function(){return-1!==b};this._trap={isElContained:function(d){return this.$popover[0].contains(d)}.bind(this),moveFocus:function(){this.getFirstTabbable().focus()}.bind(this)};this.typeSpecificFunctions=g;
this.attrs(a);c.extend(this,this.attributes)}function g(d){return d.$popover.find(".a-popover-inner").find("a, button, input:not([type\x3d'hidden']), select, textarea, [tabindex]:not([tabindex\x3d'-1'])").not(".a-dropdown-link").filter(":visible")}var d,f=c.$,u=f("#a-page"),v={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,t=q||c.capabilities.tablet,C=q&&n.isIE10Plus,p=f("html").hasClass("a-lt-ie9"),w=function(d){this.$popover.css({visibility:"visible"}).removeClass("a-popover-hidden");
this.attrs("focusWhenShown")&&"ajax"!==this.attrs("currentDataStrategy")&&this.focus();d.call(this)},A=function(d){this.$popover.hide().find(".a-lgtbox-vertical-scroll").removeClass("a-lgtbox-vertical-scroll");d.call(this)},z=function(){var a=this.typeSpecificFunctions;return a.skin!==d?a.skin(this):""};q=a.prototype;q.getDataStrategy=function(d){var a=this.typeSpecificFunctions;d||this.attrs("currentDataStrategy")||(d=this.attrs());d&&(d=d.dataStrategy?b.getStrategyByName(d.dataStrategy):b.guessStrategyByAttrs(d))&&
(a.dataStrategy=d,this.attrs("currentDataStrategy",d.name));return a.dataStrategy};q.getContent=function(){return this.typeSpecificFunctions.getContent!==d?this.typeSpecificFunctions.getContent.apply(this,arguments):null};q.updateContent=function(a){this.typeSpecificFunctions.updateContent!==d&&this.typeSpecificFunctions.updateContent.apply(this,arguments);return this};q.setAriaBusy=function(a){this.typeSpecificFunctions.setAriaBusy!==d&&this.typeSpecificFunctions.setAriaBusy.apply(this,arguments);
return this};q.ajax=function(d){return this.update({url:d})};q.updateChildrenPosition=function(){c.each(this.children,function(d){d.isActive()&&d.updatePosition()});return this};q.updatePosition=function(){var a=this;if(-1===a.id)c.each(a.children,function(d){d.isActive()&&d.updatePosition()});else{if(this.typeSpecificFunctions.updatePosition!==d)return this.typeSpecificFunctions.updatePosition.apply(this,arguments),c.each(a.children,function(d){d.isActive()&&d.updatePosition()}),a;var g=a.$popover;
n.isMetroIEGuess&&n.isIETouchCapable?g.css("opacity",.01):g.css("visibility","hidden");var b=function(){var d=g.find(".a-popover-inner").css({height:"auto","overflow-y":"auto"});"dropdown"===a.type&&a.maxHeight&&d.css({maxHeight:a.maxHeight});var b=a.attrs("position"),l={};l=a.typeSpecificFunctions.positionStrategy?m.customPosition(a,a.typeSpecificFunctions.positionStrategy):m[b](a);k.trigger("beforeUpdatePosition",a);b={top:l.top+"px",left:l.left+"px"};n.isMetroIEGuess&&n.isIETouchCapable?b.opacity=
1:b.visibility="visible";g.css(b);a.isContentLoaded()&&0===f(document.activeElement).closest(a.$popover).length&&!0===a.attrs("focusWhenShown")&&a.focus();if(d.length&&(!d[0].style.height||"auto"===d[0].style.height)){l=g.outerHeight()||0;var h=g.find(".a-popover-header, .a-modal-close-nohead-top").outerHeight(!0)||0,e=g.find(".a-popover-footer").outerHeight(!0)||0;b=d.outerHeight()||0;l=l-h-e;b>l&&d.css({height:l+"px","overflow-y":"scroll"})}k.trigger("afterUpdatePosition",a);k.trigger("positionUpdated",
a);c.each(a.children,function(d){d.isActive()&&d.updatePosition()})};a.attrs("immersive")&&t?(g.css({top:0,left:0}),c.delay(function(){b()},0)):b()}return a};q.attrs=function(a,f){var g=this;if(f===d&&"object"!==typeof a)return a?"string"===typeof a?this.attributes[a]!==d?this.attributes[a]:null:null:this.attributes;"object"===typeof a?c.each(a,function(d,a){g.attrs(a,d)}):"string"===typeof a&&(this.attributes[a]=f,g[a]=f);return this};q.hideChildren=function(){c.each(this.children,function(d){d.unlock(1);
d.hide()});return this};q.getFirstTabbable=function(){return this.$popover.find('[data-action\x3d"a-popover-close"]').add(g(this)).first()};q.getLastTabbable=function(){return g(this).last()};q.focus=function(){var d=this,a=f(r),g=a.scrollTop(),b=d.$popover.offset().top;C&&g>b&&a.scrollTop(b);c.delay(function(){d.getFirstTabbable().focus()},0);return this};return{PopoverClass:a}});"use strict";p.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";p.when("A").register("a-dropdown-base-positions",function(c){return{positionStrategy:function(e){var k=e.$popover,b=e.$trigger,m=e.measure;e=k.find(".a-popover-inner");e.css({"min-width":"0px",width:"auto",height:"auto"});var h=b.nextAll(".a-button-dropdown");h.length||(h=b.closest(".a-button-group"));b=m(k,h);m=b.windowWidth-(b.triggerLeft+b.popoverWidth);h=b.windowWidth-b.triggerLeft-b.triggerWidth;
var l=b.triggerLeft,n={},a=b.triggerTop-b.windowTop,g=b.windowBottom-b.triggerBottom,d=k.find(".a-popover-inner");a>g&&g<b.popoverHeight?(g=a,n.top=a<b.popoverHeight?b.triggerBottom-a:b.triggerBottom-b.popoverHeight):n.top=b.triggerTop;d.css("height",g<b.popoverHeight?g-b.headerHeight+"px":"auto");b.popoverHeight>g?d.addClass("a-lgtbox-vertical-scroll"):d.removeClass("a-lgtbox-vertical-scroll");e.hasClass("a-lgtbox-vertical-scroll")&&-1<navigator.appVersion.indexOf("Windows")?(a=Math.max(b.popoverWidth,
b.triggerWidth)+c.scrollBarWidth(!0),e.width(a)):e.css("min-width",b.triggerWidth+"px");b.popoverWidth=k.width();n.left=50>m&&l>h?b.triggerRight-b.popoverWidth:b.triggerLeft;return n}}});"use strict";p.when("A","a-dropdown-base-positions").register("a-dropdown-base-view-base",function(c,e){return c.extend(e,{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);
"combobox"===this.$trigger.attr("role")&&this.$trigger.attr("aria-expanded",!0)},afterShowMethod:function(){var k=this.$popover,b=k.find(".a-active");c.delay(function(){b.length?b.closest("li").focus():b=k.find("li").first().focus()},0)},beforeHideMethod:function(){this.parent.unlock(1)},afterHideMethod:function(){"combobox"===this.$trigger.attr("role")&&this.$trigger.attr("aria-expanded",!1);this.$popover.css("width","auto")}})});"use strict";p.when("A","a-dropdown-base-view-base").register("a-dropdown-base-view",
function(c,e){return e});"use strict";p.when("A","a-popover-base-factory","a-dropdown-base-view").register("a-dropdown-base-factory",function(c,e,k){function b(a,g,d){var f=['\x3cli tabindex\x3d"0" role\x3d"option"'],b=a.data("aCssClass"),h=a.data("aId"),k=a.data("aHtmlContent"),e=a.data("aImageSource"),n=JSON.stringify({stringVal:a.val()});n=['\x3ca tabindex\x3d"-1" href\x3d"javascript:void(0)" aria-hidden\x3d"true" data-value\x3d"',c.escapeHtml(n),'"'];var m=["a-dropdown-link"],p=["a-dropdown-item"];
g?(m.push("a-active"),f.push(' aria-selected\x3d"true"')):f.push(' aria-selected\x3d"false"');l&&(c.capabilities.mobile||c.capabilities.tablet)&&m.push("a-list-link-after-group");l=!1;b&&p.push(b);h&&f.push(' id\x3d"'+h+'"');f.push('aria-labelledby\x3d"');f.push(d);f.push('"');n.push(' id\x3d"');n.push(d);n.push('"');f.push(' class\x3d"'+p.join(" ")+'"');f.push("\x3e");k?g=k:(g=[],e&&(m.push("a-option-has-image"),g.push('\x3cimg src\x3d"'+e+'" class\x3d"a-rich-option-image" /\x3e')),g.push(a.html()),
g=g.join(""));n.push(' class\x3d"');n.push(m.join(" "));n.push('"\x3e');n.push(g);n.push("\x3c/a\x3e");f.push(n.join(""));f.push("\x3c/li\x3e");return f.join("")}function m(a){a.jquery||(a=h(a));var g=a.children("optgroup,option:not(.a-prompt)"),d=!1,f=a[0],c=a.attr("id")?a.attr("id"):"dropdown"+n++;if(-1<f.selectedIndex)var k=f.options[f.selectedIndex].value;var e=['\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;g.each(function(){var a=h(this);a.is("optgroup")?(a.children().each(function(d){e.push(b(h(this),k===this.value,c+"_"+m++))}),e.push('\x3cli tabindex\x3d"-1" class\x3d"divider"\x3e\x3chr /\x3e\x3c/li\x3e'),d=l=!0):(e.push(b(a,k===this.value,c+"_"+m++)),d=!1)});d&&e.pop();e.push("\x3c/ul\x3e");return e.join("")}var h=c.$,l=!1,n=1;return c.extend({create:e.create,remove:e.remove,get:e.get},{type:"dropdown",create:function(a,g,d){var f=g.$button,b=g.$sourceSelect,l=b[0],h=f.find(".a-dropdown-label"),
n=b.data("aTouchHeader");if(!n||!n.length&&h.length)n=h.text();h=b.data("a-max-height");return e.create(a,{attributes:{type:"dropdown",header:n,closeButtonLabel:g.closeButtonLabel?g.closeButtonLabel:"Close",inlineContent:b,position:g.position,maxHeight:h,alone:!0,sourceSelect:b,sourceButton:f,name:b[0].name,preventNameReuse:!0,lightboxOptions:c.capabilities.mobile||c.capabilities.tablet?{showDuration:c.capabilities.ios?null:0,hideDuration:0}:null},typeSpecificFunctions:c.extend({},k,d,{skin:function(a){var f=
d.subskin?d.subskin(l):m(l);a.attrs("inlineContent",f);return d.skin(a)}}),actionCheck:!1})}})});"use strict";"use strict";p.when("A","a-dropdown-base-factory").register("a-dropdown-keyboard-handlers",function(c,e){function k(a){a.removeData("a-user-navigated-text").removeData("a-user-navigated-idx")}function b(a,d){a.removeAttr("aria-selected");"option"===d.attr("role")&&d.attr("aria-selected","true");d.focus()}function m(a){var d=a.parent("ul");a=d.find("li");var f=d.find(":focus");1>f.length&&
(f=d.find('[aria-selected\x3d"true"]'));d=f;return{index:0<d.length?d.index():0,$options:a}}function h(a,d,f){a.preventDefault();d.find("a").eq(0).trigger("click");k(f)}function l(a){var d=a.data("a-user-navigated-debouncer");d||(d=c.debounce(function(){k(a)},1E3),a.data("a-user-navigated-debouncer",d));d()}var n=c.$,a=c.constants.keycodes;return{keyDown:function(g){var d=n(this),f=d.parent();switch(g.which){case a.UP_ARROW:g.preventDefault();k(f);0<m(d).index&&b(d,d.prev());break;case a.DOWN_ARROW:g.preventDefault();
k(f);f=m(d);g=f.index;0<=g&&g+1<f.$options.length&&b(d,d.next());break;case a.ENTER:h(g,d,f);break;case a.ESCAPE:g.preventDefault();d=e.get(d.closest(".a-popover"));d.sourceButton.find(".a-button-text").focus();d.hide();k(f);break;case a.SPACE:f.data("a-user-navigated-text")||h(g,d,f);break;case a.TAB:k(f);break;case a.BACKSPACE:g.preventDefault()}},keyPress:function(b){var d=n(this),f=d.parent(),g=e.get(d.closest(".a-popover")),k=b.which;if(g&&g.isActive()&&k!==a.TAB&&0!==k){l(f);var q=f.data("a-user-navigated-idx")||
0;if(!(0>q)){g=(f.data("a-user-navigated-text")||"")+String.fromCharCode(k).toLocaleLowerCase();f.data("a-user-navigated-text",g);for(var m=f.children();q<m.length;q++){var p=m.eq(q);if(0===c.trim(p.text().toLocaleLowerCase()).indexOf(g)){p.focus();f.data("a-user-navigated-idx",q);return}}f.data("a-user-navigated-idx",-1);k===a.SPACE&&h(b,d,f)}}}}});"use strict";p.when("A","a-dropdown-select-apis","a-dropdown-base-factory","a-popover-base").register("a-dropdown-base",function(c,e,k,b){function m(b,
d,f){try{var g=b.$event||b;g.preventDefault?g.preventDefault():g.returnValue=!1}catch(q){}var h=b.$declarativeParent?b.$declarativeParent:a(b.currentTarget);c.delay(function(){var g=d.$button?d.$button:d.getButtonFromEvent(b),e=d.$select?d.$select:d.getSelectFromEvent(b);if(!g.hasClass("a-button-disabled")){n(e,d).isSynced()||l(a.extend({$button:g,$select:e},d));e=c.extend({},d,{$button:g,$sourceSelect:e});var u=k.create(h,e,f);if(u&&(u.show(),g.data("a-popover-id",u.id).data("popover",u).data("isPressed",
!0),g.find("button[role\x3d'combobox']").attr("aria-controls",u.$popover.attr("id")),!u.hasOnLoad)){u.hasOnLoad=!0;var v=[];g=u.$popover.find("img");g.length&&(g.each(function(d,f){if(!f.complete||!f.naturalWidth){var b=a.Deferred();v.push(b);a(f).bind("load error",function(){b.resolve()})}}),v.length?a.when.apply(a,v).done(function(){u.updatePosition()}):u.updatePosition())}}})}function h(a){var d=a.$button;a=a.$select;d||(d=a.nextAll(".a-button-dropdown"));return a.length?((d=k.get(d))&&d.hide(),
!0):!1}function l(a){var d=a.$button;a=a.$select;d||(d=a.nextAll(".a-button-dropdown"));return a.length?((d=k.get(d))&&k.remove(d.id),a.data("a-info",null),!0):!1}function n(b,d){b=d.$select?d.$select:"string"===typeof b?a("select#"+b):b.jquery?b:a(b);if(!b.length)return null;var f=d.$button?d.$button:d.getButtonFromSelect(b);b.data("a-select")?d=b.data("a-select"):(d=c.extend({hidePopover:h,refreshPopover:l,options:c.extend({$select:b,$button:f},d)},e),b.data("a-select",d));return d}var a=c.$;return{toggleDropdown:function(a,
d){var b=(d.$button?d.$button:d.getButtonFromEvent(a)).data("popover");b&&b.$popover.is(":visible")?b.hide():m(a,d)},showDropdown:m,getSelect:n}});"use strict";p.when("A","jQuery").register("a-dropdown-options-apis",function(c,e){return{update:function(c){"object"!==typeof c&&p.error("input of options.update() function must be a hash");this.hidePopover(this.options);for(var b=0,e=this.size();b<e;b++){var h=this.options.elements[b],l=h[0];c.value&&h.val(c.value);void 0!==c.selected&&(!l.selected&&
c.selected?this.options.$select.val(l.value):l.selected&&!c.selected&&this.options.$select.val(""));c.html_content&&h.data("a-html-content",c.html_content);c.image_source&&h.data("a-image-source",c.image_source);c.native_css_class&&(l.className=c.native_css_class);c.css_class&&h.data("a-css-class",c.css_class);c.native_id&&(l.id=c.native_id);c.id&&h.data("a-id",c.id);c.text&&(h.text(c.text),l.selected&&this.setSelectValue(l.value))}this.refreshPopover(this.options);return this},remove:function(){this.hidePopover(this.options);
for(var c=0,b=this.size();c<b;c++){var e=this.options.elements[c];e.is(":selected")&&this.setSelectValue("");e.remove()}this.refreshPopover(this.options);return!0},info:function(){for(var c=[],b=0,e=this.size();b<e;b++){var h=this.options.elements[b];c.push({value:h[0].value,text:h.text(),selected:h[0].selected,html_content:h.data("a-html-content"),image_source:h.data("a-image-source"),native_css_class:h[0].className,css_class:h.data("a-css-class"),native_id:h[0].id,id:h.data("a-id")})}return c},
size:function(){return this.options.elements.length}}});"use strict";p.when("A","jQuery","a-dropdown-options-apis").register("a-dropdown-select-apis",function(c,e,k){function b(b){var c=this.options.$select,a=this.options.$button,g=c[0];"number"===typeof b&&(b=b.toString());for(var d=0,f=g.options.length;d<f&&g.options[d].value!==b;d++);d===f&&""===b&&(d=0);d<f&&(a.find(".a-dropdown-prompt").html(g.options[d].innerHTML),a.css("min-width",d/g.options.length+"%"),c.val()!==b&&(c.val(b),c.trigger("change",
[h,!0])));return this}function m(c){if(c===h)return this.options.$select.val();this.setValue=b;return this.setValue(c)}var h;return{isSynced:function(){var b=this.options.$select,h=b.data("a-info"),a=this.getOptions().info();b.data("a-info",a);return h?c.equals(h,a):!0},update:function(b){"object"!==typeof b&&p.error("input of select.update() function must be an object");this.hidePopover(this.options);var c={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,g=a[0],d=this.options.$button,f=d[0],l=a.siblings("label");b.name&&(g.name=b.name);if(b.option_prompt){var k=a.find(".a-prompt");k.length?(k.text(b.option_prompt),k.prop("selected")&&d.find(".a-dropdown-prompt").text(b.option_prompt)):(a.prepend(e("\x3coption class\x3d'a-prompt' /\x3e").text(b.option_prompt)),d.find(".a-dropdown-prompt").text(b.option_prompt))}b.has_images!==h&&a.data("a-has-images",!!b.has_images);b.button_size!==h&&d.length&&("small"===b.button_size?
d.addClass("a-button-small"):d.removeClass("a-button-small"));b.spacing!==h&&c.hasOwnProperty(b.spacing)&&(c=/\ba-spacing-[a-z]+\b/g,g.className=g.className.replace(c,""),f.className=f.className.replace(c,""),a.addClass("a-spacing-"+b.spacing),d.addClass("a-spacing-"+b.spacing));b.grid_units!==h&&(c=/\ba-button-span\d{1,2}\b/g,g.className=g.className.replace(c,""),f.className=f.className.replace(c,""),isFinite(b.grid_units)&&0<b.grid_units&&13>b.grid_units&&(a.addClass("a-button-span"+b.grid_units),
d.addClass("a-button-span"+b.grid_units)));b.width_name&&("base"===b.width_named?d.addClass("a-button-width-normal"):d.removeClass("a-button-width-normal"));if(b.status){var q=b.status;c=d.closest(".a-dropdown-container, .a-splitdropdown-container").find(".a-button");k="error"===q;q="disabled"===q;g.disabled=q;c.toggleClass("a-button-disabled",q);e(g).hasClass("a-native-splitdropdown")?q?c.find("button.a-button-text").attr("aria-disabled","true").parents(".a-button-splitdropdown").find("button.a-button-text").removeAttr("role"):
c.find("button.a-button-text").removeAttr("aria-disabled").parents(".a-button-splitdropdown").find("button.a-button-text").attr("role","combobox"):q?c.attr("aria-disabled","true"):c.removeAttr("aria-disabled");c.toggleClass("a-button-error",k)}b.native_id&&(g.id=b.native_id,l.length&&(l[0].htmlFor=b.native_id));b.id&&(f.id=b.id);b.native_css_class&&((f=a.data("a-native-class"))&&a.removeClass(f),a.addClass(b.native_css_class).data("a-native-class",b.native_css_class));b.css_class&&((f=d.data("a-class"))&&
d.removeClass(f),d.addClass(b.css_class).data("a-class",b.css_class));b.label_text!==h&&(""===b.label_text?(d.find(".a-dropdown-label").remove(),a.siblings("label").remove()):(f=d.find(".a-dropdown-label"),f.length?f.text(b.label_text):d.find(".a-dropdown-prompt").before(e("\x3cspan class\x3d'a-dropdown-label' /\x3e").text(b.label_text)),l.length?l.text(b.label_text):a.before(e("\x3clabel for\x3d'"+g.id+"' class\x3d'a-native-dropdown' /\x3e").text(b.label_text))),d.css("min-width",""===b.label_text?
"0.1%":"0%"));this.refreshPopover(this.options);return this},setValue:b,val:m,getOptions:function(b){var l=this.options.$select,a=[];b=b===h?l.children("optgroup, option:not(.a-prompt)"):e.isArray(b)?b:[b];for(var g=0,d=b.length;g<d;g++){var f=b[g],u=[];c.isFiniteNumber(f)?u=l.children("optgroup, option:not(.a-prompt)").eq(f):"string"===typeof f?u=l.children("option#"+f):"object"===typeof f&&(u=f.jquery?f:e(f));u.length&&a.push(u)}return c.extend({hidePopover:this.hidePopover,refreshPopover:this.refreshPopover,
setSelectValue:m,options:c.extend({elements:a},this.options)},k)},getOption:function(b){return this.getOptions(b)},addOptions:function(b,c){e.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 g=a.children("optgroup, option:not(.a-prompt)"),d=document.createElement("option");c=c&&0<c&&c<=g.length?c:0;b.native_id&&(d.id=b.native_id);0===g.length||c===g.length?
a[0].appendChild(d):g.eq(c).before(d);this.getOption(d).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(e.isArray(b))for(var c=0,a=b.length;c<a;c++)this.addOption(b[c]);return this}}});"use strict";p.when("A","a-dropdown-options","a-dropdown-apis","a-dropdown-keyboard-handlers",
"a-analytics").register("a-dropdown",function(c,e,k,b,m){var h=c.$,l=h(document);c.on("beforeReady a:pageUpdate a:ajax:complete",function(){var b=l.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))});l.delegate(".a-native-dropdown","change",function(b,a,g){var d=e.getButtonFromEvent(b),f="",l=-1<this.selectedIndex?this.options[this.selectedIndex].value:
"",n=d.data("popover");b=!1;if(d.length){d=d.eq(0);for(var q=this.length;q--;){var m=this.options[q];if(m.value===l){f=m.innerHTML;break}}n&&n.$popover&&(n.$popover.find(".a-active").removeClass("a-active").closest("li").attr("aria-selected",!1),void 0===a&&(a=JSON.stringify({stringVal:l}),a=n.$popover.find('a[data-value\x3d"'+c.escapeJquerySelector(a)+'"]')));a&&a.length&&(b=!0,a.addClass("a-active").closest("li").attr("aria-selected",!0));d.find(".a-dropdown-prompt").html(f);d.css("min-width",this.selectedIndex/
this.options.length+"%");n&&(n.hide(),(d=k.getSelect(this))&&h(this).data("a-info",d.getOptions().info()));g||(g=this.name,d=this.id,a={auiItemNode:b?a[0]:null,nativeItemNode:this.options[this.selectedIndex],selectNode:this,id:d,name:g,value:this.value},g&&""!==g&&(c.trigger("a:dropdown:"+g+":select",a),c.trigger("a:dropdown:selected:"+g,a)),d&&""!==d&&c.trigger("a:dropdown:"+d+":select",a),c.trigger("a:dropdown:select",a))}});l.delegate(".a-button-dropdown:not(.a-button-disabled)","focusin",function(){h(this).find(".a-button-text").focus()});
l.delegate("select.a-native-dropdown","focusin",function(){var b=h(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(){h(this).closest(".a-dropdown-container").find(".a-button-dropdown").removeClass("a-button-focus")});return k});"use strict";p.when("A","a-dropdown-base","a-dropdown-options").register("a-dropdown-apis",function(c,e,k){function b(b){return e.getSelect(b,
k)}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 h=m("option#"+c).closest("select");b(h).getOption(c).update(e)},updateSelect:function(c,e){b(c).update(e)},setValue:function(c,e){b(c).setValue(e)}}});"use strict";p.when("A","a-popover-accessibility").register("a-dropdown-view",function(c,e){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',e.getStartAnchorHtml(c),'\x3cdiv class\x3d"a-popover-wrapper"\x3e\x3cdiv class\x3d"a-popover-inner"\x3e\x3c/div\x3e\x3c/div\x3e',e.getEndAnchorHtml(c),"\x3c/div\x3e"].join("")}}});"use strict";p.when("A").register("a-dropdown-options",function(c){function e(b){return b.nextAll(".a-button-dropdown")}var k=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?e(b.$target):k(b.target).nextAll(".a-button-dropdown")},getButtonFromSelect:e,getSelectFromEvent:function(b){b=k(b.target);b.length||p.error("Cannot locate the \x3cselect\x3e of dropdown");return b},triggerSelector:".a-button-dropdown"}});"use strict";p.when("A","a-popover-accessibility").register("a-dropdown-split-view",function(c,e){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',e.getStartAnchorHtml(c),'\x3cdiv class\x3d"a-popover-wrapper"\x3e\n\x3cdiv class\x3d"a-popover-inner"\x3e\x3c/div\x3e\n\x3c/div\x3e',e.getEndAnchorHtml(c),"\x3c/div\x3e"].join("\n")}}});"use strict";p.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,e,k,b,m,h,l){var n=c.$;c.declarative("a-splitdropdown-button","click",function(a){var g=m.getButtonFromEvent(a);e.showDropdown(a,c.extend({$button:g},m),b)});c.declarative("a-splitdropdown-main","click",function(a){var b=a.$target.closest(".a-splitdropdown-container").find("select"),d=b.attr("id"),c=b.val();k.triggerEvent(d,b,c);a.$event.preventDefault()});c.declarative("a-splitdropdown-button","keydown",function(a){var g=
m.getButtonFromEvent(a),d=c.constants.keycodes,f=a.$event.which;f!==d.DOWN_ARROW&&f!==d.ENTER&&f!==d.SPACE||e.showDropdown(a,n.extend({$button:g},m),b)});n(document).delegate(".a-popover.a-splitdropdown a","click",function(a){var b=n(this),d=b.data("value").stringVal;b=h.get(b.closest(".a-popover"));var c=b.sourceSelect,e=c.attr("id");b.hide();k.triggerEvent(e,c,d);a.preventDefault()}).delegate(".a-splitdropdown li","keydown",l.keyDown).delegate(".a-splitdropdown li","keypress",l.keyPress)});"use strict";
p.when("A").register("a-dropdown-split-options",function(c){function e(b){return b.popover?b.popover.$trigger.closest(".a-button-splitdropdown"):b.$target?b.$target.closest(".a-button-splitdropdown"):k(b.target).nextAll(".a-button-splitdropdown")}var k=c.$;return{getButtonFromEvent:e,getButtonFromSelect:function(b){return b.next(".a-button-group-splitdropdown").find(".a-button-splitdropdown")},getSelectFromEvent:function(b){b=e(b).closest(".a-splitdropdown-container").find("select");b.length||p.error("cannot locate the \x3cselect\x3e of the split dropdown");
return b}}});"use strict";p.when("A").register("a-dropdown-split-utils",function(c){return{triggerEvent:function(e,k,b){k={$select:k,value:b,id:e};c.trigger("a:splitdropdown:"+e+":select",k);c.trigger("a:splitdropdown:select",k)}}});"use strict";p.when("A","a-dropdown-base","a-dropdown-split-options","a-dropdown-split-utils","a-dropdown-split-handlers","a-analytics").register("a-splitdropdown",function(c,e,k,b,m,h){var l=c.$,n=l(document);c.on("a:pageUpdate beforeReady",function(){if((c.capabilities.mobile||
c.capabilities.tablet)&&!c.capabilities.touchScrolling){n.find("select.a-native-splitdropdown").removeAttr("tabindex").removeAttr("aria-hidden");var a=n.find(".a-splitdropdown-container label.a-native-dropdown");c.each(a,function(a){l(a).attr("for",l(a).nextAll("select.a-native-splitdropdown").attr("id")||"")})}});n.delegate(".a-native-splitdropdown","change",function(a,c,d){a=l(this);c=a.val();var f=a.attr("id");d||b.triggerEvent(f,a,c)}).delegate(".a-button-splitdropdown:not(.a-button-disabled)",
"focusin",function(){l(this).find(".a-button-text").focus()});c.on("beforeReady a:pageUpdate a:ajax:complete",function(){var a=n.find(".a-button-group-splitdropdown .a-button-disabled");a.attr("aria-disabled")&&(h.count("splitdropdown:usage",a.length),a.removeAttr("aria-disabled").find(".a-button-text").attr("aria-disabled",!0).removeAttr("role"))});return{getSelect:function(a){return e.getSelect(a,k)}}});"use strict";p.when("A","a-popover-accessibility-templates").register("a-popover-accessibility",
function(c,e){var k=e.startAnchorTemplate,b=e.startAnchorDeclarativeTemplate,m=e.endAnchorTemplate,h=e.descriptionTemplate,l=e.offscreenDescriptionTemplate,n=e.labelTemplate,a=e.offscreenStartTemplate,g=function(a,d){var b={"{{DESCRIPTION}}":d,"{{DESCRIPTION_ID}}":a};return h.replace(/\{\{[\w_]*\}\}/g,function(a){return b[a]})},d=function(a){return(a=a.label_str)?'aria-label\x3d"'+a+'"':""},f=function(a,d){var b={"{{DESCRIPTION}}":d,"{{DESCRIPTION_ID}}":a};return l.replace(/\{\{[\w_]*\}\}/g,function(a){return b[a]})};
return{getAriaLabel:d,getAriaLabelledByDescribedby:function(a){var d=a.id,b=a.header_str,c=a.aria_description,f="";a.label_str?f='aria-labelledby\x3d"a-popover-label-'+d+'"':b&&(f='aria-labelledby\x3d"a-popover-header-'+d+'"');c&&(f+=' aria-describedby\x3d"a-popover-aria-description-'+d+'"');return f},getPopoverLabelHtml:function(a){var d="",b=a.id;if(a=a.label_str){var c={"{{LABEL}}":a,"{{LABEL_ID}}":"a-popover-label-"+b};d=n.replace(/\{\{[\w_]*\}\}/g,function(a){return c[a]})}return d},getStartAnchorHtml:function(a){var f=
a.id,e=a.label_str,h=a.aria_description,l="";if(!f)return"";var n={"{{ROLE}}":'role\x3d"dialog"',"{{ANCHOR_NAME}}":"a-popover-start","{{ARIA_LABEL}}":d(a),"{{LABEL_STR}}":e||"","{{ARIA_DESCRIBEDBY}}":""};a=a.needs_declarative?b:k;h&&(f="a-popover-aria-description-"+f,n["{{ARIA_DESCRIBEDBY}}"]='aria-describedby\x3d"'+f+'"',l=g(f,h));c.capabilities.ios&&(n["{{ROLE}}"]="");a=a.replace(/\{\{[\w_]*\}\}/g,function(a){return n[a]})+l;return a.replace(/\s\s>|\s>/g,"\x3e")},getEndAnchorHtml:function(a){return m},
getDescription:function(a){var d="",b=a.id;(a=a.aria_description)&&(d=f("a-popover-aria-description-"+b,a));return d},getStartAnchorSimplifiedHtml:function(){return a}}});"use strict";p.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";p.when("A","a-popover-util").register("a-popover-ajax",function(c,e){return{update:function(c,b,e){var h={};h.url=b;e.timeout&&(h.timeout=e.timeout);e.ajaxFailMsg&&(h.ajaxFailMsg=e.ajaxFailMsg);e.cache&&(h.cache=e.cache);c.update(h)},showSpinner:function(c){return e.showSpinner(c)}}});"use strict";p.when("A").register("a-popover-animate",function(c){function e(b,e){return function(){c[b].apply(c,
e)}}function k(b,c){return function(){b._isAnimating=!1;c&&c()}}return{isAnimating:function(b){return b._isAnimating},animate:function(b,m,h,l,n){b._isAnimating=0<h;c.animationFrameDelay(e("animate",[b.$popover,m,h,l,k(b,n)]))},fadeOut:function(b,m,h,l){b._isAnimating=0<m;c.animationFrameDelay(e("fadeOut",[b.$popover,m,h,k(b,l)]))},fadeIn:function(b,m,h,l){b._isAnimating=0<m;c.animationFrameDelay(e("fadeIn",[b.$popover,m,h,k(b,l)]))}}});p.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";p.when("A","ready").register("a-popover-navigate",function(c){function e(a){"string"===typeof a&&(h=!0,r.location.hash=a);return r.location.hash||""}var k=c.$;k=k(r);var b=[],m=[],h=!1,l={},n=!1;m.push(e());k.bind("hashchange",function(a){a.preventDefault();n?n=!1:m.push(e());32<=m.length&&m.shift();h?h=!1:c.trigger("a:popover:navigate",l[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();l["#"+b]=a;e(b)},back:function(){0<m.length&&m.pop();n=!0;r.history.back()}}});"use strict";p.when("A","prv:a-capabilities").register("a-popover-position",
function(c,e){function k(d,b){var f=c.viewport();if(1===c.viewport().zoom)var e={top:0,left:0};else n||(n=l('\x3cspan id\x3d"a-popover-offset-tracker"\x3e\x3c/span\x3e'),l("body").prepend(n)),e=n.offset();var h=b.offset(),k=d.offset();if(g){var m=r.pageYOffset-document.documentElement.scrollTop;h.top-=m;k.top-=m}h.top-=e.top;h.left-=e.left;k.top-=e.top;k.left-=e.left;m=b[0].getBoundingClientRect();m=m.right-m.left;b=b.outerHeight();var p=d.outerWidth(!0),w=d.outerHeight(!0);d=d.find(".a-popover-header");
d=d.length?d.outerHeight(!0):0;return{windowWidth:f.width,windowHeight:f.height,windowTop:f.scrollTop,windowLeft:f.scrollLeft,windowRight:f.scrollLeft+f.width,windowBottom:f.scrollTop+f.height,zoomTop:e.top,zoomLeft:e.left,triggerWidth:m+1,triggerHeight:b,triggerTop:h.top-a,triggerLeft:h.left-a,triggerRight:h.left+m+a,triggerBottom:h.top+b+a,triggerVerticalCenter:h.top+b/2,triggerHorizontalCenter:h.left+m/2,popoverWidth:p,popoverHeight:w,popoverTop:k.top,popoverLeft:k.left,popoverRight:k.left+p,popoverBottom:k.top+
w,popoverVerticalCenter:k.top+w/2,popoverHorizontalCenter:k.left+p/2,headerHeight:d}}function b(a){return a.removeClass("a-arrow-top a-arrow-bottom a-arrow-left a-arrow-right")}function m(a){var b={deltaTop:0};b.top=a.triggerVerticalCenter-a.popoverHeight/2;if(b.top<a.windowTop+20){var d=Math.min(a.windowTop+20,a.triggerTop-20);b.deltaTop=b.top-d;b.top=d}else b.top+a.popoverHeight>a.windowBottom-20&&(d=Math.min(20,a.windowBottom-a.triggerBottom+20),b.deltaTop=b.top+a.popoverHeight-(a.windowBottom-
d),b.top=a.windowBottom-d-a.popoverHeight);return b}function h(a){var b={deltaLeft:0};b.left=a.triggerHorizontalCenter-a.popoverWidth/2;if(20>b.left){var d=Math.min(20,a.triggerLeft-20);b.deltaLeft=b.left-d;b.left=d}else b.left+a.popoverWidth>a.windowRight-20&&(d=Math.min(20,a.windowRight-a.triggerRight+20),b.deltaLeft=b.left+a.popoverWidth-(a.windowRight-d),b.left=a.windowRight-d-a.popoverWidth);return b}var l=c.$;l(r);var n=null,a=1,g=c.capabilities.mobile&&e.isIE10Plus;p.when("prv:skin-vars-desktop").execute(function(b){a=
b.popover.POPOVER_SPACING?b.popover.POPOVER_SPACING:a});return{windowCenter:function(a){a=k(a.$popover,a.$trigger);var b={};b.top=(a.windowHeight-a.popoverHeight)/2;b.left=(a.windowWidth-a.popoverWidth)/2;0>b.top&&(b.top=0);return b},windowTop:function(a){a=k(a.$popover,a.$trigger);var b={top:0};b.left=a.windowWidth/2-a.popoverWidth/2;return b},windowFullWidth:function(a){return{top:0,left:0}},triggerRight:function(a,c){var d=a.$popover,f=a.$trigger;c||(c=k(d,f));f=m(c);f.left=c.triggerRight;a.attrs("popoverArrow")&&
(b(d).addClass("a-arrow-right"),d.find(".a-arrow-border").css("top",c.popoverHeight/2+f.deltaTop));return f},triggerLeft:function(a,c){var d=a.$popover,f=a.$trigger;c||(c=k(d,f));f=m(c);f.left=c.triggerLeft-c.popoverWidth;f.left=0<f.left?f.left:0;a.attrs("popoverArrow")&&(b(d).addClass("a-arrow-left"),d.find(".a-arrow-border").css("top",c.popoverHeight/2+f.deltaTop));return f},triggerTop:function(a,c){var d=a.$popover,f=a.$trigger;c||(c=k(d,f));f=h(c);f.top=c.triggerTop-c.popoverHeight;a.attrs("popoverArrow")&&
(b(d).addClass("a-arrow-top"),d.find(".a-arrow-border").css("left",c.popoverWidth/2+f.deltaLeft));return f},triggerBottom:function(a,c){var d=a.$popover,f=a.$trigger;c||(c=k(d,f));f=h(c);f.top=c.triggerBottom;a.attrs("popoverArrow")&&(b(d).addClass("a-arrow-bottom"),d.find(".a-arrow-border").css("left",c.popoverWidth/2+f.deltaLeft));return f},triggerHorizontal:function(a,b){var d=a.$popover,c=a.$trigger;b||(b=k(d,c));return b.triggerLeft-b.windowLeft>b.windowRight-b.triggerRight?this.triggerLeft(a,
b):this.triggerRight(a,b)},triggerVertical:function(a,b){var d=a.$popover,c=a.$trigger;b=b?b:k(d,c);return b.triggerTop-b.windowTop>b.popoverHeight+20?this.triggerTop(a,b):this.triggerBottom(a,b)},triggerVerticalAlignLeft:function(a,c){var d=a.$popover,f=a.$trigger;c||(c=k(d,f));f={};var g=0,e=c.windowBottom-c.triggerBottom;f.left=c.triggerLeft;f.top=e>c.popoverHeight?c.triggerBottom+3:c.triggerTop-c.popoverHeight-3;if(20>f.left){var h=Math.min(20,c.triggerLeft-20);g=f.left-h;f.left=h}else f.left+
c.popoverWidth>c.windowRight-20&&(h=Math.min(20,c.windowRight-c.triggerRight+20),g=f.left+c.popoverWidth-(c.windowRight-h),f.left=c.windowRight-h-c.popoverWidth);a.attrs("popoverArrow")&&(b(d).addClass(e>c.popoverHeight?"a-arrow-bottom":"a-arrow-top"),d.find(".a-arrow-border").css("left",c.triggerWidth/2+g));return f},customPosition:function(a,b){return b.call(this,{popover:a,$popover:a.$popover,$trigger:a.$trigger,measure:k})}}});"use strict";p.when("A","a-modal-view-base","a-modal-positions","a-popover-accessibility").register("a-modal-view",
function(c,e,k,b){var m=c.$;m=m("html").hasClass("a-lt-ie9");return c.extend(e,c.capabilities.touch||c.capabilities.mobile||c.capabilities.tablet||m?k.innerScroll:k.modalScroll,{skin:function(e){var h=e.attrs("id"),k=e.attrs("header")||"",a=e.attrs("hideHeader")||!1,g=e.attrs("footer"),d=e.attrs("modeless")||!1,f=e.attrs("closeButton"),m=e.attrs("closeButtonLabel")||"",p=e.attrs("hideHeaderCloseButtonLayout")||"",q=e.attrs("popoverLabel")||"",t=e.attrs("padding");e=e.attrs("ariaDescription");e={id:h,
header_str:k,label_str:q,aria_description:e};q=b.getDescription(e);var r=b.getPopoverLabelHtml(e);f='\x3cbutton data-action\x3d"a-popover-close" class\x3d"'+(f?"":" a-button-close-a11y")+" a-button-close a-declarative"+(a?f?"top"===p?" a-modal-close-nohead-top":" a-button-top-right":" a-button-a11y-top-right":"")+'" aria-label\x3d"'+m+'"\x3e\x3ci class\x3d"a-icon a-icon-close"\x3e\x3c/i\x3e\x3c/button\x3e';k=!a||r?"\x3cheader"+(a?"":' class\x3d"a-popover-header"')+"\x3e"+(a?"":'\x3ch4 class\x3d"a-popover-header-content'+
(d?" a-popover-draggable-handle":"")+'" id\x3d"a-popover-header-'+h+'"\x3e'+k+"\x3c/h4\x3e")+f+r+"\x3c/header\x3e":f;g=g?'\x3cdiv class\x3d"a-popover-footer"\x3e'+g+"\x3c/div\x3e":"";t="none"===t?" a-padding-none":"";a=c.capabilities.isAndroid?"":b.getStartAnchorSimplifiedHtml();f=c.capabilities.isAndroid?"":b.getEndAnchorHtml(e);m=d?"":'\x3cdiv class\x3d"a-modal-scroller a-declarative" data-action\x3d"a-popover-floating-close"\x3e';e='\x3cdiv class\x3d"a-popover a-popover-modal a-declarative'+(d?
" a-modal-modeless":" ")+'" data-action\x3d"a-popover-a11y" aria-modal\x3d"true" role\x3d"dialog"'+b.getAriaLabel(e)+"\x3e";return m+e+a+q+'\x3cdiv class\x3d"a-popover-wrapper"\x3e'+k+('\x3cdiv class\x3d"a-popover-inner'+t+'" id\x3d"a-popover-content-'+h+'"\x3e\x3c/div\x3e')+g+"\x3c/div\x3e"+f+"\x3c/div\x3e"+(d?"":"\x3c/div\x3e")}})});"use strict";p.when("A","a-popover-lightbox","a-popover-optional-helpers","prv:a-capabilities").register("a-modal-positions",function(c,e,k,b){function m(a){var b=a.$popover.closest(".a-modal-scroller");
b.scrollTop(0).css("visibility","visible");b.bind("scroll",function(){a.updateChildrenPosition()})}function h(){var a=c.viewport();2<a.width/a.height&&c.delay(function(){document.activeElement.scrollIntoView();r.scrollTo(r.pageXOffset,0)},0)}function l(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 n(a){return function(b){a.css(b)}}var a=c.$,g=b.isIE10Plus&&c.capabilities.mobile,d=0;p.when("prv:skin-vars").execute(function(a){d=
a.popover.optionalButtonHeight});p.declare("prv:a-model-applyHorizonalScrollStyles",l);return{innerScroll:{positionStrategy:function(f){var m=f.popover,p=f.$popover,q=f.$trigger,t=p.find(".a-popover-inner").css("height","auto"),C=p.closest(".a-modal-scroller"),y={},w=c.viewport(!0),A=.1*w.height,z=.05*w.width;w=.8*w.height;var x=m.attrs("height");m=m.attrs("min-height");p.css({height:x?x:"","min-height":m?m:""});q=f.measure(p,q);y.left=(q.windowWidth-q.popoverWidth)/2;l(y.left,z,n(p))&&(y.left=z);
k.evaluateActualHeight(f,q.popoverHeight,d)>w?(m=p.find(".a-popover-header, .a-modal-close-nohead-top").outerHeight(!0)||0,x=p.find(".a-popover-footer").outerHeight(!0)||0,f=k.getOffsetTopDelta(f,A,d),w-=f,A+=f,t.css({height:w-m-x+"px","overflow-y":"auto"}),p.css({height:w,"min-height":0}),y.top=A):(y.top=(q.windowHeight-q.popoverHeight)/2,t.css("height","auto"));y.left+=q.zoomLeft;y.top+=q.zoomTop;g&&(C.css("top",a(r).scrollTop()),p.removeClass("a-popover-pan-y").addClass("a-popover-pan-x"),p=a(document).height(),
t=a(document).width(),a("#"+e.LIGHTBOX_ID).css({height:p,width:t>q.popoverWidth?t:q.popoverWidth+z}));b.isMetroIEGuess&&b.isIETouchCapable&&h();return y},beforeShowMethod:c.constants.NOOP,beforeHideMethod:c.constants.NOOP},modalScroll:{positionStrategy:function(a){var d=a.$popover,e=a.$trigger,g=d.closest(".a-modal-scroller"),f=d.find(".a-popover-inner").css("height","auto");if(d.hasClass("a-popover-modal-fixed-height")){var k=d.find(".a-popover-footer");f.css("padding-bottom",k.height()+15)}f={};
var m=c.viewport(!0),p=m.height;k=.1*p;m=.05*m.width;p*=.8;var r=d.height(),z=d.width();a=a.measure(d,e);f.left=(a.windowWidth-z)/2;f.top=(a.windowHeight-r)/2;l(f.left,m,n(d))&&(f.left=m);r>p?g.length?(f.top=0,d.css({position:"relative",margin:a.zoomTop+k+"px 0 "+k+"px "+(a.zoomLeft+f.left)+"px"}),f.left=0,g.css("padding-bottom","1px")):r>p&&(f.top=padding):g.length&&(d.css({position:"absolute",margin:"0px"}),g.css("padding-bottom","0px"));f.left+=a.zoomLeft;f.top+=a.zoomTop;b.isMetroIEGuess&&b.isIETouchCapable&&
h();return f},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";p.when("A","a-popover-base-factory","a-modal-view","a-popover-util","prv:a-capabilities").register("a-modal-factory",function(c,e,k,b,m){function h(a,g){var d=!1,f=!1;c.capabilities.mobile||c.capabilities.tablet||(d=b.getBool(g.modeless),f=b.getBool(g.draggable));g={modeless:d,draggable:f,type:"modal",alone:!0,immersive:!0,position:"windowCenter",header:g.header,hideHeader:g.hideHeader,footer:g.footer,padding:g.padding,width:g.width,height:g.height,"max-width":g["max-width"],
"max-height":g["max-height"],"min-width":g["min-width"],"min-height":g["min-height"],closeButton:b.getBool(g.closeButton,!0),timeout:g.timeout,lightboxOptions:d?B:{lockScroll:!0,showDuration:l||n?0:null},data:g.data||{},dataStrategy:g.dataStrategy,url:g.url,manualRefresh:!!g.manualRefresh,ajaxFailMsg:g.ajaxFailMsg,cache:b.getBool(g.cache,!0),inlineContent:g.inlineContent?g.inlineContent:g.content,name:g.name,closeButtonLabel:g.closeButtonLabel?g.closeButtonLabel:"Close",hideHeaderCloseButtonLayout:g.hideHeaderCloseButtonLayout,
popoverLabel:g.popoverLabel,ariaDescription:g.ariaDescription,ajaxHeaders:g.ajaxHeaders,withCredentials:b.getBool(g.withCredentials,!1),legacyNavigable:b.getBool(g.legacyNavigable,!0)};return e.create(a,{attributes:g,typeSpecificFunctions:k,actionCheck:!0})}var l=-1<document.documentElement.className.indexOf("a-lt-ie9"),n=c.capabilities.mobile&&m.isIE10Plus;return{type:"modal",create:h,get:function(a){var c=e.get(a,"modal");c||"object"!==typeof a||(a=b.extractDeclarativeParams(a,"modal"))&&(c=h(a.$trigger,
a.attributes||{}));return c},remove:function(a){return e.remove(a,"modal")}}});"use strict";p.when("A","a-modal-factory","a-popover-base","a-modal-handlers").register("a-modal",function(c,e){return e});"use strict";p.when("A","a-popover-util","a-popover-animate").register("a-popover-view-base",function(c,e,k){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(e.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;k.fadeOut(c,250,"linear",function(){c.$popover.css({top:"auto",left:"auto"});b.call(c)})}}});p.when("a-util").register("a-popover-optional-helpers",function(c){return{getOffsetTopDelta:function(e,
k,b){b=parseFloat(b);var m=c.isFiniteNumber(b)&&0<b;e=e.$popover.find(".a-button-close").length&&!e.$popover.find(".a-button-close-a11y").length;return m&&e&&0>k-b?b-k:0},evaluateActualHeight:function(c,k,b){return c.$popover.find(".a-button-close").length&&!c.$popover.find(".a-button-close-a11y").length?k+b:k}}});"use strict";p.when("A","a-popover-view-base","a-popover-util","a-popover-accessibility").register("a-popover-view",function(c,e,k,b){var m=!0;p.when("prv:skin-vars").execute(function(b){m=
b.popover.closeButtonEnabled});return c.extend(e,{skin:function(e){var h=e.attrs("id"),k=e.attrs("header"),a=m&&e.attrs("closeButton"),g=e.attrs("closeButtonLabel")||"",d=e.attrs("popoverLabel")||"",f=e.attrs("ariaDescription"),p=e.attrs("padding");e=e.attrs("popoverArrow");f={id:h,header_str:k,label_str:d,aria_description:f};c.capabilities.isAndroid&&(g=(d||k)+" "+g);a='\x3cbutton data-action\x3d"a-popover-close" class\x3d"a-button-close '+(a?"":"a-button-close-a11y")+' a-declarative" aria-label\x3d"'+
g+'"\x3e\x3ci class\x3d"a-icon a-icon-close"\x3e\x3c/i\x3e\x3c/button\x3e';var r=(g=!!k)?"a-popover-has-header":"a-popover-no-header";p="none"===p?" a-padding-none":"";e=e?'\x3cdiv class\x3d"a-arrow-border"\x3e\x3cdiv class\x3d"a-arrow"\x3e\x3c/div\x3e\x3c/div\x3e':"";d=c.capabilities.isAndroid?"":b.getStartAnchorSimplifiedHtml();var q=c.capabilities.isAndroid?"":b.getEndAnchorHtml(f);k=k?'\x3ch4 class\x3d"a-popover-header-content" id\x3d"a-popover-header-'+h+'"\x3e'+k+"\x3c/h4\x3e":"";r='\x3cdiv class\x3d"a-popover '+
r+' a-declarative" data-action\x3d"a-popover-container a-popover-a11y" aria-modal\x3d"true" role\x3d"dialog"'+b.getAriaLabel(f)+"\x3e";var t=b.getDescription(f);f=b.getPopoverLabelHtml(f);return r+d+t+'\x3cdiv class\x3d"a-popover-wrapper"\x3e'+(g?'\x3cheader class\x3d"a-popover-header"\x3e'+k+a+f+"\x3c/header\x3e":"")+('\x3cdiv class\x3d"a-popover-inner'+p+'"\x3e')+(g?"":f?"\x3cheader\x3e"+a+f+"\x3c/header\x3e":a)+('\x3cdiv class\x3d"a-popover-content" id\x3d"a-popover-content-'+h+'"\x3e\x3c/div\x3e')+
"\x3c/div\x3e"+e+"\x3c/div\x3e"+q+"\x3c/div\x3e"}})});"use strict";p.when("A","a-popover-base-factory","a-popover-view","a-popover-util").register("a-popover-factory",function(c,e,k,b){function m(c,l){l={type:"popover",alone:!0,header:l.header,width:l.width,height:l.height,"max-width":l["max-width"],"max-height":l["max-height"],"min-width":l["min-width"],"min-height":l["min-height"],padding:l.padding,closeButton:b.getBool(l.closeButton,!0),position:l.position||"triggerVertical",activate:l.activate||
"onmouseover",timeout:l.timeout,data:l.data||{},dataStrategy:l.dataStrategy,url:l.url,manualRefresh:!!l.manualRefresh,ajaxFailMsg:l.ajaxFailMsg,cache:b.getBool(l.cache,!0),inlineContent:l.inlineContent?l.inlineContent:l.content,name:l.name,closeButtonLabel:l.closeButtonLabel?l.closeButtonLabel:"Close",popoverLabel:l.popoverLabel,ariaDescription:l.ariaDescription,focusWhenShown:b.getBool(l.focusWhenShown,!0),popoverArrow:b.getBool(l.popoverArrow,!0),restoreFocusOnHide:b.getBool(l.restoreFocusOnHide,
!0)};return e.create(c,{attributes:l,typeSpecificFunctions:k,actionCheck:!0})}return{type:"popover",create:m,get:function(c){var k=e.get(c,"popover");k||"object"!==typeof c||(c=b.extractDeclarativeParams(c,"popover"))&&(k=m(c.$trigger,c.attributes||{}));return k},remove:function(b){return e.remove(b,"popover")}}});"use strict";p.when("A","a-popover-factory").register("a-popover-handlers",function(c,e){function k(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.$,h={},l=!(c.capabilities.mobile||c.capabilities.tablet)&&c.capabilities.ios;c.declarative("a-popover","click",function(a){var b=e.get(a.$declarativeParent);b&&(b.show(),a.$event.preventDefault())});c.declarative("a-popover","keydown",function(a){var b=c.constants.keycodes,d=a.$event.which;if(d===b.ENTER||d===b.SPACE)a.$event.preventDefault(),e.get(a.$declarativeParent).show()});
if(!l){var n;c.declarative("a-popover","mouseenter",function(a){var g=e.get(a.$declarativeParent);g&&"onmouseover"===g.attrs("activate")&&(b(g),n=c.delay(function(){(g=e.get(a.$declarativeParent))&&h.popover===g&&1<h.mouseMoveCount&&g.show()},200))});c.declarative("a-popover","mousemove",function(a){var b=e.get(a.$declarativeParent);h||(h={});h.popover===b?(h.mouseMoveCount||(h.mouseMoveCount=0),h.lastXY&&(h.lastXY.x!==a.$event.clientX||h.lastXY.y!==a.$event.clientY)&&h.mouseMoveCount++):(h.popover=
b,h.mouseMoveCount=1,h.lastXY={x:a.$event.clientX,y:a.$event.clientY});2>c.cursor().speed&&b&&"onmouseover"===b.attrs("activate")&&h.popover===b&&1<h.mouseMoveCount&&b.show()});c.declarative("a-popover","mouseleave",function(a){(a=e.get(a.$declarativeParent))&&"onmouseover"===a.attrs("activate")&&(k(a),n&&clearTimeout(n));h={}});c.declarative("a-popover-container","mouseenter",function(a){(a=e.get(a.$declarativeParent))&&"onmouseover"===a.attrs("activate")&&b(a)});c.declarative("a-popover-container",
"mouseleave",function(a){var b=e.get(a.$declarativeParent),d=!0,f=m(a.$event.relatedTarget);b&&"onmouseover"===b.attrs("activate")&&b.isActive()&&(c.each(b.children,function(a){if(f.closest(a.$popover).length)return d=!1}),d&&(k(b),b.parent.immersive||0!==f.closest(b.parent.$popover).length||k(b.parent)))})}});"use strict";p.when("A","a-popover-factory","a-popover-base","a-popover-handlers").register("a-popover",function(c,e){return e});"use strict";p.when("A","a-popover-base-factory","a-secondary-view-view",
"a-popover-util").register("a-secondary-view-factory",function(c,e,k,b){function m(h,a){a.disableAnimation=a.disableAnimation||c.capabilities.isOldAndroid;a={type:"secondary-view",immersive:!0,disableAnimation:l||a.disableAnimation,synchronous:!!(l||a.synchronous&&"false"!==a.synchronous),animationLength:a.disableAnimation?0:300,alternateBackground:a.alternateBackground||!1,hideHeader:l||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 e.create(h,{attributes:a,typeSpecificFunctions:k,actionCheck:!0})}var h=
c.$,l=!1;p.when("mash-will-load").execute(function(){l=!0});return{type:"secondary-view",create:m,get:function(c){var a=e.get(c,"secondary-view");if(!a&&"object"===typeof c){var g=b.extractDeclarativeParams(c,"secondary-view");g&&(a=m(g.$trigger,g.attributes||{}))}a&&"object"===typeof c&&(c=h(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 e.remove(b,"secondary-view")}}});"use strict";p.when("A",
"a-secondary-view-factory","a-popover-base","a-secondary-view-handlers").register("a-secondary-view",function(c,e){return e});"use strict";p.when("A","a-popover-animate").register("a-tooltip-view-base",function(c,e){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;e.fadeOut(b,250,"linear",function(){c.call(b)})}}});"use strict";p.when("A","a-tooltip-view-base").register("a-tooltip-view",
function(c,e){return c.extend(e,{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";p.when("A","a-popover-base-factory","a-tooltip-view","a-popover-util").register("a-tooltip-factory",function(c,e,k,b){function m(c,
l){l={type:"tooltip",name:l.name,inlineContent:l.inlineContent?l.inlineContent:l.content,position:l.position||"triggerVertical",activate:l.activate||"onmouseover",popoverArrow:b.getBool(l.popoverArrow,!0),restoreFocusOnHide:!1};l=e.create(c,{attributes:l,typeSpecificFunctions:k,actionCheck:!0});c.add(c.children()).filter("a, input").attr("aria-describedby","a-popover-"+c.data("a-popover-id"));return l}return{type:"tooltip",create:m,get:function(c){var k=e.get(c,"tooltip");k||"object"!==typeof c||
(c=b.extractDeclarativeParams(c,"tooltip"))&&(k=m(c.$trigger,c.attributes||{}));return k},remove:function(b){return e.remove(b,"tooltip")}}});"use strict";p.when("A","a-tooltip-factory").register("a-tooltip-handlers",function(c,e){c.declarative("a-tooltip","click",function(c){var b=e.get(c.$declarativeParent);b&&"onclick"===b.attrs("activate")&&(b.show(),c.$event.preventDefault())});c.declarative("a-tooltip","mouseenter",function(c){(c=e.get(c.$declarativeParent))&&"onmouseover"===c.attrs("activate")&&
(c.show(),c.destroyTimer&&(clearTimeout(c.destroyTimer),c.destroyTimer=null))});c.declarative("a-tooltip","mouseleave",function(k){var b=e.get(k.$declarativeParent);b&&"onmouseover"===b.attrs("activate")&&(b.destroyTimer=c.delay(function(){b.hide()},125))});c.declarative("a-tooltip","focus focusin",function(c){(c=e.get(c.$declarativeParent))&&c.show()});c.declarative("a-tooltip","blur focusout",function(c){(c=e.get(c.$declarativeParent))&&c.hide()})});"use strict";p.when("A","a-tooltip-factory","a-popover-base",
"a-tooltip-handlers").register("a-tooltip",function(c,e){return e})});
/* ******** */
(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@base","AmazonUI"):b;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,b,d){});
/* ******** */
(function(c){var b=window.AmazonUIPageJS||window.P,d=b._namespace||b.attributeErrors,a=d?d("AmazonUIBottomSheet@control","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(h){var m=window.AmazonUIPageJS||window.P,n=m._namespace||m.attributeErrors,b=n?n("AmazonUIWebModalFramework","AmazonUI"):m;b.guardFatal?b.guardFatal(h)(b,window):b.execute(function(){h(b,window)})})(function(h,m,n){h.declare("prv:a-modal-framework-constants",{FRAMEWORK_WRAPPER_CLASS:"a-modal-framework-wrapper",CONTENT_WRAPPER_CLASS:"a-modal-framework-content-wrapper",DUMMY_FOCUSABLE_ELEMENT_CLASS:"a-modal-framework-dummy-element",SCRIM_CLASS:"a-modal-framework-scrim",DISABLE_SCROLL_CLASS:"a-disable-scroll",
overlayStatusCodes:{INACTIVE:0,ACTIVE:1},contentStatusCodes:{NO_CONTENT:0,CONTENT_LOAD_FAILED:1,CONTENT_LOADING:2,CONTENT_LOADED:3},errorMessages:{INVALID_TYPE:"content.type set to an unsupported content type",EMPTY_CONTENT:"content / content.source is empty",NO_PRELOAD_ID:"content.source should be the preload ID, none passed currently",CONTENT_NOT_PRELOADED:"no content with the given preload id present on the page",NO_ENDPOINT_URL:"content.source should be the endpoint url, currently empty",MISSING_PARAMS:"missing mandatory params needed to create the overlay instance",
IFRAME_TIMEOUT_FAILURE:"failed to load, response timed out",IFRAME_ENDPOINT_FAILURE:"failed to load, got error response"},TABBABLE_SELECTOR:"a, button, input, select, textarea, [tabindex]",defaultOptions:{DISMISS_STRATEGY:"transient",SCRIM_TYPE:"translucent"},defaultZIndex:{PERSISTENT:299,TRANSIENT:499},EXPLICIT_PARAMS:["wrapper","content"]});h.declare("a-modal-framework-exports",{CONTENT_WRAPPER_CLASS:"a-modal-framework-content-wrapper",CLOSE_TRIGGER_CLASS:"a-modal-framework-close-trigger",PRESENT_ACTION:"a-modal-framework-present",
DISMISS_ACTION:"a-modal-framework-dismiss",dismissReasons:{CLOSE_TRIGGER:"closeTrigger",BACKGROUND:"background",SCRIM:"scrim",BACK_BUTTON:"backButton",API_CALL:"apiCall",NONE:"none"}});h.when("A","prv:a-modal-framework-constants").register("a-modal-framework-templates",function(b,f){b=b.constants.HIDE_CLASS;return{frameworkWrapper:"\x3cdiv tabindex\x3d'-1' role\x3d'dialog' class\x3d'"+f.FRAMEWORK_WRAPPER_CLASS+" "+b+"' \x3e",startAnchor:"\x3cspan tabindex\x3d'0' class\x3d'a-modal-framework-start'\x3e\x3c/span\x3e",
endAnchor:"\x3cspan tabindex\x3d'0' class\x3d'a-modal-framework-end'\x3e\x3c/span\x3e",dummyFocusableElement:"\x3cspan tabindex\x3d'0' class\x3d'"+f.DUMMY_FOCUSABLE_ELEMENT_CLASS+"'\x3e\x3c/span\x3e",scrim:"\x3cdiv class\x3d'"+f.SCRIM_CLASS+" "+b+"'\x3e\x3c/div\x3e"}});h.when("A").register("a-modal-framework-utils",function(b){return{setOverlayStatus:function(b,e){b._overlayStatus=e},setContentStatus:function(b,e){b._contentStatus=e},getUniqueId:function(){for(var b=[],e=0;4>e;e++)b.push("0123456789"[Math.floor(10*
Math.random())]);return b.join("")},hasKeys:function(b,e){return e.every(function(c){return c in b})}}});h.when("A","3p-promise","prv:a-modal-framework-constants").register("a-modal-framework-inline",function(b,f,e){return{getContent:function(b,d){var c="undefined"===typeof b.source?b:b.source;return new f(function(b,a){""!==c?(d.html(c),b()):a(e.errorMessages.EMPTY_CONTENT)})},abortContent:function(){}}});h.when("A","3p-promise","prv:a-modal-framework-constants").register("a-modal-framework-preload",
function(b,f,e){var c=b.$,d=b.constants.HIDE_CLASS;return{getContent:function(b,g){if(!b.source)return f.reject(e.errorMessages.NO_PRELOAD_ID);var a=c((0===b.source.indexOf("#")?"":"#")+b.source);return new f(function(b,c){0<a.length?(a.remove(),a.removeClass(d),g.html(a),b()):c(e.errorMessages.CONTENT_NOT_PRELOADED)})},abortContent:function(){}}});h.when("A","3p-promise","prv:a-modal-framework-constants").register("a-modal-framework-ajax",function(b,f,e){return{getContent:function(c,d){if(!c.source)return f.reject(e.errorMessages.NO_ENDPOINT_URL);
var k=c.source,g=c.cache||!1,a=c.timeout||1E4,p=c.ajaxHeaders||{},r=c.withCredentials||!1,l=c.fallbackText||"";return new f(function(e,f){c.activeRequest=b.ajax(k,{type:"GET",cache:g,timeout:a,headers:p,withCredentials:r,success:function(a){d.html(a);e()},error:function(a,b,c){d.html(l);f({xhr:a,status:b,errorThrown:c})}})})},abortContent:function(b){b.activeRequest&&b.activeRequest.abort()}}});h.when("A","3p-promise","a-modal-framework-constants").register("a-modal-framework-iframe",function(b,f,
e){return{getContent:function(c,d){if(!c.source)return f.reject(e.errorMessages.NO_ENDPOINT_URL);var k=c.timeout||1E4,g=c.fallbackText||"",a=c.activeRequest=document.createElement("iframe");a.src=c.source;a.width="100%";a.height="100%";a.style.border="none";a.setAttribute("sandbox","allow-scripts allow-same-origin allow-top-navigation");return new f(function(c,f){var l=!1;a.onload=function(){l||(l=!0,c())};a.onerror=function(){l||(l=!0,d.html(g),f(e.errorMessages.IFRAME_ENDPOINT_FAILURE))};d.html(a);
b.delay(function(){l||(l=!0,d.html(g),f(e.errorMessages.IFRAME_TIMEOUT_FAILURE))},k)})},abortContent:function(b){(b=b.activeRequest)&&b.parentNode.removeChild(b)}}});h.when("A","a-modal-framework-inline","a-modal-framework-preload","a-modal-framework-ajax","a-modal-framework-iframe","3p-promise","prv:a-modal-framework-constants","a-modal-framework-utils").register("a-modal-framework-content",function(b,f,e,c,d,k,g,a){function p(a){switch(a){case "inline":a=f;break;case "preload":a=e;break;case "ajax":a=
c;break;case "iframe":a=d;break;default:a=n}return a}function r(a){var b=p(a._content.type||"inline");return b?b.getContent(a._content,a._contentContainer):k.reject(g.errorMessages.INVALID_TYPE)}return{addContent:function(c){var d=r(c);a.setContentStatus(c,g.contentStatusCodes.CONTENT_LOADING);d.then(function(){a.setContentStatus(c,g.contentStatusCodes.CONTENT_LOADED);b.trigger("a:"+c._type+":"+c._name+":contentUpdated",c)}).catch(function(d){a.setContentStatus(c,g.contentStatusCodes.CONTENT_LOAD_FAILED);
b.trigger("a:"+c._type+":"+c._name+":contentUpdateFailed",c,d);throw Error(d);})},updateContent:function(){},removeContent:function(){},abortContentRequest:function(c){var d=p(c._content.type||"inline");d&&d.abortContent(c._content);a.setContentStatus(c,g.contentStatusCodes.NO_CONTENT);b.trigger("a:"+c._type+":"+c._name+":contentAborted",c)}}});h.when("A","prv:a-modal-framework-constants","a-modal-framework-exports","a-modal-framework-templates").register("a-modal-framework-accessibility",function(b,
f,e,c){function d(a){var b=a._frameworkWrapper,d=[];a._overlayWrapper.find(f.TABBABLE_SELECTOR+", iframe").not("[tabindex\x3d'-1']").each(function(){if(g(this).is("iframe")){var a=g(this.contentDocument||this.contentWindow.document).find(f.TABBABLE_SELECTOR).not("[tabindex\x3d'-1']");d=d.concat(a.toArray())}else d.push(this)});var e=g(d);0<e.length?(b.find("."+f.DUMMY_FOCUSABLE_ELEMENT_CLASS).remove(),a._firstFocusableElement=e.first(),a._lastFocusableElement=e.last()):0===b.find("."+f.DUMMY_FOCUSABLE_ELEMENT_CLASS).length&&
(b=g(c.dummyFocusableElement).appendTo(b),a._firstFocusableElement=a._lastFocusableElement=b)}function k(a){var c=g(a.target);a=a.data.overlay;c.is(a._startAnchor)?(a._lastFocusableElement.focus(),b.trigger("a:"+a._type+":"+a._name+":loopToLastItem")):c.is(a._endAnchor)&&(a._firstFocusableElement.focus(),b.trigger("a:"+a._type+":"+a._name+":loopToFirstItem"))}var g=b.$;return{setupFocusTrap:function(a){var b=a._frameworkWrapper;"persistent"!==a._dismissStrategy&&(a._startAnchor=g(c.startAnchor).prependTo(b));
var e=a._a11yAttrs,f;for(f in e)e.hasOwnProperty(f)&&0===f.indexOf("aria-")&&a._frameworkWrapper.attr(f,e[f]);d(a);"persistent"!==a._dismissStrategy&&(a._endAnchor=g(c.endAnchor).appendTo(b));a._startAnchor&&a._startAnchor.bind("focusin",{overlay:a},k);a._endAnchor&&a._endAnchor.bind("focusin",{overlay:a},k)},setFocus:function(a){var b=a._frameworkWrapper.find("."+e.CLOSE_TRIGGER_CLASS);0<b.length?b.focus():a._firstFocusableElement.focus();"persistent"!==a._dismissStrategy&&(g("#a-page").attr("aria-hidden",
"true"),a._frameworkWrapper.attr("aria-modal",!0))},resetFocus:function(a){var c=g(document.activeElement),d=c.closest(a._frameworkWrapper).length;c=c.is("body");if(d||c)g(m).scrollTop(a._scrollPosition),b.onScreen(a._lastActiveParent,0)&&a._lastActiveParent.is(":visible")&&(a._lastActiveParent.focus(),g(m).scrollTop(a._scrollPosition));"persistent"!==a._dismissStrategy&&(g("#a-page").attr("aria-hidden","false"),a._frameworkWrapper.attr("aria-modal",!1))},updateFocusableElements:d}});h.when("A","a-component",
"a-modal-framework-utils","prv:a-modal-framework-constants").register("a-modal-framework-base",function(b,f,e,c){var d=b.$;return f.create({_componentName:"modalFrameworkBase",init:function(b,f,a){this._uid=e.getUniqueId();this._overlayWrapper=d(b);this._content=f;a||(a={});this._type=a.type||"modalFramework";this._name=a.name||this._uid;this._dismissStrategy=a.dismissStrategy||c.defaultOptions.DISMISS_STRATEGY;this._scrimType="persistent"===this._dismissStrategy?"none":a.scrimType||c.defaultOptions.SCRIM_TYPE;
this._hasDismissAnimation=a.hasDismissAnimation||!1;this._destroyAfterDismiss=a.destroyAfterDismiss||!1;this._a11yAttrs=a.accessibilityAttributes||{};this._overlayStatus=c.overlayStatusCodes.INACTIVE;this._contentStatus=c.contentStatusCodes.NO_CONTENT;this._presentedOnce=!1}})});h.when("A","a-modal-framework-templates","a-modal-framework-exports").register("a-modal-framework-dom-builder",function(b,f,e){var c=b.$;return{build:function(b){"none"!==b._scrimType&&"transparent"!==b._scrimType&&(b._scrim=
c(f.scrim).appendTo("body"),b._scrim.addClass("a-scrim-"+b._scrimType));var d=c(f.frameworkWrapper);"persistent"===b._dismissStrategy?b._declarativeTrigger?b._declarativeTrigger.after(d):d.appendTo("body"):d.appendTo("body");b._frameworkWrapper=d;d.data("overlayInstance",b);var g=b._overlayWrapper;d.html(g);d=d.find(c("."+e.CONTENT_WRAPPER_CLASS));0===d.length&&(d=g);b._contentContainer=d},destroy:function(b){b._scrim&&b._scrim.remove();b._frameworkWrapper.remove()}}});h.when("A","a-modal-framework-base",
"a-modal-framework-dom-builder","prv:a-modal-framework-constants","a-modal-framework-exports","a-modal-framework-utils","a-modal-framework-content","a-modal-framework-accessibility","3p-promise").register("a-modal-framework",function(b,f,e,c,d,k,g,a,p){function r(a){b.delay(function(){switch(a._scrimType){case "none":break;case "transparent":var c="click.background."+a._uid,A=b.action.start+".background."+a._uid;q(document).bind(c+" "+A,{overlay:a},function(a){var b=q(a.target);a=a.data.overlay;var c=
0===b.closest(a._frameworkWrapper).length;b=a._declarativeTrigger?0===b.closest(a._declarativeTrigger).length:!0;c&&b&&(a._dismissReason=d.dismissReasons.BACKGROUND,a.dismiss())});break;default:a._scrim.bind("click",{overlay:a},function(){a._dismissReason=d.dismissReasons.SCRIM;a.dismiss()})}});var c=a._frameworkWrapper.find("."+d.CLOSE_TRIGGER_CLASS);b.declarative.create(c,d.DISMISS_ACTION)}function l(a){switch(a._scrimType){case "none":break;case "transparent":var c="click.background."+a._uid;a=
b.action.start+".background."+a._uid;q(document).unbind(c+" "+a);break;default:a._scrim.unbind("click")}}function w(a){var b=a._lastActiveParent.closest("."+c.FRAMEWORK_WRAPPER_CLASS);b=b.length?parseInt(b[0].style.zIndex,10):c.defaultZIndex[a._dismissStrategy.toUpperCase()];a._scrim&&a._scrim.css("z-index",b+1);a._frameworkWrapper.css("z-index",b+2);a._scrim&&(a._scrim.removeClass(t),b=q(m).scrollTop(),a._scrollPosition=b,u.addClass(c.DISABLE_SCROLL_CLASS),u.css("top","-"+b+"px"));a._frameworkWrapper.removeClass(t)}
function x(a){a._scrim&&(u.removeClass(c.DISABLE_SCROLL_CLASS),u.css("top",""),a._scrim.addClass(t));a._frameworkWrapper.addClass(t)}function y(c){e.build(c);a.setupFocusTrap(c);b.on("a:"+c._type+":"+c._name+":contentUpdated a:"+c._type+":"+c._name+":contentUpdateFailed",function(b){a.updateFocusableElements(b)});b.trigger("a:"+c._type+":"+c._name+":created",c)}function z(d){d._contentStatus!==c.contentStatusCodes.CONTENT_LOADED&&g.addContent(d);w(d);a.setFocus(d);r(d);k.setOverlayStatus(d,c.overlayStatusCodes.ACTIVE);
b.trigger("a:"+d._type+":"+d._name+":presented",d);b.trigger("a:"+d._type+":presented",d);h.when("mash").execute(function(a){a.dispatchEvent({type:d._type+":willPresent",detail:{id:d._name,source:"mash-aui"}})})}function v(d){d._contentStatus!==c.contentStatusCodes.CONTENT_LOADED&&(k.setContentStatus(d,c.contentStatusCodes.NO_CONTENT),g.abortContentRequest(d));x(d);a.resetFocus(d);l(d);d._destroyAfterDismiss&&d.destroy();k.setOverlayStatus(d,c.overlayStatusCodes.INACTIVE);b.trigger("a:"+d._type+":"+
d._name+":dismissed",d);b.trigger("a:"+d._type+":dismissed",d);h.when("mash").execute(function(a){a.dispatchEvent({type:d._type+":willDismiss",detail:{id:d._name,source:"mash-aui"}})})}var q=b.$,t=b.constants.HIDE_CLASS,u=q("#a-page");return f.extend({_componentName:"modalFramework",init:function(a,b,c,d){this._super(a,b,c,d)},present:function(){this._overlayStatus!==c.overlayStatusCodes.ACTIVE&&(this._dismissReason=n,this._lastActiveParent=q(document.activeElement),this._presentedOnce||(y(this),
this._presentedOnce=!0),z(this))},dismiss:function(){if(this._overlayStatus!==c.overlayStatusCodes.INACTIVE)if(this._dismissReason||(this._dismissReason=d.dismissReasons.API_CALL),this._hasDismissAnimation){var a=this;(new p(function(c,d){b.trigger("a:"+a._type+":"+a._name+":beforeDismiss",{promiseToDismiss:{resolve:c,reject:d},dismissReason:a._dismissReason})})).then(function(){v(a)}).catch(function(b){a._dismissReason=n;if(b&&""!==b)throw Error(b);})}else v(this)},destroy:function(){e.destroy(this)},
getWrapper:function(){return this._frameworkWrapper[0]}})});h.when("A","prv:a-modal-framework-constants","a-modal-framework-exports","a-modal-framework-utils","a-modal-framework","3p-promise").register("a-modal-framework-handler",function(b,f,e,c,d,h){b.declarative(e.PRESENT_ACTION,"click",function(e){var a=e.$target;a.is(b.$(document.activeElement))||a.focus();(new h(function(a,b){var d=e.data;c.hasKeys(d,f.EXPLICIT_PARAMS)||b(f.errorMessages.MISSING_PARAMS);a(d)})).then(function(a){var b=e.$currentTarget,
c=b.data("overlayInstance");c||(c=new d(a.wrapper,a.content,a.options),b.data("overlayInstance",c));c._declarativeTrigger=c._declarativeTrigger||b;c.present()}).catch(function(a){throw Error(a);})});b.declarative(e.DISMISS_ACTION,["click","keydown"],function(c){var a=b.$(c.$currentTarget).closest("."+f.FRAMEWORK_WRAPPER_CLASS);if(0!==a.length&&(a=a.data("overlayInstance"))){var d="keydown"===c.type&&c.$event.which===b.constants.keycodes.ESCAPE;if("click"===c.type||"persistent"!==a._dismissStrategy&&
d)a._dismissReason=e.dismissReasons.CLOSE_TRIGGER,a.dismiss()}})})});
/* ******** */
(function(e){var a=window.AmazonUIPageJS||window.P,c=a._namespace||a.attributeErrors,b=c?c("AmazonUISpotButton","AmazonUI"):a;b.guardFatal?b.guardFatal(e)(b,window):b.execute(function(){e(b,window)})})(function(e,a,c){e.when("A","a-component").register("a-spot-button",function(b,a){var c=a.create({_componentName:"spotButton",init:function(b,d){this._super(b,d)},mixin:["isEmpty","size"],isEnabled:function(){return!this._$element.prop("disabled")},hide:function(){this._$element.attr("data-a-visible",
!1);return this},setStatus:function(a){var d=this._$element,c=d.data(),k=c.incrementiconclasses;c=c.disabledincrementiconclasses;var f=d.find("[data-a-selector\x3d'icon']"),g=["normal","disabled"],h={normal:k,disabled:c};if(0>b.indexOfArray(g,a))return e.error(a+" is not a valid status"),!1;b.each(g,function(a){f.removeClass(h[a]);d.prop("disabled",!1)});d.prop("disabled","disabled"===a);f.addClass(h[a]);return this},show:function(){this._$element.attr("data-a-visible",!0);return this},toggle:function(){"true"===
this._$element.attr("data-a-visible")?this.hide():this.show();return this}});return function(a,b){return new c(a,b)}})});
/* ******** */
(function(g){var c=window.AmazonUIPageJS||window.P,f=c._namespace||c.attributeErrors,e=f?f("AmazonUIStepper","AmazonUI"):c;e.guardFatal?e.guardFatal(g)(e,window):e.execute(function(){g(e,window)})})(function(g,c,f){g.when("A","jQuery","a-analytics").register("a-stepper-framework",function(e,l,c){function f(a){var b=l(a).first();if(b.data("stepperinstance"))return b.data("stepperinstance");var d={getStatus:function(){return b.data("a-value-status")},getValue:function(){return b.data("steppervalue")},
getName:function(){return b.attr("name")},getData:function(){return b.children().first().data()},setValue:function(a){p(b,a);return d},setStatus:function(a){m(b,a);return d},getElement:function(){return b.get(0)}};b.data("stepperinstance",d);return d}function q(a,b){var d=a.find('[data-a-selector\x3d"decrement"]'),e=a.find('[data-a-selector\x3d"decrement-icon"]'),r=a.find('[data-a-selector\x3d"increment"]'),g=a.find('[data-a-selector\x3d"increment-icon"]'),h=b.steppervalue,c=h-b.valuestep<b.valuemin;
b=h>=b.valuemax;h=c?"trash":"normal";var f=b?"disabled":"normal";a.attr("data-a-size");d.attr("aria-disabled",c);e.removeClass().addClass("a-icon a-icon-small-"+{normal:"remove",disabled:"remove-disabled",trash:"trash"}[h]);a.attr("data-a-decrement-status",h);r.attr("aria-disabled",b);g.removeClass().addClass("a-icon a-icon-small-"+{normal:"add",disabled:"add-disabled"}[f]);a.attr("data-a-increment-status",f)}function k(a,b){var d=a.data();b=d.steppervalue+b*d.valuestep;b={$stepperElement:a,stepperElement:a.get(),
stepper:f(a),newValue:b};e.trigger("a:stepper:value:change",b);(d=a.attr("name"))?e.trigger("a:stepper:value:change:"+d,b):c.logError("[AUI] Stepper is missing required name attribute.","WARN",e.attributionChain(a.get(0)))}function n(a,b){a.attr(b,"");a.one("animationend",function(){a.removeAttr(b)})}function m(a,b){var d=a.find('[data-a-selector\x3d"spinbutton"]'),c={loading:a.data().loadingstatelabel};if(0>e.indexOfArray(["normal","loading"],b))return g.error(b+" is not a valid status"),!1;a.attr("data-a-value-status",
b);d.attr({"aria-valuetext":c[b]})}function p(a,b){var d=a.data(),e=d.steppervalue;if(e!==b){var c=b<e,f=d.valuemin;if(!(b>(d.valuemax||Infinity)&&!c||b<f&&c)){var h=c?"data-a-animate-up":"data-a-animate-down";a.data("steppervalue",b);a.attr("data-steppervalue",b);q(a,d);e!==f||c?b===f&&c&&n(a.find('[data-a-selector\x3d"decrement-icon"]'),h):n(a.find('[data-a-selector\x3d"decrement-icon"]'),h);setTimeout(function(){var b=a.find('[data-a-selector\x3d"spinbutton"]'),e=a.find('[data-a-selector\x3d"value"]'),
c=d.steppervalue,f=d.valuemin,g=d.valuemaxreachedlabel,l=d.valueminreachedlabel,k=c;c>=d.valuemax&&(k=c+", "+g);c<=f&&(k=c+", "+l);b.attr({"aria-valuenow":c,"aria-valuetext":k});e.text(c);m(a,"normal");n(a.find('[data-a-selector\x3d"value"]'),h)},116.5)}}}e.declarative("a-stepper","click",function(a){a.$event.stopPropagation();a.$event.preventDefault()});e.declarative("a-stepper-spinbutton","keydown",function(a){var b=a.$currentTarget.closest('[data-a-component\x3d"stepper"]'),d=a.$event.which;38!==
d&&40!==d||a.$event.preventDefault();40===d&&k(b,-1);38===d&&k(b,1)});e.declarative("a-stepper-decrement","click",function(a){a=a.$currentTarget.closest('[data-a-component\x3d"stepper"]');0!==a.length&&k(a,-1)});e.declarative("a-stepper-increment","click",function(a){a=a.$currentTarget.closest('[data-a-component\x3d"stepper"]');0!==a.length&&k(a,1)});return{getStepper:f,setStatus:m,setValue:p}});"use strict";g.when("a-stepper-framework").register("a-stepper",function(e){return{getSteppersByName:function(c){return Array.prototype.map.call(document.querySelectorAll('[data-a-component\x3d"stepper"][name\x3d"'+
c+'"]'),e.getStepper)},getStepper:e.getStepper,getStepperByName:function(c){return e.getStepper(document.querySelector('[data-a-component\x3d"stepper"][name\x3d"'+c+'"]'))}}})});
/* ******** */
(function(c){var b=window.AmazonUIPageJS||window.P,d=b._namespace||b.attributeErrors,a=d?d("AmazonUIToast","AmazonUI"):b;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,b,d){});
/* ******** */
(function(f){var e=window.AmazonUIPageJS||window.P,g=e._namespace||e.attributeErrors,d=g?g("AmazonUIAnalytics","AmazonUI"):e;d.guardFatal?d.guardFatal(f)(d,window):d.execute(function(){f(d,window)})})(function(f,e,g){(function(){var d=function(a,b){var c,d;null===(d=null===(c=e.ue)||void 0===c?void 0:c.event)||void 0===d?void 0:d.call(c,a,"aui-analytics",b)},f=function(){var a;return(null===(a=e.uept)||void 0===a?void 0:a.pageType)||"Unknown"},g=function(a){var b,c=null===(b=e.getComputedStyle)||
void 0===b?void 0:b.call(e,a);if(c){b="hidden"===c.visibility;var d="0"===c.opacity;if("none"===c.display||b||d)return!1}a=a.getBoundingClientRect();b=a.height;c=a.right;b=0<a.width&&0<b;a=a.left<document.body.getBoundingClientRect().width&&0<c;return b&&a},h=function(a){a=a.getBoundingClientRect();return a.width*a.height},l=[{name:"button",cssSelector:".a-button"},{name:"carousel",cssSelector:".a-carousel-container"},{name:"price",cssSelector:".a-price"},{name:"stars",cssSelector:".a-icon-star, .a-icon-star-mini, .a-icon-star-small, .a-icon-star-medium"},
{name:"table",cssSelector:"table.a-normal, table.a-bordered, table.a-keyvalue, table.a-lineitem"}],m=function(){var a={};l.forEach(function(b){var c=document.querySelectorAll(b.cssSelector);c=Array.from(c).filter(g).length;a[b.name]=c});return a},n=function(){var a=document.querySelectorAll('[data-cy\x3d"asin-faceout-container"]'),b=0;Array.from(a).filter(g).forEach(function(a){b+=h(a)});a=h(document.body);a=b/a;a={pageType:f(),puiProportion:a};d(a,"aui_analytics.PuiProportion.1")},p=function(){var a=
document.querySelectorAll(".a-price");return Array.from(a).filter(g)},q=function(){var a=0,b=0;p().forEach(function(c){null!==c.closest('[data-csa-c-content-id\x3d"apex"]')?a++:b++});var c={pageType:f(),apexPriceCount:a,nonApexPriceCount:b};d(c,"aui_analytics.PriceCount.3")},k=function(){setTimeout(function(){var a;try{if(.01>Math.random()){var b={pageType:f(),componentCounts:m()};d(b,"aui_analytics.ComponentCount.2");n();q()}}catch(c){null===(a=e.ueLogError)||void 0===a?void 0:a.call(e,c,{logLevel:"WARN",
attribution:"AmazonUIAnalytics:initAnalytics"})}},1500)};"complete"===document.readyState?k():e.addEventListener("load",k)})()});
/* ******** */
(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="6a9cb0313c593fef0b30d23d16ed15ce07058e32"});
/* ******** */
