(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[40819,13047,90984,24725,74608,52555,88162,5719,43159,60426,82492,37582,53857,60587,89627,31340,8575,89734,66886,86173],{906587:e=>{var t,n,r={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinRecipe_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:'images(spec:"474x")'},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"diets",storageKey:null},{alias:null,args:null,concreteType:"CookTimes",kind:"LinkedField",name:"cookTimes",plural:!1,selections:[{alias:null,args:null,concreteType:"CookTime",kind:"LinkedField",name:"cook",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"m",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"h",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CookTime",kind:"LinkedField",name:"total",plural:!1,selections:t,storageKey:null}],storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,concreteType:"CategorizedIngredientsMetadata",kind:"LinkedField",name:"categorizedIngredients",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"category",storageKey:null},{alias:null,args:null,concreteType:"ParsedIngredientMetadata",kind:"LinkedField",name:"ingredients",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"amt",storageKey:null},n],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ServingsSummary",kind:"LinkedField",name:"servingsSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"summary",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};r.hash="72951c99039e6492a3eb8e9fcb5a22c3",e.exports=r},96795:e=>{var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"usePinImagesFragment_pin",selections:[{alias:"imageSpec_60x60",args:[{kind:"Literal",name:"spec",value:"60x60"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:'images(spec:"60x60")'},{alias:"imageSpec_136x136",args:[{kind:"Literal",name:"spec",value:"136x136"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"136x136")'},{alias:"imageSpec_170x",args:[{kind:"Literal",name:"spec",value:"170x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"170x")'},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"236x")'},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"474x")'},{alias:"imageSpec_564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"564x")'},{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"736x")'},{alias:"imageSpec_600x315",args:[{kind:"Literal",name:"spec",value:"600x315"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"600x315")'},{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"orig")'}],type:"Pin",abstractKey:null};n.hash="8dd4c9c753d2a67c0606dfff23b820e9",e.exports=n},701305:e=>{var t=[],n=[];function r(e,t,n,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if("object"!=typeof e||"object"!=typeof t)return!1;var a=Object.prototype.toString,o=a.call(e);if(o!=a.call(t))return!1;switch(o){case"[object String]":return e==String(t);case"[object Number]":return!isNaN(e)&&!isNaN(t)&&e==Number(t);case"[object Date]":case"[object Boolean]":return+e==+t;case"[object RegExp]":return e.source==t.source&&e.global==t.global&&e.multiline==t.multiline&&e.ignoreCase==t.ignoreCase}for(var s=n.length;s--;)if(n[s]==e)return i[s]==t;n.push(e),i.push(t);var l=0;if("[object Array]"===o){if((l=e.length)!==t.length)return!1;for(;l--;)if(!r(e[l],t[l],n,i))return!1}else{if(e.constructor!==t.constructor)return!1;if(e.hasOwnProperty("valueOf")&&t.hasOwnProperty("valueOf"))return e.valueOf()==t.valueOf();var c=Object.keys(e);if(c.length!=Object.keys(t).length)return!1;for(var d=0;d<c.length;d++)if(!r(e[c[d]],t[c[d]],n,i))return!1}return n.pop(),i.pop(),!0}e.exports=function(e,i){var a=t.length?t.pop():[],o=n.length?n.pop():[],s=r(e,i,a,o);return a.length=0,o.length=0,t.push(a),n.push(o),s}},60139:e=>{function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},663620:(e,t,n)=>{var r=n(60139);e.exports=r},301989:(e,t,n)=>{var r=n(751789),i=n(780401),a=n(657667),o=n(521327),s=n(281866);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},738407:(e,t,n)=>{var r=n(327040),i=n(514125),a=n(882117),o=n(567518),s=n(654705);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},883369:(e,t,n)=>{var r=n(924785),i=n(611285),a=n(396e3),o=n(349916),s=n(195265);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},288668:(e,t,n)=>{var r=n(883369),i=n(90619),a=n(572385);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=i,o.prototype.has=a,e.exports=o},646384:(e,t,n)=>{var r=n(738407),i=n(737465),a=n(963779),o=n(267599),s=n(744758),l=n(234309);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=s,c.prototype.set=l,e.exports=c},611149:(e,t,n)=>{var r=n(555639).Uint8Array;e.exports=r},896874:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},477412:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},234963:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}},14636:(e,t,n)=>{var r=n(422545),i=n(135694),a=n(701469),o=n(644144),s=n(565776),l=n(936719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),d=!n&&i(e),u=!n&&!d&&o(e),p=!n&&!d&&!u&&l(e),h=n||d||u||p,m=h?r(e.length,String):[],f=m.length;for(var _ in e)!t&&!c.call(e,_)||h&&("length"==_||u&&("offset"==_||"parent"==_)||p&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||s(_,f))||m.push(_);return m}},829932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},862488:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},282908:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},286556:(e,t,n)=>{var r=n(789465),i=n(977813);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},234865:(e,t,n)=>{var r=n(789465),i=n(977813),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var o=e[t];a.call(e,t)&&i(o,n)&&(void 0!==n||t in e)||r(e,t,n)}},218470:(e,t,n)=>{var r=n(977813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},744037:(e,t,n)=>{var r=n(698363),i=n(3674);e.exports=function(e,t){return e&&r(t,i(t),e)}},163886:(e,t,n)=>{var r=n(698363),i=n(481704);e.exports=function(e,t){return e&&r(t,i(t),e)}},789465:(e,t,n)=>{var r=n(538777);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},285990:(e,t,n)=>{var r=n(646384),i=n(477412),a=n(234865),o=n(744037),s=n(163886),l=n(364626),c=n(200278),d=n(318805),u=n(201911),p=n(458234),h=n(946904),m=n(664160),f=n(43824),_=n(529148),g=n(738517),y=n(701469),v=n(644144),b=n(356688),w=n(513218),S=n(472928),E=n(3674),P=n(481704),T="[object Arguments]",R="[object Function]",x="[object Object]",I={};I[T]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[x]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[R]=I["[object WeakMap]"]=!1,e.exports=function e(t,n,A,C,k,O){var D,N=1&n,L=2&n,M=4&n;if(A&&(D=k?A(t,C,k,O):A(t)),void 0!==D)return D;if(!w(t))return t;var j=y(t);if(j){if(D=f(t),!N)return c(t,D)}else{var F=m(t),U=F==R||"[object GeneratorFunction]"==F;if(v(t))return l(t,N);if(F==x||F==T||U&&!k){if(D=L||U?{}:g(t),!N)return L?u(t,s(D,t)):d(t,o(D,t))}else{if(!I[F])return k?t:{};D=_(t,F,N)}}O||(O=new r);var Z=O.get(t);if(Z)return Z;O.set(t,D),S(t)?t.forEach((function(r){D.add(e(r,n,A,r,t,O))})):b(t)&&t.forEach((function(r,i){D.set(i,e(r,n,A,i,t,O))}));var B=j?void 0:(M?L?h:p:L?P:E)(t);return i(B||t,(function(r,i){B&&(r=t[i=r]),a(D,i,e(r,n,A,i,t,O))})),D}},603118:(e,t,n)=>{var r=n(513218),i=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},989881:(e,t,n)=>{var r=n(247816),i=n(899291)(r);e.exports=i},121078:(e,t,n)=>{var r=n(862488),i=n(137285);e.exports=function e(t,n,a,o,s){var l=-1,c=t.length;for(a||(a=i),s||(s=[]);++l<c;){var d=t[l];n>0&&a(d)?n>1?e(d,n-1,a,o,s):r(s,d):o||(s[s.length]=d)}return s}},228483:(e,t,n)=>{var r=n(225063)();e.exports=r},247816:(e,t,n)=>{var r=n(228483),i=n(3674);e.exports=function(e,t){return e&&r(e,t,i)}},297786:(e,t,n)=>{var r=n(671811),i=n(240327);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[i(t[n++])];return n&&n==a?e:void 0}},868866:(e,t,n)=>{var r=n(862488),i=n(701469);e.exports=function(e,t,n){var a=t(e);return i(e)?a:r(a,n(e))}},200013:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},690939:(e,t,n)=>{var r=n(902492),i=n(637005);e.exports=function e(t,n,a,o,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,a,o,e,s))}},902492:(e,t,n)=>{var r=n(646384),i=n(967114),a=n(518351),o=n(916096),s=n(664160),l=n(701469),c=n(644144),d=n(936719),u="[object Arguments]",p="[object Array]",h="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,f,_,g){var y=l(e),v=l(t),b=y?p:s(e),w=v?p:s(t),S=(b=b==u?h:b)==h,E=(w=w==u?h:w)==h,P=b==w;if(P&&c(e)){if(!c(t))return!1;y=!0,S=!1}if(P&&!S)return g||(g=new r),y||d(e)?i(e,t,n,f,_,g):a(e,t,b,n,f,_,g);if(!(1&n)){var T=S&&m.call(e,"__wrapped__"),R=E&&m.call(t,"__wrapped__");if(T||R){var x=T?e.value():e,I=R?t.value():t;return g||(g=new r),_(x,I,n,f,g)}}return!!P&&(g||(g=new r),o(e,t,n,f,_,g))}},225588:(e,t,n)=>{var r=n(664160),i=n(637005);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},702958:(e,t,n)=>{var r=n(646384),i=n(690939);e.exports=function(e,t,n,a){var o=n.length,s=o,l=!a;if(null==e)return!s;for(e=Object(e);o--;){var c=n[o];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<s;){var d=(c=n[o])[0],u=e[d],p=c[1];if(l&&c[2]){if(void 0===u&&!(d in e))return!1}else{var h=new r;if(a)var m=a(u,p,d,e,t,h);if(!(void 0===m?i(p,u,3,a,h):m))return!1}}return!0}},829221:(e,t,n)=>{var r=n(664160),i=n(637005);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},267206:(e,t,n)=>{var r=n(191573),i=n(716432),a=n(406557),o=n(701469),s=n(139601);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?o(e)?i(e[0],e[1]):r(e):s(e)}},710313:(e,t,n)=>{var r=n(513218),i=n(225726),a=n(133498),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&o.call(e,s))&&n.push(s);return n}},269199:(e,t,n)=>{var r=n(989881),i=n(498612);e.exports=function(e,t){var n=-1,a=i(e)?Array(e.length):[];return r(e,(function(e,r,i){a[++n]=t(e,r,i)})),a}},191573:(e,t,n)=>{var r=n(702958),i=n(301499),a=n(542634);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},716432:(e,t,n)=>{var r=n(690939),i=n(227361),a=n(379095),o=n(115403),s=n(689162),l=n(542634),c=n(240327);e.exports=function(e,t){return o(e)&&s(t)?l(c(e),t):function(n){var o=i(n,e);return void 0===o&&o===t?a(n,e):r(t,o,3)}}},642980:(e,t,n)=>{var r=n(646384),i=n(286556),a=n(228483),o=n(559783),s=n(513218),l=n(481704),c=n(636390);e.exports=function e(t,n,d,u,p){t!==n&&a(n,(function(a,l){if(p||(p=new r),s(a))o(t,n,l,d,e,u,p);else{var h=u?u(c(t,l),a,l+"",t,n,p):void 0;void 0===h&&(h=a),i(t,l,h)}}),l)}},559783:(e,t,n)=>{var r=n(286556),i=n(364626),a=n(477133),o=n(200278),s=n(738517),l=n(135694),c=n(701469),d=n(229246),u=n(644144),p=n(623560),h=n(513218),m=n(968630),f=n(936719),_=n(636390),g=n(959881);e.exports=function(e,t,n,y,v,b,w){var S=_(e,n),E=_(t,n),P=w.get(E);if(P)r(e,n,P);else{var T=b?b(S,E,n+"",e,t,w):void 0,R=void 0===T;if(R){var x=c(E),I=!x&&u(E),A=!x&&!I&&f(E);T=E,x||I||A?c(S)?T=S:d(S)?T=o(S):I?(R=!1,T=i(E,!0)):A?(R=!1,T=a(E,!0)):T=[]:m(E)||l(E)?(T=S,l(S)?T=g(S):h(S)&&!p(S)||(T=s(E))):R=!1}R&&(w.set(E,T),v(T,E,y,b,w),w.delete(E)),r(e,n,T)}}},882689:(e,t,n)=>{var r=n(829932),i=n(297786),a=n(267206),o=n(269199),s=n(571131),l=n(307518),c=n(285022),d=n(406557),u=n(701469);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return u(e)?function(t){return i(t,1===e.length?e[0]:e)}:e})):[d];var p=-1;t=r(t,l(a));var h=o(e,(function(e,n,i){return{criteria:r(t,(function(t){return t(e)})),index:++p,value:e}}));return s(h,(function(e,t){return c(e,t,n)}))}},840371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},379152:(e,t,n)=>{var r=n(297786);e.exports=function(e){return function(t){return r(t,e)}}},105976:(e,t,n)=>{var r=n(406557),i=n(545357),a=n(430061);e.exports=function(e,t){return a(i(e,t,r),e+"")}},356560:(e,t,n)=>{var r=n(575703),i=n(538777),a=n(406557),o=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=o},571131:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},422545:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},880531:(e,t,n)=>{var r=n(562705),i=n(829932),a=n(701469),o=n(733448),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return i(t,e)+"";if(o(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},727561:(e,t,n)=>{var r=n(567990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},274757:e=>{e.exports=function(e,t){return e.has(t)}},554290:(e,t,n)=>{var r=n(406557);e.exports=function(e){return"function"==typeof e?e:r}},671811:(e,t,n)=>{var r=n(701469),i=n(115403),a=n(555514),o=n(479833);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:a(o(e))}},274318:(e,t,n)=>{var r=n(611149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},364626:(e,t,n)=>{e=n.nmd(e);var r=n(555639),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},257157:(e,t,n)=>{var r=n(274318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},593147:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},540419:(e,t,n)=>{var r=n(562705),i=r?r.prototype:void 0,a=i?i.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},477133:(e,t,n)=>{var r=n(274318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},626393:(e,t,n)=>{var r=n(733448);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,a=e==e,o=r(e),s=void 0!==t,l=null===t,c=t==t,d=r(t);if(!l&&!d&&!o&&e>t||o&&s&&c&&!l&&!d||i&&s&&c||!n&&c||!a)return 1;if(!i&&!o&&!d&&e<t||d&&n&&a&&!i&&!o||l&&n&&a||!s&&a||!c)return-1}return 0}},285022:(e,t,n)=>{var r=n(626393);e.exports=function(e,t,n){for(var i=-1,a=e.criteria,o=t.criteria,s=a.length,l=n.length;++i<s;){var c=r(a[i],o[i]);if(c)return i>=l?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}},200278:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},698363:(e,t,n)=>{var r=n(234865),i=n(789465);e.exports=function(e,t,n,a){var o=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],d=a?a(n[c],e[c],c,n,e):void 0;void 0===d&&(d=e[c]),o?i(n,c,d):r(n,c,d)}return n}},318805:(e,t,n)=>{var r=n(698363),i=n(799551);e.exports=function(e,t){return r(e,i(e),t)}},201911:(e,t,n)=>{var r=n(698363),i=n(151442);e.exports=function(e,t){return r(e,i(e),t)}},321463:(e,t,n)=>{var r=n(105976),i=n(816612);e.exports=function(e){return r((function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++r<a;){var l=n[r];l&&e(t,l,r,o)}return t}))}},899291:(e,t,n)=>{var r=n(498612);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var a=n.length,o=t?a:-1,s=Object(n);(t?o--:++o<a)&&!1!==i(s[o],o,s););return n}}},225063:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===n(a[l],l,a))break}return t}}},538777:(e,t,n)=>{var r=n(610852),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},967114:(e,t,n)=>{var r=n(288668),i=n(282908),a=n(274757);e.exports=function(e,t,n,o,s,l){var c=1&n,d=e.length,u=t.length;if(d!=u&&!(c&&u>d))return!1;var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var m=-1,f=!0,_=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++m<d;){var g=e[m],y=t[m];if(o)var v=c?o(y,g,m,t,e,l):o(g,y,m,e,t,l);if(void 0!==v){if(v)continue;f=!1;break}if(_){if(!i(t,(function(e,t){if(!a(_,t)&&(g===e||s(g,e,n,o,l)))return _.push(t)}))){f=!1;break}}else if(g!==y&&!s(g,y,n,o,l)){f=!1;break}}return l.delete(e),l.delete(t),f}},518351:(e,t,n)=>{var r=n(562705),i=n(611149),a=n(977813),o=n(967114),s=n(668776),l=n(321814),c=r?r.prototype:void 0,d=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,u,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!u(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var m=1&r;if(h||(h=l),e.size!=t.size&&!m)return!1;var f=p.get(e);if(f)return f==t;r|=2,p.set(e,t);var _=o(h(e),h(t),r,c,u,p);return p.delete(e),_;case"[object Symbol]":if(d)return d.call(e)==d.call(t)}return!1}},916096:(e,t,n)=>{var r=n(458234),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,o,s){var l=1&n,c=r(e),d=c.length;if(d!=r(t).length&&!l)return!1;for(var u=d;u--;){var p=c[u];if(!(l?p in t:i.call(t,p)))return!1}var h=s.get(e),m=s.get(t);if(h&&m)return h==t&&m==e;var f=!0;s.set(e,t),s.set(t,e);for(var _=l;++u<d;){var g=e[p=c[u]],y=t[p];if(a)var v=l?a(y,g,p,t,e,s):a(g,y,p,e,t,s);if(!(void 0===v?g===y||o(g,y,n,a,s):v)){f=!1;break}_||(_="constructor"==p)}if(f&&!_){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(f=!1)}return s.delete(e),s.delete(t),f}},458234:(e,t,n)=>{var r=n(868866),i=n(799551),a=n(3674);e.exports=function(e){return r(e,a,i)}},946904:(e,t,n)=>{var r=n(868866),i=n(151442),a=n(481704);e.exports=function(e){return r(e,a,i)}},45050:(e,t,n)=>{var r=n(37019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},301499:(e,t,n)=>{var r=n(689162),i=n(3674);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var a=t[n],o=e[a];t[n]=[a,o,r(o)]}return t}},385924:(e,t,n)=>{var r=n(205569)(Object.getPrototypeOf,Object);e.exports=r},799551:(e,t,n)=>{var r=n(234963),i=n(770479),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return a.call(e,t)})))}:i;e.exports=s},151442:(e,t,n)=>{var r=n(862488),i=n(385924),a=n(799551),o=n(770479),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,a(e)),e=i(e);return t}:o;e.exports=s},900222:(e,t,n)=>{var r=n(671811),i=n(135694),a=n(701469),o=n(565776),s=n(541780),l=n(240327);e.exports=function(e,t,n){for(var c=-1,d=(t=r(t,e)).length,u=!1;++c<d;){var p=l(t[c]);if(!(u=null!=e&&n(e,p)))break;e=e[p]}return u||++c!=d?u:!!(d=null==e?0:e.length)&&s(d)&&o(p,d)&&(a(e)||i(e))}},751789:(e,t,n)=>{var r=n(894536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},780401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},657667:(e,t,n)=>{var r=n(894536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},521327:(e,t,n)=>{var r=n(894536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},281866:(e,t,n)=>{var r=n(894536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},43824:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},529148:(e,t,n)=>{var r=n(274318),i=n(257157),a=n(593147),o=n(540419),s=n(477133);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return a(e);case"[object Set]":return new l;case"[object Symbol]":return o(e)}}},738517:(e,t,n)=>{var r=n(603118),i=n(385924),a=n(225726);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(i(e))}},137285:(e,t,n)=>{var r=n(562705),i=n(135694),a=n(701469),o=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||i(e)||!!(o&&e&&e[o])}},565776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},816612:(e,t,n)=>{var r=n(977813),i=n(498612),a=n(565776),o=n(513218);e.exports=function(e,t,n){if(!o(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&a(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},115403:(e,t,n)=>{var r=n(701469),i=n(733448),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(o.test(e)||!a.test(e)||null!=t&&e in Object(t))}},37019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},689162:(e,t,n)=>{var r=n(513218);e.exports=function(e){return e==e&&!r(e)}},327040:e=>{e.exports=function(){this.__data__=[],this.size=0}},514125:(e,t,n)=>{var r=n(218470),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},882117:(e,t,n)=>{var r=n(218470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},567518:(e,t,n)=>{var r=n(218470);e.exports=function(e){return r(this.__data__,e)>-1}},654705:(e,t,n)=>{var r=n(218470);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},924785:(e,t,n)=>{var r=n(301989),i=n(738407),a=n(357071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},611285:(e,t,n)=>{var r=n(45050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},396e3:(e,t,n)=>{var r=n(45050);e.exports=function(e){return r(this,e).get(e)}},349916:(e,t,n)=>{var r=n(45050);e.exports=function(e){return r(this,e).has(e)}},195265:(e,t,n)=>{var r=n(45050);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},668776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},542634:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},624523:(e,t,n)=>{var r=n(288306);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},894536:(e,t,n)=>{var r=n(610852)(Object,"create");e.exports=r},133498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},545357:(e,t,n)=>{var r=n(896874),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=i(a.length-t,0),l=Array(s);++o<s;)l[o]=a[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=a[o];return c[t]=n(l),r(e,this,c)}}},636390:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},90619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},572385:e=>{e.exports=function(e){return this.__data__.has(e)}},321814:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},430061:(e,t,n)=>{var r=n(356560),i=n(521275)(r);e.exports=i},521275:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),a=16-(i-r);if(r=i,a>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},737465:(e,t,n)=>{var r=n(738407);e.exports=function(){this.__data__=new r,this.size=0}},963779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},267599:e=>{e.exports=function(e){return this.__data__.get(e)}},744758:e=>{e.exports=function(e){return this.__data__.has(e)}},234309:(e,t,n)=>{var r=n(738407),i=n(357071),a=n(883369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(e,t),this.size=n.size,this}},555514:(e,t,n)=>{var r=n(624523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)})),t}));e.exports=o},240327:(e,t,n)=>{var r=n(733448);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},567990:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},150361:(e,t,n)=>{var r=n(285990);e.exports=function(e){return r(e,5)}},575703:e=>{e.exports=function(e){return function(){return e}}},23279:(e,t,n)=>{var r=n(513218),i=n(707771),a=n(14841),o=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,d,u,p,h,m=0,f=!1,_=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,m=t,u=e.apply(r,n)}function v(e){return m=e,p=setTimeout(w,t),f?y(e):u}function b(e){var n=e-h;return void 0===h||n>=t||n<0||_&&e-m>=d}function w(){var e=i();if(b(e))return S(e);p=setTimeout(w,function(e){var n=t-(e-h);return _?s(n,d-(e-m)):n}(e))}function S(e){return p=void 0,g&&l?y(e):(l=c=void 0,u)}function E(){var e=i(),n=b(e);if(l=arguments,c=this,h=e,n){if(void 0===p)return v(h);if(_)return clearTimeout(p),p=setTimeout(w,t),y(h)}return void 0===p&&(p=setTimeout(w,t)),u}return t=a(t)||0,r(n)&&(f=!!n.leading,d=(_="maxWait"in n)?o(a(n.maxWait)||0,t):d,g="trailing"in n?!!n.trailing:g),E.cancel=function(){void 0!==p&&clearTimeout(p),m=0,l=h=c=p=void 0},E.flush=function(){return void 0===p?u:S(i())},E}},977813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},227361:(e,t,n)=>{var r=n(297786);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},379095:(e,t,n)=>{var r=n(200013),i=n(900222);e.exports=function(e,t){return null!=e&&i(e,t,r)}},406557:e=>{e.exports=function(e){return e}},229246:(e,t,n)=>{var r=n(498612),i=n(637005);e.exports=function(e){return i(e)&&r(e)}},618446:(e,t,n)=>{var r=n(690939);e.exports=function(e,t){return r(e,t)}},356688:(e,t,n)=>{var r=n(225588),i=n(307518),a=n(531167),o=a&&a.isMap,s=o?i(o):r;e.exports=s},968630:(e,t,n)=>{var r=n(644239),i=n(385924),a=n(637005),o=Function.prototype,s=Object.prototype,l=o.toString,c=s.hasOwnProperty,d=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==d}},472928:(e,t,n)=>{var r=n(829221),i=n(307518),a=n(531167),o=a&&a.isSet,s=o?i(o):r;e.exports=s},733448:(e,t,n)=>{var r=n(644239),i=n(637005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},3674:(e,t,n)=>{var r=n(14636),i=n(400280),a=n(498612);e.exports=function(e){return a(e)?r(e):i(e)}},481704:(e,t,n)=>{var r=n(14636),i=n(710313),a=n(498612);e.exports=function(e){return a(e)?r(e,!0):i(e)}},288306:(e,t,n)=>{var r=n(883369);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},682492:(e,t,n)=>{var r=n(642980),i=n(321463)((function(e,t,n){r(e,t,n)}));e.exports=i},707771:(e,t,n)=>{var r=n(555639);e.exports=function(){return r.Date.now()}},139601:(e,t,n)=>{var r=n(840371),i=n(379152),a=n(115403),o=n(240327);e.exports=function(e){return a(e)?r(o(e)):i(e)}},189734:(e,t,n)=>{var r=n(121078),i=n(882689),a=n(105976),o=n(816612),s=a((function(e,t){if(null==e)return[];var n=t.length;return n>1&&o(e,t[0],t[1])?t=[]:n>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=s},770479:e=>{e.exports=function(){return[]}},498913:(e,t,n)=>{var r=n(422545),i=n(554290),a=n(640554),o=4294967295,s=Math.min;e.exports=function(e,t){if((e=a(e))<1||e>9007199254740991)return[];var n=o,l=s(e,o);t=i(t),e-=o;for(var c=r(l,t);++n<e;)t(n);return c}},418601:(e,t,n)=>{var r=n(14841),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},640554:(e,t,n)=>{var r=n(418601);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},14841:(e,t,n)=>{var r=n(727561),i=n(513218),a=n(733448),o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):o.test(e)?NaN:+e}},959881:(e,t,n)=>{var r=n(698363),i=n(481704);e.exports=function(e){return r(e,i(e))}},479833:(e,t,n)=>{var r=n(880531);e.exports=function(e){return null==e?"":r(e)}},782677:(e,t,n)=>{function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function s(e){return!(!e||"function"!=typeof e.hasOwnProperty||!(e.hasOwnProperty("__ownerID")||e._map&&e._map.hasOwnProperty("__ownerID")))}function l(e,t,n){return Object.keys(e).reduce((function(t,r){var i=""+r;return t.has(i)?t.set(i,n(t.get(i),e[i])):t}),t)}n.d(t,{Fv:()=>w,fK:()=>b});var c=function(){function e(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),!e||"string"!=typeof e)throw new Error("Expected a string key for Entity, but found "+e+".");var r=n,i=r.idAttribute,o=void 0===i?"id":i,l=r.mergeStrategy,c=void 0===l?function(e,t){return a({},e,t)}:l,d=r.processStrategy,u=void 0===d?function(e){return a({},e)}:d,p=r.fallbackStrategy,h=void 0===p?function(e,t){}:p;this._key=e,this._getId="function"==typeof o?o:function(e){return function(t){return s(t)?t.get(e):t[e]}}(o),this._idAttribute=o,this._mergeStrategy=c,this._processStrategy=u,this._fallbackStrategy=h,this.define(t)}var t=e.prototype;return t.define=function(e){this.schema=Object.keys(e).reduce((function(t,n){var r,i=e[n];return a({},t,((r={})[n]=i,r))}),this.schema||{})},t.getId=function(e,t,n){return this._getId(e,t,n)},t.merge=function(e,t){return this._mergeStrategy(e,t)},t.fallback=function(e,t){return this._fallbackStrategy(e,t)},t.normalize=function(e,t,n,r,i,a){var o=this,s=this.getId(e,t,n),l=this.key;if(l in a||(a[l]={}),s in a[l]||(a[l][s]=[]),a[l][s].some((function(t){return t===e})))return s;a[l][s].push(e);var c=this._processStrategy(e,t,n);return Object.keys(this.schema).forEach((function(t){if(c.hasOwnProperty(t)&&"object"==typeof c[t]){var n=o.schema[t],s="function"==typeof n?n(e):n;c[t]=r(c[t],c,t,s,i,a)}})),i(this,c,e,t,n),s},t.denormalize=function(e,t){var n=this;return s(e)?l(this.schema,e,t):(Object.keys(this.schema).forEach((function(r){if(e.hasOwnProperty(r)){var i=n.schema[r];e[r]=t(e[r],i)}})),e)},i(e,[{key:"key",get:function(){return this._key}},{key:"idAttribute",get:function(){return this._idAttribute}}]),e}(),d=function(){function e(e,t){t&&(this._schemaAttribute="string"==typeof t?function(e){return e[t]}:t),this.define(e)}var t=e.prototype;return t.define=function(e){this.schema=e},t.getSchemaAttribute=function(e,t,n){return!this.isSingleSchema&&this._schemaAttribute(e,t,n)},t.inferSchema=function(e,t,n){if(this.isSingleSchema)return this.schema;var r=this.getSchemaAttribute(e,t,n);return this.schema[r]},t.normalizeValue=function(e,t,n,r,i,a){var o=this.inferSchema(e,t,n);if(!o)return e;var s=r(e,t,n,o,i,a);return this.isSingleSchema||null==s?s:{id:s,schema:this.getSchemaAttribute(e,t,n)}},t.denormalizeValue=function(e,t){var n=s(e)?e.get("schema"):e.schema;return this.isSingleSchema||n?t((this.isSingleSchema?void 0:s(e)?e.get("id"):e.id)||e,this.isSingleSchema?this.schema:this.schema[n]):e},i(e,[{key:"isSingleSchema",get:function(){return!this._schemaAttribute}}]),e}(),u=function(e){function t(t,n){if(!n)throw new Error('Expected option "schemaAttribute" not found on UnionSchema.');return e.call(this,t,n)||this}o(t,e);var n=t.prototype;return n.normalize=function(e,t,n,r,i,a){return this.normalizeValue(e,t,n,r,i,a)},n.denormalize=function(e,t){return this.denormalizeValue(e,t)},t}(d),p=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n.normalize=function(e,t,n,r,i,o){var s=this;return Object.keys(e).reduce((function(t,n,l){var c,d=e[n];return null!=d?a({},t,((c={})[n]=s.normalizeValue(d,e,n,r,i,o),c)):t}),{})},n.denormalize=function(e,t){var n=this;return Object.keys(e).reduce((function(r,i){var o,s=e[i];return a({},r,((o={})[i]=n.denormalizeValue(s,t),o))}),{})},t}(d),h=function(e){if(Array.isArray(e)&&e.length>1)throw new Error("Expected schema definition to be a single schema, but found "+e.length+".");return e[0]},m=function(e){return Array.isArray(e)?e:Object.keys(e).map((function(t){return e[t]}))},f=function(e,t,n,r,i,a,o){return e=h(e),m(t).map((function(t,s){return i(t,n,r,e,a,o)}))},_=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n.normalize=function(e,t,n,r,i,a){var o=this;return m(e).map((function(e,s){return o.normalizeValue(e,t,n,r,i,a)})).filter((function(e){return null!=e}))},n.denormalize=function(e,t){var n=this;return e&&e.map?e.map((function(e){return n.denormalizeValue(e,t)})):e},t}(d),g=function(e,t,n,r,i,o,s){var l=a({},t);return Object.keys(e).forEach((function(n){var r=e[n],a="function"==typeof r?r(t):r,c=i(t[n],t,n,a,o,s);null==c?delete l[n]:l[n]=c})),l},y=function(e,t,n){if(s(t))return l(e,t,n);var r=a({},t);return Object.keys(e).forEach((function(t){null!=r[t]&&(r[t]=n(r[t],e[t]))})),r},v=function e(t,n,r,i,a,o){return"object"==typeof t&&t?"object"!=typeof i||i.normalize&&"function"==typeof i.normalize?i.normalize(t,n,r,e,a,o):(Array.isArray(i)?f:g)(i,t,n,r,e,a,o):t},b={Array:_,Entity:c,Object:function(){function e(e){this.define(e)}var t=e.prototype;return t.define=function(e){this.schema=Object.keys(e).reduce((function(t,n){var r,i=e[n];return a({},t,((r={})[n]=i,r))}),this.schema||{})},t.normalize=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g.apply(void 0,[this.schema].concat(t))},t.denormalize=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.apply(void 0,[this.schema].concat(t))},e}(),Union:u,Values:p},w=function(e,t){if(!e||"object"!=typeof e)throw new Error('Unexpected input given to normalize. Expected type to be "object", found "'+(null===e?"null":typeof e)+'".');var n={},r=function(e){return function(t,n,r,i,a){var o=t.key,s=t.getId(r,i,a);o in e||(e[o]={});var l=e[o][s];e[o][s]=l?t.merge(l,n):n}}(n);return{entities:n,result:v(e,e,null,t,r,{})}}},762587:e=>{function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,r,i){n=n||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var o=/\+/g;e=e.split(n);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;c<l;++c){var d,u,p,h,m=e[c].replace(o,"%20"),f=m.indexOf(r);f>=0?(d=m.substr(0,f),u=m.substr(f+1)):(d=m,u=""),p=decodeURIComponent(d),h=decodeURIComponent(u),t(a,p)?Array.isArray(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a}},712361:e=>{var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,r,i){return n=n||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(i){var a=encodeURIComponent(t(i))+r;return Array.isArray(e[i])?e[i].map((function(e){return a+encodeURIComponent(t(e))})).join(n):a+encodeURIComponent(t(e[i]))})).join(n):i?encodeURIComponent(t(i))+r+encodeURIComponent(t(e)):""}},817673:(e,t,n)=>{t.decode=t.parse=n(762587),t.encode=t.stringify=n(712361)},52511:function(e,t,n){var r;e=n.nmd(e),function(i){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof n.g&&n.g;a.global!==a&&a.window!==a&&a.self;var o,s=2147483647,l=36,c=/^xn--/,d=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,m=String.fromCharCode;function f(e){throw RangeError(p[e])}function _(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function g(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+_((e=e.replace(u,".")).split("."),t).join(".")}function y(e){for(var t,n,r=[],i=0,a=e.length;i<a;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<a?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function v(e){return _(e,(function(e){var t="";return e>65535&&(t+=m((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=m(e)})).join("")}function b(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,n){var r=0;for(e=n?h(e/700):e>>1,e+=h(e/t);e>455;r+=l)e=h(e/35);return h(r+36*e/(e+38))}function S(e){var t,n,r,i,a,o,c,d,u,p,m,_=[],g=e.length,y=0,b=128,S=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&f("not-basic"),_.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<g;){for(a=y,o=1,c=l;i>=g&&f("invalid-input"),((d=(m=e.charCodeAt(i++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:l)>=l||d>h((s-y)/o))&&f("overflow"),y+=d*o,!(d<(u=c<=S?1:c>=S+26?26:c-S));c+=l)o>h(s/(p=l-u))&&f("overflow"),o*=p;S=w(y-a,t=_.length+1,0==a),h(y/t)>s-b&&f("overflow"),b+=h(y/t),y%=t,_.splice(y++,0,b)}return v(_)}function E(e){var t,n,r,i,a,o,c,d,u,p,_,g,v,S,E,P=[];for(g=(e=y(e)).length,t=128,n=0,a=72,o=0;o<g;++o)(_=e[o])<128&&P.push(m(_));for(r=i=P.length,i&&P.push("-");r<g;){for(c=s,o=0;o<g;++o)(_=e[o])>=t&&_<c&&(c=_);for(c-t>h((s-n)/(v=r+1))&&f("overflow"),n+=(c-t)*v,t=c,o=0;o<g;++o)if((_=e[o])<t&&++n>s&&f("overflow"),_==t){for(d=n,u=l;!(d<(p=u<=a?1:u>=a+26?26:u-a));u+=l)E=d-p,S=l-p,P.push(m(b(p+E%S,0))),d=h(E/S);P.push(m(b(d,0))),a=w(n,v,r==i),n=0,++r}++n,++t}return P.join("")}o={version:"1.3.2",ucs2:{decode:y,encode:v},decode:S,encode:E,toASCII:function(e){return g(e,(function(e){return d.test(e)?"xn--"+E(e):e}))},toUnicode:function(e){return g(e,(function(e){return c.test(e)?S(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},608575:(e,t,n)=>{var r=n(52511),i=n(762502);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=v,t.resolve=function(e,t){return v(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?v(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=v(e));return e instanceof a?e.format():a.prototype.format.call(e)},t.Url=a;var o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),d=["'"].concat(c),u=["%","/","?",";","#"].concat(d),p=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},_={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(817673);function v(e,t,n){if(e&&i.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),s=-1!==a&&a<e.indexOf("#")?"?":"#",c=e.split(s);c[0]=c[0].replace(/\\/g,"/");var v=e=c.join(s);if(v=v.trim(),!n&&1===e.split("#").length){var b=l.exec(v);if(b)return this.path=v,this.href=v,this.pathname=b[1],b[2]?(this.search=b[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=o.exec(v);if(w){var S=(w=w[0]).toLowerCase();this.protocol=S,v=v.substr(w.length)}if(n||w||v.match(/^\/\/[^@\/]+@[^@\/]+/)){var E="//"===v.substr(0,2);!E||w&&_[w]||(v=v.substr(2),this.slashes=!0)}if(!_[w]&&(E||w&&!g[w])){for(var P,T,R=-1,x=0;x<p.length;x++){-1!==(I=v.indexOf(p[x]))&&(-1===R||I<R)&&(R=I)}-1!==(T=-1===R?v.lastIndexOf("@"):v.lastIndexOf("@",R))&&(P=v.slice(0,T),v=v.slice(T+1),this.auth=decodeURIComponent(P)),R=-1;for(x=0;x<u.length;x++){var I;-1!==(I=v.indexOf(u[x]))&&(-1===R||I<R)&&(R=I)}-1===R&&(R=v.length),this.host=v.slice(0,R),v=v.slice(R),this.parseHost(),this.hostname=this.hostname||"";var A="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!A)for(var C=this.hostname.split(/\./),k=(x=0,C.length);x<k;x++){var O=C[x];if(O&&!O.match(h)){for(var D="",N=0,L=O.length;N<L;N++)O.charCodeAt(N)>127?D+="x":D+=O[N];if(!D.match(h)){var M=C.slice(0,x),j=C.slice(x+1),F=O.match(m);F&&(M.push(F[1]),j.unshift(F[2])),j.length&&(v="/"+j.join(".")+v),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=r.toASCII(this.hostname));var U=this.port?":"+this.port:"",Z=this.hostname||"";this.host=Z+U,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!f[S])for(x=0,k=d.length;x<k;x++){var B=d[x];if(-1!==v.indexOf(B)){var V=encodeURIComponent(B);V===B&&(V=escape(B)),v=v.split(B).join(V)}}var $=v.indexOf("#");-1!==$&&(this.hash=v.substr($),v=v.slice(0,$));var z=v.indexOf("?");if(-1!==z?(this.search=v.substr(z),this.query=v.substr(z+1),t&&(this.query=y.parse(this.query)),v=v.slice(0,z)):t&&(this.search="",this.query={}),v&&(this.pathname=v),g[S]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){U=this.pathname||"";var H=this.search||"";this.path=U+H}return this.href=this.format(),this},a.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",a=!1,o="";this.host?a=e+this.host:this.hostname&&(a=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(o=y.stringify(this.query));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==a?(a="//"+(a||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):a||(a=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+a+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+r},a.prototype.resolve=function(e){return this.resolveObject(v(e,!1,!0)).format()},a.prototype.resolveObject=function(e){if(i.isString(e)){var t=new a;t.parse(e,!1,!0),e=t}for(var n=new a,r=Object.keys(this),o=0;o<r.length;o++){var s=r[o];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),c=0;c<l.length;c++){var d=l[c];"protocol"!==d&&(n[d]=e[d])}return g[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!g[e.protocol]){for(var u=Object.keys(e),p=0;p<u.length;p++){var h=u[p];n[h]=e[h]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||_[e.protocol])n.pathname=e.pathname;else{for(var m=(e.pathname||"").split("/");m.length&&!(e.host=m.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==m[0]&&m.unshift(""),m.length<2&&m.unshift(""),n.pathname=m.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var f=n.pathname||"",y=n.search||"";n.path=f+y}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var v=n.pathname&&"/"===n.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=b||v||n.host&&e.pathname,S=w,E=n.pathname&&n.pathname.split("/")||[],P=(m=e.pathname&&e.pathname.split("/")||[],n.protocol&&!g[n.protocol]);if(P&&(n.hostname="",n.port=null,n.host&&(""===E[0]?E[0]=n.host:E.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===m[0]?m[0]=e.host:m.unshift(e.host)),e.host=null),w=w&&(""===m[0]||""===E[0])),b)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,E=m;else if(m.length)E||(E=[]),E.pop(),E=E.concat(m),n.search=e.search,n.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(P)n.hostname=n.host=E.shift(),(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=E.slice(-1)[0],R=(n.host||e.host||E.length>1)&&("."===T||".."===T)||""===T,x=0,I=E.length;I>=0;I--)"."===(T=E[I])?E.splice(I,1):".."===T?(E.splice(I,1),x++):x&&(E.splice(I,1),x--);if(!w&&!S)for(;x--;x)E.unshift("..");!w||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),R&&"/"!==E.join("/").substr(-1)&&E.push("");var A,C=""===E[0]||E[0]&&"/"===E[0].charAt(0);P&&(n.hostname=n.host=C?"":E.length?E.shift():"",(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift()));return(w=w||n.host&&E.length)&&!C&&E.unshift(""),E.length?n.pathname=E.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},a.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},762502:e=>{e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},17314:(e,t,n)=>{n.d(t,{Z:()=>c});var r,i,a=n(813653),o=n(861470),s=0,l=0;const c=function(e,t,n){var c=t&&n||0,d=t||new Array(16),u=(e=e||{}).node||r,p=void 0!==e.clockseq?e.clockseq:i;if(null==u||null==p){var h=e.random||(e.rng||a.Z)();null==u&&(u=r=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==p&&(p=i=16383&(h[6]<<8|h[7]))}var m=void 0!==e.msecs?e.msecs:Date.now(),f=void 0!==e.nsecs?e.nsecs:l+1,_=m-s+(f-l)/1e4;if(_<0&&void 0===e.clockseq&&(p=p+1&16383),(_<0||m>s)&&void 0===e.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=m,l=f,i=p;var g=(1e4*(268435455&(m+=122192928e5))+f)%4294967296;d[c++]=g>>>24&255,d[c++]=g>>>16&255,d[c++]=g>>>8&255,d[c++]=255&g;var y=m/4294967296*1e4&268435455;d[c++]=y>>>8&255,d[c++]=255&y,d[c++]=y>>>24&15|16,d[c++]=y>>>16&255,d[c++]=p>>>8|128,d[c++]=255&p;for(var v=0;v<6;++v)d[c+v]=u[v];return t||(0,o.Z)(d)}},397066:(e,t,n)=>{n.d(t,{b:()=>d,h:()=>u});var r=n(983722),i=n(768559),a=n(43760),o=n(170168),s=n(619937),l=n(48714),c=n(366284);const d=({href:e,pinId:t,pin:n,location:a,auxData:d},u)=>{if(n&&n.is_promoted){var p,h,m,f;const S=(0,i.Z)({boardUrl:null===(p=n.board)||void 0===p?void 0:p.url,callToCreateSourcePinId:n.call_to_create_source_pin_id,location:a,pinId:n.id,pinnerUserName:null===(h=n.pinner)||void 0===h?void 0:h.username,storyPinDataId:n.story_pin_data_id,trackingParams:n.tracking_params,trackingParamsMap:n.tracking_params_map}),E=(0,l.nS)({url:e,pinId:t,csrId:null,clientTrackingParams:S,auxData:d}),P=(0,r.Z)();if((0,c.G6)(null!==(m=null==P?void 0:P.userAgent.browserName)&&void 0!==m?m:"")){var _,g;const{group:r}=null!==(_=null==P?void 0:P.experimentsClient.checkExperiment("m10n_event_conversion_measurement"))&&void 0!==_?_:{},i=null!=P&&null!==(g=P.userAgent)&&void 0!==g&&g.browserVersion?P.userAgent.browserVersion:"0.0",a=parseFloat(i.split(".")[0]+"."+i.split(".")[1]);if(void 0!==n.campaign_id&&a>=14.1&&["enabled_safari"].includes(r)){var y;const r=n.attribution_source_id?((e,t,n)=>{const r=document.createElement("a");return r.setAttribute("href",t),r.setAttribute("target","_blank"),r.setAttribute("rel","noopener nofollow noreferrer"),r.style.cursor="pointer",r.style.display="block",r.setAttribute(s.$N.ATTRIBUTION_SOURCE_ID,e),r.setAttribute(s.$N.ATTRIBUTE_DESTINATION,n),r.setAttribute(s.$N.ATTRIBUTE_ON,n),r.click(),e})(n.attribution_source_id,E,e):((e,t,n)=>{const r=document.createElement("a");r.setAttribute("href",t),r.setAttribute("target","_blank"),r.setAttribute("rel","noopener nofollow noreferrer"),r.style.cursor="pointer",r.style.display="block";const i=""+(e%32*8+Math.floor(((new Date).getTime()-16409952e5)/864e5)%8);return r.setAttribute(s.$N.ATTRIBUTION_SOURCE_ID,i),r.setAttribute(s.$N.ATTRIBUTE_DESTINATION,n),r.setAttribute(s.$N.ATTRIBUTE_ON,n),r.click(),i})(null!==(y=n.pin_promotion_id)&&void 0!==y?y:0,E,e);return u({event_type:101,clientTrackingParams:S,object_id_str:t||"",aux_data:{pin_id:t||"",click_measurement_ppid:n.pin_promotion_id||"",click_measurement_campaign_id:n.campaign_id||"",is_pcm:!0,attribution_source_id:r,page_url:e}}),!0}}else if((0,c.i7)(null!==(f=null==P?void 0:P.userAgent.browserName)&&void 0!==f?f:"")){var v,b;const{group:r}=null!==(v=null==P?void 0:P.experimentsClient.checkExperiment("m10n_event_conversion_measurement_chrome"))&&void 0!==v?v:{},i=null!=P&&null!==(b=P.userAgent)&&void 0!==b&&b.browserVersion?parseInt(P.userAgent.browserVersion.split(".")[0],10):0;if(void 0!==n.attribution_source_id&&i>=101&&["enabled"].includes(r)){var w;const r=((e,t,n)=>{const r=new URL(`${o.C0}/attribution_source/`);r.searchParams.set(s.NR.ATTRIBUTION_SOURCE_EVENT_ID,e),r.searchParams.set(s.NR.ATTRIBUTION_DESTINATION,n),r.searchParams.set(s.NR.ATTRIBUTION_EXPIRY,""+s.uV);const i=document.createElement("a");return i.setAttribute("href",t),i.setAttribute("target","_blank"),i.setAttribute("rel","noopener nofollow noreferrer"),i.style.cursor="pointer",i.style.display="block",i.setAttribute(s.NR.ATTRIBUTION_SOURCE,r.toString()),i.click(),e})(null!==(w=n.attribution_source_id)&&void 0!==w?w:"0",E,e);return u({event_type:101,clientTrackingParams:S,object_id_str:t||"",aux_data:{pin_id:t||"",click_measurement_ppid:n.pin_promotion_id||"",click_measurement_campaign_id:n.campaign_id||"",is_arapi:!0,attribution_source_id:r,page_url:e}}),!0}}}return!1},u=({href:e,pinId:t,pin:n,location:r,auxData:o},s)=>{if("undefined"!=typeof window&&window.Windows)(0,a.Z)({url:e,pinId:t,pin:n,location:r,auxData:o});else{var c,u;if(d({href:e,pinId:t,pin:n,location:r,auxData:o},s))return;(0,l.Gj)({url:e,pinId:t,csrId:null,clientTrackingParams:(0,i.Z)({boardUrl:null==n||null===(c=n.board)||void 0===c?void 0:c.url,callToCreateSourcePinId:null==n?void 0:n.call_to_create_source_pin_id,location:r,pinId:null==n?void 0:n.id,pinnerUserName:null==n||null===(u=n.pinner)||void 0===u?void 0:u.username,storyPinDataId:null==n?void 0:n.story_pin_data_id,trackingParams:null==n?void 0:n.tracking_params,trackingParamsMap:null==n?void 0:n.tracking_params_map}),auxData:o})}}},807592:(e,t,n)=>{function r(e){const{max_price:t,min_price:n,price:r}=e;return t&&n?`${n}-${t}`:r}n.d(t,{Z:()=>r})},606441:(e,t,n)=>{n.d(t,{N:()=>i});var r=n(702664);function i(e){return(0,r.useSelector)((({pins:t})=>e?t[e]:null),r.shallowEqual)}},524309:(e,t,n)=>{n.d(t,{Qi:()=>c,RK:()=>l,$_:()=>s});var r=n(766935);var i=n(957161);const a="REDUX_STATE",o=()=>!!navigator.serviceWorker,s=()=>o()&&JSON.parse((0,i.qn)(a))||{},l=e=>(0,r.Z)((t=>{const n={};n[e]=t,o()&&(e=>{if(window.requestIdleCallback)return window.requestIdleCallback(e);{const t=Date.now();setTimeout((()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})}),1)}})((()=>(e=>{o()&&(0,i.Nh)(a,JSON.stringify({...s(),...e}))})(n)))}),1e3),c=()=>{(0,i.L_)(a)}},27255:(e,t,n)=>{n.d(t,{Z:()=>r});const r={AMP_TRACKING_DOMAIN:"amp.pinterest.com",BoardPrivacy:{SECRET:"secret",PUBLIC:"public",PROTECTED:"protected"},BoardType:{PROTECTED:"protected"},BulkAction:{MOVE:"bulkMove",COPY:"bulkCopy",CREATE_SECTION:"bulkCreateSection",DELETE:"bulkDelete"},MAX_CHARS_FOR_BOARD_PIN_DESCRIPTION:500,MAX_CHARS_FOR_BOARD_TITLE:50,MAX_CHARS_FOR_FIRST_NAME:30,MAX_FETCH_NUM_FOLLOWERS_PER_PAGE:50,MAX_STORED_VISITED_PIN_PAGES:10,VIDEO_AUTOPLAY_LOCAL_STORAGE_KEY:"_video_autoplay_state",VIDEO_IFRAME_ID:"video-iframe"}},558068:(e,t,n)=>{n.d(t,{Hv:()=>l,aX:()=>u,nK:()=>p});var r=n(667294),i=n(425288),a=n(276775),o=n(785893);const{Provider:s,useHook:l}=(0,i.Z)("HistoryStackContext",{previous:[],current:null,forward:[]}),c=e=>e&&e.pathname?e.pathname+(e.search||""):"";function d(e,t){var n;const r={action:t.type,location:t.location,match:t.match};if(t.location===(null===(n=e.current)||void 0===n?void 0:n.location))return e;switch(t.type){case"POP":return e.forward.length>0&&c(e.forward[0].location)===c(r.location)?{...e,forward:e.forward.slice(1),current:{...e.forward[0],action:t.type},previous:e.current?[...e.previous,{action:e.current.action,location:e.current.location,match:e.current.match}]:e.previous}:{...e,forward:e.current?[{action:e.current.action,location:e.current.location,match:e.current.match},...e.forward]:e.forward,current:{...e.previous.slice(-1)[0],action:t.type},previous:e.previous.slice(0,-1)};case"PUSH":return{...e,forward:e.forward.length>0?[]:e.forward,current:r,previous:e.current?[...e.previous,{action:e.current.action,location:e.current.location,match:e.current.match}]:e.previous};case"REPLACE":return{...e,current:r};default:return e}}function u(){const{current:e,previous:t}=l();return(0,r.useMemo)((()=>e?t.concat(e):t),[e,t])}function p({children:e}){const t=(0,a.useHistory)(),n=(0,a.useLocation)(),i=(0,a.useRouteMatch)(),l={forward:[],current:{action:t.action,location:n,match:i},previous:[]},[c,u]=(0,r.useReducer)(d,l);return(0,r.useEffect)((()=>{const{action:e}=t;u({type:e,location:n,match:i})}),[n]),(0,o.jsx)(s,{value:c,children:e})}},391254:(e,t,n)=>{n.d(t,{Z:()=>a});n(441143);var r=n(785893);class i{static factory(e){return e instanceof i?e:new i(String(e))}constructor(e){this._private_safe_value=e.trim().replace(">",">").replace("<","<").replace("&","&").replace('"','"').replace("'","'")}toString(){return this._private_safe_value}}function a(e){const{css:t,unsafeCSS:n,...a}=e,o=String(t||"")||n||"";return!!o?(0,r.jsx)("style",{...a,dangerouslySetInnerHTML:{__html:String(i.factory(o))}}):null}},310227:(e,t,n)=>{n.d(t,{Dv:()=>a,Ml:()=>o,Oc:()=>r,mv:()=>i});const r=16,i=4,a={SAVED:"rgba(0, 0, 0, 0.33)",VISUAL:"rgba(0, 0, 0, 0.1)",LEGO_WASH:"rgba(0, 0, 0, 0.4)"},o=120},700398:(e,t,n)=>{n.d(t,{Z:()=>i});const r=new Set([90,88,89,91,101,92,131]);function i(e){return r.has(e)}},941646:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(883119),i=n(785893);function a(e){const{children:t,display:n,id:a}=e;return(0,i.jsx)(r.xu,{"data-test-id":a,display:n,children:t})}},619937:(e,t,n)=>{n.d(t,{$N:()=>p,GY:()=>l,MZ:()=>o,NR:()=>d,Vn:()=>c,fm:()=>r,kM:()=>a,q6:()=>i,qp:()=>s,uV:()=>u});const r={DOWNLOAD_TEMPLATE:"DOWNLOAD_TEMPLATE",UPLOAD_TEMPLATE:"UPLOAD_TEMPLATE",HISTORY:"HISTORY",RESOURCES:"RESOURCES"},i={GENERAL:"GENERAL",CAMPAIGNS:"CAMPAIGNS",AD_GROUPS:"AD_GROUPS",ADS:"ADS",KEYWORDS:"KEYWORDS",PRODUCT_GROUPS:"PRODUCT_GROUPS",ERROR_CODES:"ERROR_CODES"},a={BILLING_HISTORY:"BILLING_HISTORY",BILLING_FORMS:"BILLING_FORMS",ORDER_LINES:"ORDER_LINES",PROMOTIONS:"PROMOTIONS",DOCUMENTS:"DOCUMENTS",PREPAID_CAMPAIGN_SPEND:"PREPAID_CAMPAIGN_SPEND_SUMMARY"},o={GOOGLE_TAG_MANAGER:"Google Tag Manager",SHOPIFY:"Shopify",WOO_COMMERCE:"WooCommerce",WORDPRESS:"WordPress",SQUARESPACE:"Squarespace",WEEBLY:"Weebly",TEALIUM:"Tealium",MAGENTO:"Magento",ECWID:"Ecwid",BIG_COMMERCE:"BigCommerce"},s={PINTEREST_TAG:"PINTEREST_TAG",PINTEREST_TAG_EVENTS:"PINTEREST_TAG_EVENTS",PINTEREST_TAG_HEALTH:"PINTEREST_TAG_HEALTH",CONVERSION_HEALTH:"CONVERSION_HEALTH",CONVERSION_UPLOAD:"CONVERSION_UPLOAD",UPLOAD_HISTORY:"UPLOAD_HISTORY",PCA_UPLOAD_HISTORY:"PCA_UPLOAD_HISTORY",PCA_UPLOAD:"PCA_UPLOAD",CONVERSIONS_API:"CONVERSIONS_API",CONVERSIONS_API_ACCESS_TOKEN:"CONVERSIONS_API_ACCESS_TOKEN",CONVERSIONS_API_DEDUPLICATION:"CONVERSIONS_API_DEDUPLICATION",PINTEREST_EVENTS_OVERVIEW:"PINTEREST_EVENTS_OVERVIEW",PINTEREST_EVENT_HISTORY:"PINTEREST_EVENT_HISTORY"},l={PINTEREST_TAG_DASHBOARD:"PINTEREST_TAG_DASHBOARD",PINTEREST_TAG_LANDING:"PINTEREST_TAG_LANDING",PINTEREST_TAG_INSTRUCTIONS:"PINTEREST_TAG_INSTRUCTIONS",CONVERSION_UPLOAD_LANDING:"CONVERSION_UPLOAD_LANDING",CONVERSION_UPLOAD_VALIDATION:"CONVERSION_UPLOAD_VALIDATION",CONVERSION_UPLOAD_HISTORY:"CONVERSION_UPLOAD_HISTORY",PCA_UPLOAD_HISTORY:"PCA_UPLOAD_HISTORY",PCA_UPLOAD_LANDING:"PCA_UPLOAD_LANDING",PCA_UPLOAD_VALIDATION:"PCA_UPLOAD_VALIDATION"},c={UNREAD:"UNREAD",READ:"READ",ACCEPTED:"ACCEPTED",REJECTED:"REJECTED",DISMISSED:"DISMISSED",INVALID:"INVALID",MUTED:"MUTED",SNOOZED:"SNOOZED",PMP_REPORTED:"PMP_REPORTED",EMAILED:"EMAILED",BULK_DOWNLOADED:"BULK_DOWNLOADED",FILTERED:"FILTERED",PUSHED:"PUSHED"},d={ATTRIBUTION_DESTINATION:"destination",ATTRIBUTION_EXPIRY:"expiry",ATTRIBUTION_SOURCE:"attributionsrc",ATTRIBUTION_SOURCE_EVENT_ID:"source_event_id"},u=604800,p={ATTRIBUTION_SOURCE_ID:"attributionsourceid",ATTRIBUTE_DESTINATION:"attributiondestination",ATTRIBUTE_ON:"attributeon"}},100183:(e,t,n)=>{n.d(t,{CC:()=>r,Ll:()=>a,XF:()=>i});const r=(e,t)=>((e,t,n)=>({x:Math.floor(e*Math.cos(n)),y:Math.floor(t*Math.sin(n))}))(t/2,e/2,2*Math.random()*Math.PI),i=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,a=e=>["@-webkit-keyframes","@keyframes"].map((t=>e.map((e=>t+" "+e)).join("\n"))).join("\n")},613316:(e,t,n)=>{function r(e){return[0,24,21,26].includes(e)}function i({articleType:e,id:t,title:n}){const r=n.toLowerCase().replace(/[.,\/#!?$%\^&\*+;:{}=\-_`~()\’'"]/g,"").trim().replace(/\s+/g,"-");return"today"===e?`/today/shop/${r}/${t}/`:`/discover/article/${r}/${t}/`}n.d(t,{x:()=>i,y:()=>r})},366284:(e,t,n)=>{n.d(t,{G6:()=>a,i7:()=>o,oi:()=>r,u$:()=>i,un:()=>l,vU:()=>s});const r=Object.freeze({OTHER:0,CHROME:1,SAFARI:2,IE:3,FIREFOX:4,OPERA:5,EDGE:6}),i=e=>{switch(!0){case e.includes("Chrome"):return r.CHROME;case e.includes("Safari"):return r.SAFARI;case e.includes("Firefox"):return r.FIREFOX;case e.includes("Opera"):return r.OPERA;case e.includes("IE"):return r.IE;case e.includes("Edge"):return r.EDGE;default:return r.OTHER}};function a(e){return i(e)===r.SAFARI}function o(e){return i(e)===r.CHROME}function s(e){return i(e)===r.FIREFOX}function l(e){return i(e)===r.EDGE}},56641:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(567831),i=n(867820);function a(e,t){if(t&&!(()=>{try{return window.localStorage.test=2,!1}catch(e){return!0}})()){const t=window.open(e,"_blank");return t&&(t.opener=null),t}{const t=(0,r.Z)(e);return setTimeout((()=>{(0,i.My)("setting_new_window_location")}),0),window.location.href=t,window}}},126098:(e,t,n)=>{function r(){if("undefined"!=typeof navigator&&"serviceWorker"in navigator&&void 0!==navigator.serviceWorker&&"Notification"in window&&"PushManager"in window)try{return window.Notification.permission}catch(e){return}}n.d(t,{Z:()=>r})},78714:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(56641),i=n(954931),a=n(867820);const o=(e,t)=>{null!=t&&t.disableOriginCheck||(0,i.Z)(e)||(e="/",(0,a.My)("url_reset")),(0,r.Z)(e)}},792182:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(667294),i=n(23279),a=n.n(i);function o(){const[e,t]=(0,r.useState)(null);return(0,r.useEffect)((()=>{const e=()=>t({width:window.innerWidth,height:window.innerHeight});e();const n=a()(e,50);return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}),[]),e}},834911:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(835209),i=n(341732);function a({carouselData:e,images:t,richMetadata:n,richSummary:a,shouldUnifyImageSizes:o,additionalImages:s}){const l=(0,r.Z)({richPinData:n||a});return l&&s&&s.length>0?(0,i.Z)(null,s,e&&e.index,o,l.id):l&&l.additional_images&&l.additional_images.length>0?(0,i.Z)(t,l.additional_images,e&&e.index,o,l.id):e||void 0}},341732:(e,t,n)=>{n.d(t,{Z:()=>a});const r=["236x","474x","564x","736x"];function i(e){function t(e,{imageKey:t,height:n,width:r}){return e.images&&e.images[t]&&(e={...e,images:{...e.images,[t]:{...e.images[t],height:n,width:r}}}),e}const n=r.map((function(t){const n=Math.min(...e.map((e=>e.images&&e.images[t]&&e.images[t].height||1/0))),r=Math.min(...e.map((e=>e.images&&e.images[t]&&e.images[t].width||1/0)));return{imageKey:t,height:n,width:r}}));return e.map((e=>n.reduce(t,e)))}function a(e,t,n,r,a){const o=(null==t?void 0:t.map((({canonical_images:e,image_signature:t})=>({images:e||void 0,image_signature:t||void 0}))))||[],s=e?[{images:e},...o]:o;return{carousel_slots:r?i(s):s,index:n||0,id:a}}},768559:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(826067);const i=/\/today\/(article|best|trending)\/[\w-]+\/(\d+)/,a=/\/discover\/article\/[\w-]+\/(\d+)/,o=(e,t)=>t?e.substring(t.length).split("/")[0]:e,s=({boardUrl:e,callToCreateSourcePinId:t,path:n,pinId:s,pinnerUserName:l,query:c,search:d,storyPinDataId:u})=>{var p,h;if(!n)return"";let m="";switch(n){case"/":case"/homefeed/":return"UserHomefeedResource";case l&&`/${l}/pins/`:return"UserPinsResource";case l&&`/${l}/`:case/\/_activity\//.test(n)&&n:return"UserActivityPinsResource";case/\/_created\//.test(n)&&n:return u?"UserStoryPinsFeedResource":"UserActivityPinsResource";case/\/_community\//.test(n)&&n:return"UserDiscoveredPinsResource";case/\/_shop\//.test(n)&&n:return"StoreFrontFeedResource";case/\/_saved\//.test(n)&&n:return"BoardlessPinsResource";case l&&`/${l}/_shopping_list/`:return"ShoppingListFeedResource";case/\/visual-search\//.test(n)&&n:return"VisualLiveSearchResource";case/\/pin\//.test(n)&&n:m="/pin/";const f=o(n,m);if(s!==f)return t?`ApiResource_callToCreatePins_${f}`:`RelatedPinFeedResource_${f}`;break;case/\/search\//.test(n)&&n:if(d){return`SearchResource_${((0,r.mB)(d,{shouldDecode:!1}).q||"").toLowerCase()}`}if(c)return`SearchResource_${encodeURIComponent(c.q||"").toLowerCase()}`;break;case a.test(n)&&n:return`ExploreArticleResource_${(null===(p=n.match(a))||void 0===p?void 0:p[2])||"unknown"}`;case/\/discover\/article\//.test(n)&&n:m="/discover/article/";return`ExploreArticleResource_${o(n,m)}`;case/\/categories\//.test(n)&&n:m="/categories/";return`CategoryFeedResource_${o(n,m)}`;case/\/discover\/topics\//.test(n)&&n:return"CategoryFeedResource";case/\/news_hub\//.test(n)&&n:m="/news_hub/";return`NewsHubDetailsResource_${o(n,m)}`;case/\/_tools\/more-ideas\//.test(n)&&n:return"BoardContentRecommendationResource";case/\/topics\//.test(n)&&n:m="/topics/";return`TopicFeedResource_${o(n,m)}`;case l&&`/${l}/products/`:return"StoreFrontFeedResource";case/\/source\//.test(n)&&n:m="/source/";return`DomainFeedResource_${o(n,m)}`;case/\/explore\//.test(n)&&n:m="/explore/";return`SearchResource_${o(n,m)}`;case e:case!!e&&/\/more_ideas\//.test(n)&&n:return"BoardFeedResource";case e&&n.indexOf(e)>-1&&n:return"BoardSectionPinsResource";case/\/following\//.test(n)&&n:return"FollowingFeedResource";case/\/brand_catalog\//.test(n)&&n:return"BrandCatalogFeedResource";case i.test(n)&&n:return`TodayArticleFeedResource_${(null===(h=n.match(i))||void 0===h?void 0:h[2])||"unknown"}`;case/\/today\//.test(n):return"TodayTabResource";case/\story_feed\//.test(n)&&n:if(d){const{feed_type:e,request_params:t}=(0,r.mB)(d);return`StoryFeedResource_${e}_${t}`}}return""},l=({boardUrl:e,callToCreateSourcePinId:t,location:n,pinId:r,pinnerUserName:i,previousHistory:a,storyPinDataId:o,trackingParams:l,trackingParamsMap:c={}})=>{if(!r||!l||!n)return;if(!c)return`${l}~0`;const{pathname:d,search:u,query:p}=n,h=s({boardUrl:e,callToCreateSourcePinId:t,path:d,pinId:r,pinnerUserName:i,query:p,search:u,storyPinDataId:o,trackingParams:l,trackingParamsMap:c}),m=Object.keys(c);let f;if((d||"").startsWith("/pin/")){const e=m.find((e=>"PinResource"!==e));f=e?c[e]:c.PinResource}else f=c[h];let _;if(!f&&a&&a.length){const n=(e=>{let t=null==e?void 0:e.pathname;return t?(t.match(/\/search\//)&&null!=e&&e.search&&(t+=e.search),t.toLowerCase()):""})(a[a.length-1].location);_=s({boardUrl:e,callToCreateSourcePinId:t,path:n,pinId:r,pinnerUserName:i,query:p,search:u,storyPinDataId:o,trackingParams:l,trackingParamsMap:c}),f=c[_]}return f||(f=`${l||""}~0`),f}},81636:(e,t,n)=>{n.d(t,{Q:()=>c,Z:()=>d});var r=n(667294),i=n(682492),a=n.n(i),o=n(112690),s=n(780280),l=n(385740);function c(e,t){const{setViewContextData:n}=(0,l.sV)(),{requestIdentifier:i}=(0,s.B)(),c=(0,o.Z)(),{viewData:d}=(0,l.SU)();(0,r.useEffect)((()=>{var t;e&&(n({viewType:null!==(t=e.view_type)&&void 0!==t?t:1,viewParameter:e.view_parameter,viewData:e.view_data?a()(d,e.view_data):a()({},d),component:e.component,element:e.element,objectIdStr:e.object_id_str,auxData:e.aux_data,clientTrackingParams:e.clientTrackingParams}),c({...e,event_type:13,request_identifier:i}))}),[t])}function d(e){const{children:t,log:n}=e;return c(n),t||null}},745760:(e,t,n)=>{n.d(t,{Ch:()=>p,nc:()=>w,a:()=>S,ZP:()=>E,cA:()=>v,li:()=>b,h1:()=>d});var r=n(682492),i=n.n(r),a=n(6637),o=n(594881),s=n(706922);var l=n(385740),c=n(172045);const d=()=>1e6*Date.now(),u=[6945,170],p={3829:"articleImpressions",18:"pinImpressions",3700:"boardImpressions",3803:"searchImpressions",170:"storyImpression",3704:"userImpressions"},h=[4700,4701,4702,4703,7042,7043],m=e=>function(e){let t=e.length;for(let n=e.length-1;n>=0;n-=1){const r=e.charCodeAt(n);r>127&&r<=2047?t+=1:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&(n-=1)}return t}(JSON.stringify(e)),f=e=>u.includes(e);let _;function g(){const e=new Date;_?_&&_.getUTCDate()!==e.getUTCDate()&&(_=e,(0,o.Z)()):_=e}function y(e){return e.reduce(((e,t)=>{const n=e.find((r=t,e=>e.view_type===r.viewType&&e.view_parameter===r.viewParameter&&e.event_type===r.eventType&&e.object_id_str===r.objectIdStr&&(0,s.Z)(e.view_data,r.viewData)));var r;if(n&&!f(t.eventType))t.impressionType in n.event_data?n.event_data[t.impressionType].push(t.eventData):n.event_data[t.impressionType]=[t.eventData];else{const n={event_type:t.eventType,view_parameter:t.viewParameter,view_type:t.viewType,view_data:t.viewData,time:d(),component:t.component,clientUUID:(0,c.Z)(),aux_data:t.auxData||{},appState:t.appState,event_data:{[t.impressionType]:f(t.eventType)?{...t.eventData,...(t.eventData||{})[t.impressionType]}:[t.eventData]},object_id_str:t.objectIdStr||void 0};e.push(n)}return e}),[])}const v=e=>{const t=e.event_type,n=h.includes(t),r=(0,l.BE)();return!(!n&&13!==t&&!r)},b=(e,t)=>{const n=e.event_type,r=h.includes(n),a=(0,l.BE)();return r?e:13===n&&e.view_type?(null==t||t({viewType:e.view_type,viewParameter:e.view_parameter,viewData:null!=a&&a.viewData?i()(a.viewData,e.view_data):i()({},e.view_data)}),e):!a||e.view_type&&e.view_parameter?e:{...e,view_type:a.viewType,view_parameter:a.viewParameter,view_data:e.view_data?i()(e.view_data,a.viewData):i()({},a.viewData)}},w=(e,t)=>{var n,r;const i=e.component,a=e.object_id_str,o=e.view_type,s=e.event_type,l=e.appState;return null!==(n=((null===(r=e.event_data)||void 0===r?void 0:r[t])||[]).map((n=>({auxData:e.aux_data,...i?{component:i}:{},eventData:n,...s?{eventType:s}:{},...o?{viewType:o}:{},viewData:e.view_data,viewParameter:e.view_parameter,...a?{objectIdStr:a}:null,impressionType:t,appState:l}))))&&void 0!==n?n:[]},S=(e,t)=>({...e.component?{component:e.component}:{},...e.object_id_str?{objectIdStr:e.object_id_str}:null,...e.view_type?{viewType:e.view_type}:{},eventType:e.event_type,auxData:e.aux_data,impressionType:t,viewData:e.view_data,viewParameter:e.view_parameter,eventData:e.event_data});function E(){let e=[],t=[],n=0;function r(){return[...e,...y(t)]}function i(){e=[],t=[],n=0}function o(e=!1){const t=r();t.length&&(a.Z.create("ContextLogResource",{events:t,report_time:d()}).callCreate({async:!e,showError:!1}),i(),g())}return{flushContextEvents:o,getContextEvents:r,logContextEvent:function({object_id_str:t,...r}){const i={aux_data:{},event_data:{},view_data:{},...r,time:d(),clientUUID:(0,c.Z)(),...t?{object_id_str:t}:null};i.aux_data=function(e){if(!e)return e;const{element:t,eventData:n,component:r,objectId:i,view:a,viewParameter:o,viewData:s,durationNs:l,pairId:c,clientTrackingParams:d,...u}=e;return u}(i.aux_data),n+m(i)>20480&&o(!1),e.push(i),g()},logImpression:function(e){n+m(e)>20480&&o(!1),t.push(e)},resetEventsBuffer:i}}},112690:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(407043);const i=()=>(0,r.v)().logContextEvent},643010:(e,t,n)=>{n.d(t,{F6:()=>u,Hs:()=>d,Uf:()=>o,Yc:()=>l,vs:()=>c});var r=n(667294),i=n(867820),a=n(957161);const o="theme",s="dark"===(0,a.qn)(o),l=()=>s;function c(){const[e,t]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{t(l())}),[t]),e}const d=()=>{(0,a.Nh)(o,"dark"),(0,i.My)("mweb.dark_mode.enable"),window.location.reload()},u=()=>{(0,a.L_)(o),(0,i.My)("mweb.dark_mode.disable"),window.location.reload()}},81226:(e,t,n)=>{function r(e){const t=Math.round(e/1e3),n=t%60;return Math.floor(t/60)+":"+(n<10?"0":"")+n}n.d(t,{Z:()=>r})},766935:(e,t,n)=>{function r(e,t){let n;return(...r)=>{clearTimeout(n),n=setTimeout((()=>e(...r)),t)}}n.d(t,{Z:()=>r})},966476:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(667294);const i=()=>{const[e,t]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{t(!0)}),[]),e}},722767:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(667294),i=n(973935);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class o extends r.Component{constructor(...e){super(...e),a(this,"observer",null),a(this,"handleVisibilityChanged",((e,t)=>{this.props.onVisibilityChange(e,t)}))}componentDidMount(){const e=i.findDOMNode(this);e instanceof HTMLElement&&(this.node=e),this.node&&(this.observer=new window.IntersectionObserver(this.handleVisibilityChanged,this.props.options),this.observer.observe(this.node))}componentWillUnmount(){this.observer&&(this.observer.unobserve(this.node),delete this.observer)}render(){return r.Children.only(this.props.children)}}const s=o},121093:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(667294),i=n(702664),a=n(332611),o=n(242923);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l extends r.Component{constructor(...e){super(...e),s(this,"state",{hasCompleted:[],hasDismissed:[]}),s(this,"view",(()=>{const{experience:e,isBackendExperience:t,targeting:n,viewExperience:r,viewExperienceObject:i}=this.props;e&&"viewed"!==e.status&&(t?(e.status="viewed",i(e)):n?r(e.placement_id,e.experience_id,n):r(e.placement_id,e.experience_id))})),s(this,"complete",(e=>{const{completeExperience:t,completeExperienceObject:n,experience:r,isBackendExperience:i,preventRemoval:a,targeting:o}=this.props,s=e||1;if(r&&!this.state.hasCompleted.includes(r.experience_id)){const{placement_id:e,experience_id:l}=r||{},c=a||2===s;(1===s||c)&&e&&l&&(i?n(r,c):o?t(e,l,c,o):t(e,l,c),this.setState((e=>({hasCompleted:[...e.hasCompleted,l]}))))}})),s(this,"dismiss",(()=>{const{dismissExperience:e,dismissExperienceObject:t,experience:n,isBackendExperience:r,preventRemoval:i,targeting:a}=this.props,{placement_id:o,experience_id:s}=n||{};n&&!this.state.hasDismissed.includes(s)&&(r?t(n):a?e(o,s,!!i,a):e(o,s,!!i),this.setState((e=>({hasDismissed:[...e.hasDismissed,s]}))))})),s(this,"shouldRenderExperience",(()=>{const{experience:e}=this.props;if(e){const{eligibleIds:t,eligibleTypes:n,predicate:r,transitionType:i}=this.props,{experience_id:a,type:o}=e;if(t&&t.includes(a))return!0;if(null==t||!t.length){if(r&&r(e))return!0;if(n&&n.includes(o))return!0;if(i&&i===o)return!0}}return!1}))}componentDidMount(){if(this.props.disableAutoView)return;const{experience:e}=this.props;e&&this.shouldRenderExperience()&&this.view()}componentDidUpdate(e){if(this.props.disableAutoView)return;const t=e.experience,n=this.props.experience;n&&this.shouldRenderExperience()&&(t&&t.experience_id===n.experience_id||this.view())}render(){const{children:e,experience:t,disableAutoView:n}=this.props;return t&&this.shouldRenderExperience()?"function"==typeof e?e({experience:t,complete:this.complete,dismiss:this.dismiss,...n?{view:this.view}:Object.freeze({})}):r.Children.only(e):null}}s(l,"defaultProps",{eligibleIds:[],eligibleTypes:[]});const c=(0,i.connect)((({experiences:e},t)=>({experience:t.experience||(t.placementId?e[t.placementId]:void 0)})),(e=>({completeExperience:(t,n,r,i)=>e((0,a.CK)(t,n,r,!1,{},i)),completeExperienceObject:(t,n)=>e((0,o.Tl)(t,n)),dismissExperience:(t,n,r,i)=>e((0,a.Qu)(t,n,r,void 0,i)),dismissExperienceObject:t=>e((0,o.CF)(t)),viewExperience:(t,n,r)=>e((0,a.UT)(t,n,!1,!1,void 0,r)),viewExperienceObject:t=>e((0,o.dy)(t))})))(l)},123159:(e,t,n)=>{n.d(t,{F:()=>p,M:()=>u});var r=n(667294),i=n(702664),a=n(14890),o=n(957191),s=n(425288),l=n(332611),c=n(785893);const{Provider:d,useHook:u}=(0,s.Z)("ExperienceContext");function p({children:e}){const[t,n]=(0,r.useReducer)(((e,t)=>{if("MOUNT_PLACEMENT"===t.type)return{...e,[t.payload]:!0};if("UNMOUNT_PLACEMENT"===t.type){const n={...e};return delete n[t.payload],n}return e}),{}),s=(0,i.useDispatch)(),u=(0,i.useSelector)((e=>e.experiences)),p=(0,r.useMemo)((()=>{const e=(0,a.bindActionCreators)({completeExperience:l.CK,dismissExperience:l.Qu,fetchAllExperiences:l.fO,fetchAllExperiencesMulti:o.NW,fetchExperienceForPlacements:l.pz,mountPlacement:l.N,triggerExperimentsForPlacement:l.kd,viewExperience:l.UT},s);return{...e,mountPlacement:(t,...r)=>{e.mountPlacement(t,...r),n({type:"MOUNT_PLACEMENT",payload:t})},unmountPlacement:e=>{n({type:"UNMOUNT_PLACEMENT",payload:e})}}}),[s,n]),h=(0,r.useMemo)((()=>({experiences:u,mountedPlacements:t,...p})),[u,t,p]);return(0,c.jsx)(d,{value:h,children:e})}},332611:(e,t,n)=>{n.d(t,{CK:()=>p,N:()=>g,Qu:()=>h,UT:()=>u,YX:()=>_,d9:()=>m,fO:()=>l,kd:()=>f,pz:()=>c});var r=n(6637),i=n(764990),a=n(172071),o=n(957191);let s;const l=(e,t)=>n=>{const i=t?{extra_context:e,targeting:t}:{extra_context:e};return r.Z.create("UserExperiencePlatformResource",i).callGet().then((e=>e.resource_response?n((0,o.OD)(e.resource_response.data)):void 0))},c=(e,t,n,a)=>(l,c)=>{if(t)return Promise.resolve();if(a&&(s=a),1===e.length){const t=e[0],r=c().experiences[t],a=(null==r?void 0:r.extraContext)||null;if(JSON.stringify(a)===JSON.stringify(n)||(0,i.E3)(r)&&!(n&&Object.keys(n).length>0))return Promise.resolve()}return r.Z.create("UserExperienceResource",{placement_ids:e,extra_context:n||null,targeting:a}).callGet().then((e=>e.resource_response?l((0,o.cL)(e.resource_response.data)):void 0))},d=(e,t)=>(n,i,a,c=!1,d,u)=>(p,h)=>{const{experiences:m,experiencesMulti:f}=h();let _=null,g=!0;var y;c||(g=m[n]&&m[n].experience_id===i,_=g?m[n]:Array.isArray(f[n])&&(null===(y=f[n])||void 0===y?void 0:y.find((e=>e.experience_id===i))));if(_&&_.experience_id===i||c&&n&&i){const c=r.Z.create(e,{placed_experience_id:`${n}%3A${i}`,extra_context:null!=d?d:{},targeting:u}),h=g?o.Yb:o.xW;switch(t){case"dismissed":return c.callDelete().then((()=>{p(h(n,i,t)),p(l(void 0,s))}));case"completed":return c.callUpdate().then((()=>{a||(p(h(n,i,t)),p(l(void 0,s)))}));case"viewed":return p(h(n,i,t)),c.callUpdate().then((()=>{1000162===n&&p(l())}));case"completedWithoutHomefeed":return c.callUpdate().then((()=>{a||p(h(n,i,t))}));default:return Promise.resolve()}}return Promise.resolve()},u=d("UserExperienceViewedResource","viewed"),p=d("UserExperienceCompletedResource","completed"),h=d("UserExperienceResource","dismissed"),m=d("UserExperienceCompletedResource","completedWithoutHomefeed"),f=(e,t)=>(n,i)=>{const{experiences:o}=i(),s=o[e];s&&s.triggerable_placed_exps&&s.triggerable_placed_exps.length&&s.triggerable_placed_exps.forEach((n=>{const[,i]=n.split(":");let o=t;s.metadata&&s.metadata[i]&&(o={...t,...s.metadata[i]}),r.Z.create("UserExperienceTriggerResource",{placed_experience_id:n.replace(":","%3A"),extra_context:o}).callUpdate().then((()=>{((e,t,n={})=>{a.Z.increment(`${e}.${t}`,1,n)})("experienceservice","experimentTriggerCall.1",{placement_id:e,experience_id:i})}))}))},_=e=>(t,n)=>{t(f(e));const{experiences:r}=n();return r[e]},g=(e,t,n)=>r=>{n&&(s=n),r(f(e,t)),t&&Object.keys(t).length>0&&r(c([e],!1,t,n))}},242923:(e,t,n)=>{n.d(t,{CF:()=>s,Tl:()=>o,dy:()=>l});var r=n(6637),i=n(332611);const a=(e,t)=>(n,a)=>o=>{if(n&&n.id){const s=r.Z.create(e,{placed_experience_id:n.id,extra_context:{}});switch(t){case"dismissed":s.callDelete().then((()=>{o((0,i.fO)())}));break;case"completed":s.callUpdate().then((()=>{a||o((0,i.fO)())}));break;case"viewed":s.callUpdate()}}},o=a("UserExperienceCompletedResource","completed"),s=a("UserExperienceResource","dismissed"),l=a("UserExperienceViewedResource","viewed")},764990:(e,t,n)=>{function r(e){return!!e&&0!==e.type}n.d(t,{A0:()=>a,E3:()=>r,MQ:()=>i});const i=(e,t,n)=>{const i=e[n];return t[n]&&r(i)?i:null};function a(e){var t;return null===(t=e.display_data)||void 0===t?void 0:t.anchor}},207737:(e,t,n)=>{n.d(t,{$S:()=>r,V$:()=>i,_4:()=>o,iY:()=>s,mR:()=>a});const r="REFRESH_ALL_EXPERIENCES_MULTI",i="UPDATE_EXPERIENCE_MULTI",a="FETCH_EXPERIENCES",o="REFRESH_ALL_EXPERIENCES",s="UPDATE_EXPERIENCE"},957191:(e,t,n)=>{n.d(t,{NW:()=>o,OD:()=>l,Yb:()=>s,cL:()=>c,xW:()=>a});var r=n(6637),i=n(207737);const a=(e,t,n)=>({type:i.V$,payload:{placementId:e,experienceId:t,status:n}}),o=e=>t=>r.Z.create("UserExperiencePlatformResource",{extra_context:e,multiExperiencePlatform:!0}).callGet().then((e=>{return e.resource_response?t((n=e.resource_response.data,{type:i.$S,payload:{experiencesMulti:n}})):void 0;var n})),s=(e,t,n)=>({type:i.iY,payload:{placementId:e,experienceId:t,status:n}}),l=e=>({type:i._4,payload:{experiences:e}}),c=e=>({type:i.mR,payload:{experiences:e}})},497529:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(667294),i=(n(957191),n(764990)),a=n(123159);n(332611);function o(e){const{mountedPlacements:t,completeExperience:n,dismissExperience:o,experiences:s,fetchAllExperiences:l,fetchAllExperiencesMulti:c,fetchExperienceForPlacements:d,triggerExperimentsForPlacement:u,viewExperience:p}=(0,a.M)(),h=e?(0,i.MQ)(s,t,e):null;return(0,r.useMemo)((()=>({completeExperience:n,dismissExperience:o,experienceForPlacement:h,fetchAllExperiences:l,fetchAllExperiencesMulti:c,fetchExperienceForPlacements:d,triggerExperimentsForPlacement:u,viewExperience:p})),[n,o,h,l,c,d,u,p])}},116303:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(883119),i=n(785893);const a=(e,t)=>{const n=null==e?void 0:e.includes("images/user/default");return Boolean(n&&t)};function o({accessibilityLabel:e,name:t,outline:n,size:o,src:s,verified:l}){return(0,i.jsx)(r.qE,{accessibilityLabel:e,name:t,outline:n,size:o,src:a(s,t)?void 0:s,verified:l})}},920231:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(667294),i=n(319915);function a({flexible:e,gutterWidth:t,id:n,isRTL:r,itemWidth:i,maxColumns:a,minColumns:o}){const s=n.replace(/\:/g,"\\:"),l=i+t;return`\n    .gridCentered {\n      margin-left: auto;\n      margin-right: auto;\n    }\n\n    .gridCentered .static {\n      position: absolute !important;\n      visibility: hidden !important;\n    }\n\n    ${Array.from({length:a+1-o},((e,t)=>t+o)).map((n=>{const c=n===a?null:(n+1)*l-1;return`\n      @media (min-width: ${n===o?0:n*l}px) ${c?`and (max-width: ${c}px)`:""} {\n        #${s} .static:nth-child(-n+${n}) {\n          position: static !important;\n          visibility: visible !important;\n          float: ${r?"right":"left"};\n          display: block;\n        }\n\n        ${e?`\n      #${s} .static {\n        width: calc(100% / ${n}) !important;\n      }\n    `:`\n      #${s} {\n        width: ${n*l}px;\n      }\n\n      #${s} .static {\n        padding: 0 ${t/2}px;\n        width: ${i}px !important;\n      }\n    `}\n      }\n    `})).join("")}\n  `}var o=n(757184),s=n(391254),l=n(50286),c=n(883119),d=n(773285),u=n(780280),p=n(444445),h=n(785893);function m({cacheKey:e,columnWidth:t,gutterWidth:n,id:m,Item:f,items:_,layout:g,loadItems:y,masonryRef:v,minCols:b,scrollContainerRef:w,serverRender:S,resetPositions:E,virtualize:P=!0}){var T;const{isRTL:R}=(0,u.B)(),x="desktop"!==(0,l.ZP)(),I=S?"serverRenderedFlexible":"flexible",A=(0,r.useCallback)((()=>(null==w?void 0:w.current)||window),[w]),C=(0,o.Z)(e),[k,O]=(0,r.useState)(!1);(0,r.useEffect)((()=>{E&&!k&&(null==C||C.reset(),O(!0))}),[C,E,k]);const D=(0,r.useCallback)((e=>(0,h.jsx)(i.Z,{name:"MobileGridItem",children:(0,h.jsx)(f,{...e})})),[f]),{checkExperiment:N}=(0,d.F)(),L=null!==(T={enabled_0_3:"0.3",enabled_0_5:"0.5",enabled_0_9:"0.9",enabled_1_1:"1.1",enabled_1_3:"1.3"}[N("duplo_masonry_virtual_buffer_factor").group])&&void 0!==T?T:.7;return(0,h.jsxs)("div",{id:m,className:"gridCentered",children:[S&&m&&(0,h.jsx)(s.Z,{"data-test-id":"mobile-grid-styles",unsafeCSS:a({flexible:x,gutterWidth:n||0,id:m,isRTL:R,itemWidth:t||p.yF,maxColumns:_.length||p.g5,minColumns:b||p.yc})}),(0,h.jsx)(c.Rk,{columnWidth:t,Item:D,gutterWidth:n||1,layout:x?I:null!=g?g:"basic",items:_,loadItems:y,measurementStore:(0,o.Z)(e),minCols:b||p.yc,ref:e=>{v&&(v.current=e)},scrollContainer:A,virtualize:P,virtualBufferFactor:L})]})}},757184:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(883119);const i={};function a(e){if(null!=e)return i[e]&&i[e].screenWidth===window.innerWidth||(i[e]={screenWidth:window.innerWidth,cache:r.Rk.createMeasurementStore()}),i[e].cache}},121151:(e,t,n)=>{n.d(t,{ZP:()=>d,b7:()=>s.b7,bN:()=>l,p4:()=>c});var r=n(50286),i=n(883119),a=n(240684),o=n(785893),s=n(968121);const l=(0,a.ZP)({resolved:{},chunkName:()=>"DesktopModal",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e(51879).then(n.bind(n,373420)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve(){return 373420}}),c=(0,a.ZP)({resolved:{},chunkName:()=>"MobileModal",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e(72430).then(n.bind(n,430322)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve(){return 430322}});function d(e){const t=(0,r.ZP)(),n=void 0===e.isOpen||e.isOpen;if("desktop"===t&&n){const{isOpen:t,mobileAccessibilityCloseIconLabel:n,mobileAllowScroll:r,mobileHideCloseIcon:i,mobileIsFullscreen:a,mobileIsSlideUp:s,type:c,...d}=e;return(0,o.jsx)(l,{...d})}const{allowClickAndDrag:i,allowMediaPlay:a,allowScroll:s,role:d,size:u,...p}=e;return(0,o.jsx)(c,{...p,isOpen:n})}},968121:(e,t,n)=>{n.d(t,{JN:()=>u,Vf:()=>p,ZM:()=>s,b7:()=>o,bf:()=>d,i_:()=>l,ju:()=>h});var r=n(379764),i=n(643010),a=n(883119);const o=new a.Ry(1e3),s=new a.H3([r.Z]),l=12,c={headingOffset:{__style:{marginLeft:-10,marginRight:50}},RTLheadingOffset:{__style:{marginRight:-10,marginLeft:50}},mask:{baseStyles:{backgroundColor:"rgba(0,0,0, .5)",height:"100%",touchAction:"none",transitionProperty:"opacity",transitionTimingFunction:"ease-out",width:"100%",zIndex:1}},modal:{baseStyles:{border:(0,i.Yc)()?void 0:"1px solid #efefef",touchAction:"none",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",width:"100vw",zIndex:1,left:"0px",bottom:0,borderRadius:"32px 32px 0px 0px",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)",overflow:"hidden"},tabletStyles:{border:void 0,borderRadius:"32px",top:"50%",left:"50%",minWidth:"350px",touchAction:"none",transform:"translate(-50%, -50%)",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",zIndex:1},nonTabletSignUpStyles:{border:void 0,borderRadius:"32px",top:"50%",touchAction:"none",transform:"translate(0%, -50%)",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",zIndex:1,left:"8px",right:"8px",background:"#FFFFFF"},baseStylesSliding:{border:(0,i.Yc)()?void 0:"1px solid #efefef",touchAction:"none",width:"100vw",height:"",zIndex:1,left:0,bottom:0,borderRadius:"32px 32px 0px 0px",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)"},fullscreenStyles:{touchAction:"none",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",width:"90vw",height:"70vh",borderRadius:"8px",zIndex:1,left:"5vw",bottom:"13vh",overflowY:"hidden"},tabletNarrowStyle:{width:425,left:"50%",transform:"translateX(-50%)"}}},d=()=>({__style:c.mask.baseStyles}),u=({isFullscreen:e,isTablet:t,modalStyle:n,type:r})=>{const i=c.modal.fullscreenStyles;let a;return a=e?i:t?c.modal.tabletStyles:"signup"===r?c.modal.nonTabletSignUpStyles:{...c.modal.baseStyles,borderRadius:"32px 32px 0 0"},{__style:n||a}},p=({isFullscreen:e,isTablet:t,isShowing:n,type:r})=>{let i=c.modal.baseStylesSliding,a=n?"translateY(0)":"translateY(100vh)";return i.height=e?"100vh":"",t&&"related_interests_modal"===r&&(i={...i,...c.modal.tabletNarrowStyle},a=n?"translate(-50%, 0)":"translate(-50%, 100vh)"),{__style:{...i,transition:"all 225ms cubic-bezier(0.0,0.0,0.2,1) 500ms",transform:a}}},h=e=>e?c.RTLheadingOffset:c.headingOffset},499128:(e,t,n)=>{n.d(t,{UZ:()=>c,Vg:()=>l,ZP:()=>d});var r=n(667294),i=n(829407),a=n(50286),o=n(883119),s=n(785893);const l=200,c=({deviceType:e,hiding:t,visible:n})=>{const r="desktop"===e;let i=0,a=r?"translateY(200px)":"translateY(-200px)",o="opacity 0.1s ease-in-out",s="hidden";return n&&!t&&(i=1,a="translateY(0)",o="all 0.7s cubic-bezier(.19, 1.15, .48, 1)",s="visible"),n&&t&&(a="scale(1.1)",o="opacity transform 0.2s"),{opacity:i,pointerEvents:"auto",position:"relative",marginTop:r?10:0,transform:a,transition:o,visibility:s}};function d({_dangerouslySetPrimaryAction:e,text:t,primaryAction:n,thumbnailShape:d,variant:u,dataTestId:p,duration:h=2e3,onHide:m,href:f,onClick:_,openNewPage:g,iconThumbnail:y,imageUrl:v}){const b=(0,a.ZP)(),[w,S]=(0,r.useState)(!1),[E,P]=(0,r.useState)(!1),T=(0,r.useRef)(),R=()=>{S(!0),T.current=setTimeout(m,l)},x=()=>{T.current=setTimeout(R,h)},I=()=>{T.current&&clearTimeout(T.current)};let A;(0,i.Z)((()=>(setTimeout((()=>P(!0)),100),x(),I))),y?A=y:v&&(A=(0,s.jsx)(o.xu,{height:48,overflow:"hidden",width:48,children:(0,s.jsx)(o.Ee,{alt:"string"==typeof t?t:`${t[0]} ${t[1]}`,fit:"cover",naturalHeight:1,naturalWidth:1,src:v})}));const C=(0,s.jsx)(o.FN,{_dangerouslySetPrimaryAction:e,primaryAction:n,text:t,thumbnail:A,thumbnailShape:d,variant:u}),{marginTop:k,opacity:O,pointerEvents:D,position:N,transform:L,transition:M,visibility:j}=c({deviceType:b,hiding:w,visible:E});return(0,s.jsx)(o.xu,{dangerouslySetInlineStyle:{__style:{transform:L,transition:M,visibility:j,pointerEvents:D}},"data-test-id":null!=p?p:"toast",onMouseEnter:I,onMouseLeave:x,opacity:O,position:N,marginTop:k,display:"flex",children:f?(0,s.jsx)(o.iP,{role:"link",href:f,onTap:({event:e})=>null==_?void 0:_(e),target:g?"blank":null,rounding:"pill",children:C}):C})}},444445:(e,t,n)=>{n.d(t,{$H:()=>o,$q:()=>g,D6:()=>l,KN:()=>y,Lo:()=>i,P2:()=>m,ZZ:()=>d,g5:()=>u,jC:()=>s,lX:()=>h,nW:()=>p,oX:()=>f,qG:()=>_,tG:()=>a,yF:()=>r,yc:()=>c});const r=236,i=2*r/3,a=175,o=24,s=4,l=2,c=2,d=14,u=16,p=12,h=16,m=24,f=16,_=-1,g=(e=!1,t=!1)=>e?t?h:p:m,y=(e,t,n,r,i=d)=>{const a=e+i;return`\n@media (min-width: ${t*a}px) and (max-width: ${(n+1)*a-1}px) {\n  ${r}\n}\n`}},298361:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(898781),i=n(349700),a=n(202139);function o(){const e=(0,r.ZP)();return function(t,n){const r=new Date(t),o=new Date-r,s=Math.floor(o/a.FS),l=Math.floor(o/a.UK),c=Math.floor(o/a.F4),d=Math.floor(o/a.VL),u=Math.floor(o/a.N1),p=e.nbt(["{{ minutes }} minute ago", "{{ minutes }} minutes ago"], s, " - ", true),h=e.nbt(["{{ hours }} hour ago", "{{ hours }} hours ago"], l, " - ", true),m=e.nbt(["{{ days }} day ago", "{{ days }} days ago"], c, " - ", true),f=e.nbt(["{{ weeks }} week ago", "{{ weeks }} weeks ago"], d, " - ", true),_=e.nbt(["{{ years }} year ago", "{{ years }} years ago"], u, " - ", true),g=e.nbt(["{{ minutes }}m", "{{ minutes }}m"], s, "minutes ago abbreviated", true),y=e.nbt(["{{ hours }}h", "{{ hours }}h"], l, "hours ago abbreviated", true),v=e.nbt(["{{ days }}d", "{{ days }}d"], c, "days ago abbreviated", true),b=e.nbt(["{{ weeks }}w", "{{ weeks }}w"], d, "weeks ago abbreviated", true),w=e.nbt(["{{ years }}y", "{{ years }}y"], u, "years ago abbreviated", true);return u>0?(0,i.nk)(n?w:_,{years:u}).join(""):d>0?(0,i.nk)(n?b:f,{weeks:d}).join(""):c>0?(0,i.nk)(n?v:m,{days:c}).join(""):l>0?(0,i.nk)(n?y:h,{hours:l}).join(""):s>0?(0,i.nk)(n?g:p,{minutes:s}).join(""):e.bt("Just now", "Just now", " - ", undefined, true)}}},898781:(e,t,n)=>{n.d(t,{ZP:()=>s,oz:()=>a,q6:()=>i});var r=n(425288);const{Provider:i,Consumer:a,useHook:o}=(0,r.Z)("i18n"),s=o},892819:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(66699),i=n(898781);const a=(e,t)=>{const n=t||0,r=10**n,i=+(n?e*r:e).toFixed(8),a=Math.floor(i),o=i-a,s=o>.5-1e-8&&o<.5+1e-8?a%2==0?a:a+1:Math.round(i);return n?s/r:s},o=e=>{try{(0).toLocaleString([e])}catch(t){return!1}return!0};function s(){const e=(0,i.ZP)();return(t,n,i)=>{let s=0,l=0;const c=i&&i.style||void 0,d=i&&i.shortform||!1,u=i&&i.uplimit||void 0,p=i&&i.currency||void 0,h=!!u&&n>=u,m=u&&h?u:n;if("currency"===c){const{minimumFractionDigits:e,maximumFractionDigits:n}=((e,t)=>{if(t){const{minimumFractionDigits:n,maximumFractionDigits:r}=new Intl.NumberFormat(e,{style:"currency",currency:t}).resolvedOptions();if(void 0!==n&&void 0!==r)return{minimumFractionDigits:n,maximumFractionDigits:r}}return{minimumFractionDigits:2,maximumFractionDigits:2}})(t,p);s=void 0===i||void 0===i.maximum_fraction_digits?n:i.maximum_fraction_digits,l=void 0===i||void 0===i.minimum_fraction_digits?e:i.minimum_fraction_digits}else s=void 0===i||void 0===i.maximum_fraction_digits?0:i.maximum_fraction_digits,l=void 0===i||void 0===i.minimum_fraction_digits?0:i.minimum_fraction_digits;if(d&&m>999&&(s=void 0===i||void 0===i.shortform_maximum_fraction_digits?2:i.shortform_maximum_fraction_digits,l=0),s<l)return String(m);let f=m,_="";const g=[{"100M":{value:1e8,localeKey:e.bt("億", "億", "Abbreviation for one hundred millions. This abbreviation is only used in Chinese, Japanese and Korean.", undefined, true)}},{"10k":{value:1e4,localeKey:e.bt("万", "万", "Abbreviation for ten thousand. This abbreviation is only used in Chinese, Japanese and Korean.", undefined, true)}}],y=[{b:{value:1e9,localeKey:e.bt("B", "B", "Abbreviation for one billion.", undefined, true)}},{m:{value:1e6,localeKey:e.bt("M", "M", "Abbreviation for one million.", undefined, true)}},{k:{value:1e3,localeKey:e.bt("k", "k", "Abbreviation for one thousand.", undefined, true)}}],v=/^zh|ja|ko/.test(t);if(d&&m>999){const e=v?g:y;for(let t=0;t<e.length;t+=1){const n=Object.keys(e[t])[0],r=e[t][n].value;if(m>=r){f=a(m/r*Math.pow(10,s))/Math.pow(10,s),_=e[t][n].localeKey;break}}}if(null==f)return"";const b=f.toLocaleString([o(t)&&"ar-SA"!==t?t:"en-US"],(({maximumFractionDigits:e,minimumFractionDigits:t,style:n,currency:r})=>{const i={maximumFractionDigits:e,minimumFractionDigits:t};return n?{...i,style:n,..."currency"===n?{currency:r,currencyDisplay:"symbol"}:{}}:i})({maximumFractionDigits:s,minimumFractionDigits:l,currency:p,style:c}));return _&&_.length>0?(0,r.Z)(e.bt("{{formattedNumber}}{{numberSuffix}}", "{{formattedNumber}}{{numberSuffix}}", "i18n.usePrettyNumberFormat.prettyNumberFormat", undefined, true),{formattedNumber:b,numberSuffix:_})+(h?"+":""):b+(h?"+":"")}}},366428:(e,t,n)=>{n.d(t,{F:()=>d,Z:()=>c});var r=n(667294),i=n(834911),a=n(124580),o=n(407043),s=n(350118);const l={ActivationCard:{impressionType:"activationCardImpressions",idType:"experienceIdStr",eventType:8547},Article:{impressionType:"articleImpressions",idType:"articleIdStr",eventType:3829},Banner:{impressionType:"bannerImpressions",idType:"userIdStr",eventType:9061},Board:{impressionType:"boardImpressions",idType:"boardIdStr",eventType:3700},Comment:{impressionType:"commentImpressions",idType:"commentIdStr",eventType:9127},Guide:{impressionType:"guideImpressions",idType:"term",eventType:7573},Interest:{impressionType:"topicImpressions",idType:"topicIdStr",eventType:3703},News:{impressionType:"newsHubData",idType:"newsIdStr",eventType:4110},OneBar:{impressionType:"oneBarImpressions",idType:"onebarIdStr",eventType:9993},Pin:{impressionType:"pinImpressions",idType:"pinIdStr",eventType:18},Search:{impressionType:"searchImpressions",idType:"term",eventType:3803},Story:{impressionType:"storyImpression",idType:"idStr",eventType:170},TodayArticle:{impressionType:"todayArticleImpressions",idType:"todayArticleIdStr",eventType:8569},User:{impressionType:"userImpressions",idType:"userIdStr",eventType:3704}};function c({closeupImpressionType:e,closeupNavigationType:t,componentType:n,contextLogData:c,clientTrackingParams:d,elementType:u,impressionAuxFields:p,inImpressionExp:h,impressionType:m,impressionsFramework:f,isPaused:_,loggingId:g,objectIdStr:y,slotIndex:v,trackCarousel:b,viewData:w,viewParameter:S,viewType:E}){const{logContextEvent:P}=(0,o.v)(),T=(0,s.AF)(),R=g?T[g]:{},x=R&&(0,i.Z)({carouselData:R.carousel_data,images:R.images,richMetadata:R.rich_metadata,richSummary:R.rich_summary}),I=f||a.Z,A=(0,r.useRef)(null),C=r=>{const i=l[m],a=i.idType,o={endTime:r.endTime,[a]:g,slotIndex:v,time:r.startTime,renderDuration:r.endTime-r.startTime,type:e,...p,forcedExit:"removed"===r.forcedExit?0:void 0},s={component:n,object_id_str:y,view_type:E,view_data:w||{},view_parameter:S};if(b){if(x){var h,f,_;P({event_type:7352,event_data:{pinCarouselSlotImpressions:[{...o,carouselDataId:Number(x.id),carouselSlotId:(null===(h=x.carousel_slots)||void 0===h?void 0:h[null!==(f=x.index)&&void 0!==f?f:0])&&Number(x.carousel_slots[null!==(_=x.index)&&void 0!==_?_:0].id),slotIndex:x.index}]},...s,aux_data:{...c}})}}else P({clientTrackingParams:d,event_type:i.eventType,...s,element:u,event_data:{[i.impressionType]:"Story"===m?o:[o]},aux_data:{closeup_navigation_type:t,...c}})},k=(0,r.useCallback)((()=>{try{A.current instanceof HTMLElement&&I.start(A.current).onExitViewport(C).setDebugId(g||"unknown")}catch(e){window.console.error('Can only track impressions for type "HTMLElement"')}}),[A.current]);(0,r.useEffect)((()=>(h&&!I.inExperiment&&I.setExperimentStatus(!0),_||k(),()=>{A.current instanceof HTMLElement&&I.stop(A.current)})),[k]);const O=(0,r.useRef)(_);return(0,r.useEffect)((()=>{O.current&&!_&&k(),O.current=_}),[_,k]),A}const d=({children:e,...t})=>e({impressionTrackerRef:c(t)})},12610:(e,t,n)=>{function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z3:()=>p,LU:()=>h,ZP:()=>m});const i=1e6,a=window.location.search.includes("debug_impressions=1")||document.cookie&&document.cookie.indexOf("debug_impressions=1")>-1,o={paused:"Pause",resumed:"Resume",stopped:"Flush",enter:"Enter viewport",exit:"Exit viewport"},s={},l={background:"#FF8A8A",transform:"scale(.98)"},c={init:e=>({transform:`scale(${s[e]?.8:.99})`,transition:"transform .2s ease-in-out",background:"#8E8E8E"}),[o.enter]:{background:"#A0DCC8",transform:"scale(.99)"},[o.exit]:l,[o.stopped]:l,[o.paused]:l,[o.resumed]:{background:"#0FA573",transform:"scale(.99)"}};class d{constructor(e){r(this,"setMutationObserver",(e=>(this.mutationObserver=e,this))),r(this,"startMutationObserver",(e=>{this.mutationObserver&&this.mutationObserver.observe(this.node,e)})),r(this,"stopMutationObserver",(()=>{this.mutationObserver&&this.mutationObserver.disconnect()})),r(this,"handleIntersectionChange",(e=>{const t=e.intersectionRatio>0||e.isIntersecting;if(t&&!this.inViewport){const e=Date.now();this.startTime=e,this._debug(o.enter,{startTime:e,node:this.node}),this.enterCallbacks.forEach((e=>e()))}else!t&&this.inViewport&&(this._debug(o.exit,!0),this.exitCallbacks.forEach((e=>e(this.toJSON()))));this.inViewport=t})),this.enterCallbacks=[],this.exitCallbacks=[],this.inViewport=!1,this.node=e,this.startTime=0,this.debugId=""}onEnterViewport(e){return this.enterCallbacks.push(e),this}onExitViewport(e){return this.exitCallbacks.push(e),this}setDebugId(e){return this.debugId=e,a&&Object.assign(this.node.style,c.init(e)),this}pause(){return this.inViewport&&(this._debug(o.paused,!0),this.exitCallbacks.forEach((e=>e(this.toJSON())))),this}resume(){if(this.inViewport){const e=Date.now();this._debug(o.resumed,{startTime:e}),this.startTime=e}return this}stop(e){return this.inViewport&&(this._debug(o.stopped,!0),this.exitCallbacks.forEach((t=>t(this.toJSON(e))))),this}toJSON(e=""){return{startTime:this.startTime*i,endTime:Date.now()*i,forcedExit:e}}toDebugJSON(){return{pinID:this.debugId,startTime:this.startTime,endTime:Date.now(),duration:(Date.now()-this.startTime)/1e3+" seconds"}}_debug(e,t){if(a)switch(window.console.log(`📌 ${e} -- ${this.debugId}`),!0===t&&window.console.log(this.toDebugJSON()),"object"==typeof t&&window.console.log(t),c[e]&&Object.assign(this.node.style,c[e]),e){case o.flushed:case o.paused:case o.exit:s[this.debugId]=!0}}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=!0,h=!1;class m{constructor(){u(this,"_delegateChange",(e=>{e.forEach((e=>{const t=this.activeImpressions.get(e.target);t&&t.handleIntersectionChange(e)}))})),u(this,"_handleMutations",((e,t)=>{const n=this.mutationObservers.get(t);n&&n.offsetHeight<1&&n&&this.stop(n,"removed")})),this.activeImpressions=new Map,this.mutationObservers=new Map,this.bottomHeight=0,this.bottomObstructions=new Set,this.pausePriority=h,this.observer=new window.IntersectionObserver(this._delegateChange),this.paused=!1,this.topHeight=0,this.topObstructions=new Set,this.inExperiment=!1}setExperimentStatus(e){this.inExperiment!==e&&(this.inExperiment=e)}stop(e,t=""){const n=this.activeImpressions.get(e);n&&(n.stop(t),this.mutationObservers.delete(n.mutationObserver),n.stopMutationObserver(),this.activeImpressions.delete(e),this.observer.unobserve(e))}start(e){let t=this.activeImpressions.get(e);if(!t){t=new d(e),this.activeImpressions.set(e,t),this.observer.observe(e);const n=(e,t)=>this._handleMutations(e,t);t.setMutationObserver(new window.MutationObserver(n)),this.mutationObservers.set(t.mutationObserver,e),t.startMutationObserver({subtree:!0,attributes:!0,attributeFilter:["style"]})}return t}pause(e=p){this.paused||(Array.from(this.activeImpressions.values()).forEach((e=>e.pause())),this.paused=!0,this.pausePriority===h&&(this.pausePriority=e))}resume(e=p){e===h&&this.pausePriority===p||this.paused&&(Array.from(this.activeImpressions.values()).forEach((e=>e.resume())),this.paused=!1,this.pausePriority=h)}addObstruction(e,t){"top"===e?this.topObstructions.add(t):"bottom"===e&&this.bottomObstructions.add(t),this._calculateRootMargins()}removeObstruction(e,t){"top"===e?this.topObstructions.delete(t):"bottom"===e&&this.bottomObstructions.delete(t),this._calculateRootMargins()}updateObstructions(){this._calculateRootMargins()}_calculateRootMargins(){const e=Array.from(this.topObstructions).reduce(((e,t)=>{const{bottom:n}=t.getBoundingClientRect();return n>e?n:e}),0),t=window.innerHeight-Array.from(this.bottomObstructions).reduce(((e,t)=>{const{top:n}=t.getBoundingClientRect();return n<e?n:e}),window.innerHeight);if(e!==this.topHeight||t!==this.bottomHeight){const n={rootMargin:`${-e}px 0px ${-t}px`};this.observer.disconnect(),this.observer=new window.IntersectionObserver(this._delegateChange,n),Array.from(this.activeImpressions.values()).forEach((e=>this.observer.observe(e.node))),this.topHeight=e,this.bottomHeight=t}}}},124580:(e,t,n)=>{n.d(t,{Z:()=>r});const r=new(n(12610).ZP)},954571:(e,t,n)=>{n.d(t,{Z:()=>r});function r(e){if(!e)return!1;const t=new Date(e);return t.setDate(t.getDate()+28),(new Date).getTime()<t.getTime()}},349700:(e,t,n)=>{function r(e,t,n){return e.split(n).map((e=>{if(e.match(n)){const n=e.replace(/[\{\}]/g,"").trim();if(Object.prototype.hasOwnProperty.call(t,n))return t[n]}return e}))}n.d(t,{Wc:()=>o,bF:()=>l,nk:()=>a});const i=/(\{\{\s*\w+\s*\}\})/g;function a(e,t){return r(e,t,i)}function o(e,t){return r(e,t,i).join("")}const s=/(\{\s*\w+\s*\})/g;function l(e,t){return r(e,t,s)}},995081:(e,t,n)=>{n.d(t,{Rq:()=>r,Vf:()=>i,jd:()=>a,oy:()=>o});const r=e=>"ios"===e&&(window.devicePixelRatio||1)*window.screen.height==2436,i=28,a=e=>window.innerHeight>=748&&r(e),o=function(){return!("undefined"==typeof window||!window.navigator)&&(/iPad/.test(navigator.platform)||navigator.maxTouchPoints>1&&"MacIntel"===navigator.platform)}},411938:(e,t,n)=>{n.d(t,{Z:()=>r});function r(e,t,n=28){if(!(e||{}).resurrection_info&&!(t||{}).resurrectionInfo)return!1;let r;r=t?((t||{}).resurrectionInfo||{}).resurrectionDate:((e||{}).resurrection_info||{}).resurrection_dt;const i=new Date,a=r?new Date(r):i;return a.setDate(a.getDate()+n),(new Date).getTime()<a.getTime()}},313047:(e,t,n)=>{n.r(t),n.d(t,{DEFAULT_HEIGHT:()=>u,DEFAULT_PADDING_Y:()=>p,FixedFooter:()=>f,FixedHeader:()=>m});var r=n(667294),i=n(124580),a=n(53987),o=n(773285),s=n(834256),l=n(883119),c=n(643010),d=n(785893);const u=64,p=3;function h({children:e,footerConfig:t,headerConfig:n,height:a,hideOnScroll:s,hideOnScrollState:{isHidden:h,updateHiddenState:m},showDockedNavBar:f,dockNavBarForAuthTablet:_,isTablet:g,noPadding:y,paddingY:v=p,type:b,zIndex:w}){const{headerLimitedOverflow:S,ignoreObstructions:E,zIndexForGestaltBug:P}=n||{},{appUpsellFooterConfig:T,footerInLego:R,footerWidth:x}=t||{},I=!!T,A="header"===b?"top":"bottom",{anyEnabled:C}=(0,o.F)().checkExperiment("hfp_hf_ssr_mweb",{dangerouslySkipActivation:!0}),k=(0,c.vs)(),O=C?k:(0,c.Yc)(),D=(0,r.useRef)(null),N=(0,r.useRef)(null);(0,r.useEffect)((()=>{try{if(!E){const e=D.current;N.current=S&&e&&Array.isArray(e.children)?e.children[0]:e,N.current instanceof HTMLElement&&i.Z.addObstruction(A,N.current)}}catch(e){window.console.error(e),window.console.error('Can only register impression obstructions for type "HTMLElement"')}return()=>{E||N.current instanceof HTMLElement&&i.Z.removeObstruction(A,N.current)}}),[E,S,A,O]);const L="top"===A?"relative":"fixed",M=y?0:v,j=(null!=a?a:u)+((null==n?void 0:n.overrideTop)||0),F=s||f||_?{transition:R?"transform 300ms ease-in-out, opacity 300ms ease-in-out":"transform 200ms linear",...h?{transform:`translateY(${"top"===A?-j:j}px)`,opacity:R?0:1}:Object.freeze({})}:{},U="relative"!==L||null!=n&&n.noGutter?0:2,Z=U?-U:0,B=O?"rgba(0,0,0,.95)":"rgba(255,255,255,.95)";let V,$;return O&&("header"===b?V=-1:$=-1),(0,d.jsx)(l.xu,{ref:D,dangerouslySetInlineStyle:{__style:{top:V,bottomStyle:$,...!w||P?{zIndex:P||1}:Object.freeze({}),...S?{background:"transparent",overflow:"hidden",paddingBottom:100,marginBottom:-100,pointerEvents:"none"}:Object.freeze({}),...null!=n&&n.hasBorder?{borderBottom:"1px solid #efefef"}:Object.freeze({}),...null!=t&&t.hasTopShadow?{boxShadow:"0 -2px 4px 1px rgba(0, 0, 0, 0.08)"}:Object.freeze({}),...F}},zIndex:P?void 0:w,"data-test-id":b,display:I?"flex":void 0,height:a&&!R?a:void 0,position:L,bottom:"footer"===b,top:"header"===b,left:!0,right:!0,marginStart:R?"auto":Z,marginEnd:R?"auto":Z,onTransitionEnd:()=>{(s||f||_)&&N.current&&(h?i.Z.removeObstruction(A,N.current):i.Z.addObstruction(A,N.current))},width:R||"fixed"!==L?void 0:"100%",children:(0,d.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:(null==n?void 0:n.isTranslucent)&&B||(null==n?void 0:n.isTransparentBackground)&&"transparent"||"var(--color-background-default)",height:R?I?void 0:null!=a?a:u:"100%",boxShadow:R?"0px 0px 8px rgba(0, 0, 0, 0.1)":void 0,marginBottom:!R||f&&!g?void 0:16,...S?{pointerEvents:"auto"}:Object.freeze({}),...null!=n&&n.useRoundedCorners?{zIndex:5,borderTopRightRadius:17,borderTopLeftRadius:17,borderBottomRightRadius:0,borderBottomLeftRadius:0}:Object.freeze({})}},paddingX:("footer"!==b||y?0:4)+U,paddingY:M,position:"relative",width:R&&x?x:I?void 0:"100%",rounding:!R||f&&!g?void 0:"pill",display:R||null!=t&&t.alignCenter?"flex":void 0,marginStart:R?"auto":void 0,marginEnd:R?"auto":void 0,alignItems:null!=t&&t.alignCenter?"center":void 0,children:"function"==typeof e?e({updateHiddenState:m}):e})})}function m({hasBorder:e,headerLimitedOverflow:t,ignoreObstructions:n,isTranslucent:r,isTransparentBackground:i,noGutter:a,overrideTop:o,useRoundedCorners:c,zIndexForGestaltBug:u,...m}){const{noPadding:f,paddingY:_=p,zIndex:g}=m,y=f?0:_;return(0,d.jsx)(l.Le,{top:o||0,height:t?44+2*y*4:void 0,zIndex:g||void 0,children:(0,d.jsx)(s.Z,{hideOnScroll:m.hideOnScroll,children:s=>(0,d.jsx)(h,{...m,hideOnScrollState:s,type:"header",headerConfig:{isTranslucent:r,isTransparentBackground:i,headerLimitedOverflow:t,hasBorder:e,ignoreObstructions:n,noGutter:a,overrideTop:o,zIndexForGestaltBug:u,useRoundedCorners:c}})})})}function f({alignCenter:e,appUpsellFooterConfig:t,footerInLego:n,footerWidth:r,forceShow:i,hasTopShadow:o,location:l,showDockedNavBar:c,dockNavBarForAuthTablet:u,isTablet:p,isModal:m,onScroll:f,..._}){const g=!!l&&(0,a.uM)(l)&&(!!c||!!u);return(0,d.jsx)(s.Z,{appUpsellFooterConfig:t,forceShow:i,hideOnScroll:_.hideOnScroll,location:l,isDockedNavOnPlp:g,isModal:m,onScroll:f,children:i=>(0,d.jsx)(h,{..._,hideOnScrollState:i,showDockedNavBar:c,dockNavBarForAuthTablet:u,isTablet:p,type:"footer",footerConfig:{alignCenter:e,appUpsellFooterConfig:t,footerInLego:n,footerWidth:r,hasTopShadow:o}})})}},834256:(e,t,n)=>{n.d(t,{Z:()=>s,m:()=>o});var r=n(667294),i=n(700380);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const o=20;class s extends r.Component{constructor(...e){super(...e),a(this,"state",{isHidden:!!this.props.appUpsellFooterConfig||!!this.props.isDockedNavOnPlp}),a(this,"lastScrollPos",0),a(this,"updateHiddenState",(e=>{this.reqAnimationId=window.requestAnimationFrame((()=>{this.setState({isHidden:e})}))})),a(this,"handleScroll",(0,i.Z)((()=>{const{appUpsellFooterConfig:e,isModal:t,onScroll:n,isDockedNavOnPlp:r}=this.props,{isHidden:i}=this.state,a=window.scrollY,s=a-this.lastScrollPos;let l="none";const{scrollHeight:c,clientHeight:d}=document.documentElement||{};if(!Number.isNaN(c)&&!Number.isNaN(d))if(s<0){const e=window.scrollMinY||0;l=a<=Math.abs(e+Math.max(s,o))?"start":"none"}else{l=a>=(window.scrollMaxY||c-d)-Math.max(s,o)?"end":"none"}const u=t?0:55;if(e)if(s>o&&i&&a>=500){e.shouldShowAfterScroll()&&(this.updateHiddenState(!1),n&&n(!1))}else(s<-o&&!i||a<=u)&&(this.updateHiddenState(!0),n&&n(!0));else!this.props.hideOnScroll&&r?"start"===l&&!i||a<=u?(this.updateHiddenState(!0),n&&n(!0)):(a>u||"end"===l)&&i&&(this.updateHiddenState(!1),n&&n(!1)):(s<-o||"start"===l)&&i||a<=u?(this.updateHiddenState(!1),n&&n(!1)):(s>o||"end"===l)&&!i&&(this.updateHiddenState(!0),n&&n(!0));this.lastScrollPos=a}),30))}componentDidMount(){try{(this.props.hideOnScroll||this.props.isDockedNavOnPlp)&&window.addEventListener("scroll",this.handleScroll)}catch(e){window.console.error(e),window.console.error('Can only register impression obstructions for type "HTMLElement"')}}componentWillUnmount(){(this.props.hideOnScroll||this.props.isDockedNavOnPlp)&&window.removeEventListener("scroll",this.handleScroll),this.reqAnimationId&&(window.cancelAnimationFrame(this.reqAnimationId),this.reqAnimationId=null)}componentDidUpdate(e){!e.hideOnScroll&&this.props.hideOnScroll||!e.isDockedNavOnPlp&&this.props.isDockedNavOnPlp?(this.updateHiddenState(!0),window.addEventListener("scroll",this.handleScroll)):(e.hideOnScroll&&!this.props.hideOnScroll||e.isDockedNavOnPlp&&!this.props.isDockedNavOnPlp)&&(this.updateHiddenState(!1),window.removeEventListener("scroll",this.handleScroll))}render(){const{children:e,forceShow:t}=this.props,{isHidden:n}=this.state;return e({isHidden:!t&&n,updateHiddenState:this.updateHiddenState})}}},134879:(e,t,n)=>{n.d(t,{C:()=>a,V:()=>o});var r=n(667294);const i=(0,r.createContext)(!1),a=i.Provider,o=()=>(0,r.useContext)(i)},48714:(e,t,n)=>{n.d(t,{nS:()=>w,iw:()=>E,gV:()=>v,G3:()=>P,lI:()=>T,Gj:()=>S,Jd:()=>y,$3:()=>b});var r=n(231486),i=n(56641),a=n(768559),o=n(250059);const s=e=>"string"!=typeof e&&e?e.state:null;var l=n(643913),c=n(547239),d=n(508847),u=n(102500),p=n(43760),h=n(579164),m=n(333155),f=n(397066),_=n(623568),g=n(226198);const y=()=>{window&&window.focus(),document.activeElement&&document.activeElement.blur()},v=({isOffsiteUrl:e,event:t})=>!e&&(t.metaKey||t.ctrlKey),b=({location:e,pin:t,surface:n})=>!(0,_.jL)(t)&&(({location:e,pinId:t,surface:n})=>{const r=Boolean(n),i=m.ZF.includes(n),a=e.pathname.includes(t);return r&&!i||a})({location:e,pinId:t.id,surface:n}),w=e=>{const t=Math.round(1e3*Math.random())+"",n=Math.round(1e3*Math.random())+"";r.t8((0,g.GS)(t),n);const i=`${t}-${n}`,{queryParams:a,url:o}=e;let s={token:i,url:o};if(!a){const{pinId:t,csrId:n,clientTrackingParams:r,auxData:i}=e;s={...s,pin:null!=t?t:void 0,csr:n&&!t?n:void 0,client_tracking_params:r,aux_data:i?JSON.stringify(i):void 0}}a&&(s={...s,...a});return`/offsite/?${(0,l.Z)(s)}`},S=e=>{(0,i.Z)(w(e),!0)},E=async({isMounted:e,pin:t,location:n,spamCheckCallback:r,href:i})=>{var o,s;const l=await(0,u.Z)({check_only:!0,client_tracking_params:(0,a.Z)({boardUrl:null==t||null===(o=t.board)||void 0===o?void 0:o.url,callToCreateSourcePinId:null==t?void 0:t.call_to_create_source_pin_id,location:n,pinId:null==t?void 0:t.id,pinnerUserName:null==t||null===(s=t.pinner)||void 0===s?void 0:s.username,storyPinDataId:null==t?void 0:t.story_pin_data_id,trackingParams:null==t?void 0:t.tracking_params,trackingParamsMap:null==t?void 0:t.tracking_params_map}),pin_id:null==t?void 0:t.id,url:i}).callGet({showError:!1});if(!l.resource_response.error&&e){const e=l.resource_response.data||{},{message:t,redirect_status:n,url:i}=e;r({blocked:["blocked","suspicious","porn"].includes(n),message:t,redirectStatus:n,sanitized_url:i})}},P=({event:e,onHistoryChange:t,href:n,history:r,target:a})=>{const l=(0,o.Z)(n),u=s(n),p=(0,c.Z)(l);p===h.Z.TRUSTED_DIFFERENT_ORIGIN||"blank"===a?(0,i.Z)(l,"blank"===a):r&&p===h.Z.SAME_ORIGIN&&(r.push((0,d.Z)({url:l}),null!=u?u:{}),t&&t({event:e}))},T=({href:e,pinId:t,pin:n,location:r,auxData:i,spamCheck:o,queryParams:s},l,c)=>{"undefined"!=typeof window&&window.Windows?(0,p.Z)({url:e,pinId:t,pin:n,location:r,auxData:i}):n?(({spamCheck:e,auxData:t,location:n,pin:r,pinId:i,href:o},s,l)=>{if(null!=e&&e.blocked)null==l||l(e);else{var c,d;if((0,f.b)({href:o,pinId:i,pin:r,location:n,auxData:t},s))return;S({url:o,pinId:i,csrId:null,clientTrackingParams:(0,a.Z)({boardUrl:null===(c=r.board)||void 0===c?void 0:c.url,callToCreateSourcePinId:r.call_to_create_source_pin_id,location:n,pinId:r.id,pinnerUserName:null===(d=r.pinner)||void 0===d?void 0:d.username,storyPinDataId:r.story_pin_data_id,trackingParams:r.tracking_params,trackingParamsMap:r.tracking_params_map}),auxData:t})}})({spamCheck:o,auxData:i,location:r,pin:n,pinId:t,href:e},l,c):S({url:e,pinId:t,queryParams:s})}},102500:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(6637);function i(e){return r.Z.create("ApiResource",{url:"/v3/offsite/",data:e})}},287072:(e,t,n)=>{n.d(t,{Z:()=>d,p:()=>u});var r=n(667294),i=n(250059),a=n(149230),o=n(407043),s=n(108234),l=n(48714),c=n(276775);function d(e){var t;const{externalData:n,href:d,onHistoryChange:u,target:p}=e,{logContextEvent:h}=(0,o.v)(),[m,f]=(0,r.useState)(null),[_,g]=(0,r.useState)(!1),y=(0,c.useHistory)(),v=(0,c.useLocation)(),b=(0,a.Z)({url:(0,i.Z)(d)}),{showWarning:w}=null!==(t=(0,s.s)())&&void 0!==t?t:{};return(0,r.useEffect)((()=>(g(!0),()=>{g(!1)})),[]),(0,r.useEffect)((()=>{b&&null!=n&&n.pin&&null===m&&_&&(0,l.$3)({location:v,pin:n.pin,surface:n.surface})&&(0,l.iw)({isMounted:_,pin:n.pin,location:v,spamCheckCallback:e=>f(e),href:(0,i.Z)(d)})}),[null==n?void 0:n.pin,null==n?void 0:n.surface,d,b,_,v,m]),({event:e})=>{var t;(0,l.gV)({isOffsiteUrl:b,event:e})||(e.preventDefault(),d&&(b||null!=n&&n.dangerouslyForceOffsiteUrl?(0,l.lI)({auxData:null==n?void 0:n.auxData,href:(0,i.Z)(d),pinId:null==n||null===(t=n.pin)||void 0===t?void 0:t.id,pin:null==n?void 0:n.pin,queryParams:null==n?void 0:n.queryParams,location:v,spamCheck:m},h,w):(0,l.G3)({event:e,href:d,history:y,onHistoryChange:u,target:"blank"===p?"blank":null})))}}const u=({children:e,...t})=>e({handleClick:d(t)})},713930:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(172071);function i(e,t){return new Promise(((n,i)=>{if(document.querySelector(`script[src="${e}"]`)){let e=0;if("FACEBOOK"===t)if(window.FB)n();else{const t=setInterval((()=>{window.FB||20===e?(clearInterval(t),n()):(e+=1,r.Z.increment(`mweb.loadScript.facebook.tries_${e}`,.01))}),100)}else if("GSI"===t)if(window.google)n();else{const t=setInterval((()=>{window.google||20===e?(clearInterval(t),n()):(e+=1,r.Z.increment(`mweb.loadScript.gsi.tries_${e}`,.01))}),100)}else n()}else{const t=document.createElement("script");t.src=e,t.async=!0,t.addEventListener("load",(()=>n())),t.addEventListener("error",i),document.getElementsByTagName("head")[0].appendChild(t)}}))}},53987:(e,t,n)=>{n.d(t,{wy:()=>k,Fw:()=>J,ey:()=>q,dt:()=>y,bo:()=>V,oF:()=>te,bW:()=>g,AX:()=>p,Fy:()=>u,XE:()=>d,am:()=>o,pD:()=>h,OJ:()=>l,LO:()=>de,Gl:()=>re,PY:()=>b,Ni:()=>v,pV:()=>O,L6:()=>C,bb:()=>he,b0:()=>_,jC:()=>z,O7:()=>ie,LM:()=>$,OK:()=>I,mP:()=>w,C$:()=>S,dr:()=>L,gT:()=>N,Fr:()=>K,Xn:()=>E,l4:()=>A,b_:()=>ee,J:()=>s,dZ:()=>c,FO:()=>R,re:()=>T,RU:()=>ae,Ui:()=>m,KY:()=>f,fY:()=>Y,uM:()=>W,x7:()=>X,rk:()=>ue,cD:()=>H,dW:()=>pe,Pu:()=>ne,En:()=>D,ej:()=>le,f1:()=>F,E0:()=>B,gf:()=>x,mY:()=>oe,kY:()=>ce,cY:()=>Q,$Y:()=>Z,Zz:()=>P,$V:()=>U,j8:()=>G,ip:()=>M,tZ:()=>j,YW:()=>se});const r=new RegExp(/^\/(?!(?:pin|categories|report|search|password|terms|discover|help|email|topics|explore|pw|login|signup|about|business|source|ideas|today|tv))[\w\d\-]+\/(?!(?:following|followers|_tools|_created|_saved|tried))[\w\d\-]+(?=\/|$)/),i=["/BingSiteAuth.xml","/about","/add-account","/ads","/age_verification","/all","/apple-app-site-association","/apple-app-site-association.p7m","/attribution_source","/bot.html","/branded-pins","/browserbutton","/buy-it","/careers","/categories","/close-account","/content-claiming","/convert-business","/convert-personal","/create-business","/create-linked-business","/create-personal","/creation-inspiration","/creator-onboarding-landing","/csrf_error","/ct.html","/deactivate-account","/deed6a3ef3a44d41bb3ae2bad137db84.txt","/developers","/discover","/edit","/email_verification_error","/engagement","/explore","/favicon.ico","/fb.html","/following","/google_gdn.html","/google_search.html","/googlef5dc42d6e03f6e61.html","/guidedsearch","/help","/holidays-celebrations","/homefeed","/idea-pin-builder","/idea-pin-invite","/ideas","/inbox","/install-shuffles","/invited","/jobs","/live-session","/login","/login_redirect","/logout","/manifest.json","/manifest.webapp","/me","/messages","/mobile","/notifications","/oauth","/app-factory-oauth","/appealed-pin","/oembed.json","/offline.html","/offsite","/opensearch.xml","/parent_contact_info","/pin-builder","/pin-editor","/pin_catalog","/pin_redirect","/pinterest-wellbeing","/pinterest-predicts","/pinterestlens","/pinterestlenstryon","/pinterestwellbeing","/policy","/product-catalogs","/recently-viewed","/report","/robots.txt","/safe-redirect","/search","/settings","/shopping","/signup","/socialmanager","/story-pin-builder","/story-pin-invite","/story_feed","/sw-shell.html","/sw.html","/sw.js","/switch_account","/terms","/today","/topics","/transparent.html","/tv","/unauth-profile","/unlink","/upload-image","/upload-profile-image","/verified","/verify","/videos","/web-mentorship","/welcome","/windows-app-web-link","/your-shop"];var a=n(276775);const o=e=>r.test(e.pathname),s=(e,t)=>{const{pathname:n}=e;return o(e)&&n.match(t||"?")},l=e=>{const{pathname:t}=e;return!!(0,a.matchPath)(t,{path:"/:username/:boardId/:boardSectionId",exact:!0})&&!t.match(/^\/.+\/.+\/(_tools)/i)},c=(e,t)=>{const{pathname:n}=e;return l(e)&&n.match(t||"?")},d=e=>!!(0,a.matchPath)(e.pathname,{path:"/board/:id/edit",exact:!0}),u=e=>!!(0,a.matchPath)(e.pathname,{path:"/board/:id/edit/collaborators",exact:!0}),p=e=>!!(0,a.matchPath)(e.pathname,{path:"/board/:id/edit/add_collaborators",exact:!0}),h=e=>!!(0,a.matchPath)(e.pathname,{path:"/boardsection/:id/edit",exact:!0}),m=e=>!!(0,a.matchPath)(e.pathname,{path:"/pin/:id/comments",exact:!0}),f=e=>!!(0,a.matchPath)(e.pathname,{path:"/pin/:id/edit",exact:!0}),_=e=>!!(0,a.matchPath)(e.pathname,{path:"/conversation/:id",exact:!0}),g=e=>!!(0,a.matchPath)(e.pathname,{path:"/appealed-pin/",exact:!0}),y=e=>e.pathname.startsWith("/age-appeal"),v=e=>e.pathname.startsWith("/business/"),b=e=>e.pathname.startsWith("/business/invite/"),w=e=>!!(0,a.matchPath)(e.pathname,{path:"/pin/:id/visual-search/",exact:!0}),S=e=>"/"===e.pathname,E=e=>e.pathname.startsWith("/login"),P=e=>!!(0,a.matchPath)(e.pathname,{path:"/today",exact:!0}),T=e=>e.pathname.startsWith("/password/reset")||!!(0,a.matchPath)(e.pathname,{path:"/pw/:username",exact:!0}),R=e=>e.pathname.startsWith("/secure/panic"),x=e=>e.pathname.startsWith("/signup"),I=e=>e.pathname.startsWith("/email/subscription"),A=e=>e.pathname.startsWith("/notifications/"),C=e=>!!(0,a.matchPath)(e.pathname,{path:"/pin/:id",exact:!0}),k=e=>C(e)&&void 0===e.state,O=e=>e.pathname.startsWith("/pin_redirect"),D=e=>e.pathname.startsWith("/search"),N=e=>!!(0,a.matchPath)(e.pathname,{path:"/ideas",exact:!0}),L=e=>!!(0,a.matchPath)(e.pathname,{path:"/ideas/:interest/:id",exact:!0}),M=e=>!!(0,a.matchPath)(e.pathname,{path:"/videos/:category/:id",exact:!0}),j=e=>e.pathname.startsWith("/videos"),F=e=>!!(0,a.matchPath)(e.pathname,{path:"/shopping/",exact:!0}),U=e=>e.pathname.startsWith("/topics"),Z=e=>e.pathname.startsWith("/today/article/")||e.pathname.startsWith("/today/best/")||e.pathname.startsWith("/today/trending/"),B=e=>e.pathname.startsWith("/today/shop/"),V=e=>P(e)||Z(e)||e.pathname.startsWith("/today/popular/"),$=e=>/^\/discover\/article\/\S+\/?/i.test(e.pathname),z=e=>e.pathname.startsWith("/pin/create/"),H=e=>!!(0,a.matchPath)(e.pathname,{path:"/:username/",exact:!0})&&!i.includes(e.pathname.replace(/\/$/,"")),G=e=>e.pathname.startsWith("/unauth-profile"),W=e=>e.pathname.startsWith("/pin/"),K=e=>"#imgViewer"===e.hash,q=e=>new RegExp("invite_code").test(e.search),Y=e=>!!(0,a.matchPath)(e.pathname,{path:"/pin/:id",exact:!1})&&(e.pathname.includes("/sent/")||e.pathname.includes("/feedback/")),J=e=>q(e)&&((Y(e)?"pin":o(e)&&"board")||H(e)&&"profile")||null,X=e=>e.pathname.includes("/repin/x"),Q=e=>e.pathname.startsWith("/_/storyboard"),ee=e=>e.pathname.startsWith("/oauth"),te=e=>e.pathname.startsWith("/app-factory-oauth"),ne=e=>e.pathname.includes("/scheduled-pin/"),re=e=>e.pathname.startsWith("/business/convert"),ie=e=>e.pathname.startsWith("/pin-editor"),ae=e=>e.pathname.startsWith("/pin-builder"),oe=e=>e.pathname.startsWith("/story-pin-builder")||e.pathname.startsWith("/idea-pin-builder"),se=e=>e.pathname.startsWith("/advertiser/quick-promote"),le=e=>e.pathname.startsWith("/settings"),ce=e=>e.pathname.startsWith("/story-pin-invite")||e.pathname.startsWith("/idea-pin-invite"),de=e=>void 0!==e.pathname&&e.pathname.startsWith("/business/business-access/")&&e.pathname.includes("/dashboard/"),ue=e=>void 0!==e.pathname&&e.pathname.startsWith("/tv/studio"),pe=e=>void 0!==e.pathname&&e.pathname.startsWith("/business/schedule_call/"),he=e=>void 0!==e.pathname&&e.pathname.startsWith("/business/commerce-integrations/")},55275:(e,t,n)=>{n.d(t,{P:()=>o,t:()=>s});var r=n(6637);const i=()=>{};const a={complaint:function(e,t){r.Z.create("PinFeedbackResource",e).callUpdate().then((()=>t()))},followBoard:function(e,t){r.Z.create("BoardFollowResource",e).callCreate().then((()=>t()))},followPinner:function(e,t){r.Z.create("UserFollowResource",e).callCreate().then((()=>t()))},followTopic:function(e,t){r.Z.create("InterestFollowResource",e).callCreate().then((()=>t()))},newsHubPinHide:function(e,t){r.Z.create("NewsHubPinFeedbackResource",e).callUpdate().then((()=>t()))},promotedComplaint:function(e,t){r.Z.create("PinFeedbackResource",e).callUpdate().then((()=>t()))},relatedPinHide:function(e,t){r.Z.create("RelatedPinFeedbackResource",e).callUpdate().then((()=>t()))},reportPin:function(e,t){t()},showAdReasons:function(e,t){t()},unfollowBoard:function(e,t){r.Z.create("BoardFollowResource",e).callDelete().then((()=>t()))},unfollowPinner:function(e,t){r.Z.create("UserFollowResource",e).callDelete().then((()=>t()))},unfollowTopic:function(e,t){r.Z.create("InterestFollowResource",e).callDelete().then((()=>t()))},unrelatedSearchPin:function(e,t){r.Z.create("SearchPinFeedbackResource",e).callUpdate().then((()=>t()))}},o=["complaint","relatedPinHide","unrelatedSearchPin","promotedComplaint","newsHubPinHide","unfollowBoard","unfollowPinner","unfollowTopic"];function s(e,t,n=i){const r=e?a[e]:null;return r?r(t,n):n()}},680046:(e,t,n)=>{n.d(t,{EF:()=>u,XZ:()=>c,ZP:()=>s,nb:()=>d,yl:()=>l});var r=n(55275),i=n(966113),a=n(760372);const o=e=>e.length>32?`${e.substring(0,32).trim()}...`:e,s=({i18n:e,interpolateNamedTemplate:t})=>({getLearnMoreUrl:e=>{switch(e){case 1:return"https://www.pinterest.com/_/_/help/articles/personalized-ads-pinterest";case 2:case 3:return"https://www.pinterest.com/_/_/help/articles/personalized-ads-pinterest";default:return i.m7}},getRecommendationDescription:({ad_match_reason:n,board:r,feedbackType:i,makeNavigateLink:a,pinner:s,promoter:l,recommendationReason:c,sourceInterest:d})=>{switch(i){case"pfy":return e.bt("This Pin was inspired by your recent activity", "This Pin was inspired by your recent activity", "Pin feedback reason", undefined, true);case"pfyBoard":const{name:i,url:u}=c.board,p=a("navigation",u,i);return t(e.bt("This Pin was inspired by your board {{ boardLink }}", "This Pin was inspired by your board {{ boardLink }}", "Pin feedback - inspired by your board", undefined, true),{boardLink:p});case"topic":const{name:h,url_name:m}=d,f=a("topicUrl",`/topics/${m}`,h);return t(e.bt("This Pin was inspired by {{ formattedTopic }}", "This Pin was inspired by {{ formattedTopic }}", "Pin feedback", undefined, true),{formattedTopic:f});case"followed":const _=`/${s.username}`,g=a("boardUrl",r.url,o(r.name)),y=a("pinnerUrl",_,o(s.full_name));return s.explicitly_followed_by_me?t(e.bt("This Pin is from {{ formattedPinner }}, a profile you follow", "This Pin is from {{ formattedPinner }}, a profile you follow", "Pin feedback", undefined, true),{formattedPinner:y}):t(e.bt("This Pin is from {{ formattedBoard }}, a board you follow", "This Pin is from {{ formattedBoard }}, a board you follow", "Pin feedback", undefined, true),{formattedBoard:g});case"promoted":switch(n){case 1:case 2:case 3:return e.bt("This ad was personalised for you using info from one of our partners", "This ad was personalized for you using info from one of our partners", "Pin feedback", undefined, true);default:const{full_name:n,username:r}=l,i=a("promotedLink",r?"/"+r+"/":"/",n);return t(e.bt("{{ promoterLink }} paid to have this Pin displayed where you’d be more likely to notice it.", "{{ promoterLink }} paid to have this Pin show up where you’d be more likely to notice it", "Pin feedback", undefined, true),{promoterLink:i})}default:return null}},getFeedbackType({board:e,feedback:t,viewParameter:n,pin:{promoter:r,is_downstream_promotion:i,recommendation_reason:a},pinner:o}){const s=t&&t.type;return r&&!i?"promoted":s||((e=>!!e&&"FOLLOWED_INTEREST"!==e.reason&&"FOLLOWING_FEED"!==e.reason&&"RECENT_FOLLOWED_BOARD"!==e.reason&&!0)(a)?a.board?"pfyBoard":"pfy":a&&"FOLLOWED_INTEREST"===a.reason?"topic":e&&e.followed_by_me||o&&o.explicitly_followed_by_me?"followed":140===n||144===n||141===n||145===n||139===n||3173===n?"related":92===n?"default":3082===n?"newsHub":null)},getHidePinAction:({feedbackData:e,feedbackType:t,pinId:n,recommendationReasonId:r,pinFeedbackType:i,complaintReason:a,throughId:o,throughProperties:s,clientTrackingParams:l})=>{const c="promoted"===t;let d,u;switch(t){case"promoted":d="promotedComplaint";break;case"search":d="unrelatedSearchPin";break;case"related":d="relatedPinHide";break;case"newsHub":d="newsHubPinHide";break;default:d="complaint"}switch(t){case"search":u={query:e.query,pin_id:n};break;case"related":u={pin:n};break;case"newsHub":u={pinId:n,newsId:e.newsId};break;default:u={complaint_reason:a||0,pin_id:n,...r?{recommendation_reason_id:r}:{},feedback_type:i||1,promoted:c,...o?{through_id:o}:{},...s?{through_properties:s}:{},...l?{client_tracking_params:l}:{}}}return{action:d,actionOptions:u}},getUnfollowAction:({board:n,feedbackType:r,makeNavigateLink:i,pinner:o,sourceInterest:s})=>{if("topic"===r){if(s){const{id:n,name:r,url_name:o}=s,l=i("topicUrl",`/topics/${o}`,r,!0),c=t(e.bt("We’ll show you fewer Pins from {{ formattedTopic }} in future.", "We’ll show you less Pins from {{ formattedTopic }} in the future.", "pin.contextualMenu.feedback.unfollowTopic.subtitle", undefined, true),{formattedTopic:l});return{action:"unfollowTopic",actionOptions:{interest_id:n,interest_list:a.X},title:"",subTitle:c}}}else if("followed"===r&&n&&o){const{id:r,name:a,url:s}=n||{},{explicitly_followed_by_me:l,full_name:c,username:d}=o,u=`/${d}`,p=i("boardUrl",s,a,!0),h=i("pinnerUrl",u,c,!0);let m=l?t(e.bt("You’ve unfollowed {{ formattedPinner }}’s board {{ formattedBoard }}. You can follow it again by searching for it.", "You’ve unfollowed {{ formattedPinner }}’s Board {{ formattedBoard }}. You can follow it again by searching for it.", "Confirmation text after unfollowing a board", undefined, true),{formattedPinner:h,formattedBoard:p}):t(e.bt("You’ve unfollowed {{ formattedBoard }}. You can follow it again by searching for it.", "You’ve unfollowed {{ formattedBoard }}. You can follow it again by searching for it.", "Confirmation text after unfollowing a board", undefined, true),{formattedBoard:p});return m=l?t(e.bt("You unfollowed {{ formattedPinner }} and won’t see Pins they save any more.", "You unfollowed {{ formattedPinner }} and won’t see Pins they save anymore.", "Confirmation text after unfollowing a user", undefined, true),{formattedPinner:h}):t(e.bt("You unfollowed the board {{ formattedBoard }} and won’t see Pins saved to it any more.", "You unfollowed the board {{ formattedBoard }} and won’t see Pins saved to it anymore.", "Confirmation text after unfollowing a board", undefined, true),{formattedBoard:p}),{action:"unfollowBoard",actionOptions:{board_id:r},title:"",subTitle:m}}return null}});function l(e){return null!=e&&e.reason_id?e.reason_id:null!=e&&e.board?e.board.id:null!=e&&e.pin?e.pin.id:null!=e&&e.interest?e.interest.id:""}function c(e){return null==e?void 0:e.through_properties}function d(e){switch(e){case"promoted":return 60;case"followed":case"topic":return 100;case"pfyBoard":case"pfy":return 58}}function u(e,t,n,i,a,o,s){return()=>{const l={...e,undo:!0};let c=t;"unfollowPinner"===t?c="followPinner":"unfollowBoard"===t?c="followBoard":"unfollowTopic"===t&&(c="followTopic"),(0,r.t)(c,l),o(n),s({event_type:101,component:0,element:11181,view_type:i,view_parameter:a})}}},248975:(e,t,n)=>{function r({embedSrc:e,embedType:t,images:n,preferredResolution:r}){if(!e&&!t&&!n)return"";if("gif"===t)return e||"";const i=n;if(!i)return"";if(r){const e="474x"===r&&i["474x"]||"236x"===r&&i["236x"]||i["736x"];if(e&&e.url)return e.url}const a=Object.keys(i).map((e=>{try{const t=e.split("x")[0];return Number.isNaN(Number(t))?(i[t]=i[e],t):e}catch(t){return""}}));a.sort();const o=a.pop();return i[o]&&i[o].url||""}n.d(t,{Z:()=>r})},164985:(e,t,n)=>{n.d(t,{Z:()=>r});function r(){let e=800,t=400;return"undefined"!=typeof window&&(e=window.innerHeight,t=window.innerWidth),{windowHeight:e,windowWidth:t}}},623568:(e,t,n)=>{n.d(t,{Js:()=>s,NK:()=>y,Nc:()=>v,VX:()=>l,Zt:()=>_,_J:()=>u,_Q:()=>o,_S:()=>b,cL:()=>m,dZ:()=>E,hb:()=>g,hy:()=>d,iR:()=>a,jL:()=>c,o:()=>w,oN:()=>r,pU:()=>S,rM:()=>f,sV:()=>p,sY:()=>h});const r=5e3,i=["Uploaded by user"],a=e=>!!e&&!!e.video_list,o=e=>!!e.promoted_is_lead_ad,s=(e,t)=>{let n=e&&e.url?e.url.split("/")[1]:"";return t&&t.full_name&&(n=t.full_name),n},l=e=>{var t;return e.rich_summary&&e.rich_summary.products&&e.rich_summary.products.length>0||(null===(t=e.rich_metadata)||void 0===t?void 0:t.products)&&e.rich_metadata.products.length>0||!1},c=e=>!!e.promoter&&!e.is_downstream_promotion,d=e=>!!e,u=e=>!!e.video_status&&5!==e.video_status,p=e=>["email","messages","deep_linking"].includes(e),h=e=>!!e&&"gif"===e,m=({embedSrc:e,embedSubtype:t,embedType:n})=>!!e&&!h(n)&&!(e=>"pinstory"===e)(t),f=({link:e,mobileLink:t,trackedLink:n})=>!t&&!n&&!e,_=({link:e,mobileLink:t,origImageUrl:n,trackedLink:r})=>t||r||e||n||"",g=({isStoryPin:e,isVideoPin:t})=>e?"storyPin":t?"video":"image",y=(e,t)=>({deeplinkUri:{android:`pin/${e}/repin`,iOS:`repin/${e}`},mwebUri:{pathname:`/pin/${e}/repin/`,state:{trackingParams:t.state?t.state.trackingParams:""}}});function v(e){var t,n;return!a(e.videos)&&!d(e.story_pin_data_id)&&0!==Object.keys((null===(t=e.aggregated_pin_data)||void 0===t||null===(n=t.creator_analytics)||void 0===n?void 0:n["30d_realtime"])||{}).length}function b(e){for(const t of i)if(e===t)return!1;return!0}function w(e){var t;return 0!==Object.keys((null===(t=e.creator_analytics)||void 0===t?void 0:t["30d_realtime"])||{}).length}function S(e){var t;return 0!==Object.keys((null===(t=e.public_creator_analytics)||void 0===t?void 0:t.all_time_realtime)||{}).length}function E(e){var t,n;return!(null===(t=e.creator_analytics)||void 0===t||null===(n=t["30d_realtime"])||void 0===n||!n.is_realtime)}},66743:(e,t,n)=>{n.d(t,{NC:()=>a,Rc:()=>s,WK:()=>c,X9:()=>i,b9:()=>r,f9:()=>l,gu:()=>o});const r="pin-builder-font-faces",i="system-font-faces",a="pin-builder-education-font-faces",o="licensed",s="system",l="brand",c=4},935879:(e,t,n)=>{n.d(t,{Z:()=>r});const r=e=>`//connect.facebook.net/${(e=>{const t=e.replace(/-/g,"_");if(t.startsWith("es"))return"es_LA";if(t.startsWith("ar"))return"ar_AR";switch(t){case"de":return"de_DE";case"fr":return"fr_FR";case"it":return"it_IT";case"ja":return"ja_JP";case"nl":return"nl_NL";case"tr":return"tr_TR";case"en_AU":return"en_US";default:return t}})(e)}/sdk.js`},83969:(e,t,n)=>{n.d(t,{Fm:()=>o,OY:()=>l,PL:()=>d,Px:()=>s,mK:()=>u,ru:()=>c});var r=n(713930),i=n(966113),a=n(867820);const o=()=>{var e,t,n;return null===(e=window)||void 0===e||null===(t=e.google)||void 0===t||null===(n=t.accounts)||void 0===n?void 0:n.id},s=e=>(0,r.Z)("https://accounts.google.com/gsi/client",null!=e&&e.unsafe?null:"GSI"),l=({autoSelect:e,itpSupport:t},n)=>{var r;null===(r=o())||void 0===r||r.initialize({auto_select:null!=e&&e,client_id:i.v3,callback:n,cancel_on_tap_outside:!1,context:"use",itp_support:t})},c=({buttonRef:e,isDesktop:t})=>{const n=o();if(n&&e.current){const t=e.current.offsetWidth;n.renderButton(e.current,{size:"large",shape:"pill",text:"continue_with",theme:"outline",width:t+"px"})}else(0,a.My)((t?"unauth_web":"unauth_mweb")+".gsi_button.not_initialized")},d=e=>"auto"===e?"AUTO_LOGIN":e.startsWith("btn")?"SIGN_IN_WITH_GOOGLE_BUTTON":"ONE_TAP_PROMPT",u=e=>{switch(e){case"SIGN_IN_WITH_GOOGLE_BUTTON":return"gsi_btn";case"ONE_TAP_PROMPT":return"onetap_btn";default:return"other"}}},760372:(e,t,n)=>{n.d(t,{X:()=>r});const r="favorited"},813401:(e,t,n)=>{n.d(t,{kf:()=>_,l5:()=>m,of:()=>p,xC:()=>f,yz:()=>h});var r=n(667294),i=n(172071),a=n(829407),o=n(807609),s=n(30287),l=n(425288),c=n(785893);const{Provider:d,useMaybeHook:u}=(0,l.Z)("PwaContext"),p=({children:e,initialContext:t})=>{const[n,o]=(0,r.useState)(null),l=t||{pwaType:"unknown",twaType:null},u=l.pwaType;(0,a.Z)((()=>{const e=(0,s.FB)(window)||"unknown";o(e),u!==e&&i.Z.increment("pwa.type_mismatch",1,{serverPwaType:u,clientPwaType:e,conflict:"unknown"!==u&&"unknown"!==e})}));const p="unknown"===u&&n?n:u,h=l.twaType,m=(0,r.useMemo)((()=>({pwaType:p,twaType:h})),[p,h]);return(0,c.jsx)(d,{value:m,children:e})},h=()=>{var e;const t=u();return null!==(e=null==t?void 0:t.pwaType)&&void 0!==e?e:"unknown"},m=()=>{var e;const t=u();return null!==(e=null==t?void 0:t.twaType)&&void 0!==e?e:null},f=()=>"android-twa"===h(),_=()=>{const e=h(),t=(0,o.Z)();return"unknown"===e&&t?null:"windows"===e}},317254:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(969853),i=n(667294),a=n(276602),o=n(543059);var s=n(198462);function l({children:e,isAtEndOfFeed:t,pinData:n,itemCount:l,includeBackgroundImages:c=!1,includeVideos:d=!1,includeSections:u=!1}){var p;return(null===(p=(0,s.N5)())||void 0===p?void 0:p.isAuthenticated)||(u=!0),(0,r.Z)({pinData:n,isAtEndOfFeed:t,includeBackgroundImages:c,includeVideos:d,includeSections:u}),function(e){const t=(0,a.EV)(),n=(0,i.useRef)(null);(0,i.useEffect)((()=>{e!==n.current&&(n.current=e,t&&(0,o.ZP)(o.at))}),[!!t,e])}(l),e}},584992:(e,t,n)=>{n.d(t,{Z:()=>E});var r=n(667294),i=n(425288),a=n(198462),o=n(729524),s=n(860273),l=n(169213),c=n(358864),d=n(558775),u=n(505771),p=n(985271),h=n(383434),m=n(543059),f=n(453821),_=n(638089),g=n(607150),y=n(790348);const v=(0,h.X)("PwtStopwatch"),b=(e,t)=>{if(p.Z){if("start"===t.type&&!e.isTiming){const{name:n,startTime:r,navigationType:i}=t;return(0,y.A9)(`TIMING.${n}`),{isTiming:!0,name:n,isSampled:t.isSampled,startTime:"number"==typeof r?r:p.Z.now(),metricId:{type:"stopwatch",name:n,navigationType:i},pwtStaticContext:t.pwtStaticContext,annotations:e.annotations,binaryAnnotations:e.binaryAnnotations,spans:e.spans,traceId:e.traceId,spanNameUpdates:e.spanNameUpdates}}if(!e.isTiming){if(!t.bypassIsTimingCheck){const n=t.name||e.name;return v("ignoring action - stopwatch is not actively timing",t),(0,y.A9)(`WARN.${n}.noTiming.${t.type}`),e}v("allowing action while stopwatch is not actively timing (bypassIsTimingCheck is set to true)",t)}if("annotate"===t.type){const n=p.Z.now();return v(`adding annotation {${t.label}: ${n}}`),{...e,annotations:e.annotations.concat([{label:t.label,timestamp:n}])}}if("binaryAnnotate"===t.type)return v(`adding binary annotation {${t.name}: ${String(t.value)}}`),{...e,binaryAnnotations:{...e.binaryAnnotations,[t.name]:{value:t.value,type:t.annotationType}}};if("binaryAnnotateOperation"===t.type){const{value:n,type:r}=t.binaryAnnotationValueAndType;if(e.binaryAnnotations[t.name]){const i=e.binaryAnnotations[t.name].value||0;return v(`operating on binary annotation {\n          name: ${t.name}\n          pervious value: ${String(i)}\n          operand: ${String(n)}\n        }`),{...e,binaryAnnotations:{...e.binaryAnnotations,[t.name]:{value:n?t.operation(i,n):i,type:r}}}}return{...e,binaryAnnotations:{...e.binaryAnnotations,[t.name]:{value:n,type:r}}}}if("addSubspan"===t.type){v(`adding subspan {${t.name}}`);-1!==e.spans.findIndex((e=>e.name===t.name))&&v(`WARNING: adding duplicate subspan name {${t.name}}`);const n=t.id||(0,c.Z)();-1!==e.spans.findIndex((e=>e.id===n))&&v(`WARNING: adding duplicate subspan id {${t.name}: ${n}}`);let r=0;return t.startTime?r=t.startTime:e.startTime?r=e.startTime:v(`WARNING: adding subspan {${t.name}} without start time`),{...e,spans:[...e.spans,{name:t.name,id:n,startTime:r,endTime:t.endTime||1/0,annotationMap:{...t.annotations},binaryAnnotationMap:{...t.binaryAnnotations},parentId:t.parentId}]}}if("subspanStart"===t.type){var n;v(`starting subspan {${t.name}}`);-1!==e.spans.findIndex((e=>e.name===t.name))&&v(`WARNING: starting duplicate subspan name {${t.name}}`);const r=t.id||(0,c.Z)();-1!==e.spans.findIndex((e=>e.id===r))&&v(`WARNING: starting duplicate subspan id {${t.name}: ${r}}`);const i=t.parentName?null===(n=e.spans.find((e=>e.name===t.parentName)))||void 0===n?void 0:n.id:null;return{...e,spans:[...e.spans,{name:t.name,id:r,parentId:t.parentId||i,startTime:p.Z.now(),endTime:1/0,annotationMap:{...t.annotations},binaryAnnotationMap:{...t.binaryAnnotations}}]}}if("subspanStop"===t.type){if(v(`stopping subspan {${t.name}}`),!t.id){e.spans.reduce(((e,n)=>(n.name===t.name&&e.push(n),e)),[]).length>1&&(0,y.H)("duplicate_subspan_stop_name",{name:t.name,type:t.type})}const n=t.id?e.spans.findIndex((e=>e.id===t.id)):e.spans.findIndex((e=>e.name===t.name));return n>-1?(e.spans[n].endTime=p.Z.now(),t.annotations&&(e.spans[n].annotationMap={...e.spans[n].annotationMap,...t.annotations}),t.binaryAnnotations&&(e.spans[n].binaryAnnotationMap={...e.spans[n].binaryAnnotationMap,...t.binaryAnnotations})):(0,y.H)("invalid_subspan_stop_name",{name:t.name}),e}if("subspanUpdateName"===t.type){e.spans.reduce(((e,n)=>(n.name===t.currentName&&e.push(n),e)),[]).length>1&&(0,y.H)("duplicate_subspan_stop_name",{name:t.currentName,type:t.type});const n=e.spans.findIndex((e=>e.name===t.currentName));return n>-1?t.updateWhenStopwatchCompletes?e.spanNameUpdates=[...e.spanNameUpdates,{currentName:t.currentName,newName:t.newName}]:(v(`renaming subspan {${t.currentName}} to {${t.newName}}`),e.spans[n].name=t.newName):(0,y.H)("no_subspan_found_to_rename",{name:t.currentName}),e}if("stop"===t.type&&e.isTiming){const{startTime:n,metricId:r,pwtStaticContext:i,annotations:a,binaryAnnotations:l,isSampled:h,spans:y,traceId:b}=e;if(t.stopwatchPerformanceObserver&&t.stopwatchPerformanceObserver.disconnect(),h){const h=t.stopTime||p.Z.now(),w=[...y.map((t=>{t.endTime===1/0&&(t.endTime=h);const n=e.spanNameUpdates.findIndex((e=>t.name===e.currentName));return n>-1&&(v(`renaming subspan {${t.name}} to {${e.spanNameUpdates[n].newName}}`),t.name=e.spanNameUpdates[n].newName,e.spanNameUpdates=e.spanNameUpdates.filter((e=>e.newName!==t.name))),t}))];if(t.manualAndResourceSpans||0===y.length){const e=(0,c.Z)();w.push({name:"network_resources",id:e,startTime:n,endTime:h,annotationMap:{},binaryAnnotationMap:{},parentId:null},...(t.customStopwatchBuffer||[]).map((t=>(0,u.Z)((0,f.p)(t,[]),e))).filter(Boolean))}const S="initial_app_load"===r.navigationType&&(0,s.Z)(),E={type:"COMPLETE",traceId:b,startTime:n,endTime:h,spans:w,annotationMap:{...(0,o.Z)(a),...(0,g.jh)("browser_",S?(0,g.D3)(S):{}),...(0,g.jh)("mark_",(0,m.gQ)())},binaryAnnotationMap:(0,_.ng)({metricId:r,pwtStaticContext:i,binaryAnnotations:l,performanceResourceTimings:t.customStopwatchBuffer||[]})};(0,d.Z)({metricId:r,pwtStaticContext:i,result:E})}return{isTiming:!1,name:e.name,annotations:[],binaryAnnotations:{},spans:[],traceId:(0,c.Z)(),spanNameUpdates:[]}}if("error"===t.type){const{error:n,stopwatchPerformanceObserver:r}=t;return n&&(0,y.H)(n),r&&r.disconnect(),{isTiming:!1,name:e.name,annotations:[],binaryAnnotations:{},spans:[],traceId:(0,c.Z)(),spanNameUpdates:[]}}if("abort"===t.type&&e.isTiming){t.stopwatchPerformanceObserver&&t.stopwatchPerformanceObserver.disconnect();const{metricId:n,pwtStaticContext:r}=e,i=t.reason||"";return(0,d.Z)({metricId:n,pwtStaticContext:r,result:{type:"ABORT",reason:i}}),{isTiming:!1,name:e.name,annotations:[],binaryAnnotations:{},spans:[],traceId:(0,c.Z)(),spanNameUpdates:[]}}}return e},w=({name:e,sampleRate:t,navigationType:n,manualAndResourceSpans:i=!1})=>{const o=(0,a.N5)(),s=(0,r.useRef)([]),d=(0,r.useRef)(null),[u,p]=(0,r.useReducer)(b,{isTiming:!1,name:e,annotations:[],binaryAnnotations:{},spans:[],traceId:(0,c.Z)(),spanNameUpdates:[]});return o?{isTiming:u.isTiming,start:r=>{if(window.PerformanceObserver){const e=1e3;s.current=[],d.current=(0,l.Z)({entryTypes:["resource"]},(t=>{s.current=s.current.concat(t.getEntries()),s.current.length>e&&(s.current=s.current.slice(-e))}))}const i={type:"start",startTime:r,name:e,navigationType:n,pwtStaticContext:o,isSampled:!t||Math.random()<t};return p(i)},stop:e=>p({type:"stop",stopTime:e,stopwatchPerformanceObserver:d.current,customStopwatchBuffer:s.current,manualAndResourceSpans:i}),error:e=>{p({type:"error",stopwatchPerformanceObserver:d.current,error:e})},abort:e=>p({type:"abort",stopwatchPerformanceObserver:d.current,customStopwatchBuffer:s.current,reason:e}),annotate:(e,t,n=!1)=>p({type:"annotate",label:e,parentId:t,bypassIsTimingCheck:n}),binaryAnnotate:(e,t,n,r,i=!1)=>p({type:"binaryAnnotate",name:e,value:t,annotationType:n,parentId:r,bypassIsTimingCheck:i}),binaryAnnotateOperation:({name:e,binaryAnnotationValueAndType:t,operation:n,parentId:r,bypassIsTimingCheck:i=!1})=>p({type:"binaryAnnotateOperation",name:e,binaryAnnotationValueAndType:t,operation:n,parentId:r,bypassIsTimingCheck:i}),addSubspan:({name:e,startTime:t,endTime:n,annotations:r={},binaryAnnotations:i={},parentId:a=null,id:o=null,bypassIsTimingCheck:s=!1})=>p({type:"addSubspan",name:e,startTime:t,endTime:n,annotations:r,binaryAnnotations:i,parentId:a,id:o,bypassIsTimingCheck:s}),subspanStart:({name:e,annotations:t={},binaryAnnotations:n={},parentId:r=null,parentName:i=null,id:a=null,bypassIsTimingCheck:o=!1})=>p({type:"subspanStart",name:e,annotations:t,binaryAnnotations:n,parentId:r,parentName:i,id:a,bypassIsTimingCheck:o}),subspanStop:({name:e,annotations:t,binaryAnnotations:n,id:r,parentId:i,bypassIsTimingCheck:a=!1})=>p({type:"subspanStop",name:e,annotations:t,binaryAnnotations:n,id:r,parentId:i,bypassIsTimingCheck:a}),subspanUpdateName:({currentName:e,newName:t,bypassIsTimingCheck:n,updateWhenStopwatchCompletes:r=!0})=>p({type:"subspanUpdateName",currentName:e,newName:t,bypassIsTimingCheck:n,updateWhenStopwatchCompletes:r}),getSpans:(e,t)=>u.spans.filter((n=>n[e]===t)),getTraceId:()=>u.traceId}:null};var S=n(785893);const E=({name:e,sampleRate:t,abortOnUnloadOrClientNavigation:n=!0,navigationType:o,manualAndResourceSpans:s=!1})=>{const{Provider:l,useMaybeHook:c}=(0,i.Z)(`Stopwatch_${e}`);return{Provider:function({children:i}){const c=w({name:e,sampleRate:t,navigationType:o,manualAndResourceSpans:s}),d=(0,a.fM)(),u=d?d.time:0,p=(0,r.useRef)(!1),h=null==c?void 0:c.isTiming,m=(0,r.useCallback)((t=>{p.current?(p.current=!1,null==c||c.abort(t)):(0,y.A9)(`WARN.${e}.noTiming.abort`)}),[c]),f=(0,r.useCallback)(((e,t)=>{null==c||c.annotate(e,t)}),[c]),_=(0,r.useCallback)(((e,t,n,r)=>{null==c||c.binaryAnnotate(e,t,n,r)}),[c]),g=(0,r.useCallback)((({name:e,binaryAnnotationValueAndType:t,operation:n,parentId:r,bypassIsTimingCheck:i})=>{null==c||c.binaryAnnotateOperation({name:e,binaryAnnotationValueAndType:t,operation:n,parentId:r,bypassIsTimingCheck:i})}),[c]),v=(0,r.useCallback)((({name:e,startTime:t,endTime:n,annotations:r,binaryAnnotations:i,parentId:a,id:o,bypassIsTimingCheck:s})=>{null==c||c.addSubspan({name:e,startTime:t,endTime:n,annotations:r,binaryAnnotations:i,parentId:a,id:o,bypassIsTimingCheck:s})}),[c]),b=(0,r.useCallback)((({name:e,annotations:t,binaryAnnotations:n,parentId:r,parentName:i,id:a,bypassIsTimingCheck:o})=>{null==c||c.subspanStart({name:e,annotations:t,binaryAnnotations:n,parentId:r,parentName:i,id:a,bypassIsTimingCheck:o})}),[c]),E=(0,r.useCallback)((({name:e,annotations:t,binaryAnnotations:n,id:r,parentId:i,bypassIsTimingCheck:a})=>{null==c||c.subspanStop({name:e,annotations:t,binaryAnnotations:n,id:r,parentId:i,bypassIsTimingCheck:a})}),[c]),P=(0,r.useCallback)((({currentName:e,newName:t,bypassIsTimingCheck:n,updateWhenStopwatchCompletes:r})=>{null==c||c.subspanUpdateName({currentName:e,newName:t,bypassIsTimingCheck:n,updateWhenStopwatchCompletes:r})}),[c]),T=(0,r.useCallback)(((e,t)=>c?c.getSpans(e,t):[]),[c]),R=(0,r.useCallback)((()=>c?c.getTraceId():0),[c]),x=(0,r.useCallback)((t=>{p.current?(p.current=!1,null==c||c.error(t)):(0,y.A9)(`WARN.${e}.noTiming.error`)}),[c]),I=(0,r.useCallback)((e=>{p.current&&(null==c||c.abort("duplicated_init_stopwatch_action")),p.current=!0,null==c||c.start(e)}),[c]),A=(0,r.useCallback)((t=>{p.current?(p.current=!1,null==c||c.stop(t)):(0,y.A9)(`WARN.${e}.noTiming.stop`)}),[c]);(0,r.useEffect)((()=>()=>{n&&m("unloadOrClientNavigation")}),[u]);const C=(0,r.useMemo)((()=>({isTiming:h,abort:m,addAnnotation:f,addBinaryAnnotation:_,binaryAnnotationOperation:g,addSubspan:v,subspanStart:b,subspanStop:E,getSpans:T,getTraceId:R,updateSubspanName:P,stop:A,error:x,start:I})),[h,m,f,_,g,v,b,E,T,R,P,A,x,I]);return(0,S.jsx)(l,{value:C,children:i})},useHook:c}}},729524:(e,t,n)=>{n.d(t,{Z:()=>r});const r=e=>{let t={};e.forEach((({label:e,timestamp:n})=>{t={...t,[e]:(t[e]||[]).concat([n])}}));let n=Object.freeze({});return Object.keys(t).forEach((e=>{(t[e]||[]).forEach(((t,r)=>{const i=r?`${e}_${r+1}`:e;n={...n,[i]:t}}))})),n}},561195:(e,t,n)=>{n.d(t,{A:()=>l,Z:()=>c});var r=n(667294),i=n(498913),a=n.n(i),o=n(883119),s=n(785893);const l=({fill:e,width:t,color:n})=>{const i="half"===e?(0,s.jsxs)(r.Fragment,{children:[(0,s.jsx)(o.xu,{position:"absolute",children:(0,s.jsx)(o.JO,{accessibilityLabel:"",color:"default",icon:"star-half",size:12})}),(0,s.jsx)(o.JO,{accessibilityLabel:"",color:"subtle",icon:"star",size:12})]}):(0,s.jsx)(o.JO,{accessibilityLabel:"",color:"full"===e?"default":"subtle",icon:"star",size:12});return(0,s.jsx)(o.xu,{dangerouslySetInlineStyle:{__style:{marginRight:"3px"}},display:"inlineBlock","data-test-id":`rating-star-${e}`,children:i})};function c({max_rating:e,rating:t,width:n,color:i}){const o=[],c=function(e,t){return 5*(t=t<=e?t:e)/e}(parseFloat(e)||5,parseFloat(t)||0);if(Number.isNaN(c))return null;const d=Math.floor(c),u=c-d;return a()(d,(e=>o.push((0,s.jsx)(l,{color:i,fill:"full",width:n},e)))),u>=.75?o.push((0,s.jsx)(l,{color:i,fill:"full",width:n},o.length)):u>=.25&&o.push((0,s.jsx)(l,{color:i,fill:"half",width:n},o.length)),a()(5-o.length,(()=>o.push((0,s.jsx)(l,{color:i,fill:"empty",width:n},o.length)))),(0,s.jsx)(r.Fragment,{children:o})}},923297:(e,t,n)=>{function r({m:e=0,h:t=0}){let n;return n=t<=0?t:e>45?t+1:e>15?t+.5:t,{m:e,h:t,rm:t>0?0:e,rh:n}}function i(e){const t=Math.floor(e/3600);return r({m:Math.floor(e%3600/60),h:t})}n.d(t,{X:()=>r,u:()=>i})},932995:(e,t,n)=>{function r(e,t,n){const r=[...e],i=r.splice(t,1)[0];return r.splice(n,0,i),r}n.d(t,{Z:()=>r})},505920:(e,t,n)=>{n.d(t,{UZ:()=>u,Z8:()=>p,my:()=>h});var r=n(667294),i=(n(702664),n(6637)),a=n(425288),o=n(785893);function s(e,t,n){var r;const i=[...null!==(r=t[e][n.payload.name])&&void 0!==r?r:[],n.payload.handler],a={...t};return a[e]={...t[e],[n.payload.name]:i},a}function l(e,t,n){if(!t[e][n.payload.name])return t;const r=t[e][n.payload.name].filter((e=>e!==n.payload.handler)),i={...t};return i[e]={...t[e],[n.payload.name]:r},i}const{Provider:c,useHook:d}=(0,a.Z)("ResourceContext");function u({children:e}){const[{listeners:t,moreListeners:n},a]=(0,r.useReducer)(((e,t)=>{switch(t.type){case"addListener":return s("listeners",e,t);case"addMoreListener":return s("moreListeners",e,t);case"removeListener":return l("listeners",e,t);case"removeMoreListener":return l("moreListeners",e,t);default:return e}}),{listeners:{},moreListeners:{}});i.Z.fetchCompleteCallback=({resource:e,options:n,response:r,normalizedResponse:i,refresh:a,resourceSchema:o})=>{t[e]&&t[e].forEach((t=>t({isRefresh:a,normalizedResponse:i,options:n,schema:o,resource:e,response:r})))},i.Z.fetchMoreCompleteCallback=({resource:e,options:t,response:r,normalizedResponse:i,refresh:a,resourceSchema:o})=>{n[e]&&n[e].forEach((n=>n({isRefresh:a,normalizedResponse:i,options:t,schema:o,resource:e,response:r})))};const d=(0,r.useMemo)((()=>({listenerDispatch:a})),[]);return(0,o.jsx)(c,{value:d,children:e})}function p(e,t){const{listenerDispatch:n}=d();(0,r.useEffect)((()=>(n({type:"addListener",payload:{name:e,handler:t}}),()=>{n({type:"removeListener",payload:{name:e,handler:t}})})))}function h(e,t){const{listenerDispatch:n}=d();(0,r.useEffect)((()=>(n({type:"addMoreListener",payload:{name:e,handler:t}}),()=>{n({type:"removeMoreListener",payload:{name:e,handler:t}})})))}},134185:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(785893);const i=e=>{const t=e.itemType?{itemScope:!0,itemType:e.itemType}:{};return(0,r.jsx)("div",{"data-test-id":"rich-pin-information",...t,children:e.children||null})}},578661:(e,t,n)=>{n.d(t,{G:()=>r});const r="https://schema.org/Recipe"},995228:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(667294),i=n(966476),a=n(464228),o=n(785893);function s({children:e,fallback:t,dangerouslyServerRenderForGraphQL:n=!1}){const s=t||null,l=(0,i.Z)(),c=(0,a.P)();return c&&"legacy"!==c?n||l?(0,o.jsx)(r.Suspense,{fallback:s,children:e}):s:(0,o.jsx)(r.Suspense,{fallback:s,children:e})}},947599:(e,t,n)=>{n.d(t,{Z:()=>r});const r=n(995228).Z},909499:(e,t,n)=>{n.d(t,{Hd:()=>o,_R:()=>i,lw:()=>r,wF:()=>a});const r={PINS:"pins",PINS_BUYABLE:"buyable_pins",PINS_MINE:"my_pins",PINS_VIDEO:"videos",BOARDS:"boards",USERS:"users",IDEA_PINS:"idea_pins"},i=e=>{switch(e){case r.PINS:return 43;case r.PINS_MINE:return 107;case r.PINS_BUYABLE:return 254;case r.PINS_VIDEO:return 3306;case r.BOARDS:return 44;case r.USERS:return 45;default:return null}},a=e=>{switch(e){case r.PINS:return 60;case r.PINS_MINE:return 63;case r.PINS_BUYABLE:return 3800;case r.PINS_VIDEO:return 64;case r.BOARDS:return 61;case r.USERS:return 62;default:return null}},o=e=>{switch(e){case r.USERS:return 1000392;case r.PINS_BUYABLE:return 1000391;case r.PINS:default:return 29}}},862628:(e,t,n)=>{function r(e){return(e||"").trim().replace(/\s+/g," ")}n.d(t,{Z:()=>r})},648284:(e,t,n)=>{function r({appliedProductFilters:e,autoCorrectionDisabled:t,filters:n,query:r,scope:i,selectedPinImgSig:a,user:o}){const s=[i,n,e,o,a,r].map((e=>null!=e?e:"")).join(":");return t?"auto-correction-disabled:"+s:s}function i(e){const{autoCorrectionDisabled:t,appliedProductFilters:n,appliedFilters:r,filters:i,selectedPinImgSig:a,query:o,rs:s,scope:l,bubbleId:c,user:d}=e;return{name:"BaseSearchResource",options:function({autoCorrectionDisabled:e=!1,appliedFilters:t=null,appliedProductFilters:n=null,bubbleId:r=null,filters:i=null,query:a=null,rs:o="direct_navigation",scope:s="pins",selectedPinImgSig:l=null,sourceId:c=null,user:d}){return{article:r,applied_filters:t,appliedProductFilters:n,auto_correction_disabled:e,corpus:l?"personalize":null,customized_rerank_type:l?"manas_graph_sage_only_wand_rewrite":null,filters:i,query:a,query_pin_sigs:l,redux_normalize_feed:!0,rs:o,scope:s,source_id:c,user:d}}({autoCorrectionDisabled:!!t,appliedProductFilters:n,appliedFilters:r,filters:i,query:o,rs:s,scope:l,selectedPinImgSig:a,bubbleId:c,user:d})}}n.d(t,{Ht:()=>i,Tb:()=>r})},350576:(e,t,n)=>{n.d(t,{RX:()=>g,XE:()=>m,Xn:()=>h,an:()=>f,rV:()=>_});var r=n(826067);const i="BING",a="GOOGLE",o="YAHOO",s="YANDEX",l="RAKUTEN",c="NAVER",d="AMP_CACHE",u="DUCKDUCKGO",p=[a,i,o,s,l,c,d,u];function h(e){return p.includes(function(e){const{hostname:t}=(0,r.Qc)(e,!0);if(t&&e){if(t.includes("google.")||function(e){return e.includes("android-app://com.google.android.googlequicksearchbox")}(e))return a;if(t.includes("bing."))return i;if(t.includes("yahoo."))return o;if(t.includes("yandex."))return s;if(t.includes("rakuten."))return l;if(t.includes("naver."))return c;if(t.includes("duckduckgo."))return u;if(t.includes(".cdn.ampproject.org"))return d}return""}(e))}function m(e){return((0,r.Qc)(e).hostname||"").includes(".cdn.ampproject.org")}function f(e){return e||"undefined"!=typeof document&&document.referrer||""}const _="amp",g=e=>Boolean(e&&m(e))},706922:(e,t,n)=>{function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function i(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let a=0;a<n.length;a+=1)if(!Object.prototype.hasOwnProperty.call(t,n[a])||!r(e[n[a]],t[n[a]]))return!1;return!0}n.d(t,{Z:()=>i})},835209:(e,t,n)=>{function r({richPinData:e={}}){return((null==e?void 0:e.products)||[])[0]}n.d(t,{Z:()=>r})},31149:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(785893);function i({size:e=56}){return(0,r.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,r.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#EFEFEF"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.1106 19.6408C18.2759 19.551 18.4653 19.5 18.6667 19.5H37.3333C37.5535 19.5 37.7594 19.561 37.9351 19.667C37.9351 19.667 37.9352 19.667 37.9352 19.667L28.7395 27.2024C28.3095 27.5547 27.6905 27.5547 27.2605 27.2024L18.0648 19.667C18.0799 19.6579 18.0951 19.6492 18.1106 19.6408ZM14 20.8611V20.6667C14 18.0893 16.0893 16 18.6667 16H37.3333C39.9107 16 42 18.0893 42 20.6667V20.8611V34.6667C42 37.244 39.9107 39.3333 37.3333 39.3333H18.6667C16.0893 39.3333 14 37.244 14 34.6667V20.8611ZM38.5 23.7292V34.6667C38.5 35.311 37.9777 35.8333 37.3333 35.8333H18.6667C18.0223 35.8333 17.5 35.311 17.5 34.6667V23.7292L25.0422 29.9095C26.7622 31.319 29.2378 31.319 30.9578 29.9096L38.5 23.7292Z",fill:"black"})]})}},659522:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(785893);function i({size:e=56}){return(0,r.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,r.jsx)("path",{d:"M56 28C56 12.536 43.464 0 28 0S0 12.536 0 28c0 13.975 10.24 25.56 23.625 27.66V36.094h-7.11V28h7.11v-6.169c0-7.017 4.18-10.893 10.576-10.893 3.064 0 6.268.546 6.268.546v6.891h-3.53c-3.479 0-4.564 2.159-4.564 4.373V28h7.766l-1.242 8.094h-6.524V55.66C45.761 53.56 56 41.975 56 28Z",fill:"#1877F2"}),(0,r.jsx)("path",{d:"M38.9 36.094 40.14 28h-7.765v-5.252c0-2.215 1.085-4.373 4.563-4.373h3.53v-6.89s-3.203-.547-6.267-.547c-6.396 0-10.576 3.876-10.576 10.893V28h-7.11v8.094h7.11V55.66a28.206 28.206 0 0 0 8.75 0V36.094h6.524Z",fill:"#fff"})]})}},331744:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(785893);function i({size:e=56}){return(0,r.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,r.jsx)("path",{d:"M28 56c15.464 0 28-12.536 28-28S43.464 0 28 0 0 12.536 0 28s12.536 28 28 28Z",fill:"#00B900"}),(0,r.jsx)("path",{d:"M46.625 26.32c0-8.335-8.354-15.115-18.625-15.115-10.267 0-18.625 6.78-18.625 15.115 0 7.471 6.627 13.73 15.578 14.91.606.13 1.432.401 1.642.92.187.47.122 1.208.06 1.684l-.265 1.596c-.08.471-.373 1.843 1.615 1.003 1.988-.835 10.724-6.314 14.634-10.812 2.693-2.964 3.986-5.969 3.986-9.3Z",fill:"#fff"}),(0,r.jsx)("path",{d:"M24.215 22.293H22.91c-.201 0-.364.163-.364.364v8.115c0 .2.163.364.364.364h1.306c.2 0 .364-.163.364-.364v-8.12a.363.363 0 0 0-.364-.36ZM33.208 22.293H31.9c-.2 0-.364.163-.364.364v4.82l-3.72-5.02c-.009-.015-.018-.024-.027-.038l-.005-.005-.023-.023c-.005 0-.005-.005-.005-.005-.005-.005-.014-.01-.019-.014l-.009-.01c-.005-.004-.014-.008-.019-.013-.004-.005-.009-.005-.009-.005a.036.036 0 0 0-.019-.01c-.004 0-.009-.004-.009-.004-.005-.004-.014-.004-.019-.01-.004 0-.009-.004-.014-.004l-.023-.01c-.005 0-.01 0-.014-.004-.01 0-.014-.005-.019-.005h-.014c-.004 0-.014 0-.018-.004H26.212c-.2 0-.364.163-.364.364v8.115c0 .2.164.364.364.364h1.307c.2 0 .364-.163.364-.364v-4.82l3.724 5.03a.283.283 0 0 0 .093.089s.005 0 .005.005c.01.004.014.009.023.014.005 0 .005.004.01.004.004.005.01.005.018.01.005.004.01.004.02.009.004 0 .008.005.008.005.01.004.02.004.024.009h.004c.028.01.061.014.094.014h1.306c.201 0 .364-.163.364-.364v-8.125a.37.37 0 0 0-.368-.36ZM21.065 29.097h-3.551v-6.445c0-.2-.164-.364-.364-.364h-1.307c-.2 0-.364.163-.364.364v8.115c0 .098.037.187.103.252l.004.005.005.005c.065.06.154.102.252.102h5.217c.201 0 .364-.163.364-.364v-1.306a.358.358 0 0 0-.359-.364ZM40.422 24.323c.201 0 .364-.163.364-.364v-1.307c0-.2-.163-.364-.364-.364h-5.217a.353.353 0 0 0-.252.103l-.005.005c0 .004-.004.004-.004.004a.373.373 0 0 0-.103.252v8.115c0 .098.037.187.103.252l.004.005.005.005c.065.06.154.102.252.102h5.217c.201 0 .364-.163.364-.364v-1.306c0-.2-.163-.364-.364-.364h-3.55v-1.372h3.55c.201 0 .364-.164.364-.364v-1.307c0-.2-.163-.364-.364-.364h-3.55v-1.372h3.55v.005Z",fill:"#00B900"})]})}},757146:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(785893);function i({size:e=56}){return(0,r.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,r.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#fff"}),(0,r.jsx)("rect",{x:".5",y:".5",width:"55",height:"55",rx:"27.5",stroke:"#767676",strokeOpacity:".4"}),(0,r.jsx)("path",{d:"M28 12c-9.012 0-16 6.604-16 15.52 0 4.664 1.912 8.696 5.024 11.48.26.232.42.56.428.912l.088 2.848c.028.908.964 1.5 1.796 1.132l3.176-1.4c.268-.12.572-.14.856-.064 1.46.4 3.012.616 4.632.616 9.012 0 16-6.604 16-15.52S37.012 12 28 12Z",fill:"url(#paint0_radial_3730_649)"}),(0,r.jsx)("path",{d:"m18.392 32.06 4.7-7.456a2.401 2.401 0 0 1 3.472-.64l3.74 2.804a.96.96 0 0 0 1.156-.004l5.048-3.832c.672-.512 1.552.296 1.104 1.012l-4.704 7.452a2.401 2.401 0 0 1-3.472.64l-3.74-2.804a.96.96 0 0 0-1.156.004l-5.048 3.832c-.672.512-1.552-.292-1.1-1.008Z",fill:"#fff"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("radialGradient",{id:"paint0_radial_3730_649",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(18.16 43.826) scale(34.8672)",children:[(0,r.jsx)("stop",{stopColor:"#09F"}),(0,r.jsx)("stop",{offset:".61",stopColor:"#A033FF"}),(0,r.jsx)("stop",{offset:".935",stopColor:"#FF5280"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#FF7061"})]})})]})}},464240:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(785893);function i({size:e=56}){return(0,r.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,r.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#1DA1F2"}),(0,r.jsx)("path",{d:"M24.34 42c11.37 0 17.591-9.429 17.591-17.591 0-.265 0-.53-.012-.796a12.596 12.596 0 0 0 3.087-3.207c-1.11.494-2.303.82-3.557.976a6.22 6.22 0 0 0 2.725-3.424 12.299 12.299 0 0 1-3.93 1.495 6.17 6.17 0 0 0-4.51-1.953 6.19 6.19 0 0 0-6.186 6.185c0 .483.06.953.157 1.411-5.136-.253-9.694-2.725-12.744-6.463a6.184 6.184 0 0 0-.832 3.111 6.2 6.2 0 0 0 2.749 5.148 6.254 6.254 0 0 1-2.797-.771v.084a6.196 6.196 0 0 0 4.955 6.065 6.028 6.028 0 0 1-1.628.217c-.397 0-.783-.036-1.157-.109a6.182 6.182 0 0 0 5.775 4.293 12.4 12.4 0 0 1-7.68 2.652c-.494 0-.989-.024-1.471-.084A17.587 17.587 0 0 0 24.34 42Z",fill:"#fff"})]})}},22641:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(785893);function i({size:e=56}){return(0,r.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,r.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#25D366"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.206 16.65A15.75 15.75 0 0 0 27.99 12c-8.74 0-15.854 7.113-15.857 15.855a15.821 15.821 0 0 0 2.117 7.927L12 44l8.406-2.205a15.837 15.837 0 0 0 7.577 1.93h.007c8.74 0 15.853-7.114 15.856-15.857a15.76 15.76 0 0 0-4.64-11.218ZM27.99 41.047h-.005c-2.365 0-4.684-.636-6.708-1.837l-.482-.286-4.988 1.309 1.331-4.864-.313-.499a13.146 13.146 0 0 1-2.015-7.014c.003-7.266 5.915-13.178 13.185-13.178a13.09 13.09 0 0 1 9.318 3.865 13.098 13.098 0 0 1 3.856 9.324c-.003 7.267-5.915 13.18-13.179 13.18Zm7.23-9.871c-.397-.199-2.345-1.157-2.708-1.289-.364-.132-.628-.198-.891.198-.264.397-1.024 1.29-1.255 1.554-.231.264-.462.297-.858.099-.396-.199-1.673-.617-3.187-1.966-1.178-1.051-1.973-2.348-2.204-2.745-.231-.397-.024-.611.173-.808.178-.178.397-.463.595-.695.198-.23.264-.396.396-.66.132-.265.066-.496-.033-.695-.098-.198-.89-2.148-1.221-2.941-.322-.773-.649-.668-.892-.68a16.01 16.01 0 0 0-.759-.014c-.264 0-.693.099-1.057.495-.363.397-1.387 1.356-1.387 3.305 0 1.95 1.42 3.835 1.618 4.1.199.264 2.794 4.265 6.769 5.982.945.409 1.683.653 2.259.835.948.302 1.812.26 2.495.157.76-.114 2.344-.958 2.674-1.884.33-.925.33-1.719.23-1.884-.098-.166-.362-.266-.758-.464Z",fill:"#fff"})]})}},867060:(e,t,n)=>{n.d(t,{c:()=>r,y:()=>i});const r={10:13098,11:13099,6:13100,5:13101,14:13102,12:13103,15:13104,8:13105,4:13106,1:13107,18:13108,19:13109,20:13110,21:13111,22:13112,23:13113,26:13114,27:13115,29:13116,9:13286},i={pin:1,board:2,did_it:6,pinner:3,user:3,today_article:8}},957161:(e,t,n)=>{n.d(t,{L_:()=>i,Nh:()=>a,qn:()=>r});const r=(e,t=null)=>{try{return"undefined"!=typeof window&&window.localStorage.getItem(e)||t}catch(n){return console.error("Cannot access localStorage."),t}},i=e=>{try{if("undefined"==typeof window)return;window.localStorage.removeItem(e)}catch(t){console.error("Cannot access localStorage.")}},a=(e,t)=>{try{if("undefined"==typeof window)return;window.localStorage.setItem(e,t)}catch(n){console.error("Cannot access localStorage.")}}},696157:(e,t,n)=>{n.d(t,{E9:()=>l,F6:()=>h,MM:()=>E,MS:()=>r,On:()=>p,SI:()=>w,TJ:()=>c,TO:()=>u,W3:()=>s,WM:()=>b,XC:()=>y,XS:()=>P,Y9:()=>_,Yp:()=>m,_b:()=>i,_l:()=>g,bY:()=>d,e9:()=>a,iu:()=>v,kl:()=>S,om:()=>o,ou:()=>T,qo:()=>f});const r="visitedPagesBeforeLogin",i="_lastVisitedPages",a="visitedPinLandingPagesBeforeLogin",o="visitedBoardLandingPagesBeforeLogin",s="lastVisitedPage",l="unauthTopicsFollowed",c="unauthPins",d="unauthHybridLoginModalView",u="unauthHybridClickthroughCount",p="unauthHybridClickthroughTS",h="signupTime",m="signupInterestsPickerScrollDown",f="signupTriedSkipInputName",_="signupTriedSkipGender",g="signupInterestsPickerStartTime",y="signupUserLocale",v="signupUserCountry",b="uoiou",w="unauthRevisitation",S="urh",E="lineOAuthOneTimeCode",P="unlinkNetwork",T="mfapc"},622096:(e,t,n)=>{n.d(t,{L_:()=>i,Nh:()=>a,qn:()=>r});const r=(e,t)=>{if("undefined"==typeof window)return t;try{return window.sessionStorage.getItem(e)}catch(n){return window.console.error("Cannot access sessionStorage."),t}},i=e=>{if("undefined"!=typeof window)try{window.sessionStorage.removeItem(e)}catch(t){window.console.error("Cannot access sessionStorage.")}},a=(e,t)=>{if("undefined"!=typeof window)try{window.sessionStorage.setItem(e,t)}catch(n){window.console.error("Cannot access sessionStorage.")}}},226347:(e,t,n)=>{n.d(t,{Hx:()=>h,RC:()=>p,Wr:()=>u});var r=n(667294),i=n(311541),a=n(425288),o=n(924687),s=n(785893);const l=()=>Promise.resolve().then(n.bind(n,924687)),{Provider:c,useHook:d}=(0,a.Z)("IdeaPinVideoPlayer");function u({children:e}){const[t,n]=(0,i.Z)(l,o.initialState),a=(0,r.useMemo)((()=>({dispatch:n,ideaPinVideoPlayerControls:t})),[n,t]);return(0,s.jsx)(c,{value:a,children:e})}function p(){const{dispatch:e}=d();return(0,r.useMemo)((()=>({updateSeekTime:t=>{e({type:"UPDATE_SEEK_TIME",payload:{seekTime:t}})},clearSeekTime:()=>{e({type:"CLEAR_SEEK_TIME",payload:{seekTime:void 0}})},updateSeekingIdeaPin:t=>{e(t?{type:"UPDATE_SEEKING_IDEA_PIN",payload:{seekingIdeaPin:t}}:{type:"UPDATE_SEEKING_IDEA_PIN",payload:{seekingIdeaPin:t,seekTime:void 0}})},updateCurrentTime:t=>{e({type:"UPDATE_CURRENT_TIME",payload:{currentTime:t}})},updateDuration:t=>{e({type:"UPDATE_DURATION",payload:{duration:t}})}})),[e])}function h(){const{ideaPinVideoPlayerControls:e}=d();return e}},924687:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i,initialState:()=>r});const r={seekTime:void 0,seekingIdeaPin:!1,currentProgressInfo:{currentTime:0,duration:0}};function i(e=r,t){switch(t.type){case"UPDATE_SEEK_TIME":return{...e,seekTime:t.payload.seekTime};case"CLEAR_SEEK_TIME":return{...e,seekTime:void 0};case"UPDATE_SEEKING_IDEA_PIN":return{...e,seekingIdeaPin:t.payload.seekingIdeaPin};case"UPDATE_CURRENT_TIME":return{...e,currentProgressInfo:{...e.currentProgressInfo,currentTime:t.payload.currentTime}};case"UPDATE_DURATION":return{...e,currentProgressInfo:{...e.currentProgressInfo,duration:t.payload.duration}};default:return e}}},224496:(e,t,n)=>{n.d(t,{Cc:()=>u,Gf:()=>h,LX:()=>i,Rf:()=>l,YL:()=>s,ap:()=>a,h8:()=>d,kF:()=>m,pE:()=>c,s5:()=>p,yR:()=>o});var r=n(883119);const i={w:9,h:16},a=i.w/i.h,o=8,s=10,l=5e3;function c(e,t=1){return{x:(null!=e?e:24)/5,y:(null!=e?e:24)*(t-1)}}const d={COMMENT_REPLY_STICKER:"story_pin_comment_reply_block",GENERIC_STICKER:"story_pin_generic_interactive_sticker_block",HEADING:"story_pin_heading_block",IMAGE:"story_pin_image_block",INGREDIENT:"story_pin_ingredient_block",LINK:"story_pin_link_block",MENTION_STICKER:"story_pin_mention_sticker_block",MUSIC:"story_pin_music_block",PARAGRAPH:"story_pin_paragraph_block",PRODUCT_STICKER:"story_pin_product_sticker_block",SUPPLY:"story_pin_supply_block",VIDEO:"story_pin_video_block",VTO_MAKEUP_STICKER:"story_pin_virtual_try_on_makeup_sticker_block"},u={alignment:1,hex_color:"#111111",highlight_color:"#FFFFFF",vertical_alignment:1,font:{default_size:28,id:"1",key:"Graphik-Regular.otf",letter_spacing:-.4,line_height:1.25,name:"Teaspoon",url:"https://s.pinimg.com/story_pins/fonts/Graphik-Regular.otf"},font_size:28},p=new r.Ry(5),h=new r.H3([p]),m=new r.H3([h])},940882:(e,t,n)=>{n.d(t,{J:()=>r,Z:()=>i});const r=-1;function i(e){switch(e){case 0:return"shopping-bag";case 1:return"tag";default:return"search"}}},985913:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(858142);const i=/\{\{\s*(\w+)\s*\}\}/g,a=(e,t)=>(0,r.Z)(i,e,t)},858791:(e,t,n)=>{n.d(t,{Z:()=>r});const r=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&#39;")},936776:(e,t,n)=>{n.d(t,{Z:()=>i});const r=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,i=e=>r.test(e)},927104:(e,t,n)=>{n.d(t,{Z:()=>r});const r=(e,t)=>e.length>t?e.substr(0,t-3).trim()+"…":e},858142:(e,t,n)=>{n.d(t,{Z:()=>r});const r=(e,t,n)=>t?t.replace(e,((e,t)=>n&&Object.prototype.hasOwnProperty.call(n,t)?n[t]:"")):""},66699:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(985913),i=n(858791);const a=(e,t)=>{const n={};return Object.keys(t).forEach((e=>{n[e]=t[e]?(0,i.Z)(t[e].toString()):""})),(0,r.Z)(e,n)}},883561:(e,t,n)=>{n.d(t,{ZP:()=>r});function r(e,t=80,n="…",r=false){let i;if(!e)return"";if(e.length<=t)return e;if(" "!==e[t-1]&&" "===e[t]||r)i=e.substring(0,t);else{const n=e.lastIndexOf(" ",t);i=e.substring(0,n)}return i=i.replace(/[\- _,.<>:;+=*&@~\/\|!]*$/,""),i+n}},700380:(e,t,n)=>{function r(e,t){let n;const r=(...r)=>{n||(e(...r),n=setTimeout((()=>n=null),t))};return r.cancel=()=>{void 0!==n&&clearTimeout(n)},r}n.d(t,{Z:()=>r})},790123:(e,t,n)=>{n.d(t,{j:()=>u,w:()=>d});var r=n(829407),i=n(19121),a=n(407043),o=n(50286),s=n(425288),l=n(785893);const{Provider:c,useMaybeHook:d}=(0,s.Z)("TimeSpentManagerContext");function u({children:e,value:t}){const n=(0,a.v)(),s=(0,o.HG)(),{isAuth:d}=(0,i.Z)(),u=s&&d;return(0,r.Z)((()=>{document.hasFocus()&&t(n,u).registerApp(),t(n,u).addEventListeners()})),(0,l.jsx)(c,{value:t(n,u),children:e})}},245474:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(172045),i=n(17314);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const o="undefined"!=typeof window&&window.performance&&window.performance.now?()=>Math.floor(1e6*window.performance.now()):()=>1e6*Date.now();const s=class{constructor(e){a(this,"start",(()=>(this.startTime=o(),this.startTime))),a(this,"end",(()=>(this.endTime=o(),this.duration=this.startTime?this.endTime-this.startTime:null,this.duration)));try{this.uuid=(0,r.Z)()}catch(t){this.uuid=(0,i.Z)()}e&&Object.assign(this,e)}}},784641:(e,t,n)=>{n.d(t,{E5:()=>c,T7:()=>r,Y_:()=>d,Yj:()=>o,d9:()=>p,nx:()=>u,pe:()=>s,xt:()=>l});n(883119);function r(e,t,n,r){const i=function(e,t){return t?"shop":0===e||2===e?"trending":1===e?"best":"article"}(e,t),a=function(e){return e.toLowerCase().replace(/[.,\/#!?$%\^&\*+;:{}=\-_`~()\’'"]/g,"").trim().replace(/\s+/g,"-")}(n);return`/today/${i}/${encodeURIComponent(a)}/${r}/`}const i={"www.pinterest.com":"US","www.pinterest.co.uk":"GB","www.pinterest.ca":"CA","www.pinterest.com.au":"AU","br.pinterest.com":"BR","www.pinterest.com.mx":"MX","ar.pinterest.com":"AR","www.pinterest.cl":"CL","co.pinterest.com":"CO","www.pinterest.de":"DE","www.pinterest.at":"AT","www.pinterest.ch":"CH","www.pinterest.fr":"FR","in.pinterest.com":"IN","id.pinterest.com":"ID","www.pinterest.jp":"JP"},a={US:"en",GB:"en",CA:"en",AU:"en",BR:"pt",MX:"es",AR:"es",CL:"es",CO:"es",PE:"es",DE:"de",AT:"de",CH:"de",FR:"fr",IN:"en",ID:"id",JP:"ja",IT:"it"},o=(e,t)=>{const n=a[e];return!(null===n||n!==t&&!t.startsWith(n))},s=e=>i[e],l=(e,t,n)=>e||(t||n||""),c=(e,t)=>e||((null==t?void 0:t.origin_pinner)||(null==t?void 0:t.pinner)),d=e=>"todayarticle"===e.type,u=e=>Array.isArray(e)&&e.length>0&&e.every((e=>"story"===e.type)),p=e=>{var t,n;return(null!==(t=e.height)&&void 0!==t?t:1)/(null!==(n=e.width)&&void 0!==n?n:1)}},867820:(e,t,n)=>{n.d(t,{yl:()=>d,qJ:()=>p,Nc:()=>g,dy:()=>y,NC:()=>_,My:()=>m,tj:()=>h});var r=n(6637);const i="unauthHistories",a="authHistories",o="trackHistoryClickInternalUrl";var s=n(622096);let l=[];let c;function d(e){l.length&&(r.Z.create("UserRegisterTrackActionResource",{actions:l}).callUpdate({showError:!1,async:!e}),l=[],c=null)}function u(e,t){const n=(0,s.qn)(o);if((0,s.L_)(o),n)return;let r=(0,s.qn)(e);if(r=r?r.split(","):[],r.length){const e=`${t}.${r.reduce(((e,t)=>e+"-"+t))}`;l.push({name:e,aux_data:{}})}(0,s.L_)(e)}const p=e=>{u(i,e),u(a,`${e}_auth`),l.length&&d(!0)};function h(e,t){let n="undefined"!=typeof window&&window.encodeURIComponent&&encodeURIComponent(e)||e;t||(t={}),-1!==n.indexOf("%")&&(t.invalid_action&&(t.invalid_action_original=t.invalid_action),t.invalid_action=n,n="track_register_action.web.invalid_action.with_percent"),l.push({name:n,aux_data:t}),c||(c=setTimeout((()=>d()),5e3)),function(e,t){if("undefined"!=typeof window)try{const n=new URL(window.location.href).searchParams.get("consoleTra");if(window.PINTEREST_DEV_LOG||n){const n=window.PINTEREST_DEV_REGEX||"";n&&!(e||"").match(n)||(t&&"object"==typeof t&&Object.keys(t).length?console.log(e+": %O",t):console.log(e))}}catch(n){}}(e,t)}function m(e,t){h(e,{tags:t?{...t}:Object.freeze({})})}function f(e,t,n=!1){if("undefined"==typeof window)return;let r=(0,s.qn)(e);r=r?r.split(","):[],r.push(t),(0,s.Nh)(e,r.join()),e!==a&&m(`lex.${t}`),n&&(0,s.Nh)(o,!0)}function _(e,t=!1){f(i,e,t)}function g(e,t=!1){f(a,e,t)}const y=({event:e,provider:t})=>{m(`pinner_conversion.autologin.${t}.${e}`)}},52022:(e,t,n)=>{n.d(t,{S:()=>s,Z:()=>l});var r=n(667294),i=n(867820),a=n(53987),o=n(276775);const s=e=>(0,a.L6)(e)?"pin":(0,a.am)(e)?"board":(0,a.Xn)(e)?"login":(0,a.C$)(e)?"home":(0,a.cD)(e)?"profile":(0,a.dr)(e)?"ideas":(0,a.gT)(e)?"ideas-root":(0,a.tZ)(e)?"videos":(0,a.$Y)(e)?"article":(0,a.E0)(e)?"shopping-spotlight":(0,a.Zz)(e)?"today":(0,a.j8)(e)?"unauth-profile":(0,a.f1)(e)?"shopping-root":"other";function l(){const e=(0,o.useLocation)();return(0,r.useCallback)((({action:t,item:n,within:r})=>{const a=s(e);(0,i.My)(`logged_out_product.interaction.${a}.${t}`,{item:n||"none",within:r||"none"})}),[e])}},477802:(e,t,n)=>{n.d(t,{W:()=>o,Z:()=>a});var r=n(883119),i=n(785893);function a({data:e}){return(0,i.jsx)(r.xu,{overflow:"auto",dangerouslySetInlineStyle:{__style:{border:"2px solid red"}},"data-test-id":"debug-info",children:(0,i.jsx)("pre",{children:JSON.stringify(e,null,2).replace(/\\n/g,"\n")})})}const o=e=>(0,i.jsx)(r.xu,{width:236,dangerouslySetInlineStyle:{__style:{marginTop:10}},children:(0,i.jsx)(a,{...e})})},948618:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(883119),i=n(785893);function a({ariaHidden:e=!1,color:t="darkGray",size:n}){return(0,i.jsx)("span",{"aria-hidden":e,style:{padding:"0 4px"},children:(0,i.jsx)(r.xv,{color:t,inline:!0,size:null!=n?n:"200",children:"·"})})}},343341:(e,t,n)=>{n.d(t,{F9:()=>o,Zo:()=>i,nE:()=>a});var r=n(425288);const{Provider:i,Consumer:a,useHook:o}=(0,r.Z)("toastManagerContext")},170168:(e,t,n)=>{n.d(t,{Ag:()=>a,C0:()=>l,Vi:()=>o,YD:()=>u,kS:()=>i,oo:()=>s,vC:()=>c,vI:()=>d});var r=n(401060);const i="https://www.pinterest.com/business/hub/",a="https://www.pinterest.com/homefeed/",o="www.pinterest.com",s="https://help.pinterest.com",l="https://www.pinterest.com",c=(0,r.Z)({site:"developers"}),d=`${(0,r.Z)({site:"sterling"})}`,u=`${(0,r.Z)({site:"analytics"})}`},250059:(e,t,n)=>{n.d(t,{Z:()=>r});const r=e=>e?"string"==typeof e?e:e.pathname?e.pathname:"":""},149230:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(954931);const i=({url:e})=>!(!e||!e.match(/^https{0,1}:\/\//)||(0,r.Z)(e))},508847:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(567831);const i=(e,t)=>0===e.lastIndexOf(t,0),a=({url:e})=>{const t=(0,r.Z)("/");return i(e,t)?e.substr(t.length-1):e}},311541:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(667294);function i(e,t){const n=(0,r.useRef)([]),[i,a]=(0,r.useState)(),[o,s]=(0,r.useReducer)(null!=i?i:()=>t,t),l=(0,r.useCallback)((t=>{i?s(t):(n.current.length||e().then((e=>{a((()=>e.default))})),n.current=[...n.current,t])}),[e,i]);return(0,r.useEffect)((()=>{i&&(n.current.forEach(s),n.current=[])}),[i]),[o,l]}},829407:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(667294);const i=e=>{(0,r.useEffect)(e,[])}},807609:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(411465),i=n(966476);const a=()=>{const e=(0,r.Z)(),t=(0,i.Z)();return e&&!t}},411465:(e,t,n)=>{n.d(t,{G:()=>s,Z:()=>l});var r=n(667294),i=n(276775),a=n(785893);const o=(0,r.createContext)(!0);function s({children:e}){const t=(0,i.useLocation)(),[n,s]=(0,r.useState)(!0),l=(0,r.useRef)(t);return(0,r.useEffect)((()=>{l.current!==t&&(l.current=t,s(!1))}),[t]),(0,a.jsx)(o.Provider,{value:n,children:e})}function l(){return(0,r.useContext)(o)}},46584:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(667294);const i=new Map;let a=null;const o=e=>{e.forEach((e=>{const t=i.get(e.target);t&&t(e)}))};function s({onVisibilityChanged:e,inAdsDesktopVideoExperiment:t,trackFullVisible:n,rootMargin:s}){const l=(0,r.useRef)(null);let c=!1;const d=()=>{var t;l.current instanceof HTMLElement&&(t=l.current,i.has(t))&&(c&&(e(!1),c=!1))},u=(0,r.useCallback)((r=>{l.current instanceof HTMLElement&&((e,t="-64px 0px 0px 0px",n)=>{const r={root:"undefined"==typeof document?null:document.querySelector("#mainContainer"),rootMargin:t,threshold:[0,.5,1]};a=a||new window.IntersectionObserver(o,r),i.set(e,n),a.observe(e)})(l.current,r,(r=>{if(!i.has(l.current))return;const a=t?r.intersectionRatio>=.5:r.intersectionRatio>0||r.isIntersecting,o=n?r.intersectionRatio>=1:a,s=n?0===r.intersectionRatio:!o;!c&&o?(t=>{const n=t.intersectionRatio>0||t.isIntersecting;c=n,c&&e(!0)})(r):c&&s&&d()}))}),[l.current]);return(0,r.useEffect)((()=>(u(s),()=>{var e;l.current instanceof HTMLElement&&(d(),e=l.current,a.unobserve(e),i.delete(e))})),[u]),l}},134906:(e,t,n)=>{n.d(t,{Bh:()=>d,C9:()=>b,CB:()=>h,CU:()=>o,FU:()=>x,GT:()=>s,Gy:()=>_,J_:()=>P,Jx:()=>m,MZ:()=>g,VC:()=>p,VG:()=>l,ZA:()=>c,Zt:()=>f,a3:()=>I,aH:()=>a,h7:()=>E,nw:()=>v,oR:()=>w,qA:()=>u,qp:()=>T,sG:()=>y,vd:()=>R,xk:()=>S});var r=n(89254);const i=e=>{const t={"０":"0","１":"1","２":"2","３":"3","４":"4","５":"5","６":"6","７":"7","８":"8","９":"9","　":" "},n=String(e).split("");return n.forEach(((e,r)=>{const i=t[e];i&&(n[r]=i)})),n.join("")};function a(e){return function(t,n){const r=[];t&&/\S/.test(t)||r.push(e.message);const i={errors:r,warnings:[]};return n&&n(i),i}}const o=new RegExp(["(^[-!#$%&'*+/=?^_`{}|~0-9A-Z]+(\\.[-!#$%&'*+/=?^_`{}|~0-9A-Z]+)*",'|^"([\\001-\\010\\013\\014\\016-\\037!#-\\[\\]-\\177]|\\\\[\\001-\\011\\013\\014\\016-\\177])*"',")@((?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\\.)+[A-Z]{2,20}$)","|\\[(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}\\]$"].join(""),"i");function s(e){return function(t,n){const r=[];(t=t&&t.trim()).match(o)||r.push(e.message);const i={errors:r,warnings:[]};return n&&n(i),i}}function l(e){return function(t,n){const r=[];(t=t&&t.trim()).match(/^[^0-9].*$/)||r.push(e.message);const i={errors:r,warnings:[]};return n&&n(i),i}}function c(e){return function(t,n){const r=[];if(t){const n=parseInt(t,10);Number.isNaN(n)?r.push(e.invalidAgeString):(e.ageTooShortString&&n<10&&r.push(e.ageTooShortString),n<=0||n>120?r.push(e.invalidAgeString):e.checkUnderAgeWithString&&n<13&&r.push(e.checkUnderAgeWithString))}const i={errors:r,warnings:[]};return n&&n(i),i}}function d(e){return function(t,n){const r=(t=t&&t.trim()).replace(/[\(\)\+\-\. ]/g,""),i=[],a=!1!==e.checkLength&&r.length<7;!t||t.match(/^(\(?\+?[0-9]*\)?)?[0-9_\- \.\(\)]*$/g)&&!a||i.push(e.message);const o={errors:i,warnings:[]};return n&&n(o),o}}function u(e){return function(t,n){const r=/^\d+$/,a=[];"number"==typeof t||"string"==typeof t&&(t=t&&t.trim(),(t=i(t))&&!t.match(r)&&a.push(e.message));const o={errors:a,warnings:[]};return n&&n(o),o}}function p(e){return function(t,n){const r=/^[\d\ -]+$/,a=[];"number"==typeof t||"string"==typeof t&&(t=t&&t.trim(),(t=i(t))&&!t.match(r)&&a.push(e.message));const o={errors:a,warnings:[]};return n&&n(o),o}}const h=e=>!!e.match(/^(https?:\/\/){0,1}[a-z0-9_\-]+\..+/gi);function m(e){return function(t,n){const r=[];t&&!h(t)&&r.push(e.message);const i={errors:r,warnings:[]};return n&&n(i),i}}function f(e){return function(t,n){const i=[];if(t)try{const n=(0,r.Z)(t);n&&n.protocol&&("http"!==n.protocol||"localhost"===n.hostname)||i.push(e.message)}catch(o){i.push(e.message)}const a={errors:i,warnings:[]};return n&&n(a),a}}function _(e){return function(t,n){const r=[];(e.should_trim||!1)&&(t=t&&t.trim());const i=t.length;e.min&&i<e.min?r.push(e.minErrorString):e.max&&i>e.max&&r.push(e.maxErrorString);const a={errors:r,warnings:[]};return n&&n(a),a}}function g(e){return function(t,n){const r=!e.checkExclusion,i=e.substrings,a=[];(r&&!i.some((e=>t.includes(e)))||!r&&i.some((e=>t.includes(e))))&&a.push(e.message);const o={errors:a,warnings:[]};return n&&n(o),o}}function y(e){return function(t,n){const r=[];t!==(e&&e.targetValue)&&r.push(e.message);const i={errors:r,warnings:[]};return n&&n(i),i}}function v(e){return function(t,n){const r=[];(t?parseFloat(t):0)<e.value&&r.push(e.message);const i={errors:r,warnings:[]};return n&&n(i),i}}function b(e){return function(t,n){const r=new Date(t),i=[];e.date instanceof Date&&r instanceof Date&&e.date<r&&i.push(e.message);const a={errors:i,warnings:[]};return n&&n(a),a}}function w(e){return function(t,n){const r=[];/^[\040-\176]*$/.test(t)||r.push(e.message);const i={errors:r,warnings:[]};return n&&n(i),i}}function S(e){return function(t,n){let r=2;if(e.hasFractionalCents)r=3;else if(e.currencyCode){const{maximumFractionDigits:t}=new Intl.NumberFormat(void 0,{style:"currency",currency:e.currencyCode}).resolvedOptions();r=t}const i=new RegExp(r?`^\\d*(\\.\\d{1,${r}})?$`:"^\\d*$"),a=[];"number"==typeof t&&(t=t.toString()),t&&!t.match(i)&&(t=t&&t.trim(),a.push(e.message));const o={errors:a,warnings:[]};return n&&n(o),o}}function E(e){return function(t,n){const r=[];Number(t)>=1e13&&r.push(e.message);const i={errors:r,warnings:[]};return n&&n(i),i}}function P(e){return function(t,n){t=t&&t.trim();const r=[],i=new Date(t);t&&!i.getTime()&&r.push(e.message);const a={errors:r,warnings:[]};return n&&n(a),a}}function T(e){return function(t,n){const r=t&&t.trim(),i=[];r&&!r.match(/^([01]?[0-9]|2[0-3]):[0-5][0-9]$/)&&i.push(e.message);const a={errors:i,warnings:[]};return n&&n(a),a}}function R(e){return function(t,n){const r=[];e.pattern.test(t)||r.push(e.message);const i={errors:r,warnings:[]};return n&&n(i),i}}function x(e,t){const n=e.map((e=>e(t).errors));return[].concat(...n)}function I(e,t){let n="";return t.some((t=>{const r=t(e);return r.errors.length>0&&(n=r.errors[0],!0)})),n}},562559:(e,t,n)=>{n.d(t,{Z:()=>b});var r=n(667294),i=n(867631),a=n.n(i),o=n(112690),s=n(19121),l=n(965900),c=n(773285),d=n(780280),u=n(883119),p=n(969315),h=n(179888),m=n(226347),f=n(785893);function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g=(e,t)=>{if(t){const n="control"===t?"v3.pinimg.com":"v2.pinimg.com";return e.replace("v.pinimg.com",n)}return e},y=(e,t)=>"string"==typeof e?g(e,t):Array.isArray(e)?((e,t)=>e[0].src&&t?[{...e[0],src:g(e[0].src,t)}]:e)(e,t):e;class v extends r.PureComponent{constructor(...e){super(...e),_(this,"state",{canPlayVideo:!1,isManifestParsed:!1,playbackState:h.Cy.DEFAULT,videoStartTime:this.props.seekTime||0}),_(this,"errorRetryCount",1),_(this,"firstFragBuffered",!1),_(this,"hasPlaybackStarted",!1),_(this,"hasVideoSessionStarted",!1),_(this,"hasVideoSessionEnded",!1),_(this,"hls",null),_(this,"fragStartupTime",{}),_(this,"lastLevelSwitchKbps",null),_(this,"lastStallTime",null),_(this,"lastPauseTime",null),_(this,"logSessionStartOnNextPlay",!1),_(this,"playerId",""),_(this,"videoSessionId",""),_(this,"videoVisibleTime",null),_(this,"playbackPerformance",{canPlayTime:null,detailedErrors:"",downloadedKiloBytes:0,errorCode:0,errorName:"",errorReason:"",hasFatalError:!1,loadStartTime:null,numberOfStalls:0,numberOfSeeks:0,playbackStartTimestamp:null,segments:[],srcString:"string"==typeof this.props.src?g(this.props.src,this.props.quicExpGroup):g(this.props.src[0].src,this.props.quicExpGroup),totalStallDurationMs:0,totalPauseDurationMs:0,videoCreatedTime:null}),_(this,"initializeHls",(()=>{this.destroyHls();const{src:e,hlsConfig:t,quicExpGroup:n}=this.props,r=new(a())(t),i=y(e,n);r.loadSource(i),this.videoPlayerRef&&r.attachMedia(this.videoPlayerRef.video),r.on(a().Events.FRAG_BUFFERED,this.handleHlsFragBuffered),r.on(a().Events.FRAG_CHANGED,this.handleHlsFragChanged),r.on(a().Events.FRAG_LOADING,this.handleHlsFragLoading),r.on(a().Events.FRAG_LOADED,this.handleHlsFragLoaded),r.on(a().Events.MANIFEST_PARSED,(()=>{this.setState({isManifestParsed:!0})})),r.on(a().Events.LEVEL_SWITCHED,this.handleHlsLevelSwitched),r.on(a().Events.ERROR,this.handleHlsError),this.hls=r})),_(this,"destroyHls",(()=>{const{hls:e}=this;e&&e.destroy()})),_(this,"addSegment",(e=>{const{segments:t}=this.playbackPerformance,n=t&&t[t.length-1];if(this.hls&&t.length&&n&&n.uri!==e.url){this.updateWatchDurationForCurrentSegment();const n=this.videoPlayerRef&&this.videoPlayerRef.video,r=this.hls&&this.hls.levels||{},i="number"==typeof e.level?r[e.level]:{},a=this.fragStartupTime[e.url];let o=-1;a&&a.startLoadTime&&a.endLoadTime&&(o=a.endLoadTime-a.startLoadTime);const s={indicatedKbps:i.bitrate/h.bR,duration:e.duration,level:e.level,lastStartPlayTime:this.getCurrentVideoTime(),numServerAddressChange:-1,observedKbps:this.hls&&this.hls.bandwidthEstimate/h.bR||-1,playbackStartDate:Date.now(),serverAddress:"",sn:e.sn,sourceWidth:i.width,sourceHeight:i.height,startupTimeMs:o,switchBitrateKbps:this.lastLevelSwitchKbps||-1,uri:e.url,viewportWidth:n&&n.clientWidth||-1,viewportHeight:n&&n.clientHeight||-1,watchedDurationMs:0};t.push(s)}})),_(this,"initializeSegments",(e=>{const{contextLogData:t={}}=this.props,{is_closeup_video:n=!1}=t,{segments:r}=this.playbackPerformance;if(!r.length)if(this.hls&&this.videoPlayerRef&&this.videoPlayerRef.video&&e){if(!r.length&&"number"==typeof e.level){const t=this.videoPlayerRef&&this.videoPlayerRef.video,n=this.hls.levels,i="number"==typeof e.level?n[e.level]:{},a=this.fragStartupTime[e.url];let o=-1;a&&a.startLoadTime&&a.endLoadTime&&(o=a.endLoadTime-a.startLoadTime),this.lastLevelSwitchKbps=this.hls.bandwidthEstimate/h.bR;const s={indicatedKbps:i.bitrate/h.bR,duration:e.duration,level:e.level,lastStartPlayTime:null,numServerAddressChange:-1,observedKbps:this.hls.bandwidthEstimate/h.bR||-1,playbackStartDate:null,serverAddress:"",sn:e.sn,sourceWidth:i.width,sourceHeight:i.height,startupTimeMs:o,switchBitrateKbps:this.lastLevelSwitchKbps||-1,uri:e.url,viewportWidth:t.clientWidth,viewportHeight:t.clientHeight,watchedDurationMs:0};r.push(s)}}else(0,p.tE)("initializeSegmentsFailed",!0,n)})),_(this,"getCurrentVideoTime",(()=>this.videoPlayerRef&&this.videoPlayerRef.video?this.videoPlayerRef.video.currentTime*h.gJ:null)),_(this,"handleCanPlayVideo",(e=>{const{contextLogData:t={},onReady:n,playing:r}=this.props,{is_closeup_video:i=!1}=t,{canPlayVideo:a}=this.state;(0,p.tE)("handleCanPlayVideo",!0,i,{firstCanPlayEvent:!a,playing:r}),this.playbackPerformance.hasFatalError=!1,a||(this.playbackPerformance.canPlayTime=new Date),this.setState({canPlayVideo:!0}),n&&n(e)})),_(this,"handleEnded",(e=>{const{loop:t,onEnded:n}=this.props,{segments:r}=this.playbackPerformance,i=r&&r[r.length-1];t&&this.videoPlayerRef&&this.videoPlayerRef.video?(this.updateWatchDurationForCurrentSegment(),i&&(i.lastStartPlayTime=0),this.fragStartupTime={}):t||this.logPlaybackPerformance(h.$f,{initiator:"videoEnded",loop:t}),this.setState({playbackState:h.Cy.ENDED}),n&&n(e)})),_(this,"handleHlsError",((e,t)=>{var n;const{contextLogData:r={}}=this.props,{is_closeup_video:i=!1}=r;if(this.playbackPerformance.detailedErrors+=`${this.playbackPerformance.detailedErrors.length>0?", ":""}${t.details}`,t.fatal){var o,s,l,c;this.playbackPerformance.hasFatalError=!0,this.playbackPerformance.errorName=t.type,this.playbackPerformance.errorReason=t.details,this.playbackPerformance.errorCode=t.response&&t.response.code?t.response.code:0;const e={errorName:t.type,errorReason:t.details,errorRetryCount:this.errorRetryCount,errorMessage:(null===(o=t.err)||void 0===o||null===(s=o.message)||void 0===s?void 0:s.slice(0,50))||"unknown",errorResponse:(null===(l=t.response)||void 0===l||null===(c=l.text)||void 0===c?void 0:c.slice(0,50))||"unknown",playbackState:this.state.playbackState};if((0,p.tE)("fatalError",!0,i,e),this.errorRetryCount>0)switch(this.errorRetryCount-=1,t.type){case a().ErrorTypes.NETWORK_ERROR:if(t.details===a().ErrorDetails.MANIFEST_LOAD_ERROR||t.details===a().ErrorDetails.MANIFEST_LOAD_TIMEOUT||t.details===a().ErrorDetails.MANIFEST_LOAD_PARSING_ERROR){var d;const{src:e,quicExpGroup:t}=this.props,n=y(e,t);null===(d=this.hls)||void 0===d||d.loadSource(n)}else{var u;null===(u=this.hls)||void 0===u||u.startLoad()}break;case a().ErrorTypes.MEDIA_ERROR:null===(n=this.hls)||void 0===n||n.recoverMediaError()}}this.updateWatchDurationForCurrentSegment(),this.setState({playbackState:h.Cy.FAILED})})),_(this,"handleHlsFragBuffered",((e,t)=>{this.firstFragBuffered||(this.initializeSegments(t.frag),this.firstFragBuffered=!0)})),_(this,"handleHlsFragChanged",((e,t)=>{this.addSegment(t.frag)})),_(this,"handleHlsFragLoading",((e,t)=>{var n;const r=null===(n=t.frag)||void 0===n?void 0:n.url;r&&!this.fragStartupTime[r]&&(this.fragStartupTime[r]={startLoadTime:new Date})})),_(this,"handleHlsFragLoaded",((e,t)=>{var n;t.frag&&t.frag.loaded&&(this.playbackPerformance.downloadedKiloBytes+=t.frag.loaded/h.Fm);const r=null===(n=t.frag)||void 0===n?void 0:n.url;r&&this.fragStartupTime[r]&&this.fragStartupTime[r].startLoadTime&&(this.fragStartupTime[r].endLoadTime=new Date)})),_(this,"handleHlsLevelSwitched",(()=>{this.hls&&this.hls.bandwidthEstimate&&(this.lastLevelSwitchKbps=this.hls.bandwidthEstimate/h.bR)})),_(this,"handleLoadedMetadata",(()=>{this.setState({playbackState:h.Cy.LOADED_METADATA})})),_(this,"handleLoadStart",(()=>{this.playbackPerformance.loadStartTime=new Date,this.setState({playbackState:h.Cy.LOAD_START})})),_(this,"handleLoadedData",(()=>{this.setState({playbackState:h.Cy.LOADED_DATA})})),_(this,"handlePlaying",(()=>{this.playbackPerformance.hasFatalError=!1,this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.updateStallDuration(),this.updatePauseDuration(),this.setState({playbackState:h.Cy.PLAYING}),this.props.clearSeekTime()})),_(this,"handleUserPause",(e=>{const{onControlsPause:t}=this.props;this.lastPauseTime=new Date,t&&t(e)})),_(this,"handleVideoPause",(()=>{this.state.playbackState!==h.Cy.STALLING&&this.state.playbackState!==h.Cy.SEEKING&&(this.updateWatchDurationForCurrentSegment(),this.lastPauseTime||this.updateStallDuration()),this.setState({playbackState:h.Cy.PAUSED})})),_(this,"handleSeeking",(()=>{this.playbackPerformance.numberOfSeeks+=1;const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&(t.lastStartPlayTime=null),this.state.playbackState!==h.Cy.ENDED&&this.setState({playbackState:h.Cy.SEEKING})})),_(this,"handleStalled",(()=>{null===this.lastStallTime&&this.state.playbackState!==h.Cy.ENDED&&(this.lastStallTime=new Date,this.playbackPerformance.numberOfStalls+=1),this.setState({playbackState:h.Cy.STALLING})})),_(this,"handleTimeUpdate",(e=>{const{onTimeChange:t}=this.props;t&&t(e),this.state.playbackState===h.Cy.PLAYING&&(this.updateWatchDurationForCurrentSegment(),this.setLastSegmentStartPlayTime())})),_(this,"resetPlaybackMetrics",(()=>{this.hasPlaybackStarted=!1,this.hasVideoSessionStarted=!1,this.hasVideoSessionEnded=!0,this.lastLevelSwitchKbps=null,this.lastStallTime=null,this.lastPauseTime=null,this.videoSessionId="",this.videoVisibleTime=null,this.logSessionStartOnNextPlay=!1;const e={...this.playbackPerformance.segments[this.playbackPerformance.segments.length-1],lastStartPlayTime:null,playbackStartDate:null,switchBitrateKbps:-1,watchedDurationMs:0};this.playbackPerformance.detailedErrors="",this.playbackPerformance.downloadedKiloBytes=0,this.playbackPerformance.errorCode=0,this.playbackPerformance.errorName="",this.playbackPerformance.errorReason="",this.playbackPerformance.hasFatalError=!1,this.playbackPerformance.numberOfStalls=0,this.playbackPerformance.numberOfSeeks=0,this.playbackPerformance.playbackStartTimestamp=null,this.playbackPerformance.totalStallDurationMs=0,this.playbackPerformance.segments=[e]})),_(this,"setLastSegmentStartPlayTime",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.lastStartPlayTime&&(t.lastStartPlayTime=this.getCurrentVideoTime())})),_(this,"setLastSegmentPlaybackStartDate",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.playbackStartDate&&(t.playbackStartDate=Date.now())})),_(this,"setPlaybackStartTime",(()=>{this.hasPlaybackStarted||(this.playbackPerformance.playbackStartTimestamp=Date.now(),this.hasPlaybackStarted=!0)})),_(this,"setVideoPlayerRef",(e=>{const{setVideoRef:t}=this.props;if(e&&(t&&t(e),this.videoPlayerRef=e,this.videoPlayerRef.video)){const e=this.videoPlayerRef.video;e.addEventListener("loadedmetadata",this.handleLoadedMetadata),e.addEventListener("loadeddata",this.handleLoadedData),e.addEventListener("pause",this.handleVideoPause),e.readyState>=3&&(this.setState({canPlayVideo:!0}),this.playbackPerformance.canPlayTime=new Date)}})),_(this,"updateStallDuration",(()=>{null!==this.lastStallTime&&(this.playbackPerformance.totalStallDurationMs+=new Date-this.lastStallTime,this.lastStallTime=null)})),_(this,"updatePauseDuration",(()=>{if(null!==this.lastPauseTime){const e=this.lastPauseTime;this.playbackPerformance.totalPauseDurationMs+=new Date-e,this.lastPauseTime=null}})),_(this,"updateWatchDurationForCurrentSegment",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1],n=t?t.lastStartPlayTime:null,r=this.getCurrentVideoTime();if(t&&null!==n&&"number"==typeof r&&"number"==typeof n){const e=r-n;e>0&&(t.watchedDurationMs+=e,t.lastStartPlayTime=null)}})),_(this,"logPlaybackPerformance",((e,t)=>{const{contextLogData:n={},userId:r,isAutoPlay:i,logContextEvent:a}=this.props,{is_closeup_video:o=!1}=n,{canPlayTime:s,detailedErrors:l,downloadedKiloBytes:c,errorCode:d,errorName:u,errorReason:m,hasFatalError:f,playbackStartTimestamp:_,totalPauseDurationMs:g,totalStallDurationMs:y,segments:v,srcString:b,loadStartTime:w,numberOfStalls:S,numberOfSeeks:E}=this.playbackPerformance,P=this.videoPlayerRef&&this.videoPlayerRef.video,T=e===h.DR,R=T&&!this.hasVideoSessionStarted,x=!T&&!this.hasVideoSessionEnded&&this.hasVideoSessionStarted;if(this.hls&&P&&(R||x)){var I;let R=-1;s&&w&&(R=s>w?s-w:0);let x=-1;s&&this.videoVisibleTime&&(x=s>this.videoVisibleTime?s-this.videoVisibleTime:0),T&&(this.videoSessionId=(0,h.Y7)(r),this.playerId=this.playerId||(0,h.EB)());const A={autoplaying:i,averageVideoKbps:-1,detailedErrors:l,downloadedKiloBytes:c,isCellular:!1,errorCode:d,errorName:u,errorReason:m,fatalError:f,nativeVideoDurationMs:P.duration*h.gJ||-1,numberOfStalls:S,numberOfSeeks:E,overallPausedDurationMs:g,overallBufferDurationMs:y,overallWatchedDurationMs:-1,rebufferRate:-1,playbackSessionId:this.videoSessionId,playbackStartTimestamp:_||-1,segments:[],sessionMark:e,screenPixelScale:null!==(I=window)&&void 0!==I&&I.devicePixelRatio?window.devicePixelRatio:-1,startupPlayerWidth:P.clientWidth,startupPlayerHeight:P.clientHeight,startupTimeMs:R,startupLatencyMs:x,startupVariantKbps:-1,startupVariantWatchedDurationMs:-1,startupVariantWidth:P.videoWidth,startupVariantHeight:P.videoHeight,videoUrl:b};if(!T&&v.length){const e=this.hls.levels,t=v[0];this.updateWatchDurationForCurrentSegment(),this.updateStallDuration();const n=v.reduce(((t,n)=>{if(n&&"number"==typeof n.level&&e&&e.length>0){return t+(e[n.level]||{}).bitrate*(n.watchedDurationMs||0)/h.gJ}return t}),0),r=v.reduce(((e,t)=>e+(t.watchedDurationMs||0)),0);let i=null,a=0,o=0;do{a+=v[o].watchedDurationMs,i=i||v[o].level,o+=1}while(o<v.length&&v[o].level===i);A.startupVariantKbps=t.indicatedKbps,A.startupVariantWatchedDurationMs=a,A.startupVariantWidth=t.sourceWidth,A.startupVariantHeight=t.sourceHeight,A.startupPlayerWidth=t.viewportWidth,A.startupPlayerHeight=t.viewportHeight,A.overallWatchedDurationMs=r,r>0?(A.averageVideoKbps=n/(r/h.gJ),A.rebufferRate=this.playbackPerformance.totalStallDurationMs/r):0===r&&(A.averageVideoKbps=-1,A.rebufferRate=-1,A.errorName="invalid_watch_duration"),A.segments=v}else A.errorName="invalid_watch_duration";(0,p.ZP)(A,!0,o,{playbackState:this.state.playbackState,...t});const{clientTrackingParams:C,component:k,durationNs:O,element:D,objectId:N,pairId:L,viewData:M,view:j,viewParameter:F,...U}=n;a({aux_data:{...U,is_closeup_video:o,playback_session_id:this.videoSessionId},clientTrackingParams:C,component:k,duration_ns:O,element:D,event_data:{videoPerformanceData:A},event_type:3606,object_id_str:N,pair_id:L,view_data:M,view_parameter:F,view_type:j}),T?(this.hasVideoSessionStarted=!0,this.hasVideoSessionEnded=!1):this.resetPlaybackMetrics(),(0,p.tE)(T?"sessionStart":"sessionEnd",!0,o,{playbackState:this.state.playbackState,...t})}}))}componentDidMount(){const{contextLogData:e={},playing:t}=this.props,{is_closeup_video:n=!1}=e;this.playbackPerformance.videoCreatedTime=new Date,this.initializeHls(),(0,p.tE)("videoMounted",!0,n),t&&(this.videoVisibleTime=new Date,this.logPlaybackPerformance(h.DR,{initiator:"mount"}))}componentDidUpdate(e){const{loop:t,playing:n,src:r,visible:i,appInFocus:a,seekTime:o}=this.props;var s,l;o&&o!==e.seekTime&&this.setState({videoStartTime:o}),(typeof(s=e.src)!=typeof(l=r)||(Array.isArray(l)?s.length!==l.length||l.some(((e,t)=>!Array.isArray(s)||e.type!==s[t].type||e.src!==s[t].src)):l!==s))&&this.initializeHls(),e.appInFocus&&!a&&(this.logPlaybackPerformance(h.$f,{initiator:"update",loop:t}),this.logSessionStartOnNextPlay=!0),e.visible&&!1===i&&(this.logSessionStartOnNextPlay=!1,this.updatePauseDuration(),this.logPlaybackPerformance(h.$f,{initiator:"update",loop:t})),!1===e.visible&&!0===i&&(this.videoVisibleTime=this.videoVisibleTime||new Date,n?(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(h.DR,{initiator:"update"})):this.logSessionStartOnNextPlay=!0),n&&a&&this.logSessionStartOnNextPlay&&(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(h.DR,{initiator:"update"}),this.logSessionStartOnNextPlay=!1)}componentWillUnmount(){const{loop:e}=this.props;this.updatePauseDuration(),this.logPlaybackPerformance(h.$f,{initiator:"unmount",loop:e}),this.destroyHls()}render(){const{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:r,accessibilityPlayLabel:i,accessibilityProgressBarLabel:a,accessibilityUnmuteLabel:o,aspectRatio:s,backgroundColor:l,captions:c,controls:d,loop:p,loopOverride:h,onDurationChange:m,onFullscreenChange:_,onLoadedChange:g,onControlsPlay:v,onPlayheadDown:b,onPlayheadUp:w,onSeek:S,onVolumeChange:E,playbackRate:P,playing:T,playsInline:R,poster:x,preload:I,quicExpGroup:A,src:C,volume:k}=this.props,{canPlayVideo:O,isManifestParsed:D,videoStartTime:N}=this.state,L=y(C,A);return(0,f.jsx)(u.nk,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:r,accessibilityPlayLabel:i,accessibilityProgressBarLabel:a,accessibilityUnmuteLabel:o,aspectRatio:s,backgroundColor:l,captions:c,controls:d,loop:void 0===h?p:h,onDurationChange:m,onEnded:this.handleEnded,onFullscreenChange:_,onLoadStart:this.handleLoadStart,onLoadedChange:g,onControlsPause:this.handleUserPause,onControlsPlay:v,onPlaying:this.handlePlaying,onPlayheadDown:b,onPlayheadUp:w,onReady:this.handleCanPlayVideo,onSeek:S,onSeeking:this.handleSeeking,onStalled:this.handleStalled,onTimeChange:this.handleTimeUpdate,onVolumeChange:E,onWaiting:this.handleStalled,playbackRate:P,onPlay:()=>{},onPlayError:()=>{},playing:D&&O&&T,playsInline:R,poster:x,preload:I,ref:this.setVideoPlayerRef,src:L,startTime:N,volume:k})}}const b=(0,r.memo)((function(e){const{country:t,isAuthenticated:n,isBot:r,isSocialBot:i,unauthId:a,userAgent:u}=(0,d.B)(),h=(0,o.Z)(),_=(0,s.Z)(),{browserName:g,browserVersion:y,isMobile:b}=u,{contextLogData:w={}}=e,{is_closeup_video:S=!1,view:E,viewParameter:P}=w,{checkExperiment:T}=(0,c.F)(),{seekTime:R}=(0,m.Hx)(),{clearSeekTime:x}=(0,m.RC)();let I=null;n&&(I=T("web_video_quic").group.length?T("web_video_quic").group:null);const{appUI:A}=(0,l.I)(),C=T("web_video_fail_to_start_fix").anyEnabled?A.appInFocus:e.appInFocus,k={browserName:g,browserVersion:y,country:t,isAuthenticated:n,isBot:r,is_closeup_video:S,isMobile:b,isSocialBot:i,view:E,viewParameter:P};return(0,p.r$)(k),(0,f.jsx)(v,{...e,userId:_.id||a,appInFocus:C,quicExpGroup:I,logContextEvent:h,seekTime:R,clearSeekTime:x})}))},964082:(e,t,n)=>{function r(e,t){const{organicVideosAutoplaying:n,promotedVideosAutoplaying:r}=t,i={...n,...r};for(const a in i){const{paused:t}=i[a];if(a!==e&&!t)return!1}return!0}n.d(t,{Z:()=>r})},36971:(e,t,n)=>{function r(e,t){const{organicVideosAutoplaying:n,promotedVideosAutoplaying:r}=t,i={...n,...r};return i[e]&&i[e].currentTime}n.d(t,{Z:()=>r})},463045:(e,t,n)=>{function r(e,t){const{organicVideosAutoplaying:n,promotedVideosAutoplaying:r}=t,i={...n,...r};return!!i[e]&&!i[e].paused}n.d(t,{Z:()=>r})},969315:(e,t,n)=>{n.d(t,{ZP:()=>u,r$:()=>c,tE:()=>d});var r=n(311560),i=n(172071),a=n(179888);const o=["isCellular","videoUrl","sessionMark"];let s={},l="";const c=e=>{const{browserName:t,browserVersion:n,country:i,isAuthenticated:a,isBot:o,isMobile:c,isSocialBot:d,view:u="unknown",viewParameter:p="unknown"}=e;l=(d?"socialBot":o&&"bot")||"nonbot";const h=(0,r.Z)(i);s={browserName:t,browserVersion:(null==n?void 0:n.split(".")[0])||"0",isAuthenticated:a,isMobile:c,region:h,view:u,viewParameter:p}};function d(e,t,n,r={}){const a=n?"closeup":"nonCloseup",o=t?"hls":"nonHls",c={...r,...s},d=`web.video.${o}.${l}.${a}.${e}`;i.Z.increment(d,1,c)}function u(e,t,n,r={}){const c=n?"closeup":"nonCloseup",d=t?"hls":"nonHls",u=e.sessionMark===a.DR?"sessionStart":"sessionEnd",p={...r,...s};if(Object.entries(e).forEach((([t,n])=>{const r=`web.video.${d}.${l}.${c}.${u}.${t}`,a=parseInt(n,10),s="number"==typeof a?a:-1;var h;if(!o.includes(t))if(t.includes("fatalError")&&!0===n){const{errorCode:t,errorName:n,errorReason:a}=e;i.Z.increment(r,1,{errorCode:t,errorName:n,errorReason:a,...p})}else if(t.includes("Width")||t.includes("Height")){const e=(h=s)<0?"negative":0===h?"zero":h<200?"xs":h<400?"s":h<600?"m":h<800?"l":h<1e3?"xl":h<1200?"xxl":"over1200";i.Z.increment(r,1,{dimensionBucket:e,...p})}else if("numberOfStalls"===t){let e=n;s>1e3?e="over1000":s>10?e="over10":s<0&&(e="negative"),i.Z.increment(r,1,{numberOfStalls:e,...p})}else"screenPixelScale"===t?i.Z.increment(r,1,{screenPixelScale:n||-1,...p}):s>=0?(0===s&&i.Z.increment(`${r}.zero`,1,p),i.Z.timing(r,s,1),i.Z.timing(`${r}_with_tags`,s,1,p)):s<0&&i.Z.increment(`${r}.negative`,1,p)})),e.sessionMark!==a.DR){const{rebufferRate:t,screenPixelScale:n,startupLatencyMs:r,startupVariantWidth:a,startupPlayerWidth:o}=e,s=`web.video.${d}.${l}.${c}.${u}`;if("number"==typeof a&&"number"==typeof o&&"number"==typeof n){const e=1.5*a>n*o;i.Z.increment(`${s}.upscaled.${e?"good":"bad"}`,1,p)}"number"==typeof r&&i.Z.increment(`${s}.startupLatency.${r<500?"good":"bad"}`,1,p),"number"==typeof t&&i.Z.increment(`${s}.rebufferRate.${t<.01?"good":"bad"}`,1,p)}}},179888:(e,t,n)=>{n.d(t,{$f:()=>a,Cy:()=>c,DR:()=>i,EB:()=>p,Fm:()=>l,Y7:()=>u,bR:()=>s,gJ:()=>o,lG:()=>d});var r=n(172045);const i=1,a=2,o=1e3,s=1e3,l=1e3,c=Object.freeze({DEFAULT:0,LOAD_START:1,LOADED_METADATA:2,LOADED_DATA:3,PLAYING:4,PAUSED:5,SEEKING:6,STALLING:7,FAILED:8,ENDED:9}),d=Object.freeze({MEDIA_ERR_ABORTED:1,MEDIA_ERR_NETWORK:2,MEDIA_ERR_DECODE:3,MEDIA_ERR_SRC_NOT_SUPPORTED:4});function u(e){return e+"-"+(0,r.Z)()}function p(){return(0,r.Z)()}},121630:(e,t,n)=>{n.d(t,{Z:()=>a,e:()=>i});var r=n(81226);const i=e=>{if("undefined"==typeof window)return"";let t=0;const n=document.querySelector('[data-test-id="header"]');if(null!==n){const{height:e}=n.getBoundingClientRect();t+=e}switch(e){case"AuthHomefeed":const e=document.querySelector('[data-root-margin="more-ideas-tabs"]');if(null!==e){const{height:n}=e.getBoundingClientRect();t+=n}break;case"SearchItem":const n=document.querySelector('[data-root-margin="search-improvements-bar"]');if(null!==n){const{height:e}=n.getBoundingClientRect();t+=e}const r=document.querySelector('[data-test-id="search-tab-bar"],[data-root-margin="search-one-bar"]');if(null!==r){const{height:e}=r.getBoundingClientRect();t+=e}}return-1*t+"px 0px 0px 0px"},a=e=>{var t,n,i,a,o;return(0,r.Z)((null===(t=e.videos)||void 0===t?void 0:t.duration)||(null===(n=e.videos)||void 0===n||null===(i=n.video_list)||void 0===i||null===(a=i.V_HLSV4)||void 0===a?void 0:a.duration)||(null===(o=e.story_pin_data)||void 0===o?void 0:o.total_video_duration)||0)}},43760:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(768559),i=n(102500),a=n(48714);function o({url:e,pinId:t,pin:n,location:o,auxData:s}){var l,c;const d={check_only:!0,client_tracking_params:n?(0,r.Z)({boardUrl:null===(l=n.board)||void 0===l?void 0:l.url,callToCreateSourcePinId:n.call_to_create_source_pin_id,location:o,pinId:n.id,pinnerUserName:null===(c=n.pinner)||void 0===c?void 0:c.username,storyPinDataId:n.story_pin_data_id,trackingParams:n.tracking_params,trackingParamsMap:n.tracking_params_map}):void 0,pin_id:n?n.id:t,url:e,aux_data:JSON.stringify(s)};(0,i.Z)(d).callGet().then((i=>{if(i&&i.resource_response&&!i.resource_response.error){const{resource_response:e}=i,{redirect_status:t,url:n}=e.data;if(!["blocked","suspicious","porn"].includes(t)){if(window.Windows.Foundation&&window.Windows.System&&window.Windows.System.Launcher&&window.Windows.System.Launcher.launchUriAsync){const e=new window.Windows.Foundation.Uri(n);window.Windows.System.Launcher.launchUriAsync(e)}return}}if(n){var l,c;const i=(0,r.Z)({boardUrl:null===(l=n.board)||void 0===l?void 0:l.url,callToCreateSourcePinId:n.call_to_create_source_pin_id,location:o,pinId:n.id,pinnerUserName:null===(c=n.pinner)||void 0===c?void 0:c.username,storyPinDataId:n.story_pin_data_id,trackingParams:n.tracking_params,trackingParamsMap:n.tracking_params_map});(0,a.Gj)({url:e,pinId:t,csrId:null,clientTrackingParams:i,auxData:s})}else(0,a.Gj)({url:e,pinId:t})}))}},139405:(e,t,n)=>{n.d(t,{pb:()=>g,nf:()=>y,lV:()=>v});var r=n(667294),i=n(6637),a=n(618446),o=n.n(a),s=n(682492),l=n.n(s);const c={feature_map:Object.freeze({})},d=(e,t)=>{const n={...l()({},e,t),...t.content?{content:t.content}:Object.freeze({}),...t.reaction_counts?{reaction_counts:t.reaction_counts}:Object.freeze({}),...t.tags?{tags:t.tags}:Object.freeze({}),...t.tagged_users?{tagged_users:t.tagged_users}:Object.freeze({})};return o()(e,n)?e:n},u=(e=c,t)=>{if("FETCH_COMPLETE"===t.type){const{payload:{resource:n}}=t,r=t.payload.response.resource_response.data;if("AggregatedCommentFeedResource"===n||"AggregatedCommentReplyFeedResource"===n||"DidItCommentsResource"===n){const t=(r||[]).reduce(((t,n)=>(t[n.id]=d(e[n.id],n),t)),{});return{...e,...t}}if("UnifiedCommentsResource"===n&&r&&r.length>0){const t=r.filter((e=>"aggregatedcomment"===e.type)).reduce(((t,n)=>(t[n.id]=d(e[n.id],n),t)),{});return{...e,...t}}if("UnifiedCommentsPreviewResource"===n&&r&&r.length>0){const t=r[0].aggregated_comment,n=t?{[t.id]:d(e[t.id],t)}:{},i=r[0].creator_reply,a=i?{[i.id]:d(e[i.id],i)}:{};return{...e,...n,...a}}if("AggregatedCommentFeaturesResource"===n&&r&&Object.keys(r).length>0)return{...e,feature_map:r}}else{if("AGGREGATED_COMMENT_CREATED"===t.type){const{payload:{aggregatedComment:n}}=t;return n.id?{...e,[n.id]:n}:e}if("AGGREGATED_COMMENT_DELETED"===t.type||"AGGREGATED_COMMENT_HIDDEN"===t.type){const{payload:{aggregatedCommentId:n}}=t,r={...e};return delete r[n],r}if("AGGREGATED_COMMENT_HIDDEN_FOR_USER"===t.type){const{payload:{userId:n}}=t;return Object.fromEntries(Object.entries(e).filter((e=>{var t;return(null===(t=e[1].user)||void 0===t?void 0:t.id)!==n})))}if("AGGREGATED_COMMENT_UPDATED"===t.type){const{payload:{data:n}}=t;return{...e,[n.id]:d(e[n.id],n)}}if("AGGREGATED_COMMENT_LIKE_TOGGLED"===t.type){const{payload:{data:n}}=t,r=e[n.id],i=r.reaction_counts[1]||0,a={1:n.reaction_by_me?i+1:i-1},o={...r,reaction_by_me:n.reaction_by_me,reaction_counts:a};return{...e,[n.id]:o}}if("AGGREGATED_COMMENT_HELPFUL_TOGGLED"===t.type){const{payload:{data:n}}=t,r=e[n.id],i=r.helpful_count||0,a=n.marked_helpful_by_me?i+1:i-1,o={...r,marked_helpful_by_me:n.marked_helpful_by_me,helpful_count:a};return{...e,[n.id]:o}}if("AGGREGATED_COMMENT_HIGHLIGHT_TOGGLED"===t.type){const{payload:{data:n}}=t,r={...e[n.aggregated_comment_id],highlighted_by_pin_owner:n.is_highlighted};return{...e,[n.aggregated_comment_id]:r}}if("AGGREGATED_COMMENT_FEATURES_UPDATED"===t.type){const{payload:{data:{featureMap:n}}}=t;return{...e,feature_map:{...e.feature_map,...n}}}if("UPDATE_AGGREGATED_COMMENT_COMMENT_COUNT"===t.type){const{payload:{increment:n,id:r}}=t,i=e[r],a={...i,comment_count:i.comment_count+n};return{...e,[r]:a}}if("DELETE_COMMENT_MENTION"===t.type){const{payload:{aggregatedCommentId:n,tagged_users:r}}=t,i={...e[n],tagged_users:r};return{...e,[n]:i}}}return e};var p=n(425288),h=n(505920),m=n(785893);const{Provider:f,useHook:_}=(0,p.Z)("AggregatedComments");function g({children:e}){const[t,n]=(0,r.useReducer)(u,c),i=e=>{n({type:"FETCH_COMPLETE",payload:e})};(0,h.Z8)("AggregatedCommentFeaturesResource",i),(0,h.my)("AggregatedCommentFeaturesResource",i),(0,h.Z8)("AggregatedCommentFeedResource",i),(0,h.my)("AggregatedCommentFeedResource",i),(0,h.Z8)("AggregatedCommentReplyFeedResource",i),(0,h.my)("AggregatedCommentReplyFeedResource",i),(0,h.Z8)("DidItCommentsResource",i),(0,h.my)("DidItCommentsResource",i),(0,h.Z8)("UnifiedCommentsPreviewResource",i),(0,h.my)("UnifiedCommentsPreviewResource",i),(0,h.Z8)("UnifiedCommentsResource",i),(0,h.my)("UnifiedCommentsResource",i);const a=(0,r.useMemo)((()=>({aggregatedComments:t,dispatch:n})),[t,n]);return(0,m.jsx)(f,{value:a,children:e})}function y(){const{dispatch:e}=_();return(0,r.useMemo)((()=>({aggregatedCommentCreated(t,n){e({type:"AGGREGATED_COMMENT_CREATED",payload:{parentId:t,aggregatedComment:n}})},aggregatedCommentDeleted:(t,n)=>{e({type:"AGGREGATED_COMMENT_DELETED",payload:{parentId:t,aggregatedCommentId:n}})},aggregatedCommentHidden:t=>{e({type:"AGGREGATED_COMMENT_HIDDEN",payload:{aggregatedCommentId:t}})},aggregatedCommentsHiddenForUser:t=>{e({type:"AGGREGATED_COMMENT_HIDDEN_FOR_USER",payload:{userId:t}})},flagAggregatedComment:async({commentId:e,reason:t,detailedReasons:n})=>{const r={commentId:e,reason:t,detailedReasons:n};return i.Z.create("AggregatedCommentFlagResource",r).callCreate()},deleteCommentMention:async t=>{var n;const{resource_response:r}=await i.Z.create("MentionsResource",{aggregatedCommentId:t,field_set_key:"comment"}).callDelete(),a=null!==(n=null==r?void 0:r.data)&&void 0!==n?n:{};e({type:"DELETE_COMMENT_MENTION",payload:{aggregatedCommentId:a.id,tagged_users:a.tagged_users}})},toggleAggregatedCommentHelpful:({aggregatedCommentId:t,isMarkedHelpfulByMe:n})=>{const r=i.Z.create("HelpfulResource",{helpfulModelType:1,objectId:t});n?r.callDelete({showError:!1}):r.callCreate({showError:!1}),e({type:"AGGREGATED_COMMENT_HELPFUL_TOGGLED",payload:{data:{id:t,marked_helpful_by_me:!n}}})},toggleAggregatedCommentHighlight:async({aggregatedCommentId:t,pinId:n,isHighlighted:r})=>{const a=i.Z.create("AggregatedCommentHighlightResource",{aggregatedCommentId:t,pinId:n});r?await a.callDelete({showError:!1}):await a.callCreate({showError:!1}),e({type:"AGGREGATED_COMMENT_HIGHLIGHT_TOGGLED",payload:{data:{aggregated_comment_id:t,pin_id:n,is_highlighted:!r}}})},toggleAggregatedCommentLike:({aggregatedCommentId:t,isLikedByMe:n})=>{const r=i.Z.create("AggregatedCommentLikeResource",{aggregatedCommentId:t});n?r.callDelete({showError:!1}):r.callCreate({showError:!1}),e({type:"AGGREGATED_COMMENT_LIKE_TOGGLED",payload:{data:{id:t,reaction_by_me:n?0:1}}})},updateAggregatedComment:async({commentId:t,force:n,orbacSubjectId:r,tags:a,text:o})=>{var s;const{resource_response:l}=await i.Z.create("AggregatedCommentResource",{commentId:t,force:n,tags:a,text:o,...r?{orbacSubjectId:r}:{}}).callUpdate({showError:!1}),{tagged_users:c}=null!==(s=null==l?void 0:l.data)&&void 0!==s?s:{},d=c.map((e=>({...e})));e({type:"AGGREGATED_COMMENT_UPDATED",payload:{data:{id:t,tagged_users:d,tags:JSON.parse(a),text:o}}})},updateAggregatedCommentFeatures:async({userId:t,featureMap:n})=>{var r;const{resource_response:a}=await i.Z.create("AggregatedCommentFeaturesResource",{userId:t,featureMap:n}).callUpdate({showError:!1}),o=null!==(r=null==a?void 0:a.data)&&void 0!==r?r:Object.freeze({});e({type:"AGGREGATED_COMMENT_FEATURES_UPDATED",payload:{data:{featureMap:o}}})},updateCommentCount:(t,n)=>{e({type:"UPDATE_AGGREGATED_COMMENT_COMMENT_COUNT",payload:{increment:n,id:t}})}})),[e])}function v(){const{aggregatedComments:e}=_();return e}},965900:(e,t,n)=>{n.d(t,{g:()=>h,I:()=>p});var r=n(667294),i=n(567450),a=n(150361),o=n.n(a);const s={appInFocus:!0,footerPlusButtonVisible:!0,isAutoplay:!1,showTypeaheadOverlay:!1,videosAutoplaying:{currentlyPlayingOrganicVideoId:null,organicVideosAutoplaying:{},promotedVideosAutoplaying:{}},viewportSize:"lg"},l=(e=s,t)=>{if("TOGGLE_TYPEAHEAD_OVERLAY"===t.type)return{...e,showTypeaheadOverlay:t.payload};if("SET_CURRENT_VIDEO"===t.type){const{payload:n}=t,{pinId:r,isPromoted:i,currentTime:a,inVideoGridAutoplayExp:s}=n,{videosAutoplaying:l}=e,{currentlyPlayingOrganicVideoId:c,promotedVideosAutoplaying:d,organicVideosAutoplaying:u}=l,p=o()(d),h=o()(u);return!i&&c&&s?e:(i?p[r]={pinId:r,currentTime:a,paused:!1}:h[r]={pinId:r,currentTime:a,paused:!1},{...e,videosAutoplaying:{currentlyPlayingOrganicVideoId:i?c:r,promotedVideosAutoplaying:p,organicVideosAutoplaying:h}})}if("SET_IS_AUTOPLAY"===t.type)return{...e,isAutoplay:t.payload};if("PAUSE_CURRENT_VIDEO"===t.type){const{payload:n}=t,{pinId:r,isPromoted:i,currentTime:a}=n,{videosAutoplaying:s}=e,{promotedVideosAutoplaying:l,organicVideosAutoplaying:c}=s,d=o()(l),u=o()(c);return i?d[r]={...d[r],paused:!0,currentTime:a}:u[r]={...u[r],paused:!0,currentTime:a},{...e,videosAutoplaying:{currentlyPlayingOrganicVideoId:null,promotedVideosAutoplaying:d,organicVideosAutoplaying:u}}}return"SET_APP_FOCUS_STATE"===t.type?{...e,appInFocus:t.payload}:"SET_VIEWPORT_SIZE"===t.type?{...e,viewportSize:t.payload}:"SET_FOOTER_VISIBILITY_STATE"===t.type?{...e,footerPlusButtonVisible:t.payload}:e};var c=n(425288),d=n(785893);const{Provider:u,useHook:p}=(0,c.Z)("AppUI");function h({children:e}){const[t,n]=(0,r.useReducer)(l,s),a=(0,r.useCallback)((e=>n({type:"PAUSE_CURRENT_VIDEO",payload:e})),[]),o=(0,r.useCallback)((e=>n({type:"SET_APP_FOCUS_STATE",payload:e})),[]),c=(0,r.useCallback)((e=>n({type:"SET_CURRENT_VIDEO",payload:e})),[]),p=(0,r.useCallback)((e=>n({type:"SET_FOOTER_VISIBILITY_STATE",payload:e})),[]),h=(0,r.useCallback)((e=>n({type:"SET_IS_AUTOPLAY",payload:e})),[]),m=(0,r.useCallback)((e=>n({type:"SET_VIEWPORT_SIZE",payload:e})),[]),f=(0,r.useCallback)((e=>n({type:"TOGGLE_TYPEAHEAD_OVERLAY",payload:e})),[]),_=(0,r.useMemo)((()=>({pauseAutoplay:a,setCurrentVideo:c,setFooterPlusButtonVisible:p,setIsAutoplay:h,setViewportSize:m,toggleTypeaheadOverlay:f,setAppFocusState:o,appUI:t})),[a,c,p,h,m,f,o,t]);return(0,r.useEffect)((()=>{i.Z.onSessionResume((()=>{o(!0)})).onSessionPause((()=>{o(!1)}))}),[o]),(0,d.jsx)(u,{value:_,children:e})}},350445:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(898781),i=n(883119),a=n(785893);const o={__path:"M12 18.5A6.508 6.508 0 0 1 5.5 12c0-1.706.689-3.307 1.835-4.5H6.5a1 1 0 1 1 0-2h4.185v4.474a1 1 0 0 1-2 0V8.972A4.505 4.505 0 0 0 7.5 12c0 2.481 2.019 4.5 4.5 4.5s4.5-2.019 4.5-4.5a4.49 4.49 0 0 0-3.112-4.283 1 1 0 1 1 .615-1.902A6.482 6.482 0 0 1 18.5 12c0 3.584-2.916 6.5-6.5 6.5M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0"},s={__path:"M17.496 14.572a1 1 0 0 1-1 1h-.001a1.001 1.001 0 0 1-.999-1.001l.002-4.652-7.29 7.288a.995.995 0 0 1-.707.293.999.999 0 0 1-.707-1.707l7.293-7.29L9.428 8.5a1 1 0 0 1 .001-2h.001l8.071.005-.005 8.067zM12 0C5.373 0 0 5.373 0 12c0 6.628 5.373 12 12 12 6.628 0 12-5.372 12-12 0-6.627-5.372-12-12-12z"},l={overlay:{__style:{backgroundColor:"#000"}}};function c({backgroundImage:e,naturalHeight:t,naturalWidth:n,onRestartVideo:c,pinTitle:d,pin:u}){const p=(0,r.ZP)(),{id:h}=u;return(0,a.jsxs)(i.Ee,{alt:d||p.bt("Pin image", "pin image", "image of a pin", undefined, true),naturalHeight:t,naturalWidth:n,src:e,children:[(0,a.jsx)(i.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,opacity:.8,dangerouslySetInlineStyle:l.overlay}),(0,a.jsxs)(i.xu,{justifyContent:"center",direction:"column",display:"flex",position:"absolute",height:"100%",width:"100%","data-test-id":`video-end-card-${h}`,children:[(0,a.jsx)(i.iP,{rounding:2,children:(0,a.jsxs)(i.xu,{display:"flex",justifyContent:"center",padding:2,children:[(0,a.jsx)(i.JO,{accessibilityLabel:p.bt("Visit site", "Visit site", "Button when pressed goes to pin's website", undefined, true),color:"light",dangerouslySetSvgPath:s,size:25}),(0,a.jsx)(i.xu,{margin:1}),(0,a.jsx)(i.xv,{color:"light",lineClamp:1,weight:"bold",children:p.bt("Visit site", "Visit site", "Button when pressed goes to pin's website", undefined, true)})]})}),(0,a.jsx)(i.xu,{margin:3}),(0,a.jsx)(i.iP,{onTap:c,rounding:2,children:(0,a.jsxs)(i.xu,{display:"flex",justifyContent:"center",padding:2,children:[(0,a.jsx)(i.JO,{accessibilityLabel:p.bt("Watch again", "Watch again", "Button when pressed restarts the video", undefined, true),color:"light",dangerouslySetSvgPath:o,size:25}),(0,a.jsx)(i.xu,{margin:1}),(0,a.jsx)(i.xv,{color:"light",lineClamp:1,weight:"bold",children:p.bt("Watch again", "Watch again", "Button when pressed restarts the video", undefined, true)})]})})]})]})}},333155:(e,t,n)=>{n.d(t,{UP:()=>s,Wv:()=>i,ZF:()=>r,zI:()=>a,zl:()=>o});const r=["AuthHomefeed","CloseupRelatedProducts","FollowingFeedGrid","RelatedPinGrid","RelatedProductsFeed","SearchItem"],i=["ArticleProductsStory","CloseupRelatedProducts","ProductPinsFeed","RelatedProductsFeed","ShoppingPackageItem","RelatedProductsFeed","UserProfilePinGrid","ShoppingGridShippedMetadataWithVisitButton"],a=[...i,"ShoppingGridShippedMetadata","ShoppingSquareGridDomain","ShoppingSquareGridDomainNoMetadata","ProductPinsFeed","ShoppingCatalogsProductsMetadata","ShoppingDynamicHeightGrid"],o=["ShoppingSquareGridDomain","ShoppingGridShippedMetadata","ShoppingSquareGridStorefront","ShoppingSquareGridStorefrontDomain","ShoppingGridShippedMetadataWithVisitButton"],s=["BaseBoardPinGrid"]},313951:(e,t,n)=>{n.d(t,{i5:()=>b,sX:()=>E,aX:()=>w,Z5:()=>v,NG:()=>S,MT:()=>P,iu:()=>T});var r=n(667294),i=n(6637),a=n(350118),o=n(682492),s=n.n(o);const l=(e,t)=>e.data[t]&&e.data[t].messages||[];function c(e,t){const n={};return e.filter((e=>!!e)).reduce(((e,r)=>{const i=t(r);return n[i]?(s()(n[i],r),e):(n[i]=r,e.concat([r]))}),[])}function d(e){return[...e].sort(((e,t)=>new Date(e.created_ms||e.created_at)-new Date(t.created_ms||t.created_at)))}function u(e,t,n){return d(c(l(e,t).concat(n),(e=>e.id)))}const p={conversationsUnseenCount:0,data:{},newsHubCount:0,open:null,objectAttachment:null,showConversationsDropdown:!1,showNewMessageView:!1,ui:{},unread:0};function h(e=p,t){if("CONVERSATION_OPEN"===t.type)return{...e,open:t.payload.id,objectAttachment:null,showNewMessageView:!1,ui:{...e.ui,[t.payload.id]:{contactRequestId:t.payload.contactRequestId||"",isPreview:t.payload.isPreview}}};if("CONVERSATION_CLOSE"===t.type)return{...e,open:null,objectAttachment:null,showNewMessageView:!1,ui:{...e.ui,[t.payload.id]:{contactRequestId:t.payload.contactRequestId||"",isPreview:!1,isDeclined:t.payload.isDeclined}}};if("CONVERSATION_CREATE"===t.type){const{id:n}=t.payload;return{...e,data:{...e.data,[n]:{...e.data[n]||{},...t.payload}}}}if("CONVERSATION_DELETE"===t.type){const n={...e,data:{...e.data}},{id:r}=t.payload;return delete n.data[r],n}if("FETCH_COMPLETE"===t.type){const{options:n,resource:r,response:i}=t.payload,a=i.resource_response.data;if("ConversationMessagesResource"===r){const t=a||[],r=(null==n?void 0:n.conversation_id)||"",i=u(e,r,t),o=i[i.length-1];return{...e,data:{...e.data,[r]:{...e.data[r],id:r,messages:i,unread:0,last_message:o}}}}if("ConversationsResource"===r){const t=a||[],n={...e,data:{...e.data}};return t.forEach((e=>{const{id:t,created_at:r,name:i,board:a,emails:o,unread:s,users:l,last_message:c}=e,d=u(n,t,[c]);n.data[t]={...n.data[t],id:t,created_at:r,name:i,board:a,emails:o||[],unread:s||0,users:l||[],last_message:c,messages:d}})),n}if("ConversationResource"===r){const t=a||{},{id:n}=t,r={...e,data:{...e.data}};return n&&(r.data[n]={...r.data[n],...t}),r}if("NewsHubBadgeResource"===r){if(a){const t=a.conversations_unseen_count||0;return{...e,unread:t}}return e}}else{if("MESSAGE_SEND_PENDING"===t.type){const{id:n,message:r}=t.payload;return e.data[n]?{...e,data:{...e.data,[n]:{...e.data[n],id:n,messages:[...e.data[n].messages,r]}}}:e}if("MESSAGE_SEND_PENDING_SUCCESS"===t.type){const{id:n,tempMessage:r,newMessage:i}=t.payload;if(e.data[n]){if(l(e,n).find((e=>e.id===r.id&&e.created_ms===r.created_ms))){const t=d(c(l(e,n).filter((e=>e.id!==r.id)).concat([i]),(e=>e.id)));return{...e,data:{...e.data,[n]:{...e.data[n],last_message:i,messages:t}}}}}return e}if("MESSAGE_SEND_PENDING_FAILURE"===t.type){const{id:n,tempMessageId:r}=t.payload;if(e.data[n]){const t=l(e,n).filter((e=>e.id!==r));return{...e,data:{...e.data,[n]:{...e.data[n],messages:t}}}}return e}if("OPEN_NEW_MESSAGE"===t.type){const{objectAttachment:n}=t.payload||null;return{...e,showNewMessageView:!0,open:null,objectAttachment:n}}if("CLOSE_DROPDOWN"===t.type)return{...e,showConversationsDropdown:!1,objectAttachment:null,showNewMessageView:!1};if("OPEN_DROPDOWN"===t.type)return{...e,showConversationsDropdown:!0};if("UPDATE_NEWSHUB_COUNT"===t.type)return{...e,newsHubCount:t.payload};if("UPDATE_UNREAD_COUNT"===t.type)return{...e,conversationsUnseenCount:t.payload};if("CLEAR_MESSAGE_BADGE"===t.type){const{id:n}=t.payload;return{...e,data:{...e.data,[n]:{...e.data[n],unread:0}}}}if("CONVERSATION_SAVE_POSITION"===t.type){const{id:n,position:r}=t.payload;return{...e,data:{...e.data,[n]:{...e.data[n],position:r}}}}if("CONVERSATION_RESET_POSITION"===t.type){const{id:n}=t.payload;return{...e,data:{...e.data,[n]:{...e.data[n],position:null}}}}}return e}var m=n(425288),f=n(505920),_=n(785893);const g=(()=>{let e=0;return()=>e++})(),{Provider:y,useHook:v}=(0,m.Z)("Conversations");function b({children:e}){const[t,n]=(0,r.useReducer)(h,p),a=(0,r.useCallback)((e=>n({type:"FETCH_COMPLETE",payload:e})),[]);(0,f.Z8)("ConversationMessagesResource",a),(0,f.my)("ConversationMessagesResource",a),(0,f.Z8)("ConversationsResource",a),(0,f.Z8)("ConversationResource",a),(0,f.Z8)("NewsHubBadgeResource",a);const o=(0,r.useCallback)(((e,t=!1,r="")=>n({type:"CONVERSATION_OPEN",payload:{id:e,isPreview:t,contactRequestId:r}})),[]),s=(0,r.useCallback)(((e,t="",r=!1)=>n({type:"CONVERSATION_CLOSE",payload:{id:e,contactRequestId:t,isDeclined:r}})),[]),l=(0,r.useCallback)((e=>n({type:"CONVERSATION_CREATE",payload:e})),[]),c=(0,r.useCallback)((e=>n({type:"CONVERSATION_DELETE",payload:{id:e}})),[]),d=(0,r.useCallback)(((e,t)=>n({type:"CONVERSATION_SAVE_POSITION",payload:{id:e,position:t}})),[]),u=(0,r.useCallback)((e=>n({type:"CONVERSATION_RESET_POSITION",payload:{id:e}})),[]),m=(0,r.useCallback)(((e,t,r)=>{i.Z.create("ConversationsResource",{user_ids:e,emails:t,text:""}).callCreate().then((e=>{const t=e&&e.resource_response.data;n({type:"CONVERSATION_OPEN",payload:{id:t.id}})})).catch((e=>{const t=e.message_detail||e.message||"";r(t)}))}),[]),g=(0,r.useCallback)((()=>{n({type:"CLOSE_DROPDOWN"})}),[]),v=(0,r.useCallback)((()=>{n({type:"OPEN_DROPDOWN"})}),[]),b=(0,r.useCallback)((e=>{n({type:"OPEN_NEW_MESSAGE",payload:{objectAttachment:e}})}),[]),w=(0,r.useCallback)(((e,t)=>n({type:"MESSAGE_SEND_PENDING",payload:{id:e,message:t}})),[]),S=(0,r.useCallback)(((e,t,r)=>n({type:"MESSAGE_SEND_PENDING_SUCCESS",payload:{id:e,tempMessage:t,newMessage:r}})),[]),E=(0,r.useCallback)(((e,t)=>n({type:"MESSAGE_SEND_PENDING_FAILURE",payload:{id:e,tempMessageId:t}})),[]),P=(0,r.useCallback)((e=>n({type:"UPDATE_NEWSHUB_COUNT",payload:e})),[]),T=(0,r.useCallback)((e=>n({type:"UPDATE_UNREAD_COUNT",payload:e})),[]),R=(0,r.useCallback)((e=>n({type:"CLEAR_MESSAGE_BADGE",payload:{id:e}})),[]),x=(0,r.useMemo)((()=>({clearMessageBadge:R,conversationOpen:o,conversationClose:s,conversationCreate:l,conversationDelete:c,conversationGet:m,saveConversationPosition:d,resetConversationPosition:u,dropdownClose:g,dropdownOpen:v,newMessageOpen:b,pendingMessageSend:w,pendingMessageSuccess:S,pendingMessageFailure:E,updateNewsHubCount:P,updateUnreadCount:T,conversations:t})),[R,o,s,l,c,m,d,u,g,v,b,w,S,E,P,T,t]);return(0,_.jsx)(y,{value:x,children:e})}function w(){const{conversationCreate:e}=v();return async t=>{let n;const r=i.Z.create("ConversationsResource",t);try{var a;const t=null===(a=(await r.callCreate()).resource_response)||void 0===a?void 0:a.data;t&&(e(t),n=t)}catch(o){throw new Error(o.message)}return n}}function S(){const{conversations:e,conversationCreate:t,pendingMessageSend:n,pendingMessageSuccess:r,pendingMessageFailure:o}=v(),s=(0,a.AF)();return async(a,l,c,d)=>{const{text:u,pinId:p,boardId:h,userId:m,didItId:f}=l;async function _(){const e=i.Z.create("ConversationMessagesResource",{conversation_id:a,text:u,pin:p,board:h,user:m,user_did_it_data:f,source:c}),t=`${g()}`,l={text:u,sender:d,created_at:(new Date).toString(),created_ms:Date.now(),id:t,pin:p?s[p]:null,type:"tempMessage"};n(a,l);try{var _;const t=null===(_=(await e.callCreate()).resource_response)||void 0===_?void 0:_.data;t&&r(a,l,t)}catch(y){throw o(a,t),new Error(y.message)}}if(e.data[a])await _();else{const e=i.Z.create("ConversationResource",{conversation_id:a});try{var y;const n=null===(y=(await e.callGet()).resource_response)||void 0===y?void 0:y.data;n&&(t(n),await _())}catch(v){throw new Error(v.message)}}}}function E(e){const{conversations:t}=v();return t.data[e]}function P(e){const{conversations:t}=v();return t.ui[e]||{contactRequestId:"",isDeclined:!1,isPreview:!1}}function T(){const{conversations:{data:e}}=v(),t=(n=e,Object.keys(n).map((e=>n[e]))).filter((e=>e.users&&e.last_message));var n,r;return r=t,Array.from(r).sort(((e,t)=>new Date((t.last_message||t).created_at)-new Date((e.last_message||e).created_at)))}},924114:(e,t,n)=>{n.d(t,{H8:()=>h,Ut:()=>p,fr:()=>u});var r=n(667294),i=n(839377),a=n(311541),o=n(425288),s=n(785893);const l=()=>n.e(67891).then(n.bind(n,367891)),{Provider:c,useHook:d}=(0,o.Z)("IdeaPin");function u({children:e}){const[t,n]=(0,a.Z)(l,i.Z),o=(0,r.useMemo)((()=>({dispatch:n,ideaPin:t})),[n,t]);return(0,s.jsx)(c,{value:o,children:e})}function p(){const{dispatch:e}=d();return(0,r.useMemo)((()=>({setIdeaPinActivePage:t=>{e({type:"IDEA_PIN_ACTIVE_PAGE",payload:{activePage:t}})},setIdeaPinDynamicWidth:t=>{e({type:"IDEA_PIN_DYNAMIC_WIDTH",payload:{dynamicWidth:t}})}})),[e])}function h(){const{ideaPin:e}=d();return e}},839377:(e,t,n)=>{n.d(t,{Z:()=>r});const r={activePage:0,dynamicWidth:0}},94089:(e,t,n)=>{n.d(t,{G:()=>p,Kl:()=>h,vo:()=>u});var r=n(667294),i=n(311541),a=n(425288),o=n(505920),s=n(785893);const l=()=>n.e(18870).then(n.bind(n,218870)),{Provider:c,useHook:d}=(0,a.Z)("NativeEngagements");function u({children:e}){const[t,n]=(0,i.Z)(l,[]),a=e=>{n({type:"FETCH_COMPLETE",payload:e})};(0,o.Z8)("NativeInteractionsResource",a),(0,o.my)("NativeInteractionsResource",a);const d=(0,r.useMemo)((()=>({dispatch:n,nativeEngagements:t})),[n,t]);return(0,s.jsx)(c,{value:d,children:e})}function p(){const{dispatch:e}=d();return(0,r.useMemo)((()=>({nativeEngagementsHiddenForUser:t=>{e({type:"NATIVE_ENGAGEMENT_HIDDEN_FOR_USER",payload:{userId:t}})}})),[e])}function h(){const{nativeEngagements:e}=d();return e}},379764:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(183007);const i=new(n(883119).H3)([r.N])},130460:(e,t,n)=>{n.d(t,{bn:()=>s,fJ:()=>c,gC:()=>l});var r=n(702664),i=n(425288),a=n(785893);const{Provider:o,useHook:s}=(0,i.Z)("Boards");function l(){const e=s();return t=>e[t]}function c({children:e}){const t=(0,r.useSelector)((({boards:e})=>e),r.shallowEqual);return(0,a.jsx)(o,{value:t,children:e})}},350118:(e,t,n)=>{n.d(t,{AF:()=>s,H0:()=>l,S6:()=>c,_S:()=>d});var r=n(702664),i=n(425288),a=n(785893);const{Provider:o,useHook:s,useMaybeHook:l}=(0,i.Z)("Pins");function c(){const e=s();return t=>e[t]}function d({children:e}){const t=(0,r.useSelector)((({pins:e})=>e),r.shallowEqual);return(0,a.jsx)(o,{value:t,children:e})}},108234:(e,t,n)=>{n.d(t,{Z:()=>_,s:()=>f});var r=n(667294),i=n(121151),a=n(608575),o=n(898781),s=n(349700),l=n(883119),c=n(785893);const d=()=>{var e;const t=(0,o.ZP)(),{dismissWarning:n}=null!==(e=f())&&void 0!==e?e:{};return(0,c.jsx)(l.xu,{paddingX:3,children:(0,c.jsx)(l.zx,{fullWidth:!0,color:"red",onClick:n,text:t.bt("OK", "Okay", "Dismiss a modal stating that clicking through to a link has been blocked", undefined, true)})})},u=()=>{const e=(0,o.ZP)();return(0,c.jsx)(l.xv,{inline:!0,weight:"bold",children:(0,c.jsx)(l.rU,{target:"blank",href:"https://policy.pinterest.com/community-guidelines#section-spam",display:"inlineBlock",underline:"hover",children:e.bt("Learn more", "Learn more", "Link text leading to policy website", undefined, true)})})},p=({message:e,sanitized_url:t})=>{var n;const r=(0,o.ZP)(),{dismissWarning:p}=null!==(n=f())&&void 0!==n?n:{};return(0,c.jsx)(i.ZP,{accessibilityModalLabel:r.bt("We have blocked this link", "We have blocked this link", "Modal label when clicking a spammy link", undefined, true),onDismiss:p,heading:r.bt("Heads up!", "Heads up!", "Modal heading when clicking through to a link has been blocked", undefined, true),footer:(0,c.jsx)(d,{}),children:(0,c.jsxs)(l.xu,{padding:6,children:[(0,c.jsx)(l.xv,{children:(0,s.nk)("{{ message }} {{ learnMore }}",{message:e,learnMore:(0,c.jsx)(u,{},"learnMoreLink")})}),(0,c.jsxs)(l.xu,{alignItems:"center",display:"flex",marginTop:4,children:[(0,c.jsx)(l.xu,{marginEnd:3,children:(0,c.jsx)(l.JO,{accessibilityLabel:r.bt("Blocked link address", "Blocked link address", "Icon label preceding a block url", undefined, true),color:"error",icon:"report",inline:!0,size:24})}),(0,c.jsx)(l.xv,{inline:!0,lineClamp:1,weight:"bold",children:a.parse(t).hostname})]})]})})};var h=n(425288);const{Provider:m,useMaybeHook:f}=(0,h.Z)("SpammyClickthrough");function _({children:e}){const[t,n]=(0,r.useState)(null),i=(0,r.useCallback)((()=>{n(null)}),[n]),a=(0,r.useCallback)((e=>{n(e)}),[n]),o=(0,r.useMemo)((()=>({dismissWarning:i,showWarning:a})),[i,a]);return(0,c.jsxs)(m,{value:o,children:[t&&(0,c.jsx)(p,{...t}),e]})}},398061:(e,t,n)=>{n.d(t,{Z:()=>s,e:()=>o});var r=n(780280),i=n(883119),a=n(785893);const o=new i.Ry(1);function s({children:e,isImagePinForUnauthOnTablet:t}){const{isAuthenticated:n}=(0,r.B)();return(0,a.jsxs)(i.xu,{alignItems:"center",bottom:!0,dangerouslySetInlineStyle:{__style:{cursor:"pointer",width:t?"40vw":void 0}},zIndex:n?void 0:o,display:"flex",justifyContent:"center",left:!0,position:"absolute",right:!t||void 0,top:!0,children:[(0,a.jsx)(i.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:"#000",borderRadius:"6px 6px 0 0",WebkitTransition:"opacity .04s linear",transition:"opacity .04s linear"}},left:!0,opacity:.4,position:"absolute",right:!0,top:!0}),e]})}},538232:(e,t,n)=>{n.d(t,{R:()=>a,q:()=>i});var r=n(425288);const{Provider:i,useHook:a}=(0,r.Z)("CloseupPageContext")},183007:(e,t,n)=>{n.d(t,{N:()=>b,Z:()=>w});var r=n(667294),i=n(223815),a=n(248041),o=n(898781),s=n(52022),l=n(867820),c=n(883119),d=n(785893);function u({icon:e}){const{hide:t}=(0,a.Z)(),n=(0,o.ZP)(),r=(0,s.Z)();return(0,d.jsx)(i.Z,{children:(0,d.jsx)(c.xu,{"data-test-id":"expandButton",children:(0,d.jsx)(c.hU,{icon:e||"maximize",size:e?"md":"lg",iconColor:"darkGray",bgColor:"white",padding:3,accessibilityLabel:n.bt("Expand image", "Expand Image", "mweb.closeup.image.expand.a11y", undefined, true),onClick:({event:e})=>{e.stopPropagation(),(0,l.My)("mweb_pin_page.pin_image.enlarge_image"),(0,l.NC)("click_expand_image"),r({action:"click",item:"expand-button",within:"pin-image"}),t()}})})})}var p=n(700380),h=n(50286),m=n(792182),f=n(398061),_=n(444445),g=n(773285);const y=.3,v=.75,b=new c.H3([f.e]),w=({children:e,closableDrawer:t})=>{var n;const{hide:i}=(0,a.Z)(),o=(0,r.useRef)(null),s=(0,r.useRef)(null),[l,f]=(0,r.useState)(null),[w,S]=(0,r.useState)(0),[E,P]=(0,r.useState)(!1),T=(null===(n=(0,m.Z)())||void 0===n?void 0:n.height)||0,[R,x]=(0,r.useState)(!1),I=(0,h.ZP)(),{checkExperiment:A}=(0,g.F)(),C=null!=l?l:.75*T,k=()=>{var e;const t=(null===(e=o.current)||void 0===e?void 0:e.offsetTop)||0;return t>0&&T>0?t-T*y+60:0};return(0,r.useEffect)((()=>{const e=()=>{var e;const t=(null===(e=o.current)||void 0===e?void 0:e.offsetTop)||0;window.scrollY+C>t&&i()};e();const t=(0,p.Z)(e,10);return window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)}),[i,C]),(0,d.jsxs)(r.Fragment,{children:[(0,d.jsxs)(c.xu,{position:"fixed",bottom:!0,left:!0,right:!0,color:"default",zIndex:b,height:null===l?"25vh":`calc(100vh - ${l}px)`,dangerouslySetInlineStyle:{__style:{...E?{transitionDuration:"500ms",transitionProperty:"maxHeight, borderRadius"}:{},borderRadius:0===l&&E?0:"32px 32px 0 0",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.3)",overscrollBehavior:"none",touchAction:"none"}},"data-test-id":"related-pins-drawer","data-layout-shift-boundary-id":"Drawer",ref:s,onTouchStart:e=>{const{clientY:t}=e.touches[0];S(t),P(!1)},onTouchMove:e=>{e.preventDefault();const{clientY:t}=e.touches[0],n=null!=l?l:.75*window.innerHeight,r=t-w;if(null!==n&&r){const e=T*y,t=T*v,a=Math.floor(Math.min(t,Math.max(e,n+r)));f(a);const o=k();if(T>0&&o>0){const e=o*(i=a/T,1-(Math.max(y,Math.min(v,i))-y)/.45);window.pageYOffset<e&&window.scrollTo({top:e})}a<.525*T&&x(!0)}var i;S(t)},onTouchEnd:()=>{if(R){P(!0);f(T*y);const e=k();e&&window.scrollTo({top:e,behavior:"smooth"}),x(!1)}},children:["desktop"!==I&&(t?(0,d.jsx)(c.xu,{position:"absolute",top:!0,left:!0,margin:1,marginTop:t?0:4,paddingY:1,children:(0,d.jsx)(u,{icon:"cancel"})}):!A("pcons_remove_expand_button").anyEnabled&&(0,d.jsx)(c.xu,{position:"absolute",top:!0,right:!0,children:(0,d.jsx)(c.xu,{position:"absolute",bottom:!0,right:!0,children:(0,d.jsx)(c.xu,{padding:3,children:(0,d.jsx)(u,{})})})})),(0,d.jsx)(c.xu,{paddingX:_.D6,children:e})]}),(0,d.jsx)(c.xu,{ref:o,height:"100vh"})]})}},350948:(e,t,n)=>{n.d(t,{IS:()=>_,Ys:()=>f,ZP:()=>P,j$:()=>v});var r,i=n(134185),a=n(50286),o=n(349700),s=n(578661),l=n(923297),c=n(350118),d=n(898781),u=n(883119),p=n(167912),h=n(785893);const m=void 0!==r?r:r=n(906587),f=({m:e,h:t,rm:n,rh:r},i)=>e&&(!t||r<=0)?(0,o.nk)(i.nbt(["{{mins}} minute", "{{mins}} minutes"], n, "number showing the minutes to complete a recipe", true),{mins:n.toString()}):t?(0,o.nk)(i.nbt(["{{hrs}} hour", "{{hrs}} hours"], r, "number showing the hours to complete a recipe", true),{hrs:r.toString()}):null,_=({m:e,h:t,rm:n,rh:r,i18n:i})=>e&&(!t||r<=0)?(0,o.nk)(i.bt("{{mins}}m", "{{mins}}m", "number showing minutes to complete a recipe", undefined, true),{mins:n.toString()}):t?(0,o.nk)(i.bt("{{hrs}}h {{mins}}m", "{{hrs}}h {{mins}}m", "number showing hours to complete a recipe", undefined, true),{hrs:t.toString(),mins:e.toString()}):null,g=(e,t)=>{const n=e&&e.length>0&&e.join(", "),r=t&&t.summary;return n&&r?`${n} • ${r}`:n||r},y=e=>e?e.reduce(((e,t)=>{var n,r;return e+(null!==(n=null===(r=t.ingredients)||void 0===r?void 0:r.length)&&void 0!==n?n:0)}),0):0,v=({cookTimesCookM:e,cookTimesCookH:t,cookTimesTotalM:n,cookTimesTotalH:r,hasCookTimesTotal:i,i18n:a})=>{let o;return o=i?(0,l.X)({m:n||0,h:r||0}):(0,l.X)({m:e||0,h:t||0}),f(o,a)};function b({category:e,ingredients:t,textSize:n="300"}){return(0,h.jsxs)(u.xu,{marginBottom:4,children:[e&&(0,h.jsx)(u.xu,{children:(0,h.jsx)(u.xv,{weight:"bold",size:n,children:e})}),(null!=t?t:[]).map((e=>{var t,r;return(0,h.jsx)(u.xu,{"data-test-id":"recipe-ingredient",itemProp:"recipeIngredient",marginTop:1,children:(0,h.jsxs)(u.xv,{size:n,children:[e.amt||null," ",e.name]})},`${null!==(t=e.name)&&void 0!==t?t:""}-${null!==(r=e.name)&&void 0!==r?r:""}`)}))]})}const w=({categorizedIngredients:e,cookTimes:t,image:n,ingredientCount:r,ingredientsDescription:o,name:l,pinLink:c})=>{var p,m,f,_;const g=(0,d.ZP)(),y=(0,a.ZP)();return v({cookTimesCookM:null==t||null===(p=t.cook)||void 0===p?void 0:p.m,cookTimesCookH:null==t||null===(m=t.cook)||void 0===m?void 0:m.h,cookTimesTotalM:null==t||null===(f=t.total)||void 0===f?void 0:f.m,cookTimesTotalH:null==t||null===(_=t.total)||void 0===_?void 0:_.h,hasCookTimesTotal:!(!t||!t.total),i18n:g})||r||o?(0,h.jsxs)(u.xu,{"data-test-id":"pin-recipe-container",display:"flex",direction:"column",marginTop:8,children:[(0,h.jsxs)(u.xu,{direction:"column",display:"flex",marginTop:4,marginBottom:4,marginEnd:6,overflow:"hidden",children:[(0,h.jsx)(u.xu,{marginBottom:4,children:(0,h.jsx)(u.xv,{weight:"bold",align:"desktop"===y?"start":"center",children:g.bt("Ingredients", "Ingredients", "Ingredients category heading for recipes", undefined, true)})}),(0,h.jsxs)(i.Z,{itemScope:!0,itemType:s.G,children:[(0,h.jsx)("meta",{content:l,itemProp:"name"}),n&&(0,h.jsx)("meta",{content:n,itemProp:"image"}),Array.isArray(e)&&e.length>0&&(0,h.jsx)(u.xu,{column:12,"data-test-id":"single-column-ingredients",children:e.map((({category:e,ingredients:t},n)=>(0,h.jsx)(u.xu,{marginBottom:2,children:(0,h.jsx)(b,{category:e,ingredients:t,textSize:"300"})},n)))})]})]}),(0,h.jsx)(u.xu,{marginBottom:4,display:"flex",justifyContent:"phone"===y?"center":void 0,children:c&&(0,h.jsx)(u.zx,{text:g.bt("Make it", "Make it", "closeup.recipe.make_it_button", undefined, true),role:"link",href:c,target:"blank"})})]}):null},S=({graphqlRef:e})=>{const t=(0,p.useFragment)(m,e),{imageSpec_474x:n,link:r,richMetadata:i}=t,a=null==i?void 0:i.recipe,o=null==a?void 0:a.categorizedIngredients,s=y(o),l=(null==a?void 0:a.categorizedIngredients)&&g(a.diets,a.servingsSummary);return(0,h.jsx)(w,{categorizedIngredients:o,cookTimes:null==a?void 0:a.cookTimes,image:null==n?void 0:n.url,ingredientCount:s,ingredientsDescription:l,name:null==a?void 0:a.name,pinLink:r})},E=({pinId:e})=>{var t,n;const r=(0,c.S6)()(e),i=(null==r||null===(t=r.rich_metadata)||void 0===t?void 0:t.recipe)||{},{cook_times:a,name:o,categorized_ingredients:s,diets:l,servings_summary:d}=i,u=y(s),p=s&&g(l,d);return(0,h.jsx)(w,{categorizedIngredients:s,cookTimes:a,image:(null===(n=((null==r?void 0:r.images)||{})["474x"])||void 0===n?void 0:n.url)||"",ingredientCount:u,ingredientsDescription:p,name:o,pinLink:(null==r?void 0:r.link)||""})};function P({graphqlRef:e,pinId:t}){return e?(0,h.jsx)(S,{graphqlRef:e}):(0,h.jsx)(E,{pinId:t})}},725214:(e,t,n)=>{n.d(t,{Z:()=>r});const r=e=>{switch(e.action){case"PUSH":case"REPLACE":return"click";case"POP":return e.location.key?"click":"deeplink";default:return null}}},298024:(e,t,n)=>{n.d(t,{Ph:()=>i,Re:()=>o,si:()=>a});var r=n(50286);const i=e=>e&&e.promoter&&!e.is_downstream_promotion?e.promoter:null,a=()=>"phone"!==(0,r.ZP)()?180:130,o=()=>"phone"!==(0,r.ZP)()?180:80},248041:(e,t,n)=>{n.d(t,{Z:()=>c,t:()=>l});var r=n(667294),i=n(867820),a=n(276775),o=n(785893);const s=(0,r.createContext)({hide:()=>{},isHidden:!0,isScrolledToPins:!1,scrollToPins:()=>{}});function l({children:e,isEligible:t}){const[n,l]=(0,r.useState)(!t),[c,d]=(0,r.useState)(!1),{pathname:u}=(0,a.useLocation)();(0,r.useEffect)((()=>{l(!t)}),[u,t]);const p=(0,r.useCallback)((()=>{(0,i.My)("web_unification.expand_click.hide_drawer"),l(!0)}),[]),h=(0,r.useCallback)((e=>{d(!!e)}),[]),m=(0,r.useMemo)((()=>({isHidden:n,hide:p,isScrolledToPins:c,scrollToPins:h})),[n,p,c,h]);return(0,o.jsx)(s.Provider,{value:m,children:e})}const c=()=>(0,r.useContext)(s)},759177:(e,t,n)=>{n.d(t,{Z:()=>o});var r,i=n(167912);const a=void 0!==r?r:r=n(96795);const o=e=>function(e){var t,n,r,i,a,o,s,l,c,d,u,p,h,m,f,_,g,y,v,b,w,S,E,P,T,R,x;return{"60x60":{height:(null==e||null===(t=e.imageSpec_60x60)||void 0===t?void 0:t.height)||void 0,url:(null==e||null===(n=e.imageSpec_60x60)||void 0===n?void 0:n.url)||void 0,width:(null==e||null===(r=e.imageSpec_60x60)||void 0===r?void 0:r.width)||void 0},"136x136":{height:(null==e||null===(i=e.imageSpec_136x136)||void 0===i?void 0:i.height)||void 0,url:(null==e||null===(a=e.imageSpec_136x136)||void 0===a?void 0:a.url)||void 0,width:(null==e||null===(o=e.imageSpec_136x136)||void 0===o?void 0:o.width)||void 0},"170x":{height:(null==e||null===(s=e.imageSpec_170x)||void 0===s?void 0:s.height)||void 0,url:(null==e||null===(l=e.imageSpec_170x)||void 0===l?void 0:l.url)||void 0,width:(null==e||null===(c=e.imageSpec_170x)||void 0===c?void 0:c.width)||void 0},"236x":{height:(null==e||null===(d=e.imageSpec_236x)||void 0===d?void 0:d.height)||void 0,url:(null==e||null===(u=e.imageSpec_236x)||void 0===u?void 0:u.url)||void 0,width:(null==e||null===(p=e.imageSpec_236x)||void 0===p?void 0:p.width)||void 0},"474x":{height:(null==e||null===(h=e.imageSpec_474x)||void 0===h?void 0:h.height)||void 0,url:(null==e||null===(m=e.imageSpec_474x)||void 0===m?void 0:m.url)||void 0,width:(null==e||null===(f=e.imageSpec_474x)||void 0===f?void 0:f.width)||void 0},"564x":{height:(null==e||null===(_=e.imageSpec_564x)||void 0===_?void 0:_.height)||void 0,url:(null==e||null===(g=e.imageSpec_564x)||void 0===g?void 0:g.url)||void 0,width:(null==e||null===(y=e.imageSpec_564x)||void 0===y?void 0:y.width)||void 0},"736x":{height:(null==e||null===(v=e.imageSpec_736x)||void 0===v?void 0:v.height)||void 0,url:(null==e||null===(b=e.imageSpec_736x)||void 0===b?void 0:b.url)||void 0,width:(null==e||null===(w=e.imageSpec_736x)||void 0===w?void 0:w.width)||void 0},"600x315":{height:(null==e||null===(S=e.imageSpec_600x315)||void 0===S?void 0:S.height)||void 0,url:(null==e||null===(E=e.imageSpec_600x315)||void 0===E?void 0:E.url)||void 0,width:(null==e||null===(P=e.imageSpec_600x315)||void 0===P?void 0:P.width)||void 0},orig:{height:(null==e||null===(T=e.imageSpec_orig)||void 0===T?void 0:T.height)||void 0,url:(null==e||null===(R=e.imageSpec_orig)||void 0===R?void 0:R.url)||void 0,width:(null==e||null===(x=e.imageSpec_orig)||void 0===x?void 0:x.width)||void 0}}}((0,i.useFragment)(a,e))},865607:(e,t,n)=>{n.d(t,{O:()=>c,Z:()=>d});var r=n(667294),i=n(898781),a=n(966113),o=n(883119),s=n(785893);const l={xs:12,sm:16,md:20,lg:24};function c({children:e}){const t=(0,i.ZP)();return(0,s.jsx)(o.u,{link:(0,s.jsx)(o.rU,{href:a.vB,target:"blank",children:(0,s.jsx)(o.xv,{color:"inverse",size:"100",weight:"bold",children:t.bt("Learn more", "Learn more", "verifiedBadge.tooltip.link", undefined, true)})}),text:t.bt("This retailer meets Pinterest's Merchant Guidelines", "This retailer meets Pinterest's Merchant Guidelines", "merchantVerification.badge.tooltip", undefined, true),children:e})}function d({hasVerifiedIdentity:e,iconOnly:t,isVerifiedMerchant:n,showText:a,size:d}){const u=(0,i.ZP)(),p=(0,s.jsxs)(o.kC,{alignItems:"center",justifyContent:"start",children:[(0,s.jsx)(o.JO,{accessibilityLabel:u.bt("Merchant verification badge icon", "Merchant verification badge icon", "merchantVerification.badge.icon", undefined, true),color:"shopping",icon:"workflow-status-ok",inline:!0,size:l[d]}),a&&(0,s.jsx)(o.xu,{marginStart:2,children:(0,s.jsx)(o.xv,{color:"shopping",inline:!0,weight:"bold",children:u.bt("Verified merchant", "Verified merchant", "creator.header.verifiedMerchant", undefined, true)})})]});return(0,s.jsxs)(r.Fragment,{children:[n&&!t&&(0,s.jsx)(c,{children:p}),n&&t&&p,e&&!n&&(0,s.jsx)(o.JO,{accessibilityLabel:u.bt("Domain verification icon", "Domain verification icon", "domainVerification.badge.icon", undefined, true),color:"error",icon:"check-circle",size:l[d]})]})}},998651:(e,t,n)=>{n.d(t,{LM:()=>s,h9:()=>l,r$:()=>o});var r=n(385740),i=n(909499);const a=["search_articles_story","shop_tab_upsell","story_pins_search_upsell","structured_search_bubble","user_style_story_v2","search_for_you_upsell"];function o({query:e,rs:t,scope:n},a){const o=(0,r.BE)(),s=!(null!=o&&o.viewType||null!=o&&o.viewParameter),l=(0,i.wF)(n);if(!s&&l){const{viewType:n,viewParameter:r}=null!=o?o:{};a({event_type:l,view_type:n,view_parameter:r,aux_data:{query:e,rs:t||"Unknown"}})}"hashtag_closeup"===t?a({event_type:101,component:13065,element:10273,view_type:142}):"hashtag_pinrep"===t&&a({event_type:101,component:0,element:10349,view_type:142})}const s=(e=[])=>{let t=!0;return e.reduce(((e,n)=>{var r;return t&&n.story_type&&a.includes(n.story_type)&&0===(null===(r=n.display_options)||void 0===r?void 0:r.num_columns_requested)?e.searchFullWidthStories.push(n):(t=!1,e.filteredResults.push(n)),e}),{searchFullWidthStories:[],filteredResults:[]})};function l(e){const{results:t=[]}=e||{};return!!t.find((e=>!(null==e||!e.is_eligible_for_filters)))}},962832:(e,t,n)=>{n.d(t,{$J:()=>T,AP:()=>L,Dm:()=>R,Fv:()=>E,H$:()=>O,In:()=>N,Ng:()=>P,RH:()=>b,Wj:()=>D,_P:()=>x,go:()=>S});var r=n(126098),i=n(6637),a=n(524309),o=n(30287),s=n(53987),l=n(867820),c=n(957161);const d="home",u="closeup",p="news_hub",h="board",m="profile",f="topic",_="today",g="business",y="search";let v;const b="_push",w=e=>{e.onupdatefound=()=>{(0,l.My)("mweb_service_worker.update_found")}},S=()=>Boolean("undefined"!=typeof navigator&&navigator.serviceWorker&&navigator.serviceWorker.controller),E=()=>new Promise(((e,t)=>{const n=navigator.serviceWorker,{pwaType:r,twaType:i}=v.getState().session,a=new URLSearchParams({source_url:window.location.pathname});r&&i&&(0,o.Rx)(i)&&(a.append("pwa_type",r),a.append("twa_type",i)),Boolean("undefined"!=typeof document&&document.referrer&&!document.referrer.startsWith(window.location.origin))&&a.append("referrer",document.referrer),n&&n.register?((0,l.My)("mweb_service_worker.install_attempt"),n.register(`/sw.js?${a.toString()}`).then((t=>{(0,l.My)("mweb_service_worker.install_success"),w(t),e(t)})).catch((e=>{(0,l.tj)("mweb_service_worker.install_fail",{error:e.message}),t(e)}))):e()})),P=()=>new Promise(((e,t)=>{const n=navigator.serviceWorker;n&&n.getRegistration?((0,l.My)("mweb_service_worker.update_attempt"),n.getRegistration().then((n=>{n?n.update().then((()=>{(0,l.My)("mweb_service_worker.update_success"),w(n),e(n)})).catch((e=>{(0,l.tj)("mweb_service_worker.update_fail",{error:e.message}),t(e)})):E().then(e)}))):e()})),T=()=>{const e=v.getState().session.isAuthenticated;(0,l.My)(`mweb.${e?"auth":"unauth"}.register_service_worker`),E()},R=()=>{const e=navigator.serviceWorker;return e&&e.getRegistration?((0,l.My)("mweb_service_worker.unregister_attempt"),(0,a.Qi)(),e.getRegistration().then((e=>{if(e)return e.unregister().then((()=>((0,l.My)("mweb_service_worker.unregister_success"),navigator.serviceWorker&&window.caches?window.caches.keys().then((e=>{const t=e.find((e=>e.startsWith("workbox-precaching")));return t?window.caches.delete(t):null})).then((()=>(0,l.My)("mweb_service_worker.clear_app_shell"))):Promise.resolve()))).catch((e=>{(0,l.tj)("mweb_service_worker.unregister_fail",{error:e.message})}))}))):Promise.resolve()},x=()=>!(!S()||!("SyncManager"in window)),I=e=>(0,s.C$)(e)?d:(0,s.L6)(e)?u:(0,s.l4)(e)?p:(0,s.am)(e)?h:(0,s.cD)(e)?m:(0,s.En)(e)?y:(0,s.$V)(e)?f:(0,s.Zz)(e)?_:(0,s.Ni)(e)?g:"undefined",A=e=>{switch(I(e)){case d:return{viewType:1,viewParameter:92};case u:return{viewType:3,viewParameter:void 0};case p:return{viewType:107,viewParameter:3081};case h:return{viewType:5,viewParameter:void 0};case y:return{viewType:2,viewParameter:43};case f:return{viewType:210,viewParameter:void 0};case m:return{viewType:4,viewParameter:void 0};case g:return{viewType:409,viewParameter:3397};case _:return{viewType:1,viewParameter:3372};default:return{viewType:void 0,viewParameter:void 0}}},C=(e,t)=>(0,l.tj)(e,{browser:v.getState().session.browser,version:Math.floor(parseInt(v.getState().session.browserVersion,10)),...t}),k=(0,r.Z)(),O="default"===k||"granted"===k,D=(e,t,n,r)=>{const a=navigator.serviceWorker,o=Boolean((0,c.qn)(b)),s={experimentName:n||"noExperiment",experimentGroup:r||"noGroup"};return a&&a.ready&&O&&!o?(t({event_type:13,view_type:170,component:13125,aux_data:{experiment_name:n,experiment_group:r}}),C(`mweb.notifications_upsell.${I(e)}.viewed`,s),a.ready.then((e=>e.pushManager.subscribe({userVisibleOnly:!0}))).then((n=>((e,t,n,r)=>{i.Z.create("WebPushDeviceResource",{}).callGet().then((t=>{const n=(({subscriptionId:e,endpoint:t})=>{return e||(n=t.split("/"))[n.length-1];var n})(e);if(t.resource_response.data[n])return;const r={registration_id:n,subscription_endpoint:e.endpoint};i.Z.create("WebPushDeviceResource",r).callCreate()})),(0,c.Nh)(b,"subscribed"),C(`mweb.notifications_upsell.${I(t)}.subscribed`,n);const a=A(t);r({component:13125,element:10357,event_type:102,view_type:a.viewType,view_parameter:a.viewParameter,aux_data:{experiment_name:n.experimentName,experiment_group:n.experimentGroup}})})(n,e,s,t)),(()=>((e,t,n)=>{(0,c.Nh)(b,"denied"),C(`mweb.notifications_upsell.${I(e)}.denied`,t);const r=A(e);n({component:13125,element:10358,event_type:102,view_type:r.viewType,view_parameter:r.viewParameter,aux_data:{experiment_name:t.experimentName,experiment_group:t.experimentGroup}})})(e,s,t)))):Promise.reject()},N=e=>{v=e},L=({isAuthenticated:e,isAppShell:t})=>{let n=!1;const r=r=>{if(n)return;n=!0;const i=`${t?"warm":"cold"}.${e?"auth":"unauth"}`;(0,l.My)(`mweb_service_worker.appshell_status.${i}.${r}`)},i=navigator.serviceWorker,a=null==i?void 0:i.controller;i&&a?setTimeout((()=>r("timeout")),1e3):r("no_worker")}},886076:(e,t,n)=>{function r({isEligibleForPdp:e,isOosProduct:t,isStaleProduct:n,pinShoppingFlags:r}){if(r){const i=r,a={pin_is_shop_the_look:i.includes(2),pin_show_pdp:e||t||n,is_available:i.includes(1),is_product_pin_v2:i.includes(5),is_rich_product_pin:i.includes(6)};return JSON.stringify(a)}}n.d(t,{Z:()=>r})},830157:(e,t,n)=>{function r(e,t){return e||(t?`${t}~0`:"~0")}n.d(t,{Z:()=>r})},62409:(e,t,n)=>{n.d(t,{AH:()=>l,Bk:()=>a,CK:()=>s,Xe:()=>i,kb:()=>o,wS:()=>r});const r=e=>{if(!e)return Object.freeze({});let t;return e.native_creator?(t=e.native_creator,t):e.link_domain?(t=e.link_domain.official_user,t):(t=e.origin_pinner||e.pinner,t)};function i({hasLinkDomain:e,hasNativeCreator:t,hasOriginPinner:n,pinDomain:r,sourceUserUsername:i,sourceUserFullName:a}){return!t&&(e||n)&&i?{pinCreditLink:`/${i}/`,pinCredit:a}:{pinCreditLink:void 0,pinCredit:!t&&e?r:""}}const a=({i18n:e,isLego:t,hasLinkDomain:n,hasRichMetadataArticle:r,hasRichMetadataTutorial:i,hasRichMetadataRecipeCategorizedIngredients:a,hasRichMetadataProductOfferSummary:o,hasRichSummaryProductOfferSummary:s,richMetadataRecipeFromAggregatedData:l,richMetadataProductName:c,richSummaryProductName:d})=>{const u=a;let p;c&&o&&(p=!0);const h=r,m=i;let f=t?e.bt("From ", "From ", "Closeup pin annotation", undefined, true):e.bt("Saved from ", "Saved from ", "Closeup pin annotation", undefined, true);return!n||l?f=e.bt("Saved by ", "Saved by ", "Closeup pin annotation", undefined, true):p?f=e.bt("Product sold by ", "Product sold by ", "pin annotation", undefined, true):m?(t&&(f=e.bt("From ", "From ", "pin annotation", undefined, true)),f=e.bt("Saved from ", "Saved from ", "pin annotation", undefined, true)):u?f=e.bt("Recipe from ", "Recipe from ", "pin annotation", undefined, true):h&&(f=e.bt("Article from ", "Article from ", "pin annotation", undefined, true)),!o&&d&&s&&(f=e.bt("Product sold by ", "Product sold by ", "pin annotation", undefined, true)),f},o=e=>{const t=e.link_domain,n=e.rich_metadata,r=e.rich_summary;let i;if(t&&!(n&&n.recipe&&n.recipe.from_aggregated_data)){let e;var a;if(n&&n.products&&n.products[0]&&(e=!!(n&&n.products[0].name&&n.products[0].offer_summary)),e)i=null==n||null===(a=n.products)||void 0===a?void 0:a[0].offer_summary}if(!i&&r){let e;r&&r.products&&r.products[0]&&(e=!!(r&&r.products[0].name&&r.products[0].offer_summary),e&&(i=r.products[0].offer_summary))}return i},s=({hasRichMetadata:e,hasRichMetadataProducts:t,hasRichMetadataArticle:n,hasRichMetadataRecipe:r})=>e?t?144:n?141:r?145:139:140,l=e=>!!e&&!e.startsWith("https://i.pinimg.com")},772486:(e,t,n)=>{n.d(t,{XK:()=>s,jC:()=>o,yd:()=>l});var r=n(745760);let i=null,a=null;const o=((e,t)=>{let n=null;return o=>{var s;if(o&&!n)return n={...o,event_type:e,time:(0,r.h1)()},null===(s=a)||void 0===s||s.logContextEvent(n),i&&n&&i.storeClickthroughProperties(n),e;if(!o&&n){var l;const e={...n,event_type:t,duration_ns:(0,r.h1)()-n.time};return null===(l=a)||void 0===l||l.logContextEvent(e),n=null,t}return null}})(12,4100),s=e=>{i=e},l=e=>{a=e}},534427:(e,t,n)=>{n.d(t,{E:()=>o,S:()=>s});var r=n(667294),i=n(957161);const a="_loggingInNotHome",o=e=>{e?(0,i.Nh)(a,1):(0,i.L_)(a)},s=()=>{const[e,t]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{t(!0)}),[]),e&&(0,i.qn)(a)}},987318:(e,t,n)=>{n.d(t,{H:()=>a,o:()=>i});var r=n(425288);const{Provider:i,useHook:a}=(0,r.Z)("LimitedLogin")},239682:(e,t,n)=>{function r(e,t,n){return{privacy_filter:t?"secret":"public",sort:n||"last_pinned_to",field_set_key:"profile_grid_item",username:e}}n.d(t,{Z:()=>r})},59644:(e,t,n)=>{n.d(t,{Z:()=>r});const r=(e,t)=>`${e}:${t||""}`},240265:(e,t,n)=>{n.d(t,{O:()=>s,Q:()=>l});var r=n(59644),i=n(414327),a=n(956800);const o=["alphabetical","last_pinned_to","oldest","newest","group_boards_at_top","custom"],s={name:"BoardsResource",key:"boardsResource",options:({boardOrder:e,filterStories:t,mixPublicSecret:n,username:r},i)=>({privacy_filter:"all",sort:e||"last_pinned_to",field_set_key:"profile_grid_item",filter_stories:t,username:r,page_size:25,group_by:n?"mix_public_private":"visibility",include_archived:!0,redux_normalize_feed:!0,...i?{orbac_subject_id:i}:Object.freeze({})})},l=e=>o.reduce(((t,n)=>{const o=[(0,a.N8)("profileBoards",(0,r.Z)(e,n))];return[!0,!1].forEach((t=>{[!0,!1].forEach((r=>{o.push((0,i.jB)(s.name,s.options({username:e,boardOrder:n,mixPublicSecret:t,filterStories:r})))}))})),t.concat(o)}),[])},254176:(e,t,n)=>{n.d(t,{$z:()=>D,Br:()=>h,Cr:()=>R,K8:()=>v,KQ:()=>L,L1:()=>j,OA:()=>M,Tq:()=>g,Xi:()=>k,YQ:()=>N,YV:()=>T,ZP:()=>x,aX:()=>I,eo:()=>f,fJ:()=>U,md:()=>m,oG:()=>_,oL:()=>A,of:()=>b,xH:()=>y,xQ:()=>w,xR:()=>O,xk:()=>E,yT:()=>p,zS:()=>F});var r=n(27255),i=n(239682),a=n(172071),o=n(422946),s=n(379725),l=n(240265),c=n(414327),d=n(6637),u=n(956800);function p(e){return{type:"BOARD_UPDATE_COMPLETE",payload:{board:e}}}function h(e){return{type:"BOARD_PIN_COUNT_CHANGED",payload:e}}function m(e,t){return{type:"BOARD_FOLLOW",payload:{boardId:e,value:t}}}function f({viewingUserId:e,viewingUsername:t,boardId:n,boardPinCount:r}){return{type:"BOARD_DELETE",payload:{viewingUserId:e,viewingUsername:t,boardId:n,boardPinCount:r}}}const _=(e,t)=>n=>n((0,s.U)("BoardResource",{options:{board_id:e,field_set_key:t}}));function g(e,t,n){return(0,s.U)("BoardResource",{options:{board_id:e,field_set_key:t,...n?{orbac_subject_id:n}:{}}})}function y(e,t,n){return r=>d.Z.create("BoardsMergeResource",{source_board_id:e,target_board_id:t,...n?{orbac_subject_id:n}:{}}).callUpdate().then((()=>Promise.all([r(f({boardId:e})),r(g(t,"pin_count")),r((0,u.N8)(o.DV.BOARD_SECTIONS,t))])))}function v(e){return t=>{e&&(0,l.Q)(e).forEach((e=>{t(e)}))}}const b=e=>({type:"BOARD_DISMISS_SENSITIVITY_SCREEN",payload:{boardId:e}}),w=e=>_(e,"pin_count");function S(e,t){return{type:"BOARD_ARCHIVE",payload:{boardId:e,username:t}}}function E(e,t){return n=>(n(S(e)),d.Z.create("BoardArchiveResource",{boardId:e,orbacSubjectId:t}).callUpdate())}function P(e){return{type:"BOARD_UNARCHIVE",payload:{boardId:e}}}function T(e,t){return n=>(n(P(e)),d.Z.create("BoardArchiveResource",{boardId:e,orbacSubjectId:t}).callDelete())}const R=(e,t)=>({type:"BOARD_COVER_IMAGE_UPDATED",payload:{boardId:e,coverPin:t}}),x=e=>({type:"BOARD_DISABLE_MORE_IDEAS_BADGING",payload:{boardId:e}});function I(e,t,n){const a={name:e,privacy:r.Z.BoardPrivacy.PUBLIC,username:t,...n?{orbac_subject_id:n}:Object.freeze({})};return e=>d.Z.create("BoardResource",a).callCreate().then((n=>{const r=n.resource_response.data;return e(t&&(0,c.jB)("BoardsResource",(0,i.Z)(t,!1))),r}))}function A(e={},t,n){return{type:"BOARD_CREATE_COMPLETE",payload:{options:e,board:t},error:n}}const C=(e,t,n,r)=>({type:"BOARD_COLLABORATOR_ADD",payload:{boardId:e,viewingUser:t,status:n,collaboratingUsers:r}}),k=(e,t=!1,n)=>r=>(r(((e,t,n)=>({type:"BOARD_INVITE_APPROVED_BY_VIEWER",payload:{boardId:e,isRequestToJoin:t,collaboratingUser:n}}))(e,t,n)),d.Z.create("BoardInviteResource",{board_id:e,invited_user_id:null==n?void 0:n.id}).callUpdate()),O=(e,t)=>n=>(n(((e,t)=>({type:"BOARD_INVITE_DENIED_BY_VIEWER",payload:{boardId:e,userId:t}}))(e,t)),d.Z.create("BoardInviteResource",{board_id:e,invited_user_id:t}).callDelete()),D=(e,t,n)=>r=>(r(C(e,t,"new",n)),d.Z.create("BoardInviteResource",{board_id:e,invited_user_ids:n.map((({id:e})=>e))}).callCreate()),N=(e,t,n,r,i)=>a=>{var o,s;const l="accepted"===t?"BoardCollaboratorResource":"BoardInviteResource";return a(((e,t,n)=>({type:"BOARD_COLLABORATOR_DELETE",payload:{boardId:e,userId:t,viewingUser:n}}))(e,null!==(o=null==r?void 0:r.id)&&void 0!==o?o:"",n)),d.Z.create(l,{board_id:e,field_set_key:"boardEdit",invited_user_id:null!==(s=null==r?void 0:r.id)&&void 0!==s?s:"",...i?{orbac_subject_id:i}:{}}).callDelete().catch((()=>a(C(e,n,t,[r]))))},L=(e,t)=>n=>d.Z.create("SocialSearchCampaignResource",{boardId:e}).callGet().then((r=>{if(!r||!r.resource_response)return{};const i=r.resource_response.data||{},o=(i.model||{}).custom_properties||{},{campaign_id:s="unknown"}=o,l=i.display_data||{},c=!!i.display_data,d=l.header_image_mobile,u=l.header_background_color,p=l.text_icon_color,h={boardId:e,isSocialSeasonalBoard:c,socialHeaderBgImage:d,socialHeaderBgColor:u,textIconColor:p};return a.Z.increment(`mweb.seasonal_board.${s}.${t}.land`),n((e=>({type:"SET_SOCIAL_SEASONAL_BOARD",payload:e}))(h))})),M=(e,t)=>()=>d.Z.create("BoardEmailInviteResource",{board_id:e,emails:t}).callCreate(),j=(e,t,n,r)=>i=>{const a=d.Z.create("BoardResource",{board_id:n}).callDelete();return i(f({viewingUserId:e,viewingUsername:t,boardId:n,boardPinCount:r})),a},F=(e,t)=>n=>d.Z.create("BoardArchiveResource",{boardId:e}).callUpdate().then((r=>(n((0,u.Qv)("archived-boards",[{id:e,type:"board"}])),n(S(e,t)),r))),U=(e,t)=>n=>d.Z.create("BoardArchiveResource",{boardId:e}).callDelete().then((r=>(n((0,u.Qv)(`profile-boards:${t}`,[{id:e,type:"board"}])),n(P(e)),r)))},956800:(e,t,n)=>{function r(e){return{type:"FEED_ITEM_REORDERED",payload:e}}function i(e,t){return{type:"FEED_INVALIDATE",payload:{feedType:e,feedId:t}}}n.d(t,{EX:()=>o,N8:()=>i,Qv:()=>a,_f:()=>r,vX:()=>s});const a=(e,t,n=Object.freeze({}))=>({type:"APPEND_FEED_ITEMS",payload:{id:e,options:n,items:t}});function o(e){return{type:"FEED_ITEMS_REMOVED",payload:e}}function s(e){return{type:"FEED_ITEMS_ADDED",payload:e}}},447948:(e,t,n)=>{function r(e,t){return{type:"CHANGE_CAROUSEL_SLOT_INDEX",payload:{id:e,index:t}}}function i(e,t){return{type:"SET_PIN_COMMENTS_DISABLED",payload:{id:e,pinCommentsDisabled:t}}}function a(e,t,n,r,i){return{type:"PIN_SAVE",payload:{id:e,boardId:t,title:n,url:r,localPinId:i}}}function o(e){return{type:"PIN_UNSAVE",payload:{id:e}}}n.d(t,{Gb:()=>o,I1:()=>d,Ib:()=>p,NA:()=>c,Ur:()=>a,Vw:()=>l,b9:()=>m,fH:()=>_,i0:()=>h,mO:()=>i,q1:()=>u,t_:()=>s,yR:()=>r,yj:()=>f});const s=(e,t,n)=>({type:"PIN_UNDO_SAVE",payload:{pinId:e,boardId:t,boardSectionId:n}});function l(e){return{type:"PIN_SHOW_SUGGESTED_CREATOR_RECS",payload:{id:e,value:!0}}}function c({id:e,text:t,undoAction:n,undoActionOptions:r,undoText:i}){return{type:"PIN_SHOW_UNDO_AND_FEEDBACK",payload:{id:e,value:!0,text:t,undoAction:n,undoActionOptions:r,undoText:i}}}function d(e){return{type:"PIN_SHOW_FEEDBACK",payload:{id:e,value:!1}}}function u(e,t){return{type:"PIN_SHOW_FEEDBACK",payload:{id:e,value:!0,text:t}}}function p(e){return{type:"PIN_SHOW_FEEDBACK_OVERLAY",payload:{id:e,value:!0}}}function h(e){return{type:"PIN_SHOW_FEEDBACK_OVERLAY",payload:{id:e,value:!1}}}function m(e){return{type:"PIN_SHOW_AD_REASONS_MODAL",payload:{id:e,value:!0}}}function f(e){return{payload:{id:e,value:!1},type:"PIN_SHOW_AD_REASONS_MODAL"}}const _=(e,t)=>({type:"PIN_FEEDBACK",payload:{id:e,value:t}})},461773:(e,t,n)=>{n.d(t,{KF:()=>c,ZN:()=>o,fv:()=>l,kE:()=>u,yA:()=>s});var r=n(6637),i=n(90326);function a(e,t){return r.Z.create("UserFollowResource",{user_id:e,aux_data:t?{pin_id:t}:void 0})}function o(e,t=null){return n=>{a(e,t).callCreate().catch((()=>n((0,i.P_)(e,!1)))),n((0,i.P_)(e,!0))}}function s(e,t=null){return async n=>{n((0,i.P_)(e,!0)),await a(e,t).callCreate().catch((t=>{throw n((0,i.P_)(e,!1)),t}))}}function l(e,t=null){return n=>{a(e,t).callDelete().catch((()=>n((0,i.P_)(e,!0)))),n((0,i.P_)(e,!1))}}function c(e,t=null){return async n=>{n((0,i.P_)(e,!1)),await a(e,t).callDelete().catch((t=>{throw n((0,i.P_)(e,!0)),t}))}}const d=(e,t)=>({type:"USER_BULK_FOLLOW",payload:{ids:e,value:t}}),u=e=>t=>{e.length>0&&(r.Z.create("ApiResource",{url:"/v3/users/follow/",data:{followee_ids:e.join(",")}}).callUpdate().catch((()=>t(d(e,!1)))),t(d(e,!0)))}},90326:(e,t,n)=>{n.d(t,{Ge:()=>l,JS:()=>a,OF:()=>_,P_:()=>o,Q_:()=>u,b8:()=>p,eR:()=>f,h2:()=>c,h6:()=>d});var r=n(962832),i=n(6637);function a(e){return{type:"UPDATE_USER_PIN_COUNT",payload:e}}const o=(e,t)=>({type:"USER_FOLLOW",payload:{id:e,value:t}}),s=(e,t)=>({type:"USER_BLOCK",payload:{id:e,value:t}}),l=(e,t)=>n=>(n(s(e,!0)),i.Z.create("UserBlockResource",{blocked_user_id:e,orbac_subject_id:t}).callCreate().catch((()=>n(s(e,!1))))),c=e=>t=>(t(s(e,!1)),i.Z.create("UserBlockResource",{blocked_user_id:e}).callDelete().catch((()=>t(s(e,!0)))));function d(e){return{type:"UPDATE_USER_SCHEDULED_PIN_COUNT",payload:e}}const u=(e,t)=>()=>i.Z.create("UserStateResource",{state:e,value:t}).callCreate(),p=(e,t,n)=>(a,o)=>{i.Z.create("ApiResource",{url:"/v3/users/me/"}).callCreate().then((()=>{n({event_type:48,object_id_str:o().session.userId}),e(),(0,r.Dm)()}),t)};const h=async(e,t,n)=>{var r;const a=await i.Z.create("VIPResource",{upload_ids:[e]}).callGet();if(null!==(r=a.resource_response)&&void 0!==r&&r.data[e]){const r=a.resource_response.data[e],{status:i,signature:o}=r;if("processing"===i||"registered"===i)setTimeout((async()=>{h(e,t,n)}),5e3);else if("succeeded"===i){const e=((e,t="150x150")=>e&&`https://i.pinimg.com/${t}/${e.substring(0,2)}/${e.substring(2,4)}/${e.substring(4,6)}/${e}.jpg`||"")(o);t(e)}else n()}else n()},m=e=>new Promise(((t,n)=>{var r,a,o,s,l;r=e,a="pinimage",o=()=>{},s=e=>{t(e)},l=e=>{n(e)},(new FormData).append("img",r),i.Z.create("VIPResource",{type:a}).callCreate().then((e=>{var t;if(null!==(t=e.resource_response)&&void 0!==t&&t.data){const{upload_id:t,upload_url:n,upload_parameters:i}=e.resource_response.data,a=new XMLHttpRequest;a.open("POST",n,!0),a.onload=()=>{var e;(e=a.status)>=200&&e<400?(o(100),h(t,s,l)):l()},a.upload.onprogress=e=>{const t=Math.round(100*e.loaded/e.total);o(t)};const c=new FormData;for(const e in i)c.append(e,i[e]);c.append("file",r),a.send(c)}}),(()=>{l()}))})),f=e=>new Promise(((t,n)=>{"string"==typeof e?e.startsWith("data")&&m(function(e,t=512){const n=e.split(";"),r=n[0].split(":")[1],i=n[1].split(",")[1],a=atob(i),o=[];for(let s=0;s<a.length;s+=t){const e=a.slice(s,s+t),n=new Array(e.length);for(let t=0;t<e.length;t+=1)n[t]=e.charCodeAt(t);const r=new Uint8Array(n);o.push(r)}return new Blob(o,{type:r})}(e)).then((e=>t(e))):n("Invalid Image")})),_=e=>()=>i.Z.create("ApiResource",{url:"/v3/register/exists/",data:{email:e}}).callGet()},483025:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(819063);const i={AggregatedCommentResource:r.rm,AggregatedCommentFeedResource:r.LR,AggregatedCommentReplyResource:r.rm,AggregatedCommentReplyFeedResource:r.LR,AggregatedActivityFeedResource:r.LR,BestPinsFeedAltResource:r.LR,BoardArchiveResource:r.LR,BoardCollaboratorsResource:r.LR,BoardContentRecommendationResource:r.LR,BoardFeedResource:r.LR,BoardFollowingResource:r.LR,BoardInviteResource:r.sf,BoardInvitesResource:r.Ht,BoardlessPinsResource:r.LR,BoardPickerBoardsResource:{all_boards:r.LR,boards_shortlist:r.LR},BoardSectionEditResource:r._F,BoardSectionsRepinResource:r.LR,BoardSectionsResource:r.LR,BoardsFeedResource:r.LR,BoardResource:r.IY,BoardSectionResource:r._F,BoardSectionPinsResource:r.LR,BoardToolsFeedResource:r.LR,ContactRequestsResource:r.LR,ConversationsResource:r.LR,ConversationMessagesResource:r.dq,DidItCommentsResource:r.LR,DidItLikedByResource:r.Gn,DidItUserFeedResource:r.LR,ExploreArticleBlockPinResource:r.LR,ExploreArticleBlockSearchResource:r.LR,ExploreArticleBlockUserResource:r.LR,ExploreArticleBlockUserDidItDataResource:r.LR,ExploreArticleResource:r.yg,FollowingFeedResource:r.LR,HolidaySpotlightRelatedFeedResource:r.LR,HolidaySpotlightResource:r.LR,InterestFollowingResource:r.LR,InterestResource:r.cC,MoreIdeasTabsBoardsResource:r.LR,NewsHubResource:r.LR,NewsHubDetailsResource:r.LR,NewsHubSummaryResource:r.t6,NuxInterestsResource:r.LR,NuxTopicToCreatorsResource:r.Gn,PinResource:r.Cj,PinCatalogResource:r.LR,PinsFromBrandResource:r.LR,ReactionsResource:r.fE,RelatedArticlesResource:r.LR,RelatedInterestsResource:r.LR,RelatedModulesResource:r.LR,RelatedPinFeedResource:r.LR,RelatedProductFeedResource:r.LR,RelatedStreamResource:r.LR,RepinResource:r.Cj,BaseSearchResource:{results:r.LR},SearchResource:r.LR,SectionToolsFeedResource:r.LR,ShareSuggestionsTypeaheadResource:{items:r.LR},ShoppingFeedModularizedResource:r.LR,StoryFeedResource:r.LR,StoryPinTaggedProductsResource:r.LR,SuggestedCreatorFollowsResource:r.Gn,TodayArticleFeedResource:r.LR,IdeasHubTodayArticlesResource:r.LR,TodayArticleResource:r.iF,TodayTabInterestFeedResource:r.LR,TodayTabResource:r.LR,TopicFeedResource:r.LR,UnifiedCommentsResource:r.LR,UserActivityPinsResource:r.LR,UserFollowingResource:r.LR,UserRecentActivityResource:r.LR,UserSimilarBusinessesResource:r.LR,UserHomefeedResource:r.LR,UserPinsResource:r.LR,UserSettingsResource:r.EA,UserStoryPinsFeedResource:r.LR,UserResource:r.EA,VideosFeedResource:r.LR,VisualLiveSearchResource:{results:r.LR},VisualLiveSearchProductFeedResource:r.LR,VisualSearchFlashlightUnifiedResource:r.LR,SeoTier1CandidateResource:r.LR}},819063:(e,t,n)=>{n.d(t,{Cj:()=>c,EA:()=>a,Gn:()=>T,Ht:()=>P,IY:()=>l,LR:()=>x,_F:()=>p,cC:()=>v,dq:()=>m,fE:()=>u,iF:()=>y,rm:()=>o,sN:()=>R,sf:()=>b,t6:()=>E,yg:()=>_});var r=n(782677);const i=Object.freeze({aggregatedComment:"aggregatedComments",article:"articles",board:"boards",boardsection:"boardsections",contactrequest:"contactrequests",conversation:"conversations",conversationMessage:"conversationMessages",inbox:"inbox",notification:"notifications",pin:"pins",reaction:"reactions",story:"stories",todayArticle:"todayArticles",topic:"topics",triedit:"triedits",user:"users",invite:"collaboratorinvite"}),a=new r.fK.Entity(i.user),o=new r.fK.Entity(i.aggregatedComment,{user:a,tagged_users:[a]}),s=new r.fK.Entity(i.article,{curator:a}),l=new r.fK.Entity(i.board),c=new r.fK.Entity(i.pin),d=new r.fK.Entity(i.reaction,{user:a}),u=new r.fK.Array(d),p=new r.fK.Entity(i.boardsection),h=new r.fK.Entity(i.conversationMessage,{sender:a,users:[a],board:l,pin:c,user:a}),m=new r.fK.Array(h),f=new r.fK.Entity(i.contactrequest),_=new r.fK.Entity(i.story,{cover_pin:c,user:a}),g=new r.fK.Entity(i.triedit,{pin:c,user:a}),y=new r.fK.Entity(i.todayArticle,{article_creator_user:a,content_pin:c,content_pin_official_user:a,video_pin:c}),v=new r.fK.Entity(i.topic,{},{processStrategy:(e,t,n)=>({...e,slug:e.slug?e.slug:e.url_name?e.url_name.includes(":")?e.url_name.split(":")[1]:e.url_name:""})}),b=new r.fK.Entity(i.invite,{invited_by_user:a,invited_user:a,board:l},{idAttribute:e=>`${e.board.id}:${e.invited_user.id}`}),w=e=>{switch(e.type){case"aggregatedcomment":return"aggregatedComment";case"conversationMessage":return"conversationMessage";case"explorearticle":return"article";case"news":return"notification";case"interest":return"topic";case"userdiditdata":return"triedit";case"board_section":return"boardsection";case"klp_featured_data":return"topic";case"todayarticle":return"todayArticle";default:return e.type}},S=new r.fK.Union({user:a,board:l,invite:b,pin:c,topic:v,triedit:g},w),E=new r.fK.Entity(i.notification,{content_items:[{content_object:S}],header_icon_objects:[S]}),P=new r.fK.Array(b),T=new r.fK.Array(a),R=new r.fK.Array(l),x=new r.fK.Array({aggregatedComment:o,article:s,board:l,boardsection:p,contactrequest:f,conversationMessage:h,notification:E,pin:c,story:_,todayArticle:y,topic:v,triedit:g,user:a},w,(e=>{switch(e.type){case"collaboratorinvite":return e.board.id;case"category":return"key";default:return"id"}}));_.define({objects:x})},422946:(e,t,n)=>{n.d(t,{DV:()=>d,J:()=>f,ZP:()=>v});var r=n(59644),i=n(932995),a=n(483025),o=n(998651),s=n(648284),l=n(819063),c=n(338739);const d={AGGREGATED_COMMENTS:"aggregatedComments",AGGREGATED_COMMENT_REPLIES:"aggregated-comment-replies",BOARDFEED:"boardfeed",BOARDLESS_PINS:"boardlessPins",BOARD_SECTIONS:"boardSections",BOARD_SECTION_PINS:"board-section-pins",CALL_TO_CREATE_RESPONSES_FEED:"callToCreateResponsesFeed",STORY_PINS_FEED:"story-pins-feed",PROFILE_PINS_FEED:"profile-pins-feed",PROFILE_BOARDS:"profileBoards",SEARCH_PINS:"searchPins",STORY_PIN_DATA:"storyPinData",TODAY_ARTICLE_INTEREST_FEED:"todayArticleInterestFeed",TODAY_TAB:"todayTabFeed",UNIFIED_COMMENTS:"unified-comments",TRIED_IT_FEED:"trieditfeed"},u=new Set(["PinResource","RepinResource"]),p={ApiResource:e=>{return"/v3/orientation/nux_creator_recommendations/"===(null==e?void 0:e.url)?"nux-creator-recommendations":null!=e&&e.url.match(/\/v3\/call_to_create_pins\/([0-9]|[a-z]|[A-Z])+\/pins\//)?`call-to-create-pins:${e.pin_id}`:"/v3/users/me/interests/"===(null==e?void 0:e.url)?`recommended-interests:${null===(t=e.data)||void 0===t?void 0:t.blend_type}`:"";var t},AggregatedActivityFeedResource:e=>`trieditfeed:${e.aggregated_pin_data_id}`,AggregatedCommentFeedResource:e=>`aggregated-comments:${e.objectId}`,AggregatedCommentReplyFeedResource:e=>`${d.AGGREGATED_COMMENT_REPLIES}:${e.objectId}`,BoardlessPinsResource:e=>`boardless-pins:${e.userId}`,BestPinsFeedAltResource:e=>`idea-page-best-pins:${e.interest}`,BoardArchiveResource:e=>"archived-boards",BoardCollaboratorsResource:e=>`board-collaborators:${e.board_id}`,BoardContentRecommendationResource:e=>`recommendation-feed:${e.id}`,BoardFeedResource:e=>`boardfeed:${e.board_id}`,BoardSectionsRepinResource:e=>`board-sections:${e.board_id}`,BoardSectionsResource:e=>`board-sections:${e.board_id}`,BoardSectionPinsResource:e=>`board-section-pins:${e.section_id}`,BoardsFeedResource:e=>`profile-boards:${e.username}`,BoardToolsFeedResource:e=>`board-tools:${e.boardId}`,ConversationsResource:e=>"conversations",DidItLikedByResource:e=>`triedit-likes:${e.didItDataId}`,DidItUserFeedResource:e=>`profile-tried:${e.username}`,ExploreArticleBlockSearchResource:e=>`explore-search:${e.article_id}:${e.block_id}`,ExploreArticleBlockUserResource:e=>`explore-user:${e.article_id}:${e.block_id}`,ExploreArticleBlockPinResource:e=>`explore-pin:${e.article_id}:${e.block_id}`,ExploreArticleBlockUserDidItDataResource:e=>`explore-did_it:${e.article_id}:${e.block_id}`,ExploreArticleResource:({response:e})=>{if(!e)return"";const t="explore_tab_pin".length,n=e.resource_response.data,{story_type:r}=n?n.objects[0]:{story_type:""};return`explore-${r.slice(t)}:${n.id}`},FollowingFeedResource:()=>"following",HolidaySpotlightRelatedFeedResource:e=>`holiday-spotlight-related:${e.storyType}`,HolidaySpotlightResource:e=>`holiday-spotlight:${e.storyType}`,InterestResource:e=>`klp-pins:${e.interest}`,MoreIdeasTabsBoardsResource:()=>"homefeed-more-ideas-tabs",NewsHubResource:()=>"notifications",NewsHubDetailsResource:e=>`newshubdetail:${e.news_id}`,NuxInterestsResource:e=>"nuxTopics",PinsFromBrandResource:e=>`brand-pins:${e.pin}`,ReactionsResource:e=>`reactions:${e.pin_id}`,RelatedArticlesResource:e=>`related-articles:${e.article_id}`,RelatedModulesResource:e=>`related-modules:${e.pin_id}`,RelatedPinFeedResource:e=>`related-pins:${e.pin}`,RelatedProductFeedResource:e=>"pin"===e.shop_source?`closeup-related-products:${e.pin}`:`related-products:${e.pin}`,RelatedStreamResource:e=>`related-story-pins:${e.pinId}`,SearchResource:e=>{const t=`search:${e.scope}:${e.query}:${e.filters||""}:${e.article||""}`;return e.auto_correction_disabled?`${t}:auto-correction-disabled`:t},BaseSearchResource:e=>{const t=`search:${e.scope}:${e.query}:${e.filters||""}:${e.appliedProductFilters}:${e.article||""}`;return e.auto_correction_disabled?`${t}:auto-correction-disabled`:t},SectionToolsFeedResource:e=>`section-tools:${e.sectionId}`,ShareSuggestionsTypeaheadResource:e=>`share-suggestions:${e.board||e.user}:${e.term}`,ShoppingFeedModularizedResource:e=>e.saved_products_only?`board-shop-saved:${e.board_id}`:`board-shop-related:${e.board_id}`,StoryFeedResource:e=>`story-feed:${e.feed_type}:${e.request_params}`,SuggestedCreatorFollowsResource:()=>"suggested-creator-follows",StoryPinTaggedProductsResource:()=>"story-pin-tagged-products",TodayArticleFeedResource:e=>`today-article:${e.id}`,IdeasHubTodayArticlesResource:e=>`today-article:${e.interest_id}`,TodayTabInterestFeedResource:e=>`today-article-interestfeed:${e.interest_id}`,TodayTabResource:()=>"today-tab",SeoTier1CandidateResource:()=>"tier1-feed",UnifiedCommentsResource:e=>`unified-comments:${e.aggregated_pin_id}`,UserActivityPinsResource:e=>`profile-pins-feed:${e.user_id}`,UserHomefeedResource:e=>e.pin_quiz?"pin-quiz":"homefeed",UserFollowingResource:e=>`user-following:${e.username}`,UserRecentActivityResource:()=>"user-recent-activity",UserSimilarBusinessesResource:e=>`user-similar-business:${e.username}`,UserStoryPinsFeedResource:e=>`story-pins-feed:${e.user_id}`,VideosFeedResource:e=>"videos-feed",VisualLiveSearchResource:e=>`visual-search:${e.pin_id}:${e.crop.x}${e.crop.y}${e.crop.w}${e.crop.h}`,VisualLiveSearchProductFeedResource:e=>`visual-search-products:${e.pin_id}:${e.crop.x}${e.crop.y}${e.crop.w}${e.crop.h}`,VisualSearchFlashlightUnifiedResource:e=>`related-products-unified:${e.pin_id}`,BoardFollowingResource:e=>`board-following:${e.username}`,InterestFollowingResource:e=>`topic-following:${e.username}`,UserPinsResource:e=>`profile-pins:${e.username}`,TopicFeedResource:e=>e.best_pins?`best-topic-pins:${e.interest}`:`topic-pins:${e.interest}`},h={ApiResource:({options:e})=>null!=e&&e.url.match(/\/v3\/call_to_create_pins\/([0-9]|[a-z]|[A-Z])+\/pins\//)?{type:d.CALL_TO_CREATE_RESPONSES_FEED,id:e.pin_id}:null,AggregatedActivityFeedResource:({options:{aggregated_pin_data_id:e}})=>({type:d.TRIED_IT_FEED,id:e}),AggregatedCommentFeedResource:({options:{objectId:e}})=>({type:d.AGGREGATED_COMMENTS,id:e}),AggregatedCommentReplyFeedResource:({options:{isUnifiedComment:e,objectId:t}})=>({type:e?d.AGGREGATED_COMMENT_REPLIES:d.AGGREGATED_COMMENTS,id:t,reversed:!0}),BoardFeedResource:({options:{board_id:e}})=>({type:d.BOARDFEED,id:e}),BoardlessPinsResource:({options:{userId:e}})=>({type:d.BOARDLESS_PINS,id:e}),BoardSectionPinsResource:({options:{section_id:e}})=>({type:d.BOARD_SECTION_PINS,id:e}),BoardSectionsResource:({options:{board_id:e}})=>({type:d.BOARD_SECTIONS,id:e}),BoardsResource:({options:{username:e,sort:t}})=>({type:d.PROFILE_BOARDS,id:(0,r.Z)(e,t)}),BaseSearchResource:({options:{auto_correction_disabled:e,appliedProductFilters:t,scope:n,filters:r,query_pin_sigs:i,query:a,user:l},response:c})=>{var u;return{type:d.SEARCH_PINS,id:(0,s.Tb)({appliedProductFilters:t,autoCorrectionDisabled:e,filters:r,query:a,selectedPinImgSig:i,scope:n,user:l}),items:null!==(u=c.resource_response.data)&&void 0!==u&&u.results?(0,o.LM)(c.resource_response.data.results).filteredResults:[]}},DidItCommentsResource:({options:{objectId:e}})=>({type:d.AGGREGATED_COMMENTS,id:e,reversed:!0}),DidItUserFeedResource:({options:{username:e}})=>({type:d.TRIED_IT_FEED,id:e}),IdeasHubTodayArticlesResource:({options:{interest_id:e}})=>({type:d.TODAY_TAB,id:e}),RelatedArticlesResource:({options:{article_id:e}})=>({type:d.TODAY_TAB,id:e}),StoryPinDraftsResource:({options:{userId:e}})=>({type:d.STORY_PIN_DATA,id:e}),TodayTabInterestFeedResource:({options:{interest_id:e}})=>({type:d.TODAY_ARTICLE_INTEREST_FEED,id:e}),TodayTabResource:()=>({type:d.TODAY_TAB,id:"todayTab"}),UnifiedCommentsPreviewResource:({options:{aggregated_pin_id:e}})=>({type:d.UNIFIED_COMMENTS,id:e}),UnifiedCommentsResource:({options:{aggregated_pin_id:e,is_reversed:t}})=>({type:d.UNIFIED_COMMENTS,id:e,reversed:t}),UserActivityPinsResource:({options:{user_id:e}})=>({type:d.PROFILE_PINS_FEED,id:e}),UserStoryPinsFeedResource:({response:e,options:{user_id:t}})=>({type:d.STORY_PINS_FEED,id:t,items:e.resource_response.data||[]})},m=(e,{pinId:t,oldFeedId:n,newFeedId:r})=>n===r?e:((e,{pinId:t,feedId:n})=>e[n]?{...e,[n]:[{type:"pin",id:t},...e[n]]}:e)(((e,{pinId:t,feedId:n})=>e[n]?{...e,[n]:e[n].filter((e=>!("pin"===e.type&&e.id===t)))}:e)(e,{pinId:t,feedId:n}),{pinId:t,feedId:r}),f=(e,t)=>e in p?p[e](t):null,_=(e,t)=>t?`board-section-pins:${t}`:`boardfeed:${e}`,g=(e,t)=>e.map((({id:e,schema:n})=>n?{id:e,type:n,trackingParams:"pin"===n?t.pins[e].tracking_params:void 0,user_id:void 0}:null)).filter(Boolean),y=(e,t,n)=>Object.keys(e).reduce(((r,i)=>{const a=e[i]||[],o=a.filter((e=>!(e.type===t&&e.id===n)));return a.length!==o.length&&(r[i]=o),r}),{...e}),v=(e={},t)=>{switch(t.type){case c.zP:case c.aW:{const{payload:r}=t,{resource:i,options:o,normalizedResponse:s,schema:u}=r;if(s&&i in p){const n=((e,t,n)=>{const r=n||a.Z[e];if(r===l.LR)return t.result;if(r===l.sN)return t.result.map((e=>({id:e,schema:"board"})));if(r===l.Gn)return t.result.map((e=>({id:e,schema:"user"})));if(r===l.Ht)return t.result.map((e=>({id:e,schema:"invite"})));if(r===l.fE)return t.result.map((e=>({id:e,schema:"reaction"})));if("object"==typeof r){const e=Object.entries(r).find((([e,t])=>t===l.LR));if(e)return t.result[e[0]]}return null})(i,s,u);if(n&&Array.isArray(n)){const r=p[i](o);if("ShoppingFeedModularizedResource"===i){const{board_id:t,saved_products_only:r}=null!=o?o:{},i=`board-shop-related:${t}`,a=`board-shop-saved:${t}`,l=`board-shop-saved-preview:${t}`,c=[...e[i]||[]],d=[...e[a]||[]],u=[...e[l]||[]];return g(n,s.entities).forEach((e=>{var n;r?d.push(e):s.entities.pins&&(null===(n=s.entities.pins[e.id])||void 0===n?void 0:n.board)===t?u.push(e):c.push(e)})),{...e,[i]:c,[a]:d,[l]:u}}if("BoardToolsFeedResource"===i||"SectionToolsFeedResource"===i)return{...e,[r]:n};{const i=(t.type===c.aW&&e[r]||[]).concat(g(n,s.entities));return{...e,[r]:i}}}}else{var n;const i=r.response.resource_response.data;if(null===(n=r.options)||void 0===n||!n.redux_normalize_feed)return e;const a=h[r.resource](r);if(a){const{type:n,id:r,items:o,reversed:s}=a;let l=(o||i||[]).map((e=>((e,t)=>{switch(e.type){case"story":return{id:e.id,type:"story",story_type:e.story_type};case"module":return{id:e.id,type:"module",name:e.name};case"user":return{id:e.id,type:"user"};case"board":return t===d.PROFILE_BOARDS?{id:e.id,type:"board",onProfile:!0,profileGroup:e.archived_by_me_at?"archived":e.privacy||"public"}:{id:e.id,type:"board",onProfile:!1};case"board_section":return{type:"board_section",id:e.id};case"triedit":return{type:"triedit",id:e.id};case"aggregatedcomment":return{type:"aggregatedcomment",id:e.id};case"home_feed_tab":return{type:"home_feed_tab",id:e.id,name:e.name};case"storypindata":return{id:e.id,type:"storypindata"};case"todayarticle":return{type:"todayarticle",id:e.id};case"unifiedcommentspreview":return"userdiditdata"===e.unified_comment.type?{type:"triedit",id:e.unified_comment.id}:{type:"aggregatedcomment",id:e.unified_comment.id};default:return{type:"pin",id:e.id}}})(e,n)));s&&(l=l.reverse());const u=`${n}:${r}`,p=e[u];if(p||t.type!==c.aW){const n=p||[];let r=l;return t.type===c.aW&&(r=s?l.concat(n):n.concat(l)),{...e,[u]:r}}}}break}case"FEED_ITEM_REORDERED":{const{payload:{feedType:n,feedId:r,itemType:a,targetItemId:o,sourceItemId:s}}=t,l=`${n}:${r}`,c=e[l]||[];let u=-1,p=-1;if([d.BOARDFEED,d.BOARD_SECTION_PINS,d.BOARD_SECTIONS,"profileBoards"].includes(n)&&(u=c.findIndex((e=>e.type===a&&e.id===s)),p=c.findIndex((e=>e.type===a&&e.id===o))),-1!==u&&-1!==p)return{...e,[l]:(0,i.Z)(c,u,p)};break}case"FEED_ITEMS_REMOVED":{const{payload:{feedType:n,feedId:r,inverseSelection:i,itemType:a,itemIds:o=[]}}=t,s=`${n}:${r}`,l=e[s]||[];if(l&&l.length>0&&(n===d.BOARD_SECTION_PINS||n===d.BOARDFEED)){const t=l.filter((e=>{const t=o.includes(e.id);return!(e.type===a&&(i&&!t||!i&&t))})),n=!!t.find((e=>"pin"===e.type));return{...e,[s]:n?t:[]}}if(l&&l.length>0&&n===d.BOARD_SECTIONS){const t=l.filter((e=>{const t=o.includes(e.id);return!(e.type===a&&t)}));return{...e,[s]:t}}if(l&&l.length>0&&(n===d.AGGREGATED_COMMENTS||n===d.BOARDLESS_PINS||n===d.PROFILE_PINS_FEED||n===d.STORY_PINS_FEED||n===d.UNIFIED_COMMENTS||n===d.TRIED_IT_FEED||n===d.STORY_PIN_DATA)){const t=l.filter((e=>{const t=o.includes(e.id);return!(e.type===a&&t)}));return{...e,[s]:t}}break}case"FEED_ITEMS_ADDED":{const{payload:{feedType:n,feedId:r,itemType:i,itemIds:a=[],prepend:o}}=t,s=`${n}:${r}`,l=e[s]||[];if(l&&(n===d.BOARD_SECTION_PINS||n===d.BOARDFEED||n===d.BOARDLESS_PINS)){const t=a.map((e=>({id:e,type:i})));let n=0;"story"===(l[0]||{}).type&&(n=1),"story"===(l[1]||{}).type&&(n=2);const r=[...l.slice(0,n),...t,...l.slice(n)];return{...e,[s]:r}}if(l&&n===d.BOARD_SECTIONS){const t=[...a].reverse().map((e=>({id:e,type:"board_section"}))),n=l?[...t,...l]:[...t];return{...e,[s]:n}}if(n===d.AGGREGATED_COMMENTS||n===d.AGGREGATED_COMMENT_REPLIES||n===d.PROFILE_PINS_FEED||n===d.STORY_PINS_FEED||n===d.UNIFIED_COMMENTS){const t=a.map((e=>({id:e,type:i}))),n=l?[...o?t:l,...o?l:t]:t;return{...e,[s]:n}}if(n===d.TRIED_IT_FEED){const t=a.map((e=>({id:e,type:i}))),n=l?[...t,...l]:t;return{...e,[s]:n}}break}case"FEED_INVALIDATE":{const{payload:{feedType:n,feedId:r}}=t,i=`${n}:${r}`;if(e[i]||[])return{...e,[i]:null};break}case"APPEND_FEED_ITEMS":{const{payload:{id:n,items:r,options:i}}=t,a=e[n];if(a){let t;return t=i.isPrepend?a[0]&&"story"===a[0].type?[].concat(a[0],r,a.slice(1)):r.concat(a):a.concat(r),{...e,[n]:t}}return{...e,[n]:r}}case"PIN_DELETE":{const{payload:{pinId:n}}=t;return y(e,"pin",n)}case"BOARD_ARCHIVE":{const{payload:{boardId:n,username:r}}=t,i=`profile-boards:${null!=r?r:""}`;if(e[i])return{...e,[i]:e[i].filter((e=>e.id!==n))};break}case"BOARD_UNARCHIVE":{const{payload:{boardId:n}}=t,r="archived-boards";if(e[r])return{...e,[r]:e[r].filter((e=>e.id!==n))};break}case"BOARD_DELETE":{const{payload:{boardId:n}}=t;return y(e,"board",n)}case"BOARD_SECTION_DELETE":{const{payload:{boardSectionId:n}}=t;return y(e,"boardsection",n)}case"PINS_MOVE":{const{payload:{source:n,target:r,pinIds:i,userId:a}}=t,o=n.boardlessPins&&a&&`boardless-pins:${a}`||n.boardId&&_(n.boardId,n.sectionId),s=_(r.boardId,r.sectionId);return i.reduce(((e,t)=>m(e,{pinId:t,oldFeedId:o,newFeedId:s})),e)}case"PINS_MOVE_ALL":{const{payload:{source:n,target:r,excludePinIds:i}}=t,a=_(n.boardId,n.sectionId),o=_(r.boardId,r.sectionId),s={...e,[a]:i.map((e=>({type:"pin",id:e})))};return delete s[o],s}case"PIN_EDIT":{const{payload:{pinId:n,boardId:r,section:i,source:{boardId:a,sectionId:o}}}=t,s=_(a,o),l=_(r,null==i?void 0:i.id);return m(e,{pinId:n,oldFeedId:s,newFeedId:l})}case c.AF:if(u.has(t.payload.resource)){const n=t.payload.response.resource_response.data,r=n.board;let i;if("quick_saves"===r.layout)i=`boardless-pins:${t.payload.options.user_id}`;else{const e=t.payload.options.section;i=e?`board-section-pins:${e}`:`boardfeed:${r.id}`}if(e[i]){const t={...e},r={id:n.id,type:"pin",trackingParams:null==n?void 0:n.tracking_params};return t[i]=[r].concat(e[i]),t}}if("BoardSectionResource"===t.payload.resource&&t.payload.normalizedResponse){const n=t.payload.normalizedResponse.result,r=`board-sections:${t.payload.normalizedResponse.entities.boardsections[n].board}`;if(e[r]){const t={...e},i={id:n,type:"boardsection"};return t[r]=[i].concat(e[r]),t}}if("AggregatedCommentResource"===t.payload.resource&&t.payload.normalizedResponse){const n={id:t.payload.normalizedResponse.result,type:"aggregatedcomment"},r=["aggregated-comments","unified-comments"];let i={...e};for(const a of r){const r=`${a}:${t.payload.options.objectId}`;e[r]&&(i={...i,[r]:[n].concat(i[r])})}return i}if("AggregatedCommentReplyResource"===t.payload.resource&&t.payload.normalizedResponse){const n=`${d.AGGREGATED_COMMENT_REPLIES}:${t.payload.options.objectId}`;return{...e,[n]:[...e[n]||[],{id:t.payload.normalizedResponse.result,type:"aggregatedComment"}]}}if("ReactionsResource"===t.payload.resource&&t.payload.normalizedResponse){const{reaction_pin_id:n}=t.payload.options;if("reaction"===t.payload.options.action_type){const r=`reactions:${t.payload.options.pin_id}`,i={...e},a={id:`${n}:${t.payload.options.user_id}`,type:"reaction",trackingParams:void 0};return i[r]=[a].concat(e[r]),i}if("unreaction"===t.payload.options.action_type){const r=`${n}:${t.payload.options.user_id}`;return y(e,"reaction",r)}}break;case"COMPLETE_STORY":{const{payload:{storyId:n}}=t;return y(e,"story",n)}}return e}},749049:(e,t,n)=>{n.d(t,{O:()=>r});const r=e=>{switch(e){case 2:return 331;case 3:return 12631;default:return 72}}},829084:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(66743);function i(e){var t;return{defaultStyle:0,fontFamily:null!==(t=e.name)&&void 0!==t?t:"",fontGroup:r.gu,fontOverrides:{letterSpacing:e.letter_spacing,lineHeight:e.line_height},format:"truetype",id:e.id,styles:[{fontStyle:"",fontUrl:e.url,fontWeight:"normal",name:"normal"}]}}},201155:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(883119),i=n(785893);function a({ideaPinImages:e}){const t={1:28,2:40,3:48},n=e.map(((e,t)=>{var n,a,o;return(0,i.jsx)(r.xu,{height:48,width:28,color:"default",borderStyle:"sm",overflow:"hidden",rounding:2,dangerouslySetInlineStyle:{__style:{borderColor:"white",marginInlineEnd:"-17px",WebkitMaskImage:"-webkit-radial-gradient(white, black)",zIndex:t}},children:(0,i.jsx)(r.Ee,{alt:"",src:null!==(n=null==e?void 0:e.url)&&void 0!==n?n:"",color:"#696969",fit:"cover",naturalHeight:null!==(a=null==e?void 0:e.height)&&void 0!==a?a:1,naturalWidth:null!==(o=null==e?void 0:e.width)&&void 0!==o?o:1})},t)}));return(0,i.jsx)(r.kC,{justifyContent:"center",children:(0,i.jsx)(r.kC,{justifyContent:"start",width:t[e.length],children:n})})}var o=n(499128),s=n(898781),l=n(784590),c=n(50286);function d({handleHide:e,text:t,userId:n,href:d,imageUrl:u}){const p=(0,s.ZP)(),h=(0,c.HG)(),m=(0,l.Z)({name:"UserStoryPinsFeedResource",options:{data:{filter_version:2,public_only:!0},field_set_key:"partner_grid_item",user_id:n}}),f=Array.isArray(t)?t.join(" "):t;if(0===(m.data||[]).length){const t=u?(0,i.jsx)(r.xu,{height:48,overflow:"hidden",width:48,children:(0,i.jsx)(r.Ee,{alt:p.bt("Image of who you followed", "Image of who you followed", "userFollowingToast.thumbnail.userImage", undefined, true),fit:"cover",naturalHeight:1,naturalWidth:1,src:u})}):void 0;return(0,i.jsx)(o.ZP,{duration:5e3,onHide:e,text:f,href:d,iconThumbnail:t,thumbnailShape:"circle"})}const _=(m.data||[]).slice(0,3).map((e=>{var t;return null===(t=e.images)||void 0===t?void 0:t[h?"236x":"170x"]})),g=(0,i.jsx)(a,{ideaPinImages:_});return(0,i.jsx)(o.ZP,{href:d,duration:5e3,onHide:e,iconThumbnail:g,text:f,thumbnailShape:"square"})}},926749:(e,t,n)=>{n.d(t,{ZP:()=>P});var r=n(667294),i=n(23279),a=n.n(i),o=n(722767);function s(e){const{eventData:{videoEvent:{videoDuration:t,startTime:n,endTime:r,videoStartTime:i,videoEndTime:a,isAudible:o,height:s,width:l,playbackState:c,quartile:d,quartilePercentValue:u,windowHeight:p,windowWidth:h,viewability:m}},component:f,objectId:_,view:g,viewParameter:y,...v}=e;return{component:f,object_id_str:_,view_type:g,view_parameter:y,aux_data:{...v},event_data:{videoEventData:{videoDuration:t,time:n,endTime:r,videoTime:i,endVideoTime:a,isAudible:o,height:s,width:l,playbackState:c,quartile:d,quartilePercentValue:u,windowHeight:p,windowWidth:h,viewability:m}}}}var l=n(121630),c=n(944546),d=n(407043),u=n(158103),p=n(883119),h=n(785893);function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f=[0,.25,.5,.75,.95,.97],_=[0,.5,.8,.99,1],g="-64px 0px 0px 0px",y={rootMargin:g,threshold:_},v={rootMargin:g,threshold:c.iM},b=Object.freeze({LOADING:0,PLAYING:1,PAUSED:2,STALLING:3});function w(){return(new Date).getTime()}function S(e){return!!e.volume&&e.volume>0}class E extends r.Component{constructor(e){super(e),m(this,"videoWrapperRef",(0,r.createRef)()),m(this,"handleWindowResize",(()=>{if(!this.fullscreen){const e=this.getDimensions(),{height:t,width:n}=this.currentInterval;e.height!==t||e.width!==n?this.startNewInterval(e):(this.currentInterval.windowHeight=e.windowHeight,this.currentInterval.windowWidth=e.windowWidth)}})),m(this,"handlePlayheadDown",(({event:e})=>{const{onPlayheadDown:t}=this.props;this.setState({seeking:!0}),t&&t({event:e})})),m(this,"handlePlayheadUp",(({event:e})=>{const{onPlayheadUp:t}=this.props;this.setState({seeking:!1}),t&&t({event:e})})),m(this,"handleLoop",(()=>{this.videoTime=0})),m(this,"handleTimeChange",(e=>{const{seeking:t,ready:n}=this.state;if(!this.currentInterval.videoDuration)return;const r=1e3*e.time,i=function(e,t,n,r){if(e>t)return null;if(n<=0)return null;for(const i of r){const r=i*n;if(e<=r&&t>r)return i}return null}(this.videoTime,r,this.currentInterval.videoDuration,f);if("number"==typeof i&&this.props.playing&&!t&&n){const e=w();this.logVideoEvent(6906,{...this.currentInterval,startTime:e,endTime:e,videoStartTime:0,videoEndTime:0,quartile:Math.floor(4*i),quartilePercentValue:i})}this.videoTime=r,this.props.onTimeChange&&this.props.onTimeChange(e)})),m(this,"handleDurationChange",(e=>{this.currentInterval.videoDuration=1e3*e.duration,this.props.onDurationChange&&this.props.onDurationChange(e)})),m(this,"handleReady",(e=>{const{ready:t}=this.state;t||this.setState({ready:!0}),this.props.onReady&&this.props.onReady(e)})),m(this,"handleEnded",(e=>{this.logFourthQuartileEvent(),this.props.loop&&(this.startNewInterval(),this.currentInterval.videoStartTime=0),this.props.onEnded&&this.props.onEnded(e)})),m(this,"handleVisibilityChange",((e,t)=>{if(0===e.length)return;const n=e.slice(-1)[0],r=function(e,t){for(let n=0;n<t.length;n+=1){const r=t[n],i=t[n+1];if(null==i)return r;if(r<=e&&e<i)return r}return null}(Number.parseFloat(n.intersectionRatio.toFixed(2)),_);"number"==typeof r&&(this.visible=r>=.5),null==r||r===this.currentInterval.viewability||this.fullscreen||(0===r?this.startNewInterval({viewability:r,playbackState:b.PAUSED}):this.startNewInterval({viewability:r}))})),m(this,"handleFullscreenChange",(({event:e,fullscreen:t})=>{if(t){const{height:e,width:t}=window.screen;this.startNewInterval({height:e,width:t,windowHeight:e,windowWidth:t})}else t||this.startNewInterval(this.getDimensions());this.fullscreen=t,this.props.onFullscreenChange&&this.props.onFullscreenChange({event:e,fullscreen:t})})),m(this,"handleClose",(()=>{this.startNewInterval()})),m(this,"handleContextMenu",(e=>{e.preventDefault()})),this.state={ready:!1,seeking:!1};const t=w();this.handleWindowResize=a()(this.handleWindowResize,1e3),this.currentInterval={videoDuration:0,startTime:t,endTime:t,videoStartTime:0,videoEndTime:0,isAudible:S(e),playbackState:this.getPlaybackState(e,this.state),quartile:-1,quartilePercentValue:0,height:null,width:null,windowHeight:null,windowWidth:null,viewability:null},this.videoTime=0,this.fullscreen=!1,this.visible=null}componentDidMount(){this.currentInterval={...this.currentInterval,...this.getDimensions()},window.addEventListener("resize",this.handleWindowResize),window.addEventListener("beforeunload",this.handleClose)}componentDidUpdate(e,t){const n={};S(e)&&!S(this.props)?n.isAudible=!1:!S(e)&&S(this.props)&&(n.isAudible=!0);const r=this.getPlaybackState(this.props,this.state);this.getPlaybackState(e,t)!==r&&(n.playbackState=r),Object.keys(n).length>0&&this.startNewInterval(n)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),window.removeEventListener("beforeunload",this.handleClose),this.startNewInterval()}getPlaybackState(e,t){return t.ready?e.playing&&!t.seeking?b.PLAYING:b.PAUSED:b.LOADING}getDimensions(){let e,t;if(this.videoWrapperRef.current){const n=this.videoWrapperRef.current;n.clientHeight&&n.clientWidth&&(e=n.clientHeight,t=n.clientWidth)}return{height:e,width:t,windowHeight:window.innerHeight,windowWidth:window.innerWidth}}logVideoEvent(e,t){const{closeupStoryPinViewability:n,contextLogData:r,logContextEvent:i}=this.props,{height:a,width:o,windowHeight:l,windowWidth:c,viewability:d,...u}=t;if(null!=a&&null!=o&&null!=l&&null!=c&&null!=d){const t={...u,height:a,width:o,windowHeight:l,windowWidth:c,viewability:n||d};i({event_type:e,...s({...r,view:this.fullscreen?108:r.view,eventData:{videoEvent:t}})})}}logFourthQuartileEvent(){const e=w();this.logVideoEvent(6906,{...this.currentInterval,startTime:e,endTime:e,videoStartTime:0,videoEndTime:0,quartile:4,quartilePercentValue:1})}startNewInterval(e){const t=w();this.logVideoEvent(6904,{...this.currentInterval,endTime:t,videoEndTime:this.videoTime}),this.currentInterval={...this.currentInterval,...e,startTime:t,videoStartTime:this.videoTime,endTime:-1,videoEndTime:-1}}render(){const{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:r,accessibilityPlayLabel:i,accessibilityProgressBarLabel:a,accessibilityUnmuteLabel:s,aspectRatio:c,backgroundColor:d,captions:m,contextLogData:f,controls:_,cropHeight:g,hlsConfig:b,inAdsDesktopVideoExperiment:w,isAutoPlay:S,loop:E,objectFit:P,onLoadedChange:T,onControlsPause:R,onControlsPlay:x,onSeek:I,onVolumeChange:A,playbackRate:C,playing:k,playsInline:O,poster:D,preload:N,rootMargin:L,src:M,surface:j,videoStartTime:F,volume:U}=this.props,{seeking:Z}=this.state,B=w?v:y;return void 0!==L&&(B.rootMargin=j?(0,l.e)(j):L),(0,h.jsx)(o.Z,{options:B,onVisibilityChange:this.handleVisibilityChange,children:(0,h.jsx)(p.xu,{ref:this.videoWrapperRef,onContextMenu:this.handleContextMenu,dangerouslySetInlineStyle:{__style:g?{display:"flex",alignItems:"center",height:`${g}px`}:{}},children:(0,h.jsx)(u.default,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:r,accessibilityPlayLabel:i,accessibilityProgressBarLabel:a,accessibilityUnmuteLabel:s,aspectRatio:g?236/g:c,backgroundColor:d,captions:m,contextLogData:f,controls:_,hlsConfig:b,isAutoPlay:S,loop:E,objectFit:P,onDurationChange:this.handleDurationChange,onEnded:this.handleEnded,onFullscreenChange:this.handleFullscreenChange,onLoadedChange:T,onLoop:this.handleLoop,onControlsPause:R,onControlsPlay:x,onPlayheadDown:this.handlePlayheadDown,onPlayheadUp:this.handlePlayheadUp,onReady:this.handleReady,onSeek:I,onTimeChange:this.handleTimeChange,onVolumeChange:A,playbackRate:C,playing:!Z&&k,onPlay:()=>{},onPlayError:()=>{},playsInline:O,poster:D,preload:N,src:M,videoStartTime:F,visible:this.visible,volume:U})})})}}function P(e){const{logContextEvent:t}=(0,d.v)();return(0,h.jsx)(E,{...e,logContextEvent:t})}m(E,"defaultProps",p.nk.defaultProps)},158103:(e,t,n)=>{n.r(t),n.d(t,{VideoWrapper:()=>S,default:()=>E,getPlaylistSourceSrc:()=>w});var r=n(667294),i=n(19121),a=n(965900),o=n(407043),s=n(773285),l=n(226347),c=n(780280),d=n(883119),u=n(969315),p=n(179888),h=n(785893);function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!e||void 0===e)return"undefined";if("string"==typeof e){let n=e;if(t){const r="control"===t?"v3.pinimg.com":"v2.pinimg.com";n=e.replace("v.pinimg.com",r)}return n}if(Array.isArray(e)&&e[0].src){let n=e[0].src;if(t){const e="control"===t?"v3.pinimg.com":"v2.pinimg.com";n=n.replace("v.pinimg.com",e)}return n}return"unsupported_type_"+typeof e}class _ extends r.Component{constructor(...e){super(...e),m(this,"state",{canPlayVideo:!1,playbackState:p.Cy.DEFAULT}),m(this,"errorRetryCount",2),m(this,"hasSegmentStarted",!1),m(this,"hasPlaybackStarted",!1),m(this,"hasVideoSessionStarted",!1),m(this,"hasVideoSessionEnded",!1),m(this,"lastStallTime",null),m(this,"lastPauseTime",null),m(this,"logSessionStartOnNextPlay",!1),m(this,"playerId",""),m(this,"videoSessionId",""),m(this,"videoVisibleTime",null),m(this,"playbackPerformance",{canPlayTime:null,detailedErrors:"",errorCode:0,errorName:"",errorReason:"",hasFatalError:!1,loadStartTime:null,numberOfStalls:0,numberOfSeeks:0,playbackStartTimestamp:null,segments:[],srcString:f(this.props.src,this.props.quicExpGroup),totalStallDurationMs:0,totalPauseDurationMs:0}),m(this,"componentDidMount",(()=>{const{contextLogData:e={},playing:t}=this.props,{is_closeup_video:n=!1}=e;(0,u.tE)("videoMounted",!1,n),t&&(this.videoVisibleTime=new Date,this.logPlaybackPerformance(p.DR,{initiator:"mount"}))})),m(this,"componentDidUpdate",(e=>{const{playing:t,visible:n,appInFocus:r}=this.props;e.appInFocus&&!r&&(this.logPlaybackPerformance(p.$f,{initiator:"update"}),this.logSessionStartOnNextPlay=!0),e.visible&&!1===n&&(this.logSessionStartOnNextPlay=!1,this.updatePauseDuration(),this.logPlaybackPerformance(p.$f,{initiator:"update"})),!1===e.visible&&!0===n&&(this.videoVisibleTime=this.videoVisibleTime||new Date,t?(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(p.DR,{initiator:"update"})):this.logSessionStartOnNextPlay=!0),t&&r&&this.logSessionStartOnNextPlay&&(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(p.DR,{initiator:"update"}),this.logSessionStartOnNextPlay=!1)})),m(this,"addSegment",(()=>{const{canPlayTime:e,loadStartTime:t,segments:n,srcString:r}=this.playbackPerformance;let i=-1;e&&t&&0===n.length&&(i=e>t?e-t:0);const a=this.videoPlayerRef&&this.videoPlayerRef.video,o={indicatedKbps:-1,duration:a&&a.duration*p.gJ||-1,lastStartPlayTime:null,level:-1,numServerAddressChange:-1,observedKbps:-1,playbackStartDate:null,serverAddress:"",sourceWidth:-1,sourceHeight:-1,startupTimeMs:i,switchBitrateKbps:-1,uri:r,viewportWidth:a&&a.clientWidth||-1,viewportHeight:a&&a.clientHeight||-1,watchedDurationMs:0};n.push(o)})),m(this,"getCurrentVideoTime",(()=>this.videoPlayerRef&&this.videoPlayerRef.video?this.videoPlayerRef.video.currentTime*p.gJ:0)),m(this,"getVideoResourceTiming",(()=>{var e,t;if(null!==(e=window)&&void 0!==e&&null!==(t=e.performance)&&void 0!==t&&t.getEntriesByName&&this.playbackPerformance.srcString){const e=window.performance.getEntriesByName(this.playbackPerformance.srcString);return e.length>0&&e[0]||null}return null})),m(this,"handleCanPlayVideo",(e=>{const{contextLogData:t={},onReady:n,playing:r}=this.props,{is_closeup_video:i=!1}=t,{canPlayVideo:a}=this.state;(0,u.tE)("handleCanPlayVideo",!1,i,{firstCanPlayEvent:!a,playing:r}),this.playbackPerformance.hasFatalError=!1,a||(this.playbackPerformance.canPlayTime=new Date),this.setState({canPlayVideo:!0}),n&&n(e)})),m(this,"handleEnded",(e=>{const{loop:t,onEnded:n}=this.props,{segments:r}=this.playbackPerformance,i=r&&r[r.length-1];t&&this.videoPlayerRef&&this.videoPlayerRef.video?(this.updateWatchDurationForCurrentSegment(),i&&(i.lastStartPlayTime=0),this.hasSegmentStarted=!1):t||this.logPlaybackPerformance(p.$f,{initiator:"videoEnded",loop:t}),this.setState({playbackState:p.Cy.ENDED}),n&&n(e)})),m(this,"handleError",(()=>{var e,t,n,r,i,a,o,s;const{contextLogData:l={}}=this.props,{is_closeup_video:c=!1}=l,d=this.videoPlayerRef&&this.videoPlayerRef.video;(null==d||null===(e=d.error)||void 0===e?void 0:e.code)!==p.lG.MEDIA_ERR_ABORTED&&(this.playbackPerformance.hasFatalError=!0),this.playbackPerformance.detailedErrors+=`${this.playbackPerformance.detailedErrors.length>0?", ":""}${(null==d||null===(t=d.error)||void 0===t?void 0:t.message)||""}`,this.playbackPerformance.errorCode=(null==d||null===(n=d.error)||void 0===n?void 0:n.code)||0,this.playbackPerformance.errorName=(null==d||null===(r=d.error)||void 0===r||null===(i=r.message)||void 0===i?void 0:i.slice(0,100))||"unknown",this.playbackPerformance.errorReason=(null==d||null===(a=d.error)||void 0===a||null===(o=a.message)||void 0===o?void 0:o.slice(0,100))||"unknown";const h={errorName:this.playbackPerformance.errorCode,errorReason:this.playbackPerformance.errorName,errorRetryCount:this.errorRetryCount,playbackState:this.state.playbackState,networkState:(null==d?void 0:d.networkState)||"unknown"};switch((0,u.tE)("fatalError",!1,c,h),null==d||null===(s=d.error)||void 0===s?void 0:s.code){case p.lG.MEDIA_ERR_ABORTED:break;case p.lG.MEDIA_ERR_NETWORK:case p.lG.MEDIA_ERR_DECODE:case p.lG.MEDIA_ERR_SRC_NOT_SUPPORTED:default:this.errorRetryCount>0&&(null==d||d.load(),this.errorRetryCount-=1)}this.updateWatchDurationForCurrentSegment(),this.setState({playbackState:p.Cy.FAILED})})),m(this,"handleLoadedMetadata",(()=>{this.setState({playbackState:p.Cy.LOADED_METADATA})})),m(this,"handleLoadStart",(()=>{this.playbackPerformance.loadStartTime=new Date,this.setState({playbackState:p.Cy.LOAD_START})})),m(this,"handleLoadedData",(()=>{this.setState({playbackState:p.Cy.LOADED_DATA})})),m(this,"handlePlaying",(()=>{this.playbackPerformance.hasFatalError=!1,this.setPlaybackStartTime(),this.hasSegmentStarted||this.addSegment(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.updateStallDuration(),this.updatePauseDuration(),this.setState({playbackState:p.Cy.PLAYING}),this.props.setSeekTime&&this.props.setSeekTime(void 0)})),m(this,"handleUserPause",(e=>{const{onControlsPause:t}=this.props;this.lastPauseTime=new Date,t&&t(e)})),m(this,"handleVideoPause",(()=>{this.state.playbackState!==p.Cy.STALLING&&this.state.playbackState!==p.Cy.SEEKING&&(this.updateWatchDurationForCurrentSegment(),this.lastPauseTime||this.updateStallDuration()),this.setState({playbackState:p.Cy.PAUSED})})),m(this,"handleSeeking",(()=>{this.playbackPerformance.numberOfSeeks+=1;const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&(t.lastStartPlayTime=null),this.state.playbackState!==p.Cy.ENDED&&this.setState({playbackState:p.Cy.SEEKING})})),m(this,"handleStalled",(()=>{null===this.lastStallTime&&this.state.playbackState!==p.Cy.ENDED&&(this.lastStallTime=new Date,this.playbackPerformance.numberOfStalls+=1,this.setState({playbackState:p.Cy.STALLING}))})),m(this,"handleTimeUpdate",(e=>{const{onTimeChange:t}=this.props;t&&t(e),this.state.playbackState===p.Cy.PLAYING&&(this.updateWatchDurationForCurrentSegment(),this.setLastSegmentStartPlayTime())})),m(this,"resetPlaybackMetrics",(()=>{this.hasSegmentStarted=!0,this.hasPlaybackStarted=!1,this.hasVideoSessionStarted=!1,this.hasVideoSessionEnded=!0,this.lastStallTime=null,this.lastPauseTime=null,this.videoSessionId="",this.videoVisibleTime=null,this.logSessionStartOnNextPlay=!1;const e={...this.playbackPerformance.segments[this.playbackPerformance.segments.length-1],lastStartPlayTime:null,playbackStartDate:null,watchedDurationMs:0};this.playbackPerformance.detailedErrors="",this.playbackPerformance.errorCode=0,this.playbackPerformance.errorName="",this.playbackPerformance.errorReason="",this.playbackPerformance.hasFatalError=!1,this.playbackPerformance.numberOfStalls=0,this.playbackPerformance.numberOfSeeks=0,this.playbackPerformance.playbackStartTimestamp=null,this.playbackPerformance.totalStallDurationMs=0,this.playbackPerformance.segments=[e]})),m(this,"setLastSegmentStartPlayTime",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.lastStartPlayTime&&(t.lastStartPlayTime=this.getCurrentVideoTime())})),m(this,"setLastSegmentPlaybackStartDate",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.playbackStartDate&&(t.playbackStartDate=Date.now())})),m(this,"setPlaybackStartTime",(()=>{this.hasPlaybackStarted||(this.playbackPerformance.playbackStartTimestamp=Date.now(),this.hasPlaybackStarted=!0)})),m(this,"setVideoPlayerRef",(e=>{const{setVideoRef:t}=this.props;if(e&&(t&&t(e),this.videoPlayerRef=e,this.videoPlayerRef.video)){const e=this.videoPlayerRef.video;e.addEventListener("loadedmetadata",this.handleLoadedMetadata),e.addEventListener("loadeddata",this.handleLoadedData),e.addEventListener("pause",this.handleVideoPause),e.readyState>=3&&(this.setState({canPlayVideo:!0}),this.playbackPerformance.canPlayTime=new Date)}})),m(this,"updateStallDuration",(()=>{if(null!==this.lastStallTime){const e=this.lastStallTime;this.playbackPerformance.totalStallDurationMs+=new Date-e,this.lastStallTime=null}})),m(this,"updatePauseDuration",(()=>{if(null!==this.lastPauseTime){const e=this.lastPauseTime;this.playbackPerformance.totalPauseDurationMs+=new Date-e,this.lastPauseTime=null}})),m(this,"updateWatchDurationForCurrentSegment",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1],n=t?t.lastStartPlayTime:null,r=this.getCurrentVideoTime();if(t&&null!==n&&"number"==typeof r&&"number"==typeof n){const e=r-n;e>0&&(t.watchedDurationMs+=e,t.lastStartPlayTime=null)}})),m(this,"logPlaybackPerformance",((e,t)=>{const{contextLogData:n={},userId:r,isAutoPlay:i,logContextEvent:a}=this.props,{is_closeup_video:o=!1}=n,{canPlayTime:s,detailedErrors:l,errorCode:c,errorName:d,errorReason:h,hasFatalError:m,loadStartTime:f,totalPauseDurationMs:_,totalStallDurationMs:g,numberOfStalls:y,numberOfSeeks:v,playbackStartTimestamp:b,segments:w,srcString:S}=this.playbackPerformance,E=this.videoPlayerRef&&this.videoPlayerRef.video,P=e===p.DR,T=P&&!this.hasVideoSessionStarted,R=!P&&!this.hasVideoSessionEnded&&this.hasVideoSessionStarted;if(E&&(T||R)){var x;let T=-1;s&&f&&(T=s>f?s-f:0);let R=-1;s&&this.videoVisibleTime&&(R=s>this.videoVisibleTime?s-this.videoVisibleTime:0),P&&(this.videoSessionId=(0,p.Y7)(r),this.playerId=this.playerId||(0,p.EB)());const I=this.getVideoResourceTiming(),A={averageVideoKbps:-1,autoplaying:i,detailedErrors:l,downloadedKiloBytes:"number"==typeof(null==I?void 0:I.decodedBodySize)&&I.decodedBodySize/p.Fm||0,errorCode:c,errorName:d,errorReason:h,fatalError:m,isCellular:!1,nativeVideoDurationMs:E.duration*p.gJ||-1,numberOfStalls:y,numberOfSeeks:v,overallPausedDurationMs:_,overallBufferDurationMs:g,overallWatchedDurationMs:-1,rebufferRate:-1,playbackSessionId:this.videoSessionId,playbackStartTimestamp:b||-1,segments:[],sessionMark:e,screenPixelScale:null!==(x=window)&&void 0!==x&&x.devicePixelRatio?window.devicePixelRatio:-1,startupPlayerWidth:E.clientWidth,startupPlayerHeight:E.clientHeight,startupTimeMs:T,startupLatencyMs:R,startupVariantKbps:-1,startupVariantWatchedDurationMs:-1,startupVariantWidth:E.videoWidth,startupVariantHeight:E.videoHeight,videoUrl:S};if(!P){this.updateWatchDurationForCurrentSegment(),this.updateStallDuration();const e=w.reduce(((e,t)=>e+(t.watchedDurationMs||0)),0);A.overallWatchedDurationMs=e,A.startupVariantWatchedDurationMs=e,A.segments=this.playbackPerformance.segments,0===e?(A.errorName="invalid_watch_duration",A.rebufferRate=-1):A.rebufferRate=g/e}(0,u.ZP)(A,!1,o,{playbackState:this.state.playbackState,...t});const{view:C,viewParameter:k,component:O,element:D,objectId:N,...L}=n;a({event_type:3606,event_data:{videoPerformanceData:A},view_type:C,view_parameter:k,component:O,element:D,object_id_str:N,aux_data:{...L,is_closeup_video:o,playback_session_id:this.videoSessionId}}),P?(this.hasVideoSessionStarted=!0,this.hasVideoSessionEnded=!1):this.resetPlaybackMetrics(),(0,u.tE)(P?"sessionStart":"sessionEnd",!1,o,{playbackState:this.state.playbackState,...t})}}))}componentWillUnmount(){const{loop:e}=this.props;this.updatePauseDuration(),this.logPlaybackPerformance(p.$f,{initiator:"unmount",loop:e})}render(){const{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:r,accessibilityPlayLabel:i,accessibilityProgressBarLabel:a,accessibilityUnmuteLabel:o,aspectRatio:s,captions:l,controls:c,loop:u,loopOverride:p,objectFit:m,onDurationChange:_,onFullscreenChange:g,onLoadedChange:y,onControlsPlay:v,onPlayheadDown:b,onPlayheadUp:w,onSeek:S,onVolumeChange:E,playbackRate:P,playing:T,playsInline:R,poster:x,preload:I,src:A,videoStartTime:C,volume:k}=this.props,{canPlayVideo:O}=this.state;return(0,h.jsx)(d.nk,{autoplay:O&&T,accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:r,accessibilityPlayLabel:i,accessibilityProgressBarLabel:a,accessibilityUnmuteLabel:o,aspectRatio:s,captions:l,controls:c,loop:void 0===p?u:p,objectFit:m,onDurationChange:_,onEnded:this.handleEnded,onError:this.handleError,onFullscreenChange:g,onLoadedChange:y,onLoadStart:this.handleLoadStart,onControlsPause:this.handleUserPause,onControlsPlay:v,onPlaying:this.handlePlaying,onPlayheadDown:b,onPlayheadUp:w,onReady:this.handleCanPlayVideo,onSeek:S,onSeeking:this.handleSeeking,onStalled:this.handleStalled,onTimeChange:this.handleTimeUpdate,onVolumeChange:E,onWaiting:this.handleStalled,playbackRate:P,onPlay:()=>{},onPlayError:()=>{},playing:O&&T,playsInline:R,poster:x,preload:I,ref:this.setVideoPlayerRef,src:f(A,this.props.quicExpGroup),startTime:C||void 0,volume:k})}}const g=(0,r.memo)((function(e){const{logContextEvent:t}=(0,o.v)(),{country:n,isAuthenticated:r,isBot:d,isSocialBot:p,unauthId:m,userAgent:f}=(0,c.B)(),{browserName:g,browserVersion:y,isMobile:v}=f,{contextLogData:b={}}=e,{is_closeup_video:w=!1,view:S,viewParameter:E}=b,{appUI:{appInFocus:P}}=(0,a.I)(),{checkExperiment:T}=(0,s.F)(),{updateSeekTime:R}=(0,l.RC)();let x=null;r&&(x=T("web_video_quic").group.length?T("web_video_quic").group:null);const I=(0,i.Z)(),A={browserName:g,browserVersion:y,country:n,isAuthenticated:r,isBot:d,is_closeup_video:w,isMobile:v,isSocialBot:p,view:S,viewParameter:E};return(0,u.r$)(A),(0,h.jsx)(_,{...e,userId:I.id||m,appInFocus:P,quicExpGroup:x,logContextEvent:t,setSeekTime:R})}));var y=n(562559),v=n(366284);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const w=e=>{if(Array.isArray(e)){const t=e.find((e=>"video/m3u8"===e.type));return t?t.src:void 0}return RegExp("m3u8$").test(e)?e:void 0};class S extends r.PureComponent{constructor(e){super(e),b(this,"componentDidUpdate",((e,t)=>{var n;e.videoStartTime&&this.props.videoStartTime&&e.videoStartTime<this.props.videoStartTime&&null!==(n=this.videoPlayerRef)&&void 0!==n&&n.video&&(this.videoPlayerRef.video.currentTime=this.props.videoStartTime)})),b(this,"setVideoPlayerRef",(e=>{e&&(this.videoPlayerRef=e)})),b(this,"handleOnEnded",(({event:e})=>{const{loop:t,onLoop:n,onEnded:r}=this.props;r&&(r({event:e}),this.videoPlayerRef&&this.videoPlayerRef.video&&t&&(this.videoPlayerRef.video.play(),n&&n()))}));const t=w(e.src);this.state={useHlsVideo:!e.preferMp4&&!(0,v.G6)(e.requestContext.userAgent.browserName)&&!!t}}render(){const{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:r,accessibilityPlayLabel:i,accessibilityProgressBarLabel:a,accessibilityUnmuteLabel:o,aspectRatio:s,appInFocus:l,backgroundColor:c,captions:d,contextLogData:u,controls:p,hlsConfig:m,isAutoPlay:f,loop:_,objectFit:v,onDurationChange:b,onEnded:S,onFullscreenChange:E,onLoadedChange:P,onControlsPause:T,onControlsPlay:R,onPlayheadDown:x,onPlayheadUp:I,onReady:A,onSeek:C,onTimeChange:k,onVolumeChange:O,playbackRate:D,playing:N,playsInline:L,poster:M,preferMp4:j,preload:F,src:U,videoStartTime:Z,visible:B,volume:V}=this.props,{useHlsVideo:$}=this.state,z=w(U),H={...m,startPosition:Z||-1},G=!S&&_;return $&&z?(0,h.jsx)(y.Z,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:r,accessibilityPlayLabel:i,accessibilityProgressBarLabel:a,accessibilityUnmuteLabel:o,aspectRatio:s,appInFocus:l,backgroundColor:c,captions:d,contextLogData:u,controls:p,hlsConfig:H,isAutoPlay:f,loop:_,loopOverride:G,onDurationChange:b,onEnded:this.handleOnEnded,onFullscreenChange:E,onLoadedChange:P,onControlsPause:T,onControlsPlay:R,onPlayheadDown:x,onPlayheadUp:I,onReady:A,onSeek:C,onTimeChange:k,onVolumeChange:O,playbackRate:D,onPlay:()=>{},onPlayError:()=>{},playing:N,playsInline:L,poster:M,preload:F,setVideoRef:this.setVideoPlayerRef,src:z,visible:B,volume:V}):(0,h.jsx)(g,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:r,accessibilityPlayLabel:i,accessibilityProgressBarLabel:a,accessibilityUnmuteLabel:o,aspectRatio:s,captions:d,contextLogData:u,controls:p,isAutoPlay:f,loop:_,loopOverride:G,objectFit:v,onDurationChange:b,onEnded:this.handleOnEnded,onFullscreenChange:E,onLoadedChange:P,onControlsPause:T,onControlsPlay:R,onPlayheadDown:x,onPlayheadUp:I,onReady:A,onSeek:C,onTimeChange:k,onVolumeChange:O,playbackRate:D,onPlay:()=>{},onPlayError:()=>{},playing:N,playsInline:L,poster:M,preload:F,setVideoRef:this.setVideoPlayerRef,src:j?U:z||U,videoStartTime:Z,visible:B,volume:V})}}function E(e){const{appUI:{appInFocus:t}}=(0,a.I)(),n=(0,c.B)();return(0,h.jsx)(S,{...e,appInFocus:t,requestContext:n})}},944546:(e,t,n)=>{n.d(t,{HJ:()=>i,VS:()=>r,iM:()=>a});const r=2,i="V_HLSV3_MOBILE",a=[0,.01,.02,.03,.04,.05,.06,.07,.08,.09,.1,.11,.12,.13,.14,.15,.16,.17,.18,.19,.2,.21,.22,.23,.24,.25,.26,.27,.28,.29,.3,.31,.32,.33,.34,.35,.36,.37,.38,.39,.4,.41,.42,.43,.44,.45,.46,.47,.48,.49,.5,.51,.52,.53,.54,.55,.56,.57,.58,.59,.6,.61,.62,.63,.64,.65,.66,.67,.68,.69,.7,.71,.72,.73,.74,.75,.76,.77,.78,.79,.8,.81,.82,.83,.84,.85,.86,.87,.88,.89,.9,.91,.92,.93,.94,.95,.96,.97,.98,.99,1]},464228:(e,t,n)=>{n.d(t,{P:()=>a,Z:()=>o});var r=n(667294);const i=(0,r.createContext)();function a(){return(0,r.useContext)(i)}const o=i},373897:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},163405:(e,t,n)=>{var r=n(373897);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},474704:(e,t,n)=>{var r=n(386116);e.exports=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}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,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}},e.exports.__esModule=!0,e.exports.default=e.exports},238416:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},564836:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},379498:e=>{e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},742281:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},242122:(e,t,n)=>{var r=n(238416);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},600861:(e,t,n)=>{var r=n(163405),i=n(379498),a=n(386116),o=n(742281);e.exports=function(e){return r(e)||i(e)||a(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},386116:(e,t,n)=>{var r=n(373897);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},204942:(e,t,n)=>{function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},601413:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(204942);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}}}]);
//# sourceMappingURL=https://sm.pinimg.com/webapp/40819.en_AU-d103259d1ec87e24.mjs.map