/*! * File: fwn.js * Hash: 9c401377dd5764ab9fc1 * Chunkhash: 36cad837b4429ccffbc0 * Release: v20230531.1-hotfix * Commit: b8a27db720a1e43d054366b26bffae7757710acb * Stage: production * Date: 2023-06-01T20:10:28.603Z * */!function(){var t,e,n,r,i={87757:function(t,e,n){t.exports=n(35666)},5220:function(t,e,n){"use strict";n.d(e,{t:function(){return o},u:function(){return i}});var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=4;++r,i-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}},67866:function(t,e){"use strict";e.Z=function(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}},54880:function(t,e,n){"use strict";n.d(e,{C:function(){return s},E:function(){return m},T:function(){return d},c:function(){return v},h:function(){return u},w:function(){return l}});var r=n(98661),i=n(54697),o=n(70444),a=n(30302),u={}.hasOwnProperty,c=(0,r.createContext)("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null);var s=c.Provider,l=function(t){return(0,r.forwardRef)((function(e,n){var i=(0,r.useContext)(c);return t(e,i,n)}))},d=(0,r.createContext)({});var f=r.useInsertionEffect?r.useInsertionEffect:function(t){t()};var p="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",v=function(t,e){var n={};for(var r in e)u.call(e,r)&&(n[r]=e[r]);return n[p]=t,n},h=function(t){var e=t.cache,n=t.serialized,r=t.isStringTag;(0,o.hC)(e,n,r);f((function(){return(0,o.My)(e,n,r)}));return null},m=l((function(t,e,n){var i=t.css;"string"==typeof i&&void 0!==e.registered[i]&&(i=e.registered[i]);var c=t[p],s=[i],l="";"string"==typeof t.className?l=(0,o.fp)(e.registered,s,t.className):null!=t.className&&(l=t.className+" ");var f=(0,a.O)(s,void 0,(0,r.useContext)(d));l+=e.key+"-"+f.name;var v={};for(var m in t)u.call(t,m)&&"css"!==m&&m!==p&&(v[m]=t[m]);return v.ref=n,v.className=l,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h,{cache:e,serialized:f,isStringTag:"string"==typeof c}),(0,r.createElement)(c,v))}))},70917:function(t,e,n){"use strict";n.d(e,{F4:function(){return l},iv:function(){return s},xB:function(){return c}});var r=n(98661),i=(n(54697),n(54880)),o=(n(8679),n(70444)),a=n(30302),u=r.useInsertionEffect?r.useInsertionEffect:r.useLayoutEffect,c=(0,i.w)((function(t,e){var n=t.styles,c=(0,a.O)([n],void 0,(0,r.useContext)(i.T)),s=(0,r.useRef)();return u((function(){var t=e.key+"-global",n=new e.sheet.constructor({key:t,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+t+" "+c.name+'"]');return e.sheet.tags.length&&(n.before=e.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",t),n.hydrate([i])),s.current=[n,r],function(){n.flush()}}),[e]),u((function(){var t=s.current,n=t[0];if(t[1])t[1]=!1;else{if(void 0!==c.next&&(0,o.My)(e,c.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}e.insert("",c,n,!1)}}),[e,c.name]),null}));function s(){for(var t=arguments.length,e=new Array(t),n=0;n96?d:f},v=function(t,e,n){var r;if(e){var i=e.shouldForwardProp;r=t.__emotion_forwardProp&&i?function(e){return t.__emotion_forwardProp(e)&&i(e)}:i}return"function"!=typeof r&&n&&(r=t.__emotion_forwardProp),r},h=i.useInsertionEffect?i.useInsertionEffect:function(t){t()};var m=function(t){var e=t.cache,n=t.serialized,r=t.isStringTag;(0,s.hC)(e,n,r);h((function(){return(0,s.My)(e,n,r)}));return null},g=function t(e,n){var o,a,u=e.__emotion_real===e,d=u&&e.__emotion_base||e;void 0!==n&&(o=n.label,a=n.target);var f=v(e,n,u),h=f||p(d),g=!h("as");return function(){var y=arguments,_=u&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==o&&_.push("label:"+o+";"),null==y[0]||void 0===y[0].raw)_.push.apply(_,y);else{0,_.push(y[0][0]);for(var b=y.length,w=1;w=200&&s.status<300?null==s?void 0:s.data:null);case 10:return o.prev=10,o.t0=o.catch(3),(0,u.ji)(null===o.t0||void 0===o.t0?void 0:o.t0.message,{captureContext:{extra:{businessStoreId:t,cartItems:e}}}),o.abrupt("return",null);case 14:case"end":return o.stop()}}),o,null,[[3,10]])})))},getSetupIntent:function(t,e,n){return d(void 0,void 0,void 0,a().mark((function i(){var o,c;return a().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o={},e&&(o.order_token=e),n&&(o.link_persistent_token=n),i.prev=3,i.next=6,r.post("/api/commerce/".concat(t,"/setup_intent"),o);case 6:return c=i.sent,i.abrupt("return",c.status>=200&&c.status<300?null==c?void 0:c.data:null);case 10:return i.prev=10,i.t0=i.catch(3),(0,u.ji)(null===i.t0||void 0===i.t0?void 0:i.t0.message,{captureContext:{extra:{businessStoreId:t}}}),i.abrupt("return",null);case 14:case"end":return i.stop()}}),i,null,[[3,10]])})))},getShippingOptions:function(t,e,n){return d(void 0,void 0,void 0,a().mark((function i(){var o,s,l;return a().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o={order_token:t,shipping_address:e},n&&(o.cart_items=n),i.prev=2,i.next=5,r.post("/api/commerce/shipping_rates",o);case 5:return s=i.sent,i.abrupt("return",s.status>=200&&s.status<300?null==s?void 0:s.data:[]);case 9:return i.prev=9,i.t0=i.catch(2),l=(0,c.a)(t),(0,u.ji)("getShippingOptions API Error: ".concat(null===i.t0||void 0===i.t0?void 0:i.t0.message),{captureContext:{extra:{cartItems:n,paypalOrderId:null==l?void 0:l.paypal_order_id}}}),i.abrupt("return",[]);case 14:case"end":return i.stop()}}),i,null,[[2,9]])})))},updatePaymentIntent:function(t,e,n,i){return d(void 0,void 0,void 0,a().mark((function o(){var c,s;return a().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return c={order_token:t,shipping_address:e},n&&(c.shipping_id=n),i&&(c.discount_code=i),o.prev=3,o.next=6,r.post("/api/commerce/finalize_payment_intent",c);case 6:return s=o.sent,o.abrupt("return",s.status>=200&&s.status<300?null==s?void 0:s.data:null);case 10:return o.prev=10,o.t0=o.catch(3),(0,u.ji)(null===o.t0||void 0===o.t0?void 0:o.t0.message,{captureContext:{extra:{shippingId:n,discountCode:i}}}),o.abrupt("return",null);case 14:case"end":return o.stop()}}),o,null,[[3,10]])})))},calculateOrder:function(t,e,n,i,o){return d(void 0,void 0,void 0,a().mark((function c(){var s,l;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s={cart_items:t,order_token:e,shipping_address:n},i&&(s.shipping_id=i),o&&(s.discount_code=o),a.prev=3,a.next=6,r.post("/api/commerce/calculate_order",s);case 6:return l=a.sent,a.abrupt("return",l.status>=200&&l.status<300?null==l?void 0:l.data:null);case 10:return a.prev=10,a.t0=a.catch(3),(0,u.ji)(null===a.t0||void 0===a.t0?void 0:a.t0.message,{captureContext:{extra:{cartItems:t,shippingId:i,discountCode:o}}}),a.abrupt("return",null);case 14:case"end":return a.stop()}}),c,null,[[3,10]])})))},placeOrder:function(t,e,n,i,o,c,s){return d(void 0,void 0,void 0,a().mark((function l(){var d,f;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return d="/api/commerce/confirm_order?video_id=".concat(t),a.prev=1,a.next=4,r.post(d,{delay:e,email:n,order_token:i,guest_id:o,session_id:c,embed_instance_id:s});case 4:return f=a.sent,a.abrupt("return",f.status>=200&&f.status<300?null==f?void 0:f.data:null);case 8:return a.prev=8,a.t0=a.catch(1),(0,u.ji)(null===a.t0||void 0===a.t0?void 0:a.t0.message,{captureContext:{extra:{videoId:t,guestId:o,sessionId:c}}}),a.abrupt("return",null);case 12:case"end":return a.stop()}}),l,null,[[1,8]])})))},getOrder:function(t){return d(void 0,void 0,void 0,a().mark((function e(){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.get("/api/commerce/retrieve_order?order_token=".concat(t));case 3:return n=e.sent,e.abrupt("return",n.status>=200&&n.status<300?null==n?void 0:n.data:null);case 7:return e.prev=7,e.t0=e.catch(0),(0,u.ji)(null===e.t0||void 0===e.t0?void 0:e.t0.message),e.abrupt("return",null);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})))},deleteOrder:function(t){return d(void 0,void 0,void 0,a().mark((function e(){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.delete("/api/commerce/cancel_order?order_token=".concat(t));case 3:return n=e.sent,e.abrupt("return",n.status>=200&&n.status<300);case 7:return e.prev=7,e.t0=e.catch(0),(0,u.ji)(null===e.t0||void 0===e.t0?void 0:e.t0.message),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})))},paypalInitiateCheckout:function(t,e){return d(void 0,void 0,void 0,a().mark((function n(){var i,o,s,l;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,r.post("api/commerce/".concat(t,"/paypal_initiate_checkout"),e);case 3:return s=n.sent,n.abrupt("return",s.data);case 7:return n.prev=7,n.t0=n.catch(0),l=(0,c.a)(null!==(i=null==e?void 0:e.order_token)&&void 0!==i?i:""),(0,u.ji)("paypalInitiateCheckout API Error: ".concat(null===n.t0||void 0===n.t0?void 0:n.t0.message),{captureContext:{extra:{paypalOrderId:null==l?void 0:l.paypal_order_id,businessStoreId:t,cartItems:e.cart_items,statusCode:null===(o=null===n.t0||void 0===n.t0?void 0:n.t0.response)||void 0===o?void 0:o.status}}}),n.abrupt("return",{order_token:""});case 12:case"end":return n.stop()}}),n,null,[[0,7]])})))},paypalFinalizeOrder:function(t){return d(void 0,void 0,void 0,a().mark((function e(){var n,i,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.post("api/commerce/paypal_finalize_order",t);case 3:return i=e.sent,e.abrupt("return",i.data);case 7:return e.prev=7,e.t0=e.catch(0),o=(0,c.a)(t.order_token),(0,u.ji)("paypalFinalizeOrder API Error: ".concat(null===e.t0||void 0===e.t0?void 0:e.t0.message),{captureContext:{extra:{paypalOrderId:null==o?void 0:o.paypal_order_id,shipping_id:t.shipping_id,statusCode:null===(n=null===e.t0||void 0===e.t0?void 0:e.t0.response)||void 0===n?void 0:n.status}}}),e.abrupt("return",{order_token:""});case 12:case"end":return e.stop()}}),e,null,[[0,7]])})))},paypalConfirmOrder:function(t,e,n){return d(void 0,void 0,void 0,a().mark((function i(){var o,s,l;return a().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,r.post("api/commerce/paypal_confirm_order?video_id=".concat(t,"&delay=").concat(e),n);case 3:return s=i.sent,i.abrupt("return",s.data);case 7:return i.prev=7,i.t0=i.catch(0),l=(0,c.a)(n.order_token),(0,u.ji)("paypalConfirmOrder API Error: ".concat(null===i.t0||void 0===i.t0?void 0:i.t0.message),{captureContext:{extra:{videoId:t,visitorId:n.visitor_id,paypalOrderId:null==l?void 0:l.paypal_order_id,statusCode:null===(o=null===i.t0||void 0===i.t0?void 0:i.t0.response)||void 0===o?void 0:o.status}}}),i.abrupt("return",{order_token:""});case 12:case"end":return i.stop()}}),i,null,[[0,7]])})))},getMicrositeByChannel:function(t,e){return d(void 0,void 0,void 0,a().mark((function n(){var i,o;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i="/microsites/channels/config?username=".concat(encodeURIComponent(t)),e&&Object.keys(e).forEach((function(t){e[t]&&(i+="&".concat(t,"=").concat(e[t]))})),n.next=4,r.get(i);case 4:return o=n.sent,n.abrupt("return",o.data);case 6:case"end":return n.stop()}}),n)})))},getMicrositeByChannelId:function(t,e){return d(void 0,void 0,void 0,a().mark((function n(){var i,o;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i="/microsites/channels/config?id=".concat(encodeURIComponent(t)),e&&Object.keys(e).forEach((function(t){e[t]&&(i+="&".concat(t,"=").concat(e[t]))})),n.next=4,r.get(i);case 4:return o=n.sent,n.abrupt("return",o.data);case 6:case"end":return n.stop()}}),n)})))},getSitemapVideosByChannel:function(t,e){return void 0===e&&(e=10),d(void 0,void 0,void 0,a().mark((function n(){var i;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,r.get("api/channels/".concat(t,"/videos?page_size=").concat(e));case 3:return i=n.sent,n.abrupt("return",i.data);case 7:return n.prev=7,n.t0=n.catch(0),(0,u.H)(n.t0),n.abrupt("return",{videos:[]});case 11:case"end":return n.stop()}}),n,null,[[0,7]])})))},getSitemapPagesByChannelId:function(t){return d(void 0,void 0,void 0,a().mark((function e(){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.get("microsites/channels/".concat(t,"/pages"));case 3:return n=e.sent,e.abrupt("return",n.data);case 7:return e.prev=7,e.t0=e.catch(0),(0,u.H)(e.t0),e.abrupt("return",{data:[]});case 11:case"end":return e.stop()}}),e,null,[[0,7]])})))},getRemindMeEmail:function(t){var e=t.email,n=t.liveStreamId;return d(void 0,void 0,void 0,a().mark((function t(){var i,o,u,c,s,l;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(u=new URL("".concat(r.defaults.baseURL,"/api/live_streams/").concat(n,"/signup"))).searchParams.append("email_address",e),t.prev=2,t.next=5,r.post(u.href);case 5:return c=t.sent,s=c.data,l=Boolean((null===(i=null==s?void 0:s.errors)||void 0===i?void 0:i.email_address)||(null===(o=null==s?void 0:s.errors)||void 0===o?void 0:o.phone_number)),t.abrupt("return",{success:!l});case 11:return t.prev=11,t.t0=t.catch(2),t.abrupt("return",{success:!1});case 14:case"end":return t.stop()}}),t,null,[[2,11]])})))}}};!function(t){t.PREROLL="preroll",t.INTERSTITIAL="interstitial",t.DISPLAY="display",t.OUTSTREAM="outstream",t.RM_INFEED="rm_infeed"}(r||(r={})),function(t){t.QUESTION="question",t.POLL="poll",t.APPOINTMENT="appointment",t.QUIZ="quiz"}(i||(i={}));var p=n(82643),v=n(99202)},82643:function(t,e,n){"use strict";var r,i,o;n.d(e,{WW:function(){return o},Yi:function(){return i},_e:function(){return r}}),function(t){t.AGORA="agora",t.FACEBOOK="facebook",t.INSTAGRAM="instagram",t.IVS="ivs",t.MUX="mux",t.TIKTOK="tiktok",t.TWITCH="twitch",t.YOUTUBE="youtube"}(r||(r={})),function(t){t.IDLE="idle",t.ACTIVE="active",t.PAUSED="paused",t.REPLAY="replay",t.COMPLETED="completed",t.EXPIRED="expired",t.DISABLED="disabled",t.ERRORED="errored"}(i||(i={})),function(t){t.VIEWER="viewer",t.HOST="host",t.MODERATOR="moderator",t.BOT="bot"}(o||(o={}))},99202:function(t,e,n){"use strict";var r,i,o,a,u,c;n.d(e,{WO:function(){return u},ft:function(){return i},jI:function(){return a},nl:function(){return o},x1:function(){return r},zb:function(){return c}}),function(t){t.COLLAB_MIRROR="collab_mirror",t.COLLAB_REACT="collab_react",t.COLLAB_SPLIT="collab_split",t.COLLAB_STITCH="collab_stitch",t.FRAMELESS="frameless",t.LIVESTREAM="live_stream",t.MULTICAM="multicam",t.OPEN_AUCTION_AD="open_auction_ad"}(r||(r={})),function(t){t.DEFAULT_CTA="cta",t.REMIND_ME="reminder"}(i||(i={})),function(t){t.HORIZONTAL="16:9",t.VERTICAL="9:16"}(o||(o={})),function(t){t.ANIMATED="animated",t.STATIC="static"}(a||(a={})),function(t){t.SMALL="small",t.BEST_FIT="large"}(u||(u={})),function(t){t.MULTIPLE_CHOICE="multiple_choice",t.CTA="cta",t.PRODUCT="product",t.QUESTION="question",t.POLL="poll"}(c||(c={}))},15839:function(t,e,n){"use strict";n.d(e,{o:function(){return s}});var r=n(4942),i=n(98661),o=n(33673),a=n(35944);i.default.createElement;function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;esvg,>span{color:var(",s.Ij,", var(--white));}",""),h=(0,u.iv)("border-color:var(",s.Ij,", currentColor);border-width:1px;border-style:solid;background:transparent;",""),m=(0,u.iv)("font-size:12px;height:",d.small,"px;line-height:18px;padding:2px 22px;",""),g=(0,a.Z)("span",{target:"e1c6ddiv2"})({name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"}),y={name:"shdjoz",styles:"filter:brightness(70%) saturate(50%);&:hover,&:focus-visible{filter:brightness(70%) saturate(50%);}"},_={name:"19dp15r",styles:"pointer-events:none;cursor:default"};function b(t){return(0,u.iv)("align-items:center;cursor:pointer;display:flex;font-family:inherit;font-size:16px;font-weight:600;gap:2px;height:",d.default,"px;justify-content:center;line-height:22px;max-width:100%;padding:7px 22px;position:relative;text-decoration:none;user-select:none;width:",t.block&&"100%",";border-radius:",l[t.borderStyle||"default"],"px;pointer-events:",(t.disabled||t.isLoading)&&"none",";",(t.disabled||t.isLoading)&&_," ","outlined"===t.variant?h:v,";","small"===t.size&&m,";",t.disabled&&y," &:hover,&:focus-visible{opacity:0.9;text-decoration:none!important;}&:active{",!t.disabled&&p,";}&::after{",t.ripple&&f," border-radius:",t.borderStyle&&l[t.borderStyle],"px;}","")}var w=(0,a.Z)("button",{target:"e1c6ddiv1"})((function(t){return b(t)}),";"),O=(0,a.Z)("a",{target:"e1c6ddiv0"})((function(t){return b(t)}),";"),E=n(35944);i.default.createElement;function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function S(t){for(var e=1;e3)&&A&&(0,s.x)(S)){e.next=2;break}return e.abrupt("return");case 2:if(e.prev=2,!(!(null==S?void 0:S.next_page)||x||b&&(null==S?void 0:S.feed_items)&&S.feed_items.length>=b)){e.next=5;break}return e.abrupt("return");case 5:if(n=Math.min(10,b?b-((null==S?void 0:S.feed_items)?null==S?void 0:S.feed_items.length:0):1/0),!S){e.next=12;break}return e.next=9,g.getMoreFeedItems(S,n);case 9:e.t0=e.sent,e.next=13;break;case 12:e.t0=null;case 13:i=e.t0,C((function(t){var e,n;return Object.assign(Object.assign({},t),{feed:Object.assign(Object.assign(Object.assign({},S),i),{feed_items:[].concat((0,r.Z)(null!==(e=null==S?void 0:S.feed_items)&&void 0!==e?e:[]),(0,r.Z)(null!==(n=null==i?void 0:i.feed_items)&&void 0!==n?n:[]))})})})),e.next=25;break;case 17:if(e.prev=17,e.t1=e.catch(2),404!==(null===e.t1||void 0===e.t1?void 0:e.t1.status)){e.next=24;break}return e.next=22,T();case 22:e.next=25;break;case 24:C({loading:!1,feed:S,error:e.t1,config:null});case 25:case"end":return e.stop()}}),e,null,[[2,17]])})))}),[A,S,x,b,g,T]),N=(0,a.useMemo)((function(){var t;return(0,s.x)(S)&&null!==(t=function(t,e){return t.map((function(t){return(null==e?void 0:e[t.encoded_id])?Object.assign(Object.assign({},t),e[t.encoded_id]):t}))}(((null==S?void 0:S.feed_items)||[]).filter((function(t){return!!t.video})).map((function(t){return t.video.variant=t.variant,t.video})),_))&&void 0!==t?t:[]}),[S,_]),D=(0,a.useMemo)((function(){return(null==S?void 0:S.playlists)?S.playlists:[]}),[S]);return[{error:j,videos:N,loading:x,playlists:D,feed:S,config:k},{loadMore:R}]}},93538:function(t,e,n){"use strict";n.d(e,{x:function(){return r}});var r=function(t){return Boolean(t&&"feed_items"in t)}},31111:function(t,e,n){"use strict";function r(){if("undefined"!=typeof window){try{if(window.parent&&window.parent._fwn)return window.parent._fwn}catch(t){}return window._fwn}}n.d(e,{m:function(){return r}})},29038:function(t,e,n){"use strict";n.d(e,{s:function(){return i}});var r=n(96950);function i(t,e){return(0,r.Uw)()(t,e)}},32960:function(t,e,n){"use strict";n.d(e,{D:function(){return i}});var r=n(98661);function i(t,e){var n,i=(0,r.useRef)();return(0,r.useEffect)((function(){i.current=t}),[t]),null!==(n=i.current)&&void 0!==n?n:e}},40402:function(t,e,n){"use strict";n.d(e,{y:function(){return s}});var r=n(98661),i=n(87757),o=n.n(i),a=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},u=n(23919),c=n(77123);function s(t){var e=(0,c.y)(null);return(0,r.useLayoutEffect)((function(){var r;return a(void 0,void 0,void 0,o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("undefined"!=typeof window){t.next=2;break}throw new Error("No ResizeObserver in SSR");case 2:if("ResizeObserver"in window){t.next=7;break}return t.next=5,n.e(6254).then(n.bind(n,86254));case 5:e=t.sent,window.ResizeObserver=e.ResizeObserver;case 7:return t.abrupt("return",window.ResizeObserver);case 8:case"end":return t.stop()}}),t)}))).then((function(n){r=new n(t),e.current&&r.observe(e.current)})).catch(u.H),function(){null==r||r.disconnect()}}),[e.current,t]),e}},78765:function(t,e,n){"use strict";n.d(e,{k:function(){return c}});var r=n(87757),i=n.n(r),o=n(98661),a=n(30087),u=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},c=function(){var t=(0,o.useState)({}),e=t[0],n=t[1];return(0,o.useEffect)((function(){u(void 0,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=n,t.next=3,(0,a.G)();case 3:t.t1=t.sent,(0,t.t0)(t.t1);case 5:case"end":return t.stop()}}),t)})))}),[]),e}},77123:function(t,e,n){"use strict";n.d(e,{y:function(){return i}});var r=n(98661);function i(t){var e=(0,r.useState)(t),n=e[0],i=e[1],o=(0,r.useState)({get current(){return n},set current(t){}})[0];return Object.defineProperty(o,"current",{get:function(){return n},set:function(t){Object.is(n,t)||i(n=t)}}),o}},8221:function(t,e,n){"use strict";n.d(e,{g:function(){return a}});var r=n(98661),i=n(77123),o=n(37371);function a(t){var e=t.externalRef,n=t.onChange,a=t.threshold,u=void 0===a?.7:a,c=(0,r.useRef)(null),s=(0,i.y)(null),l=e||s;return(0,r.useLayoutEffect)((function(){var t;if(l.current)return null===(t=c.current)||void 0===t||t.disconnect(),(0,o.w)().then((function(t){var e=new t((function(t){var e=t[0].intersectionRatio>=u;l.current&&(null==n||n(e,l.current))}),{threshold:[u]});c.current=e,l.current&&c.current.observe(l.current)})),function(){var t;null===(t=c.current)||void 0===t||t.disconnect(),c.current=null}}),[l.current,n,u]),l}},3004:function(t,e,n){"use strict";n.d(e,{kQ:function(){return r},ZP:function(){return D}});var r,i={},o="/socket.io/?EIO=3&transport=websocket",a=5e3,u={};!function(t){t[t.UNINSTANTIATED=-1]="UNINSTANTIATED",t[t.CONNECTING=0]="CONNECTING",t[t.OPEN=1]="OPEN",t[t.CLOSING=2]="CLOSING",t[t.CLOSED=3]="CLOSED"}(r||(r={}));var c,s="undefined"!=typeof navigator&&"ReactNative"===navigator.product,l=!s&&function(){try{return"EventSource"in globalThis}catch(t){return!1}}(),d=n(4942),f=n(87757),p=n.n(f),v=n(98661),h=n(93324),m=function(t){if(t){var e=/^https|wss/.test(t),n=t.replace(/^(https?|wss?)(:\/\/)?/,"").replace(/\/$/,"");return"".concat(e?"wss":"ws","://").concat(n).concat(o)}if(""===t){var r=/^https/.test(window.location.protocol)?"wss":"ws",i=window.location.port?":".concat(window.location.port):"";return"".concat(r,"://").concat(window.location.hostname).concat(i).concat(o)}return t},g=function(t,e){void 0===e&&(e={});var n=/\?([\w]+=[\w]+)/.test(t),r="".concat(Object.entries(e).reduce((function(t,e){var n=(0,h.Z)(e,2),r=n[0],i=n[1];return t+"".concat(r,"=").concat(i,"&")}),"").slice(0,-1));return"".concat(t).concat(n?"&":"?").concat(r)},y=function(t,e){void 0===e&&(e=25e3);return setInterval((function(){return t("2")}),e)},_=n(31111),b=null===(c=(0,_.m)())||void 0===c?void 0:c.sharedWebSockets,w=function(){if(!b){b={};var t=(0,_.m)();t&&(t.sharedWebSockets=b)}return b},O={},E=[],x=function(t){return S(t)?Array.from(O[t]):E},S=function(t){var e;return(null===(e=O[t])||void 0===e?void 0:e.size)>0};function j(t){if(!("send"in t))throw new Error("")}var k=function(t,e,n,i,o,u){var c,s=e.setLastMessage,d=e.setReadyState;n.current.fromSocketIO&&(c=y(u)),function(t,e,n){t.onmessage=function(t){e.current.onMessage&&e.current.onMessage(t),"function"==typeof e.current.filter&&!0!==e.current.filter(t)||n(t)}}(t,n,s),function(t,e,n,i){t.onopen=function(t){e.current.onOpen&&e.current.onOpen(t),i.current=0,n(r.OPEN)}}(t,n,d,o);var f=function(t,e,n,i,o){return l&&t instanceof EventSource?function(){}:(j(t),t.onclose=function(t){var c,s;if(e.current.onClose&&e.current.onClose(t),n(r.CLOSED),e.current.shouldReconnect&&e.current.shouldReconnect(t)){var l=null!==(c=e.current.reconnectAttempts)&&void 0!==c?c:20;o.current=e.elapsed_time?-1:1},y=function(t,e){return a(t)&&!1===e.available_for_live_stream_replay}},57315:function(t,e,n){"use strict";n.d(e,{pZ:function(){return r.p},u8:function(){return u}});n(42694),n(89952);var r=n(25163),i=n(98661),o=n(29038),a=n(64117),u=function(t){var e=(0,o.s)((function(e){return(0,a.WR)(e,t)})),n=(0,o.s)((function(e){return(0,a.G9)(e,t)})),r=(0,o.s)(a.NO),u=r.setActiveWatch,c=r.unsetActiveWatch,s=r.clearActiveWatches;return(0,i.useMemo)((function(){return{isActiveWatch:Boolean(n||e),setActiveWatch:function(){return u(null!=t?t:"")},unsetActiveWatch:function(){return c(null!=t?t:"")},clearActiveWatches:s}}),[s,e,n,t,u,c])}},42694:function(t,e,n){"use strict";n.d(e,{a:function(){return u}});var r=n(98661),i=n(42699),o=n(76972),a=n(36094),u=function(t){var e=t.scheduledStartTime,n=(0,r.useState)(new Date),u=n[0],c=n[1];(0,r.useEffect)((function(){var t=setInterval((function(){c(new Date)}),6e4);return function(){return clearInterval(t)}}),[]);var s=new Date(e);return{scheduledStartDateTime:s,hasLiveStreamEnded:(0,i.Z)(u,s),hoursUntilLiveStream:(0,o.Z)(s,u),daysUntilLiveStream:(0,a.Z)(s,u)}}},89952:function(t,e,n){"use strict";n.d(e,{v:function(){return s}});var r=n(93324),i=n(98661),o=n(60374),a=n(3004),u=n(29038),c=n(64117),s=function(t){var e=t.readyState,n=t.sendJsonMessage,s=(0,u.s)((function(t){return[(0,c.KE)(t),(0,c.NO)(t).heartbeatIntervalSet,(0,c.NO)(t).heartbeatIntervalCleared]}),o.Z),l=(0,r.Z)(s,3),d=l[0],f=l[1],p=l[2];(0,i.useEffect)((function(){switch(e){case a.kQ.OPEN:d||f((function(){n({topic:"phoenix",event:"heartbeat",payload:{},ref:"hb".concat(Date.now())})}));break;case a.kQ.CLOSED:p()}}),[e,n,f,p,d]),(0,i.useEffect)((function(){return function(){p()}}),[p])}},25163:function(t,e,n){"use strict";n.d(e,{p:function(){return a}});var r=n(98661),i=n(29038),o=n(64117);function a(t){var e=(0,i.s)(o.BE),n=(0,i.s)(o.NO),a=n.joinedTopicsAdded,u=n.joinedTopicsRemoved;return{isTopicJoined:(0,r.useMemo)((function(){return!!t&&e.includes(t)}),[t,e]),joinTopic:(0,r.useCallback)((function(e){return t?a(t,e):void 0}),[t,a]),removeTopic:(0,r.useCallback)((function(e){return t?u(t,e):void 0}),[t,u])}}},72660:function(t,e,n){"use strict";n.d(e,{N:function(){return o}});var r=n(4942),i=n(89062);function o(t){return{heartbeatIntervalSet:function(e){t((function(t){return t.heartbeatInterval?t:{heartbeatInterval:setInterval(e,3e4)}}),!1,"heartbeatIntervalSet")},heartbeatIntervalCleared:function(){return t((function(t){return t.heartbeatInterval?(clearInterval(t.heartbeatInterval),{heartbeatInterval:void 0}):t}),!1,"heartbeatIntervalCleared")},joinedTopicsAdded:function(e,n){return t((function(t){return t.joinedTopics.includes(e)?t:(null==n||n(),{joinedTopics:[].concat((0,i.Z)(t.joinedTopics),[e])})}),!1,"joinedTopicsAdded")},joinedTopicsRemoved:function(e,n){return t((function(t){return e?(null==n||n(),{joinedTopics:t.joinedTopics.filter((function(t){return t!==e}))}):t}),!1,"joinedTopicsRemoved")},inviteReceived:function(e,n){t((function(t){return{invitations:Object.assign(Object.assign({},t.invitations),(0,r.Z)({},n,e))}}),!1,"inviteReceived")},inviteDismissed:function(e,n){t((function(t){return{dismissedInvitations:Object.assign(Object.assign({},t.dismissedInvitations),(0,r.Z)({},n,Object.assign(Object.assign({},t.dismissedInvitations[e]),(0,r.Z)({},e,!0))))}}),!1,"inviteDismissed")},usernameSet:function(e,n){t((function(t){var r,i,o=null!==(i=null!=n?n:null===(r=t.username)||void 0===r?void 0:r.isUserDefined)&&void 0!==i&&i;return{username:{name:e,isUserDefined:o}}}),!1,"usernameSet")},setActiveWatch:function(e){return t((function(t){return{activeWatches:Object.assign(Object.assign({},t.activeWatches),(0,r.Z)({},e,!0))}}),!1,"setActiveWatch")},unsetActiveWatch:function(e){return t((function(t){return{activeWatches:Object.assign(Object.assign({},t.activeWatches),(0,r.Z)({},e,!1))}}),!1,"unsetActiveWatch")},clearActiveWatches:function(){return t({activeWatches:{}},!1,"clearActiveWatches")}}}},64117:function(t,e,n){"use strict";n.d(e,{BE:function(){return r.BE},Ec:function(){return r.Ec},G9:function(){return r.G9},KE:function(){return r.KE},NO:function(){return r.NO},Qi:function(){return i.Q},WR:function(){return r.WR}});var r=n(92869),i=n(64267)},19491:function(t,e,n){"use strict";n.d(e,{Af:function(){return o},TS:function(){return u},hq:function(){return a}});var r=n(4942),i=n(64267);function o(t){var e=t[i.s].username;return(0,r.Z)({},i.s,{username:e})}function a(t){var e=t[i.s].activeWatches;return(0,r.Z)({},i.s,{activeWatches:e})}function u(t,e){return(0,r.Z)({},i.s,Object.assign(Object.assign({},e[i.s]),t[i.s]))}},92869:function(t,e,n){"use strict";n.d(e,{BE:function(){return o},Ec:function(){return s},G9:function(){return l},KE:function(){return i},NO:function(){return a},WR:function(){return u}});var r=n(64267);function i(t){return t[r.s].heartbeatInterval}function o(t){return t[r.s].joinedTopics}function a(t){return t[r.s].actions}function u(t,e){var n;if(e){var i=t[r.s],o=i.invitations,a=i.dismissedInvitations,u=o[e];return u&&!(null===(n=a[e])||void 0===n?void 0:n[u])?u:void 0}}var c={name:"",isUserDefined:!1};function s(t){var e;return(null===(e=t[r.s])||void 0===e?void 0:e.username)||c}function l(t,e){var n;return!!e&&Boolean(null===(n=t[r.s])||void 0===n?void 0:n.activeWatches[e])}},64267:function(t,e,n){"use strict";n.d(e,{Q:function(){return c},s:function(){return u}});var r=n(4942),i=n(93276),o=n(72660),a=n(83717),u="liveStream";function c(){return(0,r.Z)({},u,(0,i.g8)((function(t){return Object.assign(Object.assign({},(0,a.x)()),{actions:(0,o.N)(t)})})))}},83717:function(t,e,n){"use strict";function r(){return{heartbeatInterval:void 0,joinedTopics:[],dismissedInvitations:{},invitations:{},username:{name:"",isUserDefined:!1},activeWatches:{}}}n.d(e,{x:function(){return r}})},50384:function(t,e,n){"use strict";function r(t,e){t.addEventProcessor((function(t){var n,r=e.getClient();return function(t,e){if(function(t,e){if(!e||!e.length)return!1;return function(t){if(t.message)return[t.message];if(t.exception)try{var e=t.exception.values&&t.exception.values[0]||{},n=e.type,r=void 0===n?"":n,i=e.value,o=void 0===i?"":i;return["".concat(o),"".concat(r,": ").concat(o)]}catch(t){return[]}return[]}(t).some((function(t){return e.some((function(e){return a(t,e)}))}))}(t,e.ignoreErrors))return!0;if(function(t,e){if(!e||!e.length)return!1;var n=u(t);return!!n&&e.some((function(t){return a(n,t)}))}(t,e.denyUrls))return!0;if(!function(t,e){if(!e||!e.length)return!0;var n=u(t);return!n||e.some((function(t){return a(n,t)}))}(t,e.allowUrls))return!0;return!1}(t,null!==(n=null==r?void 0:r.getOptions())&&void 0!==n?n:{})?null:t}))}n.d(e,{J:function(){return r}});var i=Object.prototype.toString;function o(t,e){return i.call(t)==="[object ".concat(e,"]")}function a(t,e){return!!o(t,"String")&&(function(t){return o(t,"RegExp")}(e)?e.test(t):"string"==typeof e&&-1!==t.indexOf(e))}function u(t){var e,n;try{return null!==(n=null===(e=t.request)||void 0===e?void 0:e.url)&&void 0!==n?n:null}catch(t){return null}}},12949:function(t,e,n){"use strict";n.d(e,{C:function(){return r}});var r=function(t){(n.g.navigator||n.g.location||n.g.document)&&t.addEventProcessor((function(t){var e,r,i,o=(null===(e=t.request)||void 0===e?void 0:e.url)||(null===(r=n.g.location)||void 0===r?void 0:r.href),a=(n.g.document||{}).referrer,u=(n.g.navigator||{}).userAgent,c=Object.assign(Object.assign(Object.assign({},null===(i=t.request)||void 0===i?void 0:i.headers),a&&{Referer:a}),u&&{"User-Agent":u}),s=Object.assign(Object.assign({},o&&{url:o}),{headers:c});return Object.assign(Object.assign({},t),{request:s})}))}},99456:function(t,e,n){"use strict";n.d(e,{H:function(){return u},KE:function(){return s},PN:function(){return l},fV:function(){return a},ji:function(){return c}});var r=n(77329),i=n(41698),o="\ncolor: black;\npadding: 2px 4px;\nborder-radius: 2px;\nbackground: rgb(255,62,33);\nbackground: linear-gradient(90deg, rgba(255,62,33,1) 35%, rgba(254,209,23,1) 100%);\n",a="\ncolor: white;\npadding: 2px 4px;\nborder-radius: 2px;\nbackground: rgb(2,0,36);\nbackground: linear-gradient(90deg, rgba(164,15,244,1) 35%, rgba(254,23,122,1) 100%);\n",u=function(t,e){(0,i.MD)().captureException(t,e),(0,r.L)()&&console.error(t,e)},c=function(t,e){(0,i.MD)().captureMessage(t,e),l(t)},s=function(){for(var t,e=arguments.length,n=new Array(e),r=0;r0)&&(!function(t){if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(i)?n[r]=i:n[r]=t(i)),n}),{});var n}},25791:function(t,e,n){"use strict";n.d(e,{E:function(){return m},r:function(){return _}});var r=n(92906),i=n(88263),o=n(31111);var a=n(93324),u=n(77329),c=n(99456);var s=n(4942),l=n(7344),d=new Set(["a11y_disable_focus","a11y_disable_previews","ad_id","api_host","api_host_ads","api_host_tracking","api_host_tracking_legacy","auto_apply_coupon_enabled","autoplay","autoplay_keep_thumbnail","branding","captions","channel","channel_id","chat_channel_id","lead_generation","commerce_funnel_tracking_enabled","collapsed","dir","dock","expand_prod_desc_enabled","hashtag","height","hero_flip_order","hero_text_mode","hide_cart_quantity","hide_cart_total","hide_show_detail","homepage_url","horizontal","http_ls","in_sdk_webview","instant_checkout_coupons_enabled","key_moments","fullscreen_pdp_enabled","product_checkout_card_v2","hide_product_price","product_index","lang","light_mode_player_enabled","live_label","livestream_chat","livestream_prompt_username_change","livestream_firstparty","full_height_pdp","loop","lsdesktop","max_videos","minimized","mode","moderator_icon","muted","name","open_in","livestream_update_order_fluid_enabled","page_type","page_url","paginate_by","per_page","persist_cart","pip","pip_navigate","pip_observe","pip_outbound_target","pip_target","placement","player_add_to_calendar","player_captions","player_fullscreen","player_key","player_margin","player_minimize","player_more_menu","player_placement","player_play_pause","player_product_on_click","player_detached","player_tap_to_unmute","playlist","playlist_collection","popup_position","priority","product_card_carousel","reset_transform","share","share_label","share_template","shopping_cart_style","show_ads","show_preroll","size","sold_and_fulfilled_enabled","skus","start_time","tap_to_watch","target","text","title","token","type","ui_border_style","ui_button_color","ui_button_font_color","ui_font_css","ui_full_cta","ui_primary_color","ui_share_sheet","upcoming_label","user_id","vast_attrs","vertical","video","product_image_carousel"]),f=["cohort_"],p=["max_videos","router","show_preroll","title","ui_share_sheet"],v=new Set(["a11y_disable_focus","auto_apply_coupon_enabled","autoplay","autoplay_keep_thumbnail","branding","captions","lead_generation","commerce_funnel_tracking_enabled","cart_revamp","dock","expand_prod_desc_enabled","hero_flip_order","hide_cart_quantity","hide_cart_total","hide_show_detail","http_ls","in_sdk_webview","instant_checkout_coupons_enabled","key_moments","fullscreen_pdp_enabled","light_mode_player_enabled","product_checkout_card_v2","hide_product_price","product_index","livestream_chat","full_height_pdp","loop","lsdesktop","minimized","muted","livestream_update_order_fluid_enabled","livestream_firstparty","persist_cart","pip","pip_navigate","pip_observe","player_add_to_calendar","player_captions","player_fullscreen","player_minimize","player_more_menu","player_play_pause","player_product_on_click","player_detached","player_tap_to_unmute","product_card_carousel","sold_and_fulfilled_enabled","show_ads","show_preroll","tap_to_watch","ui_full_cta","ic_coupon","hide_cart_total","hide_cart_quantity","product_image_carousel"]),h=["max_videos","paginate_by","start_time"],m=function(t){return d.has(t)||f.some((function(e){return t.startsWith(e)}))},g=function(t,e){return void 0===e&&(e={}),Object.entries(t).filter((function(t){var n=(0,a.Z)(t,1)[0];return!(e.skip&&e.skip.includes(n))})).filter((function(t){var e=(0,a.Z)(t,1)[0];return m(e)})).map((function(t){var e=(0,a.Z)(t,2),n=e[0],r=e[1];return h.includes(n)?[n,parseInt(null!=r?r:"0",10)]:[n,r]})).map((function(t){var e=(0,a.Z)(t,2),n=e[0],r=e[1];return v.has(n)?[n,!(0,l.X0)(r)]:[n,r]})).filter((function(t){var e=(0,a.Z)(t,2),n=e[0],r=e[1];return p.includes(n)||""!==r})).reduce((function(t,e){var n=(0,a.Z)(e,2),r=n[0],i=n[1];return Object.assign(Object.assign({},t),(0,s.Z)({},r,i))}),{})},y="fwparam_";function _(t,e){var n,s,l,d,f,p=t.defaultParams,v=null!==(n=null==e?void 0:e.initialParams)&&void 0!==n?n:t.initialParams,h=(null==e?void 0:e.fetchedParams)?g((0,r.E)(e.fetchedParams),{skip:["max_videos"]}):t.fetchedParams,m=(null==e?void 0:e.widgetParams)?g(e.widgetParams):t.widgetParams,_=g((l=(0,i.O5)(),d={},Object.keys(l).forEach((function(t){var e=t.substring(y.length);t.startsWith(y)&&(d[e]=l[t])})),d)),b=g(null!==(s=null==(f=(0,o.m)())?void 0:f.globalConfig)&&void 0!==s?s:{}),w=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p),v),h),b),m),_);return function(t){var e,n,r=t.defaultParams,i=void 0===r?{}:r,o=t.initialParams,s=void 0===o?{}:o,l=t.fetchedParams,d=void 0===l?{}:l,f=t.globalConfigParams,p=void 0===f?{}:f,v=t.widgetParams,h=void 0===v?{}:v,m=t.urlParams,g=void 0===m?{}:m,y=t.params,_=void 0===y?{}:y;if((0,u.L)())try{var b="fw-"+(null===(e=_.type)||void 0===e?void 0:e.replace("_","-")),w=Array.from(document.querySelectorAll(b)).find((function(t){return t.widgetId===_.widget_id}))||s.target;console.groupCollapsed("%cFW-DEBUG <".concat(b,"> (").concat(_.widget_id,")"),c.fV),console.log("Matched elements:",w),console.dir(w),console.log("---");var O=null!==(n=w.computedStyleMap())&&void 0!==n?n:[],E=Array.from(O).filter((function(t){return(0,a.Z)(t,1)[0].startsWith("--fw-")}));console.groupCollapsed("CSS Variables:",E.length),console.table(E.map((function(t){var e=(0,a.Z)(t,2),n=e[0],r=e[1];return[n,"".concat(r)]}))),console.groupEnd(),console.log("---"),[["Default params:",i],["Initial params:",s],["Fetched params:",d],["Global params:",p],["Widget params:",h],["URL params:",g],["= Resolved params:",_]].forEach((function(t){var e=(0,a.Z)(t,2),n=e[0],r=e[1];console.groupCollapsed(n,Object.values(r).length),r&&Object.values(r).length&&console.table(Object.entries(r)),console.groupEnd()})),console.groupEnd()}catch(t){(0,c.H)(t)}}({defaultParams:p,initialParams:v,fetchedParams:h,globalConfigParams:b,widgetParams:m,urlParams:_,params:w}),{params:w,initialParams:v,fetchedParams:h,widgetParams:m,urlParams:_,globalConfigParams:b}}},72039:function(t,e,n){"use strict";n.d(e,{Du:function(){return c},Aq:function(){return u},uj:function(){return a},lR:function(){return o},kG:function(){return r},l2:function(){return i},XX:function(){return g},qS:function(){return _}});var r="RENDER_STARTED",i="VIDEOS_STARTED",o="FIRST_VIDEOS_RECEIVED",a="FIRST_THUMBNAIL_RENDERED",u="FIRST_AUTOPLAY_LOADSTART",c="FIRST_AUTOPLAY_CANPLAY",s=n(93324),l=n(4942),d=n(15671),f=n(23919),p="undefined"!=typeof window&&void 0!==window.performance&&"measure"in window.performance&&"mark"in window.performance;function v(t){var e=Math.pow(10,3),n=Math.round(t)/e,r="".concat(n).split(".");return"".concat(r[0],".").concat((r[1]||"").padEnd(3,"0"))}function h(t){return t.startTime?"".concat(t.name)+" at ".concat(v(t.startTime),"s")+" took ".concat(v(t.duration),"s"):"".concat(t.name)+" at ".concat(v(t.duration),"s")}var m=function t(e){var n=this,r=e.key;(0,d.Z)(this,t),this.prefix=function(t){return"".concat(n.key,"/").concat(t)},this.mark=function(t){try{p&&window.performance.mark(n.prefix(t))}catch(t){(0,f.H)(t)}},this.measure=function(t,e,r){try{if(!p)return;var i=n.prefix(t);r&&e?window.performance.measure(i,n.prefix(e),n.prefix(r)):e?window.performance.measure(i,n.prefix(e)):r?window.performance.measure(i,void 0,n.prefix(r)):window.performance.measure(i),window.performance.getEntriesByName(i,"measure").forEach((function(t){var e,r,i;null===(i=null===(r=null===(e=null===window||void 0===window?void 0:window._fwn)||void 0===e?void 0:e.console)||void 0===r?void 0:r.instance)||void 0===i||i.log({entry:h(t),group:n.key})}))}catch(t){(0,f.PN)(t)}},this.key=r};function g(t){var e,n,r=Object.entries((e={},(0,l.Z)(e,String(t.type),null===(n=t.widget_id)||void 0===n?void 0:n.substring(0,8)),(0,l.Z)(e,"channel",t.channel),(0,l.Z)(e,"channel_id",t.channel_id),(0,l.Z)(e,"hashtag",t.hashtag),(0,l.Z)(e,"playlist",t.playlist),(0,l.Z)(e,"video",t.video),e)).filter((function(t){return!!(0,s.Z)(t,2)[1]})).map((function(t){var e=(0,s.Z)(t,2),n=e[0],r=e[1];return"".concat(n,":").concat(r)})).join("/");return window._fwnPerformance=window._fwnPerformance||{},window._fwnPerformance[r]=window._fwnPerformance[r]||new m({key:r})}var y=n(98661);function _(t){return(0,y.useMemo)((function(){return t?g(t):void 0}),[t])}},10881:function(t,e,n){"use strict";n.d(e,{$v:function(){return o},gb:function(){return r},j:function(){return a},z9:function(){return i}});var r="fwPipIframe",i="_fwnplrstate",o="_blank",a=100},90429:function(t,e,n){"use strict";n.d(e,{pW:function(){return l},JW:function(){return i},mL:function(){return y},IG:function(){return w},Pq:function(){return E}});var r=n(10881);function i(){var t;return"undefined"!=typeof window&&(null===(t=window.frameElement)||void 0===t?void 0:t.getAttribute("id"))===r.gb}var o=n(98661),a=n(77329);function u(t,e,n){var i;void 0===e&&(e=""),void 0===n&&(n=r.$v),t&&(i=null==t?void 0:t.href)&&(i.startsWith("//")||i.startsWith("http")&&!i.includes(e))&&t.setAttribute("target",n)}function c(t,e,n){for(var r,i,o=null===(r=null==t?void 0:t.getElementsByTagName)||void 0===r?void 0:r.call(t,"a"),a=null!==(i=null==o?void 0:o.length)&&void 0!==i?i:0;a--;)u(null==o?void 0:o[a],e,n)}var s=n(35944),l=(o.default.createElement,function(t){var e=t.observeDOM,n=t.onError,i=t.onLoad,l=t.onLocationChange,d=t.outboundTarget,f=t.src,p=t.title,v=(0,o.useRef)(null),h=function(t){var e=(0,o.useState)(null),n=e[0],i=e[1],a=(0,o.useCallback)((function(){t.current&&(t.current.hasAttribute("src")?n||i(!0):i(!1))}),[n,t]),u=(0,o.useMemo)((function(){return new MutationObserver(a)}),[a]);return(0,o.useLayoutEffect)((function(){return t.current&&u.observe(t.current,{attributes:!0}),setTimeout(a,r.j),function(){u.disconnect()}}),[n,a,u,t]),n}(v);(0,o.useLayoutEffect)((function(){!1===h&&n&&n()}),[h,n]);var m=(0,o.useMemo)((function(){return{background:"white",border:(0,a.L)()?"5px solid red":0,height:"100%",width:"100%",left:0,top:0,position:"fixed",scrollbarWidth:"thin",zIndex:2147483645,overscrollBehavior:"none",overflow:"scroll",display:h?"block":"none"}}),[h]);(0,o.useLayoutEffect)((function(){try{var t=(v.current||{}).contentWindow;if(t){var e=t.history.pushState,r=t.history.replaceState;return t.history.pushState=function(){for(var n=arguments.length,r=new Array(n),i=0;i-1)}},37498:function(t,e,n){"use strict";n.r(e),e.default=function(){return function(t){if(!("Event"in self))return!1;try{return new Event("click"),!0}catch(t){return!1}}()}},22213:function(t,e,n){"use strict";n.r(e),e.default=function(){return"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype}},68134:function(t,e,n){"use strict";n.r(e),e.default=function(){return"Map"in self&&function(t){try{var e=new t.Map([[1,1],[2,2]]);return 0===t.Map.length&&2===e.size&&"Symbol"in t&&"iterator"in t.Symbol&&"function"==typeof e[t.Symbol.iterator]&&"toStringTag"in t.Symbol&&void 0!==e[t.Symbol.toStringTag]}catch(t){return!1}}(self)}},41067:function(t,e,n){"use strict";n.r(e),e.default=function(){return"MutationObserver"in self}},50851:function(t,e,n){"use strict";n.r(e),e.default=function(){return"MAX_SAFE_INTEGER"in Number}},75900:function(t,e,n){"use strict";n.r(e),e.default=function(){return"MIN_SAFE_INTEGER"in Number}},42690:function(t,e,n){"use strict";n.r(e),e.default=function(){return"isNaN"in Number}},13327:function(t,e,n){"use strict";n.r(e),e.default=function(){return"assign"in Object}},4224:function(t,e,n){"use strict";n.r(e),e.default=function(){return"entries"in Object}},43201:function(t,e,n){"use strict";n.r(e),e.default=function(){return"freeze"in Object}},20849:function(t,e,n){"use strict";n.r(e),e.default=function(){return"getOwnPropertyDescriptor"in Object&&"function"==typeof Object.getOwnPropertyDescriptor&&function(){try{return"3"===Object.getOwnPropertyDescriptor("13.7",1).value}catch(t){return!1}}()}},18213:function(t,e,n){"use strict";n.r(e),e.default=function(){return"getOwnPropertyDescriptor"in Object&&"function"==typeof Object.getOwnPropertyDescriptor&&function(){try{var t={test:0};return 0===Object.getOwnPropertyDescriptors(t).test.value}catch(t){return!1}}()}},21953:function(t,e,n){"use strict";n.r(e),e.default=function(){return"getOwnPropertyNames"in Object&&function(){try{return Object.getOwnPropertyNames(1),!0}catch(t){return!1}}()}},79319:function(t,e,n){"use strict";n.r(e),e.default=function(){return"isFrozen"in Object}},62202:function(t,e,n){"use strict";n.r(e),e.default=function(){return"keys"in Object&&function(){return 2===Object.keys(arguments).length}(1,2)&&function(){try{return Object.keys(""),!0}catch(t){return!1}}()}},24656:function(t,e,n){"use strict";n.r(e),e.default=function(){return"seal"in Object&&function(){try{return Object.seal("1"),!0}catch(t){return!1}}()}},67935:function(t,e,n){"use strict";n.r(e),e.default=function(){return"setPrototypeOf"in Object}},56269:function(t,e,n){"use strict";n.r(e),e.default=function(){return"values"in Object}},90979:function(t,e,n){"use strict";n.r(e),e.default=function(){return"Promise"in self}},4730:function(t,e,n){"use strict";n.r(e),e.default=function(){return self.Reflect&&"construct"in self.Reflect}},227:function(t,e,n){"use strict";n.r(e),e.default=function(){return"Reflect"in self}},94060:function(t,e,n){"use strict";n.r(e),e.default=function(){return"ResizeObserver"in self}},87275:function(t,e,n){"use strict";n.r(e),e.default=function(){return"Set"in self&&function(){try{var t=new self.Set([1,2]);return 0===self.Set.length&&2===t.size&&"Symbol"in self&&"iterator"in self.Symbol&&"function"==typeof t[self.Symbol.iterator]&&"toStringTag"in self.Symbol&&void 0!==t[self.Symbol.toStringTag]}catch(t){return!1}}()}},3992:function(t,e,n){"use strict";n.r(e),e.default=function(){return"includes"in String.prototype}},41165:function(t,e,n){"use strict";n.r(e),e.default=function(){return"padEnd"in String.prototype}},2222:function(t,e,n){"use strict";n.r(e),e.default=function(){return"startsWith"in String.prototype}},18518:function(t,e,n){"use strict";n.r(e),e.default=function(){return"trim"in String.prototype&&!"\t\n\v\f\r                 \u2028\u2029\ufeff".trim()&&"​…᠎"==="​…᠎".trim()}},9989:function(t,e,n){"use strict";n.r(e),e.default=function(){return"Symbol"in self&&0===self.Symbol.length}},35398:function(t,e,n){"use strict";n.r(e),e.default=function(){return"Symbol"in self&&"iterator"in self.Symbol}},19948:function(t,e,n){"use strict";n.r(e),e.default=function(){return"description"in self.Symbol.prototype}},93010:function(t,e,n){"use strict";n.r(e),e.default=function(){return"Symbol"in self&&"toStringTag"in self.Symbol}},32799:function(t,e,n){"use strict";n.r(e),e.default=function(){return function(t){try{var e=new t.URL("http://example.com");if("href"in e&&"searchParams"in e){var n=new URL("http://example.com");if(n.search="a=1&b=2","http://example.com/?a=1&b=2"===n.href&&(n.search="","http://example.com/"===n.href)){if(!("sort"in t.URLSearchParams.prototype))return!1;var r=new t.URLSearchParams("a=1"),i=new t.URLSearchParams(r);if("a=1"!==String(i))return!1;var o=new t.URLSearchParams({a:"1"});if("a=1"!==String(o))return!1;var a=new t.URLSearchParams([["a","1"]]);return"a=1"===String(a)}}return!1}catch(t){return!1}}(self)}},67157:function(t,e,n){"use strict";n.r(e),e.default=function(){return function(){try{if("WeakMap"in self&&0===self.WeakMap.length){var t={},e=new self.WeakMap([[t,"test"]]);return"test"===e.get(t)&&!1===e.delete(0)&&"toStringTag"in self.Symbol&&void 0!==e[self.Symbol.toStringTag]}return!1}catch(t){return!1}}()}},84071:function(t,e,n){"use strict";n.r(e),e.default=function(){return function(t){try{if(Object.prototype.hasOwnProperty.call(t,"WeakSet")&&0===t.WeakSet.length){var e={},n=new t.WeakSet([e]);return n.has(e)&&!1===n.delete(0)&&"toStringTag"in self.Symbol&&void 0!==n[self.Symbol.toStringTag]}return!1}catch(t){return!1}}(self)}},46634:function(t,e,n){"use strict";n.r(e),e.default=function(){return"console"in self}},46073:function(t,e,n){"use strict";n.r(e),e.default=function(){return"document"in self&&"currentScript"in self.document}},81592:function(t,e,n){"use strict";n.r(e),e.default=function(){return"document"in self&&"hidden"in document&&"visibilityState"in document}},77911:function(t,e,n){"use strict";n.r(e),e.default=function(){return"fetch"in self&&"Request"in self&&function(){try{return"signal"in new Request("")}catch(t){return!1}}()}},5846:function(t,e,n){"use strict";n.r(e),e.default=function(){return"requestAnimationFrame"in self}},37371:function(t,e,n){"use strict";n.d(e,{w:function(){return a},c:function(){return v}});var r=n(87757),i=n.n(r),o=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},a=function(){return o(void 0,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("undefined"!=typeof window){t.next=2;break}throw new Error("No IntersectionObserver in SSR");case 2:if("IntersectionObserver"in window){t.next=5;break}return t.next=5,n.e(6337).then(n.t.bind(n,66337,23));case 5:return t.abrupt("return",window.IntersectionObserver);case 6:case"end":return t.stop()}}),t)})))},u=n(4942),c=n(93324),s=n(89062),l=n(23919),d=n(77329),f=[["AbortController",n(20438)],["Array.from",n(39072)],["Array.isArray",null],["Array.prototype.entries",n(48282)],["Array.prototype.every",null],["Array.prototype.fill",n(16797)],["Array.prototype.filter",null],["Array.prototype.find",n(37284)],["Array.prototype.findIndex",n(23976)],["Array.prototype.flat",n(64467)],["Array.prototype.forEach",null],["Array.prototype.includes",n(57401)],["Array.prototype.indexOf",null],["Array.prototype.keys",n(37743)],["Array.prototype.lastIndexOf",null],["Array.prototype.map",null],["Array.prototype.reduce",null],["Array.prototype.some",null],["Array.prototype.sort",n(66527)],["Array.prototype.values",n(91350)],["ArrayBuffer",n(29739)],["Blob",n(45937)],["console",n(46634)],["CustomEvent",n(95466)],["DataView",n(29739)],["Date.now",null],["Date.prototype.toISOString",null],["document",null],["document.currentScript",n(46073)],["document.visibilityState",n(81592)],["Element",null],["Event",n(37498)],["fetch",n(77911)],["Float32Array",null],["Function.prototype.bind",null],["getComputedStyle",null],["IntersectionObserver",n(22213)],["JSON",null],["localStorage",null],["Map",n(68134)],["modernizr:es5object",null],["MutationObserver",n(41067)],["Number.isNaN",n(42690)],["Number.MAX_SAFE_INTEGER",n(50851)],["Number.MIN_SAFE_INTEGER",n(75900)],["Object.assign",n(13327)],["Object.defineProperties",null],["Object.defineProperty",null],["Object.entries",n(4224)],["Object.freeze",n(43201)],["Object.getOwnPropertyDescriptor",n(20849)],["Object.getOwnPropertyDescriptors",n(18213)],["Object.getOwnPropertyNames",n(21953)],["Object.getOwnPropertySymbols",null],["Object.isFrozen",n(79319)],["Object.keys",n(62202)],["Object.seal",n(24656)],["Object.setPrototypeOf",n(67935)],["Object.values",n(56269)],["Promise",n(90979)],["Reflect",n(227)],["Reflect.construct",n(4730)],["requestAnimationFrame",n(5846)],["ResizeObserver",n(94060)],["Set",n(87275)],["String.prototype.includes",n(3992)],["String.prototype.padEnd",n(41165)],["String.prototype.startsWith",n(2222)],["String.prototype.trim",n(18518)],["Symbol",n(9989)],["Symbol.for",null],["Symbol.iterator",n(35398)],["Symbol.prototype.description",n(19948)],["Symbol.toStringTag",n(93010)],["Uint16Array",null],["Uint8Array",null],["URL",n(32799)],["URLSearchParams",null],["WeakMap",n(67157)],["WeakSet",n(84071)],["XMLHttpRequest",null]];function p(){return(void 0===t&&(t=f),new Promise((function(e,n){var r=!0,i=t.map((function(t){var e=(0,c.Z)(t,2),n=e[0],i=e[1];try{var o=null===i||i&&i.default&&i.default();return r=r&&o,[n,o]}catch(t){return r=!1,[n,!1]}}));!r&&(0,d.L)()&&console.table(i),r?e("No polyfill needed"):n(new Error("Polyfills needed"))}))).catch((function(t){(0,l.PN)("FWN: ".concat(null==t?void 0:t.message));var e=function(t,e){return void 0===t&&(t=f),void 0===e&&(e=document),new Promise((function(n,r){var i="_fwnRender_io";window._fwnRender_io=function(){n("Polyfill served from remote source")};var o=e.createElement("script");o.src="https://polyfill.io/v3/polyfill.min.js?features=".concat(t.map((function(t){return(0,c.Z)(t,1)[0]})).join("%2C"),"&flags=gated&callback=").concat(i),o.async=!0,o.type="text/javascript",o.crossOrigin="anonymous",o.referrerPolicy="no-referrer",o.onerror=function(t){r(t)},e.head.appendChild(o)}))}();return Promise.race([e,new Promise((function(t,e){setTimeout((function(){return e(new Error("Request Timeout"))}),1e3)}))]).then((function(t){(0,l.PN)("FWN: ".concat(t))})).catch((function(t){return(0,l.PN)("FWN: ".concat(null==t?void 0:t.message)),Promise.race([e,(void 0===n&&(n=document),new Promise((function(t,e){window._fwnRender=function(){t("Polyfill served from backup source")};var r=n.createElement("script");r.async=!0,r.src="https://asset.fireworktv.com/js/static-ie11-polyfill.io.js",r.type="text/javascript",r.onerror=function(t){e(t)},n.head.appendChild(r)})))]).then((function(t){(0,l.PN)("FWN: ".concat(t))})).catch((function(t){(0,l.H)(t)}));var n}))}));var t}function v(t){var e;window.fwnPolyfillPromise=null!==(e=window.fwnPolyfillPromise)&&void 0!==e?e:p(),window.fwnPolyfillPromise.finally((function(){t()}))}Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r}),Object.fromEntries||(Object.fromEntries=function(t){return Object.assign.apply(Object,[{}].concat((0,s.Z)(Array.from(t,(function(t){var e=(0,c.Z)(t,2),n=e[0],r=e[1];return(0,u.Z)({},n,r)})))))}),void 0===Element.prototype.getAttributeNames&&(Element.prototype.getAttributeNames=function(){for(var t=this.attributes,e=t.length,n=new Array(e),r=0;r[a-zA-Z0-9_]+)"))))||void 0===e?void 0:e.groups)||void 0===n?void 0:n.base64data)||(0,f.O5)(t.location.search)[i];if(r){var o=JSON.parse((0,l.decodeUrl)(r));return o.video_id?o:void 0}}catch(t){return}}(t))&&void 0!==e?e:m(t.location.hash))&&void 0!==n?n:m(t.location.search)}catch(t){(0,d.H)(t)}},y=n(98661);var _=function(t){var e=t.video,n=t.appContext,r=t.params,i=t.startTime,o=t.baseUrl,l=t.paramType,f=(0,y.useState)(null),v=f[0],h=f[1];return(0,y.useEffect)((function(){var t=o||c({params:r});(0,p.X0)(null==r?void 0:r.share)&&!l?h(null):h(function(t,e){var n,r,i;try{var o=Object.fromEntries(Object.entries(Object.assign(Object.assign({playlist:null!==(n=e.playlist_id)&&void 0!==n?n:void 0,start_time:null!==(r=e.start_time)&&void 0!==r?r:void 0,video:null!==(i=e.video_id)&&void 0!==i?i:void 0},e),{playlist_id:null,video_id:null})).map((function(t){var e=(0,s.Z)(t,2),n=e[0],r=e[1];return["fw_".concat(n),r]}))),u=new URL(a(t));return Object.entries(o).forEach((function(t){var e=(0,s.Z)(t,2),n=e[0],r=e[1];r&&u.searchParams.set(n,"".concat(r))})),u.toString()}catch(t){(0,d.H)(t)}return null}(t,function(t,e,n){var r,i,o,a,c;return Object.assign(Object.assign({},(0,u.E)({channel:null===(r=null==t?void 0:t.params)||void 0===r?void 0:r.channel,channel_id:null===(i=null==t?void 0:t.params)||void 0===i?void 0:i.channel_id,hashtag:null===(o=null==t?void 0:t.params)||void 0===o?void 0:o.hashtag,playlist_id:null===(a=null==t?void 0:t.params)||void 0===a?void 0:a.playlist,start_time:n})),{video_id:null!==(c=null==e?void 0:e.encoded_id)&&void 0!==c?c:""})}(n,e,i)))}),[n,r,e,i,o,l]),v}},24767:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(89062),i=n(23919);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){c=!0,o=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0}))}:t}),!1,"updateUnitCartQuantity")},setCartUpdatedCallback:function(e){t({cartUpdatedCallback:c(e,"cartUpdatedCallback")},!1,"setCartUpdatedCallback")},setCartDisplayedCallback:function(e){t({cartDisplayedCallback:c(e,"cartDisplayedCallback")},!1,"setCartDisplayedCallback")},setProductsLoadedCallback:function(e){t({productsLoadedCallback:c(e,"productsLoadedCallback")},!1,"setProductsLoadedCallback")},cartUpdateStarted:function(){t((function(t){return{pendingCartUpdate:t.pendingCartUpdate+1}}),!1,"cartUpdateStarted")},cartUpdateEnded:function(){t((function(t){return{pendingCartUpdate:t.pendingCartUpdate-1,lastCartUpdateTs:Date.now()}}),!1,"cartUpdateEnded")}}}function c(t,e){return function(){for(var n=arguments.length,r=new Array(n),o=0;o0}function v(t){return t[r.n].lastCartUpdateTs}},79304:function(t,e,n){"use strict";n.d(e,{O:function(){return c},n:function(){return u}});var r=n(4942),i=n(93276),o=n(24767),a=n(8277),u="shopping";function c(){return(0,r.Z)({},u,(0,i.g8)((function(t){return Object.assign(Object.assign({},(0,a.g)()),{actions:(0,o.Z)(t)})})))}},8277:function(t,e,n){"use strict";function r(){return{cart:[],cartCurrency:"",cartUrl:"",cartAddToCartText:"",cartItemInCartText:"",productsHydrated:{},pendingCartUpdate:0,lastCartUpdateTs:0}}n.d(e,{g:function(){return r}})},93080:function(t,e,n){"use strict";n.d(e,{$o:function(){return u},G:function(){return c}});var r,i=n(31111),o=n(40647);!function(t){t.LOCAL_STORAGE="localStorage",t.SESSION_STORAGE="sessionStorage",t.MEMORY_STORAGE="memoryStorage"}(r||(r={}));var a=function(t){var e,n,a,u=null!==(n=null===(e=(0,i.m)())||void 0===e?void 0:e.memoryStorage)&&void 0!==n?n:o.N;if("undefined"!=typeof window)try{switch(t){case r.LOCAL_STORAGE:a=window.localStorage;break;case r.SESSION_STORAGE:a=window.sessionStorage;break;case r.MEMORY_STORAGE:a=u}}catch(t){console.log(t)}return a&&!function(t){var e="__TestKey__";try{if(t.setItem(e,e),t.getItem(e)!==e)return t.removeItem(e),!0;t.removeItem(e)}catch(t){return!0}return!1}(a)||(a=u),a},u=function(){return a(r.LOCAL_STORAGE)},c=function(){return a(r.SESSION_STORAGE)}},65042:function(t,e,n){"use strict";n.d(e,{$o:function(){return r.$o},G:function(){return r.G}});var r=n(93080)},40647:function(t,e,n){"use strict";n.d(e,{N:function(){return r}});var r={data:new Map,_length:0,get length(){return this._length},getItem:function(t){return this.data.get(t)},setItem:function(t,e){this.data.set(t,e),this._length=this.data.size},removeItem:function(t){this.data.delete(t),this._length=this.data.size},clear:function(){this.data.clear(),this._length=0},key:function(t){return this.data.keys()[t]}}},16756:function(t,e,n){"use strict";n.d(e,{z:function(){return f}});var r,i=n(93276),o=n(59148),a=n(77329),u=n(31111),c=n(22106),s=n(90503),l=n(3817),d=null===(r=(0,u.m)())||void 0===r?void 0:r.globalStore;var f=function(){if(!d){e=(0,i.TH)(l.e),(0,a.L)()&&(e=(0,c.H)(e)),"undefined"==typeof jest&&(e=(0,s.S)(e)),d=(0,o.Z)(e);var t=(0,u.m)();t&&(t.globalStore=d)}var e;return d}},64642:function(t,e,n){"use strict";n.d(e,{U:function(){return a}});var r,i=n(14671),o=n(16756),a=function(){return r||(r=(0,i.Z)((0,o.z)())),r}},22106:function(t,e,n){"use strict";n.d(e,{H:function(){return i}});var r=n(38597);function i(t){return(0,r.mW)(t,{name:"FWN Global Store"})}},96950:function(t,e,n){"use strict";n.d(e,{UE:function(){return o.U},Uw:function(){return i.U},pT:function(){return o.p},zJ:function(){return r.z}});var r=n(16756),i=n(64642),o=n(44565)},90503:function(t,e,n){"use strict";n.d(e,{S:function(){return d}});var r=n(82492),i=n.n(r),o=n(70530),a=n(19491),u=n(41270),c=n(65042),s=n(20763),l={name:"_fwnglobalstore",getStorage:function(){return{getItem:function(t){var e,n,r=JSON.parse(null!==(e=(0,c.$o)().getItem(t))&&void 0!==e?e:"{}"),o=JSON.parse(null!==(n=(0,c.G)().getItem(t))&&void 0!==n?n:"{}"),a=i()({},r,o);return JSON.stringify(a)},setItem:function(t,e){var n=JSON.parse(e),r=n.state,i=r.local,o=r.session,a=n.version;(0,c.$o)().setItem(t,JSON.stringify({state:i,version:a})),(0,c.G)().setItem(t,JSON.stringify({state:o,version:a}))},removeItem:function(t){(0,c.$o)().removeItem(t),(0,c.G)().removeItem(t)}}},partialize:function(t){return{local:Object.assign(Object.assign(Object.assign({},(0,o.yg)(t)),(0,u.yg)(t)),(0,a.Af)(t)),session:Object.assign({},(0,a.hq)(t))}},merge:function(t,e){return Object.assign(Object.assign(Object.assign(Object.assign({},e),(0,o.TS)(t,e)),(0,u.TS)(t,e)),(0,a.TS)(t,e))}};function d(t){return(0,s.t)(t,l)}},44565:function(t,e,n){"use strict";function r(t){return t.pageLoadId}function i(t){return t.adId}n.d(e,{U:function(){return i},p:function(){return r}})},89158:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});var r=n(7344);function i(){return{pageLoadId:(0,r.k$)(),adId:(0,r.YF)()}}},3817:function(t,e,n){"use strict";n.d(e,{e:function(){return s}});var r=n(70530),i=n(50559),o=n(64117),a=n(83974),u=n(41270),c=n(89158),s=function(t){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,i.Vt)(t)),(0,a.it)()),(0,o.Qi)()),(0,r.a2)()),(0,u.Oj)()),(0,c.L)()),{setState:function(e){return t(e)}})}},67369:function(t,e,n){"use strict";n.d(e,{A:function(){return c},D:function(){return u}});var r,i,o=n(30168),a=n(70917),u=(0,a.F4)(r||(r=(0,o.Z)(["\n from {\n opacity: 0.8;\n transform: scale3d(1, 1, 1);\n }\n\n to {\n opacity: 0;\n transform: scale3d(1.2, 1.2, 1);\n }\n"]))),c=(0,a.F4)(i||(i=(0,o.Z)(["\n 0% {\n transform: scale(0.99);\n }\n\n 100% {\n transform: scale(1);\n }\n"])))},39764:function(t,e,n){"use strict";n.d(e,{Cb:function(){return yt},Ck:function(){return bt},DG:function(){return f},DM:function(){return o},EG:function(){return y},EX:function(){return ft},EY:function(){return j},Eb:function(){return vt},F$:function(){return it},FA:function(){return dt},GD:function(){return O},HP:function(){return v},Ij:function(){return i},Il:function(){return D},J0:function(){return nt},J5:function(){return X},Le:function(){return u},M:function(){return z},MI:function(){return d},MS:function(){return b},NW:function(){return _},OC:function(){return xt},OO:function(){return V},Oe:function(){return p},PT:function(){return q},QD:function(){return S},R1:function(){return lt},Rm:function(){return Et},SV:function(){return et},SZ:function(){return rt},Sl:function(){return w},U5:function(){return J},VE:function(){return gt},Vb:function(){return F},Vv:function(){return g},YY:function(){return Z},Z2:function(){return M},ZE:function(){return W},ZF:function(){return $},_8:function(){return c},a9:function(){return _t},bZ:function(){return C},dO:function(){return ot},dT:function(){return pt},f3:function(){return K},fv:function(){return H},gP:function(){return R},gg:function(){return B},hX:function(){return ht},hs:function(){return Ot},iQ:function(){return E},it:function(){return U},j5:function(){return tt},jP:function(){return h},kE:function(){return at},oj:function(){return A},pF:function(){return P},pJ:function(){return Y},pT:function(){return s},qP:function(){return mt},rE:function(){return Q},rI:function(){return wt},rT:function(){return k},sg:function(){return G},sj:function(){return l},tY:function(){return r},tb:function(){return L},uE:function(){return x},ut:function(){return a},wo:function(){return I},xg:function(){return ct},yB:function(){return St},yz:function(){return st},z:function(){return m},z_:function(){return T},zd:function(){return N},zt:function(){return ut}});var r="--fw-button-color",i="--fw-button-font-color",o="--fw-font-color",a="--fw-font-family",u="--fw-gradient",c="--fw-primary",s="--fw-branding-text-align",l="--fw-add-to-calendar-background",d="--fw-add-to-calendar-border",f="--fw-add-to-calendar-color",p="--fw-add-to-calendar-font-family",v="--fw-add-to-calendar-font-size",h="--fw-add-to-calendar-font-weight",m="--fw-add-to-calendar-height",g="--fw-add-to-calendar-hover-background",y="--fw-add-to-calendar-hover-border",_="--fw-add-to-calendar-hover-color",b="--fw-add-to-calendar-hover-font-size",w="--fw-add-to-calendar-hover-font-weight",O="--fw-add-to-calendar-width",E="--fw-thumbnail-border-radius",x="--fw-thumbnail-font-size",S="--fw-thumbnail-font-weight",j="--fw-thumbnail-gap",k="--fw-thumbnail-height",C="--fw-thumbnail-width",P="--fw-player-width",T="--fw-player-margin",I="--fw-player-height",A="--fw-player-background",R="--fw-player-border-radius",N="--fw-player-chat-background",D="--fw-player-chat-font-color",Z="--fw-player-chat-font-family",L="--fw-player-chat-text-shadow",M="--fw-player-header-font-color",U="--fw-player-header-font-family",F="--fw-player-pinned-font-color",V="--fw-player-pinned-font-family",H="--fw-player-shop-background",z="--fw-player-shop-font-color",W="--fw-player-shop-list-item-hover-background",Y="--fw-share-border",B="--fw-share-color",$="--fw-share-font-family",G="--fw-share-font-size",X="--fw-share-font-weight",q="--fw-share-height",J="--fw-share-hover-border",K="--fw-share-hover-color",Q="--fw-share-hover-font-size",tt="--fw-share-hover-font-weight",et="--fw-share-width",nt="--fw-share-background",rt="--fw-share-hover-background",it="--fw-storyblock-background",ot="--fw-storyblock-border-radius",at="--fw-chat-reply-background",ut="--fw-chat-reply-border-radius",ct="--fw-chat-reply-font-color",st="--fw-chat-reply-font-family",lt="--fw-chat-reply-text-shadow",dt="--fw-chat-reply-initial-msg-background",ft="--fw-chat-reply-initial-msg-font-color",pt="--fw-chat-reply-initial-msg-font-family",vt="--fw-chat-reply-initial-msg-text-shadow",ht="--fw-chat-pin-background",mt="--fw-chat-pin-border-radius",gt="--fw-product-name-font-color",yt="--fw-product-name-font-family",_t="--fw-product-price-font-color",bt="--fw-product-price-font-family",wt="--fw-product-description-font-color",Ot="--fw-product-description-font-family",Et="--fw-ls-wing-height",xt="--fw-ad-badge-background",St="--fw-ad-badge-font-color"},77172:function(t,e,n){"use strict";n.d(e,{N:function(){return l}});var r=n(4942),i=n(98661),o=n(14742),a=n(35944);i.default.createElement;function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e=0?"IE":t.search("Edg")>=0?"Edge":t.search("Firefox")>=0||t.search("FxiOS")>=0?"Firefox":t.search("Opera")>=0||t.search("OPR")>=0?"Opera":t.search("MicroMessenger")>=0?"WeChat":t.search("Chrome")>=0||t.search("CriOS")>=0?"Chrome":t.search("Safari")>=0&&t.search("Chrome")<0?"Safari":void 0}},o=function(){var t,e=!1;return t=navigator.userAgent||navigator.vendor,(window.innerWidth<=360||/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0),e}},57758:function(t,e,n){"use strict";n.d(e,{a:function(){return r}});var r=10},98739:function(t,e,n){"use strict";n.d(e,{E:function(){return o}});var r=n(94471),i=n(78659),o=function(t){var e,n=t.appContextType,o=t.params,a=t.channel;return(o.channel||o.channel_id)&&o.playlist?o.channel_id&&!a?null:{type:r.u5.PLAYLIST,username:null!==(e=o.channel)&&void 0!==e?e:null==a?void 0:a.username,playlistId:o.playlist,firstVideoId:o.video,maxVideos:n===i.LV.EMBED_GRID_CONTEXT_TYPE?void 0:o.max_videos}:null}},46997:function(t,e,n){"use strict";n.d(e,{E:function(){return r.E},g:function(){return i.g}});var r=n(98739),i=n(39577)},54440:function(t,e,n){"use strict";n.d(e,{sP:function(){return y},uM:function(){return h},gW:function(){return m}});var r=n(98661),i=n(14671),o=n(77329),a=n(43918),u=n(89062),c=n(4942),s=function(t,e){return{resetPlaceholders:function(){t({placeholders:[]})},setThumbnailLoaded:function(n){e().thumbnailIdsLoaded[n.encoded_id]||t((function(t){return{thumbnailIdsLoaded:Object.assign(Object.assign({},t.thumbnailIdsLoaded),(0,c.Z)({},n.encoded_id,!0))}}),!1,"setThumbnailLoaded")},registerThumbnailImpression:function(n){var r=e(),i=r.thumbnailIdsLoaded,o=r.thumbnailImpressionIdsReportSuccess;i[n.encoded_id]&&!o[n.encoded_id]&&t((function(t){return{thumbnailImpressionVideoReportQueue:[].concat((0,u.Z)(t.thumbnailImpressionVideoReportQueue),[n])}}),!1,"registerThumbnailImpression")},processThumbnailImpressionQueue:function(e){if(e.length){var n=e.reduce((function(t,e){return Object.assign(Object.assign({},t),(0,c.Z)({},e.encoded_id,!0))}),{});t((function(t){return{thumbnailImpressionVideoReportQueue:[],thumbnailImpressionIdsReportSuccess:Object.assign(Object.assign({},t.thumbnailImpressionIdsReportSuccess),n)}}),!1,"processThumbnailImpressionQueue")}},showVideoPlayer:function(e){var n=e.video,r=e.playlist,i=e.muted;t((function(){return{player:{video:n,playlist:r,muted:i,isOpen:!0}}}),!1,"showVideoPlayer")},hideVideoPlayer:function(){t((function(t){return{player:Object.assign(Object.assign({},t.player),{isOpen:!1})}}),!1,"hideVideoPlayer")},registerInViewport:function(n){e().inViewportIds[n.encoded_id]||t((function(t){return{inViewportIdsReportQueue:[].concat((0,u.Z)(t.inViewportIdsReportQueue),[n.encoded_id]),inViewportIds:Object.assign(Object.assign({},t.inViewportIds),(0,c.Z)({},n.encoded_id,!0))}}),!1,"registerInViewport")},unregisterInViewport:function(n){e().inViewportIds[n.encoded_id]&&t((function(t){return{inViewportIds:Object.assign(Object.assign({},t.inViewportIds),(0,c.Z)({},n.encoded_id,!1))}}),!1,"unregisterInViewport")},processInViewportQueue:function(e){e.length&&t((function(t){return{inViewportIdsReportQueue:[],inViewportIdsReportSuccess:[].concat((0,u.Z)(t.inViewportIdsReportSuccess),(0,u.Z)(e))}}),!1,"processInViewportQueue")},setAutoplay:function(n){var r=e(),i=r.inViewportIds,o=r.autoplayId;i[n]&&o!==n&&t({autoplayId:n,pausedAutoplayId:null},!1,"setAutoplay")},pauseAutoplay:function(){var n;t({autoplayId:null,pausedAutoplayId:null!==(n=e().autoplayId)&&void 0!==n?n:e().pausedAutoplayId},!1,"pauseAutoplay")}}},l=n(38597),d=n(57758),f=function(){var t,e=function(t,e){return Object.assign(Object.assign({},{autoplayId:null,pausedAutoplayId:null,player:{isOpen:!1,video:null},inViewportIdsReportQueue:[],inViewportIdsReportSuccess:[],inViewportIds:{},thumbnailIdsLoaded:{},thumbnailImpressionIdsReportSuccess:{},thumbnailImpressionVideoReportQueue:[],placeholders:(0,u.Z)(new Array(d.a))}),{actions:s(t,e)})};return(0,o.L)()&&(t=e,e=(0,l.mW)(t,{name:"FWN EmbedFeed Widget"})),(0,i.Z)(e)},p=(0,a.k)(),v=p.Provider,h=p.useStore,m=p.useStoreApi,g=n(35944),y=(r.default.createElement,function(t){var e=t.children,n=(0,r.useMemo)((function(){return f()}),[]);return(0,r.useEffect)((function(){return function(){n.destroy()}}),[n]),(0,g.tZ)(v,{store:n,children:e})})},39577:function(t,e,n){"use strict";n.d(e,{g:function(){return u}});var r=n(98661),i=n(94471),o=n(78659),a=n(51043),u=function(t){var e=t.appContextType,n=t.params,u=t.channel;return(0,r.useMemo)((function(){var t,r,c,s={firstVideoId:n.video,maxVideos:e===o.LV.EMBED_GRID_CONTEXT_TYPE?void 0:n.max_videos};if(n.channel||n.channel_id){if(n.channel_id&&!u)return null;if(!(n.hashtag||n.playlist||n.playlist_collection||n.skus))return[Object.assign(Object.assign({},s),{type:i.u5.USER_TIMELINE,username:null!==(t=n.channel)&&void 0!==t?t:null==u?void 0:u.username})];var l=null!==(c=null===(r=n.priority)||void 0===r?void 0:r.split(",").map((function(t){var e,r,o,a;switch(t.trim()){case"hashtag":return n.hashtag?Object.assign(Object.assign({},s),{type:i.u5.USER_TIMELINE_HASHTAG,username:null!==(e=n.channel)&&void 0!==e?e:null==u?void 0:u.username,hashtagExpression:n.hashtag}):null;case"playlist":return n.playlist?Object.assign(Object.assign({},s),{type:i.u5.PLAYLIST,username:null!==(r=n.channel)&&void 0!==r?r:null==u?void 0:u.username,playlistId:n.playlist}):null;case"playlist_collection":return n.playlist_collection?Object.assign(Object.assign({},s),{type:i.u5.PLAYLIST_COLLECTION,username:null==u?void 0:u.username}):null;case"skus":return n.skus?Object.assign(Object.assign({},s),{type:i.u5.PRODUCT_SKU,username:null!==(o=n.channel)&&void 0!==o?o:null==u?void 0:u.username,skus:n.skus}):null;case"channel":return Object.assign(Object.assign({},s),{type:i.u5.USER_TIMELINE,username:null!==(a=n.channel)&&void 0!==a?a:null==u?void 0:u.username});default:return null}})))&&void 0!==c?c:[];return(0,a.m)(l)}return null}),[e,u,n.video,n.max_videos,n.channel,n.channel_id,n.playlist,n.playlist_collection,n.priority,n.hashtag,n.skus])}},27947:function(t,e,n){"use strict";n.d(e,{$:function(){return r.$}});var r=n(76564)},76564:function(t,e,n){"use strict";n.d(e,{$:function(){return c}});var r=n(87757),i=n.n(r),o=n(70060),a=n(9122),u=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},c=(0,o.B)((function(){return u(void 0,void 0,void 0,i().mark((function t(){var e;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([n.e(181),n.e(1213)]).then(n.bind(n,88901));case 2:return e=t.sent,t.abrupt("return",e.default);case 4:case"end":return t.stop()}}),t)})))}),(function(){return(0,a.oR)((function(t){return t.params.lang}))||"en"}))},55157:function(t,e,n){"use strict";n.d(e,{w:function(){return r.w}});var r=n(53390)},17991:function(t,e,n){"use strict";n.d(e,{d:function(){return v}});var r=n(93324),i=n(98661),o=n(94471),a=n(82071),u=n(57626),c=n(9122),s=n(57734),l=n(32853),d=n(9402),f=n(53733),p=n(35944),v=(i.default.createElement,function(t){var e,n=t.children,v=t.appContextType,h=(0,i.useRef)(!1),m=(0,c.oR)((function(t){return t.actions})),g=(0,c.oR)(s.GF),y=(0,o.I4)(),_=(0,r.Z)(y,1)[0].config,b=(0,f.V)({config:_,appContextType:v}),w=(0,l.t)();return(0,d.j)(),(0,u.g)(null===(e=null==b?void 0:b.channel)||void 0===e?void 0:e.encoded_id),(0,i.useEffect)((function(){var t;(0,a.Pd)(null!==(t=g.page_url)&&void 0!==t?t:"")}),[g.page_url]),(0,i.useEffect)((function(){b&&!h.current&&(w(b),h.current=!0)}),[b,w]),(0,i.useEffect)((function(){b&&m.setContext(b)}),[b,m]),(0,p.tZ)(p.HY,{children:n})})},98173:function(t,e,n){"use strict";n.d(e,{W:function(){return c}});var r=n(98661),i=n(57626),o=n(9122),a=n(57734),u=n(35944),c=(r.default.createElement,function(t){var e=t.children,n=(0,o.oR)(a.GF);return(0,i.U)(Boolean(null==n?void 0:n.commerce_funnel_tracking_enabled)),(0,u.tZ)(u.HY,{children:e})})},98594:function(t,e,n){"use strict";n.d(e,{m:function(){return r}});var r=(0,n(98661).createContext)(null)},76801:function(t,e,n){"use strict";n.d(e,{j:function(){return l}});var r=n(98661),i=n(35039),o=n(46997),a=n(9122),u=n(57734),c=n(17570),s=n(35944),l=(r.default.createElement,function(t){var e=t.appContextType,n=t.children,r=(0,a.oR)(u.GF),l=(0,c.u)({username:r.channel,encodedId:r.channel_id}),d=(0,o.g)({appContextType:e,params:r,channel:l});return(null==d?void 0:d.length)?(0,s.tZ)(i.v,{configs:d,params:r,children:n}):null})},16203:function(t,e,n){"use strict";n.d(e,{F:function(){return u}});var r=n(98661),i=n(9122),o=n(57734),a=n(35944),u=(r.default.createElement,function(t){var e=t.children,n=(0,i.oR)((function(t){return t.actions})),u=((0,i.oR)(o.g2)||{}).channel;return(0,r.useEffect)((function(){(null==u?void 0:u.config)&&n.fetchedParams(u.config)}),[null==u?void 0:u.config,n]),(0,a.tZ)(a.HY,{children:e})})},94717:function(t,e,n){"use strict";n.d(e,{B:function(){return s}});var r=n(98661),i=n(52145),o=n(58368),a=n(60128),u=n(57734),c=n(35944),s=(r.default.createElement,function(t){var e=t.children,n=(0,a.oR)(u.GF),r=(0,o.y)(n);return(0,c.tZ)(i.i.Provider,{value:r,children:e})})},90340:function(t,e,n){"use strict";n.d(e,{C:function(){return c}});var r=n(98661),i=n(25791),o=n(9122),a=n(43918),u=n(35944),c=(r.default.createElement,function(t){var e=t.widgetParams,n=t.initialParams,c=t.children,s=(0,r.useMemo)((function(){return(0,a.L)(n.target),(0,a.L)(e.target),(0,i.r)(o.E3,{initialParams:n,widgetParams:e})}),[n,e]),l=(0,r.useMemo)((function(){var t,r,i=null!==(r=null!==(t=e.name)&&void 0!==t?t:n.widget_id)&&void 0!==r?r:"";return(0,o.MT)(i,(function(){return s}))}),[n.widget_id,s,e.name]);return(0,r.useEffect)((function(){return function(){l.destroy()}}),[l]),(0,u.tZ)(o.zt,{store:l,children:c})})},92285:function(t,e,n){"use strict";n.d(e,{y:function(){return u}});var r=n(98661),i=n(68586),o=n(27947),a=n(35944),u=(r.default.createElement,function(t){var e=t.children;return(0,a.tZ)(i.O.Provider,{value:(0,o.$)(),children:e})})},50411:function(t,e,n){"use strict";n.d(e,{w:function(){return p}});var r=n(98661),i=n(17991),o=n(98173),a=n(98594),u=n(76801),c=n(16203),s=n(94717),l=n(90340),d=n(92285),f=n(35944),p=(r.default.createElement,function(t){var e=t.appContextType,n=t.initialParams,r=t.widgetParams,p=t.children;return(0,f.tZ)(a.m.Provider,{value:{dir:null==r?void 0:r.dir},children:(0,f.tZ)(l.C,{initialParams:n,widgetParams:r,children:(0,f.tZ)(s.B,{children:(0,f.tZ)(u.j,{appContextType:e,children:(0,f.tZ)(i.d,{appContextType:e,children:(0,f.tZ)(c.F,{children:(0,f.tZ)(o.W,{children:(0,f.tZ)(d.y,{children:p})})})})})})})})})},53390:function(t,e,n){"use strict";n.d(e,{w:function(){return r.w}});n(90340);var r=n(50411)},9122:function(t,e,n){"use strict";n.d(e,{AC:function(){return r.AC},E3:function(){return i.E},MT:function(){return r.MT},oR:function(){return r.oR},zt:function(){return r.zt}});var r=n(60128),i=n(4858)},4858:function(t,e,n){"use strict";n.d(e,{E:function(){return c}});var r,i=n(48774),o=n(4518),a=n(57758),u={appContext:null,engagement:{seconds_watched:0,os:(0,o.Ij)(),app_version:"v20230531.1-hotfix",platform:"web",product:"embed.web.naboo"},defaultParams:{pwa_host:"https://fw.tv",a11y_disable_focus:!1,a11y_disable_previews:!1,api_host:"https://fireworkapi1.com",api_host_ads:"https://fireworkadservices1.com",api_host_tracking:"https://p2.fwpixel.com",api_host_tracking_legacy:"https://fireworkanalytics.com",auto_apply_coupon_enabled:!0,branding:!0,in_sdk_webview:"undefined"!=typeof window&&(null===(r=window.origin)||void 0===r?void 0:r.includes("fw-sdk-webview")),captions:!0,lang:"undefined"!=typeof window&&window.navigator?window.navigator.language:void 0,livestream_chat:!0,livestream_prompt_username_change:null,loop:!0,lsdesktop:!0,full_height_pdp:!1,autoplay:!0,autoplay_keep_thumbnail:!1,fullscreen_pdp_enabled:!1,key_moments:!0,product_checkout_card_v2:!0,hide_product_price:!0,http_ls:!1,product_index:!1,minimized:!1,muted:!0,pip:!1,product_card_carousel:!0,player_add_to_calendar:!0,player_captions:!0,player_fullscreen:!0,player_minimize:!0,player_margin:void 0,player_more_menu:!0,player_placement:void 0,player_product_on_click:!1,player_play_pause:!1,player_detached:!1,player_tap_to_unmute:!0,per_page:a.a,persist_cart:!1,reset_transform:i.wl.FULLSCREEN,expand_prod_desc_enabled:!0,share:i.Mu.HASH,shopping_cart_style:i.pl.CART,show_preroll:!0,show_ads:!0,tap_to_watch:!0,hero_flip_order:!1,hero_text_mode:"even",pip_observe:!1,pip_navigate:!0,skus:"",dir:"",priority:"skus,playlist,hashtag,playlist_collection",size:i.o2.LARGE,ui_font_css:"",ui_full_cta:!0,ui_primary_color:"",ui_button_color:"",ui_button_font_color:"",ui_border_style:"default",ui_share_sheet:"facebook,twitter,whatsapp,sms,copy,native",product_image_carousel:!1}},c=Object.assign(Object.assign({},u),{params:{},initialParams:{},fetchedParams:{},widgetParams:{},urlParams:{},session:{},videos:{},liveStreams:{},navigation:[],placeholders:[],loading:!1,loaded:!1,error:null})},57734:function(t,e,n){"use strict";function r(t){return t.actions}function i(t){return t.appContext}function o(t){return t.params}function a(t){return t.params.lang}function u(t){return t.navigation.map((function(e){return t.videos[e]}))}n.d(e,{De:function(){return r},GF:function(){return o},Kr:function(){return a},g2:function(){return i},w0:function(){return u}})},60128:function(t,e,n){"use strict";n.d(e,{zt:function(){return m},MT:function(){return v},oR:function(){return g},AC:function(){return y}});var r=n(93276),i=n(14671),o=n(77329),a=n(43918),u=n(4942),c=n(7344),s=n(25791),l=function(t,e){return{setContext:function(e){t({appContext:e,engagement:{}},!1,"setContext")},fetchedParams:function(n){var r=e(),i=(0,s.r)(r,{fetchedParams:n}),o=i.params,a=i.fetchedParams;a&&t({params:o,fetchedParams:a},!1,"fetchedParams")},updateParams:function(e){t((function(t){return{params:Object.assign(Object.assign({},t.params),e)}}),!1,"updateParams")},setVideos:function(e){t({videos:e.reduce((function(t,e){return t[e.encoded_id]=e,t}),{}),navigation:e.map((function(t){return t.encoded_id})),placeholders:[]},!1,"setVideos")},updateVideoFromLiveStream:function(e,n){t((function(t){return{videos:Object.assign(Object.assign({},t.videos),(0,u.Z)({},n.video_id,Object.assign(Object.assign({},t.videos[n.video_id]),(0,c.rO)(t.videos[n.video_id],n))))}}),!1,"updateVideoFromLiveStream")}}},d=n(38597);var f=n(4858),p=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i1)e[a]=n.getAll(a)[0];else{var u=n.get(a);u&&(e[a]=u)}}}catch(e){(0,r.ji)("Cant convert querystring to object",{captureContext:{extra:{queryString:t,err:e}},originalException:e})}return e}},43918:function(t,e,n){"use strict";n.d(e,{k:function(){return i},L:function(){return o}});var r=n(98661);function i(){var t=(0,r.createContext)(void 0);return{Provider:function(e){var n=e.store,i=e.children,o=(0,r.useRef)();return o.current||(o.current=n),(0,r.createElement)(t.Provider,{value:o.current},i)},useStore:function(e,n){void 0===n&&(n=Object.is);var i=(0,r.useContext)(t);if(!i)throw new Error("Seems like you have not used zustand provider as an ancestor.");return i(e,n)},useStoreApi:function(){var e=(0,r.useContext)(t);if(!e)throw new Error("Seems like you have not used zustand provider as an ancestor.");return(0,r.useMemo)((function(){return{getState:e.getState,setState:e.setState,subscribe:e.subscribe,destroy:e.destroy}}),[e])}}}function o(t){t&&(t.toJSON=function(){return{hidden:"prevent devtool from crashing"}})}},20763:function(t,e,n){"use strict";n.d(e,{t:function(){return o}});var r=n(65042),i=function t(e){return function(n){try{var r=e(n);return r instanceof Promise?r:{then:function(e){return t(e)(r)},catch:function(){return this}}}catch(e){return{then:function(){return this},catch:function(n){return t(n)(e)}}}}},o=function(t,e){return function(n,o,a){var u=Object.assign({getStorage:r.$o,serialize:JSON.stringify,deserialize:JSON.parse,partialize:function(t){return t},version:0,merge:function(t,e){return Object.assign(Object.assign({},e),t)}},e);(u.blacklist||u.whitelist)&&console.warn("The ".concat(u.blacklist?"blacklist":"whitelist"," option is deprecated and will be removed in the next version. Please use the 'partialize' option instead."));var c,s=!1,l=new Set,d=new Set;try{c=u.getStorage()}catch(t){}if(!c)return t((function(){console.warn("[zustand persist middleware] Unable to update item '".concat(u.name,"', the given storage is currently unavailable.")),n.apply(void 0,arguments)}),o,a);c.removeItem||console.warn("[zustand persist middleware] The given storage for item '".concat(u.name,"' does not contain a 'removeItem' method, which will be required in v4."));var f=i(u.serialize),p=function(){var t,e=u.partialize(Object.assign({},o()));u.whitelist&&Object.keys(e).forEach((function(t){var n;!(null===(n=u.whitelist)||void 0===n?void 0:n.includes(t))&&delete e[t]})),u.blacklist&&u.blacklist.forEach((function(t){return delete e[t]}));var n=f({state:e,version:u.version}).then((function(t){return c.setItem(u.name,t)})).catch((function(e){t=e}));if(t)throw t;return n},v=a.setState;a.setState=function(t,e){v(t,e),p()};var h,m=t((function(){n.apply(void 0,arguments),p()}),o,a),g=function(){var t;if(c){s=!1,l.forEach((function(t){return t(o())}));var e=(null===(t=u.onRehydrateStorage)||void 0===t?void 0:t.call(u,o()))||void 0;return i(c.getItem.bind(c))(u.name).then((function(t){if(t)return u.deserialize(t)})).then((function(t){if(t){if("number"!=typeof t.version||t.version===u.version)return t.state;if(u.migrate)return u.migrate(t.state,t.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((function(t){var e;return h=u.merge(t,null!==(e=o())&&void 0!==e?e:m),n(h,!0),p()})).then((function(){null==e||e(h,void 0),s=!0,d.forEach((function(t){return t(h)}))})).catch((function(t){null==e||e(void 0,t)}))}};return a.persist={setOptions:function(t){u=Object.assign(Object.assign({},u),t),t.getStorage&&(c=t.getStorage())},clearStorage:function(){var t;null===(t=null==c?void 0:c.removeItem)||void 0===t||t.call(c,u.name)},rehydrate:function(){return g()},hasHydrated:function(){return s},onHydrate:function(t){return l.add(t),function(){l.delete(t)}},onFinishHydration:function(t){return d.add(t),function(){d.delete(t)}}},g(),h||m}}},41216:function(t,e,n){"use strict";var r;n.d(e,{A:function(){return r}}),function(t){t.OK="OK",t.EMPTY_VAST="EMPTY_VAST",t.NO_NABOO_ADS="NO_NABOO_ADS",t.BAD_INSERTION_METHOD="BAD_INSERTION_METHOD"}(r||(r={}))},78318:function(t,e,n){"use strict";n.d(e,{e:function(){return d}});var r=n(93324),i=n(87757),o=n.n(i),a=n(98661),u=n(4518),c=n(76330),s=n(88883),l=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},d=function(t,e){var n=!(0,u.og)(),i=function(t,e){switch(!0){case!!t.playlist:return"_fwn_spcfgpl_".concat(t.playlist);case!!t.channel:case!!t.channel_id:return"_fwn_spcfgchnl_".concat(t.channel||t.channel_id);case!!(null==e?void 0:e.oauthClientId):return"_fwn_spcfgoauthcid_".concat(null==e?void 0:e.oauthClientId);default:return""}}(t,e),d=(0,c.ZP)(i,void 0),f=(0,r.Z)(d,2),p=f[0],v=f[1],h=(0,a.useState)(function(t){if(t&&t.expire&&!(Date.now()>t.expire+18e5))return t.config}(p)),m=h[0],g=h[1],y=(null==p?void 0:p.expire)&&Date.now()>(null==p?void 0:p.expire);return(0,a.useEffect)((function(){l(void 0,void 0,void 0,o().mark((function r(){var a,u,c;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.show_ads){r.next=3;break}return g(null),r.abrupt("return");case 3:if(void 0!==m&&!y||!i){r.next=31;break}return r.prev=4,a={},(null==t?void 0:t.playlist)?a.playlist_id=t.playlist:(null==t?void 0:t.channel)?a.channel=null==t?void 0:t.channel:(null==e?void 0:e.oauthClientId)&&(a.oauth_app_uid=e.oauthClientId),a.ad_target_platform=n?"desktop_web":"mobile_web",r.next=10,(0,s._)({url:"".concat(null==t?void 0:t.api_host_ads,"/api/ad_setting"),query:a});case 10:if(200!==(u=r.sent).status){r.next=17;break}return r.next=14,u.json();case 14:r.t0=r.sent,r.next=18;break;case 17:r.t0=null;case 18:if((c=r.t0)&&!c.error){r.next=21;break}throw new Error("api");case 21:m||g(c),v({expire:(new Date).getTime()+3e5,config:c}),r.next=31;break;case 26:r.prev=26,r.t1=r.catch(4),v({expire:(new Date).getTime()+6e4,config:null}),g(null);case 31:case"end":return r.stop()}}),r,null,[[4,26]])})))}),[t.show_ads,t.channel,t.playlist,t.api_host_ads,null==e?void 0:e.oauthClientId,m,n,y,i,v,g]),m}},68195:function(t,e,n){"use strict";n.d(e,{i:function(){return f}});var r=n(87757),i=n.n(r),o=n(98661),a=n(45578),u=n.n(a),c=n(41216),s=n(65522),l=n(95818),d=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},f=function(t){var e=t.appContext,n=t.params,r=(0,o.useMemo)((function(){var t,n;return null===(n=null===(t=null==e?void 0:e.adConfig)||void 0===t?void 0:t.placements)||void 0===n?void 0:n.find((function(t){return t.placement_type===l.i.RM_INFEED||t.placement_type===l.i.OUTSTREAM}))}),[e]),a=(0,o.useState)({loading:!1,adVideos:[],positions:[]}),f=a[0],p=a[1];(0,o.useEffect)((function(){r&&r.ad_tags.length>0&&p((function(t){return Object.assign(Object.assign({},t),{loading:!0})}))}),[r]);var v=(0,o.useCallback)((function(t){return d(void 0,void 0,void 0,i().mark((function e(){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.sT)(t.ad_tags[0],n);case 2:return(r=e.sent).status===c.A.OK?p((function(e){return{loading:!1,adVideos:u()(e.adVideos.concat(r.ads),(function(t){return t.encoded_id})),positions:t.positions||[0]}})):p((function(t){return Object.assign(Object.assign({},t),{loading:!1})})),e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})))}),[r,n,p]);(0,o.useEffect)((function(){f.loading&&(r?d(void 0,void 0,void 0,i().mark((function t(){var e;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v(r);case 2:e=t.sent,r.placement_type===l.i.OUTSTREAM&&e.status===c.A.OK&&1===e.ads.length&&setTimeout((function(){return d(void 0,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v(r);case 2:case"end":return t.stop()}}),t)})))}),3e3);case 4:case"end":return t.stop()}}),t)}))):p((function(t){return Object.assign(Object.assign({},t),{loading:!1})})))}),[r,f.loading,n.vast_attrs]);var h=(0,o.useCallback)((function(){r&&r.placement_type===l.i.OUTSTREAM&&v(r)}),[r,v]);return(0,o.useMemo)((function(){return Object.assign(Object.assign({},f),{actions:{loadMore:h}})}),[f,h])}},18659:function(t,e,n){"use strict";n.d(e,{h:function(){return o}});var r=n(98661),i=n(95818),o=function(t){var e=t.appContext;return(0,r.useMemo)((function(){var t,n;return!(!e||!("adConfig"in e))&&!!(null===(n=null===(t=e.adConfig)||void 0===t?void 0:t.placements)||void 0===n?void 0:n.find((function(t){return t.placement_type===i.i.OUTSTREAM})))}),[e])}},7095:function(t,e,n){"use strict";n.d(e,{x:function(){return a}});var r=n(98661),i=n(95818),o=n(9122),a=function(){var t=(0,o.oR)((function(t){return t.appContext}));return(0,r.useMemo)((function(){var e,n,r;return null===(r=null===(n=null===(e=null==t?void 0:t.adConfig)||void 0===e?void 0:e.placements)||void 0===n?void 0:n.find((function(t){return t.placement_type===i.i.RM_INFEED})))||void 0===r?void 0:r.autoplay_positions}),[t])}},65522:function(t,e,n){"use strict";n.d(e,{Tj:function(){return b},sT:function(){return _}});var r=n(87757),i=n.n(r),o=n(41216),a=n(23919),u=n(88883),c=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))};function s(t){var e=t.xml,n=t.params;return c(this,void 0,void 0,i().mark((function t(){var r,o,c;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,u._)({url:"".concat(null==n?void 0:n.api_host_ads,"/api/fwai/ad_videos"),fetchParams:{method:"POST",body:e,headers:{"Content-Type":"application/xml"}}});case 3:return r=t.sent,t.next=6,r.json();case 6:return o=t.sent,c=o.ads,t.abrupt("return",c);case 11:return t.prev=11,t.t0=t.catch(0),(0,a.H)(t.t0),t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[0,11]])})))}function l(t){var e=t.adUnit,n=t.adConfig,r=t.appContext,o=t.params;return c(this,void 0,void 0,i().mark((function t(){var c,s,l,d;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,c=null==n?void 0:n.placements.filter((function(t){var n;return(null===(n=t.ad_tags[0])||void 0===n?void 0:n.id)===e.id})),t.next=4,(0,u._)({url:"".concat(null==o?void 0:o.api_host_ads,"/api/ad_videos"),query:{channel:null==r?void 0:r.username,ad_setting_id:null==n?void 0:n.id,placement_id:null==c?void 0:c[0].id,ad_tag_id:e.id,ad_target_platform:null==n?void 0:n.ad_target_platform,context:null==n?void 0:n.context,presentation_type:null==n?void 0:n.presentation_type,ads_count:1,page_url:(null==o?void 0:o.page_url)||("undefined"!=typeof window?window.location.href:"")}});case 4:return s=t.sent,t.next=7,s.json();case 7:return l=t.sent,d=l.ads,t.abrupt("return",d||[]);case 12:return t.prev=12,t.t0=t.catch(0),(0,a.H)(t.t0),t.abrupt("return",[]);case 16:case"end":return t.stop()}}),t,null,[[0,12]])})))}var d=n(89062),f=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))};function p(t){return t instanceof NodeList?(0,d.Z)(t).find((function(t){return t instanceof CDATASection})):void 0}function v(t,e){return t.getElementsByTagName(e)[0]}function h(t){var e,n,r,i,o,a,u,c=null===(e=v(t,"VASTAdTagURI"))||void 0===e?void 0:e.childNodes[0].textContent;if(c)return c;var s=v(t,"Playlist")?null===(i=null===(r=p(null===(n=v(t,"Ad"))||void 0===n?void 0:n.childNodes))||void 0===r?void 0:r.wholeText)||void 0===i?void 0:i.trim():void 0;if(s)return s;var l=null===(u=null===(a=p(null===(o=v(t,"vmap:AdTagURI"))||void 0===o?void 0:o.childNodes))||void 0===a?void 0:a.wholeText)||void 0===u?void 0:u.trim();return l||void 0}var m=function(t){var e=new URL(t),n=Date.now().toString(),r=location.href||"";return e.hostname.toLowerCase().includes("doubleverify")?function(t,e,n){var r=t.searchParams.get("_vast");if(r){var i=new URL(r);i.searchParams.set("correlator",e),i.searchParams.set("description_url",n),i.searchParams.set("url",n),t.searchParams.set("_vast",i.href)}t.searchParams.set("_api","2"),t.searchParams.set("_ssm","0"),t.searchParams.set("_tsm",e),t.searchParams.set("gdpr","0"),t.searchParams.delete("gdpr_consent"),t.searchParams.delete("_abm"),t.searchParams.set("_pum",n)}(e,n,r):(e.searchParams.set("correlator",n),e.searchParams.set("description_url",r),e.searchParams.set("url",r)),e.href};function g(t,e){return void 0===e&&(e=1),f(this,void 0,void 0,i().mark((function n(){var r,o,a,c,s;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,u._)({url:m(t)});case 2:return r=n.sent,n.next=5,r.text();case 5:if(o=n.sent,a=new DOMParser,c=a.parseFromString(o,"text/xml"),!Boolean(v(c,"VAST")&&v(c,"AdParameters"))){n.next=13;break}return n.abrupt("return",o);case 13:if(!((s=h(c))&&e<5)){n.next=20;break}return n.next=17,g(s,e+1);case 17:n.t0=n.sent,n.next=21;break;case 20:n.t0="";case 21:return n.abrupt("return",n.t0);case 22:case"end":return n.stop()}}),n)})))}var y=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},_=function(t,e){return y(void 0,void 0,void 0,i().mark((function n(){var r,a;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,g((i=t.ad_tag,(u=null==e?void 0:e.vast_attrs)&&!i.includes(u)?i+u:i));case 2:if(r=n.sent){n.next=5;break}return n.abrupt("return",{status:o.A.EMPTY_VAST});case 5:return n.next=7,s({xml:r,params:e});case 7:if(!((a=n.sent).length>0)){n.next=12;break}return n.abrupt("return",{status:o.A.OK,ads:a});case 12:return n.abrupt("return",{status:o.A.NO_NABOO_ADS});case 13:case"end":return n.stop()}var i,u}),n)})))},b=function(t){var e=t.adUnit,n=t.adConfig,r=t.appContext,a=t.params;switch(!0){case"SSAI"===e.ad_insertion_method:return function(t){var e=t.adUnit,n=t.adConfig,r=t.appContext,a=t.params;return y(void 0,void 0,void 0,i().mark((function t(){var u;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l({adUnit:e,adConfig:n,appContext:r,params:a});case 2:if(!((u=t.sent).length>0)){t.next=7;break}return t.abrupt("return",{status:o.A.OK,ads:u});case 7:return t.abrupt("return",{status:o.A.NO_NABOO_ADS});case 8:case"end":return t.stop()}}),t)})))}({adConfig:n,adUnit:e,appContext:r,params:a});case"FWAI"===e.ad_insertion_method:return _(e,a);default:return{status:o.A.BAD_INSERTION_METHOD}}}},98309:function(t,e,n){"use strict";n.d(e,{B:function(){return i}});var r=n(89062);function i(t){var e=t.videos,n=t.adVideos,i=t.positions;if(0===i.length||0===n.length)return e;for(var o=new Set(i),a=(0,r.Z)(e),u=(0,r.Z)(n),c=[];a.length>0;){var s=c.length;o.has(s)&&u.length>0?c.push(u.shift()):c.push(a.shift())}return c}},36263:function(t,e,n){"use strict";n.d(e,{w:function(){return O}});var r=n(4942),i=n(93324),o=n(98661),a=n(64085),u=n(94471),c=n(32532),s=n(9301),l=n(55157),d=n(9122),f=n(49786),p=n(523),v=n(13546),h=n(30791),m=n(68793),g=n(35944);o.default.createElement;function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e0&&r&&(x(r),S({type:a.tw.FW_PROGRAMMATICPLAYER_IMPRESSION}))}),[r,w,x,S]);var P=(0,o.useCallback)((function(t){var e=t.video,n=t.navigationType,r=t.countOfNextVideos;(0,s.vG)(l.widget_id,e.encoded_id,n),C(e),E.loadMore(r)}),[E,l.widget_id]),T=(0,o.useState)(!1),I=T[0],A=T[1],R=(0,o.useCallback)((function(){A(!1)}),[]),N=(0,o.useRef)(!0);return(0,o.useEffect)((function(){if(N.current&&r&&k){var t=(0,v.KH)({params:l,appContext:r,video:k,videos:w,feed:O});A(!t),N.current=!1}}),[r,l,k,w,O]),I&&r?(0,g.tZ)(p.Y,{appContext:r,playerLayout:l.minimized?c.R.MINIMIZED:c.R.FULLSCREEN,playerOpenReason:h.Q.PROGRAMMATIC,muted:e,onClose:R,params:l,pip:n,onNavigateToVideo:P,video:k,videos:w}):null},O=function(t){var e=t.initialParams,n=t.widgetParams,r=t.appContextType,i=b(t,["initialParams","widgetParams","appContextType"]);return(0,g.tZ)(l.w,{appContextType:r,initialParams:e,widgetParams:n,children:(0,g.tZ)(w,_({},i))})}},70783:function(t,e,n){"use strict";n.d(e,{K:function(){return Y},o:function(){return W}});var r=n(93324),i=n(98661),o=n(68195),a=n(18659),u=n(98309),c=n(94471),s=n(8221),l=n(56551),d=n(90429),f=n(32532),p=n(9301),v=n(55157),h=n(9122),m=n(57734),g=n(49786),y=n(90283),_=n(78659),b=n(523),w=n(55883),O=n(30791),E=n(89213),x="fwn:dock:set",S="fwn:dock:disable",j=n(34510),k=n(93886),C=n(52282),P=n(13546),T=n(68793),I=n(20460),A=n(24010),R=n(39764),N=n(21572),D=n(55519);var Z=(0,A.Z)("div",{target:"e1a8tha05"})("max-height:100%;height:",(function(t){return t.height}),";position:relative;width:100%;overflow:hidden;"),L=(0,A.Z)("div",{target:"e1a8tha04"})("border-radius:var(\n ",R.dO,",\n ",(function(t){return"hard"===t.borderStyle?"0":N.n_}),"\n );",R.gP,":var(\n ",R.dO,",\n ",(function(t){return"hard"===t.borderStyle?"0":N.n_}),"\n );height:",(function(t){return t.branding?"calc(100% - 20px)":"100%"}),";max-height:",(function(t){return t.branding?"calc(100% - 20px)":"100%"}),";overflow:hidden;position:relative;"),M=(0,A.Z)("div",{target:"e1a8tha03"})("position:absolute;top:0;right:0;bottom:0;left:0;background:var(",R.F$,", transparent);color:white;display:flex;justify-content:center;align-items:center;"),U=(0,A.Z)("div",{target:"e1a8tha02"})({name:"bl687k",styles:"position:absolute;top:0;right:0;bottom:0;left:0;cursor:pointer"}),F=(0,A.Z)(D.E,{target:"e1a8tha01"})({name:"1cya4es",styles:"border-radius:var(--border-radius, 0);height:100%"}),V=(0,A.Z)("div",{target:"e1a8tha00"})("position:absolute;text-align:center;width:100%;height:100%;font-weight:600;font-size:16px;line-height:22px;background:var(",R.F$,", transparent);backdrop-filter:blur(","20px",");padding:20px;display:flex;align-items:center;justify-content:center;"),H=n(35944);i.default.createElement;var z={name:"zsyu3y",styles:"width:15em"},W=function(t){var e,v,_=t.extraParams,A=t.videos,R=(0,h.oR)(m.g2),N=(0,h.oR)(m.GF),D=(0,i.useMemo)((function(){return Object.assign(Object.assign({},N),_)}),[N,_]),W=(0,g.To)(),Y=(0,T.n)(),B=(0,g.gb)(),$=(0,l.X)().t,G="pinned"===D.mode,X=(0,j.Z)("_fwnpipexit",!1),q=(0,r.Z)(X,1)[0],J=(0,a.h)({appContext:R}),K=(0,o.i)({params:D,appContext:R}),Q=K.adVideos,tt=K.positions,et=K.actions,nt=(0,c.I4)(),rt=(0,r.Z)(nt,2),it=rt[0],ot=it.videos,at=it.loading,ut=it.feed,ct=rt[1],st=(0,i.useMemo)((function(){return J?Q:(0,u.B)({adVideos:Q,videos:A||ot,positions:tt})}),[A,J,Q,ot,tt]),lt=(0,i.useState)(null),dt=lt[0],ft=lt[1],pt=(0,i.useState)(q),vt=pt[0],ht=pt[1],mt=Boolean((0,d.IG)()),gt=function(t){var e=(0,i.useState)(!1),n=e[0],r=e[1],o=(0,i.useState)(!1),a=o[0],u=o[1];(0,i.useEffect)((function(){var e=function(e){n&&e.detail.widget_id!==t.widget_id&&r(!1)},i=function(){u(!0)};return a||(document.addEventListener(x,e),document.addEventListener(S,i)),function(){document.removeEventListener(x,e),document.removeEventListener(S,i)}}),[t.widget_id,n,r,a]);var c=(0,i.useMemo)((function(){return{dock:function(){var e,n=new CustomEvent(x,{detail:{widget_id:null!==(e=t.widget_id)&&void 0!==e?e:""}});document.dispatchEvent(n),r(!0)},undock:function(){r(!1);var t=new CustomEvent(x,{detail:{widget_id:null}});document.dispatchEvent(t)},disableDock:function(){u(!0),document.dispatchEvent(new CustomEvent(S))}}}),[r,u,t.widget_id]);return[n&&!a,c]}(D),yt=(0,r.Z)(gt,2),_t=yt[0],bt=yt[1],wt=(0,i.useCallback)((function(t){t&&bt.disableDock(),ht(!0)}),[bt,ht]),Ot=(0,w.F)(R,D),Et=Ot.isPlayingCurrentContent,xt=Ot.currentPlayerId,St=Ot.currentPlayerLayout,jt=Ot.canClaimPlayer,kt=(0,d.JW)()||!1===D.autoplay||mt,Ct=!mt&&!(0,d.JW)()&&D.dock&&jt(O.Q.STORYBLOCK_DOCK),Pt=(0,i.useRef)(!mt&&!(0,d.JW)()&&"pinned"===D.mode&&jt(O.Q.STORYBLOCK_CONFIG)).current,Tt=(0,s.g)({onChange:(0,i.useCallback)((function(t,e){if(!kt&&Ct&&!G){var n=e.getBoundingClientRect().top<0;!t&&n?bt.dock():t&&_t&&bt.undock()}}),[kt,Ct,G,_t,bt])});(0,i.useEffect)((function(){_t&&!Ct&&xt!==D.widget_id&&bt.undock()}),[bt,D,_t,Ct,xt]);var It=(0,i.useCallback)((function(t){var e=t.video,n=t.navigationType,r=t.countOfNextVideos;(0,p.vG)(D.widget_id,e.encoded_id,n),ft(e),J?et.loadMore():ct.loadMore(r)}),[et,ct,J,D.widget_id]),At=(0,i.useMemo)((function(){return(0,k.yb)(dt)}),[dt]),Rt=st[0];(0,i.useEffect)((function(){ft(Rt)}),[Rt]);var Nt=(0,i.useState)(!1),Dt=Nt[0],Zt=Nt[1],Lt=(0,i.useCallback)((function(t){t&&Zt(!0)}),[]);(0,i.useEffect)((function(){Dt&&st[0]&&R&&(W(R),Y({type:E.t.FW_STORYBLOCK_IMPRESSION,video:st[0]}),B([st[0]],I.Em.PLAYER,R))}),[R,Dt,st,W,Y,B]);var Mt=(0,i.useCallback)((function(t){(0,P.KH)({video:dt,appContext:R,params:D,videos:st,feed:ut})&&(null==t||t.preventDefault(),null==t||t.stopPropagation())}),[dt,st,ut,R,D]),Ut=(0,i.useMemo)((function(){return"fullscreen"===D.mode?f.R.FULLSCREEN:_t||G?f.R.MINIMIZED:f.R.DEFAULT}),[D,_t,G]),Ft=(0,i.useMemo)((function(){return"fullscreen"===D.mode||"pinned"===D.mode?O.Q.STORYBLOCK_CONFIG:_t?O.Q.STORYBLOCK_DOCK:O.Q.NOT_OPENED}),[D,_t]),Vt=!Dt||null!==xt&&xt!==D.widget_id&&(Et||St===f.R.FULLSCREEN),Ht=(0,H.tZ)(b.Y,{autoplay:!kt,isStoryblock:!0,forcePause:Vt,appContext:R,onClose:wt,params:D,pip:!1,videos:st,video:dt,playerLayout:Ut,playerOpenReason:Ft,muted:null===(e=D.muted)||void 0===e||e,onNavigateToVideo:It,onVisibilityChange:Lt});return(0,H.BX)(H.HY,{children:[(0,H.tZ)(y.e,{params:D}),(0,H.tZ)(Z,{dir:D.dir,ref:Tt,height:G||!st.length&&!at?"0":null!==(v=D.height)&&void 0!==v?v:"0",className:"cy-storyblock cy-storyblock-".concat(D.name||D.widget_id),onKeyUp:function(t){t.stopPropagation()},children:G?Pt&&!vt&&Ht:(0,H.BX)(H.HY,{children:[(0,H.BX)(L,{borderStyle:D.ui_border_style,branding:!!D.branding,children:[Ht,(Et||_t)&&(0,H.BX)(M,{children:[(0,H.tZ)(F,{src:At,alt:$("Video Cover")}),(0,H.tZ)(V,{className:"cy-video-in-pip-message",children:(0,H.BX)("div",{children:[(0,H.tZ)("img",{src:n(84587),alt:$("Picture in Picture icon"),role:"presentation"}),(0,H.tZ)("div",{css:z,children:$("Video is playing in picture in picture mode")})]})})]}),(0,d.JW)()&&(0,H.tZ)(U,{onClick:Mt})]}),!!D.branding&&(0,H.tZ)(C.y,{})]})})]})},Y=function(t){var e=t.initialParams,n=t.widgetParams;return(0,H.tZ)(v.w,{appContextType:_.LV.EMBED_STORYBLOCK_CONTEXT_TYPE,initialParams:e,widgetParams:n,children:(0,H.tZ)(W,{})})}},31660:function(t,e,n){"use strict";n.r(e),n.d(e,{UseLiveStreamingLite:function(){return h},default:function(){return m}});var r=n(87757),i=n.n(r),o=n(98661),a=n(95818),u=n(29038),c=n(3004),s=n(89952),l=n(25163),d=n(96950),f=n(82071),p=n(93886),v=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},h=function(t){return function(t){var e=t.video,n=t.apiHost,r=void 0===n?p.F$:n,h=t.updateLiveStream,m=(0,o.useCallback)((function(){return v(void 0,void 0,void 0,i().mark((function t(){var e;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new URL(r).host,t.t0="wss://".concat(e,"/socket/websocket?guest_id="),t.next=4,(0,f.Gx)();case 4:return t.t1=t.sent,t.abrupt("return",t.t0.concat.call(t.t0,t.t1));case 6:case"end":return t.stop()}}),t)})))}),[r]),g=(0,o.useMemo)((function(){return null==e?void 0:e.live_stream_id}),[null==e?void 0:e.live_stream_id]),y=(0,o.useMemo)((function(){return g?"live_stream_light:".concat(g):null}),[g]),_=(0,l.p)(y),b=_.isTopicJoined,w=_.joinTopic,O=_.removeTopic;(0,o.useEffect)((function(){return function(){O()}}),[O]);var E=(0,o.useMemo)((function(){return{shouldReconnect:function(){return!0},onClose:function(){O()},onMessage:function(t){return v(void 0,void 0,void 0,i().mark((function e(){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=JSON.parse(t.data),r=n.topic.replace("live_stream_light:",""),e.t0=n.event,e.next="phx_reply"===e.t0?5:"start_live_stream"===e.t0||"complete_live_stream"===e.t0||"update_live_stream"===e.t0||"pause_live_stream"===e.t0||"resume_live_stream"===e.t0?7:9;break;case 5:return"joinRef"===n.ref&&h({liveStreamId:r,liveStream:n.payload.response}),e.abrupt("break",10);case 7:return h({liveStreamId:r,liveStream:n.payload.live_stream_detail}),e.abrupt("break",10);case 9:return e.abrupt("break",10);case 10:case"end":return e.stop()}}),e)})))}}}),[O,h]),x=(null==e?void 0:e.live_stream_status)&&!!g&&[a.Yi.IDLE,a.Yi.ACTIVE,a.Yi.PAUSED].includes(null==e?void 0:e.live_stream_status),S=(0,c.ZP)(m,Object.assign({reconnectInterval:5e3,retryOnError:!0,share:!0},E),x),j=S.sendJsonMessage,k=S.readyState,C=(0,u.s)(d.pT);(0,o.useEffect)((function(){k===c.kQ.OPEN&&(null==e?void 0:e.live_stream_status)&&y&&!b&&[a.Yi.IDLE,a.Yi.ACTIVE,a.Yi.PAUSED].includes(null==e?void 0:e.live_stream_status)&&w((function(){j({topic:y,event:"phx_join",ref:"joinRef",payload:{uuid:C}})}))}),[k,j,y,g,null==e?void 0:e.live_stream_status,b,w,C]),(0,s.v)({readyState:k,sendJsonMessage:j})}({video:t.video,apiHost:t.apiHost,updateLiveStream:t.updateLiveStream}),null},m=h},70699:function(t,e,n){"use strict";n.d(e,{o:function(){return d}});var r=n(4942),i=n(98661),o=n(24010),a=n(28619);var u=(0,o.Z)(a.z,{target:"e1sm375f0"})({name:"we3m1w",styles:"border:none;position:relative;overflow:hidden;max-width:100%;text-overflow:ellipsis;color:inherit;&::before{content:'';position:absolute;background-color:currentColor;opacity:0.05;width:100%;height:100%;}span{color:inherit;}"}),c=n(35944);i.default.createElement;function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var l=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i-1,m=(0,i.oo)(r,n,o);if(c({params:n,appContext:r,video:o,videos:a,feed:u}))return!1;var g=n.open_in&&"default"!==n.open_in?n.open_in:"_iframe",y=null;return(null===(e=window.Cypress)||void 0===e?void 0:e.version)||["_blank","_self"].includes(g)||n.open_in&&"default"!==n.open_in||!(0,s.cL)()&&!h||(g="_blank"),"_blank"===g?((y=window.open("","_blank"))&&(y.location=m),!1):"_self"===g?((0,s.cL)()||h?(y=window.open("","_top"))&&(y.location=m):window.location&&(window.location.href=m),!1):(p&&(0,d.E)({key:n.player_key||"videoplayer",autoplay:!0,muted:!1}),v)},p=n(48774),v=n(90888),h=function(t){var e=t.windowSize,n=t.isHorizontal,r=t.playerMargin,i=n?v.Hk:v.FE,o=n?v.FE:v.Hk;return{xRange:e.width-i-r,yRange:e.height-o-r}},m=function(t){var e=t.windowSize,n=t.translate,r=t.isHorizontal,i=t.initialPlayerPlacement,o=t.playerMargin,a=n.x,u=n.y,c=h({windowSize:e,isHorizontal:r,playerMargin:o}),s=c.xRange,l=c.yRange,d=i.includes("right")?a+s:a,f=i.includes("bottom")?u+l:u,v=l/2;return d=0;e--)r[".".concat(a.W7,"-").concat(t,"-").concat(e)]=0===e?{display:"none"}:{display:"block",flex:"0 0 ".concat(e/24*100,"%"),maxWidth:"".concat(e/24*100,"%")}})),r)},16101:function(t,e,n){"use strict";n.d(e,{C:function(){return r}});var r=(0,n(24010).Z)("div",{target:"e14vyg210"})({name:"6qml5p",styles:"border-radius:26px;display:inline-grid;grid-auto-flow:column;grid-gap:6px;justify-content:center;align-items:center;min-width:48px;height:22px;color:white;font-weight:600;font-size:14px;line-height:22px;text-align:center;padding:0 8px;white-space:nowrap"})},63929:function(t,e,n){"use strict";n.d(e,{J:function(){return s}});var r=n(98661),i=n(95818),o=n(56551),a=n(13308),u=n(16101),c=n(35944),s=(r.default.createElement,function(t){var e=t.liveStreamState,r=t.video,s=(0,o.X)().t;return(e?(0,a.n_)(e):(null==r?void 0:r.live_stream_status)===i.Yi.ACTIVE||(null==r?void 0:r.live_stream_status)===i.Yi.PAUSED)?(0,c.BX)(u.C,{className:"cy-live-stream-status",style:{background:"var(--badge-highlight)"},children:[(0,c.tZ)("img",{role:"presentation","aria-hidden":"true",height:"8",width:"8",src:n(53772)}),(0,c.tZ)("span",{"aria-label":s("player:Livestream status: {{status}}",{status:null==r?void 0:r.live_stream_status}),children:s("Live")})]}):null})},25980:function(t,e,n){"use strict";n.d(e,{z:function(){return d}});var r,i=n(24010),o=n(98661),a=n(56551),u=n(39764);!function(t){t.AD="ad",t.FEATURED="featured"}(r||(r={}));var c=n(35944);o.default.createElement;var s=(0,i.Z)("span",{target:"e9o2xoc1"})({name:"1r4fifw",styles:"display:inline-block;padding:3px 9px;border-radius:4px"}),l=(0,i.Z)(s,{target:"e9o2xoc0"})("background:var(",u.OC,", transparent);color:var(",u.yB,", inherit);"),d=function(t){var e=t.video,n=(0,a.X)().t,i=(null==e?void 0:e.badge)===r.AD,o=(null==e?void 0:e.badge)===r.FEATURED;return i?(0,c.tZ)(l,{className:"cy-sponsored",children:n("Sponsored")}):o?(0,c.tZ)(s,{children:n("Featured")}):null}},75155:function(t,e,n){"use strict";n.d(e,{g:function(){return u}});var r=n(98661),i=n(98008),o=n(35944);r.default.createElement;var a={name:"qkchd0",styles:"width:100%;height:100%;position:absolute;top:0;left:0"},u=function(t){var e=t.blurhash,n=(0,r.useRef)(null);return(0,r.useEffect)((function(){if(e&&(null==n?void 0:n.current)){var t=n.current;t.width=90,t.height=160;var r=t.getContext("2d"),o=(0,i.Q)(e,90,160),a=new ImageData(o,90,160);null==r||r.putImageData(a,0,0)}}),[e]),(0,o.tZ)("canvas",{role:"presentation",ref:n,css:a})}},27694:function(t,e,n){"use strict";var r=n(4942),i=n(98661),o=n(32960),a=n(18123),u=n(21572),c=n(75155),s=n(35944);i.default.createElement;function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e]+)>/g,(function(t,e){return"$"+i[e]})))}if("function"==typeof r){var a=this;return t[Symbol.replace].call(this,n,(function(){var t=arguments;return"object"!=typeof t[t.length-1]&&(t=[].slice.call(t)).push(o(t,a)),r.apply(this,t)}))}return t[Symbol.replace].call(this,n,r)},s.apply(this,arguments)}var l=void 0;(0,o.Z)((function(t){l=!!t}));var d=function(t,e,n){var r;if(void 0===e&&(e={}),void 0===n&&(n=u.mC),!t)return"";if(t&&(t.match("default_avatar")||t.match("default_event_trailer")))return t;t.includes("/000")&&(t=t.replace("/000/","/540/"));var i={format:l?"webp":"jpg",quality:62,size:[a.tQ[0],a.tQ[1]]},o=Object.assign(Object.assign({},i),e||{}),d=o.format,f=o.quality,p=o.size,v="";v+=f?".".concat(f):"",v+=d?".".concat(d):"";var h=t.match(s(/\/transcoded\/([0-9]{3,4})\//i,{width:1})),m="";m=p?(null===(r=null==h?void 0:h.groups)||void 0===r?void 0:r.width)?t.replace("/".concat(h.groups.width,"/"),"/".concat(p[0],"/"))+v:t.replace(/\/(original|\d{3,4}[_|x]\d{3,4})\//,"/".concat(p[0],"_").concat(p[1],"/"))+v:t+v;var g=new URL(m),y=n?new URL(n):g;return(0,c.d)(c.Y.RESIZE_URL)&&(g.host=y.host,g.protocol=y.protocol),g.toString()}},20460:function(t,e,n){"use strict";n.d(e,{BV:function(){return u},Em:function(){return r},VI:function(){return o},Xw:function(){return i},lr:function(){return c},mW:function(){return a}});var r,i,o,a,u="https://firework.tv?utm_source=website&utm_content=widget&utm_campaign=madeinfirework";!function(t){t.AUTOPLAY="autoplay",t.PLAYER="player"}(r||(r={})),function(t){t.CONFIRM_PAYMENT_INTENT="commerce:confirm_payment_intent"}(i||(i={})),function(t){t[t.HAVE_NOTHING=0]="HAVE_NOTHING",t[t.HAVE_METADATA=1]="HAVE_METADATA",t[t.HAVE_CURRENT_DATA=2]="HAVE_CURRENT_DATA",t[t.HAVE_FUTURE_DATA=3]="HAVE_FUTURE_DATA",t[t.HAVE_ENOUGH_DATA=4]="HAVE_ENOUGH_DATA"}(o||(o={})),function(t){t.DISCONNECTED="DISCONNECTED",t.CONNECTING="CONNECTING",t.RECONNECTING="RECONNECTING",t.CONNECTED="CONNECTED",t.DISCONNECTING="DISCONNECTING"}(a||(a={}));var c="fw-player"},40848:function(t,e,n){"use strict";n.d(e,{c:function(){return i}});var r=n(54697),i=function(t){return(0,r.Z)(Object.assign({key:"fwn",speedy:!1},t))}},89213:function(t,e,n){"use strict";n.d(e,{V:function(){return s},t:function(){return a.tw}});var r=n(4942),i=n(87757),o=n.n(i),a=n(64085),u=n(30087),c=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},s=function(t){var e=t.type,n=t.params,i=t.data,s=void 0===i?{}:i,l=t.videoElement;return c(void 0,void 0,void 0,o().mark((function t(){var i,c,d,f,p,v,h,m,g,y,_;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n){t.next=2;break}return t.abrupt("return");case 2:return c=n.channel,d=n.hashtag,f=n.name,p=n.playlist,v=n.target,h=n.widget_id,t.next=5,(0,u.G)();case 5:m=t.sent,g=m.session,y=(g=void 0===g?{guest_id:null}:g).guest_id,(null===(i=null==s?void 0:s.video)||void 0===i?void 0:i.encoded_id)&&(_=["action_url","badge","caption","encoded_id","hashtags","live_stream_status","video_type"].reduce((function(t,e){var n;return Object.assign(Object.assign({},t),(0,r.Z)({},e,null===(n=s.video)||void 0===n?void 0:n[e]))}),{}),s.video=_),l&&(s.extra=Object.assign(Object.assign({},s.extra||{}),{duration:l.duration,height:l.height,progress:l.currentTime,width:l.width})),(0,a._H)({target:v,type:e,data:Object.assign({channel:c,guest_id:y,hashtag:d,name:f,playlist:p,widget_id:h},s)});case 12:case"end":return t.stop()}}),t)})))}},57840:function(t,e,n){"use strict";n.d(e,{zM:function(){return s}});var r=n(15671),i=n(60136),o=n(82963),a=n(61120);function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=(0,a.Z)(t);if(e){var i=(0,a.Z)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,o.Z)(this,n)}}var c=function(t){(0,i.Z)(n,t);var e=u(n);function n(t){var i;return(0,r.Z)(this,n),(i=e.call(this,t)).name="AppError",i}return n}((0,n(7112).Z)(Error)),s=function(t){(0,i.Z)(n,t);var e=u(n);function n(t){var i;return(0,r.Z)(this,n),(i=e.call(this,t)).name="SessionError",i}return n}(c)},7344:function(t,e,n){"use strict";n.d(e,{X0:function(){return _},Xf:function(){return w},YF:function(){return v},_N:function(){return m},b1:function(){return g},dm:function(){return f},f6:function(){return l},fQ:function(){return y},gn:function(){return h},k$:function(){return p},oo:function(){return d},rO:function(){return O},vV:function(){return b}});var r=n(51584),i=n.n(r),o=n(81763),a=n.n(o),u=n(47037),c=n.n(u),s=n(23919);n(88263);function l(t,e,n){var r=t.appContextType,o=t.username,u=t.guestId,s=t.embedFeedConfig,l=t.trackingData,d=t.trackingDataPixel;return{params:Object.keys(e).reduce((function(t,n){return(a()(e[n])||c()(e[n])||i()(e[n]))&&(t[n]=e[n]),t}),{}),appContextType:r,username:o,guestId:u,embedFeedConfig:Object.assign(Object.assign({},s),{firstVideoId:null==n?void 0:n.id}),trackingData:l,trackingDataPixel:d}}var d=function(t,e,n){var r=new URL("".concat(e.pwa_host||"https://fw.tv","/embed/videos/").concat(null==n?void 0:n.id));return r.searchParams.append("app_context",JSON.stringify(l(t,e,n))),r.href},f=function(t){var e=Math.log10(t)/3|0;if(0===e)return String(t);var n=["","k","M","G","T","P","E"][e],r=Math.pow(10,3*e),i=String(t/r).match(/^([0-9]+)\.?([0-9]+)?$/);return i?"".concat(i[1],".").concat(i[2]?i[2][0]:"0").replace(/\.0$/,"")+n:""},p=function(){try{return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^window.crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}catch(t){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}},v=function(){var t;try{return(null===(t=document.currentScript)||void 0===t?void 0:t.getAttribute("data-ad-id"))||void 0}catch(t){(0,s.PN)(t)}},h=function(t){return"string"==typeof t?t.replace(/(\u00a9|\u00ae|[\u2000-\u2BFF]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g,"").trim():""},m=function(){var t="undefined"!=typeof window&&document.querySelector("meta[name='generator']");return t&&t.hasAttribute("content")&&t.getAttribute("content").toLowerCase().startsWith("wordpress")},g=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0},y=function(t){return!(!t||"false"===t||"0"===t)},_=function(t){return!!(t&&"false"===t||t&&"0"===t||!1===t)},b=function(t){return!!t&&!!t.match(/(.+)@(.+)\.(.+)/)},w=function(t){return-1!==t.search(/[^ ]+/)},O=function(t,e){var n=function(n){return(null==t?void 0:t["live_stream_".concat(n)])!==(null==e?void 0:e[n])},r=["announcement","chat_enabled","chat_in_replay_enabled","ended_at","playback_url","provider","replay_enabled","replay_url","scheduled_at","started_at","status","viewers_count_enabled","business_privacy_policy_url"];return t&&e&&t.id===e.video_id&&r.some((function(t){return n(t)}))?Object.fromEntries(r.filter((function(t){return n(t)})).map((function(t){return["live_stream_".concat(t),e[t]]}))):null}},17570:function(t,e,n){"use strict";n.d(e,{u:function(){return p}});var r=n(93324),i=n(87757),o=n.n(i),a=n(98661),u=n(58368),c=n(64085),s=n(76330),l=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},d={},f={},p=function(t){var e,n=t.username,i=t.encodedId,p=t.target,v=(0,u.h)(),h=(0,s.ZP)("_fwnchnnl_".concat(n||i),null),m=(0,r.Z)(h,2),g=m[0],y=m[1],_=(0,a.useState)((e=g)&&e.expire&&e.channel?(new Date).getTime()>e.expire+432e5?null:e.channel:null),b=_[0],w=_[1];return(0,a.useEffect)((function(){l(void 0,void 0,void 0,o().mark((function t(){var e,r,a,u;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=new Date,r=(null==g?void 0:g.expire)&&e.getTime()>(null==g?void 0:g.expire),b&&!r){t.next=18;break}if(t.prev=3,n||i){t.next=6;break}throw new Error("Missing channel username or encodedId");case 6:if(n?a=d[n]||(d[n]=v.getChannel(n)):i&&(a=f[i]||(f[i]=v.getChannelById(i))),!a){t.next=13;break}return t.next=10,a;case 10:u=t.sent,w(u.channel),y({expire:(new Date).getTime()+6e5,channel:u.channel});case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(3),(0,c._H)({target:p,type:[c.tw.FW_ERROR,c.tw.FW_EMBEDFEED_ERROR],data:{detail:"error"}});case 18:case"end":return t.stop()}}),t,null,[[3,15]])})))}),[v,n,i,b,null==g?void 0:g.expire,y,w,p]),b}},9402:function(t,e,n){"use strict";n.d(e,{j:function(){return f}});var r=n(93324),i=n(87757),o=n.n(i),a=n(98661),u=n(58368),c=n(23919),s=n(9122),l=n(57734),d=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))};function f(){var t=this,e=(0,u.h)(),n=(0,s.oR)((function(t){return t.actions})),i=(0,s.oR)(l.g2),f=(0,s.oR)(l.GF),p=(0,a.useMemo)((function(){return JSON.stringify(Object.entries(f).filter((function(t){return(0,r.Z)(t,1)[0].startsWith("cohort_")})).sort())}),[f]);(0,a.useEffect)((function(){d(t,void 0,void 0,o().mark((function t(){var r,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,r=JSON.parse(p),!(null==i?void 0:i.channel)||!r.length){t.next=7;break}return t.next=5,e.getPlaylistFromCohorts(i.channel.username,Object.fromEntries(r));case 5:a=t.sent,n.updateParams({playlist:a.playlist_id});case 7:t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),(0,c.KE)("Error when fetching playlist from cohorts: ".concat(t.t0.data.error));case 12:case"end":return t.stop()}}),t,null,[[0,9]])})))}),[p,e,n,null==i?void 0:i.channel])}},68793:function(t,e,n){"use strict";n.d(e,{n:function(){return a}});var r=n(98661),i=n(9122),o=n(89213),a=function(){var t=(0,i.oR)((function(t){return t.params})),e=(0,r.useRef)(!1);return(0,r.useCallback)((function(n){var r=n.type,i=n.video;e.current||(e.current=!0,(0,o.V)({type:r,params:t,data:i?{video:i}:{}}))}),[t])}},49785:function(t,e,n){"use strict";n.d(e,{F:function(){return u}});var r=n(23919),i=n(92906),o=n(35608),a=n(60996);function u(t){var e,n,u=t.appContextType,c=t.channel,s=t.embedFeedConfig,l=t.embedInstanceId,d=t.params,f=t.session,p=t.adConfig;if((d.channel||d.channel_id)&&!c||!f||void 0===p)return null;if(d.playlist&&!d.channel&&!d.channel_id)return(0,r.ji)("Widget with `playlist` is missing `channel`",{data:{playlist:d.playlist}}),null;var v=null!==(e=(0,a.D)(s,c))&&void 0!==e?e:{},h=v.trackingData,m=v.trackingDataPixel;if(!s||!h||!m)return null;var g=(0,o.M)(u,d);return{appContextType:u,params:d,username:(null==c?void 0:c.username)||d.channel||d.channel_id,embedFeedConfig:s,embedInstanceId:l,guestId:f.guest_id,channel:c,adConfig:p,trackingData:Object.assign(Object.assign({app_context_type:u,embed_instance_id:l},h),{presentation:g,ad_id:d.ad_id,guest_id:f.guest_id,page_url:null!==(n=d.page_url)&&void 0!==n?n:"",product:"embed.web.naboo"}),trackingDataPixel:(0,i.E)(Object.assign(Object.assign({app_context_type:u,embed_instance_id:l},m),{presentation:g}))}}},35608:function(t,e,n){"use strict";n.d(e,{M:function(){return o}});var r=n(78659),i=n(30570),o=function(t,e){switch(t){case r.LV.EMBED_ADD_TO_CALENDAR_CONTEXT_TYPE:return i.Y.ADD_TO_CALENDAR;case r.LV.EMBED_SHARE_CONTEXT_TYPE:return i.Y.SHARE;case r.LV.EMBED_HERO_CONTEXT_TYPE:return i.Y.HERO;case r.LV.EMBED_STORYBLOCK_CONTEXT_TYPE:return i.Y.STORYBLOCK;case r.LV.EMBED_BUTTON_CONTEXT_TYPE:return i.Y.FLOATING_BUTTON;case r.LV.EMBED_STORYLINK_CONTEXT_TYPE:return i.Y.STORYLINK;case r.LV.EMBED_AGENT_CONTEXT_TYPE:return i.Y.AGENT;case r.LV.EMBED_CONTEXT_TYPE:case r.LV.EMBED_GRID_CONTEXT_TYPE:return"grid"===e.mode?i.Y.GRID:i.Y.CAROUSEL;case r.LV.HEADLESS_FEED:return i.Y.CAROUSEL;default:throw new Error("Unknown appContexType")}}},53733:function(t,e,n){"use strict";n.d(e,{V:function(){return r.V}});n(30570);var r=n(13219)},60996:function(t,e,n){"use strict";n.d(e,{D:function(){return o}});var r=n(94471),i=n(78659),o=function(t,e){if(!t)return null;switch(!0){case t.type===r.u5.PLAYLIST:return{trackingData:{context:i._y.CONTEXT_PLAYLIST,channel:null==e?void 0:e.username,channel_id:null==e?void 0:e.encoded_id,playlist_id:t.playlistId},trackingDataPixel:{context:i._y.CONTEXT_PLAYLIST,channel:null==e?void 0:e.username,_channel_id:null==e?void 0:e.encoded_id,_playlist_id:t.playlistId}};case t.type===r.u5.PLAYLIST_COLLECTION:return{trackingData:{context:i._y.CONTEXT_PLAYLIST_COLLECTION,channel:null==e?void 0:e.username,channel_id:null==e?void 0:e.encoded_id,playlist_id:t.playlistId},trackingDataPixel:{context:i._y.CONTEXT_PLAYLIST_COLLECTION,channel:null==e?void 0:e.username,_channel_id:null==e?void 0:e.encoded_id,_playlist_id:t.playlistId}};case t.type===r.u5.PRODUCT_SKU:return{trackingData:{context:i._y.CONTEXT_SKUS,channel:null==e?void 0:e.username,channel_id:null==e?void 0:e.encoded_id,skus:t.skus},trackingDataPixel:{context:i._y.CONTEXT_SKUS,channel:null==e?void 0:e.username,_channel_id:null==e?void 0:e.encoded_id,skus:t.skus}};case t.type===r.u5.USER_TIMELINE_HASHTAG:return{trackingData:{context:i._y.CONTEXT_HASHTAG,hashtag:t.hashtagExpression,channel:null==e?void 0:e.username,channel_id:null==e?void 0:e.encoded_id},trackingDataPixel:{context:i._y.CONTEXT_HASHTAG,hashtag:t.hashtagExpression,channel:null==e?void 0:e.username,_channel_id:null==e?void 0:e.encoded_id}};case t.type===r.u5.USER_TIMELINE:return{trackingData:{context:i._y.CONTEXT_CHANNEL,channel:null==e?void 0:e.username,channel_id:null==e?void 0:e.encoded_id},trackingDataPixel:{context:i._y.CONTEXT_CHANNEL,channel:null==e?void 0:e.username,_channel_id:null==e?void 0:e.encoded_id}};default:return null}}},30570:function(t,e,n){"use strict";var r;n.d(e,{Y:function(){return r}}),function(t){t.ADD_TO_CALENDAR="add_to_calendar",t.CAROUSEL="carousel",t.GRID="grid",t.HERO="hero",t.SHARE="share",t.STORYBLOCK="storyblock",t.STORYLINK="storylink",t.FLOATING_BUTTON="floating_button",t.AGENT="agent"}(r||(r={}))},13219:function(t,e,n){"use strict";n.d(e,{V:function(){return d}});var r=n(98661),i=n(78318),o=n(78765),a=n(9122),u=n(57734),c=n(7344),s=n(17570),l=n(49785),d=function(t){var e=t.config,n=t.appContextType,d=t.extraParams,f=(0,a.oR)(u.GF),p=(0,r.useMemo)((function(){return Object.assign(Object.assign({},f),d)}),[d,f]),v=(0,s.u)({username:p.channel,encodedId:p.channel_id}),h=(0,i.e)(p),m=(0,r.useMemo)(c.k$,[]),g=(0,o.k)().session;return(0,r.useMemo)((function(){return e?(0,l.F)({embedFeedConfig:e,appContextType:n,channel:v,embedInstanceId:m,params:p,session:g,adConfig:h}):null}),[e,n,v,m,p,g,h])}},20584:function(t,e,n){"use strict";n.d(e,{O:function(){return l}});var r=n(98661),i=n(23919),o=n(57009),a=n(82071),u=n(48774),c=n(91577),s=function(t){return new URL(t).hostname.replace(/^www\./gi,"")},l=function(t){var e,n=t.appContext,l=t.params,d=t.video,f=(0,o.Zx)({video:d,appContext:n,params:l,baseUrl:(0,a.Rg)(null!==(e=null==d?void 0:d.canonical_url)&&void 0!==e?e:"",{video:d,appContext:n,params:l}),paramType:u.Mu.QUERY}),p=(0,c.l)(),v=(0,r.useMemo)((function(){if(p||!(null==d?void 0:d.canonical_url)||(null==l?void 0:l.livestream_firstparty))return!0;try{if("live_stream"===(null==d?void 0:d.video_type)){var t=(null==l?void 0:l.page_url)?s(l.page_url):null,e=(null==d?void 0:d.canonical_url)?s(null==d?void 0:d.canonical_url):null;if(!t||e!==t)return!1}}catch(t){(0,i.H)(t)}return!0}),[p,null==l?void 0:l.page_url,null==l?void 0:l.livestream_firstparty,d]),h=(0,r.useMemo)((function(){if(!v&&d&&l)return null!=f?f:void 0}),[v,d,l,f]);return(0,r.useMemo)((function(){return{isFirstPartyLiveStream:v,openInFirstParty:function(){try{h&&window.open(h,"first-party")}catch(t){(0,i.H)(t)}}}}),[v,h])}},91577:function(t,e,n){"use strict";n.d(e,{l:function(){return i}});var r=n(98661),i=function(){return(0,r.useMemo)((function(){return"undefined"!=typeof window&&[/business\.fireworktv\.com/,/business\.firework\.com/,/business\.firework\.tv/,/mandalore-([a-zA-Z0-9-]+)-firework\.vercel\.app/].map((function(t){return t.test(window.location.host)})).filter(Boolean).length>0}),[])}},76330:function(t,e,n){"use strict";var r=n(65042),i=n(15742),o=(0,r.$o)(),a={storage:o};(0,i.cW)(o),(0,i.ij)(o),(0,i.Od)(o);e.ZP=function(t,e){return(0,i.ZP)(t,e,a)}},34510:function(t,e,n){"use strict";var r=n(65042),i=n(15742),o={storage:(0,r.G)()};e.Z=function(t,e){return(0,i.ZP)(t,e,o)}},15742:function(t,e,n){"use strict";n.d(e,{Mh:function(){return r},Od:function(){return s},cW:function(){return c},ij:function(){return u}});var r,i=n(98661),o=n(18446),a=n.n(o);!function(t){t.IFRAME_SCROLL_POSITION="_fwnscrll",t.PIP_DELIBERATELY_CLOSED="_fwnpipexit",t.ABLE_TO_IFRAMEIZE="_fwnablemnmze",t.LINK_PERSISTENT_TOKEN="_fwnlinkpersistenttoken",t.CUSTOMER_EMAIL="_fwncustomeremail",t.ORDER_TOKENS="_fwnordertokens"}(r||(r={}));var u=function(t){return function(e){if("undefined"!=typeof window)try{var n=t.getItem(e);if(!n)return;return JSON.parse(n)}catch(t){return}}},c=function(t){return function(e,n){if("undefined"!=typeof window)try{t.setItem(e,JSON.stringify(n))}catch(t){}}},s=function(t){return function(e){if("undefined"!=typeof window)try{t.removeItem(e)}catch(t){}}};e.ZP=function(t,e,n){var r=n.storage,o=(0,i.useCallback)((function(){var n=u(r)(t);return void 0!==n?n:e}),[e,t,r]),l=(0,i.useState)(o),d=l[0],f=l[1];(0,i.useEffect)((function(){f((function(t){var e=o();return a()(e,t)?t:e}))}),[o]);var p=(0,i.useCallback)((function(e,n){var i=(void 0===n?{}:n).skipUpdates,o=void 0!==i&&i;c(r)(t,e),!o&&f(e)}),[t,r]);return[d,p,(0,i.useCallback)((function(){return s(r)(t)}),[t,r])]}},54613:function(t,e,n){"use strict";n.d(e,{U:function(){return h}});var r=n(98661),i=n(78659),o=n(64085),a=n(94471),u=n(23919),c=n(72039),s=n(37371),l=n(48774),d=n(88263),f=n(36263),p=n(2650),v=n(35944),h=(r.default.createElement,function(t){var e=t.appContextType,n=t.widgetId,h=t.widgetParams,m=t.options,g=void 0===m?{}:m,y=t.target,_=t.hydratedFeed,b=h.channel,w=Object.assign({muted:!0,pip:!0},g),O={location:window.location,page_url:(0,d.XW)(),referrer:document.referrer,target:y,type:l._r.PROGRAMMATIC,widget_id:n};(0,c.XX)(Object.assign(Object.assign({},O),h)).measure(c.kG),(0,s.c)((function(){(0,u.MD)().configureScope((function(t){t.setTag("fwn_channel",null!=b?b:""),t.setTag("fwn_context","prog_player")}));try{y&&((0,o._H)({type:o.tw.FW_PROGRAMMATICPLAYER_RENDER,data:{widget_id:O.widget_id},target:y}),(0,r.render)((0,v.tZ)(p.Z,{onError:function(t){return(0,u.H)(t)},children:(0,v.tZ)(a.Ch.Provider,{value:_,children:(0,v.tZ)(f.w,{appContextType:e||i.LV.EMBED_CONTEXT_TYPE,initialParams:O,muted:!!w.muted,pip:!!w.pip,widgetParams:h})})}),y))}catch(t){(0,u.H)(t)}}))})},88883:function(t,e,n){"use strict";n.d(e,{_:function(){return v}});var r=n(87757),i=n.n(r),o=n(82492),a=n.n(o),u=n(23919),c=n(88263),s=n(93886),l=n(30087),d=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},f={cache:"no-cache",credentials:"include",mode:"cors",headers:{"Content-Type":"application/json"}},p=function(t,e){return t.startsWith("/")&&!t.startsWith("//")?e+t:t},v=function(t){var e=t.url,n=t.query,r=t.fetchParams,o=void 0===r?{}:r,v=t.baseUrl,h=void 0===v?s.F$:v;return d(void 0,void 0,void 0,i().mark((function t(){var r,s,d,v;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=Object.assign(Object.assign({},f),o),t.next=3,(0,l.G)();case 3:return r=t.sent,(null==(s=r.session)?void 0:s.token)&&(o=a()(o,{headers:{Authorization:"Bearer ".concat(s.token)}})),d=e.includes("?")?"&":"?",v=p(e,h)+d+(0,c.f0)(n),t.prev=8,t.abrupt("return",fetch(v,o));case 12:throw t.prev=12,t.t0=t.catch(8),(0,u.H)(t.t0,{captureContext:{extra:{fetchUrl:v,fetchParams:o}}}),t.t0;case 16:case"end":return t.stop()}}),t,null,[[8,12]])})))}},32053:function(t,e,n){"use strict";n.d(e,{G:function(){return u}});var r=n(87757),i=n.n(r),o=n(37500),a=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},u=function(){return a(void 0,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,o.Gg)());case 1:case"end":return t.stop()}}),t)})))}},37500:function(t,e,n){"use strict";n.d(e,{Gg:function(){return p}});var r=n(87757),i=n.n(r),o=n(82071),a=n(57840),u=n(7344),c=n(71515),s=n(97981),l=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},d="2020-06-11",f=function(t){var e=t.guestId;return l(void 0,void 0,void 0,i().mark((function t(){var n,r,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,u.k$)(),3600,r=new Date,o={expires_in:3600,expires_at:new Date(r.getTime()+36e5),guest_id:e,id:n,referrer:"undefined"!=typeof document&&document.referrer,started_at:r,type:"embed_session",version:d,visitor_id:e,visitor_session_id:"".concat(e).concat(n)},(0,c.KY)(o),t.abrupt("return",{session:o,guestId:e});case 6:case"end":return t.stop()}}),t)})))};"undefined"!=typeof window&&(window._fwnSessionPromise=void 0);var p=function(t,e){void 0===t&&(t=o.Gx),void 0===e&&(e=f);try{var n=void 0,r=(0,c.vL)()||{};try{n=(0,o.lX)()}catch(t){}if(!n||!(0,o.I6)(n))throw new a.zM("Missing guest id");return v(),h(r),{guestId:n,session:r}}catch(n){if(n instanceof a.zM){if(!window)return;return(0,c.Ov)(),window._fwnSessionPromise?window._fwnSessionPromise:(window._fwnSessionPromise=t().then((function(t){return(0,o.f3)(t),e({guestId:t}).then((function(e){var n=e.session;return window._fwnSessionPromise=null,(0,c.ic)(),{guestId:t,session:n}}))})),window._fwnSessionPromise)}throw n}},v=function(){var t=(0,c.PW)();if(t&&new Date-t>18e5)throw new a.zM("Inactivity")},h=function(t){var e=t||{},n=e.expires_at,r=e.version;if(d!==r)throw new a.zM("Invalid session version");if(!n||(0,s.B)(n))throw new a.zM("Expired session token")}},71515:function(t,e,n){"use strict";n.d(e,{KY:function(){return d},Ov:function(){return f},PW:function(){return p},ic:function(){return v},vL:function(){return l}});var r=n(65042),i="_fwnthrdptyfwvs",o="_fwnthrdptyfwvactvt",a={},u={},c=function(t){try{return(0,r.$o)().getItem(t)}catch(t){}},s=function(t,e){try{(0,r.$o)().setItem(t,e)}catch(t){}},l=function(){var t=a;try{t=JSON.parse(c(i))}catch(t){}return t},d=function(t){try{a=t,s(i,JSON.stringify(t))}catch(t){}},f=function(){try{a={},s(i,JSON.stringify(a))}catch(t){}},p=function(){return function(){var t;try{t=c(o),t=JSON.parse(t),t=new Date(t)}catch(e){t=void 0}return t||u}()},v=function(){return function(t){try{u=t,s(o,JSON.stringify(u))}catch(t){}}(new Date)}},97981:function(t,e,n){"use strict";n.d(e,{B:function(){return i},Y:function(){return o}});var r=n(92906),i=function(t){return!t||t&&Date.now()-Date.parse(t)>0},o=function(t){var e,n,i,o,a;if(!t)return{};var u={guest_id:(null===(e=t.session)||void 0===e?void 0:e.guest_id)||(null==t?void 0:t.guest_id),session_id:t.session_id||(null===(n=t.session)||void 0===n?void 0:n.id)||(null==t?void 0:t.id),session_type:t.session_type||(null===(i=t.session)||void 0===i?void 0:i.type)||(null==t?void 0:t.type)};return t._user_id?u._user_id=t._user_id:u.user_id=null===(o=t.session)||void 0===o?void 0:o.user_id,t._visitor_id?u._visitor_id=t._visitor_id:u.visitor_id=null===(a=t.session)||void 0===a?void 0:a.visitor_id,(0,r.E)(u)}},30087:function(t,e,n){"use strict";n.d(e,{G:function(){return r.G},Y:function(){return i.Y}});var r=n(32053),i=n(97981)},60358:function(t,e,n){"use strict";n.d(e,{LU:function(){return c},Nj:function(){return s},SD:function(){return a},Xf:function(){return l},mV:function(){return u}});var r=n(89062),i=n(93324),o=n(4518),a=function(t){return Object.entries(t).filter((function(t){return(0,i.Z)(t,2)[1]})).map((function(t){return(0,i.Z)(t,1)[0]}))},u=function(t,e){return(0,r.Z)(t).sort((function(t,n){return e.indexOf(t)>e.indexOf(n)?1:-1}))},c=function(t){return Math.round(1e3*t)/1e3},s=function(t){return t.filter((function(t){return(null==t?void 0:t.encoded_id)&&((null==t?void 0:t.download_url)||"live_stream"===(null==t?void 0:t.video_type)&&((null==t?void 0:t.live_stream_playback_url)||(null==t?void 0:t.live_stream_replay_url)))}))},l=function(){return"undefined"==typeof window?null:(0,o.og)()?"mobile_web":"web"}},21572:function(t,e,n){"use strict";n.d(e,{n_:function(){return o},oq:function(){return r},s8:function(){return a},tQ:function(){return i}});var r=[154,250],i=[240,400],o="10px",a="4px"},53198:function(t,e,n){"use strict";n.d(e,{c:function(){return m}});var r,i,o=n(15671),a=n(43144),u=n(82492),c=n.n(u),s=n(82071),l=n(27026),d=n(81449),f=n(83470),p=n(30087),v=n(47109),h=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},m=function(){function t(){(0,o.Z)(this,t),r.add(this)}return(0,a.Z)(t,[{key:"guest_id",get:function(){return(0,p.G)().then((function(t){var e=t.session;return null==e?void 0:e.guest_id}))}},{key:"session_id",get:function(){return(0,p.G)().then((function(t){var e=t.session;return null==e?void 0:e.id}))}},{key:"session_referrer",get:function(){return(0,p.G)().then((function(t){var e=t.session;return null==e?void 0:e.referrer}))}},{key:"eventQueue",get:function(){return[]}},{key:"isFallback",value:function(){return!1}},{key:"sendEvent",value:function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=l.yN.Essential),(0,s.jl)({endpoint:{url:t,isUserEngagement:n,consent:r},data:e,host:void 0})}},{key:"push",value:function(t){var e=null==t?void 0:t.event;h(this,r,"m",i).call(this,e,{event_properties:{user_data:t}})}},{key:"purchase",value:function(t){var e,n="_fwnuserorder",o=(null===(e=(0,f.ij)(n))||void 0===e?void 0:e.value)||[];t.order_id&&o.includes(t.order_id)||(h(this,r,"m",i).call(this,v.a.PURCHASE,{event_properties:{user_data:t}}),t.order_id&&(o.push(t.order_id),(0,f.cW)(n,o)))}},{key:"setConsent",value:function(t){(0,l.mL)(t)}}]),t}();r=new WeakSet,i=function(t,e){var n=(0,d.nn)();(0,s.jl)({endpoint:{url:"/trk/user:".concat(t),isUserEngagement:!1,consent:l.yN.Essential},data:c()({event_properties:{_last_channel_id:(0,s.IE)(),_last_video_id:(0,s.lR)(),last_engaged_timestamp:(0,d.Tm)(),_business_membership_id:null==n?void 0:n.value,last_business_membership_id_timestamp:null==n?void 0:n.createTime}},e),host:void 0})}},37767:function(t,e,n){"use strict";n.d(e,{u:function(){return d}});var r=n(23919),i=n(82071),o=n(27026),a=n(81331),u=n(16486),c=n(32244),s=n(34445);function l(t){var e=t.shouldSendPageLoadPixelEvent;try{Object.defineProperty(window._fwn,"analytics",{get:s.E,configurable:!1}),(0,a.zu)(),(0,u.lH)(),(0,a.ys)(),(0,c.h)(),(0,i.Pd)(window.location.href),e&&(0,i.jl)({endpoint:{url:"/trk/system:page_load",isUserEngagement:!1,consent:o.yN.Essential},data:{},host:void 0})}catch(t){t instanceof Error&&(0,r.H)(new Error("Failed to attach analytics module"),{captureContext:{extra:{errorMessage:t.message}}})}}function d(t){if("undefined"!=typeof window)if(Object.prototype.hasOwnProperty.call(window._fwn,"analytics")){if(window._fwn.analytics.isFallback()){var e=window._fwn.analytics.eventQueue;l(t),e.forEach((function(t){var e=t.url,n=t.data,r=t.isUserEngagement;(0,i.jl)({endpoint:{url:e,consent:o.yN.Essential,isUserEngagement:!!r},data:n,host:void 0})}))}}else l(t)}},34445:function(t,e,n){"use strict";n.d(e,{E:function(){return o}});var r=n(53198),i=null;function o(){return null!=i?i:i=new r.c}},90333:function(t,e,n){"use strict";n.d(e,{u:function(){return r.u}});var r=n(37767)},47109:function(t,e,n){"use strict";var r;n.d(e,{a:function(){return r}}),function(t){t.PURCHASE="purchase"}(r||(r={}))},83183:function(t,e,n){"use strict";n.d(e,{u:function(){return m},D:function(){return g}});var r,i,o=n(89062),a=n(84506),u=n(43144),c=n(15671),s=n(77329),l=n(65042),d=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},f=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},p=function t(e){var n=this,r=e.css;(0,c.Z)(this,t),this.init=function(){n.element=document.createElement("div"),n.element.style.cssText="\n z-index: 2147483646;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 12px;\n position: fixed;\n top: 0;\n right: 0;\n background: rgb(0 0 0 / 80%);\n color: white;\n padding: 0 0.5em;\n "+n.css,document.body.appendChild(n.element)},this.info=function(){for(var t=arguments.length,e=new Array(t),r=0;r1?n-1:0),i=1;i0)return i.reduce((function(t,e){return t[e.replace("data-","")]=document.currentScript.getAttribute(e),t}),{})}catch(t){}return{}}n.d(e,{g:function(){return r}})},750:function(t,e,n){"use strict";n.d(e,{f:function(){return o}});var r=n(20775),i=n(96950),o={video:function(t){var e=(0,r.Cu)(t);(0,r.qu)((0,i.zJ)(),e)}}},52609:function(t,e,n){"use strict";n.d(e,{u:function(){return i}});var r=n(750);function i(){"undefined"==typeof window||Object.prototype.hasOwnProperty.call(window._fwn,"hydrate")||Object.defineProperty(window._fwn,"hydrate",{value:r.f,writable:!1})}},38901:function(t,e,n){"use strict";n.d(e,{u:function(){return r.u}});var r=n(52609)},57413:function(t,e,n){"use strict";n.d(e,{u:function(){return i}});var r=n(40647);function i(){"undefined"==typeof window||Object.prototype.hasOwnProperty.call(window._fwn,"memoryStorage")||Object.defineProperty(window._fwn,"memoryStorage",{value:r.N,writable:!1})}},54294:function(t,e,n){"use strict";n.d(e,{u:function(){return r.u}});var r=n(57413)},89974:function(t,e,n){"use strict";n.d(e,{u:function(){return i}});var r=n(35204);function i(){"undefined"==typeof window||Object.prototype.hasOwnProperty.call(window._fwn,"play")||Object.defineProperty(window._fwn,"play",{value:r.h,writable:!1})}},73797:function(t,e,n){"use strict";n.d(e,{u:function(){return r.u}});var r=n(89974)},35204:function(t,e,n){"use strict";n.d(e,{h:function(){return s}});var r=n(57557),i=n.n(r),o=n(78659),a=n(7344),u=n(54613),c="fwn-programmatic-player";function s(t,e,n){void 0===e&&(e={});var r=document.getElementById(c);r&&r.remove(),(r=document.createElement("div")).id=c,(window.document.body||window.document.head).appendChild(r),(0,u.U)({appContextType:t.appContextType||o.LV.EMBED_CONTEXT_TYPE,widgetId:(0,a.k$)(),widgetParams:Object.assign({},i()(t,["appContextType","type","widget_id"])),options:e,target:r,hydratedFeed:n})}},5624:function(t,e,n){"use strict";n.d(e,{ub:function(){return O},xR:function(){return b},jA:function(){return f},Rx:function(){return w},kM:function(){return p}});var r=n(31111),i=n(15671),o=n(43144);function a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n'),t.itemInCartText&&console.warn('itemInCartText is deprecated, please use shopping_cart_style widget param instead. Example: '),(0,(0,r.nX)((0,i.zJ)().getState()).configureCart)(t),window._fwnStoreFront||(window._fwnStoreFront={})},getCart:function(){return(0,r.Gj)((0,i.zJ)().getState())},getCheckoutUrl:function(){return(0,r.A0)((0,i.zJ)().getState())},hydrateCart:function(t){var e=(0,r.nX)((0,i.zJ)().getState()),n=e.updateUnitCartQuantity;(0,e.resetCart)();var o,u=a(t);try{for(u.s();!(o=u.n()).done;){var c=o.value;n({productUnit:c.unit,targetQuantity:c.quantity})}}catch(t){u.e(t)}finally{u.f()}},hydrateProducts:function(t){(0,(0,r.nX)((0,i.zJ)().getState()).hydrateProducts)(t)},onCartUpdated:function(t){(0,(0,r.nX)((0,i.zJ)().getState()).setCartUpdatedCallback)(t)},onCartDisplayed:function(t){(0,(0,r.nX)((0,i.zJ)().getState()).setCartDisplayedCallback)(t)},onProductsLoaded:function(t){(0,(0,r.nX)((0,i.zJ)().getState()).setProductsLoadedCallback)(t)},productFactory:function(t,e){return(0,o.c)(t,e)}}},3499:function(t,e,n){"use strict";n.d(e,{u:function(){return i}});var r=n(8659);function i(){"undefined"==typeof window||Object.prototype.hasOwnProperty.call(window._fwn,"shopping")||Object.defineProperty(window._fwn,"shopping",{value:r.B,writable:!1})}},52744:function(t,e,n){"use strict";n.d(e,{u:function(){return r.u}});var r=n(3499)},23493:function(t,e,n){"use strict";n.d(e,{k:function(){return r.k}});var r=n(7737)},69103:function(t,e,n){"use strict";n.d(e,{S:function(){return i}});var r=n(64085);function i(t){var e;"undefined"==typeof window||window._fwn||(window._fwn={}),window._fwn.version=null!==(e="v20230531.1-hotfix")?e:"unknown",t(),(0,r._H)({target:null,type:r.tw.FW_READY,data:{}})}},10854:function(t,e,n){"use strict";n.d(e,{f:function(){return s}});var r=n(14166),i=n(64117),o=n(23919),a=n(96950),u=n(88263);function c(t){(0,o.H)(new Error("Invalid invitation query string: ".concat(t)))}function s(){if(null===location||void 0===location?void 0:location.search){var t=(0,u.O5)(location.search).fwinvite;if(t)try{var e=JSON.parse((0,r.decodeUrl)(t));if(!e.invitation_token||!e.live_stream_id)return void c(t);(0,(0,i.NO)((0,a.zJ)().getState()).inviteReceived)(e.invitation_token,e.live_stream_id)}catch(e){c(t)}}}},20699:function(t,e,n){"use strict";n.d(e,{S:function(){return f}});var r=n(76750),i=n(23919),o=n(92906),a=n(90429),u=n(57009),c=n(48774),s=n(78659),l=n(7344),d="_fwn_fetchingInitialVideo";function f(){if("undefined"!=typeof window&&!(0,a.JW)()){var t;try{t=(0,u.tl)(window)}catch(t){(0,i.H)(t)}if(t&&!window[d]){window[d]=t;var e=(0,r.g)().channel||t.channel,n=t.playlist_id||t.hashtag?void 0:1;if(window._fwn.play)if(e){var f=Object.assign({appContextType:s.LV.EMBED_CONTEXT_TYPE,type:c._r.PROGRAMMATIC},(0,o.E)({channel:e,hashtag:t.hashtag,max_videos:n,playlist:t.playlist_id,video:t.video_id,widget_id:(0,l.k$)(),start_time:t.start_time}));window._fwn.play(f,{autoplay:!0,muted:!1,pip:!1})}else(0,i.PN)("Could not play shared video without channel")}else(0,a.mL)()}}},74923:function(t,e,n){"use strict";n.d(e,{i:function(){return o}});var r=n(65042),i=n(15742);function o(){var t=(0,r.G)(),e=t.getItem(i.Mh.IFRAME_SCROLL_POSITION);e&&(window.scrollTo(0,+e),t.removeItem(i.Mh.IFRAME_SCROLL_POSITION))}},7737:function(t,e,n){"use strict";n.d(e,{k:function(){return _}});var r=n(90333),i=n(83183),o=n(73686),a=n(73227),u=n(38901),c=n(54294),s=n(73797),l=n(5624),d=n(46816),f=n(82945),p=n(52744),v=n(69103),h=n(10854),m=n(20699),g=n(74923),y=!1;function _(){y||(y=!0,(0,v.S)((function(){(0,a.u)(),(0,o.u)({cookiesEnabled:!!window._fwn.globalConfig.commerce_funnel_tracking_enabled}),(0,r.u)({shouldSendPageLoadPixelEvent:!0}),(0,i.u)(),(0,u.u)(),(0,p.u)(),(0,c.u)(),(0,s.u)(),(0,l.ub)(),(0,f.u)(),(0,d.u)(),(0,g.i)(),(0,h.f)(),(0,m.S)()})))}},2853:function(t,e,n){"use strict";function r(t){if("function"==typeof Image){var e=new Image;e.onload=function(){t(e.width>0&&e.height>0)},e.onerror=function(){t(!1)},e.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA"}else t(!1)}n.d(e,{Z:function(){return r}})},62602:function(t,e,n){"use strict";n.d(e,{d:function(){return s},E:function(){return l}});var r=n(31111),i=n(15671),o=n(43144),a=function(){function t(){(0,i.Z)(this,t),this.cache={}}return(0,o.Z)(t,[{key:"get",value:function(t){return this.cache[t]}},{key:"set",value:function(t,e){return this.cache[t]=e}},{key:"remove",value:function(t){delete this.cache[t]}}]),t}(),u=void 0,c=function(){var t=(0,r.m)(),e=(null==t?void 0:t.videoElementCache)||u||(u=new a);return t&&!(null==t?void 0:t.videoElementCache)&&Object.defineProperty(t,"videoElementCache",{writable:!1,value:e}),e},s=function(t){c().remove(t)},l=function(t){return c().get(t.key)||c().set(t.key,function(t){var e="undefined"!=typeof window?document.createElement("video"):{},n=Object.assign({autoplay:!0,muted:!0,playsInline:!0},t);return e.autoplay=!!n.autoplay,e.muted=!!n.muted,e.playsInline=!!n.playsInline,e.tabIndex=0,e}(t))}},44723:function(t,e,n){"use strict";n.d(e,{T:function(){return w}});var r=n(15671),i=n(43144),o=n(97326),a=n(88301),u=n(60136),c=n(82963),s=n(61120),l=n(56271),d=n(75071),f=n(40391),p=n(23919),v=n(25791),h=n(20460),m=n(7344);function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=(0,s.Z)(t);if(e){var i=(0,s.Z)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,c.Z)(this,n)}}var y,_=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},b=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},w=function(t){(0,u.Z)(n,t);var e=g(n);function n(){var t;return(0,r.Z)(this,n),t=e.call(this),y.set((0,o.Z)(t),void 0),t.__version="v20230531.1-hotfix",t.widgetId=(0,m.k$)(),_((0,o.Z)(t),y,void 0,"f"),t.shadowRoot&&(0,f.F)(t.shadowRoot),t}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){var t=this;(0,a.Z)((0,s.Z)(n.prototype),"connectedCallback",this).call(this),_(this,y,new MutationObserver((function(e){e.map((function(t){return t.attributeName})).some((function(t){return t&&(0,v.E)(t)}))&&t.render()})),"f"),b(this,y,"f").observe(this,{attributes:!0})}},{key:"disconnectedCallback",value:function(){var t;(0,a.Z)((0,s.Z)(n.prototype),"disconnectedCallback",this).call(this),null===(t=b(this,y,"f"))||void 0===t||t.disconnect(),this.shadowRoot&&(document.getElementById(h.lr)?((0,p.PN)("fw-player element found, cache root ".concat(this.widgetId)),(0,d.Ar)(this.shadowRoot,this.widgetId)):((0,p.PN)("Unmounting current component ".concat(this.widgetId)),(0,d.su)(this.shadowRoot,this.widgetId),(0,d.Cg)()))}}]),n}(l.oi);y=new WeakMap},75071:function(t,e,n){"use strict";n.d(e,{Ar:function(){return c},Cg:function(){return s},su:function(){return l}});var r=n(98661),i=n(64085),o=n(23919),a=n(90888);function u(){var t;return window.fwnRootCache=null!==(t=window.fwnRootCache)&&void 0!==t?t:{},window.fwnRootCache}function c(t,e){u()[e]=t}function s(){var t=u();Object.keys(t).forEach((function(e){(0,o.PN)("Unmounting cached component: ".concat(e)),l(t[e],e),delete t[e]}))}function l(t,e){t&&(0,r.unmountComponentAtNode)(t),(0,i.e5)({action:a.Lu,sentinel:"fwn-internal",widgetId:e})}},22997:function(t,e,n){"use strict";var r=n(15671),i=n(43144),o=n(60136),a=n(82963),u=n(61120),c=n(98661),s=n(54880),l=n(64085),d=n(23919),f=n(72039),p=n(37371),v=n(48774),h=n(88263),m=n(40848),g=n(93324),y=n(68195),_=n(18659),b=n(98309),w=n(94471),O=n(55157),E=n(54440),x=n(9122),S=n(57734),j=n(90283),k=n(4942),C=n(40402),P=n(78659),T=n(523),I=n(52282),A=n(24010);var R=(0,A.Z)("div",{target:"e1hha6ji2"})({name:"wb1nee",styles:"font-size:12px;line-height:1.2;& a,& button{-webkit-tap-highlight-color:transparent;}"}),N=(0,A.Z)("div",{target:"e1hha6ji1"})("color:white;font-weight:normal;",(function(t){return"pinned"===t.mode&&"\n background: black;\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: stretch;\n padding: 5px 0;\n position: fixed;\n bottom: 0;\n left: 0;\n width: 100vw;\n\n overflow: hidden;\n z-index: 2147483646 !important;\n\n @media only screen and (".concat(P.OT,") {\n border-radius: 12px 12px 0 0;\n left: 50%;\n width: 60vw;\n transform: translateX(-50%);\n }\n ")}),";",(function(t){return"row"===t.mode&&"\n position: relative;\n "}),";"),D=(0,A.Z)("div",{target:"e1hha6ji0"})({name:"1s373qp",styles:"font-size:28px;font-weight:500;margin:0;padding:20px 10px"}),Z=n(56551),L=n(49786),M=n(62614),U=n.n(M),F=n(45578),V=n.n(F),H=n(20460),z=n(35189);function W(){var t=(0,z.g)(),e=(0,x.AC)(),n=(0,E.gW)(),r=(0,c.useCallback)((function(){var r=e.getState(),i=n.getState(),o=function(t,e){var n=t.filter((function(t){return!e[t.encoded_id]}));return V()(n,(function(t){return t.encoded_id}))}(i.thumbnailImpressionVideoReportQueue,i.thumbnailImpressionIdsReportSuccess);r.appContext?t(o,H.Em.AUTOPLAY,r.appContext):(0,d.H)(new Error("AppContext is not defined before triggering thumbnail impression event")),i.actions.processThumbnailImpressionQueue(o)}),[e,n,t]),i=(0,c.useMemo)((function(){return U()(r,1e3,{leading:!1})}),[r]);return(0,c.useEffect)((function(){return i.cancel}),[i]),i}var Y=n(58777),B=n.n(Y),$=n(80322),G=n.n($),X=n(56052),q=n.n(X),J=n(19733),K=n.n(J),Q=n(7095),tt=n(29038),et=n(83974),nt=n(60358);var rt=function(t){var e=t.isPlayingCurrentContent,n=t.videos,r=t.autoplay,i=(0,E.uM)((function(t){return t.actions})),o=(0,E.uM)((function(t){return t.inViewportIds})),a=(0,E.uM)((function(t){return t.autoplayId})),u=(0,E.uM)((function(t){return t.pausedAutoplayId})),s=(0,tt.s)(et.xS),l=(0,Q.x)(),d=(0,c.useMemo)((function(){return(r||a&&!e)&&!s}),[r,a,s,e]),f=(0,c.useMemo)((function(){return a&&o[a]}),[a,o]),p=(0,c.useMemo)((function(){return u&&o[u]}),[u,o]),v=(0,c.useMemo)((function(){var t,e;return u&&p?u:l?l.length>0?null===(t=null==l?void 0:l.map((function(t){return n[t]})).filter(Boolean).find((function(t){return o[t.encoded_id]&&t.vast_tag})))||void 0===t?void 0:t.encoded_id:null===(e=n.find((function(t){return!t.vast_tag&&o[t.encoded_id]})))||void 0===e?void 0:e.encoded_id:function(t,e){var n=(0,nt.mV)((0,nt.SD)(t),e.map((function(t){return t.encoded_id}))),r=e.filter((function(t){return!!t.badge})).map((function(t){return t.encoded_id})),i=n.filter((function(t){return r.includes(t)}));return i.length>0?i[0]:n[0]}(o,n)}),[l,o,p,u,n]);(0,c.useEffect)((function(){if(d){if(!f){var t=setTimeout((function(){v&&i.setAutoplay(v)}),1e3);return function(){clearTimeout(t)}}}else i.pauseAutoplay()}),[d,f,v,i])},it=n(55883),ot=n(89213),at=n(68793),ut=n(34510),ct=n(35944);c.default.createElement;var st,lt=(0,A.Z)("div",{target:"e1yjo6ap6"})("width:100%;overflow:auto;",(function(t){return t.isCollapsed&&"\n height: 0;\n width: 0;\n overflow: hidden;\n "}),";"),dt=(0,A.Z)("a",{target:"e1yjo6ap5"})({name:"jab8hg",styles:"color:inherit;font-size:16px;line-height:1.5;padding:0 10px;text-decoration:none;display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%;&:hover{color:inherit;text-decoration:none;}"}),ft=(0,A.Z)("span",{target:"e1yjo6ap4"})({name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"}),pt=(0,A.Z)("a",{target:"e1yjo6ap3"})("background-image:url('",(function(t){return t.showLeftNav?G():""}),"');background-position:center center;background-repeat:no-repeat;background-size:26px 26px;display:block;flex-basis:40px;flex-grow:0;&:hover{cursor:",(function(t){return t.showLeftNav?"pointer":"initial"}),";}"),vt=(0,A.Z)("a",{target:"e1yjo6ap2"})("background-image:url('",q(),"');background-position:center center;background-repeat:no-repeat;background-size:26px 26px;display:block;flex-basis:40px;flex-grow:0;"),ht=(0,A.Z)("div",{target:"e1yjo6ap1"})({name:"1k31htq",styles:"min-width:35px;height:35px;position:absolute;right:0;top:0"}),mt=(0,A.Z)("a",{target:"e1yjo6ap0"})("&:hover{color:inherit;text-decoration:none;}background-image:url('",B(),"');background-position:top right;background-repeat:no-repeat;background-size:contain;color:inherit;",(function(t){return t.isCollapsed&&"\n padding-right: 35px;\n background-image: url('".concat(K(),"');")}),";display:block;min-width:35px;height:35px;line-height:35px;"),gt=function(t){var e=t.children,n=t.onScrollLeft,r=t.onScrollRight,i=t.showLeftNav,o=t.title,a=(0,Z.X)().t,u=(0,ut.Z)("_fwnclpsd",!1),s=(0,g.Z)(u,2),l=s[0],d=s[1],f=function(t){t.preventDefault(),d(!l)},p=(0,ct.tZ)(mt,{href:"#",isCollapsed:l,onClick:f,title:a(l?"Expand":"Collapse")});return(0,ct.BX)(c.Fragment,{children:[l&&(0,ct.BX)(dt,{title:a("Expand"),href:"#",onClick:f,children:[(0,ct.tZ)(ft,{className:"cy-pinned-title",children:o||a("Recommended Videos made in Firework")}),p]}),!l&&(0,ct.tZ)(ht,{children:p}),!l&&(0,ct.tZ)(pt,{href:"#",onClick:i?n:void 0,title:a("Left"),showLeftNav:i}),(0,ct.tZ)(lt,{isCollapsed:l,children:e}),!l&&(0,ct.tZ)(vt,{href:"#",onClick:r,title:a("Right")})]})},yt=n(70917),_t=n(39764),bt=n(21572);!function(t){t.LEFT="scroll-left",t.RIGHT="scroll-right"}(st||(st={}));var wt=function(t){return t>=960?5:t>=640?4:t>=480?3:2};var Ot=(0,A.Z)("div",{target:"er4ubyk5"})("display:flex;flex-flow:row nowrap;justify-content:space-between;width:100%;max-width:100vw;overflow:auto;--border-radius:var(\n ",_t.iQ,",\n ",(function(t){return"hard"===t.borderStyle?"0":bt.n_}),"\n );"),Et=(0,A.Z)("div",{target:"er4ubyk4"})({name:"1vvu3hk",styles:"position:relative;width:100%;flex:1;overflow:auto;display:flex;justify-content:center"}),xt={name:"1ot93q",styles:"border-radius:var(--border-radius)"},St=(0,A.Z)("div",{target:"er4ubyk3"})("transform:translateZ(0);box-sizing:border-box;display:flex;flex-flow:row nowrap;overflow-scrolling:touch;overflow-x:scroll;overflow-y:hidden;padding:0;margin:0;scroll-behavior:smooth;gap:var(",_t.EY,", 10px);&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;",(function(t){return("pinned"===t.mode||"row"===t.mode)&&xt})," ",(function(t){return"grid"===t.mode&&(0,yt.iv)("display:grid!important;grid-template-columns:repeat(",t.columns,", 1fr);position:relative;left:auto;right:auto;width:100%;","")}),";"),jt=(0,A.Z)("button",{target:"er4ubyk2"})("background-color:transparent;background-position:center center,center bottom;background-repeat:no-repeat,no-repeat;background-size:40px 40px,cover;border:0;cursor:pointer;height:100%;padding:0;position:absolute;top:0;width:46px;z-index:1;",(function(t){return t.direction===st.RIGHT&&(0,yt.iv)("background-image:url('",t.img,"'),linear-gradient(to right, transparent, rgb(0 0 0 / 50%));border-bottom-right-radius:var(--border-radius);border-top-right-radius:var(--border-radius);right:0;&:hover{background-image:url('",t.img,"'),linear-gradient(to right, transparent, rgb(0 0 0 / 75%));}","")}),";",(function(t){return t.direction===st.LEFT&&(0,yt.iv)("background-image:url('",t.img,"'),linear-gradient(to right, rgb(0 0 0 / 50%), transparent);border-bottom-left-radius:var(--border-radius);border-top-left-radius:var(--border-radius);left:0;&:hover{background-image:url('",t.img,"'),linear-gradient(to right, rgb(0 0 0 / 75%), transparent);}","")}),";&:focus-visible{outline-offset:-3px;}"),kt=(0,A.Z)("button",{target:"er4ubyk1"})("align-self:center;background:rgb(128 128 128 / 80%);border-radius:",bt.n_,";border:none;color:white;font-size:1.4em;grid-column:1/-1;line-height:2em;margin:1em;outline:none;padding:0 2em;white-space:nowrap;"),Ct=(0,A.Z)("slot",{target:"er4ubyk0"})({name:"1duzn4e",styles:"&::slotted(*){grid-column:1/-1;}"}),Pt=n(89062),Tt=n(44908),It=n.n(Tt),At=n(92906),Rt=n(82071),Nt=n(9301),Dt=n(29453),Zt=function(){var t=(0,Dt.r)(),e=t.params,n=t.pixelTrackingData,r=(0,x.oR)((function(t){return t.navigation})),i=(0,E.uM)((function(t){return t.inViewportIds}));return(0,c.useCallback)((function(t){var o=(0,nt.mV)(It()([].concat((0,Pt.Z)((0,nt.SD)(i)),[t.encoded_id])),r),a={event_properties:(0,At.E)(Object.assign({ad_id:t.ad_id,autoplay:e.autoplay,canonical_url:t.canonical_url,play_trigger:(0,Nt.eD)(e.widget_id,t.encoded_id)||Nt.P4.PLAY_TRIGGER_CLICK,variant:t.variant,_video_id:t.encoded_id,_live_stream_id:t.live_stream_id,live_stream_status:t.live_stream_status,_viewport_video_ids:o},n))};(0,Rt.jl)({endpoint:L.vR,data:a,host:e.api_host_tracking}),(0,ot.V)({type:ot.t.FW_VIDEO_CLICK_VIDEO,params:e,data:{video:t}})}),[i,r,e,n])},Lt=n(27694);var Mt,Ut=n(8221);var Ft=n(7344),Vt=n(83238),Ht=n(51844),zt=n(14549),Wt=n.n(zt);c.default.createElement;function Yt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Bt(t){for(var e=1;e=(new Date).setHours(0,0,0,0));return o?(0,ct.BX)(ct.HY,{children:[l&&(0,ct.BX)(Le,Ye(Ye({},r),{},{children:[(0,ct.tZ)(Me,{children:o}),(0,ct.BX)(Ue,{children:[(0,ct.tZ)(Fe,{children:u}),(0,ct.tZ)(Ve,{children:a})]})]})),s&&(0,ct.tZ)(Le,Ye(Ye({},r),{},{children:(0,ct.tZ)(Ze.J,{video:n})}))]}):null},Ge=n(25980),Xe=(0,A.Z)("div",{target:"e13837780"})("display:flex;justify-content:center;align-items:center;border-radius:50%;background:rgb(var(--gray3-rgb) / 50%);height:",(function(t){return t.small?"30px":"40px"}),";width:",(function(t){return t.small?"30px":"40px"}),";"),qe=(c.default.createElement,function(t){var e=t.small,r=(0,Z.X)().t;return(0,ct.tZ)(Xe,{small:e,children:(0,ct.tZ)(Ht.C,{src:n(29158),height:e?"18px":"24px",width:e?"18px":"24px",alt:r("Product tag")})})});var Je=(0,g.Z)(bt.oq,1)[0],Ke=(0,A.Z)("figure",{target:"e2iitbi5"})({name:"8phks",styles:"height:100%;position:relative;width:100%;margin:0;&:hover .fw-meta{background-image:linear-gradient(\n to bottom,\n transparent,\n rgb(0 0 0 / 100%)\n );}"}),Qe=(0,A.Z)("span",{target:"e2iitbi4"})({name:"xrrdm2",styles:"position:absolute;right:5px;top:5px"}),tn=(0,A.Z)("div",{target:"e2iitbi3"})("align-items:stretch;background-image:linear-gradient(to bottom, transparent, rgb(0 0 0 / 60%));background-size:100% ",(function(t){return t.isCaptionHidden?"0%":"100%"}),";background-position:center bottom;background-repeat:no-repeat;bottom:0;display:flex;flex-direction:column;font-size:",(function(t){var e=t.containerWidth;return e?Math.round(e/Je*16):16}),"px!important;font-weight:bold!important;justify-content:flex-end;left:0;margin:0;min-height:50%;position:absolute;width:100%;"),en=(0,A.Z)("div",{target:"e2iitbi2"})({name:"2pfj3b",styles:"padding:7%"}),nn=(0,A.Z)("figcaption",{target:"e2iitbi1"})("color:#fff;margin:0;opacity:",(function(t){return t.isCaptionHidden?"0":"1"}),";padding:0;text-overflow:ellipsis;text-shadow:0 0 4px rgb(0 0 0 / 80%);transition:opacity 0.3s;font-size:var(",_t.uE,", inherit);font-weight:var(",_t.QD,", inherit);",(function(t){return t.isLarge&&"\n font-size: var(".concat(_t.uE,", 22px);\n font-weight: var(").concat(_t.QD,", 600);\n ")}),"display:block;display:-webkit-box;line-clamp:3;-webkit-line-clamp:3;box-orient:vertical;-webkit-box-orient:vertical;overflow:hidden;"),rn=(0,A.Z)("div",{target:"e2iitbi0"})({name:"3kksfc",styles:"position:absolute;z-index:2;padding:7%;width:100%;display:flex;justify-content:flex-end"});c.default.createElement;var on=(0,Ft._N)(),an={name:"1dk0v5d",styles:"z-index:2"},un={name:"1a6qgrx",styles:"position:absolute;z-index:2"},cn={name:"1dk0v5d",styles:"z-index:2"},sn={name:"1dk0v5d",styles:"z-index:2"},ln=function(t){var e,n=t.children,r=t.video,i=t.delayCaption,o=t.isLarge,a=t.isInViewport,u=t.isVideoPlaying,s=t.params,l=r.caption,d=(0,Z.X)().t,f=(0,c.useRef)(null),p=qt(!s.captions||u,{delayCaption:i}),v=(0,g.Z)(p,1)[0];on&&l&&(l=(0,Ft.gn)(l));var h=!(0,Te.tO)(r)&&r.products.length>0,m=(0,Te.F6)(r,null)&&r.products.length>0,y=(0,Te.PK)(r)&&r.live_stream_has_products,_=(0,Te.lT)(r)&&r.live_stream_has_products,b=!u&&(h||m||y||_);return(0,ct.BX)(Ke,{ref:f,children:[(0,ct.tZ)(Qe,{css:sn,children:(0,ct.tZ)(Ge.z,{video:r})}),(0,ct.tZ)(Xt,{"aria-label":d("Play {{caption}}",{caption:null==r?void 0:r.caption}),css:cn,className:"focusable-play-button",hidePlayIcon:u,tabIndex:a?1:-1}),b?(0,ct.tZ)(rn,{children:(0,ct.tZ)(qe,{small:!o})}):null,(0,ct.tZ)($e,{css:un,video:r}),(0,ct.tZ)(tn,{css:an,className:"fw-meta",isCaptionHidden:v||!l,containerWidth:null===(e=f.current)||void 0===e?void 0:e.offsetWidth,children:l&&(0,ct.tZ)(en,{children:(0,ct.tZ)(nn,{isCaptionHidden:v,isLarge:o,className:"fw-thumbnail-caption",children:l})})}),n]})};c.default.createElement;var dn=c.default.lazy((function(){return n.e(1660).then(n.bind(n,31660))})),fn=c.default.lazy((function(){return Promise.all([n.e(248),n.e(3431),n.e(1992),n.e(1877)]).then(n.bind(n,5247))})),pn=(0,A.Z)("div",{target:"e1dr8p2n1"})({name:"1107o8i",styles:"background:linear-gradient(-90deg, #eee, #ccc);box-sizing:border-box;height:100%;width:100%"}),vn=(0,A.Z)("div",{target:"e1dr8p2n0"})({name:"1h839sq",styles:"background-image:none;background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;border:none!important;box-sizing:border-box;color:currentColor;cursor:pointer;display:flex;flex-direction:column;height:100%;justify-content:flex-end;opacity:1;position:relative;text-align:initial;text-decoration:none;width:100%;z-index:1;&:hover{color:inherit;filter:contrast(115%);text-decoration:none;z-index:1;}"}),hn=function(t,e){var n=t.impressionTimeout,r=t.isInViewport,i=t.wasInViewport,o=t.index,a=t.total,u=t.video,c=t.onFeedImpression,s=t.registerThumbnailImpression,l=t.registerInViewport,d=t.unregisterInViewport,f=t.trackThumbnailImpressionsEmbedFeed,p=e.isVisible,v=e.fetchMoreVideos,h={impressionTimeout:n,isInViewport:r,wasInViewport:i},m=a-(o-1);3===m&&p&&!i&&v&&v(m),p?r||(c(),l(u),r=!0,i=!0,n||(n=setTimeout((function(){s(u),f()}),1e3))):r&&(d(u),r=!1,n&&(n=clearTimeout(n)));var g={impressionTimeout:n,isInViewport:r,wasInViewport:i};return JSON.stringify(h)!==JSON.stringify(g)?Object.assign(Object.assign({},t),g):t},mn={name:"1whiqi",styles:"height:100%!important;margin:0!important;object-fit:cover!important;position:absolute!important;top:0!important;left:0!important;width:100%!important;-webkit-transform:translate3d(0, 0, 0)"},gn={name:"1oycbwz",styles:"align-items:center;backdrop-filter:blur(10px);background:rgb(0 0 0 / 50%);color:rgb(255 255 255 / 50%);display:flex;top:0;right:0;bottom:0;left:0;justify-content:center;position:absolute;text-align:center;z-index:1"},yn={name:"1ky9bru",styles:"align-items:center;backdrop-filter:blur(10px);background:rgb(0 0 0 / 50%);color:rgb(255 255 255 / 50%);display:flex;top:0;right:0;bottom:0;left:0;justify-content:center;position:absolute;text-align:center;z-index:3"},_n=function(t){var e,n,r=t.appContext,i=t.hasPlayingInPlayerOverlay,o=t.index,a=t.total,u=t.video,s=t.hasAutoplay,l=t.params,d=t.isLarge,p=t.fetchMoreVideos,v=t.onFeedImpression,h=t.trackThumbnailImpressionsEmbedFeed,m=(0,w.I4)(),y=(0,g.Z)(m,1)[0].feed,_=(0,Z.X)().t,b=(0,f.qS)(l),O=(0,x.oR)(S.De).updateVideoFromLiveStream,j=(0,x.oR)(S.w0),C=(0,E.uM)((function(t){return t.actions})),P=C.setAutoplay,T=C.pauseAutoplay,I=C.showVideoPlayer,A=C.registerInViewport,R=C.unregisterInViewport,N=C.setThumbnailLoaded,D=C.registerThumbnailImpression,L=(0,c.useState)(!1),M=L[0],U=L[1],F=(0,c.useState)(!1),V=F[0],H=F[1],z=(0,c.useRef)(null),W=(0,c.useRef)(!1),Y=(0,c.useReducer)(hn,{index:o,total:a,impressionTimeout:void 0,isInViewport:!1,wasInViewport:!1,video:u,videos:j,onFeedImpression:v,registerThumbnailImpression:D,registerInViewport:A,unregisterInViewport:R,trackThumbnailImpressionsEmbedFeed:h}),B=Y[0].isInViewport,$=Y[1],G=s||V||function(t,e){return!("ad"!==t.badge||!t.vast_tag||!e)}(u,B),X=Zt(),q=(0,Ut.g)({onChange:(0,c.useCallback)((function(t){return $({isVisible:t,fetchMoreVideos:p})}),[p]),threshold:.5}),J=(0,Re.O)({appContext:r,params:l,video:u}),K=J.isFirstPartyLiveStream,Q=J.openInFirstParty,tt=(0,Ie.u8)(null==u?void 0:u.live_stream_id).setActiveWatch,et=(0,c.useCallback)((function(t){null==t||t.preventDefault(),X(u),K?(0,Ae.Ol)({params:l,appContext:r,video:u,feed:y,videos:j})&&(tt(),I({video:u,muted:!1})):Q()}),[r,y,K,Q,l,tt,I,X,u,j]),nt=(0,c.useCallback)((function(){W.current||B&&!z.current&&(z.current=setTimeout((function(){z.current=null,(0,Nt.vG)(l.widget_id,u.encoded_id,Nt.P4.PLAY_TRIGGER_HOVERPLAY),P(u.encoded_id)}),500))}),[B,l.widget_id,P,u]),rt=(0,c.useCallback)((function(){l.autoplay_keep_thumbnail&&T(),z.current&&(clearTimeout(z.current),z.current=null)}),[T,l]),it=nt,at=(0,c.useCallback)((function(t){O(t.liveStreamId,t.liveStream)}),[O]);return(0,ct.BX)(ct.HY,{children:[(0,Te.tO)(u)&&(0,ct.tZ)(c.Suspense,{fallback:(0,ct.tZ)(c.Fragment,{}),children:(0,ct.tZ)(dn,{video:u,apiHost:l.api_host,updateLiveStream:at})}),(0,ct.tZ)(me,{className:"cy-thumbnail scrollTo_".concat(u.encoded_id),isLarge:d,mode:l.mode,children:(0,ct.tZ)(pn,{className:(0,Ce.cx)((0,k.Z)({},"sp",!!u.vast_tag),(0,k.Z)({},"autoplay",s)),onTouchStart:function(){W.current=!0},onMouseEnter:it,onMouseOver:nt,onMouseLeave:rt,children:(0,ct.tZ)(vn,{className:"cy-thumbnail-link",ref:q,onClick:et,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||et(t)},children:(0,ct.BX)(ln,{video:u,delayCaption:2e3,isLarge:d,isInViewport:B,isVideoPlaying:M,params:l,children:[i&&(0,ct.tZ)("div",{css:yn,children:_("Playing in picture in picture.")}),u.live_stream_status===Pe.Yi.PAUSED&&(0,ct.tZ)("div",{css:gn,children:_("Host will be right back.")}),(0,ct.tZ)(Lt.Z,{alt:(null==u?void 0:u.caption)||_("Firework video"),css:mn,onLoad:function(){N(u),0===o&&((0,ot.V)({type:ot.t.FW_EMBEDFEED_THUMBNAILLOAD,params:l,data:{video:u}}),null==b||b.measure(f.uj,f.lR,void 0))},loading:o<=3?"eager":"lazy",src:null!==(e=(0,Ne.yb)(u))&&void 0!==e?e:"",blurhash:(0,Ne.Dh)(u)}),G&&!l.a11y_disable_previews&&(0,ct.tZ)(c.Suspense,{fallback:(0,ct.tZ)(c.Fragment,{}),children:(0,ct.tZ)(fn,{appContext:r,videoId:u.encoded_id,video:u,variant:null!==(n=u.variant)&&void 0!==n?n:"",index:o,hasAutoplay:s,onVideoPlay:function(){return U(!0)},onVideoPause:function(){return U(!1)},onVideoLoaded:function(){return H(!0)},params:l})})]})})})})]})},bn=n(23279),wn=n.n(bn),On=n(60876);var En=function(){var t,e,n=(0,Dt.r)(),r=n.params,i=n.pixelTrackingData,o=(t=(0,x.AC)(),e=(0,E.gW)(),(0,c.useCallback)((function(){var n=t.getState().navigation,r=e.getState().inViewportIds,i=(0,nt.SD)(r);return(0,nt.mV)(i,n)}),[e,t]));return(0,c.useCallback)((function(){var t=o();if(t.length>0){var e={event_properties:(0,At.E)(Object.assign(Object.assign({},i),{_viewport_videos_ids:t}))};(0,Rt.jl)({endpoint:On.wl,data:e,host:r.api_host_tracking})}}),[o,r,i])},xn=function(t){var e=(0,x.oR)(S.GF),n=function(){var t=(0,Dt.r)(),e=t.params,n=t.pixelTrackingData,r=(0,x.AC)(),i=(0,E.gW)();return(0,c.useCallback)((function(){var t=i.getState(),o=t.inViewportIdsReportQueue,a=t.inViewportIdsReportSuccess,u=t.actions.processInViewportQueue,c=new Set(a),s=(0,Pt.Z)(new Set(o)).filter((function(t){return!c.has(t)}));if(0!==s.length){u(s);var l=r.getState().navigation,d=(0,nt.mV)(s,l),f={event_properties:(0,At.E)(Object.assign(Object.assign({},n),{_viewport_videos_ids:d}))};(0,Rt.jl)({endpoint:On.iv,data:f,host:e.api_host_tracking})}}),[i,e,n,r])}(),r=En(),i=(0,c.useMemo)((function(){return U()(n,1e3,{leading:!1})}),[n]);(0,c.useEffect)((function(){return i.cancel}),[i]);var o=(0,c.useMemo)((function(){return wn()(r,500)}),[r]);(0,c.useEffect)((function(){return o.cancel}),[o]);var a=(0,c.useCallback)((function(){i(),o()}),[i,o]);(0,c.useLayoutEffect)((function(){var n=t.current;if(n)return"row"===e.mode||"pinned"===e.mode?(n.addEventListener("scroll",a,{passive:!0}),function(){return n.removeEventListener("scroll",a)}):(window.addEventListener("scroll",a,{passive:!0}),function(){return window.removeEventListener("scroll",a)})}),[t,e.mode,a])},Sn=(c.default.createElement,function(t){var e=t.appContext,n=t.columns,r=t.largeCarousel,i=t.params,o=t.videos,a=t.fetchMoreVideos,u=t.playlists,s=i.mode,l=i.max_videos,d=i.paginate_by,f=i.dir,p=(0,Z.X)().t,v=(0,c.useRef)(null),h=(0,c.useRef)(null);xn(h);var m=(0,E.uM)((function(t){return t.inViewportIds})),y=(0,c.useState)([0,0]),_=(0,g.Z)(y[0],2),b=_[0],w=_[1],O=y[1],x=(0,c.useState)(1),S=x[0],j=x[1],k=(0,c.useState)({showLeftRowNav:!1,showRightRowNav:!1}),C=k[0],P=C.showLeftRowNav,T=C.showRightRowNav,I=k[1],A=(0,c.useState)(0),R=A[0],N=A[1],D=(0,L.To)(),M=(0,at.n)(),U=W(),F=(0,c.useCallback)((function(){D(e),M({type:ot.t.FW_EMBEDFEED_IMPRESSION})}),[e,D,M]);(0,c.useLayoutEffect)((function(){var t=h.current;if(t&&"row"===s){var e=function(t){var e=t.target,n=e.scrollLeft,r=e.offsetWidth,i=e.scrollWidth,a={showLeftRowNav:!1,showRightRowNav:!1};a=X(f)?{showLeftRowNav:Math.abs(n)>i-(r+1)&&o.length>0,showRightRowNav:!(n<0)}:{showLeftRowNav:n>0,showRightRowNav:n0},(P!==a.showLeftRowNav||T!==a.showRightRowNav&&!X(f))&&I(a),(X(f)&&P===a.showLeftRowNav||T!==a.showRightRowNav)&&I(a)};e({target:t}),t.addEventListener("scroll",e,{passive:!0});var n=function(){return e({target:t})};return window.addEventListener("resize",n,{passive:!0}),function(){t.removeEventListener("scroll",e),window.removeEventListener("resize",n)}}}),[P,T,o.length,s]),(0,c.useLayoutEffect)((function(){if(v.current&&"grid"===s){var t=d&&d>0?S*(Math.floor(d/n)*n):l;if(void 0!==t&&t>0){var e=Math.max(n,t),r=w!==n?w:0,i=e%n,o=n*Math.ceil(e/n)-e;i<=Math.floor(n/2)?O([e-i-r,w]):O([e+o-r,w])}}}),[o.length,n,l,s,w,S,d,v]);var V=(0,it.F)(e,i),H=V.isPlayingCurrentContent,z=V.currentPlayerVideoId;rt({isPlayingCurrentContent:H,videos:o,autoplay:!!i.autoplay&&!i.autoplay_keep_thumbnail});var Y=function(t){var e=t.isPlayingCurrentContent,n=(0,E.uM)((function(t){return t.player})),r=(0,E.uM)((function(t){return t.autoplayId}));return e||n.isOpen?null:r}({isPlayingCurrentContent:H}),B=(0,c.useMemo)((function(){return b>0?o.slice(0,b):o}),[b,o]),$=function(t){return function(e){var n;e.preventDefault();var r,a=(0,nt.mV)((0,nt.SD)(m),o.map((function(t){return t.encoded_id})));t===st.LEFT&&!X(f)||t===st.RIGHT&&X(f)?function(){N(R-1);var t=a[0],e=o.findIndex((function(e){return e.encoded_id===t}));r=o[e-1]||o[e]}():function(){N(R+1);var t=a.slice(-1).pop(),e=o.findIndex((function(e){return e.encoded_id===t}));r=o[e+1]||o[e]}();var u=null===(n=h.current)||void 0===n?void 0:n.getRootNode(),c=null==u?void 0:u.querySelector(".scrollTo_".concat(null==r?void 0:r.encoded_id));h.current&&c&&(t===st.LEFT?h.current.scrollLeft=c.offsetLeft+c.offsetWidth-h.current.clientWidth:h.current.scrollLeft=c.offsetLeft),i.a11y_disable_focus||setTimeout((function(){var t,e=null===(t=h.current)||void 0===t?void 0:t.querySelector('button.focusable-play-button[tabindex="1"]');null==e||e.focus()}),500)}},X=function(t){return void 0===t&&(t=""),"rtl"===t},J=(0,ct.tZ)(Ot,{borderStyle:i.ui_border_style,ref:v,children:(0,ct.BX)(Et,{children:["row"===s&&(X(f)?!P:P)&&(0,ct.tZ)(jt,{"aria-label":X(f)?p("Next"):p("Previous"),className:"cy-scroll-left fw-feed-navigation",direction:st.LEFT,img:G(),onClick:$(st.LEFT),tabIndex:3,title:X(f)?p("Next"):p("Previous")}),(0,ct.BX)(St,{columns:n,mode:s,ref:h,children:[(null==u?void 0:u.length)>0?u.map((function(t,e){return(0,ct.tZ)(c.Fragment,{children:(0,ct.tZ)(we,{index:e,isLarge:r,params:i,playlist:t,onFeedImpression:F},t.id)},t.id)})):B.map((function(t,o){return(0,ct.BX)(c.Fragment,{children:["grid"===s&&o%n==0&&(0,ct.tZ)(Ct,{name:"grid-row-".concat(o/n)}),(0,ct.tZ)(_n,{appContext:e,fetchMoreVideos:"grid"===s&&d?void 0:a,hasPlayingInPlayerOverlay:z===t.encoded_id,index:o,isLarge:r,params:i,total:B.length,onFeedImpression:F,trackThumbnailImpressionsEmbedFeed:U,video:t,hasAutoplay:Y===t.encoded_id},t.encoded_id)]},t.encoded_id)})),"grid"===s&&d&&(0,ct.tZ)(kt,{className:"cy-load-more-button",onClick:function(){j(S+1),a()},children:p("Load More")})]}),"row"===s&&(X(f)?!T:T)&&(0,ct.tZ)(jt,{"aria-label":X(f)?p("Previous"):p("Next"),className:"cy-scroll-right fw-feed-navigation",direction:st.RIGHT,img:q(),onClick:$(st.RIGHT),role:"navigation",tabIndex:2,title:X(f)?p("Previous"):p("Next")})]})});return(0,ct.tZ)(c.Fragment,{children:"pinned"===s?(0,ct.tZ)(gt,{onScrollLeft:$(st.LEFT),onScrollRight:$(st.RIGHT),showLeftNav:!!R,title:i.title,children:J}):J})});c.default.createElement;var jn=(0,A.Z)("div",{target:"e6bppo10"})({name:"vuts15",styles:"background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAAGQBAMAAABi+PBPAAAALVBMVEXOzs7T09PW1tbZ2dni4uLf39/s7OzQ0NDo6Ojk5OTb29vq6urm5ubd3d3u7u7SSsE5AAACR0lEQVR42u3TMUorURgFYDvrTGP9MjswXepYpH+WaW0CopVbEGJpI9jZCbYhkA1EsE0j2KbMGszcfybjVQloJeT77wIO5x6+g/OzuHm6yXXcS7r7u7jB9k7re0v39BjX2163vc72Lq/SHR5kt16vVil5Ok7Rs1lKXtxE9HNKHt5G7v/B4OQkJS9HEf2akvsPkVv2esfHKbYoukWT2+kcHaXoi4uPwW3jKrltXCW3jZvkpvFo86JyNG6St4Wr3H9N47jPjdf1b4+z347GL88R3eRW0VF5tEyVXyO6bVyWdW632+R2onL+2z/YOGsc92XjMtu42L3xeb3xNKLrjRcRXWcPs43TyLFx/dn9fONo3ORW0Ts2Hs+nbeXNwouoXDcefmq83Ly08VM07reNy8gtssaXOzaOxvNZRC+yjYdfNl5movr5xnnjb3/77zieTDLH93vgeLZ3jiccc8wxxxxzzDHHHHPMMcccc8wxxxxzzDHHHHPMMcccc8wxxxxzzDHHHHPMMcccc8wxxxxzzDHHHHPMMcccc8wxxxxzzDHHHHPMMcccc8wxxxxzzDHHHHPMMcccc8wxxxxzzDHHHHPMMcccc8wxxxxzzDHHHHPMMcccc8wxxxxzzDHHHHPMMcccc8wxxxxzzDHHHHPMMcccc8wxxxxzzDHHHHPMMcccc8wxxxxzzDHHHHPMMcccc8wxxxxzzDHHHHPMMcccc8wxxxxzzDHHHHPMMcccc8wxxxxzzDHHHHPMMcd77Hj1I8eR/SvHhx9++x1urtNRptEvkAAAAABJRU5ErkJggg==');background-size:cover;box-sizing:border-box;height:100%;width:100%"}),kn=function(t){var e=t.isLarge,n=t.mode;return(0,ct.tZ)(me,{isLarge:e,mode:n,children:(0,ct.tZ)(jn,{})})},Cn=(c.default.createElement,function(t){var e=t.columns,n=t.largeCarousel,r=t.params,i=t.placeholders;return(0,ct.tZ)(Ot,{borderStyle:r.ui_border_style,children:(0,ct.tZ)(Et,{children:(0,ct.tZ)(St,{columns:e,mode:r.mode,children:i.map((function(t,e){return(0,ct.tZ)(kn,{isLarge:n,mode:r.mode},e)}))})})})});c.default.createElement;function Pn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Tn(t){for(var e=1;e=0;u--)(i=t[u])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a};(0,w.k)();var S=function(t){(0,o.Z)(n,t);var e=E(n);function n(){var t;return(0,r.Z)(this,n),(t=e.apply(this,arguments)).height="75vh",t}return(0,i.Z)(n,[{key:"render",value:function(){var t,e,n,r,i,o,a,u=this,s=Object.fromEntries(this.getAttributeNames().map((function(t){return[t,u.getAttribute(t)]})));this.style.width="100%",this.shadowRoot&&((0,c.unmountComponentAtNode)(this.shadowRoot),t={target:this.shadowRoot,widgetId:this.widgetId,widgetParams:Object.assign({height:this.height},s)},e=t.target,n=t.widgetId,r=t.widgetParams,i=r.channel,o=n,a={location:window.location,page_url:(0,m.XW)(),referrer:document.referrer,target:e,type:h._r.STORYBLOCK,widget_id:o},(0,p.XX)(Object.assign(Object.assign({},a),r)).measure(p.kG),(0,v.c)((function(){(0,f.MD)().configureScope((function(t){t.setTag("fwn_channel",null!=i?i:""),t.setTag("fwn_context","storyblock")}));try{e&&((0,d._H)({type:d.tw.FW_STORYBLOCK_RENDER,data:{widget_id:o},target:e}),(0,c.render)((0,b.tZ)(y.Z,{onError:function(t){return(0,f.H)(t)},children:(0,b.tZ)(l.C,{value:(0,_.c)({container:e}),children:(0,b.tZ)(g.K,{initialParams:a,widgetParams:r})})}),e))}catch(t){(0,f.H)(t)}})))}}]),n}(O.T);x([(0,s.Cb)({type:String})],S.prototype,"height",void 0),customElements.get("fw-storyblock")||customElements.define("fw-storyblock",S)},93886:function(t,e,n){"use strict";var r,i,o,a,u,c,s,l,d;n.d(e,{Dh:function(){return h},F$:function(){return g},Q9:function(){return _},RY:function(){return y},eN:function(){return p},mC:function(){return m},yb:function(){return v}});var f="undefined"!=typeof process&&(null===(r=null===process||void 0===process?void 0:process.env)||void 0===r?void 0:r.NEXT_PUBLIC_IS_NEXTJS)?{IS_NEXTJS:process.env.NEXT_PUBLIC_IS_NEXTJS,API_HOST:process.env.NEXT_PUBLIC_API_HOST,IMG_RESIZING_HOST:process.env.NEXT_PUBLIC_IMG_RESIZING_HOST,API_HOST_ADS:process.env.NEXT_PUBLIC_API_HOST_ADS,PIXEL_HOST:process.env.NEXT_PUBLIC_PIXEL_HOST,PIXEL_NABOO_HOST:process.env.NEXT_PUBLIC_PIXEL_NABOO_HOST,PRODUCT:process.env.NEXT_PUBLIC_PRODUCT,TRACK_VERSION:process.env.NEXT_PUBLIC_TRACK_VERSION,RELEASE_VERSION:process.env.NEXT_PUBLIC_RELEASE_VERSION}:{};function p(t){return f[t]}var v=function(t){if(!t||!Array.isArray(t.video_posters))return"";var e=null==t?void 0:t.video_posters.filter((function(t){return"jpg"===t.format}));return e.length>0?e[0].url:null==t?void 0:t.thumbnail_url},h=function(t){var e;return t&&Array.isArray(t.video_files)&&0!==t.video_files.length&&(null===(e=t.video_files[0])||void 0===e?void 0:e.placeholder_blur_hash)||""},m=null!==(o=null!==(i=p("IMG_RESIZING_HOST"))&&void 0!==i?i:"https://image-resizing-cdn-prod.fireworktv.com")&&void 0!==o?o:"",g=null!==(u=null!==(a=p("API_HOST"))&&void 0!==a?a:"https://fireworkapi1.com")&&void 0!==u?u:"",y=null!==(s=null!==(c=p("STRIPE_PUBLISHABLE_KEY"))&&void 0!==c?c:"pk_live_51IGU4HHvdCSG50mtMO0UQW25Q8GR6m6Wyh7L3oKpff0YHW2HPjULniVkMWk6EAEUOWTanzv4qopogXATuPiJpfjr00ui3gfS9U")&&void 0!==s?s:"pk_test_51IGU4HHvdCSG50mtan9SFMcC0IMks0sGlRsBwc6MgNjmnV6fg8uWjWdqiiRHvWcRm3XsSv8zCfCBW7ULffu3fRIf00pb9LB42y",_=null!==(d=null!==(l=p("PAYPAL_PARTNER_ID"))&&void 0!==l?l:"AR2K6KqsvhK3tox18B72nX6Eo1EEA2AejawGxovkDHXJfjeBjAWCadNvDrxCt96Klu2rr4tDYSXLT6J0")&&void 0!==d?d:"AU7BTByqG6o1YUPzM2NSOOw6wJsuflfRoq1TPqg2qy0ygpakcwdybwt1sc0AYxDHdQmuv2HmMs_3dZuZ"},3820:function(t,e,n){"use strict";n.d(e,{z:function(){return a},g:function(){return u}});var r=n(4942),i=n(93276);function o(t){return{selectCheckoutItems:function(e,n){return t({selectedCheckoutItems:e,initialCheckoutTrigger:n},!1,"selectCheckoutItems")},unselectCheckoutItems:function(){return t({selectedCheckoutItems:[],initialCheckoutTrigger:void 0},!1,"unselectCheckoutItems")},setShippingAddress:function(e){return t({shippingAddress:e},!1,"setShippingAddress")},unsetShippingAddress:function(){return t({shippingAddress:void 0},!1,"unsetShippingAddress")},setSelectedShippingRateId:function(e){return t({selectedShippingRateId:e},!1,"setSelectedShippingRateId")},unsetSelectedShippingRateId:function(){return t({selectedShippingRateId:void 0},!1,"unsetSelectedShippingRateId")},setCheckoutOrderToken:function(e,n){return t((function(t){return{checkoutOrderTokens:Object.assign(Object.assign({},t.checkoutOrderTokens),(0,r.Z)({},n,e))}}),!1,"setCheckoutOrderToken")},unsetCheckoutOrderToken:function(e){return t((function(t){return{checkoutOrderTokens:Object.keys(t.checkoutOrderTokens).reduce((function(n,r){return r!==e&&(n[r]=t.checkoutOrderTokens[r]),n}),{})}}),!1,"unsetCheckoutOrderToken")},setStripeConfirmedPaymentIntentId:function(e,n){return t((function(t){return{paymentIntentIds:Object.assign(Object.assign({},t.paymentIntentIds),(0,r.Z)({},n,e))}}),!1,"setStripeConfirmedPaymentIntentId")},unsetStripeConfirmedPaymentIntentId:function(e){return t((function(t){return{paymentIntentIds:Object.keys(t.paymentIntentIds).reduce((function(n,r){return r!==e&&(n[r]=t.paymentIntentIds[r]),n}),{})}}),!1,"unsetStripeConfirmedPaymentIntentId")},setStripeConfirmedSetupIntentId:function(e,n){return t((function(t){return{setupIntentIds:Object.assign(Object.assign({},t.setupIntentIds),(0,r.Z)({},n,e))}}),!1,"setStripeConfirmedSetupIntentId")},unsetStripeConfirmedSetupIntentId:function(e){return t((function(t){return{setupIntentIds:Object.keys(t.setupIntentIds).reduce((function(n,r){return r!==e&&(n[r]=t.setupIntentIds[r]),n}),{})}}),!1,"unsetStripeConfirmedSetupIntentId")},setUpdatedOrderCartItems:function(e){return t({updatedOrderCartItems:e},!1,"setUpdatedOrderCartItems")},unsetUpdatedOrderCartItems:function(){return t({updatedOrderCartItems:[]},!1,"unsetUpdatedOrderCartItems")},setDiscountCode:function(e,n){return t((function(t){return{discountCodes:Object.assign(Object.assign({},t.discountCodes),(0,r.Z)({},n,e))}}),!1,"setDiscountCode")},unsetDiscountCode:function(e){return t((function(t){return{discountCodes:Object.keys(t.discountCodes).reduce((function(n,r){return r!==e&&(n[r]=t.discountCodes[r]),n}),{})}}),!1,"unsetDiscountCode")},setCheckoutErrorType:function(e){return t({checkoutErrorType:e},!1,"setCheckoutErrorType")},unsetCheckoutErrorType:function(){return t({checkoutErrorType:void 0},!1,"unsetCheckoutErrorType")},setDiscountCodeApplied:function(e,n){return t((function(t){return{discountCodesApplied:Object.assign(Object.assign({},t.discountCodesApplied),(0,r.Z)({},n,e))}}),!1,"setDiscountCodeApplied")},unsetDiscountCodeApplied:function(e){return t((function(t){return{discountCodesApplied:Object.keys(t.discountCodesApplied).reduce((function(n,r){return r!==e&&(n[r]=t.discountCodesApplied[r]),n}),{})}}),!1,"unsetDiscountCodeApplied")},setDiscountCodeFailed:function(e,n){return t((function(t){return{discountCodesFailed:Object.assign(Object.assign({},t.discountCodesFailed),(0,r.Z)({},n,e))}}),!1,"setDiscountCodeFailed")},unsetDiscountCodeFailed:function(e){return t((function(t){return{discountCodesFailed:Object.keys(t.discountCodesFailed).reduce((function(n,r){return r!==e&&(n[r]=t.discountCodesFailed[r]),n}),{})}}),!1,"unsetDiscountCodeFailed")}}}var a="checkout";function u(){return(0,r.Z)({},a,(0,i.g8)((function(t){return Object.assign(Object.assign({},{selectedCheckoutItems:[],initialCheckoutTrigger:void 0,shippingAddress:void 0,selectedShippingRateId:void 0,checkoutOrderTokens:{},paymentIntentIds:{},setupIntentIds:{},updatedOrderCartItems:[],discountCodes:{},discountCodesApplied:{},discountCodesFailed:{},checkoutErrorType:void 0}),{actions:o(t)})})))}},21167:function(t,e,n){"use strict";n.d(e,{F3:function(){return i.F},HE:function(){return r.HE},I0:function(){return r.I0},VQ:function(){return r.VQ},po:function(){return r.po},ti:function(){return r.ti},tp:function(){return r.tp},uo:function(){return o.u}});var r=n(72186),i=n(71922),o=n(57044)},72186:function(t,e,n){"use strict";n.d(e,{HE:function(){return s},I0:function(){return l},VQ:function(){return o},po:function(){return c},ti:function(){return u},tp:function(){return a}});var r=n(57044),i=n(71922);function o(t){return t[i.f].streamState}function a(t){return t[i.f].streamControls.cameraEnabled}function u(t){return t[i.f].streamControls.microphoneMuted}function c(t){return t[i.f].actions}function s(t){return t[i.f].streamState===r.u.READY_TO_STREAM||t[i.f].streamState===r.u.STREAMING}function l(t,e){if(e)return t[i.f].hostTokens[e]}},71922:function(t,e,n){"use strict";n.d(e,{f:function(){return c},F:function(){return s}});var r=n(4942),i=n(93276),o=n(23919),a=n(57044);function u(t,e){return{cameraEnabledStateToggled:function(){t((function(t){return{streamControls:Object.assign(Object.assign({},t.streamControls),{cameraEnabled:!t.streamControls.cameraEnabled})}}),!1,"cameraEnabledToggled")},microphoneMutedStateToggled:function(){t((function(t){return{streamControls:Object.assign(Object.assign({},t.streamControls),{microphoneMuted:!t.streamControls.microphoneMuted})}}),!1,"microphoneMutedStateToggled")},inviteDismissed:function(){e().streamState===a.u.INVITE_RECEIVED?t({streamState:a.u.NO_INVITE},!1,"inviteDismissed"):(0,o.PN)("You can only dismiss an invitation that was received but not yet accepted.")},inviteAccepted:function(){e().streamState===a.u.INVITE_RECEIVED?t({streamState:a.u.INVITE_ACCEPTED},!1,"inviteAccepted"):(0,o.PN)("You must receive an invitation before accepting it.")},inviteCancelled:function(){e().streamState===a.u.INVITE_ACCEPTED?t({streamState:a.u.INVITE_RECEIVED},!1,"inviteCancelled"):(0,o.PN)("You must accept an invitation before cancelling it.")},inviteDetected:function(){e().streamState===a.u.NO_INVITE?t({streamState:a.u.INVITE_RECEIVED},!1,"inviteDetected"):(0,o.PN)("You must dismiss the existing invitation before receiving a new one")},streamerReady:function(){e().streamState===a.u.INVITE_ACCEPTED?t({streamState:a.u.READY_TO_STREAM},!1,"streamerReady"):(0,o.PN)("You must accept the invitation before getting ready")},streamerUnready:function(){e().streamState===a.u.READY_TO_STREAM?t({streamState:a.u.INVITE_ACCEPTED},!1,"streamerUnready"):(0,o.PN)("You must get ready to stream before you can become unready")},streamStarted:function(n){var i=n.token,u=n.liveStreamId;e().streamState===a.u.READY_TO_STREAM?t((function(t){return{streamState:a.u.STREAMING,hostTokens:Object.assign(Object.assign({},t.hostTokens),(0,r.Z)({},u,i))}}),!1,"streamStarted"):(0,o.PN)("You must get ready to stream before starting the stream")},broughtOffAir:function(n){e().streamState===a.u.STREAMING?t((function(t){var e=Object.assign({},t.hostTokens);return delete e[n],{streamState:a.u.READY_TO_STREAM,hostTokens:e}}),!1,"streamEnded"):(0,o.PN)("You must be streaming before the stream can be brought off air")},removedFromStream:function(e){t((function(t){var n=Object.assign({},t.hostTokens);return delete n[e],{streamState:a.u.NO_INVITE,hostTokens:n}}),!1,"removedFromStream")}}}var c="guestSpeaker";function s(){return(0,r.Z)({},c,(0,i.g8)((function(t,e){return Object.assign(Object.assign({},(0,a.D)()),{actions:u(t,e)})})))}},57044:function(t,e,n){"use strict";var r;function i(){return{hostTokens:{},streamState:r.NO_INVITE,streamControls:{cameraEnabled:!0,microphoneMuted:!1}}}n.d(e,{D:function(){return i},u:function(){return r}}),function(t){t[t.NO_INVITE=0]="NO_INVITE",t[t.INVITE_RECEIVED=1]="INVITE_RECEIVED",t[t.INVITE_ACCEPTED=2]="INVITE_ACCEPTED",t[t.READY_TO_STREAM=3]="READY_TO_STREAM",t[t.STREAMING=4]="STREAMING"}(r||(r={}))},41606:function(t,e,n){"use strict";n.d(e,{oM:function(){return q},pg:function(){return $},pc:function(){return G},wl:function(){return X}});var r=n(1093),i=n(4942),o=n(98661),a=n(35944);o.default.createElement;function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e0&&console.warn("FW Product Builder: Product image is missing required fields: ".concat(t.join(", ")))}}]),t}(),p=n(4942),v=n(30236),h=n.n(v),m=function(){function t(e){void 0===e&&(e=!1),(0,i.Z)(this,t),this.verifyRequiredFields=e,this.images=[],this.unit={id:d(),available:!0,image_ext_id:"",product_ext_id:"",image_id:"",product_id:"",unit_ext_id:"",unit_id:d(),unit_name:"",unit_options:[],unit_original_price:0,unit_original_price_string:"",unit_position:0,unit_price:0,unit_price_string:"",unit_url:""}}return(0,o.Z)(t,[{key:"getImages",value:function(){return this.images}},{key:"ext_id",value:function(t){return console.warn("`ext_id()` is deprecated. Use `extId()` instead."),this.extId(t)}},{key:"extId",value:function(t){return this.unit.unit_ext_id=String(t),this}},{key:"sku",value:function(t){return this}},{key:"name",value:function(t){return this.unit.unit_name=String(t),this}},{key:"url",value:function(t){return this.unit.unit_url="string"==typeof t?t.replace(/^\/\//,"https://"):t,this}},{key:"price",value:function(t){return this.unit.unit_price=Number(t)||0,this.unit.unit_price_string=String(t),this}},{key:"originalPrice",value:function(t){return this.unit.unit_original_price=Number(t)||0,this.unit.unit_original_price_string=String(t),this}},{key:"isAvailable",value:function(t){return this.unit.available=!!t,this}},{key:"image",value:function(t){var e=new f;t(e);var n=e.build();return n.unit_ids=[this.unit.unit_id],n.unit_ext_ids=[this.unit.unit_ext_id],this.unit.image_id=n.image_id,this.unit.image_ext_id=n.image_ext_id,this.images.push(n),this}},{key:"meta",value:function(t){return this.unit._meta=h()(this.unit._meta||{},t),this}},{key:"option",value:function(t){var e=t.name,n=t.value;return this.unit.unit_options=[Object.assign(Object.assign({},this.unit.unit_options[0]),(0,p.Z)({},e,n))],this}},{key:"build",value:function(){return this.validate(),this.unit}},{key:"validate",value:function(){var t=[];this.unit.unit_ext_id||t.push("extId"),this.verifyRequiredFields&&(this.unit.unit_url||t.push("url"),this.unit.unit_price||t.push("price")),t.length>0&&console.warn("FW Product Builder: Product variant is missing required fields: ".concat(t.join(", ")))}}]),t}(),g=function(){function t(e){void 0===e&&(e=!1),(0,i.Z)(this,t),this.verifyRequiredFields=e,this.product={business_store_id:0,business_store_name:"",business_store_uid:"",id:d(),product_currency:"",product_currency_symbol:"",product_description:"",product_subtitle:"",product_handle:"",product_hide_price:!1,product_id:d(),product_ext_id:"",product_images:[],product_name:"",product_options:[],product_shipping:"",selected_product_unit_id:"",product_units:[],vendor_id:"",vendor_name:"",payment_providers:[],payment_settings:{checkout_features:{coupons:!1}}}}return(0,o.Z)(t,[{key:"ext_id",value:function(t){return console.warn("FW Product Builder: `ext_id` is deprecated. Use `extId` instead."),this.extId(t)}},{key:"extId",value:function(t){return this.product.product_ext_id=String(t),this}},{key:"name",value:function(t){return this.product.product_name=t,this}},{key:"description",value:function(t){return this.product.product_description=t,this}},{key:"subtitle",value:function(t){return this.product.product_subtitle=t,this}},{key:"currency",value:function(t){return this.product.product_currency=t,this}},{key:"variant",value:function(t){var e,n,i=new m(this.verifyRequiredFields);t(i);var o=i.build();(e=this.product.product_images).push.apply(e,(0,r.Z)(i.getImages())),o.product_id=this.product.product_id,o.product_ext_id=this.product.product_ext_id,this.product.product_units=null!==(n=this.product.product_units)&&void 0!==n?n:[];var a=this.product.product_units.findIndex((function(t){return t.unit_ext_id===o.unit_ext_id}));return-1!==a?this.product.product_units[a]=Object.assign(Object.assign({},this.product.product_units[a]),o):this.product.product_units.push(o),this}},{key:"image",value:function(t){var e=new f;return t(e),this.product.product_images.push(e.build()),this}},{key:"build",value:function(){return this.validate(),this.product.product_options=s()(u()(this.product.product_units.map((function(t){return t.unit_options[0]})).filter(Boolean).map((function(t){return Object.keys(t)})))),this.product.product_ext_id||(this.product.product_ext_id=d()),this.product}},{key:"validate",value:function(){var t=[];this.product.product_ext_id||t.push("extId"),this.verifyRequiredFields&&(this.product.product_name||t.push("name"),this.product.product_description||t.push("description"),this.product.product_currency||t.push("currency"),this.product.product_units.length||t.push("variant")),t.length>0&&console.warn("FW Product Builder: Product is missing required fields: ".concat(t.join(", ")))}}]),t}(),y=function(t,e){var n=new g(e);return t(n),n.build()}},5533:function(t,e,n){"use strict";n.d(e,{$h:function(){return v},IH:function(){return p},ZF:function(){return s},jO:function(){return f}});var r=n(89062),i=n(30236),o=n.n(i),a=n(44908),u=n.n(a),c=n(38576),s=function(t){return t.map((function(t){var e=String(t.product_id),n=String(t.product_ext_id||t.product_id),r=t.product_images.map((function(t){return Object.assign(Object.assign({},t),{image_id:String(t.image_id),image_ext_id:String(t.image_ext_id||t.image_id),unit_ids:t.unit_ids?t.unit_ids.map(String):[],unit_ext_ids:t.unit_ext_ids?t.unit_ext_ids.map(String):[]})})),i=t.product_units.map((function(t){var i=String(t.unit_ext_id||t.unit_id),o=r.find((function(e){return String(e.image_id)===String(t.image_id)}));return Object.assign(Object.assign({},t),{unit_id:String(t.unit_id),unit_ext_id:i,product_id:e,product_ext_id:n,image_id:o?String(t.image_id):"",image_ext_id:o?String((null==o?void 0:o.image_ext_id)||(null==o?void 0:o.image_id)):""})}));return Object.assign(Object.assign({},t),{product_id:e,product_ext_id:n,product_images:r,product_units:(0,c.F)(i,r)})}))},l=function(t,e,n){if(n&&t&&(!e||(null==e?void 0:e.startsWith)&&e.startsWith("__")))return t},d=function(t,e,n){var i={product_images:["image_ext_id"],product_units:["unit_ext_id"]}[n];if(i){var a=t.reduce((function(t,e){var n=i.map((function(t){return e[t]})).filter(Boolean)[0];return n&&(t[String(n)]=e),t}),{}),c=e.reduce((function(t,e){var n=i.map((function(t){return e[t]})).filter(Boolean)[0];return n&&(t[String(n)]=e),t}),{}),s=u()([].concat((0,r.Z)(Object.keys(a)),(0,r.Z)(Object.keys(c)))).map((function(t){return o()({},a[t]||{},c[t]||{},l)}));return"product_units"===n?s.map((function(t){return Object.assign(Object.assign({},t),{unit_options:c[t.unit_ext_id]&&c[t.unit_ext_id].unit_options.length?c[t.unit_ext_id].unit_options:a[t.unit_ext_id]?a[t.unit_ext_id].unit_options:[]})})):s}return l(t,e,n)},f=function(t,e){return t.map((function(t){var n,r,i=e[t.product_ext_id];return i?(n=t,r=i,o()({id:"",business_store_id:0,business_store_name:"",business_store_uid:"",product_currency:"",product_currency_symbol:"",product_description:"",product_subtitle:"",product_id:"",product_ext_id:"",product_handle:"",product_hide_price:!1,product_images:[],product_name:"",product_options:[],product_shipping:"",selected_product_unit_id:"",product_units:[],vendor_id:"",vendor_name:"",payment_providers:[],payment_settings:{checkout_features:{coupons:!1}}},n||{},r||{},d)):t}))},p=function(t){return t.length?t.sort((function(t,e){return t.unit_position-e.unit_position}))[0]:null},v=function(t,e){var n;return e?e.unit_url:t?null===(n=null==t?void 0:t.product_units[0])||void 0===n?void 0:n.unit_url:""}},38576:function(t,e,n){"use strict";n.d(e,{F:function(){return r}});var r=function(t,e){return t.map((function(t){var n={};e.forEach((function(e){e.unit_ids.includes(t.unit_id)&&(n[e.image_id]=e)}));var r=Object.values(n).sort((function(t,e){return t.image_position-e.image_position}));return Object.assign(Object.assign({},t),{unit_images:r})}))}},83238:function(t,e,n){"use strict";n.d(e,{$Pp:function(){return S},$b4:function(){return o},A$Y:function(){return g},AAF:function(){return Y},AAp:function(){return te},ACB:function(){return dn},AE9:function(){return gn},AG5:function(){return En},Ac6:function(){return rt},Ac8:function(){return a},Ae6:function(){return vt},AjF:function(){return R},AjK:function(){return St},B39:function(){return Le},B74:function(){return Bt},B7C:function(){return un},Bpu:function(){return xe},C56:function(){return X},CVX:function(){return ot},DKG:function(){return F},DjF:function(){return ht},DtF:function(){return je},EL4:function(){return Ge},EWK:function(){return qe},E_N:function(){return ln},F$Z:function(){return w},FIi:function(){return _t},FOT:function(){return Ie},GHt:function(){return D},IAk:function(){return de},ILv:function(){return xn},IPq:function(){return ee},IVY:function(){return bn},Ig_:function(){return Ot},K5$:function(){return Lt},K65:function(){return m},Kf9:function(){return le},KiH:function(){return G},Kp3:function(){return st},LE6:function(){return me},LVB:function(){return sn},L_e:function(){return _n},Lhq:function(){return W},M18:function(){return mn},MIY:function(){return zt},Mn7:function(){return Qe},N$D:function(){return kt},O29:function(){return f},OUM:function(){return xt},Oh5:function(){return mt},OtY:function(){return jt},PVn:function(){return oe},PdE:function(){return on},PpP:function(){return Xt},QNG:function(){return pt},QYs:function(){return $e},Qcu:function(){return d},Qfb:function(){return M},Qo5:function(){return et},RBn:function(){return C},RMj:function(){return ie},Rcv:function(){return _},Rql:function(){return Ae},Rw6:function(){return Fe},Ryd:function(){return v},Sp4:function(){return Nt},Szr:function(){return j},T_f:function(){return ye},TtW:function(){return $t},U3f:function(){return He},UGi:function(){return Ye},V3z:function(){return O},VKj:function(){return k},VkP:function(){return b},VmZ:function(){return wt},VtU:function(){return _e},WUW:function(){return ae},W_5:function(){return ft},WjQ:function(){return i},Wq5:function(){return y},Xby:function(){return At},XmZ:function(){return Je},YWL:function(){return Te},Yly:function(){return Qt},Z5X:function(){return $},Z8R:function(){return Ke},ZPp:function(){return h},Zzh:function(){return Zt},_1C:function(){return N},_4Z:function(){return On},_ho:function(){return Ne},_lH:function(){return be},_qj:function(){return z},_yN:function(){return wn},a1B:function(){return J},aAz:function(){return bt},aSe:function(){return We},agh:function(){return en},ais:function(){return I},aj4:function(){return Ct},apj:function(){return an},axT:function(){return se},bZM:function(){return Ut},bnd:function(){return De},cH6:function(){return Dt},cOv:function(){return Oe},co0:function(){return rn},du1:function(){return Kt},dxK:function(){return dt},dzh:function(){return it},eXV:function(){return Gt},ed_:function(){return ce},fYl:function(){return qt},fgz:function(){return re},gFY:function(){return yt},gbm:function(){return ke},h3:function(){return cn},hET:function(){return Tt},hIv:function(){return lt},iBp:function(){return pe},iI9:function(){return ne},ip9:function(){return Ue},iwd:function(){return Ht},jRw:function(){return tn},j_k:function(){return s},kQ$:function(){return Rt},kcM:function(){return at},l2X:function(){return ve},lGy:function(){return Vt},lg8:function(){return gt},mEQ:function(){return L},mes:function(){return Mt},mfs:function(){return It},nMH:function(){return ue},nk8:function(){return Yt},nmC:function(){return Wt},nsI:function(){return B},nxP:function(){return ze},oMK:function(){return U},oTz:function(){return u},odv:function(){return r},pF7:function(){return T},puM:function(){return ct},qAc:function(){return c},qE8:function(){return V},qKL:function(){return Q},qam:function(){return Pt},qw:function(){return pn},rTJ:function(){return we},s$P:function(){return nn},s5p:function(){return ge},sHf:function(){return Xe},sJN:function(){return Ze},snK:function(){return Ce},t1:function(){return yn},t1_:function(){return K},tCe:function(){return nt},tbN:function(){return tt},tvN:function(){return q},u$k:function(){return x},uH7:function(){return Jt},uIV:function(){return he},ubE:function(){return p},uor:function(){return E},upF:function(){return fe},v1b:function(){return Re},vYC:function(){return H},vm3:function(){return hn},w_u:function(){return ut},ww3:function(){return l},xUE:function(){return Ft},xUX:function(){return A},xeE:function(){return Pe},xzA:function(){return Et},y0n:function(){return Z},yCN:function(){return Ee},yK0:function(){return Be},yWC:function(){return Se},yg9:function(){return fn},z0A:function(){return P},zBN:function(){return Me},zIX:function(){return vn},zPb:function(){return Ve}});var r="add-to-cart-button",i="add-to-calendar",o="agora-video-container",a="agora-video-player",u="agora-text-cues-wrapper",c="buy-now-btn",s="camera-button-off",l="camera-button-on",d="cart-button",f="cart-item-container",p="cart-item-decrease-button",v="cart-item-increase-button",h="cart-item-remove-button",m="cart-item-quantity-input",g="emoji-buttons",y="chat-username",_="chat-message-text",b="moderator-username",w="viewer-username",O="viewer-message-text",E="moderator-replied-text",x="close-player-button",S="confirm-wrapper",j="confirm-primary-btn",k="confirm-secondary-btn",C="cy-copy-link",P="copy-link-img",T="copy-link-label",I="coupon-code-input",A="coupon-code-apply",R="coupon-code-remove",N="chat-input",D="checkout-button",Z="continue-shopping-button",L="checkout-complete-view-order-button",M="checkout-complete-dismiss-button",U="checkout-order-btn",F="checkout-order-info-text",V="checkout-order-summary-subtotal",H="checkout-order-summary-shipping",z="checkout-order-summary-tax",W="checkout-order-summary-order-total",Y="checkout-your-info-view-done-button",B="checkout-order-summary-order-item",$="checkout-order-summary-item-name",G="checkout-order-summary-item-price",X="checkout-order-summary-item-qty",q="checkout-order-summary-item-unit",J="checkout-order-edit-button",K="checkout-order-add-button",Q="checkout-order-edit-confirm-button",tt="checkout-order-edit-dismiss-button",et="checkout-order-edit-dismiss-confirm-button",nt="checkout-order-edit-dismiss-cancel-button",rt="checkout-order-canceled-description",it="checkout-order-canceled-ok-button",ot="checkout-order-qty-input",at="checkout-order-inc-qty-button",ut="checkout-order-dec-qty-button",ct="ctaButton",st="ctaButton-auto",lt="embed-in-email-button",dt="error-content-img",ft="error-content-description",pt="error-content-dismiss-ok-button",vt="share-button",ht="share-timestamp-input",mt="close-share-button",gt="fullscreen-button",yt="guestSpeakerLoader",_t="hero-unit-wrapper",bt="hero-unit-text-content-wrapper",wt="hero-unit-event-title",Ot="hero-unit-event-scheduled-date",Et="hero-unit-watch-now-button",xt="hero-unit-secondary-promo-button",St="hero-unit-share-button",jt="hero-unit-share-cancel-button",kt="hero-unit-share-options",Ct="hero-unit-add-to-calendar-button",Pt="hero-unit-add-to-calendar-cancel-button",Tt="hero-unit-countdown",It="interactive-video-container",At="interactive-video-prompt",Rt="interactive-video-choice",Nt="inviteNotificationFoldBtn",Dt="inviteNotificationDismissBtn",Zt="inviteNotificationAcceptBtn",Lt="livestream-enter-stream-cta",Mt="livestream-hour-countdown",Ut="livestream-product-list-item",Ft="livestream-product-list-item-product-name",Vt="microphone-button-muted",Ht="microphone-button-unmuted",zt="modal-backdrop",Wt="minimize-player-button",Yt="modal-cancel-button",Bt="next-productcard-button",$t="product-detail-color-button",Gt="product-detail-color-button-show-hide",Xt="post-button",qt="next-videos",Jt="prev-videos",Kt="next-videos-tile",Qt="previous-productcard-button",te="product-card",ee="product-price-label",ne="unit-price-label",re="product-card-item-name",ie="product-card-item-unit-name",oe="product-card-item-img",ae="product-card-item-price",ue="product-detail",ce="product-detail-item-name",se="product-detail-item-unit-name",le="product-detail-color-value",de="product-detail-item-price",fe="product-detail-quantity-picker",pe="product-detail-sold-out-button",ve="product-detail-subtitle",he="product-detail-head-image",me="product-detail-item-description",ge="product-detail-item-description-title",ye="product-detail-more-button",_e="product-detail-footer",be="product-detail-footer-wrapper",we="product-detail-warning",Oe="product-list-item",Ee="product-list-item-v2",xe="prompt-modal-cancel-button",Se="prompt-modal-input",je="prompt-modal-save-button",ke="qr-code-text-msg",Ce="qr-code-image",Pe="ready-to-stream-waiting-for-host-to-bring-on-air-message",Te="ready-to-stream-notification-fold-btn",Ie="ready-to-stream-unready-btn",Ae="rename-button",Re="shopping-bag-button",Ne="right-wing-cart-button",De="sb-interaction-question-input",Ze="sb-interaction-question-button",Le="setting-dropdown-btn",Me="setting-dropdown-option",Ue="setting-dropdown-label",Fe="shop-now-btn",Ve="shop-pay-btn",He="paypal-btn",ze="paypal-btn-blocker-div",We="spinner",Ye="stream-setting-button",Be="stream-setting-modal",$e="setting-dialog-close-btn",Ge="stream-setting-username",Xe="stream-setting-username-edit-button",qe="stream-setting-ready-button",Je="stream-setting-cancel-button",Ke="switch-camera-button",Qe="tap-to-unmute",tn="toggle-qr-code-button",en="vtt-text-cues",nn="video-play-time",rn="video-duration",on="back-button",an="close-button",un="rename-modal",cn="chip-icon",sn="product-index",ln="email-embed-copy-button",dn="order-banner",fn="order-summary-discount-line-item",pn="shipping-disclaimer-text",vn="checkout-shipping-next-button",hn="playlist-thumbnail",mn="product-image-carousel",gn="thumbnail-container",yn="lead-gen-first-name-input",_n="lead-gen-last-name-input",bn="lead-gen-email-address-input",wn="lead-gen-company-name-input",On="lead-gen-gift-select",En="lead-gen-form-submit-btn",xn="lead-gen-form-error-message"},21591:function(t,e,n){"use strict";n.d(e,{DO:function(){return O},Fx:function(){return s},Gr:function(){return g},IS:function(){return x},LD:function(){return E},LK:function(){return y},TS:function(){return b},Ue:function(){return c},Z_:function(){return _},_n:function(){return i},aE:function(){return v},cc:function(){return o},dm:function(){return d},jV:function(){return f},lV:function(){return h},mR:function(){return j},mc:function(){return m},rE:function(){return S},sp:function(){return u},v:function(){return p},vR:function(){return l},xg:function(){return w},yw:function(){return a}});var r=n(27026),i={url:"/trk/engagement:click_email_embed",isUserEngagement:!0,consent:r.yN.Essential},o={url:"/trk/engagement:click_cta",isUserEngagement:!0,consent:r.yN.Essential},a={url:"/trk/engagement:create_cta_impression",isUserEngagement:!1,consent:r.yN.Essential},u={url:"/trk/engagement:interactable_engaged_view",isUserEngagement:!1,consent:r.yN.Essential},c={url:"/trk/engagement:submit_poll_response",isUserEngagement:!0,consent:r.yN.Essential},s={url:"/trk/engagement:submit_question_response",isUserEngagement:!0,consent:r.yN.Essential},l={url:"/trk/feed:click_video",isUserEngagement:!1,consent:r.yN.Essential},d={url:"/trk/feed:create_redirect_fullscreen_impression",isUserEngagement:!1,consent:r.yN.Essential},f={url:"/trk/engagement:click_share_video",isUserEngagement:!0,consent:r.yN.Essential},p={url:"/trk/engagement:share_video",isUserEngagement:!0,consent:r.yN.Essential},v={url:"/trk/engagement:click_qrcode_toggle",isUserEngagement:!0,consent:r.yN.Essential},h={url:"/trk/video_player:click_pause",isUserEngagement:!1,consent:r.yN.Essential},m={url:"/trk/video_player:click_resume",isUserEngagement:!1,consent:r.yN.Essential},g={url:"/trk/video_player:dismiss",isUserEngagement:!1,consent:r.yN.Essential},y={url:"/trk/video_player:mute",isUserEngagement:!1,consent:r.yN.Essential},_={url:"/trk/video_player:next_video",isUserEngagement:!1,consent:r.yN.Essential},b={url:"/trk/video_player:prev_video",isUserEngagement:!1,consent:r.yN.Essential},w={url:"/trk/video_player:start_video",isUserEngagement:!1,consent:r.yN.Essential},O={url:"/trk/video_player:unmute",isUserEngagement:!1,consent:r.yN.Essential},E={url:"/trk/video_player:init",isUserEngagement:!1,consent:r.yN.Essential},x={url:"/trk/video_player:pip_enter",isUserEngagement:!1,consent:r.yN.Essential},S={url:"/trk/video_player:pip_exit",isUserEngagement:!1,consent:r.yN.Essential},j={url:"/trk/video_player:pip_failed",isUserEngagement:!1,consent:r.yN.Essential}},50818:function(t,e,n){"use strict";n.d(e,{NO:function(){return i.N},sp:function(){return r.sp},xg:function(){return r.xg}});var r=n(21591),i=n(85604)},85604:function(t,e,n){"use strict";n.d(e,{N:function(){return u}});var r=n(92906),i=n(82071),o=n(89213),a=n(21591),u=function(t){var e=t.params,n=t.getPlayerNestedTrackingPayload,u=function(t){(0,i.jl)(Object.assign(Object.assign({},t),{host:null==e?void 0:e.api_host_tracking}))};return{trackPlayerClose:function(t){var e=t.video,i=t.dismissAction;if(e){var o=e.encoded_id,c=e.variant;u({endpoint:a.Gr,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{dismiss_action:i,variant:c,_video_id:o}))}})}},trackPlayerClickPause:function(t){var e=t.variant,i=t.videoId;u({endpoint:a.lV,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{variant:e,_video_id:i}))}})},trackPlayerClickResume:function(t){var e=t.variant,i=t.videoId;u({endpoint:a.mc,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{variant:e,_video_id:i}))}})},trackPlayerNextVideo:function(t){var e=t.video,i=t.nextAction;if(null!==e){var o=e.encoded_id,c=e.variant;u({endpoint:a.Z_,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{next_action:i,variant:c,_video_id:o}))}})}},trackPlayerPrevVideo:function(t){var e=t.video,i=t.prevAction;if(null!==e){var o=e.encoded_id,c=e.variant;u({endpoint:a.TS,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{prev_action:i,variant:c,_video_id:o}))}})}},trackMute:function(t){var e=t.video,i=null!=e?e:{},o=i.encoded_id,c=i.variant;u({endpoint:a.LK,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{variant:c,_video_id:o}))}})},trackUnmute:function(t){var e=t.video,i=null!=e?e:{},o=i.encoded_id,c=i.variant;u({endpoint:a.DO,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{variant:c,_video_id:o}))}})},trackCTAAction:function(t){var e=t.video,i=t.flowLinkId;u({endpoint:a.cc,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{action_type:null==e?void 0:e.action_type,action_url:null==e?void 0:e.action_url,_video_id:null==e?void 0:e.encoded_id,_flow_link_id:i||void 0}))}})},trackMinimizedPlayerClick:function(t){var i=t.video;return u({endpoint:a.vR,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{ad_id:null==i?void 0:i.ad_id,autoplay:null==e?void 0:e.autoplay,canonical_url:null==i?void 0:i.canonical_url,variant:null==i?void 0:i.variant,_video_id:null==i?void 0:i.encoded_id}))}}),(0,o.V)({type:o.t.FW_VIDEO_CLICK_VIDEO,params:e,data:{video:i}}),{}},trackRedirectFullscreenImpression:function(t){var e=t.video,i=null!=e?e:{},o=i.encoded_id,c=i.variant;u({endpoint:a.dm,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{variant:c,_video_id:o}))}})},trackSubmitPollResponse:function(t){var e=t.video,i=t.interaction,o=t.answer,c=t.flowLinkId,s=null!=e?e:{},l=s.encoded_id,d=s.variant;u({endpoint:a.Ue,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{variant:d,interactive_interaction_response:o,_interactive_interaction_id:null==i?void 0:i.id,_video_id:l,_flow_link_id:c||void 0}))}})},trackSubmitQuestionResponse:function(t,e){void 0===e&&(e=!1);var i=t.video,o=t.interaction,c=t.answer,s=t.flowLinkId,l=null!=i?i:{},d=l.encoded_id,f=l.variant;u({endpoint:a.Fx,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{variant:f,email_supplied:e,email_required:"required"===(null==o?void 0:o.collect_email),interactive_interaction_response:c,_interactive_interaction_id:null==o?void 0:o.id,_video_id:d,_flow_link_id:s||void 0}))}})},trackInteractableEngagement:function(t){var e=t.video,i=null!=e?e:{},o=i.encoded_id,c=i.variant;u({endpoint:a.sp,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{variant:c,_video_id:o}))}})},trackPlayerInit:function(){u({endpoint:a.LD,data:{event_properties:(0,r.E)(Object.assign({},n()))}})},trackInteractiveVideoClick:function(t){var e=t.video,i=t.flowLink;u({endpoint:a.cc,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{action_type:"flow_interaction",_flow_link_id:i.id,_video_id:null==e?void 0:e.encoded_id}))}})}}}},84692:function(t,e,n){"use strict";function r(){var t=("undefined"!=typeof window?window.screen:{width:0}).width;return!t||t<414}n.d(e,{q:function(){return r}})},97256:function(t,e,n){"use strict";n.d(e,{E:function(){return i}});var r=n(84692);function i(t,e){return t>500&&e>500&&!(0,r.q)()}},49226:function(t,e,n){"use strict";n.d(e,{Y:function(){return r}});var r=function(t,e){return Math.min(Math.min(1,Math.max(.75,t/375)),Math.min(1,Math.max(.75,e/375)))}},51043:function(t,e,n){"use strict";function r(t){return!!t}n.d(e,{m:function(){return i}});var i=function(t){return t.filter(r)}},71815:function(t,e,n){"use strict";n.d(e,{a:function(){return r}});var r=function(t){try{var e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(window.atob(e).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(n)}catch(t){return null}}},54039:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e=e?t:""+Array(e+1-r.length).join(n)+t},v={s:p,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+p(r,2,"0")+":"+p(i,2,"0")},m:function t(e,n){if(e.date(){if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[t];const n=t.indexOf(e);return-1===n?[t]:[t.slice(0,n),t.slice(n+e.length)]},p=function(t,e){for(var n={},r=Object.keys(t),i=Array.isArray(e),o=0;o`%${t.charCodeAt(0).toString(16).toUpperCase()}`)):encodeURIComponent(t):t}function i(t,e){return e.decode?d(t):t}function o(t){return Array.isArray(t)?t.sort():"object"==typeof t?o(Object.keys(t)).sort(((t,e)=>Number(t)-Number(e))).map((e=>t[e])):t}function a(t){const e=t.indexOf("#");return-1!==e&&(t=t.slice(0,e)),t}function u(t){const e=(t=a(t)).indexOf("?");return-1===e?"":t.slice(e+1)}function c(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):!e.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}function s(t,e){n((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const r=function(t){let e;switch(t.arrayFormat){case"index":return(t,n,r)=>{e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===r[t]&&(r[t]={}),r[t][e[1]]=n):r[t]=n};case"bracket":return(t,n,r)=>{e=/(\[\])$/.exec(t),r[t=t.replace(/\[\]$/,"")]=e?void 0!==r[t]?[].concat(r[t],n):[n]:n};case"comma":case"separator":return(e,n,r)=>{const o="string"==typeof n&&n.includes(t.arrayFormatSeparator),a="string"==typeof n&&!o&&i(n,t).includes(t.arrayFormatSeparator);n=a?i(n,t):n;const u=o||a?n.split(t.arrayFormatSeparator).map((e=>i(e,t))):null===n?n:i(n,t);r[e]=u};default:return(t,e,n)=>{n[t]=void 0!==n[t]?[].concat(n[t],e):e}}}(e),a=Object.create(null);if("string"!=typeof t)return a;if(!(t=t.trim().replace(/^[?#&]/,"")))return a;for(const n of t.split("&")){if(""===n)continue;let[t,o]=f(e.decode?n.replace(/\+/g," "):n,"=");o=void 0===o?null:["comma","separator"].includes(e.arrayFormat)?o:i(o,e),r(i(t,e),o,a)}for(const t of Object.keys(a)){const n=a[t];if("object"==typeof n&&null!==n)for(const t of Object.keys(n))n[t]=c(n[t],e);else a[t]=c(n,e)}return!1===e.sort?a:(!0===e.sort?Object.keys(a).sort():Object.keys(a).sort(e.sort)).reduce(((t,e)=>{const n=a[e];return t[e]=Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?o(n):n,t}),Object.create(null))}e.extract=u,e.parse=s,e.stringify=(t,e)=>{if(!t)return"";n((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const i=n=>e.skipNull&&null==t[n]||e.skipEmptyString&&""===t[n],o=function(t){switch(t.arrayFormat){case"index":return e=>(n,i)=>{const o=n.length;return void 0===i||t.skipNull&&null===i||t.skipEmptyString&&""===i?n:null===i?[...n,[r(e,t),"[",o,"]"].join("")]:[...n,[r(e,t),"[",r(o,t),"]=",r(i,t)].join("")]};case"bracket":return e=>(n,i)=>void 0===i||t.skipNull&&null===i||t.skipEmptyString&&""===i?n:null===i?[...n,[r(e,t),"[]"].join("")]:[...n,[r(e,t),"[]=",r(i,t)].join("")];case"comma":case"separator":return e=>(n,i)=>null==i||0===i.length?n:0===n.length?[[r(e,t),"=",r(i,t)].join("")]:[[n,r(i,t)].join(t.arrayFormatSeparator)];default:return e=>(n,i)=>void 0===i||t.skipNull&&null===i||t.skipEmptyString&&""===i?n:null===i?[...n,r(e,t)]:[...n,[r(e,t),"=",r(i,t)].join("")]}}(e),a={};for(const e of Object.keys(t))i(e)||(a[e]=t[e]);const u=Object.keys(a);return!1!==e.sort&&u.sort(e.sort),u.map((n=>{const i=t[n];return void 0===i?"":null===i?r(n,e):Array.isArray(i)?i.reduce(o(n),[]).join("&"):r(n,e)+"="+r(i,e)})).filter((t=>t.length>0)).join("&")},e.parseUrl=(t,e)=>{e=Object.assign({decode:!0},e);const[n,r]=f(t,"#");return Object.assign({url:n.split("?")[0]||"",query:s(u(t),e)},e&&e.parseFragmentIdentifier&&r?{fragmentIdentifier:i(r,e)}:{})},e.stringifyUrl=(t,n)=>{n=Object.assign({encode:!0,strict:!0},n);const i=a(t.url).split("?")[0]||"",o=e.extract(t.url),u=e.parse(o,{sort:!1}),c=Object.assign(u,t.query);let s=e.stringify(c,n);s&&(s=`?${s}`);let l=function(t){let e="";const n=t.indexOf("#");return-1!==n&&(e=t.slice(n)),e}(t.url);return t.fragmentIdentifier&&(l=`#${r(t.fragmentIdentifier,n)}`),`${i}${s}${l}`},e.pick=(t,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0},r);const{url:i,query:o,fragmentIdentifier:a}=e.parseUrl(t,r);return e.stringifyUrl({url:i,query:p(o,n),fragmentIdentifier:a},r)},e.exclude=(t,n,r)=>{const i=Array.isArray(n)?t=>!n.includes(t):(t,e)=>!n(t,e);return e.pick(t,i,r)}}));const h={dateTimeWithOffset:"YYYY-MM-DD[T]HH:mm:ssZ",dateTimeUTC:"YYYYMMDD[T]HHmmss[Z]",allDay:"YYYYMMDD"};function m({allDay:t,startUtc:e,endUtc:n},r){const i=h[t?"allDay":r];return{start:e.format(i),end:n.format(i)}}o.extend(a);const g=t=>{const{start:e,end:n,duration:i}=t,a=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,["start","end","duration"]),u=o(e).utc(),c=n?o(n).utc():(()=>{if(t.allDay)return u.add(1,"day");if(i&&2==i.length){const t=Number(i[0]);return u.add(t,i[1])}return o().utc()})();return r({},a,{startUtc:u,endUtc:c})},y=t=>{const e=g(t),{start:n,end:r}=m(e,"dateTimeUTC"),i={action:"TEMPLATE",text:e.title,details:e.description,location:e.location,trp:e.busy,dates:n+"/"+r};return e.guests&&e.guests.length&&(i.add=e.guests.join()),`https://calendar.google.com/calendar/render?${v.stringify(i)}`},_=t=>{const e=g(t),{start:n,end:r}=m(e,"dateTimeWithOffset");return`https://outlook.live.com/calendar/0/deeplink/compose?${v.stringify({path:"/calendar/action/compose",rru:"addevent",startdt:n,enddt:r,subject:e.title,body:e.description,location:e.location})}`},b=t=>{const e=g(t),n=(e.description||"").replace(/,/gm,",").replace(/;/gm,";").replace(/\n/gm,"\\n").replace(/(\\n)[\s\t]+/gm,"\\n"),r=(e.location||"").replace(/,/gm,",").replace(/;/gm,";").replace(/\n/gm,"\\n").replace(/(\\n)[\s\t]+/gm,"\\n"),{start:i,end:o}=m(e,"dateTimeUTC");let a="";return[{key:"BEGIN",value:"VCALENDAR"},{key:"VERSION",value:"2.0"},{key:"BEGIN",value:"VEVENT"},{key:"URL",value:e.url},{key:"DTSTART",value:i},{key:"DTEND",value:o},{key:"SUMMARY",value:e.title},{key:"DESCRIPTION",value:n},{key:"LOCATION",value:r},{key:"END",value:"VEVENT"},{key:"END",value:"VCALENDAR"}].forEach((t=>{t.value&&(a+=`${t.key}:${encodeURIComponent(`${t.value}\n`)}`)})),`data:text/calendar;charset=utf8,${a}`}},55602:function(t){t.exports=function(t){const e=t||"undefined"!=typeof window&&window;return!(!e||!e.navigator.userAgent.match(/Chromatic/)&&!e.location.href.match(/chromatic=true/))}},14166:function(t,e,n){"use strict";t.exports=n(80264)((function(t,e){var n="",r=[];if(/^utf-?(8|16)$/i.test(e)||!e)encodeURIComponent(t).replace(/%([0-9A-F]{2})|./g,(function(t,e){r.push(e?parseInt(e,16):t.charCodeAt(0))}));else if("hex"===e)t.replace(/[0-9A-F]{2}/gi,(function(t){r.push(parseInt(t,16))}));else{if("binary"!==e)throw new Error("Invalid inputEncoding supplied");r=t}return r.forEach((function(t){var e=("00"+t.toString(16)).slice(-2);n+=String.fromCharCode("0x"+e)})),btoa(n)}),(function(t,e){var n=Array.prototype.map.call(atob(t),(function(t){return t.charCodeAt(0)}));if("binary"===e)return n;if("hex"===e)return n.map((function(t){return("00"+t.toString(16)).slice(-2)})).join("");if(/^utf-?(8|16)$/i.test(e)||!e)return decodeURIComponent(n.map((function(t){return"%"+("00"+t.toString(16)).slice(-2)})).join(""));throw new Error("Invalid outputEncoding supplied")}))},80264:function(t){"use strict";var e=/[+/=]/g,n=/[-_]/g,r=function(t){return t.replace(e,(function(t){return"="==t?"":"+"==t?"-":"/"==t?"_":void 0}))},i=function(t){return o(t.replace(n,(function(t){return"-"==t?"+":"_"==t?"/":void 0})))},o=function(t){var e=4-t.length%4;return 4!==e&&(t+="====".slice(0,e)),t};t.exports=function(t,e){var n={};return n.originalToUrl=r,n.urlToOriginal=i,n.encode=t,n.decode=e,n.encodeUrl=function(e,n){return r(t(e,n))},n.decodeUrl=function(t,n){return e(i(t),n)},n}},20640:function(t,e,n){"use strict";var r=n(11742),i={"text/plain":"Text","text/html":"Url",default:"Text"};t.exports=function(t,e){var n,o,a,u,c,s,l=!1;e||(e={}),n=e.debug||!1;try{if(a=r(),u=document.createRange(),c=document.getSelection(),(s=document.createElement("span")).textContent=t,s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(r){if(r.stopPropagation(),e.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[e.format]||i.default;window.clipboardData.setData(o,t)}else r.clipboardData.clearData(),r.clipboardData.setData(e.format,t);e.onCopy&&(r.preventDefault(),e.onCopy(r.clipboardData))})),document.body.appendChild(s),u.selectNodeContents(s),c.addRange(u),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),l=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),o=function(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}("message"in e?e.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,t)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(u):c.removeAllRanges()),s&&document.body.removeChild(s),a()}return l}},24262:function(t,e,n){"use strict";function r(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}n.d(e,{Z:function(){return r}})},13882:function(t,e,n){"use strict";function r(t,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}n.d(e,{Z:function(){return r}})},93645:function(t,e,n){"use strict";n.d(e,{u:function(){return i}});var r={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}};function i(t){return t?r[t]:r.trunc}},83946:function(t,e,n){"use strict";function r(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}n.d(e,{Z:function(){return r}})},51820:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(83946),i=n(19013),o=n(13882);function a(t,e){(0,o.Z)(2,arguments);var n=(0,i.Z)(t).getTime(),a=(0,r.Z)(e);return new Date(n+a)}},61973:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(83946),i=n(51820),o=n(13882);function a(t,e){(0,o.Z)(2,arguments);var n=(0,r.Z)(e);return(0,i.Z)(t,1e3*n)}},36948:function(t,e,n){"use strict";n.d(e,{vh:function(){return i},yJ:function(){return r}});Math.pow(10,8);var r=6e4,i=36e5},36094:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=n(24262),i=n(19013),o=n(13882);function a(t){(0,o.Z)(1,arguments);var e=(0,i.Z)(t);return e.setHours(0,0,0,0),e}var u=864e5;function c(t,e){(0,o.Z)(2,arguments);var n=a(t),i=a(e),c=n.getTime()-(0,r.Z)(n),s=i.getTime()-(0,r.Z)(i);return Math.round((c-s)/u)}},76972:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(36948),i=n(59910),o=n(13882),a=n(93645);function u(t,e,n){(0,o.Z)(2,arguments);var u=(0,i.Z)(t,e)/r.vh;return(0,a.u)(null==n?void 0:n.roundingMethod)(u)}},59910:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(19013),i=n(13882);function o(t,e){return(0,i.Z)(2,arguments),(0,r.Z)(t).getTime()-(0,r.Z)(e).getTime()}},66003:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(13882);function i(t,e,n){var i,a;return(0,r.Z)(1,arguments),o(e)?a=e:n=e,new Intl.DateTimeFormat(null===(i=n)||void 0===i?void 0:i.locale,a).format(t)}function o(t){return void 0!==t&&!("locale"in t)}},42699:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(19013),i=n(13882);function o(t,e){(0,i.Z)(2,arguments);var n=(0,r.Z)(t),o=(0,r.Z)(e);return n.getTime()>o.getTime()}},19013:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(13882);function i(t){(0,r.Z)(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"==typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}},8679:function(t,e,n){"use strict";var r=n(21296),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function c(t){return r.isMemo(t)?a:u[t.$$typeof]||i}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var s=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,v=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(v){var i=p(n);i&&i!==v&&t(e,i,r)}var a=l(n);d&&(a=a.concat(d(n)));for(var u=c(e),h=c(n),m=0;m-1}},1196:function(t){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r0&&o(l)?n>1?t(l,n-1,o,a,u):r(u,l):a||(u[u.length]=l)}return u}},28483:function(t,e,n){var r=n(25063)();t.exports=r},97786:function(t,e,n){var r=n(71811),i=n(40327);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&ni?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r=200){var h=e?null:u(t);if(h)return c(h);f=!1,l=a,v=new r}else v=e?[]:p;t:for(;++s1?n[o-1]:void 0,u=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,u&&i(n[0],n[1],u)&&(a=o<3?void 0:a,o=1),e=Object(e);++rl))return!1;var f=c.get(t),p=c.get(e);if(f&&p)return f==e&&p==t;var v=-1,h=!0,m=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++v-1&&t%1==0&&t-1}},54705:function(t,e,n){var r=n(18470);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},24785:function(t,e,n){var r=n(1989),i=n(38407),o=n(57071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},11285:function(t,e,n){var r=n(45050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},96e3:function(t,e,n){var r=n(45050);t.exports=function(t){return r(this,t).get(t)}},49916:function(t,e,n){var r=n(45050);t.exports=function(t){return r(this,t).has(t)}},95265:function(t,e,n){var r=n(45050);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},68776:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},42634:function(t){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},24523:function(t,e,n){var r=n(88306);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},94536:function(t,e,n){var r=n(10852)(Object,"create");t.exports=r},86916:function(t,e,n){var r=n(5569)(Object.keys,Object);t.exports=r},33498:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},31167:function(t,e,n){t=n.nmd(t);var r=n(31957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,u=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},45357:function(t,e,n){var r=n(96874),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,u=i(o.length-e,0),c=Array(u);++a0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},37465:function(t,e,n){var r=n(38407);t.exports=function(){this.__data__=new r,this.size=0}},63779:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},67599:function(t){t.exports=function(t){return this.__data__.get(t)}},44758:function(t){t.exports=function(t){return this.__data__.has(t)}},34309:function(t,e,n){var r=n(38407),i=n(57071),o=n(83369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},42351:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r=e||n<0||m&&t-v>=l}function w(){var t=i();if(b(t))return O(t);f=setTimeout(w,function(t){var n=e-(t-p);return m?u(n,l-(t-v)):n}(t))}function O(t){return f=void 0,g&&c?y(t):(c=s=void 0,d)}function E(){var t=i(),n=b(t);if(c=arguments,s=this,p=t,n){if(void 0===f)return _(p);if(m)return clearTimeout(f),f=setTimeout(w,e),y(p)}return void 0===f&&(f=setTimeout(w,e)),d}return e=o(e)||0,r(n)&&(h=!!n.leading,l=(m="maxWait"in n)?a(o(n.maxWait)||0,e):l,g="trailing"in n?!!n.trailing:g),E.cancel=function(){void 0!==f&&clearTimeout(f),v=0,c=p=s=f=void 0},E.flush=function(){return void 0===f?d:O(i())},E}},77813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},85564:function(t,e,n){var r=n(21078);t.exports=function(t){return(null==t?0:t.length)?r(t,1):[]}},27361:function(t,e,n){var r=n(97786);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},79095:function(t,e,n){var r=n(13),i=n(222);t.exports=function(t,e){return null!=t&&i(t,e,r)}},6557:function(t){t.exports=function(t){return t}},35694:function(t,e,n){var r=n(9454),i=n(37005),o=Object.prototype,a=o.hasOwnProperty,u=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},1469:function(t){var e=Array.isArray;t.exports=e},98612:function(t,e,n){var r=n(23560),i=n(41780);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},29246:function(t,e,n){var r=n(98612),i=n(37005);t.exports=function(t){return i(t)&&r(t)}},51584:function(t,e,n){var r=n(44239),i=n(37005);t.exports=function(t){return!0===t||!1===t||i(t)&&"[object Boolean]"==r(t)}},44144:function(t,e,n){t=n.nmd(t);var r=n(55639),i=n(95062),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,u=a&&a.exports===o?r.Buffer:void 0,c=(u?u.isBuffer:void 0)||i;t.exports=c},41609:function(t,e,n){var r=n(280),i=n(64160),o=n(35694),a=n(1469),u=n(98612),c=n(44144),s=n(25726),l=n(36719),d=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||l(t)||o(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(s(t))return!r(t).length;for(var n in t)if(d.call(t,n))return!1;return!0}},18446:function(t,e,n){var r=n(90939);t.exports=function(t,e){return r(t,e)}},23560:function(t,e,n){var r=n(44239),i=n(13218);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},41780:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},56688:function(t,e,n){var r=n(25588),i=n(7518),o=n(31167),a=o&&o.isMap,u=a?i(a):r;t.exports=u},81763:function(t,e,n){var r=n(44239),i=n(37005);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},13218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},37005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},68630:function(t,e,n){var r=n(44239),i=n(85924),o=n(37005),a=Function.prototype,u=Object.prototype,c=a.toString,s=u.hasOwnProperty,l=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=s.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==l}},72928:function(t,e,n){var r=n(29221),i=n(7518),o=n(31167),a=o&&o.isSet,u=a?i(a):r;t.exports=u},47037:function(t,e,n){var r=n(44239),i=n(1469),o=n(37005);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},33448:function(t,e,n){var r=n(44239),i=n(37005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},36719:function(t,e,n){var r=n(38749),i=n(7518),o=n(31167),a=o&&o.isTypedArray,u=a?i(a):r;t.exports=u},3674:function(t,e,n){var r=n(14636),i=n(280),o=n(98612);t.exports=function(t){return o(t)?r(t):i(t)}},81704:function(t,e,n){var r=n(14636),i=n(10313),o=n(98612);t.exports=function(t){return o(t)?r(t,!0):i(t)}},10928:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},88306:function(t,e,n){var r=n(83369);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},82492:function(t,e,n){var r=n(42980),i=n(21463)((function(t,e,n){r(t,e,n)}));t.exports=i},30236:function(t,e,n){var r=n(42980),i=n(21463)((function(t,e,n,i){r(t,e,n,i)}));t.exports=i},50308:function(t){t.exports=function(){}},7771:function(t,e,n){var r=n(55639);t.exports=function(){return r.Date.now()}},57557:function(t,e,n){var r=n(29932),i=n(85990),o=n(57406),a=n(71811),u=n(98363),c=n(60696),s=n(99021),l=n(46904),d=s((function(t,e){var n={};if(null==t)return n;var s=!1;e=r(e,(function(e){return e=a(e,t),s||(s=e.length>1),e})),u(t,l(t),n),s&&(n=i(n,7,c));for(var d=e.length;d--;)o(n,e[d]);return n}));t.exports=d},39601:function(t,e,n){var r=n(40371),i=n(79152),o=n(15403),a=n(40327);t.exports=function(t){return o(t)?r(a(t)):i(t)}},70479:function(t){t.exports=function(){return[]}},95062:function(t){t.exports=function(){return!1}},62614:function(t,e,n){var r=n(23279),i=n(13218);t.exports=function(t,e,n){var o=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(t,e,{leading:o,maxWait:e,trailing:a})}},14841:function(t,e,n){var r=n(27561),i=n(13218),o=n(33448),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||c.test(t)?s(t.slice(2),n?2:8):a.test(t)?NaN:+t}},59881:function(t,e,n){var r=n(98363),i=n(81704);t.exports=function(t){return r(t,i(t))}},79833:function(t,e,n){var r=n(80531);t.exports=function(t){return null==t?"":r(t)}},44908:function(t,e,n){var r=n(45652);t.exports=function(t){return t&&t.length?r(t):[]}},45578:function(t,e,n){var r=n(67206),i=n(45652);t.exports=function(t,e){return t&&t.length?i(t,r(e,2)):[]}},98661:function(t,e,n){"use strict";n.r(e),n.d(e,{Children:function(){return p},Component:function(){return i.wA},Fragment:function(){return i.HY},PureComponent:function(){return u},StrictMode:function(){return $},Suspense:function(){return m},SuspenseList:function(){return _},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:function(){return M},cloneElement:function(){return H},createContext:function(){return i.kr},createElement:function(){return i.az},createFactory:function(){return F},createPortal:function(){return E},createRef:function(){return i.Vf},findDOMNode:function(){return W},flushSync:function(){return B},forwardRef:function(){return d},hydrate:function(){return P},isValidElement:function(){return V},lazy:function(){return y},memo:function(){return c},render:function(){return C},unmountComponentAtNode:function(){return z},unstable_batchedUpdates:function(){return Y},useCallback:function(){return r.I4},useContext:function(){return r.qp},useDebugValue:function(){return r.Qb},useEffect:function(){return r.d4},useErrorBoundary:function(){return r.cO},useImperativeHandle:function(){return r.aP},useLayoutEffect:function(){return r.bt},useMemo:function(){return r.Ye},useReducer:function(){return r._Y},useRef:function(){return r.sO},useState:function(){return r.eJ},version:function(){return U}});var r=n(30396),i=n(6400);function o(t,e){for(var n in e)t[n]=e[n];return t}function a(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var r in e)if("__source"!==r&&t[r]!==e[r])return!0;return!1}function u(t){this.props=t}function c(t,e){function n(t){var n=this.props.ref,r=n==t.ref;return!r&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!r:a(this.props,t)}function r(e){return this.shouldComponentUpdate=n,(0,i.az)(t,e)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(u.prototype=new i.wA).isPureReactComponent=!0,u.prototype.shouldComponentUpdate=function(t,e){return a(this.props,t)||a(this.state,e)};var s=i.YM.__b;i.YM.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),s&&s(t)};var l="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function d(t){function e(e){var n=o({},e);return delete n.ref,t(n,e.ref||null)}return e.$$typeof=l,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var f=function(t,e){return null==t?null:(0,i.bR)((0,i.bR)(t).map(e))},p={map:f,forEach:f,count:function(t){return t?(0,i.bR)(t).length:0},only:function(t){var e=(0,i.bR)(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:i.bR},v=i.YM.__e;i.YM.__e=function(t,e,n,r){if(t.then)for(var i,o=e;o=o.__;)if((i=o.__c)&&i.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e);v(t,e,n,r)};var h=i.YM.unmount;function m(){this.__u=0,this.t=null,this.__b=null}function g(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function y(t){var e,n,r;function o(o){if(e||(e=t()).then((function(t){n=t.default||t}),(function(t){r=t})),r)throw r;if(!n)throw e;return(0,i.az)(n,o)}return o.displayName="Lazy",o.__f=!0,o}function _(){this.u=null,this.o=null}i.YM.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),h&&h(t)},(m.prototype=new i.wA).__c=function(t,e){var n=e.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=g(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(u):u())};n.__R=a;var u=function(){if(!--r.__u){if(r.state.__e){var t=r.state.__e;r.__v.__k[0]=function t(e,n,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return t(e,n,r)})),e.__c&&e.__c.__P===n&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}(t,t.__c.__P,t.__c.__O)}var e;for(r.setState({__e:r.__b=null});e=r.t.pop();)e.forceUpdate()}},c=!0===e.__h;r.__u++||c||r.setState({__e:r.__b=r.__v.__k[0]}),t.then(a,a)},m.prototype.componentWillUnmount=function(){this.t=[]},m.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function t(e,n,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),e.__c.__H=null),null!=(e=o({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return t(e,n,r)}))),e}(this.__b,n,r.__O=r.__P)}this.__b=null}var a=e.__e&&(0,i.az)(i.HY,null,t.fallback);return a&&(a.__h=null),[(0,i.az)(i.HY,null,e.__e?null:t.children),a]};var b=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(t)}}),(0,i.sY)((0,i.az)(w,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function E(t,e){return(0,i.az)(O,{__v:t,i:e})}(_.prototype=new i.wA).__e=function(t){var e=this,n=g(e.__v),r=e.o.get(t);return r[0]++,function(i){var o=function(){e.props.revealOrder?(r.push(i),b(e,t,r)):i()};n?n(o):o()}},_.prototype.render=function(t){this.u=null,this.o=new Map;var e=(0,i.bR)(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},_.prototype.componentDidUpdate=_.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){b(t,n,e)}))};var x="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,S=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,j="undefined"!=typeof document,k=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t)};function C(t,e,n){return null==e.__k&&(e.textContent=""),(0,i.sY)(t,e),"function"==typeof n&&n(),t?t.__c:null}function P(t,e,n){return(0,i.ZB)(t,e),"function"==typeof n&&n(),t?t.__c:null}i.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(i.wA.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var T=i.YM.event;function I(){}function A(){return this.cancelBubble}function R(){return this.defaultPrevented}i.YM.event=function(t){return T&&(t=T(t)),t.persist=I,t.isPropagationStopped=A,t.isDefaultPrevented=R,t.nativeEvent=t};var N,D={configurable:!0,get:function(){return this.class}},Z=i.YM.vnode;i.YM.vnode=function(t){var e=t.type,n=t.props,r=n;if("string"==typeof e){var o=-1===e.indexOf("-");for(var a in r={},n){var u=n[a];j&&"children"===a&&"noscript"===e||"value"===a&&"defaultValue"in n&&null==u||("defaultValue"===a&&"value"in n&&null==n.value?a="value":"download"===a&&!0===u?u="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+e)&&!k(n.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():o&&S.test(a)?a=a.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===u&&(u=void 0),r[a]=u)}"select"==e&&r.multiple&&Array.isArray(r.value)&&(r.value=(0,i.bR)(n.children).forEach((function(t){t.props.selected=-1!=r.value.indexOf(t.props.value)}))),"select"==e&&null!=r.defaultValue&&(r.value=(0,i.bR)(n.children).forEach((function(t){t.props.selected=r.multiple?-1!=r.defaultValue.indexOf(t.props.value):r.defaultValue==t.props.value}))),t.props=r,n.class!=n.className&&(D.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",D))}t.$$typeof=x,Z&&Z(t)};var L=i.YM.__r;i.YM.__r=function(t){L&&L(t),N=t.__c};var M={ReactCurrentDispatcher:{current:{readContext:function(t){return N.__n[t.__c].props.value}}}},U="17.0.2";function F(t){return i.az.bind(null,t)}function V(t){return!!t&&t.$$typeof===x}function H(t){return V(t)?i.Tm.apply(null,arguments):t}function z(t){return!!t.__k&&((0,i.sY)(null,t),!0)}function W(t){return t&&(t.base||1===t.nodeType&&t)||null}var Y=function(t,e){return t(e)},B=function(t,e){return t(e)},$=i.HY;e.default={useState:r.eJ,useReducer:r._Y,useEffect:r.d4,useLayoutEffect:r.bt,useRef:r.sO,useImperativeHandle:r.aP,useMemo:r.Ye,useCallback:r.I4,useContext:r.qp,useDebugValue:r.Qb,version:"17.0.2",Children:p,render:C,hydrate:P,unmountComponentAtNode:z,createPortal:E,createElement:i.az,createContext:i.kr,createFactory:F,cloneElement:H,createRef:i.Vf,Fragment:i.HY,isValidElement:V,findDOMNode:W,Component:i.wA,PureComponent:u,memo:c,forwardRef:d,flushSync:B,unstable_batchedUpdates:Y,StrictMode:i.HY,Suspense:m,SuspenseList:_,lazy:y,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:M}},6400:function(t,e,n){"use strict";n.d(e,{HY:function(){return y},Tm:function(){return F},Vf:function(){return g},YM:function(){return i},ZB:function(){return U},az:function(){return h},bR:function(){return j},kr:function(){return V},sY:function(){return M},wA:function(){return _}});var r,i,o,a,u,c,s,l={},d=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(t,e){for(var n in e)t[n]=e[n];return t}function v(t){var e=t.parentNode;e&&e.removeChild(t)}function h(t,e,n){var i,o,a,u={};for(a in e)"key"==a?i=e[a]:"ref"==a?o=e[a]:u[a]=e[a];if(arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===u[a]&&(u[a]=t.defaultProps[a]);return m(t,u,i,o,null)}function m(t,e,n,r,a){var u={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=i.vnode&&i.vnode(u),u}function g(){return{current:null}}function y(t){return t.children}function _(t,e){this.props=t,this.context=e}function b(t,e){if(null==e)return t.__?b(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e0?m(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(v=O[f])||v&&h.key==v.key&&h.type===v.type)O[f]=void 0;else for(p=0;p2&&(u.children=arguments.length>3?r.call(arguments,2):n),m(t.type,u,i||t.key,o||t.ref,null)}function V(t,e){var n={__c:e="__cC"+s++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(O)},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}r=d.slice,i={__e:function(t,e,n,r){for(var i,o,a;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(t)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t,r||{}),a=i.__d),a)return i.__E=i}catch(e){t=e}throw t}},o=0,_.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof t&&(t=t(p({},n),this.props)),t&&p(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),O(this))},_.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),O(this))},_.prototype.render=y,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,E.__r=0,s=0},30396:function(t,e,n){"use strict";n.d(e,{I4:function(){return O},Qb:function(){return x},Ye:function(){return w},_Y:function(){return m},aP:function(){return b},bt:function(){return y},cO:function(){return S},d4:function(){return g},eJ:function(){return h},qp:function(){return E},sO:function(){return _}});var r,i,o,a=n(6400),u=0,c=[],s=a.YM.__b,l=a.YM.__r,d=a.YM.diffed,f=a.YM.__c,p=a.YM.unmount;function v(t,e){a.YM.__h&&a.YM.__h(i,t,u||e),u=0;var n=i.__H||(i.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function h(t){return u=1,m(I,t)}function m(t,e,n){var o=v(r++,2);return o.t=t,o.__c||(o.__=[n?n(e):I(void 0,e),function(t){var e=o.t(o.__[0],t);o.__[0]!==e&&(o.__=[e,o.__[1]],o.__c.setState({}))}],o.__c=i),o.__}function g(t,e){var n=v(r++,3);!a.YM.__s&&T(n.__H,e)&&(n.__=t,n.__H=e,i.__H.__h.push(n))}function y(t,e){var n=v(r++,4);!a.YM.__s&&T(n.__H,e)&&(n.__=t,n.__H=e,i.__h.push(n))}function _(t){return u=5,w((function(){return{current:t}}),[])}function b(t,e,n){u=6,y((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==n?n:n.concat(t))}function w(t,e){var n=v(r++,7);return T(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function O(t,e){return u=8,w((function(){return t}),e)}function E(t){var e=i.context[t.__c],n=v(r++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(i)),e.props.value):t.__}function x(t,e){a.YM.useDebugValue&&a.YM.useDebugValue(e?e(t):t)}function S(t){var e=v(r++,10),n=h();return e.__=t,i.componentDidCatch||(i.componentDidCatch=function(t){e.__&&e.__(t),n[1](t)}),[n[0],function(){n[1](void 0)}]}function j(){for(var t;t=c.shift();)if(t.__P)try{t.__H.__h.forEach(C),t.__H.__h.forEach(P),t.__H.__h=[]}catch(e){t.__H.__h=[],a.YM.__e(e,t.__v)}}a.YM.__b=function(t){i=null,s&&s(t)},a.YM.__r=function(t){l&&l(t),r=0;var e=(i=t.__c).__H;e&&(e.__h.forEach(C),e.__h.forEach(P),e.__h=[])},a.YM.diffed=function(t){d&&d(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==c.push(e)&&o===a.YM.requestAnimationFrame||((o=a.YM.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(r),k&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);k&&(e=requestAnimationFrame(n))})(j)),i=null},a.YM.__c=function(t,e){e.some((function(t){try{t.__h.forEach(C),t.__h=t.__h.filter((function(t){return!t.__||P(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],a.YM.__e(n,t.__v)}})),f&&f(t,e)},a.YM.unmount=function(t){p&&p(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{C(t)}catch(t){e=t}})),e&&a.YM.__e(e,n.__v))};var k="function"==typeof requestAnimationFrame;function C(t){var e=i,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),i=e}function P(t){var e=i;t.__c=t.__(),i=e}function T(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function I(t,e){return"function"==typeof e?e(t):e}},16584:function(t,e,n){"use strict";n.d(e,{BX:function(){return o},HY:function(){return r.HY},tZ:function(){return o}});var r=n(6400),i=0;function o(t,e,n,o,a){var u,c,s={};for(c in e)"ref"==c?u=e[c]:s[c]=e[c];var l={type:t,props:s,key:n,ref:u,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--i,__source:a,__self:o};if("function"==typeof t&&(u=t.defaultProps))for(c in u)void 0===s[c]&&(s[c]=u[c]);return r.YM.vnode&&r.YM.vnode(l),l}},57437:function(t,e){"use strict";e.Z=function t(e){function n(t,e,r){var i,o={};if(Array.isArray(t))return t.concat(e);for(i in t)o[r?i.toLowerCase():i]=t[i];for(i in e){var a=r?i.toLowerCase():i,u=e[i];o[a]=a in o&&"object"==typeof u?n(o[a],u,"headers"===a):u}return o}function r(t,r,i,o){"string"!=typeof t&&(t=(r=t).url);var a={config:r},u=n(e,r),c={},s=o||u.data;(u.transformRequest||[]).map((function(t){s=t(s,u.headers)||s})),s&&"object"==typeof s&&"function"!=typeof s.append&&(s=JSON.stringify(s),c["content-type"]="application/json");var l="undefined"!=typeof document&&document.cookie.match(RegExp("(^|; )"+u.xsrfCookieName+"=([^;]*)"));if(l&&(c[u.xsrfHeaderName]=l[2]),u.auth&&(c.authorization=u.auth),u.baseURL&&(t=t.replace(/^(?!.*\/\/)\/?(.*)$/,u.baseURL+"/$1")),u.params){var d=~t.indexOf("?")?"&":"?";t+=d+(u.paramsSerializer?u.paramsSerializer(u.params):new URLSearchParams(u.params))}return(u.fetch||fetch)(t,{method:i||u.method,body:s,headers:n(u.headers,c,!0),credentials:u.withCredentials?"include":"same-origin"}).then((function(t){for(var e in t)"function"!=typeof t[e]&&(a[e]=t[e]);var n=u.validateStatus?u.validateStatus(t.status):t.ok;return"stream"==u.responseType?(a.data=t.body,a):t[u.responseType||"text"]().then((function(t){a.data=t,a.data=JSON.parse(t)})).catch(Object).then((function(){return n?a:Promise.reject(a)}))}))}return e=e||{},r.request=r,r.get=function(t,e){return r(t,e,"get")},r.delete=function(t,e){return r(t,e,"delete")},r.head=function(t,e){return r(t,e,"head")},r.options=function(t,e){return r(t,e,"options")},r.post=function(t,e,n){return r(t,n,"post",e)},r.put=function(t,e,n){return r(t,n,"put",e)},r.patch=function(t,e,n){return r(t,n,"patch",e)},r.all=Promise.all.bind(Promise),r.spread=function(t){return function(e){return t.apply(this,e)}},r.CancelToken="function"==typeof AbortController?AbortController:Object,r.defaults=e,r.create=t,r}()},35666:function(t){var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),a=new C(r||[]);return o._invoke=function(t,e,n){var r=d;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===v){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var u=S(a,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=l(t,e,n);if("normal"===c.type){if(r=n.done?v:f,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=v,n.method="throw",n.arg=c.arg)}}}(t,n,a),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var d="suspendedStart",f="suspendedYield",p="executing",v="completed",h={};function m(){}function g(){}function y(){}var _={};c(_,o,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(P([])));w&&w!==n&&r.call(w,o)&&(_=w);var O=y.prototype=m.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(i,o,a,u){var c=l(t[i],t,o);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==typeof d&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(d).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function S(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var i=l(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,h;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function P(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},11742:function(t){t.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],r=0;r{const i="function"==typeof t?t(e):t;if(i!==e){const t=e;e=r?i:Object.assign({},e,i),n.forEach((n=>n(e,t)))}},i=()=>e,o={setState:r,getState:i,subscribe:(t,r,o)=>r||o?((t,r=i,o=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=r(e);function u(){const n=r(e);if(!o(a,n)){const e=a;t(a=n,e)}}return n.add(u),()=>n.delete(u)})(t,r,o):(n.add(t),()=>n.delete(t)),destroy:()=>n.clear()};return e=t(r,i,o),o}const o="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?r.useEffect:r.useLayoutEffect;function a(t){const e="function"==typeof t?i(t):t,n=(t=e.getState,n=Object.is)=>{const[,i]=(0,r.useReducer)((t=>t+1),0),a=e.getState(),u=(0,r.useRef)(a),c=(0,r.useRef)(t),s=(0,r.useRef)(n),l=(0,r.useRef)(!1),d=(0,r.useRef)();let f;void 0===d.current&&(d.current=t(a));let p=!1;(u.current!==a||c.current!==t||s.current!==n||l.current)&&(f=t(a),p=!n(d.current,f)),o((()=>{p&&(d.current=f),u.current=a,c.current=t,s.current=n,l.current=!1}));const v=(0,r.useRef)(a);o((()=>{const t=()=>{try{const t=e.getState(),n=c.current(t);s.current(d.current,n)||(u.current=t,d.current=n,i())}catch(t){l.current=!0,i()}},n=e.subscribe(t);return e.getState()!==v.current&&t(),n}),[]);const h=p?f:d.current;return(0,r.useDebugValue)(h),h};return Object.assign(n,e),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const t=[n,e];return{next(){const e=t.length<=0;return{value:t.shift(),done:e}}}},n}},38597:function(t,e,n){"use strict";n.d(e,{mW:function(){return r}});Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function r(t,e){return(n,r,o)=>{var a;let u=!1;"string"!=typeof e||u||(console.warn("[zustand devtools middleware]: passing `name` as directly will be not allowed in next majorpass the `name` in an object `{ name: ... }` instead"),u=!0);const c=void 0===e?{name:void 0,anonymousActionType:void 0}:"string"==typeof e?{name:e}:e;let s;void 0!==(null==(a=null==c?void 0:c.serialize)?void 0:a.options)&&console.warn("[zustand devtools middleware]: `serialize.options` is deprecated, just use `serialize`");try{s=window.__REDUX_DEVTOOLS_EXTENSION__||window.top.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!s)return"undefined"!=typeof window&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),t(n,r,o);let l=Object.create(s.connect(c)),d=!1;Object.defineProperty(o,"devtools",{get:()=>(d||(console.warn("[zustand devtools middleware] `devtools` property on the store is deprecated it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),d=!0),l),set:t=>{d||(console.warn("[zustand devtools middleware] `api.devtools` is deprecated, it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),d=!0),l=t}});let f=!1;Object.defineProperty(l,"prefix",{get:()=>(f||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+c.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),f=!0),""),set:()=>{f||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+c.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),f=!0)}});let p=!0;o.setState=(t,e,i)=>{n(t,e),p&&l.send(void 0===i?{type:c.anonymousActionType||"anonymous"}:"string"==typeof i?{type:i}:i,r())};const v=(...t)=>{const e=p;p=!1,n(...t),p=e},h=t(o.setState,r,o);if(l.init(h),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let t=!1;const e=o.dispatch;o.dispatch=(...n)=>{"__setState"!==n[0].type||t||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),t=!0),e(...n)}}return l.subscribe((t=>{var e;switch(t.type){case"ACTION":return"string"!=typeof t.payload?void console.error("[zustand devtools middleware] Unsupported action format"):i(t.payload,(t=>{"__setState"!==t.type?o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(t):v(t.state)}));case"DISPATCH":switch(t.payload.type){case"RESET":return v(h),l.init(o.getState());case"COMMIT":return l.init(o.getState());case"ROLLBACK":return i(t.state,(t=>{v(t),l.init(o.getState())}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return i(t.state,(t=>{v(t)}));case"IMPORT_STATE":{const{nextLiftedState:n}=t.payload,r=null==(e=n.computedStates.slice(-1)[0])?void 0:e.state;if(!r)return;return v(r),void l.send(null,n)}case"PAUSE_RECORDING":return p=!p}return}})),h}}const i=(t,e)=>{let n;try{n=JSON.parse(t)}catch(t){console.error("[zustand devtools middleware] Could not parse the received json",t)}void 0!==n&&e(n)};Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable},60374:function(t,e,n){"use strict";function r(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!1;for(let r=0;r{const i="function"==typeof t?t(e):t;if(i!==e){const t=e;e=r?i:Object.assign({},e,i),n.forEach((n=>n(e,t)))}},i=()=>e,o={setState:r,getState:i,subscribe:(t,r,o)=>r||o?((t,r=i,o=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=r(e);function u(){const n=r(e);if(!o(a,n)){const e=a;t(a=n,e)}}return n.add(u),()=>n.delete(u)})(t,r,o):(n.add(t),()=>n.delete(t)),destroy:()=>n.clear()};return e=t(r,i,o),o}n.d(e,{Z:function(){return r}})},30907:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nnew o(String(t),i)},41747:function(t,e,n){"use strict";n.d(e,{Cb:function(){return i}}); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ const r=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?Object.assign(Object.assign({},e),{finisher(n){n.createProperty(e.key,t)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(n){n.createProperty(e.key,t)}};function i(t){return(e,n)=>void 0!==n?((t,e,n)=>{e.constructor.createProperty(n,t)})(t,e,n):r(t,e)}const o=Element.prototype;o.msMatchesSelector||o.webkitMatchesSelector},54958:function(t,e,n){"use strict";n.d(e,{f4:function(){return c}});var r=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))}; /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */window.JSCompiler_renameProperty=(t,e)=>t;const i={toAttribute(t,e){switch(e){case Boolean:return t?"":null;case Object:case Array:return null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){switch(e){case Boolean:return null!==t;case Number:return null===t?null:Number(t);case Object:case Array:return JSON.parse(t)}return t}},o=(t,e)=>e!==t&&(e==e||t==t),a={attribute:!0,type:String,converter:i,reflect:!1,hasChanged:o},u="finalized";class c extends HTMLElement{constructor(){super(),this.initialize()}static get observedAttributes(){this.finalize();const t=[];return this._classProperties.forEach(((e,n)=>{const r=this._attributeNameForProperty(n,e);void 0!==r&&(this._attributeToPropertyMap.set(r,n),t.push(r))})),t}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const t=Object.getPrototypeOf(this)._classProperties;void 0!==t&&t.forEach(((t,e)=>this._classProperties.set(e,t)))}}static createProperty(t,e=a){if(this._ensureClassProperties(),this._classProperties.set(t,e),e.noAccessor||this.prototype.hasOwnProperty(t))return;const n="symbol"==typeof t?Symbol():`__${t}`,r=this.getPropertyDescriptor(t,n,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}static getPropertyDescriptor(t,e,n){return{get(){return this[e]},set(r){const i=this[t];this[e]=r,this.requestUpdateInternal(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this._classProperties&&this._classProperties.get(t)||a}static finalize(){const t=Object.getPrototypeOf(this);if(t.hasOwnProperty(u)||t.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const t=this.properties,e=[...Object.getOwnPropertyNames(t),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]];for(const n of e)this.createProperty(n,t[n])}}static _attributeNameForProperty(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}static _valueHasChanged(t,e,n=o){return n(t,e)}static _propertyValueFromAttribute(t,e){const n=e.type,r=e.converter||i,o="function"==typeof r?r:r.fromAttribute;return o?o(t,n):t}static _propertyValueToAttribute(t,e){if(void 0===e.reflect)return;const n=e.type,r=e.converter;return(r&&r.toAttribute||i.toAttribute)(t,n)}initialize(){this._updateState=0,this._updatePromise=new Promise((t=>this._enableUpdatingResolver=t)),this._changedProperties=new Map,this._saveInstanceProperties(),this.requestUpdateInternal()}_saveInstanceProperties(){this.constructor._classProperties.forEach(((t,e)=>{if(this.hasOwnProperty(e)){const t=this[e];delete this[e],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(e,t)}}))}_applyInstanceProperties(){this._instanceProperties.forEach(((t,e)=>this[e]=t)),this._instanceProperties=void 0}connectedCallback(){this.enableUpdating()}enableUpdating(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(t,e,n){e!==n&&this._attributeToProperty(t,n)}_propertyToAttribute(t,e,n=a){const r=this.constructor,i=r._attributeNameForProperty(t,n);if(void 0!==i){const t=r._propertyValueToAttribute(e,n);if(void 0===t)return;this._updateState=8|this._updateState,null==t?this.removeAttribute(i):this.setAttribute(i,t),this._updateState=-9&this._updateState}}_attributeToProperty(t,e){if(8&this._updateState)return;const n=this.constructor,r=n._attributeToPropertyMap.get(t);if(void 0!==r){const t=n.getPropertyOptions(r);this._updateState=16|this._updateState,this[r]=n._propertyValueFromAttribute(e,t),this._updateState=-17&this._updateState}}requestUpdateInternal(t,e,n){let r=!0;if(void 0!==t){const i=this.constructor;n=n||i.getPropertyOptions(t),i._valueHasChanged(this[t],e,n.hasChanged)?(this._changedProperties.has(t)||this._changedProperties.set(t,e),!0!==n.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(t,n))):r=!1}!this._hasRequestedUpdate&&r&&(this._updatePromise=this._enqueueUpdate())}requestUpdate(t,e){return this.requestUpdateInternal(t,e),this.updateComplete}_enqueueUpdate(){return r(this,void 0,void 0,(function*(){this._updateState=4|this._updateState;try{yield this._updatePromise}catch(t){}const t=this.performUpdate();return null!=t&&(yield t),!this._hasRequestedUpdate}))}get _hasRequestedUpdate(){return 4&this._updateState}get hasUpdated(){return 1&this._updateState}performUpdate(){if(!this._hasRequestedUpdate)return;this._instanceProperties&&this._applyInstanceProperties();let t=!1;const e=this._changedProperties;try{t=this.shouldUpdate(e),t?this.update(e):this._markUpdated()}catch(e){throw t=!1,this._markUpdated(),e}t&&(1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(e)),this.updated(e))}_markUpdated(){this._changedProperties=new Map,this._updateState=-5&this._updateState}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._updatePromise}shouldUpdate(t){return!0}update(t){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach(((t,e)=>this._propertyToAttribute(e,this[e],t))),this._reflectingProperties=void 0),this._markUpdated()}updated(t){}firstUpdated(t){}}c.finalized=!0},56271:function(t,e,n){"use strict";n.d(e,{Cb:function(){return o.Cb},oi:function(){return c}});var r=n(81005),i=n(54958),o=n(41747),a=(n(59115),n(48170)); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ (window.litElementVersions||(window.litElementVersions=[])).push("2.5.1");const u={};class c extends i.f4{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const t=this.getStyles();if(Array.isArray(t)){const e=(t,n)=>t.reduceRight(((t,n)=>Array.isArray(n)?e(n,t):(t.add(n),t)),n),n=e(t,new Set),r=[];n.forEach((t=>r.unshift(t))),this._styles=r}else this._styles=void 0===t?[]:[t];this._styles=this._styles.map((t=>{if(t instanceof CSSStyleSheet&&!a.FV){const e=Array.prototype.slice.call(t.cssRules).reduce(((t,e)=>t+e.cssText),"");return(0,a.$m)(e)}return t}))}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow(this.constructor.shadowRootOptions)}adoptStyles(){const t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?a.FV?this.renderRoot.adoptedStyleSheets=t.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map((t=>t.cssText)),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(t){const e=this.render();super.update(t),e!==u&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach((t=>{const e=document.createElement("style");e.textContent=t.cssText,this.renderRoot.appendChild(e)})))}render(){return u}}c.finalized=!0,c.render=r.sY,c.shadowRootOptions={mode:"open"}},54732:function(t,e,n){"use strict";var r=n(74349); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */new class{handleAttributeExpressions(t,e,n,i){const o=e[0];if("."===o){return new r.m(t,e.slice(1),n).parts}if("@"===o)return[new r.K1(t,e.slice(1),i.eventContext)];if("?"===o)return[new r.JG(t,e.slice(1),n)];return new r.QG(t,e,n).parts}handleTextExpression(t){return new r.nt(t)}}},91556:function(t,e,n){"use strict";n.d(e,{w:function(){return i}}); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ const r=new WeakMap,i=t=>"function"==typeof t&&r.has(t)},80064:function(t,e,n){"use strict";n.d(e,{eC:function(){return r},r4:function(){return i}}); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ const r="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,i=(t,e,n=null)=>{for(;e!==n;){const n=e.nextSibling;t.removeChild(e),e=n}}},11425:function(t,e,n){"use strict";n.d(e,{$:function(){return i},i:function(){return u}});var r=n(86866); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */function i(t,e){const{element:{content:n},parts:r}=t,i=document.createTreeWalker(n,133,null,!1);let o=a(r),u=r[o],c=-1,s=0;const l=[];let d=null;for(;i.nextNode();){c++;const t=i.currentNode;for(t.previousSibling===d&&(d=null),e.has(t)&&(l.push(t),null===d&&(d=t)),null!==d&&s++;void 0!==u&&u.index===c;)u.index=null!==d?-1:u.index-s,o=a(r,o),u=r[o]}l.forEach((t=>t.parentNode.removeChild(t)))}const o=t=>{let e=11===t.nodeType?0:1;const n=document.createTreeWalker(t,133,null,!1);for(;n.nextNode();)e++;return e},a=(t,e=-1)=>{for(let n=e+1;n0){for(;-1!==c;)i[c].index+=s,c=a(i,c);return}c=a(i,c)}}}},14644:function(t,e,n){"use strict";n.d(e,{J:function(){return r},L:function(){return i}}); /** * @license * Copyright (c) 2018 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ const r={},i={}},74349:function(t,e,n){"use strict";n.d(e,{JG:function(){return v},K1:function(){return y},QG:function(){return d},m:function(){return h},nt:function(){return p}});var r=n(91556),i=n(80064),o=n(14644),a=n(64137),u=n(64159),c=n(86866); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ const s=t=>null===t||!("object"==typeof t||"function"==typeof t),l=t=>Array.isArray(t)||!(!t||!t[Symbol.iterator]);class d{constructor(t,e,n){this.dirty=!0,this.element=t,this.name=e,this.strings=n,this.parts=[];for(let t=0;t{try{const t={get capture(){return g=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}})();class y{constructor(t,e,n){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=n,this.__boundHandleEvent=t=>this.handleEvent(t)}setValue(t){this.__pendingValue=t}commit(){for(;(0,r.w)(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=o.J,t(this)}if(this.__pendingValue===o.J)return;const t=this.__pendingValue,e=this.value,n=null==t||null!=e&&(t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive),i=null!=t&&(null==e||n);n&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),i&&(this.__options=_(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=o.J}handleEvent(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const _=t=>t&&(g?{capture:t.capture,passive:t.passive,once:t.once}:t.capture)},55091:function(t,e,n){"use strict";n.d(e,{L:function(){return a},s:function(){return u}});var r=n(80064),i=n(74349),o=n(46057); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ const a=new WeakMap,u=(t,e,n)=>{let u=a.get(e);void 0===u&&((0,r.r4)(e,e.firstChild),a.set(e,u=new i.nt(Object.assign({templateFactory:o.t},n))),u.appendInto(e)),u.setValue(t),u.commit()}},81005:function(t,e,n){"use strict";n.d(e,{sY:function(){return h}});var r=n(80064),i=n(11425),o=n(55091),a=n(46057),u=n(64137),c=n(86866);n(59115); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ const s=(t,e)=>`${t}--${e}`;let l=!0;void 0===window.ShadyCSS?l=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),l=!1);const d=t=>e=>{const n=s(e.type,t);let r=a.r.get(n);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},a.r.set(n,r));let i=r.stringsArray.get(e.strings);if(void 0!==i)return i;const o=e.strings.join(c.Jw);if(i=r.keyString.get(o),void 0===i){const n=e.getTemplateElement();l&&window.ShadyCSS.prepareTemplateDom(n,t),i=new c.YS(e,n),r.keyString.set(o,i)}return r.stringsArray.set(e.strings,i),i},f=["html","svg"],p=new Set,v=(t,e,n)=>{p.add(t);const r=n?n.element:document.createElement("template"),o=e.querySelectorAll("style"),{length:u}=o;if(0===u)return void window.ShadyCSS.prepareTemplateStyles(r,t);const c=document.createElement("style");for(let t=0;t{f.forEach((e=>{const n=a.r.get(s(e,t));void 0!==n&&n.keyString.forEach((t=>{const{element:{content:e}}=t,n=new Set;Array.from(e.querySelectorAll("style")).forEach((t=>{n.add(t)})),(0,i.$)(t,n)}))}))})(t);const l=r.content;n?(0,i.i)(n,c,l.firstChild):l.insertBefore(c,l.firstChild),window.ShadyCSS.prepareTemplateStyles(r,t);const d=l.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==d)e.insertBefore(d.cloneNode(!0),e.firstChild);else if(n){l.insertBefore(c,l.firstChild);const t=new Set;t.add(c),(0,i.$)(n,t)}},h=(t,e,n)=>{if(!n||"object"!=typeof n||!n.scopeName)throw new Error("The `scopeName` option is required.");const i=n.scopeName,a=o.L.has(e),c=l&&11===e.nodeType&&!!e.host,s=c&&!p.has(i),f=s?document.createDocumentFragment():e;if((0,o.s)(t,f,Object.assign({templateFactory:d(i)},n)),s){const t=o.L.get(f);o.L.delete(f);const n=t.value instanceof u.R?t.value.template:void 0;v(i,f,n),(0,r.r4)(e,e.firstChild),e.appendChild(f),o.L.set(e,t)}!a&&c&&window.ShadyCSS.styleElement(e.host)}},46057:function(t,e,n){"use strict";n.d(e,{r:function(){return o},t:function(){return i}});var r=n(86866); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */function i(t){let e=o.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},o.set(t.type,e));let n=e.stringsArray.get(t.strings);if(void 0!==n)return n;const i=t.strings.join(r.Jw);return n=e.keyString.get(i),void 0===n&&(n=new r.YS(t,t.getTemplateElement()),e.keyString.set(i,n)),e.stringsArray.set(t.strings,n),n}const o=new Map},64137:function(t,e,n){"use strict";n.d(e,{R:function(){return o}});var r=n(80064),i=n(86866); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ class o{constructor(t,e,n){this.__parts=[],this.template=t,this.processor=e,this.options=n}update(t){let e=0;for(const n of this.__parts)void 0!==n&&n.setValue(t[e]),e++;for(const t of this.__parts)void 0!==t&&t.commit()}_clone(){const t=r.eC?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),e=[],n=this.template.parts,o=document.createTreeWalker(t,133,null,!1);let a,u=0,c=0,s=o.nextNode();for(;ut}),o=` ${r.Jw} `;class a{constructor(t,e,n,r){this.strings=t,this.values=e,this.type=n,this.processor=r}getHTML(){const t=this.strings.length-1;let e="",n=!1;for(let i=0;i-1||n)&&-1===t.indexOf("--\x3e",a+1);const u=r.W5.exec(t);e+=null===u?t+(n?o:r.N):t.substr(0,u.index)+u[1]+u[2]+r.$E+u[3]+r.Jw}return e+=this.strings[t],e}getTemplateElement(){const t=document.createElement("template");let e=this.getHTML();return void 0!==i&&(e=i.createHTML(e)),t.innerHTML=e,t}}},86866:function(t,e,n){"use strict";n.d(e,{$E:function(){return a},IW:function(){return l},Jw:function(){return r},N:function(){return i},W5:function(){return d},YS:function(){return u},pC:function(){return s}}); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ const r=`{{lit-${String(Math.random()).slice(2)}}}`,i=`\x3c!--${r}--\x3e`,o=new RegExp(`${r}|${i}`),a="$lit$";class u{constructor(t,e){this.parts=[],this.element=e;const n=[],i=[],u=document.createTreeWalker(e.content,133,null,!1);let s=0,f=-1,p=0;const{strings:v,values:{length:h}}=t;for(;p0;){const e=v[p],n=d.exec(e)[2],r=n.toLowerCase()+a,i=t.getAttribute(r);t.removeAttribute(r);const u=i.split(o);this.parts.push({type:"attribute",index:f,name:n,strings:u}),p+=u.length-1}}"TEMPLATE"===t.tagName&&(i.push(t),u.currentNode=t.content)}else if(3===t.nodeType){const e=t.data;if(e.indexOf(r)>=0){const r=t.parentNode,i=e.split(o),u=i.length-1;for(let e=0;e{const n=t.length-e.length;return n>=0&&t.slice(n)===e},s=t=>-1!==t.index,l=()=>document.createComment(""),d=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/},59115:function(t,e,n){"use strict";n(54732),n(64159),n(91556),n(80064),n(14644),n(74349),n(55091),n(46057),n(64137),n(86866); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ "undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1")},98008:function(t,e,n){"use strict";n.d(e,{Q:function(){return p}});const r=(t,e,n)=>{let r=0;for(;et>10.31475?i(t/c+.052132,2.4):t/u,l=t=>~~(t>1227e-8?c*i(t,.416666)-13.025:t*u+1),d=t=>(t<0?-1:1)*t*t,f=t=>{for(t+=o/2;t>o;)t-=a;const e=1.27323954*t-.405284735*d(t);return.225*(d(e)-e)+e};function p(t,e,n,i){const a=r(t,0,1),u=a%9+1,c=1+~~(a/9),p=u*c,v=(r(t,1,2)+1)/13446*(1|i),h=new Float64Array(3*p);let m=r(t,2,6);h[0]=s(m>>16),h[1]=s(m>>8&255),h[2]=s(255&m);let g=0,y=0,_=0,b=0,w=0,O=0,E=0,x=0,S=0,j=0,k=0,C=0,P=0;for(g=1;g-1&&!t.return)switch(t.type){case r.h5:t.return=(0,u.O)(t.value,t.length);break;case r.lK:return(0,a.q)([(0,o.JG)(t,{value:(0,i.gx)(t.value,"@","@"+r.G$)})],c);case r.Fr:if(t.length)return(0,i.$e)(t.props,(function(e){switch((0,i.EQ)(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,a.q)([(0,o.JG)(t,{props:[(0,i.gx)(e,/:(read-\w+)/,":"+r.uj+"$1")]})],c);case"::placeholder":return(0,a.q)([(0,o.JG)(t,{props:[(0,i.gx)(e,/:(plac\w+)/,":"+r.G$+"input-$1")]}),(0,o.JG)(t,{props:[(0,i.gx)(e,/:(plac\w+)/,":"+r.uj+"$1")]}),(0,o.JG)(t,{props:[(0,i.gx)(e,/:(plac\w+)/,r.MS+"input-$1")]})],c)}return""}))}}},92190:function(t,e,n){"use strict";n.d(e,{MY:function(){return a}});var r=n(27563),i=n(26686),o=n(46411);function a(t){return(0,o.cE)(u("",null,null,null,[""],t=(0,o.un)(t),0,[0],t))}function u(t,e,n,r,a,d,f,p,v){for(var h=0,m=0,g=f,y=0,_=0,b=0,w=1,O=1,E=1,x=0,S="",j=a,k=d,C=r,P=S;O;)switch(b=x,x=(0,o.lp)()){case 40:if(108!=b&&58==P.charCodeAt(g-1)){-1!=(0,i.Cw)(P+=(0,i.gx)((0,o.iF)(x),"&","&\f"),"&\f")&&(E=-1);break}case 34:case 39:case 91:P+=(0,o.iF)(x);break;case 9:case 10:case 13:case 32:P+=(0,o.Qb)(b);break;case 92:P+=(0,o.kq)((0,o.Ud)()-1,7);continue;case 47:switch((0,o.fj)()){case 42:case 47:(0,i.R3)(s((0,o.q6)((0,o.lp)(),(0,o.Ud)()),e,n),v);break;default:P+="/"}break;case 123*w:p[h++]=(0,i.to)(P)*E;case 125*w:case 59:case 0:switch(x){case 0:case 125:O=0;case 59+m:_>0&&(0,i.to)(P)-g&&(0,i.R3)(_>32?l(P+";",r,n,g-1):l((0,i.gx)(P," ","")+";",r,n,g-2),v);break;case 59:P+=";";default:if((0,i.R3)(C=c(P,e,n,h,m,a,p,S,j=[],k=[],g),d),123===x)if(0===m)u(P,e,C,C,j,d,g,p,k);else switch(y){case 100:case 109:case 115:u(t,C,C,r&&(0,i.R3)(c(t,C,C,0,0,a,p,S,a,j=[],g),k),a,k,g,p,r?j:k);break;default:u(P,C,C,C,[""],k,0,p,k)}}h=m=_=0,w=E=1,S=P="",g=f;break;case 58:g=1+(0,i.to)(P),_=b;default:if(w<1)if(123==x)--w;else if(125==x&&0==w++&&125==(0,o.mp)())continue;switch(P+=(0,i.Dp)(x),x*w){case 38:E=m>0?1:(P+="\f",-1);break;case 44:p[h++]=((0,i.to)(P)-1)*E,E=1;break;case 64:45===(0,o.fj)()&&(P+=(0,o.iF)((0,o.lp)())),y=(0,o.fj)(),m=g=(0,i.to)(S=P+=(0,o.QU)((0,o.Ud)())),x++;break;case 45:45===b&&2==(0,i.to)(P)&&(w=0)}}return d}function c(t,e,n,a,u,c,s,l,d,f,p){for(var v=u-1,h=0===u?c:[""],m=(0,i.Ei)(h),g=0,y=0,_=0;g0?h[b]+" "+w:(0,i.gx)(w,/&\f/g,h[b])))&&(d[_++]=O);return(0,o.dH)(t,e,n,0===u?r.Fr:l,d,f,p)}function s(t,e,n){return(0,o.dH)(t,e,n,r.Ab,(0,i.Dp)((0,o.Tb)()),(0,i.tb)(t,2,-2),0)}function l(t,e,n,a){return(0,o.dH)(t,e,n,r.h5,(0,i.tb)(t,0,a),(0,i.tb)(t,a+1,-1),a)}},15327:function(t,e,n){"use strict";n.d(e,{O:function(){return o}});var r=n(27563),i=n(26686);function o(t,e){switch((0,i.vp)(t,e)){case 5103:return r.G$+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return r.G$+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return r.G$+t+r.uj+t+r.MS+t+t;case 6828:case 4268:return r.G$+t+r.MS+t+t;case 6165:return r.G$+t+r.MS+"flex-"+t+t;case 5187:return r.G$+t+(0,i.gx)(t,/(\w+).+(:[^]+)/,r.G$+"box-$1$2"+r.MS+"flex-$1$2")+t;case 5443:return r.G$+t+r.MS+"flex-item-"+(0,i.gx)(t,/flex-|-self/,"")+t;case 4675:return r.G$+t+r.MS+"flex-line-pack"+(0,i.gx)(t,/align-content|flex-|-self/,"")+t;case 5548:return r.G$+t+r.MS+(0,i.gx)(t,"shrink","negative")+t;case 5292:return r.G$+t+r.MS+(0,i.gx)(t,"basis","preferred-size")+t;case 6060:return r.G$+"box-"+(0,i.gx)(t,"-grow","")+r.G$+t+r.MS+(0,i.gx)(t,"grow","positive")+t;case 4554:return r.G$+(0,i.gx)(t,/([^-])(transform)/g,"$1"+r.G$+"$2")+t;case 6187:return(0,i.gx)((0,i.gx)((0,i.gx)(t,/(zoom-|grab)/,r.G$+"$1"),/(image-set)/,r.G$+"$1"),t,"")+t;case 5495:case 3959:return(0,i.gx)(t,/(image-set\([^]*)/,r.G$+"$1$`$1");case 4968:return(0,i.gx)((0,i.gx)(t,/(.+:)(flex-)?(.*)/,r.G$+"box-pack:$3"+r.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+r.G$+t+t;case 4095:case 3583:case 4068:case 2532:return(0,i.gx)(t,/(.+)-inline(.+)/,r.G$+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,i.to)(t)-1-e>6)switch((0,i.uO)(t,e+1)){case 109:if(45!==(0,i.uO)(t,e+4))break;case 102:return(0,i.gx)(t,/(.+:)(.+)-([^]+)/,"$1"+r.G$+"$2-$3$1"+r.uj+(108==(0,i.uO)(t,e+3)?"$3":"$2-$3"))+t;case 115:return~(0,i.Cw)(t,"stretch")?o((0,i.gx)(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(115!==(0,i.uO)(t,e+1))break;case 6444:switch((0,i.uO)(t,(0,i.to)(t)-3-(~(0,i.Cw)(t,"!important")&&10))){case 107:return(0,i.gx)(t,":",":"+r.G$)+t;case 101:return(0,i.gx)(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+r.G$+(45===(0,i.uO)(t,14)?"inline-":"")+"box$3$1"+r.G$+"$2$3$1"+r.MS+"$2box$3")+t}break;case 5936:switch((0,i.uO)(t,e+11)){case 114:return r.G$+t+r.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return r.G$+t+r.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return r.G$+t+r.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return r.G$+t+r.MS+t+t}return t}},20211:function(t,e,n){"use strict";n.d(e,{P:function(){return a},q:function(){return o}});var r=n(27563),i=n(26686);function o(t,e){for(var n="",r=(0,i.Ei)(t),o=0;o0?(0,r.uO)(s,--u):0,o--,10===c&&(o=1,i--),c}function v(){return c=u2||y(c)>3?"":" "}function E(t,e){for(;--e&&v()&&!(c<48||c>102||c>57&&c<65||c>70&&c<97););return g(t,m()+(e<6&&32==h()&&32==v()))}function x(t){for(;v();)switch(c){case t:return u;case 34:case 39:34!==t&&39!==t&&x(c);break;case 40:41===t&&x(t);break;case 92:v()}return u}function S(t,e){for(;v()&&t+c!==57&&(t+c!==84||47!==h()););return"/*"+g(e,u-1)+"*"+(0,r.Dp)(47===t?t:v())}function j(t){for(;!y(h());)v();return g(t,u)}},26686:function(t,e,n){"use strict";n.d(e,{$e:function(){return m},Cw:function(){return l},Dp:function(){return i},EQ:function(){return c},Ei:function(){return v},R3:function(){return h},Wn:function(){return r},f0:function(){return o},fy:function(){return u},gx:function(){return s},tb:function(){return f},to:function(){return p},uO:function(){return d},vp:function(){return a}});var r=Math.abs,i=String.fromCharCode,o=Object.assign;function a(t,e){return(((e<<2^d(t,0))<<2^d(t,1))<<2^d(t,2))<<2^d(t,3)}function u(t){return t.trim()}function c(t,e){return(t=e.exec(t))?t[0]:t}function s(t,e,n){return t.replace(e,n)}function l(t,e){return t.indexOf(e)}function d(t,e){return 0|t.charCodeAt(e)}function f(t,e,n){return t.slice(e,n)}function p(t){return t.length}function v(t){return t.length}function h(t,e){return e.push(t),t}function m(t,e){return t.map(e).join("")}}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={id:t,loaded:!1,exports:{}};return i[t].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=i,a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);a.r(i);var o={};t=t||[null,e({}),e([]),e(e)];for(var u=2&r&&n;"object"==typeof u&&!~t.indexOf(u);u=e(u))Object.getOwnPropertyNames(u).forEach((function(t){o[t]=function(){return n[t]}}));return o.default=function(){return n},a.d(i,o),i},a.d=function(t,e){for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.f={},a.e=function(t){return Promise.all(Object.keys(a.f).reduce((function(e,n){return a.f[n](t,e),e}),[]))},a.u=function(t){return({1213:"i18next",2009:"markdown",3706:"i18next-player",4141:"videoplayer",7631:"sentry-browser"}[t]||t)+"-"+a.h()+".js"},a.h=function(){return"9c401377dd5764ab9fc1"},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.hmd=function(t){return(t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n={},r="zeffo:",a.l=function(t,e,i,o){if(n[t])n[t].push(e);else{var u,c;if(void 0!==i)for(var s=document.getElementsByTagName("script"),l=0;la,button{cursor:pointer;flex-basis:calc((100% / 3) - 24px);}"}),xt=(0,D.Z)("div",{target:"ek34o3b0"})({name:"b08gws",styles:"display:flex;flex-direction:column;align-items:center;min-width:46px"}),St=(f.default.createElement,function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))}),jt=[{type:mt.B.FACEBOOK,image:a(78914),label:"Facebook"},{type:mt.B.TWITTER,image:a(33289),label:"Twitter"}],kt=function(t){var e,n=t.video,r=t.appContext,i=t.params,o=t.onClose,u=(0,f.useState)(!1),c=u[0],s=u[1],l=(0,A.X)().t,d=(0,pt.B)(),p=(0,vt.Zx)({video:n,appContext:r,params:i}),v=encodeURIComponent(null!==(e=null==n?void 0:n.caption)&&void 0!==e?e:""),h=encodeURIComponent(null!=p?p:"");var m=a(c?29205:45669);return(0,L.BX)(bt,{children:[(0,L.tZ)(wt,{children:l("Share")}),(0,L.tZ)(Ot,{children:l("Share this event with your friends!")}),(0,L.BX)(Et,{children:[jt.map((function(t,e){var n=t.image,r=t.label,i=t.type;return(0,L.tZ)(ht.Z,{target:"_blank","data-testid":T.N$D,href:gt(i,v,h),onClick:function(){return null},rel:"noreferrer noopener",children:(0,L.tZ)(xt,{children:(0,L.tZ)(_t.v,{src:n,label:r})})},e)})),(0,L.tZ)(yt.q,{onClick:function(){return St(this,void 0,void 0,lt().mark((function t(){return lt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s(!0),d(l("Link copied")),ft()(null!=p?p:"",{format:"text/plain"}),t.next=5,new Promise((function(t){return setTimeout(t,1400)}));case 5:s(!1);case 6:case"end":return t.stop()}}),t)})))},children:(0,L.tZ)(_t.v,{src:m,className:"cy-copy-link",cyValue:p,label:l("Copy Link")})})]}),(0,L.tZ)(q.o,{onClick:o,"data-testid":T.OtY,children:l("Cancel")})]})},Ct=a(28619);f.default.createElement;function Pt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var Tt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i=o)}}),[r,o]);return{isMatched:u,ref:(0,E.y)(s)}}({minWidth:470}),n=e.ref,r=e.isMatched,i=(0,k.oR)(C.g2),o=(0,k.oR)(C.GF),a=(0,k.oR)(C.De),u=a.setVideos,c=a.updateVideoFromLiveStream,s=o.hero_flip_order||!1,l=o.hero_text_mode||"even",d=(0,f.useState)(!1),p=d[0],v=d[1],h=(0,f.useState)(!1),m=h[0],g=h[1],y=(0,Dt.n)(),_=(0,f.useMemo)((function(){return p||m}),[p,m]),b=(0,f.useCallback)((function(t){t&&v(!0)}),[]),w=(0,f.useCallback)((function(t){t&&g(!0)}),[]),j=Nt(),A=(0,O.Z)(j,2),R=A[0],N=A[1],D=(0,k.oR)((function(t){return t.videos}))[null!==(t=null==R?void 0:R.encoded_id)&&void 0!==t?t:""],Z=(0,f.useMemo)((function(){return D?[D]:[]}),[D]);(0,f.useEffect)((function(){u([R,N].filter(Boolean))}),[N,u,R]);var M=(0,f.useCallback)((function(t){c(t.liveStreamId,t.liveStream)}),[c]);(0,f.useEffect)((function(){_&&D&&y({type:Zt.t.FW_HEROUNIT_IMPRESSION,video:D})}),[i,_,D,y]);var U=(0,S.g)({onChange:b}),F=(0,S.g)({onChange:w});return D&&D.live_stream_scheduled_at?(0,L.BX)(L.HY,{children:[(0,L.tZ)(P.e,{params:o,extra:$t}),(0,L.tZ)(I.default,{apiHost:o.api_host,video:D,updateLiveStream:M}),(0,L.BX)(Ft,{"data-testid":T.FIi,"data-testname":o.name,"data-testvideoid":D.encoded_id,ref:n,isDesktop:r,flipOrder:s,children:[(0,L.tZ)(Vt,{isDesktop:r,textMode:l,ref:U,children:(0,L.tZ)(Ht,{isDesktop:r,height:o.height||"auto",children:(0,L.tZ)(Bt.o,{videos:Z,extraParams:{branding:!1,height:"100%",player_captions:!1,player_add_to_calendar:!1}})})}),(0,L.tZ)(Yt,{"data-testid":T.aAz,isDesktop:r,textMode:l,ref:F,children:(0,L.tZ)(Wt,{isDesktop:r,height:o.height||"auto",textMode:l,children:(0,L.tZ)(ct,{video:D,secondaryVideo:N,appContext:i})})})]})]}):null},Xt=function(t){var e=t.initialParams,n=t.widgetParams;return(0,L.tZ)(j.w,{appContextType:c.LV.EMBED_HERO_CONTEXT_TYPE,initialParams:e,widgetParams:n,children:(0,L.tZ)(Gt,{})})};f.default.createElement;function qt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=(0,o.Z)(t);if(e){var a=(0,o.Z)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,i.Z)(this,n)}}var Jt=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a};(0,t.k)();var Kt=function(t){(0,r.Z)(o,t);var i=qt(o);function o(){var t;return(0,e.Z)(this,o),(t=i.apply(this,arguments)).height="75vh",t}return(0,n.Z)(o,[{key:"render",value:function(){var t=this,e=Object.fromEntries(this.getAttributeNames().map((function(e){return[e,t.getAttribute(e)]})));this.style.width="100%",this.shadowRoot&&((0,f.unmountComponentAtNode)(this.shadowRoot),function(t){var e=t.target,n=t.widgetId,r=t.widgetParams,i=r.channel,o=n,a={location:window.location,page_url:(0,_.XW)(),referrer:document.referrer,target:e,type:u._r.HEROUNIT,widget_id:o};(0,g.XX)(Object.assign(Object.assign({},a),r)).measure(g.kG),(0,y.c)((function(){(0,m.MD)().configureScope((function(t){t.setTag("fwn_channel",null!=i?i:""),t.setTag("fwn_context","herounit")}));try{e&&((0,h._H)({type:h.tw.FW_HEROUNIT_RENDER,data:{widget_id:o},target:e}),(0,f.render)((0,L.tZ)(b.Z,{onError:function(t){return(0,m.H)(t)},children:(0,L.tZ)(v.C,{value:(0,w.c)({container:e}),children:(0,L.tZ)(Xt,{initialParams:a,widgetParams:r})})}),e))}catch(t){t instanceof Error&&(0,m.H)(t)}}))}({target:this.shadowRoot,widgetId:this.widgetId,widgetParams:Object.assign({height:this.height},e)}))}}]),o}(s.T);Jt([(0,p.Cb)({type:String})],Kt.prototype,"height",void 0),customElements.get("fw-herounit")||customElements.define("fw-herounit",Kt);var Qt,te,ee=a(4518),ne=a(49786),re=a(39764);var ie=(0,D.Z)("div",{target:"e16bsbu61"})({name:"bjn8wh",styles:"position:relative"}),oe=(0,D.Z)(At,{target:"e16bsbu60"})((te={},(0,H.Z)(te,re.Ij,"var(".concat(re.DG,", white)")),(0,H.Z)(te,"height","var(".concat(re.z,", auto)")),(0,H.Z)(te,"width","var(".concat(re.GD,", auto)")),(0,H.Z)(te,"fontFamily","var(".concat(re.Oe,", inherit)")),(0,H.Z)(te,"fontWeight","var(".concat(re.jP,", 600)")),(0,H.Z)(te,"fontSize","var(".concat(re.HP,", 16px)")),(0,H.Z)(te,"border","var(".concat(re.MI,", none)")),(0,H.Z)(te,"background","var(".concat(re.sj,", var(").concat(re.tY,", var(--gradient)))")),(0,H.Z)(te,"&:hover",(Qt={},(0,H.Z)(Qt,re.Ij,"var(".concat(re.NW,", white)")),(0,H.Z)(Qt,"fontSize","var(".concat(re.MS,", 16px)")),(0,H.Z)(Qt,"fontWeight","var(".concat(re.Sl,", 600)")),(0,H.Z)(Qt,"border","var(".concat(re.EG,", none)")),(0,H.Z)(Qt,"background","var(".concat(re.Vv,", var(").concat(re.tY,", var(--gradient)))")),Qt)),te),""),ae=a(93829),ue=a(8043),ce=a(51844);var se=(0,D.Z)("div",{target:"eudaoet2"})("display:flex;justify-content:center;align-items:center;flex-direction:column;position:absolute;",(function(t){return t.popupPosition&&t.popupPosition.includes("top")?"\n bottom: calc(100% + 4px);\n ":"\n top: calc(100% + 4px); \n "})," ",(function(t){var e,n;return(null===(e=t.popupPosition)||void 0===e?void 0:e.includes("right"))?"\n right: 0;\n ":(null===(n=t.popupPosition)||void 0===n?void 0:n.includes("left"))?"\n left: 0;\n ":"\n left: 50%;\n transform: translateX(-50%);\n "})," z-index:1000;box-shadow:1px 1px 8px 1px rgb(0 0 0 / 20%);border-radius:8px;background-color:white;"),le=(0,D.Z)("button",{target:"eudaoet1"})({name:"a8psfs",styles:"align-items:center;background-image:none;background-color:transparent;border:none;display:flex;flex:0 0 28px;justify-content:center;padding:0;width:28px;height:28px;position:absolute;top:8px;right:8px;cursor:pointer"}),de=(0,D.Z)("div",{target:"eudaoet0"})({name:"1ttfs1g",styles:"display:flex;gap:14px;padding:35px 24px 24px;font-size:14px;a{text-decoration:none;color:black;}.calendar-option-label{padding-top:8px;color:currentColor;}.accessible-icon{background-color:white;border-radius:50%;}"}),fe=(f.default.createElement,function(t){var e,n,r=t.children,i=t.onClose,o=(0,f.useRef)(null),u=(0,k.oR)((function(t){var e;return null===(e=t.params)||void 0===e?void 0:e.popup_position})),c=(0,A.X)().t;return e=o,n=i,(0,f.useEffect)((function(){var t=function(t){var r=t.composedPath()[0];!e.current||e.current.contains(t.target)||e.current.contains(r)||n(t)};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),function(){document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}}),[e,n]),(0,L.BX)(se,{ref:o,popupPosition:u,children:[(0,L.tZ)(le,{onClick:i,children:(0,L.tZ)(ce.C,{alt:c("Close popup"),src:a(7548),height:28,width:28})}),(0,L.tZ)(de,{children:r})]})});f.default.createElement;var pe={name:"dxi2j",styles:"font-family:inherit!important;color:inherit!important"},ve=function(){var t,e,n=(0,A.X)().t,r=(0,k.oR)(C.g2),i=(0,k.oR)(C.GF),o=(0,k.oR)((function(t){return t.widgetParams})),a=(0,k.oR)(C.De),u=a.setVideos,s=a.updateVideoFromLiveStream,l=(0,f.useState)(!1),d=l[0],p=l[1],v=(0,f.useState)(!1),h=v[0],m=v[1],g=(0,f.useCallback)((function(t){t&&p(!0)}),[]),y=Nt(),_=(0,O.Z)(y,1)[0];(0,f.useEffect)((function(){_&&u([_])}),[u,_]);var b=(0,f.useCallback)((function(t){s(t.liveStreamId,t.liveStream)}),[s]),w=(0,ne.To)(),E=(0,Dt.n)();(0,f.useEffect)((function(){d&&_&&r&&(w(r),E({type:Zt.t.FW_ADD_TO_CALENDAR_IMPRESSION,video:_}))}),[d,_,r,w,E]);var x=(0,S.g)({onChange:g}),j=(0,N.a)({scheduledStartTime:(null==_?void 0:_.live_stream_scheduled_at)||""}).hasLiveStreamEnded,D=(0,f.useCallback)((function(){var t;null===(t=(0,F.m)())||void 0===t||t.play(Object.assign({appContextType:c.LV.EMBED_ADD_TO_CALENDAR_CONTEXT_TYPE},o))}),[o]),Z=(0,f.useCallback)((function(){m(!0)}),[]),M=(0,f.useCallback)((function(t){t.preventDefault(),t.stopPropagation(),m(!1)}),[]);return _&&_.live_stream_scheduled_at?(0,L.BX)(L.HY,{children:[(0,L.tZ)(P.e,{params:i,extra:pe}),(0,L.tZ)(I.default,{apiHost:i.api_host,video:_,updateLiveStream:b}),(0,R.PK)(_)||(0,R.lT)(_)||j?(0,L.tZ)(oe,{ref:x,params:i,onClick:D,"data-testid":T.xzA,children:null!==(t=i.live_label)&&void 0!==t?t:n("Watch Now")}):(0,L.BX)(ie,{children:[(0,L.tZ)(oe,{ref:x,params:i,onClick:Z,"data-testid":T.aj4,children:null!==(e=i.upcoming_label)&&void 0!==e?e:n("Add To Calendar")}),h&&(0,L.BX)(fe,{onClose:M,children:[(0,L.tZ)(ae.J,{type:ue.a.GOOGLE,video:_}),ee.gn&&ee.i7?null:(0,L.tZ)(ae.J,{type:ue.a.APPLE,video:_}),(0,L.tZ)(ae.J,{type:ue.a.OUTLOOK,video:_}),ee.gn&&ee.i7?null:(0,L.tZ)(ae.J,{type:ue.a.DOWNLOAD,video:_})]})]})]}):null},he=function(t){var e=t.initialParams,n=t.widgetParams;return(0,L.tZ)(j.w,{appContextType:c.LV.EMBED_ADD_TO_CALENDAR_CONTEXT_TYPE,initialParams:e,widgetParams:n,children:(0,L.tZ)(ve,{})})};f.default.createElement;function me(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=(0,o.Z)(t);if(e){var a=(0,o.Z)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,i.Z)(this,n)}}(0,t.k)();var ge,ye,_e=function(t){(0,r.Z)(o,t);var i=me(o);function o(){return(0,e.Z)(this,o),i.apply(this,arguments)}return(0,n.Z)(o,[{key:"render",value:function(){var t=this,e=Object.fromEntries(this.getAttributeNames().map((function(e){return[e,t.getAttribute(e)]})));this.shadowRoot&&((0,f.unmountComponentAtNode)(this.shadowRoot),function(t){var e=t.target,n=t.widgetId,r=t.widgetParams,i=r.channel,o=n;(0,y.c)((function(){(0,m.MD)().configureScope((function(t){t.setTag("fwn_channel",null!=i?i:""),t.setTag("fwn_context","add_to_calendar")}));var t={location:window.location,max_videos:1,page_url:(0,_.XW)(),referrer:document.referrer,target:e,type:u._r.ADD_TO_CALENDAR,widget_id:o};try{e&&((0,h._H)({type:h.tw.FW_ADD_TO_CALENDAR_RENDER,data:{widget_id:o},target:e}),(0,f.render)((0,L.tZ)(b.Z,{onError:function(t){return(0,m.H)(t)},children:(0,L.tZ)(v.C,{value:(0,w.c)({container:e}),children:(0,L.tZ)(he,{initialParams:t,widgetParams:r})})}),e))}catch(t){t instanceof Error&&(0,m.H)(t)}}))}({target:this.shadowRoot,widgetId:this.widgetId,widgetParams:e}))}}]),o}(s.T);customElements.get("fw-add-to-calendar")||customElements.define("fw-add-to-calendar",_e);var be=(0,D.Z)("div",{target:"erm9u4j1"})({name:"bjn8wh",styles:"position:relative"}),we=(0,D.Z)(At,{target:"erm9u4j0"})((ye={},(0,H.Z)(ye,re.Ij,"var(".concat(re.gg,", white)")),(0,H.Z)(ye,"height","var(".concat(re.PT,", auto)")),(0,H.Z)(ye,"width","var(".concat(re.SV,", auto)")),(0,H.Z)(ye,"fontFamily","var(".concat(re.ZF,", inherit)")),(0,H.Z)(ye,"fontWeight","var(".concat(re.J5,", 600)")),(0,H.Z)(ye,"fontSize","var(".concat(re.sg,", 16px)")),(0,H.Z)(ye,"border","var(".concat(re.pJ,", none)")),(0,H.Z)(ye,"background","var(".concat(re.J0,", var(").concat(re.tY,", var(--gradient)))")),(0,H.Z)(ye,"&:hover",(ge={},(0,H.Z)(ge,re.Ij,"var(".concat(re.f3,", white)")),(0,H.Z)(ge,"fontSize","var(".concat(re.rE,", 16px)")),(0,H.Z)(ge,"fontWeight","var(".concat(re.j5,", 600)")),(0,H.Z)(ge,"border","var(".concat(re.U5,", none)")),(0,H.Z)(ge,"background","var(".concat(re.SZ,", var(").concat(re.tY,", var(--gradient)))")),ge)),ye),""),Oe=a(20460);f.default.createElement;var Ee=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},xe={name:"dxi2j",styles:"font-family:inherit!important;color:inherit!important"},Se=function(){var t,e,n=(0,A.X)().t,r=(0,f.useState)(!1),i=r[0],o=r[1],u=(0,k.oR)(C.g2),c=(0,k.oR)(C.GF),s=(0,f.useState)(!1),l=s[0],d=s[1],p=(0,f.useState)(!1),v=p[0],h=p[1],m=Nt(),g=(0,O.Z)(m,1)[0],y=(0,vt.Zx)({video:g||null,appContext:u,params:c}),_=(0,ne.To)(),b=(0,Dt.n)(),w=(0,ne.gb)(),E=encodeURIComponent(null!==(t=null==g?void 0:g.caption)&&void 0!==t?t:""),x=encodeURIComponent(null!=y?y:""),j=(0,f.useCallback)((function(t){t&&d(!0)}),[]);(0,f.useEffect)((function(){l&&g&&u&&(_(u),b({type:Zt.t.FW_SHARE_IMPRESSION,video:g}),w([g],Oe.Em.PLAYER,u))}),[l,g,u,_,b,w]);var I=(0,S.g)({onChange:j}),R=(0,pt.B)(),N=(0,f.useCallback)((function(){h(!0)}),[]),D=(0,f.useCallback)((function(t){t.preventDefault(),t.stopPropagation(),h(!1)}),[]),Z=(0,f.useCallback)((function(){return Ee(void 0,void 0,void 0,lt().mark((function t(){return lt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o(!0),ft()(null!=y?y:"",{format:"text/plain"}),R(n("Link Copied")),t.next=5,new Promise((function(t){return setTimeout(t,2e3)}));case 5:o(!1);case 6:case"end":return t.stop()}}),t)})))}),[n,y,R]),M=n("Copy Link"),U=a(i?29205:45669);return g?(0,L.BX)(L.HY,{children:[(0,L.tZ)(P.e,{params:c,extra:xe}),(0,L.BX)(be,{children:[(0,L.tZ)(we,{ref:I,params:c,onClick:N,"data-testid":T.AjK,children:null!==(e=c.share_label)&&void 0!==e?e:n("Share Event")}),v&&(0,L.BX)(fe,{onClose:D,children:[jt.map((function(t,e){var n=t.image,r=t.label,i=t.type;return(0,L.tZ)(ht.Z,{target:"_blank","data-testid":T.N$D,href:gt(i,E,x),onClick:function(){return null},rel:"noreferrer noopener",children:(0,L.tZ)(xt,{children:(0,L.tZ)(_t.v,{src:n,label:r})})},e)})),(0,L.tZ)(yt.q,{onClick:Z,children:(0,L.tZ)(_t.v,{src:U,className:"cy-copy-link",cyValue:y,label:M})})]})]})]}):null},je=function(t){var e=t.initialParams,n=t.widgetParams;return(0,L.tZ)(j.w,{appContextType:c.LV.EMBED_SHARE_CONTEXT_TYPE,initialParams:e,widgetParams:n,children:(0,L.tZ)(Se,{})})};f.default.createElement;function ke(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=(0,o.Z)(t);if(e){var a=(0,o.Z)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,i.Z)(this,n)}}(0,t.k)();var Ce=function(t){(0,r.Z)(o,t);var i=ke(o);function o(){return(0,e.Z)(this,o),i.apply(this,arguments)}return(0,n.Z)(o,[{key:"render",value:function(){var t=this,e=Object.fromEntries(this.getAttributeNames().map((function(e){return[e,t.getAttribute(e)]})));this.shadowRoot&&((0,f.unmountComponentAtNode)(this.shadowRoot),function(t){var e=t.target,n=t.widgetId,r=t.widgetParams,i=r.channel,o=n;(0,y.c)((function(){(0,m.MD)().configureScope((function(t){t.setTag("fwn_channel",null!=i?i:""),t.setTag("fwn_context","share")}));var t={location:window.location,max_videos:1,page_url:(0,_.XW)(),referrer:document.referrer,target:e,type:u._r.SHARE,widget_id:o};try{e&&((0,h._H)({type:h.tw.FW_SHARE_RENDER,data:{widget_id:o},target:e}),(0,f.render)((0,L.tZ)(b.Z,{onError:function(t){return(0,m.H)(t)},children:(0,L.tZ)(v.C,{value:(0,w.c)({container:e}),children:(0,L.tZ)(je,{initialParams:t,widgetParams:r})})}),e))}catch(t){(0,m.H)(t)}}))}({target:this.shadowRoot,widgetId:this.widgetId,widgetParams:e}))}}]),o}(s.T);customElements.get("fw-share")||customElements.define("fw-share",Ce),(0,t.k)()}()}(); //# sourceMappingURL=fwn.js.map