/*

 Underscore.js 1.9.0
 http://underscorejs.org
 (c) 2009-2018 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 Underscore may be freely distributed under the MIT license.
*/
(function(w){var u=window.AmazonUIPageJS||window.P,x=u._namespace||u.attributeErrors,m=x?x("UnderscoreJS_MAKO_BuzzLib",""):u;m.guardFatal?m.guardFatal(w)(m,window):m.execute(function(){w(m,window)})})(function(w,u,x){w.execute("prologue-underscore.js",function(){(function(m,t,E){E===x&&(E=t,t=m,m=[]);w.now(t).execute("Underscore-Registrant",function(u){u===x&&w.when.apply(w,m).register(t,E)})})(["jQuery"],"MAKO._",function(m){var t={};t.$=m;t.self=t;(function(){var m="object"==typeof t&&t.self===
t&&t||"object"==typeof global&&global.global===global&&global||this||{},w=m._,u=Array.prototype,x=Object.prototype,K="undefined"!==typeof Symbol?Symbol.prototype:null,W=u.push,B=u.slice,C=x.toString,L=x.hasOwnProperty,A=Array.isArray,M=Object.keys,N=Object.create,F=function(){},b=function(a){if(a instanceof b)return a;if(!(this instanceof b))return new b(a);this._wrapped=a};"undefined"==typeof exports||exports.nodeType?m._=b:("undefined"!=typeof module&&!module.nodeType&&module.exports&&(exports=
module.exports=b),exports._=b);b.VERSION="1.9.0";var D=function(a,c,b){if(void 0===c)return a;switch(null==b?3:b){case 1:return function(b){return a.call(c,b)};case 3:return function(b,d,g){return a.call(c,b,d,g)};case 4:return function(b,d,g,h){return a.call(c,b,d,g,h)}}return function(){return a.apply(c,arguments)}},O,n=function(a,c,d){return b.iteratee!==O?b.iteratee(a,c):null==a?b.identity:b.isFunction(a)?D(a,c,d):b.isObject(a)&&!b.isArray(a)?b.matcher(a):b.property(a)};b.iteratee=O=function(a,
c){return n(a,c,Infinity)};var r=function(a,c){c=null==c?a.length-1:+c;return function(){for(var b=Math.max(arguments.length-c,0),e=Array(b),f=0;f<b;f++)e[f]=arguments[f+c];switch(c){case 0:return a.call(this,e);case 1:return a.call(this,arguments[0],e);case 2:return a.call(this,arguments[0],arguments[1],e)}b=Array(c+1);for(f=0;f<c;f++)b[f]=arguments[f];b[c]=e;return a.apply(this,b)}},P=function(a){if(!b.isObject(a))return{};if(N)return N(a);F.prototype=a;a=new F;F.prototype=null;return a},Q=function(a){return function(c){return null==
c?void 0:c[a]}},G=function(a,c){for(var b=c.length,e=0;e<b;e++){if(null==a)return;a=a[c[e]]}return b?a:void 0},X=Math.pow(2,53)-1,v=Q("length"),p=function(a){a=v(a);return"number"==typeof a&&0<=a&&a<=X};b.each=b.forEach=function(a,c,d){c=D(c,d);var e;if(p(a))for(d=0,e=a.length;d<e;d++)c(a[d],d,a);else{var f=b.keys(a);d=0;for(e=f.length;d<e;d++)c(a[f[d]],f[d],a)}return a};b.map=b.collect=function(a,c,d){c=n(c,d);d=!p(a)&&b.keys(a);for(var e=(d||a).length,f=Array(e),g=0;g<e;g++){var h=d?d[g]:g;f[g]=
c(a[h],h,a)}return f};var l=function(a){return function(c,d,e,f){var g=3<=arguments.length,h=D(d,f,4),k=e,q=!p(c)&&b.keys(c),l=(q||c).length,y=0<a?0:l-1;g||(k=c[q?q[y]:y],y+=a);for(;0<=y&&y<l;y+=a)g=q?q[y]:y,k=h(k,c[g],g,c);return k}};b.reduce=b.foldl=b.inject=l(1);b.reduceRight=b.foldr=l(-1);b.find=b.detect=function(a,c,d){c=(p(a)?b.findIndex:b.findKey)(a,c,d);if(void 0!==c&&-1!==c)return a[c]};b.filter=b.select=function(a,c,d){var e=[];c=n(c,d);b.each(a,function(a,b,d){c(a,b,d)&&e.push(a)});return e};
b.reject=function(a,c,d){return b.filter(a,b.negate(n(c)),d)};b.every=b.all=function(a,c,d){c=n(c,d);d=!p(a)&&b.keys(a);for(var e=(d||a).length,f=0;f<e;f++){var g=d?d[f]:f;if(!c(a[g],g,a))return!1}return!0};b.some=b.any=function(a,c,d){c=n(c,d);d=!p(a)&&b.keys(a);for(var e=(d||a).length,f=0;f<e;f++){var g=d?d[f]:f;if(c(a[g],g,a))return!0}return!1};b.contains=b.includes=b.include=function(a,c,d,e){p(a)||(a=b.values(a));if("number"!=typeof d||e)d=0;return 0<=b.indexOf(a,c,d)};b.invoke=r(function(a,
c,d){if(b.isFunction(c))var e=c;else if(b.isArray(c)){var f=c.slice(0,-1);c=c[c.length-1]}return b.map(a,function(a){var b=e;if(!b){f&&f.length&&(a=G(a,f));if(null==a)return;b=a[c]}return null==b?b:b.apply(a,d)})});b.pluck=function(a,c){return b.map(a,b.property(c))};b.where=function(a,c){return b.filter(a,b.matcher(c))};b.findWhere=function(a,c){return b.find(a,b.matcher(c))};b.max=function(a,c,d){var e=-Infinity,f=-Infinity,g;if(null==c||"number"==typeof c&&"object"!=typeof a[0]&&null!=a){a=p(a)?
a:b.values(a);for(var h=0,k=a.length;h<k;h++)d=a[h],null!=d&&d>e&&(e=d)}else c=n(c,d),b.each(a,function(a,b,d){g=c(a,b,d);if(g>f||-Infinity===g&&-Infinity===e)e=a,f=g});return e};b.min=function(a,c,d){var e=Infinity,f=Infinity,g;if(null==c||"number"==typeof c&&"object"!=typeof a[0]&&null!=a){a=p(a)?a:b.values(a);for(var h=0,k=a.length;h<k;h++)d=a[h],null!=d&&d<e&&(e=d)}else c=n(c,d),b.each(a,function(a,b,d){g=c(a,b,d);if(g<f||Infinity===g&&Infinity===e)e=a,f=g});return e};b.shuffle=function(a){return b.sample(a,
Infinity)};b.sample=function(a,c,d){if(null==c||d)return p(a)||(a=b.values(a)),a[b.random(a.length-1)];a=p(a)?b.clone(a):b.values(a);d=v(a);c=Math.max(Math.min(c,d),0);--d;for(var e=0;e<c;e++){var f=b.random(e,d),g=a[e];a[e]=a[f];a[f]=g}return a.slice(0,c)};b.sortBy=function(a,c,d){var e=0;c=n(c,d);return b.pluck(b.map(a,function(a,b,d){return{value:a,index:e++,criteria:c(a,b,d)}}).sort(function(a,c){var b=a.criteria,d=c.criteria;if(b!==d){if(b>d||void 0===b)return 1;if(b<d||void 0===d)return-1}return a.index-
c.index}),"value")};l=function(a,c){return function(d,e,f){var g=c?[[],[]]:{};e=n(e,f);b.each(d,function(c,b){b=e(c,b,d);a(g,c,b)});return g}};b.groupBy=l(function(a,c,d){b.has(a,d)?a[d].push(c):a[d]=[c]});b.indexBy=l(function(a,c,b){a[b]=c});b.countBy=l(function(a,c,d){b.has(a,d)?a[d]++:a[d]=1});var Y=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;b.toArray=function(a){return a?b.isArray(a)?B.call(a):b.isString(a)?a.match(Y):p(a)?b.map(a,b.identity):b.values(a):[]};b.size=function(a){return null==
a?0:p(a)?a.length:b.keys(a).length};b.partition=l(function(a,c,b){a[b?0:1].push(c)},!0);b.first=b.head=b.take=function(a,c,d){if(!(null==a||1>a.length))return null==c||d?a[0]:b.initial(a,a.length-c)};b.initial=function(a,c,b){return B.call(a,0,Math.max(0,a.length-(null==c||b?1:c)))};b.last=function(a,c,d){if(!(null==a||1>a.length))return null==c||d?a[a.length-1]:b.rest(a,Math.max(0,a.length-c))};b.rest=b.tail=b.drop=function(a,c,b){return B.call(a,null==c||b?1:c)};b.compact=function(a){return b.filter(a,
Boolean)};var z=function(a,c,d,e){e=e||[];for(var f=e.length,g=0,h=v(a);g<h;g++){var k=a[g];if(p(k)&&(b.isArray(k)||b.isArguments(k)))if(c)for(var q=0,l=k.length;q<l;)e[f++]=k[q++];else z(k,c,d,e),f=e.length;else d||(e[f++]=k)}return e};b.flatten=function(a,c){return z(a,c,!1)};b.without=r(function(a,c){return b.difference(a,c)});b.uniq=b.unique=function(a,c,d,e){b.isBoolean(c)||(e=d,d=c,c=!1);null!=d&&(d=n(d,e));e=[];for(var f=[],g=0,h=v(a);g<h;g++){var k=a[g],q=d?d(k,g,a):k;c&&!d?(g&&f===q||e.push(k),
f=q):d?b.contains(f,q)||(f.push(q),e.push(k)):b.contains(e,k)||e.push(k)}return e};b.union=r(function(a){return b.uniq(z(a,!0,!0))});b.intersection=function(a){for(var c=[],d=arguments.length,e=0,f=v(a);e<f;e++){var g=a[e];if(!b.contains(c,g)){var h;for(h=1;h<d&&b.contains(arguments[h],g);h++);h===d&&c.push(g)}}return c};b.difference=r(function(a,c){c=z(c,!0,!0);return b.filter(a,function(a){return!b.contains(c,a)})});b.unzip=function(a){for(var c=a&&b.max(a,v).length||0,d=Array(c),e=0;e<c;e++)d[e]=
b.pluck(a,e);return d};b.zip=r(b.unzip);b.object=function(a,c){for(var b={},e=0,f=v(a);e<f;e++)c?b[a[e]]=c[e]:b[a[e][0]]=a[e][1];return b};l=function(a){return function(c,b,e){b=n(b,e);e=v(c);for(var d=0<a?0:e-1;0<=d&&d<e;d+=a)if(b(c[d],d,c))return d;return-1}};b.findIndex=l(1);b.findLastIndex=l(-1);b.sortedIndex=function(a,c,b,e){b=n(b,e,1);c=b(c);e=0;for(var d=v(a);e<d;){var g=Math.floor((e+d)/2);b(a[g])<c?e=g+1:d=g}return e};l=function(a,c,d){return function(e,f,g){var h=0,k=v(e);if("number"==
typeof g)0<a?h=0<=g?g:Math.max(g+k,h):k=0<=g?Math.min(g+1,k):g+k+1;else if(d&&g&&k)return g=d(e,f),e[g]===f?g:-1;if(f!==f)return g=c(B.call(e,h,k),b.isNaN),0<=g?g+h:-1;for(g=0<a?h:k-1;0<=g&&g<k;g+=a)if(e[g]===f)return g;return-1}};b.indexOf=l(1,b.findIndex,b.sortedIndex);b.lastIndexOf=l(-1,b.findLastIndex);b.range=function(a,c,b){null==c&&(c=a||0,a=0);b||(b=c<a?-1:1);c=Math.max(Math.ceil((c-a)/b),0);for(var d=Array(c),f=0;f<c;f++,a+=b)d[f]=a;return d};b.chunk=function(a,b){if(null==b||1>b)return[];
for(var c=[],e=0,f=a.length;e<f;)c.push(B.call(a,e,e+=b));return c};var R=function(a,c,d,e,f){if(!(e instanceof c))return a.apply(d,f);c=P(a.prototype);a=a.apply(c,f);return b.isObject(a)?a:c};b.bind=r(function(a,c,d){if(!b.isFunction(a))throw new TypeError("Bind must be called on a function");var e=r(function(b){return R(a,e,c,this,d.concat(b))});return e});b.partial=r(function(a,c){var d=b.partial.placeholder,e=function(){for(var b=0,g=c.length,h=Array(g),k=0;k<g;k++)h[k]=c[k]===d?arguments[b++]:
c[k];for(;b<arguments.length;)h.push(arguments[b++]);return R(a,e,this,this,h)};return e});b.partial.placeholder=b;b.bindAll=r(function(a,c){c=z(c,!1,!1);var d=c.length;if(1>d)throw Error("bindAll must be passed function names");for(;d--;){var e=c[d];a[e]=b.bind(a[e],a)}});b.memoize=function(a,c){var d=function(e){var f=d.cache,g=""+(c?c.apply(this,arguments):e);b.has(f,g)||(f[g]=a.apply(this,arguments));return f[g]};d.cache={};return d};b.delay=r(function(a,b,d){return setTimeout(function(){return a.apply(null,
d)},b)});b.defer=b.partial(b.delay,b,1);b.throttle=function(a,c,d){var e,f,g,h,k=0;d||(d={});var q=function(){k=!1===d.leading?0:b.now();e=null;h=a.apply(f,g);e||(f=g=null)},l=function(){var l=b.now();k||!1!==d.leading||(k=l);var m=c-(l-k);f=this;g=arguments;0>=m||m>c?(e&&(clearTimeout(e),e=null),k=l,h=a.apply(f,g),e||(f=g=null)):e||!1===d.trailing||(e=setTimeout(q,m));return h};l.cancel=function(){clearTimeout(e);k=0;e=f=g=null};return l};b.debounce=function(a,c,d){var e,f,g=function(b,c){e=null;
c&&(f=a.apply(b,c))},h=r(function(h){e&&clearTimeout(e);if(d){var k=!e;e=setTimeout(g,c);k&&(f=a.apply(this,h))}else e=b.delay(g,c,this,h);return f});h.cancel=function(){clearTimeout(e);e=null};return h};b.wrap=function(a,c){return b.partial(c,a)};b.negate=function(a){return function(){return!a.apply(this,arguments)}};b.compose=function(){var a=arguments,b=a.length-1;return function(){for(var c=b,e=a[b].apply(this,arguments);c--;)e=a[c].call(this,e);return e}};b.after=function(a,b){return function(){if(1>
--a)return b.apply(this,arguments)}};b.before=function(a,b){var c;return function(){0<--a&&(c=b.apply(this,arguments));1>=a&&(b=null);return c}};b.once=b.partial(b.before,2);b.restArguments=r;var S=!{toString:null}.propertyIsEnumerable("toString"),T="valueOf isPrototypeOf toString propertyIsEnumerable hasOwnProperty toLocaleString".split(" "),U=function(a,c){var d=T.length,e=a.constructor;e=b.isFunction(e)&&e.prototype||x;var f="constructor";for(b.has(a,f)&&!b.contains(c,f)&&c.push(f);d--;)f=T[d],
f in a&&a[f]!==e[f]&&!b.contains(c,f)&&c.push(f)};b.keys=function(a){if(!b.isObject(a))return[];if(M)return M(a);var c=[],d;for(d in a)b.has(a,d)&&c.push(d);S&&U(a,c);return c};b.allKeys=function(a){if(!b.isObject(a))return[];var c=[],d;for(d in a)c.push(d);S&&U(a,c);return c};b.values=function(a){for(var c=b.keys(a),d=c.length,e=Array(d),f=0;f<d;f++)e[f]=a[c[f]];return e};b.mapObject=function(a,c,d){c=n(c,d);d=b.keys(a);for(var e=d.length,f={},g=0;g<e;g++){var h=d[g];f[h]=c(a[h],h,a)}return f};b.pairs=
function(a){for(var c=b.keys(a),d=c.length,e=Array(d),f=0;f<d;f++)e[f]=[c[f],a[c[f]]];return e};b.invert=function(a){for(var c={},d=b.keys(a),e=0,f=d.length;e<f;e++)c[a[d[e]]]=d[e];return c};b.functions=b.methods=function(a){var c=[],d;for(d in a)b.isFunction(a[d])&&c.push(d);return c.sort()};l=function(a,b){return function(c){var d=arguments.length;b&&(c=Object(c));if(2>d||null==c)return c;for(var f=1;f<d;f++)for(var g=arguments[f],h=a(g),k=h.length,l=0;l<k;l++){var m=h[l];b&&void 0!==c[m]||(c[m]=
g[m])}return c}};b.extend=l(b.allKeys);b.extendOwn=b.assign=l(b.keys);b.findKey=function(a,c,d){c=n(c,d);d=b.keys(a);for(var e,f=0,g=d.length;f<g;f++)if(e=d[f],c(a[e],e,a))return e};var Z=function(a,b,d){return b in d};b.pick=r(function(a,c){var d={},e=c[0];if(null==a)return d;b.isFunction(e)?(1<c.length&&(e=D(e,c[1])),c=b.allKeys(a)):(e=Z,c=z(c,!1,!1),a=Object(a));for(var f=0,g=c.length;f<g;f++){var h=c[f],k=a[h];e(k,h,a)&&(d[h]=k)}return d});b.omit=r(function(a,c){var d=c[0],e;b.isFunction(d)?(d=
b.negate(d),1<c.length&&(e=c[1])):(c=b.map(z(c,!1,!1),String),d=function(a,d){return!b.contains(c,d)});return b.pick(a,d,e)});b.defaults=l(b.allKeys,!0);b.create=function(a,c){a=P(a);c&&b.extendOwn(a,c);return a};b.clone=function(a){return b.isObject(a)?b.isArray(a)?a.slice():b.extend({},a):a};b.tap=function(a,b){b(a);return a};b.isMatch=function(a,c){var d=b.keys(c),e=d.length;if(null==a)return!e;a=Object(a);for(var f=0;f<e;f++){var g=d[f];if(c[g]!==a[g]||!(g in a))return!1}return!0};var H=function(a,
b,d,e){if(a===b)return 0!==a||1/a===1/b;if(null==a||null==b)return!1;if(a!==a)return b!==b;var c=typeof a;return"function"!==c&&"object"!==c&&"object"!=typeof b?!1:aa(a,b,d,e)};var aa=function(a,c,d,e){a instanceof b&&(a=a._wrapped);c instanceof b&&(c=c._wrapped);var f=C.call(a);if(f!==C.call(c))return!1;switch(f){case "[object RegExp]":case "[object String]":return""+a===""+c;case "[object Number]":return+a!==+a?+c!==+c:0===+a?1/+a===1/c:+a===+c;case "[object Date]":case "[object Boolean]":return+a===
+c;case "[object Symbol]":return K.valueOf.call(a)===K.valueOf.call(c)}f="[object Array]"===f;if(!f){if("object"!=typeof a||"object"!=typeof c)return!1;var g=a.constructor,h=c.constructor;if(g!==h&&!(b.isFunction(g)&&g instanceof g&&b.isFunction(h)&&h instanceof h)&&"constructor"in a&&"constructor"in c)return!1}d=d||[];e=e||[];for(g=d.length;g--;)if(d[g]===a)return e[g]===c;d.push(a);e.push(c);if(f){g=a.length;if(g!==c.length)return!1;for(;g--;)if(!H(a[g],c[g],d,e))return!1}else{f=b.keys(a);g=f.length;
if(b.keys(c).length!==g)return!1;for(;g--;)if(h=f[g],!b.has(c,h)||!H(a[h],c[h],d,e))return!1}d.pop();e.pop();return!0};b.isEqual=function(a,b){return H(a,b)};b.isEmpty=function(a){return null==a?!0:p(a)&&(b.isArray(a)||b.isString(a)||b.isArguments(a))?0===a.length:0===b.keys(a).length};b.isElement=function(a){return!(!a||1!==a.nodeType)};b.isArray=A||function(a){return"[object Array]"===C.call(a)};b.isObject=function(a){var b=typeof a;return"function"===b||"object"===b&&!!a};b.each("Arguments Function String Number Date RegExp Error Symbol Map WeakMap Set WeakSet".split(" "),
function(a){b["is"+a]=function(b){return C.call(b)==="[object "+a+"]"}});b.isArguments(arguments)||(b.isArguments=function(a){return b.has(a,"callee")});A=m.document&&m.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof A&&(b.isFunction=function(a){return"function"==typeof a||!1});b.isFinite=function(a){return!b.isSymbol(a)&&isFinite(a)&&!isNaN(parseFloat(a))};b.isNaN=function(a){return b.isNumber(a)&&isNaN(a)};b.isBoolean=function(a){return!0===a||!1===a||"[object Boolean]"===
C.call(a)};b.isNull=function(a){return null===a};b.isUndefined=function(a){return void 0===a};b.has=function(a,c){if(!b.isArray(c))return null!=a&&L.call(a,c);for(var d=c.length,e=0;e<d;e++){var f=c[e];if(null==a||!L.call(a,f))return!1;a=a[f]}return!!d};b.noConflict=function(){m._=w;return this};b.identity=function(a){return a};b.constant=function(a){return function(){return a}};b.noop=function(){};b.property=function(a){return b.isArray(a)?function(b){return G(b,a)}:Q(a)};b.propertyOf=function(a){return null==
a?function(){}:function(c){return b.isArray(c)?G(a,c):a[c]}};b.matcher=b.matches=function(a){a=b.extendOwn({},a);return function(c){return b.isMatch(c,a)}};b.times=function(a,b,d){var c=Array(Math.max(0,a));b=D(b,d,1);for(d=0;d<a;d++)c[d]=b(d);return c};b.random=function(a,b){null==b&&(b=a,a=0);return a+Math.floor(Math.random()*(b-a+1))};b.now=Date.now||function(){return(new Date).getTime()};A={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;","`":"\x26#x60;"};l=
b.invert(A);var V=function(a){var c=function(b){return a[b]},d="(?:"+b.keys(a).join("|")+")",e=RegExp(d),f=RegExp(d,"g");return function(a){a=null==a?"":""+a;return e.test(a)?a.replace(f,c):a}};b.escape=V(A);b.unescape=V(l);b.result=function(a,c,d){b.isArray(c)||(c=[c]);var e=c.length;if(!e)return b.isFunction(d)?d.call(a):d;for(var f=0;f<e;f++){var g=null==a?void 0:a[c[f]];void 0===g&&(g=d,f=e);a=b.isFunction(g)?g.call(a):g}return a};var ba=0;b.uniqueId=function(a){var b=++ba+"";return a?a+b:b};
b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var I=/(.)^/,ca={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},da=/\\|'|\r|\n|\u2028|\u2029/g,ea=function(a){return"\\"+ca[a]};b.template=function(a,c,d){!c&&d&&(c=d);c=b.defaults({},c,b.templateSettings);d=RegExp([(c.escape||I).source,(c.interpolate||I).source,(c.evaluate||I).source].join("|")+"|$","g");var e=0,f="__p+\x3d'";a.replace(d,function(b,c,d,g,l){f+=a.slice(e,
l).replace(da,ea);e=l+b.length;c?f+="'+\n((__t\x3d("+c+"))\x3d\x3dnull?'':_.escape(__t))+\n'":d?f+="'+\n((__t\x3d("+d+"))\x3d\x3dnull?'':__t)+\n'":g&&(f+="';\n"+g+"\n__p+\x3d'");return b});f+="';\n";c.variable||(f="with(obj||{}){\n"+f+"}\n");f="var __t,__p\x3d'',__j\x3dArray.prototype.join,print\x3dfunction(){__p+\x3d__j.call(arguments,'');};\n"+f+"return __p;\n";try{var g=new Function(c.variable||"obj","_",f)}catch(h){throw h.source=f,h;}d=function(a){return g.call(this,a,b)};d.source="function("+
(c.variable||"obj")+"){\n"+f+"}";return d};b.chain=function(a){a=b(a);a._chain=!0;return a};var J=function(a,c){return a._chain?b(c).chain():c};b.mixin=function(a){b.each(b.functions(a),function(c){var d=b[c]=a[c];b.prototype[c]=function(){var a=[this._wrapped];W.apply(a,arguments);return J(this,d.apply(b,a))}});return b};b.mixin(b);b.each("pop push reverse shift sort splice unshift".split(" "),function(a){var c=u[a];b.prototype[a]=function(){var b=this._wrapped;c.apply(b,arguments);"shift"!==a&&
"splice"!==a||0!==b.length||delete b[0];return J(this,b)}});b.each(["concat","join","slice"],function(a){var c=u[a];b.prototype[a]=function(){return J(this,c.apply(this._wrapped,arguments))}});b.prototype.value=function(){return this._wrapped};b.prototype.valueOf=b.prototype.toJSON=b.prototype.value;b.prototype.toString=function(){return String(this._wrapped)};"function"==typeof define&&define.amd&&define("underscore",[],function(){return b})})();return t._})})});
/* ******** */
(function(h){var k=window.AmazonUIPageJS||window.P,p=k._namespace||k.attributeErrors,a=p?p("MarsFamilyStripeWidgetAssets",""):k;a.guardFatal?a.guardFatal(h)(a,window):a.execute(function(){h(a,window)})})(function(h,k,p){h.when("A","a-carousel-framework","MarsFamilyStripe.ProductDataFetcher","MarsFamilyStripe.Metrics","ready").register("MarsFamilyStripe",function(a,e,f,g){function b(){var a=l("#mars-fs-subnav");if(a.length&&!a.siblings("#mars-fs-flyouts").length){var b=l("#mars-fs-flyouts");b.length&&
(b.insertAfter(a),b.removeClass("aok-hidden"),c())}}function c(){l("#mars-fs-subnav .fs-content-links").each(function(){var a=this.id;l("#"+a+"_carousel").length&&l("#"+a+"_caret_wrapper").addClass("active")})}function r(a,b,n){a.each(function(){this.id!==b+"_carousel"&&l(this).toggleClass("invisible-family-stripe",n)})}function h(a,b,n){if(!d[b]){d[b]=!0;var c=g.flyoutFetchPricesError(b);a.getPricesForFamily(b).then(function(a){var b=a.price,d=0,q=0,e;for(e in b)if(b.hasOwnProperty(e)){var m=l("#fs-card-"+
e+" .element-price"),u=b[e];m.length&&u?(m.html(u),d+=1):q+=1}g.flyoutPricesAdded(d);g.flyoutPricesBlank(q);a=a.image;for(var f in n)n.hasOwnProperty(f)&&(d=n[f],b=l("#fs-card-"+d+" .image-wrapper .fs-asin-images"),b.length&&a[d]&&(d="https://m.media-amazon.com/images/I/"+a[d],b.attr("src",d),b.attr("data-a-hires",d)));c(0)}).catch(function(){c(1)})}}var l=a.$,d={},m=!1;return{init:function(d){if(!m){var c=new f(d);a.declarative("mars-fs-hover","mouseenter mouseleave",function(a){var b=a.data.familyCode;
a="mouseenter"===a.type;var n=d.invalidImageAsins;if(b){var g=l("#mars-fs-flyouts"),q=g.find(".family"),m=g.find("#"+b+"_carousel"),f=l("#mars-fs-subnav"),t=f.find("#"+b+" span");t.toggleClass("a-color-state",a);t.toggleClass("a-color-base",!a);m.length&&(g.toggleClass("active-family-stripe",a),f.find("#"+b).toggleClass("active-family-stripe",a),m.toggleClass("active-family-stripe",a),r(q,b,a));h(c,b,n);e.createAll();e.initializeAll()}});m=!0}b()}}});"use strict";h.when("A","cf").execute(function(a){var e=
a.$;e=e(".fs-image-lazy-loading");a.loadHiResImage(e);e.removeClass("fs-image-lazy-loading")});"use strict";h.when("MarsFamilyStripe.ClientSideTemplates").register("MarsFamilyStripe.Templates",function(a){return new a});"use strict";h.when("A","MarsFamilyStripe.Product","MarsFamilyStripe.PriceFormatter","MarsFamilyStripe.PriceRenderer","MarsFamilyStripe.Templates","MarsFamilyStripe.Metrics").register("MarsFamilyStripe.ProductDataFetcher",function(a,e,f,g,b,c){function r(a,b,c){return a.getProductV2(b,
c,[a.subresources.buyingOptions.price,a.subresources.productImages.images])}function h(a,b){var c={};a.forEach(function(a){if(a&&a.entity&&(a=a.entity,a.asin)){var d=(a.buyingOptions||[])[0];d&&(d=d.price)&&(d=d.entity)&&(c[a.asin]=b.render(d))}});return c}function l(a){var b={};a.forEach(function(a){if(a&&a.entity&&(a=a.entity,a.asin)){var c=a.asin;(a=a.productImages)&&a.entity&&(a=a.entity.images)&&a.forEach(function(a){if("MAIN"===a.variant){var d=a.hiRes;a=a.lowRes;if(d||a)d?(a=d.physicalId,d=
d.extension,a&&d&&(b[c]=a+"."+d)):(d=a.physicalId,a=a.extension,d&&a&&(b[c]=d+"."+a))}})}});return b}return a.createClass({init:function(a){var d=a.language;this._productClient=new e({endpoint:a.endpoint,language:d,csrfToken:a.csrfToken});this._formatter=new f(d);this._renderer=new g(b,this._formatter);this._marketplaceId=a.marketplaceId;this._familyAsins=a.familyAsins},getPricesForFamily:function(a){var b=this._familyAsins[a];if(!b)return{};c.getPricesForFamilyBatchSize(a)(b.length);var d=this._renderer,
g=c.getPricesForFamilyTimer(a).start(),e=c.getPricesForFamilyError(a);return r(this._productClient,this._marketplaceId,b).then(function(a){a={price:h(a,d),image:l(a)};g.stop();e(0);return a}).catch(function(a){g.stop();e(1);throw a;})}})});"use strict";h.when("A","MAKO._").register("MarsFamilyStripe.ClientSideTemplates",function(a,e){var f=a.$,g={interpolate:/{{([\s\S]+?)}}/g,escape:/{&([\s\S]+?)&}/g,evaluate:/{!([\s\S]+?)!}/g};return a.createClass({init:function(){this._templates={}},loadTemplates:function(a){var b=
this._templates;f(a).find('script[type\x3d"text/template"]').each(function(){var a=f(this),c=a.data("name");a=(a.html()||"").trim();c&&(b[c]=e.template(a,g))})},unloadTemplates:function(){this._templates={}},renderTemplate:function(a,c){a=this._templates[a];var b="";a&&(b=a(c));return b}})});"use strict";h.register("MarsClientSideMetrics",function(){function a(){return k.ue&&"function"===typeof k.ue.count?k.ue.count:function(){}}return{counter:function(e){var f=a();return function(a){f(e,a)}},timer:function(e){var f=
function(){return{stop:function(){}}};if(k.performance&&"function"===typeof k.performance.now){var g=a();f=function(){var a=k.performance.now();return{stop:function(){var b=k.performance.now()-a;g(e,b)}}}}return{start:f}},suffixed:function(a,f){return function(g){return a(f+":"+g)}}}});"use strict";h.when("MarsClientSideMetrics").register("MarsFamilyStripe.Metrics",function(a){return{emitFallbackPriceFormatterUsed:a.counter("MarsFamilyStripe:fallbackPriceFormatterUsed"),getProductV2Timer:a.timer("MarsFamilyStripe:getProductV2Time"),
getProductV2Error:a.counter("MarsFamilyStripe:getProductV2Error"),getProductV2BatchSize:a.counter("MarsFamilyStripe:getProductV2BatchSize"),getPricesForFamilyTimer:a.suffixed(a.timer,"MarsFamilyStripe:getPricesForFamilyTime"),getPricesForFamilyError:a.suffixed(a.counter,"MarsFamilyStripe:getPricesForFamilyError"),getPricesForFamilyBatchSize:a.suffixed(a.counter,"MarsFamilyStripe:getPricesForFamilyBatchSize"),flyoutPricesAdded:a.counter("MarsFamilyStripe:flyoutPricesAdded"),flyoutPricesBlank:a.counter("MarsFamilyStripe:flyoutPricesBlank"),
flyoutFetchPricesError:a.suffixed(a.counter,"MarsFamilyStripe:flyoutFetchPricesError")}});"use strict";h.when("A","MarsFamilyStripe.Metrics").register("MarsFamilyStripe.PriceFormatter",function(a,e){var f="object"===typeof Intl&&Intl&&"function"===typeof Intl.NumberFormat,g=function(a,c,g){return a.toLocaleString(g,{style:"currency",currency:c})};e.emitFallbackPriceFormatterUsed(0);f||(g=function(a,c){return c+" "+a},e.emitFallbackPriceFormatterUsed(1));return a.createClass({init:function(a){this._locale=
a},format:function(a,c){return g(a,c,this._locale)}})});"use strict";h.when("A").register("MarsFamilyStripe.PriceRenderer",function(a){function e(a){if(a){var b=a.moneyValueOrRange;if(b){var c=b.range;b=b.value;a="label"in a?a.label:"";if(c&&c.min){if(c=c.min,c.amount&&c.currencyCode)return{amount:c.amount,currencyCode:c.currencyCode,minPrice:!0,label:a}}else if(b&&b.amount&&b.currencyCode)return{amount:b.amount,currencyCode:b.currencyCode,minPrice:!1,label:a}}}return null}function f(a,b,c,e){b={price:b.format(c.amount,
c.currencyCode),isParent:c&&c.minPrice,label:c.label+" "};return a.renderTemplate(e,b)}return a.createClass({init:function(a,b){this._templates=a;this._priceFormatter=b},render:function(a){if(!a)return"";var b=[],c=e(a.priceToPay);c&&(b.push(f(this._templates,this._priceFormatter,c,"price")),(a=e(a.basisPrice))&&b.push(f(this._templates,this._priceFormatter,a,"basisPrice")));return b.join("")}})});"use strict";h.when("A","3p-promise","MarsFamilyStripe.Metrics").register("MarsFamilyStripe.Product",
function(a,e,f){function g(a,b,c){var d=document.querySelector('meta[name\x3d"encrypted-slate-token"]');return{"Accept-Language":a.language,Accept:'application/vnd.com.amazon.api+json; type\x3d"'+b+'"; expand\x3d"'+c.join(",")+'"',"x-amzn-encrypted-slate-token":null===d?p:d.content,"x-api-csrf-token":a.csrfToken}}function b(a,b){var c=[];if(!a)return c;for(var d=0;d<a.length;d+=b)c.push(a.slice(d,d+b));return c}function c(a){return a.reduce(function(a,b){return a.concat(b)},[])}function h(a,b,c,f){var d=
"https://"+a.endpoint+"/api/marketplaces/"+b+"/products/"+c.join(","),h=g(a,"collection(product/v2)/v1",f);return new e(function(a,b){k.ajax({url:d,type:"GET",headers:h,xhrFields:{withCredentials:!0},success:function(c){c?"collection(product/v2)/v1"===c.type?a(c.entities||[]):b("unexpected response type: "+c.type):b("response is empty")},error:function(a){if(a=a.responseText)try{var c=JSON.parse(a);if("error/v1"===c.type){var d=c.entity||{};b("response is error: "+(d.details?d.details.message:""))}else b("unexpected response type: "+
c.type)}catch(v){b("unexpected response: "+a)}else b("response is empty")}})})}var k=a.$;return a.createClass({subresources:{buyingOptions:{price:"buyingOptions[].price(product.price/v1)"},productImages:{images:"productImages(product.product-images/v2)"}},init:function(a){this._requestContext=a},getProductV2:function(a,d,g){f.getProductV2BatchSize(d.length);d=b(d,30);var k=this._requestContext,l=f.getProductV2Timer.start();return e.all(d.map(function(b){return h(k,a,b,g)})).then(function(a){l.stop();
f.getProductV2Error(0);return c(a)}).catch(function(a){l.stop();f.getProductV2Error(1);throw a;})}})});"use strict";h.register("MarsFamilyStripe.Mover",function(){return{moveFamilyStripeToBeforeDpContainer:function(){var a=document.querySelector("#mars-fs-wrapper");if(a){var e=document.querySelector("#dp");e&&e.parentNode.insertBefore(a,e);a.style.opacity=1}}}})});
/* ******** */