(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[39921,51879,72430,24725,52555,82492,53857,89627,31340,8575,66886,44722],{361600:e=>{var t,i,n,a,r,o,s,l,d={fragment:{argumentDefinitions:[t={defaultValue:null,kind:"LocalArgument",name:"inviteCode"},i={defaultValue:null,kind:"LocalArgument",name:"inviteType"},n={defaultValue:null,kind:"LocalArgument",name:"objectId"}],kind:"Fragment",metadata:null,name:"AllShareOptionsUtilityMutation",selections:[{alias:null,args:a=[{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:[o={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:[i,t,n],kind:"Operation",name:"AllShareOptionsUtilityMutation",selections:[{alias:null,args:a,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:[o,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:"1705ed8db84c79dc12b83cafd1757686fa888571bbecd699295d011693ddd4cf",metadata:{},name:"AllShareOptionsUtilityMutation",operationKind:"mutation",text:null}};d.hash="7e73aab163ac599c2451f08566f2eb15",e.exports=d},865107:e=>{var t,i,n,a,r={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"inviteType"},{defaultValue:null,kind:"LocalArgument",name:"objectId"}],kind:"Fragment",metadata:null,name:"AllShareOptionsUtility_CreateExternalInviteGraphQLQuery",selections:[{alias:null,args:i=[{kind:"Variable",name:"inviteType",variableName:"inviteType"},{kind:"Variable",name:"objectId",variableName:"objectId"}],concreteType:null,kind:"LinkedField",name:"v3InviteUserExternalQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a={alias:null,args:null,concreteType:"InviteUserExternal",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"inviteCode",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"inviteUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null}],storageKey:null}],type:"V3InviteUserExternal",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"AllShareOptionsUtility_CreateExternalInviteGraphQLQuery",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3InviteUserExternalQuery",plural:!1,selections:[n,{kind:"InlineFragment",selections:[a],type:"V3InviteUserExternal",abstractKey:null}],storageKey:null}]},params:{id:"6312848b4bb08588587683a04a42e4d0333e2e986fcab0cef4ed200786d3f5d9",metadata:{},name:"AllShareOptionsUtility_CreateExternalInviteGraphQLQuery",operationKind:"query",text:null}};r.hash="bc8b32c56a4a58de585c9a05ae69bd9c",e.exports=r},7745:e=>{var t,i,n,a,r,o,s,l={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"invite_code"}],kind:"Fragment",metadata:null,name:"PinCardSharedHeaderQuery",selections:[{alias:null,args:i=[{kind:"Variable",name:"inviteCode",variableName:"invite_code"}],concreteType:null,kind:"LinkedField",name:"v3GetInviteCodeQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"InviteCode",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"sender",plural:!1,selections:[a={alias:"first_name",args:null,kind:"ScalarField",name:"firstName",storageKey:null},r={alias:"is_default_image",args:null,kind:"ScalarField",name:"isDefaultImage",storageKey:null},o={alias:"image_medium_url",args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null}],storageKey:null}],storageKey:null}],type:"InviteCodeResponse",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"PinCardSharedHeaderQuery",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3GetInviteCodeQuery",plural:!1,selections:[n,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"InviteCode",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"sender",plural:!1,selections:[a,r,o,s={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},s],storageKey:null}],type:"InviteCodeResponse",abstractKey:null}],storageKey:null}]},params:{id:"6ecc0f5ef5b300806765351890d4c30338f4cba0f2ed6262aebb971f8d13cedd",metadata:{},name:"PinCardSharedHeaderQuery",operationKind:"query",text:null}};l.hash="6113bb3593481961950c5053449014f3",e.exports=l},906587:e=>{var t,i,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinRecipe_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:'images(spec:"474x")'},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"diets",storageKey:null},{alias:null,args:null,concreteType:"CookTimes",kind:"LinkedField",name:"cookTimes",plural:!1,selections:[{alias:null,args:null,concreteType:"CookTime",kind:"LinkedField",name:"cook",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"m",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"h",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CookTime",kind:"LinkedField",name:"total",plural:!1,selections:t,storageKey:null}],storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,concreteType:"CategorizedIngredientsMetadata",kind:"LinkedField",name:"categorizedIngredients",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"category",storageKey:null},{alias:null,args:null,concreteType:"ParsedIngredientMetadata",kind:"LinkedField",name:"ingredients",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"amt",storageKey:null},i],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ServingsSummary",kind:"LinkedField",name:"servingsSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"summary",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};n.hash="72951c99039e6492a3eb8e9fcb5a22c3",e.exports=n},276667:e=>{var t,i,n,a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"SeeMoreButton_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[t={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"privacy",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[i={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"pinTitle",storageKey:null}],storageKey:null}],storageKey:null},i,{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},n,{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSmallUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageLargeUrl",storageKey:null}],storageKey:null},t,{args:null,kind:"FragmentSpread",name:"VaseSection_pin"}],type:"Pin",abstractKey:null};a.hash="64effb4f1e63deaf1d53b77187d996de",e.exports=a},12617:e=>{var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"UnauthDesktopContextMenu_pin",selections:[{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:t,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"originPinner",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null},{alias:null,args:null,concreteType:"SeoBreadcrumbs",kind:"LinkedField",name:"seoBreadcrumbs",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"usePinImagesFragment_pin"}],type:"Pin",abstractKey:null};i.hash="6cc486603fe4bb19b18741c21346a49b",e.exports=i},167074:e=>{var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"UnauthMobileContextMenu_pin",selections:[{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:t,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"originPinner",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null},{alias:null,args:null,concreteType:"SeoBreadcrumbs",kind:"LinkedField",name:"seoBreadcrumbs",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{args:null,kind:"FragmentSpread",name:"usePinImagesFragment_pin"}],type:"Pin",abstractKey:null};i.hash="74f28c48f3a5ddb4a53f101389981c63",e.exports=i},85934:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VaseAnnotations_pin",selections:[{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"useAnnotationsWithLinksFragment_pin"}],type:"Pin",abstractKey:null,hash:"594237c2ea6ccfb8bbc0e3e8c62cac9f"};e.exports=t},877821:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VaseSection_pin",selections:[{args:null,kind:"FragmentSpread",name:"VaseAnnotations_pin"}],type:"Pin",abstractKey:null,hash:"5645b1c5850647c98e4d2fefbb484bf4"};e.exports=t},569772:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useAnnotationsWithLinksFragment_pin",selections:[{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,concreteType:"AnnotationsWithLinks",kind:"LinkedField",name:"annotationsWithLinksArray",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null,hash:"35075da6e1f4b526ac4314727015c44d"};e.exports=t},96795:e=>{var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"usePinImagesFragment_pin",selections:[{alias:"imageSpec_60x60",args:[{kind:"Literal",name:"spec",value:"60x60"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:'images(spec:"60x60")'},{alias:"imageSpec_136x136",args:[{kind:"Literal",name:"spec",value:"136x136"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"136x136")'},{alias:"imageSpec_170x",args:[{kind:"Literal",name:"spec",value:"170x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"170x")'},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"236x")'},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"474x")'},{alias:"imageSpec_564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"564x")'},{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"736x")'},{alias:"imageSpec_600x315",args:[{kind:"Literal",name:"spec",value:"600x315"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"600x315")'},{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"orig")'}],type:"Pin",abstractKey:null};i.hash="8dd4c9c753d2a67c0606dfff23b820e9",e.exports=i},110767:e=>{var t,i,n,a,r,o,s={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"pinId"}],kind:"Fragment",metadata:null,name:"useUnauthContextMenuQuery",selections:[{alias:null,args:i=[{kind:"Variable",name:"pin",variableName:"pinId"}],concreteType:null,kind:"LinkedField",name:"v3GetPinQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"data",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"UnauthDesktopContextMenu_pin"},{args:null,kind:"FragmentSpread",name:"UnauthMobileContextMenu_pin"}],storageKey:null}],type:"V3GetPin",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"useUnauthContextMenuQuery",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3GetPinQuery",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:a=[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:a,storageKey:null},n],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"originPinner",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null},{alias:null,args:null,concreteType:"SeoBreadcrumbs",kind:"LinkedField",name:"seoBreadcrumbs",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}],storageKey:null},{alias:"imageSpec_60x60",args:[{kind:"Literal",name:"spec",value:"60x60"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o=[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},r,{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:'images(spec:"60x60")'},{alias:"imageSpec_136x136",args:[{kind:"Literal",name:"spec",value:"136x136"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"136x136")'},{alias:"imageSpec_170x",args:[{kind:"Literal",name:"spec",value:"170x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"170x")'},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"236x")'},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"474x")'},{alias:"imageSpec_564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"564x")'},{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"736x")'},{alias:"imageSpec_600x315",args:[{kind:"Literal",name:"spec",value:"600x315"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"600x315")'},{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"orig")'},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},n],storageKey:null}],type:"V3GetPin",abstractKey:null}],storageKey:null}]},params:{id:"a3c7af73694bf4bca337151ae03a4ab0cd268d45aad7d6a29c9cab3ffedebaa3",metadata:{},name:"useUnauthContextMenuQuery",operationKind:"query",text:null}};s.hash="28d48aeed76d97d5b2fc59af2e75669f",e.exports=s},701305:e=>{var t=[],i=[];function n(e,t,i,a){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,o=r.call(e);if(o!=r.call(t))return!1;switch(o){case"[object String]":return e==String(t);case"[object Number]":return!isNaN(e)&&!isNaN(t)&&e==Number(t);case"[object Date]":case"[object Boolean]":return+e==+t;case"[object RegExp]":return e.source==t.source&&e.global==t.global&&e.multiline==t.multiline&&e.ignoreCase==t.ignoreCase}for(var s=i.length;s--;)if(i[s]==e)return a[s]==t;i.push(e),a.push(t);var l=0;if("[object Array]"===o){if((l=e.length)!==t.length)return!1;for(;l--;)if(!n(e[l],t[l],i,a))return!1}else{if(e.constructor!==t.constructor)return!1;if(e.hasOwnProperty("valueOf")&&t.hasOwnProperty("valueOf"))return e.valueOf()==t.valueOf();var d=Object.keys(e);if(d.length!=Object.keys(t).length)return!1;for(var c=0;c<d.length;c++)if(!n(e[d[c]],t[d[c]],i,a))return!1}return i.pop(),a.pop(),!0}e.exports=function(e,a){var r=t.length?t.pop():[],o=i.length?i.pop():[],s=n(e,a,r,o);return r.length=0,o.length=0,t.push(r),i.push(o),s}},60139:e=>{function t(e){return function(){return e}}var i=function(){};i.thatReturns=t,i.thatReturnsFalse=t(!1),i.thatReturnsTrue=t(!0),i.thatReturnsNull=t(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},663620:(e,t,i)=>{var n=i(60139);e.exports=n},301989:(e,t,i)=>{var n=i(751789),a=i(780401),r=i(657667),o=i(521327),s=i(281866);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=a,l.prototype.get=r,l.prototype.has=o,l.prototype.set=s,e.exports=l},738407:(e,t,i)=>{var n=i(327040),a=i(514125),r=i(882117),o=i(567518),s=i(654705);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=a,l.prototype.get=r,l.prototype.has=o,l.prototype.set=s,e.exports=l},883369:(e,t,i)=>{var n=i(924785),a=i(611285),r=i(396e3),o=i(349916),s=i(195265);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=a,l.prototype.get=r,l.prototype.has=o,l.prototype.set=s,e.exports=l},288668:(e,t,i)=>{var n=i(883369),a=i(90619),r=i(572385);function o(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new n;++t<i;)this.add(e[t])}o.prototype.add=o.prototype.push=a,o.prototype.has=r,e.exports=o},646384:(e,t,i)=>{var n=i(738407),a=i(737465),r=i(963779),o=i(267599),s=i(744758),l=i(234309);function d(e){var t=this.__data__=new n(e);this.size=t.size}d.prototype.clear=a,d.prototype.delete=r,d.prototype.get=o,d.prototype.has=s,d.prototype.set=l,e.exports=d},611149:(e,t,i)=>{var n=i(555639).Uint8Array;e.exports=n},896874:e=>{e.exports=function(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}},477412:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e}},234963:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length,a=0,r=[];++i<n;){var o=e[i];t(o,i,e)&&(r[a++]=o)}return r}},14636:(e,t,i)=>{var n=i(422545),a=i(135694),r=i(701469),o=i(644144),s=i(565776),l=i(936719),d=Object.prototype.hasOwnProperty;e.exports=function(e,t){var i=r(e),c=!i&&a(e),u=!i&&!c&&o(e),p=!i&&!c&&!u&&l(e),h=i||c||u||p,m=h?n(e.length,String):[],_=m.length;for(var g in e)!t&&!d.call(e,g)||h&&("length"==g||u&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,_))||m.push(g);return m}},862488:e=>{e.exports=function(e,t){for(var i=-1,n=t.length,a=e.length;++i<n;)e[a+i]=t[i];return e}},282908:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}},286556:(e,t,i)=>{var n=i(789465),a=i(977813);e.exports=function(e,t,i){(void 0!==i&&!a(e[t],i)||void 0===i&&!(t in e))&&n(e,t,i)}},234865:(e,t,i)=>{var n=i(789465),a=i(977813),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,i){var o=e[t];r.call(e,t)&&a(o,i)&&(void 0!==i||t in e)||n(e,t,i)}},218470:(e,t,i)=>{var n=i(977813);e.exports=function(e,t){for(var i=e.length;i--;)if(n(e[i][0],t))return i;return-1}},744037:(e,t,i)=>{var n=i(698363),a=i(3674);e.exports=function(e,t){return e&&n(t,a(t),e)}},163886:(e,t,i)=>{var n=i(698363),a=i(481704);e.exports=function(e,t){return e&&n(t,a(t),e)}},789465:(e,t,i)=>{var n=i(538777);e.exports=function(e,t,i){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}},285990:(e,t,i)=>{var n=i(646384),a=i(477412),r=i(234865),o=i(744037),s=i(163886),l=i(364626),d=i(200278),c=i(318805),u=i(201911),p=i(458234),h=i(946904),m=i(664160),_=i(43824),g=i(529148),v=i(738517),y=i(701469),f=i(644144),b=i(356688),x=i(513218),P=i(472928),w=i(3674),S=i(481704),k="[object Arguments]",T="[object Function]",I="[object Object]",A={};A[k]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[I]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[T]=A["[object WeakMap]"]=!1,e.exports=function e(t,i,C,j,E,D){var O,R=1&i,L=2&i,N=4&i;if(C&&(O=E?C(t,j,E,D):C(t)),void 0!==O)return O;if(!x(t))return t;var M=y(t);if(M){if(O=_(t),!R)return d(t,O)}else{var z=m(t),F=z==T||"[object GeneratorFunction]"==z;if(f(t))return l(t,R);if(z==I||z==k||F&&!E){if(O=L||F?{}:v(t),!R)return L?u(t,s(O,t)):c(t,o(O,t))}else{if(!A[z])return E?t:{};O=g(t,z,R)}}D||(D=new n);var U=D.get(t);if(U)return U;D.set(t,O),P(t)?t.forEach((function(n){O.add(e(n,i,C,n,t,D))})):b(t)&&t.forEach((function(n,a){O.set(a,e(n,i,C,a,t,D))}));var Z=M?void 0:(N?L?h:p:L?S:w)(t);return a(Z||t,(function(n,a){Z&&(n=t[a=n]),r(O,a,e(n,i,C,a,t,D))})),O}},603118:(e,t,i)=>{var n=i(513218),a=Object.create,r=function(){function e(){}return function(t){if(!n(t))return{};if(a)return a(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}();e.exports=r},228483:(e,t,i)=>{var n=i(225063)();e.exports=n},868866:(e,t,i)=>{var n=i(862488),a=i(701469);e.exports=function(e,t,i){var r=t(e);return a(e)?r:n(r,i(e))}},690939:(e,t,i)=>{var n=i(902492),a=i(637005);e.exports=function e(t,i,r,o,s){return t===i||(null==t||null==i||!a(t)&&!a(i)?t!=t&&i!=i:n(t,i,r,o,e,s))}},902492:(e,t,i)=>{var n=i(646384),a=i(967114),r=i(518351),o=i(916096),s=i(664160),l=i(701469),d=i(644144),c=i(936719),u="[object Arguments]",p="[object Array]",h="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,i,_,g,v){var y=l(e),f=l(t),b=y?p:s(e),x=f?p:s(t),P=(b=b==u?h:b)==h,w=(x=x==u?h:x)==h,S=b==x;if(S&&d(e)){if(!d(t))return!1;y=!0,P=!1}if(S&&!P)return v||(v=new n),y||c(e)?a(e,t,i,_,g,v):r(e,t,b,i,_,g,v);if(!(1&i)){var k=P&&m.call(e,"__wrapped__"),T=w&&m.call(t,"__wrapped__");if(k||T){var I=k?e.value():e,A=T?t.value():t;return v||(v=new n),g(I,A,i,_,v)}}return!!S&&(v||(v=new n),o(e,t,i,_,g,v))}},225588:(e,t,i)=>{var n=i(664160),a=i(637005);e.exports=function(e){return a(e)&&"[object Map]"==n(e)}},829221:(e,t,i)=>{var n=i(664160),a=i(637005);e.exports=function(e){return a(e)&&"[object Set]"==n(e)}},710313:(e,t,i)=>{var n=i(513218),a=i(225726),r=i(133498),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return r(e);var t=a(e),i=[];for(var s in e)("constructor"!=s||!t&&o.call(e,s))&&i.push(s);return i}},642980:(e,t,i)=>{var n=i(646384),a=i(286556),r=i(228483),o=i(559783),s=i(513218),l=i(481704),d=i(636390);e.exports=function e(t,i,c,u,p){t!==i&&r(i,(function(r,l){if(p||(p=new n),s(r))o(t,i,l,c,e,u,p);else{var h=u?u(d(t,l),r,l+"",t,i,p):void 0;void 0===h&&(h=r),a(t,l,h)}}),l)}},559783:(e,t,i)=>{var n=i(286556),a=i(364626),r=i(477133),o=i(200278),s=i(738517),l=i(135694),d=i(701469),c=i(229246),u=i(644144),p=i(623560),h=i(513218),m=i(968630),_=i(936719),g=i(636390),v=i(959881);e.exports=function(e,t,i,y,f,b,x){var P=g(e,i),w=g(t,i),S=x.get(w);if(S)n(e,i,S);else{var k=b?b(P,w,i+"",e,t,x):void 0,T=void 0===k;if(T){var I=d(w),A=!I&&u(w),C=!I&&!A&&_(w);k=w,I||A||C?d(P)?k=P:c(P)?k=o(P):A?(T=!1,k=a(w,!0)):C?(T=!1,k=r(w,!0)):k=[]:m(w)||l(w)?(k=P,l(P)?k=v(P):h(P)&&!p(P)||(k=s(w))):T=!1}T&&(x.set(w,k),f(k,w,y,b,x),x.delete(w)),n(e,i,k)}}},105976:(e,t,i)=>{var n=i(406557),a=i(545357),r=i(430061);e.exports=function(e,t){return r(a(e,t,n),e+"")}},356560:(e,t,i)=>{var n=i(575703),a=i(538777),r=i(406557),o=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:r;e.exports=o},422545:e=>{e.exports=function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}},274757:e=>{e.exports=function(e,t){return e.has(t)}},554290:(e,t,i)=>{var n=i(406557);e.exports=function(e){return"function"==typeof e?e:n}},274318:(e,t,i)=>{var n=i(611149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},364626:(e,t,i)=>{e=i.nmd(e);var n=i(555639),a=t&&!t.nodeType&&t,r=a&&e&&!e.nodeType&&e,o=r&&r.exports===a?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var i=e.length,n=s?s(i):new e.constructor(i);return e.copy(n),n}},257157:(e,t,i)=>{var n=i(274318);e.exports=function(e,t){var i=t?n(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}},593147:e=>{var t=/\w*$/;e.exports=function(e){var i=new e.constructor(e.source,t.exec(e));return i.lastIndex=e.lastIndex,i}},540419:(e,t,i)=>{var n=i(562705),a=n?n.prototype:void 0,r=a?a.valueOf:void 0;e.exports=function(e){return r?Object(r.call(e)):{}}},477133:(e,t,i)=>{var n=i(274318);e.exports=function(e,t){var i=t?n(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}},200278:e=>{e.exports=function(e,t){var i=-1,n=e.length;for(t||(t=Array(n));++i<n;)t[i]=e[i];return t}},698363:(e,t,i)=>{var n=i(234865),a=i(789465);e.exports=function(e,t,i,r){var o=!i;i||(i={});for(var s=-1,l=t.length;++s<l;){var d=t[s],c=r?r(i[d],e[d],d,i,e):void 0;void 0===c&&(c=e[d]),o?a(i,d,c):n(i,d,c)}return i}},318805:(e,t,i)=>{var n=i(698363),a=i(799551);e.exports=function(e,t){return n(e,a(e),t)}},201911:(e,t,i)=>{var n=i(698363),a=i(151442);e.exports=function(e,t){return n(e,a(e),t)}},321463:(e,t,i)=>{var n=i(105976),a=i(816612);e.exports=function(e){return n((function(t,i){var n=-1,r=i.length,o=r>1?i[r-1]:void 0,s=r>2?i[2]:void 0;for(o=e.length>3&&"function"==typeof o?(r--,o):void 0,s&&a(i[0],i[1],s)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var l=i[n];l&&e(t,l,n,o)}return t}))}},225063:e=>{e.exports=function(e){return function(t,i,n){for(var a=-1,r=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++a];if(!1===i(r[l],l,r))break}return t}}},538777:(e,t,i)=>{var n=i(610852),a=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=a},967114:(e,t,i)=>{var n=i(288668),a=i(282908),r=i(274757);e.exports=function(e,t,i,o,s,l){var d=1&i,c=e.length,u=t.length;if(c!=u&&!(d&&u>c))return!1;var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var m=-1,_=!0,g=2&i?new n:void 0;for(l.set(e,t),l.set(t,e);++m<c;){var v=e[m],y=t[m];if(o)var f=d?o(y,v,m,t,e,l):o(v,y,m,e,t,l);if(void 0!==f){if(f)continue;_=!1;break}if(g){if(!a(t,(function(e,t){if(!r(g,t)&&(v===e||s(v,e,i,o,l)))return g.push(t)}))){_=!1;break}}else if(v!==y&&!s(v,y,i,o,l)){_=!1;break}}return l.delete(e),l.delete(t),_}},518351:(e,t,i)=>{var n=i(562705),a=i(611149),r=i(977813),o=i(967114),s=i(668776),l=i(321814),d=n?n.prototype:void 0,c=d?d.valueOf:void 0;e.exports=function(e,t,i,n,d,u,p){switch(i){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 a(e),new a(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 m=1&n;if(h||(h=l),e.size!=t.size&&!m)return!1;var _=p.get(e);if(_)return _==t;n|=2,p.set(e,t);var g=o(h(e),h(t),n,d,u,p);return p.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},916096:(e,t,i)=>{var n=i(458234),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,i,r,o,s){var l=1&i,d=n(e),c=d.length;if(c!=n(t).length&&!l)return!1;for(var u=c;u--;){var p=d[u];if(!(l?p in t:a.call(t,p)))return!1}var h=s.get(e),m=s.get(t);if(h&&m)return h==t&&m==e;var _=!0;s.set(e,t),s.set(t,e);for(var g=l;++u<c;){var v=e[p=d[u]],y=t[p];if(r)var f=l?r(y,v,p,t,e,s):r(v,y,p,e,t,s);if(!(void 0===f?v===y||o(v,y,i,r,s):f)){_=!1;break}g||(g="constructor"==p)}if(_&&!g){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||(_=!1)}return s.delete(e),s.delete(t),_}},458234:(e,t,i)=>{var n=i(868866),a=i(799551),r=i(3674);e.exports=function(e){return n(e,r,a)}},946904:(e,t,i)=>{var n=i(868866),a=i(151442),r=i(481704);e.exports=function(e){return n(e,r,a)}},45050:(e,t,i)=>{var n=i(37019);e.exports=function(e,t){var i=e.__data__;return n(t)?i["string"==typeof t?"string":"hash"]:i.map}},385924:(e,t,i)=>{var n=i(205569)(Object.getPrototypeOf,Object);e.exports=n},799551:(e,t,i)=>{var n=i(234963),a=i(770479),r=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return r.call(e,t)})))}:a;e.exports=s},151442:(e,t,i)=>{var n=i(862488),a=i(385924),r=i(799551),o=i(770479),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,r(e)),e=a(e);return t}:o;e.exports=s},751789:(e,t,i)=>{var n=i(894536);e.exports=function(){this.__data__=n?n(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,i)=>{var n=i(894536),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return a.call(t,e)?t[e]:void 0}},521327:(e,t,i)=>{var n=i(894536),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:a.call(t,e)}},281866:(e,t,i)=>{var n=i(894536);e.exports=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},43824:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var i=e.length,n=new e.constructor(i);return i&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},529148:(e,t,i)=>{var n=i(274318),a=i(257157),r=i(593147),o=i(540419),s=i(477133);e.exports=function(e,t,i){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return a(e,i);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,i);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 o(e)}}},738517:(e,t,i)=>{var n=i(603118),a=i(385924),r=i(225726);e.exports=function(e){return"function"!=typeof e.constructor||r(e)?{}:n(a(e))}},565776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,i){var n=typeof e;return!!(i=null==i?9007199254740991:i)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<i}},816612:(e,t,i)=>{var n=i(977813),a=i(498612),r=i(565776),o=i(513218);e.exports=function(e,t,i){if(!o(i))return!1;var s=typeof t;return!!("number"==s?a(i)&&r(t,i.length):"string"==s&&t in i)&&n(i[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}},327040:e=>{e.exports=function(){this.__data__=[],this.size=0}},514125:(e,t,i)=>{var n=i(218470),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,i=n(t,e);return!(i<0)&&(i==t.length-1?t.pop():a.call(t,i,1),--this.size,!0)}},882117:(e,t,i)=>{var n=i(218470);e.exports=function(e){var t=this.__data__,i=n(t,e);return i<0?void 0:t[i][1]}},567518:(e,t,i)=>{var n=i(218470);e.exports=function(e){return n(this.__data__,e)>-1}},654705:(e,t,i)=>{var n=i(218470);e.exports=function(e,t){var i=this.__data__,a=n(i,e);return a<0?(++this.size,i.push([e,t])):i[a][1]=t,this}},924785:(e,t,i)=>{var n=i(301989),a=i(738407),r=i(357071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(r||a),string:new n}}},611285:(e,t,i)=>{var n=i(45050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},396e3:(e,t,i)=>{var n=i(45050);e.exports=function(e){return n(this,e).get(e)}},349916:(e,t,i)=>{var n=i(45050);e.exports=function(e){return n(this,e).has(e)}},195265:(e,t,i)=>{var n=i(45050);e.exports=function(e,t){var i=n(this,e),a=i.size;return i.set(e,t),this.size+=i.size==a?0:1,this}},668776:e=>{e.exports=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i}},894536:(e,t,i)=>{var n=i(610852)(Object,"create");e.exports=n},133498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t}},545357:(e,t,i)=>{var n=i(896874),a=Math.max;e.exports=function(e,t,i){return t=a(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,s=a(r.length-t,0),l=Array(s);++o<s;)l[o]=r[t+o];o=-1;for(var d=Array(t+1);++o<t;)d[o]=r[o];return d[t]=i(l),n(e,this,d)}}},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,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}},430061:(e,t,i)=>{var n=i(356560),a=i(521275)(n);e.exports=a},521275:e=>{var t=Date.now;e.exports=function(e){var i=0,n=0;return function(){var a=t(),r=16-(a-n);if(n=a,r>0){if(++i>=800)return arguments[0]}else i=0;return e.apply(void 0,arguments)}}},737465:(e,t,i)=>{var n=i(738407);e.exports=function(){this.__data__=new n,this.size=0}},963779:e=>{e.exports=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}},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,i)=>{var n=i(738407),a=i(357071),r=i(883369);e.exports=function(e,t){var i=this.__data__;if(i instanceof n){var o=i.__data__;if(!a||o.length<199)return o.push([e,t]),this.size=++i.size,this;i=this.__data__=new r(o)}return i.set(e,t),this.size=i.size,this}},150361:(e,t,i)=>{var n=i(285990);e.exports=function(e){return n(e,5)}},575703:e=>{e.exports=function(e){return function(){return e}}},977813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},406557:e=>{e.exports=function(e){return e}},229246:(e,t,i)=>{var n=i(498612),a=i(637005);e.exports=function(e){return a(e)&&n(e)}},618446:(e,t,i)=>{var n=i(690939);e.exports=function(e,t){return n(e,t)}},356688:(e,t,i)=>{var n=i(225588),a=i(307518),r=i(531167),o=r&&r.isMap,s=o?a(o):n;e.exports=s},968630:(e,t,i)=>{var n=i(644239),a=i(385924),r=i(637005),o=Function.prototype,s=Object.prototype,l=o.toString,d=s.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!r(e)||"[object Object]"!=n(e))return!1;var t=a(e);if(null===t)return!0;var i=d.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&l.call(i)==c}},472928:(e,t,i)=>{var n=i(829221),a=i(307518),r=i(531167),o=r&&r.isSet,s=o?a(o):n;e.exports=s},3674:(e,t,i)=>{var n=i(14636),a=i(400280),r=i(498612);e.exports=function(e){return r(e)?n(e):a(e)}},481704:(e,t,i)=>{var n=i(14636),a=i(710313),r=i(498612);e.exports=function(e){return r(e)?n(e,!0):a(e)}},682492:(e,t,i)=>{var n=i(642980),a=i(321463)((function(e,t,i){n(e,t,i)}));e.exports=a},770479:e=>{e.exports=function(){return[]}},498913:(e,t,i)=>{var n=i(422545),a=i(554290),r=i(640554),o=4294967295,s=Math.min;e.exports=function(e,t){if((e=r(e))<1||e>9007199254740991)return[];var i=o,l=s(e,o);t=a(t),e-=o;for(var d=n(l,t);++i<e;)t(i);return d}},418601:(e,t,i)=>{var n=i(14841),a=1/0;e.exports=function(e){return e?(e=n(e))===a||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},640554:(e,t,i)=>{var n=i(418601);e.exports=function(e){var t=n(e),i=t%1;return t==t?i?t-i:t:0}},959881:(e,t,i)=>{var n=i(698363),a=i(481704);e.exports=function(e){return n(e,a(e))}},762587:e=>{function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,i,n,a){i=i||"&",n=n||"=";var r={};if("string"!=typeof e||0===e.length)return r;var o=/\+/g;e=e.split(i);var s=1e3;a&&"number"==typeof a.maxKeys&&(s=a.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var d=0;d<l;++d){var c,u,p,h,m=e[d].replace(o,"%20"),_=m.indexOf(n);_>=0?(c=m.substr(0,_),u=m.substr(_+1)):(c=m,u=""),p=decodeURIComponent(c),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,i,n,a){return i=i||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(a){var r=encodeURIComponent(t(a))+n;return Array.isArray(e[a])?e[a].map((function(e){return r+encodeURIComponent(t(e))})).join(i):r+encodeURIComponent(t(e[a]))})).join(i):a?encodeURIComponent(t(a))+n+encodeURIComponent(t(e)):""}},817673:(e,t,i)=>{t.decode=t.parse=i(762587),t.encode=t.stringify=i(712361)},52511:function(e,t,i){var n;e=i.nmd(e),function(a){t&&t.nodeType,e&&e.nodeType;var r="object"==typeof i.g&&i.g;r.global!==r&&r.window!==r&&r.self;var o,s=2147483647,l=36,d=/^xn--/,c=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,m=String.fromCharCode;function _(e){throw RangeError(p[e])}function g(e,t){for(var i=e.length,n=[];i--;)n[i]=t(e[i]);return n}function v(e,t){var i=e.split("@"),n="";return i.length>1&&(n=i[0]+"@",e=i[1]),n+g((e=e.replace(u,".")).split("."),t).join(".")}function y(e){for(var t,i,n=[],a=0,r=e.length;a<r;)(t=e.charCodeAt(a++))>=55296&&t<=56319&&a<r?56320==(64512&(i=e.charCodeAt(a++)))?n.push(((1023&t)<<10)+(1023&i)+65536):(n.push(t),a--):n.push(t);return n}function f(e){return g(e,(function(e){var t="";return e>65535&&(t+=m((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=m(e)})).join("")}function b(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function x(e,t,i){var n=0;for(e=i?h(e/700):e>>1,e+=h(e/t);e>455;n+=l)e=h(e/35);return h(n+36*e/(e+38))}function P(e){var t,i,n,a,r,o,d,c,u,p,m,g=[],v=e.length,y=0,b=128,P=72;for((i=e.lastIndexOf("-"))<0&&(i=0),n=0;n<i;++n)e.charCodeAt(n)>=128&&_("not-basic"),g.push(e.charCodeAt(n));for(a=i>0?i+1:0;a<v;){for(r=y,o=1,d=l;a>=v&&_("invalid-input"),((c=(m=e.charCodeAt(a++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:l)>=l||c>h((s-y)/o))&&_("overflow"),y+=c*o,!(c<(u=d<=P?1:d>=P+26?26:d-P));d+=l)o>h(s/(p=l-u))&&_("overflow"),o*=p;P=x(y-r,t=g.length+1,0==r),h(y/t)>s-b&&_("overflow"),b+=h(y/t),y%=t,g.splice(y++,0,b)}return f(g)}function w(e){var t,i,n,a,r,o,d,c,u,p,g,v,f,P,w,S=[];for(v=(e=y(e)).length,t=128,i=0,r=72,o=0;o<v;++o)(g=e[o])<128&&S.push(m(g));for(n=a=S.length,a&&S.push("-");n<v;){for(d=s,o=0;o<v;++o)(g=e[o])>=t&&g<d&&(d=g);for(d-t>h((s-i)/(f=n+1))&&_("overflow"),i+=(d-t)*f,t=d,o=0;o<v;++o)if((g=e[o])<t&&++i>s&&_("overflow"),g==t){for(c=i,u=l;!(c<(p=u<=r?1:u>=r+26?26:u-r));u+=l)w=c-p,P=l-p,S.push(m(b(p+w%P,0))),c=h(w/P);S.push(m(b(c,0))),r=x(i,f,n==a),i=0,++n}++i,++t}return S.join("")}o={version:"1.3.2",ucs2:{decode:y,encode:f},decode:P,encode:w,toASCII:function(e){return v(e,(function(e){return c.test(e)?"xn--"+w(e):e}))},toUnicode:function(e){return v(e,(function(e){return d.test(e)?P(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return o}.call(t,i,t,e))||(e.exports=n)}()},608575:(e,t,i)=>{var n=i(52511),a=i(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=f,t.resolve=function(e,t){return f(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?f(e,!1,!0).resolveObject(t):t},t.format=function(e){a.isString(e)&&(e=f(e));return e instanceof r?e.format():r.prototype.format.call(e)},t.Url=r;var o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(d),u=["%","/","?",";","#"].concat(c),p=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=i(817673);function f(e,t,i){if(e&&a.isObject(e)&&e instanceof r)return e;var n=new r;return n.parse(e,t,i),n}r.prototype.parse=function(e,t,i){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),s=-1!==r&&r<e.indexOf("#")?"?":"#",d=e.split(s);d[0]=d[0].replace(/\\/g,"/");var f=e=d.join(s);if(f=f.trim(),!i&&1===e.split("#").length){var b=l.exec(f);if(b)return this.path=f,this.href=f,this.pathname=b[1],b[2]?(this.search=b[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var x=o.exec(f);if(x){var P=(x=x[0]).toLowerCase();this.protocol=P,f=f.substr(x.length)}if(i||x||f.match(/^\/\/[^@\/]+@[^@\/]+/)){var w="//"===f.substr(0,2);!w||x&&g[x]||(f=f.substr(2),this.slashes=!0)}if(!g[x]&&(w||x&&!v[x])){for(var S,k,T=-1,I=0;I<p.length;I++){-1!==(A=f.indexOf(p[I]))&&(-1===T||A<T)&&(T=A)}-1!==(k=-1===T?f.lastIndexOf("@"):f.lastIndexOf("@",T))&&(S=f.slice(0,k),f=f.slice(k+1),this.auth=decodeURIComponent(S)),T=-1;for(I=0;I<u.length;I++){var A;-1!==(A=f.indexOf(u[I]))&&(-1===T||A<T)&&(T=A)}-1===T&&(T=f.length),this.host=f.slice(0,T),f=f.slice(T),this.parseHost(),this.hostname=this.hostname||"";var C="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!C)for(var j=this.hostname.split(/\./),E=(I=0,j.length);I<E;I++){var D=j[I];if(D&&!D.match(h)){for(var O="",R=0,L=D.length;R<L;R++)D.charCodeAt(R)>127?O+="x":O+=D[R];if(!O.match(h)){var N=j.slice(0,I),M=j.slice(I+1),z=D.match(m);z&&(N.push(z[1]),M.unshift(z[2])),M.length&&(f="/"+M.join(".")+f),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=n.toASCII(this.hostname));var F=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+F,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==f[0]&&(f="/"+f))}if(!_[P])for(I=0,E=c.length;I<E;I++){var Z=c[I];if(-1!==f.indexOf(Z)){var B=encodeURIComponent(Z);B===Z&&(B=escape(Z)),f=f.split(Z).join(B)}}var V=f.indexOf("#");-1!==V&&(this.hash=f.substr(V),f=f.slice(0,V));var H=f.indexOf("?");if(-1!==H?(this.search=f.substr(H),this.query=f.substr(H+1),t&&(this.query=y.parse(this.query)),f=f.slice(0,H)):t&&(this.search="",this.query={}),f&&(this.pathname=f),v[P]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){F=this.pathname||"";var W=this.search||"";this.path=F+W}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||"",i=this.pathname||"",n=this.hash||"",r=!1,o="";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&&a.isObject(this.query)&&Object.keys(this.query).length&&(o=y.stringify(this.query));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||v[t])&&!1!==r?(r="//"+(r||""),i&&"/"!==i.charAt(0)&&(i="/"+i)):r||(r=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+r+(i=i.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+n},r.prototype.resolve=function(e){return this.resolveObject(f(e,!1,!0)).format()},r.prototype.resolveObject=function(e){if(a.isString(e)){var t=new r;t.parse(e,!1,!0),e=t}for(var i=new r,n=Object.keys(this),o=0;o<n.length;o++){var s=n[o];i[s]=this[s]}if(i.hash=e.hash,""===e.href)return i.href=i.format(),i;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),d=0;d<l.length;d++){var c=l[d];"protocol"!==c&&(i[c]=e[c])}return v[i.protocol]&&i.hostname&&!i.pathname&&(i.path=i.pathname="/"),i.href=i.format(),i}if(e.protocol&&e.protocol!==i.protocol){if(!v[e.protocol]){for(var u=Object.keys(e),p=0;p<u.length;p++){var h=u[p];i[h]=e[h]}return i.href=i.format(),i}if(i.protocol=e.protocol,e.host||g[e.protocol])i.pathname=e.pathname;else{for(var m=(e.pathname||"").split("/");m.length&&!(e.host=m.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==m[0]&&m.unshift(""),m.length<2&&m.unshift(""),i.pathname=m.join("/")}if(i.search=e.search,i.query=e.query,i.host=e.host||"",i.auth=e.auth,i.hostname=e.hostname||e.host,i.port=e.port,i.pathname||i.search){var _=i.pathname||"",y=i.search||"";i.path=_+y}return i.slashes=i.slashes||e.slashes,i.href=i.format(),i}var f=i.pathname&&"/"===i.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),x=b||f||i.host&&e.pathname,P=x,w=i.pathname&&i.pathname.split("/")||[],S=(m=e.pathname&&e.pathname.split("/")||[],i.protocol&&!v[i.protocol]);if(S&&(i.hostname="",i.port=null,i.host&&(""===w[0]?w[0]=i.host:w.unshift(i.host)),i.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===m[0]?m[0]=e.host:m.unshift(e.host)),e.host=null),x=x&&(""===m[0]||""===w[0])),b)i.host=e.host||""===e.host?e.host:i.host,i.hostname=e.hostname||""===e.hostname?e.hostname:i.hostname,i.search=e.search,i.query=e.query,w=m;else if(m.length)w||(w=[]),w.pop(),w=w.concat(m),i.search=e.search,i.query=e.query;else if(!a.isNullOrUndefined(e.search)){if(S)i.hostname=i.host=w.shift(),(C=!!(i.host&&i.host.indexOf("@")>0)&&i.host.split("@"))&&(i.auth=C.shift(),i.host=i.hostname=C.shift());return i.search=e.search,i.query=e.query,a.isNull(i.pathname)&&a.isNull(i.search)||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.href=i.format(),i}if(!w.length)return i.pathname=null,i.search?i.path="/"+i.search:i.path=null,i.href=i.format(),i;for(var k=w.slice(-1)[0],T=(i.host||e.host||w.length>1)&&("."===k||".."===k)||""===k,I=0,A=w.length;A>=0;A--)"."===(k=w[A])?w.splice(A,1):".."===k?(w.splice(A,1),I++):I&&(w.splice(A,1),I--);if(!x&&!P)for(;I--;I)w.unshift("..");!x||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),T&&"/"!==w.join("/").substr(-1)&&w.push("");var C,j=""===w[0]||w[0]&&"/"===w[0].charAt(0);S&&(i.hostname=i.host=j?"":w.length?w.shift():"",(C=!!(i.host&&i.host.indexOf("@")>0)&&i.host.split("@"))&&(i.auth=C.shift(),i.host=i.hostname=C.shift()));return(x=x||i.host&&w.length)&&!j&&w.unshift(""),w.length?i.pathname=w.join("/"):(i.pathname=null,i.path=null),a.isNull(i.pathname)&&a.isNull(i.search)||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.auth=e.auth||i.auth,i.slashes=i.slashes||e.slashes,i.href=i.format(),i},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}}},397066:(e,t,i)=>{i.d(t,{b:()=>c,h:()=>u});var n=i(983722),a=i(768559),r=i(43760),o=i(170168),s=i(619937),l=i(48714),d=i(366284);const c=({href:e,pinId:t,pin:i,location:r,auxData:c},u)=>{if(i&&i.is_promoted){var p,h,m,_;const P=(0,a.Z)({boardUrl:null===(p=i.board)||void 0===p?void 0:p.url,callToCreateSourcePinId:i.call_to_create_source_pin_id,location:r,pinId:i.id,pinnerUserName:null===(h=i.pinner)||void 0===h?void 0:h.username,storyPinDataId:i.story_pin_data_id,trackingParams:i.tracking_params,trackingParamsMap:i.tracking_params_map}),w=(0,l.nS)({url:e,pinId:t,csrId:null,clientTrackingParams:P,auxData:c}),S=(0,n.Z)();if((0,d.G6)(null!==(m=null==S?void 0:S.userAgent.browserName)&&void 0!==m?m:"")){var g,v;const{group:n}=null!==(g=null==S?void 0:S.experimentsClient.checkExperiment("m10n_event_conversion_measurement"))&&void 0!==g?g:{},a=null!=S&&null!==(v=S.userAgent)&&void 0!==v&&v.browserVersion?S.userAgent.browserVersion:"0.0",r=parseFloat(a.split(".")[0]+"."+a.split(".")[1]);if(void 0!==i.campaign_id&&r>=14.1&&["enabled_safari"].includes(n)){var y;const n=i.attribution_source_id?((e,t,i)=>{const n=document.createElement("a");return n.setAttribute("href",t),n.setAttribute("target","_blank"),n.setAttribute("rel","noopener nofollow noreferrer"),n.style.cursor="pointer",n.style.display="block",n.setAttribute(s.$N.ATTRIBUTION_SOURCE_ID,e),n.setAttribute(s.$N.ATTRIBUTE_DESTINATION,i),n.setAttribute(s.$N.ATTRIBUTE_ON,i),n.click(),e})(i.attribution_source_id,w,e):((e,t,i)=>{const n=document.createElement("a");n.setAttribute("href",t),n.setAttribute("target","_blank"),n.setAttribute("rel","noopener nofollow noreferrer"),n.style.cursor="pointer",n.style.display="block";const a=""+(e%32*8+Math.floor(((new Date).getTime()-16409952e5)/864e5)%8);return n.setAttribute(s.$N.ATTRIBUTION_SOURCE_ID,a),n.setAttribute(s.$N.ATTRIBUTE_DESTINATION,i),n.setAttribute(s.$N.ATTRIBUTE_ON,i),n.click(),a})(null!==(y=i.pin_promotion_id)&&void 0!==y?y:0,w,e);return u({event_type:101,clientTrackingParams:P,object_id_str:t||"",aux_data:{pin_id:t||"",click_measurement_ppid:i.pin_promotion_id||"",click_measurement_campaign_id:i.campaign_id||"",is_pcm:!0,attribution_source_id:n,page_url:e}}),!0}}else if((0,d.i7)(null!==(_=null==S?void 0:S.userAgent.browserName)&&void 0!==_?_:"")){var f,b;const{group:n}=null!==(f=null==S?void 0:S.experimentsClient.checkExperiment("m10n_event_conversion_measurement_chrome"))&&void 0!==f?f:{},a=null!=S&&null!==(b=S.userAgent)&&void 0!==b&&b.browserVersion?parseInt(S.userAgent.browserVersion.split(".")[0],10):0;if(void 0!==i.attribution_source_id&&a>=101&&["enabled"].includes(n)){var x;const n=((e,t,i)=>{const n=new URL(`${o.C0}/attribution_source/`);n.searchParams.set(s.NR.ATTRIBUTION_SOURCE_EVENT_ID,e),n.searchParams.set(s.NR.ATTRIBUTION_DESTINATION,i),n.searchParams.set(s.NR.ATTRIBUTION_EXPIRY,""+s.uV);const a=document.createElement("a");return a.setAttribute("href",t),a.setAttribute("target","_blank"),a.setAttribute("rel","noopener nofollow noreferrer"),a.style.cursor="pointer",a.style.display="block",a.setAttribute(s.NR.ATTRIBUTION_SOURCE,n.toString()),a.click(),e})(null!==(x=i.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:i.pin_promotion_id||"",click_measurement_campaign_id:i.campaign_id||"",is_arapi:!0,attribution_source_id:n,page_url:e}}),!0}}}return!1},u=({href:e,pinId:t,pin:i,location:n,auxData:o},s)=>{if("undefined"!=typeof window&&window.Windows)(0,r.Z)({url:e,pinId:t,pin:i,location:n,auxData:o});else{var d,u;if(c({href:e,pinId:t,pin:i,location:n,auxData:o},s))return;(0,l.Gj)({url:e,pinId:t,csrId:null,clientTrackingParams:(0,a.Z)({boardUrl:null==i||null===(d=i.board)||void 0===d?void 0:d.url,callToCreateSourcePinId:null==i?void 0:i.call_to_create_source_pin_id,location:n,pinId:null==i?void 0:i.id,pinnerUserName:null==i||null===(u=i.pinner)||void 0===u?void 0:u.username,storyPinDataId:null==i?void 0:i.story_pin_data_id,trackingParams:null==i?void 0:i.tracking_params,trackingParamsMap:null==i?void 0:i.tracking_params_map}),auxData:o})}}},807592:(e,t,i)=>{function n(e){const{max_price:t,min_price:i,price:n}=e;return t&&i?`${i}-${t}`:n}i.d(t,{Z:()=>n})},524309:(e,t,i)=>{i.d(t,{Qi:()=>d,RK:()=>l,$_:()=>s});var n=i(766935);var a=i(957161);const r="REDUX_STATE",o=()=>!!navigator.serviceWorker,s=()=>o()&&JSON.parse((0,a.qn)(r))||{},l=e=>(0,n.Z)((t=>{const i={};i[e]=t,o()&&(e=>{if(window.requestIdleCallback)return window.requestIdleCallback(e);{const t=Date.now();setTimeout((()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})}),1)}})((()=>(e=>{o()&&(0,a.Nh)(r,JSON.stringify({...s(),...e}))})(i)))}),1e3),d=()=>{(0,a.L_)(r)}},391254:(e,t,i)=>{i.d(t,{Z:()=>r});i(441143);var n=i(785893);class a{static factory(e){return e instanceof a?e:new a(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:i,...r}=e,o=String(t||"")||i||"";return!!o?(0,n.jsx)("style",{...r,dangerouslySetInnerHTML:{__html:String(a.factory(o))}}):null}},310227:(e,t,i)=>{i.d(t,{Dv:()=>r,Ml:()=>o,Oc:()=>n,mv:()=>a});const n=16,a=4,r={SAVED:"rgba(0, 0, 0, 0.33)",VISUAL:"rgba(0, 0, 0, 0.1)",LEGO_WASH:"rgba(0, 0, 0, 0.4)"},o=120},941646:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(883119),a=i(785893);function r(e){const{children:t,display:i,id:r}=e;return(0,a.jsx)(n.xu,{"data-test-id":r,display:i,children:t})}},512176:(e,t,i)=>{i.d(t,{Z:()=>c});var n=i(667294),a=i(898781),r=i(112690),o=i(967181),s=i(883119),l=i(785893);const d={sm:12,md:16,lg:20,xl:24};function c({isVerifiedMerchant:e,size:t,showText:i,showVerifiedIdentity:c,inspirationalBadges:u,inspirationalBadgesColor:p}){const h=(0,a.ZP)(),[m,_]=(0,n.useState)(!1),{dangerousInlineStyle:g,iconColor:v}=(0,o.W)(!!e),y=(0,r.Z)();return(0,l.jsxs)(n.Fragment,{children:[(0,l.jsx)(s.iP,{onTap:()=>{y({component:13534,element:11717,event_type:102}),_(!0)},rounding:"circle",children:(0,l.jsxs)(s.xu,{alignItems:"center",dangerouslySetInlineStyle:g,display:"flex","data-test-id":"verified-badge-icon",children:[(0,l.jsx)(s.JO,{accessibilityLabel:e?h.bt("Merchant verification badge icon", "Merchant verification badge icon", "merchantVerification.badge.icon", undefined, true):h.bt("Badge icon", "Badge icon", "merchantVerification.badge.icon", undefined, true),icon:"workflow-status-ok",color:v,inline:!0,size:d[t]}),i&&!c&&(0,l.jsx)(s.xu,{marginStart:2,children:(0,l.jsx)(s.xv,{color:"shopping",inline:!0,weight:"bold",children:(0,l.jsx)(s.xu,{dangerouslySetInlineStyle:g,children:h.bt("Verified merchant", "Verified merchant", "creator.header.verifiedMerchant", undefined, true)})})})]})}),(e||i&&!c)&&(0,l.jsx)(o.Z,{showModal:m,setShowModal:_,inspirationalBadges:u,inspirationalBadgesColor:p})]})}},967181:(e,t,i)=>{i.d(t,{W:()=>u,Z:()=>p});var n=i(667294),a=i(121151),r=i(898781),o=i(112690),s=i(966113),l=i(752403),d=i(883119),c=i(785893);const u=e=>{const t=e?"shopping":"error";return{iconColor:t,dangerousInlineStyle:{__style:{color:t}}}};function p({inspirationalBadges:e=[],inspirationalBadgesColor:t,showModal:i,setShowModal:p}){const h=(0,r.ZP)(),[m,_]=(0,n.useState)(!0),{dangerousInlineStyle:g,iconColor:v}=u(!0),y=(0,o.Z)();return(0,n.useEffect)((()=>{i&&m&&(_(!1),y({event_type:13,component:13534}))}),[i]),(0,c.jsx)(a.ZP,{"data-test-id":"modal",isOpen:i,mobileAccessibilityCloseIconLabel:h.bt("Close", "Close", "Close modal window", undefined, true),onDismiss:()=>{y({component:13534,element:11716,event_type:102}),p(!1)},type:"verified_merchant_modal",children:(0,c.jsx)(d.xu,{padding:3,children:(0,c.jsxs)(d.xu,{display:"flex",direction:"column",padding:2,"data-test-id":"verified-badge-modal",children:[(0,c.jsx)(d.xu,{display:"flex",dangerouslySetInlineStyle:g,justifyContent:"center",children:(0,c.jsx)(d.JO,{accessibilityLabel:h.bt("Merchant verification badge icon", "Merchant verification badge icon", "creator.verifiedMerchant.modalIcon", undefined, true),color:v,icon:"workflow-status-ok",size:24})}),(0,c.jsx)(d.xu,{marginTop:4,children:(0,c.jsx)(d.xv,{color:"shopping",weight:"bold",align:"center",children:(0,c.jsx)(d.xu,{dangerouslySetInlineStyle:g,children:h.bt("Verified merchant", "Verified merchant", "creator.verifiedMerchant.modalHeader", undefined, true)})})}),(0,c.jsx)(d.xu,{marginTop:4,marginBottom:4,children:(0,c.jsx)(d.xv,{align:"center",overflow:"normal",children:h.bt("This retailer meets Pinterest's Merchant Guidelines", "This retailer meets Pinterest's Merchant Guidelines", "creator.verifiedMerchant.modalText.", undefined, true)})}),e.map((e=>(0,c.jsxs)(d.xu,{display:"flex",direction:"column",marginTop:4,children:[(0,c.jsx)(d.kC,{alignItems:"stretch",justifyContent:"center",children:(0,c.jsx)(d.xv,{overflow:"noWrap",size:"100",weight:"bold",children:(0,c.jsx)(d.xu,{display:"inlineBlock",rounding:1,paddingX:2,paddingY:2,dangerouslySetInlineStyle:{__style:(0,l.ym)(t)},"data-test-id":"verified-badge-modal-inspirational-badge",children:e.label})})}),(0,c.jsx)(d.xu,{marginTop:2,children:(0,c.jsx)(d.xv,{align:"center",overflow:"normal",children:e.description})})]},e.id))),(0,c.jsx)(d.xu,{display:"flex",marginTop:8,justifyContent:"center",width:"100%","data-test-id":"verified-badge-modal-learn-more",children:(0,c.jsx)(d.zx,{role:"link",accessibilityLabel:h.bt("Learn more", "Learn more", "creator.verifiedMerchant.buttonText", undefined, true),target:"blank",size:"lg",href:s.vB,text:h.bt("Learn more", "Learn more", "creator.verifiedMerchant.buttonText", undefined, true)})})]})})})}},619937:(e,t,i)=>{i.d(t,{$N:()=>p,GY:()=>l,MZ:()=>o,NR:()=>c,Vn:()=>d,fm:()=>n,kM:()=>r,q6:()=>a,qp:()=>s,uV:()=>u});const n={DOWNLOAD_TEMPLATE:"DOWNLOAD_TEMPLATE",UPLOAD_TEMPLATE:"UPLOAD_TEMPLATE",HISTORY:"HISTORY",RESOURCES:"RESOURCES"},a={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"},o={GOOGLE_TAG_MANAGER:"Google Tag Manager",SHOPIFY:"Shopify",WOO_COMMERCE:"WooCommerce",WORDPRESS:"WordPress",SQUARESPACE:"Squarespace",WEEBLY:"Weebly",TEALIUM:"Tealium",MAGENTO:"Magento",ECWID:"Ecwid",BIG_COMMERCE:"BigCommerce"},s={PINTEREST_TAG:"PINTEREST_TAG",PINTEREST_TAG_EVENTS:"PINTEREST_TAG_EVENTS",PINTEREST_TAG_HEALTH:"PINTEREST_TAG_HEALTH",CONVERSION_HEALTH:"CONVERSION_HEALTH",CONVERSION_UPLOAD:"CONVERSION_UPLOAD",UPLOAD_HISTORY:"UPLOAD_HISTORY",PCA_UPLOAD_HISTORY:"PCA_UPLOAD_HISTORY",PCA_UPLOAD:"PCA_UPLOAD",CONVERSIONS_API:"CONVERSIONS_API",CONVERSIONS_API_ACCESS_TOKEN:"CONVERSIONS_API_ACCESS_TOKEN",CONVERSIONS_API_DEDUPLICATION:"CONVERSIONS_API_DEDUPLICATION",PINTEREST_EVENTS_OVERVIEW:"PINTEREST_EVENTS_OVERVIEW",PINTEREST_EVENT_HISTORY:"PINTEREST_EVENT_HISTORY"},l={PINTEREST_TAG_DASHBOARD:"PINTEREST_TAG_DASHBOARD",PINTEREST_TAG_LANDING:"PINTEREST_TAG_LANDING",PINTEREST_TAG_INSTRUCTIONS:"PINTEREST_TAG_INSTRUCTIONS",CONVERSION_UPLOAD_LANDING:"CONVERSION_UPLOAD_LANDING",CONVERSION_UPLOAD_VALIDATION:"CONVERSION_UPLOAD_VALIDATION",CONVERSION_UPLOAD_HISTORY:"CONVERSION_UPLOAD_HISTORY",PCA_UPLOAD_HISTORY:"PCA_UPLOAD_HISTORY",PCA_UPLOAD_LANDING:"PCA_UPLOAD_LANDING",PCA_UPLOAD_VALIDATION:"PCA_UPLOAD_VALIDATION"},d={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"},c={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"}},283698:(e,t,i)=>{function n(e){return"undefined"!=typeof window&&Object.prototype.hasOwnProperty.call(window,"requestAnimationFrame")||e&&e(),window.requestAnimationFrame((()=>{window.requestAnimationFrame((()=>{e&&e()}))}))}i.d(t,{Z:()=>n})},366284:(e,t,i)=>{i.d(t,{G6:()=>r,i7:()=>o,oi:()=>n,u$:()=>a,un:()=>l,vU:()=>s});const n=Object.freeze({OTHER:0,CHROME:1,SAFARI:2,IE:3,FIREFOX:4,OPERA:5,EDGE:6}),a=e=>{switch(!0){case e.includes("Chrome"):return n.CHROME;case e.includes("Safari"):return n.SAFARI;case e.includes("Firefox"):return n.FIREFOX;case e.includes("Opera"):return n.OPERA;case e.includes("IE"):return n.IE;case e.includes("Edge"):return n.EDGE;default:return n.OTHER}};function r(e){return a(e)===n.SAFARI}function o(e){return a(e)===n.CHROME}function s(e){return a(e)===n.FIREFOX}function l(e){return a(e)===n.EDGE}},56641:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(567831),a=i(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,n.Z)(e);return setTimeout((()=>{(0,a.My)("setting_new_window_location")}),0),window.location.href=t,window}}},126098:(e,t,i)=>{function n(){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}}i.d(t,{Z:()=>n})},436851:(e,t,i)=>{i.d(t,{$:()=>a,d:()=>n});const n=e=>/instagram/i.test(e||""),a=e=>(e||"").includes("[Pinterest/iOS]")||(e||"").includes("[Pinterest/Android]")},752403:(e,t,i)=>{i.d(t,{Bu:()=>m,Dm:()=>s,I:()=>v,NG:()=>p,QP:()=>c,S4:()=>d,Xe:()=>u,_f:()=>h,eT:()=>_,hm:()=>g,yQ:()=>l,ym:()=>f});var n=i(642345);const a=Object.freeze({AFRICAN_AMERICAN_OR_BLACK:"african_american_or_black",BLACK_AFRICAN_DIASPORA:"black_african_diaspora",HISPANIC_OR_LATINX:"hispanic_or_latinx",NATIVE_OR_INDIGENOUS:"native_or_indigenous",ABORIGINAL_OR_INDIGENOUS:"aboriginal_or_indigenous",NATIVE_AMERICAN_OR_ALASKA_NATIVE_OR_INDIGENOUS_PEOPLES:"native_american_or_alaska_native_or_indigenous_peoples",ASIAN_OR_PACIFIC_ISLANDERS:"asian_or_pacific_islanders",ASIAN:"asian",LGBTQ:"lgbtq",MIDDLE_EASTERN:"middle_eastern",TURKISH:"turkish",ROMA:"roma",MIDDLE_EASTERN_TURKISH_ROMA:"middle_eastern_turkish_roma",NORTH_AFRICAN:"north_african",MIDDLE_EASTERN_OR_NORTH_AFRICAN:"middle_eastern_or_north_african",NONE:"none"}),r=Object.freeze({PERSON_OF_COLOR:"person_of_color",LGBTQ:"lgbtq",DISABILITY:"disability",WOMAN:"woman",NONE:"none"}),o=Object.freeze({INVESTED_IN_GOOD:"invested_in_good",ECO_FRIENDLY:"eco_friendly",RESPONSIBLY_SOURCED:"responsibly_sourced",INCLUSIVE:"inclusive",PERSONAL_TOUCH:"personal_touch"}),s=[...Object.keys(a).map((e=>a[e])),...Object.keys(r).map((e=>r[e]))],l=[...Object.keys(o).map((e=>o[e]))],d=3,c=["#EFEFEF","#F8E3D1","#F6F1C1","#DDEEAF","#C9F2EE","#DBD5F4","#EFBCEE"],u={business_diversity_labels:[],created_at:"",disapproval_reasons:[],is_inspirational:!1,review_criteria:[],review_labels:[],updated_at:"",inspirational_badge_selection:{badgeColor:c[0],badgeOptOut:[]},is_eligible_for_storefront_badges:!1,badge_details:[],profile_badges:[]},p="https://help.pinterest.com/article/merchant-details",h="https://help.pinterest.com/business/article/add-merchant-details-to-your-profile";function m({verifiedMerchant:e}){var t,i;const n=null==e?void 0:e.isVerifiedMerchant,a=null==e||null===(t=e.inspirational_signal)||void 0===t?void 0:t.is_inspirational,r=null==e||null===(i=e.inspirational_signal)||void 0===i?void 0:i.is_eligible_for_storefront_badges;return Boolean(n&&a&&r)}function _(e){return e.badge_details?e.badge_details.map((e=>e.id)):[]}function g(e){return(null==e?void 0:e.profile_badges)||[]}function v(e,t,i){return t&&i?t.map((e=>i.find((t=>t.id===e.trim())))).filter(Boolean):[]}function y(e){const t=(0,n.oo)(e);if(!t)return"white";const[i,a,r]=t;return(0,n.DW)(i,a,r)<=n.I?"white":"black"}function f(e){const t=e||c[0];return{backgroundColor:t,color:y(t)}}},768559:(e,t,i)=>{i.d(t,{Z:()=>l});var n=i(826067);const a=/\/today\/(article|best|trending)\/[\w-]+\/(\d+)/,r=/\/discover\/article\/[\w-]+\/(\d+)/,o=(e,t)=>t?e.substring(t.length).split("/")[0]:e,s=({boardUrl:e,callToCreateSourcePinId:t,path:i,pinId:s,pinnerUserName:l,query:d,search:c,storyPinDataId:u})=>{var p,h;if(!i)return"";let m="";switch(i){case"/":case"/homefeed/":return"UserHomefeedResource";case l&&`/${l}/pins/`:return"UserPinsResource";case l&&`/${l}/`:case/\/_activity\//.test(i)&&i:return"UserActivityPinsResource";case/\/_created\//.test(i)&&i:return u?"UserStoryPinsFeedResource":"UserActivityPinsResource";case/\/_community\//.test(i)&&i:return"UserDiscoveredPinsResource";case/\/_shop\//.test(i)&&i:return"StoreFrontFeedResource";case/\/_saved\//.test(i)&&i:return"BoardlessPinsResource";case l&&`/${l}/_shopping_list/`:return"ShoppingListFeedResource";case/\/visual-search\//.test(i)&&i:return"VisualLiveSearchResource";case/\/pin\//.test(i)&&i:m="/pin/";const _=o(i,m);if(s!==_)return t?`ApiResource_callToCreatePins_${_}`:`RelatedPinFeedResource_${_}`;break;case/\/search\//.test(i)&&i:if(c){return`SearchResource_${((0,n.mB)(c,{shouldDecode:!1}).q||"").toLowerCase()}`}if(d)return`SearchResource_${encodeURIComponent(d.q||"").toLowerCase()}`;break;case r.test(i)&&i:return`ExploreArticleResource_${(null===(p=i.match(r))||void 0===p?void 0:p[2])||"unknown"}`;case/\/discover\/article\//.test(i)&&i:m="/discover/article/";return`ExploreArticleResource_${o(i,m)}`;case/\/categories\//.test(i)&&i:m="/categories/";return`CategoryFeedResource_${o(i,m)}`;case/\/discover\/topics\//.test(i)&&i:return"CategoryFeedResource";case/\/news_hub\//.test(i)&&i:m="/news_hub/";return`NewsHubDetailsResource_${o(i,m)}`;case/\/_tools\/more-ideas\//.test(i)&&i:return"BoardContentRecommendationResource";case/\/topics\//.test(i)&&i:m="/topics/";return`TopicFeedResource_${o(i,m)}`;case l&&`/${l}/products/`:return"StoreFrontFeedResource";case/\/source\//.test(i)&&i:m="/source/";return`DomainFeedResource_${o(i,m)}`;case/\/explore\//.test(i)&&i:m="/explore/";return`SearchResource_${o(i,m)}`;case e:case!!e&&/\/more_ideas\//.test(i)&&i:return"BoardFeedResource";case e&&i.indexOf(e)>-1&&i:return"BoardSectionPinsResource";case/\/following\//.test(i)&&i:return"FollowingFeedResource";case/\/brand_catalog\//.test(i)&&i:return"BrandCatalogFeedResource";case a.test(i)&&i:return`TodayArticleFeedResource_${(null===(h=i.match(a))||void 0===h?void 0:h[2])||"unknown"}`;case/\/today\//.test(i):return"TodayTabResource";case/\story_feed\//.test(i)&&i:if(c){const{feed_type:e,request_params:t}=(0,n.mB)(c);return`StoryFeedResource_${e}_${t}`}}return""},l=({boardUrl:e,callToCreateSourcePinId:t,location:i,pinId:n,pinnerUserName:a,previousHistory:r,storyPinDataId:o,trackingParams:l,trackingParamsMap:d={}})=>{if(!n||!l||!i)return;if(!d)return`${l}~0`;const{pathname:c,search:u,query:p}=i,h=s({boardUrl:e,callToCreateSourcePinId:t,path:c,pinId:n,pinnerUserName:a,query:p,search:u,storyPinDataId:o,trackingParams:l,trackingParamsMap:d}),m=Object.keys(d);let _;if((c||"").startsWith("/pin/")){const e=m.find((e=>"PinResource"!==e));_=e?d[e]:d.PinResource}else _=d[h];let g;if(!_&&r&&r.length){const i=(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);g=s({boardUrl:e,callToCreateSourcePinId:t,path:i,pinId:n,pinnerUserName:a,query:p,search:u,storyPinDataId:o,trackingParams:l,trackingParamsMap:d}),_=d[g]}return _||(_=`${l||""}~0`),_}},642345:(e,t,i)=>{i.d(t,{DW:()=>s,I:()=>o,oo:()=>r,vq:()=>a});const n=e=>{const t=e.toString(16);return 1===t.length?"0"+t:t},a=(e,t,i)=>"#"+n(e)+n(t)+n(i),r=e=>{const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t&&[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]},o=.18,s=(e,t,i)=>.2126*(e/255)**2.2+.7151*(t/255)**2.2+.0721*(i/255)**2.2},745760:(e,t,i)=>{i.d(t,{Ch:()=>p,nc:()=>x,a:()=>P,ZP:()=>w,cA:()=>f,li:()=>b,h1:()=>c});var n=i(682492),a=i.n(n),r=i(6637),o=i(594881),s=i(706922);var l=i(385740),d=i(172045);const c=()=>1e6*Date.now(),u=[6945,170],p={3829:"articleImpressions",18:"pinImpressions",3700:"boardImpressions",3803:"searchImpressions",170:"storyImpression",3704:"userImpressions"},h=[4700,4701,4702,4703,7042,7043],m=e=>function(e){let t=e.length;for(let i=e.length-1;i>=0;i-=1){const n=e.charCodeAt(i);n>127&&n<=2047?t+=1:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&(i-=1)}return t}(JSON.stringify(e)),_=e=>u.includes(e);let g;function v(){const e=new Date;g?g&&g.getUTCDate()!==e.getUTCDate()&&(g=e,(0,o.Z)()):g=e}function y(e){return e.reduce(((e,t)=>{const i=e.find((n=t,e=>e.view_type===n.viewType&&e.view_parameter===n.viewParameter&&e.event_type===n.eventType&&e.object_id_str===n.objectIdStr&&(0,s.Z)(e.view_data,n.viewData)));var n;if(i&&!_(t.eventType))t.impressionType in i.event_data?i.event_data[t.impressionType].push(t.eventData):i.event_data[t.impressionType]=[t.eventData];else{const i={event_type:t.eventType,view_parameter:t.viewParameter,view_type:t.viewType,view_data:t.viewData,time:c(),component:t.component,clientUUID:(0,d.Z)(),aux_data:t.auxData||{},appState:t.appState,event_data:{[t.impressionType]:_(t.eventType)?{...t.eventData,...(t.eventData||{})[t.impressionType]}:[t.eventData]},object_id_str:t.objectIdStr||void 0};e.push(i)}return e}),[])}const f=e=>{const t=e.event_type,i=h.includes(t),n=(0,l.BE)();return!(!i&&13!==t&&!n)},b=(e,t)=>{const i=e.event_type,n=h.includes(i),r=(0,l.BE)();return n?e:13===i&&e.view_type?(null==t||t({viewType:e.view_type,viewParameter:e.view_parameter,viewData:null!=r&&r.viewData?a()(r.viewData,e.view_data):a()({},e.view_data)}),e):!r||e.view_type&&e.view_parameter?e:{...e,view_type:r.viewType,view_parameter:r.viewParameter,view_data:e.view_data?a()(e.view_data,r.viewData):a()({},r.viewData)}},x=(e,t)=>{var i,n;const a=e.component,r=e.object_id_str,o=e.view_type,s=e.event_type,l=e.appState;return null!==(i=((null===(n=e.event_data)||void 0===n?void 0:n[t])||[]).map((i=>({auxData:e.aux_data,...a?{component:a}:{},eventData:i,...s?{eventType:s}:{},...o?{viewType:o}:{},viewData:e.view_data,viewParameter:e.view_parameter,...r?{objectIdStr:r}:null,impressionType:t,appState:l}))))&&void 0!==i?i:[]},P=(e,t)=>({...e.component?{component:e.component}:{},...e.object_id_str?{objectIdStr:e.object_id_str}:null,...e.view_type?{viewType:e.view_type}:{},eventType:e.event_type,auxData:e.aux_data,impressionType:t,viewData:e.view_data,viewParameter:e.view_parameter,eventData:e.event_data});function w(){let e=[],t=[],i=0;function n(){return[...e,...y(t)]}function a(){e=[],t=[],i=0}function o(e=!1){const t=n();t.length&&(r.Z.create("ContextLogResource",{events:t,report_time:c()}).callCreate({async:!e,showError:!1}),a(),v())}return{flushContextEvents:o,getContextEvents:n,logContextEvent:function({object_id_str:t,...n}){const a={aux_data:{},event_data:{},view_data:{},...n,time:c(),clientUUID:(0,d.Z)(),...t?{object_id_str:t}:null};a.aux_data=function(e){if(!e)return e;const{element:t,eventData:i,component:n,objectId:a,view:r,viewParameter:o,viewData:s,durationNs:l,pairId:d,clientTrackingParams:c,...u}=e;return u}(a.aux_data),i+m(a)>20480&&o(!1),e.push(a),v()},logImpression:function(e){i+m(e)>20480&&o(!1),t.push(e)},resetEventsBuffer:a}}},112690:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(407043);const a=()=>(0,n.v)().logContextEvent},81226:(e,t,i)=>{function n(e){const t=Math.round(e/1e3),i=t%60;return Math.floor(t/60)+":"+(i<10?"0":"")+i}i.d(t,{Z:()=>n})},816068:(e,t,i)=>{i.d(t,{Z:()=>n});const n=e=>Math.floor(new Date(e).getTime()/1e3)},766935:(e,t,i)=>{function n(e,t){let i;return(...n)=>{clearTimeout(i),i=setTimeout((()=>e(...n)),t)}}i.d(t,{Z:()=>n})},722767:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),a=i(973935);function r(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class o extends n.Component{constructor(...e){super(...e),r(this,"observer",null),r(this,"handleVisibilityChanged",((e,t)=>{this.props.onVisibilityChange(e,t)}))}componentDidMount(){const e=a.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 n.Children.only(this.props.children)}}const s=o},903095:(e,t,i)=>{i.d(t,{Mi:()=>a,lO:()=>r});var n=i(425288);const{Provider:a,useMaybeHook:r}=(0,n.Z)("pageContext")},332611:(e,t,i)=>{i.d(t,{CK:()=>p,N:()=>v,Qu:()=>h,UT:()=>u,YX:()=>g,d9:()=>m,fO:()=>l,kd:()=>_,pz:()=>d});var n=i(6637),a=i(764990),r=i(172071),o=i(957191);let s;const l=(e,t)=>i=>{const a=t?{extra_context:e,targeting:t}:{extra_context:e};return n.Z.create("UserExperiencePlatformResource",a).callGet().then((e=>e.resource_response?i((0,o.OD)(e.resource_response.data)):void 0))},d=(e,t,i,r)=>(l,d)=>{if(t)return Promise.resolve();if(r&&(s=r),1===e.length){const t=e[0],n=d().experiences[t],r=(null==n?void 0:n.extraContext)||null;if(JSON.stringify(r)===JSON.stringify(i)||(0,a.E3)(n)&&!(i&&Object.keys(i).length>0))return Promise.resolve()}return n.Z.create("UserExperienceResource",{placement_ids:e,extra_context:i||null,targeting:r}).callGet().then((e=>e.resource_response?l((0,o.cL)(e.resource_response.data)):void 0))},c=(e,t)=>(i,a,r,d=!1,c,u)=>(p,h)=>{const{experiences:m,experiencesMulti:_}=h();let g=null,v=!0;var y;d||(v=m[i]&&m[i].experience_id===a,g=v?m[i]:Array.isArray(_[i])&&(null===(y=_[i])||void 0===y?void 0:y.find((e=>e.experience_id===a))));if(g&&g.experience_id===a||d&&i&&a){const d=n.Z.create(e,{placed_experience_id:`${i}%3A${a}`,extra_context:null!=c?c:{},targeting:u}),h=v?o.Yb:o.xW;switch(t){case"dismissed":return d.callDelete().then((()=>{p(h(i,a,t)),p(l(void 0,s))}));case"completed":return d.callUpdate().then((()=>{r||(p(h(i,a,t)),p(l(void 0,s)))}));case"viewed":return p(h(i,a,t)),d.callUpdate().then((()=>{1000162===i&&p(l())}));case"completedWithoutHomefeed":return d.callUpdate().then((()=>{r||p(h(i,a,t))}));default:return Promise.resolve()}}return Promise.resolve()},u=c("UserExperienceViewedResource","viewed"),p=c("UserExperienceCompletedResource","completed"),h=c("UserExperienceResource","dismissed"),m=c("UserExperienceCompletedResource","completedWithoutHomefeed"),_=(e,t)=>(i,a)=>{const{experiences:o}=a(),s=o[e];s&&s.triggerable_placed_exps&&s.triggerable_placed_exps.length&&s.triggerable_placed_exps.forEach((i=>{const[,a]=i.split(":");let o=t;s.metadata&&s.metadata[a]&&(o={...t,...s.metadata[a]}),n.Z.create("UserExperienceTriggerResource",{placed_experience_id:i.replace(":","%3A"),extra_context:o}).callUpdate().then((()=>{((e,t,i={})=>{r.Z.increment(`${e}.${t}`,1,i)})("experienceservice","experimentTriggerCall.1",{placement_id:e,experience_id:a})}))}))},g=e=>(t,i)=>{t(_(e));const{experiences:n}=i();return n[e]},v=(e,t,i)=>n=>{i&&(s=i),n(_(e,t)),t&&Object.keys(t).length>0&&n(d([e],!1,t,i))}},764990:(e,t,i)=>{function n(e){return!!e&&0!==e.type}i.d(t,{A0:()=>r,E3:()=>n,MQ:()=>a});const a=(e,t,i)=>{const a=e[i];return t[i]&&n(a)?a:null};function r(e){var t;return null===(t=e.display_data)||void 0===t?void 0:t.anchor}},207737:(e,t,i)=>{i.d(t,{$S:()=>n,V$:()=>a,_4:()=>o,iY:()=>s,mR:()=>r});const n="REFRESH_ALL_EXPERIENCES_MULTI",a="UPDATE_EXPERIENCE_MULTI",r="FETCH_EXPERIENCES",o="REFRESH_ALL_EXPERIENCES",s="UPDATE_EXPERIENCE"},957191:(e,t,i)=>{i.d(t,{NW:()=>o,OD:()=>l,Yb:()=>s,cL:()=>d,xW:()=>r});var n=i(6637),a=i(207737);const r=(e,t,i)=>({type:a.V$,payload:{placementId:e,experienceId:t,status:i}}),o=e=>t=>n.Z.create("UserExperiencePlatformResource",{extra_context:e,multiExperiencePlatform:!0}).callGet().then((e=>{return e.resource_response?t((i=e.resource_response.data,{type:a.$S,payload:{experiencesMulti:i}})):void 0;var i})),s=(e,t,i)=>({type:a.iY,payload:{placementId:e,experienceId:t,status:i}}),l=e=>({type:a._4,payload:{experiences:e}}),d=e=>({type:a.mR,payload:{experiences:e}})},378518:(e,t,i)=>{i.d(t,{_:()=>d,a:()=>c});var n=i(667294),a=i(702664),r=i(618446),o=i.n(r),s=i(780280),l=i(332611);const d=({extraContext:e,id:t,shouldUsePlacedExperience:i=!0})=>{const r=(0,n.useRef)(),d=(0,a.useDispatch)(),{isBot:c}=(0,s.B)(),u=(0,a.useSelector)((e=>e.experiences[t]));return(0,n.useEffect)((()=>{d((0,l.kd)(t))}),[d,u,t]),(0,n.useEffect)((()=>{i||o()(r.current,e)||(d((0,l.pz)([t],c,e)),r.current=e)}),[d,e,c,t,i]),u},c=e=>(d(e),(0,a.useSelector)((t=>t.experiencesMulti[e.id])))},373420:(e,t,i)=>{i.r(t),i.d(t,{default:()=>d});var n=i(667294),a=i(124580),r=i(223815),o=i(968121),s=i(883119),l=i(785893);function d({_dangerouslyDisableScrollBoundaryContainer:e,accessibilityModalLabel:t,align:i,allowClickAndDrag:d,allowMediaPlay:c,allowScroll:u,children:p,closeOnOutsideClick:h,footer:m,heading:_,onDismiss:g,role:v,size:y,subHeading:f}){(0,n.useEffect)((()=>(a.Z.pause(),function(){a.Z.resume()})),[]);return(0,l.jsx)(s.mh,{zIndex:o.b7,children:(0,l.jsx)(r.Z,{allowClickAndDrag:d,allowEsc:!0,allowMediaPlay:c,allowScroll:u,children:(0,l.jsx)(s.u_,{_dangerouslyDisableScrollBoundaryContainer:e,accessibilityModalLabel:t,align:i,closeOnOutsideClick:h,heading:_,footer:m,onDismiss:()=>{a.Z.resume(),g()},role:v,size:y,subHeading:f,padding:"none",children:p})})})}},430322:(e,t,i)=>{i.r(t),i.d(t,{default:()=>_});var n=i(667294),a=i(124580),r=i(283698),o=i(223815),s=i(50286),l=i(898781),d=i(965900),c=i(780280),u=i(883119),p=i(968121),h=i(867820),m=i(785893);function _({_dangerouslyDisableScrollBoundaryContainer:e,accessibilityModalLabel:t,align:i="center",allowScroll:_=!1,children:g,closeOnOutsideClick:v=!0,footer:y,heading:f,mobileAccessibilityCloseIconLabel:b,mobileHideCloseIcon:x,mobileIsFullscreen:P,isOpen:w,mobileIsSlideUp:S,modalStyle:k,onDismiss:T,overrideZDepth:I,subHeading:A,type:C}){const j=(0,l.ZP)(),{isRTL:E}=(0,c.B)(),D=(0,n.useRef)(!1),[O,R]=(0,n.useState)(!1),{setAppFocusState:L}=(0,d.I)(),N=(0,s.ZP)();(0,n.useEffect)((()=>{(0,h.My)(`mweb_unauth.mobile_modal.${C||"unknown_type"}.did_mount.is_open.${String(!!w)}`)}),[w,C]),(0,n.useEffect)((()=>(D.current=(0,r.Z)((()=>{D.current&&R(!0)})),()=>{"undefined"!=typeof window&&Object.prototype.hasOwnProperty.call(window,"cancelAnimationFrame")&&D.current&&(window.cancelAnimationFrame(D.current),D.current=null)})),[]),(0,n.useEffect)((()=>(w?(a.Z.pause(),L(!1)):(a.Z.resume(),L(!0)),()=>{w&&(a.Z.resume(),L(!0))})),[L,w]);const M=w&&!_;(0,n.useEffect)((()=>(M&&(()=>{if(document.body){const{body:{style:e}}=document;e.overflow="hidden",e.touchAction="none"}})(),()=>{M&&(()=>{if(document.body){const{body:{style:e}}=document;e.overflow="visible",e.touchAction="auto"}})()})),[M]);const z=(0,p.bf)();if(!w)return null;const F=S?(0,p.Vf)({isFullscreen:P,isTablet:"tablet"===N,isShowing:O,type:C}):(0,p.JN)({isFullscreen:P,isTablet:"tablet"===N,modalStyle:k,type:C});return(0,m.jsx)(o.Z,{children:(0,m.jsx)(u.mh,{children:(0,m.jsxs)(u.xu,{"aria-label":t,display:"inlineBlock",zIndex:I?new u.Ry(I):p.ZM,position:"relative",role:"dialog",children:[(0,m.jsx)(u.iP,{accessibilityLabel:j.bt("Mobile sign-up modal mask", "Mobile Signup Modal Mask", "mweb.signup_modal.mask", undefined, true),onTap:({event:e})=>{const t=e,i=T?"with":"without",n=C||"unknown_type";(0,h.tj)(`mweb_unauth.mobile_modal.wash_tap.${n}.${i}_dismissal`,{x:t.clientX,y:t.clientY}),v&&T&&T()},tapStyle:"none",children:(0,m.jsx)(u.xu,{position:"fixed",top:!0,left:!0,dangerouslySetInlineStyle:z})}),(0,m.jsxs)(u.xu,{position:"fixed",color:"default",dangerouslySetInlineStyle:F,children:[(0,m.jsxs)(u.kC,{alignItems:"center",justifyContent:"start",width:"100%",gap:{row:2,column:0},children:[b&&!x?(0,m.jsx)(u.xu,{padding:2,"data-test-id":"mobile-modal-cancel-button",children:(0,m.jsx)(u.hU,{accessibilityLabel:b,iconColor:"darkGray",icon:"cancel",onClick:T,padding:4,size:"sm"})}):null,f?(0,m.jsx)(u.kC.Item,{flex:"grow",children:(0,m.jsx)(u.kC,{direction:"column",alignItems:"center",justifyContent:"center",children:(0,m.jsxs)(u.xu,{dangerouslySetInlineStyle:b&&!x?(0,p.ju)(E):{__style:{}},children:[P?f:(0,m.jsx)(u.xv,{align:i,weight:"bold",size:"400",children:f}),A?(0,m.jsx)(u.xv,{align:i,children:A}):null]})})}):null]}),(0,m.jsxs)(u.xu,{overflow:e?"visible":"auto",children:[g,y]})]})]})})})}},298361:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(898781),a=i(349700),r=i(202139);function o(){const e=(0,n.ZP)();return function(t,i){const n=new Date(t),o=new Date-n,s=Math.floor(o/r.FS),l=Math.floor(o/r.UK),d=Math.floor(o/r.F4),c=Math.floor(o/r.VL),u=Math.floor(o/r.N1),p=e.nbt(["{{ minutes }} minute ago", "{{ minutes }} minutes ago"], s, " - ", true),h=e.nbt(["{{ hours }} hour ago", "{{ hours }} hours ago"], l, " - ", true),m=e.nbt(["{{ days }} day ago", "{{ days }} days ago"], d, " - ", true),_=e.nbt(["{{ weeks }} week ago", "{{ weeks }} weeks ago"], c, " - ", true),g=e.nbt(["{{ years }} year ago", "{{ years }} years ago"], u, " - ", true),v=e.nbt(["{{ minutes }}m", "{{ minutes }}m"], s, "minutes ago abbreviated", true),y=e.nbt(["{{ hours }}h", "{{ hours }}h"], l, "hours ago abbreviated", true),f=e.nbt(["{{ days }}d", "{{ days }}d"], d, "days ago abbreviated", true),b=e.nbt(["{{ weeks }}w", "{{ weeks }}w"], c, "weeks ago abbreviated", true),x=e.nbt(["{{ years }}y", "{{ years }}y"], u, "years ago abbreviated", true);return u>0?(0,a.nk)(i?x:g,{years:u}).join(""):c>0?(0,a.nk)(i?b:_,{weeks:c}).join(""):d>0?(0,a.nk)(i?f:m,{days:d}).join(""):l>0?(0,a.nk)(i?y:h,{hours:l}).join(""):s>0?(0,a.nk)(i?v:p,{minutes:s}).join(""):e.bt("Just now", "Just now", " - ", undefined, true)}}},892819:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(66699),a=i(898781);const r=(e,t)=>{const i=t||0,n=10**i,a=+(i?e*n:e).toFixed(8),r=Math.floor(a),o=a-r,s=o>.5-1e-8&&o<.5+1e-8?r%2==0?r:r+1:Math.round(a);return i?s/n:s},o=e=>{try{(0).toLocaleString([e])}catch(t){return!1}return!0};function s(){const e=(0,a.ZP)();return(t,i,a)=>{let s=0,l=0;const d=a&&a.style||void 0,c=a&&a.shortform||!1,u=a&&a.uplimit||void 0,p=a&&a.currency||void 0,h=!!u&&i>=u,m=u&&h?u:i;if("currency"===d){const{minimumFractionDigits:e,maximumFractionDigits:i}=((e,t)=>{if(t){const{minimumFractionDigits:i,maximumFractionDigits:n}=new Intl.NumberFormat(e,{style:"currency",currency:t}).resolvedOptions();if(void 0!==i&&void 0!==n)return{minimumFractionDigits:i,maximumFractionDigits:n}}return{minimumFractionDigits:2,maximumFractionDigits:2}})(t,p);s=void 0===a||void 0===a.maximum_fraction_digits?i:a.maximum_fraction_digits,l=void 0===a||void 0===a.minimum_fraction_digits?e:a.minimum_fraction_digits}else s=void 0===a||void 0===a.maximum_fraction_digits?0:a.maximum_fraction_digits,l=void 0===a||void 0===a.minimum_fraction_digits?0:a.minimum_fraction_digits;if(c&&m>999&&(s=void 0===a||void 0===a.shortform_maximum_fraction_digits?2:a.shortform_maximum_fraction_digits,l=0),s<l)return String(m);let _=m,g="";const v=[{"100M":{value:1e8,localeKey:e.bt("億", "億", "Abbreviation for one hundred millions. This abbreviation is only used in Chinese, Japanese and Korean.", undefined, true)}},{"10k":{value:1e4,localeKey:e.bt("万", "万", "Abbreviation for ten thousand. This abbreviation is only used in Chinese, Japanese and Korean.", undefined, true)}}],y=[{b:{value:1e9,localeKey:e.bt("B", "B", "Abbreviation for one billion.", undefined, true)}},{m:{value:1e6,localeKey:e.bt("M", "M", "Abbreviation for one million.", undefined, true)}},{k:{value:1e3,localeKey:e.bt("k", "k", "Abbreviation for one thousand.", undefined, true)}}],f=/^zh|ja|ko/.test(t);if(c&&m>999){const e=f?v:y;for(let t=0;t<e.length;t+=1){const i=Object.keys(e[t])[0],n=e[t][i].value;if(m>=n){_=r(m/n*Math.pow(10,s))/Math.pow(10,s),g=e[t][i].localeKey;break}}}if(null==_)return"";const b=_.toLocaleString([o(t)&&"ar-SA"!==t?t:"en-US"],(({maximumFractionDigits:e,minimumFractionDigits:t,style:i,currency:n})=>{const a={maximumFractionDigits:e,minimumFractionDigits:t};return i?{...a,style:i,..."currency"===i?{currency:n,currencyDisplay:"symbol"}:{}}:a})({maximumFractionDigits:s,minimumFractionDigits:l,currency:p,style:d}));return g&&g.length>0?(0,n.Z)(e.bt("{{formattedNumber}}{{numberSuffix}}", "{{formattedNumber}}{{numberSuffix}}", "i18n.usePrettyNumberFormat.prettyNumberFormat", undefined, true),{formattedNumber:b,numberSuffix:g})+(h?"+":""):b+(h?"+":"")}}},12610:(e,t,i)=>{function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i.d(t,{Z3:()=>p,LU:()=>h,ZP:()=>m});const a=1e6,r=window.location.search.includes("debug_impressions=1")||document.cookie&&document.cookie.indexOf("debug_impressions=1")>-1,o={paused:"Pause",resumed:"Resume",stopped:"Flush",enter:"Enter viewport",exit:"Exit viewport"},s={},l={background:"#FF8A8A",transform:"scale(.98)"},d={init:e=>({transform:`scale(${s[e]?.8:.99})`,transition:"transform .2s ease-in-out",background:"#8E8E8E"}),[o.enter]:{background:"#A0DCC8",transform:"scale(.99)"},[o.exit]:l,[o.stopped]:l,[o.paused]:l,[o.resumed]:{background:"#0FA573",transform:"scale(.99)"}};class c{constructor(e){n(this,"setMutationObserver",(e=>(this.mutationObserver=e,this))),n(this,"startMutationObserver",(e=>{this.mutationObserver&&this.mutationObserver.observe(this.node,e)})),n(this,"stopMutationObserver",(()=>{this.mutationObserver&&this.mutationObserver.disconnect()})),n(this,"handleIntersectionChange",(e=>{const t=e.intersectionRatio>0||e.isIntersecting;if(t&&!this.inViewport){const e=Date.now();this.startTime=e,this._debug(o.enter,{startTime:e,node:this.node}),this.enterCallbacks.forEach((e=>e()))}else!t&&this.inViewport&&(this._debug(o.exit,!0),this.exitCallbacks.forEach((e=>e(this.toJSON()))));this.inViewport=t})),this.enterCallbacks=[],this.exitCallbacks=[],this.inViewport=!1,this.node=e,this.startTime=0,this.debugId=""}onEnterViewport(e){return this.enterCallbacks.push(e),this}onExitViewport(e){return this.exitCallbacks.push(e),this}setDebugId(e){return this.debugId=e,r&&Object.assign(this.node.style,d.init(e)),this}pause(){return this.inViewport&&(this._debug(o.paused,!0),this.exitCallbacks.forEach((e=>e(this.toJSON())))),this}resume(){if(this.inViewport){const e=Date.now();this._debug(o.resumed,{startTime:e}),this.startTime=e}return this}stop(e){return this.inViewport&&(this._debug(o.stopped,!0),this.exitCallbacks.forEach((t=>t(this.toJSON(e))))),this}toJSON(e=""){return{startTime:this.startTime*a,endTime:Date.now()*a,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),d[e]&&Object.assign(this.node.style,d[e]),e){case o.flushed:case o.paused:case o.exit:s[this.debugId]=!0}}}function u(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const p=!0,h=!1;class m{constructor(){u(this,"_delegateChange",(e=>{e.forEach((e=>{const t=this.activeImpressions.get(e.target);t&&t.handleIntersectionChange(e)}))})),u(this,"_handleMutations",((e,t)=>{const i=this.mutationObservers.get(t);i&&i.offsetHeight<1&&i&&this.stop(i,"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 i=this.activeImpressions.get(e);i&&(i.stop(t),this.mutationObservers.delete(i.mutationObserver),i.stopMutationObserver(),this.activeImpressions.delete(e),this.observer.unobserve(e))}start(e){let t=this.activeImpressions.get(e);if(!t){t=new c(e),this.activeImpressions.set(e,t),this.observer.observe(e);const i=(e,t)=>this._handleMutations(e,t);t.setMutationObserver(new window.MutationObserver(i)),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:i}=t.getBoundingClientRect();return i>e?i:e}),0),t=window.innerHeight-Array.from(this.bottomObstructions).reduce(((e,t)=>{const{top:i}=t.getBoundingClientRect();return i<e?i:e}),window.innerHeight);if(e!==this.topHeight||t!==this.bottomHeight){const i={rootMargin:`${-e}px 0px ${-t}px`};this.observer.disconnect(),this.observer=new window.IntersectionObserver(this._delegateChange,i),Array.from(this.activeImpressions.values()).forEach((e=>this.observer.observe(e.node))),this.topHeight=e,this.bottomHeight=t}}}},124580:(e,t,i)=>{i.d(t,{Z:()=>n});const n=new(i(12610).ZP)},954571:(e,t,i)=>{i.d(t,{Z:()=>n});function n(e){if(!e)return!1;const t=new Date(e);return t.setDate(t.getDate()+28),(new Date).getTime()<t.getTime()}},166300:(e,t,i)=>{i.d(t,{Z:()=>l});var n=i(50286),a=i(883119),r=i(444445),o=i(134879),s=i(785893);const l=({children:e,roundedForLargeDevice:t})=>{const i="phone"!==(0,n.ZP)()&&t;return(0,o.V)()?(0,s.jsx)(a.xu,{marginStart:-r.D6,marginEnd:-r.D6,rounding:i?6:void 0,overflow:i?"hidden":void 0,children:(0,s.jsx)(o.C,{value:!1,children:e})}):e}},134879:(e,t,i)=>{i.d(t,{C:()=>r,V:()=>o});var n=i(667294);const a=(0,n.createContext)(!1),r=a.Provider,o=()=>(0,n.useContext)(a)},48714:(e,t,i)=>{i.d(t,{nS:()=>x,iw:()=>w,gV:()=>f,G3:()=>S,lI:()=>k,Gj:()=>P,Jd:()=>y,$3:()=>b});var n=i(231486),a=i(56641),r=i(768559),o=i(250059);const s=e=>"string"!=typeof e&&e?e.state:null;var l=i(643913),d=i(547239),c=i(508847),u=i(102500),p=i(43760),h=i(579164),m=i(333155),_=i(397066),g=i(623568),v=i(226198);const y=()=>{window&&window.focus(),document.activeElement&&document.activeElement.blur()},f=({isOffsiteUrl:e,event:t})=>!e&&(t.metaKey||t.ctrlKey),b=({location:e,pin:t,surface:i})=>!(0,g.jL)(t)&&(({location:e,pinId:t,surface:i})=>{const n=Boolean(i),a=m.ZF.includes(i),r=e.pathname.includes(t);return n&&!a||r})({location:e,pinId:t.id,surface:i}),x=e=>{const t=Math.round(1e3*Math.random())+"",i=Math.round(1e3*Math.random())+"";n.t8((0,v.GS)(t),i);const a=`${t}-${i}`,{queryParams:r,url:o}=e;let s={token:a,url:o};if(!r){const{pinId:t,csrId:i,clientTrackingParams:n,auxData:a}=e;s={...s,pin:null!=t?t:void 0,csr:i&&!t?i:void 0,client_tracking_params:n,aux_data:a?JSON.stringify(a):void 0}}r&&(s={...s,...r});return`/offsite/?${(0,l.Z)(s)}`},P=e=>{(0,a.Z)(x(e),!0)},w=async({isMounted:e,pin:t,location:i,spamCheckCallback:n,href:a})=>{var o,s;const l=await(0,u.Z)({check_only:!0,client_tracking_params:(0,r.Z)({boardUrl:null==t||null===(o=t.board)||void 0===o?void 0:o.url,callToCreateSourcePinId:null==t?void 0:t.call_to_create_source_pin_id,location:i,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:a}).callGet({showError:!1});if(!l.resource_response.error&&e){const e=l.resource_response.data||{},{message:t,redirect_status:i,url:a}=e;n({blocked:["blocked","suspicious","porn"].includes(i),message:t,redirectStatus:i,sanitized_url:a})}},S=({event:e,onHistoryChange:t,href:i,history:n,target:r})=>{const l=(0,o.Z)(i),u=s(i),p=(0,d.Z)(l);p===h.Z.TRUSTED_DIFFERENT_ORIGIN||"blank"===r?(0,a.Z)(l,"blank"===r):n&&p===h.Z.SAME_ORIGIN&&(n.push((0,c.Z)({url:l}),null!=u?u:{}),t&&t({event:e}))},k=({href:e,pinId:t,pin:i,location:n,auxData:a,spamCheck:o,queryParams:s},l,d)=>{"undefined"!=typeof window&&window.Windows?(0,p.Z)({url:e,pinId:t,pin:i,location:n,auxData:a}):i?(({spamCheck:e,auxData:t,location:i,pin:n,pinId:a,href:o},s,l)=>{if(null!=e&&e.blocked)null==l||l(e);else{var d,c;if((0,_.b)({href:o,pinId:a,pin:n,location:i,auxData:t},s))return;P({url:o,pinId:a,csrId:null,clientTrackingParams:(0,r.Z)({boardUrl:null===(d=n.board)||void 0===d?void 0:d.url,callToCreateSourcePinId:n.call_to_create_source_pin_id,location:i,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}),auxData:t})}})({spamCheck:o,auxData:a,location:n,pin:i,pinId:t,href:e},l,d):P({url:e,pinId:t,queryParams:s})}},102500:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(6637);function a(e){return n.Z.create("ApiResource",{url:"/v3/offsite/",data:e})}},287072:(e,t,i)=>{i.d(t,{Z:()=>c,p:()=>u});var n=i(667294),a=i(250059),r=i(149230),o=i(407043),s=i(108234),l=i(48714),d=i(276775);function c(e){var t;const{externalData:i,href:c,onHistoryChange:u,target:p}=e,{logContextEvent:h}=(0,o.v)(),[m,_]=(0,n.useState)(null),[g,v]=(0,n.useState)(!1),y=(0,d.useHistory)(),f=(0,d.useLocation)(),b=(0,r.Z)({url:(0,a.Z)(c)}),{showWarning:x}=null!==(t=(0,s.s)())&&void 0!==t?t:{};return(0,n.useEffect)((()=>(v(!0),()=>{v(!1)})),[]),(0,n.useEffect)((()=>{b&&null!=i&&i.pin&&null===m&&g&&(0,l.$3)({location:f,pin:i.pin,surface:i.surface})&&(0,l.iw)({isMounted:g,pin:i.pin,location:f,spamCheckCallback:e=>_(e),href:(0,a.Z)(c)})}),[null==i?void 0:i.pin,null==i?void 0:i.surface,c,b,g,f,m]),({event:e})=>{var t;(0,l.gV)({isOffsiteUrl:b,event:e})||(e.preventDefault(),c&&(b||null!=i&&i.dangerouslyForceOffsiteUrl?(0,l.lI)({auxData:null==i?void 0:i.auxData,href:(0,a.Z)(c),pinId:null==i||null===(t=i.pin)||void 0===t?void 0:t.id,pin:null==i?void 0:i.pin,queryParams:null==i?void 0:i.queryParams,location:f,spamCheck:m},h,x):(0,l.G3)({event:e,href:c,history:y,onHistoryChange:u,target:"blank"===p?"blank":null})))}}const u=({children:e,...t})=>e({handleClick:c(t)})},713930:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(172071);function a(e,t){return new Promise(((i,a)=>{if(document.querySelector(`script[src="${e}"]`)){let e=0;if("FACEBOOK"===t)if(window.FB)i();else{const t=setInterval((()=>{window.FB||20===e?(clearInterval(t),i()):(e+=1,n.Z.increment(`mweb.loadScript.facebook.tries_${e}`,.01))}),100)}else if("GSI"===t)if(window.google)i();else{const t=setInterval((()=>{window.google||20===e?(clearInterval(t),i()):(e+=1,n.Z.increment(`mweb.loadScript.gsi.tries_${e}`,.01))}),100)}else i()}else{const t=document.createElement("script");t.src=e,t.async=!0,t.addEventListener("load",(()=>i())),t.addEventListener("error",a),document.getElementsByTagName("head")[0].appendChild(t)}}))}},567450:(e,t,i)=>{function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i.d(t,{Z:()=>o});const a=new class{constructor(){n(this,"onResumeListeners",[]),n(this,"onPauseListeners",[]),n(this,"inExp",!1),n(this,"windowInFocus",!0),n(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;a.windowInFocus=!1,a.onPauseListeners.forEach((e=>e(t)))}else a.windowInFocus=!0,a.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 o=a},627995:(e,t,i)=>{i.d(t,{Z:()=>c});var n=i(927104),a=i(898781),r=i(903095),o=i(112690),s=i(883119),l=i(785893);const d=(e,t)=>{let i={};if(e){const{pinData:n,viewData:a}=e;i={unauth_click_pin_id:n.id,unauth_click_pin_image_signature:n.imageSignature},3===t?i={...i,unauth_page_pin_id:a.id,unauth_page_pin_image_signature:a.imageSignature}:5===t&&(i={...i,unauth_page_board_id:a.id})}return i},c=({clickLoggingOptions:e,domain:t,link:i,onClick:c})=>{var u;const p=null===(u=(0,r.lO)())||void 0===u?void 0:u.logging,h=(0,a.ZP)(),m=(0,o.Z)(),_=()=>[{event_type:8948},{event_type:12},{event_type:101,element:0,aux_data:d(e.unauthRankingLoggingData,null==p?void 0:p.viewType)}].map((t=>({component:0,element:162,view_type:null==p?void 0:p.viewType,view_parameter:null==p?void 0:p.viewParameter,aux_data:e.auxData,object_id_str:e.auxData.objectId,...t})));return(0,l.jsx)(s.iP,{onTap:({event:e})=>{e.stopPropagation(),_().forEach((e=>m(e))),c(e)},children:(0,l.jsxs)(s.xu,{marginBottom:4,marginStart:4,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",left:!0,bottom:!0,children:[(0,l.jsx)(s.xu,{marginEnd:1,children:(0,l.jsx)(s.JO,{size:9,icon:"arrow-up-right",color:"light",accessibilityLabel:h.bt("Link", "Link", "unauth.pin.domain.link", undefined, true)})}),(0,l.jsx)("a",{href:i,onClick:e=>{e.stopPropagation(),_().forEach((e=>m(e))),c(e)},rel:"nofollow noopener noreferrer",target:"_blank",type:"button",children:(0,l.jsx)(s.xv,{size:"200",inline:!0,weight:"bold",lineClamp:1,color:"inverse",children:(0,n.Z)(t,27)})})]})})}},55275:(e,t,i)=>{i.d(t,{P:()=>o,t:()=>s});var n=i(6637);const a=()=>{};const r={complaint:function(e,t){n.Z.create("PinFeedbackResource",e).callUpdate().then((()=>t()))},followBoard:function(e,t){n.Z.create("BoardFollowResource",e).callCreate().then((()=>t()))},followPinner:function(e,t){n.Z.create("UserFollowResource",e).callCreate().then((()=>t()))},followTopic:function(e,t){n.Z.create("InterestFollowResource",e).callCreate().then((()=>t()))},newsHubPinHide:function(e,t){n.Z.create("NewsHubPinFeedbackResource",e).callUpdate().then((()=>t()))},promotedComplaint:function(e,t){n.Z.create("PinFeedbackResource",e).callUpdate().then((()=>t()))},relatedPinHide:function(e,t){n.Z.create("RelatedPinFeedbackResource",e).callUpdate().then((()=>t()))},reportPin:function(e,t){t()},showAdReasons:function(e,t){t()},unfollowBoard:function(e,t){n.Z.create("BoardFollowResource",e).callDelete().then((()=>t()))},unfollowPinner:function(e,t){n.Z.create("UserFollowResource",e).callDelete().then((()=>t()))},unfollowTopic:function(e,t){n.Z.create("InterestFollowResource",e).callDelete().then((()=>t()))},unrelatedSearchPin:function(e,t){n.Z.create("SearchPinFeedbackResource",e).callUpdate().then((()=>t()))}},o=["complaint","relatedPinHide","unrelatedSearchPin","promotedComplaint","newsHubPinHide","unfollowBoard","unfollowPinner","unfollowTopic"];function s(e,t,i=a){const n=e?r[e]:null;return n?n(t,i):i()}},680046:(e,t,i)=>{i.d(t,{EF:()=>u,XZ:()=>d,ZP:()=>s,nb:()=>c,yl:()=>l});var n=i(55275),a=i(966113),r=i(760372);const o=e=>e.length>32?`${e.substring(0,32).trim()}...`:e,s=({i18n:e,interpolateNamedTemplate:t})=>({getLearnMoreUrl:e=>{switch(e){case 1:return"https://www.pinterest.com/_/_/help/articles/personalized-ads-pinterest";case 2:case 3:return"https://www.pinterest.com/_/_/help/articles/personalized-ads-pinterest";default:return a.m7}},getRecommendationDescription:({ad_match_reason:i,board:n,feedbackType:a,makeNavigateLink:r,pinner:s,promoter:l,recommendationReason:d,sourceInterest:c})=>{switch(a){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:a,url:u}=d.board,p=r("navigation",u,a);return t(e.bt("This Pin was inspired by your board {{ boardLink }}", "This Pin was inspired by your board {{ boardLink }}", "Pin feedback - inspired by your board", undefined, true),{boardLink:p});case"topic":const{name:h,url_name:m}=c,_=r("topicUrl",`/topics/${m}`,h);return t(e.bt("This Pin was inspired by {{ formattedTopic }}", "This Pin was inspired by {{ formattedTopic }}", "Pin feedback", undefined, true),{formattedTopic:_});case"followed":const g=`/${s.username}`,v=r("boardUrl",n.url,o(n.name)),y=r("pinnerUrl",g,o(s.full_name));return s.explicitly_followed_by_me?t(e.bt("This Pin is from {{ formattedPinner }}, a profile you follow", "This Pin is from {{ formattedPinner }}, a profile you follow", "Pin feedback", undefined, true),{formattedPinner:y}):t(e.bt("This Pin is from {{ formattedBoard }}, a board you follow", "This Pin is from {{ formattedBoard }}, a board you follow", "Pin feedback", undefined, true),{formattedBoard:v});case"promoted":switch(i){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:i,username:n}=l,a=r("promotedLink",n?"/"+n+"/":"/",i);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:a})}default:return null}},getFeedbackType({board:e,feedback:t,viewParameter:i,pin:{promoter:n,is_downstream_promotion:a,recommendation_reason:r},pinner:o}){const s=t&&t.type;return n&&!a?"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||o&&o.explicitly_followed_by_me?"followed":140===i||144===i||141===i||145===i||139===i||3173===i?"related":92===i?"default":3082===i?"newsHub":null)},getHidePinAction:({feedbackData:e,feedbackType:t,pinId:i,recommendationReasonId:n,pinFeedbackType:a,complaintReason:r,throughId:o,throughProperties:s,clientTrackingParams:l})=>{const d="promoted"===t;let c,u;switch(t){case"promoted":c="promotedComplaint";break;case"search":c="unrelatedSearchPin";break;case"related":c="relatedPinHide";break;case"newsHub":c="newsHubPinHide";break;default:c="complaint"}switch(t){case"search":u={query:e.query,pin_id:i};break;case"related":u={pin:i};break;case"newsHub":u={pinId:i,newsId:e.newsId};break;default:u={complaint_reason:r||0,pin_id:i,...n?{recommendation_reason_id:n}:{},feedback_type:a||1,promoted:d,...o?{through_id:o}:{},...s?{through_properties:s}:{},...l?{client_tracking_params:l}:{}}}return{action:c,actionOptions:u}},getUnfollowAction:({board:i,feedbackType:n,makeNavigateLink:a,pinner:o,sourceInterest:s})=>{if("topic"===n){if(s){const{id:i,name:n,url_name:o}=s,l=a("topicUrl",`/topics/${o}`,n,!0),d=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:i,interest_list:r.X},title:"",subTitle:d}}}else if("followed"===n&&i&&o){const{id:n,name:r,url:s}=i||{},{explicitly_followed_by_me:l,full_name:d,username:c}=o,u=`/${c}`,p=a("boardUrl",s,r,!0),h=a("pinnerUrl",u,d,!0);let m=l?t(e.bt("You’ve unfollowed {{ formattedPinner }}’s board {{ formattedBoard }}. You can follow it again by searching for it.", "You’ve unfollowed {{ formattedPinner }}’s Board {{ formattedBoard }}. You can follow it again by searching for it.", "Confirmation text after unfollowing a board", undefined, true),{formattedPinner:h,formattedBoard:p}):t(e.bt("You’ve unfollowed {{ formattedBoard }}. You can follow it again by searching for it.", "You’ve unfollowed {{ formattedBoard }}. You can follow it again by searching for it.", "Confirmation text after unfollowing a board", undefined, true),{formattedBoard:p});return m=l?t(e.bt("You unfollowed {{ formattedPinner }} and won’t see Pins they save any more.", "You unfollowed {{ formattedPinner }} and won’t see Pins they save anymore.", "Confirmation text after unfollowing a user", undefined, true),{formattedPinner:h}):t(e.bt("You unfollowed the board {{ formattedBoard }} and won’t see Pins saved to it any more.", "You unfollowed the board {{ formattedBoard }} and won’t see Pins saved to it anymore.", "Confirmation text after unfollowing a board", undefined, true),{formattedBoard:p}),{action:"unfollowBoard",actionOptions:{board_id:n},title:"",subTitle:m}}return null}});function l(e){return null!=e&&e.reason_id?e.reason_id:null!=e&&e.board?e.board.id:null!=e&&e.pin?e.pin.id:null!=e&&e.interest?e.interest.id:""}function d(e){return null==e?void 0:e.through_properties}function c(e){switch(e){case"promoted":return 60;case"followed":case"topic":return 100;case"pfyBoard":case"pfy":return 58}}function u(e,t,i,a,r,o,s){return()=>{const l={...e,undo:!0};let d=t;"unfollowPinner"===t?d="followPinner":"unfollowBoard"===t?d="followBoard":"unfollowTopic"===t&&(d="followTopic"),(0,n.t)(d,l),o(i),s({event_type:101,component:0,element:11181,view_type:a,view_parameter:r})}}},248975:(e,t,i)=>{function n({embedSrc:e,embedType:t,images:i,preferredResolution:n}){if(!e&&!t&&!i)return"";if("gif"===t)return e||"";const a=i;if(!a)return"";if(n){const e="474x"===n&&a["474x"]||"236x"===n&&a["236x"]||a["736x"];if(e&&e.url)return e.url}const r=Object.keys(a).map((e=>{try{const t=e.split("x")[0];return Number.isNaN(Number(t))?(a[t]=a[e],t):e}catch(t){return""}}));r.sort();const o=r.pop();return a[o]&&a[o].url||""}i.d(t,{Z:()=>n})},958007:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(992750);const a=e=>(e||"").trim().replace(/\s+/g," "),r=({storyPinDataId:e,pinDescription:t,richMetadataDescription:i,richSummaryDisplayName:r,placeSummaryName:o,closeupDescription:s,closeupUnifiedDescription:l})=>!!e?a(t):a((0,n.eK)({richMetadataDescription:i,richSummaryDisplayName:r,placeSummaryName:o,closeupUnifiedDescription:l}).description)||a(l||"")||a(s)||a(t)||a(i)||""},623568:(e,t,i)=>{i.d(t,{Js:()=>s,NK:()=>y,Nc:()=>f,VX:()=>l,Zt:()=>g,_J:()=>u,_Q:()=>o,_S:()=>b,cL:()=>m,dZ:()=>w,hb:()=>v,hy:()=>c,iR:()=>r,jL:()=>d,o:()=>x,oN:()=>n,pU:()=>P,rM:()=>_,sV:()=>p,sY:()=>h});const n=5e3,a=["Uploaded by user"],r=e=>!!e&&!!e.video_list,o=e=>!!e.promoted_is_lead_ad,s=(e,t)=>{let i=e&&e.url?e.url.split("/")[1]:"";return t&&t.full_name&&(i=t.full_name),i},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},d=e=>!!e.promoter&&!e.is_downstream_promotion,c=e=>!!e,u=e=>!!e.video_status&&5!==e.video_status,p=e=>["email","messages","deep_linking"].includes(e),h=e=>!!e&&"gif"===e,m=({embedSrc:e,embedSubtype:t,embedType:i})=>!!e&&!h(i)&&!(e=>"pinstory"===e)(t),_=({link:e,mobileLink:t,trackedLink:i})=>!t&&!i&&!e,g=({link:e,mobileLink:t,origImageUrl:i,trackedLink:n})=>t||n||e||i||"",v=({isStoryPin:e,isVideoPin:t})=>e?"storyPin":t?"video":"image",y=(e,t)=>({deeplinkUri:{android:`pin/${e}/repin`,iOS:`repin/${e}`},mwebUri:{pathname:`/pin/${e}/repin/`,state:{trackingParams:t.state?t.state.trackingParams:""}}});function f(e){var t,i;return!r(e.videos)&&!c(e.story_pin_data_id)&&0!==Object.keys((null===(t=e.aggregated_pin_data)||void 0===t||null===(i=t.creator_analytics)||void 0===i?void 0:i["30d_realtime"])||{}).length}function b(e){for(const t of a)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,i;return!(null===(t=e.creator_analytics)||void 0===t||null===(i=t["30d_realtime"])||void 0===i||!i.is_realtime)}},992750:(e,t,i)=>{i.d(t,{hP:()=>u,fs:()=>l,eK:()=>d,Ly:()=>c,BY:()=>p,bN:()=>h,RC:()=>o,EU:()=>s});const n=/\s\s+/g,a=e=>e.replace(n," ");var r=i(883561);const o=({storyPinDataMetadataPinTitle:e,pinTitle:t})=>e||t,s=(e,t)=>e?e.trim().length>t?(0,r.ZP)(e.trim(),t).trim():e.trim():"",l=({pinTitle:e,gridTitle:t,richSummaryDisplayName:i,richMetadataTitle:n,storyPinDataId:a,storyPinDataMetadataPinTitle:r,placeSummaryName:o})=>{const l=r||e,d=s(t,200);return d||(i||(o||(n||(a&&l?l:null))))},d=e=>{var t,i,n,o;const{richSummaryDisplayName:s,placeSummaryName:l}=e,d=null!==(t=e.pinJoinVisualAnnotation)&&void 0!==t?t:[],c=null!==(i=e.pinJoinAnnotationsWithLinks)&&void 0!==i?i:{},u=null!==(n=e.richMetadataDescription)&&void 0!==n?n:"",p=null!==(o=e.closeupUnifiedDescription)&&void 0!==o?o:"",h=d.map((e=>(c||{})[e]||{name:e,url:""}));let m="";const _=(({richSummaryDisplayName:e,placeSummaryName:t})=>e||t||"")({richSummaryDisplayName:s,placeSummaryName:l}).toLocaleLowerCase().trim(),g=u.toLocaleLowerCase().trim(),v=p.toLocaleLowerCase().trim();return p&&p.length>3&&v!==_?m=p:u&&u.length>3&&g!==_&&(m=u),m&&(m=a((0,r.ZP)(m,496)).trim()),{description:m,annotationsWithLinks:h}},c=({pinTitle:e,gridTitle:t,richSummaryDisplayName:i,richMetadataTitle:n,storyPinDataId:a,storyPinDataMetadataPinTitle:r,placeSummaryName:o,pinJoinVisualAnnotation:s,pinJoinAnnotationsWithLinks:c})=>{const{annotationsWithLinks:u}=d({pinJoinVisualAnnotation:s,pinJoinAnnotationsWithLinks:c}),p=(u||[]).map((e=>e.name)),h=e=>(e||[])[0]||null;return l({pinTitle:e,gridTitle:t,richSummaryDisplayName:i,richMetadataTitle:n,storyPinDataId:a,storyPinDataMetadataPinTitle:r,placeSummaryName:o})||h(s)||h(p)||e},u=(e,t,i,n)=>{var a;let r=(a=e,"string"==typeof a?a:"").trim();return i?(n&&n.trim().length&&(r=n),i.length>0&&(r&&(r+=" "),r+=i.join(", ")),r):n&&n.trim().length?n:r},p=e=>`/pin/${e}/`,h=({pinId:e,seoUrl:t})=>t&&"string"==typeof t?t:p(e)},467570:(e,t,i)=>{i.d(t,{$:()=>d,GH:()=>l,JF:()=>g,Jb:()=>h,MI:()=>_,sl:()=>u,we:()=>p});var n=i(935879),a=i(713930),r=i(816068),o=i(6637),s=i(867820);const l="274266067164",d=["public_profile","email","user_birthday","user_friends"],c=["picture.type(large)","id","first_name","last_name","email","gender","birthday"],u=e=>{e&&(0,s.dy)({event:"load_script_success",provider:"facebook"}),"undefined"!=typeof window&&window.FB?(e&&(0,s.dy)({event:"initialize_library",provider:"facebook"}),window.FB.init({appId:l,status:!0,xfbml:!0,version:"v2.7"})):e&&(0,s.dy)({event:"global_object_not_found",provider:"facebook"})},p=(e,t)=>{t&&(0,s.dy)({event:"load_script_start",provider:"facebook"});return(0,a.Z)((0,n.Z)(e),"FACEBOOK").then((()=>u(t)))},h=()=>new Promise((e=>{"undefined"!=typeof window&&window.FB&&window.FB.getLoginStatus(e)})),m=({userID:e,accessToken:t,data:{birthday:i,email:n,first_name:a,gender:o,last_name:s,picture:l}})=>({type:"facebook",facebook_id:e,facebook_token:t,birthday:i?(0,r.Z)(i):void 0,email:n,first_name:a,gender:o,image_url:l&&!l.data.is_silhouette?l.data.url:void 0,last_name:s});async function _(e){var t;const i=(null===(t=(await o.Z.create("ApiResource",{url:"/v3/facebook/profile_data/",data:{access_token:e,pii_safe_birthday:!0,fields:c.join(",")}}).callCreate()).resource_response)||void 0===t?void 0:t.data)||{};return{access_token:e,birthday:i.birthday,email:i.email,first_name:i.first_name,gender:i.gender,id:i.id,last_name:i.last_name,picture:i.picture}}const g=()=>new Promise((e=>{window.FB.login(e,{scope:d.join(",")})})).then((e=>((e,t)=>new Promise(((i,n)=>{if("connected"!==e.status)return void n({status:e.status||"unknown"});const{userID:a,accessToken:r}=e.authResponse;_(r).then((e=>{i({creds:{facebook_id:a,facebook_token:r,facebook_autologin:(null==t?void 0:t.autologin)||!1},signupOptions:m({userID:a,accessToken:r,data:e})})}),n)})))(e)))},935879:(e,t,i)=>{i.d(t,{Z:()=>n});const n=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`},760372:(e,t,i)=>{i.d(t,{X:()=>n});const n="favorited"},813401:(e,t,i)=>{i.d(t,{kf:()=>g,l5:()=>m,of:()=>p,xC:()=>_,yz:()=>h});var n=i(667294),a=i(172071),r=i(829407),o=i(807609),s=i(30287),l=i(425288),d=i(785893);const{Provider:c,useMaybeHook:u}=(0,l.Z)("PwaContext"),p=({children:e,initialContext:t})=>{const[i,o]=(0,n.useState)(null),l=t||{pwaType:"unknown",twaType:null},u=l.pwaType;(0,r.Z)((()=>{const e=(0,s.FB)(window)||"unknown";o(e),u!==e&&a.Z.increment("pwa.type_mismatch",1,{serverPwaType:u,clientPwaType:e,conflict:"unknown"!==u&&"unknown"!==e})}));const p="unknown"===u&&i?i:u,h=l.twaType,m=(0,n.useMemo)((()=>({pwaType:p,twaType:h})),[p,h]);return(0,d.jsx)(c,{value:m,children:e})},h=()=>{var e;const t=u();return null!==(e=null==t?void 0:t.pwaType)&&void 0!==e?e:"unknown"},m=()=>{var e;const t=u();return null!==(e=null==t?void 0:t.twaType)&&void 0!==e?e:null},_=()=>"android-twa"===h(),g=()=>{const e=h(),t=(0,o.Z)();return"unknown"===e&&t?null:"windows"===e}},311560:(e,t,i)=>{i.d(t,{Z:()=>n});const n=e=>{switch(e){case"BR":case"MX":case"AR":case"CL":case"CO":return"LatAm";case"US":return"US";default:return"OTHER"}}},561195:(e,t,i)=>{i.d(t,{A:()=>l,Z:()=>d});var n=i(667294),a=i(498913),r=i.n(a),o=i(883119),s=i(785893);const l=({fill:e,width:t,color:i})=>{const a="half"===e?(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(o.xu,{position:"absolute",children:(0,s.jsx)(o.JO,{accessibilityLabel:"",color:"default",icon:"star-half",size:12})}),(0,s.jsx)(o.JO,{accessibilityLabel:"",color:"subtle",icon:"star",size:12})]}):(0,s.jsx)(o.JO,{accessibilityLabel:"",color:"full"===e?"default":"subtle",icon:"star",size:12});return(0,s.jsx)(o.xu,{dangerouslySetInlineStyle:{__style:{marginRight:"3px"}},display:"inlineBlock","data-test-id":`rating-star-${e}`,children:a})};function d({max_rating:e,rating:t,width:i,color:a}){const o=[],d=function(e,t){return 5*(t=t<=e?t:e)/e}(parseFloat(e)||5,parseFloat(t)||0);if(Number.isNaN(d))return null;const c=Math.floor(d),u=d-c;return r()(c,(e=>o.push((0,s.jsx)(l,{color:a,fill:"full",width:i},e)))),u>=.75?o.push((0,s.jsx)(l,{color:a,fill:"full",width:i},o.length)):u>=.25&&o.push((0,s.jsx)(l,{color:a,fill:"half",width:i},o.length)),r()(5-o.length,(()=>o.push((0,s.jsx)(l,{color:a,fill:"empty",width:i},o.length)))),(0,s.jsx)(n.Fragment,{children:o})}},923297:(e,t,i)=>{function n({m:e=0,h:t=0}){let i;return i=t<=0?t:e>45?t+1:e>15?t+.5:t,{m:e,h:t,rm:t>0?0:e,rh:i}}function a(e){const t=Math.floor(e/3600);return n({m:Math.floor(e%3600/60),h:t})}i.d(t,{X:()=>n,u:()=>a})},505920:(e,t,i)=>{i.d(t,{UZ:()=>u,Z8:()=>p,my:()=>h});var n=i(667294),a=(i(702664),i(6637)),r=i(425288),o=i(785893);function s(e,t,i){var n;const a=[...null!==(n=t[e][i.payload.name])&&void 0!==n?n:[],i.payload.handler],r={...t};return r[e]={...t[e],[i.payload.name]:a},r}function l(e,t,i){if(!t[e][i.payload.name])return t;const n=t[e][i.payload.name].filter((e=>e!==i.payload.handler)),a={...t};return a[e]={...t[e],[i.payload.name]:n},a}const{Provider:d,useHook:c}=(0,r.Z)("ResourceContext");function u({children:e}){const[{listeners:t,moreListeners:i},r]=(0,n.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:{}});a.Z.fetchCompleteCallback=({resource:e,options:i,response:n,normalizedResponse:a,refresh:r,resourceSchema:o})=>{t[e]&&t[e].forEach((t=>t({isRefresh:r,normalizedResponse:a,options:i,schema:o,resource:e,response:n})))},a.Z.fetchMoreCompleteCallback=({resource:e,options:t,response:n,normalizedResponse:a,refresh:r,resourceSchema:o})=>{i[e]&&i[e].forEach((i=>i({isRefresh:r,normalizedResponse:a,options:t,schema:o,resource:e,response:n})))};const c=(0,n.useMemo)((()=>({listenerDispatch:r})),[]);return(0,o.jsx)(d,{value:c,children:e})}function p(e,t){const{listenerDispatch:i}=c();(0,n.useEffect)((()=>(i({type:"addListener",payload:{name:e,handler:t}}),()=>{i({type:"removeListener",payload:{name:e,handler:t}})})))}function h(e,t){const{listenerDispatch:i}=c();(0,n.useEffect)((()=>(i({type:"addMoreListener",payload:{name:e,handler:t}}),()=>{i({type:"removeMoreListener",payload:{name:e,handler:t}})})))}},134185:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(785893);const a=e=>{const t=e.itemType?{itemScope:!0,itemType:e.itemType}:{};return(0,n.jsx)("div",{"data-test-id":"rich-pin-information",...t,children:e.children||null})}},578661:(e,t,i)=>{i.d(t,{G:()=>n});const n="https://schema.org/Recipe"},857079:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(883119),a=i(785893);function r({accessibilityLabel:e}){return(0,a.jsx)(n.kC,{alignItems:"center",justifyContent:"center",children:(0,a.jsx)(n.$j,{accessibilityLabel:e,show:!0})})}},995228:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),a=i(966476),r=i(464228),o=i(785893);function s({children:e,fallback:t,dangerouslyServerRenderForGraphQL:i=!1}){const s=t||null,l=(0,a.Z)(),d=(0,r.P)();return d&&"legacy"!==d?i||l?(0,o.jsx)(n.Suspense,{fallback:s,children:e}):s:(0,o.jsx)(n.Suspense,{fallback:s,children:e})}},947599:(e,t,i)=>{i.d(t,{Z:()=>n});const n=i(995228).Z},740990:(e,t,i)=>{i.d(t,{Z:()=>n});const n=(0,i(667294).createContext)("undefined"!=typeof window?window:null)},862628:(e,t,i)=>{function n(e){return(e||"").trim().replace(/\s+/g," ")}i.d(t,{Z:()=>n})},706922:(e,t,i)=>{function n(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function a(e,t){if(n(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(let r=0;r<i.length;r+=1)if(!Object.prototype.hasOwnProperty.call(t,i[r])||!n(e[i[r]],t[i[r]]))return!1;return!0}i.d(t,{Z:()=>a})},90771:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(785893);function a({size:e=56}){return(0,n.jsxs)("svg",{fill:"none",height:e,width:e,viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,n.jsx)("rect",{fill:"#1a73e8",height:"56",rx:"28",width:"56"}),(0,n.jsx)("path",{d:"m37.086 39.782h-18.454c-2.624 0-4.914-1.983-4.914-4.607v-.028 1.536c0 2.624 2.29 4.913 4.914 4.913h18.454c2.653 0 4.914-2.317 4.914-4.913v-1.536c0 2.624-2.29 4.635-4.914 4.635zm-23.395-13.234v-2.094l-3.434-5.667c-.196-.307-.28-.586-.252-.866v2.401c0 .224.084.447.223.698z",fill:"#185abc"}),(0,n.jsx)("path",{d:"m37.086 17h-25.853c-1.033 0-1.619.893-.92 1.843l3.377 5.863v10.469c0 2.68 1.955 4.914 4.607 4.914h18.761c2.653 0 4.914-2.262 4.914-4.914v-13.233c.028-2.68-2.234-4.942-4.886-4.942z",fill:"#fff"}),(0,n.jsx)("path",{d:"m36.78 24.39h-17.842c-.782 0-1.535-.474-1.535-1.228 0-.753.753-1.228 1.535-1.228h17.84c.782 0 1.536.475 1.536 1.228 0 .754-.754 1.229-1.536 1.229zm0 4.915h-17.842c-.782 0-1.535-.475-1.535-1.229s.753-1.228 1.535-1.228h17.84c.782 0 1.536.474 1.536 1.228s-.754 1.229-1.536 1.229zm-4.942 4.941h-12.928c-.782 0-1.535-.474-1.535-1.228s.753-1.229 1.535-1.229h12.927c.781 0 1.535.475 1.535 1.229s-.754 1.228-1.535 1.228z",fill:"#8ab4f8"})]})}},31149:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(785893);function a({size:e=56}){return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,n.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#EFEFEF"}),(0,n.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,i)=>{i.d(t,{Z:()=>a});var n=i(785893);function a({size:e=56}){return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,n.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,n.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"})]})}},214680:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(785893);function a({size:e=56}){return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,n.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"url(#paint0_linear_4144_9512)"}),(0,n.jsx)("path",{d:"M27.7512 13C23.3085 13 19.0478 14.47 15.9063 17.0867C12.7649 19.7033 11 23.2522 11 26.9526C11.004 29.3596 11.7556 31.7247 13.1816 33.8182C14.6076 35.9117 16.6595 37.6624 19.138 38.9C18.4779 40.3778 17.4878 41.7636 16.2089 43C18.6891 42.5646 21.0173 41.65 23.0123 40.3273C24.5505 40.708 26.1465 40.9027 27.7512 40.9053C32.1939 40.9052 36.4546 39.4352 39.5961 36.8186C42.7375 34.202 44.5024 30.6531 44.5024 26.9526C44.5024 23.2522 42.7375 19.7033 39.5961 17.0867C36.4546 14.47 32.1939 13 27.7512 13Z",fill:"white"}),(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:"paint0_linear_4144_9512",x1:"28.4444",y1:"52.2827",x2:"28.4444",y2:"6.94986",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#0CBD2A"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#5BF675"})]})})]})}},331744:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(785893);function a({size:e=56}){return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,n.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,n.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,n.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,i)=>{i.d(t,{Z:()=>a});var n=i(785893);function a({size:e=56}){return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,n.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#fff"}),(0,n.jsx)("rect",{x:".5",y:".5",width:"55",height:"55",rx:"27.5",stroke:"#767676",strokeOpacity:".4"}),(0,n.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,n.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,n.jsx)("defs",{children:(0,n.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,n.jsx)("stop",{stopColor:"#09F"}),(0,n.jsx)("stop",{offset:".61",stopColor:"#A033FF"}),(0,n.jsx)("stop",{offset:".935",stopColor:"#FF5280"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#FF7061"})]})})]})}},862960:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(785893);function a({size:e=56}){return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,n.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"url(#paint0_linear_4401_2673)"}),(0,n.jsx)("path",{d:"M22.452 39.991c-.907 0-.753-.342-1.066-1.206l-2.667-8.779 20.533-12.181",fill:"#C8DAEA"}),(0,n.jsx)("path",{d:"M22.452 39.991c.7 0 1.01-.32 1.4-.7l3.734-3.63-4.657-2.808",fill:"#A9C9DD"}),(0,n.jsx)("path",{d:"m22.928 32.854 11.284 8.336c1.288.71 2.217.343 2.538-1.195l4.593-21.645c.47-1.885-.719-2.74-1.95-2.181l-26.971 10.4c-1.841.738-1.83 1.765-.336 2.223l6.921 2.16 16.024-10.109c.757-.458 1.45-.212.881.294",fill:"url(#paint1_linear_4401_2673)"}),(0,n.jsxs)("defs",{children:[(0,n.jsxs)("linearGradient",{id:"paint0_linear_4401_2673",x1:"37.352",y1:"9.352",x2:"23.352",y2:"42",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#37AEE2"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#1E96C8"})]}),(0,n.jsxs)("linearGradient",{id:"paint1_linear_4401_2673",x1:"31.096",y1:"27.16",x2:"35.466",y2:"37.116",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#EFF7FC"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#fff"})]})]})]})}},464240:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(785893);function a({size:e=56}){return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,n.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#1DA1F2"}),(0,n.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"})]})}},89396:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(785893);function a({size:e=56}){return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,n.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#7360F2"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.362 31.327s.57.05.875-.33l.597-.75c.288-.374.984-.61 1.665-.232.902.509 2.067 1.309 2.866 2.054.44.371.542.918.242 1.495l-.002.012a6.278 6.278 0 0 1-1.243 1.53l-.012.009c-.587.489-1.261.773-1.983.538l-.013-.018c-1.296-.367-4.405-1.952-6.386-3.532-3.242-2.558-5.546-6.776-6.183-9.038l-.02-.013c-.235-.724.052-1.398.539-1.984l.01-.01a6.224 6.224 0 0 1 1.53-1.243l.012-.003c.576-.3 1.122-.198 1.494.243.49.505 1.408 1.721 2.054 2.865.378.68.141 1.377-.231 1.664l-.752.598c-.379.306-.33.876-.33.876s1.113 4.207 5.271 5.269Zm6.543-3.488a.405.405 0 0 1-.406-.403c-.018-2.44-.752-4.384-2.178-5.776-1.43-1.393-3.236-2.108-5.37-2.122a.403.403 0 0 1-.4-.408.403.403 0 0 1 .403-.402h.003c2.35.016 4.344.808 5.93 2.352 1.586 1.55 2.402 3.687 2.422 6.35a.406.406 0 0 1-.401.409h-.003Zm-2.127-.832h-.01a.405.405 0 0 1-.395-.414c.032-1.384-.364-2.503-1.208-3.425-.84-.918-1.993-1.42-3.527-1.532a.406.406 0 0 1-.374-.433.406.406 0 0 1 .433-.375c1.725.127 3.093.73 4.065 1.794.977 1.066 1.456 2.409 1.42 3.989a.406.406 0 0 1-.404.396Zm-2.077-.696a.404.404 0 0 1-.404-.386c-.068-1.373-.716-2.045-2.036-2.117a.404.404 0 1 1 .043-.808c1.744.093 2.712 1.092 2.8 2.886a.403.403 0 0 1-.383.423l-.02.002Zm9.09 4.625c-.808 6.503-5.563 6.913-6.44 7.195-.374.12-3.843.982-8.203.698 0 0-3.251 3.92-4.266 4.94-.158.159-.344.223-.469.194-.175-.043-.223-.251-.22-.553l.027-5.354v-.001c-6.35-1.764-5.98-8.394-5.908-11.864.072-3.47.724-6.315 2.661-8.227 3.48-3.152 10.65-2.681 10.65-2.681 6.054.027 8.955 1.85 9.628 2.46 2.234 1.912 3.371 6.49 2.54 13.193Zm-.87-14.817c-.796-.73-4.01-3.064-11.167-3.096 0 0-8.44-.51-12.554 3.267-2.29 2.29-3.096 5.64-3.181 9.797-.085 4.157-.195 11.944 7.311 14.056l.008.002-.005 3.221s-.047 1.306.812 1.572c1.039.322 1.648-.669 2.641-1.738a88.708 88.708 0 0 0 1.863-2.107c5.135.43 9.082-.556 9.532-.701 1.036-.337 6.902-1.088 7.857-8.876.984-8.03-.477-13.106-3.117-15.397Z",fill:"#fff"})]})}},22641:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(785893);function a({size:e=56}){return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,n.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#25D366"}),(0,n.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"})]})}},619277:(e,t,i)=>{i.d(t,{o$:()=>a,ty:()=>r,vE:()=>o});var n=i(425288);const{Provider:a,MaybeConsumer:r,useMaybeHook:o}=(0,n.Z)("inviteContext")},296011:(e,t,i)=>{i.d(t,{Z:()=>l,t:()=>d});var n=i(667294),a=i(6637),r=i(167912);function o(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const s={};class l extends n.Component{constructor(...e){super(...e),o(this,"state",{invite:s[this.props.invite_code]||null,loaded:this.props.invite_code in s})}componentDidMount(){const{invite_code:e}=this.props;a.Z.create("InviteCodeMetadataResource",{invite_code:e}).callGet().then((t=>{if(t&&t.resource_response){const i=t.resource_response.data;s[e]=i,this.setState({invite:i,loaded:!0})}})).catch((()=>{this.setState({invite:null,loaded:!0})}))}render(){const{invite:e,loaded:t}=this.state;return t?this.props.children(e):null}}class d extends n.Component{constructor(...e){super(...e),o(this,"state",{invite:s[this.props.invite_code]||null,loaded:this.props.invite_code in s})}componentDidMount(){const{invite_code:e,relayEnvironment:t,inviteQuery:i}=this.props;(0,r.fetchQuery)(t,i,{invite_code:e}).subscribe({next:e=>{var t;if(null!==(t=e.v3GetInviteCodeQuery)&&void 0!==t&&t.data){const t=e.v3GetInviteCodeQuery;this.setState({invite:t,loaded:!0})}},error:()=>{this.setState({invite:null,loaded:!0})}})}render(){const{invite:e,loaded:t}=this.state;return t?this.props.children(e):null}}},867060:(e,t,i)=>{i.d(t,{c:()=>n,y:()=>a});const n={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},a={pin:1,board:2,did_it:6,pinner:3,user:3,today_article:8}},226347:(e,t,i)=>{i.d(t,{Hx:()=>h,RC:()=>p,Wr:()=>u});var n=i(667294),a=i(311541),r=i(425288),o=i(924687),s=i(785893);const l=()=>Promise.resolve().then(i.bind(i,924687)),{Provider:d,useHook:c}=(0,r.Z)("IdeaPinVideoPlayer");function u({children:e}){const[t,i]=(0,a.Z)(l,o.initialState),r=(0,n.useMemo)((()=>({dispatch:i,ideaPinVideoPlayerControls:t})),[i,t]);return(0,s.jsx)(d,{value:r,children:e})}function p(){const{dispatch:e}=c();return(0,n.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}=c();return e}},924687:(e,t,i)=>{i.r(t),i.d(t,{default:()=>a,initialState:()=>n});const n={seekTime:void 0,seekingIdeaPin:!1,currentProgressInfo:{currentTime:0,duration:0}};function a(e=n,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}}},936776:(e,t,i)=>{i.d(t,{Z:()=>a});const n=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,a=e=>n.test(e)},927104:(e,t,i)=>{i.d(t,{Z:()=>n});const n=(e,t)=>e.length>t?e.substr(0,t-3).trim()+"…":e},883561:(e,t,i)=>{i.d(t,{ZP:()=>n});function n(e,t=80,i="…",n=false){let a;if(!e)return"";if(e.length<=t)return e;if(" "!==e[t-1]&&" "===e[t]||n)a=e.substring(0,t);else{const i=e.lastIndexOf(" ",t);a=e.substring(0,i)}return a=a.replace(/[\- _,.<>:;+=*&@~\/\|!]*$/,""),a+i}},477802:(e,t,i)=>{i.d(t,{W:()=>o,Z:()=>r});var n=i(883119),a=i(785893);function r({data:e}){return(0,a.jsx)(n.xu,{overflow:"auto",dangerouslySetInlineStyle:{__style:{border:"2px solid red"}},"data-test-id":"debug-info",children:(0,a.jsx)("pre",{children:JSON.stringify(e,null,2).replace(/\\n/g,"\n")})})}const o=e=>(0,a.jsx)(n.xu,{width:236,dangerouslySetInlineStyle:{__style:{marginTop:10}},children:(0,a.jsx)(r,{...e})})},948618:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(883119),a=i(785893);function r({ariaHidden:e=!1,color:t="darkGray",size:i}){return(0,a.jsx)("span",{"aria-hidden":e,style:{padding:"0 4px"},children:(0,a.jsx)(n.xv,{color:t,inline:!0,size:null!=i?i:"200",children:"·"})})}},753311:(e,t,i)=>{i.d(t,{M:()=>o,Q:()=>r});var n=i(667294);const a=(0,n.createContext)(null),r=()=>(0,n.useContext)(a),o=a.Provider},690035:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(753311);const a=()=>{const e=(0,n.Q)();return t=>{if(e){const{pinId:i,location:n,seoPlacementConfig:a}=t;e.showUnauthContextMenu({pinId:i,location:n,seoPlacementConfig:a})}}}},170168:(e,t,i)=>{i.d(t,{Ag:()=>r,C0:()=>l,Vi:()=>o,YD:()=>u,kS:()=>a,oo:()=>s,vC:()=>d,vI:()=>c});var n=i(401060);const a="https://www.pinterest.com/business/hub/",r="https://www.pinterest.com/homefeed/",o="www.pinterest.com",s="https://help.pinterest.com",l="https://www.pinterest.com",d=(0,n.Z)({site:"developers"}),c=`${(0,n.Z)({site:"sterling"})}`,u=`${(0,n.Z)({site:"analytics"})}`},250059:(e,t,i)=>{i.d(t,{Z:()=>n});const n=e=>e?"string"==typeof e?e:e.pathname?e.pathname:"":""},508847:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(567831);const a=(e,t)=>0===e.lastIndexOf(t,0),r=({url:e})=>{const t=(0,n.Z)("/");return a(e,t)?e.substr(t.length-1):e}},311541:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(667294);function a(e,t){const i=(0,n.useRef)([]),[a,r]=(0,n.useState)(),[o,s]=(0,n.useReducer)(null!=a?a:()=>t,t),l=(0,n.useCallback)((t=>{a?s(t):(i.current.length||e().then((e=>{r((()=>e.default))})),i.current=[...i.current,t])}),[e,a]);return(0,n.useEffect)((()=>{a&&(i.current.forEach(s),i.current=[])}),[a]),[o,l]}},807609:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(411465),a=i(966476);const r=()=>{const e=(0,n.Z)(),t=(0,a.Z)();return e&&!t}},411465:(e,t,i)=>{i.d(t,{G:()=>s,Z:()=>l});var n=i(667294),a=i(276775),r=i(785893);const o=(0,n.createContext)(!0);function s({children:e}){const t=(0,a.useLocation)(),[i,s]=(0,n.useState)(!0),l=(0,n.useRef)(t);return(0,n.useEffect)((()=>{l.current!==t&&(l.current=t,s(!1))}),[t]),(0,r.jsx)(o.Provider,{value:i,children:e})}function l(){return(0,n.useContext)(o)}},46584:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294);const a=new Map;let r=null;const o=e=>{e.forEach((e=>{const t=a.get(e.target);t&&t(e)}))};function s({onVisibilityChanged:e,inAdsDesktopVideoExperiment:t,trackFullVisible:i,rootMargin:s}){const l=(0,n.useRef)(null);let d=!1;const c=()=>{var t;l.current instanceof HTMLElement&&(t=l.current,a.has(t))&&(d&&(e(!1),d=!1))},u=(0,n.useCallback)((n=>{l.current instanceof HTMLElement&&((e,t="-64px 0px 0px 0px",i)=>{const n={root:"undefined"==typeof document?null:document.querySelector("#mainContainer"),rootMargin:t,threshold:[0,.5,1]};r=r||new window.IntersectionObserver(o,n),a.set(e,i),r.observe(e)})(l.current,n,(n=>{if(!a.has(l.current))return;const r=t?n.intersectionRatio>=.5:n.intersectionRatio>0||n.isIntersecting,o=i?n.intersectionRatio>=1:r,s=i?0===n.intersectionRatio:!o;!d&&o?(t=>{const i=t.intersectionRatio>0||t.isIntersecting;d=i,d&&e(!0)})(n):d&&s&&c()}))}),[l.current]);return(0,n.useEffect)((()=>(u(s),()=>{var e;l.current instanceof HTMLElement&&(c(),e=l.current,r.unobserve(e),a.delete(e))})),[u]),l}},644035:(e,t,i)=>{i.d(t,{GW:()=>a,RL:()=>n,s4:()=>r});const n="ios",a="android",r="ipad"},562559:(e,t,i)=>{i.d(t,{Z:()=>b});var n=i(667294),a=i(867631),r=i.n(a),o=i(112690),s=i(19121),l=i(965900),d=i(773285),c=i(780280),u=i(883119),p=i(969315),h=i(179888),m=i(226347),_=i(785893);function g(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const v=(e,t)=>{if(t){const i="control"===t?"v3.pinimg.com":"v2.pinimg.com";return e.replace("v.pinimg.com",i)}return e},y=(e,t)=>"string"==typeof e?v(e,t):Array.isArray(e)?((e,t)=>e[0].src&&t?[{...e[0],src:v(e[0].src,t)}]:e)(e,t):e;class f extends n.PureComponent{constructor(...e){super(...e),g(this,"state",{canPlayVideo:!1,isManifestParsed:!1,playbackState:h.Cy.DEFAULT,videoStartTime:this.props.seekTime||0}),g(this,"errorRetryCount",1),g(this,"firstFragBuffered",!1),g(this,"hasPlaybackStarted",!1),g(this,"hasVideoSessionStarted",!1),g(this,"hasVideoSessionEnded",!1),g(this,"hls",null),g(this,"fragStartupTime",{}),g(this,"lastLevelSwitchKbps",null),g(this,"lastStallTime",null),g(this,"lastPauseTime",null),g(this,"logSessionStartOnNextPlay",!1),g(this,"playerId",""),g(this,"videoSessionId",""),g(this,"videoVisibleTime",null),g(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?v(this.props.src,this.props.quicExpGroup):v(this.props.src[0].src,this.props.quicExpGroup),totalStallDurationMs:0,totalPauseDurationMs:0,videoCreatedTime:null}),g(this,"initializeHls",(()=>{this.destroyHls();const{src:e,hlsConfig:t,quicExpGroup:i}=this.props,n=new(r())(t),a=y(e,i);n.loadSource(a),this.videoPlayerRef&&n.attachMedia(this.videoPlayerRef.video),n.on(r().Events.FRAG_BUFFERED,this.handleHlsFragBuffered),n.on(r().Events.FRAG_CHANGED,this.handleHlsFragChanged),n.on(r().Events.FRAG_LOADING,this.handleHlsFragLoading),n.on(r().Events.FRAG_LOADED,this.handleHlsFragLoaded),n.on(r().Events.MANIFEST_PARSED,(()=>{this.setState({isManifestParsed:!0})})),n.on(r().Events.LEVEL_SWITCHED,this.handleHlsLevelSwitched),n.on(r().Events.ERROR,this.handleHlsError),this.hls=n})),g(this,"destroyHls",(()=>{const{hls:e}=this;e&&e.destroy()})),g(this,"addSegment",(e=>{const{segments:t}=this.playbackPerformance,i=t&&t[t.length-1];if(this.hls&&t.length&&i&&i.uri!==e.url){this.updateWatchDurationForCurrentSegment();const i=this.videoPlayerRef&&this.videoPlayerRef.video,n=this.hls&&this.hls.levels||{},a="number"==typeof e.level?n[e.level]:{},r=this.fragStartupTime[e.url];let o=-1;r&&r.startLoadTime&&r.endLoadTime&&(o=r.endLoadTime-r.startLoadTime);const s={indicatedKbps:a.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:a.width,sourceHeight:a.height,startupTimeMs:o,switchBitrateKbps:this.lastLevelSwitchKbps||-1,uri:e.url,viewportWidth:i&&i.clientWidth||-1,viewportHeight:i&&i.clientHeight||-1,watchedDurationMs:0};t.push(s)}})),g(this,"initializeSegments",(e=>{const{contextLogData:t={}}=this.props,{is_closeup_video:i=!1}=t,{segments:n}=this.playbackPerformance;if(!n.length)if(this.hls&&this.videoPlayerRef&&this.videoPlayerRef.video&&e){if(!n.length&&"number"==typeof e.level){const t=this.videoPlayerRef&&this.videoPlayerRef.video,i=this.hls.levels,a="number"==typeof e.level?i[e.level]:{},r=this.fragStartupTime[e.url];let o=-1;r&&r.startLoadTime&&r.endLoadTime&&(o=r.endLoadTime-r.startLoadTime),this.lastLevelSwitchKbps=this.hls.bandwidthEstimate/h.bR;const s={indicatedKbps:a.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:a.width,sourceHeight:a.height,startupTimeMs:o,switchBitrateKbps:this.lastLevelSwitchKbps||-1,uri:e.url,viewportWidth:t.clientWidth,viewportHeight:t.clientHeight,watchedDurationMs:0};n.push(s)}}else(0,p.tE)("initializeSegmentsFailed",!0,i)})),g(this,"getCurrentVideoTime",(()=>this.videoPlayerRef&&this.videoPlayerRef.video?this.videoPlayerRef.video.currentTime*h.gJ:null)),g(this,"handleCanPlayVideo",(e=>{const{contextLogData:t={},onReady:i,playing:n}=this.props,{is_closeup_video:a=!1}=t,{canPlayVideo:r}=this.state;(0,p.tE)("handleCanPlayVideo",!0,a,{firstCanPlayEvent:!r,playing:n}),this.playbackPerformance.hasFatalError=!1,r||(this.playbackPerformance.canPlayTime=new Date),this.setState({canPlayVideo:!0}),i&&i(e)})),g(this,"handleEnded",(e=>{const{loop:t,onEnded:i}=this.props,{segments:n}=this.playbackPerformance,a=n&&n[n.length-1];t&&this.videoPlayerRef&&this.videoPlayerRef.video?(this.updateWatchDurationForCurrentSegment(),a&&(a.lastStartPlayTime=0),this.fragStartupTime={}):t||this.logPlaybackPerformance(h.$f,{initiator:"videoEnded",loop:t}),this.setState({playbackState:h.Cy.ENDED}),i&&i(e)})),g(this,"handleHlsError",((e,t)=>{var i;const{contextLogData:n={}}=this.props,{is_closeup_video:a=!1}=n;if(this.playbackPerformance.detailedErrors+=`${this.playbackPerformance.detailedErrors.length>0?", ":""}${t.details}`,t.fatal){var o,s,l,d;this.playbackPerformance.hasFatalError=!0,this.playbackPerformance.errorName=t.type,this.playbackPerformance.errorReason=t.details,this.playbackPerformance.errorCode=t.response&&t.response.code?t.response.code:0;const e={errorName:t.type,errorReason:t.details,errorRetryCount:this.errorRetryCount,errorMessage:(null===(o=t.err)||void 0===o||null===(s=o.message)||void 0===s?void 0:s.slice(0,50))||"unknown",errorResponse:(null===(l=t.response)||void 0===l||null===(d=l.text)||void 0===d?void 0:d.slice(0,50))||"unknown",playbackState:this.state.playbackState};if((0,p.tE)("fatalError",!0,a,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 c;const{src:e,quicExpGroup:t}=this.props,i=y(e,t);null===(c=this.hls)||void 0===c||c.loadSource(i)}else{var u;null===(u=this.hls)||void 0===u||u.startLoad()}break;case r().ErrorTypes.MEDIA_ERROR:null===(i=this.hls)||void 0===i||i.recoverMediaError()}}this.updateWatchDurationForCurrentSegment(),this.setState({playbackState:h.Cy.FAILED})})),g(this,"handleHlsFragBuffered",((e,t)=>{this.firstFragBuffered||(this.initializeSegments(t.frag),this.firstFragBuffered=!0)})),g(this,"handleHlsFragChanged",((e,t)=>{this.addSegment(t.frag)})),g(this,"handleHlsFragLoading",((e,t)=>{var i;const n=null===(i=t.frag)||void 0===i?void 0:i.url;n&&!this.fragStartupTime[n]&&(this.fragStartupTime[n]={startLoadTime:new Date})})),g(this,"handleHlsFragLoaded",((e,t)=>{var i;t.frag&&t.frag.loaded&&(this.playbackPerformance.downloadedKiloBytes+=t.frag.loaded/h.Fm);const n=null===(i=t.frag)||void 0===i?void 0:i.url;n&&this.fragStartupTime[n]&&this.fragStartupTime[n].startLoadTime&&(this.fragStartupTime[n].endLoadTime=new Date)})),g(this,"handleHlsLevelSwitched",(()=>{this.hls&&this.hls.bandwidthEstimate&&(this.lastLevelSwitchKbps=this.hls.bandwidthEstimate/h.bR)})),g(this,"handleLoadedMetadata",(()=>{this.setState({playbackState:h.Cy.LOADED_METADATA})})),g(this,"handleLoadStart",(()=>{this.playbackPerformance.loadStartTime=new Date,this.setState({playbackState:h.Cy.LOAD_START})})),g(this,"handleLoadedData",(()=>{this.setState({playbackState:h.Cy.LOADED_DATA})})),g(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()})),g(this,"handleUserPause",(e=>{const{onControlsPause:t}=this.props;this.lastPauseTime=new Date,t&&t(e)})),g(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})})),g(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})})),g(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})})),g(this,"handleTimeUpdate",(e=>{const{onTimeChange:t}=this.props;t&&t(e),this.state.playbackState===h.Cy.PLAYING&&(this.updateWatchDurationForCurrentSegment(),this.setLastSegmentStartPlayTime())})),g(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]})),g(this,"setLastSegmentStartPlayTime",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.lastStartPlayTime&&(t.lastStartPlayTime=this.getCurrentVideoTime())})),g(this,"setLastSegmentPlaybackStartDate",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.playbackStartDate&&(t.playbackStartDate=Date.now())})),g(this,"setPlaybackStartTime",(()=>{this.hasPlaybackStarted||(this.playbackPerformance.playbackStartTimestamp=Date.now(),this.hasPlaybackStarted=!0)})),g(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)}})),g(this,"updateStallDuration",(()=>{null!==this.lastStallTime&&(this.playbackPerformance.totalStallDurationMs+=new Date-this.lastStallTime,this.lastStallTime=null)})),g(this,"updatePauseDuration",(()=>{if(null!==this.lastPauseTime){const e=this.lastPauseTime;this.playbackPerformance.totalPauseDurationMs+=new Date-e,this.lastPauseTime=null}})),g(this,"updateWatchDurationForCurrentSegment",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1],i=t?t.lastStartPlayTime:null,n=this.getCurrentVideoTime();if(t&&null!==i&&"number"==typeof n&&"number"==typeof i){const e=n-i;e>0&&(t.watchedDurationMs+=e,t.lastStartPlayTime=null)}})),g(this,"logPlaybackPerformance",((e,t)=>{const{contextLogData:i={},userId:n,isAutoPlay:a,logContextEvent:r}=this.props,{is_closeup_video:o=!1}=i,{canPlayTime:s,detailedErrors:l,downloadedKiloBytes:d,errorCode:c,errorName:u,errorReason:m,hasFatalError:_,playbackStartTimestamp:g,totalPauseDurationMs:v,totalStallDurationMs:y,segments:f,srcString:b,loadStartTime:x,numberOfStalls:P,numberOfSeeks:w}=this.playbackPerformance,S=this.videoPlayerRef&&this.videoPlayerRef.video,k=e===h.DR,T=k&&!this.hasVideoSessionStarted,I=!k&&!this.hasVideoSessionEnded&&this.hasVideoSessionStarted;if(this.hls&&S&&(T||I)){var A;let T=-1;s&&x&&(T=s>x?s-x:0);let I=-1;s&&this.videoVisibleTime&&(I=s>this.videoVisibleTime?s-this.videoVisibleTime:0),k&&(this.videoSessionId=(0,h.Y7)(n),this.playerId=this.playerId||(0,h.EB)());const C={autoplaying:a,averageVideoKbps:-1,detailedErrors:l,downloadedKiloBytes:d,isCellular:!1,errorCode:c,errorName:u,errorReason:m,fatalError:_,nativeVideoDurationMs:S.duration*h.gJ||-1,numberOfStalls:P,numberOfSeeks:w,overallPausedDurationMs:v,overallBufferDurationMs:y,overallWatchedDurationMs:-1,rebufferRate:-1,playbackSessionId:this.videoSessionId,playbackStartTimestamp:g||-1,segments:[],sessionMark:e,screenPixelScale:null!==(A=window)&&void 0!==A&&A.devicePixelRatio?window.devicePixelRatio:-1,startupPlayerWidth:S.clientWidth,startupPlayerHeight:S.clientHeight,startupTimeMs:T,startupLatencyMs:I,startupVariantKbps:-1,startupVariantWatchedDurationMs:-1,startupVariantWidth:S.videoWidth,startupVariantHeight:S.videoHeight,videoUrl:b};if(!k&&f.length){const e=this.hls.levels,t=f[0];this.updateWatchDurationForCurrentSegment(),this.updateStallDuration();const i=f.reduce(((t,i)=>{if(i&&"number"==typeof i.level&&e&&e.length>0){return t+(e[i.level]||{}).bitrate*(i.watchedDurationMs||0)/h.gJ}return t}),0),n=f.reduce(((e,t)=>e+(t.watchedDurationMs||0)),0);let a=null,r=0,o=0;do{r+=f[o].watchedDurationMs,a=a||f[o].level,o+=1}while(o<f.length&&f[o].level===a);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=n,n>0?(C.averageVideoKbps=i/(n/h.gJ),C.rebufferRate=this.playbackPerformance.totalStallDurationMs/n):0===n&&(C.averageVideoKbps=-1,C.rebufferRate=-1,C.errorName="invalid_watch_duration"),C.segments=f}else C.errorName="invalid_watch_duration";(0,p.ZP)(C,!0,o,{playbackState:this.state.playbackState,...t});const{clientTrackingParams:j,component:E,durationNs:D,element:O,objectId:R,pairId:L,viewData:N,view:M,viewParameter:z,...F}=i;r({aux_data:{...F,is_closeup_video:o,playback_session_id:this.videoSessionId},clientTrackingParams:j,component:E,duration_ns:D,element:O,event_data:{videoPerformanceData:C},event_type:3606,object_id_str:R,pair_id:L,view_data:N,view_parameter:z,view_type:M}),k?(this.hasVideoSessionStarted=!0,this.hasVideoSessionEnded=!1):this.resetPlaybackMetrics(),(0,p.tE)(k?"sessionStart":"sessionEnd",!0,o,{playbackState:this.state.playbackState,...t})}}))}componentDidMount(){const{contextLogData:e={},playing:t}=this.props,{is_closeup_video:i=!1}=e;this.playbackPerformance.videoCreatedTime=new Date,this.initializeHls(),(0,p.tE)("videoMounted",!0,i),t&&(this.videoVisibleTime=new Date,this.logPlaybackPerformance(h.DR,{initiator:"mount"}))}componentDidUpdate(e){const{loop:t,playing:i,src:n,visible:a,appInFocus:r,seekTime:o}=this.props;var s,l;o&&o!==e.seekTime&&this.setState({videoStartTime:o}),(typeof(s=e.src)!=typeof(l=n)||(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===a&&(this.logSessionStartOnNextPlay=!1,this.updatePauseDuration(),this.logPlaybackPerformance(h.$f,{initiator:"update",loop:t})),!1===e.visible&&!0===a&&(this.videoVisibleTime=this.videoVisibleTime||new Date,i?(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(h.DR,{initiator:"update"})):this.logSessionStartOnNextPlay=!0),i&&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:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:o,aspectRatio:s,backgroundColor:l,captions:d,controls:c,loop:p,loopOverride:h,onDurationChange:m,onFullscreenChange:g,onLoadedChange:v,onControlsPlay:f,onPlayheadDown:b,onPlayheadUp:x,onSeek:P,onVolumeChange:w,playbackRate:S,playing:k,playsInline:T,poster:I,preload:A,quicExpGroup:C,src:j,volume:E}=this.props,{canPlayVideo:D,isManifestParsed:O,videoStartTime:R}=this.state,L=y(j,C);return(0,_.jsx)(u.nk,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:o,aspectRatio:s,backgroundColor:l,captions:d,controls:c,loop:void 0===h?p:h,onDurationChange:m,onEnded:this.handleEnded,onFullscreenChange:g,onLoadStart:this.handleLoadStart,onLoadedChange:v,onControlsPause:this.handleUserPause,onControlsPlay:f,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&&D&&k,playsInline:T,poster:I,preload:A,ref:this.setVideoPlayerRef,src:L,startTime:R,volume:E})}}const b=(0,n.memo)((function(e){const{country:t,isAuthenticated:i,isBot:n,isSocialBot:a,unauthId:r,userAgent:u}=(0,c.B)(),h=(0,o.Z)(),g=(0,s.Z)(),{browserName:v,browserVersion:y,isMobile:b}=u,{contextLogData:x={}}=e,{is_closeup_video:P=!1,view:w,viewParameter:S}=x,{checkExperiment:k}=(0,d.F)(),{seekTime:T}=(0,m.Hx)(),{clearSeekTime:I}=(0,m.RC)();let A=null;i&&(A=k("web_video_quic").group.length?k("web_video_quic").group:null);const{appUI:C}=(0,l.I)(),j=k("web_video_fail_to_start_fix").anyEnabled?C.appInFocus:e.appInFocus,E={browserName:v,browserVersion:y,country:t,isAuthenticated:i,isBot:n,is_closeup_video:P,isMobile:b,isSocialBot:a,view:w,viewParameter:S};return(0,p.r$)(E),(0,_.jsx)(f,{...e,userId:g.id||r,appInFocus:j,quicExpGroup:A,logContextEvent:h,seekTime:T,clearSeekTime:I})}))},964082:(e,t,i)=>{function n(e,t){const{organicVideosAutoplaying:i,promotedVideosAutoplaying:n}=t,a={...i,...n};for(const r in a){const{paused:t}=a[r];if(r!==e&&!t)return!1}return!0}i.d(t,{Z:()=>n})},36971:(e,t,i)=>{function n(e,t){const{organicVideosAutoplaying:i,promotedVideosAutoplaying:n}=t,a={...i,...n};return a[e]&&a[e].currentTime}i.d(t,{Z:()=>n})},463045:(e,t,i)=>{function n(e,t){const{organicVideosAutoplaying:i,promotedVideosAutoplaying:n}=t,a={...i,...n};return!!a[e]&&!a[e].paused}i.d(t,{Z:()=>n})},969315:(e,t,i)=>{i.d(t,{ZP:()=>u,r$:()=>d,tE:()=>c});var n=i(311560),a=i(172071),r=i(179888);const o=["isCellular","videoUrl","sessionMark"];let s={},l="";const d=e=>{const{browserName:t,browserVersion:i,country:a,isAuthenticated:r,isBot:o,isMobile:d,isSocialBot:c,view:u="unknown",viewParameter:p="unknown"}=e;l=(c?"socialBot":o&&"bot")||"nonbot";const h=(0,n.Z)(a);s={browserName:t,browserVersion:(null==i?void 0:i.split(".")[0])||"0",isAuthenticated:r,isMobile:d,region:h,view:u,viewParameter:p}};function c(e,t,i,n={}){const r=i?"closeup":"nonCloseup",o=t?"hls":"nonHls",d={...n,...s},c=`web.video.${o}.${l}.${r}.${e}`;a.Z.increment(c,1,d)}function u(e,t,i,n={}){const d=i?"closeup":"nonCloseup",c=t?"hls":"nonHls",u=e.sessionMark===r.DR?"sessionStart":"sessionEnd",p={...n,...s};if(Object.entries(e).forEach((([t,i])=>{const n=`web.video.${c}.${l}.${d}.${u}.${t}`,r=parseInt(i,10),s="number"==typeof r?r:-1;var h;if(!o.includes(t))if(t.includes("fatalError")&&!0===i){const{errorCode:t,errorName:i,errorReason:r}=e;a.Z.increment(n,1,{errorCode:t,errorName:i,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";a.Z.increment(n,1,{dimensionBucket:e,...p})}else if("numberOfStalls"===t){let e=i;s>1e3?e="over1000":s>10?e="over10":s<0&&(e="negative"),a.Z.increment(n,1,{numberOfStalls:e,...p})}else"screenPixelScale"===t?a.Z.increment(n,1,{screenPixelScale:i||-1,...p}):s>=0?(0===s&&a.Z.increment(`${n}.zero`,1,p),a.Z.timing(n,s,1),a.Z.timing(`${n}_with_tags`,s,1,p)):s<0&&a.Z.increment(`${n}.negative`,1,p)})),e.sessionMark!==r.DR){const{rebufferRate:t,screenPixelScale:i,startupLatencyMs:n,startupVariantWidth:r,startupPlayerWidth:o}=e,s=`web.video.${c}.${l}.${d}.${u}`;if("number"==typeof r&&"number"==typeof o&&"number"==typeof i){const e=1.5*r>i*o;a.Z.increment(`${s}.upscaled.${e?"good":"bad"}`,1,p)}"number"==typeof n&&a.Z.increment(`${s}.startupLatency.${n<500?"good":"bad"}`,1,p),"number"==typeof t&&a.Z.increment(`${s}.rebufferRate.${t<.01?"good":"bad"}`,1,p)}}},179888:(e,t,i)=>{i.d(t,{$f:()=>r,Cy:()=>d,DR:()=>a,EB:()=>p,Fm:()=>l,Y7:()=>u,bR:()=>s,gJ:()=>o,lG:()=>c});var n=i(172045);const a=1,r=2,o=1e3,s=1e3,l=1e3,d=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}),c=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,n.Z)()}function p(){return(0,n.Z)()}},121630:(e,t,i)=>{i.d(t,{Z:()=>r,e:()=>a});var n=i(81226);const a=e=>{if("undefined"==typeof window)return"";let t=0;const i=document.querySelector('[data-test-id="header"]');if(null!==i){const{height:e}=i.getBoundingClientRect();t+=e}switch(e){case"AuthHomefeed":const e=document.querySelector('[data-root-margin="more-ideas-tabs"]');if(null!==e){const{height:i}=e.getBoundingClientRect();t+=i}break;case"SearchItem":const i=document.querySelector('[data-root-margin="search-improvements-bar"]');if(null!==i){const{height:e}=i.getBoundingClientRect();t+=e}const n=document.querySelector('[data-test-id="search-tab-bar"],[data-root-margin="search-one-bar"]');if(null!==n){const{height:e}=n.getBoundingClientRect();t+=e}}return-1*t+"px 0px 0px 0px"},r=e=>{var t,i,a,r,o;return(0,n.Z)((null===(t=e.videos)||void 0===t?void 0:t.duration)||(null===(i=e.videos)||void 0===i||null===(a=i.video_list)||void 0===a||null===(r=a.V_HLSV4)||void 0===r?void 0:r.duration)||(null===(o=e.story_pin_data)||void 0===o?void 0:o.total_video_duration)||0)}},43760:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(768559),a=i(102500),r=i(48714);function o({url:e,pinId:t,pin:i,location:o,auxData:s}){var l,d;const c={check_only:!0,client_tracking_params:i?(0,n.Z)({boardUrl:null===(l=i.board)||void 0===l?void 0:l.url,callToCreateSourcePinId:i.call_to_create_source_pin_id,location:o,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}):void 0,pin_id:i?i.id:t,url:e,aux_data:JSON.stringify(s)};(0,a.Z)(c).callGet().then((a=>{if(a&&a.resource_response&&!a.resource_response.error){const{resource_response:e}=a,{redirect_status:t,url:i}=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(i);window.Windows.System.Launcher.launchUriAsync(e)}return}}if(i){var l,d;const a=(0,n.Z)({boardUrl:null===(l=i.board)||void 0===l?void 0:l.url,callToCreateSourcePinId:i.call_to_create_source_pin_id,location:o,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});(0,r.Gj)({url:e,pinId:t,csrId:null,clientTrackingParams:a,auxData:s})}else(0,r.Gj)({url:e,pinId:t})}))}},965900:(e,t,i)=>{i.d(t,{g:()=>h,I:()=>p});var n=i(667294),a=i(567450),r=i(150361),o=i.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:i}=t,{pinId:n,isPromoted:a,currentTime:r,inVideoGridAutoplayExp:s}=i,{videosAutoplaying:l}=e,{currentlyPlayingOrganicVideoId:d,promotedVideosAutoplaying:c,organicVideosAutoplaying:u}=l,p=o()(c),h=o()(u);return!a&&d&&s?e:(a?p[n]={pinId:n,currentTime:r,paused:!1}:h[n]={pinId:n,currentTime:r,paused:!1},{...e,videosAutoplaying:{currentlyPlayingOrganicVideoId:a?d:n,promotedVideosAutoplaying:p,organicVideosAutoplaying:h}})}if("SET_IS_AUTOPLAY"===t.type)return{...e,isAutoplay:t.payload};if("PAUSE_CURRENT_VIDEO"===t.type){const{payload:i}=t,{pinId:n,isPromoted:a,currentTime:r}=i,{videosAutoplaying:s}=e,{promotedVideosAutoplaying:l,organicVideosAutoplaying:d}=s,c=o()(l),u=o()(d);return a?c[n]={...c[n],paused:!0,currentTime:r}:u[n]={...u[n],paused:!0,currentTime:r},{...e,videosAutoplaying:{currentlyPlayingOrganicVideoId:null,promotedVideosAutoplaying:c,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 d=i(425288),c=i(785893);const{Provider:u,useHook:p}=(0,d.Z)("AppUI");function h({children:e}){const[t,i]=(0,n.useReducer)(l,s),r=(0,n.useCallback)((e=>i({type:"PAUSE_CURRENT_VIDEO",payload:e})),[]),o=(0,n.useCallback)((e=>i({type:"SET_APP_FOCUS_STATE",payload:e})),[]),d=(0,n.useCallback)((e=>i({type:"SET_CURRENT_VIDEO",payload:e})),[]),p=(0,n.useCallback)((e=>i({type:"SET_FOOTER_VISIBILITY_STATE",payload:e})),[]),h=(0,n.useCallback)((e=>i({type:"SET_IS_AUTOPLAY",payload:e})),[]),m=(0,n.useCallback)((e=>i({type:"SET_VIEWPORT_SIZE",payload:e})),[]),_=(0,n.useCallback)((e=>i({type:"TOGGLE_TYPEAHEAD_OVERLAY",payload:e})),[]),g=(0,n.useMemo)((()=>({pauseAutoplay:r,setCurrentVideo:d,setFooterPlusButtonVisible:p,setIsAutoplay:h,setViewportSize:m,toggleTypeaheadOverlay:_,setAppFocusState:o,appUI:t})),[r,d,p,h,m,_,o,t]);return(0,n.useEffect)((()=>{a.Z.onSessionResume((()=>{o(!0)})).onSessionPause((()=>{o(!1)}))}),[o]),(0,c.jsx)(u,{value:g,children:e})}},350445:(e,t,i)=>{i.d(t,{Z:()=>d});var n=i(898781),a=i(883119),r=i(785893);const o={__path:"M12 18.5A6.508 6.508 0 0 1 5.5 12c0-1.706.689-3.307 1.835-4.5H6.5a1 1 0 1 1 0-2h4.185v4.474a1 1 0 0 1-2 0V8.972A4.505 4.505 0 0 0 7.5 12c0 2.481 2.019 4.5 4.5 4.5s4.5-2.019 4.5-4.5a4.49 4.49 0 0 0-3.112-4.283 1 1 0 1 1 .615-1.902A6.482 6.482 0 0 1 18.5 12c0 3.584-2.916 6.5-6.5 6.5M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0"},s={__path:"M17.496 14.572a1 1 0 0 1-1 1h-.001a1.001 1.001 0 0 1-.999-1.001l.002-4.652-7.29 7.288a.995.995 0 0 1-.707.293.999.999 0 0 1-.707-1.707l7.293-7.29L9.428 8.5a1 1 0 0 1 .001-2h.001l8.071.005-.005 8.067zM12 0C5.373 0 0 5.373 0 12c0 6.628 5.373 12 12 12 6.628 0 12-5.372 12-12 0-6.627-5.372-12-12-12z"},l={overlay:{__style:{backgroundColor:"#000"}}};function d({backgroundImage:e,naturalHeight:t,naturalWidth:i,onRestartVideo:d,pinTitle:c,pin:u}){const p=(0,n.ZP)(),{id:h}=u;return(0,r.jsxs)(a.Ee,{alt:c||p.bt("Pin image", "pin image", "image of a pin", undefined, true),naturalHeight:t,naturalWidth:i,src:e,children:[(0,r.jsx)(a.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,opacity:.8,dangerouslySetInlineStyle:l.overlay}),(0,r.jsxs)(a.xu,{justifyContent:"center",direction:"column",display:"flex",position:"absolute",height:"100%",width:"100%","data-test-id":`video-end-card-${h}`,children:[(0,r.jsx)(a.iP,{rounding:2,children:(0,r.jsxs)(a.xu,{display:"flex",justifyContent:"center",padding:2,children:[(0,r.jsx)(a.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)(a.xu,{margin:1}),(0,r.jsx)(a.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)(a.xu,{margin:3}),(0,r.jsx)(a.iP,{onTap:d,rounding:2,children:(0,r.jsxs)(a.xu,{display:"flex",justifyContent:"center",padding:2,children:[(0,r.jsx)(a.JO,{accessibilityLabel:p.bt("Watch again", "Watch again", "Button when pressed restarts the video", undefined, true),color:"light",dangerouslySetSvgPath:o,size:25}),(0,r.jsx)(a.xu,{margin:1}),(0,r.jsx)(a.xv,{color:"light",lineClamp:1,weight:"bold",children:p.bt("Watch again", "Watch again", "Button when pressed restarts the video", undefined, true)})]})})]})]})}},333155:(e,t,i)=>{i.d(t,{UP:()=>s,Wv:()=>a,ZF:()=>n,zI:()=>r,zl:()=>o});const n=["AuthHomefeed","CloseupRelatedProducts","FollowingFeedGrid","RelatedPinGrid","RelatedProductsFeed","SearchItem"],a=["ArticleProductsStory","CloseupRelatedProducts","ProductPinsFeed","RelatedProductsFeed","ShoppingPackageItem","RelatedProductsFeed","UserProfilePinGrid","ShoppingGridShippedMetadataWithVisitButton"],r=[...a,"ShoppingGridShippedMetadata","ShoppingSquareGridDomain","ShoppingSquareGridDomainNoMetadata","ProductPinsFeed","ShoppingCatalogsProductsMetadata","ShoppingDynamicHeightGrid"],o=["ShoppingSquareGridDomain","ShoppingGridShippedMetadata","ShoppingSquareGridStorefront","ShoppingSquareGridStorefrontDomain","ShoppingGridShippedMetadataWithVisitButton"],s=["BaseBoardPinGrid"]},8320:(e,t,i)=>{i.d(t,{Z:()=>d});var n=i(63552),a=i(883119),r=i(785893);const o={__style:{borderRadius:"4px",padding:"10px 14px"}},s={borderWidth:"1px",borderStyle:"solid",borderColor:"white"},l={__style:{borderRadius:"4px",padding:"10px 14px 9px 8px",whiteSpace:"nowrap"}},d=({accessibilityLabel:e,color:t,customStyles:i,forwardedRef:d,icon:c,inline:u=!1,minHeight:p=40,minWidth:h=70,onTouch:m,pressState:_,shape:g,text:v})=>{const y=(e=>"primary"===e||"transparent"===e||"dark"===e?"inverse":"default")(t),f=(({color:e,icon:t})=>t?l:"transparent"===e?{__style:{...o.__style,...s}}:o)({color:t,icon:c}),b=(0,r.jsx)(a.xu,{position:"relative",children:(0,r.jsx)(a.xu,{color:t,display:u?"inlineBlock":"flex",justifyContent:"center",minHeight:p,minWidth:h,dangerouslySetInlineStyle:"pill"===g?(x=i,{__style:{borderRadius:"24px",paddingTop:"10px",paddingBottom:"10px",paddingLeft:"14px",paddingRight:"14px",...x}}):f,children:(0,r.jsxs)(a.kC,{alignItems:"center",justifyContent:"center",children:[c&&(0,r.jsx)(a.xu,{paddingX:"check"===c?2:0,children:(0,r.jsx)(a.JO,{accessibilityLabel:e,color:y,icon:c,inline:!0,size:"check"===c?16:20})}),(0,r.jsx)(a.xv,{color:y,inline:!0,size:"300",lineClamp:1,weight:"bold",children:v})]})})});var x;return m?(0,r.jsx)(n.Z,{onTouch:m,rounding:"pill"===g?"pill":2,pressState:_||"none",children:(0,r.jsx)(a.xu,{ref:d,children:b})}):b}},313951:(e,t,i)=>{i.d(t,{i5:()=>b,sX:()=>w,aX:()=>x,Z5:()=>f,NG:()=>P,MT:()=>S,iu:()=>k});var n=i(667294),a=i(6637),r=i(350118),o=i(682492),s=i.n(o);const l=(e,t)=>e.data[t]&&e.data[t].messages||[];function d(e,t){const i={};return e.filter((e=>!!e)).reduce(((e,n)=>{const a=t(n);return i[a]?(s()(i[a],n),e):(i[a]=n,e.concat([n]))}),[])}function c(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,i){return c(d(l(e,t).concat(i),(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:i}=t.payload;return{...e,data:{...e.data,[i]:{...e.data[i]||{},...t.payload}}}}if("CONVERSATION_DELETE"===t.type){const i={...e,data:{...e.data}},{id:n}=t.payload;return delete i.data[n],i}if("FETCH_COMPLETE"===t.type){const{options:i,resource:n,response:a}=t.payload,r=a.resource_response.data;if("ConversationMessagesResource"===n){const t=r||[],n=(null==i?void 0:i.conversation_id)||"",a=u(e,n,t),o=a[a.length-1];return{...e,data:{...e.data,[n]:{...e.data[n],id:n,messages:a,unread:0,last_message:o}}}}if("ConversationsResource"===n){const t=r||[],i={...e,data:{...e.data}};return t.forEach((e=>{const{id:t,created_at:n,name:a,board:r,emails:o,unread:s,users:l,last_message:d}=e,c=u(i,t,[d]);i.data[t]={...i.data[t],id:t,created_at:n,name:a,board:r,emails:o||[],unread:s||0,users:l||[],last_message:d,messages:c}})),i}if("ConversationResource"===n){const t=r||{},{id:i}=t,n={...e,data:{...e.data}};return i&&(n.data[i]={...n.data[i],...t}),n}if("NewsHubBadgeResource"===n){if(r){const t=r.conversations_unseen_count||0;return{...e,unread:t}}return e}}else{if("MESSAGE_SEND_PENDING"===t.type){const{id:i,message:n}=t.payload;return e.data[i]?{...e,data:{...e.data,[i]:{...e.data[i],id:i,messages:[...e.data[i].messages,n]}}}:e}if("MESSAGE_SEND_PENDING_SUCCESS"===t.type){const{id:i,tempMessage:n,newMessage:a}=t.payload;if(e.data[i]){if(l(e,i).find((e=>e.id===n.id&&e.created_ms===n.created_ms))){const t=c(d(l(e,i).filter((e=>e.id!==n.id)).concat([a]),(e=>e.id)));return{...e,data:{...e.data,[i]:{...e.data[i],last_message:a,messages:t}}}}}return e}if("MESSAGE_SEND_PENDING_FAILURE"===t.type){const{id:i,tempMessageId:n}=t.payload;if(e.data[i]){const t=l(e,i).filter((e=>e.id!==n));return{...e,data:{...e.data,[i]:{...e.data[i],messages:t}}}}return e}if("OPEN_NEW_MESSAGE"===t.type){const{objectAttachment:i}=t.payload||null;return{...e,showNewMessageView:!0,open:null,objectAttachment:i}}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:i}=t.payload;return{...e,data:{...e.data,[i]:{...e.data[i],unread:0}}}}if("CONVERSATION_SAVE_POSITION"===t.type){const{id:i,position:n}=t.payload;return{...e,data:{...e.data,[i]:{...e.data[i],position:n}}}}if("CONVERSATION_RESET_POSITION"===t.type){const{id:i}=t.payload;return{...e,data:{...e.data,[i]:{...e.data[i],position:null}}}}}return e}var m=i(425288),_=i(505920),g=i(785893);const v=(()=>{let e=0;return()=>e++})(),{Provider:y,useHook:f}=(0,m.Z)("Conversations");function b({children:e}){const[t,i]=(0,n.useReducer)(h,p),r=(0,n.useCallback)((e=>i({type:"FETCH_COMPLETE",payload:e})),[]);(0,_.Z8)("ConversationMessagesResource",r),(0,_.my)("ConversationMessagesResource",r),(0,_.Z8)("ConversationsResource",r),(0,_.Z8)("ConversationResource",r),(0,_.Z8)("NewsHubBadgeResource",r);const o=(0,n.useCallback)(((e,t=!1,n="")=>i({type:"CONVERSATION_OPEN",payload:{id:e,isPreview:t,contactRequestId:n}})),[]),s=(0,n.useCallback)(((e,t="",n=!1)=>i({type:"CONVERSATION_CLOSE",payload:{id:e,contactRequestId:t,isDeclined:n}})),[]),l=(0,n.useCallback)((e=>i({type:"CONVERSATION_CREATE",payload:e})),[]),d=(0,n.useCallback)((e=>i({type:"CONVERSATION_DELETE",payload:{id:e}})),[]),c=(0,n.useCallback)(((e,t)=>i({type:"CONVERSATION_SAVE_POSITION",payload:{id:e,position:t}})),[]),u=(0,n.useCallback)((e=>i({type:"CONVERSATION_RESET_POSITION",payload:{id:e}})),[]),m=(0,n.useCallback)(((e,t,n)=>{a.Z.create("ConversationsResource",{user_ids:e,emails:t,text:""}).callCreate().then((e=>{const t=e&&e.resource_response.data;i({type:"CONVERSATION_OPEN",payload:{id:t.id}})})).catch((e=>{const t=e.message_detail||e.message||"";n(t)}))}),[]),v=(0,n.useCallback)((()=>{i({type:"CLOSE_DROPDOWN"})}),[]),f=(0,n.useCallback)((()=>{i({type:"OPEN_DROPDOWN"})}),[]),b=(0,n.useCallback)((e=>{i({type:"OPEN_NEW_MESSAGE",payload:{objectAttachment:e}})}),[]),x=(0,n.useCallback)(((e,t)=>i({type:"MESSAGE_SEND_PENDING",payload:{id:e,message:t}})),[]),P=(0,n.useCallback)(((e,t,n)=>i({type:"MESSAGE_SEND_PENDING_SUCCESS",payload:{id:e,tempMessage:t,newMessage:n}})),[]),w=(0,n.useCallback)(((e,t)=>i({type:"MESSAGE_SEND_PENDING_FAILURE",payload:{id:e,tempMessageId:t}})),[]),S=(0,n.useCallback)((e=>i({type:"UPDATE_NEWSHUB_COUNT",payload:e})),[]),k=(0,n.useCallback)((e=>i({type:"UPDATE_UNREAD_COUNT",payload:e})),[]),T=(0,n.useCallback)((e=>i({type:"CLEAR_MESSAGE_BADGE",payload:{id:e}})),[]),I=(0,n.useMemo)((()=>({clearMessageBadge:T,conversationOpen:o,conversationClose:s,conversationCreate:l,conversationDelete:d,conversationGet:m,saveConversationPosition:c,resetConversationPosition:u,dropdownClose:v,dropdownOpen:f,newMessageOpen:b,pendingMessageSend:x,pendingMessageSuccess:P,pendingMessageFailure:w,updateNewsHubCount:S,updateUnreadCount:k,conversations:t})),[T,o,s,l,d,m,c,u,v,f,b,x,P,w,S,k,t]);return(0,g.jsx)(y,{value:I,children:e})}function x(){const{conversationCreate:e}=f();return async t=>{let i;const n=a.Z.create("ConversationsResource",t);try{var r;const t=null===(r=(await n.callCreate()).resource_response)||void 0===r?void 0:r.data;t&&(e(t),i=t)}catch(o){throw new Error(o.message)}return i}}function P(){const{conversations:e,conversationCreate:t,pendingMessageSend:i,pendingMessageSuccess:n,pendingMessageFailure:o}=f(),s=(0,r.AF)();return async(r,l,d,c)=>{const{text:u,pinId:p,boardId:h,userId:m,didItId:_}=l;async function g(){const e=a.Z.create("ConversationMessagesResource",{conversation_id:r,text:u,pin:p,board:h,user:m,user_did_it_data:_,source:d}),t=`${v()}`,l={text:u,sender:c,created_at:(new Date).toString(),created_ms:Date.now(),id:t,pin:p?s[p]:null,type:"tempMessage"};i(r,l);try{var g;const t=null===(g=(await e.callCreate()).resource_response)||void 0===g?void 0:g.data;t&&n(r,l,t)}catch(y){throw o(r,t),new Error(y.message)}}if(e.data[r])await g();else{const e=a.Z.create("ConversationResource",{conversation_id:r});try{var y;const i=null===(y=(await e.callGet()).resource_response)||void 0===y?void 0:y.data;i&&(t(i),await g())}catch(f){throw new Error(f.message)}}}}function w(e){const{conversations:t}=f();return t.data[e]}function S(e){const{conversations:t}=f();return t.ui[e]||{contactRequestId:"",isDeclined:!1,isPreview:!1}}function k(){const{conversations:{data:e}}=f(),t=(i=e,Object.keys(i).map((e=>i[e]))).filter((e=>e.users&&e.last_message));var i,n;return n=t,Array.from(n).sort(((e,t)=>new Date((t.last_message||t).created_at)-new Date((e.last_message||e).created_at)))}},57791:(e,t,i)=>{i.d(t,{MZ:()=>E,di:()=>O,Ai:()=>D});var n=i(667294),a=i(296679),r=i(8320),o=i(329900),s=i(954571),l=i(250059),d=i(149230),c=i(407043),u=i(48714),p=i(276775);const h=({children:e,external:t,externalQueryParams:i,target:n,href:a})=>{const{logContextEvent:r}=(0,c.v)(),o=(0,p.useHistory)(),s=(0,p.useLocation)();if(!a)return null;const h=(0,l.Z)(a);return e({navigate:e=>{e.preventDefault(),(0,d.Z)({url:h})||t?(0,u.lI)({href:h,queryParams:i,location:s},r,null):(0,u.G3)({event:e,href:a,history:o,target:"blank"===n?"blank":null})}})};var m=i(883119),_=i(785893);const g=({accessibilityLabel:e,children:t,external:i,externalQueryParams:n,inline:a=!1,newTab:r,nofollow:o,onTouch:s,onBlur:d,onFocus:c,pressState:u,rounding:p,to:g})=>(0,_.jsx)(h,{external:i,target:r?"blank":null,externalQueryParams:n,href:g,children:({navigate:i})=>(0,_.jsx)(m.rU,{accessibilityLabel:e,onBlur:d?({event:e})=>d(e):void 0,onFocus:c?({event:e})=>c(e):void 0,underline:"none",href:(0,l.Z)(g),display:a?"inlineBlock":"block",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),null==s||s(e),e.defaultPrevented||i(e)},rel:o?"nofollow":"none",rounding:p,tapStyle:(Array.isArray(u)?u:[u]).includes("compress")?"compress":"none",children:t})}),v=({external:e,externalQueryParams:t,newTab:i,onTouch:n,to:a,...o})=>(0,_.jsx)(h,{external:e,target:i?"blank":null,externalQueryParams:t,href:a,children:({navigate:e})=>(0,_.jsx)(r.Z,{onTouch:t=>{null==n||n(t),t.defaultPrevented||e(t)},...o})});var y=i(938917),f=i(112690),b=i(19121),x=i(53987),P=i(30287),w=i(948376),S=i(236617),k=i(773285),T=i(780280),I=i(698330),A=i(957161),C=i(622096);const j=(e,t=!1)=>function({isAppUpsellDisabled:i,...r}){const{children:l,clientTrackingParams:d,deeplinkUri:c,external:u,onTouch:h,refresh:g,to:v,viewParameter:j,viewType:E}=r,D=(0,y.Z)(),[O,R]=(0,n.useState)(!1),{isAuth:L}=(0,b.Z)(),{userAgent:{platform:N},locale:M}=(0,T.B)(),z=(0,I.Tt)(),F=(0,f.Z)(),{checkExperiment:U}=(0,k.F)(),Z=(0,p.useLocation)(),B=(0,S.L)(),V=()=>{F({event_type:1701,view_type:E,view_parameter:j}),O&&R(!1)};return(0,_.jsxs)(m.xu,{"data-test-id":"deeplink-wrapper",children:[O&&(0,_.jsx)(a.Z,{clientTrackingParams:d,deepLinkUri:c,isOpen:!0,onDismiss:()=>{F({component:14157,element:10308,event_type:10220,view_type:E||32,view_parameter:j,aux_data:{app_upsell_type:"deep-link-app-upsell-modal"}})},onOpenInApp:()=>{(0,A.Nh)("deeplinkBehavior","branchfallback"),V()},shouldTrackDismiss:!0,to:v,viewParameter:j,viewType:E,within:"deep-link-app-upsell-modal"}),(0,_.jsx)(o.Z,{children:n=>(0,_.jsx)(e,{...r,onTouch:e=>{const a=D&&!i&&L&&!u&&!g&&!(0,P.FP)(window)&&!("ios"===N&&(M||"").startsWith("ar"))&&(0,w.kp)((0,s.Z)(null==z?void 0:z.created_at));if(a){const{group:t}=U("mweb_auth_learning_app_upsell");t.startsWith("enabled_related_pin_click")?(0,x.uM)(Z)&&setTimeout((()=>{B.setTypeVal(`learning_${t}`)}),500):(e.stopPropagation(),e.preventDefault(),R(!0))}else"branchfallback"!==(0,A.qn)("deeplinkBehavior")||(0,C.qn)("fallbackAttempt")||(e.stopPropagation(),e.preventDefault(),(0,C.Nh)("fallbackAttempt",1),n(c,`${window.location.origin}${r=v,"string"==typeof r?r:`${r.pathname||""}${r.search?`?${r.search}`:""}`}`),V());var r;t&&a||!h||h(e)},children:l})})]})},E=j(g),D=j(v),O=j(r.Z,!0)},329900:(e,t,i)=>{i.d(t,{Z:()=>g});var n=i(172071),a=i(826067);const r="http://play.google.com/store/apps/details?id=com.pinterest",o=["access_token","new_password","new_password_confirm","password","next"],s=(e,t)=>t?(0,a.ru)(e,{invite_code:t}):e,l=(e,t,i)=>{if("ios"===t&&"string"==typeof e&&e.startsWith("discover/article/")){const t=e.split("/")[2];e=`discover_article/${t}/?is_deeplink=1`}return"string"==typeof e?s(e,i):"ios"===t||"ipad"===t?s(e.iOS,i):"android"===t?s(e.android,i):null},d=({deeplinkUri:e,fallbackUrl:t,invite_code:i,platform:s,redirectToLite:d,unauthId:c,userAgent:u})=>{if(e){const p=(({deeplinkUri:e,invite_code:t,platform:i,fallbackUrl:n,unauthId:r})=>({deeplink_path:l(e,i,t),current_page_url:(0,a.Gw)("undefined"!=typeof window?window.location.href:"",o),install_id:r,utm_source:140,utm_medium:2152,...n?{af_r:n}:null}))({deeplinkUri:e,fallbackUrl:t,invite_code:i,platform:s,unauthId:c,userAgent:u});if(n.Z.increment("mweb.deeplink",1,{platform:s}),i&&n.Z.increment("mweb.deeplink.invite_code",1),n.Z.increment("mweb.deeplink.unauthId",1,{withUnauthId:Boolean(c)}),d){n.Z.increment("mweb.deeplink.lite_link",1);const e=(({unauthId:e})=>{const t=(0,a.XP)({utm_source:"mweb",utm_medium:"upsell",utm_campaign:"twa",utm_content:e});return{referrer:encodeURI(t)}})({unauthId:c});window.location.href=(0,a.ru)("http://play.google.com/store/apps/details?id=com.pinterest.twa",e)}else if("android"===s){const t=(({deeplinkUri:e,invite_code:t,platform:i,unauthId:n})=>{const r=JSON.stringify({deeplink_path:l(e,i,t),current_page_url:(0,a.Gw)("undefined"!=typeof window?window.location.href:"",o),install_id:n});return{referrer:(0,a.XP)({utm_source:"mweb",utm_medium:"upsell",utm_content:r})}})({deeplinkUri:e,invite_code:i,platform:s,unauthId:c});"getInstalledRelatedApps"in navigator?navigator.getInstalledRelatedApps().then((e=>{if(e.length>0){const e=(0,a.ru)(window.location.href,p);window.open(e)}else window.location.href=(0,a.ru)(r,t)})).catch(n.Z.increment("mweb_android.deeplink.playStore.error",1)):window.location.href=(0,a.ru)(r,t)}else{if(n.Z.increment("mweb.deeplink.appsflyer_link",1),"ios"===s&&"undefined"!=typeof window&&window.location.href.includes("show_yip_modal"))return void(window.location.href=(0,a.ru)("https://pinterest.com/pinterest-predicts",p));window.location.href=(0,a.ru)("https://pinterest.onelink.me/TVSr/21e04bfd",p)}}};var c=i(619277),u=i(948376),p=i(780280),h=i(785893);function m({children:e,invite_code:t}){const{unauthId:i,userAgent:{platform:n,raw:a}}=(0,p.B)();return e((async(e,r)=>{d({deeplinkUri:e,fallbackUrl:r,invite_code:t,platform:n,redirectToLite:(0,u.Rp)({platform:n,userAgent:a}),unauthId:i,userAgent:a})}))}const _=e=>(0,h.jsx)(c.ty,{children:t=>(0,h.jsx)(m,{...e,invite_code:t})});_.displayName="DeepLinkNavigator";const g=_},79113:(e,t,i)=>{i.d(t,{Z:()=>m});var n=i(667294),a=i(124580),r=i(740990),o=i(223815),s=i(643010),l=i(968121),d=i(965900),c=i(883119),u=i(785893);const p={border:(0,s.Yc)()?void 0:"1px solid #efefef",width:"100vw",maxHeight:"100%",height:"100%",overflow:"auto",top:"0",left:"0",position:"fixed",backgroundColor:(0,s.Yc)()?"#000":"#fff",transition:"transform 0.3s ease-out",WebkitOverflowScrolling:"touch"},h={modalOpen:{__style:{...p}},modalClose:{__style:{...p,transform:"translate3d(0px, 100%, 0px)"}}};function m({accessibilityModalLabel:e,allowClickAndDrag:t,children:i,isOpen:s}){const{setAppFocusState:p}=(0,d.I)(),m=(0,n.useRef)(null);return(0,n.useEffect)((()=>(s&&(a.Z.pause(),p(!1),document.body&&(document.body.style.overflow="hidden")),()=>{s&&(a.Z.resume(),p(!0),document.body&&(document.body.style.overflow=""))})),[s,p]),(0,u.jsx)(o.Z,{allowClickAndDrag:t,children:(0,u.jsx)(c.mh,{zIndex:l.b7,children:(0,u.jsx)(c.xu,{display:"inlineBlock",role:"dialog","aria-label":e,children:(0,u.jsx)(c.xu,{ref:m,dangerouslySetInlineStyle:{__style:s?h.modalOpen.__style:h.modalClose.__style},children:(0,u.jsx)(r.Z.Provider,{value:m.current,children:i})})})})})}},326960:(e,t,i)=>{i.d(t,{Z:()=>p});var n=i(667294),a=i(172071),r=i(883119),o=i(813401),s=i(112690),l=i(785893);function d(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const c=(e,t)=>{const i=e&&e.replace(".","_");return t?i&&i.substring(0,50):i};class u extends n.Component{constructor(...e){super(...e),d(this,"state",{href:void 0}),d(this,"onEvent",(()=>new Promise(((e,t)=>{"undefined"==typeof window&&t();const{filename:i,imgSrc:n,isAndroidTwa:r,isChromeOnIOS:o,isUnauth:s,logContextEvent:l,category:d,viewParameter:u,viewType:p,pinId:h,imageSignature:m}=this.props,{href:_}=this.state;window.AndroidTwa&&window.AndroidTwa.downloadImage?(window.AndroidTwa.downloadImage(n,c(i,r)),e()):o?(this.imageDownload&&this.imageDownload.click(),e()):null==_&&fetch(n,{headers:new Headers({Origin:window.location.origin}),mode:"cors"}).then((e=>e.blob())).then((t=>{this.setState({href:window.URL.createObjectURL(t)},(()=>{this.imageDownload&&(this.imageDownload.click(),e())}))})).catch((()=>this.setState({href:this.DOWNLOAD_ERROR}))),a.Z.increment(`mweb.${s?"unauth":"auth"}.download.click.${d||"no_category"}`),l({event_type:82,object_id_str:h,view_type:p||3,view_parameter:u||139,aux_data:{image_signature:m}})})))),d(this,"DOWNLOAD_ERROR","error")}render(){const{children:e,filename:t,imgSrc:i,isAndroidTwa:a,isChromeOnIOS:o}=this.props,{href:s}=this.state,d=null!=s&&s!==this.DOWNLOAD_ERROR;return(0,l.jsxs)(n.Fragment,{children:[e(this.onEvent),o&&i?(0,l.jsx)(r.xu,{display:"none",children:(0,l.jsx)("a",{ref:e=>this.imageDownload=e,rel:"noopener noreferrer",tabIndex:-1,target:"_blank",href:i})}):d&&(0,l.jsx)(r.xu,{display:"none",children:(0,l.jsx)("a",{ref:e=>this.imageDownload=e,tabIndex:-1,download:c(t,a),href:s})})]})}}function p(e){const t=(0,o.xC)(),i=(0,s.Z)();return(0,l.jsx)(u,{...e,isAndroidTwa:t,logContextEvent:i})}},861411:(e,t,i)=>{i.d(t,{fv:()=>g,GR:()=>p,Hs:()=>y,Mv:()=>m,uc:()=>_,dL:()=>h,qS:()=>v,Y4:()=>x,HE:()=>b,Cy:()=>f});var n=i(667294),a=i(973935),r=i(124580),o=i(407043),s=i(785893);function l(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class d extends n.Component{constructor(...e){super(...e),l(this,"observe",(()=>{try{if(this.node=(0,a.findDOMNode)(this),this.node instanceof HTMLElement){const{pinIdStr:e,newsIdStr:t}=this.props.eventData;r.Z.start(this.node).onExitViewport(this.logImpression).setDebugId(e||t||"unknown")}}catch(e){window.console.error('Can only track impressions for type "HTMLElement"')}})),l(this,"logImpression",(e=>{this.props.logImpression({viewData:this.props.viewData||{},viewType:this.props.viewType,viewParameter:this.props.viewParameter,eventType:this.props.eventType,impressionType:this.props.impressionType,auxData:this.props.auxData,component:this.props.component,objectIdStr:this.props.objectIdStr,eventData:{endTime:e.endTime,time:e.startTime,...this.props.eventData}}),this.props.onTracked&&this.props.onTracked(this.props.eventData)}))}componentDidMount(){this.props.isPaused||this.observe()}componentDidUpdate(e){e.isPaused&&!this.props.isPaused&&this.observe()}componentWillUnmount(){this.node instanceof HTMLElement&&r.Z.stop(this.node)}render(){return n.Children.only(this.props.children)}}function c(e){const{logImpression:t}=(0,o.v)();return(0,s.jsx)(d,{...e,logImpression:t})}function u({auxData:e,component:t,eventData:i,eventType:a,impressionType:s,isPaused:l,objectIdStr:d,onTracked:c,viewData:u,viewType:p,viewParameter:h}){const m=(0,n.useRef)(null),{logImpression:_}=(0,o.v)(),g=(0,n.useCallback)((()=>{const n=n=>{_({viewData:u||{},viewType:p,viewParameter:h,eventType:a,impressionType:s,auxData:e,component:t,objectIdStr:d,eventData:{endTime:n.endTime,time:n.startTime,...i}}),c&&c(i)};try{if(m.current instanceof HTMLElement){const{pinIdStr:e,newsIdStr:t}=i;r.Z.start(m.current).onExitViewport(n).setDebugId(e||t||"unknown")}}catch(o){window.console.error('Can only track impressions for type "HTMLElement"')}}),[m.current]);return(0,n.useEffect)((()=>{l||g();const e=m.current;return()=>{e instanceof HTMLElement&&r.Z.stop(e)}}),[l,g]),m}const p=e=>(0,s.jsx)(c,{eventData:{...e.impressionData||{},pinIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:18,impressionType:"pinImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,onTracked:e.onTracked,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter,children:e.children}),h=e=>{const t=u({eventData:{...e.impressionData||{},pinIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:18,impressionType:"pinImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,onTracked:e.onTracked,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},m=e=>{const t=u({eventData:{newsIdStr:e.notificationId,newsType:e.newsType,displayMode:e.displayMode,newsIndex:e.newsIndex||0,tapItemIdStr:e.tapItemIdStr},auxData:e.auxData||{},eventType:4111,impressionType:"notificationDetailImpressions",loggingId:e.notificationId,viewType:107,viewParameter:3082});return e.children({impressionTrackerRef:t})},_=e=>{const t=u({eventData:{newsIdStr:e.notificationId,newsType:e.newsType},auxData:e.auxData||{},eventType:4110,impressionType:"notificationFeedImpressions",loggingId:e.notificationId,viewType:107,viewParameter:3081});return e.children({impressionTrackerRef:t})},g=e=>(0,s.jsx)(c,{eventData:{...e.impressionData||{},articleIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:3829,impressionType:"articleImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,onTracked:e.onTracked,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter,children:e.children}),v=e=>{const t=u({eventData:{...e.impressionData||{},storyIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:170,impressionType:"storyImpression",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,onTracked:e.onTracked,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},y=e=>(0,s.jsx)(c,{eventData:{...e.impressionData||{},storyIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:170,impressionType:"storyImpression",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,onTracked:e.onTracked,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter,children:e.children}),f=e=>{const t=u({eventData:{...e.impressionData||{},userIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex||0},auxData:e.auxData||{},component:e.component,eventType:3704,impressionType:"userImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,onTracked:e.onTracked,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},b=e=>{const t=u({eventData:{...e.impressionData||{},topicIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex||0},auxData:e.auxData||{},component:e.component,eventType:3703,impressionType:"topicImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,onTracked:e.onTracked,viewData:e.viewData,viewType:e.viewType,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},x=e=>{const t=u({eventData:{...e.impressionData||{},clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:8569,impressionType:"todayArticleImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,onTracked:e.onTracked,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})}},63552:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(883119),a=i(785893);function r({children:e,onMouseEnter:t,onMouseLeave:i,onTouch:r,rounding:o,fullWidth:s=!1,pressState:l="none",accessibilityLabel:d,role:c}){const u=(Array.isArray(l)?l:[l]).includes("compress");return(0,a.jsx)(n.iP,{fullWidth:s,onMouseEnter:t&&(({event:e})=>t(e)),onMouseLeave:i&&(({event:e})=>i(e)),onTap:r&&(({event:e})=>r(e)),rounding:o,tapStyle:u?"compress":"none",accessibilityLabel:d,role:c,children:e})}},902462:(e,t,i)=>{i.r(t),i.d(t,{default:()=>De,pinRepPaddingInBoint:()=>we});var n=i(667294),a=i(702664),r=i(319915),o=i(680046),s=i(886076),l=i(248975),d=i(830157),c=i(958007),u=i(954571),p=i(63552),h=i(81226),m=i(116303),_=i(561195),g=i(883119),v=i(785893);function y({maxRating:e,rating:t,text:i}){return(0,v.jsxs)(g.xu,{alignItems:"center",display:"flex",marginBottom:0,children:[(0,v.jsx)(_.Z,{max_rating:e||"",rating:t||"",width:10}),i&&(0,v.jsx)(n.Fragment,{children:(0,v.jsx)(g.xu,{marginStart:1,overflow:"hidden",children:(0,v.jsx)(g.xv,{size:"100",lineClamp:1,children:i})})})]})}var f=i(898781),b=i(62409),x=i(643010);const P=({pinId:e})=>{var t;const i=(0,f.ZP)(),r=(0,a.useSelector)((({pins:e})=>e))[e],o=(0,x.Yc)();if(!r)return null;const s=(0,b.kb)(r);if(!s||!s.price)return null;const l=s.standard_price||s.price,d=s.min_price||"",c=s.max_price||"",u=s.in_stock||!1,p=null===(t=r.rich_summary)||void 0===t?void 0:t.site_name,{textColor:h,inStockColor:m}=(({isDarkMode:e,inStock:t})=>e?{textColor:"light",inStockColor:"light"}:{textColor:"dark",inStockColor:t?"dark":"subtle"})({isDarkMode:o,inStock:u});return(0,v.jsxs)(n.Fragment,{children:[p&&(0,v.jsx)(g.xv,{color:h,size:"100",children:p}),(0,v.jsxs)(g.xu,{display:"flex",alignItems:"center","data-test-id":"priceLego_price",children:[d&&c?(0,v.jsxs)(g.xv,{size:"100",color:m,weight:"bold",children:[d," - ",c]}):(0,v.jsx)(g.xv,{size:"100",color:m,weight:"bold",children:l}),!u&&(0,v.jsxs)(n.Fragment,{children:[(0,v.jsx)(g.xu,{paddingX:1,children:(0,v.jsx)(g.xv,{size:"100",color:m,weight:"bold",children:"·"})}),(0,v.jsx)(g.xv,{size:"100",color:m,weight:"bold",children:i.bt("Out of stock", "Out of stock", "pinCard.priceLego.outOfStock", undefined, true)})]})]})]})};var w=i(947599),S=i(914142),k=i(941646),T=i(50286),I=i(865673),A=i(52022),C=i(350948),j=i(923297),E=i(867820),D=i(773285),O=i(130460),R=i(276775),L=i(53987);const N=(0,n.lazy)((()=>i.e(94950).then(i.bind(i,494950)))),M=({title:e})=>{const t=(0,T.ZP)(),i=(0,A.Z)();return(0,v.jsx)(k.Z,{id:"related-pins-title",children:(0,v.jsx)(g.iP,{onTap:()=>{i({action:"click",item:"related-pins-title"})},children:(0,v.jsx)(g.xv,{size:"desktop"===t?"300":"100",weight:"bold",children:e})})})},z=({allowPriceIndicator:e,contextMenu:t,credits:i,hidePinMetadata:o,hasAffiliatedProducts:s,isPromotedPin:l,isSponsoredPin:d,isSquarePin:c,marginTop:u,marginStart:h,marginEnd:_,onCreditsClick:b,pinDescription:x,pinId:z,pinnedToBoardId:F,pinReactionCounts:U,recipeCookTime:Z,recipeMaxRating:B,recipeRating:V,recipeReviewCount:H,shouldShowReactions:W,style:K="default",title:G,type:$,duploConversationPin:q})=>{var J,Y,X,Q,ee,te,ie,ne,ae;const re=(0,f.ZP)(),{checkExperiment:oe}=(0,D.F)(),se=(0,R.useLocation)(),le=(0,A.Z)(),de=(0,a.useSelector)((({session:e})=>e.isAuthenticated)),ce=(0,T.ZP)(),ue=G||x||"oneTap"===$,pe=(0,a.useSelector)((({pins:e})=>e[z])),he=(0,O.gC)()(F||pe&&String(null===(J=pe.board)||void 0===J?void 0:J.id)),me=pe.pinner,_e=l&&(null===(Y=pe.promoter)||void 0===Y?void 0:Y.id)===(null===(X=pe.native_creator)||void 0===X?void 0:X.id),ge=pe.sponsorship?(0,v.jsx)(g.xv,{inline:!0,size:"100",weight:"bold",children:null==i?void 0:i.subtitle}):void 0,ve="overlay"===K,ye=W&&U&&Object.keys(U).length>0&&(0,v.jsx)(g.xu,{height:18,display:ve?"flex":void 0,justifyContent:"center",children:(0,v.jsx)(r.Z,{name:"SafeSuspense_PinCardDetails_GridAggregation",children:(0,v.jsx)(w.Z,{children:(0,v.jsx)(N,{pinReactionCounts:U})})})}),fe=o?0:u||1,be=(0,v.jsx)(m.Z,{accessibilityLabel:(null==i?void 0:i.title)||"string"==typeof(null==i?void 0:i.subtitle)&&i.subtitle||re.bt("Creator's avatar", "Creator's avatar", "pinCardDetails.tapArea.avatar", undefined, true),name:(null==i?void 0:i.title)||"",outline:ve,size:ve?"lg":"sm",src:ve&&(null==i?void 0:i.largeAvatar)||(null==i?void 0:i.mediumAvatar)||(null==i?void 0:i.avatar)||void 0}),xe=(0,v.jsxs)(n.Fragment,{children:[(null==i?void 0:i.title)&&(0,v.jsx)(g.xv,{lineClamp:1,size:"100",weight:d&&!_e||s?"normal":"bold",children:i.title===(null==me?void 0:me.full_name)&&(null!=me&&me.is_verified_merchant||null!=me&&null!==(Q=me.verified_identity)&&void 0!==Q&&Q.verified)?(0,v.jsx)(I.Z,{badgeSize:"sm",badgeSpacing:2,fullName:i.title,verifiedType:me.is_verified_merchant?"verifiedMerchant":"verifiedIdentity"}):i.title}),null!=i&&i.subtitle?(!d&&!o||_e)&&(0,v.jsx)(g.xv,{lineClamp:d||s?void 0:1,size:"desktop"===ce?"200":"100",weight:"desktop"===ce?"bold":"normal",children:i.subtitle}):!de&&he&&"protected"!==he.privacy?(0,v.jsx)(k.Z,{id:"related-pin-text-below-name",children:(0,v.jsx)(g.rU,{underline:"hover",href:null!==(ee=he.url)&&void 0!==ee?ee:"",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),e.stopPropagation(),(0,E.NC)("click_board_pin_attribution_profile"),le({action:"click",item:"related-pin-text-below-name"})},children:(0,v.jsx)(g.xv,{size:"200",children:he.name})})}):null]});return(0,v.jsx)(n.Fragment,{children:(0,v.jsxs)(g.xu,{display:"flex",height:c?e?104:72:void 0,marginEnd:_||1,marginStart:h||1,position:"relative",children:[(0,v.jsxs)(g.xu,{flex:"grow",children:[(0,v.jsx)(g.xu,{display:"flex",marginTop:fe,children:(0,v.jsx)(g.xu,{flex:"grow",children:(0,v.jsxs)(n.Fragment,{children:[(0,v.jsxs)(n.Fragment,{children:[(d||s)&&!_e&&(0,v.jsx)(g.xu,{marginBottom:1,children:(0,v.jsx)(g.xu,{flex:"grow",overflow:"hidden",children:(0,v.jsx)(S.Z,{hasAffiliatedProducts:s,isPromoted:l,sponsorName:ge,sponsorshipStatus:null===(te=pe.sponsorship)||void 0===te?void 0:te.status})})}),G&&(0,v.jsx)(g.xu,{marginTop:1,overflow:"hidden",dangerouslySetInlineStyle:{__style:{display:"-webkit-box",textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:"2"}},children:de&&!o&&(0,v.jsx)(M,{title:G})}),"desktop"===ce&&!de&&x&&!(0,L.$Y)(se)&&!(0,L.E0)(se)&&(0,v.jsx)(g.xu,{marginTop:1,overflow:"hidden",dangerouslySetInlineStyle:{__style:{display:"-webkit-box",textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:"2"}},"data-test-id":"desc",children:(0,v.jsx)(g.iP,{onTap:()=>{le({action:"click",item:"related-pins-description"})},children:(0,v.jsx)(g.xv,{size:"100",inline:!0,children:x})})})]}),e&&(0,v.jsx)(P,{credits:i,pinId:z}),"recipe"===$&&!!H&&(0,v.jsx)(n.Fragment,{children:(0,v.jsxs)(g.xu,{alignItems:"center",display:"flex",marginTop:1,children:[!!H&&(0,v.jsx)(y,{maxRating:B||"",rating:V||"",text:""}),!!Z&&(0,v.jsxs)(n.Fragment,{children:[(0,v.jsx)(g.xu,{paddingX:1,children:(0,v.jsx)(g.xv,{size:"100",children:"·"})}),(0,v.jsx)(g.xv,{size:"100",children:(0,C.IS)({...(0,j.u)(Z),i18n:re})})]})]})})]})})}),!ve&&ye,i&&(0,v.jsx)(p.Z,{onTouch:e=>b&&b(e),pressState:"none",children:(0,v.jsx)(g.xu,{children:(!o||d||_e)&&(0,v.jsxs)(g.xu,{display:"flex",marginTop:ve?-9:u||(ue&&!o?1:0),marginBottom:o?2:0,position:"relative",direction:ve?"column":"row",children:[(0,v.jsx)(g.xu,{flex:"none",display:ve?"flex":void 0,justifyContent:"center","data-test-id":"related-pins-avatar-image",children:oe(de?"mweb_auth_feed_a11y_fix":"mweb_unauth_feed_a11y_fix").anyEnabled?be:(0,v.jsx)(g.iP,{onTap:()=>{le({action:"click",item:"related-pins-avatar-image"})},children:be})}),(0,v.jsx)(g.xu,{direction:"column",display:"flex",flex:"grow",justifyContent:"center",alignItems:ve?"center":void 0,marginStart:1,"data-test-id":"related-pins-name",children:oe(de?"mweb_auth_feed_a11y_fix":"mweb_unauth_feed_a11y_fix").anyEnabled?xe:(0,v.jsx)(g.iP,{onTap:()=>{le({action:"click",item:"related-pins-name"})},children:xe})})]})})}),!i&&"desktop"===ce&&!!me&&((0,L.L6)(se)||(0,L.cD)(se)||(0,L.$Y)(se))&&(0,v.jsxs)(g.xu,{display:"flex",marginTop:ue?2:0,children:[(0,v.jsx)(g.xu,{flex:"none","data-test-id":"related-pins-avatar-image",children:(0,v.jsx)(g.iP,{onTap:()=>{le({action:"click",item:"related-pins-avatar-image"})},children:(0,v.jsx)(m.Z,{name:me.username||"",size:"sm",src:null!==(ie=me.image_small_url)&&void 0!==ie?ie:void 0})})}),(0,v.jsxs)(g.xu,{direction:"column",display:"flex",flex:"grow",justifyContent:"center",marginStart:1,"data-test-id":"related-pins-name",children:[(0,v.jsx)(g.rU,{underline:"hover",href:`/${me.username}/`,onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),e.stopPropagation(),(0,E.NC)("click_board_pin_attribution_board"),le({action:"click",item:"related-pins-name"})},children:(0,v.jsx)(g.xv,{size:"200",weight:"bold",children:me.full_name||me.username})}),he&&"protected"!==he.privacy?(0,v.jsx)(k.Z,{id:"related-pin-text-below-name",children:(0,v.jsx)(g.rU,{underline:"hover",href:null!==(ne=he.url)&&void 0!==ne?ne:"",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),e.stopPropagation(),(0,E.NC)("click_board_pin_attribution_profile"),le({action:"click",item:"related-pin-text-below-name"})},children:(0,v.jsx)(g.xv,{size:"200",children:null!==(ae=he.name)&&void 0!==ae?ae:""})})}):null]})]}),ve&&ye]}),(0,v.jsx)(g.xu,{position:ve?"absolute":void 0,right:!0,children:!q&&t})]})})};var F,U=i(857079),Z=i(349700),B=i(296011),V=i(167912);const H=void 0!==F?F:F=i(7745),W=(e,t)=>{const{checkExperiment:i}=(0,D.F)();return i("graphql_migration_sharelink_sgrowth_web").anyEnabled?((e,t)=>{const i=(0,V.useRelayEnvironment)();return(0,v.jsx)(B.t,{invite_code:e,relayEnvironment:i,inviteQuery:H,children:e=>{const i=null!=e&&e.data?e.data.sender:null,n=i&&i.first_name?i.first_name.substring(0,30):"";if(!n)return null;const a=i&&!i.is_default_image?i.image_medium_url:"",r=(0,Z.nk)(t.bt("{{ name }} shared this idea with you", "{{ name }} shared this idea with you", "homefeed.pinSenderAvatar.heading", undefined, true),{name:n});return(0,v.jsxs)(g.kC,{alignItems:"center",direction:"column",justifyContent:"start",children:[(0,v.jsx)(g.zd,{height:32,width:32,children:(0,v.jsx)(m.Z,{name:n,src:a})}),(0,v.jsx)(g.xu,{width:"80%",paddingY:2,children:(0,v.jsx)(g.xv,{align:"center",size:"200",weight:"bold",children:r})})]})}})})(e,t):((e,t)=>(0,v.jsx)(B.Z,{invite_code:e,children:e=>{const i=e?e.sender:null,n=i&&i.first_name?i.first_name.substring(0,30):"";if(!n)return null;const a=i&&!i.is_default_image?i.image_medium_url:"",r=(0,Z.nk)(t.bt("{{ name }} shared this idea with you", "{{ name }} shared this idea with you", "homefeed.pinSenderAvatar.heading", undefined, true),{name:n});return(0,v.jsxs)(g.kC,{alignItems:"center",direction:"column",justifyContent:"start",children:[(0,v.jsx)(g.zd,{height:32,width:32,children:(0,v.jsx)(m.Z,{name:n,src:a})}),(0,v.jsx)(g.xu,{width:"80%",paddingY:2,children:(0,v.jsx)(g.xv,{align:"center",size:"200",weight:"bold",children:r})})]})}}))(e,t)},K=({inviteCode:e})=>{const t=(0,f.ZP)();return(0,v.jsx)(g.xu,{minHeight:82,children:(0,v.jsx)(r.Z,{name:"SafeSuspense_PinCardSharedHeader_LoadingSpinner",children:(0,v.jsx)(w.Z,{fallback:(0,v.jsx)(U.Z,{accessibilityLabel:t.bt("Loading invitation component", "Loading Invitation component", "Loading InviteFetch component", undefined, true)}),children:W(e,t)})})})};var G=i(948945),$=i(55275);const q={initial:{opacity:0,transition:"opacity 0.25s ease-in"},fadeIn:{opacity:.8,transition:"opacity 1s ease"}},J=(e,t,i)=>(0,v.jsx)(g.xv,{color:"inverse",inline:!0,size:"200",weight:"bold",children:(0,v.jsx)(g.rU,{display:"inlineBlock",href:t,tapStyle:"none",underline:"hover",children:i})},e);function Y({color:e,getFeedbackText:t,onUnfollow:i,showing:a,unfollowed:r}){const o=(0,f.ZP)(),[s,l]=(0,n.useState)(a?"fadeIn":"initial"),d=(0,n.useRef)(null);(0,n.useEffect)((()=>("initial"===s&&a&&(d.current=window.requestAnimationFrame((()=>l("fadeIn")))),()=>{d.current&&window.cancelAnimationFrame(d.current)})),[s,l,a]);const{subTitle:c,title:u,unfollow:p}=t(J);let h=u,m=c;p&&r&&(h=p.title,m=p.subTitle);const _=()=>p?(0,$.t)(p.action,p.actionOptions,i):void 0;return a&&(0,v.jsx)(g.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:e,...q[s]}},margin:1,rounding:4,position:"absolute",top:!0,bottom:!0,left:!0,right:!0,children:(0,v.jsxs)(g.xu,{width:"100%",height:"100%",color:"dark",rounding:4,overflow:"auto",children:[(0,v.jsxs)(g.xu,{padding:3,rounding:2,display:"flex",direction:"column",height:"100%",justifyContent:"between",children:[(0,v.jsxs)(g.xu,{children:[(0,v.jsx)(g.X6,{size:"400",color:"light",children:h}),m&&(0,v.jsxs)(g.xu,{marginTop:1,children:[(0,v.jsx)(g.xv,{color:"light",size:"200",inline:!0,children:m}),(0,v.jsx)(g.xv,{color:"light",inline:!0,size:"200",weight:"bold",children:(0,v.jsx)(g.rU,{href:"/edit",display:"inlineBlock",rounding:2,tapStyle:"none",underline:"hover",children:o.bt("Tune your home feed", "Tune your home feed", "Text on the button to navigate to homefeed control", undefined, true)})})]})]}),!r&&p&&(0,v.jsx)(g.xu,{paddingY:1,children:(0,v.jsx)(g.zx,{fullWidth:!0,color:"white",text:o.bt("Unfollow", "Unfollow", "Text on the button to unfollow a specific board / user", undefined, true),onClick:_})})]}),!r&&p&&(0,v.jsx)(g.xu,{paddingY:1,children:(0,v.jsx)(g.zx,{fullWidth:!0,color:"white",text:o.bt("Unfollow", "Unfollow", "Text on the button to unfollow a specific board / user", undefined, true),onClick:_})})]})})}var X=i(21384),Q=i(992750);function ee({description:e,gridTitle:t,pinId:i,placeSummaryName:n,richMetadataTitle:a,richSummaryDisplayName:r,storyPinDataId:o,storyPinDataMetadataPinTitle:s,title:l}){return(0,v.jsxs)(g.xu,{paddingX:2,marginBottom:-1,display:"flex",children:[(0,v.jsx)(g.xu,{flex:"grow",maxHeight:32,minHeight:12,overflow:"hidden",width:142,children:(0,v.jsx)(g.xv,{lineClamp:2,size:"100",weight:"bold",children:(0,Q.fs)({pinTitle:l,gridTitle:t,richSummaryDisplayName:r,richMetadataTitle:a,storyPinDataId:o,storyPinDataMetadataPinTitle:s,placeSummaryName:n})||e})}),(0,v.jsx)(g.xu,{children:(0,v.jsx)(X.Z,{pinId:i,size:"sm",graphqlRef:null})})]})}var te=i(807592),ie=i(57791);const ne=({attribute:e,deviceType:t,location:i})=>{const n=(0,A.S)(i);(0,E.My)("unuath.product_attribution.click",{item:e,page:n,device:t})};function ae({description:e,domain:t,gridTitle:i,pinId:n,pinProduct:a,placeSummaryName:r,richMetadataTitle:o,richSummaryDisplayName:s,storyPinDataId:l,storyPinDataMetadataPinTitle:d,title:c}){const u=(0,T.ZP)(),p=(0,R.useLocation)();if(!n)return null;const h=a&&(a.price||a.standard_price||(0,te.Z)(a)),m=(0,Q.fs)({pinTitle:c,gridTitle:i,richSummaryDisplayName:s,richMetadataTitle:o,storyPinDataId:l,storyPinDataMetadataPinTitle:d,placeSummaryName:r})||e,_=`/pin/${n}/`;return(0,v.jsx)(g.xu,{paddingX:2,marginBottom:-1,marginTop:1,display:"flex",direction:"column",children:(0,v.jsxs)(g.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:[(0,v.jsx)(g.xu,{flex:"grow",minHeight:12,overflow:"hidden",width:142,children:(0,v.jsxs)(ie.MZ,{to:_,accessibilityLabel:m,deeplinkUri:_,children:[h&&(0,v.jsx)(g.iP,{onTap:()=>ne({deviceType:u,attribute:"price",location:p}),children:(0,v.jsx)(g.xv,{size:"100",weight:"bold",children:h})}),(0,v.jsx)(g.xu,{marginTop:1,children:(0,v.jsx)(g.iP,{onTap:()=>ne({deviceType:u,attribute:"title",location:p}),children:(0,v.jsx)(g.xv,{size:"100",weight:"bold",lineClamp:h?3:2,children:m})})}),t&&h&&(0,v.jsx)(g.xu,{marginTop:1,children:(0,v.jsx)(g.iP,{onTap:()=>ne({deviceType:u,attribute:"merchant",location:p}),children:(0,v.jsx)(g.xv,{size:"100",lineClamp:1,children:t})})})]})}),(0,v.jsx)(g.xu,{children:(0,v.jsx)(X.Z,{pinId:n,size:"sm",graphqlRef:null})})]})})}var re=i(248299),oe=i(394332),se=i(529195);const le=[],de=e=>(t,i)=>{const{pinId:n}=e,a=i().pins[n];a&&!a.impressed&&(le.push(e),(e=>{e({type:"PIN_IMPRESSIONS",payload:le.slice()}),le.length=0})(t))};var ce=i(477802),ue=i(255607),pe=i(874317),he=i(861411),me=i(639952),_e=i(772486),ge=i(447948),ve=i(378518),ye=i(813401),fe=i(112690),be=i(305324),xe=i(780679);function Pe(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const we=({isDesktop:e})=>e?0:1,Se=e=>Boolean(e.is_eligible_for_web_closeup),ke=e=>Boolean(e.promoter&&!e.is_downstream_promotion),Te={width:1,height:1,url:""},Ie=e=>{const{attribution:t,embed:i,is_eligible_for_web_closeup:n,rich_summary:a,videos:r,story_pin_data_id:o}=e,s=i||t&&t.embed;return n?"oneTap":r||s&&"video"===s.type?"video":s&&"gif"===s.type?"gif":a&&"product"===a.type_name?"product":a&&"recipe"===a.type_name?"recipe":o?"storyPin":"image"},Ae=e=>{if(("video"===Ie(e)||ke)&&e.videos&&e.videos.video_list){const{duration:t=0}=e.videos.video_list[Object.keys(e.videos.video_list)[0]]||{};return(0,h.Z)(t)}return""},Ce=e=>{var t;if("product"!==Ie(e))return null;const[i]=(null===(t=e.rich_summary)||void 0===t?void 0:t.products)||[];if(!i)return null;const n=i.offer_summary;return n&&(n.price||n.max_price)},je=(0,n.lazy)((()=>i.e(15825).then(i.bind(i,15825))));class Ee extends n.Component{constructor(...e){super(...e),Pe(this,"state",{startImpressionTimer:!1,openContextMenuByLongPress:!1,isShowingCustomContextMenu:!1}),Pe(this,"getPinImage",(()=>{const{pin:e,duploIsSquarePin:t}=this.props;if(!e||!e.images)return Te;var i;if(t)return{height:136,url:null===(i=e.images["236x"])||void 0===i?void 0:i.url,width:136};const n=["236x","170x","136x136","736x","474x","orig"];for(const a of n)if(e.images[a]&&e.images[a].url)return e.images[a];return Te})),Pe(this,"getImpressionData",(()=>{var e,t;const{pin:i}=this.props,n=null===(e=i.videos)||void 0===e||null===(t=e.video_list)||void 0===t?void 0:t.V_720P,a=n?{isNativeVideoAndWatchable:!!(n&&n.url&&n.height&&n.width)||void 0,videoIdStr:n&&i.videos?i.videos.id:void 0}:{},r=this.getPinImage();return{richTypes:i.shopping_flags||[],imageURL:r.url||"",...a,...this.props.impressionData}})),Pe(this,"getAuxData",(()=>{const{auxData:e={},pin:t,pwaType:i}=this.props;return{commerce_data:(0,s.Z)({isEligibleForPdp:t.is_eligible_for_pdp,isOosProduct:t.is_oos_product,isStaleProduct:t.is_stale_product,pinShoppingFlags:t.shopping_flags}),pwa_type:i,...e}})),Pe(this,"getFeedbackType",(()=>{const{board:e,feedback:t,viewParameter:i,pin:n}=this.props;return this.feedbackHelpers.getFeedbackType({board:e,feedback:t,viewParameter:i,pin:n,pinner:n.pinner})})),Pe(this,"getRecommendationDescription",(e=>{const{board:t,pin:i}=this.props;return this.feedbackHelpers.getRecommendationDescription({ad_match_reason:i.ad_match_reason,board:t,feedbackType:this.getFeedbackType(),makeNavigateLink:e,pinner:i.pinner,promoter:i.promoter,recommendationReason:i.recommendation_reason,sourceInterest:i.source_interest})})),Pe(this,"getPinHiddenFeedbackText",(e=>{const{board:t,pin:i}=this.props,n=i.promoter,a=this.feedbackHelpers.getUnfollowAction({board:t,feedbackType:this.getFeedbackType(),makeNavigateLink:e,pinner:i.pinner,sourceInterest:i.source_interest});return ke(i)&&null!=n&&n.full_name?{title:"",subTitle:(0,Z.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.", "pinRep.promotedPinfeedbackText.subtitle", undefined, true),{promoter:n.full_name})}:a?{title:this.props.i18n.bt("Pin hidden", "Pin hidden", "message displayed after hiding a pin", undefined, true),subTitle:this.getRecommendationDescription(e),unfollow:a}:{title:this.props.i18n.bt("Pin hidden", "Pin hidden", "message displayed after hiding a pin", undefined, true),subTitle:this.props.i18n.bt("Got it! We'll try to show you more relevant Pins in the future.", "Got it! We'll try to show you more relevant Pins in the future.", "message displayed after hiding a pin", undefined, true)}})),Pe(this,"feedbackHelpers",(0,o.ZP)({i18n:this.props.i18n,interpolateNamedTemplate:Z.nk})),Pe(this,"logOneTap",(()=>{const{logContextEvent:e,pin:t,trackingParams:i,viewType:n,viewParameter:a,auxData:r}=this.props,o=(0,d.Z)(i,t.tracking_params),l={view_type:this.props.viewType,view_parameter:this.props.viewParameter,element:t.story_pin_data_id?12372:35,component:this.props.componentType,object_id_str:t.id,aux_data:{commerce_data:(0,s.Z)({isEligibleForPdp:t.is_eligible_for_pdp,isOosProduct:t.is_oos_product,isStaleProduct:t.is_stale_product,pinShoppingFlags:t.shopping_flags}),grid_index:this.props.slotIndex,image_signature:t.image_signature,...this.props.auxData},clientTrackingParams:o};e({event_type:8948,view_type:n,view_parameter:a,object_id_str:t.id,clientTrackingParams:o,aux_data:{image_signature:t.image_signature,closeup_navigation_type:"click",click_type:"clickthrough",cosmic_ray_count:"2",...r}}),(0,_e.jC)(l),e({component:this.props.componentType,event_type:13,view_type:3,clientTrackingParams:o,aux_data:{closeup_navigation_type:"web_closeup",image_signature:t.image_signature},object_id_str:t.id})})),Pe(this,"markPinAsSeen",(()=>this.props.markPinAsSeen(this.props.pinId))),Pe(this,"handleLoad",(()=>{this.setState({startImpressionTimer:!0})})),Pe(this,"handleError",(()=>{this.setState({startImpressionTimer:!1})})),Pe(this,"handleClick",(e=>{const{auxData:t,componentType:i,deviceType:n,logContextEvent:a,pin:r,slotIndex:o,trackingParams:l,viewParameter:c,viewType:u,duploFeedItemProps:p,isAuth:h,trackInteraction:m,unauthDesktopSignupModalPageContext:_}=this.props,{onPinClick:g}=null!=p?p:{},v=e=>(0,E.My)(`unauth_pin_rep.${e}.${String(c)}`);if(v("click"),a({view_type:u,view_parameter:c,element:r.story_pin_data_id?12372:35,event_type:101,component:i,object_id_str:r.id,clientTrackingParams:(0,d.Z)(l,r.tracking_params),aux_data:{commerce_data:(0,s.Z)({isEligibleForPdp:r.is_eligible_for_pdp,isOosProduct:r.is_oos_product,isStaleProduct:r.is_stale_product,pinShoppingFlags:r.shopping_flags}),grid_index:o,image_signature:r.image_signature,...t}}),Se(r)||a({event_type:8948,view_type:u,view_parameter:c,object_id_str:r.id,clientTrackingParams:(0,d.Z)(l,r.tracking_params),aux_data:{image_signature:r.image_signature,commerce_data:(0,s.Z)({isEligibleForPdp:r.is_eligible_for_pdp,isOosProduct:r.is_oos_product,isStaleProduct:r.is_stale_product,pinShoppingFlags:r.shopping_flags}),closeup_navigation_type:"click",grid_index:o,cosmic_ray_count:"3",...t}}),!h)switch(m({action:"click",item:"pin"}),u){case 3:(0,E.NC)("click_pin_related_image");break;case 5:(0,E.NC)("click_board_pin_image");break;case 210:(0,E.NC)("click_topic_pin_image")}if(Se(r)&&this.logOneTap(),g&&g(),"desktop"===n){if(e.metaKey){v("click.cmd_button_pressed"),e.preventDefault();window.open(`/pin/${r.id}/`,"_blank").focus()}else if(!h&&_){const{pinImageClickHandler:t}=_;t({event:e,pin:r,linkTarget:"duploClientNav"})}}})),Pe(this,"handleCreditsClick",(e=>{var t;const{history:i,logContextEvent:n,pin:a}=this.props,{id:r,sponsorship:o,story_pin_data_id:s}=a,{creator:l,sponsor:d}=o||{},{id:c}=l||{},{id:u}=d||{},p=!!s;e.stopPropagation(),e.preventDefault();const h=null===(t=this.getCredits())||void 0===t?void 0:t.link;h&&i.push(h),n({view_type:3,element:27,event_type:102,object_id_str:r,component:p?230:void 0,aux_data:{pin_id:r,...c&&u?{creator_id:c,sponsor_id:u}:{}}})})),Pe(this,"handleUnfollowPin",(()=>this.props.markPinUnfollowed(this.props.pin.id))),Pe(this,"handlePinSend",(e=>{e&&e.stopPropagation&&e.stopPropagation();const{pin:t,board:i,setSharingOnBoardPage:n}=this.props;i&&t&&n&&i.isSocialSeasonalBoard&&n(!0,"pin",t.id)})),Pe(this,"isOverrideImageOnly",(()=>{const{pin:{rich_summary:e},viewer:t,viewParameter:i}=this.props,n=3375===i;return e&&43===i&&!(0,u.Z)(t.created_at)||n})),Pe(this,"convertToGif",(e=>{const t=Math.max(e.embed&&e.embed.width||0,236),i=Math.max(e.embed&&e.embed.height||0,236);return{url:e.embed?e.embed.src:"",width:t,height:i}}))}componentDidMount(){const{isAuth:e,slotIndex:t,pin:i,viewParameter:n,location:a}=this.props;if(!e&&0===t&&3070===n){const e=a.pathname;(0,se.H$)(e,i)}}getIsClaimedContent(){var e,t;const{pin:i,viewParameter:n}=this.props;return 3375===n&&!(null===(e=i.link_domain)||void 0===e||null===(t=e.official_user)||void 0===t||!t.is_primary_website_verified)}getCredits(){const{board:e,pin:t,viewParameter:i}=this.props,n=t.story_pin_data,a=t.pinner,r=t.promoter,o=null==n?void 0:n.has_product_pins,s=0===i,l=3173===i,d=3375===i,c=this.getIsClaimedContent(),u=t.native_creator,p=!!t.native_creator,h=ke(t),{sponsorship:m}=t,{creator:_,sponsor:g}=m||{},v=h&&!!m&&(null==r?void 0:r.id)!==(null==u?void 0:u.id),y=!!m&&_;if(!(h||y||s||l||p||c))return;switch(v?"PROMOTED_SPONSORED":h?"PROMOTED":y?"SPONSORED":p?"AFFILIATED_PRODUCTS":o?"NATIVE_CONTENT":c?"CLAIMED_CONTENT":e&&"protected"===e.privacy?"SAVED_BY":"DEFAULT"){case"PROMOTED_SPONSORED":return{title:null==u?void 0:u.full_name,subtitle:null==r?void 0:r.full_name,avatar:this.getPinnerImage(null==u?void 0:u.image_small_url),mediumAvatar:this.getPinnerImage(null==u?void 0:u.image_medium_url),largeAvatar:this.getPinnerImage(null==u?void 0:u.image_large_url),link:null!=u&&u.username?`/${u.username}/`:""};case"PROMOTED":return{title:this.props.i18n.bt("Promoted by", "Promoted by", "Grid pin annotation", undefined, true),subtitle:null==r?void 0:r.full_name,avatar:this.getPinnerImage(null==r?void 0:r.image_small_url),mediumAvatar:this.getPinnerImage(null==r?void 0:r.image_medium_url),largeAvatar:this.getPinnerImage(null==r?void 0:r.image_large_url),link:null!=r&&r.username?`/${r.username}/`:""};case"SPONSORED":if(!m)throw new Error("sponsorship doesn't exist when expected");return{title:null==u?void 0:u.full_name,subtitle:null==g?void 0:g.full_name,avatar:this.getPinnerImage(null==u?void 0:u.image_small_url),mediumAvatar:this.getPinnerImage(null==u?void 0:u.image_medium_url),largeAvatar:this.getPinnerImage(null==u?void 0:u.image_large_url),link:null!=u&&u.username?`/${u.username}/`:""};case"AFFILIATED_PRODUCTS":return{title:null==u?void 0:u.full_name,subtitle:"",avatar:this.getPinnerImage(null==u?void 0:u.image_small_url),mediumAvatar:this.getPinnerImage(null==u?void 0:u.image_medium_url),largeAvatar:this.getPinnerImage(null==u?void 0:u.image_large_url),link:null!=u&&u.username?`/${u.username}/`:""};case"NATIVE_CONTENT":let i=(null==e?void 0:e.url)||`/pin/${t.id}/`;return d&&(i=null!=u&&u.username?`/${u.username}/`:""),{title:"",subtitle:null==u?void 0:u.full_name,avatar:this.getPinnerImage(null==u?void 0:u.image_small_url),mediumAvatar:this.getPinnerImage(null==u?void 0:u.image_medium_url),largeAvatar:this.getPinnerImage(null==u?void 0:u.image_large_url),link:i};case"CLAIMED_CONTENT":const{link_domain:n}=t,{official_user:o}=n||{};return o?{subtitle:o.full_name,avatar:this.getPinnerImage(o.image_small_url),mediumAvatar:this.getPinnerImage(o.image_medium_url),largeAvatar:this.getPinnerImage(o.image_large_url),link:o.username?`/${o.username}/`:""}:void 0;case"SAVED_BY":return{title:this.props.i18n.bt("Saved by", "Saved by", "Grid pin annotation", undefined, true),subtitle:"",avatar:this.getPinnerImage(null==a?void 0:a.image_small_url),mediumAvatar:this.getPinnerImage(null==a?void 0:a.image_medium_url),largeAvatar:this.getPinnerImage(null==a?void 0:a.image_large_url),link:(null==e?void 0:e.url)||`/pin/${t.id}/`};default:return{title:(null==a?void 0:a.full_name)||"",subtitle:"",avatar:this.getPinnerImage(null==a?void 0:a.image_small_url),mediumAvatar:this.getPinnerImage(null==a?void 0:a.image_medium_url),largeAvatar:this.getPinnerImage(null==a?void 0:a.image_large_url),link:(null==e?void 0:e.url)||`/pin/${t.id}/`}}}getSharedHeaderInviteCode(){var e;const{viewParameter:t,viewedSharedPins:i,pinId:n}=this.props;return 92===t?null===(e=i&&i[n])||void 0===e?void 0:e.inviteCode:void 0}getPinnerImage(e){return e&&e.includes("/user/default")?void 0:e}getPinText(){const{grid_title:e,rich_summary:t,description:i}=this.props.pin;return"string"==typeof e?{title:e,description:""}:{title:null==t?void 0:t.display_name,description:i}}renderPinCard(){var e,t,i,n,a,o,s,u,h,m,_,y,f,x,P,S,T,I,A,C,j,E,D,O,R,L,N,M,F,U,Z,B,V,H;const{board:W,checkExperiment:$,country:q,disableAppUpsell:J,duploDisablePinCardPadding:X,disableRounding:te,disableReaction:ne,deviceType:se,experience:le,feedback:de,imageOnlyOption:he,i18n:me,isAuth:_e,isBot:ge,duploIsSquarePin:ve,isImageOnlyExp:ye,location:fe,duploFeedItemProps:be,duploLazyLoadImage:xe,duploOneTapSave:Pe,duploPinCardDetailsMargin:Te,duploPriorityFetchImage:Ee,pin:De,slotIndex:Oe,viewParameter:Re,viewType:Le,duploShouldAllowProductPriceIndicator:Ne,topLevelTrafficSource:Me,topLevelTrafficSourceDepth:ze,trafficSource:Fe,duploUnauthRelatedPinsAutoplayExpGroup:Ue,trackingParams:Ze,trackInteraction:Be,vaseDisplayMode:Ve,createUnauthContextMenuHandler:He,duploConversationPin:We}=this.props,{hidePinMetadata:Ke=!1,onPinLinkClick:Ge,showSeoMetadata:$e}=null!=be?be:{},{aggregated_pin_data:qe,category:Je,image_signature:Ye,promoter:Xe,rich_summary:Qe,title:et,sponsorship:tt,story_pin_data:it}=De,{description:nt,title:at}=this.getPinText(),rt="desktop"===se,ot=Ie(De),st=0===Re,lt=3475===Re,dt=43===Re,ct=ke(De),ut=!!tt,pt=null==it?void 0:it.has_product_pins,ht=null==it?void 0:it.is_deleted,mt=(0,d.Z)((fe&&fe.state||{}).trackingParams||Ze,De.tracking_params),_t="product"===Ie(De)&&!_e&&!ge&&(!$("unauth_gate_product_pins_by_country_and_trustworthiness").anyEnabled||De.is_eligible_for_pdp),gt=ye&&!this.isOverrideImageOnly(),vt=W&&W.isSocialSeasonalBoard,yt=this.getPinImage(),ft=vt&&"gif"===ot?this.convertToGif(De):yt,bt=null===(e=De.videos)||void 0===e||null===(t=e.video_list)||void 0===t?void 0:t.V_720P,xt=(null==bt?void 0:bt.url)||(null===(i=De.videos)||void 0===i||null===(n=i.video_list)||void 0===n||null===(a=n.V_HLSV4)||void 0===a?void 0:a.url),Pt=(0,Q.hP)(null!==(o=De.description)&&void 0!==o?o:"",De.description_html||"",null===(s=De.pin_join)||void 0===s?void 0:s.visual_annotation,De.alt_text||""),wt=_e?nt:(0,c.Z)({storyPinDataId:De.story_pin_data_id,pinDescription:De.description,richMetadataDescription:null!==(u=null===(h=De.rich_metadata)||void 0===h?void 0:h.description)&&void 0!==u?u:"",richSummaryDisplayName:null!==(m=null===(_=De.rich_summary)||void 0===_?void 0:_.display_name)&&void 0!==m?m:"",placeSummaryName:null!==(y=De.place_summary)&&void 0!==y?y:"",closeupDescription:null!==(f=De.closeup_description)&&void 0!==f?f:"",closeupUnifiedDescription:null!==(x=De.closeup_unified_description)&&void 0!==x?x:""}),St=le&&le.display_data.hideReactions||!1,kt=le&&le.display_data.hideDesc||!1,Tt=!ne&&(0,ue.J6)({boardIsCollaborative:null==W?void 0:W.is_collaborative,isDownstreamPromotion:De.is_downstream_promotion,isPromoted:De.is_promoted,storyPinDataId:De.story_pin_data_id,videosId:null===(P=De.videos)||void 0===P?void 0:P.id})&&!lt&&!St,It=!_e;let At;At=Se(De)?De.tracked_link||De.link:It?(0,Q.bN)({pinId:De.id,seoUrl:De.seo_url}):(0,Q.BY)(De.id);const Ct=!nt||gt&&!st?void 0:nt.trim(),jt=this.getSharedHeaderInviteCode(),Et={accessibilityLabel:Pt||at||nt||"",country:q,deeplinkUri:At,external:Se(De),externalQueryParams:{pin:De.id,client_tracking_params:Ze},isAppUpsellDisabled:J,onTouch:this.handleClick,pinCategory:De.category,pressState:"none",rounding:4,title:this.props.i18n.bt("See this Pin", "See this Pin", "App Upsell Text after clicking on Pin in feed", undefined, true),to:{pathname:At,state:{trackingParams:Ze,trafficSource:Fe,topLevelTrafficSource:Me,topLevelTrafficSourceDepth:ze}},upsellType:"direct",viewParameter:Re,viewType:Le,clientTrackingParams:mt},Dt=we({isDesktop:rt}),Ot=De.native_creator||De.pinner,Rt="search"===Fe&&"storyPin"===ot&&$("mweb_search_ideapin_module").anyEnabled;return(0,v.jsxs)(g.xu,{"data-test-id":"pin","data-test-pin-id":De.id,marginBottom:rt||Ke?0:2,children:[(0,v.jsxs)(g.xu,{"data-test-id":Pt||at||nt?"pin-with-alt-text":"pin-missing-alt-text",paddingY:Ke||X?0:Dt,paddingX:X?0:Dt,marginBottom:0,onContextMenu:Ot?He({pinId:De.id,deviceOptions:{isDesktop:!0}}):void 0,dangerouslySetInlineStyle:{__style:this.state.isShowingCustomContextMenu?pe.Yw:{}},children:[(0,v.jsxs)(ie.MZ,{...Et,children:[!!jt&&(0,v.jsx)(K,{inviteCode:jt}),ht?(0,v.jsx)(re.Z,{isPinRep:!0}):(0,v.jsx)(G.Z,{clientTrackingParams:mt,color:null!==(S=De.dominant_color)&&void 0!==S?S:"",description:Ct,domainLinkData:De.domain&&De.link?{clickLoggingOptions:{auxData:{objectId:De.id,grid_index:Oe,sanitized_url:De.link}},domain:De.domain,link:De.link,onClick:Ge}:void 0,disableRounding:te,hideBottomCardText:vt,image:ft,imageAltText:Pt,imageCrop:De.image_crop,isMessenger:vt,isPromoted:ct,isSquarePin:ve,lazyLoadImage:xe,onError:this.handleError,oneTapSave:Pe,onLoad:this.handleLoad,openCustomContextMenu:()=>this.setState({openContextMenuByLongPress:!0}),priorityFetchImage:Ee,disableDefaultContextMenu:()=>this.setState({isShowingCustomContextMenu:!0}),createUnauthContextMenuHandler:He,pinId:De.id,pinnedToBoardId:(null===(T=De.pinned_to_board)||void 0===T?void 0:T.id)||"",pinVideo:(vt||ct)&&bt||void 0,videoUrl:xt,productPrice:Ne&&!_t?Ce(De):null,slotIndex:Oe,storyData:it,title:!gt||st?at:void 0,type:ot,videoDuration:Ae(De),unauthRelatedPinsAutoplayExpGroup:Ue,viewType:Le,viewParameter:Re})]}),!("image-only"===he)&&(_e||"desktop"===se)&&(0,v.jsxs)(g.xu,{children:[!lt&&!dt&&"desktopParity"===Ve&&(0,v.jsx)(oe.Z,{pinId:De.id,mode:"inlineWithScrollArrows",graphqlRef:null}),!_t&&(0,v.jsx)(ie.MZ,{...Et,children:(0,v.jsx)(z,{duploConversationPin:We,allowPriceIndicator:!Ne&&!_t&&["shop_feed"].includes(Fe),marginTop:Te,hidePinMetadata:Ke||kt,contextMenu:_e&&!ht?(0,v.jsx)(g.xu,{marginStart:1,marginTop:Te,children:(0,v.jsx)(g.xu,{height:26,width:24,children:(0,v.jsx)(r.Z,{name:"SafeSuspense_Pin_ContextualMenu",children:(0,v.jsx)(w.Z,{children:(0,v.jsx)(je,{adMatchReason:De.ad_match_reason,bestPinImgSrc:(0,l.Z)({images:De.images,embedSrc:null===(I=De.embed)||void 0===I?void 0:I.src,embedType:null===(A=De.embed)||void 0===A?void 0:A.type}),feedback:de,feedbackType:this.getFeedbackType(),getRecommendationDescription:this.getRecommendationDescription,graphqlRef:null,imageSignature:Ye,pinCategory:Je,pinDescription:wt,pinId:De.id,pinTitle:et,sourceType:ct?"ad":st?"following":void 0,viewParameter:Re,viewType:Le,openByLongPress:this.state.openContextMenuByLongPress,trackingParams:Ze,toggleLongPress:()=>{this.setState({openContextMenuByLongPress:!1})}})})})})}):null,credits:this.getCredits(),hasAffiliatedProducts:pt,isPromotedPin:ct,isSponsoredPin:ut,isSquarePin:ve,marginStart:Te,marginEnd:Te,onCreditsClick:this.handleCreditsClick,pinDescription:wt,pinId:De.id,pinnedToBoardId:(null===(C=De.pinned_to_board)||void 0===C?void 0:C.id)||"",pinReactionCounts:De.reaction_counts,pinTagsChips:(qe||{}).pin_tags_chips,promoterName:null==Xe?void 0:Xe.full_name,recipeCookTime:gt?void 0:De.rich_summary&&De.rich_summary.display_cook_time,recipeMaxRating:gt||null==Qe||null===(j=Qe.aggregate_rating)||void 0===j?void 0:j.best_rating,recipeRating:gt||null==Qe||null===(E=Qe.aggregate_rating)||void 0===E?void 0:E.rating_value,recipeReviewCount:gt||null==Qe||null===(D=Qe.aggregate_rating)||void 0===D?void 0:D.review_count,shouldShowReactions:Tt,style:Rt?"overlay":"default",title:Rt?void 0:at,type:ot})})]}),!_e&&_t&&(0,v.jsx)(ae,{description:De.description,domain:null===(O=De.rich_summary)||void 0===O?void 0:O.site_name,gridTitle:De.grid_title,pinId:De.id,pinProduct:(0,b.kb)(De),placeSummaryName:De.place_summary,richMetadataTitle:null===(R=De.rich_metadata)||void 0===R?void 0:R.title,richSummaryDisplayName:null===(L=De.rich_summary)||void 0===L?void 0:L.display_name,storyPinDataId:De.story_pin_data_id,storyPinDataMetadataPinTitle:null===(N=De.story_pin_data)||void 0===N||null===(M=N.metadata)||void 0===M?void 0:M.pin_title,title:De.title})]}),(null==W?void 0:W.isSocialSeasonalBoard)&&_e&&(0,v.jsx)(g.xu,{color:"secondary",marginBottom:6,marginEnd:"auto",marginStart:"auto",marginTop:-2,position:"relative",rounding:2,width:"90%",children:(0,v.jsx)(p.Z,{onTouch:this.handlePinSend,pressState:"none",rounding:2,children:(0,v.jsx)(g.xu,{padding:3,children:(0,v.jsx)(g.xv,{align:"center",weight:"bold",children:me.bt("Send", "Send", " - ", undefined, true)})})})}),"reported"===De.feedback_status?(0,v.jsx)(Y,{color:null!==(F=De.dominant_color)&&void 0!==F?F:"",getFeedbackText:()=>({title:this.props.i18n.bt("Reported", "Reported", "message displayed after reporting a pin", undefined, true),subTitle:this.props.i18n.bt("Thanks! Your feedback helps us keep the Pinterest community safe.", "Thanks! Your feedback helps us keep the Pinterest community safe.", "message displayed after reporting a pin", undefined, true)}),pinId:De.id,showing:!!De.feedback_status}):(0,v.jsx)(Y,{color:null!==(U=De.dominant_color)&&void 0!==U?U:"",getFeedbackText:this.getPinHiddenFeedbackText,onUnfollow:this.handleUnfollowPin,pinId:De.id,showing:!!De.feedback_status,unfollowed:"unfollowed"===De.feedback_status,viewParameter:Re,viewType:Le}),$e&&"inlineHidden"===Ve&&!_t&&(0,v.jsx)(k.Z,{id:"related-pins-title",children:(0,v.jsx)(g.iP,{onTap:()=>{Be({action:"click",item:"related-pins-title"})},fullWidth:!1,children:(0,v.jsx)(ee,{description:De.description,gridTitle:De.grid_title,pinId:De.id,placeSummaryName:De.place_summary,richMetadataTitle:null===(Z=De.rich_metadata)||void 0===Z?void 0:Z.title,richSummaryDisplayName:null===(B=De.rich_summary)||void 0===B?void 0:B.display_name,storyPinDataId:De.story_pin_data_id,storyPinDataMetadataPinTitle:null===(V=De.story_pin_data)||void 0===V||null===(H=V.metadata)||void 0===H?void 0:H.pin_title,title:De.title})})}),De.debug&&(0,v.jsx)(ce.W,{data:De.debug})]})}render(){const{componentType:e,pin:t,trackingParams:i,viewParameter:n,viewType:a,slotIndex:r,objectIdStr:o,viewData:s}=this.props,{startImpressionTimer:l}=this.state;return t?(0,v.jsx)(he.dL,{auxData:this.getAuxData(),component:e,impressionData:this.getImpressionData(),isPaused:!l,loggingId:t.id,objectIdStr:o,onTracked:this.markPinAsSeen,slotIndex:r,trackingParams:i,viewData:s,viewParameter:n,viewType:a,children:({impressionTrackerRef:e})=>(0,v.jsx)(g.xu,{ref:e,children:this.renderPinCard()})}):null}}const De=(0,a.connect)((({experiences:e,pins:t,session:i,users:n},a)=>{const r=t[a.pinId]||null,o=e[1000107];return{board:null==r?void 0:r.board,country:i.country,hasPoorConnection:i.hasPoorConnection,isAuth:i.isAuthenticated,isBot:i.isBot,isImageOnlyExp:o&&500678===o.experience_id,pin:r,viewer:n[i.userId],viewedSharedPins:i.viewedSharedPins}}),((e,{viewParameter:t,viewType:i})=>({markPinAsSeen:n=>e(de({pinId:n,viewParameter:t,viewType:i})),markPinUnfollowed:t=>e((0,ge.fH)(t,"unfollowed")),setSharingOnBoardPage:(t,i,n)=>e((0,me.Mj)(t,i,n))})))((function(e){const t=(0,f.ZP)(),i=(0,xe.g)(),{checkExperiment:n}=(0,D.F)(),a=(0,R.useHistory)(),r=(0,R.useLocation)(),o=(0,T.ZP)(),s=(0,be.M)(),l=(0,ye.yz)(),d=(0,ve._)({id:1000107}),c=(0,fe.Z)(),u=(0,A.Z)();return(0,v.jsx)(Ee,{...e,createUnauthContextMenuHandler:s,deviceType:o,experience:d,pwaType:l,unauthDesktopSignupModalPageContext:i,vaseDisplayMode:"desktop"===o?"desktopParity":"inlineHidden",i18n:t,checkExperiment:n,history:a,location:r,logContextEvent:c,trackInteraction:u})}))},948945:(e,t,i)=>{i.d(t,{Z:()=>de});var n=i(667294),a=i(702664),r=i(81226),o=i(8320),s=i(977734),l=i(499128),d=i(898781),c=i(112690),u=i(927383),p=i(662089),h=i(52022),m=i(332611),_=i(639952),g=i(57791),v=i(881802),y=i(698330),f=i(883119),b=i(276775),x=i(785893);const P=new f.Ry(1);function w({buttonText:e,clientTrackingParams:t,color:i="primary",deeplinkUri:r,experience:w,inline:S=!0,minWidth:k,onTouch:T,onUnsave:I,pinId:A,pinnedToBoardId:C,shape:j,shouldShowSavedButton:E,viewType:D,viewParameter:O,showSaveHandoffExperience:R}){var L;const N=(0,d.ZP)(),M=(0,a.useDispatch)(),z=(0,b.useHistory)(),F=(0,b.useLocation)().pathname.startsWith("/pin"),U=(0,a.useSelector)((({session:e})=>e.hasSavedUnauthPin)),Z=(0,a.useSelector)((({session:e})=>e.unauthSavePinId)),B=null===(L=(0,y.Tt)())||void 0===L?void 0:L.pin_count,V=(0,c.Z)(),H=(0,h.Z)(),{showToast:W,showRepinConfirmation:K}=(0,p.Z)(),G=()=>{M((0,s.Z)({history:z,i18n:N,logContextEvent:V,onSuccess:()=>{w&&M((0,m.CK)(w.placement_id,w.experience_id))},originalPinId:A,pinId:A,trackingParams:{clientTrackingParams:t,pinnedToBoardId:C},showRepinConfirmation:R&&!F?()=>{}:K,disableRepinAnimation:Z===A,pinCount:B})).catch((e=>W((({hideToast:t})=>(0,x.jsx)(l.ZP,{variant:"error",text:e.message||N.bt("Sorry, something went wrong at our end.", "Sorry! Something went wrong on our end.", "quickSave.toast.error.message", undefined, true),onHide:t})))))},$=(0,n.useRef)(null),q=R&&!U,J=(0,u.Z)()({fn:e=>{e.stopPropagation(),e.preventDefault(),T&&T(e),E?E&&I&&I():G()},modalHeader:(0,v.Bx)(N)});(0,n.useEffect)((()=>{q&&!$.current&&(H({action:"trigger",item:"unauth-save-button-quicksave"}),G(),M((0,_.e2)())),$.current=q}));const Y=()=>N.bt("Pin", "Pin", "quickSave.quickSaveButton.icon.accessibilityLabel", undefined, true),X=()=>e||N.bt("Save", "Save", "quickSave.quickSaveButton.buttonText", undefined, true);return U&&!F?null:(0,x.jsx)(f.xu,{"data-test-id":"save-button-mobile",zIndex:P,children:r?(0,x.jsx)(g.di,{accessibilityLabel:Y(),color:i,customStyles:{padding:"14px 16px"},deeplinkUri:r,inline:S,minHeight:48,minWidth:k,onTouch:J,pressState:["compress","background"],shape:j,size:"lg",text:X(),to:z.location.pathname,upsellType:"save",viewType:D,viewParameter:O}):(0,x.jsx)(o.Z,{accessibilityLabel:Y(),color:i,customStyles:{padding:"14px 16px"},inline:S,minHeight:48,minWidth:k,onTouch:J,pressState:"compress",shape:j,size:"300",text:X()})})}var S=i(364034),k=i(139574),T=i(850431),I=i(867820),A=i(780280),C=i(177891),j=i(343341);function E(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class D extends n.PureComponent{constructor(...e){var t;super(...e),t=this,E(this,"state",{saveState:void 0}),E(this,"legoFixedZIndex",new f.Ry(2)),E(this,"onAddPin",(async function(){const{clientTrackingParams:e,dispatch:i,i18n:n,oneTapSave:a,pinId:r,pinnedToBoardId:o,showToast:s,viewType:d,historyPush:c}=t.props;try{const n=await i((0,T.w)({i18n:t.props.i18n,logContextEvent:t.props.logContextEvent,originalPinId:r,pinId:r,boardId:null==a?void 0:a.boardId,isOneTapSave:!0,onUndo:()=>{t.onDeletePin()},section:null==a?void 0:a.section,showToast:s,trackingParams:{clientTrackingParams:e,pinnedToBoardId:o},viewType:d,historyPush:c}));t.setState({saveState:"saved"}),i((0,C.a)({boardId:null==a?void 0:a.boardId,localPinId:n.id,pinId:r}))}catch(u){s((({hideToast:e})=>(0,x.jsx)(l.ZP,{variant:"error",text:u.message||n.bt("Sorry, something went wrong at our end.", "Sorry! Something went wrong on our end.", "error during repin", undefined, true),onHide:e}))),t.setState({saveState:void 0})}})),E(this,"onDeletePin",(async function(){const{dispatch:e,clientTrackingParams:i,i18n:n,pinId:a,savedInfo:r,showToast:o}=t.props;if(r){e((0,C.k)({boardId:r.boardId,localPinId:r.localPinId,pinId:a}));try{await e((0,k.q)({pinId:r.localPinId,boardId:r.boardId,clientTrackingParams:i})),o((({hideToast:e})=>(0,x.jsx)(l.ZP,{text:n.bt("Pin deleted", "Pin deleted!", "User deleted their pin", undefined, true),onHide:e}))),t.setState({saveState:void 0})}catch(s){o((({hideToast:e})=>(0,x.jsx)(l.ZP,{variant:"error",text:n.bt("Sorry, an error occurred whilst deleting your Pin.", "Sorry! There was an error deleting your Pin.", "Error when user tried to delete pin", undefined, true),onHide:e}))),t.setState({saveState:"saved"})}}})),E(this,"handlePinAction",this.props.requireAuthForLimitedLogin({fn:({event:e})=>{e.stopPropagation(),e.preventDefault();const{saveState:t}=this.state,{history:i,pinId:n,isOneTapExploreLocalTab:a,pinnedToBoard:r}=this.props;["saving","deleting"].includes(t)||a&&r||(t||this.props.savedInfo?this.props.isOneTapExploreLocalTab||(this.setState({saveState:"deleting"}),this.onDeletePin()):(this.setState({saveState:"saving"}),a?i.push({pathname:`/pin/${n}/repin`,state:{isOneTapSave:!0}}):this.onAddPin()))},modalHeader:(0,v.Bx)(this.props.i18n)})),E(this,"shouldDisplayAsSaved",(({isOneTapExploreLocalTab:e,pinnedToBoard:t,savedInfo:i})=>e?!!t:!!i))}render(){const{children:e,clientTrackingParams:t,homepageExperience:i,i18n:a,isOneTapExploreLocalTab:r,isRTL:o,oneTapSave:s,pinId:l,pinnedToBoard:d,pinnedToBoardId:c,savedInfo:u,shouldShowSaveHandoffExp:p}=this.props;if(!s&&!r&&!p)return e;const h=this.shouldDisplayAsSaved({isOneTapExploreLocalTab:r,pinnedToBoard:d,savedInfo:u}),m="#000",_="rgba(255, 255, 255, 0.8)",g="light",v="dark";return(0,x.jsxs)(n.Fragment,{children:[e,(0,x.jsx)(f.xu,{bottom:!0,left:o,padding:2,position:"absolute",right:!o,zIndex:this.legoFixedZIndex,children:p?(0,x.jsx)(w,{buttonText:d?a.bt("Saved", "Saved", "OneTapSave.QuickSaveButton.Saved", undefined, true):"",clientTrackingParams:t,color:d?"default":"primary",deeplinkUri:"deeplinkUri",experience:i,inline:!0,pinnedToBoardId:c,minWidth:54,pinId:l,shape:"pill",shouldShowSavedButton:!!d,showSaveHandoffExperience:p}):(0,x.jsx)(f.iP,{onTap:this.handlePinAction,rounding:"circle",children:(0,x.jsx)(f.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:h?m:_}},padding:2,rounding:"circle",children:(0,x.jsx)(f.xu,{dangerouslySetInlineStyle:{__style:{opacity:100}},children:(0,x.jsx)(f.JO,{accessibilityLabel:h?a.bt("saved", "saved", "checkmark icon to show pin has been saved", undefined, true):a.bt("save", "save", "button for saving quickly with one click", undefined, true),icon:h?"check":"add",color:h?g:v,size:"24"})})})})})]})}}const O=(0,a.connect)(((e,{pinId:t})=>({savedInfo:e.pins[t]&&e.pins[t].savedInfo,pinnedToBoard:e.pins[t]&&e.pins[t].pinned_to_board,homepageExperience:e.experiences[40001]})))((function(e){var t;const{showToast:i}=(0,j.F9)(),r=(0,d.ZP)(),o=(0,c.Z)(),l=(0,u.Z)(),p=(0,a.useDispatch)(),h=(0,b.useHistory)(),{isRTL:m,isAuthenticated:_}=(0,A.B)(),g=(0,a.useSelector)((({session:e})=>e.unauthSavePinId)),v=null===(t=(0,y.Tt)())||void 0===t?void 0:t.pin_count,f=_&&!!g&&g===e.pinId,{pins:P,clear:w}=(0,S.Z)(),k=(0,n.useRef)(!1);return(0,n.useEffect)((()=>{_&&!k.current&&P.length>0&&(k.current=!0,P.forEach((({id:e})=>{p((0,s.Z)({history:h,i18n:r,logContextEvent:o,onSuccess:()=>{},originalPinId:e,pinId:e,trackingParams:{clientTrackingParams:"",pinnedToBoardId:""},showRepinConfirmation:()=>{},disableRepinAnimation:!0,pinCount:v})).catch((e=>{(0,I.My)(`error.unauth_profile_pin_merge.${e}`)}))})),w())})),(0,x.jsx)(D,{...e,i18n:r,requireAuthForLimitedLogin:l,history:h,logContextEvent:o,showToast:i,shouldShowSaveHandoffExp:f,isRTL:m,historyPush:e=>h.push(e)})}));O.displayName="OneTapSave";const R=O;var L=i(883561),N=i(349700);function M({boardUrl:e,boardName:t,isQuicksave:i,sectionName:n,sectionSlug:a}){const r=(0,d.ZP)(),o=(0,b.useHistory)(),s=new f.Ry(1),l=!!a&&`${e}${a}/`;return(0,x.jsx)(f.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,zIndex:s,dangerouslySetInlineStyle:{__style:{background:"rgb(0 0 0 / .4)"}},children:(0,x.jsx)(f.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,display:"flex",justifyContent:"center",alignItems:"start",padding:4,children:(0,x.jsx)(f.iP,{onTap:t=>{t.event.preventDefault(),o.push(i?"/me/":l||e)},children:(0,x.jsx)(f.xv,{color:"light",children:n?(0,N.nk)(r.bt("Saved to {{sectionName}}", "Saved to {{sectionName}}", "PinCard.SavedToSection.Overlay", undefined, true),{sectionName:(0,x.jsx)(f.xv,{color:"light",weight:"bold",inline:!0,children:(0,L.ZP)(n,22)},`pincard-${n}`)}):(0,N.nk)(r.bt("Saved to {{boardName}}", "Saved to {{boardName}}", "PinCard.SavedToBoard.Overlay", undefined, true),{boardName:(0,x.jsx)(f.xv,{color:"light",weight:"bold",inline:!0,children:i?r.bt("Profile", "Profile", "PinCard.SavedToProfile.Overlay", undefined, true):(0,L.ZP)(t,22)},`pincard-${t}`)})})})})})}var z=i(167525),F=i(964082),U=i(36971),Z=i(463045);function B({isSquarePin:e,color:t,description:i,imageUrl:n,imageHeight:a,imageWidth:r,onError:o,onLoad:s}){const l=(0,x.jsx)(f.Ee,{alt:i||"",color:t,naturalHeight:null!=a?a:1,naturalWidth:null!=r?r:1,onError:o,onLoad:s,src:null!=n?n:"",fit:e?"cover":void 0});return e?(0,x.jsx)(f.xu,{dangerouslySetInlineStyle:{__style:{paddingTop:"calc(100%)"}},children:(0,x.jsx)(f.xu,{top:!0,right:!0,bottom:!0,left:!0,position:"absolute",dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},children:l})}):l}var V=i(350445),H=i(46584),W=i(926749),K=i(623568),G=i(965900),$=i(50286);function q({inAdsVideoExperiment:e,unauthRelatedPinsAutoplayExpGroup:t,isAutoplay:i,cropHeight:a,currentTime:r,onLoad:o,onError:s,onTimeChange:l,pin:c,playing:u,rootMargin:p,viewType:h,viewParameter:m,onVisibilityChanged:_,trackFullVisible:g,videoDuration:v,imageHeightModifier:y,image:b,isSquarePin:P}){var w,S,k,T;const I=(0,d.ZP)(),[A,C]=(0,n.useState)(!1),[j,E]=(0,n.useState)(!0),D=(0,K.jL)(c),O=D&&!c.is_eligible_for_web_closeup,R=3372===m||42===h,L=D&&c.is_eligible_for_web_closeup&&!R,{setCurrentVideo:N,pauseAutoplay:M}=(0,G.I)(),F=O||!D,U=(0,H.Z)({onVisibilityChanged:_,inAdsDesktopVideoExperiment:e,trackFullVisible:g,rootMargin:p});let Z=!u;(e||null!=t&&t.startsWith("enabled"))&&(Z=j,i&&u&&j&&E(!1));const{url:q}=(null===(w=c.images)||void 0===w?void 0:w["236x"])||{},{id:J}=c,Y=(0,$.HG)()&&c.videos?null===(S=c.videos.video_list)||void 0===S?void 0:S.V_HLSV4:null===(k=c.videos)||void 0===k||null===(T=k.video_list)||void 0===T?void 0:T.V_720P,X=(0,$.HG)()&&c.videos?"video/m3u8":"video/mp4",Q=(0,n.useCallback)((({event:e})=>{e.preventDefault(),e.stopPropagation(),N({pinId:J,isPromoted:Boolean(D),currentTime:0}),C(!1)}),[D,J,N]),ee=(0,n.useCallback)((()=>{D&&C(L),M({pinId:J,isPromoted:Boolean(D),currentTime:0})}),[L,D,J,M]);if(!c.videos||!Y)return null;const{height:te,thumbnail:ie,width:ne,url:ae}=Y||{},re=c.videos.id,oe=[{type:X,src:ae}];let se,le=(null!=ne?ne:1)/(null!=te?te:1);return e&&P&&(le=1,se="transparent",y&&(le-=y-1)),A&&D?(0,x.jsx)(f.xu,{"data-test-id":"pin-video-mobile-end-card",ref:U,children:(0,x.jsx)(V.Z,{backgroundImage:null!=q?q:"",naturalHeight:null!=te?te:1,naturalWidth:null!=ne?ne:1,pin:c,onRestartVideo:Q})}):Z?(0,x.jsxs)(f.xu,{"data-test-id":"pin-video-mobile-image",ref:U,children:[v&&(0,x.jsx)(z.Z,{text:v}),(0,x.jsx)(B,{imageHeight:null!==(de=null==b?void 0:b.height)&&void 0!==de?de:1,imageWidth:null!==(ce=null==b?void 0:b.width)&&void 0!==ce?ce:1,onError:s,onLoad:o,imageUrl:null!==(ue=null==b?void 0:b.url)&&void 0!==ue?ue:"",isSquarePin:P})]}):(0,x.jsx)(f.xu,{"data-test-id":"pin-video-mobile-video",ref:U,children:(0,x.jsx)(W.ZP,{isAutoPlay:!!i,cropHeight:a,rootMargin:p,inAdsDesktopVideoExperiment:e,contextLogData:{viewParameter:m,component:0,objectId:c.id,video_id:re,view:h},accessibilityMaximizeLabel:I.bt("Maximise", "Maximize", "pinLayouts.PinVideo.accessibilityMaxVideoBtn", undefined, true),accessibilityMinimizeLabel:I.bt("Minimise", "Minimize", "pinLayouts.PinVideo.accessibilityMinVideoBtn", undefined, true),accessibilityMuteLabel:I.bt("Mute", "Mute", "pinLayouts.PinVideo.accessibilityMuteVideoBtn", undefined, true),accessibilityPauseLabel:I.bt("Pause", "Pause", "pinLayouts.PinVideo.accessibilityPauseVideoBtn", undefined, true),accessibilityPlayLabel:I.bt("Play", "Play", "pinLayouts.PinVideo.accessibilityPlayVideoBtn", undefined, true),accessibilityProgressBarLabel:I.bt("Progress bar", "Progress bar", "pinLayouts.PinVideo.accessibilityProgressBarLabel", undefined, true),accessibilityUnmuteLabel:I.bt("Unmute", "Unmute", "pinLayouts.PinVideo.accessibilityUnmuteVideoBtn", undefined, true),aspectRatio:le,backgroundColor:se,captions:"",hlsConfig:{capLevelToPlayerSize:!0,startPosition:r||-1},loop:F,onTimeChange:l,playing:u,onPlay:()=>{},onPlayError:()=>{},poster:q||ie,src:null!=oe?oe:[],videoStartTime:r,volume:0,onEnded:ee})});var de,ce,ue}function J(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class Y extends n.Component{constructor(...e){super(...e),J(this,"calculateCurrentVideoTime",(()=>{const{currentTimeFromPinRep:e,pin:t,videosAutoplaying:i}=this.props,{id:n}=t,a=(0,U.Z)(n,i);return this.currentVideoCurrentTime||a||e})),J(this,"handleVisibilityChanged",(e=>{const{currentTimeFromPinRep:t,pin:i,setCurrentVideo:n,pauseAutoplay:a,videosAutoplaying:r}=this.props,{id:o}=i,s=(0,K.jL)(i),l=(0,Z.Z)(o,r),d=(0,F.Z)(o,r);e?s?n({pinId:o,isPromoted:s,currentTime:this.calculateCurrentVideoTime()}):d&&n({pinId:o,isPromoted:Boolean(s),currentTime:this.calculateCurrentVideoTime()}):!e&&l&&a({pinId:o,isPromoted:Boolean(s),currentTime:t||this.currentVideoCurrentTime})})),J(this,"handleVideoTimeChange",(e=>{const{pin:t,onTimeChange:i,videosAutoplaying:n}=this.props,{id:a}=t;(0,Z.Z)(a,n)&&(this.currentVideoCurrentTime=e.time),i&&i(e)}))}componentDidUpdate(e){const{appInFocus:t}=e,{appInFocus:i,currentTimeFromPinRep:n,pauseAutoplay:a,pin:r,setCurrentVideo:o,videosAutoplaying:s}=this.props,{id:l}=r,d=(0,K.jL)(r),c=(0,Z.Z)(l,s);i!==t&&!i&&c?(this.pausedDueToBrowserOutOfFocus=!0,a({pinId:l,isPromoted:Boolean(d),currentTime:n||this.currentVideoCurrentTime})):this.pausedDueToBrowserOutOfFocus&&i&&(this.pausedDueToBrowserOutOfFocus=!1,o({pinId:l,isPromoted:Boolean(d),currentTime:this.calculateCurrentVideoTime()}))}componentWillUnmount(){const{currentTimeFromPinRep:e,pauseAutoplay:t,pin:i,videosAutoplaying:n}=this.props,{id:a}=i,r=(0,K.jL)(i);(0,Z.Z)(a,n)&&t({pinId:a,isPromoted:Boolean(r),currentTime:e||this.currentVideoCurrentTime})}render(){const{cropHeight:e,isAutoplay:t,pin:i,videosAutoplaying:n,videoDuration:a,viewParameter:r,viewType:o,onError:s,onLoad:l,inAdsVideoExperiment:d,unauthRelatedPinsAutoplayExpGroup:c,isSquarePin:u,rootMargin:p,imageHeightModifier:h,image:m,isHovering:_}=this.props,{id:g}=i,v=(0,U.Z)(g,n),y="enabled_hover"===c,f=(0,Z.Z)(g,n),b=_&&y||f&&t;return(0,x.jsx)(q,{cropHeight:e,rootMargin:p,currentTime:v,inAdsVideoExperiment:d,unauthRelatedPinsAutoplayExpGroup:c,isAutoplay:t,isSquarePin:u,image:m,viewParameter:r,viewType:o,onTimeChange:this.handleVideoTimeChange,onVisibilityChanged:this.handleVisibilityChanged,pin:i,playing:b,trackFullVisible:!1,onError:s,onLoad:l,imageHeightModifier:h,videoDuration:a})}}function X(e){const{appUI:{appInFocus:t,isAutoplay:i,videosAutoplaying:n},pauseAutoplay:a,setCurrentVideo:r}=(0,G.I)();return(0,x.jsx)(Y,{...e,appInFocus:t,isAutoplay:i,pauseAutoplay:a,setCurrentVideo:r,videosAutoplaying:n})}var Q=i(690035),ee=i(310227),te=i(773285),ie=i(130460),ne=i(780679),ae=i(627995);const re=({domainLinkData:e})=>{const t=(0,d.ZP)(),i=(0,ne.g)();return(0,x.jsxs)(f.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(51, 51, 51, 0.8)"}},children:[(0,x.jsx)(f.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,display:"flex",justifyContent:"center",alignItems:"center",paddingX:2,children:(0,x.jsx)(f.X6,{size:"400",align:"center",color:"light",children:t.bt("Open", "Open", "Text on hover of a pin leading to opening this pin in the same tab. This is for users who don't have an account on Pinterest.", undefined, true)})}),!!e&&(0,x.jsx)(f.xu,{position:"absolute",bottom:!0,left:!0,width:"100%",minWidth:"100%",children:(0,x.jsx)(ae.Z,{clickLoggingOptions:e.clickLoggingOptions,domain:e.domain,link:e.link,onClick:e.onClick||(null==i?void 0:i.pinLinkClickHandler)||(()=>{})})})]})};var oe=i(53987);const se=({width:e,height:t,minY:i,maxY:n})=>{const a=t=>e<=0||!t?"0%":Math.round(t/e*100)+"%";return{top:i<=0?"0%":a(-1*i*t),bottom:n>=1?"0%":a(-1*(1-n)*t)}},le=({children:e,margin:t,disableRounding:i})=>(0,x.jsx)(f.xu,{dangerouslySetInlineStyle:{__style:t?{marginTop:t.top,marginBottom:t.bottom}:{}},position:"relative","data-test-id":"pin-visual-wrapper",children:(0,x.jsx)(f.zd,{wash:!0,rounding:i?0:ee.mv,children:e})}),de=({clientTrackingParams:e,color:t,description:i,domainLinkData:o,hideBottomCardText:s,image:l,imageAltText:c,imageCrop:u,isPromoted:p,isMessenger:h,isOneTapExploreLocalTab:m,isSquarePin:_,lazyLoadImage:g,onError:v,oneTapSave:y,onLoad:P,openCustomContextMenu:w,pinId:S,priorityFetchImage:k,disableDefaultContextMenu:T,pinnedToBoardId:A,pinVideo:C,videoUrl:j,productPrice:E,disableRounding:D,storyData:O,title:L,type:N,videoDuration:F,viewType:U,viewParameter:Z,unauthRelatedPinsAutoplayExpGroup:B})=>{var V,H,W,K,G,q,J,Y,ee,ne,ae;const de=(0,d.ZP)(),ce=(0,Q.Z)(),{checkExperiment:ue}=(0,te.F)(),[pe,he]=(0,n.useState)(!1),me=(0,a.useSelector)((({session:e})=>e.isAuthenticated)),_e=(0,$.ZP)(),ge=(0,a.useSelector)((({pins:e})=>e[S])),ve=(0,ie.gC)()(A||ge&&String(null===(V=ge.board)||void 0===V?void 0:V.id)),ye=A&&ge.savedThisSession,fe=o&&o.link?"with-link":"without-link",be=!me&&"desktop"!==_e,xe=(0,n.useRef)(Date.now()),Pe=(0,n.useRef)(null),we=ue("mweb_video_ads_autoplay").anyEnabled,Se="video"===N&&(B&&"enabled_hover"===B),ke=(0,x.jsx)(f.Ee,{alt:c||L||i||"",color:t,naturalHeight:null!==(H=l.height)&&void 0!==H?H:1,naturalWidth:null!==(W=l.width)&&void 0!==W?W:1,onError:v,onLoad:P,src:null!==(K=l.url)&&void 0!==K?K:"",fit:_?"cover":void 0,loading:g?"lazy":"auto",fetchPriority:k?"high":"auto"}),Te=_?(0,x.jsx)(f.xu,{dangerouslySetInlineStyle:{__style:{paddingTop:"calc(100%)"}},children:(0,x.jsx)(f.xu,{top:!0,right:!0,bottom:!0,left:!0,position:"absolute",dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},children:ke})}):ke,Ie=(0,b.useLocation)(),Ae=()=>(0,oe.C$)(Ie)?"homefeed":(0,oe.L6)(Ie)?"related_pins":(0,oe.En)(Ie)?"search":"unknown";return(0,x.jsx)("div",{className:"PinCard__imageWrapper",style:{position:"relative"},children:(0,x.jsxs)(f.xu,{onContextMenu:e=>{if("desktop"!==_e){const t=Ae();(0,I.My)((me?"auth":"unauth")+".mweb_pin_feed.pin_image.long_press",{page:t}),me&&"unknown"!==t&&(ue("mweb_custom_context_menu_on_longpress").anyEnabled||ue("mweb_pin_card_custom_context_menu_on_longpress").anyEnabled)?(e.preventDefault(),e.stopPropagation(),w()):"related_pins"!==t||me||(e.preventDefault(),e.stopPropagation())}},onTouchStart:e=>{if("desktop"!==_e){const t=Ae();if((0,I.My)("unauth.mweb.related_pin.image.touch.start"),"related_pins"===t&&!me&&(null==T||T(),xe.current=Date.now(),e.changedTouches&&e.changedTouches.length>0)){const t=e.changedTouches.item(0);t&&(Pe.current={x:t.pageX,y:t.pageY})}}},onTouchEnd:e=>{if("desktop"!==_e){const t=Ae();if((0,I.My)("unauth.mweb.related_pin.image.touch.end"),Date.now()-xe.current>500&&!me&&"related_pins"===t){const t=Pe.current;if(e.changedTouches&&e.changedTouches.length>0&&t){const i=e.changedTouches.item(0);if(i&&Math.pow(i.pageX-t.x,2)+Math.pow(i.pageY-t.y,2)>100)return;null==T||T(),ce({pinId:S,location:"related-pins-long-press"}),e.stopPropagation()}}}},"data-test-id":`pincard-${N}-${fe}`,dangerouslySetInlineStyle:{__style:{willChange:"transform",textDecoration:"none"}},overflow:"hidden",onMouseOver:be?void 0:()=>he(!0),onMouseLeave:be?void 0:()=>he(!1),position:"relative",rounding:D?0:4,children:[(0,x.jsxs)(R,{clientTrackingParams:e||"",oneTapSave:y,isOneTapExploreLocalTab:m,pinId:S,pinnedToBoardId:A,viewType:U,children:[(()=>{if("gif"===N&&!s&&!ye)return(0,x.jsx)(z.Z,{text:de.bt("GIF", "GIF", "pin.pinCard.gifIconIdentifier", undefined, true)});if("video"===N&&F&&!s&&!ye)return(0,x.jsx)(z.Z,{text:F});if("storyPin"===N&&O&&!ye){const{page_count:e=0,total_video_duration:t=0}=ge.story_pin_data||{};if(t>0)return(0,x.jsx)(z.Z,{text:(0,r.Z)(t)});if("number"==typeof e&&e>0)return(0,x.jsx)(z.Z,{icon:"idea-pin",text:e.toString()})}return"product"===N&&E?(0,x.jsx)(z.Z,{text:E}):null})(),(0,x.jsx)(le,{disableRounding:D,margin:u?se({width:null!==(G=l.width)&&void 0!==G?G:1,height:null!==(q=l.height)&&void 0!==q?q:1,minY:u.min_y,maxY:u.max_y}):void 0,children:"video"===N&&h&&C?(0,x.jsx)(f.nk,{autoplay:!0,accessibilityMaximizeLabel:"",accessibilityMinimizeLabel:"",accessibilityMuteLabel:"",accessibilityPauseLabel:"",accessibilityPlayLabel:"",accessibilityProgressBarLabel:de.bt("Progress bar", "Progress bar", "PinCardVisual.accessibilityProgressBarLabel", undefined, true),accessibilityUnmuteLabel:"",aspectRatio:C.width/C.height,captions:"",loop:!0,onPlay:()=>{},onPlayError:()=>{},playsInline:!0,poster:null!==(J=l.url)&&void 0!==J?J:"",src:C.url,volume:0}):C&&p&&we||null!=B&&B.startsWith("enabled")&&j?(0,x.jsx)(X,{image:l,inAdsVideoExperiment:we,unauthRelatedPinsAutoplayExpGroup:B,isHovering:pe,isSquarePin:_,onError:v,onLoad:P,pin:ge,videoDuration:F,viewParameter:Z,viewType:U}):Te})]}),!Se&&pe&&!me&&(0,x.jsx)(re,{domainLinkData:o}),me&&ye&&(0,x.jsx)(M,{boardName:null!==(Y=null==ve?void 0:ve.name)&&void 0!==Y?Y:"",boardUrl:null!==(ee=null==ve?void 0:ve.url)&&void 0!==ee?ee:"",sectionName:null==y||null===(ne=y.section)||void 0===ne?void 0:ne.title,sectionSlug:null==y||null===(ae=y.section)||void 0===ae?void 0:ae.slug,isQuicksave:"quick_saves"===(null==ve?void 0:ve.layout)})]})})}},167525:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(898781),a=i(643010),r=i(883119),o=i(785893);function s({text:e,icon:t,largeIdentifier:i,largeMargin:s}){const l=(0,n.ZP)();return(0,o.jsxs)(r.xu,{zIndex:new r.Ry(1),alignItems:"center",dangerouslySetInlineStyle:{__style:{backgroundColor:(0,a.Yc)()?"rgba(0, 0, 0, 0.7)":"rgba(255, 255, 255, 0.8)"}},display:"flex",margin:s?4:2,overflow:"hidden",position:"absolute",rounding:"pill",padding:2,paddingX:i?4:void 0,height:i?36:24,top:!0,children:[t&&(0,o.jsx)(r.xu,{marginEnd:i?2:1,children:(0,o.jsx)(r.JO,{accessibilityLabel:l.bt("identifier that shows the Pin type", "identifier that shows the pin type", "pin.pincard.iconAccessibilityLabel", undefined, true),color:"default",icon:t,inline:!0,size:i?18:12})}),(0,o.jsx)(r.xv,{inline:!0,size:i?"200":"100",weight:"bold",children:e})]})}},255607:(e,t,i)=>{function n(e){const t=Object.keys(e);if(t.length>0){return t.sort(((t,i)=>e[i]-e[t])).slice(0,3)}return null}function a(e){const t=Object.values(e);if(t.length>0){return t.reduce(((e,t)=>e+t),0)}return 0}function r({boardIsCollaborative:e,isDownstreamPromotion:t,isPromoted:i,storyPinDataId:n,videosId:a}){return!(i||t||!a&&!n||null!=e&&e)}i.d(t,{At:()=>n,J6:()=>r,Ud:()=>a})},130460:(e,t,i)=>{i.d(t,{bn:()=>s,fJ:()=>d,gC:()=>l});var n=i(702664),a=i(425288),r=i(785893);const{Provider:o,useHook:s}=(0,a.Z)("Boards");function l(){const e=s();return t=>e[t]}function d({children:e}){const t=(0,n.useSelector)((({boards:e})=>e),n.shallowEqual);return(0,r.jsx)(o,{value:t,children:e})}},350118:(e,t,i)=>{i.d(t,{AF:()=>s,H0:()=>l,S6:()=>d,_S:()=>c});var n=i(702664),a=i(425288),r=i(785893);const{Provider:o,useHook:s,useMaybeHook:l}=(0,a.Z)("Pins");function d(){const e=s();return t=>e[t]}function c({children:e}){const t=(0,n.useSelector)((({pins:e})=>e),n.shallowEqual);return(0,r.jsx)(o,{value:t,children:e})}},698330:(e,t,i)=>{i.d(t,{Tt:()=>u,cm:()=>c,kW:()=>l,kY:()=>p,mN:()=>d});var n=i(702664),a=i(19121),r=i(425288),o=i(785893);const{Provider:s,useHook:l}=(0,r.Z)("Users");function d(){const e=l();return t=>e[t]}function c(){const e=l();return t=>{const i=Object.keys(e).find((i=>e[i].username===t));return e[null!=i?i:""]}}function u(){const{id:e}=(0,a.Z)();return l()[null!=e?e:""]}function p({children:e}){const t=(0,n.useSelector)((({users:e})=>e),n.shallowEqual);return(0,o.jsx)(s,{value:t,children:e})}},349741:(e,t,i)=>{i.d(t,{Z:()=>x});var n=i(667294),a=i(327212),r=i(830157),o=i(499128),s=i(898781),l=i(349700),d=i(883119),c=i(785893);function u({hideToast:e,newPin:t,originalPinId:i}){var n,a;const r=(0,s.ZP)();return(0,c.jsx)(o.ZP,{primaryAction:{accessibilityLabel:r.bt("Change saved Pin button", "Change saved Pin button", "RepinRequest.a11yChangeButton", undefined, true),href:`/pin/${t.id}/repin/?isEditingPin=true&pinBoardId=${null!==(n=null===(a=t.board)||void 0===a?void 0:a.id)&&void 0!==n?n:""}&&isFromToast=true&&originalPinId=${null!=i?i:""}`,label:r.bt("Change", "Change", "RepinRequest.ChangeButton", undefined, true),size:"lg",onClick:e},duration:5e3,onHide:e,text:(0,c.jsx)(d.xv,{children:(0,l.nk)(r.bt("Saved to {{ profile }}", "Saved to {{ profile }}", "RepinRequest.ProfileSaveToastText", undefined, true),{profile:(0,c.jsx)(d.xv,{inline:!0,weight:"bold",children:r.bt("Profile", "Profile", "RepinRequest.ProfileSaveToastText.Profile", undefined, true)})})}),iconThumbnail:(0,c.jsx)(d.xu,{color:"secondary",display:"flex",justifyContent:"center",alignItems:"center",height:48,width:48,children:(0,c.jsx)(d.JO,{accessibilityLabel:r.bt("Profile", "Profile", "RepinRequest.ProfileIcon", undefined, true),icon:"history",size:22})})})}var p=i(6637),h=i(483025),m=i(414327),_=i(332611),g=i(675752),v=i(56632),y=i(12918),f=i(782677);const b=({board:e,section:t})=>{const i=(0,s.ZP)();return t?(0,l.nk)(i.bt("Saved to {{sectionName}} in {{boardName}}", "Saved to {{sectionName}} in {{boardName}}", "Toast for successfully saving to a section within a board", undefined, true),{sectionName:t&&t.title,boardName:e.name}).join(""):(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)(d.xv,{color:"default",children:i.bt("Saved to", "Saved to", "Saved to {{ boardName }}", undefined, true)}),(0,c.jsx)(d.xv,{color:"default",weight:"bold",children:e.name})]})};class x{constructor({boardId:e,dispatch:t,history:i,isOneTapSave:n=!1,isQuickSave:a=!1,onSuccess:o,onUndo:s,originalPinId:l,pin:d,resourceName:c,saveToProfileToastExpGroup:u="",section:p,showRepinToasts:m,trackingParams:_,userId:g,viewType:v=3,historyPush:y=(()=>{})}){var b,x,P,w,S;S=e=>(0,f.Fv)(e.resource_response.data,h.Z[this.resourceName]),(w="_getNormalizedResponse")in(P=this)?Object.defineProperty(P,w,{value:S,enumerable:!0,configurable:!0,writable:!0}):P[w]=S,this.boardId=e,this.trackingParams=_,this.clientTrackingParams=(0,r.Z)(_.clientTrackingParams||"",d.tracking_params),this.dispatch=t,this.history=i,this.onSuccess=o,this.onUndo=s,this.originalPinId=l,this.pin=d,this.pinnedToBoardId=_.pinnedToBoardId||(null!==(b=null===(x=d.pinned_to_board)||void 0===x?void 0:x.id)&&void 0!==b?b:""),this.resourceName=c,this.saveToProfileToastExpGroup=u,this.showRepinToasts=m,this.section=p,this.isOneTapSave=n,this.isQuickSave=a,this.userId=g,this.viewType=v,this.historyPush=y}get resourceOptions(){const{link:e,title:t,promoted_is_removable:i,id:n}=this.pin,a=i?{is_removable:!0}:{};return{pin_id:n,board_id:this.boardId,section:this.section&&this.section.id,clientTrackingParams:this.clientTrackingParams,link:null!=e?e:"",title:null!=t?t:"",user_id:this.userId,is_removable:a}}get trackingData(){return{event_type:5,element:this.isOneTapSave?10599:void 0,view_type:this.viewType,component:this.isOneTapSave?0:7,view_parameter:this.isOneTapSave?3173:(0,g.A)(this.pin),object_id_str:this.pin.id,clientTrackingParams:this.clientTrackingParams,aux_data:{board_id:this.pinnedToBoardId,destination_board_id:this.boardId}}}_createRepin(){return p.Z.create(this.resourceName,{...this.resourceOptions,disable_event_log_info:!0}).callCreate()}processRepin(e){return this._createRepin().then((t=>{this.onSuccess&&this.onSuccess();const i=t.resource_response.data,{board:n}=i,{isQuickSave:r,originalPinId:o}=this,l=!this.saveToProfileToastExpGroup.includes("holdout"),p=({hideToast:e})=>{var t;if(r&&!l)return(0,c.jsx)(u,{hideToast:e,newPin:i,originalPinId:o});const{thumbnail:p}=(0,v.L)(n.id);return(0,c.jsx)(a.Z,{button:l?(0,c.jsx)(s.oz,{children:e=>(0,c.jsx)(d.zx,{fullWidth:!0,onClick:({event:t})=>{t.preventDefault(),t.stopPropagation();const a=this.onUndo;var r;a&&!l?a(this.pin.id,i.id,n.id,null===(r=this.section)||void 0===r?void 0:r.id,e):l&&this.historyPush(`/pin/${i.id}/repin/?isEditingPin=true&pinBoardId=${n.id}&&isFromToast=true&&originalPinId=${null!=o?o:""}`)},text:l?e.bt("Organise", "Organize", "RepinRequest.OrganizeButton", undefined, true):e.bt("Undo", "Undo", "RepinRequest.UndoButton", undefined, true)})}):void 0,href:this.section?`${n.url}${null!==(t=this.section.slug)&&void 0!==t?t:""}`:n.url,isRepinToExistingBoard:!0,onHide:e,text:(0,c.jsx)(b,{board:n,section:this.section}),thumbnail:p})},h=this._getNormalizedResponse(t);if(this.dispatch((0,m.XM)(this.resourceName,this.resourceOptions,t,h)),this.originalPinId&&this.originalPinId!==this.resourceOptions.pin_id){const e={...this.resourceOptions,pin_id:this.originalPinId};this.dispatch((0,m.XM)(this.resourceName,e,t,h))}this.dispatch((0,y.M)(i.id,n.id,this.section?this.section.id:void 0,this.userId));const g=this.showRepinToasts;return g&&g(p),this.dispatch((0,_.fO)({event_type:5})),e(this.trackingData),i}))}}},21384:(e,t,i)=>{i.d(t,{Z:()=>j});var n=i(667294),a=i(702664),r=i(373420),o=i(430322),s=i(121151),l=i(898781),d=i(643010),c=i(883119),u=i(50286),p=i(785893);function h({showFullScreenInfo:e,isOpen:t,interstitialUpsellDismissed:i,children:n}){const a=(0,l.ZP)(),r=(0,u.HG)(),h=(0,u.Wb)();return h||r?(0,p.jsx)(s.ZP,{accessibilityModalLabel:"",mobileHideCloseIcon:!0,mobileIsFullscreen:!0,isOpen:e&&!h,closeOnOutsideClick:!1,onDismiss:()=>{},children:(0,p.jsx)(c.xu,{color:(0,d.Yc)()?"dark":"default",dangerouslySetInlineStyle:{__style:{border:(0,d.Yc)()?void 0:"1px solid #efefef",transition:"transform 0.3s ease-out",WebkitOverflowScrolling:"touch"}},height:"100%",left:!0,maxHeight:"100%",overflow:"auto",position:"fixed",top:!0,width:r?"100vw":"100%",zIndex:new c.Ry(1),children:(0,p.jsx)(c.xu,{bottom:!0,left:!0,right:!0,top:!0,position:"fixed",padding:5,overflow:"scroll",marginTop:i?0:12,children:n})})}):(0,p.jsx)(o.default,{accessibilityModalLabel:a.bt("Close", "Close", "Close modal window", undefined, true),isOpen:t,onDismiss:()=>{},mobileAccessibilityCloseIconLabel:a.bt("Close", "Close", "Close modal window", undefined, true),children:n})}var m,_=i(784590),g=i(690035),v=i(52022),y=i(385801),f=i(623568),b=i(867820),x=i(350118),P=i(780280),w=i(992750),S=i(167912);const k=void 0!==m?m:m=i(276667);function T({iconColor:e,size:t,isMainPin:i,isAuth:o,pinCreditPrefix:s,onClickTitleOrDomain:d,richMetadataDescription:m,richMetadataTitle:_,richSummaryDisplayName:x,placeSummaryName:S,closeupUnifiedDescription:k,gridTitle:T,storyPinDataId:I,storyPinDataMetadataPinTitle:A,pinDescription:C,pinDomain:j,pinTitle:E,boardId:D,boardUrl:O,boardName:R,boardPrivacy:L,pinnerFullName:N,pinnerImageSmallUrl:M,pinnerImageLargeUrl:z,pinId:F,graphqlRef:U}){const Z=(0,l.ZP)(),B=(0,v.Z)(),{isBot:V}=(0,P.B)(),{unauthInterstitialDismissed:H}=(0,a.useSelector)((({session:e})=>e)),[W,K]=(0,n.useState)(!1),G=(0,u.HG)(),$=(0,u.Wb)(),q=(0,g.Z)(),J=(0,f._S)(j)?j:"",Y=!$&&!o,{description:X}=(0,w.eK)({richMetadataDescription:m,richSummaryDisplayName:x,placeSummaryName:S,closeupUnifiedDescription:k}),Q=(0,w.fs)({pinTitle:E,gridTitle:T,richSummaryDisplayName:x,richMetadataTitle:_,storyPinDataId:I,storyPinDataMetadataPinTitle:A,placeSummaryName:S})||C,ee=!G,te=(0,p.jsxs)(c.xu,{padding:5,dangerouslySetInlineStyle:Y?{__style:{paddingTop:0,paddingBottom:30}}:void 0,children:[(0,p.jsx)(c.xu,{left:!0,position:"absolute",top:!0,color:"default",padding:4,"data-test-id":"close-seo-vase-see-more-button",children:(0,p.jsx)(c.hU,{accessibilityLabel:Z.bt("Cancel", "Cancel", "close modal icon", undefined, true),icon:"cancel",size:"sm",onClick:()=>{(0,b.My)("mweb.unauth.see_more.dismissed"),B({action:"click",item:"close-seo-vase-see-more-button"}),K(!1),i&&(0,b.My)("mweb.unauth.see_more.main_pin.dismissed")},iconColor:"gray"})}),(0,p.jsx)(c.xu,{marginBottom:Y?0:8,children:(0,p.jsx)(c.xv,{align:Y?"start":"center",weight:Y?void 0:"bold",children:(0,p.jsx)("span",{className:"deprecatedTextSizeXL",children:Y?null:Z.bt("More information", "More information", "more information label", undefined, true)})})}),(0,p.jsx)(y.Z,{description:X,title:Q,pinCreditPrefix:s,onClickTitleOrDomain:d,pinDomain:J,boardId:D,boardUrl:O,boardName:R,boardPrivacy:L,pinnerFullName:N,pinnerImageSmallUrl:M,pinnerImageLargeUrl:z,pinId:F,graphqlRef:U})]});return(0,p.jsxs)(c.xu,{right:!0,"data-test-id":"SeoVaseSeeMoreButton",dangerouslySetInlineStyle:{__style:{float:"right"}},children:[(0,p.jsx)(c.hU,{accessibilityLabel:Z.bt("See more", "See more", "more information icon", undefined, true),icon:"ellipsis",iconColor:null!=e?e:"gray",size:t||"md",onClick:({event:e})=>{e.stopPropagation(),(0,b.My)("mweb.unauth.see_more.shown"),B({action:"click",item:"seo-vase-see-more-button"}),$||o?(K(!0),i&&(0,b.My)("mweb.unauth.see_more.main_pin.shown")):q({pinId:F||"",location:i?"main-pin-more-information":"non-main-pin-more-information",seoPlacementConfig:{description:X,titleText:Q,pinCreditPrefix:s,onClickTitleOrDomain:d,cleanPinDomain:J,boardId:D,boardUrl:O,boardName:R,boardPrivacy:L,pinnerFullName:N,pinnerImageSmallUrl:M,pinnerImageLargeUrl:z,pinId:F,graphqlRef:U}})}}),V&&ee?(0,p.jsx)(c.xu,{display:W?"flex":"none",children:te}):(0,p.jsx)(h,{showFullScreenInfo:W,isOpen:W&&!$,interstitialUpsellDismissed:!!H,children:te}),$&&W&&(0,p.jsx)(r.default,{accessibilityModalLabel:"test",onDismiss:()=>{},children:te})]})}function I(e){var t,i,n,a,r,o,s,l,d,c,u,h,m,_,g,v;const y=(0,S.useFragment)(k,e.graphqlRef);return(0,p.jsx)(T,{iconColor:e.iconColor,size:e.size,isAuth:e.isAuth,isMainPin:e.isMainPin,pinCreditPrefix:e.pinCreditPrefix,onClickTitleOrDomain:e.onClickTitleOrDomain,richMetadataDescription:null!==(t=null==y||null===(i=y.richMetadata)||void 0===i?void 0:i.description)&&void 0!==t?t:"",richMetadataTitle:null!==(n=null==y||null===(a=y.richMetadata)||void 0===a?void 0:a.title)&&void 0!==n?n:"",richSummaryDisplayName:null!==(r=null==y||null===(o=y.richSummary)||void 0===o?void 0:o.displayName)&&void 0!==r?r:"",closeupUnifiedDescription:null!==(s=null==y?void 0:y.closeupUnifiedDescription)&&void 0!==s?s:"",gridTitle:null==y?void 0:y.gridTitle,storyPinDataId:null==y?void 0:y.storyPinDataId,storyPinDataMetadataPinTitle:null==y||null===(l=y.storyPinData)||void 0===l||null===(d=l.metadata)||void 0===d?void 0:d.pinTitle,pinDescription:null==y?void 0:y.description,pinDomain:(null==y?void 0:y.domain)||void 0,pinTitle:null==y?void 0:y.title,boardId:null==y||null===(c=y.board)||void 0===c?void 0:c.entityId,boardUrl:(null==y||null===(u=y.board)||void 0===u?void 0:u.url)||void 0,boardName:(null==y||null===(h=y.board)||void 0===h?void 0:h.name)||void 0,boardPrivacy:(null==y||null===(m=y.board)||void 0===m?void 0:m.privacy)||void 0,pinnerFullName:(null==y||null===(_=y.pinner)||void 0===_?void 0:_.fullName)||void 0,pinnerImageSmallUrl:null==y||null===(g=y.pinner)||void 0===g?void 0:g.imageSmallUrl,pinnerImageLargeUrl:null==y||null===(v=y.pinner)||void 0===v?void 0:v.imageLargeUrl,pinId:null==y?void 0:y.entityId,graphqlRef:y})}function A(e){var t,i,n,a,r,o,s,l,d,c,u;const h=(0,x.S6)()(null!==(t=e.pinId)&&void 0!==t?t:""),m=null==h?void 0:h.board,_=null==h?void 0:h.pinner;return(0,p.jsx)(T,{iconColor:e.iconColor,size:e.size,isAuth:e.isAuth,isMainPin:e.isMainPin,pinCreditPrefix:e.pinCreditPrefix,onClickTitleOrDomain:e.onClickTitleOrDomain,richMetadataDescription:null!==(i=null==h||null===(n=h.rich_metadata)||void 0===n?void 0:n.description)&&void 0!==i?i:"",richMetadataTitle:null!==(a=null==h||null===(r=h.rich_metadata)||void 0===r?void 0:r.title)&&void 0!==a?a:"",richSummaryDisplayName:null!==(o=null==h||null===(s=h.rich_summary)||void 0===s?void 0:s.display_name)&&void 0!==o?o:"",placeSummaryName:null!==(l=null==h?void 0:h.place_summary)&&void 0!==l?l:"",closeupUnifiedDescription:null!==(d=null==h?void 0:h.closeup_unified_description)&&void 0!==d?d:"",gridTitle:null==h?void 0:h.grid_title,storyPinDataId:null==h?void 0:h.story_pin_data_id,storyPinDataMetadataPinTitle:null==h||null===(c=h.story_pin_data)||void 0===c||null===(u=c.metadata)||void 0===u?void 0:u.pin_title,pinDescription:null==h?void 0:h.description,pinDomain:null==h?void 0:h.domain,pinTitle:null==h?void 0:h.title,boardId:null==m?void 0:m.id,boardUrl:null==m?void 0:m.url,boardName:null==m?void 0:m.name,boardPrivacy:null==m?void 0:m.privacy,pinnerFullName:null==_?void 0:_.full_name,pinnerImageSmallUrl:null==_?void 0:_.image_small_url,pinnerImageLargeUrl:null==_?void 0:_.image_large_url,pinId:null==h?void 0:h.id})}function C(e){var t,i,n,a,r,o,s,l,d,c,u;const h=(0,x.S6)()(null!==(t=e.pinId)&&void 0!==t?t:""),m=null==h?void 0:h.board,g=null==h?void 0:h.pinner;return(0,_.Z)({name:"PinResource",options:{id:e.pinId,field_set_key:"unauth_ssr_lazy_load"}}),(0,p.jsx)(T,{iconColor:e.iconColor,size:e.size,isAuth:e.isAuth,isMainPin:e.isMainPin,pinCreditPrefix:e.pinCreditPrefix,onClickTitleOrDomain:e.onClickTitleOrDomain,richMetadataDescription:null!==(i=null==h||null===(n=h.rich_metadata)||void 0===n?void 0:n.description)&&void 0!==i?i:"",richMetadataTitle:null!==(a=null==h||null===(r=h.rich_metadata)||void 0===r?void 0:r.title)&&void 0!==a?a:"",richSummaryDisplayName:null!==(o=null==h||null===(s=h.rich_summary)||void 0===s?void 0:s.display_name)&&void 0!==o?o:"",placeSummaryName:null!==(l=null==h?void 0:h.place_summary)&&void 0!==l?l:"",closeupUnifiedDescription:null!==(d=null==h?void 0:h.closeup_unified_description)&&void 0!==d?d:"",gridTitle:null==h?void 0:h.grid_title,storyPinDataId:null==h?void 0:h.story_pin_data_id,storyPinDataMetadataPinTitle:null==h||null===(c=h.story_pin_data)||void 0===c||null===(u=c.metadata)||void 0===u?void 0:u.pin_title,pinDescription:null==h?void 0:h.description,pinDomain:null==h?void 0:h.domain,pinTitle:null==h?void 0:h.title,boardId:null==m?void 0:m.id,boardUrl:null==m?void 0:m.url,boardName:null==m?void 0:m.name,boardPrivacy:null==m?void 0:m.privacy,pinnerFullName:null==g?void 0:g.full_name,pinnerImageSmallUrl:null==g?void 0:g.image_small_url,pinnerImageLargeUrl:null==g?void 0:g.image_large_url,pinId:null==h?void 0:h.id})}function j(e){return e.graphqlRef?(0,p.jsx)(I,{...e}):e.lazyLoadAnnotations?(0,p.jsx)(C,{...e}):(0,p.jsx)(A,{...e})}},108234:(e,t,i)=>{i.d(t,{Z:()=>g,s:()=>_});var n=i(667294),a=i(121151),r=i(608575),o=i(898781),s=i(349700),l=i(883119),d=i(785893);const c=()=>{var e;const t=(0,o.ZP)(),{dismissWarning:i}=null!==(e=_())&&void 0!==e?e:{};return(0,d.jsx)(l.xu,{paddingX:3,children:(0,d.jsx)(l.zx,{fullWidth:!0,color:"red",onClick:i,text:t.bt("OK", "Okay", "Dismiss a modal stating that clicking through to a link has been blocked", undefined, true)})})},u=()=>{const e=(0,o.ZP)();return(0,d.jsx)(l.xv,{inline:!0,weight:"bold",children:(0,d.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 i;const n=(0,o.ZP)(),{dismissWarning:p}=null!==(i=_())&&void 0!==i?i:{};return(0,d.jsx)(a.ZP,{accessibilityModalLabel:n.bt("We have blocked this link", "We have blocked this link", "Modal label when clicking a spammy link", undefined, true),onDismiss:p,heading:n.bt("Heads up!", "Heads up!", "Modal heading when clicking through to a link has been blocked", undefined, true),footer:(0,d.jsx)(c,{}),children:(0,d.jsxs)(l.xu,{padding:6,children:[(0,d.jsx)(l.xv,{children:(0,s.nk)("{{ message }} {{ learnMore }}",{message:e,learnMore:(0,d.jsx)(u,{},"learnMoreLink")})}),(0,d.jsxs)(l.xu,{alignItems:"center",display:"flex",marginTop:4,children:[(0,d.jsx)(l.xu,{marginEnd:3,children:(0,d.jsx)(l.JO,{accessibilityLabel:n.bt("Blocked link address", "Blocked link address", "Icon label preceding a block url", undefined, true),color:"error",icon:"report",inline:!0,size:24})}),(0,d.jsx)(l.xv,{inline:!0,lineClamp:1,weight:"bold",children:r.parse(t).hostname})]})]})})};var h=i(425288);const{Provider:m,useMaybeHook:_}=(0,h.Z)("SpammyClickthrough");function g({children:e}){const[t,i]=(0,n.useState)(null),a=(0,n.useCallback)((()=>{i(null)}),[i]),r=(0,n.useCallback)((e=>{i(e)}),[i]),o=(0,n.useMemo)((()=>({dismissWarning:a,showWarning:r})),[a,r]);return(0,d.jsxs)(m,{value:o,children:[t&&(0,d.jsx)(p,{...t}),e]})}},914142:(e,t,i)=>{i.d(t,{Z:()=>d,j:()=>l});var n=i(898781),a=i(883119),r=i(773285),o=i(349700),s=i(785893);const l=[0,2,3];function d({hasAffiliatedProducts:e,isPromoted:t,sponsorName:i,sponsorshipStatus:d,textColor:c}){const u=(0,n.ZP)(),p=(0,r.F)().checkExperiment("mweb_web_android_ios_clbc_eu_ad_string").anyEnabled;let h;t?h=(0,o.nk)(u.bt("Promoted by {{ name }}", "Promoted by {{ name }}", "sponsorship.sponsorshipText.promotedByBrand", undefined, true),{name:i}):d||0===d?i&&!l.includes(d)?h=(0,o.nk)(u.bt("Paid partnership with {{ name }}", "Paid partnership with {{ name }}", "closeup.creator.sponsoredPinTitle", undefined, true),{name:i}):2!==d&&(h=u.bt("Paid partnership", "Paid partnership", "closeup.creator.sponsoredPinTitle", undefined, true)):e&&(h=u.bt("Includes sponsored products", "Includes sponsored products", "sponsorship.sponsorshipText.affiliatedProducts", undefined, true));const m=p&&!t?"Ad • ":"";return(0,s.jsxs)(a.xv,{color:c,size:"100",children:[m,h]})}},394332:(e,t,i)=>{i.d(t,{Z:()=>x});var n,a=i(667294),r=i(391254),o=i(941646),s=i(862193),l=i(898781),d=i(52022),c=i(992750),u=i(350118),p=i(883119),h=i(167912),m=i(785893);const _=void 0!==n?n:n=i(85934);function g({direction:e,handleClick:t,testId:i}){const n=(0,l.ZP)(),a=(0,d.Z)();return(0,m.jsx)("div",{style:{alignItems:"center",background:`linear-gradient(to ${"left"===e?"right":"left"}, rgba(255,255,255,1) 25%,rgba(255,255,255,0) 100%)`,border:"none",cursor:"pointer",display:"flex",height:30,lineHeight:25,outline:"none",paddingBottom:4,paddingTop:4,position:"absolute",top:0,width:45,..."right"===e?{right:0,justifyContent:"flex-end",textAlign:"right"}:{left:0}},onClick:e=>{a({action:"click",item:"board-pills-arrow"}),t(e)},role:"button","aria-label":"arrow",tabIndex:-1,"aria-hidden":"true","data-test-id":i,children:(0,m.jsx)(o.Z,{id:"board-pills-arrow",children:(0,m.jsx)(p.JO,{accessibilityLabel:n.bt("Scroll", "Scroll", "annotations.scrollArrow", undefined, true),icon:"right"===e?"arrow-forward":"arrow-back",size:8,color:"subtle"})})})}function v({name:e,url:t}){const[i,n]=(0,a.useState)(!1),r=(0,d.Z)();return(0,m.jsx)(p.xu,{"data-test-id":"vase-tag",display:"inlineBlock",marginTop:1,marginEnd:1,paddingX:2,paddingY:1,height:26,color:"secondary",rounding:8,dangerouslySetInlineStyle:{__style:{whiteSpace:"nowrap"}},onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:(0,m.jsx)(p.xv,{color:i?"subtle":"default",inline:!0,overflow:"breakWord",size:"100",weight:"bold",children:t?(0,m.jsx)(p.rU,{display:"inlineBlock",tapStyle:"compress",href:t,rounding:8,onClick:()=>{r({action:"click",item:"vase-tag"})},underline:"hover",children:e}):e})})}function y({pinJoinVisualAnnotation:e,pinJoinAnnotationsWithLinks:t,mode:i}){const[n,s]=(0,a.useState)(!1),[l,u]=(0,a.useState)(!1),h=(0,d.Z)(),_=(0,a.useRef)(null);(0,a.useEffect)((()=>{const e=_.current,t=()=>{if("inlineWithScrollArrows"===i&&_.current){const e=_.current,t=Math.max(0,e.scrollLeft),i=t+e.clientWidth;s(0!==t),u(i<e.scrollWidth)}else s(!1),u(!1)};return t(),null==e||e.addEventListener("scroll",t),()=>{null==e||e.removeEventListener("scroll",t)}}),[i]);const y=e=>t=>{t.preventDefault(),t.stopPropagation(),"right"===e&&h({action:"click",item:"board-pills-arrow-button-right"});const i=_.current;if(!i)return;const n=("left"===e?-1:1)*i.clientWidth*.5;i.scrollLeft=Math.min(Math.max(i.scrollLeft+n,0),i.scrollWidth)},{annotationsWithLinks:f}=(0,c.eK)({pinJoinVisualAnnotation:e,pinJoinAnnotationsWithLinks:t});return(0,m.jsx)(p.kC,{alignItems:"center",justifyContent:"end",children:(0,m.jsxs)(p.xu,{display:"flex",overflow:"auto",width:"100%",position:"relative","data-test-id":"vase-carousel",children:[(0,m.jsx)(r.Z,{unsafeCSS:"\n::-webkit-scrollbar {\n  display: none;\n}\n"}),n&&(0,m.jsx)(g,{direction:"left",handleClick:y("left"),testId:"left-scroll-arrow"}),(0,m.jsx)(p.xu,{overflow:"auto",padding:0,dangerouslySetInlineStyle:{__style:{scrollBehavior:"smooth",scrollbarWidth:"none",whiteSpace:"nowrap"}},ref:_,children:f.map((({name:e,url:t})=>(0,m.jsx)(v,{name:e,url:t},t||e)))}),l&&(0,m.jsx)(o.Z,{id:"board-pills-arrow-button-right",children:(0,m.jsx)(g,{direction:"right",handleClick:y("right"),testId:"right-scroll-arrow"})})]})})}function f(e){var t;const i=(0,h.useFragment)(_,e.graphqlRef),n=(0,s.Z)(i),a=(null==i||null===(t=i.pinJoin)||void 0===t?void 0:t.visualAnnotation)||[];return a.length<1?null:(0,m.jsx)(y,{mode:e.mode,pinJoinVisualAnnotation:a,pinJoinAnnotationsWithLinks:n||void 0})}function b(e){var t,i,n;const a=(0,u.S6)()(e.pinId||"");return((null==a||null===(t=a.pin_join)||void 0===t?void 0:t.visual_annotation)||[]).length<1?null:(0,m.jsx)(y,{mode:e.mode,pinJoinVisualAnnotation:null==a||null===(i=a.pin_join)||void 0===i?void 0:i.visual_annotation,pinJoinAnnotationsWithLinks:null==a||null===(n=a.pin_join)||void 0===n?void 0:n.annotations_with_links})}function x(e){return e.graphqlRef?(0,m.jsx)(f,{...e}):(0,m.jsx)(b,{...e})}},385801:(e,t,i)=>{i.d(t,{Z:()=>b});var n=i(667294),a=i(927104),r=i(941646),o=i(52022),s=i(867820),l=i(50286),d=i(883119),c=i(785893);function u({boardUrl:e,boardName:t,boardPrivacy:i,pinnerFullName:n,pinnerImageSmallUrl:a,pinnerImageLargeUrl:u}){const p=(0,l.HG)(),h=(0,o.Z)();if(!e||!t)return null;const m=e.split("/")[1],_=n||m,g=a||u;return(0,c.jsxs)(d.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:[g?(0,c.jsx)(d.iP,{role:"link",href:`/${m}/`,fullWidth:!1,tapStyle:"compress",onTap:()=>{(0,s.My)(`pcons.${p?"desktop":"mobile"}.see-more-button-creator`),h({action:"click",item:"see-more-button-creator"})},children:(0,c.jsx)(d.xu,{rounding:"circle",width:32,height:32,overflow:"hidden",marginEnd:2,"data-test-id":"see-more-button-creator",children:(0,c.jsx)(d.Ee,{naturalHeight:32,naturalWidth:32,alt:_,fit:"cover",color:"rgb(231, 186, 176)",src:g})})},"profile-link"):null,(0,c.jsxs)(d.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:[(0,c.jsx)(r.Z,{id:"see-more-button-creator-full-name",children:(0,c.jsx)(d.iP,{onTap:()=>{(0,s.My)(`pcons.${p?"desktop":"mobile"}.see-more-button-creator-full-name`),h({action:"click",item:"see-more-button-creator-full-name"})},children:(0,c.jsx)(d.xv,{color:"default",inline:!0,size:"100",weight:"bold",children:(0,c.jsx)(d.rU,{href:`/${m}/`,display:"inlineBlock",tapStyle:"compress",underline:"hover",children:_},"profile-link")},"profileLink")})}),"protected"===i?null:(0,c.jsx)(d.xv,{color:"default",inline:!0,size:"100",children:(0,c.jsx)(d.rU,{href:null!=e?e:"",display:"inlineBlock",tapStyle:"compress",underline:"hover",children:null!=t?t:""},"board-link")},"boardLink")]})]})}var p,h=i(898781),m=i(394332),_=i(349700),g=i(780280),v=i(298024),y=i(167912);const f=void 0!==p?p:p=i(877821);function b({onClickTitleOrDomain:e,title:t,description:i,pinId:r,graphqlRef:p,pinCreditPrefix:b,pinDomain:x,boardId:P,boardUrl:w,boardName:S,boardPrivacy:k,pinnerFullName:T,pinnerImageSmallUrl:I,pinnerImageLargeUrl:A}){const C=(0,h.ZP)(),j=(0,l.ml)(),E=(0,l.Wb)(),{isAuthenticated:D,isBot:O}=(0,g.B)(),R=(0,o.Z)(),L=(0,y.useFragment)(f,p),N=!D&&!O&&j,M=e||null,[z,F]=(0,n.useState)(!1),U=(0,v.si)(),Z=(0,v.Re)(),B=(t||"").length>Z,V=i.length>U,[H,W]=(0,n.useState)(!V&&!B);return(0,c.jsxs)(d.xu,{children:[(0,c.jsxs)(d.xu,{children:[(0,c.jsxs)(d.xu,{as:"figcaption",paddingX:E?11:0,children:[(0,c.jsx)(d.X6,{color:"default",size:"300",accessibilityLevel:3,children:z||O?t:(0,a.Z)(t||"",Z)}),!!t&&(0,c.jsx)(d.xu,{height:i?8:0}),i&&(V||B)?(0,c.jsxs)(d.iP,{onTap:()=>{z||D||((0,s.NC)("click_open_description_in_sheet"),R({action:"click",item:"more-description-in-sheet"})),W(!H),F(!z)},fullWidth:!1,children:[(0,c.jsx)(d.xv,{color:"default",size:"200",inline:!0,children:z||O?i:(0,a.Z)(i,U)}),(0,c.jsx)(d.xu,{display:"inlineBlock",paddingX:1,children:(0,c.jsx)(d.xv,{weight:"bold",size:"200",inline:!0,children:z||O?C.bt("Less", "Less", "Toggle less description button", undefined, true):C.bt("More", "More", "Toggle more description button", undefined, true)})})]}):(0,c.jsx)(d.xv,{color:"default",size:"200",inline:!0,children:i})]}),N&&(H||O)&&!!x&&(0,c.jsx)(d.xu,{marginTop:2,children:(0,c.jsx)(d.kC,{alignItems:"center",direction:"row",width:"100%",children:(0,_.nk)(C.bt("{{ pinCreditPrefix }} {{ pinCredit }}", "{{ pinCreditPrefix }} {{ pinCredit }}", "tells the user where the pin is from in the form of Saved from website", undefined, true),{pinCreditPrefix:(0,c.jsx)(d.xu,{display:"inlineBlock",children:(0,c.jsx)(d.xv,{inline:!0,size:"200",children:b})},"pinCreditsPrefix"),pinCredit:(0,c.jsx)(d.xu,{display:"inlineBlock",marginStart:1,maxWidth:"60vw","data-test-id":"pin-domain-link",children:(0,c.jsx)(d.iP,{onTap:({event:e})=>{e.preventDefault(),e.stopPropagation(),R({action:"click",item:"pin-domain-link"}),(0,s.My)("mweb_pin_page.pin_link.clickthrouh"),D||(0,s.NC)("click_pin_closeup_link_clickthrough"),M&&M()},tapStyle:"compress",children:(0,c.jsx)(d.xv,{size:"200",lineClamp:1,children:(0,c.jsx)("span",{style:{textDecoration:"underline"},children:x})},"pinLinkDomain")})},"pinCredits")})})})]}),!!P&&(H||O)&&(0,c.jsx)(d.xu,{marginTop:4,children:(0,c.jsx)(u,{boardUrl:w,boardName:S,boardPrivacy:k,pinnerFullName:T,pinnerImageSmallUrl:I,pinnerImageLargeUrl:A})}),(0,c.jsx)(d.xu,{marginTop:4,children:(0,c.jsx)(m.Z,{pinId:r,mode:"expanded",graphqlRef:L})})]})}},999023:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),a=i(112690),r=i(867820);const o=({viewType:e,viewParameter:t,viewData:i,auxData:n,objectIdStr:a,component:o,clientTrackingParams:s,element:l},d)=>{const c=(u={event_type:13,view_type:e,view_parameter:t,view_data:i,aux_data:n,object_id_str:a,component:o,clientTrackingParams:s,element:l},Object.keys(u).reduce(((e,t)=>(void 0===u[t]&&delete e[t],e)),{...u}));var u;-1===Object.keys(c).indexOf("view_type")&&(0,r.My)("mweb.logging.null_view_type"),d(c)};function s(e){const{auxData:t,clientTrackingParams:i,children:r,component:s,element:l,objectIdStr:d,viewData:c,viewParameter:u,viewType:p}=e,h=(0,a.Z)(),m=JSON.stringify(t),_=JSON.stringify(c);return(0,n.useEffect)((()=>{o(e,h)}),[h,m,i,s,l,d,_,u,p]),n.Children.only(r)}},598615:(e,t,i)=>{i.d(t,{Z:()=>h});var n=i(667294),a=i(329900),r=i(938917),o=i(53987),s=i(407043),l=i(385740),d=i(52022),c=i(867820),u=i(276775),p=i(785893);function h({children:e,componentType:t,within:i}){const h=(0,u.useLocation)(),{flushContextEvents:m,logContextEvent:_}=(0,s.v)(),{viewType:g,viewParameter:v}=(0,l.SU)(),y=(0,d.Z)();(0,n.useEffect)((()=>{y({action:"view",item:"download-button",within:i})}),[h,i,y]);const f=(0,n.useRef)(!1);(0,n.useEffect)((()=>{g&&(_({component:t||13106,element:10308,event_type:9976,view_type:g||32,view_parameter:v,aux_data:{app_upsell_type:i,app_upsell_is_dupe:f.current}}),f.current=!0)}),[t,_,v,g,i]);const b=(0,r.Z)();return(0,n.useEffect)((()=>{b||(0,c.My)(`mweb.app_upsell.forbidden_upsell.${i}`)}),[b,i]),(0,p.jsx)(a.Z,{children:n=>e({handleOpenApp:e=>{var a;(y({action:"click",item:"download-button",within:i}),(0,c.NC)("press_open_app",!0),_({component:t||13106,element:10308,event_type:102,view_type:g||32,view_parameter:v,aux_data:{app_upsell_type:i}}),_({component:t||13106,element:10308,event_type:9977,view_type:g||32,view_parameter:v,aux_data:{app_upsell_type:i}}),m(!0),n)&&(_({component:t||13106,element:10308,event_type:1701,view_type:g||32,view_parameter:v,aux_data:{app_upsell_type:i}}),n(null!==(a=null==e?void 0:e.deepLinkUri)&&void 0!==a?a:(e=>"/"===e.pathname?"/":(0,o.am)(e)?`board/${e.pathname.substr(1)}`:e.pathname.substr(1))(h)))}})})}},296679:(e,t,i)=>{i.d(t,{Z:()=>_});var n=i(598615),a=i(821997),r=i(430322),o=i(898781),s=i(287072),l=i(948376),d=i(50286),c=i(780280),u=i(664166),p=i(883119),h=i(785893);const m=({deepLinkUri:e,isOpen:t,onDismiss:i,onOpenInApp:u,to:m,within:_})=>{const g=(0,o.ZP)(),v=(0,d.Wb)(),{userAgent:{platform:y,raw:f}}=(0,c.B)(),b=(0,l.Rp)({platform:y,userAgent:f}),x=(0,s.Z)({href:null!=m?m:""}),P=v?60:40;return(0,h.jsx)(r.default,{accessibilityModalLabel:"",isOpen:t,mobileHideCloseIcon:!0,type:"app_upsell_v1",overrideZDepth:101,closeOnOutsideClick:!1,onDismiss:()=>{},children:(0,h.jsx)(n.Z,{componentType:14157,within:_,children:({handleOpenApp:t})=>(0,h.jsxs)(p.xu,{padding:3,"data-test-id":"appUpsell-iframe",children:[(0,h.jsx)(p.xu,{display:"inlineBlock",position:"absolute",children:(0,h.jsx)(p.xu,{"data-test-id":"appUpsell-continue",children:(0,h.jsx)(p.hU,{accessibilityLabel:g.bt("close icon background", "close icon background", "accesibility label for close icon on a overlay", undefined, true),icon:"cancel",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{i({event:e}),x&&!e.defaultPrevented&&(t(),x({event:e}))},size:"lg",iconColor:"gray"})})}),(0,h.jsxs)(p.xu,{paddingX:2,paddingY:6,children:[(0,h.jsx)(p.xu,{paddingY:2,justifyContent:"center",display:"flex",children:b?(0,h.jsx)(a.Z,{size:P}):(0,h.jsx)(p.JO,{color:"brandPrimary",icon:"pinterest",accessibilityLabel:"Pinterest App",size:P})}),(0,h.jsxs)(p.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:[(0,h.jsx)(p.xu,{paddingY:2,children:(0,h.jsx)(p.X6,{align:"center",size:"400",children:b?g.bt("Try Pinterest Lite", "Try Pinterest Lite", "mweb.app_upsell.lite_app_upsell_title", undefined, true):g.bt("The best experience is in the app", "The best experience is on the app", "mweb.unauth.app_upsell.app_value_prop", undefined, true)})}),(0,h.jsx)(p.xv,{align:"center",size:"300",children:b?g.bt("A space-saving way to discover new ideas", "A space-saving way to discover new ideas", "mweb.app_upsell.lite_app_value_prop", undefined, true):g.bt("Free, unlimited access to ideas", "Free, unlimited access to ideas", "mweb.app_upsell.lite_app_value_prop", undefined, true)}),(0,h.jsx)(p.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{display:"grid"}},justifyContent:"center",marginTop:8,children:(0,h.jsx)(p.zx,{fullWidth:!0,size:"lg",color:"red",onClick:()=>{t({deepLinkUri:e}),u()},text:g.bt("Get the app", "Get the app", "mweb.app_upsell.app_upsell_button_text", undefined, true)})})]})]})]})})})};function _({clientTrackingParams:e,deepLinkUri:t,isOpen:i,onDismiss:n,onOpenInApp:a,shouldTrackDismiss:r,to:o,viewParameter:s,viewType:l,within:d}){return(0,h.jsx)(u.Z,{clientTrackingParams:e,viewType:l,viewParameter:s,children:(0,h.jsx)(m,{deepLinkUri:t,isOpen:i,onDismiss:e=>{r&&(0,u.y)(),n(e)},onOpenInApp:()=>{(0,u.y)(),a()},to:o,within:d})})}},664166:(e,t,i)=>{i.d(t,{Z:()=>u,y:()=>c});var n=i(667294),a=i(807609),r=i(999023),o=i(30287),s=i(622096),l=i(957161),d=i(785893);const c=()=>{(0,l.Nh)("appUpsell",Date.now()),(0,l.qn)("firstUpsellTime")||(0,l.Nh)("firstUpsellTime",Date.now()),(0,s.Nh)("showedAppUpsellCurrentSession",!0)};function u({children:e,clientTrackingParams:t,viewParameter:i,viewType:s}){return(0,a.Z)()||(0,o.FP)(window)?null:(0,d.jsx)(r.Z,{viewType:s,viewParameter:i,component:13106,clientTrackingParams:t,children:(0,d.jsx)(n.Fragment,{children:e})})}},236617:(e,t,i)=>{i.d(t,{G:()=>l,L:()=>s});var n=i(667294),a=i(425288),r=i(785893);const{Provider:o,useHook:s}=(0,a.Z)("AppUpsell");function l({children:e}){const[t,i]=(0,n.useState)(""),[a,s]=(0,n.useState)(!1),[l,d]=(0,n.useState)(!1),c=(0,n.useCallback)((e=>{i(e)}),[]),u=(0,n.useCallback)((e=>{s(e)}),[]),p=(0,n.useCallback)((e=>{d(e)}),[]),h=(0,n.useMemo)((()=>({type:t,setTypeVal:c,appUpsellFooterScrollDismissed:a,setAppUpsellFooterScrollDismissedVal:u,showLearningRelatedPinAppUpsell:l,setShowLearningRelatedPinAppUpsellVal:p})),[t,c,a,u,l,p]);return(0,r.jsx)(o,{value:h,children:e})}},938917:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(702664);const a=()=>(0,n.useSelector)((({session:{canUseNativeApp:e}})=>e))},223019:(e,t,i)=>{i.d(t,{Z:()=>g});var n=i(702664),a=i(80811),r=i(340494),o=i(52022),s=i(19121),l=i(867820),d=i(130460),c=i(780280),u=i(883119),p=i(712055),h=i(853492),m=i(785893);const _=["thumbnail","imageOnly"];function g({boardId:e,containerBackgroundColor:t,forwardedRef:i,fullSize:g,showFollowButton:v=!0,showPinCount:y=!0,type:f,viewParameter:b,viewType:x}){var P,w,S;const k=(0,s.Z)(),T=k&&k.isAuth,I=(0,n.useDispatch)(),{locale:A}=(0,c.B)(),C=(0,o.Z)(),j=(0,d.gC)()(e),E=(0,r.Z)(),D=k.isAuth?k.id:"";if(!j)return null;const O=j.owner,R=[O,...j.collaborating_users||[]].filter(Boolean).map((({id:e,image_medium_url:t,username:i})=>({id:e,image_medium_url:t,username:i}))),L=(null==O?void 0:O.id)===D,N=R.filter((({id:e})=>e===D)).length>0;if("secret"===j.privacy&&!N)return null;const M="grid"===f||"thumbnail"===f?2:4,z=E(j,M),F={isCustom:j.has_custom_cover,url:z,position:(0,h.Bw)(j.cover_pin)},U=(0,h.Jx)(j,z).map((({url:e})=>({name:(0,h.po)(e),url:e}))),Z=(0,m.jsx)(a.Z,{archivedDate:null!==(P=j.archived_by_me_at)&&void 0!==P?P:void 0,canEdit:!!j.access&&j.access.includes("write"),collaborators:R,collaboratorsCount:j.collaborator_count,containerBackgroundColor:t,coverPhoto:z?F:null,followedByMe:j.followed_by_me,fullSizeDrawer:g,hideMeta:_.includes(f),id:j.id,imagesLego:U,isAuthenticated:T,isCollaborative:j.is_collaborative,isCollaborator:N,isOwner:L,isSecret:"secret"===j.privacy,lastModifiedDate:"full"===f?j.board_order_modified_at:"",locale:A,name:null!==(w=j.name)&&void 0!==w?w:"",numCols:M,onFollow:e=>I((0,p.Z)(e)),onUnfollow:e=>I((0,p.f)(e)),owner:O,pinCount:y&&j.pin_count?j.pin_count:void 0,sectionCount:null!==(S=j.section_count)&&void 0!==S?S:0,sensitivityScreen:j.sensitivity_screen,showFollowButton:v,viewParameter:b,viewType:x,viewerId:D});return!_.includes(f)&&j.url?(0,m.jsx)(u.iP,{role:"link",href:j.url,rounding:2,tapStyle:"compress",onTap:()=>{T||((0,l.NC)("click_go_to_board"),C({action:"click",item:"board-card"}))},children:(0,m.jsx)(u.xu,{ref:i,paddingY:3,children:Z})}):Z}},538232:(e,t,i)=>{i.d(t,{R:()=>r,q:()=>a});var n=i(425288);const{Provider:a,useHook:r}=(0,n.Z)("CloseupPageContext")},350948:(e,t,i)=>{i.d(t,{IS:()=>g,Ys:()=>_,ZP:()=>S,j$:()=>f});var n,a=i(134185),r=i(50286),o=i(349700),s=i(578661),l=i(923297),d=i(350118),c=i(898781),u=i(883119),p=i(167912),h=i(785893);const m=void 0!==n?n:n=i(906587),_=({m:e,h:t,rm:i,rh:n},a)=>e&&(!t||n<=0)?(0,o.nk)(a.nbt(["{{mins}} minute", "{{mins}} minutes"], i, "number showing the minutes to complete a recipe", true),{mins:i.toString()}):t?(0,o.nk)(a.nbt(["{{hrs}} hour", "{{hrs}} hours"], n, "number showing the hours to complete a recipe", true),{hrs:n.toString()}):null,g=({m:e,h:t,rm:i,rh:n,i18n:a})=>e&&(!t||n<=0)?(0,o.nk)(a.bt("{{mins}}m", "{{mins}}m", "number showing minutes to complete a recipe", undefined, true),{mins:i.toString()}):t?(0,o.nk)(a.bt("{{hrs}}h {{mins}}m", "{{hrs}}h {{mins}}m", "number showing hours to complete a recipe", undefined, true),{hrs:t.toString(),mins:e.toString()}):null,v=(e,t)=>{const i=e&&e.length>0&&e.join(", "),n=t&&t.summary;return i&&n?`${i} • ${n}`:i||n},y=e=>e?e.reduce(((e,t)=>{var i,n;return e+(null!==(i=null===(n=t.ingredients)||void 0===n?void 0:n.length)&&void 0!==i?i:0)}),0):0,f=({cookTimesCookM:e,cookTimesCookH:t,cookTimesTotalM:i,cookTimesTotalH:n,hasCookTimesTotal:a,i18n:r})=>{let o;return o=a?(0,l.X)({m:i||0,h:n||0}):(0,l.X)({m:e||0,h:t||0}),_(o,r)};function b({category:e,ingredients:t,textSize:i="300"}){return(0,h.jsxs)(u.xu,{marginBottom:4,children:[e&&(0,h.jsx)(u.xu,{children:(0,h.jsx)(u.xv,{weight:"bold",size:i,children:e})}),(null!=t?t:[]).map((e=>{var t,n;return(0,h.jsx)(u.xu,{"data-test-id":"recipe-ingredient",itemProp:"recipeIngredient",marginTop:1,children:(0,h.jsxs)(u.xv,{size:i,children:[e.amt||null," ",e.name]})},`${null!==(t=e.name)&&void 0!==t?t:""}-${null!==(n=e.name)&&void 0!==n?n:""}`)}))]})}const x=({categorizedIngredients:e,cookTimes:t,image:i,ingredientCount:n,ingredientsDescription:o,name:l,pinLink:d})=>{var p,m,_,g;const v=(0,c.ZP)(),y=(0,r.ZP)();return f({cookTimesCookM:null==t||null===(p=t.cook)||void 0===p?void 0:p.m,cookTimesCookH:null==t||null===(m=t.cook)||void 0===m?void 0:m.h,cookTimesTotalM:null==t||null===(_=t.total)||void 0===_?void 0:_.m,cookTimesTotalH:null==t||null===(g=t.total)||void 0===g?void 0:g.h,hasCookTimesTotal:!(!t||!t.total),i18n:v})||n||o?(0,h.jsxs)(u.xu,{"data-test-id":"pin-recipe-container",display:"flex",direction:"column",marginTop:8,children:[(0,h.jsxs)(u.xu,{direction:"column",display:"flex",marginTop:4,marginBottom:4,marginEnd:6,overflow:"hidden",children:[(0,h.jsx)(u.xu,{marginBottom:4,children:(0,h.jsx)(u.xv,{weight:"bold",align:"desktop"===y?"start":"center",children:v.bt("Ingredients", "Ingredients", "Ingredients category heading for recipes", undefined, true)})}),(0,h.jsxs)(a.Z,{itemScope:!0,itemType:s.G,children:[(0,h.jsx)("meta",{content:l,itemProp:"name"}),i&&(0,h.jsx)("meta",{content:i,itemProp:"image"}),Array.isArray(e)&&e.length>0&&(0,h.jsx)(u.xu,{column:12,"data-test-id":"single-column-ingredients",children:e.map((({category:e,ingredients:t},i)=>(0,h.jsx)(u.xu,{marginBottom:2,children:(0,h.jsx)(b,{category:e,ingredients:t,textSize:"300"})},i)))})]})]}),(0,h.jsx)(u.xu,{marginBottom:4,display:"flex",justifyContent:"phone"===y?"center":void 0,children:d&&(0,h.jsx)(u.zx,{text:v.bt("Make it", "Make it", "closeup.recipe.make_it_button", undefined, true),role:"link",href:d,target:"blank"})})]}):null},P=({graphqlRef:e})=>{const t=(0,p.useFragment)(m,e),{imageSpec_474x:i,link:n,richMetadata:a}=t,r=null==a?void 0:a.recipe,o=null==r?void 0:r.categorizedIngredients,s=y(o),l=(null==r?void 0:r.categorizedIngredients)&&v(r.diets,r.servingsSummary);return(0,h.jsx)(x,{categorizedIngredients:o,cookTimes:null==r?void 0:r.cookTimes,image:null==i?void 0:i.url,ingredientCount:s,ingredientsDescription:l,name:null==r?void 0:r.name,pinLink:n})},w=({pinId:e})=>{var t,i;const n=(0,d.S6)()(e),a=(null==n||null===(t=n.rich_metadata)||void 0===t?void 0:t.recipe)||{},{cook_times:r,name:o,categorized_ingredients:s,diets:l,servings_summary:c}=a,u=y(s),p=s&&v(l,c);return(0,h.jsx)(x,{categorizedIngredients:s,cookTimes:r,image:(null===(i=((null==n?void 0:n.images)||{})["474x"])||void 0===i?void 0:i.url)||"",ingredientCount:u,ingredientsDescription:p,name:o,pinLink:(null==n?void 0:n.link)||""})};function S({graphqlRef:e,pinId:t}){return e?(0,h.jsx)(P,{graphqlRef:e}):(0,h.jsx)(w,{pinId:t})}},298024:(e,t,i)=>{i.d(t,{Ph:()=>a,Re:()=>o,si:()=>r});var n=i(50286);const a=e=>e&&e.promoter&&!e.is_downstream_promotion?e.promoter:null,r=()=>"phone"!==(0,n.ZP)()?180:130,o=()=>"phone"!==(0,n.ZP)()?180:80},759177:(e,t,i)=>{i.d(t,{Z:()=>o});var n,a=i(167912);const r=void 0!==n?n:n=i(96795);const o=e=>function(e){var t,i,n,a,r,o,s,l,d,c,u,p,h,m,_,g,v,y,f,b,x,P,w,S,k,T,I;return{"60x60":{height:(null==e||null===(t=e.imageSpec_60x60)||void 0===t?void 0:t.height)||void 0,url:(null==e||null===(i=e.imageSpec_60x60)||void 0===i?void 0:i.url)||void 0,width:(null==e||null===(n=e.imageSpec_60x60)||void 0===n?void 0:n.width)||void 0},"136x136":{height:(null==e||null===(a=e.imageSpec_136x136)||void 0===a?void 0:a.height)||void 0,url:(null==e||null===(r=e.imageSpec_136x136)||void 0===r?void 0:r.url)||void 0,width:(null==e||null===(o=e.imageSpec_136x136)||void 0===o?void 0:o.width)||void 0},"170x":{height:(null==e||null===(s=e.imageSpec_170x)||void 0===s?void 0:s.height)||void 0,url:(null==e||null===(l=e.imageSpec_170x)||void 0===l?void 0:l.url)||void 0,width:(null==e||null===(d=e.imageSpec_170x)||void 0===d?void 0:d.width)||void 0},"236x":{height:(null==e||null===(c=e.imageSpec_236x)||void 0===c?void 0:c.height)||void 0,url:(null==e||null===(u=e.imageSpec_236x)||void 0===u?void 0:u.url)||void 0,width:(null==e||null===(p=e.imageSpec_236x)||void 0===p?void 0:p.width)||void 0},"474x":{height:(null==e||null===(h=e.imageSpec_474x)||void 0===h?void 0:h.height)||void 0,url:(null==e||null===(m=e.imageSpec_474x)||void 0===m?void 0:m.url)||void 0,width:(null==e||null===(_=e.imageSpec_474x)||void 0===_?void 0:_.width)||void 0},"564x":{height:(null==e||null===(g=e.imageSpec_564x)||void 0===g?void 0:g.height)||void 0,url:(null==e||null===(v=e.imageSpec_564x)||void 0===v?void 0:v.url)||void 0,width:(null==e||null===(y=e.imageSpec_564x)||void 0===y?void 0:y.width)||void 0},"736x":{height:(null==e||null===(f=e.imageSpec_736x)||void 0===f?void 0:f.height)||void 0,url:(null==e||null===(b=e.imageSpec_736x)||void 0===b?void 0:b.url)||void 0,width:(null==e||null===(x=e.imageSpec_736x)||void 0===x?void 0:x.width)||void 0},"600x315":{height:(null==e||null===(P=e.imageSpec_600x315)||void 0===P?void 0:P.height)||void 0,url:(null==e||null===(w=e.imageSpec_600x315)||void 0===w?void 0:w.url)||void 0,width:(null==e||null===(S=e.imageSpec_600x315)||void 0===S?void 0:S.width)||void 0},orig:{height:(null==e||null===(k=e.imageSpec_orig)||void 0===k?void 0:k.height)||void 0,url:(null==e||null===(T=e.imageSpec_orig)||void 0===T?void 0:T.url)||void 0,width:(null==e||null===(I=e.imageSpec_orig)||void 0===I?void 0:I.width)||void 0}}}((0,a.useFragment)(r,e))},821997:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(785893);function a({size:e,noCircle:t}){return(0,n.jsxs)("svg",{height:e,style:{display:"block"},viewBox:t?"3 3 70 70":"-3 -3 82 82",width:e,children:[t?null:(0,n.jsx)("circle",{cx:"38",cy:"38",fill:"white",r:"40"}),(0,n.jsx)("path",{d:"M27.5 71c3.3 1 6.7 1.6 10.3 1.6C57 72.6 72.6 57 72.6 37.8 72.6 18.6 57 3 37.8 3 18.6 3 3 18.6 3 37.8c0 14.8 9.3 27.5 22.4 32.5-.3-2.7-.6-7.2 0-10.3l4-17.2s-1-2-1-5.2c0-4.8 3-8.4 6.4-8.4 3 0 4.4 2.2 4.4 5 0 3-2 7.3-3 11.4C35.6 49 38 52 41.5 52c6.2 0 11-6.6 11-16 0-8.3-6-14-14.6-14-9.8 0-15.6 7.3-15.6 15 0 3 1 6 2.6 8 .3.2.3.5.2 1l-1 3.8c0 .6-.4.8-1 .4-4.4-2-7-8.3-7-13.4 0-11 7.8-21 22.8-21 12 0 21.3 8.6 21.3 20 0 12-7.4 21.6-18 21.6-3.4 0-6.7-1.8-7.8-4L32 61.7c-.8 3-3 7-4.5 9.4z",fill:"#fb7072",fillRule:"evenodd"})]})}},962832:(e,t,i)=>{i.d(t,{$J:()=>k,AP:()=>L,Dm:()=>T,Fv:()=>w,H$:()=>D,In:()=>R,Ng:()=>S,RH:()=>b,Wj:()=>O,_P:()=>I,go:()=>P});var n=i(126098),a=i(6637),r=i(524309),o=i(30287),s=i(53987),l=i(867820),d=i(957161);const c="home",u="closeup",p="news_hub",h="board",m="profile",_="topic",g="today",v="business",y="search";let f;const b="_push",x=e=>{e.onupdatefound=()=>{(0,l.My)("mweb_service_worker.update_found")}},P=()=>Boolean("undefined"!=typeof navigator&&navigator.serviceWorker&&navigator.serviceWorker.controller),w=()=>new Promise(((e,t)=>{const i=navigator.serviceWorker,{pwaType:n,twaType:a}=f.getState().session,r=new URLSearchParams({source_url:window.location.pathname});n&&a&&(0,o.Rx)(a)&&(r.append("pwa_type",n),r.append("twa_type",a)),Boolean("undefined"!=typeof document&&document.referrer&&!document.referrer.startsWith(window.location.origin))&&r.append("referrer",document.referrer),i&&i.register?((0,l.My)("mweb_service_worker.install_attempt"),i.register(`/sw.js?${r.toString()}`).then((t=>{(0,l.My)("mweb_service_worker.install_success"),x(t),e(t)})).catch((e=>{(0,l.tj)("mweb_service_worker.install_fail",{error:e.message}),t(e)}))):e()})),S=()=>new Promise(((e,t)=>{const i=navigator.serviceWorker;i&&i.getRegistration?((0,l.My)("mweb_service_worker.update_attempt"),i.getRegistration().then((i=>{i?i.update().then((()=>{(0,l.My)("mweb_service_worker.update_success"),x(i),e(i)})).catch((e=>{(0,l.tj)("mweb_service_worker.update_fail",{error:e.message}),t(e)})):w().then(e)}))):e()})),k=()=>{const e=f.getState().session.isAuthenticated;(0,l.My)(`mweb.${e?"auth":"unauth"}.register_service_worker`),w()},T=()=>{const e=navigator.serviceWorker;return e&&e.getRegistration?((0,l.My)("mweb_service_worker.unregister_attempt"),(0,r.Qi)(),e.getRegistration().then((e=>{if(e)return e.unregister().then((()=>((0,l.My)("mweb_service_worker.unregister_success"),navigator.serviceWorker&&window.caches?window.caches.keys().then((e=>{const t=e.find((e=>e.startsWith("workbox-precaching")));return t?window.caches.delete(t):null})).then((()=>(0,l.My)("mweb_service_worker.clear_app_shell"))):Promise.resolve()))).catch((e=>{(0,l.tj)("mweb_service_worker.unregister_fail",{error:e.message})}))}))):Promise.resolve()},I=()=>!(!P()||!("SyncManager"in window)),A=e=>(0,s.C$)(e)?c:(0,s.L6)(e)?u:(0,s.l4)(e)?p:(0,s.am)(e)?h:(0,s.cD)(e)?m:(0,s.En)(e)?y:(0,s.$V)(e)?_:(0,s.Zz)(e)?g:(0,s.Ni)(e)?v:"undefined",C=e=>{switch(A(e)){case c:return{viewType:1,viewParameter:92};case u:return{viewType:3,viewParameter:void 0};case p:return{viewType:107,viewParameter:3081};case h:return{viewType:5,viewParameter:void 0};case y:return{viewType:2,viewParameter:43};case _:return{viewType:210,viewParameter:void 0};case m:return{viewType:4,viewParameter:void 0};case v:return{viewType:409,viewParameter:3397};case g:return{viewType:1,viewParameter:3372};default:return{viewType:void 0,viewParameter:void 0}}},j=(e,t)=>(0,l.tj)(e,{browser:f.getState().session.browser,version:Math.floor(parseInt(f.getState().session.browserVersion,10)),...t}),E=(0,n.Z)(),D="default"===E||"granted"===E,O=(e,t,i,n)=>{const r=navigator.serviceWorker,o=Boolean((0,d.qn)(b)),s={experimentName:i||"noExperiment",experimentGroup:n||"noGroup"};return r&&r.ready&&D&&!o?(t({event_type:13,view_type:170,component:13125,aux_data:{experiment_name:i,experiment_group:n}}),j(`mweb.notifications_upsell.${A(e)}.viewed`,s),r.ready.then((e=>e.pushManager.subscribe({userVisibleOnly:!0}))).then((i=>((e,t,i,n)=>{a.Z.create("WebPushDeviceResource",{}).callGet().then((t=>{const i=(({subscriptionId:e,endpoint:t})=>{return e||(i=t.split("/"))[i.length-1];var i})(e);if(t.resource_response.data[i])return;const n={registration_id:i,subscription_endpoint:e.endpoint};a.Z.create("WebPushDeviceResource",n).callCreate()})),(0,d.Nh)(b,"subscribed"),j(`mweb.notifications_upsell.${A(t)}.subscribed`,i);const r=C(t);n({component:13125,element:10357,event_type:102,view_type:r.viewType,view_parameter:r.viewParameter,aux_data:{experiment_name:i.experimentName,experiment_group:i.experimentGroup}})})(i,e,s,t)),(()=>((e,t,i)=>{(0,d.Nh)(b,"denied"),j(`mweb.notifications_upsell.${A(e)}.denied`,t);const n=C(e);i({component:13125,element:10358,event_type:102,view_type:n.viewType,view_parameter:n.viewParameter,aux_data:{experiment_name:t.experimentName,experiment_group:t.experimentGroup}})})(e,s,t)))):Promise.reject()},R=e=>{f=e},L=({isAuthenticated:e,isAppShell:t})=>{let i=!1;const n=n=>{if(i)return;i=!0;const a=`${t?"warm":"cold"}.${e?"auth":"unauth"}`;(0,l.My)(`mweb_service_worker.appshell_status.${a}.${n}`)},a=navigator.serviceWorker,r=null==a?void 0:a.controller;a&&r?setTimeout((()=>n("timeout")),1e3):n("no_worker")}},886076:(e,t,i)=>{function n({isEligibleForPdp:e,isOosProduct:t,isStaleProduct:i,pinShoppingFlags:n}){if(n){const a=n,r={pin_is_shop_the_look:a.includes(2),pin_show_pdp:e||t||i,is_available:a.includes(1),is_product_pin_v2:a.includes(5),is_rich_product_pin:a.includes(6)};return JSON.stringify(r)}}i.d(t,{Z:()=>n})},830157:(e,t,i)=>{function n(e,t){return e||(t?`${t}~0`:"~0")}i.d(t,{Z:()=>n})},948376:(e,t,i)=>{i.d(t,{G3:()=>c,Rp:()=>d,kp:()=>l});var n=i(622096),a=i(202139),r=i(957161);const o=14*a.F4;function s(e,t,i){return e-t>i}const l=e=>{const t=function(){const e=Date.now(),t=Number((0,r.qn)("appUpsell"));return{currentTime:e,firstUpsellTime:Number((0,r.qn)("firstUpsellTime")),lastUpsellTime:t,showedAppUpsellCurrentSession:Boolean((0,n.qn)("showedAppUpsellCurrentSession"))}}();return e?function(e,t,i){const{currentTime:n,firstUpsellTime:a,lastUpsellTime:l,showedAppUpsellCurrentSession:d}=e;return i=i||o,!a||function(e,t,i){return e<t+i}(n,a,t)?!d:!!s(n,l,i)&&((0,r.L_)("firstUpsellTime"),!0)}(t,a.F4):function(e,t){const{currentTime:i,lastUpsellTime:n}=e;return t=t||o,!n||s(i,n,t)}(t)},d=({platform:e,userAgent:t})=>{try{return"android"===e&&parseFloat((e=>{const t=(e=e.toLowerCase()).match(/android\s([0-9\.]*)/i);return t?t[1]:void 0})(t))<7}catch(i){return!1}},c=e=>(e.startsWith("zh")||e.startsWith("ar")?e:e.slice(0,2)).toUpperCase()},116485:(e,t,i)=>{i.d(t,{AA:()=>r,E9:()=>_,EU:()=>y,IO:()=>v,Jd:()=>h,KH:()=>c,QR:()=>d,Uw:()=>a,ZR:()=>f,dy:()=>l,eA:()=>p,fo:()=>m,k7:()=>o,rT:()=>g,tz:()=>u,u9:()=>b,zR:()=>s,zu:()=>n});const n="OPEN_UNAUTH",a="openUnauthType",r="_isAfterLogin",o="_lastVisitedPages",s="_lastVisitedPagesBeforeLogin",l="_lastVisitedBoardPages",d="_lastVisitedPagesBeforeNavPage",c="_lastVisitedSessionPages",u="_unauthVisitedPages",p=20,h="_unauthInviteCode",m="_unauthReferrerString",_="unauthTopicsFollowed",g=["US","CA","NZ","AU"],v=new Set(["GB","IE"]),y=new Set(["AT","BE","CH","DE","DK","ES","FR","IT","NL","NO","PT","SE"]),f=new Set(["BR","MX","AR","CL","CO","PE"]),b="ad_img"},62409:(e,t,i)=>{i.d(t,{AH:()=>l,Bk:()=>r,CK:()=>s,Xe:()=>a,kb:()=>o,wS:()=>n});const n=e=>{if(!e)return Object.freeze({});let t;return e.native_creator?(t=e.native_creator,t):e.link_domain?(t=e.link_domain.official_user,t):(t=e.origin_pinner||e.pinner,t)};function a({hasLinkDomain:e,hasNativeCreator:t,hasOriginPinner:i,pinDomain:n,sourceUserUsername:a,sourceUserFullName:r}){return!t&&(e||i)&&a?{pinCreditLink:`/${a}/`,pinCredit:r}:{pinCreditLink:void 0,pinCredit:!t&&e?n:""}}const r=({i18n:e,isLego:t,hasLinkDomain:i,hasRichMetadataArticle:n,hasRichMetadataTutorial:a,hasRichMetadataRecipeCategorizedIngredients:r,hasRichMetadataProductOfferSummary:o,hasRichSummaryProductOfferSummary:s,richMetadataRecipeFromAggregatedData:l,richMetadataProductName:d,richSummaryProductName:c})=>{const u=r;let p;d&&o&&(p=!0);const h=n,m=a;let _=t?e.bt("From ", "From ", "Closeup pin annotation", undefined, true):e.bt("Saved from ", "Saved from ", "Closeup pin annotation", undefined, true);return!i||l?_=e.bt("Saved by ", "Saved by ", "Closeup pin annotation", undefined, true):p?_=e.bt("Product sold by ", "Product sold by ", "pin annotation", undefined, true):m?(t&&(_=e.bt("From ", "From ", "pin annotation", undefined, true)),_=e.bt("Saved from ", "Saved from ", "pin annotation", undefined, true)):u?_=e.bt("Recipe from ", "Recipe from ", "pin annotation", undefined, true):h&&(_=e.bt("Article from ", "Article from ", "pin annotation", undefined, true)),!o&&c&&s&&(_=e.bt("Product sold by ", "Product sold by ", "pin annotation", undefined, true)),_},o=e=>{const t=e.link_domain,i=e.rich_metadata,n=e.rich_summary;let a;if(t&&!(i&&i.recipe&&i.recipe.from_aggregated_data)){let e;var r;if(i&&i.products&&i.products[0]&&(e=!!(i&&i.products[0].name&&i.products[0].offer_summary)),e)a=null==i||null===(r=i.products)||void 0===r?void 0:r[0].offer_summary}if(!a&&n){let e;n&&n.products&&n.products[0]&&(e=!!(n&&n.products[0].name&&n.products[0].offer_summary),e&&(a=n.products[0].offer_summary))}return a},s=({hasRichMetadata:e,hasRichMetadataProducts:t,hasRichMetadataArticle:i,hasRichMetadataRecipe:n})=>e?t?144:i?141:n?145:139:140,l=e=>!!e&&!e.startsWith("https://i.pinimg.com")},772486:(e,t,i)=>{i.d(t,{XK:()=>s,jC:()=>o,yd:()=>l});var n=i(745760);let a=null,r=null;const o=((e,t)=>{let i=null;return o=>{var s;if(o&&!i)return i={...o,event_type:e,time:(0,n.h1)()},null===(s=r)||void 0===s||s.logContextEvent(i),a&&i&&a.storeClickthroughProperties(i),e;if(!o&&i){var l;const e={...i,event_type:t,duration_ns:(0,n.h1)()-i.time};return null===(l=r)||void 0===l||l.logContextEvent(e),i=null,t}return null}})(12,4100),s=e=>{a=e},l=e=>{r=e}},529195:(e,t,i)=>{i.d(t,{CC:()=>x,Cb:()=>y,Ff:()=>j,H$:()=>w,Mt:()=>b,OJ:()=>v,Yi:()=>T,Ys:()=>g,Yy:()=>A,Z4:()=>_,ZN:()=>p,dc:()=>k,dp:()=>P,i$:()=>m,kw:()=>f,p9:()=>S,t_:()=>h});var n=i(231486),a=i(6637),r=i(826067),o=i(332215),s=i(226198),l=i(867820),d=i(622096),c=i(957161),u=i(116485);const p=["utm_pai","utm_source","invite_code"],h=()=>(0,c.qn)(u.tz,""),m=()=>{const e=h();let t;try{t=JSON.parse(e)}catch(i){t=[]}return t},_=(e,t)=>{const i=m(),n=i.length,a=n?i[0].path:"";if(n<u.eA&&(!n||e!==a)){const n={path:e,pageType:t,ts:Date.now()};(0,c.Nh)(u.tz,JSON.stringify([n].concat(i)))}},g=e=>{(0,c.Nh)(u.Jd,e)},v=()=>(0,c.qn)(u.fo,""),y=e=>{(0,c.Nh)(u.fo,e)},f=()=>{h()&&(0,c.L_)(u.tz),(0,c.qn)(u.Jd,"")&&(0,c.L_)(u.Jd),v()&&(0,c.L_)(u.fo)},b=(e,t,i,n,a,r,o=u.k7)=>{const s=(0,c.qn)(o)?JSON.parse((0,c.qn)(o)):[];if(!s[0]||s[0].path!==e){const l=[{path:e,ts:Date.now(),pin_id:i||0,first_pin_image_signature:t||"",first_pin_id:i||"",image_info:n||"",pin_description:a||"",is_shared:!!r,pin_invite_code:r}];(0,c.Nh)(o,JSON.stringify(l.concat(s)))}},x=({path:e,image:t,dominant_color:i,pin_description:n,pin_id:a})=>{const r=(()=>{const e=(0,d.qn)(u.KH);if(!e)return[];let t;try{t=JSON.parse(e)}catch(i){t=[]}return t})();if(!r[0]||r[0].path!==e){const o=[{path:e,image:t,pin_description:n||"",dominant_color:i||"",pin_id:a||""}];(0,d.Nh)(u.KH,JSON.stringify(o.concat(r)))}};function P(e,t,i,n,a,r){b(e,t,i,n,a,r,u.zR)}const w=(e,t)=>{var i,n;b(e,t.image_signature,t.id,null===(i=t.images)||void 0===i?void 0:i["236x"],null!==(n=t.description)&&void 0!==n?n:"","",u.dy)};function S(e,t,i,n,a){b(e,t,i,n,a,"",u.QR)}function k(){return m().filter((e=>"closeup"===e.pageType)).length}function T(){const e=a.Z.create("UnauthUserDataResource");return new Promise(((t,i)=>{e.callGet().then((e=>{const a=e.resource_response.data,r=!!n.U2(s.x3);return a?((0,o.Wn)(a.medium_image_url)&&(a.medium_image_url=""),(0,l.My)("mweb.unauth.personalized_login.fetch_user_info.info.user_info_found.logged_out_cookie_"+(r?"true":"false")),t(a)):((0,l.My)("mweb.unauth.personalized_login.fetch_user_info.info.no_user_info.logged_out_cookie_"+(r?"true":"false")),i({}))})).catch((e=>{if(e&&e.message){const t=e.message.replace(/\s/g,"_").toLowerCase();(0,l.My)(`mweb.unauth.personalized_login.fetch_user_info.error.${t}`)}else(0,l.My)("mweb.unauth.personalized_login.fetch_user_info.error.unknown");return i(e)}))}))}function I({i18n:e,location:t}){const i=t.pathname.startsWith("/signup"),n=t.pathname.startsWith("/login");if(!i&&!n)return{showPLPBanner:!1,pinForBanner:null};let a;try{a=JSON.parse((0,d.qn)(u.KH))}catch(r){a=[]}if(a&&a.length>0){const t=a[0];if(t)return t.bannerCopy=e.bt("More ideas like this are waiting", "More ideas like this await", "page banner with pin image that was signed up from", undefined, true),{showPLPBanner:Boolean(t.image),pinForBanner:t}}return{showPLPBanner:!1,pinForBanner:null}}const A=e=>e.search&&e.search.startsWith("?next=")?e.search.split("?next=")[1]:null;function C({i18n:e,location:t}){var i;const n=(null===(i=t.state)||void 0===i?void 0:i.next)||A(t);if(n){const t=n.indexOf("?"),i=(0,r.mB)(n.substring(t));if(i.url&&i.media)return{showPLPBanner:!0,pinForBanner:{image:{url:(0,r.Jx)(i.media),height:1,width:1},pinDescription:i.description,bannerCopy:e.bt("Save this idea and discover more inspiration like it.", "Save this idea and discover more inspiration like it.", "page banner with pin image that was signed up from", undefined, true)}}}return{showPLPBanner:!1,pinForBanner:null}}function j({i18n:e,location:t}){return C({i18n:e,location:t}).showPLPBanner?C({i18n:e,location:t}):I({i18n:e,location:t}).showPLPBanner?I({i18n:e,location:t}):{showPLPBanner:!1,pinForBanner:null}}},305324:(e,t,i)=>{i.d(t,{M:()=>v,g:()=>y});var n,a=i(667294),r=i(590674),o=(i(883119),i(867820)),s=i(447409),l=i(50286),d=i(430235),c=i(874317),u=i(167912),p=i(785893);const h=void 0!==n?n:n=i(110767);const m=({queryReference:e,...t})=>{var i;const n=(0,u.usePreloadedQuery)(h,e),a=null==n||null===(i=n.v3GetPinQuery)||void 0===i?void 0:i.data;return a?(0,p.jsx)(d.Z,{...t,graphqlRef:a}):null},_=({queryReference:e,...t})=>{var i;const n=(0,u.usePreloadedQuery)(h,e),a=null==n||null===(i=n.v3GetPinQuery)||void 0===i?void 0:i.data;return a?(0,p.jsx)(c.ZP,{...t,graphqlRef:a}):null},g=(0,a.createContext)((()=>()=>{})),v=()=>(0,a.useContext)(g),y=({children:e,feedRef:t,viewType:i,viewParameter:n,useGraphql:v})=>{const[y,f]=(0,a.useState)(null),[b,x]=(0,a.useState)(null),[P,w]=(0,a.useState)(!1),[S,k]=(0,a.useState)(null),[T,I]=(0,a.useState)(!1),A=(0,l.HG)(),[C,j]=(0,u.useQueryLoader)(h);if(v&&!C&&S){j(function({pinId:e}){return{query:h,variables:{pinId:e}}}({pinId:S}).variables)}const E=()=>{document&&document.body&&document.body.style&&(document.body.style.overflow="unset")};(0,a.useEffect)((()=>E),[]);const D=(0,a.useCallback)((e=>i=>{const{pinId:n,deviceOptions:a}=e;if(i.stopPropagation(),i.preventDefault(),k(n),a.isDesktop)I(a.isMainPinImage),(0,o.My)("dweb.unauth.context_menu.open_menu"),f({xPosition:i.clientX,yPosition:i.clientY}),document&&document.body&&document.body.style&&(document.body.style.overflow="hidden");else{(0,o.My)("mweb.unauth.related_pin.context_menu.open");const e=i.changedTouches.item(0);if(t&&t.current){const i=t.current.getBoundingClientRect(),n=Math.min(e.pageX-i.left,i.width-c.nt),r=e.pageY-s.n;x({xPosition:n,yPosition:r,context:a.context})}}}),[t]),O=!!y;(0,a.useEffect)((()=>{const e=()=>{f(null),E(),(0,o.My)("dweb.unauth.context_menu.click_away")};return O&&document.addEventListener("click",e),()=>{O&&document.removeEventListener("click",e)}}),[O]);const R=y&&S?v?C&&(0,p.jsx)(m,{desktopContextMenuState:y,pinId:S,isMainPinImage:!!T,queryReference:C}):(0,p.jsx)(d.Z,{desktopContextMenuState:y,pinId:S,isMainPinImage:!!T,graphqlRef:null}):null,L=b&&S?v?C&&(0,p.jsx)(_,{mwebContextMenuState:b,pinId:S,openShareModal:w,setMwebContextMenuState:x,queryReference:C}):(0,p.jsx)(c.ZP,{graphqlRef:null,mwebContextMenuState:b,pinId:S,openShareModal:w,setMwebContextMenuState:x}):null;return(0,p.jsx)(g.Provider,{value:D,children:(0,p.jsxs)(a.Fragment,{children:[e,A&&R,!A&&L,!A&&P&&S&&(0,p.jsx)(r.default,{objectType:1,isOpen:P,onDismiss:()=>w(!1),objectId:S,hideContactsSuggestions:!0,element:12016,viewType:i,viewParameter:n,component:18})]})})}},364034:(e,t,i)=>{i.d(t,{Z:()=>l});var n=i(667294),a=i(807609),r=i(957161);const o=e=>{const t=(0,r.qn)(e);if(!t)return null;try{return JSON.parse(t)}catch(i){return null}};var s=i(773285);const l=()=>{const[e,t]=function(e){const t=(0,a.Z)(),[i,s]=(0,n.useState)(t?null:o(e));return(0,n.useEffect)((()=>{s(o(e))}),[e]),[i,(0,n.useCallback)((t=>{s(t),null===t?(0,r.L_)(e):(0,r.Nh)(e,JSON.stringify(t))}),[e])]}("unauthSavedPins"),i=null!==(d=null==(l=e)?void 0:l.pins)&&void 0!==d?d:[];var l,d;const c=e=>t((e=>e.length?{pins:e}:null)(e)),{checkExperiment:u}=(0,s.F)(),p=()=>{const{anyEnabled:e,group:t}=u("pcons_mweb_save_v3");let n=0;if(e){const e=t.split("_")[1];n=e?parseInt(e,10):0}return i.length<n};return{pins:i,save:e=>{p()&&c(i.filter((({id:t})=>t!==e.id)).concat([e]))},unsave:e=>c(i.filter((({id:t})=>t!==e))),isSaved:e=>i.some((({id:t})=>t===e)),clear:()=>c([]),canSaveMore:p}}},332215:(e,t,i)=>{function n(e){return Boolean(null==e?void 0:e.is_matured_new_user)}i.d(t,{IR:()=>o,V0:()=>n,Wn:()=>r,xT:()=>a});const a=e=>!!e&&2===e.login_state,r=e=>!(!e||!e.match(/\/static\/images\/user\/default_\d+\.png$/));function o(e){return!e||void 0===e.third_party_marketing_tracking_enabled||null===e.third_party_marketing_tracking_enabled||e.third_party_marketing_tracking_enabled}},987318:(e,t,i)=>{i.d(t,{H:()=>r,o:()=>a});var n=i(425288);const{Provider:a,useHook:r}=(0,n.Z)("LimitedLogin")},881802:(e,t,i)=>{i.d(t,{Bb:()=>v,Bx:()=>d,DF:()=>o,F4:()=>l,OG:()=>r,Qj:()=>c,_6:()=>g,gv:()=>s,hg:()=>u,is:()=>m,jP:()=>_,lt:()=>a,oM:()=>p,wI:()=>h});var n=i(826067);const a=e=>e.bt("Log in to continue", "Log in to continue", "limitedLogin.modalHeader.default", undefined, true),r=e=>e.pathname,o=e=>{var t;return null!==(t=null==e?void 0:e.bt("You'll need to log in to do that", "You'll need to log in to do that", "limitedLogin.modalHeader.completeAction", undefined, false))&&void 0!==t?t:"You'll need to log in to do that"},s=({firstName:e,i18n:t})=>e?(t.bt("{{ name }} invited you to join their board", "{{ name }} invited you to join their board", "limitedLogin.modalHeader.groupBoardCollab", undefined, true)).replace("{{ name }}",e):t.bt("Your friends invited you to join their board", "Your friends invited you to join their board", "limitedLogin.modalHeader.groupBoardCollab", undefined, true),l=e=>{const t=(0,n.mB)(e.search).board_url;if(t){const e=(0,n.Jx)(t),i=(0,n.XP)({accept_invite:!0,seamless:!0});return e.includes("?")?`${e}&${i}`:`${e}?${i}`}return e.pathname},d=e=>e.bt("Log in to save this Pin", "Log in to save this Pin", "limitedLogin.modalHeader.repin", undefined, true),c=e=>{const t=e.pathname;if(t.startsWith("/pin/")){const e=t.split("/");if(e.length>2)return`/${e[1]}/${e[2]}/repin/`}return t},u=e=>e.bt("Log in to send this Pin", "Log in to send this Pin", "limitedLogin.modalHeader.send", undefined, true),p=e=>e.bt("Log in to edit this Pin", "Log in to edit this Pin", "limitedLogin.modalHeader.editPin", undefined, true),h=e=>{const t=e.pathname;if(t.startsWith("/pin/")){const e=t.split("/");if(e.length>2)return`/${e[1]}/${e[2]}/edit/`}return t},m=e=>e.bt("Log in to create a Pin or board", "Log in to create a Pin or board", "limitedLogin.modalHeader.create", undefined, true),_=e=>e.bt("Log in to hide this Pin", "Log in to hide this Pin", "limitedLogin.modalHeader.hidePin", undefined, true),g=e=>e.bt("Log in to share the profile", "Log in to share the profile", "limitedLogin.modalHeader.shareProfile", undefined, true),v=e=>e.bt("Log in to create a board", "Log in to create a board", "limitedLogin.modalHeader.createBoard", undefined, true)},56390:(e,t,i)=>{i.d(t,{C:()=>l,P:()=>s});var n=i(172071),a=i(53987),r=i(622096);const o="msmrsfda",s=()=>!!(0,r.qn)(o),l=e=>{(0,a.LM)(e)&&!s()&&((0,r.Nh)(o,"1"),n.Z.incrementNow("mobile_signup_modal.rules.suppress_for_discover_article",1))}},461355:(e,t,i)=>{i.d(t,{Z:()=>m,z:()=>d});var n=i(667294),a=i(702664),r=i(391254),o=i(698330),s=i(883119),l=i(785893);const d=2500,c={__style:{right:"-105px"}},u={__style:{animationName:"SavePin_AnimateIn, SavePin_CircleAnimateOut",animationDuration:"0.3s, 0.25s",animationDelay:"0.5s, 1.3s",animationFillMode:"forwards",animatitionTimingFunction:"ease-out",backgroundColor:"rgba(255, 255, 255, 0.6)"}},p={__style:{animationName:"SavePin_AnimateIn, SavePin_AnimateOut",animationDuration:"0.3s, 0.35s",animationDelay:"0.5s, 1.55s",animationFillMode:"forwards",animatitionTimingFunction:"ease-out",border:"4px solid white"}},h={__style:{animationName:"SavePin_NavButtonAnimation",animationDuration:"0.8s",animationDelay:"1.65s",animationFillMode:"forwards",animatitionTimingFunction:"ease-out"}},m=(0,n.memo)((({children:e})=>{const t=(0,o.Tt)(),i=(0,a.useSelector)((({pins:e})=>{const i=null==t?void 0:t.last_repin_id;return i?e[i]:null})),n=(0,a.useSelector)((({session:e})=>e.isShowingRepinAnimation));if(!i||!n)return e;const{images:d}=i,{height:m,width:_,url:g}=(null==d?void 0:d["136x136"])||(null==d?void 0:d["236x"])||{};return(0,l.jsxs)(s.kC,{alignItems:"stretch",flex:"grow",justifyContent:"center",children:[(0,l.jsx)(r.Z,{unsafeCSS:"\n@keyframes SavePin_AnimateIn {\n  from {\n    transform: scale(0.0);\n    opacity: 0;\n  }\n  to {\n    opacity: 1;\n    transform: scale(1.0);\n  }\n}\n@keyframes SavePin_CircleAnimateOut {\n  from {\n    transform: scale(1.0);\n    opacity: 1;\n  }\n  to {\n    transform: scale(0.8);\n    opacity: 0;\n  }\n}\n@keyframes SavePin_AnimateOut {\n  from {\n    transform: translateY(0);\n    opacity: 1;\n  }\n  to {\n    transform: translateY(100px);\n    width: 0px;\n    height: 0px;\n    opacity: 0;\n  }\n}\n@keyframes SavePin_NavButtonAnimation {\n  0% {\n    transform: scale(1.0);\n  }\n  50% {\n    transform: scale(1.3);\n  }\n  100% {\n    transform: scale(1.0);\n  }\n}\n"}),(0,l.jsxs)(s.xu,{position:"relative",children:[(0,l.jsxs)(s.xu,{width:250,height:250,position:"absolute",right:!0,bottom:!0,dangerouslySetInlineStyle:c,children:[(0,l.jsx)(s.xu,{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",opacity:0,rounding:"circle",dangerouslySetInlineStyle:u}),(0,l.jsx)(s.xu,{width:100,height:100,position:"absolute",margin:"auto",left:!0,right:!0,top:!0,bottom:!0,opacity:0,rounding:3,dangerouslySetInlineStyle:p,children:(0,l.jsx)(s.zd,{rounding:2,height:"100%",width:"100%",wash:!0,children:(0,l.jsx)(s.Ee,{alt:"pin-image",fit:"cover",naturalWidth:null!=_?_:1,naturalHeight:null!=m?m:1,src:null!=g?g:""})})})]}),(0,l.jsx)(s.xu,{dangerouslySetInlineStyle:h,children:e})]})]})}))},327212:(e,t,i)=>{i.d(t,{Z:()=>j});var n=i(667294),a=i(376030),r=i(391254),o=i(883119),s=i(785893);function l({addedStyles:e,button:t,headerText:i,icon:a,iconOverride:l,minHeight:d,subHeaderText:c}){return(0,s.jsx)(o.xu,{display:"flex",justifyContent:"center",width:"100vw",paddingX:2,children:(0,s.jsxs)(o.xu,{alignContent:"center",alignItems:"center",bottom:!0,color:"default",dangerouslySetInlineStyle:{__style:{boxShadow:"0 3px 6px rgba(0,0,0,0.18)",transform:"translateY(-20px)",...e}},display:"flex",minHeight:d||75,padding:6,position:"relative",rounding:4,width:"100%",children:[(()=>{const e=l||(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(r.Z,{unsafeCSS:"\n@keyframes baseEduToastIconScale {\n  0% {\n    transform: scale(0)\n  }\n  30% {\n    transform: scale(1.2);\n  }\n  50% {\n    transform: scale(1);\n  }\n}\n"}),(0,s.jsx)(o.xu,{alignItems:"center",color:"education","data-test-id":"pin-save-toast",direction:"column",dangerouslySetInlineStyle:{__style:{animation:"baseEduToastIconScale 3s"}},display:"flex",height:60,justifyContent:"center",minHeight:60,minWidth:60,rounding:"circle",width:60,children:(0,s.jsx)(o.JO,{accessibilityLabel:a.accessibilityLabel,color:a.color,dangerouslySetSvgPath:a.dangerouslySetSvgPath,icon:a.icon,inline:a.inline,size:a.size})})]});return(0,s.jsx)(o.xu,{marginEnd:4,children:e})})(),(0,s.jsxs)(o.xu,{marginEnd:"auto",children:[(0,s.jsx)(o.xv,{color:"default",weight:"bold",children:i}),!!c&&(0,s.jsx)(o.xu,{paddingY:1,children:(0,s.jsx)(o.xv,{size:"300",color:"default",children:c})})]}),(0,s.jsx)(o.xu,{display:"flex",flex:"shrink",marginStart:2,children:t})]})})}var d=i(223815),c=i(829407),u=i(898781),p=i(759929);function h(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const m=(e,t)=>(e-t)/2,_=68,g=m(_,68),v=m(_,66),y=m(_,60),f="cubicBezier(0.25, 0.1, 0.25, 1)",b="encourageToastIconContainer",x="encourageToastIconRadiateBg",P="encourageToastIconRadiateRing",w={targets:`#${b}`,duration:300,scale:1.4,easing:f},S={targets:`#${b}`,duration:300,scale:1,easing:f,endDelay:1e3},k={targets:`#${b}`,duration:300,scale:.42,easing:f},T={targets:`#${x}`,duration:400,opacity:0,scale:1.6,easing:f},I={targets:`#${P}`,duration:650,opacity:0,scale:2,easing:f};function A({hiding:e,visible:t}){return t?e?{opacity:0,transform:"scale(1.0)",transition:"opacity transform .2s"}:{opacity:1,transition:"all 0.7s cubic-bezier(.19, 1.15, .48, 1)"}:Object.freeze({})}class C extends n.PureComponent{constructor(...e){super(...e),h(this,"delayTimer",null),h(this,"requestAnimationFrameId",null),h(this,"playAnimation",(()=>{this.requestAnimationFrameId=window.requestAnimationFrame((()=>{(0,a.Z)(T),(0,a.Z)(I),(0,a.Z)(w).finished.then((()=>{(0,a.Z)(S).finished.then((()=>{a.Z.set(`#${b}`,{transformOrigin:"top right"}),(0,a.Z)(k)}))}))}))})),h(this,"getHeaderText",(()=>{const{text:e}=this.props;return Array.isArray(e)?e[0]:e})),h(this,"getIconProps",(()=>({accessibilityLabel:this.props.i18n.bt("Tick icon", "Check icon", "Label for check icon on toast shown after board create", undefined, true),color:"inverse",icon:"check",size:30}))),h(this,"getSubHeaderText",(()=>{const{text:e}=this.props;return e instanceof Array&&e.length>1&&e[1]?e[1]:""})),h(this,"renderAnimatedIcon",(()=>(0,s.jsxs)(o.xu,{height:_,position:"relative",width:_,children:[(0,s.jsx)(o.xu,{"data-test-id":"pin-save-toast",width:60,height:60,overflow:"hidden",position:"absolute",rounding:4,dangerouslySetInlineStyle:{__style:{left:`${y}px`,top:`${y}px`}},children:this.props.thumbnail}),(0,s.jsxs)(o.xu,{id:b,height:_,width:_,dangerouslySetInlineStyle:{__style:{transform:"scale(0)"}},position:"absolute",children:[(0,s.jsx)(o.xu,{color:"infoBase",id:x,width:68,height:68,position:"absolute",rounding:"circle",dangerouslySetInlineStyle:{__style:{left:`${g}px`,top:`${g}px`,transform:"scale(0)"}}}),(0,s.jsx)(o.xu,{id:P,width:66,height:66,position:"absolute",rounding:"circle",opacity:1,dangerouslySetInlineStyle:{__style:{borderWidth:"2px",borderStyle:"solid",borderColor:"#0074e8",left:`${v}px`,top:`${v}px`,transform:"scale(0)"}}}),(0,s.jsx)(o.xu,{alignItems:"center",color:"infoBase",direction:"column",display:"flex",height:_,justifyContent:"center",minHeight:_,minWidth:_,position:"absolute",rounding:"circle",width:_,children:(0,s.jsx)(o.JO,{accessibilityLabel:this.props.i18n.bt("Tick icon", "Check icon", "Label for check icon on toast shown after board create", undefined, true),color:"inverse",icon:"check",size:30})})]})]})))}componentDidMount(){this.delayTimer=setTimeout(this.playAnimation,700)}componentWillUnmount(){this.delayTimer&&clearTimeout(this.delayTimer),this.requestAnimationFrameId&&window.cancelAnimationFrame(this.requestAnimationFrameId)}render(){const{isRepinToExistingBoard:e,button:t}=this.props,i=e;return(0,s.jsx)(l,{button:t,headerText:this.getHeaderText(),icon:this.getIconProps(),iconOverride:i?void 0:this.renderAnimatedIcon(),subHeaderText:this.getSubHeaderText()})}}function j(e){const{duration:t,onHide:i}=e,a=(0,u.ZP)(),[r,l]=(0,n.useState)(!1),[h,m]=(0,n.useState)(!1),_=(0,n.useRef)(),g=()=>{l(!0),_.current=setTimeout(i,200)},v=()=>{_.current&&clearTimeout(_.current)};(0,c.Z)((()=>(setTimeout((()=>m(!0)),100),_.current=setTimeout(g,t||p.w),v)));let y=(0,s.jsx)(C,{...e,i18n:a});return e.href&&(y=(0,s.jsx)(o.rU,{href:e.href,onClick:g,rounding:"pill",tapStyle:"none",children:y})),(0,s.jsx)(d.Z,{children:(0,s.jsx)(o.mh,{children:(0,s.jsx)(o.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{...A({hiding:r,visible:h})}},justifyContent:"center",position:"fixed",width:"100%",display:"flex",zIndex:p.k,children:y})})})}},56632:(e,t,i)=>{i.d(t,{L:()=>c,q:()=>u});var n=i(223019),a=i(258430),r=i(898781),o=i(883119),s=i(785893);const l=()=>{const e=(0,r.ZP)();return e.bt("Nice save!", "Sweet save!", "Header text on toast that appears after user creates their first board", undefined, true)},d=()=>{const e=(0,r.ZP)();return e.bt("All of your boards live on your profile", "All your boards live on your profile", "Subheader text on toast that appears after user creates their first board", undefined, true)},c=e=>({duration:5e3,thumbnail:(0,s.jsx)(o.xu,{"data-test-id":"pin-save-toast",width:48,height:48,children:(0,s.jsx)(a.Z,{boardId:e})})}),u=({boardId:e,isFBC:t,viewType:i})=>({duration:5e3,thumbnail:(0,s.jsx)(o.xu,{"data-test-id":"pin-save-toast",children:(0,s.jsx)(n.Z,{boardId:e,viewType:i,type:"thumbnail"})}),text:t?[(0,s.jsx)(l,{},"0"),(0,s.jsx)(d,{},"1")]:void 0})},662089:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(702664),a=i(461355),r=i(343341),o=i(639952);function s(){const e=(0,n.useDispatch)(),{showToast:t,showOneToast:i}=(0,r.F9)();return{showToast:t,showOneToast:i,showRepinConfirmation:(i,n)=>{n||e((0,o.WF)()),setTimeout((()=>{n||e((0,o.a5)()),t(i)}),a.z)}}}},239682:(e,t,i)=>{function n(e,t,i){return{privacy_filter:t?"secret":"public",sort:i||"last_pinned_to",field_set_key:"profile_grid_item",username:e}}i.d(t,{Z:()=>n})},240265:(e,t,i)=>{i.d(t,{O:()=>s,Q:()=>l});var n=i(59644),a=i(414327),r=i(956800);const o=["alphabetical","last_pinned_to","oldest","newest","group_boards_at_top","custom"],s={name:"BoardsResource",key:"boardsResource",options:({boardOrder:e,filterStories:t,mixPublicSecret:i,username:n},a)=>({privacy_filter:"all",sort:e||"last_pinned_to",field_set_key:"profile_grid_item",filter_stories:t,username:n,page_size:25,group_by:i?"mix_public_private":"visibility",include_archived:!0,redux_normalize_feed:!0,...a?{orbac_subject_id:a}:Object.freeze({})})},l=e=>o.reduce(((t,i)=>{const o=[(0,r.N8)("profileBoards",(0,n.Z)(e,i))];return[!0,!1].forEach((t=>{[!0,!1].forEach((n=>{o.push((0,a.jB)(s.name,s.options({username:e,boardOrder:i,mixPublicSecret:t,filterStories:n})))}))})),t.concat(o)}),[])},254176:(e,t,i)=>{i.d(t,{$z:()=>O,Br:()=>h,Cr:()=>T,K8:()=>f,KQ:()=>L,L1:()=>M,OA:()=>N,Tq:()=>v,Xi:()=>E,YQ:()=>R,YV:()=>k,ZP:()=>I,aX:()=>A,eo:()=>_,fJ:()=>F,md:()=>m,oG:()=>g,oL:()=>C,of:()=>b,xH:()=>y,xQ:()=>x,xR:()=>D,xk:()=>w,yT:()=>p,zS:()=>z});var n=i(27255),a=i(239682),r=i(172071),o=i(422946),s=i(379725),l=i(240265),d=i(414327),c=i(6637),u=i(956800);function p(e){return{type:"BOARD_UPDATE_COMPLETE",payload:{board:e}}}function h(e){return{type:"BOARD_PIN_COUNT_CHANGED",payload:e}}function m(e,t){return{type:"BOARD_FOLLOW",payload:{boardId:e,value:t}}}function _({viewingUserId:e,viewingUsername:t,boardId:i,boardPinCount:n}){return{type:"BOARD_DELETE",payload:{viewingUserId:e,viewingUsername:t,boardId:i,boardPinCount:n}}}const g=(e,t)=>i=>i((0,s.U)("BoardResource",{options:{board_id:e,field_set_key:t}}));function v(e,t,i){return(0,s.U)("BoardResource",{options:{board_id:e,field_set_key:t,...i?{orbac_subject_id:i}:{}}})}function y(e,t,i){return n=>c.Z.create("BoardsMergeResource",{source_board_id:e,target_board_id:t,...i?{orbac_subject_id:i}:{}}).callUpdate().then((()=>Promise.all([n(_({boardId:e})),n(v(t,"pin_count")),n((0,u.N8)(o.DV.BOARD_SECTIONS,t))])))}function f(e){return t=>{e&&(0,l.Q)(e).forEach((e=>{t(e)}))}}const b=e=>({type:"BOARD_DISMISS_SENSITIVITY_SCREEN",payload:{boardId:e}}),x=e=>g(e,"pin_count");function P(e,t){return{type:"BOARD_ARCHIVE",payload:{boardId:e,username:t}}}function w(e,t){return i=>(i(P(e)),c.Z.create("BoardArchiveResource",{boardId:e,orbacSubjectId:t}).callUpdate())}function S(e){return{type:"BOARD_UNARCHIVE",payload:{boardId:e}}}function k(e,t){return i=>(i(S(e)),c.Z.create("BoardArchiveResource",{boardId:e,orbacSubjectId:t}).callDelete())}const T=(e,t)=>({type:"BOARD_COVER_IMAGE_UPDATED",payload:{boardId:e,coverPin:t}}),I=e=>({type:"BOARD_DISABLE_MORE_IDEAS_BADGING",payload:{boardId:e}});function A(e,t,i){const r={name:e,privacy:n.Z.BoardPrivacy.PUBLIC,username:t,...i?{orbac_subject_id:i}:Object.freeze({})};return e=>c.Z.create("BoardResource",r).callCreate().then((i=>{const n=i.resource_response.data;return e(t&&(0,d.jB)("BoardsResource",(0,a.Z)(t,!1))),n}))}function C(e={},t,i){return{type:"BOARD_CREATE_COMPLETE",payload:{options:e,board:t},error:i}}const j=(e,t,i,n)=>({type:"BOARD_COLLABORATOR_ADD",payload:{boardId:e,viewingUser:t,status:i,collaboratingUsers:n}}),E=(e,t=!1,i)=>n=>(n(((e,t,i)=>({type:"BOARD_INVITE_APPROVED_BY_VIEWER",payload:{boardId:e,isRequestToJoin:t,collaboratingUser:i}}))(e,t,i)),c.Z.create("BoardInviteResource",{board_id:e,invited_user_id:null==i?void 0:i.id}).callUpdate()),D=(e,t)=>i=>(i(((e,t)=>({type:"BOARD_INVITE_DENIED_BY_VIEWER",payload:{boardId:e,userId:t}}))(e,t)),c.Z.create("BoardInviteResource",{board_id:e,invited_user_id:t}).callDelete()),O=(e,t,i)=>n=>(n(j(e,t,"new",i)),c.Z.create("BoardInviteResource",{board_id:e,invited_user_ids:i.map((({id:e})=>e))}).callCreate()),R=(e,t,i,n,a)=>r=>{var o,s;const l="accepted"===t?"BoardCollaboratorResource":"BoardInviteResource";return r(((e,t,i)=>({type:"BOARD_COLLABORATOR_DELETE",payload:{boardId:e,userId:t,viewingUser:i}}))(e,null!==(o=null==n?void 0:n.id)&&void 0!==o?o:"",i)),c.Z.create(l,{board_id:e,field_set_key:"boardEdit",invited_user_id:null!==(s=null==n?void 0:n.id)&&void 0!==s?s:"",...a?{orbac_subject_id:a}:{}}).callDelete().catch((()=>r(j(e,i,t,[n]))))},L=(e,t)=>i=>c.Z.create("SocialSearchCampaignResource",{boardId:e}).callGet().then((n=>{if(!n||!n.resource_response)return{};const a=n.resource_response.data||{},o=(a.model||{}).custom_properties||{},{campaign_id:s="unknown"}=o,l=a.display_data||{},d=!!a.display_data,c=l.header_image_mobile,u=l.header_background_color,p=l.text_icon_color,h={boardId:e,isSocialSeasonalBoard:d,socialHeaderBgImage:c,socialHeaderBgColor:u,textIconColor:p};return r.Z.increment(`mweb.seasonal_board.${s}.${t}.land`),i((e=>({type:"SET_SOCIAL_SEASONAL_BOARD",payload:e}))(h))})),N=(e,t)=>()=>c.Z.create("BoardEmailInviteResource",{board_id:e,emails:t}).callCreate(),M=(e,t,i,n)=>a=>{const r=c.Z.create("BoardResource",{board_id:i}).callDelete();return a(_({viewingUserId:e,viewingUsername:t,boardId:i,boardPinCount:n})),r},z=(e,t)=>i=>c.Z.create("BoardArchiveResource",{boardId:e}).callUpdate().then((n=>(i((0,u.Qv)("archived-boards",[{id:e,type:"board"}])),i(P(e,t)),n))),F=(e,t)=>i=>c.Z.create("BoardArchiveResource",{boardId:e}).callDelete().then((n=>(i((0,u.Qv)(`profile-boards:${t}`,[{id:e,type:"board"}])),i(S(e)),n)))},712055:(e,t,i)=>{i.d(t,{Z:()=>o,f:()=>s});var n=i(6637),a=i(254176);function r(e){return n.Z.create("BoardFollowResource",{board_id:e})}function o(e){return t=>{r(e).callCreate().catch((()=>{t((0,a.md)(e,!1))})),t((0,a.md)(e,!0))}}function s(e){return t=>{r(e).callDelete().catch((()=>{t((0,a.md)(e,!0))})),t((0,a.md)(e,!1))}}},956800:(e,t,i)=>{function n(e){return{type:"FEED_ITEM_REORDERED",payload:e}}function a(e,t){return{type:"FEED_INVALIDATE",payload:{feedType:e,feedId:t}}}i.d(t,{EX:()=>o,N8:()=>a,Qv:()=>r,_f:()=>n,vX:()=>s});const r=(e,t,i=Object.freeze({}))=>({type:"APPEND_FEED_ITEMS",payload:{id:e,options:i,items:t}});function o(e){return{type:"FEED_ITEMS_REMOVED",payload:e}}function s(e){return{type:"FEED_ITEMS_ADDED",payload:e}}},177891:(e,t,i)=>{i.d(t,{a:()=>n,k:()=>a});const n=e=>({type:"ONE_TAP_SAVE",payload:e}),a=e=>({type:"ONE_TAP_UNSAVE",payload:e})},447948:(e,t,i)=>{function n(e,t){return{type:"CHANGE_CAROUSEL_SLOT_INDEX",payload:{id:e,index:t}}}function a(e,t){return{type:"SET_PIN_COMMENTS_DISABLED",payload:{id:e,pinCommentsDisabled:t}}}function r(e,t,i,n,a){return{type:"PIN_SAVE",payload:{id:e,boardId:t,title:i,url:n,localPinId:a}}}function o(e){return{type:"PIN_UNSAVE",payload:{id:e}}}i.d(t,{Gb:()=>o,I1:()=>c,Ib:()=>p,NA:()=>d,Ur:()=>r,Vw:()=>l,b9:()=>m,fH:()=>g,i0:()=>h,mO:()=>a,q1:()=>u,t_:()=>s,yR:()=>n,yj:()=>_});const s=(e,t,i)=>({type:"PIN_UNDO_SAVE",payload:{pinId:e,boardId:t,boardSectionId:i}});function l(e){return{type:"PIN_SHOW_SUGGESTED_CREATOR_RECS",payload:{id:e,value:!0}}}function d({id:e,text:t,undoAction:i,undoActionOptions:n,undoText:a}){return{type:"PIN_SHOW_UNDO_AND_FEEDBACK",payload:{id:e,value:!0,text:t,undoAction:i,undoActionOptions:n,undoText:a}}}function c(e){return{type:"PIN_SHOW_FEEDBACK",payload:{id:e,value:!1}}}function u(e,t){return{type:"PIN_SHOW_FEEDBACK",payload:{id:e,value:!0,text:t}}}function p(e){return{type:"PIN_SHOW_FEEDBACK_OVERLAY",payload:{id:e,value:!0}}}function h(e){return{type:"PIN_SHOW_FEEDBACK_OVERLAY",payload:{id:e,value:!1}}}function m(e){return{type:"PIN_SHOW_AD_REASONS_MODAL",payload:{id:e,value:!0}}}function _(e){return{payload:{id:e,value:!1},type:"PIN_SHOW_AD_REASONS_MODAL"}}const g=(e,t)=>({type:"PIN_FEEDBACK",payload:{id:e,value:t}})},12918:(e,t,i)=>{i.d(t,{M:()=>l,i:()=>d});var n=i(483025),a=i(414327),r=i(782677),o=i(90326),s=i(6637);const l=(e,t,i,n)=>({type:"PIN_ADD",payload:{pinId:e,boardId:t,boardSectionId:i,pinnerId:n}}),d=e=>t=>{const{method:i,guid:d,image_base64:c,image_url:u}=e;return((e,t)=>new Promise((i=>{e?(0,o.eR)(e).then((e=>{i(e)})):i(t)})))(c,u).then((o=>{const c={...e,method:"button"!==i||d?i:"button_external",image_url:o,image_base64:void 0},u="PinResource";return s.Z.create(u,c).callCreate().then((e=>{const i=(0,r.Fv)(e.resource_response.data,n.Z.PinResource);t((0,a.XM)(u,c,e,i));const o=e.resource_response.data,{board:{id:s},pinner:{id:d},section:p}=o,h=p&&p.id;return t(l(o.id,s,h,d)),e}))}))}},139574:(e,t,i)=>{i.d(t,{L:()=>s,q:()=>l});var n=i(422946),a=i(956800),r=i(254176),o=i(6637);function s(e){return t=>{const{inSelectAll:i,selectedPinIds:s,orbacSubjectId:l,source:{boardId:d,sectionId:c}}=e,u=i?"BulkEditSelectAllResource":"BulkEditResource",p={board_id:d,section_id:c,pin_ids:s,orbac_subject_id:l};return t((0,r.xQ)(d)),t((0,a.EX)({feedId:c||d,feedType:c?n.DV.BOARD_SECTION_PINS:n.DV.BOARDFEED,inverseSelection:i,itemIds:s,itemType:"pin"})),o.Z.create(u,p).callDelete()}}const l=({pinId:e,boardId:t,boardSectionId:i,clientTrackingParams:n})=>(a,r)=>{const s=o.Z.create("PinResource",{id:e,client_tracking_params:n}).callDelete(),{session:{userId:l}}=r();return a(((e,t,i,n)=>({type:"PIN_DELETE",payload:{pinId:e,boardId:t,boardSectionId:i,userId:n}}))(e,t,i,l)),s}},850431:(e,t,i)=>{i.d(t,{w:()=>r});var n=i(349741),a=i(956800);const r=({pinId:e,boardId:t,i18n:i,logContextEvent:r,onSuccess:o,onUndo:s,originalPinId:l,saveToProfileToastExpGroup:d,showRepinConfirmation:c,showToast:u,section:p,trackingParams:h,isOneTapSave:m,viewType:_,historyPush:g})=>(v,y)=>{var f,b,x,P,w;const{pins:S,session:k,feeds:T}=y(),I=S[e];t&&((null===(f=null!==(b=null==I?void 0:I.shopping_flags)&&void 0!==b?b:[])||void 0===f?void 0:f.length)>0||null!=I&&I.rich_summary&&(null===(x=null!==(P=null==I||null===(w=I.rich_summary)||void 0===w?void 0:w.products)&&void 0!==P?P:[])||void 0===x?void 0:x.length)>0)&&(T[`board-shop-saved-preview:${t}`]&&v((0,a.Qv)(`board-shop-saved-preview:${t}`,[I],{isPrepend:!0})),T[`board-shop-saved:${t}`]&&v((0,a.Qv)(`board-shop-saved:${t}`,[I],{isPrepend:!0})));return new n.Z({boardId:t,dispatch:v,i18n:i,isLegoSaveStyle:!0,isOneTapSave:m,onSuccess:o,onUndo:s,originalPinId:l,pin:I,resourceName:"RepinResource",saveToProfileToastExpGroup:d,section:p,showRepinToasts:e=>c?c(e):u?u(e):void 0,trackingParams:h,userId:k.userId,viewType:_,historyPush:g}).processRepin(r)}},639952:(e,t,i)=>{i.d(t,{Cp:()=>u,FK:()=>c,H5:()=>I,MI:()=>b,Mj:()=>k,O0:()=>y,QZ:()=>d,W:()=>w,WF:()=>_,Wz:()=>A,YV:()=>m,a5:()=>g,dz:()=>P,e0:()=>v,e2:()=>l,gH:()=>f,iW:()=>S,n1:()=>s,rm:()=>h,wb:()=>T,xu:()=>x});var n=i(172071),a=i(524309),r=i(53987),o=i(962832);const s=()=>({type:"DISMISS_UNAUTH_SAVE"}),l=()=>({type:"COMPLETE_UNAUTH_SAVE_ACTION"}),d=e=>({type:"SET_UNAUTH_SAVE_PIN_ID",payload:{unauthSavePinId:e}}),c=()=>({type:"HIDE_NAV_FOOTER"}),u=()=>({type:"SHOW_NAV_FOOTER"}),p=e=>({type:"SET_SESSION_DATA",payload:e}),h=e=>({type:"SET_LOGIN_SIGNUP_FROM",payload:{from:e}}),m=()=>e=>{e(p({preparingNewVersion:!0})),(0,o.Ng)().catch((()=>(n.Z.increment("mweb_service_worker.prepareNewVersion.error",1),(0,o.Dm)()))).finally((()=>{n.Z.increment("mweb.new_version.refresh",1),e(p({newVersionAvailable:!0,preparingNewVersion:!1}))})),(0,a.Qi)()},_=()=>({type:"SHOW_REPIN_ANIMATION"}),g=()=>({type:"HIDE_REPIN_ANIMATION"}),v=e=>({type:"SET_NUM_SIGNUP_STEPS",payload:{steps:e}}),y=()=>({type:"SET_OWN_PROFILE_PINS_REFRESH"}),f=e=>({type:"SHOW_NUX_HOMEFEED_LOADER",payload:e}),b=e=>({type:"SHOW_BIZ_NUX_HOMEFEED_LOADER",payload:e}),x=e=>({type:"SET_VIEWED_IMAGE",payload:{viewedImageSignature:e}}),P=e=>({type:"SET_VIEWED_SHARED_PINS",payload:{pins:e}}),w=()=>({type:"DISMISS_UNAUTH_APP_UPSELL"}),S=e=>e?{type:"LOGGED_OUT_USER_INFO_FOUND",payload:e}:{type:"LOGGED_OUT_USER_INFO_NOT_FOUND"},k=(e,t,i)=>n=>n(((e,t,i)=>({type:"SET_SHARE_ON_BOARD_PAGE",payload:{isShareMenuOpen:e,objectType:t,objectId:i}}))(e,t,i)),T=()=>({type:"STOP_SCROLL_TO_CLOSEUP_PIN"}),I=e=>({type:"UPDATE_USER_FIRST_HOME_FEED_REQUEST_AFTER_NUX",payload:e}),A=(e,t)=>{let i;return i=e?(0,r.bo)(e)?"today":(0,r.dr)(e)?"ideas":t&&(0,r.dZ)(e,t)?"own_section":t&&(0,r.J)(e,t)?"own_board":(0,r.OJ)(e)?"section":(0,r.am)(e)?"board":(0,r.L6)(e)?"closeup":(0,r.C$)(e)?"home":(0,r.cD)(e)?"profile":(0,r.En)(e)?"search":(0,r.$V)(e)?"topic":"":"",{type:"SET_LANDING_PAGE_TYPE",payload:i}}},90326:(e,t,i)=>{i.d(t,{Ge:()=>l,JS:()=>r,OF:()=>g,P_:()=>o,Q_:()=>u,b8:()=>p,eR:()=>_,h2:()=>d,h6:()=>c});var n=i(962832),a=i(6637);function r(e){return{type:"UPDATE_USER_PIN_COUNT",payload:e}}const o=(e,t)=>({type:"USER_FOLLOW",payload:{id:e,value:t}}),s=(e,t)=>({type:"USER_BLOCK",payload:{id:e,value:t}}),l=(e,t)=>i=>(i(s(e,!0)),a.Z.create("UserBlockResource",{blocked_user_id:e,orbac_subject_id:t}).callCreate().catch((()=>i(s(e,!1))))),d=e=>t=>(t(s(e,!1)),a.Z.create("UserBlockResource",{blocked_user_id:e}).callDelete().catch((()=>t(s(e,!0)))));function c(e){return{type:"UPDATE_USER_SCHEDULED_PIN_COUNT",payload:e}}const u=(e,t)=>()=>a.Z.create("UserStateResource",{state:e,value:t}).callCreate(),p=(e,t,i)=>(r,o)=>{a.Z.create("ApiResource",{url:"/v3/users/me/"}).callCreate().then((()=>{i({event_type:48,object_id_str:o().session.userId}),e(),(0,n.Dm)()}),t)};const h=async(e,t,i)=>{var n;const r=await a.Z.create("VIPResource",{upload_ids:[e]}).callGet();if(null!==(n=r.resource_response)&&void 0!==n&&n.data[e]){const n=r.resource_response.data[e],{status:a,signature:o}=n;if("processing"===a||"registered"===a)setTimeout((async()=>{h(e,t,i)}),5e3);else if("succeeded"===a){const e=((e,t="150x150")=>e&&`https://i.pinimg.com/${t}/${e.substring(0,2)}/${e.substring(2,4)}/${e.substring(4,6)}/${e}.jpg`||"")(o);t(e)}else i()}else i()},m=e=>new Promise(((t,i)=>{var n,r,o,s,l;n=e,r="pinimage",o=()=>{},s=e=>{t(e)},l=e=>{i(e)},(new FormData).append("img",n),a.Z.create("VIPResource",{type:r}).callCreate().then((e=>{var t;if(null!==(t=e.resource_response)&&void 0!==t&&t.data){const{upload_id:t,upload_url:i,upload_parameters:a}=e.resource_response.data,r=new XMLHttpRequest;r.open("POST",i,!0),r.onload=()=>{var e;(e=r.status)>=200&&e<400?(o(100),h(t,s,l)):l()},r.upload.onprogress=e=>{const t=Math.round(100*e.loaded/e.total);o(t)};const d=new FormData;for(const e in a)d.append(e,a[e]);d.append("file",n),r.send(d)}}),(()=>{l()}))})),_=e=>new Promise(((t,i)=>{"string"==typeof e?e.startsWith("data")&&m(function(e,t=512){const i=e.split(";"),n=i[0].split(":")[1],a=i[1].split(",")[1],r=atob(a),o=[];for(let s=0;s<r.length;s+=t){const e=r.slice(s,s+t),i=new Array(e.length);for(let t=0;t<e.length;t+=1)i[t]=e.charCodeAt(t);const n=new Uint8Array(i);o.push(n)}return new Blob(o,{type:n})}(e)).then((e=>t(e))):i("Invalid Image")})),g=e=>()=>a.Z.create("ApiResource",{url:"/v3/register/exists/",data:{email:e}}).callGet()},675752:(e,t,i)=>{i.d(t,{A:()=>n});const n=e=>{const t=e.rich_metadata;return t?t.products?144:t.article?141:t.recipe?145:139:140}},977734:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(349741),a=i(6637);function r({history:e,i18n:t,logContextEvent:i,onSuccess:r,onUndo:o,originalPinId:s,pinId:l,trackingParams:d,disableRepinAnimation:c,saveToProfileToastExpGroup:u,showRepinConfirmation:p}){return(h,m)=>{const{pins:_,session:g}=m(),{userId:v}=g,y=_[l],f={name:t.bt("Quick saves", "Quick Saves", "quickSave.boardName", undefined, true),layout:"quick_saves",protected:!1,return_existing:!0,user_id:v};return a.Z.create("BoardResource",f).callCreate().then((a=>{const l=a.resource_response.data;return new n.Z({boardId:l.id,dispatch:h,isQuickSave:!0,history:e,i18n:t,onSuccess:r,onUndo:o,originalPinId:s,pin:y,resourceName:"RepinResource",saveToProfileToastExpGroup:u,section:void 0,showRepinToasts:e=>p?p(e,c):void 0,trackingParams:d,userId:g.userId}).processRepin(i)}))}}},225313:(e,t,i)=>{i.d(t,{Z:()=>Z});var n=i(667294),a=i(702664),r=i(90771),o=i(31149),s=i(659522),l=i(214680),d=i(331744),c=i(172071),u=i(757146),p=i(785893);function h({size:e=56}){return(0,p.jsxs)("svg",{display:"block",fill:"none",height:e,viewBox:"0 0 56 56",width:e,xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("rect",{fill:"#e60023",height:"56",rx:"28",width:"56"}),(0,p.jsx)("path",{clipRule:"evenodd",d:"m28 31.9842 6 3.6666v-15.6508h-12v15.6508zm0 3.5158 5.9571 3.6404c1.3327.8145 3.0429-.1447 3.0429-1.7065v-17.4339c0-1.6569-1.3431-3-3-3h-12c-1.6569 0-3 1.3431-3 3v17.4339c0 1.5618 1.7102 2.521 3.0429 1.7065z",fill:"#fff",fillRule:"evenodd"})]})}var m=i(862960),_=i(941646),g=i(499128),v=i(464240),y=i(287072),f=i(89396),b=i(22641),x=i(467570),P=i(867820),w=i(773285),S=i(50286),k=i(167912),T=i(780280),I=i(898781),A=i(112690),C=i(52022),j=i(86802),E=i(642832),D=i(883119),O=i(957161),R=i(644035),L=i(343341);function N(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const M=56,z=String(86),F=({text:e})=>(0,p.jsx)(D.xv,{align:"center",size:"100",children:e});class U extends n.PureComponent{constructor(...e){super(...e),N(this,"state",{invitePath:"",inviteCode:null,inviteMessage:"",inviteTitle:"",Clipboard:null,fbLoaded:!1}),N(this,"setClipboard",(e=>{const{Clipboard:t,invitePath:i}=this.state;(0,E.sF)(i,t,e,this.showCopyToast)})),N(this,"showCopyToast",(()=>{var e,t,i,n;this.logShareClick(12),this.setNewAppOrder(12),null===(e=(t=this.props).onShare)||void 0===e||e.call(t),this.props.showToast((({hideToast:e})=>(0,p.jsx)(g.ZP,{text:this.props.i18n.bt("Copied link to your clipboard to share", "Copied link to your clipboard to share", "url link was copied to user clipboard", undefined, true),onHide:e}))),null===(i=(n=this.props).setShareSent)||void 0===i||i.call(n,!0),this.props.trackInteraction({action:"click",item:"copy-link-share-icon"})})),N(this,"getDefaultAppOrder",(()=>{const{country:e,isDesktop:t}=this.props;return(0,E.pW)({country:e,isDesktop:t,shouldShowNativeShare:Boolean(navigator.share)})})),N(this,"getAppOrder",(()=>{const{isDesktop:e}=this.props;let t=JSON.parse((0,O.qn)(j.B));return!t||e?this.getDefaultAppOrder():(t=[...t.filter((e=>11!==e&&12!==e)),12],Boolean(navigator.share)&&t.push(11),t)})),N(this,"setNewAppOrder",(e=>{const{isDesktop:t}=this.props;t||j.F6.has(e)||(0,O.Nh)(j.B,JSON.stringify([e,...this.getAppOrder().filter((t=>t!==e))]))})),N(this,"handleMessagingAppClick",(e=>{var t,i,n,a;null===(t=(i=this.props).onShare)||void 0===t||t.call(i),null===(n=(a=this.props).setShareSent)||void 0===n||n.call(a,!0),this.logShareClick(e),this.setFreshInviteCode(e),j.rO.has(e)||(0,O.Nh)(j.Cq,e),this.setNewAppOrder(e)})),N(this,"handleMessengerClick",(()=>{this.props.trackInteraction({action:"click",item:"fbmessenger-share-icon"}),this.handleMessagingAppClick(6)})),N(this,"handleTwitterClick",(()=>{this.props.trackInteraction({action:"click",item:"twitter-share-icon"}),this.handleMessagingAppClick(9)})),N(this,"handleWhatsappClick",(()=>{this.props.trackInteraction({action:"click",item:"whatsapp-share-icon"}),this.handleMessagingAppClick(10)})),N(this,"handleLineClick",(()=>{this.handleMessagingAppClick(8)})),N(this,"handleTelegramClick",(()=>{this.handleMessagingAppClick(20)})),N(this,"handleViberClick",(()=>{this.handleMessagingAppClick(22)})),N(this,"handleEmailClick",(()=>{this.handleMessagingAppClick(3),this.props.trackInteraction({action:"click",item:"email-share-button"})})),N(this,"handleFacebookClick",(e=>{var t,i,n,a;const{isDesktop:r}=this.props;e.preventDefault(),null===(t=(i=this.props).onShare)||void 0===t||t.call(i),null===(n=(a=this.props).setShareSent)||void 0===n||n.call(a,!0),(0,P.My)(`pcons.${r?"desktop":"mobile"}.facebook-share-icon`),this.props.trackInteraction({action:"click",item:"facebook-share-icon"});const{inviteCode:o,invitePath:s,fbLoaded:l}=this.state;(0,E.Rh)(l,s,o||"",(()=>this.logShareClick(5))),this.setFreshInviteCode(5),this.setNewAppOrder(5)})),N(this,"handleSmsClick",(()=>{this.handleMessagingAppClick(4)})),N(this,"logShareClick",((e,t=this.state.inviteCode)=>{const{objectId:i,objectType:n,component:a,clientTrackingParams:r,logContextEvent:o,viewType:s,viewParameter:l}=this.props;(0,E.Iz)({inviteChannel:e,inviteCode:t,objectId:i,objectType:n,component:a,clientTrackingParams:r,logContextEvent:o,view_type:s,view_parameter:l})})),N(this,"copyButtonRef",null),N(this,"renderAppsInCustomOrder",(({Email:e,Facebook:t,FBMessenger:i,Line:a,WhatsApp:r,Twitter:o,Viber:s,Telegram:l,CopyLink:d,Sms:c,ShareVia:u})=>{const h=this.getAppOrder(),m=new Map([[6,i],[10,r],[5,t],[9,o],[3,e],[8,a],[20,l],[22,s],[4,c],[12,d],[11,u]]);return(0,p.jsx)(n.Fragment,{children:h.map((e=>m.get(e)))})})),N(this,"onHandleRepinSave",(({event:e,dangerouslyDisableOnNavigation:t})=>{var i,n;t(),null===(i=(n=this.props).onSave)||void 0===i||i.call(n),this.props.onNavigation({event:e})}))}componentDidMount(){this.setFreshInviteCode(12),(0,x.we)(this.props.locale).then((()=>{this.setState({fbLoaded:!0})})),i.e(6527).then(i.t.bind(i,842152,23)).then((({default:e})=>{e.isSupported()&&(this.setState({Clipboard:e}),this.setClipboard(this.copyButtonRef))}))}componentDidUpdate({objectId:e}){const{objectId:t}=this.props;e!==t&&this.setFreshInviteCode(12)}async setFreshInviteCode(e){const{objectId:t,objectType:i}=this.props,{invitePath:n,inviteCode:a,title:r,message:o}=await(0,E.yP)(e,t,i,this.props.relayEnvironment),s={};n&&(s.invitePath=n),a&&(s.inviteCode=a),r&&(s.inviteTitle=r),o&&(s.inviteMessage=o),this.setState(s)}render(){const{isDesktop:e,objectType:t,onSave:i,showSaveOption:n,isAppleDevice:a}=this.props,{invitePath:g,inviteMessage:y,inviteTitle:x}=this.state,{emailShareLink:P,messengerShareLink:w,twitterShareLink:S,whatsappShareLink:k,lineShareLink:T,telegramShareLink:I,viberShareLink:A,smsShareLink:C}=(0,E.tA)({invitePath:g,inviteTitle:x,objectType:t,i18n:this.props.i18n,isDesktop:e}),j=({children:t})=>(0,p.jsx)(D.kC,{alignItems:"center",justifyContent:"start",direction:"column",width:e?`${z}px`:"100%",children:t}),O=({children:e})=>(0,p.jsx)(D.xu,{display:"flex",justifyContent:"center",paddingX:3,marginBottom:1,children:e}),R=(0,p.jsxs)(j,{children:[(0,p.jsx)(O,{children:(0,p.jsx)(_.Z,{id:"fbmessenger-share-icon",children:(0,p.jsx)(D.iP,{rounding:"circle",role:"link",rel:"nofollow",href:w,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleMessengerClick()},children:(0,p.jsx)(u.Z,{size:M})})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("Messenger", "Messenger", "shareMenu.icon.label.messenger", undefined, true)})]}),L=(0,p.jsxs)(j,{children:[(0,p.jsx)(O,{children:(0,p.jsx)(_.Z,{id:"whatsapp-share-icon",children:(0,p.jsx)(D.iP,{rounding:"circle",role:"link",rel:"nofollow",href:k,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleWhatsappClick()},children:(0,p.jsx)(b.Z,{size:M})})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("WhatsApp", "WhatsApp", "shareMenu.icon.label.whatsapp", undefined, true)})]}),N=(0,p.jsx)(D.xu,{"data-test-id":"facebook-share-icon",display:"flex",flex:"shrink",children:(0,p.jsxs)(j,{children:[(0,p.jsx)(O,{children:(0,p.jsx)(D.rU,{href:"#",onClick:({event:e})=>{this.handleFacebookClick(e)},children:(0,p.jsx)(s.Z,{size:M})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("Facebook", "Facebook", "shareMenu.icon.label.facebook", undefined, true)})]})}),U=(0,p.jsxs)(j,{children:[(0,p.jsx)(O,{children:(0,p.jsx)(_.Z,{id:"twitter-share-icon",children:(0,p.jsx)(D.iP,{rounding:"circle",role:"link",rel:"nofollow",href:S,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleTwitterClick()},children:(0,p.jsx)(v.Z,{size:M})})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("Twitter", "Twitter", "shareMenu.icon.label.twitter", undefined, true)})]}),Z=(0,p.jsxs)(j,{children:[(0,p.jsx)(O,{children:(0,p.jsx)(D.iP,{rounding:"circle",role:"link",rel:"nofollow",href:T,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleLineClick()},children:(0,p.jsx)(d.Z,{size:M})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("Line", "Line", "shareMenu.icon.label.line", undefined, true)})]}),B=(0,p.jsxs)(j,{children:[(0,p.jsx)(O,{children:(0,p.jsx)(D.iP,{rounding:"circle",role:"link",rel:"nofollow",href:A,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleViberClick()},children:(0,p.jsx)(f.Z,{size:M})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("Viber", "Viber", "shareMenu.icon.label.viber", undefined, true)})]}),V=(0,p.jsxs)(j,{children:[(0,p.jsx)(O,{children:(0,p.jsx)(D.iP,{rounding:"circle",role:"link",rel:"nofollow",href:I,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleTelegramClick()},children:(0,p.jsx)(m.Z,{size:M})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("Telegram", "Telegram", "shareMenu.icon.label.telegram", undefined, true)})]}),H=(0,p.jsxs)(j,{children:[(0,p.jsx)(O,{children:(0,p.jsx)(_.Z,{id:"email-share-button",children:(0,p.jsx)(D.iP,{rounding:"circle",role:"link",rel:"nofollow",target:"blank",href:P,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleEmailClick()},children:(0,p.jsx)(o.Z,{size:M})})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("Email", "Email", "shareMenu.icon.label.email", undefined, true)})]}),W=(0,p.jsxs)(j,{children:[(0,p.jsx)(O,{children:(0,p.jsx)(D.iP,{rounding:"circle",role:"link",rel:"nofollow",target:"blank",href:"#",onTap:({event:e,dangerouslyDisableOnNavigation:t})=>{var i,n;e.preventDefault(),null===(i=(n=this.props).onShare)||void 0===i||i.call(n),t();const a=y.indexOf("https://");navigator.share&&navigator.share({url:g,text:a>0?y.slice(0,a):y,title:x}).then((()=>{this.handleMessagingAppClick(11),c.Z.increment("allshareoptions_navigator_share.success",1)})).catch((e=>{c.Z.increment("allshareoptions_navigator_share.error",1,{name:e.name,message:e.message})}))},children:(0,p.jsx)(D.xu,{height:M,children:(0,p.jsx)(D.hU,{accessibilityLabel:this.props.i18n.bt("Native share sheet icon", "Native share sheet icon", "shareMenu.icon.accessibilityLabel.native_share_sheet", undefined, true),bgColor:"lightGray",icon:"share",iconColor:"darkGray",size:"xl"})})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("Share via", "Share via", "shareMenu.icon.label.share_via", undefined, true)})]}),K=(0,p.jsxs)(j,{children:[(0,p.jsx)(O,{children:(0,p.jsx)(D.iP,{rounding:"circle",role:"link",rel:"nofollow",href:C,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleSmsClick()},children:a?(0,p.jsx)(l.Z,{size:M}):(0,p.jsx)(r.Z,{size:M})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("Message", "Message", "shareMenu.icon.label.message", undefined, true)})]}),G=(0,p.jsxs)(j,{children:[(0,p.jsx)(O,{children:(0,p.jsx)(D.xu,{ref:this.setClipboard,dangerouslySetInlineStyle:{__style:{cursor:e?"pointer":void 0}},"data-test-id":"copy-link-share-icon",height:M,children:(0,p.jsx)(D.hU,{accessibilityLabel:this.props.i18n.bt("Link icon", "Link icon", "shareMenu.icon.accessibilityLabel.copy", undefined, true),bgColor:"lightGray",icon:"link",iconColor:"darkGray",size:"xl"})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("Copy link", "Copy link", "shareMenu.icon.label.copy", undefined, true)})]});return(0,p.jsxs)(D.xu,{children:[(0,p.jsx)(D.xu,{height:4}),(0,p.jsx)(D.kC,{alignItems:"stretch",justifyContent:"start",overflow:"hidden",children:(0,p.jsxs)(D.xu,{display:"flex",justifyContent:"start",height:e?180:void 0,width:e?370:"100vw",marginBottom:-2,paddingX:1,paddingY:2,overflow:e?void 0:"scrollX",wrap:e,children:[n&&i&&(()=>(0,p.jsxs)(j,{children:[(0,p.jsx)(O,{children:(0,p.jsx)(D.iP,{rounding:"circle",onTap:this.onHandleRepinSave,children:(0,p.jsx)(h,{size:M})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("Save", "Save", "shareMenu.icon.label.save", undefined, true)})]}))(),this.renderAppsInCustomOrder({Email:H,Facebook:N,FBMessenger:R,Line:Z,WhatsApp:L,Twitter:U,Viber:B,Telegram:V,CopyLink:G,Sms:K,ShareVia:W})]})}),(0,p.jsx)(D.xu,{height:16})]})}}function Z(e){const t=(0,I.ZP)(),i=(0,S.HG)(),{showToast:n}=(0,L.F9)(),{country:r,locale:o}=(0,T.B)(),s=(0,y.Z)({href:{pathname:`/pin/${e.objectId}/repin`,state:{viewType:e.viewType,viewParameter:e.viewParameter}}}),{checkExperiment:l}=(0,w.F)(),d=(0,a.useSelector)((({session:e})=>e.userAgentPlatform)),c=d===R.RL||d===R.s4,u=l("graphql_migration_sharesheet_sgrowth_web").anyEnabled,h=(0,k.useRelayEnvironment)(),m=(0,A.Z)(),_=(0,C.Z)();return(0,p.jsx)(U,{...e,country:r,i18n:t,isDesktop:i,locale:o,showToast:n,onNavigation:s,logContextEvent:m,isAppleDevice:c,relayEnvironment:u?h:void 0,trackInteraction:_})}},642832:(e,t,i)=>{i.d(t,{Iz:()=>g,Rh:()=>p,pW:()=>c,rL:()=>_,sF:()=>h,tA:()=>u,yP:()=>m});var n,a,r=i(6637),o=i(467570),s=i(867060),l=i(167912);const d={FBMessenger:6,WhatsApp:10,Facebook:5,Twitter:9,Email:3,Line:8,Telegram:20,Viber:22,Sms:4,CopyLink:12,ShareVia:11};function c({country:e,isDesktop:t,shouldShowNativeShare:i}){const{FBMessenger:n,WhatsApp:a,Facebook:r,Twitter:o,Email:s,Line:l,Telegram:c,Viber:u,Sms:p,CopyLink:h,ShareVia:m}=d;function _(){switch(e){case"US":return t?[a,r,o,s]:[p,n,a,r,o];case"ID":return t?[a,l,s,r]:[a,c,p,l,s,r];case"JP":case"TH":case"TW":return t?[l,o,s,r]:[l,s,p,o,r];case"GR":return t?[a,r,o,s]:[u,n,a,p,r,o];case"IR":case"IQ":return t?[a,r,o,s]:[a,c,p,n,o];case"UA":case"RU":return t?[a,r,o,s]:[a,u,c,r,n,p,o];default:return t?[a,r,o,s]:[a,n,p,r,o]}}return t?[h,..._()]:[..._(),h,...i?[m]:[]]}function u({invitePath:e,inviteTitle:t,objectType:i,i18n:n,isDesktop:a}){let r=n.bt("A Pin for you", "A Pin for you", "shareMenu.message.title", undefined, true);8===i&&(r=n.bt("Check out this article on Pinterest!", "Check out this article on Pinterest!", "shareMenu.message.title", undefined, true));const s=`mailto:?subject=${encodeURIComponent(r)}&body=${encodeURIComponent(e)}`,l=`fb-messenger://share/?link=${encodeURIComponent(e)}&app_id=${o.GH}`,d=`${t}\n${e}`,c=a?`https://twitter.com/intent/tweet?via=pinterest&url=${encodeURIComponent(d)}`:`twitter://post?message=${encodeURIComponent(d)}`,u=a?`https://web.whatsapp.com/send?text=${encodeURIComponent(d)}`:`whatsapp://send?text=${encodeURIComponent(d)}`,p=a?`https://social-plugins.line.me/lineit/share?url=${encodeURIComponent(e)}&text=${encodeURIComponent(t)}`:`https://line.me/R/msg/text/?${encodeURIComponent(d)}`,h=`viber://forward?text=${encodeURIComponent(d)}`;return{emailShareLink:s,messengerShareLink:l,twitterShareLink:c,whatsappShareLink:u,lineShareLink:p,telegramShareLink:`tg://msg?text=${encodeURIComponent(d)}`,viberShareLink:h,smsShareLink:`sms:?&body=${encodeURIComponent(d)}`}}function p(e,t,i,n){e&&window.FB&&window.FB.ui&&window.FB.ui({method:"share",mobile_iframe:!0,href:t},(e=>{e&&!e.error_message&&n&&n()}))}function h(e,t,i,n){if(!i||!t)return;const a=new t(i,{text:()=>e});a.on("success",(e=>{n&&n(e)})),a.on("error",(e=>{throw new Error("<ShareMenu /> error: copy command failed")}))}async function m(e,t,a,o){if(o)return((e,t,a,r,o)=>{const s=void 0!==n?n:n=i(865107),d={invite_category:t,invite_object:a,invite_channel:r};return(0,l.fetchQuery)(e,s,{inviteType:JSON.stringify(d),objectId:o}).toPromise().then((e=>{var t;return Promise.resolve((e=>{var t,i,n,a;return{inviteCode:null!==(t=null==e?void 0:e.inviteCode)&&void 0!==t?t:"",invitePath:null!==(i=null==e?void 0:e.inviteUrl)&&void 0!==i?i:"",title:null!==(n=null==e?void 0:e.title)&&void 0!==n?n:"",message:null!==(a=null==e?void 0:e.message)&&void 0!==a?a:""}})(null==e||null===(t=e.v3InviteUserExternalQuery)||void 0===t?void 0:t.data))}),(e=>Promise.reject(e)))})(o,3,a,e.toString(),t);{const i=r.Z.create("CreateExternalInviteResource",{invite_type:{invite_category:3,invite_object:a,invite_channel:e},object_id:t}),n=await i.callCreate(),{invite_url:o,invite_code:s,title:l,message:d}=n.resource_response.data;return{inviteCode:s,invitePath:o,title:l,message:d}}}const _=(e,t,n,r,o,s)=>{const d=void 0!==a?a:a=i(361600),c={inviteType:JSON.stringify({invite_category:t,invite_object:n,invite_channel:r}),inviteCode:o,objectId:s};(0,l.commitMutation)(e,{mutation:d,variables:{...c}})};async function g({inviteChannel:e,inviteCode:t,objectId:i,objectType:n,component:a,clientTrackingParams:o,logContextEvent:l,view_parameter:d,view_type:c}){l({aux_data:{invite_object:n},object_id_str:i,component:a,clientTrackingParams:o,element:s.c[e],event_type:102,view_type:c,view_parameter:d}),r.Z.create("SentExternalInviteCallbackResource",{invite_type:{invite_category:3,invite_object:n,invite_channel:e},invite_code:t,object_id:i,client_tracking_params:o}).callCreate()}},590674:(e,t,i)=>{i.r(t),i.d(t,{default:()=>G});var n=i(667294),a=i(225313),r=i(702664),o=i(766935),s=i(72566),l=i(936776),d=i(172071),c=i(6637),u=i(700380),p=i(784590),h=i(19121),m=i(773285),_=i(698330),g=i(878499),v=i(116303),y=i(499128),f=i(898781),b=i(927383),x=i(349700),P=i(313951),w=i(883119),S=i(276775),k=i(343341),T=i(785893);function I(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class A extends n.PureComponent{constructor(...e){var t;super(...e),t=this,I(this,"state",{viewConversation:!1,isSent:!1,path:""}),I(this,"renderViewConversationButton",(()=>{const{viewConversation:e}=this.state;return e?(0,T.jsxs)(w.kC,{alignItems:"center",direction:"row",flex:"grow",justifyContent:"center",children:[(0,T.jsx)(w.zx,{fullWidth:!0,size:"sm",text:this.props.i18n.bt("View chat", "View chat", "View current chat", undefined, true),color:"white",onClick:()=>{this.onViewConversation()}}),(0,T.jsx)(w.JO,{icon:"arrow-forward",color:"default",accessibilityLabel:this.props.i18n.bt("View chat", "View chat", "View current chat", undefined, true)})]}):(0,T.jsxs)(w.kC,{alignItems:"center",direction:"row",flex:"grow",justifyContent:"center",children:[(0,T.jsx)(w.xu,{marginEnd:2,children:(0,T.jsx)(w.JO,{icon:"check",color:"default",accessibilityLabel:this.props.i18n.bt("sent", "sent", "content is sent", undefined, true)})}),(0,T.jsx)(w.xu,{marginEnd:2,children:(0,T.jsx)(w.xv,{size:"300",color:"subtle",weight:"bold",children:this.props.i18n.bt("Sent", "Sent", "mweb.sharemenu.contactItem.isSent", undefined, true)})})]})})),I(this,"onViewConversation",(()=>{const{path:e}=this.state;d.Z.increment("mweb_sharesheet_view_conversation",1),this.props.history.push(e)})),I(this,"onInlineSend",this.props.requireAuthForLimitedLogin({fn:async function(){const e={1:"pin",2:"board",3:"user",8:"today_article"},{createConversation:i,i18n:n,isFullHeight:a,onDismiss:r,setShareSent:o,recipient:s,sendObject:l,showToast:c,email:u,updateCachedContactsAfterSend:p,userId:h}=t.props,m=e[l.objectType];t.setState({isSent:!0});try{const e=await i({user_ids:s?[s.id,h]:void 0,[m]:l.objectId,emails:u?[u]:void 0});if(e){const i=e.id;t.setState({path:`/conversation/${i}`,viewConversation:!0}),d.Z.increment("mweb_sharesheet.inline_send",1,{success:!0}),o(!0),null==p||p(),!a&&r&&(c((({hideToast:e})=>(0,T.jsx)(y.ZP,{dataTestId:"sharesheet-inline-send-toast",primaryAction:{accessibilityLabel:n.bt("View the conversation", "View the conversation", "ContactItem.ConfirmationToast.a11yButtonText", undefined, true),label:n.bt("View", "View", "ContactItem.ConfirmationToast.buttonText", undefined, true),onClick:t.onViewConversation},duration:4e3,onHide:e,text:(0,x.Wc)(n.bt("Sent to {{recipientName}}", "Sent to {{recipientName}}!", "ContactItem.ConfirmationToast.text", undefined, true),{recipientName:(null==s?void 0:s.full_name)||""}),iconThumbnail:(0,T.jsx)(v.Z,{size:"fit",src:(null==s?void 0:s.image_large_url)||"",name:(null==s?void 0:s.full_name)||""}),thumbnailShape:"circle"}))),r(i))}}catch(_){c((({hideToast:e})=>(0,T.jsx)(y.ZP,{variant:"error",text:(null==_?void 0:_.message_detail)||(null==_?void 0:_.message)||n.bt("Failed to create conversation.", "Failed to create conversation.", "ContactItem.errorToast.text", undefined, true),onHide:e}))),t.setState({isSent:!1}),d.Z.increment("mweb_sharesheet.inline_send",1,{success:!1,error:_})}}}))}render(){var e,t,i,n;const{isFullHeight:a,recipient:r,email:o}=this.props,{isSent:s}=this.state;return!a&&r?(0,T.jsxs)(w.xu,{"data-test-id":"sharesheet-send-button",display:"flex",direction:"column",paddingX:3,paddingY:4,children:[(0,T.jsx)(w.iP,{onTap:()=>this.onInlineSend(),children:(0,T.jsx)(w.xu,{height:56,marginBottom:1,width:56,children:(0,T.jsx)(v.Z,{size:"fit",src:null!==(e=r.image_large_url)&&void 0!==e?e:"",name:null!==(t=r.full_name)&&void 0!==t?t:""})})}),(0,T.jsx)(w.xu,{width:56,children:(0,T.jsx)(w.xv,{lineClamp:1,size:"100",align:"center",children:r.full_name})})]}):(0,T.jsxs)(w.xu,{"data-test-id":"sharesheet-send-button",position:"relative",direction:"row",display:"flex",width:"100%",alignItems:"center",justifyContent:"between",paddingY:2,children:[r?(0,T.jsx)(w.xu,{children:(0,T.jsx)(v.Z,{size:"md",src:null!==(i=r.image_large_url)&&void 0!==i?i:"",name:null!==(n=r.full_name)&&void 0!==n?n:""})}):o&&(0,T.jsx)(w.xu,{children:(0,T.jsx)(v.Z,{size:"md",name:o})}),(0,T.jsx)(w.xu,{paddingX:2,flex:"grow",maxWidth:"71%",children:(0,T.jsx)(w.xv,{lineClamp:1,weight:"bold",children:r?r.full_name:o&&s?o:(0,x.nk)(this.props.i18n.bt("invite {{email}}", "invite {{email}}", "mweb.newMessage.searchEmail", undefined, true),{email:o})})}),(0,T.jsx)(w.xu,{"data-test-id":"sharesheet-viewchat-link",right:!0,flex:"none",maxWidth:"100%",children:s?this.renderViewConversationButton():(0,T.jsx)(w.zx,{fullWidth:!0,size:"lg",color:"gray",text:this.props.i18n.bt("Send", "Send", "Send current content", undefined, true),onClick:()=>{this.onInlineSend()}})})]})}}function C(e){const t=(0,S.useHistory)(),i=(0,f.ZP)(),n=(0,b.Z)(),{showToast:a}=(0,k.F9)(),r=(0,P.aX)();return(0,p.Z)({name:"ConversationsResource",options:{user_ids:[e.userId]}}),(0,T.jsx)(A,{...e,createConversation:r,history:t,i18n:i,requireAuthForLimitedLogin:n,showToast:a})}var j=i(112690),E=i(379725);function D(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const O={boxShadow:"0 6px 8px -4px rgba(0, 0, 0, 0.1)",transition:"box-shadow 300ms ease-in-out"};class R extends n.PureComponent{componentDidUpdate(e){const{fetching:t}=e,{value:i}=this.state,n=t&&!this.props.fetching,a=this.getContactSuggestions();if(!i&&n){const e=a.length>0?7511:7512;this.props.logContextEvent({event_type:e,view_type:70,view_parameter:256})}}constructor(e){super(e),D(this,"state",{value:"",showScrollShadow:!1,defaultSuggestions:[],loadingDefaultSuggestions:!0}),D(this,"onSearchChange",(({value:e})=>{const{userId:t,searchContacts:i}=this.props,n={options:{user:t,term:e}};this.setState({value:e},i(n))})),D(this,"getContactSuggestions",(()=>{const{typeaheadSuggestions:e,userId:t,users:i}=this.props,{value:n,defaultSuggestions:a}=this.state;if(!n)return a.filter((e=>i[e.id]))||[];const r=`share-suggestions:${t}:${n}`,o=`share-suggestions:${t}:${n.slice(0,-1)}`;return e[r]||e[o]||[]})),D(this,"renderContactSuggestions",(()=>{const{expandContactsList:e,fetching:t,i18n:i,isFullHeight:n,onDismiss:a,sendObject:r,setShareSent:o,userId:s,users:d,updateCachedContactsAfterSend:c}=this.props,{loadingDefaultSuggestions:u,value:p}=this.state,h=this.getContactSuggestions(),m=t||u;let _;return _=!n&&m?107:"100%",m?(0,T.jsx)(w.xu,{alignItems:"center",display:"flex",justifyContent:"center",height:_,paddingY:2,children:(0,T.jsx)(w.$j,{show:!0,accessibilityLabel:i.bt("Searching for contacts", "Searching for contacts", "Placeholder text for spinner on share menu", undefined, true)})}):0===h.length&&!(0,l.Z)(p)&&p&&n?(0,T.jsx)(w.xu,{marginTop:3,children:(0,T.jsx)(w.xv,{align:"center",children:i.bt("Sorry, we can't find anyone by that name.", "Sorry, we can't find anyone by that name.", "Text to show empty state when a contact can not be found", undefined, true)})}):(0,T.jsx)(w.kC,{direction:n?"column":"row",overflow:n?void 0:"hidden",children:(0,T.jsxs)(w.xu,{display:n?void 0:"flex",height:_,overflow:n?void 0:"scrollX",marginBottom:0,marginTop:0,paddingX:n?4:1,paddingY:0,children:[0===h.length&&(0,l.Z)(p)&&(0,T.jsx)(C,{email:p,isFullHeight:n,sendObject:r,setShareSent:o,userId:s}),!n&&(0,T.jsxs)(w.xu,{alignItems:"center",display:"flex",direction:"column",paddingX:3,paddingY:4,children:[(0,T.jsx)(w.xu,{height:56,marginBottom:1,width:56,children:(0,T.jsx)(w.hU,{accessibilityLabel:i.bt("Search for users", "Search for users", "ContactsSuggestsions.SearchIcon.accessibilityLabel", undefined, true),bgColor:"lightGray",icon:"search",iconColor:"darkGray",onClick:e,size:"xl"})}),(0,T.jsx)(w.xv,{lineClamp:1,size:"100",children:i.bt("Search", "Search", "ContactsSuggestions.SearchOption.text", undefined, true)})]}),h.map((e=>{var t;return(0,T.jsx)(C,{isFullHeight:n,onDismiss:a,recipient:d[null!==(t=e.id)&&void 0!==t?t:""],sendObject:r,setShareSent:o,userId:s,updateCachedContactsAfterSend:c},e.id)}))]})})})),this.scrollerRef=(0,n.createRef)()}async componentDidMount(){const{inContactsCacheExp:e,cachedShareSuggestions:t,getFreshContactSuggestions:i,updateCachedShareSuggestions:n}=this.props;if(e)if(t)this.setState({loadingDefaultSuggestions:!1,defaultSuggestions:t});else{const e=await i()||[];n(e),this.setState({loadingDefaultSuggestions:!1,defaultSuggestions:e})}else{const e=await i()||[];this.setState({loadingDefaultSuggestions:!1,defaultSuggestions:e})}}render(){const{showScrollShadow:e}=this.state,{isFullHeight:t,expandContactsList:i}=this.props,a=(0,u.Z)((()=>{const e=this.scrollerRef.current;e&&!Number.isNaN(e.scrollTop)&&this.setState({showScrollShadow:e.scrollTop>0})}),100);return(0,T.jsx)(n.Fragment,{children:t?(0,T.jsxs)(w.xu,{color:"default",display:"flex",direction:"column",paddingX:0,height:"90%",children:[(0,T.jsx)(w.xu,{"data-test-id":"contact-suggestion-search-field",paddingY:2,color:"default",paddingX:4,dangerouslySetInlineStyle:{__style:e?O:null},children:(0,T.jsx)(s.Z,{accessibilityLabel:this.props.i18n.bt("search for contact", "search contact", "Accessibility label for searchbar on share menu", undefined, true),id:"contactsSuggestSearchField",onChange:this.onSearchChange,onFocus:i,placeholder:this.props.i18n.bt("Search by name or email address", "Search by name or email", "Placeholder text for searchbar on share menu", undefined, true),value:this.state.value,autoFocus:t})}),(0,T.jsx)(w.xu,{display:"flex",direction:"column",paddingY:1,overflow:"scrollY",onScroll:a,ref:this.scrollerRef,children:this.renderContactSuggestions()})]}):(0,T.jsx)(w.xu,{children:this.renderContactSuggestions()})})}}function L(e){const t=(0,f.ZP)(),i=(0,_.kW)(),n=(0,j.Z)(),{id:a}=(0,h.Z)(),s=(0,r.useDispatch)();(0,p.Z)({name:"ShareSuggestionsTypeaheadResource",options:{term:"",user:a}});const l=(0,r.useSelector)((({feeds:e})=>Object.keys(e).filter((e=>e.includes("share-suggestions"))).reduce(((t,i)=>({...t,[i]:e[i]})),{}))),u=(0,r.useSelector)((e=>e.resources.ShareSuggestionsTypeaheadResource)),v=Object.keys(u||{}).some((e=>u[e].fetching)),{cachedShareSuggestions:y,clearCachedShareSuggestions:b,updateCachedShareSuggestions:x}=(0,g.$)(),P=async()=>{let e;const t=c.Z.create("ShareSuggestionsResource",{suggestion_type:"share"});try{var i;e=null===(i=(await t.callGet()).resource_response)||void 0===i?void 0:i.data}catch(n){d.Z.increment("mweb_share_menu_load_suggestions.fail.share",1)}return e},{checkExperiment:w}=(0,m.F)(),S=w("mweb_cache_contacts_share").anyEnabled;return(0,T.jsx)(R,{...e,i18n:t,logContextEvent:n,users:i,searchContacts:e=>{(0,o.Z)(s((0,E.U)("ShareSuggestionsTypeaheadResource",e)),200)},fetching:v,userId:a||"",typeaheadSuggestions:l,inContactsCacheExp:S,cachedShareSuggestions:y,getFreshContactSuggestions:P,updateCachedContactsAfterSend:async()=>{if(S){b();const e=await P();e&&x(e)}},updateCachedShareSuggestions:x})}var N=i(79113),M=i(121151),z=i(667679),F=i(52022),U=i(749049),Z=i(867820),B=i(53987),V=i(50286);const H=14121,W=({heading:e,onDismiss:t})=>{const i=(0,f.ZP)();return(0,T.jsxs)(w.kC,{alignItems:"center",flex:"grow",justifyContent:"start",children:[(0,T.jsx)(w.xu,{display:"flex",alignItems:"center",padding:1,children:(0,T.jsx)(w.hU,{accessibilityLabel:i.bt("Close", "Close", "close share menu", undefined, true),icon:"cancel",onClick:t,size:"sm",iconColor:"darkGray",padding:4})}),(0,T.jsx)(w.xu,{display:"flex",flex:"grow",alignItems:"center",justifyContent:"center",marginEnd:12,children:(0,T.jsx)(w.xv,{align:"center",weight:"bold",children:(0,T.jsx)("span",{className:"deprecatedTextSizeXL",children:e})})})]})},K=({children:e,isOpen:t,onDismiss:i,childPaddingX:n=3,shouldRenderCloseIcon:a,shouldRenderFullHeight:r,heading:o})=>{const s=(0,f.ZP)(),l={mobileAccessibilityCloseIconLabel:s.bt("close send modal", "close send modal", " - ", undefined, true),accessibilityModalLabel:"",heading:o,mobileHideCloseIcon:!a,isOpen:t,onDismiss:i,type:"share_menu"};return r?(0,T.jsxs)(N.Z,{isOpen:t,accessibilityModalLabel:o,children:[(0,T.jsx)(W,{heading:o,onDismiss:i}),e]}):(0,T.jsx)(M.ZP,{...l,children:(0,T.jsx)(w.xu,{marginTop:a?0:4,paddingX:n,children:e})})},G=({isOpen:e,onDismiss:t,objectType:i,objectId:r,hideContactsSuggestions:o,clientTrackingParams:s,element:l,viewType:c,viewParameter:u,component:p})=>{const _=(0,f.ZP)(),[g,v]=(0,n.useState)(!1),[y,b]=(0,n.useState)(!1),x=g||!o,P=(0,S.useLocation)(),k=(0,V.HG)(),{isAuth:I}=(0,h.Z)(),{checkExperiment:A}=(0,m.F)(),C=(0,z.Z)(),E=(0,j.Z)(),D=(0,F.Z)(),O=e=>{A("mweb_share_menu_logging").anyEnabled&&E({clientTrackingParams:s,component:H,event_type:y||e?7493:7492,element:13097,view_type:70,view_parameter:u,aux_data:{invite_object:i}});const n=(e=>(0,B.cD)(e)?"profile_page":(0,B.am)(e)?"board_page":(0,B.uM)(e)?"pin_page":"unknown")(P),a=!k&&!I&&A("unauth_mweb_after_invite_signup_modal").anyEnabled;D({action:"click",item:"close-share-menu"}),t(),a&&y&&C({reason:"UPSELL_LOGIN_OR_SIGNUP",attributionLabel:`tap_unauth_${n}_share_menu_click_invite`}),b(!1),(0,Z.My)(`mweb_${n}_share_menu.click_invite.close`)},R=A("mweb_share_menu_logging").anyEnabled;(0,n.useEffect)((()=>{e&&(E({event_type:7120,component:H,object_id_str:r,clientTrackingParams:R?s:null,element:R?l:null,view_type:R?c:70,view_parameter:R?u:256,aux_data:R?{invite_object:i}:void 0}),E({event_type:10400,component:p,object_id_str:r,clientTrackingParams:s,element:(0,U.O)(i),view_type:c,view_parameter:u,aux_data:{invite_object:i}}))}),[e,A,R]);const N=(0,V.Wb)(),M=_.bt("Send on Pinterest", "Send on Pinterest", "Heading for share contacts search", undefined, true),W=_.bt("Share", "Share", "ShareMenu.AllShareOptions.HeaderText", undefined, true),G=g?M:(0,T.jsx)(w.xu,{marginTop:0,children:(0,T.jsx)(w.xv,{align:"center",weight:"bold",size:"300",children:x?M:W})});return(0,T.jsx)(K,{isOpen:e,onDismiss:g?()=>{v(!1),d.Z.increment("mweb_sharesheet.contacts.collapse",1)}:()=>O(),shouldRenderFullHeight:g,shouldRenderCloseIcon:!0,childPaddingX:0,heading:G,children:(0,T.jsxs)(w.xu,{marginBottom:8,marginTop:g||!x?0:-4,maxWidth:N?440:"100%",children:[x&&(0,T.jsx)(L,{sendObject:{objectId:r,objectType:i},expandContactsList:()=>{v(!0),d.Z.increment("mweb_sharesheet.contacts.expand",1)},isFullHeight:g,onDismiss:O,setShareSent:e=>b(e)}),!g&&(0,T.jsxs)(n.Fragment,{children:[x&&(0,T.jsxs)(w.xu,{marginTop:4,paddingX:4,children:[(0,T.jsx)(w.iz,{}),(0,T.jsx)(w.xu,{marginTop:8,children:(0,T.jsx)(w.xv,{align:"center",size:"300",weight:"bold",children:W})})]}),(0,T.jsx)(a.Z,{objectId:r,objectType:i,viewType:R?c:70,viewParameter:u,onDismiss:O,setShareSent:e=>b(e),clientTrackingParams:s,component:H})]})]})})}},878499:(e,t,i)=>{i.d(t,{$:()=>s,l:()=>l});var n=i(667294),a=i(425288),r=i(785893);const{Provider:o,useHook:s}=(0,a.Z)("ShareSuggestions");function l({children:e}){const[t,i]=(0,n.useState)(void 0),a=(0,n.useCallback)((()=>{i(void 0)}),[]),s=(0,n.useCallback)((e=>{i(e)}),[]),l=(0,n.useMemo)((()=>({cachedShareSuggestions:t,clearCachedShareSuggestions:a,updateCachedShareSuggestions:s})),[t,a,s]);return(0,r.jsx)(o,{value:l,children:e})}},86802:(e,t,i)=>{i.d(t,{B:()=>r,Cq:()=>a,F6:()=>u,RV:()=>n,VZ:()=>o,W_:()=>l,bm:()=>s,iS:()=>p,rO:()=>c,zn:()=>d});const n="animatedShareIconLastViewed",a="lastUsedSocialShare",r="customizedSocialAppOrder",o=44,s=9e5,l=4e3,d=5e3,c=new Set([12,3,11]),u=new Set([11,12]),p=new Map([["AU",6],["CA",6],["DK",6],["DZ",6],["GE",6],["HU",6],["LT",6],["NO",6],["NP",6],["NZ",6],["PH",6],["PL",6],["SK",6],["TN",6],["US",6],["JP",8],["TW",8],["TH",8],["IQ",20],["KH",20],["MM",20],["UZ",20],["BA",22],["BG",22],["BY",22],["CY",22],["GR",22],["MD",22],["RS",22],["UA",22]])},749049:(e,t,i)=>{i.d(t,{O:()=>n});const n=e=>{switch(e){case 2:return 331;case 3:return 12631;default:return 72}}},72566:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(667294),a=i(883119),r=i(785893);class o extends n.Component{constructor(...e){var t,i,n;super(...e),n=e=>{e&&(this.searchRef=e)},(i="setSearchRef")in(t=this)?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n}componentDidMount(){this.props.autoFocus&&this.searchRef.focus()}render(){const{accessibilityLabel:e,id:t,onBlur:i,onChange:n,onFocus:o,placeholder:s,value:l}=this.props;return(0,r.jsx)(a.Um,{accessibilityLabel:e,id:t,onBlur:i,onChange:n,onFocus:o,placeholder:s,ref:this.setSearchRef,size:"lg",value:l})}}},248299:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(166300),a=i(898781),r=i(883119),o=i(785893);function s({isPinRep:e}){const t=(0,a.ZP)(),i=e?"default":"inverse",s=(0,o.jsx)(r.xu,{padding:e?1:0,"data-test-id":"unavailable-pin",children:(0,o.jsx)(r.xu,{color:e?"secondary":"dark",top:!0,height:e?314:"100vh",position:e?"static":"absolute",rounding:e?4:0,width:"100%",children:(0,o.jsxs)(r.kC,{height:"100%",direction:"column",justifyContent:"center",alignItems:"center",children:[(0,o.jsx)(r.xu,{paddingY:4,children:(0,o.jsx)(r.JO,{accessibilityLabel:t.bt("Pin not available", "Pin not available", "story-pin.Closeup.UnavailableStoryPin.icon.accessibilityLabel", undefined, true),color:i,icon:"alert",size:20})}),(0,o.jsx)(r.xv,{align:"center",color:i,weight:"bold",children:t.bt("Unavailable", "Unavailable", "story-pin.Closeup.UnavailableStoryPin.Unavailable", undefined, true)}),(0,o.jsx)(r.xu,{paddingY:1,children:(0,o.jsx)(r.xv,{align:"center",color:i,children:t.bt("Removed by the creator", "Removed by the creator", "story-pin.Closeup.UnavailableStoryPin.Removed", undefined, true)})})]})})});return e?s:(0,o.jsx)(r.xu,{height:"100vh",children:(0,o.jsx)(n.Z,{children:s})})}},201155:(e,t,i)=>{i.d(t,{Z:()=>c});var n=i(883119),a=i(785893);function r({ideaPinImages:e}){const t={1:28,2:40,3:48},i=e.map(((e,t)=>{var i,r,o;return(0,a.jsx)(n.xu,{height:48,width:28,color:"default",borderStyle:"sm",overflow:"hidden",rounding:2,dangerouslySetInlineStyle:{__style:{borderColor:"white",marginInlineEnd:"-17px",WebkitMaskImage:"-webkit-radial-gradient(white, black)",zIndex:t}},children:(0,a.jsx)(n.Ee,{alt:"",src:null!==(i=null==e?void 0:e.url)&&void 0!==i?i:"",color:"#696969",fit:"cover",naturalHeight:null!==(r=null==e?void 0:e.height)&&void 0!==r?r:1,naturalWidth:null!==(o=null==e?void 0:e.width)&&void 0!==o?o:1})},t)}));return(0,a.jsx)(n.kC,{justifyContent:"center",children:(0,a.jsx)(n.kC,{justifyContent:"start",width:t[e.length],children:i})})}var o=i(499128),s=i(898781),l=i(784590),d=i(50286);function c({handleHide:e,text:t,userId:i,href:c,imageUrl:u}){const p=(0,s.ZP)(),h=(0,d.HG)(),m=(0,l.Z)({name:"UserStoryPinsFeedResource",options:{data:{filter_version:2,public_only:!0},field_set_key:"partner_grid_item",user_id:i}}),_=Array.isArray(t)?t.join(" "):t;if(0===(m.data||[]).length){const t=u?(0,a.jsx)(n.xu,{height:48,overflow:"hidden",width:48,children:(0,a.jsx)(n.Ee,{alt:p.bt("Image of who you followed", "Image of who you followed", "userFollowingToast.thumbnail.userImage", undefined, true),fit:"cover",naturalHeight:1,naturalWidth:1,src:u})}):void 0;return(0,a.jsx)(o.ZP,{duration:5e3,onHide:e,text:_,href:c,iconThumbnail:t,thumbnailShape:"circle"})}const g=(m.data||[]).slice(0,3).map((e=>{var t;return null===(t=e.images)||void 0===t?void 0:t[h?"236x":"170x"]})),v=(0,a.jsx)(r,{ideaPinImages:g});return(0,a.jsx)(o.ZP,{href:c,duration:5e3,onHide:e,iconThumbnail:v,text:_,thumbnailShape:"square"})}},258430:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(883119),a=i(130460),r=i(785893);function o({boardId:e}){var t;const i=(0,a.gC)()(e),o=null!=i&&i.images&&i.images["170x"]?i.images["170x"][0]:void 0;return e&&o?(0,r.jsx)(n.Ee,{alt:"Pin image",color:"#efefef",fit:"cover",naturalHeight:1,naturalWidth:1,src:null!==(t=o.url)&&void 0!==t?t:""}):null}},759929:(e,t,i)=>{i.d(t,{k:()=>o,w:()=>r});var n=i(379764),a=i(883119);const r=2e3,o=new a.H3([n.Z])},430235:(e,t,i)=>{i.d(t,{Z:()=>w});var n,a=i(667294),r=i(248975),o=i(862628),s=i(898781),l=i(759177),d=i(667679),c=i(62409),u=i(349700),p=i(867820),h=i(350118),m=i(276775),_=i(883119),g=i(167912),v=i(785893);const y=({children:e,onTap:t})=>{const[i,n]=(0,a.useState)(!1);return(0,v.jsx)(_.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:i?"rgba(0, 0, 0, 0.06)":void 0}},rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,v.jsx)(_.iP,{onTap:t,onBlur:()=>n(!1),onFocus:()=>n(!0),onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:e})})},f=void 0!==n?n:n=i(12617);function b({desktopContextMenuState:e,isMainPinImage:t,source:i,images:n,embedSrc:l,embedType:c,sourceUserUsername:h,sourceUserFullname:g,pinJoinVisualAnnotation:f,pinJoinSeoBreadcrumbName:b,pinJoinSeoBreadcrumbUrl:x,pinId:P,pinLink:w}){var S;const k=(0,s.ZP)(),T=(0,m.useHistory)(),I=(0,r.Z)({images:n,embedSrc:l,embedType:c}),A=b,C=x,j=null!==(S=null==f?void 0:f[0])&&void 0!==S?S:void 0,E=(0,o.Z)(j),D=`/search/pins/?q=${encodeURIComponent(E)}&rs=image_only_attribution`,O=(0,d.Z)(),R="dweb.plp.ellipsis.button"===i;return I?(0,v.jsxs)(_.xu,{"data-test-id":"desktop-context-menu",position:"fixed",dangerouslySetInlineStyle:{__style:{top:`${e.yPosition}px`,left:`${e.xPosition}px`}},zIndex:new _.Ry(99999),color:"default",rounding:2,borderStyle:"shadow",display:"flex",direction:"column",paddingY:3,paddingX:2,maxWidth:250,children:[(0,v.jsx)(_.xu,{rounding:2,paddingX:3,paddingY:2,role:"img",children:(0,v.jsx)(_.JO,{icon:"pinterest",accessibilityLabel:k.bt("Pinterest logo", "Pinterest logo", "dweb.unauth.context_menu.pinterest_logo", undefined, true),color:"brandPrimary"})}),(0,v.jsx)(y,{onTap:()=>{(0,p.My)("dweb.unauth.context_menu.save_image"),O({reason:"UPSELL_LOGIN_OR_SIGNUP",attributionLabel:"tap_unauth_context_menu_download_image",desktopOptions:{modalType:"signup",modalOptions:{source:"saveButtonExp",container:"save",savePinId:P}}})},children:(0,v.jsx)(_.xv,{size:"200",weight:"bold",children:k.bt("Save image", "Save image", "dweb.unauth.context_menu.link.save_image", undefined, true)})}),!(t||R&&!w)&&(0,v.jsx)(y,{onTap:()=>{(0,p.My)(R?"dweb.unauth.context_menu.open_plp_new_tab.from.ellipsis.button":"dweb.unauth.context_menu.open_plp_new_tab"),window.open(R?w:`/pin/${P}/`),R||O({reason:"UPSELL_LOGIN_OR_SIGNUP",attributionLabel:"tap_unauth_context_menu_open_plp_new_tab",desktopOptions:{modalType:"login"}})},children:(0,v.jsx)(_.xv,{size:"200",weight:"bold",children:k.bt("Open link in new tab", "Open link in new tab", "dweb.unauth.context_menu.link.plp_new_tab", undefined, true)})}),(j||!(!A||!C))&&(0,v.jsx)(y,{onTap:()=>{(0,p.My)("dweb.unauth.context_menu.see_more_pins"),C?T.push(`${C}`):T.push(D)},children:A?(0,v.jsx)(_.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,u.nk)(k.bt("See more ideas about {{levelOneInterestName}}", "See more ideas about {{levelOneInterestName}}", "dweb.unauth.context_menu.link.see_more_ideas.l1", undefined, true),{levelOneInterestName:A})}):(0,v.jsx)(_.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,u.nk)(k.bt("See more ideas about {{interestTag}}", "See more ideas about {{interestTag}}", "dweb.unauth.context_menu.link.see_more_ideas.interest_tag", undefined, true),{interestTag:j})})}),!(!g||!h)&&(0,v.jsx)(y,{onTap:()=>{(0,p.My)("dweb.unauth.context_menu.more_from_creator"),T.push(`/${h}/`)},children:(0,v.jsx)(_.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,u.nk)(k.bt("See more from {{full_name}}", "See more from {{full_name}}", "dweb.unauth.context_menu.link.more_from_creator", undefined, true),{full_name:g})})}),(0,v.jsx)(a.Fragment,{children:(0,v.jsx)(y,{onTap:()=>{(0,p.My)("dweb.unauth.context_menu.login_signup"),O({reason:"CLICK_LOGIN_OR_SIGNUP",attributionLabel:"tap_unauth_context_menu_login_signup",desktopOptions:{modalType:"login"}})},children:(0,v.jsx)(_.xv,{size:"200",weight:"bold",children:k.bt("Log in or sign up for more", "Log in or sign up for more", "dweb.unauth.context_menu.link.login_signup", undefined, true)})})})]}):null}function x({graphqlRef:e,pinId:t,useNativeCreatorAsPinner:i,...n}){var a,r,o,s,d;const c=(0,g.useFragment)(f,e),u=(0,l.Z)(c);let p;var h,m;(p=null!=c&&c.nativeCreator?c.nativeCreator:null!=c&&c.linkDomain?c.linkDomain.officialUser:(null==c?void 0:c.originPinner)||(null==c?void 0:c.pinner),p)||(p=null!==(h=null==c||null===(m=c.linkDomain)||void 0===m?void 0:m.officialUser)&&void 0!==h?h:null==c?void 0:c.pinner);return(0,v.jsx)(b,{...n,embedSrc:(null==c?void 0:c.embed)&&c.embed.src,embedType:(null==c?void 0:c.embed)&&c.embed.type,images:u,sourceUserUsername:null===(a=p)||void 0===a?void 0:a.username,sourceUserFullname:null===(r=p)||void 0===r?void 0:r.fullName,pinJoinVisualAnnotation:null==c||null===(o=c.pinJoin)||void 0===o?void 0:o.visualAnnotation,pinJoinSeoBreadcrumbName:(null==c||null===(s=c.pinJoin)||void 0===s?void 0:s.seoBreadcrumbs)&&(c.pinJoin.seoBreadcrumbs.length>0?c.pinJoin.seoBreadcrumbs[0].name:null),pinJoinSeoBreadcrumbUrl:(null==c||null===(d=c.pinJoin)||void 0===d?void 0:d.seoBreadcrumbs)&&(c.pinJoin.seoBreadcrumbs.length>0?c.pinJoin.seoBreadcrumbs[0].url:null),pinId:t})}function P({graphqlRef:e,pinId:t,useNativeCreatorAsPinner:i,...n}){var a,r,o,s,l,d;const u=(0,h.S6)()(t);let p=(0,c.wS)(u);var m,_;p||(p=null!==(m=null==u||null===(_=u.link_domain)||void 0===_?void 0:_.official_user)&&void 0!==m?m:null==u?void 0:u.pinner);const{full_name:g,username:y}=null!==(a=p)&&void 0!==a?a:{};return(0,v.jsx)(b,{...n,embedSrc:null==u||null===(r=u.embed)||void 0===r?void 0:r.src,embedType:null==u||null===(o=u.embed)||void 0===o?void 0:o.type,images:null==u?void 0:u.images,sourceUserUsername:g,sourceUserFullname:y,pinJoinVisualAnnotation:null==u||null===(s=u.pin_join)||void 0===s?void 0:s.visual_annotation,pinJoinSeoBreadcrumbName:(null==u||null===(l=u.pin_join)||void 0===l?void 0:l.seo_breadcrumbs)&&(u.pin_join.seo_breadcrumbs.length>0?u.pin_join.seo_breadcrumbs[0].name:null),pinJoinSeoBreadcrumbUrl:(null==u||null===(d=u.pin_join)||void 0===d?void 0:d.seo_breadcrumbs)&&(u.pin_join.seo_breadcrumbs.length>0?u.pin_join.seo_breadcrumbs[0].url:null),pinId:t})}function w(e){return e.graphqlRef?(0,v.jsx)(x,{...e}):(0,v.jsx)(P,{...e})}},447409:(e,t,i)=>{i.d(t,{n:()=>w,Z:()=>S});var n=i(702664),a=i(598615),r=i(821997),o=i(966476);const s=({children:e,fallback:t})=>(()=>{const e=(0,n.useSelector)((e=>{var t;return!(null==e||null===(t=e.session)||void 0===t||!t.isSeoBot)})),t=(0,o.Z)();return!e&&!t})()?t||null:e;var l=i(938917),d=i(898781),c=i(893101),u=i(112690),p=i(867820),h=i(780280);var m=i(52022),_=i(643010),g=i(948376),v=i(773285),y=i(385740),f=i(53987),b=i(883119),x=i(276775),P=i(785893);const w=56;function S(){const e=(0,d.ZP)(),t=(0,x.useLocation)(),i=(0,x.useHistory)(),{viewType:o,viewParameter:S}=(0,y.SU)(),{userAgentPlatform:k,userAgent:T}=(0,n.useSelector)((({session:e})=>e)),I=(0,g.Rp)({platform:k,userAgent:T}),A=(0,c.Z)(),C=function(){const{isBot:e}=(0,h.B)();return(t,i)=>{e||(0,p.NC)(t,i)}}(),j=(0,l.Z)(),{checkExperiment:E}=(0,v.F)(),D=(0,u.Z)(),O=(0,m.Z)(),R=e.bt("Log in", "Log in", "Label for log in button", undefined, true),L=e.bt("Sign up", "Sign up", "Text on button on the top bar that leads users to signing up.", undefined, true),N=e.bt("Download", "Download", "mweb.unauth.interstitial_upsell.download_button_text", undefined, true),M=!I&&!(0,f.Xn)(t),z=((0,f.dr)(t)||(0,f.$Y)(t)||(0,f.E0)(t))&&!E("lex_follow_button").group.includes("main_cta"),F=!j||A||z?"signup":"download",U=(M?R.length:0)+("signup"===F?L.length:0)+("download"===F?N.length:0);return(0,P.jsx)(b.xu,{dangerouslySetInlineStyle:{__style:{boxShadow:"0 1px 0 0 rgba(0, 0, 0, 0.08)",backgroundColor:(0,_.Yc)()?"#333":"white",transition:"all 225ms cubic-bezier(0.0,0.0,0.2,1) 500ms",transform:"translateY(0)"}},top:!0,left:!0,width:"100vw",position:"relative",paddingX:3,children:(0,P.jsxs)(b.xu,{alignItems:"center","data-test-id":"unauth-header",direction:"row",display:"flex",justifyContent:"between",children:[(0,P.jsx)(b.iP,{accessibilityLabel:e.bt("Pinterest app", "Pinterest App", "Pinterest icon for app upsell", undefined, true),onTap:()=>{O({action:"click",within:"unauth-header",item:"pinterest-logo"})},children:(0,P.jsxs)(b.xu,{alignItems:"center",display:"flex",direction:"row",marginEnd:3,children:[(0,P.jsx)(b.xu,{alignItems:"center",display:"flex",height:w,justifyContent:"center",rounding:2,"data-test-id":"pinterest-logo-icon",children:(0,P.jsx)(b.iP,{role:"link",tapStyle:"none",href:"/",children:I?(0,P.jsx)(r.Z,{size:24}):(0,P.jsx)(b.hU,{icon:"pinterest",iconColor:"red",padding:1,size:"xl",accessibilityLabel:e.bt("Pinterest app", "Pinterest App", "Pinterest icon for app upsell", undefined, true)})})}),(0,P.jsx)(b.xu,{paddingY:2,paddingX:1,"data-test-id":"pinterest-logo-text",children:U<18&&(0,P.jsxs)(b.xu,{children:[(0,P.jsx)(b.X6,{color:"error",size:"400",overflow:"normal",children:I?e.bt("Pinterest Lite", "Pinterest Lite", "Pinterest lite brand for the app upsell", undefined, true):e.bt("Pinterest", "Pinterest", "Pinterest brand for the app upsell", undefined, true)}),I&&(0,P.jsx)(b.xu,{dangerouslySetInlineStyle:{__style:{whiteSpace:"pre-wrap"}},children:(0,P.jsx)(b.xu,{children:(0,P.jsx)(b.xv,{inline:!0,size:"100",color:"subtle",children:e.bt("Save space on your device", "Save space on your device", "Unauth app upsell copy that describe Pinterest product core value to users", undefined, true)})})})]})})]})}),(0,P.jsx)(s,{children:(0,P.jsxs)(b.xu,{marginEnd:0,flex:"none",alignItems:"center",display:"flex",direction:"row","data-test-id":"UnauthAppUpsellButton",children:[M&&(0,P.jsx)(b.xu,{"data-test-id":"login-button",children:(0,P.jsx)(b.zx,{fullWidth:!0,color:"white",onClick:()=>{O({action:"click",within:"unauth-header",item:"login-button"}),D({component:13198,element:30,event_type:102,view_type:o,view_parameter:S}),C("press_header_login"),D({event_type:10241,element:30,component:14213,view_type:o,view_parameter:S,aux_data:{upsell_reason:"tap_unauth_header_login"}}),i.push("/login",t.state)},size:"md",text:R})}),"signup"===F?(0,P.jsx)(b.xu,{"data-test-id":"signup-button",children:(0,P.jsx)(b.zx,{fullWidth:!0,color:z?"red":"gray",onClick:()=>{O({action:"click",within:"unauth-header",item:"signup-button"}),D({component:13198,element:31,event_type:102,view_type:o,view_parameter:S}),C("press_header_signup"),D({event_type:10241,element:31,component:14215,view_type:o,view_parameter:S,aux_data:{upsell_reason:"tap_unauth_header_signup"}}),i.push("/signup",t.state)},size:"md",text:L})}):(0,P.jsx)(b.xu,{"data-test-id":"download-button",children:(0,P.jsx)(a.Z,{componentType:14161,within:"unauth-header",children:({handleOpenApp:e})=>(0,P.jsx)(b.zx,{fullWidth:!0,color:(0,f.j8)(t)||E("lex_follow_button").group.includes("main_cta")?"gray":"red",onClick:()=>e(),size:"md",text:N})})})]})})]})})}},874317:(e,t,i)=>{i.d(t,{Yw:()=>S,ZP:()=>C,nt:()=>w});var n,a=i(598615),r=i(326960),o=i(248975),s=i(63552),l=i(862628),d=i(938917),c=i(898781),u=i(759177),p=i(667679),h=i(62409),m=i(349700),_=i(867820),g=i(538232),v=i(773285),y=i(350118),f=i(276775),b=i(883119),x=i(167912),P=i(785893);const w=250,S={WebkitTouchCallout:"none",WebkitUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",KhtmlUserSelect:"none",UserSelect:"none"},k=void 0!==n?n:n=i(167074);function T({mwebContextMenuState:e,openShareModal:t,setMwebContextMenuState:i,pinId:n,images:u,embedSrc:h,embedType:y,sourceUserUsername:x,sourceUserFullname:S,pinDownloadFilename:k,pinImageSignature:T,pinJoinVisualAnnotation:I,pinJoinSeoBreadcrumbName:A,pinJoinSeoBreadcrumbUrl:C}){var j;const E=(0,c.ZP)(),D=(0,f.useHistory)(),O=(0,o.Z)({images:u,embedSrc:h,embedType:y}),{isChromeOnIOS:R}=(0,g.R)(),L=A,N=C,M=null!==(j=null==I?void 0:I[0])&&void 0!==j?j:void 0,z=(0,l.Z)(M),F=`/search/pins/?q=${encodeURIComponent(z)}&rs=image_only_attribution`,U=(0,p.Z)(),Z=(0,g.R)(),{checkExperiment:B}=(0,v.F)(),V=(0,d.Z)();return O?(0,P.jsxs)(b.xu,{"data-test-id":"mobile-context-menu",position:"absolute",dangerouslySetInlineStyle:{__style:{top:`${e.yPosition}px`,left:`${e.xPosition}px`}},zIndex:new b.Ry(99999),color:"default",rounding:2,borderStyle:"shadow",display:"flex",direction:"column",paddingY:3,paddingX:2,maxWidth:w,children:[(0,P.jsxs)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"img",direction:"row",display:"flex",alignItems:"center",justifyContent:"between",children:[(0,P.jsx)(b.JO,{icon:"pinterest",accessibilityLabel:E.bt("Pinterest logo", "Pinterest logo", "unauth.mweb.context_menu.pinterest_logo", undefined, true),color:"brandPrimary"}),(0,P.jsx)(b.xu,{alignSelf:"end","data-test-id":"mobile-context-menu-cancel-button",children:(0,P.jsx)(b.iP,{onTap:({event:e})=>{e.stopPropagation(),i(null)},children:(0,P.jsx)(b.JO,{icon:"cancel",accessibilityLabel:E.bt("Dismiss mweb context menu", "Dismiss mweb context menu", "unauth.mweb.context_menu.dismiss", undefined, true)})})})]}),"main"===e.context&&V&&B("mweb_main_pin_ltcm_open_in_app").anyEnabled&&(0,P.jsx)(a.Z,{componentType:18,within:"mweb-context-menu",children:({handleOpenApp:e})=>(0,P.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,P.jsx)(b.iP,{onTap:({event:t})=>{t.stopPropagation(),i(null),e({deepLinkUri:`/pin/${n}/`}),(0,_.My)("unauth.mweb.context_menu.open_in_app")},children:(0,P.jsx)(b.xv,{size:"200",weight:"bold",children:E.bt("Open in app", "Open in App", "unauth.mweb.context_menu.link.open_in_app", undefined, true)})})})}),["download","short_d"].includes(e.context)&&T?(0,P.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,P.jsx)(r.Z,{imgSrc:O,isChromeOnIOS:R,filename:k,pinId:n,viewType:3,imageSignature:T,children:e=>(0,P.jsx)(s.Z,{pressState:"none",onTouch:t=>{e().then((()=>{t.stopPropagation(),i(null),(0,_.My)("unauth.mweb.context_menu.download_image")}))},children:(0,P.jsx)(b.xv,{size:"200",weight:"bold",children:E.bt("Download image", "Download image", "unauth.mweb.related_pin.context_menu.link.download_image", undefined, true)})})})}):(0,P.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,P.jsx)(b.iP,{onTap:({event:e})=>{e.stopPropagation(),i(null),(0,_.My)("unauth.mweb.context_menu.save_image"),e&&Z.saveButtonConfig.onSaveButtonClick(e)},children:(0,P.jsx)(b.xv,{size:"200",weight:"bold",children:E.bt("Save image", "Save image", "unauth.mweb.context_menu.link.save_image", undefined, true)})})}),["download","save","short_s","short_d"].includes(e.context)&&(0,P.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,P.jsx)(b.iP,{onTap:({event:e})=>{e.stopPropagation(),i(null),t&&t(!0),(0,_.My)("unauth.mweb.context_menu.share_related_pin")},children:(0,P.jsx)(b.xv,{size:"200",weight:"bold",children:E.bt("Share image", "Share image", "unauth.mweb.context_menu.link.share_menu", undefined, true)})})}),(0,P.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,P.jsx)(b.iP,{onTap:({event:e})=>{e.stopPropagation(),i(null),(0,_.My)("unauth.mweb.context_menu.open_plp_new_tab"),window.open(`/pin/${n}/`)},children:(0,P.jsx)(b.xv,{size:"200",weight:"bold",children:E.bt("Open link in new tab", "Open link in new tab", "unauth.mweb.context_menu.link.plp_new_tab", undefined, true)})})}),["download","save","main"].includes(e.context)&&(M||!(!L||!N))&&(0,P.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,P.jsx)(b.iP,{onTap:()=>{(0,_.My)("unauth.mweb.context_menu.see_more_pins"),D.push(N?`${N}`:F)},children:L?(0,P.jsx)(b.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,m.nk)(E.bt("See more ideas about {{levelOneInterestName}}", "See more ideas about {{levelOneInterestName}}", "unauth.mweb.context_menu.link.see_more_ideas.l1", undefined, true),{levelOneInterestName:L})}):(0,P.jsx)(b.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,m.nk)(E.bt("See more ideas about {{interestTag}}", "See more ideas about {{interestTag}}", "unauth.mweb.context_menu.link.see_more_ideas.interest_tag", undefined, true),{interestTag:M})})})}),["download","save","main"].includes(e.context)&&!(!S||!x)&&(0,P.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,P.jsx)(b.iP,{onTap:()=>{(0,_.My)("unauth.mweb.context_menu.more_from_creator"),D.push(`/${x}/`)},children:(0,P.jsx)(b.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,m.nk)(E.bt("See more from {{full_name}}", "See more from {{full_name}}", "unauth.context_menu.link.more_from_creator", undefined, true),{full_name:S})})})}),(0,P.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,P.jsx)(b.iP,{onTap:({event:e})=>{e.stopPropagation(),i(null),(0,_.My)("unauth.mweb.context_menu.login_signup"),U({reason:"CLICK_LOGIN_OR_SIGNUP",attributionLabel:"tap_unauth_context_menu_login_signup"})},children:(0,P.jsx)(b.xv,{size:"200",weight:"bold",children:E.bt("Log in or sign up for more", "Log in or sign up for more", "unauth.mweb.context_menu.link.login_signup", undefined, true)})})})]}):null}function I({graphqlRef:e,pinId:t,...i}){var n,a,r,o,s;const l=(0,x.useFragment)(k,e),d=(0,u.Z)(l);let c;var p,h;(c=null!=l&&l.nativeCreator?l.nativeCreator:null!=l&&l.linkDomain?l.linkDomain.officialUser:(null==l?void 0:l.originPinner)||(null==l?void 0:l.pinner),c&&"string"!=typeof c)||(c=null!==(p=null==l||null===(h=l.linkDomain)||void 0===h?void 0:h.officialUser)&&void 0!==p?p:null==l?void 0:l.pinner);const m=(null==l?void 0:l.gridTitle)||(null==l?void 0:l.closeupUnifiedDescription),_=null==l?void 0:l.imageSignature;return(0,P.jsx)(T,{...i,embedSrc:(null==l?void 0:l.embed)&&l.embed.src,embedType:(null==l?void 0:l.embed)&&l.embed.type,images:d,sourceUserUsername:null===(n=c)||void 0===n?void 0:n.username,sourceUserFullname:null===(a=c)||void 0===a?void 0:a.fullName,pinDownloadFilename:m,pinImageSignature:_,pinJoinVisualAnnotation:null==l||null===(r=l.pinJoin)||void 0===r?void 0:r.visualAnnotation,pinJoinSeoBreadcrumbName:(null==l||null===(o=l.pinJoin)||void 0===o?void 0:o.seoBreadcrumbs)&&(l.pinJoin.seoBreadcrumbs.length>0?l.pinJoin.seoBreadcrumbs[0].name:null),pinJoinSeoBreadcrumbUrl:(null==l||null===(s=l.pinJoin)||void 0===s?void 0:s.seoBreadcrumbs)&&(l.pinJoin.seoBreadcrumbs.length>0?l.pinJoin.seoBreadcrumbs[0].url:null),pinId:t})}function A({graphqlRef:e,pinId:t,...i}){var n,a,r,o,s,l;const d=(0,y.S6)()(t),c=null==d?void 0:d.pinner;let u=(0,h.wS)(d);var p,m;u&&"string"!=typeof u||(u=null!==(p=null==d||null===(m=d.link_domain)||void 0===m?void 0:m.official_user)&&void 0!==p?p:c);const{full_name:_,username:g}=null!==(n=u)&&void 0!==n?n:{},v=(null==d?void 0:d.grid_title)||(null==d?void 0:d.closeup_unified_description),f=null==d?void 0:d.image_signature;return(0,P.jsx)(T,{...i,embedSrc:null==d||null===(a=d.embed)||void 0===a?void 0:a.src,embedType:null==d||null===(r=d.embed)||void 0===r?void 0:r.type,images:null==d?void 0:d.images,sourceUserUsername:_,sourceUserFullname:g,pinDownloadFilename:v,pinImageSignature:f,pinJoinVisualAnnotation:null==d||null===(o=d.pin_join)||void 0===o?void 0:o.visual_annotation,pinJoinSeoBreadcrumbName:(null==d||null===(s=d.pin_join)||void 0===s?void 0:s.seo_breadcrumbs)&&(d.pin_join.seo_breadcrumbs.length>0?d.pin_join.seo_breadcrumbs[0].name:null),pinJoinSeoBreadcrumbUrl:(null==d||null===(l=d.pin_join)||void 0===l?void 0:l.seo_breadcrumbs)&&(d.pin_join.seo_breadcrumbs.length>0?d.pin_join.seo_breadcrumbs[0].url:null),pinId:t})}function C(e){return e.graphqlRef?(0,P.jsx)(I,{...e}):(0,P.jsx)(A,{...e})}},893101:(e,t,i)=>{i.d(t,{Z:()=>m});var n=i(702664),a=i(172071),r=i(938917),o=i(436851),s=i(948376),l=i(50286),d=i(276775),c=i(780280),u=i(56390),p=i(622096),h=i(53987);const m=()=>{const{isBot:e}=(0,c.B)(),t=(0,d.useLocation)(),{userAgentPlatform:i,userAgent:m}=(0,n.useSelector)((e=>e.session)),_=(0,r.Z)(),g=(0,l.ml)();return!e&&!(g&&!_)&&!(0,s.Rp)({platform:i,userAgent:m})&&((0,h.uM)(t)||(0,h.am)(t))&&!(0,u.P)()&&!(e=>!!(0,o.d)(e)&&((0,p.qn)("ufausfiiab")||(a.Z.increment("unauth.floating_app_upsell.suppress_for_instagram_in_app_browser"),(0,p.Nh)("ufausfiiab","1")),!0))(m)}},862193:(e,t,i)=>{i.d(t,{Z:()=>s});var n,a=i(667294),r=i(167912);const o=void 0!==n?n:n=i(569772),s=e=>{var t;const i=(0,r.useFragment)(o,e),n=null==i||null===(t=i.pinJoin)||void 0===t?void 0:t.annotationsWithLinksArray;return(0,a.useMemo)((()=>null==n?void 0:n.reduce(((e,{name:t,url:i})=>t?{...e,[t]:{name:t,url:i}}:e),{})),[n])}},865673:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),a=i(512176),r=i(883119),o=i(785893);const s=function({badgeSize:e,badgeSpacing:t,fullName:i,verifiedType:s,truncate:l=!1}){const d=i.split(" "),c=d.slice(0,d.length-1).join(" "),u=" ".concat(d[d.length-1]);return l?(0,o.jsxs)(r.kC,{alignItems:"stretch",justifyContent:"start",children:[(0,o.jsx)(r.xv,{lineClamp:1,weight:"bold",children:i}),(0,o.jsx)(r.xu,{flex:"none",position:"relative",dangerouslySetInlineStyle:{__style:{top:t}},paddingX:1,children:(0,o.jsx)(a.Z,{isVerifiedMerchant:"verifiedMerchant"===s,size:e,showVerifiedIdentity:"verifiedIdentity"===s})})]}):(0,o.jsxs)(n.Fragment,{children:[(0,o.jsx)("span",{children:c}),(0,o.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[u," ",(0,o.jsx)(r.xu,{display:"inlineBlock",flex:"none",position:"relative",dangerouslySetInlineStyle:{__style:{top:t}},children:(0,o.jsx)(a.Z,{isVerifiedMerchant:"verifiedMerchant"===s,size:e,showVerifiedIdentity:"verifiedIdentity"===s})})]})]})}},926749:(e,t,i)=>{i.d(t,{ZP:()=>S});var n=i(667294),a=i(23279),r=i.n(a),o=i(722767);function s(e){const{eventData:{videoEvent:{videoDuration:t,startTime:i,endTime:n,videoStartTime:a,videoEndTime:r,isAudible:o,height:s,width:l,playbackState:d,quartile:c,quartilePercentValue:u,windowHeight:p,windowWidth:h,viewability:m}},component:_,objectId:g,view:v,viewParameter:y,...f}=e;return{component:_,object_id_str:g,view_type:v,view_parameter:y,aux_data:{...f},event_data:{videoEventData:{videoDuration:t,time:i,endTime:n,videoTime:a,endVideoTime:r,isAudible:o,height:s,width:l,playbackState:d,quartile:c,quartilePercentValue:u,windowHeight:p,windowWidth:h,viewability:m}}}}var l=i(121630),d=i(944546),c=i(407043),u=i(158103),p=i(883119),h=i(785893);function m(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const _=[0,.25,.5,.75,.95,.97],g=[0,.5,.8,.99,1],v="-64px 0px 0px 0px",y={rootMargin:v,threshold:g},f={rootMargin:v,threshold:d.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 n.Component{constructor(e){super(e),m(this,"videoWrapperRef",(0,n.createRef)()),m(this,"handleWindowResize",(()=>{if(!this.fullscreen){const e=this.getDimensions(),{height:t,width:i}=this.currentInterval;e.height!==t||e.width!==i?this.startNewInterval(e):(this.currentInterval.windowHeight=e.windowHeight,this.currentInterval.windowWidth=e.windowWidth)}})),m(this,"handlePlayheadDown",(({event:e})=>{const{onPlayheadDown:t}=this.props;this.setState({seeking:!0}),t&&t({event:e})})),m(this,"handlePlayheadUp",(({event:e})=>{const{onPlayheadUp:t}=this.props;this.setState({seeking:!1}),t&&t({event:e})})),m(this,"handleLoop",(()=>{this.videoTime=0})),m(this,"handleTimeChange",(e=>{const{seeking:t,ready:i}=this.state;if(!this.currentInterval.videoDuration)return;const n=1e3*e.time,a=function(e,t,i,n){if(e>t)return null;if(i<=0)return null;for(const a of n){const n=a*i;if(e<=n&&t>n)return a}return null}(this.videoTime,n,this.currentInterval.videoDuration,_);if("number"==typeof a&&this.props.playing&&!t&&i){const e=x();this.logVideoEvent(6906,{...this.currentInterval,startTime:e,endTime:e,videoStartTime:0,videoEndTime:0,quartile:Math.floor(4*a),quartilePercentValue:a})}this.videoTime=n,this.props.onTimeChange&&this.props.onTimeChange(e)})),m(this,"handleDurationChange",(e=>{this.currentInterval.videoDuration=1e3*e.duration,this.props.onDurationChange&&this.props.onDurationChange(e)})),m(this,"handleReady",(e=>{const{ready:t}=this.state;t||this.setState({ready:!0}),this.props.onReady&&this.props.onReady(e)})),m(this,"handleEnded",(e=>{this.logFourthQuartileEvent(),this.props.loop&&(this.startNewInterval(),this.currentInterval.videoStartTime=0),this.props.onEnded&&this.props.onEnded(e)})),m(this,"handleVisibilityChange",((e,t)=>{if(0===e.length)return;const i=e.slice(-1)[0],n=function(e,t){for(let i=0;i<t.length;i+=1){const n=t[i],a=t[i+1];if(null==a)return n;if(n<=e&&e<a)return n}return null}(Number.parseFloat(i.intersectionRatio.toFixed(2)),g);"number"==typeof n&&(this.visible=n>=.5),null==n||n===this.currentInterval.viewability||this.fullscreen||(0===n?this.startNewInterval({viewability:n,playbackState:b.PAUSED}):this.startNewInterval({viewability:n}))})),m(this,"handleFullscreenChange",(({event:e,fullscreen:t})=>{if(t){const{height:e,width:t}=window.screen;this.startNewInterval({height:e,width:t,windowHeight:e,windowWidth:t})}else t||this.startNewInterval(this.getDimensions());this.fullscreen=t,this.props.onFullscreenChange&&this.props.onFullscreenChange({event:e,fullscreen:t})})),m(this,"handleClose",(()=>{this.startNewInterval()})),m(this,"handleContextMenu",(e=>{e.preventDefault()})),this.state={ready:!1,seeking:!1};const t=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 i={};P(e)&&!P(this.props)?i.isAudible=!1:!P(e)&&P(this.props)&&(i.isAudible=!0);const n=this.getPlaybackState(this.props,this.state);this.getPlaybackState(e,t)!==n&&(i.playbackState=n),Object.keys(i).length>0&&this.startNewInterval(i)}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 i=this.videoWrapperRef.current;i.clientHeight&&i.clientWidth&&(e=i.clientHeight,t=i.clientWidth)}return{height:e,width:t,windowHeight:window.innerHeight,windowWidth:window.innerWidth}}logVideoEvent(e,t){const{closeupStoryPinViewability:i,contextLogData:n,logContextEvent:a}=this.props,{height:r,width:o,windowHeight:l,windowWidth:d,viewability:c,...u}=t;if(null!=r&&null!=o&&null!=l&&null!=d&&null!=c){const t={...u,height:r,width:o,windowHeight:l,windowWidth:d,viewability:i||c};a({event_type:e,...s({...n,view:this.fullscreen?108:n.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:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:s,aspectRatio:d,backgroundColor:c,captions:m,contextLogData:_,controls:g,cropHeight:v,hlsConfig:b,inAdsDesktopVideoExperiment:x,isAutoPlay:P,loop:w,objectFit:S,onLoadedChange:k,onControlsPause:T,onControlsPlay:I,onSeek:A,onVolumeChange:C,playbackRate:j,playing:E,playsInline:D,poster:O,preload:R,rootMargin:L,src:N,surface:M,videoStartTime:z,volume:F}=this.props,{seeking:U}=this.state,Z=x?f:y;return void 0!==L&&(Z.rootMargin=M?(0,l.e)(M):L),(0,h.jsx)(o.Z,{options:Z,onVisibilityChange:this.handleVisibilityChange,children:(0,h.jsx)(p.xu,{ref:this.videoWrapperRef,onContextMenu:this.handleContextMenu,dangerouslySetInlineStyle:{__style:v?{display:"flex",alignItems:"center",height:`${v}px`}:{}},children:(0,h.jsx)(u.default,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:s,aspectRatio:v?236/v:d,backgroundColor:c,captions:m,contextLogData:_,controls:g,hlsConfig:b,isAutoPlay:P,loop:w,objectFit:S,onDurationChange:this.handleDurationChange,onEnded:this.handleEnded,onFullscreenChange:this.handleFullscreenChange,onLoadedChange:k,onLoop:this.handleLoop,onControlsPause:T,onControlsPlay:I,onPlayheadDown:this.handlePlayheadDown,onPlayheadUp:this.handlePlayheadUp,onReady:this.handleReady,onSeek:A,onTimeChange:this.handleTimeChange,onVolumeChange:C,playbackRate:j,playing:!U&&E,onPlay:()=>{},onPlayError:()=>{},playsInline:D,poster:O,preload:R,src:N,videoStartTime:z,visible:this.visible,volume:F})})})}}function S(e){const{logContextEvent:t}=(0,c.v)();return(0,h.jsx)(w,{...e,logContextEvent:t})}m(w,"defaultProps",p.nk.defaultProps)},158103:(e,t,i)=>{i.r(t),i.d(t,{VideoWrapper:()=>P,default:()=>w,getPlaylistSourceSrc:()=>x});var n=i(667294),a=i(19121),r=i(965900),o=i(407043),s=i(773285),l=i(226347),d=i(780280),c=i(883119),u=i(969315),p=i(179888),h=i(785893);function m(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _(e,t){if(!e||void 0===e)return"undefined";if("string"==typeof e){let i=e;if(t){const n="control"===t?"v3.pinimg.com":"v2.pinimg.com";i=e.replace("v.pinimg.com",n)}return i}if(Array.isArray(e)&&e[0].src){let i=e[0].src;if(t){const e="control"===t?"v3.pinimg.com":"v2.pinimg.com";i=i.replace("v.pinimg.com",e)}return i}return"unsupported_type_"+typeof e}class g extends n.Component{constructor(...e){super(...e),m(this,"state",{canPlayVideo:!1,playbackState:p.Cy.DEFAULT}),m(this,"errorRetryCount",2),m(this,"hasSegmentStarted",!1),m(this,"hasPlaybackStarted",!1),m(this,"hasVideoSessionStarted",!1),m(this,"hasVideoSessionEnded",!1),m(this,"lastStallTime",null),m(this,"lastPauseTime",null),m(this,"logSessionStartOnNextPlay",!1),m(this,"playerId",""),m(this,"videoSessionId",""),m(this,"videoVisibleTime",null),m(this,"playbackPerformance",{canPlayTime:null,detailedErrors:"",errorCode:0,errorName:"",errorReason:"",hasFatalError:!1,loadStartTime:null,numberOfStalls:0,numberOfSeeks:0,playbackStartTimestamp:null,segments:[],srcString:_(this.props.src,this.props.quicExpGroup),totalStallDurationMs:0,totalPauseDurationMs:0}),m(this,"componentDidMount",(()=>{const{contextLogData:e={},playing:t}=this.props,{is_closeup_video:i=!1}=e;(0,u.tE)("videoMounted",!1,i),t&&(this.videoVisibleTime=new Date,this.logPlaybackPerformance(p.DR,{initiator:"mount"}))})),m(this,"componentDidUpdate",(e=>{const{playing:t,visible:i,appInFocus:n}=this.props;e.appInFocus&&!n&&(this.logPlaybackPerformance(p.$f,{initiator:"update"}),this.logSessionStartOnNextPlay=!0),e.visible&&!1===i&&(this.logSessionStartOnNextPlay=!1,this.updatePauseDuration(),this.logPlaybackPerformance(p.$f,{initiator:"update"})),!1===e.visible&&!0===i&&(this.videoVisibleTime=this.videoVisibleTime||new Date,t?(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(p.DR,{initiator:"update"})):this.logSessionStartOnNextPlay=!0),t&&n&&this.logSessionStartOnNextPlay&&(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(p.DR,{initiator:"update"}),this.logSessionStartOnNextPlay=!1)})),m(this,"addSegment",(()=>{const{canPlayTime:e,loadStartTime:t,segments:i,srcString:n}=this.playbackPerformance;let a=-1;e&&t&&0===i.length&&(a=e>t?e-t:0);const r=this.videoPlayerRef&&this.videoPlayerRef.video,o={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:a,switchBitrateKbps:-1,uri:n,viewportWidth:r&&r.clientWidth||-1,viewportHeight:r&&r.clientHeight||-1,watchedDurationMs:0};i.push(o)})),m(this,"getCurrentVideoTime",(()=>this.videoPlayerRef&&this.videoPlayerRef.video?this.videoPlayerRef.video.currentTime*p.gJ:0)),m(this,"getVideoResourceTiming",(()=>{var e,t;if(null!==(e=window)&&void 0!==e&&null!==(t=e.performance)&&void 0!==t&&t.getEntriesByName&&this.playbackPerformance.srcString){const e=window.performance.getEntriesByName(this.playbackPerformance.srcString);return e.length>0&&e[0]||null}return null})),m(this,"handleCanPlayVideo",(e=>{const{contextLogData:t={},onReady:i,playing:n}=this.props,{is_closeup_video:a=!1}=t,{canPlayVideo:r}=this.state;(0,u.tE)("handleCanPlayVideo",!1,a,{firstCanPlayEvent:!r,playing:n}),this.playbackPerformance.hasFatalError=!1,r||(this.playbackPerformance.canPlayTime=new Date),this.setState({canPlayVideo:!0}),i&&i(e)})),m(this,"handleEnded",(e=>{const{loop:t,onEnded:i}=this.props,{segments:n}=this.playbackPerformance,a=n&&n[n.length-1];t&&this.videoPlayerRef&&this.videoPlayerRef.video?(this.updateWatchDurationForCurrentSegment(),a&&(a.lastStartPlayTime=0),this.hasSegmentStarted=!1):t||this.logPlaybackPerformance(p.$f,{initiator:"videoEnded",loop:t}),this.setState({playbackState:p.Cy.ENDED}),i&&i(e)})),m(this,"handleError",(()=>{var e,t,i,n,a,r,o,s;const{contextLogData:l={}}=this.props,{is_closeup_video:d=!1}=l,c=this.videoPlayerRef&&this.videoPlayerRef.video;(null==c||null===(e=c.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==c||null===(t=c.error)||void 0===t?void 0:t.message)||""}`,this.playbackPerformance.errorCode=(null==c||null===(i=c.error)||void 0===i?void 0:i.code)||0,this.playbackPerformance.errorName=(null==c||null===(n=c.error)||void 0===n||null===(a=n.message)||void 0===a?void 0:a.slice(0,100))||"unknown",this.playbackPerformance.errorReason=(null==c||null===(r=c.error)||void 0===r||null===(o=r.message)||void 0===o?void 0:o.slice(0,100))||"unknown";const h={errorName:this.playbackPerformance.errorCode,errorReason:this.playbackPerformance.errorName,errorRetryCount:this.errorRetryCount,playbackState:this.state.playbackState,networkState:(null==c?void 0:c.networkState)||"unknown"};switch((0,u.tE)("fatalError",!1,d,h),null==c||null===(s=c.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==c||c.load(),this.errorRetryCount-=1)}this.updateWatchDurationForCurrentSegment(),this.setState({playbackState:p.Cy.FAILED})})),m(this,"handleLoadedMetadata",(()=>{this.setState({playbackState:p.Cy.LOADED_METADATA})})),m(this,"handleLoadStart",(()=>{this.playbackPerformance.loadStartTime=new Date,this.setState({playbackState:p.Cy.LOAD_START})})),m(this,"handleLoadedData",(()=>{this.setState({playbackState:p.Cy.LOADED_DATA})})),m(this,"handlePlaying",(()=>{this.playbackPerformance.hasFatalError=!1,this.setPlaybackStartTime(),this.hasSegmentStarted||this.addSegment(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.updateStallDuration(),this.updatePauseDuration(),this.setState({playbackState:p.Cy.PLAYING}),this.props.setSeekTime&&this.props.setSeekTime(void 0)})),m(this,"handleUserPause",(e=>{const{onControlsPause:t}=this.props;this.lastPauseTime=new Date,t&&t(e)})),m(this,"handleVideoPause",(()=>{this.state.playbackState!==p.Cy.STALLING&&this.state.playbackState!==p.Cy.SEEKING&&(this.updateWatchDurationForCurrentSegment(),this.lastPauseTime||this.updateStallDuration()),this.setState({playbackState:p.Cy.PAUSED})})),m(this,"handleSeeking",(()=>{this.playbackPerformance.numberOfSeeks+=1;const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&(t.lastStartPlayTime=null),this.state.playbackState!==p.Cy.ENDED&&this.setState({playbackState:p.Cy.SEEKING})})),m(this,"handleStalled",(()=>{null===this.lastStallTime&&this.state.playbackState!==p.Cy.ENDED&&(this.lastStallTime=new Date,this.playbackPerformance.numberOfStalls+=1,this.setState({playbackState:p.Cy.STALLING}))})),m(this,"handleTimeUpdate",(e=>{const{onTimeChange:t}=this.props;t&&t(e),this.state.playbackState===p.Cy.PLAYING&&(this.updateWatchDurationForCurrentSegment(),this.setLastSegmentStartPlayTime())})),m(this,"resetPlaybackMetrics",(()=>{this.hasSegmentStarted=!0,this.hasPlaybackStarted=!1,this.hasVideoSessionStarted=!1,this.hasVideoSessionEnded=!0,this.lastStallTime=null,this.lastPauseTime=null,this.videoSessionId="",this.videoVisibleTime=null,this.logSessionStartOnNextPlay=!1;const e={...this.playbackPerformance.segments[this.playbackPerformance.segments.length-1],lastStartPlayTime:null,playbackStartDate:null,watchedDurationMs:0};this.playbackPerformance.detailedErrors="",this.playbackPerformance.errorCode=0,this.playbackPerformance.errorName="",this.playbackPerformance.errorReason="",this.playbackPerformance.hasFatalError=!1,this.playbackPerformance.numberOfStalls=0,this.playbackPerformance.numberOfSeeks=0,this.playbackPerformance.playbackStartTimestamp=null,this.playbackPerformance.totalStallDurationMs=0,this.playbackPerformance.segments=[e]})),m(this,"setLastSegmentStartPlayTime",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.lastStartPlayTime&&(t.lastStartPlayTime=this.getCurrentVideoTime())})),m(this,"setLastSegmentPlaybackStartDate",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.playbackStartDate&&(t.playbackStartDate=Date.now())})),m(this,"setPlaybackStartTime",(()=>{this.hasPlaybackStarted||(this.playbackPerformance.playbackStartTimestamp=Date.now(),this.hasPlaybackStarted=!0)})),m(this,"setVideoPlayerRef",(e=>{const{setVideoRef:t}=this.props;if(e&&(t&&t(e),this.videoPlayerRef=e,this.videoPlayerRef.video)){const e=this.videoPlayerRef.video;e.addEventListener("loadedmetadata",this.handleLoadedMetadata),e.addEventListener("loadeddata",this.handleLoadedData),e.addEventListener("pause",this.handleVideoPause),e.readyState>=3&&(this.setState({canPlayVideo:!0}),this.playbackPerformance.canPlayTime=new Date)}})),m(this,"updateStallDuration",(()=>{if(null!==this.lastStallTime){const e=this.lastStallTime;this.playbackPerformance.totalStallDurationMs+=new Date-e,this.lastStallTime=null}})),m(this,"updatePauseDuration",(()=>{if(null!==this.lastPauseTime){const e=this.lastPauseTime;this.playbackPerformance.totalPauseDurationMs+=new Date-e,this.lastPauseTime=null}})),m(this,"updateWatchDurationForCurrentSegment",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1],i=t?t.lastStartPlayTime:null,n=this.getCurrentVideoTime();if(t&&null!==i&&"number"==typeof n&&"number"==typeof i){const e=n-i;e>0&&(t.watchedDurationMs+=e,t.lastStartPlayTime=null)}})),m(this,"logPlaybackPerformance",((e,t)=>{const{contextLogData:i={},userId:n,isAutoPlay:a,logContextEvent:r}=this.props,{is_closeup_video:o=!1}=i,{canPlayTime:s,detailedErrors:l,errorCode:d,errorName:c,errorReason:h,hasFatalError:m,loadStartTime:_,totalPauseDurationMs:g,totalStallDurationMs:v,numberOfStalls:y,numberOfSeeks:f,playbackStartTimestamp:b,segments:x,srcString:P}=this.playbackPerformance,w=this.videoPlayerRef&&this.videoPlayerRef.video,S=e===p.DR,k=S&&!this.hasVideoSessionStarted,T=!S&&!this.hasVideoSessionEnded&&this.hasVideoSessionStarted;if(w&&(k||T)){var I;let k=-1;s&&_&&(k=s>_?s-_:0);let T=-1;s&&this.videoVisibleTime&&(T=s>this.videoVisibleTime?s-this.videoVisibleTime:0),S&&(this.videoSessionId=(0,p.Y7)(n),this.playerId=this.playerId||(0,p.EB)());const A=this.getVideoResourceTiming(),C={averageVideoKbps:-1,autoplaying:a,detailedErrors:l,downloadedKiloBytes:"number"==typeof(null==A?void 0:A.decodedBodySize)&&A.decodedBodySize/p.Fm||0,errorCode:d,errorName:c,errorReason:h,fatalError:m,isCellular:!1,nativeVideoDurationMs:w.duration*p.gJ||-1,numberOfStalls:y,numberOfSeeks:f,overallPausedDurationMs:g,overallBufferDurationMs:v,overallWatchedDurationMs:-1,rebufferRate:-1,playbackSessionId:this.videoSessionId,playbackStartTimestamp:b||-1,segments:[],sessionMark:e,screenPixelScale:null!==(I=window)&&void 0!==I&&I.devicePixelRatio?window.devicePixelRatio:-1,startupPlayerWidth:w.clientWidth,startupPlayerHeight:w.clientHeight,startupTimeMs:k,startupLatencyMs:T,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=v/e}(0,u.ZP)(C,!1,o,{playbackState:this.state.playbackState,...t});const{view:j,viewParameter:E,component:D,element:O,objectId:R,...L}=i;r({event_type:3606,event_data:{videoPerformanceData:C},view_type:j,view_parameter:E,component:D,element:O,object_id_str:R,aux_data:{...L,is_closeup_video:o,playback_session_id:this.videoSessionId}}),S?(this.hasVideoSessionStarted=!0,this.hasVideoSessionEnded=!1):this.resetPlaybackMetrics(),(0,u.tE)(S?"sessionStart":"sessionEnd",!1,o,{playbackState:this.state.playbackState,...t})}}))}componentWillUnmount(){const{loop:e}=this.props;this.updatePauseDuration(),this.logPlaybackPerformance(p.$f,{initiator:"unmount",loop:e})}render(){const{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:o,aspectRatio:s,captions:l,controls:d,loop:u,loopOverride:p,objectFit:m,onDurationChange:g,onFullscreenChange:v,onLoadedChange:y,onControlsPlay:f,onPlayheadDown:b,onPlayheadUp:x,onSeek:P,onVolumeChange:w,playbackRate:S,playing:k,playsInline:T,poster:I,preload:A,src:C,videoStartTime:j,volume:E}=this.props,{canPlayVideo:D}=this.state;return(0,h.jsx)(c.nk,{autoplay:D&&k,accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:o,aspectRatio:s,captions:l,controls:d,loop:void 0===p?u:p,objectFit:m,onDurationChange:g,onEnded:this.handleEnded,onError:this.handleError,onFullscreenChange:v,onLoadedChange:y,onLoadStart:this.handleLoadStart,onControlsPause:this.handleUserPause,onControlsPlay:f,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&&k,playsInline:T,poster:I,preload:A,ref:this.setVideoPlayerRef,src:_(C,this.props.quicExpGroup),startTime:j||void 0,volume:E})}}const v=(0,n.memo)((function(e){const{logContextEvent:t}=(0,o.v)(),{country:i,isAuthenticated:n,isBot:c,isSocialBot:p,unauthId:m,userAgent:_}=(0,d.B)(),{browserName:v,browserVersion:y,isMobile:f}=_,{contextLogData:b={}}=e,{is_closeup_video:x=!1,view:P,viewParameter:w}=b,{appUI:{appInFocus:S}}=(0,r.I)(),{checkExperiment:k}=(0,s.F)(),{updateSeekTime:T}=(0,l.RC)();let I=null;n&&(I=k("web_video_quic").group.length?k("web_video_quic").group:null);const A=(0,a.Z)(),C={browserName:v,browserVersion:y,country:i,isAuthenticated:n,isBot:c,is_closeup_video:x,isMobile:f,isSocialBot:p,view:P,viewParameter:w};return(0,u.r$)(C),(0,h.jsx)(g,{...e,userId:A.id||m,appInFocus:S,quicExpGroup:I,logContextEvent:t,setSeekTime:T})}));var y=i(562559),f=i(366284);function b(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,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 n.PureComponent{constructor(e){super(e),b(this,"componentDidUpdate",((e,t)=>{var i;e.videoStartTime&&this.props.videoStartTime&&e.videoStartTime<this.props.videoStartTime&&null!==(i=this.videoPlayerRef)&&void 0!==i&&i.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:i,onEnded:n}=this.props;n&&(n({event:e}),this.videoPlayerRef&&this.videoPlayerRef.video&&t&&(this.videoPlayerRef.video.play(),i&&i()))}));const t=x(e.src);this.state={useHlsVideo:!e.preferMp4&&!(0,f.G6)(e.requestContext.userAgent.browserName)&&!!t}}render(){const{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:o,aspectRatio:s,appInFocus:l,backgroundColor:d,captions:c,contextLogData:u,controls:p,hlsConfig:m,isAutoPlay:_,loop:g,objectFit:f,onDurationChange:b,onEnded:P,onFullscreenChange:w,onLoadedChange:S,onControlsPause:k,onControlsPlay:T,onPlayheadDown:I,onPlayheadUp:A,onReady:C,onSeek:j,onTimeChange:E,onVolumeChange:D,playbackRate:O,playing:R,playsInline:L,poster:N,preferMp4:M,preload:z,src:F,videoStartTime:U,visible:Z,volume:B}=this.props,{useHlsVideo:V}=this.state,H=x(F),W={...m,startPosition:U||-1},K=!P&&g;return V&&H?(0,h.jsx)(y.Z,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:o,aspectRatio:s,appInFocus:l,backgroundColor:d,captions:c,contextLogData:u,controls:p,hlsConfig:W,isAutoPlay:_,loop:g,loopOverride:K,onDurationChange:b,onEnded:this.handleOnEnded,onFullscreenChange:w,onLoadedChange:S,onControlsPause:k,onControlsPlay:T,onPlayheadDown:I,onPlayheadUp:A,onReady:C,onSeek:j,onTimeChange:E,onVolumeChange:D,playbackRate:O,onPlay:()=>{},onPlayError:()=>{},playing:R,playsInline:L,poster:N,preload:z,setVideoRef:this.setVideoPlayerRef,src:H,visible:Z,volume:B}):(0,h.jsx)(v,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:o,aspectRatio:s,captions:c,contextLogData:u,controls:p,isAutoPlay:_,loop:g,loopOverride:K,objectFit:f,onDurationChange:b,onEnded:this.handleOnEnded,onFullscreenChange:w,onLoadedChange:S,onControlsPause:k,onControlsPlay:T,onPlayheadDown:I,onPlayheadUp:A,onReady:C,onSeek:j,onTimeChange:E,onVolumeChange:D,playbackRate:O,onPlay:()=>{},onPlayError:()=>{},playing:R,playsInline:L,poster:N,preload:z,setVideoRef:this.setVideoPlayerRef,src:M?F:H||F,videoStartTime:U,visible:Z,volume:B})}}function w(e){const{appUI:{appInFocus:t}}=(0,r.I)(),i=(0,d.B)();return(0,h.jsx)(P,{...e,appInFocus:t,requestContext:i})}},944546:(e,t,i)=>{i.d(t,{HJ:()=>a,VS:()=>n,iM:()=>r});const n=2,a="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]},464228:(e,t,i)=>{i.d(t,{P:()=>r,Z:()=>o});var n=i(667294);const a=(0,n.createContext)();function r(){return(0,n.useContext)(a)}const o=a},373897:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n},e.exports.__esModule=!0,e.exports.default=e.exports},163405:(e,t,i)=>{var n=i(373897);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},474704:(e,t,i)=>{var n=i(386116);e.exports=function(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=n(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},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 o,s=!0,l=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==i.return||i.return()}finally{if(l)throw o}}}},e.exports.__esModule=!0,e.exports.default=e.exports},238416:e=>{e.exports=function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,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,i)=>{var n=i(238416);function a(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}e.exports=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?a(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},600861:(e,t,i)=>{var n=i(163405),a=i(379498),r=i(386116),o=i(742281);e.exports=function(e){return n(e)||a(e)||r(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},386116:(e,t,i)=>{var n=i(373897);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}}]);
//# sourceMappingURL=https://sm.pinimg.com/webapp/DefaultPinRep.en_AU-5caf9928a56809e1.mjs.map