(function(f){var e=window.AmazonUIPageJS||window.P,n=e._namespace||e.attributeErrors,l=n?n("DetailPagePQVAssets",""):e;l.guardFatal?l.guardFatal(f)(l,window):l.execute(function(){f(l,window)})})(function(f,e,n){function l(d,b){if(!(d instanceof b))throw new TypeError("Cannot call a class as a function");}function z(){A||(A=!0,f.register("pqv-ready"))}var q=function(){function d(b,d){for(var c=0;c<d.length;c++){var a=d[c];a.enumerable=a.enumerable||!1;a.configurable=!0;"value"in a&&(a.writable=!0);
Object.defineProperty(b,a.key,a)}}return function(b,a,c){a&&d(b.prototype,a);c&&d(b,c);return b}}(),A=!1;f.when("dp-latency-marker").execute(z);f.when("PQVOverlayMarker").execute(z);f.when("pqv-ready").register("PQVConstants",function(){return{AUI_COMPONENT_TYPE_DESKTOP:"popover",AUI_COMPONENT_TYPE_MOBILE:"sheet",AUI_COMPONENT_MODULE_DESKTOP:"a-modal",AUI_COMPONENT_MODULE_MOBILE:"a-sheet",FEEDBACK_METRIC_NEGATIVE:"PQV:Feedback:Negative",FEEDBACK_METRIC_POSITIVE:"PQV:Feedback:Positive",INGRESS_CLICK_METRIC:"PQV:Ingress:Click",
INGRESS_ERROR_METRIC:"PQV:Ingress:Error",DEVICE_TYPE_DESKTOP:"Desktop",DEVICE_TYPE_MOBILE:"Mobile",PQV_DECLARATIVE_ACTION_ID:"pqv-trigger",PQV_INGRESS_CONTAINER_ID:"pqv-hidden-ingress",PQV_POPOVER_TRIGGER_ID:"pqv-overlay",PQV_TEMPLATE_ID:"pqv-template",PQV_TIMEOUT:2E3,PQV_TRIGGER_CONTAINER:"#dp",QUICK_LINKS:"buybox unqualified-buybox buying-options reviews report-issue twister".split(" "),ELEMENTS_TO_HIDE:"price-omnibus report-issue ratings bought-in-last-month twister newer-version documents price-list-price".split(" "),
SPACE_KEY_CODE:32}});f.when("A","jQuery","3p-promise","PQVConstants").register("PQV-API",function(d,b,a,c){var p=void 0,v=void 0,h=void 0,k=void 0,w=void 0;b("#"+c.PQV_INGRESS_CONTAINER_ID).removeClass("aok-hidden");return{initialize:function(g){var a=g===c.DEVICE_TYPE_MOBILE;v=a?c.AUI_COMPONENT_TYPE_MOBILE:c.AUI_COMPONENT_TYPE_DESKTOP;a=a?c.AUI_COMPONENT_MODULE_MOBILE:c.AUI_COMPONENT_MODULE_DESKTOP;g===c.DEVICE_TYPE_MOBILE&&f.when("a-sheet").execute(function(b){d.on("a:sheet:afterShow:pqvOverlay",
function(){var a=b.get("pqvOverlay");if(a){var g=d.$("#pqvBottomSheet").height();0<g&&a.changeHeight({height:g})}})});f.when("PQVOverlayMarker","pqv_quickLink","pqv_hideElement","pqv_metrics",a).execute(function(a,p,l,m,C){var B=a.loadTime,q=void 0,x=void 0,t=[];e.aPageStart&&m.recordMetric("PQV:Modal:"+g+":ReadyTime",a.loadTime-e.aPageStart);p.initialize();l.initialize();a=document.getElementById(c.PQV_TEMPLATE_ID);if(!a)m.incrementMetric(c.INGRESS_ERROR_METRIC);else if(a.content&&a.content.cloneNode){p=
a.content.cloneNode(!0);l=document.querySelector(c.PQV_TRIGGER_CONTAINER);if(!l)throw Error("PQV trigger container was not found on the page");l.insertBefore(p,l.firstChild);a.remove&&a.remove();var y=b("#"+c.PQV_POPOVER_TRIGGER_ID);if(1>y.length)throw Error("PQV trigger was not found on the page");w=C.get(y);f.register("PQVPopoverTrigger",function(){return y});d.on("a:"+v+":afterShow:pqvOverlay",function(){q=+new Date;m.incrementMetric("PQV:Modal:"+g+":View");m.recordMetric("PQV:Modal:"+g+":LaunchTime",
q-B);b("body \x3e div:visible:not([aria-hidden]):not([aria-modal]):not([aria-live]):not(.a-modal-scroller):not(.a-sheet-web-container)").each(function(){0<this.innerText.length&&(this.setAttribute("aria-hidden","true"),t.push(this))});for(var a=b(".pqv-time"),c=0;c<a.length;c++){var d=b(a.get(c)),k=parseInt(d.attr("datetime"));d.text((new Date(k)).toLocaleString())}if((a=document.querySelector('[data-cel-widget^\x3d"pqv-dpx-widget-"] h1'))&&"pqv-title"!==a.id)throw Error("PQV displayed an error message");
});d.on("a:"+v+":afterHide:pqvOverlay",function(){x=+new Date;m.incrementMetric("PQV:Modal:"+g+":Close");m.recordMetric("PQV:Modal:"+g+":DwellTime",x-q);B=x;k?function(){var a=b(k),g=a.attr("tabindex"),c=0<=+g;c||a.attr("tabindex","-1");a[0].focus({focusVisible:c,preventscroll:!0});a[0].scrollIntoView({behavior:"smooth"});c||function(){a.blur(function D(){g!==a.attr("tabindex")&&("undefined"===typeof g?a.removeAttr("tabindex"):a.attr("tabindex",g));a.unbind("blur",D)})}()}():h&&h.focus();if(w.attrs){var a=
!(k||h);w.attrs("restoreFocusOnHide",a);a||function(){var a=e.scrollTo;e.scrollTo=function(){};d.delay(function(){e.scrollTo=a},750)}()}h=k=n;for(a=0;a<t.length;a++)t[a].removeAttribute("aria-hidden");t.splice(0,t.length)});var r=b("#"+c.PQV_DECLARATIVE_ACTION_ID);r.click(function(){m.incrementMetric(c.INGRESS_CLICK_METRIC)});r.keydown(function(a){a.keyCode===c.SPACE_KEY_CODE&&m.incrementMetric(c.INGRESS_CLICK_METRIC)});var u=d.$("#pqv-ingress");u.attr("tabindex",0);r.attr("tabindex",-1);u.focus(function(){u.removeAttr("tabindex");
r.removeAttr("tabindex");r[0].focus()});r.blur(function(){u.attr("tabindex",0);r.attr("tabindex",-1)});0<=navigator.userAgent.toUpperCase().indexOf("MAC")&&u.addClass("has-opt-key")}})},checkVisibility:function(a){return"function"===typeof a.checkVisibility?a.checkVisibility({visibilityProperty:!0,checkVisibilityCSS:!0}):!!(a.offsetParent||a.offsetWidth||a.offsetHeight||a.getClientRects().length)&&"hidden"!==getComputedStyle(a).visibility},get:function(){p||(p=new a(function(a,b){var g=!1,k=d.delay(function(){g=
!0;b()},c.PQV_TIMEOUT);f.when("PQVPopoverTrigger").execute(function(b){f.when("a-modal").execute(function(c){g||(clearTimeout(k),a(c.get(b)))})})}));return p},setReturnFocusElement:function(a){h=a},setReturnHash:function(a){k=a}}});f.when("pqv-ready").execute(function(){function d(){var b=e.innerWidth*e.innerHeight;return!!document.elementsFromPoint(Math.floor(e.innerWidth/2),Math.floor(e.innerHeight/2)).find(function(a){if(["fixed","absolute"].includes(getComputedStyle(a).position))return a=a.clientWidth*
a.clientHeight,0<b&&.5<a/b})}document.addEventListener("keydown",function(b){!b.shiftKey||!b.altKey||"KeyD"!==b.code||b.repeat||b.ctrlKey||b.metaKey||(b.preventDefault(),f.when("PQV-API","pqv_metrics","PQVConstants").execute(function(a,b,e){b.incrementMetric("PQV:Shortcut:Pressed");a.get().then(function(c){if(c.isActive())c.hide(),b.recordMetric("PQV:Shortcut:PressedToClose",1);else{var h;if(!(h=document.activeElement.matches('input[type\x3d"text"], input[type\x3d"search"], input[type\x3d"email"], input[type\x3d"password"], textarea, [contenteditable\x3d"true"], select')||
d()))a:{h=document.querySelectorAll("#hmenu-container, .a-popover, .a-dropdown, .a-popover-modal");for(var k=0;k<h.length;k++)if(a.checkVisibility(h[k])){h=!0;break a}h=!1}h?b.recordMetric("PQV:Shortcut:Blocked",1):(document.activeElement&&a.setReturnFocusElement(document.activeElement),c.show())}}).catch(function(){f.now("PQVOverlayMarker").execute(function(a){document.getElementById(e.PQV_POPOVER_TRIGGER_ID)?a?b.recordMetric("PQV:Shortcut:Failed",1):b.recordMetric("PQV:Shortcut:Failed:PQVOverlayNotFound",
1):b.recordMetric("PQV:Shortcut:Failed:PQVIngressNotFound",1)})})}))})});f.when("pqv-ready").register("pqv_metrics",function(){return{recordMetric:function(d,b){e.ue&&"function"===typeof e.ue.count&&e.ue.count(d,b)},incrementMetric:function(d){var b=1<arguments.length&&arguments[1]!==n?arguments[1]:1;e.ue&&"function"===typeof e.ue.count&&e.ue.count(d,(e.ue.count(d)||0)+b)},recordLatency:function(d){e.uex&&"function"===typeof e.uex&&e.uex("ld",d,{wb:1})}}});f.when("PQV-API","PQVConstants").execute(function(d,
b){d.initialize(b.DEVICE_TYPE_DESKTOP)});f.when("pqv","PQV-API","PQVConstants").execute(function(d,b,a){var c=function(){function a(b,c,d,g,e,f){l(this,a);this.A=b;this.overlay=c;this.deviceType=d;this.pqv=g;this.pqvMetrics=e;this.Constants=f;this.target=null}q(a,[{key:"initialize",value:function(){var a=this;this.Constants.QUICK_LINKS.forEach(function(c){c="pqv-"+c;var d=document.getElementById(c);if(d){var g=document.querySelector(d.dataset.target);g&&""!==g.innerText&&b.checkVisibility(g)?a.A.declarative(c+
"-action","click",function(b){a.redirectOnClick(b)}):(a.pqvMetrics.incrementMetric("PQV:QuickLink:"+c+":TargetNotPresent"),d.classList.add("aok-hidden"))}})}},{key:"redirectOnClick",value:function(a){var b=a.$target.context.getAttribute("data-target"),c=this.overlay.get("pqvOverlay");c&&(a.$event.preventDefault(),this.pqv.setReturnHash(b),c.hide())}}]);return a}(),e="mobile"===d.overlayType?a.DEVICE_TYPE_MOBILE:a.DEVICE_TYPE_DESKTOP;f.when("A","pqv_metrics",e===a.DEVICE_TYPE_MOBILE?a.AUI_COMPONENT_MODULE_MOBILE:
a.AUI_COMPONENT_MODULE_DESKTOP).register("pqv_quickLink",function(d,f,k){return new c(d,k,e,b,f,a)})});f.when("pqv","PQV-API","PQVConstants").execute(function(d,b,a){var c=function(){function a(b,c,d,g,e,f){l(this,a);this.A=b;this.overlay=c;this.deviceType=d;this.pqv=g;this.pqvMetrics=e;this.Constants=f;this.target=null}q(a,[{key:"initialize",value:function(){var a=this;this.Constants.ELEMENTS_TO_HIDE.forEach(function(c){c="pqv-"+c;var d=document.getElementById(c);if(d){var g=document.querySelector(d.dataset.target);
if(!g||""===g.innerText||!b.checkVisibility(g)||"pqv-bought-in-last-month"===c&&d.innerText!==g.innerText)a.pqvMetrics.incrementMetric("PQV:HideElement:"+c+":TargetNotPresent"),d.classList.add("aok-hidden")}})}}]);return a}(),e="mobile"===d.overlayType?a.DEVICE_TYPE_MOBILE:a.DEVICE_TYPE_DESKTOP;f.when("A","pqv_metrics",e===a.DEVICE_TYPE_MOBILE?a.AUI_COMPONENT_MODULE_MOBILE:a.AUI_COMPONENT_MODULE_DESKTOP).register("pqv_hideElement",function(d,f,k){return new c(d,k,e,b,f,a)})});f.when("A","a-button",
"pqv_metrics","PQVConstants","PQVOverlayMarker").execute(function(d,b,a,c){var e=function(){function a(b,c,d,e){l(this,a);this.$=b;this.metrics=c;this.positiveButton=d;this.negativeButton=e;this.feedbackMetricRecorded=n}q(a,[{key:"setFeedback",value:function(a){if(!this.feedbackMetricRecorded){var b=a?c.FEEDBACK_METRIC_POSITIVE:c.FEEDBACK_METRIC_NEGATIVE;this.metrics.incrementMetric(b);this.feedbackMetricRecorded=b;this.positiveButton.hide();this.negativeButton.hide();a="pqv-feedback-message-"+(a?
"positive":"negative");this.$("#"+a).removeClass("aok-hidden");this.$("#pqv-feedback-reset").removeClass("aok-hidden");this.$("#pqv-feedback-buttons-section")&&this.$("#pqv-feedback-buttons-section").addClass("aok-hidden");this.$("#pqv-feedback-submit-section")&&this.$("#pqv-feedback-submit-section").removeClass("aok-hidden");this.$("#"+a+" .a-alert-content").focus()}}},{key:"resetFeedback",value:function(){if(this.feedbackMetricRecorded){this.metrics.incrementMetric(this.feedbackMetricRecorded,-1);
this.feedbackMetricRecorded=n;this.positiveButton.show();this.negativeButton.show();this.$("#pqv-feedback-reset").addClass("aok-hidden");this.$("#pqv-feedback-message-positive").addClass("aok-hidden");this.$("#pqv-feedback-message-negative").addClass("aok-hidden");var a=this.$("#pqv-feedback-buttons-section"),b=this.$("#pqv-feedback-submit-section");a&&a.removeClass("aok-hidden");b&&this.$("#pqv-feedback-submit-section").addClass("aok-hidden");this.$("#pqv-feedback-positive-native").focus()}}}]);
return a}();d.$("#pqv-feedback .a-alert-content").attr("tabindex",-1);var f=b("#pqv-feedback-positive");b=b("#pqv-feedback-negative");var h=new e(d.$,a,f,b);d.declarative("pqv-feedback-positive-action","click",function(){h.setFeedback(!0)});d.declarative("pqv-feedback-negative-action","click",function(){h.setFeedback(!1)});d.declarative("pqv-feedback-reset-action","click",function(){h.resetFeedback()})})});