(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[20100,51798,47974,90907,39395,2984,93810,61116,48637,46570,24725,75970,72071,52555,90945,98716,81728,10339,57813,12506,60144,96477,97650,5719,43159,16957,15115,60426,82492,45670,22897,15728,69686,51672,66859,53857,24483,912,49676,60587,89627,31340,8575,50343,20236,73635,83346,16429,58638,23732,66886],{166379:e=>{var t,n,i,o,r={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"inviteType"},{defaultValue:null,kind:"LocalArgument",name:"objectId"}],kind:"Fragment",metadata:null,name:"ShareInviteCreateExternalInviteGraphQLQuery",selections:[{alias:null,args:n=[{kind:"Variable",name:"inviteType",variableName:"inviteType"},{kind:"Variable",name:"objectId",variableName:"objectId"}],concreteType:null,kind:"LinkedField",name:"v3InviteUserExternalQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[i={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},o={alias:null,args:null,concreteType:"InviteUserExternal",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:"invite_code",args:null,kind:"ScalarField",name:"inviteCode",storageKey:null},{alias:"invite_url",args:null,kind:"ScalarField",name:"inviteUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null}],type:"V3InviteUserExternal",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"ShareInviteCreateExternalInviteGraphQLQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"v3InviteUserExternalQuery",plural:!1,selections:[i,{kind:"InlineFragment",selections:[o],type:"V3InviteUserExternal",abstractKey:null}],storageKey:null}]},params:{id:"ab55ea9f382837bc92cb5dab03686e16868a27912a9e4237e2ddbe7a15540d21",metadata:{},name:"ShareInviteCreateExternalInviteGraphQLQuery",operationKind:"query",text:null}};r.hash="9c91c46b70b37b163403747442a8c1d4",e.exports=r},380465:e=>{var t,n,i,o,r={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"invite_category"},{defaultValue:null,kind:"LocalArgument",name:"url"}],kind:"Fragment",metadata:null,name:"ShareInviteCreateShareLinkGraphQLQuery",selections:[{alias:null,args:n=[{kind:"Variable",name:"inviteCategory",variableName:"invite_category"},{kind:"Literal",name:"name",value:""},{kind:"Variable",name:"url",variableName:"url"}],concreteType:null,kind:"LinkedField",name:"v3CreateShareLinkQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[i={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},o={alias:null,args:null,concreteType:"ShareLink",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:"invite_code",args:null,kind:"ScalarField",name:"inviteCode",storageKey:null},{alias:"invite_url",args:null,kind:"ScalarField",name:"inviteUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null}],type:"V3CreateShareLink",abstractKey:null},{kind:"InlineFragment",selections:[i],type:"ClientError",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"ShareInviteCreateShareLinkGraphQLQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"v3CreateShareLinkQuery",plural:!1,selections:[i,{kind:"InlineFragment",selections:[o],type:"V3CreateShareLink",abstractKey:null}],storageKey:null}]},params:{id:"8d8e9da7f5f5830ad00711d5fa1aa68c48b859aac0680cc0e49d58d3c1ccea88",metadata:{},name:"ShareInviteCreateShareLinkGraphQLQuery",operationKind:"query",text:null}};r.hash="e485abf49d319ba9c47587981f2a86be",e.exports=r},656177:e=>{var t,n,i,o,r,a,s,l,c={fragment:{argumentDefinitions:[t={defaultValue:null,kind:"LocalArgument",name:"inviteCode"},n={defaultValue:null,kind:"LocalArgument",name:"inviteType"},i={defaultValue:null,kind:"LocalArgument",name:"objectId"}],kind:"Fragment",metadata:null,name:"ShareInviteMutation",selections:[{alias:null,args:o=[{fields:[{kind:"Variable",name:"inviteCode",variableName:"inviteCode"},{kind:"Variable",name:"inviteType",variableName:"inviteType"},{kind:"Variable",name:"objectId",variableName:"objectId"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3InviteSentExternalMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[r={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"InviteCode",kind:"LinkedField",name:"data",plural:!1,selections:[a={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"fromUserId",storageKey:null}],storageKey:null}],type:"V3InviteSentExternal",abstractKey:null},{kind:"InlineFragment",selections:[r,l={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null}],storageKey:null}],type:"InvalidParameters",abstractKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[n,t,i],kind:"Operation",name:"ShareInviteMutation",selections:[{alias:null,args:o,concreteType:null,kind:"LinkedField",name:"v3InviteSentExternalMutation",plural:!1,selections:[r,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"InviteCode",kind:"LinkedField",name:"data",plural:!1,selections:[a,s,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],type:"V3InviteSentExternal",abstractKey:null},{kind:"InlineFragment",selections:[l],type:"InvalidParameters",abstractKey:null}],storageKey:null}]},params:{id:"30e03e1f3b6dded5c6d93bfecfb50065b254f1307aec34dfa67719890b615b82",metadata:{},name:"ShareInviteMutation",operationKind:"mutation",text:null}};c.hash="c33b898a613c3dc2792113fb7e97b0f5",e.exports=c},294184:(e,t)=>{var n;!function(){var i={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)&&n.length){var a=o.apply(null,n);a&&e.push(a)}else if("object"===r)for(var s in n)i.call(n,s)&&n[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},701305:e=>{var t=[],n=[];function i(e,t,n,o){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 r=Object.prototype.toString,a=r.call(e);if(a!=r.call(t))return!1;switch(a){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 o[s]==t;n.push(e),o.push(t);var l=0;if("[object Array]"===a){if((l=e.length)!==t.length)return!1;for(;l--;)if(!i(e[l],t[l],n,o))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(!i(e[c[d]],t[c[d]],n,o))return!1}return n.pop(),o.pop(),!0}e.exports=function(e,o){var r=t.length?t.pop():[],a=n.length?n.pop():[],s=i(e,o,r,a);return r.length=0,a.length=0,t.push(r),n.push(a),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 i=n(60139);e.exports=i},850115:e=>{e.exports="https://s.pinimg.com/webapp/goodIdea-b770896d.svg"},379507:e=>{e.exports="https://s.pinimg.com/webapp/haha-e2800d2d.svg"},637956:e=>{e.exports="https://s.pinimg.com/webapp/love-c31e0b8d.svg"},909745:e=>{e.exports="https://s.pinimg.com/webapp/thanks-62775475.svg"},128206:e=>{e.exports="https://s.pinimg.com/webapp/wow-3cb697ef.svg"},942358:(e,t,n)=>{n.r(t),n.d(t,{createBrowserHistory:()=>S,createHashHistory:()=>R,createLocation:()=>f,createMemoryHistory:()=>O,createPath:()=>m,locationsAreEqual:()=>g,parsePath:()=>_});var i=n(487462);function o(e){return"/"===e.charAt(0)}function r(e,t){for(var n=t,i=n+1,o=e.length;i<o;n+=1,i+=1)e[n]=e[i];e.pop()}const a=function(e,t){void 0===t&&(t="");var n,i=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&o(e),l=t&&o(t),c=s||l;if(e&&o(e)?a=i:i.length&&(a.pop(),a=a.concat(i)),!a.length)return"/";if(a.length){var d=a[a.length-1];n="."===d||".."===d||""===d}else n=!1;for(var u=0,p=a.length;p>=0;p--){var h=a[p];"."===h?r(a,p):".."===h?(r(a,p),u++):u&&(r(a,p),u--)}if(!c)for(;u--;u)a.unshift("..");!c||""===a[0]||a[0]&&o(a[0])||a.unshift("");var _=a.join("/");return n&&"/"!==_.substr(-1)&&(_+="/"),_};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,i){return e(t,n[i])}));if("object"==typeof t||"object"==typeof n){var i=s(t),o=s(n);return i!==t||o!==n?e(i,o):Object.keys(Object.assign({},t,n)).every((function(i){return e(t[i],n[i])}))}return!1};var c=n(702177);function d(e){return"/"===e.charAt(0)?e:"/"+e}function u(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function h(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function _(e){var t=e||"/",n="",i="",o=t.indexOf("#");-1!==o&&(i=t.substr(o),t=t.substr(0,o));var r=t.indexOf("?");return-1!==r&&(n=t.substr(r),t=t.substr(0,r)),{pathname:t,search:"?"===n?"":n,hash:"#"===i?"":i}}function m(e){var t=e.pathname,n=e.search,i=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(o+="#"===i.charAt(0)?i:"#"+i),o}function f(e,t,n,o){var r;"string"==typeof e?(r=_(e)).state=t:(void 0===(r=(0,i.Z)({},e)).pathname&&(r.pathname=""),r.search?"?"!==r.search.charAt(0)&&(r.search="?"+r.search):r.search="",r.hash?"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash):r.hash="",void 0!==t&&void 0===r.state&&(r.state=t));try{r.pathname=decodeURI(r.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(r.key=n),o?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=a(r.pathname,o.pathname)):r.pathname=o.pathname:r.pathname||(r.pathname="/"),r}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,i,o){if(null!=e){var r="function"==typeof e?e(t,n):e;"string"==typeof r?"function"==typeof i?i(r,o):o(!0):o(!1!==r)}else o(!0)},appendListener:function(e){var n=!0;function i(){n&&e.apply(void 0,arguments)}return t.push(i),function(){n=!1,t=t.filter((function(e){return e!==i}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];t.forEach((function(e){return e.apply(void 0,n)}))}}}var y=!("undefined"==typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}var x="popstate",P="hashchange";function w(){try{return window.history.state||{}}catch(e){return{}}}function S(e){void 0===e&&(e={}),y||(0,c.default)(!1);var t,n=window.history,o=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,r=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,s=a.forceRefresh,l=void 0!==s&&s,u=a.getUserConfirmation,_=void 0===u?b:u,g=a.keyLength,S=void 0===g?6:g,E=e.basename?h(d(e.basename)):"";function A(e){var t=e||{},n=t.key,i=t.state,o=window.location,r=o.pathname+o.search+o.hash;return E&&(r=p(r,E)),f(r,i,n)}function T(){return Math.random().toString(36).substr(2,S)}var I=v();function C(e){(0,i.Z)(F,e),F.length=n.length,I.notifyListeners(F.location,F.action)}function R(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||D(A(e.state))}function k(){D(A(w()))}var O=!1;function D(e){if(O)O=!1,C();else{I.confirmTransitionTo(e,"POP",_,(function(t){t?C({action:"POP",location:e}):function(e){var t=F.location,n=N.indexOf(t.key);-1===n&&(n=0);var i=N.indexOf(e.key);-1===i&&(i=0);var o=n-i;o&&(O=!0,M(o))}(e)}))}}var j=A(w()),N=[j.key];function L(e){return E+m(e)}function M(e){n.go(e)}var z=0;function B(e){1===(z+=e)&&1===e?(window.addEventListener(x,R),r&&window.addEventListener(P,k)):0===z&&(window.removeEventListener(x,R),r&&window.removeEventListener(P,k))}var Z=!1;var F={length:n.length,action:"POP",location:j,createHref:L,push:function(e,t){var i="PUSH",r=f(e,t,T(),F.location);I.confirmTransitionTo(r,i,_,(function(e){if(e){var t=L(r),a=r.key,s=r.state;if(o)if(n.pushState({key:a,state:s},null,t),l)window.location.href=t;else{var c=N.indexOf(F.location.key),d=N.slice(0,c+1);d.push(r.key),N=d,C({action:i,location:r})}else window.location.href=t}}))},replace:function(e,t){var i="REPLACE",r=f(e,t,T(),F.location);I.confirmTransitionTo(r,i,_,(function(e){if(e){var t=L(r),a=r.key,s=r.state;if(o)if(n.replaceState({key:a,state:s},null,t),l)window.location.replace(t);else{var c=N.indexOf(F.location.key);-1!==c&&(N[c]=r.key),C({action:i,location:r})}else window.location.replace(t)}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=I.setPrompt(e);return Z||(B(1),Z=!0),function(){return Z&&(Z=!1,B(-1)),t()}},listen:function(e){var t=I.appendListener(e);return B(1),function(){B(-1),t()}}};return F}var E="hashchange",A={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+u(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:u,decodePath:d},slash:{encodePath:d,decodePath:d}};function T(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function I(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function C(e){window.location.replace(T(window.location.href)+"#"+e)}function R(e){void 0===e&&(e={}),y||(0,c.default)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,r=void 0===o?b:o,a=n.hashType,s=void 0===a?"slash":a,l=e.basename?h(d(e.basename)):"",u=A[s],_=u.encodePath,g=u.decodePath;function x(){var e=g(I());return l&&(e=p(e,l)),f(e)}var P=v();function w(e){(0,i.Z)(Z,e),Z.length=t.length,P.notifyListeners(Z.location,Z.action)}var S=!1,R=null;function k(){var e,t,n=I(),i=_(n);if(n!==i)C(i);else{var o=x(),a=Z.location;if(!S&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(R===m(o))return;R=null,function(e){if(S)S=!1,w();else{var t="POP";P.confirmTransitionTo(e,t,r,(function(n){n?w({action:t,location:e}):function(e){var t=Z.location,n=N.lastIndexOf(m(t));-1===n&&(n=0);var i=N.lastIndexOf(m(e));-1===i&&(i=0);var o=n-i;o&&(S=!0,L(o))}(e)}))}}(o)}}var O=I(),D=_(O);O!==D&&C(D);var j=x(),N=[m(j)];function L(e){t.go(e)}var M=0;function z(e){1===(M+=e)&&1===e?window.addEventListener(E,k):0===M&&window.removeEventListener(E,k)}var B=!1;var Z={length:t.length,action:"POP",location:j,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=T(window.location.href)),n+"#"+_(l+m(e))},push:function(e,t){var n="PUSH",i=f(e,void 0,void 0,Z.location);P.confirmTransitionTo(i,n,r,(function(e){if(e){var t=m(i),o=_(l+t);if(I()!==o){R=t,function(e){window.location.hash=e}(o);var r=N.lastIndexOf(m(Z.location)),a=N.slice(0,r+1);a.push(t),N=a,w({action:n,location:i})}else w()}}))},replace:function(e,t){var n="REPLACE",i=f(e,void 0,void 0,Z.location);P.confirmTransitionTo(i,n,r,(function(e){if(e){var t=m(i),o=_(l+t);I()!==o&&(R=t,C(o));var r=N.indexOf(m(Z.location));-1!==r&&(N[r]=t),w({action:n,location:i})}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&(e=!1);var t=P.setPrompt(e);return B||(z(1),B=!0),function(){return B&&(B=!1,z(-1)),t()}},listen:function(e){var t=P.appendListener(e);return z(1),function(){z(-1),t()}}};return Z}function k(e,t,n){return Math.min(Math.max(e,t),n)}function O(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,r=void 0===o?["/"]:o,a=t.initialIndex,s=void 0===a?0:a,l=t.keyLength,c=void 0===l?6:l,d=v();function u(e){(0,i.Z)(b,e),b.length=b.entries.length,d.notifyListeners(b.location,b.action)}function p(){return Math.random().toString(36).substr(2,c)}var h=k(s,0,r.length-1),_=r.map((function(e){return f(e,void 0,"string"==typeof e?p():e.key||p())})),g=m;function y(e){var t=k(b.index+e,0,b.entries.length-1),i=b.entries[t];d.confirmTransitionTo(i,"POP",n,(function(e){e?u({action:"POP",location:i,index:t}):u()}))}var b={length:_.length,action:"POP",location:_[h],index:h,entries:_,createHref:g,push:function(e,t){var i="PUSH",o=f(e,t,p(),b.location);d.confirmTransitionTo(o,i,n,(function(e){if(e){var t=b.index+1,n=b.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),u({action:i,location:o,index:t,entries:n})}}))},replace:function(e,t){var i="REPLACE",o=f(e,t,p(),b.location);d.confirmTransitionTo(o,i,n,(function(e){e&&(b.entries[b.index]=o,u({action:i,location:o}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=b.index+e;return t>=0&&t<b.entries.length},block:function(e){return void 0===e&&(e=!1),d.setPrompt(e)},listen:function(e){return d.appendListener(e)}};return b}},441143:e=>{e.exports=function(e,t,n,i,o,r,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,o,r,a,s],d=0;(l=new Error(t.replace(/%s/g,(function(){return c[d++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},618552:(e,t,n)=>{var i=n(610852)(n(555639),"DataView");e.exports=i},301989:(e,t,n)=>{var i=n(751789),o=n(780401),r=n(657667),a=n(521327),s=n(281866);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=r,l.prototype.has=a,l.prototype.set=s,e.exports=l},738407:(e,t,n)=>{var i=n(327040),o=n(514125),r=n(882117),a=n(567518),s=n(654705);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=r,l.prototype.has=a,l.prototype.set=s,e.exports=l},357071:(e,t,n)=>{var i=n(610852)(n(555639),"Map");e.exports=i},883369:(e,t,n)=>{var i=n(924785),o=n(611285),r=n(396e3),a=n(349916),s=n(195265);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=r,l.prototype.has=a,l.prototype.set=s,e.exports=l},853818:(e,t,n)=>{var i=n(610852)(n(555639),"Promise");e.exports=i},458525:(e,t,n)=>{var i=n(610852)(n(555639),"Set");e.exports=i},288668:(e,t,n)=>{var i=n(883369),o=n(90619),r=n(572385);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=r,e.exports=a},646384:(e,t,n)=>{var i=n(738407),o=n(737465),r=n(963779),a=n(267599),s=n(744758),l=n(234309);function c(e){var t=this.__data__=new i(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=r,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},562705:(e,t,n)=>{var i=n(555639).Symbol;e.exports=i},611149:(e,t,n)=>{var i=n(555639).Uint8Array;e.exports=i},70577:(e,t,n)=>{var i=n(610852)(n(555639),"WeakMap");e.exports=i},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,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}},234963:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,o=0,r=[];++n<i;){var a=e[n];t(a,n,e)&&(r[o++]=a)}return r}},14636:(e,t,n)=>{var i=n(422545),o=n(135694),r=n(701469),a=n(644144),s=n(565776),l=n(936719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=r(e),d=!n&&o(e),u=!n&&!d&&a(e),p=!n&&!d&&!u&&l(e),h=n||d||u||p,_=h?i(e.length,String):[],m=_.length;for(var f in e)!t&&!c.call(e,f)||h&&("length"==f||u&&("offset"==f||"parent"==f)||p&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||s(f,m))||_.push(f);return _}},829932:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,o=Array(i);++n<i;)o[n]=t(e[n],n,e);return o}},862488:e=>{e.exports=function(e,t){for(var n=-1,i=t.length,o=e.length;++n<i;)e[o+n]=t[n];return e}},282908:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}},286556:(e,t,n)=>{var i=n(789465),o=n(977813);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&i(e,t,n)}},234865:(e,t,n)=>{var i=n(789465),o=n(977813),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];r.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||i(e,t,n)}},218470:(e,t,n)=>{var i=n(977813);e.exports=function(e,t){for(var n=e.length;n--;)if(i(e[n][0],t))return n;return-1}},744037:(e,t,n)=>{var i=n(698363),o=n(3674);e.exports=function(e,t){return e&&i(t,o(t),e)}},163886:(e,t,n)=>{var i=n(698363),o=n(481704);e.exports=function(e,t){return e&&i(t,o(t),e)}},789465:(e,t,n)=>{var i=n(538777);e.exports=function(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},285990:(e,t,n)=>{var i=n(646384),o=n(477412),r=n(234865),a=n(744037),s=n(163886),l=n(364626),c=n(200278),d=n(318805),u=n(201911),p=n(458234),h=n(946904),_=n(664160),m=n(43824),f=n(529148),g=n(738517),v=n(701469),y=n(644144),b=n(356688),x=n(513218),P=n(472928),w=n(3674),S=n(481704),E="[object Arguments]",A="[object Function]",T="[object Object]",I={};I[E]=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[T]=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[A]=I["[object WeakMap]"]=!1,e.exports=function e(t,n,C,R,k,O){var D,j=1&n,N=2&n,L=4&n;if(C&&(D=k?C(t,R,k,O):C(t)),void 0!==D)return D;if(!x(t))return t;var M=v(t);if(M){if(D=m(t),!j)return c(t,D)}else{var z=_(t),B=z==A||"[object GeneratorFunction]"==z;if(y(t))return l(t,j);if(z==T||z==E||B&&!k){if(D=N||B?{}:g(t),!j)return N?u(t,s(D,t)):d(t,a(D,t))}else{if(!I[z])return k?t:{};D=f(t,z,j)}}O||(O=new i);var Z=O.get(t);if(Z)return Z;O.set(t,D),P(t)?t.forEach((function(i){D.add(e(i,n,C,i,t,O))})):b(t)&&t.forEach((function(i,o){D.set(o,e(i,n,C,o,t,O))}));var F=M?void 0:(L?N?h:p:N?S:w)(t);return o(F||t,(function(i,o){F&&(i=t[o=i]),r(D,o,e(i,n,C,o,t,O))})),D}},603118:(e,t,n)=>{var i=n(513218),o=Object.create,r=function(){function e(){}return function(t){if(!i(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=r},228483:(e,t,n)=>{var i=n(225063)();e.exports=i},868866:(e,t,n)=>{var i=n(862488),o=n(701469);e.exports=function(e,t,n){var r=t(e);return o(e)?r:i(r,n(e))}},644239:(e,t,n)=>{var i=n(562705),o=n(789607),r=n(902333),a=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):r(e)}},909454:(e,t,n)=>{var i=n(644239),o=n(637005);e.exports=function(e){return o(e)&&"[object Arguments]"==i(e)}},690939:(e,t,n)=>{var i=n(902492),o=n(637005);e.exports=function e(t,n,r,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:i(t,n,r,a,e,s))}},902492:(e,t,n)=>{var i=n(646384),o=n(967114),r=n(518351),a=n(916096),s=n(664160),l=n(701469),c=n(644144),d=n(936719),u="[object Arguments]",p="[object Array]",h="[object Object]",_=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,f,g){var v=l(e),y=l(t),b=v?p:s(e),x=y?p:s(t),P=(b=b==u?h:b)==h,w=(x=x==u?h:x)==h,S=b==x;if(S&&c(e)){if(!c(t))return!1;v=!0,P=!1}if(S&&!P)return g||(g=new i),v||d(e)?o(e,t,n,m,f,g):r(e,t,b,n,m,f,g);if(!(1&n)){var E=P&&_.call(e,"__wrapped__"),A=w&&_.call(t,"__wrapped__");if(E||A){var T=E?e.value():e,I=A?t.value():t;return g||(g=new i),f(T,I,n,m,g)}}return!!S&&(g||(g=new i),a(e,t,n,m,f,g))}},225588:(e,t,n)=>{var i=n(664160),o=n(637005);e.exports=function(e){return o(e)&&"[object Map]"==i(e)}},28458:(e,t,n)=>{var i=n(623560),o=n(215346),r=n(513218),a=n(680346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,d=l.toString,u=c.hasOwnProperty,p=RegExp("^"+d.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!r(e)||o(e))&&(i(e)?p:s).test(a(e))}},829221:(e,t,n)=>{var i=n(664160),o=n(637005);e.exports=function(e){return o(e)&&"[object Set]"==i(e)}},238749:(e,t,n)=>{var i=n(644239),o=n(541780),r=n(637005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return r(e)&&o(e.length)&&!!a[i(e)]}},400280:(e,t,n)=>{var i=n(225726),o=n(86916),r=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return o(e);var t=[];for(var n in Object(e))r.call(e,n)&&"constructor"!=n&&t.push(n);return t}},710313:(e,t,n)=>{var i=n(513218),o=n(225726),r=n(133498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return r(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},642980:(e,t,n)=>{var i=n(646384),o=n(286556),r=n(228483),a=n(559783),s=n(513218),l=n(481704),c=n(636390);e.exports=function e(t,n,d,u,p){t!==n&&r(n,(function(r,l){if(p||(p=new i),s(r))a(t,n,l,d,e,u,p);else{var h=u?u(c(t,l),r,l+"",t,n,p):void 0;void 0===h&&(h=r),o(t,l,h)}}),l)}},559783:(e,t,n)=>{var i=n(286556),o=n(364626),r=n(477133),a=n(200278),s=n(738517),l=n(135694),c=n(701469),d=n(229246),u=n(644144),p=n(623560),h=n(513218),_=n(968630),m=n(936719),f=n(636390),g=n(959881);e.exports=function(e,t,n,v,y,b,x){var P=f(e,n),w=f(t,n),S=x.get(w);if(S)i(e,n,S);else{var E=b?b(P,w,n+"",e,t,x):void 0,A=void 0===E;if(A){var T=c(w),I=!T&&u(w),C=!T&&!I&&m(w);E=w,T||I||C?c(P)?E=P:d(P)?E=a(P):I?(A=!1,E=o(w,!0)):C?(A=!1,E=r(w,!0)):E=[]:_(w)||l(w)?(E=P,l(P)?E=g(P):h(P)&&!p(P)||(E=s(w))):A=!1}A&&(x.set(w,E),y(E,w,v,b,x),x.delete(w)),i(e,n,E)}}},618674:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},105976:(e,t,n)=>{var i=n(406557),o=n(545357),r=n(430061);e.exports=function(e,t){return r(o(e,t,i),e+"")}},356560:(e,t,n)=>{var i=n(575703),o=n(538777),r=n(406557),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:r;e.exports=a},422545:e=>{e.exports=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}},880531:(e,t,n)=>{var i=n(562705),o=n(829932),r=n(701469),a=n(733448),s=i?i.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(r(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},727561:(e,t,n)=>{var i=n(567990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(o,""):e}},307518:e=>{e.exports=function(e){return function(t){return e(t)}}},274757:e=>{e.exports=function(e,t){return e.has(t)}},554290:(e,t,n)=>{var i=n(406557);e.exports=function(e){return"function"==typeof e?e:i}},274318:(e,t,n)=>{var i=n(611149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}},364626:(e,t,n)=>{e=n.nmd(e);var i=n(555639),o=t&&!t.nodeType&&t,r=o&&e&&!e.nodeType&&e,a=r&&r.exports===o?i.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=s?s(n):new e.constructor(n);return e.copy(i),i}},257157:(e,t,n)=>{var i=n(274318);e.exports=function(e,t){var n=t?i(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 i=n(562705),o=i?i.prototype:void 0,r=o?o.valueOf:void 0;e.exports=function(e){return r?Object(r.call(e)):{}}},477133:(e,t,n)=>{var i=n(274318);e.exports=function(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},200278:e=>{e.exports=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}},698363:(e,t,n)=>{var i=n(234865),o=n(789465);e.exports=function(e,t,n,r){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],d=r?r(n[c],e[c],c,n,e):void 0;void 0===d&&(d=e[c]),a?o(n,c,d):i(n,c,d)}return n}},318805:(e,t,n)=>{var i=n(698363),o=n(799551);e.exports=function(e,t){return i(e,o(e),t)}},201911:(e,t,n)=>{var i=n(698363),o=n(151442);e.exports=function(e,t){return i(e,o(e),t)}},614429:(e,t,n)=>{var i=n(555639)["__core-js_shared__"];e.exports=i},321463:(e,t,n)=>{var i=n(105976),o=n(816612);e.exports=function(e){return i((function(t,n){var i=-1,r=n.length,a=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(r--,a):void 0,s&&o(n[0],n[1],s)&&(a=r<3?void 0:a,r=1),t=Object(t);++i<r;){var l=n[i];l&&e(t,l,i,a)}return t}))}},225063:e=>{e.exports=function(e){return function(t,n,i){for(var o=-1,r=Object(t),a=i(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(r[l],l,r))break}return t}}},538777:(e,t,n)=>{var i=n(610852),o=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},967114:(e,t,n)=>{var i=n(288668),o=n(282908),r=n(274757);e.exports=function(e,t,n,a,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 _=-1,m=!0,f=2&n?new i:void 0;for(l.set(e,t),l.set(t,e);++_<d;){var g=e[_],v=t[_];if(a)var y=c?a(v,g,_,t,e,l):a(g,v,_,e,t,l);if(void 0!==y){if(y)continue;m=!1;break}if(f){if(!o(t,(function(e,t){if(!r(f,t)&&(g===e||s(g,e,n,a,l)))return f.push(t)}))){m=!1;break}}else if(g!==v&&!s(g,v,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},518351:(e,t,n)=>{var i=n(562705),o=n(611149),r=n(977813),a=n(967114),s=n(668776),l=n(321814),c=i?i.prototype:void 0,d=c?c.valueOf:void 0;e.exports=function(e,t,n,i,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 o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+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 _=1&i;if(h||(h=l),e.size!=t.size&&!_)return!1;var m=p.get(e);if(m)return m==t;i|=2,p.set(e,t);var f=a(h(e),h(t),i,c,u,p);return p.delete(e),f;case"[object Symbol]":if(d)return d.call(e)==d.call(t)}return!1}},916096:(e,t,n)=>{var i=n(458234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,r,a,s){var l=1&n,c=i(e),d=c.length;if(d!=i(t).length&&!l)return!1;for(var u=d;u--;){var p=c[u];if(!(l?p in t:o.call(t,p)))return!1}var h=s.get(e),_=s.get(t);if(h&&_)return h==t&&_==e;var m=!0;s.set(e,t),s.set(t,e);for(var f=l;++u<d;){var g=e[p=c[u]],v=t[p];if(r)var y=l?r(v,g,p,t,e,s):r(g,v,p,e,t,s);if(!(void 0===y?g===v||a(g,v,n,r,s):y)){m=!1;break}f||(f="constructor"==p)}if(m&&!f){var b=e.constructor,x=t.constructor;b==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(m=!1)}return s.delete(e),s.delete(t),m}},889464:(e,t,n)=>{var i=n(618674)({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});e.exports=i},431957:(e,t,n)=>{var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=i},458234:(e,t,n)=>{var i=n(868866),o=n(799551),r=n(3674);e.exports=function(e){return i(e,r,o)}},946904:(e,t,n)=>{var i=n(868866),o=n(151442),r=n(481704);e.exports=function(e){return i(e,r,o)}},45050:(e,t,n)=>{var i=n(37019);e.exports=function(e,t){var n=e.__data__;return i(t)?n["string"==typeof t?"string":"hash"]:n.map}},610852:(e,t,n)=>{var i=n(28458),o=n(647801);e.exports=function(e,t){var n=o(e,t);return i(n)?n:void 0}},385924:(e,t,n)=>{var i=n(205569)(Object.getPrototypeOf,Object);e.exports=i},789607:(e,t,n)=>{var i=n(562705),o=Object.prototype,r=o.hasOwnProperty,a=o.toString,s=i?i.toStringTag:void 0;e.exports=function(e){var t=r.call(e,s),n=e[s];try{e[s]=void 0;var i=!0}catch(l){}var o=a.call(e);return i&&(t?e[s]=n:delete e[s]),o}},799551:(e,t,n)=>{var i=n(234963),o=n(770479),r=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),i(a(e),(function(t){return r.call(e,t)})))}:o;e.exports=s},151442:(e,t,n)=>{var i=n(862488),o=n(385924),r=n(799551),a=n(770479),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)i(t,r(e)),e=o(e);return t}:a;e.exports=s},664160:(e,t,n)=>{var i=n(618552),o=n(357071),r=n(853818),a=n(458525),s=n(70577),l=n(644239),c=n(680346),d="[object Map]",u="[object Promise]",p="[object Set]",h="[object WeakMap]",_="[object DataView]",m=c(i),f=c(o),g=c(r),v=c(a),y=c(s),b=l;(i&&b(new i(new ArrayBuffer(1)))!=_||o&&b(new o)!=d||r&&b(r.resolve())!=u||a&&b(new a)!=p||s&&b(new s)!=h)&&(b=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,i=n?c(n):"";if(i)switch(i){case m:return _;case f:return d;case g:return u;case v:return p;case y:return h}return t}),e.exports=b},647801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},751789:(e,t,n)=>{var i=n(894536);e.exports=function(){this.__data__=i?i(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 i=n(894536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},521327:(e,t,n)=>{var i=n(894536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:o.call(t,e)}},281866:(e,t,n)=>{var i=n(894536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},43824:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,i=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(i.index=e.index,i.input=e.input),i}},529148:(e,t,n)=>{var i=n(274318),o=n(257157),r=n(593147),a=n(540419),s=n(477133);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return i(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(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 r(e);case"[object Set]":return new l;case"[object Symbol]":return a(e)}}},738517:(e,t,n)=>{var i=n(603118),o=n(385924),r=n(225726);e.exports=function(e){return"function"!=typeof e.constructor||r(e)?{}:i(o(e))}},565776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var i=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<n}},816612:(e,t,n)=>{var i=n(977813),o=n(498612),r=n(565776),a=n(513218);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&r(t,n.length):"string"==s&&t in n)&&i(n[t],e)}},37019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},215346:(e,t,n)=>{var i,o=n(614429),r=(i=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!r&&r in e}},225726:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},327040:e=>{e.exports=function(){this.__data__=[],this.size=0}},514125:(e,t,n)=>{var i=n(218470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},882117:(e,t,n)=>{var i=n(218470);e.exports=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}},567518:(e,t,n)=>{var i=n(218470);e.exports=function(e){return i(this.__data__,e)>-1}},654705:(e,t,n)=>{var i=n(218470);e.exports=function(e,t){var n=this.__data__,o=i(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},924785:(e,t,n)=>{var i=n(301989),o=n(738407),r=n(357071);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(r||o),string:new i}}},611285:(e,t,n)=>{var i=n(45050);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},396e3:(e,t,n)=>{var i=n(45050);e.exports=function(e){return i(this,e).get(e)}},349916:(e,t,n)=>{var i=n(45050);e.exports=function(e){return i(this,e).has(e)}},195265:(e,t,n)=>{var i=n(45050);e.exports=function(e,t){var n=i(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},668776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}},894536:(e,t,n)=>{var i=n(610852)(Object,"create");e.exports=i},86916:(e,t,n)=>{var i=n(205569)(Object.keys,Object);e.exports=i},133498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},531167:(e,t,n)=>{e=n.nmd(e);var i=n(431957),o=t&&!t.nodeType&&t,r=o&&e&&!e.nodeType&&e,a=r&&r.exports===o&&i.process,s=function(){try{var e=r&&r.require&&r.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},902333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},205569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},545357:(e,t,n)=>{var i=n(896874),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,s=o(r.length-t,0),l=Array(s);++a<s;)l[a]=r[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=r[a];return c[t]=n(l),i(e,this,c)}}},555639:(e,t,n)=>{var i=n(431957),o="object"==typeof self&&self&&self.Object===Object&&self,r=i||o||Function("return this")();e.exports=r},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 i=n(356560),o=n(521275)(i);e.exports=o},521275:e=>{var t=Date.now;e.exports=function(e){var n=0,i=0;return function(){var o=t(),r=16-(o-i);if(i=o,r>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},737465:(e,t,n)=>{var i=n(738407);e.exports=function(){this.__data__=new i,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 i=n(738407),o=n(357071),r=n(883369);e.exports=function(e,t){var n=this.__data__;if(n instanceof i){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new r(a)}return n.set(e,t),this.size=n.size,this}},680346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},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 i=n(285990);e.exports=function(e){return i(e,5)}},575703:e=>{e.exports=function(e){return function(){return e}}},23279:(e,t,n)=>{var i=n(513218),o=n(707771),r=n(14841),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,d,u,p,h,_=0,m=!1,f=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=l,i=c;return l=c=void 0,_=t,u=e.apply(i,n)}function y(e){return _=e,p=setTimeout(x,t),m?v(e):u}function b(e){var n=e-h;return void 0===h||n>=t||n<0||f&&e-_>=d}function x(){var e=o();if(b(e))return P(e);p=setTimeout(x,function(e){var n=t-(e-h);return f?s(n,d-(e-_)):n}(e))}function P(e){return p=void 0,g&&l?v(e):(l=c=void 0,u)}function w(){var e=o(),n=b(e);if(l=arguments,c=this,h=e,n){if(void 0===p)return y(h);if(f)return clearTimeout(p),p=setTimeout(x,t),v(h)}return void 0===p&&(p=setTimeout(x,t)),u}return t=r(t)||0,i(n)&&(m=!!n.leading,d=(f="maxWait"in n)?a(r(n.maxWait)||0,t):d,g="trailing"in n?!!n.trailing:g),w.cancel=function(){void 0!==p&&clearTimeout(p),_=0,l=h=c=p=void 0},w.flush=function(){return void 0===p?u:P(o())},w}},977813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},607187:(e,t,n)=>{var i=n(889464),o=n(479833),r=/[&<>"']/g,a=RegExp(r.source);e.exports=function(e){return(e=o(e))&&a.test(e)?e.replace(r,i):e}},406557:e=>{e.exports=function(e){return e}},135694:(e,t,n)=>{var i=n(909454),o=n(637005),r=Object.prototype,a=r.hasOwnProperty,s=r.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},701469:e=>{var t=Array.isArray;e.exports=t},498612:(e,t,n)=>{var i=n(623560),o=n(541780);e.exports=function(e){return null!=e&&o(e.length)&&!i(e)}},229246:(e,t,n)=>{var i=n(498612),o=n(637005);e.exports=function(e){return o(e)&&i(e)}},644144:(e,t,n)=>{e=n.nmd(e);var i=n(555639),o=n(595062),r=t&&!t.nodeType&&t,a=r&&e&&!e.nodeType&&e,s=a&&a.exports===r?i.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},441609:(e,t,n)=>{var i=n(400280),o=n(664160),r=n(135694),a=n(701469),s=n(498612),l=n(644144),c=n(225726),d=n(936719),u=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||d(e)||r(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!i(e).length;for(var n in e)if(u.call(e,n))return!1;return!0}},618446:(e,t,n)=>{var i=n(690939);e.exports=function(e,t){return i(e,t)}},623560:(e,t,n)=>{var i=n(644239),o=n(513218);e.exports=function(e){if(!o(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},541780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},356688:(e,t,n)=>{var i=n(225588),o=n(307518),r=n(531167),a=r&&r.isMap,s=a?o(a):i;e.exports=s},513218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},637005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},968630:(e,t,n)=>{var i=n(644239),o=n(385924),r=n(637005),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,d=l.call(Object);e.exports=function(e){if(!r(e)||"[object Object]"!=i(e))return!1;var t=o(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 i=n(829221),o=n(307518),r=n(531167),a=r&&r.isSet,s=a?o(a):i;e.exports=s},733448:(e,t,n)=>{var i=n(644239),o=n(637005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==i(e)}},936719:(e,t,n)=>{var i=n(238749),o=n(307518),r=n(531167),a=r&&r.isTypedArray,s=a?o(a):i;e.exports=s},3674:(e,t,n)=>{var i=n(14636),o=n(400280),r=n(498612);e.exports=function(e){return r(e)?i(e):o(e)}},481704:(e,t,n)=>{var i=n(14636),o=n(710313),r=n(498612);e.exports=function(e){return r(e)?i(e,!0):o(e)}},682492:(e,t,n)=>{var i=n(642980),o=n(321463)((function(e,t,n){i(e,t,n)}));e.exports=o},707771:(e,t,n)=>{var i=n(555639);e.exports=function(){return i.Date.now()}},770479:e=>{e.exports=function(){return[]}},595062:e=>{e.exports=function(){return!1}},498913:(e,t,n)=>{var i=n(422545),o=n(554290),r=n(640554),a=4294967295,s=Math.min;e.exports=function(e,t){if((e=r(e))<1||e>9007199254740991)return[];var n=a,l=s(e,a);t=o(t),e-=a;for(var c=i(l,t);++n<e;)t(n);return c}},418601:(e,t,n)=>{var i=n(14841),o=1/0;e.exports=function(e){return e?(e=i(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},640554:(e,t,n)=>{var i=n(418601);e.exports=function(e){var t=i(e),n=t%1;return t==t?n?t-n:t:0}},14841:(e,t,n)=>{var i=n(727561),o=n(513218),r=n(733448),a=/^[-+]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(r(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},959881:(e,t,n)=>{var i=n(698363),o=n(481704);e.exports=function(e){return i(e,o(e))}},479833:(e,t,n)=>{var i=n(880531);e.exports=function(e){return null==e?"":i(e)}},782677:(e,t,n)=>{function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function a(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,i){var o=""+i;return t.has(o)?t.set(o,n(t.get(o),e[o])):t}),t)}n.d(t,{Fv:()=>x,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 i=n,o=i.idAttribute,a=void 0===o?"id":o,l=i.mergeStrategy,c=void 0===l?function(e,t){return r({},e,t)}:l,d=i.processStrategy,u=void 0===d?function(e){return r({},e)}:d,p=i.fallbackStrategy,h=void 0===p?function(e,t){}:p;this._key=e,this._getId="function"==typeof a?a:function(e){return function(t){return s(t)?t.get(e):t[e]}}(a),this._idAttribute=a,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 i,o=e[n];return r({},t,((i={})[n]=o,i))}),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,i,o,r){var a=this,s=this.getId(e,t,n),l=this.key;if(l in r||(r[l]={}),s in r[l]||(r[l][s]=[]),r[l][s].some((function(t){return t===e})))return s;r[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=a.schema[t],s="function"==typeof n?n(e):n;c[t]=i(c[t],c,t,s,o,r)}})),o(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(i){if(e.hasOwnProperty(i)){var o=n.schema[i];e[i]=t(e[i],o)}})),e)},o(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 i=this.getSchemaAttribute(e,t,n);return this.schema[i]},t.normalizeValue=function(e,t,n,i,o,r){var a=this.inferSchema(e,t,n);if(!a)return e;var s=i(e,t,n,a,o,r);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},o(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}a(t,e);var n=t.prototype;return n.normalize=function(e,t,n,i,o,r){return this.normalizeValue(e,t,n,i,o,r)},n.denormalize=function(e,t){return this.denormalizeValue(e,t)},t}(d),p=function(e){function t(){return e.apply(this,arguments)||this}a(t,e);var n=t.prototype;return n.normalize=function(e,t,n,i,o,a){var s=this;return Object.keys(e).reduce((function(t,n,l){var c,d=e[n];return null!=d?r({},t,((c={})[n]=s.normalizeValue(d,e,n,i,o,a),c)):t}),{})},n.denormalize=function(e,t){var n=this;return Object.keys(e).reduce((function(i,o){var a,s=e[o];return r({},i,((a={})[o]=n.denormalizeValue(s,t),a))}),{})},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]},_=function(e){return Array.isArray(e)?e:Object.keys(e).map((function(t){return e[t]}))},m=function(e,t,n,i,o,r,a){return e=h(e),_(t).map((function(t,s){return o(t,n,i,e,r,a)}))},f=function(e){function t(){return e.apply(this,arguments)||this}a(t,e);var n=t.prototype;return n.normalize=function(e,t,n,i,o,r){var a=this;return _(e).map((function(e,s){return a.normalizeValue(e,t,n,i,o,r)})).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,i,o,a,s){var l=r({},t);return Object.keys(e).forEach((function(n){var i=e[n],r="function"==typeof i?i(t):i,c=o(t[n],t,n,r,a,s);null==c?delete l[n]:l[n]=c})),l},v=function(e,t,n){if(s(t))return l(e,t,n);var i=r({},t);return Object.keys(e).forEach((function(t){null!=i[t]&&(i[t]=n(i[t],e[t]))})),i},y=function e(t,n,i,o,r,a){return"object"==typeof t&&t?"object"!=typeof o||o.normalize&&"function"==typeof o.normalize?o.normalize(t,n,i,e,r,a):(Array.isArray(o)?m:g)(o,t,n,i,e,r,a):t},b={Array:f,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 i,o=e[n];return r({},t,((i={})[n]=o,i))}),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 v.apply(void 0,[this.schema].concat(t))},e}(),Union:u,Values:p},x=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={},i=function(e){return function(t,n,i,o,r){var a=t.key,s=t.getId(i,o,r);a in e||(e[a]={});var l=e[a][s];e[a][s]=l?t.merge(l,n):n}}(n);return{entities:n,result:y(e,e,null,t,i,{})}}},892703:(e,t,n)=>{var i=n(150414);function o(){}e.exports=function(){function e(e,t,n,o,r,a){if(a!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,n.PropTypes=n,n}},45697:(e,t,n)=>{e.exports=n(892703)()},150414:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},762587:e=>{function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,i,o){n=n||"&",i=i||"=";var r={};if("string"!=typeof e||0===e.length)return r;var a=/\+/g;e=e.split(n);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;c<l;++c){var d,u,p,h,_=e[c].replace(a,"%20"),m=_.indexOf(i);m>=0?(d=_.substr(0,m),u=_.substr(m+1)):(d=_,u=""),p=decodeURIComponent(d),h=decodeURIComponent(u),t(r,p)?Array.isArray(r[p])?r[p].push(h):r[p]=[r[p],h]:r[p]=h}return r}},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,i,o){return n=n||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(o){var r=encodeURIComponent(t(o))+i;return Array.isArray(e[o])?e[o].map((function(e){return r+encodeURIComponent(t(e))})).join(n):r+encodeURIComponent(t(e[o]))})).join(n):o?encodeURIComponent(t(o))+i+encodeURIComponent(t(e)):""}},817673:(e,t,n)=>{t.decode=t.parse=n(762587),t.encode=t.stringify=n(712361)},276775:(e,t,n)=>{n.r(t),n.d(t,{MemoryRouter:()=>w,Prompt:()=>E,Redirect:()=>C,Route:()=>D,Router:()=>P,StaticRouter:()=>B,Switch:()=>Z,__HistoryContext:()=>b,__RouterContext:()=>x,generatePath:()=>I,matchPath:()=>O,useHistory:()=>G,useLocation:()=>H,useParams:()=>V,useRouteMatch:()=>W,withRouter:()=>F});var i=n(875068),o=n(667294),r=n(45697),a=n.n(r),s=n(942358),l=1073741823,c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};function d(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,i){e=n,t.forEach((function(t){return t(e,i)}))}}}const u=o.createContext||function(e,t){var n,r,s="__create-react-context-"+function(){var e="__global_unique_id__";return c[e]=(c[e]||0)+1}()+"__",u=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=d(t.props.value),t}(0,i.Z)(n,e);var o=n.prototype;return o.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},o.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,i=this.props.value,o=e.value;((r=i)===(a=o)?0!==r||1/r==1/a:r!=r&&a!=a)?n=0:(n="function"==typeof t?t(i,o):l,0!==(n|=0)&&this.emitter.set(e.value,n))}var r,a},o.render=function(){return this.props.children},n}(o.Component);u.childContextTypes=((n={})[s]=a().object.isRequired,n);var p=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,i.Z)(n,t);var o=n.prototype;return o.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?l:t},o.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?l:e},o.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},o.getValue=function(){return this.context[s]?this.context[s].get():e},o.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(o.Component);return p.contextTypes=((r={})[s]=a().object,r),{Provider:u,Consumer:p}};var p=n(702177),h=n(487462),_=n(539658),m=n.n(_),f=(n(659864),n(263366)),g=n(108679),v=n.n(g),y=function(e){var t=u();return t.displayName=e,t},b=y("Router-History"),x=y("Router"),P=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}(0,i.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return o.createElement(x.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.createElement(b.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.Component);var w=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(t=e.call.apply(e,[this].concat(i))||this).history=(0,s.createMemoryHistory)(t.props),t}return(0,i.Z)(t,e),t.prototype.render=function(){return o.createElement(P,{history:this.history,children:this.props.children})},t}(o.Component);var S=function(e){function t(){return e.apply(this,arguments)||this}(0,i.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(o.Component);function E(e){var t=e.message,n=e.when,i=void 0===n||n;return o.createElement(x.Consumer,null,(function(e){if(e||(0,p.default)(!1),!i||e.staticContext)return null;var n=e.history.block;return o.createElement(S,{onMount:function(e){e.release=n(t)},onUpdate:function(e,i){i.message!==t&&(e.release(),e.release=n(t))},onUnmount:function(e){e.release()},message:t})}))}var A={},T=0;function I(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(A[e])return A[e];var t=m().compile(e);return T<1e4&&(A[e]=t,T++),t}(e)(t,{pretty:!0})}function C(e){var t=e.computedMatch,n=e.to,i=e.push,r=void 0!==i&&i;return o.createElement(x.Consumer,null,(function(e){e||(0,p.default)(!1);var i=e.history,a=e.staticContext,l=r?i.push:i.replace,c=(0,s.createLocation)(t?"string"==typeof n?I(n,t.params):(0,h.Z)({},n,{pathname:I(n.pathname,t.params)}):n);return a?(l(c),null):o.createElement(S,{onMount:function(){l(c)},onUpdate:function(e,t){var n=(0,s.createLocation)(t.to);(0,s.locationsAreEqual)(n,(0,h.Z)({},c,{key:n.key}))||l(c)},to:n})}))}var R={},k=0;function O(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,i=n.path,o=n.exact,r=void 0!==o&&o,a=n.strict,s=void 0!==a&&a,l=n.sensitive,c=void 0!==l&&l;return[].concat(i).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var i=function(e,t){var n=""+t.end+t.strict+t.sensitive,i=R[n]||(R[n]={});if(i[e])return i[e];var o=[],r={regexp:m()(e,o,t),keys:o};return k<1e4&&(i[e]=r,k++),r}(n,{end:r,strict:s,sensitive:c}),o=i.regexp,a=i.keys,l=o.exec(e);if(!l)return null;var d=l[0],u=l.slice(1),p=e===d;return r&&!p?null:{path:n,url:"/"===n&&""===d?"/":d,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=u[n],e}),{})}}),null)}var D=function(e){function t(){return e.apply(this,arguments)||this}return(0,i.Z)(t,e),t.prototype.render=function(){var e=this;return o.createElement(x.Consumer,null,(function(t){t||(0,p.default)(!1);var n=e.props.location||t.location,i=e.props.computedMatch?e.props.computedMatch:e.props.path?O(n.pathname,e.props):t.match,r=(0,h.Z)({},t,{location:n,match:i}),a=e.props,s=a.children,l=a.component,c=a.render;return Array.isArray(s)&&function(e){return 0===o.Children.count(e)}(s)&&(s=null),o.createElement(x.Provider,{value:r},r.match?s?"function"==typeof s?s(r):s:l?o.createElement(l,r):c?c(r):null:"function"==typeof s?s(r):null)}))},t}(o.Component);function j(e){return"/"===e.charAt(0)?e:"/"+e}function N(e,t){if(!e)return t;var n=j(e);return 0!==t.pathname.indexOf(n)?t:(0,h.Z)({},t,{pathname:t.pathname.substr(n.length)})}function L(e){return"string"==typeof e?e:(0,s.createPath)(e)}function M(e){return function(){(0,p.default)(!1)}}function z(){}var B=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(t=e.call.apply(e,[this].concat(i))||this).handlePush=function(e){return t.navigateTo(e,"PUSH")},t.handleReplace=function(e){return t.navigateTo(e,"REPLACE")},t.handleListen=function(){return z},t.handleBlock=function(){return z},t}(0,i.Z)(t,e);var n=t.prototype;return n.navigateTo=function(e,t){var n=this.props,i=n.basename,o=void 0===i?"":i,r=n.context,a=void 0===r?{}:r;a.action=t,a.location=function(e,t){return e?(0,h.Z)({},t,{pathname:j(e)+t.pathname}):t}(o,(0,s.createLocation)(e)),a.url=L(a.location)},n.render=function(){var e=this.props,t=e.basename,n=void 0===t?"":t,i=e.context,r=void 0===i?{}:i,a=e.location,l=void 0===a?"/":a,c=(0,f.Z)(e,["basename","context","location"]),d={createHref:function(e){return j(n+L(e))},action:"POP",location:N(n,(0,s.createLocation)(l)),push:this.handlePush,replace:this.handleReplace,go:M(),goBack:M(),goForward:M(),listen:this.handleListen,block:this.handleBlock};return o.createElement(P,(0,h.Z)({},c,{history:d,staticContext:r}))},t}(o.Component);var Z=function(e){function t(){return e.apply(this,arguments)||this}return(0,i.Z)(t,e),t.prototype.render=function(){var e=this;return o.createElement(x.Consumer,null,(function(t){t||(0,p.default)(!1);var n,i,r=e.props.location||t.location;return o.Children.forEach(e.props.children,(function(e){if(null==i&&o.isValidElement(e)){n=e;var a=e.props.path||e.props.from;i=a?O(r.pathname,(0,h.Z)({},e.props,{path:a})):t.match}})),i?o.cloneElement(n,{location:r,computedMatch:i}):null}))},t}(o.Component);function F(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,i=(0,f.Z)(t,["wrappedComponentRef"]);return o.createElement(x.Consumer,null,(function(t){return t||(0,p.default)(!1),o.createElement(e,(0,h.Z)({},i,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,v()(n,e)}var U=o.useContext;function G(){return U(b)}function H(){return U(x).location}function V(){var e=U(x).match;return e?e.params:{}}function W(e){var t=H(),n=U(x).match;return e?O(t.pathname,e):n}},776585:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},539658:(e,t,n)=>{var i=n(776585);e.exports=h,e.exports.parse=r,e.exports.compile=function(e,t){return s(r(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function r(e,t){for(var n,i=[],r=0,a=0,s="",d=t&&t.delimiter||"/";null!=(n=o.exec(e));){var u=n[0],p=n[1],h=n.index;if(s+=e.slice(a,h),a=h+u.length,p)s+=p[1];else{var _=e[a],m=n[2],f=n[3],g=n[4],v=n[5],y=n[6],b=n[7];s&&(i.push(s),s="");var x=null!=m&&null!=_&&_!==m,P="+"===y||"*"===y,w="?"===y||"*"===y,S=n[2]||d,E=g||v;i.push({name:f||r++,prefix:m||"",delimiter:S,optional:w,repeat:P,partial:x,asterisk:!!b,pattern:E?c(E):b?".*":"[^"+l(S)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&i.push(s),i}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",u(t)));return function(t,o){for(var r="",s=t||{},l=(o||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var d=e[c];if("string"!=typeof d){var u,p=s[d.name];if(null==p){if(d.optional){d.partial&&(r+=d.prefix);continue}throw new TypeError('Expected "'+d.name+'" to be defined')}if(i(p)){if(!d.repeat)throw new TypeError('Expected "'+d.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(d.optional)continue;throw new TypeError('Expected "'+d.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(u=l(p[h]),!n[c].test(u))throw new TypeError('Expected all "'+d.name+'" to match "'+d.pattern+'", but received `'+JSON.stringify(u)+"`");r+=(0===h?d.prefix:d.delimiter)+u}}else{if(u=d.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(p),!n[c].test(u))throw new TypeError('Expected "'+d.name+'" to match "'+d.pattern+'", but received "'+u+'"');r+=d.prefix+u}}else r+=d}return r}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function d(e,t){return e.keys=t,e}function u(e){return e&&e.sensitive?"":"i"}function p(e,t,n){i(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,r=!1!==n.end,a="",s=0;s<e.length;s++){var c=e[s];if("string"==typeof c)a+=l(c);else{var p=l(c.prefix),h="(?:"+c.pattern+")";t.push(c),c.repeat&&(h+="(?:"+p+h+")*"),a+=h=c.optional?c.partial?p+"("+h+")?":"(?:"+p+"("+h+"))?":p+"("+h+")"}}var _=l(n.delimiter||"/"),m=a.slice(-_.length)===_;return o||(a=(m?a.slice(0,-_.length):a)+"(?:"+_+"(?=$))?"),a+=r?"$":o&&m?"":"(?="+_+"|$)",d(new RegExp("^"+a,u(n)),t)}function h(e,t,n){return i(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)t.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return d(e,t)}(e,t):i(e)?function(e,t,n){for(var i=[],o=0;o<e.length;o++)i.push(h(e[o],t,n).source);return d(new RegExp("(?:"+i.join("|")+")",u(n)),t)}(e,t,n):function(e,t,n){return p(r(e,n),t,n)}(e,t,n)}},560053:(e,t)=>{function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,o=e[i];if(!(0<r(o,t)))break e;e[i]=t,e[n]=o,n=i}}function i(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,o=e.length,a=o>>>1;i<a;){var s=2*(i+1)-1,l=e[s],c=s+1,d=e[c];if(0>r(l,n))c<o&&0>r(d,l)?(e[i]=d,e[c]=n,i=c):(e[i]=l,e[s]=n,i=s);else{if(!(c<o&&0>r(d,n)))break e;e[i]=d,e[c]=n,i=c}}}return t}function r(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],d=[],u=1,p=null,h=3,_=!1,m=!1,f=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var t=i(d);null!==t;){if(null===t.callback)o(d);else{if(!(t.startTime<=e))break;o(d),t.sortIndex=t.expirationTime,n(c,t)}t=i(d)}}function x(e){if(f=!1,b(e),!m)if(null!==i(c))m=!0,D(P);else{var t=i(d);null!==t&&j(x,t.startTime-e)}}function P(e,n){m=!1,f&&(f=!1,v(A),A=-1),_=!0;var r=h;try{for(b(n),p=i(c);null!==p&&(!(p.expirationTime>n)||e&&!C());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var s=a(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?p.callback=s:p===i(c)&&o(c),b(n)}else o(c);p=i(c)}if(null!==p)var l=!0;else{var u=i(d);null!==u&&j(x,u.startTime-n),l=!1}return l}finally{p=null,h=r,_=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,S=!1,E=null,A=-1,T=5,I=-1;function C(){return!(t.unstable_now()-I<T)}function R(){if(null!==E){var e=t.unstable_now();I=e;var n=!0;try{n=E(!0,e)}finally{n?w():(S=!1,E=null)}}else S=!1}if("function"==typeof y)w=function(){y(R)};else if("undefined"!=typeof MessageChannel){var k=new MessageChannel,O=k.port2;k.port1.onmessage=R,w=function(){O.postMessage(null)}}else w=function(){g(R,0)};function D(e){E=e,S||(S=!0,w())}function j(e,n){A=g((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||_||(m=!0,D(P))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return i(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,o,r){var a=t.unstable_now();switch("object"==typeof r&&null!==r?r="number"==typeof(r=r.delay)&&0<r?a+r:a:r=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:u++,callback:o,priorityLevel:e,startTime:r,expirationTime:s=r+s,sortIndex:-1},r>a?(e.sortIndex=r,n(d,e),null===i(c)&&e===i(d)&&(f?(v(A),A=-1):f=!0,j(x,r-a))):(e.sortIndex=s,n(c,e),m||_||(m=!0,D(P))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},363840:(e,t,n)=>{e.exports=n(560053)},702177:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});var i="Invariant failed";function o(e,t){if(!e)throw new Error(i)}},42238:function(e,t,n){var i;!function(o,r){var a="function",s="undefined",l="object",c="string",d="model",u="name",p="type",h="vendor",_="version",m="architecture",f="console",g="mobile",v="tablet",y="smarttv",b="wearable",x="embedded",P={extend:function(e,t){var n={};for(var i in e)t[i]&&t[i].length%2==0?n[i]=t[i].concat(e[i]):n[i]=e[i];return n},has:function(e,t){return typeof e===c&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return typeof e===c?e.replace(/[^\d\.]/g,"").split(".")[0]:r},trim:function(e,t){return e=e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),typeof t===s?e:e.substring(0,255)}},w={rgx:function(e,t){for(var n,i,o,s,c,d,u=0;u<t.length&&!c;){var p=t[u],h=t[u+1];for(n=i=0;n<p.length&&!c;)if(c=p[n++].exec(e))for(o=0;o<h.length;o++)d=c[++i],typeof(s=h[o])===l&&s.length>0?2==s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,d):this[s[0]]=s[1]:3==s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=d?d.replace(s[1],s[2]):r:this[s[0]]=d?s[1].call(this,d,s[2]):r:4==s.length&&(this[s[0]]=d?s[3].call(this,d.replace(s[1],s[2])):r):this[s]=d||r;u+=2}},str:function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var i=0;i<t[n].length;i++)if(P.has(t[n][i],e))return"?"===n?r:n}else if(P.has(t[n],e))return"?"===n?r:n;return e}},S={browser:{oldSafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}},oldEdge:{version:{.1:"12.",21:"13.",31:"14.",39:"15.",41:"16.",42:"17.",44:"18."}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},E={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[_,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[_,[u,"Edge"]],[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]{3,6})\b.+version\/([\w\.-]+)/i,/(opera)(?:.+version\/|[\/\s]+)([\w\.]+)/i],[u,_],[/opios[\/\s]+([\w\.]+)/i],[_,[u,"Opera Mini"]],[/\sopr\/([\w\.]+)/i],[_,[u,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(ba?idubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i,/(rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([\w\.]+)/i,/(weibo)__([\d\.]+)/i],[u,_],[/(?:[\s\/]uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[_,[u,"UCBrowser"]],[/(?:windowswechat)?\sqbcore\/([\w\.]+)\b.*(?:windowswechat)?/i],[_,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[_,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[_,[u,"Konqueror"]],[/trident.+rv[:\s]([\w\.]{1,9})\b.+like\sgecko/i],[_,[u,"IE"]],[/yabrowser\/([\w\.]+)/i],[_,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure Browser"],_],[/focus\/([\w\.]+)/i],[_,[u,"Firefox Focus"]],[/opt\/([\w\.]+)/i],[_,[u,"Opera Touch"]],[/coc_coc_browser\/([\w\.]+)/i],[_,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[_,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[_,[u,"Opera Coast"]],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[_,[u,"MIUI Browser"]],[/fxios\/([\w\.-]+)/i],[_,[u,"Firefox"]],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[u,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 Browser"],_],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],_],[/\s(electron)\/([\w\.]+)\ssafari/i,/(tesla)(?:\sqtcarbrowser|\/(20[12]\d\.[\w\.-]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/\s]?([\w\.]+)/i],[u,_],[/(MetaSr)[\/\s]?([\w\.]+)/i,/(LBBROWSER)/i],[u],[/;fbav\/([\w\.]+);/i],[_,[u,"Facebook"]],[/FBAN\/FBIOS|FB_IAB\/FB4A/i],[[u,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/\s]([\w\.-]+)/i],[u,_],[/\bgsa\/([\w\.]+)\s.*safari\//i],[_,[u,"GSA"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[_,[u,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[u,"Chrome WebView"],_],[/droid.+\sversion\/([\w\.]+)\b.+(?:mobile\ssafari|safari)/i],[_,[u,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[u,_],[/version\/([\w\.]+)\s.*mobile\/\w+\s(safari)/i],[_,[u,"Mobile Safari"]],[/version\/([\w\.]+)\s.*(mobile\s?safari|safari)/i],[_,u],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[u,[_,w.str,S.browser.oldSafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[u,_],[/(navigator|netscape)\/([\w\.-]+)/i],[[u,"Netscape"],_],[/ile\svr;\srv:([\w\.]+)\).+firefox/i],[_,[u,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(firefox)\/([\w\.]+)\s[\w\s\-]+\/[\w\.]+$/i,/(mozilla)\/([\w\.]+)\s.+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[u,_]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,P.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|armv?8e?l?)\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows\s(ce|mobile);\sppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[m,/ower/,"",P.lowerize]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?:64|(?=v(?:[1-7]|[5-7]1)l?|;|eabi))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,P.lowerize]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus\s10)/i],[d,[h,"Samsung"],[p,v]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy\snexus)/i,/\ssamsung[\s-]([\w-]+)/i,/sec-(sgh\w+)/i],[d,[h,"Samsung"],[p,g]],[/\((ip(?:hone|od)[\s\w]*);/i],[d,[h,"Apple"],[p,g]],[/\((ipad);[\w\s\),;-]+apple/i,/applecoremedia\/[\w\.]+\s\((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[h,"Apple"],[p,v]],[/\b((?:agr|ags[23]|bah2?|sht?)-a?[lw]\d{2})/i],[d,[h,"Huawei"],[p,v]],[/d\/huawei([\w\s-]+)[;\)]/i,/\b(nexus\s6p|vog-[at]?l\d\d|ane-[at]?l[x\d]\d|eml-a?l\d\da?|lya-[at]?l\d[\dc]|clt-a?l\d\di?|ele-l\d\d)/i,/\b(\w{2,4}-[atu][ln][01259][019])[;\)\s]/i],[d,[h,"Huawei"],[p,g]],[/\b(poco[\s\w]+)(?:\sbuild|\))/i,/\b;\s(\w+)\sbuild\/hm\1/i,/\b(hm[\s\-_]?note?[\s_]?(?:\d\w)?)\sbuild/i,/\b(redmi[\s\-_]?(?:note|k)?[\w\s_]+)(?:\sbuild|\))/i,/\b(mi[\s\-_]?(?:a\d|one|one[\s_]plus|note lte)?[\s_]?(?:\d?\w?)[\s_]?(?:plus)?)\sbuild/i],[[d,/_/g," "],[h,"Xiaomi"],[p,g]],[/\b(mi[\s\-_]?(?:pad)(?:[\w\s_]+))(?:\sbuild|\))/i],[[d,/_/g," "],[h,"Xiaomi"],[p,v]],[/;\s(\w+)\sbuild.+\soppo/i,/\s(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007)\b/i],[d,[h,"OPPO"],[p,g]],[/\svivo\s(\w+)(?:\sbuild|\))/i,/\s(v[12]\d{3}\w?[at])(?:\sbuild|;)/i],[d,[h,"Vivo"],[p,g]],[/\s(rmx[12]\d{3})(?:\sbuild|;)/i],[d,[h,"Realme"],[p,g]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)\b[\w\s]+build\//i,/\smot(?:orola)?[\s-](\w*)/i,/((?:moto[\s\w\(\)]+|xt\d{3,4}|nexus\s6)(?=\sbuild|\)))/i],[d,[h,"Motorola"],[p,g]],[/\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[d,[h,"Motorola"],[p,v]],[/((?=lg)?[vl]k\-?\d{3})\sbuild|\s3\.[\s\w;-]{10}lg?-([06cv9]{3,4})/i],[d,[h,"LG"],[p,v]],[/(lm-?f100[nv]?|nexus\s[45])/i,/lg[e;\s\/-]+((?!browser|netcast)\w+)/i,/\blg(\-?[\d\w]+)\sbuild/i],[d,[h,"LG"],[p,g]],[/(ideatab[\w\-\s]+)/i,/lenovo\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+)|yt[\d\w-]{6}|tb[\d\w-]{6})/i],[d,[h,"Lenovo"],[p,v]],[/(?:maemo|nokia).*(n900|lumia\s\d+)/i,/nokia[\s_-]?([\w\.-]*)/i],[[d,/_/g," "],[h,"Nokia"],[p,g]],[/droid.+;\s(pixel\sc)[\s)]/i],[d,[h,"Google"],[p,v]],[/droid.+;\s(pixel[\s\daxl]{0,6})(?:\sbuild|\))/i],[d,[h,"Google"],[p,g]],[/droid.+\s([c-g]\d{4}|so[-l]\w+|xq-a\w[4-7][12])(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[h,"Sony"],[p,g]],[/sony\stablet\s[ps]\sbuild\//i,/(?:sony)?sgp\w+(?:\sbuild\/|\))/i],[[d,"Xperia Tablet"],[h,"Sony"],[p,v]],[/\s(kb2005|in20[12]5|be20[12][59])\b/i,/\ba000(1)\sbuild/i,/\boneplus\s(a\d{4})[\s)]/i],[d,[h,"OnePlus"],[p,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi)(\sbuild\/|\))/i,/(kf[a-z]+)(\sbuild\/|\)).+silk\//i],[d,[h,"Amazon"],[p,v]],[/(sd|kf)[0349hijorstuw]+(\sbuild\/|\)).+silk\//i],[[d,"Fire Phone"],[h,"Amazon"],[p,g]],[/\((playbook);[\w\s\),;-]+(rim)/i],[d,h,[p,v]],[/((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10;\s(\w+)/i],[d,[h,"BlackBerry"],[p,g]],[/(?:\b|asus_)(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus\s7|padfone|p00[cj])/i],[d,[h,"ASUS"],[p,v]],[/\s(z[es]6[027][01][km][ls]|zenfone\s\d\w?)\b/i],[d,[h,"ASUS"],[p,g]],[/(nexus\s9)/i],[d,[h,"HTC"],[p,v]],[/(htc)[;_\s-]{1,2}([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[h,[d,/_/g," "],[p,g]],[/droid[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[d,[h,"Acer"],[p,v]],[/droid.+;\s(m[1-5]\snote)\sbuild/i,/\bmz-([\w-]{2,})/i],[d,[h,"Meizu"],[p,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i,/(microsoft);\s(lumia[\s\w]+)/i,/(lenovo)[_\s-]?([\w-]+)/i,/linux;.+(jolla);/i,/droid.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[h,d,[p,g]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i,/[;\/]\s?(le[\s\-]+pan)[\s\-]+(\w{1,9})\sbuild/i,/[;\/]\s?(trinity)[\-\s]*(t\d{3})\sbuild/i,/\b(gigaset)[\s\-]+(q\w{1,9})\sbuild/i,/\b(vodafone)\s([\w\s]+)(?:\)|\sbuild)/i],[h,d,[p,v]],[/\s(surface\sduo)\s/i],[d,[h,"Microsoft"],[p,v]],[/droid\s[\d\.]+;\s(fp\du?)\sbuild/i],[d,[h,"Fairphone"],[p,g]],[/\s(u304aa)\sbuild/i],[d,[h,"AT&T"],[p,g]],[/sie-(\w*)/i],[d,[h,"Siemens"],[p,g]],[/[;\/]\s?(rct\w+)\sbuild/i],[d,[h,"RCA"],[p,v]],[/[;\/\s](venue[\d\s]{2,7})\sbuild/i],[d,[h,"Dell"],[p,v]],[/[;\/]\s?(q(?:mv|ta)\w+)\sbuild/i],[d,[h,"Verizon"],[p,v]],[/[;\/]\s(?:barnes[&\s]+noble\s|bn[rt])([\w\s\+]*)\sbuild/i],[d,[h,"Barnes & Noble"],[p,v]],[/[;\/]\s(tm\d{3}\w+)\sbuild/i],[d,[h,"NuVision"],[p,v]],[/;\s(k88)\sbuild/i],[d,[h,"ZTE"],[p,v]],[/;\s(nx\d{3}j)\sbuild/i],[d,[h,"ZTE"],[p,g]],[/[;\/]\s?(gen\d{3})\sbuild.*49h/i],[d,[h,"Swiss"],[p,g]],[/[;\/]\s?(zur\d{3})\sbuild/i],[d,[h,"Swiss"],[p,v]],[/[;\/]\s?((zeki)?tb.*\b)\sbuild/i],[d,[h,"Zeki"],[p,v]],[/[;\/]\s([yr]\d{2})\sbuild/i,/[;\/]\s(dragon[\-\s]+touch\s|dt)(\w{5})\sbuild/i],[[h,"Dragon Touch"],d,[p,v]],[/[;\/]\s?(ns-?\w{0,9})\sbuild/i],[d,[h,"Insignia"],[p,v]],[/[;\/]\s?((nxa|Next)-?\w{0,9})\sbuild/i],[d,[h,"NextBook"],[p,v]],[/[;\/]\s?(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05]))\sbuild/i],[[h,"Voice"],d,[p,g]],[/[;\/]\s?(lvtel\-)?(v1[12])\sbuild/i],[[h,"LvTel"],d,[p,g]],[/;\s(ph-1)\s/i],[d,[h,"Essential"],[p,g]],[/[;\/]\s?(v(100md|700na|7011|917g).*\b)\sbuild/i],[d,[h,"Envizen"],[p,v]],[/[;\/]\s?(trio[\s\w\-\.]+)\sbuild/i],[d,[h,"MachSpeed"],[p,v]],[/[;\/]\s?tu_(1491)\sbuild/i],[d,[h,"Rotor"],[p,v]],[/(shield[\w\s]+)\sbuild/i],[d,[h,"Nvidia"],[p,v]],[/(sprint)\s(\w+)/i],[h,d,[p,g]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[h,"Microsoft"],[p,g]],[/droid\s[\d\.]+;\s(cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[h,"Zebra"],[p,v]],[/droid\s[\d\.]+;\s(ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[h,"Zebra"],[p,g]],[/\s(ouya)\s/i,/(nintendo)\s([wids3utch]+)/i],[h,d,[p,f]],[/droid.+;\s(shield)\sbuild/i],[d,[h,"Nvidia"],[p,f]],[/(playstation\s[345portablevi]+)/i],[d,[h,"Sony"],[p,f]],[/[\s\(;](xbox(?:\sone)?(?!;\sxbox))[\s\);]/i],[d,[h,"Microsoft"],[p,f]],[/smart-tv.+(samsung)/i],[h,[p,y]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[h,"Samsung"],[p,y]],[/(?:linux;\snetcast.+smarttv|lg\snetcast\.tv-201\d)/i],[[h,"LG"],[p,y]],[/(apple)\s?tv/i],[h,[d,"Apple TV"],[p,y]],[/crkey/i],[[d,"Chromecast"],[h,"Google"],[p,y]],[/droid.+aft([\w])(\sbuild\/|\))/i],[d,[h,"Amazon"],[p,y]],[/\(dtv[\);].+(aquos)/i],[d,[h,"Sharp"],[p,y]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[h,P.trim],[d,P.trim],[p,y]],[/[\s\/\(](android\s|smart[-\s]?|opera\s)tv[;\)\s]/i],[[p,y]],[/((pebble))app\/[\d\.]+\s/i],[h,d,[p,b]],[/droid.+;\s(glass)\s\d/i],[d,[h,"Google"],[p,b]],[/droid\s[\d\.]+;\s(wt63?0{2,3})\)/i],[d,[h,"Zebra"],[p,b]],[/(tesla)(?:\sqtcarbrowser|\/20[12]\d\.[\w\.-]+)/i],[h,[p,x]],[/droid .+?; ([^;]+?)(?: build|\) applewebkit).+? mobile safari/i],[d,[p,g]],[/droid .+?;\s([^;]+?)(?: build|\) applewebkit).+?(?! mobile) safari/i],[d,[p,v]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[p,P.lowerize]],[/(android[\w\.\s\-]{0,9});.+build/i],[d,[h,"Generic"]],[/(phone)/i],[[p,g]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[_,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[_,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[u,_],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[_,u]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[u,_],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)(?!.+xbox)/i],[u,[_,w.str,S.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[u,"Windows"],[_,w.str,S.os.windows.version]],[/ip[honead]{2,4}\b(?:.*os\s([\w]+)\slike\smac|;\sopera)/i,/cfnetwork\/.+darwin/i],[[_,/_/g,"."],[u,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)(?!.+haiku)/i],[[u,"Mac OS"],[_,/_/g,"."]],[/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/\((series40);/i],[u,_],[/\(bb(10);/i],[_,[u,"BlackBerry"]],[/(?:symbian\s?os|symbos|s60(?=;)|series60)[\/\s-]?([\w\.]*)/i],[_,[u,"Symbian"]],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[u,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[_,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[_,[u,"Chromecast"]],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[u,"Chromium OS"],_],[/(nintendo|playstation)\s([wids345portablevuch]+)/i,/(xbox);\s+xbox\s([^\);]+)/i,/(mint)[\/\s\(\)]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?=\slinux)|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus|raspbian)(?:\sgnu\/linux)?(?:\slinux)?[\/\s-]?(?!chrom|package)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i,/\s([frentopc-]{0,4}bsd|dragonfly)\s?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku)\s(\w+)/i],[u,_],[/(sunos)\s?([\w\.\d]*)/i],[[u,"Solaris"],_],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[u,_]]},A=function(e,t){if("object"==typeof e&&(t=e,e=r),!(this instanceof A))return new A(e,t).getResult();var n=e||(void 0!==o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),i=t?P.extend(E,t):E;return this.getBrowser=function(){var e={name:r,version:r};return w.rgx.call(e,n,i.browser),e.major=P.major(e.version),e},this.getCPU=function(){var e={architecture:r};return w.rgx.call(e,n,i.cpu),e},this.getDevice=function(){var e={vendor:r,model:r,type:r};return w.rgx.call(e,n,i.device),e},this.getEngine=function(){var e={name:r,version:r};return w.rgx.call(e,n,i.engine),e},this.getOS=function(){var e={name:r,version:r};return w.rgx.call(e,n,i.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===c&&e.length>255?P.trim(e,255):e,this},this.setUA(n),this};A.VERSION="0.7.28",A.BROWSER={NAME:u,MAJOR:"major",VERSION:_},A.CPU={ARCHITECTURE:m},A.DEVICE={MODEL:d,VENDOR:h,TYPE:p,CONSOLE:f,MOBILE:g,SMARTTV:y,TABLET:v,WEARABLE:b,EMBEDDED:x},A.ENGINE={NAME:u,VERSION:_},A.OS={NAME:u,VERSION:_},typeof t!==s?(e.exports&&(t=e.exports=A),t.UAParser=A):(i=function(){return A}.call(t,n,t,e))===r||(e.exports=i);var T=void 0!==o&&(o.jQuery||o.Zepto);if(T&&!T.ua){var I=new A;T.ua=I.getResult(),T.ua.get=function(){return I.getUA()},T.ua.set=function(e){I.setUA(e);var t=I.getResult();for(var n in t)T.ua[n]=t[n]}}}("object"==typeof window?window:this)},52511:function(e,t,n){var i;e=n.nmd(e),function(o){t&&t.nodeType,e&&e.nodeType;var r="object"==typeof n.g&&n.g;r.global!==r&&r.window!==r&&r.self;var a,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,_=String.fromCharCode;function m(e){throw RangeError(p[e])}function f(e,t){for(var n=e.length,i=[];n--;)i[n]=t(e[n]);return i}function g(e,t){var n=e.split("@"),i="";return n.length>1&&(i=n[0]+"@",e=n[1]),i+f((e=e.replace(u,".")).split("."),t).join(".")}function v(e){for(var t,n,i=[],o=0,r=e.length;o<r;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<r?56320==(64512&(n=e.charCodeAt(o++)))?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),o--):i.push(t);return i}function y(e){return f(e,(function(e){var t="";return e>65535&&(t+=_((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=_(e)})).join("")}function b(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function x(e,t,n){var i=0;for(e=n?h(e/700):e>>1,e+=h(e/t);e>455;i+=l)e=h(e/35);return h(i+36*e/(e+38))}function P(e){var t,n,i,o,r,a,c,d,u,p,_,f=[],g=e.length,v=0,b=128,P=72;for((n=e.lastIndexOf("-"))<0&&(n=0),i=0;i<n;++i)e.charCodeAt(i)>=128&&m("not-basic"),f.push(e.charCodeAt(i));for(o=n>0?n+1:0;o<g;){for(r=v,a=1,c=l;o>=g&&m("invalid-input"),((d=(_=e.charCodeAt(o++))-48<10?_-22:_-65<26?_-65:_-97<26?_-97:l)>=l||d>h((s-v)/a))&&m("overflow"),v+=d*a,!(d<(u=c<=P?1:c>=P+26?26:c-P));c+=l)a>h(s/(p=l-u))&&m("overflow"),a*=p;P=x(v-r,t=f.length+1,0==r),h(v/t)>s-b&&m("overflow"),b+=h(v/t),v%=t,f.splice(v++,0,b)}return y(f)}function w(e){var t,n,i,o,r,a,c,d,u,p,f,g,y,P,w,S=[];for(g=(e=v(e)).length,t=128,n=0,r=72,a=0;a<g;++a)(f=e[a])<128&&S.push(_(f));for(i=o=S.length,o&&S.push("-");i<g;){for(c=s,a=0;a<g;++a)(f=e[a])>=t&&f<c&&(c=f);for(c-t>h((s-n)/(y=i+1))&&m("overflow"),n+=(c-t)*y,t=c,a=0;a<g;++a)if((f=e[a])<t&&++n>s&&m("overflow"),f==t){for(d=n,u=l;!(d<(p=u<=r?1:u>=r+26?26:u-r));u+=l)w=d-p,P=l-p,S.push(_(b(p+w%P,0))),d=h(w/P);S.push(_(b(d,0))),r=x(n,y,i==o),n=0,++i}++n,++t}return S.join("")}a={version:"1.3.2",ucs2:{decode:v,encode:y},decode:P,encode:w,toASCII:function(e){return g(e,(function(e){return d.test(e)?"xn--"+w(e):e}))},toUnicode:function(e){return g(e,(function(e){return c.test(e)?P(e.slice(4).toLowerCase()):e}))}},void 0===(i=function(){return a}.call(t,n,t,e))||(e.exports=i)}()},608575:(e,t,n)=>{var i=n(52511),o=n(762502);function r(){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=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=y(e));return e instanceof r?e.format():r.prototype.format.call(e)},t.Url=r;var a=/^([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}$/,_=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},f={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},v=n(817673);function y(e,t,n){if(e&&o.isObject(e)&&e instanceof r)return e;var i=new r;return i.parse(e,t,n),i}r.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),s=-1!==r&&r<e.indexOf("#")?"?":"#",c=e.split(s);c[0]=c[0].replace(/\\/g,"/");var y=e=c.join(s);if(y=y.trim(),!n&&1===e.split("#").length){var b=l.exec(y);if(b)return this.path=y,this.href=y,this.pathname=b[1],b[2]?(this.search=b[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var x=a.exec(y);if(x){var P=(x=x[0]).toLowerCase();this.protocol=P,y=y.substr(x.length)}if(n||x||y.match(/^\/\/[^@\/]+@[^@\/]+/)){var w="//"===y.substr(0,2);!w||x&&f[x]||(y=y.substr(2),this.slashes=!0)}if(!f[x]&&(w||x&&!g[x])){for(var S,E,A=-1,T=0;T<p.length;T++){-1!==(I=y.indexOf(p[T]))&&(-1===A||I<A)&&(A=I)}-1!==(E=-1===A?y.lastIndexOf("@"):y.lastIndexOf("@",A))&&(S=y.slice(0,E),y=y.slice(E+1),this.auth=decodeURIComponent(S)),A=-1;for(T=0;T<u.length;T++){var I;-1!==(I=y.indexOf(u[T]))&&(-1===A||I<A)&&(A=I)}-1===A&&(A=y.length),this.host=y.slice(0,A),y=y.slice(A),this.parseHost(),this.hostname=this.hostname||"";var C="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!C)for(var R=this.hostname.split(/\./),k=(T=0,R.length);T<k;T++){var O=R[T];if(O&&!O.match(h)){for(var D="",j=0,N=O.length;j<N;j++)O.charCodeAt(j)>127?D+="x":D+=O[j];if(!D.match(h)){var L=R.slice(0,T),M=R.slice(T+1),z=O.match(_);z&&(L.push(z[1]),M.unshift(z[2])),M.length&&(y="/"+M.join(".")+y),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=i.toASCII(this.hostname));var B=this.port?":"+this.port:"",Z=this.hostname||"";this.host=Z+B,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!m[P])for(T=0,k=d.length;T<k;T++){var F=d[T];if(-1!==y.indexOf(F)){var U=encodeURIComponent(F);U===F&&(U=escape(F)),y=y.split(F).join(U)}}var G=y.indexOf("#");-1!==G&&(this.hash=y.substr(G),y=y.slice(0,G));var H=y.indexOf("?");if(-1!==H?(this.search=y.substr(H),this.query=y.substr(H+1),t&&(this.query=v.parse(this.query)),y=y.slice(0,H)):t&&(this.search="",this.query={}),y&&(this.pathname=y),g[P]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){B=this.pathname||"";var V=this.search||"";this.path=B+V}return this.href=this.format(),this},r.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",i=this.hash||"",r=!1,a="";this.host?r=e+this.host:this.hostname&&(r=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(r+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=v.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==r?(r="//"+(r||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):r||(r=""),i&&"#"!==i.charAt(0)&&(i="#"+i),s&&"?"!==s.charAt(0)&&(s="?"+s),t+r+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+i},r.prototype.resolve=function(e){return this.resolveObject(y(e,!1,!0)).format()},r.prototype.resolveObject=function(e){if(o.isString(e)){var t=new r;t.parse(e,!1,!0),e=t}for(var n=new r,i=Object.keys(this),a=0;a<i.length;a++){var s=i[a];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||f[e.protocol])n.pathname=e.pathname;else{for(var _=(e.pathname||"").split("/");_.length&&!(e.host=_.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==_[0]&&_.unshift(""),_.length<2&&_.unshift(""),n.pathname=_.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 m=n.pathname||"",v=n.search||"";n.path=m+v}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),x=b||y||n.host&&e.pathname,P=x,w=n.pathname&&n.pathname.split("/")||[],S=(_=e.pathname&&e.pathname.split("/")||[],n.protocol&&!g[n.protocol]);if(S&&(n.hostname="",n.port=null,n.host&&(""===w[0]?w[0]=n.host:w.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===_[0]?_[0]=e.host:_.unshift(e.host)),e.host=null),x=x&&(""===_[0]||""===w[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,w=_;else if(_.length)w||(w=[]),w.pop(),w=w.concat(_),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(S)n.hostname=n.host=w.shift(),(C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=C.shift(),n.host=n.hostname=C.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!w.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=w.slice(-1)[0],A=(n.host||e.host||w.length>1)&&("."===E||".."===E)||""===E,T=0,I=w.length;I>=0;I--)"."===(E=w[I])?w.splice(I,1):".."===E?(w.splice(I,1),T++):T&&(w.splice(I,1),T--);if(!x&&!P)for(;T--;T)w.unshift("..");!x||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),A&&"/"!==w.join("/").substr(-1)&&w.push("");var C,R=""===w[0]||w[0]&&"/"===w[0].charAt(0);S&&(n.hostname=n.host=R?"":w.length?w.shift():"",(C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=C.shift(),n.host=n.hostname=C.shift()));return(x=x||n.host&&w.length)&&!R&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.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},r.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}}},653250:(e,t,n)=>{var i=n(667294);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=i.useState,a=i.useEffect,s=i.useLayoutEffect,l=i.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(i){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),i=r({inst:{value:n,getSnapshot:t}}),o=i[0].inst,d=i[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&d({inst:o})}),[e,n,t]),a((function(){return c(o)&&d({inst:o}),e((function(){c(o)&&d({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:d},950139:(e,t,n)=>{var i=n(667294),o=n(61688);var r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,s=i.useRef,l=i.useEffect,c=i.useMemo,d=i.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,i,o){var u=s(null);if(null===u.current){var p={hasValue:!1,value:null};u.current=p}else p=u.current;u=c((function(){function e(e){if(!l){if(l=!0,a=e,e=i(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return s=t}return s=e}if(t=s,r(a,e))return t;var n=i(e);return void 0!==o&&o(t,n)?t:(a=e,s=n)}var a,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,i,o]);var h=a(e,u[0],u[1]);return l((function(){p.hasValue=!0,p.value=h}),[h]),d(h),h}},61688:(e,t,n)=>{e.exports=n(653250)},552798:(e,t,n)=>{e.exports=n(950139)},813653:(e,t,n)=>{var i;n.d(t,{Z:()=>r});var o=new Uint8Array(16);function r(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(o)}},861470:(e,t,n)=>{n.d(t,{Z:()=>s});const i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const o=function(e){return"string"==typeof e&&i.test(e)};for(var r=[],a=0;a<256;++a)r.push((a+256).toString(16).substr(1));const s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(r[e[t+0]]+r[e[t+1]]+r[e[t+2]]+r[e[t+3]]+"-"+r[e[t+4]]+r[e[t+5]]+"-"+r[e[t+6]]+r[e[t+7]]+"-"+r[e[t+8]]+r[e[t+9]]+"-"+r[e[t+10]]+r[e[t+11]]+r[e[t+12]]+r[e[t+13]]+r[e[t+14]]+r[e[t+15]]).toLowerCase();if(!o(n))throw TypeError("Stringified UUID is invalid");return n}},17314:(e,t,n)=>{n.d(t,{Z:()=>c});var i,o,r=n(813653),a=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||i,p=void 0!==e.clockseq?e.clockseq:o;if(null==u||null==p){var h=e.random||(e.rng||r.Z)();null==u&&(u=i=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==p&&(p=o=16383&(h[6]<<8|h[7]))}var _=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:l+1,f=_-s+(m-l)/1e4;if(f<0&&void 0===e.clockseq&&(p=p+1&16383),(f<0||_>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=_,l=m,o=p;var g=(1e4*(268435455&(_+=122192928e5))+m)%4294967296;d[c++]=g>>>24&255,d[c++]=g>>>16&255,d[c++]=g>>>8&255,d[c++]=255&g;var v=_/4294967296*1e4&268435455;d[c++]=v>>>8&255,d[c++]=255&v,d[c++]=v>>>24&15|16,d[c++]=v>>>16&255,d[c++]=p>>>8|128,d[c++]=255&p;for(var y=0;y<6;++y)d[c+y]=u[y];return t||(0,a.Z)(d)}},172045:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(813653),o=n(861470);const r=function(e,t,n){var r=(e=e||{}).random||(e.rng||i.Z)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=r[a];return t}return(0,o.Z)(r)}},482131:(e,t,n)=>{n.d(t,{CA:()=>C,Tb:()=>I,Tx:()=>A,Y:()=>f,kz:()=>y});var i,o,r,a,s=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},l=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},c=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},d=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},u=function(e,t,n){var i;return function(o){t.value>=0&&(o||n)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},p=-1,h=function(){return"hidden"===document.visibilityState?0:1/0},_=function(){c((function(e){var t=e.timeStamp;p=t}),!0)},m=function(){return p<0&&(p=h(),_(),d((function(){setTimeout((function(){p=h(),_()}),0)}))),{get firstHiddenTime(){return p}}},f=function(e,t){var n,i=m(),o=s("FCP"),r=function(e){"first-contentful-paint"===e.name&&(c&&c.disconnect(),e.startTime<i.firstHiddenTime&&(o.value=e.startTime,o.entries.push(e),n(!0)))},a=performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],c=a?null:l("paint",r);(a||c)&&(n=u(e,o,t),a&&r(a),d((function(i){o=s("FCP"),n=u(e,o,t),requestAnimationFrame((function(){requestAnimationFrame((function(){o.value=performance.now()-i.timeStamp,n(!0)}))}))})))},g=!1,v=-1,y=function(e,t){g||(f((function(e){v=e.value})),g=!0);var n,i=function(t){v>-1&&e(t)},o=s("CLS",0),r=0,a=[],p=function(e){if(!e.hadRecentInput){var t=a[0],i=a[a.length-1];r&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(r+=e.value,a.push(e)):(r=e.value,a=[e]),r>o.value&&(o.value=r,o.entries=a,n())}},h=l("layout-shift",p);h&&(n=u(i,o,t),c((function(){h.takeRecords().map(p),n(!0)})),d((function(){r=0,v=-1,o=s("CLS",0),n=u(i,o,t)})))},b={passive:!0,capture:!0},x=new Date,P=function(e,t){i||(i=t,o=e,r=new Date,E(removeEventListener),w())},w=function(){if(o>=0&&o<r-x){var e={entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+o};a.forEach((function(t){t(e)})),a=[]}},S=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){P(e,t),o()},i=function(){o()},o=function(){removeEventListener("pointerup",n,b),removeEventListener("pointercancel",i,b)};addEventListener("pointerup",n,b),addEventListener("pointercancel",i,b)}(t,e):P(t,e)}},E=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,S,b)}))},A=function(e,t){var n,r=m(),p=s("FID"),h=function(e){e.startTime<r.firstHiddenTime&&(p.value=e.processingStart-e.startTime,p.entries.push(e),n(!0))},_=l("first-input",h);n=u(e,p,t),_&&c((function(){_.takeRecords().map(h),_.disconnect()}),!0),_&&d((function(){var r;p=s("FID"),n=u(e,p,t),a=[],o=-1,i=null,E(addEventListener),r=h,a.push(r),w()}))},T=new Set,I=function(e,t){var n,i=m(),o=s("LCP"),r=function(e){var t=e.startTime;t<i.firstHiddenTime&&(o.value=t,o.entries.push(e)),n()},a=l("largest-contentful-paint",r);if(a){n=u(e,o,t);var p=function(){T.has(o.id)||(a.takeRecords().map(r),a.disconnect(),T.add(o.id),n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,p,{once:!0,capture:!0})})),c(p,!0),d((function(i){o=s("LCP"),n=u(e,o,t),requestAnimationFrame((function(){requestAnimationFrame((function(){o.value=performance.now()-i.timeStamp,T.add(o.id),n(!0)}))}))}))}},C=function(e){var t,n=s("TTFB");t=function(){try{var t=performance.getEntriesByType("navigation")[0]||function(){var e=performance.timing,t={entryType:"navigation",startTime:0};for(var n in e)"navigationStart"!==n&&"toJSON"!==n&&(t[n]=Math.max(e[n]-e.navigationStart,0));return t}();if(n.value=n.delta=t.responseStart,n.value<0)return;n.entries=[t],e(n)}catch(e){}},"complete"===document.readyState?setTimeout(t,0):addEventListener("pageshow",t)}},6637:(e,t,n)=>{n.d(t,{Z:()=>_});var i=n(328531),o=n(643913),r=n(204088),a=n(432300),s=n(172071),l=n(170815),c=n(584595),d=n(826067),u=n(7789);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let h=null;class _{constructor(e,t){p(this,"abortCallback",null),p(this,"isBackgroundSyncEnabled",!1),this.name=e,this.options=t?{...t}:{}}static setDefaultConstructorFn(e){h=e}static create(e,t){if(h){return new h(e,t||{})}throw new Error("Couldn't find constructor function for "+e)}_isUrlShortEnoughForHttpGet(e,t){return(e+"?"+(0,o.Z)(t)).length<=2e3}abort(){this.abortCallback&&(this.abortCallback(),this.abortCallback=null)}isCalling(){return!!this.abortCallback}callGet(e,t={}){u.DQ&&(t["X-B3-Flags"]="1");const{logNetworkTimer:n,loggerComponentName:i}=this.options,o=n?new l.Z:null;return o&&o.start(),this.call("get",e,t).then((e=>{var t;o&&(o.end(),null===(t=_.logTimerComplete)||void 0===t||t.call(_,{timing:o.getCompletedTime(),component:i||this.name}));return e}))}callCreate(e,t){return this.call("create",e,t)}callUpdate(e,t){return this.call("update",e,t)}callDelete(e,t){return this.call("delete",e,t)}async call(e,t,n){navigator.onLine||this.isBackgroundSyncEnabled||s.Z.increment("resource_factory_not_online",1,{resourceName:this.name});const i=!t||void 0===t.async||t.async,o=t&&t.timeout||null,r=this._call(e,i,o,n);try{const e=await r;this.onResponseSuccess(e)}catch(a){_.customCallErrorHandlers&&_.customCallErrorHandlers({error:a,name:this.name,showError:!(!t||!t.showError)})}return r}getAjaxParams({async:e,headers:t,method:n,timeoutSeconds:i}){var o;const a={options:this.options,context:{}},l=`/resource/${this.name}/${n}/`,c={source_url:(0,d.JJ)(),data:JSON.stringify(a)},u="get"===n&&this._isUrlShortEnoughForHttpGet(l,c);!u&&this.isBackgroundSyncEnabled&&s.Z.increment("background_sync_request_header",1,{resourceName:this.name});return[{cache:!1,url:l,async:e,data:c,headers:{...(0,r.Z)({experimentHash:(null===(o=_.experimentsClient)||void 0===o?void 0:o.latestExperimentHashFromServer)||"",windowIsInFocus:_.getWindowInFocus()}),...t},timeout:i||0,type:u?"GET":"POST"},a]}_call(e,t,n,i){throw new Error(`Resource _call must be implemented by child class - ${this.name} ${e}`)}onResponseSuccess(e){if(_.customResponseSuccessHandlers&&_.customResponseSuccessHandlers(e,this.options),_.contextLogger&&e.client_context&&!this.options.disable_event_log_info){const{event_log_info:t}=e.client_context;t&&"event_type"in t&&_.contextLogger.logContextEvent({...t,..."aux_data"in t?{aux_data:{...t.aux_data}}:null})}i.Z.onResourceResponse()}getLoginState(){throw new Error(`Resource getUser must be implemented by child class - ${this.name}`)}redirectToLoginPage(){throw new Error(`Resource redirectToLoginPage must be implemented by child class - ${this.name}`)}logoutUser(e){throw new Error(`Resource logoutUser must be implemented by child class - ${this.name}`)}showLimitedLoginPrompt(e,t){throw new Error(`Resource showLimitedLoginPrompt must be implemented by child class - ${this.name}`)}shouldRedirectToLoginPage(e,t,n,i,o){return!(0,d.JJ)().startsWith("/login")&&((403!==e||2831!==i)&&(403===e&&o!==a.Z.DEFAULT||(401===e&&1001===i&&!t||(401!==e||i!==c.hE||"/resource/SentExternalInviteCallbackResource/create/"!==n)&&(401===e&&i===c.hE&&"/resource/UserSessionResource/delete/"!==n&&(this.logoutUser(n),!0)))))}}p(_,"i18n",null),p(_,"customCallErrorHandlers",null),p(_,"customResponseSuccessHandlers",null),p(_,"logTimerComplete",null),p(_,"getWindowInFocus",(()=>!1)),p(_,"normalizeResponse",null),p(_,"customDataManipulations",null)},479218:(e,t,n)=>{n.d(t,{H:()=>d,Z:()=>c});var i=n(983722),o=n(914671),r=n(204088),a=n(6637);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{constructor(e,t=5e3){s(this,"_flushTimer",null),s(this,"_listeningForWindowClose",!1),s(this,"_queue",[]),s(this,"flush",(()=>{if(this._flushTimer&&(clearTimeout(this._flushTimer),this._flushTimer=null),0!==this._queue.length)try{this._send(),this._queue=[]}catch(e){}})),this._queueMapper=e,this._flushTimeoutDelay=t}_send(){}enqueue(e){if(this._queue=[...this._queue,e],!this._flushTimer)try{this._flushTimer=setTimeout(this.flush,this._flushTimeoutDelay)}catch(t){this.flush()}this._listeningForWindowClose||(window.addEventListener("beforeunload",this.flush),this._listeningForWindowClose=!0)}}class c extends l{constructor(e,t,n=5e3){super(t,n),this._resourceName=e}_send(){a.Z.create(this._resourceName,this._queueMapper(this._queue)).callCreate()}}class d extends l{constructor(e,t,n,i=5e3){super(n,i),s(this,"_failedKeepAlive",!1),s(this,"_stickyFallback",!0),this._url=e,this._resourceName=t}_shouldFallback(){return this._failedKeepAlive&&this._stickyFallback}fetch(e){var t;const{getCsrfToken:s}=n(628551),l=null===(t=(0,i.Z)())||void 0===t?void 0:t.experimentsClient,c=(0,r.Z)({experimentHash:(null==l?void 0:l.latestExperimentHashFromServer)||"",windowIsInFocus:o.Z.windowIsInFocus});window.fetch(this._url,{method:"POST",mode:"same-origin",keepalive:!0,headers:{...c,"Content-Type":"application/json",Accept:"application/json","X-CSRFToken":s(),"X-Requested-With":"XMLHttpRequest"},body:JSON.stringify({data:{options:e}})}).catch((()=>{this._failedKeepAlive=!0,e.keepAlive="failed";a.Z.create(this._resourceName,e).callCreate()}))}_send(){if(this._shouldFallback()){const e=this._queueMapper(this._queue);e.keepAlive="fallback";a.Z.create(this._resourceName,e).callCreate()}else{const e=this._queueMapper(this._queue);e.keepAlive=!0,this.fetch(e)}}}},983722:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(608832);function o(){return(0,i.l)()}},172071:(e,t,n)=>{n.d(t,{Z:()=>u});var i=n(441143),o=n.n(i),r=n(479218);let a=null;const s=[];let l=null;function c(){s.length&&s.forEach((e=>e.flush()))}function d(e,t,n,i,l){o()(i>=0&&i<=1,`sampleRate must be between 0 and 1. Found ${String(i)}`);const c=[e,t,n,i,l];a||(a=new r.H("/resource/StatsLogResource/create/","StatsLogResource",(e=>({source:"browser",stats:e})),5e3),s.push(a)),a.enqueue(c)}const u={increment(e,t=.1,n={}){d(e,1,"c",t,n)},count(e,t,n=.1,i={}){d(e,t,"c",n,i)},timing(e,t,n=.1,i={}){d(e,t,"ms",n,i)},gauge(e,t,n=.1,i={}){d(e,t,"g",n,i)},incrementNow(e,t=.1,n={}){d(e,1,"c",t,n),c()},countNow(e,t,n=.1,i={}){d(e,t,"c",n,i),c()},timingNow(e,t,n=.1,i={}){d(e,t,"ms",n,i),c()},initServer(e){l=e},__test_only_get_queue:()=>a?a._queue:[],__test_only_clear(){a=null}}},832654:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(349700);function o(e,t){const{alt_text:n,auto_alt_text:o}=e;return n?(0,i.nk)(t.bt("This contains: {{ altText }}", "This contains: {{ altText }}", "web.altText", undefined, true),{altText:n}).join(""):o?(0,i.nk)(t.bt("This may contain: {{ autoAltText }}", "This may contain: {{ autoAltText }}", "web.altText", undefined, true),{autoAltText:o}).join(""):null}},695014:(e,t,n)=>{n.d(t,{Z:()=>d});var i=n(667294),o=n(702664),r=n(616211),a=n(898781),s=n(6637);var l=n(883119),c=n(785893);function d({favorited:e,favoriteCount:t,isCloseupButton:n,onFavorite:d,onUnfavorite:u,pinId:p,size:h}){const _=(0,a.ZP)(),m=(0,o.useDispatch)(),[f,g]=(0,i.useState)(!1),[v,y]=(0,i.useState)(e),[b,x]=(0,i.useState)(null!=t?t:0),P=async()=>{var e;y(!v),g(!0),v?(x(b-1),await m((e=p,async t=>{await s.Z.create("ApiResource",{url:`/v3/pins/${e}/favorite/`}).callDelete(),t(function(e){return{type:"PIN_FAVORITE",payload:{id:e,increment:-1,value:!1}}}(e))})),u(),g(!1)):(x(b+1),await m(function(e){return async t=>{await s.Z.create("ApiResource",{url:`/v3/pins/${e}/favorite/`}).callCreate(),t(function(e){return{type:"PIN_FAVORITE",payload:{id:e,increment:1,value:!0}}}(e))}}(p)),d(),g(!1))},w=b<10?b:_.bt("9+", "9+", "favoriteButton.favoriteCountText", undefined, true);return(0,c.jsxs)(l.kC,{alignItems:"center",gap:{row:1,column:0},children:[void 0!==t&&b>0&&(0,c.jsx)(l.xv,{size:"200",weight:"bold",children:w}),(0,c.jsx)(r.Z,{isCloseupButton:n,isDisabled:f,isFavorited:v,onTap:()=>{P()},size:h})]})}},365804:(e,t,n)=>{n.d(t,{C:()=>a,Z:()=>l});var i=n(957161),o=n(773285),r=n(276775);const a="lastOnHomefeed",s=["/","/homefeed/"];function l(){const{pathname:e}=(0,r.useLocation)(),t=(0,r.useHistory)(),{checkExperiment:n}=(0,o.F)(),l=s.includes(e),c=t&&"POP"!==t.action;if(l&&c){const e=JSON.parse((0,i.qn)(a)),t=null!=e&&e.time?Date.now()-e.time:0,o=c&&t>0?n("hfp_hf_refresh_logic_web"):{};return{shouldMaintainHomefeed:"enabled_2_5_min"===o.group&&t/6e4<2.5||"enabled_1_min"===o.group&&t/6e4<1,lastHFScrollPosition:null==e?void 0:e.scrollPosition}}return{shouldMaintainHomefeed:!1}}},578722:(e,t,n)=>{n.d(t,{H1:()=>c,HW:()=>r,iL:()=>l,pN:()=>s,s_:()=>a});var i=n(19121),o=n(773285);const r=new Date(2022,1,1);function a(){const{checkExperiment:e}=(0,o.F)(),t=["enabled_public","employees"].includes(e("web_ip_plays",{dangerouslySkipActivation:!0}).group),n=e("web_ip_pinner_plays",{dangerouslySkipActivation:!0}).anyEnabled,i=e("android_ios_web_ip_plays_dark_reads").anyEnabled;return t||n||i}function s({isOwnPin:e,isStoryPin:t,pinCreationDate:n,surface:a}){const s=(0,i.Z)(),{checkExperiment:l}=(0,o.F)(),c=l("web_play_playtime_pin_stats",{dangerouslySkipActivation:!0}).anyEnabled,d=!!("CreatorProfileStoryPinGrid"===a&&t&&n&&n.getTime()>=r.getTime()&&c&&s.isPartner&&e)&&l("web_ip_plays").anyEnabled,u=["enabled_public","employees"].includes(l("web_ip_plays",{dangerouslySkipActivation:!0}).group);if("CreatorProfileStoryPinGrid"===a&&t&&n&&n.getTime()>=r.getTime()){if(s.isPartner)return e&&d||!e&&u;if(l("web_ip_pinner_plays").anyEnabled)return!0}return!1}function l({isOwnPin:e,isPartner:t}){const{checkExperiment:n}=(0,o.F)(),i=["enabled_public","employees"].includes(n("web_ip_plays",{dangerouslySkipActivation:!0}).group),r=n("web_ip_pinner_plays",{dangerouslySkipActivation:!0}).anyEnabled;return!(e||!(r&&!t||i&&t))}function c({isOwnPin:e,isPartner:t}){const{checkExperiment:n}=(0,o.F)(),i=n("web_ip_plays",{dangerouslySkipActivation:!0}).anyEnabled,r=n("web_ip_pinner_plays",{dangerouslySkipActivation:!0}).anyEnabled;return!(!e||!(i&&t||r&&!t))}},397066:(e,t,n)=>{n.d(t,{b:()=>d,h:()=>u});var i=n(983722),o=n(768559),r=n(43760),a=n(170168),s=n(619937),l=n(48714),c=n(366284);const d=({href:e,pinId:t,pin:n,location:r,auxData:d},u)=>{if(n&&n.is_promoted){var p,h,_,m;const P=(0,o.Z)({boardUrl:null===(p=n.board)||void 0===p?void 0:p.url,callToCreateSourcePinId:n.call_to_create_source_pin_id,location:r,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}),w=(0,l.nS)({url:e,pinId:t,csrId:null,clientTrackingParams:P,auxData:d}),S=(0,i.Z)();if((0,c.G6)(null!==(_=null==S?void 0:S.userAgent.browserName)&&void 0!==_?_:"")){var f,g;const{group:i}=null!==(f=null==S?void 0:S.experimentsClient.checkExperiment("m10n_event_conversion_measurement"))&&void 0!==f?f:{},o=null!=S&&null!==(g=S.userAgent)&&void 0!==g&&g.browserVersion?S.userAgent.browserVersion:"0.0",r=parseFloat(o.split(".")[0]+"."+o.split(".")[1]);if(void 0!==n.campaign_id&&r>=14.1&&["enabled_safari"].includes(i)){var v;const i=n.attribution_source_id?((e,t,n)=>{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.$N.ATTRIBUTION_SOURCE_ID,e),i.setAttribute(s.$N.ATTRIBUTE_DESTINATION,n),i.setAttribute(s.$N.ATTRIBUTE_ON,n),i.click(),e})(n.attribution_source_id,w,e):((e,t,n)=>{const i=document.createElement("a");i.setAttribute("href",t),i.setAttribute("target","_blank"),i.setAttribute("rel","noopener nofollow noreferrer"),i.style.cursor="pointer",i.style.display="block";const o=""+(e%32*8+Math.floor(((new Date).getTime()-16409952e5)/864e5)%8);return i.setAttribute(s.$N.ATTRIBUTION_SOURCE_ID,o),i.setAttribute(s.$N.ATTRIBUTE_DESTINATION,n),i.setAttribute(s.$N.ATTRIBUTE_ON,n),i.click(),o})(null!==(v=n.pin_promotion_id)&&void 0!==v?v:0,w,e);return u({event_type:101,clientTrackingParams:P,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:i,page_url:e}}),!0}}else if((0,c.i7)(null!==(m=null==S?void 0:S.userAgent.browserName)&&void 0!==m?m:"")){var y,b;const{group:i}=null!==(y=null==S?void 0:S.experimentsClient.checkExperiment("m10n_event_conversion_measurement_chrome"))&&void 0!==y?y:{},o=null!=S&&null!==(b=S.userAgent)&&void 0!==b&&b.browserVersion?parseInt(S.userAgent.browserVersion.split(".")[0],10):0;if(void 0!==n.attribution_source_id&&o>=101&&["enabled"].includes(i)){var x;const i=((e,t,n)=>{const i=new URL(`${a.C0}/attribution_source/`);i.searchParams.set(s.NR.ATTRIBUTION_SOURCE_EVENT_ID,e),i.searchParams.set(s.NR.ATTRIBUTION_DESTINATION,n),i.searchParams.set(s.NR.ATTRIBUTION_EXPIRY,""+s.uV);const o=document.createElement("a");return o.setAttribute("href",t),o.setAttribute("target","_blank"),o.setAttribute("rel","noopener nofollow noreferrer"),o.style.cursor="pointer",o.style.display="block",o.setAttribute(s.NR.ATTRIBUTION_SOURCE,i.toString()),o.click(),e})(null!==(x=n.attribution_source_id)&&void 0!==x?x:"0",w,e);return u({event_type:101,clientTrackingParams:P,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:i,page_url:e}}),!0}}}return!1},u=({href:e,pinId:t,pin:n,location:i,auxData:a},s)=>{if("undefined"!=typeof window&&window.Windows)(0,r.Z)({url:e,pinId:t,pin:n,location:i,auxData:a});else{var c,u;if(d({href:e,pinId:t,pin:n,location:i,auxData:a},s))return;(0,l.Gj)({url:e,pinId:t,csrId:null,clientTrackingParams:(0,o.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:i,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:a})}}},955362:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var i=n(667294),o=n(702664),r=n(205202),a=n(248975),s=n(907775),l=n(883561),c=n(898781),d=n(199387),u=n(447948),p=n(623568),h=n(116674),_=n(576440),m=n(883119),f=n(785893);function g({feedbackData:e,feedbackType:t,pin:n,pinTitle:g,setForcePrimary:v,transparentBackground:y}){var b,x;const P=(0,c.ZP)(),w=(0,o.useDispatch)(),{viewParameter:S,viewType:E}=(0,_.E)(),{reportPin:A}=(0,h.f)(),[T,I]=(0,i.useState)(!1),[C,R]=(0,i.useState)(),{ad_match_reason:k,show_ad_reasons:O,board:D,category:j,description:N,id:L="",images:M,is_promoted:z,pinner:B,promoter:Z,recommendation_reason:F,source_interest:U,videos:G}=n;var H;const V=(H=z?60:50,function(e){return(0,l.ZP)((e||"").trim(),H)})(null!=N?N:""),W=(0,r.Z)(M,"236x"),$=(0,p.iR)(G),K=(0,d.Z)(101,{component:0,element:981,object_id_str:L,aux_data:{feedback_type:t}}),q=()=>{O||(v(!1),w((0,u.i0)(L)),I(!1))};return(0,f.jsxs)(i.Fragment,{children:[(0,f.jsx)(m.xu,{"data-test-id":"feedback-button",ref:R,children:(0,f.jsx)(m.hU,{accessibilityLabel:P.bt("More information", "More information", "accessibility label for overflow menu button", undefined, true),bgColor:y?"transparent":"white",icon:"ellipsis",iconColor:"darkGray",onClick:()=>{T?q():(v(!0),I(!0)),K()},size:"sm"})}),T&&(0,f.jsx)(m.xu,{onFocus:e=>e.stopPropagation(),children:(0,f.jsx)(s.Z,{anchor:C,ad_match_reason:k,bestPinImgSrc:(0,a.Z)({images:n.images,embedSrc:null===(b=n.embed)||void 0===b?void 0:b.src,embedType:null===(x=n.embed)||void 0===x?void 0:x.type}),board:D,feedbackData:e,feedbackType:t,hideDownload:$,isPromoted:z,onLinkClick:()=>{T&&q()},onDismiss:q,onHide:q,onDownloadHideFlyout:()=>{v(!1),I(!1)},pinCategory:j,pinDescription:V,pinId:L,pinImgSrc:W,pinner:B,pinTitle:g,promoter:Z,recommendationReason:F,reportPin:()=>A(n,S,E),sourceInterest:U,viewParameter:S,viewType:E})})]})}},907775:(e,t,n)=>{n.d(t,{Z:()=>U});var i=n(667294),o=n(702664),r=n(941646),a=n(883119),s=n(785893);function l({iconAccessibilityLabel:e,icon:t,linkAccessibilityLabel:n,showNavigationIcon:i,text:o}){return(0,s.jsxs)(a.kC,{alignItems:"stretch",justifyContent:"start",children:[(0,s.jsx)(r.Z,{id:"ad-reason-icon",children:(0,s.jsx)(a.Sj,{accessibilityLabel:e,bgColor:"lightGray",icon:t,iconColor:"darkGray"})}),(0,s.jsx)(a.xu,{alignSelf:"center","data-test-id":"ad-location-targeting-reason",height:"100%",marginStart:2,children:(0,s.jsx)(a.xv,{children:o})}),i&&n&&(0,s.jsx)(a.kC,{direction:"column",justifyContent:"center",children:(0,s.jsx)(a.JO,{accessibilityLabel:n,color:"default",icon:"arrow-forward"})})]})}var c=n(898781),d=n(966113),u=n(170168),p=n(349700),h=n(407043);function _({brandName:e,country:t,language:n,isAgeMatched:i,isBehaviorTargetingMatched:o,isCustomerListMatched:_,isGeoPostalCodeMatched:m,isGeoRegionMatched:f,isShoppingTargetingRematched:g}){const{logContextEvent:v}=(0,h.v)(),y=(0,c.ZP)();return(0,s.jsx)(r.Z,{id:"ad-reasons",children:(0,s.jsxs)(a.kC,{direction:"column",flex:"none",gap:{row:0,column:4},children:[(m||f)&&(0,s.jsx)(a.iP,{role:"link",href:`${u.C0}${d.QL}`,onTap:()=>{v({event_type:101,component:13756,element:12059})},target:"blank",children:(0,s.jsx)(l,{iconAccessibilityLabel:y.bt("Icon for ad targeting location", "Icon for ad targeting location", "app.common.react.components.PinRep.components.AdReasons.locationIcon", undefined, true),icon:"location",linkAccessibilityLabel:y.bt("Navigate to account settings", "Navigate to account settings", "app.common.react.components.PinRep.components.AdReasonRow.icon", undefined, true),showNavigationIcon:!0,text:(0,p.nk)(y.bt("Your primary location is in {{countryName}} and your primary language is {{language}}", "Your primary location is in {{countryName}} and your primary language is {{language}}", "app.common.react.components.PinRep.components.AdReasonsModal.locationTargeting", undefined, true),{countryName:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:t},"ad-reasons-country-name"),language:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:n},"ad-reasons-language")})})}),i&&(0,s.jsx)(l,{iconAccessibilityLabel:y.bt("Icon for ad targeting age", "Icon for ad targeting age", "app.common.react.components.PinRep.components.AdReasons.ageIcon", undefined, true),icon:"person",text:(0,p.nk)(y.bt("{{ brandName }} is trying to reach people in your age range", "{{ brandName }} is trying to reach people in your age range", "app.common.react.components.PinRep.components.AdReasonsModal.ageTargeting", undefined, true),{brandName:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:e},"ad-reasons-age-brand-name")})}),o&&(0,s.jsx)(l,{iconAccessibilityLabel:y.bt("Icon for ad targeting search history", "Icon for ad targeting search history", "app.common.react.components.PinRep.components.AdReasons.searchIcon", undefined, true),icon:"search",text:y.bt("Your Pinterest browsing history and search behaviour", "Your Pinterest browsing history and search behavior", "app.common.react.components.PinRep.components.AdReasonsModal.searchTargeting", undefined, true)}),g&&(0,s.jsx)(l,{iconAccessibilityLabel:y.bt("Icon for ad targeting customers who interacted with this brand previously", "Icon for ad targeting customers who interacted with this brand previously", "app.common.react.components.PinRep.components.AdReasonsModal.shoppingTargetingIcon", undefined, true),icon:"clock",text:(0,p.nk)(y.bt("You've interacted with {{brandName}} before", "You've interacted with {{brandName}} before", "app.common.react.components.PinRep.components.AdReasonsModal.shoppingTargetingText", undefined, true),{brandName:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:e},"retargeting-ad-reason")})}),_&&(0,s.jsx)(l,{iconAccessibilityLabel:y.bt("Icon for ad targeting user on an audience list", "Icon for ad targeting user on an audience list", "app.common.react.components.PinRep.components.AdReasons.genderIcon", undefined, true),icon:"menu",text:(0,p.nk)(y.bt("You're on an audience list provided by {{brandName}}", "You're on an audience list provided by {{brandName}}", "app.common.react.components.PinRep.components.AdReasonsModal.customerListTargeting", undefined, true),{brandName:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:e},"ad-reasons-customer-list")})})]})})}var m=n(19121),f=n(698330);function g({brandName:e,language:t,geoRegion:n,geoPostalCode:i,ageBucketMatch:o,localeMatch:d,interestMatch:u,genderMatch:h,deviceMatch:_,isCustomerListMatched:g,isShoppingTargetingRematched:v,isActAlikeMatched:y,isEngagementMatched:b,isExpandTargetingMatched:x,isFromGPSLocation:P,isVisitorMatched:w,gender:S,device:E}){var A;const T=(0,c.ZP)(),{id:I}=(0,m.Z)(),C=(0,f.mN)()(null!=I?I:""),R=null!==(A=null==C?void 0:C.gender)&&void 0!==A?A:"";return(0,s.jsx)(r.Z,{id:"ad-reasons",children:(0,s.jsxs)(a.kC,{direction:"column",flex:"none",gap:{row:0,column:4},children:[""!==o&&(0,s.jsx)(l,{iconAccessibilityLabel:T.bt("Icon for ad targeting age bucket", "Icon for ad targeting age bucket", "app.common.react.components.PinRep.components.AdReasons.ageIcon", undefined, true),icon:"person",text:(0,p.nk)(T.bt("Age {{ ageBucketMatch }}", "Age {{ ageBucketMatch }}", "app.common.react.components.PinRep.components.AdReasonsModal.ageBucketMatch", undefined, true),{ageBucketMatch:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:o},"ad-reasons-age-bucket")})}),""!==h&&"unspecified"!==R&&(0,s.jsx)(l,{iconAccessibilityLabel:T.bt("Icon for ad targeting gender", "Icon for ad targeting gender", "app.common.react.components.PinRep.components.AdReasons.genderIcon", undefined, true),icon:"person",text:(0,p.nk)(T.bt("{{ gender }}", "{{ gender }}", "app.common.react.components.PinRep.components.AdReasonsModal.genderMatch", undefined, true),{gender:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:S},"ad-reasons-gender")})}),""!==n&&(0,s.jsx)(l,{iconAccessibilityLabel:T.bt("Icon for ad targeting location", "Icon for ad targeting location", "app.common.react.components.PinRep.components.AdReasons.locationIcon", undefined, true),icon:"location",text:(0,p.nk)(T.bt("Based in {{geoRegion}}", "Based in {{geoRegion}}", "app.common.react.components.PinRep.components.AdReasonsModal.locationTargetingV2", undefined, true),{geoRegion:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:n},"ad-reasons-country-name")})}),""!==i&&(0,s.jsx)(l,{iconAccessibilityLabel:T.bt("Icon for ad targeting location", "Icon for ad targeting location", "app.common.react.components.PinRep.components.AdReasons.locationIcon", undefined, true),icon:"location",text:(0,p.nk)(T.bt("Based in {{geoPostalCode}}", "Based in {{geoPostalCode}}", "app.common.react.components.PinRep.components.AdReasonsModal.locationTargetingV2", undefined, true),{geoPostalCode:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:i},"ad-reasons-country-name")})}),""!==d&&(0,s.jsx)(l,{iconAccessibilityLabel:T.bt("Icon for ad targeting locale", "Icon for ad targeting locale", "app.common.react.components.PinRep.components.AdReasons.localeIcon", undefined, true),icon:"globe",text:(0,p.nk)(T.bt("Primary language {{ language }}", "Primary language {{ language }}", "app.common.react.components.PinRep.components.AdReasonsModal.localeMatch", undefined, true),{language:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:t},"ad-reasons-locale")})}),""!==_&&(0,s.jsx)(l,{iconAccessibilityLabel:T.bt("Icon for ad targeting device", "Icon for ad targeting device", "app.common.react.components.PinRep.components.AdReasons.deviceIcon", undefined, true),icon:"overview",text:(0,p.nk)(T.bt("Using {{ device }}", "Using {{ device }}", "app.common.react.components.PinRep.components.AdReasonsModal.deviceMatch", undefined, true),{device:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:E},"ad-reasons-device")})}),""!==u&&(0,s.jsx)(l,{iconAccessibilityLabel:T.bt("Icon for ad targeting interest", "Icon for ad targeting interest", "app.common.react.components.PinRep.components.AdReasons.interestIcon", undefined, true),icon:"heart",text:(0,p.nk)(T.bt("Interested in {{ interestMatch }}", "Interested in {{ interestMatch }}", "app.common.react.components.PinRep.components.AdReasonsModal.interestMatch", undefined, true),{interestMatch:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:u},"ad-reasons-interest")})}),v&&(0,s.jsx)(l,{iconAccessibilityLabel:T.bt("Icon for ad targeting user on an audience list", "Icon for ad targeting user on an audience list", "app.common.react.components.PinRep.components.AdReasons.shoppingTargeting", undefined, true),icon:"history",text:(0,p.nk)(T.bt("Interacted with {{brandName}}", "Interacted with {{brandName}}", "app.common.react.components.PinRep.components.AdReasonsModal.shoppingTargeting", undefined, true),{brandName:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:e},"ad-reasons-shopping-targeting")})}),w&&(0,s.jsx)(l,{iconAccessibilityLabel:T.bt("Icon for ad targeting customers who interacted with this brand previously, visitor matched", "Icon for ad targeting customers who interacted with this brand previously, visitor matched", "app.common.react.components.PinRep.components.AdReasonsModal.visitorMatchIcon", undefined, true),icon:"history",text:(0,p.nk)(T.bt("Interacted with {{brandName}}", "Interacted with {{brandName}}", "app.common.react.components.PinRep.components.AdReasonsModal.visitorTargetingText", undefined, true),{brandName:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:e},"ad-reason-visitor")})}),g&&(0,s.jsx)(l,{iconAccessibilityLabel:T.bt("Icon for ad targeting user on an audience list", "Icon for ad targeting user on an audience list", "app.common.react.components.PinRep.components.AdReasons.listIcon", undefined, true),icon:"menu",text:(0,p.nk)(T.bt("On a list provided by {{brandName}}", "On a list provided by {{brandName}}", "app.common.react.components.PinRep.components.AdReasonsModal.customerListTargetingV2", undefined, true),{brandName:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:e},"ad-reasons-customer-list")})}),b&&(0,s.jsx)(l,{iconAccessibilityLabel:T.bt("Icon for ad targeting user on engagement audience", "Icon for ad targeting user on engagement audience", "app.common.react.components.PinRep.components.AdReasons.engagementIcon", undefined, true),icon:"pin",text:(0,p.nk)(T.bt("Interacted with {{brandName}} on Pinterest", "Interacted with {{brandName}} on Pinterest", "app.common.react.components.PinRep.components.AdReasonsModal.engagementTargeting", undefined, true),{brandName:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:e},"ad-reasons-engagement")})}),y&&(0,s.jsx)(l,{iconAccessibilityLabel:T.bt("Icon for ad targeting user on actalike", "Icon for ad targeting user on act alike", "app.common.react.components.PinRep.components.AdReasons.actAlikeIcon", undefined, true),icon:"graph-bar",text:(0,p.nk)(T.bt("Similar demographic or interest as other {{brandName}} customers", "Similar demographic or interest as other {{brandName}} customers", "app.common.react.components.PinRep.components.AdReasonsModal.", undefined, true),{brandName:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:e},"ad-reasons-act-alike")})}),x&&(0,s.jsx)(l,{iconAccessibilityLabel:T.bt("Icon for ad targeting user on expand targeting", "Icon for ad targeting user on expand targeting", "app.common.react.components.PinRep.components.AdReasons.expandTargeting", undefined, true),icon:"pinterest",text:T.bt("Relevant activity on Pinterest", "Relevant activity on Pinterest", "app.common.react.components.PinRep.components.AdReasonsModal.expandTargeting", undefined, true)}),P&&(0,s.jsx)(l,{iconAccessibilityLabel:T.bt("Icon for ad targeting user on GPS", "Icon for ad targeting user on GPS", "app.common.react.components.PinRep.components.AdReasons.GPS", undefined, true),icon:"location",text:T.bt("GPS location", "GPS Location", "app.common.react.components.PinRep.components.AdReasonsModal.GPS", undefined, true)})]})})}var v=n(121151),y=n(773285);function b({onDismiss:e,brandName:t,userName:n,country:i,language:o,geoRegion:l,geoPostalCode:m,ageBucketMatch:f,localeMatch:b,interestMatch:x,genderMatch:P,deviceMatch:w,isAgeMatched:S,isBehaviorTargetingMatched:E,isCustomerListMatched:A,isGeoPostalCodeMatched:T,isGeoRegionMatched:I,isShoppingTargetingRematched:C,isActAlikeMatched:R,isEngagementMatched:k,isExpandTargetingMatched:O,isFromGPSLocation:D,isVisitorMatched:j,gender:N,device:L}){const{logContextEvent:M}=(0,h.v)(),z=(0,c.ZP)(),B=()=>{M({event_type:101,component:13756,element:12058})},Z=T||I||S||E||C||A||k||R||O||D||j||""!==f||""!==b||""!==x||""!==P||""!==w||""!==l||""!==m,{checkExperiment:F}=(0,y.F)(),U=F("ads_web_waista_v2").anyEnabled,G=u.C0+`/${n}/`;return(0,s.jsx)(v.ZP,{accessibilityModalLabel:z.bt("Why am I seeing this ad?", "Why am I seeing this Ad?", "app.common.react.components.PinRep.components.AdReasonsModal", undefined, true),onDismiss:e,children:(0,s.jsxs)(a.xu,{paddingX:8,paddingY:6,children:[(0,s.jsxs)(a.xu,{display:"flex",justifyContent:"center",marginBottom:6,position:"relative",children:[(0,s.jsx)(a.xu,{position:"absolute",left:!0,children:(0,s.jsx)(a.hU,{accessibilityLabel:z.bt("Close", "Close", "app.common.react.components.PinRep.components.AdReasonsModal.closeModal", undefined, true),icon:"cancel",iconColor:"darkGray",onClick:e,size:"sm"})}),U?(0,s.jsx)(a.X6,{align:"center",size:"500",children:z.bt("Why you're seeing this ad", "Why you're seeing this ad", "Heading for promoted Pins explanation, v2", undefined, true)}):(0,s.jsx)(a.X6,{align:"center",size:"500",children:z.bt("Why am I seeing this ad?", "Why am I seeing this ad?", "Heading for promoted Pins explanation", undefined, true)})]}),(0,s.jsxs)(a.xu,{children:[(0,s.jsxs)(a.kC,{direction:"column",gap:{row:0,column:4},children:[U?null:(0,s.jsx)(a.xu,{children:(0,s.jsx)(a.xv,{children:(0,p.nk)(z.bt("{{ brandName }} wants to get their ads in front of people like you. {{ learnMoreLink }}", "{{ brandName }} wants to get their ads in front of people like you. {{ learnMoreLink }}", "app.common.react.components.PinRep.components.AdReasonsModal.advertiserExplanation", undefined, true),{brandName:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:t},"ad-reasons-brand-name"),learnMoreLink:(0,s.jsx)(r.Z,{id:"ad-reasons-learn-more-link",children:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:(0,s.jsx)(a.rU,{href:d.UF,display:"inlineBlock",onClick:()=>{M({event_type:101,component:13756,element:12057})},target:"blank",underline:"hover",children:z.bt("Learn more", "Learn more", "app.common.react.components.PinRep.components.AdReasonsModal.learnMoreLink", undefined, true)})},"ad-reasons-learn-more-link")})})})}),Z&&(0,s.jsx)(a.xu,{marginBottom:4,children:U?(0,s.jsx)(a.xv,{children:(0,p.nk)(z.bt("{{ brandName }} is trying to reach specific groups of people. Based on what you've told us or other information, we think you fit some of those groups:", "{{ brandName }} is trying to reach specific groups of people. Based on what you've told us or other information, we think you fit some of those groups:", "app.common.react.components.PinRep.components.AdReasonsModal.audienceExplanationWAISTAv2", undefined, true),{brandName:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:(0,s.jsx)(a.rU,{href:G,display:"inlineBlock",onClick:()=>{M({event_type:101,component:13756,element:13407})},target:"blank",underline:"hover",children:t})},"ad-reasons-brand-name")})}):(0,s.jsx)(a.xv,{children:(0,p.nk)(z.bt("{{ brandName }} is trying to reach people who fit the following criteria:", "{{ brandName }} is trying to reach people who fit the following criteria:", "app.common.react.components.PinRep.components.AdReasonsModal.audienceExplanation", undefined, true),{brandName:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:t},"ad-reasons-brand-name")})})})]}),(0,s.jsx)(r.Z,{id:"ad-reasons",children:(0,s.jsxs)(a.kC,{direction:"column",flex:"none",gap:{row:0,column:4},children:[!U&&(0,s.jsx)(_,{brandName:t,country:i,language:o,isAgeMatched:S,isBehaviorTargetingMatched:E,isCustomerListMatched:A,isGeoPostalCodeMatched:T,isGeoRegionMatched:I,isShoppingTargetingRematched:C}),U&&(0,s.jsx)(g,{brandName:t,language:o,geoRegion:l,geoPostalCode:m,ageBucketMatch:f,localeMatch:b,genderMatch:P,interestMatch:x,deviceMatch:w,isCustomerListMatched:A,isShoppingTargetingRematched:C,isActAlikeMatched:R,isEngagementMatched:k,isExpandTargetingMatched:O,isFromGPSLocation:D,isVisitorMatched:j,gender:N,device:L}),Z&&!U&&(0,s.jsx)(a.xu,{marginBottom:1,children:(0,s.jsx)(a.xv,{children:z.bt("There could also be more factors not listed here.", "There could also be more factors not listed here.", "app.common.react.components.PinRep.components.AdReasonsModal.miscFactors", undefined, true)})}),Z&&U?(0,s.jsx)(a.xu,{marginBottom:1,children:(0,s.jsx)(a.xv,{children:(0,p.nk)(z.bt("If this isn't right, {{ changeUserSettings }}", "If this isn't right, {{ changeUserSettings }}", "app.common.react.components.PinRep.components.AdReasonsModal.changeUserSettingsText", undefined, true),{changeUserSettings:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:(0,s.jsx)(a.rU,{display:"inline",href:`${u.C0}${d.AH}`,onClick:()=>{M({event_type:101,component:13756,element:13361})},target:"blank",underline:"hover",children:z.bt("update your personal information", "update your personal information", "app.common.react.components.PinRep.components.AdReasonsModal.changeUserSettings", undefined, true)})},"ad-reasons-change-user-settings")})})}):null]})}),(0,s.jsxs)(a.kC,{direction:"column",gap:{row:0,column:1},children:[(0,s.jsx)(a.xu,{marginBottom:3,marginTop:3,children:U?null:(0,s.jsx)(a.iz,{})}),(0,s.jsx)(a.xu,{marginBottom:1,marginTop:1,children:U?(0,s.jsx)(a.X6,{size:"400",children:z.bt("Ads on Pinterest", "Ads on Pinterest", "app.common.react.components.PinRep.components.AdReasonsModal.adsOnPinterestHeading", undefined, true)}):(0,s.jsx)(a.X6,{size:"400",children:z.bt("I don't want to see this ad", "I don't want to see this ad", "app.common.react.components.PinRep.components.AdReasonsModal.hideThisAdHeading", undefined, true)})}),(0,s.jsx)(a.xu,{marginBottom:4,children:U?(0,s.jsx)(a.xv,{children:(0,p.nk)(z.bt("We show you ads that may be based on your profile settings, websites you visit, ads you interact with or other factors. {{adPreferencesLink}}", "We show you ads that may be based on your profile settings, websites you visit, ads you interact with or other factors. {{adPreferencesLink}}", "app.common.react.components.PinRep.components.AdReasonsModal.adPreferencesText", undefined, true),{adPreferencesLink:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:(0,s.jsx)(a.rU,{display:"inline",href:`${u.C0}${d.Gx}`,onClick:()=>{M({event_type:101,component:13756,element:13401})},target:"blank",underline:"hover",children:z.bt("Review your ad preferences", "Review your ad preferences", "app.common.react.components.PinRep.components.AdReasonsModal.adPreferencesLink", undefined, true)})},"ad-reasons-ad-preferences")})}):(0,s.jsx)(a.xv,{children:(0,p.nk)(z.bt("If you don't want to see ads from a specific advertiser, you can block the advertiser's Pinterest profile. {{learnMoreLink}}", "If you don't want to see ads from a specific advertiser you can block the advertiser's Pinterest profile. {{learnMoreLink}}", "app.common.react.components.PinRep.components.AdReasonsModal.blockAdvertiserText", undefined, true),{learnMoreLink:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:(0,s.jsx)(a.rU,{display:"inlineBlock",href:d.K_,onClick:B,target:"blank",underline:"hover",children:z.bt("Learn more", "Learn more", "app.common.react.components.PinRep.components.AdReasonsModal.learnMoreLink", undefined, true)})},"ad-reasons-learn-more-link")})})}),(0,s.jsx)(a.xu,{marginBottom:4,children:U&&(0,s.jsx)(a.xv,{children:(0,p.nk)(z.bt("For more about how we collect and use data, {{ privacyPolicyLink }}", "For more about how we collect and use data, {{ privacyPolicyLink }}", "app.common.react.components.PinRep.components.AdReasonsModal.privacyPolicyText", undefined, true),{privacyPolicyLink:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:(0,s.jsx)(a.rU,{display:"inline",href:d.R_,onClick:()=>{M({event_type:101,component:13756,element:13402})},target:"blank",underline:"hover",children:z.bt("read our Privacy Policy", "read our Privacy Policy", "app.common.react.components.PinRep.components.AdReasonsModal.privacyPolicyLink", undefined, true)})},"ad-reasons-privacy-policy")})})}),(0,s.jsx)(a.xu,{marginBottom:4,children:U&&(0,s.jsx)(a.xv,{children:(0,p.nk)(z.bt("To stop seeing content from an advertiser, {{ blockAccounts }}", "To stop seeing content from an advertiser, {{ blockAccounts }}", "app.common.react.components.PinRep.components.AdReasonsModal.privacyPolicyText", undefined, true),{blockAccounts:(0,s.jsx)(a.xv,{inline:!0,weight:"bold",children:(0,s.jsx)(a.rU,{display:"inline",href:d.K_,onClick:B,target:"blank",underline:"hover",children:z.bt("find out how to block accounts", "learn how to block accounts", "app.common.react.components.PinRep.components.AdReasonsModal.blockAccountLink", undefined, true)})},"ad-reasons-block-accounts")})})})]})]})]})})}var x=n(784590),P=n(350118),w=n(780280);const S="Female",E="Male",A="Web";function T({pinId:e,onDismiss:t}){var n,o,r,a,l;const{logContextEvent:c}=(0,h.v)(),{locale:d}=(0,w.B)(),{country:u=""}=(0,m.Z)(),p=(0,x.Z)({name:"CountriesResource",options:{hasEmptyState:!0}}),_=(0,x.Z)({name:"LocalesResource"}),f=(0,P.S6)()(e);(0,i.useEffect)((()=>{c({event_type:120,component:13756})}),[c]);const{ad_targeting_attribution:g,promoter:v}=null!=f?f:{},{is_age_matched:y=!1,is_behavior_targeting_matched:T=!1,is_customer_list_matched:I=!1,is_geo_postal_code_matched:C=!1,is_geo_region_matched:R=!1,is_shopping_retargeting_matched:k=!1,is_actalike_matched:O=!1,is_engagement_matched:D=!1,is_expand_targeting_matched:j=!1,is_from_gps_location:N=!1,is_visitor_matched:L=!1,matched_age_bucket:M="",matched_locale:z="",matched_interest:B="",matched_gender:Z="",matched_device:F="",geo_region:U="",geo_postal_code:G=""}=null!==(n=function(e=null,t=4){return e&&Object.keys(e).filter((t=>"boolean"==typeof e[t]||"string"==typeof e[t])).slice(0,t).reduce(((t,n)=>({...t,[n]:e[n]})),{})}(g))&&void 0!==n?n:{},H=null!==(o=null==v?void 0:v.full_name)&&void 0!==o?o:"",V=function(e,t){var n;const{name:i=""}=null!==(n=e.find((e=>e.key===t)))&&void 0!==n?n:{};return i}(null!==(r=p.data)&&void 0!==r?r:[],u),W=function(e,t){var n;const{name:i=""}=null!==(n=e.find((e=>e.key===t)))&&void 0!==n?n:{};return i}(null!==(a=_.data)&&void 0!==a?a:[],d),$=function(e){return"FEMALE"===e?S:"MALE"===e?E:""}(Z),K=function(e){return"AppType_WEB"===e||"AppType_WEB_DENZEL"===e?A:""}(F),q=null!==(l=null==v?void 0:v.username)&&void 0!==l?l:"";return(0,s.jsx)(b,{brandName:H,userName:q,country:V,language:W,ageBucketMatch:M,localeMatch:z,interestMatch:B,genderMatch:$,deviceMatch:K,isAgeMatched:y,isBehaviorTargetingMatched:T,isCustomerListMatched:I,isGeoPostalCodeMatched:C,isGeoRegionMatched:R,isShoppingTargetingRematched:k,isActAlikeMatched:O,isEngagementMatched:D,isExpandTargetingMatched:j,isFromGPSLocation:N,isVisitorMatched:L,onDismiss:t,gender:$,device:K,geoRegion:U,geoPostalCode:G})}var I=n(920085),C=n(149230),R=n(379884),k=n(852964),O=n(814197),D=n(760372),j=n(813401),N=n(680046),L=n(827896),M=n(447948),z=n(55275),B=n(276775);function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class F extends i.Component{constructor(e){super(e),Z(this,"getRecommendationDescription",(()=>{const{ad_match_reason:e,board:t,feedbackType:n,pinner:i,promoter:o,recommendationReason:r,sourceInterest:a}=this.props;return this.feedbackHelpers.getRecommendationDescription({ad_match_reason:e,board:t,feedbackType:n,makeNavigateLink:this.makeNavigateLink,pinner:i,promoter:o,recommendationReason:r,sourceInterest:a})})),Z(this,"getRecommendationDescriptionImage",(()=>{const{board:e,feedbackType:t,pinner:n,recommendationReason:i}=this.props;if("followed"!==t&&"pfyBoard"!==t)return null;let o,r,l;return n&&n.explicitly_followed_by_me?(o=n.image_small_url,r="50%",l=`/${n.username}`):e&&e.image_thumbnail_url&&(o=e.image_thumbnail_url,r="4px",l=i&&i.board&&i.board.url||e.url),o?(0,s.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{borderRadius:r}},flex:"none",marginStart:3,overflow:"hidden",children:(0,s.jsx)(a.iP,{onTap:()=>{var e;return this.props.history.push(null!==(e=l)&&void 0!==e?e:"")},children:(0,s.jsx)(a.zd,{height:40,wash:!0,width:40,children:(0,s.jsx)(a.Ee,{alt:"",fit:"cover",naturalHeight:1,naturalWidth:1,src:o})})})}):null})),Z(this,"getUnfollowAction",(()=>{const{board:e,feedbackType:t,pinner:n,sourceInterest:i}=this.props;return this.feedbackHelpers.getUnfollowAction({board:e,feedbackType:t,makeNavigateLink:this.makeNavigateLink,pinner:n,sourceInterest:i})})),Z(this,"getUndoText",(e=>"unfollowPinner"===e||"unfollowBoard"===e?this.props.i18n.bt("Follow again", "Follow again", "Caption for button to undo a unfollowing of a topic", undefined, true):"")),Z(this,"feedbackHelpers",(0,N.ZP)({i18n:this.props.i18n,interpolateNamedTemplate:p.nk})),Z(this,"makeNavigateLink",((e,t,n,i)=>(0,s.jsx)(a.rU,{onClick:this.props.onLinkClick,href:t,display:"inlineBlock",underline:"hover",children:(0,s.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:i?{display:"inline",color:"white",textDecorationColor:"white"}:{display:"inline"}},children:n})},e))),Z(this,"reportPinOption",(()=>({action:"reportPin",elementType:974,text:this.props.i18n.bt("Report Pin", "Report Pin", "Report a pin in the dropdown", undefined, true),description:this.props.i18n.bt("This goes against Pinterest's community guidelines", "This goes against Pinterest's community guidelines", "Description for the report pin option", undefined, true),callback:this.props.reportPin,dataTestId:"report-pin-option"}))),Z(this,"hidePinOption",(e=>{const{clientTrackingParams:t,feedbackData:n,feedbackType:i,pinId:o,recommendationReason:r}=this.props,a="search"===i?973:982,{action:s,actionOptions:l}=this.feedbackHelpers.getHidePinAction({feedbackData:n,feedbackType:i,pinId:o,recommendationReasonId:(0,k.Z)(r),pinFeedbackType:"pfy"===i?4:10,throughId:r&&(0,N.yl)(r),throughProperties:r&&(0,N.XZ)(r),clientTrackingParams:t(o)}),c=this.props.i18n.bt("Hide Pin", "Hide Pin", "message displayed in pin feedback list", undefined, true);return{action:s,actionOptions:l,feedbackText:this.pinHiddenFeedbackText(e),text:c,description:this.props.i18n.bt("See fewer Pins like this", "See fewer Pins like this", "Description for the hide pin option", undefined, true),elementType:a}})),Z(this,"stopRecommendationOption",(()=>{const{clientTrackingParams:e,feedbackData:t,feedbackType:n,pinId:i,recommendationReason:o}=this.props,{board:r}=null!=o?o:{},a=(0,k.Z)(o),s=o&&(0,N.yl)(o),l=o&&(0,N.XZ)(o),c="pfyBoard"===n,{action:d,actionOptions:u}=this.feedbackHelpers.getHidePinAction({feedbackData:t,feedbackType:n,pinId:i,recommendationReasonId:a,pinFeedbackType:c?2:4,throughId:s,throughProperties:l,clientTrackingParams:e(i)}),h=r?this.makeNavigateLink("boardUrl",r.url,r.name,!0):"";return{action:d,actionOptions:u,feedbackText:{subTitle:c&&r?(0,p.nk)(this.props.i18n.bt("We won't show you Pins inspired by your board {{ formattedBoard }} any more.", "We won't show you Pins inspired by your board {{ formattedBoard }} anymore.", "Primary caption displayed in pin feedback list to unfollow a board", undefined, true),{formattedBoard:h}):this.props.i18n.bt("Got it! We won't show you Pins like this in future.", "Got it! We won't show you Pins like this in the future.", "message displayed after stopping recommendations from a pin", undefined, true)},text:c&&r?(0,p.nk)(this.props.i18n.bt("Stop seeing Pins inspired by {{ boardName }}", "Stop seeing Pins inspired by {{ boardName }}", "Primary caption displayed in pin feedback list to unfollow a board", undefined, true),{boardName:r.name}):this.props.i18n.bt("See fewer Pins like this", "See fewer Pins like this", "Feedback option to stop recommendations inspired by this Pin", undefined, true),elementType:284}})),Z(this,"unfollowBoardOption",(()=>{var e,t;const{board:n}=this.props,i=n?this.makeNavigateLink("boardUrl",null!==(e=n.url)&&void 0!==e?e:"",null!==(t=n.name)&&void 0!==t?t:"",!0):"",o=(0,p.nk)(this.props.i18n.bt("Unfollow {{ boardName }}", "Unfollow {{ boardName }}", "Primary caption displayed in pin feedback list to unfollow a board", undefined, true),{boardName:null==n?void 0:n.name}),r=(0,p.nk)(this.props.i18n.bt("OK. You unfollowed {{ formattedBoard }} and won't see Pins saved to it in future.", "Got it! You unfollowed {{ formattedBoard }} and won't see Pins saved to it in the future.", "Confirmation text after unfollowing a board", undefined, true),{formattedBoard:i});return{action:"unfollowBoard",actionOptions:{board_id:null==n?void 0:n.id},feedbackText:{title:"",subTitle:r},text:o,description:(0,p.nk)(this.props.i18n.bt("Stop seeing Pins from the board \"{{ boardName }}\"", "Stop seeing Pins from the board \"{{ boardName }}\"", "Secondary caption displayed in pin feedback list to unfollow a board", undefined, true),{boardName:null==n?void 0:n.name}),elementType:10614}})),Z(this,"unfollowTopicOption",(()=>{const{sourceInterest:e}=this.props;if(e){const{id:t,name:n="",url_name:i=""}=e,o=`/topics/${i}`,r=this.makeNavigateLink("topicUrl",o,n,!0),a=(0,p.nk)(this.props.i18n.bt("See fewer Pins from {{ topicName }}", "See fewer Pins from {{ topicName }}", "Primary caption displayed in pin feedback list to unfollow a topic", undefined, true),{topicName:n}),s=(0,p.nk)(this.props.i18n.bt("We'll show you fewer Pins from {{ formattedTopic }} in future.", "We'll show you fewer Pins from {{ formattedTopic }} in the future.", "Confirmation text after unfollowing a topic", undefined, true),{formattedTopic:r});return{action:"unfollowTopic",actionOptions:{interest_id:t,interest_list:D.X},feedbackText:{title:"",subTitle:s},text:a,description:(0,p.nk)(this.props.i18n.bt("Stop seeing Pins from the topic \"{{ topicName }}\"", "Stop seeing Pins from the topic \"{{ topicName }}\"", "Secondary caption displayed in pin feedback list to unfollow a topic", undefined, true),{topicName:e.name}),elementType:976}}return null})),Z(this,"unfollowUserOption",(()=>{const{pinner:e}=this.props,{id:t,username:n,full_name:i}=null!=e?e:{},o=`/${n}`,r=e?this.makeNavigateLink("pinnerUrl",o,null!=i?i:"",!0):"";return{action:"unfollowPinner",actionOptions:{user_id:t},feedbackText:{title:"",subTitle:(0,p.nk)(this.props.i18n.bt("OK. You unfollowed {{ formattedUser }} and won't see Pins they save in future.", "Got it! You unfollowed {{ formattedUser }} and won't see Pins they save in the future.", "Confirmation text after unfollowing a user", undefined, true),{formattedUser:r})},text:(0,p.nk)(this.props.i18n.bt("Unfollow {{ fullName }}", "Unfollow {{ fullName }}", "Primary caption displayed in pin feedback list to unfollow a user", undefined, true),{fullName:i}),description:this.props.i18n.bt("Stop seeing all their Pins", "Stop seeing all their Pins", "Secondary caption displayed in pin feedback list to unfollow a user", undefined, true),elementType:10640}})),Z(this,"downloadPinOption",(()=>({action:"downloadPin",text:this.props.i18n.bt("Download image", "Download image", "Button to download Pin image", undefined, true),elementType:10836}))),Z(this,"_pinFeedbackText",(()=>{const{location:e,feedbackType:t,hideDownload:n,pinner:i}=this.props,o="followed"===this.props.feedbackType,r=e.pathname.includes("following"),a=(o||"topic"===t)&&!r,s=this.hidePinOption(a),l=this.reportPinOption(),c="promoted"!==t&&!n;switch(t){case"followed":const e=r,n=!e&&this.getRecommendationDescription(),o=null!=i&&i.explicitly_followed_by_me?this.unfollowUserOption():this.unfollowBoardOption();return{...n?{description:n}:{},options:[s,...a||e?[o]:[],..."promoted"!==t?[this.downloadPinOption()]:[],l]};case"promoted":const{pinId:d,showAdReasonsModal:u}=this.props,p=[s,{dataTestId:"why-am-i-seeing-this-ad-reasons",action:"showAdReasons",text:this.props.i18n.bt("Why am I seeing this ad?", "Why am I seeing this ad?", "app.common.react.components.PinFeedbackDropdown.adReasonText", undefined, true),callback:()=>{u(d)}},l];return{description:this.getRecommendationDescription(),options:p};case"topic":const h=this.unfollowTopicOption(),_=[s,...a&&h?[h]:[],...c?[this.downloadPinOption()]:[],l];return{description:this.getRecommendationDescription(),options:_};case"pfy":case"pfyBoard":const m=[s,..."pfyBoard"===t?[this.stopRecommendationOption()]:[],...c?[this.downloadPinOption()]:[],l];return{description:this.getRecommendationDescription(),options:m};default:const f=[s,...c?[this.downloadPinOption()]:[],l];return{description:this.getRecommendationDescription(),options:f}}})),Z(this,"pinHiddenFeedbackText",(e=>{const{isPromoted:t,promoter:n}=this.props,i=e?null:this.getUnfollowAction();return t&&null!=n&&n.full_name?{title:"",subTitle:(0,p.nk)(this.props.i18n.bt("{{ promoter }} has paid for this Pin to appear where you'd be more likely to notice it.", "{{ promoter }} has paid to have this pin show up where you'd be more likely to notice it.", "webapp.app.pinFeedbackDropdown.promotedFeedbackText.subtitle", undefined, true),{promoter:n.full_name})}:i?{title:"",subTitle:this.getRecommendationDescription(),unfollow:i}:{title:"",subTitle:this.props.i18n.bt("OK. We won't show you this Pin in future.", "Got it! We won't show you this Pin in the future.", "message displayed after hiding a pin", undefined, true)}}));const t=this._pinFeedbackText();this.state={pinFeedbackConfig:t,showSecondary:!1}}onPinFeedbackActionButtonClick(e,t,n){e.stopPropagation(),t.auxData?this.handleClickLogging(t.elementType,t.auxData):this.handleClickLogging(t.elementType),(0,z.t)(t.action,t.actionOptions,n)}onPinHide(e,t,n,i){const{hidePinFeedback:o,onHide:r,pinId:a,showPinFeedback:s,showPinFeedbackOverlay:l,showPinFeedbackUndo:c,viewParameter:d,viewType:u,logContextEvent:p}=this.props;t&&n&&i?c(a,e,(0,N.EF)(n,i,a,u,d,o,p),this.getUndoText(i)):s(a,e),!n||n.promoted||10!==n.feedback_type&&4!==n.feedback_type?r():(this.setState({showSecondary:!0}),l(a))}handleClickLogging(e,t={}){const{feedbackType:n,viewParameter:i,viewType:o,logContextEvent:r}=this.props;r({event_type:101,view_type:o,view_parameter:i,element:e,component:(0,N.nb)(n),aux_data:{...t}})}renderButtons(){const{hideDownload:e,onDownloadHideFlyout:t,pinId:n,viewType:i,viewParameter:o,logContextEvent:r,isWindowsPwa:l}=this.props,{pinFeedbackConfig:c}=this.state,{options:d}=c,u=[],p=d.length;for(let h=0;h<p;h+=1){const c=d[h],p=z.P.includes(c.action),_=c.callback?c.callback:()=>this.onPinHide(c.feedbackText,p,c.actionOptions,c.action);if("downloadPin"!==c.action){const e=(0,C.Z)({url:c.link||""});let t="";Array.isArray(c.text)?t=c.text.join(""):"string"!=typeof c.text&&"number"!=typeof c.text||(t=c.text.toString()),u.push(c.link?(0,s.jsx)(a.Lt.Link,{href:c.link,isExternal:e,option:{value:c.action||"",label:t},dataTestId:c.dataTestId||""}):(0,s.jsx)(a.Lt.Item,{onSelect:({event:e})=>this.onPinFeedbackActionButtonClick(e,c,_),option:{value:c.action||"",label:t},dataTestId:c.dataTestId||""}))}else if(!e&&!1===l){const{bestPinImgSrc:e,pinTitle:l,pinDescription:c,pinCategory:d}=this.props;u.push((0,s.jsx)(a.Lt.Item,{onSelect:()=>{(0,I.Z)({category:d,filename:l||c,imageDownloadSuccessCallback:()=>{t&&t()},imgSrc:e,pinId:n,viewParameter:o,viewType:i},r)},option:{value:"downloadImage",label:this.props.i18n.bt("Download image", "Download image", "pinRep.pinFeedbackDropdown.downloadImage", undefined, true)}}))}}return u}render(){const{pinFeedbackConfig:e,showSecondary:t}=this.state,{anchor:n,onDismiss:o,feedbackData:r,feedbackType:l,hideAdReasonsModal:c,pinId:d,onHide:u,recommendationReason:p,showAdReasons:h,viewParameter:_,viewType:m}=this.props,{description:f}=e,g=this.getRecommendationDescriptionImage();return(0,s.jsxs)(i.Fragment,{children:[t?(0,s.jsx)(R.Z,{anchor:n,feedbackData:r,feedbackType:l,pinId:d,onDismiss:o,onHide:u,recommendationReason:p,viewParameter:_,viewType:m}):(0,s.jsx)(a.Lt,{anchor:n,id:"pin-action-dropdown",idealDirection:"down",onDismiss:o,zIndex:O.lI,headerContent:f&&(0,s.jsxs)(a.kC,{alignItems:"center",children:[(0,s.jsx)(a.xu,{"data-pin-recommendation-reason":null==p?void 0:p.reason,maxHeight:56,overflow:"hidden",children:(0,s.jsx)(a.xv,{color:"default",overflow:"normal",size:"200",children:f})}),g]}),children:this.renderButtons()}),h&&(0,s.jsx)(T,{onDismiss:()=>c(d),pinId:d})]})}}function U(e){const{logContextEvent:t}=(0,h.v)(),n=(0,L.Z)(),i=(0,c.ZP)(),r=(0,P.S6)()(e.pinId),{ad_targeting_attribution:a,show_ad_reasons:l=!1}=null!=r?r:{},d=(0,j.kf)(),u=(0,o.useDispatch)();return(0,s.jsx)(F,{...e,clientTrackingParams:n,showAdReasons:l,adTargetingAttribution:a,history:(0,B.useHistory)(),i18n:i,isWindowsPwa:d,location:(0,B.useLocation)(),logContextEvent:t,hidePinFeedback:e=>u((0,M.I1)(e)),showPinFeedback:(e,t)=>u((0,M.q1)(e,t)),showPinFeedbackOverlay:e=>u((0,M.Ib)(e)),showPinFeedbackUndo:(e,t,n,i)=>u((0,M.NA)({id:e,text:t,undoAction:n,undoText:i})),showAdReasonsModal:e=>u((0,M.b9)(e)),hideAdReasonsModal:e=>u((0,M.yj)(e))})}},441707:(e,t,n)=>{n.d(t,{Z:()=>v});var i=n(294184),o=n.n(i),r=n(876371),a=n(832654);const s={debugPinImpressions:999,max:9999,pinActionWrapper:101,saved:102,storyPinImage:-1};var l=n(773285),c=n(883119),d=n(785893);function u({alt:e,dominantColor:t,naturalHeight:n,naturalWidth:i,onError:o,onLoad:r,url:a}){return(0,d.jsx)(c.xu,{position:"relative",dangerouslySetInlineStyle:{__style:{paddingTop:"177.77777777777777%"}},children:(0,d.jsx)(c.xu,{position:"absolute",top:!0,left:!0,width:"100%",height:"100%",dangerouslySetInlineStyle:{__style:{zIndex:s.storyPinImage}},children:(0,d.jsx)(c.Ee,{alt:e,color:t||"transparent",naturalHeight:null!=n?n:1,naturalWidth:null!=i?i:1,onError:o,onLoad:r,src:a,fit:"cover"})})})}function p({alt:e,dominantColor:t,naturalHeight:n,naturalWidth:i,onError:o,onLoad:r,url:a}){return(0,d.jsx)(c.xu,{width:"100%",dangerouslySetInlineStyle:{__style:{zIndex:s.storyPinImage}},children:(0,d.jsx)(c.Ee,{alt:e,color:t||"transparent",naturalHeight:null!=n?n:1,naturalWidth:null!=i?i:1,onError:o,onLoad:r,src:a})})}function h({alt:e,onError:t=(()=>{}),onLoad:n=(()=>{}),pin:i}){const{checkExperiment:o}=(0,l.F)(),{anyEnabled:r}=o("web_idea_pin_flexible_aspect_ratio_display"),{dominant_color:a,images:s={}}=i,{height:c,width:h,url:_}=function(e){var t;return"number"==typeof(null===(t=e["474x"])||void 0===t?void 0:t.width)&&"number"==typeof e["474x"].height&&e["474x"].width>e["474x"].height?e["736x"]:e["474x"]}(s)||{},m=r?p:u;return(0,d.jsx)(m,{alt:e,dominantColor:a,naturalHeight:c,naturalWidth:h,onError:t,onLoad:n,url:_||""})}var _=n(898781),m=n(349700),f=n(310227),g=n(243943);const v=({cropHeight:e,cropWidth:t,fallbackColor:n,highResOnly:i,imageFit:s,lowResOnly:l,mediumResOnly:u,onError:p,onLoad:v,pin:y,saved:b=!1,animateGif:x})=>{var P,w,S;const E=(0,_.ZP)(),A=(0,g.Xx)(),{carousel_data:T,description:I="",dominant_color:C,grid_title:R,id:k,images:O,title:D}=y,j=(0,m.nk)(E.bt("This contains an image of: {{ pinTitle }}", "This contains an image of: {{ pinTitle }}", "web.altText", undefined, true),{pinTitle:D||R}).join(""),N=(0,a.Z)(y,E)||I.trim().length>0&&I||j;if(T)return(0,d.jsx)(r.Z,{onError:p,onLoad:v,highResOnly:i,lowResOnly:l,pinId:k});let L,M="",z=0,B=0;if(O){var Z,F,U;let e=O["236x"];var G,H,V,W,$;if(i?e=O["736x"]||O.orig||O["474x"]||O["236x"]:u&&(e=O["474x"]||O.orig||O["236x"]),z=null===(Z=e)||void 0===Z?void 0:Z.height,B=null===(F=e)||void 0===F?void 0:F.width,M=null===(U=e)||void 0===U?void 0:U.url,l||u||i)L=null!==(G=e)&&void 0!==G&&G.url?`${e.url} 1x`:"";else L=[(null===(H=O["236x"])||void 0===H?void 0:H.url)&&`${O["236x"].url} 1x`,(null===(V=O["474x"])||void 0===V?void 0:V.url)&&`${O["474x"].url} 2x`,(null===(W=O["736x"])||void 0===W?void 0:W.url)&&`${O["736x"].url} 3x`,(null===($=O.orig)||void 0===$?void 0:$.url)&&`${O.orig.url} 4x`].filter(Boolean).join(", ")}if(x){const e=Math.max(y.embed&&y.embed.width||0,236),t=Math.max(y.embed&&y.embed.height||0,236),n=y.embed?y.embed.src:"";n&&(z=t,B=e,M=n,L="")}return null!=A&&A.image&&(z=A.image.height,B=A.image.width,M=A.image.url),(0,d.jsx)(c.kC,{alignItems:"center",justifyContent:"start",minHeight:f.Ml,children:(0,d.jsx)(c.xu,{flex:"grow",children:(0,d.jsx)("div",{className:o()({savedGradient:b}),children:y.story_pin_data_id?(0,d.jsx)(h,{alt:N,pin:y,onError:p,onLoad:v}):(0,d.jsx)(c.xu,{height:t?e:void 0,width:t||void 0,"data-test-id":"non-story-pin-image",children:(0,d.jsx)(c.Ee,{alt:N,color:"dominant"===n?C:n,fit:s,naturalHeight:null!==(P=z)&&void 0!==P?P:1,naturalWidth:null!==(w=B)&&void 0!==w?w:1,onError:p,onLoad:v,src:null!==(S=M)&&void 0!==S?S:"",srcSet:L})})})})})}},118334:(e,t,n)=>{n.d(t,{Z:()=>S});var i=n(667294),o=n(964082),r=n(983722),a=n(357787),s=n(36971),l=n(463045),c=n(965900),d=n(108529),u=n(441707),p=n(350445),h=n(898781),_=n(46584),m=n(926749),f=n(883119),g=n(623568),v=n(785893);const y=new Set(["ConversationView","TodayTabFeed"]);function b({inAdsDesktopVideoExperiment:e,isAutoplay:t,cropHeight:n,currentTime:o,lowResOnly:r,highResOnly:a,onLoad:s,onError:l,saved:b,onTimeChange:x,isExperimentalPinRep:P,pin:w,surface:S,playing:E,rootMargin:A,viewType:T,viewParameter:I,onVisibilityChanged:C,trackFullVisible:R,inVisibilityChangedHookExperiment:k,imageHeightModifier:O,cropWidth:D}){var j,N;const L=(0,h.ZP)(),[M,z]=(0,i.useState)(!1),[B,Z]=(0,i.useState)(!0),F=(0,g.jL)(w),U=F&&!w.is_eligible_for_web_closeup,G=P&&F&&w.is_eligible_for_web_closeup&&!y.has(S),{setCurrentVideo:H}=(0,c.I)(),V=U||!P||!F,W=(0,_.Z)({onVisibilityChanged:C,inAdsDesktopVideoExperiment:e,trackFullVisible:R,rootMargin:A});let $=!E;e&&($=B,t&&E&&B&&Z(!1));const{url:K}=(null===(j=w.images)||void 0===j?void 0:j["236x"])||{},{id:q,is_promoted:Y}=w,X=(0,i.useCallback)((({event:e})=>{e.preventDefault(),e.stopPropagation(),H({pinId:q,isPromoted:Boolean(Y),currentTime:0}),z(!1)}),[Y,q,H]),J=(0,i.useCallback)((()=>{Y&&z(G)}),[G,Y]);if(!w.videos||null===(N=w.videos.video_list)||void 0===N||!N.V_HLSV4)return null;const{height:Q,thumbnail:ee,width:te,url:ne}=w.videos.video_list.V_HLSV4||{},ie=w.videos.id,oe=[{type:"video/m3u8",src:ne}];let re,ae=(null!=te?te:1)/(null!=Q?Q:1);const se=e&&S&&(0,d.Z)(S);if(se&&(ae=1,re="transparent",O&&(ae-=O-1)),M&&F)return(0,v.jsx)(f.xu,{ref:k?W:null,children:(0,v.jsx)(p.Z,{backgroundImage:null!=K?K:"",naturalHeight:null!=Q?Q:1,naturalWidth:null!=te?te:1,pin:w,onRestartVideo:X})});if($){let e={highResOnly:a,lowResOnly:r,onError:l,onLoad:s,pin:w,saved:b};return se&&(e={...e,cropHeight:n,cropWidth:D,imageFit:"contain"}),(0,v.jsx)(f.xu,{ref:k?W:null,children:(0,v.jsx)(u.Z,{...e})})}return(0,v.jsx)(f.xu,{ref:k?W:null,children:(0,v.jsx)(m.ZP,{isAutoPlay:!!t,cropHeight:n,rootMargin:A,surface:S,inAdsDesktopVideoExperiment:e,contextLogData:{viewParameter:I,component:0,objectId:w.id,video_id:ie,view:T},accessibilityMaximizeLabel:L.bt("Maximise", "Maximize", "Maximize button on video", undefined, true),accessibilityMinimizeLabel:L.bt("Minimise", "Minimize", "Minimize button on video", undefined, true),accessibilityMuteLabel:L.bt("Mute", "Mute", "Mute button on video", undefined, true),accessibilityPauseLabel:L.bt("Pause", "Pause", "Pause button on video", undefined, true),accessibilityPlayLabel:L.bt("Play", "Play", "Play button on video", undefined, true),accessibilityProgressBarLabel:L.bt("Progress bar", "Progress bar", "PinVideo.accessibilityProgressBarLabel", undefined, true),accessibilityUnmuteLabel:L.bt("Unmute", "Unmute", "Unmute button on video", undefined, true),aspectRatio:ae,backgroundColor:re,captions:"",hlsConfig:{capLevelToPlayerSize:!0,startPosition:o||-1},loop:V,onTimeChange:x,playing:E,onPlay:()=>{},onPlayError:()=>{},poster:K||ee,src:null!=oe?oe:[],videoStartTime:o,volume:0,onEnded:J})})}function x(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,a.Z)(b);class w extends i.Component{constructor(...e){super(...e),x(this,"calculateCurrentVideoTime",(()=>{const{currentTimeFromPinRep:e,pin:t,videosAutoplaying:n}=this.props,{id:i}=t,o=(0,s.Z)(i,n);return this.currentVideoCurrentTime||o||e})),x(this,"handleVisibilityChanged",(e=>{const{currentTimeFromPinRep:t,pin:n,setCurrentVideo:i,pauseAutoplay:a,videosAutoplaying:s}=this.props,{id:c,is_promoted:d}=n,u=(0,l.Z)(c,s),p=(0,o.Z)(c,s);if(e){if(d)i({pinId:c,isPromoted:d,currentTime:this.calculateCurrentVideoTime()});else if(p){const e=(0,r.Z)(),{anyEnabled:t}=(null==e?void 0:e.experimentsClient.checkExperiment("hfp_web_video_autoplay_in_grid"))||{};i({pinId:c,isPromoted:Boolean(d),currentTime:this.calculateCurrentVideoTime(),inVideoGridAutoplayExp:t})}}else!e&&u&&a({pinId:c,isPromoted:Boolean(d),currentTime:t||this.currentVideoCurrentTime})})),x(this,"handleVideoTimeChange",(e=>{const{pin:t,onTimeChange:n,videosAutoplaying:i}=this.props,{id:o}=t;(0,l.Z)(o,i)&&(this.currentVideoCurrentTime=e.time),n&&n(e)}))}componentDidMount(){this.props.onLoad&&this.props.onLoad()}componentDidUpdate(e){const{appInFocus:t}=e,{appInFocus:n,currentTimeFromPinRep:i,pauseAutoplay:o,pin:r,setCurrentVideo:a,videosAutoplaying:s}=this.props,{id:c,is_promoted:d}=r,u=(0,l.Z)(c,s);n!==t&&!n&&u?(this.pausedDueToBrowserOutOfFocus=!0,o({pinId:c,isPromoted:Boolean(d),currentTime:i||this.currentVideoCurrentTime})):this.pausedDueToBrowserOutOfFocus&&n&&(this.pausedDueToBrowserOutOfFocus=!1,a({pinId:c,isPromoted:Boolean(d),currentTime:this.calculateCurrentVideoTime()}))}componentWillUnmount(){const{currentTimeFromPinRep:e,pauseAutoplay:t,pin:n,videosAutoplaying:i}=this.props,{id:o,is_promoted:r}=n;(0,l.Z)(o,i)&&t({pinId:o,isPromoted:Boolean(r),currentTime:e||this.currentVideoCurrentTime})}render(){const{cropHeight:e,isAutoplay:t,pin:n,surface:i,videosAutoplaying:o,viewParameter:r,viewType:a,highResOnly:c,lowResOnly:d,onError:u,onLoad:p,saved:h,inAdsDesktopVideoExperiment:_,isExperimentalPinRep:m,rootMargin:f,cropWidth:g,imageHeightModifier:y}=this.props,{id:b}=n,x=(0,s.Z)(b,o),w=(0,l.Z)(b,o)&&t;return(0,v.jsx)(P,{cropHeight:e,rootMargin:f,currentTime:x,inAdsDesktopVideoExperiment:_,isAutoplay:t,viewParameter:r,viewType:a,onTimeChange:this.handleVideoTimeChange,onVisibilityChanged:this.handleVisibilityChanged,pin:n,surface:i,playing:w,trackFullVisible:!1,highResOnly:c,lowResOnly:d,onError:u,onLoad:p,saved:h,isExperimentalPinRep:m,cropWidth:g,imageHeightModifier:y})}}function S(e){const{appUI:{appInFocus:t,isAutoplay:n,videosAutoplaying:i},pauseAutoplay:o,setCurrentVideo:r}=(0,c.I)();return(0,v.jsx)(w,{...e,appInFocus:t,isAutoplay:n,pauseAutoplay:o,setCurrentVideo:r,videosAutoplaying:i})}},68005:(e,t,n)=>{n.d(t,{Z:()=>Gn});var i=n(667294),o=n(702664),r=n(41233),a=n(605028),s=n(333155);function l({isGroupBoard:e,pin:t,surface:n}){const{carousel_data:i,grid_title:o,rich_summary:r,title:l}=t,{isOwnPin:c,isPromoted:d}=(0,a.Z)(t);if(i){const{carousel_slots:e=[],index:t=0}=i;if(e[t]&&e[t].title)return e[t].title.trim()}if(d){if(s.ZF.includes(n))return o||"";if(c&&!e&&!i&&"UserProfilePinGrid"!==n)return"";const t=r&&"mobile application"!==r.type_name&&r.display_name;return l||t||o||""}return o||""}var c=n(623568);const d=["EngagementDetails","OtherProfilePinGrid","UserProfilePinGrid"];var u=n(35495);function p(e,t){const{isProduct:n}=(0,a.Z)(e);return(n||"ShoppingGridShippedMetadataWithVisitButton"===t&&(0,u.bA)(e))&&(0,u.QY)(e)||""}var h=n(807592),_=n(4294),m=n(18857);const f=["CloseupRelatedProducts","ConversationView","CreatorProfileStoryPinGrid","CreatorProfileActivityPinGrid","ProductPinsFeed","UserProfilePinGrid"];function g({attributionOption:e,board:t,contentType:n,experimentsClient:i,feedbackData:o,feedbackType:r,hasCarouselData:s,isGroupBoard:c,isORBACProfileManager:d,isOwnBoard:u,pin:g,showImageOnly:v,showNativeReactions:y,showPromotedShoppingPrice:b,surface:x,viewer:P,variantData:w}){var S;const{isPromoted:E,isSponsored:A}=(0,a.Z)(g),{pin_note:T}=g,I=function({attributionOption:e,feedbackType:t,isGroupBoard:n,pin:i,showImageOnly:o,surface:r}){const{is_downstream_promotion:a,native_creator:s,promoter:l,sponsorship:c,story_pin_data_id:d}=i;if("promoted"===t||l&&!a||c)return"default";if("ConversationView"!==r&&f.includes(r))return"none";if(n)return"none";let u="default";return"SearchItem"===r&&d?u:(e&&("image-only"===e?u="image-only-credit":"hide"===e&&(u="none")),"followed"!==t||o?["IdeasHubSeasonalRow","TodayArticleFeed","ShoppingPackageItem"].includes(r)&&"hide"===e?u:"TodayArticleFeed"===r&&"show"===e?"show-for-claimed-content":s?"default":"none":u)}({attributionOption:e,feedbackType:r,isGroupBoard:c,pin:g,showImageOnly:v,surface:x}),C=null!=w&&w.title?w.title:l({isGroupBoard:c,pin:g,surface:x}),R=v?"":C,k=!["ShoppingPackageItem","ShoppingSquareGridDomain","ShoppingSquareGridStorefrontDomain","ShoppingSquareGridStorefront"].includes(x)&&!E&&!v&&Boolean(p(g,x)),O=["ShoppingGridShippedMetadataWithVisitButton"].includes(x),D="BaseBoardPinGrid"===x&&T?null===(S=T.text)||void 0===S?void 0:S.trim():null,j=E,N="shopping"===n;"AuthHomefeed"!==x||E||(y=!1);let L,M,z,B,Z=2;if(E?Z=3:(k||"none"!==I)&&(Z=N?2:1),N||b){var F,U;const e=null===(F=g.rich_summary)||void 0===F||null===(U=F.products)||void 0===U?void 0:U[0],{offer_summary:t}=e||{};L=t?t.standard_price:void 0,M=t?(0,h.Z)(t):void 0}if(w){const{offerSummary:e}=w;L=e?e.standard_price:void 0,M=e?e.price||e.max_price:void 0}if(N&&!E){var G,H,V;const{rating_count:e,rating_value:t,review_count:n}=(null===(G=g.rich_summary)||void 0===G?void 0:G.aggregate_rating)||{};(e||n)&&parseFloat(t)&&(z={count:e||n,rating:t}),B=null===(H=g.rich_metadata)||void 0===H||null===(V=H.products)||void 0===V?void 0:V[0].shipping_info}const W=(0,m.rh)(g,P,i),$="CreatorProfileStoryPinGrid"===x||"CreatorProfileActivityPinGrid"===x,K=!$,q=c&&!A;return{attributionType:I,board:t,contentType:n,feedbackData:o,feedbackType:r,pinNoteText:D,pinTitle:R,productCurrentPrice:M,productOriginalPrice:L,productRating:z,productShipping:B,showCarouselEllipsis:s,showFavoriteButton:!d&&("BaseBoardPinGrid"===x&&u||Boolean((null==t?void 0:t.is_collaborative)&&(0,_.Z)({board:t,viewer:P})))&&!$,showGroupBoardAvatar:q,showNativeReactions:y,showOverflowMenu:j,showPinStats:W,showSource:k,showTextContent:K,showVisitSiteButton:O,showAttribution:!0,titleLines:Z}}var v=n(27255),y=n(121630),b=n(704177),x=n(841478),P=n(53325);const w=["ShoppingCatalogsProductsMetadata"];const S=["BoardCreateUpsell","BoardCoverSelectablePin","BoardNoteSelectablePin","BoardNotePin","BulkEditMode","EngagementDetails","SectionSuggestedPins","SelectableBoardlessPin"],E=["BoardCreateUpsell","BoardCoverSelectablePin","BoardNoteSelectablePin","BoardNotePin","BulkEditMode","ConversationView","EngagementDetails","SectionSuggestedPins","SelectableBoardlessPin","ShoppingCatalogsProductsMetadata"];var A=n(221263),T=n(319915),I=n(675725),C=n(687551),R=n(954571);var k=n(976071),O=n(411938),D=n(108529),j=n(463045),N=n(947599),L=n(898781),M=n(717615),z=n(436395),B=n(19121),Z=n(883119),F=n(407043),U=n(785893);const G=["CreatorProfileStoryPinGrid","CreatorProfileActivityPinGrid"],H={component:210,view_type:4,view_parameter:3106},V={view_type:5,view_parameter:3069},W={component:13668,view_type:4,view_parameter:3106};function $({pinId:e,surface:t}){const{logContextEvent:n}=(0,F.v)(),i=(0,L.ZP)(),o=()=>{const e=G.includes(t)?W:"BaseBoardPinGrid"===t?V:"UserProfilePinGrid"===t?H:{};n({event_type:101,element:10573,...e})},r=i.bt("See more stats", "See more stats", "pinRep.actionBar.seeStatsButton", undefined, true);return(0,U.jsx)(Z.xu,{"data-test-id":"see-stats-button",paddingX:3,paddingY:3,children:G.includes(t)?(0,U.jsx)(Z.zx,{role:"link",accessibilityLabel:i.bt("Go to Pin stats details page", "Go to pin stats details page", "pinRep.actionBar.seeStatsButton", undefined, true),color:"semiTransparentWhite",fullWidth:!0,href:`/pin/${e}/analytics`,onClick:o,size:"sm",text:(a=r,a.length>14?`${a.substring(0,12).trim()}...`:a)}):(0,U.jsx)(Z.hU,{role:"link",accessibilityLabel:i.bt("Go to Pin stats details page", "Go to pin stats details page", "pinRep.actionBar.seeStatsButton", undefined, true),bgColor:"white",href:`/pin/${e}/analytics`,icon:"ads-stats",iconColor:"darkGray",onClick:o,size:"sm"})});var a}var K=n(681227),q=n(697247),Y=n(576440),X=n(965900),J=n(773285),Q=n(578722),ee=n(130460),te=n(350118),ne=n(329734),ie=n(243943),oe=n(99137),re=n(698330),ae=n(241244),se=n(95551),le=n(699825),ce=n(768559),de=n(89254);function ue(e,t){const{carousel_data:n,domain:i,ad_destination_url:o}=e;let r=i||"";return o&&(r=(0,de.Z)(o).hostname||""),n&&n.id&&(r=function(e,t){const n=t||e&&e.index||0,i=e&&e.carousel_slots||[],o=i[n]&&i[n].link||"";return o&&(0,de.Z)(o).hostname||""}(n,t)),r.replace("www.","")}var pe=n(287072),he=n(199387),_e=n(276775);const me={container:{backgroundColor:"rgba(255, 255, 255, 0.9)",borderRadius:18,height:"32px",maxWidth:"132px"},containerHovered:{backgroundColor:"rgba(255, 255, 255, 1.0)"},containerTruncated:{maxWidth:"87px"},text:{color:"#333333"}};function fe({pin:e,sourceLinkStyle:t,surface:n,url:o}){var r,a;const s=(0,L.ZP)(),[l,c]=(0,i.useState)(!1),{id:d}=e,p=ue(e),h=(0,_e.useLocation)(),_=(0,u.Kl)(e)||{},{slotIndex:m}=(0,Y.E)(),f=(0,ce.Z)({boardUrl:null===(r=e.board)||void 0===r?void 0:r.url,callToCreateSourcePinId:e.call_to_create_source_pin_id,location:h,pinId:e.id,pinnerUserName:null===(a=e.pinner)||void 0===a?void 0:a.username,storyPinDataId:e.story_pin_data_id,trackingParams:e.tracking_params,trackingParamsMap:e.tracking_params_map}),g=(0,he.Z)(12,{object_id_str:d,clientTrackingParams:f,aux_data:{grid_index:m,...(0,u.Kl)(e)||{}}}),v=(0,he.Z)(101,{element:162,object_id_str:d,clientTrackingParams:f,aux_data:{...(0,u.Kl)(e)||{}}}),y=(0,he.Z)(8948,{object_id_str:d,clientTrackingParams:f,aux_data:{click_type:"clickthrough",closeup_navigation_type:"click",grid_index:m,...(0,u.Kl)(e)||{}}}),b=()=>{g(),v(),y()},x=(0,pe.Z)({href:o,target:"blank",externalData:{auxData:_,pin:e,surface:n}});return"icon-only"===t?(0,U.jsx)(Z.hU,{accessibilityLabel:s.bt("link", "link", "Website url link", undefined, true),bgColor:"white",href:o,icon:"arrow-up-right",iconColor:"darkGray",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),b(),x({event:e})},role:"link",rel:"nofollow",size:"sm"}):(0,U.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:{...me.container,...l?me.containerHovered:Object.freeze({}),..."truncated-text"===t?me.containerTruncated:Object.freeze({})}},"data-test-id":"pinrep-source-link",onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),position:"relative",children:(0,U.jsx)(le.Z,{hovered:l,pin:e,slotIndex:m,viewType:1,children:(0,U.jsx)(Z.iP,{fullWidth:!1,href:o,onTap:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),b(),x({event:e})},rel:"nofollow",role:"link",rounding:4,children:(0,U.jsxs)(Z.xu,{alignItems:"baseline",dangerouslySetInlineStyle:{__style:me.text},display:"flex",justifyContent:"between",children:[(0,U.jsx)(Z.xu,{display:"flex",flex:"none",marginTop:3,marginBottom:3,marginStart:3,children:(0,U.jsx)(Z.JO,{accessibilityLabel:s.bt("link", "link", "Website url link", undefined, true),color:"default",icon:"arrow-up-right",size:9})}),(0,U.jsx)(Z.xu,{alignItems:"center",display:"flex",height:18,marginStart:2,marginEnd:3,overflow:"hidden",children:(0,U.jsx)(Z.xv,{color:"default",size:"200",weight:"bold",lineClamp:1,children:p})})]})})})})}var ge=n(538232),ve=n(50286),ye=n(780280);const be=(0,i.lazy)((()=>Promise.all([n.e(97270),n.e(78120),n.e(71439),n.e(48035)]).then(n.bind(n,43819)))),xe=(0,i.lazy)((()=>Promise.resolve().then(n.bind(n,955362)))),Pe=(0,i.lazy)((()=>n.e(5035).then(n.bind(n,351326))));const we=({pinId:e})=>{const{onSendButtonClick:t}=(0,ge.R)(),n=(0,he.Z)(101,{element:72,object_id_str:e});return(0,U.jsx)(se.Z,{onSendButtonClick:t,trackShareTap:n,size:"sm",bgColor:"white"})},Se=(0,i.memo)((function({actionBarEditBeforeShare:e,feedbackData:t,feedbackType:n,layout:o,onToggleFlyout:r,pin:s,pinTitle:l,setForcePrimary:c,showEditButton:d,showOverflowMenu:u,showShareButton:p,showSourceLinkButton:h,sourceLinkStyle:_,surface:m}){var f,g;const v=(0,L.ZP)(),y=(0,Z.JZ)(),{isRTL:b}=(0,ye.B)(),x=!(0,ve.HG)(),{viewParameter:P,viewType:w}=(0,Y.E)(),{carousel_data:S,id:E,savedInfo:A,tracked_link:I,link:C,ad_destination_url:R}=s,k=null!==(f=null!==(g=null!=R?R:I)&&void 0!==g?g:C)&&void 0!==f?f:"",{isLeadPin:O}=(0,a.Z)(s),[D,j]=(0,i.useState)(d),[M,z]=(0,i.useState)(d),[B,F]=(0,i.useState)(d),G={...b?{marginLeft:d&&u?-44:0}:{marginRight:d&&u?-44:0},transition:b?"margin-left .2s ease-in-out":"margin-right .2s ease-in-out"},H={opacity:B?1:0,transition:"opacity .2s ease-in-out",pointerEvents:"auto"},V={...b?{marginRight:M?4:0}:{marginLeft:M?4:0},transition:b?"margin-right .2s ease-in-out":"margin-left .2s ease-in-out"};(0,i.useEffect)((()=>{let e;return d&&u?(z(!0),e=setTimeout((()=>{requestAnimationFrame((()=>{j(!0),requestAnimationFrame((()=>{F(!0)}))}))}),800)):(z(d),j(d),requestAnimationFrame((()=>{F(d)}))),()=>{clearTimeout(e)}}),[d,u]);let W=null;if(h){const e=`/pin/${E}/`;W=(0,U.jsx)(ae.Z,{children:O?(0,U.jsx)(Z.zx,{role:"link",accessibilityLabel:v.bt("Link for close-up view and learn more", "Link for closeup view and learn more", "[m10n] pinRep.actionBar.learnMore", undefined, true),size:"sm",href:e,text:v.bt("Learn more", "Learn more", "[m10n] pinRep.actionBar.learnMore", undefined, true)}):(0,U.jsx)(fe,{pin:s,sourceLinkStyle:_,surface:m,url:k})})}const $=p&&(0,U.jsx)(T.Z,{name:"SafeSuspense_PinRep_SendShareLink",children:(0,U.jsx)(N.Z,{children:(0,U.jsx)(Z.xu,{"data-test-id":"send-share-link",children:(0,U.jsx)(ae.Z,{children:x?(0,U.jsx)(we,{pinId:s.id}):(0,U.jsx)(Pe,{pin:s,setForcePrimary:c})})})})}),K=Boolean(null==A?void 0:A.localPinId)?null==A?void 0:A.localPinId:E,q=D&&(0,U.jsx)(T.Z,{name:"SafeSuspense_PinRep_EditButton",children:(0,U.jsx)(N.Z,{children:(0,U.jsx)(Z.xu,{"data-test-id":"edit-button",dangerouslySetInlineStyle:y?void 0:{__style:H},children:(0,U.jsx)(ae.Z,{children:(0,U.jsx)(be,{carouselSlotCurrentIndex:S&&S.index,component:0,onToggleModal:r,pinId:K,style:{size:"sm"},view:w,viewParameter:P,useLegoStyles:!0})})})})});return"equally-spaced"===o?(0,U.jsxs)(Z.xu,{display:"flex",justifyContent:"between",alignItems:"center",padding:3,children:[(0,U.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:{flexBasis:32}},children:W}),e?q:$,e?$:q]}):(0,U.jsxs)(Z.xu,{alignItems:"center",display:"flex",padding:3,children:[(0,U.jsx)(Z.xu,{flex:"shrink",children:W}),(0,U.jsx)(Z.xu,{alignItems:"center",display:"flex",flex:"none",marginStart:"auto",dangerouslySetInlineStyle:y?void 0:{__style:G},children:(0,U.jsxs)(Z.kC,{alignItems:"center",gap:{row:2,column:0},justifyContent:"end",children:[e?q:$,e?$:q,u&&(0,U.jsx)(T.Z,{name:"SafeSuspense_PinRep_OverflowMenu",children:(0,U.jsx)(N.Z,{children:(0,U.jsx)(Z.xu,{"data-test-id":"overflow-menu-button",dangerouslySetInlineStyle:y?void 0:{__style:V},children:(0,U.jsx)(ae.Z,{children:(0,U.jsx)(xe,{feedbackData:t,feedbackType:n,pin:s,pinTitle:l,setForcePrimary:c})})})})})]})})]})}));var Ee=n(834911),Ae=n(447948);function Te({direction:e,swipeHandler:t}){const n=(0,L.ZP)(),i={left:n.bt("View previous", "View Previous", "Button to advance carousel to the previous image", undefined, true),right:n.bt("View next", "View Next", "Button to advance carousel to the next image", undefined, true)};return(0,U.jsx)(Z.xu,{position:"absolute",bottom:!0,top:!0,left:"left"===e,right:"right"===e,children:(0,U.jsx)(Z.iP,{fullHeight:!0,fullWidth:!0,onTap:t,children:(0,U.jsx)(Z.xu,{alignItems:"center",display:"flex",height:"100%",justifyContent:"center",padding:2,width:"100%","data-test-id":`carousel-slider-${e}`,children:(0,U.jsx)(Z.JO,{accessibilityLabel:i[e],color:"inverse",icon:{left:"arrow-back",right:"arrow-forward"}[e]})})})})}const Ie=(0,o.connect)(null,(function(e){return{changeCarouselSlotIndex:(t,n)=>e((0,Ae.yR)(t,n))}}))((({pin:e,changeCarouselSlotIndex:t})=>{const{logContextEvent:n}=(0,F.v)(),{componentType:i,viewParameter:o,viewType:r}=(0,Y.E)(),a=(0,Ee.Z)({carouselData:e.carousel_data,images:e.images,richMetadata:e.rich_metadata,richSummary:e.rich_summary});if(!a)return null;const{id:s=""}=e,{carousel_slots:l=[],index:c=0,id:d}=a;function p(a){return()=>{const p="left"===a?c-1:c+1;t(s,p),((t=0,a)=>{n({event_type:108,object_id_str:s,component:i,view_type:r,view_parameter:o,event_data:{pinCarouselSlotEventData:{carouselSlotId:l[t]&&Number(l[t].id),carouselDataId:Number(d),carouselSlotIndex:t,toCarouselSlotIndex:a}},aux_data:{...(0,u.Kl)(e)||{}}})})(c,p)}}return(0,U.jsxs)(Z.xu,{height:"100%",position:"relative",width:"100%",children:[c>0&&(0,U.jsx)(ae.Z,{children:(0,U.jsx)(Te,{direction:"left",swipeHandler:p("left")})}),c<l.length-1&&(0,U.jsx)(ae.Z,{children:(0,U.jsx)(Te,{direction:"right",swipeHandler:p("right")})})]})}));var Ce=n(337986),Re=n(116303);function ke({accessibilityLabel:e,attributionNameLink:t,avatarUrl:n,fullWidth:i=!0,name:o="",onClick:r,outline:a=!1,size:s=32,shouldRenderAdsOnlyProfileClick:l=!1}){const c=(0,U.jsx)(Z.xu,{"data-test-id":"attribution-avatar",height:s,width:s,children:(0,U.jsx)(Re.Z,{name:o,src:n,accessibilityLabel:"",outline:a})});return t?(0,U.jsx)(Z.iP,{fullWidth:i,role:"link",href:t,rel:l?"nofollow":void 0,target:l?"blank":void 0,onTap:r,accessibilityLabel:e,children:c}):c}function Oe({isHover:e,attributionNameLink:t,name:n,onClick:i,regularWeight:o}){const{checkExperiment:r}=(0,J.F)(),a=!t&&r("web_disable_ads_blocker").anyEnabled;return(0,U.jsx)(Z.xu,{children:(0,U.jsx)(Z.xv,{underline:e,size:"200",lineClamp:1,weight:o?"normal":"bold",children:t?(0,U.jsx)(Z.rU,{onClick:i,href:t,children:n}):a?(0,U.jsx)("span",{children:n}):n})})}function De({isHover:e,link:t,onClick:n,title:i,weight:o}){return i?(0,U.jsx)(Z.xv,{inline:!0,underline:e,size:"200",weight:o,children:t?(0,U.jsx)(Z.rU,{onClick:n,href:t,children:i}):i}):null}var je=n(865607),Ne=n(807532);function Le({attributionNameLink:e,attributionTitle:t,avatarUrl:n,display:o="default",isPromotedByPinCreator:r,pin:s,name:l,url:c,verifiedIdentity:d,isVerifiedMerchant:u,shouldRenderAdsOnlyProfileClick:p}){const h=(0,Ne.f)(),[_,m]=(0,i.useState)(!1),{id:f,sponsorship:g,story_pin_data_id:v}=s,{isPromoted:y}=(0,a.Z)(s),{logContextEvent:b}=(0,F.v)(),{creator:x}=g||{},{id:P}=x||{},w=!!v,S=(0,he.Z)(101,{view_type:3,element:y?283:27,object_id_str:f,component:w?230:void 0,aux_data:{...P?{creator_id:P,pin_id:f}:{}}}),E=()=>{h.setMostRecentPinId(f),S()},A=()=>{m((e=>!e))},T=c&&!e,I=T?"":l,C="overlay"===o,R=(0,U.jsxs)(Z.xu,{alignItems:"center",display:C?void 0:"flex",dangerouslySetInlineStyle:{__style:{marginLeft:"-3px",marginRight:"-3px"}},children:[(0,U.jsx)(Z.xu,{flex:"none",dangerouslySetInlineStyle:{__style:{marginLeft:"3px",marginRight:"3px"}},display:C?"flex":void 0,justifyContent:"center",children:(0,U.jsx)(Z.xu,{dangerouslySetInlineStyle:C?{__style:{marginTop:-45}}:void 0,children:(0,U.jsx)(ke,{attributionNameLink:I?e:void 0,avatarUrl:n,name:I,onClick:()=>E(),accessibilityLabel:I,size:C?64:32,outline:C})})}),(0,U.jsxs)(Z.xu,{dangerouslySetInlineStyle:{__style:{marginLeft:"3px",marginRight:"3px"}},flex:"grow",overflow:"hidden",display:C?"flex":void 0,justifyContent:"center",marginTop:C?2:void 0,children:[(0,U.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:{marginBottom:"2px"}},children:(0,U.jsxs)(Z.kC,{gap:{row:1,column:0},children:[(0,U.jsx)(Oe,{attributionNameLink:e,name:l,onClick:()=>E(),regularWeight:!(y&&!g||r),isHover:_}),(0,U.jsx)(je.Z,{size:"sm",hasVerifiedIdentity:d,isVerifiedMerchant:u})]})}),(0,U.jsx)(De,{isHover:_,title:t,weight:"normal"})]})]});return T?(0,U.jsx)(Z.iP,{role:"link",onTap:({event:e})=>{p&&b({event_type:9371,element:13382,aux_data:{aop_origin:"Attribution"}}),e.stopPropagation(),E()},href:c,rel:p?"nofollow":void 0,target:p?"blank":void 0,onMouseEnter:A,onMouseLeave:A,children:R}):R}var Me=n(356725),ze=n(333312),Be=n(695014),Ze=n(676464),Fe=n(596493),Ue=n(422946),Ge=n(956800),He=n(852025);function Ve({board:e,favoriteCount:t,favorited:n,pinId:r}){const{logContextEvent:a}=(0,F.v)(),s=(0,o.useDispatch)(),{slotIndex:l}=(0,Y.E)(),{currentFilter:c,eligibleFilters:d,refreshData:u=(()=>{}),sectionId:p,setShowExperienceTooltip:h}=(0,He.s)(),_=(0,i.useRef)(null),m=(0,B.Z)(),f=(0,A.Z)(m,e),g=c===Fe.Ac&&(!t||1===t),v=(0,Ze.E)(d,Fe.Ac),y=e=>{a({event_type:101,component:0,element:e?12225:12226,object_id_str:r,view_type:5,view_parameter:f?3069:3070})};return(0,U.jsxs)(i.Fragment,{children:[(0,U.jsx)(Z.xu,{ref:_,children:(0,U.jsx)(Be.Z,{favorited:n,favoriteCount:t,onFavorite:()=>{y(!0),v&&u(),h&&h(!0)},onUnfavorite:()=>{y(!1),e&&g&&s((0,Ge.EX)({feedId:p||e.id,feedType:p?Ue.DV.BOARD_SECTION_PINS:Ue.DV.BOARDFEED,itemIds:[r],itemType:"pin"}))},pinId:r,size:20})}),_&&!n&&!p&&0===l&&(0,U.jsx)(Z.mh,{children:(0,U.jsx)(ze.default,{anchor:_.current,experienceIds:[502973],flyoutSize:312,idealDirection:"up",placementId:18,positionRelativeToAnchor:!1,showCaret:!0,textAlign:"center"})})]})}var We=n(850115),$e=n.n(We),Ke=n(379507),qe=n.n(Ke),Ye=n(637956),Xe=n.n(Ye),Je=n(694379),Qe=n(909745),et=n.n(Qe),tt=n(128206),nt=n.n(tt);const it={goodIdea:$e(),love:Xe(),thanks:et(),wow:nt(),haha:qe()},ot={7:"goodIdea",1:"love",13:"thanks",11:"wow",5:"haha"},rt=["CreatorProfileStoryPinGrid"];const at=function({alignment:e="start",pinId:t,pinner:n,reactionCounts:i,surface:o}){const r=(0,B.Z)(),a=i?(0,K.At)(i):null,s=i?(0,K.Ud)(i):0,l=Boolean(r.isAuth&&(null==n?void 0:n.id)===r.id),c=!!a&&a.length>0&&a.map(((e,t)=>{const n=it[ot[e]];return(0,U.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:{marginRight:2}},children:(0,U.jsx)(Z.xu,{width:17,height:17,dangerouslySetInlineStyle:{__style:{backgroundImage:`url(${n})`,backgroundPosiiton:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"}}})},t)})),d=!!c&&(0,U.jsx)(Z.iP,{role:"link",href:`/pin/${t}/`,children:(0,U.jsxs)(Z.xu,{display:"flex",direction:"row",alignItems:"center",justifyContent:e,height:19,paddingY:3,children:[(0,U.jsx)(Z.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:c}),(0,U.jsx)(Z.xu,{paddingX:1,children:(0,U.jsx)(Z.xv,{size:"200",children:(0,U.jsx)(Je.Z,{value:s,shortform:!0,shortformMaximumFractionDigits:1})})})]})}),u=l&&rt.includes(o)&&(0,U.jsx)(Z.xu,{height:24});return d||u};var st=n(62700),lt=n(862628);function ct({feedbackType:e,pin:t}){const n=(0,L.ZP)(),{pinner:i,source_interest:o}=t,{full_name:r,username:a}=i||{},{name:s}=o||{},l="topic"===e,c=!l&&"followed"===e,d=`/${a}/`,u=(0,lt.Z)(s),p=`/search/pins/?q=${encodeURIComponent(u)}&rs=image_only_attribution`,h=l?p:d,_={topic:n.bt("From {topic}", "From {topic}", "attribution on pin rep", undefined, true),followed:n.bt("From {pinnerName}", "From {pinnerName}", "attribution on pin rep", undefined, true),pfyBoard:n.bt("Picked for you", "Picked for you", "attribution on pin rep", undefined, true),pfy:n.bt("Picked for you", "Picked for you", "attribution on pin rep", undefined, true)}[e];if(!_)return null;if(c||l){const e=0===_.indexOf("{"),t=l?s:r,n=e?_.slice(_.indexOf("}")+1):_.slice(0,_.indexOf("{"));return e?(0,U.jsxs)(Z.xu,{children:[(0,U.jsx)(Z.rU,{display:"inlineBlock",href:h,underline:"hover",children:(0,U.jsx)(Z.xv,{weight:"bold",inline:!0,size:"200",lineClamp:1,children:t})}),(0,U.jsx)(Z.xv,{inline:!0,size:"200",children:n})]}):(0,U.jsxs)(Z.xu,{children:[(0,U.jsx)(Z.xv,{inline:!0,size:"200",children:n}),(0,U.jsx)(Z.rU,{display:"inlineBlock",href:h,underline:"hover",children:(0,U.jsx)(Z.xv,{color:"default",weight:"bold",inline:!0,size:"200",lineClamp:1,children:t})})]})}return(0,U.jsx)(Z.xu,{children:(0,U.jsx)(st.Z,{pin:t,children:(0,U.jsx)(Z.xv,{color:"default",overflow:"normal",size:"200",weight:"bold",children:_})})})}var dt=n(955362),ut=n(397066),pt=n(48714);function ht(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class _t extends i.Component{constructor(...e){super(...e),ht(this,"state",{spamCheck:null}),ht(this,"mounted",!1),ht(this,"handleSpammyDomainCheck",(()=>{const{location:e,pin:t,surface:n,url:i}=this.props;i&&t&&(0,pt.$3)({location:e,pin:t,surface:n})&&(0,pt.iw)({isMounted:this.mounted,pin:t,location:e,spamCheckCallback:e=>this.setState({spamCheck:e}),href:i})})),ht(this,"handleClick",(e=>{const{auxData:t,location:n,onClick:i,pin:o,pinId:r,url:a,logContextEvent:s}=this.props;(0,pt.gV)({isOffsiteUrl:!0,event:e})||(e.preventDefault(),i&&i(e),a&&(0,ut.h)({href:a,pinId:r,pin:o,location:n,auxData:t},s))}))}componentDidMount(){this.mounted=!0,this.handleSpammyDomainCheck()}componentWillUnmount(){this.mounted=!1}componentDidUpdate(){const{spamCheck:e}=this.state;null===e&&this.handleSpammyDomainCheck()}render(){const{children:e,pin:t,url:n}=this.props;return(0,U.jsx)("a",{"aria-label":(null==t?void 0:t.domain)||"",href:n,onClick:this.handleClick,rel:"nofollow",style:{color:"inherit",textDecoration:"none",outline:"none",cursor:"pointer",display:"block"},target:null,children:e})}}function mt(e){var t;const{logContextEvent:n}=(0,F.v)(),i=(0,te.S6)()(null!==(t=e.pinId)&&void 0!==t?t:"");return(0,U.jsx)(_t,{...e,history:(0,_e.useHistory)(),location:(0,_e.useLocation)(),logContextEvent:n,match:(0,_e.useRouteMatch)(),pin:i})}function ft(e){if(!window||!window.prefetchCompletion||!window.prefetchCompletion[e])return"0";const{downloadedAssets:t,totalAssets:n}=window.prefetchCompletion[e];return n?(t/n*100).toFixed(3).toString():"-1"}var gt=n(941646),vt=n(385740);function yt({children:e,componentType:t,contextLogData:n,pin:i,surface:o,viewParameter:r,viewType:a}){const{logContextEvent:s}=(0,F.v)(),l=(0,Y.E)(),{ad_destination_url:c,carousel_data:d,id:u,link:p,tracked_link:h}=i;let _,m=c||h||p||"",f="one-tap-desktop";const g=(0,vt.SU)();if(d){const{carousel_slots:e=[],id:t,index:n=0}=d;e[n]&&e[n].link&&(m=e[n].link),_={carousel_slot_id:e[n]&&e[n].id,carousel_data_id:t,carousel_slot_index:n},f+="-carousel"}return(0,U.jsx)(Z.xu,{"data-test-id":"otpp",children:(0,U.jsx)(gt.Z,{id:f,children:(0,U.jsx)(mt,{auxData:_,onClick:()=>{s({event_type:12,view_type:a||l.viewType,view_parameter:r||l.viewParameter,component:t||l.componentType,object_id_str:u,aux_data:{...n,grid_index:l.slotIndex,pin_id:u,prefetch_percentage_complete:ft(p||"")}}),s({event_type:8948,view_type:a||l.viewType,view_parameter:r||l.viewParameter,component:t||l.componentType,object_id_str:u,aux_data:{...n,click_type:"clickthrough",closeup_navigation_type:"click",grid_index:l.slotIndex,pin_id:u,prefetch_percentage_complete:ft(p||"")}}),s({event_type:13,object_id_str:u,component:t||l.componentType,view_type:3,aux_data:{closeup_navigation_type:"web_closeup",...l.contextLogData,...n}}),s({event_type:13,view_type:g.viewType,view_parameter:g.viewParameter,view_data:g.viewData})},pinId:u,surface:o,url:m,children:e})})})}function bt(e){const{surface:t,...n}=e,{isOneTap:i,isVideo:o,isPromoted:r,isLeadPin:s}=(0,a.Z)(e.pin),l=!s&&(i||o&&r)?yt:st.Z;return(0,U.jsx)(l,{surface:i?t:void 0,...n})}function xt({pin:e,pinNoteText:t}){return(0,U.jsx)(bt,{pin:e,children:(0,U.jsx)(Z.xv,{lineClamp:1,overflow:"normal",size:"200",children:t})})}var Pt=n(81226);function wt({value:e,valueFormat:t}){const n=(0,L.ZP)();return e||0===e?"TIME"===t?(0,Pt.Z)(e):(0,U.jsx)(Je.Z,{shortform:!0,shortformMaximumFractionDigits:1,value:e}):(0,U.jsx)(Z.u,{idealDirection:"up",text:n.bt("This stat is not available yet", "This stat is not available yet", "closeup.partnerAnalytics.unavailableStat", undefined, true),children:"—"})}function St({pin:e}){var t;const n=(0,L.ZP)(),i=(0,B.Z)(),{isStoryPin:o,isVideo:r}=(0,a.Z)(e),s=i.isAuth&&(null===(t=e.pinner)||void 0===t?void 0:t.id)===i.id&&!e.is_repin,l=i.isAuth&&i.isPartner,c=(0,Q.iL)({isOwnPin:s,isPartner:l}),d=(0,Q.H1)({isOwnPin:s,isPartner:l}),u=e.created_at?new Date(e.created_at):null,p=(c||d)&&u&&u.getTime()<=Q.HW.getTime(),h=c?function(e){const{public_creator_analytics:t}=e,{isStoryPin:n}=(0,a.Z)(e);return n&&t?t:null}(e):function(e){const{aggregated_pin_data:t,creator_analytics:n}=e,{creator_analytics:i}=t||{},{isStoryPin:o}=(0,a.Z)(e);return!n||!o&&i?i:n}(e),_=function({isVideo:e,isStoryPin:t,i18n:n,showPublicPinStats:i,showPrivateFullScreenPinStats:o}){return e?[{align:"start",displayText:n.bt("Video views", "Video views", "pinRep.pinStats.videoViews", undefined, true),field:"video_views",iconType:"play"},{align:"center",displayText:n.bt("Avg. time", "Avg. time", "pinRep.pinStats.videoAverageTime", undefined, true),field:"video_average_time",iconType:"clock",valueFormat:"TIME"},{align:"end",displayText:n.bt("Saves", "Saves", "pinRep.pinStats.save", undefined, true),field:"save",iconType:"angled-pin"}]:t?i?[{align:"start",displayText:n.bt("Full screen plays", "Full screen plays", "pinRep.pinStats.fullScreenPlays", undefined, true),field:"full_screen_play",iconType:"play"}]:o?[{align:"start",displayText:n.bt("Full screen plays", "Full screen plays", "pinRep.pinStats.fullScreenPlays", undefined, true),field:"full_screen_play",iconType:"play"},{align:"center",displayText:n.bt("Impressions", "Impressions", "pinRep.pinStats.impression", undefined, true),field:"impression",iconType:"eye"},{align:"end",displayText:n.bt("Saves", "Saves", "pinRep.pinStats.save", undefined, true),field:"save",iconType:"angled-pin"}]:[{align:"start",displayText:n.bt("Impressions", "Impressions", "pinRep.pinStats.impression", undefined, true),field:"impression",iconType:"eye"},{align:"center",displayText:n.bt("Close-ups", "Closeups", "pinRep.pinStats.closeups", undefined, true),field:"closeup",iconSize:10,iconType:"hand-pointing"},{align:"end",displayText:n.bt("Saves", "Saves", "pinRep.pinStats.save", undefined, true),field:"save",iconType:"angled-pin"}]:[{align:"start",displayText:n.bt("Impressions", "Impressions", "pinRep.pinStats.impression", undefined, true),field:"impression",iconType:"eye"},{align:"center",displayText:n.bt("Saves", "Saves", "pinRep.pinStats.save", undefined, true),field:"save",iconType:"angled-pin"},{align:"end",displayText:n.bt("Link clicks", "Link clicks", "pinRep.pinStats.clickthrough", undefined, true),field:"clickthrough",iconSize:10,iconType:"arrow-up-right"}]}({isVideo:r,isStoryPin:o,i18n:n,showPublicPinStats:c,showPrivateFullScreenPinStats:d}),m=r||o?null==h?void 0:h.all_time_realtime:null==h?void 0:h["30d_realtime"];return(0,U.jsx)(Z.kC,{alignItems:"stretch",justifyContent:"start",children:_.map((({align:e,displayText:t,field:n,iconType:i,iconSize:o=12,valueFormat:r})=>(0,U.jsxs)(Z.xu,{alignItems:"center",column:4,display:"flex",justifyContent:e,children:[(0,U.jsx)(Z.xu,{display:"inlineBlock",marginEnd:1,children:(0,U.jsx)(Z.JO,{accessibilityLabel:t,color:"default",icon:i,size:o})}),(0,U.jsx)(Z.xv,{inline:!0,size:"200",children:(0,U.jsx)(wt,{value:"full_screen_play"===n&&p?null:null==m?void 0:m[n],valueFormat:r})})]},n)))})}function Et({currentPrice:e,disableLink:t,originalPrice:n,pin:i,surface:o}){const r=n&&n!==e,a=(0,U.jsxs)(Z.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:[e&&(0,U.jsx)(Z.xv,{color:"default",size:"200",weight:"bold",children:e}),r&&(0,U.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:{textDecoration:"line-through",textDecorationColor:"#767676"}},marginStart:1,children:(0,U.jsx)(Z.xv,{color:"subtle",size:"200",weight:"bold",children:n})})]});return t?a:(0,U.jsx)(bt,{pin:i,surface:o,children:a})}function At({disableLink:e,pin:t,surface:n}){const i=(0,U.jsx)(Z.kC,{alignItems:"stretch",justifyContent:"start",children:(0,U.jsx)(Z.xv,{color:"default",lineClamp:1,overflow:"normal",size:"200",weight:"normal",children:p(t,n)})});return e?i:(0,U.jsx)(bt,{pin:t,surface:n,children:i})}var Tt=n(202870);function It({disableLink:e,numberOfLines:t=2,pin:n,pinTitle:i,surface:o}){const r=e?i:(0,U.jsx)(bt,{pin:n,surface:o,children:i});return(0,U.jsx)(Z.xv,{color:"default",lineClamp:t,size:"200",weight:"bold",children:r})}var Ct=n(225692);const Rt={container:{padding:"8px 6px 16px"},productContainer:{padding:"12px 6px 16px"},imageOnlyAttribution:{hidden:{opacity:0,transition:`opacity ${Ct.X}ms ease`},visible:{opacity:1}}};function kt({attributionType:e,board:t,feedbackData:n,feedbackType:r,hasTextContent:s,hasTitleOrSource:l,hoverTransitionState:c,pin:d,pinNoteText:u,pinTitle:p,productCurrentPrice:h,productOriginalPrice:m,setForcePrimary:f,showCarouselEllipsis:g,showFavoriteButton:v,showGroupBoardAvatar:y,showNativeReactions:b,showOverflowMenu:x,showPinStats:P,showSource:w,showTextContent:S,showAttribution:E,surface:A,titleLines:T}){var I,C,R,k;const O=(0,L.ZP)(),D=(0,B.Z)(),j=(0,o.useDispatch)(),{favorited_by_me:N,favorite_user_count:M,id:z,pinner:F,reaction_counts:G,sponsorship:H,story_pin_data:V}=d,{has_affiliate_products:W}=V||{},{checkExperiment:$}=(0,J.F)(),K=function(e,t,n,i){var o,r,s,l,c;const{board:d,link_domain:u={},promoter:p,sponsorship:h,native_creator:_}=e,{sponsor:m}=h||{},{isPromoted:f}=(0,a.Z)(e),{official_user:g}=u||{},v=f&&!!h&&(null==_?void 0:_.id)!==(null==p?void 0:p.id),y=e.pinner||{};let b="",x="",P="",w="",S="",E="",A=!1,T=!1,I=!1;function C(e,t){return i&&!!e&&!!t}var R,k,O,D,j,N,L,M;if(v)b=null!==(R=null!==(k=null==_?void 0:_.image_medium_url)&&void 0!==k?k:null==_?void 0:_.image_small_url)&&void 0!==R?R:"",x=C(null==_?void 0:_.is_ads_only_profile,null==_?void 0:_.ads_only_profile_site)?null!==(O=_.ads_only_profile_site)&&void 0!==O?O:"":`/${null!==(D=null==_?void 0:_.username)&&void 0!==D?D:""}/`,P=null==p?void 0:p.full_name,w=null==_?void 0:_.full_name,E=C(null==_?void 0:_.is_ads_only_profile,null==_?void 0:_.ads_only_profile_site)?null!==(j=_.ads_only_profile_site)&&void 0!==j?j:"":`/${null!==(N=null==_?void 0:_.username)&&void 0!==N?N:""}/`,S=`/${null!==(L=null==p?void 0:p.username)&&void 0!==L?L:""}/`,A=null==_||null===(M=_.verified_identity)||void 0===M?void 0:M.verified,T=null==_?void 0:_.is_verified_merchant,I=C(null==_?void 0:_.is_ads_only_profile,null==_?void 0:_.ads_only_profile_site);else if(f&&p)b=p.image_medium_url||p.image_small_url,P=p.full_name,w=n.bt("Promoted by", "Promoted by", "indicating the username of the person who promoted the pin", undefined, true),E=C(p.is_ads_only_profile,p.ads_only_profile_site)?p.ads_only_profile_site:`/${p.username}/`,I=C(p.is_ads_only_profile,p.ads_only_profile_site);else if(h&&null!=m&&m.username){var z,B,Z,F,U,G,H,V,W;b=null!==(z=null!==(B=null!==(Z=null==_?void 0:_.image_large_url)&&void 0!==Z?Z:null==_?void 0:_.image_medium_url)&&void 0!==B?B:null==_?void 0:_.image_small_url)&&void 0!==z?z:"",x=C(null==_?void 0:_.is_ads_only_profile,null==_?void 0:_.ads_only_profile_site)?null!==(F=_.ads_only_profile_site)&&void 0!==F?F:"":`/${null!==(U=null==_?void 0:_.username)&&void 0!==U?U:""}/`,P=m.full_name,w=null==_?void 0:_.full_name,E=C(null==_?void 0:_.is_ads_only_profile,null==_?void 0:_.ads_only_profile_site)?null!==(G=_.ads_only_profile_site)&&void 0!==G?G:"":`/${null!==(H=null==_?void 0:_.username)&&void 0!==H?H:""}/`,S=`/${null!==(V=m.username)&&void 0!==V?V:""}/`,A=null==_||null===(W=_.verified_identity)||void 0===W?void 0:W.verified,T=null==_?void 0:_.is_verified_merchant,I=C(null==_?void 0:_.is_ads_only_profile,null==_?void 0:_.ads_only_profile_site)}else if(_){var $,K,q,Y;b=null!==($=null!==(K=null!==(q=_.image_large_url)&&void 0!==q?q:_.image_medium_url)&&void 0!==K?K:_.image_small_url)&&void 0!==$?$:"",w=_.full_name,E=C(_.is_ads_only_profile,_.ads_only_profile_site)?_.ads_only_profile_site:`/${_.username}/`,A=null===(Y=_.verified_identity)||void 0===Y?void 0:Y.verified,T=_.is_verified_merchant,I=C(_.is_ads_only_profile,_.ads_only_profile_site)}else if("show-for-claimed-content"===t){var X,J,Q,ee,te;null!=g&&g.is_primary_website_verified&&g.username&&(b=null!==(X=null!==(J=null!==(Q=g.image_large_url)&&void 0!==Q?Q:g.image_medium_url)&&void 0!==J?J:g.image_small_url)&&void 0!==X?X:"",w=g.full_name,E=C(g.is_ads_only_profile,g.ads_only_profile_site)?g.ads_only_profile_site:`/${null!==(ee=g.username)&&void 0!==ee?ee:""}/`,A=null===(te=g.verified_identity)||void 0===te?void 0:te.verified,T=g.is_verified_merchant,I=C(g.is_ads_only_profile,g.ads_only_profile_site))}else{var ne,ie,oe,re;b=null!==(ne=null!==(ie=null!==(oe=y.image_large_url)&&void 0!==oe?oe:y.image_medium_url)&&void 0!==ie?ie:y.image_small_url)&&void 0!==ne?ne:"",x=`/${y.username}/`,w=y.full_name,E=d?d.url:"",A=null===(re=y.verified_identity)||void 0===re?void 0:re.verified,T=y.is_verified_merchant}return{avatarUrl:null!==(o=b)&&void 0!==o?o:"",attributionNameLink:null!==(r=x)&&void 0!==r?r:"",attributionTitle:null!==(s=P)&&void 0!==s?s:"",name:null!==(l=w)&&void 0!==l?l:"",sponsorUrl:S,url:null!==(c=E)&&void 0!==c?c:"",verifiedIdentity:!!A,isVerifiedMerchant:!!T,shouldRenderAdsOnlyProfileClick:!!I}}(d,e,O,$("web_ads_only_profiles_link_redirect").anyEnabled),{avatarUrl:q,attributionNameLink:Y,attributionTitle:X,name:Q,sponsorUrl:ee,url:te,verifiedIdentity:ne,isVerifiedMerchant:ie,shouldRenderAdsOnlyProfileClick:oe}=K,re=!!d.promoter&&!d.is_downstream_promotion,ae=re&&(null===(I=d.native_creator)||void 0===I?void 0:I.id)===(null===(C=d.promoter)||void 0===C?void 0:C.id),se=(0,he.Z)(101,{view_type:3,element:27,object_id_str:z,component:d.story_pin_data_id?230:void 0,aux_data:{pin_id:z,...null!=H&&null!==(R=H.creator)&&void 0!==R&&R.id&&null!==(k=H.sponsor)&&void 0!==k&&k.id?{creator_id:H.creator.id,sponsor_id:H.sponsor.id}:{}}}),le=e=>j(le(e)),{full_name:ce}=(null==H?void 0:H.sponsor)||{},de="ConversationView"===A?{padding:"8px"}:Rt.container;return(0,U.jsxs)(Z.xu,{dangerouslySetInlineStyle:{__style:de},children:[g&&(0,U.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:l||y||"none"!==e?{marginBottom:"6px"}:{}},display:"flex",justifyContent:"center",children:(0,U.jsx)(Me.default,{pinId:z})}),P&&(0,U.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:{marginBottom:"6px"}},flex:"grow",width:"100%",children:(0,U.jsx)(St,{pin:d})}),(0,U.jsx)(Z.kC,{alignItems:"stretch",justifyContent:"start",children:(0,U.jsxs)(Z.xu,{flex:"grow",children:[(!!H||W&&!re)&&!ae&&(0,U.jsx)(Z.xu,{marginBottom:1,children:(0,U.jsx)(Z.xu,{flex:"grow",overflow:"hidden",children:(0,U.jsx)(Tt.Z,{hasAffiliateProducts:W,href:ee||te,isPromoted:re,sponsorName:ce,sponsorshipStatus:null==H?void 0:H.status,onNavigateSponsorClick:()=>{le(z),se()},textWeight:"bold"})})}),(S&&s||v)&&(0,U.jsxs)(Z.xu,{marginBottom:1,children:[(m||h)&&(0,U.jsx)(Z.xu,{marginBottom:1,children:(0,U.jsx)(Et,{currentPrice:h,originalPrice:m,pin:d,surface:A})}),v?(0,U.jsxs)(Z.kC,{alignItems:"start",children:[(0,U.jsx)(Z.kC,{flex:"grow",children:(0,U.jsx)(It,{numberOfLines:T,pin:d,pinTitle:p,surface:A})}),(0,U.jsx)(Z.xu,{marginStart:3,children:(0,U.jsx)(Ve,{board:t,favorited:!!N,favoriteCount:null!=t&&t.is_collaborative&&(0,_.Z)({board:t,viewer:D})?null!=M?M:0:void 0,pinId:z})})]}):(0,U.jsx)(It,{numberOfLines:T,pin:d,pinTitle:p,surface:A}),w&&(0,U.jsx)(Z.xu,{marginBottom:2,children:(0,U.jsx)(At,{pin:d,surface:A})})]}),E&&(0,U.jsxs)(Z.kC,{alignItems:"center",justifyContent:"start",children:[(0,U.jsx)(Z.xu,{flex:"grow",children:(()=>{const t=(0,U.jsx)(Le,{attributionNameLink:Y,attributionTitle:re&&!H||ae?X:"",avatarUrl:q,isPromotedByPinCreator:!!ae,isVerifiedMerchant:ie,shouldRenderAdsOnlyProfileClick:oe,name:Q,pin:d,url:te,verifiedIdentity:ne});switch(e){case"none":return null;case"image-only-credit":return(0,U.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:Rt.imageOnlyAttribution["active"===c?"visible":"hidden"]},children:(0,U.jsx)(ct,{pin:d,feedbackType:r})});default:return Object.values(K).some((e=>Boolean(e)))?t:null}})()}),x&&(0,U.jsx)(Z.xu,{flex:"none",children:(0,U.jsx)(dt.default,{feedbackData:n,feedbackType:r,pin:d,pinTitle:p,setForcePrimary:f,transparentBackground:!0})})]}),b&&!!G&&Object.keys(G).length>0&&(0,U.jsx)(Z.xu,{marginTop:"ConversationView"===A?2:void 0,children:(0,U.jsx)(at,{pinId:z,pinner:F,reactionCounts:G,surface:A})}),u&&(0,U.jsx)(Z.xu,{marginBottom:1,children:(0,U.jsx)(xt,{pin:d,pinNoteText:u})}),y&&!v&&(0,U.jsx)(Z.xu,{alignItems:"center",display:"flex",marginTop:1,marginBottom:1,children:(0,U.jsxs)(i.Fragment,{children:[(0,U.jsx)(ke,{attributionNameLink:Y||te,avatarUrl:q,fullWidth:!1,name:Q,accessibilityLabel:Q,shouldRenderAdsOnlyProfileClick:oe}),(0,U.jsx)(Z.xu,{marginStart:2,flex:"grow",children:(0,U.jsx)(Z.xv,{size:"200",children:Q})})]})})]})},`${d.id}-sponsor-name-link`)]})}var Ot=n(149230);function Dt(){const e=(0,L.ZP)();return(0,U.jsx)(Z.xv,{color:"subtle",overflow:"normal",size:"200",weight:"normal",children:e.bt("Sold out", "Sold out", "pinrep.footer.outOfStock", undefined, true)})}var jt=n(104389);function Nt(){const e=(0,L.ZP)();return(0,U.jsx)(Z.xv,{color:"subtle",overflow:"normal",size:"200",weight:"normal",children:e.bt("See price on site", "See price on site", "pinrep.footer.staleProduct", undefined, true)})}const Lt=18;function Mt({dimension:e,color:t,isSelected:n,img:i,selectVariant:o}){var r,a,s;const l=(0,L.ZP)(),c=(0,U.jsx)(Z.iP,{fullHeight:!0,fullWidth:!0,rounding:1,onMouseEnter:({event:n})=>{n.preventDefault(),n.stopPropagation(),o({dimensionName:e,variant:t})},onFocus:()=>{o({dimensionName:e,variant:t})},children:(0,U.jsx)(Z.xu,{"data-test-id":`primary-variant-preview-icon-${t}`,height:Lt,width:Lt,rounding:1,display:"flex",alignItems:"center",justifyContent:"center",dangerouslySetInlineStyle:{__style:{border:n?"1px solid black":"1px solid #EFEFEF"}},children:(0,U.jsx)(Z.xu,{height:14,width:14,position:"absolute",rounding:1,overflow:"hidden",children:(0,U.jsx)(Z.xu,{"data-test-id":`${t}-variant-preview-wrapper`,dangerouslySetInlineStyle:{__style:{transform:"scale(10,10)"}},children:(0,U.jsx)(Z.zd,{height:14,width:14,rounding:1,children:(0,U.jsx)(Z.Ee,{alt:l.bt("Colour variant preview image", "Color variant preview image", "MerchantStorefront.Variant.VariantPreviewIcon.Image", undefined, true),naturalHeight:null!==(r=i.height)&&void 0!==r?r:1,naturalWidth:null!==(a=i.width)&&void 0!==a?a:1,src:null!==(s=i.url)&&void 0!==s?s:"",fit:"contain"})})})})})});return(0,U.jsx)(Z.xu,{"data-test-id":`primary-variant-main-${t}`,display:"inlineBlock",height:Lt,rounding:1,width:Lt,children:c})}function zt(){const{logContextEvent:e}=(0,F.v)(),t=(0,ie.Xx)(),n=t&&t.primaryVariants.filter((e=>e.image)).length>0;if((0,i.useEffect)((()=>{e({event_type:120,component:14092})}),[n,e]),!t)return null;const{primaryVariants:o,primaryDimName:r}=t,a=o.slice(0,6).map((e=>{const n=e.value,i=e.value===t.selectedMap[r],o=e.image;return o?(0,U.jsx)(Mt,{dimension:r,color:n,isSelected:i,img:o,selectVariant:t.selectVariant},n):null})).filter(Boolean);if(o.length>6){const e=o.length-6;a.push((0,U.jsx)(Z.xu,{"data-test-id":"plus-number",display:"flex",height:Lt,rounding:1,width:Lt,justifyContent:"center",children:(0,U.jsxs)(Z.iP,{fullHeight:!0,fullWidth:!0,rounding:1,onTap:({event:e})=>{e.stopPropagation()},children:["+",e]})},6))}return(0,U.jsx)(Z.kC,{justifyContent:"start",alignItems:"center",gap:3,children:a})}function Bt({contentType:e,hasTextContent:t,pin:n,pinTitle:o,productCurrentPrice:r,productOriginalPrice:a,productRating:s,productShipping:l,showSource:c,showVisitSiteButton:d,surface:p,titleLines:h}){var _;const{logContextEvent:m}=(0,F.v)(),f=(0,L.ZP)(),{checkExperiment:g}=(0,J.F)(),{anyEnabled:v,group:y}=g("web_shopping_grid_metadata_ratings_shipping",{dangerouslySkipActivation:!0}),b=(null===(_=n.rich_summary)||void 0===_?void 0:_.url)||n.link;"shopping"!==e||y.includes("pwt")||g("web_shopping_grid_metadata_ratings_shipping");let x=null;if((0,ie.Xx)()){const{anyEnabled:e}=g("storefront_variant_pins");e&&(x=(0,U.jsx)(zt,{}))}const P=(0,Ot.Z)({url:b})?"nofollow":"none";return(0,U.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:Rt.productContainer},height:"100%",children:(0,U.jsx)(Z.kC,{direction:"column",flex:"grow",height:"100%",justifyContent:"between",children:t&&(0,U.jsxs)(i.Fragment,{children:[(0,U.jsx)(bt,{pin:n,surface:p,children:(0,U.jsxs)(Z.kC,{direction:"column",gap:1,children:[(a||r)&&(0,U.jsx)(Et,{currentPrice:r,disableLink:!0,originalPrice:a,pin:n,surface:p}),(0,u.qN)(n)&&(0,U.jsx)(Dt,{}),(0,u.SP)(n)&&(0,U.jsx)(Nt,{}),(0,U.jsx)(It,{disableLink:!0,numberOfLines:h,pin:n,pinTitle:o,surface:p}),c&&(0,U.jsx)(At,{disableLink:!0,pin:n,surface:p}),"shopping"===e&&v&&(s||Number.isFinite(null==l?void 0:l.free_shipping_value))&&(0,U.jsx)(jt.Z,{count:null==s?void 0:s.count,countFormat:"number",isGridView:!0,ratingValue:null==s?void 0:s.rating,shippingInfo:l}),x]})}),d&&b?(0,U.jsx)(Z.xu,{marginTop:2,children:(0,U.jsx)(Z.zx,{role:"link",fullWidth:!0,href:b,rel:P,onClick:()=>{m({event_type:12,view_type:1,view_parameter:3563})},target:"blank",text:f.bt("Visit site", "Visit site", "ShoppingList.Pin.CTA.Button.VisitSite.Text", undefined, true)})}):null]})})})}const Zt=(0,i.memo)((function({attributionType:e,blockClickEvents:t,board:n,contentType:i,feedbackData:o,feedbackType:r,hoverTransitionState:a,pin:s,pinNoteText:l,pinTitle:c,productCurrentPrice:d,productOriginalPrice:u,productRating:p,productShipping:h,setForcePrimary:_,showCarouselEllipsis:m,showFavoriteButton:f,showGroupBoardAvatar:g,showNativeReactions:v,showOverflowMenu:y,showPinStats:b,showSource:x,showTextContent:P,showVisitSiteButton:w,showAttribution:S=!0,surface:E,titleLines:A}){const T=c||x,I="shopping"===i?(0,U.jsx)(Bt,{contentType:i,hasTextContent:!!T,pin:s,pinTitle:c,productCurrentPrice:d,productOriginalPrice:u,productRating:p,productShipping:h,showSource:x,showVisitSiteButton:w,surface:E,titleLines:A}):(0,U.jsx)(kt,{attributionType:e,board:n,feedbackData:o,feedbackType:r,hasTextContent:!!T,hasTitleOrSource:!!T,hoverTransitionState:a,pin:s,pinNoteText:l,pinTitle:c,productCurrentPrice:d,productOriginalPrice:u,setForcePrimary:_,showCarouselEllipsis:m,showFavoriteButton:f,showGroupBoardAvatar:g,showNativeReactions:v,showOverflowMenu:y,showPinStats:b,showSource:x,showTextContent:P,showAttribution:S,surface:E,titleLines:A});return t?(0,U.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:{pointerEvents:"none"}},children:I}):(0,U.jsx)(Z.kC,{flex:"grow",children:(0,U.jsx)(ae.Z,{fullWidth:!0,children:I})})}));var Ft=n(685909),Ut=n(784590),Gt=n(990823);const Ht=(0,i.lazy)((()=>n.e(34979).then(n.bind(n,91540)))),Vt=(0,i.lazy)((()=>Promise.all([n.e(97270),n.e(78120),n.e(75690),n.e(71439),n.e(43473)]).then(n.bind(n,666258)))),Wt=(0,i.lazy)((()=>Promise.all([n.e(97270),n.e(51672),n.e(78120),n.e(46760),n.e(22347)]).then(n.bind(n,494424)))),$t=(0,i.lazy)((()=>Promise.all([n.e(97270),n.e(76030),n.e(22538)]).then(n.bind(n,450564)))),Kt=(0,i.lazy)((()=>n.e(1593).then(n.bind(n,331806))));function qt({derivedSaveButtonOptions:e,forcePrimaryContent:t,showEnabledSaveBehavior:n,onToggleFlyout:r,onToggleModal:a,pin:s}){const l=(0,ie.Xx)(),c=function(e){return(0,Ut.Z)(e?{name:"PinResource",options:{id:e}}:null)}(null==l?void 0:l.variantUrl),d=c&&c.data?c.data:s,{id:u,savedInfo:p}=d,h=(0,i.useRef)(!!p),_=(0,o.useSelector)((({experiences:e})=>{const t=e[1000294];return 502450===(null==t?void 0:t.experience_id)?t:null})),{saveBehaviorType:m}=(0,Gt.tY)(n);void 0!==m&&["classic","controlled","inline"].includes(e.type)&&(e=m);const{viewParameter:f,viewType:g}=(0,Y.E)(),v=(0,he.Z)(101,{element:0,object_id_str:u});let y=null;const b={onToggleModal:r,view:g,viewParameter:f,useLegoStyles:!0};if(!e.hidePinBetterSaveDropdown&&(_||n&&["classic","controlled"].includes(e.type))&&["classic","controlled","inline"].includes(e.type)){const{renderPinSaveTooltip:i}=e;y=(0,U.jsx)(T.Z,{name:"SafeSuspense_PinRepPrimaryContent_QuickSaveButton",children:(0,U.jsx)(N.Z,{children:(0,U.jsx)(ae.Z,{children:(0,U.jsx)($t,{experience:_||void 0,forcePrimaryContent:t,pin:d,renderPinSaveTooltip:i,showEnabledSaveBehavior:n,viewParameter:f})})})})}else if("classic"===e.type||"controlled"===e.type){const{renderPinSaveTooltip:t}=e;y=(0,U.jsx)(T.Z,{name:"SafeSuspense_PinRepPrimaryContent_PinSaveButton",children:(0,U.jsx)(N.Z,{children:(0,U.jsx)(Z.xu,{"data-test-id":"pin-save-button",maxWidth:"100%",children:(0,U.jsx)(ae.Z,{children:(0,U.jsx)(Vt,{onClickCallback:v,onToggleModal:a,oneTapSave:"controlled"===e.type?e:void 0,pin:d,renderPinSaveTooltip:t,renderSavedStatus:()=>!!p&&(0,U.jsx)(ae.Z,{children:(0,U.jsx)(Ft.Z,{isNewlySaved:!h.current,name:p.title,type:p.type,url:p.url})}),variant:"lego",viewParameter:f})})})})})}else if("inline"===e.type){const t=d,{initialSelection:n,onSave:i,renderPinSaveTooltip:o,hidePinBetterSaveDropdown:s}=e;y=(0,U.jsx)(T.Z,{name:"SafeSuspense_PinRepPrimaryContent_PinBetterSave",children:(0,U.jsx)(N.Z,{children:(0,U.jsx)(Z.xu,{"data-test-id":"better-save",children:(0,U.jsx)(ae.Z,{children:(0,U.jsx)(Wt,{initialSelection:n,onSave:i,onToggleFlyout:r,onToggleModal:a,pin:t,renderPinSaveTooltip:o,renderSavedStatus:({savedInfo:e})=>e&&(0,U.jsx)(ae.Z,{children:(0,U.jsx)(Ft.Z,{isNewlySaved:!h.current,name:e.title,type:e.type,url:e.url,shouldUseLegoStyles:!0})}),variant:"pin",viewParameter:f,hideDropdown:s})})})})})}else"persistentOneClickSave"===e.type?y=(0,U.jsx)(T.Z,{name:"SafeSuspense_PinRepPrimaryContent_PersistentOneClickSave",children:(0,U.jsx)(N.Z,{children:(0,U.jsx)(Z.xu,{"data-test-id":"persistent-one-click-save",children:(0,U.jsx)(ae.Z,{children:(0,U.jsx)(Ht,{...b,saveOptions:e,pin:d})})})})}):"promote"===e.type&&(y=(0,U.jsx)(Z.kC,{alignItems:"stretch",justifyContent:"end",children:(0,U.jsx)(T.Z,{name:"SafeSuspense_PinRepPrimaryContent_PinPromoteButton",children:(0,U.jsx)(N.Z,{children:(0,U.jsx)(Z.xu,{"data-test-id":"pin-promote-button",children:(0,U.jsx)(ae.Z,{children:(0,U.jsx)(Kt,{pin:d})})})})})}));return(0,U.jsx)(T.Z,{name:"PinRepPrimaryContent",children:(0,U.jsx)(Z.xu,{display:"flex",margin:3,children:y&&(0,U.jsx)(Z.xu,{marginStart:"auto",flex:"grow",children:y})})})}var Yt=n(64446),Xt=n(40706),Jt=n(876371),Qt=n(441707),en=n(118334);const tn={__style:{boxShadow:"inset 0 0 0 2px black,  inset 0 0 0 4px white",transition:"all 300ms ease"}};function nn({isSelected:e}){const t=(0,L.ZP)();return(0,U.jsx)(Z.xu,{bottom:!0,left:!0,position:"absolute",right:!0,rounding:4,top:!0,dangerouslySetInlineStyle:e?tn:{},children:(0,U.jsx)(Z.xu,{position:"absolute",bottom:!0,right:!0,padding:3,children:(0,U.jsx)(Z.xu,{alignItems:"center",color:e?"dark":"default",display:"flex",height:"24px",justifyContent:"center",rounding:2,width:"24px",dangerouslySetInlineStyle:{__style:{transition:"all 300ms ease"}},children:(0,U.jsx)(Z.JO,{accessibilityLabel:t.bt("Pin has been selected to be saved", "Pin is selected to be saved", "SectionSuggestionPin.iconOnPin.selectedPin", undefined, true),color:"inverse",icon:"check",size:12})})})})}var on=n(124364),rn=n(802933),an=n(674915),sn=n(944546),ln=n(428258),cn=n(172071);const dn={},un=e=>{cn.Z.increment("web_prefetch_via_xhr.attempt",1);const t=(0,de.Z)(e);return new Promise(((n,i)=>{if(window.navigator&&window.navigator.connection){const e=window.navigator.connection;e.saveData&&(cn.Z.increment("web_prefetch_via_xhr.saveDataOn",1),n()),/2g/.test(e.effectiveType)&&(cn.Z.increment("web_prefetch_via_xhr.poorConnection",1),n())}const o=new XMLHttpRequest;o.open("GET",e),o.onload=()=>{200===o.status?(dn[e]&&(dn[e].loaded=!0),cn.Z.increment("web_prefetch_via_xhr.load.success",1,{hostname:t.hostname||"unknown"}),n(o.response)):(cn.Z.increment("web_prefetch_via_xhr.load.error",1,{hostname:t.hostname||"unknown"}),i())},dn[e]||(o.send(),dn[e]={added:!0,xhr:o},cn.Z.increment("web_prefetch_via_xhr.xhrSent",1,{hostname:t.hostname||"unknown"}))}))},pn={},hn=(e,t)=>{const n="string"==typeof e?e:e.url;if(t&&n){const e="control"===t?"v3.pinimg.com":"v2.pinimg.com";return n.replace("v.pinimg.com",e)}return n};function _n(e,t){return(hn("https://v.pinimg.com/videos/mc/hls/",t)||"")+`${e.slice(0,2)}/${e.slice(2,4)}/${e.slice(4,6)}/${e}`}function mn(e){const{id:t}=e;t&&pn[t]&&pn[t].length>0&&pn[t].forEach((e=>{(e=>{dn[e]&&dn[e].xhr&&!dn[e].loaded&&(cn.Z.increment("web_prefetch_abort_xhr",1),dn[e].xhr.abort(),dn[e].aborted=!0)})(e)}))}function fn({autoplaySettingOff:e,blockClickEvents:t,fallbackColor:n,imageFit:o,imageHeightModifier:r,isDenseView:s,isHovering:l,isSocialSeasonalBoard:c=!1,onError:d,onLoad:u,pin:p,pinImageCrop:h,resolution:_="default",rootMargin:m,selectionState:f,showCarousel:g,showPromotedVideos:v,showUnavailablePin:y,surface:b}){const{contextLogData:x,slotIndex:P,viewParameter:w,viewType:S}=(0,Y.E)(),{checkExperiment:E}=(0,J.F)(),{group:A}=E("web_prefetch_video_in_feed"),{id:T="",aggregated_pin_data:I,image_signature:C,story_pin_data:R}=p,{pin_tags_chips:k}=I||{},{isOneTap:O,isVideo:D,isPromoted:j,isGif:N}=(0,a.Z)(p),{cropHeight:L,cropWidth:M}=(e=>"string"==typeof e?{cropHeight:0,cropWidth:0}:{cropHeight:e.height,cropWidth:e.width})(h);let z=null;if(y)z=(0,U.jsx)(on.Z,{isDenseView:s,height:s?250:420,rounding:0,width:s?164:236});else if(e||!D||!v&&j||"BoardCoverSelectablePin"===b)if(g)z=(0,U.jsx)(Z.xu,{"data-test-id":"pinrep-carousel",children:(0,U.jsx)(Jt.Z,{cropHeight:L,cropWidth:M,onError:d,onLoad:u,highResOnly:"high-res"===_,lowResOnly:"low-res"===_,pinId:T,showCarouselBadge:!1,pin:p})});else{const e="backend"===h?function({images:e,image_crop:t}){var n;const i=e&&(null===(n=e["236x"])||void 0===n?void 0:n.height);if(t&&(0!==t.min_y||1!==t.max_y)){const{min_y:e=0,max_y:n=0}=t;return{marginTop:(e>0?-1*e*(null!=i?i:0):0)+"px",marginBottom:`${n<1?Math.round(-1*(1-n)*(null!=i?i:0)):0}px`}}return{}}(p):{};z=(0,U.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:e},"data-test-id":"pinrep-image",minHeight:55,children:(0,U.jsx)(Qt.Z,{animateGif:N&&c,cropHeight:L,cropWidth:M,fallbackColor:n,imageFit:o,highResOnly:"high-res"===_,lowResOnly:"low-res"===_,mediumResOnly:"medium-res"===_,onLoad:u,onError:d,pin:p})})}else z=(0,U.jsx)(Z.xu,{"data-test-id":"pinrep-video",direction:"column",display:"flex",height:L||void 0,justifyContent:"center",children:(0,U.jsx)(en.Z,{cropHeight:L,cropWidth:M,highResOnly:"high-res"===_,imageHeightModifier:r,inAdsDesktopVideoExperiment:D&&v,isExperimentalPinRep:!0,lowResOnly:"low-res"===_,onError:d,onLoad:u,pin:p,rootMargin:m,surface:b,viewParameter:w,viewType:S})});const B=(0,U.jsx)(Z.zd,{wash:!0,children:(0,U.jsx)(le.Z,{hovered:l,pin:p,slotIndex:P,viewType:1,children:z})}),F=["selected-image-only","deselected-image-only"].includes(f),G="selected-image-only"===f,H=(0,i.useRef)(!0),V=(0,i.useRef)(!1),W=(0,i.useRef)(!1),$=E("web_video_quic").group;if((0,i.useEffect)((()=>{H.current||!l||O||t||V.current?l||!V.current||W.current||(mn(R||p),W.current=!0):R?(!function(e,t){var n;const{id:i,pages:o,pages_preview:r}=e;if(!r&&!o)return;const a=r?r[0]:null==o?void 0:o[0],s=null==a||null===(n=a.blocks)||void 0===n?void 0:n.find((e=>3===e.block_type));if(s&&s.video){const{hlsv3:e,mp4:n}=(0,ln.Z)(s.video)||{},o=n||e;if(o&&i){var l;const e=null!==(l=hn(o,t))&&void 0!==l?l:"";pn[i]=pn[i]?pn[i].concat(e):[e],un(e)}}}(R,$),V.current=!0):(!function(e,t){const{id:n,videos:i}=e,{video_list:o}=i||{},r=(0,rn.Z)({pin:e}),{video:a}=(0,an.Z)(r)||{},{hls:s,hlsv3:l}=a||{};if(o){const e=(0,ln.t)(o)||{},i=l||s||{};if(i.url){var c;const e=null!==(c=hn(i.url,t))&&void 0!==c?c:"";pn[n]=pn[n]?pn[n].concat(e):[e],un(e).then((e=>{let i=[];if("string"==typeof e&&(i=e.split("\n").filter((e=>e.endsWith(".m3u8")))),i&&i[sn.VS]){const e=_n(i[sn.VS],t);return pn[n]=pn[n].concat(e),un(null!=e?e:"")}return null})).then((e=>{let i=[];if("string"==typeof e&&(i=e.split("\n").filter((e=>e.endsWith(".ts")))),i&&i[0]){const e=_n(i[0],t);return pn[n]=pn[n].concat(e),un(null!=e?e:"")}return null}))}else if(e.url){var d;const i=null!==(d=hn(e.url,t))&&void 0!==d?d:"";un(i),pn[n]=pn[n]?pn[n].concat(i):[i]}}}(p,$),V.current=!0),H.current=!1}),[t,l,O,R,p,A,$]),t)return(0,U.jsxs)(i.Fragment,{children:[B,F&&(0,U.jsx)(nn,{isSelected:G}),k&&(0,U.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:{marginTop:1}},children:(0,U.jsx)(Xt.Z,{pin:p,enableCloseupLink:!0})})]});const{commerce_data:K,story_type:q,board_id:X,board_pin_count:Q}=x||{},ee=["RelatedProductsExploreTab","RelatedProductsFeed"].includes(b);return(0,U.jsxs)(bt,{contextLogData:{commerce_data:ee?K:void 0,grid_index:P,image_signature:C,story_type:q,board_id:X,board_pin_count:Q},elementType:R?12372:35,pin:p,surface:b,children:[B,k&&(0,U.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:{marginTop:1}},children:(0,U.jsx)(Xt.Z,{pin:p,enableCloseupLink:!1})})]})}var gn=n(2396),vn=n(946984);const yn=(0,gn.Z)((({handleSendShareFlyoutButtonClick:e})=>{const t=(0,L.ZP)(),n=(0,vn.Z)();return(0,U.jsx)(Z.zx,{fullWidth:!0,onClick:({event:t})=>{t.stopPropagation(),n?n():e()},text:t.bt("Send", "Send", "Send a pin", undefined, true),color:"gray",accessibilityLabel:t.bt("Send", "Send", "Accessible label to send a pin", undefined, true)})}));function bn(e){return e<160?"header-only":"none"}function xn(e){const[t,n]=(0,i.useState)(e.current?bn(e.current.clientHeight||0):"none");return function(e,t){const n=(0,i.useRef)();(0,i.useEffect)((()=>{const i=e.current;if(!i)return;const o=n.current;o&&o.width===i.offsetWidth&&o.height===i.offsetHeight||(n.current={width:i.offsetWidth||0,height:i.offsetHeight||0},t&&t(n.current))})),n.current}(e,(({height:e})=>{const i=bn(e);i!==t&&n(i)})),t}var Pn=n(485308),wn=n(704115);const Sn={impressed:{backgroundColor:"#adebad"}};function En({debugImpressionState:e="paused",slotIndex:t}){return"paused"===e?null:(0,U.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:Sn.impressed},"data-test-id":"debug-pin-impressions",position:"absolute",top:!0,left:!0,right:!0,bottom:!0,opacity:.5,children:(0,U.jsx)(Z.xu,{position:"absolute",top:!0,left:!0,padding:2,color:"selected",children:(0,U.jsx)(Z.xv,{color:"inverse",children:(0,U.jsx)("span",{className:"deprecatedTextSizeXL",children:t})})})})}var An=n(43671),Tn=n(841509),In=n(525199),Cn=n(310227);const Rn="#000000",kn="#ffffff";function On({selected:e=!1}){const t=(0,L.ZP)(),{isRTL:n}=(0,ye.B)();return(0,U.jsx)(Z.xu,{position:"absolute",top:!0,left:!0,bottom:!0,right:!0,zIndex:new Z.Ry(1),"data-test-id":"pinRepSelectionBorder",dangerouslySetInlineStyle:{__style:{borderWidth:"3px",borderStyle:"solid",borderColor:e?Rn:kn,borderRadius:Cn.Oc,boxShadow:e?"inset 0 0 0 3px #fff":void 0}},children:e?(0,U.jsx)(Z.xu,{position:"absolute",bottom:!0,right:!n,left:n,display:"flex",alignItems:"center",justifyContent:"center",margin:3,rounding:2,height:24,width:24,color:"dark",children:(0,U.jsx)(Z.JO,{accessibilityLabel:t.bt("Tick icon", "Check icon", "pinRepSelectionBorder.checkIcon", undefined, true),icon:"check",color:"inverse",size:12})}):(0,U.jsx)(Z.xu,{right:!n,left:n,position:"absolute",top:!0,margin:3,children:(0,U.jsx)(Z.JO,{accessibilityLabel:t.bt("Handle icon", "Handle icon", "pinRepSelectionBorder.handleIcon", undefined, true),icon:"handle",color:"light",size:24})})})}const Dn={wrapper:{borderRadius:Cn.Oc,WebkitMaskImage:"-webkit-radial-gradient(white, black)"},promotedPinBorderTreatment:{background:"#EFEFEF",padding:4,borderRadius:20},primaryContentContainer:{marginBottom:"auto"},visualOverlay:{backgroundColor:Cn.Dv.VISUAL},savedOverlay:{backgroundColor:Cn.Dv.SAVED},legoWashOverlay:{backgroundColor:Cn.Dv.LEGO_WASH}};function jn({children:e,savedOverlayVisibility:t="none",visualOverlayVisibility:n="none",handleMouseOverPinContent:i,handleMouseLeavePinContent:o,primaryContent:r,primaryContentVisibility:a="none",secondaryContent:s,secondaryContentVisibility:l="none",accessoryContent:c,accessoryContentVisibility:d="none",actionBar:u,actionBarVisibility:p="none",seeStatsButton:h,footer:_,selectionState:m="no-selection",debugContent:f,signalDebuggerContent:g,signalDebuggerV2Content:v,signalDebuggerV2ContentVisibility:y="none",obscuredPinOverlay:b,showNoPinBorderRadius:x,showPromotedPinBorderTreatment:P,shouldUseLegoWash:w}){return(0,U.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:P?Dn.promotedPinBorderTreatment:{}},height:"100%","data-test-id":"pinRepPresentation",children:(0,U.jsxs)(Z.xu,{dangerouslySetInlineStyle:{__style:x?{}:Dn.wrapper},"data-test-id":"pinWrapper",display:"flex",direction:"column",height:"100%",overflow:"hidden",position:"relative",children:[["selected","deselected"].includes(m)&&(0,U.jsx)(On,{selected:"selected"===m}),(0,U.jsxs)(Z.xu,{"aria-hidden":Boolean(b),children:[(0,U.jsxs)(Z.xu,{dangerouslySetInlineStyle:{__style:x?{}:Dn.wrapper},overflow:"hidden",position:"relative",onFocus:i,onBlur:o,onMouseEnter:i,onMouseLeave:o,children:[e,(0,U.jsx)(In.Z,{visibility:n,children:(0,U.jsx)(Tn.Z,{additionalStyles:w?Dn.legoWashOverlay:Dn.visualOverlay})}),(0,U.jsx)(In.Z,{visibility:t,children:(0,U.jsx)(Tn.Z,{additionalStyles:w?Dn.legoWashOverlay:Dn.savedOverlay})}),c&&(0,U.jsx)(In.Z,{visibility:d,children:(0,U.jsx)(Tn.Z,{children:c})}),s&&(0,U.jsx)(In.Z,{visibility:l,children:(0,U.jsx)(Tn.Z,{children:s})}),r&&(0,U.jsx)(In.Z,{visibility:a,children:(0,U.jsx)(Tn.Z,{children:r})}),v&&(0,U.jsx)(In.Z,{visibility:y,children:(0,U.jsx)(Tn.Z,{children:(0,U.jsx)(Z.xu,{position:"absolute",left:!0,bottom:!0,marginBottom:12,marginStart:2,children:v})})}),u&&(0,U.jsx)(In.Z,{visibility:p,children:(0,U.jsx)(Tn.Z,{children:(0,U.jsx)(Z.xu,{position:"absolute",left:!0,right:!0,bottom:!0,children:u})})}),h&&(0,U.jsx)(Tn.Z,{children:(0,U.jsx)(Z.xu,{position:"absolute",bottom:!0,children:h})}),f&&(0,U.jsx)(Tn.Z,{children:f}),g]}),_]}),b&&(0,U.jsx)(Z.xu,{children:b})]})})}function Nn(e){return"active"===e?"visible":"inactive"===e?"none":"hidden"}function Ln(...e){return e.includes("visible")?"visible":e.includes("hidden")?"hidden":"none"}const Mn=(0,i.memo)((function({actionBarProps:e,blockClickEvents:t,borderStyle:n,currentlyPlayingVideo:o,disableHover:r=!1,footerProps:a,impressionsDebuggerProps:l,obscuredPinOverlayProps:c,onError:d,onLoad:u,pin:p,pinVisualProps:h,presentationProps:_,primaryContentProps:m,rounding:f,secondaryContentProps:g,authDesktopSelectionState:v,showFooter:y,showImpressionsDebugger:b,showObscuredPinOverlay:x,showSeeStatsButton:P,showSignalDebugger:w,showUnavailablePin:S,surface:E,visibilityOverrides:A,imageHeightModifier:I}){var C,R;const{savedInfo:k}=p,{viewType:O}=(0,Y.E)(),{showEnabledSaveBehavior:j}=(0,Gt.Yh)(s.ZF.includes(E)||(0,D.Z)(E)),[N,L]=(0,i.useState)(!1),M=(0,Ct.Z)(N);let{isHovering:z,hoverTransitionState:B,handleMouseOver:F,handleMouseLeave:G}=function(){const[e,t]=(0,i.useState)(!1);return{isHovering:e,hoverTransitionState:(0,Ct.Z)(e,0,Ct.X),handleMouseOver:(0,i.useCallback)((()=>t(!0)),[t]),handleMouseLeave:(0,i.useCallback)((()=>t(!1)),[t])}}();r&&(z=!1,B="inactive");const H=(0,Ct.Z)(!!k),V=Nn(H),W=Nn(B),K=Nn(B),q=Nn(M),X=Nn(H),J=["HomefeedMoreIdeasTabs","BoardMoreIdeasTabContent"].includes(E),Q="visible"!==V||J?V:"none",ee={primaryContentVisibility:null!==(C=A.primaryContent)&&void 0!==C?C:Ln(K,q,"visible"===X?"none":X),secondaryContentVisibility:(te=Ln(K,q,X),"none"===te?"visible":"visible"===te?"none":"hidden"),actionBarVisibility:Ln(K,q),accessoryContentVisibility:"none",signalDebuggerV2ContentVisibility:"visible"};var te;const ne=e=>L(e),ie=e=>L(e),oe=e=>{L(e),e||G()};let re=null;"none"!==ee.primaryContentVisibility&&(re=(0,U.jsx)(qt,{forcePrimaryContent:ne,showEnabledSaveBehavior:j,onToggleFlyout:ie,onToggleModal:oe,pin:p,...m}));let se=null;const le=(0,i.useRef)(!0),ce=le.current;le.current=!1;const de=function(e,t){const{carousel_data:n}=e,{index:o}=n||{},[r,a]=(0,i.useState)(!n||t),s=(0,i.useRef)(o),l=(0,i.useRef)(null);if(n){const e=s.current;s.current=o,(o!==e||t)&&(l.current&&clearTimeout(l.current),a(!0),l.current=setTimeout((()=>{a(!1),l.current=null}),4e3))}return(0,i.useEffect)((()=>()=>{l.current&&clearTimeout(l.current)}),[]),r}(p,ce),ue=Nn((0,Ct.Z)(de));ee.secondaryContentVisibility=null!==(R=A.secondaryContent)&&void 0!==R?R:function(...e){return e.includes("none")?"none":e.includes("hidden")?"hidden":"visible"}(ee.secondaryContentVisibility,ue),se=(g.allowShoppingPriceIndicator||g.shoppingLabelColor||"none"!==ee.secondaryContentVisibility)&&!o&&(0,U.jsx)(Z.xu,{margin:2,children:(0,U.jsx)(Yt.Z,{pin:p,...g})});let pe=null;"visible"===A.accessoryContent&&(pe=(0,U.jsx)(Ie,{pin:p}),ee.accessoryContentVisibility=Nn(B)),h.isSocialSeasonalBoard&&(e.showShareButton=!1);let he=null;P&&(e.showSourceLinkButton=!1,he=(0,U.jsx)(ae.Z,{children:(0,U.jsx)($,{pinId:p.id,surface:E})}));const _e="visible"===A.actionBar?(0,U.jsx)(Se,{onToggleFlyout:ie,pin:p,setForcePrimary:L,surface:E,...e}):null;let me=null;(y||(0,D.Z)(E))&&(me=(0,U.jsx)(Zt,{blockClickEvents:t,hoverTransitionState:"image-only-credit"===a.attributionType?B:null,pin:p,setForcePrimary:L,surface:E,...a})),h.isSocialSeasonalBoard&&(me=(0,U.jsx)(Z.xu,{"data-test-id":"social-seasonal-footer",marginTop:2,marginBottom:3,width:"100%",children:(0,U.jsx)(Z.xu,{margin:"auto",width:Pn.J,children:(0,U.jsx)(yn,{isFlyoutOpen:N,onFlyoutDismiss:()=>ie(!N),onToggleFlyout:()=>ie(!N),pinId:p.id,sendType:"pin",shownWithinMasonry:!0,viewType:O,element:72,component:13752})})}));const fe=b&&(0,U.jsx)(En,{...l}),ge=w&&p.debug_info_html&&(0,U.jsx)(Z.xu,{paddingY:1,children:(0,U.jsx)("pre",{children:p.debug_info_html})}),ve=(0,U.jsx)(Ce.Z,{pin:p}),ye=(0,i.useRef)();"header-only"===xn(ye)&&(ee.actionBarVisibility="none",ee.accessoryContentVisibility="none");const be=x?(0,U.jsx)(An.ZP,{pin:p,...c}):null,xe="ShoppingGridShippedMetadataWithVisitButton"===E?{height:"100%"}:{},Pe=y&&"default"===a.attributionType&&s.ZF.includes(E),we=!p.is_promoted&&!r&&Pe;return(0,U.jsx)(T.Z,{name:"PinRepContainer",children:(0,U.jsx)(Z.xu,{"data-test-id":"pin","data-test-pin-id":p.id,onFocus:F,onBlur:G,onMouseEnter:F,onMouseLeave:G,dangerouslySetInlineStyle:{__style:xe},rounding:"ConversationView"===E?f:void 0,borderStyle:"ConversationView"===E?n:"none",overflow:"ConversationView"===E?"hidden":"visible",children:(0,U.jsx)(jn,{visualOverlayVisibility:W,savedOverlayVisibility:Q,handleMouseOverPinContent:we?F:()=>{},handleMouseLeavePinContent:we?G:()=>{},primaryContent:re,primaryContentVisibility:ee.primaryContentVisibility,secondaryContent:se,secondaryContentVisibility:ee.secondaryContentVisibility,accessoryContent:pe,accessoryContentVisibility:ee.accessoryContentVisibility,actionBar:_e,actionBarVisibility:ee.actionBarVisibility,seeStatsButton:he,footer:me,selectionState:v,debugContent:fe,signalDebuggerV2Content:ve,signalDebuggerV2ContentVisibility:ee.signalDebuggerV2ContentVisibility,signalDebuggerContent:ge,obscuredPinOverlay:be,..._,children:(0,U.jsx)(Z.xu,{height:"100%",ref:ye,children:(0,U.jsx)(fn,{blockClickEvents:t,showUnavailablePin:S,isHovering:z,onError:d,onLoad:u,pin:p,surface:E,selectionState:v,imageHeightModifier:I,...h})})})})})}));var zn=n(231947),Bn=n(53987);const Zn=(0,i.lazy)((()=>Promise.all([n.e(97270),n.e(76030),n.e(46760),n.e(92982)]).then(n.bind(n,576070)))),Fn=["ArticleProductsStory","BoardCoverSelectablePin","BoardNoteSelectablePin","BulkEditMode","CommentReply","EngagementDetails","IdeasHubSeasonalRow","OtherProfilePinGrid","SectionSuggestedPins","SelectableBoardlessPin","TopicBestPinNarrow","TopicBestPinWide"],Un=["BaseBoardPinGrid","UserProfilePinGrid",...G];function Gn({attributionOption:e,blockClickEvents:t,debugImpressionState:n,disableReaction:u,feedback:p,imageOnlyOption:h="default",pin:_,pinId:f,pinImageCrop:Z,pinImageFit:F,resolution:G="default",saveButtonOptions:H,authDesktopSurface:V,trackingParameters:W,...$}){var ae,se,le,ce,de,ue,pe,he;const me=(0,te.S6)()(f)||_,fe=null!==(ae=null===(se=me.board)||void 0===se?void 0:se.id)&&void 0!==ae?ae:"",ge=(0,ee.gC)()(fe)||me.board;me.grid_title=me.grid_title||_.grid_title;const ve=(0,L.ZP)(),ye=(0,J.F)(),{checkExperiment:be}=ye,{collaborated_by_me:xe,collaborator_count:Pe,is_collaborative:we}=ge||{},{is_quick_promotable:Se,pinner:Ee,showFeedback:Ae,sponsorship:Te}=me,{isPromoted:Ie}=(0,a.Z)(me),Ce=(0,k.Z)(me),Re=(0,B.Z)(),ke=(0,M.Z)(),{anyEnabled:Oe}=be("web_m10n_business_access_orbac_www"),{anyEnabled:De}=be("web_m10n_business_access_orbac_ga"),je=De?(0,zn.lJ)(Re,ke):"",Ne=(0,_e.useLocation)(),{slotIndex:Le,viewParameter:Me}=W,ze=["AuthHomefeed","BaseBoardPinGrid"].includes(V)&&be("web_repin_flow").anyEnabled,Be=(0,oe.x)(),Ze=(0,ne.P)(),{appUI:{videosAutoplaying:Fe}}=(0,X.I)(),Ue=(0,j.Z)(me.id,Fe),Ge=(0,o.useSelector)((({changeBoardFromToast:e})=>e))||{},He=function(e){const t=e.rich_metadata&&e.rich_metadata.products&&e.rich_metadata.products[0]&&e.rich_metadata.products[0].additional_images;return!!(t&&t.length>0)}(me),Ve=(0,C.Z)(me),We=Re.isAuth&&Re.isEmployee,$e=Re.isAuth&&((0,R.Z)(Re.createdAt)||(0,O.Z)(null,Re))&&!Re.isPartner;let Ke=$e;"TodayArticleFeed"===V&&(Ke=!1),"default"!==h&&(Ke="image-only"===h),(0,D.Z)(V)&&(Ke=!1),"ShoppingSquareGridDomainNoMetadata"===V&&(Ke=!0);let qe=e;($e&&!qe||Ze)&&(qe="image-only");const Ye=(0,I.Z)({feedbackOptions:p,pin:me,viewParameter:Me},ve),{data:Xe}=p||{},Je="number"==typeof Pe&&Pe>0||we;let Qe=!1;"OtherProfilePinGrid"===V?Qe=!0:"BaseBoardPinGrid"===V?Qe="dense"===(null==Be?void 0:Be.boardPinDensity):"UserProfilePinGrid"===V&&(Qe="dense"===(null==Be?void 0:Be.profilePinDensity));const et=Boolean(Je&&"BaseBoardPinGrid"===V),tt=(0,z.Z)(),nt=(0,re.kW)(),it=nt&&nt[null!==(le=null===(ce=tt.data)||void 0===ce?void 0:ce.id)&&void 0!==le?le:""]?nt[null!==(de=null===(ue=tt.data)||void 0===ue?void 0:ue.id)&&void 0!==de?de:""]:tt.data,ot=(0,A.Z)(Re,ge);let rt=!1;if(!!(0,_e.matchPath)(Ne.pathname,{path:"/:username/_created/",exact:!0}))rt=(0,zn.q6)(Re,null==it?void 0:it.id,ke);else if((0,Bn.am)(Ne)||(0,Bn.OJ)(Ne)){const e=ge&&ge.owner&&ge.owner.id||"";rt=(0,zn.q6)(Re,e,ke)}const at=Boolean(Re.isAuth&&Ee&&Ee.id===Re.id),st=Boolean(xe||Je&&ot),lt=Re.isAuth&&Re.isPartner,ct=!(null===(pe=me.story_pin_data)||void 0===pe||!pe.is_deleted),dt=(0,i.useMemo)((()=>function({hasCarouselData:e,isDeletedStoryPin:t,surface:n}){const i={primaryContent:null,secondaryContent:null,actionBar:E.includes(n)||t?"none":"visible",accessoryContent:e?"visible":"none"};return t||S.includes(n)?(i.primaryContent="none",i.secondaryContent="none"):["HomefeedMoreIdeasTabs","BoardMoreIdeasTabContent"].includes(n)&&(i.primaryContent="visible"),i}({hasCarouselData:Ve,isDeletedStoryPin:ct,surface:V})),[Ve,ct,V]),ut=(0,i.useMemo)((()=>function({board:e,isDenseView:t,isGroupBoard:n,isInlineBetterSave:i,isOwnBoard:o,isORBACProfileManager:r,isQuickPromotable:a,isRemovable:l,saveButtonOptions:c,surface:d,viewer:u,viewerIsCollaborator:p}){const h=u.isAuth?u.boardCount:void 0;let _=c||function(e=0){return 0===e?{type:"classic"}:{type:"inline"}}(h);a?_={type:"promote"}:(p||o||["OtherProfilePinGrid","UserProfilePinGrid"].includes(d))&&!["BoardlessPins","CreatorProfileActivityPinGrid","CreatorProfileStoryPinGrid","BaseBoardPinGrid"].includes(d)?_={type:"classic"}:(p||o)&&["BaseBoardPinGrid"].includes(d)&&null!=e&&e.name&&e.url&&e.id&&(_={type:"inline",initialSelection:{title:e.name,boardId:e.id,url:e.url}});return i&&(_={type:"inline",hidePinBetterSaveDropdown:"BaseBoardPinGrid"===d}),(l||w.includes(d)||r)&&(_={type:"none"}),{board:e,derivedSaveButtonOptions:_,showLikeButton:p&&n&&s.UP.includes(d),supportsReactionBar:!t}}({board:ge,isInlineBetterSave:ze,isDenseView:Qe,isGroupBoard:et,isOwnBoard:ot,isOwnPin:at,isORBACProfileManager:rt,isQuickPromotable:Se,isRemovable:Ce,saveButtonOptions:H,surface:V,viewer:Re,viewerIsCollaborator:st})),[ge,ze,Qe,et,ot,at,rt,Se,Ce,H,V,Re,st]),{anyEnabled:pt}=be("web_shopping_grid_metadata_ratings_shipping",{dangerouslySkipActivation:!0});let ht;["ShoppingDynamicHeightGrid","ShoppingGridShippedMetadata","ShoppingSquareGridStorefront","ShoppingSquareGridStorefrontDomain","ShoppingSquareGridDomain","ShoppingSquareGridDomainNoMetadata","ShoppingGridShippedMetadataWithVisitButton"].includes(V)&&!Ie&&(ht="white");const _t=(0,i.useMemo)((()=>function({allowProductCarousel:e=!1,shoppingLabelColor:t,surface:n}){return{allowProductCarousel:e,allowShoppingPriceIndicator:s.Wv.includes(n),shoppingLabelColor:t}}({allowProductCarousel:He,shoppingLabelColor:ht,surface:V})),[He,ht,V]),mt=(0,i.useMemo)((()=>function({board:e,feedbackData:t,feedbackType:n,isDenseView:i,isGroupBoard:o,isOwnBoard:s,isORBACProfileManager:u,isORBACBeta:p,isORBACGA:h,pin:_,isRemovable:m,surface:f,viewer:g}){var v;const{isOwnPin:y,isPromoted:b}=(0,a.Z)(_),x=l({isGroupBoard:o,pin:_,surface:f}),P=e&&(0,r.Z)({action:4,board:e,viewer:g})||y,w=_.savedInfo&&_.savedInfo.localPinId,S=Boolean(s&&!o||"UserProfilePinGrid"===f&&P||w),E=Boolean(o&&P||S||u&&(!(0,c.hy)(_.story_pin_data_id)||p)),A=Boolean((null==e?void 0:e.is_collaborative)||S),T=!(b||s||o||d.includes(f)||u),I=(({surface:e,isORBACProfileManager:t,isORBACGA:n,isRemovable:i})=>"CloseupRelatedProducts"!==e&&!i&&(!t||null==n||n))({surface:f,isORBACProfileManager:u,isORBACGA:h,isRemovable:m}),{tracked_link:C,link:R}=_,k=!(null===(v=null!=C?C:R)||void 0===v||!v);let O=o&&i?"equally-spaced":"default",D="default";return i&&(D=o?"icon-only":"truncated-text"),i&&["UserProfilePinGrid","BaseBoardPinGrid","BoardlessPins"].includes(f)&&(D="icon-only",O="equally-spaced"),{actionBarEditBeforeShare:A,feedbackData:t,feedbackType:n,layout:O,pinTitle:x,showEditButton:E,showOverflowMenu:T,showShareButton:I,showSourceLinkButton:k,sourceLinkStyle:D}}({board:ge,feedbackData:Xe,feedbackType:Ye,isDenseView:Qe,isGroupBoard:et,isOwnBoard:ot,isORBACProfileManager:rt,isORBACBeta:Oe,isORBACGA:De,isRemovable:Ce,pin:me,surface:V,viewer:Re})),[ge,Xe,Ye,Qe,et,ot,rt,Oe,De,Ce,me,V,Re]),ft=(0,m.rh)(me,Re,ye,je)&&Un.includes(V)&&(at||De&&rt),gt=["ShoppingCatalogsProductsMetadata","ShoppingDynamicHeightGrid","ShoppingSquareGridDomain","ShoppingSquareGridDomainNoMetadata","ShoppingGridShippedMetadata","ShoppingGridShippedMetadataWithVisitButton","ShoppingSquareGridStorefront","ShoppingSquareGridStorefrontDomain"].includes(V),vt=!Ie&&gt?"shopping":"standard";let yt=(u||"CreatorProfileStoryPinGrid"!==V||at)&&(0,K.J6)(me,ct);const bt=(0,ie.Xx)();yt=!Ze&&yt;const xt=(0,i.useMemo)((()=>g({attributionOption:qe,board:ge,contentType:vt,experimentsClient:ye,feedbackData:Xe,feedbackType:Ye,hasCarouselData:Ve,isGroupBoard:et,isORBACProfileManager:rt,isOwnBoard:ot,pin:me,showImageOnly:Ke,showNativeReactions:yt,showPromotedShoppingPrice:pt&&Ie&&gt,surface:V,viewer:Re,variantData:bt})),[qe,ge,vt,ye,Xe,Ye,Ve,et,rt,ot,Ie,gt,me,pt,Ke,yt,V,Re,bt]),Pt=!!me.story_pin_data_id,wt=me.created_at?new Date(me.created_at):null,St=(0,Q.pN)({isOwnPin:at,isStoryPin:Pt,pinCreationDate:wt,surface:V});let Et=Boolean(xt.pinTitle||xt.contentType||xt.userNote||xt.showSource||"none"!==xt.attributionType||xt.showNativeReactions||xt.productCurrentPrice||xt.productOriginalPrice||xt.showPinStats)||et;"BaseBoardPinGrid"===V&&ot&&lt||Te?Et=!0:Fn.includes(V)||Qe&&(ot||xe)?Et=!1:at||"CreatorProfileStoryPinGrid"!==V&&"CreatorProfileActivityPinGrid"!==V||(Et=!1),!Ze||Ie||Te||(Et=!1);const At=Boolean(Ae),Tt={showNoPinBorderRadius:"TopicBestPinNarrow"===V||"TopicBestPinWide"===V||"ConversationView"===V,showPromotedPinBorderTreatment:"BaseBoardPinGrid"===V&&Ie,shouldUseLegoWash:!0},It={feedbackType:Ye},{anyEnabled:Ct}=be("ads_desktop_video_ads",{dangerouslySkipActivation:!0}),Rt=(0,i.useMemo)((()=>function({hasCarouselData:e,isDenseView:t,isSocialSeasonalBoard:n,pinImageCrop:i,pinImageFit:o,resolution:r,showPromotedVideos:a,surface:l}){const c=s.zl.includes(l);let d="backend";"CloseupRelatedProducts"===l?d={height:P.GZ,width:P.OE}:"TopicBestPinWide"===l?d={height:x.m9,width:x.BS}:"TopicBestPinNarrow"===l?d={height:x._5,width:x.A6}:["ArticleProductsStory","ShoppingSquareGridCrop","ShoppingSquareGridDomainNoMetadata"].includes(l)||c?d={height:P.zX,width:P.zX}:i&&(d=i);let u="none",p=null!=r?r:"default";"string"!=typeof d&&(u="cover",(c||"ShoppingDynamicHeightGrid"===l&&!o||"ShoppingSquareGridDomainNoMetadata"===l)&&(u="contain",p="high-res"));const h=c||["ShoppingSquareGridDomainNoMetadata","ShoppingDynamicHeightGrid"].includes(l)?"transparent":"dominant",_=(0,y.e)(l);return{autoplaySettingOff:"undefined"!=typeof window&&0===b.Xb.getItem(v.Z.VIDEO_AUTOPLAY_LOCAL_STORAGE_KEY),fallbackColor:h,imageFit:u,isDenseView:t,isSocialSeasonalBoard:n,resolution:p,rootMargin:_,pinImageCrop:d,showCarousel:e&&!["ShoppingSquareGridStorefrontDomain","ShoppingSquareGridStorefront"].includes(l),showPromotedVideos:a}}({hasCarouselData:Ve,isDenseView:Qe,isPromoted:Ie,isSocialSeasonalBoard:!1,pinImageCrop:Z,pinImageFit:F,resolution:G,showPromotedVideos:Ct,surface:V})),[Ve,Qe,Ie,Z,F,G,Ct,V]),kt=We&&void 0!==(0,wn.Z)().debug_impression_log,Ot=(0,i.useMemo)((()=>({debugImpressionState:n,slotIndex:Le})),[n,Le]),Dt=(0,i.useMemo)((()=>({surface:V})),[V]);return(0,U.jsx)(T.Z,{name:"PinRepConfiguration",children:(0,U.jsx)(Y.B,{value:W,children:(0,U.jsxs)(q.B,{value:Dt,children:[(0,U.jsx)(Mn,{actionBarProps:mt,blockClickEvents:t,currentlyPlayingVideo:Ue,footerProps:xt,impressionsDebuggerProps:Ot,obscuredPinOverlayProps:It,pin:me,pinVisualProps:Rt,presentationProps:Tt,primaryContentProps:ut,secondaryContentProps:_t,showFooter:Et||St,showImpressionsDebugger:kt,showObscuredPinOverlay:At,showSeeStatsButton:ft,showSignalDebugger:We,showUnavailablePin:ct,surface:V,visibilityOverrides:dt,...$}),Ge.shouldOpenModal&&Ge.newPin&&(null===(he=Ge.originalPin)||void 0===he?void 0:he.id)===me.id&&(0,U.jsx)(T.Z,{name:"SafeSuspense_PinRepConfiguration_ChangeBoardModal",children:(0,U.jsx)(N.Z,{children:(0,U.jsx)(Zn,{experience:Ge.experience,newPin:Ge.newPin})})})]})})})}},656226:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var i=n(667294),o=n(564194),r=n(768559),a=n(605028),s=n(868565),l=n(905723),c=n(152028),d=n(883119),u=n(785893);const p={overlay:{__style:{backgroundColor:"#000"}}};function h(e){var t,n,o,r;const{pin:{id:a,images:s,title:h,videos:_,video_status_message:m}}=e,f=m||{},g=s&&s["236x"],v=_&&(null===(t=_.video_list)||void 0===t?void 0:t[l.Z.V_HLSV4]),{duration:y}=v||{};return(0,u.jsx)(i.Fragment,{children:(0,u.jsx)(d.Zb,{children:(0,u.jsxs)(d.iP,{role:"link",href:`/pin/${a}`,rounding:2,children:[(0,u.jsxs)(d.xu,{overflow:"hidden",position:"relative",rounding:2,children:[g&&(0,u.jsx)(d.Ee,{alt:h||"",color:"lightGray",naturalHeight:null!==(n=g.height)&&void 0!==n?n:1,naturalWidth:null!==(o=g.width)&&void 0!==o?o:1,src:null!==(r=g.url)&&void 0!==r?r:""}),!!y&&(0,u.jsx)(d.xu,{padding:2,position:"absolute",bottom:!0,left:!0,display:"flex",children:(0,u.jsx)(c.Z,{duration:y})}),(0,u.jsx)(d.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,opacity:.4,dangerouslySetInlineStyle:p.overlay}),(0,u.jsxs)(d.xu,{position:"absolute",top:!0,left:!0,padding:5,width:"100%",children:[(0,u.jsx)(d.X6,{color:"light",overflow:"normal",size:"400",children:f.title}),(0,u.jsx)(d.xu,{marginTop:4,children:(0,u.jsx)(d.xv,{color:"light",size:"200",overflow:"normal",children:f.subtitle})})]})]}),(0,u.jsx)(d.xu,{display:"flex",alignItems:"start",justifyContent:"between",marginTop:1,paddingX:1,children:(0,u.jsx)(d.xu,{flex:"grow",children:h&&(0,u.jsx)(d.xu,{paddingY:1,children:(0,u.jsx)(d.xv,{inline:!0,size:"200",weight:"bold",children:h})})})})]})})})}var _=n(623568),m=n(350118),f=n(276775),g=n(813401),v=n(68005),y=n(35495);function b({trackingParams:e,objectIdStr:t,impressionData:n,auxData:l,componentType:c,slotIndex:d,viewData:p,viewParameter:b,viewType:x,pin:P,pinId:w,...S}){var E,A,T,I,C,R;const k=(0,f.useLocation)(),O=(0,m.S6)(),D=(w?O(w):null)||P,j=!(null===(E=D.story_pin_data)||void 0===E||!E.is_deleted),N=e||(0,r.Z)({boardUrl:null===(A=D.board)||void 0===A?void 0:A.url,callToCreateSourcePinId:D.call_to_create_source_pin_id,location:k,pinId:D.id,pinnerUserName:null===(T=D.pinner)||void 0===T?void 0:T.username,storyPinDataId:D.story_pin_data_id,trackingParams:D.tracking_params,trackingParamsMap:D.tracking_params_map}),L=(0,s.Z)(D),M=!!(L&&L.url&&L.height&&L.width)||void 0,z=L&&D.videos?D.videos.id:void 0,[B,Z]=(0,i.useState)(!1),F=(0,i.useCallback)((()=>Z(!j)),[j]),U=(0,i.useCallback)((()=>Z(!1)),[]),G=(0,g.yz)(),{isLeadPin:H}=(0,a.Z)(D);var V;H&&(l={lead_form_id:null===(V=D.promoted_lead_form)||void 0===V?void 0:V.lead_id});return(0,u.jsx)(o.Z,{componentType:c,contextLogData:{pwa_type:G,...l,...(0,y.Kl)(D,l)},impressionAuxFields:{...n||{},isNativeVideoAndWatchable:M,videoIdStr:z,clientTrackingParams:N||`${D.tracking_params||""}-0`,imageURL:null!==(I=null===(C=D.images)||void 0===C||null===(R=C["236x"])||void 0===R?void 0:R.url)&&void 0!==I?I:"",richTypes:(0,y.GT)(D)},impressionType:"Pin",isPaused:!B,loggingId:D.id,slotIndex:d,objectIdStr:t,viewData:p,viewParameter:b,viewType:x,children:(0,_._J)(D)?(0,u.jsx)(h,{pin:D}):(0,u.jsx)(v.Z,{...S,debugImpressionState:B?"started":"paused",onError:U,onLoad:F,pin:D,pinId:w,trackingParameters:{componentType:c,contextLogData:l,slotIndex:d,viewParameter:b,viewType:x}})})}},163745:(e,t,n)=>{n.d(t,{Z:()=>f,e:()=>h});var i=n(667294),o=n(240684),r=n(497529),a=n(898781),s=n(46584),l=n(131108),c=n(599997),d=n(883119),u=n(785893);const p=(0,o.ZP)({resolved:{},chunkName:()=>"www-video-VideoWrapper",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.resolve().then(n.bind(n,158103)),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 158103}}),h=Object.freeze({white:"inverse",black:"default"}),_={defaultOverlay:{backgroundColor:"rgba(0, 0, 0, 0.4)"},hoverOverlay:{backgroundColor:"rgba(0, 0, 0, 0.6)"}};function m({titleText:e,videoPin:t,videoPlaceholderImage:n}){const i=(0,a.ZP)();return(0,u.jsx)(p,{fallback:(0,u.jsx)(d.Ee,{alt:e||"",color:"rgb(111, 91, 77)",naturalHeight:3,naturalWidth:2,src:n||t.metadata.thumbnail,fit:"cover"}),accessibilityMaximizeLabel:i.bt("Maximise", "Maximize", "Maximize button on video", undefined, true),accessibilityMinimizeLabel:i.bt("Minimise", "Minimize", "Minimize button on video", undefined, true),accessibilityMuteLabel:i.bt("Mute", "Mute", "Mute button on video", undefined, true),accessibilityPauseLabel:i.bt("Pause", "Pause", "Pause button on video", undefined, true),accessibilityPlayLabel:i.bt("Play", "Play", "Play button on video", undefined, true),accessibilityProgressBarLabel:i.bt("Progress bar", "Progress bar", "FeedCard.accessibilityProgressBarLabel", undefined, true),accessibilityUnmuteLabel:i.bt("Unmute", "Unmute", "Unmute button on video", undefined, true),aspectRatio:c.q4,captions:"",controls:!1,loop:!0,isAutoPlay:!0,onPlay:()=>{},onPlayError:()=>{},playing:!0,playsInline:!0,poster:n||t.metadata.thumbnail,src:t.url,volume:0})}function f({buttonAction:e,buttonCustomization:t,buttonText:n,experience:o,hideCompleteButton:a,imageAlt:p,imageUrl:h,openNewTab:f,storyType:g,titleColor:v,titleText:y,titleTextCustomization:b,videoPin:x,videoPlaceholderImage:P}){const[w,S]=(0,i.useState)(!1),{experience_id:E,placement_id:A}=o||{},T=(0,r.Z)(A),I=(0,s.Z)({onVisibilityChanged:e=>{e&&o&&"viewed"!==o.status&&(o.status="viewed",T.viewExperience(A,E,!1,!0))}}),C=()=>{o&&T.completeExperience(A,E,!1,!0)},R=()=>{S(!0)},k=()=>{S(!1)},O="feed_card_video"===g?354:315,D=(0,c.zn)(g),j=D?l.f8:l.hm,N=D?l.sH:l.HI,L=!D,{color:M,fontSize:z,fontStyle:B,fontWeight:Z,horizontalAlignment:F}=(0,c.Mf)(b||{},"web"),{button_background_color:U,button_text_color:G}=t||{};return(0,u.jsxs)(d.xu,{position:"relative",ref:I,children:[(0,u.jsx)(d.xu,{onMouseEnter:R,onMouseLeave:k,children:(0,u.jsxs)(d.rU,{accessibilityLabel:y,href:e,onClick:C,onFocus:R,onBlur:k,target:f?"blank":null,underline:"none",children:[(0,u.jsxs)(d.xu,{position:"relative",dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},overflow:"hidden",rounding:4,children:[(0,u.jsx)(d.xu,{height:O,width:236,rounding:4,children:"feed_card_video"===g&&x?(0,u.jsx)(m,{titleText:y,videoPin:x,videoPlaceholderImage:P}):h&&(0,u.jsx)(d.Ee,{alt:p||"",color:"rgb(111, 91, 77)",naturalHeight:4,naturalWidth:3,src:h,fit:"cover"})}),L&&(0,u.jsx)(d.xu,{height:O,width:236,dangerouslySetInlineStyle:{__style:w?_.hoverOverlay:_.defaultOverlay},position:"absolute",top:!0,left:!0}),(0,u.jsx)(j,{children:(0,u.jsx)(d.xv,{align:F,color:v,italic:"italics"===B,weight:Z,children:(0,u.jsx)(d.xu,{dangerouslySetInlineStyle:{__style:{color:null!=M?M:void 0,fontSize:z}},children:y})})})]}),!a&&D&&(0,u.jsx)(N,{children:(0,u.jsx)(d.xu,{display:"flex",rounding:"pill",color:"default",dangerouslySetInlineStyle:{__style:{backgroundColor:U}},justifyContent:"center",alignItems:"center",paddingX:2,height:48,children:(0,u.jsx)(d.xv,{weight:"bold",children:(0,u.jsx)(d.xu,{dangerouslySetInlineStyle:{__style:{color:G}},children:n})})})})]})}),!D&&(0,u.jsx)(N,{children:(0,u.jsx)(d.zx,{role:"link",accessibilityLabel:n,color:"gray",fullWidth:!0,href:e,onClick:C,size:"lg",text:n})})]})}},869091:(e,t,n)=>{n.d(t,{Z:()=>S});var i=n(249647),o=n(557115),r=n(883119),a=n(366428),s=n(785893);function l({slotIndex:e,story:t}){var n;const i=(0,a.Z)({componentType:14268,contextLogData:t.aux_fields,impressionType:"Story",loggingId:t.id,slotIndex:e,viewParameter:92,viewType:1});return(0,s.jsx)(r.xu,{ref:i,children:(0,s.jsx)(o.Z,{isInViewOrNext:!0,item:null===(n=t.objects)||void 0===n?void 0:n[0],slotIndex:e,story:t})})}function c({slotIndex:e,story:t}){var n,i;const l=(0,a.Z)({componentType:14269,contextLogData:t.aux_fields,impressionType:"Story",loggingId:t.id,slotIndex:e,viewParameter:92,viewType:1});return(0,s.jsxs)(r.xu,{ref:l,marginBottom:6,children:[(0,s.jsx)(r.xv,{size:"500",weight:"bold",align:"center",children:null===(n=t.title)||void 0===n?void 0:n.format}),null===(i=t.objects)||void 0===i?void 0:i.map(((e,n)=>(0,s.jsx)(r.xu,{marginTop:4,children:(0,s.jsx)(o.Z,{component:14269,isInViewOrNext:!0,item:e,slotIndex:n,story:t,view:1,viewParameter:null})},n)))]})}var d=n(667294),u=n(702664),p=n(407043),h=n(276775),_=n(332611);function m({experienceId:e,copy:{buttonText:t,subtitleText:n,titleText:i},path:o,pins:a,placementId:l}){const{logContextEvent:c}=(0,p.v)(),m=(0,u.useDispatch)(),f=(0,h.useHistory)();(0,d.useEffect)((()=>{c({event_type:13,view_type:1,view_parameter:92,component:200,element:10551}),m((0,_.UT)(l,e,!1,!0))}),[]);return(0,s.jsxs)(r.kC,{alignItems:"stretch",direction:"column",flex:"grow",justifyContent:"start",children:[(0,s.jsx)(r.xu,{paddingY:1,children:(0,s.jsx)(r.X6,{align:"center",size:"400",children:i})}),(0,s.jsx)(r.xu,{paddingY:1,children:(0,s.jsx)(r.xv,{align:"center",children:n})}),(0,s.jsx)(r.xu,{alignItems:"center",display:"flex",justifyContent:"center",marginTop:1,paddingY:2,children:a&&a.map(((e,t)=>((e,t)=>{const{height:n,url:i,width:o}=e.images.orig,a=0===t?0:2;return(0,s.jsx)(r.xu,{marginStart:a,children:(0,s.jsx)(r.zd,{height:72,rounding:2,width:48,children:(0,s.jsx)(r.Ee,{alt:"",color:"",fit:"cover",naturalHeight:n,naturalWidth:o,src:i})})},e.id)})(e,t)))}),(0,s.jsx)(r.xu,{alignSelf:"center",paddingY:2,children:(0,s.jsx)(r.zx,{fullWidth:!0,onClick:()=>{m((0,_.CK)(l,e,!1,!0)),c({event_type:101,view_type:1,view_parameter:92,component:200,element:10551}),f.push(o)},size:"lg",text:t})})]})}var f=n(70061),g=n(543972),v=n(977558),y=n(773285);const b=424,x=236;function P({buttonAction:e,buttonText:t,imageAlt:n,imageHeight:i,imageWidth:o,imageUrl:l,slotIndex:c,storyAuxData:u,storyId:h,subtitle:_,titleText:m}){const[f,P]=(0,d.useState)(!1),{checkExperiment:w}=(0,y.F)(),{logContextEvent:S}=(0,p.v)(),E=(0,a.Z)({componentType:14103,contextLogData:u,impressionType:"Story",loggingId:h,slotIndex:c,viewParameter:92,viewType:1}),{group:A}=w("hfp_homefeed_web_topic_module",{dangerouslySkipActivation:!0}),T=A.includes("pill"),I=A.includes("zoom"),C=(0,d.useRef)(null),R=(0,d.useRef)(null);(0,d.useEffect)((()=>{const e=()=>{if(f&&R.current&&C.current){const e=window.innerHeight-v.cI-b,t=(e-(R.current.getBoundingClientRect().top-80))/e,n=.3,i=Math.min(t*n+1,1.3);C.current.style.transform=`scale(${i})`}};if(I)return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[f,I]);const k=e=>{S({event_type:101,view_type:1,view_parameter:92,component:14103,element:e,aux_data:u})},O=()=>{k(179)},D=()=>k();return(0,s.jsx)(g.Z,{options:{threshold:[1]},onVisibilityChange:e=>{if(e&&e.length>0){const{intersectionRatio:t}=e[0];P(t>=1)}},children:a=>(0,s.jsx)(r.xu,{ref:E,dangerouslySetInlineStyle:{__style:{paddingBottom:"16px"}},children:(0,s.jsx)(r.iP,{href:e,onTap:D,role:"link",children:(0,s.jsx)(r.xu,{height:b,ref:a,width:x,children:l&&(0,s.jsxs)(r.xu,{position:"relative",children:[(0,s.jsx)(r.xu,{height:b,width:x,ref:R,overflow:"hidden",dangerouslySetInlineStyle:{__style:{borderRadius:T?"200px":"16px",WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},children:(0,s.jsx)(r.xu,{height:b,width:x,ref:C,dangerouslySetInlineStyle:{__style:{transition:"transform ease-in-out .1s"}},children:(0,s.jsx)(r.Ee,{alt:n||"",fit:"cover",naturalHeight:i||b,naturalWidth:o||x,src:l})})}),(0,s.jsx)(r.xu,{position:"absolute",right:!0,left:!0,top:!0,bottom:!0,color:"inverse",rounding:4,opacity:.5,dangerouslySetInlineStyle:{__style:{borderRadius:T?"200px":"16px"}}}),(0,s.jsxs)(r.xu,{display:"flex",direction:"column",alignItems:"center",justifyContent:"end",position:"absolute",right:!0,left:!0,top:!0,bottom:!0,paddingY:T?10:8,paddingX:4,children:[(0,s.jsx)(r.X6,{align:"center",color:"inverse",size:"500",children:m}),(0,s.jsx)(r.xu,{marginTop:T?2:1,children:(0,s.jsx)(r.xv,{align:"center",color:"inverse",size:"200",children:_})}),(0,s.jsx)(r.xu,{marginTop:T?4:6,children:(0,s.jsx)(r.zx,{color:"white",size:"lg",onClick:O,text:t})})]})]})})})})})}var w=n(163745);function S(e){const{itemIdx:t,story:n}=e;if("blended_modules_topic_pin_grid_article"===n.story_type){const e=n,{action:i,custom_properties:o,subtitle:r,title:a}=e;return(0,s.jsx)("div",{className:"Module",children:(0,s.jsx)(P,{buttonAction:i.url,buttonText:i.text,imageAlt:o.image_alt,imageUrl:o.image,imageHeight:o.height,imageWidth:o.width,slotIndex:t,storyAuxData:e.aux_fields,storyId:e.id,subtitle:r.format,titleText:a.format})})}switch(n.container_type){case 41:const e=n,{copy:o,custom_properties:r,experience:a,objects:d}=e;return(0,s.jsx)("div",{className:"Module",children:(0,s.jsx)(m,{copy:(0,i.Z)(f.Z)(o),experienceId:a.experience_id,path:r.path,pins:d,placementId:a.placement_id})});case 66:const u=n,{action:p,custom_properties:h,display_options:_,experience:g,story_type:v,title:y}=u;return(0,s.jsx)("div",{className:"Module",children:(0,s.jsx)(w.Z,{buttonAction:p.url,buttonCustomization:h.button_customization,buttonText:p.text,experience:g,hideCompleteButton:h.hide_complete_button,imageAlt:h.image_alt,imageUrl:h.image,openNewTab:h.open_new_tab,storyType:v,titleColor:w.e[_.title_text_color],titleText:y.format,titleTextCustomization:h.title_text_customization,videoPin:h.video_pin,videoPlaceholderImage:h.video_placeholder_image})});case 135:return(0,s.jsx)("div",{className:"Module",children:(0,s.jsx)(c,{slotIndex:t,story:n})});case 136:return(0,s.jsx)("div",{className:"Module",children:(0,s.jsx)(l,{slotIndex:t,story:n})});default:return null}}},375151:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(121151),o=n(898781),r=n(883119),a=n(785893);function s(e){const t=(0,o.ZP)(),{handleComplete:n,handleDismiss:s}=e,l=(0,a.jsxs)(r.xu,{flex:"grow",position:"relative",display:"flex",direction:"column",width:"100%",children:[(0,a.jsx)(r.xu,{marginBottom:-12,children:(0,a.jsx)(r.Ee,{alt:t.bt("Stylised Pin grid image", "Stylized Pin grid image", "helpUpsellModal.headerImage.altText", undefined, true),naturalHeight:232,naturalWidth:804,src:"https://s.pinimg.com/help_upsell_modal_header.png"})}),(0,a.jsxs)(r.xu,{marginTop:-12,children:[(0,a.jsx)(r.kC,{alignItems:"stretch",justifyContent:"center",children:(0,a.jsx)(r.JO,{accessibilityLabel:t.bt("Pinterest logo icon", "Pinterest logo icon", "helpUpsellModal.pinterestIcon", undefined, true),color:"brandPrimary",icon:"pinterest",size:48})}),(0,a.jsx)(r.kC,{alignItems:"stretch",justifyContent:"center",children:(0,a.jsxs)(r.xu,{maxWidth:522,children:[(0,a.jsx)(r.xu,{display:"flex",justifyContent:"center",paddingX:12,paddingY:4,children:(0,a.jsx)(r.X6,{align:"center",size:"600",children:t.bt("Find out how to make Pinterest work for you", "Learn how to make Pinterest work for you", "helpUpsellModal.heading", undefined, true)})}),(0,a.jsx)(r.xu,{paddingX:12,children:(0,a.jsx)(r.X6,{align:"center",size:"400",children:t.bt("Check out our guide to the basics of saving Pins, sharing ideas and customising your home feed.", "Check out our guide to the basics of saving Pins, sharing ideas and customizing your home feed.", "helpUpsellModal.subHeading", undefined, true)})}),(0,a.jsxs)(r.xu,{display:"flex",direction:"row",justifyContent:"center",marginBottom:4,paddingY:12,children:[(0,a.jsx)(r.xu,{display:"flex",direction:"row",paddingX:1,children:(0,a.jsx)(r.zx,{accessibilityLabel:t.bt("Dismiss modal", "Dismiss modal", "helpUpsellModal.dismissButton.accessibilityLabel", undefined, true),onClick:s,size:"lg",text:t.bt("Maybe later", "Maybe later", "helpUpsellModal.dismissButton.buttonText", undefined, true)})}),(0,a.jsx)(r.xu,{display:"flex",direction:"row",paddingX:1,children:(0,a.jsx)(r.zx,{role:"link",href:"/welcome/",accessibilityLabel:t.bt("Continue to new user welcome guides", "Continue to new user welcome guides", "helpUpsellModal.confirmButton.accessibilityLabel", undefined, true),color:"red",onClick:n,size:"lg",text:t.bt("Let's go", "Let's go", "helpUpsellModal.confirmButton.buttonText", undefined, true)})})]})]})})]})]});return(0,a.jsx)(i.ZP,{accessibilityModalLabel:t.bt("Find out how to make Pinterest work for you", "Learn how to make Pinterest work for you", "helpUpsellModal.accessibilityModalLabel", undefined, true),heading:l,onDismiss:s,size:"lg"})}},243943:(e,t,n)=>{n.d(t,{Xx:()=>_,wA:()=>u,wH:()=>h});var i=n(667294),o=n(752802),r=n(835209),a=n(407043),s=n(789707),l=n(533655),c=n(785893);const d=(0,i.createContext)(undefined),u=e=>{const{variant_set:t}=(0,r.Z)({richPinData:e.rich_metadata})||{},{dimension_metadata:n,variants:i}=t||{};if(!n||!i)return!1;const o=n.find((e=>{var t;return"color"===(null===(t=e.name)||void 0===t?void 0:t.toLowerCase())}));return!!(o&&o.name&&o.values&&1!==o.values.length)},p=({pinId:e,children:t,dimensionMetadata:n,primaryDimName:r,variants:u,primaryDimensionThumbnailImages:p})=>{const h=(0,i.useCallback)((({selectedMap:e})=>{const t=(0,l.B)({dimensionMetadata:n,primaryDimName:r,primaryDimensionThumbnailImages:p,defaultStatus:"invalid"});return(0,l.U0)({variantMap:t,selectedMap:e,variants:u}),t}),[n,r,p,u]),{logContextEvent:_}=(0,a.v)(),m=u.find((e=>e.is_preselected)),f=(0,s.a)(),{pinsState:g,setPinState:v}=f||{},y=g&&g[e],b=y?y.selectedMap:(0,l.O5)(u),x=y?y.selectedVariants:(0,l.x1)({selectedMap:b,variants:u}),P=y?y.variantMap:h({selectedMap:b}),w=!!y&&y.isSelectedByUser,S=y?y.variantUrl:(null==m?void 0:m.pin_id)||e,E=(0,i.useCallback)(((t,n=!1)=>{const i=(0,l.x1)({selectedMap:t,variants:u}),o={selectedMap:t,selectedVariants:i,variantMap:h({selectedMap:t}),isSelectedByUser:n,variantUrl:""},r=i[0].pin_id;r&&(o.variantUrl=r),v&&v(e,o)}),[h,e,v,u]),A=(0,i.useCallback)((()=>{const e=(0,l.O5)(u);E(e)}),[E,u]),T=(0,i.useCallback)((({dimensionName:e,variant:t,isAutoSelection:n=!1})=>{var i;const o=null===(i=P[e])||void 0===i?void 0:i.find((({value:e})=>e===t));try{if(!o)throw new Error(`Unable to find the selected variant ${e}: ${t}`);if(b[e]===t)return;const i={..."invalid"!==o.status?b:{},[e]:t},r=(0,l.i8)({variantMap:P,status:"invalid"});(0,l.U0)({variantMap:r,selectedMap:i,variants:u}),E(i,!n),_({event_type:10240,component:14092})}catch(r){throw A(),r}}),[P,b,u,E,A,_]),{title:I}=x[0],C=(0,o.Z)({images:(x[0].additional_images||[])[0].canonical_images}),R=(0,l.$b)(x),k=(0,i.useMemo)((()=>{const e=((null==m?void 0:m.dimensions)||{})[r],t=P[r]||[];let i=t;if(e&&t){const n=t.find((t=>t.value===e));n&&(i=[n,...t.filter((t=>t.value!==e))])}return{dimensionMetadata:n,offerSummary:R,primaryVariants:i,primaryDimName:r,selectedMap:b,isSelectedByUser:w,selectVariant:T,title:I,variants:u,image:C,variantUrl:S}}),[m,r,P,n,R,b,w,T,I,u,C,S]);return(0,c.jsx)(d.Provider,{"data-test-id":"safe-product-pins-feed-context-provider",value:k,children:t})},h=({children:e,pin:t,isEligible:n})=>{if(!n)return(0,c.jsx)(d.Provider,{"data-test-id":"undefined-context-provider",value:void 0,children:e});const{variant_set:i}=(0,r.Z)({richPinData:t.rich_metadata})||{},{dimension_metadata:o,primary_dimension_thumbnail_images:a,variants:s}=i||{},l=null==o?void 0:o.find((e=>{var t;return"color"===(null===(t=e.name)||void 0===t?void 0:t.toLowerCase())}));return(0,c.jsx)(p,{pinId:t.id,dimensionMetadata:o||[],primaryDimName:(null==l?void 0:l.name)||"",primaryDimensionThumbnailImages:a,variants:s||[],children:e})},_=()=>(0,i.useContext)(d)},789707:(e,t,n)=>{n.d(t,{A:()=>a,a:()=>s});var i=n(667294),o=n(785893);const r=(0,i.createContext)(void 0),a=({children:e})=>{const[t,n]=(0,i.useState)({}),a=(0,i.useMemo)((()=>({setPinState:(e,i)=>{n({...t,[e]:{...t[e]||{},...i}})},pinsState:t})),[t]);return(0,o.jsx)(r.Provider,{value:a,children:e})},s=()=>(0,i.useContext)(r)},104389:(e,t,n)=>{n.d(t,{Z:()=>d});var i=n(831539),o=n(869503),r=n(474236),a=n(883119),s=n(785893);const l=({count:e,countFormat:t,ratingValue:n,shippingInfo:l})=>(0,s.jsxs)(a.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[(0,s.jsx)(i.Z,{count:e,countFormat:t,rating:n,textSize:"200"}),(0,s.jsx)(a.xu,{marginTop:(0,r.Z)({count:e,rating:n})?1:0,children:(0,s.jsx)(o.Z,{customStyles:{color:"subtle",size:"200"},freeShippingPrice:null==l?void 0:l.free_shipping_price,freeShippingValue:null==l?void 0:l.free_shipping_value})})]}),c=({count:e,countType:t,countFormat:n,ratingValue:l,shippingInfo:c})=>(0,s.jsxs)(a.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{rowGap:8}},display:"flex",marginTop:1,wrap:!0,children:[(0,s.jsx)(i.Z,{count:e,countFormat:n,countType:t,rating:l,textSize:"300"}),(0,s.jsx)(o.Z,{customStyles:{color:"default",size:"300"},showPrevDot:(0,r.Z)({count:e,rating:l}),freeShippingPrice:null==c?void 0:c.free_shipping_price,freeShippingValue:null==c?void 0:c.free_shipping_value})]});function d(e){return e.isGridView?(0,s.jsx)(l,{...e}):(0,s.jsx)(c,{...e})}},533655:(e,t,n)=>{n.d(t,{$b:()=>l,A6:()=>d,B:()=>o,O5:()=>u,U0:()=>s,i8:()=>r,x1:()=>p,xD:()=>c});var i=n(752802);const o=({defaultStatus:e="available",dimensionMetadata:t,primaryDimName:n,primaryDimensionThumbnailImages:o})=>{const r={};for(const{values:i,name:a}of t)a&&i&&(r[a]=i.map((t=>({status:e,value:t}))));return(r[n]||[]).forEach(((e,t)=>{const n=o&&o[t.toString()];n&&(e.image=(0,i.Z)({images:n.canonical_images}))})),r},r=({status:e,variantMap:t})=>{const n={};for(const o in t){var i;n[o]=null===(i=t[o])||void 0===i?void 0:i.map((t=>({...t,status:e})))}return n},a=({dimensionName:e,variants:t,selectedTuple:n,variantStatuses:i})=>{const o=n.filter((([t])=>t!==e));for(const{dimensions:r={},offer_summary:a={}}of t){if(!o.every((([e,t])=>r[e]===t)))continue;const t=i.find((({value:t})=>t===r[e]));t&&(t.status=a.in_stock||"available"===t.status?"available":"outOfStock")}},s=({variants:e,selectedMap:t={},variantMap:n})=>{const i=Object.entries(t);for(const o in n){const t=n[o];t&&a({dimensionName:o,variants:e,selectedTuple:i,variantStatuses:t})}},l=e=>{let t,n,i,o,r=!1;const{percentage_off:a,standard_price:s}=1===e.length&&e[0].offer_summary||{};for(const l of e){const{max_price:e,max_price_val:a,min_price:s,min_price_val:c,price:d,price_val:u,price_in_micro_currency:p,in_stock:h}=l.offer_summary||{},_=u||Number(p);"number"==typeof c&&Number.isFinite(c)&&"number"==typeof a&&Number.isFinite(a)&&((void 0===n||c<n)&&(n=c,t=s),(void 0===o||a>o)&&(o=a,i=e),r=r||!!h),Number.isFinite(_)&&((null==n||_<n)&&(n=_,t=d),(null==o||_>o)&&(o=_,i=d),r=r||!!h)}if(i&&t)return t===i?{in_stock:r,percentage_off:a,price:t,standard_price:s}:{in_stock:r,max_price:i,min_price:t,percentage_off:a,price:t,standard_price:s}},c=(e,t)=>e.length===t.length&&e.every(((e,n)=>{var o,r;return(null===(o=(0,i.Z)({images:e.canonical_images}))||void 0===o?void 0:o.url)===(null===(r=(0,i.Z)({images:t[n].canonical_images}))||void 0===r?void 0:r.url)})),d=e=>{const t=new Set;return e.filter((e=>{const{url:n}=(0,i.Z)({images:e.canonical_images})||{};return!!n&&(!t.has(n)&&(t.add(n),!0))}))||[]},u=e=>{var t;const n={...(null===(t=e.find((e=>!!e.is_preselected)))||void 0===t?void 0:t.dimensions)||{}};for(const i in n)n[i]||delete n[i];return n},p=({selectedMap:e,variants:t})=>t.filter((({dimensions:t={}})=>{for(const n in e){const i=e[n];if(t[n]!==i)return!1}return!0}))},992061:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(883119),o=n(785893);function r({hovered:e,rounding:t}){return(0,o.jsx)(i.xu,{display:e?"block":"none",height:"100%",width:"100%",left:!0,top:!0,position:"fixed",zIndex:new i.Ry(1),color:"transparentDarkGray",rounding:t,opacity:.2})}},807592:(e,t,n)=>{function i(e){const{max_price:t,min_price:n,price:i}=e;return t&&n?`${n}-${t}`:i}n.d(t,{Z:()=>i})},841478:(e,t,n)=>{n.d(t,{A6:()=>l,BS:()=>a,EC:()=>o,_5:()=>s,m9:()=>r,z9:()=>i});const i=800,o=508,r=424,a=278,s=640,l=508},35495:(e,t,n)=>{n.d(t,{GT:()=>h,Gy:()=>a,Kl:()=>f,QY:()=>p,RR:()=>l,SP:()=>d,Sn:()=>m,Zs:()=>_,bA:()=>u,i8:()=>s,nn:()=>r,qN:()=>c});var i=n(834911),o=n(229428);const r=e=>!!e&&(e.shopping_flags||[]).includes(2),a=e=>{var t,n;return e.rich_summary&&e.rich_summary.products&&e.rich_summary.products.length>0||(null!==(t=null===(n=e.rich_metadata)||void 0===n?void 0:n.products)&&void 0!==t?t:[]).length>0},s=e=>{var t;return null===(t=e.aggregated_pin_data)||void 0===t?void 0:t.is_shop_the_look},l=e=>{var t,n;return null===(t=e.rich_summary)||void 0===t||null===(n=t.aggregate_rating)||void 0===n?void 0:n.rating_value},c=e=>e.is_oos_product,d=e=>e.is_stale_product,u=e=>c(e)||d(e),p=e=>{var t,n,i,o;const r=null==e||null===(t=e.link_domain)||void 0===t||null===(n=t.official_user)||void 0===n?void 0:n.full_name;if(r)return r;const a=null==e||null===(i=e.rich_summary)||void 0===i?void 0:i.site_name;if(a)return a;if(e.domain){if("Uploaded by user"===e.domain){return((e.is_repin?e.origin_pinner:e.pinner)||{}).full_name}return e.domain}const s=null==e||null===(o=e.via_pinner)||void 0===o?void 0:o.full_name;return e.is_repin&&s?s:void 0},h=e=>{if(e){const t=e.shopping_flags||[];return!t.includes(10)&&e.product_pin_data&&e.product_pin_data.items&&e.product_pin_data.items[0]&&e.product_pin_data.items[0].additional_images&&t.push(10),t}return[]};function _(e,t={}){var n,r,a,s,l,c;const d=h(e),u={...t.commerce_data};d.includes(2)&&(u.pin_is_shop_the_look=!0),d.includes(1)&&(u.is_available=!0),d.includes(5)&&(u.is_product_pin_v2=!0),d.includes(6)&&(u.is_rich_product_pin=!0),d.includes(10)&&(u.is_organic_product_carousel=!0);if((!!e.visual_objects&&(0,o.k)(e.visual_objects)||[]).some((e=>!0===e.is_stela))&&(u.pin_is_stela=!0),e.is_eligible_for_pdp||e.is_ooo_product||e.is_stale_product){e.is_oos_product?u.pin_show_pdp_oos=!0:e.is_stale_product?u.pin_show_pdp_stale=!0:u.pin_show_pdp=!0;const t=(0,i.Z)({carouselData:e.carousel_data,images:e.images,richMetadata:null==e?void 0:e.rich_metadata,richSummary:null==e?void 0:e.rich_summary});var p;if(t)u.image_count=null===(p=t.carousel_slots)||void 0===p?void 0:p.length,u.image_index=t.index}null!=e&&null!==(n=e.rich_summary)&&void 0!==n&&null!==(r=n.products)&&void 0!==r&&null!==(a=r[0])&&void 0!==a&&a.item_id&&(u.item_id=e.rich_summary.products[0].item_id),null!=e&&null!==(s=e.rich_summary)&&void 0!==s&&null!==(l=s.products)&&void 0!==l&&null!==(c=l[0])&&void 0!==c&&c.item_set_id&&(u.item_set_id=e.rich_summary.products[0].item_set_id);const _=e.aggregated_pin_data||{};return null!=_&&_.is_shop_the_look&&(u.pin_is_shop_the_look=!0),e.story_pin_data&&(u.story_pin_id=e.story_pin_data.id),u}function m(e){const t=JSON.stringify(e);return"{}"!==t?{commerce_data:t}:null}const f=(e,t={})=>{if(e){return m(_(e,t))}return null}},27255:(e,t,n)=>{n.d(t,{Z:()=>i});const i={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"}},699825:(e,t,n)=>{n.d(t,{Z:()=>u});var i=n(667294),o=n(102500),r=n(692627),a=n(47170),s=n(35495),l=n(623568),c=n(407043),d=n(785893);function u({children:e,hovered:t,pin:n,slotIndex:u,trafficSource:p,viewType:h}){var _,m,f;const{logContextEvent:g}=(0,c.v)(),[v,y]=(0,i.useState)(),[b,x]=(0,i.useState)(),{id:P,tracked_link:w,link:S}=n,E=w||S||"",A=()=>{y(!0)},T=(0,a.Z)(n),I=(0,r.Z)({hasPin:!!n,hasPinRichMetadata:!(null==n||!n.rich_metadata),hasPinRichMetadataProducts:!(null==n||null===(_=n.rich_metadata)||void 0===_||!_.products),hasPinRichMetadataArticle:!(null==n||null===(m=n.rich_metadata)||void 0===m||!m.article),hasPinRichMetadataRecipe:!(null==n||null===(f=n.rich_metadata)||void 0===f||!f.recipe),hasPinStoryPinData:!(null==n||!n.story_pin_data)}),C=(0,i.useCallback)((()=>{((e,t,n)=>{const i={check_only:n,pin_id:e.id,url:t,client_tracking_params:T,aux_data:JSON.stringify({clickthrough_type:"rightClick",objectId:P,...u||{},...(0,s.Kl)(e)||{}})};return(0,o.Z)(i)})(n,E,!1).callGet({showError:!1}).then((e=>{e&&(g({event_type:12,object_id_str:P,view_type:h,view_parameter:I,aux_data:{clickthrough_type:"rightClick",...u||{},...(0,s.Kl)(n)||{}}}),g({event_type:8948,view_type:h,object_id_str:P,view_parameter:I,aux_data:{click_type:"clickthrough",closeup_navigation_type:p&&(0,l.sV)(p)?"deeplink":"click",clickthrough_type:"rightClick",...u||{},...(0,s.Kl)(n)||{}}}))}))})),R=e=>{var t;v&&(/^\/pin/.test(null===(t=e.target.activeElement.attributes.href)||void 0===t?void 0:t.value)||(C(),y(!1)),window.removeEventListener(b,R,!1))};return(0,i.useEffect)((()=>{var e,t,n,i,o,r;void 0!==(null===(e=window)||void 0===e||null===(t=e.document)||void 0===t?void 0:t.hidden)?x("visibilitychange"):void 0!==(null===(n=window)||void 0===n||null===(i=n.document)||void 0===i?void 0:i.msHidden)?x("msvisibilitychange"):void 0!==(null===(o=window)||void 0===o||null===(r=o.document)||void 0===r?void 0:r.webkitHidden)&&x("webkitvisibilitychange")}),[]),(0,i.useEffect)((()=>(v&&window&&window.addEventListener(b,R,!1),()=>window.removeEventListener(b,R))),[v,b]),(0,i.useEffect)((()=>(t&&window.addEventListener("contextmenu",A),()=>{window.removeEventListener("contextmenu",A)})),[t]),(0,d.jsx)(i.Fragment,{children:e})}},628551:(e,t,n)=>{n.r(t),n.d(t,{cleanUpCookie:()=>c,clearSecondCookie:()=>l,getCsrfToken:()=>d,needsCsrfToken:()=>u});var i=n(231486),o=n(226198),r=n(826067),a=n(29538);const s=e=>{document.cookie=o.fS.name+"=bad; domain=."+e+"; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/"},l=()=>{s(window.location.hostname)},c=()=>{const e=o.fS.name,t=document.cookie.match(new RegExp(e+"=.+?($|;)","g"));t&&t.length>1&&s(a.c)},d=()=>"undefined"!=typeof window?`${String(i.U2(o.fS))}`:"",u=(e,t)=>!(e=>/^(GET|HEAD|OPTIONS|TRACE)$/.test(e))(e)&&(0,r.Qg)(t)},558068:(e,t,n)=>{n.d(t,{Hv:()=>l,aX:()=>u,nK:()=>p});var i=n(667294),o=n(425288),r=n(276775),a=n(785893);const{Provider:s,useHook:l}=(0,o.Z)("HistoryStackContext",{previous:[],current:null,forward:[]}),c=e=>e&&e.pathname?e.pathname+(e.search||""):"";function d(e,t){var n;const i={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(i.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:i,previous:e.current?[...e.previous,{action:e.current.action,location:e.current.location,match:e.current.match}]:e.previous};case"REPLACE":return{...e,current:i};default:return e}}function u(){const{current:e,previous:t}=l();return(0,i.useMemo)((()=>e?t.concat(e):t),[e,t])}function p({children:e}){const t=(0,r.useHistory)(),n=(0,r.useLocation)(),o=(0,r.useRouteMatch)(),l={forward:[],current:{action:t.action,location:n,match:o},previous:[]},[c,u]=(0,i.useReducer)(d,l);return(0,i.useEffect)((()=>{const{action:e}=t;u({type:e,location:n,match:o})}),[n]),(0,a.jsx)(s,{value:c,children:e})}},391254:(e,t,n)=>{n.d(t,{Z:()=>r});n(441143);var i=n(785893);class o{static factory(e){return e instanceof o?e:new o(String(e))}constructor(e){this._private_safe_value=e.trim().replace(">",">").replace("<","<").replace("&","&").replace('"','"').replace("'","'")}toString(){return this._private_safe_value}}function r(e){const{css:t,unsafeCSS:n,...r}=e,a=String(t||"")||n||"";return!!a?(0,i.jsx)("style",{...r,dangerouslySetInnerHTML:{__html:String(o.factory(a))}}):null}},422722:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var i=n(176532),o=n(635240),r=n(395164);const a={};a.BASE_URL_PATH="/_/_/report/",a.BASE_URL_PATH_TRACE="/_/_/trace/",a.SERVER_LOG_TYPE=Object.freeze({PAGE_LOAD_METRIC:"page_load_metric",BROWSER_EXTENSION:"browser_extension",RENDER_TIME:"render_time",NETWORK_LOAD:"network_load",SIGNUP_LOAD:"signup_load",TRACE:"trace",STRING_USAGE:"string_usage",HF_REFRESH:"hf_refresh"}),a.HTTP_METHOD=Object.freeze({GET:"GET",POST:"POST"});const s=function(e,t){if(!/password/i.test(e))return t};a._assembleXhrData=function(e,t){let n;try{n=JSON.stringify(t,s)}catch(i){n=JSON.stringify({messages:[i.toString()]})}return{report_context:JSON.stringify(e,s),report_data:n}},a.logToServer=function(e,t,n,s=0,l,c){var d;let u=null!=s?s:0;const p=null!=l?l:1;c=null!==(d=c)&&void 0!==d?d:l,function(e,t,n,r){let s;s="trace"===e?a.BASE_URL_PATH_TRACE+e+"/":a.BASE_URL_PATH+e+"/",r&&(n.timeElapsed=Date.now()-r),e&&(n.logType=e);let l="";try{l=window.location.href}catch(u){}const c={app_version:(0,o.Z)(),current_url:l},d=a._assembleXhrData(c,n);return(0,i.Z)({url:s,type:t,data:d}).promise.then((({ok:e,status:t,statusText:n})=>e?Promise.resolve():Promise.reject({type:"error",message:n,httpStatus:t})))}(e,t,n,c).catch((i=>{if(u){u-=1;const i=Math.min(18e5,1.23*p);setTimeout((()=>{a.logToServer(e,t,n,u,i,c)}),l)}else u-=1,(0,r.T)({name:i.name,message:`LogToServer failed: ${i.message}`})}))},a.logPerfDataToServer=a.logToServer,a.logToServer=function(e,t){let n=0;return function(...i){if(!(n>=t))return n+=1,e.apply(this,i)}}(a.logToServer,10);const l=a},241244:(e,t,n)=>{n.d(t,{N:()=>a,Z:()=>r});var i=n(883119),o=n(785893);function r({children:e,fullWidth:t}){return(0,o.jsx)(i.xu,{"data-test-id":"pointer-events-wrapper",dangerouslySetInlineStyle:{__style:{pointerEvents:"auto",width:t?"100%":void 0}},children:e})}function a({children:e,enabled:t}){return t?(0,o.jsx)(r,{children:e}):e}},310227:(e,t,n)=>{n.d(t,{Dv:()=>r,Ml:()=>a,Oc:()=>i,mv:()=>o});const i=16,o=4,r={SAVED:"rgba(0, 0, 0, 0.33)",VISUAL:"rgba(0, 0, 0, 0.1)",LEGO_WASH:"rgba(0, 0, 0, 0.4)"},a=120},743473:(e,t,n)=>{n.d(t,{Z:()=>P});var i=n(567831),o=n(794230),r=n(107193),a=n(402201),s=n(704115),l=n(6637);const c={open(e){var t;const n=(d=e,c._validParams.reduce(((e,t)=>(d&&Object.prototype.hasOwnProperty.call(d,t)&&(e[t]=d[t]),e)),{}));var d;const u=c._getDialogType(e),p=c.generateFbRef(null!==(t=e.unauthId)&&void 0!==t?t:""),h=e.object_type&&e.object_id&&"feed"===u;let _=(0,i.Z)(e.path);const m=(0,s.Z)();if(m.ptrf&&(_=(0,o.Z)(_,{ptrf:m.ptrf})),h&&(_=(0,o.Z)(_,{fb_ref:p})),n.method=u,"feed"===n.method){const t=(0,a.Z)({width:e.width,height:e.height});let i="http://www.facebook.com/sharer/sharer.php?u="+_;n.picture&&(i+="&picture="+n.picture),n.name&&(i+="&title="+n.name),n.description&&(i+="&description="+n.description),n.caption&&(i+="&caption="+n.caption),window.open(encodeURI(i),"sharer",t)}else"send"===n.method?n.link=_:"share"===n.method&&(n.href=_),(0,r.default)((t=>{t.getLoginStatus((()=>{if("send"===n.method){t.ui(n);let i,o=10;const r=setInterval((()=>{i=function(){if(!document)return;const e=Array.from(document.querySelectorAll(".fb_dialog_iframe iframe"));if(!e.length)return;if(1===e.length)return e[0];const t=e.splice(0,e.length-1);for(let n=0;n<t.length;n+=1){const e=t[n].parentNode;e&&e.removeChild(t[n])}return e[0]}(),!i&&o||(clearInterval(r),i&&c.executeMessengerCallback(i,e.callback)),o-=1}),1e3)}else"share"===n.method&&t.ui(n,(t=>{h&&t&&!t.error_message&&l.Z.create("LogFacebookFeedShare",{object_type:e.object_type,object_id:e.object_id,fb_ref:p}).callCreate({showError:!1}),e.callback&&e.callback(t)}))}))}),e.viewer)},_validParams:["description","name","picture","to","href","caption","display"],_validOptions:["send","feed","share"],executeMessengerCallback(e,t){let n=10;const i=setInterval((()=>{"0px"!==e.style.width&&n||(clearInterval(i),e.style.width="575px"),n-=1}),1e3);t&&t()},generateFbRef(e){let t="";for(;t.length<20;)t+=Math.floor(65535*Math.random()).toString(16);return e+":"+t},_getDialogType:e=>c._validOptions.includes(e.type)?e.type:"feed"},d=c;function u(e,t,n){const i=function(e,t){const n=window.screen.width,i=window.screen.height;return"scrollbars=yes,resizable=yes,toolbar=no,location=yes,width="+e+",height="+t+",left="+Math.round((n-e)/2)+",top="+(i>t?Math.round((i-t)/2):0)}(t,n);window.open(e,void 0,i)}const p={DIALOG_WIDTH:510,DIALOG_HEIGHT:525,openDialog(e){u(p._getWindowUrl(e.share_path,e.share_text),p.DIALOG_WIDTH,p.DIALOG_HEIGHT)},_getWindowUrl:(e,t)=>(0,o.Z)("https://social-plugins.line.me/lineit/share",{url:e?(0,i.Z)(e):void 0,text:t})},h=p,_={DIALOG_WIDTH:550,DIALOG_HEIGHT:420,openDialog(e){u(_._getWindowUrl(e.tweet_path,e.tweet_text),_.DIALOG_WIDTH,_.DIALOG_HEIGHT)},_getWindowUrl:(e,t)=>(0,o.Z)("https://twitter.com/intent/tweet",{via:"pinterest",url:e?(0,i.Z)(e):void 0,text:t||void 0})},m=_;var f,g,v=n(167912);const y=void 0!==f?f:f=n(166379),b=void 0!==g?g:g=n(380465),x={ObjectTypeToInviteObject:{pin:1,board:2,pinner:3,article:5,did_it:6,today_article:8,search:0},_convertToInviteObject(e){return this.ObjectTypeToInviteObject[e]||0},_logShareInvite(e,t,n){const i=this._convertToInviteObject(e.object_type),o=e.invite_channel,r=null==e.invite_category?3:e.invite_category,a=e.object_id;return l.Z.create("SentExternalInviteCallbackResource",{invite_type:{invite_category:r,invite_object:i,invite_channel:o},invite_code:t,object_id:a,client_tracking_params:e.client_tracking_params}).callCreate()},createShareInviteData(e,t){const n=this._convertToInviteObject(e.object_type),i=e.invite_channel,o=null==e.invite_category?3:e.invite_category,r=e.orbac_subject_id;if(10===o&&e.path){if(t)return(async(e,t,n)=>{var i;const o=await(0,v.fetchQuery)(e,b,{invite_category:n.toString(),url:t}).toPromise();return(e=>{var t,n,i;return{invite_code:null!==(t=null==e?void 0:e.invite_code)&&void 0!==t?t:"",invite_url:null!==(n=null==e?void 0:e.invite_url)&&void 0!==n?n:"",title:null!==(i=null==e?void 0:e.title)&&void 0!==i?i:""}})(null==o||null===(i=o.v3CreateShareLinkQuery)||void 0===i?void 0:i.data)})(t,e.path,o);return l.Z.create("ShareLinkResource",{invite_category:o,url:e.path}).callCreate().then((e=>Promise.resolve(e.resource_response.data)),(e=>Promise.reject(e)))}if(t)return(async(e,t,n,i,o)=>{var r;const a={invite_category:t,invite_object:n,invite_channel:i},s=await(0,v.fetchQuery)(e,y,{inviteType:JSON.stringify(a),objectId:o}).toPromise();return(e=>{var t,n,i;return{invite_code:null!==(t=null==e?void 0:e.invite_code)&&void 0!==t?t:"",invite_url:null!==(n=null==e?void 0:e.invite_url)&&void 0!==n?n:"",title:null!==(i=null==e?void 0:e.title)&&void 0!==i?i:""}})(null==s||null===(r=s.v3InviteUserExternalQuery)||void 0===r?void 0:r.data)})(t,o,n,i.toString(),e.object_id);{const t=e.object_id;return l.Z.create("CreateExternalInviteResource",{invite_type:{invite_category:o,invite_object:n,invite_channel:i},object_id:t,...r?{orbac_subject_id:r}:{}}).callCreate().then((e=>Promise.resolve(e.resource_response.data)),(e=>Promise.reject(e)))}},logShareInvite(e,t,n){t&&x._logShareInvite(e,t.invite_code,n)},shareFacebookInvite(e,t){const{options:n,unauthId:i,viewer:o}=e;return x.createShareInviteData(n,t).then((e=>{const r=e.invite_url,a=e.invite_code;if(r){const s={type:"share",object_type:n.object_type,object_id:n.object_id,name:n.name,caption:e.title,description:n.description,path:r,picture:n.picture,callback(e){e&&!e.error_message&&x._logShareInvite(n,a,t)}};d.open({...s,display:"popup",unauthId:i,viewer:o})}return Promise.resolve(e)}),(e=>Promise.reject(e)))},shareTwitterInvite(e,t){const n=this._convertToInviteObject(e.object_type);return x.createShareInviteData(e,t).then((i=>{const o=i.invite_url,r=i.invite_code;let a=e.description;return 6===n&&e.name&&(a=e.name),a.trim()||(a=`${i.title}\n`),o&&m.openDialog({tweet_path:o,tweet_text:a}),x._logShareInvite(e,r,t),Promise.resolve(i)}),(e=>Promise.reject(e)))},shareLineInvite(e,t){const n=this._convertToInviteObject(e.object_type);return x.createShareInviteData(e,t).then((i=>{const o=i.invite_url,r=i.invite_code;let a=e.description;return 6===n&&e.name&&(a=e.name),a.trim()||(a=`${i.title}\n`),o&&h.openDialog({share_path:o,share_text:a}),x._logShareInvite(e,r,t),Promise.resolve(i)}),(e=>Promise.reject(e)))},shareFbMessengerInvite(e,t){const{options:n,unauthId:i,viewer:o}=e;return x.createShareInviteData(n,t).then((e=>{const r=e.invite_url,a=e.invite_code;return r&&d.open({type:"send",object_type:n.object_type,object_id:n.object_id,name:n.name,caption:e.title,description:n.description,path:r,picture:n.picture,callback(e){e&&e.success&&x._logShareInvite(n,a,t)},display:"popup",unauthId:i,viewer:o}),Promise.resolve(e)}),(e=>Promise.reject(e)))}},P=x},754320:(e,t,n)=>{n.d(t,{Z:()=>u});var i=n(667294),o=n(941646),r=n(898781),a=n(905031),s=n(407043),l=n(883119),c=n(444445),d=n(785893);const u=({contentIds:e,previewImageSrc:t,url:n,buttonText:u,shape:p="square",storyId:h,storyType:_,view:m,viewParameter:f,component:g,element:v})=>{const y="square"===p?4:"circle",b=(0,a.Z)()?c.tG:c.yF,{logContextEvent:x}=(0,s.v)(),P=(0,r.ZP)(),w=(0,i.useMemo)((()=>!(Number.isNaN(m)||Number.isNaN(f)||Number.isNaN(g)||Number.isNaN(v))),[m,f,g,v]);return(0,i.useEffect)((()=>{w&&x({event_type:120,view_type:m,view_parameter:f,component:g,element:v,aux_data:{content_ids:e,story_id:h,story_type:_}})}),[e,x,m,f,g,v,w,h,_]),(0,d.jsx)(o.Z,{id:"sf-action-item-rep",children:(0,d.jsx)(l.xu,{width:b,height:b,color:"secondary",rounding:y,overflow:"hidden",children:(0,d.jsx)(l.zd,{height:"100%",width:"100%",wash:!0,rounding:y,children:(0,d.jsx)(l.Ee,{src:t||"",alt:P.bt("Action item rep preview image", "Action Item Rep Preview Image", "actionItemRep.image", undefined, true),color:"#fff",fit:"cover",naturalHeight:50,naturalWidth:50,children:(0,d.jsx)(l.xu,{height:"100%",width:"100%",left:!0,top:!0,alignItems:"center",justifyContent:"center",display:"flex",dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(0,0,0,0.3)"}},children:(0,d.jsx)(l.zx,{onClick:()=>{w&&x({event_type:101,view_type:m,view_parameter:f,component:g,element:v,aux_data:{content_ids:e,story_id:h,story_type:_}})},text:u,role:"link",href:n,color:"white",size:"lg"})})})})})})}},316743:(e,t,n)=>{n.d(t,{Z:()=>y});var i=n(667294),o=n(992061),r=n(898781),a=n(444445),s=n(215292),l=n(608760),c=n(883119),d=n(785893);function u({item:e={},imagePlaceholderColor:t=l.hK,onTap:n}){var u,p;const h=(0,r.ZP)(),_=null==e||null===(u=e.cover_images)||void 0===u?void 0:u[0],m=null==_?void 0:_["236x"];return(0,d.jsx)(c.iP,{onTap:n,children:(0,d.jsxs)(i.Fragment,{children:[(0,d.jsx)(s.q,{children:({hovered:e,onMouseEnter:n,onMouseLeave:i})=>(0,d.jsx)(c.xu,{marginBottom:2,"data-test-id":"category-bubble",onMouseEnter:n,onMouseLeave:i,children:(0,d.jsxs)(c.zd,{height:a.yF,rounding:"circle",wash:!0,width:a.yF,children:[(0,d.jsx)(o.Z,{hovered:e,rounding:"circle"}),(0,d.jsx)(c.Ee,{alt:h.bt("Image previewing contents of an item", "Image previewing contents of an item", "itemRep.userRep.previewImage", undefined, true),color:t,fit:"cover",naturalHeight:a.yF,naturalWidth:a.yF,src:(null==m?void 0:m.url)||""})]})})}),(null==e||null===(p=e.title)||void 0===p?void 0:p.format)&&(0,d.jsx)(c.xu,{width:a.yF,children:(0,d.jsx)(c.xv,{align:"center",weight:"bold",children:e.title.format})})]})})}const p="pill";var h=n(676302),_=n(407043),m=n(276775),f=n(366428);const g=()=>{},v={2:u,3:function({item:e={},onTap:t}){const n=(0,r.ZP)(),i=null==e?void 0:e.identifier_icon_type,{icon:l,text:u}=((e,t)=>{switch(e){case 2:return{icon:"workflow-status-all",text:t.bt("Categories", "Categories", "NavigationBubble.NavigationIcon.utils", undefined, true)};case 3:return{icon:"shopping-bag",text:t.bt("Stores", "Stores", "ExploreArticleRep.NavigationBubble.utils", undefined, true)};case 4:return{icon:"terms",text:t.bt("Your items", "Your items", "ExploreArticleRep.NavigationBubble.utils", undefined, true)};default:return{icon:null}}})(i,n);return(0,d.jsx)(c.iP,{onTap:t,tapStyle:"compress",rounding:l?5:p,children:(0,d.jsx)(s.q,{children:({active:t,hovered:n,onMouseEnter:i,onMouseLeave:r,onFocus:s,onBlur:h})=>{var _,m,f;return(0,d.jsxs)(c.xu,{"data-test-id":"navigation-bubble",onMouseEnter:i,onMouseLeave:r,onFocus:s,onBlur:h,rounding:5,children:[l&&(0,d.jsxs)(c.zd,{height:85,rounding:5,wash:!0,width:85,children:[(0,d.jsx)(o.Z,{hovered:n}),(0,d.jsx)(c.xu,{alignItems:"center",color:"secondary",display:"flex",height:"100%",justifyContent:"center",padding:2,width:"100%",children:(0,d.jsx)(c.JO,{accessibilityLabel:u||"",color:"default",icon:l,size:32})})]}),u&&(0,d.jsx)(c.xu,{marginTop:2,width:85,children:(0,d.jsx)(c.xv,{align:"center",weight:"bold",children:u})}),!l&&!u&&(null==e||null===(_=e.title)||void 0===_?void 0:_.format)&&(0,d.jsx)(c.xu,{rounding:p,dangerouslySetInlineStyle:{__style:{backgroundColor:null===(m=e.aux_fields)||void 0===m?void 0:m.button_background_color}},children:(0,d.jsx)(c.xu,{rounding:p,padding:4,dangerouslySetInlineStyle:{__style:{backgroundColor:(t?"rgba(0, 0, 0, 0.15)":n&&"rgba(0, 0, 0, 0.06)")||void 0}},children:(0,d.jsx)(c.xv,{align:"center",weight:"normal",color:"#ffffff"===(null===(f=e.aux_fields)||void 0===f?void 0:f.button_text_color)?"inverse":"default",children:(0,d.jsx)(c.xu,{maxWidth:a.yF-16,overflow:"hidden",dangerouslySetInlineStyle:{__style:{whiteSpace:"nowrap",textOverflow:"ellipsis"}},children:e.title.format})})})})]})}})})},1:function({item:e={},onTap:t}){var n;const i=(0,r.ZP)(),a=null==e||null===(n=e.cover_images)||void 0===n?void 0:n[0],l=null==a?void 0:a["236x"];return(0,d.jsx)(c.iP,{onTap:t,tapStyle:"compress",rounding:3,children:(0,d.jsx)(s.q,{children:({hovered:t,onMouseEnter:n,onMouseLeave:r})=>{var a;return(0,d.jsx)(c.xu,{"data-test-id":"search-bubble",onMouseEnter:n,onMouseLeave:r,rounding:3,children:(0,d.jsxs)(c.zd,{height:150,rounding:3,wash:!0,width:300,children:[(0,d.jsx)(o.Z,{hovered:t}),(0,d.jsx)(c.Ee,{alt:i.bt("Image previewing contents of an item", "Image previewing contents of an item", "itemRep.userRep.previewImage", undefined, true),fit:"cover",naturalHeight:150,naturalWidth:300,role:"presentation",src:(null==l?void 0:l.url)||"",children:(0,d.jsx)(c.xu,{alignItems:"center",color:"transparentDarkGray",display:"flex",justifyContent:"center",height:150,padding:3,position:"absolute",top:!0,width:300,children:(null==e||null===(a=e.title)||void 0===a?void 0:a.format)&&(0,d.jsx)(c.X6,{color:"inverse",size:"400",children:e.title.format})})})]})})}})})},4:h.Z};function y(e){var t,n;const{component:o,slotIndex:r,item:a,showExpandedHeader:s,story:l,view:p,viewParameter:h}=e,{display_options:y,type:b,id:x,content_ids:P}=l||{},{logContextEvent:w}=(0,_.v)(),S=(0,m.useHistory)(),E=null==a?void 0:a.id,A=(0,i.useMemo)((()=>({story_type:b,story_id:x,content_ids:P,article_id:E})),[E,P,x,b]),T=(0,f.Z)({componentType:o,contextLogData:A,impressionType:"Article",loggingId:E,objectIdStr:E,slotIndex:r,viewParameter:h,viewType:p}),I=s?null==y||null===(t=y.item_view_rep_style)||void 0===t?void 0:t.expanded_explore_article_rep_style:null==y||null===(n=y.item_view_rep_style)||void 0===n?void 0:n.explore_article_rep_style,{action:C}=a||{},{url:R=""}=C||{},k=Object.hasOwnProperty.call(v,I)?v[I]:u,O=s?g:()=>{S.push(R),w({event_type:101,component:o,view_type:p,view_parameter:h,aux_data:A})};return(0,d.jsx)(c.xu,{ref:T,children:(0,d.jsx)(k,{...e,onTap:O})})}},676302:(e,t,n)=>{n.d(t,{Z:()=>a,u:()=>r});var i=n(883119),o=n(785893);const r=369;function a({item:e,onTap:t,slotIndex:n}){const{action:a,aux_fields:s,cover_images:l,dominant_colors:c,title:d}=e;if(!d||!l||!a)return null;const u=l.length<=0?[{}]:l.slice(0,2);return(0,o.jsx)(i.iP,{onTap:t,tapStyle:"compress",rounding:4,children:(0,o.jsxs)(i.xu,{alignItems:"center","data-test-id":"style-bubble",display:"flex",height:258,justifyContent:"center",overflow:"hidden",position:"relative",rounding:4,width:r,children:[(0,o.jsx)(i.kC,{children:u.map(((e,t)=>{var a,s,l;return(0,o.jsx)(i.zd,{height:258,wash:!0,width:r/u.length,children:(0,o.jsx)(i.Ee,{alt:"",color:(c||[])[t],fit:"cover",naturalHeight:1,naturalWidth:1,role:"presentation",src:(null===(a=e["474x"])||void 0===a?void 0:a.url)||(null===(s=e["736x"])||void 0===s?void 0:s.url)||(null===(l=e["236x"])||void 0===l?void 0:l.url)||""})},`styleCarousel_bubble${n}_pin${t}`)}))}),(0,o.jsx)(i.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:null==s?void 0:s.button_background_color}},paddingX:4,paddingY:3,position:"absolute",rounding:"pill",children:(0,o.jsx)(i.xv,{align:"center",weight:"bold",children:(0,o.jsx)("span",{style:{color:null==s?void 0:s.button_text_color,margin:"0"},children:d.format})})})]})})}},547560:(e,t,n)=>{n.d(t,{Z:()=>d,x:()=>c});var i=n(1514),o=n(855430),r=n(34518),a=n(503390),s=n(883119),l=n(785893);const c=299;function d(e){const{pinCards:t,isClicked:n,isHovered:d,item:u={}}=e,{board_name:p,header_text:h,top_image_dominant_color_rgb:_}=u;return(0,l.jsxs)(s.xu,{height:n?106:110,display:"flex",paddingY:2,position:"relative",rounding:r.N3,width:n?c-4:c,dangerouslySetInlineStyle:{__style:(0,a.f)(_,n,d)},children:[(0,l.jsx)(o.Z,{}),(0,l.jsx)(s.xu,{width:112,position:"relative",children:t.map(((e,t)=>(0,l.jsx)(i.Z,{fanOut:d||n,card:e,index:t,size:"SMALL"},t)))}),(0,l.jsxs)(s.xu,{display:"flex",direction:"column",justifyContent:"center",marginStart:2,width:155,children:[(0,l.jsx)(s.xv,{size:"200",children:h}),(0,l.jsx)(s.xv,{lineClamp:2,size:"400",weight:"bold",children:p})]})]})}},557115:(e,t,n)=>{n.d(t,{Z:()=>_});var i=n(667294),o=n(547560),r=n(1514),a=n(855430),s=n(34518),l=n(503390),c=n(883119),d=n(785893);var u=n(407043);const p={1:o.Z,3:function(e){const{pinCards:t,isClicked:n,isHovered:i,item:o}=e,{board_name:u,top_image_dominant_color_rgb:p}=o;return(0,d.jsxs)(c.xu,{height:n?165:169,display:"flex",alignItems:"end",justifyContent:"center",paddingX:4,paddingY:3,position:"relative",rounding:s.N3,width:n?232:236,dangerouslySetInlineStyle:{__style:(0,l.f)(p,n,i)},children:[(0,d.jsx)(a.Z,{}),t.map(((e,t)=>(0,d.jsx)(r.Z,{fanOut:i||n,card:e,index:t,size:"DEFAULT"},t))),(0,d.jsx)(c.xv,{align:"center",lineClamp:1,size:"200",weight:"bold",children:u})]})},4:function(e){const{logContextEvent:t}=(0,u.v)(),{pinCards:n,isHovered:i,item:o,view:p,viewParameter:h}=e,{board_name:_,header_text:m,ideas_deep_link_url:f,top_image_dominant_color_rgb:g}=o;return(0,d.jsxs)(c.xu,{alignItems:"center",direction:"column",display:"flex",justifyContent:"end",marginBottom:6,minHeight:377,position:"relative",paddingX:4,paddingY:8,rounding:s.N3,width:236,dangerouslySetInlineStyle:{__style:(0,l.f)(g,!1,i)},children:[n.map(((e,t)=>(0,d.jsx)(r.Z,{fanOut:i,card:e,index:t,size:"LARGE"},t))),(0,d.jsx)(c.xu,{height:168,width:"100%"}),(0,d.jsx)(a.Z,{}),(0,d.jsxs)(c.kC,{alignItems:"stretch",direction:"column",height:"100%",justifyContent:"end",children:[(0,d.jsxs)(c.xu,{display:"flex",direction:"column",alignItems:"center",marginTop:5,marginBottom:5,children:[(0,d.jsx)(c.xu,{marginBottom:1,children:(0,d.jsx)(c.xv,{size:"200",weight:"bold",children:m})}),(0,d.jsx)(c.xv,{align:"center",size:"500",weight:"bold",children:_})]}),(0,d.jsx)(c.xu,{display:"flex",justifyContent:"center",marginTop:1,position:"relative",width:"100%",children:(0,d.jsx)(c.zx,{color:"white",href:f.concat("?ideas_referrer=25"),size:"lg",onClick:({event:e})=>{e.stopPropagation(),t({event_type:101,view_type:p,view_parameter:h,component:14268,element:13002,object_id_str:o.board_id})},role:"link",text:"Explore"})})]})]})}},h=["100%","60%"];function _(e){var t;const{component:n,isInViewOrNext:o,item:{board_id:r,ideas_deep_link_url:a,images:_,image_dominant_color_rgb:m},slotIndex:f,story:g={},view:v,viewParameter:y}=e,{logContextEvent:b}=(0,u.v)(),{display_options:x,objects:P}=g,w=null==P?void 0:P.length,[S,E]=(0,i.useState)(!1),[A,T]=(0,i.useState)(!1),[I,C]=(0,i.useState)(!1);(0,i.useEffect)((()=>{const e=setTimeout((()=>C(!0)),700);return()=>{clearTimeout(e)}}),[]);let R=[];o&&(R=I?[..._[s.O$]]:[_[s.O$][0]]);const k=3-R.length;for(let i=0;i<k;i+=1)R.push({colorRGB:m,opacity:h[i]});R.reverse();const O=null==x||null===(t=x.item_view_rep_style)||void 0===t?void 0:t.more_ideas_rep_style,D=p[O],j=n||l.k[O];return D&&(0,d.jsx)(c.iP,{href:a.concat("?ideas_referrer=25"),role:"link",onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),onMouseDown:()=>T(!0),onTap:()=>b({event_type:101,view_type:v,view_parameter:y,component:j,element:13002,object_id_str:r,aux_data:{index:f,total_object_count:w}}),children:(0,d.jsx)(D,{isClicked:A,isHovered:S,pinCards:R,...e})})}},1514:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(883119),o=n(785893);const r={SMALL:{HEIGHT_PX:72,WIDTH_PX:54},DEFAULT:{HEIGHT_PX:96,WIDTH_PX:72},LARGE:{HEIGHT_PX:130,WIDTH_PX:98}},a=(e,t,n)=>{let i;switch(n){case"SMALL":i={0:{transform:t?"rotate(-22deg)":"rotate(-15deg)",top:"12px",left:"12px"},1:{transform:t?"rotate(1deg)":"rotate(0deg)",top:t?"6px":"10px",left:"26px"},2:{transform:t?"rotate(24deg)":"rotate(15deg)",top:"12px",left:"40px"}};break;case"LARGE":i={0:{transform:t?"rotate(-26deg)":"rotate(-15deg)",top:"50px",left:"44px"},1:{transform:t?"rotate(1deg)":"rotate(0deg)",top:t?"36px":"40px",left:"68px"},2:{transform:t?"rotate(26deg)":"rotate(15deg)",top:"56px",left:"98px"}};break;default:i={0:{transform:t?"rotate(-22deg)":"rotate(-15deg)",top:"20px",left:"64px"},1:{transform:t?"rotate(1deg)":"rotate(0deg)",top:t?"10px":"14px",left:"82px"},2:{transform:t?"rotate(24deg)":"rotate(15deg)",top:"20px",left:"100px"}}}const o=i[e];return o.border="1px solid #FFFFFF",o.transition="all 150ms ease-out",o};function s({fanOut:e,card:t,index:n,size:s}){const l=r[s],{height:c=l.HEIGHT_PX,url:d,width:u=l.WIDTH_PX,colorRGB:p,opacity:h}=t;let _;return d?_=(0,o.jsx)(i.Ee,{alt:d,fit:"cover",naturalHeight:c,naturalWidth:u,src:d}):p&&h&&(_=(0,o.jsx)(i.xu,{height:l.HEIGHT_PX,width:l.WIDTH_PX,dangerouslySetInlineStyle:{__style:{backgroundColor:`rgba(${p.join(", ")}, ${h})`}}})),(0,o.jsx)(i.xu,{rounding:5,position:"absolute",dangerouslySetInlineStyle:{__style:a(n,e,s)},children:(0,o.jsx)(i.zd,{height:l.HEIGHT_PX,rounding:5,width:l.WIDTH_PX,wash:!0,children:_})})}},855430:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(883119),o=n(34518),r=n(785893);function a(){return(0,r.jsx)(i.xu,{position:"absolute",rounding:o.N3,top:!0,bottom:!0,right:!0,left:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(0, 0, 0, 0.03)"}}})}},34518:(e,t,n)=>{n.d(t,{N3:()=>i,O$:()=>a,Ql:()=>o,a$:()=>r});const i=4,o=.35,r=.5,a="170x"},503390:(e,t,n)=>{n.d(t,{f:()=>o,k:()=>r});var i=n(34518);const o=(e,t,n)=>{return{backgroundColor:`rgba(${e.join(", ")}, ${o=n||t,o?i.a$:i.Ql})`,marginRight:t?"2px":"0px",marginLeft:t?"2px":"0px"};var o},r={1:14114,3:14074,4:14268}},988874:(e,t,n)=>{n.d(t,{Z:()=>h});var i=n(656226),o=n(905031),r=n(883119),a=n(91885),s=n(477802),l=n(826067),c=n(276775),d=n(444445),u=n(785893);const p=e=>null!=e&&e.shop_source||["product_pins","shopping_list"].includes(null==e?void 0:e.story_type)?"ShoppingDynamicHeightGrid":"StoryFeedNonProduct";function h(e){var t,n,h;const{pins_display:_}=(0,l.mB)((0,c.useLocation)().search),{component:m,slotIndex:f,item:g,story:v,surface:y,view:b,viewParameter:x}=e,P=(0,o.Z)()?d.tG:d.yF;if(!g)return null;const{story_type:w,id:S,content_ids:E,display_options:A}=v||{},{pins_display:T}=(null==A?void 0:A.content_display)||{},{id:I,debug:C}=g,R=![3,1].includes(null!=T?T:Number(_)),k={story_type:w,story_id:S,content_ids:E},O=(0,u.jsxs)(r.xu,{"data-test-id":a.Kb,children:[(0,u.jsx)(i.default,{pin:g,pinId:I,pinImageCrop:R?{height:P,width:P}:null,authDesktopSurface:y||p(v),impressionData:k,auxData:k,componentType:null!==(t=null==v||null===(n=v.display_options)||void 0===n||null===(h=n.content_display)||void 0===h?void 0:h.component_type)&&void 0!==t?t:m,slotIndex:f,viewData:{pin_id:I},viewParameter:x,viewType:b}),C&&(0,u.jsx)(s.W,{data:C})]});return R?(0,u.jsx)(r.xu,{flex:"none",width:P,children:O},I):O}},36546:(e,t,n)=>{n.d(t,{Z:()=>S});var i=n(667294),o=n(992061),r=n(898781),a=n(215292),s=n(349700),l=n(883119),c=n(785893);function d({color:e,fullName:t,size:n,src:i}){const d=(0,r.ZP)();return(0,c.jsx)(a.q,{children:({hovered:r,onMouseEnter:a,onMouseLeave:u})=>(0,c.jsx)(l.xu,{marginBottom:2,"data-test-id":"category-bubble",onMouseEnter:a,onMouseLeave:u,children:(0,c.jsxs)(l.zd,{height:n,rounding:"circle",width:n,wash:!0,children:[(0,c.jsx)(o.Z,{hovered:r,rounding:"circle"}),(0,c.jsx)(l.Ee,{naturalHeight:n,naturalWidth:n,src:i,color:e,alt:(0,s.nk)(d.bt("Logo of {{ fullName }}", "Logo of {{ fullName }}", "itemRep.userRep.brandLogo", undefined, true),{fullName:t}).join("")})]})})})}const u=({name:e})=>(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{textAlign:"center"}},children:(0,c.jsxs)(l.xv,{inline:!0,weight:"bold",children:[e.toUpperCase()+" ",(0,c.jsx)(l.JO,{accessibilityLabel:"Pin",color:"shopping",icon:"check-circle",inline:!0})]})});var p=n(444445),h=n(608760);const _=({item:e={},imagePlaceholderColor:t=h.hK})=>{const{username:n,image_large_url:i,full_name:o}=e;return(0,c.jsxs)(l.xu,{width:p.yF,children:[(0,c.jsx)(l.xu,{display:"flex",justifyContent:"center",marginBottom:2,children:(0,c.jsx)(d,{size:120,fullName:o||n,src:i||"",color:t})}),o&&(0,c.jsx)(u,{name:o})]})};function m({height:e,width:t,src:n}){return(0,c.jsx)(l.xu,{height:e,width:t,children:(0,c.jsx)(l.Ee,{naturalHeight:e,naturalWidth:t,src:n,color:"lightGray",fit:"cover",alt:""})})}const f=.4*p.yF,g=.75*p.yF,v=({item:e={},story:t})=>{var n,i;const{username:o,image_large_url:r,full_name:a,id:s}=e,[h="",_=""]=(null==t||null===(n=t.custom_properties)||void 0===n||null===(i=n.preview_image_map)||void 0===i?void 0:i[s])||[];return(0,c.jsxs)(l.xu,{flex:"none",width:p.yF,height:p.yF,children:[(0,c.jsx)(l.zd,{rounding:4,height:g,width:p.yF,wash:!0,children:(0,c.jsxs)(l.kC,{children:[(0,c.jsx)(m,{height:p.yF,width:p.yF/2,src:h}),(0,c.jsx)(l.xu,{color:"default",width:2}),(0,c.jsx)(m,{height:p.yF,width:p.yF/2,src:_})]})}),(0,c.jsx)(l.xu,{display:"flex",justifyContent:"center",marginTop:-12,marginBottom:2,children:(0,c.jsx)(d,{size:f,src:r||"",color:"gray",fullName:a||o})}),a&&(0,c.jsx)(u,{name:a})]})},y=({item:e={},story:t,imagePlaceholderColor:n=h.hK})=>{var i,o,r;const{username:a,image_large_url:s,full_name:_,id:v}=e,y=(null==t||null===(i=t.custom_properties)||void 0===i||null===(o=i.preview_image_map)||void 0===o||null===(r=o[v])||void 0===r?void 0:r[0])||"";return(0,c.jsxs)(l.xu,{width:p.yF,height:p.yF,children:[(0,c.jsx)(l.zd,{rounding:4,height:g,width:p.yF,wash:!0,children:(0,c.jsx)(m,{height:p.yF,width:p.yF,src:y})}),(0,c.jsx)(l.xu,{display:"flex",justifyContent:"center",marginTop:-12,marginBottom:2,children:(0,c.jsx)(d,{size:f,src:s||"",color:n,fullName:_||a})}),_&&(0,c.jsx)(u,{name:_})]})};var b=n(407043),x=n(276775),P=n(366428);const w={5:_,1:y,2:v};function S(e){var t,n;const{logContextEvent:o}=(0,b.v)(),r=(0,x.useHistory)(),{story:a={},slotIndex:s,component:d,view:u,viewParameter:p,item:h}=e,_=(null===(t=a.display_options)||void 0===t||null===(n=t.item_view_rep_style)||void 0===n?void 0:n.user_rep_style)||5,m=w[_],f=(0,i.useMemo)((()=>({story_type:a.story_type,story_id:a.id,content_ids:a.content_ids,user_id:h.id})),[h,a]),g=(0,P.Z)({contextLogData:f,impressionType:"User",loggingId:h.id,objectIdStr:h.id,slotIndex:s,viewParameter:p,viewType:u});return m?(0,c.jsx)(l.iP,{ref:g,onTap:()=>{o({event_type:101,view_type:u,view_parameter:p,component:d,aux_data:f}),r.push(`/${h.username}`)},children:(0,c.jsx)(m,{...e})}):null}},87165:(e,t,n)=>{n.d(t,{i:()=>s});var i=n(883119),o=n(444445),r=n(785893);function a(){return(0,r.jsx)(i.xu,{width:o.yF})}function s(e){return new Array(e).fill().map(((e,t)=>(0,r.jsx)(a,{},t)))}},43485:(e,t,n)=>{n.d(t,{Z:()=>v});var i=n(316743),o=n(557115),r=n(988874),a=n(704115),s=n(760693),l=n(478144),c=n(829407),d=n(436395),u=n(883119),p=n(407043),h=n(276775),_=n(507264),m=n(785893);var f=n(36546);const g={board_more_ideas_feed_upsell:o.Z,pin:r.Z,user:f.Z,explorearticle:i.Z,productgroup:function(e){const{logContextEvent:t}=(0,p.v)(),{data:n}=(0,d.Z)(),{search:i}=(0,h.useLocation)(),{pin:o}=(0,a.Z)(i),r=o?"pdp":"profile",f=null==n?void 0:n.username,g=(0,_.N0)();if((0,c.Z)((()=>{s.Z.StructuredFeed.ProductGroups.viewProductGroup({productGroupId:e.item.id,source:r,groupType:e.item.group_type,componentType:13698},t)})),!f)return null;const v=`/${f}/_shop/${e.item.id}/`;return(0,m.jsx)(u.iP,{onTap:()=>{s.Z.StructuredFeed.ProductGroups.tapProductGroup({productGroupId:e.item.id,source:r,groupType:e.item.group_type,componentType:13698,index:e.slotIndex},t)},href:v,role:"link",children:(0,m.jsx)(l.Z,{productGroup:e.item,showControls:g})})}};function v(e){const{item:t}=e;if(null==t||!t.type||"story"===t.type&&!(t.type in g))return null;const n=g[t.type];return(0,m.jsx)(n,{...e})}},643897:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(883119),o=n(608760),r=n(785893);const a=new Map([["pin",4]]);function s({children:e,itemType:t}){return(0,r.jsx)(i.xu,{marginBottom:a.get(t)||o.mT,children:e})}},608760:(e,t,n)=>{n.d(t,{g5:()=>a,hK:()=>o,mT:()=>r});var i=n(988874);const o="lightGray",r=8,a={itemRep:i.Z,shape:"square",getImage:()=>""}},563886:(e,t,n)=>{n.d(t,{Z:()=>A});var i=n(667294),o=n(754320),r=n(435497),a=n(239062),s=n(580326),l=n(782975),c=n(848385),d=n(43485),u=n(751191),p=n(905031),h=n(547560),_=n(390598),m=n(676302),f=n(503390),g=n(444445),v=n(883119),y=n(455024),b=n(785893);const x=new Set([3,4]),P=new Set([1]),w=({text:e,url:t})=>Boolean(e)&&Boolean(t),S=e=>w(e)&&x.has(e.location),E=e=>w(e)&&P.has(e.location);function A(e){var t,n,x,P,w,A,T,I,C,R,k,O;const{componentFallback:D,initialSlotIndex:j=0,story:N,surface:L,view:M,viewParameter:z}=e,{title:B,objects:Z,id:F="",action:U,story_type:G}=N,[H,V]=(0,i.useState)(0),W=(0,i.useRef)(null),$=(0,p.Z)();if(!Array.isArray(Z))return null;const K=null!==(t=null===(n=N.display_options)||void 0===n||null===(x=n.content_display)||void 0===x?void 0:x.component_type)&&void 0!==t?t:D,q=1===(null===(P=N.display_options)||void 0===P?void 0:P.carousel_fade_ends),Y=Z,X=Y.length,J={index:H,carousel_slots:Y},{text:Q,url:ee}=null!=U?U:{},te={backgroundColor:"default",hoverColor:"default",iconColor:"default"},ne=null===(w=N.display_options)||void 0===w||null===(A=w.item_view_rep_style)||void 0===A?void 0:A.more_ideas_rep_style,ie=1===ne,oe=f.k[ne],re=(({isMoreIdeasListCard:e,isStyleBubble:t,isStorefrontSpotlightCarousel:n,isSfModuleOnMobile:i})=>e?h.x:t?m.u:n?_.Z.WIDTH:i?g.tG:g.yF)({isMoreIdeasListCard:ie,isStyleBubble:4===(null===(T=N.display_options)||void 0===T||null===(I=T.item_view_rep_style)||void 0===I?void 0:I.explore_article_rep_style),isStorefrontSpotlightCarousel:13698===(null===(C=N.display_options)||void 0===C||null===(R=C.content_display)||void 0===R?void 0:R.component_type),isSfModuleOnMobile:$}),ae=g.oX,se=Y.filter(Boolean),le=(0,y.tD)({slotWidth:re,containerWidth:(null===(k=W.current)||void 0===k?void 0:k.clientWidth)||0,gap:ae,numberOfSlides:se.length,index:H});return(0,b.jsxs)(v.kC,{direction:"column",children:[B&&(0,b.jsx)(c.Z,{story:N}),(0,b.jsxs)(v.xu,{position:"relative",ref:W,marginBottom:8,children:[(0,b.jsx)(a.default,{backNode:(0,b.jsx)(u.Z,{...te,showFab:!0,iconType:"back"}),carouselData:J,carouselIndex:H,componentType:K,forwardNode:(0,b.jsx)(u.Z,{...te,showFab:!0,iconType:"forward"}),handleCarouselSwipe:e=>{V(e)},isShowingLastSlide:le,pinId:F,viewParameter:z,viewType:M,contextLogData:ne?{index:H}:{}}),(0,b.jsxs)(r.Z,{componentType:oe,containerRef:W,contextLogData:ne?{total_object_count:X,storyType:G,boardIdStr:[null===(O=se[H])||void 0===O?void 0:O.board_id],slotIndex:H,story_id:N.id}:{},gap:ae,id:"structured-feed-carousel-module",impressionType:ne?"BoardMoreIdeasRep":"Pin",index:H,slideWidth:re,viewParameter:z,view:M,children:[se.map(((e,t)=>{var n;return(0,b.jsx)(d.Z,{isInViewOrNext:(0,y.Iw)({slotWidth:re,containerWidth:(null===(n=W.current)||void 0===n?void 0:n.clientWidth)||0,gap:ae,numberOfSlides:se.length,index:t,currentIndex:H}),item:e,slotIndex:j+t,story:N,surface:L,view:M,viewParameter:z},(0,l.Z)(e,t))})),U&&Q&&ee&&S(U)&&(0,b.jsx)(o.Z,{contentIds:N.content_ids,buttonText:Q,url:ee,storyId:N.id,storyType:G,view:M,viewParameter:z,component:K})]}),q&&H>0&&(0,b.jsx)(v.xu,{height:"100%",position:"absolute",left:!0,top:!0,width:80,dangerouslySetInlineStyle:{__style:{background:"linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%)"}}}),q&&!le&&(0,b.jsx)(v.xu,{height:"100%",position:"absolute",right:!0,top:!0,width:80,dangerouslySetInlineStyle:{__style:{background:"linear-gradient(270deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%)"}}})]}),U&&E(U)&&(0,b.jsx)(v.xu,{marginTop:4,children:(0,b.jsx)(s.Z,{story:N})})]})}},580326:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(883119),o=n(785893);function r({story:e}){const{url:t,text:n,location:r}=e.action||{};return 1===r&&t&&n?(0,o.jsx)(i.kC,{alignItems:"center",justifyContent:"center",children:(0,o.jsx)(i.zx,{text:n,role:"link",href:t})}):null}},848385:(e,t,n)=>{n.d(t,{Z:()=>_});var i=n(116303),o=n(941646),r=n(865607),a=n(407043),s=n(276775),l=n(883119),c=n(785893);const d={1:"start",2:"center"},u={1:"100",2:"300"},p={1:"400",3:"500",2:"600"},h=new Set([2,4]);function _({isNavigationHeader:e,showExpanded:t=!1,story:n,view:_,viewParameter:m}){var f,g;const v=(0,s.useHistory)(),{logContextEvent:y}=(0,a.v)(),{full_name:b,is_verified_merchant:x,verified_identity:P,username:w,image_medium_url:S}=n.user||{},E=b||(null===(f=n.title)||void 0===f?void 0:f.format),{url:A,text:T,location:I}=n.action||{},C=A||w||"",R=n.display_options||{},k=R.header_display||{},O=t?k.expanded_text_alignment:k.text_alignment,D=d[O||1],j=d[k.subtitle_alignment||1],N=u[k.header_size||1],L=p[k.header_size||1],M=(e,t)=>null!=e?e:t,z=M(R.title_text_color,"default"),B=(Z=R.title_text_color,F="default",null!=Z?Z:F);var Z,F;const U=M(R.subtitle_text_color,"subtle"),G=1===k.title_position,H=()=>{var e;return null!==(e=n.subtitle)&&void 0!==e&&e.format?(0,c.jsx)(l.X6,{size:L,color:U,align:j,children:n.subtitle.format}):null},V=e&&t,W=(0,c.jsx)(l.X6,{accessibilityLevel:2,size:L,color:z,align:D,children:E});return(0,c.jsx)(l.xu,{marginBottom:V?0:4,children:(0,c.jsxs)(l.kC,{gap:{row:0,column:2},direction:"column",children:[G&&(0,c.jsx)(H,{}),(0,c.jsxs)(l.kC,{alignItems:"center",justifyContent:D,children:[w&&S&&(0,c.jsx)(i.Z,{name:w,size:"sm",src:S}),(0,c.jsxs)(l.xu,{marginStart:2,alignItems:"baseline",justifyContent:D,display:"flex",flex:t?void 0:"shrink",width:t?"100%":void 0,children:[C?(0,c.jsx)(o.Z,{id:"sf-header-heading",children:(0,c.jsx)(l.iP,{role:"link",href:C,onTap:()=>{return e=C,y({component:null===(t=R.content_display)||void 0===t?void 0:t.component_type,event_type:101,view_parameter:m,view_type:_}),void v.push(`/${e}`);var e,t},tapStyle:"compress",children:W})}):W,x&&(0,c.jsx)(l.xu,{marginStart:2,children:(0,c.jsx)(r.Z,{hasVerifiedIdentity:Boolean(null==P?void 0:P.verified),isVerifiedMerchant:x,size:"xs"})})]}),h.has(I)&&A&&T&&(0,c.jsx)(l.xu,{marginStart:6,children:(0,c.jsx)(l.zx,{text:T,role:"link",href:A})})]}),!G&&(0,c.jsx)(H,{}),null!==(g=n.description)&&void 0!==g&&g.format?(0,c.jsx)(l.xv,{size:N,color:B,align:D,weight:"bold",children:n.description.format}):null]})})}},896731:(e,t,n)=>{n.r(t),n.d(t,{default:()=>U});var i=n(563886),o=n(580326),r=n(316743),a=n(848385),s=n(988874),l=n(36546),c=n(608760),d=n(444445),u=n(883119),p=n(785893);const h=()=>(0,p.jsx)(u.xu,{height:d.yF,width:d.yF,color:"secondary"}),_={1:{itemRep:s.Z,deprecatedActionShape:"square",deprecatedGetActionImage:e=>{var t,n;return(null===(t=e.images)||void 0===t||null===(n=t.orig)||void 0===n?void 0:n.url)||""}},4:{itemRep:r.Z,deprecatedActionShape:"circle",deprecatedGetActionImage:e=>{var t,n;return(null===(t=e.images)||void 0===t||null===(n=t.orig)||void 0===n?void 0:n.url)||""}},2:{itemRep:l.Z,deprecatedActionShape:"circle",deprecatedGetActionImage:e=>e.image_large_url}};var m=n(667294),f=n(754320);var g=n(643897),v=n(905031),y=n(87165),b=n(681291);const x="rgba(0, 0, 0, 0)",P=()=>(0,p.jsx)(u.xu,{height:d.yF,width:d.yF,color:"secondary"}),w={1:{itemRep:s.Z,deprecatedActionShape:"square",deprecatedGetActionImage:e=>{var t,n;return(null===(t=e.images)||void 0===t||null===(n=t.orig)||void 0===n?void 0:n.url)||""}},4:{itemRep:r.Z,deprecatedActionShape:"circle",deprecatedGetActionImage:e=>{var t,n;return(null===(t=e.images)||void 0===t||null===(n=t.orig)||void 0===n?void 0:n.url)||""}},2:{itemRep:l.Z,deprecatedActionShape:"circle",deprecatedGetActionImage:e=>e.image_large_url}};function S({componentFallback:e,initialSlotIndex:t=0,isNavigationHeader:n,showExpanded:i,story:o,view:r,viewParameter:s}){var l,h,_,m,S,E;const A=(null===(l=o.display_options)||void 0===l?void 0:l.content_display)||{},T=A.model_type,I=w[T]||c.g5,C=I.itemRep||P,{action:R}=o,k=(null===(h=o.action)||void 0===h?void 0:h.url)||"",O=null!==(_=null===(m=o.display_options)||void 0===m||null===(S=m.content_display)||void 0===S?void 0:S.component_type)&&void 0!==_?_:e,D=(null===(E=A.grid_layout)||void 0===E?void 0:E.rows)||1,{containerRef:j,itemsToRender:N,actionItem:L}=(0,b.n)({items:o.objects||[],itemWidth:(0,v.Z)()?d.tG:d.yF,itemGap:d.oX,actionItemType:Boolean(R)?"one":void 0,numRows:D}),M=n?function({showExpanded:e,story:t}){return t.objects&&t.expanded_viewport_objects?e?[t.expanded_viewport_objects]:t.objects:[]}({showExpanded:i,story:o}):N,z=L&&I.deprecatedGetActionImage?I.deprecatedGetActionImage(L):void 0,B=n&&i;return(0,p.jsxs)(u.xu,{display:"flex",color:"default",alignItems:"stretch",justifyContent:"start",direction:"column",children:[o.title&&!B&&(0,p.jsx)(a.Z,{story:o,showExpanded:i}),(0,p.jsxs)(b.Z,{itemGap:d.oX,containerRef:j,rowAlignment:"center",numRows:D,children:[M.map(((e,a)=>(0,p.jsx)(g.Z,{itemType:"string"==typeof e.type?e.type:null,children:(0,p.jsx)(C,{component:O,imagePlaceholderColor:x,index:a,item:e,showExpandedHeader:n&&i,slotIndex:t+a,story:o,view:r,viewParameter:s},a)},a))),!!k&&!(null==R||!R.text)&&(0,p.jsx)(f.Z,{contentIds:o.content_ids,buttonText:R.text,component:O,element:179,previewImageSrc:z,shape:I.deprecatedActionShape,storyId:o.id,storyType:o.story_type,url:k,view:r,viewParameter:s}),!n&&(0,y.i)(12)]})]})}function E({componentFallback:e,showExpanded:t=!0,story:n,view:i,viewParameter:o}){var r,s,l,h;const _=((null===(r=n.display_options)||void 0===r?void 0:r.content_display)||{}).model_type,f=(w[_]||c.g5).itemRep||P,g=null!==(s=null===(l=n.display_options)||void 0===l||null===(h=l.content_display)||void 0===h?void 0:h.component_type)&&void 0!==s?s:e,y=(0,v.Z)()?d.tG:d.yF,b=(0,m.useCallback)((({data:e,itemIdx:t})=>(0,p.jsx)(f,{component:g,imagePlaceholderColor:x,index:t,item:e,story:n,view:i,viewParameter:o},t)),[g,n,i,o]);return(0,p.jsxs)(u.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[n.title&&(0,p.jsx)(a.Z,{story:n,showExpanded:t}),(0,p.jsx)(u.Rk,{columnWidth:y,Item:b,gutterWidth:d.oX,items:n.objects||[],layout:"flexible"})]})}var A=n(435497),T=n(239062),I=n(116303),C=n(477802),R=n(941646),k=n(898781);var O=n(407043),D=n(276775),j=n(366428);const N=({actionText:e,actionUrl:t,articleId:n,author:i,authorAvatar:o,component:r,contentIds:a,coverImage:s,debug:l,index:c,isFullWidth:d=!1,onImageLoad:h,storyId:_,storyType:f,subtitle:g,title:v,view:y,viewParameter:b,width:x,windowWidth:P})=>{const w=(0,k.ZP)(),S=(0,D.useHistory)(),{logContextEvent:E}=(0,O.v)(),[A,T]=(0,m.useState)(!1),N=(0,j.Z)({loggingId:n,objectIdStr:n,impressionType:"Article",contextLogData:{content_ids:a,story_id:_,story_type:f,article_id:n},slotIndex:c,viewParameter:b,viewType:y,componentType:r});return(0,p.jsx)(R.Z,{id:"sf-hero",children:(0,p.jsxs)(u.xu,{ref:N,width:x,height:"auto",onMouseEnter:()=>T(!0),onMouseLeave:()=>T(!1),children:[(0,p.jsx)(u.iP,{onTap:()=>{E({event_type:101,view_type:y,view_parameter:b,component:r,aux_data:{article_id:n,content_ids:a,story_id:_,story_type:f}}),S.push(t)},children:(0,p.jsxs)(u.xu,{height:d?400:"35vw",maxHeight:500,overflow:"hidden",position:"relative",children:[(0,p.jsx)(u.xu,{height:"100%",width:"100%",dangerouslySetInlineStyle:{__style:{transition:"transform 0.4s",transform:A?"scale(1.5)":"scale(1)"}},children:(0,p.jsx)(u.Ee,{src:s,alt:w.bt("Cover image of this shopping spotlight", "Cover image of this shopping spotlight", "hero.heroCoverImage", undefined, true),color:"#fff",onLoad:h,fit:"cover",naturalHeight:400,naturalWidth:400,children:(0,p.jsx)(u.xu,{display:"block",height:"100%",width:"100%",color:"transparentDarkGray",opacity:.3})})}),(0,p.jsx)(u.xu,{width:"100%",position:"absolute",padding:6,marginBottom:d?12:0,bottom:!0,children:(0,p.jsxs)(u.kC,{direction:"column",height:"100%",justifyContent:"end",children:[(0,p.jsx)(u.xu,{dangerouslySetInlineStyle:{__style:{transition:"transform 0.4s",transform:A?"translateY(-20px)":"translateY(20px)"}},children:(0,p.jsx)(u.X6,{size:P<=822?"600":P<1e3?"400":P<1100?"500":"600",color:"light",children:v})}),(0,p.jsxs)(u.xu,{display:"block",height:A?"auto":20,overflow:"hidden",dangerouslySetInlineStyle:{__style:{opacity:A?1:0,transition:A?"opacity 0.4s ease-in":"opacity 0.4s ease-out"}},children:[(0,p.jsx)(u.xv,{color:"inverse",children:g}),i&&(0,p.jsx)(u.xu,{marginTop:4,children:(0,p.jsxs)(u.kC,{direction:"row",alignItems:"center",children:[(0,p.jsx)(I.Z,{size:"md",src:o,name:i})," ",(0,p.jsx)(u.xv,{color:"inverse",children:i})]})})]}),(0,p.jsx)(u.xu,{width:"74px",marginTop:4,children:(0,p.jsx)(u.zx,{color:"white",size:"lg",onClick:()=>{S.push(t)},text:e})})]})})]})}),void 0!==l&&(0,p.jsx)(C.Z,{data:l})]})})};var L=n(751191);function M({onImageLoad:e,story:t,view:n,viewParameter:i,component:o,width:r}){var a;const[s,l]=(0,m.useState)(0),c=(0,m.useRef)(null),d=(null===(a=t.objects)||void 0===a?void 0:a.slice(0,3))||[],h={index:s,carousel_slots:d.map((e=>({id:e.id})))};return(0,p.jsxs)(u.xu,{position:"relative",display:"flex",width:r,height:400,justifyContent:"center",alignItems:"end",ref:c,children:[(0,p.jsx)(A.Z,{id:t.id,index:s,slideWidth:r,containerRef:c,children:d.map(((a,s)=>{var l,c,d,u,h;return(0,p.jsx)(N,{actionText:(null===(l=a.action)||void 0===l?void 0:l.text)||"",actionUrl:(null===(c=a.action)||void 0===c?void 0:c.url)||"",articleId:a.id,coverImage:a.cover_images&&(null===(d=a.cover_images[0].originals)||void 0===d?void 0:d.url)||"",debug:a.debug,onImageLoad:e,storyId:t.id,storyType:t.story_type,subtitle:(null===(u=a.subtitle)||void 0===u?void 0:u.format)||"",title:(null===(h=a.title)||void 0===h?void 0:h.format)||"",index:s,isFullWidth:!0,view:n,viewParameter:i,component:o,width:r,windowWidth:r},a.id)}))}),(0,p.jsx)(u.xu,{display:"inlineBlock",height:"auto",position:"absolute",width:"60%",paddingY:5,children:(0,p.jsx)(T.default,{addEllipsis:!0,pinId:t.id,carouselIndex:s,carouselData:h,handleCarouselSwipe:e=>{l(e)},forwardNode:(0,p.jsx)(L.Z,{showFab:!0,iconType:"forward",iconColor:"inverse"}),backNode:(0,p.jsx)(L.Z,{showFab:!0,iconType:"back",iconColor:"inverse"})})})]})}function z({component:e,onImageLoad:t,story:n,view:i,viewParameter:o,windowWidth:r}){var a;const s=(null===(a=n.objects)||void 0===a?void 0:a.slice(0,3))||[];return(0,p.jsxs)(m.Fragment,{children:[(0,p.jsx)(u.xu,{flex:"grow",dangerouslySetInlineStyle:{__style:{backgroundColor:s[0].dominant_colors[0]}}}),s.map(((a,s)=>{var l,c,d,u,h;return(0,p.jsx)(N,{actionText:(null===(l=a.action)||void 0===l?void 0:l.text)||"",actionUrl:(null===(c=a.action)||void 0===c?void 0:c.url)||"",articleId:a.id,coverImage:a.cover_images&&(null===(d=a.cover_images[0].originals)||void 0===d?void 0:d.url)||"",debug:a.debug,index:s,onImageLoad:t,storyId:n.id,storyType:n.story_type,subtitle:(null===(u=a.subtitle)||void 0===u?void 0:u.format)||"",title:(null===(h=a.title)||void 0===h?void 0:h.format)||"",view:i,viewParameter:o,component:e,width:500,windowWidth:r},a.id)})),(0,p.jsx)(u.xu,{flex:"grow",dangerouslySetInlineStyle:{__style:{backgroundColor:s[2].dominant_colors[0]}}})]})}var B=n(792182);const Z={90:i.Z,88:a.Z,89:o.Z,91:function(e){var t,n;switch(null===(t=e.story.display_options)||void 0===t||null===(n=t.content_display)||void 0===n?void 0:n.pins_display){case 3:case 1:return(0,p.jsx)(E,{...e});case 2:default:return(0,p.jsx)(S,{...e})}},101:function({component:e,pwtSurfaceContext:t,story:n,view:i,viewParameter:o}){const{width:r}=(0,B.Z)()||{},a=()=>{t&&t.markConstraintComplete("RenderHeroImages")},s=!r||r>822?3:1;return(0,p.jsx)(m.Fragment,{children:(0,p.jsx)(u.kC,{alignItems:"stretch",direction:"row",justifyContent:"start",width:r,children:3===s?(0,p.jsx)(z,{component:e,onImageLoad:a,story:n,windowWidth:r,view:i,viewParameter:o}):(0,p.jsx)(M,{component:e,onImageLoad:a,story:n,width:r,view:i,viewParameter:o})})})},92:function({story:e}){var t;const n=(0,D.useHistory)(),{user:i,custom_properties:o,action:r}=e||{},{full_name:a,username:s,image_medium_url:l}=i||{},c=a||(null===(t=e.title)||void 0===t?void 0:t.format)||"",{url:h,text:_}=r||{},{image:m}=o||{};if(!h||!_)return null;const f=(0,p.jsxs)(u.xu,{height:"100%",padding:2,display:"flex",justifyContent:"center",alignItems:"center",color:"transparentDarkGray",position:"relative",children:[s&&l&&(0,p.jsx)(u.xu,{position:"absolute",top:!0,left:!0,padding:2,children:(0,p.jsx)(I.Z,{name:s,size:"sm",src:l})}),c&&(0,p.jsx)(u.xv,{color:"inverse",weight:"bold",children:c})]});return(0,p.jsxs)(u.xu,{marginBottom:4,width:d.yF,children:[(0,p.jsx)(u.iP,{onTap:()=>n.push(h),children:(0,p.jsx)(u.zd,{rounding:2,wash:!0,height:d.yF,children:"string"==typeof m&&m?(0,p.jsx)(u.Ee,{naturalHeight:d.yF,naturalWidth:d.yF,src:m,fit:"contain",alt:c,children:f}):(0,p.jsx)(u.xu,{width:d.yF,height:d.yF,children:f})})}),(0,p.jsx)(u.xu,{marginTop:3,children:(0,p.jsx)(u.zx,{fullWidth:!0,text:_,role:"link",href:h})})]})},131:function({componentFallback:e,showExpanded:t=!0,story:n,view:i,viewParameter:o}){var r,s,l,d,m;const f=((null===(r=n.display_options)||void 0===r?void 0:r.content_display)||{}).model_type,g=(_[f]||c.g5).itemRep||h,v=null!==(s=null===(l=n.display_options)||void 0===l||null===(d=l.content_display)||void 0===d?void 0:d.component_type)&&void 0!==s?s:e;return(0,p.jsx)(u.xu,{marginBottom:2,children:(0,p.jsxs)(u.kC,{alignItems:"stretch",justifyContent:"center",direction:"column",children:[n.title&&(0,p.jsx)(a.Z,{story:n,showExpanded:t}),(0,p.jsx)(u.kC,{wrap:!0,gap:2,justifyContent:"center",children:null===(m=n.objects)||void 0===m?void 0:m.map((function(e,t){return(0,p.jsx)(g,{component:v,imagePlaceholderColor:"rgba(0, 0, 0, 0)",index:t,item:e,story:n,view:i,viewParameter:o},t)}))})]})})}};const F=new Set([101]);function U(e){var t,n;const{componentFallback:i,story:o,view:r,viewParameter:a,width:s,initialSlotIndex:l}=e,{id:c,story_type:d,display_options:h,container_type:_,content_ids:m}=o,f=null!==(t=null==h||null===(n=h.content_display)||void 0===n?void 0:n.component_type)&&void 0!==t?t:i,g=(0,j.Z)({componentType:f,contextLogData:{story_id:c,story_type:d,content_ids:m},impressionType:"Story",loggingId:c,slotIndex:l||0,viewParameter:a,viewType:r}),v=function(e){return Z[e]||null}(_);return v?(0,p.jsx)(u.xu,{ref:g,width:(y=o,F.has(y.container_type)?void 0:s),children:(0,p.jsx)(v,{...e,component:f})}):null;var y}},782975:(e,t,n)=>{function i(e,t){var n;const i=`${e.type||""} ${t.toString()}`;switch(e.type){case"pin":return e.title||i;case"user":return e.username||i;case"explorearticle":return(null===(n=e.title)||void 0===n?void 0:n.format)||i;case"story":return e.id||i;default:return i}}n.d(t,{Z:()=>i})},905031:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(792182),o=n(444445);function r(){const{width:e}=(0,i.Z)()||{width:0};return e<2*o.yF+o.$H}},941646:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(883119),o=n(785893);function r(e){const{children:t,display:n,id:r}=e;return(0,o.jsx)(i.xu,{"data-test-id":r,display:n,children:t})}},170815:(e,t,n)=>{n.d(t,{Z:()=>r});const i=!("undefined"==typeof window||!window.performance||!window.performance.now);function o(){return i?window.performance.now():Date.now()}class r{constructor(){var e,t,n;n=null,(t="startTime")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}start(){this.startTime=o()}end(){this.elapsedTime=Math.round(o()-(this.startTime||Date.now())),this.startTime=i?Math.round(this.startTime||Date.now()):null}getCompletedTime(){return this.elapsedTime}}},594881:(e,t,n)=>{n.d(t,{Z:()=>u});var i=n(172071),o=n(6637),r=n(202139);var a=n(983722),s=n(635240);var l=n(385740),c=n(30287),d=n(172045);const u=function(){const e=(0,a.Z)();if(null!=e&&e.isAuthenticated&&!function(){const e=window.location.pathname.startsWith("/email/subscription")||window.location.pathname.startsWith("/email/remove"),t=window.location.pathname.startsWith("/pin/create/"),n="/pin-builder/"===window.location.pathname&&/url=/.test(window.location.href),i=t||n,{userAgent:o}=(0,a.Z)()||{userAgent:{isMobile:!1,isTablet:!1}};return!(o.isMobile||o.isTablet)&&i||e}()){var t,n;const{viewType:a,viewParameter:u}=null!==(t=(0,l.BE)())&&void 0!==t?t:{},p=(0,c.FB)(window);!function(e,t){const n=o.Z.create("ActiveUserResource",e);let a=3e4;n.callCreate().catch((o=>{let s=o.message;if(s&&"object"==typeof s){s._t_message&&delete s._t_message;try{s=JSON.stringify(s)}catch(l){s="Unable to serialize error message"}}i.Z.increment("webapp.metrics.dau.errors",1,{message:s,browser:e.data.browser,error_code:o.api_error_code,is_auth:t}),setTimeout((()=>{a>r.UK||(a*=2,n.callCreate())}),a)}))}({data:{appVersion:(0,s.Z)(),auxData:{pwa_type:p&&"unknown"!==p?p:void 0,stage:null!==(n=e.stage)&&void 0!==n?n:"unknown"},browser:e.userAgent.browserType,clientUUID:(0,d.Z)(),event_type:7137,time:1e6*Date.now(),unauth_id:e.unauthId,view_type:a,view_parameter:u}},e.isAuthenticated)}}},619937:(e,t,n)=>{n.d(t,{$N:()=>p,GY:()=>l,MZ:()=>a,NR:()=>d,Vn:()=>c,fm:()=>i,kM:()=>r,q6:()=>o,qp:()=>s,uV:()=>u});const i={DOWNLOAD_TEMPLATE:"DOWNLOAD_TEMPLATE",UPLOAD_TEMPLATE:"UPLOAD_TEMPLATE",HISTORY:"HISTORY",RESOURCES:"RESOURCES"},o={GENERAL:"GENERAL",CAMPAIGNS:"CAMPAIGNS",AD_GROUPS:"AD_GROUPS",ADS:"ADS",KEYWORDS:"KEYWORDS",PRODUCT_GROUPS:"PRODUCT_GROUPS",ERROR_CODES:"ERROR_CODES"},r={BILLING_HISTORY:"BILLING_HISTORY",BILLING_FORMS:"BILLING_FORMS",ORDER_LINES:"ORDER_LINES",PROMOTIONS:"PROMOTIONS",DOCUMENTS:"DOCUMENTS",PREPAID_CAMPAIGN_SPEND:"PREPAID_CAMPAIGN_SPEND_SUMMARY"},a={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"}},176532:(e,t,n)=>{function i({async:e,data:t,headers:n,timeout:i,type:o,updateProgress:r,url:a}){let s=!1;return{promise:new Promise(((r,l)=>{const c=i?setTimeout((()=>{s="timeout",l({type:"timeout"})}),i):void 0;fetch(a,{method:o,credentials:"include",mode:"same-origin",keepalive:!e,headers:n,...t?{body:t}:{}}).then((e=>{c&&clearTimeout(c),s?"timeout"!==s&&l({type:"abort"}):r({status:e.status,statusText:e.statusText,ok:e.status>=200&&e.status<300||304===e.status,headers:{get:t=>e.headers.get(t),_logString:()=>{const t=[];for(const[n,i]of e.headers.entries())t.push(`${n}: ${i}\r\n`);return t.join("")}},json:()=>e.json().then((e=>e instanceof Object?e:Promise.reject(new Error("JSON.parse did not return an object"))))})})).catch((()=>Promise.reject({type:"timeout"})))})),abort:()=>{s="manual"}}}n.d(t,{Z:()=>p});var o=n(635240);const r=(...e)=>{};function a({async:e,data:t,headers:n,timeout:i,type:o,updateProgress:a,url:s}){const l=new XMLHttpRequest;return{promise:new Promise(((c,d)=>{const u=i?setTimeout((()=>{l.onreadystatechange=r,l.abort(),d({type:"timeout"})}),i):void 0;l.onreadystatechange=()=>{if(4===l.readyState){l.onreadystatechange=r,clearTimeout(u);const e=l.status,t=l.statusText,n=l.responseText;if(!e)return void d({type:"abort"});c({status:e,statusText:t,ok:e>=200&&e<300||304===e,headers:{get:e=>l.getResponseHeader(e),_logString:()=>l.getAllResponseHeaders()},json:()=>new Promise(((e,t)=>{try{const i=JSON.parse(n);i instanceof Object?e(i):t(new Error("JSON.parse did not return an object"))}catch(i){t(i)}})),responseText:n})}},a&&l.upload.addEventListener("progress",(e=>{let t=null;e.lengthComputable&&(t=e.loaded/e.total*100),a(t)})),l.open(o,s,e),Object.keys(n).forEach((e=>{l.setRequestHeader(e,n[e])})),l.send(t||null)})),abort:()=>{l&&l.abort()}}}var s=n(42238),l=n.n(s);const c=e=>{if((e=>{const t=e.match(/\s+chrome\/(\d+)\./i);return!!t&&parseInt(t[1],10)>=79})(e))return!0;const{name:t="",version:n=""}=l()(e).browser,i=parseInt(n.replace(/\..*/,""),10)||0;return"chrome"===t.toLowerCase()&&i>=79};var d=n(826067),u=n(628551);function p(e){const t={async:!0,cache:!1,data:void 0,headers:{},query:{},timeout:0,type:"GET",...e};let{url:n,data:r}=t;const s=t.type;r&&"object"==typeof r&&("GET"===s?(n=(0,d.ru)(n,r),r=void 0):r instanceof FormData||(r=(0,d.XP)(r))),!1===t.cache&&"GET"===s&&(n=(0,d.ru)(n,{_:Date.now()}));const l=(0,u.needsCsrfToken)(s,n);if(l&&!(0,u.getCsrfToken)())return{promise:Promise.reject({type:"csrferror",message:"No csrf token found"}),abort:()=>{}};return(!t.async&&"keepalive"in new Request("")&&c(window.navigator.userAgent||"")?i:a)({...t,url:n,data:r,headers:{"X-Requested-With":"XMLHttpRequest",Accept:"application/json, text/javascript, */*, q=0.01","X-APP-VERSION":(0,o.Z)(),..."GET"===s||!r||r instanceof FormData?{}:{"Content-Type":"application/x-www-form-urlencoded"},...l?{"X-CSRFToken":(0,u.getCsrfToken)()||""}:{},...t.headers}})}},613316:(e,t,n)=>{function i(e){return[0,24,21,26].includes(e)}function o({articleType:e,id:t,title:n}){const i=n.toLowerCase().replace(/[.,\/#!?$%\^&\*+;:{}=\-_`~()\’'"]/g,"").trim().replace(/\s+/g,"-");return"today"===e?`/today/shop/${i}/${t}/`:`/discover/article/${i}/${t}/`}n.d(t,{x:()=>o,y:()=>i})},41233:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(221263),o=n(937330);function r({action:e,board:t,viewer:n}){var r;return(0,i.Z)(n,t)||(0,o.Z)({board:t,viewer:n})&&!(null===(r=t.collaborator_permissions)||void 0===r||!r.includes(e))}},221263:(e,t,n)=>{function i(e,t){const n=t&&t.owner&&t.owner.id;return e.isAuth&&n===e.id}n.d(t,{Z:()=>i})},937330:(e,t,n)=>{function i({board:e,viewer:t}){const{collaborated_by_me:n}=e;return Boolean(t.isAuth&&n)}n.d(t,{Z:()=>i})},4294:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(221263),o=n(937330);function r({board:e,viewer:t}){return(0,i.Z)(t,e)||(0,o.Z)({board:e,viewer:t})}},366284:(e,t,n)=>{n.d(t,{G6:()=>r,i7:()=>a,oi:()=>i,u$:()=>o,un:()=>l,vU:()=>s});const i=Object.freeze({OTHER:0,CHROME:1,SAFARI:2,IE:3,FIREFOX:4,OPERA:5,EDGE:6}),o=e=>{switch(!0){case e.includes("Chrome"):return i.CHROME;case e.includes("Safari"):return i.SAFARI;case e.includes("Firefox"):return i.FIREFOX;case e.includes("Opera"):return i.OPERA;case e.includes("IE"):return i.IE;case e.includes("Edge"):return i.EDGE;default:return i.OTHER}};function r(e){return o(e)===i.SAFARI}function a(e){return o(e)===i.CHROME}function s(e){return o(e)===i.FIREFOX}function l(e){return o(e)===i.EDGE}},56641:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(567831),o=n(867820);function r(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,i.Z)(e);return setTimeout((()=>{(0,o.My)("setting_new_window_location")}),0),window.location.href=t,window}}},126098:(e,t,n)=>{function i(){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:()=>i})},78714:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(56641),o=n(954931),r=n(867820);const a=(e,t)=>{null!=t&&t.disableOriginCheck||(0,o.Z)(e)||(e="/",(0,r.My)("url_reset")),(0,i.Z)(e)}},792182:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(667294),o=n(23279),r=n.n(o);function a(){const[e,t]=(0,i.useState)(null);return(0,i.useEffect)((()=>{const e=()=>t({width:window.innerWidth,height:window.innerHeight});e();const n=r()(e,50);return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}),[]),e}},924196:(e,t,n)=>{n.d(t,{Z:()=>i});const i={GOOGLE_ADWORDS_ID:852082959,GOOGLE_ADWORDS_LABEL_PROPEL_QUALIFIED:"Mah3CPrv13YQj4KnlgM",GOOGLE_ADWORDS_LABEL_PROPEL_UNQUALIFIED:"_DJfCKzy13YQj4KnlgM",GOOGLE_ADWORDS_LABEL_BUSINESS_CREATE:"GGbCCM7p-nYQj4KnlgM",GOOGLE_ADWORDS_LABEL_BUSINESS_CONVERT:"SwBsCIz9k3cQj4KnlgM",GOOGLE_ADWORDS_LABEL_BUSINESS_ADVERTISER_INTENT:"kDf0COWL4okBEI-Cp5YD",DOUBLECLICK_TAG_ID:"8032161",DOUBLECLICK_EVENT_ID_PROPEL:"prope001",DOUBLECLICK_CATEGORY_ID_PROPEL_QUALIFIED:"pinte0",DOUBLECLICK_CATEGORY_ID_PROPEL_UNQUALIFIED:"pinte00",TRADEDESK_ADVERTISER_ID:"fc1uc9n",TRADEDESK_EVENT_ID_GENERAL_PAGEVIEW:"ogalyt3",TRADEDESK_CONVERSION_ID_PROPEL_QUALIFIED:"judrn76",TRADEDESK_CONVERSION_ID_PROPEL_UNQUALIFIED:"f0v4s5d",FACEBOOK_ADVERTISER_ID:"956400731086791",TWITTER_UNIVERSAL_TAG_ID:"nuzh8",TWITTER_CONVERSION_ID_PROPEL_QUALIFIED:"ny8zl",TWITTER_CONVERSION_ID_PROPEL_UNQUALIFIED:"nya0d",LINKEDIN_PARTNER_ID:"44352",LINKEDIN_CONVERSION_ID_PROPEL_QUALIFIED:"166217",LINKEDIN_CONVERSION_ID_PROPEL_UNQUALIFIED:"171754",LINKEDIN_CONVERSION_ID_SUBMISSION_EVENT:"529092",PINTEREST_TAG_ID:"2614461171935",SMB_PAID_PINTEREST_ID:"2613736141997"}},904431:(e,t,n)=>{function i(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});class o{static reportGoogleConversion(e,t,n){void 0!==window.gtag_report_conversion?window.gtag_report_conversion(e,t,n):o.queuedGoogleConversions.push({id:e,label:t,url:n})}static reportFacebookConversion(e,t,n){void 0!==window.fbq?n?window.fbq("track",t,n):window.fbq("track",t):o.queuedFacebookConversions.push({id:e,event:t,data:n})}static reportCustomFacebookConversion(e,t,n){void 0!==window.fbq?n?window.fbq("trackCustom",t,n):window.fbq("trackCustom",t):o.queuedFacebookConversions.push({id:e,isCustomEvent:!0,event:t,data:n})}static reportPinterestConversion(e,t,n){void 0!==window.pintrk?n?window.pintrk("track",t,n):window.pintrk("track",t):o.queuedPinterestConversions.push({id:e,event:t,data:n})}static reportTwitterConversion(e,t){void 0!==window.twttr?t?window.twttr.conversion.trackPid(e,t):window.twttr.conversion.trackPid(e):o.queuedTwitterConversions.push({id:e,data:t})}static reportTheTradeDeskConversion(e,t){const n=document.createElement("img");n.setAttribute("height","1"),n.setAttribute("width","1"),n.setAttribute("role","presentation"),n.style.borderStyle="none",n.style.position="absolute",n.setAttribute("src",`//insight.adsrvr.org/track/conv/?adv=${e}&ct=0:${t}&fmt=3`),document.body.insertBefore(n,document.body.lastChild)}static reportLinkedInConversion(e,t){const n=document.createElement("img");n.setAttribute("width","1"),n.setAttribute("height","1"),n.setAttribute("role","presentation"),n.setAttribute("src",`https://dc.ads.linkedin.com/collect/?pid=${e}&conversionId=${t}&fmt=gif`),n.style.display="none",document.body.insertBefore(n,document.body.lastChild)}static reportDoubleClickConversion(e,t,n){const i=1e13*Math.random(),o=document.createElement("iframe");o.setAttribute("width","1"),o.setAttribute("height","1"),o.setAttribute("frameborder","0"),o.setAttribute("src",`https://${e}.fls.doubleclick.net/activityi;src=${e};\n    type=${t};cat=${n};dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;ord=${i}?`),o.style.display="none",document.body.insertBefore(o,document.body.lastChild)}static insertGoogleAdWordsTag(e){const t=document.createElement("script");t.setAttribute("async",""),t.setAttribute("src",`https://www.googletagmanager.com/gtag/js?id=AW-${e}`),t.onload=()=>{window.dataLayer=window.dataLayer||[],window.gtag=function(e,t,n){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("config","AW-"+e),window.gtag_report_conversion=function(e,t,n){return window.gtag("event","conversion",{send_to:"AW-"+e+"/"+t,event_callback:function(){void 0!==n&&window.location.assign(n)}}),!1};const t=o.queuedGoogleConversions;for(let n=0;n<t.length;n+=1){const i=t[n];i.id===e&&o.reportGoogleConversion(i.id,i.label,i.url)}},document.body.insertBefore(t,document.body.firstChild)}static insertFacebookPixelTag(e){var t,n,i,r,a,s;t=window,n=document,i="script",t.fbq||(r=t.fbq=function(){r.callMethod?r.callMethod.apply(r,arguments):r.queue.push(arguments)},t._fbq||(t._fbq=r),r.push=r,r.loaded=!0,r.version="2.0",r.queue=[],(a=n.createElement(i)).async=!0,a.src="//connect.facebook.net/en_US/fbevents.js",(s=n.getElementsByTagName(i)[0]).parentNode.insertBefore(a,s)),window.fbq("init",e),window.fbq("track","PageView");const l=o.queuedFacebookConversions;for(let c=0;c<l.length;c+=1){const t=l[c];t.id===e&&(t.isCustomEvent?o.reportCustomFacebookConversion(e,t.event,t.data):o.reportFacebookConversion(e,t.event,t.data))}}static insertTwitterUniversalTag(e){var t,n,i,o,r,a;t=window,n=document,i="script",t.twq||((o=t.twq=function(){o.exe?o.exe.apply(o,arguments):o.queue.push(arguments)}).version="1.1",o.queue=[],(r=n.createElement(i)).async=!0,r.src="//static.ads-twitter.com/uwt.js",(a=n.getElementsByTagName(i)[0]).parentNode.insertBefore(r,a)),window.twq("init",e),window.twq("track","PageView")}static insertLinkedInInsightTag(e){window._linkedin_data_partner_id=e;const t=document.createElement("script");t.setAttribute("src","//snap.licdn.com/li.lms-analytics/insight.min.js"),document.body.insertBefore(t,document.body.firstChild)}static insertPinterestTag(e){!function(e){if(!window.pintrk){window.pintrk=function(){window.pintrk.queue.push(Array.prototype.slice.call(arguments))};const e=window.pintrk;e.queue=[],e.version="3.0";const t=document.createElement("script");t.async=!0,t.src="https://s.pinimg.com/ct/core.js";const n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)}}(),window.pintrk("load",e),window.pintrk("page");const t=o.queuedPinterestConversions;for(let n=0;n<t.length;n+=1){const i=t[n];i.id===e&&o.reportPinterestConversion(e,i.event,i.data)}}}i(o,"queuedGoogleConversions",[]),i(o,"queuedFacebookConversions",[]),i(o,"queuedPinterestConversions",[]),i(o,"queuedTwitterConversions",[]);const r=o},834911:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(835209),o=n(341732);function r({carouselData:e,images:t,richMetadata:n,richSummary:r,shouldUnifyImageSizes:a,additionalImages:s}){const l=(0,i.Z)({richPinData:n||r});return l&&s&&s.length>0?(0,o.Z)(null,s,e&&e.index,a,l.id):l&&l.additional_images&&l.additional_images.length>0?(0,o.Z)(t,l.additional_images,e&&e.index,a,l.id):e||void 0}},737022:(e,t,n)=>{function i(e){return e?e["564x"]&&e["564x"].url?e["564x"]:e["736x"]&&e["736x"].url?e["736x"]:e["474x"]&&e["474x"].url?e["474x"]:e["236x"]&&e["236x"].url?e["236x"]:null:null}n.d(t,{Z:()=>i})},687551:(e,t,n)=>{function i(e){return!!(e&&e.carousel_data&&e.carousel_data.id)}n.d(t,{Z:()=>i})},341732:(e,t,n)=>{n.d(t,{Z:()=>r});const i=["236x","474x","564x","736x"];function o(e){function t(e,{imageKey:t,height:n,width:i}){return e.images&&e.images[t]&&(e={...e,images:{...e.images,[t]:{...e.images[t],height:n,width:i}}}),e}const n=i.map((function(t){const n=Math.min(...e.map((e=>e.images&&e.images[t]&&e.images[t].height||1/0))),i=Math.min(...e.map((e=>e.images&&e.images[t]&&e.images[t].width||1/0)));return{imageKey:t,height:n,width:i}}));return e.map((e=>n.reduce(t,e)))}function r(e,t,n,i,r){const a=(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},...a]:a;return{carousel_slots:i?o(s):s,index:n||0,id:r}}},768559:(e,t,n)=>{n.d(t,{Z:()=>l});var i=n(826067);const o=/\/today\/(article|best|trending)\/[\w-]+\/(\d+)/,r=/\/discover\/article\/[\w-]+\/(\d+)/,a=(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 _="";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:_="/pin/";const m=a(n,_);if(s!==m)return t?`ApiResource_callToCreatePins_${m}`:`RelatedPinFeedResource_${m}`;break;case/\/search\//.test(n)&&n:if(d){return`SearchResource_${((0,i.mB)(d,{shouldDecode:!1}).q||"").toLowerCase()}`}if(c)return`SearchResource_${encodeURIComponent(c.q||"").toLowerCase()}`;break;case r.test(n)&&n:return`ExploreArticleResource_${(null===(p=n.match(r))||void 0===p?void 0:p[2])||"unknown"}`;case/\/discover\/article\//.test(n)&&n:_="/discover/article/";return`ExploreArticleResource_${a(n,_)}`;case/\/categories\//.test(n)&&n:_="/categories/";return`CategoryFeedResource_${a(n,_)}`;case/\/discover\/topics\//.test(n)&&n:return"CategoryFeedResource";case/\/news_hub\//.test(n)&&n:_="/news_hub/";return`NewsHubDetailsResource_${a(n,_)}`;case/\/_tools\/more-ideas\//.test(n)&&n:return"BoardContentRecommendationResource";case/\/topics\//.test(n)&&n:_="/topics/";return`TopicFeedResource_${a(n,_)}`;case l&&`/${l}/products/`:return"StoreFrontFeedResource";case/\/source\//.test(n)&&n:_="/source/";return`DomainFeedResource_${a(n,_)}`;case/\/explore\//.test(n)&&n:_="/explore/";return`SearchResource_${a(n,_)}`;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 o.test(n)&&n:return`TodayArticleFeedResource_${(null===(h=n.match(o))||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,i.mB)(d);return`StoryFeedResource_${e}_${t}`}}return""},l=({boardUrl:e,callToCreateSourcePinId:t,location:n,pinId:i,pinnerUserName:o,previousHistory:r,storyPinDataId:a,trackingParams:l,trackingParamsMap:c={}})=>{if(!i||!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:i,pinnerUserName:o,query:p,search:u,storyPinDataId:a,trackingParams:l,trackingParamsMap:c}),_=Object.keys(c);let m;if((d||"").startsWith("/pin/")){const e=_.find((e=>"PinResource"!==e));m=e?c[e]:c.PinResource}else m=c[h];let f;if(!m&&r&&r.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()):""})(r[r.length-1].location);f=s({boardUrl:e,callToCreateSourcePinId:t,path:n,pinId:i,pinnerUserName:o,query:p,search:u,storyPinDataId:a,trackingParams:l,trackingParamsMap:c}),m=c[f]}return m||(m=`${l||""}~0`),m}},47170:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(768559),o=n(558068),r=n(276775);function a(e){var t,n;const a=(0,r.useLocation)(),{previous:s}=(0,o.Hv)();return(0,i.Z)({boardUrl:null===(t=e.board)||void 0===t?void 0:t.url,callToCreateSourcePinId:e.call_to_create_source_pin_id,location:a,pinId:e.id,pinnerUserName:null===(n=e.pinner)||void 0===n?void 0:n.username,previousHistory:s,storyPinDataId:e.story_pin_data_id,trackingParams:e.tracking_params,trackingParamsMap:e.tracking_params_map})}},827896:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(768559),o=n(350118),r=n(276775);function a(){const e=(0,o.S6)(),t=(0,r.useLocation)();return(n,o)=>{let r;const a=e(n);if(null!=o&&o.shouldTrackForPrevLocation){const e=(null==a?void 0:a.tracking_params_map)||{},t=Object.keys(e).find((e=>"PinResource"!==e));a&&(r=t?e[t]:e.PinResource)}else if(a){var s,l;r=(0,i.Z)({boardUrl:null===(s=a.board)||void 0===s?void 0:s.url,callToCreateSourcePinId:a.call_to_create_source_pin_id,location:t,pinId:a.id,pinnerUserName:null===(l=a.pinner)||void 0===l?void 0:l.username,storyPinDataId:a.story_pin_data_id,trackingParams:a.tracking_params,trackingParamsMap:a.tracking_params_map})}return r}}},328531:(e,t,n)=>{function i(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:()=>o});const o=new class{constructor(){var e=this;i(this,"startInactiveSessionTimeout",(()=>{this.inactiveSessionTimeout=setTimeout(this.stopInterval,36e5)})),i(this,"startInterval",(()=>{this.interval=setInterval(this.refreshContext,3e5)})),i(this,"onResourceResponse",(()=>{this.stopInactiveSessionTimeout(),this.interval||(this.refreshContext(),this.startInterval()),this.startInactiveSessionTimeout()})),i(this,"stopInactiveSessionTimeout",(()=>{this.inactiveSessionTimeout&&(clearTimeout(this.inactiveSessionTimeout),this.inactiveSessionTimeout=null)})),i(this,"stopInterval",(()=>{this.interval&&(clearInterval(this.interval),this.interval=null)})),i(this,"onRateLimit",(()=>{this.stopInterval(),this.stopInactiveSessionTimeout(),this.interval=setInterval(this.refreshContext,36e5)})),i(this,"refreshContext",(async function(){try{const t=await fetch("/_/_/context/");if(200===t.status&&e.setContext){const n=await t.json();e.setContext(n)}else 501===t.status&&e.onRateLimit()}catch(t){}}))}init({setContext:e}){this.setContext=e,this.startInactiveSessionTimeout(),this.startInterval()}}},81636:(e,t,n)=>{n.d(t,{Q:()=>c,Z:()=>d});var i=n(667294),o=n(682492),r=n.n(o),a=n(112690),s=n(780280),l=n(385740);function c(e,t){const{setViewContextData:n}=(0,l.sV)(),{requestIdentifier:o}=(0,s.B)(),c=(0,a.Z)(),{viewData:d}=(0,l.SU)();(0,i.useEffect)((()=>{var t;e&&(n({viewType:null!==(t=e.view_type)&&void 0!==t?t:1,viewParameter:e.view_parameter,viewData:e.view_data?r()(d,e.view_data):r()({},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:o}))}),[t])}function d(e){const{children:t,log:n}=e;return c(n),t||null}},407043:(e,t,n)=>{n.d(t,{B:()=>l,v:()=>s});var i=n(385740),o=n(425288),r=n(785893);const{Provider:a,useHook:s}=(0,o.Z)("ContextLogger");function l({children:e,value:t}){const{setViewContextData:n}=(0,i.sV)();return t.injectSetViewContextDataFromHook=n,(0,r.jsx)(a,{value:t,children:e})}},112690:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(407043);const o=()=>(0,i.v)().logContextEvent},327956:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(667294),o=n(407043),r=n(385740);const a=e=>{const t=(0,i.useRef)(!1),{logContextEvent:n}=(0,o.v)(),{viewType:a,viewParameter:s}=(0,r.SU)();(0,i.useEffect)((()=>{Object.entries(e).length>0&&!t.current&&a&&(n({event_type:13,view_type:a,view_parameter:s,...e}),t.current=!0)}))}},385740:(e,t,n)=>{n.d(t,{BE:()=>c,Ih:()=>d,SU:()=>u,sV:()=>s});var i=n(667294),o=n(425288),r=n(785893);const{Provider:a,useHook:s}=(0,o.Z)("View");let l;function c(){return l}function d({children:e,initialState:t={}}){const[n,o]=(0,i.useState)(t),s=(0,i.useCallback)((()=>{l={},o({})}),[]),c=(0,i.useCallback)((e=>{l={...l,...e},o((t=>({...t,...e})))}),[]),d=(0,i.useMemo)((()=>({viewContextData:n,clearViewContextData:s,setViewContextData:c})),[n,c,s]);return(0,r.jsx)(i.Fragment,{children:(0,r.jsx)(a,{value:d,children:e})})}function u(){const{viewContextData:e}=s();return e}},911691:(e,t,n)=>{n.d(t,{Z:()=>i});const i=["AT","BE","BG","CY","CZ","DE","DK","EE","ES","FI","FR","GB","GR","HR","HU","IE","IS","IT","LI","LT","LU","LV","MT","NL","NO","PL","PT","RO","SE","SI","SK"]},798748:(e,t,n)=>{n.d(t,{sw:()=>c,tb:()=>p,jD:()=>u});var i=n(911691),o=n(226198);const r=[o.EI,o.SJ,o.KU,o.Ek,o.wV,o.ZQ,o.pI,o.pp,o.fs,o.GY,o.hx,o.tv,o.jh,o.x_,o.Ck,o.L9,o.fS,o.rc,o.e7,o.x2,o.nE,o.qN,o.ZO,o.B_,o.Mq,o.Z_,o.$E,o.Q1,o.x3,o.sy,o.It,o.IV,o.eB,o.Gl,o.oj,o.ls,o.hq,o.oC,/^offsite_\d+$/,/^SSESS[a-z0-9]+/],a={marketing:[o.WL,o.k5,o.BN,o.cb,o.We,o._E],analytic:[o.MO,o.tg,o.JD,o.Mw,o.uq,o.o7,o.su,o.eG,o.th,o.VL,o.aq,/^ajs_$/,/^pinAlert.*$/],personalization:[o.T7,o.t0]};function s(e,t){return t.some((t=>t instanceof RegExp?t.test(e):t.name===e))}function l(e,t,n=!1){return s(e,t)||n&&"unknown"===function(e){const t=["marketing","analytic","personalization"];for(const n of t)if(s(e,a[n]))return n;return s(e,r)?"essential":"unknown"}(e)}const c=new Set(i.Z);let d=()=>[];function u(e,t){d=()=>{const n=e(),i=t(),o=n.isAuth?n.country:"";if(!(c.has(o)||c.has(i.countryFromIp||"")||c.has(i.countryFromHostName||"")))return[];return["allow_marketing_cookies","allow_analytic_cookies","allow_personalization_cookies"].filter((e=>n.isAuth&&!0!==n[e])).map((e=>{switch(e){case"allow_marketing_cookies":return"marketing";case"allow_analytic_cookies":return"analytic";case"allow_personalization_cookies":return"personalization";default:throw new Error("Unexpected cookie category to block")}}))}}function p(e){return l(e,function(e=[]){return e.reduce(((e,t)=>e.concat(a[t])),[])}(d()))}},231486:(e,t,n)=>{n.d(t,{U2:()=>a,kZ:()=>s,t8:()=>d,zN:()=>u});var i=n(172071),o=n(798748);function r(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("\\b"+e+"=.+?($|;)","g"));return t&&t[0]&&unescape(t[0].substring(e.length+1,t[0].length).replace(";",""))||null}function a(e){return r(e.name)}function s(e){const t=1/60;switch(e.duration){case"session":return;case"30s":return.008333333333333333;case"1m":return 1*t;case"5m":return 5*t;case"12h":return 12;case"1d":return 24;case"30d":return 720;case"180d":return 4320;case"1y":return 8760;case"sessionCookie":throw new Error("Cannot set duration to sessionCookie in client");default:throw new Error(`Invalid cookie duration ${String(e.duration)}`)}}const l=e=>String(e).replace(/[^0-9a-zA-Z_-]+/g,"_");function c(e,t,n){if((0,o.tb)(e)){let t=!1;if(r(e)){const n=[`${e}=`,"path=/",`expires=${new Date(0).toUTCString()}`].join(";");document.cookie=n,t=!r(e)}return i.Z.increment("webapp.cookies.blocked.client",.01,{cookieName:l(e),deleted:t}),document.cookie}const a=[e+"="+escape(t),"path=/"],s=function(e){if(isNaN(parseInt(e,10)))return"";{const t=new Date;return t.setTime(Date.now()+60*parseInt(e,10)*60*1e3),t.toUTCString()}}(n);return s&&a.push("expires="+s),a.push("secure"),document.cookie=a.join("; "),i.Z.increment("webapp.cookies.set.client",1e-4,{cookieName:l(e)}),document.cookie}function d(e,t,n){return c(e.name,t,n)}const u=e=>{r(e)&&c(e,"",-100)}},226198:(e,t,n)=>{n.d(t,{$E:()=>I,BN:()=>G,B_:()=>E,Ck:()=>f,EI:()=>i,Ek:()=>O,GS:()=>se,GY:()=>u,Gl:()=>z,IV:()=>L,It:()=>N,JD:()=>R,KU:()=>r,L9:()=>g,MO:()=>W,Mq:()=>A,Mw:()=>$,Q1:()=>C,SJ:()=>o,T7:()=>ne,VL:()=>ee,WL:()=>F,We:()=>V,Xh:()=>oe,ZO:()=>S,ZQ:()=>s,Z_:()=>T,_E:()=>ce,aq:()=>te,cb:()=>H,e7:()=>K,eB:()=>M,eF:()=>ae,eG:()=>J,fS:()=>v,fs:()=>d,hq:()=>D,hx:()=>p,jh:()=>_,k5:()=>U,lq:()=>re,ls:()=>Z,nE:()=>P,o7:()=>Y,oC:()=>le,oj:()=>B,pI:()=>l,pp:()=>c,qN:()=>w,rc:()=>y,su:()=>X,sy:()=>j,t0:()=>ie,tg:()=>k,th:()=>Q,tv:()=>h,uq:()=>q,wV:()=>a,x2:()=>x,x3:()=>b,x_:()=>m});const i={name:"_auth",purpose:"essential",httpOnly:!0,provenance:"1p",duration:"sessionCookie"},o={name:"_b",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},r={name:"_pinterest_access_token",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},a={name:"_routing_id",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},s={name:"_ss_al",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},l={name:"_ss_at",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},c={name:"_ss_auth",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},d={name:"_ss_country_code",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},u={name:"_ss_la",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},p={name:"_ss_li",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},h={name:"_ss_lo",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},_={name:"_ss_na",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},m={name:"_ss_u",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},f={name:"AUTHSSL",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},g={name:"cm_sub",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"1y"},v={name:"csrftoken",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"1y"},y={name:"daa",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},b={name:"logged_out",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},x={name:"fbalae",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"12h"},P={name:"force_default_pinner_experience",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},w={name:"forced_experiments",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},S={name:"forced_no_experiments",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},E={name:"G_ENABLED_IDPS",purpose:"essential",httpOnly:!1,provenance:"3p",duration:"session"},A={name:"galae",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"12h"},T={name:"hasBeenShownLoginModalInOpen",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"12h"},I={name:"is_in_integration_tests",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},C={name:"languageIsDetected",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},R={name:"_pinterest_referral_source",purpose:"analytic",httpOnly:!1,provenance:"1p",duration:"5m"},k={name:"_pinterest_referrer",purpose:"analytic",httpOnly:!1,provenance:"1p",duration:"5m"},O={name:"_pinterest_sess",purpose:"essential",httpOnly:!0,provenance:"1p",duration:"sessionCookie"},D={name:"_pinterest_sos",purpose:"essential",httpOnly:!0,provenance:"1p",duration:"1d"},j={name:"ls",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},N={name:"r_r",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"180d"},L={name:"SimpleSAMLAuthToken",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},M={name:"SimpleSAMLSessionID",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},z={name:"ss",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},B={name:"tr_rdrct",purpose:"essential",httpOnly:!1,provenance:"unknown",duration:"1y"},Z={name:"unauthLocale",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},F={name:"_derived_epik",purpose:"marketing",httpOnly:!1,provenance:"1p",duration:"session"},U={name:"_epik",purpose:"marketing",httpOnly:!1,provenance:"1p",duration:"session"},G={name:"_pinterest_ct",purpose:"marketing",httpOnly:!1,provenance:"1p",duration:"session"},H={name:"_pinterest_ct_rt",purpose:"marketing",httpOnly:!1,provenance:"1p",duration:"session"},V={name:"_pinterest_ct_ua",purpose:"marketing",httpOnly:!1,provenance:"1p",duration:"session"},W={name:"_pinterest_cm",purpose:"analytic",httpOnly:!1,provenance:"1p",duration:"session"},$={name:"_sd_redirect",purpose:"analytic",httpOnly:!1,provenance:"1p",duration:"30s"},K={name:"fba",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"30d"},q={name:"ajs_anonymous_id",purpose:"analytic",httpOnly:!1,provenance:"3p",duration:"session"},Y={name:"ajs_group_id",purpose:"analytic",httpOnly:!1,provenance:"3p",duration:"session"},X={name:"ajs_user_id",purpose:"analytic",httpOnly:!1,provenance:"3p",duration:"session"},J={name:"amp-access",purpose:"analytic",httpOnly:!1,provenance:"1p",duration:"session"},Q={name:"amp-experiment",purpose:"analytic",httpOnly:!1,provenance:"1p",duration:"session"},ee={name:"sessionFunnelEventLogged",purpose:"analytic",httpOnly:!1,provenance:"1p",duration:"12h"},te={name:"session_internal",purpose:"analytic",httpOnly:!1,provenance:"1p",duration:"session"},ne={name:"attemptToClaimWebsite",purpose:"personalization",httpOnly:!1,provenance:"1p",duration:"1d"},ie={name:"bxn",purpose:"personalization",httpOnly:!1,provenance:"1p",duration:"session"},oe={name:"ujr",purpose:"unknown",httpOnly:!1,provenance:"1p",duration:"session"},re={name:"BearerToken",purpose:"unknown",httpOnly:!1,provenance:"unknown",duration:"session"},ae={name:"sterling_save_preferences",purpose:"unknown",httpOnly:!1,provenance:"1p",duration:"session"};function se(e){return{name:`offsite_${e}`,purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"}}const le={name:"__Secure-s_a",purpose:"essential",httpOnly:!0,provenance:"1p",duration:"sessionCookie"},ce={name:"l_o",purpose:"marketing",httpOnly:!0,provenance:"1p",duration:"1y"}},425288:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(667294),o=n(785893);function r(e,t){let n=e.slice(1);if(n=n.endsWith("Context")?n:`${n}Context`,t){return{hocDisplayName:`with${e[0].toUpperCase()}${n}(${t})`}}return{propsDisplayName:`${e[0].toLowerCase()}${n}`,messageDisplayName:`${e[0].toUpperCase()}${n}`}}function a(e,t){const n=(0,i.createContext)(t),{propsDisplayName:a,messageDisplayName:s}=r(e);n.displayName=s;const l=n.Provider,c=({children:e})=>{const t=(0,i.useContext)(n);if(void 0===t)throw new Error(`${s}Consumer must be used within a ${s}Provider.`);return e(t)},d=()=>(0,i.useContext)(n);function u(t){const{hocDisplayName:n}=r(e,String(t.displayName||t.name)),i=e=>(0,o.jsx)(c,{children:i=>{if(void 0===i)throw new Error(`${n} must be used within a ${s}Provider.`);if(e[a])throw new Error("Parent Component and Context are passing to the component the same variables.");const r={[a]:i};return(0,o.jsx)(t,{...e,...r})}});return i.displayName=n,i}return l.displayName=`${s}Provider`,c.displayName=`${s}Consumer`,u.displayName=`${s}HOC`,{Provider:l,Consumer:c,MaybeConsumer:({children:e})=>e((0,i.useContext)(n)),useMaybeHook:d,useHook:function(){const e=d();if(void 0===e)throw new Error(`use${s} must be used within a ${s}Provider.`);return e},deprecatedHOC:u}}},643010:(e,t,n)=>{n.d(t,{F6:()=>u,Hs:()=>d,Uf:()=>a,Yc:()=>l,vs:()=>c});var i=n(667294),o=n(867820),r=n(957161);const a="theme",s="dark"===(0,r.qn)(a),l=()=>s;function c(){const[e,t]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{t(l())}),[t]),e}const d=()=>{(0,r.Nh)(a,"dark"),(0,o.My)("mweb.dark_mode.enable"),window.location.reload()},u=()=>{(0,r.L_)(a),(0,o.My)("mweb.dark_mode.disable"),window.location.reload()}},202139:(e,t,n)=>{n.d(t,{DH:()=>i,F4:()=>a,FS:()=>o,N1:()=>d,N9:()=>l,UK:()=>r,VL:()=>s,v6:()=>c});const i=1e3,o=60*i,r=60*o,a=24*r,s=7*a,l=30*a,c=31*a,d=365*a},451820:(e,t,n)=>{n.d(t,{Z:()=>o,k:()=>i});const i={LONG:"long",YEAR:"year",WEEKDAY_DATE:"weekday_date",WEEKDAY_DATE_TIME_TIMEZONE:"weekday_date_time_timezone",SHORT_WEEKDAY_DATE:"short_weekday_date",LONG_MONTH_YEAR:"long_month_year",NUMERIC:"numeric",MONTH_DAY:"month_day",SHORT_MONTH:"short_month",SHORT_MONTH_DAY:"short_month_day",DAY:"day",YEAR_SHORT_MONTH_DAY:"year_short_month_day",YEAR_SHORT_MONTH_DAY_HOUR:"year_short_month_day_hour",TIME:"time",TIME_TIMEZONE:"time_timezone",HOUR:"hour",TWO_DIGIT:"two_digit"};function o(e,t,n,o=!0){const r=function(e){switch(e){case i.YEAR:return{year:"numeric"};case i.LONG:return{year:"numeric",month:"long",day:"numeric"};case i.NUMERIC:return{year:"numeric",month:"numeric",day:"numeric"};case i.TWO_DIGIT:return{year:"numeric",month:"2-digit",day:"2-digit"};case i.WEEKDAY_DATE:return{weekday:"long",month:"long",day:"numeric",year:"numeric"};case i.SHORT_WEEKDAY_DATE:return{weekday:"short",month:"numeric",day:"numeric"};case i.WEEKDAY_DATE_TIME_TIMEZONE:return{weekday:"short",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"};case i.MONTH_DAY:return{month:"long",day:"numeric"};case i.SHORT_MONTH:return{month:"short"};case i.SHORT_MONTH_DAY:return{month:"short",day:"numeric"};case i.DAY:return{day:"numeric"};case i.LONG_MONTH_YEAR:return{month:"long",year:"numeric"};case i.YEAR_SHORT_MONTH_DAY:return{year:"numeric",month:"short",day:"numeric"};case i.YEAR_SHORT_MONTH_DAY_HOUR:return{month:"short",year:"numeric",day:"numeric",hour:"numeric"};case i.TIME:return{hour:"numeric",minute:"2-digit"};case i.TIME_TIMEZONE:return{hour:"numeric",minute:"2-digit",timeZoneName:"short"};case i.HOUR:return{hour:"numeric"};default:throw new Error('invalid dateFormatType "'+e+'"')}}(n);o&&(r.timeZone="UTC");return new Intl.DateTimeFormat(e,r).format(t)}},81226:(e,t,n)=>{function i(e){const t=Math.round(e/1e3),n=t%60;return Math.floor(t/60)+":"+(n<10?"0":"")+n}n.d(t,{Z:()=>i})},766935:(e,t,n)=>{function i(e,t){let n;return(...i)=>{clearTimeout(n),n=setTimeout((()=>e(...i)),t)}}n.d(t,{Z:()=>i})},966476:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(667294);const o=()=>{const[e,t]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{t(!0)}),[]),e}},722767:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(667294),o=n(973935);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}class a extends i.Component{constructor(...e){super(...e),r(this,"observer",null),r(this,"handleVisibilityChanged",((e,t)=>{this.props.onVisibilityChange(e,t)}))}componentDidMount(){const e=o.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 i.Children.only(this.props.children)}}const s=a},11363:(e,t,n)=>{n.d(t,{Bx:()=>o,N4:()=>a,is:()=>s,lt:()=>i,oM:()=>r});const i=e=>e.bt("You're almost there! Log in to access all of Pinterest", "You're almost there! Log in to access all of Pinterest", "loginModal.limitedLogin.subheader", undefined, true),o=e=>e.bt("Log in to save this Pin", "Log in to save this Pin", "limitedLogin.modalHeader.repin", undefined, true),r=e=>e.bt("Log in to edit this Pin", "Log in to edit this Pin", "limitedLogin.modalHeader.editPin", undefined, true),a=({i18n:e,toFollow:t})=>t?e.bt("Log in to follow", "Log in to follow", "limitedLogin.modalHeader.follow", undefined, true):e.bt("Log in to unfollow", "Log in to unfollow", "limitedLogin.modalHeader.unfollow", undefined, true),s=e=>e.bt("Log in to create a Pin or board", "Log in to create a Pin or board", "limitedLogin.modalHeader.create", undefined, true)},946984:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(898781),o=n(11363),r=n(987318);const a=()=>{const{loginForMore:e,viewer:t,limitedLoginModalSubheader:n}=(0,r.H)(),a=(0,i.ZP)();return"AUTH"===t.type?null:t=>{null==e||e.setVisible(!0),null==n||n.setText((null==t?void 0:t.loginModalHeader)||(0,o.lt)(a))}}},375571:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(667294),o=n(172071),r=n(395164);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 s extends i.Component{constructor(...e){super(...e),a(this,"state",{error:null,info:null}),a(this,"resetError",(()=>{this.setState({error:null,info:null})}))}componentDidCatch(e,t){try{var n;const t=this.props.name,i=this.props.type||"secondary";(0,r.T)({extraData:null!==(n=e.extraData)&&void 0!==n?n:{},errorBoundary:t,errorBoundaryType:i,message:e.message,name:e.name,stack:e.stack}),o.Z.increment("react.error_boundary",.1,{component:void 0,name:this.props.name})}catch(i){o.Z.increment("react.error_boundary.error",1,{name:this.props.name})}this.setState({error:e,info:t})}render(){const{renderErrorState:e}=this.props,{error:t,info:n}=this.state;return t&&n?e?e({error:t,info:n,resetError:this.resetError}):null:this.props.children}}},319915:(e,t,n)=>{n.d(t,{Z:()=>i});const i=n(375571).Z},124237:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(607187),o=n.n(i);const r={};r._showErrorCallback=r._showErrorCallback||null,r.setShowHtmlErrorCallback=function(e){r._showErrorCallback=e},r.showError=function(e,t,n){const i=o()(e);return r.showHtmlError(i,t,n)},r.showHtmlError=function(e,t,n){"function"==typeof r._showErrorCallback&&r._showErrorCallback(e,t,n)};const a=r},121093:(e,t,n)=>{n.d(t,{Z:()=>c});var i=n(667294),o=n(702664),r=n(332611),a=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 i.Component{constructor(...e){super(...e),s(this,"state",{hasCompleted:[],hasDismissed:[]}),s(this,"view",(()=>{const{experience:e,isBackendExperience:t,targeting:n,viewExperience:i,viewExperienceObject:o}=this.props;e&&"viewed"!==e.status&&(t?(e.status="viewed",o(e)):n?i(e.placement_id,e.experience_id,n):i(e.placement_id,e.experience_id))})),s(this,"complete",(e=>{const{completeExperience:t,completeExperienceObject:n,experience:i,isBackendExperience:o,preventRemoval:r,targeting:a}=this.props,s=e||1;if(i&&!this.state.hasCompleted.includes(i.experience_id)){const{placement_id:e,experience_id:l}=i||{},c=r||2===s;(1===s||c)&&e&&l&&(o?n(i,c):a?t(e,l,c,a):t(e,l,c),this.setState((e=>({hasCompleted:[...e.hasCompleted,l]}))))}})),s(this,"dismiss",(()=>{const{dismissExperience:e,dismissExperienceObject:t,experience:n,isBackendExperience:i,preventRemoval:o,targeting:r}=this.props,{placement_id:a,experience_id:s}=n||{};n&&!this.state.hasDismissed.includes(s)&&(i?t(n):r?e(a,s,!!o,r):e(a,s,!!o),this.setState((e=>({hasDismissed:[...e.hasDismissed,s]}))))})),s(this,"shouldRenderExperience",(()=>{const{experience:e}=this.props;if(e){const{eligibleIds:t,eligibleTypes:n,predicate:i,transitionType:o}=this.props,{experience_id:r,type:a}=e;if(t&&t.includes(r))return!0;if(null==t||!t.length){if(i&&i(e))return!0;if(n&&n.includes(a))return!0;if(o&&o===a)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({})}):i.Children.only(e):null}}s(l,"defaultProps",{eligibleIds:[],eligibleTypes:[]});const c=(0,o.connect)((({experiences:e},t)=>({experience:t.experience||(t.placementId?e[t.placementId]:void 0)})),(e=>({completeExperience:(t,n,i,o)=>e((0,r.CK)(t,n,i,!1,{},o)),completeExperienceObject:(t,n)=>e((0,a.Tl)(t,n)),dismissExperience:(t,n,i,o)=>e((0,r.Qu)(t,n,i,void 0,o)),dismissExperienceObject:t=>e((0,a.CF)(t)),viewExperience:(t,n,i)=>e((0,r.UT)(t,n,!1,!1,void 0,i)),viewExperienceObject:t=>e((0,a.dy)(t))})))(l)},701500:(e,t,n)=>{n.d(t,{Z:()=>p});var i=n(667294),o=n(249647),r=n(570470),a=n(883119),s=n(785893);class l extends i.Component{renderPulsar(){const{anchor:e,handleComplete:t,handlePulsarCompleteOnHover:n,zIndex:i}=this.props;return(0,s.jsx)(r.Z,{anchor:e,onTouch:t,onMouseEnter:n,zIndex:i})}renderFlyout(){const{anchor:e,tooltip:t,handleDismiss:n,handleComplete:i}=this.props;if(!t)return null;const{cancelButtonText:o,confirmButtonText:r,mainText:l,idealDirection:c="down"}=t,d=o&&n&&r&&i;return(0,s.jsx)(a.J2,{anchor:e,color:"blue",idealDirection:c,onDismiss:n,shouldFocus:!1,showCaret:!0,size:"flexible",children:(0,s.jsxs)(a.xu,{maxWidth:284,padding:3,width:"max-content",children:[(0,s.jsx)(a.xv,{color:"inverse",overflow:"breakWord",weight:"bold",children:l}),d?(0,s.jsxs)(a.xu,{marginTop:2,display:"flex",alignItems:"center",children:[(0,s.jsx)(a.xu,{column:6,marginEnd:1,children:(0,s.jsx)(a.zx,{fullWidth:!0,color:"transparentWhiteText",onClick:e=>n(e),size:"md",text:String(o)})}),(0,s.jsx)(a.xu,{column:6,children:(0,s.jsx)(a.zx,{fullWidth:!0,color:"white",size:"md",text:String(r),onClick:i})})]}):null]})})}render(){const{anchor:e,pulserOnly:t}=this.props;return e?t?this.renderPulsar():this.renderFlyout():null}}var c=n(70061),d=n(764990),u=n(123159);function p({anchor:e,anchorElementRef:t,children:n,containerBoxConfig:r,experience:p,isHidden:h,onCompleteClick:_,zIndex:m}){var f;const{completeExperience:g,dismissExperience:v,experiences:y,viewExperience:b}=(0,u.M)(),x=(({anchor:e,anchorExperiences:t,passedExperience:n})=>n||(t?t[e]:null))({anchor:e,anchorExperiences:Object.values(y).reduce(((e,t)=>(8===t.type&&(e[(0,d.A0)(t)]=t),e)),{}),passedExperience:p}),P=(null==x||null===(f=x.display_data)||void 0===f?void 0:f.delay)||0,[w,S]=(0,i.useState)(!!P);if((0,i.useEffect)((()=>{if(P>0&&w){const e=setTimeout((()=>{S(!1)}));return()=>clearTimeout(e)}return()=>{}}),[P,w]),(0,i.useEffect)((()=>{!w&&x&&b(x.placement_id,x.experience_id)}),[w,x]),!x||w||h)return i.Children.only(n);const E=(e=>{const{display_data:t}=e;return t.tooltip&&(t.tooltip={...t.tooltip.options,...t.tooltip},delete t.tooltip.options),(0,o.Z)(c.Z,!0)(t)})(x),A=()=>{var e;null!==(e=x.display_data)&&void 0!==e&&e.complete_on_hover&&g(x.placement_id,x.experience_id)};return(0,s.jsxs)(a.xu,{position:"relative",height:null==r?void 0:r.height,display:null==r?void 0:r.display,children:[(0,s.jsx)(a.iP,{onMouseEnter:A,onTap:()=>{_&&_(),E.skipComplete||g(x.placement_id,x.experience_id)},children:i.Children.only(n)}),(0,s.jsx)(l,{anchor:t||null,handlePulsarCompleteOnHover:A,handleComplete:()=>{t instanceof HTMLElement&&t.click()},handleDismiss:e=>{null!=e&&e.event&&e.event.stopPropagation(),v(x.placement_id,x.experience_id)},pulserOnly:!!E.pulserOnly,tooltip:E.tooltip,zIndex:m})]})}},123159:(e,t,n)=>{n.d(t,{F:()=>p,M:()=>u});var i=n(667294),o=n(702664),r=n(14890),a=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,i.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,o.useDispatch)(),u=(0,o.useSelector)((e=>e.experiences)),p=(0,i.useMemo)((()=>{const e=(0,r.bindActionCreators)({completeExperience:l.CK,dismissExperience:l.Qu,fetchAllExperiences:l.fO,fetchAllExperiencesMulti:a.NW,fetchExperienceForPlacements:l.pz,mountPlacement:l.N,triggerExperimentsForPlacement:l.kd,viewExperience:l.UT},s);return{...e,mountPlacement:(t,...i)=>{e.mountPlacement(t,...i),n({type:"MOUNT_PLACEMENT",payload:t})},unmountPlacement:e=>{n({type:"UNMOUNT_PLACEMENT",payload:e})}}}),[s,n]),h=(0,i.useMemo)((()=>({experiences:u,mountedPlacements:t,...p})),[u,t,p]);return(0,c.jsx)(d,{value:h,children:e})}},333312:(e,t,n)=>{n.r(t),n.d(t,{default:()=>u});var i=n(667294),o=n(121093),r=n(570470),a=n(883119),s=n(785893);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends i.PureComponent{constructor(...e){super(...e),l(this,"onScroll",(()=>{const{dismiss:e}=this.props;this.dismissed||this.timer||(this.timer=setTimeout((()=>{e(),this.dismissed=!0,this.timer=void 0}),3e3))})),l(this,"dismissed",!1)}componentDidMount(){window.addEventListener("scroll",this.onScroll)}componentWillUnmount(){this.timer&&clearTimeout(this.timer)}render(){const{anchor:e,text:t,thumbnails:n,idealDirection:i}=this.props,o=n.slice(-3);return(0,s.jsx)(a.J2,{anchor:e,color:"white",idealDirection:i,onDismiss:this.onScroll,shouldFocus:!1,size:"md",children:(0,s.jsxs)(a.xu,{display:"flex",alignContent:"center",justifyContent:"between",padding:3,width:"100%",children:[(0,s.jsx)(a.xu,{alignItems:"center",display:"flex",flex:"grow",justifyContent:"center",marginStart:-3,paddingX:3,children:(0,s.jsx)(a.xv,{color:"default",weight:"bold",children:t})}),(0,s.jsx)(a.xu,{display:"flex",marginEnd:-2,paddingX:2,children:o.map((e=>(0,s.jsx)(a.xu,{height:60,width:50,paddingX:1,children:(0,s.jsx)(a.zd,{rounding:2,height:60,children:(0,s.jsx)(a.Ee,{alt:"More Ideas Thumbnail",color:"rgb(86, 152, 239)",fit:"cover",naturalHeight:60,naturalWidth:60,src:e})})},e)))})]})})}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u extends i.Component{constructor(...e){super(...e),d(this,"state",{paused:!1}),d(this,"handlePulsarClick",((e,t)=>{e?this.setState({paused:!0}):t()}))}componentWillUnmount(){clearTimeout(this.timer)}setDefaultPulsarTooltip(e){const t=e=>!(null==e);e.has_pulsar=!t(e.has_pulsar)||e.has_pulsar,e.has_tooltip=!t(e.has_tooltip)||e.has_tooltip}getText(e,t,n){return t&&e.text.replace("{boardName}",t),n?n(e):e.text}render(){const{anchor:e,customWrapper:t,experienceIds:n,boardTextOverride:l,flyoutSize:d,fontSize:u,hasFullWidthButton:p=!0,idealDirection:h,useMasonryFlyout:_,noClickToDismiss:m,onClickComplete:f,onClickDismiss:g,placementId:v,positionRelativeToAnchor:y,shouldTimeoutDismiss:b,showCaret:x,textAlign:P,textOverflow:w,textOverrideFn:S,textWeight:E,customizedComplete:A,pulsarZIndex:T}=this.props,I=t||(({children:e})=>_?(0,s.jsx)(a.mh,{children:e}):e),C="blue";return(0,s.jsx)(o.Z,{eligibleIds:n,placementId:v,eligibleTypes:[8],children:({complete:t,dismiss:n,experience:o})=>{const{display_data:v}=o;if(this.setDefaultPulsarTooltip(v),!v.has_pulsar&&!v.has_tooltip)return t(),null;b&&v.disappearTime&&v.disappearTime>0&&(this.timer=setTimeout((()=>(n(),null)),v.disappearTime));const R=501041===o.experience_id||505086===o.experience_id;return(0,s.jsxs)(i.Fragment,{children:[v.has_pulsar&&(0,s.jsx)(r.Z,{anchor:e,leftOverride:R?342:void 0,onTouch:()=>this.handlePulsarClick(v.has_tooltip,t),paused:this.state.paused,topOverride:R?-5:void 0,zIndex:T&&T.index()}),v.has_tooltip&&(!v.has_pulsar||this.state.paused)&&(v.thumbnail_urls?(0,s.jsx)(c,{anchor:e,dismiss:n,idealDirection:h||"down",text:v.text,thumbnails:v.thumbnail_urls}):(0,s.jsx)(I,{children:(0,s.jsx)(a.J2,{anchor:e,color:C,idealDirection:h||"down",onDismiss:m?()=>{}:n,positionRelativeToAnchor:!_&&y,shouldFocus:!1,showCaret:x,size:d,children:(0,s.jsxs)(a.xu,{column:12,padding:3,children:[(0,s.jsxs)(a.xv,{align:"right"===P?"end":P,color:"inverse",overflow:w,size:u,weight:E||"bold",children:[this.getText(v,l,S),v.secondary_cta_link&&(0,s.jsx)(a.xu,{display:"inlineBlock",marginStart:1,children:(0,s.jsx)(a.xv,{size:u,weight:"bold",color:"inverse",children:(0,s.jsx)(a.rU,{display:"inlineBlock",target:"blank",href:v.secondary_cta_link.url,underline:"hover",children:v.secondary_cta_link.text})})})]}),v.sub_text&&(0,s.jsx)(a.xu,{paddingY:2,children:(0,s.jsx)(a.xv,{color:"inverse",size:u,children:v.sub_text})}),(v.dismiss_button_text||v.complete_button_text)&&(0,s.jsxs)(a.xu,{display:"flex",alignItems:"center",marginTop:2,children:[v.dismiss_button_text&&(0,s.jsx)(a.xu,{marginEnd:1,column:6,children:(0,s.jsx)(a.zx,{fullWidth:p,color:C,onClick:()=>{g&&g(),n()},size:"md",text:v.dismiss_button_text})}),v.complete_button_text&&(0,s.jsx)(a.xu,{column:v.dismiss_button_text?6:12,children:A?(0,s.jsx)(a.iP,{fullHeight:!0,onTap:()=>{t(),f&&f()},rounding:2,children:(0,s.jsx)(a.xu,{display:"flex",color:"default",padding:2,rounding:2,justifyContent:"center",dangerouslySetInlineStyle:{__style:{padding:"10px"}},children:(0,s.jsx)(a.xv,{color:"shopping",weight:"bold",children:v.complete_button_text})})}):(0,s.jsx)(a.kC,{justifyContent:"center",children:(0,s.jsx)(a.zx,{fullWidth:p,color:"white",href:v.complete_button_cta_url,role:v.complete_button_cta_url?"link":"button",size:"md",target:v.complete_button_cta_url?"blank":null,text:v.complete_button_text,onClick:({event:e})=>{e.preventDefault(),e.stopPropagation(),t(),f&&f()}})})})]})]})})}))]})}})}}d(u,"defaultProps",{fontSize:"300",positionRelativeToAnchor:!0})},332611:(e,t,n)=>{n.d(t,{CK:()=>p,N:()=>g,Qu:()=>h,UT:()=>u,YX:()=>f,d9:()=>_,fO:()=>l,kd:()=>m,pz:()=>c});var i=n(6637),o=n(764990),r=n(172071),a=n(957191);let s;const l=(e,t)=>n=>{const o=t?{extra_context:e,targeting:t}:{extra_context:e};return i.Z.create("UserExperiencePlatformResource",o).callGet().then((e=>e.resource_response?n((0,a.OD)(e.resource_response.data)):void 0))},c=(e,t,n,r)=>(l,c)=>{if(t)return Promise.resolve();if(r&&(s=r),1===e.length){const t=e[0],i=c().experiences[t],r=(null==i?void 0:i.extraContext)||null;if(JSON.stringify(r)===JSON.stringify(n)||(0,o.E3)(i)&&!(n&&Object.keys(n).length>0))return Promise.resolve()}return i.Z.create("UserExperienceResource",{placement_ids:e,extra_context:n||null,targeting:r}).callGet().then((e=>e.resource_response?l((0,a.cL)(e.resource_response.data)):void 0))},d=(e,t)=>(n,o,r,c=!1,d,u)=>(p,h)=>{const{experiences:_,experiencesMulti:m}=h();let f=null,g=!0;var v;c||(g=_[n]&&_[n].experience_id===o,f=g?_[n]:Array.isArray(m[n])&&(null===(v=m[n])||void 0===v?void 0:v.find((e=>e.experience_id===o))));if(f&&f.experience_id===o||c&&n&&o){const c=i.Z.create(e,{placed_experience_id:`${n}%3A${o}`,extra_context:null!=d?d:{},targeting:u}),h=g?a.Yb:a.xW;switch(t){case"dismissed":return c.callDelete().then((()=>{p(h(n,o,t)),p(l(void 0,s))}));case"completed":return c.callUpdate().then((()=>{r||(p(h(n,o,t)),p(l(void 0,s)))}));case"viewed":return p(h(n,o,t)),c.callUpdate().then((()=>{1000162===n&&p(l())}));case"completedWithoutHomefeed":return c.callUpdate().then((()=>{r||p(h(n,o,t))}));default:return Promise.resolve()}}return Promise.resolve()},u=d("UserExperienceViewedResource","viewed"),p=d("UserExperienceCompletedResource","completed"),h=d("UserExperienceResource","dismissed"),_=d("UserExperienceCompletedResource","completedWithoutHomefeed"),m=(e,t)=>(n,o)=>{const{experiences:a}=o(),s=a[e];s&&s.triggerable_placed_exps&&s.triggerable_placed_exps.length&&s.triggerable_placed_exps.forEach((n=>{const[,o]=n.split(":");let a=t;s.metadata&&s.metadata[o]&&(a={...t,...s.metadata[o]}),i.Z.create("UserExperienceTriggerResource",{placed_experience_id:n.replace(":","%3A"),extra_context:a}).callUpdate().then((()=>{((e,t,n={})=>{r.Z.increment(`${e}.${t}`,1,n)})("experienceservice","experimentTriggerCall.1",{placement_id:e,experience_id:o})}))}))},f=e=>(t,n)=>{t(m(e));const{experiences:i}=n();return i[e]},g=(e,t,n)=>i=>{n&&(s=n),i(m(e,t)),t&&Object.keys(t).length>0&&i(c([e],!1,t,n))}},242923:(e,t,n)=>{n.d(t,{CF:()=>s,Tl:()=>a,dy:()=>l});var i=n(6637),o=n(332611);const r=(e,t)=>(n,r)=>a=>{if(n&&n.id){const s=i.Z.create(e,{placed_experience_id:n.id,extra_context:{}});switch(t){case"dismissed":s.callDelete().then((()=>{a((0,o.fO)())}));break;case"completed":s.callUpdate().then((()=>{r||a((0,o.fO)())}));break;case"viewed":s.callUpdate()}}},a=r("UserExperienceCompletedResource","completed"),s=r("UserExperienceResource","dismissed"),l=r("UserExperienceViewedResource","viewed")},764990:(e,t,n)=>{function i(e){return!!e&&0!==e.type}n.d(t,{A0:()=>r,E3:()=>i,MQ:()=>o});const o=(e,t,n)=>{const o=e[n];return t[n]&&i(o)?o:null};function r(e){var t;return null===(t=e.display_data)||void 0===t?void 0:t.anchor}},131108:(e,t,n)=>{n.d(t,{HI:()=>a,f8:()=>l,hm:()=>s,sH:()=>r});var i=n(883119),o=n(785893);const r=({children:e})=>(0,o.jsx)(i.xu,{padding:4,position:"absolute",bottom:!0,left:!0,right:!0,children:e}),a=({children:e})=>(0,o.jsx)(i.xu,{padding:2,children:e}),s=({children:e})=>(0,o.jsx)(i.xu,{display:"flex",position:"absolute",top:!0,height:"100%",width:"100%",alignItems:"center",justifyContent:"center",children:e}),l=({children:e})=>(0,o.jsx)(i.xu,{padding:4,position:"absolute",top:!0,left:!0,right:!0,children:e})},599997:(e,t,n)=>{n.d(t,{Mf:()=>c,q4:()=>o,zn:()=>i});const i=e=>["feed_card_default","feed_card_video"].includes(e),o=2/3,r={0:"start",1:"center",2:"end"},a={web:{0:"16",1:"20",2:"24"},mweb:{0:"12",1:"16",2:"18"}},s={1:"italics",0:"normal"},l={1:"bold",0:"normal"},c=({color:e,font_style:t,font_weight:n,horizontal_alignment:i,size:o},c)=>({color:e,fontStyle:s[null!=t?t:0],fontWeight:l[null!=n?n:1],horizontalAlignment:r[null!=i?i:0],fontSize:a[c][null!=o?o:0]+"px"})},207737:(e,t,n)=>{n.d(t,{$S:()=>i,V$:()=>o,_4:()=>a,iY:()=>s,mR:()=>r});const i="REFRESH_ALL_EXPERIENCES_MULTI",o="UPDATE_EXPERIENCE_MULTI",r="FETCH_EXPERIENCES",a="REFRESH_ALL_EXPERIENCES",s="UPDATE_EXPERIENCE"},957191:(e,t,n)=>{n.d(t,{NW:()=>a,OD:()=>l,Yb:()=>s,cL:()=>c,xW:()=>r});var i=n(6637),o=n(207737);const r=(e,t,n)=>({type:o.V$,payload:{placementId:e,experienceId:t,status:n}}),a=e=>t=>i.Z.create("UserExperiencePlatformResource",{extra_context:e,multiExperiencePlatform:!0}).callGet().then((e=>{return e.resource_response?t((n=e.resource_response.data,{type:o.$S,payload:{experiencesMulti:n}})):void 0;var n})),s=(e,t,n)=>({type:o.iY,payload:{placementId:e,experienceId:t,status:n}}),l=e=>({type:o._4,payload:{experiences:e}}),c=e=>({type:o.mR,payload:{experiences:e}})},570470:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(667294),o=n(883119),r=n(785893);function a({anchor:e,children:t,zIndex:n,leftOverride:a,topOverride:s}){const l=(0,i.useRef)(null),[c,d]=(0,i.useState)(0),[u,p]=(0,i.useState)(0),{height:h,width:_}=e.getBoundingClientRect();(0,i.useEffect)((()=>{const{current:t}=l;if(e&&t){const{height:e,width:n}=t.getBoundingClientRect(),{horizontalOffset:i,verticalOffset:o}=((e,t,n,i)=>({horizontalOffset:-(i/2-t/2),verticalOffset:-(n/2-e/2)}))(h,_,e,n);d(i),p(o)}}));const m=a||c,f=s||u;return(0,r.jsx)(o.xu,{position:"absolute",zIndex:n?new o.Ry(n):void 0,dangerouslySetInlineStyle:{__style:{left:m,top:f}},ref:l,children:t})}const s=function(e){const{anchor:t,leftOverride:n,onTouch:i,onMouseEnter:s,paused:l,size:c,topOverride:d,zIndex:u}=e;return t?(0,r.jsx)(a,{anchor:t,leftOverride:n,topOverride:d,zIndex:u,children:(0,r.jsx)(o.iP,{fullWidth:!1,onTap:({event:e})=>i(e),onMouseEnter:s,rounding:"circle",children:(0,r.jsx)(o.o3,{paused:l,size:c})})}):null}},497529:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(667294),o=(n(957191),n(764990)),r=n(123159);n(332611);function a(e){const{mountedPlacements:t,completeExperience:n,dismissExperience:a,experiences:s,fetchAllExperiences:l,fetchAllExperiencesMulti:c,fetchExperienceForPlacements:d,triggerExperimentsForPlacement:u,viewExperience:p}=(0,r.M)(),h=e?(0,o.MQ)(s,t,e):null;return(0,i.useMemo)((()=>({completeExperience:n,dismissExperience:a,experienceForPlacement:h,fetchAllExperiences:l,fetchAllExperiencesMulti:c,fetchExperienceForPlacements:d,triggerExperimentsForPlacement:u,viewExperience:p})),[n,a,h,l,c,d,u,p])}},402201:(e,t,n)=>{n.d(t,{Z:()=>i});const i=e=>{const[t,n]=[(null==e?void 0:e.width)||580,(null==e?void 0:e.height)||400],[i,o]=[window.screen.width,window.screen.height];return["scrollbars=yes","resizable=yes","toolbar=no","location=yes",`width=${t}`,`height=${n}`,`left=${Math.round((i-t)/2)}`,`top=${o>n?Math.round((o-n)/2):0}`].join(",")}},116303:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(883119),o=n(785893);const r=(e,t)=>{const n=null==e?void 0:e.includes("images/user/default");return Boolean(n&&t)};function a({accessibilityLabel:e,name:t,outline:n,size:a,src:s,verified:l}){return(0,o.jsx)(i.qE,{accessibilityLabel:e,name:t,outline:n,size:a,src:r(s,t)?void 0:s,verified:l})}},572551:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var i=n(667294),o=n(319915),r=n(757184),a=n(317254),s=n(463076);function l({isRTL:e,maxItemWidth:t=300,maxColumns:n=16,minColumns:i=2}){let o=`\n.gridCentered {\n  margin-left: auto;\n  margin-right: auto;\n  max-width: ${n*t}\n}\n\n.gridCentered .static {\n  position: absolute !important;\n  visibility: hidden !important;\n}\n\n@media (min-width: ${n*t}px) {\n  .gridCentered .static:nth-child(-n+${n}) {\n    position: static !important;\n    visibility: visible !important;\n    float: ${e?"right":"left"};\n    display: block;\n  }\n\n  .gridCentered .static:nth-child(-n+${n}) {\n    position: static !important;\n    visibility: visible !important;\n    float: ${e?"right":"left"};\n    display: block;\n  }\n\n  .gridCentered .static {\n    width: ${t}px !important;\n  }\n}\n`;for(let r=i;r<n+1;r+=1){o+=`\n@media (min-width: ${r===i?0:(r-1)*t}px) and (max-width: ${r*t-1}px) {\n  .gridCentered .static:nth-child(-n+${r}) {\n    position: static !important;\n    visibility: visible !important;\n    float: ${e?"right":"left"};\n    display: block;\n  }\n\n  .gridCentered .static {\n    width: calc(100% / ${r}) !important;\n  }\n}\n`}return o}var c=n(391254),d=n(883119),u=n(773285),p=n(780280),h=n(444445),_=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}class f extends i.Component{constructor(...e){super(...e),m(this,"Item",(e=>{const{Item:t}=this.props,{gutterWidth:n,paddingBottom:i}=this.getGutters();return(0,_.jsx)("div",{style:{paddingBottom:i,paddingLeft:n/2,paddingRight:n/2},children:(0,_.jsx)(t,{...e})})}))}getGutters(){const{gutterWidth:e,paddingStyle:t}=this.props,n="simplified"===t,i=n?h.oX:e,o=n?16:6;return{gutterWidth:null!=i?i:h.ZZ,paddingBottom:o}}render(){const{columnWidth:e,flexible:t,isGridCentered:n,isRTL:i,items:o,layout:r,loadItems:a,masonryRef:u,measurementStore:p,minCols:m,scrollContainerRef:f,serverRender:g,virtualize:v,virtualBufferFactor:y}=this.props,{gutterWidth:b}=this.getGutters(),x=g?"serverRenderedFlexible":"flexible";let P;n&&(P="gridCentered");const w=()=>(null==f?void 0:f.current)||window;return(0,_.jsxs)("div",{className:P,children:[g&&(0,_.jsx)(c.Z,{unsafeCSS:t?l({isRTL:i,maxItemWidth:(e||h.yF)+b,maxColumns:o.length||h.g5,minColumns:m||h.yc}):(0,s.Z)({isRTL:i,itemWidth:(e||h.yF)+b,maxColumns:o.length||h.g5,minColumns:m||h.yc})}),(0,_.jsx)(d.Rk,{columnWidth:(null!=e?e:h.yF)+b,gutterWidth:0,Item:this.Item,items:o,layout:t?x:null!=r?r:"basic",loadItems:a,measurementStore:p,minCols:m,ref:e=>{u&&(u.current=e)},scrollContainer:w,virtualize:v,virtualBufferFactor:y})]})}}function g(e){var t;const{isRTL:n}=(0,p.B)(),{checkExperiment:i}=(0,u.F)(),o=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"}[i("web_masonry_virtual_buffer_factor").group])&&void 0!==t?t:.7;return(0,_.jsx)(f,{...e,isRTL:n,virtualBufferFactor:o})}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}m(f,"defaultProps",{gutterWidth:h.ZZ,isGridCentered:!0,minCols:h.yc,paddingStyle:"simplified",virtualize:!0});class y extends i.Component{constructor(...e){super(...e),v(this,"Item",(e=>{const{Item:t}=this.props;return(0,_.jsx)(o.Z,{name:"MasonryPerfTimingItem",children:(0,_.jsx)(t,{...e})})})),v(this,"loadItems",(()=>{const{isFetching:e,loadItems:t}=this.props;!e&&t&&t()}))}render(){const{cacheKey:e,columnWidth:t,flexible:n,gutterWidth:i,isGridCentered:o,items:a,layout:s,masonryRef:l,minCols:c,paddingStyle:d,scrollContainerRef:u,serverRender:p,virtualize:h}=this.props;return(0,_.jsx)(g,{columnWidth:t,flexible:n,gutterWidth:i,isGridCentered:o,Item:this.Item,items:a,layout:s,loadItems:this.loadItems,masonryRef:l,measurementStore:(0,r.Z)(e),minCols:c,paddingStyle:d,scrollContainerRef:u,serverRender:p,virtualize:h})}}function b({cacheKey:e,columnWidth:t,flexible:n,gutterWidth:i,isAtEnd:o,isFetching:r,isGridCentered:s=!0,Item:l,items:c,pinData:d,layout:u,loadItems:p,masonryRef:h,minCols:m,paddingStyle:f,scrollContainerRef:g,serverRender:v=!0,virtualize:b=!0,includeBackgroundImages:x,includeVideos:P}){return(0,_.jsx)(a.Z,{isAtEndOfFeed:o,pinData:d,itemCount:c.length,includeBackgroundImages:x,includeVideos:P,children:(0,_.jsx)(y,{cacheKey:e,columnWidth:t,Item:l,flexible:n,gutterWidth:i,isFetching:r,isGridCentered:s,items:c,layout:u,loadItems:p,masonryRef:h,minCols:m,paddingStyle:f,scrollContainerRef:g,serverRender:v,virtualize:b})})}},757184:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(883119);const o={};function r(e){if(null!=e)return o[e]&&o[e].screenWidth===window.innerWidth||(o[e]={screenWidth:window.innerWidth,cache:i.Rk.createMeasurementStore()}),o[e].cache}},463076:(e,t,n)=>{function i({isRTL:e,itemWidth:t=236,maxColumns:n=16,minColumns:i=2}){let o="\n.gridCentered {\n  margin-left: auto;\n  margin-right: auto;\n}\n.gridCentered .static {\n  position: absolute;\n  visibility: hidden;\n}\n";for(let r=i;r<n+1;r+=1){o+=`\n@media (min-width: ${r===i?0:r*t}px) and (max-width: ${(r+1)*t-1}px) {\n  .gridCentered {\n    width: ${r*t}px;\n  }\n  .gridCentered .static:nth-child(-n+${r}) {\n    position: static !important;\n    visibility: visible !important;\n    float: ${e?"right":"left"};\n    display: block;\n  }\n}\n`}return o}n.d(t,{Z:()=>i})},121151:(e,t,n)=>{n.d(t,{ZP:()=>d,b7:()=>s.b7,bN:()=>l,p4:()=>c});var i=n(50286),o=n(883119),r=n(240684),a=n(785893),s=n(968121);const l=(0,r.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,r.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,i.ZP)(),n=void 0===e.isOpen||e.isOpen;if("desktop"===t&&n){const{isOpen:t,mobileAccessibilityCloseIconLabel:n,mobileAllowScroll:i,mobileHideCloseIcon:o,mobileIsFullscreen:r,mobileIsSlideUp:s,type:c,...d}=e;return(0,a.jsx)(l,{...d})}const{allowClickAndDrag:o,allowMediaPlay:r,allowScroll:s,role:d,size:u,...p}=e;return(0,a.jsx)(c,{...p,isOpen:n})}},968121:(e,t,n)=>{n.d(t,{JN:()=>u,Vf:()=>p,ZM:()=>s,b7:()=>a,bf:()=>d,i_:()=>l,ju:()=>h});var i=n(379764),o=n(643010),r=n(883119);const a=new r.Ry(1e3),s=new r.H3([i.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,o.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,o.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:i})=>{const o=c.modal.fullscreenStyles;let r;return r=e?o:t?c.modal.tabletStyles:"signup"===i?c.modal.nonTabletSignUpStyles:{...c.modal.baseStyles,borderRadius:"32px 32px 0 0"},{__style:n||r}},p=({isFullscreen:e,isTablet:t,isShowing:n,type:i})=>{let o=c.modal.baseStylesSliding,r=n?"translateY(0)":"translateY(100vh)";return o.height=e?"100vh":"",t&&"related_interests_modal"===i&&(o={...o,...c.modal.tabletNarrowStyle},r=n?"translate(-50%, 0)":"translate(-50%, 100vh)"),{__style:{...o,transition:"all 225ms cubic-bezier(0.0,0.0,0.2,1) 500ms",transform:r}}},h=e=>e?c.RTLheadingOffset:c.headingOffset},499128:(e,t,n)=>{n.d(t,{UZ:()=>c,Vg:()=>l,ZP:()=>d});var i=n(667294),o=n(829407),r=n(50286),a=n(883119),s=n(785893);const l=200,c=({deviceType:e,hiding:t,visible:n})=>{const i="desktop"===e;let o=0,r=i?"translateY(200px)":"translateY(-200px)",a="opacity 0.1s ease-in-out",s="hidden";return n&&!t&&(o=1,r="translateY(0)",a="all 0.7s cubic-bezier(.19, 1.15, .48, 1)",s="visible"),n&&t&&(r="scale(1.1)",a="opacity transform 0.2s"),{opacity:o,pointerEvents:"auto",position:"relative",marginTop:i?10:0,transform:r,transition:a,visibility:s}};function d({_dangerouslySetPrimaryAction:e,text:t,primaryAction:n,thumbnailShape:d,variant:u,dataTestId:p,duration:h=2e3,onHide:_,href:m,onClick:f,openNewPage:g,iconThumbnail:v,imageUrl:y}){const b=(0,r.ZP)(),[x,P]=(0,i.useState)(!1),[w,S]=(0,i.useState)(!1),E=(0,i.useRef)(),A=()=>{P(!0),E.current=setTimeout(_,l)},T=()=>{E.current=setTimeout(A,h)},I=()=>{E.current&&clearTimeout(E.current)};let C;(0,o.Z)((()=>(setTimeout((()=>S(!0)),100),T(),I))),v?C=v:y&&(C=(0,s.jsx)(a.xu,{height:48,overflow:"hidden",width:48,children:(0,s.jsx)(a.Ee,{alt:"string"==typeof t?t:`${t[0]} ${t[1]}`,fit:"cover",naturalHeight:1,naturalWidth:1,src:y})}));const R=(0,s.jsx)(a.FN,{_dangerouslySetPrimaryAction:e,primaryAction:n,text:t,thumbnail:C,thumbnailShape:d,variant:u}),{marginTop:k,opacity:O,pointerEvents:D,position:j,transform:N,transition:L,visibility:M}=c({deviceType:b,hiding:x,visible:w});return(0,s.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{transform:N,transition:L,visibility:M,pointerEvents:D}},"data-test-id":null!=p?p:"toast",onMouseEnter:I,onMouseLeave:T,opacity:O,position:j,marginTop:k,display:"flex",children:m?(0,s.jsx)(a.iP,{role:"link",href:m,onTap:({event:e})=>null==f?void 0:f(e),target:g?"blank":null,rounding:"pill",children:R}):R})}},572752:(e,t,n)=>{function i(e){return`${e.userAgent.isMobile?"mobile":"desktop"}.${e.country}.${e.userAgent.platform}.${e.userAgent.browserName}`.replace(/ /g,"_")}n.d(t,{Z:()=>i})},444445:(e,t,n)=>{n.d(t,{$H:()=>a,$q:()=>g,D6:()=>l,KN:()=>v,Lo:()=>o,P2:()=>_,ZZ:()=>d,g5:()=>u,jC:()=>s,lX:()=>h,nW:()=>p,oX:()=>m,qG:()=>f,tG:()=>r,yF:()=>i,yc:()=>c});const i=236,o=2*i/3,r=175,a=24,s=4,l=2,c=2,d=14,u=16,p=12,h=16,_=24,m=16,f=-1,g=(e=!1,t=!1)=>e?t?h:p:_,v=(e,t,n,i,o=d)=>{const r=e+o;return`\n@media (min-width: ${t*r}px) and (max-width: ${(n+1)*r-1}px) {\n  ${i}\n}\n`}},694379:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(892819),o=n(780280),r=n(785893);const a=({currency:e,maximumFractionDigits:t,minimumFractionDigits:n,shortform:a,shortformMaximumFractionDigits:s,formatStyle:l,uplimit:c,value:d})=>{const u=(0,i.Z)();return(0,r.jsx)(o.LC,{children:i=>u(i.locale||"en-US",d,{currency:e,maximum_fraction_digits:t,minimum_fraction_digits:n,shortform:a,shortform_maximum_fraction_digits:s,style:l,uplimit:c})})}},898781:(e,t,n)=>{n.d(t,{ZP:()=>s,oz:()=>r,q6:()=>o});var i=n(425288);const{Provider:o,Consumer:r,useHook:a}=(0,i.Z)("i18n"),s=a},892819:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(66699),o=n(898781);const r=(e,t)=>{const n=t||0,i=10**n,o=+(n?e*i:e).toFixed(8),r=Math.floor(o),a=o-r,s=a>.5-1e-8&&a<.5+1e-8?r%2==0?r:r+1:Math.round(o);return n?s/i:s},a=e=>{try{(0).toLocaleString([e])}catch(t){return!1}return!0};function s(){const e=(0,o.ZP)();return(t,n,o)=>{let s=0,l=0;const c=o&&o.style||void 0,d=o&&o.shortform||!1,u=o&&o.uplimit||void 0,p=o&&o.currency||void 0,h=!!u&&n>=u,_=u&&h?u:n;if("currency"===c){const{minimumFractionDigits:e,maximumFractionDigits:n}=((e,t)=>{if(t){const{minimumFractionDigits:n,maximumFractionDigits:i}=new Intl.NumberFormat(e,{style:"currency",currency:t}).resolvedOptions();if(void 0!==n&&void 0!==i)return{minimumFractionDigits:n,maximumFractionDigits:i}}return{minimumFractionDigits:2,maximumFractionDigits:2}})(t,p);s=void 0===o||void 0===o.maximum_fraction_digits?n:o.maximum_fraction_digits,l=void 0===o||void 0===o.minimum_fraction_digits?e:o.minimum_fraction_digits}else s=void 0===o||void 0===o.maximum_fraction_digits?0:o.maximum_fraction_digits,l=void 0===o||void 0===o.minimum_fraction_digits?0:o.minimum_fraction_digits;if(d&&_>999&&(s=void 0===o||void 0===o.shortform_maximum_fraction_digits?2:o.shortform_maximum_fraction_digits,l=0),s<l)return String(_);let m=_,f="";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)}}],v=[{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)}}],y=/^zh|ja|ko/.test(t);if(d&&_>999){const e=y?g:v;for(let t=0;t<e.length;t+=1){const n=Object.keys(e[t])[0],i=e[t][n].value;if(_>=i){m=r(_/i*Math.pow(10,s))/Math.pow(10,s),f=e[t][n].localeKey;break}}}if(null==m)return"";const b=m.toLocaleString([a(t)&&"ar-SA"!==t?t:"en-US"],(({maximumFractionDigits:e,minimumFractionDigits:t,style:n,currency:i})=>{const o={maximumFractionDigits:e,minimumFractionDigits:t};return n?{...o,style:n,..."currency"===n?{currency:i,currencyDisplay:"symbol"}:{}}:o})({maximumFractionDigits:s,minimumFractionDigits:l,currency:p,style:c}));return f&&f.length>0?(0,i.Z)(e.bt("{{formattedNumber}}{{numberSuffix}}", "{{formattedNumber}}{{numberSuffix}}", "i18n.usePrettyNumberFormat.prettyNumberFormat", undefined, true),{formattedNumber:b,numberSuffix:f})+(h?"+":""):b+(h?"+":"")}}},366428:(e,t,n)=>{n.d(t,{F:()=>d,Z:()=>c});var i=n(667294),o=n(834911),r=n(124580),a=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:_,impressionsFramework:m,isPaused:f,loggingId:g,objectIdStr:v,slotIndex:y,trackCarousel:b,viewData:x,viewParameter:P,viewType:w}){const{logContextEvent:S}=(0,a.v)(),E=(0,s.AF)(),A=g?E[g]:{},T=A&&(0,o.Z)({carouselData:A.carousel_data,images:A.images,richMetadata:A.rich_metadata,richSummary:A.rich_summary}),I=m||r.Z,C=(0,i.useRef)(null),R=i=>{const o=l[_],r=o.idType,a={endTime:i.endTime,[r]:g,slotIndex:y,time:i.startTime,renderDuration:i.endTime-i.startTime,type:e,...p,forcedExit:"removed"===i.forcedExit?0:void 0},s={component:n,object_id_str:v,view_type:w,view_data:x||{},view_parameter:P};if(b){if(T){var h,m,f;S({event_type:7352,event_data:{pinCarouselSlotImpressions:[{...a,carouselDataId:Number(T.id),carouselSlotId:(null===(h=T.carousel_slots)||void 0===h?void 0:h[null!==(m=T.index)&&void 0!==m?m:0])&&Number(T.carousel_slots[null!==(f=T.index)&&void 0!==f?f:0].id),slotIndex:T.index}]},...s,aux_data:{...c}})}}else S({clientTrackingParams:d,event_type:o.eventType,...s,element:u,event_data:{[o.impressionType]:"Story"===_?a:[a]},aux_data:{closeup_navigation_type:t,...c}})},k=(0,i.useCallback)((()=>{try{C.current instanceof HTMLElement&&I.start(C.current).onExitViewport(R).setDebugId(g||"unknown")}catch(e){window.console.error('Can only track impressions for type "HTMLElement"')}}),[C.current]);(0,i.useEffect)((()=>(h&&!I.inExperiment&&I.setExperimentStatus(!0),f||k(),()=>{C.current instanceof HTMLElement&&I.stop(C.current)})),[k]);const O=(0,i.useRef)(f);return(0,i.useEffect)((()=>{O.current&&!f&&k(),O.current=f}),[f,k]),C}const d=({children:e,...t})=>e({impressionTrackerRef:c(t)})},12610:(e,t,n)=>{function i(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:()=>_});const o=1e6,r=window.location.search.includes("debug_impressions=1")||document.cookie&&document.cookie.indexOf("debug_impressions=1")>-1,a={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"}),[a.enter]:{background:"#A0DCC8",transform:"scale(.99)"},[a.exit]:l,[a.stopped]:l,[a.paused]:l,[a.resumed]:{background:"#0FA573",transform:"scale(.99)"}};class d{constructor(e){i(this,"setMutationObserver",(e=>(this.mutationObserver=e,this))),i(this,"startMutationObserver",(e=>{this.mutationObserver&&this.mutationObserver.observe(this.node,e)})),i(this,"stopMutationObserver",(()=>{this.mutationObserver&&this.mutationObserver.disconnect()})),i(this,"handleIntersectionChange",(e=>{const t=e.intersectionRatio>0||e.isIntersecting;if(t&&!this.inViewport){const e=Date.now();this.startTime=e,this._debug(a.enter,{startTime:e,node:this.node}),this.enterCallbacks.forEach((e=>e()))}else!t&&this.inViewport&&(this._debug(a.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,r&&Object.assign(this.node.style,c.init(e)),this}pause(){return this.inViewport&&(this._debug(a.paused,!0),this.exitCallbacks.forEach((e=>e(this.toJSON())))),this}resume(){if(this.inViewport){const e=Date.now();this._debug(a.resumed,{startTime:e}),this.startTime=e}return this}stop(e){return this.inViewport&&(this._debug(a.stopped,!0),this.exitCallbacks.forEach((t=>t(this.toJSON(e))))),this}toJSON(e=""){return{startTime:this.startTime*o,endTime:Date.now()*o,forcedExit:e}}toDebugJSON(){return{pinID:this.debugId,startTime:this.startTime,endTime:Date.now(),duration:(Date.now()-this.startTime)/1e3+" seconds"}}_debug(e,t){if(r)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 a.flushed:case a.paused:case a.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 _{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}}}},564194:(e,t,n)=>{n.d(t,{Z:()=>h});var i=n(667294),o=n(973935),r=n(834911),a=n(124580),s=n(407043),l=n(350118),c=n(785893);function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={Article:{impressionType:"articleImpressions",idType:"articleIdStr",eventType:3829},Pin:{impressionType:"pinImpressions",idType:"pinIdStr",eventType:18},Board:{impressionType:"boardImpressions",idType:"boardIdStr",eventType:3700},BoardMoreIdeasRep:{impressionType:"boardMoreIdeasImpressions",idType:"boardIdStr",eventType:10054},Interest:{impressionType:"topicImpressions",idType:"topicIdStr",eventType:3703},Search:{impressionType:"searchImpressions",idType:"term",eventType:3803},Story:{impressionType:"storyImpression",idType:"idStr",eventType:170},ActivationCard:{impressionType:"activationCardImpressions",idType:"experienceIdStr",eventType:8547},User:{impressionType:"userImpressions",idType:"userIdStr",eventType:3704},News:{impressionType:"newsHubData",idType:"newsIdStr",eventType:4110},Guide:{impressionType:"guideImpressions",idType:"term",eventType:7573},TodayArticle:{impressionType:"todayArticleImpressions",idType:"todayArticleIdStr",eventType:8569},Banner:{impressionType:"bannerImpressions",idType:"userIdStr",eventType:9061},Comment:{impressionType:"commentImpressions",idType:"commentIdStr",eventType:9127}};class p extends i.Component{constructor(e){super(e),d(this,"trackImpression",(()=>{try{this.node=(0,o.findDOMNode)(this),this.node instanceof HTMLElement&&this.impressionsFramework.start(this.node).onExitViewport(this.logImpression).setDebugId(this.props.loggingId||"unknown")}catch(e){window.console.error('Can only track impressions for type "HTMLElement"')}})),d(this,"logImpression",(e=>{const{carousel_data:t,closeupImpressionType:n,closeupNavigationType:i,componentType:o,contextLogData:r,elementType:a,impressionAuxFields:s,impressionType:l,loggingId:c,objectIdStr:d,slotIndex:p,trackCarousel:h,viewData:_,viewParameter:m,viewType:f,logContextEvent:g}=this.props,v=u[l],y=v.idType,b=e.forcedExit&&"removed"===e.forcedExit?0:void 0,x={endTime:e.endTime,[y]:c,slotIndex:p,time:e.startTime,renderDuration:e.endTime-e.startTime,type:n,...s,forcedExit:b};if(h||g({event_type:v.eventType,component:o,element:a,event_data:{[v.impressionType]:"Story"===l?x:[x]},object_id_str:d,view_type:f,view_data:_||{},view_parameter:m,aux_data:{...r,closeup_navigation_type:i}}),t&&h){const{carousel_slots:e,index:n=0,id:i}=t;g({event_type:7352,component:o,event_data:{pinCarouselSlotImpressions:[{...x,carouselDataId:Number(i),carouselSlotId:(null==e?void 0:e[n])&&Number(e[n].id),slotIndex:n}]},object_id_str:d,view_type:f,view_data:_||{},view_parameter:m,aux_data:{...r}})}})),this.impressionsFramework=e.impressionsFramework||a.Z}componentDidMount(){this.props.inImpressionExp&&!this.impressionsFramework.inExperiment&&this.impressionsFramework.setExperimentStatus(!0),this.props.isPaused||this.trackImpression()}componentDidUpdate(e){e.isPaused&&!this.props.isPaused&&this.trackImpression()}componentWillUnmount(){this.node instanceof HTMLElement&&this.impressionsFramework.stop(this.node)}render(){return i.Children.only(this.props.children)}}function h(e){const{logContextEvent:t}=(0,s.v)(),{loggingId:n}=e,i=(0,l.AF)(),o=n?i[n]:{};return(0,c.jsx)(p,{...e,logContextEvent:t,carousel_data:o&&(0,r.Z)({carouselData:o.carousel_data,images:o.images,richMetadata:o.rich_metadata,richSummary:o.rich_summary})})}},124580:(e,t,n)=>{n.d(t,{Z:()=>i});const i=new(n(12610).ZP)},954571:(e,t,n)=>{n.d(t,{Z:()=>i});function i(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 i(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:()=>a,bF:()=>l,nk:()=>r});const o=/(\{\{\s*\w+\s*\}\})/g;function r(e,t){return i(e,t,o)}function a(e,t){return i(e,t,o).join("")}const s=/(\{\s*\w+\s*\})/g;function l(e,t){return i(e,t,s)}},543972:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(667294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class r extends i.Component{constructor(...e){super(...e),o(this,"ref",(0,i.createRef)()),o(this,"observer",null),o(this,"handleVisibilityChanged",((e,t)=>{this.props.onVisibilityChange(e,t)}))}componentDidMount(){this.ref&&this.ref.current&&(this.observer=new window.IntersectionObserver(this.handleVisibilityChanged,this.props.options),this.observer.observe(this.ref.current))}componentWillUnmount(){null!==this.observer&&(this.observer.unobserve(this.ref.current),delete this.observer)}render(){return this.props.children(this.ref)}}const a=r},329734:(e,t,n)=>{n.d(t,{P:()=>r,Z:()=>o});var i=n(702664);function o(e){return e&&e[1000069]&&500417===e[1000069].experience_id&&e[1000069].display_data.hide_footer}function r(){const e=(0,i.useSelector)((({experiences:e})=>e));return!!e&&o(e)}},411938:(e,t,n)=>{n.d(t,{Z:()=>i});function i(e,t,n=28){if(!(e||{}).resurrection_info&&!(t||{}).resurrectionInfo)return!1;let i;i=t?((t||{}).resurrectionInfo||{}).resurrectionDate:((e||{}).resurrection_info||{}).resurrection_dt;const o=new Date,r=i?new Date(i):o;return r.setDate(r.getDate()+n),(new Date).getTime()<r.getTime()}},755742:(e,t,n)=>{n.d(t,{Z:()=>i});const i={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,F5:116,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}},48714:(e,t,n)=>{n.d(t,{nS:()=>x,iw:()=>w,gV:()=>y,G3:()=>S,lI:()=>E,Gj:()=>P,Jd:()=>v,$3:()=>b});var i=n(231486),o=n(56641),r=n(768559),a=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),_=n(333155),m=n(397066),f=n(623568),g=n(226198);const v=()=>{window&&window.focus(),document.activeElement&&document.activeElement.blur()},y=({isOffsiteUrl:e,event:t})=>!e&&(t.metaKey||t.ctrlKey),b=({location:e,pin:t,surface:n})=>!(0,f.jL)(t)&&(({location:e,pinId:t,surface:n})=>{const i=Boolean(n),o=_.ZF.includes(n),r=e.pathname.includes(t);return i&&!o||r})({location:e,pinId:t.id,surface:n}),x=e=>{const t=Math.round(1e3*Math.random())+"",n=Math.round(1e3*Math.random())+"";i.t8((0,g.GS)(t),n);const o=`${t}-${n}`,{queryParams:r,url:a}=e;let s={token:o,url:a};if(!r){const{pinId:t,csrId:n,clientTrackingParams:i,auxData:o}=e;s={...s,pin:null!=t?t:void 0,csr:n&&!t?n:void 0,client_tracking_params:i,aux_data:o?JSON.stringify(o):void 0}}r&&(s={...s,...r});return`/offsite/?${(0,l.Z)(s)}`},P=e=>{(0,o.Z)(x(e),!0)},w=async({isMounted:e,pin:t,location:n,spamCheckCallback:i,href:o})=>{var a,s;const l=await(0,u.Z)({check_only:!0,client_tracking_params:(0,r.Z)({boardUrl:null==t||null===(a=t.board)||void 0===a?void 0:a.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:o}).callGet({showError:!1});if(!l.resource_response.error&&e){const e=l.resource_response.data||{},{message:t,redirect_status:n,url:o}=e;i({blocked:["blocked","suspicious","porn"].includes(n),message:t,redirectStatus:n,sanitized_url:o})}},S=({event:e,onHistoryChange:t,href:n,history:i,target:r})=>{const l=(0,a.Z)(n),u=s(n),p=(0,c.Z)(l);p===h.Z.TRUSTED_DIFFERENT_ORIGIN||"blank"===r?(0,o.Z)(l,"blank"===r):i&&p===h.Z.SAME_ORIGIN&&(i.push((0,d.Z)({url:l}),null!=u?u:{}),t&&t({event:e}))},E=({href:e,pinId:t,pin:n,location:i,auxData:o,spamCheck:a,queryParams:s},l,c)=>{"undefined"!=typeof window&&window.Windows?(0,p.Z)({url:e,pinId:t,pin:n,location:i,auxData:o}):n?(({spamCheck:e,auxData:t,location:n,pin:i,pinId:o,href:a},s,l)=>{if(null!=e&&e.blocked)null==l||l(e);else{var c,d;if((0,m.b)({href:a,pinId:o,pin:i,location:n,auxData:t},s))return;P({url:a,pinId:o,csrId:null,clientTrackingParams:(0,r.Z)({boardUrl:null===(c=i.board)||void 0===c?void 0:c.url,callToCreateSourcePinId:i.call_to_create_source_pin_id,location:n,pinId:i.id,pinnerUserName:null===(d=i.pinner)||void 0===d?void 0:d.username,storyPinDataId:i.story_pin_data_id,trackingParams:i.tracking_params,trackingParamsMap:i.tracking_params_map}),auxData:t})}})({spamCheck:a,auxData:o,location:i,pin:n,pinId:t,href:e},l,c):P({url:e,pinId:t,queryParams:s})}},102500:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(6637);function o(e){return i.Z.create("ApiResource",{url:"/v3/offsite/",data:e})}},287072:(e,t,n)=>{n.d(t,{Z:()=>d,p:()=>u});var i=n(667294),o=n(250059),r=n(149230),a=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,a.v)(),[_,m]=(0,i.useState)(null),[f,g]=(0,i.useState)(!1),v=(0,c.useHistory)(),y=(0,c.useLocation)(),b=(0,r.Z)({url:(0,o.Z)(d)}),{showWarning:x}=null!==(t=(0,s.s)())&&void 0!==t?t:{};return(0,i.useEffect)((()=>(g(!0),()=>{g(!1)})),[]),(0,i.useEffect)((()=>{b&&null!=n&&n.pin&&null===_&&f&&(0,l.$3)({location:y,pin:n.pin,surface:n.surface})&&(0,l.iw)({isMounted:f,pin:n.pin,location:y,spamCheckCallback:e=>m(e),href:(0,o.Z)(d)})}),[null==n?void 0:n.pin,null==n?void 0:n.surface,d,b,f,y,_]),({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,o.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:y,spamCheck:_},h,x):(0,l.G3)({event:e,href:d,history:v,onHistoryChange:u,target:"blank"===p?"blank":null})))}}const u=({children:e,...t})=>e({handleClick:d(t)})},713930:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(172071);function o(e,t){return new Promise(((n,o)=>{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,i.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,i.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",o),document.getElementsByTagName("head")[0].appendChild(t)}}))}},53987:(e,t,n)=>{n.d(t,{wy:()=>k,Fw:()=>X,ey:()=>q,dt:()=>v,bo:()=>U,oF:()=>te,bW:()=>g,AX:()=>p,Fy:()=>u,XE:()=>d,am:()=>a,pD:()=>h,OJ:()=>l,LO:()=>de,Gl:()=>ie,PY:()=>b,Ni:()=>y,pV:()=>O,L6:()=>R,bb:()=>he,b0:()=>f,jC:()=>H,O7:()=>oe,LM:()=>G,OK:()=>I,mP:()=>x,C$:()=>P,dr:()=>N,gT:()=>j,Fr:()=>K,Xn:()=>w,l4:()=>C,b_:()=>ee,J:()=>s,dZ:()=>c,FO:()=>A,re:()=>E,RU:()=>re,Ui:()=>_,KY:()=>m,fY:()=>Y,uM:()=>$,x7:()=>J,rk:()=>ue,cD:()=>V,dW:()=>pe,Pu:()=>ne,En:()=>D,ej:()=>le,f1:()=>z,E0:()=>F,gf:()=>T,mY:()=>ae,kY:()=>ce,cY:()=>Q,$Y:()=>Z,Zz:()=>S,$V:()=>B,j8:()=>W,ip:()=>L,tZ:()=>M,YW:()=>se});const i=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\-]+(?=\/|$)/),o=["/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 r=n(276775);const a=e=>i.test(e.pathname),s=(e,t)=>{const{pathname:n}=e;return a(e)&&n.match(t||"?")},l=e=>{const{pathname:t}=e;return!!(0,r.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,r.matchPath)(e.pathname,{path:"/board/:id/edit",exact:!0}),u=e=>!!(0,r.matchPath)(e.pathname,{path:"/board/:id/edit/collaborators",exact:!0}),p=e=>!!(0,r.matchPath)(e.pathname,{path:"/board/:id/edit/add_collaborators",exact:!0}),h=e=>!!(0,r.matchPath)(e.pathname,{path:"/boardsection/:id/edit",exact:!0}),_=e=>!!(0,r.matchPath)(e.pathname,{path:"/pin/:id/comments",exact:!0}),m=e=>!!(0,r.matchPath)(e.pathname,{path:"/pin/:id/edit",exact:!0}),f=e=>!!(0,r.matchPath)(e.pathname,{path:"/conversation/:id",exact:!0}),g=e=>!!(0,r.matchPath)(e.pathname,{path:"/appealed-pin/",exact:!0}),v=e=>e.pathname.startsWith("/age-appeal"),y=e=>e.pathname.startsWith("/business/"),b=e=>e.pathname.startsWith("/business/invite/"),x=e=>!!(0,r.matchPath)(e.pathname,{path:"/pin/:id/visual-search/",exact:!0}),P=e=>"/"===e.pathname,w=e=>e.pathname.startsWith("/login"),S=e=>!!(0,r.matchPath)(e.pathname,{path:"/today",exact:!0}),E=e=>e.pathname.startsWith("/password/reset")||!!(0,r.matchPath)(e.pathname,{path:"/pw/:username",exact:!0}),A=e=>e.pathname.startsWith("/secure/panic"),T=e=>e.pathname.startsWith("/signup"),I=e=>e.pathname.startsWith("/email/subscription"),C=e=>e.pathname.startsWith("/notifications/"),R=e=>!!(0,r.matchPath)(e.pathname,{path:"/pin/:id",exact:!0}),k=e=>R(e)&&void 0===e.state,O=e=>e.pathname.startsWith("/pin_redirect"),D=e=>e.pathname.startsWith("/search"),j=e=>!!(0,r.matchPath)(e.pathname,{path:"/ideas",exact:!0}),N=e=>!!(0,r.matchPath)(e.pathname,{path:"/ideas/:interest/:id",exact:!0}),L=e=>!!(0,r.matchPath)(e.pathname,{path:"/videos/:category/:id",exact:!0}),M=e=>e.pathname.startsWith("/videos"),z=e=>!!(0,r.matchPath)(e.pathname,{path:"/shopping/",exact:!0}),B=e=>e.pathname.startsWith("/topics"),Z=e=>e.pathname.startsWith("/today/article/")||e.pathname.startsWith("/today/best/")||e.pathname.startsWith("/today/trending/"),F=e=>e.pathname.startsWith("/today/shop/"),U=e=>S(e)||Z(e)||e.pathname.startsWith("/today/popular/"),G=e=>/^\/discover\/article\/\S+\/?/i.test(e.pathname),H=e=>e.pathname.startsWith("/pin/create/"),V=e=>!!(0,r.matchPath)(e.pathname,{path:"/:username/",exact:!0})&&!o.includes(e.pathname.replace(/\/$/,"")),W=e=>e.pathname.startsWith("/unauth-profile"),$=e=>e.pathname.startsWith("/pin/"),K=e=>"#imgViewer"===e.hash,q=e=>new RegExp("invite_code").test(e.search),Y=e=>!!(0,r.matchPath)(e.pathname,{path:"/pin/:id",exact:!1})&&(e.pathname.includes("/sent/")||e.pathname.includes("/feedback/")),X=e=>q(e)&&((Y(e)?"pin":a(e)&&"board")||V(e)&&"profile")||null,J=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/"),ie=e=>e.pathname.startsWith("/business/convert"),oe=e=>e.pathname.startsWith("/pin-editor"),re=e=>e.pathname.startsWith("/pin-builder"),ae=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/")},249647:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(968630),o=n.n(i);function r(e,t=!1){return n=>{if(!o()(n))return t&&Array.isArray(n)?n.map(r(e,t)):n;const i={};return Object.keys(n).forEach((a=>{const s=e(n[a],a);o()(n[a])||t&&Array.isArray(n[a])?i[s]=r(e,t)(n[a]):i[s]=n[a]})),i}}function a(e,t=!1){const n=(t,n)=>e(n);return e=>r(n,t)(e)}},914671:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(594881);const o={windowIsInFocus:!0,initFocus(){const e=function(){this.windowIsInFocus=!1},t=function(){this.windowIsInFocus=!0,(0,i.Z)()};"undefined"!=typeof window&&(window.addEventListener("focus",t),window.addEventListener("blur",e))}}},567450:(e,t,n)=>{function i(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:()=>a});const o=new class{constructor(){i(this,"onResumeListeners",[]),i(this,"onPauseListeners",[]),i(this,"inExp",!1),i(this,"windowInFocus",!0),i(this,"isAppStateEnabled",!1)}setExperiment(e=!1){this.inExp=e}onSessionResume(e){return this.onResumeListeners.push(e),this}onSessionPause(e){return this.onPauseListeners.push(e),this}removeResumeListener(e){this.onResumeListeners.filter((t=>t!==e))}removePauseListener(e){this.onPauseListeners=this.onPauseListeners.filter((t=>t!==e))}getAppState(){return this.isAppStateEnabled&&this.windowInFocus?0:void 0}setIsAppStateEnabled(e){this.isAppStateEnabled=e}},r=e=>{if(e.isHidden){const{reason:t}=e;o.windowInFocus=!1,o.onPauseListeners.forEach((e=>e(t)))}else o.windowInFocus=!0,o.onResumeListeners.forEach((e=>e()))};setTimeout((()=>{window.addEventListener("beforeunload",(()=>r({isHidden:!0,reason:"beforeunload"}))),window.addEventListener("focus",(()=>r({isHidden:!1}))),window.addEventListener("blur",(()=>r({isHidden:!0,reason:"blur"}))),window.addEventListener("pageshow",(()=>r({isHidden:!1}))),window.addEventListener("pagehide",(()=>r({isHidden:!0,reason:"pagehide"}))),void 0!==document.hidden?document.addEventListener("visibilitychange",(()=>r(document.hidden?{isHidden:!0,reason:"visibilitychange"}:{isHidden:!1})),!1):void 0!==document.webkitHidden&&document.addEventListener("webkitvisibilitychange",(()=>r(document.webkitHidden?{isHidden:!0,reason:"visibilitychange"}:{isHidden:!1})),!1)}),0);const a=o},64446:(e,t,n)=>{n.d(t,{Z:()=>p});var i=n(605028);var o=n(341732),r=n(81226),a=n(898781),s=n(883119),l=n(785893);const c={borderRadius:"18px",fontSize:"10px",fontWeight:"600",height:"24px",lineHeight:"24px",padding:"0 6px"},d={borderRadius:"18px",fontSize:"10px",fontWeight:"600",lineHeight:"24px",padding:"4px 8px"};function u({backgroundColor:e,identifier:t,size:n="sm"}){const i="pine"===e?"#0FA573":"#fff",o="sm"===n?c:d;return(0,l.jsx)(s.xu,{display:"inlineBlock",dangerouslySetInlineStyle:{__style:{...o,backgroundColor:e?i:"rgba(255, 255, 255, 0.8)",color:"pine"===e?"#fff":"#111"}},"data-test-id":"PinTypeIdentifier",children:t})}function p({pin:e,size:t="sm",allowProductCarousel:n,allowShoppingPriceIndicator:c,shoppingLabelColor:d}){const p=(0,a.ZP)(),h=(0,i.Z)(e);if(h.isGif)return u({identifier:"GIF",size:t});if(h.isStoryPin){const{page_count:n=0,total_video_duration:i=0}=e.story_pin_data||{};let o=n.toString();if(i>0)return o=(0,r.Z)(i),u({identifier:o,size:t});return u({identifier:(0,l.jsxs)(s.kC,{alignItems:"center",justifyContent:"between",children:[(0,l.jsx)(s.xu,{marginEnd:1,display:"flex",alignItems:"center",children:(0,l.jsx)(s.JO,{accessibilityLabel:p.bt("Idea Pin", "Idea Pin", "pin.pinTypeIdentifier.ideaPinIconAccessibilityLabel", undefined, true),inline:!0,icon:"idea-pin",color:"default",size:"sm"===t?12:16})}),(0,l.jsx)(s.xv,{inline:!0,size:"100",weight:"bold",children:o})]}),size:t})}if(h.isVideo){const n=e.videos,{duration:i=0}=n&&n.video_list&&n.video_list[Object.keys(n.video_list)[0]]||{};return u({identifier:(0,r.Z)(i),size:t})}if(h.isProduct){const n=e.rich_summary&&e.rich_summary.products&&e.rich_summary.products[0]&&e.rich_summary.products[0].offer_summary;if(c){const e=n&&(n.price||n.max_price);return e?u({identifier:e,size:t}):null}if(d){const n=function(e){var t;return((((null===(t=e.rich_summary)||void 0===t?void 0:t.products)||[])[0]||{}).label_info||{}).labels||[]}(e)[0];return n?u({identifier:n,backgroundColor:d,size:t}):null}return null}if(n){const n=e.product_pin_data&&e.product_pin_data.items&&e.product_pin_data.items[0],i=n&&(0,o.Z)(e.images,n.additional_images,e.carousel_data&&e.carousel_data.index)||{},{carousel_slots:r=[],index:a=0}=i;return u({identifier:`${a+1}/${r.length}`,size:t})}if(h.isCarousel){const n=e.carousel_data||{},{carousel_slots:i=[],index:o=0}=n;return u({identifier:`${o+1}/${i.length}`,size:t})}return null}},55275:(e,t,n)=>{n.d(t,{P:()=>a,t:()=>s});var i=n(6637);const o=()=>{};const r={complaint:function(e,t){i.Z.create("PinFeedbackResource",e).callUpdate().then((()=>t()))},followBoard:function(e,t){i.Z.create("BoardFollowResource",e).callCreate().then((()=>t()))},followPinner:function(e,t){i.Z.create("UserFollowResource",e).callCreate().then((()=>t()))},followTopic:function(e,t){i.Z.create("InterestFollowResource",e).callCreate().then((()=>t()))},newsHubPinHide:function(e,t){i.Z.create("NewsHubPinFeedbackResource",e).callUpdate().then((()=>t()))},promotedComplaint:function(e,t){i.Z.create("PinFeedbackResource",e).callUpdate().then((()=>t()))},relatedPinHide:function(e,t){i.Z.create("RelatedPinFeedbackResource",e).callUpdate().then((()=>t()))},reportPin:function(e,t){t()},showAdReasons:function(e,t){t()},unfollowBoard:function(e,t){i.Z.create("BoardFollowResource",e).callDelete().then((()=>t()))},unfollowPinner:function(e,t){i.Z.create("UserFollowResource",e).callDelete().then((()=>t()))},unfollowTopic:function(e,t){i.Z.create("InterestFollowResource",e).callDelete().then((()=>t()))},unrelatedSearchPin:function(e,t){i.Z.create("SearchPinFeedbackResource",e).callUpdate().then((()=>t()))}},a=["complaint","relatedPinHide","unrelatedSearchPin","promotedComplaint","newsHubPinHide","unfollowBoard","unfollowPinner","unfollowTopic"];function s(e,t,n=o){const i=e?r[e]:null;return i?i(t,n):n()}},680046:(e,t,n)=>{n.d(t,{EF:()=>u,XZ:()=>c,ZP:()=>s,nb:()=>d,yl:()=>l});var i=n(55275),o=n(966113),r=n(760372);const a=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 o.m7}},getRecommendationDescription:({ad_match_reason:n,board:i,feedbackType:o,makeNavigateLink:r,pinner:s,promoter:l,recommendationReason:c,sourceInterest:d})=>{switch(o){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:o,url:u}=c.board,p=r("navigation",u,o);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:_}=d,m=r("topicUrl",`/topics/${_}`,h);return t(e.bt("This Pin was inspired by {{ formattedTopic }}", "This Pin was inspired by {{ formattedTopic }}", "Pin feedback", undefined, true),{formattedTopic:m});case"followed":const f=`/${s.username}`,g=r("boardUrl",i.url,a(i.name)),v=r("pinnerUrl",f,a(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:v}):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:i}=l,o=r("promotedLink",i?"/"+i+"/":"/",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:o})}default:return null}},getFeedbackType({board:e,feedback:t,viewParameter:n,pin:{promoter:i,is_downstream_promotion:o,recommendation_reason:r},pinner:a}){const s=t&&t.type;return i&&!o?"promoted":s||((e=>!!e&&"FOLLOWED_INTEREST"!==e.reason&&"FOLLOWING_FEED"!==e.reason&&"RECENT_FOLLOWED_BOARD"!==e.reason&&!0)(r)?r.board?"pfyBoard":"pfy":r&&"FOLLOWED_INTEREST"===r.reason?"topic":e&&e.followed_by_me||a&&a.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:i,pinFeedbackType:o,complaintReason:r,throughId:a,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:r||0,pin_id:n,...i?{recommendation_reason_id:i}:{},feedback_type:o||1,promoted:c,...a?{through_id:a}:{},...s?{through_properties:s}:{},...l?{client_tracking_params:l}:{}}}return{action:d,actionOptions:u}},getUnfollowAction:({board:n,feedbackType:i,makeNavigateLink:o,pinner:a,sourceInterest:s})=>{if("topic"===i){if(s){const{id:n,name:i,url_name:a}=s,l=o("topicUrl",`/topics/${a}`,i,!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:r.X},title:"",subTitle:c}}}else if("followed"===i&&n&&a){const{id:i,name:r,url:s}=n||{},{explicitly_followed_by_me:l,full_name:c,username:d}=a,u=`/${d}`,p=o("boardUrl",s,r,!0),h=o("pinnerUrl",u,c,!0);let _=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 _=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:i},title:"",subTitle:_}}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,o,r,a,s){return()=>{const l={...e,undo:!0};let c=t;"unfollowPinner"===t?c="followPinner":"unfollowBoard"===t?c="followBoard":"unfollowTopic"===t&&(c="followTopic"),(0,i.t)(c,l),a(n),s({event_type:101,component:0,element:11181,view_type:o,view_parameter:r})}}},205202:(e,t,n)=>{function i(e,t){return e&&e[t]&&e[t].url}n.d(t,{Z:()=>i})},752802:(e,t,n)=>{n.d(t,{Z:()=>o});const i=["564x","736x","orig","474x","236x"],o=({images:e={},resolutionPreferences:t=i})=>{for(const n of t)if(e[n]&&e[n].url)return e[n];return null}},248975:(e,t,n)=>{function i({embedSrc:e,embedType:t,images:n,preferredResolution:i}){if(!e&&!t&&!n)return"";if("gif"===t)return e||"";const o=n;if(!o)return"";if(i){const e="474x"===i&&o["474x"]||"236x"===i&&o["236x"]||o["736x"];if(e&&e.url)return e.url}const r=Object.keys(o).map((e=>{try{const t=e.split("x")[0];return Number.isNaN(Number(t))?(o[t]=o[e],t):e}catch(t){return""}}));r.sort();const a=r.pop();return o[a]&&o[a].url||""}n.d(t,{Z:()=>i})},605028:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(687551),o=n(623568);function r(e){const{access:t,attribution:n,embed:r,is_eligible_for_web_closeup:a,rich_summary:s,sponsorship:l,story_pin_data_id:c,videos:d}=e,u={isLeadPin:!1,isCarousel:!1,isGif:!1,isOneTap:!1,isOwnPin:!1,isProduct:!1,isPromoted:!1,isRecipe:!1,isSponsored:!1,isStoryPin:!1,isVideo:!1};(0,o._Q)(e)&&(u.isLeadPin=!0),(0,i.Z)(e)&&(u.isCarousel=!0),a&&(u.isOneTap=!0),(0,o.iR)(d)&&(u.isVideo=!0);const p=r||n&&n.embed||null;return p&&"gif"===p.type&&(u.isGif=!0),s&&"product"===s.type_name&&(u.isProduct=!0),s&&"recipe"===s.type_name&&(u.isRecipe=!0),e.promoter&&!e.is_downstream_promotion&&(u.isPromoted=!0),(t||[]).includes("write")&&(u.isOwnPin=!0),c&&(u.isStoryPin=!0),l&&(u.isSponsored=!0),u}},307061:(e,t,n)=>{n.d(t,{Z:()=>i});const i=function(e){return function(t){return null!=t?e(t):null}}},674915:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(307061),o=n(736688);const r=(0,i.Z)((e=>{const{videos:t}=e.pin,{id:n,video_list:i={}}=t||{},{V_720P:r,V_HLSV4:a,V_HLSV3_MOBILE:s}=i,l=(0,o.V3)(a),c=(0,o.V3)(s),d=(0,o.V3)(r),u=d||l||c;return n&&u?{...e,video:{id:n,hasVideo:u,mp4:d||void 0,hls:l||void 0,hlsv3:c||void 0}}:null}))},976071:(e,t,n)=>{function i(e){return Boolean(e.promoted_is_removable)}n.d(t,{Z:()=>i})},623568:(e,t,n)=>{n.d(t,{Js:()=>s,NK:()=>v,Nc:()=>y,VX:()=>l,Zt:()=>f,_J:()=>u,_Q:()=>a,_S:()=>b,cL:()=>_,dZ:()=>w,hb:()=>g,hy:()=>d,iR:()=>r,jL:()=>c,o:()=>x,oN:()=>i,pU:()=>P,rM:()=>m,sV:()=>p,sY:()=>h});const i=5e3,o=["Uploaded by user"],r=e=>!!e&&!!e.video_list,a=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,_=({embedSrc:e,embedSubtype:t,embedType:n})=>!!e&&!h(n)&&!(e=>"pinstory"===e)(t),m=({link:e,mobileLink:t,trackedLink:n})=>!t&&!n&&!e,f=({link:e,mobileLink:t,origImageUrl:n,trackedLink:i})=>t||i||e||n||"",g=({isStoryPin:e,isVideoPin:t})=>e?"storyPin":t?"video":"image",v=(e,t)=>({deeplinkUri:{android:`pin/${e}/repin`,iOS:`repin/${e}`},mwebUri:{pathname:`/pin/${e}/repin/`,state:{trackingParams:t.state?t.state.trackingParams:""}}});function y(e){var t,n;return!r(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 o)if(e===t)return!1;return!0}function x(e){var t;return 0!==Object.keys((null===(t=e.creator_analytics)||void 0===t?void 0:t["30d_realtime"])||{}).length}function P(e){var t;return 0!==Object.keys((null===(t=e.public_creator_analytics)||void 0===t?void 0:t.all_time_realtime)||{}).length}function w(e){var t,n;return!(null===(t=e.creator_analytics)||void 0===t||null===(n=t["30d_realtime"])||void 0===n||!n.is_realtime)}},18857:(e,t,n)=>{n.d(t,{G7:()=>c,WE:()=>l,l6:()=>d,rh:()=>s});var i=n(27255),o=n(605028),r=n(66699),a=n(623568);function s(e,t,n,r){var s,l,c;if(!t.isAuth)return!1;const d=(0,a.Nc)(e)||(0,a.o)(e),u=(null===(s=e.board)||void 0===s?void 0:s.privacy)===i.Z.BoardPrivacy.PUBLIC,p=((null===(l=e.board)||void 0===l?void 0:l.privacy)===i.Z.BoardPrivacy.PROTECTED||u)&&!e.is_repin&&[t.id,r].includes(null===(c=e.pinner)||void 0===c?void 0:c.id),{isStoryPin:h}=(0,o.Z)(e);return d||t.isPartner&&p||(e=>e.checkExperiment("web_ps4p").anyEnabled)(n)&&h&&p||(0,a.pU)(e)}function l(e,t,n,i,o,r){return e.isAuth&&t&&(n||i)&&!(null==o||!o.isLoaded)&&!r}function c(e,t){return(0,r.Z)(t.nbt(["The last day", "Last {{ count }} days"], e, "Previous {{ count }} days from current date", true),{count:e})}function d(e,t){return(0,r.Z)(t.nbt(["Last {{ count }} hour", "Last {{ count }} hours"], e, "analytics.utils", true),{count:e})}},802933:(e,t,n)=>{n.d(t,{Z:()=>i});const i=(0,n(307061).Z)((e=>e.pin&&e.pin.id?{...e,id:e.id,aggregatedPinData:e.pin.aggregated_pin_data}:null))},692627:(e,t,n)=>{function i({hasPin:e,hasPinRichMetadata:t,hasPinRichMetadataProducts:n,hasPinRichMetadataArticle:i,hasPinRichMetadataRecipe:o,hasPinStoryPinData:r}){if(e){if(t)return n?144:i?141:o?145:139;if(r)return 157}return 140}n.d(t,{Z:()=>i})},336882:(e,t,n)=>{n.d(t,{Z:()=>i});const i={STARTED:1,FINISHED:2}},432300:(e,t,n)=>{n.d(t,{Z:()=>i});const i={DEFAULT:1,LIMITED:2}},177471:(e,t,n)=>{n.d(t,{k:()=>P});var i=n(667294),o=n(702664),r=n(6637),a=n(19121),s=n(414327),l=n(780280);const c=["etsy","microsoft","twitter","google","instagram","youtube","dropbox"];function d({network:e,data:t,requestContext:n}){if(c.includes(e))return r.Z.create("UserSocialNetworkResource",{network:e,data:t}).callCreate();const i=`/v3/connect/${e}/`,o=((e,t,n)=>{let i;switch(e){case"facebook":const{facebookToken:e}=n;i=t?{facebook_id:t.id,facebook_token:e}:Object.freeze({});break;case"gplus":i=t?{one_time_code:t.one_time_code,redirect_uri:t.redirect_uri||void 0}:Object.freeze({});break;case"line":i=t?{line_id_token:t.line_id_token,line_access_token:t.line_access_token}:Object.freeze({});break;default:i=Object.freeze({})}return i})(e,t,n);return r.Z.create("ApiResource",{url:i,data:o}).callUpdate()}var u=n(553171),p=n(124237),h=n(402201),_=n(572752),m=n(966113),f=n(83969),g=n(867820);let v=Object.freeze({});const y=e=>{const{network:t}=e;if(!v[t])return;const{[t]:{error:n,success:i,complete:o},...r}=v;v={...r},"error"===e.type?null==n||n(Object.freeze({})):i("facebook"===e.network?{id:e.profile.id}:{one_time_code:e.one_time_code,redirect_uri:e.redirect_uri}),null==o||o()},b=({i18n:e,network:t,callbacks:n,requestContext:i})=>{if(n={error:()=>{},complete:()=>{},...n},(0,g.My)(`auth_web.social_connect.${t}.${(0,_.Z)(i)}`),"gplus"===t||"google"===t)(0,g.My)("auth_web.social_connect.google.migration"),async function(e){var t,n;await(0,f.Px)();const i=null===(t=window.google)||void 0===t||null===(n=t.accounts)||void 0===n?void 0:n.oauth2;i&&i.initCodeClient({client_id:m.v3,scope:"https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile",ux_mode:"popup",callback:e}).requestCode()}((e=>{n.success({one_time_code:e.code,redirect_uri:"postmessage"})}));else if("line"===t){const{locale:e}=i;(0,u.Z)(e,n)}else{const i=window.open("/connect/"+t+"/","",(e=>{switch(e){case"dropbox":return"width=600,height=800";case"instagram":return(0,h.Z)({width:580,height:580});case"etsy":return(0,h.Z)({width:580,height:775});case"youtube":return(0,h.Z)({width:605,height:640});default:return(0,h.Z)()}})(t));if(!i)return p.Z.showError(e.bt("You must enable pop-ups.", "You must enable popups!", " - ", undefined, true)),void(n.error&&n.error(Object.freeze({})));const o=setInterval((()=>{i.closed&&(clearInterval(o),y({network:t,type:"error"}))}),1e3);v={...v,[t]:n}}};window.addEventListener("message",(e=>{const t=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"");if(e.origin!==t)return;const n=e.data;if(n&&"social-connect-complete"===n.type){const t=e.data;t.network&&y(t)}}));class x{constructor({invalidateResource:e,requestContext:t,viewer:n}){this.getUserId=()=>n.isAuth?n.id:"",this.getUsername=()=>n.isAuth?n.username:"",this.isLimitedLogin=()=>n.isLimitedLogin,this.invalidateResource=e,this.requestContext=t}handleConnect(e,t,n,i){const o=t=>{("connect"===t.type?d({network:e,data:t.data,requestContext:this.requestContext}):r.Z.create("ApiResource",{url:`/v3/connect/${e}/`}).callDelete()).then((e=>{var t;const i={user_id:this.getUserId(),username:this.getUsername(),field_set_key:"social_connect"};this.invalidateResource("UserResource",i),r.Z.create("UserResource",i).callGet(),null===(t=n.success)||void 0===t||t.call(n,e)}),(e=>{var t;e&&"object"==typeof e&&(null===(t=n.error)||void 0===t||t.call(n,{api_error_code:e.api_error_code,code:e.code,message:e.message}))})).finally((()=>{var e;null===(e=n.complete)||void 0===e||e.call(n)}))};t?this.isLimitedLogin()?o({type:"connect"}):b({network:e,callbacks:{success:e=>o({type:"connect",data:e}),error:n.error,complete:n.complete},i18n:i,requestContext:this.requestContext}):o({type:"disconnect"})}}function P(){const e=(0,o.useDispatch)(),t=(0,l.B)(),n=(0,a.Z)();return(0,i.useMemo)((()=>new x({invalidateResource:(t,n)=>e((0,s.jB)(t,n)),requestContext:t,viewer:n})),[e,t,n])}},584595:(e,t,n)=>{n.d(t,{$j:()=>O,Cx:()=>Z,D4:()=>C,E:()=>c,E6:()=>A,H9:()=>z,Jt:()=>N,Jw:()=>a,LJ:()=>M,NF:()=>l,OW:()=>u,Pv:()=>D,RL:()=>P,ZP:()=>G,Zn:()=>S,_K:()=>m,aG:()=>_,an:()=>T,at:()=>j,bd:()=>d,cZ:()=>p,dO:()=>h,hE:()=>B,hU:()=>g,iK:()=>b,iZ:()=>k,ik:()=>F,ky:()=>L,lg:()=>f,nY:()=>y,nf:()=>x,oP:()=>v,pH:()=>o,qF:()=>U,rM:()=>R,rm:()=>I,tL:()=>s,tz:()=>r,xN:()=>E,yV:()=>w});var i=n(817656);const o=101,r=93,a=117,s=116,l=111,c=118,d=9,u=8,p=16,h=12,_=3,m=18,f=105,g=79,v=78,y=77,b=76,x=1402,P=85,w=88,S=1201,E=30,A=84,T=83,I=2901,C=2904,R=2905,k=95,O=19,D=113,j=91,N=2501,L=2915,M=2986,z=3050,B=2,Z=[u,d],F=[u,d,i.Ej],U=new Map([[1,"INVALID_PARAMETERS"],[100,"INVALID_NETWORK_ACCESS_TOKEN"],[f,"FACEBOOK_ACCOUNT_NOT_LINKED"],[h,"API_SERVER_ERROR"],[1202,"LOGIN_MFA_TOKEN_INVALID"],[1203,"MFA_CONNECTION_ERROR"],[13,"API_DOWN"],[181,"GPLUS_CONNECTION_ERROR"],[14,"API_SERVER_SPAM_CONTENT"],[p,"API_REQUEST_TIMEOUT"],[50,"API_ERROR_PIN_NOT_FOUND"],[y,"INVALID_PASSWORD_FB_USER"],[v,"INVALID_PASSWORD_ERROR_CODE"],[g,"INVALID_EMAIL_ERROR_CODE"],[80,"INVALID_EMAIL_OR_PASSWORD"],[82,"LOGIN_DEACTIVATED_USER"],[T,"LOGIN_POLICY_VIOLATION_USER"],[P,"AUTO_PASSWORD_RESET_ERROR_CODE"],[86,"LOGIN_PANICKED_USER"],[87,"LOGIN_SOFT_BANNED_USER"],[r,"API_ERROR_UNDERAGE_REGISTER_ATTEMPT"],[s,"API_ERROR_OVERAGE_REGISTER_ATTEMPT"],[99,"LOGIN_PASSWORD_NOT_CREATED"],[u,"API_LIMIT_EXCEEDED_ERROR"],[d,"API_EVENT_BLOCKED_ERROR"],[O,"USER_IN_SAFE_MODE"],[A,"LOGIN_VOLUNTARILY_DEACTIVATED_USER"],[P,"LOGIN_BAD_PASSWORD_ASK_RESET"],[S,"LOGIN_MFA_REQUIRED"],[E,"LOGIN_USER_NOT_FOUND"],[w,"LOGIN_HARD_BANNED_USER"],[429,"RESPONSE_CODE_TOO_MANY_REQUESTS"],[I,"SAR_DOWNLOAD_LIMIT"],[C,"SAR_EMAIL_UNVERIFIED"],[R,"SAR_EMAIL_MISSING"]]),G=[u,d,O,T,P,w]},553171:(e,t,n)=>{n.d(t,{Z:()=>p});var i=n(231486);var o=n(643913),r=n(226198),a=n(966113),s=n(696157),l=n(826067),c=n(957161);const d="undefined"!=typeof window,u=d?`${window.location.origin}/oauth/line/redirect`:"";function p(e,t){var n;if(!d)return void(null===(n=t.error)||void 0===n||n.call(t,{message:"Window is undefined"}));let p;const h=function(e=5){const t="abcdefghijklmnopqrstuvwxyz1234567890";return new Array(e).fill("").map((()=>t[Math.floor(Math.random()*t.length)])).join("")}(10),_=async e=>{if(!e.isTrusted)return;const n=e instanceof MessageEvent?(({origin:e,data:t})=>t&&e===window.location.origin?String(t):null)(e):(({url:e,key:t})=>{if(!e.startsWith(window.location.origin)||t!==s.MM)return null;const n=(0,c.qn)(s.MM);return(0,c.L_)(s.MM),n})(e),a=(0,l.mB)(n);if(a.state&&a.code&&a.state===h){p&&!p.closed&&p.close();try{const e=await fetch("/oauth/line/verify",{headers:{"Content-type":"application/x-www-form-urlencoded; charset=UTF-8","x-csrftoken":`${String(i.U2(r.fS))}`},method:"POST",body:(0,o.Z)({code:a.code,redirect_uri:u})}),n=await e.json(),{id_token:s,access_token:l}=n;var d;if(s&&l)t.success({line_id_token:s,line_access_token:l});else null===(d=t.error)||void 0===d||d.call(t,{message:"No tokens returned"})}catch(g){var m;null===(m=t.error)||void 0===m||m.call(t,g)}finally{var f;p&&!p.closed&&p.close(),window.removeEventListener("message",_),window.removeEventListener("storage",_),null===(f=t.complete)||void 0===f||f.call(t)}}};window.addEventListener("message",_),window.addEventListener("storage",_),p=window.open(`https://access.line.me/oauth2/v2.1/authorize?response_type=code&client_id=${a.z}&redirect_uri=${encodeURIComponent(u)}&state=${h}&ui_locales=${e}&scope=profile%20openid%20email`,"_blank")}},107193:(e,t,n)=>{n.r(t),n.d(t,{default:()=>u});var i=n(336882),o=n(935879),r=n(713930),a=n(6637),s=n(966113),l=n(867820);let c=!1;const d=(e,t,n="en-US",u)=>{u&&(0,l.dy)({event:"load_script_start",provider:"facebook"}),(0,r.Z)((0,o.Z)(n),"FACEBOOK").then((()=>{u&&(0,l.dy)({event:"load_script_success",provider:"facebook"});const n=window.FB;n?(c||(u&&(0,l.dy)({event:"initialize_library",provider:"facebook"}),n.init({appId:s.GH,status:!0,version:"v2.2"}),FB.Event.subscribe("auth.statusChange",(()=>{(e=>e.isAuth&&!!e.facebookId&&!e.isLimitedLogin)(t)&&d((e=>{if(!e.getUserID())return;const t=e.getAccessToken();t&&a.Z.create("ApiResource",{url:"/v3/connect/facebook/",data:{facebook_token:t}}).callCreate({showError:!1})}),t)})),c=!0,window.fb_init=i.Z.FINISHED),e(n)):u&&(0,l.dy)({event:"global_object_not_found",provider:"facebook"})})),window.fb_init=i.Z.STARTED},u=d},935879:(e,t,n)=>{n.d(t,{Z:()=>i});const i=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:()=>a,OY:()=>l,PL:()=>d,Px:()=>s,mK:()=>u,ru:()=>c});var i=n(713930),o=n(966113),r=n(867820);const a=()=>{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,i.Z)("https://accounts.google.com/gsi/client",null!=e&&e.unsafe?null:"GSI"),l=({autoSelect:e,itpSupport:t},n)=>{var i;null===(i=a())||void 0===i||i.initialize({auto_select:null!=e&&e,client_id:o.v3,callback:n,cancel_on_tap_outside:!1,context:"use",itp_support:t})},c=({buttonRef:e,isDesktop:t})=>{const n=a();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,r.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:()=>i});const i="favorited"},773285:(e,t,n)=>{n.d(t,{F:()=>r,a:()=>o});var i=n(425288);const{Provider:o,useHook:r}=(0,i.Z)("ExperimentContext")},869503:(e,t,n)=>{n.d(t,{Z:()=>d});var i=n(939106),o=n(898781),r=n(349700),a=n(883119),s=n(785893);function l(){const e=(0,o.ZP)();return e.bt("Free delivery", "Free shipping", "closeup.product.shipping", undefined, true)}function c({freeShippingPrice:e}){const t=(0,o.ZP)();return(0,r.nk)(t.bt("Free delivery with {{ shippingPrice }}+", "Free shipping with {{ shippingPrice }}+", "closeup.product.shipping", undefined, true),{shippingPrice:e}).join("")}function d({customStyles:e,showPrevDot:t,freeShippingPrice:n,freeShippingValue:o}){const r=t?[""]:[],{color:d="subtle",size:u="200"}=e||{};return Number.isFinite(o)?(0===o?r.push((0,s.jsx)(l,{})):n&&r.push((0,s.jsx)(c,{freeShippingPrice:n})),0===r.length?null:(0,s.jsx)(a.xv,{color:d,size:u,children:(0,s.jsx)(i.Z,{color:d,items:r})})):null}},30287:(e,t,n)=>{n.d(t,{AJ:()=>b,FB:()=>m,FP:()=>_,Kj:()=>g,Rx:()=>h,So:()=>f,kM:()=>v});var i=n(231486),o=n(567831),r=n(794230),a=n(704177),s=n(826067),l=n(226198);const c="android-app://com.pinterest.twa",d="pwa_hostname",u="pwa_redirected",p="homescreen_icon",h=e=>["twa","cct","browser","webview"].includes(e),_=e=>{var t,n;return!!e&&((i.U2(l.tg)||"").startsWith(c)||(e.document&&e.document.referrer||"").startsWith(c)||!(!(n=null===(t=e.location)||void 0===t?void 0:t.search)||!h((0,s.mB)(n).twa_type)))},m=e=>{var t,n;if(!e)return null;if(e.Windows)return"windows";if((e=>!!e&&(e.document&&e.document.referrer||"").startsWith("app-info://platform/microsoft-store"))(e))return"msft-store";if(_(e))return"android-twa";if(e.matchMedia&&(null!==(t=e.matchMedia("(display-mode: standalone)"))&&void 0!==t&&t.matches||null!==(n=e.matchMedia("(display-mode: minimal-ui)"))&&void 0!==n&&n.matches)&&e.navigator&&e.navigator.userAgent){const t=e.navigator.userAgent;if(t.includes("Chrome"))return"chrome";if(t.includes("Safari"))return"safari"}return"unknown"},f=e=>{const t=m(e);return!(!t||"unknown"===t)},g=(e,t)=>{if("unknown"!==t)switch(t){case"twa":return 3354;case"cct":return 3355;case"browser":return 3356;default:return null}else switch(e){case"chrome":return 3351;case"safari":return 3352;default:return null}};function v(e,t){if(void 0===e)return"notEligible";if(!f(e)&&e.navigator&&e.navigator.userAgent){if(e.navigator.userAgent.includes("Windows NT 10.0"))return"windows";if(t&&t())return"chrome"}return"notEligible"}const y=e=>{if(!e)return;const t=a.Xb.getItem(d)||"";if(t!==e.location.hostname&&!(()=>{const e=Number(a.Xb.getItem(u));return Date.now()-e<6e4})()){const{pathname:n}=e.location,i=(0,r.Z)(n,{utm_source:p}),s=(0,o.Z)(i,void 0,t);a.Xb.setItem(u,Date.now()),e.location.href=s}},b=e=>{if(e)if((e=>{var t;return(0,s.mB)(null===(t=e.location)||void 0===t?void 0:t.search).utm_source===p})(e)){const{hostname:t}=e.location;a.Xb.setItem(d,t)}else e.navigator.userAgent&&e.navigator.userAgent.includes("CrOS")&&y(e)}},813401:(e,t,n)=>{n.d(t,{kf:()=>f,l5:()=>_,of:()=>p,xC:()=>m,yz:()=>h});var i=n(667294),o=n(172071),r=n(829407),a=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,a]=(0,i.useState)(null),l=t||{pwaType:"unknown",twaType:null},u=l.pwaType;(0,r.Z)((()=>{const e=(0,s.FB)(window)||"unknown";a(e),u!==e&&o.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,_=(0,i.useMemo)((()=>({pwaType:p,twaType:h})),[p,h]);return(0,c.jsx)(d,{value:_,children:e})},h=()=>{var e;const t=u();return null!==(e=null==t?void 0:t.pwaType)&&void 0!==e?e:"unknown"},_=()=>{var e;const t=u();return null!==(e=null==t?void 0:t.twaType)&&void 0!==e?e:null},m=()=>"android-twa"===h(),f=()=>{const e=h(),t=(0,a.Z)();return"unknown"===e&&t?null:"windows"===e}},198462:(e,t,n)=>{n.d(t,{cA:()=>D,fM:()=>j,N5:()=>N});var i=n(667294),o=n(991067),r=n(435851),a=n(172071),s=n(31062),l=n(383434),c=n(482131);const d=(0,l.X)("LayoutShiftDebugger"),u=e=>e instanceof HTMLElement&&e.dataset&&(e.dataset.layoutShiftBoundaryId||e.dataset.testId)||e.parentNode&&u(e.parentNode)||null,p=e=>Math.round(1e3*e);let h=[];const _=({staticContext:e,getCurrentRoute:t,getLastNavigationTime:n})=>{const i=(0,s.Jx)({annotateMarks:["initialAppLoad","RenderReactContainer"],name:"cumulative_layout_shift",pwtStaticContext:e});let o=0;const l=e=>{o=e.timeStamp};window.addEventListener("scroll",l),window.addEventListener("beforeunload",(()=>{window.removeEventListener("scroll",l)}));const _=`${(0,r.Z)(e)}.CLS`,m=()=>(e=>{let t=Object.freeze({}),n=0;h.forEach((({value:e,shift:{sources:i},route:o,hadRecentNavigation:r,hadRecentScroll:a,isAuth:s})=>{if(n+=e,!i||!i.length)return;const l=e/i.length;i.forEach((({node:e})=>{const n=e?u(e)||"ROOT":"NODE_REMOVED",i={route:o,boundaryId:n,hadRecentNavigation:r,hadRecentScroll:a,isAuth:s},c=JSON.stringify(i);t={...t,[c]:{score:((t[c]||{}).score||0)+l,tags:i}}}))})),Object.keys(t).forEach((n=>{const{score:i,tags:o}=t[n];a.Z.count(`${e}.shifts`,p(i),1,{...o})})),d("Debug CLS boundaries",n,t,h),h=[]})(_);let f,g,v=0,y=0,b=0;(0,c.kz)((({entries:i,value:r})=>{if(b=r||0,i.length){f=t(),g=n();const a=i[0].startTime,s=v!==a,l=s?i:i.slice(y);s&&(v=a),h=h.concat(l.map((t=>({value:r,shift:t,route:f,hadRecentNavigation:g>0&&g+500>t.startTime,hadRecentScroll:o>0&&o+500>t.startTime,isAuth:e.isAuthenticated})))),y=i.length}}),!0);const x=setInterval((()=>{if(h.length){m();const t=(e=b)<=.1?"good":e<=.25?"adequate":"poor";a.Z.count(`${_}.${t}`,1,1),i.stop(p(b))}var e}),1e3);window.addEventListener("beforeunload",(()=>{clearInterval(x),0===b&&i.abort("no_shifts_detected")}))};var m=n(311560);var f=n(156381);const g=e=>Number(e.toFixed(2)),v={pin_closeup:{LCP:"pin_closeup_lcp",FID:"pin_closeup_fid"},board:{LCP:"board_lcp",FID:"board_fid"},other_profile:{LCP:"other_profile_lcp",FID:"other_profile_fid"},topic:{LCP:"topic_lcp",FID:"topic_fid"}},y=["CA","GB","DE","FR","AU","JP","BR","MX"],b=({surface:e,isAuthenticated:t})=>{if(t)return[];switch(e){case"pin_closeup":return["mweb_pin_page_ssr_lite"];default:return[]}},x=({pwtStaticContext:e,surface:t})=>{const n="pin_closeup"===t||"board"===t||"other_profile"===t||"topic"===t?(({pwtStaticContext:e,surface:t})=>{const n=(0,s.Jx)({annotateExperiments:b({surface:t,isAuthenticated:e.isAuthenticated}),annotateResourceTimingForSurface:t,annotateMarks:["initialAppLoad","RenderReactContainer",...e.isAuthenticated?[]:["firstClientRenderUnauthPageWrapper","mountUnauthPageWrapper"],..."pin_closeup"===t?["firstClientRenderCloseupPage","firstClientRenderCloseupImage"]:[]],name:v[t].LCP,pwtStaticContext:e}),i=(0,s.Jx)({name:v[t].FID,pwtStaticContext:e});return(e,t)=>{"LCP"===e?n.stop(t):"FID"===e&&i.stop(t)}})({pwtStaticContext:e,surface:t}):null,{isAuthenticated:i,isBot:o,isSocialBot:l,deviceType:d,locale:u}=e,p=u.split("-")[1],h={},_=(s,c,u)=>{if(!h[s]){h[s]=!0;const _=(0,r.Z)(e),f=`${_}.${t}.${s}`,g=`${_}.tags.${t}.${s}`;"LCPCount"===s?(a.Z.count(`${f}.sum`,c,1),a.Z.increment(`${f}.size`,1)):("FID"===s||"FIDStartTime"===s?(a.Z.timing(`${f}`,c,1),a.Z.timing(`${g}`,c,1,{timingBucket:null==u?void 0:u.timingBucket,isAuth:i})):(a.Z.timing(`${f}`,c,1),a.Z.timing(`${g}`,c,1,{isAuth:i})),!i&&y.includes(p)&&(({botType:e,deviceType:t,isChrome:n,region:i})=>{const o=`pwtlogger.${e}.${t}`,r=["all",...i?[i.toLowerCase()]:[]],a=["all",...n?["chrome"]:[]],s=[];return r.forEach((e=>{a.forEach((t=>{s.push(`${o}.region_${e}.browser_${t}`)}))})),s})({botType:(l?"socialBot":o&&"bot")||"nonbot",deviceType:d,isChrome:!0,region:(0,m.Z)(p)}).forEach((e=>{a.Z.timing(`${e}.tags.growthSEO.${t}_${s}`,c,1,{country:p})})),n&&n(s,c))}};(0,c.Tx)((({value:e})=>{const t=(0,f.Af)();let n;n=e<=100?"Good":e>100&&e<=300?"Needs Improvement":"Poor",_("FID",g(e),{timingBucket:n}),t&&_("FIDStartTime",g(t),{timingBucket:n})})),(0,c.Tb)((({value:e})=>{_("LCPCount",(0,f.Kj)()),_("LCP",(e=>10*Math.round(e/10))(e))})),(0,c.Y)((({value:e})=>_("FCP",e)))};var P=n(790348);let w=null;const S=e=>{switch(e){case"/":return"homefeed";case"/pin/:id":return"pin_closeup";case"/pin/:id/visual-search":return"flashlight";case"/:username/:slug":return"board";case"/:username":return"other_profile";case"/search/:scope":return"search";case"/ideas/:interest/:id":return"topic";default:return null}};var E=n(969853),A=n(543059),T=n(7789),I=n(22773),C=n(276775),R=n(785893);const k=(0,i.createContext)(null),O=(0,i.createContext)(null);function D({children:e,immutableLocation:t,resourceTimingCacheSize:n,routerHistoryAction:r,staticContext:a}){const l=(0,i.useRef)(null),c=(0,i.useRef)(null),d=(0,i.useRef)(t),u=(0,i.useRef)(!0),{path:p}=(0,C.useRouteMatch)(),h=(0,i.useRef)(p),m=!a.isCachedRender&&(0,o.Z)(a.deviceType);if((0,i.useEffect)((()=>{h.current=p}),[p]),(0,i.useEffect)((()=>{if((0,I.X_)({size:n||1e3}),(0,f.UQ)(),(0,P.A9)("totalSessionVolume"),window.performance?["clearMarks","clearMeasures","clearResourceTimings","getEntries","getEntriesByName","getEntriesByType","mark","measure","now","setResourceTimingBufferSize"].forEach((e=>{window.performance[e]||(0,P.A9)(`not_supported.window.performance.${e}`)})):(0,P.A9)("not_supported.window.performance"),window.PerformanceObserver||(0,P.A9)("not_supported.window.PerformanceObserer"),(0,E.v)()||(0,P.A9)("not_supported.grid_profiler"),u.current=!1,m&&!T.is){if(((e,t)=>{let n,i=0,o=0,r=null,a=null,l=null,c=null,d=[];const u=()=>{o+=1,l=window.requestAnimationFrame(u)},p=()=>{if(c){const n=d.some((e=>null!==r&&r-e>0&&r-e<=500)),o=t(),{isAuthenticated:l}=e;if(n){const t=(0,s.Jx)({name:"scroll_session",pwtStaticContext:e});if(!t)return;const n={surface:o,isAuthenticated:l};if(null===r||null===a||0===i)if(null===r&&null===a)t.error("no_duration",n);else if(null==r)w=a,t.error("no_start",n);else if(null==a){let e;e=w&&r-w<750?"no_end.outside_window":"no_end.single_event",t.error(e,n)}else t.error("no_frames",n);else{w=a;const e=a-r,s=e/i;0===s?t.error("zero_value",n):s<0?t.error("negative_value",n):(t.addBinaryAnnotation("surface",o,"STRING"),t.addBinaryAnnotation("isAuthenticated",l,"BOOL"),t.addBinaryAnnotation("duration_ms",e,"I32"),t.addBinaryAnnotation("total_frames_rendered",i,"I16"),t.stop(s))}}else(0,P.A9)("WARN.scroll_session.not_user",{tags:{isAuthenticated:l,surface:o}})}window.cancelAnimationFrame(l),i=0,o=0,d=[],a=null,r=null,c=null},h=({timeStamp:e})=>{n&&clearTimeout(n),n=setTimeout(p,500),null===c?(c=100*Math.random()<10,c&&(l=window.requestAnimationFrame(u),r=e)):c&&(a=e,i+=o,o=0)},_=({timeStamp:e})=>{d.push(e)};["wheel","pointerdown","keydown"].forEach((e=>{window.addEventListener(e,_,{passive:!0,capture:!0})})),window.addEventListener("scroll",h,{passive:!0}),window.addEventListener("pagehide",(()=>{window.removeEventListener("scroll",h),["wheel","pointerdown","keydown"].forEach((e=>{window.removeEventListener(e,_)}))}))})(a,(()=>S(h.current)?S(h.current)||"UNKNOWN_SURFACE":h.current||"UNKNOWN_SURFACE")),"Chrome"===a.browserName){_({staticContext:a,getCurrentRoute:()=>h.current,getLastNavigationTime:()=>c.current||0});const e=S(h.current);e&&x({pwtStaticContext:a,surface:e})}}}),[]),d.current!==t){d.current=t,c.current=null!==(g=window.performance)&&void 0!==g&&g.now?window.performance.now():null;const{current:e}=c;if(!u.current){const t=!l.current;(0,P.A9)("routeStart",{tags:{action:r}}),(0,I.Eg)(t),(0,f.Ux)(t),(0,f.on)(),(0,A.tl)();const{customBufferSize:n,defaultBufferSize:i}=(0,I.LH)();e&&((0,P.A9)("routeStart.customBufferSize",{count:n}),(0,P.A9)("routeStart.defaultBufferSize",{count:i}),l.current={time:e,action:r})}}var g;return(0,R.jsx)(k.Provider,{value:m?a:null,children:(0,R.jsx)(O.Provider,{value:l.current,children:e})})}const j=()=>(0,i.useContext)(O),N=()=>(0,i.useContext)(k)},280313:(e,t,n)=>{n.d(t,{Z:()=>J});var i=n(667294),o=n(317672),r=n(790348);const a=e=>{const t=performance.getEntriesByType("resource").filter((e=>e.name.includes("i.pinimg"))).reduce(((e,t)=>{const n=t.name.replace(".jpg","").split("/");return{[n[n.length-1]]:{downloadSize:t.name.split("/")[3].split("x")[0]},...e}}),{});[...Array.from(document.getElementsByTagName("img")).map((e=>{const n=e.src.replace(".jpg","").split("/"),i=n[n.length-1];if(t[i]){var r;const n=(null===(r=(0,o.rZ)(e))||void 0===r?void 0:r.width)||1,a=t[i].downloadSize;return{fileName:i,renderedSize:n,downloadedSize:a,ratio:a/n}}return{fileName:i,renderedSize:1,downloadedSize:1,ratio:1}})),...Array.from(document.querySelectorAll('div[role="img"]')).map((e=>{const n=e.style.backgroundImage.split('"')[1].replace(".jpg","").split("/"),i=n[n.length-1];if(t[i]&&e instanceof HTMLDivElement){var r;const n=(null===(r=(0,o.rZ)(e))||void 0===r?void 0:r.width)||1,a=t[i].downloadSize;return{fileName:i,renderedSize:n,downloadedSize:a,ratio:a/n}}return{fileName:i,renderedSize:1,downloadedSize:1,ratio:1}}))].forEach((t=>{const{ratio:n,fileName:i,downloadedSize:o}=t;t.ratio>1.05&&(0,r.A9)(`checkImageRatio.${e}`,{count:Math.round(10*n)/10,tags:{fileName:`${o}_${i}`}})}))};var s=n(860273),l=n(543059),c=n(607150);const d=({constraintMap:e,initialNavTiming:t,annotations:n})=>({...n,...(0,c.jh)("constraint_",e),...(0,c.jh)("mark_",(0,l.gQ)()),...(0,c.jh)("browser_",{...t?(0,c.D3)(t):{},...(0,c.rX)()})});var u=n(358864),p=n(505771),h=n(156381);const _=(e,t)=>{const{firstInputDelay:n}=(0,h.v2)();return[...e.map((e=>(0,p.Z)(e,t))).filter(Boolean),...n?[{name:"fid",id:(0,u.Z)(),parentId:t,startTime:n.startTime,endTime:n.endTime,annotationMap:{},binaryAnnotationMap:{}}]:[]]};var m=n(435851),f=n(172071);const g=({eventPrefix:e,endTime:t,tags:n,resourceArr:i,resourceType:o="allResources"})=>{const r=i.length;if(r>0&&"object"==typeof i[0]&&!Array.isArray(i[0])){const a=[...i].sort(((e,t)=>e.fetchStart-t.fetchStart)),s=[...i].sort(((e,t)=>e.responseEnd-t.responseEnd));let l=1;const c=t/5;let d=0;for(;l<=5;){let t=0;for(;d<=r-1&&a[d].fetchStart<=c*l;)d+=1,t+=1;f.Z.gauge(`${e}.tags.${o}.fetchStartInterval${l}of5`,t,.2,n),f.Z.gauge(`${e}.${o}.fetchStartInterval${l}of5`,t,.2),l+=1}const u={zeroPercentInFlight:a[0].fetchStart,twentyFivePercentInFlight:a[Math.floor(r/4)].fetchStart,fiftyPercentInFlight:a[2*Math.floor(r/4)].fetchStart,seventyFivePercentInFlight:a[3*Math.floor(r/4)].fetchStart,hundredPercentInFlight:a[r-1].fetchStart,twentyFivePercentComplete:s[Math.floor(r/4)].responseEnd,fiftyPercentComplete:s[2*Math.floor(r/4)].responseEnd,seventyFivePercentComplete:s[3*Math.floor(r/4)].responseEnd,hundredPercentComplete:s[r-1].responseEnd};for(const t in u)u[t]&&(f.Z.timing(`${e}.tags.${o}.${t}`,u[t],.2,n),f.Z.timing(`${e}.${o}.${t}`,u[t],.2))}},v=({annotateExperiments:e,endTime:t,entries:n,metricIdSurface:i,pwtStaticContext:o})=>{const r=`${(0,m.Z)(o)}.${i}`,a=[r];e&&e.forEach((e=>{const t=o.getExperimentGroup(e)||"null";a.push(`${r}.${e}.${t}`)}));const s={lcpTimingBucket:(e=>{let t;return t=e<=2500?"Good":e>2500&&e<=4e3?"Needs Improvement":"Poor",t})((0,h.Bn)())||"unknown"},l=Array.from(n.filter((e=>"number"==typeof e.encodedBodySize&&e.encodedBodySize>=1e4&&e.responseEnd<=t))),c=[],d=[],u=[],p=[],_=[];l.forEach((e=>{"img"===e.initiatorType?c.push(e):"css"===e.initiatorType?d.push(e):"script"===e.initiatorType?u.push(e):"xmlhttprequest"===e.initiatorType?p.push(e):"link"===e.initiatorType&&e.name.includes("i.pinimg.com")&&_.push(e)})),a.forEach((e=>{g({eventPrefix:e,endTime:t,tags:s,resourceArr:l}),g({eventPrefix:e,endTime:t,tags:s,resourceArr:c,resourceType:"image"}),g({eventPrefix:e,endTime:t,tags:s,resourceArr:d,resourceType:"css"}),g({eventPrefix:e,endTime:t,tags:s,resourceArr:u,resourceType:"scripts"}),g({eventPrefix:e,endTime:t,tags:s,resourceArr:p,resourceType:"xhr"}),g({eventPrefix:e,endTime:t,tags:s,resourceArr:_,resourceType:"preloadedImage"})}))};var y=n(22773),b=n(453821),x=n(638089);const P=({annotateExperiments:e,annotations:t,binaryAnnotations:n,constraintMap:i,endTime:o,imageTimings:r,metricId:a,pwtStaticContext:l,startTime:c,traceId:u,spans:p})=>{const h=(0,y.Cg)();let m;"initial_app_load"===a.navigationType&&(m=(0,s.Z)());const f=r.map((({name:e})=>e)),g=h.map((e=>(0,b.p)(e,f))).filter((({timing:e})=>!(({startTime:e,responseEnd:t},n)=>e>n.endTime||!!t&&t<n.startTime||e<n.startTime-100)(e,{startTime:c,endTime:o})));return"board"!==a.surface&&"pin_closeup"!==a.surface||"initial_app_load"!==a.navigationType||!1!==l.isAuthenticated||v({annotateExperiments:e,endTime:o,entries:h,metricIdSurface:a.surface,pwtStaticContext:l}),{type:"COMPLETE",traceId:u,startTime:c,endTime:o,spans:_(g,u).concat(p),annotationMap:d({constraintMap:i,initialNavTiming:m,annotations:t}),binaryAnnotationMap:(0,x.rA)({annotateExperiments:e,binaryAnnotations:n,entries:h,metricId:a,performanceResources:g,pwtEndTime:o,pwtStaticContext:l})}};let w=!1;const S=(e,t)=>e&&t?w?((0,r.H)("duplicated_initial_app_load_surface_pwt"),(0,u.Z)()):(w=!0,t):(0,u.Z)();var E=n(883119),A=n(226464),T=n(785893);function I({children:e,heading:t}){return(0,T.jsxs)("table",{style:{width:"100%"},cellPadding:4,children:[(0,T.jsx)("thead",{children:(0,T.jsx)("tr",{children:(0,T.jsx)("th",{colSpan:2,style:{background:"#efefef"},children:(0,T.jsx)(E.xv,{weight:"bold",align:"center",children:t})})})}),(0,T.jsx)("tbody",{children:e})]})}function C({name:e,children:t}){return(0,T.jsxs)("tr",{children:[(0,T.jsx)("td",{children:(0,T.jsx)(E.xv,{weight:"bold",children:e})}),(0,T.jsx)("td",{children:"string"==typeof t?(0,T.jsx)(E.xv,{children:t}):t})]})}function R({result:e}){return"ABORT"===e.type?(0,T.jsx)(C,{name:"Abort Reason",children:e.reason}):(0,T.jsxs)(i.Fragment,{children:[(0,T.jsx)(C,{name:"PWT (ms)",children:(0,T.jsx)(E.xv,{align:"end",children:Math.round(e.endTime-e.startTime)})}),(0,T.jsx)(C,{name:"PinTrace",children:(0,T.jsx)(E.xv,{italic:!0,children:(0,T.jsx)(E.rU,{href:`https://pintrace.pinadmin.com/zipkin/traces/${e.traceId.toString(16)}`,target:"blank",display:"inlineBlock",onClick:({dangerouslyDisableOnNavigation:e})=>e(),underline:"hover",children:"Open in a new tab"})})})]})}function k({data:e}){const{metricId:t,constraints:n,constraintMap:i,startTime:o,result:r}=e;return(0,T.jsxs)(E.xu,{children:[(0,T.jsxs)(I,{heading:(0,A.KJ)(t),children:[(0,T.jsx)(C,{name:"Thrift Id",children:String((0,A.Rp)(t))}),(0,T.jsx)(C,{name:"Surface",children:t.surface}),(0,T.jsx)(C,{name:"Navigation Type",children:t.navigationType}),(0,T.jsx)(C,{name:"Viewer Authed",children:String(t.isAuthenticated)})]}),(0,T.jsx)(I,{heading:"Constraints",children:n.map((e=>(0,T.jsx)(C,{name:e,children:(0,T.jsx)(E.xv,{align:"end",children:i[e]?Math.round(i[e]-o):"pending..."})},`constraint_${e}`)))}),(0,T.jsx)(I,{heading:"Result",children:r?(0,T.jsx)(R,{result:r}):(0,T.jsx)(C,{name:"result",children:(0,T.jsx)(E.$j,{accessibilityLabel:"profiling PWT",show:!0})})})]})}var O=n(223815);const D=e=>e.result?"COMPLETE"===e.result.type?"darkGray":"red":"gray";function j({data:e}){const[t,n]=(0,i.useState)(!1);return(0,T.jsx)(O.Z,{children:(0,T.jsxs)(E.mh,{children:[(0,T.jsx)(E.xu,{position:"fixed",margin:3,marginBottom:12,bottom:!0,left:!0,width:50,height:50,dangerouslySetInlineStyle:{__style:{zIndex:2e3}},children:(0,T.jsx)(E.hU,{accessibilityLabel:"PwtDebugger",bgColor:"lightGray",iconColor:D(e),icon:"flash",size:"lg",onClick:()=>n(!0)})}),t&&(0,T.jsx)(E.xu,{position:"absolute",dangerouslySetInlineStyle:{__style:{zIndex:2e3}},children:(0,T.jsx)(E.u_,{accessibilityModalLabel:"Pinner Wait Time Debugger Details",heading:"Pinner Wait Time",onDismiss:()=>n(!1),footer:null,size:"sm",children:(0,T.jsx)(k,{data:e})})})]})})}var N=n(558775);const L=(e,t)=>{const n=(0,i.useRef)(e);(0,i.useEffect)((()=>{n.current=e}),[e]);const o=(0,i.useRef)(t);(0,i.useEffect)((()=>{o.current=t}),[t]),(0,i.useEffect)((()=>()=>o.current(n.current)),[])},M=(e,t)=>{const[n,o]=(0,i.useState)(t);return{state:n,dispatch:t=>o((n=>e(n,t)))}};var z=n(985271),B=n(7789),Z=n(383434),F=n(567450),U=n(276602),G=n(198462);const H=["initial_app_load","client_route_push"],V=(0,Z.X)("PwtSurface"),W="NavigationComplete",$="VisuallyComplete",K=(e,t)=>{e.isSampled&&(0,N.Z)({metricId:e.metricConfig.metricId,pwtStaticContext:e.metricConfig.pwtStaticContext,result:{type:"ABORT",reason:t}})},q=e=>{if(e.metricConfig.constraints.every((t=>e.constraintMap[t]))){const t=Math.max(...e.metricConfig.constraints.map((t=>e.constraintMap[t])));return((e,t)=>{var n;const{metricConfig:{metricId:i,pwtStaticContext:o,annotateExperiments:s},annotations:c,binaryAnnotations:d,constraintMap:u,startTime:p,imageTimings:h,isSampled:_,spans:m}=e;(0,l.L8)(`PWT_Complete_${(0,A.KJ)(i)}`);const f=S("initial_app_load"===i.navigationType,null===(n=o.serverData)||void 0===n?void 0:n.trace_id),g=P({annotateExperiments:s,annotations:c,binaryAnnotations:d,constraintMap:u,endTime:t,imageTimings:h,metricId:i,pwtStaticContext:o,startTime:p,traceId:f,spans:m});_&&(0,N.Z)({metricId:i,pwtStaticContext:o,result:g});try{a(String(g.binaryAnnotationMap["metricId.surface"].value))}catch(v){(0,r.H)("image_ratio_check_error",{error:v})}return{...e,result:g,status:"DONE"}})(e,t)}return e},Y=(e,t)=>{const{constraint:n,time:i}=t,o=(0,A.KJ)(e.metricConfig.metricId);return z.Z?e.metricConfig.constraints.find((e=>e===n))?e.constraintMap[n]?(V(`constraint "${n}" is already complete.`),(0,r.H)("duplicated_constraint_complete",{constraint:n,action:o}),e):(V(`marking constraint "${n}" as complete`),(0,l.ZP)(`constraint_${n}_is_complete`),q({...e,constraintMap:{...e.constraintMap,[n]:i||z.Z.now()}})):(V(`marked constraint "${n}" is not a required constraint.`),e):((0,r.H)("missing_window_performance",{action:o}),e)},X=(e,t)=>{if(V("dispatch action",t),"INIT_ROUTE"===t.type)return((e,t)=>{const{metricConfig:n,startTime:i,isSampled:o}=t;if("TIMING"===e.status&&i!==e.startTime&&K(e,"routeUpdatedOnSameSurface"),!n)return{status:"DISABLED",metricConfig:null};const a=(0,A.KJ)(n.metricId);return"TIMING"===e.status&&e.startTime===i&&e.constraintMap.NavigationComplete?((0,r.H)("duplicated_init_route_action",{action:a}),e):("Other"===n.pwtStaticContext.browserName&&!1===n.metricId.isAuthenticated&&"initial_app_load"===n.metricId.navigationType?((0,r.A9)(`TIMING.${a}`,{tags:{userAgent:null===(s=window)||void 0===s||null===(l=s.navigator)||void 0===l?void 0:l.userAgent}}),(0,r.A9)(`TIMING.sampled.${a}`,{tags:{userAgent:null===(c=window)||void 0===c||null===(d=c.navigator)||void 0===d?void 0:d.userAgent},sampleRate:.5})):((0,r.A9)(`TIMING.${a}`),(0,r.A9)(`TIMING.sampled.${a}`,{sampleRate:.5})),Y({status:"TIMING",metricConfig:n,startTime:i,constraintMap:{},annotations:{},binaryAnnotations:{},imageTimings:[],isSampled:o,spans:[]},{constraint:W}));var s,l,c,d})(e,t.payload);if("TIMING"!==e.status)return V(`ignoring action due to invalid state ${e.status}`,t),e;switch(t.type){case"ABORT":K(e,t.reason);const n={type:"ABORT",reason:t.reason};return{...e,status:"DONE",result:n};case"ANNOTATE":const{name:i}=t.payload;if(!z.Z)return e;const o=z.Z.now();return V(`adding annotation {${i}: ${o}}`),{...e,annotations:{...e.annotations,[i]:o}};case"BINARY_ANNOTATE":const{name:a,value:s,annotationType:l}=t.payload;return V(`adding binary annotation {${a}: ${s}}`),{...e,binaryAnnotations:{...e.binaryAnnotations,[a]:{value:s,type:l}}};case"MARK_CONSTRAINT_COMPLETE":return Y(e,t.payload);case"REMOVE_CONSTRAINT":return((e,t)=>{if(!z.Z){const t=(0,A.KJ)(e.metricConfig.metricId);(0,r.H)("missing_window_performance",{action:t})}V(`removing constraint "${t}"`);const n=e.metricConfig.constraints.filter((e=>e!==t)),{[t]:i,...o}=e.constraintMap;return q({...e,constraintMap:o,metricConfig:{...e.metricConfig,constraints:n}})})(e,t.payload);case"SET_SEGMENT":return((e,t)=>{if(!z.Z){const t=(0,A.KJ)(e.metricConfig.metricId);(0,r.H)("missing_window_performance",{action:t})}V(`updating pwt segment to "${t}"`);const n={...e.metricConfig.metricId,segment:t};return{...e,metricConfig:{...e.metricConfig,metricId:n}}})(e,t.payload);case"SET_VISUALLY_COMPLETE_RESULT":{const{payload:{imageTimings:n}}=t;if(0===n.length){K(e,"visuallyComplete_noImages");const t={type:"ABORT",reason:"visuallyComplete_noImages"};return{...e,status:"DONE",result:t}}const i=Math.max(...n.map((e=>e.responseEnd||0)));return Y({...e,imageTimings:n},{constraint:$,time:i})}case"ADD_SUBSPAN":const{startTime:c}=e,{payload:{name:d,startTime:p,endTime:h,annotations:_,binaryAnnotations:m,parentId:f}}=t;return{...e,spans:[...e.spans,{name:d,id:(0,u.Z)(),startTime:p||c,endTime:h,annotationMap:{..._},binaryAnnotationMap:{...m},parentId:f}]};case"START_SUBSPAN":return{...e,spans:[...e.spans,{name:t.payload.name,id:(0,u.Z)(),startTime:z.Z?z.Z.now():0,endTime:1/0,annotationMap:{...t.payload.annotations},binaryAnnotationMap:{...t.payload.binaryAnnotations},parentId:t.payload.parentId}]};case"STOP_SUBSPAN":const g=e.spans.findIndex((e=>e.name===t.payload.name));return g>-1?(e.spans[g].endTime=z.Z?z.Z.now():0,t.payload.annotations&&(e.spans[g].annotationMap={...e.spans[g].annotationMap,...t.payload.annotations}),t.payload.binaryAnnotations&&(e.spans[g].binaryAnnotationMap={...e.spans[g].binaryAnnotationMap,...t.payload.binaryAnnotations})):(0,r.H)("invalid_subspan_stop_name",{name:t.payload.name}),e;default:const v=(0,A.KJ)(e.metricConfig.metricId);return(0,r.H)("invalid_pwt_surface_action",{action:v}),e}};function J({children:e,...t}){var n;const o=(0,G.fM)(),a=(e=>{if(!e)return"initial_app_load";switch(e.action){case"PUSH":return"client_route_push";case"REPLACE":return"client_route_replace";default:return null}})(o),s=["seo_web_react18_render","web_react18_render_auth","web_react18_render_unauth","web_duplo_default",...null!==(n=t.annotateExperiments)&&void 0!==n?n:[]],l={...t,annotateExperiments:s,navigationInfo:{navigationType:a,clientNavigation:o}},{state:c,context:d}=(({surface:e,constraints:t,segment:n,measureGridVisuallyComplete:o,annotateExperiments:r,customEnabledNavigationTypes:a,navigationInfo:{clientNavigation:s,navigationType:l},sampleRate:c})=>{const d=(0,i.useRef)("NOT_SET"),u=(0,G.N5)(),{state:p,dispatch:h}=M(X,{status:"DISABLED",metricConfig:null});if(d.current!==s&&(d.current=s,u)){const{isAuthenticated:i}=u,d=a||H,p=e&&l&&d.includes(l)?{metricId:{type:"surface",surface:e,navigationType:l,isAuthenticated:i,segment:n},annotateExperiments:r,constraints:[W,...t||[],...o?[$]:[]],pwtStaticContext:u}:null;h({type:"INIT_ROUTE",payload:{metricConfig:p,startTime:s?s.time:0,isSampled:!c||Math.random()<c}})}if((0,i.useEffect)((()=>{const e=e=>{h({type:"ABORT",reason:e})};F.Z.onSessionPause(e);const t=()=>{window.removeEventListener("resize",t),h({type:"ABORT",reason:"windowResized"})};return window.addEventListener("resize",t),()=>{F.Z.removePauseListener(e),window.removeEventListener("resize",t)}}),[]),L(p,(e=>{V("handling unmount",e),"TIMING"===e.status&&K(e,"unmount")})),"TIMING"!==p.status||!p.constraintMap.NavigationComplete)return{state:p,context:null};const{startTime:_,metricConfig:m}=p;return{state:p,context:{id:_,metricId:m.metricId,abort:e=>h({type:"ABORT",reason:e}),addAnnotation:e=>h({type:"ANNOTATE",payload:{name:e}}),addBinaryAnnotation:(e,t,n)=>h({type:"BINARY_ANNOTATE",payload:{name:e,value:t,annotationType:n}}),setVisuallyCompleteResult:m.constraints.includes($)?e=>h({type:"SET_VISUALLY_COMPLETE_RESULT",payload:e}):null,markConstraintComplete:e=>h({type:"MARK_CONSTRAINT_COMPLETE",payload:{constraint:e,time:z.Z?z.Z.now():0}}),removeConstraint:e=>h({type:"REMOVE_CONSTRAINT",payload:e}),setSegment:e=>h({type:"SET_SEGMENT",payload:e}),addSubspan:(e,t,n,i={},o={},r=null)=>h({type:"ADD_SUBSPAN",payload:{name:e,startTime:t,endTime:n,annotations:i,binaryAnnotations:o,parentId:r}}),startSubspan:(e,t={},n={},i=null)=>h({type:"START_SUBSPAN",payload:{name:e,annotations:t,binaryAnnotations:n,parentId:i}}),stopSubspan:(e,t={},n={},i=null)=>h({type:"STOP_SUBSPAN",payload:{name:e,annotations:t,binaryAnnotations:n,parentId:i}})}}})(l);return(()=>{const e=(0,U.EV)(),t=!!e;(0,i.useEffect)((()=>{if(t){const t=null!=e&&e.metricId?(0,A.KJ)(e.metricId):null;(0,r.H)("nested_pwt_surface",{action:t})}}),[t])})(),(0,T.jsxs)(i.Fragment,{children:[(0,T.jsx)(U.Sb,{value:d,children:e}),B.DQ&&"DISABLED"!==c.status&&(0,T.jsx)(j,{data:{metricId:c.metricConfig.metricId,constraints:c.metricConfig.constraints,constraintMap:c.constraintMap,startTime:c.startTime,result:"DONE"===c.status?c.result:null}})]})}},276602:(e,t,n)=>{n.d(t,{EV:()=>a,Sb:()=>r,gD:()=>o});var i=n(425288);const{Consumer:o,Provider:r,useMaybeHook:a}=(0,i.Z)("pwtSurfaceContext")},991067:(e,t,n)=>{n.d(t,{Z:()=>a});const i=()=>{var e;return!(null===(e=window.performance)||void 0===e||!e.timing)};var o=n(985271),r=n(969853);function a(e){return!("desktop"===e&&!i())&&(!!o.Z&&(0,r.v)())}},7789:(e,t,n)=>{n.d(t,{DQ:()=>r,eD:()=>i,is:()=>o});const i=window.location.search.includes("debug_tracing"),o=window.location.search.includes("debug_lab_tracing"),r=i||o},226464:(e,t,n)=>{n.d(t,{KJ:()=>d,Rp:()=>c});const i={id:14,name:"own_profile"},o={id:15,name:"other_profile"},r={initial_app_load:{unauth:{board:{id:114,name:"board_page_interactive"},pin_closeup:{id:113,name:"pin_page_interactive"},other_profile:{id:115,name:"user_page_interactive"},topic:{id:119,name:"topic_page_interactive"},sterling_signup:{id:201,name:"sterling_signup_main_pageload"},sterling_login:{id:202,name:"sterling_login_main_pageload"}},auth:{bizhub:{id:607,name:"bizhub_pinteractive"},homefeed:{id:19,name:"home_feed_pinteractive"},sterling_reporting_details:{id:218,name:"sterling_reporting_details_pageload"},sterling_reporting_overview:{id:219,name:"sterling_reporting_overview_pageload"},sterling_ads_create:{id:221,name:"sterling_adscreate_main_pageload"},sterling_ads_duplicate:{id:206,name:"sterling_adsduplication_main_pageload"},sterling_ads_edit:{id:204,name:"sterling_adsedit_main_pageload"},sterling_billing_profile:{id:203,name:"sterling_billingprofile_main_pageload"},sterling_bulk_editor:{id:205,name:"sterling_bulkeditor_main_pageload"},sterling_pin_builder:{id:222,name:"sterling_adscreate_pinbuilder_pageload"},sterling_recommendations:{id:223,name:"sterling_recommendations_pageload"},product_details:{id:120,name:"product_details_interactive"}}},client_route_push:{unauth:{},auth:{bizhub:{id:608,name:"bizhub_page_render"},homefeed:{id:2,name:"home_feed_render"},search:{id:3,name:"search_feed_render"},search_tab:{id:25,name:"search_tab_render"},pin_closeup:{id:13,name:"pin_closeup_details"},product_details:{id:37,name:"product_details_render"},your_shop:{id:36,name:"your_shop_feed_render"},own_profile:i,other_profile:o}},client_route_replace:{unauth:{},auth:{own_profile:i,other_profile:o,product_details:{id:37,name:"product_details_render"}}}},a={client_route_push:{auth:{pin_closeup:{story_pin:{id:700,name:"story_pin_closeup"}}}}},s={board_picker:16,grid_bottom_spinner:12,facebook_autologin:500,google_autologin:501,story_pin_step:701},l=e=>{var t,n;const{navigationType:i,isAuthenticated:o,segment:s,surface:l}=e,c=o?"auth":"unauth",d=null===(t=a[i])||void 0===t||null===(n=t[c])||void 0===n?void 0:n[l];return s&&d&&d[s]||r[i][c][l]},c=e=>{if("stopwatch"===e.type)return s[e.name]||null;const t=l(e);return t?t.id:null},d=e=>{if("stopwatch"===e.type)return e.name;const{navigationType:t,isAuthenticated:n,segment:i,surface:o}=e,r=n?"auth":"unauth",a=l(e);return a?a.name:`${t}_${r}_${o}${i?"_"+i:""}`}},383434:(e,t,n)=>{n.d(t,{X:()=>r,v:()=>o});var i=n(7789);const o=(e,t)=>{i.DQ&&(e.style.outline=`10px solid ${t}`,e.style.outlineOffset="-30px")},r=e=>(t,...n)=>{i.DQ&&console.log("string"==typeof t?`[PWT:${e}] ${t}`:t,...n)}},317254:(e,t,n)=>{n.d(t,{Z:()=>l});var i=n(969853),o=n(667294),r=n(276602),a=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,i.Z)({pinData:n,isAtEndOfFeed:t,includeBackgroundImages:c,includeVideos:d,includeSections:u}),function(e){const t=(0,r.EV)(),n=(0,o.useRef)(null);(0,o.useEffect)((()=>{e!==n.current&&(n.current=e,t&&(0,a.ZP)(a.at))}),[!!t,e])}(l),e}},317672:(e,t,n)=>{n.d(t,{F9:()=>d,LM:()=>l,VZ:()=>r,cQ:()=>u,rZ:()=>a});var i=n(790348),o=n(91885);const r=()=>"number"==typeof window.innerHeight&&"number"==typeof window.pageYOffset&&!!document.querySelector&&!!document.querySelectorAll,a=e=>e instanceof HTMLDivElement||e instanceof HTMLVideoElement?e.getBoundingClientRect():e.parentElement instanceof HTMLElement?e.parentElement.getBoundingClientRect():null,s=e=>{if(e instanceof HTMLImageElement)return e.src;if(e instanceof HTMLVideoElement)return e.attributes.poster.value;const t=((e.style||{}).backgroundImage||"").match(/^url\(["'](.*)["']\)$/);return t&&t[1]||null},l=()=>document.querySelector?document.querySelectorAll(o.wc).length:((0,i.H)("missing_document_query_selector"),0),c=(e,t)=>{const n=a(e);if(!n)return(0,i.H)("missing_client_rect"),!1;if(n.width<100&&n.height<100){if(e instanceof HTMLImageElement)return!1;const t=s(e);if(null!=t&&t.endsWith("svg"))return!1}return(({top:e,height:t},{foldY:n,pageYOffset:i})=>{const o=e+i;if(o>=n)return!1;const r=Math.min(t,n-o);return r>.5*t||r>.2*n})(n,t)},d=()=>{const e=(()=>{if(!document.querySelector)return(0,i.H)("missing_document_query_selector"),null;const e=document.querySelectorAll(o.wc);return e[e.length-1]||null})();if(!e)return!1;const t=window.innerHeight||0,n=window.pageYOffset||0;return e.getBoundingClientRect().top+n>=t},u=(e,t,n)=>{if(!document.querySelector)return(0,i.H)("missing_document_query_selector"),[];const r={foldY:window.innerHeight||0,pageYOffset:window.pageYOffset||0},a=[o.Wf,...e?[o.fF]:[],...t?[o.$N]:[]].join(","),l=[...document.querySelectorAll(a)];if(n){const e=[...document.querySelectorAll('div[data-test-id="board-section"]')],t=e=>{const n=[...e.children];!n.length&&e.style.backgroundImage?l.push(e):n.length&&n.forEach((e=>{t(e)}))};e.forEach((e=>{t(e)}))}return l.reduce(((e,n)=>{if((n instanceof HTMLImageElement||n instanceof HTMLDivElement||n instanceof HTMLVideoElement&&t)&&c(n,r)){const t=s(n);if(t){const i=(t||"").replace(/.*\//,"");return e.concat([{element:n,fileName:i}])}}return e}),[])}},91885:(e,t,n)=>{n.d(t,{$N:()=>l,Kb:()=>i,Wf:()=>a,fF:()=>s,wc:()=>r});const i="pwt-grid-item",o=['div[data-grid-item="true"]',"div.Grid__Item",`div[data-test-id="${i}"]`],r=o.join(","),a=o.map((e=>`${e} img`)).join(","),s=o.map((e=>`${e} div[style*=background-image]`)).join(","),l=o.map((e=>`${e} video`)).join(",")},969853:(e,t,n)=>{n.d(t,{Z:()=>_,v:()=>h});var i=n(667294),o=n(543059),r=n(35954),a=n(226464),s=n(22773),l=n(790348),c=n(276602),d=n(317672),u=n(383434);const p=(0,u.X)("GridProfiler"),h=()=>!!window.addEventListener&&!!window.removeEventListener&&(0,d.VZ)();function _({isAtEndOfFeed:e,pinData:t,includeBackgroundImages:n,includeVideos:h=!1,includeSections:_}){const m=(0,c.EV)(),f=null==m?void 0:m.id,g=null==m?void 0:m.setVisuallyCompleteResult,[v,y]=(0,i.useState)({status:"DISABLED"});(0,i.useEffect)((()=>{y(g?{status:"LAYOUT",failedCount:0,numOfItemsChecked:0}:{status:"DISABLED"})}),[f,g]),(0,i.useEffect)((()=>{if("DISABLED"!==v.status&&(0,o.ZP)(`GridVisuallyCompleteProfiler_${v.status}`),p("new status",v),"LAYOUT"===v.status){const e=((e,t)=>{const n=()=>{window.removeEventListener(e,n),t()};return window.addEventListener(e,n),()=>window.removeEventListener(e,n)})("scroll",(()=>{(0,o.ZP)("scrollDuringLayout")}));return()=>{e()}}return()=>{}}),[v.status]),(0,r.Z)((()=>{if(!m||!g)return;const{abort:i,metricId:o}=m;switch(v.status){case"LAYOUT":{const t=((e,t)=>{if(!t){const t=(0,d.LM)();if(t===e)return p("No new items, so skip the viewport-fill check."),{complete:!1,numOfItemsChecked:e};if(!(0,d.F9)())return p("Viewport may not be filled yet."),{complete:!1,numOfItemsChecked:t}}return{complete:!0}})(v.numOfItemsChecked,e);t.complete?y({status:"TIMING",failedCount:0,pinElements:(0,d.cQ)(n,h,_)}):500*v.failedCount>6e4?((0,l.A9)(`images.${(0,a.KJ)(o)}.visuallyComplete.maxLayoutAttempt`),i("visuallyComplete_layoutTimeout"),y({status:"DISABLED"})):y({...v,failedCount:v.failedCount+1,numOfItemsChecked:t.numOfItemsChecked});break}case"TIMING":{const e=(0,s.Cg)(),n=v.pinElements.length,r=[];let c=0,d=0,h=0;if(v.pinElements.forEach((({element:t,fileName:n})=>{const i=e.find((e=>e.name.endsWith(n)));i?i.responseEnd?(r.push(i),(0,u.v)(t,"green")):(h+=1,(0,u.v)(t,"blue")):t instanceof HTMLImageElement&&t.complete?(d+=1,(0,u.v)(t,"red")):(c+=1,(0,u.v)(t,"greenyellow"))})),c||h)100*v.failedCount>6e4?((0,l.A9)(`images.${(0,a.KJ)(o)}.visuallyComplete.maxAttempt`,{tags:{totalImageCount:n,incompleteCount:c,noTimingCount:d,noTimingResponseEndCount:h}}),i("visuallyComplete_timingTimeout"),y({status:"DISABLED"})):y({...v,failedCount:v.failedCount+1});else{if(p(`All ${r.length} images are fetched`),t&&t.length){const e=((e,t)=>{let n=0,i=0,o=0,r=0,a=0;return e=e.filter((e=>"pin"===e.type)),t.forEach(((t,s)=>{var l,c,d,u,p,h;const _=t.fileName.split(".")[0];let m;m=e[s],_!==(null===(l=m)||void 0===l?void 0:l.image_signature)&&(m=e.find((e=>_===(null==e?void 0:e.image_signature)))),void 0===m?a+=1:m.is_promoted||"PROMOTED_PIN"===(null===(c=m.recommendation_reason)||void 0===c?void 0:c.reason)||null!==(d=m)&&void 0!==d&&null!==(u=d.promoter)&&void 0!==u&&u.length?o+=1:null!==m.story_pin_data_id&&void 0!==m.story_pin_data_id?n+=1:null!==(p=m)&&void 0!==p&&null!==(h=p.videos)&&void 0!==h&&h.video_list?i+=1:r+=1})),{storyPinCount:n,videoCount:i,adCount:o,imageCount:r,unknownCount:a}})(t,v.pinElements);Object.entries(e).forEach((([e,t])=>{m.addBinaryAnnotation(e,t,"I16")})),(0,l.A9)(`${(0,a.KJ)(o)}.pinTypes`,{tags:e})}g({imageTimings:r}),y({status:"DISABLED"}),(0,l.A9)(`images.${(0,a.KJ)(o)}.visuallyComplete.complete`,{tags:{totalImageCount:n,noTimingCount:d}})}break}}}),(e=>("LAYOUT"===e.status?500:"TIMING"===e.status&&100)||null)(v))}},790348:(e,t,n)=>{n.d(t,{A9:()=>p,DG:()=>d,H:()=>h,S$:()=>_,iF:()=>u});var i=n(172071),o=n(383434),r=n(50286),a=n(7789);const s=(0,o.X)("logPwtStats");let l=null,c=!0;function d(e){l={browserName:e.userAgent.browserName,browserVersion:e.userAgent.browserVersion,deviceType:(0,r.Mq)(e),isAuthenticated:e.isAuthenticated,isBot:e.isBot,isSocialBot:e.isSocialBot}}const u=e=>{l&&(l.historyAction=e)},p=(e,t={sampleRate:1},n=!0)=>{const o=a.DQ?1:t.sampleRate;if(!l)return s("pwt.metrics_quality.no_context"),void i.Z.increment("pwt.metrics_quality.no_context",o,{eventName:e});const{browserName:r,browserVersion:c,deviceType:d,isBot:u,isSocialBot:p}=l,h=`pwt.${(p?"socialBot":u&&"bot")||"nonbot"}.metrics_quality.${d}.${e}`,_={...t.tags||{},browserName:r,browserVersion:(null==c?void 0:c.split(".")[0])||"0"},m=t.count;n&&(s(`${h}: ${"number"==typeof m?m:1}`),t.tags&&s(Object.entries(t.tags))),a.is||i.Z.count(h,"number"==typeof m?m:1,o,_)},h=(e,t)=>p(`ERROR.${null!=t&&t.action?t.action+".":""}${e}`,{tags:t}),_=({appLoadName:e,clientNavName:t},n)=>{if(l){const i="APP_VOLUME.";c?(p(i.concat(e),{tags:{browserSupportsPwtProfiler:!!n}}),c=!1):"PUSH"===l.historyAction&&p(i.concat(t),{tags:{browserSupportsPwtProfiler:!!n}})}else i.Z.increment("pwt.metrics_quality.no_context",1,{eventName:e.concat(`.${t}`)})}},543059:(e,t,n)=>{n.d(t,{Ao:()=>l,BA:()=>c,L8:()=>u,ZP:()=>p,at:()=>o,gQ:()=>s,tl:()=>d});var i=n(985271);const o="masonryPagination";let r={};const a=e=>`📌 ${e}`,s=()=>{const e={};return Object.keys(r).forEach((t=>{(r[t]||[]).slice(0,3).forEach(((n,i)=>{e[i?`${t}_${i+1}`:t]=n}))})),e},l=(e,t)=>(r[e]||[]).filter((e=>e<t)).length,c=(e,t)=>l(e,t)>0,d=()=>{i.Z&&Object.keys(r).forEach((e=>((e,t)=>{const n=a(t);e.clearMarks(n),e.clearMeasures(n)})(i.Z,e))),r={}},u=e=>{i.Z&&(r[e]=(r[e]||[]).concat([i.Z.now()]),((e,t,n,i)=>{const o=a(t);e.measure(o,n,i)})(i.Z,e))},p=e=>{i.Z&&(r[e]=(r[e]||[]).concat([i.Z.now()]),((e,t)=>{const n=a(t);e.mark(n)})(i.Z,e))}},528961:(e,t,n)=>{n.d(t,{cC:()=>r,jy:()=>o,qr:()=>s,sk:()=>a});const i=e=>"number"==typeof e?Math.round(e):e,o=e=>({type:"I16",value:i(e)}),r=e=>({type:"I32",value:i(e)}),a=e=>({type:"STRING",value:e}),s=e=>({type:"BOOL",value:e})},607150:(e,t,n)=>{n.d(t,{D3:()=>r,Hd:()=>l,jh:()=>s,rX:()=>a});var i=n(672115),o=n(156381);const r=e=>({...(0,i.Z)(e),domComplete:e.domComplete||0,domContentLoadedEventEnd:e.domContentLoadedEventEnd||0,domContentLoadedEventStart:e.domContentLoadedEventStart||0,domInteractive:e.domInteractive||0,loadEventEnd:e.loadEventEnd||0,loadEventStart:e.loadEventStart||0}),a=()=>{const{firstInputDelay:e,largestContentfulPaint:t}=(0,o.v2)();return{firstInputDelayStart:(null==e?void 0:e.startTime)||0,firstInputDelayEnd:(null==e?void 0:e.endTime)||0,largestContentfulPaint:t||0}},s=(e,t)=>Object.keys(t).reduce(((n,i)=>({...n,[`${e}${i}`]:t[i]})),{}),l=(e,t)=>Object.keys(e).reduce(((n,i)=>t.includes(i)?{...n,[i]:e[i]}:n),Object.freeze({}))},638089:(e,t,n)=>{n.d(t,{ng:()=>g,rA:()=>y});var i=n(602738),o=n(226464),r=n(22773),a=n(156381),s=n(543059),l=n(528961);const c=(e,t)=>(e||[]).reduce(((e,n)=>({...e,[`experiment.${n}`]:(0,l.sk)(t(n))})),{}),d=(e,t)=>"number"==typeof t?e(t):null,u=e=>e.reduce(((e,t)=>e+t),0),p=(e,t)=>Object.keys(t).reduce(((n,i)=>({...n,[`${e}${i}`]:t[i]})),{}),h=e=>{if(!e.length)return{};const t=e.map((({startTime:e,requestStart:t,responseStart:n,responseEnd:i})=>{const o=t||e;return{startTime:e,requestStart:o,responseStart:n||o,responseEnd:i}})),n=u(t.map((e=>e.requestStart-e.startTime))),i=u(t.map((e=>e.responseStart-e.requestStart))),o=u(t.map((e=>e.responseEnd-e.responseStart))),r=n+i+o,a=u(e.map((e=>e.decodedBodySize||0)));return{decodedBodySize:(0,l.cC)((s=a,Number(Number(s/1024).toFixed(3)))),"duration.all":(0,l.cC)(r),"duration.requestStartToResponseStart":(0,l.cC)(i),"duration.responseStartToResponseEnd":(0,l.cC)(o),"duration.startToRequestStart":(0,l.cC)(n)};var s},_=e=>{const t=e.filter((e=>!!e.responseEnd));return{...e.length?{...h(t),"count.completed":(0,l.cC)(t.length)}:{},"count.all":(0,l.cC)(e.length)}},m=e=>{const t=["timeSecond1","timeSecond2","timeSecond3"],n={timeSecond1:{start:0,end:0,count:0},timeSecond2:{start:0,end:0,count:0},timeSecond3:{start:0,end:0,count:0}},i={script_deferred:[],external:[],visually_complete:[],script:[],css:[],video:[],image:[],xmlhttprequest:[],other:[]};if(e.length){const{requestStart:o,startTime:r}=e[0].timing,a=o||r;n.timeSecond1.start=a,n.timeSecond1.end=a+1e3,n.timeSecond2.start=a+1e3,n.timeSecond2.end=a+2e3,n.timeSecond3.start=a+2e3,n.timeSecond3.end=a+3e3,e.forEach((e=>{const{timing:o}=e;i[e.category]=i[e.category].concat([o]),e.isDeferred&&(i.script_deferred=i.script_deferred.concat([o])),e.isExternal&&(i.external=i.external.concat([o])),e.isVisuallyCompleteRequired&&(i.visually_complete=i.visually_complete.concat([o]));const{requestStart:r,startTime:a,responseEnd:s}=o,l=r||a;t.forEach((e=>{const{start:t,end:i}=n[e];(l>=t&&l<i||l<t&&s>t)&&(n[e].count+=1)}))}))}const o={...p("concurrentRequests.",Object.keys(n).reduce(((e,t)=>e={...e,[t]:(0,l.cC)(n[t].count)}),{}))};return{...Object.keys(i).reduce(((e,t)=>({...e,...p(`resource.${t}.`,_(i[t]))})),o)}},f=(e,t,n)=>{var a;const{devicePixelRatio:s,navigator:c,innerWidth:u,innerHeight:p,performance:h}=window,{deviceMemory:_,hardwareConcurrency:m,platform:f,userAgent:g,connection:v}=c,{memory:y}=h,{appType:b,appVersion:x,browserName:P,browserVersion:w,deviceType:S,isAppShell:E,isAuthenticated:A,isBot:T,isSocialBot:I,locale:C,osName:R,stageName:k}=t,O="desktop"===S?b||5:b||6;let D;const{navigationType:j}=e;let N=null;if("initial_app_load"===j){var L;D=1;const e=null===(L=(0,i.Z)("navigation")[0])||void 0===L?void 0:L.transferSize;N=e?parseFloat((.001*e).toFixed(1)):null}else D=4;return{"app.type":(0,l.jy)(O),"app.version":(0,l.sk)(x),"browser.name":(0,l.sk)(P),"browser.version":(0,l.sk)(w),"cpu.speed":(0,l.jy)(m),"device.memory":(0,l.jy)(_),"device.type":(0,l.jy)(0),"device.typeName":(0,l.sk)(S),"device.version":(0,l.sk)("unknown"),"pwt.cause":(0,l.jy)(D),"net.effectiveType":(0,l.sk)((null==v?void 0:v.effectiveType)||null),"net.downlink":(0,l.cC)(d((e=>10*Math.round(e/10)),null==v?void 0:v.downlink)),"net.downlinkMax":(0,l.cC)(d((e=>10*Math.round(e/10)),null==v?void 0:v.downlinkMax)),"net.rtt":(0,l.cC)(d((e=>10*Math.round(e/10)),null==v?void 0:v.rtt)),"net.speed":(0,l.cC)((0,r.Hv)(n,!1)),"pwt.result":(0,l.jy)(1),"view.type":(0,l.cC)(0),"viewport.height":(0,l.cC)(p||0),"viewport.width":(0,l.cC)(u||0),devicePixelRatio:(0,l.cC)(s||0),isAppShell:(0,l.qr)(E),isAuthenticated:(0,l.qr)(A),isBot:(0,l.qr)(T),isSocialBot:(0,l.qr)(I),locale:(0,l.sk)(C),osName:(0,l.sk)(R),...null!==N&&{htmlResponseSize:(0,l.cC)(N)},nextHopProtocol:(0,l.sk)((null===(a=(0,i.Z)("navigation")[0])||void 0===a?void 0:a.nextHopProtocol)||null),platform:(0,l.sk)(f||null),profilerVersion:(0,l.sk)("3"),pwtActionName:(0,l.jy)((0,o.Rp)(e)),stageName:(0,l.sk)(k),userAgent:(0,l.sk)(g),usedJSHeapSize:(0,l.cC)((null==y?void 0:y.usedJSHeapSize)||0),totalJSHeapSize:(0,l.cC)((null==y?void 0:y.totalJSHeapSize)||0),jsHeapSizeLimit:(0,l.cC)((null==y?void 0:y.jsHeapSizeLimit)||0)}},g=({annotateExperiments:e,metricId:t,pwtStaticContext:n,binaryAnnotations:i={},performanceResourceTimings:o=[]})=>({...c(e,n.getExperimentGroup),...f(t,n,o),...i,stopwatchVersion:(0,l.jy)(1)}),v=(e,t)=>{var n;const{navigator:i}=window,{serviceWorker:o}=i,{surface:r,navigationType:c,isAuthenticated:d}=e,{cumulativeLayoutShiftScore:p,longTaskDurations:h}=(0,a.v2)();return{...h.length?{"longTask.count":(0,l.cC)(h.length),"longTask.maxDuration":(0,l.cC)(Math.max(...h)),"longTask.totalDuration":(0,l.cC)(u(h))}:{},cumulativeLayoutShiftScore:(0,l.cC)(100*p),"masonry.paginationMarkCount":(0,l.cC)((0,s.Ao)(s.at,t)),"metricId.isAuthenticated":(0,l.qr)(d),"metricId.navigationType":(0,l.sk)(c),"metricId.surface":(0,l.sk)(r),resourceBufferClearedCount:(0,l.jy)((0,s.Ao)("resourceBufferCleared",t)),scrollDuringLayout:(0,l.qr)((0,s.BA)("scrollDuringLayout",t)),serviceWorker:(0,l.qr)(o?!!o.controller:null),serviceWorkerState:(0,l.sk)((null==o||null===(n=o.controller)||void 0===n?void 0:n.state)||null)}},y=({annotateExperiments:e,binaryAnnotations:t={},entries:n,metricId:i,performanceResources:o,pwtEndTime:r,pwtStaticContext:a})=>({...t,...m(o),...c(e,a.getExperimentGroup),...f(i,a,n),...v(i,r)})},860273:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(985271);const o=()=>{const[e]=i.Z?i.Z.getEntriesByType("navigation"):[];return e}},453821:(e,t,n)=>{n.d(t,{i:()=>i,p:()=>a});const i=({name:e,initiatorType:t})=>{switch(t){case"xmlhttprequest":return"xmlhttprequest";case"img":return"image";case"video":return"video";default:{const t=e.split("."),n=(t.length>1&&t.pop()||"").toLowerCase();return["js","mjs"].includes(n)?"script":"css"===n?"css":["mp4","m4v","mov","ts","m3u8"].includes(n)?"video":["bmp","gif","jpg","jpeg","png","tiff","webp","svg"].includes(n)?"image":"other"}}},o=e=>{const t=e.replace(new RegExp(`^${window.location.origin||""}`),""),n=document&&document.querySelector(`head > script[src='${t}']`);return!!n&&n.hasAttribute("defer")},r=e=>["pinimg","pinterest","pinterdev"].every((t=>!e.includes(`${t}`))),a=(e,t)=>{const n=i(e),{name:a}=e;return{category:n,isDeferred:"script"===n&&o(a),isExternal:r(a),isVisuallyCompleteRequired:"image"===n&&t.includes(a),timing:e}}},558775:(e,t,n)=>{n.d(t,{Z:()=>x});let i=null;const o=(e,t)=>(i=i||{results:[],context:t},i.results.push(e),i);var r=n(176532),a=n(7789),s=n(383434),l=n(226464),c=n(790348),d=n(860273),u=n(358864),p=n(602738),h=n(528961);const _=(e,t)=>Object.keys(e).reduce(((n,i)=>{const o=e[i];return o?{...n,[i]:{timestamp:t+o}}:n}),{}),m=({span:e,timeOrigin:t})=>{return{id:e.id,parent_id:e.parentId||null,result:1,name:e.name,timestamp:t+e.startTime,duration:e.endTime-e.startTime,annotations:_(e.annotationMap,t),binary_annotations:(n=e.binaryAnnotationMap,Object.keys(n).reduce(((e,t)=>{const i=n[t];if(!i)return e;const{value:o,type:r}=i;return null==o?e:e.concat({name:t,value:o,annotation_type:r})}),[]))};var n},f=(e,{startTime:t,endTime:n,annotationMap:i,binaryAnnotationMap:o,parentId:r,traceId:a})=>({name:`pwt/${e}`,startTime:t,endTime:n,annotationMap:i,binaryAnnotationMap:o,parentId:r,id:a}),g=({annotations:e})=>e.reduce(((e,{key:t,timestamp:n})=>({...e,[`server_${t}`]:{timestamp:n}})),{}),v=(e,t)=>({...e,annotations:{...g(t),...e.annotations},binary_annotations:[...t.binary_annotations,...e.binary_annotations]}),y=({traceId:e,actionName:t,result:n,timeOrigin:i,serverDataToJoin:o})=>{let r=m({span:f(t,n),timeOrigin:i}),a=null;return o&&(r=v(r,o),a=((e,t,n)=>{var i;const o=(0,d.Z)();return(null==o?void 0:o.responseEnd)?v(m({span:{name:"html",startTime:0,endTime:(null==o?void 0:o.responseEnd)||1,annotationMap:{},binaryAnnotationMap:{nextHopProtocol:(0,h.sk)((null===(i=(0,p.Z)("navigation")[0])||void 0===i?void 0:i.nextHopProtocol)||null)},id:e.server_span_id||(0,u.Z)(),parentId:t},timeOrigin:n}),e):null})(o,e,i)),{trace_id:e,spans:[r,...a?[a]:[],...n.spans.map((e=>m({span:e,timeOrigin:i})))]}},b=(0,s.X)("reportResult");function x({metricId:e,pwtStaticContext:t,result:n,isAuth:i}){const{serverData:s}=t,d=(0,l.KJ)(e),u=`${n.type}.${d}`,p=`${n.type}.sampled.${d}`,h=void 0!==i&&{tags:{isAuth:i}}||void 0;if((0,c.A9)(n.reason?u.concat(`.${n.reason}`):u,h),(0,c.A9)(n.reason?p.concat(`.${n.reason}`):p,{...h,sampleRate:.5}),"COMPLETE"!==n.type)return void b(`Abort metric ${d}`,n);const _=null!==(m=window.performance)&&void 0!==m&&m.now?Date.now()-window.performance.now():"unknown";var m,f;if("unknown"===_)return b(`Unable to convert to absolute times for ${d} due to missing time origin`),void(0,c.A9)(`missingTimeOrigin.${d}`,h);if(a.is&&(window.PWT_LAB_DATA=o(n,t)),n.spans.length&&(n.spans=n.spans.map((e=>(e.parentId||e.id===n.traceId||"network_resources"===e.name||(e.parentId=n.traceId),e)))),!a.is){const i=e.navigationType&&"initial_app_load"===e.navigationType,o=n.traceId,l=y({traceId:o,actionName:d,result:n,timeOrigin:_,serverDataToJoin:i&&s||null});(0,r.Z)({type:"POST",url:"/_/_/trace/trace/",data:{report_data:JSON.stringify(l),report_context:JSON.stringify((f=t,{debugTrace:a.eD,locale:f.locale,stageName:f.stageName}))}}),b(`PinTrace ${d} will be available shortly: https://pintrace.pinadmin.com/zipkin/traces/${o.toString(16)}`,{duration:n.endTime-n.startTime,result:n,pwtStaticContext:t})}}},672115:(e,t,n)=>{n.d(t,{Z:()=>i});const i=e=>({connectEnd:e.connectEnd||0,connectStart:e.connectStart||0,domainLookupEnd:e.domainLookupEnd||0,domainLookupStart:e.domainLookupStart||0,fetchStart:e.fetchStart||0,requestStart:e.requestStart||0,redirectEnd:e.redirectEnd||0,redirectStart:e.redirectStart||0,responseEnd:e.responseEnd||0,responseStart:e.responseStart||0,secureConnectionStart:e.secureConnectionStart||0,startTime:e.startTime||0,workerStart:e.workerStart||0,unloadEventStart:e.unloadEventStart||0,unloadEventEnd:e.unloadEventEnd||0})},505771:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(358864),o=n(672115),r=n(528961);const a=({category:e,isDeferred:t,isExternal:n})=>[e].concat(t?["deferred"]:[]).concat(n?["external"]:[]).join("_");function s(e,t){const{category:n,timing:s,isDeferred:l,isExternal:c,isVisuallyCompleteRequired:d}=e;return s.responseEnd&&("image"!==n||d)?{name:a(e),id:(0,i.Z)(),parentId:t,startTime:s.startTime,endTime:s.responseEnd,annotationMap:(0,o.Z)(s),binaryAnnotationMap:{category:(0,r.sk)(n),decodedBodySize:(0,r.cC)(s.decodedBodySize||0),initiatorType:(0,r.sk)(s.initiatorType),isDeferred:(0,r.qr)(l),isExternal:(0,r.qr)(c),name:(0,r.sk)(s.name),nextHopProtocol:(0,r.sk)(s.nextHopProtocol),transferSize:(0,r.cC)(s.transferSize||0)}}:null}},31062:(e,t,n)=>{n.d(t,{ku:()=>E,Jx:()=>P,PY:()=>S});var i=n(860273),o=n(156381);const r=()=>(0,o.PJ)().reduce(((e,{identifier:t,loadTime:n,renderTime:i})=>e[`${t}_loadTime`]?e[`${t}_dupe_loadTime`]?{...e,[`${t}_dupe_loadTime`]:n,[`${t}_dupe_renderTime`]:i}:e:{...e,[`${t}_loadTime`]:n,[`${t}_renderTime`]:i}),Object.freeze({}));var a=n(672115),s=n(607150),l=n(22773),c=n(464609);const d=e=>{switch(e){case"pin_closeup":{const e=(0,c.Z)();return(e=>{const t=(0,l.y0)();return e.reduce(((e,{name:n,match:i})=>t.filter((e=>i(e))).slice(0,2).reduce(((e,t,i)=>({...e,...(0,s.jh)(`${n}${i?"_dupe1":""}_`,(0,a.Z)(t))})),e)),Object.freeze({}))})([{name:"mainImage",match:({name:t})=>t===e},{name:"PinResource",match:({name:e})=>e.includes("PinResource")}])}default:return{}}};var u=n(169213),p=n(358864),h=n(558775),_=n(505771),m=n(383434),f=n(543059),g=n(453821),v=n(638089),y=n(790348);const b=(0,m.X)("LightStopwatch"),x={},P=({annotateExperiments:e,annotateMarks:t,annotateResourceTimingForSurface:n,name:o,pwtStaticContext:a})=>{const l=(()=>{let e=[],t=null;if(window.PerformanceObserver){const n=1e3;t=(0,u.Z)({entryTypes:["resource"]},(t=>{e=e.concat(t.getEntries()),e.length>n&&(e=e.slice(-n))}))}return{get:()=>e,disconnect:()=>{t&&t.disconnect()}}})();let c=!0,m={};(0,y.A9)(`TIMING.${o}`,{tags:{isAuth:a.isAuthenticated}});const P={type:"stopwatch",name:o,navigationType:"initial_app_load"},w={abort:e=>{c?(c=!1,(0,h.Z)({metricId:P,pwtStaticContext:a,result:{type:"ABORT",reason:e}})):(0,y.H)("duplicate_abort_action",{action:o})},error:(e,t)=>{const n={...t,action:o};c?(e&&(0,y.H)(e,n),l&&l.disconnect(),c=!1):(0,y.H)("duplicate_error_action",n)},stop:u=>{if(!c)return void(0,y.H)("duplicate_stop_action",{action:o});c=!1,l.disconnect();const b=(0,p.Z)(),x=(0,i.Z)(),w=l.get(),S={type:"COMPLETE",traceId:(0,p.Z)(),startTime:0,endTime:u,spans:[{name:"network_resources",id:b,startTime:0,endTime:u,annotationMap:{},binaryAnnotationMap:{},parentId:null},...w.map((e=>(0,_.Z)((0,g.p)(e,[]),b))).filter(Boolean)],annotationMap:{...(0,s.jh)("resource_",n?d(n):{}),...(0,s.jh)("element_",r()),...(0,s.jh)("mark_",t&&t.length?(0,s.Hd)((0,f.gQ)(),t):{}),...(0,s.jh)("browser_",x?(0,s.D3)(x):{})},binaryAnnotationMap:(0,v.ng)({annotateExperiments:e,metricId:P,pwtStaticContext:a,performanceResourceTimings:w,binaryAnnotations:m})};(0,h.Z)({metricId:P,pwtStaticContext:a,result:S,isAuth:a.isAuthenticated})},addBinaryAnnotation:(e,t,n)=>{b(`adding binary annotation {${e}: ${String(t)}}`),m={...m,[e]:{value:t,type:n}}}};return x[o]=w,w},w=e=>x[e],S=e=>!!w(e),E=({stopwatchName:e,binaryAnnotationName:t,value:n,annotationType:i})=>{const o=w(e);o&&o.addBinaryAnnotation(t,n,i)}},156381:(e,t,n)=>{n.d(t,{Af:()=>f,Bn:()=>_,Kj:()=>p,PJ:()=>l,UQ:()=>g,Ux:()=>c,on:()=>a,v2:()=>d});var i=n(581341),o=n(169213);const r={cumulativeLayoutShiftScore:0,firstInputDelay:null,longTaskDurations:[],largestContentfulPaint:null,elementTimings:[]},a=()=>{r.longTaskDurations=[]},s=(0,i.Z)((()=>r.elementTimings)),l=()=>s.get(),c=e=>{e&&s.save(),r.elementTimings=[]},d=()=>r;let u=0;const p=()=>u;let h;const _=()=>h;let m;const f=()=>m,g=()=>{(0,o.Z)({type:"element",buffered:!0},(e=>{r.elementTimings=r.elementTimings.concat(e.getEntries().reduce(((e,{identifier:t,loadTime:n,renderTime:i})=>e.concat("string"==typeof t&&"number"==typeof n&&"number"==typeof i?[{identifier:t,loadTime:n,renderTime:i}]:[])),[]))})),(0,o.Z)({entryTypes:["longtask"]},(e=>{e.getEntries().map((e=>r.longTaskDurations.push(e.duration)))}),(()=>a())),(0,o.Z)({type:"first-input",buffered:!0},((e,t)=>{const n=e.getEntries()[0];n&&n.startTime&&n.processingStart&&(r.firstInputDelay={startTime:n.startTime,endTime:n.processingStart},m=r.firstInputDelay.startTime),t.disconnect()}),(()=>{r.firstInputDelay=null})),(0,o.Z)({type:"largest-contentful-paint",buffered:!0},(e=>{const t=e.getEntries(),n=t.length,i=t[n-1];i&&(u=n,r.largestContentfulPaint=i.renderTime||i.loadTime||null,h=i.renderTime||i.loadTime||null)})),(0,o.Z)({type:"layout-shift",buffered:!0},(e=>{e.getEntries().forEach((e=>{e.hadRecentInput||(r.cumulativeLayoutShiftScore+=e.value)}))}))}},311560:(e,t,n)=>{n.d(t,{Z:()=>i});const i=e=>{switch(e){case"BR":case"MX":case"AR":case"CL":case"CO":return"LatAm";case"US":return"US";default:return"OTHER"}}},581341:(e,t,n)=>{n.d(t,{Z:()=>i});const i=e=>{let t=null;return{get:()=>t||e(),save:()=>{t=e()}}}},435851:(e,t,n)=>{n.d(t,{Z:()=>i});const i=e=>{const{deviceType:t,isBot:n,isSocialBot:i}=e;return`coreWebVitalsLite.v1.${(i?"socialBot":n&&"bot")||"nonbot"}.${t}`}},169213:(e,t,n)=>{n.d(t,{Z:()=>i});const i=(e,t,n)=>{if(!window.PerformanceObserver)return null;try{const i=new window.PerformanceObserver(t);return i.observe(e),window.addEventListener("beforeunload",(()=>{i.disconnect()})),n&&window.addEventListener("popstate",(()=>{n()})),i}catch(i){return null}}},464609:(e,t,n)=>{n.d(t,{Z:()=>o,f:()=>i});const i="closeupImage",o=()=>{if(!document.querySelector)return null;const e=document.querySelector('head>link[rel="preload"][as="image"][href^="https://i.pinimg.com/"]');return e instanceof HTMLLinkElement?e.href:null}},358864:(e,t,n)=>{function i(){let e="";for(let t=0;t<15;t+=1){e+="0123456789"[Math.floor(10*Math.random())]}return Number(e)}n.d(t,{Z:()=>i})},22773:(e,t,n)=>{n.d(t,{Cg:()=>m,Eg:()=>g,Hv:()=>y,LH:()=>v,MM:()=>b,X_:()=>p,y0:()=>f});var i=n(581341),o=n(169213),r=n(543059),a=n(602738),s=n(7789),l=n(453821),c=n(790348);let d;function u(){window.performance&&window.performance.clearResourceTimings&&((0,r.ZP)("resourceBufferCleared"),s.DQ&&console.info("Warning: Clearing resource timings in default buffer."),(0,c.A9)("resourceBufferSize",{count:(0,a.Z)("resource").length}),window.performance.clearResourceTimings())}const p=({size:e})=>{if(window.performance){window.PerformanceObserver?(d=(0,a.Z)("resource"),(0,o.Z)({entryTypes:["resource"]},(t=>{d=(d||[]).concat(t.getEntries()),d.length>e&&(d=d.slice(-e))}))):(window.addEventListener("popstate",(()=>{(0,a.Z)("resource").length>e&&u()})),window.performance.setResourceTimingBufferSize&&window.performance.setResourceTimingBufferSize(e));try{window.performance.onresourcetimingbufferfull=()=>{d||u()}}catch(t){}}},h=()=>d||(0,a.Z)("resource"),_=(0,i.Z)(h),m=h,f=()=>_.get(),g=e=>{e&&_.save(),d&&((0,c.A9)("customBufferSize",{count:d.length}),d=[]),u()},v=()=>({customBufferSize:d?d.length:0,defaultBufferSize:(0,a.Z)("resource").length}),y=(e,t=!0)=>{let n=0,i=0;const o=(r=e.filter((e=>t?!("image"!==(0,l.i)(e)||(e.responseEnd||(n+=1),e.transferSize||(i+=1),!e.responseEnd||!e.transferSize)):!!e.responseEnd&&!!e.transferSize)).map((e=>8*(e.transferSize||0)/((e.responseEnd-e.responseStart)/1e3)/1e3))).length?r.reduce(((e,t)=>e+t),0)/r.length:null;var r;return t&&(n>0&&(0,c.A9)("images.downloadSpeed.noResponseEnd",{tags:{count:n}},!1),i>0&&(0,c.A9)("images.downloadSpeed.transferSize",{tags:{count:i}},!1)),o},b=e=>{if(!e)return"unknown";const t=Math.floor(e/1e3);return t<1?"0-1":t<5?"1-5":t<10?"5-10":t<20?"10-20":t<40?"20-40":t<80?"40-80":"80_or_above"}},602738:(e,t,n)=>{function i(e){var t,n;return(null===(t=window)||void 0===t||null===(n=t.performance)||void 0===n?void 0:n.getEntriesByType)&&window.performance.getEntriesByType(e)||[]}n.d(t,{Z:()=>i})},985271:(e,t,n)=>{n.d(t,{Z:()=>i});const i=(o=window.performance)&&o.clearMarks&&o.clearMeasures&&o.clearResourceTimings&&o.getEntries&&o.getEntriesByName&&o.getEntriesByType&&o.mark&&o.measure&&o.now&&o.setResourceTimingBufferSize?o:null;var o},681227:(e,t,n)=>{function i(e){const t=Object.keys(e);if(t.length>0){return t.sort(((t,n)=>e[n]-e[t])).slice(0,3)}return null}function o(e){const t=Object.values(e);if(t.length>0){return t.reduce(((e,t)=>e+t),0)}return 0}function r(e,t){const{videos:n,is_downstream_promotion:i,is_promoted:o,story_pin_data_id:r,board:a}=e;return!(o||i||(!n||!n.id)&&!r||t||null!=a&&a.is_collaborative&&a.collaborated_by_me)}n.d(t,{At:()=>i,J6:()=>r,Ud:()=>o})},561195:(e,t,n)=>{n.d(t,{A:()=>l,Z:()=>c});var i=n(667294),o=n(498913),r=n.n(o),a=n(883119),s=n(785893);const l=({fill:e,width:t,color:n})=>{const o="half"===e?(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(a.xu,{position:"absolute",children:(0,s.jsx)(a.JO,{accessibilityLabel:"",color:"default",icon:"star-half",size:12})}),(0,s.jsx)(a.JO,{accessibilityLabel:"",color:"subtle",icon:"star",size:12})]}):(0,s.jsx)(a.JO,{accessibilityLabel:"",color:"full"===e?"default":"subtle",icon:"star",size:12});return(0,s.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{marginRight:"3px"}},display:"inlineBlock","data-test-id":`rating-star-${e}`,children:o})};function c({max_rating:e,rating:t,width:n,color:o}){const a=[],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 r()(d,(e=>a.push((0,s.jsx)(l,{color:o,fill:"full",width:n},e)))),u>=.75?a.push((0,s.jsx)(l,{color:o,fill:"full",width:n},a.length)):u>=.25&&a.push((0,s.jsx)(l,{color:o,fill:"half",width:n},a.length)),r()(5-a.length,(()=>a.push((0,s.jsx)(l,{color:o,fill:"empty",width:n},a.length)))),(0,s.jsx)(i.Fragment,{children:a})}},886858:(e,t,n)=>{n.d(t,{Z:()=>a,k:()=>r});const i=new Set(["bookmarks","client_tracking_params","get_page_metadata","in_nux","invite_code","original_referrer","source","top_level_source","top_level_source_depth"]),o=e=>!i.has(e)&&!e.startsWith("__track__");function r(e){return e.split(/([^=]+=[^=]+),/).filter(Boolean).reduce(((e,t)=>{const[n,i]=t.split("=");return e[n]=JSON.parse(i),e}),{})}const a=e=>e?Object.keys("object"==typeof e&&e||{}).filter((e=>"string"==typeof e)).filter(o).sort().map((t=>`${t}=${JSON.stringify(null==e[t]?null:e[t])}`)).join(","):""},932995:(e,t,n)=>{function i(e,t,n){const i=[...e],o=i.splice(t,1)[0];return i.splice(n,0,o),i}n.d(t,{Z:()=>i})},505920:(e,t,n)=>{n.d(t,{UZ:()=>u,Z8:()=>p,my:()=>h});var i=n(667294),o=(n(702664),n(6637)),r=n(425288),a=n(785893);function s(e,t,n){var i;const o=[...null!==(i=t[e][n.payload.name])&&void 0!==i?i:[],n.payload.handler],r={...t};return r[e]={...t[e],[n.payload.name]:o},r}function l(e,t,n){if(!t[e][n.payload.name])return t;const i=t[e][n.payload.name].filter((e=>e!==n.payload.handler)),o={...t};return o[e]={...t[e],[n.payload.name]:i},o}const{Provider:c,useHook:d}=(0,r.Z)("ResourceContext");function u({children:e}){const[{listeners:t,moreListeners:n},r]=(0,i.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:{}});o.Z.fetchCompleteCallback=({resource:e,options:n,response:i,normalizedResponse:o,refresh:r,resourceSchema:a})=>{t[e]&&t[e].forEach((t=>t({isRefresh:r,normalizedResponse:o,options:n,schema:a,resource:e,response:i})))},o.Z.fetchMoreCompleteCallback=({resource:e,options:t,response:i,normalizedResponse:o,refresh:r,resourceSchema:a})=>{n[e]&&n[e].forEach((n=>n({isRefresh:r,normalizedResponse:o,options:t,schema:a,resource:e,response:i})))};const d=(0,i.useMemo)((()=>({listenerDispatch:r})),[]);return(0,a.jsx)(c,{value:d,children:e})}function p(e,t){const{listenerDispatch:n}=d();(0,i.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,i.useEffect)((()=>(n({type:"addMoreListener",payload:{name:e,handler:t}}),()=>{n({type:"removeMoreListener",payload:{name:e,handler:t}})})))}},379725:(e,t,n)=>{n.d(t,{U:()=>l,b:()=>c});var i=n(886858),o=n(6637),r=n(414327),a=n(718368);function s({fetchOptions:e,resource:t,retry:n}){return(l,c)=>{var d,u,p;const{bookmark:h,headers:_,options:m,refresh:f,schema:g}=e,v=(0,i.Z)(m);if(null!==(d=c().resources)&&void 0!==d&&null!==(u=d[t])&&void 0!==u&&null!==(p=u[v])&&void 0!==p&&p.fetching&&!n)return Promise.resolve();const y=n?n.bookmark:h,b=y?{...m,bookmarks:[y]}:m;return l((0,r.LQ)(t,m,!0)),o.Z.create(t,b).callGet(void 0,_).then((i=>{var c,d,u;const p=null===(c=i.resource_response)||void 0===c?void 0:c.data,[_]=i.bookmarks||[];if(Array.isArray(p)&&0===p.length&&_&&_!==a.q){const i=n?n.count:0;if(!(i>=a.s))return l(s({resource:t,fetchOptions:e,retry:{count:i+1,bookmark:_}}))}null===(d=o.Z.customDataManipulations)||void 0===d||d.call(o.Z,t,p);const{normalizedResponse:v,resourceSchema:y}=(null===(u=o.Z.normalizeResponse)||void 0===u?void 0:u.call(o.Z,{data:p,opts:{bookmark:h,options:m,schema:g},resource:t}))||{normalizedResponse:null,resourceSchema:void 0};return h?(l((0,r.Dm)(t,m,i,v,y)),o.Z.fetchMoreCompleteCallback&&o.Z.fetchMoreCompleteCallback({resource:t,options:m,response:i,normalizedResponse:v,refresh:f,resourceSchema:y})):(l((0,r.Sr)(t,m,i,v,f,y)),o.Z.fetchCompleteCallback&&o.Z.fetchCompleteCallback({resource:t,options:m,response:i,normalizedResponse:v,refresh:f,resourceSchema:y})),Promise.resolve()}),(e=>{l((0,r.Tl)(t,m,e))}))}}const l=(e,{bookmark:t,headers:n,options:i,schema:o})=>s({resource:e,fetchOptions:{bookmark:t,headers:n,options:i,refresh:!1,schema:o}}),c=(e,{headers:t,options:n,schema:i})=>s({resource:e,fetchOptions:{headers:t,options:n,refresh:!0,schema:i}})},718368:(e,t,n)=>{n.d(t,{q:()=>i,s:()=>o});const i="-end-",o=10},204088:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(704115),o=n(826067),r=n(314880);function a({experimentHash:e,windowIsInFocus:t}){try{const n={"X-Pinterest-AppState":t?"active":"background"};e&&(n["X-Pinterest-ExperimentHash"]=e);const a=(0,i.Z)();a.force_country&&(n["X-Force-Country"]=a.force_country);const s=(0,o.JJ)();if(s&&(n["X-Pinterest-Source-Url"]=s),"undefined"!=typeof window){const e=(0,r.H)();e&&(n["X-Pinterest-PWS-Handler"]=e)}return n}catch(n){return{}}}},338739:(e,t,n)=>{n.d(t,{AF:()=>i,KK:()=>o,aW:()=>s,cR:()=>r,se:()=>l,zP:()=>a});const i="CREATE_COMPLETE",o="FETCHING",r="FETCH_ERROR",a="FETCH_COMPLETE",s="FETCH_MORE_COMPLETE",l="RESOURCE_INVALIDATE"},414327:(e,t,n)=>{n.d(t,{Dm:()=>l,LQ:()=>r,Sr:()=>s,Tl:()=>a,XM:()=>o,jB:()=>c});var i=n(338739);function o(e,t,n,o){return{type:i.AF,payload:{resource:e,options:t,response:n,normalizedResponse:o}}}function r(e,t,n){return{type:i.KK,payload:{resource:e,options:t,isFetching:n}}}const a=(e,t,n)=>({type:i.cR,payload:{resource:e,options:t,error:n}});function s(e,t,n,o,r,a){return{type:i.zP,payload:{isRefresh:r,normalizedResponse:o,options:t,resource:e,response:n,schema:a}}}function l(e,t,n,o,r){return{type:i.aW,payload:{resource:e,options:t,response:n,normalizedResponse:o,schema:r}}}function c(e,t){return{type:i.se,payload:{resource:e,optionsOrOptionsKey:t}}}},784590:(e,t,n)=>{n.d(t,{Z:()=>u});var i=n(667294),o=n(702664),r=n(886858),a=n(718368),s=n(276775),l=n(780280),c=n(379725);const d={};function u(e){const{enabledRouteRefresh:t,__unstableEnableSuspenseSupport:n,headers:u,name:p,noCache:h,options:_,schema:m}=null!=e?e:{name:"DisabledResource",options:null},f=!e,g=(0,o.useDispatch)(),v=(0,r.Z)(_),y=(0,i.useRef)(null),b=(0,i.useRef)(),x=(0,s.useHistory)(),P=x&&"POP"!==x.action,w=e=>(e[p]||d)[v]||d,S=(0,o.useSelector)((({resources:e})=>w(e).nextBookmark)),E=(0,o.useSelector)((({resources:e})=>w(e).data)),A=(0,o.useSelector)((({resources:e})=>w(e).auxData)),T=(0,o.useSelector)((({resources:e})=>w(e).error)),I=(0,o.useSelector)((({resources:e})=>Boolean(w(e).fetching))),C=Boolean(T)||void 0!==E,R=C&&!I&&S===a.q,k=Boolean(C&&t&&P&&!f),[O,D]=(0,i.useState)(k),j=(0,i.useCallback)((e=>{y.current=g((0,c.U)(p,{options:_,schema:m,bookmark:e,headers:u}))}),[g,p,v,m,u]),N=()=>{y.current=g((0,c.b)(p,{options:_,schema:m,headers:u}))},{isBot:L}=(0,l.B)(),M=()=>{if(!f&&b.current!==v){const e=void 0===b.current;b.current=v,!C&&!I||e&&T&&(({httpStatus:e})=>!e||e>=500)(T)?j():(!L&&h||k)&&N()}};(0,i.useEffect)((()=>{n||M()})),n&&M();const z=(0,i.useCallback)((()=>{f||(N(),D(!0))}),[f,c.b,p,v,u,D]),B=(0,i.useCallback)((()=>{!S||R||I||f||j(S)}),[f,j,S,R,I]);if(y.current)if(C&&!I)y.current=null;else if(n)throw y.current;const Z=(0,i.useRef)({auxData:void 0,data:void 0,error:void 0,fetchMore:B,isAtEnd:!1,isFetching:!1,isLoaded:!1,isRefreshing:!1,nextBookmark:void 0,refresh:z}),F={auxData:A,data:E,error:T,fetchMore:B,isAtEnd:R,isFetching:I,isLoaded:C,isRefreshing:O,nextBookmark:S,refresh:z};return(0,o.shallowEqual)(F,Z.current)||(!O||!Z.current.data&&k||(0,o.shallowEqual)(F.data,Z.current.data)||(F.isRefreshing=!1,D(!1)),Z.current=F),Z.current}},817656:(e,t,n)=>{n.d(t,{AB:()=>i,Ej:()=>o,Sf:()=>r});const i=412,o=429,r=500},736688:(e,t,n)=>{n.d(t,{QO:()=>l,V3:()=>a,cO:()=>u,dn:()=>c,fP:()=>d,j1:()=>p,v_:()=>s});var i=n(841726),o=n(867820),r=n(623568);const a=e=>{const{thumbnail:t,url:n,width:i,height:o,duration:r}=e||{};return t&&n&&i&&o&&{thumbnail:t,url:n,width:i,height:o,duration:r}||void 0};function s(e,t){if(t&&t.products&&t.products[0]){const n=t.products[0],i=!(!n.name&&!e),r=!(!t.aggregate_rating||0===t.aggregate_rating.rating_count&&0===t.aggregate_rating.review_count||Number.isNaN(parseFloat(t.aggregate_rating.rating_value))),a=!(!n.offer_summary||!n.offer_summary.min_price&&!n.offer_summary.price),s=i&&(r||a);return(({isEligible:e,hasName:t,hasAggregateRating:n,hasOffers:i})=>{(0,o.My)("closeup_main_pin.leaf_snippet.is_product",{isEligible:e,hasName:t,hasAggregateRating:n,hasOffers:i})})({isEligible:s,hasName:i,hasAggregateRating:r,hasOffers:a}),s}return!1}const l=(e,{userName:t,fullName:n})=>{const i=t||"";return{"@type":"Person",name:n||i,url:e+"/"+i}};function c(e,t,n,o,r,a){n=n.trim();const s=(t=t.trim())||a||n||o,l=()=>t||r;if(!e||!e.metatags)return{title:s,description:n||l()};const{description:c=""}=e.metatags;var d;return{title:s,description:(d=c,(0,i.o)(d||"").trim())||l()}}const d=(e,t,n)=>{let i=t;return n?(i="recipe"===e?n.bt("Pinterest recipe", "Pinterest Recipe", "pin.closeup.leafsnippet.recipe", undefined, true):"howto"===e?n.bt("Pinterest how-to", "Pinterest How To", "pin.closeup.leafsnippet.howto", undefined, true):"video"===e?n.bt("Pinterest Video", "Pinterest Video", "pin.closeup.leafsnippet.video", undefined, true):"product"===e?n.bt("Pinterest product", "Pinterest Product", "pin.closeup.leafsnippet.product", undefined, true):n.bt("Pin page", "Pin page", "pin.closeup.leafsnippet.pin", undefined, true),{fallbackTitle:i,fallbackDescription:i}):{fallbackTitle:i,fallbackDescription:i}},u=e=>{if(!e)return;const t=e.rating_count,n=e.review_count;if(!(!!t||!!n)||Number.isNaN(parseFloat(e.rating_value)))return;const i=t||n;return{"@type":"AggregateRating",ratingValue:e.rating_value,ratingCount:i,bestRating:5,worstRating:1}},p=(e,t=!0)=>{var n,i,o,a;const s=!!(0,r.iR)(e.videos),l=t&&!!(0,r.cL)({embedSrc:null===(n=e.embed)||void 0===n?void 0:n.src,embedSubtype:null===(i=e.embed)||void 0===i?void 0:i.subtype,embedType:null===(o=e.embed)||void 0===o?void 0:o.type}),c=!(null===(a=e.story_pin_data)||void 0===a||!a.total_video_duration);return s||l||c}},995228:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(667294),o=n(966476),r=n(464228),a=n(785893);function s({children:e,fallback:t,dangerouslyServerRenderForGraphQL:n=!1}){const s=t||null,l=(0,o.Z)(),c=(0,r.P)();return c&&"legacy"!==c?n||l?(0,a.jsx)(i.Suspense,{fallback:s,children:e}):s:(0,a.jsx)(i.Suspense,{fallback:s,children:e})}},947599:(e,t,n)=>{n.d(t,{Z:()=>i});const i=n(995228).Z},909499:(e,t,n)=>{n.d(t,{Hd:()=>a,_R:()=>o,lw:()=>i,wF:()=>r});const i={PINS:"pins",PINS_BUYABLE:"buyable_pins",PINS_MINE:"my_pins",PINS_VIDEO:"videos",BOARDS:"boards",USERS:"users",IDEA_PINS:"idea_pins"},o=e=>{switch(e){case i.PINS:return 43;case i.PINS_MINE:return 107;case i.PINS_BUYABLE:return 254;case i.PINS_VIDEO:return 3306;case i.BOARDS:return 44;case i.USERS:return 45;default:return null}},r=e=>{switch(e){case i.PINS:return 60;case i.PINS_MINE:return 63;case i.PINS_BUYABLE:return 3800;case i.PINS_VIDEO:return 64;case i.BOARDS:return 61;case i.USERS:return 62;default:return null}},a=e=>{switch(e){case i.USERS:return 1000392;case i.PINS_BUYABLE:return 1000391;case i.PINS:default:return 29}}},391143:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(643913),o=n(613316);function r({storyCategory:e,query:t,referringSource:n,bubbleId:r,storyId:a,title:s}){const l=[0,24,21,26].includes(e),c=(0,i.Z)({q:t,rs:n||void 0,b_id:r,source_id:a}),d=l&&s?(0,o.x)({title:s,id:r,articleType:"discover"}):`/discover/article/${r}/`;return l?d:"/search/pins/"+(c?"?"+c:"")}},862628:(e,t,n)=>{function i(e){return(e||"").trim().replace(/\s+/g," ")}n.d(t,{Z:()=>i})},648284:(e,t,n)=>{function i({appliedProductFilters:e,autoCorrectionDisabled:t,filters:n,query:i,scope:o,selectedPinImgSig:r,user:a}){const s=[o,n,e,a,r,i].map((e=>null!=e?e:"")).join(":");return t?"auto-correction-disabled:"+s:s}function o(e){const{autoCorrectionDisabled:t,appliedProductFilters:n,appliedFilters:i,filters:o,selectedPinImgSig:r,query:a,rs:s,scope:l,bubbleId:c,user:d}=e;return{name:"BaseSearchResource",options:function({autoCorrectionDisabled:e=!1,appliedFilters:t=null,appliedProductFilters:n=null,bubbleId:i=null,filters:o=null,query:r=null,rs:a="direct_navigation",scope:s="pins",selectedPinImgSig:l=null,sourceId:c=null,user:d}){return{article:i,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:o,query:r,query_pin_sigs:l,redux_normalize_feed:!0,rs:a,scope:s,source_id:c,user:d}}({autoCorrectionDisabled:!!t,appliedProductFilters:n,appliedFilters:i,filters:o,query:a,rs:s,scope:l,selectedPinImgSig:r,bubbleId:c,user:d})}}n.d(t,{Ht:()=>o,Tb:()=>i})},80816:(e,t,n)=>{n.d(t,{i:()=>i});const i={REGISTRATION:"registration",SETTINGS:"settings",GOOGLE_PEOPLE_API:"google_people_api",HOLISTIC_PROFILE_PROMPT:"holistic_profile_prompt",IN_APP_BIRTHDAY_PROMPT:"in_app_birthday_prompt",FIX_EMAIL_PROMPT:"fix_email_prompt",NUX:"nux",UNKNOWN:"unknown"}},706922:(e,t,n)=>{function i(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function o(e,t){if(i(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let r=0;r<n.length;r+=1)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!i(e[n[r]],t[n[r]]))return!1;return!0}n.d(t,{Z:()=>o})},835209:(e,t,n)=>{function i({richPinData:e={}}){return((null==e?void 0:e.products)||[])[0]}n.d(t,{Z:()=>i})},53325:(e,t,n)=>{n.d(t,{$O:()=>s,GZ:()=>c,OE:()=>d,Xv:()=>l,Z0:()=>i,_z:()=>r,fM:()=>a,qA:()=>o,zX:()=>u});const i=40,o=4,r=106,a=133,s=.1,l=10,c=246,d=197,u=236},31149:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(785893);function o({size:e=56}){return(0,i.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,i.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#EFEFEF"}),(0,i.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:()=>o});var i=n(785893);function o({size:e=56}){return(0,i.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,i.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,i.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:()=>o});var i=n(785893);function o({size:e=56}){return(0,i.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,i.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,i.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,i.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:()=>o});var i=n(785893);function o({size:e=56}){return(0,i.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,i.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#fff"}),(0,i.jsx)("rect",{x:".5",y:".5",width:"55",height:"55",rx:"27.5",stroke:"#767676",strokeOpacity:".4"}),(0,i.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,i.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,i.jsx)("defs",{children:(0,i.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,i.jsx)("stop",{stopColor:"#09F"}),(0,i.jsx)("stop",{offset:".61",stopColor:"#A033FF"}),(0,i.jsx)("stop",{offset:".935",stopColor:"#FF5280"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#FF7061"})]})})]})}},464240:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(785893);function o({size:e=56}){return(0,i.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,i.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#1DA1F2"}),(0,i.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:()=>o});var i=n(785893);function o({size:e=56}){return(0,i.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,i.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#25D366"}),(0,i.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:()=>i,y:()=>o});const i={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},o={pin:1,board:2,did_it:6,pinner:3,user:3,today_article:8}},223815:(e,t,n)=>{n.d(t,{U:()=>a,Z:()=>s});var i=n(755742),o=n(785893);const r=()=>{},a=e=>{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation&&e.nativeEvent.stopImmediatePropagation()};function s({allowClickAndDrag:e,allowEsc:t,allowMediaPlay:n,allowScroll:s,children:l}){const c=e=>function(e,t){t&&e.keyCode===i.Z.ESCAPE||a(e)}(e,t);return(0,o.jsx)("div",{onAbort:a,onAnimationEnd:a,onAnimationIteration:a,onAnimationStart:a,onBlur:r,onCanPlay:n?r:a,onCanPlayThrough:a,onChange:a,onClick:e?r:a,onCompositionEnd:a,onCompositionStart:a,onCompositionUpdate:a,onContextMenu:a,onCopy:a,onCut:a,onDoubleClick:a,onDurationChange:a,onEmptied:a,onEncrypted:a,onEnded:a,onError:a,onFocus:r,onInput:a,onInvalid:a,onKeyDown:c,onKeyPress:c,onKeyUp:c,onLoad:a,onLoadedData:a,onLoadedMetadata:a,onLoadStart:a,onMouseDown:a,onMouseEnter:a,onMouseLeave:a,onMouseMove:e?r:a,onMouseOut:a,onMouseOver:a,onMouseUp:e?r:a,onPaste:a,onPause:a,onPlay:a,onPlaying:a,onProgress:a,onRateChange:a,onScroll:s?r:a,onSeeked:a,onSeeking:a,onSelect:a,onStalled:a,onSubmit:a,onSuspend:a,onTimeUpdate:a,onTouchCancel:a,onTouchEnd:e?r:a,onTouchMove:e?r:a,onTouchStart:e?r:a,onTransitionEnd:a,onVolumeChange:a,onWaiting:a,onWheel:a,children:l})}},704177:(e,t,n)=>{n.d(t,{Tl:()=>c,Xb:()=>u,ZP:()=>p,y7:()=>d});var i=n(231486),o=n(226198);class r{constructor(e){this._cookie=e}length(){const e=i.U2(this._cookie),t=e?JSON.parse(e):{};return Object.keys(t).length}getItem(e){const t=i.U2(this._cookie);return(t?JSON.parse(t):{})[e]}setItem(e,t){const n=i.U2(this._cookie),o=n?JSON.parse(n):{};o[e]=t,i.t8(this._cookie,JSON.stringify(o))}removeItem(e){const t=i.U2(this._cookie),n=t?JSON.parse(t):{};delete n[e],i.t8(this._cookie,JSON.stringify(n))}prependItem(e,t,n=1/0){const i=this.getItem(e),o=Array.isArray(i)?i:[];o.unshift(t),o.length>n&&o.pop(),this.setItem(e,o)}clear(){i.zN(this._cookie.name)}}class a{length(){return window.sessionStorage.length}getItem(e){const t=window.sessionStorage.getItem(e);return null!==t?JSON.parse(t):null}setItem(e,t){window.sessionStorage.setItem(e,JSON.stringify(t))}removeItem(e){window.sessionStorage.removeItem(e)}prependItem(e,t,n=1/0){const i=window.sessionStorage.getItem(e),o=i?JSON.parse(i):[];o.unshift(t),o.length>n&&o.pop(),window.sessionStorage.setItem(e,JSON.stringify(o))}clear(){window.sessionStorage.clear()}}class s{length(){return window.localStorage.length}getItem(e){const t=window.localStorage.getItem(e);return null!==t?JSON.parse(t):t}setItem(e,t){window.localStorage.setItem(e,JSON.stringify(t))}removeItem(e){window.localStorage.removeItem(e)}prependItem(e,t,n=1/0){const i=window.localStorage.getItem(e),o=i?JSON.parse(i):[];o.unshift(t),o.length>n&&o.pop(),window.localStorage.setItem(e,JSON.stringify(o))}clear(){window.localStorage.clear()}}const l=function(e){let t;try{t=e?window.sessionStorage:window.localStorage}catch(c){t=null}const n=e?o.Gl:o.sy;let i=!1;const l=t;if(l)try{l.setItem("testing","test"),l.removeItem("testing")}catch(c){if(c.code!==window.DOMException.QUOTA_EXCEEDED_ERR||0!==l.length)throw c;i=!0}else i=!0;return i?new r(n):e?new a:new s},c=function(e,t=[]){return[...t,e].join("_")},d=l(!0),u=l(!1),p={sessionStorage:d,localStorage:u,createKey:c}},957161:(e,t,n)=>{n.d(t,{L_:()=>o,Nh:()=>r,qn:()=>i});const i=(e,t=null)=>{try{return"undefined"!=typeof window&&window.localStorage.getItem(e)||t}catch(n){return console.error("Cannot access localStorage."),t}},o=e=>{try{if("undefined"==typeof window)return;window.localStorage.removeItem(e)}catch(t){console.error("Cannot access localStorage.")}},r=(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:()=>w,MS:()=>i,On:()=>p,SI:()=>x,TJ:()=>c,TO:()=>u,W3:()=>s,WM:()=>b,XC:()=>v,XS:()=>S,Y9:()=>f,Yp:()=>_,_b:()=>o,_l:()=>g,bY:()=>d,e9:()=>r,iu:()=>y,kl:()=>P,om:()=>a,ou:()=>E,qo:()=>m});const i="visitedPagesBeforeLogin",o="_lastVisitedPages",r="visitedPinLandingPagesBeforeLogin",a="visitedBoardLandingPagesBeforeLogin",s="lastVisitedPage",l="unauthTopicsFollowed",c="unauthPins",d="unauthHybridLoginModalView",u="unauthHybridClickthroughCount",p="unauthHybridClickthroughTS",h="signupTime",_="signupInterestsPickerScrollDown",m="signupTriedSkipInputName",f="signupTriedSkipGender",g="signupInterestsPickerStartTime",v="signupUserLocale",y="signupUserCountry",b="uoiou",x="unauthRevisitation",P="urh",w="lineOAuthOneTimeCode",S="unlinkNetwork",E="mfapc"},622096:(e,t,n)=>{n.d(t,{L_:()=>o,Nh:()=>r,qn:()=>i});const i=(e,t)=>{if("undefined"==typeof window)return t;try{return window.sessionStorage.getItem(e)}catch(n){return window.console.error("Cannot access sessionStorage."),t}},o=e=>{if("undefined"!=typeof window)try{window.sessionStorage.removeItem(e)}catch(t){window.console.error("Cannot access sessionStorage.")}},r=(e,t)=>{if("undefined"!=typeof window)try{window.sessionStorage.setItem(e,t)}catch(n){window.console.error("Cannot access sessionStorage.")}}},124364:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(898781),o=n(883119),r=n(785893);function a({height:e,isDenseView:t,rounding:n,width:a}){const s=(0,i.ZP)();return(0,r.jsx)(o.xu,{color:"default",display:"flex",justifyContent:"center",alignItems:"center",position:"relative",rounding:n,overflow:"hidden",width:a,height:e,"data-test-id":"unavailable-pin",children:(0,r.jsxs)(o.kC,{direction:"column",alignItems:"center",children:[(0,r.jsx)(o.xu,{paddingY:t?2:4,children:(0,r.jsx)(o.JO,{accessibilityLabel:s.bt("Pin not available", "Pin not available", "story-pin.Closeup.UnavailableIdeaPin.icon.accessibilityLabel", undefined, true),color:"default",icon:"alert",size:20})}),(0,r.jsx)(o.xv,{weight:"bold",children:s.bt("Unavailable", "Unavailable", "story-pin.Closeup.UnavailableIdeaPin.Unavailable", undefined, true)}),!t&&(0,r.jsx)(o.xu,{paddingY:1,children:(0,r.jsx)(o.xv,{children:s.bt("Removed by the creator", "Removed by the creator", "story-pin.Closeup.UnavailableIdeaPin.Removed", undefined, true)})})]})})}},226347:(e,t,n)=>{n.d(t,{Hx:()=>h,RC:()=>p,Wr:()=>u});var i=n(667294),o=n(311541),r=n(425288),a=n(924687),s=n(785893);const l=()=>Promise.resolve().then(n.bind(n,924687)),{Provider:c,useHook:d}=(0,r.Z)("IdeaPinVideoPlayer");function u({children:e}){const[t,n]=(0,o.Z)(l,a.initialState),r=(0,i.useMemo)((()=>({dispatch:n,ideaPinVideoPlayerControls:t})),[n,t]);return(0,s.jsx)(c,{value:r,children:e})}function p(){const{dispatch:e}=d();return(0,i.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:()=>o,initialState:()=>i});const i={seekTime:void 0,seekingIdeaPin:!1,currentProgressInfo:{currentTime:0,duration:0}};function o(e=i,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}}},676142:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(858142);const o=/\{\s*(\w+)\s*\}/g,r=(e,t)=>(0,i.Z)(o,e,t);function a({args:e,format:t}){const n=(e||[]).reduce(((e,t,n)=>({...e,[n]:t.text})),{});return r(t,n)}},940882:(e,t,n)=>{n.d(t,{J:()=>i,Z:()=>o});const i=-1;function o(e){switch(e){case 0:return"shopping-bag";case 1:return"tag";default:return"search"}}},985913:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(858142);const o=/\{\{\s*(\w+)\s*\}\}/g,r=(e,t)=>(0,i.Z)(o,e,t)},858791:(e,t,n)=>{n.d(t,{Z:()=>i});const i=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:()=>o});const i=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,o=e=>i.test(e)},927104:(e,t,n)=>{n.d(t,{Z:()=>i});const i=(e,t)=>e.length>t?e.substr(0,t-3).trim()+"…":e},858142:(e,t,n)=>{n.d(t,{Z:()=>i});const i=(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:()=>r});var i=n(985913),o=n(858791);const r=(e,t)=>{const n={};return Object.keys(t).forEach((e=>{n[e]=t[e]?(0,o.Z)(t[e].toString()):""})),(0,i.Z)(e,n)}},883561:(e,t,n)=>{n.d(t,{ZP:()=>i});function i(e,t=80,n="…",i=false){let o;if(!e)return"";if(e.length<=t)return e;if(" "!==e[t-1]&&" "===e[t]||i)o=e.substring(0,t);else{const n=e.lastIndexOf(" ",t);o=e.substring(0,n)}return o=o.replace(/[\- _,.<>:;+=*&@~\/\|!]*$/,""),o+n}},841726:(e,t,n)=>{n.d(t,{Z:()=>o,o:()=>i});function i(e,t){const n=(((t||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join("");return e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>|<!--[\s\S]*/gi,"").replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,((e,t)=>n.indexOf("<"+t.toLowerCase()+">")>-1?e:""))}const o=e=>e.replace(/(<([^>]+)>)/gi,"")},70061:(e,t,n)=>{function i(e){return e.replace(/[_.-](\w|$)/g,((e,t)=>t.toUpperCase()))}n.d(t,{Z:()=>i})},966113:(e,t,n)=>{n.d(t,{$B:()=>x,$h:()=>X,AH:()=>Je,Ay:()=>a,C5:()=>Pe,Cm:()=>xe,Et:()=>I,F2:()=>b,GE:()=>F,GH:()=>D,Gx:()=>Qe,HH:()=>$e,Hk:()=>Ce,Hl:()=>Ee,Hm:()=>P,Hv:()=>E,IA:()=>Ue,JR:()=>U,Jb:()=>Y,Jq:()=>oe,Js:()=>z,KD:()=>c,KU:()=>N,K_:()=>Z,LU:()=>p,Lq:()=>d,Ml:()=>je,Mo:()=>K,Ms:()=>me,Mv:()=>Ae,N1:()=>nt,NW:()=>k,PR:()=>ge,Pe:()=>Ke,QL:()=>Xe,R_:()=>g,Rf:()=>V,Sr:()=>R,T1:()=>We,TA:()=>r,TM:()=>Me,To:()=>Se,U5:()=>_e,UF:()=>pe,UX:()=>De,Uc:()=>fe,Um:()=>Re,V$:()=>le,VO:()=>ke,Vg:()=>ie,W3:()=>Ne,W_:()=>Fe,Wg:()=>C,X1:()=>u,X9:()=>o,XV:()=>He,ZB:()=>J,ZE:()=>q,_I:()=>$,_O:()=>ee,_P:()=>w,au:()=>L,c9:()=>M,cC:()=>Ve,cD:()=>ye,cP:()=>be,cv:()=>ae,dF:()=>et,fP:()=>Te,gO:()=>H,hX:()=>de,hw:()=>v,iC:()=>T,iY:()=>ue,lf:()=>f,lq:()=>te,lw:()=>ce,m7:()=>he,mB:()=>Ge,mI:()=>qe,mx:()=>_,nB:()=>ve,o1:()=>Le,oi:()=>l,q4:()=>we,qe:()=>y,rO:()=>Ye,rT:()=>m,ru:()=>Be,sX:()=>O,sr:()=>re,tS:()=>Ie,t_:()=>se,tq:()=>A,v0:()=>tt,v3:()=>G,vB:()=>h,vK:()=>ze,w0:()=>Oe,wU:()=>B,wq:()=>Ze,x$:()=>s,yF:()=>Q,z:()=>j,zX:()=>S,zw:()=>W,zz:()=>ne});var i=n(401060);const o=`${(0,i.Z)({site:"sterling",path:"/conversions/tag"})}`,r=`${(0,i.Z)({site:"sterling",path:"/?redirect=PINTEREST_TAG"})}`,a="https://business.pinterest.com/verified-merchant-program",s="https://apps.shopify.com/pinterest-1",l="https://woocommerce.com/products/pinterest-for-woocommerce/",c="/business/convert/",d="/_/_/help/",u="https://help.pinterest.com/business/article/report-offline-conversion-events",p="https://help.pinterest.com/business/article/modeled-conversions",h="https://help.pinterest.com/article/merchant-details",_="https://www.pinterest.com/_/_/help/business/article/third-party-and-dynamic-tracking",m="/settings/account-settings/",f="/password/reset/",g="https://www.pinterest.com/_/_/policy/privacy-policy/",v="https://www.pinterest.com/_/_/policy/copyright/",y="https://www.pinterestcareers.com/",b="https://www.pinterest.com/_/_/policy/terms-of-service/",x="https://policy.pinterest.com/de/impressum/",P="/business/create/",w="https://www.pinterest.com/_/_/help/articles/claim-your-website",S="https://www.pinterest.com/settings/claim",E="https://www.pinterest.com/_/_/help/business/article/bulk-upload-video-pins",A="https://www.pinterest.com/_/_/help/business/article/conversion-insights",T="https://www.pinterest.com/_/_/help/business/article/pinterest-tag-implementation-overview",I="https://www.pinterest.com/_/_/help/business/article/enhanced-match",C="https://www.pinterest.com/_/_/help/business/article/automatic-enhanced-match",R="https://www.pinterest.com/_/_/help/business/article/share-and-manage-access-to-your-ad-accounts",k="https://www.pinterest.com/_/_/business/",O="https://www.pinterest.com/_/_/help/articles/pinterest-analytics",D="274266067164",j="1655662257",N="ads.pinterest.com",L=`${(0,i.Z)({site:"sterling"})}`,M="https://pinterest.onelink.me/TVSr/dwebios",z="https://pinterest.onelink.me/TVSr/dwebandroid",B="/_/_/about/",Z="https://www.pinterest.com/_/_/help/articles/block-or-unblock-someone",F="/about/copyright/dmca-pin/",U="https://tagmanager.google.com",G="694505692171-31closf3bcmlt59aeulg2j81ej68j6hk.apps.googleusercontent.com",H="https://www.pinterest.com/_/_/help/",V="https://business.pinterest.com",W="https://www.pinterest.com/pin/12345/",$="https://www.pinterest.com/_/_/policy/cookies/",K="https://www.pinterest.com/_/_/business/content/creative-best-practices",q="/login/",Y="https://help.pinterest.com/contact",X="https://developers.pinterest.com/docs/conversions/conversion-management/",J="https://policy.pinterest.com/merchant-guidelines",Q=`${(0,i.Z)({site:"sterling",path:"/promoted_pin_v2/campaign/"})}`,ee=`${(0,i.Z)({site:"analytics"})}`,te=`${(0,i.Z)({site:"analytics",path:"/audience-insights/"})}`,ne="https://trends.pinterest.com",ie="https://trends-internal.pinadmin.com",oe=`${(0,i.Z)({site:"www"})}/advertiser/quick-promote`,re="https://www.pinterest.com/business/verified-merchant/status",ae="https://policy.pinterest.com/notice-at-collection",se="https://careers.pinterest.com/",le="https://www.pinterest.com/_/_/business/business-terms-of-service/",ce="https://www.pinterest.com/_/_/help/",de="https://help.pinterest.com/?context=business",ue="https://developers.pinterest.com",pe="https://www.pinterest.com/_/_/help/articles/promoted-pins",he="https://help.pinterest.com/article/promoted-pins",_e="/_/_/policy/terms-of-service/",me="https://policy.pinterest.com/community-guidelines",fe="https://business.pinterest.com/business-terms-of-service",ge=["CA"],ve=["CA"],ye="https://accounts.pinterest.com",be="https://www.pinterest.com/_/_/help/contact",xe="https://www.pinterest.com/_/_/business/Pinterest-product-specs",Pe="https://www.pinterest.com/_/_/help/business/article/pinterest-product-specs",we="https://www.pinterest.com/_/_/help/business/article/story-pins",Se="https://help.pinterest.com/business/article/audience-targeting",Ee="https://pinterest.com/_/_/help/article/your-privacy-and-data-settings",Ae="https://pinterest.com/_/_/help/article/update-your-search-privacy",Te="https://pinterest.com/_/_/help/article/personalization-and-data#info-ad",Ie="https://www.pinterest.com/_/_/help/article/third-party-analytics-or-advertising-providers-pinterest-uses-or-allows",Ce="https://help.pinterest.com/business/article/about-catalogs",Re="https://help.pinterest.com/business/article/data-source-setup",ke="https://help.pinterest.com/business/article/data-source-ingestion",Oe="https://help.pinterest.com/business/article/create-product-groups",De="https://help.pinterest.com/en/business/article/before-you-get-started-with-catalogs#section-9441",je="https://help.pinterest.com/en/business/article/promote-your-product-groups",Ne="https://pinterest.com/_/_/help/landing/request-a-feature",Le="https://www.pinterest.com/_/_/help/business/article/video-pins",Me="ms-windows-store://pdp/?productid=9PFHDSF91B9R",ze="https://www.pinterest.com/_/_/newsroom/",Be="https://www.pinterest.com/_/_/policy/",Ze="https://www.pinterest.com/_/_/help/business/article/set-up-the-pinterest-tag",Fe="https://www.pinterest.com/_/_/help/business/article/install-the-pinterest-tag",Ue="https://www.pinterest.com/_/_/help/business/article/google-tag-manager-and-pinterest-tag",Ge="https://www.pinterest.com/_/_/help/business/article/squarespace-and-pinterest-tag",He="https://www.pinterest.com/_/_/help/business/article/bigcommerce-and-pinterest-tag",Ve="https://help.pinterest.com/business/article/before-you-get-started-with-catalogs",We="https://help.pinterest.com/business/article/verified-merchant-program",$e=`${(0,i.Z)({site:"sterling",path:"/conversions/tag-health"})}`,Ke=`${(0,i.Z)({site:"analytics",path:"/conversion-insights/"})}`,qe="https://pinterest.com/_/_/help/article/manage-your-linked-business-account",Ye="/add-account",Xe="/settings/account-settings/",Je="/settings/personal-information",Qe="/settings/privacy",et=`${(0,i.Z)({site:"sterling",path:"/recommendations"})}`,tt="/business/hub",nt="https://pinterest.com/_/_/help/article/protect-your-account"},700380:(e,t,n)=>{function i(e,t){let n;const i=(...i)=>{n||(e(...i),n=setTimeout((()=>n=null),t))};return i.cancel=()=>{void 0!==n&&clearTimeout(n)},i}n.d(t,{Z:()=>i})},430323:(e,t,n)=>{n.d(t,{Z:()=>v});var i=n(667294),o=n(722767),r=n(706922),a=n(245474),s=n(558068),l=n(350118),c=n(780280),d=n(790123),u=n(425288);const{Provider:p,useMaybeHook:h}=(0,u.Z)("timeSpentContext");var _=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}class f extends i.Component{constructor(e){super(e),m(this,"componentWillUnmount",(()=>{this.unregisterComponent()})),m(this,"getContext",(()=>{const{clientTrackingParams:e,component:t,element:n,objectId:i,timeSpentContext:o,view:r,viewParameter:a}=this.props;return{view:r||o&&o.view,viewParameter:a||o&&o.viewParameter,component:t||o&&o.component,element:n,objectId:i||o&&o.objectId,clientTrackingParams:e||o&&o.clientTrackingParams,getParentUuid:()=>this.getUuid(),getGrandparentUuid:()=>this.getParentId()}})),m(this,"getLoggerContext",(()=>{const e={...this.getContext()};return delete e.getParentUuid,e})),m(this,"getParentId",(()=>{const{timeSpentContext:e,shouldUseGrandparentId:t=!1}=this.props;if(t&&e&&e.getGrandparentUuid){const t=e.getGrandparentUuid();if(t)return t}return e&&e.getParentUuid?e.getParentUuid():void 0})),m(this,"getUuid",(()=>this.state.timedPair?this.state.timedPair.uuid:void 0)),m(this,"getTimedPair",(()=>this.state.timedPair)),m(this,"setTimedPair",(e=>this.setState({timedPair:e}))),m(this,"isRegistered",!1),m(this,"registerComponent",(()=>{this.props.timeSpentManager.registerComponent(this),this.isRegistered=!0})),m(this,"unregisterComponent",(()=>{this.isRegistered&&(this.props.timeSpentManager.unregisterComponent(this),this.isRegistered=!1)})),m(this,"handleVisibilityChange",(e=>{const{intersectionRatio:t}=e[0],{bottom:n,left:i,right:o,top:r}=e[0].intersectionRect;t>0?this.registerComponent():0===t&&(0===n&&0===i&&0===o&&0===r?this.unregisterComponent():this.registerComponent())})),this.state={timedPair:new a.Z(this.getLoggerContext())}}componentDidUpdate(e){!this.isRegistered||e.view===this.props.view&&e.viewParameter===this.props.viewParameter&&e.component===this.props.component&&e.element===this.props.element&&e.objectId===this.props.objectId&&(0,r.Z)(e.auxData,this.props.auxData)&&(0,r.Z)(e.viewData,this.props.viewData)||(this.unregisterComponent(),setTimeout(this.registerComponent))}render(){const{children:e}=this.props;return(0,_.jsx)(p,{value:this.getContext(),children:(0,_.jsx)(o.Z,{options:{threshold:0},onVisibilityChange:this.handleVisibilityChange,children:i.Children.only(e)})})}}function g(e){var t;const n=(0,s.Hv)(),o=h(),r=(0,d.w)(),a=(0,l.H0)(),{requestIdentifier:u=""}=(0,c.B)(),p={app_instance_id:u.slice(0,8),...null!==(t=e.auxData)&&void 0!==t?t:{}};return(0,i.useEffect)((()=>{null==r||r.setHistoryStackContext(n)}),[n,r]),(0,i.useEffect)((()=>{null==r||r.setPins(null!=a?a:{})}),[a,r]),r?(0,_.jsx)(f,{...e,auxData:p,timeSpentContext:o,timeSpentManager:r,children:e.children}):e.children}g.displayName="TimeSpent";const v=g},790123:(e,t,n)=>{n.d(t,{j:()=>u,w:()=>d});var i=n(829407),o=n(19121),r=n(407043),a=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,r.v)(),s=(0,a.HG)(),{isAuth:d}=(0,o.Z)(),u=s&&d;return(0,i.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 i=n(172045),o=n(17314);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}const a="undefined"!=typeof window&&window.performance&&window.performance.now?()=>Math.floor(1e6*window.performance.now()):()=>1e6*Date.now();const s=class{constructor(e){r(this,"start",(()=>(this.startTime=a(),this.startTime))),r(this,"end",(()=>(this.endTime=a(),this.duration=this.startTime?this.endTime-this.startTime:null,this.duration)));try{this.uuid=(0,i.Z)()}catch(t){this.uuid=(0,o.Z)()}e&&Object.assign(this,e)}}},784641:(e,t,n)=>{n.d(t,{E5:()=>c,T7:()=>i,Y_:()=>d,Yj:()=>a,d9:()=>p,nx:()=>u,pe:()=>s,xt:()=>l});n(883119);function i(e,t,n,i){const o=function(e,t){return t?"shop":0===e||2===e?"trending":1===e?"best":"article"}(e,t),r=function(e){return e.toLowerCase().replace(/[.,\/#!?$%\^&\*+;:{}=\-_`~()\’'"]/g,"").trim().replace(/\s+/g,"-")}(n);return`/today/${o}/${encodeURIComponent(r)}/${i}/`}const o={"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"},r={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"},a=(e,t)=>{const n=r[e];return!(null===n||n!==t&&!t.startsWith(n))},s=e=>o[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)}},376113:(e,t,n)=>{n.d(t,{S:()=>r,i:()=>o});var i=n(773285);const o="web_today_tab_v1";function r(){return(0,i.F)().checkExperiment(o).anyEnabled}},482981:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(784641);function o(e){const{article_creator_user:t,display_type:n,feed_source:o,header_pin_id:r,id:a,is_product_pin_feed:s,title:l,video_pin:c}=e;switch(n){case 0:case 1:return l?(0,i.T7)(o,null!=s&&s,l,a):"";case 8:return null!=t&&t.username?`/${encodeURIComponent(t.username)}/`:"";case 3:case 6:return r?`/pin/${r}/`:"";case 2:return null!=c&&c.id?`/pin/${c.id}/`:"";default:return""}}},867820:(e,t,n)=>{n.d(t,{yl:()=>d,qJ:()=>p,Nc:()=>g,dy:()=>v,NC:()=>f,My:()=>_,tj:()=>h});var i=n(6637);const o="unauthHistories",r="authHistories",a="trackHistoryClickInternalUrl";var s=n(622096);let l=[];let c;function d(e){l.length&&(i.Z.create("UserRegisterTrackActionResource",{actions:l}).callUpdate({showError:!1,async:!e}),l=[],c=null)}function u(e,t){const n=(0,s.qn)(a);if((0,s.L_)(a),n)return;let i=(0,s.qn)(e);if(i=i?i.split(","):[],i.length){const e=`${t}.${i.reduce(((e,t)=>e+"-"+t))}`;l.push({name:e,aux_data:{}})}(0,s.L_)(e)}const p=e=>{u(o,e),u(r,`${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 _(e,t){h(e,{tags:t?{...t}:Object.freeze({})})}function m(e,t,n=!1){if("undefined"==typeof window)return;let i=(0,s.qn)(e);i=i?i.split(","):[],i.push(t),(0,s.Nh)(e,i.join()),e!==r&&_(`lex.${t}`),n&&(0,s.Nh)(a,!0)}function f(e,t=!1){m(o,e,t)}function g(e,t=!1){m(r,e,t)}const v=({event:e,provider:t})=>{_(`pinner_conversion.autologin.${t}.${e}`)}},52022:(e,t,n)=>{n.d(t,{S:()=>s,Z:()=>l});var i=n(667294),o=n(867820),r=n(53987),a=n(276775);const s=e=>(0,r.L6)(e)?"pin":(0,r.am)(e)?"board":(0,r.Xn)(e)?"login":(0,r.C$)(e)?"home":(0,r.cD)(e)?"profile":(0,r.dr)(e)?"ideas":(0,r.gT)(e)?"ideas-root":(0,r.tZ)(e)?"videos":(0,r.$Y)(e)?"article":(0,r.E0)(e)?"shopping-spotlight":(0,r.Zz)(e)?"today":(0,r.j8)(e)?"unauth-profile":(0,r.f1)(e)?"shopping-root":"other";function l(){const e=(0,a.useLocation)();return(0,i.useCallback)((({action:t,item:n,within:i})=>{const r=s(e);(0,o.My)(`logged_out_product.interaction.${r}.${t}`,{item:n||"none",within:i||"none"})}),[e])}},207112:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(667294),o=n(883119),r=n(785893);class a extends i.Component{constructor(e){var t,n,o;super(e),o={manualTruncate:!1},(n="state")in(t=this)?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,this.ref=(0,i.createRef)()}componentDidMount(){const{maxHeightPx:e,shaveOptions:t={}}=this.props,i=this.ref&&this.ref.current;if(!i)return;const o=void 0===i.textContent?"innerText":"textContent",r=i[o];("boolean"!=typeof t.spaces||t.spaces?r.split(" "):r).length<2?this.setState({manualTruncate:!0}):n.e(14118).then(n.bind(n,448433)).then((({default:n})=>{n(i,e,t)}))}render(){const{maxWidthPx:e,maxHeightPx:t,inline:n=!1}=this.props,{manualTruncate:i}=this.state,a={maxWidth:e,maxHeight:t},s=n?{display:"inline",...a}:{...a};return i?(0,r.jsx)(o.xu,{overflow:"hidden",dangerouslySetInlineStyle:{__style:s},ref:this.ref,"data-test-id":"truncater",children:this.props.children}):(0,r.jsx)(o.xu,{ref:this.ref,dangerouslySetInlineStyle:{__style:s},"data-test-id":"truncater",children:this.props.children})}}const s=a},6663:(e,t,n)=>{n.d(t,{Z:()=>c});var i=n(667294),o=n(701500),r=n(391254),a=n(898781),s=n(883119),l=n(785893);function c({color:e,completeButtonText:t,completeUrl:n,dismissButtonText:c,experienceId:d,external:u,message:p,onComplete:h,onDismiss:_}){const m=(0,a.ZP)(),f=(0,i.useRef)(null),g=({event:e})=>{h&&h(e)},v=({event:e})=>{_&&_(e)},y=p&&!t,b=500735===d,x=t&&(!n||b)&&(0,l.jsx)(s.zx,{color:"white",onClick:g,text:t}),P=t&&n&&(0,l.jsx)(o.Z,{anchor:".HomeButton2",anchorElementRef:f.current,containerBoxConfig:{display:"flex",height:"100%"},children:(0,l.jsx)(s.zx,{accessibilityLabel:t,ref:f,role:"link",href:n,onClick:({event:e})=>g({event:e}),rel:u?"nofollow":"none",size:"md",color:"white",text:t},"naglink")}),w=c&&_&&(0,l.jsx)(s.xu,{mdPaddingX:2,children:(0,l.jsx)(s.zx,{color:e&&"default"!==e?"white":"gray",onClick:v,text:c})}),S=y&&!b&&_&&!c&&(0,l.jsx)(s.hU,{accessibilityLabel:m.bt("Close", "Close", "accessibility close label", undefined, true),bgColor:"lightGray",onClick:v,icon:"cancel",iconColor:"gray",size:"md"});return(0,l.jsxs)(s.xu,{display:"flex",direction:"column",smDirection:"row",color:null!=e?e:"dark",paddingY:3,paddingX:6,alignItems:"center",justifyContent:"between",children:[(0,l.jsx)(s.xu,{column:12,smColumn:y?11:8,children:(0,l.jsxs)(s.xv,{color:"inverse",weight:b?"normal":"bold",children:[(0,l.jsx)(r.Z,{unsafeCSS:".Banner--message a { color: #fff; text-decoration: underline; }"}),(0,l.jsx)("div",{className:"Banner--message",children:(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:p}})})]})}),(0,l.jsxs)(s.kC,{alignItems:"center",justifyContent:"end",children:[w,x||P,S]})]})}},477802:(e,t,n)=>{n.d(t,{W:()=>a,Z:()=>r});var i=n(883119),o=n(785893);function r({data:e}){return(0,o.jsx)(i.xu,{overflow:"auto",dangerouslySetInlineStyle:{__style:{border:"2px solid red"}},"data-test-id":"debug-info",children:(0,o.jsx)("pre",{children:JSON.stringify(e,null,2).replace(/\\n/g,"\n")})})}const a=e=>(0,o.jsx)(i.xu,{width:236,dangerouslySetInlineStyle:{__style:{marginTop:10}},children:(0,o.jsx)(r,{...e})})},948618:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(883119),o=n(785893);function r({ariaHidden:e=!1,color:t="darkGray",size:n}){return(0,o.jsx)("span",{"aria-hidden":e,style:{padding:"0 4px"},children:(0,o.jsx)(i.xv,{color:t,inline:!0,size:null!=n?n:"200",children:"·"})})}},939106:(e,t,n)=>{n.d(t,{Z:()=>l});var i=n(667294),o=n(948618),r=n(883119),a=n(785893);function s(e){return null!=e}function l({additionalPadding:e,color:t="darkGray",inline:n,items:l}){const c=e?(0,a.jsx)("span",{style:{padding:`0 ${4*e}px`},children:(0,a.jsx)(o.Z,{color:t})}):(0,a.jsx)(o.Z,{color:t}),d=l.filter(s).reduce(((e,t,n)=>[...e,0!==n?c:null,t]),[]).filter(s).map(((e,t)=>(0,a.jsx)(i.Fragment,{children:e},t)));return 0===d.length?null:n?(0,a.jsx)(r.xu,{children:d}):(0,a.jsx)(r.kC,{alignItems:"center",justifyContent:"start",children:d})}},681291:(e,t,n)=>{n.d(t,{Z:()=>l,n:()=>a});var i=n(512855),o=n(883119),r=n(785893);function a({items:e,itemWidth:t,itemGap:n,numRows:o=1,actionItemType:r}){const[a,s]=(0,i.Z)(),l=Math.floor((a+n)/(t+n))*o||o,c=e.slice(0,l);let d,u=[];switch(r){case"nextFour":l>=e.length?u=[c.pop()]:(c.pop(),u=e.slice(l-1,l+3));break;case"one":d=l>e.length?e[Math.floor(e.length/2)]:c.pop()}return{containerRef:s,itemsToRender:c,actionItem:d,nextFourItems:u}}const s={center:{outer:"center",inner:"center"},left:{outer:"start",inner:"start"},right:{outer:"end",inner:"end"}};function l({children:e,itemGap:t,containerRef:n,numRows:i=1,rowAlignment:a="center"}){const l=s[a];return(0,r.jsx)(o.xu,{ref:n,width:"100%",children:(0,r.jsx)(o.kC,{alignItems:"center",justifyContent:l.outer,children:(0,r.jsx)(o.kC,{justifyContent:l.inner,gap:{row:Math.floor(t/4),column:0},wrap:i>1,children:e})})})}},343341:(e,t,n)=>{n.d(t,{F9:()=>a,Zo:()=>o,nE:()=>r});var i=n(425288);const{Provider:o,Consumer:r,useHook:a}=(0,i.Z)("toastManagerContext")},579164:(e,t,n)=>{n.d(t,{Z:()=>i});const i=Object.freeze({SAME_ORIGIN:1,TRUSTED_DIFFERENT_ORIGIN:2,UNTRUSTED:3,INVALID:4})},567831:(e,t,n)=>{n.d(t,{Z:()=>i});const i=(e,t,n)=>e.match(/^https{0,1}:\/\//)?e:(void 0===t&&(t=window.location.protocol),void 0===n&&(n=window.location.hostname,window.location.port&&(n+=":"+window.location.port)),""!==n&&"/"!==e.charAt(0)&&(e="/"+e),t+"//"+n+e)},794230:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(643913),o=n(704115),r=n(441609),a=n.n(r);const s=(e,t)=>{if(!a()(t)){const n=e.split("?"),r=n[0],a=n[1],s={...a?(0,o.Z)(a):{},...t};return r+"?"+(0,i.Z)(s)}return e}},170168:(e,t,n)=>{n.d(t,{Ag:()=>r,C0:()=>l,Vi:()=>a,YD:()=>u,kS:()=>o,oo:()=>s,vC:()=>c,vI:()=>d});var i=n(401060);const o="https://www.pinterest.com/business/hub/",r="https://www.pinterest.com/homefeed/",a="www.pinterest.com",s="https://help.pinterest.com",l="https://www.pinterest.com",c=(0,i.Z)({site:"developers"}),d=`${(0,i.Z)({site:"sterling"})}`,u=`${(0,i.Z)({site:"analytics"})}`},29538:(e,t,n)=>{n.d(t,{X:()=>o,c:()=>i});const i="pinterest.com",o="pinterdev.com"},250059:(e,t,n)=>{n.d(t,{Z:()=>i});const i=e=>e?"string"==typeof e?e:e.pathname?e.pathname:"":""},643913:(e,t,n)=>{function i(e){const t=[];for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=n,r=e[n];if(void 0!==r){let e;e=Array.isArray(r)?encodeURIComponent(o)+"=["+r.map((e=>encodeURIComponent(e))).join(",")+"]":"object"==typeof r?i(r):encodeURIComponent(o)+"="+encodeURIComponent(r),t.push(e)}}return t.join("&")}n.d(t,{Z:()=>i})},704115:(e,t,n)=>{function i(e){null==e&&"undefined"!=typeof window&&(e=window.location.search);const t={};if(e){"?"===e[0]&&(e=e.substring(1));const n=/\+/g,i=/([^&=]+)=?([^&]*)/g,o=function(e){let t=e.replace(n," ");try{t=decodeURIComponent(t)}catch(i){t=unescape(t)}return t};let r=i.exec(e);for(;r;){t[o(r[1])]=o(r[2]),r=i.exec(e)}}return t}n.d(t,{Z:()=>i})},547239:(e,t,n)=>{n.d(t,{Z:()=>l});const i=(e,t)=>-1!==e.indexOf(t,e.length-t.length);var o=n(89254),r=n(579164),a=n(966113),s=n(29538);const l=e=>{if("undefined"==typeof window)return r.Z.INVALID;const t=(0,o.Z)(e);let n="",l="";try{n=window.location.origin,l=window.location.hostname}catch(c){}if(t.origin===n)return r.Z.SAME_ORIGIN;if(t.hostname===l)return r.Z.TRUSTED_DIFFERENT_ORIGIN;if(t.hostname){const e=[s.c,s.X];for(const n of e)if(t.hostname===n||i(t.hostname||"","."+n))return r.Z.TRUSTED_DIFFERENT_ORIGIN}return t.origin&&"https://www.pinterest.com"===t.origin?r.Z.TRUSTED_DIFFERENT_ORIGIN:"https"!==t.protocol||"pinterest.onelink.me"!==t.host||e!==a.c9&&e!==a.Js?t.origin?r.Z.UNTRUSTED:r.Z.INVALID:r.Z.TRUSTED_DIFFERENT_ORIGIN}},401060:(e,t,n)=>{n.d(t,{Z:()=>i});new RegExp(/\bdev\b.*/);function i({site:e,path:t=""}){const n="sterling"===e?"ads":e;if(t&&!t.startsWith("/"))throw new Error(`${t} needs to start with '/' -- hostForSite() does not append a trailing slash to the host, so all paths should start with '/'`);return`https://${n}.pinterest.com${t}`}},826067:(e,t,n)=>{n.d(t,{Gw:()=>p,JJ:()=>c,Jx:()=>l,OM:()=>o.Z,Qc:()=>a.Z,Qg:()=>s.Z,XP:()=>u,mB:()=>d,ru:()=>i.Z,sD:()=>h,tV:()=>_,vx:()=>r.Z});var i=n(794230),o=n(547239),r=n(579164),a=n(89254),s=n(954931);const l=e=>{if(!e)return"";try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return""}},c=()=>{const{pathname:e,search:t}=window.location;return e+("?"===t?"":t)},d=(e,t={shouldDecode:!0})=>e?("?"===e[0]&&(e=e.substr(1)),e.split("&").reduce(((e,n)=>{const[i,o]=n.split(/=(.+)/);return null!=t&&t.shouldDecode?e[l(i)]=l(o):e[i]=o,e}),{})):{},u=e=>Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&"),p=(e,t)=>{if(0===t.length)return e;const[n,o]=e.split("?"),r=Object.entries(d(o)).filter((([e,n])=>!t.includes(e))).reduce(((e,[t,n])=>({...e,[t]:n})),{});return(0,i.Z)(n,r)},h=e=>/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e);function _(e,...t){let n=e[0];for(let o=0;o<t.length;o+=1)n+=(i=t[o],encodeURIComponent(i).replace(/~/g,"%7E").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/!/g,"%21").replace(/\\/g,"%5C").replace(/'/g,"%27")+e[o+1]);var i;return n}},149230:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(954931);const o=({url:e})=>!(!e||!e.match(/^https{0,1}:\/\//)||(0,i.Z)(e))},954931:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(547239),o=n(579164);const r=e=>[o.Z.SAME_ORIGIN,o.Z.TRUSTED_DIFFERENT_ORIGIN].includes((0,i.Z)(e))},508847:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(567831);const o=(e,t)=>0===e.lastIndexOf(t,0),r=({url:e})=>{const t=(0,i.Z)("/");return o(e,t)?e.substr(t.length-1):e}},188682:e=>{function t(e){for(var n=t.options,i=n.parser[n.strictMode?"strict":"loose"].exec(e),o={},r=14;r--;)o[n.key[r]]=i[r]||"";return o[n.q.name]={},o[n.key[12]].replace(n.q.parser,(function(e,t,i){t&&(o[n.q.name][t]=i)})),o}t.options={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:(?<!\\)@]*)(?::([^:@]*))?)?@)?([^:\/?#\\]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},t.options.strictMode=!0,e.exports=t},89254:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(188682),o=n.n(i);const r=(e,t)=>{let n,i;const r=o()(e);switch(r.protocol){case"http":case"https":r.userInfo&&(r.userInfo.endsWith("%23")||r.userInfo.endsWith("#"))?(n=r.protocol+"://"+r.userInfo,i=""):r.userInfo?(n=r.protocol+"://"+r.host,i=r.host):(n=r.protocol+"://"+r.authority,i=r.host);break;case"":if(0===r.source.indexOf("//")){if(t)n=null;else try{n=window.location.protocol+"//"+r.authority}catch(a){n=null}i=r.host}else if(t)n=null,i=null;else try{n=window.location.protocol+"//"+window.location.hostname,i=window.location.hostname}catch(a){n=null,i=null}break;default:n=null,i=r.host}return{...r,origin:n,hostname:i}}},512855:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(667294);function o(){const[e,t]=(0,i.useState)(0),n=(0,i.useRef)(null),o=(0,i.useCallback)((()=>{n.current&&t(n.current.clientWidth)}),[n]);return(0,i.useEffect)((()=>(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)})),[o]),(0,i.useEffect)(o),[e,n]}},311541:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(667294);function o(e,t){const n=(0,i.useRef)([]),[o,r]=(0,i.useState)(),[a,s]=(0,i.useReducer)(null!=o?o:()=>t,t),l=(0,i.useCallback)((t=>{o?s(t):(n.current.length||e().then((e=>{r((()=>e.default))})),n.current=[...n.current,t])}),[e,o]);return(0,i.useEffect)((()=>{o&&(n.current.forEach(s),n.current=[])}),[o]),[a,l]}},829407:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(667294);const o=e=>{(0,i.useEffect)(e,[])}},215292:(e,t,n)=>{n.d(t,{Z:()=>a,q:()=>r});var i=n(667294);const o=()=>{const[e,t]=(0,i.useState)(!1),[n,o]=(0,i.useState)(!1),[r,a]=(0,i.useState)(!1);return{active:e,focused:n,hovered:r,onBlur:()=>{o(!1),t(!1)},onFocus:()=>o(!0),onMouseDown:()=>t(!0),onMouseEnter:()=>a(!0),onMouseLeave:()=>{a(!1),t(!1)},onMouseUp:()=>t(!1)}};function r({children:e}){return e(o())}const a=o},35954:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(667294);const o=(e,t)=>{const n=(0,i.useRef)((()=>{}));(0,i.useEffect)((()=>{n.current=e}),[e]),(0,i.useEffect)((()=>{if(null===t)return()=>{};const e=setInterval((()=>n.current()),t);return()=>clearInterval(e)}),[t])}},807609:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(411465),o=n(966476);const r=()=>{const e=(0,i.Z)(),t=(0,o.Z)();return e&&!t}},411465:(e,t,n)=>{n.d(t,{G:()=>s,Z:()=>l});var i=n(667294),o=n(276775),r=n(785893);const a=(0,i.createContext)(!0);function s({children:e}){const t=(0,o.useLocation)(),[n,s]=(0,i.useState)(!0),l=(0,i.useRef)(t);return(0,i.useEffect)((()=>{l.current!==t&&(l.current=t,s(!1))}),[t]),(0,r.jsx)(a.Provider,{value:n,children:e})}function l(){return(0,i.useContext)(a)}},786871:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(702664);const o=[1000069,1000075],r={};function a(){return e=(0,i.useSelector)((({experiences:e})=>e)),o.forEach((t=>{!e[t]||void 0!==r[t]&&r[t].id===e[t].id||(r[t]=e[t])})),r;var e}},19121:(e,t,n)=>{n.d(t,{$:()=>o,Z:()=>a});var i=n(425288);const{Provider:o,useHook:r}=(0,i.Z)("viewer"),a=r},357787:(e,t,n)=>{n.d(t,{Z:()=>d});var i=n(667294),o=n(973935),r=n(785893);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 s=new Map;let l=null;const c=e=>{e.forEach((e=>{const t=s.get(e.target);t&&t(e)}))},d=e=>{class t extends i.Component{constructor(...e){super(...e),a(this,"seen",!1),a(this,"enter",(e=>{const t=e.intersectionRatio>0||e.isIntersecting;this.seen=t,this.seen&&this.props.onVisibilityChanged(!0)})),a(this,"leave",(()=>{const e=this._node;e&&(e=>s.has(e))(e)&&this.seen&&(this.props.onVisibilityChanged(!1),this.seen=!1)})),a(this,"observe",(e=>{try{this._node=o.findDOMNode(this)}catch(i){return}if(!this._node)return;const{inAdsDesktopVideoExperiment:t}=this.props,n=this._node;((e,t="-64px 0px 0px 0px",n)=>{const i={root:"undefined"==typeof document?null:document.querySelector("#mainContainer"),rootMargin:t,threshold:[0,.5,1]};l=l||new window.IntersectionObserver(c,i),s.set(e,n),l.observe(e)})(n,e,(e=>{if(!s.has(n))return;const i=t?e.intersectionRatio>=.5:e.intersectionRatio>0||e.isIntersecting,o=this.props.trackFullVisible?e.intersectionRatio>=1:i,r=this.props.trackFullVisible?0===e.intersectionRatio:!o;!this.seen&&o?this.enter(e):this.seen&&r&&this.leave()}))}))}componentDidMount(){const{rootMargin:e}=this.props;this.observe(e)}componentWillUnmount(){const e=this._node;e&&(this.leave(),(e=>{l.unobserve(e),s.delete(e)})(e))}render(){return(0,r.jsx)(e,{...this.props})}}return a(t,"displayName",`DeprecatedWithVisibilityChanged(${e.displayName||e.name})`),t}},46584:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(667294);const o=new Map;let r=null;const a=e=>{e.forEach((e=>{const t=o.get(e.target);t&&t(e)}))};function s({onVisibilityChanged:e,inAdsDesktopVideoExperiment:t,trackFullVisible:n,rootMargin:s}){const l=(0,i.useRef)(null);let c=!1;const d=()=>{var t;l.current instanceof HTMLElement&&(t=l.current,o.has(t))&&(c&&(e(!1),c=!1))},u=(0,i.useCallback)((i=>{l.current instanceof HTMLElement&&((e,t="-64px 0px 0px 0px",n)=>{const i={root:"undefined"==typeof document?null:document.querySelector("#mainContainer"),rootMargin:t,threshold:[0,.5,1]};r=r||new window.IntersectionObserver(a,i),o.set(e,n),r.observe(e)})(l.current,i,(i=>{if(!o.has(l.current))return;const r=t?i.intersectionRatio>=.5:i.intersectionRatio>0||i.isIntersecting,a=n?i.intersectionRatio>=1:r,s=n?0===i.intersectionRatio:!a;!c&&a?(t=>{const n=t.intersectionRatio>0||t.isIntersecting;c=n,c&&e(!0)})(i):c&&s&&d()}))}),[l.current]);return(0,i.useEffect)((()=>(u(s),()=>{var e;l.current instanceof HTMLElement&&(d(),e=l.current,r.unobserve(e),o.delete(e))})),[u]),l}},562559:(e,t,n)=>{n.d(t,{Z:()=>b});var i=n(667294),o=n(867631),r=n.n(o),a=n(112690),s=n(19121),l=n(965900),c=n(773285),d=n(780280),u=n(883119),p=n(969315),h=n(179888),_=n(226347),m=n(785893);function f(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},v=(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 y extends i.PureComponent{constructor(...e){super(...e),f(this,"state",{canPlayVideo:!1,isManifestParsed:!1,playbackState:h.Cy.DEFAULT,videoStartTime:this.props.seekTime||0}),f(this,"errorRetryCount",1),f(this,"firstFragBuffered",!1),f(this,"hasPlaybackStarted",!1),f(this,"hasVideoSessionStarted",!1),f(this,"hasVideoSessionEnded",!1),f(this,"hls",null),f(this,"fragStartupTime",{}),f(this,"lastLevelSwitchKbps",null),f(this,"lastStallTime",null),f(this,"lastPauseTime",null),f(this,"logSessionStartOnNextPlay",!1),f(this,"playerId",""),f(this,"videoSessionId",""),f(this,"videoVisibleTime",null),f(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}),f(this,"initializeHls",(()=>{this.destroyHls();const{src:e,hlsConfig:t,quicExpGroup:n}=this.props,i=new(r())(t),o=v(e,n);i.loadSource(o),this.videoPlayerRef&&i.attachMedia(this.videoPlayerRef.video),i.on(r().Events.FRAG_BUFFERED,this.handleHlsFragBuffered),i.on(r().Events.FRAG_CHANGED,this.handleHlsFragChanged),i.on(r().Events.FRAG_LOADING,this.handleHlsFragLoading),i.on(r().Events.FRAG_LOADED,this.handleHlsFragLoaded),i.on(r().Events.MANIFEST_PARSED,(()=>{this.setState({isManifestParsed:!0})})),i.on(r().Events.LEVEL_SWITCHED,this.handleHlsLevelSwitched),i.on(r().Events.ERROR,this.handleHlsError),this.hls=i})),f(this,"destroyHls",(()=>{const{hls:e}=this;e&&e.destroy()})),f(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,i=this.hls&&this.hls.levels||{},o="number"==typeof e.level?i[e.level]:{},r=this.fragStartupTime[e.url];let a=-1;r&&r.startLoadTime&&r.endLoadTime&&(a=r.endLoadTime-r.startLoadTime);const s={indicatedKbps:o.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:o.width,sourceHeight:o.height,startupTimeMs:a,switchBitrateKbps:this.lastLevelSwitchKbps||-1,uri:e.url,viewportWidth:n&&n.clientWidth||-1,viewportHeight:n&&n.clientHeight||-1,watchedDurationMs:0};t.push(s)}})),f(this,"initializeSegments",(e=>{const{contextLogData:t={}}=this.props,{is_closeup_video:n=!1}=t,{segments:i}=this.playbackPerformance;if(!i.length)if(this.hls&&this.videoPlayerRef&&this.videoPlayerRef.video&&e){if(!i.length&&"number"==typeof e.level){const t=this.videoPlayerRef&&this.videoPlayerRef.video,n=this.hls.levels,o="number"==typeof e.level?n[e.level]:{},r=this.fragStartupTime[e.url];let a=-1;r&&r.startLoadTime&&r.endLoadTime&&(a=r.endLoadTime-r.startLoadTime),this.lastLevelSwitchKbps=this.hls.bandwidthEstimate/h.bR;const s={indicatedKbps:o.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:o.width,sourceHeight:o.height,startupTimeMs:a,switchBitrateKbps:this.lastLevelSwitchKbps||-1,uri:e.url,viewportWidth:t.clientWidth,viewportHeight:t.clientHeight,watchedDurationMs:0};i.push(s)}}else(0,p.tE)("initializeSegmentsFailed",!0,n)})),f(this,"getCurrentVideoTime",(()=>this.videoPlayerRef&&this.videoPlayerRef.video?this.videoPlayerRef.video.currentTime*h.gJ:null)),f(this,"handleCanPlayVideo",(e=>{const{contextLogData:t={},onReady:n,playing:i}=this.props,{is_closeup_video:o=!1}=t,{canPlayVideo:r}=this.state;(0,p.tE)("handleCanPlayVideo",!0,o,{firstCanPlayEvent:!r,playing:i}),this.playbackPerformance.hasFatalError=!1,r||(this.playbackPerformance.canPlayTime=new Date),this.setState({canPlayVideo:!0}),n&&n(e)})),f(this,"handleEnded",(e=>{const{loop:t,onEnded:n}=this.props,{segments:i}=this.playbackPerformance,o=i&&i[i.length-1];t&&this.videoPlayerRef&&this.videoPlayerRef.video?(this.updateWatchDurationForCurrentSegment(),o&&(o.lastStartPlayTime=0),this.fragStartupTime={}):t||this.logPlaybackPerformance(h.$f,{initiator:"videoEnded",loop:t}),this.setState({playbackState:h.Cy.ENDED}),n&&n(e)})),f(this,"handleHlsError",((e,t)=>{var n;const{contextLogData:i={}}=this.props,{is_closeup_video:o=!1}=i;if(this.playbackPerformance.detailedErrors+=`${this.playbackPerformance.detailedErrors.length>0?", ":""}${t.details}`,t.fatal){var a,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===(a=t.err)||void 0===a||null===(s=a.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,o,e),this.errorRetryCount>0)switch(this.errorRetryCount-=1,t.type){case r().ErrorTypes.NETWORK_ERROR:if(t.details===r().ErrorDetails.MANIFEST_LOAD_ERROR||t.details===r().ErrorDetails.MANIFEST_LOAD_TIMEOUT||t.details===r().ErrorDetails.MANIFEST_LOAD_PARSING_ERROR){var d;const{src:e,quicExpGroup:t}=this.props,n=v(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 r().ErrorTypes.MEDIA_ERROR:null===(n=this.hls)||void 0===n||n.recoverMediaError()}}this.updateWatchDurationForCurrentSegment(),this.setState({playbackState:h.Cy.FAILED})})),f(this,"handleHlsFragBuffered",((e,t)=>{this.firstFragBuffered||(this.initializeSegments(t.frag),this.firstFragBuffered=!0)})),f(this,"handleHlsFragChanged",((e,t)=>{this.addSegment(t.frag)})),f(this,"handleHlsFragLoading",((e,t)=>{var n;const i=null===(n=t.frag)||void 0===n?void 0:n.url;i&&!this.fragStartupTime[i]&&(this.fragStartupTime[i]={startLoadTime:new Date})})),f(this,"handleHlsFragLoaded",((e,t)=>{var n;t.frag&&t.frag.loaded&&(this.playbackPerformance.downloadedKiloBytes+=t.frag.loaded/h.Fm);const i=null===(n=t.frag)||void 0===n?void 0:n.url;i&&this.fragStartupTime[i]&&this.fragStartupTime[i].startLoadTime&&(this.fragStartupTime[i].endLoadTime=new Date)})),f(this,"handleHlsLevelSwitched",(()=>{this.hls&&this.hls.bandwidthEstimate&&(this.lastLevelSwitchKbps=this.hls.bandwidthEstimate/h.bR)})),f(this,"handleLoadedMetadata",(()=>{this.setState({playbackState:h.Cy.LOADED_METADATA})})),f(this,"handleLoadStart",(()=>{this.playbackPerformance.loadStartTime=new Date,this.setState({playbackState:h.Cy.LOAD_START})})),f(this,"handleLoadedData",(()=>{this.setState({playbackState:h.Cy.LOADED_DATA})})),f(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()})),f(this,"handleUserPause",(e=>{const{onControlsPause:t}=this.props;this.lastPauseTime=new Date,t&&t(e)})),f(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})})),f(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})})),f(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})})),f(this,"handleTimeUpdate",(e=>{const{onTimeChange:t}=this.props;t&&t(e),this.state.playbackState===h.Cy.PLAYING&&(this.updateWatchDurationForCurrentSegment(),this.setLastSegmentStartPlayTime())})),f(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]})),f(this,"setLastSegmentStartPlayTime",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.lastStartPlayTime&&(t.lastStartPlayTime=this.getCurrentVideoTime())})),f(this,"setLastSegmentPlaybackStartDate",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.playbackStartDate&&(t.playbackStartDate=Date.now())})),f(this,"setPlaybackStartTime",(()=>{this.hasPlaybackStarted||(this.playbackPerformance.playbackStartTimestamp=Date.now(),this.hasPlaybackStarted=!0)})),f(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)}})),f(this,"updateStallDuration",(()=>{null!==this.lastStallTime&&(this.playbackPerformance.totalStallDurationMs+=new Date-this.lastStallTime,this.lastStallTime=null)})),f(this,"updatePauseDuration",(()=>{if(null!==this.lastPauseTime){const e=this.lastPauseTime;this.playbackPerformance.totalPauseDurationMs+=new Date-e,this.lastPauseTime=null}})),f(this,"updateWatchDurationForCurrentSegment",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1],n=t?t.lastStartPlayTime:null,i=this.getCurrentVideoTime();if(t&&null!==n&&"number"==typeof i&&"number"==typeof n){const e=i-n;e>0&&(t.watchedDurationMs+=e,t.lastStartPlayTime=null)}})),f(this,"logPlaybackPerformance",((e,t)=>{const{contextLogData:n={},userId:i,isAutoPlay:o,logContextEvent:r}=this.props,{is_closeup_video:a=!1}=n,{canPlayTime:s,detailedErrors:l,downloadedKiloBytes:c,errorCode:d,errorName:u,errorReason:_,hasFatalError:m,playbackStartTimestamp:f,totalPauseDurationMs:g,totalStallDurationMs:v,segments:y,srcString:b,loadStartTime:x,numberOfStalls:P,numberOfSeeks:w}=this.playbackPerformance,S=this.videoPlayerRef&&this.videoPlayerRef.video,E=e===h.DR,A=E&&!this.hasVideoSessionStarted,T=!E&&!this.hasVideoSessionEnded&&this.hasVideoSessionStarted;if(this.hls&&S&&(A||T)){var I;let A=-1;s&&x&&(A=s>x?s-x:0);let T=-1;s&&this.videoVisibleTime&&(T=s>this.videoVisibleTime?s-this.videoVisibleTime:0),E&&(this.videoSessionId=(0,h.Y7)(i),this.playerId=this.playerId||(0,h.EB)());const C={autoplaying:o,averageVideoKbps:-1,detailedErrors:l,downloadedKiloBytes:c,isCellular:!1,errorCode:d,errorName:u,errorReason:_,fatalError:m,nativeVideoDurationMs:S.duration*h.gJ||-1,numberOfStalls:P,numberOfSeeks:w,overallPausedDurationMs:g,overallBufferDurationMs:v,overallWatchedDurationMs:-1,rebufferRate:-1,playbackSessionId:this.videoSessionId,playbackStartTimestamp:f||-1,segments:[],sessionMark:e,screenPixelScale:null!==(I=window)&&void 0!==I&&I.devicePixelRatio?window.devicePixelRatio:-1,startupPlayerWidth:S.clientWidth,startupPlayerHeight:S.clientHeight,startupTimeMs:A,startupLatencyMs:T,startupVariantKbps:-1,startupVariantWatchedDurationMs:-1,startupVariantWidth:S.videoWidth,startupVariantHeight:S.videoHeight,videoUrl:b};if(!E&&y.length){const e=this.hls.levels,t=y[0];this.updateWatchDurationForCurrentSegment(),this.updateStallDuration();const n=y.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),i=y.reduce(((e,t)=>e+(t.watchedDurationMs||0)),0);let o=null,r=0,a=0;do{r+=y[a].watchedDurationMs,o=o||y[a].level,a+=1}while(a<y.length&&y[a].level===o);C.startupVariantKbps=t.indicatedKbps,C.startupVariantWatchedDurationMs=r,C.startupVariantWidth=t.sourceWidth,C.startupVariantHeight=t.sourceHeight,C.startupPlayerWidth=t.viewportWidth,C.startupPlayerHeight=t.viewportHeight,C.overallWatchedDurationMs=i,i>0?(C.averageVideoKbps=n/(i/h.gJ),C.rebufferRate=this.playbackPerformance.totalStallDurationMs/i):0===i&&(C.averageVideoKbps=-1,C.rebufferRate=-1,C.errorName="invalid_watch_duration"),C.segments=y}else C.errorName="invalid_watch_duration";(0,p.ZP)(C,!0,a,{playbackState:this.state.playbackState,...t});const{clientTrackingParams:R,component:k,durationNs:O,element:D,objectId:j,pairId:N,viewData:L,view:M,viewParameter:z,...B}=n;r({aux_data:{...B,is_closeup_video:a,playback_session_id:this.videoSessionId},clientTrackingParams:R,component:k,duration_ns:O,element:D,event_data:{videoPerformanceData:C},event_type:3606,object_id_str:j,pair_id:N,view_data:L,view_parameter:z,view_type:M}),E?(this.hasVideoSessionStarted=!0,this.hasVideoSessionEnded=!1):this.resetPlaybackMetrics(),(0,p.tE)(E?"sessionStart":"sessionEnd",!0,a,{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:i,visible:o,appInFocus:r,seekTime:a}=this.props;var s,l;a&&a!==e.seekTime&&this.setState({videoStartTime:a}),(typeof(s=e.src)!=typeof(l=i)||(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&&!r&&(this.logPlaybackPerformance(h.$f,{initiator:"update",loop:t}),this.logSessionStartOnNextPlay=!0),e.visible&&!1===o&&(this.logSessionStartOnNextPlay=!1,this.updatePauseDuration(),this.logPlaybackPerformance(h.$f,{initiator:"update",loop:t})),!1===e.visible&&!0===o&&(this.videoVisibleTime=this.videoVisibleTime||new Date,n?(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(h.DR,{initiator:"update"})):this.logSessionStartOnNextPlay=!0),n&&r&&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:i,accessibilityPlayLabel:o,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:a,aspectRatio:s,backgroundColor:l,captions:c,controls:d,loop:p,loopOverride:h,onDurationChange:_,onFullscreenChange:f,onLoadedChange:g,onControlsPlay:y,onPlayheadDown:b,onPlayheadUp:x,onSeek:P,onVolumeChange:w,playbackRate:S,playing:E,playsInline:A,poster:T,preload:I,quicExpGroup:C,src:R,volume:k}=this.props,{canPlayVideo:O,isManifestParsed:D,videoStartTime:j}=this.state,N=v(R,C);return(0,m.jsx)(u.nk,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:i,accessibilityPlayLabel:o,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:a,aspectRatio:s,backgroundColor:l,captions:c,controls:d,loop:void 0===h?p:h,onDurationChange:_,onEnded:this.handleEnded,onFullscreenChange:f,onLoadStart:this.handleLoadStart,onLoadedChange:g,onControlsPause:this.handleUserPause,onControlsPlay:y,onPlaying:this.handlePlaying,onPlayheadDown:b,onPlayheadUp:x,onReady:this.handleCanPlayVideo,onSeek:P,onSeeking:this.handleSeeking,onStalled:this.handleStalled,onTimeChange:this.handleTimeUpdate,onVolumeChange:w,onWaiting:this.handleStalled,playbackRate:S,onPlay:()=>{},onPlayError:()=>{},playing:D&&O&&E,playsInline:A,poster:T,preload:I,ref:this.setVideoPlayerRef,src:N,startTime:j,volume:k})}}const b=(0,i.memo)((function(e){const{country:t,isAuthenticated:n,isBot:i,isSocialBot:o,unauthId:r,userAgent:u}=(0,d.B)(),h=(0,a.Z)(),f=(0,s.Z)(),{browserName:g,browserVersion:v,isMobile:b}=u,{contextLogData:x={}}=e,{is_closeup_video:P=!1,view:w,viewParameter:S}=x,{checkExperiment:E}=(0,c.F)(),{seekTime:A}=(0,_.Hx)(),{clearSeekTime:T}=(0,_.RC)();let I=null;n&&(I=E("web_video_quic").group.length?E("web_video_quic").group:null);const{appUI:C}=(0,l.I)(),R=E("web_video_fail_to_start_fix").anyEnabled?C.appInFocus:e.appInFocus,k={browserName:g,browserVersion:v,country:t,isAuthenticated:n,isBot:i,is_closeup_video:P,isMobile:b,isSocialBot:o,view:w,viewParameter:S};return(0,p.r$)(k),(0,m.jsx)(y,{...e,userId:f.id||r,appInFocus:R,quicExpGroup:I,logContextEvent:h,seekTime:A,clearSeekTime:T})}))},964082:(e,t,n)=>{function i(e,t){const{organicVideosAutoplaying:n,promotedVideosAutoplaying:i}=t,o={...n,...i};for(const r in o){const{paused:t}=o[r];if(r!==e&&!t)return!1}return!0}n.d(t,{Z:()=>i})},36971:(e,t,n)=>{function i(e,t){const{organicVideosAutoplaying:n,promotedVideosAutoplaying:i}=t,o={...n,...i};return o[e]&&o[e].currentTime}n.d(t,{Z:()=>i})},428258:(e,t,n)=>{n.d(t,{Z:()=>r,t:()=>o});const i=()=>{var e,t;const n="undefined"!=typeof window?null===(e=window.navigator)||void 0===e||null===(t=e.connection)||void 0===t?void 0:t.effectiveType:void 0;let i,o=null===(r=window)||void 0===r||!r.devicePixelRatio||window.devicePixelRatio<=1?"1x":"2x";var r;return n?"4g"===n?i="40-80":(o="1x",i="0-1"):i="unknown",{downloadSpeedGroup:i,screenDimension:o}};function o(e){const{downloadSpeedGroup:t,screenDimension:n}=i(),o={"1x":e.V_EXP3,"2x":e.V_EXP5},r={"1x":e.V_EXP7,"2x":e.V_EXP7};return{unknown:o,"0-1":o,"1-5":{"1x":e.V_EXP4,"2x":e.V_EXP5},"5-10":{"1x":e.V_EXP5,"2x":e.V_EXP5},"10-20":{"1x":e.V_EXP6,"2x":e.V_EXP6},"20-40":r,"40-80":r,"80_or_above":r}[t][n]||e.V_720P||void 0}function r(e){const{video_list:t={}}=e,n=o(t),i=t.V_HLSV3_MOBILE||void 0;return n?{hlsv3:i,mp4:n}:{hlsv3:i}}},868565:(e,t,n)=>{function i(e){const t=e.videos&&e.videos.video_list;return t&&Object.keys(t).length?t.V_HLSV3_MOBILE||t.V_HLSV4||t.V_720P:null}n.d(t,{Z:()=>i})},463045:(e,t,n)=>{function i(e,t){const{organicVideosAutoplaying:n,promotedVideosAutoplaying:i}=t,o={...n,...i};return!!o[e]&&!o[e].paused}n.d(t,{Z:()=>i})},969315:(e,t,n)=>{n.d(t,{ZP:()=>u,r$:()=>c,tE:()=>d});var i=n(311560),o=n(172071),r=n(179888);const a=["isCellular","videoUrl","sessionMark"];let s={},l="";const c=e=>{const{browserName:t,browserVersion:n,country:o,isAuthenticated:r,isBot:a,isMobile:c,isSocialBot:d,view:u="unknown",viewParameter:p="unknown"}=e;l=(d?"socialBot":a&&"bot")||"nonbot";const h=(0,i.Z)(o);s={browserName:t,browserVersion:(null==n?void 0:n.split(".")[0])||"0",isAuthenticated:r,isMobile:c,region:h,view:u,viewParameter:p}};function d(e,t,n,i={}){const r=n?"closeup":"nonCloseup",a=t?"hls":"nonHls",c={...i,...s},d=`web.video.${a}.${l}.${r}.${e}`;o.Z.increment(d,1,c)}function u(e,t,n,i={}){const c=n?"closeup":"nonCloseup",d=t?"hls":"nonHls",u=e.sessionMark===r.DR?"sessionStart":"sessionEnd",p={...i,...s};if(Object.entries(e).forEach((([t,n])=>{const i=`web.video.${d}.${l}.${c}.${u}.${t}`,r=parseInt(n,10),s="number"==typeof r?r:-1;var h;if(!a.includes(t))if(t.includes("fatalError")&&!0===n){const{errorCode:t,errorName:n,errorReason:r}=e;o.Z.increment(i,1,{errorCode:t,errorName:n,errorReason:r,...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";o.Z.increment(i,1,{dimensionBucket:e,...p})}else if("numberOfStalls"===t){let e=n;s>1e3?e="over1000":s>10?e="over10":s<0&&(e="negative"),o.Z.increment(i,1,{numberOfStalls:e,...p})}else"screenPixelScale"===t?o.Z.increment(i,1,{screenPixelScale:n||-1,...p}):s>=0?(0===s&&o.Z.increment(`${i}.zero`,1,p),o.Z.timing(i,s,1),o.Z.timing(`${i}_with_tags`,s,1,p)):s<0&&o.Z.increment(`${i}.negative`,1,p)})),e.sessionMark!==r.DR){const{rebufferRate:t,screenPixelScale:n,startupLatencyMs:i,startupVariantWidth:r,startupPlayerWidth:a}=e,s=`web.video.${d}.${l}.${c}.${u}`;if("number"==typeof r&&"number"==typeof a&&"number"==typeof n){const e=1.5*r>n*a;o.Z.increment(`${s}.upscaled.${e?"good":"bad"}`,1,p)}"number"==typeof i&&o.Z.increment(`${s}.startupLatency.${i<500?"good":"bad"}`,1,p),"number"==typeof t&&o.Z.increment(`${s}.rebufferRate.${t<.01?"good":"bad"}`,1,p)}}},179888:(e,t,n)=>{n.d(t,{$f:()=>r,Cy:()=>c,DR:()=>o,EB:()=>p,Fm:()=>l,Y7:()=>u,bR:()=>s,gJ:()=>a,lG:()=>d});var i=n(172045);const o=1,r=2,a=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,i.Z)()}function p(){return(0,i.Z)()}},121630:(e,t,n)=>{n.d(t,{Z:()=>r,e:()=>o});var i=n(81226);const o=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 i=document.querySelector('[data-test-id="search-tab-bar"],[data-root-margin="search-one-bar"]');if(null!==i){const{height:e}=i.getBoundingClientRect();t+=e}}return-1*t+"px 0px 0px 0px"},r=e=>{var t,n,o,r,a;return(0,i.Z)((null===(t=e.videos)||void 0===t?void 0:t.duration)||(null===(n=e.videos)||void 0===n||null===(o=n.video_list)||void 0===o||null===(r=o.V_HLSV4)||void 0===r?void 0:r.duration)||(null===(a=e.story_pin_data)||void 0===a?void 0:a.total_video_duration)||0)}},905723:(e,t,n)=>{n.d(t,{Z:()=>i});const i={V_HLSV4:"V_HLSV4",V_720P:"V_720P"}},229428:(e,t,n)=>{function i(e){return e.filter((e=>e.is_stela))}function o(e){return e.filter((e=>!!e.label))}n.d(t,{k:()=>i,m:()=>o})},43760:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(768559),o=n(102500),r=n(48714);function a({url:e,pinId:t,pin:n,location:a,auxData:s}){var l,c;const d={check_only:!0,client_tracking_params:n?(0,i.Z)({boardUrl:null===(l=n.board)||void 0===l?void 0:l.url,callToCreateSourcePinId:n.call_to_create_source_pin_id,location:a,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,o.Z)(d).callGet().then((o=>{if(o&&o.resource_response&&!o.resource_response.error){const{resource_response:e}=o,{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 o=(0,i.Z)({boardUrl:null===(l=n.board)||void 0===l?void 0:l.url,callToCreateSourcePinId:n.call_to_create_source_pin_id,location:a,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,r.Gj)({url:e,pinId:t,csrId:null,clientTrackingParams:o,auxData:s})}else(0,r.Gj)({url:e,pinId:t})}))}},487392:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(784590),o=n(19121),r=n(780280);function a(){var e;const t=(0,r.B)(),n=(0,o.Z)(),{advertiser:a}=t,s=(0,i.Z)(null!=a&&a.merchant_id?null:{name:"UserResource",options:{user_id:a?a.owner_user_id:n.isAuth&&n.id,field_set_key:"merchant_summary"}});return{merchantId:(null==a?void 0:a.merchant_id)||(null===(e=s.data)||void 0===e?void 0:e.ppa_merchant_id)||"",advertiserId:(null==a?void 0:a.id)||"",ownerUserId:(null==a?void 0:a.owner_user_id)||(n.isAuth?n.id:""),advertiser:a}}},183051:(e,t,n)=>{n.d(t,{C:()=>o,O:()=>i});const i=()=>["2","100","101","102","103","129","138","139","140","143","150","152","155","9051"],o=()=>["108","114","115","116","117","118","119","121","123","124","125","126","127","129","130","131","132","133","134","136","137","144","145","146","147","148","149","153","154","155","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","174","175","176","179","180","181","182","183","184","185","186","188","189","4029","4043","4055"]},488177:(e,t,n)=>{n.d(t,{$E:()=>i,AG:()=>y,EF:()=>p,F4:()=>m,HB:()=>x,Hm:()=>u,N7:()=>r,OF:()=>c,Qv:()=>d,RS:()=>f,TL:()=>h,Wd:()=>l,Wg:()=>P,gp:()=>v,n6:()=>_,pg:()=>o,qN:()=>a,ul:()=>g,v6:()=>b,yn:()=>s});const i=[1,3],o={1:5,2:8,3:24,4:24},r={inStockCount:"inStockProductCount",outOfStockCount:"outOfStockProductCount",preorderCount:"preorderProductCount"},a={PROCESSING:"PROCESSING",FAILED:"FAILED",COMPLETED:"COMPLETED",COMPLETED_EARLY:"COMPLETED_EARLY",UNDER_REVIEW:"UNDER_REVIEW",DISAPPROVED:"DISAPPROVED",QUEUED_FOR_PROCESSING:"QUEUED_FOR_PROCESSING",UNDER_APPEAL:"UNDER_APPEAL"},s={PENDING:"PENDING",ACTIVE:"ACTIVE",PAUSED:"PAUSED",DISABLED:"DISABLED",INACTIVE:"INACTIVE"},l={APPROVED:"approved",PENDING:"pending",DECLINED:"declined",REVOKED:"revoked",STAGING:"staging",PROD_TEST:"prod_test",APPEAL_PENDING:"appeal_pending"},c={MARKETPLACE:"MARKETPLACE",MARKETPLACE_SECOND_HAND:"MARKETPLACE_SECOND_HAND",MARKETPLACE_AFFILIATES:"MARKETPLACE_AFFILIATES",MARKETPLACE_WHOLESALE:"MARKETPLACE_WHOLESALE",PROHIBITED_PRODUCTS:"PROHIBITED_PRODUCTS",SERVICES:"SERVICES",DOMAIN_AGE:"DOMAIN_AGE",DOMAIN_MISMATCH:"DOMAIN_MISMATCH",SHIPPING:"SHIPPING",RETURNS:"RETURNS",BROKEN_URL:"BROKEN_URL",BROKEN_404:"BROKEN_404",BROKEN_REGISTRATION:"BROKEN_REGISTRATION",INCOMPLETE:"INCOMPLETE",AUTHENTICITY:"AUTHENTICITY",IN_STOCK:"IN_STOCK",BANNER_ADS:"BANNER_ADS",LOW_QUALITY_IMAGERY:"LOW_QUALITY_IMAGERY",SALE:"SALE",OUT_OF_DATE:"OUT_OF_DATE",PRODUCTS:"PRODUCTS",POP_UP:"POP_UP",MINIMUM_WEBSITE_QUALITY:"MINIMUM_WEBSITE_QUALITY",BROKEN_SOCIAL_MEDIA:"BROKEN_SOCIAL_MEDIA",INACTIVE_FEED:"INACTIVE_FEED",TERMINATED:"TERMINATED",LABELING:"LABELING",TS:"TS",ADS_QUALITY:"ADS_QUALITY",PINNER:"PINNER",SHOPPING:"SHOPPING",MERCHANT:"MERCHANT",RESALE_MARKETPLACE:"RESALE_MARKETPLACE",AFFILIATE_MARKETPLACE:"AFFILIATE_MARKETPLACE",WEBSITE_REQUIREMENTS:"WEBSITE_REQUIREMENTS",PRODUCT_REQUIREMENTS:"PRODUCT_REQUIREMENTS",BRAND_REPUTATION:"BRAND_REPUTATION"},d=[c.TS,c.ADS_QUALITY,c.PINNER,c.SHOPPING,c.MERCHANT],u={ACTIVE:"ACTIVE",INACTIVE:"INACTIVE",NEW_NOT_YET_ACTIVE:"NEW_NOT_YET_ACTIVE",TESTING:"TESTING"},p=[a.PROCESSING,a.QUEUED_FOR_PROCESSING],h={DISMISS_INGESTION_STATUS_POPUP:1,DATA_SOURCE_PENDING_GOT_IT_DISMISSED:2,DATA_SOURCE_VERIFIED_GOT_IT_DISMISSED:3,PRODUCT_GROUPS_CREATE_GOT_IT_DISMISSED:4,PRODUCT_GROUPS_PROMOTE_GOT_IT_DISMISSED:5,ADD_DATA_SOURCE_GOT_IT_DISMISSED:6,FEED_PROFILES_NEW_BADGE_SEEN:7,PRODUCT_GROUPS_SELECTED_METRICS:8,SHOPIFY_COLLECTION_MODAL_GOT_IT_DISMISSED:9,SHOPIFY_COLLECTION_CALLOUT_GOT_IT_DISMISSED:10,PRODUCT_GROUPS_NEW_BADGE_SEEN:11,PRODUCT_GROUPS_METRICS_SELECTED_NUM_OF_DAYS:12,I2PC_MODAL_GOT_IT_DISMISSED:13},_={PENDING:0,SUCCESS:1,UNKNOWN_FAILURE:2,BAD_URL_OR_CREDENTIAL:3,UNSUPPORTED_PROTOCOL:4,BAD_FEED_FORMAT:5,EMPTY_FEED_PROFILE:6,HTML:7},m="USD",f="None",g={IN_STOCK:"IN STOCK",OUT_OF_STOCK:"OUT OF STOCK",PREORDER:"PREORDER"},v=e=>[{value:"AED",label:e.bt("AED - United Arab Emirates Dirham", "AED - United Arab Emirates Dirham", "[catalogs] name of AED currency", undefined, true)},{value:"AFN",label:e.bt("AFN - Afghanistan Afghani", "AFN - Afghanistan Afghani", "[catalogs] name of AFN currency", undefined, true)},{value:"ALL",label:e.bt("ALL - Albania Lek", "ALL - Albania Lek", "[catalogs] name of ALL currency", undefined, true)},{value:"AMD",label:e.bt("AMD - Armenia Dram", "AMD - Armenia Dram", "[catalogs] name of AMD currency", undefined, true)},{value:"ANG",label:e.bt("ANG - Netherlands Antilles Guilder", "ANG - Netherlands Antilles Guilder", "[catalogs] name of ANG currency", undefined, true)},{value:"AOA",label:e.bt("AOA - Angola Kwanza", "AOA - Angola Kwanza", "[catalogs] name of AOA currency", undefined, true)},{value:"ARS",label:e.bt("ARS - Argentina Peso", "ARS - Argentina Peso", "[catalogs] name of ARS currency", undefined, true)},{value:"AUD",label:e.bt("AUD - Australia Dollar", "AUD - Australia Dollar", "[catalogs] name of AUD currency", undefined, true)},{value:"AWG",label:e.bt("AWG - Aruba Guilder", "AWG - Aruba Guilder", "[catalogs] name of AWG currency", undefined, true)},{value:"AZN",label:e.bt("AZN - Azerbaijan New Manat", "AZN - Azerbaijan New Manat", "[catalogs] name of AZN currency", undefined, true)},{value:"BAM",label:e.bt("BAM - Bosnia and Herzegovina Convertible Marka", "BAM - Bosnia and Herzegovina Convertible Marka", "[catalogs] name of BAM currency", undefined, true)},{value:"BBD",label:e.bt("BBD - Barbados Dollar", "BBD - Barbados Dollar", "[catalogs] name of BBD currency", undefined, true)},{value:"BDT",label:e.bt("BDT - Bangladesh Taka", "BDT - Bangladesh Taka", "[catalogs] name of BDT currency", undefined, true)},{value:"BGN",label:e.bt("BGN - Bulgaria Lev", "BGN - Bulgaria Lev", "[catalogs] name of BGN currency", undefined, true)},{value:"BHD",label:e.bt("BHD - Bahrain Dinar", "BHD - Bahrain Dinar", "[catalogs] name of BHD currency", undefined, true)},{value:"BIF",label:e.bt("BIF - Burundi Franc", "BIF - Burundi Franc", "[catalogs] name of BIF currency", undefined, true)},{value:"BMD",label:e.bt("BMD - Bermuda Dollar", "BMD - Bermuda Dollar", "[catalogs] name of BMD currency", undefined, true)},{value:"BND",label:e.bt("BND - Brunei Darussalam Dollar", "BND - Brunei Darussalam Dollar", "[catalogs] name of BND currency", undefined, true)},{value:"BOB",label:e.bt("BOB - Bolivia Boliviano", "BOB - Bolivia Boliviano", "[catalogs] name of BOB currency", undefined, true)},{value:"BRL",label:e.bt("BRL - Brazil Real", "BRL - Brazil Real", "[catalogs] name of BRL currency", undefined, true)},{value:"BSD",label:e.bt("BSD - Bahamas Dollar", "BSD - Bahamas Dollar", "[catalogs] name of BSD currency", undefined, true)},{value:"BTN",label:e.bt("BTN - Bhutan Ngultrum", "BTN - Bhutan Ngultrum", "[catalogs] name of BTN currency", undefined, true)},{value:"BWP",label:e.bt("BWP - Botswana Pula", "BWP - Botswana Pula", "[catalogs] name of BWP currency", undefined, true)},{value:"BYR",label:e.bt("BYR - Belarus Ruble", "BYR - Belarus Ruble", "[catalogs] name of BYR currency", undefined, true)},{value:"BZD",label:e.bt("BZD - Belize Dollar", "BZD - Belize Dollar", "[catalogs] name of BZD currency", undefined, true)},{value:"CAD",label:e.bt("CAD - Canada Dollar", "CAD - Canada Dollar", "[catalogs] name of CAD currency", undefined, true)},{value:"CDF",label:e.bt("CDF - Congo/Kinshasa Franc", "CDF - Congo/Kinshasa Franc", "[catalogs] name of CDF currency", undefined, true)},{value:"CHF",label:e.bt("CHF - Switzerland Franc", "CHF - Switzerland Franc", "[catalogs] name of CHF currency", undefined, true)},{value:"CLP",label:e.bt("CLP - Chile Peso", "CLP - Chile Peso", "[catalogs] name of CLP currency", undefined, true)},{value:"CNY",label:e.bt("CNY - China Yuan Renminbi", "CNY - China Yuan Renminbi", "[catalogs] name of CNY currency", undefined, true)},{value:"COP",label:e.bt("COP - Colombia Peso", "COP - Colombia Peso", "[catalogs] name of COP currency", undefined, true)},{value:"CRC",label:e.bt("CRC - Costa Rica Colon", "CRC - Costa Rica Colon", "[catalogs] name of CRC currency", undefined, true)},{value:"CUC",label:e.bt("CUC - Cuba Convertible Peso", "CUC - Cuba Convertible Peso", "[catalogs] name of CUC currency", undefined, true)},{value:"CUP",label:e.bt("CUP - Cuba Peso", "CUP - Cuba Peso", "[catalogs] name of CUP currency", undefined, true)},{value:"CVE",label:e.bt("CVE - Cape Verde Escudo", "CVE - Cape Verde Escudo", "[catalogs] name of CVE currency", undefined, true)},{value:"CZK",label:e.bt("CZK - Czech Republic Koruna", "CZK - Czech Republic Koruna", "[catalogs] name of CZK currency", undefined, true)},{value:"DJF",label:e.bt("DJF - Djibouti Franc", "DJF - Djibouti Franc", "[catalogs] name of DJF currency", undefined, true)},{value:"DKK",label:e.bt("DKK - Denmark Krone", "DKK - Denmark Krone", "[catalogs] name of DKK currency", undefined, true)},{value:"DOP",label:e.bt("DOP - Dominican Republic Peso", "DOP - Dominican Republic Peso", "[catalogs] name of DOP currency", undefined, true)},{value:"DZD",label:e.bt("DZD - Algeria Dinar", "DZD - Algeria Dinar", "[catalogs] name of DZD currency", undefined, true)},{value:"EGP",label:e.bt("EGP - Egypt Pound", "EGP - Egypt Pound", "[catalogs] name of EGP currency", undefined, true)},{value:"ERN",label:e.bt("ERN - Eritrea Nakfa", "ERN - Eritrea Nakfa", "[catalogs] name of ERN currency", undefined, true)},{value:"ETB",label:e.bt("ETB - Ethiopia Birr", "ETB - Ethiopia Birr", "[catalogs] name of ETB currency", undefined, true)},{value:"EUR",label:e.bt("EUR - Euro Member Countries Euro", "EUR - Euro Member Countries", "[catalogs] name of EUR currency", undefined, true)},{value:"FJD",label:e.bt("FJD - Fiji Dollar", "FJD - Fiji Dollar", "[catalogs] name of FJD currency", undefined, true)},{value:"FKP",label:e.bt("FKP - Falkland Islands (Malvinas) Pound", "FKP - Falkland Islands (Malvinas) Pound", "[catalogs] name of FKP currency", undefined, true)},{value:"GBP",label:e.bt("GBP - Great Britain Pound", "GBP - United Kingdom Pound", "[catalogs] name of GBP currency", undefined, true)},{value:"GEL",label:e.bt("GEL - Georgia Lari", "GEL - Georgia Lari", "[catalogs] name of GEL currency", undefined, true)},{value:"GGP",label:e.bt("GGP - Guernsey Pound", "GGP - Guernsey Pound", "[catalogs] name of GGP currency", undefined, true)},{value:"GHS",label:e.bt("GHS - Ghana Cedi", "GHS - Ghana Cedi", "[catalogs] name of GHS currency", undefined, true)},{value:"GIP",label:e.bt("GIP - Gibraltar Pound", "GIP - Gibraltar Pound", "[catalogs] name of GIP currency", undefined, true)},{value:"GMD",label:e.bt("GMD - Gambia Dalasi", "GMD - Gambia Dalasi", "[catalogs] name of GMD currency", undefined, true)},{value:"GNF",label:e.bt("GNF - Guinea Franc", "GNF - Guinea Franc", "[catalogs] name of GNF currency", undefined, true)},{value:"GTQ",label:e.bt("GTQ - Guatemala Quetzal", "GTQ - Guatemala Quetzal", "[catalogs] name of GTQ currency", undefined, true)},{value:"GYD",label:e.bt("GYD - Guyana Dollar", "GYD - Guyana Dollar", "[catalogs] name of GYD currency", undefined, true)},{value:"HKD",label:e.bt("HKD - Hong Kong Dollar", "HKD - Hong Kong Dollar", "[catalogs] name of HKD currency", undefined, true)},{value:"HNL",label:e.bt("HNL - Honduras Lempira", "HNL - Honduras Lempira", "[catalogs] name of HNL currency", undefined, true)},{value:"HRK",label:e.bt("HRK - Croatia Kuna", "HRK - Croatia Kuna", "[catalogs] name of HRK currency", undefined, true)},{value:"HTG",label:e.bt("HTG - Haiti Gourde", "HTG - Haiti Gourde", "[catalogs] name of HTG currency", undefined, true)},{value:"HUF",label:e.bt("HUF - Hungary Forint", "HUF - Hungary Forint", "[catalogs] name of HUF currency", undefined, true)},{value:"IDR",label:e.bt("IDR - Indonesia Rupiah", "IDR - Indonesia Rupiah", "[catalogs] name of IDR currency", undefined, true)},{value:"ILS",label:e.bt("ILS - Israel Shekel", "ILS - Israel Shekel", "[catalogs] name of ILS currency", undefined, true)},{value:"IMP",label:e.bt("IMP - Isle of Man Pound", "IMP - Isle of Man Pound", "[catalogs] name of IMP currency", undefined, true)},{value:"INR",label:e.bt("INR - India Rupee", "INR - India Rupee", "[catalogs] name of INR currency", undefined, true)},{value:"IQD",label:e.bt("IQD - Iraq Dinar", "IQD - Iraq Dinar", "[catalogs] name of IQD currency", undefined, true)},{value:"IRR",label:e.bt("IRR - Iran Rial", "IRR - Iran Rial", "[catalogs] name of IRR currency", undefined, true)},{value:"ISK",label:e.bt("ISK - Iceland Krona", "ISK - Iceland Krona", "[catalogs] name of ISK currency", undefined, true)},{value:"JEP",label:e.bt("JEP - Jersey Pound", "JEP - Jersey Pound", "[catalogs] name of JEP currency", undefined, true)},{value:"JMD",label:e.bt("JMD - Jamaica Dollar", "JMD - Jamaica Dollar", "[catalogs] name of JMD currency", undefined, true)},{value:"JOD",label:e.bt("JOD - Jordan Dinar", "JOD - Jordan Dinar", "[catalogs] name of JOD currency", undefined, true)},{value:"JPY",label:e.bt("JPY - Japan Yen", "JPY - Japan Yen", "[catalogs] name of JPY currency", undefined, true)},{value:"KES",label:e.bt("KES - Kenya Shilling", "KES - Kenya Shilling", "[catalogs] name of KES currency", undefined, true)},{value:"KGS",label:e.bt("KGS - Kyrgyzstan Som", "KGS - Kyrgyzstan Som", "[catalogs] name of KGS currency", undefined, true)},{value:"KHR",label:e.bt("KHR - Cambodia Riel", "KHR - Cambodia Riel", "[catalogs] name of KHR currency", undefined, true)},{value:"KMF",label:e.bt("KMF - Comoros Franc", "KMF - Comoros Franc", "[catalogs] name of KMF currency", undefined, true)},{value:"KPW",label:e.bt("KPW - Korea (North) Won", "KPW - Korea (North) Won", "[catalogs] name of KPW currency", undefined, true)},{value:"KRW",label:e.bt("KRW - Korea (South) Won", "KRW - Korea (South) Won", "[catalogs] name of KRW currency", undefined, true)},{value:"KWD",label:e.bt("KWD - Kuwait Dinar", "KWD - Kuwait Dinar", "[catalogs] name of KWD currency", undefined, true)},{value:"KYD",label:e.bt("KYD - Cayman Islands Dollar", "KYD - Cayman Islands Dollar", "[catalogs] name of KYD currency", undefined, true)},{value:"KZT",label:e.bt("KZT - Kazakhstan Tenge", "KZT - Kazakhstan Tenge", "[catalogs] name of KZT currency", undefined, true)},{value:"LAK",label:e.bt("LAK - Laos Kip", "LAK - Laos Kip", "[catalogs] name of LAK currency", undefined, true)},{value:"LBP",label:e.bt("LBP - Lebanon Pound", "LBP - Lebanon Pound", "[catalogs] name of LBP currency", undefined, true)},{value:"LKR",label:e.bt("LKR - Sri Lanka Rupee", "LKR - Sri Lanka Rupee", "[catalogs] name of LKR currency", undefined, true)},{value:"LRD",label:e.bt("LRD - Liberia Dollar", "LRD - Liberia Dollar", "[catalogs] name of LRD currency", undefined, true)},{value:"LSL",label:e.bt("LSL - Lesotho Loti", "LSL - Lesotho Loti", "[catalogs] name of LSL currency", undefined, true)},{value:"LYD",label:e.bt("LYD - Libya Dinar", "LYD - Libya Dinar", "[catalogs] name of LYD currency", undefined, true)},{value:"MAD",label:e.bt("MAD - Morocco Dirham", "MAD - Morocco Dirham", "[catalogs] name of MAD currency", undefined, true)},{value:"MDL",label:e.bt("MDL - Moldova Leu", "MDL - Moldova Leu", "[catalogs] name of MDL currency", undefined, true)},{value:"MGA",label:e.bt("MGA - Madagascar Ariary", "MGA - Madagascar Ariary", "[catalogs] name of MGA currency", undefined, true)},{value:"MKD",label:e.bt("MKD - Macedonia Denar", "MKD - Macedonia Denar", "[catalogs] name of MKD currency", undefined, true)},{value:"MMK",label:e.bt("MMK - Myanmar (Burma) Kyat", "MMK - Myanmar (Burma) Kyat", "[catalogs] name of MMK currency", undefined, true)},{value:"MNT",label:e.bt("MNT - Mongolia Tughrik", "MNT - Mongolia Tughrik", "[catalogs] name of MNT currency", undefined, true)},{value:"MOP",label:e.bt("MOP - Macau Pataca", "MOP - Macau Pataca", "[catalogs] name of MOP currency", undefined, true)},{value:"MRO",label:e.bt("MRO - Mauritania Ouguiya", "MRO - Mauritania Ouguiya", "[catalogs] name of MRO currency", undefined, true)},{value:"MUR",label:e.bt("MUR - Mauritius Rupee", "MUR - Mauritius Rupee", "[catalogs] name of MUR currency", undefined, true)},{value:"MVR",label:e.bt("MVR - Maldives (Maldive Islands) Rufiyaa", "MVR - Maldives (Maldive Islands) Rufiyaa", "[catalogs] name of MVR currency", undefined, true)},{value:"MWK",label:e.bt("MWK - Malawi Kwacha", "MWK - Malawi Kwacha", "[catalogs] name of MWK currency", undefined, true)},{value:"MXN",label:e.bt("MXN - Mexico Peso", "MXN - Mexico Peso", "[catalogs] name of MXN currency", undefined, true)},{value:"MYR",label:e.bt("MYR - Malaysia Ringgit", "MYR - Malaysia Ringgit", "[catalogs] name of MYR currency", undefined, true)},{value:"MZN",label:e.bt("MZN - Mozambique Metical", "MZN - Mozambique Metical", "[catalogs] name of MZN currency", undefined, true)},{value:"NAD",label:e.bt("NAD - Namibia Dollar", "NAD - Namibia Dollar", "[catalogs] name of NAD currency", undefined, true)},{value:"NGN",label:e.bt("NGN - Nigeria Naira", "NGN - Nigeria Naira", "[catalogs] name of NGN currency", undefined, true)},{value:"NIO",label:e.bt("NIO - Nicaragua Cordoba", "NIO - Nicaragua Cordoba", "[catalogs] name of NIO currency", undefined, true)},{value:"NOK",label:e.bt("NOK - Norway Krone", "NOK - Norway Krone", "[catalogs] name of NOK currency", undefined, true)},{value:"NPR",label:e.bt("NPR - Nepal Rupee", "NPR - Nepal Rupee", "[catalogs] name of NPR currency", undefined, true)},{value:"NZD",label:e.bt("NZD - New Zealand Dollar", "NZD - New Zealand Dollar", "[catalogs] name of NZD currency", undefined, true)},{value:"OMR",label:e.bt("OMR - Oman Rial", "OMR - Oman Rial", "[catalogs] name of OMR currency", undefined, true)},{value:"PAB",label:e.bt("PAB - Panama Balboa", "PAB - Panama Balboa", "[catalogs] name of PAB currency", undefined, true)},{value:"PEN",label:e.bt("PEN - Peru Nuevo Sol", "PEN - Peru Nuevo Sol", "[catalogs] name of PEN currency", undefined, true)},{value:"PGK",label:e.bt("PGK - Papua New Guinea Kina", "PGK - Papua New Guinea Kina", "[catalogs] name of PGK currency", undefined, true)},{value:"PHP",label:e.bt("PHP - Philippines Peso", "PHP - Philippines Peso", "[catalogs] name of PHP currency", undefined, true)},{value:"PKR",label:e.bt("PKR - Pakistan Rupee", "PKR - Pakistan Rupee", "[catalogs] name of PKR currency", undefined, true)},{value:"PLN",label:e.bt("PLN - Poland Zloty", "PLN - Poland Zloty", "[catalogs] name of PLN currency", undefined, true)},{value:"PYG",label:e.bt("PYG - Paraguay Guarani", "PYG - Paraguay Guarani", "[catalogs] name of PYG currency", undefined, true)},{value:"QAR",label:e.bt("QAR - Qatar Riyal", "QAR - Qatar Riyal", "[catalogs] name of QAR currency", undefined, true)},{value:"RON",label:e.bt("RON - Romania New Leu", "RON - Romania New Leu", "[catalogs] name of RON currency", undefined, true)},{value:"RSD",label:e.bt("RSD - Serbia Dinar", "RSD - Serbia Dinar", "[catalogs] name of RSD currency", undefined, true)},{value:"RUB",label:e.bt("RUB - Russia Ruble", "RUB - Russia Ruble", "[catalogs] name of RUB currency", undefined, true)},{value:"RWF",label:e.bt("RWF - Rwanda Franc", "RWF - Rwanda Franc", "[catalogs] name of RWF currency", undefined, true)},{value:"SAR",label:e.bt("SAR - Saudi Arabia Riyal", "SAR - Saudi Arabia Riyal", "[catalogs] name of SAR currency", undefined, true)},{value:"SBD",label:e.bt("SBD - Solomon Islands Dollar", "SBD - Solomon Islands Dollar", "[catalogs] name of SBD currency", undefined, true)},{value:"SCR",label:e.bt("SCR - Seychelles Rupee", "SCR - Seychelles Rupee", "[catalogs] name of SCR currency", undefined, true)},{value:"SDG",label:e.bt("SDG - Sudan Pound", "SDG - Sudan Pound", "[catalogs] name of SDG currency", undefined, true)},{value:"SEK",label:e.bt("SEK - Sweden Krona", "SEK - Sweden Krona", "[catalogs] name of SEK currency", undefined, true)},{value:"SGD",label:e.bt("SGD - Singapore Dollar", "SGD - Singapore Dollar", "[catalogs] name of SGD currency", undefined, true)},{value:"SHP",label:e.bt("SHP - Saint Helena Pound", "SHP - Saint Helena Pound", "[catalogs] name of SHP currency", undefined, true)},{value:"SLL",label:e.bt("SLL - Sierra Leone Leone", "SLL - Sierra Leone Leone", "[catalogs] name of SLL currency", undefined, true)},{value:"SOS",label:e.bt("SOS - Somalia Shilling", "SOS - Somalia Shilling", "[catalogs] name of SOS currency", undefined, true)},{value:"SPL",label:e.bt("SPL - Seborga Luigino", "SPL - Seborga Luigino", "[catalogs] name of SPL currency", undefined, true)},{value:"SRD",label:e.bt("SRD - Suriname Dollar", "SRD - Suriname Dollar", "[catalogs] name of SRD currency", undefined, true)},{value:"STD",label:e.bt("STD - São Tomé and Príncipe Dobra", "STD - São Tomé and Príncipe Dobra", "[catalogs] name of STD currency", undefined, true)},{value:"SVC",label:e.bt("SVC - El Salvador Colon", "SVC - El Salvador Colon", "[catalogs] name of SVC currency", undefined, true)},{value:"SYP",label:e.bt("SYP - Syria Pound", "SYP - Syria Pound", "[catalogs] name of SYP currency", undefined, true)},{value:"SZL",label:e.bt("SZL - Swaziland Lilangeni", "SZL - Swaziland Lilangeni", "[catalogs] name of SZL currency", undefined, true)},{value:"THB",label:e.bt("THB - Thailand Baht", "THB - Thailand Baht", "[catalogs] name of THB currency", undefined, true)},{value:"TJS",label:e.bt("TJS - Tajikistan Somoni", "TJS - Tajikistan Somoni", "[catalogs] name of TJS currency", undefined, true)},{value:"TMT",label:e.bt("TMT - Turkmenistan Manat", "TMT - Turkmenistan Manat", "[catalogs] name of TMT currency", undefined, true)},{value:"TND",label:e.bt("TND - Tunisia Dinar", "TND - Tunisia Dinar", "[catalogs] name of TND currency", undefined, true)},{value:"TOP",label:e.bt("TOP - Tonga Pa'anga", "TOP - Tonga Pa'anga", "[catalogs] name of TOP currency", undefined, true)},{value:"TRY",label:e.bt("TRY - Turkey Lira", "TRY - Turkey Lira", "[catalogs] name of TRY currency", undefined, true)},{value:"TTD",label:e.bt("TTD - Trinidad and Tobago Dollar", "TTD - Trinidad and Tobago Dollar", "[catalogs] name of TTD currency", undefined, true)},{value:"TVD",label:e.bt("TVD - Tuvalu Dollar", "TVD - Tuvalu Dollar", "[catalogs] name of TVD currency", undefined, true)},{value:"TWD",label:e.bt("TWD - Taiwan New Dollar", "TWD - Taiwan New Dollar", "[catalogs] name of TWD currency", undefined, true)},{value:"TZS",label:e.bt("TZS - Tanzania Shilling", "TZS - Tanzania Shilling", "[catalogs] name of TZS currency", undefined, true)},{value:"UAH",label:e.bt("UAH - Ukraine Hryvnia", "UAH - Ukraine Hryvnia", "[catalogs] name of UAH currency", undefined, true)},{value:"UGX",label:e.bt("UGX - Uganda Shilling", "UGX - Uganda Shilling", "[catalogs] name of UGX currency", undefined, true)},{value:"USD",label:e.bt("USD - United States Dollar", "USD - United States Dollar", "[catalogs] name of USD currency", undefined, true)},{value:"UYU",label:e.bt("UYU - Uruguay Peso", "UYU - Uruguay Peso", "[catalogs] name of UYU currency", undefined, true)},{value:"UZS",label:e.bt("UZS - Uzbekistan Som", "UZS - Uzbekistan Som", "[catalogs] name of UZS currency", undefined, true)},{value:"VEF",label:e.bt("VEF - Venezuela Bolivar", "VEF - Venezuela Bolivar", "[catalogs] name of VEF currency", undefined, true)},{value:"VND",label:e.bt("VND - Vietnam Dong", "VND - Viet Nam Dong", "[catalogs] name of VND currency", undefined, true)},{value:"VUV",label:e.bt("VUV - Vanuatu Vatu", "VUV - Vanuatu Vatu", "[catalogs] name of VUV currency", undefined, true)},{value:"WST",label:e.bt("WST - Samoa Tala", "WST - Samoa Tala", "[catalogs] name of WST currency", undefined, true)},{value:"XAF",label:e.bt("XAF - Communauté Financière Africaine (BEAC) CFA Franc BEAC", "XAF - Communauté Financière Africaine (BEAC) CFA Franc BEAC", "[catalogs] name of XAF currency", undefined, true)},{value:"XCD",label:e.bt("XCD - East Caribbean Dollar", "XCD - East Caribbean Dollar", "[catalogs] name of XCD currency", undefined, true)},{value:"XDR",label:e.bt("XDR - International Monetary Fund (IMF) Special Drawing Rights", "XDR - International Monetary Fund (IMF) Special Drawing Rights", "[catalogs] name of XDR currency", undefined, true)},{value:"XOF",label:e.bt("XOF - Communauté Financière Africaine (BCEAO) Franc", "XOF - Communauté Financière Africaine (BCEAO) Franc", "[catalogs] name of XOF currency", undefined, true)},{value:"XPF",label:e.bt("XPF - Comptoirs Français du Pacifique (CFP) Franc", "XPF - Comptoirs Français du Pacifique (CFP) Franc", "[catalogs] name of XPF currency", undefined, true)},{value:"YER",label:e.bt("YER - Yemen Rial", "YER - Yemen Rial", "[catalogs] name of YER currency", undefined, true)},{value:"ZAR",label:e.bt("ZAR - South Africa Rand", "ZAR - South Africa Rand", "[catalogs] name of ZAR currency", undefined, true)},{value:"ZMW",label:e.bt("ZMW - Zambia Kwacha", "ZMW - Zambia Kwacha", "[catalogs] name of ZMW currency", undefined, true)},{value:"ZWD",label:e.bt("ZWD - Zimbabwe Dollar", "ZWD - Zimbabwe Dollar", "[catalogs] name of ZWD currency", undefined, true)}],y=["Africa/Abidjan","Africa/Accra","Africa/Algiers","Africa/Bissau","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/El_Aaiun","Africa/Johannesburg","Africa/Juba","Africa/Khartoum","Africa/Lagos","Africa/Maputo","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Asuncion","America/Atikokan","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Chicago","America/Chihuahua","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fort_Nelson","America/Fortaleza","America/Glace_Bay","America/Goose_Bay","America/Grand_Turk","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/La_Paz","America/Lima","America/Los_Angeles","America/Maceio","America/Managua","America/Manaus","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Johns","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","CET","CST6CDT","EET","EST","EST5EDT","Etc/GMT","Etc/GMT+1","Etc/GMT+10","Etc/GMT+11","Etc/GMT+12","Etc/GMT+2","Etc/GMT+3","Etc/GMT+4","Etc/GMT+5","Etc/GMT+6","Etc/GMT+7","Etc/GMT+8","Etc/GMT+9","Etc/GMT-1","Etc/GMT-10","Etc/GMT-11","Etc/GMT-12","Etc/GMT-13","Etc/GMT-14","Etc/GMT-2","Etc/GMT-3","Etc/GMT-4","Etc/GMT-5","Etc/GMT-6","Etc/GMT-7","Etc/GMT-8","Etc/GMT-9","Etc/UTC","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Helsinki","Europe/Istanbul","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Lisbon","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zaporozhye","Europe/Zurich","HST","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Reunion","MET","MST","MST7MDT","PST8PDT","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Wake","Pacific/Wallis","WET"],b=[{label:"English (Canada)",value:"en-CA"},{label:"Français (Canadien)",value:"fr-CA"}],x=20,P="-"},497020:(e,t,n)=>{n.d(t,{Bc:()=>b,Di:()=>S,Dy:()=>m,Hc:()=>v,I5:()=>T,Qv:()=>c,Sx:()=>C,Vn:()=>w,Yy:()=>h,bD:()=>x,bQ:()=>l,d9:()=>E,do:()=>R,f7:()=>d,gP:()=>A,h$:()=>y,hW:()=>p,p6:()=>_,qH:()=>g,s3:()=>k,v6:()=>f});var i=n(66699),o=n(183051),r=(n(883119),n(451820)),a=n(800751),s=n(488177);const l=({feedProfile:e,workflows:t})=>{if(t.length){var n;const i=t[0].workflowStatus,o=s.EF.includes(i);return i===s.qN.DISAPPROVED?s.yn.DISABLED:(null==e?void 0:e.feedStatus)===s.Hm.INACTIVE?s.yn.PAUSED:i===s.qN.UNDER_REVIEW||i===s.qN.UNDER_APPEAL||o&&(null==e||null===(n=e.lastSuccessfulIngestion)||void 0===n?void 0:n.workflowStatus)!==s.qN.COMPLETED?s.yn.PENDING:null!=e&&e.lastSuccessfulIngestion?s.yn.ACTIVE:s.yn.INACTIVE}return null},c=(e,t=null)=>0===e&&(t===a.$o.PENDING||t===a.$o.APPEAL_PENDING),d=e=>({[s.yn.PENDING]:{color:"subtle",icon:"workflow-status-unstarted",text:e.bt("Pending", "Pending", "catalogs.dataSource.UnderReviewStatus", undefined, true)},[s.yn.ACTIVE]:{color:"success",icon:"workflow-status-in-progress",text:e.bt("Active", "Active", "catalogs.dataSource.ActiveStatus", undefined, true)},[s.yn.PAUSED]:{color:"subtle",icon:"workflow-status-halted",text:e.bt("Paused", "Paused", "catalogs.dataSource.PausedStatus", undefined, true)},[s.yn.DISABLED]:{color:"error",icon:"workflow-status-problem",text:e.bt("Disabled", "Disabled", "catalogs.dataSource.DisabledStatus", undefined, true)},[s.yn.INACTIVE]:{color:"error",icon:"workflow-status-problem",text:e.bt("Inactive", "Inactive", "catalogs.dataSource.InactiveStatus", undefined, true)}}),u={SHOPIFY:"Shopify",WOOCOMMERCE:"WooCommerce"},p=(e,t,n)=>{if(n&&n in u)return u[n];if(!t)return e.bt("-", "-", "catalogs.dataSource.noFileName", undefined, true);const i=t.split("/");if(1===i.length)return t;const o=i.pop();return o.length>15?"../"+o.slice(o.length-15):"../"+o},h=(e,t,n,o,r)=>`${(0,i.Z)(o.nbt(["{{ count }} error", "{{ count }} errors"], t, " - ", true),{count:r(e,t)})} | ${(0,i.Z)(o.nbt(["{{ count }} alert", "{{ count }} alerts"], n, " - ", true),{count:r(e,n)})}`,_=(e,t,n,i)=>n.toDateString()===t.toDateString()?i.bt("Today", "Today", "catalogs.dataSources.dateAttribute", undefined, true):(0,r.Z)(e,t,r.k.NUMERIC),m=(e,t)=>{if(!e)return"-";const n=t[e]||e;return n.length>17?n.substring(0,14)+"...":n},f=e=>({...e.validationStatsWarnings,...e.ingestionStatsWarnings}),g=e=>({...e.validationStatsErrors,...e.ingestionStatsErrors}),v=e=>({warningStats:f(e),errorStats:g(e),downloadUrl:e.s3ValidationUrl,s3SourceUrl:e.s3SourceUrl,successCount:e.productCount,workflowStatus:e.workflowStatus,disapprovalReasons:e.disapprovalReasons||[]}),y=(e,t)=>Object.keys(e).length>0||Object.keys(t).length>0,b=e=>({id:e.id,url:e.url,format:e.format,defaultCurrency:e.defaultCurrency,defaultAvailability:"None"===e.defaultAvailability?null:e.defaultAvailability,credential:e.credential,feedStatus:e.feedStatus,feedPreferredScheduleTime:e.feedPreferredScheduleTime,feedPreferredScheduleTimezone:e.feedPreferredScheduleTimezone,locale:e.locale,country:e.country,feedProfileName:e.feedProfileName});function x(e){return e.filter((({workflowStatus:e})=>e===s.qN.COMPLETED||e===s.qN.COMPLETED_EARLY)).some((e=>Object.values(s.N7).some((t=>e[t]&&0!==e[t]))))}function P(e){const t="128",n="1008";return Object.keys(e).every((e=>[t,n].includes(e)))}function w(e,t){return P(t)&&0===Object.keys(e).length||P(t)&&!function(e){return Object.keys(e).some((e=>(0,o.C)().includes(e)))}(e)}function S(e){const{feed_format:t,feed_default_currency:n,default_availability_type:i,id:o,location_config:r,feed_username:a,feed_has_password:s,feed_status:l,preferred_schedule:c,locale:d,country:u,display_name:p,last_successful_ingestion:h,all_products_pg_item_count:_,integration_platform_type:m,created_at:f,domain:g,eligible_for_on_demand_kickoff:v,priority_lane:y}=e||{};return{id:o,url:r?r.full_feed_fetch_location:"",format:t,defaultCurrency:n,defaultAvailability:i,feedStatus:l,feedPreferredScheduleTime:c?c.time:void 0,feedPreferredScheduleTimezone:c?c.timezone:void 0,feedProfileName:p,integrationPlatformType:m,locale:d,country:u,credential:{username:a,hasPassword:s},lastSuccessfulIngestion:(b=h,b?{workflowStatus:b.workflow_status,workflowId:b.feed_fetch_workflow_id,productCount:b.product_count,inStockProductCount:b.in_stock_product_count,outOfStockProductCount:b.out_of_stock_product_count,preorderProductCount:b.preorder_product_count,originalProductCount:b.original_product_count,dateModified:b.created_at,originalUrl:b.original_url,s3SourceUrl:b.s3_source_url,s3ValidationUrl:b.s3_validation_url,validationStatsWarnings:b.validation_stats_warnings||{},validationStatsErrors:b.validation_stats_errors||{},ingestionStatsWarnings:b.ingestion_stats_warnings||{},ingestionStatsErrors:b.ingestion_stats_errors||{},ingestionStatsInfo:b.ingestion_stats_info||{},lastSuccessfulWorkflowId:b.last_successful_workflow_id}:null),allProductsPGItemCount:_,createdAt:f,domain:g,eligibleForOnDemandKickoff:v,priorityLane:y};var b}function E(e){return(e||[]).map((e=>S(e)))}function A(e,t){return!!(e.id&&t.id?e.id===t.id:e.feedProfileName&&t.feedProfileName&&e.feedProfileName===t.feedProfileName)}function T(e,t){return e.find((e=>A(t,e)))}const I=(e,t)=>({[s.ul.IN_STOCK]:t.bt("in stock", "in stock", "Catalogs.DataSource.feedProfileAvailabilyType.inStock", undefined, true),[s.ul.OUT_OF_STOCK]:t.bt("out of stock", "out of stock", "Catalogs.DataSource.feedProfileAvailabilyType.outOfStock", undefined, true),[s.ul.PREORDER]:t.bt("pre-order", "preorder", "Catalogs.DataSource.feedProfileAvailabilyType.preorder", undefined, true)}[e]),C=e=>[{value:"UNAVAILABLE",label:e.bt("None", "NONE", "Catalogs.DataSource.feedProfileAvailabilyType.none", undefined, true)},...Object.keys(s.ul).map((t=>{var n;return{value:t,label:(null!==(n=I(s.ul[t],e))&&void 0!==n?n:e.bt("Unknown type", "Unknown Type", "Catalogs.DataSource.feedProfileAvailabilyType.Unknown", undefined, true)).toUpperCase()}}))],R=e=>{var t;const{product_pin_approval_status:n="",product_pin_approval_status_reasons:i,format:o,id:r}=null!==(t=e.data)&&void 0!==t?t:{};return{...e,data:{product_pin_approval_status:n,product_pin_approval_status_reasons:i,format:o,id:r}}},k=()=>["merchant.id","merchant.product_pin_feed_profile","merchant.product_pin_approval_status","merchant.product_pin_approval_status_reasons","merchant.display_name","merchant.has_active_product_groups"]},306732:(e,t,n)=>{n.d(t,{Be:()=>a,DD:()=>P,EK:()=>s,Eo:()=>h,HK:()=>$,KO:()=>R,MD:()=>D,MU:()=>j,PD:()=>L,QE:()=>S,R0:()=>H,Tj:()=>f,V0:()=>m,VO:()=>Q,WH:()=>C,XT:()=>y,Y3:()=>c,aF:()=>z,bS:()=>_,cU:()=>w,cm:()=>Z,d0:()=>x,eu:()=>p,g2:()=>E,gd:()=>A,h8:()=>o,hh:()=>b,iu:()=>V,j0:()=>ee,j1:()=>M,k7:()=>W,kc:()=>u,kl:()=>d,kq:()=>B,l5:()=>g,pF:()=>N,pM:()=>k,pV:()=>v,ps:()=>r,q9:()=>l,qB:()=>G,qf:()=>X,r2:()=>T,rC:()=>O,rD:()=>Y,ss:()=>J,t7:()=>q,ul:()=>i,vr:()=>K,wZ:()=>U,yA:()=>F,yq:()=>I});const i={IN_STOCK:"in stock",OUT_OF_STOCK:"out of stock",PREORDER:"preorder"},o={NEW:"new",USED:"used",REFURBISHED:"refurbished"},r={MALE:"male",FEMALE:"female",UNISEX:"unisex"},a={1:"All Products",2:"Best Deals",3:"Most Popular",4:"Top Sellers",5:"Back In Stock",6:"New Arrivals"},s={FEATURED:"FEATURED",CAN_FEATURE:"CAN_FEATURE",FEATURING:"FEATURING",NO_FILTERS:"NO_FILTERS",TOO_FEW_PRODUCTS:"TOO_FEW_PRODUCTS",TOO_FEW_UNIQUE_PRODUCTS:"TOO_FEW_UNIQUE_PRODUCTS",TOO_MANY_PRODUCTS:"TOO_MANY_PRODUCTS",MAX_GROUPS_FEATURED:"MAX_GROUPS_FEATURED",UNFEATUREABLE:"UNFEATUREABLE"},l=[1,2,3,4,5,6,7,8],c=[1,2,3,4,5,6,8],d=[1,2,3,4,5,6,7,0,8],u=90,p=350,h=72,_=450,m=200,f=12,g=114,v={MERCHANT_CREATED:"MERCHANT_CREATED",ALL_PRODUCTS:"ALL_PRODUCTS"},y={FEATUREABLE:1,UNFEATUREABLE_NOT_ENOUGH_PINS:2,UNFEATUREABLE_NOT_ENOUGH_UNIQUE_PINS:3,UNFEATUREABLE_EXCEEDED_PINS_LIMIT:4},b={ITEM_ID:"Item ID",PRODUCT_CATEGORY:"Category",PRODUCT_TYPE:"Product type",BRANDS:"Brands",COST:"Cost",CUSTOM_LABEL:"Custom",CUSTOM_LABEL_0:"Custom label 0",CUSTOM_LABEL_1:"Custom label 1",CUSTOM_LABEL_2:"Custom label 2",CUSTOM_LABEL_3:"Custom label 3",CUSTOM_LABEL_4:"Custom label 4",AVAILABILITY:"Availability",PRICE:"Price",GENDER:"Gender",CONDITION:"Condition",CURRENCY:"Currency",ITEM_GROUP_ID:"Item group ID"},x=[b.PRODUCT_CATEGORY,b.PRODUCT_TYPE,b.BRANDS,b.CUSTOM_LABEL_0,b.CUSTOM_LABEL_1,b.CUSTOM_LABEL_2,b.CUSTOM_LABEL_3,b.CUSTOM_LABEL_4],P={[b.ITEM_ID]:["ITEM_ID"],[b.ITEM_GROUP_ID]:["ITEM_GROUP_ID"],[b.PRODUCT_CATEGORY]:["GOOGLE_PRODUCT_CATEGORY_0"],[b.PRODUCT_TYPE]:["PRODUCT_TYPE_0"],[b.COST]:["MIN_PRICE","MAX_PRICE"],[b.BRANDS]:["BRAND"],[b.CUSTOM_LABEL]:["CUSTOM_LABEL_0","CUSTOM_LABEL_1","CUSTOM_LABEL_2","CUSTOM_LABEL_3","CUSTOM_LABEL_4"],[b.AVAILABILITY]:["AVAILABILITY"],[b.CONDITION]:["CONDITION"],[b.GENDER]:["GENDER"]},w=[b.CUSTOM_LABEL,b.COST,b.CURRENCY],S={1:i.IN_STOCK,2:i.OUT_OF_STOCK,3:i.PREORDER},E={1:o.NEW,2:o.USED,3:o.REFURBISHED},A={1:r.MALE,2:r.FEMALE,3:r.UNISEX},T={1:b.ITEM_ID,5:b.PRODUCT_CATEGORY,12:b.PRODUCT_TYPE,3:b.BRANDS,2:b.AVAILABILITY,17:b.CUSTOM_LABEL_0,18:b.CUSTOM_LABEL_1,19:b.CUSTOM_LABEL_2,20:b.CUSTOM_LABEL_3,21:b.CUSTOM_LABEL_4,4:b.CONDITION,25:b.GENDER,22:b.PRICE,23:b.PRICE,26:b.CURRENCY,24:b.ITEM_GROUP_ID},I={[b.ITEM_ID]:1,[b.PRODUCT_CATEGORY]:5,[b.PRODUCT_TYPE]:12,[b.BRANDS]:3,[b.AVAILABILITY]:2,[b.CUSTOM_LABEL_0]:17,[b.CUSTOM_LABEL_1]:18,[b.CUSTOM_LABEL_2]:19,[b.CUSTOM_LABEL_3]:20,[b.CUSTOM_LABEL_4]:21,[b.CONDITION]:4,[b.GENDER]:25,[b.PRICE]:23,[b.CURRENCY]:26,[b.ITEM_GROUP_ID]:24},C={GREATER_INCLUSION:"0",GREATER_EXCLUSION:"1",LESS_INCLUSION:"2",LESS_EXCLUSION:"3"},R={[C.GREATER_EXCLUSION]:{filterType:22,filterOperator:{negated:!1,inclusion:!1}},[C.GREATER_INCLUSION]:{filterType:22,filterOperator:{negated:!1,inclusion:!0}},[C.LESS_EXCLUSION]:{filterType:23,filterOperator:{negated:!1,inclusion:!1}},[C.LESS_INCLUSION]:{filterType:23,filterOperator:{negated:!1,inclusion:!0}}},k="newlyCreatedPGId",O="storefront",D={campaignId:"createNewCampaign",objectiveType:"CATALOG_SALES",absolutify:!0},j=163,N=350,L={LIST:"LIST",GRID:"GRID"},M="236x",z=50,B="calc(100vh - 277px)",Z="calc(100vh - 175px)",F=75,U=200,G=40,H={PRODUCT_GROUP_NAME:"PRODUCT_GROUP_NAME",PRODUCT_COUNT:"PRODUCT_COUNT",PRODUCT_AVAILABILITY:"PRODUCT_AVAILABILITY",LAST_UPDATE:"LAST_UPDATE",PRODUCT_GROUP_PROMOTED:"PRODUCT_GROUP_PROMOTED",PRODUCT_GROUP_FEATURED:"PRODUCT_GROUP_FEATURED",PRODUCT_GROUP_ACTIONS:"PRODUCT_GROUP_ACTIONS",PG_METRIC:"PG_METRIC",PRODUCT_GROUP_COUNTRY:"PRODUCT_GROUP_COUNTRY"},V=500,W=20,$=40,K=100,q=4,Y={DELETE_FAILED:"DELETE_FAILED",DELETE_SUCCESSFULLY:"DELETE_SUCCESSFULLY",REMOVE_SUCCESSFULLY:"REMOVE_SUCCESSFULLY"},X={ALL:"ALL",MIXED:"MIXED",FEED_PROFILE:"FEED_PROFILE"},J="US",Q="selectedCountryKey",ee="selectedFeedProfileId"},400264:(e,t,n)=>{n.d(t,{G7:()=>l,Lp:()=>c,Ib:()=>s});var i=n(667294),o=n(898781),r=n(784590),a=n(306732);function s(e={},t=!1,n=!1){const s=(0,o.ZP)(),l=(0,r.Z)(t?null:{name:"ProductGroupsResource",options:e,enabledRouteRefresh:!0,noCache:n}),c=(0,i.useMemo)((()=>l.data&&l.isLoaded?l.data.map((e=>(e.name===a.Be[Number(e.type)]&&(1===Number(e.type)?e.name=s.bt("All products", "All Products", "catalogs.productGroup.name.allProducts", undefined, true):2===Number(e.type)?e.name=s.bt("Best deals", "Best Deals", "catalogs.productGroup.name.bestDeals", undefined, true):3===Number(e.type)?e.name=s.bt("Most popular", "Most Popular", "catalogs.productGroup.name.mostPopular", undefined, true):4===Number(e.type)?e.name=s.bt("Top sellers", "Top Sellers", "catalogs.productGroup.name.topSellers", undefined, true):5===Number(e.type)?e.name=s.bt("Back in stock", "Back In Stock", "catalogs.productGroup.name.inStock", undefined, true):6===Number(e.type)&&(e.name=s.bt("New arrivals", "New Arrivals", "catalogs.productGroup.name.newArrivals", undefined, true))),e))):[]),[s,l.data,l.isLoaded]);return{...l,data:c}}function l(e={},t=!1){const n=(0,r.Z)(t?null:{name:"FeaturedProductGroupsResource",enabledRouteRefresh:!0,options:e});return(0,i.useEffect)((()=>{n.isAtEnd||n.fetchMore()}),[n.nextBookmark]),{...n,data:n&&n.data||[]}}function c(e={}){const t=(0,r.Z)({name:"ProductGroupFilterResource",options:e,enabledRouteRefresh:!0});return{...t,data:t&&t.data||{}}}},869899:(e,t,n)=>{n.r(t),n.d(t,{RoleBasedAccessControlProvider:()=>y,useRoleBasedAccessControlContext:()=>v});var i=n(667294),o=n(389643),r=n(784590),a=n(19121),s=n(773285),l=n(425288),c=n(70061);const d=e=>{const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&("object"!=typeof e[n]||null===e[n]||Array.isArray(e[n])?t[(0,c.Z)(n)]=e[n]:t[(0,c.Z)(n)]=d(e[n]));return t},u=(e,t)=>{const n=[];for(const r in e)r!==t&&n.push({id:r,...d(e[r])});const i=n.sort((({user:{businessName:e}},{user:{businessName:t}})=>e.localeCompare(t))),o=new Map;for(const r of i)o.set(r.id,r);return o};var p=n(622096);const h={profiles:new Map,headerVisible:!1,orbacVisibility:!1,activeProfile:void 0,disableProfileChanger:!1},_=(e,t)=>{switch(t.type){case"LOAD_PROFILES":return{...e,profiles:t.payload};case"SET_ACTIVE_PROFILE":return{...e,activeProfile:t.payload};case"TOGGLE_HEADER_VISIBILITY":return{...e,headerVisible:t.payload};case"TOGGLE_ORBAC_VISIBILITY":return{...e,orbacVisibility:t.payload};case"TOGGLE_DISABLE_PROFILE_CHANGER":return{...e,disableProfileChanger:t.payload};default:return e}},m=e=>{const[t,n]=(0,i.useReducer)(_,h),o=(({dispatch:e,isEnabled:t,state:n})=>{const{orbacVisibility:o,disableProfileChanger:r,headerVisible:a}=n;return{changeProfile:(0,i.useCallback)((n=>{t&&e({type:"SET_ACTIVE_PROFILE",payload:n})}),[t,e]),toggleORBACVisibility:(0,i.useCallback)((n=>{t&&e({type:"TOGGLE_ORBAC_VISIBILITY",payload:null!=n?n:!o})}),[t,e,o]),toggleDisableProfileChanger:(0,i.useCallback)((n=>{t&&e({type:"TOGGLE_DISABLE_PROFILE_CHANGER",payload:null!=n?n:!r})}),[t,e,r]),toggleHeaderVisibility:(0,i.useCallback)((n=>{t&&e({type:"TOGGLE_HEADER_VISIBILITY",payload:null!=n?n:!a})}),[t,e,a])}})({dispatch:n,isEnabled:e,state:t}),{activeProfile:r,orbacVisibility:a}=t;(0,i.useEffect)((()=>{const e=(0,p.qn)("orbacActiveProfile",!1);e&&n({type:"SET_ACTIVE_PROFILE",payload:e})}),[]),(0,i.useEffect)((()=>{const e=(0,p.qn)("orbacVisibilty",!1);e&&n({type:"TOGGLE_ORBAC_VISIBILITY",payload:e})}),[]),(0,i.useEffect)((()=>{(0,p.Nh)("orbacVisibility",a)}),[a]),(0,i.useEffect)((()=>{(0,p.Nh)("orbacActiveProfile",r)}),[r]);return{state:t,actions:o,receiveProfiles:(0,i.useCallback)(((e,t)=>{n({type:"LOAD_PROFILES",payload:u(e,t)})}),[n])}};var f=n(785893);const{Provider:g,useMaybeHook:v}=(0,l.Z)("RoleBasedAccessControlContext"),y=({children:e})=>{const{checkExperiment:t}=(0,s.F)(),n=(0,a.Z)(),l=Boolean(n.isAuth&&n.isPartner&&t("web_m10n_business_access_orbac_www").anyEnabled),{state:c,actions:d,receiveProfiles:u}=m(l),{activeProfile:p,headerVisible:h,profiles:_=[]}=c,v=_?Array.from(_.values()):[],y=(0,o.Z)(v),b=!!(n.isAuth&&v.length>0)&&y,x=n.isAuth?n.id:"",P=n.isAuth?n.username:"",{changeProfile:w,toggleORBACVisibility:S,toggleDisableProfileChanger:E,toggleHeaderVisibility:A}=d;(0,i.useEffect)((()=>{l&&("string"!=typeof y?p||w(x):w(y))}),[y,x,l,w,p]),(0,i.useEffect)((()=>{l&&(b&&!h&&A(!0),!b&&h&&A(!1))}),[A,b,l,h,_]);const{data:T}=(0,r.Z)(l?{name:"ApiResource",options:{url:"/vx/business_access/profiles/",disable_auth_failure_redirect:!0}}:null),I=null==T?void 0:T.profiles;let C;n&&n.isAuth&&c.activeProfile===n.id?C={id:n.id,permissions:["OWNER"],user:{username:P,businessName:n.fullName,imgUrl:n.imageSmallUrl}}:p&&c.profiles&&(C=c.profiles.get(p)),(0,i.useEffect)((()=>{I&&u(I,x)}),[u,I,x]);const R=c.profiles?Array.from(c.profiles.values()):[];return(0,f.jsx)(g,{value:{profiles:R,headerVisible:c.headerVisible,activeProfile:C,changeProfile:w,toggleORBACVisibility:S,toggleDisableProfileChanger:E,toggleHeaderVisibility:A},children:e})}},717615:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(389643),o=n(773285),r=n(869899);const a=()=>{const{checkExperiment:e}=(0,o.F)(),t=(0,r.useRoleBasedAccessControlContext)(),{activeProfile:n}=t||{},a=e("web_m10n_business_access_orbac_www").anyEnabled,s=(0,i.Z)((null==t?void 0:t.profiles)||[]),{anyEnabled:l}=e("useorbacroutematcher_in_useorbacactingas");return a?l&&!s?Object.freeze({}):n&&(n.viewerMeetsMfaRequirement||(n.permissions||[]).includes("OWNER"))?n:Object.freeze({}):Object.freeze({})}},389643:(e,t,n)=>{n.d(t,{Z:()=>l});var i=n(702664),o=n(19121),r=n(773285),a=n(53987),s=n(276775);const l=e=>{var t;const n=(0,s.useLocation)(),l=(0,o.Z)(),{anyEnabled:c}=(0,r.F)().checkExperiment("web_m10n_business_access_orbac_www"),d=(0,s.useRouteMatch)("/:username"),u=null==d||null===(t=d.params)||void 0===t?void 0:t.username,p=(0,s.useRouteMatch)("/pin/:id"),h=(0,i.useSelector)((e=>{var t,n,i,o;return!(null==p||null===(t=p.params)||void 0===t||!t.id)&&(null==e||null===(n=e.pins)||void 0===n||null===(i=n[p.params.id])||void 0===i||null===(o=i.pinner)||void 0===o?void 0:o.id)}));if((0,a.ej)(n))return!1;if((0,a.RU)(n))return!0;if((0,a.mY)(n))return c;const _=e.concat(l.isAuth?{user:{username:l.username},id:l.id}:{}).find((e=>{const{user:t={},id:n}=e||{},{username:i}=t;return!!(i&&u||h&&n)&&(i===u||h===n)}));return!!_&&_.id}},231947:(e,t,n)=>{n.d(t,{D3:()=>c,DX:()=>s,KY:()=>d,Ms:()=>i,N1:()=>u,_P:()=>a,lJ:()=>r,nl:()=>o,q6:()=>l});const i=(e,t)=>{let n=e&&e.isAuth?e.username:"";return e&&t&&t.user&&t.user.username&&(n=t.user.username),n},o=(e,t)=>Boolean(t&&t.user&&e&&e.isAuth&&t.id!==e.id?t.user.eligibleForStlTool:e&&e.isAuth&&e.eligibleForStlTool),r=(e,t)=>e&&e.isAuth&&t&&t.id&&t.id!==e.id?t.id:"",a=(e,t,n)=>{var i;return n&&n.user&&t&&t.isAuth&&n.id!==t.id?n.user.merchantId:null===(i=e.advertiser)||void 0===i?void 0:i.merchant_id},s=(e,t,n)=>n&&n.user&&e.isAuth&&n.id!==e.id?n.user.scheduledPinCount||0:e.isAuth&&t&&t.scheduled_pin_count||0,l=(e,t,n)=>!!(e&&e.isAuth&&n&&n.id&&n.id!==e.id&&n.id===t),c=(e,t,n)=>!!(l(e,t,n)||e&&e.isAuth&&t===e.id),d=(e,t,n)=>{const i=t&&t.owner&&t.owner.id||"";return c(e,i,n)};function u(e,t,n){const i=t?t.id:"";return c(e,i,n)}},522679:(e,t,n)=>{n.d(t,{N:()=>u,t:()=>p});var i=n(667294),o=n(904431),r=n(924196),a=n(78714),s=n(6637),l=n(425288),c=n(785893);const{Provider:d,useHook:u}=(0,l.Z)("LinkedAccount");function p({children:e}){const[t,n]=(0,i.useState)(!1),[l,u]=(0,i.useState)([]),p=(0,i.useCallback)((({businessName:e,thirdPartyApps:t,thirdPartyMarketingTrackingEnabled:i,nextUrl:l})=>{n(!0);const c={business_name:e,third_party_apps:t};return s.Z.create("BusinessOwnershipResource",c).callCreate({showError:!0}).then((()=>{i&&(o.Z.reportFacebookConversion(r.Z.FACEBOOK_ADVERTISER_ID,"CompleteRegistration",{content_name:"/business/convert"}),o.Z.reportPinterestConversion("track","lead",{lead_type:"Self-serve"}),o.Z.reportLinkedInConversion(r.Z.LINKEDIN_PARTNER_ID,r.Z.LINKEDIN_CONVERSION_ID_SUBMISSION_EVENT),o.Z.reportGoogleConversion(r.Z.GOOGLE_ADWORDS_ID,r.Z.GOOGLE_ADWORDS_LABEL_BUSINESS_CONVERT)),n(!1),(e=>{(0,a.Z)(e?`/?next=${encodeURIComponent(e)}`:"/")})(l)})).catch((e=>(n(!1),Promise.reject({error:e}))))}),[n]),h=(0,i.useMemo)((()=>({createLinkedBusinessAccount:p,linkedBusinessCreationLoading:t,userAccounts:l,userAccountsRetrieved:u})),[p,t,u,l]);return(0,c.jsx)(d,{value:h,children:e})}},965900:(e,t,n)=>{n.d(t,{g:()=>h,I:()=>p});var i=n(667294),o=n(567450),r=n(150361),a=n.n(r);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:i,isPromoted:o,currentTime:r,inVideoGridAutoplayExp:s}=n,{videosAutoplaying:l}=e,{currentlyPlayingOrganicVideoId:c,promotedVideosAutoplaying:d,organicVideosAutoplaying:u}=l,p=a()(d),h=a()(u);return!o&&c&&s?e:(o?p[i]={pinId:i,currentTime:r,paused:!1}:h[i]={pinId:i,currentTime:r,paused:!1},{...e,videosAutoplaying:{currentlyPlayingOrganicVideoId:o?c:i,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:i,isPromoted:o,currentTime:r}=n,{videosAutoplaying:s}=e,{promotedVideosAutoplaying:l,organicVideosAutoplaying:c}=s,d=a()(l),u=a()(c);return o?d[i]={...d[i],paused:!0,currentTime:r}:u[i]={...u[i],paused:!0,currentTime:r},{...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,i.useReducer)(l,s),r=(0,i.useCallback)((e=>n({type:"PAUSE_CURRENT_VIDEO",payload:e})),[]),a=(0,i.useCallback)((e=>n({type:"SET_APP_FOCUS_STATE",payload:e})),[]),c=(0,i.useCallback)((e=>n({type:"SET_CURRENT_VIDEO",payload:e})),[]),p=(0,i.useCallback)((e=>n({type:"SET_FOOTER_VISIBILITY_STATE",payload:e})),[]),h=(0,i.useCallback)((e=>n({type:"SET_IS_AUTOPLAY",payload:e})),[]),_=(0,i.useCallback)((e=>n({type:"SET_VIEWPORT_SIZE",payload:e})),[]),m=(0,i.useCallback)((e=>n({type:"TOGGLE_TYPEAHEAD_OVERLAY",payload:e})),[]),f=(0,i.useMemo)((()=>({pauseAutoplay:r,setCurrentVideo:c,setFooterPlusButtonVisible:p,setIsAutoplay:h,setViewportSize:_,toggleTypeaheadOverlay:m,setAppFocusState:a,appUI:t})),[r,c,p,h,_,m,a,t]);return(0,i.useEffect)((()=>{o.Z.onSessionResume((()=>{a(!0)})).onSessionPause((()=>{a(!1)}))}),[a]),(0,d.jsx)(u,{value:f,children:e})}},40706:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(62700),o=n(883119),r=n(785893);const a={chip:{marginRight:1,flex:"1 1 0"},chipInner:{paddingBottom:"100%"},chipContainer:{marginRight:-1}};function s({pin:e,enableCloseupLink:t}){const{aggregated_pin_data:n}=e,{pin_tags_chips:s}=n||{},l=s&&s.length>=3?s.slice(0,3):[];return(0,r.jsx)(o.xu,{display:"flex",dangerouslySetInlineStyle:{__style:a.chipContainer},children:l.map((n=>{var s,l,c,d;const u=(null===(s=n.images)||void 0===s?void 0:s["750x"])||{},p=(0,r.jsx)(o.Ee,{alt:"",fit:"cover",naturalHeight:null!==(l=u.height)&&void 0!==l?l:1,naturalWidth:null!==(c=u.width)&&void 0!==c?c:1,role:"presentation",src:null!==(d=u.url)&&void 0!==d?d:""});return(0,r.jsx)(o.xu,{dangerouslySetInlineStyle:{__style:a.chip},"data-test-id":"collageChip",children:(0,r.jsx)(o.xu,{dangerouslySetInlineStyle:{__style:a.chipInner},position:"relative",children:(0,r.jsx)(o.xu,{position:"absolute",top:!0,left:!0,right:!0,bottom:!0,children:(0,r.jsx)(o.zd,{height:"100%",wash:!0,width:"100%",children:t?(0,r.jsx)(i.Z,{sizing:"fullSize",collageChipId:n.id,pin:e,children:p}):p})})})},n.id)}))})}},199387:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(667294),o=n(407043),r=n(576440);function a(e,t){const{logContextEvent:n}=(0,o.v)(),{componentType:a,contextLogData:s,viewParameter:l,viewType:c}=(0,r.E)(),{aux_data:d,view_type:u,view_parameter:p,component:h,clientTrackingParams:_,...m}=null!=t?t:{};return(0,i.useCallback)((()=>{n({event_type:e,view_type:u||c,view_parameter:p||l,component:h||a,clientTrackingParams:_,...m,aux_data:{...d,...s}})}),[n,d,_,m,p,u,h,a,s,e,l,c])}},225692:(e,t,n)=>{n.d(t,{X:()=>o,Z:()=>r});var i=n(667294);const o=120;function r(e,t=0,n=o){const[r,a]=(0,i.useState)(e?"active":"inactive");return(0,i.useEffect)((()=>{if(!e){const e=setTimeout((()=>a("inactive")),n);return()=>{clearTimeout(e)}}if(t){const e=setTimeout((()=>a("active")),t);return()=>{clearTimeout(e)}}a("active")}),[e]),r}},350445:(e,t,n)=>{n.d(t,{Z:()=>c});var i=n(898781),o=n(883119),r=n(785893);const a={__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,i.ZP)(),{id:h}=u;return(0,r.jsxs)(o.Ee,{alt:d||p.bt("Pin image", "pin image", "image of a pin", undefined, true),naturalHeight:t,naturalWidth:n,src:e,children:[(0,r.jsx)(o.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,opacity:.8,dangerouslySetInlineStyle:l.overlay}),(0,r.jsxs)(o.xu,{justifyContent:"center",direction:"column",display:"flex",position:"absolute",height:"100%",width:"100%","data-test-id":`video-end-card-${h}`,children:[(0,r.jsx)(o.iP,{rounding:2,children:(0,r.jsxs)(o.xu,{display:"flex",justifyContent:"center",padding:2,children:[(0,r.jsx)(o.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,r.jsx)(o.xu,{margin:1}),(0,r.jsx)(o.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,r.jsx)(o.xu,{margin:3}),(0,r.jsx)(o.iP,{onTap:c,rounding:2,children:(0,r.jsxs)(o.xu,{display:"flex",justifyContent:"center",padding:2,children:[(0,r.jsx)(o.JO,{accessibilityLabel:p.bt("Watch again", "Watch again", "Button when pressed restarts the video", undefined, true),color:"light",dangerouslySetSvgPath:a,size:25}),(0,r.jsx)(o.xu,{margin:1}),(0,r.jsx)(o.xv,{color:"light",lineClamp:1,weight:"bold",children:p.bt("Watch again", "Watch again", "Button when pressed restarts the video", undefined, true)})]})})]})]})}},697247:(e,t,n)=>{n.d(t,{$:()=>r,B:()=>o});var i=n(425288);const{Provider:o,useHook:r}=(0,i.Z)("SurfaceContext",{surface:"Unknown"})},576440:(e,t,n)=>{n.d(t,{B:()=>o,E:()=>r});var i=n(425288);const{Provider:o,useHook:r}=(0,i.Z)("trackingParametersContext")},62700:(e,t,n)=>{n.d(t,{Z:()=>h});var i=n(605028),o=n(66699),r=n(898781),a=n(287072),s=n(35495),l=n(883119),c=n(407043),d=n(243943),u=n(576440),p=n(785893);function h({sizing:e="default",children:t,collageChipId:n,componentType:h,contextLogData:_,elementType:m,pin:f,viewParameter:g,viewType:v}){const y=(0,r.ZP)(),{logContextEvent:b}=(0,c.v)(),x=(0,u.E)(),{carousel_data:P,id:w}=f,{isLeadPin:S}=(0,i.Z)(f);let E,A=`/pin/${n||w}/`;const T=(0,d.Xx)();if(null!=T&&T.variantUrl&&(A=`/pin/${T.variantUrl}/`),P){const{carousel_slots:e=[],id:t,index:n=0}=P;A=`/pin/${w}/`,E={carousel_slot_id:e[n]&&e[n].id,carousel_data_id:t,carousel_slot_index:n}}E={...E||{},...(0,s.Kl)(f,_)||{}};const I=(0,a.Z)({href:A,externalData:{auxData:E,pin:f}});return(0,p.jsx)(l.iP,{accessibilityLabel:(0,o.Z)(y.bt("{{ pinTitle }} Pin page", "{{ pinTitle }} pin page", "pinRep.closeupLink.tapArea.accessibilityLabel", undefined, true),{pinTitle:f.grid_title||f.title||f.description||""}),mouseCursor:"zoomIn",rounding:2,onTap:({event:e,dangerouslyDisableOnNavigation:t})=>{var n,i;t(),S?(b({event_type:8948,view_type:v||x.viewType,view_parameter:g||x.viewParameter,component:null,aux_data:{closeup_navigation_type:"click",lead_form_id:null===(n=f.promoted_lead_form)||void 0===n?void 0:n.lead_id}}),b({event_type:12,view_type:v||x.viewType,view_parameter:g||x.viewParameter,component:null,aux_data:{lead_form_id:null===(i=f.promoted_lead_form)||void 0===i?void 0:i.lead_id,...(0,s.Kl)(f,{})||{}}})):(b({event_type:101,component:h||x.componentType,element:m,object_id_str:w,view_type:v||x.viewType,view_parameter:g||x.viewParameter,aux_data:{..._,...(0,s.Kl)(f,_)||{}}}),b({event_type:8948,view_type:v||x.viewType,view_parameter:g||x.viewParameter,component:h||x.componentType,element:m,object_id_str:w,aux_data:{closeup_navigation_type:"click",..._,...(0,s.Kl)(f,_)||{}}})),I({event:e})},fullWidth:"fullSize"===e,fullHeight:"fullSize"===e,href:A,role:"link",children:t})}},841509:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(883119),o=n(785893);function r({children:e,additionalStyles:t={}}){return(0,o.jsx)(i.xu,{position:"absolute",top:!0,left:!0,right:!0,bottom:!0,dangerouslySetInlineStyle:{__style:{pointerEvents:"none",...t}},"data-test-id":"contentLayer",children:e})}},337986:(e,t,n)=>{n.d(t,{Z:()=>P});var i=n(667294),o=n(499128),r=n(898781),a=n(883119),s=n(785893);function l(e){const t=(0,r.ZP)(),{onHide:n}=e,i=(0,s.jsx)(a.xv,{children:t.bt("Thank you for helping improve signal detection on Pinterest.", "Thank you for helping improve signal detection on Pinterest!", "pinRep.actionBar.signalDetector.toast", undefined, true)});return(0,s.jsx)(o.ZP,{onHide:n,text:i})}var c=n(6637),d=n(19121),u=n(343341);const p=function({anchor:e,onDismiss:t,pinId:n,signals:o}){const p=(0,r.ZP)(),[h,_]=(0,i.useState)(0),m=(0,d.Z)(),{showOneToast:f}=(0,u.F9)();if(!m.isEmployee)return null;const g=o.map((({signal_message:e})=>({href:"#",text:null!=e?e:""}))),{background_color:v,icon_url:y,signal_id:b,signal_message:x}=o[h];return(0,s.jsx)(a.mh,{children:(0,s.jsx)(a.J2,{anchor:e,idealDirection:"right",onDismiss:t,positionRelativeToAnchor:!1,size:"lg",children:(0,s.jsxs)(a.xu,{padding:4,width:"100%",children:[o.length>1&&(0,s.jsx)(a.xu,{overflow:"scrollX",padding:1,marginBottom:4,children:(0,s.jsx)(a.mQ,{activeTabIndex:h,onChange:({event:e,activeTabIndex:t,dangerouslyDisableOnNavigation:n})=>{n(),(({activeTabIndex:e,event:t})=>{t.preventDefault(),_(e)})({activeTabIndex:t,event:e})},tabs:g})}),(0,s.jsx)(a.kC,{alignItems:"center",justifyContent:"start",children:(0,s.jsx)(a.X6,{size:"400",children:p.bt("Signal detected:", "Signal detected:", "pinRep.actionBar.signalDetector.header", undefined, true)})}),(0,s.jsx)(a.xu,{paddingY:3,children:(0,s.jsxs)(a.kC,{alignItems:"center",gap:{row:2,column:0},justifyContent:"center",children:[(0,s.jsx)(a.xu,{height:40,overflow:"hidden",rounding:"circle",width:40,children:y?(0,s.jsx)(a.Ee,{alt:p.bt("Signal display", "Signal display", "pinRep.actionBar.signalDetector.signalAsset", undefined, true),color:"white",naturalHeight:1,naturalWidth:1,src:y}):(0,s.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:v}},height:40,width:40})}),(0,s.jsx)(a.xv,{size:"200",children:x})]})}),(0,s.jsx)(a.xu,{marginBottom:3,children:(0,s.jsx)(a.xv,{size:"200",children:p.bt("If you think this detection is inaccurate, please send this Pin for review. It will help improve Pinterest.", "If you think this detection is inaccurate, please send this Pin for review. It will help improve Pinterest.", "pinRep.actionBar.signalDetector.instructions", undefined, true)})}),(0,s.jsxs)(a.kC,{alignItems:"center",gap:{row:2,column:0},justifyContent:"start",children:[(0,s.jsx)(a.zx,{fullWidth:!0,color:"red",size:"md",text:p.bt("Send for review", "Send for review", "pinRep.actionBar.signalDetector.button.review", undefined, true),onClick:()=>{const e={pin_id:n,signal_id:b,user:m.id};c.Z.create("SignalReviewRequestResource",e).callCreate(),t(),f((({hideToast:e})=>(0,s.jsx)(l,{onHide:e})))}}),(0,s.jsx)(a.zx,{fullWidth:!0,color:"gray",size:"md",text:p.bt("Cancel", "Cancel", "pinRep.actionBar.signalDetector.button.cancel", undefined, true),onClick:t})]})]})})})};var h=n(241244),_=n(319915),m=n(947599),f=n(215292);function g({signals:e,pinId:t}){const{background_color:n,icon_url:o,signal_message:r}=e[0],[l,c]=(0,i.useState)(!1),d=(0,i.useRef)();return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(_.Z,{name:"SafeSuspense_DebugSignal_FeedbackButton",children:(0,s.jsx)(m.Z,{children:(0,s.jsx)(a.xu,{"data-test-id":"debug-signals-feedback-button",children:(0,s.jsx)(h.Z,{children:(0,s.jsx)(f.q,{children:({hovered:e,onMouseEnter:t,onMouseLeave:i})=>(0,s.jsx)(a.iP,{onTap:()=>c((e=>!e)),rounding:"pill",onMouseEnter:t,onMouseLeave:i,children:(0,s.jsxs)(a.xu,{color:e?"dark":"transparentDarkGray",rounding:"pill",display:"flex",alignItems:"center",padding:3,ref:d,children:[(0,s.jsx)(a.xu,{display:"flex",width:24,height:24,rounding:"circle",color:"default",marginEnd:1,justifyContent:"center",alignItems:"center",children:(0,s.jsx)(a.xu,{width:20,height:20,rounding:"circle",overflow:"hidden",children:(0,s.jsx)(a.Ee,{alt:"",color:n,src:null!=o?o:"",naturalHeight:1,naturalWidth:1})})}),(0,s.jsx)(a.xv,{color:"inverse",size:"200",weight:"bold",children:r})]})})})})})})}),l&&d&&d.current&&(0,s.jsx)(p,{anchor:d.current,onDismiss:()=>c(!1),pinId:t,signals:e})]})}const v=({signal:e,anchor:t,setShowFlyout:n,setStore:i})=>{var o;const{hovered:r,onMouseEnter:l,onMouseLeave:c}=(0,f.Z)();return(0,s.jsx)(a.iP,{onTap:()=>(e=>{n((e=>!e)),i(e)})(e),rounding:"pill",onMouseEnter:l,onMouseLeave:c,children:(0,s.jsxs)(a.xu,{color:r?"dark":"transparentDarkGray",rounding:"pill",display:"flex",alignItems:"center",padding:3,ref:t,children:[(0,s.jsx)(a.xu,{display:"flex",minWidth:24,height:24,rounding:"circle",marginEnd:1,color:"default",justifyContent:"center",alignItems:"center",children:(0,s.jsx)(a.xu,{width:20,height:20,rounding:"circle",overflow:"hidden",children:(0,s.jsx)(a.Ee,{alt:"",color:e.background_color,src:null!==(o=e.icon_url)&&void 0!==o?o:"",naturalHeight:1,naturalWidth:1})})}),(0,s.jsx)(a.xv,{color:"inverse",size:"200",weight:"bold",children:e.signal_message})]})})};const y=function({anchor:e,onDismiss:t,pinId:n,signal:i}){const o=(0,r.ZP)(),p=(0,d.Z)(),{showOneToast:h}=(0,u.F9)();if(!p.isEmployee)return null;const{background_color:_,icon_url:m,signal_id:f,signal_message:g}=i;return(0,s.jsx)(a.mh,{children:(0,s.jsx)(a.J2,{anchor:e,idealDirection:"right",onDismiss:t,positionRelativeToAnchor:!1,size:"lg",children:(0,s.jsxs)(a.xu,{padding:4,width:"100%",children:[(0,s.jsx)(a.kC,{alignItems:"center",justifyContent:"start",children:(0,s.jsx)(a.X6,{size:"400",children:o.bt("Signal detected:", "Signal detected:", "pinRep.actionBar.signalDetector.header", undefined, true)})}),(0,s.jsx)(a.xu,{paddingY:3,children:(0,s.jsxs)(a.kC,{alignItems:"center",gap:2,justifyContent:"center",children:[(0,s.jsx)(a.xu,{height:40,overflow:"hidden",rounding:"circle",width:40,children:m?(0,s.jsx)(a.Ee,{alt:o.bt("Signal display", "Signal display", "pinRep.actionBar.signalDetector.signalAsset", undefined, true),color:"white",naturalHeight:1,naturalWidth:1,src:m}):(0,s.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:_}},height:40,width:40})}),(0,s.jsx)(a.xv,{size:"200",children:g})]})}),(0,s.jsx)(a.xu,{marginBottom:3,children:(0,s.jsx)(a.xv,{size:"200",children:o.bt("If you think this detection is inaccurate, please send this Pin for review. It will help improve Pinterest.", "If you think this detection is inaccurate, please send this Pin for review. It will help improve Pinterest.", "pinRep.actionBar.signalDetector.instructions", undefined, true)})}),(0,s.jsxs)(a.kC,{alignItems:"center",gap:2,justifyContent:"start",children:[(0,s.jsx)(a.zx,{fullWidth:!0,color:"red",size:"md",text:o.bt("Send for review", "Send for review", "pinRep.actionBar.signalDetector.button.review", undefined, true),onClick:()=>{const e={pin_id:n,signal_id:f,user:p.id};c.Z.create("SignalReviewRequestResource",e).callCreate(),t(),h((({hideToast:e})=>(0,s.jsx)(l,{onHide:e})))}}),(0,s.jsx)(a.zx,{fullWidth:!0,color:"gray",size:"md",text:o.bt("Cancel", "Cancel", "pinRep.actionBar.signalDetector.button.cancel", undefined, true),onClick:t})]})]})})})};function b({signals:e,pinId:t}){const[n,o]=(0,i.useState)(!1),r=(0,i.useRef)(null),[l,c]=(0,i.useState)(e[0]);return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(_.Z,{name:"SafeSuspense_DebugSignal_FeedbackButton",children:(0,s.jsx)(m.Z,{children:(0,s.jsx)(a.xu,{"data-test-id":"debug-signals-feedback-button",children:(0,s.jsx)(h.Z,{children:(0,s.jsx)(a.kC,{alignItems:"stretch",justifyContent:"start",children:e.map((e=>(0,s.jsx)(a.xu,{marginEnd:2,children:(0,s.jsx)(v,{signal:e,anchor:r,setShowFlyout:o,setStore:c})},e.signal_id)))})})})})}),n&&(0,s.jsx)(y,{anchor:r.current,onDismiss:()=>o(!1),pinId:t,signal:l})]})}var x=n(276775);function P({pin:e}){const t=(0,d.Z)(),{search:n}=(0,x.useLocation)(),o=(0,i.useMemo)((()=>new URLSearchParams(n)),[n]);if(!t.isEmployee)return null;const{id:r,deb_ads:a,deb_content_quality:l,deb_inclusive_product:c,deb_shopping:u,deb_trust_and_safety:p}=e;if(a)return(0,s.jsx)(g,{pinId:r,signals:a});if(l)return(0,s.jsx)(g,{pinId:r,signals:l});if(c){if("skin_tone"===o.get("type")){const e=c.filter((e=>"visual_signals_hair_pattern_v1"!==e.signal_id));return(0,s.jsx)(b,{pinId:r,signals:e})}{const e=c.filter((e=>"visual_body_analyses_v2_0"!==e.signal_id));return(0,s.jsx)(b,{pinId:r,signals:e})}}return u?(0,s.jsx)(g,{pinId:r,signals:u}):p?(0,s.jsx)(g,{pinId:r,signals:p}):null}},525199:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(883119),o=n(225692),r=n(785893);function a(e,t){return{hidden:{opacity:0,transition:t?`opacity ${t}ms ease`:void 0},visible:{opacity:1,transition:e?`opacity ${e}ms ease`:void 0}}}function s({children:e,fadeInDuration:t=0,fadeOutDuration:n=o.X,visibility:s}){return"none"!==s&&e?(0,r.jsx)(i.xu,{dangerouslySetInlineStyle:{__style:a(t,n)[s]},children:e}):null}},43671:(e,t,n)=>{n.d(t,{ZP:()=>f});var i=n(667294),o=n(841509),r=n(898781),a=n(55275),s=n(310227),l=n(407043),c=n(883119),d=n(785893);const u={base:{transition:"all 250ms",opacity:0},blurred:{backgroundPosition:"50% 50%",backgroundSize:"cover",borderRadius:s.Oc,filter:"blur(10px)",opacity:1}},p={base:{transition:"all 250ms"},blurred:{backgroundColor:"rgba(0,0,0,0.6)"}},h={base:{opacity:0,transition:"all 250ms"},visible:{opacity:1}},_=["followed","related","search"],m=["pfy","pfyBoard"];function f({feedbackType:e,pin:t,hideContents:n=!1}){var f;const{logContextEvent:g}=(0,l.v)(),v=(0,r.ZP)(),[y,b]=(0,i.useState)(!1),[x,P]=(0,i.useState)(!1);(0,i.useEffect)((()=>b(!0)),[]);const w=()=>P(!0),{feedbackText:S,images:E,showFeedbackOverlay:A,undoAction:T}=t,I=E&&(null===(f=E["236x"])||void 0===f?void 0:f.url),{image:C,subTitle:R,title:k,unfollow:O}=null!=S?S:{},D=!_.includes(e),j=m.includes(e),N=()=>{g({event_type:101,view_type:1,view_parameter:92,element:11347})};return(0,d.jsxs)(c.xu,{color:"transparent",dangerouslySetInlineStyle:{__style:{borderRadius:s.Oc}},"data-test-id":"obscured-overlay",overflow:"hidden",position:"absolute",top:!0,left:!0,bottom:!0,right:!0,children:[(0,d.jsxs)(c.xu,{dangerouslySetInlineStyle:{__style:{borderRadius:s.Oc}},margin:-4,overflow:"hidden",position:"absolute",top:!0,left:!0,bottom:!0,right:!0,children:[I&&(0,d.jsx)(o.Z,{additionalStyles:{...u.base,...y?u.blurred:{},backgroundImage:`url("${I}")`}}),(0,d.jsx)(o.Z,{additionalStyles:{...p.base,...p.blurred}})]}),(0,d.jsx)(c.xu,{dangerouslySetInlineStyle:{__style:{...h.base,...!A&&y?h.visible:{}}},height:"100%",padding:4,position:"relative",width:"100%",children:!n&&(0,d.jsx)(c.xu,{height:"100%",children:(0,d.jsxs)(c.xu,{"data-test-id":"PinFeedbackConfirmation",display:"flex",direction:"column",height:"100%",maxWidth:216,children:[(0,d.jsx)(c.xu,{marginBottom:2,children:(0,d.jsx)(c.X6,{color:"light",size:"400",children:k})}),(0,d.jsxs)(c.xu,{display:"flex",marginBottom:1,children:[C&&(0,d.jsx)(c.xu,{marginEnd:3,children:(0,d.jsx)(c.zd,{width:C.width,height:C.height,rounding:2,wash:!0,children:(0,d.jsx)(c.Ee,{alt:R||"",fit:"cover",naturalHeight:1,naturalWidth:1,src:C.url||""})})}),(0,d.jsx)(c.xv,{color:"light",overflow:"normal",children:R})]}),(0,d.jsxs)(i.Fragment,{children:[T&&(0,d.jsx)(c.xu,{children:(0,d.jsx)(c.iP,{onTap:T,children:(0,d.jsx)(c.xv,{color:"inverse",weight:"bold",overflow:"normal",children:v.bt("Undo", "Undo", "Text on the button to navigate to undo hiding a pin", undefined, true)})})}),(0,d.jsxs)(c.xu,{marginTop:"auto",children:[!T&&!x&&O&&!j&&(0,d.jsx)(c.zx,{fullWidth:!0,color:"white",onClick:()=>(0,a.t)(O.action,O.actionOptions,w),text:v.bt("Unfollow", "Unfollow", "Text on the button to unfollow a specific board / user", undefined, true)}),D&&(0,d.jsx)(c.zx,{role:"link",color:"white",fullWidth:!0,href:"/edit",onClick:N,text:v.bt("Tune your feed", "Tune your feed", "Text on the button to navigate to homefeed control", undefined, true)})]})]})]})})})]})}},379884:(e,t,n)=>{n.d(t,{Z:()=>p});var i=n(852964),o=n(898781),r=n(55275),a=n(883119),s=n(814197),l=n(349700),c=n(407043),d=n(680046),u=n(785893);function p({anchor:e,feedbackData:t,feedbackType:n,pinId:p,onDismiss:h,onHide:_,recommendationReason:m,viewParameter:f,viewType:g}){const{logContextEvent:v}=(0,c.v)(),y=(0,o.ZP)(),b=(0,d.ZP)({i18n:y,interpolateNamedTemplate:l.nk}),x=(e,o)=>{const a=(0,i.Z)(m),s=m&&(0,d.yl)(m),l=m&&(0,d.XZ)(m),{action:c,actionOptions:u}=b.getHidePinAction({feedbackData:t,feedbackType:n,pinId:p,recommendationReasonId:a,throughId:s,throughProperties:l,complaintReason:e});(e=>{v({event_type:101,view_type:g,view_parameter:f,element:e,component:(0,d.nb)(n)})})(o),(0,r.t)(c,u),_()},P="promoted"===n?[{text:y.bt("Not relevant to me", "Not relevant to me", "homefeed.hideReasons.reason.notRelevant", undefined, true),reason:10,elementType:1296},{text:y.bt("Seen Pin too many times", "Seen Pin too many times", "homefeed.hideReasons.reason.seenTooMany", undefined, true),reason:3,elementType:11172},{text:y.bt("Blurry or pixelated image", "Blurry or pixelated image", "homefeed.hideReasons.reason.lowQualityPicture", undefined, true),reason:13,elementType:10898}]:[{text:y.bt("Not relevant to me", "Not relevant to me", "homefeed.hideReasons.reason.notRelevant", undefined, true),reason:10,elementType:1296},{text:y.bt("Not in a language I understand", "Not in a language I understand", "homefeed.hideReasons.reason.languageDontUnderstand", undefined, true),reason:15,elementType:11178},{text:y.bt("Seen Pin too many times", "Seen Pin too many times", "homefeed.hideReasons.reason.seenTooMany", undefined, true),reason:3,elementType:295},{text:y.bt("Blurry or pixelated image", "Blurry or pixelated image", "homefeed.hideReasons.reason.lowQualityPicture", undefined, true),reason:13,elementType:10898},{text:y.bt("Other", "Other", "homefeed.hideReasons.reason.other", undefined, true),reason:8,elementType:11179}];return(0,u.jsx)(a.Lt,{anchor:e,idealDirection:"down",onDismiss:h,zIndex:s.lI,id:"pin-action-dropdown",children:(0,u.jsx)(a.Lt.Section,{label:y.bt("Do you have a moment? Please tell us why.", "Got a moment? Tell us why.", "homefeed.hideReasons.title", undefined, true),children:P.map((({text:e,reason:t,elementType:n})=>(0,u.jsx)(a.Lt.Item,{onSelect:()=>x(t,n),option:{value:`hide-reason-${e.split(" ").join("-")}`,label:e},dataTestId:`hide-reason-${e.split(" ").join("-")}`})))})})}},685909:(e,t,n)=>{n.d(t,{Z:()=>h});var i=n(667294),o=n(294184),r=n.n(o),a=n(391254),s=n(149230),l=n(927104),c=n(898781),d=n(883119),u=n(785893);class p extends i.Component{constructor(...e){var t,n,i;super(...e),i={showBoardName:!1},(n="state")in(t=this)?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i}componentDidMount(){this.timer=setTimeout((()=>{this.setState({showBoardName:!0})}),950)}componentWillUnmount(){clearTimeout(this.timer)}render(){const{showBoardName:e}=this.state,{isDenseView:t,isNewlySaved:n,name:o,shouldUseLegoStyles:c,type:p,url:h}=this.props;if(c&&t)return null;const _="boardless"===p?this.props.i18n.bt("Saved to profile", "Saved to Profile", "Saved.render.title", undefined, true):o;let m,f;if(!n||e||c){const e=c?(0,u.jsx)(d.xv,{color:"inverse",size:"300",weight:"bold",children:_.length<=20?_:(0,l.Z)(_,20)}):(0,u.jsx)(d.X6,{color:"inverse",size:"400",lineClamp:1,children:_}),t=(0,s.Z)({url:h})?"nofollow":"none";m=h?(0,u.jsx)(d.rU,{rel:t,href:h,children:e}):e}else m=(0,u.jsx)(d.xv,{color:"inverse",children:(0,u.jsx)("span",{className:"deprecatedTextSizeXL",children:this.props.i18n.bt("Saved!", "Saved!", "Indication that a pin has been saved", undefined, true)})});return n&&(f=e?"board":"saved"),(0,u.jsxs)(i.Fragment,{children:[(0,u.jsx)(a.Z,{unsafeCSS:"\n.SavedAnimation {\n  &.saved {\n    animation: SavedAnimation--down-then-right 1s cubic-bezier(0, 0.33, 0.33, 1.1);\n  }\n\n  &.board {\n    animation: SavedAnimation--to-right 0.12s cubic-bezier(0, 0.33, 0.33, 1.1);\n  }\n}\n\n@keyframes SavedAnimation--down-then-right {\n  0% {\n    opacity: 0;\n    transform: translateY(-24px);\n  }\n\n  33% {\n    opacity: 1;\n    transform: translateY(0);\n  }\n\n  80% {\n    opacity: 1;\n    transform: translateY(0);\n  }\n\n  100% {\n    opacity: 0;\n    transform: translateX(24px);\n  }\n}\n\n@keyframes SavedAnimation--to-right {\n  from {\n    opacity: 0;\n    transform: translateX(-16px);\n  }\n\n  to {\n    opacity: 1;\n    transform: translateX(0);\n  }\n}\n"}),(0,u.jsx)("div",{"data-test-id":"savedInfo",className:!c&&r()("SavedAnimation",f),children:m})]})}}const h=function(e){const t=(0,c.ZP)();return(0,u.jsx)(p,{...e,i18n:t})}},108529:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(333155);function o(e){return i.zI.includes(e)}},485308:(e,t,n)=>{n.d(t,{J:()=>i});const i=228},852964:(e,t,n)=>{n.d(t,{Z:()=>o});const i={REPIN_BOARD:1,USER_ACTIVITY:4,CLICKTHROUGH:9,FRESH_REPIN_BOARD:47,FRESH_CLICKTHROUGH:48,FRESH_USER_ACTIVITY:49,LOCAL_REPIN_BOARD:13,LOCAL_CLICKTHROUGH:32,LOCAL_USER_ACTIVITY:33,P2P_CLICKTHROUGH:28,INSTANT_PFY_NON_MATERIALIZABLE:36,FOLLOWED_INTEREST:5,TOPIC_BEST_PINS:70,EMBEDDING_BASED_BEST_PINS:173,RECOMMENDED_TOPICS:65,RECOMMENDED_GEO_INTERESTS:192,USER_SEQUENCE_INTERESTS_PINS:193,GRAPHSAGE_USER_EMBEDDINGS_TO_ORGANIC_PINS:109,NAVBOOST_PFY:89,NAVBOOST_P2P:88,NOTIFICATION_NEWS_HUB:138,GEMINI_INTERESTS_FRESH:104,INTENTIONAL_DISTRIBUTION_USER_TO_CREATOR_STORY_PIN:100,INTENTIONAL_DISTRIBUTION_USER_TO_CREATOR_STORY_PIN_ENGAGEMENT:175,INTENTIONAL_DISTRIBUTION_USER_TO_CREATOR_VIDEO:95,INTENTIONAL_DISTRIBUTION_DOMAIN:86,INTENTIONAL_DISTRIBUTION_TOPICS_STORY_PINS:91,INTENTIONAL_DISTRIBUTION_TOPICS_VIDEO:98,GRAPHSAGE_MULTI_PINS_TO_CREATOR_PINS_REALTIME:135,GRAPHSAGE_MULTI_PINS_TO_VIDEO_PINS_REALTIME:139,GRAPHSAGE_MULTI_PINS_TO_STORY_PINS_REALTIME:140,INTENTIONAL_DISTRIBUTION_MANUAL_TAGGEED_INTERESTS_VIDEO:118,INTENTIONAL_DISTRIBUTION_MANUAL_TAGGED_INTERESTS_STORY_PIN:130,CREATOR_DIRECT_INJECT:148,USER_INTERESTS_TO_LONGTERM_CREATOR_PINS:141,GRAPHSAGE_PRODUCT_PINS:97,GRAPHSAGE_USER_EMBEDDINGS_TO_PINS:108,PROMOTED_PIN:15,UNKNOWN:0,RECOMMENDED_CATEGORY:2,COOKIE_MONSTER:3,REALTIME_P2B:6,REALTIME_P2B_CLOSEUP:22,RECOMMENDED_INTEREST:7,VISUALLY_SIMILAR:8,BOARD_FOLLOW:35,USER_FOLLOW:45,RECOMMENDED_COMMERCE:10,EVERYTHING_FEED:11,RECOMMENDED_LOCAL_PIN:12,SEARCH:46,P2P_USER_COMMERCE:16,COMMERCE_EDUCATION:17,LANDING_PAGE_PINS:18,FOLLOWING_FEED:19,POPULAR_FEED:20,P2P_DYNAMIC_GRID:23,LANDING_PAGE_INTEREST_PINS:24,FRESH_PIN_FROM_PIN:25,FRESH_PIN_FROM_INTEREST:26,FRESH_PIN_FROM_BOARD:27,SIFTER_VIDEO_FROM_INTEREST:39,SIFTER_PRODUCTS:57,SIFTER_DISTRIBUTION_A:50,SIFTER_DISTRIBUTION_B:51,SIFTER_DISTRIBUTION_C:52,SIFTER_DISTRIBUTION_D:53,SIFTER_DISTRIBUTION_E:54,SIFTER_ACTIVATION_EXPERIMENT:58,SIFTER_FRESHMAKER_PIN_FROM_INTEREST:40,P2P_CLOSEUP:29,P2P_LIKE:30,P2P_PIN_CREATE:31,INSTANT_PFY:34,DYNAMIC_INSERTION:37,DYNAMIC_INSERTION_BOARD_FOLLOW:38,HYPERLOCAL_INTEREST_BOARD:41,NUX_BOARD_FOLLOW_P2P:42,INDIRECT_DOMAIN_PIN:43,PIXIE_PINS_FOR_BOARD:44,SCREENSHOT_SAVE:55,TEXT_EMBEDDINGS:56,FRESH_TEXT_EMBEDDINGS:67,PREFETCH_LOAD:60,DIVERSE_TOPICS:62,QUIZ_RESULTS:63,INTENTIONAL_DISTRIBUTION_TOPICS:64,INTENTIONAL_DISTRIBUTION_TOPICS_THIRD_PARTY:90,INTENTIONAL_DISTRIBUTION_GEMINI:73,INTENTIONAL_DISTRIBUTION_GEMINI_V5:120,INTENTIONAL_DISTRIBUTION_SHOP_STYLE_STL:74,INTENTIONAL_DISTRIBUTION_GRAPHSAGE:78,INTENTIONAL_DISTRIBUTION_REPIN_BOARD:80,INTENTIONAL_DISTRIBUTION_CLICKTHROUGH:81,INTENTIONAL_DISTRIBUTION_USER_ACTIVITY:82,INTENTIONAL_DISTRIBUTION_CREATOR_BASELINE:92,INTENTIONAL_DISTRIBUTION_RECOMMENDED_TOPICS:102,INTENTIONAL_DISTRIBUTION_RECOMMENDED_TOPICS_STORY_PIN:103,INTENTIONAL_DISTRIBUTION_RECOMMENDED_TOPICS_DIVERSITY:105,PIXIE_RECENT_ACTION:66,NATIVE_CONTENT_TOPICS:68,BUBBLE_OPEN_TOPICS:69,TOPIC_BEST_PINS_V2:77,DAILY_BEST_PINS:79,TOPIC_BEST_PINS_V3:101,TOPIC_BEST_STORY_PINS:164,REC_SEQ_STORY_PIN_CLS:165,DARK_PROMOTED_PIN:71,POST_EXPLORE_TOPICS:72,GRAPHSAGE_EMBEDDINGS:75,DEMOGRAPHIC_PFY:76,SHOPPING_STL:83,UNAUTH_PIXIE_P2B:84,UNAUTH_PIXIE_P2P:85,VIDEO_EMBEDDINGS:87,VIDEO_EMBEDDINGS_GEMINI_V5:121,GEMINI_V5_EMBEDDINGS_STATIC:93,GEMINI_V5_EMBEDDINGS_FRESH:94,GEMINI_V5_EMBEDDINGS_REALTIME:106,GEMINI_V5_EMBEDDINGS_STORYPIN:107,CURATED_VIDEO_INTEREST:96,GRAPHSAGE_PRODUCT_PINS_LONGER_HISTORY:112,GRAPHSAGE_SHOPPABLE_INSPIRATION:126,GRAPHSAGE_PRODUCT_PINS_EXPERIMENTAL:134,NUX_GRAPHSAGE:99,GRAPHSAGE_USER_EMBEDDINGS_TO_PRODUCT_PINS:110,GRAPHSAGE_VIDEO_PINS:113,RECBOOST_REPIN_BOARD:114,RECBOOST_CLICKTHROUGH:115,RECBOOST_USER_ACTIVITY:116,RECBOOST_CREATOR_BOARDS:129,RECOMMENDED_BOARDS:117,RECOMMENDED_ANNOTATION_BOARDS:136,RECOMMENDED_GRAPHSAGE_BOARDS:153,INTENTIONAL_DISTRIBUTION_RECOMMENDED_GRAPHSAGE_BOARDS:191,RECOMMENDED_CREATOR_BOARDS:124,ANNOTATION_REC_CREATOR_BOARDS:127,INTENTIONAL_DISTRIBUTION_MANUAL_INTERESTS_VIDEO:119,INTENTIONAL_DISTRIBUTION_INTERESTS_VIDEO:143,INTENTIONAL_DISTRIBUTION_INTERESTS_STORY_PIN:144,REPIN_CREATOR_BOARD:122,GRAPHSAGE_USER_EMBEDDINGS_TO_CREATOR_PINS:123,GRAPHSAGE_USER_EMBEDDINGS_TO_CREATOR_PINS_REALTIME:131,FRESH_SIG_FROM_BOARD:125,RECENT_ENGAGED_CREATOR_BOARDS:128,RECENT_ENGAGED_BOARDS:132,SHOPPING_CREATOR_REALTIME:133,GRAPHSAGE_BASED_RECOMMENDED_CREATOR_BOARDS:137,PIXIE_P2P:142,NEW_USE_CASE_PINS:145,RECBOOST_NEW_USE_CASES:146,SEARCHSAGE_PFY:147,SEARCHSAGE_SHOPPING_PFY:155,INTEREST_EXPLORATION:149,INTEREST_EXPLORATION_TRENDY_QUERIES:150,INTEREST_EXPLORATION_RELATED_INTERESTS:151,RECBOOST_INTERESTS:152,HF_STORY_SHOPPING_RETARGETING:154,RECBOOST_STORY_PINS:156,RECBOOST_STORY_BOARDS:157,PINNABILITY_EMBEDDINGS:158,PINNABILITY_FRESH_STORY_EMBEDDINGS:159,PINNABILITY_STORY_EMBEDDINGS:160,EXPLORATION_STORY_PINS:161,EXPLORATION_STORY_PINS_BASELINE:162,EXPLOITATION_STORY_PINS:163,ANNOTATION_REC_CREATOR_STORY_PINS:166,GRAPHSAGE_MULTI_PINS_TO_STORY_PINS:167,IDEASTREAM_GRAPHSAGE_STORY_PINS:168,HF_EDUCATION_PIN_INSERTION:169,RP_EDUCATION_PIN_INSERTION:170,USER_TO_CREATOR_STORY_PINS:171,USER_TO_CREATOR_STORY_PINS_ENGAGEMENT:176,COENGAGEMENT_STORY_PINS:172,ANNOTATION_STORY_PINS:177,DISCOVER_STREAM_DEMOGRAPHIC_FALLBACK:178,DISCOVER_STREAM_CELEBRITY:179,GRAPHSAGE_SHOPIFY_VMP_PRODUCT_PINS:180,CREATOR_BEST_IDEA_PINS:181,INTEREST_BEST_IDEA_PINS:182,NAVBOOST_STORY_PINS:183,SHOPPING_DISTRIBUTION_PINS:185,WATCH_TAB_EHQ_STORIES:186,NOTIF_LEARNED_RETRIEVAL:187,LANDING_PAGE_PIN_RECOMMENDATIONS:188,PINNERSAGE_LEARNED_EMBEDDINGS:189,TOPIC_FEED:190,RTC_IMPROVEMENT_TEST_1:501,RTC_IMPROVEMENT_TEST_2:502,RTC_IMPROVEMENT_TEST_3:503,RTC_IMPROVEMENT_TEST_4:504,RTC_IMPROVEMENT_TEST_5:505,RTC_IMPROVEMENT_TEST_6:506,RTC_IMPROVEMENT_TEST_7:507,RTC_IMPROVEMENT_TEST_8:508,RTC_IMPROVEMENT_TEST_9:509,RTC_IMPROVEMENT_TEST_10:510,RTC_IMPROVEMENT_TEST_11:511,RTC_IMPROVEMENT_TEST_12:512,RTC_IMPROVEMENT_TEST_13:513,RTC_IMPROVEMENT_TEST_14:514,RTC_IMPROVEMENT_TEST_15:515,RTC_BLENDER_TEST:516,P2P_COMMERCE:21,P2P:14,LENS_CAMERA_VISUALLY_SIMILAR:111,RECENT_FOLLOWED_INTEREST:59,RECENT_FOLLOWED_BOARD:61,GRAPHSAGE_SHOPIFY_VMP_MERCHANT_ACTIVATION_PRODUCT_PINS:174,FOLLOWED_INTEREST_SEO_BESPIN_EXPORATION:184,XPIXIE_TO_PRODUCT_PINS:194};function o(e){return e&&e.reason&&i[e.reason]}},333155:(e,t,n)=>{n.d(t,{UP:()=>s,Wv:()=>o,ZF:()=>i,zI:()=>r,zl:()=>a});const i=["AuthHomefeed","CloseupRelatedProducts","FollowingFeedGrid","RelatedPinGrid","RelatedProductsFeed","SearchItem"],o=["ArticleProductsStory","CloseupRelatedProducts","ProductPinsFeed","RelatedProductsFeed","ShoppingPackageItem","RelatedProductsFeed","UserProfilePinGrid","ShoppingGridShippedMetadataWithVisitButton"],r=[...o,"ShoppingGridShippedMetadata","ShoppingSquareGridDomain","ShoppingSquareGridDomainNoMetadata","ProductPinsFeed","ShoppingCatalogsProductsMetadata","ShoppingDynamicHeightGrid"],a=["ShoppingSquareGridDomain","ShoppingGridShippedMetadata","ShoppingSquareGridStorefront","ShoppingSquareGridStorefrontDomain","ShoppingGridShippedMetadataWithVisitButton"],s=["BaseBoardPinGrid"]},675725:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(680046),o=n(349700);function r({feedbackOptions:e,pin:t,viewParameter:n},r){const{board:a,pinner:s}=null!=t?t:{},{getFeedbackType:l}=(0,i.ZP)({i18n:r,interpolateNamedTemplate:o.nk});return l({board:a,feedback:e,pin:t,pinner:s,viewParameter:n})}},992813:(e,t,n)=>{n.d(t,{Z:()=>l,i:()=>s});var i=n(667294),o=n(425288),r=n(785893);const{Provider:a,useHook:s}=(0,o.Z)("ContentHeader");function l({children:e}){const[t,n]=(0,i.useState)(!1),o=(0,i.useMemo)((()=>({isContentHeaderPresent:t,setIsContentHeaderPresent:n})),[t]);return(0,r.jsx)(a,{value:o,children:e})}},313951:(e,t,n)=>{n.d(t,{i5:()=>b,sX:()=>w,aX:()=>x,Z5:()=>y,NG:()=>P,MT:()=>S,iu:()=>E});var i=n(667294),o=n(6637),r=n(350118),a=n(682492),s=n.n(a);const l=(e,t)=>e.data[t]&&e.data[t].messages||[];function c(e,t){const n={};return e.filter((e=>!!e)).reduce(((e,i)=>{const o=t(i);return n[o]?(s()(n[o],i),e):(n[o]=i,e.concat([i]))}),[])}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:i}=t.payload;return delete n.data[i],n}if("FETCH_COMPLETE"===t.type){const{options:n,resource:i,response:o}=t.payload,r=o.resource_response.data;if("ConversationMessagesResource"===i){const t=r||[],i=(null==n?void 0:n.conversation_id)||"",o=u(e,i,t),a=o[o.length-1];return{...e,data:{...e.data,[i]:{...e.data[i],id:i,messages:o,unread:0,last_message:a}}}}if("ConversationsResource"===i){const t=r||[],n={...e,data:{...e.data}};return t.forEach((e=>{const{id:t,created_at:i,name:o,board:r,emails:a,unread:s,users:l,last_message:c}=e,d=u(n,t,[c]);n.data[t]={...n.data[t],id:t,created_at:i,name:o,board:r,emails:a||[],unread:s||0,users:l||[],last_message:c,messages:d}})),n}if("ConversationResource"===i){const t=r||{},{id:n}=t,i={...e,data:{...e.data}};return n&&(i.data[n]={...i.data[n],...t}),i}if("NewsHubBadgeResource"===i){if(r){const t=r.conversations_unseen_count||0;return{...e,unread:t}}return e}}else{if("MESSAGE_SEND_PENDING"===t.type){const{id:n,message:i}=t.payload;return e.data[n]?{...e,data:{...e.data,[n]:{...e.data[n],id:n,messages:[...e.data[n].messages,i]}}}:e}if("MESSAGE_SEND_PENDING_SUCCESS"===t.type){const{id:n,tempMessage:i,newMessage:o}=t.payload;if(e.data[n]){if(l(e,n).find((e=>e.id===i.id&&e.created_ms===i.created_ms))){const t=d(c(l(e,n).filter((e=>e.id!==i.id)).concat([o]),(e=>e.id)));return{...e,data:{...e.data,[n]:{...e.data[n],last_message:o,messages:t}}}}}return e}if("MESSAGE_SEND_PENDING_FAILURE"===t.type){const{id:n,tempMessageId:i}=t.payload;if(e.data[n]){const t=l(e,n).filter((e=>e.id!==i));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:i}=t.payload;return{...e,data:{...e.data,[n]:{...e.data[n],position:i}}}}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 _=n(425288),m=n(505920),f=n(785893);const g=(()=>{let e=0;return()=>e++})(),{Provider:v,useHook:y}=(0,_.Z)("Conversations");function b({children:e}){const[t,n]=(0,i.useReducer)(h,p),r=(0,i.useCallback)((e=>n({type:"FETCH_COMPLETE",payload:e})),[]);(0,m.Z8)("ConversationMessagesResource",r),(0,m.my)("ConversationMessagesResource",r),(0,m.Z8)("ConversationsResource",r),(0,m.Z8)("ConversationResource",r),(0,m.Z8)("NewsHubBadgeResource",r);const a=(0,i.useCallback)(((e,t=!1,i="")=>n({type:"CONVERSATION_OPEN",payload:{id:e,isPreview:t,contactRequestId:i}})),[]),s=(0,i.useCallback)(((e,t="",i=!1)=>n({type:"CONVERSATION_CLOSE",payload:{id:e,contactRequestId:t,isDeclined:i}})),[]),l=(0,i.useCallback)((e=>n({type:"CONVERSATION_CREATE",payload:e})),[]),c=(0,i.useCallback)((e=>n({type:"CONVERSATION_DELETE",payload:{id:e}})),[]),d=(0,i.useCallback)(((e,t)=>n({type:"CONVERSATION_SAVE_POSITION",payload:{id:e,position:t}})),[]),u=(0,i.useCallback)((e=>n({type:"CONVERSATION_RESET_POSITION",payload:{id:e}})),[]),_=(0,i.useCallback)(((e,t,i)=>{o.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||"";i(t)}))}),[]),g=(0,i.useCallback)((()=>{n({type:"CLOSE_DROPDOWN"})}),[]),y=(0,i.useCallback)((()=>{n({type:"OPEN_DROPDOWN"})}),[]),b=(0,i.useCallback)((e=>{n({type:"OPEN_NEW_MESSAGE",payload:{objectAttachment:e}})}),[]),x=(0,i.useCallback)(((e,t)=>n({type:"MESSAGE_SEND_PENDING",payload:{id:e,message:t}})),[]),P=(0,i.useCallback)(((e,t,i)=>n({type:"MESSAGE_SEND_PENDING_SUCCESS",payload:{id:e,tempMessage:t,newMessage:i}})),[]),w=(0,i.useCallback)(((e,t)=>n({type:"MESSAGE_SEND_PENDING_FAILURE",payload:{id:e,tempMessageId:t}})),[]),S=(0,i.useCallback)((e=>n({type:"UPDATE_NEWSHUB_COUNT",payload:e})),[]),E=(0,i.useCallback)((e=>n({type:"UPDATE_UNREAD_COUNT",payload:e})),[]),A=(0,i.useCallback)((e=>n({type:"CLEAR_MESSAGE_BADGE",payload:{id:e}})),[]),T=(0,i.useMemo)((()=>({clearMessageBadge:A,conversationOpen:a,conversationClose:s,conversationCreate:l,conversationDelete:c,conversationGet:_,saveConversationPosition:d,resetConversationPosition:u,dropdownClose:g,dropdownOpen:y,newMessageOpen:b,pendingMessageSend:x,pendingMessageSuccess:P,pendingMessageFailure:w,updateNewsHubCount:S,updateUnreadCount:E,conversations:t})),[A,a,s,l,c,_,d,u,g,y,b,x,P,w,S,E,t]);return(0,f.jsx)(v,{value:T,children:e})}function x(){const{conversationCreate:e}=y();return async t=>{let n;const i=o.Z.create("ConversationsResource",t);try{var r;const t=null===(r=(await i.callCreate()).resource_response)||void 0===r?void 0:r.data;t&&(e(t),n=t)}catch(a){throw new Error(a.message)}return n}}function P(){const{conversations:e,conversationCreate:t,pendingMessageSend:n,pendingMessageSuccess:i,pendingMessageFailure:a}=y(),s=(0,r.AF)();return async(r,l,c,d)=>{const{text:u,pinId:p,boardId:h,userId:_,didItId:m}=l;async function f(){const e=o.Z.create("ConversationMessagesResource",{conversation_id:r,text:u,pin:p,board:h,user:_,user_did_it_data:m,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(r,l);try{var f;const t=null===(f=(await e.callCreate()).resource_response)||void 0===f?void 0:f.data;t&&i(r,l,t)}catch(v){throw a(r,t),new Error(v.message)}}if(e.data[r])await f();else{const e=o.Z.create("ConversationResource",{conversation_id:r});try{var v;const n=null===(v=(await e.callGet()).resource_response)||void 0===v?void 0:v.data;n&&(t(n),await f())}catch(y){throw new Error(y.message)}}}}function w(e){const{conversations:t}=y();return t.data[e]}function S(e){const{conversations:t}=y();return t.ui[e]||{contactRequestId:"",isDeclined:!1,isPreview:!1}}function E(){const{conversations:{data:e}}=y(),t=(n=e,Object.keys(n).map((e=>n[e]))).filter((e=>e.users&&e.last_message));var n,i;return i=t,Array.from(i).sort(((e,t)=>new Date((t.last_message||t).created_at)-new Date((e.last_message||e).created_at)))}},920085:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(867820);async function o({filename:e,imgSrc:t,imageDownloadSuccessCallback:n,category:o,isUnauth:r,pinId:a,viewParameter:s,viewType:l},c){return"undefined"==typeof window?Promise.resolve():((0,i.My)(`web.${r?"unauth":"auth"}.download.click.${o||"no_category"}`),c({event_type:82,object_id_str:a,view_type:l||3,view_parameter:s||139}),t&&document?fetch(t,{headers:new Headers({Origin:window.location.origin}),mode:"cors"}).then((e=>e.blob())).then((t=>{var i,o;const r=document.createElement("a");r.href=window.URL.createObjectURL(t),r.setAttribute("download",e&&e.replace(".","_")),r.style.display="none",null===(i=document.body)||void 0===i||i.appendChild(r),r.click(),null===(o=document.body)||void 0===o||o.removeChild(r),null==n||n()})).catch((()=>{throw new Error("Download image error")})):Promise.resolve())}},616211:(e,t,n)=>{n.d(t,{W:()=>s,Z:()=>l});var i=n(898781),o=n(883119),r=n(785893);const a={__path:"M10.52 3.11a2 2 0 013.59 0l2.06 4.17c.02.06.08.1.15.11l4.6.67a2 2 0 011.1 3.41l-3.32 3.25a.2.2 0 00-.06.17l.78 4.58a2 2 0 01-2.9 2.11l-4.11-2.16a.2.2 0 00-.19 0l-4.11 2.16a2 2 0 01-2.9-2.1l.78-4.59a.2.2 0 00-.06-.17l-3.32-3.25a2 2 0 011.1-3.41l4.6-.67a.2.2 0 00.15-.1zm3.9 5.15l-1.75-3.53a.4.4 0 00-.71 0L10.2 8.26a2 2 0 01-1.5 1.1l-3.9.56a.4.4 0 00-.23.69l2.83 2.75a2 2 0 01.57 1.77L7.31 19a.4.4 0 00.58.42l3.5-1.83a2 2 0 011.86 0l3.48 1.83a.4.4 0 00.59-.42l-.67-3.88a2 2 0 01.57-1.77l2.83-2.75a.4.4 0 00-.22-.69l-3.9-.56a2 2 0 01-1.51-1.1z"},s={__path:"M10.52 3.11a2 2 0 013.59 0l2.06 4.17c.02.06.08.1.15.11l4.6.67a2 2 0 011.1 3.41l-3.32 3.25a.2.2 0 00-.06.17l.78 4.58a2 2 0 01-2.9 2.11l-4.11-2.16a.2.2 0 00-.19 0l-4.11 2.16a2 2 0 01-2.9-2.1l.78-4.59a.2.2 0 00-.06-.17l-3.32-3.25a2 2 0 011.1-3.41l4.6-.67a.2.2 0 00.15-.1z"};function l({isCloseupButton:e,isDisabled:t,isFavorited:n,onTap:l,size:c}){const d=(0,i.ZP)();return e?(0,r.jsx)(o.hU,{accessibilityLabel:d.bt("Favourite icon", "Favorite icon", "pinRep.footer.favoriteIcon", undefined, true),dangerouslySetSvgPath:n?s:a,disabled:t,iconColor:"darkGray",onClick:l,size:"lg"}):(0,r.jsx)(o.iP,{disabled:t,onTap:l,children:(0,r.jsx)(o.JO,{accessibilityLabel:d.bt("Favourite icon", "Favorite icon", "pinRep.footer.favoriteIcon", undefined, true),color:"default",dangerouslySetSvgPath:n?s:a,size:c})})}},676464:(e,t,n)=>{function i(e){const t=e.split("/");return[t[2],t[1]]}function o(e,t){return!e||!e.some((e=>e.pin_type===t))}n.d(t,{E:()=>o,J:()=>i})},833991:(e,t,n)=>{n.d(t,{HW:()=>a,YW:()=>u,i3:()=>p,o2:()=>d});var i=n(667294),o=n(425288),r=n(785893);const a=660,s={educationId:null,paddingRight:0,zIndex:a};function l(e,t){switch(t.type){case"FOOTER_SET_EDUCATION_ID":const{educationId:n}=t.payload;return{...e,educationId:n};case"FOOTER_SET_PADDING_RIGHT":const{paddingRight:i}=t.payload;return{...e,paddingRight:i};case"FOOTER_SET_Z_INDEX":const{zIndex:o}=t.payload;return{...e,zIndex:o};default:return e}}const{Provider:c,Consumer:d,useHook:u}=(0,o.Z)("footerContext");function p({children:e}){const[t,n]=(0,i.useReducer)(l,s),o=(0,i.useCallback)((e=>n({type:"FOOTER_SET_PADDING_RIGHT",payload:{paddingRight:e}})),[]),a=(0,i.useCallback)((e=>n({type:"FOOTER_SET_EDUCATION_ID",payload:{educationId:e}})),[]),d=(0,i.useCallback)((e=>n({type:"FOOTER_SET_Z_INDEX",payload:{zIndex:e}})),[]),u=(0,i.useMemo)((()=>({...t,setEducationId:a,setPaddingRight:o,setZIndex:d})),[t,a,o,d]);return(0,r.jsx)(c,{value:u,children:e})}},427806:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(883119),o=n(785893);function r({text:e}){return(0,o.jsx)(i.xu,{display:"visuallyHidden",children:(0,o.jsx)(i.X6,{accessibilityLevel:1,children:e})})}},697335:(e,t,n)=>{n.d(t,{c:()=>o,t:()=>r});var i=n(883521);function o({children:e}){const{height:t}=(0,i.J)();return e(t)}function r(){const{height:e}=(0,i.J)();return e}},883521:(e,t,n)=>{n.d(t,{J:()=>c,Z:()=>h});var i=n(667294),o=n(522679),r=n(425288),a=n(977558),s=n(785893);const{Provider:l,useHook:c}=(0,r.Z)("Header"),d={childList:!0,attributes:!0,subtree:!0},u={height:a.cI,isInBiznuxFullscreen:!1,repinPinId:null,repinStartAnimation:!1,showAccountMenuFlyout:!1};function p(e,t){switch(t.type){case"showAccountMenuFlyout":return{...e,showAccountMenuFlyout:!0};case"hideAccountMenuFlyout":return{...e,showAccountMenuFlyout:!1};case"showRepinAnimation":return{...e,repinStartAnimation:!0,repinPinId:t.payload};case"hideRepinAnimation":return{...e,repinStartAnimation:!1,repinPinId:null};case"updateHeight":return{...e,height:t.payload};case"updateIsInBiznuxFullscreen":return{...e,isInBiznuxFullscreen:t.payload};default:throw new Error("action type not supported")}}function h({children:e}){const t=(0,i.useRef)(null),[{height:n,isInBiznuxFullscreen:r,repinPinId:c,repinStartAnimation:h,showAccountMenuFlyout:_},m]=(0,i.useReducer)(p,u);(0,i.useEffect)((()=>{const e=document.getElementById(a.WZ),n=()=>{e&&m({type:"updateHeight",payload:e.clientHeight})};return e&&"undefined"!=typeof MutationObserver&&(t.current=new MutationObserver(n),t.current.observe(e,d)),()=>{var e;null===(e=t.current)||void 0===e||e.disconnect()}}));const f=(0,i.useMemo)((()=>({height:n,isInBiznuxFullscreen:r,repinPinId:c,repinStartAnimation:h,showAccountMenuFlyout:_,updateHeaderState:m})),[m,n,r,c,h,_]);return(0,s.jsx)(l,{value:f,children:(0,s.jsx)(o.t,{children:e})})}},977558:(e,t,n)=>{n.d(t,{L1:()=>r,Rz:()=>l,WZ:()=>a,cI:()=>o,fe:()=>s,hu:()=>i});const i=64,o=80,r=22,a="HeaderContent",s=671,l={boxShadow:"0px 8px 8px -8px rgba(0, 0, 0, 0.1)",transition:"box-shadow 300ms ease-in-out"}},49028:(e,t,n)=>{n.d(t,{Hv:()=>c,WQ:()=>l});var i=n(667294),o=n(766935),r=n(425288),a=n(785893);const{Provider:s,useHook:l}=(0,r.Z)("HeaderShadow");function c({children:e}){const[t,n]=(0,i.useState)(!1),[r,l]=(0,i.useState)(0),[c,d]=(0,i.useState)(null);return(0,i.useEffect)((()=>{const e=(0,o.Z)((()=>{n(window.scrollY>0),l(window.scrollY)}),50);return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[]),(0,a.jsx)(s,{value:{currentScrollPosition:r,isScrolled:t,setSubheaderShadow:d,subheaderShadow:c},children:e})}},807532:(e,t,n)=>{n.d(t,{C:()=>l,f:()=>s});var i=n(667294),o=n(425288),r=n(785893);const{Provider:a,useHook:s}=(0,o.Z)("MostRecentPin");function l({children:e}){const[t,n]=(0,i.useState)(),[o,s]=(0,i.useState)(),l=(0,i.useCallback)((e=>{const t=o?o.slice(0,10):[],n=[e].concat(t.filter((t=>t!==e)));s(n)}),[o]),c=(0,i.useMemo)((()=>({id:t,plpImageSignatures:o,setMostRecentPinId:n,setMostRecentPinImage:l})),[t,o,l]);return(0,r.jsx)(a,{value:c,children:e})}},379764:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(183007);const o=new(n(883119).H3)([i.N])},831539:(e,t,n)=>{n.d(t,{Z:()=>_});var i=n(474236),o=n(941646),r=n(898781),a=n(892819),s=n(349700),l=n(780280),c=n(561195),d=n(883119),u=n(785893);const p=({rating:e,textSize:t,type:n})=>{if("single"===n){const n=parseFloat(e);return Number.isNaN(n)?null:(0,u.jsxs)(d.kC,{alignItems:"center",children:[(0,u.jsx)(c.A,{fill:"full",width:12}),(0,u.jsx)(d.xv,{size:t,children:n.toFixed(1)})]})}return(0,u.jsx)(c.Z,{rating:e,width:12})},h=({bracket:e,count:t,countFormat:n,countType:i,marginStart:c,textSize:p,underline:h})=>{const{locale:_}=(0,l.B)(),m=(0,r.ZP)(),f=(0,a.Z)();if(null==t)return null;let g=f(_,t,{shortform:!0,shortform_maximum_fraction_digits:1});if("text"===n){const e="review"===i?m.nbt(["{{ count }} review", "{{ count }} reviews"], t, "webapp.app.www-unified.productStarRatings.RatingCountText", true):m.nbt(["{{ count }} rating", "{{ count }} ratings"], t, "webapp.app.www-unified.productStarRatings.RatingCountText", true);g=(0,s.nk)(e,{count:t}).join("")}return e&&(g=`(${g})`),(0,u.jsx)(d.xu,{dangerouslySetInlineStyle:{__style:{borderBottom:h?"1px solid gray":"none"}},marginStart:c,children:(0,u.jsx)(d.xv,{color:h?"subtle":"default",size:p,underline:h,children:(0,u.jsx)(o.Z,{id:"ratings-count-text",display:"inlineBlock",children:g})})})};function _({count:e,countFormat:t,countType:n,rating:o,textSize:r,underline:a}){return(0,i.Z)({count:e,rating:o})?(0,u.jsxs)(d.kC,{alignItems:"center",justifyContent:"start",children:[(0,u.jsx)(p,{rating:o,textSize:r,type:"multiple"}),(0,u.jsx)(h,{count:e,countFormat:t,countType:n,textSize:r,underline:a})]}):null}},474236:(e,t,n)=>{function i({count:e,rating:t}){return Boolean(t&&"None"!==t&&Number.isFinite(e))}n.d(t,{Z:()=>i})},99137:(e,t,n)=>{n.d(t,{x:()=>s,y:()=>l});var i=n(667294),o=n(425288),r=n(785893);const{Provider:a,useMaybeHook:s}=(0,o.Z)("ProfileViewContext");function l({children:e}){const[t,n]=(0,i.useState)(),[o,s]=(0,i.useState)(new Map),[l,c]=(0,i.useState)(),[d,u]=(0,i.useState)(),p=(0,i.useCallback)(((e,t)=>{s(new Map(o.set(e,t)))}),[o]),h=(0,i.useMemo)((()=>({boardPinDensity:t,boardSortOrder:o,profileBoardView:l,profilePinDensity:d,setBoardPinDensity:n,updateBoardSortOrder:p,setProfileBoardView:c,setProfilePinDensity:u})),[t,o,l,d,p]);return(0,r.jsx)(a,{value:h,children:e})}},130460:(e,t,n)=>{n.d(t,{bn:()=>s,fJ:()=>c,gC:()=>l});var i=n(702664),o=n(425288),r=n(785893);const{Provider:a,useHook:s}=(0,o.Z)("Boards");function l(){const e=s();return t=>e[t]}function c({children:e}){const t=(0,i.useSelector)((({boards:e})=>e),i.shallowEqual);return(0,r.jsx)(a,{value:t,children:e})}},350118:(e,t,n)=>{n.d(t,{AF:()=>s,H0:()=>l,S6:()=>c,_S:()=>d});var i=n(702664),o=n(425288),r=n(785893);const{Provider:a,useHook:s,useMaybeHook:l}=(0,o.Z)("Pins");function c(){const e=s();return t=>e[t]}function d({children:e}){const t=(0,i.useSelector)((({pins:e})=>e),i.shallowEqual);return(0,r.jsx)(a,{value:t,children:e})}},698330:(e,t,n)=>{n.d(t,{Tt:()=>u,cm:()=>d,kW:()=>l,kY:()=>p,mN:()=>c});var i=n(702664),o=n(19121),r=n(425288),a=n(785893);const{Provider:s,useHook:l}=(0,r.Z)("Users");function c(){const e=l();return t=>e[t]}function d(){const e=l();return t=>{const n=Object.keys(e).find((n=>e[n].username===t));return e[null!=n?n:""]}}function u(){const{id:e}=(0,o.Z)();return l()[null!=e?e:""]}function p({children:e}){const t=(0,i.useSelector)((({users:e})=>e),i.shallowEqual);return(0,a.jsx)(s,{value:t,children:e})}},2396:(e,t,n)=>{n.d(t,{Z:()=>f});var i=n(667294),o=n(482981),r=n(827021),a=n(121151),s=n(750869),l=n(946984),c=n(883119),d=n(785893);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=new c.Ry(1),h=({children:e})=>e((0,l.Z)());class _ extends i.Component{constructor(...e){super(...e),u(this,"handleDismiss",(()=>{const{onFlyoutDismiss:e}=this.props;e()})),u(this,"onHide",(()=>{this.props.onClick(),this.handleDismiss()})),u(this,"flyoutProps",(()=>{var e;const{gridDescription:t,idealDirection:n,imageSrc:i,pinId:a,userId:l,board:c,sendType:u,fullName:p,profileUrl:h,element:_,viewParameter:m,component:f,viewType:g,onExternalSend:v,showCaret:y,todayArticle:b,ownerId:x}=this.props;let P={description:t,id:a,imageUrl:i,name:"",type:s.d.PIN,url:`/pin/${a}/`,ownerId:x},w=s.d.PIN;switch(u){case"user":P={description:t,id:l,imageUrl:i,name:p,type:s.d.PINNER,url:h},w=s.d.USER;break;case"board":P=c&&{description:c.description,id:c.id,imageUrl:c.imageUrl,name:c.name,type:s.d.BOARD,url:c.url,ownerId:null===(e=c.owner)||void 0===e?void 0:e.id},w=s.d.BOARD;break;case"today_article":P=b&&{description:b.subtitle||"",id:b.id,imageUrl:i,name:b.title,type:s.d.TODAY_ARTICLE,url:(0,o.Z)(b)},w=s.d.TODAY_ARTICLE}const S={element:_,component:f,onHide:this.onHide,onExternalSend:v,sendType:w,sharedObject:P,viewParameter:m,viewType:g};return{anchor:this.flyoutAnchor,idealDirection:n,onDismiss:this.handleDismiss,showCaret:y,children:(0,d.jsx)(r.default,{...S})}}))}toggle(){const{isOwnProfile:e,onToggleFlyout:t,sendType:n,userId:i,logContextEvent:o}=this.props;"user"===n&&o({event_type:101,component:13675,element:1079,object_id_str:i,view_type:4,view_parameter:e?3106:3107}),t()}render(){const{Subject:e,inModal:t,isFlyoutOpen:n,shownWithinMasonry:i,shownWithinProfileHeader:o}=this.props,{anchor:r,idealDirection:s,showCaret:l,children:u}=this.flyoutProps(),_=(0,d.jsx)(c.xu,{children:(0,d.jsx)(h,{children:t=>(0,d.jsx)(e,{handleSendShareFlyoutButtonClick:e=>{t?t():(null!=e&&e.stopPropagation&&e.stopPropagation(),this.toggle())},...this.props})})}),m=n&&(i||o?(0,d.jsx)(c.mh,{zIndex:o?p:void 0,children:(0,d.jsx)(c.xu,{zIndex:t?a.b7:void 0,position:t?"absolute":void 0,top:!!t||void 0,children:(0,d.jsx)(c.J2,{anchor:r,idealDirection:s,onDismiss:()=>{this.handleDismiss()},showCaret:l,size:"flexible",positionRelativeToAnchor:!1,children:u})})}):(0,d.jsx)(c.J2,{anchor:r,idealDirection:s,onDismiss:()=>{this.handleDismiss()},showCaret:l,size:"flexible",children:u}));return(0,d.jsxs)(c.xu,{ref:e=>{e&&(this.flyoutAnchor=e)},dangerouslySetInlineStyle:{__style:{pointerEvents:"auto"}},children:[_," ",m]})}}u(_,"defaultProps",{idealDirection:"down",onClick:()=>{}});var m=n(112690);function f(e){return t=>{const n=(0,m.Z)();return(0,d.jsx)(_,{Subject:e,logContextEvent:n,...t})}}},17676:(e,t,n)=>{n.d(t,{l:()=>d,E:()=>c});var i=n(667294),o=n(425288);function r(e={},t){if("SUGGESTIONS_FETCH_COMPLETE"===t.type){const{payload:o}=t;if("ShareSuggestionsResource"===o.resource){var n;const i=t.payload.response.resource_response.data||[],{term:r=""}=null!==(n=o.options)&&void 0!==n?n:{};return{...e,[r]:i}}if("ShareSuggestionsTypeaheadResource"===o.resource){var i;const n=(t.payload.response.resource_response.data||{}).items||[],{term:r=""}=null!==(i=o.options)&&void 0!==i?i:{};return{...e,[r]:n}}}return e}var a=n(505920),s=n(785893);const{Provider:l,useHook:c}=(0,o.Z)("ShareSuggestions");function d({children:e}){const[t,n]=(0,i.useReducer)(r,{}),o=e=>{n({type:"SUGGESTIONS_FETCH_COMPLETE",payload:e})};(0,a.Z8)("ShareSuggestionsResource",o),(0,a.Z8)("ShareSuggestionsTypeaheadResource",o);const c=(0,i.useMemo)((()=>({shareSuggestions:t})),[t]);return(0,s.jsx)(l,{value:c,children:e})}},108234:(e,t,n)=>{n.d(t,{Z:()=>f,s:()=>m});var i=n(667294),o=n(121151),r=n(608575),a=n(898781),s=n(349700),l=n(883119),c=n(785893);const d=()=>{var e;const t=(0,a.ZP)(),{dismissWarning:n}=null!==(e=m())&&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,a.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 i=(0,a.ZP)(),{dismissWarning:p}=null!==(n=m())&&void 0!==n?n:{};return(0,c.jsx)(o.ZP,{accessibilityModalLabel:i.bt("We have blocked this link", "We have blocked this link", "Modal label when clicking a spammy link", undefined, true),onDismiss:p,heading:i.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:i.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:r.parse(t).hostname})]})]})})};var h=n(425288);const{Provider:_,useMaybeHook:m}=(0,h.Z)("SpammyClickthrough");function f({children:e}){const[t,n]=(0,i.useState)(null),o=(0,i.useCallback)((()=>{n(null)}),[n]),r=(0,i.useCallback)((e=>{n(e)}),[n]),a=(0,i.useMemo)((()=>({dismissWarning:o,showWarning:r})),[o,r]);return(0,c.jsxs)(_,{value:a,children:[t&&(0,c.jsx)(p,{...t}),e]})}},202870:(e,t,n)=>{n.d(t,{Z:()=>c,j:()=>l});var i=n(898781),o=n(349700),r=n(773285),a=n(883119),s=n(785893);const l=[0,2,3];function c({hasAffiliateProducts:e,href:t,isPromoted:n,onNavigateSponsorClick:c,sponsorName:d,sponsorUsername:u,sponsorshipStatus:p,textWeight:h="bold"}){const _=(0,i.ZP)(),m=(0,r.F)().checkExperiment("mweb_web_android_ios_clbc_eu_ad_string").anyEnabled,f=(0,r.F)().checkExperiment("web_remove_paid_partnership_in_rejected_state").anyEnabled,g=t||(u?`/${u}/`:null),v=g&&d?(0,s.jsx)(a.rU,{href:g,onClick:c,children:(0,s.jsx)(a.xv,{weight:h,size:"200",children:d})},d):void 0;let y;n?y=(0,o.nk)(_.bt("Promoted by {{ name }}", "Promoted by {{ name }}", "sponsorship.sponsorshipText.promotedByBrand", undefined, true),{name:v}):p||0===p?d&&!l.includes(p)?y=(0,o.nk)(_.bt("Paid partnership with {{ name }}", "Paid partnership with {{ name }}", "closeup.creator.sponsoredPinTitle", undefined, true),{name:v}):f&&2===p||(y=_.bt("Paid partnership", "Paid partnership", "closeup.creator.sponsoredPinTitle", undefined, true)):e&&(y=_.bt("Includes sponsored products", "Includes sponsored products", "sponsorship.sponsorshipText.affiliatedProducts", undefined, true));const b=m&&!n?"Ad • ":"";return(0,s.jsxs)(a.xv,{inline:!0,size:"200",lineClamp:2,children:[b,y]})}},800751:(e,t,n)=>{n.d(t,{$I:()=>b,$o:()=>h,CC:()=>g,Hr:()=>a,Jo:()=>u,Q8:()=>A,Ux:()=>m,VX:()=>S,XZ:()=>f,Zo:()=>v,aD:()=>y,b2:()=>P,dJ:()=>o,g2:()=>w,g6:()=>c,il:()=>s,lM:()=>l,qN:()=>p,qX:()=>r,s4:()=>_,ym:()=>x,zQ:()=>E});var i=n(966113);const o=546,r={height:136,width:272},a={advertise:i.Rf+"/advertise",targeting:i.Rf+"/advertise/#targeting",how_to_make_pins:i.Rf+"/basics/how-to-make-pins/#best-practices",success_stories:i.Rf+"/success-stories/"},s={status_page_header_background:"https://i.pinimg.com/originals/76/52/b8/7652b80aac786dac958ce996d9692771.png",additional_resources_business_advertise:"https://i.pinimg.com/originals/58/4d/6f/584d6f9e21d7e95b723c04015a7f3333.png",additional_resources_business_audience:"https://i.pinimg.com/originals/44/3d/67/443d671687e418a4ec23bb56419c509c.png",additional_resources_business_how_to_make_pins:"https://i.pinimg.com/originals/79/f4/99/79f499fedffcfd50ee86ebaac4f34e9a.png",additional_resources_business_success_stories:"https://i.pinimg.com/originals/e0/55/12/e05512dbb012d7bd1861d901dc851b2e.png"},l=["US","GB","CA","AU","DE","FR"],c=["ES","IT","AT","CH","NL","BR","MX"],d=["FR"],u=l.concat(c).filter((e=>!d.includes(e))),p={PROCESSING:"PROCESSING",FAILED:"FAILED",COMPLETED:"COMPLETED",DISAPPROVED:"DISAPPROVED",UNDER_REVIEW:"UNDER_REVIEW"},h={APPROVED:"approved",PENDING:"pending",DISAPPROVED:"declined",APPEAL_PENDING:"appeal_pending"},_=Object.freeze({APPLIED:"APPLIED",IN_REVIEW:"IN_REVIEW",ACCEPTED:"ACCEPTED",NON_COMPLIANT:"NON_COMPLIANT",SUSPENDED:"SUSPENDED",CANCELLED:"CANCELLED",OUTBOUND_LEAD:"OUTBOUND_LEAD"}),m=(e,t)=>{switch(e){case"IN_PROGRESS":return t.bt("In progress", "In-progress", "BizHubHeader.VMPEntryPointStatus.label", undefined, true);case"IN_REVIEW":return t.bt("In review", "In review", "BizHubHeader.VMPEntryPointStatus.label", undefined, true);case"ACTIVE":return t.bt("Active", "Active", "BizHubHeader.VMPEntryPointStatus.label", undefined, true);case"NEEDS_ATTENTION":return t.bt("Needs attention", "Needs attention", "BizHubHeader.VMPEntryPointStatus.label", undefined, true);case"SUSPENDED":return t.bt("Suspended", "Suspended", "BizHubHeader.VMPEntryPointStatus.label", undefined, true);default:return e}},f=[_.NON_COMPLIANT,_.SUSPENDED],g=Object.freeze({UNSUPPORTED_MARKET:"unsupported_market",TAG_ID_NOT_CREATED:"tag_id_not_created",NO_TAG_TRAFFIC:"no_tag_traffic",HEALTH_SCORE_NOT_AVAILABLE:"health_score_not_available",UNHEALTHY:"unhealthy",ACCEPTABLE:"acceptable",HEALTHY:"healthy"}),v=Object.freeze({UNSTARTED:"workflow-status-unstarted",IN_PROGRESS:"workflow-status-in-progress",ACCEPTED:"check-circle",ATTENTION:"alert",REJECTED:"clear",RECOMMENDED:"info-circle"}),y=Object.freeze({UNSTARTED:"subtle",IN_PROGRESS:"success",ACCEPTED:"success",ATTENTION:"warning",REJECTED:"error",RECOMMENDED:"subtle"}),b={status:"APPLIED",userId:"user_undefined",is_approved:!1,last_compliant_at:""},x="Verified merchant program not yet available in this country",P=2e3,w={can_appeal:!0,appeal_count:0,appeal_comment:"",shipping_policy_url:"",return_policy_url:"",review_status:2,review_reasons:[]},S=Object.freeze({ACCOUNT_AGE:"ACCOUNT_AGE",DOMAIN_AGE:"DOMAIN_AGE",PROFILE_IMAGE:"PROFILE_IMAGE",PROFILE_COVER_IMAGE:"PROFILE_COVER_IMAGE",BIO:"BIO",SHOP_TAB:"SHOP_TAB",PINNER_FEEDBACK:"PINNER_FEEDBACK"}),E=[S.ACCOUNT_AGE,S.DOMAIN_AGE,S.PROFILE_IMAGE,S.PROFILE_COVER_IMAGE,S.BIO,S.SHOP_TAB,S.PINNER_FEEDBACK],A=Object.freeze({PASS:"PASS",FAIL:"FAIL"})},966676:(e,t,n)=>{n.d(t,{Nb:()=>s,Of:()=>l,YO:()=>a,ZP:()=>u,x4:()=>d});var i=n(667294),o=n(620707),r=n(92261);const a=({showProductDetailPage:e,isLargerPane:t,showCloseupContentRight:n})=>e&&t?n?r.Uj:r.zT:1,s=(0,o.qe)((({paneWidth:e,pdpCarouselSlotToPaneRatio:t,showCloseupContentRight:n,showProductDetailPage:i,updateCloseupBodyContainerHeight:o,viewportSize:r,maxWidth:a})=>({paneWidth:e,pdpCarouselSlotToPaneRatio:t,showCloseupContentRight:n,showProductDetailPage:i,updateCloseupBodyContainerHeight:o,viewportSize:r,maxWidth:a}))),l={showCloseupContentRight:!0,showProductDetailPage:!1,updateCloseupBodyContainerHeight:()=>{},viewportSize:"lg",paneWidth:{pdp:r.CI,regular:r.Gg},pdpCarouselSlotToPaneRatio:1,maxWidth:{pdp:r.Kn,regular:r.u6}},c=(0,i.createContext)(l);function d(){const e=(0,i.useContext)(c);if(!e)throw new Error("useCloseupContext must be used within CloseupContextProvider");return e}const u=c},92261:(e,t,n)=>{n.d(t,{CI:()=>r,Ch:()=>s,Gb:()=>l,Gg:()=>i,Ie:()=>p,JV:()=>_,KP:()=>h,Kn:()=>a,Uj:()=>c,bx:()=>m,d2:()=>u,g9:()=>f,iB:()=>g,u6:()=>o,zT:()=>d});const i=508,o=2*i,r=488,a=992,s=672,l=1176,c=.6,d=.84,u=40,p=72,h=740,_=60,m=912,f=32,g={ARTICLE:"https://schema.org/Article",BRAND:"https://schema.org/Brand",PRODUCT:"https://schema.org/Product",RECIPE:"https://schema.org/Recipe",OFFER:"https://schema.org/Offer",OUT_OF_STOCK:"https://schema.org/OutOfStock",PERSON:"https://schema.org/Person"}},814197:(e,t,n)=>{n.d(t,{Cq:()=>_,Dk:()=>f,Fk:()=>a,bI:()=>r,fS:()=>h,gw:()=>u,j1:()=>p,km:()=>m,lI:()=>l,lJ:()=>s,mS:()=>d,qW:()=>c,t5:()=>g});var i=n(883119),o=n(977558);const r=new i.Ry(0),a=new i.Ry(1),s=3,l=new i.Ry(s),c=2,d=new i.Ry(c),u=new i.Ry(3),p=new i.Ry(3),h=3,_=4,m=new i.Ry(5),f=new i.Ry(100),g=new i.Ry(o.fe+1)},398061:(e,t,n)=>{n.d(t,{Z:()=>s,e:()=>a});var i=n(780280),o=n(883119),r=n(785893);const a=new o.Ry(1);function s({children:e,isImagePinForUnauthOnTablet:t}){const{isAuthenticated:n}=(0,i.B)();return(0,r.jsxs)(o.xu,{alignItems:"center",bottom:!0,dangerouslySetInlineStyle:{__style:{cursor:"pointer",width:t?"40vw":void 0}},zIndex:n?void 0:a,display:"flex",justifyContent:"center",left:!0,position:"absolute",right:!t||void 0,top:!0,children:[(0,r.jsx)(o.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:()=>r,q:()=>o});var i=n(425288);const{Provider:o,useHook:r}=(0,i.Z)("CloseupPageContext")},183007:(e,t,n)=>{n.d(t,{N:()=>b,Z:()=>x});var i=n(667294),o=n(223815),r=n(248041),a=n(898781),s=n(52022),l=n(867820),c=n(883119),d=n(785893);function u({icon:e}){const{hide:t}=(0,r.Z)(),n=(0,a.ZP)(),i=(0,s.Z)();return(0,d.jsx)(o.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"),i({action:"click",item:"expand-button",within:"pin-image"}),t()}})})})}var p=n(700380),h=n(50286),_=n(792182),m=n(398061),f=n(444445),g=n(773285);const v=.3,y=.75,b=new c.H3([m.e]),x=({children:e,closableDrawer:t})=>{var n;const{hide:o}=(0,r.Z)(),a=(0,i.useRef)(null),s=(0,i.useRef)(null),[l,m]=(0,i.useState)(null),[x,P]=(0,i.useState)(0),[w,S]=(0,i.useState)(!1),E=(null===(n=(0,_.Z)())||void 0===n?void 0:n.height)||0,[A,T]=(0,i.useState)(!1),I=(0,h.ZP)(),{checkExperiment:C}=(0,g.F)(),R=null!=l?l:.75*E,k=()=>{var e;const t=(null===(e=a.current)||void 0===e?void 0:e.offsetTop)||0;return t>0&&E>0?t-E*v+60:0};return(0,i.useEffect)((()=>{const e=()=>{var e;const t=(null===(e=a.current)||void 0===e?void 0:e.offsetTop)||0;window.scrollY+R>t&&o()};e();const t=(0,p.Z)(e,10);return window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)}),[o,R]),(0,d.jsxs)(i.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:{...w?{transitionDuration:"500ms",transitionProperty:"maxHeight, borderRadius"}:{},borderRadius:0===l&&w?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];P(t),S(!1)},onTouchMove:e=>{e.preventDefault();const{clientY:t}=e.touches[0],n=null!=l?l:.75*window.innerHeight,i=t-x;if(null!==n&&i){const e=E*v,t=E*y,r=Math.floor(Math.min(t,Math.max(e,n+i)));m(r);const a=k();if(E>0&&a>0){const e=a*(o=r/E,1-(Math.max(v,Math.min(y,o))-v)/.45);window.pageYOffset<e&&window.scrollTo({top:e})}r<.525*E&&T(!0)}var o;P(t)},onTouchEnd:()=>{if(A){S(!0);m(E*v);const e=k();e&&window.scrollTo({top:e,behavior:"smooth"}),T(!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"})}):!C("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:f.D6,children:e})]}),(0,d.jsx)(c.xu,{ref:a,height:"100vh"})]})}},95551:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(898781),o=n(883119),r=n(780280),a=n(785893);const s=({onSendButtonClick:e,trackShareTap:t,color:n,size:s,bgColor:l})=>{const c=(0,i.ZP)(),{userAgent:{platform:d}}=(0,r.B)(),u="android"===d;return(0,a.jsx)(o.hU,{accessibilityLabel:c.bt("Send", "Send", "Board.Pin.SendButton", undefined, true),onClick:({event:n})=>{e(n),t()},size:s||"lg",bgColor:l||"transparent",iconColor:n||"darkGray",icon:u?"android-share":"share"})}},248041:(e,t,n)=>{n.d(t,{Z:()=>c,t:()=>l});var i=n(667294),o=n(867820),r=n(276775),a=n(785893);const s=(0,i.createContext)({hide:()=>{},isHidden:!0,isScrolledToPins:!1,scrollToPins:()=>{}});function l({children:e,isEligible:t}){const[n,l]=(0,i.useState)(!t),[c,d]=(0,i.useState)(!1),{pathname:u}=(0,r.useLocation)();(0,i.useEffect)((()=>{l(!t)}),[u,t]);const p=(0,i.useCallback)((()=>{(0,o.My)("web_unification.expand_click.hide_drawer"),l(!0)}),[]),h=(0,i.useCallback)((e=>{d(!!e)}),[]),_=(0,i.useMemo)((()=>({isHidden:n,hide:p,isScrolledToPins:c,scrollToPins:h})),[n,p,c,h]);return(0,a.jsx)(s.Provider,{value:_,children:e})}const c=()=>(0,i.useContext)(s)},435497:(e,t,n)=>{n.d(t,{Z:()=>c});var i=n(667294),o=n(883119),r=n(455024),a=n(785893);function s({index:e,length:t,showBadge:n}){const i=n?.8:0;return(0,a.jsx)(o.xu,{alignItems:"center",color:"selected",display:"flex",height:35,justifyContent:"center",marginEnd:5,marginTop:5,position:"absolute",right:!0,rounding:2,width:35,zIndex:new o.Ry(1),dangerouslySetInlineStyle:{__style:{opacity:i,transition:"opacity .3s"}},children:(0,a.jsx)(o.xv,{color:"inverse",children:`${(null!=e?e:0)+1}/${t}`})})}var l=n(564194);function c(e){var t,n,c;const{children:d,componentType:u,containerRef:p,contextLogData:h,disableTransition:_,gap:m=0,height:f,id:g,impressionType:v,index:y,showCarouselBadge:b,slideWidth:x,view:P,viewParameter:w,widthRatio:S=1}=e,{showBadge:E}=(({index:e})=>{const[t,n]=(0,i.useState)(!0),o=(0,i.useRef)(),r=(0,i.useRef)();return(0,i.useEffect)((()=>(o.current=setTimeout((()=>{n(!1)}),3e3),()=>{clearTimeout(o.current)})),[]),(0,i.useEffect)((()=>{r.current?(clearTimeout(o.current),n(!0)):r.current=e}),[e]),{showBadge:t}})({index:y}),A=(0,i.useRef)();if(S>1||S<0)throw new Error("widthRatio should be between 0 and 1 inclusive");const T=Math.floor(x*S),I=i.Children.toArray(d),C=I.length*T,R=(null===(t=p.current)||void 0===t?void 0:t.clientWidth)||C;return(0,a.jsxs)(o.xu,{display:"flex",justifyContent:R>C?"center":"start",alignItems:"center",overflow:"hidden","data-test-id":"carousel-pin",children:[b&&(0,a.jsx)(s,{length:I.length,index:y,showBadge:E}),"BoardMoreIdeasRep"!==v&&(0,a.jsx)(l.Z,{trackCarousel:!0,impressionType:"Pin",loggingId:g,slotIndex:y,viewParameter:72,viewType:1,children:(0,a.jsx)(o.xu,{height:null!==(n=null!=f?f:null===(c=A.current)||void 0===c?void 0:c.clientHeight)&&void 0!==n?n:1,overflow:"hidden",position:"absolute",width:x})},`carousel-impression-key-${y}`),(0,a.jsx)(o.xu,{dangerouslySetInlineStyle:{__style:{transition:_?"":"left .3s",left:(0,r.CU)({slotWidth:T,gap:m,numberOfSlides:I.length,index:y,containerWidth:R})}},left:!0,display:"flex",direction:"row",position:"relative",children:I.map(((e,t)=>{const n=t===I.length-1,i=(0,a.jsx)(o.xu,{dangerouslySetInlineStyle:{__style:{marginRight:n?0:m}},"data-test-id":`carousel-img-${t}`,height:null!=f?f:void 0,ref:A,width:T,children:e},`carousel-slot-${g}-${t}`);return"BoardMoreIdeasRep"===v?(0,a.jsx)(l.Z,{componentType:u,contextLogData:h,impressionType:null!=v?v:"Pin",loggingId:g,slotIndex:t,viewParameter:null!=w?w:72,viewType:null!=P?P:1,children:i},`carousel-slot-${g}-${t}`):i}))})]})}},356725:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p});var i=n(702664),o=n(834911),r=n(447948),a=n(35495),s=n(407043),l=n(350118),c=n(966676),d=n(883119),u=n(785893);function p({carouselData:e,carouselIndex:t,componentType:n,contextLogData:p,handleCarouselSwipe:h,isCloseup:_,isEditMode:m,pinId:f,viewParameter:g,viewType:v,variant:y}){const{logContextEvent:b}=(0,s.v)(),x=(0,l.S6)()(f),P=e||(0,o.Z)({carouselData:null==x?void 0:x.carousel_data,images:null==x?void 0:x.images,richMetadata:null==x?void 0:x.rich_metadata,richSummary:null==x?void 0:x.rich_summary}),w=(0,i.useDispatch)();if(!P)return null;const S=(e,t,i)=>{m||void 0===r.yR||(e.preventDefault(),e.stopPropagation(),w((0,r.yR)(String(f),i))),void 0!==h&&h(i),((e,t,n,i=0,o,r,s,l,c,d,u)=>{if(!u){const{carousel_slots:u,id:p}=r;e({event_type:108,object_id_str:n,component:c,view_type:l,view_parameter:s,event_data:{pinCarouselSlotEventData:{carouselSlotId:(null==u?void 0:u[i])&&Number(u[i].id),carouselDataId:Number(p),carouselSlotIndex:i,toCarouselSlotIndex:o}},aux_data:{...d,...(0,a.Kl)(t)||{}}})}})(b,x,f,t,i,P,g,v,n,p,m)},{carousel_slots:E=[],index:A}=P,T=void 0!==t?t:A,I="default"===y,C=I?"white":"#555",R=I?"rgba(255, 255, 255, 0.5)":"lightGray";return(0,u.jsx)(c.ZP.Consumer,{children:({viewportSize:e})=>"sm"===e?null:(0,u.jsx)(d.xu,{alignItems:"center","data-test-id":"carousel-ellipsis",display:"flex",justifyContent:_?"end":"center",paddingY:m?1:0,children:[...Array(E.length).keys()].map((e=>{var t;return(0,u.jsx)(d.xu,{paddingX:1,children:(0,u.jsx)(d.iP,{accessibilityLabel:null!==(t=E[e].title)&&void 0!==t?t:"",fullWidth:!1,onTap:({event:t})=>S(t,T,e),rounding:"circle",children:(0,u.jsx)(d.xu,{"data-test-id":"ellipsis-size",height:8,width:8,dangerouslySetInlineStyle:{__style:{backgroundColor:e===T?C:R}},rounding:"circle"})})},f+e)}))})})}},239062:(e,t,n)=>{n.r(t),n.d(t,{default:()=>_});var i=n(702664),o=n(356725),r=n(834911),a=n(898781),s=n(447948),l=n(35495),c=n(407043),d=n(350118),u=n(883119),p=n(785893);const h={slider:{cursor:"pointer",padding:"30px 16px",position:"relative",zIndex:1,pointerEvents:"auto"}};function _({addEllipsis:e,carouselIndex:t,carouselData:n,handleCarouselSwipe:_,isShowingLastSlide:m,pinId:f,contextLogData:g,viewParameter:v,viewType:y,componentType:b,isEditMode:x,forwardNode:P,backNode:w}){const S=(0,a.ZP)(),E=(0,i.useDispatch)(),{logContextEvent:A}=(0,c.v)(),T=(0,d.S6)()(f),I=n||(0,r.Z)({carouselData:null==T?void 0:T.carousel_data,images:null==T?void 0:T.images,richMetadata:null==T?void 0:T.rich_metadata,richSummary:null==T?void 0:T.rich_summary});if(!I)return null;const C=(e,t)=>E((0,s.yR)(e,t)),{carousel_slots:R=[],index:k=0}=I,O=void 0!==t?t:k,D=Math.max(0,O-1),j=Math.min(R.length-1,O+1),N=0===O,L=m||O===R.length-1,M=(e,t)=>{((e,t,n,i,o,r)=>{r||void 0===i||(e.preventDefault(),e.stopPropagation(),i(t,n)),void 0!==o&&o(n)})(e,f,t,C,_,x),((e,t,n,i,o,r,a,s,c,d,u)=>{if(!u||!r){const{carousel_slots:u,id:p}=r;e({event_type:108,object_id_str:n,component:c,view_type:s,view_parameter:a,event_data:{pinCarouselSlotEventData:{carouselSlotId:(null==u?void 0:u[i])&&Number(u[i].id),carouselDataId:Number(p),carouselSlotIndex:i,toCarouselSlotIndex:o}},aux_data:{...d,...(0,l.Kl)(t)||{}}})}})(A,T,f,O,t,I,v,y,b,g,x)};return(0,p.jsxs)(u.xu,{display:"flex",justifyContent:"between",position:"absolute",alignItems:"center",left:!0,right:!0,bottom:!0,top:!0,children:[(0,p.jsx)("div",{"data-test-id":"carousel-slider-left",role:"presentation",onClick:e=>{M(e,D)},onKeyUp:e=>{M(e,D)},style:h.slider,children:(0,p.jsx)(u.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{visibility:N?"hidden":"visible"}},display:"flex",height:"100%",justifyContent:"center",width:"100%",children:w||(0,p.jsx)(u.JO,{color:"inverse",icon:"arrow-back",accessibilityLabel:S.bt("View previous", "View Previous", "Button to advance carousel to the previous image", undefined, true)})})}),e&&(0,p.jsx)(o.default,{pinId:f,carouselIndex:t,carouselData:I,handleCarouselSwipe:_,variant:"default"}),(0,p.jsx)("div",{"data-test-id":"carousel-slider-right",role:"presentation",onClick:e=>{M(e,j)},onKeyUp:e=>{M(e,j)},style:h.slider,children:(0,p.jsx)(u.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{visibility:L?"hidden":"visible"}},display:"flex",height:"100%",justifyContent:"center",width:"100%",children:P||(0,p.jsx)(u.JO,{color:"inverse",icon:"arrow-forward",accessibilityLabel:S.bt("View next", "View Next", "Button to advance carousel to the next image", undefined, true)})})})]})}},876371:(e,t,n)=>{n.d(t,{Z:()=>f});var i=n(667294),o=n(564194),r=n(834911),a=n(737022),s=n(310227),l=n(350118),c=n(898781),d=n(883119),u=n(455024),p=n(444445),h=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}class m extends i.Component{constructor(...e){super(...e),_(this,"state",{showBadge:!0}),_(this,"renderBadge",(()=>{const{carouselData:e,isCloseup:t,showCarouselBadge:n}=this.props;if(!e)return null;const{showBadge:i}=this.state,{carousel_slots:o,index:r}=e,a=i?.8:0;return!t&&n?(0,h.jsx)(d.xu,{alignItems:"center",color:"selected",display:"flex",height:35,justifyContent:"center",marginEnd:5,marginTop:5,position:"absolute",right:!0,rounding:2,width:35,zIndex:new d.Ry(1),dangerouslySetInlineStyle:{__style:{opacity:a,transition:"opacity .3s"}},children:(0,h.jsx)(d.xv,{color:"inverse",children:`${(null!=r?r:0)+1}/${(null!=o?o:[]).length}`})}):null}))}componentDidMount(){this.hideBadgeTimeout=setTimeout((()=>this.setState({showBadge:!1})),3e3)}componentDidUpdate(e){const{showBadge:t}=this.state,{carouselData:n}=e,{carouselData:i}=this.props;if(!n||!i)return;const{index:o}=n,{index:r}=i;t&&(this.hideBadgeTimeout&&clearTimeout(this.hideBadgeTimeout),this.hideBadgeTimeout=setTimeout((()=>this.setState({showBadge:!1})),3e3)),o!==r&&(this.hideBadgeTimeout&&clearTimeout(this.hideBadgeTimeout),this.setState({showBadge:!0}))}componentWillUnmount(){this.hideBadgeTimeout&&clearTimeout(this.hideBadgeTimeout)}render(){const{isCloseup:e,carouselIndex:t,closeupHeight:n,closeupWidth:i=0,widthRatio:r=1,cropHeight:l,cropWidth:c,carouselData:_,disableTransition:m,highResOnly:f,lowResOnly:g,onError:v,onLoad:y,pinId:b,isEditMode:x,isDenseView:P,pin:w}=this.props;if(!_)return null;if(r>1||r<0)throw new Error("widthRatio should be between 0 and 1 inclusive");const{carousel_slots:S=[],index:E=0}=_,A=void 0!==t?t:E,T=!e&&c,{images:I}=S[A];let C;C=e?i:T||(f?474:P?p.Lo:p.yF);const R=Math.floor(C*r),k=(null==I?void 0:I["236x"])||{},O=l||k.height||0,D=c||k.width||236,j=n||O/D*R,N=(e=>{const t=e.reduce(((e,t)=>{var n;const{images:i}=t,{height:o=1,width:r=1}=(null==i?void 0:i["736x"])||(null==i?void 0:i["236x"])||{},a=`${r}x${o}`,s=(null===(n=e[a])||void 0===n?void 0:n.times)||0;return{...e,[a]:{imageHeight:o,imageWidth:r,times:s+1}}}),{}),n=Object.keys(t).reduce(((e,n)=>t[n].times>e.times?t[n]:e),{times:-1,imageHeight:-1,imageWidth:-1});return Object.keys(t).length>1?{imageHeight:n.imageHeight,imageWidth:n.imageWidth}:null})(S);return(0,h.jsxs)(d.xu,{height:j,display:"flex",alignItems:"center",overflow:"hidden","data-test-id":"carousel-pin",minHeight:s.Ml,"data-test-image-signature":null==w?void 0:w.image_signature,children:[!x&&this.renderBadge(),(0,h.jsx)(o.Z,{trackCarousel:!0,impressionType:"Pin",loggingId:b,slotIndex:E,viewParameter:72,viewType:1,children:(0,h.jsx)(d.xu,{position:"absolute",height:j,width:R,overflow:"hidden"})},`carousel-impression-key-${A}`),(0,h.jsx)(d.xu,{width:R*S.length,dangerouslySetInlineStyle:{__style:{transition:m?"":"left .3s",left:(0,u.vF)(S.length,R,C,A)}},left:!0,height:"100%",display:"flex",direction:"row",position:"relative",children:S.map(((t,n)=>{if(e){const e=n===S.length-1;return(({pinId:e,slot:t,slotIndex:n,onError:i,onLoad:o,widthToUse:r,gap:s},l)=>{const{url:c,width:p,height:_}=(0,a.Z)(t.images)||{},{details:m=""}=t,f=(0,u.GH)(m,l,n);return(0,h.jsx)(d.xu,{"data-test-id":"carousel-slot-container",width:r,height:"100%",marginEnd:s,children:(0,h.jsx)(d.zd,{height:"100%",wash:!0,children:(0,h.jsx)(d.Ee,{alt:f,fit:"contain",naturalHeight:null!=_?_:1,naturalWidth:null!=p?p:1,onError:i,onLoad:o,src:null!=c?c:""})})},`carousel-slot-${e}-${n}`)})({pinId:b,slot:t,slotIndex:n,onError:v,onLoad:y,widthToUse:R,gap:R<C&&!e?1:0},this.props.i18n)}return((e,t,n,i,o,r,a,s,l,c,p,_,m,f,g)=>{var v,y,b;const{images:x,details:P=""}=t;let w,S=236,E=236,A="";var T,I,C,R,k,O,D,j;if(o?(S=474,E=x&&Math.min(S/.8,S/((null!==(T=null===(I=x["564x"])||void 0===I?void 0:I.width)&&void 0!==T?T:1)/(null!==(C=null===(R=x["564x"])||void 0===R?void 0:R.height)&&void 0!==C?C:1))),A=x&&(null===(k=x["564x"])||void 0===k?void 0:k.url)):x&&x["736x"]?(E=x&&x["736x"]&&x["736x"].height,S=x&&x["736x"]&&x["736x"].width,A=x&&x["736x"]&&x["736x"].url):x&&x["236x"]&&(E=x&&x["236x"]&&x["236x"].height,S=x&&x["236x"]&&x["236x"].width,A=x&&x["236x"]&&x["236x"].url),m&&f&&(E=Math.min(m*f,null!==(O=E)&&void 0!==O?O:1)),r)w=`${null!==(D=null==x||null===(j=x["236x"])||void 0===j?void 0:j.url)&&void 0!==D?D:""} 1x`;else if(o){var N,L;w=`${null!==(N=null==x||null===(L=x["564x"])||void 0===L?void 0:L.url)&&void 0!==N?N:""} 1x`}else{var M,z,B;w=[(null==x?void 0:x["474x"])&&`${null!==(M=x["474x"].url)&&void 0!==M?M:""} 2x`,(null==x?void 0:x["736x"])&&`${null!==(z=x["736x"].url)&&void 0!==z?z:""} 3x`,(null==x?void 0:x.orig)&&`${null!==(B=x.orig.url)&&void 0!==B?B:""} 4x`].filter(Boolean).join(", ")}const Z=(0,u.GH)(P,e,i),F=_?void 0:E,U=_?void 0:S,G=!!g,{boxHeight:H,boxWidth:V}=G?{boxHeight:null==g?void 0:g.imageHeight,boxWidth:null==g?void 0:g.imageWidth}:{boxHeight:F,boxWidth:U};return(0,h.jsx)(d.xu,{"data-test-id":"carousel-slot-container",height:H,width:V,children:(0,h.jsx)(d.xu,{height:_?p:void 0,width:_||void 0,"data-test-id":`carousel-img-${i}`,children:(0,h.jsx)(d.Ee,{alt:Z,fit:_?"cover":"none",naturalHeight:null!==(v=E)&&void 0!==v?v:1,naturalWidth:null!==(y=S)&&void 0!==y?y:1,onError:a,onLoad:s,src:null!==(b=A)&&void 0!==b?b:"",srcSet:w})})},`carousel-slot-${n}-${i}`)})(this.props.i18n,t,b,n,f,g,v,y,0,0,l,c,j,R,N)}))})]})}}function f(e){const t=(0,c.ZP)(),n=(0,l.S6)()(e.pinId)||e.pin,i=(0,r.Z)({carouselData:null==n?void 0:n.carousel_data,images:null==n?void 0:n.images,richMetadata:null==n?void 0:n.rich_metadata,richSummary:null==n?void 0:n.rich_summary,shouldUnifyImageSizes:!0});return(0,h.jsx)(m,{...e,carouselData:i,i18n:t})}_(m,"defaultProps",{showCarouselBadge:!0})},751191:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(667294),o=n(898781),r=n(883119),a=n(785893);const s=({iconType:e,showFab:t,backgroundColor:n,hoverColor:s,iconColor:l})=>{const c=(0,o.ZP)(),[d,u]=(0,i.useState)(!1);return(0,a.jsx)(r.zd,{rounding:6,children:(0,a.jsx)(r.xu,{opacity:d?1:.8,rounding:"circle",onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),"data-test-id":"navigation-fab-container",children:(0,a.jsx)(r.xu,{width:48,height:48,color:d?s:n,display:"flex",justifyContent:"center",alignItems:"center",opacity:t?1:0,dangerouslySetInlineStyle:{__style:{transition:"opacity 0.3s linear"}},"data-test-id":"navigation-fab",children:"forward"===e?(0,a.jsx)(r.JO,{color:l,icon:"arrow-forward",accessibilityLabel:c.bt("View next", "View Next", "Button to advance carousel to the next image", undefined, true)}):(0,a.jsx)(r.JO,{color:l,icon:"arrow-back",accessibilityLabel:c.bt("View previous", "View Previous", "Button to advance carousel to the previous image", undefined, true)})})})})}},455024:(e,t,n)=>{n.d(t,{CU:()=>r,GH:()=>l,Iw:()=>s,gA:()=>c,tD:()=>a,vF:()=>d});const i=({containerWidth:e,contentWidth:t,index:n,slotAndGapWidth:o})=>{const r=n-1,a=r*o;return t-a>=e?a:i({index:r,slotAndGapWidth:o,containerWidth:e,contentWidth:t})},o=({containerWidth:e,contentWidth:t,gap:n,index:o,slidesShownPerPosition:r,slotAndGapWidth:a})=>i({containerWidth:e,contentWidth:t,index:o,slotAndGapWidth:a})+(({slidesShownPerPosition:e,slotAndGapWidth:t})=>t-(e-parseInt(e,10))*t)({slidesShownPerPosition:r,slotAndGapWidth:a})-n,r=({containerWidth:e,gap:t,index:n,numberOfSlides:i,slotWidth:r})=>{const a=r+t,s=a*i;if(s<=e)return 0;const l=e/a,c=(({index:e,numberOfSlides:t,slidesShownPerPosition:n})=>t-e-Math.floor(n)<1)({index:n,numberOfSlides:i,slidesShownPerPosition:l})?o({containerWidth:e,contentWidth:s,gap:t,index:n,slidesShownPerPosition:l,slotAndGapWidth:a}):n*a;return c?Math.round(-c):0},a=({containerWidth:e,gap:t,index:n,numberOfSlides:i,slotWidth:o})=>{const a=(o+t)*i;if(a<=e||0===e)return!0;const s=r({containerWidth:e,gap:t,index:n,numberOfSlides:i,slotWidth:o}),l=a-e;return Math.abs(s)+t>=l},s=({containerWidth:e,currentIndex:t,gap:n,index:i,numberOfSlides:o,slotWidth:a})=>{const s=a+n;if(s*o<=e||0===e)return!0;return r({containerWidth:e,gap:n,index:t,numberOfSlides:o,slotWidth:a})+s*i<e+s},l=(e,t,n)=>e||`${t.bt("carousel image", "carousel image", "Alternate text for a carousel image that indicates it is a carousel pin, with carousel index followed", undefined, true)} ${n}`,c=({highResOnly:e,lowResOnly:t,slot:n})=>{var i,o,r;const{images:a}=n;var s,l,c,d;return t?`${null!==(s=null==a||null===(l=a["236x"])||void 0===l?void 0:l.url)&&void 0!==s?s:""} 1x`:e?`${null!==(c=null==a||null===(d=a["564x"])||void 0===d?void 0:d.url)&&void 0!==c?c:""} 1x`:[(null==a?void 0:a["474x"])&&`${null!==(i=a["474x"].url)&&void 0!==i?i:""} 2x`,(null==a?void 0:a["736x"])&&`${null!==(o=a["736x"].url)&&void 0!==o?o:""} 3x`,(null==a?void 0:a.orig)&&`${null!==(r=a.orig.url)&&void 0!==r?r:""} 4x`].filter(Boolean).join(", ")},d=(e,t,n,i,o=0)=>{if(n===t)return i*t*-1;const r=Math.floor(n-t),a=t+o;return i===e-1?-1*i*a+r:-1*i*a}},865607:(e,t,n)=>{n.d(t,{O:()=>c,Z:()=>d});var i=n(667294),o=n(898781),r=n(966113),a=n(883119),s=n(785893);const l={xs:12,sm:16,md:20,lg:24};function c({children:e}){const t=(0,o.ZP)();return(0,s.jsx)(a.u,{link:(0,s.jsx)(a.rU,{href:r.vB,target:"blank",children:(0,s.jsx)(a.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:r,size:d}){const u=(0,o.ZP)(),p=(0,s.jsxs)(a.kC,{alignItems:"center",justifyContent:"start",children:[(0,s.jsx)(a.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]}),r&&(0,s.jsx)(a.xu,{marginStart:2,children:(0,s.jsx)(a.xv,{color:"shopping",inline:!0,weight:"bold",children:u.bt("Verified merchant", "Verified merchant", "creator.header.verifiedMerchant", undefined, true)})})]});return(0,s.jsxs)(i.Fragment,{children:[n&&!t&&(0,s.jsx)(c,{children:p}),n&&t&&p,e&&!n&&(0,s.jsx)(a.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$:()=>a});var i=n(385740),o=n(909499);const r=["search_articles_story","shop_tab_upsell","story_pins_search_upsell","structured_search_bubble","user_style_story_v2","search_for_you_upsell"];function a({query:e,rs:t,scope:n},r){const a=(0,i.BE)(),s=!(null!=a&&a.viewType||null!=a&&a.viewParameter),l=(0,o.wF)(n);if(!s&&l){const{viewType:n,viewParameter:i}=null!=a?a:{};r({event_type:l,view_type:n,view_parameter:i,aux_data:{query:e,rs:t||"Unknown"}})}"hashtag_closeup"===t?r({event_type:101,component:13065,element:10273,view_type:142}):"hashtag_pinrep"===t&&r({event_type:101,component:0,element:10349,view_type:142})}const s=(e=[])=>{let t=!0;return e.reduce(((e,n)=>{var i;return t&&n.story_type&&r.includes(n.story_type)&&0===(null===(i=n.display_options)||void 0===i?void 0:i.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)))}},654874:(e,t,n)=>{n.d(t,{Z:()=>m});var i=n(667294),o=n(116303),r=n(65675),a=n(564194),s=n(391143),l=n(72809),c=n(66699),d=n(898781),u=n(19121),p=n(940882),h=n(883119),_=n(785893);function m({bubble:e,contextLogData:t,disableTabIndex:n,handleReport:m,height:f,imgSignature:g,isHovered:v,lightOverlay:y,onClick:b,onMouseEnter:x,onMouseLeave:P,referringSource:w,searchBoxRenderStopwatch:S,showFlag:E,slotIndex:A,storyId:T,viewParameter:I,viewType:C,width:R}){const k=(0,d.ZP)(),O=(0,u.Z)(),{id:D,action:j,cover_images:N,dominant_colors:L,identifier_icon_type:M,title:z,story_category:B,curator:Z}=e,F=N&&N[0]?N[0]["280x280"]||N[0]["236x"]:void 0,U=(0,c.Z)(z&&z.format||"",z&&z.args||{}),G=L&&L.length?L[0]:"gray",H=(null==j?void 0:j.url)||(0,s.Z)({storyCategory:B,query:U,referringSource:w,bubbleId:D,storyId:T,title:z.format});return(0,_.jsx)(a.Z,{impressionAuxFields:{storyCategory:B,storyIdStr:T},impressionType:"Article",loggingId:D,viewType:C,viewParameter:I,slotIndex:A,contextLogData:{story_id:T,...t},children:(0,_.jsx)(r.Z,{backgroundColor:G,coverImage:F,disableTabIndex:n,height:f,id:D,isHovered:v,lightOverlay:y,onClick:b,onMouseEnter:x,onMouseLeave:P,searchBoxRenderStopwatch:S,url:H,width:R,children:({isHovered:e})=>(0,_.jsxs)(i.Fragment,{children:[Z&&26!==B&&(0,_.jsx)(h.xu,{position:"absolute",top:!0,left:!0,padding:2,children:(0,_.jsx)(o.Z,{outline:!0,size:"xs",src:Z.image_small_url,name:Z.full_name})}),M&&M!==p.J&&(0,_.jsx)(h.xu,{alignItems:"center",color:"default",display:"flex",height:24,justifyContent:"center",left:!0,margin:2,opacity:.8,position:"absolute",rounding:"circle",top:!0,width:24,children:(0,_.jsx)(h.JO,{icon:(0,p.Z)(M),accessibilityLabel:k.bt("Shopping icon", "Shopping icon", "bubble.shoppingIcon.label", undefined, true),color:"default",size:12})}),(0,_.jsx)(h.xu,{display:"flex",height:f,width:R||"100%",position:"absolute",top:!0,padding:3,alignItems:26===B?"end":"center",justifyContent:"center",children:(0,_.jsxs)(h.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[f>200?(0,_.jsx)(h.X6,{size:"500",align:"center",color:"light",children:U}):(0,_.jsx)(h.xv,{align:"center",color:"light",weight:"bold",children:U}),Z&&26===B&&(0,_.jsxs)(h.xu,{display:"flex",justifyContent:"center",alignItems:"center",marginTop:4,children:[(0,_.jsx)(h.xu,{marginEnd:2,children:(0,_.jsx)(o.Z,{outline:!0,size:"xs",src:Z.image_small_url,name:Z.full_name})}),(0,_.jsx)(h.xv,{size:"100",color:"light",children:Z.full_name})]})]})}),O.isAuth&&O.isEmployee&&E?(0,_.jsx)(h.xu,{position:"absolute",bottom:!0,right:!0,marginBottom:1,children:(0,_.jsx)(l.Z,{handleReport:m,imgSignature:g||"",isVisible:e})}):null]})})})}},65675:(e,t,n)=>{n.d(t,{A:()=>a,Z:()=>s});var i=n(667294),o=n(883119),r=n(785893);const a={bubbleOverlay:{backgroundColor:"rgba(0, 0, 0, 0.4)"},hoverOverlay:{backgroundColor:"rgba(0, 0, 0, 0.6)"},lightHoverOverlay:{backgroundColor:"rgba(0, 0, 0, 0.2)"}};function s({backgroundColor:e,children:t,coverImage:n,disableTabIndex:s,height:l,id:c,isHovered:d,lightOverlay:u=!1,onClick:p,onMouseEnter:h,onMouseLeave:_,searchBoxRenderStopwatch:m,url:f,width:g}){var v,y;const[b,x]=(0,i.useState)(!1),P=()=>{h?h():x(!0)},w=()=>{_?_():x(!1)},S=d||b;let E=S?a.hoverOverlay:a.bubbleOverlay;u&&(E=S?a.lightHoverOverlay:{});return(0,r.jsx)(o.iP,{href:f,onBlur:w,onFocus:P,onMouseEnter:P,onMouseLeave:w,onTap:()=>{null==p||p(c)},role:"link",rounding:4,tabIndex:s?-1:void 0,children:(0,r.jsx)(o.zd,{rounding:4,width:g||"100%",height:l,children:null!=n&&n.url?(0,r.jsxs)(o.Ee,{alt:"",color:e,fit:"cover",naturalHeight:null!==(v=n.height)&&void 0!==v?v:1,naturalWidth:null!==(y=n.width)&&void 0!==y?y:1,onLoad:()=>{null==m||m.stop()},role:"presentation",src:n.url,children:[(0,r.jsx)(o.xu,{dangerouslySetInlineStyle:{__style:E},height:"100%",width:"100%"}),"function"==typeof t?t({isHovered:S}):t]}):(0,r.jsx)(o.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:e}},height:"100%",width:"100%"})})})}},92331:(e,t,n)=>{n.d(t,{Z:()=>p});var i=n(654874),o=n(564194),r=n(676142),a=n(444445),s=n(407043),l=n(940882),c=n(883119),d=n(785893);const u=a.yF;function p({contextLogData:e,bubbles:t,id:n,referringSource:a,slotIndex:p,storyType:h,title:_,titleIcon:m,viewType:f,viewParameter:g}){const{logContextEvent:v}=(0,s.v)(),y=t.map((({type:e,id:t})=>e+":"+t)).join("|");return(0,d.jsx)(o.Z,{viewType:f,componentType:200,viewParameter:g,loggingId:n,objectIdStr:n,contextLogData:{story_type:h,content_ids:y,...e},impressionType:"Story",slotIndex:p,children:(0,d.jsxs)(c.xu,{children:[_&&(0,d.jsxs)(c.xu,{display:"flex",marginBottom:1,justifyContent:"center",alignItems:"center",children:["number"==typeof m&&m!==l.J&&(0,d.jsx)(c.xu,{marginEnd:2,dangerouslySetInlineStyle:{__style:{paddingTop:1}},children:(0,d.jsx)(c.JO,{accessibilityLabel:"",color:"default",icon:(0,l.Z)(m),size:14})}),(0,d.jsx)(c.xv,{weight:"bold",children:(0,r.Z)(_)})]}),t.map(((e,t)=>(0,d.jsx)(c.xu,{paddingY:1,flex:"none",children:(0,d.jsx)(i.Z,{bubble:e,onClick:e=>{v({event_type:101,object_id_str:e,view_type:f,view_parameter:g,component:200})},referringSource:a,height:103,width:u,storyId:n,viewType:f,viewParameter:g,slotIndex:t,contextLogData:{content_ids:y,story_type:h}})},`bubble-${e.id}`)))]})})}},666389:(e,t,n)=>{n.d(t,{Z:()=>p});var i=n(667294);const o={backgroundColor:"transparent"},r={backgroundColor:"rgba(216, 216, 216, 0.37)"},a={borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center"},s={outline:"0"};var l=n(883119),c=n(785893);function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u extends i.Component{constructor(...e){super(...e),d(this,"state",{hovered:!1}),d(this,"handleMouseEnter",(()=>this.setState({hovered:!0}))),d(this,"handleMouseLeave",(()=>this.setState({hovered:!1})))}render(){const{backgroundHaloSize:e,onClick:t,color:n="subtle"}=this.props,i=Object.freeze({height:e,width:e}),d={border:0,display:"block",background:"transparent",cursor:"pointer",...s},u={...i,...{...a,...o,...this.state.hovered?r:{}}};return(0,c.jsx)("button",{type:"button",style:d,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:e=>t&&t({event:e}),children:(0,c.jsx)("div",{style:u,children:(0,c.jsx)(l.xu,{rounding:"circle",children:(0,c.jsx)(l.JO,{accessibilityLabel:"",icon:"flag",size:e/2,color:n})})})})}}const p=u},72809:(e,t,n)=>{n.d(t,{Z:()=>m});var i=n(667294),o=n(666389),r=n(121151),a=n(6637),s=n(499128),l=n(116674),c=n(898781),d=n(343341),u=n(883119),p=n(785893);function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class _ extends i.PureComponent{constructor(...e){var t;super(...e),t=this,h(this,"state",{showModal:!1,reportType:null}),h(this,"handleDismiss",(()=>this.setState({showModal:!1}))),h(this,"handleClick",(()=>{const{reportType:e}=this.state;"image"===e?this.reportSuggestionImage():this.reportSuggestionText()})),h(this,"reportSuggestionImage",(async function(){const{imgSignature:e,reportImage:n,pinIds:i}=t.props;if(t.setState({showModal:!1}),i)return void i.forEach((e=>n(e)));const o=(await a.Z.create("GetPinFromSignature",{imgSignature:e}).callGet()).resource_response.data.id;n(o)})),h(this,"reportSuggestionText",(()=>{const{handleReport:e,toastManagerContext:t}=this.props;e&&(e(),t.showToast((({hideToast:e})=>(0,p.jsx)(s.ZP,{onHide:e,text:this.props.i18n.bt("Thanks for your report. It will be reviewed by our Trust and Safety team", "Thanks for your report! This will be reviewed by our Trust and Safety Team", "ReportingFlag.Toast.text", undefined, true)}))),this.handleDismiss())})),h(this,"showModal",(({event:e})=>{e.stopPropagation(),e.preventDefault(),this.setState({showModal:!0})}))}render(){const{showModal:e}=this.state;return(0,p.jsxs)(i.Fragment,{children:[this.props.isVisible&&(0,p.jsx)(o.Z,{onClick:this.showModal,backgroundHaloSize:24}),e&&(0,p.jsx)(r.ZP,{accessibilityModalLabel:this.props.i18n.bt("Report search term", "Report search term", "ReportingFlag.Modal.accessibilityModalLabel", undefined, true),heading:this.props.i18n.bt("Report search term", "Report search term", "ReportingFlag.Modal.heading", undefined, true),onDismiss:this.handleDismiss,size:"sm",children:(0,p.jsxs)(u.xu,{children:[(0,p.jsx)(u.xu,{padding:5,children:(0,p.jsx)(u.xv,{children:this.props.i18n.bt("When you flag this, our Trust and Safety team will review it. If it doesn't follow our Community Guidelines, it will be blocked.", "When you flag this, our Trust and Safety team will review it. If it doesn't meet our Community Guidelines, it will be blocked.", "ReportingFlag.Box.Text.report", undefined, true)})}),(0,p.jsxs)(u.FX,{id:"reporting-flag-options-group",legend:this.props.i18n.bt("When you flag this, our Trust and Safety team will review it. If it doesn't follow our Community Guidelines, it will be blocked.", "When you flag this, our Trust and Safety team will review it. If it doesn't meet our Community Guidelines, it will be blocked.", "ReportingFlag.Box.Text.report", undefined, true),legendDisplay:"hidden",children:[(0,p.jsxs)(u.xu,{role:"list",display:"flex",direction:"column",marginBottom:4,paddingX:5,children:[(0,p.jsxs)(u.xu,{alignItems:"center",paddingY:1,display:"flex",direction:"row",children:[(0,p.jsx)(u.FX.RadioButton,{checked:"text"===this.state.reportType,id:"textType",onChange:()=>this.setState({reportType:"text"}),value:"Report search text"}),(0,p.jsx)(u.xu,{flex:"grow",children:(0,p.jsx)(u.__,{htmlFor:"textType",children:(0,p.jsx)(u.xu,{paddingX:2,children:(0,p.jsx)(u.xv,{children:"Report search text"})})})})]}),(0,p.jsxs)(u.xu,{alignItems:"center",paddingY:1,display:"flex",direction:"row",children:[(0,p.jsx)(u.FX.RadioButton,{checked:"image"===this.state.reportType,id:"imageType",onChange:()=>this.setState({reportType:"image"}),value:"Report search image"}),(0,p.jsx)(u.xu,{flex:"grow",children:(0,p.jsx)(u.__,{htmlFor:"imageType",children:(0,p.jsx)(u.xu,{paddingX:2,children:(0,p.jsx)(u.xv,{children:"Report search image"})})})})]})]}),(0,p.jsx)(u.iz,{}),(0,p.jsxs)(u.xu,{display:"flex",justifyContent:"end",padding:2,children:[(0,p.jsx)(u.xu,{margin:2,children:(0,p.jsx)(u.zx,{fullWidth:!0,onClick:this.handleDismiss,text:this.props.i18n.bt("Cancel", "Cancel", "ReportingFlag.Box.Button.text.cancel", undefined, true)})}),(0,p.jsx)(u.xu,{margin:2,children:(0,p.jsx)(u.zx,{fullWidth:!0,color:"red",onClick:this.handleClick,text:this.props.i18n.bt("Report", "Report", "ReportingFlag.Box.Button.text.report", undefined, true),disabled:!this.state.reportType})})]})]})]})})]})}}function m(e){const t=(0,c.ZP)(),{reportImage:n}=(0,l.f)();return(0,p.jsx)(_,{...e,i18n:t,reportImage:n,toastManagerContext:(0,d.F9)()})}},987318:(e,t,n)=>{n.d(t,{H:()=>r,o:()=>o});var i=n(425288);const{Provider:o,useHook:r}=(0,i.Z)("LimitedLogin")},35066:(e,t,n)=>{n.d(t,{S:()=>d,w:()=>u});var i=n(667294),o=n(632448),r=n(311541),a=n(425288),s=n(785893);const l=()=>n.e(49215).then(n.bind(n,749215)),{Provider:c,useHook:d}=(0,a.Z)("MerchantStorefrontSettings");function u({children:e}){const[t,n]=(0,r.Z)(l,o.Z),a=(0,i.useMemo)((()=>({merchantStorefrontSettings:t,updateLocaleStorefrontSetting:(e,t,i)=>{n({type:"UPDATE_LOCALE_STOREFRONT_SETTING",payload:{country:e,language:t,feedProfileId:i}})},updateStorefrontLastUpdated:e=>{n({type:"UPDATE_STOREFRONT_LAST_UPDATED",payload:e})}})),[n,t]);return(0,s.jsx)(c,{value:a,children:e})}},798821:(e,t,n)=>{n.d(t,{Z:()=>i});const i={STOREFRONT_LOCALE_STORAGE_KEY:"merchantStorefront.storefrontSettings.locale"}},632448:(e,t,n)=>{n.d(t,{Z:()=>i});const i={currentViewingLocale:{country:"",language:"",feedProfileId:""},lastUpdated:0}},990823:(e,t,n)=>{n.d(t,{ZP:()=>l,tY:()=>d,Yh:()=>c});var i=n(702664),o=n(784590),r=n(19121);const a=0,s=1;function l(e){var t;const n=(0,r.Z)(),i=n.isAuth&&n.id===e,a=(0,o.Z)(!n.isAuth||i?null:{name:"UserResource",options:{field_set_key:"quicksave",user_id:e}});return{showEnabledSaveBehavior:i&&n.has_quicksave_board||!(!n.isAuth||null===(t=(null!=a?a:{}).data)||void 0===t||!t.has_quicksave_board)}}function c(e){var t;const n=(0,i.useDispatch)(),a=(0,r.Z)(),s=a.isAuth&&!!a.boardCount&&a.boardCount<5&&e,l=(0,o.Z)(s&&e?{name:"UserResource",options:{field_set_key:"save_behavior",user_id:a.isAuth&&a.id}}:null);return a.isAuth&&void 0===a.save_behavior&&l&&null!==(t=l.data)&&void 0!==t&&t.id&&n({type:"UPDATE_USER_SAVE_BEHAVIOR",payload:{saveBehavior:l.data.save_behavior}}),{showEnabledSaveBehavior:s}}function d(e){const t=(0,r.Z)();let n;return e&&(t.save_behavior===a?n={type:"classic"}:t.save_behavior===s&&(n={type:"inline"})),{saveBehaviorType:n}}},59644:(e,t,n)=>{n.d(t,{Z:()=>i});const i=(e,t)=>`${e}:${t||""}`},151645:(e,t,n)=>{function i({user:e,viewer:t}){return Boolean(t.isAuth&&(null==e?void 0:e.username)===t.username)}n.d(t,{Z:()=>i})},565380:(e,t,n)=>{n.d(t,{$B:()=>l,L6:()=>u,S5:()=>d,UI:()=>a,Up:()=>h,jl:()=>s,vW:()=>c,yK:()=>p});var i=n(833991),o=n(977558),r=n(883119);const a=new r.H3([new r.Ry(i.HW),new r.Ry(o.fe)]),s=1e5,l={ALL:"ALL",FEATURED:"FEATURED",CATEGORY:"CATEGORY"},c={SectionCategories:"SectionCategories",SectionEditYourShop:"SectionEditYourShop",SectionFeaturedProductGroups:"SectionFeaturedProductGroups"},d={[c.SectionCategories]:l.CATEGORY,[c.SectionFeaturedProductGroups]:l.FEATURED,[c.SectionEditYourShop]:l.ALL},u={[c.SectionCategories]:14126,[c.SectionFeaturedProductGroups]:14127},p={FEATURED:"featured_product_groups",CATEGORY:"featured_categories_product_groups"},h="/product-catalogs"},390598:(e,t,n)=>{n.d(t,{C:()=>c,Z:()=>l});var i=n(667294),o=n(833759),r=n(883119),a=n(407043),s=n(785893);const l={HEIGHT:362,WIDTH:362};function c({productGroup:e,preferredPreviewPinSizes:t=[],coverFit:n=!1}){var c,d,u;const{logContextEvent:p}=(0,a.v)(),h=e.cover_images&&e.cover_images[0]&&(0,o.cB)(e.cover_images[0]),{WIDTH:_,HEIGHT:m}=l,f=e.preview_pins&&e.preview_pins[0]&&e.preview_pins[0].images;let g;const[v,y]=(0,i.useState)(!h);f&&v&&(g=t.concat("orig").map((e=>f[e])).find((e=>!!e)));const b=v?null===(c=g)||void 0===c?void 0:c.height:m,x=v?null===(d=g)||void 0===d?void 0:d.width:_,P=v?null===(u=g)||void 0===u?void 0:u.url:h;return b&&x&&P?(0,s.jsx)(r.Ee,{alt:"",naturalHeight:b,naturalWidth:x,src:P,fit:n?"cover":"contain",onError:()=>{v||(p({event_type:10048,component:14004,aux_data:{product_group_cover_image_url:h}}),y(!0))}}):null}},81300:(e,t,n)=>{n.d(t,{Z:()=>E});var i=n(667294),o=n(121151),r=n(6637),a=n(499128),s=n(487392),l=n(898781),c=n(784590),d=n(19121),u=n(833991),p=n(977558),h=n(349700),_=n(407043),m=n(35066),f=n(343341),g=n(833759),v=n(883119),y=n(400264),b=n(785893);const x=new v.H3([new v.Ry(u.HW),new v.Ry(p.fe)]),P=316;function w({onFileUpload:e}){const t=(0,l.ZP)(),[n,o]=(0,i.useState)(!1),r=(0,i.useRef)(null),a=t.bt("Upload from computer", "Upload from computer", "ProductGroupDetailsModal.uploadFromComputer", undefined, true);return(0,b.jsxs)(v.kC,{justifyContent:"center",children:[(0,b.jsx)(v.hU,{accessibilityExpanded:n,accessibilityHaspopup:!0,accessibilityLabel:t.bt("Upload product group cover image menu", "Upload product group cover image menu", "ProductGroupDetailsModal.productGroupCoverImageA11y", undefined, true),bgColor:"lightGray",icon:"edit",iconColor:"darkGray",onClick:()=>o((e=>!e)),ref:r,size:"lg"}),n&&(0,b.jsx)(v.Lt,{anchor:r.current,id:"product-group-image-dropdown",onDismiss:()=>o(!1),children:(0,b.jsx)(v.Lt.Item,{onSelect:()=>{o(!1),e()},option:{value:a,label:a}})})]})}function S({image:e,onFileUpload:t,onError:n}){const i=(0,l.ZP)(),o=i.bt("Product group cover image", "Product Group Cover Image", "ProductGroupDetailsModal.productGroupCoverImageAlt", undefined, true);return(0,b.jsxs)(v.xu,{position:"relative",children:[(0,b.jsx)(v.xu,{height:P,width:P,rounding:5,overflow:"hidden",children:(0,b.jsx)(v.Ee,{alt:o,color:"#EFEFEF",fit:"cover",naturalHeight:1,naturalWidth:1,src:e,onError:n})}),(0,b.jsx)(v.xu,{position:"absolute",top:!0,right:!0,padding:4,children:(0,b.jsx)(w,{onFileUpload:t})})]})}function E({onDismiss:e,onSubmit:t,productGroup:n}){var u,p,w;const{logContextEvent:E}=(0,_.v)(),A=(0,l.ZP)(),T=A.bt("Edit product group display", "Edit product group display", "ProductGroupDetailsModal.heading", undefined, true),I=`/v3/business/users/${(0,d.Z)().id||""}/storefront/product_group_image/`,[C,R]=(0,i.useState)(""),[k,O]=(0,i.useState)(""),[D,j]=(0,i.useState)(),[N,L]=(0,i.useState)(),[M,z]=(0,i.useState)(!1),[B,Z]=(0,i.useState)(0),[F]=(0,i.useState)((new Date).getTime()),U=n.group_type!==g.yh,{merchantId:G,advertiserId:H}=(0,s.Z)(),{showOneToast:V}=(0,f.F9)(),{updateStorefrontLastUpdated:W}=(0,m.S)(),$=(0,y.Ib)({advertiserId:H,merchantId:G,productGroupsIds:[n.id],uniq:F},!1,!0),K=(0,c.Z)({name:"ApiResource",options:{url:I,data:{product_group_ids:[n.id]},uniq:F},noCache:!0}),q=(0,i.useRef)(),Y=Number(n.id),X=null===(u=$.data)||void 0===u?void 0:u.find((e=>e.id===Y)),J=$.isLoaded&&K.isLoaded,Q=X&&(C!==X.name||k!==(X.description||"")||!!D),ee=X&&C!==X.name,te=X&&k!==(X.description||""),ne=J?(0,g.cB)(null===(p=K.data)||void 0===p||null===(w=p[n.id])||void 0===w?void 0:w[0]):null,ie=n.preview_pins[0],oe=null==ie?void 0:ie.image_signature,re=(0,g.cB)(null==ie?void 0:ie.images),ae=N||[ne,re].filter((e=>!!e))[B];(0,i.useEffect)((()=>{X&&(R(X.name||""),O(X.description||""))}),[X]),(0,i.useEffect)((()=>{E({event_type:9854,component:13998})}),[E]);const se=()=>{e(),E({event_type:9856,component:13998})},le=A.bt("Save", "Save", "ProductGroupDetailsModal.SaveBtn", undefined, true),ce=A.bt("Cancel", "Cancel", "ProductGroupDetailsModal.CancelBtn", undefined, true);return(0,b.jsx)(v.mh,{zIndex:x,children:(0,b.jsx)(o.ZP,{accessibilityModalLabel:T,align:"center",heading:T,onDismiss:se,footer:J?(0,b.jsxs)(v.kC,{alignItems:"start",children:[(0,b.jsx)(v.xu,{width:"50%",children:(0,b.jsx)(v.xv,{size:"300",children:(0,h.nk)(A.bt("To edit items in this product group, visit {{catalogsLink}}", "To edit items in this product group, visit {{catalogsLink}}", "ProductGroupDetailsModal.coverImage", undefined, true),{catalogsLink:(0,b.jsx)(v.rU,{href:"/product-catalogs",display:"inlineBlock",target:"blank",underline:"hover",children:(0,b.jsx)(v.xv,{weight:"bold",inline:!0,children:A.bt("Pinterest Catalogues", "Pinterest Catalogs", "ProductGroupDetailsModal.catalogsLink", undefined, true)})},"product-catalogs-link")})})}),(0,b.jsx)(v.xu,{width:"50%",children:(0,b.jsxs)(v.kC,{gap:{row:2,column:0},alignItems:"center",justifyContent:"end",children:[(0,b.jsx)(v.zx,{color:"gray",text:ce,onClick:se}),(0,b.jsx)(v.zx,{color:"red",text:le,onClick:()=>{const i=ne?D:D||oe,o=[],s=[];i&&(o.push(r.Z.create("ApiResource",{url:I,data:{image_signatures:[i],product_group_id:n.id}}).callUpdate()),s.push("cover_image")),(ee||te)&&(o.push(r.Z.create("ProductGroupsResource",{name:C,description:k,productGroupId:Number(n.id),filters:null==X?void 0:X.filter_v2}).callUpdate()),ee&&s.push("name"),te&&s.push("description")),E({event_type:9857,component:13998,aux_data:{product_group_modal_changes:s.join(",")}}),e(),Promise.all(o).then((()=>{t(),W((new Date).getTime()),V((({hideToast:e})=>(0,b.jsx)("div",{className:"ProductGroupSavedToast",children:(0,b.jsx)(a.ZP,{duration:g.QE,onHide:e,text:A.bt("Product group saved", "Product group saved", "MerchantStorefront.ProductGroupDetailsModal.pgSaved", undefined, true)})})))}))},disabled:!Q})]})})]},"product-group-details-footer"):(0,b.jsx)(i.Fragment,{}),size:U?"md":"sm",children:(0,b.jsx)(v.xu,{paddingX:8,marginBottom:2,children:J?(0,b.jsxs)(v.kC,{justifyContent:"center",children:[(0,b.jsxs)(v.xu,{width:320,children:[(0,b.jsx)(v.xu,{marginBottom:4,children:(0,b.jsx)(v.xv,{size:"300",weight:"bold",children:A.bt("Cover image", "Cover image", "ProductGroupDetailsModal.coverImage", undefined, true)})}),(0,b.jsx)("input",{accept:"image/*","data-test-id":"cover-image",id:"product-group-image-upload",onChange:e=>{if(e.target instanceof HTMLInputElement){const t=e.target.files[0],n=new FileReader;t&&n.readAsDataURL(t),n.addEventListener("load",(()=>{z(!0),E({event_type:9855,component:13998}),r.Z.create("ApiResource",{url:I,data:{image_base64:n.result}}).callCreate().then((e=>{var t,i;j(null===(t=e.resource_response)||void 0===t||null===(i=t.data)||void 0===i?void 0:i.image_signature),z(!1),"string"==typeof n.result&&L(n.result)}))}),!1)}},ref:q,style:{display:"none"},type:"file"}),M&&(0,b.jsx)(v.xu,{height:P,width:P,rounding:5,color:"secondary",justifyContent:"center",direction:"column",display:"flex",children:(0,b.jsx)(v.$j,{accessibilityLabel:A.bt("Uploading product group cover image", "Uploading product group cover image", "ProductGroupDetailsModal.uploadingCoverImage", undefined, true),show:!0})}),!M&&ae&&(0,b.jsx)(S,{image:ae,onFileUpload:()=>{var e;null===(e=q.current)||void 0===e||e.click()},onError:()=>Z(B+1)})]}),U&&(0,b.jsxs)(v.xu,{width:320,marginStart:4,children:[(0,b.jsx)(v.xu,{marginBottom:4,children:(0,b.jsx)(v.xv,{size:"300",weight:"bold",children:A.bt("Title", "Title", "ProductGroupDetailsModal.name", undefined, true)})}),(0,b.jsx)(v.nv,{id:"name",onChange:({value:e})=>R(e.slice(0,255)),size:"lg",type:"text",value:C}),(0,b.jsxs)(v.xu,{marginTop:2,marginBottom:4,height:30,children:[C&&(0,b.jsx)(v.xv,{size:"100",color:"subtle",children:A.bt("Changing your product group's name in your shop will also change its name in Catalogues", "Changing your product group's name in your shop will also change its name in Catalogs", "ProductGroupDetailsModal.pgName", undefined, true)}),!C&&(0,b.jsx)(v.xv,{size:"100",color:"error",children:A.bt("This field cannot be blank.", "This field can't be blank!", "ProductGroupDetailsModal.nameEmptyError", undefined, true)})]}),(0,b.jsx)(v.xu,{marginBottom:4,children:(0,b.jsx)(v.xv,{size:"300",weight:"bold",children:A.bt("Description", "Description", "ProductGroupDetailsModal.description", undefined, true)})}),(0,b.jsx)(v.xu,{height:178,children:(0,b.jsx)(v.Kx,{id:"description",onChange:({value:e})=>O(e.slice(0,155)),placeholder:A.bt("Tell shoppers on Pinterest more about this product group", "Tell shoppers on Pinterest more about this product group", "ProductGroupDetailsModal.descriptionPlaceholder", undefined, true),value:k,rows:7})})]})]}):(0,b.jsx)(v.$j,{accessibilityLabel:A.bt("Loading product group details", "Loading product group details", "ProductGroupDetailsModal.loadingSpinner", undefined, true),show:!0})})})})}},478144:(e,t,n)=>{n.d(t,{Z:()=>p});var i=n(667294),o=n(81300),r=n(390598),a=n(898781),s=n(883119),l=n(785893);const c=()=>{},d=({url:e,onClick:t,i18n:n})=>(0,l.jsx)(s.zx,{accessibilityLabel:n.bt("Shop button", "Shop button", "ProductGroupV2.shopButton.accessibilityLabel", undefined, true),size:"lg",text:n.bt("Shop", "Shop", "ProductGroupV2.shopButton.text", undefined, true),color:"white",role:"link",href:e,onClick:t}),u=({i18n:e})=>(0,l.jsx)(s.zx,{accessibilityLabel:e.bt("Shop button", "Shop button", "ProductGroupV2.shopButton.accessibilityLabel", undefined, true),size:"lg",text:e.bt("Shop", "Shop", "ProductGroupV2.shopButton.text", undefined, true),color:"white",role:"button"});function p({onClick:e,productGroup:t,showControls:n,url:p}){const h=(0,a.ZP)(),_=h.bt("Edit product group display", "Edit product group display", "ProductGroupV2.editTooltip", undefined, true),[m,f]=(h.bt("Remove product group from shop", "Remove product group from shop", "ProductGroupV2.removeTooltip", undefined, true),(0,i.useState)(!1)),[g,v]=(0,i.useState)(!1),y=!(!p||!e),{WIDTH:b,HEIGHT:x}=r.Z,P=b-64;return(0,l.jsxs)(s.xu,{position:"relative",onMouseEnter:()=>{v(!0)},onMouseLeave:()=>{v(!1)},children:[(0,l.jsxs)(s.xu,{position:"relative",children:[(0,l.jsxs)(s.zd,{width:b,height:x,rounding:8,children:[(0,l.jsx)(r.C,{productGroup:t}),(0,l.jsx)(s.xu,{position:"absolute",width:b,height:x,top:!0,dangerouslySetInlineStyle:{__style:{background:"linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%)"}}})]}),(0,l.jsx)(s.xu,{position:"absolute",color:"selected",opacity:g?.5:0,width:b,height:x,rounding:8,top:!0})]}),n&&g&&(0,l.jsxs)(s.xu,{position:"absolute",top:!0,right:!0,padding:8,display:"flex",children:[(0,l.jsx)(s.xu,{marginEnd:0,children:(0,l.jsx)(s.u,{text:_,idealDirection:"down",children:(0,l.jsx)(s.hU,{accessibilityLabel:_,bgColor:"lightGray",icon:"edit",iconColor:"darkGray",onClick:({event:e})=>{e.stopPropagation(),e.preventDefault(),f(!0)},size:"xl"})})}),false]}),(0,l.jsxs)(s.xu,{position:"absolute",bottom:!0,left:!0,padding:8,children:[(0,l.jsx)(s.xu,{marginBottom:5,maxWidth:P,children:(0,l.jsx)(s.X6,{size:"600",color:"inverse",lineClamp:2,children:t.name})}),g&&(0,l.jsx)(s.xu,{marginBottom:5,maxWidth:P,children:(0,l.jsx)(s.xv,{size:"300",color:"inverse",children:t.description})}),!y&&(0,l.jsx)(u,{i18n:h}),y&&(0,l.jsx)(d,{url:null!=p?p:"",onClick:null!=e?e:c,i18n:h})]}),n&&m&&(0,l.jsx)(o.Z,{onDismiss:()=>f(!1),onSubmit:()=>f(!1),productGroup:t})]})}},507264:(e,t,n)=>{n.d(t,{LO:()=>v,N0:()=>x,t8:()=>P,tt:()=>w});var i=n(667294),o=n(151645),r=n(798821),a=n(487392),s=n(717615),l=n(436395),c=n(784590),d=n(19121),u=n(488177),p=n(957161),h=n(231947),_=n(497020),m=n(35066),f=n(833759);function g(e){const t=(0,c.Z)(e?{name:"ApiResource",options:{url:`/v3/catalogs/${e}/feed_profiles/`,field_sets:["feedprofile.id","feedprofile.display_name","feedprofile.country","feedprofile.locale","feedprofile.all_products_pg_item_count","feedprofile.feed_status"]}}:null);return{feedProfilesResource:t,feedProfiles:(0,_.d9)(t.data||[]).filter((e=>e.country&&e.locale&&e.feedStatus===u.Hm.ACTIVE))}}function v(){const{merchantId:e,ownerUserId:t}=(0,a.Z)(),{countriesResource:n,countries:i}=function(){const e=(0,c.Z)({name:"CountriesResource"});return{countriesResource:e,countries:(e.data||[]).reduce(((e,t)=>({...e,[t.key]:t.name.split(" (")[0]||""})),{})}}(),{feedProfilesResource:o,feedProfiles:r}=g(e),{storefrontSettingsResource:s,settings:l}=function(e){const t=(0,c.Z)(e?{name:"ApiResource",options:{url:`/v3/business/users/${e}/storefront/settings/`}}:null);return{storefrontSettingsResource:t,settings:t.data||{}}}(t);return{countries:i,feedProfiles:r,isLoaded:n.isLoaded&&o.isLoaded&&s.isLoaded,refresh:()=>{o.refresh(),s.refresh()},settings:l,userId:t}}function y(){const{merchantId:e}=(0,a.Z)(),{feedProfilesResource:t,feedProfiles:n}=g(e),{userSettingsResource:i,userSettings:o}=function(){const e=(0,c.Z)({name:"UserSettingsResource",options:{field_set_key:"profile"}});return{userSettingsResource:e,userSettings:e.data||{}}}();return{feedProfiles:n,isLoaded:t.isLoaded&&i.isLoaded,userSettings:o}}function b(){const{data:e}=(0,l.Z)(),t=(0,d.Z)(),n=(0,o.Z)({user:e,viewer:t}),i=(0,s.Z)();return{isORBACProfileManager:(0,h.q6)(t,null==e?void 0:e.id,i),ownProfile:n}}function x(){const{ownProfile:e}=b();return e}function P(){const{ownProfile:e,isORBACProfileManager:t}=b();return e||t}function w(){const{feedProfiles:e,userSettings:t,isLoaded:n}=y(),{merchantStorefrontSettings:{currentViewingLocale:{country:o,language:a}},updateLocaleStorefrontSetting:s}=(0,m.S)(),{countries:l}=v();(0,i.useEffect)((()=>{if(n&&(!o||!a||!(0,f.Ee)(e,o,a))){const[n,o]=((0,p.qn)(r.Z.STOREFRONT_LOCALE_STORAGE_KEY)||"").split("/"),{country:a,locale:c}=t,d=(0,f.b8)(e,l),u=(0,f.Ee)(d,n,o),h=(0,f.Ee)(d,a,(0,f.Md)(c)),[_]=[...d].sort(((e,t)=>(0,f.gE)(t)-(0,f.gE)(e))),m=u||h||_;var i;if(m)s(m.country||"",(0,f.Md)(m.locale),null!==(i=m.id)&&void 0!==i?i:"")}}))}},760693:(e,t,n)=>{n.d(t,{Z:()=>l});var i=n(81636);const o={BrandCatalogFeed:{tapBrandCatalogPin:function({commerceData:e},t){t({event_type:102,view_type:1,view_parameter:3244,component:0,aux_data:{...e}})}},ProductFeed:{tapProductPin:function({commerceData:e},t){t({event_type:102,component:13700,view_type:4,view_parameter:3512,aux_data:{...e}})}},StorefrontFeed:{tapProductGroup:function({productGroupId:e},t){t({event_type:102,view_type:4,view_parameter:3512,component:13698,object_id_str:e})},useShoppingProfileViewLog:function(){(0,i.Q)({view_type:4,view_parameter:3107,component:237})},viewProductGroup:function({productGroupId:e},t){t({event_type:120,view_type:4,view_parameter:3512,component:13698,object_id_str:e})}}};function r({entryPoint:e,objectId:t,groupType:n}){return{aux_data:{commerce_data:JSON.stringify({entrypoint:e}),product_group_type:n},component:13698,object_id_str:t,view_type:1,view_parameter:3515}}const a={BrandCatalog:{tapBrandCatalogPin:function({commerceData:e},t){t({event_type:102,view_type:1,view_parameter:3513,component:13700,aux_data:{...e}})}},Categories:{tapCategoryBubble:function({entryPoint:e},t){t({event_type:102,view_type:1,view_parameter:3514,component:13699,aux_data:{commerce_data:JSON.stringify({entrypoint:e})}})}},ProductGroups:{productGroupRendered:function({entryPoint:e,productGroupId:t,groupType:n},i){i({event_type:120,...r({entryPoint:e,objectId:t,groupType:n})})},tapProductGroup:function({entryPoint:e,productGroupId:t,groupType:n},i){i({event_type:102,...r({entryPoint:e,objectId:t,groupType:n})})}},ProductPins:{tapProductPin:function({commerceData:e,component:t},n){n({event_type:102,component:t,view_type:1,view_parameter:3513,aux_data:{...e}})},viewProductPinsFeed:function({component:e,entryPoint:t,category:n,productGroupId:i},o){o({event_type:13,component:e,view_type:1,view_parameter:3513,aux_data:{commerce_data:JSON.stringify({entrypoint:t}),category_title:n,product_group_id:i}})}},viewFeedPage:function({entryPoint:e,viewParameter:t},n){n({event_type:13,view_type:1,view_parameter:t,aux_data:{commerce_data:JSON.stringify({entrypoint:e})}})}};var s=n(249727);const l={Control:o,DomainModule:{trackSeeMoreClick:function({viewParameter:e},t){t({event_type:102,component:13327,element:11829,view_type:3,view_parameter:e})}},Feeds:a,StructuredFeed:{viewStructuredFeed:function({merchantId:e,source:t},n){n({event_type:13,view_type:(0,s.Z)(t),view_parameter:3512,..."profile"===t?{object_id_str:e}:Object.freeze({})})},Categories:{viewCategory:function({id:e,source:t,title:n,bubble:i},o){o({event_type:120,component:13699,view_type:(0,s.Z)(t),view_parameter:3512,aux_data:{story_type:"storefront_category_bubbles",story_id:e,category_title:n,...i.aux_fields}})},tapCategory:function({id:e,source:t,title:n,bubble:i},o){o({event_type:102,component:13699,view_type:(0,s.Z)(t),view_parameter:3512,aux_data:{story_type:"storefront_category_bubbles",story_id:e,category_title:n,...i.aux_fields}})},tapSeeMoreCategories:function({id:e,source:t},n){n({event_type:102,component:13699,element:179,view_type:(0,s.Z)(t),view_parameter:3512,aux_data:{story_id:e,story_type:"storefront_category_footer_button"}})}},ProductGroups:{tapProductGroup:function({productGroupId:e,source:t,groupType:n,componentType:i,index:o},r){r({event_type:102,component:i,object_id_str:e,view_type:(0,s.Z)(t),view_parameter:3512,aux_data:{product_group_type:n,grid_index:o}})},tapSeeMoreProductGroups:function({id:e,source:t},n){n({event_type:102,component:13698,element:179,aux_data:{story_id:e,story_type:"storefront_product_group_footer_button"},view_type:(0,s.Z)(t),view_parameter:3512})},viewProductGroup:function({productGroupId:e,source:t,groupType:n,componentType:i},o){o({event_type:120,component:i,object_id_str:e,view_type:(0,s.Z)(t),view_parameter:3512,aux_data:{product_group_type:n}})}},PinsFeed:{viewPinsFeed:function({id:e,OwnerUserId:t,pinsFeedTitle:n,source:i},o){o({event_type:120,component:13700,view_type:(0,s.Z)(i),view_parameter:3512,aux_data:{story_id:e,story_type:"storefront_pins_feed",pins_feed_title:n,owner_user_id:t}})},tapPin:function({commerceData:e,source:t},n){n({event_type:102,component:0,view_type:(0,s.Z)(t),view_parameter:3512,aux_data:{...e}})}}}}},249727:(e,t,n)=>{function i(e){return"profile"===e?4:1}n.d(t,{Z:()=>i})},833759:(e,t,n)=>{n.d(t,{Ee:()=>_,LT:()=>u,Md:()=>s,Q1:()=>h,QE:()=>a,S8:()=>f,WU:()=>y,YY:()=>v,b8:()=>x,c8:()=>p,cB:()=>m,gE:()=>l,mV:()=>g,u3:()=>c,yh:()=>r,z1:()=>d});var i=n(6637),o=n(565380);const r="ALL_PRODUCTS",a=5e3,s=e=>e?e.split("-")[0].toLowerCase():"",l=e=>{var t;return e.allProductsPGItemCount||(null===(t=e.lastSuccessfulIngestion)||void 0===t?void 0:t.productCount)||0},c=e=>[e.country||"",s(e.locale)].join("/").toUpperCase(),d=(e,t)=>e&&t?`${e} (${s(t).toUpperCase()})`:"",u=(e,t)=>{const[n,i]=t.split("/");return d(e[n.toUpperCase()],i)},p=e=>!e||void 0===e.shop_visible||e.shop_visible,h=(e,t)=>{const n=t.map(c);return Object.keys(e).map((e=>e.toUpperCase())).filter(((t,i,o)=>n.includes(t)&&!p(e[t])&&o.indexOf(t)===i))},_=(e,t,n)=>t&&n?e.find((e=>e.country===t&&s(e.locale)===n)):void 0,m=e=>{if(!e)return"";const t=["488x488","976x976","368x368","736x","474x","originals","orig",Object.keys(e)[0]];for(const n of t)if(e[n])return e[n].url||"";return""},f=e=>e.filter((e=>Number.isInteger(e.featured_position))).map((({id:e})=>e)),g=(e,t)=>{const n=new Set(t),i=new Set(e);return{featureProductGroupsSet:new Set([...i.values()].filter((e=>!n.has(e)))),unfeatureProductGroupsSet:new Set([...n.values()].filter((e=>!i.has(e))))}},v=async(e,t,n="FEATURED")=>{const{featureProductGroupsSet:r,unfeatureProductGroupsSet:a}=t,{userId:s,feedProfileId:l,countrySetting:c,languageSetting:d,settings:u}=e,p=`${c}/${d.toUpperCase()}`,h=n===o.$B.CATEGORY?[]:[...r.values()].map((e=>i.Z.create("FeaturedProductGroupsResource",{feedProfileId:l,productGroupId:e}).callCreate())),_=n===o.$B.CATEGORY?[]:[...a.values()].map((e=>i.Z.create("FeaturedProductGroupsResource",{feedProfileId:l,productGroupId:e}).callDelete())),m=o.yK[n],f=u[p]&&u[p][m]||[],g=[...new Set([...f,...r.values()])].filter((e=>!a.has(e))),v={...u,[p]:{...u[p]||{},[m]:g}},y=i.Z.create("ApiResource",{url:`/v3/business/users/${s}/storefront/settings/`,data:{settings:JSON.stringify(v)}}).callUpdate();await Promise.all([y,...h,..._])},y=(e,t)=>e.length===t.length&&t.every((t=>e.includes(t))),b=(e,t)=>d(t[e.country||""],e.locale),x=(e,t)=>e.reduce(((e,n)=>{const i=e.findIndex((e=>b(e,t)===b(n,t)));return-1===i?e.push(n):l(e[i])<l(n)&&(e[i]=n),e}),[])},436395:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(784590),o=n(276775);function r(){const{username:e}=(0,o.useParams)();return(0,i.Z)(null==e?null:{name:"UserResource",options:{username:e,field_set_key:"profile"}})}},956800:(e,t,n)=>{function i(e){return{type:"FEED_ITEM_REORDERED",payload:e}}function o(e,t){return{type:"FEED_INVALIDATE",payload:{feedType:e,feedId:t}}}n.d(t,{EX:()=>a,N8:()=>o,Qv:()=>r,_f:()=>i,vX:()=>s});const r=(e,t,n=Object.freeze({}))=>({type:"APPEND_FEED_ITEMS",payload:{id:e,options:n,items:t}});function a(e){return{type:"FEED_ITEMS_REMOVED",payload:e}}function s(e){return{type:"FEED_ITEMS_ADDED",payload:e}}},447948:(e,t,n)=>{function i(e,t){return{type:"CHANGE_CAROUSEL_SLOT_INDEX",payload:{id:e,index:t}}}function o(e,t){return{type:"SET_PIN_COMMENTS_DISABLED",payload:{id:e,pinCommentsDisabled:t}}}function r(e,t,n,i,o){return{type:"PIN_SAVE",payload:{id:e,boardId:t,title:n,url:i,localPinId:o}}}function a(e){return{type:"PIN_UNSAVE",payload:{id:e}}}n.d(t,{Gb:()=>a,I1:()=>d,Ib:()=>p,NA:()=>c,Ur:()=>r,Vw:()=>l,b9:()=>_,fH:()=>f,i0:()=>h,mO:()=>o,q1:()=>u,t_:()=>s,yR:()=>i,yj:()=>m});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:i,undoText:o}){return{type:"PIN_SHOW_UNDO_AND_FEEDBACK",payload:{id:e,value:!0,text:t,undoAction:n,undoActionOptions:i,undoText:o}}}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 _(e){return{type:"PIN_SHOW_AD_REASONS_MODAL",payload:{id:e,value:!0}}}function m(e){return{payload:{id:e,value:!1},type:"PIN_SHOW_AD_REASONS_MODAL"}}const f=(e,t)=>({type:"PIN_FEEDBACK",payload:{id:e,value:t}})},483025:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(819063);const o={AggregatedCommentResource:i.rm,AggregatedCommentFeedResource:i.LR,AggregatedCommentReplyResource:i.rm,AggregatedCommentReplyFeedResource:i.LR,AggregatedActivityFeedResource:i.LR,BestPinsFeedAltResource:i.LR,BoardArchiveResource:i.LR,BoardCollaboratorsResource:i.LR,BoardContentRecommendationResource:i.LR,BoardFeedResource:i.LR,BoardFollowingResource:i.LR,BoardInviteResource:i.sf,BoardInvitesResource:i.Ht,BoardlessPinsResource:i.LR,BoardPickerBoardsResource:{all_boards:i.LR,boards_shortlist:i.LR},BoardSectionEditResource:i._F,BoardSectionsRepinResource:i.LR,BoardSectionsResource:i.LR,BoardsFeedResource:i.LR,BoardResource:i.IY,BoardSectionResource:i._F,BoardSectionPinsResource:i.LR,BoardToolsFeedResource:i.LR,ContactRequestsResource:i.LR,ConversationsResource:i.LR,ConversationMessagesResource:i.dq,DidItCommentsResource:i.LR,DidItLikedByResource:i.Gn,DidItUserFeedResource:i.LR,ExploreArticleBlockPinResource:i.LR,ExploreArticleBlockSearchResource:i.LR,ExploreArticleBlockUserResource:i.LR,ExploreArticleBlockUserDidItDataResource:i.LR,ExploreArticleResource:i.yg,FollowingFeedResource:i.LR,HolidaySpotlightRelatedFeedResource:i.LR,HolidaySpotlightResource:i.LR,InterestFollowingResource:i.LR,InterestResource:i.cC,MoreIdeasTabsBoardsResource:i.LR,NewsHubResource:i.LR,NewsHubDetailsResource:i.LR,NewsHubSummaryResource:i.t6,NuxInterestsResource:i.LR,NuxTopicToCreatorsResource:i.Gn,PinResource:i.Cj,PinCatalogResource:i.LR,PinsFromBrandResource:i.LR,ReactionsResource:i.fE,RelatedArticlesResource:i.LR,RelatedInterestsResource:i.LR,RelatedModulesResource:i.LR,RelatedPinFeedResource:i.LR,RelatedProductFeedResource:i.LR,RelatedStreamResource:i.LR,RepinResource:i.Cj,BaseSearchResource:{results:i.LR},SearchResource:i.LR,SectionToolsFeedResource:i.LR,ShareSuggestionsTypeaheadResource:{items:i.LR},ShoppingFeedModularizedResource:i.LR,StoryFeedResource:i.LR,StoryPinTaggedProductsResource:i.LR,SuggestedCreatorFollowsResource:i.Gn,TodayArticleFeedResource:i.LR,IdeasHubTodayArticlesResource:i.LR,TodayArticleResource:i.iF,TodayTabInterestFeedResource:i.LR,TodayTabResource:i.LR,TopicFeedResource:i.LR,UnifiedCommentsResource:i.LR,UserActivityPinsResource:i.LR,UserFollowingResource:i.LR,UserRecentActivityResource:i.LR,UserSimilarBusinessesResource:i.LR,UserHomefeedResource:i.LR,UserPinsResource:i.LR,UserSettingsResource:i.EA,UserStoryPinsFeedResource:i.LR,UserResource:i.EA,VideosFeedResource:i.LR,VisualLiveSearchResource:{results:i.LR},VisualLiveSearchProductFeedResource:i.LR,VisualSearchFlashlightUnifiedResource:i.LR,SeoTier1CandidateResource:i.LR}},819063:(e,t,n)=>{n.d(t,{Cj:()=>c,EA:()=>r,Gn:()=>E,Ht:()=>S,IY:()=>l,LR:()=>T,_F:()=>p,cC:()=>y,dq:()=>_,fE:()=>u,iF:()=>v,rm:()=>a,sN:()=>A,sf:()=>b,t6:()=>w,yg:()=>f});var i=n(782677);const o=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"}),r=new i.fK.Entity(o.user),a=new i.fK.Entity(o.aggregatedComment,{user:r,tagged_users:[r]}),s=new i.fK.Entity(o.article,{curator:r}),l=new i.fK.Entity(o.board),c=new i.fK.Entity(o.pin),d=new i.fK.Entity(o.reaction,{user:r}),u=new i.fK.Array(d),p=new i.fK.Entity(o.boardsection),h=new i.fK.Entity(o.conversationMessage,{sender:r,users:[r],board:l,pin:c,user:r}),_=new i.fK.Array(h),m=new i.fK.Entity(o.contactrequest),f=new i.fK.Entity(o.story,{cover_pin:c,user:r}),g=new i.fK.Entity(o.triedit,{pin:c,user:r}),v=new i.fK.Entity(o.todayArticle,{article_creator_user:r,content_pin:c,content_pin_official_user:r,video_pin:c}),y=new i.fK.Entity(o.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 i.fK.Entity(o.invite,{invited_by_user:r,invited_user:r,board:l},{idAttribute:e=>`${e.board.id}:${e.invited_user.id}`}),x=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}},P=new i.fK.Union({user:r,board:l,invite:b,pin:c,topic:y,triedit:g},x),w=new i.fK.Entity(o.notification,{content_items:[{content_object:P}],header_icon_objects:[P]}),S=new i.fK.Array(b),E=new i.fK.Array(r),A=new i.fK.Array(l),T=new i.fK.Array({aggregatedComment:a,article:s,board:l,boardsection:p,contactrequest:m,conversationMessage:h,notification:w,pin:c,story:f,todayArticle:v,topic:y,triedit:g,user:r},x,(e=>{switch(e.type){case"collaboratorinvite":return e.board.id;case"category":return"key";default:return"id"}}));f.define({objects:T})},422946:(e,t,n)=>{n.d(t,{DV:()=>d,J:()=>m,ZP:()=>y});var i=n(59644),o=n(932995),r=n(483025),a=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:i}=n?n.objects[0]:{story_type:""};return`explore-${i.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,i.Z)(e,t)}),BaseSearchResource:({options:{auto_correction_disabled:e,appliedProductFilters:t,scope:n,filters:i,query_pin_sigs:o,query:r,user:l},response:c})=>{var u;return{type:d.SEARCH_PINS,id:(0,s.Tb)({appliedProductFilters:t,autoCorrectionDisabled:e,filters:i,query:r,selectedPinImgSig:o,scope:n,user:l}),items:null!==(u=c.resource_response.data)&&void 0!==u&&u.results?(0,a.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||[]})},_=(e,{pinId:t,oldFeedId:n,newFeedId:i})=>n===i?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:i}),m=(e,t)=>e in p?p[e](t):null,f=(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),v=(e,t,n)=>Object.keys(e).reduce(((i,o)=>{const r=e[o]||[],a=r.filter((e=>!(e.type===t&&e.id===n)));return r.length!==a.length&&(i[o]=a),i}),{...e}),y=(e={},t)=>{switch(t.type){case c.zP:case c.aW:{const{payload:i}=t,{resource:o,options:a,normalizedResponse:s,schema:u}=i;if(s&&o in p){const n=((e,t,n)=>{const i=n||r.Z[e];if(i===l.LR)return t.result;if(i===l.sN)return t.result.map((e=>({id:e,schema:"board"})));if(i===l.Gn)return t.result.map((e=>({id:e,schema:"user"})));if(i===l.Ht)return t.result.map((e=>({id:e,schema:"invite"})));if(i===l.fE)return t.result.map((e=>({id:e,schema:"reaction"})));if("object"==typeof i){const e=Object.entries(i).find((([e,t])=>t===l.LR));if(e)return t.result[e[0]]}return null})(o,s,u);if(n&&Array.isArray(n)){const i=p[o](a);if("ShoppingFeedModularizedResource"===o){const{board_id:t,saved_products_only:i}=null!=a?a:{},o=`board-shop-related:${t}`,r=`board-shop-saved:${t}`,l=`board-shop-saved-preview:${t}`,c=[...e[o]||[]],d=[...e[r]||[]],u=[...e[l]||[]];return g(n,s.entities).forEach((e=>{var n;i?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,[o]:c,[r]:d,[l]:u}}if("BoardToolsFeedResource"===o||"SectionToolsFeedResource"===o)return{...e,[i]:n};{const o=(t.type===c.aW&&e[i]||[]).concat(g(n,s.entities));return{...e,[i]:o}}}}else{var n;const o=i.response.resource_response.data;if(null===(n=i.options)||void 0===n||!n.redux_normalize_feed)return e;const r=h[i.resource](i);if(r){const{type:n,id:i,items:a,reversed:s}=r;let l=(a||o||[]).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}:${i}`,p=e[u];if(p||t.type!==c.aW){const n=p||[];let i=l;return t.type===c.aW&&(i=s?l.concat(n):n.concat(l)),{...e,[u]:i}}}}break}case"FEED_ITEM_REORDERED":{const{payload:{feedType:n,feedId:i,itemType:r,targetItemId:a,sourceItemId:s}}=t,l=`${n}:${i}`,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===r&&e.id===s)),p=c.findIndex((e=>e.type===r&&e.id===a))),-1!==u&&-1!==p)return{...e,[l]:(0,o.Z)(c,u,p)};break}case"FEED_ITEMS_REMOVED":{const{payload:{feedType:n,feedId:i,inverseSelection:o,itemType:r,itemIds:a=[]}}=t,s=`${n}:${i}`,l=e[s]||[];if(l&&l.length>0&&(n===d.BOARD_SECTION_PINS||n===d.BOARDFEED)){const t=l.filter((e=>{const t=a.includes(e.id);return!(e.type===r&&(o&&!t||!o&&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=a.includes(e.id);return!(e.type===r&&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=a.includes(e.id);return!(e.type===r&&t)}));return{...e,[s]:t}}break}case"FEED_ITEMS_ADDED":{const{payload:{feedType:n,feedId:i,itemType:o,itemIds:r=[],prepend:a}}=t,s=`${n}:${i}`,l=e[s]||[];if(l&&(n===d.BOARD_SECTION_PINS||n===d.BOARDFEED||n===d.BOARDLESS_PINS)){const t=r.map((e=>({id:e,type:o})));let n=0;"story"===(l[0]||{}).type&&(n=1),"story"===(l[1]||{}).type&&(n=2);const i=[...l.slice(0,n),...t,...l.slice(n)];return{...e,[s]:i}}if(l&&n===d.BOARD_SECTIONS){const t=[...r].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=r.map((e=>({id:e,type:o}))),n=l?[...a?t:l,...a?l:t]:t;return{...e,[s]:n}}if(n===d.TRIED_IT_FEED){const t=r.map((e=>({id:e,type:o}))),n=l?[...t,...l]:t;return{...e,[s]:n}}break}case"FEED_INVALIDATE":{const{payload:{feedType:n,feedId:i}}=t,o=`${n}:${i}`;if(e[o]||[])return{...e,[o]:null};break}case"APPEND_FEED_ITEMS":{const{payload:{id:n,items:i,options:o}}=t,r=e[n];if(r){let t;return t=o.isPrepend?r[0]&&"story"===r[0].type?[].concat(r[0],i,r.slice(1)):i.concat(r):r.concat(i),{...e,[n]:t}}return{...e,[n]:i}}case"PIN_DELETE":{const{payload:{pinId:n}}=t;return v(e,"pin",n)}case"BOARD_ARCHIVE":{const{payload:{boardId:n,username:i}}=t,o=`profile-boards:${null!=i?i:""}`;if(e[o])return{...e,[o]:e[o].filter((e=>e.id!==n))};break}case"BOARD_UNARCHIVE":{const{payload:{boardId:n}}=t,i="archived-boards";if(e[i])return{...e,[i]:e[i].filter((e=>e.id!==n))};break}case"BOARD_DELETE":{const{payload:{boardId:n}}=t;return v(e,"board",n)}case"BOARD_SECTION_DELETE":{const{payload:{boardSectionId:n}}=t;return v(e,"boardsection",n)}case"PINS_MOVE":{const{payload:{source:n,target:i,pinIds:o,userId:r}}=t,a=n.boardlessPins&&r&&`boardless-pins:${r}`||n.boardId&&f(n.boardId,n.sectionId),s=f(i.boardId,i.sectionId);return o.reduce(((e,t)=>_(e,{pinId:t,oldFeedId:a,newFeedId:s})),e)}case"PINS_MOVE_ALL":{const{payload:{source:n,target:i,excludePinIds:o}}=t,r=f(n.boardId,n.sectionId),a=f(i.boardId,i.sectionId),s={...e,[r]:o.map((e=>({type:"pin",id:e})))};return delete s[a],s}case"PIN_EDIT":{const{payload:{pinId:n,boardId:i,section:o,source:{boardId:r,sectionId:a}}}=t,s=f(r,a),l=f(i,null==o?void 0:o.id);return _(e,{pinId:n,oldFeedId:s,newFeedId:l})}case c.AF:if(u.has(t.payload.resource)){const n=t.payload.response.resource_response.data,i=n.board;let o;if("quick_saves"===i.layout)o=`boardless-pins:${t.payload.options.user_id}`;else{const e=t.payload.options.section;o=e?`board-section-pins:${e}`:`boardfeed:${i.id}`}if(e[o]){const t={...e},i={id:n.id,type:"pin",trackingParams:null==n?void 0:n.tracking_params};return t[o]=[i].concat(e[o]),t}}if("BoardSectionResource"===t.payload.resource&&t.payload.normalizedResponse){const n=t.payload.normalizedResponse.result,i=`board-sections:${t.payload.normalizedResponse.entities.boardsections[n].board}`;if(e[i]){const t={...e},o={id:n,type:"boardsection"};return t[i]=[o].concat(e[i]),t}}if("AggregatedCommentResource"===t.payload.resource&&t.payload.normalizedResponse){const n={id:t.payload.normalizedResponse.result,type:"aggregatedcomment"},i=["aggregated-comments","unified-comments"];let o={...e};for(const r of i){const i=`${r}:${t.payload.options.objectId}`;e[i]&&(o={...o,[i]:[n].concat(o[i])})}return o}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 i=`reactions:${t.payload.options.pin_id}`,o={...e},r={id:`${n}:${t.payload.options.user_id}`,type:"reaction",trackingParams:void 0};return o[i]=[r].concat(e[i]),o}if("unreaction"===t.payload.options.action_type){const i=`${n}:${t.payload.options.user_id}`;return v(e,"reaction",i)}}break;case"COMPLETE_STORY":{const{payload:{storyId:n}}=t;return v(e,"story",n)}}return e}},852025:(e,t,n)=>{n.d(t,{k:()=>r,s:()=>a});var i=n(667294);const o=(0,i.createContext)(Object.freeze({})),r=o.Provider;function a(){return(0,i.useContext)(o)}},596493:(e,t,n)=>{n.d(t,{Ac:()=>r,c7:()=>o,cg:()=>i});const i=-1,o=5,r=6},475970:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var i=n(667294),o=n(898781),r=n(883119),a=n(785893);function s({size:e,iconColor:t,backgroundColor:n,disabled:i,onClick:s}){const l=(0,o.ZP)(),c=48===e?"lg":"xl";return(0,a.jsx)(r.hU,{accessibilityLabel:l.bt("Copy link", "Copy Link", "shareMenu.icon.accessibilityLabel.copy", undefined, true),bgColor:n,icon:"link",iconColor:t||n&&!["white","lightGray","transparent"].includes(n)?t:"gray",size:c,disabled:i,onClick:s})}var l=n(172071),c=n(375436),d=n(67428),u=n(499128),p=n(53987),h=n(867060),_=n(407043),m=n(773285),f=n(276775),g=n(343341),v=n(743473),y=n(827896);function b({backgroundColor:e,iconColor:t,iconSize:n,iconWrapperWidth:b,isCloseupActionBar:x,marginEnd:P,onClick:w,sharedObject:S,spaceBelowIcon:E,viewType:A,viewParameter:T,relayEnvironment:I}){const C=(0,o.ZP)(),{logContextEvent:R}=(0,_.v)(),{checkExperiment:k}=(0,m.F)(),O=k("web_share_menu_logging").anyEnabled,D=(0,g.F9)(),[j,N]=(0,i.useState)(""),[L,M]=(0,i.useState)(!1),[z,B]=(0,i.useState)(!1),Z=(0,f.useLocation)(),F=(0,y.Z)(),U=C.bt("Link copied", "Link copied!", "shareSheet.socialBar.copyLinkButton.LinkCopied", undefined, true),G=e=>{x?navigator.clipboard.writeText(e).then((()=>{var e;e=C.bt("Copied link to your clipboard to share", "Copied link to your clipboard to share", "web.unauth.pinbar.copylink", undefined, true),D.showToast((({hideToast:t})=>(0,a.jsx)(r.xu,{top:!0,children:(0,a.jsx)(u.ZP,{duration:3e3,onHide:t,text:e})})))})):navigator.clipboard.writeText(e).then((()=>{B(!0),setTimeout((()=>{B(!1)}),3e3)}))},H=async()=>{if(j)return void G(j);M(!0);const e=(e=>{let t;if("pin"===S.type&&S.id){const e={shouldTrackForPrevLocation:!0};t=F(S.id,e)}return{invite_category:3,invite_channel:e,object_type:S.type,object_id:S.id,name:S.name,description:S.description||"",path:S.url,picture:S.imageUrl,client_tracking_params:t}})(12);v.Z.createShareInviteData(e,I).then((t=>{const{invite_url:n}=t;M(!1),n&&(N(n),v.Z.logShareInvite(e,t,I),G(n))}))},V=()=>{if(H(),O){const e=h.y[S.type];e||l.Z.increment("social.web.copyLinkButton.sharedObject.type",void 0,{type:S.type}),x&&R({event_type:101,component:14147,element:13103,object_id_str:S.id,view_type:A,view_parameter:T,aux_data:e?{invite_object:e}:void 0}),w&&w()}};return(0,p.am)(Z)&&x&&k("web_copy_link_btn_replace").anyEnabled?(0,a.jsx)(r.xu,{marginStart:1,children:(0,a.jsx)(r.zx,{accessibilityLabel:C.bt("Copy link", "Copy link", "shareSheet.socialBar.copyLinkButton.CopyLink", undefined, true),text:C.bt("Copy link", "Copy link", "shareSheet.socialBar.copyLinkButton.CopyLink", undefined, true),onClick:()=>V(),size:"lg",color:"gray",fullWidth:!0})}):(0,a.jsxs)(d.Z,{isCloseupActionBar:!0,width:b||n,marginEnd:P||!1,children:[(0,a.jsx)(r.xu,{alignItems:x?"center":"stretch",display:x?"flex":"block",marginBottom:E,width:x?"100%":"auto",children:(0,a.jsx)(r.kC,{alignItems:"center",direction:"column",justifyContent:"center",width:n,children:(0,a.jsx)(s,{backgroundColor:e,iconColor:t,size:n,onClick:V,disabled:L})})}),!x&&(0,a.jsx)(c.Z,{text:z?U:C.bt("Copy link", "Copy link", "shareSheet.socialBar.copyLinkButton.CopyLink", undefined, true)})]})}},750869:(e,t,n)=>{n.d(t,{d:()=>i});const i={BOARD:"board",PIN:"pin",DID_IT:"did_it",PINNER:"pinner",USER:"user",TODAY_ARTICLE:"today_article"}},827021:(e,t,n)=>{n.r(t),n.d(t,{default:()=>me});var i=n(667294),o=n(172071),r=n(116303),a=n(898781),s=n(977558),l=n(349700),c=n(407043),d=n(773285),u=n(883119);const p={FONT_SIZE:"300",ITEM_SIZE:56,ITEM_PADDING:30,SPACE_BELOW_ITEM:2,ITEM_ROW_HEIGHT:98,SECTION_LABEL_HEIGHT:64,MAX_CONTACTS_SHOWN:5,SHARE_SHEET_PADDING_X:3,SHARE_SHEET_PADDING_Y:2},h={FONT_SIZE:"200",ITEM_SIZE:48,ITEM_PADDING:26,SPACE_BELOW_ITEM:2,ITEM_ROW_HEIGHT:81,SECTION_LABEL_HEIGHT:49,MAX_CONTACTS_SHOWN:4,SHARE_SHEET_PADDING_X:3,SHARE_SHEET_PADDING_Y:1},_=(p.MAX_CONTACTS_SHOWN+1)*(p.ITEM_SIZE+p.ITEM_PADDING)+2*p.SHARE_SHEET_PADDING_X*4,m=(h.MAX_CONTACTS_SHOWN+1)*(h.ITEM_SIZE+h.ITEM_PADDING)+2*h.SHARE_SHEET_PADDING_X*4,f="error";var g=n(785893);function v({idx:e,item:t,onSendMessage:n,onViewConversation:o,sentHistory:_}){var m;const v=(0,a.ZP)(),{logContextEvent:y}=(0,c.v)(),[b,x]=(0,i.useState)(!1),P=t.id||"string"==typeof t.email&&t.email||"",w=_[P]===f,S=Object.prototype.hasOwnProperty.call(_,P)&&!w,E=null!==(m=_[P])&&void 0!==m?m:"";(0,i.useEffect)((()=>{w&&x(!1)}),[w]);let A="";const{full_name:T,email:I}=t;"string"!=typeof T||T.match(/^\s*$/)?"string"!=typeof I||I.match(/^\s*$/)||(A=I):A=T;let C="";S?C=v.bt("View chat", "View chat", "shareSheet.ContactItem.viewChat", undefined, true):b&&(C=v.bt("Sent", "Sent", "shareSheet.ContactItem.sent", undefined, true));const{checkExperiment:R}=(0,d.F)(),k=R("web_sharesheet_resize").anyEnabled?h:p;return(0,g.jsx)(u.xu,{alignItems:"center","data-test-id":"sharesheet-contact-item",display:"flex",direction:"column",width:k.ITEM_SIZE+k.ITEM_PADDING,children:(0,g.jsx)(u.xu,{display:"inlineBlock",role:"button",children:(0,g.jsxs)(u.iP,{onTap:S?()=>o(E):()=>{y({event_type:101,component:13029,element:1039,aux_data:{result_index:e+1,rs:t.debug_reason.reason}}),x(!0),n(t)},children:[(0,g.jsxs)(u.xu,{alignItems:"center","data-test-id":b?"sharesheet-viewchat-link":"sharesheet-contact-item-button",display:"flex",height:k.ITEM_SIZE,justifyContent:"center",marginBottom:k.SPACE_BELOW_ITEM,width:k.ITEM_SIZE,children:[b&&(0,g.jsx)(u.xu,{alignItems:"center",color:"transparentDarkGray","data-test-id":"sharesheet-contact-item-sent-icon",display:"flex",height:k.ITEM_SIZE,justifyContent:"center",position:"absolute",rounding:"circle",width:k.ITEM_SIZE,zIndex:new u.Ry(s.fe),children:(0,g.jsx)(u.JO,{accessibilityLabel:(0,l.Wc)(v.bt("Sent to {{recipientName}}", "Sent to {{recipientName}}", "shareSheet.ContactItem.sentIcon.accessibilityLabel", undefined, true),{recipientName:A}),icon:"check",color:"light",size:24})}),(0,g.jsx)(r.Z,{size:"fit",src:t.image_large_url,name:A})]}),(0,g.jsxs)(u.xu,{"data-test-id":"sharesheet-contact-item-label",width:k.ITEM_SIZE,children:[(0,g.jsx)(u.xv,{lineClamp:1,size:"100",align:"center",children:A}),(0,g.jsx)(u.xv,{color:"subtle",size:"100",align:"center",children:C})]})]})})})}var y=n(784590),b=n(313951),x=n(17676);function P(e){var t;const{logContextEvent:n}=(0,c.v)(),o=(0,a.ZP)(),{onHide:r,onSendMessage:s,onShowImportContacts:l,objectAttachment:_,sentHistory:m}=e,{checkExperiment:f}=(0,d.F)(),P=f("web_sharesheet_resize").anyEnabled?h:p,{isLoaded:w}=(0,y.Z)({name:"ShareSuggestionsResource",options:{field_set_key:"default"},noCache:!0}),{shareSuggestions:S}=(0,x.E)(),E=(null===(t=S[""])||void 0===t?void 0:t.slice(0,P.MAX_CONTACTS_SHOWN))||[],A=E.length>0;(0,i.useEffect)((()=>{if(w){n({event_type:A?7511:7512,component:56,view_type:70,view_parameter:256})}}),[A,n,w]);const{dropdownOpen:T,conversationOpen:I,newMessageOpen:C}=(0,b.Z5)(),R=e=>{I(e),T(),r()},k=E.map(((e,t)=>{const n=`${e.id||e.email||t}`,i={item:e,idx:t,onSendMessage:s,onViewConversation:R,sentHistory:m};return(0,g.jsx)(v,{...i},n)})),O=(0,d.F)().checkExperiment("web_sharesheet_resize").anyEnabled,D=!A&&!w;return(0,g.jsxs)(u.kC,{direction:"column",children:[(0,g.jsx)(u.kC,{alignItems:"center",height:P.SECTION_LABEL_HEIGHT,justifyContent:"center",children:(0,g.jsx)(u.xv,{align:"center",size:P.FONT_SIZE,weight:"bold",children:o.bt("Send on Pinterest", "Send on Pinterest", "ContactsSuggestions.Header.text", undefined, true)})}),(0,g.jsx)(u.xu,{display:"flex",height:P.ITEM_ROW_HEIGHT,justifyContent:D?"center":void 0,marginBottom:5,children:D?(0,g.jsx)(u.xu,{paddingY:2,children:(0,g.jsx)(u.$j,{accessibilityLabel:o.bt("Loading conversation messages", "Loading Conversation Messages", "SendObject.contactList.spinner", undefined, true),show:!0})}):(0,g.jsxs)(u.kC,{direction:"row",children:[(0,g.jsxs)(u.kC,{alignItems:"center",direction:"column",justifyContent:"start",width:P.ITEM_SIZE+P.ITEM_PADDING,children:[(0,g.jsx)(u.xu,{height:P.ITEM_SIZE,marginBottom:P.SPACE_BELOW_ITEM,width:P.ITEM_SIZE,children:(0,g.jsx)(u.hU,{accessibilityLabel:o.bt("Search for users", "Search for users", "ContactsSuggestsions.SearchIcon.accessibilityLabel", undefined, true),bgColor:"lightGray",icon:"search",iconColor:"darkGray",onClick:()=>{C(_),T(),r()},size:O?"lg":"xl"})}),(0,g.jsx)(u.xv,{lineClamp:1,size:"100",children:o.bt("Search", "Search", "ContactsSuggestions.SearchOption.text", undefined, true)})]}),A?k:(0,g.jsxs)(u.kC,{alignItems:"center",direction:"column",justifyContent:"start",width:P.ITEM_SIZE+P.ITEM_PADDING,children:[(0,g.jsx)(u.xu,{height:P.ITEM_SIZE,marginBottom:P.SPACE_BELOW_ITEM,width:P.ITEM_SIZE,children:(0,g.jsx)(u.hU,{accessibilityLabel:o.bt("Search for users", "Search for users", "ContactsSuggestsions.SearchIcon.accessibilityLabel", undefined, true),bgColor:"lightGray",icon:"people",iconColor:"darkGray",onClick:l,size:O?"lg":"xl"})}),(0,g.jsx)(u.xv,{lineClamp:1,size:"100",children:o.bt("Import", "Import", "ContactsSuggestions.ImportOption.text", undefined, true)})]})]})})]})}function w(e){switch(e){case"AuthHomefeed":return 13;case"BaseBoardPinGrid":return 5;case"BoardMoreIdeasTabContent":return 23;case"ConversationView":return 19;case"FollowingFeedGrid":return 21;case"ProfilePromotablePinCard":return 1;case"RelatedPinGrid":case"RelatedProductsFeed":return 14;case"RelatedProductsExploreTab":return 4;case"ShoppingPackageItem":case"ShoppingSquareGridProductDetailPage":case"ShoppingGridShippedMetadata":case"ProductPinsFeed":return 27;case"StoryPinFeedGrid":return 28;case"TodayArticleFeed":return 20;case"UserProfilePinGrid":default:return e}}var S=n(936776),E=n(750869);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 T extends i.Component{constructor(...e){super(...e),A(this,"state",{textValue:this.props.initialTextValue||"",emailValue:""}),A(this,"handleSendEmail",((e,t)=>{if(e){const n={type:"email_share_suggestion",id:"",email:e,debug_reason:{reason:"",readable_reason:""}};this.props.onSendMessage(n,t)}})),A(this,"handleTextValueChange",(({value:e})=>{this.setState({textValue:e})})),A(this,"handleEmailValueChange",(({value:e})=>{this.setState({emailValue:e})}))}renderCloseButton(){const{i18n:e,onCancelDraft:t}=this.props;return(0,g.jsx)(u.hU,{accessibilityLabel:e.bt("Cancel share with user", "Cancel share to user", "accessibility label for close button", undefined, true),icon:"arrow-back",onClick:t,size:"sm",iconColor:"gray"})}render(){const{width:e}=this.props;return(0,g.jsxs)(u.xu,{display:"flex",direction:"column",column:12,paddingX:4,paddingY:2,width:e,color:"default",children:[(0,g.jsxs)(u.xu,{display:"flex",alignItems:"center",paddingY:4,children:[this.renderCloseButton(),(0,g.jsx)(u.xu,{flex:"grow",marginEnd:8,children:(0,g.jsx)(u.xv,{align:"center",weight:"bold",children:this.props.i18n.bt("Send to", "Send to", "shareSheet.SendToEmail.label", undefined, true)})})]}),(0,g.jsxs)(u.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[(0,g.jsx)(u.xu,{paddingY:1,marginBottom:4,children:(0,g.jsx)(u.Kx,{id:"email",onChange:this.handleEmailValueChange,placeholder:this.props.i18n.bt("Enter email address", "Enter email address", "Email address to send to", undefined, true),value:this.state.emailValue||"",rows:1})}),(0,g.jsx)(u.Kx,{id:"sendObjectMessage",onChange:this.handleTextValueChange,placeholder:this.props.i18n.bt("Add a message", "Add a message", "shareSheet.SendToEmail.textareaPlaceholder", undefined, true),value:this.state.textValue||""}),(0,g.jsx)(u.xu,{paddingY:4,display:"flex",justifyContent:"center",children:(0,g.jsx)(u.zx,{size:"lg",color:"red",onClick:()=>this.handleSendEmail(this.state.emailValue||"",this.state.textValue||""),type:"submit",text:this.props.i18n.bt("Send", "Send", "shareSheet.SendToEmail.sendButton", undefined, true),disabled:!(0,S.Z)(this.state.emailValue)})})]})]})}}function I(e){const t=(0,a.ZP)();return(0,g.jsx)(T,{...e,i18n:t})}var C=n(567831),R=n(475970),k=n(31149),O=n(107193),D=n(659522),j=n(331744),N=n(757146);function L({size:e=48}){return(0,g.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,g.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#fff"}),(0,g.jsx)("rect",{x:".5",y:".5",width:"55",height:"55",rx:"27.5",stroke:"#767676",strokeOpacity:".4"}),(0,g.jsx)("path",{d:"M39 19.5c0 1.381-1.119 2.5-2.5 2.5S34 20.881 34 19.5s1.119-2.5 2.5-2.5 2.5 1.119 2.5 2.5ZM18.5 28c0-.69-.56-1.25-1.25-1.25S16 27.31 16 28s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25ZM26.75 38.75c0-.69.56-1.25 1.25-1.25s1.25.56 1.25 1.25S28.69 40 28 40s-1.25-.56-1.25-1.25Z",fill:"#E60023"}),(0,g.jsx)("path",{d:"M29.25 17.25c0 .69-.56 1.25-1.25 1.25s-1.25-.56-1.25-1.25S27.31 16 28 16s1.25.56 1.25 1.25ZM17 36.5c0-1.381 1.119-2.5 2.5-2.5s2.5 1.119 2.5 2.5-1.119 2.5-2.5 2.5-2.5-1.119-2.5-2.5ZM38.75 26.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25S40 28.69 40 28s-.56-1.25-1.25-1.25Z",fill:"#FFD63F"}),(0,g.jsx)("path",{d:"M19.5 22c1.381 0 2.5-1.119 2.5-2.5S20.881 17 19.5 17 17 18.119 17 19.5s1.119 2.5 2.5 2.5ZM36.5 34c-1.381 0-2.5 1.119-2.5 2.5s1.119 2.5 2.5 2.5 2.5-1.119 2.5-2.5-1.119-2.5-2.5-2.5Z",fill:"#46CC88"}),(0,g.jsx)("path",{d:"M28 21c-3.866 0-7 3.134-7 7s3.134 7 7 7 7-3.134 7-7-3.134-7-7-7Z",fill:"#3869FF"})]})}var M=n(375436),z=n(67428),B=n(19121);function Z({iconSize:e,iconWrapperWidth:t,marginBottom:n,marginEnd:i,onCreatePincodeClick:o,sharedObject:r}){const s=(0,a.ZP)(),l=(0,B.Z)();return o&&[E.d.BOARD,E.d.PINNER,E.d.USER].includes(r.type)&&l.isAuth&&(r.id===l.id||l.isEmployee)?(0,g.jsxs)(z.Z,{width:t,marginEnd:i,children:[(0,g.jsx)(u.xu,{marginBottom:n,children:(0,g.jsx)(u.iP,{fullWidth:!1,onTap:o,children:(0,g.jsx)(L,{size:e})})}),(0,g.jsx)(M.Z,{text:s.bt("Pincode", "Pincode", "Share via pincode", undefined, true)})]},"pincode"):null}var F=n(464240),U=n(22641),G=n(167912),H=n(780280),V=n(743473),W=n(827896),$=n(867060),K=n(343341);function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Y={backgroundColor:"#ffffff",border:"none",padding:0},X=new Set(["JP","TW","TH"]),J=(e,t)=>{(0,O.default)((t=>{t&&(t.getUserID()?e():t.login((()=>{e()})))}),t)};class Q extends i.Component{constructor(...e){super(...e),q(this,"state",{whatsappInviteData:null,inviteData:null,whatsappURL:"",whatsAppLogged:!1,copyLinkLogged:!1}),q(this,"logShareInviteLink",(()=>{const{copyLinkLogged:e,inviteData:t}=this.state,n=this.getShareOptions(12);e||(V.Z.logShareInvite(n,t,this.props.relayEnvironment),this.setState({copyLinkLogged:!0}))}))}componentDidMount(){this.getWhatsAppURL()}getShareOptions(e){let t;const{sharedObject:n,getClientTrackingParams:i}=this.props;if("pin"===n.type&&n.id){const e={shouldTrackForPrevLocation:!0};t=i(n.id,e)}return{invite_category:3,invite_channel:e,object_type:n.type,object_id:n.id,name:n.name,description:n.description||"",path:n.url,picture:n.imageUrl,client_tracking_params:t}}getWhatsAppURL(){const e=this.getShareOptions(10);V.Z.createShareInviteData(e,this.props.relayEnvironment).then((e=>{const t=`${e.title}\n${e.invite_url}`;if(t){const n=encodeURIComponent(t);this.setState({whatsappInviteData:e,whatsappURL:"https://web.whatsapp.com/send?text="+n})}else this.setState({whatsappURL:"https://web.whatsapp.com/send?text="+(0,C.Z)(this.props.sharedObject.url)})}))}checkWritePermissions(){return!!this.props.viewer.isWriteBanned}handleSocialShareClick(e,t){if(this.checkWritePermissions())return;const{onCreatePincodeClick:n,onExternalSend:i,logContextEvent:r,viewType:a,viewParameter:s,inShareMenuLoggingExp:l,sharedObject:c}=this.props;let d=l?$.c[t]:46;"facebook"===e||5===t?(this.openFacebookDialog(),l||(d=257)):"twitter"===e||9===t?(this.openTwitterDialog(),l||(d=256)):"messenger"===e||6===t?(this.openFbMessengerDialog(),l||(d=950)):"whatsapp"===e||10===t?(this.openWhatsAppDialog(),l||(d=951)):"pincode"===e||16===t?n&&n():"copylink"===e||12===t?(this.openShareUrlLink(),l||(d=100)):"email"===e||1===t?(this.openEmailDialog(),l||(d=258)):"line"!==e&&8!==t||(this.openLineDialog(),l||(d=952)),i&&i();const u=$.y[c.type];u||o.Z.increment("social.web.legoShareSocialBar.sharedObject.type",void 0,{type:c.type}),r({event_type:101,component:l?14121:153,element:d,object_id_str:l?c.id:void 0,view_type:l?a:void 0,view_parameter:l?s:void 0,aux_data:l?{invite_object:u}:void 0})}openEmailDialog(){this.props.onEmailIconClick()}openFacebookDialog(){const{unauthId:e,viewer:t}=this.props;J((()=>{V.Z.shareFacebookInvite({options:this.getShareOptions(5),unauthId:e,viewer:t},this.props.relayEnvironment)}),t)}openFbMessengerDialog(){const{unauthId:e,viewer:t}=this.props;J((()=>{V.Z.shareFbMessengerInvite({options:this.getShareOptions(6),unauthId:e,viewer:t},this.props.relayEnvironment)}),t)}openWhatsAppDialog(){const e=this.getShareOptions(10);this.state.whatsAppLogged||(V.Z.logShareInvite(e,this.state.whatsappInviteData,this.props.relayEnvironment),this.setState({whatsAppLogged:!0}))}openShareUrlLink(){this.logShareInviteLink()}openTwitterDialog(){V.Z.shareTwitterInvite(this.getShareOptions(9),this.props.relayEnvironment)}openLineDialog(){V.Z.shareLineInvite(this.getShareOptions(8),this.props.relayEnvironment)}renderEmail(){const{inResizeShareSheetExp:e}=this.props,t=e?h:p,n=t.ITEM_SIZE,i=t.ITEM_SIZE+t.ITEM_PADDING,o=t.SPACE_BELOW_ITEM;return(0,g.jsxs)(z.Z,{width:i,marginEnd:!1,children:[(0,g.jsx)(u.xu,{display:"inlineBlock",marginBottom:o,children:(0,g.jsx)("button",{"aria-label":this.props.i18n.bt("Share by email", "Share on Email", "sharesheet.shareSocialBar.ShareEmail", undefined, true),onClick:()=>this.handleSocialShareClick("email",1),style:Y,children:(0,g.jsx)(k.Z,{size:n})})}),(0,g.jsx)(M.Z,{text:this.props.i18n.bt("Email address", "Email", "Share via email", undefined, true)})]},"email")}renderShareOptions(){const{i18n:e,onCreatePincodeClick:t,sharedObject:n,showLineShare:o,showMessengerShare:r,isPublisherSharingObject:a,viewType:s,viewParameter:l,inResizeShareSheetExp:c}=this.props,d=c?h:p,_=d.ITEM_SIZE,m=d.ITEM_SIZE+d.ITEM_PADDING,f=d.SPACE_BELOW_ITEM;return(0,g.jsx)(i.Fragment,{children:(0,g.jsxs)(u.kC,{justifyContent:"start",wrap:c,children:[o&&(0,g.jsxs)(z.Z,{width:m,marginEnd:o,children:[(0,g.jsx)(u.xu,{marginBottom:f,children:(0,g.jsx)("button",{"aria-label":e.bt("Share on LINE", "Share on LINE", "sharesheet.shareSocialBar.ShareLine", undefined, true),onClick:()=>this.handleSocialShareClick("line",8),style:Y,children:(0,g.jsx)(j.Z,{size:_})})}),(0,g.jsx)(M.Z,{text:e.bt("LINE", "LINE", "sharesheet.shareSocialBar.ShareLineLabel", undefined, true)})]}),(0,g.jsxs)(z.Z,{width:m,marginEnd:!1,children:[(0,g.jsx)(u.xu,{marginBottom:f,children:(0,g.jsx)("button",{"aria-label":e.bt("Share on WhatsApp", "Share on WhatsApp", "sharesheet.shareSocialBar.ShareWhatsapp", undefined, true),onClick:()=>this.handleSocialShareClick("whatsapp",10),style:Y,tabIndex:"-1",children:(0,g.jsx)(u.iP,{rounding:"circle",role:"link",href:this.state.whatsappURL,target:"blank",children:(0,g.jsx)(U.Z,{size:_})})})}),(0,g.jsx)(M.Z,{text:e.bt("WhatsApp", "WhatsApp", "sharesheet.shareSocialBar.ShareWhatsappLabel", undefined, true)})]}),r&&(0,g.jsxs)(z.Z,{width:m,marginEnd:!1,children:[(0,g.jsx)(u.xu,{marginBottom:f,children:(0,g.jsx)("button",{"aria-label":e.bt("Share on Messenger", "Share on Messenger", "sharesheet.shareSocialBar.ShareMessenger", undefined, true),onClick:()=>this.handleSocialShareClick("messenger",6),style:Y,children:(0,g.jsx)(N.Z,{size:_})})}),(0,g.jsx)(M.Z,{text:e.bt("Messenger", "Messenger", "sharesheet.shareSocialBar.ShareMessengerLabel", undefined, true)})]}),(0,g.jsxs)(z.Z,{width:m,marginEnd:!1,children:[(0,g.jsx)(u.xu,{marginBottom:f,children:(0,g.jsx)("button",{"aria-label":e.bt("Share on Facebook", "Share on Facebook", "sharesheet.shareSocialBar.ShareFacebook", undefined, true),onClick:()=>this.handleSocialShareClick("facebook",5),style:Y,children:(0,g.jsx)(D.Z,{size:_})})}),(0,g.jsx)(M.Z,{text:e.bt("Facebook", "Facebook", "sharesheet.shareSocialBar.ShareFacebookLabel", undefined, true)})]}),(0,g.jsxs)(z.Z,{width:m,marginEnd:!1,children:[(0,g.jsx)(u.xu,{marginBottom:f,children:(0,g.jsx)("button",{"aria-label":e.bt("Share on Twitter", "Share on Twitter", "sharesheet.shareSocialBar.ShareTwitter", undefined, true),onClick:()=>this.handleSocialShareClick("twitter",9),style:Y,"data-test-id":"twitter-share-icon",children:(0,g.jsx)(F.Z,{size:_})})}),(0,g.jsx)(M.Z,{text:e.bt("Twitter", "Twitter", "sharesheet.shareSocialBar.ShareTwitterLabel", undefined, true)})]}),(0,g.jsxs)(i.Fragment,{children:[(0,g.jsx)(Z,{iconSize:_,iconWrapperWidth:m,marginBottom:f,marginEnd:!1,onCreatePincodeClick:t,sharedObject:n}),(0,g.jsx)(R.default,{sharedObject:n,backgroundColor:"lightGray",iconColor:"darkGray",iconSize:_,iconWrapperWidth:m,marginEnd:o,onClick:()=>this.handleSocialShareClick("copylink",12),isCloseupActionBar:!1,spaceBelowIcon:f,viewType:s,viewParameter:l,relayEnvironment:this.props.relayEnvironment},"copylink"),!a&&this.renderEmail()]})]})})}render(){const{paddingX:e,inResizeShareSheetExp:t}=this.props,n=t?h:p;return(0,g.jsxs)(u.xu,{paddingX:e,children:[(0,g.jsx)(u.kC,{alignContent:"center",alignItems:"center",height:n.SECTION_LABEL_HEIGHT,justifyContent:"center",children:(0,g.jsx)(u.xv,{size:n.FONT_SIZE,weight:"bold",children:this.props.i18n.bt("Share", "Share", "Sharesheet.ShareSocialBar", undefined, true)})}),(0,g.jsx)(u.kC,{alignContent:"start",alignItems:"stretch",justifyContent:"start",minHeight:n.ITEM_ROW_HEIGHT,children:this.renderShareOptions()})]})}}function ee(e){const{logContextEvent:t}=(0,c.v)(),{checkExperiment:n}=(0,d.F)(),i=(0,a.ZP)(),o=(0,B.Z)(),r=o.isAuth&&X.has(o.country),s=n("web_messenger_share_channel").anyEnabled,l=(0,H.B)(),u=n("web_share_menu_logging").anyEnabled,p=n("web_sharesheet_resize").anyEnabled,h=n("graphql_migration_sharesheet_sgrowth_web").anyEnabled,_=(0,G.useRelayEnvironment)();return(0,g.jsx)(Q,{...e,toastManagerContext:(0,K.F9)(),viewer:(0,B.Z)(),showLineShare:r,showMessengerShare:s,i18n:i,logContextEvent:t,unauthId:l.unauthId,inShareMenuLoggingExp:u,inResizeShareSheetExp:p,shareSheetExpEnabled:h,relayEnvironment:h?_:void 0,getClientTrackingParams:(0,W.Z)()})}var te=n(6637),ne=n(499128),ie=n(717615),oe=n(231947),re=n(697247);const ae=(e,t)=>e.reduce(((e,n)=>({...e,[n]:t})),{});function se(e){const{logContextEvent:t}=(0,c.v)(),n=(0,a.ZP)(),[r,s]=(0,i.useState)(!1),[l,v]=(0,i.useState)(null),[y,x]=(0,i.useState)({}),[S]=(0,i.useState)(((e,t)=>"today_article"===e?t.bt("Check out this article on Pinterest!", "Check out this article on Pinterest!", "sendObject.initialTextValue.todayArticle", undefined, true):"")(e.sendType,n)),{showOneToast:E}=(0,K.F9)(),{surface:A}=(0,re.$)(),T=(0,B.Z)(),C=(0,ie.Z)(),{conversationCreate:R}=(0,b.Z5)(),k=(0,b.NG)(),O=(0,i.useRef)();(0,i.useEffect)((()=>{var e;return null===(e=O.current)||void 0===e?void 0:e.focus()}),[]);const D=(n,i)=>{s(!1),e.onMessageSent(),((n,i)=>{const{sharedObject:r}=e,a=r.id;o.Z.increment("web.sharesheet.internal.send",1,{status:"success"}),t({event_type:180,element:276,object_id_str:a,aux_data:{conversation_id:n,pin_id:i}})})(n,i)},j=(e,t)=>{o.Z.increment("web.sharesheet.internal.send",1,{status:"fail"}),x({...y,...ae(e,f)});const n=t.message_detail||t.message;n&&E((({hideToast:e})=>(0,g.jsx)(ne.ZP,{variant:"error",duration:5e3,onHide:e,text:n})))},N=async(t,n,i)=>{const{sharedObject:o,sendType:r}=e,a=o.id,s={emails:n,user_ids:t,text:i,source:w(A)};s[r]=a;const l=te.Z.create("ConversationsResource",s),c=t.length>0?t:n;try{const e=await l.callCreate(),t=e&&e.resource_response.data;R(t),D(t.id,"pin"===r?a:null),x({...y,...ae(c,t.id)})}catch(d){j(c,d)}},L=(n,i)=>{"conversation_share_suggestion"===n.type?((t,n,i)=>{const{sharedObject:o,sendType:r}=e;let a;switch(r){case"pin":a="pinId";break;case"board":a="boardId";break;case"did_it":a="didItId";break;case"user":case"pinner":a="userId"}const s=a?k(t,{text:n,[a]:o.id,source:w(A)},void 0,T):void 0;s&&s.then((()=>{D(t,"pin"===r?o.id:null),x({...y,[t]:t})})).catch((e=>{j([t],e)}))})(n.id,i):"user_share_suggestion"===n.type&&n.username?N([n.id],[],i):N([],[n.email],i),t({event_type:101,component:56,element:276})},{onCreatePincodeClick:M,onShowImport:z,sendType:Z,sharedObject:F,onHide:U,onExternalSend:G,viewType:H,viewParameter:V}=e,W="user"===e.sendType&&(0,oe.q6)(T,e.sharedObject.id,C),$=("board"===e.sendType||"pin"===e.sendType)&&void 0!==e.sharedObject.ownerId&&(0,oe.q6)(T,e.sharedObject.ownerId,C),q=W||$,{checkExperiment:Y}=(0,d.F)(),X=Y("web_sharesheet_resize").anyEnabled,J=X?h:p,Q=X?m:_;return r&&"email"===l?(0,g.jsx)(I,{initialTextValue:S,objectId:F.id,objectType:Z,onCancelDraft:()=>{s(!1),v(null)},onHide:U,onSendMessage:L,width:Q}):(0,g.jsxs)(u.xu,{color:"default",paddingX:J.SHARE_SHEET_PADDING_X,paddingY:J.SHARE_SHEET_PADDING_Y,width:Q,tabIndex:0,ref:O,children:[(0,g.jsx)(ee,{onCreatePincodeClick:M,onEmailIconClick:()=>{s(!0),v("email")},onExternalSend:G,onHide:U,sharedObject:F,isPublisherSharingObject:q,viewType:H,viewParameter:V}),!q&&(0,g.jsxs)(i.Fragment,{children:[(0,g.jsx)(u.xu,{paddingY:1,paddingX:3,children:(0,g.jsx)(u.iz,{})}),(0,g.jsx)(P,{objectAttachment:{type:Z,id:F.id},onHide:U,onSendMessage:L,onShowImportContacts:z,sentHistory:y})]})]})}var le=n(177471);const ce=["facebook","google"];function de(e,t){return"facebook"===e?t.bt("Facebook", "Facebook", " - ", undefined, true):"google"===e?t.bt("Google", "Google", " - ", undefined, true):t.bt("Other", "Other", " - ", undefined, true)}function ue(e,t,n){return"facebook"===e?n.bt("Friends who are on Pinterest", "Friends who are on Pinterest", " - ", undefined, true):"google"===e&&t&&-1!==t.indexOf("@gmail")?t:null}function pe({onBack:e}){const t=(0,a.ZP)(),n=(0,B.Z)(),i=n.isAuth?n.email:null,o=ce.filter((e=>!n.isAuth||!1===n.socialNetwork[e].connected)),r=(0,le.k)();return(0,g.jsx)(u.xu,{paddingX:1,paddingY:2,children:(0,g.jsxs)(u.kC,{gap:{row:0,column:2},direction:"column",children:[(0,g.jsxs)(u.kC,{gap:{row:2,column:0},alignItems:"center",children:[(0,g.jsx)(u.hU,{accessibilityLabel:t.bt("Back", "Back", " - ", undefined, true),icon:"arrow-back",iconColor:"darkGray",onClick:e,size:"md"}),(0,g.jsx)(u.xv,{size:"300",weight:"bold",children:t.bt("Upload contacts from ...", "Upload contacts from...", " - ", undefined, true)})]}),(0,g.jsx)(u.kC,{direction:"column",gap:{row:0,column:4},children:o.map((e=>(0,g.jsx)(u.xu,{paddingX:2,children:(0,g.jsxs)(u.iP,{onTap:()=>(e=>{r.handleConnect(e,!0,Object.freeze({}),t)})(e),children:[(0,g.jsx)(u.xv,{size:"200",children:de(e,t)}),(0,g.jsx)(u.xv,{size:"200",children:ue(e,i,t)})]})},e)))})]})})}var he=n(749049),_e=n(385740);function me({element:e,onCreatePincodeClick:t,onExternalSend:n,onHide:r,sendType:a,sharedObject:l,viewType:p,viewParameter:h,component:_}){const{logContextEvent:m}=(0,c.v)(),[f,v]=(0,i.useState)(!1),{checkExperiment:y}=(0,d.F)(),b=y("web_share_menu_logging").anyEnabled,x=(0,i.useRef)(!1),{viewParameter:P}=(0,_e.SU)();(0,i.useEffect)((()=>{const t=$.y[a];return t||o.Z.increment("social.web.sendObjectWrapper.sendType",void 0,{type:a}),m({event_type:7120,component:b?14121:void 0,object_id_str:l.id,element:b?e:void 0,view_type:p,view_parameter:h,aux_data:b?{invite_object:t}:void 0}),m({event_type:10400,component:_,object_id_str:l.id,element:(0,he.O)(t),view_type:p,view_parameter:P,aux_data:{invite_object:t}}),()=>{b||m({event_type:7121,object_id_str:l.id,view_type:p,view_parameter:h});const e=x.current?7493:7492;m({event_type:e,component:b?14121:void 0,object_id_str:b?l.id:void 0,element:b?13097:void 0,view_type:p,view_parameter:h,aux_data:b?{invite_object:t}:void 0})}}),[]);const w=()=>{v(!0)},S=()=>{v(!1)},E=()=>{x.current=!0},A=()=>{x.current=!0,n&&n()};return f?(0,g.jsx)(pe,{onBack:S}):(0,g.jsx)(u.xu,{overflow:"hidden",rounding:4,zIndex:new u.Ry(s.fe-1),color:"default",children:(0,g.jsx)(se,{onCreatePincodeClick:t,onHide:r,onShowImport:w,onMessageSent:E,onExternalSend:A,sendType:a,sharedObject:l,viewType:p,viewParameter:h})})}},375436:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(207112),o=n(883119),r=n(785893);const a=({text:e})=>(0,r.jsx)(o.xv,{align:"center",size:"100",children:(0,r.jsx)(i.Z,{maxWidthPx:128,maxHeightPx:50,children:e})})},67428:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(883119),o=n(785893);const r=({width:e,marginEnd:t,children:n,isCloseupActionBar:r})=>(0,o.jsx)(i.xu,{alignItems:"center",direction:"column",display:"flex",marginEnd:t?2:0,width:e,marginBottom:r?0:5,children:n})},749049:(e,t,n)=>{n.d(t,{O:()=>i});const i=e=>{switch(e){case 2:return 331;case 3:return 12631;default:return 72}}},116674:(e,t,n)=>{n.d(t,{X:()=>d,f:()=>c});var i=n(667294);function o(e=null,t){switch(t.type){case"REPORT_CONTENT_SHOW":return{id:t.payload.id,isProduct:t.payload.isProduct,isPromoted:t.payload.isPromoted,videoDuration:t.payload.videoDuration,viewParameter:t.payload.viewParameter,viewType:t.payload.viewType,type:t.payload.type};case"REPORT_CONTENT_DISMISS":return null;default:return e}}var r=n(425288),a=n(623568),s=n(785893);const{Provider:l,useHook:c}=(0,r.Z)("ReportData");function d({children:e}){const[t,n]=(0,i.useReducer)(o,null),r=(0,i.useCallback)((()=>n({type:"REPORT_CONTENT_DISMISS"})),[]),c=(0,i.useCallback)(((e,t,i)=>n({type:"REPORT_CONTENT_SHOW",payload:{id:e,isProduct:!1,isPromoted:!1,videoDuration:null,viewParameter:t,viewType:i,type:"aggregatedComment"}})),[]),d=(0,i.useCallback)(((e,t,i)=>n({type:"REPORT_CONTENT_SHOW",payload:{id:e,isProduct:!1,isPromoted:!1,videoDuration:null,viewParameter:t,viewType:i,type:"pin"}})),[]),u=(0,i.useCallback)(((e,t,i)=>{const{id:o,videos:r}=e,s=(0,a.VX)(e),l=(0,a.jL)(e);let c;if((0,a.iR)(r)&&r){const{video_list:e={}}=r,t=e[Object.keys(e)[0]];c=t&&t.duration}n({type:"REPORT_CONTENT_SHOW",payload:{id:o,isProduct:s,isPromoted:l,videoDuration:c,viewParameter:t,viewType:i,type:"pin"}})}),[]),p=(0,i.useMemo)((()=>({reportData:t,dismiss:r,reportComment:c,reportImage:d,reportPin:u})),[t,r,c,d,u]);return(0,s.jsx)(l,{value:p,children:e})}},152028:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(81226),o=n(898781),r=n(883119),a=n(785893);function s({duration:e}){const t=(0,o.ZP)();return(0,a.jsxs)(r.xu,{alignItems:"center",color:"transparentDarkGray",display:"flex",height:24,justifyContent:"center",paddingX:2,rounding:"pill",children:[(0,a.jsx)(r.JO,{accessibilityLabel:t.bt("Video camera icon", "Video camera icon", "Video camera indicator icon for a Pin", undefined, true),color:"light",icon:"video-camera"}),(0,a.jsx)(r.xu,{marginStart:1,children:(0,a.jsx)(r.xv,{color:"inverse",size:"100",lineClamp:1,children:(0,i.Z)(e)})})]})}},926749:(e,t,n)=>{n.d(t,{ZP:()=>S});var i=n(667294),o=n(23279),r=n.n(o),a=n(722767);function s(e){const{eventData:{videoEvent:{videoDuration:t,startTime:n,endTime:i,videoStartTime:o,videoEndTime:r,isAudible:a,height:s,width:l,playbackState:c,quartile:d,quartilePercentValue:u,windowHeight:p,windowWidth:h,viewability:_}},component:m,objectId:f,view:g,viewParameter:v,...y}=e;return{component:m,object_id_str:f,view_type:g,view_parameter:v,aux_data:{...y},event_data:{videoEventData:{videoDuration:t,time:n,endTime:i,videoTime:o,endVideoTime:r,isAudible:a,height:s,width:l,playbackState:c,quartile:d,quartilePercentValue:u,windowHeight:p,windowWidth:h,viewability:_}}}}var l=n(121630),c=n(944546),d=n(407043),u=n(158103),p=n(883119),h=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 m=[0,.25,.5,.75,.95,.97],f=[0,.5,.8,.99,1],g="-64px 0px 0px 0px",v={rootMargin:g,threshold:f},y={rootMargin:g,threshold:c.iM},b=Object.freeze({LOADING:0,PLAYING:1,PAUSED:2,STALLING:3});function x(){return(new Date).getTime()}function P(e){return!!e.volume&&e.volume>0}class w extends i.Component{constructor(e){super(e),_(this,"videoWrapperRef",(0,i.createRef)()),_(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)}})),_(this,"handlePlayheadDown",(({event:e})=>{const{onPlayheadDown:t}=this.props;this.setState({seeking:!0}),t&&t({event:e})})),_(this,"handlePlayheadUp",(({event:e})=>{const{onPlayheadUp:t}=this.props;this.setState({seeking:!1}),t&&t({event:e})})),_(this,"handleLoop",(()=>{this.videoTime=0})),_(this,"handleTimeChange",(e=>{const{seeking:t,ready:n}=this.state;if(!this.currentInterval.videoDuration)return;const i=1e3*e.time,o=function(e,t,n,i){if(e>t)return null;if(n<=0)return null;for(const o of i){const i=o*n;if(e<=i&&t>i)return o}return null}(this.videoTime,i,this.currentInterval.videoDuration,m);if("number"==typeof o&&this.props.playing&&!t&&n){const e=x();this.logVideoEvent(6906,{...this.currentInterval,startTime:e,endTime:e,videoStartTime:0,videoEndTime:0,quartile:Math.floor(4*o),quartilePercentValue:o})}this.videoTime=i,this.props.onTimeChange&&this.props.onTimeChange(e)})),_(this,"handleDurationChange",(e=>{this.currentInterval.videoDuration=1e3*e.duration,this.props.onDurationChange&&this.props.onDurationChange(e)})),_(this,"handleReady",(e=>{const{ready:t}=this.state;t||this.setState({ready:!0}),this.props.onReady&&this.props.onReady(e)})),_(this,"handleEnded",(e=>{this.logFourthQuartileEvent(),this.props.loop&&(this.startNewInterval(),this.currentInterval.videoStartTime=0),this.props.onEnded&&this.props.onEnded(e)})),_(this,"handleVisibilityChange",((e,t)=>{if(0===e.length)return;const n=e.slice(-1)[0],i=function(e,t){for(let n=0;n<t.length;n+=1){const i=t[n],o=t[n+1];if(null==o)return i;if(i<=e&&e<o)return i}return null}(Number.parseFloat(n.intersectionRatio.toFixed(2)),f);"number"==typeof i&&(this.visible=i>=.5),null==i||i===this.currentInterval.viewability||this.fullscreen||(0===i?this.startNewInterval({viewability:i,playbackState:b.PAUSED}):this.startNewInterval({viewability:i}))})),_(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})})),_(this,"handleClose",(()=>{this.startNewInterval()})),_(this,"handleContextMenu",(e=>{e.preventDefault()})),this.state={ready:!1,seeking:!1};const t=x();this.handleWindowResize=r()(this.handleWindowResize,1e3),this.currentInterval={videoDuration:0,startTime:t,endTime:t,videoStartTime:0,videoEndTime:0,isAudible:P(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={};P(e)&&!P(this.props)?n.isAudible=!1:!P(e)&&P(this.props)&&(n.isAudible=!0);const i=this.getPlaybackState(this.props,this.state);this.getPlaybackState(e,t)!==i&&(n.playbackState=i),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:i,logContextEvent:o}=this.props,{height:r,width:a,windowHeight:l,windowWidth:c,viewability:d,...u}=t;if(null!=r&&null!=a&&null!=l&&null!=c&&null!=d){const t={...u,height:r,width:a,windowHeight:l,windowWidth:c,viewability:n||d};o({event_type:e,...s({...i,view:this.fullscreen?108:i.view,eventData:{videoEvent:t}})})}}logFourthQuartileEvent(){const e=x();this.logVideoEvent(6906,{...this.currentInterval,startTime:e,endTime:e,videoStartTime:0,videoEndTime:0,quartile:4,quartilePercentValue:1})}startNewInterval(e){const t=x();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:i,accessibilityPlayLabel:o,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:s,aspectRatio:c,backgroundColor:d,captions:_,contextLogData:m,controls:f,cropHeight:g,hlsConfig:b,inAdsDesktopVideoExperiment:x,isAutoPlay:P,loop:w,objectFit:S,onLoadedChange:E,onControlsPause:A,onControlsPlay:T,onSeek:I,onVolumeChange:C,playbackRate:R,playing:k,playsInline:O,poster:D,preload:j,rootMargin:N,src:L,surface:M,videoStartTime:z,volume:B}=this.props,{seeking:Z}=this.state,F=x?y:v;return void 0!==N&&(F.rootMargin=M?(0,l.e)(M):N),(0,h.jsx)(a.Z,{options:F,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:i,accessibilityPlayLabel:o,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:s,aspectRatio:g?236/g:c,backgroundColor:d,captions:_,contextLogData:m,controls:f,hlsConfig:b,isAutoPlay:P,loop:w,objectFit:S,onDurationChange:this.handleDurationChange,onEnded:this.handleEnded,onFullscreenChange:this.handleFullscreenChange,onLoadedChange:E,onLoop:this.handleLoop,onControlsPause:A,onControlsPlay:T,onPlayheadDown:this.handlePlayheadDown,onPlayheadUp:this.handlePlayheadUp,onReady:this.handleReady,onSeek:I,onTimeChange:this.handleTimeChange,onVolumeChange:C,playbackRate:R,playing:!Z&&k,onPlay:()=>{},onPlayError:()=>{},playsInline:O,poster:D,preload:j,src:L,videoStartTime:z,visible:this.visible,volume:B})})})}}function S(e){const{logContextEvent:t}=(0,d.v)();return(0,h.jsx)(w,{...e,logContextEvent:t})}_(w,"defaultProps",p.nk.defaultProps)},158103:(e,t,n)=>{n.r(t),n.d(t,{VideoWrapper:()=>P,default:()=>w,getPlaylistSourceSrc:()=>x});var i=n(667294),o=n(19121),r=n(965900),a=n(407043),s=n(773285),l=n(226347),c=n(780280),d=n(883119),u=n(969315),p=n(179888),h=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}function m(e,t){if(!e||void 0===e)return"undefined";if("string"==typeof e){let n=e;if(t){const i="control"===t?"v3.pinimg.com":"v2.pinimg.com";n=e.replace("v.pinimg.com",i)}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 f extends i.Component{constructor(...e){super(...e),_(this,"state",{canPlayVideo:!1,playbackState:p.Cy.DEFAULT}),_(this,"errorRetryCount",2),_(this,"hasSegmentStarted",!1),_(this,"hasPlaybackStarted",!1),_(this,"hasVideoSessionStarted",!1),_(this,"hasVideoSessionEnded",!1),_(this,"lastStallTime",null),_(this,"lastPauseTime",null),_(this,"logSessionStartOnNextPlay",!1),_(this,"playerId",""),_(this,"videoSessionId",""),_(this,"videoVisibleTime",null),_(this,"playbackPerformance",{canPlayTime:null,detailedErrors:"",errorCode:0,errorName:"",errorReason:"",hasFatalError:!1,loadStartTime:null,numberOfStalls:0,numberOfSeeks:0,playbackStartTimestamp:null,segments:[],srcString:m(this.props.src,this.props.quicExpGroup),totalStallDurationMs:0,totalPauseDurationMs:0}),_(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"}))})),_(this,"componentDidUpdate",(e=>{const{playing:t,visible:n,appInFocus:i}=this.props;e.appInFocus&&!i&&(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&&i&&this.logSessionStartOnNextPlay&&(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(p.DR,{initiator:"update"}),this.logSessionStartOnNextPlay=!1)})),_(this,"addSegment",(()=>{const{canPlayTime:e,loadStartTime:t,segments:n,srcString:i}=this.playbackPerformance;let o=-1;e&&t&&0===n.length&&(o=e>t?e-t:0);const r=this.videoPlayerRef&&this.videoPlayerRef.video,a={indicatedKbps:-1,duration:r&&r.duration*p.gJ||-1,lastStartPlayTime:null,level:-1,numServerAddressChange:-1,observedKbps:-1,playbackStartDate:null,serverAddress:"",sourceWidth:-1,sourceHeight:-1,startupTimeMs:o,switchBitrateKbps:-1,uri:i,viewportWidth:r&&r.clientWidth||-1,viewportHeight:r&&r.clientHeight||-1,watchedDurationMs:0};n.push(a)})),_(this,"getCurrentVideoTime",(()=>this.videoPlayerRef&&this.videoPlayerRef.video?this.videoPlayerRef.video.currentTime*p.gJ:0)),_(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})),_(this,"handleCanPlayVideo",(e=>{const{contextLogData:t={},onReady:n,playing:i}=this.props,{is_closeup_video:o=!1}=t,{canPlayVideo:r}=this.state;(0,u.tE)("handleCanPlayVideo",!1,o,{firstCanPlayEvent:!r,playing:i}),this.playbackPerformance.hasFatalError=!1,r||(this.playbackPerformance.canPlayTime=new Date),this.setState({canPlayVideo:!0}),n&&n(e)})),_(this,"handleEnded",(e=>{const{loop:t,onEnded:n}=this.props,{segments:i}=this.playbackPerformance,o=i&&i[i.length-1];t&&this.videoPlayerRef&&this.videoPlayerRef.video?(this.updateWatchDurationForCurrentSegment(),o&&(o.lastStartPlayTime=0),this.hasSegmentStarted=!1):t||this.logPlaybackPerformance(p.$f,{initiator:"videoEnded",loop:t}),this.setState({playbackState:p.Cy.ENDED}),n&&n(e)})),_(this,"handleError",(()=>{var e,t,n,i,o,r,a,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===(i=d.error)||void 0===i||null===(o=i.message)||void 0===o?void 0:o.slice(0,100))||"unknown",this.playbackPerformance.errorReason=(null==d||null===(r=d.error)||void 0===r||null===(a=r.message)||void 0===a?void 0:a.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})})),_(this,"handleLoadedMetadata",(()=>{this.setState({playbackState:p.Cy.LOADED_METADATA})})),_(this,"handleLoadStart",(()=>{this.playbackPerformance.loadStartTime=new Date,this.setState({playbackState:p.Cy.LOAD_START})})),_(this,"handleLoadedData",(()=>{this.setState({playbackState:p.Cy.LOADED_DATA})})),_(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)})),_(this,"handleUserPause",(e=>{const{onControlsPause:t}=this.props;this.lastPauseTime=new Date,t&&t(e)})),_(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})})),_(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})})),_(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}))})),_(this,"handleTimeUpdate",(e=>{const{onTimeChange:t}=this.props;t&&t(e),this.state.playbackState===p.Cy.PLAYING&&(this.updateWatchDurationForCurrentSegment(),this.setLastSegmentStartPlayTime())})),_(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]})),_(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",(()=>{if(null!==this.lastStallTime){const e=this.lastStallTime;this.playbackPerformance.totalStallDurationMs+=new Date-e,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,i=this.getCurrentVideoTime();if(t&&null!==n&&"number"==typeof i&&"number"==typeof n){const e=i-n;e>0&&(t.watchedDurationMs+=e,t.lastStartPlayTime=null)}})),_(this,"logPlaybackPerformance",((e,t)=>{const{contextLogData:n={},userId:i,isAutoPlay:o,logContextEvent:r}=this.props,{is_closeup_video:a=!1}=n,{canPlayTime:s,detailedErrors:l,errorCode:c,errorName:d,errorReason:h,hasFatalError:_,loadStartTime:m,totalPauseDurationMs:f,totalStallDurationMs:g,numberOfStalls:v,numberOfSeeks:y,playbackStartTimestamp:b,segments:x,srcString:P}=this.playbackPerformance,w=this.videoPlayerRef&&this.videoPlayerRef.video,S=e===p.DR,E=S&&!this.hasVideoSessionStarted,A=!S&&!this.hasVideoSessionEnded&&this.hasVideoSessionStarted;if(w&&(E||A)){var T;let E=-1;s&&m&&(E=s>m?s-m:0);let A=-1;s&&this.videoVisibleTime&&(A=s>this.videoVisibleTime?s-this.videoVisibleTime:0),S&&(this.videoSessionId=(0,p.Y7)(i),this.playerId=this.playerId||(0,p.EB)());const I=this.getVideoResourceTiming(),C={averageVideoKbps:-1,autoplaying:o,detailedErrors:l,downloadedKiloBytes:"number"==typeof(null==I?void 0:I.decodedBodySize)&&I.decodedBodySize/p.Fm||0,errorCode:c,errorName:d,errorReason:h,fatalError:_,isCellular:!1,nativeVideoDurationMs:w.duration*p.gJ||-1,numberOfStalls:v,numberOfSeeks:y,overallPausedDurationMs:f,overallBufferDurationMs:g,overallWatchedDurationMs:-1,rebufferRate:-1,playbackSessionId:this.videoSessionId,playbackStartTimestamp:b||-1,segments:[],sessionMark:e,screenPixelScale:null!==(T=window)&&void 0!==T&&T.devicePixelRatio?window.devicePixelRatio:-1,startupPlayerWidth:w.clientWidth,startupPlayerHeight:w.clientHeight,startupTimeMs:E,startupLatencyMs:A,startupVariantKbps:-1,startupVariantWatchedDurationMs:-1,startupVariantWidth:w.videoWidth,startupVariantHeight:w.videoHeight,videoUrl:P};if(!S){this.updateWatchDurationForCurrentSegment(),this.updateStallDuration();const e=x.reduce(((e,t)=>e+(t.watchedDurationMs||0)),0);C.overallWatchedDurationMs=e,C.startupVariantWatchedDurationMs=e,C.segments=this.playbackPerformance.segments,0===e?(C.errorName="invalid_watch_duration",C.rebufferRate=-1):C.rebufferRate=g/e}(0,u.ZP)(C,!1,a,{playbackState:this.state.playbackState,...t});const{view:R,viewParameter:k,component:O,element:D,objectId:j,...N}=n;r({event_type:3606,event_data:{videoPerformanceData:C},view_type:R,view_parameter:k,component:O,element:D,object_id_str:j,aux_data:{...N,is_closeup_video:a,playback_session_id:this.videoSessionId}}),S?(this.hasVideoSessionStarted=!0,this.hasVideoSessionEnded=!1):this.resetPlaybackMetrics(),(0,u.tE)(S?"sessionStart":"sessionEnd",!1,a,{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:i,accessibilityPlayLabel:o,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:a,aspectRatio:s,captions:l,controls:c,loop:u,loopOverride:p,objectFit:_,onDurationChange:f,onFullscreenChange:g,onLoadedChange:v,onControlsPlay:y,onPlayheadDown:b,onPlayheadUp:x,onSeek:P,onVolumeChange:w,playbackRate:S,playing:E,playsInline:A,poster:T,preload:I,src:C,videoStartTime:R,volume:k}=this.props,{canPlayVideo:O}=this.state;return(0,h.jsx)(d.nk,{autoplay:O&&E,accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:i,accessibilityPlayLabel:o,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:a,aspectRatio:s,captions:l,controls:c,loop:void 0===p?u:p,objectFit:_,onDurationChange:f,onEnded:this.handleEnded,onError:this.handleError,onFullscreenChange:g,onLoadedChange:v,onLoadStart:this.handleLoadStart,onControlsPause:this.handleUserPause,onControlsPlay:y,onPlaying:this.handlePlaying,onPlayheadDown:b,onPlayheadUp:x,onReady:this.handleCanPlayVideo,onSeek:P,onSeeking:this.handleSeeking,onStalled:this.handleStalled,onTimeChange:this.handleTimeUpdate,onVolumeChange:w,onWaiting:this.handleStalled,playbackRate:S,onPlay:()=>{},onPlayError:()=>{},playing:O&&E,playsInline:A,poster:T,preload:I,ref:this.setVideoPlayerRef,src:m(C,this.props.quicExpGroup),startTime:R||void 0,volume:k})}}const g=(0,i.memo)((function(e){const{logContextEvent:t}=(0,a.v)(),{country:n,isAuthenticated:i,isBot:d,isSocialBot:p,unauthId:_,userAgent:m}=(0,c.B)(),{browserName:g,browserVersion:v,isMobile:y}=m,{contextLogData:b={}}=e,{is_closeup_video:x=!1,view:P,viewParameter:w}=b,{appUI:{appInFocus:S}}=(0,r.I)(),{checkExperiment:E}=(0,s.F)(),{updateSeekTime:A}=(0,l.RC)();let T=null;i&&(T=E("web_video_quic").group.length?E("web_video_quic").group:null);const I=(0,o.Z)(),C={browserName:g,browserVersion:v,country:n,isAuthenticated:i,isBot:d,is_closeup_video:x,isMobile:y,isSocialBot:p,view:P,viewParameter:w};return(0,u.r$)(C),(0,h.jsx)(f,{...e,userId:I.id||_,appInFocus:S,quicExpGroup:T,logContextEvent:t,setSeekTime:A})}));var v=n(562559),y=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 x=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 P extends i.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:i}=this.props;i&&(i({event:e}),this.videoPlayerRef&&this.videoPlayerRef.video&&t&&(this.videoPlayerRef.video.play(),n&&n()))}));const t=x(e.src);this.state={useHlsVideo:!e.preferMp4&&!(0,y.G6)(e.requestContext.userAgent.browserName)&&!!t}}render(){const{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:i,accessibilityPlayLabel:o,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:a,aspectRatio:s,appInFocus:l,backgroundColor:c,captions:d,contextLogData:u,controls:p,hlsConfig:_,isAutoPlay:m,loop:f,objectFit:y,onDurationChange:b,onEnded:P,onFullscreenChange:w,onLoadedChange:S,onControlsPause:E,onControlsPlay:A,onPlayheadDown:T,onPlayheadUp:I,onReady:C,onSeek:R,onTimeChange:k,onVolumeChange:O,playbackRate:D,playing:j,playsInline:N,poster:L,preferMp4:M,preload:z,src:B,videoStartTime:Z,visible:F,volume:U}=this.props,{useHlsVideo:G}=this.state,H=x(B),V={..._,startPosition:Z||-1},W=!P&&f;return G&&H?(0,h.jsx)(v.Z,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:i,accessibilityPlayLabel:o,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:a,aspectRatio:s,appInFocus:l,backgroundColor:c,captions:d,contextLogData:u,controls:p,hlsConfig:V,isAutoPlay:m,loop:f,loopOverride:W,onDurationChange:b,onEnded:this.handleOnEnded,onFullscreenChange:w,onLoadedChange:S,onControlsPause:E,onControlsPlay:A,onPlayheadDown:T,onPlayheadUp:I,onReady:C,onSeek:R,onTimeChange:k,onVolumeChange:O,playbackRate:D,onPlay:()=>{},onPlayError:()=>{},playing:j,playsInline:N,poster:L,preload:z,setVideoRef:this.setVideoPlayerRef,src:H,visible:F,volume:U}):(0,h.jsx)(g,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:i,accessibilityPlayLabel:o,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:a,aspectRatio:s,captions:d,contextLogData:u,controls:p,isAutoPlay:m,loop:f,loopOverride:W,objectFit:y,onDurationChange:b,onEnded:this.handleOnEnded,onFullscreenChange:w,onLoadedChange:S,onControlsPause:E,onControlsPlay:A,onPlayheadDown:T,onPlayheadUp:I,onReady:C,onSeek:R,onTimeChange:k,onVolumeChange:O,playbackRate:D,onPlay:()=>{},onPlayError:()=>{},playing:j,playsInline:N,poster:L,preload:z,setVideoRef:this.setVideoPlayerRef,src:M?B:H||B,videoStartTime:Z,visible:F,volume:U})}}function w(e){const{appUI:{appInFocus:t}}=(0,r.I)(),n=(0,c.B)();return(0,h.jsx)(P,{...e,appInFocus:t,requestContext:n})}},944546:(e,t,n)=>{n.d(t,{HJ:()=>o,VS:()=>i,iM:()=>r});const i=2,o="V_HLSV3_MOBILE",r=[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]},224525:(e,t,n)=>{function i(e,t){return t?`${e}?${new URLSearchParams(t).toString()}`:e}function o(e){return i("/admin/",e)}function r(e){return i("/admin/oauth/logout/",e)}function a(e){return i("/today/",e)}n.d(t,{HF:()=>o,Kn:()=>r,tG:()=>a})},395164:(e,t,n)=>{n.d(t,{T:()=>s,Z:()=>l});var i=n(635240),o=n(226198),r=n(314880);const a=[];function s(e){let t;try{t=JSON.stringify({errorObj:e})}catch(c){t=JSON.stringify({errorObj:{message:e.message,name:"logToServer stringify exception"}})}const n=(s={report_context:JSON.stringify({current_url:window.location.href,client_version:(0,i.Z)()}),report_data:t},Object.keys(s).map((e=>e+"="+encodeURIComponent(s[e]))).join("&"));var s;const l=window.btoa(n);if(-1===a.indexOf(l)){const e=new XMLHttpRequest;e.open("post","/_/_/logClientError/",!0),e.setRequestHeader("Content-type","application/x-www-form-urlencoded");const t=(0,r.H)();t&&e.setRequestHeader("X-Pinterest-PWS-Handler",t),e.setRequestHeader("X-CSRFToken",function(e){const t=("; "+document.cookie).split("; "+e.name+"=");return 2===t.length?t.pop().split(";").shift():""}(o.fS)),e.send(n),a.push(l)}a.length>100&&a.shift()}function l(){window.addEventListener("error",(e=>{const t=e.error||{};s({extraData:t.extraData,name:t.name,message:t.message||e.message,stack:t.stack,filename:e.filename,line:e.lineno,column:e.colno})})),window.addEventListener("unhandledrejection",(e=>{var t,n,i,o,r;if(!(e&&e.reason&&e.reason instanceof Error))return;const{reason:a}=e,l="string"==typeof a.message?a.message:String(a);s({name:null!==(t=a.name)&&void 0!==t?t:"unhandledrejection",message:l,message_detail:a.message_detail,original_message:a.original_message,stack:a.stack,filename:a.fileName,line:null!==(n=null!==(i=a.lineno)&&void 0!==i?i:a.line)&&void 0!==n?n:a.lineNumber,column:null!==(o=null!==(r=a.column)&&void 0!==r?r:a.colno)&&void 0!==o?o:a.columnNumber})}))}},314880:(e,t,n)=>{n.d(t,{H:()=>o,V:()=>r});let i=null;function o(){return i}function r(e){i=e}},610977:(e,t,n)=>{n.d(t,{DC:()=>r,dV:()=>i,gD:()=>o,go:()=>a});const i="__PWS_ROOT__",o="__PWS_DATA__",r="__PWS_ERROR__",a="__GRAPHQL_DATA__"},635240:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(610977);let o="";function r(){return function(){if(o.length>0)return o;{const e=document.getElementById(i.gD);if(!e)throw new Error(`Unable to retrieve appVersion because #${i.gD} was not found in the DOM.`);const t=e.textContent.indexOf('"appVersion"');if(t>-1){const n=t+14,i=t+21;return o=e.textContent.slice(n,i),o}throw new Error("Unable to retrieve appVersion because appVersion property was not found in PWS DATA.")}}()}},464228:(e,t,n)=>{n.d(t,{P:()=>r,Z:()=>a});var i=n(667294);const o=(0,i.createContext)();function r(){return(0,i.useContext)(o)}const a=o},373897:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i},e.exports.__esModule=!0,e.exports.default=e.exports},163405:(e,t,n)=>{var i=n(373897);e.exports=function(e){if(Array.isArray(e))return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},474704:(e,t,n)=>{var i=n(386116);e.exports=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=i(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}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 a,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,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}},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 i=n(238416);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(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 i=n(163405),o=n(379498),r=n(386116),a=n(742281);e.exports=function(e){return i(e)||o(e)||r(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},386116:(e,t,n)=>{var i=n(373897);e.exports=function(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},204942:(e,t,n)=>{function i(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:()=>i})},601413:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(204942);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}}}]);
//# sourceMappingURL=https://sm.pinimg.com/webapp/AuthDesktopHomePage.en_AU-978dcb73c0901e76.mjs.map