(function(a){var c=window.AmazonUIPageJS||window.P,d=c._namespace||c.attributeErrors,b=d?d("AmazonUIBaseJS@analytics","AmazonUI"):c;b.guardFatal?b.guardFatal(a)(b,window):b.execute(function(){a(b,window)})})(function(a,c,d){"use strict";a.register("a-analytics",function(){function b(b,f){var a=c&&c.ue&&c.ue.count;if(a&&b){var e="aui:"+b;1b.duration?"cache":"network":"unknown"))}c.performance&&"function"===typeof c.performance.getEntriesByType&&c.performance.getEntriesByType("resource").filter(b).forEach(e)});"use strict";a.declare("prv:a-declarative-analytics",{notify:function(){},setOptions:function(){}});"use strict";a.when("a-analytics","afterLoad").execute("a-doctype-test",function(b){document.doctype&&document.doctype.name&&"html"===document.doctype.name.toLowerCase()||(a.log("Missing or Invalid HTML doctype. Please refer to http://w?AUI/LogMessages#HDOCTYPE for more details.", "WARN"),b.increment("a-doctype-issue"))});"use strict";a.declare("a-event-analytics",{handle:function(){},notifyDeclarativeAction:function(){},notifyJquery:function(){}});"use strict";a.when("a-analytics","prv:p-debug","ready").execute(function(b,c){a.declare("prv:a-logTrigger",function(a){var f=c[a]&&c[a].registered||0,d=0,h=0,e;for(e in c)if(c.hasOwnProperty(e)){var g=c[e];g.end&&g.end<=f&&(d++,h+=g.end-g.start)}b.count("blocking-count:"+a,d);b.count("blocking-time:"+a,Math.round(h))})});"use strict"; a.register("prv:a-collect-p-debug",function(){var b=!1;return function(){b||(b=!0,a.when("prv:p-debug","afterLoad").execute(function(b){b=JSON&&JSON.stringify?JSON.stringify(b):"{}";a.log(b,"WARN","[AUI] p-debug")}))}});"use strict";a.register("prv:a-sampler-inclusion",function(){return{"AUI API Analytics":.01>Math.random()}});a.when("prv:a-sampler-inclusion").register("prv:a-sampler",function(b){return function(a){return b.hasOwnProperty(a)&&b[a]}});"use strict";a.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=A?(clearTimeout(f),f=null,v=C,c=a.apply(k,q),k=q=null):f||!1===d.trailing||(f=setTimeout(x,A));return c}},sequence:function(){var a=[].slice,e=a.call(arguments).reverse(),d=this;return b.reduce(e,function(k,e){return function(){var b=a.call(arguments);b.push(k);e.apply(d,b)}},function(){})},debounce:function(a,e,d){var k,q,c,g,f,v=l.fn(this,a),x=function(){var a=b.now()- g;a?@\[\\\]^`{|}~])/g;return{trim:function(a){return String.prototype.trim?String.prototype.trim.call(a):a.replace(e,"").replace(d,"")},contains:function(a,d){return-1!==(""+a).indexOf(d)},escapeHtml:function(d){return(""+d).replace(k,function(d){return a[d]})},escapeJquerySelector:function(a){return(""+a).replace(c,"\\$1")},parseJSON:function(a){return JSON.parse(a)}}}, function(b){function a(a){return b.map(e,function(d){var b=a.getAttribute(d);return b&&"["+d+"\x3d"+b+"]"}).join("")}var e=["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 d=b.indexOfArray(b.filter(a.parentNode.childNodes,function(d){return d.tagName===a.tagName}),a);if(-1===d)throw Error("can not evaluate xpath of element `"+a.tagName+(a.id?"#"+a.id: "")+"`");return b.xpath(a.parentNode)+"/"+a.tagName+"["+(d+1)+"]"},cssSelector:function(a){var d=[a.tagName||""];a.className&&a.className.trim&&d.push("."+a.className.trim().replace(/\s+/g,"."));a.id&&d.push("#"+a.id);return d.join("")},attributionChain:function(d){var e=[];do e.push(a(d)),d=d.parentElement;while(d);return b.filter(e,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(){e={};for(var a=(document.cookie||"").split(";"),k=a.length-1;0<=k;k--){var c=a[k].split("\x3d"),f=b.trim(c[0]);if(f){var g=e;c=c.slice(1).join("\x3d");c=b.trim(c);/^"/.test(c)&&(c=c.slice(1,-1).replace(/\\(.)/g,"$1"));c=n.decodeURIComponent(c);g[f]=c}}}var e;return{cookies:{get:function(d){e||a();return e[d]},getAll:function(){e||a();return b.extend({},e)},refresh:function(){e=null}}}},function(b){return{onScreen:function(a,e){if(!a)return!1;a.jquery&&(a= a[0]);if(!a)return!1;e="number"===typeof e&&!isNaN(e)&&isFinite(e)?e:100;if(1!==a.nodeType||!(a.offsetWidth||a.offsetHeight||a.getClientRects().length))return!1;var d=b.size(n),k=b.scroll(n),c=k.top,f=n.innerHeight?n.innerHeight:d.height,g=c+f;k=k.left;d=n.innerWidth?n.innerWidth:d.width;var h=k+d;c-=e;g+=e;k-=e;h+=e;var v=b.offset(a),m=b.size(a);a=v.top;e=m.height;var t=a+e;v=v.left;m=m.width;var A=v+m;return(a>=c&&ac&&t<=g||e>f&&a<=c&&t>=g)&&(v>=k&&vk&&A<=h||m>d&&v<=k&&A>=h)}}},function(b){return{isATF:function(a, e){e="number"===typeof e&&!isNaN(e)&&isFinite(e)?e:100;e=b.size(n).height+e;a=b.offset(a).top;return 0<=a&&ab[1]);return b},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 c.capabilities.ios&&/Version\/8\./.test(f.ua)},isIETouchCapable:function(){return h.isIE10Plus&&/Touch;/.test(f.ua)},isMetroIEGuess:function(){var b=!0;try{b=new ActiveXObject("htmlfile")}catch(m){b=!1}return h.isIE10Plus&& !c.capabilities.mobile&&!b}},function(b,c){h[c]=f.safeFeatureTest(b)});return h});"use strict";p.when("p-detect","prv:a-capabilities","a-util","prv:a-private-util").register("a-detect",function(c,l,f,h){var g=f.copy(c),b=function(){var b=/(?:Android\s+|Windowshop.*Android\/|Android\/)(\d+(?:\.\d+)*)/.exec(h.ua);return b&&b[1]},m={};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 b()},isAndroidKitkatPlus:function(){var c=b();return c&&null!==c.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, c){g.capabilities[c]=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,c){var f=g.capabilities.actionMode,a="string"===typeof b?b:b[f];m[c]=a?f+a:b.mouse===r?"":"mouse"+b.mouse});g.action=m;c={};"pointer"===g.capabilities.pointerPrefix?(c.touch="touch",c.pen="pen",c.mouse="mouse",c.unknown=""):"MSPointer"===g.capabilities.pointerPrefix&&(c.touch=2,c.pen=3,c.mouse=4);g.pointerType=c;return g});"use strict";p.when("prv:a-guard").register("a-defer",function(c){function l(b){var c=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;50c.now()-e;)if(h(b)===k){d=!1;return}c.delay(a,15)}var d=!1,b=[];return function(e){Array.prototype.push.apply(b,e);d||a()}}(),y=function(){var a=!1,d=[];return function(b){Array.prototype.push.apply(d,b);if(!a){for(a=!0;h(d)!==k;);a=!1}}}(),B=0,w=function(){var a=function(a,e,k){var f= a.split(" "),h=[],v=e;!0===k&&(v=function(){e.apply(n,arguments);t(a,v)});var m=this?{logError:this._logError,guard:this._guard}:{};c.each(f,function(a){"unload"===a&&(a="pagehide");(d[a]||[]).occurred?(b(a,e,m),g(a)):h.push(b(a,v,m).event)});return{event:h.join(" "),callback:v}};c.each("ready load unload afterLoad scroll resize orientationchange zoom".split(" "),function(d){a[d]=function(b,e){a.call(this,d,b,e)}});return a}();a.prototype={isListening:z,on:w,one:function(a,d){var b=a.split(" ");if(1< b.length)p.error("A.one only accepts a single event name, but was provided with: "+b.length+", ("+a+")","A.events","one");else return w(a,d,!0)},off:function(a,d){if("object"===typeof a){var b=a.event;a=a.callback}else b=a,a=d;return t(b,a)},trigger:function(a){for(var d=arguments.length,b=Array(d),e=0;eb._zimIndex&& (e._zimIndex-=e._zimIndex>this._maxZIndex-1?2:1,e.css("zIndex",e._zimIndex))}b._zimIndex=this._maxZIndex}},b=function(b){var a=b.$event;c.contains("touchstart touchend touchmove",b.type)&&(a=a.originalEvent.touches[0]);return{x:a.clientX,y:a.clientY}},m=function(c){var a=c.data.$draggable,e=a.data("a-draggables"),d=b(c);e.isMouseDown&&(a.css({left:d.x-e.clickOffset.x,top:d.y-e.clickOffset.y}),c.$event.preventDefault())},t=function(c){var a=c.$event.target||c.$event.srcElement,e=c.data.$draggable, d=e.data("a-draggables");g.acquireFocus(e);a=l(a).closest(d.$handle,e);d.isMouseDown=0d?(a.send(),d++):(b.push(a),e++,b.length>c&&(c=b.length),(a=n.ue)&&a.count&&(a.count("aui:ajax:queued",e),a.count("aui:ajax:maxQueued",c)))},complete:a,abort:function(d){d=f.indexOfArray(b,d);-1!==d&&b.splice(d,1);a()}}}(),b=function(){},e=function(b){var d=b.http,e=!1,c=!1;switch(d.readyState){case 4:c=!0;break;case 3:e=!0}var k=200===d.status||304===d.status,g=b.responsePosition;if(e||c&&k){var m= d.responseText;if(gb.http.readyState&&(clearInterval(b.pollTimer),b.callbacks.failure(b,"Request Timeout", "Request Timeout"),a.complete())}function k(a,b,d){d=d||{};d=f.extend({},h.all,h[b],d);f.each(d,function(b,d){(b||""===b)&&a.setRequestHeader(d,b)});return a}function g(b,d,e,c,f,g,h,m,l,v){var q=b.http;q.open(d,e);k(q,d,l);b.timeout=c;b.callbacks.chunk=f||b.callbacks.chunk;b.callbacks.success=g||b.callbacks.success;b.callbacks.failure=h||b.callbacks.failure;b.callbacks.abort=m||b.callbacks.abort;v&&(q.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"}},m=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}};m.prototype={send:function(){var a=this;a.http.send(a.params);a.pollTimer=setInterval(function(){if(2<=a.http.readyState&&"unknown"!==typeof a.http.responseText){var b=a.http.getResponseHeader("Content-Type");b=b?b.toLowerCase(): "";(-1!==b.indexOf("application/json-amazonui-streaming")||-1!==b.indexOf("application/amazonui-streaming-json")?e:c)(a)}},25);a.timeout="undefined"===typeof a.timeout?2E4:a.timeout;a.timeoutTimer=f.delay(d,a.timeout,a)},get:function(a,b,d,e,c,k,f,h,m){if(b){var l=a.indexOf("?"),v=a.charAt(a.length-1);-1d?"all 0ms":"all "+d+"ms "+f);4+a.css("opacity")?this.fadeIn:this.fadeOut).call(this,a,b,d,c)},slideUp:function(a,b,d,f){var e=this.animate;a.css({height:a.innerHeight(),overflow:"hidden"}); c.delay(function(){e(a,{height:0},b,d,function(){a.hide();a.css({height:"",overflow:""});f&&f()})},0)},slideDown:function(a,b,d,f){var e=a.innerHeight(),g=this.animate;a.css({height:0,overflow:"hidden"});a.show();c.delay(function(){g(a,{height:e},b,d,function(){f&&f();a.css({height:"",overflow:""})})},0)},slideToggle:function(a,b,d,c){(a.is(":visible")?this.slideUp:this.slideDown).call(this,a,b,d,c)},isAnimated:function(a){a=a.jquery?a[0]:a;return a._a&&0=g&&cg&&e<=h||a>f&&c<=g&&e>=h}var b=function(){var b={},c=0;return{get:function(c){return b[c.data("cacheKey")]},set:function(f){f.data("cacheKey")||(f.data("cacheKey",c),c++);b[f.data("cacheKey")]={top:f.offset().top, height:f.height()}},remove:function(c){c.data("cacheKey")&&delete b[c.data("cacheKey")]}}}();f();h();c.on("scroll",function(){h()});c.on("scroll",c.debounce(function(){f();h()},250));c.on("resize",h);c.on("a:image:lazyLoad",h);c.on.ready(h)});"use strict";p.register("a-image-url-key-handler",function(){return{generate:function(c,l){return c},parse:function(c){return{url:c}}}});"use strict";p.when("jQuery","a-util","a-events","a-defer","p-detect","a-image-url-key-handler").register("a-image",function(c, l,f,h,g,b){function m(a){a=c(a);var b=a.data("a-dynamic-image");if(b&&"object"===typeof b){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&&n.devicePixelRatio?n.devicePixelRatio:1,m=e.width()*h,k=e.height()*h,t=Number.MAX_VALUE,p=Number.MAX_VALUE,u=a.attr("src")||"",q,r=m/k;l.each(b,function(a,b){var d="string"===typeof a?JSON.parse(a):a;a=parseInt(d[0], 10);d=parseInt(d[1],10);a-=k;d-=m;a=1<=r?d:a;Math.abs(a)b()?90:0:n.orientation:"height"===g?k[g]=b():"width"=== g?k[g]=m():"scrollTop"===g?k[g]=n.scrollY?n.scrollY:e.scrollTop():"scrollLeft"===g?k[g]=n.scrollX?n.scrollX:e.scrollLeft():"zoom"===g&&(k[g]=t()),k[g]!==f&&(c[g]=f);return c}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 e=c(n),d={ORIENTATION_CHANGE:"orientationchange",SCROLL:"scroll",RESIZE:"resize",ZOOM:"zoom",ALL:"all"},k={scrollLeft:0, scrollTop:0,height:b(),width:m(),orientation:n.orientation===r?m()>b()?90:0:n.orientation,zoom:t()};f.on("beforeReady",function(){p(d.ALL)});var q={speed:0,degree:0,direction:"",positionX:0,positionY:0},y=[],B;e.bind("mousemove",h.throttle(function(a){a={x:a.clientX,y:a.clientY};if(B){var b=B,d=0,c=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)});4c?"W":-112.5>c?"NW":-67.5>c?"N":-22.5>c?"NE":"E",positionX:a.x,positionY:a.y};B=a}else a&&(B=a)},50));e.bind(d.SCROLL,h.throttle(function(){var a=p(d.SCROLL);f.trigger(d.SCROLL,k,a)},100));var w={};h.each([d.RESIZE,d.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=[],c=w.resize;p("resize");var e=h.diff(k,c.lastViewport);e.orientation&&b.push(d.ORIENTATION_CHANGE);e.width||e.height?b.push(d.RESIZE):l.capabilities.isIETouchCapable&&e.scrollTop&&b.push(d.RESIZE);b.length&&(c.lastViewport=h.copy(k),h.each(b,function(a){f.trigger(a,k,e)}));0===--c.pollCounter&&a(d.RESIZE)};w.resize.pollInterval=100;w.resize.maxPollCount=10;e.bind(d.RESIZE,function(a){u(d.RESIZE)});w.zoom.handler=function(){p(d.ZOOM);var b=w.zoom,c=h.diff(k,b.lastViewport);c.zoom&& (b.lastViewport=h.copy(k),f.trigger(d.ZOOM,k,c));0===--b.pollCounter&&a(d.ZOOM)};w.zoom.pollInterval=200;l.capabilities.android&&e.bind("touchcancel",function(a){2===a.originalEvent.changedTouches.length&&(w.zoom.maxPollCount=15,u(d.ZOOM))});l.capabilities.ios&&e.bind("touchend",function(a){1===a.originalEvent.touches.length&&(w.zoom.maxPollCount=1,u(d.ZOOM))});l.capabilities.ios||l.capabilities.android||e.bind("resize",function(a){w.zoom.maxPollCount=5;u(d.ZOOM)});return{viewport:function(a){a&& p(d.ALL);return h.copy(k)},cursor:function(){return h.copy(q)},scrollBarWidth:function(a){if(a||(document&&document.body&&document.body.scrollHeight?document.body.scrollHeight:0)>b()){a=document.createElement("div");a.style.visibility="hidden";a.style.width="100%";a.style.overflowX="scroll";document.body.appendChild(a);var d=a.offsetHeight;document.body.removeChild(a);return d}return 0}}});"use strict";p.when("a-util").register("a-request-animation-frame",function(c){for(var l=0,f=["ms","moz","webkit", "o"],h=0;hc.indexOfArray(h,f[b]))return!1;return!0}var f=0,h=c.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,b){var h=c.parseFunctionName(b);h||p.error.call({},"Please name all asynchronous event callbacks");if(g=g?g.split(" "):r){this.fnMap=this.fnMap||{};l(g)||p.error.call({},"That event is not supported!");var n=this;c.each(g,function(g){this.fnMap[g]=this.fnMap[g]||[];var l=this.fnMap[g][b]="a-component-event-"+f++;c.declarative(l,g,function(){try{b.apply(n,n.callbackArgs||[])}catch(a){p.logError.call({},a,"Error occurred in an asynchronous event callback","FATAL", (b.caller||"")+g+"handler:"+(h||"anonymous"))}});c.declarative.create(n._$element,l)},n)}},off:function(f,b){f=f?f.split(" "):r;this.fnMap||p.error.call({},"There are no callbacks assigned to this component");f&&b?c.each(f,function(f){try{c.declarative.remove(this._$element,this.fnMap[f][b]),delete this.fnMap[f][b]}catch(t){p.error.call({},"The component is not bound to a callback with name "+c.parseFunctionName(b)||"anonymous for event "+f)}},this):b||f?!b&&f?c.each(f,function(b){for(var c in this.fnMap[b])this.fnMap[b].hasOwnProperty(c)&& this.off(b,c);delete this.fnMap[b]},this):p.error.call({},"Please provide an event associated with the callback"):(c.declarative.remove(this._$element),delete this.fnMap)},trigger:function(f,b){this.callbackArgs=b||[];c.$.fn.trigger.call(this._$element,f)}}});"use strict";p.when("A","jQuery","a-component-mixins","a-analytics","prv:a-sampler").register("a-component",function(c,l,f,h,g){var b=c.createClass({init:function(b,f){c.contains(b,".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(b,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=b.extend(h);g&&c.mixin(h.prototype,f,g);return h}}});"use strict";p.when("A","jQuery","a-component").register("a-alert",function(c,l,f){var h=["error","success","warning","info"],g=c.map(h,function(b){return"a-alert-"+b}).join(" "),b=c.map(h,function(b){return"a-alert-inline-"+ b}).join(" "),m=document.createElement("h4");m.className="a-alert-heading";var n=l(m),r=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= n.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===c.indexOfArray(h,f)&&p.error("{API} Alert type must be one of [error, success, warning, info].","API","alert");this._$element.each(function(a, c){a=l(c);c="a-alert-";a.hasClass("a-alert-inline")?(c+="inline-",a.removeClass(b)):a.removeClass(g);a.addClass(c+f)});return this}});return function(b,a){return new r(b,a)}});"use strict";p.when("jQuery","a-component","a-form-controls-api").register("a-checkbox",function(c,l,f){var h=f.setCheckboxState,g=l.create({_componentName:"checkbox",init:function(b,c){this._super(b,c);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,c=this._$input.length;bm)return 1}return 0}}});"use strict";p.when("A","3p-promise","load").register("a-pcv",function(c,l){var f;return{getData:function(){f||(f=new l(function(c,f){var b=n.pcv.AmazonUI;b?(document.documentElement.setAttribute("data-aui-version",b), c(b)):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=this._$accessibleElement.length&&(this._$accessibleElement=this._$element.filter("[role\x3d'radio']"))},mixin:"show hide toggle isEmpty size on off trigger".split(" "),enable:function(){this._$element.removeClass("a-button-disabled");this._$coreFormElement.prop("disabled", !1);this._$coreLinkElement.unbind("click",e);this._$coreLinkElement.removeAttr("aria-disabled");return this},disable:function(){this._$element.addClass("a-button-disabled").removeClass("a-button-focus");this._$coreFormElement.prop("disabled",!0);this._$coreLinkElement.click(e);this._$coreLinkElement.attr("aria-disabled","true");return this},isEnabled:function(){return!this._$element.hasClass("a-button-disabled")},setStatus:function(a){var b=this._$element,e=[null,"normal","selected","disabled","error", "inactive"],k=0>d.indexOfArray(e,a),m="radio"===b.attr("role");if(k)return c.error(a+" is not a valid status"),!1;d.each(e,function(a){b.removeClass("a-button-"+a)});this._$coreFormElement.prop("disabled","disabled"===a);this._$accessibleElement.attr("aria-checked",function(b,k){return m?"selected"===a:k});null!==a&&b.addClass("a-button-"+a);return this},text:function(a){if(!(1>this._$contentElement.length)){if("undefined"===typeof a)return this._$contentElement.text();this._$contentElement.text(a); return this}}});return function(a,b){return new h(a,b)}});"use strict";c.when("A","a-component").register("a-toggle-button",function(d,c){function e(a){a.preventDefault()}function h(a){d.each(b,function(b){a._$element.removeClass(b)},a)}function a(a){return 0===a._$element.length||0===a._$coreFormElement.length}var b=["a-button-selected","a-button-focus"],f=c.create({_componentName:"toggleButton",init:function(a,b){this._super(a,b);this._$element=this._$element.filter(".a-button");this._$coreFormElement= this._$element.find(".a-button-inner").find("button,input");this._$coreLinkElement=this._$element.find(".a-button-inner a");this._$accessibleElement=this._$element.children(".a-button-inner").find('[role\x3d"radio"]');0>=this._$accessibleElement.length&&(this._$accessibleElement=this._$element.filter("[role\x3d'radio']"))},name:function(){return this._$coreFormElement.attr("name")},enable:function(){this._$element.removeClass("a-button-disabled");this._$coreFormElement.prop("disabled",!1);this._$coreLinkElement.unbind("click", e);return this},disable:function(){h(this);this._$element.addClass("a-button-disabled");this._$coreFormElement.prop("disabled",!0);this._$coreLinkElement.click(e);return this},setAvailable:function(){this._$element.removeClass("a-button-unavailable");return this},setUnavailable:function(){this._$element.addClass("a-button-unavailable");return this},isEnabled:function(){return!a(this)&&!this._$element.hasClass("a-button-disabled")},setSelected:function(){!a(this)&&this.isEnabled()&&(this._$element.addClass("a-button-selected a-button-focus"), this._$accessibleElement.attr("aria-checked","true"));return this},setUnselected:function(){h(this);this._$accessibleElement.attr("aria-checked","false");return this},isSelected:function(){return!a(this)&&this._$element.hasClass("a-button-selected")},isAvailable:function(){return!a(this)&&!this._$element.hasClass("a-button-unavailable")}});return function(a,b){return new f(a,b)}});"use strict";c.when("A","a-component","a-toggle-button").register("a-toggle-button-group",function(d,c,e){var f=c.create({_componentName:"toggleButtonGroup", init:function(a,b){this._super(a,b);this._$toggleGroupElement=this._$element.filter(".a-button-group, .a-button-toggle-group").eq(0);this._$toggleGroupName=(a=this._$toggleGroupElement.data("a-button-group"))?a.name:g},name:function(){return this._$toggleGroupName},getToggleButtonByName:function(a){return this.getToggleButtonBySelector(".a-button:has([name\x3d"+a+"])")},setSelected:function(a){a=this.getToggleButtonBySelector(a);a.isEnabled()&&(this.getSelected().setUnselected(),a.setSelected()); return this},getSelected:function(){return this.getToggleButtonBySelector(".a-button.a-button-selected")},getToggleButtonBySelector:function(a){return e(this._$toggleGroupElement.find(a))}});return function(a,b){return new f(a,b)}})}); /* ******** */ (function(c){var e=window.AmazonUIPageJS||window.P,f=e._namespace||e.attributeErrors,a=f?f("AmazonUIMeter@control","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,e=z?z("AmazonUICarousel@control","AmazonUI"):E;e.guardFatal?e.guardFatal(n)(e,window):e.execute(function(){n(e,window)})})(function(n,E,z){n.declare("a-carousel-constants",{ANIMATING:"animating",ANIMATION_SPEED:"animation_speed",AUTO_ADJUST_HEIGHT:"auto_adjust_height",CIRCULAR:"circular",CURRENT_PIXEL:"px",CURRENTLY_WRAPPING:"currentlyWrapping",DELAY_TIME:"delay_time",ELEMENT_CSS_CLASS:"elementCssClass",FETCHED_ITEMS:"fetchedItems", FIRST_VISIBLE_ITEM:"firstVisibleItem",HEIGHT_ANIMATION_SPEED:"height_animation_speed",HIDE_OFF_SCREEN:"hide_off_screen",INIT_EVENTS:"a:pageUpdate beforeReady",LOADING:"loading",MIN_GUTTER:"minimum_gutter_width",NAME:"name",NO_TRANSITION:"no_transition",PAGE_NUMBER:"pageNumber",PAGE_SIZE:"pageSize",PEEK_GRADIENT:"peek_gradient",PEEK_PERCENTAGE:"peek_percentage",PEEK_WIDTH:"peek_width",SET_SIZE:"set_size",SHOW_PARTIAL_NEXT:"show_partial_next",SPRINGINESS:"springiness",STATIC_LOADER_CSS_CLASS:"staticLoaderCssClass", TOTAL_PAGES:"totalPages",TOUCH_EASING:"touch_easing",TRANSITION_STRATEGY:"transitionStrategy",DISPLAY_STRATEGY:"displayStrategy",WRAP_EASING:"wrap_easing",TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX:"transitionSlideCircularFirstCardIndex",NEXT_REQUEST_SIZE:"next_request_size",LOADING_THRESHOLD_PIXELS:"loading_threshold_pixels"});"use strict";n.when("jQuery").register("a-carousel-utils",function(e){function m(f){return"string"===typeof f}function g(f){return f&&f.nodeType!==z}function d(f){return""=== f?"\x3cdiv\x3e\x3c/div\x3e":f?m(f)||g(f)?f:d(f.content):null}function k(f){f&&(m(f)||g(f)?f=!0:f.content=k(f.content));return f}return{addElementToDom:function(f,d){if(d){if(m(d))f.html(d);else if(g(d))if(e(d).hasClass("a-carousel-card-fragment")){var c=e(d).clone();f.empty().append(c.contents())}else f.empty().append(d);!0!==d&&f.removeClass("a-carousel-card-empty")}},clearElementFromItem:k,getElementFromItem:d,isElement:g,isString:m}});"use strict";n.register("a-carousel-circular-utils",function(){function e(e){var d= 0e&&(e=k+e);return e},relativeIndexFromIndex:function(e, d,k){var f=1;if(0d?f=e-d+1:e=this.items[0].width?160:this.items[0].width}};g.measure=function(f){var h=this.dom.$carousel,c=this.dom.$viewport,b={};f&&(f=f.split(" "));if(!f||-1e&&(e=1);a.setAttr("pageNumber",e);a.setAttr("totalPages",Math.ceil(a.getAttr("set_size")/b));l=a.getAttr("ajax");b>c&&(l&&l.prefetch_next_page?a.strategies.ajax.wantNextPage(a):a.strategies.ajax.wantCurrentPage(a))});a.onChange("set_size", function(b,c){var l=a.getAttr("pageSize"),e=a.getAttr("fetchedItems");a.setAttr("totalPages",Math.ceil(b/l));ba.getAttr("set_size"))return c.ajax.init(a),!1;a.measure();e.each(a.strategies,function(b){b.init(a)});c=a.getAttr("pageSize");d=a.getAttr("set_size");a.setAttr("totalPages",Math.ceil(d/c));p(a);a.setAttr("isInTab",0a.getAttr("pageNumber")&&a.dom.$container.find(".a-carousel-restart-container").hide(), a.getAttr(d.NO_TRANSITION)||a.initTouchHandling(),!0):!1};return e}}var h;f.prototype=new g;return f.prototype.constructor=f});"use strict";n.when("A","a-carousel-desktop","a-carousel-mobile").register("a-carousel-classes",function(e,m,g){return{desktop:m,mobile:g,"default":e.capabilities.mobile||e.capabilities.tablet?"mobile":"desktop"}});"use strict";n.when("A","jQuery","p-detect","a-carousel-constants").register("a-carousel-stretchygoodness",function(e,m,g,d){function k(a,b,c,d){a.getAttr("show_partial_next")&& (b-=c/10);var p=a.getAttr("minimum_gutter_width");a.getAttr("set_size");a=0;for(var f=!0;0b&&a--;return e.isFiniteNumber(a)&&0f&&(d=f);b-=c*d;a.getAttr("show_partial_next")?(a=b-l*(d+1),h&&(a+=l),h=a/c,b-=c*(.5d&&(d=c[g].outerHeight||c[g].height);d>b&&(a.updateDimensionsCache({viewport:{height:d,outerHeight:d}}),a.setAttr("maxHeight",d),1===b?a.dom.$viewport.height(d):e.animate(a.dom.$viewport,{height:d},a.getAttr("height_animation_speed"),"linear"))}else a.dom.$viewport.css("height", "")}function c(a){a.onChange("pageNumber",function(){a.getAttr("hide_off_screen")&&a.dom.$carousel.children("li").css("visibility","")});a.onChange("pageSize",function(b,c){b>c&&h(a)});a.onChange("loading",function(b){b||h(a)});a.onChange("firstVisibleItem",function(){h(a)});a.onChange("animating",function(b){if(!b&&a.getAttr("hide_off_screen")){var c=a.getAttr("firstVisibleItem")-1,d=c+a.getAttr("pageSize")-1;a.getAttr("show_partial_next")&&d++;a.dom.$carousel.children("li").each(function(a,b){a= a>=c&&a<=d;m(b).css("visibility",a?"":"hidden")})}});a.onChange("single_page_align minimum_gutter_width",function(){b(a)});a.onChange("minimum_gutter_width",function(){b(a)})}function b(a){var b=a.getDimensions(),c=b.viewport.width;b=b.getFirstCardWidth();var d=a.getAttr("minimum_gutter_width"),l=a.getAttr("set_size"),h=a.getAttr("first_item_flush_left"),g=k(a,c,b,h),m=f(a,c,b,g,d,l,h);a.setAttr("currentGutter",m);a.setAttr("pageSize",g);var v=a.dom.$carousel,n=v.children("li");d=n.length;var r=a.getAttr("totalPages"), A=a.getAttr("pageNumber"),C=a.getAttr("firstVisibleItem"),B=(A-1)*g+1;A>r?(C=(r-1)*g+1,a.setAttr("pageNumber",r),a.setAttr("firstVisibleItem",C)):C!==B&&(r=Math.ceil(C/g),C=(r-1)*g+1,a.setAttr("pageNumber",r),a.setAttr("firstVisibleItem",C));var F=C-1,G=F+g-1;a.getAttr("show_partial_next")&&G++;var H=a.getAttr("hide_off_screen"),I=m+"px",J=b+"px",z;n.each(function(a,b){z=!H||a>=F&&a<=G;b.style[e.capabilities.rtl?"marginRight":"marginLeft"]=h&&0===a?0:I;b.style.visibility=z?"":"hidden";b.style.width= J});var D;a.getAttr("first_item_flush_left")?(m=n.first().outerWidth(!0),1=l?(r=c,A=a.getAttr("single_page_align"),v.toggleClass("a-text-right","right"===A),v.toggleClass("a-text-center","center"===A),"center"===A&&n.first().css("margin-left",0)):v.removeClass("a-text-right a-text-center");r=g>=l?c:r;v.css("width",r+"px");c={carousel:{width:r,outerWidth:v.outerWidth()},items:[]};for(l=0;lb&&(c.setAttr("maxHeight",a),g.capabilities.transition?1===b?c.dom.$viewport.height(a):e.animate(c.dom.$viewport,{height:a},c.getAttr("height_animation_speed"),"linear"):c.dom.$viewport.height(a),c.updateDimensionsCache({viewport:{height:a,outerHeight:a}}))}else c.dom.$viewport.css("height", "")}function f(c){c.onChange("animating",function(b){b||k(c)});c.onChange("loading",function(b){b||k(c)});c.onChange("pageSize",function(b,a){c.dom.$carousel.children("li").slice(b).remove();if(b>a){a=c.getAttr("set_size");var e=c.getDimensions().getFirstCardWidth(),f=c.getAttr("currentGutter"),h=c.getAttr("fetchedItems"),l=c.getAttr("firstVisibleItem")-1,g=c.dom.$carousel.children("li"),u=document.createDocumentFragment();if(m.isArray(h)){for(var q=g.length;q=a&&g.removeClass("a-carousel-card-empty");u.appendChild(g[0])}c.dom.$carousel.append(u)}k(c)}});c.onChange("set_size",function(b,a){var d=c.getAttr("pageNumber"),f=c.getAttr("totalPages"),g=c.dom.$carousel.children("li");d===f&&b>a&&(g.length&&c.dom.$carousel.children("li").each(function(a,b){e.trim(b.innerHTML)||(b.className+= " a-carousel-card-empty",b.innerHTML=c.getStaticLoader())}),0===a&&h(c))});c.onChange("single_page_align minimum_gutter_width",function(){h(c)});c.onChange("minimum_gutter_width",function(){h(c)})}function h(c){var b=c.getDimensions(),a=b.viewport.width,d=b.getFirstCardWidth(),f=c.getAttr("minimum_gutter_width");b=c.getAttr("set_size");var h=c.getAttr("minimum_gutter_width");c.getAttr("set_size");h=Math.max(Math.floor(a/(d+h)),1);h=e.isFiniteNumber(h)?h:1;var l=h;"stretch"===c.getAttr("single_page_align")&& l>b&&(l=b);l=Math.ceil((a-d*l)/(l+1));e.isFiniteNumber(l)||(l=f);var g=l;c.setAttr("currentGutter",g);c.setAttr("pageSize",h);l=c.dom.$carousel;var k=l.children("li");f=k.length;d+=g;var m=f*d,v=Math.min(h,b);c.dom.$carousel.children("li").slice(v).remove();k.css("margin-left",g+"px");h>=b?(m=a,a=c.getAttr("single_page_align"),l.toggleClass("a-text-right","right"===a),l.toggleClass("a-text-center","center"===a),"center"===a&&k.first().css("margin-left",0)):l.removeClass("a-text-right a-text-center"); for(a={carousel:{width:m,outerWidth:l.outerWidth()},items:[]};f--;)a.items.push({outerWidth:d});c.updateDimensionsCache(a);c.triggerEvent("repaint")}return{repaint:h,init:function(c){var b=c.getAttr("minimum_gutter_width");b||(b=15,c.setAttr("minimum_gutter_width",b));c.setAttr("currentGutter",b);b=c.getAttr("height_animation_speed");e.isFiniteNumber(b)||c.setAttr("height_animation_speed",200);f(c);h(c);b=c.getDimensions();c.dom.$container.find(".a-carousel-left, .a-carousel-right, .a-carousel-viewport").css("height", Math.max(b.viewport.height,b.items[0]?b.items[0].height:0)+"px");b=c.getAttr("firstVisibleItem");1d?-1:1:isNaN(d)?NaN:0:NaN}function f(d,b){d.getAttr("pageNumber");d.getAttr("pageSize");var a=d.getAttr("firstVisibleItem"),c=d.getAttr("delay_time"),f=d.dom.$carousel.children("li"),h=f.filter(".a-carousel-card-empty");h.length&&d.setAttr("loading",!0);h.each(function(l,p){var w=m(p);p=f.index(p)+a-1;var k=b[p];k&&e.delay(function(){g.addElementToDom(w,g.getElementFromItem(k));l===h.length-1&&d.setAttr("loading",!1)},0+c)})}function h(d,b,a){a=a||{};var c=d.getAttr("pageNumber");if(b!== c){var f=d.getAttr("set_size"),h=d.getAttr("totalPages"),l=d.getAttr("circular"),w=d.getAttr("pageSize"),m=a.delayTime||d.getAttr("delay_time"),q=k(a.direction)||NaN;!l&&1>b?b=1:!l&&b>h?b=h:l&&1>b?b=h:l&&b>h&&(b=1);q||(q=cn||1===q&&n>=w)d.setAttr("responsiveTimerId", z),d.setAttr("animating",!1);else{var b=d.dom.$carousel.children("li").eq(n),c=d.getAttr("fetchedItems")[a];c?g.addElementToDom(b,g.getElementFromItem(c)):a=c.length){b.setAttr(d.LOADING,!0);for(var l=b.dom.$carousel.children("li"),k,m,q=a.length;q--;)if(m=a[q],null===m&&p.push(q),m&&!e.equals(m,c[q])&&!0!==m&&!0!==m.content){var n=g.getElementFromItem(m);k=l.eq(q);k.length&&(g.addElementToDom(k,n),h[q]={width:k.outerWidth(),outerWidth:k.outerWidth(!0),height:k.outerHeight(),outerHeight:k.outerHeight(!0)},a[q]=g.clearElementFromItem(m))}p.length&&(e.each(p,function(b){l.eq(b).remove(); a.splice(b,1)}),b.setAttr(d.SET_SIZE,b.getAttr(d.SET_SIZE)-p.length),b.triggerEvent("repaint"))}b.setAttr(d.FETCHED_ITEMS,a);b.updateDimensionsCache({items:h});b.setAttr(d.LOADING,!1)}}var h=e.capabilities.touch?2E3:3E3,c=e.capabilities.rtl?-1:1;return{wrapToFirst:function(b){var a=b.getAttr(d.PAGE_SIZE),e=b.getDimensions().getFirstCardWidth(),c=this;b.gotoPixel(a*e*-1,{animationDuration:0,callback:function(){b.setAttr(d.CURRENTLY_WRAPPING,!1);c.gotoPage(b,1)}})},wrapToLast:function(b){b.getAttr(d.PAGE_SIZE); var a=b.getAttr(d.TOTAL_PAGES),e=this,c=b.getDimensions().carousel.width;b.gotoPixel(c,{animationDuration:0,callback:function(){b.setAttr(d.CURRENTLY_WRAPPING,!1);e.gotoPage(b,a)}})},gotoPage:function(b,a,e){e=e||{};(void 0===e.animationDuration||0a?(a=1,e.animationDuration=Math.pow(b.getAttr(d.ANIMATION_SPEED)*b.getAttr(d.SPRINGINESS))): !f&&a>c&&(a=c,e.animationDuration=Math.pow(b.getAttr(d.ANIMATION_SPEED),b.getAttr(d.SPRINGINESS)));this.gotoIndex(b,b.getAttr(d.PAGE_SIZE)*(a-1)+1,e)},gotoIndex:function(b,a,c){c=c||{};(void 0===c.animationDuration||0a){if(f){h=-1*k;var p=function(){g&&g();l.wrapToLast(b)}}}else a>b.getAttr(d.SET_SIZE)?f&&(h=b.getAttr(d.CURRENT_PIXEL)+k,p=function(){g&&g();l.wrapToFirst(b)}):h=b.getItemOffset(a);p?(b.setAttr(d.CURRENTLY_WRAPPING,!0),c.callback=p,c.easingFunction=c.easingFunction||b.getAttr(d.WRAP_EASING),c.animationSpeed=1.3*(e.isFiniteNumber(c.animationSpeed)?c.animationSpeed:b.getAttr(d.ANIMATION_SPEED))):c.callback=g;!1!==h&&this.gotoPixel(b,h,c)},gotoPixel:function(b, a,c){var f=b.getAttr(d.CURRENT_PIXEL);if(a!==f){c=c||{};var g=c.easingFunction||"ease-out",l=c.callback;b.getViewportWidth();if(void 0!==c.animationDuration)var h=c.animationDuration;else h=e.isFiniteNumber(c.animationSpeed)?c.animationSpeed:b.getAttr(d.ANIMATION_SPEED),f=Math.abs(a-f),h=0===h?0:Math.floor(f/h*1E3);0c*a.velocityX,k=f;l&&ha&&k===l||0a?b.gotoNextPage(f):b.gotoPrevPage(f)):(!h&&(h=b.getAttr(d.SPRINGINESS),0>g&&0a.touchDeltaX)&&(l=Math.pow(Math.abs(a.touchDeltaX), h),g=0>=g?-1*l:f+l),b.gotoPixel(g,{easingFunction:b.getAttr(d.TOUCH_EASING),animationDuration:0,silent:!0}))}},init:function(b){var a=b.getAttr(d.ANIMATION_SPEED);e.isFiniteNumber(a)||b.setAttr(d.ANIMATION_SPEED,h);void 0===b.getAttr(d.WRAP_EASING)&&b.setAttr(d.WRAP_EASING,"linear");k(b);b.onChange(d.FETCHED_ITEMS,function(a,d){f(b,a,d)});b.onChange(d.SET_SIZE,function(a,d){a>d&&k(b)})}}});"use strict";n.when("A","a-carousel-utils","a-carousel-circular-utils","a-carousel-constants").register("a-carousel-transition-slidecircular", function(e,m,g,d){function k(a){var b=a.dom.$carousel.children("li").length,f=a.getAttr(d.SET_SIZE),g=f-b,l=c(a,b);0b?(b=a-b,a=d-b):(a=b-a,b=d-a);c.direction=a<=b?u.CLOCKWISE:u.COUNTER_CLOCKWISE;c.quantity=Math.min(a,b);return c}function c(b,d){return b.dom.$carousel.children("li").eq(a(b,d)-1)}function b(a,b){var c=Math.floor(a.getAttr(d.PEEK_WIDTH)||0);return a.getItemOffset(b)-c}function a(a,b){b=b||1;var c=a.getAttr(d.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX);a=a.getAttr(d.SET_SIZE);return g.relativeIndexFromIndex(b,c,a)}function p(b, f,g){if(b.getAttr(d.ANIMATING))b.once(d.ANIMATING,function(){p(b,f,g)});else{var l=b.getDimensions().items,h=Math.min(f.length,b.getAttr(d.SET_SIZE));if(!g||f.length>=g.length)b.setAttr(d.LOADING,!0),e.each(e.range(h),function(d){var h=d+1,k=f[d],B=c(b,h),r=k&&!(!0===k||!0===k.content);k&&!e.equals(k,g[d])&&B.length&&r&&(h=a(b,h),l[h]={width:B.outerWidth(),outerWidth:B.outerWidth(!0),height:B.outerHeight(),outerHeight:B.outerHeight(!0)},m.addElementToDom(B,m.getElementFromItem(k)),f[d]=m.clearElementFromItem(k))}), b.setAttr(d.LOADING,!1);b.setAttr(d.FETCHED_ITEMS,f);b.updateDimensionsCache({items:l})}}function t(a){var b={reached:!1,left:!1,right:!1};if(!(2d&&k(a)});a.onChange(d.PEEK_WIDTH,function(b,c){b!==c&&(b=a.getAttr(d.FIRST_VISIBLE_ITEM),a.gotoIndex(b))})},afterInit:function(a){f(a,this);a.strategies.display.repaint(a);a.gotoPage(a.getAttr(d.PAGE_NUMBER))},gotoPage:function(a,b,c){c=c||{};var e=a.getAttr(d.TOTAL_PAGES);0q*f.velocityX;l=b(c,k?h+l:h-l);g=Math.abs(1E3*(k?g-l:g+l)/f.velocityX);k=1.2*e.viewport().width;x(c,0>q*f.touchDeltaX?"right":"left",{animationDuration:Math.min(Math.max(g,300),k),easingFunction:c.getAttr(d.TOUCH_EASING)})},onPan:function(c,f){c.setAttr(d.ANIMATING,!0);var g=c.getAttr(d.PAGE_NUMBER),l=a(c,c.getAttr(d.FIRST_VISIBLE_ITEM));l=b(c,l);l=t(c).reached?l-q*f.touchDeltaX*.4:l-q*f.touchDeltaX;f.ended?(l={easingFunction:c.getAttr(d.TOUCH_EASING),animationSpeed:.95*e.viewport().width,silent:!0}, Math.abs(f.touchDeltaX)>=.4*c.getViewportWidth()?x(c,0>q*f.touchDeltaX?"right":"left",l):c.gotoPage(g,l)):c.gotoPixel(l,{easingFunction:c.getAttr(d.TOUCH_EASING),animationDuration:0,silent:!0})}}});"use strict";n.when("A","a-carousel-utils","a-carousel-constants").register("a-carousel-transition-freescroll",function(e,m,g){function d(a){p[a.__id]||(p[a.__id]=new t(a));return p[a.__id]}function k(b){for(var c=b.countItems(),d=[],f=0;fb){for(var e=0;e=d.length)for(var f=b.getItems(),h=c.length,l;h--;)(l=c[h])&&!e.equals(l,d[h])&&!0!==l&&!0!==l.content&&b.hasItem(f,h)&&(c[h]=b.insertFetchedItem(l,f,h));b.setAttr(g.FETCHED_ITEMS,c);a(b)} function c(a){a.attachScrollListener(function(){var c=a.hasEmptyCard();var d=a.getAttr("auto_adjust_height_freescroll"),e=a.getAttr("startIndexForHeightCheck"),f=a.countItems();c||d&&e=b.length&&f.strategies.ajax.wantCurrentPage(f);f.triggerEvent("ajaxSuccess",{url:g,params:c})}},params:c,headers:b})} function g(d){var e=d.getAttr("requestTimer");e&&(clearTimeout(e),d.setAttr("requestTimer",null))}function d(d,g){return e.isArray(d)?d:d!==k&&null!==d&&!e.objectIsEmpty(d)&&d.hasOwnProperty("data")&&e.isArray(d.data)?d.data:null}var k;return{getItems:function(d,g,c,b){var a=d.getAttr("ajax");d.setAttr("requestTimer",e.delay(m,a.fetch_delay,d,g,c,b))},wantNextPage:function(d){g(d);if(d.getAttr("ajax").prefetch_next_page){var e=d.getAttr("pageSize"),c=2*e;d.getAttr("show_partial_next")&&c++;this.want(d, (d.getAttr("pageNumber")-1)*e,c)}else this.wantCurrentPage(d)},wantPrevPage:function(d){g(d);if(d.getAttr("ajax").prefetch_next_page){var e=d.getAttr("pageSize"),c=2*e;d.getAttr("show_partial_next")&&c++;this.want(d,(d.getAttr("pageNumber")-2)*e,c)}else this.wantCurrentPage(d)},wantCurrentPage:function(d){g(d);var e=d.getAttr("pageSize"),c=d.getAttr("show_partial_next")?e+1:e;this.want(d,(d.getAttr("pageNumber")-1)*e,c)},want:function(d,e,c){if(!d.getAttr("ajaxLock")){g(d);var b=d.getAttr("ajax"), a=d.getAttr("set_size");if(b.url){var f=d.getAttr("fetchedItems"),h=b.id_list;h||(h=[]);var k=-1c?d.strategies.ajax.wantNextPage(d):d.strategies.ajax.wantPrevPage(d)});d.onChange("loading",function(e){e||d.strategies.ajax.wantCurrentPage(d)})}}});"use strict"; n.when("a-util").register("a-carousel-ajax-promise",function(e){function m(g,d){var k=g.getAttr("requestTimer");k&&clearTimeout(k);g.setAttr("requestTimer",e.delay(d,500))}return{getItems:function(g,d,k){m(g,function(){var f=g.getAttr("async_provider");f&&f(d,k).then(function(f){var c=g.getAttr("fetchedItems");e.each(f,function(b,a){c[d[a]]=b});g.setAttr("fetchedItems",c)})})},wantNextPage:function(e){var d=e.getAttr("pageSize"),g=(e.getAttr("pageNumber")-1)*d;this.want(e,g,2*d)},wantPrevPage:function(e){var d= e.getAttr("pageSize"),g=(e.getAttr("pageNumber")-2)*d;this.want(e,g,2*d)},wantCurrentPage:function(e){var d=e.getAttr("pageSize"),g=(e.getAttr("pageNumber")-1)*d;this.want(e,g,d)},want:function(g,d,k){d=Math.max(0,d);k=Math.min(d+k,g.getAttr("set_size"));for(var f=g.getAttr("fetchedItems"),h=[];de?g.strategies.ajax.wantNextPage(g):g.strategies.ajax.wantPrevPage(g)})}}});"use strict";n.when("A","a-carousel-ajax-standard","a-carousel-ajax-promise").register("a-carousel-strategies-ajax",function(e,m,g){return{standard:m,promise:g,none:{wantNextPage:e.constants.NOOP,wantPrevPage:e.constants.NOOP,wantCurrentPage:e.constants.NOOP,want:e.constants.NOOP,init:e.constants.NOOP}, "default":"standard"}});"use strict";n.when("A","a-carousel-constants").register("a-carousel-accessibility-standard-desktop",function(e,m){function g(a){var b=a.dom.$carousel,c=b.children("li"),d=a.getAttr(m.PAGE_SIZE),e=a.getAttr(m.FIRST_VISIBLE_ITEM),f=e-1,g=a.getAttr(m.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX);if(a.getAttr(m.NO_TRANSITION))return c;if(c.length<=d)return b.children("li:not(:empty), li.a-carousel-card-empty");"slideCircular"===a.getAttr(m.TRANSITION_STRATEGY)&&(f=g-e-1,0===c.length% 2&&--f);b=f=(f+2*c.length)%c.length;"peekCircular"===a.getAttr(m.DISPLAY_STRATEGY)&&--b;d=f+d;if("peekCircular"===a.getAttr(m.DISPLAY_STRATEGY)||a.getAttr(m.SHOW_PARTIAL_NEXT))d+=1;return c.slice(Math.max(b,0),Math.min(d,c.length))}function d(a,b,c,d){var h=function(){var c=g(a);(b?c.first():c.last()).find("a, button, input, select, textarea, [tabindex]:not([tabindex\x3d'-1'])").not(":disabled").first().focus();e.delay(function(){f(a)},a.getAttr(m.PAGE_SIZE)*a.getAttr(m.DELAY_TIME)+50)};if(0===c|| 0===d)e.delay(h,0);else{var k=function(b){b||(h(),a.unbind(m.ANIMATING,k))};a.onChange(m.ANIMATING,k)}}function k(a){var c=a.dom.$carousel.children("li"),d=a.getAttr(m.TRANSITION_STRATEGY),e=a.getAttr(m.SET_SIZE),f=e?{"aria-setsize":e}:{};if("swap"===d){var g=a.getAttr(m.FIRST_VISIBLE_ITEM);c.each(function(a){var c=b(this);g+a>e?(c.removeAttr("aria-setsize"),c.removeAttr("aria-posinset")):(f["aria-posinset"]=g+a,c.attr(f))})}else c.each(function(a){f["aria-posinset"]=a+1;b(this).attr(f)})}function f(a){a= a.dom.$container;a.find(".a-carousel-accessibility-page-info").html(a.find(".a-carousel-page-count").text())}function h(a,b){if(!a.getAttr(m.NO_TRANSITION)){var c=a.dom.$carousel.children("li"),d=a.getAttr(m.TRANSITION_STRATEGY);a=a.getAttr(m.DISPLAY_STRATEGY);c=c.not(b);b.attr("aria-hidden",!1);c.attr("aria-hidden",!0);if("slideCircular"===d&&"peekCircular"!==a||"slideHorizontal"===d)b.css("visibility","visible"),c.css("visibility","hidden")}}function c(a,b){if(!a.getAttr(m.CIRCULAR)){var c=a.dom.$container; c.find(".a-carousel-goto-prevpage").attr("aria-disabled",1===b?"true":"false");c.find(".a-carousel-goto-nextpage").attr("aria-disabled",b===a.getAttr(m.TOTAL_PAGES)?"true":"false")}}var b=e.$;return{init:function(a){var b=a.getAttr(m.NAME);k(a);h(a,g(a));c(a,1);e.on("a:carousel"+(b?":"+b:"")+":repaint",function(){h(a,g(a))});a.onChange(m.SET_SIZE,function(b,c){k(a)});a.onChange(m.LOADING,function(b){a.getAttr(m.ANIMATING)||a.dom.$carousel.attr("aria-busy",(!!b).toString())});a.onChange(m.ANIMATING, function(b){a.getAttr(m.LOADING)||a.dom.$carousel.attr("aria-busy",(!!b).toString());!b&&a.getAttr(m.SET_SIZE)>a.getAttr(m.PAGE_SIZE)&&(b=a.getAttr(m.TRANSITION_STRATEGY),h(a,g(a)),"slide"!==b&&k(a))});a.onChange(m.PAGE_NUMBER,function(b){c(a,b);h(a,a.dom.$carousel.children("li"))})},afterInit:function(a){f(a)},gotoPage:function(a,b,c){a.getAttr(m.NO_TRANSITION)||d(a,!0,b,c)},nextPage:function(a,b,c){a.getAttr(m.NO_TRANSITION)||d(a,!0,b,c)},prevPage:function(a,b,c){a.getAttr(m.NO_TRANSITION)||d(a, !1,b,c)}}});"use strict";n.when("A","a-carousel-constants").register("a-carousel-accessibility-standard-mobile",function(e,m){function g(e){var f=e.dom.$carousel;e=f.children(".a-carousel-card-empty");f=f.children("li").not(e);var g=f.length,c=g?{"aria-setsize":g}:{};e.attr("aria-hidden","true").removeAttr("aria-setsize").removeAttr("aria-posinset");f.each(function(b){c["aria-posinset"]=b+1;c["aria-hidden"]="false";d(this).attr(c)})}var d=e.$;e=e.constants.NOOP;return{init:function(d){g(d);d.onChange(m.SET_SIZE, function(){g(d)});d.onChange(m.LOADING,function(e){d.dom.$carousel.attr("aria-busy",(!!e).toString());e||g(d)})},gotoPage:e,nextPage:e,prevPage:e}});"use strict";n.when("A","a-carousel-accessibility-standard-desktop","a-carousel-accessibility-standard-mobile").register("a-carousel-strategies-accessibility",function(e,m,g){return{standardDesktop:m,standardMobile:g,none:{init:e.constants.NOOP,gotoPage:e.constants.NOOP,nextPage:e.constants.NOOP,prevPage:e.constants.NOOP},"default":e.capabilities.mobile|| e.capabilities.tablet?"standardMobile":"standardDesktop"}});"use strict";n.when("a-carousel-strategies-display","a-carousel-strategies-transition","a-carousel-strategies-ajax","a-carousel-strategies-accessibility").register("a-carousel-strategies",function(e,m,g,d){return{display:e,transition:m,ajax:g,accessibility:d}});"use strict";n.when("A","jQuery","a-carousel-classes","a-carousel-strategies","a-carousel-constants").register("a-carousel-framework",function(e,m,g,d,k){function f(a,b,c,d){var f= a.hasClass("a-begin"),g=0v?v:a;a!==b.leftOffset&&(d.animate(c,{left:a},0),b.leftOffset=a,b.isDragging=!0,b.dragCount++)}}function f(a){a.preventDefault();if(d.capabilities.touch||1===a.which){a=a.data.$switch;var b=a.data("a-switch-state");m(a,b.isDragging&&1b.midPoint:!b.isOn);b.isDragging= !1;t(a)}}function l(a,b,c){c={switchState:a,previousState:c};d.trigger("a:switch:"+b,c);a.name&&d.trigger("a:switch:"+a.name+":"+b,c)}function c(a){if(!a.data("a-switch-state")){var b=a.closest(".a-switch-row"),c=a.children(".a-switch-control"),d=b.find(".a-switch-label"),e=d.siblings("input"),k=e.attr("name"),l=b.hasClass("a-active"),g=!b.hasClass("a-disabled"),h=r.left,f=(a.width()-c.width()+r.right)*z;a.data("a-switch-state",{input:e,container:b,control:c,label:d,isDragging:!1,rightBoundary:f, leftBoundary:h,midPoint:f/2,initialX:null,leftOffset:l?f:h,maxLeftOffset:r.maxLeftOffset,isOn:l,isEnabled:g,name:k,dragCount:0,clicked:!1})}}function m(a,b){c(a);a=a.data("a-switch-state");var e=a.isOn,k=b!==a.isOn;a.isOn=b;var f=a.control,h=a.maxLeftOffset,g=a.isOn?a.rightBoundary:a.leftBoundary;g=h&&g>h?h:g;d.animate(f,{left:g},300,"ease-out");a.leftOffset=g;f=a.container;a.isOn?f.addClass("a-active"):f.removeClass("a-active");f=a.input;a.isOn?f.attr("checked","checked"):f.removeAttr("checked"); k&&l(a,"flip",e);b?l(a,"on",e):l(a,"off",e)}var p=function(a){a.bind("touchmove.a-switch-component",{$switch:a},g);a.bind("touchend.a-switch-component",{$switch:a},f);a.bind("touchcancel.a-switch-component",{$switch:a},f);a.bind("mouseup.a-switch-component",{$switch:a},f)},k=function(a){a.unbind("touchmove.a-switch-component");a.unbind("touchend.a-switch-component");a.unbind("touchcancel.a-switch-component");a.unbind("mouseup.a-switch-component")},x=function(a){return(a.originalEvent.touches[0]|| a.originalEvent.changedTouches[0]).pageX},n=function(a){h("body").bind("mousemove.a-switch-component",{$switch:a},g);h("body").bind("mouseup.a-switch-component",{$switch:a},f)},y=function(a){h("body").unbind("mousemove.a-switch-component",g);h("body").unbind("mouseup.a-switch-component",f)},A=function(a){return a.pageX},r={left:d.capabilities.rtl?1:-1,right:-3},z=d.capabilities.rtl?-1:1;e.when("prv:skin-vars").execute(function(a){r=a.toggle.bounds});var u=null,t=null,q=null;d.capabilities.touch?(u= p,t=k,q=x):(u=n,t=y,q=A);d.declarative("a-switch","touchstart",function(a){var b=a.$event;b.preventDefault();if(d.capabilities.touch||1===b.which){a=a.$declarativeParent;c(a);var e=a.data("a-switch-state");e.dragCount=0;e.clicked=!0;e.isDragging=!1;e.isEnabled&&(e.initialX=q(b),u(a))}});d.declarative("a-switch-label","click",function(a){a.$event.preventDefault();a=a.$target.closest(".a-switch-row").find(".a-switch");c(a);var b=a.data("a-switch-state");b.isEnabled&&m(a,!b.isOn)});e.when("ready").execute("a-switch-normalization", function(){h(".a-switch-input").each(function(){var a=h(this),b=a.next().children(".a-switch");m(b,a.prop("checked"))})});return{ensureInitialized:c,setOnState:m,setEnabled:function(a,b){c(a);a=a.data("a-switch-state");var d=a.container;b?d.removeClass("a-disabled"):d.addClass("a-disabled");a.isEnabled=b},SWITCH_STATE:"a-switch-state",SWITCH_CONTAINER_CLASS:"a-switch-row",SWITCH_CLASS:"a-switch"}})}); /* ******** */ (function(a){var f=window.AmazonUIPageJS||window.P,l=f._namespace||f.attributeErrors,b=l?l("AmazonUIProgressBar@control","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=hf&&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 u=window.AmazonUIPageJS||window.P,x=u._namespace||u.attributeErrors,b=x?x("AmazonUIPopover@base","AmazonUI"):u;b.guardFatal?b.guardFatal(p)(b,window):b.execute(function(){p(b,window)})})(function(p,u,x){p.when("A","a-popover-base-factory").register("a-popover-base-apis",function(b,f){return{show:function(b){var c=f.get(b.$trigger?b.$trigger:b);if(c)return c.show.apply(c,arguments)},hide:function(b){var c=f.get(b);if(c)return c.unlock(1),c.hide.apply(c,arguments)},get:function(b){return f.get(b)}, remove:function(b){return f.remove(b)}}});"use strict";p.when("A","a-popover-util","a-popover-objectclass","a-popover-data").register("a-popover-base-factory",function(b,f,h,c){function m(d){return e[d]?e[d]:null}function l(d,a){return new h.PopoverClass(d,a)}function g(e,k){var b=null;if("number"===typeof e)b=m(e);else if("string"===typeof e)(b=d[e]?d[e]:null)||(b=m(e));else if("object"===typeof e)if(e.$popover)b=e;else if(e=a(e),b=e.data("a-popover-id"),b||(b=e.find(".a-declarative").eq(0),b=b.length? b.data("a-popover-id"):null),b=m(b),!b){var g=e.data("action");(g=g?e.data(g):null)&&g.name&&(b=g.name,b=d[b]?d[b]:null,!b||k&&b.type!==k?b=null:(k=(k=b.attrs("currentDataStrategy"))?c.getStrategyByName(k):c.guessStrategyByAttrs(b.attrs()))&&k.reusePopover?b.$trigger[0]!==e[0]&&(b.$trigger.data("a-popover-id",null),b.$trigger=e):b=null)}return b}function q(){n||(n=l({id:-1,$popover:r,$trigger:r,immersive:!0},{isActive:function(){return!0},hideMethod:function(){this.hideChildren()},showMethod:b.constants.NOOP})); return n}var a=b.$,k=1,d={},e={},r=a("\x3cdiv id\x3d'a-popover-root' style\x3d'z-index:-1;position:absolute;' /\x3e").appendTo("body"),n;return{getRoot:q,get:function(e,d){d=d?d:this?this.type:null;return(e=g(e,d))&&d&&e.type!==d?null:e},create:function(c,h){var r=a(c),f=h.attributes||{},n=h.typeSpecificFunctions||h.variant||{};h=h.actionCheck||!1;r.data("a-popover-id");var v=f.type,t=null;!v||r.hasClass("a-declarative")&&r.data("action")&&-1!==r.data("action").indexOf(v)||(r=b.declarative.create(r, "a-"+v),c=r[0]);if(h&&r.data("action")&&-1===r.data("action").indexOf(v))return null;v&&r&&(t=g(r));if(t)return t.type!==v?null:t;r=f;c=a(c);r.type?c&&c.length?(r=b.extend({id:k++,$trigger:c,$triggerWrapper:null},r),n=b.copy(n),n=l(r,n),e[n.id]=n,n.name&&(d[n.name]=n),c.data("a-popover-id",n.id),c=n.$trigger.closest(".a-popover"),c=!n.attrs("immersive")&&c.length?m(c.data("a-popover-id"))||q():q(),n.parent=c,c.children.push(n)):n=null:n=null;return n},remove:function(a,k){a=this.get(a);var c=!1;if(a){c= a.id;if(a&&-1b.now()-g||(g=b.now(),b.delay(function(){l(document.activeElement).hasClass("a-popover-start")&&k.getLastTabbable().focus()}, 0))}});b.declarative("a-popover-a11y","focusin",function(a){var k=m(a.$target);k&&a.$target.length&&a.$target.hasClass("a-popover-end")&&!(q&&100>b.now()-q)&&(q=b.now(),b.delay(function(){k.getFirstTabbable().focus()},0))});b.declarative("a-popover-a11y","keydown",function(a){var k=a.$event;k.keyCode===b.constants.keycodes.ESCAPE&&(a=m(a.$target),k.preventDefault(),a&&a.hide())});b.on("resize zoom",function(){h.getRoot().updatePosition()});if(c.isSafari&&b.capabilities.ios)b.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=b.$(u);a.scrollTop(a.scrollTop()+1)})})});"use strict";p.when("A","a-popover-base-apis","a-popover-base-handlers").register("a-popover-base",function(b,f,h){return f});"use strict";p.when("A","a-popover-util","a-popover-data","a-popover-position","a-popover-lightbox","a-popover-animate","prv:a-capabilities").register("a-popover-objectclass",function(b, f,h,c,m,l,g){function q(a,c){var g=-1,h=[1],n=-2;this.parent=null;this.children=[];this.typeSpecificFunctions={};this.attributes={position:"triggerVertical",alone:!1,immersive:!1,restoreFocusOnHide:!0};var q=function(){this.isActive()?this._willTriggerEvents&&f.trigger("visible",this):f.trigger("invisible",this);return this},v=function(a,e){var c=this.isActive(),g=this.getDataStrategy(),l=!this.$popover,n=e||l;e=!1;a=a||n;if(!n)for(var f=h.length;f--&&!n;)n=!r[h[f]];n&&(n=z.apply(this),n=d(n),l|| (g.unloadContent(this),this.$container.remove(),e=!0),d("body").append(n),this.$container=n,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")||(n=parseInt(this.parent.$popover.css("z-index"), 10),b.isFiniteNumber(n)||(n=this.parent.attrs("immersive")?1010:0),f=this.$trigger.closest(".a-sheet-web"),1===f.length&&(f=parseInt(f.css("z-index")),b.isFiniteNumber(f)&&(n=Math.max(f,n))),n=Math.max(299,100+n),this.$popover.css("z-index",n));if(g.shouldRefreshContent(this)||a)e||g.unloadContent(this),g.loadContent(this,l);this.typeSpecificFunctions.updateDimensions!==k&&this.typeSpecificFunctions.updateDimensions.apply(this);h=[];c&&t.call(this,[],!1);return this},t=function(a,d){function c(){g.updatePosition(); var k=g.attrs("navigate");!d&&k&&g.attrs("navigate",!1);l.call(g,q,a);d&&f.trigger("show",g);m&&m.apply(g,a);d&&f.trigger("afterShow",g);g.$popover.attr("aria-hidden","false");"tooltip"!==g.type&&e.attr("aria-hidden","true");!d&&k&&g.attrs("navigate",k);n=2}var g=this;d=!!d;var h=g.typeSpecificFunctions,l=h.showMethod!==k?h.showMethod:p,r=h.beforeShowMethod!==k?h.beforeShowMethod:null,m=h.afterShowMethod!==k?h.afterShowMethod:null;n=1;g._willTriggerEvents=d;g.attrs("originalFocus",document.activeElement); g.$popover.css("visibility","hidden").addClass("a-popover-hidden").show();r&&r.apply(g,a);g.attrs("synchronous")?c():b.delay(function(){c()},0)};this.show=function(){var a=this,d=a.attrs("lightboxOptions")||null;if(a.isActive()||l.isAnimating(a))return this;a.lock(1);d&&m.lock(1);a.parent.$container&&a.parent.$container.is(".a-popover")&&a.parent.$container.attr("aria-hidden","true");a.attrs("alone")&&b.each(a.parent.children,function(d){d.isActive()&&d.id!==a.id&&!d.attrs("modeless")&&d.unlock().hide()}); f.trigger("beforeShow",a);if(!a.$container||a.isDirty()||a.getDataStrategy().shouldRefreshContent(a))f.trigger("refresh",a),v.call(a);if(a.draggable){var e=a.$container;b.draggable(e,{handle:e.find(".a-popover-draggable-handle")})}d&&m.show(b.extend({popover:a},d));t.call(a,arguments,!0);b.delay(function(){a.unlock(1);d&&m.unlock(1)},0);return this};this.hide=function(){var a=this,g=a.typeSpecificFunctions,c=g.hideMethod!==k?g.hideMethod:w,h=g.beforeHideMethod!==k?g.beforeHideMethod:null,r=g.afterHideMethod!== k?g.afterHideMethod:null,v=a.attrs("lightboxOptions")||null;if(!a.isActive()||a.isLocked()||l.isAnimating(a))return this;n=-1;a.hideChildren();f.trigger("beforeHide",a);h&&h.apply(a,arguments);c.call(a,q,arguments);f.trigger("hide",a);b.delay(function(){function k(){var e=null;"dropdown"===a.type?e=a.$trigger:a.$trigger&&d(a.$trigger).length&&(e=a.$trigger.is("a, input, button")?a.$trigger:a.$trigger.find("a, input, button"));e&&e.length||(e=d(a.attrs("originalFocus")));!e.length||A&&!e.is(":visible")|| b.delay(function(){("secondary-view"===a.type||b.onScreen(e,0))&&e.focus()},400)}r&&r.apply(a,arguments);a.$popover.attr("aria-hidden","true");"tooltip"!==a.type&&e.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")?m.show(b.extend({popover:a.parent},v)):m.hide(v));f.trigger("afterHide",a);n=-2;a.attrs("restoreFocusOnHide")&&k()},0);return this};this.update=function(a){var d="string"=== typeof a?{content:a}:b.copy(a),e=this.attrs();a=this.getDataStrategy();b.each(d,function(a,d){(a&&!e[d]||e[d]&&e[d]!==a)&&h.push(d)});this.isDirty()&&(d=b.extend({},e,d),this.attrs(d),this.getDataStrategy(d),this.$popover&&a.unloadContent(this),this.isActive()&&(v.call(this,!0),this.focus()));return this};this.refresh=function(a,d){return v.call(this,a||!0,d||!1)};this.isActive=function(){return 1<=n};this.isVisible=function(){return 2===n};this.isContentLoading=function(){return 3===n};this.setContentLoading= function(){n=3};this.isContentLoaded=function(){return 4===n};this.setContentLoaded=function(){n=4};this.isDirty=function(){return 0n&&k.css({height:n+"px","overflow-y":"scroll"})}f.trigger("afterUpdatePosition",a);f.trigger("positionUpdated",a);b.each(a.children,function(a){a.isActive()&&a.updatePosition()})};a.attrs("immersive")&&v?(e.css({top:0,left:0}),b.delay(function(){h()},0)):h()}return a};n.attrs=function(a,d){var e=this;if(d===k&&"object"!== typeof a)return a?"string"===typeof a?this.attributes[a]!==k?this.attributes[a]:null:null:this.attributes;"object"===typeof a?b.each(a,function(a,d){e.attrs(d,a)}):"string"===typeof a&&(this.attributes[a]=d,e[a]=d);return this};n.hideChildren=function(){b.each(this.children,function(a){a.unlock(1);a.hide()});return this};n.getFirstTabbable=function(){return this.$popover.find('[data-action\x3d"a-popover-close"]').add(a(this)).first()};n.getLastTabbable=function(){return a(this).last()};n.focus=function(){var a= this,e=d(u),k=e.scrollTop(),g=a.$popover.offset().top;t&&k>g&&e.scrollTop(g);b.delay(function(){a.getFirstTabbable().focus()},0);return this};return{PopoverClass:q}});"use strict";p.when("jQuery","ready").register("a-changeover",function(b){b(document).delegate(".a-changeover:not(.a-changeover-manual)","webkitAnimationEnd animationend click touchstart",function(b){this.style.display="none"})});"use strict";p.when("A").register("a-dropdown-base-positions",function(b){return{positionStrategy:function(f){var h= f.$popover,c=f.$trigger,m=f.measure;f=h.find(".a-popover-inner");f.css({"min-width":"0px",width:"auto",height:"auto"});var l=c.nextAll(".a-button-dropdown");l.length||(l=c.closest(".a-button-group"));c=m(h,l);m=c.windowWidth-(c.triggerLeft+c.popoverWidth);l=c.windowWidth-c.triggerLeft-c.triggerWidth;var g=c.triggerLeft,q={},a=c.triggerTop-c.windowTop,k=c.windowBottom-c.triggerBottom,d=h.find(".a-popover-inner");a>k&&kk?d.addClass("a-lgtbox-vertical-scroll"):d.removeClass("a-lgtbox-vertical-scroll");f.hasClass("a-lgtbox-vertical-scroll")&&-1m&&g>l?c.triggerRight-c.popoverWidth:c.triggerLeft;return q}}});"use strict"; p.when("A","a-dropdown-base-positions").register("a-dropdown-base-view-base",function(b,f){return b.extend(f,{updateContent:function(b){"string"===typeof b?this.$popover.find(".a-popover-inner").html(b):b&&this.$popover.find(".a-popover-inner").html("").append(b)},beforeShowMethod:function(){this.parent.lock(1);var b=this;p.now("a-weblab").execute(function(c){c&&c.is("AUI_A11Y_SR_678508","T1")?"combobox"===b.$trigger.attr("role")&&b.$trigger.attr("aria-expanded",!0):b.$trigger.attr("aria-pressed", !0)})},afterShowMethod:function(){var h=this.$popover,c=h.find(".a-active");b.delay(function(){c.length?c.closest("li").focus():c=h.find("li").first().focus()},0)},beforeHideMethod:function(){this.parent.unlock(1)},afterHideMethod:function(){var b=this;p.now("a-weblab").execute(function(c){c&&c.is("AUI_A11Y_SR_678508","T1")?"combobox"===b.$trigger.attr("role")&&b.$trigger.attr("aria-expanded",!1):b.$trigger.attr("aria-pressed",!1)});this.$popover.css("width","auto")}})});"use strict";p.when("A","a-dropdown-base-view-base").register("a-dropdown-base-view", function(b,f){return f});"use strict";p.when("A","a-popover-base-factory","a-dropdown-base-view").register("a-dropdown-base-factory",function(b,f,h){function c(a,k,d){var e=['\x3cli tabindex\x3d"0" role\x3d"option"'],c=a.data("aCssClass"),h=a.data("aId"),l=a.data("aHtmlContent"),f=a.data("aImageSource"),q=JSON.stringify({stringVal:a.val()});q=['\x3ca tabindex\x3d"-1" href\x3d"javascript:void(0)" aria-hidden\x3d"true" data-value\x3d"',b.escapeHtml(q),'"'];var m=["a-dropdown-link"],p=["a-dropdown-item"]; k&&(m.push("a-active"),e.push(' aria-checked\x3d"true"'));g&&(b.capabilities.mobile||b.capabilities.tablet)&&m.push("a-list-link-after-group");g=!1;c&&p.push(c);h&&e.push(' id\x3d"'+h+'"');e.push('aria-labelledby\x3d"');e.push(d);e.push('"');q.push(' id\x3d"');q.push(d);q.push('"');e.push(' class\x3d"'+p.join(" ")+'"');e.push("\x3e");l?k=l:(k=[],f&&(m.push("a-option-has-image"),k.push('\x3cimg src\x3d"'+f+'" class\x3d"a-rich-option-image" /\x3e')),k.push(a.html()),k=k.join(""));q.push(' class\x3d"'); q.push(m.join(" "));q.push('"\x3e');q.push(k);q.push("\x3c/a\x3e");e.push(q.join(""));e.push("\x3c/li\x3e");return e.join("")}function m(a){a.jquery||(a=l(a));var k=a.children("optgroup,option:not(.a-prompt)"),d=!1,e=a[0],b=a.attr("id")?a.attr("id"):"dropdown"+q++;if(-1e.length&&(e=d.find('[aria-checked\x3d"true"]')); d=e;return{index:0m)){c=(e.data("a-user-navigated-text")||"")+String.fromCharCode(h).toLocaleLowerCase();e.data("a-user-navigated-text",c);for(var t=e.children();m 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 m=b.status;c=d.closest(".a-dropdown-container, .a-splitdropdown-container").find(".a-button");n="error"===m;m="disabled"===m;g.disabled=m;c.toggleClass("a-button-disabled",m);f(g).hasClass("a-native-splitdropdown")?m?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"):m?c.attr("aria-disabled","true"):c.removeAttr("aria-disabled");c.toggleClass("a-button-error",n)}b.native_id&&(g.id=b.native_id,h.length&&(h[0].htmlFor=b.native_id));b.id&&(e.id=b.id);b.native_css_class&&((e=a.data("a-native-class"))&&a.removeClass(e),a.addClass(b.native_css_class).data("a-native-class",b.native_css_class));b.css_class&&((e=d.data("a-class"))&& d.removeClass(e),d.addClass(b.css_class).data("a-class",b.css_class));b.label_text!==l&&(""===b.label_text?(d.find(".a-dropdown-label").remove(),a.siblings("label").remove()):(e=d.find(".a-dropdown-label"),e.length?e.text(b.label_text):d.find(".a-dropdown-prompt").before(f("\x3cspan class\x3d'a-dropdown-label' /\x3e").text(b.label_text)),h.length?h.text(b.label_text):a.before(f("\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:c,val:m,getOptions:function(c){var g=this.options.$select,a=[];c=c===l?g.children("optgroup, option:not(.a-prompt)"):f.isArray(c)?c:[c];for(var k=0,d=c.length;k|\s>/g,"\x3e")},getEndAnchorHtml:function(a){return m},getDescription:function(a){var b="",d=a.id;(a=a.aria_description)&&(b=e("a-popover-aria-description-"+d,a));return b},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(b,f){return{update:function(b,c,f){var l={};l.url=c;f.timeout&&(l.timeout=f.timeout);f.ajaxFailMsg&&(l.ajaxFailMsg=f.ajaxFailMsg);f.cache&&(l.cache=f.cache);b.update(l)},showSpinner:function(b){return f.showSpinner(b)}}});"use strict";p.when("A").register("a-popover-animate",function(b){function f(c,f){return function(){b[c].apply(b, f)}}function h(b,f){return function(){b._isAnimating=!1;f&&f()}}return{isAnimating:function(b){return b._isAnimating},animate:function(c,m,l,g,q){c._isAnimating=0a.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 l(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 g=b.$;g(u);var q=null,a=1,k=b.capabilities.mobile&&f.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=h(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=h(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,b){var d=a.$popover,e=a.$trigger;b||(b=h(d,e));e=m(b);e.left=b.triggerRight;a.attrs("popoverArrow")&& (c(d).addClass("a-arrow-right"),d.find(".a-arrow-border").css("top",b.popoverHeight/2+e.deltaTop));return e},triggerLeft:function(a,b){var d=a.$popover,e=a.$trigger;b||(b=h(d,e));e=m(b);e.left=b.triggerLeft-b.popoverWidth;e.left=0b.windowRight-b.triggerRight?this.triggerLeft(a, b):this.triggerRight(a,b)},triggerVertical:function(a,b){var c=a.$popover,d=a.$trigger;b=b?b:h(c,d);return b.triggerTop-b.windowTop>b.popoverHeight+20?this.triggerTop(a,b):this.triggerBottom(a,b)},triggerVerticalAlignLeft:function(a,b){var d=a.$popover,e=a.$trigger;b||(b=h(d,e));e={};var g=0,f=b.windowBottom-b.triggerBottom;e.left=b.triggerLeft;e.top=f>b.popoverHeight?b.triggerBottom+3:b.triggerTop-b.popoverHeight-3;if(20>e.left){var l=Math.min(20,b.triggerLeft-20);g=e.left-l;e.left=l}else e.left+ b.popoverWidth>b.windowRight-20&&(l=Math.min(20,b.windowRight-b.triggerRight+20),g=e.left+b.popoverWidth-(b.windowRight-l),e.left=b.windowRight-l-b.popoverWidth);a.attrs("popoverArrow")&&(c(d).addClass(f>b.popoverHeight?"a-arrow-bottom":"a-arrow-top"),d.find(".a-arrow-border").css("left",b.triggerWidth/2+g));return e},customPosition:function(a,b){return b.call(this,{popover:a,$popover:a.$popover,$trigger:a.$trigger,measure:h})}}});"use strict";p.when("A","a-modal-view-base","a-modal-positions","a-popover-accessibility").register("a-modal-view", function(b,f,h,c){var m=b.$;m=m("html").hasClass("a-lt-ie9");return b.extend(f,b.capabilities.touch||b.capabilities.mobile||b.capabilities.tablet||m?h.innerScroll:h.modalScroll,{skin:function(f){var g=f.attrs("id"),h=f.attrs("header")||"",a=f.attrs("hideHeader")||!1,k=f.attrs("footer"),d=f.attrs("modeless")||!1,e=f.attrs("closeButton"),l=f.attrs("closeButtonLabel")||"",m=f.attrs("hideHeaderCloseButtonLayout")||"",p=f.attrs("popoverLabel")||"",t=f.attrs("padding");f=f.attrs("ariaDescription");f={id:g, header_str:h,label_str:p,aria_description:f};p=c.getDescription(f);var u=c.getPopoverLabelHtml(f);e='\x3cbutton data-action\x3d"a-popover-close" class\x3d"'+(e?"":" a-button-close-a11y")+" a-button-close a-declarative"+(a?e?"top"===m?" a-modal-close-nohead-top":" a-button-top-right":" a-button-a11y-top-right":"")+'" aria-label\x3d"'+l+'"\x3e\x3ci class\x3d"a-icon a-icon-close"\x3e\x3c/i\x3e\x3c/button\x3e';h=!a||u?"\x3cheader"+(a?"":' class\x3d"a-popover-header"')+"\x3e"+(a?"":'\x3ch4 class\x3d"a-popover-header-content'+ (d?" a-popover-draggable-handle":"")+'" id\x3d"a-popover-header-'+g+'"\x3e'+h+"\x3c/h4\x3e")+e+u+"\x3c/header\x3e":e;k=k?'\x3cdiv class\x3d"a-popover-footer"\x3e'+k+"\x3c/div\x3e":"";t="none"===t?" a-padding-none":"";a=b.capabilities.isAndroid?"":c.getStartAnchorSimplifiedHtml();e=b.capabilities.isAndroid?"":c.getEndAnchorHtml(f);l=d?"":'\x3cdiv class\x3d"a-modal-scroller a-declarative" data-action\x3d"a-popover-floating-close"\x3e';f='\x3cdiv class\x3d"a-popover a-popover-modal a-declarative'+(d? " a-modal-modeless":" ")+'" data-action\x3d"a-popover-a11y" aria-modal\x3d"true" role\x3d"dialog"'+c.getAriaLabelledByDescribedby(f)+"\x3e";return l+f+a+p+'\x3cdiv class\x3d"a-popover-wrapper"\x3e'+h+('\x3cdiv class\x3d"a-popover-inner'+t+'" id\x3d"a-popover-content-'+g+'"\x3e\x3c/div\x3e')+k+"\x3c/div\x3e"+e+"\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(b,f,h,c){function m(a){var b= a.$popover.closest(".a-modal-scroller");b.scrollTop(0).css("visibility","visible");b.bind("scroll",function(){a.updateChildrenPosition()})}function l(){var a=b.viewport();2a)return c({"padding-right":b+"px","box-sizing":"content-box"}),!0;c({"padding-right":"","box-sizing":""});return!1}function q(a){return function(b){a.css(b)}}var a=b.$,k=c.isIE10Plus&&b.capabilities.mobile, d=0;p.when("prv:skin-vars").execute(function(a){d=a.popover.optionalButtonHeight});p.declare("prv:a-model-applyHorizonalScrollStyles",g);return{innerScroll:{positionStrategy:function(e){var m=e.popover,n=e.$popover,p=e.$trigger,t=n.find(".a-popover-inner").css("height","auto"),A=n.closest(".a-modal-scroller"),y={},w=b.viewport(!0),z=.1*w.height,B=.05*w.width;w=.8*w.height;var x=m.attrs("height");m=m.attrs("min-height");n.css({height:x?x:"","min-height":m?m:""});p=e.measure(n,p);y.left=(p.windowWidth- p.popoverWidth)/2;g(y.left,B,q(n))&&(y.left=B);h.evaluateActualHeight(e,p.popoverHeight,d)>w?(m=n.find(".a-popover-header, .a-modal-close-nohead-top").outerHeight(!0)||0,x=n.find(".a-popover-footer").outerHeight(!0)||0,e=h.getOffsetTopDelta(e,z,d),w-=e,z+=e,t.css({height:w-m-x+"px","overflow-y":"auto"}),n.css({height:w,"min-height":0}),y.top=z):(y.top=(p.windowHeight-p.popoverHeight)/2,t.css("height","auto"));y.left+=p.zoomLeft;y.top+=p.zoomTop;k&&(A.css("top",a(u).scrollTop()),n.removeClass("a-popover-pan-y").addClass("a-popover-pan-x"), n=a(document).height(),t=a(document).width(),a("#"+f.LIGHTBOX_ID).css({height:n,width:t>p.popoverWidth?t:p.popoverWidth+B}));c.isMetroIEGuess&&c.isIETouchCapable&&l();return y},beforeShowMethod:b.constants.NOOP,beforeHideMethod:b.constants.NOOP},modalScroll:{positionStrategy:function(a){var d=a.$popover,e=a.$trigger,f=d.closest(".a-modal-scroller"),h=d.find(".a-popover-inner").css("height","auto");if(d.hasClass("a-popover-modal-fixed-height")){var k=d.find(".a-popover-footer");h.css("padding-bottom", k.height()+15)}h={};var m=b.viewport(!0),p=m.height;k=.1*p;m=.05*m.width;p*=.8;var u=d.height(),x=d.width();a=a.measure(d,e);h.left=(a.windowWidth-x)/2;h.top=(a.windowHeight-u)/2;g(h.left,m,q(d))&&(h.left=m);u>p?f.length?(h.top=0,d.css({position:"relative",margin:a.zoomTop+k+"px 0 "+k+"px "+(a.zoomLeft+h.left)+"px"}),h.left=0,f.css("padding-bottom","1px")):u>p&&(h.top=padding):f.length&&(d.css({position:"absolute",margin:"0px"}),f.css("padding-bottom","0px"));h.left+=a.zoomLeft;h.top+=a.zoomTop;c.isMetroIEGuess&& c.isIETouchCapable&&l();return h},beforeShowMethod:function(){m(this)},beforeHideMethod:function(){this.$popover.closest(".a-modal-scroller").css("visibility","hidden").unbind("scroll")}},util:{determineMaximumInnerHeight:function(a){var c=a.$popover;a=.8*b.viewport().height;var d=c.find(".a-popover-header, .a-modal-close-nohead-top").outerHeight(!0)||0;c=c.find(".a-popover-footer").outerHeight(!0)||0;return a-d-c},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(b,f,h,c,m){function l(a,k){var d=!1,e=!1;b.capabilities.mobile||b.capabilities.tablet||(d=c.getBool(k.modeless),e=c.getBool(k.draggable));k={modeless:d,draggable:e,type:"modal",alone:!0,immersive:!0,position:"windowCenter",header:k.header,hideHeader:k.hideHeader,footer:k.footer,padding:k.padding,width:k.width,height:k.height,"max-width":k["max-width"], "max-height":k["max-height"],"min-width":k["min-width"],"min-height":k["min-height"],closeButton:c.getBool(k.closeButton,!0),timeout:k.timeout,lightboxOptions:d?x:{lockScroll:!0,showDuration:g||q?0:null},data:k.data||{},dataStrategy:k.dataStrategy,url:k.url,manualRefresh:!!k.manualRefresh,ajaxFailMsg:k.ajaxFailMsg,cache:c.getBool(k.cache,!0),inlineContent:k.inlineContent?k.inlineContent:k.content,name:k.name,closeButtonLabel:k.closeButtonLabel?k.closeButtonLabel:"Close",hideHeaderCloseButtonLayout:k.hideHeaderCloseButtonLayout, popoverLabel:k.popoverLabel,ariaDescription:k.ariaDescription,ajaxHeaders:k.ajaxHeaders,withCredentials:c.getBool(k.withCredentials,!1),legacyNavigable:c.getBool(k.legacyNavigable,!0)};return f.create(a,{attributes:k,typeSpecificFunctions:h,actionCheck:!0})}var g=-1h-c?c-h:0},evaluateActualHeight:function(b,h,c){return b.$popover.find(".a-button-close").length&&!b.$popover.find(".a-button-close-a11y").length?h+c:h}}});"use strict";p.when("A","a-popover-view-base","a-popover-util","a-popover-accessibility").register("a-popover-view",function(b,f,h,c){var m=!0;p.when("prv:skin-vars").execute(function(b){m= b.popover.closeButtonEnabled});return b.extend(f,{skin:function(f){var g=f.attrs("id"),h=f.attrs("header"),a=m&&f.attrs("closeButton"),k=f.attrs("closeButtonLabel")||"",d=f.attrs("popoverLabel")||"",e=f.attrs("ariaDescription"),l=f.attrs("padding");f=f.attrs("popoverArrow");e={id:g,header_str:h,label_str:d,aria_description:e};b.capabilities.isAndroid&&(k=(d||h)+" "+k);a='\x3cbutton data-action\x3d"a-popover-close" class\x3d"a-button-close '+(a?"":"a-button-close-a11y")+' a-declarative" aria-label\x3d"'+ k+'"\x3e\x3ci class\x3d"a-icon a-icon-close"\x3e\x3c/i\x3e\x3c/button\x3e';var n=(k=!!h)?"a-popover-has-header":"a-popover-no-header";l="none"===l?" a-padding-none":"";f=f?'\x3cdiv class\x3d"a-arrow-border"\x3e\x3cdiv class\x3d"a-arrow"\x3e\x3c/div\x3e\x3c/div\x3e':"";d=b.capabilities.isAndroid?"":c.getStartAnchorSimplifiedHtml();var p=b.capabilities.isAndroid?"":c.getEndAnchorHtml(e);h=h?'\x3ch4 class\x3d"a-popover-header-content" id\x3d"a-popover-header-'+g+'"\x3e'+h+"\x3c/h4\x3e":"";n='\x3cdiv class\x3d"a-popover '+ n+' a-declarative" data-action\x3d"a-popover-container a-popover-a11y" aria-modal\x3d"true" role\x3d"dialog"'+c.getAriaLabelledByDescribedby(e)+"\x3e";var t=c.getDescription(e);e=c.getPopoverLabelHtml(e);return n+d+t+'\x3cdiv class\x3d"a-popover-wrapper"\x3e'+(k?'\x3cheader class\x3d"a-popover-header"\x3e'+h+a+e+"\x3c/header\x3e":"")+('\x3cdiv class\x3d"a-popover-inner'+l+'"\x3e')+(k?"":e?"\x3cheader\x3e"+a+e+"\x3c/header\x3e":a)+('\x3cdiv class\x3d"a-popover-content" id\x3d"a-popover-content-'+g+ '"\x3e\x3c/div\x3e')+"\x3c/div\x3e"+f+"\x3c/div\x3e"+p+"\x3c/div\x3e"}})});"use strict";p.when("A","a-popover-base-factory","a-popover-view","a-popover-util").register("a-popover-factory",function(b,f,h,c){function m(b,g){g={type:"popover",alone:!0,header:g.header,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"],padding:g.padding,closeButton:c.getBool(g.closeButton,!0),position:g.position||"triggerVertical", activate:g.activate||"onmouseover",timeout:g.timeout,data:g.data||{},dataStrategy:g.dataStrategy,url:g.url,manualRefresh:!!g.manualRefresh,ajaxFailMsg:g.ajaxFailMsg,cache:c.getBool(g.cache,!0),inlineContent:g.inlineContent?g.inlineContent:g.content,name:g.name,closeButtonLabel:g.closeButtonLabel?g.closeButtonLabel:"Close",popoverLabel:g.popoverLabel,ariaDescription:g.ariaDescription,focusWhenShown:c.getBool(g.focusWhenShown,!0),popoverArrow:c.getBool(g.popoverArrow,!0),restoreFocusOnHide:c.getBool(g.restoreFocusOnHide, !0)};return f.create(b,{attributes:g,typeSpecificFunctions:h,actionCheck:!0})}return{type:"popover",create:m,get:function(b){var g=f.get(b,"popover");g||"object"!==typeof b||(b=c.extractDeclarativeParams(b,"popover"))&&(g=m(b.$trigger,b.attributes||{}));return g},remove:function(b){return f.remove(b,"popover")}}});"use strict";p.when("A","a-popover-factory").register("a-popover-handlers",function(b,f){function h(a){a&&!a.destroyTimer&&(a.destroyTimer=b.delay(function(){a.hide()},250))}function c(a){a&& (clearTimeout(a.destroyTimer),a.destroyTimer=null,clearTimeout(a.parent.destroyTimer),a.parent.destroyTimer=null)}var m=b.$,l={},g=!(b.capabilities.mobile||b.capabilities.tablet)&&b.capabilities.ios;b.declarative("a-popover","click",function(a){var b=f.get(a.$declarativeParent);b&&(b.show(),a.$event.preventDefault())});b.declarative("a-popover","keydown",function(a){var c=b.constants.keycodes,d=a.$event.which;if(d===c.ENTER||d===c.SPACE)a.$event.preventDefault(),f.get(a.$declarativeParent).show()}); if(!g){var p;b.declarative("a-popover","mouseenter",function(a){var g=f.get(a.$declarativeParent);g&&"onmouseover"===g.attrs("activate")&&(c(g),p=b.delay(function(){(g=f.get(a.$declarativeParent))&&l.popover===g&&1b.cursor().speed&&c&&"onmouseover"===c.attrs("activate")&&l.popover===c&&1a;)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 0d;d++)b.push("0123456789"[Math.floor(10* Math.random())]);return b.join("")},hasKeys:function(b,d){return d.every(function(c){return c in b})}}});h.when("A","3p-promise","a-modal-framework-constants").register("a-modal-framework-inline",function(b,f,d){return{getContent:function(b){var c=b._content.source;"undefined"===typeof b._content.source&&(c=b._content);return new f(function(b,a){""!==c?b(c):a(d.errorMessages.EMPTY_CONTENT)})},abortContent:function(){}}});h.when("A","3p-promise","a-modal-framework-constants").register("a-modal-framework-preload", function(b,f,d){var c=b.$,k=b.constants.HIDE_CLASS;return{getContent:function(b){if(b._content.source){var a=c("#"+b._content.source);return new f(function(b,c){0b.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 f=window.AmazonUIPageJS||window.P,k=f._namespace||f.attributeErrors,e=k?k("AmazonUIStepper","AmazonUI"):f;e.guardFatal?e.guardFatal(g)(e,window):e.execute(function(){g(e,window)})})(function(g,f,k){g.when("A","jQuery").register("a-stepper-framework",function(e,f){function k(a,b){var d=a.find('[data-a-selector\x3d"decrement"]'),e=a.find('[data-a-selector\x3d"decrement-icon"]'),c=a.find('[data-a-selector\x3d"increment"]'),g=a.find('[data-a-selector\x3d"increment-icon"]'),h=b.steppervalue, l=b.valuemin,f=h<=l,k=h>=b.valuemax;b=0===h-b.valuestep&&0===l?"trash":f?"disabled":"normal";h=k?"disabled":"normal";a.attr("data-a-size");d.attr("aria-disabled",f);e.removeClass().addClass("a-icon a-icon-small-"+{normal:"remove",disabled:"remove-disabled",trash:"trash"}[b]);a.attr("data-a-decrement-status",b);c.attr("aria-disabled",k);g.removeClass().addClass("a-icon a-icon-small-"+{normal:"add",disabled:"add-disabled"}[h]);a.attr("data-a-increment-status",h)}function c(a,b){var d=a.data(),c=d.steppervalue, l=d.valuemax;c<=d.valuemin&&-1===b||c>=l&&1===b||e.trigger("a:stepper:value:change",{$stepperElement:a,newValue:c+b*d.valuestep})}function l(a,b){a.attr(b,"");a.one("animationend",function(){a.removeAttr(b)})}function n(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]})}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&&c(b,-1);38===d&&c(b,1)});e.declarative("a-stepper-decrement","click",function(a){a=a.$currentTarget.closest('[data-a-component\x3d"stepper"]');0!==a.length&&c(a,-1)});e.declarative("a-stepper-increment","click",function(a){a=a.$currentTarget.closest('[data-a-component\x3d"stepper"]');0!==a.length&&c(a,1)});return{setStatus:n,setValue:function(a, b){var d=a.data(),e=d.steppervalue;if(e!==b){var c=d.valuemax||Infinity,g=d.valuemin,h=d.valuestep,f=a.find('[data-a-selector\x3d"decrement-icon"]'),p=a.find('[data-a-selector\x3d"value"]'),q=b>e?"data-a-animate-down":"data-a-animate-up";h=g+h;var m;e===h&&b>h&&(m="data-a-animate-down");e>h&&b===h&&(m="data-a-animate-up");b>=g&&b<=c&&(a.data("steppervalue",b),a.attr("data-steppervalue",b),d.steppervalue=b,k(a,d),m&&l(f,m),setTimeout(function(){var b=a.find('[data-a-selector\x3d"spinbutton"]'),e=a.find('[data-a-selector\x3d"value"]'), c=d.steppervalue,h=d.valuemin,g=d.valuemaxreachedlabel,f=d.valueminreachedlabel,k=c;c>=d.valuemax&&(k=c+", "+g);c<=h&&(k=c+", "+f);b.attr({"aria-valuenow":c,"aria-valuetext":k});e.text(c);n(a,"normal");l(p,q)},116.5))}}}});"use strict";g.when("jQuery","a-stepper-framework").register("a-stepper",function(e,g){return{getStepper:function(f){var c=e(f);return 0===c.length?null:{setValue:function(f){c.each(function(){g.setValue(e(this),f)});return this},setStatus:function(f){c.each(function(){g.setStatus(e(this), f)});return this}}}}})}); /* ******** */ (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="038cd1c6278f69bbe0c4e146a02b3a5370075754"}); /* ******** */