'use strict';mix_d("AmazonHomepageSolitaireCards__desktop-tall-hero-video:desktop-tall-hero-video__ORdZOdRE","exports tslib @c/scoped-dom @c/dom @c/navigation @c/pagemarker @p/videojs @p/jQuery @c/metrics @p/gw-video-orchestrator @c/logger @p/gw-desktop-herotator @p/A".split(" "),function(A,x,D,E,F,G,H,I,t,J,K,L,M){function r(b){return b&&"object"===typeof b&&"default"in b?b:{"default":b}}var N=r(D),O=r(E),P=r(F),Q=r(G),u=r(H),y=r(I),z=r(J),R=r(K),v=r(L),S=r(M),q=function(b,a){void 0===a&&(a=1);t.count(b, +(t.count(b)||0)+a)},T=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(b){var a=16*Math.random()|0;return("x"===b?a:a&3|8).toString(16)})},U=function(b,a){var c="gw-"+b+"-",d=function(e,f){t.count(c+e,f)};(function(){a.on("tracking:first-quarter",function(){return d("firstQuarter",1)});a.on("tracking:second-quarter",function(){return d("midpoint",1)});a.on("tracking:third-quarter",function(){return d("thirdQuarter",1)});a.on("tracking:fourth-quarter",function(){return d("completed", 1)});a.on("tracking:duration",function(e,f){return d("viewDuration",f.lastTimeUpdate)})})();(function(){a.on("tracking:buffered",function(e,f){q(c+"bufferCount",f.bufferCount);q(c+"bufferTime",f.secondsToLoad)})})();(function(){a.on("tracking:firstplay",function(e,f){return d("firstPlay",f.secondsToLoad)});a.on("tracking:replay",function(){q(c+"replay",void 0)});a.on("tracking:pause",function(){q(c+"paused",void 0)});a.on("tracking:fullscreen",function(){q(c+"fullscreen",void 0)});a.on("tracking:seek", function(e,f){return d("seek",f.seekCount)});a.on("volumechange",function(){var e=a.muted()?"audioMuted":"audioUnmuted";q(c+e,void 0)})})();(function(){a.on("tracking:firstend",function(e,f){d("droppedVideoFrames",f.droppedVideoFrames);d("droppedVideoFramesPerSecs",f.droppedVideoFramesPerSecs)})})()},B=function(b,a){"function"===typeof t.uet&&t.uet(b,a,{wb:1});"function"===typeof t.uex&&t.uex("ld",a,{wb:1})},V=function(b){var a=this,c=null,d=!1,e=!1,f=!1,k=!1,g=0,h=!1,l=function(){c&&clearTimeout(c); k=f=e=d=!1;g=0;h=!1};this.on("dispose",l);this.on("loadstart",l);this.on("ended",l);this.on("pause",function(){f=!1;!a.scrubbing()||b.bufferingConfig&&b.bufferingConfig.includeScrub||(d=!0,c=setTimeout(function(){d=!1},200))});this.on("waiting",function(){!1===f&&!1===d&&0h&&(h=l,a.trigger("tracking:duration",{lastTimeUpdate:h}));switch(l){case c:c=!1;a.trigger("tracking:first-quarter", n);break;case d:d=!1;a.trigger("tracking:second-quarter",n);break;case e:e=!1,a.trigger("tracking:third-quarter",n)}});a.on("ended",function(){a.trigger("tracking:fourth-quarter",{seekCount:g,pauseCount:k,currentTime:f,duration:f})});a.on("durationchange",function(){f=+a.duration().toFixed(0);if(0\n \n '+ma(f.textTrack)+"\n ";"undefined"===typeof u["default"].getPlugin("eventTracking")&& u["default"].registerPlugin("eventTracking",ba);var g=na(k,d,f.endImageSource,c,a,f.language,f.loop,f.aspectRatio),h={player:g,videoContainer:e,cardName:b,autoplayEnabled:f.autoplayEnabled&&!(da()||ea()),loopEnabled:f.loop,isLeader:!1,resetVideo:function(){g.hasStarted()&&(g.poster(d),g.currentTime(0),g.hasStarted(!1))}},l=function(){return new Promise(function(p){if(0===g.readyState()){g.one("loadedmetadata",function(){g.paused()||(g.currentTime(0),g.pause(),g.hasStarted(!1));p(!0)});var w=g.play(); w&&w.catch(ja)}else p(!0)})},n=function(){return new Promise(function(p){if(3<=g.readyState())p(!0);else g.on("canplay",function(){p(!0)})})},m=function(){return new Promise(function(p){e.classList.add("_desktop-tall-hero-video_style_show-video__1gei2");B("cf",b+"ClickToVideoLoad");p(!0)})};g.ready(function(){l().then(n).then(m).then(function(){return ha(h,f.priority)}).catch(function(p){q("InitVideoFailed")})});U(b,g);return h}},ma=function(b){return"NO_TEXT_TRACK"===b?"":''},na=function(b,a,c,d,e,f,k,g){a=y["default"].extend({},{poster:a,language:f,loop:k,aspectRatio:g,plugins:{eventTracking:!0},nativeControlsForTouch:!1,preload:"auto",userActions:{doubleClick:!1},hls:{overrideNative:!0},html5:{nativeTextTracks:!1},errorDisplay:!1},e.videoJsConfig);var h=u["default"](b,a);h.off("click");h.playsinline(!0);var l=function(m){m.preventDefault();var p=!1,w=!1;m.target instanceof Element&&(p=1===y["default"](m.target).closest(".vjs-control-bar").length,w=1=== y["default"](m.target).closest(".vjs-big-play-button").length);p||w||(h.pause(),m.stopPropagation(),P["default"].setLocation(d.href))},n=function(m){m.off("tap");m.off("click");m.on("tap",l);m.on("click",l)};h.ready(function(){y["default"](d).bind("click",l);n(h.tech(!0));n(h.posterImage)});h.on("timeupdate",function(){var m=+h.duration().toFixed(0),p=+h.currentTime().toFixed(0);h.poster()!==c&&p>m/2&&h.poster(c)});h.on("ended",function(){h.hasStarted(!1);h.posterImage.show()});return h},pa=function(b, a){return new Promise(function(c){setTimeout(function(){(3>b.readyState()||!b.hasStarted())&&c(!0)},6E3);b.on("ended",function(){c(!0)});a&&oa(b).then(function(){return c(!0)}).catch();b.on("stalled",function(){c(!0)})})},oa=function(b){return new Promise(function(a){var c=0;b.on("timeupdate",function(){var d=b.currentTime();d