(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[73308,51798,13047,28543,7701,6073,50157,90907,4394,39395,93810,48637,72551,83634,24661,90984,73744,75970,75721,77221,47371,35303,50040,83662,15071,88162,42447,32938,98054,18241,17211,55646,82492,88562,53857,34954,73005,89734,59221,87806,44722,50192,58209,55582,91290,39910,75525],{82364:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"AggregatedCloseupSavedToBoardInfo_pin",selections:[{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:"imageMediumUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isAdsOnlyProfile",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"adsOnlyProfileSite",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null,hash:"1c0dd9839405d82cabfd205ccf6b71f5"};e.exports=t},582663:e=>{var t,i,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CyclingInterestRepFragment_interest",selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"backgroundColor",storageKey:null},{alias:null,args:t=[{kind:"Literal",name:"spec",value:"400x"}],concreteType:"Thumbnails",kind:"LinkedField",name:"cyclingImages",plural:!0,selections:i=[{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:'cyclingImages(spec:"400x")'},{alias:null,args:t,concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:i,storageKey:'images(spec:"400x")'}],type:"Interest",abstractKey:null};n.hash="222069ef21932a5a820528ebe3d8ee6b",e.exports=n},348161:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"InterestRepFragment_interest",selections:[{alias:null,args:null,kind:"ScalarField",name:"backgroundColor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:[{kind:"Literal",name:"spec",value:"400x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:[{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:"400x")'},{args:null,kind:"FragmentSpread",name:"CyclingInterestRepFragment_interest"}],type:"Interest",abstractKey:null,hash:"5bac0bc8d6be0173acb361670e952a71"};e.exports=t},188809:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OfficialUserAttributionText_pin",selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"closeupAttribution",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isVerifiedMerchant",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},{alias:null,args:null,concreteType:"VerifiedIdentity",kind:"LinkedField",name:"verifiedIdentity",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"verified",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isAdsOnlyProfile",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"adsOnlyProfileSite",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null,hash:"17ee7538a8ba5a468f69f85d06121f1d"};e.exports=t},582753:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OfficialUserAttribution_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"closeupAttribution",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"followerCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"followedByMe",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isAdsOnlyProfile",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"adsOnlyProfileSite",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"OfficialUserAttributionText_pin"}],type:"Pin",abstractKey:null,hash:"a9ae8d2f405ccc3f5679c216f90313c8"};e.exports=t},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},375882:e=>{var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProductPrice_pin",selections:[{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:t=[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,concreteType:"OfferSummary",kind:"LinkedField",name:"offerSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"price",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"maxPrice",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"minPrice",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"standardPrice",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:t,storageKey:null}],type:"Pin",abstractKey:null};i.hash="2d8f315013487d39e45789c61794f121",e.exports=i},651682:e=>{var t,i,n,o,a,r={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"pinId"}],kind:"Fragment",metadata:null,name:"RepinBoardPickerQuery",selections:[{alias:null,args:i=[{kind:"Variable",name:"pin",variableName:"pinId"}],concreteType:null,kind:"LinkedField",name:"v3GetPinQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"data",plural:!1,selections:[o={alias:null,args:null,concreteType:"BoardTitleSuggestions",kind:"LinkedField",name:"boardTitleSuggestions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null}],storageKey:null}],type:"V3GetPin",abstractKey:null},a={kind:"InlineFragment",selections:[{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:"Error",abstractKey:"__isError"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"RepinBoardPickerQuery",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3GetPinQuery",plural:!1,selections:[n,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"data",plural:!1,selections:[o,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],type:"V3GetPin",abstractKey:null},a],storageKey:null}]},params:{id:"912911faa6d93292fbdd97db8c82e6d46db1e11fe517ace49dd4ea04bbbbfa76",metadata:{},name:"RepinBoardPickerQuery",operationKind:"query",text:null}};r.hash="2deee1270776771025d6d29bf4e91acf",e.exports=r},396190:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"SavedToText_pin",selections:[{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:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isAdsOnlyProfile",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"adsOnlyProfileSite",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"BoardSection",kind:"LinkedField",name:"section",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"slug",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"layout",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"privacy",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null,hash:"726966a5dc7cf7fa52c9cdb9ab829535"};e.exports=t},166379:e=>{var t,i,n,o,a={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"inviteType"},{defaultValue:null,kind:"LocalArgument",name:"objectId"}],kind:"Fragment",metadata:null,name:"ShareInviteCreateExternalInviteGraphQLQuery",selections:[{alias:null,args: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},o={alias:null,args:null,concreteType:"InviteUserExternal",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:"invite_code",args:null,kind:"ScalarField",name:"inviteCode",storageKey:null},{alias:"invite_url",args:null,kind:"ScalarField",name:"inviteUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null}],type:"V3InviteUserExternal",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"ShareInviteCreateExternalInviteGraphQLQuery",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3InviteUserExternalQuery",plural:!1,selections:[n,{kind:"InlineFragment",selections:[o],type:"V3InviteUserExternal",abstractKey:null}],storageKey:null}]},params:{id:"ab55ea9f382837bc92cb5dab03686e16868a27912a9e4237e2ddbe7a15540d21",metadata:{},name:"ShareInviteCreateExternalInviteGraphQLQuery",operationKind:"query",text:null}};a.hash="9c91c46b70b37b163403747442a8c1d4",e.exports=a},380465:e=>{var t,i,n,o,a={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"invite_category"},{defaultValue:null,kind:"LocalArgument",name:"url"}],kind:"Fragment",metadata:null,name:"ShareInviteCreateShareLinkGraphQLQuery",selections:[{alias:null,args:i=[{kind:"Variable",name:"inviteCategory",variableName:"invite_category"},{kind:"Literal",name:"name",value:""},{kind:"Variable",name:"url",variableName:"url"}],concreteType:null,kind:"LinkedField",name:"v3CreateShareLinkQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},o={alias:null,args:null,concreteType:"ShareLink",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:"invite_code",args:null,kind:"ScalarField",name:"inviteCode",storageKey:null},{alias:"invite_url",args:null,kind:"ScalarField",name:"inviteUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null}],type:"V3CreateShareLink",abstractKey:null},{kind:"InlineFragment",selections:[n],type:"ClientError",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"ShareInviteCreateShareLinkGraphQLQuery",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3CreateShareLinkQuery",plural:!1,selections:[n,{kind:"InlineFragment",selections:[o],type:"V3CreateShareLink",abstractKey:null}],storageKey:null}]},params:{id:"8d8e9da7f5f5830ad00711d5fa1aa68c48b859aac0680cc0e49d58d3c1ccea88",metadata:{},name:"ShareInviteCreateShareLinkGraphQLQuery",operationKind:"query",text:null}};a.hash="e485abf49d319ba9c47587981f2a86be",e.exports=a},656177:e=>{var t,i,n,o,a,r,s,l,c={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:"ShareInviteMutation",selections:[{alias:null,args:o=[{fields:[{kind:"Variable",name:"inviteCode",variableName:"inviteCode"},{kind:"Variable",name:"inviteType",variableName:"inviteType"},{kind:"Variable",name:"objectId",variableName:"objectId"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3InviteSentExternalMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[a={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"InviteCode",kind:"LinkedField",name:"data",plural:!1,selections:[r={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:[a,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:"ShareInviteMutation",selections:[{alias:null,args:o,concreteType:null,kind:"LinkedField",name:"v3InviteSentExternalMutation",plural:!1,selections:[a,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"InviteCode",kind:"LinkedField",name:"data",plural:!1,selections:[r,s,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],type:"V3InviteSentExternal",abstractKey:null},{kind:"InlineFragment",selections:[l],type:"InvalidParameters",abstractKey:null}],storageKey:null}]},params:{id:"30e03e1f3b6dded5c6d93bfecfb50065b254f1307aec34dfa67719890b615b82",metadata:{},name:"ShareInviteMutation",operationKind:"mutation",text:null}};c.hash="c33b898a613c3dc2792113fb7e97b0f5",e.exports=c},337148:e=>{var t,i,n={fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StelaOnIdeaPinPermissionQuery",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"v3GetCurrentUserHandlerQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"data",plural:!1,selections:[t={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"ipStelaRecDisabled",storageKey:null}],type:"User",abstractKey:null}],storageKey:null}],type:"V3GetCurrentUserHandler",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"StelaOnIdeaPinPermissionQuery",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"v3GetCurrentUserHandlerQuery",plural:!1,selections:[i={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"data",plural:!1,selections:[i,t,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"Node",abstractKey:"__isNode"}],storageKey:null}],type:"V3GetCurrentUserHandler",abstractKey:null}],storageKey:null}]},params:{id:"2653a6ed13b2a48a0adbce54781b1b88b025b8bd93a112b8a0bd15da606dcbe9",metadata:{},name:"StelaOnIdeaPinPermissionQuery",operationKind:"query",text:null}};n.hash="c061d1400492f868408772f86f659738",e.exports=n},778067:e=>{var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinBasicsLayout_pin",selections:[{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,concreteType:"StoryPinBasics",kind:"LinkedField",name:"basics",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinListBlock",kind:"LinkedField",name:"listBlocks",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:t=[{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null}],type:"TextBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"HeadingBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"ParagraphBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"LinkBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"StoryPinImageBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"StoryPinVideoBlock",abstractKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"heading",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinKeyValueBlock",kind:"LinkedField",name:"keyValueBlocks",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"categoryType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"OfficialUserAttribution_pin"}],type:"Pin",abstractKey:null};i.hash="9bd82ee705047a24dfa595bf581f4c96",e.exports=i},695838:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinDescription_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinPage",kind:"LinkedField",name:"pages",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"layout",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinBasics",kind:"LinkedField",name:"basics",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"StoryPinPreviewText_pin"},{args:null,kind:"FragmentSpread",name:"StoryPinListModal_pin"}],type:"Pin",abstractKey:null,hash:"ad3845f108f9347ef054ee3a2391d91b"};e.exports=t},323267:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinListModal_pin",selections:[{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,concreteType:"StoryPinBasics",kind:"LinkedField",name:"basics",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinRecipeMetadataField",kind:"LinkedField",name:"recipeData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"cookingTime",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"prepTime",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"servingSize",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"templateType",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"StoryPinList_pin"}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{args:null,kind:"FragmentSpread",name:"StoryPinBasicsLayout_pin"}],type:"Pin",abstractKey:null,hash:"b408927eb9f996106daef1a0ce894de9"};e.exports=t},56637:e=>{var t,i,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinList_pin",selections:[{alias:null,args:null,concreteType:"StoryPinPage",kind:"LinkedField",name:"pages",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"layout",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:[t={alias:null,args:null,kind:"ScalarField",name:"amt",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"unit",storageKey:null}],type:"IngredientBlock",abstractKey:null},{kind:"InlineFragment",selections:[t,i],type:"SupplyBlock",abstractKey:null}],storageKey:null}],storageKey:null}],type:"StoryPinData",abstractKey:null};n.hash="58ca192c8da31187227f6d6d9370c6ca",e.exports=n},418133:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinPreviewText_pin",selections:[{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,concreteType:"StoryPinBasics",kind:"LinkedField",name:"basics",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinKeyValueBlock",kind:"LinkedField",name:"keyValueBlocks",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"categoryType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"extractPreviewText_basics"}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null}],type:"Pin",abstractKey:null,hash:"e90c3859c7387fc3b0a3a59572bac234"};e.exports=t},604955:e=>{var t,i,n,o,a={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"boardId"}],kind:"Fragment",metadata:null,name:"boards_AcceptInvite_Mutation",selections:[{alias:null,args:i=[{fields:[{kind:"Variable",name:"board",variableName:"boardId"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3AcceptBoardCollaboratorInviteMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},o={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"paramPath",storageKey:null}],storageKey:null}],type:"Error",abstractKey:"__isError"}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"boards_AcceptInvite_Mutation",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3AcceptBoardCollaboratorInviteMutation",plural:!1,selections:[n,{kind:"InlineFragment",selections:[o],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"684be4cb6a79ca32f82ddfa38f308039fdcaff0720a6118743e1e198085f1237",metadata:{},name:"boards_AcceptInvite_Mutation",operationKind:"mutation",text:null}};a.hash="c73ed7e5b29f046197e7dfcf7d7a7cd0",e.exports=a},518190:e=>{var t,i,n,o,a={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"boardId"},{defaultValue:null,kind:"LocalArgument",name:"userId"}],kind:"Fragment",metadata:null,name:"boards_ApproveInvite_Mutation",selections:[{alias:null,args:i=[{fields:[{kind:"Variable",name:"board",variableName:"boardId"},{kind:"Variable",name:"user",variableName:"userId"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3ApproveBoardCollaboratorInviteMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},o={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"paramPath",storageKey:null}],storageKey:null}],type:"Error",abstractKey:"__isError"}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"boards_ApproveInvite_Mutation",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3ApproveBoardCollaboratorInviteMutation",plural:!1,selections:[n,{kind:"InlineFragment",selections:[o],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"1380a15fe95dc7713c5d72fd6104da573f3db5b8b0ab66f883bec351df4c8a71",metadata:{},name:"boards_ApproveInvite_Mutation",operationKind:"mutation",text:null}};a.hash="216cdb449b148a3d36e9d0621dcfcac5",e.exports=a},90105:e=>{var t,i,n,o,a,r,s={fragment:{argumentDefinitions:[t={defaultValue:null,kind:"LocalArgument",name:"ban"},i={defaultValue:null,kind:"LocalArgument",name:"boardId"},n={defaultValue:null,kind:"LocalArgument",name:"userId"}],kind:"Fragment",metadata:null,name:"boards_DeclineOrDeleteBoardCollaboratorInvite_Mutation",selections:[{alias:null,args:o=[{fields:[{kind:"Variable",name:"ban",variableName:"ban"},{kind:"Variable",name:"board",variableName:"boardId"},{kind:"Variable",name:"user",variableName:"userId"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3DeclineOrDeleteBoardCollaboratorInviteMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[a={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},r={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"paramPath",storageKey:null}],storageKey:null}],type:"Error",abstractKey:"__isError"}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[i,n,t],kind:"Operation",name:"boards_DeclineOrDeleteBoardCollaboratorInvite_Mutation",selections:[{alias:null,args:o,concreteType:null,kind:"LinkedField",name:"v3DeclineOrDeleteBoardCollaboratorInviteMutation",plural:!1,selections:[a,{kind:"InlineFragment",selections:[r],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"533aad425ad868e5a9d811bf76dccd56e54e0cc48c4c8b526ccbcd7c68efb981",metadata:{},name:"boards_DeclineOrDeleteBoardCollaboratorInvite_Mutation",operationKind:"mutation",text:null}};s.hash="b03dba13d39482d785778ba0feadca06",e.exports=s},472297:e=>{var t,i,n,o,a,r,s,l,c={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"board"},{defaultValue:null,kind:"LocalArgument",name:"collaboratorIds"}],kind:"Fragment",metadata:null,name:"boards_RemoveBoardCollaborators_Mutation",selections:[{alias:null,args:i=[{fields:[{kind:"Variable",name:"board",variableName:"board"},{kind:"Variable",name:"collaboratorIds",variableName:"collaboratorIds"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3RemoveBoardCollaboratorsMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"data",plural:!1,selections:[o={alias:null,args:null,kind:"ScalarField",name:"collaboratorCount",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"collaboratingUsers",plural:!1,selections:[{kind:"InlineFragment",selections:[n,{alias:null,args:null,concreteType:"UserCollaboratingUsersConnection",kind:"LinkedField",name:"connection",plural:!1,selections:[{alias:null,args:null,concreteType:"UserCollaboratingUsersEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"node",plural:!1,selections:[a={alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"UserCollaboratingUsersConnectionContainer",abstractKey:null}],storageKey:null}],storageKey:null}],type:"V3RemoveBoardCollaborators",abstractKey:null},{kind:"InlineFragment",selections:[n,s={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"paramPath",storageKey:null}],storageKey:null}],type:"Error",abstractKey:"__isError"}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"boards_RemoveBoardCollaborators_Mutation",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3RemoveBoardCollaboratorsMutation",plural:!1,selections:[n,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"data",plural:!1,selections:[o,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"collaboratingUsers",plural:!1,selections:[n,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"UserCollaboratingUsersConnection",kind:"LinkedField",name:"connection",plural:!1,selections:[{alias:null,args:null,concreteType:"UserCollaboratingUsersEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"node",plural:!1,selections:[a,r,l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"UserCollaboratingUsersConnectionContainer",abstractKey:null}],storageKey:null},l],storageKey:null}],type:"V3RemoveBoardCollaborators",abstractKey:null},{kind:"InlineFragment",selections:[s],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"e100ea491b53ee042f6d9a7f42b583afafd9b8a730b43e06b81b9132821866ea",metadata:{},name:"boards_RemoveBoardCollaborators_Mutation",operationKind:"mutation",text:null}};c.hash="ecec88eadc69c1153ca5e0c4bfe03fd9",e.exports=c},787525:e=>{var t,i,n,o,a={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"board"},{defaultValue:null,kind:"LocalArgument",name:"emails"},{defaultValue:null,kind:"LocalArgument",name:"message"}],kind:"Fragment",metadata:null,name:"boards_emails_Mutation",selections:[{alias:null,args:i=[{fields:[{kind:"Variable",name:"board",variableName:"board"},{kind:"Variable",name:"emails",variableName:"emails"},{kind:"Variable",name:"message",variableName:"message"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3InviteBoardCollaboratorEmailMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"V3InviteBoardCollaboratorEmail",abstractKey:null},{kind:"InlineFragment",selections:[n,o={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"paramPath",storageKey:null}],storageKey:null}],type:"Error",abstractKey:"__isError"}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"boards_emails_Mutation",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3InviteBoardCollaboratorEmailMutation",plural:!1,selections:[n,{kind:"InlineFragment",selections:[o],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"4d372bf76e6f77707e9106c02f73ec23773c4bd7e457dc684ea7dd1b87985c7c",metadata:{},name:"boards_emails_Mutation",operationKind:"mutation",text:null}};a.hash="0659a1edf1c7935aff1deef3f51f2add",e.exports=a},16945:e=>{var t,i,n,o,a,r,s={fragment:{argumentDefinitions:[t={defaultValue:null,kind:"LocalArgument",name:"boardId"},i={defaultValue:null,kind:"LocalArgument",name:"collaboratorIds"},n={defaultValue:null,kind:"LocalArgument",name:"message"}],kind:"Fragment",metadata:null,name:"boards_users_Mutation",selections:[{alias:null,args:o=[{fields:[{kind:"Variable",name:"board",variableName:"boardId"},{kind:"Variable",name:"collaboratorIds",variableName:"collaboratorIds"},{kind:"Variable",name:"message",variableName:"message"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3InviteBoardCollaboratorsMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[a={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},r={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"paramPath",storageKey:null}],storageKey:null}],type:"Error",abstractKey:"__isError"}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[i,t,n],kind:"Operation",name:"boards_users_Mutation",selections:[{alias:null,args:o,concreteType:null,kind:"LinkedField",name:"v3InviteBoardCollaboratorsMutation",plural:!1,selections:[a,{kind:"InlineFragment",selections:[r],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"9495c71001fb315e3dc5e63ec17a8d8d5a4fb53ebc7f791b44093a4a92665835",metadata:{},name:"boards_users_Mutation",operationKind:"mutation",text:null}};s.hash="743ce0da1ac8191550520ebe045b4fb0",e.exports=s},360157:e=>{var t,i,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"extractPreviewText_basics",selections:[{alias:null,args:null,concreteType:"StoryPinListBlock",kind:"LinkedField",name:"listBlocks",plural:!0,selections:[t={alias:null,args:null,kind:"ScalarField",name:"heading",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:[t,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:i=[{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null}],type:"TextBlock",abstractKey:null},{kind:"InlineFragment",selections:i,type:"ParagraphBlock",abstractKey:null},{kind:"InlineFragment",selections:i,type:"HeadingBlock",abstractKey:null},{kind:"InlineFragment",selections:i,type:"LinkBlock",abstractKey:null},{kind:"InlineFragment",selections:i,type:"StoryPinImageBlock",abstractKey:null},{kind:"InlineFragment",selections:i,type:"StoryPinVideoBlock",abstractKey:null}],storageKey:null}],type:"StoryPinListBlock",abstractKey:null}],storageKey:null}],storageKey:null}],type:"StoryPinBasics",abstractKey:null};n.hash="70e84f7d1d0b4c8f0d2d282682155e30",e.exports=n},848842:e=>{var t,i,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useClickthrough_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isOosProduct",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isStaleProduct",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shoppingFlags",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mobileLink",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackedLink",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"category",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"domain",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:[{alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:i=[t={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{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:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[t,{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:i,storageKey:null},{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:i,storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:i,storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"usePinImagesFragment_pin"}],type:"Pin",abstractKey:null};n.hash="8d7bd7a5f2c2827017b3814423934967",e.exports=n},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},168745:e=>{e.exports="https://s.pinimg.com/webapp/app_install_qr_code-72a899bf.png"},946177:e=>{e.exports="https://s.pinimg.com/webapp/AR@2x-c39e72de.png"},407515:e=>{e.exports="https://s.pinimg.com/webapp/BN@2x-f4937852.png"},38733:e=>{e.exports="https://s.pinimg.com/webapp/CS@2x-ecc1d35a.png"},372424:e=>{e.exports="https://s.pinimg.com/webapp/DA@2x-0a8213db.png"},37634:e=>{e.exports="https://s.pinimg.com/webapp/DE@2x-e398675a.png"},581537:e=>{e.exports="https://s.pinimg.com/webapp/EL@2x-5895bc67.png"},612522:e=>{e.exports="https://s.pinimg.com/webapp/EN@2x-c3eda626.png"},18110:e=>{e.exports="https://s.pinimg.com/webapp/ES@2x-d867d9a4.png"},346949:e=>{e.exports="https://s.pinimg.com/webapp/FI@2x-47fa27f7.png"},21852:e=>{e.exports="https://s.pinimg.com/webapp/FR@2x-bf910b39.png"},265325:e=>{e.exports="https://s.pinimg.com/webapp/HI@2x-58486090.png"},916292:e=>{e.exports="https://s.pinimg.com/webapp/HU@2x-1705acdc.png"},564291:e=>{e.exports="https://s.pinimg.com/webapp/ID@2x-1dc864b9.png"},398093:e=>{e.exports="https://s.pinimg.com/webapp/IT@2x-60e3683e.png"},187585:e=>{e.exports="https://s.pinimg.com/webapp/JA@2x-15535147.png"},419417:e=>{e.exports="https://s.pinimg.com/webapp/KO@2x-1099f44a.png"},13357:e=>{e.exports="https://s.pinimg.com/webapp/ML@2x-e7a6773b.png"},953528:e=>{e.exports="https://s.pinimg.com/webapp/MS@2x-a3f4865f.png"},921048:e=>{e.exports="https://s.pinimg.com/webapp/NL@2x-5f1515db.png"},443829:e=>{e.exports="https://s.pinimg.com/webapp/NN@2x-f061e9b4.png"},914357:e=>{e.exports="https://s.pinimg.com/webapp/NO@2x-e5fdc822.png"},469227:e=>{e.exports="https://s.pinimg.com/webapp/PL@2x-7b44a0ea.png"},419985:e=>{e.exports="https://s.pinimg.com/webapp/PT@2x-1cf70049.png"},438688:e=>{e.exports="https://s.pinimg.com/webapp/RO@2x-112e3f0c.png"},168331:e=>{e.exports="https://s.pinimg.com/webapp/RU@2x-7e4486d9.png"},143169:e=>{e.exports="https://s.pinimg.com/webapp/SK@2x-75eb6ab9.png"},431010:e=>{e.exports="https://s.pinimg.com/webapp/SV@2x-61ea661d.png"},626040:e=>{e.exports="https://s.pinimg.com/webapp/TE@2x-6160d358.png"},444764:e=>{e.exports="https://s.pinimg.com/webapp/TH@2x-0a53c197.png"},191934:e=>{e.exports="https://s.pinimg.com/webapp/TL@2x-3af02ef3.png"},853436:e=>{e.exports="https://s.pinimg.com/webapp/TR@2x-ec2d7ab5.png"},802124:e=>{e.exports="https://s.pinimg.com/webapp/UK@2x-5787bbf9.png"},375088:e=>{e.exports="https://s.pinimg.com/webapp/VI@2x-09999946.png"},695818:e=>{e.exports="https://s.pinimg.com/webapp/zhCN@2x-d3d7eda9.png"},487482:e=>{e.exports="https://s.pinimg.com/webapp/zhTW@2x-af9e1419.png"},664385:e=>{e.exports="https://s.pinimg.com/webapp/AR@2x-1cd72fed.png"},183849:e=>{e.exports="https://s.pinimg.com/webapp/CS@2x-488e8cc6.png"},470265:e=>{e.exports="https://s.pinimg.com/webapp/DA@2x-e5d12354.png"},82737:e=>{e.exports="https://s.pinimg.com/webapp/DE@2x-22831293.png"},173654:e=>{e.exports="https://s.pinimg.com/webapp/EL@2x-e764ccf8.png"},906438:e=>{e.exports="https://s.pinimg.com/webapp/EN@2x-ca0773fb.png"},923207:e=>{e.exports="https://s.pinimg.com/webapp/ES@2x-55483593.png"},76164:e=>{e.exports="https://s.pinimg.com/webapp/FI@2x-695433d6.png"},59020:e=>{e.exports="https://s.pinimg.com/webapp/FR@2x-62177ec4.png"},417912:e=>{e.exports="https://s.pinimg.com/webapp/HI@2x-e55c64e4.png"},642753:e=>{e.exports="https://s.pinimg.com/webapp/HU@2x-2916bbea.png"},798221:e=>{e.exports="https://s.pinimg.com/webapp/ID@2x-34da9a4a.png"},934072:e=>{e.exports="https://s.pinimg.com/webapp/IT@2x-5749beff.png"},949461:e=>{e.exports="https://s.pinimg.com/webapp/JA@2x-a57c5839.png"},56353:e=>{e.exports="https://s.pinimg.com/webapp/KO@2x-c909bac5.png"},839301:e=>{e.exports="https://s.pinimg.com/webapp/ML@2x-8998d852.png"},643316:e=>{e.exports="https://s.pinimg.com/webapp/MS@2x-4576bf58.png"},201721:e=>{e.exports="https://s.pinimg.com/webapp/NL@2x-d31d4a18.png"},925880:e=>{e.exports="https://s.pinimg.com/webapp/NN@2x-c4b8da55.png"},117131:e=>{e.exports="https://s.pinimg.com/webapp/NO@2x-df2a915d.png"},516541:e=>{e.exports="https://s.pinimg.com/webapp/PL@2x-5685a97f.png"},512910:e=>{e.exports="https://s.pinimg.com/webapp/PT@2x-2939b38c.png"},17583:e=>{e.exports="https://s.pinimg.com/webapp/RO@2x-188b728d.png"},245871:e=>{e.exports="https://s.pinimg.com/webapp/RU@2x-888d9aa1.png"},831644:e=>{e.exports="https://s.pinimg.com/webapp/SK@2x-dd6250c3.png"},28528:e=>{e.exports="https://s.pinimg.com/webapp/SV@2x-0e099997.png"},485382:e=>{e.exports="https://s.pinimg.com/webapp/TH@2x-988a46e6.png"},216541:e=>{e.exports="https://s.pinimg.com/webapp/TL@2x-1e888ea6.png"},770464:e=>{e.exports="https://s.pinimg.com/webapp/TR@2x-c216b517.png"},671951:e=>{e.exports="https://s.pinimg.com/webapp/UK@2x-fb5c6e06.png"},395692:e=>{e.exports="https://s.pinimg.com/webapp/VI@2x-abdc2e13.png"},720880:e=>{e.exports="https://s.pinimg.com/webapp/zhCN@2x-0b2349f4.png"},232645:e=>{e.exports="https://s.pinimg.com/webapp/zhTW@2x-0ef5b95c.png"},459486:e=>{e.exports="https://s.pinimg.com/webapp/AR-fe690685.png"},259484:e=>{e.exports="https://s.pinimg.com/webapp/BN-d15a6722.png"},530899:e=>{e.exports="https://s.pinimg.com/webapp/CS-936df9f8.png"},652881:e=>{e.exports="https://s.pinimg.com/webapp/DA-7786a6fc.png"},833083:e=>{e.exports="https://s.pinimg.com/webapp/DE-1db62e2b.png"},626994:e=>{e.exports="https://s.pinimg.com/webapp/EL-8cf42788.png"},781967:e=>{e.exports="https://s.pinimg.com/webapp/EN-9e98a4a7.png"},632616:e=>{e.exports="https://s.pinimg.com/webapp/ES-25b0d4f3.png"},318250:e=>{e.exports="https://s.pinimg.com/webapp/FI-cb2571db.png"},192219:e=>{e.exports="https://s.pinimg.com/webapp/FR-b5b0c8fa.png"},109528:e=>{e.exports="https://s.pinimg.com/webapp/HI-0399edc0.png"},203359:e=>{e.exports="https://s.pinimg.com/webapp/HU-fa536a26.png"},39303:e=>{e.exports="https://s.pinimg.com/webapp/ID-2f52d233.png"},992387:e=>{e.exports="https://s.pinimg.com/webapp/IT-2097820e.png"},358709:e=>{e.exports="https://s.pinimg.com/webapp/JA-a028a67e.png"},937155:e=>{e.exports="https://s.pinimg.com/webapp/KO-9cb16e60.png"},104461:e=>{e.exports="https://s.pinimg.com/webapp/MS-85a69c39.png"},516759:e=>{e.exports="https://s.pinimg.com/webapp/NB-de56f26b.png"},792594:e=>{e.exports="https://s.pinimg.com/webapp/NL-1c805967.png"},108842:e=>{e.exports="https://s.pinimg.com/webapp/PL-baf48928.png"},27700:e=>{e.exports="https://s.pinimg.com/webapp/PTBR-1cff8bc2.png"},871034:e=>{e.exports="https://s.pinimg.com/webapp/PTPT-0433f99a.png"},838281:e=>{e.exports="https://s.pinimg.com/webapp/RO-bff208e2.png"},355809:e=>{e.exports="https://s.pinimg.com/webapp/RU-7239de00.png"},700915:e=>{e.exports="https://s.pinimg.com/webapp/SK-747a8ad0.png"},597887:e=>{e.exports="https://s.pinimg.com/webapp/SV-70640421.png"},187504:e=>{e.exports="https://s.pinimg.com/webapp/TH-0dcefdac.png"},777140:e=>{e.exports="https://s.pinimg.com/webapp/TR-562c6827.png"},346604:e=>{e.exports="https://s.pinimg.com/webapp/UK-11d358d4.png"},1832:e=>{e.exports="https://s.pinimg.com/webapp/VI-c79a6c02.png"},847497:e=>{e.exports="https://s.pinimg.com/webapp/ZHCN-79f40009.png"},678940:e=>{e.exports="https://s.pinimg.com/webapp/ZHTW-197c7b57.png"},968777:e=>{e.exports="https://s.pinimg.com/webapp/pwa_icon-f6357c62.png"},236804:e=>{e.exports="https://s.pinimg.com/webapp/goodIdea-3a74afad.svg"},615601:e=>{e.exports="https://s.pinimg.com/webapp/haha-403b10ff.svg"},879210:e=>{e.exports="https://s.pinimg.com/webapp/love-a7ffb465.svg"},104220:e=>{e.exports="https://s.pinimg.com/webapp/thanks-7994286c.svg"},138009:e=>{e.exports="https://s.pinimg.com/webapp/wow-0a7ea725.svg"},850115:e=>{e.exports="https://s.pinimg.com/webapp/goodIdea-b770896d.svg"},379507:e=>{e.exports="https://s.pinimg.com/webapp/haha-e2800d2d.svg"},637956:e=>{e.exports="https://s.pinimg.com/webapp/love-c31e0b8d.svg"},909745:e=>{e.exports="https://s.pinimg.com/webapp/thanks-62775475.svg"},128206:e=>{e.exports="https://s.pinimg.com/webapp/wow-3cb697ef.svg"},347702:e=>{e.exports="https://s.pinimg.com/webapp/commentHelpful-55781e6a.svg"},852544:e=>{e.exports="https://s.pinimg.com/webapp/commentHelpfulOutline-1e39c058.svg"},430467:e=>{e.exports="https://s.pinimg.com/webapp/commentLoved-89903abe.svg"},240291:e=>{e.exports="https://s.pinimg.com/webapp/commentLovedOutline-ce03475d.svg"},68034:e=>{e.exports="https://s.pinimg.com/webapp/goodIdea-90cc9e5e.svg"},318634:e=>{e.exports="https://s.pinimg.com/webapp/haha-33f54d88.svg"},667753:e=>{e.exports="https://s.pinimg.com/webapp/heartOutline-1f1b1ac2.svg"},503697:e=>{e.exports="https://s.pinimg.com/webapp/heartOutlineWhite-2b63164b.svg"},459588:e=>{e.exports="https://s.pinimg.com/webapp/love-596776c1.svg"},480597:e=>{e.exports="https://s.pinimg.com/webapp/thanks-20ad07d3.svg"},674218:e=>{e.exports="https://s.pinimg.com/webapp/wow-d0a865e5.svg"},537347:e=>{!function(){function t(e,t){document.addEventListener?e.addEventListener("scroll",t,!1):e.attachEvent("scroll",t)}function i(e){this.a=document.createElement("div"),this.a.setAttribute("aria-hidden","true"),this.a.appendChild(document.createTextNode(e)),this.b=document.createElement("span"),this.c=document.createElement("span"),this.h=document.createElement("span"),this.f=document.createElement("span"),this.g=-1,this.b.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.c.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.f.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.h.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.b.appendChild(this.h),this.c.appendChild(this.f),this.a.appendChild(this.b),this.a.appendChild(this.c)}function n(e,t){e.a.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+t+";"}function o(e){var t=e.a.offsetWidth,i=t+100;return e.f.style.width=i+"px",e.c.scrollLeft=i,e.b.scrollLeft=e.b.scrollWidth+100,e.g!==t&&(e.g=t,!0)}function a(e,i){function n(){var e=a;o(e)&&e.a.parentNode&&i(e.g)}var a=e;t(e.b,n),t(e.c,n),o(e)}function r(e,t){var i=t||{};this.family=e,this.style=i.style||"normal",this.weight=i.weight||"normal",this.stretch=i.stretch||"normal"}var s=null,l=null,c=null,d=null;function u(){return null===d&&(d=!!document.fonts),d}function p(){if(null===c){var e=document.createElement("div");try{e.style.font="condensed 100px sans-serif"}catch(t){}c=""!==e.style.font}return c}function h(e,t){return[e.style,e.weight,p()?e.stretch:"","100px",t].join(" ")}r.prototype.load=function(e,t){var o=this,r=e||"BESbswy",c=0,d=t||3e3,p=(new Date).getTime();return new Promise((function(e,t){if(u()&&!function(){if(null===l)if(u()&&/Apple/.test(window.navigator.vendor)){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent);l=!!e&&603>parseInt(e[1],10)}else l=!1;return l}()){var _=new Promise((function(e,t){!function i(){(new Date).getTime()-p>=d?t(Error(d+"ms timeout exceeded")):document.fonts.load(h(o,'"'+o.family+'"'),r).then((function(t){1<=t.length?e():setTimeout(i,25)}),t)}()})),m=new Promise((function(e,t){c=setTimeout((function(){t(Error(d+"ms timeout exceeded"))}),d)}));Promise.race([m,_]).then((function(){clearTimeout(c),e(o)}),t)}else!function(e){document.body?e():document.addEventListener?document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t),e()})):document.attachEvent("onreadystatechange",(function t(){"interactive"!=document.readyState&&"complete"!=document.readyState||(document.detachEvent("onreadystatechange",t),e())}))}((function(){function l(){var t;(t=-1!=g&&-1!=x||-1!=g&&-1!=f||-1!=x&&-1!=f)&&((t=g!=x&&g!=f&&x!=f)||(null===s&&(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),s=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))),t=s&&(g==y&&x==y&&f==y||g==v&&x==v&&f==v||g==b&&x==b&&f==b)),t=!t),t&&(P.parentNode&&P.parentNode.removeChild(P),clearTimeout(c),e(o))}var u=new i(r),_=new i(r),m=new i(r),g=-1,x=-1,f=-1,y=-1,v=-1,b=-1,P=document.createElement("div");P.dir="ltr",n(u,h(o,"sans-serif")),n(_,h(o,"serif")),n(m,h(o,"monospace")),P.appendChild(u.a),P.appendChild(_.a),P.appendChild(m.a),document.body.appendChild(P),y=u.a.offsetWidth,v=_.a.offsetWidth,b=m.a.offsetWidth,function e(){if((new Date).getTime()-p>=d)P.parentNode&&P.parentNode.removeChild(P),t(Error(d+"ms timeout exceeded"));else{var i=document.hidden;!0!==i&&void 0!==i||(g=u.a.offsetWidth,x=_.a.offsetWidth,f=m.a.offsetWidth,l()),c=setTimeout(e,50)}}(),a(u,(function(e){g=e,l()})),n(u,h(o,'"'+o.family+'",sans-serif')),a(_,(function(e){x=e,l()})),n(_,h(o,'"'+o.family+'",serif')),a(m,(function(e){f=e,l()})),n(m,h(o,'"'+o.family+'",monospace'))}))}))},e.exports=r}()},618552:(e,t,i)=>{var n=i(610852)(i(555639),"DataView");e.exports=n},301989:(e,t,i)=>{var n=i(751789),o=i(780401),a=i(657667),r=i(521327),s=i(281866);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t{var n=i(327040),o=i(514125),a=i(882117),r=i(567518),s=i(654705);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t{var n=i(610852)(i(555639),"Map");e.exports=n},883369:(e,t,i)=>{var n=i(924785),o=i(611285),a=i(396e3),r=i(349916),s=i(195265);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t{var n=i(610852)(i(555639),"Promise");e.exports=n},458525:(e,t,i)=>{var n=i(610852)(i(555639),"Set");e.exports=n},288668:(e,t,i)=>{var n=i(883369),o=i(90619),a=i(572385);function r(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new n;++t{var n=i(738407),o=i(737465),a=i(963779),r=i(267599),s=i(744758),l=i(234309);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=r,c.prototype.has=s,c.prototype.set=l,e.exports=c},611149:(e,t,i)=>{var n=i(555639).Uint8Array;e.exports=n},70577:(e,t,i)=>{var n=i(610852)(i(555639),"WeakMap");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{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length,o=0,a=[];++i{var n=i(422545),o=i(135694),a=i(701469),r=i(644144),s=i(565776),l=i(936719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var i=a(e),d=!i&&o(e),u=!i&&!d&&r(e),p=!i&&!d&&!u&&l(e),h=i||d||u||p,_=h?n(e.length,String):[],m=_.length;for(var g in e)!t&&!c.call(e,g)||h&&("length"==g||u&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||_.push(g);return _}},862488:e=>{e.exports=function(e,t){for(var i=-1,n=t.length,o=e.length;++i{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length;++i{var n=i(789465),o=i(977813);e.exports=function(e,t,i){(void 0!==i&&!o(e[t],i)||void 0===i&&!(t in e))&&n(e,t,i)}},234865:(e,t,i)=>{var n=i(789465),o=i(977813),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,i){var r=e[t];a.call(e,t)&&o(r,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),o=i(3674);e.exports=function(e,t){return e&&n(t,o(t),e)}},163886:(e,t,i)=>{var n=i(698363),o=i(481704);e.exports=function(e,t){return e&&n(t,o(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),o=i(477412),a=i(234865),r=i(744037),s=i(163886),l=i(364626),c=i(200278),d=i(318805),u=i(201911),p=i(458234),h=i(946904),_=i(664160),m=i(43824),g=i(529148),x=i(738517),f=i(701469),y=i(644144),v=i(356688),b=i(513218),P=i(472928),w=i(3674),S=i(481704),A="[object Arguments]",k="[object Function]",E="[object Object]",T={};T[A]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[E]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[k]=T["[object WeakMap]"]=!1,e.exports=function e(t,i,C,I,j,R){var D,z=1&i,O=2&i,L=4&i;if(C&&(D=j?C(t,I,j,R):C(t)),void 0!==D)return D;if(!b(t))return t;var N=f(t);if(N){if(D=m(t),!z)return c(t,D)}else{var B=_(t),M=B==k||"[object GeneratorFunction]"==B;if(y(t))return l(t,z);if(B==E||B==A||M&&!j){if(D=O||M?{}:x(t),!z)return O?u(t,s(D,t)):d(t,r(D,t))}else{if(!T[B])return j?t:{};D=g(t,B,z)}}R||(R=new n);var Z=R.get(t);if(Z)return Z;R.set(t,D),P(t)?t.forEach((function(n){D.add(e(n,i,C,n,t,R))})):v(t)&&t.forEach((function(n,o){D.set(o,e(n,i,C,o,t,R))}));var F=N?void 0:(L?O?h:p:O?S:w)(t);return o(F||t,(function(n,o){F&&(n=t[o=n]),a(D,o,e(n,i,C,o,t,R))})),D}},603118:(e,t,i)=>{var n=i(513218),o=Object.create,a=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}();e.exports=a},989881:(e,t,i)=>{var n=i(247816),o=i(899291)(n);e.exports=o},121078:(e,t,i)=>{var n=i(862488),o=i(137285);e.exports=function e(t,i,a,r,s){var l=-1,c=t.length;for(a||(a=o),s||(s=[]);++l0&&a(d)?i>1?e(d,i-1,a,r,s):n(s,d):r||(s[s.length]=d)}return s}},228483:(e,t,i)=>{var n=i(225063)();e.exports=n},247816:(e,t,i)=>{var n=i(228483),o=i(3674);e.exports=function(e,t){return e&&n(e,t,o)}},297786:(e,t,i)=>{var n=i(671811),o=i(240327);e.exports=function(e,t){for(var i=0,a=(t=n(t,e)).length;null!=e&&i{var n=i(862488),o=i(701469);e.exports=function(e,t,i){var a=t(e);return o(e)?a:n(a,i(e))}},200013:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},909454:(e,t,i)=>{var n=i(644239),o=i(637005);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},690939:(e,t,i)=>{var n=i(902492),o=i(637005);e.exports=function e(t,i,a,r,s){return t===i||(null==t||null==i||!o(t)&&!o(i)?t!=t&&i!=i:n(t,i,a,r,e,s))}},902492:(e,t,i)=>{var n=i(646384),o=i(967114),a=i(518351),r=i(916096),s=i(664160),l=i(701469),c=i(644144),d=i(936719),u="[object Arguments]",p="[object Array]",h="[object Object]",_=Object.prototype.hasOwnProperty;e.exports=function(e,t,i,m,g,x){var f=l(e),y=l(t),v=f?p:s(e),b=y?p:s(t),P=(v=v==u?h:v)==h,w=(b=b==u?h:b)==h,S=v==b;if(S&&c(e)){if(!c(t))return!1;f=!0,P=!1}if(S&&!P)return x||(x=new n),f||d(e)?o(e,t,i,m,g,x):a(e,t,v,i,m,g,x);if(!(1&i)){var A=P&&_.call(e,"__wrapped__"),k=w&&_.call(t,"__wrapped__");if(A||k){var E=A?e.value():e,T=k?t.value():t;return x||(x=new n),g(E,T,i,m,x)}}return!!S&&(x||(x=new n),r(e,t,i,m,g,x))}},225588:(e,t,i)=>{var n=i(664160),o=i(637005);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},702958:(e,t,i)=>{var n=i(646384),o=i(690939);e.exports=function(e,t,i,a){var r=i.length,s=r,l=!a;if(null==e)return!s;for(e=Object(e);r--;){var c=i[r];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++r{var n=i(623560),o=i(215346),a=i(513218),r=i(680346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,d=l.toString,u=c.hasOwnProperty,p=RegExp("^"+d.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(n(e)?p:s).test(r(e))}},829221:(e,t,i)=>{var n=i(664160),o=i(637005);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},238749:(e,t,i)=>{var n=i(644239),o=i(541780),a=i(637005),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!r[n(e)]}},267206:(e,t,i)=>{var n=i(191573),o=i(716432),a=i(406557),r=i(701469),s=i(139601);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?r(e)?o(e[0],e[1]):n(e):s(e)}},400280:(e,t,i)=>{var n=i(225726),o=i(86916),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var i in Object(e))a.call(e,i)&&"constructor"!=i&&t.push(i);return t}},710313:(e,t,i)=>{var n=i(513218),o=i(225726),a=i(133498),r=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return a(e);var t=o(e),i=[];for(var s in e)("constructor"!=s||!t&&r.call(e,s))&&i.push(s);return i}},269199:(e,t,i)=>{var n=i(989881),o=i(498612);e.exports=function(e,t){var i=-1,a=o(e)?Array(e.length):[];return n(e,(function(e,n,o){a[++i]=t(e,n,o)})),a}},191573:(e,t,i)=>{var n=i(702958),o=i(301499),a=i(542634);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(i){return i===e||n(i,e,t)}}},716432:(e,t,i)=>{var n=i(690939),o=i(227361),a=i(379095),r=i(115403),s=i(689162),l=i(542634),c=i(240327);e.exports=function(e,t){return r(e)&&s(t)?l(c(e),t):function(i){var r=o(i,e);return void 0===r&&r===t?a(i,e):n(t,r,3)}}},642980:(e,t,i)=>{var n=i(646384),o=i(286556),a=i(228483),r=i(559783),s=i(513218),l=i(481704),c=i(636390);e.exports=function e(t,i,d,u,p){t!==i&&a(i,(function(a,l){if(p||(p=new n),s(a))r(t,i,l,d,e,u,p);else{var h=u?u(c(t,l),a,l+"",t,i,p):void 0;void 0===h&&(h=a),o(t,l,h)}}),l)}},559783:(e,t,i)=>{var n=i(286556),o=i(364626),a=i(477133),r=i(200278),s=i(738517),l=i(135694),c=i(701469),d=i(229246),u=i(644144),p=i(623560),h=i(513218),_=i(968630),m=i(936719),g=i(636390),x=i(959881);e.exports=function(e,t,i,f,y,v,b){var P=g(e,i),w=g(t,i),S=b.get(w);if(S)n(e,i,S);else{var A=v?v(P,w,i+"",e,t,b):void 0,k=void 0===A;if(k){var E=c(w),T=!E&&u(w),C=!E&&!T&&m(w);A=w,E||T||C?c(P)?A=P:d(P)?A=r(P):T?(k=!1,A=o(w,!0)):C?(k=!1,A=a(w,!0)):A=[]:_(w)||l(w)?(A=P,l(P)?A=x(P):h(P)&&!p(P)||(A=s(w))):k=!1}k&&(b.set(w,A),y(A,w,f,v,b),b.delete(w)),n(e,i,A)}}},882689:(e,t,i)=>{var n=i(829932),o=i(297786),a=i(267206),r=i(269199),s=i(571131),l=i(307518),c=i(285022),d=i(406557),u=i(701469);e.exports=function(e,t,i){t=t.length?n(t,(function(e){return u(e)?function(t){return o(t,1===e.length?e[0]:e)}:e})):[d];var p=-1;t=n(t,l(a));var h=r(e,(function(e,i,o){return{criteria:n(t,(function(t){return t(e)})),index:++p,value:e}}));return s(h,(function(e,t){return c(e,t,i)}))}},840371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},379152:(e,t,i)=>{var n=i(297786);e.exports=function(e){return function(t){return n(t,e)}}},105976:(e,t,i)=>{var n=i(406557),o=i(545357),a=i(430061);e.exports=function(e,t){return a(o(e,t,n),e+"")}},356560:(e,t,i)=>{var n=i(575703),o=i(538777),a=i(406557),r=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:a;e.exports=r},571131:e=>{e.exports=function(e,t){var i=e.length;for(e.sort(t);i--;)e[i]=e[i].value;return e}},422545:e=>{e.exports=function(e,t){for(var i=-1,n=Array(e);++i{e.exports=function(e){return function(t){return e(t)}}},274757:e=>{e.exports=function(e,t){return e.has(t)}},671811:(e,t,i)=>{var n=i(701469),o=i(115403),a=i(555514),r=i(479833);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:a(r(e))}},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),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,r=a&&a.exports===o?n.Buffer:void 0,s=r?r.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),o=n?n.prototype:void 0,a=o?o.valueOf:void 0;e.exports=function(e){return a?Object(a.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)}},626393:(e,t,i)=>{var n=i(733448);e.exports=function(e,t){if(e!==t){var i=void 0!==e,o=null===e,a=e==e,r=n(e),s=void 0!==t,l=null===t,c=t==t,d=n(t);if(!l&&!d&&!r&&e>t||r&&s&&c&&!l&&!d||o&&s&&c||!i&&c||!a)return 1;if(!o&&!r&&!d&&e{var n=i(626393);e.exports=function(e,t,i){for(var o=-1,a=e.criteria,r=t.criteria,s=a.length,l=i.length;++o=l?c:c*("desc"==i[o]?-1:1)}return e.index-t.index}},200278:e=>{e.exports=function(e,t){var i=-1,n=e.length;for(t||(t=Array(n));++i{var n=i(234865),o=i(789465);e.exports=function(e,t,i,a){var r=!i;i||(i={});for(var s=-1,l=t.length;++s{var n=i(698363),o=i(799551);e.exports=function(e,t){return n(e,o(e),t)}},201911:(e,t,i)=>{var n=i(698363),o=i(151442);e.exports=function(e,t){return n(e,o(e),t)}},614429:(e,t,i)=>{var n=i(555639)["__core-js_shared__"];e.exports=n},321463:(e,t,i)=>{var n=i(105976),o=i(816612);e.exports=function(e){return n((function(t,i){var n=-1,a=i.length,r=a>1?i[a-1]:void 0,s=a>2?i[2]:void 0;for(r=e.length>3&&"function"==typeof r?(a--,r):void 0,s&&o(i[0],i[1],s)&&(r=a<3?void 0:r,a=1),t=Object(t);++n{var n=i(498612);e.exports=function(e,t){return function(i,o){if(null==i)return i;if(!n(i))return e(i,o);for(var a=i.length,r=t?a:-1,s=Object(i);(t?r--:++r{e.exports=function(e){return function(t,i,n){for(var o=-1,a=Object(t),r=n(t),s=r.length;s--;){var l=r[e?s:++o];if(!1===i(a[l],l,a))break}return t}}},538777:(e,t,i)=>{var n=i(610852),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},967114:(e,t,i)=>{var n=i(288668),o=i(282908),a=i(274757);e.exports=function(e,t,i,r,s,l){var c=1&i,d=e.length,u=t.length;if(d!=u&&!(c&&u>d))return!1;var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var _=-1,m=!0,g=2&i?new n:void 0;for(l.set(e,t),l.set(t,e);++_{var n=i(562705),o=i(611149),a=i(977813),r=i(967114),s=i(668776),l=i(321814),c=n?n.prototype:void 0,d=c?c.valueOf:void 0;e.exports=function(e,t,i,n,c,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 o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var _=1&n;if(h||(h=l),e.size!=t.size&&!_)return!1;var m=p.get(e);if(m)return m==t;n|=2,p.set(e,t);var g=r(h(e),h(t),n,c,u,p);return p.delete(e),g;case"[object Symbol]":if(d)return d.call(e)==d.call(t)}return!1}},916096:(e,t,i)=>{var n=i(458234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,i,a,r,s){var l=1&i,c=n(e),d=c.length;if(d!=n(t).length&&!l)return!1;for(var u=d;u--;){var p=c[u];if(!(l?p in t:o.call(t,p)))return!1}var h=s.get(e),_=s.get(t);if(h&&_)return h==t&&_==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++u{var n=i(868866),o=i(799551),a=i(3674);e.exports=function(e){return n(e,a,o)}},946904:(e,t,i)=>{var n=i(868866),o=i(151442),a=i(481704);e.exports=function(e){return n(e,a,o)}},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}},301499:(e,t,i)=>{var n=i(689162),o=i(3674);e.exports=function(e){for(var t=o(e),i=t.length;i--;){var a=t[i],r=e[a];t[i]=[a,r,n(r)]}return t}},610852:(e,t,i)=>{var n=i(28458),o=i(647801);e.exports=function(e,t){var i=o(e,t);return n(i)?i:void 0}},385924:(e,t,i)=>{var n=i(205569)(Object.getPrototypeOf,Object);e.exports=n},799551:(e,t,i)=>{var n=i(234963),o=i(770479),a=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,s=r?function(e){return null==e?[]:(e=Object(e),n(r(e),(function(t){return a.call(e,t)})))}:o;e.exports=s},151442:(e,t,i)=>{var n=i(862488),o=i(385924),a=i(799551),r=i(770479),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,a(e)),e=o(e);return t}:r;e.exports=s},664160:(e,t,i)=>{var n=i(618552),o=i(357071),a=i(853818),r=i(458525),s=i(70577),l=i(644239),c=i(680346),d="[object Map]",u="[object Promise]",p="[object Set]",h="[object WeakMap]",_="[object DataView]",m=c(n),g=c(o),x=c(a),f=c(r),y=c(s),v=l;(n&&v(new n(new ArrayBuffer(1)))!=_||o&&v(new o)!=d||a&&v(a.resolve())!=u||r&&v(new r)!=p||s&&v(new s)!=h)&&(v=function(e){var t=l(e),i="[object Object]"==t?e.constructor:void 0,n=i?c(i):"";if(n)switch(n){case m:return _;case g:return d;case x:return u;case f:return p;case y:return h}return t}),e.exports=v},647801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},900222:(e,t,i)=>{var n=i(671811),o=i(135694),a=i(701469),r=i(565776),s=i(541780),l=i(240327);e.exports=function(e,t,i){for(var c=-1,d=(t=n(t,e)).length,u=!1;++c{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),o=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 o.call(t,e)?t[e]:void 0}},521327:(e,t,i)=>{var n=i(894536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.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),o=i(257157),a=i(593147),r=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 o(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 a(e);case"[object Set]":return new l;case"[object Symbol]":return r(e)}}},738517:(e,t,i)=>{var n=i(603118),o=i(385924),a=i(225726);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:n(o(e))}},137285:(e,t,i)=>{var n=i(562705),o=i(135694),a=i(701469),r=n?n.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(r&&e&&e[r])}},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{var n=i(977813),o=i(498612),a=i(565776),r=i(513218);e.exports=function(e,t,i){if(!r(i))return!1;var s=typeof t;return!!("number"==s?o(i)&&a(t,i.length):"string"==s&&t in i)&&n(i[t],e)}},115403:(e,t,i)=>{var n=i(701469),o=i(733448),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!o(e))||(r.test(e)||!a.test(e)||null!=t&&e in Object(t))}},37019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},215346:(e,t,i)=>{var n,o=i(614429),a=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!a&&a in e}},225726:e=>{var t=Object.prototype;e.exports=function(e){var i=e&&e.constructor;return e===("function"==typeof i&&i.prototype||t)}},689162:(e,t,i)=>{var n=i(513218);e.exports=function(e){return e==e&&!n(e)}},327040:e=>{e.exports=function(){this.__data__=[],this.size=0}},514125:(e,t,i)=>{var n=i(218470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,i=n(t,e);return!(i<0)&&(i==t.length-1?t.pop():o.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__,o=n(i,e);return o<0?(++this.size,i.push([e,t])):i[o][1]=t,this}},924785:(e,t,i)=>{var n=i(301989),o=i(738407),a=i(357071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||o),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),o=i.size;return i.set(e,t),this.size+=i.size==o?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}},542634:e=>{e.exports=function(e,t){return function(i){return null!=i&&(i[e]===t&&(void 0!==t||e in Object(i)))}}},624523:(e,t,i)=>{var n=i(288306);e.exports=function(e){var t=n(e,(function(e){return 500===i.size&&i.clear(),e})),i=t.cache;return t}},894536:(e,t,i)=>{var n=i(610852)(Object,"create");e.exports=n},86916:(e,t,i)=>{var n=i(205569)(Object.keys,Object);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}},531167:(e,t,i)=>{e=i.nmd(e);var n=i(431957),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,r=a&&a.exports===o&&n.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||r&&r.binding&&r.binding("util")}catch(t){}}();e.exports=s},205569:e=>{e.exports=function(e,t){return function(i){return e(t(i))}}},545357:(e,t,i)=>{var n=i(896874),o=Math.max;e.exports=function(e,t,i){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,r=-1,s=o(a.length-t,0),l=Array(s);++r{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),o=i(521275)(n);e.exports=o},521275:e=>{var t=Date.now;e.exports=function(e){var i=0,n=0;return function(){var o=t(),a=16-(o-n);if(n=o,a>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),o=i(357071),a=i(883369);e.exports=function(e,t){var i=this.__data__;if(i instanceof n){var r=i.__data__;if(!o||r.length<199)return r.push([e,t]),this.size=++i.size,this;i=this.__data__=new a(r)}return i.set(e,t),this.size=i.size,this}},555514:(e,t,i)=>{var n=i(624523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,r=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,i,n,o){t.push(n?o.replace(a,"$1"):i||e)})),t}));e.exports=r},240327:(e,t,i)=>{var n=i(733448);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},680346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(i){}try{return e+""}catch(i){}}return""}},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}},227361:(e,t,i)=>{var n=i(297786);e.exports=function(e,t,i){var o=null==e?void 0:n(e,t);return void 0===o?i:o}},379095:(e,t,i)=>{var n=i(200013),o=i(900222);e.exports=function(e,t){return null!=e&&o(e,t,n)}},406557:e=>{e.exports=function(e){return e}},135694:(e,t,i)=>{var n=i(909454),o=i(637005),a=Object.prototype,r=a.hasOwnProperty,s=a.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&r.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},498612:(e,t,i)=>{var n=i(623560),o=i(541780);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},229246:(e,t,i)=>{var n=i(498612),o=i(637005);e.exports=function(e){return o(e)&&n(e)}},644144:(e,t,i)=>{e=i.nmd(e);var n=i(555639),o=i(595062),a=t&&!t.nodeType&&t,r=a&&e&&!e.nodeType&&e,s=r&&r.exports===a?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},618446:(e,t,i)=>{var n=i(690939);e.exports=function(e,t){return n(e,t)}},623560:(e,t,i)=>{var n=i(644239),o=i(513218);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},541780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},356688:(e,t,i)=>{var n=i(225588),o=i(307518),a=i(531167),r=a&&a.isMap,s=r?o(r):n;e.exports=s},968630:(e,t,i)=>{var n=i(644239),o=i(385924),a=i(637005),r=Function.prototype,s=Object.prototype,l=r.toString,c=s.hasOwnProperty,d=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var i=c.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&l.call(i)==d}},472928:(e,t,i)=>{var n=i(829221),o=i(307518),a=i(531167),r=a&&a.isSet,s=r?o(r):n;e.exports=s},936719:(e,t,i)=>{var n=i(238749),o=i(307518),a=i(531167),r=a&&a.isTypedArray,s=r?o(r):n;e.exports=s},3674:(e,t,i)=>{var n=i(14636),o=i(400280),a=i(498612);e.exports=function(e){return a(e)?n(e):o(e)}},481704:(e,t,i)=>{var n=i(14636),o=i(710313),a=i(498612);e.exports=function(e){return a(e)?n(e,!0):o(e)}},288306:(e,t,i)=>{var n=i(883369);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var i=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=i.cache;if(a.has(o))return a.get(o);var r=e.apply(this,n);return i.cache=a.set(o,r)||a,r};return i.cache=new(o.Cache||n),i}o.Cache=n,e.exports=o},682492:(e,t,i)=>{var n=i(642980),o=i(321463)((function(e,t,i){n(e,t,i)}));e.exports=o},139601:(e,t,i)=>{var n=i(840371),o=i(379152),a=i(115403),r=i(240327);e.exports=function(e){return a(e)?n(r(e)):o(e)}},189734:(e,t,i)=>{var n=i(121078),o=i(882689),a=i(105976),r=i(816612),s=a((function(e,t){if(null==e)return[];var i=t.length;return i>1&&r(e,t[0],t[1])?t=[]:i>2&&r(t[0],t[1],t[2])&&(t=[t[0]]),o(e,n(t,1),[])}));e.exports=s},770479:e=>{e.exports=function(){return[]}},595062:e=>{e.exports=function(){return!1}},959881:(e,t,i)=>{var n=i(698363),o=i(481704);e.exports=function(e){return n(e,o(e))}},615071:(e,t,i)=>{i.d(t,{Z:()=>b});var n=i(487462),o=i(263366),a=i(875068);i(45697);function r(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=i(667294),l=i(973935);const c=!1;var d=i(500220),u="unmounted",p="exited",h="entering",_="entered",m="exiting",g=function(e){function t(t,i){var n;n=e.call(this,t,i)||this;var o,a=i&&!i.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(o=p,n.appearStatus=h):o=_:o=t.unmountOnExit||t.mountOnEnter?u:p,n.state={status:o},n.nextCallback=null,n}(0,a.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:p}:null};var i=t.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var i=this.state.status;this.props.in?i!==h&&i!==_&&(t=h):i!==h&&i!==_||(t=m)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,i,n=this.props.timeout;return e=t=i=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,i=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:i}},i.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===h?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===p&&this.setState({status:u})},i.performEnter=function(e){var t=this,i=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[l.findDOMNode(this),n],a=o[0],r=o[1],s=this.getTimeouts(),d=n?s.appear:s.enter;!e&&!i||c?this.safeSetState({status:_},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,r),this.safeSetState({status:h},(function(){t.props.onEntering(a,r),t.onTransitionEnd(d,(function(){t.safeSetState({status:_},(function(){t.props.onEntered(a,r)}))}))})))},i.performExit=function(){var e=this,t=this.props.exit,i=this.getTimeouts(),n=this.props.nodeRef?void 0:l.findDOMNode(this);t&&!c?(this.props.onExit(n),this.safeSetState({status:m},(function(){e.props.onExiting(n),e.onTransitionEnd(i.exit,(function(){e.safeSetState({status:p},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:p},(function(){e.props.onExited(n)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,i=!0;return this.nextCallback=function(n){i&&(i=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var i=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(i&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],a=o[0],r=o[1];this.props.addEndListener(a,r)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,i=t.children,n=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,o.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(d.Z.Provider,{value:null},"function"==typeof i?i(e,n):s.cloneElement(s.Children.only(i),n))},t}(s.Component);function x(){}g.contextType=d.Z,g.propTypes={},g.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:x,onEntering:x,onEntered:x,onExit:x,onExiting:x,onExited:x},g.UNMOUNTED=u,g.EXITED=p,g.ENTERING=h,g.ENTERED=_,g.EXITING=m;const f=g;var y=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return n=t,void((i=e).classList?i.classList.remove(n):"string"==typeof i.className?i.className=r(i.className,n):i.setAttribute("class",r(i.className&&i.className.baseVal||"",n)));var i,n}))},v=function(e){function t(){for(var t,i=arguments.length,n=new Array(i),o=0;o{i.d(t,{Z:()=>n});const n=i(667294).createContext(null)},17314:(e,t,i)=>{i.d(t,{Z:()=>c});var n,o,a=i(813653),r=i(861470),s=0,l=0;const c=function(e,t,i){var c=t&&i||0,d=t||new Array(16),u=(e=e||{}).node||n,p=void 0!==e.clockseq?e.clockseq:o;if(null==u||null==p){var h=e.random||(e.rng||a.Z)();null==u&&(u=n=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==p&&(p=o=16383&(h[6]<<8|h[7]))}var _=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:l+1,g=_-s+(m-l)/1e4;if(g<0&&void 0===e.clockseq&&(p=p+1&16383),(g<0||_>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=_,l=m,o=p;var x=(1e4*(268435455&(_+=122192928e5))+m)%4294967296;d[c++]=x>>>24&255,d[c++]=x>>>16&255,d[c++]=x>>>8&255,d[c++]=255&x;var f=_/4294967296*1e4&268435455;d[c++]=f>>>8&255,d[c++]=255&f,d[c++]=f>>>24&15|16,d[c++]=f>>>16&255,d[c++]=p>>>8|128,d[c++]=255&p;for(var y=0;y<6;++y)d[c+y]=u[y];return t||(0,r.Z)(d)}},106991:(e,t,i)=>{(window.__PWS_LOADED_HANDLERS__=window.__PWS_LOADED_HANDLERS__||{})["www/pin/[id]/repin"]=function(){return i(124159).Z}},686180:(e,t,i)=>{i.d(t,{Z:()=>p});var n=i(983722),o=i(635240),a=i(427014),r=i(172071),s=i(550858),l=i(762752),c=i(735422);const d=1,u=3;const p=new class{constructor(){this.versionState=d,this.preparingNewVersion=!1}checkVersion(e,t){const i=(0,o.Z)(),d=(0,n.Z)(),{isAuthenticated:p,userAgent:{isMobile:h,isTablet:_}}=null!=d?d:{},m=p&&!h&&!_;if(e!==i){var g,x;if(this.versionState!==u)(0,a.Z)({appType:null==d?void 0:d.appTypeDetailed,currVersion:(0,o.Z)(),deviceType:m?"desktop":"mobile",eventType:"signal",eventName:"new_version_required",isBot:null!==(g=null==d?void 0:d.isBot)&&void 0!==g&&g,nextVersion:e,originHost:t,stage:null!==(x=null==d?void 0:d.stage)&&void 0!==x?x:"unknown"}),this.versionState=u;e===this.nextVersion||this.preparingNewVersion||(this.preparingNewVersion=!0,m?(0,l.N)().catch((()=>(0,l.D)("checkVersion"))).finally((()=>{this.preparingNewVersion=!1})):((0,c.Ng)().catch((()=>(r.Z.increment("mweb_service_worker.prepareNewVersion.error",1),(0,c.Dm)()))).finally((()=>{r.Z.increment("mweb.new_version.refresh",1),this.preparingNewVersion=!1})),(0,s.Qi)()),this.nextVersion=e)}}isNewVersionRequired(){return this.versionState===u}}},412067:(e,t,i)=>{i.d(t,{Z:()=>v});var n=i(686180),o=i(56641),a=i(124237);var r=i(323716),s=i(643913),l=i(204088),c=i(432300),d=i(172071),u=i(422722),p=i(170815),h=i(584595),_=i(826067),m=i(7789),g=i(966113),x=i(801645);function f(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let y=null;class v{constructor(e,t){f(this,"abortCallback",null),f(this,"isBackgroundSyncEnabled",!1),this.name=e,this.options=t?{...t}:{}}static setDefaultConstructorFn(e){y=e}static create(e,t){if(y){return new y(e,t||{})}throw new Error("Couldn't find constructor function for "+e)}_isUrlShortEnoughForHttpGet(e,t){return(e+"?"+(0,s.Z)(t)).length<=2e3}_isAuthDesktop(){const{isAuthenticated:e,userAgent:{isTablet:t,isMobile:i}}=v.requestContext;return e&&(!t&&!i)}abort(){this.abortCallback&&(this.abortCallback(),this.abortCallback=null)}isCalling(){return!!this.abortCallback}callGet(e,t={}){m.DQ&&(t["X-B3-Flags"]="1");const{logNetworkTimer:i,loggerComponentName:n}=this.options,o=i?new p.Z:null;return o&&o.start(),this.call("get",e,t).then((e=>(o&&(o.end(),u.default.logToServer(u.default.SERVER_LOG_TYPE.NETWORK_LOAD,u.default.HTTP_METHOD.POST,{timing:o.getCompletedTime(),component:n||this.name})),e)))}callCreate(e,t){return this.call("create",e,t)}callUpdate(e,t){return this.call("update",e,t)}callDelete(e,t){return this.call("delete",e,t)}async call(e,t,i){navigator.onLine||this.isBackgroundSyncEnabled||d.Z.increment("resource_factory_not_online",1,{resourceName:this.name});const n=!t||void 0===t.async||t.async,o=t&&t.timeout||null,r=this._call(e,n,o,i);try{const e=await r;this.onResponseSuccess(e)}catch(s){if(s&&19===s.api_error_code&&v.initialUser.is_write_banned)console.error("User is write banned");else if(t&&t.showError){const e=void 0;a.Z.showError(s.message,null,e)}}return r}getAjaxParams({async:e,headers:t,method:i,timeoutSeconds:n}){const o={options:this.options,context:{}},a=`/resource/${this.name}/${i}/`,r={source_url:(0,_.JJ)(),data:JSON.stringify(o)},s="get"===i&&this._isUrlShortEnoughForHttpGet(a,r);!s&&this.isBackgroundSyncEnabled&&d.Z.increment("background_sync_request_header",1,{resourceName:this.name});return[{cache:!1,url:a,async:e,data:r,headers:{...(0,l.Z)({experimentHash:v.requestContext.experimentsClient.latestExperimentHashFromServer||"",windowIsInFocus:v.getWindowInFocus()}),...t},timeout:n||0,type:s?"GET":"POST"},o]}_call(e,t,i,n){throw new Error(`Resource _call must be implemented by child class - ${this.name} ${e}`)}onResponseSuccess(e){const t=this._isAuthDesktop(),i=e.client_context;if(i){const{active_experiments:a,app_version:r,triggerable_experiments:s,experiment_hash:l}=i;var o;if(n.Z.checkVersion(r,e.originHost),v.requestContext.experimentsClient.latestExperimentHashFromServer!==l&&a&&s)d.Z.increment("webapp.experiments.updateExperimentCache",1,{appVersion:r,isAuthenticated:null===(o=e.client_context)||void 0===o?void 0:o.is_authenticated,target:t?"authDesktop":"duplo"}),v.requestContext.experimentsClient&&(v.requestContext.experimentsClient.latestExperimentHashFromServer=l)}if(e.bookmarks&&(this.options.bookmarks=e.bookmarks),v.contextLogger&&e.client_context&&!this.options.disable_event_log_info){const{event_log_info:t}=e.client_context;t&&"event_type"in t&&v.contextLogger.logContextEvent({...t,..."aux_data"in t?{aux_data:{...t.aux_data}}:null})}}getLoginState(){return v.initialUser.login_state}redirectToLoginPage(){(0,o.Z)(g.ZE,!1)}async logoutUser(e){const{userAgent:{isTablet:t,isMobile:n}}=v.requestContext,o=!t&&!n;if(this._isAuthDesktop()){const{default:t}=await i.e(64630).then(i.bind(i,664630));t({logoutOnAbort:!0,reason:"authentication_failed",source:e,redirectUrl:g.ZE},(()=>{}))}else{const{default:t}=await i.e(26896).then(i.bind(i,626896));t({logoutOnAbort:!0,reason:"authentication_failed",source:e},o)}}showLimitedLoginPrompt(e,t){const i=this._isAuthDesktop();var n,o;(0,x.sh)({resourceUrl:e,currentPageUrl:(0,r.Z)(),subHeaderText:i?null:(n=v.i18n,null!==(o=null==n?void 0:n._('You\'ll need to log in to do that', 'limitedLogin.modalHeader.completeAction', 'Mobile web limited login modal to prompt users to log in in order to complete current action'))&&void 0!==o?o:"You'll need to log in to do that")}),d.Z.increment(i?"mweb.showLimitedLoginModal":"pure_react_resource.promptLoginForMoreOnResourceAuthError",1,{resource:this.name,resourceUrl:e,api_error_code:t})}shouldRedirectToLoginPage(e,t,i,n,o){return!(0,_.JJ)().startsWith("/login")&&((403!==e||2831!==n)&&(403===e&&o!==c.Z.DEFAULT||(401===e&&1001===n&&!t||(401!==e||n!==h.hE||"/resource/SentExternalInviteCallbackResource/create/"!==i)&&(401===e&&n===h.hE&&"/resource/UserSessionResource/delete/"!==i&&(this.logoutUser(i),!1)))))}}f(v,"i18n",null),f(v,"logTimerComplete",null),f(v,"getWindowInFocus",(()=>!1)),f(v,"normalizeResponse",null),f(v,"customDataManipulations",null)},479218:(e,t,i)=>{i.d(t,{H:()=>d,Z:()=>c});var n=i(983722),o=i(914671),a=i(204088),r=i(412067);function s(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class l{constructor(e,t=5e3){s(this,"_flushTimer",null),s(this,"_listeningForWindowClose",!1),s(this,"_queue",[]),s(this,"flush",(()=>{if(this._flushTimer&&(clearTimeout(this._flushTimer),this._flushTimer=null),0!==this._queue.length)try{this._send(),this._queue=[]}catch(e){}})),this._queueMapper=e,this._flushTimeoutDelay=t}_send(){}enqueue(e){if(this._queue=[...this._queue,e],!this._flushTimer)try{this._flushTimer=setTimeout(this.flush,this._flushTimeoutDelay)}catch(t){this.flush()}this._listeningForWindowClose||(window.addEventListener("beforeunload",this.flush),this._listeningForWindowClose=!0)}}class c extends l{constructor(e,t,i=5e3){super(t,i),this._resourceName=e}_send(){r.Z.create(this._resourceName,this._queueMapper(this._queue)).callCreate()}}class d extends l{constructor(e,t,i,n=5e3){super(i,n),s(this,"_failedKeepAlive",!1),s(this,"_stickyFallback",!0),this._url=e,this._resourceName=t}_shouldFallback(){return this._failedKeepAlive&&this._stickyFallback}fetch(e){var t;const{getCsrfToken:s}=i(628551),l=null===(t=(0,n.Z)())||void 0===t?void 0:t.experimentsClient,c=(0,a.Z)({experimentHash:(null==l?void 0:l.latestExperimentHashFromServer)||"",windowIsInFocus:o.Z.windowIsInFocus});window.fetch(this._url,{method:"POST",mode:"same-origin",keepalive:!0,headers:{...c,"Content-Type":"application/json",Accept:"application/json","X-CSRFToken":s(),"X-Requested-With":"XMLHttpRequest"},body:JSON.stringify({data:{options:e}})}).catch((()=>{this._failedKeepAlive=!0,e.keepAlive="failed";r.Z.create(this._resourceName,e).callCreate()}))}_send(){if(this._shouldFallback()){const e=this._queueMapper(this._queue);e.keepAlive="fallback";r.Z.create(this._resourceName,e).callCreate()}else{const e=this._queueMapper(this._queue);e.keepAlive=!0,this.fetch(e)}}}},983722:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(608832);function o(){return(0,n.l)()}},172071:(e,t,i)=>{i.d(t,{Z:()=>u});var n=i(441143),o=i.n(n),a=i(479218);let r=null;const s=[];let l=null;function c(){s.length&&s.forEach((e=>e.flush()))}function d(e,t,i,n,l){o()(n>=0&&n<=1,`sampleRate must be between 0 and 1. Found ${String(n)}`);const c=[e,t,i,n,l];r||(r=new a.H("/resource/StatsLogResource/create/","StatsLogResource",(e=>({source:"browser",stats:e})),5e3),s.push(r)),r.enqueue(c)}const u={increment(e,t=.1,i={}){d(e,1,"c",t,i)},count(e,t,i=.1,n={}){d(e,t,"c",i,n)},timing(e,t,i=.1,n={}){d(e,t,"ms",i,n)},gauge(e,t,i=.1,n={}){d(e,t,"g",i,n)},incrementNow(e,t=.1,i={}){d(e,1,"c",t,i),c()},countNow(e,t,i=.1,n={}){d(e,t,"c",i,n),c()},timingNow(e,t,i=.1,n={}){d(e,t,"ms",i,n),c()},initServer(e){l=e},__test_only_get_queue:()=>r?r._queue:[],__test_only_clear(){r=null}}},994608:(e,t,i)=>{i.d(t,{CA:()=>o,Gv:()=>n,k5:()=>a});const n=(e,t,i)=>{var n;return!t.is_repin&&!!e.isPartner&&[e.id,i].includes(null===(n=t.pinner)||void 0===n?void 0:n.id)},o=(e,t)=>!!(e&&!e.insufficient_data_response&&e.results&&e.results.length>0)&&t.checkExperiment("trends_show_on_closeup").anyEnabled,a=(e,t)=>{if(!e)return e;const i=[...e].filter((e=>{var t;return!(null===(t=e.mom_change)||void 0===t||!t.roundedPercentChange)&&e.mom_change.roundedPercentChange>0}));return i.length<=t?i:new Array(t).fill(1).map((()=>{const e=Math.floor(Math.random()*i.length);return i.splice(e,1)[0]}))}},832654:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(349700);function o(e,t){const{alt_text:i,auto_alt_text:o}=e;return i?(0,n.nk)(t._('This contains: {{ altText }}', 'web.altText', 'Alt text input by a human'),{altText:i}).join(""):o?(0,n.nk)(t._('This may contain: {{ autoAltText }}', 'web.altText', 'Alt text generated by a computer'),{autoAltText:o}).join(""):null}},105265:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(116303),o=i(883119),a=i(785893);function r({user:e,size:t="md",hasOutline:i}){const{first_name:r,image_medium_url:s,username:l}=e;return(0,a.jsx)(o.iP,{role:"link",rounding:"circle",href:`/${l}/`,children:(0,a.jsx)(n.Z,{size:t,src:null!=s?s:"",name:r||l||"",outline:i})})}},182750:(e,t,i)=>{i.d(t,{Z:()=>h});var n=i(667294),o=i(954931),a=i(968337),r=i.n(a),s=i(89254),l=i(610248),c=i(883119),d=i(785893);const u=new(r());u.tlds(l),u.add("#",{validate(e,t,i){const n=e.slice(t);return i.re.hashtag||(i.re.hashtag=new RegExp("^([a-zA-Z0-9_]){1,15}(?!_)(?=$|"+i.re.src_ZPCc+")")),i.re.hashtag.test(n)?!(t>=2&&"#"===n[t-2])&&n.match(i.re.hashtag)[0].length:0},normalize(e){e.url=`https://pinterest.com/search/pins/?q=${encodeURIComponent(e.text)}&rs=hashtag_pinrep`}});const p=({decoratedHref:e,decoratedText:t,index:i,isTrusted:n})=>(0,d.jsx)(c.rU,{href:e,onClick:({event:e})=>{e.stopPropagation()},target:n?null:"blank",children:t},i);class h extends n.PureComponent{parseString(e){if(""===e)return e;const t=(i=e,u.match(i));var i;if(!t)return e;const n=[];let a=0;return t.forEach(((t,i)=>{t.index>a&&n.push(e.substring(a,t.index));let r=t.url;const l=(0,o.Z)(t.url)&&!t.url.match(/help.pinterest/g);if(l){const e=(0,s.Z)(t.url);r=r.replace(e.origin,"")}const c=t.text,u=(0,d.jsx)(p,{decoratedHref:r,decoratedText:c,index:i,isTrusted:l});n.push(u),a=t.lastIndex})),e.length>a&&n.push(e.substring(a)),1===n.length?n[0]:n}parse(e,t=0){return"string"==typeof e?this.parseString(e):(0,n.isValidElement)(e)&&"a"!==e.type&&"button"!==e.type?(0,n.cloneElement)(e,{key:t},this.parse(e.props.children)):Array.isArray(e)?e.map(((e,t)=>this.parse(e,t))):e}render(){return(0,d.jsx)("span",{children:this.parse(this.props.children)})}}},986644:(e,t,i)=>{i.d(t,{A7:()=>o,YD:()=>a,lr:()=>n});const n=170,o=(e,t,i)=>{const n=new Date(e),o=(new Date).getTime()-n.getTime();return Math.floor(o/1e3)<60?t._('now', 'timestamp for a comment or post that was created within the last minute', 'timestamp for a comment or post that was created within the last minute'):i(e,!0)},a=e=>{const t=e.first_name||e.full_name||e.username;return t&&t.length>60?t.substring(0,60).trim().concat("..."):t}},283855:(e,t,i)=>{i.d(t,{K:()=>r,Q:()=>a});var n=i(667294);const o=(0,n.createContext)(null),a=o.Provider;function r(){const e=(0,n.useContext)(o);return null==e?void 0:e.featuredCommentId}},964569:(e,t,i)=>{i.d(t,{Z:()=>p});var n=i(702664),o=i(412067),a=i(422946),r=i(956800),s=i(274415),l=i(600147),c=i(139405),d=i(664569);const u={[d.o.aggregatedComment]:"AggregatedCommentReplyResource",[d.o.pin]:"AggregatedCommentResource",[d.o.didIt]:"DidItCommentsResource"};function p(){const e=(0,n.useDispatch)(),{aggregatedCommentCreated:t,updateCommentCount:i}=(0,c.nf)();return async({force:n=!0,fromUnifiedComment:c,objectId:d,objectType:p,orbacSubjectId:h,pinId:_,replyToCommentId:m,tags:g,text:x})=>{const f=u[p],y={force:n,objectId:d,pinId:_,tags:g,text:x,replyToCommentId:m,...h?{orbacSubjectId:h}:{}};let v=a.DV.AGGREGATED_COMMENTS;c&&(v="pin"===p?a.DV.UNIFIED_COMMENTS:a.DV.AGGREGATED_COMMENT_REPLIES);const b=await o.Z.create(f,y).callCreate({showError:!1}),P=b.resource_response.data;return t(d,P),e((0,r.vX)({feedType:v,feedId:d,itemIds:[P.id],itemType:P.type})),"pin"===p&&_?e((0,s.R)(_,1)):"aggregatedComment"===p?i(d,1):e((0,l.L8)(d,1)),P.id||b}}},28754:(e,t,i)=>{i.d(t,{Z:()=>u});var n=i(702664),o=i(412067),a=i(541776),r=i(422946),s=i(956800),l=i(274415),c=i(600147),d=i(139405);function u(){const e=(0,n.useDispatch)(),{aggregatedCommentDeleted:t,updateCommentCount:i}=(0,d.nf)();return async({aggregatedCommentId:n,aggregatedPinId:d,feedType:u,orbacSubjectId:p,parentId:h,type:_,updateParentCommentCount:m})=>{await o.Z.create("AggregatedCommentResource",{commentId:n,...p?{orbacSubjectId:p}:{}}).callDelete({showError:!1}),h&&(e((0,s.EX)({feedId:d||h,feedType:u||r.DV.AGGREGATED_COMMENTS,itemIds:[n],itemType:"aggregatedcomment"})),t(h,n),m&&(_||0===_)&&(_===a.Rv.TOP?e((0,l.R)(h,-1)):_===a.Rv.REPLY_TO_AGGREGATED?i(h,-1):e((0,c.L8)(h,-1))))}}},491431:(e,t,i)=>{i.d(t,{Z:()=>N});var n=i(615568),o=i(667294),a=i(702664),r=i(312918),s=i(319915),l=i(701500),c=i(605028),d=i(346794),u=i(947599),p=i(784590),h=i(116303),_=i(694379),m=i(898781),g=i(142103),x=i(19121),f=i(349700),y=i(883119),v=i(785893);const b=({creatorData:e,onTap:t,onUserFollow:i})=>{const n=(0,m.ZP)(),o=(0,x.Z)(),{explicitly_followed_by_me:a,follower_count:r=0,full_name:s,id:l,image_medium_url:c,username:d,verified_identity:u}=e||{},p=`/${d}/`;return(0,v.jsx)(y.sg,{span:4,children:(0,v.jsxs)(y.xu,{alignItems:"center",direction:"column",display:"flex",marginBottom:1,dangerouslySetInlineStyle:{__style:{padding:"0px 2px"}},children:[(0,v.jsx)(y.iP,{href:p,onTap:()=>t(l),role:"link",children:(0,v.jsxs)(y.kC,{alignItems:"center",direction:"column",justifyContent:"start",children:[(0,v.jsx)(y.xu,{width:60,height:60,children:(0,v.jsx)(h.Z,{name:null!=s?s:"",size:"fit",src:null!=c?c:"",verified:!(null==u||!u.verified)})}),(0,v.jsxs)(y.xu,{paddingY:2,marginBottom:1,children:[(0,v.jsx)(y.xu,{marginBottom:1,children:(0,v.jsx)(y.xv,{align:"center",lineClamp:1,size:"100",weight:"bold",children:s})}),(0,v.jsx)(y.xv,{align:"center",size:"100",children:(0,f.nk)(n.ngettext('{{ followerCount }} follower', '{{ followerCount }} followers', r, 'suggestedCreatorRep.creator.followerCount', 'the number of followers the user has'),{followerCount:(0,v.jsx)(_.Z,{shortform:!0,shortformMaximumFractionDigits:1,value:r},r)})})]})]})}),(0,v.jsx)(g.Z,{fullName:s,id:l,imageUrl:c,isOwnProfile:o.isAuth&&o.id===l,profileUrl:`/${d}/`,userFollowed:a,onUserFollow:e=>i({userIsNowFollowing:e,creatorId:l}),isSecondaryButton:!0,size:"sm",shouldStopEventPropagation:!0,viewType:3,viewParameter:156})]})})};var P=i(829407),w=i(407043);const S=({creatorRecs:e,fullName:t,pinId:i,viewParameter:n,viewType:o})=>{const{logContextEvent:a}=(0,w.v)(),r=(0,m.ZP)();(0,P.Z)((()=>{a({event_type:13,component:13891,view_parameter:n,view_type:o,aux_data:{...i?{pin_id:i}:{}}})}));const s=e=>{a({event_type:101,component:13891,view_parameter:n,view_type:o,object_id_str:e,aux_data:{...i?{pin_id:i}:{}}})},l=({userIsNowFollowing:e,creatorId:t})=>{a(e?{event_type:45,component:13891,object_id_str:t,view_parameter:n,view_type:o,aux_data:{...i?{pin_id:i}:{}}}:{event_type:46,component:13891,object_id_str:t,view_parameter:n,view_type:o,aux_data:{...i?{pin_id:i}:{}}})};return(0,v.jsx)(y.xu,{minWidth:440,paddingY:4,children:(0,v.jsxs)(y.xu,{borderStyle:"shadow",paddingX:5,paddingY:4,rounding:4,children:[t&&(0,v.jsx)(y.X6,{align:"center",size:"300",children:(0,f.nk)(r._('More like {{creatorName}}', 'suggestedCreatorRecs.title', 'Users like the one just followed. creatorName: the creator\'s name'),{creatorName:t})}),(0,v.jsx)(y.xu,{display:"flex",justifyContent:"between",marginTop:4,width:"100%",children:e.map((e=>(0,v.jsx)(b,{creatorData:e.user,onTap:s,onUserFollow:l},e.user_id)))})]})})},A=["creatorrecommendationitem.user_id","creatorrecommendationitem.user()","user.explicitly_followed_by_me","user.id","user.follower_count","user.full_name","user.image_medium_url","user.username","user.verified_identity"],k=({fullName:e,id:t,numCreatorsToShow:i=3,pinId:n,viewParameter:o,viewType:a})=>{const r=(0,p.Z)({name:"ApiResource",options:{url:"/v3/orientation/nux_creator_recommendations/",data:{fields:A.join(","),page_size:i,referrer:4,target_user:t}}});if(!r.isLoaded||!r.data||r.data.length!==i)return null;const s=r.data||[];return(0,v.jsx)(S,{creatorRecs:s,fullName:e,pinId:n,viewParameter:o,viewType:a})};var E=i(350118),T=i(558068);const C=function(e){const t=(0,E.S6)()(e);if(function(){const{forward:e}=(0,T.Hv)(),t=e&&e.length>0&&e[0].match&&e[0].match.path?e[0].match.path:null;return!(!t||!(e=>e.includes("/:username"))(t))}()&&t){const{isLeadPin:e,isProduct:i}=(0,c.Z)(t);return{creatorRecsPrevState:!(!t||e||i)&&!!t.show_suggested_creator_recs}}return{creatorRecsPrevState:!1}};var I=i(447948),j=i(378518),R=i(780280);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 z=(0,o.lazy)((()=>i.e(88814).then(i.bind(i,188814))));class O extends o.PureComponent{constructor(e){super(e),D(this,"anchorElementRef",(0,o.createRef)()),D(this,"handleNavigateAndLog",((e,t)=>{const{onNavigateClick:i,pin:n}=this.props,{id:o,sponsorship:a,story_pin_data_id:r}=n,{creator:{id:s}={}}=a||{},l=!!r;var c,d,u,p;e===t?this.props.logContextEvent({event_type:101,element:13382,view_type:this.viewType,view_parameter:this.viewParameter,...l?{component:230}:Object.freeze({}),object_id_str:o,aux_data:{pin_id:o,creator_id:s,aop_origin:"CreatorCard",...l?{story_pin_template_type:null===(c=n.story_pin_data)||void 0===c||null===(d=c.metadata)||void 0===d?void 0:d.template_type}:{}}}):this.props.logContextEvent({event_type:101,view_type:this.viewType,view_parameter:this.viewParameter,element:11619,...l?{component:230}:Object.freeze({}),object_id_str:o,aux_data:{pin_id:o,creator_id:s,...l?{story_pin_template_type:null===(u=n.story_pin_data)||void 0===u||null===(p=u.metadata)||void 0===p?void 0:p.template_type}:{}}});i&&i()})),D(this,"handleNavigateAndLogSponsorClick",(()=>{const{onNavigateClick:e,pin:t}=this.props,{id:i,sponsorship:n,story_pin_data_id:o}=t,{creator:{id:a}={},sponsor:{id:r}={}}=n||{},s=!!o;a&&r&&this.props.logContextEvent({event_type:101,view_type:this.viewType,view_parameter:this.viewParameter,element:11619,...s?{component:230}:Object.freeze({}),object_id_str:i,aux_data:{pin_id:i,creator_id:a,sponsor_id:r}}),e&&e()})),D(this,"handleUserFollow",((e,t)=>{const{dispatch:i,pin:{id:n,done_by_me:o}}=this.props;n.length;t?(this.props.logContextEvent({event_type:45,view_type:this.viewType,view_parameter:this.viewParameter,object_id_str:e,view_data:{isCurrentUser:o,viewObjectId:n,viewObjectIdStr:n},aux_data:{pin_id:n}}),this.setState({shouldShowCreatorRecs:!0}),i((0,I.Vw)(n))):this.props.logContextEvent({event_type:46,view_type:this.viewType,view_parameter:this.viewParameter,object_id_str:e,aux_data:{pin_id:n}})}));const t=e.officialUser;this.state={shouldShowCreatorRecs:e.suggestedCreatorRecsPrevState,user:t}}static getDerivedStateFromProps(e,t){const i=e.officialUser;if(i&&i!==t.user)return{...t,user:i};const n=e.suggestedCreatorRecsPrevState;return n&&!t.shouldShowCreatorRecs?{...t,shouldShowCreatorRecs:n}:null}get viewType(){return this.props.viewType||3}get viewParameter(){return this.props.viewParameter||156}get shouldShowCreatorRecs(){const{pin:e}=this.props,{isLeadPin:t,isProduct:i}=(0,c.Z)(e);return Boolean(!t&&!i&&this.state.shouldShowCreatorRecs)}renderProfile(e){var t,i,n;const{color:o,pin:a,viewer:c,isORBACProfileManager:d,renderAnchoredGuidedEducation:p}=this.props,{experimentsClient:h}=this.props.requestContext,{full_name:_,follower_count:m,id:x,image_medium_url:f,is_verified_merchant:b,username:P}=e,w=Boolean(null===(t=e.verified_identity)||void 0===t?void 0:t.verified),S=this.shouldShowCreatorRecs,{ad_match_reason:A,board:E,id:T,images:C,is_promoted:I,pinner:j,promoter:R,source_interest:D,sponsorship:O,recommendation_reason:L}=a||{},N=c.isAuth&&c.id===x,B=h.checkExperiment("web_ads_only_profiles_link_redirect").anyEnabled&&(null==j?void 0:j.is_ads_only_profile)&&null!=j&&j.ads_only_profile_site?j.ads_only_profile_site:`/${P}/`,{sponsor:M,status:Z}=O||{},{full_name:F="",username:U=""}=M||{};return(0,v.jsxs)(y.xu,{children:[(0,v.jsxs)(y.kC,{alignItems:"center",justifyContent:"start",children:[(0,v.jsx)(y.xu,{flex:"grow",children:(0,v.jsx)(r.default,{color:o,followerCount:m,fullName:_,imageUrl:f,hasVerifiedIdentity:w,isVerifiedMerchant:b,isPromoted:!!R&&I,onNavigateClick:()=>this.handleNavigateAndLog(B,null==j?void 0:j.ads_only_profile_site),onNavigateSponsorClick:this.handleNavigateAndLogSponsorClick,profileUrl:B,sponsorName:F,sponsorshipStatus:Z,sponsorUsername:U,openNewTab:B===(null==j?void 0:j.ads_only_profile_site)})}),!d&&(R&&I?(0,v.jsx)(s.Z,{name:"SafeSuspense_CreatorCard_LegacyPinFeedbackButton",children:(0,v.jsx)(u.Z,{children:(0,v.jsx)(z,{ad_match_reason:A,board:E,feedbackData:{},feedbackType:"promoted",pinId:T,pinImage:null!==(i=null==C||null===(n=C["236x"])||void 0===n?void 0:n.url)&&void 0!==i?i:"",pinner:j,promoter:R,isPromoted:!!R&&I,recommendationReason:L,sourceInterest:D,viewParameter:139,viewType:this.viewType})})}):(0,v.jsx)(y.xu,{flex:"none",children:(0,v.jsx)(y.xu,{children:!N&&(0,v.jsx)(l.Z,{anchor:".followButton",anchorElementRef:this.anchorElementRef.current,children:(0,v.jsx)(y.xu,{ref:this.anchorElementRef,children:(0,v.jsx)(g.Z,{button:({followText:e,onClick:t,userFollowed:i})=>(0,v.jsx)(y.xu,{"data-test-id":`user-${i?"unfollow":"follow"}-button`,children:(0,v.jsx)(y.zx,{fullWidth:!0,accessibilityLabel:i?this.props.i18n._('Following', 'creatorCard.followingButton.accessibilityLabel', 'Label to indicate this button as the following button'):this.props.i18n._('Follow', 'creatorCard.followButton.accessibilityLabel', 'Label to indicate this button as the follow button'),onClick:t,size:"lg",text:e,selected:!!i})}),fullName:_,id:x,imageUrl:f||"",inline:!0,isOwnProfile:N,onUserFollow:e=>this.handleUserFollow(x,e),profileUrl:B,size:"md",viewType:this.viewType,viewParameter:this.viewParameter})})})})}))]}),S&&(0,v.jsx)(k,{fullName:_,id:x,pinId:T,viewType:this.viewType,viewParameter:this.viewParameter}),!!p&&this.anchorElementRef.current&&p({ref:this.anchorElementRef})]})}render(){const{user:e}=this.state;if(!e)return(0,v.jsx)(y.xu,{});const t=this.renderProfile(e);return(0,v.jsx)(y.xu,{position:"relative",children:t})}}function L(e){const{logContextEvent:t}=(0,w.v)(),i=(0,m.ZP)(),n=(0,j._)({id:12}),o=n&&503416===n.experience_id&&n.display_data&&n.display_data.showAnchoredGuidedEducation,{creatorRecsPrevState:r}=C(e.pin.id),s=o?({ref:e})=>(0,v.jsx)(d.Z,{anchor:e}):void 0;return(0,v.jsx)(O,{...e,dispatch:(0,a.useDispatch)(),requestContext:(0,R.B)(),i18n:i,logContextEvent:t,renderAnchoredGuidedEducation:s,suggestedCreatorRecsPrevState:r})}const N=(0,n.Z)((function(e){return(0,v.jsx)(L,{...e})}))},695014:(e,t,i)=>{i.d(t,{Z:()=>d});var n=i(667294),o=i(702664),a=i(616211),r=i(898781),s=i(412067);var l=i(883119),c=i(785893);function d({favorited:e,favoriteCount:t,isCloseupButton:i,onFavorite:d,onUnfavorite:u,pinId:p,size:h}){const _=(0,r.ZP)(),m=(0,o.useDispatch)(),[g,x]=(0,n.useState)(!1),[f,y]=(0,n.useState)(e),[v,b]=(0,n.useState)(null!=t?t:0),P=async()=>{var e;y(!f),x(!0),f?(b(v-1),await m((e=p,async t=>{await s.Z.create("ApiResource",{url:`/v3/pins/${e}/favorite/`}).callDelete(),t(function(e){return{type:"PIN_FAVORITE",payload:{id:e,increment:-1,value:!1}}}(e))})),u(),x(!1)):(b(v+1),await m(function(e){return async t=>{await s.Z.create("ApiResource",{url:`/v3/pins/${e}/favorite/`}).callCreate(),t(function(e){return{type:"PIN_FAVORITE",payload:{id:e,increment:1,value:!0}}}(e))}}(p)),d(),x(!1))},w=v<10?v:_._('9+', 'favoriteButton.favoriteCountText', 'Text shown when greater than 9 favorites on Pin');return(0,c.jsxs)(l.kC,{alignItems:"center",gap:{row:1,column:0},children:[void 0!==t&&v>0&&(0,c.jsx)(l.xv,{size:"200",weight:"bold",children:w}),(0,c.jsx)(a.Z,{isCloseupButton:i,isDisabled:g,isFavorited:f,onTap:()=>{P()},size:h})]})}},578722:(e,t,i)=>{i.d(t,{H1:()=>c,HW:()=>a,iL:()=>l,pN:()=>s,s_:()=>r});var n=i(19121),o=i(773285);const a=new Date(2022,1,1);function r(){const{checkExperiment:e}=(0,o.F)(),t=["enabled_public","employees"].includes(e("web_ip_plays",{dangerouslySkipActivation:!0}).group),i=e("web_ip_pinner_plays",{dangerouslySkipActivation:!0}).anyEnabled,n=e("android_ios_web_ip_plays_dark_reads").anyEnabled;return t||i||n}function s({isOwnPin:e,isStoryPin:t,pinCreationDate:i,surface:r}){const s=(0,n.Z)(),{checkExperiment:l}=(0,o.F)(),c=l("web_play_playtime_pin_stats",{dangerouslySkipActivation:!0}).anyEnabled,d=!!("CreatorProfileStoryPinGrid"===r&&t&&i&&i.getTime()>=a.getTime()&&c&&s.isPartner&&e)&&l("web_ip_plays").anyEnabled,u=["enabled_public","employees"].includes(l("web_ip_plays",{dangerouslySkipActivation:!0}).group);if("CreatorProfileStoryPinGrid"===r&&t&&i&&i.getTime()>=a.getTime()){if(s.isPartner)return e&&d||!e&&u;if(l("web_ip_pinner_plays").anyEnabled)return!0}return!1}function l({isOwnPin:e,isPartner:t}){const{checkExperiment:i}=(0,o.F)(),n=["enabled_public","employees"].includes(i("web_ip_plays",{dangerouslySkipActivation:!0}).group),a=i("web_ip_pinner_plays",{dangerouslySkipActivation:!0}).anyEnabled;return!(e||!(a&&!t||n&&t))}function c({isOwnPin:e,isPartner:t}){const{checkExperiment:i}=(0,o.F)(),n=i("web_ip_plays",{dangerouslySkipActivation:!0}).anyEnabled,a=i("web_ip_pinner_plays",{dangerouslySkipActivation:!0}).anyEnabled;return!(!e||!(n&&t||a&&!t))}},397066:(e,t,i)=>{i.d(t,{b:()=>d,h:()=>u});var n=i(983722),o=i(768559),a=i(43760),r=i(170168),s=i(619937),l=i(48714),c=i(366284);const d=({href:e,pinId:t,pin:i,location:a,auxData:d},u)=>{if(i&&i.is_promoted){var p,h,_,m;const P=(0,o.Z)({boardUrl:null===(p=i.board)||void 0===p?void 0:p.url,callToCreateSourcePinId:i.call_to_create_source_pin_id,location:a,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:d}),S=(0,n.Z)();if((0,c.G6)(null!==(_=null==S?void 0:S.userAgent.browserName)&&void 0!==_?_:"")){var g,x;const{group:n}=null!==(g=null==S?void 0:S.experimentsClient.checkExperiment("m10n_event_conversion_measurement"))&&void 0!==g?g:{},o=null!=S&&null!==(x=S.userAgent)&&void 0!==x&&x.browserVersion?S.userAgent.browserVersion:"0.0",a=parseFloat(o.split(".")[0]+"."+o.split(".")[1]);if(void 0!==i.campaign_id&&a>=14.1&&["enabled_safari"].includes(n)){var f;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 o=""+(e%32*8+Math.floor(((new Date).getTime()-16409952e5)/864e5)%8);return n.setAttribute(s.$N.ATTRIBUTION_SOURCE_ID,o),n.setAttribute(s.$N.ATTRIBUTE_DESTINATION,i),n.setAttribute(s.$N.ATTRIBUTE_ON,i),n.click(),o})(null!==(f=i.pin_promotion_id)&&void 0!==f?f: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,c.i7)(null!==(m=null==S?void 0:S.userAgent.browserName)&&void 0!==m?m:"")){var y,v;const{group:n}=null!==(y=null==S?void 0:S.experimentsClient.checkExperiment("m10n_event_conversion_measurement_chrome"))&&void 0!==y?y:{},o=null!=S&&null!==(v=S.userAgent)&&void 0!==v&&v.browserVersion?parseInt(S.userAgent.browserVersion.split(".")[0],10):0;if(void 0!==i.attribution_source_id&&o>=101&&["enabled"].includes(n)){var b;const n=((e,t,i)=>{const n=new URL(`${r.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 o=document.createElement("a");return o.setAttribute("href",t),o.setAttribute("target","_blank"),o.setAttribute("rel","noopener nofollow noreferrer"),o.style.cursor="pointer",o.style.display="block",o.setAttribute(s.NR.ATTRIBUTION_SOURCE,n.toString()),o.click(),e})(null!==(b=i.attribution_source_id)&&void 0!==b?b:"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:r},s)=>{if("undefined"!=typeof window&&window.Windows)(0,a.Z)({url:e,pinId:t,pin:i,location:n,auxData:r});else{var c,u;if(d({href:e,pinId:t,pin:i,location:n,auxData:r},s))return;(0,l.Gj)({url:e,pinId:t,csrId:null,clientTrackingParams:(0,o.Z)({boardUrl:null==i||null===(c=i.board)||void 0===c?void 0:c.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:r})}}},955362:(e,t,i)=>{i.r(t),i.d(t,{default:()=>x});var n=i(667294),o=i(702664),a=i(205202),r=i(248975),s=i(705147),l=i(883561),c=i(898781),d=i(199387),u=i(447948),p=i(623568),h=i(116674),_=i(576440),m=i(883119),g=i(785893);function x({feedbackData:e,feedbackType:t,pin:i,pinTitle:x,setForcePrimary:f,transparentBackground:y}){var v,b;const P=(0,c.ZP)(),w=(0,o.useDispatch)(),{viewParameter:S,viewType:A}=(0,_.E)(),{reportPin:k}=(0,h.f)(),[E,T]=(0,n.useState)(!1),[C,I]=(0,n.useState)(),{ad_match_reason:j,show_ad_reasons:R,board:D,category:z,description:O,id:L="",images:N,is_promoted:B,pinner:M,promoter:Z,recommendation_reason:F,source_interest:U,videos:V}=i;var G;const H=(G=B?60:50,function(e){return(0,l.ZP)((e||"").trim(),G)})(null!=O?O:""),W=(0,a.Z)(N,"236x"),$=(0,p.iR)(V),K=(0,d.Z)(101,{component:0,element:981,object_id_str:L,aux_data:{feedback_type:t}}),q=()=>{R||(f(!1),w((0,u.i0)(L)),T(!1))};return(0,g.jsxs)(n.Fragment,{children:[(0,g.jsx)(m.xu,{"data-test-id":"feedback-button",ref:I,children:(0,g.jsx)(m.hU,{accessibilityLabel:P._('More information', 'accessibility label for overflow menu button', 'accessibility label for overflow menu button'),bgColor:y?"transparent":"white",icon:"ellipsis",iconColor:"darkGray",onClick:()=>{E?q():(f(!0),T(!0)),K()},size:"sm"})}),E&&(0,g.jsx)(m.xu,{onFocus:e=>e.stopPropagation(),children:(0,g.jsx)(s.Z,{anchor:C,ad_match_reason:j,bestPinImgSrc:(0,r.Z)({images:i.images,embedSrc:null===(v=i.embed)||void 0===v?void 0:v.src,embedType:null===(b=i.embed)||void 0===b?void 0:b.type}),board:D,feedbackData:e,feedbackType:t,hideDownload:$,isPromoted:B,onLinkClick:()=>{E&&q()},onDismiss:q,onHide:q,onDownloadHideFlyout:()=>{f(!1),T(!1)},pinCategory:z,pinDescription:H,pinId:L,pinImgSrc:W,pinner:M,pinTitle:x,promoter:Z,recommendationReason:F,reportPin:()=>{k(i,S,A),q()},sourceInterest:U,viewParameter:S,viewType:A})})]})}},705147:(e,t,i)=>{i.d(t,{Z:()=>k});var n=i(667294),o=i(702664),a=i(238771),r=i(920085),s=i(149230),l=i(379884),c=i(852964),d=i(814197),u=i(760372),p=i(407043),h=i(350118),_=i(813401),m=i(827896),g=i(898781),x=i(680046),f=i(349700),y=i(447948),v=i(883119),b=i(55275),P=i(276775),w=i(785893);function S(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.Component{constructor(e){super(e),S(this,"getRecommendationDescription",(()=>{const{i18n:e,ad_match_reason:t,board:i,feedbackType:n,pinner:o,promoter:a,recommendationReason:r,sourceInterest:s}=this.props,l={i18n:e,makeNavigateLink:this.makeNavigateLink};switch(n){case"pfy":return(0,x.Ud)({...l,feedback:{type:"pfy"}});case"pfyBoard":return(0,x.Ud)({...l,feedback:{type:"pfyBoard",recommendationReasonBoard:(null==r?void 0:r.board)&&{name:r.board.name,url:r.board.url}}});case"topic":return(0,x.Ud)({...l,feedback:{type:"topic",sourceInterest:s&&s.name&&s.url_name?{name:s.name,url_name:s.url_name}:null}});case"followed":return(0,x.Ud)({...l,feedback:{type:"followed",followed:o&&o.explicitly_followed_by_me?{type:"pinner",pinner:o.full_name?{full_name:o.full_name,username:o.username}:null}:{type:"board",board:i&&i.name&&i.url?{name:i.name,url:i.url}:null}}});case"promoted":return(0,x.Ud)({...l,feedback:{type:"promoted",promoter:!t&&a&&a.full_name?{full_name:a.full_name,username:a.username}:null}});default:return null}})),S(this,"getRecommendationDescriptionImage",(()=>{const{board:e,feedbackType:t,pinner:i,recommendationReason:n}=this.props;if("followed"!==t&&"pfyBoard"!==t)return null;let o,a,r;return i&&i.explicitly_followed_by_me?(o=i.image_small_url,a="50%",r=`/${i.username}`):e&&e.image_thumbnail_url&&(o=e.image_thumbnail_url,a="4px",r=n&&n.board&&n.board.url||e.url),o?(0,w.jsx)(v.xu,{dangerouslySetInlineStyle:{__style:{borderRadius:a}},flex:"none",marginStart:3,overflow:"hidden",children:(0,w.jsx)(v.iP,{onTap:()=>{var e;return this.props.history.push(null!==(e=r)&&void 0!==e?e:"")},children:(0,w.jsx)(v.zd,{height:40,wash:!0,width:40,children:(0,w.jsx)(v.Ee,{alt:"",fit:"cover",naturalHeight:1,naturalWidth:1,src:o})})})}):null})),S(this,"getUnfollowAction",(()=>{const{board:e,feedbackType:t,i18n:i,pinner:n,sourceInterest:o}=this.props;switch(t){case"followed":return n&&e?(0,x.oK)({i18n:i,makeNavigateLink:this.makeNavigateLink,boardId:e.id,display:n.explicitly_followed_by_me?{type:"pinner",data:{full_name:n.full_name,username:n.username}}:{type:"board",data:{name:e.name,url:e.url}}}):null;case"topic":if(!o)return null;const{id:t,name:a,url_name:r}=o;return t&&a&&r?(0,x.Iv)({i18n:i,makeNavigateLink:this.makeNavigateLink,sourceInterest:{id:t,name:a,url_name:r}}):null;default:return null}})),S(this,"getUndoText",(e=>"unfollowPinner"===e||"unfollowBoard"===e?this.props.i18n._('Follow again', 'Caption for button to undo a unfollowing of a topic', 'Caption for button to undo a unfollowing of a topic'):"")),S(this,"makeNavigateLink",((e,t,i,n)=>(0,w.jsx)(v.rU,{onClick:this.props.onLinkClick,href:t,display:"inlineBlock",underline:"hover",children:(0,w.jsx)(v.xu,{dangerouslySetInlineStyle:{__style:n?{display:"inline",color:"white",textDecorationColor:"white"}:{display:"inline"}},children:i})},e))),S(this,"reportPinOption",(()=>({action:"reportPin",elementType:974,text:this.props.i18n._('Report Pin', 'Report a pin in the dropdown', 'Report a pin in the dropdown'),description:this.props.i18n._('This goes against Pinterest\'s community guidelines', 'Description for the report pin option', 'Description for the report pin option'),callback:this.props.reportPin,dataTestId:"report-pin-option"}))),S(this,"hidePinOption",(e=>{const{clientTrackingParams:t,feedbackData:i,feedbackType:n,pinId:o,recommendationReason:a}=this.props,r="search"===n?973:982,{action:s,actionOptions:l}=(0,x.fJ)({feedbackData:i,feedbackType:n,pinId:o,recommendationReasonId:(0,c.Z)(a),pinFeedbackType:"pfy"===n?4:10,throughId:a&&(0,x.yl)(a),throughProperties:a&&(0,x.XZ)(a),clientTrackingParams:t(o)}),d=this.props.i18n._('Hide Pin', 'message displayed in pin feedback list', 'message displayed in pin feedback list');return{action:s,actionOptions:l,feedbackText:this.pinHiddenFeedbackText(e),text:d,description:this.props.i18n._('See fewer Pins like this', 'Description for the hide pin option', 'Description for the hide pin option'),elementType:r}})),S(this,"stopRecommendationOption",(()=>{const{clientTrackingParams:e,feedbackData:t,feedbackType:i,pinId:n,recommendationReason:o}=this.props,{board:a}=null!=o?o:{},r=(0,c.Z)(o),s=o&&(0,x.yl)(o),l=o&&(0,x.XZ)(o),d="pfyBoard"===i,{action:u,actionOptions:p}=(0,x.fJ)({feedbackData:t,feedbackType:i,pinId:n,recommendationReasonId:r,pinFeedbackType:d?2:4,throughId:s,throughProperties:l,clientTrackingParams:e(n)}),h=a?this.makeNavigateLink("boardUrl",a.url,a.name,!0):"";return{action:u,actionOptions:p,feedbackText:{subTitle:d&&a?(0,f.nk)(this.props.i18n._('We won\'t show you Pins inspired by your board {{ formattedBoard }} anymore.', 'Primary caption displayed in pin feedback list to unfollow a board', 'Primary caption displayed in pin feedback list to unfollow a board'),{formattedBoard:h}):this.props.i18n._('Got it! We won\'t show you Pins like this in the future.', 'message displayed after stopping recommendations from a pin', 'message displayed after stopping recommendations from a pin')},text:d&&a?(0,f.nk)(this.props.i18n._('Stop seeing Pins inspired by {{ boardName }}', 'Primary caption displayed in pin feedback list to unfollow a board', 'Primary caption displayed in pin feedback list to unfollow a board'),{boardName:a.name}):this.props.i18n._('See fewer Pins like this', 'Feedback option to stop recommendations inspired by this Pin', 'Feedback option to stop recommendations inspired by this Pin'),elementType:284}})),S(this,"unfollowBoardOption",(()=>{var e,t;const{board:i}=this.props,n=i?this.makeNavigateLink("boardUrl",null!==(e=i.url)&&void 0!==e?e:"",null!==(t=i.name)&&void 0!==t?t:"",!0):"",o=(0,f.nk)(this.props.i18n._('Unfollow {{ boardName }}', 'Primary caption displayed in pin feedback list to unfollow a board', 'Primary caption displayed in pin feedback list to unfollow a board'),{boardName:null==i?void 0:i.name}),a=(0,f.nk)(this.props.i18n._('Got it! You unfollowed {{ formattedBoard }} and won\'t see Pins saved to it in the future.', 'Confirmation text after unfollowing a board', 'Confirmation text after unfollowing a board'),{formattedBoard:n});return{action:"unfollowBoard",actionOptions:{board_id:null==i?void 0:i.id},feedbackText:{title:"",subTitle:a},text:o,description:(0,f.nk)(this.props.i18n._('Stop seeing Pins from the board "{{ boardName }}"', 'Secondary caption displayed in pin feedback list to unfollow a board', 'Secondary caption displayed in pin feedback list to unfollow a board'),{boardName:null==i?void 0:i.name}),elementType:10614}})),S(this,"unfollowTopicOption",(()=>{const{sourceInterest:e}=this.props;if(e){const{id:t,name:i="",url_name:n=""}=e,o=`/topics/${n}`,a=this.makeNavigateLink("topicUrl",o,i,!0),r=(0,f.nk)(this.props.i18n._('See fewer Pins from {{ topicName }}', 'Primary caption displayed in pin feedback list to unfollow a topic', 'Primary caption displayed in pin feedback list to unfollow a topic'),{topicName:i}),s=(0,f.nk)(this.props.i18n._('We\'ll show you fewer Pins from {{ formattedTopic }} in the future.', 'Confirmation text after unfollowing a topic', 'Confirmation text after unfollowing a topic'),{formattedTopic:a});return{action:"unfollowTopic",actionOptions:{interest_id:t,interest_list:u.X},feedbackText:{title:"",subTitle:s},text:r,description:(0,f.nk)(this.props.i18n._('Stop seeing Pins from the topic "{{ topicName }}"', 'Secondary caption displayed in pin feedback list to unfollow a topic', 'Secondary caption displayed in pin feedback list to unfollow a topic'),{topicName:e.name}),elementType:976}}return null})),S(this,"unfollowUserOption",(()=>{const{pinner:e}=this.props,{id:t,username:i,full_name:n}=null!=e?e:{},o=`/${i}`,a=e?this.makeNavigateLink("pinnerUrl",o,null!=n?n:"",!0):"";return{action:"unfollowPinner",actionOptions:{user_id:t},feedbackText:{title:"",subTitle:(0,f.nk)(this.props.i18n._('Got it! You unfollowed {{ formattedUser }} and won\'t see Pins they save in the future.', 'Confirmation text after unfollowing a user', 'Confirmation text after unfollowing a user'),{formattedUser:a})},text:(0,f.nk)(this.props.i18n._('Unfollow {{ fullName }}', 'Primary caption displayed in pin feedback list to unfollow a user', 'Primary caption displayed in pin feedback list to unfollow a user'),{fullName:n}),description:this.props.i18n._('Stop seeing all their Pins', 'Secondary caption displayed in pin feedback list to unfollow a user', 'Secondary caption displayed in pin feedback list to unfollow a user'),elementType:10640}})),S(this,"downloadPinOption",(()=>({action:"downloadPin",text:this.props.i18n._('Download image', 'Button to download Pin image', 'Button to download Pin image'),elementType:10836}))),S(this,"_pinFeedbackText",(()=>{var e,t,i,n;const{location:o,feedbackType:a,hideDownload:r,pinner:s}=this.props,l="followed"===this.props.feedbackType,c=o.pathname.includes("following"),d=(l||"topic"===a)&&!c,u=this.hidePinOption(d),p=this.reportPinOption(),h="promoted"!==a&&!r;switch(a){case"followed":const o=c,r=!o&&this.getRecommendationDescription(),l=null!=s&&s.explicitly_followed_by_me?this.unfollowUserOption():this.unfollowBoardOption();return{...r?{description:r}:{},options:[u,...d||o?[l]:[],..."promoted"!==a?[this.downloadPinOption()]:[],p]};case"promoted":const{pinId:_,showAdReasonsModal:m}=this.props,g=[u,{dataTestId:"why-am-i-seeing-this-ad-reasons",action:"showAdReasons",text:this.props.i18n._('Why am I seeing this ad?', 'app.common.react.components.PinFeedbackDropdown.adReasonText', 'Text to promoted pins explanation modal'),callback:()=>{m(_)}},p];return{description:null!==(e=this.getRecommendationDescription())&&void 0!==e?e:void 0,options:g};case"topic":const x=this.unfollowTopicOption(),f=[u,...d&&x?[x]:[],...h?[this.downloadPinOption()]:[],p];return{description:null!==(t=this.getRecommendationDescription())&&void 0!==t?t:void 0,options:f};case"pfy":case"pfyBoard":const y=[u,..."pfyBoard"===a?[this.stopRecommendationOption()]:[],...h?[this.downloadPinOption()]:[],p];return{description:null!==(i=this.getRecommendationDescription())&&void 0!==i?i:void 0,options:y};default:const v=[u,...h?[this.downloadPinOption()]:[],p];return{description:null!==(n=this.getRecommendationDescription())&&void 0!==n?n:void 0,options:v}}})),S(this,"pinHiddenFeedbackText",(e=>{const{isPromoted:t,promoter:i}=this.props,n=e?null:this.getUnfollowAction();return t&&null!=i&&i.full_name?{title:"",subTitle:(0,f.nk)(this.props.i18n._('{{ promoter }} has paid to have this pin show up where you\'d be more likely to notice it.', 'webapp.app.pinFeedbackDropdown.promotedFeedbackText.subtitle', 'Message displayed after hiding a promoted pin. promoter: the name of the person who promoted the pin.'),{promoter:i.full_name})}:n?{title:"",subTitle:this.getRecommendationDescription(),unfollow:n}:{title:"",subTitle:this.props.i18n._('Got it! We won\'t show you this Pin in the future.', 'message displayed after hiding a pin', 'message displayed after hiding a pin')}}));const t=this._pinFeedbackText();this.state={pinFeedbackConfig:t,showSecondary:!1}}onPinFeedbackActionButtonClick(e,t,i){e.stopPropagation(),t.auxData?this.handleClickLogging(t.elementType,t.auxData):this.handleClickLogging(t.elementType),(0,b.t)(t.action,t.actionOptions,i)}onPinHide(e,t,i,n){const{hidePinFeedback:o,onHide:a,pinId:r,showPinFeedback:s,showPinFeedbackOverlay:l,showPinFeedbackUndo:c,viewParameter:d,viewType:u,logContextEvent:p}=this.props;t&&i&&n?c(r,e,(0,x.EF)(i,n,r,u,d,o,p),this.getUndoText(n)):s(r,e),!i||i.promoted||10!==i.feedback_type&&4!==i.feedback_type?a():(this.setState({showSecondary:!0}),l(r))}handleClickLogging(e,t={}){const{feedbackType:i,viewParameter:n,viewType:o,logContextEvent:a}=this.props;a({event_type:101,view_type:o,view_parameter:n,element:e,component:(0,x.nb)(i),aux_data:{...t}})}renderButtons(){const{hideDownload:e,onDownloadHideFlyout:t,pinId:i,viewType:n,viewParameter:o,logContextEvent:a,isWindowsPwa:l}=this.props,{pinFeedbackConfig:c}=this.state,{options:d}=c,u=[],p=d.length;for(let h=0;hthis.onPinHide(c.feedbackText,p,c.actionOptions,c.action);if("downloadPin"!==c.action){const e=(0,s.Z)({url:c.link||""});let t="";Array.isArray(c.text)?t=c.text.join(""):"string"!=typeof c.text&&"number"!=typeof c.text||(t=c.text.toString()),u.push(c.link?(0,w.jsx)(v.Lt.Link,{href:c.link,isExternal:e,option:{value:c.action||"",label:t},dataTestId:c.dataTestId||""}):(0,w.jsx)(v.Lt.Item,{onSelect:({event:e})=>this.onPinFeedbackActionButtonClick(e,c,_),option:{value:c.action||"",label:t},dataTestId:c.dataTestId||""}))}else if(!e&&!1===l){const{bestPinImgSrc:e,pinTitle:s,pinDescription:l,pinCategory:c}=this.props;u.push((0,w.jsx)(v.Lt.Item,{onSelect:()=>{(0,r.Z)({category:c,filename:s||l,imageDownloadSuccessCallback:()=>{t&&t()},imgSrc:e,pinId:i,viewParameter:o,viewType:n},a)},option:{value:"downloadImage",label:this.props.i18n._('Download image', 'pinRep.pinFeedbackDropdown.downloadImage', 'Label to download the pin image')}}))}}return u}render(){const{pinFeedbackConfig:e,showSecondary:t}=this.state,{anchor:i,onDismiss:o,feedbackData:r,feedbackType:s,hideAdReasonsModal:c,pinId:u,onHide:p,recommendationReason:h,showAdReasons:_,viewParameter:m,viewType:g}=this.props,{description:x}=e,f=this.getRecommendationDescriptionImage();return(0,w.jsxs)(n.Fragment,{children:[t?(0,w.jsx)(l.Z,{anchor:i,feedbackData:r,feedbackType:s,pinId:u,onDismiss:o,onHide:p,recommendationReason:h,viewParameter:m,viewType:g}):(0,w.jsx)(v.Lt,{anchor:i,id:"pin-action-dropdown",idealDirection:"down",onDismiss:o,zIndex:d.lI,headerContent:x&&(0,w.jsxs)(v.kC,{alignItems:"center",children:[(0,w.jsx)(v.xu,{"data-pin-recommendation-reason":null==h?void 0:h.reason,maxHeight:56,overflow:"hidden",children:(0,w.jsx)(v.xv,{color:"default",overflow:"normal",size:"200",children:x})}),f]}),children:this.renderButtons()}),_&&(0,w.jsx)(a.ZP,{onDismiss:()=>c(u),pinId:u})]})}}function k(e){const{logContextEvent:t}=(0,p.v)(),i=(0,m.Z)(),n=(0,g.ZP)(),a=(0,h.S6)()(e.pinId),{ad_targeting_attribution:r,show_ad_reasons:s=!1}=null!=a?a:{},l=(0,_.kf)(),c=(0,o.useDispatch)();return(0,w.jsx)(A,{...e,clientTrackingParams:i,showAdReasons:s,adTargetingAttribution:r,history:(0,P.useHistory)(),i18n:n,isWindowsPwa:l,location:(0,P.useLocation)(),logContextEvent:t,hidePinFeedback:e=>c((0,y.I1)(e)),showPinFeedback:(e,t)=>c((0,y.q1)(e,t)),showPinFeedbackOverlay:e=>c((0,y.Ib)(e)),showPinFeedbackUndo:(e,t,i,n)=>c((0,y.NA)({id:e,text:t,undoAction:i,undoText:n})),showAdReasonsModal:e=>c((0,y.b9)(e)),hideAdReasonsModal:e=>c((0,y.yj)(e))})}},361259:(e,t,i)=>{i.d(t,{$:()=>c,r:()=>d});var n=i(667294),o=i(829407),a=i(497529),r=i(425288),s=i(785893);const{Provider:l,useHook:c}=(0,r.Z)("PinRep");function d({children:e}){const[t,i]=(0,n.useState)(!0),[r,c]=(0,n.useState)(!1),d=(0,a.Z)(1000069);(0,o.Z)((()=>{(async()=>{var e,t,n,o;const a=await d.fetchAllExperiences();a&&a.payload&&500417===(null===(e=a.payload.experiences)||void 0===e||null===(t=e[1000069])||void 0===t?void 0:t.experience_id)&&null!==(n=a.payload.experiences)&&void 0!==n&&null!==(o=n[1000069])&&void 0!==o&&o.display_data.hide_footer?d.viewExperience(1000069,500417):i(!1),c(!0)})()}));const u=(0,n.useMemo)((()=>({hasSimplifiedPinGridExpLoaded:r,hidePinRepFooter:t})),[r,t]);return(0,s.jsx)(l,{value:u,children:e})}},438908:(e,t,i)=>{i.d(t,{Z:()=>f});var n=i(294184),o=i.n(n),a=i(876371),r=i(832654),s=i(784521),l=i(773285),c=i(883119),d=i(785893);function u({alt:e,dominantColor:t,naturalHeight:i,naturalWidth:n,onError:o,onLoad:a,url:r}){return(0,d.jsx)(c.xu,{position:"relative",dangerouslySetInlineStyle:{__style:{paddingTop:"177.77777777777777%"}},children:(0,d.jsx)(c.xu,{position:"absolute",top:!0,left:!0,width:"100%",height:"100%",dangerouslySetInlineStyle:{__style:{zIndex:s.Z.storyPinImage}},children:(0,d.jsx)(c.Ee,{alt:e,color:t||"transparent",naturalHeight:null!=i?i:1,naturalWidth:null!=n?n:1,onError:o,onLoad:a,src:r,fit:"cover"})})})}function p({alt:e,dominantColor:t,naturalHeight:i,naturalWidth:n,onError:o,onLoad:a,url:r}){return(0,d.jsx)(c.xu,{width:"100%",dangerouslySetInlineStyle:{__style:{zIndex:s.Z.storyPinImage}},children:(0,d.jsx)(c.Ee,{alt:e,color:t||"transparent",naturalHeight:null!=i?i:1,naturalWidth:null!=n?n:1,onError:o,onLoad:a,src:r})})}function h({alt:e,onError:t=(()=>{}),onLoad:i=(()=>{}),pin:n}){const{checkExperiment:o}=(0,l.F)(),{anyEnabled:a}=o("web_idea_pin_flexible_aspect_ratio_display"),{dominant_color:r,images:s={}}=n,{height:c,width:h,url:_}=function(e){var t;return"number"==typeof(null===(t=e["474x"])||void 0===t?void 0:t.width)&&"number"==typeof e["474x"].height&&e["474x"].width>e["474x"].height?e["736x"]:e["474x"]}(s)||{},m=a?p:u;return(0,d.jsx)(m,{alt:e,dominantColor:r,naturalHeight:c,naturalWidth:h,onError:t,onLoad:i,url:_||""})}var _=i(898781),m=i(349700),g=i(310227),x=i(243943);const f=({cropHeight:e,cropWidth:t,fallbackColor:i,highResOnly:n,imageFit:s,lowResOnly:l,mediumResOnly:u,onError:p,onLoad:f,pin:y,saved:v=!1,animateGif:b})=>{var P,w,S;const A=(0,_.ZP)(),k=(0,x.Xx)(),{carousel_data:E,description:T="",dominant_color:C,grid_title:I,id:j,images:R,title:D}=y,z=(0,m.nk)(A._('This contains an image of: {{ pinTitle }}', 'web.altText', 'Alt text input for PinImage by a human'),{pinTitle:D||I}).join(""),O=(0,r.Z)(y,A)||T.trim().length>0&&T||z;if(E)return(0,d.jsx)(a.Z,{onError:p,onLoad:f,highResOnly:n,lowResOnly:l,pinId:j});let L,N="",B=0,M=0;if(R){var Z,F,U;let e=R["236x"];var V,G,H,W,$;if(n?e=R["736x"]||R.orig||R["474x"]||R["236x"]:u&&(e=R["474x"]||R.orig||R["236x"]),B=null===(Z=e)||void 0===Z?void 0:Z.height,M=null===(F=e)||void 0===F?void 0:F.width,N=null===(U=e)||void 0===U?void 0:U.url,l||u||n)L=null!==(V=e)&&void 0!==V&&V.url?`${e.url} 1x`:"";else L=[(null===(G=R["236x"])||void 0===G?void 0:G.url)&&`${R["236x"].url} 1x`,(null===(H=R["474x"])||void 0===H?void 0:H.url)&&`${R["474x"].url} 2x`,(null===(W=R["736x"])||void 0===W?void 0:W.url)&&`${R["736x"].url} 3x`,(null===($=R.orig)||void 0===$?void 0:$.url)&&`${R.orig.url} 4x`].filter(Boolean).join(", ")}if(b){const e=Math.max(y.embed&&y.embed.width||0,236),t=Math.max(y.embed&&y.embed.height||0,236),i=y.embed?y.embed.src:"";i&&(B=t,M=e,N=i,L="")}return null!=k&&k.image&&(B=k.image.height,M=k.image.width,N=k.image.url),(0,d.jsx)(c.kC,{alignItems:"center",justifyContent:"start",minHeight:g.Ml,children:(0,d.jsx)(c.xu,{flex:"grow",children:(0,d.jsx)("div",{className:o()({savedGradient:v}),children:y.story_pin_data_id?(0,d.jsx)(h,{alt:O,pin:y,onError:p,onLoad:f}):(0,d.jsx)(c.xu,{height:t?e:void 0,width:t||void 0,"data-test-id":"non-story-pin-image",children:(0,d.jsx)(c.Ee,{alt:O,color:"dominant"===i?C:i,fit:s,naturalHeight:null!==(P=B)&&void 0!==P?P:1,naturalWidth:null!==(w=M)&&void 0!==w?w:1,onError:p,onLoad:f,src:null!==(S=N)&&void 0!==S?S:"",srcSet:L})})})})})}},453782:(e,t,i)=>{i.d(t,{Z:()=>A});var n=i(667294),o=i(964082),a=i(983722),r=i(357787),s=i(36971),l=i(463045),c=i(965900),d=i(108529),u=i(438908),p=i(350445),h=i(898781),_=i(46584),m=i(883119),g=i(785893);function x({aspectRatio:e,children:t}){return(0,g.jsx)(m.xu,{dangerouslySetInlineStyle:{__style:{aspectRatio:e}},children:t})}var f=i(926749),y=i(623568);const v=new Set(["ConversationView","TodayTabFeed"]);function b({inAdsDesktopVideoExperiment:e,isAutoplay:t,cropHeight:i,currentTime:o,lowResOnly:a,highResOnly:r,onLoad:s,onError:l,saved:b,onTimeChange:P,isExperimentalPinRep:w,pin:S,surface:A,playing:k,rootMargin:E,viewType:T,viewParameter:C,onVisibilityChanged:I,trackFullVisible:j,inVisibilityChangedHookExperiment:R,imageHeightModifier:D,cropWidth:z}){var O,L;const N=(0,h.ZP)(),[B,M]=(0,n.useState)(!1),[Z,F]=(0,n.useState)(!0),{is_downstream_promotion:U,promoter:V}=S,G=(0,y.jL)(U,V),H=G&&!S.is_eligible_for_web_closeup,W=w&&G&&S.is_eligible_for_web_closeup&&!v.has(A),{setCurrentVideo:$}=(0,c.I)(),K=H||!w||!G,q=(0,_.Z)({onVisibilityChanged:I,inAdsDesktopVideoExperiment:e,trackFullVisible:j,rootMargin:E});let Y=!k;e&&(Y=Z,t&&k&&Z&&F(!1));const{url:X}=(null===(O=S.images)||void 0===O?void 0:O["236x"])||{},{id:J,is_promoted:Q}=S,ee=(0,n.useCallback)((({event:e})=>{e.preventDefault(),e.stopPropagation(),$({pinId:J,isPromoted:Boolean(Q),currentTime:0}),M(!1)}),[Q,J,$]),te=(0,n.useCallback)((()=>{Q&&M(W)}),[W,Q]);if(!S.videos||null===(L=S.videos.video_list)||void 0===L||!L.V_HLSV4)return null;const{height:ie,thumbnail:ne,width:oe,url:ae}=S.videos.video_list.V_HLSV4||{},re=S.videos.id,se=[{type:"video/m3u8",src:ae}];let le,ce=(null!=oe?oe:1)/(null!=ie?ie:1);const de=e&&A&&(0,d.Z)(A);if(de&&(ce=1,le="transparent",D&&(ce-=D-1)),B&&G)return(0,g.jsx)(m.xu,{ref:R?q:null,children:(0,g.jsx)(p.Z,{backgroundImage:null!=X?X:"",naturalHeight:null!=ie?ie:1,naturalWidth:null!=oe?oe:1,pin:S,onRestartVideo:ee})});if(Y){let e={highResOnly:r,lowResOnly:a,onError:l,onLoad:s,pin:S,saved:b};return de&&(e={...e,cropHeight:i,cropWidth:z,imageFit:"contain"}),(0,g.jsx)(m.xu,{ref:R?q:null,children:(0,g.jsx)(x,{aspectRatio:ce,children:(0,g.jsx)(u.Z,{...e})})})}return(0,g.jsx)(m.xu,{ref:R?q:null,children:(0,g.jsx)(f.ZP,{isAutoPlay:!!t,cropHeight:i,rootMargin:E,surface:A,inAdsDesktopVideoExperiment:e,contextLogData:{viewParameter:C,component:0,objectId:S.id,video_id:re,view:T},accessibilityMaximizeLabel:N._('Maximize', 'Maximize button on video', 'Maximize button on video'),accessibilityMinimizeLabel:N._('Minimize', 'Minimize button on video', 'Minimize button on video'),accessibilityMuteLabel:N._('Mute', 'Mute button on video', 'Mute button on video'),accessibilityPauseLabel:N._('Pause', 'Pause button on video', 'Pause button on video'),accessibilityPlayLabel:N._('Play', 'Play button on video', 'Play button on video'),accessibilityProgressBarLabel:N._('Progress bar', 'PinVideo.accessibilityProgressBarLabel', 'Video progress bar accessibility label'),accessibilityUnmuteLabel:N._('Unmute', 'Unmute button on video', 'Unmute button on video'),aspectRatio:ce,backgroundColor:le,captions:"",hlsConfig:{capLevelToPlayerSize:!0,startPosition:o||-1},loop:K,onTimeChange:P,playing:k,onPlay:()=>{},onPlayError:()=>{},poster:X||ne,src:null!=se?se:[],videoStartTime:o,volume:0,onEnded:te})})}function P(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const w=(0,r.Z)(b);class S extends n.Component{constructor(...e){super(...e),P(this,"calculateCurrentVideoTime",(()=>{const{currentTimeFromPinRep:e,pin:t,videosAutoplaying:i}=this.props,{id:n}=t,o=(0,s.Z)(n,i);return this.currentVideoCurrentTime||o||e})),P(this,"handleVisibilityChanged",(e=>{const{currentTimeFromPinRep:t,pin:i,setCurrentVideo:n,pauseAutoplay:r,videosAutoplaying:s}=this.props,{id:c,is_promoted:d}=i,u=(0,l.Z)(c,s),p=(0,o.Z)(c,s);if(e){if(d)n({pinId:c,isPromoted:d,currentTime:this.calculateCurrentVideoTime()});else if(p){const e=(0,a.Z)(),{anyEnabled:t}=(null==e?void 0:e.experimentsClient.checkExperiment("hfp_web_video_autoplay_in_grid"))||{};n({pinId:c,isPromoted:Boolean(d),currentTime:this.calculateCurrentVideoTime(),inVideoGridAutoplayExp:t})}}else!e&&u&&r({pinId:c,isPromoted:Boolean(d),currentTime:t||this.currentVideoCurrentTime})})),P(this,"handleVideoTimeChange",(e=>{const{pin:t,onTimeChange:i,videosAutoplaying:n}=this.props,{id:o}=t;(0,l.Z)(o,n)&&(this.currentVideoCurrentTime=e.time),i&&i(e)}))}componentDidMount(){this.props.onLoad&&this.props.onLoad()}componentDidUpdate(e){const{appInFocus:t}=e,{appInFocus:i,currentTimeFromPinRep:n,pauseAutoplay:o,pin:a,setCurrentVideo:r,videosAutoplaying:s}=this.props,{id:c,is_promoted:d}=a,u=(0,l.Z)(c,s);i!==t&&!i&&u?(this.pausedDueToBrowserOutOfFocus=!0,o({pinId:c,isPromoted:Boolean(d),currentTime:n||this.currentVideoCurrentTime})):this.pausedDueToBrowserOutOfFocus&&i&&(this.pausedDueToBrowserOutOfFocus=!1,r({pinId:c,isPromoted:Boolean(d),currentTime:this.calculateCurrentVideoTime()}))}componentWillUnmount(){const{currentTimeFromPinRep:e,pauseAutoplay:t,pin:i,videosAutoplaying:n}=this.props,{id:o,is_promoted:a}=i;(0,l.Z)(o,n)&&t({pinId:o,isPromoted:Boolean(a),currentTime:e||this.currentVideoCurrentTime})}render(){const{cropHeight:e,isAutoplay:t,pin:i,surface:n,videosAutoplaying:o,viewParameter:a,viewType:r,highResOnly:c,lowResOnly:d,onError:u,onLoad:p,saved:h,inAdsDesktopVideoExperiment:_,isExperimentalPinRep:m,rootMargin:x,cropWidth:f,imageHeightModifier:y}=this.props,{id:v}=i,b=(0,s.Z)(v,o),P=(0,l.Z)(v,o)&&t;return(0,g.jsx)(w,{cropHeight:e,rootMargin:x,currentTime:b,inAdsDesktopVideoExperiment:_,isAutoplay:t,viewParameter:a,viewType:r,onTimeChange:this.handleVideoTimeChange,onVisibilityChanged:this.handleVisibilityChanged,pin:i,surface:n,playing:P,trackFullVisible:!1,highResOnly:c,lowResOnly:d,onError:u,onLoad:p,saved:h,isExperimentalPinRep:m,cropWidth:f,imageHeightModifier:y})}}function A(e){const{appUI:{appInFocus:t,isAutoplay:i,videosAutoplaying:n},pauseAutoplay:o,setCurrentVideo:a}=(0,c.I)();return(0,g.jsx)(S,{...e,appInFocus:t,isAutoplay:i,pauseAutoplay:o,setCurrentVideo:a,videosAutoplaying:n})}},779298:(e,t,i)=>{i.d(t,{Z:()=>$i});var n=i(667294),o=i(702664),a=i(41233),r=i(605028),s=i(333155);function l({isGroupBoard:e,pin:t,surface:i}){const{carousel_data:n,grid_title:o,rich_summary:a,title:l}=t,{isOwnPin:c,isPromoted:d}=(0,r.Z)(t);if(n){const{carousel_slots:e=[],index:t=0}=n;if(e[t]&&e[t].title)return e[t].title.trim()}if(d){if(s.ZF.includes(i))return o||"";if(c&&!e&&!n&&"UserProfilePinGrid"!==i)return"";const t=a&&"mobile application"!==a.type_name&&a.display_name;return l||t||o||""}return o||""}var c=i(623568);const d=["EngagementDetails","OtherProfilePinGrid","UserProfilePinGrid"];var u=i(35495);function p(e,t){const{isProduct:i}=(0,r.Z)(e);return(i||"ShoppingGridShippedMetadataWithVisitButton"===t&&(0,u.bA)(e))&&(0,u.QY)(e)||""}var h=i(807592),_=i(4294),m=i(18857);const g=["CloseupRelatedProducts","ConversationView","CreatorProfileStoryPinGrid","CreatorProfileActivityPinGrid","ProductPinsFeed","UserProfilePinGrid"];function x({attributionOption:e,board:t,contentType:i,experimentsClient:n,feedbackData:o,feedbackType:a,hasCarouselData:s,isGroupBoard:c,isORBACProfileManager:d,isOwnBoard:u,pin:x,showImageOnly:f,showNativeReactions:y,showPromotedShoppingPrice:v,surface:b,viewer:P,variantData:w}){var S;const{isPromoted:A,isSponsored:k}=(0,r.Z)(x),{pin_note:E}=x,T=function({attributionOption:e,feedbackType:t,isGroupBoard:i,pin:n,showImageOnly:o,surface:a}){const{is_downstream_promotion:r,native_creator:s,promoter:l,sponsorship:c,story_pin_data_id:d}=n;if("promoted"===t||l&&!r||c)return"default";if("ConversationView"!==a&&g.includes(a))return"none";if(i)return"none";let u="default";return"SearchItem"===a&&d?u:(e&&("image-only"===e?u="image-only-credit":"hide"===e&&(u="none")),"followed"!==t||o?["IdeasHubSeasonalRow","TodayArticleFeed","ShoppingPackageItem"].includes(a)&&"hide"===e?u:"TodayArticleFeed"===a&&"show"===e?"show-for-claimed-content":s?"default":"none":u)}({attributionOption:e,feedbackType:a,isGroupBoard:c,pin:x,showImageOnly:f,surface:b}),C=null!=w&&w.title?w.title:l({isGroupBoard:c,pin:x,surface:b}),I=f?"":C,j=!["ShoppingPackageItem","ShoppingSquareGridDomain","ShoppingSquareGridStorefrontDomain","ShoppingSquareGridStorefront"].includes(b)&&!A&&!f&&Boolean(p(x,b)),R=["ShoppingGridShippedMetadataWithVisitButton"].includes(b),D="BaseBoardPinGrid"===b&&E?null===(S=E.text)||void 0===S?void 0:S.trim():null,z=A,O="shopping"===i;"AuthHomefeed"!==b||A||(y=!1);let L,N,B,M,Z=2;if(A?Z=3:(j||"none"!==T)&&(Z=O?2:1),O||v){var F,U;const e=null===(F=x.rich_summary)||void 0===F||null===(U=F.products)||void 0===U?void 0:U[0],{offer_summary:t}=e||{};L=t?t.standard_price:void 0,N=t?(0,h.Z)(t):void 0}if(w){const{offerSummary:e}=w;L=e?e.standard_price:void 0,N=e?e.price||e.max_price:void 0}if(O&&!A){var V,G,H;const{rating_count:e,rating_value:t,review_count:i}=(null===(V=x.rich_summary)||void 0===V?void 0:V.aggregate_rating)||{};(e||i)&&parseFloat(t)&&(B={count:e||i,rating:t}),M=null===(G=x.rich_metadata)||void 0===G||null===(H=G.products)||void 0===H?void 0:H[0].shipping_info}const W=(0,m.rh)(x,P,n),$="CreatorProfileStoryPinGrid"===b||"CreatorProfileActivityPinGrid"===b,K=!$,q=c&&!k;return{attributionType:T,board:t,contentType:i,feedbackData:o,feedbackType:a,pinNoteText:D,pinTitle:I,productCurrentPrice:N,productOriginalPrice:L,productRating:B,productShipping:M,showCarouselEllipsis:s,showFavoriteButton:!d&&("BaseBoardPinGrid"===b&&u||Boolean((null==t?void 0:t.is_collaborative)&&(0,_.Z)({board:t,viewer:P})))&&!$,showGroupBoardAvatar:q,showNativeReactions:y,showOverflowMenu:z,showPinStats:W,showSource:j,showTextContent:K,showVisitSiteButton:R,showAttribution:!0,titleLines:Z}}var f=i(27255),y=i(957161),v=i(121630),b=i(841478),P=i(53325);const w=["ShoppingCatalogsProductsMetadata"];const S=["BoardCreateUpsell","BoardCoverSelectablePin","BoardNoteSelectablePin","BoardNotePin","BulkEditMode","EngagementDetails","SectionSuggestedPins","SelectableBoardlessPin"],A=["BoardCreateUpsell","BoardCoverSelectablePin","BoardNoteSelectablePin","BoardNotePin","BulkEditMode","ConversationView","EngagementDetails","SectionSuggestedPins","SelectableBoardlessPin","ShoppingCatalogsProductsMetadata"];var k=i(221263),E=i(319915),T=i(675725),C=i(687551),I=i(926275);var j=i(976071),R=i(411938),D=i(108529),z=i(463045),O=i(947599),L=i(717615),N=i(436395),B=i(512076),M=i(19121),Z=i(883119),F=i(898781),U=i(407043),V=i(785893);const G=["CreatorProfileStoryPinGrid","CreatorProfileActivityPinGrid"],H={component:210,view_type:4,view_parameter:3106},W={view_type:5,view_parameter:3069},$={component:13668,view_type:4,view_parameter:3106};function K({pinId:e,surface:t}){const{logContextEvent:i}=(0,U.v)(),n=(0,F.ZP)(),o=()=>{const e=G.includes(t)?$:"BaseBoardPinGrid"===t?W:"UserProfilePinGrid"===t?H:{};i({event_type:101,element:10573,...e})},a=n._('See more stats', 'pinRep.actionBar.seeStatsButton', 'Button that will re-direct user to detailed stats page');return(0,V.jsx)(Z.xu,{"data-test-id":"see-stats-button",paddingX:3,paddingY:3,children:G.includes(t)?(0,V.jsx)(Z.zx,{role:"link",accessibilityLabel:n._('Go to pin stats details page', 'pinRep.actionBar.seeStatsButton', 'This button will take the user to their detailed pin stats page for the pin'),color:"semiTransparentWhite",fullWidth:!0,href:`/pin/${e}/analytics`,onClick:o,size:"sm",text:(r=a,r.length>14?`${r.substring(0,12).trim()}...`:r)}):(0,V.jsx)(Z.hU,{role:"link",accessibilityLabel:n._('Go to pin stats details page', 'pinRep.actionBar.seeStatsButton', 'This icon button will take the user to their detailed pin stats page for the pin'),bgColor:"white",href:`/pin/${e}/analytics`,icon:"ads-stats",iconColor:"darkGray",onClick:o,size:"sm"})});var r}var q=i(681227),Y=i(697247),X=i(576440),J=i(965900),Q=i(773285),ee=i(578722),te=i(130460),ie=i(350118),ne=i(329734),oe=i(243943),ae=i(99137),re=i(698330),se=i(241244),le=i(95551),ce=i(699825),de=i(768559),ue=i(89254);function pe(e,t){const{carousel_data:i,domain:n,ad_destination_url:o}=e;let a=n||"";return o&&(a=(0,ue.Z)(o).hostname||""),i&&i.id&&(a=function(e,t){const i=t||e&&e.index||0,n=e&&e.carousel_slots||[],o=n[i]&&n[i].link||"";return o&&(0,ue.Z)(o).hostname||""}(i,t)),a.replace("www.","")}var he=i(287072),_e=i(199387),me=i(276775);const ge={container:{backgroundColor:"rgba(255, 255, 255, 0.9)",borderRadius:18,height:"32px",maxWidth:"132px"},containerHovered:{backgroundColor:"rgba(255, 255, 255, 1.0)"},containerTruncated:{maxWidth:"87px"},text:{color:"#333333"}};function xe({pin:e,sourceLinkStyle:t,surface:i,url:o}){var a,r;const s=(0,F.ZP)(),[l,c]=(0,n.useState)(!1),{id:d}=e,p=pe(e),h=(0,me.useLocation)(),_=(0,u.Kl)(e)||{},{slotIndex:m}=(0,X.E)(),g=(0,de.Z)({boardUrl:null===(a=e.board)||void 0===a?void 0:a.url,callToCreateSourcePinId:e.call_to_create_source_pin_id,location:h,pinId:e.id,pinnerUserName:null===(r=e.pinner)||void 0===r?void 0:r.username,storyPinDataId:e.story_pin_data_id,trackingParams:e.tracking_params,trackingParamsMap:e.tracking_params_map}),x=(0,_e.Z)(12,{object_id_str:d,clientTrackingParams:g,aux_data:{grid_index:m,...(0,u.Kl)(e)||{}}}),f=(0,_e.Z)(101,{element:162,object_id_str:d,clientTrackingParams:g,aux_data:{...(0,u.Kl)(e)||{}}}),y=(0,_e.Z)(8948,{object_id_str:d,clientTrackingParams:g,aux_data:{click_type:"clickthrough",closeup_navigation_type:"click",grid_index:m,...(0,u.Kl)(e)||{}}}),v=()=>{x(),f(),y()},b=(0,he.Z)({href:o,target:"blank",externalData:{auxData:_,pin:e,surface:i}});return"icon-only"===t?(0,V.jsx)(Z.hU,{accessibilityLabel:s._('link', 'Website url link', 'Website url link'),bgColor:"white",href:o,icon:"arrow-up-right",iconColor:"darkGray",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),v(),b({event:e})},role:"link",rel:"nofollow",size:"sm"}):(0,V.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:{...ge.container,...l?ge.containerHovered:Object.freeze({}),..."truncated-text"===t?ge.containerTruncated:Object.freeze({})}},"data-test-id":"pinrep-source-link",onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),position:"relative",children:(0,V.jsx)(ce.Z,{hovered:l,pin:e,slotIndex:m,viewType:1,children:(0,V.jsx)(Z.iP,{fullWidth:!1,href:o,onTap:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),v(),b({event:e})},rel:"nofollow",role:"link",rounding:4,children:(0,V.jsxs)(Z.xu,{alignItems:"baseline",dangerouslySetInlineStyle:{__style:ge.text},display:"flex",justifyContent:"between",children:[(0,V.jsx)(Z.xu,{display:"flex",flex:"none",marginTop:3,marginBottom:3,marginStart:3,children:(0,V.jsx)(Z.JO,{accessibilityLabel:s._('link', 'Website url link', 'Website url link'),color:"default",icon:"arrow-up-right",size:9})}),(0,V.jsx)(Z.xu,{alignItems:"center",display:"flex",height:18,marginStart:2,marginEnd:3,overflow:"hidden",children:(0,V.jsx)(Z.xv,{color:"default",size:"200",weight:"bold",lineClamp:1,children:p})})]})})})})}var fe=i(538232),ye=i(50286),ve=i(780280);const be=(0,n.lazy)((()=>Promise.all([i.e(97270),i.e(50192),i.e(58209),i.e(48035)]).then(i.bind(i,43819)))),Pe=(0,n.lazy)((()=>Promise.resolve().then(i.bind(i,955362)))),we=(0,n.lazy)((()=>i.e(5035).then(i.bind(i,351326))));const Se=({pinId:e})=>{const{onSendButtonClick:t}=(0,fe.R)(),i=(0,_e.Z)(101,{element:72,object_id_str:e});return(0,V.jsx)(le.Z,{onSendButtonClick:t,trackShareTap:i,size:"sm",bgColor:"white"})},Ae=(0,n.memo)((function({actionBarEditBeforeShare:e,feedbackData:t,feedbackType:i,layout:o,onToggleFlyout:a,pin:r,pinTitle:s,setForcePrimary:l,showEditButton:c,showOverflowMenu:d,showShareButton:u,showSourceLinkButton:p,sourceLinkStyle:h,surface:_}){var m,g;const x=(0,F.ZP)(),f=(0,Z.JZ)(),{isRTL:y}=(0,ve.B)(),v=!(0,ye.HG)(),{viewParameter:b,viewType:P}=(0,X.E)(),{carousel_data:w,id:S,savedInfo:A,tracked_link:k,link:T,ad_destination_url:C}=r,I=null!==(m=null!==(g=null!=C?C:k)&&void 0!==g?g:T)&&void 0!==m?m:"",{showLeadPinStdAlpha:j}=(0,B.Z)(r),[R,D]=(0,n.useState)(c),[z,L]=(0,n.useState)(c),[N,M]=(0,n.useState)(c),U={...y?{marginLeft:c&&d?-44:0}:{marginRight:c&&d?-44:0},transition:y?"margin-left .2s ease-in-out":"margin-right .2s ease-in-out"},G={opacity:N?1:0,transition:"opacity .2s ease-in-out",pointerEvents:"auto"},H={...y?{marginRight:z?4:0}:{marginLeft:z?4:0},transition:y?"margin-right .2s ease-in-out":"margin-left .2s ease-in-out"};(0,n.useEffect)((()=>{let e;return c&&d?(L(!0),e=setTimeout((()=>{requestAnimationFrame((()=>{D(!0),requestAnimationFrame((()=>{M(!0)}))}))}),800)):(L(c),D(c),requestAnimationFrame((()=>{M(c)}))),()=>{clearTimeout(e)}}),[c,d]);let W=null;if(p){const e=`/pin/${S}`;W=(0,V.jsx)(se.Z,{children:j?(0,V.jsx)(Z.zx,{role:"link",accessibilityLabel:x._('Link for closeup view and learn more', '[m10n] pinRep.actionBar.learnMore', 'Content for learn more link'),size:"sm",href:e,text:x._('Learn more', '[m10n] pinRep.actionBar.learnMore', 'Content for learn more link')}):(0,V.jsx)(xe,{pin:r,sourceLinkStyle:h,surface:_,url:I})})}const $=u&&(0,V.jsx)(E.Z,{name:"SafeSuspense_PinRep_SendShareLink",children:(0,V.jsx)(O.Z,{children:(0,V.jsx)(Z.xu,{"data-test-id":"send-share-link",children:(0,V.jsx)(se.Z,{children:v?(0,V.jsx)(Se,{pinId:r.id}):(0,V.jsx)(we,{pin:r,setForcePrimary:l})})})})}),K=Boolean(null==A?void 0:A.localPinId)?null==A?void 0:A.localPinId:S,q=R&&(0,V.jsx)(E.Z,{name:"SafeSuspense_PinRep_EditButton",children:(0,V.jsx)(O.Z,{children:(0,V.jsx)(Z.xu,{"data-test-id":"edit-button",dangerouslySetInlineStyle:f?void 0:{__style:G},children:(0,V.jsx)(se.Z,{children:(0,V.jsx)(be,{carouselSlotCurrentIndex:w&&w.index,component:0,onToggleModal:a,pinId:K,style:{size:"sm"},view:P,viewParameter:b,useLegoStyles:!0})})})})});return"equally-spaced"===o?(0,V.jsxs)(Z.xu,{display:"flex",justifyContent:"between",alignItems:"center",padding:3,children:[(0,V.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:{flexBasis:32}},children:W}),e?q:$,e?$:q]}):(0,V.jsxs)(Z.xu,{alignItems:"center",display:"flex",padding:3,children:[(0,V.jsx)(Z.xu,{flex:"shrink",children:W}),(0,V.jsx)(Z.xu,{alignItems:"center",display:"flex",flex:"none",marginStart:"auto",dangerouslySetInlineStyle:f?void 0:{__style:U},children:(0,V.jsxs)(Z.kC,{alignItems:"center",gap:{row:2,column:0},justifyContent:"end",children:[e?q:$,e?$:q,d&&(0,V.jsx)(E.Z,{name:"SafeSuspense_PinRep_OverflowMenu",children:(0,V.jsx)(O.Z,{children:(0,V.jsx)(Z.xu,{"data-test-id":"overflow-menu-button",dangerouslySetInlineStyle:f?void 0:{__style:H},children:(0,V.jsx)(se.Z,{children:(0,V.jsx)(Pe,{feedbackData:t,feedbackType:i,pin:r,pinTitle:s,setForcePrimary:l})})})})})]})})]})}));var ke=i(834911),Ee=i(447948);function Te({direction:e,swipeHandler:t}){const i=(0,F.ZP)(),n={left:i._('View Previous', 'Button to advance carousel to the previous image', 'Button to advance carousel to the previous image'),right:i._('View Next', 'Button to advance carousel to the next image', 'Button to advance carousel to the next image')};return(0,V.jsx)(Z.xu,{position:"absolute",bottom:!0,top:!0,left:"left"===e,right:"right"===e,children:(0,V.jsx)(Z.iP,{fullHeight:!0,fullWidth:!0,onTap:t,children:(0,V.jsx)(Z.xu,{alignItems:"center",display:"flex",height:"100%",justifyContent:"center",padding:2,width:"100%","data-test-id":`carousel-slider-${e}`,children:(0,V.jsx)(Z.JO,{accessibilityLabel:n[e],color:"inverse",icon:{left:"arrow-back",right:"arrow-forward"}[e]})})})})}const Ce=(0,o.connect)(null,(function(e){return{changeCarouselSlotIndex:(t,i)=>e((0,Ee.yR)(t,i))}}))((({pin:e,changeCarouselSlotIndex:t})=>{const{logContextEvent:i}=(0,U.v)(),{componentType:n,viewParameter:o,viewType:a}=(0,X.E)(),r=(0,ke.Z)({carouselData:e.carousel_data,images:e.images,richMetadata:e.rich_metadata,richSummary:e.rich_summary});if(!r)return null;const{id:s=""}=e,{carousel_slots:l=[],index:c=0,id:d}=r;function p(r){return()=>{const p="left"===r?c-1:c+1;t(s,p),((t=0,r)=>{i({event_type:108,object_id_str:s,component:n,view_type:a,view_parameter:o,event_data:{pinCarouselSlotEventData:{carouselSlotId:l[t]&&Number(l[t].id),carouselDataId:Number(d),carouselSlotIndex:t,toCarouselSlotIndex:r}},aux_data:{...(0,u.Kl)(e)||{}}})})(c,p)}}return(0,V.jsxs)(Z.xu,{height:"100%",position:"relative",width:"100%",children:[c>0&&(0,V.jsx)(se.Z,{children:(0,V.jsx)(Te,{direction:"left",swipeHandler:p("left")})}),c{h.setMostRecentPinId(g),S()},k=()=>{m((e=>!e))},E=c&&!e,T=E?"":l,C="overlay"===o,I=(0,V.jsxs)(Z.xu,{alignItems:"center",display:C?void 0:"flex",dangerouslySetInlineStyle:{__style:{marginLeft:"-3px",marginRight:"-3px"}},children:[(0,V.jsx)(Z.xu,{flex:"none",dangerouslySetInlineStyle:{__style:{marginLeft:"3px",marginRight:"3px"}},display:C?"flex":void 0,justifyContent:"center",children:(0,V.jsx)(Z.xu,{dangerouslySetInlineStyle:C?{__style:{marginTop:-45}}:void 0,children:(0,V.jsx)(Re,{attributionNameLink:T?e:void 0,avatarUrl:i,name:T,onClick:()=>A(),accessibilityLabel:T,size:C?64:32,outline:C})})}),(0,V.jsxs)(Z.xu,{dangerouslySetInlineStyle:{__style:{marginLeft:"3px",marginRight:"3px"}},flex:"grow",overflow:"hidden",display:C?"flex":void 0,justifyContent:"center",marginTop:C?2:void 0,children:[(0,V.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:{marginBottom:"2px"}},children:(0,V.jsxs)(Z.kC,{gap:{row:1,column:0},children:[(0,V.jsx)(De,{attributionNameLink:e,name:l,onClick:()=>A(),regularWeight:!(y&&!x||a),isHover:_}),(0,V.jsx)(Oe.Z,{size:"sm",hasVerifiedIdentity:d,isVerifiedMerchant:u})]})}),(0,V.jsx)(ze,{isHover:_,title:t,weight:"normal"})]})]});return E?(0,V.jsx)(Z.iP,{role:"link",onTap:({event:e})=>{p&&v({event_type:9371,element:13382,aux_data:{aop_origin:"Attribution"}}),e.stopPropagation(),A()},href:c,rel:p?"nofollow":void 0,target:p?"blank":void 0,onMouseEnter:k,onMouseLeave:k,children:I}):I}var Be=i(356725),Me=i(333312),Ze=i(695014),Fe=i(676464),Ue=i(596493),Ve=i(422946),Ge=i(956800),He=i(852025);function We({board:e,favoriteCount:t,favorited:i,pinId:a}){const{logContextEvent:r}=(0,U.v)(),s=(0,o.useDispatch)(),{slotIndex:l}=(0,X.E)(),{currentFilter:c,eligibleFilters:d,refreshData:u=(()=>{}),sectionId:p,setShowExperienceTooltip:h}=(0,He.s)(),_=(0,n.useRef)(null),m=(0,M.Z)(),g=(0,k.Z)(m,e),x=c===Ue.Ac&&(!t||1===t),f=(0,Fe.E)(d,Ue.Ac),y=e=>{r({event_type:101,component:0,element:e?12225:12226,object_id_str:a,view_type:5,view_parameter:g?3069:3070})};return(0,V.jsxs)(n.Fragment,{children:[(0,V.jsx)(Z.xu,{ref:_,children:(0,V.jsx)(Ze.Z,{favorited:i,favoriteCount:t,onFavorite:()=>{y(!0),f&&u(),h&&h(!0)},onUnfavorite:()=>{y(!1),e&&x&&s((0,Ge.EX)({feedId:p||e.id,feedType:p?Ve.DV.BOARD_SECTION_PINS:Ve.DV.BOARDFEED,itemIds:[a],itemType:"pin"}))},pinId:a,size:20})}),_&&!i&&!p&&0===l&&(0,V.jsx)(Z.mh,{children:(0,V.jsx)(Me.default,{anchor:_.current,experienceIds:[502973],flyoutSize:312,idealDirection:"up",placementId:18,positionRelativeToAnchor:!1,showCaret:!0,textAlign:"center"})})]})}var $e=i(850115),Ke=i.n($e),qe=i(379507),Ye=i.n(qe),Xe=i(637956),Je=i.n(Xe),Qe=i(694379),et=i(909745),tt=i.n(et),it=i(128206),nt=i.n(it);const ot={goodIdea:Ke(),love:Je(),thanks:tt(),wow:nt(),haha:Ye()},at={7:"goodIdea",1:"love",13:"thanks",11:"wow",5:"haha"},rt=["CreatorProfileStoryPinGrid"];const st=function({alignment:e="start",pinId:t,pinner:i,reactionCounts:n,surface:o}){const a=(0,M.Z)(),r=n?(0,q.At)(n):null,s=n?(0,q.Ud)(n):0,l=Boolean(a.isAuth&&(null==i?void 0:i.id)===a.id),c=!!r&&r.length>0&&r.map(((e,t)=>{const i=ot[at[e]];return(0,V.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:{marginRight:2}},children:(0,V.jsx)(Z.xu,{width:17,height:17,dangerouslySetInlineStyle:{__style:{backgroundImage:`url(${i})`,backgroundPosiiton:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"}}})},t)})),d=!!c&&(0,V.jsx)(Z.iP,{role:"link",href:`/pin/${t}/`,children:(0,V.jsxs)(Z.xu,{display:"flex",direction:"row",alignItems:"center",justifyContent:e,height:19,paddingY:3,children:[(0,V.jsx)(Z.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:c}),(0,V.jsx)(Z.xu,{paddingX:1,children:(0,V.jsx)(Z.xv,{size:"200",children:(0,V.jsx)(Qe.Z,{value:s,shortform:!0,shortformMaximumFractionDigits:1})})})]})}),u=l&&rt.includes(o)&&(0,V.jsx)(Z.xu,{height:24});return d||u};var lt=i(62700),ct=i(862628);function dt({feedbackType:e,pin:t}){const i=(0,F.ZP)(),{pinner:n,source_interest:o}=t,{full_name:a,username:r}=n||{},{name:s}=o||{},l="topic"===e,c=!l&&"followed"===e,d=`/${r}/`,u=(0,ct.Z)(s),p=`/search/pins/?q=${encodeURIComponent(u)}&rs=image_only_attribution`,h=l?p:d,_={topic:i._('From {topic}', 'attribution on pin rep', 'attribution on pin rep'),followed:i._('From {pinnerName}', 'attribution on pin rep', 'attribution on pin rep'),pfyBoard:i._('Picked for you', 'attribution on pin rep', 'attribution on pin rep'),pfy:i._('Picked for you', 'attribution on pin rep', 'attribution on pin rep')}[e];if(!_)return null;if(c||l){const e=0===_.indexOf("{"),t=l?s:a,i=e?_.slice(_.indexOf("}")+1):_.slice(0,_.indexOf("{"));return e?(0,V.jsxs)(Z.xu,{children:[(0,V.jsx)(Z.rU,{display:"inlineBlock",href:h,underline:"hover",children:(0,V.jsx)(Z.xv,{weight:"bold",inline:!0,size:"200",lineClamp:1,children:t})}),(0,V.jsx)(Z.xv,{inline:!0,size:"200",children:i})]}):(0,V.jsxs)(Z.xu,{children:[(0,V.jsx)(Z.xv,{inline:!0,size:"200",children:i}),(0,V.jsx)(Z.rU,{display:"inlineBlock",href:h,underline:"hover",children:(0,V.jsx)(Z.xv,{color:"default",weight:"bold",inline:!0,size:"200",lineClamp:1,children:t})})]})}return(0,V.jsx)(Z.xu,{children:(0,V.jsx)(lt.Z,{pin:t,children:(0,V.jsx)(Z.xv,{color:"default",overflow:"normal",size:"200",weight:"bold",children:_})})})}var ut=i(955362),pt=i(397066),ht=i(48714);function _t(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class mt extends n.Component{constructor(...e){super(...e),_t(this,"state",{spamCheck:null}),_t(this,"mounted",!1),_t(this,"handleSpammyDomainCheck",(()=>{const{location:e,pin:t,surface:i,url:n}=this.props;n&&t&&(0,ht.$3)({location:e,pin:t,surface:i})&&(0,ht.iw)({isMounted:this.mounted,pin:t,location:e,spamCheckCallback:e=>this.setState({spamCheck:e}),href:n})})),_t(this,"handleClick",(e=>{const{auxData:t,location:i,onClick:n,pin:o,pinId:a,url:r,logContextEvent:s}=this.props;(0,ht.gV)({isOffsiteUrl:!0,event:e})||(e.preventDefault(),n&&n(e),r&&(0,pt.h)({href:r,pinId:a,pin:o,location:i,auxData:t},s))}))}componentDidMount(){this.mounted=!0,this.handleSpammyDomainCheck()}componentWillUnmount(){this.mounted=!1}componentDidUpdate(){const{spamCheck:e}=this.state;null===e&&this.handleSpammyDomainCheck()}render(){const{children:e,pin:t,url:i}=this.props;return(0,V.jsx)("a",{"aria-label":(null==t?void 0:t.domain)||"",href:i,onClick:this.handleClick,rel:"nofollow",style:{color:"inherit",textDecoration:"none",outline:"none",cursor:"pointer",display:"block"},target:null,children:e})}}function gt(e){var t;const{logContextEvent:i}=(0,U.v)(),n=(0,ie.S6)()(null!==(t=e.pinId)&&void 0!==t?t:"");return(0,V.jsx)(mt,{...e,history:(0,me.useHistory)(),location:(0,me.useLocation)(),logContextEvent:i,match:(0,me.useRouteMatch)(),pin:n})}function xt(e){if(!window||!window.prefetchCompletion||!window.prefetchCompletion[e])return"0";const{downloadedAssets:t,totalAssets:i}=window.prefetchCompletion[e];return i?(t/i*100).toFixed(3).toString():"-1"}var ft=i(941646),yt=i(385740);function vt({children:e,componentType:t,contextLogData:i,pin:n,surface:o,viewParameter:a,viewType:r}){const{logContextEvent:s}=(0,U.v)(),l=(0,X.E)(),{ad_destination_url:c,carousel_data:d,id:u,link:p,tracked_link:h}=n;let _,m=c||h||p||"",g="one-tap-desktop";const x=(0,yt.SU)();if(d){const{carousel_slots:e=[],id:t,index:i=0}=d;e[i]&&e[i].link&&(m=e[i].link),_={carousel_slot_id:e[i]&&e[i].id,carousel_data_id:t,carousel_slot_index:i},g+="-carousel"}return(0,V.jsx)(Z.xu,{"data-test-id":"otpp",children:(0,V.jsx)(ft.Z,{id:g,children:(0,V.jsx)(gt,{auxData:_,onClick:()=>{s({event_type:12,view_type:r||l.viewType,view_parameter:a||l.viewParameter,component:t||l.componentType,object_id_str:u,aux_data:{...i,grid_index:l.slotIndex,pin_id:u,prefetch_percentage_complete:xt(p||"")}}),s({event_type:8948,view_type:r||l.viewType,view_parameter:a||l.viewParameter,component:t||l.componentType,object_id_str:u,aux_data:{...i,click_type:"clickthrough",closeup_navigation_type:"click",grid_index:l.slotIndex,pin_id:u,prefetch_percentage_complete:xt(p||"")}}),s({event_type:13,object_id_str:u,component:t||l.componentType,view_type:3,aux_data:{closeup_navigation_type:"web_closeup",...l.contextLogData,...i}}),s({event_type:13,view_type:x.viewType,view_parameter:x.viewParameter,view_data:x.viewData})},pinId:u,surface:o,url:m,children:e})})})}function bt(e){const{surface:t,...i}=e,{isOneTap:n,isVideo:o,isPromoted:a,isLeadPin:s}=(0,r.Z)(e.pin),l=!s&&(n||o&&a)?vt:lt.Z;return(0,V.jsx)(l,{surface:n?t:void 0,...i})}function Pt({pin:e,pinNoteText:t}){return(0,V.jsx)(bt,{pin:e,children:(0,V.jsx)(Z.xv,{lineClamp:1,overflow:"normal",size:"200",children:t})})}var wt=i(81226);function St({value:e,valueFormat:t}){const i=(0,F.ZP)();return e||0===e?"TIME"===t?(0,wt.Z)(e):(0,V.jsx)(Qe.Z,{shortform:!0,shortformMaximumFractionDigits:1,value:e}):(0,V.jsx)(Z.u,{idealDirection:"up",text:i._('This stat is not available yet', 'closeup.partnerAnalytics.unavailableStat', 'when data for this field has not populated yet'),children:"—"})}var At=i(394951);function kt({pin:e}){var t;const i=(0,F.ZP)(),n=(0,M.Z)(),{checkExperiment:o}=(0,Q.F)(),{isStoryPin:a,isVideo:s}=(0,r.Z)(e),l=n.isAuth&&(null===(t=e.pinner)||void 0===t?void 0:t.id)===n.id&&!e.is_repin,c=n.isAuth&&n.isPartner,d=!!c&&o("px_sce_ps_web").anyEnabled,u=(0,ee.iL)({isOwnPin:l,isPartner:c}),p=(0,ee.H1)({isOwnPin:l,isPartner:c}),h=e.created_at?new Date(e.created_at):null,_=(u||p)&&h&&h.getTime()<=ee.HW.getTime(),m=d&&!!h&&h.getTime()>=At.NS.getTime(),g=u?function(e){const{public_creator_analytics:t}=e,{isStoryPin:i}=(0,r.Z)(e);return i&&t?t:null}(e):function(e){const{aggregated_pin_data:t,creator_analytics:i}=e,{creator_analytics:n}=t||{},{isStoryPin:o}=(0,r.Z)(e);return!i||!o&&n?n:i}(e),x=function({isVideo:e,isStoryPin:t,i18n:i,showPublicPinStats:n,showPrivateFullScreenPinStats:o,showSCEMetrics:a}){return a&&!n?[{align:"start",displayText:i._('Impressions', 'pinRep.pinStats.impression', 'Label for impressions of a pin on pinrep'),field:"impression",iconType:"eye"},{align:"end",displayText:i._('Pin clicks', 'pinRep.pinStats.pinclick', 'Label for pin clicks of a pin on pinrep'),field:"pin_click",iconSize:10,iconType:"hand-pointing"},{align:"center",displayText:i._('Saves', 'pinRep.pinStats.save', 'Label for saves of a pin on pinrep'),field:"save",iconType:"angled-pin"}]:e?[{align:"start",displayText:i._('Video views', 'pinRep.pinStats.videoViews', 'Label for views of a video pin on pinrep'),field:"video_views",iconType:"play"},{align:"center",displayText:i._('Avg. time', 'pinRep.pinStats.videoAverageTime', 'Label for average time of a video pin on pinrep'),field:"video_average_time",iconType:"clock",valueFormat:"TIME"},{align:"end",displayText:i._('Saves', 'pinRep.pinStats.save', 'Label for saves of a video pin on pinrep'),field:"save",iconType:"angled-pin"}]:t?n?[{align:"start",displayText:i._('Full screen plays', 'pinRep.pinStats.fullScreenPlays', 'Label for how many times the Idea Pin has been played full screen'),field:"full_screen_play",iconType:"play"}]:o?[{align:"start",displayText:i._('Full screen plays', 'pinRep.pinStats.fullScreenPlays', 'Label for how many times the Idea Pin has been played full screen'),field:"full_screen_play",iconType:"play"},{align:"center",displayText:i._('Impressions', 'pinRep.pinStats.impression', 'Label for impressions of a pin on pinrep'),field:"impression",iconType:"eye"},{align:"end",displayText:i._('Saves', 'pinRep.pinStats.save', 'Label for saves of a pin on pinrep'),field:"save",iconType:"angled-pin"}]:[{align:"start",displayText:i._('Impressions', 'pinRep.pinStats.impression', 'Label for impressions of a pin on pinrep'),field:"impression",iconType:"eye"},{align:"center",displayText:i._('Closeups', 'pinRep.pinStats.closeups', 'Label for closeups of a pin on pinrep'),field:"closeup",iconSize:10,iconType:"hand-pointing"},{align:"end",displayText:i._('Saves', 'pinRep.pinStats.save', 'Label for saves of a pin on pinrep'),field:"save",iconType:"angled-pin"}]:[{align:"start",displayText:i._('Impressions', 'pinRep.pinStats.impression', 'Label for impressions of a pin on pinrep'),field:"impression",iconType:"eye"},{align:"center",displayText:i._('Saves', 'pinRep.pinStats.save', 'Label for saves of a pin on pinrep'),field:"save",iconType:"angled-pin"},{align:"end",displayText:i._('Link clicks', 'pinRep.pinStats.clickthrough', 'Label for click-throughs of a pin on pinrep'),field:"clickthrough",iconSize:10,iconType:"arrow-up-right"}]}({isVideo:s,isStoryPin:a,i18n:i,showPublicPinStats:u,showPrivateFullScreenPinStats:p,showSCEMetrics:m}),f=s||a?null==g?void 0:g.all_time_realtime:null==g?void 0:g["30d_realtime"];return(0,V.jsx)(Z.kC,{alignItems:"stretch",justifyContent:"start",children:x.map((({align:e,displayText:t,field:i,iconType:n,iconSize:o=12,valueFormat:a})=>(0,V.jsxs)(Z.xu,{alignItems:"center",column:4,display:"flex",justifyContent:e,children:[(0,V.jsx)(Z.xu,{display:"inlineBlock",marginEnd:1,children:(0,V.jsx)(Z.JO,{accessibilityLabel:t,color:"default",icon:n,size:o})}),(0,V.jsx)(Z.xv,{inline:!0,size:"200",children:(0,V.jsx)(St,{value:"full_screen_play"===i&&_?null:null==f?void 0:f[i],valueFormat:a})})]},i)))})}function Et({currentPrice:e,disableLink:t,originalPrice:i,pin:n,surface:o}){const a=i&&i!==e,r=(0,V.jsxs)(Z.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:[e&&(0,V.jsx)(Z.xv,{color:"default",size:"200",weight:"bold",children:e}),a&&(0,V.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:{textDecoration:"line-through",textDecorationColor:"#767676"}},marginStart:1,children:(0,V.jsx)(Z.xv,{color:"subtle",size:"200",weight:"bold",children:i})})]});return t?r:(0,V.jsx)(bt,{pin:n,surface:o,children:r})}function Tt({disableLink:e,pin:t,surface:i}){const n=(0,V.jsx)(Z.kC,{alignItems:"stretch",justifyContent:"start",children:(0,V.jsx)(Z.xv,{color:"default",lineClamp:1,overflow:"normal",size:"200",weight:"normal",children:p(t,i)})});return e?n:(0,V.jsx)(bt,{pin:t,surface:i,children:n})}var Ct=i(202870);function It({disableLink:e,numberOfLines:t=2,pin:i,pinTitle:n,surface:o}){const a=e?n:(0,V.jsx)(bt,{pin:i,surface:o,children:n});return(0,V.jsx)(Z.xv,{color:"default",lineClamp:t,size:"200",weight:"bold",children:a})}var jt=i(327476),Rt=i(225692);const Dt={container:{padding:"8px 6px 16px"},productContainer:{padding:"12px 6px 16px"},imageOnlyAttribution:{hidden:{opacity:0,transition:`opacity ${Rt.X}ms ease`},visible:{opacity:1}}};function zt({attributionType:e,board:t,feedbackData:i,feedbackType:a,hasTextContent:s,hasTitleOrSource:l,hoverTransitionState:c,pin:d,pinNoteText:u,pinTitle:p,productCurrentPrice:h,productOriginalPrice:m,setForcePrimary:g,showCarouselEllipsis:x,showFavoriteButton:f,showGroupBoardAvatar:y,showNativeReactions:v,showOverflowMenu:b,showPinStats:P,showSource:w,showTextContent:S,showAttribution:A,surface:k,titleLines:E}){var T,C,I,j;const R=(0,F.ZP)(),D=(0,M.Z)(),z=(0,o.useDispatch)(),{favorited_by_me:O,favorite_user_count:L,id:N,pinner:B,reaction_counts:U,sponsorship:G,story_pin_data:H}=d,{has_affiliate_products:W}=H||{},{checkExperiment:$}=(0,Q.F)(),K=(0,jt.Z)(),q=function(e,t,i,n,o){var a,s,l,c,d;const{board:u,link_domain:p={},promoter:h,sponsorship:_,native_creator:m}=e,{sponsor:g}=_||{},{isPromoted:x}=(0,r.Z)(e),{official_user:f}=p||{},y=x&&!!_&&(null==m?void 0:m.id)!==(null==h?void 0:h.id),v=e.pinner||{};let b="",P="",w="",S="",A="",k="",E=!1,T=!1,C=!1;function I(e,t){return n&&!!e&&!!t}var j,R,D,z,O,L,N,B;if(y)b=null!==(j=null!==(R=null==m?void 0:m.image_medium_url)&&void 0!==R?R:null==m?void 0:m.image_small_url)&&void 0!==j?j:"",P=I(null==m?void 0:m.is_ads_only_profile,null==m?void 0:m.ads_only_profile_site)?null!==(D=m.ads_only_profile_site)&&void 0!==D?D:"":`/${null!==(z=null==m?void 0:m.username)&&void 0!==z?z:""}/`,w=null==h?void 0:h.full_name,S=null==m?void 0:m.full_name,k=I(null==m?void 0:m.is_ads_only_profile,null==m?void 0:m.ads_only_profile_site)?null!==(O=m.ads_only_profile_site)&&void 0!==O?O:"":`/${null!==(L=null==m?void 0:m.username)&&void 0!==L?L:""}/`,A=`/${null!==(N=null==h?void 0:h.username)&&void 0!==N?N:""}/`,E=null==m||null===(B=m.verified_identity)||void 0===B?void 0:B.verified,T=null==m?void 0:m.is_verified_merchant,C=I(null==m?void 0:m.is_ads_only_profile,null==m?void 0:m.ads_only_profile_site);else if(x&&h)b=h.image_medium_url||h.image_small_url,w=h.full_name,S=i._('Promoted by', 'indicating the username of the person who promoted the pin', 'indicating the username of the person who promoted the pin'),o&&(S=o(S)),k=I(h.is_ads_only_profile,h.ads_only_profile_site)?h.ads_only_profile_site:`/${h.username}/`,C=I(h.is_ads_only_profile,h.ads_only_profile_site);else if(_&&null!=g&&g.username){var M,Z,F,U,V,G,H,W,$;b=null!==(M=null!==(Z=null!==(F=null==m?void 0:m.image_large_url)&&void 0!==F?F:null==m?void 0:m.image_medium_url)&&void 0!==Z?Z:null==m?void 0:m.image_small_url)&&void 0!==M?M:"",P=I(null==m?void 0:m.is_ads_only_profile,null==m?void 0:m.ads_only_profile_site)?null!==(U=m.ads_only_profile_site)&&void 0!==U?U:"":`/${null!==(V=null==m?void 0:m.username)&&void 0!==V?V:""}/`,w=g.full_name,S=null==m?void 0:m.full_name,k=I(null==m?void 0:m.is_ads_only_profile,null==m?void 0:m.ads_only_profile_site)?null!==(G=m.ads_only_profile_site)&&void 0!==G?G:"":`/${null!==(H=null==m?void 0:m.username)&&void 0!==H?H:""}/`,A=`/${null!==(W=g.username)&&void 0!==W?W:""}/`,E=null==m||null===($=m.verified_identity)||void 0===$?void 0:$.verified,T=null==m?void 0:m.is_verified_merchant,C=I(null==m?void 0:m.is_ads_only_profile,null==m?void 0:m.ads_only_profile_site)}else if(m){var K,q,Y,X;b=null!==(K=null!==(q=null!==(Y=m.image_large_url)&&void 0!==Y?Y:m.image_medium_url)&&void 0!==q?q:m.image_small_url)&&void 0!==K?K:"",S=m.full_name,k=I(m.is_ads_only_profile,m.ads_only_profile_site)?m.ads_only_profile_site:`/${m.username}/`,E=null===(X=m.verified_identity)||void 0===X?void 0:X.verified,T=m.is_verified_merchant,C=I(m.is_ads_only_profile,m.ads_only_profile_site)}else if("show-for-claimed-content"===t){var J,Q,ee,te,ie;null!=f&&f.is_primary_website_verified&&f.username&&(b=null!==(J=null!==(Q=null!==(ee=f.image_large_url)&&void 0!==ee?ee:f.image_medium_url)&&void 0!==Q?Q:f.image_small_url)&&void 0!==J?J:"",S=f.full_name,k=I(f.is_ads_only_profile,f.ads_only_profile_site)?f.ads_only_profile_site:`/${null!==(te=f.username)&&void 0!==te?te:""}/`,E=null===(ie=f.verified_identity)||void 0===ie?void 0:ie.verified,T=f.is_verified_merchant,C=I(f.is_ads_only_profile,f.ads_only_profile_site))}else{var ne,oe,ae,re;b=null!==(ne=null!==(oe=null!==(ae=v.image_large_url)&&void 0!==ae?ae:v.image_medium_url)&&void 0!==oe?oe:v.image_small_url)&&void 0!==ne?ne:"",P=`/${v.username}/`,S=v.full_name,k=u?u.url:"",E=null===(re=v.verified_identity)||void 0===re?void 0:re.verified,T=v.is_verified_merchant}return{avatarUrl:null!==(a=b)&&void 0!==a?a:"",attributionNameLink:null!==(s=P)&&void 0!==s?s:"",attributionTitle:null!==(l=w)&&void 0!==l?l:"",name:null!==(c=S)&&void 0!==c?c:"",sponsorUrl:A,url:null!==(d=k)&&void 0!==d?d:"",verifiedIdentity:!!E,isVerifiedMerchant:!!T,shouldRenderAdsOnlyProfileClick:!!C}}(d,e,R,$("web_ads_only_profiles_link_redirect").anyEnabled,K),{avatarUrl:Y,attributionNameLink:X,attributionTitle:J,name:ee,sponsorUrl:te,url:ie,verifiedIdentity:ne,isVerifiedMerchant:oe,shouldRenderAdsOnlyProfileClick:ae}=q,re=!!d.promoter&&!d.is_downstream_promotion,se=re&&(null===(T=d.native_creator)||void 0===T?void 0:T.id)===(null===(C=d.promoter)||void 0===C?void 0:C.id),le=(0,_e.Z)(101,{view_type:3,element:27,object_id_str:N,component:d.story_pin_data_id?230:void 0,aux_data:{pin_id:N,...null!=G&&null!==(I=G.creator)&&void 0!==I&&I.id&&null!==(j=G.sponsor)&&void 0!==j&&j.id?{creator_id:G.creator.id,sponsor_id:G.sponsor.id}:{}}}),ce=e=>z(ce(e)),{full_name:de}=(null==G?void 0:G.sponsor)||{},ue="ConversationView"===k?{padding:"8px"}:Dt.container;return(0,V.jsxs)(Z.xu,{dangerouslySetInlineStyle:{__style:ue},children:[x&&(0,V.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:l||y||"none"!==e?{marginBottom:"6px"}:{}},display:"flex",justifyContent:"center",children:(0,V.jsx)(Be.default,{pinId:N})}),P&&(0,V.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:{marginBottom:"6px"}},flex:"grow",width:"100%","data-test-id":"pin-stats-footer",children:(0,V.jsx)(kt,{pin:d})}),(0,V.jsx)(Z.kC,{alignItems:"stretch",justifyContent:"start",children:(0,V.jsxs)(Z.xu,{flex:"grow",children:[(!!G||W&&!re)&&!se&&(0,V.jsx)(Z.xu,{marginBottom:1,children:(0,V.jsx)(Z.xu,{flex:"grow",overflow:"hidden",children:(0,V.jsx)(Ct.Z,{hasAffiliateProducts:W,href:te||ie,isPromoted:re,sponsorName:de,sponsorshipStatus:null==G?void 0:G.status,onNavigateSponsorClick:()=>{ce(N),le()},textWeight:"bold"})})}),(S&&s||f)&&(0,V.jsxs)(Z.xu,{marginBottom:1,children:[(m||h)&&(0,V.jsx)(Z.xu,{marginBottom:1,children:(0,V.jsx)(Et,{currentPrice:h,originalPrice:m,pin:d,surface:k})}),f?(0,V.jsxs)(Z.kC,{alignItems:"start",children:[(0,V.jsx)(Z.kC,{flex:"grow",children:(0,V.jsx)(It,{numberOfLines:E,pin:d,pinTitle:p,surface:k})}),(0,V.jsx)(Z.xu,{marginStart:3,children:(0,V.jsx)(We,{board:t,favorited:!!O,favoriteCount:null!=t&&t.is_collaborative&&(0,_.Z)({board:t,viewer:D})?null!=L?L:0:void 0,pinId:N})})]}):(0,V.jsx)(It,{numberOfLines:E,pin:d,pinTitle:p,surface:k}),w&&(0,V.jsx)(Z.xu,{marginBottom:2,children:(0,V.jsx)(Tt,{pin:d,surface:k})})]}),A&&(0,V.jsxs)(Z.kC,{alignItems:"center",justifyContent:"start",children:[(0,V.jsx)(Z.xu,{flex:"grow",children:(()=>{const t=(0,V.jsx)(Ne,{attributionNameLink:X,attributionTitle:re&&!G||se?J:"",avatarUrl:Y,isPromotedByPinCreator:!!se,isVerifiedMerchant:oe,shouldRenderAdsOnlyProfileClick:ae,name:ee,pin:d,url:ie,verifiedIdentity:ne});switch(e){case"none":return null;case"image-only-credit":return(0,V.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:Dt.imageOnlyAttribution["active"===c?"visible":"hidden"]},children:(0,V.jsx)(dt,{pin:d,feedbackType:a})});default:return Object.values(q).some((e=>Boolean(e)))?t:null}})()}),b&&(0,V.jsx)(Z.xu,{flex:"none",children:(0,V.jsx)(ut.default,{feedbackData:i,feedbackType:a,pin:d,pinTitle:p,setForcePrimary:g,transparentBackground:!0})})]}),v&&!!U&&Object.keys(U).length>0&&(0,V.jsx)(Z.xu,{marginTop:"ConversationView"===k?2:void 0,children:(0,V.jsx)(st,{pinId:N,pinner:B,reactionCounts:U,surface:k})}),u&&(0,V.jsx)(Z.xu,{marginBottom:1,children:(0,V.jsx)(Pt,{pin:d,pinNoteText:u})}),y&&!f&&(0,V.jsx)(Z.xu,{alignItems:"center",display:"flex",marginTop:1,marginBottom:1,children:(0,V.jsxs)(n.Fragment,{children:[(0,V.jsx)(Re,{attributionNameLink:X||ie,avatarUrl:Y,fullWidth:!1,name:ee,accessibilityLabel:ee,shouldRenderAdsOnlyProfileClick:ae}),(0,V.jsx)(Z.xu,{marginStart:2,flex:"grow",children:(0,V.jsx)(Z.xv,{size:"200",children:ee})})]})})]})},`${d.id}-sponsor-name-link`)]})}var Ot=i(149230);function Lt(){const e=(0,F.ZP)();return(0,V.jsx)(Z.xv,{color:"subtle",overflow:"normal",size:"200",weight:"normal",children:e._('Sold out', 'pinrep.footer.outOfStock', 'Footer text to indicate that product pin is out of stock.')})}var Nt=i(104389);function Bt(){const e=(0,F.ZP)();return(0,V.jsx)(Z.xv,{color:"subtle",overflow:"normal",size:"200",weight:"normal",children:e._('See price on site', 'pinrep.footer.staleProduct', 'Footer text to indicate that is a stale(untrustworthy) product pin.')})}const Mt=18;function Zt({dimension:e,color:t,isSelected:i,img:n,selectVariant:o}){var a,r,s;const l=(0,F.ZP)(),c=(0,V.jsx)(Z.iP,{fullHeight:!0,fullWidth:!0,rounding:1,onMouseEnter:({event:i})=>{i.preventDefault(),i.stopPropagation(),o({dimensionName:e,variant:t})},onFocus:()=>{o({dimensionName:e,variant:t})},children:(0,V.jsx)(Z.xu,{"data-test-id":`primary-variant-preview-icon-${t}`,height:Mt,width:Mt,rounding:1,display:"flex",alignItems:"center",justifyContent:"center",dangerouslySetInlineStyle:{__style:{border:i?"1px solid black":"1px solid #EFEFEF"}},children:(0,V.jsx)(Z.xu,{height:14,width:14,position:"absolute",rounding:1,overflow:"hidden",children:(0,V.jsx)(Z.xu,{"data-test-id":`${t}-variant-preview-wrapper`,dangerouslySetInlineStyle:{__style:{transform:"scale(10,10)"}},children:(0,V.jsx)(Z.zd,{height:14,width:14,rounding:1,children:(0,V.jsx)(Z.Ee,{alt:l._('Color variant preview image', 'MerchantStorefront.Variant.VariantPreviewIcon.Image', 'Alt text for color variant preview image'),naturalHeight:null!==(a=n.height)&&void 0!==a?a:1,naturalWidth:null!==(r=n.width)&&void 0!==r?r:1,src:null!==(s=n.url)&&void 0!==s?s:"",fit:"contain"})})})})})});return(0,V.jsx)(Z.xu,{"data-test-id":`primary-variant-main-${t}`,display:"inlineBlock",height:Mt,rounding:1,width:Mt,children:c})}function Ft(){const{logContextEvent:e}=(0,U.v)(),t=(0,oe.Xx)(),i=t&&t.primaryVariants.filter((e=>e.image)).length>0;if((0,n.useEffect)((()=>{e({event_type:120,component:14092})}),[i,e]),!t)return null;const{primaryVariants:o,primaryDimName:a}=t,r=o.slice(0,6).map((e=>{const i=e.value,n=e.value===t.selectedMap[a],o=e.image;return o?(0,V.jsx)(Zt,{dimension:a,color:i,isSelected:n,img:o,selectVariant:t.selectVariant},i):null})).filter(Boolean);if(o.length>6){const e=o.length-6;r.push((0,V.jsx)(Z.xu,{"data-test-id":"plus-number",display:"flex",height:Mt,rounding:1,width:Mt,justifyContent:"center",children:(0,V.jsxs)(Z.iP,{fullHeight:!0,fullWidth:!0,rounding:1,onTap:({event:e})=>{e.stopPropagation()},children:["+",e]})},6))}return(0,V.jsx)(Z.kC,{justifyContent:"start",alignItems:"center",gap:3,children:r})}function Ut({contentType:e,hasTextContent:t,pin:i,pinTitle:o,productCurrentPrice:a,productOriginalPrice:r,productRating:s,productShipping:l,showSource:c,showVisitSiteButton:d,surface:p,titleLines:h}){var _;const{logContextEvent:m}=(0,U.v)(),g=(0,F.ZP)(),{checkExperiment:x}=(0,Q.F)(),{anyEnabled:f,group:y}=x("web_shopping_grid_metadata_ratings_shipping",{dangerouslySkipActivation:!0}),v=(null===(_=i.rich_summary)||void 0===_?void 0:_.url)||i.link;"shopping"!==e||y.includes("pwt")||x("web_shopping_grid_metadata_ratings_shipping");let b=null;if((0,oe.Xx)()){const{anyEnabled:e}=x("storefront_variant_pins");e&&(b=(0,V.jsx)(Ft,{}))}const P=(0,Ot.Z)({url:v})?"nofollow":"none";return(0,V.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:Dt.productContainer},height:"100%",children:(0,V.jsx)(Z.kC,{direction:"column",flex:"grow",height:"100%",justifyContent:"between",children:t&&(0,V.jsxs)(n.Fragment,{children:[(0,V.jsx)(bt,{pin:i,surface:p,children:(0,V.jsxs)(Z.kC,{direction:"column",gap:1,children:[(r||a)&&(0,V.jsx)(Et,{currentPrice:a,disableLink:!0,originalPrice:r,pin:i,surface:p}),(0,u.qN)(i)&&(0,V.jsx)(Lt,{}),(0,u.SP)(i)&&(0,V.jsx)(Bt,{}),(0,V.jsx)(It,{disableLink:!0,numberOfLines:h,pin:i,pinTitle:o,surface:p}),c&&(0,V.jsx)(Tt,{disableLink:!0,pin:i,surface:p}),"shopping"===e&&f&&(s||Number.isFinite(null==l?void 0:l.free_shipping_value))&&(0,V.jsx)(Nt.Z,{count:null==s?void 0:s.count,countFormat:"number",isGridView:!0,ratingValue:null==s?void 0:s.rating,shippingInfo:l}),b]})}),d&&v?(0,V.jsx)(Z.xu,{marginTop:2,children:(0,V.jsx)(Z.zx,{role:"link",fullWidth:!0,href:v,rel:P,onClick:()=>{m({event_type:12,view_type:1,view_parameter:3563})},target:"blank",text:g._('Visit site', 'ShoppingList.Pin.CTA.Button.VisitSite.Text', 'Text on CTA button on ShoppingList Pin to Visit Site')})}):null]})})})}const Vt=(0,n.memo)((function({attributionType:e,blockClickEvents:t,board:i,contentType:n,feedbackData:o,feedbackType:a,hoverTransitionState:r,pin:s,pinNoteText:l,pinTitle:c,productCurrentPrice:d,productOriginalPrice:u,productRating:p,productShipping:h,setForcePrimary:_,showCarouselEllipsis:m,showFavoriteButton:g,showGroupBoardAvatar:x,showNativeReactions:f,showOverflowMenu:y,showPinStats:v,showSource:b,showTextContent:P,showVisitSiteButton:w,showAttribution:S=!0,surface:A,titleLines:k}){const E=c||b,T="shopping"===n?(0,V.jsx)(Ut,{contentType:n,hasTextContent:!!E,pin:s,pinTitle:c,productCurrentPrice:d,productOriginalPrice:u,productRating:p,productShipping:h,showSource:b,showVisitSiteButton:w,surface:A,titleLines:k}):(0,V.jsx)(zt,{attributionType:e,board:i,feedbackData:o,feedbackType:a,hasTextContent:!!E,hasTitleOrSource:!!E,hoverTransitionState:r,pin:s,pinNoteText:l,pinTitle:c,productCurrentPrice:d,productOriginalPrice:u,setForcePrimary:_,showCarouselEllipsis:m,showFavoriteButton:g,showGroupBoardAvatar:x,showNativeReactions:f,showOverflowMenu:y,showPinStats:v,showSource:b,showTextContent:P,showAttribution:S,surface:A,titleLines:k});return t?(0,V.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:{pointerEvents:"none"}},children:T}):(0,V.jsx)(Z.kC,{flex:"grow",children:(0,V.jsx)(se.Z,{fullWidth:!0,children:T})})}));var Gt=i(685909),Ht=i(784590),Wt=i(990823);const $t=(0,n.lazy)((()=>i.e(34979).then(i.bind(i,91540)))),Kt=(0,n.lazy)((()=>Promise.all([i.e(97270),i.e(81165),i.e(54996),i.e(50192),i.e(43473)]).then(i.bind(i,666258)))),qt=(0,n.lazy)((()=>Promise.all([i.e(97270),i.e(81165),i.e(54996),i.e(50192),i.e(22347)]).then(i.bind(i,494424)))),Yt=(0,n.lazy)((()=>Promise.all([i.e(97270),i.e(76030),i.e(22538)]).then(i.bind(i,450564)))),Xt=(0,n.lazy)((()=>i.e(1593).then(i.bind(i,331806))));function Jt({derivedSaveButtonOptions:e,forcePrimaryContent:t,showEnabledSaveBehavior:i,onToggleFlyout:a,onToggleModal:r,pin:s}){const l=(0,oe.Xx)(),c=function(e){return(0,Ht.Z)(e?{name:"PinResource",options:{id:e}}:null)}(null==l?void 0:l.variantUrl),d=c&&c.data?c.data:s,{id:u,savedInfo:p}=d,h=(0,n.useRef)(!!p),_=(0,o.useSelector)((({experiences:e})=>{const t=e[1000294];return 502450===(null==t?void 0:t.experience_id)?t:null})),{saveBehaviorType:m}=(0,Wt.tY)(i);void 0!==m&&["classic","controlled","inline"].includes(e.type)&&(e=m);const{viewParameter:g,viewType:x}=(0,X.E)(),f=(0,_e.Z)(101,{element:0,object_id_str:u});let y=null;const v={onToggleModal:a,view:x,viewParameter:g,useLegoStyles:!0};if(!e.hidePinBetterSaveDropdown&&(_||i&&["classic","controlled"].includes(e.type))&&["classic","controlled","inline"].includes(e.type)){const{renderPinSaveTooltip:n}=e;y=(0,V.jsx)(E.Z,{name:"SafeSuspense_PinRepPrimaryContent_QuickSaveButton",children:(0,V.jsx)(O.Z,{children:(0,V.jsx)(se.Z,{children:(0,V.jsx)(Yt,{experience:_||void 0,forcePrimaryContent:t,pin:d,renderPinSaveTooltip:n,showEnabledSaveBehavior:i,viewParameter:g})})})})}else if("classic"===e.type||"controlled"===e.type){const{renderPinSaveTooltip:t}=e;y=(0,V.jsx)(E.Z,{name:"SafeSuspense_PinRepPrimaryContent_PinSaveButton",children:(0,V.jsx)(O.Z,{children:(0,V.jsx)(Z.xu,{"data-test-id":"pin-save-button",maxWidth:"100%",children:(0,V.jsx)(se.Z,{children:(0,V.jsx)(Kt,{onClickCallback:f,onToggleModal:r,oneTapSave:"controlled"===e.type?e:void 0,pin:d,renderPinSaveTooltip:t,renderSavedStatus:()=>!!p&&(0,V.jsx)(se.Z,{children:(0,V.jsx)(Gt.Z,{isNewlySaved:!h.current,name:p.title,type:p.type,url:p.url})}),variant:"lego",viewParameter:g})})})})})}else if("inline"===e.type){const t=d,{initialSelection:i,onSave:n,renderPinSaveTooltip:o,hidePinBetterSaveDropdown:s}=e;y=(0,V.jsx)(E.Z,{name:"SafeSuspense_PinRepPrimaryContent_PinBetterSave",children:(0,V.jsx)(O.Z,{children:(0,V.jsx)(Z.xu,{"data-test-id":"better-save",children:(0,V.jsx)(se.Z,{children:(0,V.jsx)(qt,{initialSelection:i,onSave:n,onToggleFlyout:a,onToggleModal:r,pin:t,renderPinSaveTooltip:o,renderSavedStatus:({savedInfo:e})=>e&&(0,V.jsx)(se.Z,{children:(0,V.jsx)(Gt.Z,{isNewlySaved:!h.current,name:e.title,type:e.type,url:e.url,shouldUseLegoStyles:!0})}),variant:"pin",viewParameter:g,hideDropdown:s})})})})})}else"persistentOneClickSave"===e.type?y=(0,V.jsx)(E.Z,{name:"SafeSuspense_PinRepPrimaryContent_PersistentOneClickSave",children:(0,V.jsx)(O.Z,{children:(0,V.jsx)(Z.xu,{"data-test-id":"persistent-one-click-save",children:(0,V.jsx)(se.Z,{children:(0,V.jsx)($t,{...v,saveOptions:e,pin:d})})})})}):"promote"===e.type&&(y=(0,V.jsx)(Z.kC,{alignItems:"stretch",justifyContent:"end",children:(0,V.jsx)(E.Z,{name:"SafeSuspense_PinRepPrimaryContent_PinPromoteButton",children:(0,V.jsx)(O.Z,{children:(0,V.jsx)(Z.xu,{"data-test-id":"pin-promote-button",children:(0,V.jsx)(se.Z,{children:(0,V.jsx)(Xt,{pin:d})})})})})}));return(0,V.jsx)(E.Z,{name:"PinRepPrimaryContent",children:(0,V.jsx)(Z.xu,{display:"flex",margin:3,children:y&&(0,V.jsx)(Z.xu,{marginStart:"auto",flex:"grow",children:y})})})}var Qt=i(64446);const ei={marginTop:"1px"};function ti({cta:e}){const t=(0,F.ZP)();return(0,V.jsx)(Z.iP,{children:(0,V.jsx)(Z.xu,{"data-test-id":"pinrep-chin",minHeight:32,color:"secondary",dangerouslySetInlineStyle:{__style:ei},children:(0,V.jsxs)(Z.xu,{padding:2,display:"flex",justifyContent:"between",children:[(0,V.jsx)(Z.xv,{size:"200",weight:"bold",children:e||t._('Learn more', '[m10n] pinRep.chin.learnMore', 'Closeup for learn more chin')}),(0,V.jsx)(Z.JO,{icon:"arrow-forward",size:12,accessibilityLabel:t._('Go to lead ad', '[m10n] pinRep.chin.arrowForwardIcon', 'Arrow forward icon for chin'),color:"default"})]})})})}var ii=i(40706),ni=i(876371),oi=i(438908),ai=i(453782);const ri={__style:{boxShadow:"inset 0 0 0 2px black, inset 0 0 0 4px white",transition:"all 300ms ease"}};function si({isSelected:e}){const t=(0,F.ZP)();return(0,V.jsx)(Z.xu,{bottom:!0,left:!0,position:"absolute",right:!0,rounding:4,top:!0,dangerouslySetInlineStyle:e?ri:{},children:(0,V.jsx)(Z.xu,{position:"absolute",bottom:!0,right:!0,padding:3,children:(0,V.jsx)(Z.xu,{alignItems:"center",color:e?"dark":"default",display:"flex",height:"24px",justifyContent:"center",rounding:2,width:"24px",dangerouslySetInlineStyle:{__style:{transition:"all 300ms ease"}},children:(0,V.jsx)(Z.JO,{accessibilityLabel:t._('Pin is selected to be saved', 'SectionSuggestionPin.iconOnPin.selectedPin', 'accessibility label on an icon'),color:"inverse",icon:"check",size:12})})})})}var li=i(124364),ci=i(802933),di=i(674915),ui=i(944546),pi=i(428258),hi=i(172071);const _i={},mi=e=>{hi.Z.increment("web_prefetch_via_xhr.attempt",1);const t=(0,ue.Z)(e);return new Promise(((i,n)=>{if(window.navigator&&window.navigator.connection){const e=window.navigator.connection;e.saveData&&(hi.Z.increment("web_prefetch_via_xhr.saveDataOn",1),i()),/2g/.test(e.effectiveType)&&(hi.Z.increment("web_prefetch_via_xhr.poorConnection",1),i())}const o=new XMLHttpRequest;o.open("GET",e),o.onload=()=>{200===o.status?(_i[e]&&(_i[e].loaded=!0),hi.Z.increment("web_prefetch_via_xhr.load.success",1,{hostname:t.hostname||"unknown"}),i(o.response)):(hi.Z.increment("web_prefetch_via_xhr.load.error",1,{hostname:t.hostname||"unknown"}),n())},_i[e]||(o.send(),_i[e]={added:!0,xhr:o},hi.Z.increment("web_prefetch_via_xhr.xhrSent",1,{hostname:t.hostname||"unknown"}))}))},gi={},xi=(e,t)=>{const i="string"==typeof e?e:e.url;if(t&&i){const e="control"===t?"v3.pinimg.com":"v2.pinimg.com";return i.replace("v.pinimg.com",e)}return i};function fi(e,t){return(xi("https://v.pinimg.com/videos/mc/hls/",t)||"")+`${e.slice(0,2)}/${e.slice(2,4)}/${e.slice(4,6)}/${e}`}function yi(e){const{id:t}=e;t&&gi[t]&&gi[t].length>0&&gi[t].forEach((e=>{(e=>{_i[e]&&_i[e].xhr&&!_i[e].loaded&&(hi.Z.increment("web_prefetch_abort_xhr",1),_i[e].xhr.abort(),_i[e].aborted=!0)})(e)}))}function vi({autoplaySettingOff:e,blockClickEvents:t,fallbackColor:i,imageFit:o,imageHeightModifier:a,isDenseView:s,isHovering:l,isSocialSeasonalBoard:c=!1,onError:d,onLoad:u,pin:p,pinImageCrop:h,resolution:_="default",rootMargin:m,selectionState:g,showCarousel:x,showPromotedVideos:f,showLeadPinStdBeta:y,showUnavailablePin:v,surface:b}){const{contextLogData:P,slotIndex:w,viewParameter:S,viewType:A}=(0,X.E)(),{checkExperiment:k}=(0,Q.F)(),{group:E}=k("web_prefetch_video_in_feed"),{id:T="",aggregated_pin_data:C,image_signature:I,story_pin_data:j}=p,{pin_tags_chips:R}=C||{},{isOneTap:D,isVideo:z,isPromoted:O,isGif:L}=(0,r.Z)(p),{cropHeight:N,cropWidth:B}=(e=>"string"==typeof e?{cropHeight:0,cropWidth:0}:{cropHeight:e.height,cropWidth:e.width})(h);let M=null;if(v)M=(0,V.jsx)(li.Z,{isDenseView:s,height:s?250:420,rounding:0,width:s?164:236});else if(e||!z||!f&&O||"BoardCoverSelectablePin"===b)if(x)M=(0,V.jsx)(Z.xu,{"data-test-id":"pinrep-carousel",children:(0,V.jsx)(ni.Z,{cropHeight:N,cropWidth:B,onError:d,onLoad:u,highResOnly:"high-res"===_,lowResOnly:"low-res"===_,pinId:T,showCarouselBadge:!1,pin:p})});else{const e="backend"===h?function({images:e,image_crop:t}){var i;const n=e&&(null===(i=e["236x"])||void 0===i?void 0:i.height);if(t&&(0!==t.min_y||1!==t.max_y)){const{min_y:e=0,max_y:i=0}=t;return{marginTop:(e>0?-1*e*(null!=n?n:0):0)+"px",marginBottom:`${i<1?Math.round(-1*(1-i)*(null!=n?n:0)):0}px`}}return{}}(p):{};M=(0,V.jsxs)(Z.xu,{dangerouslySetInlineStyle:{__style:e},"data-test-id":"pinrep-image",minHeight:55,children:[(0,V.jsx)(oi.Z,{animateGif:L&&c,cropHeight:N,cropWidth:B,fallbackColor:i,imageFit:o,highResOnly:"high-res"===_,lowResOnly:"low-res"===_,mediumResOnly:"medium-res"===_,onLoad:u,onError:d,pin:p}),y&&(0,V.jsx)(ti,{cta:p.call_to_action_text})]})}else M=(0,V.jsxs)(Z.xu,{"data-test-id":"pinrep-video",direction:"column",display:"flex",height:N||void 0,justifyContent:"center",children:[(0,V.jsx)(ai.Z,{cropHeight:N,cropWidth:B,highResOnly:"high-res"===_,imageHeightModifier:a,inAdsDesktopVideoExperiment:z&&f,isExperimentalPinRep:!0,lowResOnly:"low-res"===_,onError:d,onLoad:u,pin:p,rootMargin:m,surface:b,viewParameter:S,viewType:A}),y&&(0,V.jsx)(ti,{cta:p.call_to_action_text})]});const F=(0,V.jsx)(Z.zd,{wash:!0,children:(0,V.jsx)(ce.Z,{hovered:l,pin:p,slotIndex:w,viewType:1,children:M})}),U=["selected-image-only","deselected-image-only"].includes(g),G="selected-image-only"===g,H=(0,n.useRef)(!0),W=(0,n.useRef)(!1),$=(0,n.useRef)(!1),K=k("web_video_quic").group;if((0,n.useEffect)((()=>{H.current||!l||D||t||W.current?l||!W.current||$.current||(yi(j||p),$.current=!0):j?(!function(e,t){var i;const{id:n,pages:o,pages_preview:a}=e;if(!a&&!o)return;const r=a?a[0]:null==o?void 0:o[0],s=null==r||null===(i=r.blocks)||void 0===i?void 0:i.find((e=>3===e.block_type));if(s&&s.video){const{hlsv3:e,mp4:i}=(0,pi.Z)(s.video)||{},o=i||e;if(o&&n){var l;const e=null!==(l=xi(o,t))&&void 0!==l?l:"";gi[n]=gi[n]?gi[n].concat(e):[e],mi(e)}}}(j,K),W.current=!0):(!function(e,t){const{id:i,videos:n}=e,{video_list:o}=n||{},a=(0,ci.Z)({pin:e}),{video:r}=(0,di.Z)(a)||{},{hls:s,hlsv3:l}=r||{};if(o){const e=(0,pi.t)(o)||{},n=l||s||{};if(n.url){var c;const e=null!==(c=xi(n.url,t))&&void 0!==c?c:"";gi[i]=gi[i]?gi[i].concat(e):[e],mi(e).then((e=>{let n=[];if("string"==typeof e&&(n=e.split("\n").filter((e=>e.endsWith(".m3u8")))),n&&n[ui.VS]){const e=fi(n[ui.VS],t);return gi[i]=gi[i].concat(e),mi(null!=e?e:"")}return null})).then((e=>{let n=[];if("string"==typeof e&&(n=e.split("\n").filter((e=>e.endsWith(".ts")))),n&&n[0]){const e=fi(n[0],t);return gi[i]=gi[i].concat(e),mi(null!=e?e:"")}return null}))}else if(e.url){var d;const n=null!==(d=xi(e.url,t))&&void 0!==d?d:"";mi(n),gi[i]=gi[i]?gi[i].concat(n):[n]}}}(p,K),W.current=!0),H.current=!1}),[t,l,D,j,p,E,K]),t)return(0,V.jsxs)(n.Fragment,{children:[F,U&&(0,V.jsx)(si,{isSelected:G}),R&&(0,V.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:{marginTop:1}},children:(0,V.jsx)(ii.Z,{pin:p,enableCloseupLink:!0})})]});const{commerce_data:q,story_type:Y,board_id:J,board_pin_count:ee}=P||{},te=["RelatedProductsExploreTab","RelatedProductsFeed"].includes(b);return(0,V.jsxs)(bt,{contextLogData:{commerce_data:te?q:void 0,grid_index:w,image_signature:I,story_type:Y,board_id:J,board_pin_count:ee},elementType:j?12372:35,pin:p,surface:b,children:[F,R&&(0,V.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:{marginTop:1}},children:(0,V.jsx)(ii.Z,{pin:p,enableCloseupLink:!1})})]})}var bi=i(2396),Pi=i(946984);const wi=(0,bi.Z)((({handleSendShareFlyoutButtonClick:e})=>{const t=(0,F.ZP)(),i=(0,Pi.Z)();return(0,V.jsx)(Z.zx,{fullWidth:!0,onClick:({event:t})=>{t.stopPropagation(),i?i():e()},text:t._('Send', 'Send a pin', 'Send a pin'),color:"gray",accessibilityLabel:t._('Send', 'Accessible label to send a pin', 'Accessible label to send a pin')})}));function Si(e){return e<160?"header-only":"none"}function Ai(e){const[t,i]=(0,n.useState)(e.current?Si(e.current.clientHeight||0):"none");return function(e,t){const i=(0,n.useRef)();(0,n.useEffect)((()=>{const n=e.current;if(!n)return;const o=i.current;o&&o.width===n.offsetWidth&&o.height===n.offsetHeight||(i.current={width:n.offsetWidth||0,height:n.offsetHeight||0},t&&t(i.current))})),i.current}(e,(({height:e})=>{const n=Si(e);n!==t&&i(n)})),t}var ki=i(485308),Ei=i(704115);const Ti={impressed:{backgroundColor:"#adebad"}};function Ci({debugImpressionState:e="paused",slotIndex:t}){return"paused"===e?null:(0,V.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:Ti.impressed},"data-test-id":"debug-pin-impressions",position:"absolute",top:!0,left:!0,right:!0,bottom:!0,opacity:.5,children:(0,V.jsx)(Z.xu,{position:"absolute",top:!0,left:!0,padding:2,color:"selected",children:(0,V.jsx)(Z.xv,{color:"inverse",children:(0,V.jsx)("span",{className:"deprecatedTextSizeXL",children:t})})})})}var Ii=i(43671),ji=i(841509),Ri=i(525199),Di=i(310227);const zi="#000000",Oi="#ffffff";function Li({selected:e=!1}){const t=(0,F.ZP)(),{isRTL:i}=(0,ve.B)();return(0,V.jsx)(Z.xu,{position:"absolute",top:!0,left:!0,bottom:!0,right:!0,zIndex:new Z.Ry(1),"data-test-id":"pinRepSelectionBorder",dangerouslySetInlineStyle:{__style:{borderWidth:"3px",borderStyle:"solid",borderColor:e?zi:Oi,borderRadius:Di.Oc,boxShadow:e?"inset 0 0 0 3px #fff":void 0}},children:e?(0,V.jsx)(Z.xu,{position:"absolute",bottom:!0,right:!i,left:i,display:"flex",alignItems:"center",justifyContent:"center",margin:3,rounding:2,height:24,width:24,color:"dark",children:(0,V.jsx)(Z.JO,{accessibilityLabel:t._('Check icon', 'pinRepSelectionBorder.checkIcon', 'Accessibility label for check icon on selected Pin'),icon:"check",color:"inverse",size:12})}):(0,V.jsx)(Z.xu,{right:!i,left:i,position:"absolute",top:!0,margin:3,children:(0,V.jsx)(Z.JO,{accessibilityLabel:t._('Handle icon', 'pinRepSelectionBorder.handleIcon', 'Accessibility label for handle icon on an organizable Pin'),icon:"handle",color:"light",size:24})})})}const Ni={wrapper:{borderRadius:Di.Oc,WebkitMaskImage:"-webkit-radial-gradient(white, black)"},promotedPinBorderTreatment:{background:"#EFEFEF",padding:4,borderRadius:20},primaryContentContainer:{marginBottom:"auto"},visualOverlay:{backgroundColor:Di.Dv.VISUAL},savedOverlay:{backgroundColor:Di.Dv.SAVED},legoWashOverlay:{backgroundColor:Di.Dv.LEGO_WASH}};function Bi({children:e,savedOverlayVisibility:t="none",visualOverlayVisibility:i="none",handleMouseOverPinContent:n,handleMouseLeavePinContent:o,primaryContent:a,primaryContentVisibility:r="none",secondaryContent:s,secondaryContentVisibility:l="none",accessoryContent:c,accessoryContentVisibility:d="none",actionBar:u,actionBarVisibility:p="none",seeStatsButton:h,footer:_,selectionState:m="no-selection",debugContent:g,signalDebuggerContent:x,signalDebuggerV2Content:f,signalDebuggerV2ContentVisibility:y="none",obscuredPinOverlay:v,showNoPinBorderRadius:b,showPromotedPinBorderTreatment:P,showLeadPinStdBeta:w,shouldUseLegoWash:S}){return(0,V.jsx)(Z.xu,{dangerouslySetInlineStyle:{__style:P?Ni.promotedPinBorderTreatment:{}},height:"100%","data-test-id":"pinRepPresentation",children:(0,V.jsxs)(Z.xu,{dangerouslySetInlineStyle:{__style:b?{}:Ni.wrapper},"data-test-id":"pinWrapper",display:"flex",direction:"column",height:"100%",overflow:"hidden",position:"relative",children:[["selected","deselected"].includes(m)&&(0,V.jsx)(Li,{selected:"selected"===m}),(0,V.jsxs)(Z.xu,{"aria-hidden":Boolean(v),children:[(0,V.jsxs)(Z.xu,{dangerouslySetInlineStyle:{__style:b?{}:Ni.wrapper},overflow:"hidden",position:"relative",onFocus:n,onBlur:o,onMouseEnter:n,onMouseLeave:o,children:[e,(0,V.jsx)(Ri.Z,{visibility:i,children:(0,V.jsx)(ji.Z,{additionalStyles:S?Ni.legoWashOverlay:Ni.visualOverlay})}),(0,V.jsx)(Ri.Z,{visibility:t,children:(0,V.jsx)(ji.Z,{additionalStyles:S?Ni.legoWashOverlay:Ni.savedOverlay})}),c&&(0,V.jsx)(Ri.Z,{visibility:d,children:(0,V.jsx)(ji.Z,{children:c})}),s&&(0,V.jsx)(Ri.Z,{visibility:l,children:(0,V.jsx)(ji.Z,{children:s})}),a&&(0,V.jsx)(Ri.Z,{visibility:r,children:(0,V.jsx)(ji.Z,{children:a})}),f&&(0,V.jsx)(Ri.Z,{visibility:y,children:(0,V.jsx)(ji.Z,{children:(0,V.jsx)(Z.xu,{position:"absolute",left:!0,bottom:!0,marginBottom:12,marginStart:2,children:f})})}),u&&(0,V.jsx)(Ri.Z,{visibility:p,children:(0,V.jsx)(ji.Z,{children:(0,V.jsx)(Z.xu,{position:"absolute",left:!0,right:!0,bottom:!0,marginBottom:w?8:0,children:u})})}),h&&(0,V.jsx)(ji.Z,{children:(0,V.jsx)(Z.xu,{position:"absolute",bottom:!0,children:h})}),g&&(0,V.jsx)(ji.Z,{children:g}),x]}),_]}),v&&(0,V.jsx)(Z.xu,{children:v})]})})}function Mi(e){return"active"===e?"visible":"inactive"===e?"none":"hidden"}function Zi(...e){return e.includes("visible")?"visible":e.includes("hidden")?"hidden":"none"}const Fi=(0,n.memo)((function({actionBarProps:e,blockClickEvents:t,borderStyle:i,currentlyPlayingVideo:o,disableHover:a=!1,footerProps:r,impressionsDebuggerProps:l,obscuredPinOverlayProps:c,onError:d,onLoad:u,pin:p,pinVisualProps:h,presentationProps:_,primaryContentProps:m,rounding:g,secondaryContentProps:x,authDesktopSelectionState:f,showFooter:y,showImpressionsDebugger:v,showObscuredPinOverlay:b,showSeeStatsButton:P,showSignalDebugger:w,showUnavailablePin:S,surface:A,visibilityOverrides:k,imageHeightModifier:T}){var C,I;const{savedInfo:j}=p,{viewType:R}=(0,X.E)(),{showEnabledSaveBehavior:z}=(0,Wt.Yh)(s.ZF.includes(A)||(0,D.Z)(A)),[O,L]=(0,n.useState)(!1),N=(0,Rt.Z)(O);let{isHovering:B,hoverTransitionState:M,handleMouseOver:F,handleMouseLeave:U}=function(){const[e,t]=(0,n.useState)(!1);return{isHovering:e,hoverTransitionState:(0,Rt.Z)(e,0,Rt.X),handleMouseOver:(0,n.useCallback)((()=>t(!0)),[t]),handleMouseLeave:(0,n.useCallback)((()=>t(!1)),[t])}}();a&&(B=!1,M="inactive");const G=(0,Rt.Z)(!!j),H=Mi(G),W=Mi(M),$=Mi(M),q=Mi(N),Y=Mi(G),J=["HomefeedMoreIdeasTabs","BoardMoreIdeasTabContent"].includes(A),Q="visible"!==H||J?H:"none",ee={primaryContentVisibility:null!==(C=k.primaryContent)&&void 0!==C?C:Zi($,q,"visible"===Y?"none":Y),secondaryContentVisibility:(te=Zi($,q,Y),"none"===te?"visible":"visible"===te?"none":"hidden"),actionBarVisibility:Zi($,q),accessoryContentVisibility:"none",signalDebuggerV2ContentVisibility:"visible"};var te;const ie=e=>L(e),ne=e=>L(e),oe=e=>{L(e),e||U()};let ae=null;"none"!==ee.primaryContentVisibility&&(ae=(0,V.jsx)(Jt,{forcePrimaryContent:ie,showEnabledSaveBehavior:z,onToggleFlyout:ne,onToggleModal:oe,pin:p,...m}));let re=null;const le=(0,n.useRef)(!0),ce=le.current;le.current=!1;const de=function(e,t){const{carousel_data:i}=e,{index:o}=i||{},[a,r]=(0,n.useState)(!i||t),s=(0,n.useRef)(o),l=(0,n.useRef)(null);if(i){const e=s.current;s.current=o,(o!==e||t)&&(l.current&&clearTimeout(l.current),r(!0),l.current=setTimeout((()=>{r(!1),l.current=null}),4e3))}return(0,n.useEffect)((()=>()=>{l.current&&clearTimeout(l.current)}),[]),a}(p,ce),ue=Mi((0,Rt.Z)(de));ee.secondaryContentVisibility=null!==(I=k.secondaryContent)&&void 0!==I?I:function(...e){return e.includes("none")?"none":e.includes("hidden")?"hidden":"visible"}(ee.secondaryContentVisibility,ue),re=(x.allowShoppingPriceIndicator||x.shoppingLabelColor||"none"!==ee.secondaryContentVisibility)&&!o&&(0,V.jsx)(Z.xu,{margin:2,children:(0,V.jsx)(Qt.Z,{pin:p,...x})});let pe=null;"visible"===k.accessoryContent&&(pe=(0,V.jsx)(Ce,{pin:p}),ee.accessoryContentVisibility=Mi(M));let he={...e};h.isSocialSeasonalBoard&&(he={...he,showShareButton:!1});let _e=null;P&&(he={...he,showSourceLinkButton:!1},_e=(0,V.jsx)(se.Z,{children:(0,V.jsx)(K,{pinId:p.id,surface:A})})),h.showLeadPinStdBeta&&(he={...he,showSourceLinkButton:!1});const me="visible"===k.actionBar?(0,V.jsx)(Ae,{onToggleFlyout:ne,pin:p,setForcePrimary:L,surface:A,...he}):null;let ge=null;(y||(0,D.Z)(A))&&(ge=(0,V.jsx)(Vt,{blockClickEvents:t,hoverTransitionState:"image-only-credit"===r.attributionType?M:null,pin:p,setForcePrimary:L,surface:A,...r})),h.isSocialSeasonalBoard&&(ge=(0,V.jsx)(Z.xu,{"data-test-id":"social-seasonal-footer",marginTop:2,marginBottom:3,width:"100%",children:(0,V.jsx)(Z.xu,{margin:"auto",width:ki.J,children:(0,V.jsx)(wi,{isFlyoutOpen:O,onFlyoutDismiss:()=>ne(!O),onToggleFlyout:()=>ne(!O),pinId:p.id,sendType:"pin",shownWithinMasonry:!0,viewType:R,element:72,component:13752})})}));const xe=v&&(0,V.jsx)(Ci,{...l}),fe=w&&p.debug_info_html&&(0,V.jsx)(Z.xu,{paddingY:1,children:(0,V.jsx)("pre",{children:p.debug_info_html})}),ye=(0,V.jsx)(Ie.Z,{pin:p}),ve=(0,n.useRef)();"header-only"===Ai(ve)&&(ee.actionBarVisibility="none",ee.accessoryContentVisibility="none");const be=b?(0,V.jsx)(Ii.ZP,{pin:p,...c}):null,Pe="ShoppingGridShippedMetadataWithVisitButton"===A?{height:"100%"}:{},we=y&&"default"===r.attributionType&&s.ZF.includes(A),Se=!p.is_promoted&&!a&&we;return(0,V.jsx)(E.Z,{name:"PinRepContainer",children:(0,V.jsx)(Z.xu,{"data-test-id":"pin","data-test-pin-id":p.id,onFocus:F,onBlur:U,onMouseEnter:F,onMouseLeave:U,dangerouslySetInlineStyle:{__style:Pe},rounding:"ConversationView"===A?g:void 0,borderStyle:"ConversationView"===A?i:"none",overflow:"ConversationView"===A?"hidden":"visible",children:(0,V.jsx)(Bi,{visualOverlayVisibility:W,savedOverlayVisibility:Q,handleMouseOverPinContent:Se?F:()=>{},handleMouseLeavePinContent:Se?U:()=>{},primaryContent:ae,primaryContentVisibility:ee.primaryContentVisibility,secondaryContent:re,secondaryContentVisibility:ee.secondaryContentVisibility,accessoryContent:pe,accessoryContentVisibility:ee.accessoryContentVisibility,actionBar:me,actionBarVisibility:ee.actionBarVisibility,seeStatsButton:_e,footer:ge,selectionState:f,debugContent:xe,signalDebuggerV2Content:ye,signalDebuggerV2ContentVisibility:ee.signalDebuggerV2ContentVisibility,signalDebuggerContent:fe,obscuredPinOverlay:be,..._,children:(0,V.jsx)(Z.xu,{height:"100%",ref:ve,children:(0,V.jsx)(vi,{blockClickEvents:t,showUnavailablePin:S,isHovering:B,onError:d,onLoad:u,pin:p,surface:A,selectionState:f,imageHeightModifier:T,...h})})})})})}));var Ui=i(231947),Vi=i(53987);const Gi=(0,n.lazy)((()=>Promise.all([i.e(97270),i.e(76030),i.e(46760),i.e(92982)]).then(i.bind(i,576070)))),Hi=["ArticleProductsStory","BoardCoverSelectablePin","BoardNoteSelectablePin","BulkEditMode","CommentReply","EngagementDetails","IdeasHubSeasonalRow","OtherProfilePinGrid","SectionSuggestedPins","SelectableBoardlessPin","TopicBestPinNarrow","TopicBestPinWide"],Wi=["BaseBoardPinGrid","UserProfilePinGrid",...G];function $i({attributionOption:e,blockClickEvents:t,debugImpressionState:i,disableReaction:u,feedback:p,imageOnlyOption:h="default",pin:_,pinId:g,pinImageCrop:Z,pinImageFit:F,resolution:U="default",saveButtonOptions:G,authDesktopSurface:H,trackingParameters:W,...$}){var K,se,le,ce,de,ue,pe,he;const _e=(0,ie.S6)()(g)||_,ge=null!==(K=null===(se=_e.board)||void 0===se?void 0:se.id)&&void 0!==K?K:"",xe=(0,te.gC)()(ge)||_e.board;_e.grid_title=_e.grid_title||_.grid_title;const fe=(0,Q.F)(),{checkExperiment:ye}=fe,{collaborated_by_me:ve,collaborator_count:be,is_collaborative:Pe}=xe||{},{is_quick_promotable:we,pinner:Se,showFeedback:Ae,sponsorship:ke}=_e,{isPromoted:Ee}=(0,r.Z)(_e),Te=(0,j.Z)(_e),Ce=(0,M.Z)(),Ie=(0,L.Z)(),{anyEnabled:je}=ye("web_m10n_business_access_orbac_www"),{anyEnabled:Re}=ye("web_m10n_business_access_orbac_ga"),De=Re?(0,Ui.lJ)(Ce,Ie):"",ze=(0,me.useLocation)(),{slotIndex:Oe,viewParameter:Le}=W,Ne=["AuthHomefeed","BaseBoardPinGrid"].includes(H)&&ye("web_repin_flow").anyEnabled,Be=(0,ae.x)(),Me=(0,ne.P)(),{appUI:{videosAutoplaying:Ze}}=(0,J.I)(),Fe=(0,z.Z)(_e.id,Ze),Ue=(0,o.useSelector)((({changeBoardFromToast:e})=>e))||{},Ve=function(e){const t=e.rich_metadata&&e.rich_metadata.products&&e.rich_metadata.products[0]&&e.rich_metadata.products[0].additional_images;return!!(t&&t.length>0)}(_e),Ge=(0,C.Z)(_e),He=Ce.isAuth&&Ce.isEmployee,We=Ce.isAuth&&((0,I.Z)(Ce.createdAt)||(0,R.Z)(null,Ce))&&!Ce.isPartner;let $e=We;"TodayArticleFeed"===H&&($e=!1),"default"!==h&&($e="image-only"===h),(0,D.Z)(H)&&($e=!1),"ShoppingSquareGridDomainNoMetadata"===H&&($e=!0);let Ke=e;(We&&!Ke||Me)&&(Ke="image-only");const qe=(0,T.Z)({feedbackType:null==p?void 0:p.type,pin:_e,viewParameter:Le}),{data:Ye}=p||{},Xe="number"==typeof be&&be>0||Pe;let Je=!1;"OtherProfilePinGrid"===H?Je=!0:"BaseBoardPinGrid"===H?Je="dense"===(null==Be?void 0:Be.boardPinDensity):"UserProfilePinGrid"===H&&(Je="dense"===(null==Be?void 0:Be.profilePinDensity));const Qe=Boolean(Xe&&"BaseBoardPinGrid"===H),et=(0,N.Z)(),tt=(0,re.kW)(),it=tt&&tt[null!==(le=null===(ce=et.data)||void 0===ce?void 0:ce.id)&&void 0!==le?le:""]?tt[null!==(de=null===(ue=et.data)||void 0===ue?void 0:ue.id)&&void 0!==de?de:""]:et.data,nt=(0,k.Z)(Ce,xe);let ot=!1;if(!!(0,me.matchPath)(ze.pathname,{path:"/:username/_created/",exact:!0}))ot=(0,Ui.q6)(Ce,null==it?void 0:it.id,Ie);else if((0,Vi.am)(ze)||(0,Vi.OJ)(ze)){const e=xe&&xe.owner&&xe.owner.id||"";ot=(0,Ui.q6)(Ce,e,Ie)}const at=Boolean(Ce.isAuth&&Se&&Se.id===Ce.id),rt=Boolean(ve||Xe&&nt),st=Ce.isAuth&&Ce.isPartner,lt=!(null===(pe=_e.story_pin_data)||void 0===pe||!pe.is_deleted),ct=(0,n.useMemo)((()=>function({hasCarouselData:e,isDeletedStoryPin:t,surface:i}){const n={primaryContent:null,secondaryContent:null,actionBar:A.includes(i)||t?"none":"visible",accessoryContent:e?"visible":"none"};return t||S.includes(i)?(n.primaryContent="none",n.secondaryContent="none"):["HomefeedMoreIdeasTabs","BoardMoreIdeasTabContent"].includes(i)&&(n.primaryContent="visible"),n}({hasCarouselData:Ge,isDeletedStoryPin:lt,surface:H})),[Ge,lt,H]),dt=(0,n.useMemo)((()=>function({board:e,isDenseView:t,isGroupBoard:i,isInlineBetterSave:n,isOwnBoard:o,isORBACProfileManager:a,isQuickPromotable:r,isRemovable:l,saveButtonOptions:c,surface:d,viewer:u,viewerIsCollaborator:p}){const h=u.isAuth?u.boardCount:void 0;let _=c||function(e=0){return 0===e?{type:"classic"}:{type:"inline"}}(h);r?_={type:"promote"}:(p||o||["OtherProfilePinGrid","UserProfilePinGrid"].includes(d))&&!["BoardlessPins","CreatorProfileActivityPinGrid","CreatorProfileStoryPinGrid","BaseBoardPinGrid"].includes(d)?_={type:"classic"}:(p||o)&&["BaseBoardPinGrid"].includes(d)&&null!=e&&e.name&&e.url&&e.id&&(_={type:"inline",initialSelection:{title:e.name,boardId:e.id,url:e.url}});return n&&(_={type:"inline",hidePinBetterSaveDropdown:"BaseBoardPinGrid"===d}),(l||w.includes(d)||a)&&(_={type:"none"}),{board:e,derivedSaveButtonOptions:_,showLikeButton:p&&i&&s.UP.includes(d),supportsReactionBar:!t}}({board:xe,isInlineBetterSave:Ne,isDenseView:Je,isGroupBoard:Qe,isOwnBoard:nt,isOwnPin:at,isORBACProfileManager:ot,isQuickPromotable:we,isRemovable:Te,saveButtonOptions:G,surface:H,viewer:Ce,viewerIsCollaborator:rt})),[xe,Ne,Je,Qe,nt,at,ot,we,Te,G,H,Ce,rt]),{anyEnabled:ut}=ye("web_shopping_grid_metadata_ratings_shipping",{dangerouslySkipActivation:!0});let pt;["ShoppingDynamicHeightGrid","ShoppingGridShippedMetadata","ShoppingSquareGridStorefront","ShoppingSquareGridStorefrontDomain","ShoppingSquareGridDomain","ShoppingSquareGridDomainNoMetadata","ShoppingGridShippedMetadataWithVisitButton"].includes(H)&&!Ee&&(pt="white");const ht=(0,n.useMemo)((()=>function({allowProductCarousel:e=!1,shoppingLabelColor:t,surface:i}){return{allowProductCarousel:e,allowShoppingPriceIndicator:s.Wv.includes(i),shoppingLabelColor:t}}({allowProductCarousel:Ve,shoppingLabelColor:pt,surface:H})),[Ve,pt,H]),_t=(0,n.useMemo)((()=>function({board:e,feedbackData:t,feedbackType:i,isDenseView:n,isGroupBoard:o,isOwnBoard:s,isORBACProfileManager:u,isORBACBeta:p,isORBACGA:h,pin:_,isRemovable:m,surface:g,viewer:x}){var f;const{isOwnPin:y,isPromoted:v}=(0,r.Z)(_),b=l({isGroupBoard:o,pin:_,surface:g}),P=e&&(0,a.Z)({action:4,board:e,viewer:x})||y,w=_.savedInfo&&_.savedInfo.localPinId,S=Boolean(s&&!o||"UserProfilePinGrid"===g&&P||w),A=Boolean(o&&P||S||u&&(!(0,c.hy)(_.story_pin_data_id)||p)),k=Boolean((null==e?void 0:e.is_collaborative)||S),E=!(v||s||o||d.includes(g)||u),T=(({surface:e,isORBACProfileManager:t,isORBACGA:i,isRemovable:n})=>"CloseupRelatedProducts"!==e&&!n&&(!t||null==i||i))({surface:g,isORBACProfileManager:u,isORBACGA:h,isRemovable:m}),{tracked_link:C,link:I}=_,j=!(null===(f=null!=C?C:I)||void 0===f||!f);let R=o&&n?"equally-spaced":"default",D="default";return n&&(D=o?"icon-only":"truncated-text"),n&&["UserProfilePinGrid","BaseBoardPinGrid","BoardlessPins"].includes(g)&&(D="icon-only",R="equally-spaced"),{actionBarEditBeforeShare:k,feedbackData:t,feedbackType:i,layout:R,pinTitle:b,showEditButton:A,showOverflowMenu:E,showShareButton:T,showSourceLinkButton:j,sourceLinkStyle:D}}({board:xe,feedbackData:Ye,feedbackType:qe,isDenseView:Je,isGroupBoard:Qe,isOwnBoard:nt,isORBACProfileManager:ot,isORBACBeta:je,isORBACGA:Re,isRemovable:Te,pin:_e,surface:H,viewer:Ce})),[xe,Ye,qe,Je,Qe,nt,ot,je,Re,Te,_e,H,Ce]);let mt=!1;_e.story_pin_data&&!Ce.isPartner&&(mt=ye("web_auth_remove_pinner_pinstats").anyEnabled);const gt=!mt&&(0,m.rh)(_e,Ce,fe,De)&&Wi.includes(H)&&(at||Re&&ot),xt=["ShoppingCatalogsProductsMetadata","ShoppingDynamicHeightGrid","ShoppingSquareGridDomain","ShoppingSquareGridDomainNoMetadata","ShoppingGridShippedMetadata","ShoppingGridShippedMetadataWithVisitButton","ShoppingSquareGridStorefront","ShoppingSquareGridStorefrontDomain"].includes(H),ft=!Ee&&xt?"shopping":"standard";let yt=(u||"CreatorProfileStoryPinGrid"!==H||at)&&(0,q.J6)(_e,lt);const vt=(0,oe.Xx)();yt=!Me&&yt;const bt=(0,n.useMemo)((()=>x({attributionOption:Ke,board:xe,contentType:ft,experimentsClient:fe,feedbackData:Ye,feedbackType:qe,hasCarouselData:Ge,isGroupBoard:Qe,isORBACProfileManager:ot,isOwnBoard:nt,pin:_e,showImageOnly:$e,showNativeReactions:yt,showPromotedShoppingPrice:ut&&Ee&&xt,surface:H,viewer:Ce,variantData:vt})),[Ke,xe,ft,fe,Ye,qe,Ge,Qe,ot,nt,Ee,xt,_e,ut,$e,yt,H,Ce,vt]),Pt=!!_e.story_pin_data_id,wt=_e.created_at?new Date(_e.created_at):null,St=(0,ee.pN)({isOwnPin:at,isStoryPin:Pt,pinCreationDate:wt,surface:H});mt&&(bt.showPinStats=!1);let At=Boolean(bt.pinTitle||bt.contentType||bt.userNote||bt.showSource||"none"!==bt.attributionType||bt.showNativeReactions||bt.productCurrentPrice||bt.productOriginalPrice||bt.showPinStats)||Qe;"BaseBoardPinGrid"===H&&nt&&st||ke?At=!0:Hi.includes(H)||Je&&(nt||ve)?At=!1:at||"CreatorProfileStoryPinGrid"!==H&&"CreatorProfileActivityPinGrid"!==H||(At=!1),!Me||Ee||ke||(At=!1);const kt=Boolean(Ae),{showLeadPinStdBeta:Et}=(0,B.Z)(_e),Tt={showNoPinBorderRadius:"TopicBestPinNarrow"===H||"TopicBestPinWide"===H||"ConversationView"===H,showPromotedPinBorderTreatment:"BaseBoardPinGrid"===H&&Ee,shouldUseLegoWash:!0,showLeadPinStdBeta:Et},Ct={feedbackType:qe},{anyEnabled:It}=ye("ads_desktop_video_ads",{dangerouslySkipActivation:!0}),jt=(0,n.useMemo)((()=>function({hasCarouselData:e,isDenseView:t,isSocialSeasonalBoard:i,pinImageCrop:n,pinImageFit:o,resolution:a,showPromotedVideos:r,showLeadPinStdBeta:l,surface:c}){const d=s.zl.includes(c);let u="backend";"CloseupRelatedProducts"===c?u={height:P.GZ,width:P.OE}:"TopicBestPinWide"===c?u={height:b.m9,width:b.BS}:"TopicBestPinNarrow"===c?u={height:b._5,width:b.A6}:["ArticleProductsStory","ShoppingSquareGridCrop","ShoppingSquareGridDomainNoMetadata"].includes(c)||d?u={height:P.zX,width:P.zX}:n&&(u=n);let p="none",h=null!=a?a:"default";"string"!=typeof u&&(p="cover",(d||"ShoppingDynamicHeightGrid"===c&&!o||"ShoppingSquareGridDomainNoMetadata"===c)&&(p="contain",h="high-res"));const _=d||["ShoppingSquareGridDomainNoMetadata","ShoppingDynamicHeightGrid"].includes(c)?"transparent":"dominant",m=(0,v.e)(c);return{autoplaySettingOff:"undefined"!=typeof window&&0===y.Z.getItem(f.Z.VIDEO_AUTOPLAY_LOCAL_STORAGE_KEY),fallbackColor:_,imageFit:p,isDenseView:t,isSocialSeasonalBoard:i,resolution:h,rootMargin:m,pinImageCrop:u,showCarousel:e&&!["ShoppingSquareGridStorefrontDomain","ShoppingSquareGridStorefront"].includes(c),showPromotedVideos:r,showLeadPinStdBeta:l}}({hasCarouselData:Ge,isDenseView:Je,isPromoted:Ee,isSocialSeasonalBoard:!1,pinImageCrop:Z,pinImageFit:F,resolution:U,showPromotedVideos:It,showLeadPinStdBeta:Et,surface:H})),[Ge,Je,Ee,Z,F,U,It,Et,H]),Rt=He&&void 0!==(0,Ei.Z)().debug_impression_log,Dt=(0,n.useMemo)((()=>({debugImpressionState:i,slotIndex:Oe})),[i,Oe]),zt=(0,n.useMemo)((()=>({surface:H})),[H]);return(0,V.jsx)(E.Z,{name:"PinRepConfiguration",children:(0,V.jsx)(X.B,{value:W,children:(0,V.jsxs)(Y.B,{value:zt,children:[(0,V.jsx)(Fi,{actionBarProps:_t,blockClickEvents:t,currentlyPlayingVideo:Fe,footerProps:bt,impressionsDebuggerProps:Dt,obscuredPinOverlayProps:Ct,pin:_e,pinVisualProps:jt,presentationProps:Tt,primaryContentProps:dt,secondaryContentProps:ht,showFooter:At||St,showImpressionsDebugger:Rt,showObscuredPinOverlay:kt,showSeeStatsButton:gt,showSignalDebugger:He,showUnavailablePin:lt,surface:H,visibilityOverrides:ct,...$}),Ue.shouldOpenModal&&Ue.newPin&&(null===(he=Ue.originalPin)||void 0===he?void 0:he.id)===_e.id&&(0,V.jsx)(E.Z,{name:"SafeSuspense_PinRepConfiguration_ChangeBoardModal",children:(0,V.jsx)(O.Z,{children:(0,V.jsx)(Gi,{experience:Ue.experience,newPin:Ue.newPin})})})]})})})}},656226:(e,t,i)=>{i.r(t),i.d(t,{default:()=>v});var n=i(667294),o=i(564194),a=i(768559),r=i(605028),s=i(868565),l=i(905723),c=i(152028),d=i(883119),u=i(785893);const p={overlay:{__style:{backgroundColor:"#000"}}};function h(e){var t,i,o,a;const{pin:{id:r,images:s,title:h,videos:_,video_status_message:m}}=e,g=m||{},x=s&&s["236x"],f=_&&(null===(t=_.video_list)||void 0===t?void 0:t[l.Z.V_HLSV4]),{duration:y}=f||{};return(0,u.jsx)(n.Fragment,{children:(0,u.jsx)(d.st,{children:(0,u.jsxs)(d.iP,{role:"link",href:`/pin/${r}`,rounding:2,children:[(0,u.jsxs)(d.xu,{overflow:"hidden",position:"relative",rounding:2,children:[x&&(0,u.jsx)(d.Ee,{alt:h||"",color:"lightGray",naturalHeight:null!==(i=x.height)&&void 0!==i?i:1,naturalWidth:null!==(o=x.width)&&void 0!==o?o:1,src:null!==(a=x.url)&&void 0!==a?a:""}),!!y&&(0,u.jsx)(d.xu,{padding:2,position:"absolute",bottom:!0,left:!0,display:"flex",children:(0,u.jsx)(c.Z,{duration:y})}),(0,u.jsx)(d.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,opacity:.4,dangerouslySetInlineStyle:p.overlay}),(0,u.jsxs)(d.xu,{position:"absolute",top:!0,left:!0,padding:5,width:"100%",children:[(0,u.jsx)(d.X6,{color:"light",overflow:"normal",size:"400",children:g.title}),(0,u.jsx)(d.xu,{marginTop:4,children:(0,u.jsx)(d.xv,{color:"light",size:"200",overflow:"normal",children:g.subtitle})})]})]}),(0,u.jsx)(d.xu,{display:"flex",alignItems:"start",justifyContent:"between",marginTop:1,paddingX:1,children:(0,u.jsx)(d.xu,{flex:"grow",children:h&&(0,u.jsx)(d.xu,{paddingY:1,children:(0,u.jsx)(d.xv,{inline:!0,size:"200",weight:"bold",children:h})})})})]})})})}var _=i(623568),m=i(350118),g=i(276775),x=i(813401),f=i(779298),y=i(35495);function v({trackingParams:e,objectIdStr:t,impressionData:i,auxData:l,componentType:c,slotIndex:d,viewData:p,viewParameter:v,viewType:b,pin:P,pinId:w,...S}){var A,k,E,T,C,I;const j=(0,g.useLocation)(),R=(0,m.S6)(),D=(w?R(w):null)||P,z=!(null===(A=D.story_pin_data)||void 0===A||!A.is_deleted),O=e||(0,a.Z)({boardUrl:null===(k=D.board)||void 0===k?void 0:k.url,callToCreateSourcePinId:D.call_to_create_source_pin_id,location:j,pinId:D.id,pinnerUserName:null===(E=D.pinner)||void 0===E?void 0:E.username,storyPinDataId:D.story_pin_data_id,trackingParams:D.tracking_params,trackingParamsMap:D.tracking_params_map}),L=(0,s.Z)(D),N=!!(L&&L.url&&L.height&&L.width)||void 0,B=L&&D.videos?D.videos.id:void 0,[M,Z]=(0,n.useState)(!1),F=(0,n.useCallback)((()=>Z(!z)),[z]),U=(0,n.useCallback)((()=>Z(!1)),[]),V=(0,x.yz)(),{isLeadPin:G}=(0,r.Z)(D);var H;G&&(l={lead_form_id:null===(H=D.promoted_lead_form)||void 0===H?void 0:H.lead_id});return(0,u.jsx)(o.Z,{componentType:c,contextLogData:{pwa_type:V,...l,...(0,y.Kl)(D,l)},impressionAuxFields:{...i||{},isNativeVideoAndWatchable:N,videoIdStr:B,clientTrackingParams:O||`${D.tracking_params||""}-0`,imageURL:null!==(T=null===(C=D.images)||void 0===C||null===(I=C["236x"])||void 0===I?void 0:I.url)&&void 0!==T?T:"",richTypes:(0,y.GT)(D)},impressionType:"Pin",isPaused:!M,loggingId:D.id,slotIndex:d,objectIdStr:t,viewData:p,viewParameter:v,viewType:b,children:(0,_._J)(D)?(0,u.jsx)(h,{pin:D}):(0,u.jsx)(f.Z,{...S,debugImpressionState:M?"started":"paused",onError:U,onLoad:F,pin:D,pinId:w,trackingParameters:{componentType:c,contextLogData:l,slotIndex:d,viewParameter:v,viewType:b}})})}},84139:(e,t,i)=>{i.d(t,{Z:()=>ti});var n=i(702664),o=i(386360),a=i(42447),r=i(840003),s=i(717615),l=i(19121),c=i(530082),d=i(231947),u=i(667294),p=i(258140),h=i(319247),_=i(319915),m=i(834911),g=i(737022),x=i(165733),f=i(743217),y=i(627387),v=i(835209),b=i(13713),P=i(802933),w=i(206663),S=i(825490),A=i(883119),k=i(276602),E=i(785893);function T(e){const t=(0,k.EV)();return(0,u.useEffect)((()=>{const i=document.getElementById(e.containerId);if(null==i)null==t||t.removeConstraint("thumbnailsLoaded");else{const e=Array.from(i.querySelectorAll("*")).filter((e=>e.style.backgroundImage&&((e,t)=>{const i=e.getBoundingClientRect(),n=t.getBoundingClientRect();return!(!i||!n)&&i.top>=n.top&&i.left>=n.left&&i.bottom<=n.bottom&&i.right<=n.right})(e,i)));let n=e.length;const o=()=>{n-=1};e.forEach((e=>{e.onload=o(),0===n&&(null==t||t.markConstraintComplete("thumbnailsLoaded"))}))}}),[e.containerId,t]),(0,E.jsx)(A.xu,{id:"imageContainerPerf",children:e.children})}var C=i(251819),I=i(343591),j=i(4294),R=i(957161),D=i(507712),z=i(712331),O=i(692627),L=i(970576),N=i(558329),B=i(498537),M=i(668627),Z=i(865607),F=i(407043),U=i(773285),V=i(276775);function G({displayName:e,fontWeight:t="normal",user:i,clickable:n=!0}){const o=(0,V.useHistory)(),{checkExperiment:a}=(0,U.F)(),{logContextEvent:r}=(0,F.v)(),{is_verified_merchant:s,full_name:l="",verified_identity:c,username:d="",is_ads_only_profile:u,ads_only_profile_site:p}=i,h=s||(null==c?void 0:c.verified),_=(0,E.jsxs)(A.kC,{alignItems:"center",direction:"row",justifyContent:"start",minWidth:0,children:[(0,E.jsx)(A.xv,{size:"300",lineClamp:1,weight:t,children:e?e(l):l}),h&&(0,E.jsx)(A.xu,{marginStart:2,children:(0,E.jsx)(Z.Z,{isVerifiedMerchant:s,hasVerifiedIdentity:null==c?void 0:c.verified,size:"sm"})})]});if(!n)return _;return a("web_ads_only_profiles_link_redirect").anyEnabled&&u&&!!p?(0,E.jsx)(A.iP,{role:"link",rel:"nofollow",target:"blank",href:p||"",onTap:()=>{r({event_type:9371,element:13382,aux_data:{aop_origin:"OfficialUserAttributionText"}})},children:_}):(0,E.jsx)(A.iP,{onTap:()=>o.push(`/${d}/`),children:_})}var H=i(222704);function W({borderStyle:e,borderColor:t,transform:i,height:n}){return(0,E.jsx)(A.xu,{alignItems:"center",display:"flex",height:"100%",justifyContent:"center",position:"absolute",width:"100%","data-test-id":"strikethrough",children:(0,E.jsx)(A.xu,{borderStyle:"sm",dangerouslySetInlineStyle:{__style:{borderStyle:e,borderColor:t,transform:i,height:n}},zIndex:new A.Ry(1)})})}function $({imageUrl:e,size:t,status:i,value:n,isEligibleForPdpPlus:o}){const a="invalid"===i?"dashed":"solid",r="available"!==i?.4:1,s=o?{borderStyle:a,borderColor:"white",transform:"rotate(45deg)",height:Number(t)*Math.sqrt(2)}:{borderStyle:a,borderColor:"#111111",transform:"rotate(45deg)",height:"80%"};return(0,E.jsxs)(A.xu,{position:"relative",children:["available"!==i&&(0,E.jsx)(W,{...s}),(0,E.jsx)(A.zd,{wash:!0,children:(0,E.jsx)(A.xu,{"data-test-id":"variant-image-container",height:t,opacity:r,width:t,children:(0,E.jsx)(A.Ee,{alt:n,color:"#efefef",fit:"cover",naturalHeight:1,naturalWidth:1,src:e})})})]})}var K=i(699825),q=i(898781),Y=i(287072),X=i(215292);function J({anchor:e,link:t,onClickThrough:i,onDismiss:n,pin:o,viewParameter:a}){const{logContextEvent:r}=(0,F.v)(),s=(0,Y.Z)({href:t,externalData:{pin:o}}),l=(0,q.ZP)();return(0,E.jsx)(A.mh,{children:(0,E.jsx)(A.J2,{anchor:e,color:"blue",idealDirection:"up",showCaret:!0,onDismiss:n,positionRelativeToAnchor:!1,size:210,role:"dialog",children:(0,E.jsx)(X.q,{children:({hovered:e})=>(0,E.jsx)(K.Z,{hovered:e,pin:o,viewType:3,children:(0,E.jsx)(A.xu,{padding:4,children:(0,E.jsxs)(A.kC,{alignItems:"center",direction:"column",gap:{row:0,column:3},children:[(0,E.jsx)(A.xv,{color:"inverse",align:"center",children:l._('No preview. Visit site to check for more images.', 'productDetailPage.primaryDimension.variant.popover.text', 'text to guide user to the merchant website when image is missing')}),(0,E.jsx)(A.zx,{color:"white",onClick:({event:e})=>{e.preventDefault(),e.stopPropagation(),i&&i({componentType:143,viewType:3,elementType:361}),r({event_type:101,component:143,view_type:3,view_parameter:a,element:361}),s({event:e})},text:l._('Visit', 'productDetailPage.primaryDimension.variant.popover', 'visit button')})]})})})})})})}var Q=i(883561);function ee({height:e,status:t,text:i}){const n="outOfStock"===t?"line-through":"none",o="outOfStock"===t?"subtle":"default",a="invalid"===t?"dashed":"solid",r=(0,Q.ZP)(i,18);return(0,E.jsx)(A.xu,{alignItems:"center",borderStyle:"lg",dangerouslySetInlineStyle:{__style:{borderStyle:a}},"data-test-id":"variant-text-container",display:"flex",height:e,paddingX:4,rounding:ie,children:(0,E.jsx)(A.xv,{weight:"bold",color:o,children:(0,E.jsx)(A.xu,{dangerouslySetInlineStyle:{__style:{textDecoration:n}},"data-test-id":"variant-text",children:r})})})}const te={sm:48,lg:80},ie=4;function ne({commerceData:e={},link:t,name:i,onClickThrough:n,onSelect:o,pin:a,selected:s="",variants:l,viewParameter:c}){const{logContextEvent:d}=(0,F.v)(),[p,h]=(0,u.useState)(!1),[_,m]=(0,u.useState)(!1),g=(0,u.useRef)(),x=(0,q.ZP)(),f=(0,r.Z)(a.is_eligible_for_pdp_plus),y=l.filter((e=>{var t;return!(null===(t=e.image)||void 0===t||!t.url)})),v=l.filter((e=>{var t;return!(null!==(t=e.image)&&void 0!==t&&t.url)})),b=[...y,...v],P=b.length<5&&0===v.length?"lg":"sm",w=x._('Unavailable with other selections', 'productMetadata.primaryDimension.invalidVariant', 'Invalid text for product variant options'),S=x._('Sold out', 'productMetadata.primaryDimension.soldOutVariant', 'Text for out of stock product variant options'),k=x._('Show more', 'productMetadata.primaryDimension.moreButton', 'Button to show hidden variants'),T=x._('+ More', 'productMetadata.primaryDimension.moreButton', 'Button to show hidden variants'),C={invalid:w,available:void 0,outOfStock:S},I={invalid:w,available:void 0,outOfStock:void 0};(0,u.useEffect)((()=>{d({element:13279,event_type:120,component:143,view_type:3,view_parameter:c,aux_data:{...e}})}),[]);const j=({event:t,imageUrl:n,value:a})=>{t.preventDefault(),t.stopPropagation(),"invalid"!==status&&(n||_||(h(!0),m(!0)),f&&d({element:13279,event_type:102,component:14185,view_type:3,view_parameter:c,aux_data:e}),o({dimensionName:i,variant:a}))};let R="undetermined";const D=b.length<=6&&0===v.length;f&&(R=D?"show":"hide");const z=(0,u.useRef)(),O=(0,u.useRef)(),[L,N]=(0,u.useState)(R);let B=b;return f&&"sm"===P&&"hide"===L&&(B=b.slice(0,5)),(0,u.useEffect)((()=>{if(!z.current||!O.current||"undetermined"!==L||f)return;const{width:e}=z.current.getBoundingClientRect(),{width:t}=O.current.getBoundingClientRect();N(t<=e?"show":"hide")}),[L,z,O,f]),(0,E.jsxs)(A.xu,{display:"flex",direction:"column",ref:z,children:[(0,E.jsxs)(A.xu,{marginBottom:2,children:[(0,E.jsxs)(A.xv,{inline:!0,weight:"bold",children:[i,":"]}),(0,E.jsx)(A.xv,{inline:!0,weight:f?"bold":void 0,children:` ${s}`})]}),(0,E.jsxs)(A.xu,{children:[(0,E.jsxs)(A.xu,{overflow:"hidden",position:"relative",display:f?"flex":void 0,direction:f?"row":void 0,alignItems:f?"center":void 0,children:[(0,E.jsx)(A.xu,{width:"fit-content",ref:O,paddingX:1,children:(0,E.jsx)(A.kC,{wrap:"show"===L,alignItems:"center",children:B.map((({image:e,value:t,status:i})=>{const n=t===s,o=null==e?void 0:e.url,a=function({text:e,invalidText:t}){return e&&t?`${e} - ${t}`:e||t}({text:t.length>18&&!o?t:void 0,invalidText:f?C[i]:I[i]}),r=(0,E.jsx)(H.Z,{outlined:n,rounding:ie,children:o?(0,E.jsx)($,{status:i,imageUrl:o,size:te[P],value:t,isEligibleForPdpPlus:f}):(0,E.jsx)(ee,{text:t,height:te[P],status:i})});return(0,E.jsx)(A.xu,{"data-test-id":"primary-variant",paddingY:1,marginEnd:2,ref:n?g:null,flex:"none",children:(0,E.jsx)(A.iP,{onTap:({event:e})=>{j({event:e,imageUrl:o,value:t}),"show"!==L&&N("show")},children:a?(0,E.jsx)(A.u,{idealDirection:"up",text:a,zIndex:new A.Ry(2),children:r}):r})},t)}))})}),"show"!==L&&(0,E.jsx)(A.xu,{alignItems:"center",color:"default","data-test-id":"show-more-variant",display:"flex",height:"100%",position:f?void 0:"absolute",right:!f||void 0,top:!f||void 0,dangerouslySetInlineStyle:{__style:{boxShadow:"-4px 0 6px 2px rgb(255 255 255)",paddingLeft:12,paddingRight:2}},children:"hide"===L&&(0,E.jsx)(A.zx,{color:"gray",onClick:()=>{N("show")},size:"sm",text:f?k:T})})]}),f&&"show"===L&&!D&&(0,E.jsx)(A.xu,{marginTop:1,children:(0,E.jsx)(A.zx,{color:"gray",onClick:()=>{N("hide")},size:"sm",text:x._('Show less', 'productMetadata.primaryDimension.lessButton', 'Button to show hidden variants')})})]}),p&&(0,E.jsx)(J,{anchor:g.current,link:t,onClickThrough:n,onDismiss:()=>{h(!1)},pin:a,viewParameter:c})]})}function oe({content:e,header:t,maxHeight:i,onClose:n,onOpen:o,previewContent:a,previewContentHeight:r,arrowDirection:s}){const[l,c]=(0,u.useState)(!1),[d,p]=(0,u.useState)(0),h=(0,u.useRef)(null),_=(0,q.ZP)();(0,u.useLayoutEffect)((()=>{if(void 0!==i)return;if(!h.current)return;const{height:e}=h.current.getBoundingClientRect();e>d&&p(Math.ceil(e))}),[d,i]);const m=s||"arrow-forward";return(0,E.jsx)(A.iP,{onTap:e=>{c(!l),n&&l&&n(e),o&&!l&&o(e)},children:(0,E.jsxs)(A.xu,{dangerouslySetInlineStyle:{__style:{borderTop:"1px solid #efefef",borderBottom:"1px solid #efefef"}},paddingY:a?3:0,children:[(0,E.jsxs)(A.xu,{display:"flex",alignItems:"center",justifyContent:"between",paddingY:a?1:5,children:[(0,E.jsx)(A.xv,{weight:"bold",size:"300",children:t}),(0,E.jsx)(A.xu,{dangerouslySetInlineStyle:{__style:{transition:"transform 0.3s ease-in-out",transform:l?`rotate(${"arrow-down"===m?"180deg":"-90deg"})`:""}},children:(0,E.jsx)(A.JO,{accessibilityLabel:_._('Expand icon', 'accordion.actionButton', 'accessibility label on accordion'),color:"default",icon:m})})]}),(0,E.jsxs)(A.xu,{"data-test-id":"accordion-panel",opacity:l||a?1:0,height:!l&&a?r:l?i||d:0,overflow:void 0===i?"hidden":"auto",marginBottom:l&&!a?5:0,marginEnd:a?7:0,dangerouslySetInlineStyle:{__style:{transition:"all 0.3s ease-in-out, visibility 0s linear "+(l?"0s":"0.3s"),visibility:l||a?"visible":"hidden"}},children:[(0,E.jsx)(A.xu,{dangerouslySetInlineStyle:{__style:{display:l?"none":"block"}},children:a}),(0,E.jsx)(A.xu,{opacity:l||a?1:0,dangerouslySetInlineStyle:{__style:{visibility:l?"visible":"hidden",transition:"all 0.3s ease-in-out, visibility 0s linear "+(l||a?"0s":"0.3s")}},ref:h,children:e})]})]})})}var ae=i(540923),re=i(882801);const se=({onOpen:e,structuredDescription:t,type:i})=>{const n=(0,q.ZP)(),o=(0,k.EV)(),a=(0,u.useCallback)((()=>{o&&o.markConstraintComplete("description")}),[o]),r=(0,u.useRef)(null),[s,l]=(0,u.useState)(!1);(0,u.useEffect)((()=>{var e;(r.current&&((e=r.current).offsetHeight1)&&l(!0)}),[r,t]);const c="expandable"===i&&t[0].type===re.X0.PARAGRAPH,d=c?(0,E.jsx)(A.xv,{ref:r,lineClamp:1,size:"200",children:t[0].content}):null,p=n._('Product Details', 'productDetails.accordionHeader.text', 'text in tap area to open product description accordion panel');return!s&&d?(0,E.jsxs)(A.xu,{dangerouslySetInlineStyle:{__style:{borderTop:"1px solid #efefef",borderBottom:"1px solid #efefef"}},paddingY:3,children:[(0,E.jsx)(A.xu,{paddingY:1,children:(0,E.jsx)(A.xv,{weight:"bold",size:"300",children:p})}),(0,E.jsx)(A.xu,{marginEnd:6,marginBottom:1,children:d})]}):(0,E.jsx)(oe,{header:p,content:(0,E.jsx)(A.xu,{paddingY:c?0:1,children:(0,E.jsx)(ae.Z,{descriptions:t,onLoad:a})}),onOpen:e,previewContent:d,previewContentHeight:c?20:0,arrowDirection:"expandable"===i?"arrow-down":"arrow-forward"})},le=({isOpen:e,onOpen:t,structuredDescription:i})=>{var n;const[o,a]=(0,u.useState)(!1),r=(0,q.ZP)(),s=(0,u.useRef)(null),l=(0,k.EV)(),c=(0,u.useCallback)((()=>{l&&s.current&&l.markConstraintComplete("description")}),[l]),d=o&&!e,p=e?r._('See less', 'productDescription.productDescriptionPreview.cta', 'CTA label for collapsing the description'):r._('See more', 'productDescription.productDescriptionPreview.cta', 'CTA label for expanding the description');return(0,u.useLayoutEffect)((()=>{!s.current||Number.isNaN(s.current.offsetHeight)||Number(s.current.offsetHeight)<150||o||a(!0)}),[o,null===(n=s.current)||void 0===n?void 0:n.offsetHeight]),(0,E.jsxs)(A.xu,{display:s.current?"block":"visuallyHidden",paddingY:1,"data-test-id":"product-description-preview",children:[(0,E.jsx)(A.xv,{size:"300",weight:"bold",children:r._('Product Details', 'productDescription.productDescriptionPreview.header', 'header for the product description')}),(0,E.jsxs)(A.xu,{marginTop:2,marginBottom:d?0:2,position:"relative",children:[(0,E.jsx)(A.xu,{height:d?150:"auto",overflow:d?"hidden":"visible",ref:s,children:(0,E.jsx)(ae.Z,{descriptions:i,onLoad:c})}),o&&(0,E.jsx)(A.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{backgroundImage:"linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff)",transition:"opacity 200ms ease"}},height:150,opacity:d?1:0,position:"absolute",width:"100%"})]}),o&&(0,E.jsx)(A.iP,{onTap:t,children:(0,E.jsx)(A.xv,{size:"200",weight:"bold",children:p})})]})};function ce(e){const{commerceData:t,structuredDescription:i,type:n="accordion",viewParameter:o}=e,{logContextEvent:a}=(0,F.v)(),[r,s]=(0,u.useState)(!1);(0,u.useEffect)((()=>{a({event_type:120,component:13597,view_type:3,view_parameter:o,aux_data:{...t}})}),[]);const l=()=>{s(!r),a({event_type:101,component:13597,view_type:3,element:r?13278:13277,view_parameter:o,aux_data:{...t}}),a({event_type:101,component:13597,view_type:3,element:10492,view_parameter:o,aux_data:{...t}})};return 0===i.length?null:"preview"===n?(0,E.jsx)(le,{...e,isOpen:r,onOpen:l}):(0,E.jsx)(se,{...e,onOpen:l})}function de({enableDynamicSizeAdjustment:e,link:t,pin:i,text:n,onClickThrough:o}){const a=(0,u.useRef)(null),s=(0,r.Z)(i.is_eligible_for_pdp_plus),[l,c]=(0,u.useState)("500"),d=(0,E.jsx)(A.xu,{ref:a,children:(0,E.jsx)(A.X6,{id:"product-heading",size:l,children:n})});return(0,u.useEffect)((()=>{if(!a||!a.current||!e)return;const t=a.current.querySelector("#product-heading");if(!t)return;const i=Number(t.offsetHeight)||0;if(Number.isFinite(i)){const e=Math.floor(i/33);c(e<=2?"500":"400")}}),[e,a]),(0,E.jsx)(X.q,{children:({hovered:e,onMouseEnter:n,onMouseLeave:a})=>(0,E.jsx)(K.Z,{hovered:e,pin:i,viewType:3,children:(0,E.jsx)(A.xu,{onMouseEnter:n,onMouseLeave:a,children:t?(0,E.jsx)(A.xu,{"data-test-id":"link-navigation",children:(0,E.jsx)(Y.p,{href:t,externalData:{pin:i},children:({handleClick:e})=>(0,E.jsx)(A.xv,{children:(0,E.jsx)(A.rU,{href:t,underline:"none",onClick:({event:t,dangerouslyDisableOnNavigation:i})=>{i(),e({event:t}),o({componentType:s?14284:138})},children:d})})})}):d})})})}var ue=i(453451),pe=i(104389);function he({price:e,maxPrice:t}){const i=(0,q.ZP)();let n=i._('Sold out', 'product.price.soldOut', 'Product is sold out');return e&&t?n=`${n} · ${e}-${t}`:e&&(n=`${n} · ${e}`),(0,E.jsx)(A.xv,{color:"subtle",size:"500",children:n})}function _e({link:e,onClickThrough:t,onLoad:i,pin:n,text:o}){const a=(0,Y.Z)({href:e,externalData:{pin:n}});return(0,u.useEffect)((()=>{"function"==typeof i&&i()}),[i]),(0,E.jsx)(X.q,{children:({hovered:i})=>(0,E.jsx)(K.Z,{hovered:i,pin:n,viewType:3,children:(0,E.jsx)(A.zx,{color:"blue",onClick:({event:e,dangerouslyDisableOnNavigation:i})=>{i(),t({componentType:194}),a({event:e})},size:"lg",text:o,role:"link",href:e,rel:"nofollow"})})})}var me=i(537313),ge=i(35495),xe=i(349700),fe=i(296005);function ye({color:e,fontColor:t,children:i}){return(0,E.jsx)(A.xu,{color:e,rounding:1,dangerouslySetInlineStyle:{__style:{padding:2}},display:"flex",alignItems:"center",children:(0,E.jsx)("span",{style:{fontSize:10,fontWeight:"bold",color:t,WebkitFontSmoothing:"antialiased"},children:i})})}var ve=i(814197);function be({names:e,selectedMap:t}){const i=(0,q.ZP)(),n=i._('Visit site for more options', 'productDetailPage.productMetadata.utilityDimensionsText', 'Shows where to find more variant options for a product pin'),o=1===e.length?e[0]:[e.slice(0,e.length-1).join(", "),[e[e.length-1]]].join(" and "),a=o.charAt(0).toUpperCase()+o.slice(1).toLowerCase(),r=e.map((e=>t[e])).join(", ");return(0,E.jsxs)(A.xu,{children:[(0,E.jsxs)(A.xv,{lineClamp:2,weight:"bold",children:[a,": ",r]}),(0,E.jsx)(A.xv,{children:n})]})}const Pe=({variant:e="",status:t,weight:i})=>{const n="outOfStock"===t?"line-through":"none",o="outOfStock"===t?"subtle":"default";return(0,E.jsx)(A.xv,{inline:!0,color:o,weight:i,children:(0,E.jsx)("span",{style:{textDecoration:n},children:e})})};function we({variants:e,name:t,selected:i,onSelect:n}){const[o,a]=(0,u.useState)(!1),[r,s]=(0,u.useState)(null),l=(0,u.useRef)(null),c=(0,q.ZP)(),d=e.filter((({status:e})=>"invalid"!==e)),p=()=>a(!1),h=(0,E.jsx)(ye,{color:"tertiary",fontColor:"#FFFFFF",children:c._('Sold out', 'product.price.soldOut', 'Product is sold out')}),{status:_}=e.find((e=>e.value===i))||{};return(0,E.jsxs)(u.Fragment,{children:[(0,E.jsx)(A.xu,{width:360,children:(0,E.jsx)(A.iP,{onTap:()=>a(!0),ref:l,children:(0,E.jsxs)(A.xu,{borderStyle:"lg",rounding:4,padding:3,display:"flex",alignItems:"center",justifyContent:"between","data-test-id":"selected-variant",children:[(0,E.jsx)(A.xu,{width:240,children:(0,E.jsxs)(A.xv,{lineClamp:1,children:[(0,E.jsxs)(A.xv,{weight:"bold",inline:!0,children:[t,":"]})," ",i&&(0,E.jsx)(Pe,{variant:i,status:_})]})}),(0,E.jsxs)(A.kC,{alignItems:"center",gap:{row:3,column:0},children:["outOfStock"===_&&h,(0,E.jsx)(A.JO,{color:"default",icon:"arrow-down",size:12,accessibilityLabel:c._('Dropdown icon', 'productDetailPage.secondaryDimension.variant.dropdown.icon', 'dropdown icon for product detail page')})]})]})})}),o&&(0,E.jsx)(A.Lt,{anchor:l.current,onDismiss:p,id:t,zIndex:ve.t5,children:d.map((({value:e,status:o})=>(0,E.jsx)(A.Lt.Item,{onSelect:({item:i})=>{n({dimensionName:t,variant:e}),s(i),p()},option:{value:e,label:e},selected:i?r:null,children:(0,E.jsxs)(A.kC,{alignItems:"center",justifyContent:"start",width:352,children:[(0,E.jsx)(A.xu,{width:240,marginEnd:5,children:(0,E.jsx)(Pe,{variant:e,status:o,weight:"bold"})}),"outOfStock"===o&&h]})},e)))})]})}function Se({isBoardOwnerOrCollaborator:e,onClickThrough:t,pin:i,pin:{closeup_attribution:n,closeup_unified_description:o,closeup_unified_title:a,is_eligible_for_pdp_plus:s,is_oos_product:l,is_stale_product:c,link_user_website:d,link_domain:p,rich_metadata:h},showStructuredDescription:_,viewParameter:m}){var g;const x=(0,q.ZP)(),f=(0,fe._T)(),y=(0,k.EV)(),b=(0,u.useCallback)((()=>{y&&y.markConstraintComplete("shopButton")}),[y]),P=(0,r.Z)(s),w=(0,ge.Kl)(i,{},P?"pdp_plus":void 0),{dimensionMetadata:S,link:T,offerSummary:C,selectedMap:I,title:j,utilityDimNames:R,visualDimName:D,visualVariants:z}=f||{},O=(0,v.Z)({richPinData:h}),L=C||(null==O?void 0:O.offer_summary)||{},{in_stock:N,max_price:B,price:M}=L,Z=l||!1===N,F=(h||{}).aggregate_rating,{rating_value:U,review_count:V,rating_count:H}=F||{},W=!!U&&(V||H),{shipping_info:$}=O||{},K=null==d||null===(g=d.official_user)||void 0===g?void 0:g.first_name,{official_user:Y}=p||{},X=n||Y||{},{first_name:J}=X||{},ee=(0,Q.ZP)(K||J||"",20),te=(o||"").trim(),ie=(0,re.fv)(i),oe=!P&&(0,re.Eh)(Z||c?S:[])||[],ae=(0,re.jo)({components:[...oe,...ie],pinDescription:te}),{link:se,tracked_link:le}=i||{},ye=decodeURIComponent(T||le||se),{currentDomain:ve}=(0,me.Wp)(i),Pe=ve.split(".")[0];let Se=x._('Visit', 'closeup.shop.button', 'shop button');P?Se=x._('Visit site', 'closeup.shop.button', 'shop button'):Z?Se=(0,xe.nk)(x._('Visit {{ merchant }}', 'closeup.shop.button', 'shop button'),{merchant:ee||Pe}).join(""):c&&(Se=x._('See price', 'pdp.shopButton', 'See price on website'));const Ae=W||$,ke=!(!M&&!B||Z||c),Ee=(ee||Pe)&&ye,Te=!P&&!l&&!c||P,Ce=j||a;let Ie=P?"expandable":"accordion";return!P&&_&&(Ie="preview"),(0,E.jsxs)(A.xu,{marginEnd:6,children:[ke&&!P&&(0,E.jsx)(A.xu,{"data-test-id":"product-price",marginTop:3,children:(0,E.jsx)(ue.Z,{productDetails:L,type:"heading",colorOverride:"default",weight:"normal"})},"product-price"),Z&&!c&&!P&&(0,E.jsx)(A.xu,{"data-test-id":"out-of-stock",marginTop:3,children:(0,E.jsx)(he,{price:M,maxPrice:B})},"product-sold-out"),!!Ce&&(0,E.jsx)(A.xu,{"data-test-id":"product-title",marginTop:P?4:3,children:(0,E.jsx)(de,{link:ye,pin:i,text:Ce,onClickThrough:t})},"product-title"),P&&(0,E.jsx)(A.xu,{"data-test-id":"product-price",marginTop:2,children:(0,E.jsx)(ue.Z,{isSoldOut:!L.in_stock,productDetails:L,type:"pdpPlusHeading",colorOverride:"default"})},"product-price"),Ae&&P&&(0,E.jsx)(A.xu,{marginTop:3,children:(0,E.jsx)(pe.Z,{bracket:!0,count:H||V,countType:H&&Number(H)?"rating":"review",countFormat:"number",hideSeparationDot:!0,ratingValue:U,shippingInfo:$})}),X&&(0,E.jsx)(A.xu,{marginTop:P?2:3,children:(0,E.jsx)(G,{user:X,clickable:!P})}),Ae&&!P&&(0,E.jsx)(pe.Z,{count:H||V,countType:H&&Number(H)?"rating":"review",countFormat:"text",ratingValue:U,shippingInfo:$}),f&&f.variants.length>1&&Te&&(0,E.jsx)(A.xu,{marginTop:5,children:(0,E.jsxs)(A.kC,{direction:"column",gap:{row:0,column:4},children:[!P&&(0,E.jsx)(A.xu,{marginBottom:1,children:(0,E.jsx)(ne,{commerceData:w,link:ye,name:f.primaryDimName,onClickThrough:t,onSelect:f.selectVariant,pin:i,selected:I[f.primaryDimName],variants:f.primaryVariants,viewParameter:m})}),P&&D&&(0,E.jsx)(A.xu,{marginBottom:1,children:(0,E.jsx)(ne,{commerceData:w,link:ye,name:D,onClickThrough:t,onSelect:f.selectVariant,pin:i,selected:I[D],variants:z,viewParameter:m})}),P&&R.length>0&&(0,E.jsx)(be,{names:R,selectedMap:I}),!P&&f.secondaryVariantTuples.map((([e,t])=>(0,E.jsx)(we,{name:e,onSelect:f.selectVariant,selected:I[e],variants:t},e)))]})}),Ee&&(0,E.jsx)(A.xu,{"data-test-id":"product-shop-button",marginTop:5,children:(0,E.jsx)(_e,{merchantName:ee||Pe,link:ye,onClickThrough:t,onLoad:b,pin:i,text:Se})}),ae.length>0&&(0,E.jsx)(A.xu,{"data-test-id":"product-description",marginTop:5,marginBottom:e?0:5,children:(0,E.jsx)(ce,{commerceData:w,structuredDescription:ae,type:Ie,viewParameter:m})})]})}var Ae=i(81072);function ke(e){var t;const{disabled:i,height:n,top:o=0,zIndex:a}=e,r=(0,u.useRef)(null),s=(0,Ae.Z)();if(i)return e.children;const l=s+o+((null===(t=r.current)||void 0===t?void 0:t.getBoundingClientRect().top)||0);return(0,E.jsx)(A.xu,{ref:r,id:"product-sticky-container ","data-test-id":"product-sticky-container",children:(0,E.jsx)(A.Le,{height:n,top:l,zIndex:a,children:e.children})})}var Ee=i(127897),Te=i(784590),Ce=i(680333),Ie=i(491073),je=i(385624),Re=i(966676),De=i(92261);function ze({disableRelatedResource:e=!1,relatedResourceOptions:t,hasXYcoordinates:i,isEligibleForStlFlyout:n,isStoryPin:o,isWideVideo:a,pin:r,searchQuery:c,taggedProducts:p,trafficSource:h,viewParameterType:_,onClickThrough:m,showStructuredDescription:g,data:x,didShortClickThrough:f,goBack:y,isInStream:v=!1,isDeletedStoryPin:b,onSaveButtonClick:P,onUpdate:w,outerBodyStyle:S,routePush:A,showRepinOnInitialRender:k,viewType:T}){var C,I;const j=(0,Te.Z)(e?null:{name:t.name,options:t.options}),R=(0,u.useRef)(null),D=(0,l.Z)(),{viewportSize:z}=(0,Re.x4)(),{checkExperiment:O}=(0,U.F)(),{anyEnabled:L}=O("web_m10n_business_access_orbac_ga"),Z=(0,s.Z)(),F=L?(0,d.lJ)(D,Z):"",V=(0,fe._T)(),G=null==V||null===(C=V.primarySelectedVariant)||void 0===C?void 0:C.pin_id,{data:H}=(0,Te.Z)(G?{name:"PinResource",options:(0,M.Z)(G,F)}:null),W=(0,Ce.Z)(),$=(0,Ee.Z)({metadataContainerRef:R}),{setClickthroughComponentForSurvey:K,imageContainerRef:q}=W,Y=(0,E.jsx)(Ie.Z,{hasXYcoordinates:i,isEligibleForStlFlyout:n,isStoryPin:o,isWideVideo:a,pin:r,searchQuery:c,taggedProducts:p,trafficSource:h,viewParameterType:_,imageContainerRef:q,handleImageClickThrough:()=>m({wasImageClicked:!0}),setClickthroughComponentForSurvey:K,isShortImage:$}),X=(0,E.jsx)(ke,{disabled:!1,top:-16,zIndex:ve.mS,children:Y}),J=g?X:Y,Q=(0,N.CK)(r,_),ee="lg"===z?16:De.g9,te=(null==r?void 0:r.board)||{},ie=N.VO(Z,r,D),ne=(0,E.jsxs)(u.Fragment,{children:[(0,E.jsx)(Se,{isBoardOwnerOrCollaborator:N.VO(Z,r,D),onClickThrough:m,pin:r,showStructuredDescription:g,viewParameter:Q}),ie?(0,E.jsx)(B.Z,{boardId:te.id,isGroupNote:N.p_(r,D),pinId:r.id,pinNoteText:null==r||null===(I=r.pin_note)||void 0===I?void 0:I.text}):null]});return(0,E.jsx)(je.R,{isWideVideo:a,didShortClickThrough:f,webLinkSurveyState:W,pin:r,outerBodyStyle:S,isStoryPin:o,trafficSource:h,visualContentContainer:J,isCloseupMaximized:!1,data:x,outerPaddingSize:ee,isInStream:v,metadataContainerRef:R,onClickThrough:()=>{m&&m({componentType:129}),W.setClickthroughComponentForSurvey("legoMaybeLink")},viewParameter:Q,viewType:T,metadata:ne,viewer:D,orbacSubjectId:F,disableCommentComposer:!0,relatedModulesResource:j,marginBottom:8,disableLeadPin:!0,isDeletedStoryPin:b,onSaveButtonClick:P,showRepinOnInitialRender:k,goBack:y,onUpdate:w,routePush:A,selectedVariantPin:H,closeupActionBarMaxWidth:De.CI})}var Oe=i(673108),Le=i(360961),Ne=i(438799),Be=i(52722),Me=i(700398),Ze=i(896731);function Fe({clientTrackingParams:e,pin:t,setRelatedPinsHeaderRef:i,slotIndex:n,story:o,topLevelTrafficSource:a,viewParameter:r,viewportSize:s}){if(!o)return null;if((0,Me.Z)(o.container_type)){const e=88===o.container_type;return(0,E.jsx)(A.xu,{marginBottom:e?0:12,children:(0,E.jsx)(Ze.default,{surface:"ShoppingDynamicHeightGrid",view:3,componentFallback:13176,viewParameter:r,initialSlotIndex:n,story:o})})}return"SKIN_TONE_FILTER_QUERIES"===o.story_type?(0,E.jsx)(A.xu,{alignSelf:"center",children:(0,E.jsx)(Ne.Z,{story:o})}):"related_products_feed_header"===o.story_type?(0,E.jsx)(A.xu,{"data-test-id":"related-modules-header",ref:i,children:(0,E.jsx)(Le.Z,{clientTrackingParams:e,slotIndex:n,storyId:o.id,storyType:o.story_type,title:null===(l=o.title)||void 0===l?void 0:l.format,viewParameter:r})}):"related_domain_carousel"===o.story_type?(0,E.jsx)(A.xu,{marginBottom:12,justifyContent:"center",display:"flex",children:(0,E.jsx)(Be.Z,{closeupImageSignature:t.image_signature,data:o,slotIndex:n,storyId:o.id,storyType:o.story_type,topLevelTrafficSource:a,viewParameter:r,viewportSize:s})}):null;var l}var Ue=i(575576),Ve=i(329734),Ge=i(172071),He=i(656226),We=i(430323),$e=i(786871),Ke=i(53325),qe=i(963e3),Ye=i(372169);const Xe=e=>({height:Ke.zX*e,width:Ke.zX}),Je=()=>(0,E.jsx)(u.Fragment,{children:Array(12).fill(void 0).map(((e,t)=>(0,E.jsx)(A.xu,{width:Ye.jh,marginEnd:4},`empty-pin-${t}`)))});function Qe(e){var t,i,n;const{relatedPins:o,imageHeightModifier:a,pin:r,initialSlotIndex:s}=e,l=(0,$e.Z)(),c=({data:t,itemIdx:i})=>{var n,o,c;let d;switch(t.type){case"story":Ge.Z.increment("web_story_card_type",1,{story_type:t.story_type||"unknown",surface:"closeup"}),d=null,t.container_type&&qe.K.includes(t.container_type)&&(d=(0,E.jsx)(qe.Z,{data:t}));break;case"pin":default:const u=(0,Ve.Z)(l),p=a?"ShoppingDynamicHeightGrid":"ShoppingGridShippedMetadata";d=(0,E.jsx)(He.default,{imageOnlyOption:u?"image-only":"default",pin:t,pinId:t.id,pinImageCrop:a?Xe(a):null,authDesktopSurface:p,componentType:13176,slotIndex:i+s,viewData:{pin_id:r.id},viewParameter:(0,O.Z)({hasPin:!!e.pin,hasPinRichMetadata:!!e.pin.rich_metadata,hasPinRichMetadataProducts:!(null===(n=e.pin.rich_metadata)||void 0===n||!n.products),hasPinRichMetadataArticle:!(null===(o=e.pin.rich_metadata)||void 0===o||!o.article),hasPinRichMetadataRecipe:!(null===(c=e.pin.rich_metadata)||void 0===c||!c.recipe),hasPinStoryPinData:!!e.pin.story_pin_data}),viewType:3})}return(0,E.jsx)(Ue.Z,{children:d})};return(0,E.jsx)(We.Z,{viewParameter:(0,O.Z)({hasPin:!!e.pin,hasPinRichMetadata:!!e.pin.rich_metadata,hasPinRichMetadataProducts:!(null===(t=e.pin.rich_metadata)||void 0===t||!t.products),hasPinRichMetadataArticle:!(null===(i=e.pin.rich_metadata)||void 0===i||!i.article),hasPinRichMetadataRecipe:!(null===(n=e.pin.rich_metadata)||void 0===n||!n.recipe),hasPinStoryPinData:!!e.pin.story_pin_data}),component:86,children:(0,E.jsxs)(A.xu,{dangerouslySetInlineStyle:{__style:{marginLeft:"5px"}},direction:"row",display:"flex",justifyContent:"center",wrap:!0,children:[o.map(((e,t)=>(0,E.jsx)(A.xu,{height:(a?Xe(a).height:Ke.zX)+Ye.s_+Ye.dA,width:Ye.jh,marginEnd:4,children:c({data:e,itemIdx:t})},`related-pins-${e.id}-${t}`))),(0,E.jsx)(Je,{})]})})}var et=i(792182),tt=i(444445);const it=6*tt.yF+6*tt.oX,nt=2*tt.yF+3*tt.oX;function ot({clientTrackingParams:e,pin:t,relatedResourceOptions:i,setRelatedPinsHeaderRef:n,topLevelTrafficSource:o,viewParameter:a,viewportSize:r}){const{data:s,auxData:l,isLoaded:c,fetchMore:d,isFetching:p,isAtEnd:h}=(0,Te.Z)({name:i.name,options:i.options}),_=(0,q.ZP)(),m=function(){const{width:e}=(0,et.Z)()||{};let t="90%";return e>=it?t=it:e<=nt&&(t=nt),t}(),g=(0,u.useRef)(0),x=(s||[]).filter(Boolean),f=(0,Oe.Z)(x);return(0,E.jsx)(A.xu,{alignItems:"center","data-test-id":"relatedPins",direction:"column",display:"flex",width:"100%",children:(0,E.jsxs)(A.xu,{direction:"column",display:"flex",flex:"grow",position:"relative",width:m,children:[c&&f.map(((i,s)=>{let c;0===s&&(g.current=0);let d=0;var u;if(Array.isArray(i))d+=i.length,c=(0,E.jsx)(Qe,{imageHeightModifier:null==l||null===(u=l.grid_layout)||void 0===u?void 0:u.w_h_ratio,initialSlotIndex:g.current,pin:t,relatedPins:i},i[0].id);else if("story"===i.type){var p;d+=(null===(p=i.objects)||void 0===p?void 0:p.length)||1,c=(0,E.jsx)(A.kC,{alignItems:"stretch",direction:"column",justifyContent:"start",children:(0,E.jsx)(Fe,{clientTrackingParams:e,pin:t,setRelatedPinsHeaderRef:n,slotIndex:g.current,story:i,topLevelTrafficSource:o,viewParameter:a,viewportSize:r})},i.id)}return g.current+=d,c})),(0,E.jsx)(A.gr,{isAtEnd:h,isFetching:p,fetchMore:d}),(0,E.jsx)(A.kC,{alignItems:"stretch",justifyContent:"center",width:"100%",children:(0,E.jsx)(A.$j,{accessibilityLabel:_._('Loading related products results', 'closeup.relatedProducts.results', 'Accessibility label for loading related products results'),show:p})})]})})}var at=i(820621),rt=i(412067),st=i(819303),lt=i(947599);var ct=i(780280);const dt=()=>{};function ut({direction:e,handleNavHoverToggle:t,leftHover:i,onScroll:n,rightHover:o,shouldPadArrows:a,size:r="md"}){const s=(0,q.ZP)(),l=(0,ct.B)().isRTL,c=function({direction:e,isRTL:t,leftHover:i,rightHover:n,shouldPadArrows:o,verticalSize:a},r){const s=o||i?"default":"subtle",l=o||n?"default":"subtle",c={backgroundImage:`linear-gradient(to ${e}, rgba(255, 255, 255, 0) 0%, #fff 90%)`,height:"100%",top:"0px",bottom:void 0},d={color:"default",height:"40px",justifyContent:"center",left:void 0,right:void 0},u={sm:"52px",md:"124px"};return{up:{...d,backgroundImage:"linear-gradient(#fff 0%, rgba(255, 255, 255, 0) 90%)",bottom:void 0,icon:"arrow-up",label:r._('Up arrow', 'product.carousel.arrowUp', 'Label for up arrow button in closeup image carousel'),top:"0px",width:u[a]},down:{...d,backgroundImage:"linear-gradient(rgba(255, 255, 255, 0) 0%, #fff 90%)",bottom:"0px",icon:"arrow-down",label:r._('Down arrow', 'product.carousel.arrowDown', 'Label for down arrow button in closeup image carousel'),top:void 0,width:u[a]},left:{...c,color:s,icon:t?"arrow-forward":"arrow-back",justifyContent:"start",label:r._('Left arrow', 'Label for left arrow button in search guides', 'Label for left arrow button in search guides'),left:"0px",right:void 0,width:t?"22px":"210px"},right:{...c,color:l,icon:t?"arrow-back":"arrow-forward",justifyContent:"end",label:r._('Right arrow', 'Label for right arrow button in search guides', 'Label for right arrow button in search guides'),left:void 0,right:"0px",width:t?"22px":"210px"}}}({direction:e,isRTL:l,leftHover:i,rightHover:o,shouldPadArrows:a,verticalSize:r},s);return(0,E.jsx)(A.xu,{position:"absolute",height:c[e].height,dangerouslySetInlineStyle:{__style:{willChange:"transform",pointerEvents:"none",top:c[e].top,bottom:c[e].bottom,left:c[e].left,right:c[e].right}},children:(0,E.jsx)(A.xu,{display:"flex",alignItems:"center",width:c[e].width,dangerouslySetInlineStyle:{__style:{backgroundImage:c[e].backgroundImage,marginTop:a?"25px":void 0}},justifyContent:c[e].justifyContent,height:"100%",children:(0,E.jsx)("button",{onMouseEnter:t?()=>t(e,!0):dt,onMouseLeave:t?()=>t(e,!1):dt,onClick:n,style:{backgroundColor:"transparent",border:0,height:"100%",outline:"none",padding:0,pointerEvents:"all"},children:(0,E.jsx)(A.kC,{alignItems:"center",height:"100%",justifyContent:c[e].justifyContent,width:"50px",children:(0,E.jsx)(A.JO,{accessibilityLabel:c[e].label,color:c[e].color,icon:c[e].icon})})})})})}var pt=i(46584),ht=i(447948);function _t({currentlySelectedIndex:e,index:t,onSelect:i,pinId:o,isSelectOnHover:a,size:r,thumbnail:s,mediaType:l="image",viewParameter:c}){const{logContextEvent:d}=(0,F.v)(),p=(0,n.useDispatch)(),h=(0,q.ZP)(),[_,m]=(0,u.useState)(!1),g=(0,u.useCallback)((e=>{"video"===l&&e&&!_&&(m(!0),d({event_type:13,component:13596,element:12831,view_type:3,view_parameter:c}))}),[d,l,c,_]),x=(0,pt.Z)({onVisibilityChanged:g}),f=()=>{p((0,ht.yR)(o,t)),i(t)},y=e===t||!e&&0===t;return(0,E.jsx)(A.xu,{marginBottom:4,ref:x,children:(0,E.jsx)(A.iP,{onMouseEnter:({event:e})=>{e.preventDefault(),e.stopPropagation(),a&&f()},onTap:({event:e})=>{e.preventDefault(),e.stopPropagation(),a||f()},children:(0,E.jsx)(H.Z,{outlined:y,children:(0,E.jsxs)(A.xu,{position:"relative",children:[(0,E.jsx)(A.zd,{wash:!0,width:r,height:r,children:(0,E.jsx)(A.Ee,{alt:"",fit:"cover",src:s,color:"#efefef",naturalHeight:1,naturalWidth:1})}),"video"===l&&(0,E.jsx)(A.xu,{position:"absolute",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",top:!0,left:!0,children:(0,E.jsx)(A.JO,{accessibilityLabel:h._('Secondary Carousel Video Icon', 'secondaryCarousel.carouselItem.videoIndicatorIcon', 'accessibility label on secondary carousel item'),color:"light",icon:"play",size:20})})]})})})})}var mt=i(752802),gt=i(251183),xt=i(700380),ft=i(697335);const yt={md:120,sm:52},vt=490;function bt({carouselSlots:e,commerceData:t={},isSelectOnHover:i,onImageSelect:n,pinId:o,selectedIndex:a,size:r,viewParameter:s}){const{logContextEvent:l}=(0,F.v)(),[c,d]=(0,u.useState)(),[p,h]=(0,u.useState)(0),[_,m]=(0,u.useState)(),[g,x]=(0,u.useState)(),[f,y]=(0,u.useState)(),[v,b]=(0,u.useState)(!1),[P,w]=(0,u.useState)(e.length>=4),[S,k]=(0,u.useState)(!1),T=(0,ft.t)(),C=(0,u.useRef)(),I=(0,u.useRef)(),j=yt[r];(0,u.useEffect)((()=>{l({event_type:120,component:13596,view_type:3,view_parameter:s,aux_data:{pin_id:o,...t}})}),[]),(0,u.useEffect)((()=>{if(!c&&C.current){const e=C.current.getBoundingClientRect();h(Math.floor(e.top)),m(Math.floor(e.bottom)),y(Math.floor(e.top)),x(Math.floor(e.bottom))}}),[C.current,c]),(0,u.useEffect)((()=>{if(C.current){const{height:e,top:t,bottom:i}=C.current.getBoundingClientRect();h(Math.floor(t)),m(Math.floor(i)),d(Math.floor(e))}}),[e.length]),(0,u.useEffect)((()=>{!c&&C.current&&d(Math.floor(C.current.getBoundingClientRect().height))}),[C.current]),(0,u.useEffect)((()=>{p&&f&&g&&_&&e.length>=4&&(b(p=vt+T+20))}),[p,_,f,g]);const R=()=>{S||(k(!0),l({event_type:110,component:13596,view_type:3,view_parameter:s,aux_data:{pin_id:o,...t}}))},D=(0,xt.Z)((()=>{if(C.current){const e=C.current.getBoundingClientRect();h(Math.floor(e.top)),m(Math.floor(e.bottom)),R()}}),16);(0,u.useEffect)((()=>(I.current&&I.current.addEventListener("scroll",D),()=>{I.current&&I.current.removeEventListener("scroll",D)})),[I.current]);let z;const O=e=>{0!==e&&(z&&z.cancel(),C.current&&I.current&&(z=(0,gt.Z)(I.current,0,e,{easingFunction:"ease-in-out",extendToEdgeDistanceY:50,scrollSpeedPxPerMs:.8,onAnimationComplete:()=>{z=null}}),z.start(),R()))};return(0,E.jsxs)("div",{className:"ProductCarousel-OuterScrollContainer",style:{marginTop:"20px",position:"relative"},children:[(0,E.jsx)("div",{id:"InnerScrollContainer",ref:I,className:"ProductCarousel-InnerScrollContainer",style:{maxHeight:vt,cursor:"default"},children:(0,E.jsx)("div",{onClick:e=>{e.preventDefault(),e.stopPropagation()},"aria-hidden":"true",style:{cursor:"default"},children:(0,E.jsx)(A.xu,{display:"flex",alignItems:"center",direction:"column",marginEnd:6,width:j+4,ref:C,marginBottom:1,position:"relative",marginTop:1,children:e.map(((e,r)=>{var c;const{images:d,videos:u}=e,{thumbnail:p,mediaType:h}=u?{thumbnail:u.cover_image_url,mediaType:"video"}:{thumbnail:null===(c=(0,mt.Z)({images:d,resolutionPreferences:["564x","736x","236x"]}))||void 0===c?void 0:c.url,mediaType:"image"};return(0,E.jsx)(_t,{currentlySelectedIndex:a,index:r,onSelect:()=>{((e,i)=>{n&&(l({event_type:101,component:13596,element:"image"===i?11922:12831,view_type:3,view_parameter:s,aux_data:{...t}}),n(e))})(r,h)},isSelectOnHover:i,pinId:o,size:j,thumbnail:p||"",mediaType:h,viewParameter:s},`carousel-item-${e.image_signature||""}-${r}`)}))})})}),!!c&&e.length>3&&(0,E.jsxs)(A.xu,{position:"absolute",overflow:"hidden",height:c>vt?494:c+4,top:!0,width:"100%",dangerouslySetInlineStyle:{__style:{pointerEvents:"none"}},children:[v&&(0,E.jsx)(ut,{direction:"up",onScroll:e=>{e.preventDefault(),e.stopPropagation(),O(-100)},size:r}),P&&(0,E.jsx)(ut,{direction:"down",onScroll:e=>{e.preventDefault(),e.stopPropagation(),O(100)},size:r})]})]})}var Pt=i(954959);var wt=i(128503),St=i(326884),At=i(724917),kt=i(977558),Et=i(696157),Tt=i(749147),Ct=i(313951),It=i(807532),jt=i(21353),Rt=i(52022),Dt=i(31062),zt=i(623568),Ot=i(994608),Lt=i(343341),Nt=i(18857);function Bt(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const Mt=(0,u.lazy)((()=>i.e(95246).then(i.bind(i,245323)))),Zt=(0,u.lazy)((()=>i.e(75754).then(i.bind(i,849086)))),Ft={md:148,sm:80},Ut={display:"block",position:"relative",cursor:"auto"},Vt={boxShadow:"0 1px 20px 0 rgba(0, 0, 0, 0.1)",borderRadius:32};function Gt({conversation_id:e,senderId:t,pinId:i}){rt.Z.create("ApiResource",{url:`/v3/conversations/${e}/message/mark_seen/`,data:{sender:t,pin:i}}).callCreate()}function Ht({viewportSize:e,hasCarouselData:t}){return t&&["lg","md"].includes(e)}function Wt(e){return e?228:4}function $t(e,t){return e?35:t?11157:361}class Kt extends u.Component{constructor(...e){super(...e),Bt(this,"state",(0,x.Z)(this.props)),Bt(this,"removedPwtThumbnailsConstraint",!1),Bt(this,"setResultScrollContainerRef",(e=>{this.resultScrollContainer||(this.resultScrollContainer=e,this.forceUpdate())})),Bt(this,"setRelatedPinsHeaderRef",(e=>{this.relatedPinsHeaderRef=e})),Bt(this,"mounted",!1),Bt(this,"updateViewportSize",(0,xt.Z)((()=>{const{visualState:{carouselData:e}}=this.state,{pin:t}=this.props,{isWideVideo:i}=(0,S.Z)((0,P.Z)({pin:t}))||{};if(this.mounted){const t=function({isWideVideo:e,hasCarouselData:t}){var i,n;let o=1056;return e&&(o=998),t&&(o=1300),(null===(i=window)||void 0===i?void 0:i.innerWidth)<680?"sm":(null===(n=window)||void 0===n?void 0:n.innerWidth)=a}}({viewportSize:t,isWideCarousel:n});this.setState({viewportSize:t,hideBackButton:o,backButtonLabelFitInScreen:a})}}),50)),Bt(this,"triggerQuickPromote",(()=>{const{getSterlingURL:e,pinId:t,routePush:i}=this.props;this.setState({quickPromoteModalTriggered:!0});i(`${e("quick_promote_on_www")}?pinId=${t}`)})),Bt(this,"clickThroughTimer",(()=>{const{setPlacementExtraContext:e}=this.props;clearInterval(this.state.intervalId),e&&e({didLongClickThrough:!0})})),Bt(this,"executeClickthrough",(e=>{var t,i,n,o,a,r,s,l;const{isEligibleForPdpPlus:c,pinId:d,setPlacementExtraContext:u,viewer:p,trafficSource:h,logContextEvent:_,variantData:m}=this.props,{pin:g,didPinClickThrough:x,didShortClickThrough:f}=this.state,y=!!g.story_pin_data,{wasImageClicked:v,auxData:b,componentType:P=Wt(y),elementType:w=$t(!!v,y),viewType:S=3}=e||{},A=(0,O.Z)({hasPin:!!this.props.pin,hasPinRichMetadata:!(null===(t=this.props.pin)||void 0===t||!t.rich_metadata),hasPinRichMetadataProducts:!(null===(i=this.props.pin)||void 0===i||null===(n=i.rich_metadata)||void 0===n||!n.products),hasPinRichMetadataArticle:!(null===(o=this.props.pin)||void 0===o||null===(a=o.rich_metadata)||void 0===a||!a.article),hasPinRichMetadataRecipe:!(null===(r=this.props.pin)||void 0===r||null===(s=r.rich_metadata)||void 0===s||!s.recipe),hasPinStoryPinData:!(null===(l=this.props.pin)||void 0===l||!l.story_pin_data)}),k={...(0,ge.Kl)(g,{},c?"pdp_plus":void 0),...b||{}};if(m&&(k.product_variant_selection_made=m.isSelectedByUser),p&&p.isAuth&&!x&&u&&(u({didPinClickThrough:!0}),this.setState({didPinClickThrough:!0})),y){const{link:e}=(0,me.nA)(this.props);_({event_type:102,view_type:132,view_parameter:3549,element:12971,aux_data:{pin_id:g.id,url:e}})}if(_({event_type:101,object_id_str:d,component:P,element:w,aux_data:k}),_({event_type:12,object_id_str:d,view_type:S,view_parameter:A,component:P,element:w,aux_data:k}),_({event_type:8948,view_type:S,view_parameter:A,component:P,element:w,object_id_str:d,aux_data:{click_type:"clickthrough",closeup_navigation_type:h&&(0,zt.sV)(h)?"deeplink":"click",...k}}),v){const e=setInterval(this.clickThroughTimer,12e4);this.setState({intervalId:e})}this.clickThroughStartTime=Date.now(),f&&this.setState({didShortClickThrough:!1})})),Bt(this,"handleFocus",(()=>{const{setPlacementExtraContext:e}=this.props;clearInterval(this.state.intervalId),e&&e({didLongClickThrough:!1})})),Bt(this,"handleWindowFocus",(()=>{if(this.clickThroughStartTime>0){const e=Date.now()-this.clickThroughStartTime<5e3;this.setState({didShortClickThrough:e}),this.clickThroughStartTime=0}})),Bt(this,"handleClickLogging",(()=>{this.props.logContextEvent({event_type:101,object_id_str:this.state.pin.id,component:4,element:13306,aux_data:{...(0,ge.Kl)(this.state.pin,{},this.props.isEligibleForPdpPlus?"pdp_plus":void 0)||{}}})})),Bt(this,"handleBackButtonClick",(()=>{const{deepLinkBackGoesToBoard:e,goBack:t,routePush:i,trafficSource:n,viewer:o,requestContext:a,pin:r,logContextEvent:s}=this.props;(0,b.Z)({commerceData:{...(0,ge.Kl)(this.state.pin,{},this.props.isEligibleForPdpPlus?"pdp_plus":void 0)||{}},deepLinkBackGoesToBoard:e,element:13310,goBack:t,routePush:i,trafficSource:n,viewer:o,requestContext:a,pin:r},s)})),Bt(this,"handleCarouselSwipe",(e=>{const{visualState:t,firstLoadComplete:i}=this.state;i&&this.setState({visualState:{...t,carouselData:{...t.carouselData,index:e}}})})),Bt(this,"dispatch",((e,t)=>this.setState((t=>(0,h.Z)(t,e)),t))),Bt(this,"handleScroll",(0,xt.Z)((()=>{const{isOverRelatedPins:e}=this.state;if(this.relatedPinsHeaderRef){const t=kt.hu,i=this.relatedPinsHeaderRef.getBoundingClientRect().top<=t;i&&!e?this.setState({isOverRelatedPins:!0}):!i&&e&&this.setState({isOverRelatedPins:!1})}}),10)),Bt(this,"onWrapperClick",(e=>{e.stopPropagation(),this.handleBackButtonClick()})),Bt(this,"onRelatedInterestsBannerDismiss",(()=>{this.setState({isRelatedInterestsBannerDismissed:!0})}))}populatePlaceholderCarouselData(){const{pin:e}=this.props,{visualState:t}=this.state;this.setState({visualState:{...t,carouselData:(0,m.Z)({carouselData:e.carousel_data,images:e.images,richMetadata:e.rich_metadata,richSummary:e.rich_summary,additionalImages:[{canonical_images:e.images},{}]})}})}componentDidMount(){var e,t,i,n;const{conversation_id:o,conversationOpen:a,dispatch:r,experimentsClient:s,pin:l,pinId:c,senderId:d,setPlacementExtraContext:u,shouldShowInbox:p,toastManager:h,openInbox:_,trackInteraction:m}=this.props,{visualState:{carouselData:g}}=this.state,x=(0,v.Z)({richPinData:null==l?void 0:l.rich_summary});this.mounted=!0,!g&&(null!=x&&x.has_multi_images||null!=x&&null!==(e=x.videos)&&void 0!==e&&e.length)&&this.populatePlaceholderCarouselData(),(0,I.Z)(l)&&setTimeout((()=>{this.setState({showRelatedContent:!0})}),1e3),o&&d&&c&&Gt({conversation_id:o,senderId:d,pinId:c});o&&(a(o),p&&_()),l.image_signature&&this.props.setMostRecentPinImage(l.image_signature),c&&this.props.setMostRecentPinId(c),u&&u({is_own_or_group_pin:this.isOwnOrGroupPin});const f=R.Z.getItem("unauthDesktopSavePinId")||"";f&&f===c&&(R.Z.removeItem("unauthDesktopSavePinId"),m({action:"trigger",item:"unauth-save-button-quicksave"}),(0,at.Z)(l,this.props.i18n).then((e=>{const{id:t,url:i,name:n}=e;r((0,Tt.d)({boardId:t,url:i,title:n||"",pinId:c})),h.showToast((({hideToast:t})=>(0,E.jsx)(L.Z,{boardName:e.name,boardUrl:e.url,onHide:t,pinImageUrl:l.images["236x"].url})))}))),this.updateViewportSize(),window.addEventListener("resize",this.updateViewportSize),window.addEventListener("focus",this.handleWindowFocus),null!==(t=window)&&void 0!==t&&null!==(i=t.location)&&void 0!==i&&null!==(n=i.search)&&void 0!==n&&n.includes("invite_code=")&&s.checkExperiment("web_log_invite_attribution_pin_closeup").anyEnabled&&(0,D.Z)()}componentDidUpdate(e){const{didRepin:t,isLandingPage:i,pin:n,pinId:o,conversation_id:a,senderId:r,pinResource:s,pinResource:{data:l},pwtSurfaceContext:c,setPlacementExtraContext:d,showQuickPromote:u}=this.props,{visualState:{carouselData:p},firstLoadComplete:h,quickPromoteModalTriggered:_}=this.state;this.visualDataDidUpdate(),!h||this.isWideCarousel()||this.removedPwtThumbnailsConstraint||(null==c||c.removeConstraint("thumbnailsLoaded"),this.removedPwtThumbnailsConstraint=!0),l&&!h&&(l.carousel_data&&(l.carousel_data.index=(null==p?void 0:p.index)||0),this.dispatch({type:"pinLoaded",pin:l})),a&&r&&o&&e.pinId!==o&&Gt({conversation_id:a,senderId:r,pinId:o}),!e.pinResource.data&&s.data&&!_&&u&&this.triggerQuickPromote();const m={};(R.Z.getItem(Et.W3)||"").includes(`/pin/${o}`)&&i&&(m.loginPageType="pin"),t&&(m.didRepin=!0),n.image_signature&&(m.pin_image_signature=n.image_signature),m.is_own_or_group_pin=this.isOwnOrGroupPin,!(0,C.Z)(m)&&d&&d({...m})}componentWillUnmount(){window.removeEventListener("resize",this.updateViewportSize),window.removeEventListener("focus",this.handleWindowFocus),this.mounted=!1}get isOwnOrGroupPin(){var e;const{pin:t,viewer:i}=this.props,n=(t||{}).board||{},o=n.is_collaborative&&(0,j.Z)({board:n,viewer:i});return Boolean(i.isAuth&&(null===(e=t.pinner)||void 0===e?void 0:e.id)===i.id||o)}isWideCarousel(){const{viewportSize:e,visualState:{carouselData:t}}=this.state;return Ht({viewportSize:e,hasCarouselData:!!t})}visualDataDidUpdate(){var e,t,i;const{variantData:n,pin:o}=this.props,{visualState:{carouselData:a,mainImage:r},firstLoadComplete:s}=this.state;if(!s)return;const l=(0,m.Z)({carouselData:o.carousel_data,images:o.images,richMetadata:o.rich_metadata,richSummary:o.rich_summary,additionalImages:null==n?void 0:n.images}),c=(0,f.Z)(o),d=((null==l?void 0:l.carousel_slots)||[])[0]||{},u=(0,g.Z)(d.images),p=null!=n&&n.images?0:(null==a?void 0:a.index)||0;let h;h=l&&((null===(e=l.carousel_slots)||void 0===e?void 0:e.length)||0)>1?{mainImage:c,carouselData:{...l,index:p},previewImage:(0,y.Z)(o)}:null!=u&&u.url?{mainImage:{url:u.url,height:u.height||1,width:u.width||1}}:{mainImage:c,previewImage:(0,y.Z)(o)},(null==a?void 0:a.id)===(null===(t=h.carouselData)||void 0===t?void 0:t.id)&&JSON.stringify(null==a?void 0:a.carousel_slots)===JSON.stringify(null===(i=h.carouselData)||void 0===i?void 0:i.carousel_slots)&&r.url===h.mainImage.url||this.setState({visualState:h})}renderBodyContent({isEligibleForStlFlyout:e,relatedResourceOptions:t,taggedProducts:i,maxWidth:n}){var o,a;const{experimentsClient:{checkExperiment:r},isLimitedLogin:s,pin:l,pinResource:c,routePush:p,searchQuery:h,showRepinOnInitialRender:m,trafficSource:g,viewer:x,orbacActingAs:f,showStructuredDescription:y,userBusinessRoleResource:v,isORBACGA:b,trendsData:w}=this.props,{id:k,sponsorship:T,story_pin_data_id:C,story_pin_data:I}=l,j=!!C,R=!(null==I||!I.is_deleted),{creator:D,sponsor:O,status:L}=T||{},{username:N}=D||{},{username:B}=O||{},{refresh:M}=c,Z=b?(0,d.lJ)(x,f):void 0,{data:F}=v||{},U=!l.is_repin&&B,V=B===x.username?[St.V3.OWNER]:null==F?void 0:F.permissions,G=B===x.username||!(null==V||!V.find((e=>z.Z.includes(e)))),H=B===x.username||!(null==V||!V.find((e=>z.Z.includes(e)))),{didShortClickThrough:W,viewportSize:$}=this.state,{isWideVideo:K}=(0,S.Z)((0,P.Z)({pin:l}))||{},q=(0,Nt.rh)(l,x,this.props.experimentsClient,Z),Y=(0,Ot.CA)(null==w?void 0:w.data,this.props.experimentsClient),X=U&&x.isAuth&&r("mweb_web_android_ios_backend_clbc_display_controls").anyEnabled&&(G&&0===L||H&&1===L),J=(l.aggregated_pin_data||{}).has_xy_tags,Q=j&&(null==I||null===(o=I.pages)||void 0===o?void 0:o.length)>0;return(0,E.jsx)(A.xu,{dangerouslySetInlineStyle:{__style:j?{...Ut,width:"100%"}:{}},id:"gradient","data-test-id":"gradient",display:"flex",justifyContent:"center",children:(0,E.jsx)(u.Fragment,{children:(0,E.jsx)(st.Z,{isStoryPin:j,isWideVideo:K,children:(0,E.jsx)(_.Z,{name:"CloseupBody",children:(0,E.jsxs)(A.xu,{children:[(0,E.jsxs)(A.xu,{alignItems:K?"center":void 0,direction:K?"column":void 0,display:K?"flex":void 0,children:[X&&(0,E.jsx)(A.xu,{"data-test-id":"sponsorship-approval-module",display:"flex",children:(0,E.jsx)(_.Z,{name:"SafeSuspense_Closeup_SponsorshipApprovalModule",children:(0,E.jsx)(lt.Z,{children:(0,E.jsx)(Zt,{business_role:V,creatorUsername:N,sponsorshipStatus:L,pinId:k})})})}),(0,Nt.WE)(x,$,q,Y,w,X)&&(0,E.jsx)(A.xu,{"data-test-id":"PartnerModule",width:"lg"===$&&K?n:"100%",children:(0,E.jsx)(_.Z,{name:"SafeSuspense_Closeup_PartnerModule",children:(0,E.jsx)(lt.Z,{children:(0,E.jsx)(Mt,{borderStyle:Vt,isStoryPin:j,pin:l,viewportSize:$,trendsData:Y?null==w||null===(a=w.data)||void 0===a?void 0:a.results:null,showPinStats:q})})})})]}),(0,E.jsx)(ze,{data:c.data,didShortClickThrough:W,goBack:this.handleBackButtonClick,hasXYcoordinates:J,isEligibleForStlFlyout:e,isStoryPin:j,isDeletedStoryPin:!!R,isWideVideo:K,onClickThrough:this.executeClickthrough,onSaveButtonClick:this.handleClickLogging,onUpdate:M,outerBodyStyle:j?null:Vt,pin:l,relatedResourceOptions:t,routePush:p,searchQuery:h,showRepinOnInitialRender:!s&&m,trafficSource:g,viewParameterType:Q?157:void 0,showStructuredDescription:y,taggedProducts:i})]})})})})})}render(){var e,t,i,n,o,a,r,s;const{contextPinIds:l,ideaPinStelaCategories:c,pin:u,requestContext:h,taggedObjectsResource:_,topLevelTrafficSource:m,topLevelTrafficSourceDepth:g,trafficSource:x,searchQuery:f,storyPinTaggedProductsResource:y,pinResource:v,isORBACGA:b,viewer:k,orbacActingAs:C}=this.props,{showStructuredDescription:I,isEligibleForPdpPlus:j,...R}=this.props,D=j&&(0,ge.Kl)(u,{},j?"pdp_plus":void 0)||null,{viewportSize:z,didShortClickThrough:L,firstLoadComplete:N,showRelatedContent:B,visualState:{carouselData:M}}=this.state,{isWideVideo:Z}=(0,S.Z)((0,P.Z)({pin:u}))||{},F=(({isWideVideo:e,viewportSize:t})=>!["md","sm"].includes(t)&&!e)({isWideVideo:Z,viewportSize:z}),U={name:"RelatedModulesResource",options:{pin_id:u.id,context_pin_ids:l,homefeed_source_sig:u.recommendation_reason&&["NAVBOOST_P2P","NAVBOOST_PFY","INSTANT_PFY_NON_MATERIALIZABLE","P2P","P2P_CLICKTHROUGH","FRESH_TEXT_EMBEDDINGS","INTENTIONAL_DISTRIBUTION_GEMINI_V5"].includes(u.recommendation_reason.reason)&&u.recommendation_reason.reason_id,page_size:12,search_query:f,source:x,top_level_source:m,top_level_source_depth:g,is_pdp:u.is_eligible_for_pdp}},V=(0,d.q6)(k,null===(e=u.pinner)||void 0===e?void 0:e.id,C),G=(null==u?void 0:u.id)&&(!b||!V)&&(0,E.jsx)(ot,{pin:u,relatedResourceOptions:U,setRelatedPinsHeaderRef:this.setRelatedPinsHeaderRef,topLevelTrafficSource:m,viewParameter:(0,O.Z)({hasPin:!!u,hasPinRichMetadata:!!u.rich_metadata,hasPinRichMetadataProducts:!(null===(t=u.rich_metadata)||void 0===t||!t.products),hasPinRichMetadataArticle:!(null===(i=u.rich_metadata)||void 0===i||!i.article),hasPinRichMetadataRecipe:!(null===(n=u.rich_metadata)||void 0===n||!n.recipe),hasPinStoryPinData:!!u.story_pin_data}),viewportSize:z}),H=h.experimentsClient.checkExperiment("web_stl_pinner").anyEnabled,{data:W}=_||{},$=!!W&&W.length>0&&W.some((e=>(0,w.Z)(e))),K=H&&$&&!(0,ge.Gy)(u),{data:q}=y||{},Y=this.isWideCarousel(),X=Y&&F?De.Ch:De.CI,J=Y?De.Gb:De.Kn,Q="lg"===z?J-X:X,ee=N&&this.isWideCarousel(),te=ee&&(0,E.jsx)(ke,{disabled:!I,children:(0,E.jsx)(T,{containerId:"InnerScrollContainer",children:(0,E.jsx)(bt,{carouselSlots:null!==(o=null==M?void 0:M.carousel_slots)&&void 0!==o?o:[],commerceData:D,onImageSelect:this.handleCarouselSwipe,pinId:u.id,selectedIndex:(null==M?void 0:M.index)||0,viewParameter:(0,O.Z)({hasPin:!!this.props.pin,hasPinRichMetadata:!!this.props.pin.rich_metadata,hasPinRichMetadataProducts:!(null===(a=this.props.pin.rich_metadata)||void 0===a||!a.products),hasPinRichMetadataArticle:!(null===(r=this.props.pin.rich_metadata)||void 0===r||!r.article),hasPinRichMetadataRecipe:!(null===(s=this.props.pin.rich_metadata)||void 0===s||!s.recipe),hasPinStoryPinData:!!this.props.pin.story_pin_data}),size:"sm"})})}),ie=ee&&(0,E.jsx)(A.xu,{width:Ft.sm}),ne=(0,E.jsx)(p.Z,{inStlPinnerExp:H,taggedProducts:W,pin:u,pinResource:v,topLevelTrafficSource:m,didShortClickThrough:L,firstLoadComplete:N,viewportSize:z,showRelatedContent:B,renderRelatedModulesContent:()=>G,renderBodyContent:()=>this.renderBodyContent({ideaPinStelaCategories:c,isEligibleForStlFlyout:K,inStlPinnerExp:H,taggedProducts:W,relatedResourceOptions:U,storyPinTaggedProducts:q,maxWidth:J}),onWrapperClick:this.onWrapperClick,beforeBodyContent:te,afterBodyContent:ie});return(0,E.jsx)(At.Xl,{classProps:{...R,location:{pathname:"",search:"",hash:""}},classState:this.state,commerceData:D,showCloseupContentRight:F,showProductDetailPage:!0,isWideCarousel:Y,paneWidth:X,maxWidth:J,descriptionPaneWidth:Q,handleCarouselSwipe:this.handleCarouselSwipe,handleFocus:this.handleFocus,setResultScrollContainerRef:this.setResultScrollContainerRef,handleScroll:this.handleScroll,handleBackButtonClick:this.handleBackButtonClick,closeupContent:ne,onRelatedInterestsBannerDismiss:this.onRelatedInterestsBannerDismiss})}}const qt=(0,wt.Z)((function(e){var t,i;const{pin:o,viewer:a}=e,{logContextEvent:l}=(0,F.v)(),c=(0,Rt.Z)(),p=(0,q.ZP)(),h=(0,U.F)(),{checkExperiment:_}=h,m=function(e){var t;return e&&(0,Pt.Z)({isEligibleForPdp:e.is_eligible_for_pdp,isStaleProduct:e.is_stale_product,isOutOfStockProduct:e.is_oos_product})&&!e.story_pin_data&&(null===(t=e.formatted_description)||void 0===t?void 0:t.components)}(o),{setMostRecentPinId:g,setMostRecentPinImage:x}=(0,It.f)(),f=(0,zt.hb)({isStoryPin:(0,zt.hy)(o),isVideoPin:(0,zt.iR)(o.videos)}),y="pin_closeup_lcp",v=(0,Dt.PY)(y),{conversationOpen:b}=(0,Ct.Z5)(),{anyEnabled:P}=_("web_m10n_business_access_orbac_www"),{anyEnabled:w}=_("web_m10n_business_access_orbac_www"),S=(0,r.Z)(o.is_eligible_for_pdp_plus),A=(0,s.Z)(),T=w?(0,d.lJ)(a,A):void 0;(0,u.useEffect)((()=>{v&&(0,Dt.ku)({stopwatchName:y,binaryAnnotationName:"pinType",value:f,annotationType:"STRING"})}),[v,f]);const C=null==o||null===(t=o.sponsorship)||void 0===t||null===(i=t.sponsor)||void 0===i?void 0:i.id,I=!o.is_repin&&!!C,j=(0,Te.Z)(C&&I&&a.isAuth&&"storyPin"===f?{name:"ApiResource",options:{url:`/ads/v4/business_access/businesses/${C}/me/ad_accounts_permissions/`}}:null),R=(0,Ot.Gv)(a,o,T)&&a.id,{data:D,isLoaded:z}=(0,Te.Z)(R?{name:"ApiResource",options:{url:`/v3/trends/partner/${a.id||""}/trends_for_pin/${o.id}/`,data:{number_terms_to_return:10}}}:null);return(0,E.jsx)(Kt,{...e,conversationOpen:b,dispatch:(0,n.useDispatch)(),experimentsClient:h,getSterlingURL:(0,jt.Z)(),pwtSurfaceContext:(0,k.EV)(),requestContext:(0,ct.B)(),setMostRecentPinId:g,setMostRecentPinImage:x,toastManager:(0,Lt.F9)(),i18n:p,isEligibleForPdpPlus:S,variantData:(0,fe._T)(),orbacActingAs:P?A:{},logContextEvent:l,showStructuredDescription:m,userBusinessRoleResource:j,isORBACGA:w,trackInteraction:c,trendsData:{data:D,isLoaded:!R||z}})}));function Yt(e){return(0,E.jsx)(fe.eL,{pin:e.pin,children:(0,E.jsx)(qt,{...e})})}var Xt=i(915071),Jt=i(350118),Qt=i(558068);function ei(e){return(0,E.jsx)(c.l6,{...e,CloseupComponent:Yt})}function ti(e){var t;const i=(0,n.useDispatch)(),c=(0,l.Z)(),p=(0,V.useParams)(),h=(0,Qt.aX)(),_={...e,history:(0,V.useHistory)(),location:(0,V.useLocation)(),params:p,requestContext:(0,ct.B)(),searchPinCloseupViewed:(e,t)=>i((0,Xt.Y4)(e,t)),viewer:c},{checkExperiment:m}=(0,U.F)(),g=(0,Jt.S6)()(null!==(t=p.id)&&void 0!==t?t:""),x={surface:(0,r.Z)(null==g?void 0:g.is_eligible_for_pdp_plus)?"product_details_plus":"product_details",constraints:m("adding_thumbnails_constraint").anyEnabled?["image","resource","description","shopButton","thumbnailsLoaded"]:["image","resource","description","shopButton"],customEnabledNavigationTypes:["initial_app_load","client_route_push","client_route_replace"]};return(0,E.jsx)(a.Z,{...x,children:(0,E.jsx)(o.Z,{addFields:m("web_pdpplus_brand").anyEnabled?["productview.brand"]:void 0,pinId:p.id||"",orbacSubjectId:(0,d.lJ)(c,(0,s.Z)()),children:({pinResource:e})=>(0,u.createElement)(ei,{..._,checkExperiment:m,currentHistoryStack:h,pinResource:e,key:p.id})})})}},712331:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(326884);const o=[n.gO.ADMIN,n.gO.CAMPAIGN_MANAGER]},724917:(e,t,i)=>{i.d(t,{$y:()=>St,Xl:()=>wt,f9:()=>At,z8:()=>kt,Q2:()=>Et});var n=i(667294),o=i(702664),a=i(203138),r=i(385624),s=i(258140),l=i(391254),c=i(275445),d=i(883119),u=i(785893);const p={__style:{animationName:"SelectInterest_AnimateIn, SelectInterest_CircleAnimateOut",animationDuration:"0.3s, 0.3s",animationDelay:"0.3s, 1s",animationFillMode:"forwards",animatitionTimingFunction:"ease-out",backgroundColor:"rgba(196, 196, 196, 0.1)"}},h={__style:{animationName:"SelectInterest_AnimateIn, SelectInterest_AnimateOut",animationDuration:"0.3s, 0.5s",animationDelay:"0.3s, 1.1s",animationFillMode:"forwards",animatitionTimingFunction:"ease-out"}};const _=function({anchor:e,endAnimation:t,interest:i}){const[o,a]=(0,n.useState)(!1),{width:r,height:s,url:c}=i.images["400x"];let _;const m=()=>{t(i.id)},g=()=>{a(!0),_=setTimeout(m,2e3)};(0,n.useEffect)((()=>((()=>{const e=new Image;e.src=null!=c?c:"",e.onload=g})(),()=>{_&&clearTimeout(_)})),[]);const{top:x=0,left:f=0,bottom:y=0,right:v=0}=(null==e?void 0:e.getBoundingClientRect())||{},b=(x+y)/2+100,P=(f+v)/2-75;return!!e&&o&&(0,u.jsxs)(n.Fragment,{children:[(0,u.jsx)(l.Z,{unsafeCSS:"\n@keyframes SelectInterest_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 SelectInterest_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 SelectInterest_AnimateOut {\n from {\n transform: translateX(0) translateY(0) scale(1.0);\n opacity: 1;\n }\n to {\n transform: translateX(-25px) translateY(-200px) scale(0.1);\n opacity: 0;\n }\n}\n"}),(0,u.jsxs)(d.xu,{dangerouslySetInlineStyle:{__style:{top:b,left:P}},display:"flex",justifyContent:"center",position:"fixed",width:200,height:200,children:[(0,u.jsx)(d.xu,{alignItems:"center",dangerouslySetInlineStyle:p,display:"flex",height:"100%",justifyContent:"center",opacity:0,rounding:"circle",width:"100%"}),(0,u.jsx)(d.xu,{bottom:!0,dangerouslySetInlineStyle:h,height:100,left:!0,margin:"auto",opacity:0,position:"absolute",rounding:3,right:!0,top:!0,width:100,children:(0,u.jsx)(d.zd,{height:"100%",rounding:4,width:"100%",wash:!0,children:(0,u.jsx)(d.Ee,{alt:"pin-image",fit:"cover",naturalHeight:null!=r?r:1,naturalWidth:null!=s?s:1,src:null!=c?c:""})})})]})]})};var m=i(898781),g=i(784590),x=i(833991),f=i(339363),y=i(965900),v=i(407043),b=i(550448),P=i(276775),w=i(844974),S=i(578248);const A="cubic-bezier(0.66, 0.025, 0.33, 0.975)",k=`RelatedInterestsBanner_SlideIn 250ms forwards ${A}`,E=e=>({view_type:e,view_parameter:136,component:13489});function T({onDismiss:e,relatedInterests:t,viewType:i}){const{logContextEvent:a}=(0,v.v)(),r=(0,m.ZP)(),[s,p]=(0,n.useState)(!0),[h,g]=(0,n.useState)(!1),[T,C]=(0,n.useState)([]),[I,j]=(0,n.useState)(T.reduce(((e,t)=>(e[t.id]=!1,e)),{})),[R,D]=(0,n.useState)(),[z,O]=(0,n.useState)(),[L,N]=(0,n.useState)(),{appUI:{viewportSize:B}}=(0,y.I)();let M;const Z=(0,P.useHistory)(),F=(0,o.useDispatch)();(0,n.useEffect)((()=>{t&&t.length>=5&&(C(t.slice(0,6)),p(!1),a({event_type:9025,view_type:i}),g((()=>{const e=(0,w.qn)("lastViewedMiniRenux");return!!(e&&Date.now()-Number(e)<2592e5)})()),(0,f.Nh)("viewedMiniRenux",!0),(0,w.Nh)("lastViewedMiniRenux",Date.now()))}),[t]),(0,n.useEffect)((()=>()=>{clearTimeout(R),clearTimeout(z),clearTimeout(M)}),[]);const{isTooltipOnLogoButtonShown:U,logoButtonRef:V,toggleTooltipOnLogoButton:G}=(0,b.p)(),H=()=>G(!1),W=()=>G(!0),$=e=>{p(!s);const t=e?Object.freeze({}):{element:179};N(!0),M=setTimeout((()=>N(!1)),125),a({event_type:e&&(s?107:106)||101,...E(i),...t})},K=e=>{const t=T.findIndex((t=>t.id===e.id)),n=!e.is_followed,o=T.slice();o[t]={...e,is_followed:n},C(o),n&&j({...I,[e.id]:!0}),Promise.resolve(F((0,S.bJ)({[e.id]:n},"mini_renux"))).then((()=>{n&&(U?(R&&clearTimeout(R),D(setTimeout(H,7e3))):(z&&clearTimeout(z),R&&clearTimeout(R),O(setTimeout(W,3e3)),D(setTimeout(H,1e4)))),F((0,S.H5)(!0))})),a({event_type:101,...E(i),element:n?1030:1151}),(0,f.Nh)("completedMiniRenux",!0)},q=e=>j({...I,[e]:!1}),Y=r._('Welcome back!', 'relatedInterestsBanner.header', 'Welcome header on related interests banner'),X=r._('Tell us what else you\'re interested in', 'relatedInterestsBanner.subheader', 'Subheader on realted interests banner instructing users to select interests'),J=(0,u.jsxs)(n.Fragment,{children:[(0,u.jsx)(d.xu,{display:"flex",marginStart:-2,children:T.slice(0,3).map((e=>{var t,i,n;const o=e.images["400x"];return o?(0,u.jsx)(d.xu,{marginStart:2,rounding:2,children:(0,u.jsx)(d.zd,{height:64,rounding:4,width:64,children:(0,u.jsx)(d.Ee,{alt:r._('Related interest image thumbnail', 'relatedInterestsBanner.image.thumbnail', 'Label for related interests image preview thumbnail'),color:e.background_color,fit:"cover",naturalHeight:null!==(t=o.height)&&void 0!==t?t:1,naturalWidth:null!==(i=o.width)&&void 0!==i?i:1,src:null!==(n=o.url)&&void 0!==n?n:""})})},o.url):null}))}),(0,u.jsxs)(d.xu,{direction:"column",display:"flex",marginEnd:6,paddingX:6,children:[(0,u.jsx)(d.xv,{children:Y}),(0,u.jsx)(d.X6,{size:"400",children:X})]}),(0,u.jsx)(d.zx,{onClick:()=>$(!1),text:r._('Choose topics', 'relatedInterestsBanner.button.chooseTopics', 'Choose topics button, expands banner to show topics')})]}),Q=(0,u.jsxs)(d.kC,{alignItems:"center",direction:"column",justifyContent:"center",children:[(0,u.jsx)(d.xv,{align:"center",children:Y}),(0,u.jsx)(d.X6,{align:"center",size:"400",children:X}),(0,u.jsx)(d.xu,{display:"flex",marginStart:-2,paddingY:4,children:T.map((e=>(0,u.jsx)(d.xu,{marginStart:2,display:"flex",direction:"column",justifyContent:"start",children:(0,u.jsx)(c.Z,{clickHandler:()=>K(e),interest:e,isSelected:e.is_followed,size:"md_120"})},e.id)))}),(0,u.jsx)(d.zx,{color:"red",disabled:0===T.filter((e=>e.is_followed)).length,onClick:()=>{Z.push("/"),a({event_type:101,...E(i),element:76})},text:r._('See your new home feed', 'relatedInterestsBanner.button.seeHomefeed', 'Submit selected topics and go to updated homefeed button')})]}),ee=new d.H3([new d.Ry(x.HW)]);return T.length>=5&&!h?(0,u.jsxs)(d.mh,{children:[(0,u.jsx)(l.Z,{unsafeCSS:(te=128,`\n@keyframes RelatedInterestsBanner_SlideIn {\n from { transform: translateY(${te}px); }\n to { transform: translateY(0); }\n}\n`)}),(0,u.jsx)(d.iP,{onTap:s?()=>{}:()=>$(!1),children:(0,u.jsxs)(d.xu,{alignItems:"center",bottom:!0,borderStyle:"shadow",color:"default",dangerouslySetInlineStyle:{__style:{animation:k,WebkitAnimation:k,cursor:s?"default":"pointer",transition:`min-height 250ms ${A}`}},display:"flex",minHeight:s?328:128,justifyContent:"center",left:!0,padding:8,position:"fixed",right:!0,zIndex:ee,children:[!L&&(s?Q:J),(0,u.jsx)(d.xu,{padding:"lg"===B||s?8:4,position:"lg"===B||s?"absolute":"static",right:!0,top:s,children:(0,u.jsx)(d.hU,{accessibilityLabel:r._('Dismiss icon button', 'relatedInterestsBanner.button.dismiss', 'Icon button to close banner'),icon:"cancel",iconColor:"darkGray",onClick:e,size:"md"})})]})}),T.map((e=>I[e.id]?(0,u.jsx)(_,{anchor:V,interest:e,endAnimation:q},e.id):null))]}):null;var te}function C({onDismiss:e,pinId:t}){const{data:i}=(0,g.Z)({name:"PinInterestsResource",options:{hideFollowed:!0,limit:6,pinId:t}});return(0,u.jsx)(T,{onDismiss:e,relatedInterests:i,viewType:3})}var I=i(215292);function j({handleClick:e,pins:t,title:i,viewportSize:n}){if(t.length<1)return null;const o="narrow"===n,a=o?4:5,r=Math.min(t.length,a-1),s=t.slice(0,r+1),l=o?553:807,c=o?266:292,p=o?118:139,h=o?176:208,_=s.map(((e,t)=>{const{description:i,id:n,images:{"236x":o}={}}=e,{url:a,width:r,height:s}=null!=o?o:{};return(0,u.jsx)(d.xu,{width:p,height:h,marginStart:0!==t?4:0,overflow:"hidden",dangerouslySetInlineStyle:{__style:{borderRadius:"7px"}},children:(0,u.jsx)(d.zd,{wash:!0,width:p,height:h,children:(0,u.jsx)(d.Ee,{alt:null!=i?i:"",src:null!=a?a:"",naturalWidth:null!=r?r:1,naturalHeight:null!=s?s:1,fit:"cover"})})},n)}));return(0,u.jsx)(I.q,{children:({hovered:t,onMouseEnter:n,onMouseLeave:o})=>(0,u.jsx)(d.iP,{onMouseEnter:n,onMouseLeave:o,onTap:e,children:(0,u.jsxs)(d.xu,{"data-test-id":"shop-entry-container",display:"flex",justifyContent:"center",color:t?"secondary":"default",direction:"column",position:"relative",width:l,height:c,marginBottom:7,dangerouslySetInlineStyle:{__style:{borderRadius:"23px",marginTop:"18px"}},children:[(0,u.jsx)(d.xu,{marginBottom:4,children:(0,u.jsx)(d.xv,{align:"center",size:"300",weight:"bold",children:i})}),(0,u.jsx)(d.kC,{alignItems:"stretch",justifyContent:"center",width:l,children:_})]})})})}var R=i(564194);function D(e){const t=(0,P.useHistory)(),{logContextEvent:i}=(0,v.v)(),{pinId:n,searchQuery:o,slotIndex:a,story:{action:{url:r},content_ids:s,id:l,objects:c,story_type:d,title:{format:p}},trafficSource:h,viewParameter:_,viewportSize:m}=e;if(c.length<1)return null;const g=function(e,t){const i=e?`q=${e}`:null,n=t&&"unknown"!==t?`rs=${t}`:null;let o="";return i&&n?o=`?${i}&${n}`:!i&&n&&(o=`?${n}`),o}(o,h);let x=`${r}${g}`;"related_products_collage"===d&&(x=g?`/pin/${n}/related-products/${g}&entrySource=shopping`:`/pin/${n}/related-products/?entrySource=shopping`);return(0,u.jsx)(R.Z,{componentType:0,contextLogData:{content_ids:(s||[]).map((e=>`pin:${e}`)).join("|"),story_id:l,story_type:d},impressionType:"Story",loggingId:l,slotIndex:a,viewParameter:_,viewType:3,children:(0,u.jsx)(j,{pins:c,title:p,handleClick:()=>{i({event_type:101,view_type:3,view_parameter:139,component:200,aux_data:{story_id:l,story_type:d}}),t.push(x)},viewportSize:m})})}var z=i(360961),O=i(438799);function L({clientTrackingParams:e,pin:t,searchQuery:i,setRelatedPinsHeaderRef:n,slotIndex:o,story:a,trafficSource:r,viewParameter:s,viewportSize:l}){return a?"related_products_collage"===a.story_type?(0,u.jsx)(d.xu,{alignSelf:"center",children:(0,u.jsx)(D,{pinId:t.id,searchQuery:i,slotIndex:o,story:a,trafficSource:r,viewParameter:s,viewportSize:l})}):"SKIN_TONE_FILTER_QUERIES"===a.story_type?(0,u.jsx)(d.xu,{alignSelf:"center",children:(0,u.jsx)(O.Z,{story:a})}):"related_modules_header"===a.story_type?(0,u.jsx)(d.xu,{"data-test-id":"related-modules-header",ref:n,children:(0,u.jsx)(z.Z,{clientTrackingParams:e,slotIndex:o,storyId:a.id,storyType:a.story_type,title:null===(c=a.title)||void 0===c?void 0:c.format,viewParameter:s})}):null:null;var c}var N=i(92331),B=i(575576),M=i(329734),Z=i(172071),F=i(572551),U=i(656226),V=i(692627),G=i(430323),H=i(112690),W=i(444445),$=i(53325),K=i(361259),q=i(963e3);function Y(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class X extends n.Component{constructor(...e){var t,i;super(...e),Y(this,"state",{imageHeightModifier:null===(t=this.props.relatedPinsResource.auxData)||void 0===t||null===(i=t.grid_layout)||void 0===i?void 0:i.w_h_ratio}),Y(this,"scrollContainerRef",(0,n.createRef)()),Y(this,"renderItem",(({data:e,itemIdx:t})=>{var i,n,o,a,r,s;const{lfvExperiences:l}=this.props,{imageHeightModifier:c}=this.state;let d;switch(e.type){case"story":switch(Z.Z.increment("web_story_card_type",1,{story_type:e.story_type||"unknown",surface:"closeup"}),e.story_type){case"BUBBLE_ONE_COL":d=(0,u.jsx)(N.Z,{bubbles:e.objects,id:e.id,referringSource:e.referring_source,slotIndex:t,storyType:e.story_type,title:e.title,viewType:3,viewParameter:(0,V.Z)({hasPin:!!this.props.pin,hasPinRichMetadata:!!this.props.pin.rich_metadata,hasPinRichMetadataProducts:!(null===(i=this.props.pin.rich_metadata)||void 0===i||!i.products),hasPinRichMetadataArticle:!(null===(n=this.props.pin.rich_metadata)||void 0===n||!n.article),hasPinRichMetadataRecipe:!(null===(o=this.props.pin.rich_metadata)||void 0===o||!o.recipe),hasPinStoryPinData:!!this.props.pin.story_pin_data})});break;default:d=null}e.container_type&&q.K.includes(e.container_type)&&(d=(0,u.jsx)(q.Z,{data:e}));break;case"pin":default:const h=(0,M.Z)(l),_="RelatedPinGrid";d=(0,u.jsx)(U.default,{imageOnlyOption:h?"image-only":"default",pin:e,pinId:e.id,pinImageCrop:c?(p=c,{height:$.zX*p,width:$.zX}):null,authDesktopSurface:_,componentType:13007,slotIndex:t,viewData:{pin_id:this.props.pin.id},viewParameter:(0,V.Z)({hasPin:!!this.props.pin,hasPinRichMetadata:!!this.props.pin.rich_metadata,hasPinRichMetadataProducts:!(null===(a=this.props.pin.rich_metadata)||void 0===a||!a.products),hasPinRichMetadataArticle:!(null===(r=this.props.pin.rich_metadata)||void 0===r||!r.article),hasPinRichMetadataRecipe:!(null===(s=this.props.pin.rich_metadata)||void 0===s||!s.recipe),hasPinStoryPinData:!!this.props.pin.story_pin_data}),viewType:3})}var p;return(0,u.jsx)(B.Z,{children:d})}))}componentDidMount(){var e,t,i;this.props.logContextEvent({event_type:13,view_parameter:(0,V.Z)({hasPin:!!this.props.pin,hasPinRichMetadata:!!this.props.pin.rich_metadata,hasPinRichMetadataProducts:!(null===(e=this.props.pin.rich_metadata)||void 0===e||!e.products),hasPinRichMetadataArticle:!(null===(t=this.props.pin.rich_metadata)||void 0===t||!t.article),hasPinRichMetadataRecipe:!(null===(i=this.props.pin.rich_metadata)||void 0===i||!i.recipe),hasPinStoryPinData:!!this.props.pin.story_pin_data}),view_type:3,component:86})}componentDidUpdate(e){var t,i,n,o;const{relatedPinsResource:a}=this.props;this.state.imageHeightModifier||null!==(t=e.relatedPinsResource.auxData)&&void 0!==t&&null!==(i=t.grid_layout)&&void 0!==i&&i.w_h_ratio||null===(n=a.auxData)||void 0===n||null===(o=n.grid_layout)||void 0===o||!o.w_h_ratio||this.setState({imageHeightModifier:a.auxData.grid_layout.w_h_ratio}),this.scrollContainerRef.current=window}render(){var e,t,i;const{pin:n,relatedPinsResource:o,relatedPinsStartIndex:a=0}=this.props,{data:r,fetchMore:s,isAtEnd:l,isFetching:c,isLoaded:p}=o;if(!p)return null;const h=`relatedPins:${n.id}`,_=["related_products_button_footer","related_domain_carousel","related_products_feed_header"],m=(r||[]).slice(a).filter((e=>!_.includes(null==e?void 0:e.story_type)));return(0,u.jsxs)(d.xu,{children:[m&&this.props.hasSimplifiedPinGridExpLoaded&&(0,u.jsx)(G.Z,{viewParameter:(0,V.Z)({hasPin:!!this.props.pin,hasPinRichMetadata:!!this.props.pin.rich_metadata,hasPinRichMetadataProducts:!(null===(e=this.props.pin.rich_metadata)||void 0===e||!e.products),hasPinRichMetadataArticle:!(null===(t=this.props.pin.rich_metadata)||void 0===t||!t.article),hasPinRichMetadataRecipe:!(null===(i=this.props.pin.rich_metadata)||void 0===i||!i.recipe),hasPinStoryPinData:!!this.props.pin.story_pin_data}),component:86,children:(0,u.jsx)(F.default,{columnWidth:W.yF,renderItem:this.renderItem,items:m,loadItems:s,cacheKey:h,isAtEnd:l,isFetching:c,paddingStyle:"simplified",scrollContainerRef:this.scrollContainerRef,serverRender:!0})}),(0,u.jsx)(d.kC,{alignItems:"stretch",justifyContent:"center",width:"100%",children:(0,u.jsx)(d.$j,{accessibilityLabel:this.props.i18n._('Loading related products results', 'closeup.relatedProducts.results', 'Accessibility label for loading related products results'),show:c})})]})}}function J(e){const t=(0,m.ZP)(),i=(0,H.Z)(),{hasSimplifiedPinGridExpLoaded:n}=(0,K.$)();return(0,u.jsx)(X,{...e,hasSimplifiedPinGridExpLoaded:n,i18n:t,logContextEvent:i})}var Q=i(786871);const ee=new Set(["related_modules_header","related_products_feed_header"]),te=new Set([...ee,"related_domain_carousel","related_products_collage","SKIN_TONE_FILTER_QUERIES"]);function ie({pin:e,searchQuery:t,relatedResourceOptions:i,setRelatedPinsHeaderRef:n,trafficSource:o,viewParameter:a,viewportSize:r,clientTrackingParams:s}){const l=(0,g.Z)({name:i.name,options:i.options}),c=(0,Q.Z)();return(0,u.jsxs)(d.xu,{"data-test-id":"relatedPins",display:"flex",direction:"column",flex:"grow",position:"relative",children:[(l.data||[]).filter((e=>te.has(e.story_type))).map(((i,l)=>(0,u.jsx)(d.xu,{display:"flex",direction:"column",children:(0,u.jsx)(L,{clientTrackingParams:s,pin:e,searchQuery:t,setRelatedPinsHeaderRef:n,slotIndex:l,story:i,trafficSource:o,viewParameter:a,viewportSize:r})},`related-module-${i.id}`))),(0,u.jsx)(d.xu,{children:(0,u.jsx)(J,{lfvExperiences:c,pin:e,relatedPinsResource:l})})]})}var ne=i(319247),oe=i(319915),ae=i(673270),re=i(147128),se=i(502517),le=i(296982),ce=i(534991),de=i(834911),ue=i(737022),pe=i(768559),he=i(167137),_e=i(165733),me=i(743217),ge=i(627387);var xe=i(13713),fe=i(802933),ye=i(206663),ve=i(825490),be=i(685365),Pe=i(251819),we=i(926275),Se=i(411938),Ae=i(343591),ke=i(4294),Ee=i(755742);class Te extends n.PureComponent{constructor(...e){var t,i,n;super(...e),n=e=>{const{onClose:t,goToNext:i,goToPrevious:n}=this.props,o=e.keyCode||e.code;if(e.ctrlKey||e.metaKey)return;const a=((document.activeElement||{}).tagName||"").toLowerCase();["input","select","button","textarea"].includes(a)||document.activeElement&&document.activeElement.isContentEditable||(o===Ee.Z.LEFT?(e.preventDefault(),e.stopPropagation(),n&&n(),Z.Z.increment("web_keydown_left")):o===Ee.Z.RIGHT?(e.preventDefault(),e.stopPropagation(),i&&i(),Z.Z.increment("web_keydown_right")):o===Ee.Z.ESCAPE&&(e.preventDefault(),e.stopPropagation(),t()))},(i="handleKeyDown")in(t=this)?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}render(){return null}}const Ce=Te;var Ie=i(957161),je=i(507712),Re=i(712331),De=i(970576),ze=i(820621),Oe=i(412067),Le=i(819303),Ne=i(947599),Be=i(700380),Me=i(840003),Ze=i(717615),Fe=i(19121),Ue=i(128503),Ve=i(326884),Ge=i(537313),He=i(977558),We=i(696157),$e=i(801827),Ke=i(205992),qe=i(313951),Ye=i(773285),Xe=i(807532),Je=i(966676),Qe=i(21353),et=i(52022),tt=i(31062),it=i(231947),nt=i(623568),ot=i(994608),at=i(276602),rt=i(780280),st=i(35495),lt=i(343341),ct=i(296005),dt=i(92261),ut=i(18857),pt=i(749147);function ht(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const _t=(0,n.lazy)((()=>i.e(58789).then(i.bind(i,70943)))),mt=(0,n.lazy)((()=>i.e(95246).then(i.bind(i,245323)))),gt=(0,n.lazy)((()=>i.e(75754).then(i.bind(i,849086)))),xt={display:"block",position:"relative",cursor:"auto"},ft={boxShadow:"0 1px 20px 0 rgba(0, 0, 0, 0.1)",borderRadius:32};function yt({conversation_id:e,senderId:t,pinId:i}){Oe.Z.create("ApiResource",{url:`/v3/conversations/${e}/message/mark_seen/`,data:{sender:t,pin:i}}).callCreate()}function vt(e){return e?228:4}function bt(e,t){return e?35:t?11157:361}class Pt extends n.Component{constructor(...e){super(...e),ht(this,"state",(0,_e.Z)(this.props)),ht(this,"removedPwtThumbnailsConstraint",!1),ht(this,"setCloseupBodyContainerRef",(e=>{this.closeupBodyContainerRef=e})),ht(this,"setResultScrollContainerRef",(e=>{this.resultScrollContainer||(this.resultScrollContainer=e,this.forceUpdate())})),ht(this,"setRelatedPinsHeaderRef",(e=>{this.relatedPinsHeaderRef=e})),ht(this,"mounted",!1),ht(this,"handleCloseupBodyUpdate",(()=>{this.updateViewportSize()})),ht(this,"updateViewportSize",(0,Be.Z)((()=>{const{viewportSize:e}=this.state;if(this.mounted){const t=1056;let i="lg";window&&window.innerWidth=1340,viewportSize:i})}}),50)),ht(this,"clickThroughTimer",(()=>{const{setPlacementExtraContext:e}=this.props;clearInterval(this.state.intervalId),e&&e({didLongClickThrough:!0})})),ht(this,"executeClickthrough",(e=>{var t,i,n,o,a,r,s,l;const{pinId:c,setPlacementExtraContext:d,viewer:u,trafficSource:p,logContextEvent:h,variantData:_}=this.props,{pin:m,didPinClickThrough:g,didShortClickThrough:x}=this.state,f=!!m.story_pin_data,{wasImageClicked:y,auxData:v,componentType:b=vt(f),elementType:P=bt(!!y,f),viewType:w=3}=e||{},S=(0,V.Z)({hasPin:!!this.props.pin,hasPinRichMetadata:!(null===(t=this.props.pin)||void 0===t||!t.rich_metadata),hasPinRichMetadataProducts:!(null===(i=this.props.pin)||void 0===i||null===(n=i.rich_metadata)||void 0===n||!n.products),hasPinRichMetadataArticle:!(null===(o=this.props.pin)||void 0===o||null===(a=o.rich_metadata)||void 0===a||!a.article),hasPinRichMetadataRecipe:!(null===(r=this.props.pin)||void 0===r||null===(s=r.rich_metadata)||void 0===s||!s.recipe),hasPinStoryPinData:!(null===(l=this.props.pin)||void 0===l||!l.story_pin_data)}),A={...(0,st.Kl)(m,{})||{},...v||{}};if(_&&(A.product_variant_selection_made=_.isSelectedByUser),u&&u.isAuth&&!g&&d&&(d({didPinClickThrough:!0}),this.setState({didPinClickThrough:!0})),f){const{link:e}=(0,Ge.nA)(this.props);h({event_type:102,view_type:132,view_parameter:3549,element:12971,aux_data:{pin_id:m.id,url:e}})}if(h({event_type:101,object_id_str:c,component:b,element:P,aux_data:{...(0,st.Kl)(m,{})||{},...v||{}}}),h({event_type:12,object_id_str:c,view_type:w,view_parameter:S,component:b,element:P,aux_data:A}),h({event_type:8948,view_type:w,view_parameter:S,component:b,element:P,object_id_str:c,aux_data:{click_type:"clickthrough",closeup_navigation_type:p&&(0,nt.sV)(p)?"deeplink":"click",...(0,st.Kl)(m)||{},...v||{}}}),y){const e=setInterval(this.clickThroughTimer,12e4);this.setState({intervalId:e})}this.clickThroughStartTime=Date.now(),x&&this.setState({didShortClickThrough:!1})})),ht(this,"handleFocus",(()=>{const{setPlacementExtraContext:e}=this.props;clearInterval(this.state.intervalId),e&&e({didLongClickThrough:!1})})),ht(this,"handleWindowFocus",(()=>{if(this.clickThroughStartTime>0){const e=Date.now()-this.clickThroughStartTime<5e3;this.setState({didShortClickThrough:e}),this.clickThroughStartTime=0}})),ht(this,"handleClickLogging",(()=>{this.props.logContextEvent({event_type:101,object_id_str:this.state.pin.id,component:4,element:0,aux_data:{...(0,st.Kl)(this.state.pin)||{}}})})),ht(this,"handleBackButtonClick",(()=>{const{deepLinkBackGoesToBoard:e,goBack:t,routePush:i,trafficSource:n,viewer:o,requestContext:a,pin:r,logContextEvent:s}=this.props;(0,xe.Z)({deepLinkBackGoesToBoard:e,goBack:t,routePush:i,trafficSource:n,viewer:o,requestContext:a,pin:r},s)})),ht(this,"handleCarouselSwipe",(e=>{const{visualState:t,firstLoadComplete:i}=this.state;i&&this.setState({visualState:{...t,carouselData:{...t.carouselData,index:e}}})})),ht(this,"dispatch",((e,t)=>this.setState((t=>(0,ne.Z)(t,e)),t))),ht(this,"handleScroll",(0,Be.Z)((()=>{const{isOverRelatedPins:e}=this.state;if(this.relatedPinsHeaderRef){const t=He.hu,i=this.relatedPinsHeaderRef.getBoundingClientRect().top<=t;i&&!e?this.setState({isOverRelatedPins:!0}):!i&&e&&this.setState({isOverRelatedPins:!1})}}),10)),ht(this,"onToggleIdeaPinCloseupPanel",(e=>{this.setState({isCloseupMaximized:!e}),this.closeupBodyContainerRef&&(this.closeupBodyContainerRef.ariaHidden=!e)})),ht(this,"onWrapperClick",(e=>{e.stopPropagation(),this.handleBackButtonClick()})),ht(this,"onRelatedInterestsBannerDismiss",(()=>{this.setState({isRelatedInterestsBannerDismissed:!0})})),ht(this,"handleIdeaCloseupCommentIconClick",(e=>{this.setState({isCommentSectionOpen:e})}))}componentDidMount(){var e,t,i;const{conversation_id:n,conversationOpen:o,dispatch:a,experimentsClient:r,pin:s,pinId:l,senderId:c,setPlacementExtraContext:d,shouldShowInbox:p,toastManager:h,openInbox:_,trackInteraction:m}=this.props;this.mounted=!0,(0,Ae.Z)(s)&&setTimeout((()=>{this.setState({showRelatedContent:!0})}),1e3),n&&c&&l&&yt({conversation_id:n,senderId:c,pinId:l});n&&(o(n),p&&_()),s.image_signature&&this.props.setMostRecentPinImage(s.image_signature),l&&this.props.setMostRecentPinId(l),d&&d({is_own_or_group_pin:this.isOwnOrGroupPin});const g=Ie.Z.getItem("unauthDesktopSavePinId")||"";g&&g===l&&(Ie.Z.removeItem("unauthDesktopSavePinId"),m({action:"trigger",item:"unauth-save-button-quicksave"}),(0,ze.Z)(s,this.props.i18n).then((e=>{const{id:t,url:i,name:n}=e;a((0,Ke.hT)(!0)),a((0,pt.d)({boardId:t,url:i,title:n||"",pinId:l})),a((0,pt.X)(s)),h.showToast((({hideToast:t})=>(0,u.jsx)(De.Z,{boardName:e.name,boardUrl:e.url,onHide:t,pinImageUrl:s.images["236x"].url})))}))),this.updateViewportSize(),window.addEventListener("resize",this.updateViewportSize),window.addEventListener("focus",this.handleWindowFocus),null!==(e=window)&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&null!==(i=t.search)&&void 0!==i&&i.includes("invite_code=")&&r.checkExperiment("web_log_invite_attribution_pin_closeup").anyEnabled&&(0,je.Z)()}componentDidUpdate(e){const{didRepin:t,isLandingPage:i,pin:n,pinId:o,conversation_id:a,senderId:r,pinResource:{data:s},pwtSurfaceContext:l,setPlacementExtraContext:c}=this.props,{visualState:{carouselData:d},firstLoadComplete:u}=this.state;this.visualDataDidUpdate(),u&&!this.removedPwtThumbnailsConstraint&&(null==l||l.removeConstraint("thumbnailsLoaded"),this.removedPwtThumbnailsConstraint=!0),s&&!u&&(s.carousel_data&&(s.carousel_data.index=(null==d?void 0:d.index)||0),this.dispatch({type:"pinLoaded",pin:s})),a&&r&&o&&e.pinId!==o&&yt({conversation_id:a,senderId:r,pinId:o});const p={};(Ie.Z.getItem(We.W3)||"").includes(`/pin/${o}`)&&i&&(p.loginPageType="pin"),t&&(p.didRepin=!0),n.image_signature&&(p.pin_image_signature=n.image_signature),p.is_own_or_group_pin=this.isOwnOrGroupPin;const{didRepin:h,isLandingPage:_,pinId:m}=e,g=h!==t||i!==_||m!==o;!(0,Pe.Z)(p)&&g&&c&&c({...p})}componentWillUnmount(){window.removeEventListener("resize",this.updateViewportSize),window.removeEventListener("focus",this.handleWindowFocus),this.mounted=!1}get isOwnOrGroupPin(){var e;const{pin:t,viewer:i}=this.props,n=(t||{}).board||{},o=n.is_collaborative&&(0,ke.Z)({board:n,viewer:i});return Boolean(i.isAuth&&(null===(e=t.pinner)||void 0===e?void 0:e.id)===i.id||o)}visualDataDidUpdate(){var e,t,i;const{variantData:n,pin:o}=this.props,{visualState:{carouselData:a,mainImage:r},firstLoadComplete:s}=this.state;if(!s)return;const l=(0,de.Z)({carouselData:o.carousel_data,images:o.images,richMetadata:o.rich_metadata,richSummary:o.rich_summary,additionalImages:null==n?void 0:n.images}),c=(0,me.Z)(o),d=((null==l?void 0:l.carousel_slots)||[])[0]||{},u=(0,ue.Z)(d.images),p=null!=n&&n.images?0:(null==a?void 0:a.index)||0;let h;h=l&&((null===(e=l.carousel_slots)||void 0===e?void 0:e.length)||0)>1?{mainImage:c,carouselData:{...l,index:p},previewImage:(0,ge.Z)(o)}:null!=u&&u.url?{mainImage:{url:u.url,height:u.height||1,width:u.width||1}}:{mainImage:c,previewImage:(0,ge.Z)(o)},(null==a?void 0:a.id)===(null===(t=h.carouselData)||void 0===t?void 0:t.id)&&JSON.stringify(null==a?void 0:a.carousel_slots)===JSON.stringify(null===(i=h.carouselData)||void 0===i?void 0:i.carousel_slots)&&r.url===h.mainImage.url||this.setState({visualState:h})}renderBodyContent({ideaPinStelaCategories:e,isEligibleForStlFlyout:t,inStlPinnerExp:i,relatedResourceOptions:o,taggedProducts:a,storyPinTaggedProducts:s,maxWidth:l}){var c,p,h,_,m;const{experimentsClient:{checkExperiment:g},isLimitedLogin:x,pin:f,pinResource:y,requestContext:v,routePush:b,searchQuery:P,showRepinOnInitialRender:w,trafficSource:S,viewer:A,orbacActingAs:k,userBusinessRoleResource:E,isORBACGA:T,trendsData:C}=this.props,{id:I,sponsorship:j,story_pin_data_id:R,story_pin_data:D}=f,z=!!R,O=!(null==D||!D.is_deleted),{creator:L,sponsor:N,status:B}=j||{},{username:M}=L||{},{username:Z}=N||{},{refresh:F}=y,U=T?(0,it.lJ)(A,k):void 0,{data:V}=E||{},G=!f.is_repin&&Z,H=Z===A.username?[Ve.V3.OWNER]:null==V?void 0:V.permissions,W=Z===A.username||!(null==H||!H.find((e=>Re.Z.includes(e)))),$=Z===A.username||!(null==H||!H.find((e=>Re.Z.includes(e)))),{didShortClickThrough:K,isCloseupMaximized:q,shopping:Y,viewportSize:X,isCommentSectionOpen:J}=this.state,{isWideVideo:Q}=(0,ve.Z)((0,fe.Z)({pin:f}))||{},ee=(0,ut.rh)(f,A,this.props.experimentsClient,U),te=(0,ot.CA)(null==C?void 0:C.data,this.props.experimentsClient),ie=G&&A.isAuth&&g("mweb_web_android_ios_backend_clbc_display_controls").anyEnabled&&(W&&0===B||$&&1===B),ne=(null==f||null===(c=f.link_domain)||void 0===c||null===(p=c.official_user)||void 0===p?void 0:p.username)||(null==f||null===(h=f.native_creator)||void 0===h?void 0:h.username),ae=(0,it.Ms)(A,k)===ne&&(0,it.nl)(A,k)&&v.experimentsClient.checkExperiment("web_stl_tooling").anyEnabled,re=l,se=(f.aggregated_pin_data||{}).has_xy_tags,le=z&&(null==D||null===(_=D.pages)||void 0===_?void 0:_.length)>0,ce=(0,u.jsx)(oe.Z,{name:"CloseupBody",children:(0,u.jsxs)(d.xu,{direction:"column",display:"flex",ref:this.setCloseupBodyContainerRef,width:"100%",children:[(0,u.jsxs)(d.xu,{alignItems:Q?"center":void 0,direction:Q?"column":void 0,display:Q?"flex":void 0,children:[ie&&(0,u.jsx)(d.xu,{"data-test-id":"sponsorship-approval-module",display:"flex",children:(0,u.jsx)(oe.Z,{name:"SafeSuspense_Closeup_SponsorshipApprovalModule",children:(0,u.jsx)(Ne.Z,{children:(0,u.jsx)(gt,{business_role:H,creatorUsername:M,sponsorshipStatus:B,pinId:I})})})}),(0,ut.WE)(A,X,ee,te,C,ie)&&(0,u.jsx)(d.xu,{"data-test-id":"PartnerModule",width:"lg"===X&&Q?re:"100%",children:(0,u.jsx)(oe.Z,{name:"SafeSuspense_Closeup_PartnerModule",children:(0,u.jsx)(Ne.Z,{children:(0,u.jsx)(mt,{borderStyle:ft,isStoryPin:z,pin:f,viewportSize:X,trendsData:te?null==C||null===(m=C.data)||void 0===m?void 0:m.results:null,showPinStats:ee})})})})]}),(0,u.jsx)(d.xu,{flex:"grow",children:(0,u.jsx)(r.Z,{isCommentSectionOpen:J,ideaPinStelaCategories:e,handleCarouselSwipe:this.handleCarouselSwipe,inStlPinnerExp:i,isCloseupMaximized:q,onCloseupBodyUpdate:this.handleCloseupBodyUpdate,onCommentSectionClick:this.handleIdeaCloseupCommentIconClick,shopping:Y,shouldShowStlCarouselForOwnPin:ae,storyPinTaggedProducts:s,taggedProducts:a,data:y.data,didShortClickThrough:K,goBack:this.handleBackButtonClick,hasXYcoordinates:se,isEligibleForStlFlyout:t,isStoryPin:z,isDeletedStoryPin:!!O,isWideVideo:Q,onClickThrough:this.executeClickthrough,onSaveButtonClick:this.handleClickLogging,onUpdate:F,outerBodyStyle:z?null:ft,pin:f,relatedResourceOptions:o,routePush:b,searchQuery:P,showRepinOnInitialRender:!x&&w,trafficSource:S,viewParameterType:le?157:void 0,viewType:le?3:void 0})})]})});return(0,u.jsx)(d.xu,{dangerouslySetInlineStyle:{__style:z?{...xt,width:"100%"}:{}},id:"gradient","data-test-id":"gradient",display:"flex",justifyContent:"center",marginBottom:4,children:(0,u.jsxs)(n.Fragment,{children:[le&&(0,u.jsx)(be.Z,{appConfig:{type:"authDesktop",onClickThrough:this.executeClickthrough,onNavigateBack:this.handleBackButtonClick},pin:f,storyPinData:D,goBack:this.handleBackButtonClick,onUpdate:F,onIdeaPinCloseupCommentClick:()=>{this.handleIdeaCloseupCommentIconClick(!0)},variant:"closeup",onTogglePanel:this.onToggleIdeaPinCloseupPanel,viewType:3,viewParameterType:157}),(0,u.jsx)(Le.Z,{isStoryPin:z,isWideVideo:Q,children:ce})]})})}render(){var e,t,i,n,o,a,r;const{contextPinIds:l,ideaPinStelaCategories:c,pin:d,requestContext:p,taggedObjectsResource:h,topLevelTrafficSource:_,topLevelTrafficSourceDepth:m,trafficSource:g,searchQuery:x,storyPinTaggedProductsResource:f,pinResource:y,isORBACGA:v,viewer:b,orbacActingAs:P,location:w}=this.props,{viewportSize:S,didShortClickThrough:A,firstLoadComplete:k,showRelatedContent:E}=this.state,{isWideVideo:T}=(0,ve.Z)((0,fe.Z)({pin:d}))||{},C=(({isWideVideo:e,viewportSize:t})=>!["md","sm"].includes(t)&&!e)({isWideVideo:T,viewportSize:S}),I={name:"RelatedModulesResource",options:{pin_id:d.id,context_pin_ids:l,homefeed_source_sig:d.recommendation_reason&&["NAVBOOST_P2P","NAVBOOST_PFY","INSTANT_PFY_NON_MATERIALIZABLE","P2P","P2P_CLICKTHROUGH","FRESH_TEXT_EMBEDDINGS","INTENTIONAL_DISTRIBUTION_GEMINI_V5"].includes(d.recommendation_reason.reason)&&d.recommendation_reason.reason_id,page_size:12,search_query:x,source:g,top_level_source:_,top_level_source_depth:m,is_pdp:!1}},j=(0,V.Z)({hasPin:!!d,hasPinRichMetadata:!(null==d||!d.rich_metadata),hasPinRichMetadataProducts:!(null==d||null===(e=d.rich_metadata)||void 0===e||!e.products),hasPinRichMetadataArticle:!(null==d||null===(t=d.rich_metadata)||void 0===t||!t.article),hasPinRichMetadataRecipe:!(null==d||null===(i=d.rich_metadata)||void 0===i||!i.recipe),hasPinStoryPinData:!(null==d||!d.story_pin_data)}),R=(0,it.q6)(b,null===(n=d.pinner)||void 0===n?void 0:n.id,P),D=(null==d?void 0:d.id)&&(!v||!R)&&(0,u.jsx)(ie,{clientTrackingParams:null!==(o=(0,pe.Z)({boardUrl:null==d||null===(a=d.board)||void 0===a?void 0:a.url,callToCreateSourcePinId:null==d?void 0:d.call_to_create_source_pin_id,location:w,pinId:d.id,pinnerUserName:null==d||null===(r=d.pinner)||void 0===r?void 0:r.username,storyPinDataId:null==d?void 0:d.story_pin_data_id,trackingParams:null==d?void 0:d.tracking_params,trackingParamsMap:null==d?void 0:d.tracking_params_map}))&&void 0!==o?o:"",contextPinIds:l,pin:d,searchQuery:x,trafficSource:g,relatedResourceOptions:I,setRelatedPinsHeaderRef:this.setRelatedPinsHeaderRef,viewParameter:j,viewportSize:S}),z=p.experimentsClient.checkExperiment("web_stl_pinner").anyEnabled,{data:O}=h||{},L=!!O&&O.length>0&&O.some((e=>(0,ye.Z)(e))),N=z&&L&&!(0,st.Gy)(d),{data:B}=f||{},M=dt.Gg,Z=dt.u6,F=(0,u.jsx)(s.Z,{inStlPinnerExp:z,taggedProducts:O,pin:d,pinResource:y,topLevelTrafficSource:_,didShortClickThrough:A,firstLoadComplete:k,viewportSize:S,showRelatedContent:E,renderRelatedModulesContent:()=>D,renderBodyContent:()=>this.renderBodyContent({ideaPinStelaCategories:c,isEligibleForStlFlyout:N,inStlPinnerExp:z,taggedProducts:O,relatedResourceOptions:I,storyPinTaggedProducts:B,maxWidth:Z}),onWrapperClick:this.onWrapperClick});return(0,u.jsx)(wt,{classProps:this.props,classState:this.state,showCloseupContentRight:C,showProductDetailPage:!1,isWideCarousel:!1,paneWidth:M,maxWidth:Z,descriptionPaneWidth:Z-M,handleCarouselSwipe:this.handleCarouselSwipe,handleFocus:this.handleFocus,setResultScrollContainerRef:this.setResultScrollContainerRef,handleScroll:this.handleScroll,handleBackButtonClick:this.handleBackButtonClick,closeupContent:F,onRelatedInterestsBannerDismiss:this.onRelatedInterestsBannerDismiss})}}function wt({classProps:e,classState:t,commerceData:i,showCloseupContentRight:n,showProductDetailPage:o,isWideCarousel:r,paneWidth:s,maxWidth:l,descriptionPaneWidth:c,handleCarouselSwipe:d,handleFocus:p,setResultScrollContainerRef:h,handleScroll:_,handleBackButtonClick:m,closeupContent:g,onRelatedInterestsBannerDismiss:x}){var f,y,v;const{pin:b,pinId:P,trafficSource:w,deepLinkBackGoesToBoard:S,isLandingPage:A}=e,k=(0,Me.Z)(b.is_eligible_for_pdp_plus),E=b.is_eligible_for_pdp||k,{backButtonLabelFitInScreen:T,visualState:{carouselData:I,mainImage:j,previewImage:R},hideBackButton:D,isOverRelatedPins:z,isRelatedInterestsBannerDismissed:O,viewportSize:L}=t,N=!!b.story_pin_data,B=(0,Fe.Z)();return(0,u.jsx)(Je.ZP.Provider,{value:(0,Je.Nb)({showCloseupContentRight:n,showProductDetailPage:o,pdpCarouselSlotToPaneRatio:(0,Je.YO)({showProductDetailPage:o,isLargerPane:r,showCloseupContentRight:n}),viewportSize:L,paneWidth:s,maxWidth:l,descriptionPaneWidth:c}),children:(0,u.jsxs)($e.A,{pin:b,overrideValue:{mainImage:j,previewImage:R,carouselInfo:I&&{carouselData:I,handleCarouselSwipe:d,viewType:3,componentType:E?14186:85,viewParameter:()=>{var e,t,i;return(0,V.Z)({hasPin:!!b,hasPinRichMetadata:!(null==b||!b.rich_metadata),hasPinRichMetadataProducts:!(null==b||null===(e=b.rich_metadata)||void 0===e||!e.products),hasPinRichMetadataArticle:!(null==b||null===(t=b.rich_metadata)||void 0===t||!t.article),hasPinRichMetadataRecipe:!(null==b||null===(i=b.rich_metadata)||void 0===i||!i.recipe),hasPinStoryPinData:!(null==b||!b.story_pin_data)})}}},children:[(0,u.jsx)(le.Z,{placementId:12}),(0,u.jsx)(re.Z,{placementId:12}),(0,u.jsx)(ae.Z,{placementId:12}),(0,u.jsx)(G.Z,{auxData:i,view:3,viewParameter:(0,fe.Z)(e)?(0,V.Z)({hasPin:!!b,hasPinRichMetadata:!(null==b||!b.rich_metadata),hasPinRichMetadataProducts:!(null==b||null===(f=b.rich_metadata)||void 0===f||!f.products),hasPinRichMetadataArticle:!(null==b||null===(y=b.rich_metadata)||void 0===y||!y.article),hasPinRichMetadataRecipe:!(null==b||null===(v=b.rich_metadata)||void 0===v||!v.recipe),hasPinStoryPinData:!(null==b||!b.story_pin_data)}):void 0,objectId:P,children:(0,u.jsxs)("div",{className:"reactCloseupScrollContainer",onFocus:p,ref:h,children:[(0,u.jsx)(oe.Z,{name:"SafeSuspense_Closeup_ExperienceHero",children:(0,u.jsx)(Ne.Z,{children:(0,u.jsx)(_t,{placementId:12})})}),(0,u.jsx)(se.default,{placementId:12}),!D&&!N&&(0,u.jsx)(a.Z,{deepLinkBackGoesToBoard:S,handleScroll:_,isNewOrRes:(0,we.Z)(B.createdAt)||(0,Se.Z)(null,B),onClick:()=>{m()},showLabel:!(!T||z),showShadow:z,trafficSource:w}),(0,u.jsx)(Ce,{onClose:m}),g,(0,u.jsx)(ce.Z,{placementId:12}),A&&z&&!O?(0,u.jsx)(C,{pinId:P,onDismiss:x}):null]})})]})})}const St=(0,Ue.Z)((function(e){var t,i;const{logContextEvent:a}=(0,v.v)(),{pin:r,viewer:s,pinResource:l,pinId:c,showQuickPromote:d}=e,p=(0,m.ZP)(),h=(0,Ye.F)(),{checkExperiment:_}=h,x=(0,et.Z)(),{setMostRecentPinId:f,setMostRecentPinImage:y}=(0,Xe.f)(),b=(0,nt.hb)({isStoryPin:(0,nt.hy)(r),isVideoPin:(0,nt.iR)(r.videos)}),w="pin_closeup_lcp",S=(0,tt.PY)(w),{conversationOpen:A}=(0,qe.Z5)(),{anyEnabled:k}=_("web_m10n_business_access_orbac_www"),{anyEnabled:E}=_("web_m10n_business_access_orbac_www"),T=(0,Ze.Z)(),C=(0,Qe.Z)(),I=(0,o.useDispatch)(),j=(0,at.EV)(),R=(0,rt.B)(),D=(0,P.useLocation)(),z=(0,lt.F9)(),O=(0,ct._T)(),[L,N]=(0,n.useState)(!1),B=`${C("quick_promote_on_www")}?pinId=${c}`;(0,n.useEffect)((()=>{l.data&&!L&&d&&N(!0)}),[l.data,L,d]);const M=E?(0,it.lJ)(s,T):void 0;(0,n.useEffect)((()=>{S&&(0,tt.ku)({stopwatchName:w,binaryAnnotationName:"pinType",value:b,annotationType:"STRING"})}),[S,b]);const Z=null==r||null===(t=r.sponsorship)||void 0===t||null===(i=t.sponsor)||void 0===i?void 0:i.id,F=!r.is_repin&&!!Z,U=(0,g.Z)(Z&&F&&s.isAuth&&"storyPin"===b?{name:"ApiResource",options:{url:`/ads/v4/business_access/businesses/${Z}/me/ad_accounts_permissions/`}}:null),V=(0,ot.Gv)(s,r,M)&&s.id,{data:G,isLoaded:H}=(0,g.Z)(V?{name:"ApiResource",options:{url:`/v3/trends/partner/${s.id||""}/trends_for_pin/${r.id}/`,data:{number_terms_to_return:10}}}:null);return L?(0,u.jsx)(P.Redirect,{to:B}):(0,u.jsx)(Pt,{...e,conversationOpen:A,dispatch:I,experimentsClient:h,getSterlingURL:C,pwtSurfaceContext:j,requestContext:R,location:D,setMostRecentPinId:f,setMostRecentPinImage:y,toastManager:z,i18n:p,variantData:O,orbacActingAs:k?T:{},logContextEvent:a,userBusinessRoleResource:U,isORBACGA:E,trackInteraction:x,trendsData:{data:G,isLoaded:!V||H}})}));function At(e){const t=(0,g.Z)({name:"ApiResource",options:{url:`/v3/visual_links/pins/${e.pin.id}/tagged_objects/`,data:{fields:["aggregatedpindata.aggregated_stats","aggregatedpindata.creator_analytics","aggregatedpindata.id","aggregatedpindata.is_shop_the_look","aggregatedpindata.pin_tags","board.collaborated_by_me","board.followed_by_me","board.id","board.image_thumbnail_url","board.is_collaborative","board.layout","board.name","board.owner()","board.privacy","board.type","board.url","buyableproductmetadata.display_active_max_price","buyableproductmetadata.display_active_min_price","buyableproductmetadata.short_description","buyableproductmetadata.title","comment.commenter()","comment.created_at","comment.deletable_by_me","comment.id","comment.text","comment.type","pin.access","pin.ad_destination_url","pin.ad_match_reason","pin.additional_hide_reasons","pin.aggregated_pin_data()","pin.alt_text","pin.attribution","pin.board()","pin.carousel_data()","pin.comment_count","pin.comments(limit:5,resume:true)","pin.created_at","pin.creator_analytics","pin.debug_info_html","pin.description","pin.description_html","pin.domain","pin.dominant_color","pin.embed","pin.grid_description","pin.grid_title","pin.has_required_attribution_provider","pin.id","pin.image_crop","pin.image_signature","pin.images[170x,136x136,236x,474x,736x,orig]","pin.is_downstream_promotion","pin.is_eligible_for_web_closeup","pin.is_native","pin.is_playable","pin.is_promoted","pin.is_quick_promotable","pin.is_repin","pin.is_uploaded","pin.is_video","pin.is_whitelisted_for_tried_it","pin.link","pin.manual_interest_tags","pin.method","pin.native_creator()","pin.pinner()","pin.price_currency","pin.price_value","pin.privacy","pin.promoted_is_removable","pin.promoter()","pin.reaction_counts","pin.repin_count","pin.rich_summary()","pin.shopping_flags","pin.sponsorship","pin.story_pin_data()","pin.story_pin_data_id","pin.title","pin.tracking_params","pin.type","pin.videos()","pin.view_tags","pincarouselslot.details","pincarouselslot.id","pincarouselslot.images[60x60,136x136,170x,236x,474x,564x,736x,600x315,orig]","pincarouselslot.link","pincarouselslot.title","user.blocked_by_me","user.explicitly_followed_by_me","user.full_name","user.id","user.image_large_url","user.image_small_url","user.type","user.username","video.id","video.video_list[V_HLSV4,V_HLSV3_WEB,V_HLSV3_MOBILE,V_EXP3,V_EXP4,V_EXP5,V_EXP6,V_EXP7]","pintag.pins()","pintag.type","pintag.pin_tag_key","pintag.x_percent","pintag.y_percent","pin.rich_summary()","pin.grid_title","pin.image_square_url","pin.images[236x]","pin.id","pin.is_eligible_for_pdp","pin.link_domain()","domain.official_user()","user.is_verified_merchant","user.verified_identity","pin.promoted_lead_form"]}},noCache:!0});return(0,u.jsx)(St,{...e,taggedObjectsResource:t})}function kt(e){const t=(0,g.Z)({name:"StoryPinTaggedProductsResource",options:{noCache:!0,id:e.pin.id}});return(0,u.jsx)(St,{...e,storyPinTaggedProductsResource:t})}function Et(e){const{isLoaded:t,data:i}=(0,g.Z)({name:"ApiResource",options:{url:`/v3/storypins/${e.pin.id}/stela/tags/`,data:{fields:(0,he.Z)()}}});return t?(0,u.jsx)(St,{...e,ideaPinStelaCategories:i||[]}):null}},790904:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),o=i(941646),a=i(883119),r=i(785893);function s({accessibilityLabel:e,handleClick:t,icon:i,iconColor:s,iconOnly:l,testId:c,buttonText:d}){const[u,p]=(0,n.useState)(!1),h=(0,n.useRef)(),_=l?"md":"lg",m=s||"darkGray",g=()=>{p((e=>!e)),t()},x=e=>{var t;h&&e.target instanceof Element&&(null===(t=h.current)||void 0===t||!t.contains(e.target))&&p(!1)};return(0,n.useEffect)((()=>(window.addEventListener("mousedown",x),()=>{window.removeEventListener("mousedown",x)})),[]),(0,r.jsx)(o.Z,{id:c||"closeup-action-bar-button",children:(0,r.jsxs)(a.kC,{alignItems:"center",justifyContent:"start",children:[(0,r.jsx)(a.hU,{accessibilityLabel:e,iconColor:m,onClick:g,selected:u,icon:i,size:_,ref:h}),d&&(0,r.jsx)(a.iP,{onTap:g,rounding:2,children:(0,r.jsx)(a.X6,{color:"light",overflow:"normal",size:"400",children:d})})]})})}},385624:(e,t,i)=>{i.d(t,{R:()=>bi,Z:()=>Pi});var n=i(667294),o=i(702664),a=i(558329),r=i(499128),s=i(964569),l=i(898781),c=i(664569),d=i(407043),u=i(343341),p=i(162379),h=i(584595),_=i(785893);function m({orbacSubjectId:e,pin:t,setIsLoadingNewlyCreatedComment:i}){const o=(0,l.ZP)(),{logContextEvent:a}=(0,d.v)(),m=(0,s.Z)(),{showOneToast:g}=(0,u.F9)(),[x,f]=(0,n.useState)(!1),[y,v]=(0,n.useState)(p.A.NONE);return(0,_.jsx)(p.Z,{dismissCommentWarningModal:()=>v(p.A.NONE),objectType:c.o.pin,onAddItem:async function(n){var s;const{contentMarkdown:l,force:d,tags:u}=n;if(null===(null===(s=t.aggregated_pin_data)||void 0===s?void 0:s.id))return!1;i(!0);try{var x,y;if(null!==(x=t.aggregated_pin_data)&&void 0!==x&&x.id)await m({force:d,fromUnifiedComment:!0,objectType:c.o.pin,objectId:t.aggregated_pin_data.id,pinId:t.id,tags:u,text:l,orbacSubjectId:e}),a({event_type:7,object_id_str:t.id,aux_data:{num_user_mention_tags:(u?JSON.parse(u):[]).length,...t.story_pin_data_id?{creator_id:null===(y=t.closeup_attribution)||void 0===y?void 0:y.id,story_pin_data_id:t.story_pin_data_id}:{}}})}catch(b){return[h.ky,h.LJ].includes(b.api_error_code)?v(b.api_error_code===h.ky?p.A.WARNING:p.A.BLOCK):g((({hideToast:e})=>(0,_.jsx)(r.ZP,{onHide:e,variant:"error",text:b.message_detail||b.message||o._('There was an issue posting your comment.', 'comment.post.errorMessage', 'error message for posting comment in toast')}))),i(!1),!1}return f(!1),i(!1),!0},onCancelItem:()=>f(!1),onEnter:()=>f(!0),privatePin:"secret"===t.privacy,commentWarningModalState:y,statusType:x?"textInflightCreation":"textStaticDisplay"})}var g=i(564194),x=i(840003),f=i(35495),y=i(350118),v=i(827896);const b=({children:e,pinId:t,pinImageUrl:i,closeupNavigationType:n})=>{const o=(0,v.Z)(),a=(0,y.S6)()(t),r=(0,x.Z)(null==a?void 0:a.is_eligible_for_pdp_plus),s=null!=a&&a.is_eligible_for_pdp||r?(0,f.Kl)(a,{},r?"pdp_plus":"pdp"):{};return(0,_.jsx)(g.Z,{contextLogData:s,componentType:85,impressionAuxFields:{imageURL:i,clientTrackingParams:o(t,{shouldTrackForPrevLocation:!0})},closeupNavigationType:n,closeupImpressionType:13,impressionType:"Pin",loggingId:t,slotIndex:-1,viewData:{pin_id:t},viewType:3,children:e})};var P=i(699825),w=i(66699),S=i(349700),A=i(883119);function k({minutes:e}){const t=(0,l.ZP)(),i=e%60,n=Math.floor(e/60),o=i>0?(0,S.nk)(t._('{{ mins }}min', 'closeup.storyPin.basicsLayout.cookTimeUnit', 'Minutes label indicating the cooking time of this Story Pin'),{mins:i}).join(""):"",a=n>0?(0,S.nk)(t._('{{ hours }}hr', 'closeup.storyPin.basicsLayout.cookTimeUnit', 'Hours label indicating the cooking time of this Story Pin'),{hours:n}).join(""):"";return(0,_.jsx)(A.xu,{marginEnd:1,display:"inlineBlock",children:(0,_.jsx)(A.xv,{inline:!0,size:"200",children:(0,S.nk)(t._('{{ hoursText }} {{ minsText }}', 'closeup.storyPin.basicsLayout.cookTime', 'Combined label for story pin cooktime (ex: "1hr 13min")'),{hoursText:a,minsText:o})})})}function E({servingSize:e}){const t=(0,l.ZP)(),i=(0,w.Z)(t.ngettext('{{servingSize}} serving', '{{servingSize}} servings', e, 'number of servings for a recipe', 'number of servings for a recipe'),{servingSize:e});return(0,_.jsx)(A.xu,{marginEnd:1,display:"inlineBlock",children:(0,_.jsx)(A.xv,{inline:!0,size:"200",children:(0,S.nk)(t._('{{ servingText }}', 'closeup.storyPin.basicsLayout.servings', 'Combined label for story pin servings (ex: "Servings: 10 servings")'),{servingText:i})})})}function T({difficulty:e}){const t=(0,l.ZP)(),i={1:t._('Easy', 'closeup.storyPin.basicsLayout.difficulty', 'Easy difficulty level'),2:t._('Intermediate', 'closeup.storyPin.basicsLayout.difficulty', 'Intermediate difficulty level'),3:t._('Expert', 'closeup.storyPin.basicsLayout.difficulty', 'Expert difficulty level')},n=e?i[e]:null;if(!n)return null;const o=t._('Difficulty:', 'closeup.storyPin.basicsLayout.difficultyLevelLabel', 'Label indicating the difficulty level of this Story Pin');return(0,_.jsx)(A.xu,{marginEnd:1,display:"inlineBlock",children:(0,_.jsx)(A.xv,{inline:!0,size:"200",children:(0,S.nk)(t._('{{ label }} {{ difficultyLevel }}', 'closeup.storyPin.basicsLayout.difficulty', 'Combined label for story pin difficulty (ex: "Difficulty: Intermediate")'),{label:o,difficultyLevel:n})})})}function C({keyValueBlocks:e}){return(0,_.jsx)(A.xu,{"data-test-id":"categories-metadata",children:e.map(((t,i)=>{const o=`kv-${i}`,a=function({category_type:e,value:t}){if(2===e)return(0,_.jsx)(T,{difficulty:t});const i=parseInt(t,10);return 1===e?(0,_.jsx)(E,{servingSize:i}):0===e&&i?(0,_.jsx)(k,{minutes:i}):null}(t);return a?inull!=e))})}var I=i(105265),j=i(298361),R=i(986644);function D(e){const t=(0,l.ZP)(),i=(0,j.Z)(),{board:{name:n,url:o=""},savedToTime:a,user:r}=e,s=(0,S.nk)(t._('Saved to {{boardName}}', 'Text describing which board a pin was saved to', 'Text describing which board a pin was saved to'),{boardName:(0,_.jsx)(A.xv,{inline:!0,size:"200",lineClamp:1,weight:"bold",children:(0,_.jsx)(A.rU,{href:o,display:"inlineBlock",underline:"hover",children:n})},o)});return(0,_.jsxs)(A.kC,{alignItems:"center",justifyContent:"start",width:"100%",children:[(0,_.jsx)(I.Z,{user:r}),(0,_.jsxs)(A.xu,{marginStart:4,width:"100%",children:[(0,_.jsx)(A.xv,{size:"200",weight:"bold",children:(0,_.jsx)(A.rU,{href:`/${r.username}/`,children:r.full_name})},r.username),(0,_.jsxs)(A.kC,{alignItems:"stretch",justifyContent:"between",width:"100%",children:[(0,_.jsx)(A.xu,{width:250,children:(0,_.jsx)(A.xv,{lineClamp:1,size:"200",children:s})}),(0,_.jsx)(A.xv,{inline:!0,size:"200",color:"subtle",children:(0,R.A7)(a,t,i)})]})]})]})}var z=i(948618);function O({onDismiss:e}){const t=(0,l.ZP)();return(0,_.jsxs)(A.xu,{display:"flex",justifyContent:"center",alignItems:"center",position:"relative",marginTop:9,marginBottom:9,children:[(0,_.jsx)(A.xu,{maxWidth:400,children:(0,_.jsx)(A.X6,{align:"center",size:"400",children:t._('Added to favorites by', 'closeup.favoritesModal.heading', 'Heading for modal showing favorites on a Pin')})}),(0,_.jsx)(A.xu,{position:"absolute",top:!0,left:!0,marginTop:-2,paddingX:7,children:(0,_.jsx)(A.hU,{accessibilityLabel:t._('Close', 'closeup.favoritesModal.cancelIconButton', 'Accessibility label for button to close out modal'),icon:"cancel",iconColor:"darkGray",onClick:e,size:"md"})})]})}var L=i(116303),N=i(784590),B=i(19121),M=i(414327),Z=i(81636);function F({fullName:e,image:t,isViewer:i,username:n}){const{logContextEvent:o}=(0,d.v)(),a=(0,l.ZP)(),r=()=>{o({event_type:101,component:13798,view_type:132,view_parameter:3553})};return(0,_.jsxs)(A.xu,{alignItems:"center",display:"flex",paddingY:2,paddingX:6,children:[(0,_.jsx)(A.xu,{children:(0,_.jsx)(A.rU,{href:`/${n}/`,onClick:r,children:(0,_.jsx)(L.Z,{name:n,size:"md",src:t})})}),(0,_.jsx)(A.xu,{paddingX:2,children:(0,_.jsx)(A.X6,{size:"400",lineClamp:1,children:(0,_.jsxs)(A.rU,{href:`/${n}/`,onClick:r,children:[e," ",i&&a._('(You)', 'closeup.favoritesModal.viewerText', 'Text informing user they favorited the Pin')]})})})]})}function U({pinId:e}){const t=(0,l.ZP)(),i=(0,o.useDispatch)();(0,n.useEffect)((()=>()=>{i((0,M.jB)("ApiResource",{url:`/v3/pins/${e}/favorite/users/`}))}),[]);const a=(0,B.Z)(),r=a.isAuth?a.id:"";(0,Z.Q)({view_type:132,view_parameter:3553});const s=(0,N.Z)({name:"ApiResource",options:{url:`/v3/pins/${e}/favorite/users/`}}),{data:c,fetchMore:d,isAtEnd:u,isFetching:p}=s;if(c&&c.length>0){const e=c.map((e=>{const{full_name:t,id:i,image_medium_url:n,username:o}=e;return{fullName:t,image:n,isViewer:i===r,username:o}})),i=e.find((e=>e.isViewer));return i&&(e.splice(e.indexOf(i),1),e.unshift(i)),(0,_.jsxs)(A.xu,{maxHeight:400,marginBottom:6,children:[e.map((e=>(0,_.jsx)(F,{fullName:e.fullName,image:e.image,isViewer:e.isViewer,username:e.username},e.username))),!u&&(0,_.jsx)(A.kC,{alignItems:"stretch",justifyContent:"center",width:"100%",children:(0,_.jsx)(A.zx,{accessibilityLabel:t._('See more', 'closeup.favoritesModal.buttonAccessibilityLabel', 'Accessibility label for button to see more users'),disabled:p,onClick:d,text:t._('See more', 'closeup.favoritesModal.buttonText', 'Button text to see more users')})})]})}return(0,_.jsx)(A.$j,{accessibilityLabel:t._('Loading list of users who favorited this Pin', 'closeup.favoritesModal.spinner', 'Accessibility label for user favorite list spinner'),show:!0})}var V=i(121151);function G({onDismiss:e,pinId:t}){const i=(0,l.ZP)();return(0,_.jsx)(V.ZP,{accessibilityModalLabel:i._('View favorites on Pin', 'closeup.favoritesModal.modalAccessibilityLabel', 'Accessiblility label for modal used to see who favorited a Pin'),heading:(0,_.jsx)(O,{onDismiss:e}),onDismiss:e,size:"sm",children:(0,_.jsx)(U,{pinId:t})})}var H=i(694379);function W(e){var t;const i=(0,l.ZP)(),{board:{name:o,url:a},favoritedByMe:r,favoriteUserCount:s,pinId:c,user:d}=e,[u,p]=(0,n.useState)(!1);let h=0;s&&(h=r?s-1:s);const m=i._('Added to favorites by you', 'closeup.pinnerSavedRep.favoritedByTextOnlyYou', 'Text saying that you favorited the Pin'),g=(0,S.nk)(i.ngettext('Added to favorites by {{count}} other', 'Added to favorites by {{count}} others', h, 'closeup.pinnerSavedRep.favoritedByTextOnlyOthers', 'Text describing how many people favorited the Pin'),{count:(0,_.jsx)(H.Z,{shortform:!0,shortformMaximumFractionDigits:1,value:h},"following-count")}),x=(0,S.nk)(i.ngettext('Added to favorites by you and {{count}} other', 'Added to favorites by you and {{count}} others', h, 'closeup.pinnerSavedRep.favoritedByText', 'Text describing how many people favorited the Pin with you'),{count:(0,_.jsx)(H.Z,{shortform:!0,shortformMaximumFractionDigits:1,value:h},"following-count")});return(0,_.jsxs)(n.Fragment,{children:[(0,_.jsxs)(A.kC,{alignItems:"center",justifyContent:"start",width:"100%",children:[(0,_.jsx)(A.kC,{alignItems:"stretch",justifyContent:"start",flex:"none",children:(0,_.jsx)(I.Z,{user:d,size:"sm"})}),(0,_.jsxs)(A.xu,{marginStart:2,width:"100%",children:[(0,_.jsx)(A.xv,{inline:!0,size:"200",children:(0,S.nk)(i._('{{firstName}} saved to {{boardName}}', 'closeup.pinnerSavedRep.savedToText', 'Text describing which board a pin was saved to'),{boardName:(0,_.jsx)(A.xv,{inline:!0,size:"200",weight:"bold",children:(0,_.jsx)(A.rU,{href:null!=a?a:"",display:"inlineBlock",underline:"hover",children:null!=o?o:""})}),firstName:(0,_.jsx)(A.xv,{inline:!0,size:"200",weight:"bold",children:(0,_.jsx)(A.rU,{href:`/${d.username}/`,display:"inlineBlock",underline:"hover",children:null!==(t=d.first_name)&&void 0!==t?t:""})})})}),(0,_.jsx)(A.xv,{inline:!0,children:(0,_.jsx)("span",{onClick:()=>{p(!0)},onKeyDown:e=>{"Enter"===e.key&&p(!0)},role:"button",style:{cursor:"pointer"},tabIndex:"0",children:s?1===s&&r?(0,_.jsxs)(A.xv,{inline:!0,size:"200",weight:"bold",children:[(0,_.jsx)(z.Z,{}),m]}):(0,_.jsxs)(A.xv,{inline:!0,size:"200",weight:"bold",children:[(0,_.jsx)(z.Z,{}),r?x:g]}):null})})]})]}),u&&(0,_.jsx)(G,{onDismiss:()=>{p(!1)},pinId:c})]})}var $=i(618446),K=i.n($),q=i(941646);const Y="__HashtagFlag__",X=/#[^(\-\\.\s#,\/$%\^&\*;:{}=\`~()\[\]@|<>…)]+/gi,J=(e,t)=>`/search/pins/?q=${encodeURIComponent(e)}&rs=${t}`;const Q={hashtags:function(e,t){const i=t.appendText||"",n=t.source||"hashtag_pinrep";let o=[];const a=[],r={};let s=0;const l=e=>(t,i)=>{if(t===Y&&a.length){const t=a.shift();return s+=1,(0,_.jsx)(q.Z,{id:"pinHashtag",children:(0,_.jsx)(A.xv,{color:"shopping",children:(0,_.jsx)(A.rU,{href:J(t,n),children:t})},`hashtag-${e}.${i}`)})}return t};for(let d=0;d(a.push(e),r[e]=!0,Y))).split(new RegExp("(__HashtagFlag__)")).map(l(d));o=[...o,...e]}else o.push(t)}const c=[];return i&&i.replace(X,((e,t)=>(!r[e]&&s<4&&(s+=1,c.push((0,_.jsxs)("span",{children:[" ",(0,_.jsx)(q.Z,{id:"pinHashtag",children:(0,_.jsx)(A.xv,{color:"shopping",children:(0,_.jsx)(A.rU,{href:J(e,n),children:e})})})]},"appended"+t)),r[e]=!0),e))),o=[...o,...c],o}};class ee extends n.Component{shouldComponentUpdate(e){return!K()(this.props,e)}render(){const{text:e,options:t}=this.props;if("string"==typeof e&&""===e.trim())return e;let i=[e];for(const n of Object.keys(Q))if(n in t){i=(0,Q[n])(i,t[n])}return(0,_.jsx)("span",{children:i})}}function te({pin:e,showFavoritesInformation:t}){const{board:i,carousel_data:n,created_at:o,favorite_user_count:a,favorited_by_me:r,id:s,is_repin:l,pinner:c}=e;let d;if(!l&&n){const{carousel_slots:e=[],index:t=0}=n;e[t]&&e[t].details&&(d=e[t].details)}return(0,_.jsxs)(A.xu,{marginBottom:10,children:[(0,_.jsx)(A.xu,{paddingY:2,children:t?(0,_.jsx)(W,{user:c,board:i,favoritedByMe:r,favoriteUserCount:a,pinId:s}):(0,_.jsx)(D,{user:c,board:i,savedToTime:o})}),!!d&&(0,_.jsx)(A.xu,{paddingY:3,marginBottom:1,children:(0,_.jsx)(A.xv,{children:(0,_.jsx)(ee,{text:d,options:{hashtags:{source:"hashtag_closeup"}}})})})]})}var ie=i(139134),ne=i(502712),oe=i(565212),ae=i(215292),re=i(623568),se=i(773285),le=i(801827),ce=i(782534);function de({pin:e,isStoryPin:t,isDeletedStoryPin:i,viewParameter:o,trafficSource:r,details:s,viewer:c,orbacActingAs:u}){var p,h,m;const g=(0,l.ZP)(),{carouselInfo:x}=(0,le.r)(),y=function({pin:e,viewParameter:t,trafficSource:i}){const n=(0,v.Z)(),{logContextEvent:o}=(0,d.v)();return()=>{o({event_type:12,object_id_str:e.id,view_type:3,component:85,view_parameter:t,aux_data:{...(0,f.Kl)(e)||{}}}),o({event_type:8948,clientTrackingParams:n(e.id,{shouldTrackForPrevLocation:!0}),view_type:3,view_parameter:t,component:85,object_id_str:e.id,aux_data:{click_type:"clickthrough",closeup_navigation_type:i&&(0,re.sV)(i)?"deeplink":"click",...(0,f.Kl)(e)||{}}})}}({pin:e,viewParameter:o,trafficSource:r}),{is_repin:b,closeup_unified_description:w}=e,{showReactions:k}=a.y8(e,!!i),E=!i&&a.VO(u,e,c),{checkExperiment:T}=(0,se.F)(),I=T("closeup_dweb_onepin_title_and_description").anyEnabled,j=(null==e||null===(p=e.story_pin_data)||void 0===p||null===(h=p.metadata)||void 0===h||null===(m=h.basics)||void 0===m?void 0:m.key_value_blocks)||[];return(0,_.jsxs)(n.Fragment,{children:[t&&k&&!!e.reaction_counts&&(0,_.jsx)(A.xu,{marginTop:4,children:(0,_.jsx)(ie.Z,{pinId:e.id,isStoryPin:t,reactionByMe:e.reaction_by_me||0,reactionCounts:e.reaction_counts})}),(0,_.jsx)(A.xu,{"data-test-id":"closeup-title",children:(0,_.jsx)(ae.q,{children:({hovered:i,onMouseEnter:n,onMouseLeave:o})=>(0,_.jsx)(P.Z,{hovered:i,pin:e,trafficSource:r,viewType:3,children:(0,_.jsx)(A.xu,{onMouseEnter:n,onMouseLeave:o,children:(0,_.jsx)(ne.Z,{accessibilityLevel:t?1:void 0,carouselInfo:x,isLink:!t,onClick:y,pin:e})})})})}),I&&t&&j.length>0&&(0,_.jsx)(A.xu,{marginTop:4,children:(0,_.jsx)(C,{keyValueBlocks:j})}),I&&t&&w&&(0,_.jsx)(A.xu,{marginTop:4,marginBottom:4,children:(0,_.jsx)(oe.Z,{children:w})}),!I&&t&&!b&&(0,_.jsx)(A.xu,{marginTop:2,children:(0,_.jsx)(A.xv,{color:"subtle",children:(0,S.nk)(g._('Published on {{ publishDate }}', 'closeup.body.publishDate', 'Text indicating when a Story Pin was published'),{publishDate:(0,_.jsx)(ce.Z,{dateFormatType:ce.k.LONG,useUTC:!1,value:new Date(e.created_at)},`storyPinCreated-${e.created_at}`)})})}),(0,_.jsxs)(n.Fragment,{children:[s,!!a.p_(e,c)&&(0,_.jsx)(A.xu,{marginTop:2,children:(0,_.jsx)(te,{pin:e,showFavoritesInformation:E})})]})]})}var ue=i(319915),pe=i(827834),he=i(312918),_e=i(412067),me=i(878552),ge=i(134906);function xe({pin:e,leadFormResponseState:t,setIsLoadingLeadFormSubmit:i,setLeadFormResponseState:o,submitButtonRef:a,showLeadPinStdBeta:r=!1}){const s=(0,l.ZP)(),{leadGen:c,updateLeadGenInfo:u}=(0,me.Q)(),[p,h]=(0,n.useState)(c.fullName),[m,g]=(0,n.useState)(c.email),[x,f]=(0,n.useState)(c.phoneNumber),[y,v]=(0,n.useState)(c.zipCode),[b,P]=(0,n.useState)(null),[w,k]=(0,n.useState)(null),{pinner:{full_name:E,first_name:T,image_medium_url:C,verified_identity:I,is_verified_merchant:j,username:R},promoted_lead_form:{advertiser_id:D,lead_id:z,privacy_policy_link:O,completion_message:L},title:N,ad_destination_url:B,description:M,id:Z,promoted_is_lead_ad:F}=e,U=!!Object.keys(I).length,V=`/${R}/`,{logContextEvent:G}=(0,d.v)(),H=c.formSubmissions,W=H[z];return(0,n.useImperativeHandle)(a,(()=>({handleClick(){const e=(()=>{const e=(0,ge.VG)({message:s._('Please enter a valid name', '[m10n] leadGenContainer.nameValError', 'Invalid name validator error')}),t=(0,ge.a3)(p,[e]);return k(t),!t})(),t=(()=>{const e=(0,ge.GT)({message:s._('Please enter a valid email address', '[m10n] leadGenContainer.emailValError', 'Invalid email validator error')}),t=(0,ge.a3)(m,[e]);return P(t),!t})();if(e&&t){i(!0);const e={fullName:p,email:m,phoneNumber:x,zipCode:y,formSubmissions:H};u(e);const t={advertiser_id:D.toString(),lead_id:z.toString(),full_name:p,email:m,phone_number:x,zip_code:y};_e.Z.create("ApiResource",{url:"/v3/lead/submit/",data:t}).callCreate().then((()=>{const t={...H};t[z]=Z,u({...e,formSubmissions:t}),i(!1),o("success"),G({event_type:10368,view_type:175,view_parameter:null,component:14307,object_id_str:Z})})).catch((()=>{i(!1),o("error"),G({event_type:10370,view_type:175,view_parameter:null,component:14307,object_id_str:Z,aux_data:{error_code:500}})}))}}}))),(0,n.useEffect)((()=>{G({event_type:10363,view_type:175,view_parameter:null,component:14307,object_id_str:Z,aux_data:{lead_form_id:z}}),W?(o("success"),G({event_type:13,view_type:175,view_parameter:null,component:14308,object_id_str:Z,aux_data:{lead_form_id:z}})):G({event_type:13,view_type:175,view_parameter:null,component:14307,object_id_str:Z,aux_data:{lead_form_id:z}})}),[W,z,Z,G,o]),(0,_.jsx)(n.Fragment,{children:"success"===t||W?(0,_.jsxs)(A.xu,{paddingY:3,marginTop:1,children:[(0,_.jsxs)(A.kC,{direction:"column",justifyContent:"between",gap:{row:0,column:3},children:[(0,_.jsx)(he.default,{fullName:E,hasVerifiedIdentity:U,imageUrl:C,isPromoted:F,isVerifiedMerchant:j,profileUrl:V,isLeadPin:!0}),(0,_.jsx)(A.X6,{size:"600",children:s._('Your information was sent!', '[m10n] closeup.leadGen.InformationSentMessage', 'Information sent message')}),(0,_.jsx)(A.xv,{size:"300",children:L})]}),(0,_.jsx)(A.xu,{paddingY:6,children:(0,_.jsx)(A.zx,{accessibilityLabel:s._('Visit site', '[m10n]closeup.leadGen.visitSiteButton', 'Submit button for the form'),size:"lg",text:s._('Visit site', '[m10n]closeup.leadGen.visitSiteButton', 'Visit Site button for the lead ad success page'),onClick:()=>{G({event_type:8948,view_type:175,view_parameter:null,object_id_str:Z,aux_data:{click_type:"clickthrough",closeup_navigation_type:"click",lead_form_id:z}})},role:"link",target:"blank",href:B,color:"red"})})]}):(0,_.jsxs)(A.xu,{dangerouslySetInlineStyle:{__style:{paddingTop:12,paddingBottom:24}},marginTop:2,children:[(0,_.jsxs)(A.kC,{direction:"column",justifyContent:"between",gap:{row:0,column:3},children:[(0,_.jsx)(he.default,{fullName:E,hasVerifiedIdentity:U,imageUrl:C,isPromoted:F,isVerifiedMerchant:j,profileUrl:V,isLeadPin:!0}),(0,_.jsx)(A.X6,{size:"600",children:N}),(0,_.jsx)(A.xv,{size:"300",children:M})]}),(0,_.jsx)(A.xu,{paddingY:6,children:(0,_.jsxs)(A.kC,{direction:"column",gap:{row:0,column:3},children:[(0,_.jsx)(A.nv,{label:s._('Full name', '[m10n]closeup.body.leadGenFullName', 'Text indicating user to enter full name'),errorMessage:w,size:"lg",id:"leadGen-firstNameTextField",name:"firstNameTextField",placeholder:s._('Enter full name', '[m10n]closeup.leadGen.leadGenFullNamePlaceholder', 'Placeholder for name'),value:p,onChange:({value:e})=>h(e),onBlur:()=>G({event_type:10367,view_type:175,view_parameter:null,component:14307,element:13411,object_id_str:Z,aux_data:{lead_form_id:z}}),type:"text"}),(0,_.jsx)(A.nv,{label:s._('Email', '[m10n]closeup.leadGen.leadGenEmail', 'Text indicating user to enter email'),errorMessage:b,size:"lg",id:"email",placeholder:s._('Enter email', '[m10n]closeup.leadGen.leadGenEmailPlaceholder', 'Placeholder for entering email'),onChange:({value:e})=>g(e),onBlur:()=>G({event_type:10367,view_type:175,view_parameter:null,component:14307,element:13412,object_id_str:Z,aux_data:{lead_form_id:z}}),value:m,type:"email",autoComplete:"email"}),(0,_.jsx)(A.nv,{label:s._('Phone number (optional)', '[m10n]closeup.leadGen.leadGenPhoneNumber', 'Text indicating user to enter phone number'),size:"lg",id:"leadGen-phoneNumberTextField",name:"phoneNumberTextField",placeholder:s._('Enter phone number', '[m10n]closeup.leadGen.leadGenPhoneNumberPlaceholder', 'Placeholder for entering phone number'),onChange:({value:e})=>f(e),onBlur:()=>G({event_type:10367,view_type:175,view_parameter:null,component:14307,element:13413,object_id_str:Z,aux_data:{lead_form_id:z}}),value:x,type:"text"}),(0,_.jsx)(A.nv,{label:s._('Zip code (optional)', '[m10n]closeup.leadGen.leadGenZipCode', 'Text indicating user to enter zip code'),size:"lg",id:"leadGen-zipCodeTextField",name:"zipCodeTextField",placeholder:s._('Enter zip code', '[m10n]closeup.leadGen.leadGenZipCodePlaceholder', 'Placeholder for entering zip code'),onChange:({value:e})=>v(e),onBlur:()=>G({event_type:10367,view_type:175,view_parameter:null,component:14307,element:13414,object_id_str:Z,aux_data:{lead_form_id:z}}),value:y,type:"text"}),"error"===t&&(0,_.jsxs)(A.xu,{display:"flex",marginTop:2,justifyContent:"start",children:[(0,_.jsx)(A.qb,{type:"problem"}),(0,_.jsx)(A.xu,{paddingX:2,children:(0,_.jsx)(A.xv,{size:"100",color:"error",children:s._('Something went wrong. Please try "Submit" again.', '[m10n] closeup.leadGen.InternalErrorMessage', 'Service error message')})})]})]})}),!r&&(0,_.jsx)(A.xu,{"data-test-id":"lead-gen-container-policy",children:(0,_.jsx)(A.xv,{size:"100",color:"subtle",children:(0,S.nk)(s._('By submitting, you agree to send your info to {{ brand }} for use according to {{ privacyPolicy }}. It may also suggest to them that you are in the group they are trying to reach with this ad.', '[m10n]closeup.leadGen.leadGenDisclaimer', 'Disclaimer text, brand: the entity who created the lead ad, privacyPolicy: the privacy policy of the brand'),{brand:T,privacyPolicy:(0,_.jsx)(A.rU,{href:O,target:"blank",display:"inlineBlock",underline:"always",children:s._('their privacy policy', '[m10n]closeup.leadGen.privacyPolicy', 'Lead pin privacy policy')},z)})})})]})})}var fe=i(700380),ye=i(425288);const{Provider:ve,useHook:be}=(0,ye.Z)("LeadGenShadow");function Pe({children:e,metadataContainerRef:t}){var i,o;const[a,r]=(0,n.useState)(!1),s=null===(i=t.current)||void 0===i?void 0:i.children[0],l=window.innerHeight;return(0,n.useEffect)((()=>{if(s){const e=s.getBoundingClientRect().bottom;r(l{if(s){const e=s.getBoundingClientRect().bottom;r(l{document.removeEventListener("scroll",e)}}),[null===(o=t.current)||void 0===o?void 0:o.children,s,l]),(0,_.jsx)(ve,{value:{showShadow:a},children:e})}const we={boxShadow:"0px -8px 8px -5px rgba(0, 0, 0, 0.1)",transition:"box-shadow 300ms ease-in-out"};function Se({pin:e,submitButtonRef:t,showLeadPinStdBeta:i=!1}){const n=(0,l.ZP)(),{pinner:{full_name:o},promoted_lead_form:{lead_id:a,privacy_policy_link:r}}=e,{showShadow:s}=be(),c=(0,_.jsx)(A.xu,{"data-test-id":"lead-gen-container-policy",children:(0,_.jsx)(A.xv,{size:"100",color:"subtle",children:(0,S.nk)(n._('By submitting, you agree to send your info to {{ brand }} for use according to {{ privacyPolicy }}. It may also suggest to them that you are in the group they are trying to reach with this ad.', '[m10n]closeup.leadGen.leadGenDisclaimer', 'Disclaimer text, brand: the entity who created the lead ad, privacyPolicy: the privacy policy of the brand'),{brand:o,privacyPolicy:(0,_.jsx)(A.rU,{href:r,target:"blank",display:"inlineBlock",underline:"always",children:n._('their privacy policy', '[m10n]closeup.leadGen.privacyPolicy', 'Lead pin privacy policy')},a)})})}),d=(0,_.jsx)(A.zx,{onClick:()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.handleClick()},type:"submit",accessibilityLabel:n._('Submit', '[m10n]closeup.leadGen.submitButton', 'Submit button for the form'),size:"lg",fullWidth:i,text:n._('Submit', '[m10n]closeup.leadGen.submitButton', 'Submit button for the form'),color:"red"});return(0,_.jsx)(A.Le,{bottom:0,children:(0,_.jsx)(A.xu,{dangerouslySetInlineStyle:{__style:{borderTop:i?"":"1px solid #EFEFEF",borderBottomRightRadius:32,borderBottomLeftRadius:32,...s&&i&&we}},color:"default",paddingX:8,paddingY:3,width:"100%","data-test-id":"lead-gen-footer",children:i?(0,_.jsxs)(A.kC,{justifyContent:"between",alignItems:"center",gap:4,children:[c,d]}):(0,_.jsx)(A.kC,{alignItems:"stretch",justifyContent:"end",children:d})})})}var Ae=i(81072),ke=i(814197);function Ee(e){var t;const{height:i}=e,o=(0,n.useRef)(null),a=(0,Ae.Z)()+-40+((null===(t=o.current)||void 0===t?void 0:t.getBoundingClientRect().top)||0);return(0,_.jsx)(A.xu,{ref:o,id:"lead-gen-sticky-container ","data-test-id":"lead-gen-sticky-container",children:(0,_.jsx)(A.Le,{height:i,top:a,zIndex:ke.mS,children:e.children})})}var Te=i(333312),Ce=i(385646),Ie=i(537313);function je({actionBarHeight:e,isStoryPin:t,onClickThrough:i,pin:o}){const a=(0,l.ZP)(),r=(0,n.useRef)(),{origin_pinner:s}=o,{full_name:c,username:d}=s||{},{currentDomain:u}=(0,Ie.Wp)(o),{checkExperiment:p}=(0,se.F)(),h=p("closeup_dweb_onepin_title_and_description").anyEnabled;let m;return m="Uploaded by user"!==u||h?(0,_.jsxs)(n.Fragment,{children:[(0,_.jsx)(Ie.ZP,{actionBarHeight:e,onClickThrough:i,pin:o,showDomainInLink:!0,children:(0,_.jsx)(A.xu,{dangerouslySetInlineStyle:{__style:{textDecoration:"underline"}},ref:r,children:(0,_.jsx)(A.xv,{size:h?"200":void 0,children:(0,Ce.f)(u)})})}),t&&(0,_.jsx)(Te.default,{showCaret:!0,anchor:r.current,experienceIds:[504729],flyoutSize:"md",placementId:1000167,textAlign:"center",textWeight:"normal"})]}):d&&(0,_.jsx)(A.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:(0,_.jsx)(A.xv,{inline:!0,children:(0,_.jsx)("span",{className:"deprecatedTextSizeXL",children:(0,S.nk)(a._('Uploaded by {{ user }}', 'link to user who uploaded the pin', 'link to user who uploaded the pin'),{user:(0,_.jsx)(A.xv,{inline:!0,weight:"bold",children:(0,_.jsx)(A.rU,{display:"inlineBlock",href:`/${d}`,underline:"hover",children:(0,_.jsx)(A.xu,{dangerouslySetInlineStyle:{__style:{fontSize:"21px"}},children:c||d})})},"CloseupLink--Link")})})})}),(0,_.jsx)(A.xu,{display:"inlineBlock",position:"relative",width:"100%",children:m})}var Re=i(947599),De=i(92261);const ze=(0,n.lazy)((()=>Promise.all([i.e(76030),i.e(72048),i.e(21177)]).then(i.bind(i,319875))));function Oe({pin:e,data:t,goBack:i,isStoryPin:o,onClickThrough:a,onUpdate:r,viewParameter:s,onSaveButtonClick:c,showRepinOnInitialRender:d,actionBarContainerRef:u,trafficSource:p,visualContentContainer:h,visualContentContainerHeight:m,descriptionPaneWidth:g,metadataContainerRef:x,leadFormHeight:f,isOverflowVisible:y,showLeadPinStdBeta:v=!1}){const[b,w]=(0,n.useState)(!1),[S,k]=(0,n.useState)(null),E=(0,l.ZP)(),T=(0,n.useRef)();return(0,_.jsxs)(Pe,{metadataContainerRef:x,children:[h,(0,_.jsx)(A.xu,{"data-test-id":"lead-gen-description-content-container",display:"flex",direction:"column",height:"100%",maxHeight:m,width:g,children:!t||b?(0,_.jsx)(A.xu,{alignItems:"center",display:"flex",height:"100%",justifyContent:"center",paddingY:4,children:(0,_.jsx)(A.$j,{accessibilityLabel:E._('Pin details loading', ' - ', ' -- '),show:!0})}):(0,_.jsxs)(n.Fragment,{children:[(0,_.jsxs)(A.xu,{dangerouslySetInlineStyle:{__style:{paddingRight:De.g9,paddingLeft:De.g9}},direction:"column",display:"flex",flex:"grow",maxHeight:f,overflow:y?"visible":"auto",children:[(0,_.jsx)(ue.Z,{name:"SafeSuspense_CloseupBody_CloseupActionBar",children:(0,_.jsx)(Re.Z,{children:(0,_.jsx)(ze,{goBack:i,gridDescription:e.description,isDeletedStoryPin:!1,isOnSecretBoard:!1,onEditSubmit:r,pin:e,viewParameter:s,onSaveButtonClick:c,showRepinOnInitialRender:d,isStoryPin:!1,actionBarContainerRef:u,outerPaddingSize:De.$T,showLeadPin:!0})})}),(0,_.jsx)(A.xu,{alignItems:"stretch",display:"flex",flex:"grow",justifyContent:"start",direction:"column",ref:x,children:(0,_.jsxs)(A.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[(0,_.jsx)(A.xu,{direction:"row",display:"flex","data-test-id":"maybe-clickthrough-link",children:(0,_.jsx)(ae.q,{children:({hovered:t,onMouseEnter:i,onMouseLeave:n})=>{var r;return(0,_.jsx)(P.Z,{hovered:t,pin:e,trafficSource:p,viewType:3,children:(0,_.jsx)(A.xu,{onMouseEnter:i,onMouseLeave:n,children:(0,_.jsx)(je,{actionBarHeight:(null===(r=u.current)||void 0===r?void 0:r.offsetHeight)||De.Ie,onClickThrough:a,pin:e,isStoryPin:o})})})}})}),(0,_.jsx)(xe,{pin:e,leadFormResponseState:S,setIsLoadingLeadFormSubmit:w,setLeadFormResponseState:k,submitButtonRef:T,showLeadPinStdBeta:v})]})})]}),"success"!==S&&(0,_.jsx)(Se,{pin:e,submitButtonRef:T,showLeadPinStdBeta:v})]})})]})}function Le({pin:e,data:t,goBack:i,isStoryPin:n,onClickThrough:o,onUpdate:a,viewParameter:r,onSaveButtonClick:s,showRepinOnInitialRender:l,actionBarContainerRef:c,trafficSource:d,visualContentContainer:u,visualContentContainerHeight:p,descriptionPaneWidth:h,metadataContainerRef:m,showLeadPinStdAlpha:g,showLeadPinStdBeta:x}){const f={visualContentContainerHeight:p,leadFormHeight:window.innerHeight-155,isOverflowVisible:!1};let y={};return x?y={visualContentContainer:(0,_.jsx)(Ee,{children:u}),isOverflowVisible:!0,showLeadPinStdBeta:x}:g&&(y=f),(0,_.jsx)(Oe,{pin:e,data:!!t,goBack:i,onUpdate:a,viewParameter:r,onSaveButtonClick:s,showRepinOnInitialRender:l,actionBarContainerRef:c,trafficSource:d,onClickThrough:o,isStoryPin:n,descriptionPaneWidth:h,metadataContainerRef:m,visualContentContainer:u,...y})}const Ne=({pin:e,creator:t})=>{const{logContextEvent:i}=(0,d.v)(),n=(0,l.ZP)();return(0,_.jsxs)(A.xu,{children:[(0,_.jsx)(A.xu,{marginBottom:1,children:(0,_.jsx)(A.xv,{size:"200",children:(0,S.nk)(n._('A take on {{ title }}', 'closeup.callToCreateAttribution.pinTitle', 'Call To Create attribution Pin title'),{title:(0,_.jsx)(A.rU,{href:`/pin/${e.id||""}/`,onClick:()=>{i({event_type:101,element:12682,view_type:3,aux_data:{object_id_str:e.id}})},display:"inlineBlock",underline:"hover",children:(0,_.jsx)(A.xv,{inline:!0,size:"200",weight:"bold",children:e.title||""})})})})}),(0,_.jsx)(A.xv,{size:"200",children:(0,S.nk)(n._('by {{ creator }}', 'closeup.callToCreateAttribution.creatorName', 'Call To Create attribution Creator name'),{creator:(0,_.jsx)(A.rU,{href:`/${t.username||""}/`,onClick:()=>{i({event_type:101,view_type:3,element:12683,object_id_str:e.id})},display:"inlineBlock",underline:"hover",children:(0,_.jsx)(A.xv,{inline:!0,size:"200",weight:"bold",children:t.full_name||""})})})})]})};var Be=i(276775);function Me({pin:e}){var t,i,n,o,a,r,s;const{logContextEvent:c}=(0,d.v)(),u=(0,l.ZP)(),p=(0,Be.useHistory)(),h=(null===(t=e.images)||void 0===t?void 0:t["736x"])||(null===(i=e.images)||void 0===i?void 0:i["236x"])||(null===(n=e.images)||void 0===n?void 0:n["170x"]);return h?(0,_.jsxs)(A.iP,{onTap:({event:t})=>{t.preventDefault(),t.stopPropagation(),c({event_type:101,view_type:1,view_parameter:3652,object_id_str:e.id}),e.id&&p.push(`/pin/${e.id}/`)},rounding:4,children:[(0,_.jsx)(A.zd,{rounding:4,wash:!0,children:(0,_.jsx)(A.Ee,{alt:e.title||"",color:e.dominant_color||"lightGray",naturalHeight:h.height||1,naturalWidth:h.width||1,src:h.url||"",children:e.story_pin_data&&(0,_.jsx)(A.xu,{flex:"grow",children:(0,_.jsxs)(A.xu,{alignItems:"center",display:"flex",height:24,margin:2,overflow:"hidden",padding:2,position:"absolute",rounding:"pill",top:!0,zIndex:new A.Ry(1),dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(255, 255, 255, 0.8)"}},children:[(0,_.jsx)(A.xu,{marginEnd:1,children:(0,_.jsx)(A.JO,{accessibilityLabel:u._('identifier that shows the pin type', 'closeup.callToCreateResponsePinRep.iconAccessibilityLabel', 'shows an icon with the pin type'),color:"default",icon:"idea-pin",inline:!0,size:12})}),(0,_.jsx)(A.xv,{inline:!0,size:"100",weight:"bold",children:(null===(o=e.story_pin_data)||void 0===o?void 0:o.page_count)||0})]})})})}),(0,_.jsx)(A.kC,{justifyContent:"around",children:(0,_.jsx)(A.xu,{height:48,width:48,marginTop:-6,children:(0,_.jsx)(L.Z,{name:(null===(a=e.pinner)||void 0===a?void 0:a.full_name)||"",size:"fit",src:(null===(r=e.pinner)||void 0===r?void 0:r.image_medium_url)||(null===(s=e.pinner)||void 0===s?void 0:s.image_small_url)||""})})})]}):null}const Ze=({size:e=24})=>{const t=(0,l.ZP)();return(0,_.jsx)(A.JO,{color:"default",accessibilityLabel:t._('Call To Create Takes icon', 'calltocreateresponsecard.icon.takes_arrow', 'Takes icon for Call To Create Pins'),icon:void 0,size:e,dangerouslySetSvgPath:{__path:"M24 17.995C24 19.105 23.1 19.995 21.99 19.995C20.88 19.995 19.98 19.095 19.98 17.995C19.98 13.855 16.6 10.485 12.45 10.485H7.65L10.79 13.615C11.57 14.395 11.57 15.665 10.79 16.445C10.01 17.225 8.74 17.225 7.95 16.445L0 8.515L7.94 0.585C8.72 -0.195 9.99 -0.195 10.78 0.585C11.56 1.365 11.56 2.635 10.78 3.415L7.72 6.465H12.45C18.82 6.465 24 11.635 24 17.995Z"}})};var Fe=i(422946);const Ue=["pin.call_to_create_source_pin_id","pin.images[170x,236x,736x]","pin.id","pin.title","pin.pinner()","pin.story_pin_data()","pin.tracking_params","pin.type"],Ve=({pinId:e,responseCount:t})=>{const{logContextEvent:i}=(0,d.v)(),a=(0,l.ZP)(),{fetchMore:r,isAtEnd:s,isFetching:c}=(0,N.Z)({name:"ApiResource",options:{data:{fields:Ue.join(","),page_size:4},url:`/v3/call_to_create_pins/${e}/pins/`,pin_id:e,redux_normalize_feed:!0}}),u=(0,y.AF)(),p=(0,o.useSelector)((({feeds:t})=>(t[`${Fe.DV.CALL_TO_CREATE_RESPONSES_FEED}:${e}`]||[]).map((e=>u[e.id])))),h=Math.ceil(p.length/4),m=!s||s&&p.length<=4;return(0,_.jsxs)(n.Fragment,{children:[(0,_.jsxs)(A.xu,{marginBottom:4,display:"flex",alignItems:"center",children:[(0,_.jsx)(A.xu,{marginEnd:2,children:(0,_.jsx)(Ze,{size:20})}),(0,_.jsx)(A.X6,{size:"400",children:(0,w.Z)(a.ngettext('{{responseCount}} take inspired by this Idea Pin', '{{responseCount}} takes inspired by this Idea Pin', t, 'closeup.callToCreateResponseCard.heading', 'Section heading for Call To Create Pin responses'),{responseCount:t.toString()})})]}),p.length>0&&(0,_.jsxs)(n.Fragment,{children:[(0,_.jsx)(A.xu,{marginStart:-2,marginEnd:-2,children:[...Array(h).keys()].map((e=>(0,_.jsx)(A.xu,{display:"flex",alignItems:"stretch",justifyContent:"start",width:"100%",children:p.slice(4*e,4*(e+1)).map(((e,t)=>(0,_.jsx)(A.xu,{width:"25%",children:(0,_.jsx)(A.xu,{margin:2,children:(0,_.jsx)(Me,{pin:e})})},t)))},e)))}),m&&(0,_.jsx)(A.xu,{marginTop:4,children:(0,_.jsx)(A.zx,{text:a._('View more', 'closeup.callToCreateResponseCard.viewMoreButon', 'Text on a button that loads more Call To Create Pins'),onClick:()=>{i({event_type:101,view_type:1,element:12692,object_id_str:e}),r()},disabled:c||s})})]}),(0,_.jsx)(A.$j,{accessibilityLabel:a._('Loading', 'Label for loading spinner', 'Label for loading spinner'),show:c&&p.length<1})]})};var Ge=i(966676);const He=({commentCount:e,icon:t,onIconClick:i})=>{const n=(0,l.ZP)(),{checkExperiment:o}=(0,se.F)(),a=o("closeup_dweb_onepin_title_and_description").anyEnabled;let r=n._('Comments', 'comments on a Pin', 'comments on a Pin');if(e){const t=a?n.ngettext('{{ count }} Comment', '{{ count }} Comments', e, 'Closeup.CommentsHeading.CommentsCountLabel', 'Comments on a Pin'):n.ngettext('{{ count }} comment', '{{ count }} comments', e, 'comments on a Pin', 'comments on a Pin');r=(0,w.Z)(t,{count:e.toString()})}return(0,_.jsxs)(A.X6,{align:"start",size:"400",accessibilityLevel:2,children:[r,e>0&&(0,_.jsx)(A.xu,{display:"inlineBlock",marginStart:1,children:(0,_.jsx)(A.hU,{accessibilityLabel:n._('Show more comments dropdown', 'Closeup.CanonicalCard.ExpandCommentsButton', 'Title for button to show comments dropdown'),icon:t,onClick:i,size:"md"})})]})};var We=i(852782),$e=i(442279),Ke=i(274415),qe=i(283855),Ye=i(139405),Xe=i(780280);const Je=(0,$e.P1)(((e,t,i)=>i),(({feeds:e},t)=>e[`${Fe.DV.UNIFIED_COMMENTS}:${t}`]),(({didItData:e})=>e),((e,t,i)=>(null==t?void 0:t.map((({id:t,type:n})=>"aggregatedcomment"===n.toLowerCase()?e[t]:i[t])).filter((e=>e)))||[])),Qe=({commentCount:e,scrollContainerRef:t,featuredCommentId:i,isCommentSectionOpen:a,onCommentSectionClick:r,photoCount:s,pin:l,isLoadingNewCreatedComment:d,isORBACProfileManager:u})=>{var p,h,m,g,x,f,y;const v=(0,Ye.lV)(),{toggleAggregatedCommentHelpful:b,toggleAggregatedCommentLike:P}=(0,Ye.nf)(),w=Math.max(e+s,0)>0,S=(0,N.Z)(w?{name:"UnifiedCommentsResource",options:{aggregated_pin_id:null===(p=l.aggregated_pin_data)||void 0===p?void 0:p.id,comment_featured_ids:i,page_size:5,redux_normalize_feed:!0}}:null),{fetchMore:k,isAtEnd:E,isFetching:T,isLoaded:C}=S,I=(0,o.useSelector)((e=>{var t;return Je(e,null===(t=l.aggregated_pin_data)||void 0===t?void 0:t.id,v)})),{updateCloseupBodyContainerHeight:j}=(0,n.useContext)(Ge.ZP),[R,D]=(0,n.useState)(!1),[z,O]=(0,n.useState)(void 0),[L,B]=(0,n.useState)(void 0);(0,n.useEffect)((()=>{j&&j()}),[j]);return(0,n.useEffect)((()=>{setTimeout((()=>{D(!0)}),1e3)}),[]),(0,_.jsxs)(A.kC,{dataTestId:"canonical-card",direction:"column",gap:{row:0,column:4},children:[(0,_.jsx)(He,{commentCount:Math.max(e+s,0),icon:a?"arrow-down":"arrow-forward",onIconClick:()=>{r&&r(!a)}}),R&&a&&(0,_.jsxs)(n.Fragment,{children:[!!t&&(0,_.jsx)(A.gr,{container:t,isAtEnd:E,isFetching:T,fetchMore:k}),(0,_.jsx)(We.Z,{comments:I,featuredCommentId:i,gapSize:5,isDesktop:!0,isLoaded:C||!w,isLoading:C&&d,toggleReplyComposer:e=>{O(null==e?void 0:e.id)},parentId:null===(h=l.aggregated_pin_data)||void 0===h?void 0:h.id,parentType:c.o.pin,replyingToCommentId:z,toggleHelpful:(e,t)=>()=>{b({aggregatedCommentId:e,isMarkedHelpfulByMe:t})},toggleLike:(e,t)=>()=>{P({aggregatedCommentId:e,isLikedByMe:t})},userAvatarSize:"sm",isORBACProfileManager:u,aggregatedPinDataId:null===(m=l.aggregated_pin_data)||void 0===m?void 0:m.id,closeupAttributionId:null===(g=l.closeup_attribution)||void 0===g?void 0:g.id,closeupAttributionUsername:null===(x=l.closeup_attribution)||void 0===x?void 0:x.username,pinId:l.id,isVideo:(0,re.iR)(l.videos),storyPinDataId:null===(f=l.story_pin_data)||void 0===f?void 0:f.id,pinnerId:null===(y=l.pinner)||void 0===y?void 0:y.id,showReactionListForComment:B,reactionListCommentId:L})]})]})};function et(e){var t,i,n,a;const r=(0,o.useDispatch)(),s=null!==(t=e.pin.aggregated_pin_data)&&void 0!==t?t:{};return(0,_.jsx)(Qe,{...e,commentCount:null!==(i=s.comment_count)&&void 0!==i?i:0,featuredCommentId:(0,qe.K)(),photoCount:null!==(n=null===(a=s.did_it_data)||void 0===a?void 0:a.images_count)&&void 0!==n?n:0,pinUpdateCommentCount:(e,t)=>r((0,Ke.R)(e,t)),requestContext:(0,Xe.B)()})}var tt=i(509278);const it=({mention:e,tag:t})=>{const{logContextEvent:i}=(0,d.v)();return(0,_.jsx)(A.rU,{underline:"none",href:`/${e.substr(1)}`,display:"inlineBlock",onClick:({event:e})=>{e.stopPropagation(),i({event_type:101,element:11915,aux_data:{tag_id:t.object_id,tag_type:t.tag_type}})},children:(0,_.jsx)(A.xv,{size:"200",color:"link",inline:!0,weight:"bold",overflow:"normal",children:e})},t.object_id)};const nt=({description:e,userMentionTags:t})=>{if(0===t.length)return(0,_.jsx)(n.Fragment,{children:e});return function(e,t){let i=0;const n=[];return t.concat().sort(((e,t)=>{var i,n;return(null!==(i=e.offset)&&void 0!==i?i:0)-(null!==(n=t.offset)&&void 0!==n?n:0)})).forEach((t=>{const{offset:o=0,length:a=0}=t,r=e.substr(i,o-i),s=e.substr(o,a);n.push(r),n.push((0,_.jsx)(it,{mention:s,tag:t})),i=o+a})),n.push(e.substr(i)),n}(e,t).flatMap((e=>"string"!=typeof e?e:(0,tt.Z)(e))).reduce(((e,t)=>(0,_.jsxs)(A.xv,{size:"200",inline:!0,children:[e,t]})),null)};var ot=i(748373),at=i(238873),rt=i(802933),st=i(762615),lt=i(432730),ct=i(833049),dt=i(561195),ut=i(883561),pt=i(608226),ht=i(923297);function _t(e){return e.replace(/\s+/g," ")}function mt(e,t,i){const n=[];return e.forEach((e=>{var o;const a=t.substr(0,e.offset),r=i(a),s=(null!==(o=e.offset)&&void 0!==o?o:0)-(a.length-r.length);n.push({...e,offset:s})})),n}class gt extends n.Component{componentDidMount(){const{onUpdate:e}=this.props;e&&e()}componentDidUpdate(e){if(e.showMore!==this.props.showMore){const{onUpdate:e}=this.props;e&&e()}}render(){var e;const{isArticle:t,pin:i,tutorialDescription:n,showMore:o,onToggle:a,i18n:r,checkExperiment:s}=this.props,{carousel_data:l,closeup_unified_description:c,user_mention_tags:d,story_pin_data:u}=i;let p=(c||"").trim();if(l){const{carousel_slots:e=[],index:t=0}=l;e[t]&&e[t].details&&(p=e[t].details)}const h=s("closeup_dweb_onepin_title_and_description").anyEnabled,m=p&&n&&n.trim()===p;let g=p?_t(p):"";if(g=!o&&g&&g.length?(0,ut.ZP)(g,t?195:200):g,g&&d){const e=mt(d,p,_t);g=(0,_.jsx)(ot.Z,{description:g,userMentionTags:e})}const x=p&&p.length>(t?195:200);let f=null;const y=null==u||null===(e=u.metadata)||void 0===e?void 0:e.basics,v=(0,at.Z)((0,st.Z)((0,lt.Z)((0,rt.Z)(this.props))));if(y){const{basics:e}=u.metadata;let t;i&&i.domain&&i.link&&(t={domain:i.domain,url:i.link}),f=(0,pt.H)({basics:e,linkData:t,i18n:r})}else if(v){var b,P,w,k,E,T;const{pin:e}=this.props,{prepTime:t,cookTime:i,totalTime:n,servingSummary:o}=v.recipe;let a=n||i||t;if(i&&t){const e=i.h||0,n=i.m||0;a={h:e+(t.h||0),m:n+(t.m||0)}}const r=a?(0,ct.Z)((0,ht.X)(a),this.props.i18n,this.props.checkExperiment):null,s=null===(b=e.rich_metadata)||void 0===b||null===(P=b.recipe)||void 0===P||null===(w=P.aggregate_rating)||void 0===w?void 0:w.review_count;o&&(f=(0,_.jsx)(A.xv,{inline:!0,size:"200",children:o},"recipe")),r&&(f=f?(0,S.nk)("{{ timeLabel }} · {{ description }}",{timeLabel:r,description:f}):r),"number"==typeof s&&s>0&&(f=f?(0,S.nk)(this.props.i18n._('{{ reviewCount }} reviews \xB7 {{ description }}', 'number of reviews on a recipe and the description', 'number of reviews on a recipe and the description'),{reviewCount:s,description:f}):s);const l=null===(k=e.rich_metadata)||void 0===k||null===(E=k.recipe)||void 0===E||null===(T=E.aggregate_rating)||void 0===T?void 0:T.rating_value;let c=Number(l);var C,I,j,R,D,z;if(Number.isNaN(c)&&(c=0),c>=.25)f=f?(0,S.nk)("{{ ratings }} {{ description }}",{ratings:(0,_.jsx)(dt.Z,{rating:l,max_rating:null===(C=e.rich_metadata)||void 0===C||null===(I=C.recipe)||void 0===I||null===(j=I.aggregate_rating)||void 0===j?void 0:j.best_rating,width:12},l),description:f}):(0,_.jsx)(dt.Z,{rating:l,max_rating:null===(R=e.rich_metadata)||void 0===R||null===(D=R.recipe)||void 0===D||null===(z=D.aggregate_rating)||void 0===z?void 0:z.best_rating,width:12},l)}const O=x&&!o;if(!g||m)return null;const L=(null==v?void 0:v.recipe.diets)||[];return h&&p?(0,_.jsxs)(A.xu,{marginTop:4,marginBottom:4,children:[!!f&&(0,_.jsx)(A.xu,{marginTop:4,marginBottom:4,children:(0,_.jsxs)(A.xv,{size:"200",children:[f,L.length>0?" · ":null,L.length>0?L.join(" · "):null]})}),(0,_.jsxs)(oe.Z,{children:[!d&&(0,tt.Z)(_t(p)),d&&(0,_.jsx)(nt,{description:_t(p),userMentionTags:mt(d,p,_t)})]})]}):(0,_.jsxs)("span",{children:[(0,_.jsx)(A.xv,{inline:!0,size:"200",children:(0,_.jsx)(A.xu,{"data-test-id":"description",position:"relative",dangerouslySetInlineStyle:{__style:{display:"inline"}},children:f?(0,S.nk)("{{ recipeInfo }} · {{ description }}",{recipeInfo:f,description:g}):g})}),O&&(0,_.jsx)(A.xu,{"data-test-id":"more-button",display:"inlineBlock",marginStart:1,children:(0,_.jsx)(A.iP,{fullWidth:!1,onTap:a,children:(0,_.jsx)(A.xv,{weight:"bold",size:"200",inline:!0,children:this.props.i18n._('More', ' - ', ' -- ')})})})]})}}const xt=function(e){const t=(0,l.ZP)(),{checkExperiment:i}=(0,se.F)();return(0,_.jsx)(gt,{...e,i18n:t,checkExperiment:i})};var ft=i(818398),yt=i(533439);const vt=(e,t)=>e.length>300?e:e.length+t.length+3>300?`${e} ${t}...`:`${e} ${t}`;function bt(e){const[t,i]=(0,n.useState)(!1);if(!(0,rt.Z)(e))return null;const{pin:o,onUpdate:a}=e,{aggregated_pin_data:r,description:s}=o,{recipe:l}=(0,st.Z)((0,lt.Z)(e))||{},{article:c}=(0,ft.Z)((0,lt.Z)(e))||{},{description:d}=c||{},{tutorial:u}=(0,yt.Z)((0,lt.Z)(e))||{},{description:p}=u||{},h=c&&!l&&!u;return(0,_.jsx)(n.Fragment,{children:(0,_.jsx)("span",{className:"richPinInformation","data-test-id":"richPinInformation-description",children:s||r?(0,_.jsx)(xt,{tutorialDescription:p,isArticle:h,onToggle:()=>i(!0),onUpdate:a,pin:o,showMore:t}):h&&d&&(0,_.jsx)("span",{className:"richPinArticleSummary",style:{fontSize:"16px",marginBottom:12},children:(m=d,m.split(" ").map((e=>e.trim())).reduce(vt,""))})})});var m}var Pt=i(789605),wt=i(445868);function St(e){const t=(0,l.ZP)(),i=(0,Pt.Z)((0,rt.Z)(e));if(!i)return null;const{providerUrl:n,providerName:o,authorUrl:a,authorName:r,ccUrl:s}=i.attribution,{embed:{src:c,type:d,subtype:u}={}}=(0,wt.Z)((0,rt.Z)(e))||{},p=!!n&&!!o,h={author:(0,_.jsx)(A.rU,{display:"inlineBlock",href:null!=a?a:"",rel:"nofollow",underline:"hover",children:(0,_.jsx)(A.xv,{size:"200",weight:"bold",children:r})},"author"),provider:p?(0,_.jsx)(A.xu,{marginEnd:1,display:"inlineBlock",children:(0,_.jsx)(A.rU,{display:"inlineBlock",href:null!=n?n:"",rel:"nofollow",underline:"always",children:o},"provider")}):null};let m=null;return p?m=r?c&&"gif"!==d&&"pinstory"!==u?t._('Video by {{ author }} on {{ provider }}', 'closeup.attribution.videoWithAuthorProvider', 'Video source attribution on pin closeup'):t._('Photo by {{ author }} on {{ provider }}', 'closeup.attribution.photoWithAuthorProvider', 'Photo source attribution on pin closeup'):t._('from {{ provider }}', 'closeup.attribution.imageWithProvider', 'Image source attribution withprovider but no author on pin closeup'):r&&(m=c&&"gif"!==d&&"pinstory"!==u?t._('Video by {{ author }}', 'closeup.attribution.videoWithAuthor', 'Video source attribution on pin closeup when there is an author but no provider'):t._('Photo by {{ author }}', 'closeup.attribution.photoWithAuthor', 'Photo source attribution on pin closeup when there is an author but no providers')),(0,_.jsx)(A.xu,{display:"inlineBlock","data-test-id":"photo-attribution",children:(0,_.jsxs)(A.xv,{size:"200",color:"default",children:[!!m&&(0,S.nk)(m,h),s&&(0,_.jsx)(A.rU,{href:s,rel:"nofollow",children:t._('(cc)', 'creative commons link text', 'creative commons link text')})]})})}const At=e=>{const{isStoryPin:t,pin:i,onUpdate:n}=e;let o=null;if((0,Pt.Z)((0,rt.Z)(e))){const{closeup_unified_description:e}=i,t=(e||"").trim()?"{{ credit }}|":"{{ credit }}";o=(0,S.nk)(t,{credit:(0,_.jsx)(St,{pin:i,inArticle:!0},"article-pin")})}return(0,_.jsxs)(A.xv,{inline:!0,children:[o,!t&&(0,_.jsx)(bt,{onUpdate:n,pin:i})]})};var kt=i(431414),Et=i(498537),Tt=i(206663),Ct=i(343591),It=i(844897),jt=i(312013),Rt=i(485710),Dt=i(319530);function zt({templateType:e,listBlocks:t}){const i=(0,l.ZP)(),o=new Map([[null,i._('Notes', 'Closeup.StoryPinBasicsLayout.notesLayoutTitle', 'Label for button to expand notes Story Pin details')],[1,i._('Ingredients', 'Closeup.StoryPinBasicsLayout.recipeLayoutTitle', 'Label for button to expand ingredients Story Pin details')],[2,i._('Supplies', 'Closeup.StoryPinBasicsLayout.diyHomeLayoutTitle', 'Label for button to expand supplies Story Pin details')]]);return(0,_.jsx)(Rt.Z,{heading:o.get(e),children:(0,_.jsxs)(Dt.Z,{children:[(0,_.jsx)(A.xu,{marginBottom:4}),t.map(((e,t)=>{var i;return(0,_.jsxs)(n.Fragment,{children:[(0,_.jsx)(A.xv,{size:"200",weight:"bold",children:e.heading}),(null!==(i=e.blocks)&&void 0!==i?i:[]).map(((t,i)=>(0,_.jsx)(n.Fragment,{children:(0,_.jsxs)(A.xv,{size:"200",children:["• ",t.text?t.text:""]})},`item-${i}-${e.heading||"empty"}`))),(0,_.jsx)(A.xu,{marginBottom:4})]},`${e.heading||"empty"}-${t}-listHeading`)}))]})})}const Ot=({minutes:e})=>{const t=(0,l.ZP)(),i=e%60,o=Math.floor(e/60),a=(0,S.nk)(t._('{{ mins }}min', 'closeup.storyPin.basicsLayout.cookTimeUnit', 'Minutes label indicating the cooking time of this Story Pin'),{mins:i}).join(""),r=(0,S.nk)(t._('{{ hours }}hr', 'closeup.storyPin.basicsLayout.cookTimeUnit', 'Hours label indicating the cooking time of this Story Pin'),{hours:o}).join(""),s=(0,_.jsx)(A.xv,{weight:"bold",inline:!0,size:"200",children:t._('Cook time:', 'closeup.storyPin.basicsLayout.cookTimeLabel', 'Label indicating the cooking time of this Story Pin')});return(0,_.jsx)(n.Fragment,{children:(0,_.jsx)(A.xv,{inline:!0,size:"200",children:(0,S.nk)(t._('{{ label }} {{ hoursText }} {{ minsText }}', 'closeup.storyPin.basicsLayout.cookTime', 'Combined label for story pin cooktime (ex: "Cook time: 1 hour 13 minutes")'),{label:s,hoursText:r,minsText:a})})})},Lt=({servingSize:e})=>{const t=(0,l.ZP)(),i=(0,w.Z)(t.ngettext('{{servingSize}} serving', '{{servingSize}} servings', e, 'number of servings for a recipe', 'number of servings for a recipe'),{servingSize:e}),n=(0,_.jsx)(A.xv,{weight:"bold",inline:!0,size:"200",children:t._('Servings:', 'closeup.storyPin.basicsLayout.servingsLabel', 'Label indicating the servings count of this Story Pin')});return(0,_.jsx)(A.xv,{inline:!0,size:"200",children:(0,S.nk)(t._('{{ label }} {{ servingText }}', 'closeup.storyPin.basicsLayout.servings', 'Combined label for story pin servings (ex: "Servings: 10 servings")'),{label:n,servingText:i})})},Nt=({difficulty:e})=>{const t=(0,l.ZP)(),i={1:t._('Easy', 'closeup.storyPin.basicsLayout.difficulty', 'Easy difficulty level'),2:t._('Intermediate', 'closeup.storyPin.basicsLayout.difficulty', 'Intermediate difficulty level'),3:t._('Expert', 'closeup.storyPin.basicsLayout.difficulty', 'Expert difficulty level')},n=e?i[e]:null;if(!n)return null;const o=(0,_.jsx)(A.xv,{weight:"bold",inline:!0,size:"200",children:t._('Difficulty:', 'closeup.storyPin.basicsLayout.difficultyLevelLabel', 'Label indicating the difficulty level of this Story Pin')});return(0,_.jsx)(A.xv,{inline:!0,size:"200",children:(0,S.nk)(t._('{{ label }} {{ difficultyLevel }}', 'closeup.storyPin.basicsLayout.difficulty', 'Combined label for story pin difficulty (ex: "Difficulty: Intermediate")'),{label:o,difficultyLevel:n})})};function Bt({templateType:e,keyValueBlocks:t,listBlocks:i}){const{logContextEvent:o}=(0,d.v)(),a=(0,l.ZP)(),[r,s]=(0,n.useState)(!1),c=(0,n.useRef)(),u=!!c&&!!c.current&&c.current.offsetHeight>=300,p=t.map((e=>((e,t)=>{switch(e){case 0:{const e=parseInt(t,10);return e?(0,_.jsx)(Ot,{minutes:e}):null}case 1:{const e=parseInt(t,10);return(0,_.jsx)(Lt,{servingSize:e})}case 2:return(0,_.jsx)(Nt,{difficulty:t});default:return null}})(e.category_type,e.value))).filter((e=>null!=e)),{checkExperiment:h}=(0,se.F)();return h("closeup_dweb_onepin_title_and_description").anyEnabled?(0,_.jsx)(A.xu,{marginTop:2,children:(0,_.jsx)(zt,{templateType:e,listBlocks:i})}):(0,_.jsxs)(n.Fragment,{children:[(0,_.jsxs)(A.xu,{"data-test-id":"basic-layout",ref:c,maxHeight:r?void 0:300,overflow:"hidden",children:[p.length>0&&(0,_.jsx)(A.xu,{marginTop:4,children:p.map(((e,t)=>(0,_.jsx)(A.xu,{display:"flex",children:e},`$keyValue-${t}-information`)))}),i.map(((e,t)=>{var i;return(0,_.jsxs)(A.xu,{children:[(0,_.jsx)(A.xu,{paddingY:2,marginTop:2,children:(0,_.jsx)(A.xv,{size:"200",weight:"bold",children:e.heading})}),(null!==(i=e.blocks)&&void 0!==i?i:[]).map(((t,i)=>(0,_.jsxs)(A.xu,{display:"flex",children:[(0,_.jsx)(A.xu,{marginEnd:3,flex:"none",children:(0,_.jsx)(A.xv,{size:"200",children:"•"})}),(0,_.jsx)(A.xu,{overflow:"hidden",flex:"grow",children:(0,_.jsx)(A.xv,{size:"200",children:t.text?t.text:""})})]},`item-${i}-${e.heading||"empty"}`)))]},`${e.heading||"empty"}-${t}-listHeading`)}))]}),!r&&u&&(0,_.jsx)(A.xu,{marginTop:4,children:(0,_.jsx)(A.zx,{text:a._('See all', 'storyPinBasicsLayout.seeAllButton', 'label for button to exand story pin details'),onClick:()=>{s(!r),o({event_type:101,component:13801,view_type:1,element:11769})}})})]})}var Mt=i(326595),Zt=i(224496);const Ft=e=>e.type===Zt.h8.INGREDIENT,Ut=({block:e})=>{if(e.type!==Zt.h8.INGREDIENT)return null;const{amt:t,name:i,unit:n}=e;return(0,_.jsxs)("li",{style:{display:"table-row"},children:[(0,_.jsx)(A.xu,{dangerouslySetInlineStyle:{__style:{display:"table-cell",paddingRight:12}},children:!!t&&(0,_.jsxs)(A.xv,{size:"200",align:"end",children:[t," ",n]})}),(0,_.jsx)(A.xu,{dangerouslySetInlineStyle:{__style:{display:"table-cell"}},children:(0,_.jsx)(A.xv,{size:"200",children:i})})]})},Vt=({blocks:e,recipeData:t})=>{const i=(0,l.ZP)(),{checkExperiment:o}=(0,se.F)(),{serving_size:a,cooking_time:r,prep_time:s}=t,c="number"==typeof r&&"number"==typeof s?r+s:null,d=a?(0,w.Z)(i.ngettext('{{servingSize}} serving', '{{servingSize}} servings', a, 'number of servings for a recipe', 'number of servings for a recipe'),{servingSize:a}):null;return(0,_.jsxs)(n.Fragment,{children:[(0,_.jsxs)(A.xu,{marginBottom:4,marginTop:5,children:[(0,_.jsx)(A.X6,{overflow:"normal",size:"500",children:i._('Ingredients', 'Heading for list of ingredients', 'Heading for list of ingredients')}),(0,_.jsxs)(A.xu,{marginTop:2,display:"flex",alignItems:"center",children:[!!c&&(0,_.jsx)(Mt.Z,{bold:!1,color:"subtle",iconSize:14,textSize:"200",timeString:(0,ct.Z)((0,ht.X)({m:c}),i,o)||""}),!!c&&d&&(0,_.jsx)(A.xu,{paddingX:1,children:(0,_.jsx)(A.xv,{color:"subtle",size:"200",children:"•"})}),d&&(0,_.jsx)(A.xv,{color:"subtle",size:"200",children:d})]})]}),(0,_.jsx)("ul",{children:e&&e.filter(Ft).map(((e,t)=>(0,_.jsx)(Ut,{block:e},e.name||t)))})]})},Gt=e=>e.type===Zt.h8.SUPPLY,Ht=({block:e})=>{if(e.type!==Zt.h8.SUPPLY)return null;const{name:t,amt:i}=e;return(0,_.jsxs)("li",{style:{display:"table-row"},children:[(0,_.jsx)(A.xu,{dangerouslySetInlineStyle:{__style:{display:"table-cell",paddingRight:12}},children:!!i&&(0,_.jsx)(A.xv,{size:"200",align:"end",children:i})}),(0,_.jsx)(A.xu,{dangerouslySetInlineStyle:{__style:{display:"table-cell"}},children:(0,_.jsx)(A.xv,{size:"200",children:t})})]})},Wt=({blocks:e,diyData:t})=>{const i=(0,l.ZP)(),{difficulty:o}=t,a={1:i._('Easy', 'difficulty level of easy DIY tutorial', 'difficulty level of easy DIY tutorial'),2:i._('Intermediate', 'difficulty level of medium DIY tutorial', 'difficulty level of medium DIY tutorial'),3:i._('Expert', 'difficulty level of hard DIY tutorial', 'difficulty level of hard DIY tutorial')};return(0,_.jsxs)(n.Fragment,{children:[(0,_.jsxs)(A.xu,{marginBottom:4,marginTop:5,children:[(0,_.jsx)(A.X6,{overflow:"normal",size:"500",children:i._('Supplies', 'Heading for list of supplies', 'Heading for list of supplies')}),!!o&&(0,_.jsx)(A.xu,{marginTop:2,display:"flex",alignItems:"center",children:(0,_.jsx)(A.xv,{color:"subtle",size:"200",children:(0,S.nk)(i._('Difficulty: {{difficultyLevel}}', 'Label indicating the difficulty level of a tutorial', 'Label indicating the difficulty level of a tutorial'),{difficultyLevel:a[o]})})})]}),(0,_.jsx)("ul",{children:e&&e.filter(Gt).map(((e,t)=>(0,_.jsx)(Ht,{block:e},e.name||t)))})]})};function $t({detailsPage:e,metadata:t}){if(!t)return null;const{basics:i}=t;if(i&&Object.keys(i).length>0&&(e=>!!e.key_value_blocks&&e.key_value_blocks.length>0||!!e.list_blocks&&e.list_blocks.length>0)(i))return(0,_.jsx)(Bt,{templateType:t.template_type,keyValueBlocks:i.key_value_blocks||[],listBlocks:i.list_blocks||[]});switch(t.template_type){case 1:return!!t.recipe_data&&(0,_.jsx)(Vt,{blocks:null==e?void 0:e.blocks,recipeData:t.recipe_data});case 2:return!!t.diy_data&&(0,_.jsx)(Wt,{blocks:null==e?void 0:e.blocks,diyData:t.diy_data});default:return null}}var Kt=i(799405),qt=i(231947);const Yt=(0,n.lazy)((()=>i.e(28689).then(i.bind(i,200915)))),Xt=(0,n.lazy)((()=>i.e(34209).then(i.bind(i,209435)))),Jt=(0,n.lazy)((()=>i.e(59559).then(i.bind(i,4255))));function Qt({currentIdeaPinId:e,hasXYcoordinates:t,ideaPinStelaCategories:i=[],isCommentSectionOpen:n,isInStream:o,inStlPinnerExp:r,isStoryPin:s,isDeletedStoryPin:l,orbacActingAs:c,isORBACBeta:d,orbacSubjectId:u,onCommentSectionClick:p,onCloseupBodyUpdate:h,pin:m,viewer:g,shouldShowStlCarouselForOwnPin:x,storyPinTaggedProducts:y=[],taggedProducts:v,trafficSource:b,viewParameterType:P,viewType:w,closeupContext:S,isLoadingNewlyCreatedComment:k,viewParameter:E,detailsScrollContainerRef:T}){var C,I,j,R;const{isShopTheLook:D,showCreatorCard:z,creatorId:O,showCanonicalComments:L,showReactions:N,storyPinDetailsArgs:B}=a.y8(m,!!l),M=(0,at.Z)((0,st.Z)((0,lt.Z)((0,rt.Z)({pin:m})))),Z=(v||[]).filter((e=>(0,Tt.Z)(e))),F=(0,qt.q6)(g,null==m||null===(C=m.pinner)||void 0===C?void 0:C.id,c),{descriptionPaneWidth:U}=S,V=U-2*De.g9,G=!s&&(r&&!(0,f.Gy)(m)&&D&&Z.length>0||x)&&((null===(I=m.access)||void 0===I?void 0:I.includes("tag"))||F&&d)&&!(0,Ct.Z)(m),H=s&&y&&y.length>0,W=m.is_call_to_create&&(m.call_to_create_responses_preview_image_urls||[]).length>0,$=!(null===(j=m.call_to_create_source_pin)||void 0===j||!j.id||!m.ctc_source_pin_creator),K=(m||{}).board||{},q=a.VO(c,m,g),{checkExperiment:Y}=(0,se.F)(),X=Y("closeup_dweb_onepin_title_and_description").anyEnabled;return(0,_.jsxs)(A.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",flex:"grow",children:[(0,_.jsx)(A.kC,{direction:"row",alignItems:"baseline",justifyContent:"start",children:(0,_.jsx)(A.xu,{maxWidth:V,children:(0,_.jsx)(At,{isStoryPin:s,pin:m,onUpdate:h})})}),$&&(0,_.jsx)(A.xu,{marginTop:3,marginBottom:3,children:(0,_.jsx)(Ne,{pin:m.call_to_create_source_pin,creator:m.ctc_source_pin_creator})}),z&&(0,_.jsx)(A.xu,{marginBottom:X?4:void 0,children:(0,_.jsx)(kt.Z,{creatorId:O,pin:m,viewer:g,viewType:w,viewParameter:E,isORBACProfileManager:F})}),!X&&N&&!!m.reaction_counts&&!s&&(0,_.jsx)(A.xu,{"data-test-id":"reactions",children:(0,_.jsx)(ie.Z,{pinId:m.id,reactionByMe:m.reaction_by_me||0,reactionCounts:m.reaction_counts})}),!s&&!!M&&(0,_.jsx)(It.Z,{columnGap:(0,_.jsx)(jt.Z,{}),recipeProps:M}),s&&!!B&&(0,_.jsx)($t,{detailsPage:B.detailsPage,metadata:B.metadata}),!r&&D&&!x&&(0,_.jsx)(ue.Z,{name:"SafeSuspense_CloseupBody_STLCloseupCarousel",children:(0,_.jsx)(Re.Z,{children:(0,_.jsx)(Yt,{pin:m,trafficSource:b})})}),(G||H)&&(0,_.jsx)(ue.Z,{name:"SafeSuspense_CloseupBody_StlCloseupModule",children:(0,_.jsx)(Re.Z,{children:(0,_.jsx)(Xt,{closeupImageSignature:m.image_signature,isOwnCreatedPin:x,pin:m,pinId:m.id,taggedObjects:H?y:Z,type:G?"stl":"story",viewParameter:E})})}),i.length>0&&(o&&e===m.id||!o)&&(0,_.jsx)(ue.Z,{name:"SafeSuspense_CloseupBody_StelaCloseupModule",children:(0,_.jsx)(Re.Z,{children:(0,_.jsx)(Kt.L,{value:{categories:i,pin:m,pinId:m.id,viewParameter:P,viewType:w},children:(0,_.jsx)(Jt,{trafficSource:b})})})}),W&&(0,_.jsx)(ue.Z,{name:"CallToCreateResponseCard",children:(0,_.jsx)(A.xu,{marginTop:8,children:(0,_.jsx)(Ve,{pinId:m.id,responseCount:m.call_to_create_responses_count})})}),q&&(0,_.jsx)(Et.Z,{boardId:K.id,isGroupNote:a.p_(m,g),pinId:m.id,pinNoteText:null==m||null===(R=m.pin_note)||void 0===R?void 0:R.text}),!l&&!(t&&r)&&L&&(0,_.jsx)(ue.Z,{name:"CanonicalCard",children:(0,_.jsx)(A.xu,{marginTop:10,marginBottom:6,children:(0,_.jsx)(et,{scrollContainerRef:T,isShopTheLook:D,isCommentSectionOpen:n,isLoadingNewCreatedComment:k,pin:m,onCommentSectionClick:p,isORBACProfileManager:F,orbacSubjectId:u})})})]})}const ei={__style:{marginBottom:"0",marginTop:"0",maxWidth:De.KP,minWidth:De.Gg}};function ti({children:e,isWideVideo:t}){const{showCloseupContentRight:i,maxWidth:n,paneWidth:o}=(0,Ge.x4)();return(0,_.jsx)(A.xu,{display:"flex",rounding:8,width:"100%",height:"100%",maxWidth:i||t?n:o,position:"relative","data-test-id":"closeup-lego-container",children:(0,_.jsx)("div",{onClick:e=>{e.stopPropagation()},style:{display:"flex"},children:(0,_.jsx)(A.xu,{dangerouslySetInlineStyle:{__style:{cursor:"auto",paddingTop:10}},display:"flex",children:(0,_.jsx)(A.xu,{dangerouslySetInlineStyle:t?ei:{},display:"flex",children:e})})})})}var ii=i(273690),ni=i(71052),oi=i(829407),ai=i(977558);const ri=`calc(100vh - ${ai.cI}px - 16px)`;var si=i(127897),li=i(717615),ci=i(512076),di=i(491073),ui=i(121093),pi=i(112690);function hi(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class _i extends n.Component{constructor(...e){super(...e),hi(this,"state",{flyoutType:""}),hi(this,"componentDidUpdate",(()=>{this.state.flyoutType&&this.setFlyoutStyle()})),hi(this,"logFeedback",(e=>{const{pin:t,logContextEvent:i}=this.props,{aggregated_pin_data:n,board:o,id:a,image_signature:r,is_downstream_promotion:s,is_promoted:l,link:c,recommendation_reason:d}=t,u=o?o.owner:"",p={pin_is_shop_the_look:(n?n.is_shop_the_look:"")?"1":"0",board_owner_id:u?u.id:"",pin_recommendation_reason:d,pin_is_promoted:l?"1":"0"};i({view_type:11,view_parameter:195,component:13186,event_type:102,element:e?10615:10616,aux_data:{board_id:o?o.id:"",is_downstream_promoted_pin:s?"1":"0",url:c||"",pin_id:a,image_signature:r,is_promoted_pin:l?"1":"0",commerce_data:JSON.stringify(p)},object_id_str:a})})),hi(this,"flyoutParentRef",(0,n.createRef)()),hi(this,"handleEgSurveyDismiss",((e,t)=>{this.setState({flyoutType:""}),this.logFeedback(e),t()})),hi(this,"handleEgSurveyClick",(e=>{this.setState({flyoutType:e})})),hi(this,"setFlyoutStyle",(()=>{const e=this.flyoutParentRef&&this.flyoutParentRef.current&&this.flyoutParentRef.current.children[0];if(e){e.style.zIndex=`${ke.fS}`;const t=e.children[0];t&&(t.style.border="transparent")}}))}render(){const{imageContainerRef:e,maybeLinkRef:t,legoLinkClickthroughAnchorRef:i}=this.props,{flyoutType:n}=this.state;let o;"maybeLink"===n?o=t:"legoMaybeLink"===n?o=i:"imageContainer"===n&&(o=e);const a={height:this.flyoutParentRef&&this.flyoutParentRef.current&&this.flyoutParentRef.current.children[0]?this.flyoutParentRef.current.children[0].clientHeight:0,width:230},r="imageContainer"===n?"left":"right",s=o&&o.current?o.current.getBoundingClientRect():null,l=!!s&&((e,t,i)=>{const n=window.innerHeight,o=window.innerWidth-e.width-24-i.right,a=i.left-e.width-24;return!(i.top<8||n-i.bottom<8)&&!!(t&&{right:o,left:a}[t]>0)})(a,r,s);return n&&l?(0,_.jsx)(ui.Z,{eligibleIds:[501145],placementId:12,children:({complete:e})=>(0,_.jsx)(A.xu,{ref:this.flyoutParentRef,position:"absolute",children:(0,_.jsx)(A.J2,{anchor:o?o.current:null,idealDirection:"imageContainer"===n?"left":"right",onDismiss:()=>{},size:"sm",children:(0,_.jsxs)(A.xu,{padding:4,children:[(0,_.jsx)(A.xv,{weight:"bold",children:this.props.i18n._('Is this site useful?', 'Ask user about click through link usefulness on a Small Flyout on closeup', 'Ask user about click through link usefulness on a Small Flyout on closeup')}),(0,_.jsx)(A.xv,{children:this.props.i18n._('Your feedback helps make Pinterest better.', 'Ask user about usefulness to improve click through links quality', 'Ask user about usefulness to improve click through links quality')}),(0,_.jsxs)(A.xu,{display:"flex",direction:"row",marginTop:4,width:"198px",children:[(0,_.jsx)(A.xu,{column:6,marginEnd:1,children:(0,_.jsx)(A.zx,{fullWidth:!0,size:"sm",color:"gray",text:this.props.i18n._('No', 'Keep it short, shown on a button to indicate whether its helpful or not', 'Keep it short, shown on a button to indicate whether its helpful or not'),onClick:()=>this.handleEgSurveyDismiss(!1,e)})}),(0,_.jsx)(A.xu,{column:6,marginStart:1,children:(0,_.jsx)(A.zx,{fullWidth:!0,size:"sm",color:"gray",text:this.props.i18n._('Yes', 'Keep it short, shown on a button to indicate whether its helpful or not', 'Keep it short, shown on a button to indicate whether its helpful or not'),onClick:()=>this.handleEgSurveyDismiss(!0,e)})})]})]})})})}):""}}const mi=(0,n.forwardRef)(((e,t)=>{const i=(0,l.ZP)(),n=(0,pi.Z)();return(0,_.jsx)(_i,{...e,ref:t,i18n:i,logContextEvent:n})}));var gi=i(681227),xi=i(296005),fi=i(680333);const yi=(0,n.lazy)((()=>Promise.all([i.e(97270),i.e(76030),i.e(46760),i.e(92982)]).then(i.bind(i,576070)))),vi=(0,n.lazy)((()=>Promise.all([i.e(76030),i.e(72048),i.e(21177)]).then(i.bind(i,319875))));function bi({isWideVideo:e,didShortClickThrough:t,webLinkSurveyState:{webLinkSurveyRef:i,imageContainerRef:r,legoLinkClickthroughAnchorRef:s,maybeLinkRef:c},pin:d,outerBodyStyle:u,isStoryPin:p,trafficSource:h,visualContentContainer:g,isCloseupMaximized:f,data:y,outerPaddingSize:v=De.g9,isInStream:w,metadataContainerRef:S,onClickThrough:k,viewParameter:E,metadata:T,viewer:C,orbacSubjectId:I,disableCommentComposer:j=!1,setIsLoadingNewlyCreatedComment:R=(()=>{}),relatedModulesResource:D,descriptionContentMaxHeight:z,marginBottom:O=0,isDeletedStoryPin:L,onSaveButtonClick:N,showRepinOnInitialRender:B,goBack:M,onUpdate:Z,routePush:F,selectedVariantPin:U=null,closeupActionBarMaxWidth:V,visualContentContainerRef:G}){var H,W,$;const K=(0,n.useRef)(null),{descriptionPaneWidth:q}=(0,Ge.x4)(),Y=(0,o.useSelector)((({changeBoardFromToast:e})=>e))||{},{checkExperiment:X}=(0,se.F)(),J=(0,l.ZP)(),Q=(0,Be.useHistory)(),ee=(0,xi._T)(),te=(0,li.Z)(),{pinner:ne={}}=d,oe=(0,qt.q6)(C,ne.id,te),re=(0,x.Z)(d.is_eligible_for_pdp_plus),le=a.Ek(p,ee,d,re),ce=(0,_.jsx)(m,{orbacSubjectId:I,pin:d,setIsLoadingNewlyCreatedComment:R}),de=!j&&d.is_eligible_for_aggregated_comments&&(!oe||I),{showLeadPinStdAlpha:he,showLeadPinStdBeta:_e}=(0,ci.Z)(d),me=he||_e,ge=0!==Object.keys(d).length,xe=X("closeup_dweb_onepin_title_and_description").anyEnabled,fe=(0,gi.J6)(d,!!L),ye=(null==G||null===(H=G.current)||void 0===H?void 0:H.clientHeight)||0;return(0,_.jsxs)(A.xu,{height:"100%",marginBottom:O,children:[(0,_.jsx)(ti,{isWideVideo:e,children:(0,_.jsxs)(A.xu,{display:"flex",position:"relative",children:[!t&&(0,_.jsx)(mi,{ref:i,imageContainerRef:r,legoLinkClickthroughAnchorRef:s,maybeLinkRef:c,pin:d}),(0,_.jsx)(A.xu,{color:ge?"default":"transparent",dangerouslySetInlineStyle:{__style:null!=u?u:{}},display:"flex",position:"relative",rounding:2,children:(0,_.jsxs)(A.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[(0,_.jsx)(ii.Z,{isStoryPin:p,isWideVideo:e,children:ge?(0,_.jsx)(b,{pinId:d.id,pinImageUrl:d.images&&(null===(W=d.images["236x"])||void 0===W?void 0:W.url),closeupNavigationType:(0,pe.Z)(Q,h),children:me?(0,_.jsx)(Le,{pin:d,data:!!y,goBack:M,onUpdate:Z,viewParameter:E,onSaveButtonClick:N,showRepinOnInitialRender:B,actionBarContainerRef:K,trafficSource:h,onClickThrough:k,isStoryPin:p,descriptionPaneWidth:q,metadataContainerRef:S,visualContentContainer:g,visualContentContainerHeight:ye,showLeadPinStdAlpha:he,showLeadPinStdBeta:_e}):(0,_.jsxs)(n.Fragment,{children:[g,(0,_.jsx)(A.xu,{"data-test-id":"description-content-container",display:"flex",direction:"column",height:f?0:"100%",maxHeight:p?void 0:z,maxWidth:e?De.KP:void 0,width:e?void 0:q,children:y?(0,_.jsxs)(n.Fragment,{children:[(0,_.jsxs)(A.xu,{dangerouslySetInlineStyle:{__style:{paddingRight:v,paddingLeft:De.g9}},direction:"column",display:"flex",flex:"grow",children:[!w&&(0,_.jsx)(ue.Z,{name:"SafeSuspense_CloseupBody_CloseupActionBar",children:(0,_.jsx)(Re.Z,{children:(0,_.jsx)(vi,{goBack:M,gridDescription:d.description,isDeletedStoryPin:!!L,isOnSecretBoard:!1,onEditSubmit:Z,pin:U||d,routePush:F,viewParameter:E,isORBACProfileManager:oe,onSaveButtonClick:N,showRepinOnInitialRender:B,isStoryPin:p,actionBarContainerRef:K,outerPaddingSize:v,maxWidth:V})})}),(0,_.jsx)(A.xu,{alignItems:"stretch",display:"flex",flex:"grow",justifyContent:"start",direction:"column",overflow:"auto",ref:S,children:(0,_.jsxs)(A.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[xe&&!p&&fe&&!!d.reaction_counts&&(0,_.jsx)(A.xu,{"data-test-id":"reactions",children:(0,_.jsx)(ie.Z,{pinId:d.id,reactionByMe:d.reaction_by_me||0,reactionCounts:d.reaction_counts})}),le&&(0,_.jsxs)(A.xu,{direction:"row",display:"flex","data-test-id":"maybe-clickthrough-link",children:[(0,_.jsx)(ae.q,{children:({hovered:e,onMouseEnter:t,onMouseLeave:i})=>{var n;return(0,_.jsx)(P.Z,{hovered:e,pin:d,trafficSource:h,viewType:3,children:(0,_.jsx)(A.xu,{onMouseEnter:t,onMouseLeave:i,children:(0,_.jsx)(je,{actionBarHeight:(null===(n=K.current)||void 0===n?void 0:n.offsetHeight)||De.Ie,onClickThrough:k,pin:d,isStoryPin:p})})})}}),(0,_.jsx)(A.xu,{ref:s,marginEnd:-7,marginStart:6,width:4})]}),T]})})]}),de&&(0,_.jsx)(A.Le,{bottom:0,children:ce})]}):(0,_.jsx)(A.xu,{alignItems:"center",display:"flex",height:"100%",justifyContent:"center",paddingY:4,children:(0,_.jsx)(A.$j,{accessibilityLabel:J._('Pin details loading', ' - ', ' -- '),show:!0})})})]})}):(0,_.jsx)(A.kC,{alignItems:"center",height:300,justifyContent:"center",width:"100%",children:(0,_.jsx)(A.$j,{accessibilityLabel:J._('Pin loading', ' - ', ' -- '),show:!0})})}),t&&!d.is_promoted&&D.data&&D.data.length>0&&(0,_.jsx)(ni.C,{})]})})]})}),Y.shouldOpenModal&&Y.newPin&&(null===($=Y.originalPin)||void 0===$?void 0:$.id)===d.id&&(0,_.jsx)(ue.Z,{name:"SafeSuspense_CloseupBody_ChangeBoardModal",children:(0,_.jsx)(Re.Z,{children:(0,_.jsx)(yi,{experience:Y.experience,newPin:Y.newPin})})})]})}function Pi({disableRelatedResource:e=!1,relatedResourceOptions:t,hasXYcoordinates:i,isEligibleForStlFlyout:o,isStoryPin:r,isWideVideo:s,pin:l,searchQuery:c,taggedProducts:d,trafficSource:u,viewParameterType:p,onClickThrough:h,data:m,didShortClickThrough:g,goBack:x,isCloseupMaximized:f=!1,isInStream:y=!1,isDeletedStoryPin:v,onSaveButtonClick:b,onUpdate:P,outerBodyStyle:w,routePush:S,showRepinOnInitialRender:A,viewType:k,ideaPinStelaCategories:E,currentIdeaPinId:T,isCommentSectionOpen:C,inStlPinnerExp:I,onCommentSectionClick:j,onCloseupBodyUpdate:R,shouldShowStlCarouselForOwnPin:D,storyPinTaggedProducts:z}){const[O,L]=(0,n.useState)(!1),M=(0,N.Z)(e?null:{name:t.name,options:t.options}),Z=(0,n.useRef)(null),F=(0,Ge.x4)(),U=(0,B.Z)(),{checkExperiment:V}=(0,se.F)(),{anyEnabled:G}=V("web_m10n_business_access_orbac_www"),{anyEnabled:H}=V("web_m10n_business_access_orbac_ga"),W=(0,li.Z)(),$=H?(0,qt.lJ)(U,W):"",K=(0,fi.Z)(),q=(0,si.Z)({metadataContainerRef:Z}),Y=function(){const[e,t]=(0,n.useState)(ri),i=(0,n.useRef)(null);return(0,oi.Z)((()=>{var e;if(!window)return;const n=window.innerHeight-ai.cI-16,o=(null===(e=i.current)||void 0===e?void 0:e.clientHeight)||0;t(n>o?ri:o)})),{descriptionContentMaxHeight:e,visualContentContainerRef:i}}(),X=(0,a.CK)(l,p),{setClickthroughComponentForSurvey:J,imageContainerRef:Q}=K,ee=(0,_.jsx)(di.Z,{hasXYcoordinates:i,isEligibleForStlFlyout:o,isStoryPin:r,isWideVideo:s,pin:l,searchQuery:c,taggedProducts:d,trafficSource:u,viewParameterType:p,visualContentContainerRef:Y.visualContentContainerRef,imageContainerRef:Q,handleImageClickThrough:()=>h({wasImageClicked:!0}),setClickthroughComponentForSurvey:J,isShortImage:q}),te=(0,_.jsx)(Qt,{currentIdeaPinId:T,hasXYcoordinates:i,ideaPinStelaCategories:E,isCommentSectionOpen:C,isInStream:y,inStlPinnerExp:I,isStoryPin:r,isDeletedStoryPin:v,orbacActingAs:W,isORBACBeta:G,orbacSubjectId:$,onCommentSectionClick:j,onCloseupBodyUpdate:R,pin:l,viewer:U,shouldShowStlCarouselForOwnPin:D,storyPinTaggedProducts:z,taggedProducts:d,trafficSource:u,viewParameterType:p,viewType:k,closeupContext:F,isLoadingNewlyCreatedComment:O,viewParameter:X,detailsScrollContainerRef:Z.current}),ie=(0,_.jsx)(de,{pin:l,isStoryPin:r,isDeletedStoryPin:v,trafficSource:u,details:te,orbacActingAs:W,viewer:U,viewParameter:X});return(0,_.jsx)(bi,{isWideVideo:s,didShortClickThrough:g,webLinkSurveyState:K,pin:l,outerBodyStyle:w,isStoryPin:r,trafficSource:u,visualContentContainer:ee,isCloseupMaximized:f,data:m,isInStream:y,metadataContainerRef:Z,onClickThrough:()=>{h&&h({componentType:129}),K.setClickthroughComponentForSurvey("legoMaybeLink")},viewParameter:X,viewType:k,viewer:U,orbacSubjectId:$,setIsLoadingNewlyCreatedComment:L,relatedModulesResource:M,descriptionContentMaxHeight:Y.descriptionContentMaxHeight,metadata:ie,onSaveButtonClick:b,showRepinOnInitialRender:A,goBack:x,onUpdate:P,routePush:S,visualContentContainerRef:Y.visualContentContainerRef})}},431414:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(426975),o=i(491431),a=i(784590),r=i(785893);function s({creatorId:e,pin:t,viewer:i,viewType:s=3,viewParameter:l=156,isORBACProfileManager:c}){const{data:d}=(0,a.Z)({name:"UserResource",options:{field_set_key:"grid_item",user_id:e}});return(0,r.jsx)(n.Z,{children:(0,r.jsx)(o.Z,{creatorId:e,viewer:i,slotIndex:0,viewType:s,viewParameter:l,componentType:126,impressionType:"User",loggingId:e,pin:t,officialUser:d,isORBACProfileManager:c})})}},431911:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(737022);var o=i(92261);function a({carouselData:e,mainImage:t,maxCloseupImageWidth:i,imageToDisplayWidthRatio:a=1,shouldPadImage:r=!1}){const s=i-o.d2,l=r?s:i,c=e?a:1,d=function(e={},t){var i;const o=[e,...(null==t||null===(i=t.carousel_slots)||void 0===i?void 0:i.map((e=>{var t,i,o,a,r,s;return(0,n.Z)(e.images)||((i=null===(t=e.videos)||void 0===t?void 0:t.video_list)?null!==(o=i.V_720P)&&void 0!==o&&o.url?i.V_720P:null!==(a=i.V_HLSV4)&&void 0!==a&&a.url?i.V_HLSV4:null!==(r=i.V_HLSV3_MOBILE)&&void 0!==r&&r.url?i.V_HLSV3_MOBILE:null!==(s=i.V_HLSV3_WEB)&&void 0!==s&&s.url?i.V_HLSV3_WEB:null:null)})).filter((e=>!!e)))||[]].map((({width:e=1,height:t=1})=>e/t));return Math.min(...o)}(t,e),u=l*c;return{width:l,height:Math.floor(u/d)}}},498537:(e,t,i)=>{i.d(t,{Z:()=>I});var n=i(667294),o=i(883561),a=i(898781),r=i(883119),s=i(785893);function l({pinNoteText:e}){const t=(0,a.ZP)(),[i,l]=(0,n.useState)(!1);return(0,s.jsx)(r.xu,{maxWidth:360,dangerouslySetInlineStyle:{__style:{whiteSpace:"pre-line"}},"data-test-id":"closeup-pin-note-text",children:!i&&e.length>125?(0,s.jsxs)(r.xu,{children:[(0,s.jsx)(r.xv,{inline:!0,size:"200",children:(0,o.ZP)(e,125)}),(0,s.jsx)(r.xu,{display:"inlineBlock",marginStart:1,children:(0,s.jsx)(r.iP,{onTap:()=>{l(!0)},children:(0,s.jsx)(r.xv,{inline:!0,size:"200",weight:"bold",children:t._('More', 'closeup.closeupPinNoteText.moreText', 'Option to expand a Pin note preview and see entire description')})})})]}):(0,s.jsx)(r.xv,{size:"200",children:e})})}var c=i(758119),d=i(333312),u=i(702664),p=i(121151);function h({onCancel:e,onDelete:t,onDismiss:i}){const n=(0,a.ZP)();return(0,s.jsx)(p.ZP,{heading:n._('Delete this note?', 'closeup.deleteNoteConfirmation.modalHeading', 'Confirm the user wants to delete the Pin note'),accessibilityModalLabel:n._('Delete this note?', 'closeup.deleteNoteConfirmation.modalAccessibilityLabel', 'Accessiblility label to confirm the user wants to delete the Pin note'),size:"sm",onDismiss:i,footer:(0,s.jsxs)(r.kC,{alignItems:"stretch",justifyContent:"center",children:[(0,s.jsx)(r.xu,{paddingX:1,children:(0,s.jsx)(r.zx,{fullWidth:!0,onClick:e,text:n._('Cancel', 'closeup.deleteNoteConfirmation.cancelButton', 'Text on button used to cancel deletion of Pin note')})}),(0,s.jsx)(r.xu,{paddingX:1,children:(0,s.jsx)(r.zx,{fullWidth:!0,color:"red",onClick:t,text:n._('Delete', 'closeup.deleteNoteConfirmation.deleteButton', 'Text on button used to delete Pin note')})})]}),children:(0,s.jsx)(r.xu,{paddingX:12,children:(0,s.jsx)(r.xv,{align:"center",children:n._('The Pin will remain on your board, but the text in the note will be gone for good', 'closeup.deleteNoteConfirmation.bodyText', 'Description of what happens when user deletes a note on a Pin')})})})}function _({onCancel:e,onDismiss:t}){const i=(0,a.ZP)();return(0,s.jsx)(p.ZP,{heading:i._('Discard your changes?', 'closeup.discardChangesConfirmation.modalHeading', 'Confirm the user wants to discard changes made to Pin note'),accessibilityModalLabel:i._('Discard your changes?', 'closeup.discardChangesConfirmation.modalAccessibilityLabel', 'Accessibility label to confirm the user wants to discard changes made to Pin'),size:"sm",onDismiss:t,footer:(0,s.jsxs)(r.kC,{alignItems:"stretch",justifyContent:"center",children:[(0,s.jsx)(r.xu,{paddingX:1,children:(0,s.jsx)(r.zx,{fullWidth:!0,onClick:e,text:i._('Cancel', 'closeup.discardChangesConfirmation.cancelButton', 'Text on button used to cancel discarding changes to Pin note')})}),(0,s.jsx)(r.xu,{paddingX:1,children:(0,s.jsx)(r.zx,{fullWidth:!0,color:"red",onClick:t,text:i._('Discard', 'closeup.discardChangesConfirmation.discardButton', 'Text on button used to discard changes made to Pin note')})})]}),children:(0,s.jsx)(r.xu,{paddingX:12,children:(0,s.jsx)(r.xv,{align:"center",children:i._('The Pin will remain on your board, but the changes in this note won\u2019t be saved', 'closeup.discardChangesConfirmation.bodyText', 'Description of what happens when user discards changes made to note on a Pin')})})})}var m=i(780280);function g({isGroupNote:e,onClickCancel:t}){const i=(0,a.ZP)(),{isRTL:n}=(0,m.B)();return(0,s.jsxs)(r.xu,{display:"flex",justifyContent:"center",alignItems:"center",position:"relative",paddingY:6,paddingX:4,children:[(0,s.jsx)(r.xu,{maxWidth:400,children:(0,s.jsx)(r.X6,{align:"center",size:"500",children:e?i._('Add note to group', 'closeup.PinNoteEditModal.groupHeading', 'Heading for modal which allows user to add note to Pin on group board'):i._('Add note to self', 'closeup.PinNoteEditModal.heading', 'Heading for modal which allows user to add note to Pin')})}),(0,s.jsx)(r.xu,{position:"absolute",top:!0,left:n,right:!n,paddingY:6,paddingX:6,children:(0,s.jsx)(r.hU,{accessibilityLabel:i._('Cancel changes', 'closeup.PinNoteEditModal.cancelIconButton', 'Accessibility label for cancel changes button'),icon:"cancel",iconColor:"darkGray",onClick:t,size:"md"})})]})}var x=i(717615),f=i(19121),y=i(231947),v=i(414327),b=i(482567),P=i(407043),w=i(558209);function S({initialText:e,isGroupNote:t,onDismiss:i,pinId:o}){const{logContextEvent:l}=(0,P.v)(),c=(0,a.ZP)(),d=(0,u.useDispatch)(),[m,S]=(0,n.useState)(null!=e?e:""),[A,k]=(0,n.useState)(!1),[E,T]=(0,n.useState)(!1),C=(0,n.useRef)(null),I=(0,f.Z)(),j=(0,x.Z)(),R=(0,y.lJ)(I,j),D=t?c._('Add a private note for collaborators\u2014like \u201CShow Tony?\u201D or \u201CNeeds more salt\u201D\u2014to remember ideas about this Pin', 'closeup.PinNoteEditModal.groupPlaceholderText', 'Placeholder text on group Pin note'):c._('Add a private note\u2014like \u201CShow Tony?\u201D or \u201CNeeds more salt\u201D\u2014to remember your ideas about this Pin', 'closeup.PinNoteEditModal.placeholderText', 'Placeholder text on Pin note');(0,n.useEffect)((()=>{l({event_type:13,object_id_str:o,view_type:478})}),[]);const z=()=>{l({event_type:101,element:m.length>0?12108:12106,object_id_str:o,view_type:478}),e&&d((0,b._)(o,e,null,R)),d((0,v.jB)("PinResource",(0,w.Tr)(o,!0,R))),i()};return(0,n.useEffect)((()=>{C.current&&(C.current.style.height="auto",C.current.style.height=C.current.scrollHeight+"px")}),[m,C.current,A,E]),E?(0,s.jsx)(_,{onCancel:()=>{T(!1)},onDismiss:()=>{l({event_type:101,element:12109,object_id_str:o,view_type:478}),i()}}):A?(0,s.jsx)(h,{onCancel:()=>{k(!1)},onDelete:z,onDismiss:i}):(0,s.jsx)(p.ZP,{accessibilityModalLabel:c._('Edit Pin note', 'closeup.PinNoteEditModal.modalAccessibilityLabel', 'Accessiblility label for modal used to edit Pin note'),heading:(0,s.jsx)(g,{isGroupNote:t,onClickCancel:()=>{e&&m!==e?T(!0):i()}}),onDismiss:i,footer:(0,s.jsxs)(r.kC,{alignItems:"stretch",justifyContent:"end",children:[""!==m&&(0,s.jsx)(r.xu,{flex:"grow",children:(0,s.jsx)(r.hU,{accessibilityLabel:c._('Delete note', 'closeup.PinNoteEditModal.trashcanIconButton', 'Accessibility label for delete note button'),iconColor:"darkGray",icon:"trash-can",onClick:()=>{l({event_type:101,element:12105,object_id_str:o,view_type:478}),k(!0)},size:"md"})}),(0,s.jsx)(r.xu,{children:(0,s.jsx)(r.zx,{color:"red",text:c._('Done', 'closeup.PinNoteEditModal.doneButton', 'Done button for Pin note edit modal'),onClick:m.length>0?()=>{l({event_type:101,element:12106,object_id_str:o,view_type:478}),(0,w.aU)(e,m)&&d((0,b._)(o,e,m,R)),d((0,v.jB)("PinResource",(0,w.Tr)(o,!0,R))),i()}:z})})]}),size:"sm",children:(0,s.jsxs)(r.xu,{paddingX:8,height:220,children:[(0,s.jsx)("textarea",{className:"PinNoteInput",id:"pinNoteText",maxLength:500,onChange:e=>{S(e.currentTarget.value)},placeholder:D,ref:C,value:m}),m.length>=500&&(0,s.jsx)(r.xu,{paddingY:1,children:(0,s.jsx)(r.xv,{color:"error",size:"200",weight:"bold",children:c._('Character limit reached', 'closeup.PinNoteEditModal.warningText', 'Text to inform user they have reached the length limit on Pin note')})})]})})}var A=i(784590),k=i(615071),E=i(304903),T=i(814197),C=i(773285);function I({boardId:e,isGroupNote:t,pinId:i,pinNoteText:o}){const{logContextEvent:u}=(0,P.v)(),p=(0,a.ZP)(),{data:h}=(0,A.Z)({name:"BoardResource",options:{field_set_key:"pin_note",board_id:e}}),_=(0,n.useRef)(null),[m,g]=(0,n.useState)(!1),[x,f]=(0,n.useState)(0),y=()=>{f((0,E.S$)())},{checkExperiment:v}=(0,C.F)(),b=v("closeup_dweb_onepin_title_and_description").anyEnabled;(0,n.useEffect)((()=>(window.addEventListener("scroll",y),()=>{window.removeEventListener("scroll",y)})));const w=()=>(0,s.jsx)(k.Z,{in:0===x,timeout:300,classNames:"CloseupPinNoteTooltip",unmountOnExit:!0,children:(0,s.jsx)(r.xu,{zIndex:T.km,children:(0,s.jsx)(d.default,{anchor:_.current,experienceIds:[503219,502828],flyoutSize:312,idealDirection:"up",placementId:12,showCaret:!0,textAlign:"center",textWeight:"bold"})})}),I=()=>{g(!1)},j=t?p._('Notes added here will be private to people on this board', 'closeup.closeupPinNote.groupPlaceholderText', 'Placeholder text for private group note on Pin'):p._('What do you want to remember about this Pin?', 'closeup.closeupPinNote.placeholderText', 'Placeholder text for private note on Pin');return b?(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(r.xu,{marginTop:5,marginBottom:5,children:(0,s.jsxs)(r.kC,{direction:"row",alignItems:"center",children:[(0,s.jsxs)(r.xu,{children:[(0,s.jsxs)(r.kC,{alignItems:"center",direction:"row",justifyContent:"start",children:[(0,s.jsx)(r.xu,{ref:_,children:(0,s.jsx)(r.xv,{weight:"bold",children:t?p._('Note to group', 'closeup.closeupPinNote.groupTitle', 'Title for private group note on Pin'):p._('Note to self', 'closeup.closeupPinNote.title', 'Title for private note on Pin')})}),t&&h&&(0,s.jsx)(r.xu,{marginStart:1,children:(0,s.jsx)(c.Z,{board:h,isCompact:!0})})]}),(0,s.jsx)(r.xu,{display:"flex",flex:"grow",marginEnd:2,children:(0,s.jsx)(r.xv,{size:"200",children:o?(0,s.jsx)(l,{pinNoteText:o}):j})})]}),(0,s.jsx)(r.kC,{justifyContent:"center",minWidth:110,children:(0,s.jsx)(r.zx,{size:"lg",text:o?p._('Edit', 'closeup.closeupPinNote.editButton', 'Text on button used to edit private note on Pin'):p._('Add note', 'closeup.closeupPinNote.addNoteButton', 'Text on button used to add private note on Pin'),onClick:()=>{u({event_type:101,component:13769,element:o?12104:12103,object_id_str:i,view_type:3}),g(!0)}})})]})}),m&&(0,s.jsx)(S,{initialText:o,isGroupNote:t,onDismiss:I,pinId:i}),_&&w()]}):(0,s.jsxs)(n.Fragment,{children:[(0,s.jsxs)(r.xu,{marginTop:5,marginBottom:5,children:[(0,s.jsxs)(r.kC,{alignItems:"center",direction:"row",justifyContent:"start",children:[(0,s.jsx)(r.xu,{ref:_,children:(0,s.jsx)(r.xv,{weight:"bold",children:t?p._('Note to group', 'closeup.closeupPinNote.groupTitle', 'Title for private group note on Pin'):p._('Note to self', 'closeup.closeupPinNote.title', 'Title for private note on Pin')})}),t&&h&&(0,s.jsx)(r.xu,{marginStart:1,children:(0,s.jsx)(c.Z,{board:h,isCompact:!0})})]}),(0,s.jsxs)(r.xu,{display:"flex",alignItems:"start",marginTop:1,children:[(0,s.jsx)(r.xu,{display:"flex",flex:"grow",marginEnd:2,children:(0,s.jsx)(r.xv,{size:"200",children:o?(0,s.jsx)(l,{pinNoteText:o}):j})}),(0,s.jsx)(r.kC,{justifyContent:"end",minWidth:110,children:(0,s.jsx)(r.zx,{size:"lg",text:o?p._('Edit', 'closeup.closeupPinNote.editButton', 'Text on button used to edit private note on Pin'):p._('Add note', 'closeup.closeupPinNote.addNoteButton', 'Text on button used to add private note on Pin'),onClick:()=>{u({event_type:101,component:13769,element:o?12104:12103,object_id_str:i,view_type:3}),g(!0)}})})]})]}),m&&(0,s.jsx)(S,{initialText:o,isGroupNote:t,onDismiss:I,pinId:i}),_&&w()]})}},309091:(e,t,i)=>{i.d(t,{Z:()=>je});var n=i(699825),o=i(27255),a=i(240681),r=i(789605),s=i(445868),l=i(802933),c=i(883119),d=i(785893);const u=({children:e})=>(0,d.jsx)(c.xu,{display:"flex",justifyContent:"center",height:"100%",width:"100%",padding:5,children:e});var p=i(898781),h=i(780280),_=i(966676),m=i(92261);const g=e=>{const t=(0,p.ZP)(),i=(0,h.B)(),{isWideVideo:n,pin:g,shouldPadImage:x}=e,f=(0,l.Z)({pin:g}),{attribution:y={}}=(0,r.Z)(f)||{},{embed:v}=(0,s.Z)(f)||{},b=v&&v.src,P=n?m.KP:m.Gg,w=y.providerName;let S="50%";"soundcloud"===w?S="30%":["vevo","youtube","vimeo"].includes(w)?S="50%":"vin"===w&&(S="100%");const A=(0,d.jsx)(_.ZP.Consumer,{children:({showCloseupContentRight:e,viewportSize:r})=>{const s=(0,d.jsx)("div",{style:{height:0,overflow:"hidden",position:"relative",width:"100%",paddingBottom:S,...(0,a.Z)({isSideBySide:!n,isPadded:x,isRTL:i.isRTL})},children:(0,d.jsx)("iframe",{allowFullScreen:!0,id:o.Z.VIDEO_IFRAME_ID,src:b.replace("http://","https://"),style:{border:0,height:"100%",left:0,position:"absolute",top:0,width:"100%"},title:t._('Embedded content', 'Accessible content for the embedded content iframe', 'Accessible content for the embedded content iframe')})});return e&&"lg"===r?(0,d.jsx)(c.xu,{marginBottom:6,marginEnd:n||x?0:6,width:P,children:s}):s}});return x?(0,d.jsx)(u,{children:A}):A};var x=i(667294),f=i(752802),y=i(743217),v=i(341866);function b({isScenePin:e,inStlPinnerExp:t,hasXYcoordinates:i,pin:n,isORBACProfileManager:o,showProductDetailPage:a,carouselInfo:r}){const c=(0,l.Z)({pin:n}),{embed:d}=(0,s.Z)(c)||{},u=d&&"gif"===d.type,{is_promoted:p}=n;return!(e||p||u||o)&&((!t||!i)&&(a?!r||function({pin:e,carouselData:t}){var i;const{index:n=0,carousel_slots:o=[]}=t,a=o[n],{image_signature:r="",images:s}=a;return r.length>0||(0,y.Z)(e).url===(null===(i=(0,f.Z)({images:s}))||void 0===i?void 0:i.url)}({pin:n,carouselData:r.carouselData}):!r))}var P=i(431911),w=i(435497),S=i(737022),A=i(455024);const k=({fit:e,highResOnly:t,lowResOnly:i,onError:n,onLoad:o,slot:a,slotIndex:r})=>{const s=(0,p.ZP)(),{details:l=""}=a,{url:u="",width:h=1,height:_=1}=(0,S.Z)(a.images)||{};return(0,d.jsx)(c.Ee,{alt:(0,A.GH)(l,s,r),fit:e,naturalHeight:null!=_?_:1,naturalWidth:null!=h?h:1,onError:n,onLoad:o,src:null!=u?u:"",srcSet:(0,A.gA)({slot:a,lowResOnly:i,highResOnly:t})})};var E=i(238464),T=i(112690);const C=({contextLogData:e,height:t,isFocused:i,videoList:n,onFocus:o,onUnfocus:a,pinId:r,width:s})=>{const l=(0,T.Z)(),{V_720P:u,V_HLSV4:p,V_HLSV3_MOBILE:h}=n,_=u||p||h||{},{height:m=1,width:g=1,thumbnail:f}=_,y=t/s,v=m/g;(0,x.useEffect)((()=>{i?o&&o():a&&a()}),[i,o,a]),(0,x.useEffect)((()=>{i&&l({component:e.component,event_type:13,object_id_str:e.objectId,view_parameter:e.viewParameter,view_type:e.view})}),[i,e,l]);const b=(0,x.useCallback)((()=>{l({component:e.component,event_type:3621,object_id_str:e.objectId,view_parameter:e.viewParameter,view_type:e.view})}),[e,l]);return(0,d.jsx)(c.kC,{alignItems:"center",justifyContent:"center",height:"100%",width:"100%",children:(0,d.jsx)(c.xu,{width:100*Math.min(y/v,1)+"%",children:(0,d.jsx)(E.Z,{loop:!0,muted:!1,pinId:r,variant:"default",video:{mp4:u,hls:p,hlsv3:h},customThumbnail:f,preferMp4:!0,showControls:"hover",contextLogData:e,disabled:!i,onPlay:b})})})};var I=i(840003),j=i(35495),R=i(965900),D=i(407043),z=i(350118),O=i(276602);function L({carouselData:e,displayHeight:t,displayWidth:i,pinId:n}){var o;const{logContextEvent:a}=(0,D.v)(),{pdpCarouselSlotToPaneRatio:r,showProductDetailPage:s}=(0,_.x4)(),{index:l=0}=e,{pauseAutoplay:u,setCurrentVideo:p}=(0,R.I)(),h=(0,z.S6)()(n),m=(0,I.Z)(null==h?void 0:h.is_eligible_for_pdp_plus),g=(0,x.useRef)(null),f=(null==h?void 0:h.is_eligible_for_pdp)||m,y=f?(0,j.Kl)(h,{},m?"pdp_plus":void 0):void 0,v=f?144:void 0,b=f?3:void 0,P=(0,O.EV)(),S=(0,x.useCallback)((e=>{P&&e>=1&&P.markConstraintComplete("image")}),[P]),A=(0,x.useMemo)((()=>({viewParameter:s?144:156,view:3,component:s?14012:179,objectId:n})),[n,s]),E=(0,x.useCallback)((()=>{p({pinId:n,isPromoted:!1})}),[p,n]),T=(0,x.useCallback)((()=>{u({pinId:n,isPromoted:!1})}),[u,n]);return(0,x.useEffect)((()=>{var t;(null===(t=e.carousel_slots)||void 0===t?void 0:t.find((e=>{var t;return null===(t=e.videos)||void 0===t?void 0:t.video_list})))&&a({event_type:120,view_type:A.view,view_parameter:A.viewParameter,component:A.component,object_id_str:A.objectId})}),[a,e.carousel_slots,A]),(0,d.jsx)(c.xu,{ref:g,children:(0,d.jsx)(w.Z,{contextLogData:y,height:t,id:n,index:l,slideWidth:i,widthRatio:r,gap:1===r?0:4,containerRef:g,view:b,viewParameter:v,children:(null===(o=e.carousel_slots)||void 0===o?void 0:o.map(((e,o)=>{var a;let s,u;return null!==(a=e.videos)&&void 0!==a&&a.video_list?(s=(0,d.jsx)(C,{contextLogData:A,height:t,isFocused:l===o,onFocus:E,onUnfocus:T,pinId:n,videoList:e.videos.video_list,width:i*r}),u=e.videos.id):(s=(0,d.jsx)(k,{fit:"contain",onLoad:()=>S(o),slot:e,slotIndex:o}),u=e.image_signature),(0,d.jsx)(c.zd,{height:"100%",wash:1!==r,children:s},`${n}-${u||o}`)})))||[]})})}var N=i(523657);function B({dominantColor:e,imageProps:t,imgSrc:i,isPreviewImage:n}){const o=(0,O.EV)(),a=(0,x.useCallback)((()=>{o&&o.markConstraintComplete("image")}),[o]);return(0,d.jsx)(c.zd,{wash:!0,children:(0,d.jsx)(N.Z,{alt:t.alt,naturalHeight:t.naturalHeight,naturalWidth:t.naturalWidth,src:t.src,color:e,onLoad:a,children:n&&(0,d.jsx)(c.Ee,{alt:"",naturalHeight:t.naturalHeight,naturalWidth:t.naturalWidth,src:i||t.src})})})}function M({carouselData:e,carouselSlotToPaneRatio:t,children:i,displayWidth:n,hide:o}){const a=(0,x.useCallback)((()=>(({carouselData:e,containerWidth:t,slotWidth:i})=>{const{index:n,carousel_slots:o}=e||{},a=Math.floor(i);return void 0===n||!o||n>=o.length-1?0:t-a})({carouselData:e,containerWidth:n,slotWidth:n*t})),[e,n,t]),[r,s]=(0,x.useState)(a()),[l,u]=(0,x.useState)(!1),[p,h]=(0,x.useState)(),_=(0,x.useCallback)((()=>{const e=a();s(e)}),[a]);return(0,x.useEffect)((()=>{let e=!0;return u(!1),h((t=>(clearTimeout(t),setTimeout((()=>{e&&(_(),o||u(!0))}),500)))),()=>{e=!1}}),[null==e?void 0:e.index,_,o]),(0,x.useEffect)((()=>()=>clearTimeout(p)),[p]),(0,d.jsx)(c.xu,{dangerouslySetInlineStyle:{__style:{marginRight:r,transition:"opacity 500ms, visibility 500ms ease-in-out",visibility:l?"visible":"hidden"}},opacity:l?1:0,children:i})}var Z=i(337986);function F({domain:e,link:t,pin:i,trafficSource:o}){const a=(0,p.ZP)(),[r,s]=(0,x.useState)(!1);let l;return l=t.startsWith("https://i.pinimg.com")?a._('View image', 'closeup.image.domainLinkButton', 'Text indicating where clickthrough will navigate to'):e||a._('Learn more', 'closeup.image.domainLinkButton', 'Text indicating where clickthrough will navigate to'),(0,d.jsx)(c.iP,{onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),onTap:()=>{},children:(0,d.jsx)(n.Z,{hovered:r,pin:i,trafficSource:o,viewType:3,children:(0,d.jsxs)(c.xu,{alignItems:"center",color:r?"lightWash":"default","data-test-id":"visit-button",display:"flex",height:44,justifyContent:"center",opacity:.9,paddingX:4,rounding:"pill",children:[(0,d.jsx)(c.JO,{accessibilityLabel:a._('Open link icon', 'closeup.image.domainLinkButtonIcon', 'Icon on domain link button'),color:"default",icon:"arrow-up-right"}),(0,d.jsx)(c.xu,{paddingX:1}),(0,d.jsx)(c.xv,{size:"300",weight:"bold",children:l})]})})})}var U=i(241244),V=i(319915),G=i(947599);function H({domain:e,link:t,navigationWrapper:i,pin:n,trafficSource:o}){return(0,d.jsxs)(x.Fragment,{children:[(0,d.jsx)(c.xu,{height:"calc(100% - 60px)"}),(0,d.jsx)(c.Le,{bottom:12,children:(0,d.jsx)(c.xu,{display:"flex",justifyContent:"start",maxWidth:"calc(100% - 88px)",paddingX:5,children:(0,d.jsx)(V.Z,{name:"SafeSuspense_DomainLinkButtonWrapper_DomainLinkButton",children:(0,d.jsx)(G.Z,{children:(0,d.jsx)(U.Z,{children:i((0,d.jsx)(F,{domain:e,link:t,pin:n,trafficSource:o}))})})})})})]})}var W=i(751191);const $=(0,x.lazy)((()=>i.e(90907).then(i.bind(i,356725)))),K=(0,x.lazy)((()=>i.e(90907).then(i.bind(i,239062)))),q=(0,x.lazy)((()=>i.e(47319).then(i.bind(i,331823)))),Y=(0,x.lazy)((()=>i.e(87122).then(i.bind(i,647303)))),X=(0,x.lazy)((()=>i.e(97372).then(i.bind(i,554383)))),J=(0,x.lazy)((()=>i.e(28947).then(i.bind(i,313786)))),Q=(0,x.lazy)((()=>i.e(79156).then(i.bind(i,615711)))),ee=({children:e,name:t})=>(0,d.jsx)(c.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{pointerEvents:"none"}},"data-test-id":`experimental-closeup-image-overlay-layer-${t}`,left:!0,position:"absolute",right:!0,top:!0,children:e}),te=({animateShopButton:e,borderStyle:t,carouselInfo:i,displayHeight:n,displayWidth:o,domain:a,hasStelaResults:r,imageSignature:s,isHovered:l,justifyShopButton:u,link:p,navigationWrapper:h,onShopButtonAnimationComplete:m,onStelaDotAnimationComplete:g,onStlFlyoutHover:f,pin:y,searchQuery:v,showCarouselControls:b,showCarouselEllipsis:P,showCloseupShopDomainLinkButton:w,showDebugSignalsFeedbackButton:S,showDomainLink:A,showDomainLinkButton:k,showFlashlightButton:E,showProductDetailPage:T,showPinTagButton:C,showShopButton:I,showStelaDots:j,showStlFlyout:R,showWash:D,stelaDotAnimationType:z,taggedProducts:O,trafficSource:L})=>{const{pdpCarouselSlotToPaneRatio:N}=(0,_.x4)();return(0,d.jsxs)(x.Fragment,{children:[D&&(0,d.jsx)(ee,{name:"wash",children:(0,d.jsx)(c.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(0,0,0,0.3)",...t}},height:"100%",width:"100%"})}),A&&(0,d.jsx)(ee,{name:"domain-link",children:(0,d.jsxs)(c.kC,{alignItems:"center",height:"100%",justifyContent:"center",width:"100%",children:[(0,d.jsx)(c.xu,{paddingX:1,children:(0,d.jsx)(c.JO,{accessibilityLabel:"",color:"inverse",icon:"arrow-up-right",size:16})}),(0,d.jsx)(c.xu,{paddingX:1,children:(0,d.jsx)(c.xv,{color:"inverse",weight:"bold",children:a})})]})}),b&&i&&(0,d.jsxs)(ee,{name:"carousel-controls",children:[(0,d.jsx)(V.Z,{name:"SafeSuspense_CloseupImageOverlay_CarouselSliders",children:(0,d.jsx)(G.Z,{children:(0,d.jsx)(K,{carouselIndex:i.carouselData&&i.carouselData.index,carouselData:i.carouselData,componentType:i.componentType,handleCarouselSwipe:i.handleCarouselSwipe,pinId:y.id,viewParameter:i.viewParameter,viewType:i.viewType,forwardNode:T?(0,d.jsx)(W.Z,{iconType:"forward",showFab:l,backgroundColor:"default",hoverColor:"secondary",iconColor:"default"}):void 0,backNode:T?(0,d.jsx)(W.Z,{iconType:"back",showFab:l,backgroundColor:"default",hoverColor:"secondary",iconColor:"default"}):void 0})})}),(0,d.jsx)(c.xu,{alignItems:"end",bottom:!0,display:"flex",height:405,justifyContent:"center",left:!0,position:"absolute",right:!0,padding:5,children:!k&&P&&(0,d.jsx)(V.Z,{name:"SafeSuspense_CloseupImageOverlay_CarouselEllipsis",children:(0,d.jsx)(G.Z,{children:(0,d.jsx)(U.Z,{children:(0,d.jsx)($,{carouselIndex:i.carouselData&&i.carouselData.index,carouselData:i.carouselData,componentType:i.componentType,handleCarouselSwipe:i.handleCarouselSwipe,isCloseup:!0,pinId:y.id,variant:"default",viewParameter:i.viewParameter,viewType:i.viewType})})})})})]}),j&&(0,d.jsx)(ee,{name:"stela-container",children:(0,d.jsx)(V.Z,{name:"SafeSuspense_CloseupImageOverlay_StelaContainerWrapper",children:(0,d.jsx)(G.Z,{children:(0,d.jsx)(X,{disableSelected:!0,alwaysShow:w,height:n,closeupImageHovered:l,onStelaDotAnimationComplete:g,pin:y,searchQuery:v,stelaDotAnimationType:z,trafficSource:L,width:o,enablePointerEvents:r&&["in","inOut"].includes(z)||l&&w})})})}),R&&(0,d.jsx)(ee,{name:"stl-flyout-container",children:(0,d.jsx)(V.Z,{name:"SafeSuspense_CloseupImageOverlay_StlFlyoutContainer",children:(0,d.jsx)(G.Z,{children:(0,d.jsx)(U.N,{enabled:["in","inOut"].includes(z),children:(0,d.jsx)(Q,{alwaysShow:l,displayWidth:o,displayHeight:n,imageSignature:s,onStlFlyoutHover:f,taggedProducts:O||[],onAnimationComplete:g,stelaDotAnimationType:z})})})})}),I&&(0,d.jsxs)(ee,{name:"shop-button",children:[(0,d.jsx)(c.xu,{dangerouslySetInlineStyle:{__style:{height:"calc(100% - 60px)"}}}),(0,d.jsx)(c.Le,{bottom:12,children:(0,d.jsx)(c.xu,{display:"flex",justifyContent:u,paddingX:4,children:(0,d.jsx)(V.Z,{name:"SafeSuspense_CloseupImageOverlay_ShopButton",children:(0,d.jsx)(G.Z,{children:(0,d.jsx)(U.Z,{children:(0,d.jsx)(J,{animateShopButton:e,onAnimationComplete:m,pin:y,type:R?"stl":"stela"})})})})})})]}),S&&(0,d.jsxs)(ee,{name:"debug-signals-feedback",children:[(0,d.jsx)(c.xu,{dangerouslySetInlineStyle:{__style:{height:"calc(100% - 115px)"}}}),(0,d.jsx)(c.Le,{bottom:12,children:(0,d.jsx)(c.xu,{display:"flex",justifyContent:"end",paddingX:5,children:(0,d.jsx)(Z.Z,{pin:y})})})]}),!j&&(0,d.jsxs)(ee,{name:"flashlight-button",children:[(0,d.jsx)(c.xu,{dangerouslySetInlineStyle:{__style:{height:"calc(100% - 60px)"}}}),(0,d.jsx)(c.Le,{bottom:16,children:(0,d.jsx)(c.xu,{display:"flex",justifyContent:"end",paddingX:5,children:(0,d.jsx)(M,{displayWidth:o,carouselData:null==i?void 0:i.carouselData,carouselSlotToPaneRatio:N,hide:!E,children:(0,d.jsx)(V.Z,{name:"SafeSuspense_CloseupImageOverlay_FlashlightButton",children:(0,d.jsx)(G.Z,{children:(0,d.jsx)(U.Z,{children:(0,d.jsx)(q,{closeupImageHovered:!k&&l,pinId:y.id,variant:"default",imageSignature:s})})})})})})})]}),(k||w)&&(0,d.jsx)(ee,{name:"domain-link-button",children:(0,d.jsx)(H,{domain:a,link:p,navigationWrapper:h,pin:y,trafficSource:L})}),C&&(0,d.jsx)(ee,{name:"tag-button",children:(0,d.jsx)(V.Z,{name:"SafeSuspense_CloseupImageOverlay_CloseupTagButton",children:(0,d.jsx)(G.Z,{children:(0,d.jsx)(U.Z,{children:(0,d.jsx)(Y,{pin:y})})})})})]})};var ie=i(832654);var ne=i(69586),oe=i(622305),ae=i(74155);var re=i(941646),se=i(287072),le=i(717615),ce=i(19121),de=i(773285),ue=i(296005),pe=i(801827),he=i(231947),_e=i(537313);const me=({auxData:e,onClick:t,pin:i,href:n,children:o})=>{const a=(0,se.Z)({href:n,target:"blank",externalData:{auxData:e,pin:i}});return(0,d.jsx)(re.Z,{id:"image-link",children:(0,d.jsx)(c.iP,{onTap:({event:e,dangerouslyDisableOnNavigation:i})=>{i(),t(),a({event:e})},href:n,rel:"nofollow",role:"link",children:o})})};function ge({onClick:e,hasXYcoordinates:t,isEligibleForStlFlyout:i=!1,isHovered:n,pin:o,searchQuery:r,shouldPadImage:s,taggedProducts:u,trafficSource:m,viewParameter:g,isORBACProfileManager:f}){var y,w,S;const A=(0,p.ZP)(),k=(0,ce.Z)(),{checkExperiment:E}=(0,de.F)(),T=(0,le.Z)(),{mainImage:C,carouselInfo:R,previewImage:D,isGif:z,imgSrc:O}=(0,pe.r)(),{anyEnabled:N}=E("web_stl_pinner",{dangerouslySkipActivation:!0}),M=(0,he.nl)(k,T)&&E("web_stl_tooling",{dangerouslySkipActivation:!0}).anyEnabled,[Z,F]=(0,x.useState)("inOut"),U=(0,x.useCallback)((()=>F("none"))),[V,G]=(0,x.useState)(!0),H=(0,x.useCallback)((()=>{G(!1)})),[W,$]=(0,x.useState)(!1),K=(0,x.useCallback)((e=>{$(e)})),q=(0,l.Z)({pin:o}),Y=(0,oe.Z)(q),{imageOrig:X={}}=(0,ne.Z)(Y)||{},{url:J}=X,{pin:Q}=q||{},ee=null!=R&&R.carouselData?function(e){const{carousel_slots:t,index:i}=e;return t&&void 0!==i&&(t[i]||{}).image_signature?t[i].image_signature:null}(R.carouselData):null==Q?void 0:Q.image_signature,{link:re}=(0,ae.Z)(q)||{},{link:se}=(0,ue._T)()||{},{domain:ge,is_eligible_for_pdp_plus:xe}=o,fe=(0,I.Z)(xe),ye=(0,_e.nA)(o),{currentDomain:ve}=(0,_e.Wp)(ye);let be,Pe=ve||ge;const we={carousel_slot_id:void 0,carousel_data_id:void 0,carousel_slot_index:void 0,commerce_data:void 0};if(R&&R.carouselData&&R.carouselData.id){const{carousel_slots:e=[],id:t,index:i=0}=R.carouselData;be=e[i]&&e[i].link,we.carousel_slot_id=e[i]&&e[i].id,we.carousel_data_id=t,we.carousel_slot_index=i,Pe=e[i]&&e[i].domain||Pe}const Se=(0,j.Kl)(o,{},fe?"pdp_plus":void 0);Se&&(we.commerce_data=Se);const Ae=(0,v.Z)({pin:o}).length>0,ke=function(e){const{is_eligible_for_related_products:t}=e;return t&&!(0,j.Gy)(e)&&!(0,j.i8)(e)}(o),{is_stale_product:Ee,is_oos_product:Te}=o,Ce=ke&&!Te&&!Ee,Ie=se||be||re||J,je=(0,he.Ms)(k,T)===(null===(y=o.pinner)||void 0===y?void 0:y.username)&&M,Re=!ke&&k.isAuth,{showCloseupContentRight:De,paneWidth:ze,pdpCarouselSlotToPaneRatio:Oe,showProductDetailPage:Le}=(0,_.x4)(),{justifyShopButton:Ne,showCarouselControls:Be,showCloseupShopDomainLinkButton:Me,showDebugSignalsFeedbackButton:Ze,showDomainLink:Fe,showDomainLinkButton:Ue,showFlashlightButton:Ve,showPinTagButton:Ge,showShopButton:He,showStlFlyout:We,showWash:$e}=function({canShowDomainLinkButton:e,carouselInfo:t,disablePinTagButton:i,domain:n,hasXYcoordinates:o,inStlPinnerExp:a,isEligibleForStlFlyout:r,isEmployee:s,isHovered:l,isScenePin:c,navLink:d,pin:u,showProductDetailPage:p,showStelaDots:h,stlFlyoutHovered:_,isORBACProfileManager:m}){const{access:g}=u||{},x=r,f=(0,v.Z)({pin:u}).length>0,y=(c||x)&&l,P=c&&!f,w=(h||x)&&!y||P;let S=!1,A=!1;l&&!y&&(A=!!d&&!h&&e,S=!(A||_||!n||!u.link||u.link.startsWith("https://i.pinimg.com")||p&&t));const k=function({carouselInfo:e,isHovered:t,isEligibleForStlFlyout:i,showStelaDots:n,showProductDetailPage:o,showDomainLinkButton:a}){return(!o||!e)&&!(!t||a)&&(!n||n||i)}({carouselInfo:t,showProductDetailPage:p,isHovered:l,showStelaDots:h,showDomainLinkButton:A,isEligibleForStlFlyout:r});return{closeupShopNoStelaResults:P,justifyShopButton:c||e?"end":"start",showCarouselControls:!!t,showCloseupShopDomainLinkButton:y,showDebugSignalsFeedbackButton:!!s,showDomainLink:S,showDomainLinkButton:A,showFlashlightButton:b({isScenePin:c,inStlPinnerExp:a,hasXYcoordinates:o,pin:u,isORBACProfileManager:m,showProductDetailPage:p,carouselInfo:t}),showPinTagButton:!!g&&g.includes("tag")&&!i||m||!1,showShopButton:w,showStlFlyout:x,showWash:k}}({canShowDomainLinkButton:Re,carouselInfo:R,disablePinTagButton:je,domain:Pe||"",hasXYcoordinates:t,inStlPinnerExp:N,isEligibleForStlFlyout:i,isEmployee:k.isAuth&&!!k.isEmployee,isHovered:n,isScenePin:ke,navLink:Ie,pin:o,showProductDetailPage:Le,showStelaDots:Ce,stlFlyoutHovered:W,isORBACProfileManager:f}),Ke=ze,{height:qe,width:Ye}=C,{height:Xe,width:Je}=(0,P.Z)({carouselData:null==R?void 0:R.carouselData,mainImage:C,maxCloseupImageWidth:Ke,shouldPadImage:s,imageToDisplayWidthRatio:Oe}),Qe={naturalWidth:Ye,naturalHeight:qe,alt:(0,ie.Z)(o,A)||"",src:z?O:(null==D?void 0:D.url)||""},et=(0,h.B)(),tt=(0,a.Z)({isSideBySide:De,isPadded:s,isRTL:et.isRTL}),{id:it,dominant_color:nt}=o||{},ot=(0,d.jsx)(c.xu,{"data-test-id":"closeup-image",overflow:"hidden",dangerouslySetInlineStyle:{__style:{...tt}},children:null!=R&&R.carouselData?(0,d.jsx)(L,{carouselData:R.carouselData,displayHeight:Xe,displayWidth:Je,pinId:it}):(0,d.jsx)(B,{dominantColor:nt||"",imageProps:Qe,imgSrc:O,isPreviewImage:!z&&!!O})});return(0,d.jsxs)(c.xu,{dangerouslySetInlineStyle:{__style:{...tt}},"data-test-id":"closeup-body-image-container",height:Xe,position:"relative",width:Je,children:[ke||Re?ot:(0,d.jsx)(me,{auxData:we,onClick:e,pin:o,href:Ie,children:ot}),(0,d.jsx)(te,{borderStyle:tt,carouselInfo:R,displayHeight:Xe,displayWidth:Je,domain:null!==(w=null!==(S=Pe)&&void 0!==S?S:ge)&&void 0!==w?w:"",hasStelaResults:Ae,imageSignature:ee,isHovered:n,justifyShopButton:Ne,link:Ie,navigationWrapper:t=>(0,d.jsx)(me,{auxData:we,onClick:e,pin:o,href:Ie,children:t}),onShopButtonAnimationComplete:H,onStelaDotAnimationComplete:U,onStlFlyoutHover:K,pin:o,searchQuery:r,animateShopButton:V,showCarouselControls:Be,showCarouselEllipsis:!Le,showCloseupShopDomainLinkButton:Me,showDebugSignalsFeedbackButton:Ze,showDomainLink:Fe,showDomainLinkButton:Ue,showFlashlightButton:Ve,showProductDetailPage:Le,showPinTagButton:Ge,showShopButton:He,showStelaDots:Ce,showStlFlyout:We,showWash:$e,stelaDotAnimationType:Z,taggedProducts:u,trafficSource:m,viewParameter:g})]})}var xe=i(430323);const fe=e=>{const{hasXYcoordinates:t,isHovered:i,isEligibleForStlFlyout:n,onImageClick:o,pin:a,searchQuery:r,shouldPadImage:s,taggedProducts:l,trafficSource:c,viewParameter:p,isORBACProfileManager:h}=e,_=(0,I.Z)(a.is_eligible_for_pdp_plus),m=a.is_eligible_for_pdp||_?(0,j.Kl)(a,{},_?"pdp_plus":void 0):void 0,g=(0,d.jsx)(xe.Z,{auxData:m,viewParameter:p,component:85,children:(0,d.jsx)(ge,{hasXYcoordinates:t,isHovered:i,isEligibleForStlFlyout:n,onClick:o,pin:a,searchQuery:r,shouldPadImage:s,taggedProducts:l,trafficSource:c,viewParameter:p,isORBACProfileManager:h})});return s?(0,d.jsx)(u,{children:g}):g};var ye=i(357787),ve=i(36971),be=i(463045);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=(0,ye.Z)(E.Z);class Se extends x.Component{constructor(...e){super(...e),Pe(this,"handleVisibilityChanged",(e=>{const{pinId:t,isPromoted:i,setCurrentVideo:n,pauseAutoplay:o,videosAutoplaying:a,videoStartTime:r}=this.props,s=(0,be.Z)(t,a);e&&!s?n({pinId:t,isPromoted:!!i,currentTime:r}):!e&&s&&o({pinId:t,isPromoted:!!i,currentTime:this.currentVideoCurrentTime})})),Pe(this,"handleVideoTimeChange",(e=>{const{pinId:t,videosAutoplaying:i}=this.props;(0,be.Z)(t,i)&&(this.currentVideoCurrentTime=e.time)}))}componentDidUpdate(e){const{appInFocus:t}=e,{appInFocus:i,pauseAutoplay:n,pinId:o,isPromoted:a,setCurrentVideo:r,videosAutoplaying:s}=this.props,l=(0,be.Z)(o,s),c=(0,ve.Z)(o,s);this.currentVideoCurrentTime=null!=c?c:this.currentVideoCurrentTime,i!==t&&!i&&l?(this.pausedDueToBrowserOutOfFocus=!0,n({pinId:o,isPromoted:!!a,currentTime:this.currentVideoCurrentTime})):this.pausedDueToBrowserOutOfFocus&&i&&(this.pausedDueToBrowserOutOfFocus=!1,r({pinId:o,isPromoted:!!a,currentTime:this.currentVideoCurrentTime}))}componentWillUnmount(){const{pinId:e,isPromoted:t,pauseAutoplay:i}=this.props;i({pinId:e,isPromoted:!!t,currentTime:this.currentVideoCurrentTime})}render(){const{setCurrentVideo:e,pauseAutoplay:t,videoStartTime:i,videosAutoplaying:n,...o}=this.props;return(0,d.jsx)(we,{inAdsDesktopVideoExperiment:!0,onTimeChange:this.handleVideoTimeChange,onVisibilityChanged:this.handleVisibilityChanged,trackFullVisible:!1,...o})}}function Ae(e){const{pinId:t,isPromoted:i}=e,{appUI:{appInFocus:n,videosAutoplaying:o},pauseAutoplay:a,setCurrentVideo:r}=(0,R.I)(),{organicVideosAutoplaying:s,promotedVideosAutoplaying:l}=o,c=i?l[t]:s[t];return(0,d.jsx)(Se,{...e,appInFocus:n,pauseAutoplay:a,setCurrentVideo:r,videosAutoplaying:o,videoStartTime:c?c.currentTime:null})}var ke=i(957161),Ee=i(274970);const Te=(0,x.lazy)((()=>i.e(87122).then(i.bind(i,647303)))),Ce=({children:e,name:t})=>(0,d.jsx)(c.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{pointerEvents:"none"}},"data-test-id":`experimental-closeup-image-overlay-layer-${t}`,left:!0,position:"absolute",right:!0,top:!0,children:e}),Ie=({closeupIsFirstPageInHistoryStack:e,customThumbnail:t,imageContainerRef:i,isWideVideo:n,pin:a,shouldPadImage:r,flyoutShareProps:s,video:l})=>{const p=!!a.promoter&&!a.is_downstream_promotion,h=p&&!a.is_eligible_for_web_closeup,{access:_}=a||{},g=!!_&&_.includes("tag"),x=m.Gg-m.d2,f=r?{maxWidth:{maxWidth:x},minWidth:{minWidth:x},height:{},borderRadius:16}:{},y="undefined"!=typeof window&&0===ke.Z.getItem(o.Z.VIDEO_AUTOPLAY_LOCAL_STORAGE_KEY),v=(0,d.jsxs)(Ee.Z,{isVideo:!0,isWideVideo:n,shouldPadImage:r,styleOverrides:f,variant:"default",children:[(0,d.jsx)(c.xu,{width:"100%",ref:i,children:(0,d.jsx)(Ae,{autoplay:!y,customThumbnail:t,flyoutShareProps:s,isPromoted:p,loop:h,muted:e,pinId:a.id,video:l,variant:"default"})}),g&&(0,d.jsx)(Ce,{name:"tag-button",children:(0,d.jsx)(V.Z,{name:"SafeSuspense_VideoContent_CloseupTagButton",children:(0,d.jsx)(G.Z,{children:(0,d.jsx)(U.Z,{children:(0,d.jsx)(Te,{pin:a})})})})})]});return r?(0,d.jsx)(u,{children:v}):v},je=e=>{const{closeupIsFirstPageInHistoryStack:t,imageContainerRef:i,flyoutShareProps:o,hasXYcoordinates:a,isEligibleForStlFlyout:r,isWideVideo:s,pin:l,shouldPadImage:c,searchQuery:u,taggedProducts:p,trafficSource:h,isORBACProfileManager:_,isHovered:m,onImageClick:x,viewParameter:f}=e,{video:y,imgSrc:v,isEmbeddedVideo:b}=(0,pe.r)();return y?(0,d.jsx)(Ie,{closeupIsFirstPageInHistoryStack:t,imageContainerRef:i,isWideVideo:s,pin:l,shouldPadImage:c,flyoutShareProps:o,video:y,customThumbnail:v}):b?(0,d.jsx)(g,{isWideVideo:s,pin:l,shouldPadImage:c}):(0,d.jsx)(n.Z,{hovered:m,pin:l,viewType:3,children:(0,d.jsx)(fe,{hasXYcoordinates:a,isHovered:m,isEligibleForStlFlyout:r,onImageClick:x,pin:l,searchQuery:u,shouldPadImage:c,taggedProducts:p,trafficSource:h,viewParameter:f,isORBACProfileManager:_})})}},491073:(e,t,i)=>{i.d(t,{Z:()=>v});var n=i(667294),o=i(240681),a=i(717615),r=i(19121),s=i(309091),l=i(675725),c=i(43671),d=i(785893);function u({pin:e}){const t=(0,l.Z)({pin:e,viewParameter:156});return(0,d.jsx)(c.ZP,{hideContents:!0,pin:e,feedbackType:t})}var p=i(883119),h=i(215292),_=i(231947),m=i(966676),g=i(558068),x=i(780280),f=i(801827),y=i(558329);function v({hasXYcoordinates:e,isEligibleForStlFlyout:t,isStoryPin:i,isWideVideo:l,pin:c,searchQuery:v,taggedProducts:b,trafficSource:P,viewParameterType:w,visualContentContainerRef:S={current:null},imageContainerRef:A,handleImageClickThrough:k,setClickthroughComponentForSurvey:E,isShortImage:T}){const[C,I]=(0,n.useState)(!1),{previous:j}=(0,g.Hv)(),R=(0,m.x4)(),D=(0,a.Z)(),z=(0,x.B)(),O=(0,f.r)(),L=(0,r.Z)(),N=0===j.length,{carouselInfo:B,imgSrc:M,mainImage:Z}=O,F=()=>{I((e=>!e))},U=()=>{I(!1)},V=e=>({gridDescription:c.description,imageSrc:e,isFlyoutOpen:C,onFlyoutDismiss:U,onToggleFlyout:F,pinId:c.id}),{showCloseupContentRight:G,paneWidth:H}=R;if(i)return null;const{domain:W,pinner:$={}}=c,K=W&&!!c.link&&!c.link.startsWith("https://i.pinimg.com"),{width:q}=Z,Y=(0,y.NE)({closePanelWidth:H,isShortImage:T,carouselInfo:B,isWideVideo:l,naturalWidth:q,showCloseupContentRight:G}),X=(0,o.Z)({isSideBySide:G,isPadded:!1,isRTL:z.isRTL}),J=(0,_.q6)(L,$.id,D);return(0,d.jsx)(p.xu,{"data-test-id":"visual-content-container",children:(0,d.jsx)(h.q,{children:({hovered:i,onMouseEnter:n,onMouseLeave:o})=>(0,d.jsxs)(p.xu,{dangerouslySetInlineStyle:{__style:{...X}},display:"flex",justifyContent:"center",onMouseEnter:n,onMouseLeave:o,position:"relative",ref:S,width:l?"100%":H,children:[(0,d.jsx)(s.Z,{closeupIsFirstPageInHistoryStack:N,flyoutShareProps:V(M),hasXYcoordinates:e,isEligibleForStlFlyout:t,imageContainerRef:A,isHovered:i,isWideVideo:l,onImageClick:()=>{k&&k(),E("imageContainer")},pin:c,searchQuery:v,shouldPadImage:Y,showDomainLink:K,taggedProducts:b,trafficSource:P,viewParameter:(0,y.CK)(c,w),isORBACProfileManager:J}),c&&c.showFeedback&&(0,d.jsx)(u,{pin:c})]})})})}},127897:(e,t,i)=>{i.d(t,{Z:()=>d});var n=i(667294),o=i(431911),a=i(829407),r=i(92261),s=i(801827),l=i(966676);const c=100+r.Ie;function d({metadataContainerRef:e}){const[t,i]=(0,n.useState)(!1),r=(0,l.x4)(),d=(0,s.r)();return(0,a.Z)((()=>{if(!e.current)return;(function({metadataHeight:e,closeupContext:t,visualData:i}){const{pdpCarouselSlotToPaneRatio:n,paneWidth:a}=t,{mainImage:r,carouselInfo:s}=i;return e>(0,o.Z)({carouselData:null==s?void 0:s.carouselData,mainImage:r,maxCloseupImageWidth:a,imageToDisplayWidthRatio:n}).height})({metadataHeight:e.current.getBoundingClientRect().height+c,closeupContext:r,visualData:d})&&i(!0)})),t}},680333:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(667294);function o(){const[e,t]=(0,n.useState)(""),i=(0,n.useRef)(null),o=(0,n.useRef)(null),a=(0,n.useRef)(null),r=(0,n.useRef)(null);return(0,n.useEffect)((()=>{const t=()=>{e&&i.current&&i.current.handleEgSurveyClick(e)};return window.addEventListener("focus",t),()=>window.removeEventListener("focus",t)}),[e]),{clickthroughComponentForSurvey:e,setClickthroughComponentForSurvey:t,webLinkSurveyRef:i,imageContainerRef:o,legoLinkClickthroughAnchorRef:a,maybeLinkRef:r}}},558329:(e,t,i)=>{i.d(t,{CK:()=>f,Ek:()=>y,NE:()=>p,SR:()=>c,VO:()=>x,bm:()=>u,nU:()=>d,p_:()=>h,y8:()=>g});var n=i(4294),o=i(692627),a=i(306775),r=i(623568),s=i(681227),l=i(231947);function c(e){var t;return(null===(t=e.closeup_attribution)||void 0===t?void 0:t.id)||null}function d(e){const{native_creator:t,pinner:i,domain:n}=e;return(e.link_user_website&&e.link_user_website.official_user||e.link_domain&&e.link_domain.official_user||!!e.third_party_pin_owner||!!i&&i.domain_verified&&i.domain_url===n)&&!e.is_promoted||t}const u=({viewer:e,pin:t})=>(0,a.su)(e)&&t.is_quick_promotable_by_pinner;function p({carouselInfo:e,closePanelWidth:t,isWideVideo:i,isShortImage:n,naturalWidth:o,showCloseupContentRight:a}){return!(i||!a)&&(!!n||!e&&o1)&&!n}},530082:(e,t,i)=>{i.d(t,{l6:()=>it,ZP:()=>ot});var n=i(667294),o=i(702664),a=i(19121),r=i(332611),s=i(826067),l=i(313951),c=i(558068),d=i(276775),u=i(350118),p=i(780280);function h(e){const{previous:t}=(0,c.Hv)(),i=0===t.length,{children:n}=e,h=(0,d.useLocation)(),_=(0,a.Z)(),m=(0,o.useDispatch)(),{isBot:g}=(0,p.B)(),{dropdownOpen:x}=(0,l.Z5)(),f=(0,u.AF)(),y=!!f[e.pinId]&&(f[e.pinId].saved||!!f[e.pinId].savedInfo),v=f[e.pinId]||e.pinResource.data||{},b="inbox"===(0,s.mB)(h.search).tab||!1;return n({isLandingPage:i,isLimitedLogin:!!_.isAuth&&_.isLimitedLogin,didRepin:y,openInbox:x,pin:v,shouldShowInbox:b,updateExperienceForPlacement:e=>{m((0,r.pz)([e],g))}})}var _=i(869636),m=i(497529),g=i(785893);class x extends n.PureComponent{componentDidMount(){const{experience:e}=this.props;if(e&&500500===e.experience_id){const{experience_id:t,placement_id:i}=e;this.props.experienceClient.viewExperience(i,t)}}componentDidUpdate(e){const t=e.experience,i=this.props.experience;if(i&&!t){const{experience_id:e,placement_id:t}=i;this.props.experienceClient.viewExperience(t,e)}}render(){return this.props.children}}function f(e){const t=(0,m.Z)(),{experience:i}=(0,_.Z)(1000075);return(0,g.jsx)(x,{...e,experienceClient:t,experience:i})}var y=i(385937),v=i(763917);const b=e=>{var t;return null!==(t=e.map((e=>{return!!(t=e.location)&&((0,v.C)(t)||(({pathname:e})=>/^\/pin\/[\w-]+\/activity\/tried\/?$/.test(e))(t));var t})).find((e=>!0===e)))&&void 0!==t&&t};function P({boardUrl:e,currentHistoryStack:t,history:i,isFromExtension:n=!1,hasViewerPartner:o}){return()=>{b(t)||n?n&&1===t.length?i.push(null!=e?e:""):i.goBack():o?i.push("/homefeed/"):i.push("/")}}var w=i(172071),S=i(386360),A=i(42447),k=i(794230),E=i(56641);function T(e,t=!1){const i=e||window.location.href;(0,E.Z)(`/login?next=${t?(0,k.Z)(i,{type:"signup"}):encodeURIComponent(i)}`)}var C=i(650165),I=i(802933),j=i(529581),R=i(883119);const D=function(e){const{viewer:t}=e,{pin:i}=(0,I.Z)(e)||{},{pinner:n={}}=i||{},o=t.isAuth&&n.id===t.id,a=(0,g.jsx)(j.Z,{isOwnPin:o,pinId:i.id});return(0,g.jsx)(R.xu,{marginTop:10,"data-test-id":"aggregated-closeup-card",children:(0,g.jsx)(C.Z,{pinId:i.id,savedToText:a})})};var z=i(238464),O=i(491431),L=i(294184),N=i.n(L),B=i(883561),M=i(898781);class Z extends n.Component{componentDidMount(){const{onUpdate:e}=this.props;e&&e()}componentDidUpdate(e){if(e.showMore!==this.props.showMore){const{onUpdate:e}=this.props;e&&e()}}render(){const{pin:e,tutorialDescription:t,showMore:i,onToggle:o}=this.props,{carousel_data:a}=e;let r=e.closeup_description;if(a){const{carousel_slots:e=[],index:t=0}=a;e[t]&&e[t].details&&(r=e[t].details)}const s=r&&t&&t.trim()===r.trim(),l=r?r.trim().replace(/\s+/g," "):null,c=r&&r.length>200;return l&&!s?(0,g.jsx)(n.Fragment,{children:c?(0,g.jsxs)(R.xu,{children:[(0,g.jsx)(R.xv,{inline:!0,children:i?l:(0,B.ZP)(l,200)}),(0,g.jsx)(R.xu,{display:"inlineBlock",marginStart:1,children:(0,g.jsx)(R.iP,{fullWidth:!1,onTap:o,children:(0,g.jsx)(R.xv,{inline:!0,size:"200",weight:"bold",children:i?this.props.i18n._('Less', ' - ', ' -- '):this.props.i18n._('More', ' - ', ' -- ')})})})]}):(0,g.jsx)(R.xv,{children:l})}):null}}function F(e){const t=(0,M.ZP)();return(0,g.jsx)(Z,{...e,i18n:t})}var U=i(789605),V=i(445868),G=i(349700);function H(e){const t=(0,M.ZP)(),i=(0,U.Z)((0,I.Z)(e));if(!i)return null;const{providerUrl:o,providerName:a,authorUrl:r,authorName:s,ccUrl:l}=i.attribution,{embed:{src:c,type:d,subtype:u}={}}=(0,V.Z)((0,I.Z)(e))||{},p={author:(0,g.jsx)(R.rU,{display:"inlineBlock",href:null!=r?r:"",rel:"nofollow",underline:"hover",children:s},"author"),provider:(0,g.jsx)(R.rU,{display:"inlineBlock",href:null!=o?o:"",rel:"nofollow",underline:"hover",children:a},"provider")};let h=t._('from {{ provider }}', 'Image source attribution without author on pin closeup', 'Image source attribution without author on pin closeup');return s&&(h=c&&"gif"!==d&&"pinstory"!==u?t._('Video by {{ author }} on {{ provider }}', 'Video source attribution on pin closeup', 'Video source attribution on pin closeup'):t._('Photo by {{ author }} on {{ provider }}', 'Photo source attribution on pin closeup', 'Photo source attribution on pin closeup')),(0,g.jsxs)(n.Fragment,{children:[(0,g.jsx)(R.xv,{color:"subtle",children:(0,G.nk)(h,p)}),l&&(0,g.jsx)(R.rU,{href:l,rel:"nofollow",children:t._('(cc)', 'Creative Commons Link Text', 'Creative Commons Link Text')})]})}function W({category:e,ingredients:t}){return(0,g.jsxs)(R.xu,{children:[e&&(0,g.jsx)(R.xu,{children:(0,g.jsx)(R.xv,{weight:"bold",children:e})}),(0,g.jsx)("ul",{children:t.map(((e,t)=>(0,g.jsx)("li",{"data-test-id":"recipe-ingredient",itemProp:"recipeIngredient",children:(0,g.jsx)(R.xu,{marginTop:1,children:(0,g.jsxs)(R.xv,{children:[e.amt||null," ",e.name]})})},t)))})]})}var $=i(238873),K=i(762615),q=i(432730),Y=i(833049),X=i(561195),J=i(312013),Q=i(134185),ee=i(326595),te=i(92261),ie=i(923297),ne=i(773285);function oe(e){var t,i,n;const o=(0,M.ZP)(),{checkExperiment:a}=(0,ne.F)(),r=(0,$.Z)((0,K.Z)((0,q.Z)((0,I.Z)(e))));if(!r)return null;const{pin:s}=e,{name:l,diets:c,categorizedIngredients:d,fromAggregatedData:u,prepTime:p,cookTime:h,totalTime:_,servingSummary:m}=r.recipe;let x=_||h||p;if(h&&p){const e=h.h||0,t=h.m||0;x={h:e+(p.h||0),m:t+(p.m||0)}}const f=x?(0,Y.Z)((0,ie.X)(x),o,a):null,y=null===(t=s.rich_metadata)||void 0===t||null===(i=t.recipe)||void 0===i||null===(n=i.aggregate_rating)||void 0===n?void 0:n.review_count;return(0,g.jsxs)(Q.Z,{itemScope:!0,itemType:te.iB.RECIPE,children:[(0,g.jsx)("meta",{content:l,itemProp:"name"}),u?(0,g.jsx)("div",{className:"hr cardDivider"}):null,!!y&&(0,g.jsxs)(R.xu,{marginBottom:2,display:"flex",alignItems:"baseline",children:[s.rich_metadata&&s.rich_metadata.recipe&&s.rich_metadata.recipe.aggregate_rating&&(0,g.jsx)(R.xu,{marginEnd:1,children:(0,g.jsx)(X.Z,{rating:s.rich_metadata.recipe.aggregate_rating.rating_value,max_rating:s.rich_metadata.recipe.aggregate_rating.best_rating,width:16})}),(0,g.jsx)(R.xv,{weight:"bold",children:(0,G.nk)(o.ngettext('{{reviewCount}} review', '{{reviewCount}} reviews', y, ' - ', ' -- '),{reviewCount:y})})]}),f?(0,g.jsx)(R.xu,{marginBottom:2,display:"flex",alignItems:"center",children:(0,g.jsx)(ee.Z,{timeString:f})}):null,(0,g.jsxs)(R.xu,{"data-test-id":"ingredients-heading",marginBottom:4,children:[(0,g.jsx)(R.X6,{size:"500",children:u?l:o._('Ingredients', 'Ingredients title in closeup recipe description', 'Ingredients title in closeup recipe description')}),c?(0,g.jsxs)(R.xu,{display:"flex",marginTop:1,"data-test-id":"diets-section",children:[(0,g.jsx)(R.xv,{children:c.join(", ")}),m?(0,g.jsx)(R.xu,{marginStart:1,"data-test-id":"serving-summary-section",children:(0,g.jsx)(R.xv,{children:"∙ "+m})}):null]}):null]}),Array.isArray(d)&&d.length>0&&(1===d.length?(0,g.jsx)(R.xu,{column:12,"data-test-id":"single-column-ingredients",children:d.map((({category:e,ingredients:t},i)=>(0,g.jsx)(R.xu,{marginBottom:2,children:(0,g.jsx)(W,{category:e,ingredients:t})},i)))}):(0,g.jsxs)(R.xu,{display:"flex","data-test-id":"dual-column-ingredients",children:[(0,g.jsx)(R.xu,{column:6,children:d.slice(0,Math.ceil(d.length/2)).map((({category:e,ingredients:t},i)=>(0,g.jsx)(R.xu,{marginBottom:2,children:(0,g.jsx)(W,{category:e,ingredients:t})},i)))}),(0,g.jsx)(J.Z,{}),(0,g.jsx)(R.xu,{column:6,children:d.slice(Math.ceil(d.length/2)).map((({category:e,ingredients:t},i)=>(0,g.jsx)(R.xu,{marginBottom:2,children:(0,g.jsx)(W,{category:e,ingredients:t})},i)))})]}))]})}var ae=i(818398),re=i(533439),se=i(782534);function le(e){const t=(0,M.ZP)(),i=(0,ae.Z)((0,q.Z)((0,I.Z)(e)));if(!i)return null;const{name:n,authors:o,datePublished:a}=i.article,r=o&&o.map((e=>e.name)).join(", ");return(0,g.jsxs)(Q.Z,{itemScope:!0,itemType:te.iB.ARTICLE,children:[(0,g.jsx)("meta",{content:n,itemProp:"name"}),(0,g.jsxs)(R.xu,{marginTop:3,children:[a&&(0,g.jsxs)(R.xu,{children:[(0,g.jsx)("meta",{content:a.toDateString(),itemProp:"datePublished"}),(0,g.jsxs)(R.xv,{children:[t._('Published ', ' - ', ' -- '),(0,g.jsx)(se.Z,{value:a,dateFormatType:se.k.LONG})]})]}),o&&(0,g.jsx)(R.xu,{"data-test-id":"article-author",children:(0,g.jsxs)(R.xv,{children:[t._('Written by ', ' - ', ' -- '),r]})})]})]})}var ce=i(537313);function de(e){const t=(0,I.Z)(e)||null;if(!t)return null;const{inContainerRedesignExp:i,pin:o,onUpdate:a,showCloseupContentRight:r,onToggle:s,showMore:l,showCreatorCard:c}=t,{aggregated_pin_data:d,closeup_description:u,title:p}=o,{recipe:h}=(0,K.Z)((0,q.Z)(t))||{},{article:_}=(0,ae.Z)((0,q.Z)(t))||{},{description:m}=_||{},{tutorial:x}=(0,re.Z)((0,q.Z)(t))||{},{description:f}=x||{},y=_&&!h&&!x;return(0,g.jsxs)(R.xu,{dangerouslySetInlineStyle:{__style:{fontSize:"14px",marginTop:i?void 0:12,marginBottom:i?void 0:12}},children:[(0,g.jsxs)("div",{className:"richPinInformation",style:{marginBottom:12},children:[d&&(0,g.jsx)(F,{onToggle:s,showMore:l,pin:o,onUpdate:a,tutorialDescription:f})||y&&m&&(0,g.jsx)("div",{className:"richPinArticleSummary",style:{fontSize:"16px",marginBottom:12},children:(v=m,v.split(" ").map((e=>e.trim())).reduce(((e,t)=>e.length>300?e:e.length+t.length+3>300?`${e} ${t}...`:`${e} ${t}`),""))}),(0,g.jsx)("div",{className:N()("descriptionAction",{showCloseupContentRight:r}),children:(0,g.jsx)(R.xu,{marginTop:!i||p||u||c?3:0,children:(0,g.jsx)(ce.xV,{...t,showDomainInLink:!0})})}),y&&(0,g.jsxs)(n.Fragment,{children:[(0,g.jsx)(le,{pin:o}),(0,g.jsx)(H,{inArticle:!0,pin:o})]})]}),(0,g.jsx)(oe,{pin:t.pin})]});var v}var ue=i(814197);class pe extends n.Component{render(){const{onClickThrough:e,pin:t,maybeLinkRef:i}=this.props,n=(0,g.jsx)(R.xu,{children:(0,g.jsx)(ce.ZP,{onClickThrough:e,pin:t,showDomainInLink:!0})});return(0,g.jsxs)(R.xu,{marginTop:3,children:[(0,g.jsx)(R.xu,{display:"inlineBlock",position:"relative",width:"100%",ref:i,zIndex:ue.Fk,children:n}),(0,g.jsx)(de,{...this.props})]})}}var he=i(704115),_e=i(69586),me=i(622305),ge=i(674915),xe=i(819303),fe=i(274970),ye=i(273690),ve=i(966676);function be({children:e,isWideVideo:t=!1}){return(0,g.jsx)(ve.ZP.Consumer,{children:({showCloseupContentRight:i,viewportSize:n})=>i&&"lg"===n&&!t?null:e})}var Pe=i(121151),we=i(412067),Se=i(916062),Ae=i(784590),ke=i(422946),Ee=i(678638),Te=i(956800),Ce=i(90326),Ie=i(407043),je=i(825067),Re=i(827896),De=i(254176);function ze(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class Oe extends n.Component{constructor(...e){var t;super(...e),t=this,ze(this,"handleHide",(()=>{const{onHide:e}=this.props;this.props.logContextEvent({event_type:7802}),e()})),ze(this,"handleDelete",(async function(){t.props.logContextEvent({event_type:101,component:13373,element:11186});const{getClientTrackingParams:e,detailedPin:i,dispatch:n,pinId:o,onDelete:a,onHide:r,changeBoardPinCount:s,changeUserPinCount:l}=t.props,c=i.data||{};await we.Z.create("PinResource",{id:o,client_tracking_params:e(o)}).callDelete();const{board:{id:d}={},pinner:{id:u}={},section:p}=c,h=null==p?void 0:p.id;s({boardId:d,sectionId:h,increment:-1}),l({userId:u,increment:-1}),n((0,De.xQ)(d)),n((0,Te.EX)({feedId:h||d,feedType:h?ke.DV.BOARD_SECTION_PINS:ke.DV.BOARDFEED,itemIds:[o],itemType:"pin"})),h&&n((0,Ee.CE)(h)),r(),a&&a()}))}render(){return(0,g.jsx)(Pe.ZP,{accessibilityModalLabel:this.props.i18n._('Delete this Pin', 'Accessibility label for modal to delete this status pin', 'Accessibility label for modal to delete this status pin'),onDismiss:this.handleHide,heading:this.props.i18n._('Delete this Pin?', 'Heading for modal to delete this status pin', 'Heading for modal to delete this status pin'),size:"sm",footer:(0,g.jsxs)(n.Fragment,{children:[(0,g.jsx)(R.xu,{marginBottom:3,children:(0,g.jsx)(R.zx,{fullWidth:!0,color:"gray",text:this.props.i18n._('Delete', 'Button label for confirming the action of deleting status pin', 'Button label for confirming the action of deleting status pin'),onClick:()=>{this.handleDelete()}})}),(0,g.jsx)(R.xu,{children:(0,g.jsx)(R.zx,{fullWidth:!0,color:"red",text:this.props.i18n._('Cancel', 'Button label for cancelling the action to delete status pin', 'Button label for cancelling the action to delete status pin'),onClick:this.handleHide})})]}),children:(0,g.jsx)(R.xu,{padding:4,children:(0,g.jsx)(R.xv,{children:this.props.i18n._('If you delete this Pin, you won\'t be able to get it back.', 'Text to confirm whether user wants to delete the status pin', 'Text to confirm whether user wants to delete the status pin')})})})}}function Le(e){var t;const i=(0,o.useDispatch)(),{logContextEvent:n}=(0,Ie.v)(),a=null===(t=(0,je.W)())||void 0===t?void 0:t.onPinDelete,r=(0,Ae.Z)({name:"PinResource",options:{id:e.pinId,field_set_key:"detailed"}}),s=(0,Se.Z)(r.data);return(0,g.jsx)(Oe,{...e,changeBoardPinCount:e=>i((0,De.Br)(e)),changeUserPinCount:e=>i((0,Ce.JS)(e)),detailedPin:r,dispatch:i,getClientTrackingParams:(0,Re.Z)(),i18n:(0,M.ZP)(),logContextEvent:n,onDelete:()=>{var t;s(),null===(t=e.onDelete)||void 0===t||t.call(e),null==a||a({pinId:e.pinId})}})}var Ne=i(700380),Be=i(430323),Me=i(502712),Ze=i(499128),Fe=i(559073),Ue=i(966113),Ve=i(343341);function Ge(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const He=({children:e})=>(0,g.jsx)(ve.ZP.Consumer,{children:({showCloseupContentRight:t,viewportSize:i})=>t&&"lg"===i&&e}),We={backgroundGradient:{__style:{background:"linear-gradient(to bottom, #eee 200px, #fff 100%)",padding:"32px 0",width:"100%"}},closeupBoxShadow:{__style:{boxShadow:"0 4px 4px #eee",paddingBottom:"24px"}}};class $e extends n.Component{constructor(...e){super(...e),Ge(this,"state",{descriptionShowMore:!1,showDeletePinModal:!1,viewportSize:"lg"}),Ge(this,"mounted",!1),Ge(this,"updateViewportSize",(0,Ne.Z)((()=>{this.mounted&&this.setState({viewportSize:window&&window.matchMedia("(min-width: 1056px)").matches?"lg":"md"})}),50)),Ge(this,"handleCloseDeleteStatusPinModal",(()=>{this.setState({showDeletePinModal:!1})})),Ge(this,"handleGoBack",(()=>{const{isLandingPage:e,history:t}=this.props,{crossSite:i}=(0,he.Z)();i?window.history.back():e?t.push("/"):t.goBack()})),Ge(this,"handleOnDeleteStatusPin",(()=>{const{toastManagerContext:e}=this.props;this.setState({showDeletePinModal:!1}),e.showToast((({hideToast:e})=>(0,g.jsx)(Ze.ZP,{onHide:e,text:this.props.i18n._('Pin deleted', 'Pin delete completion confirmation', 'Pin delete completion confirmation')}))),this.handleGoBack()})),Ge(this,"handleOpenDeleteStatusPinModal",(()=>{this.setState({showDeletePinModal:!0}),this.props.logContextEvent({event_type:7803,view_type:248})})),Ge(this,"handleToggleExpand",(()=>this.setState((e=>({descriptionShowMore:!e.descriptionShowMore}))))),Ge(this,"renderNonConversationalDetail",(()=>{const{onCloseupBodyUpdate:e,pin:t,viewer:i,onClickThrough:o}=this.props,{id:a,is_native:r}=t,{video:s}=(0,ge.Z)((0,I.Z)({pin:t}))||{};return(0,g.jsxs)(n.Fragment,{children:[this.showCreatorCard&&(0,g.jsx)(R.xu,{marginBottom:3,children:(0,g.jsx)(O.Z,{componentType:126,creatorId:this.creatorId,impressionType:"User",loggingId:this.creatorId,pin:t,slotIndex:0,viewer:i,viewParameter:156,viewType:3})}),r&&t&&(0,g.jsx)(D,{pin:t,viewer:i}),(0,g.jsx)(pe,{onClickThrough:o,onToggle:this.handleToggleExpand,onUpdate:e,pin:t,showCreatorCard:this.showCreatorCard,showMore:this.state.descriptionShowMore,viewer:i}),r&&s?(0,g.jsx)(R.xu,{marginBottom:4,children:(0,g.jsx)(ce.xV,{onUpdate:e,pin:t,pinId:a,viewer:i})}):null,!r&&t&&(0,g.jsx)(D,{pin:t,viewer:i})]})}))}get creatorId(){var e;const{pin:t}=this.props,{link_domain:i}=t,n=this.props.pin.third_party_pin_owner,o=i&&i.official_user;return o||n?null!=o&&o.id?o.id:null!==(e=null==n?void 0:n.id)&&void 0!==e?e:"":null}get showCreatorCard(){const{pin:e}=this.props;return(e.link_domain&&e.link_domain.official_user||!!e.third_party_pin_owner)&&!e.is_promoted}componentDidMount(){this.mounted=!0,this.updateViewportSize(),window.addEventListener("resize",this.updateViewportSize)}componentWillUnmount(){window.removeEventListener("resize",this.updateViewportSize),this.mounted=!1}render(){var e;const{showDeletePinModal:t,viewportSize:i}=this.state,{isLandingPage:n,pin:o}=this.props,{id:a,title:r,video_status_message:s}=o||{},l=s||{},c={pin:o},d=(0,I.Z)(c),{image564x:u=null}=(0,Fe.Ip)((0,me.Z)(d))||{},{imageOrig:p=null}=(0,_e.Z)((0,me.Z)(d))||{},h=u||p,_=h&&h.url,{video:m=null}=(0,ge.Z)(d)||{},x=(0,g.jsx)(Me.Z,{...c});let f=60,y=0;return h&&(f=h&&"lg"===i?Math.max(Math.min(h.width,496),60):Math.max(Math.min(h.width,564),60),y=h&&h.height?f/h.width*h.height:0),(0,g.jsx)(Be.Z,{view:248,children:(0,g.jsxs)(ve.ZP.Provider,{value:(0,ve.Nb)({...ve.Of,showCloseupContentRight:!0,viewportSize:i}),children:[(0,g.jsxs)(R.xu,{dangerouslySetInlineStyle:We.backgroundGradient,children:[(0,g.jsx)(R.xu,{display:"flex",justifyContent:"center",paddingY:6,children:(0,g.jsx)(R.xv,{align:"center",inline:!0,children:(0,g.jsxs)("span",{className:"deprecatedTextSizeXL",children:[`${null!==(e=l.closeup)&&void 0!==e?e:""} `,(0,g.jsx)(R.xv,{inline:!0,weight:"bold",children:(0,g.jsx)("span",{className:"deprecatedTextSizeXL",children:(0,g.jsx)(R.rU,{display:"inlineBlock",href:Ue.o1,onClick:({dangerouslyDisableOnNavigation:e})=>e(),underline:"hover",children:this.props.i18n._('Read our guidelines', 'Text link to Pinterest\'s video content guidelines', 'Text link to Pinterest\'s video content guidelines')})})},"review-guidelines")]})})}),(0,g.jsx)(R.kC,{alignItems:"stretch",justifyContent:"center",children:(0,g.jsx)(xe.Z,{children:(0,g.jsxs)(R.xu,{color:"default",rounding:2,dangerouslySetInlineStyle:We.closeupBoxShadow,children:[(0,g.jsxs)(R.xu,{display:"flex",justifyContent:"between",alignItems:"center",paddingX:6,paddingY:4,children:[(0,g.jsx)(R.hU,{accessibilityLabel:this.props.i18n._('Back', 'Text for back button in the Pin creation flow', 'Text for back button in the Pin creation flow'),icon:"arrow-back",iconColor:"darkGray",onClick:this.handleGoBack,size:"lg",padding:2}),(0,g.jsx)(R.xu,{display:"flex",padding:1,children:(0,g.jsx)(R.zx,{fullWidth:!0,color:"gray",text:this.props.i18n._('Delete', 'Delete a status Pin', 'Delete a status Pin'),onClick:this.handleOpenDeleteStatusPinModal})})]}),(0,g.jsxs)(ye.Z,{children:[(0,g.jsx)(R.xu,{paddingX:4,children:(0,g.jsx)(be,{children:x})}),(0,g.jsx)(fe.Z,{variant:"default",children:(0,g.jsx)(R.xu,{rounding:2,overflow:"hidden",height:y,width:f,children:m?(0,g.jsx)(z.Z,{customThumbnail:_,muted:n,pinId:a,video:m,autoplay:!0,variant:"legacy"}):h&&(0,g.jsx)(R.Ee,{alt:r||"",color:"lightGray",naturalHeight:h.height,naturalWidth:h.width,src:h.url})})}),(0,g.jsxs)(R.xu,{paddingX:4,children:[(0,g.jsx)(He,{children:x}),d&&this.renderNonConversationalDetail()]})]})]})})}),(0,g.jsxs)(R.xu,{display:"flex",justifyContent:"center",alignItems:"center",marginTop:6,children:[(0,g.jsx)(R.JO,{accessibilityLabel:this.props.i18n._('Lock', 'Accessibility label for lock icon', 'Accessibility label for lock icon'),icon:"lock",inline:!0,size:20}),(0,g.jsx)(R.xu,{padding:2,children:(0,g.jsx)(R.xv,{children:this.props.i18n._('This is only visible to you', 'The status pin closeup page is only visible to the pin owner', 'The status pin closeup page is only visible to the pin owner')})})]})]}),t&&(0,g.jsx)(Le,{pinId:a,onDelete:this.handleOnDeleteStatusPin,onHide:this.handleCloseDeleteStatusPinModal})]})})}}function Ke(e){const{logContextEvent:t}=(0,Ie.v)(),i=(0,M.ZP)(),{previous:n}=(0,c.Hv)(),o=0===n.length;return(0,g.jsx)($e,{...e,history:(0,d.useHistory)(),isLandingPage:o,toastManagerContext:(0,Ve.F9)(),viewer:(0,a.Z)(),i18n:i,logContextEvent:t})}var qe=i(496793);var Ye=i(717615),Xe=i(283855),Je=i(231947),Qe=i(623568),et=i(915071),tt=i(724917);function it({checkExperiment:e,currentHistoryStack:t,history:i,location:o,params:a,pinResource:r,requestContext:l,searchPinCloseupViewed:c,showQuickPromote:d,showRepin:u,viewer:p,CloseupComponent:_,...m}){const x=r.data,b=r.isLoaded,S=(0,n.useRef)(null),A=b&&x&&x.pinner&&p.isAuth&&p.username===x.pinner.username&&b&&x&&"extension"===x.method,{trafficSource:k,topLevelTrafficSource:E,topLevelTrafficSourceDepth:C,contextPinIds:I}=(0,y.Z)(t,p.isAuth);C>1&&"pin"!==k&&w.Z.increment("p2p.traffic_source.client",.1,{trafficSource:k,topLevelTrafficSource:E,topLevelTrafficSourceDepth:C});const j=(0,v._)(t),R=(0,s.mB)(o.search);return(0,n.useEffect)((()=>{S!==x&&function({history:e,isBot:t,location:i,viewerId:n,viewerIsAuth:o}){!Boolean(t)&&n&&"undefined"!=typeof window&&(0,qe.U)(window.location,n,!1,o,(t=>e.replace(t,i.state)))}({history:i,isBot:l.isBot,location:o,viewerId:p.id||"",viewerIsAuth:p.isAuth}),S.current=x}),[i,o,S,x,l.isBot,p.id,p.isAuth]),(0,n.useEffect)((()=>()=>{j&&null!=x&&x.id&&c(x.id,j)}),[null==x?void 0:x.id,j,c]),(0,g.jsx)(Xe.Q,{value:{featuredCommentId:a.comment_id||""},children:(0,g.jsx)(f,{children:(0,g.jsx)(h,{pinId:a.id||"",pinResource:r,children:({isLandingPage:e,isLimitedLogin:n,didRepin:o,openInbox:s,pin:l,shouldShowInbox:c,updateExperienceForPlacement:h})=>{var f,y;return(0,g.jsx)(_,{contextPinIds:I,conversation_id:R.conversation_id,deepLinkBackGoesToBoard:A,didRepin:o,emailId:R.e_t,forceSendFeedback:R.fsf,goBack:P({boardUrl:null==x||null===(f=x.board)||void 0===f?void 0:f.url,currentHistoryStack:t,history:i,isFromExtension:!!A,hasViewerPartner:!!p.partner}),isLandingPage:e,isLimitedLogin:n,messageId:R.message,onLoginClick:T,openInbox:s,pin:l,pinId:null!==(y=a.id)&&void 0!==y?y:"",pinResource:r,routePush:i.push,searchQuery:j,senderId:R.sender,shouldShowInbox:c,showQuickPromote:d,showRepinOnInitialRender:u,topLevelTrafficSource:E,topLevelTrafficSourceDepth:C,trafficSource:k,updateExperienceForPlacement:h,viewer:p,...m})}})})})}function nt(e){var t;const{pinResource:i}=e,n=i.data,{aggregated_pin_data:o,ip_eligible_for_stela:a}=n||{},{is_shop_the_look:r}=o||{},s=!!(n||{}).story_pin_data,l=r&&!s,c=null==n||null===(t=n.story_pin_data)||void 0===t?void 0:t.has_product_pins,d=s&&a;let u=tt.$y;return l?u=tt.f9:c?u=tt.z8:d&&(u=tt.Q2),(0,g.jsx)(it,{...e,CloseupComponent:u})}function ot(e){const t=(0,o.useDispatch)(),i=(0,a.Z)(),r=(0,d.useParams)(),s=(0,c.aX)(),l={...e,history:(0,d.useHistory)(),location:(0,d.useLocation)(),params:r,requestContext:(0,p.B)(),searchPinCloseupViewed:(e,i)=>t((0,et.Y4)(e,i)),viewer:i},{checkExperiment:u}=(0,ne.F)();return(0,g.jsx)(A.Z,{surface:"pin_closeup",constraints:["image","resource","button","video"],customEnabledNavigationTypes:["client_route_push","client_route_replace"],children:(0,g.jsx)(S.Z,{pinId:r.id||"",orbacSubjectId:(0,Je.lJ)(i,(0,Ye.Z)()),children:({pinResource:e})=>{const t=e&&e.data;return t&&(0,Qe._J)(t)?(0,g.jsx)(Ke,{pin:t,...l}):(0,n.createElement)(nt,{...l,checkExperiment:u,currentHistoryStack:s,pinResource:e,key:r.id})}})})}},258140:(e,t,i)=>{i.d(t,{Z:()=>h});var n=i(667294),o=i(52722),a=i(271040),r=i(186986),s=i(692627),l=i(71052),c=i(82314),d=i(883119),u=i(276602),p=i(785893);function h({inStlPinnerExp:e,taggedProducts:t,pin:i,pinResource:h,topLevelTrafficSource:_,didShortClickThrough:m,firstLoadComplete:g,viewportSize:x,showRelatedContent:f,renderRelatedModulesContent:y,renderBodyContent:v,onWrapperClick:b,beforeBodyContent:P,afterBodyContent:w}){var S,A,k;const{error:E}=h,{image_signature:T,story_pin_data_id:C}=i||{};if(0!==!Object.keys(i).length&&E)return(0,p.jsx)(a.Z,{});const I=!!C,j=!i.is_promoted,R=f&&y(),D=((t||[]).filter((e=>(0,r.Z)(e)))||[])[0],z=(0,s.Z)({hasPin:!!i,hasPinRichMetadata:!(null==i||!i.rich_metadata),hasPinRichMetadataProducts:!(null==i||null===(S=i.rich_metadata)||void 0===S||!S.products),hasPinRichMetadataArticle:!(null==i||null===(A=i.rich_metadata)||void 0===A||!A.article),hasPinRichMetadataRecipe:!(null==i||null===(k=i.rich_metadata)||void 0===k||!k.recipe),hasPinStoryPinData:!(null==i||!i.story_pin_data)});return(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(u.gD,{children:e=>(0,p.jsx)("div",{className:"Closeup Module","data-test-id":g?"closeup-data-loaded":"",onClick:t=>{I||b(t),e&&(null==e||e.abort(c.Bu))},role:"presentation",style:{cursor:"zoom-out",display:"flex",width:"100%"},children:(0,p.jsxs)(d.kC,{alignItems:"stretch",direction:"row",justifyContent:"center",width:"100%",children:[P,v(),w,m&&!j&&(0,p.jsx)(l.C,{})]})},"closeup-content")}),(0,p.jsxs)(d.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:[!I&&D&&"story"===D.type&&e&&(0,p.jsx)(o.Z,{data:D,closeupImageSignature:T,pin:i,storyId:D.id,slotIndex:0,storyType:D.story_type,viewParameter:z,viewportSize:x,topLevelTrafficSource:_}),R]})]})}},360961:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(898781),o=i(366428),a=i(883119),r=i(785893);function s({storyId:e,slotIndex:t,storyType:i,title:s,viewParameter:l,clientTrackingParams:c}){const d=(0,n.ZP)(),u=s||d._('More like this', 'closeup.relatedPins.header', 'text that shows more pins when you scroll down to related pins from a closeup'),p=(0,o.Z)({clientTrackingParams:c,componentType:200,contextLogData:{story_id:e,story_type:i},impressionType:"Story",loggingId:e,slotIndex:t,viewParameter:l,viewType:3});return(0,r.jsxs)(a.xu,{ref:p,justifyContent:"center",alignItems:"center",display:"flex",color:"default",direction:"column",paddingX:8,paddingY:3,marginBottom:1,children:[(0,r.jsx)(a.xu,{column:12,smColumn:8,justifyContent:"center",alignContent:"center",flex:"grow",display:"flex",children:(0,r.jsx)(a.X6,{align:"center",size:"400",children:u})}),(0,r.jsx)(a.xu,{smColumn:2,display:"none",smDisplay:"block"})]})}},438799:(e,t,i)=>{i.d(t,{Z:()=>p});var n=i(940589),o=i(66699),a=i(883851),r=i(898781),s=i(796668),l=i(407043),c=i(276775),d=i(883119),u=i(785893);function p({story:e}){const{logContextEvent:t}=(0,l.v)(),i=(0,r.ZP)(),p=e.objects.length>0&&e.objects[0].title.format||"",h=(0,c.useHistory)();return(0,u.jsx)(d.xu,{marginTop:7,marginBottom:7,children:(0,u.jsxs)(d.kC,{alignItems:"center",direction:"column",gap:{row:0,column:3},children:[(0,u.jsx)(d.xv,{color:"default",overflow:"normal",weight:"bold",children:(0,o.Z)(i._('Explore {{query}} by skin tone range', 'closeuprelatedmodules.skin_tone_filter_message', 'Explore `query` by skin tone range'),{query:p.toLowerCase()})}),(0,u.jsx)(d.kC,{flex:"none",gap:{row:1,column:0},children:e.custom_properties.skin_tone_filter_list.options.map((({term:e},i)=>(0,u.jsx)(d.xu,{dangerouslySetInlineStyle:{__style:{padding:"0 2px"}},children:(0,u.jsx)(a.Z,{colors:s.W[i],isSelected:!1,onClick:()=>(e=>{t({event_type:101,component:13803,element:10418,view_type:3,aux_data:{entered_query:p,filter_type:"skin_tone",value:e}});const i=(0,n.Z)({query:p,rs:"typed",scope:"pins",filters:e});h.push(i)})((e=>{const t=e.split(",");return t.length>0?t[0]:""})(e))})},e)))})]})})}},52722:(e,t,i)=>{i.d(t,{Z:()=>T});var n=i(667294),o=i(702664),a=i(96939),r=i(794230),s=i(116303),l=i(564194),c=i(760693),d=i(656226),u=i(954959),p=i(368271),h=i(898781),_=i(717615),m=i(19121),g=i(444445),x=i(763917),f=i(349700),y=i(407043),v=i(558068),b=i(773285),P=i(276775),w=i(231947),S=i(372169),A=i(883119),k=i(785893);const E={sm:{maxPins:2,maxWidth:"488px"},md:{maxPins:3,maxWidth:"741px"},lg:{maxPins:4,maxWidth:"976px"}};function T({closeupImageSignature:e,data:t,pin:T,slotIndex:C,storyId:I,storyType:j,topLevelTrafficSource:R,viewParameter:D,viewportSize:z}){var O,L,N,B;const{logContextEvent:M}=(0,y.v)(),[Z,F]=(0,n.useState)(0),U=(0,h.ZP)(),V=(0,m.Z)(),G=(0,_.Z)(),{checkExperiment:H}=(0,b.F)(),W=(0,w.nl)(V,G)&&H("web_stl_tooling",{dangerouslySkipActivation:!0}).anyEnabled,$="enabled_full_width_story"===H("web_pdp_recommenders",{dangerouslySkipActivation:!0}).group;(0,n.useEffect)((()=>{const e=()=>{F(window.innerWidth)};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}));const K=(0,v.aX)(),q=(0,o.useDispatch)(),Y=(0,P.useHistory)(),X=W&&(null==T||null===(O=T.pinner)||void 0===O?void 0:O.username)&&(0,w.Ms)(V,G)===((null===(L=T.link_domain)||void 0===L||null===(N=L.official_user)||void 0===N?void 0:N.username)||(null===(B=T.native_creator)||void 0===B?void 0:B.username)),{action:J,content_ids:Q,objects:ee,subtitle:te,title:ie}=t,{user:ne,url:oe,text:ae}=J||{},{full_name:re,image_large_url:se,username:le}=ne||{},{format:ce=""}=te||{},de=E[z].maxPins,ue=!!ae&&!!oe;let pe=oe;const he=(0,x._)(K);if(pe&&(R||he)){const e={...R?{source:R}:Object.freeze({}),...he?{search_query:he}:{}};pe=(0,r.Z)(pe,e)}let _e,me;if("related_domain_carousel"===j?_e=13327:"shop_the_look_non_xy_coordinates"===j&&(_e=13474),"related_domain_carousel"===j){const e=re||(null==ie?void 0:ie.format)||le||"";me=(0,k.jsxs)(A.kC,{alignItems:"center",direction:"row",gap:{row:2,column:0},children:[se&&$&&le&&(0,k.jsx)(A.zd,{rounding:"circle",wash:!0,children:(0,k.jsx)(A.iP,{role:"link",href:`/${le}/`,children:(0,k.jsx)(s.Z,{size:"sm",src:se,name:e})})}),(0,f.nk)(U._('More from {{ merchant }}', 'domain.module.header', 'header for the domain module'),{merchant:(0,k.jsx)(A.xu,{display:"inlineBlock","data-test-id":"merchant-name",children:(0,k.jsx)(A.X6,{size:"400",children:e},e)},e)})]})}else if("shop_the_look_non_xy_coordinates"===j){const{format:e}=ie||{};me=e}const ge=16+S.jh,xe=Math.floor(Z/ge)||E[z].maxPins,fe=$&&ee?xe:de,ye=ee.filter((e=>"pin"===(null==e?void 0:e.type))).length;return(0,k.jsx)(l.Z,{componentType:_e,contextLogData:{content_ids:(Q||[]).map((e=>`pin:${e}`)).join("|"),story_id:I,story_type:j,image_signature:e},impressionType:"Story",loggingId:I,slotIndex:C,viewParameter:D,viewType:3,children:(0,k.jsxs)(A.xu,{"data-test-id":"related-domain-carousel",display:"flex",direction:"column",justifyContent:"center",alignSelf:"center",maxWidth:$?void 0:E[z].maxWidth,alignItems:"center",children:[me&&(0,k.jsx)(A.xu,{display:"inlineBlock",marginTop:10,children:(0,k.jsx)(A.X6,{size:"400",children:me})}),X&&(0,k.jsx)(A.xu,{display:"flex",flex:"shrink",marginTop:4,children:(0,k.jsx)(p.Z,{entryPoint:"domain_module",imageSignature:e,onClick:()=>{(async()=>{const[{default:t},{setCloseupImageSignature:n,setPinBuilderEntryPoint:o}]=await Promise.all([i.e(13992).then(i.bind(i,513992)),i.e(5782).then(i.bind(i,474394))]);q(t(T)),M({event_type:101,element:12080,view_type:3,view_parameter:D,aux_data:{image_signature:e,entry_point_source:"domain_module",...T?{pin_id:T.id}:{}}}),Y.push({pathname:"/pin-builder/",state:{disableAddPinDraft:!0}}),q(o("domain_module")),q(n(e))})()},pinId:null==T?void 0:T.id,viewParameter:D})}),!!ce&&(0,k.jsx)(A.xu,{marginTop:2,"data-test-id":"merchant-description",children:(0,k.jsx)(A.xv,{align:"center",children:ce})}),(0,k.jsx)(A.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:!!ee&&ee.map(((e,t)=>{if(e&&"pin"===e.type&&t{var e,t,i;"related_domain_carousel"===j&&(M({component:13882,element:11829,event_type:101,object_id_str:null==T?void 0:T.id,view_type:3,view_parameter:D}),M({aux_data:{commerce_data:JSON.stringify({pin_show_pdp:T&&(0,u.Z)({isEligibleForPdp:null!==(e=T.is_eligible_for_pdp)&&void 0!==e&&e,isStaleProduct:null!==(t=T.is_stale_product)&&void 0!==t&&t,isOutOfStockProduct:null!==(i=T.is_oos_product)&&void 0!==i&&i})})},component:13680,event_type:101,object_id_str:null==T?void 0:T.id,view_type:3,view_parameter:D}),c.Z.DomainModule.trackSeeMoreClick({viewParameter:D},M));"shop_the_look_non_xy_coordinates"===j&&M({event_type:101,component:11967,view_type:3,view_parameter:D,aux_data:{commerce_data:JSON.stringify({pin_is_shop_the_look:!0})}})},text:ae})})})]})})}},326595:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),o=i(898781),a=i(883119),r=i(785893);function s({bold:e=!0,color:t="darkGray",iconSize:i=16,textSize:s="200",timeString:l}){const c=(0,o.ZP)();return(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)(a.xu,{marginEnd:1,children:(0,r.jsx)(a.JO,{accessibilityLabel:c._('clock', 'accessible label for clock icon on recipe rich pin', 'accessible label for clock icon on recipe rich pin'),color:t,icon:"clock",size:i})}),(0,r.jsx)(a.xv,{color:t,size:s,weight:e?"bold":"normal",children:l})]})}},565212:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(667294),o=i(883119),a=i(785893);function r({children:e}){const t=(0,n.useRef)(null),[i,r]=(0,n.useState)({isFirstLoad:!0,isTruncated:!1}),{isFirstLoad:s,isTruncated:l}=i;return(0,n.useEffect)((()=>{var e;s&&t.current&&((e=t.current).offsetHeightr({...i,isTruncated:!1}),children:(0,a.jsx)(o.xv,{size:"200",weight:"bold",children:"… more"})})})]})})]})}},575576:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(785893);const o={contentWrapper:{cursor:"auto"},wrapper:{cursor:"zoom-out",display:"flex",width:"100%"}},a=e=>{e.stopPropagation()};function r({className:e,children:t}){return(0,n.jsx)("div",{className:e,onClick:a,role:"presentation",style:o.contentWrapper,children:t})}},512076:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(605028),o=i(773285);const a=e=>{const{isLeadPin:t}=(0,n.Z)(e),i=(0,o.F)();return{isLeadPin:t,showLeadPinStdBeta:t&&i.checkExperiment("web_lead_ads_std_beta").anyEnabled,showLeadPinStdAlpha:t&&i.checkExperiment("web_lead_gen_ads").anyEnabled}}},385646:(e,t,i)=>{i.d(t,{Z:()=>l,f:()=>s});var n=i(985913),o=i(898781),a=i(883119),r=i(785893);const s=e=>`${e.substring(0,33)}${(e=>e.length>33?"...":"")(e)}`,l=({domain:e,fontSize:t="200",fullWidth:i=!0,textNode:l})=>{const c=((e,t)=>(0,n.Z)(t._('Visit {{domain}}', 'Accessible label for clickthrough link button', 'Accessible label for clickthrough link button'),{domain:e}))(e,(0,o.ZP)());return(0,r.jsx)(a.xu,{"data-test-id":"link-icon-with-domain-styles-wrapper",color:"secondary",width:i?"100%":void 0,rounding:2,padding:2,children:(0,r.jsx)(a.st,{children:(0,r.jsxs)(a.xu,{"data-test-id":"link-icon-with-domain-styles",display:"flex",alignItems:"center",justifyContent:"start",padding:1,children:[(0,r.jsx)(a.xu,{paddingX:1,children:(0,r.jsx)(a.JO,{icon:"arrow-up-right",color:"default",inline:!0,accessibilityLabel:c,size:15})}),(0,r.jsx)(a.xu,{paddingX:1,children:l||(0,r.jsx)(a.xv,{inline:!0,size:t,weight:"bold",children:s(e)})})]})})})}},537313:(e,t,i)=>{i.d(t,{Wp:()=>w,ZP:()=>T,nA:()=>b,xV:()=>k});var n=i(667294),o=i(722767),a=i(701500),r=i(818398),s=i(74155),l=i(802933),c=i(499337),d=i(762615),u=i(432730),p=i(533439),h=i(385646),_=i(287072),m=i(977558),g=i(814197),x=i(898781),f=i(883119),y=i(785893);const v=e=>e.pin?e.pin:{},b=e=>{const t=v(e),i=(0,l.Z)(e),n=(0,u.Z)(i),{link:o=null}=(0,s.Z)(i)||{},{recipe:a}=(0,d.Z)(n)||{},{products:h}=(0,c.Z)(n)||{},{article:_}=(0,r.Z)(n)||{},{tutorial:m}=(0,p.Z)(n)||{},{description:g}=m||{},{link_domain:x,domain:f}=t,y=x?x.official_user||{}:t.origin_pinner||t.pinner||{},b=y.image_key||y.image_medium_url||y.image_small_url,P=y.username||f,w=y.full_name||P,S=(e=>{const t=v(e),{images:i}=t,n=Object.keys(i||{}).reduce(((e,t)=>{const n=i[t],{url:o,width:a,height:r}=n;return e&&o&&a&&r?{...e,[t]:{url:o,width:a,height:r}}:null}),{});return n&&Object.keys(n).length>0?n:{}})(e),{orig:A={}}=S,{url:k}=A;return{pin:t,link:o,recipe:a,products:h,article:_,tutorial:m,tutorialDescription:g,images:S,originalImage:A,originalImageUrl:k,linkDomain:x,domain:f,user:y,profileImgSrc:b,pinnerName:P,pinnerNameText:w}},P=({children:e,isPulsarDisplayed:t,onCompleteClick:i,zIndex:o,onClick:r,to:s,pin:l})=>{const c=(0,n.useRef)(null),d=(0,_.Z)({href:null!=s?s:"",target:"blank",externalData:{pin:l}});return(0,y.jsx)(a.Z,{anchor:".PinActionBar .website.pinActionBarButton, .linkModuleActionButton",anchorElementRef:c.current,isHidden:!t,onCompleteClick:i,zIndex:o,children:(0,y.jsx)(f.iP,{fullWidth:!1,href:null!=s?s:"",onTap:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),null==r||r(e),d({event:e})},ref:c,rel:"nofollow",role:"link",children:(0,y.jsx)("div",{className:"linkModuleActionButton",children:e})})})},w=e=>{const{carousel_data:t}=e;let i="",n=b({pin:e}).domain;if(t){const{carousel_slots:e=[],index:o}=t;e[o]&&(i=e[o].link||"",n=e[o].domain||n)}return{carouselLink:i,currentDomain:n}},S=({actionBarHeight:e,children:t,setPulsarVisibility:i})=>(0,y.jsx)(o.Z,{onVisibilityChange:e=>{const t=e.slice(-1)[0];i(t.isIntersecting)},options:{rootMargin:`-${e+m.hu}px 0px 0px 0px`,threshold:.75},children:t}),A=e=>{const t=(0,x.ZP)(),{children:i,isPulsarDisplayed:n,onClickThrough:o,pin:a,showDomainInLink:r,zIndex:s}=e;if(!(!!a.link&&!a.link.startsWith("https://i.pinimg.com")))return null;const l=b(e),c=((e,t)=>{let i=t._('Visit', 'Default pin link button text', 'Default pin link button text');return!e.linkDomain||(e.recipe||{}).fromAggregatedData?i=e.link&&!e.link.startsWith("https://i.pinimg.com")?t._('Visit', 'Generalized pin link button text', 'Generalized pin link button text'):t._('Open', 'Button text for pin without link to view media', 'Button text for pin without link to view media'):e.products?i=t._('Visit', 'Buyable pin link button text', 'Buyable pin link button text'):e.tutorial?i=t._('Visit', 'Make pin link button text', 'Make pin link button text'):e.recipe?i=t._('Make it', 'Recipe pin link button text', 'Recipe pin link button text'):e.article?i=t._('Read it', 'Article pin link button text', 'Article pin link button text'):e.link&&e.link.startsWith("https://i.pinimg.com")&&(i=t._('Open', 'Button text for pin without link to view media', 'Button text for pin without link to view media')),i})(l,t),{carouselLink:d,currentDomain:u}=w(a);return(0,y.jsx)(P,{onClick:o,to:d||l.link||l.originalImageUrl,onCompleteClick:o,isPulsarDisplayed:n,zIndex:s,pin:a,children:i||(r?(0,y.jsx)(h.Z,{domain:u}):(0,y.jsx)(f.zx,{fullWidth:!0,text:c,size:"md"}))})},k=e=>(0,y.jsx)(f.xu,{width:"100%",children:(0,y.jsx)(A,{...e})}),E=e=>{const{actionBarHeight:t}=e,[i,o]=(0,n.useState)(!0);return(0,y.jsx)(f.xu,{width:"100%",children:(0,y.jsx)(S,{actionBarHeight:t||0,setPulsarVisibility:o,children:(0,y.jsx)(f.xu,{display:"inlineBlock",children:(0,y.jsx)(A,{isPulsarDisplayed:i,zIndex:g.qW,...e})})})})},T=e=>(0,y.jsx)(f.kC,{alignItems:"center",justifyContent:"start",children:(0,y.jsx)("div",{className:"actionButton",children:(0,y.jsx)(E,{...e})})})},82314:(e,t,i)=>{i.d(t,{Bu:()=>o,Mg:()=>a,_z:()=>r,pM:()=>s,zc:()=>n});const n="story_pin",o="closefakemodal",a="button",r="video",s="image"},386360:(e,t,i)=>{i.d(t,{Z:()=>h});var n=i(667294),o=i(668627),a=i(692627),r=i(35495);const s=({pin:e,viewParameter:t},i)=>i({event_type:7408,view_parameter:t,object_id_str:e.id,view_type:3,view_data:{pin_id:e.id,closeup_rich_types:e.shopping_flags||[]},aux_data:{...(0,r.Kl)(e)||{}}}),l=({pin:e,viewParameter:t},i)=>i({event_type:7579,view_parameter:t,object_id_str:e.id,view_type:3,aux_data:{commerce_data:JSON.stringify({pin_is_shop_the_look:e.aggregated_pin_data.is_shop_the_look,pin_is_stela:e.aggregated_pin_data.is_stela})}});var c=i(784590),d=i(407043),u=i(276602),p=i(82314);function h(e){const{logContextEvent:t}=(0,d.v)(),i=(0,u.EV)(),r=(0,c.Z)({name:"PinResource",options:(0,o.Z)(e.pinId,e.orbacSubjectId,e.addFields)}),h=r.data;return(0,n.useEffect)((()=>{if(h){var e,n,o;const r=(0,a.Z)({hasPin:!!h,hasPinRichMetadata:!!h.rich_metadata,hasPinRichMetadataProducts:!(null===(e=h.rich_metadata)||void 0===e||!e.products),hasPinRichMetadataArticle:!(null===(n=h.rich_metadata)||void 0===n||!n.article),hasPinRichMetadataRecipe:!(null===(o=h.rich_metadata)||void 0===o||!o.recipe),hasPinStoryPinData:!!h.story_pin_data});if(s({pin:h,viewParameter:r},t),h&&h.aggregated_pin_data&&(h.aggregated_pin_data.is_shop_the_look||h.aggregated_pin_data.is_stela)&&l({pin:h,viewParameter:r},t),i){i.markConstraintComplete("resource");!!h.story_pin_data_id?(i.setSegment(p.zc),i.removeConstraint(p.Mg)):i.removeConstraint(p._z)}}}),[r.data]),e.children({pinResource:r})}},319247:(e,t,i)=>{function n(e,t){switch(t.type){case"gallerySelect":return{shopping:t.select};case"pinLoaded":{const i=e.myTry?{}:{myTry:{isDoneByMe:t.pin.done_by_me}};return{pin:t.pin,...i,firstLoadComplete:!0}}case"tryChange":return{myTry:{isDoneByMe:t.isDoneByMe}};default:throw"impossible"}}i.d(t,{Z:()=>n})},71052:(e,t,i)=>{i.d(t,{C:()=>h});var n=i(667294),o=i(92261),a=i(977558),r=i(814197),s=i(898781),l=i(883119),c=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 u=a.hu+o.Ie+76;class p extends n.Component{constructor(...e){super(...e),d(this,"state",{showRelatedPinsUpsellFlyout:!1}),d(this,"componentDidMount",(()=>{this.handleDidShortClickThrough(),window.addEventListener("scroll",this.hideFlyout)})),d(this,"componentWillUnmount",(()=>{window.removeEventListener("scroll",this.hideFlyout)})),d(this,"hideFlyout",(()=>{this.setState({showRelatedPinsUpsellFlyout:!1})})),d(this,"handleDidShortClickThrough",(()=>{this.scrollToAnchor(),window.setTimeout((()=>{this.setState({showRelatedPinsUpsellFlyout:!0})}),100)})),d(this,"scrollToAnchor",(()=>{this.anchorRef&&(this.anchorRef.scrollIntoView(!0),window.scrollBy(0,-u))})),d(this,"setAnchorRef",(e=>{this.anchorRef=e})),d(this,"handleFlyoutClick",(({event:e})=>{e.stopPropagation(),this.hideFlyout()})),d(this,"renderFlyout",(()=>(0,c.jsx)(l.mh,{children:(0,c.jsx)(l.xu,{zIndex:new l.Ry(r.lJ),position:"absolute",top:!0,column:12,children:(0,c.jsx)(l.J2,{anchor:this.anchorRef,idealDirection:"up",color:"blue",shouldFocus:!1,size:"md",onDismiss:this.hideFlyout,positionRelativeToAnchor:!1,children:(0,c.jsx)(l.iP,{fullHeight:!0,mouseCursor:"pointer",onTap:this.handleFlyoutClick,children:(0,c.jsx)(l.xu,{padding:3,children:(0,c.jsx)(l.xv,{color:"inverse",weight:"bold",children:this.props.i18n._('Not into this Pin? See more ideas below', 'Shows in a flyout message to upsell related pins to users', 'Shows in a flyout message to upsell related pins to users')})})})})})}))),d(this,"render",(()=>(0,c.jsx)(l.xu,{ref:this.setAnchorRef,children:this.state.showRelatedPinsUpsellFlyout?this.renderFlyout():null})))}}const h=function(e){const t=(0,s.ZP)();return(0,c.jsx)(p,{...e,i18n:t})}},280348:(e,t,i)=>{i.d(t,{Z:()=>u});var n=i(667294),o=i(238464),a=i(428258),r=i(407043),s=i(898781),l=i(883119),c=i(785893);class d extends n.PureComponent{constructor(...e){var t,i,n;super(...e),t=this,i="startAudiblePlayTime",n=this.props.muted?null:new Date,i in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n}componentDidUpdate(e){e.muted!==this.props.muted&&(this.startAudiblePlayTime=this.props.muted?null:new Date)}componentWillUnmount(){const{musicRecordingId:e,muted:t,pinId:i,video:n}=this.props;if(e&&!t&&this.startAudiblePlayTime){if(new Date-this.startAudiblePlayTime>=2e3){const{hlsv3:t,mp4:o}=(0,a.Z)(n)||{},r=o||t,s=(null==r?void 0:r.duration)||0;this.props.logContextEvent({event_type:8999,object_id_str:e,aux_data:{pin_id:i,story_pin_music_duration:s}})}}}render(){const{activePageIndex:e,blockHeight:t,blockPosition:i,blockWidth:n,closeupStoryPinViewability:r,customEndCard:s,isPlaying:d,muted:u,onEnded:p,onUpdateVideoInfo:h,pageIndex:_,pinId:m,roundCorners:g=!0,video:x,videoThumbnailStartTime:f}=this.props,{hlsv3:y,mp4:v}=(0,a.Z)(x)||{},b=v||y;if(!b)return null;const{height:P,thumbnail:w,width:S}=b,A=(null!=S?S:1)/(null!=P?P:1),k={height:"100%",left:"0",top:"0",width:"100%"},E=n/t;if(Math.abs(E-A)>.01)if(EA){const e=100*E/A;k.height=`${e}%`,k.top=`-${(e-100)/2}%`}const T="number"==typeof e&&_<=e+3;return(0,c.jsx)(l.xu,{height:t,overflow:"hidden",position:"relative",width:n,children:(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{left:i.left<0?i.left:0,top:i.top<0?i.top:0}},height:"100%",position:"absolute",width:"100%",children:T||d||f?(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:k},position:"absolute",children:(0,c.jsx)(o.Z,{loop:!1,autoplay:d,closeupStoryPinViewability:r,contextLogData:{component:0===_?227:228,element:10957,objectId:m,story_pin_page_id:_,view:3,viewParameter:157},customThumbnail:w,customEndCard:s,isPromoted:!1,muted:u,pinId:m,showControls:"never",variant:"storyPin",preferMp4:!!v,objectFit:v?"cover":void 0,roundingOverride:g?null:0,video:{id:x.id,hlsv3:y,mp4:v},onTimeChange:({time:e})=>{if(h&&"number"==typeof b.duration&&b.duration>0){const t=b.duration/1e3;h({currentTime:e,duration:t})}},onEnded:()=>{p&&p(_)},videoThumbnailStartTime:f})}):(0,c.jsx)(l.Ee,{alt:this.props.i18n._('Video cover image', 'closeup.storyPin.videoCover', 'cover image displayed for a video'),fit:"cover",naturalHeight:null!=P?P:1,naturalWidth:null!=S?S:1,src:null!=w?w:""})})})}}function u(e){const{logContextEvent:t}=(0,r.v)(),i=(0,s.ZP)();return(0,c.jsx)(d,{...e,i18n:i,logContextEvent:t})}},595202:(e,t,i)=>{i.d(t,{_B:()=>D,Xw:()=>O,tD:()=>L,B5:()=>z,ZP:()=>M});var n=i(784590),o=i(407043),a=i(276775),r=i(883119),s=i(785893);const l=({block:{block_style:{height:e=0,width:t=0,x_coord:i=0,y_coord:l=0,rotation:c=0}={},original_comment_id:d},pageAspectRatio:u,scaleFactor:p})=>{const{logContextEvent:h}=(0,o.v)(),_=D/u,m=t*D*p/100,g=e*_*p/100,x=i*D*p/100,f=l*_*p/100,y=(0,a.useHistory)(),{data:v}=(0,n.Z)({name:"AggregatedCommentResource",options:{commentId:d,field_set_key:"comment_reply_sticker"}});return(0,s.jsx)(r.xu,{display:"flex",dangerouslySetInlineStyle:{__style:{left:x,top:f,transform:`rotate(${c}deg)`}},height:g,position:"absolute",width:m,rounding:2,zIndex:z,padding:1,margin:-1,children:(0,s.jsx)(r.iP,{onTap:()=>{h({event_type:102,view_type:1,component:227,element:12541,aux_data:{comment_id:d}}),null!=v&&v.pin_id&&y.push(`/pin/${v.pin_id}/comments/${d||""}`)},rounding:"pill"})})};var c=i(523657),d=i(667294),u=i(116303),p=i(148028),h=i(121151),_=i(964569),m=i(898781),g=i(664569);const x=({aggregatedCommentId:e,onDismiss:t})=>{const i=(0,m.ZP)(),n=(0,_.Z)(),[o,a]=(0,d.useState)(""),l=(0,s.jsx)(r.kC,{justifyContent:"end",children:(0,s.jsx)(r.zx,{color:"red",disabled:!o,onClick:()=>{(async()=>{await n({fromUnifiedComment:!0,objectType:g.o.aggregatedComment,objectId:e,tags:"[]",text:o})})(),t()},text:i._('Post', 'ideapin.questionsticker.replymodal.postbutton', 'Post reply to creator Q&A question')})});return(0,s.jsx)(h.ZP,{accessibilityModalLabel:"reply to creator Q and A question",align:"start",footer:l,heading:i._('Reply', 'ideapin.questionsticker.replymodal', 'Reply to creator Q&A question'),onDismiss:t,children:(0,s.jsx)(r.xu,{paddingX:8,paddingY:1,children:(0,s.jsx)(r.Kx,{id:"ideaPinQuestionStickerReplyModalTextArea",onChange:({value:e})=>{a(e)},placeholder:i._('Your reply will show up as a public comment on this Idea Pin.', 'ideapin.questionsticker.replymodal.placeholder', 'Placeholder for creator Q&A reply textarea'),value:o})})})};var f=i(224496),y=i(349700),v=i(773285);function b({block:e,elementType:t,onFlyoutOpen:i,pageAspectRatio:l,pageIndex:c,productPins:h,scaleFactor:_,tooltipElementType:g,videoPinProgress:b}){var P;const{logContextEvent:w}=(0,o.v)(),[S,A]=(0,d.useState)(!1),[k,E]=(0,d.useState)(!1),T=(0,d.useRef)(),C=(0,a.useHistory)(),I=(0,m.ZP)(),{checkExperiment:j}=(0,v.F)(),{block_style:{height:R=0,width:N=0,x_coord:B=0,y_coord:M=0,rotation:Z=0}={},end_time:F,error_message:U,interactive_sticker_type:V=null,is_removed:G,is_valid:H,start_time:W,sticker_data:$,type:K}=e,q=e.pin_id,Y=(h||[]).find((e=>[e.id,e.cacheable_id].includes(q)))||{},{board_id:X,question_comment_id:J}=$||{},{image_small_url:Q,full_name:ee,username:te=""}=null!==(P=e.user)&&void 0!==P?P:{};let ie=null;const ne=H&&5===V&&!!X,oe=H&&7===V&&!!J,ae=(0,n.Z)(X&&ne?{name:"BoardResource",options:{field_set_key:"tagged_board_preview",board_id:X}}:null),{is_collaborative:re,pin_count:se,url:le}=ae.data||{};K===f.h8.PRODUCT_STICKER?ie=q?`/pin/${q}/`:"/":K===f.h8.MENTION_STICKER?ie=`/${te}/`:ne&&(ie=ae.isLoaded?`${le}`:null);const ce=D/l,de=N*D*_/100,ue=R*ce*_/100,pe=B*D*_/100,he=M*ce*_/100,{currentTime:_e}=b||{},me=!(0,p.Z)({currentTime:_e,endTime:F,startTime:W}),ge=()=>{w({event_type:123,component:228,element:g,view_type:3,view_parameter:157,aux_data:{story_pin_page_id:c}}),A(!1)};(0,d.useEffect)((()=>(document.addEventListener("scroll",(()=>{A(!1)})),()=>document.removeEventListener("scroll",(()=>{A(!1)})))),[]);const xe=()=>{let e=null;switch(K){case f.h8.PRODUCT_STICKER:const t=40,{grid_title:i,images:n,rich_summary:o,description:a}=Y||{},l=(n||{})["236x"]||{},{display_name:c,products:p}=o||{},h=((p||[])[0]||{}).offer_summary||{},{price:_,max_price:m}=h||{},g=!(!h||!_&&!m),x=c||i||a;e=(0,s.jsxs)(d.Fragment,{children:[(0,s.jsx)(r.xu,{flex:"none",children:(0,s.jsx)(r.zd,{wash:!0,height:t,width:t,rounding:3,children:(0,s.jsx)(r.Ee,{alt:"",color:"lightGray",fit:"cover",naturalHeight:1,naturalWidth:1,src:l.url||""})})}),(0,s.jsx)(r.xu,{flex:"grow",paddingX:2,children:g?(0,s.jsxs)(r.kC,{alignContent:"center",alignItems:"stretch",direction:"column",flex:"grow",justifyContent:"center",children:[(0,s.jsx)(r.xv,{size:"100",lineClamp:1,weight:"bold",color:"shopping",children:_}),(0,s.jsx)(r.xv,{size:"100",lineClamp:1,children:x})]}):(0,s.jsx)(r.xv,{size:"100",lineClamp:1,children:x})}),(0,s.jsx)(r.xu,{flex:"none",children:(0,s.jsx)(r.Sj,{iconColor:"darkGray",bgColor:"transparent",size:"xs",icon:"arrow-forward"})})]});break;case f.h8.MENTION_STICKER:e=(0,s.jsxs)(d.Fragment,{children:[(0,s.jsx)(r.xu,{flex:"none",children:(0,s.jsx)(u.Z,{size:"sm",name:null!=ee?ee:"",src:null!=Q?Q:void 0})}),(0,s.jsx)(r.xu,{flex:"grow",paddingX:2,children:(0,s.jsx)(r.xv,{weight:"bold",size:"200",lineClamp:1,children:ee})}),(0,s.jsx)(r.xu,{flex:"none",children:(0,s.jsx)(r.Sj,{iconColor:"darkGray",bgColor:"transparent",size:"xs",icon:"arrow-forward"})})]});break;case f.h8.GENERIC_STICKER:e=[5].includes(V)?H?ae.isLoaded?(0,s.jsxs)(d.Fragment,{children:[(0,s.jsxs)(r.xu,{flex:"grow",paddingX:2,children:[(0,s.jsx)(r.xv,{weight:"bold",size:"100",lineClamp:1,children:re?I._('Explore this group board', 'closeup.StoryPin.stickerBlock.boardSticker.clickLabel', 'Label explaining click action when group board tag flyout showing'):I._('Explore this board', 'closeup.StoryPin.stickerBlock.boardSticker.clickLabel', 'Label explaining click action when board tag flyout showing')}),(0,s.jsx)(r.xv,{size:"100",children:(!!se||0===se)&&(0,y.nk)(I.ngettext('{{ pinCount }} Pin', '{{ pinCount }} Pins', se, 'closeup.StoryPin.stickerBlock.boardSticker.boardLabel', 'Caption when board tag flyout that showing number of Pins on board'),{pinCount:se})})]}),(0,s.jsx)(r.xu,{flex:"none",children:(0,s.jsx)(r.Sj,{iconColor:"darkGray",bgColor:"transparent",size:"xs",icon:"arrow-forward"})})]}):(0,s.jsxs)(r.xu,{alignItems:"center",direction:"row",display:"flex",flex:"grow",paddingY:2,children:[(0,s.jsx)(r.xu,{marginEnd:1,paddingX:2,children:(0,s.jsx)(r.xv,{color:"subtle",size:"100",lineClamp:1,children:I._('Loading board...', 'closeup.StoryPin.stickerBlock.boardSticker.loadingText', 'Label explaining board sticker still loading')})}),(0,s.jsx)(r.$j,{accessibilityLabel:I._('Board is loading', 'closeup.StoryPin.stickerBlock.boardSticker.loadingSpinnerText', 'Accessibility label for board loading spinner'),size:"sm",show:!0})]}):(0,s.jsx)(r.xu,{paddingX:2,paddingY:2,children:(0,s.jsx)(r.xv,{color:"subtle",lineClamp:1,size:"200",weight:"bold",children:U})}):(0,s.jsx)(r.xu,{paddingX:2,paddingY:2,children:(0,s.jsx)(r.xv,{color:"subtle",lineClamp:1,size:"200",weight:"bold",children:I._('Sticker not supported yet', 'closeup.StoryPin.stickerBlock.genericStickerError', 'Label explaining this sticker has not been implemented yet')})});break;case f.h8.VTO_MAKEUP_STICKER:e=(0,s.jsx)(r.xv,{weight:"bold",size:"300",children:I._('Try this sticker on your phone!', 'closeup.storyPin.vtoMakeupSticker', 'Caption when @vitural-try-on-makeup tag is tapped for Web')})}return(0,s.jsx)(r.xu,{alignItems:"center","data-test-id":K,display:"flex",justifyContent:"center",padding:K===f.h8.PRODUCT_STICKER?1:3,width:"100%",children:G?(0,s.jsx)(r.xv,{color:"subtle",weight:"bold",size:"200",children:I._('Tag removed!', 'closeup.storyPin.stickerBlock', 'Caption when the tag is removed')}):e})};return(0,s.jsx)(d.Fragment,{children:me?null:(0,s.jsxs)(r.xu,{dangerouslySetInlineStyle:{__style:{left:pe,top:he,transform:`rotate(${Z}deg)`}},"data-test-id":(K||"")+"_container",display:"flex",height:ue+2*O,margin:-1,padding:1,position:"absolute",ref:T,rounding:2,width:de+2*O,zIndex:z,children:[(0,s.jsx)(r.iP,{onTap:S?ge:({event:e})=>{me||(w({event_type:101,component:228,element:t,view_type:3,view_parameter:157,aux_data:{story_pin_page_id:c}}),oe?j("web_question_sticker_display").anyEnabled&&E(!0):(({event:e})=>{w({event_type:120,component:228,element:g,view_type:3,view_parameter:157,aux_data:{error_message:!H&&U?U:null,story_pin_page_id:c}}),A(!0),i&&(e.stopPropagation(),i())})({event:e}))},rounding:"pill",disabled:me}),S&&(0,s.jsx)(r.mh,{zIndex:L,children:(0,s.jsx)(r.J2,{anchor:T.current,idealDirection:"up",onDismiss:ge,positionRelativeToAnchor:!1,showCaret:!0,size:G?"flexible":"sm",children:G?xe():(0,s.jsx)(r.iP,{onTap:({event:e})=>{e.preventDefault(),G||(w({event_type:101,component:228,element:g,object_id_str:q,view_type:3,view_parameter:157,aux_data:{story_pin_page_id:c}}),ie?C.push(ie):ge())},fullWidth:!0,children:xe()})})}),!!J&&k&&(0,s.jsx)(x,{aggregatedCommentId:J,onDismiss:()=>{E(!1)}})]})})}var P=i(829084),w=i(854907),S=i(296342),A=i(775151);function k({block:e,fontsLoaded:t,pageAspectRatio:i,scaleFactor:n}){const{block_style:o,style:a=f.Cc,text:l}=e,{alignment:c,font:u,font_size:p,highlight_color:h,vertical_alignment:_=f.Cc.vertical_alignment}=a,{hex_color:m=f.Cc.hex_color}=null!=a?a:{},[g,x]=(0,d.useState)(0),[y,v]=(0,d.useState)([]),b=u||f.Cc.font,{name:k,default_size:E,letter_spacing:T,line_height:C}=b,I=(0,P.Z)(b),j=Math.round(100*((null==o?void 0:o.width)||100))/1e4,R=Math.round(100*((null==o?void 0:o.height)||100))/1e4,D=Math.round(100*((null==o?void 0:o.x_coord)||0))/1e4,z=Math.round(100*((null==o?void 0:o.y_coord)||0))/1e4;(0,d.useEffect)((()=>{if(t){const e=(0,w.K)({text:l,boxHeight:S.U*R,boxWidth:S.q8*j,font:I,startFontSize:Math.floor(p||E||24)});v(e.lines),x(e.fontSize)}}),[t,l]);const O=g*n,L=h?(0,f.pE)(O,C):{x:0,y:0},N=j*S.q8*n+2*L.x,B=R*S.U*n+2*L.y,M=D*S.q8*n-L.x,Z=z*(S.q8/i)*n-L.y;return(0,s.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:{left:M,top:Z}},display:"flex",height:B,position:"absolute",width:N,children:(0,s.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:(0,A.RK)({alignment:c,verticalAlignment:_})},children:(0,s.jsx)(r.xu,{display:"inlineBlock",maxWidth:"100%",children:(0,s.jsx)("p",{style:(0,A.BN)({fontSize:O,hexColor:m,letterSpacing:T,lineHeight:C,name:k}),children:y.map(((e,t)=>(0,s.jsx)("span",{style:(0,A.xm)({fontSize:O,hasText:e.text.length>0,highlightColor:h||null,lineHeight:C}),children:t===y.length-1?e.text:(0,s.jsxs)(d.Fragment,{children:[e.text," ",(0,s.jsx)("br",{})]})},`paragraphLine-${t}-${(null!=l?l:"").substr(0,9)}`)))})})})})}var E=i(280348),T=i(19121);function C({ownerId:e}){const t=(0,m.ZP)(),i=(0,T.Z)(),n=i.isAuth&&i.id===e;return(0,s.jsxs)(r.xu,{alignItems:"center",color:"tertiary",direction:"column",display:"flex",height:"100%",justifyContent:"center",width:"100%",children:[(0,s.jsx)(r.xv,{color:"inverse",children:n?t._('Your video is processing!', 'closeup.storyPin.videoPlaceholder', 'Let user know that their video is still processing'):t._('This video is still processing!', 'closeup.storyPin.videoPlaceholder', 'Let user know that this video is still processing')}),(0,s.jsx)(r.xv,{color:"inverse",children:t._('Check back in a few minutes.', 'closeup.storyPin.videoPlaceholder', 'Let user know to come back in a couple of minutes to view the video')})]})}var I=i(276602),j=i(47168),R=i(82314);const D=375,z=new r.Ry(1),O=4,L=new r.Ry(3);function N({block:e,isActive:t,pwtTrackImageLoad:i}){var n,o,a,r,l;const d=(0,m.ZP)();if(!e.image)return null;const u=(null===(n=e.image.images)||void 0===n?void 0:n["750x"])||(null===(o=e.image.images)||void 0===o?void 0:o["474x"]);return(0,s.jsx)(c.Z,{alt:d._('Story pin image', 'closeup.storypin.renderer', 'Alt text for story pin image'),isActive:t,naturalHeight:null!==(a=null==u?void 0:u.height)&&void 0!==a?a:1,naturalWidth:null!==(r=null==u?void 0:u.width)&&void 0!==r?r:1,src:null!==(l=null==u?void 0:u.url)&&void 0!==l?l:"",onLoad:i})}function B({activePageIndex:e,block:t,closeupStoryPinViewability:i,customEndCard:n,isActive:o,isSplitLayout:a=!1,musicRecordingId:l,muted:c,onEnded:d,onUpdateVideoInfo:u,ownerId:p,pageAspectRatio:h,pageDimensions:_,pageIndex:m,pinId:g,scaleFactor:x,stillLoading:f,videoThumbnailStartTime:y}){var v,b;const{block_style:{height:P=100,width:w=100,x_coord:S=0,y_coord:A=0}={},video:k}=t,T=D/h,{height:I,width:j}=_,R=w*D*x/100,z=P*T*x/100,O=S*D*x/100,L=A*T*x/100,N=w<100?Math.min(Math.max(100,w)-Math.abs(S),w):Math.min(Math.max(w-Math.abs(S),0),100),B=(P<100?Math.min(Math.max(100,P)-Math.abs(A),P):Math.min(Math.max(P-Math.abs(A),0),100))*T*x/100,M=N*D*x/100,Z=Math.max(A,0)*T*x/100,F=Math.max(S,0)*D*x/100;if(f)return null;if(!k)return(0,s.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:{left:F,top:Z}},height:B,position:"absolute",width:M,children:(0,s.jsx)(C,{ownerId:p})});return!!((null===(v=k.video_list)||void 0===v?void 0:v.V_HLSV3_MOBILE)||(null===(b=k.video_list)||void 0===b?void 0:b.V_720P))&&(0,s.jsx)(r.xu,{height:a?"50%":"100%",overflow:"hidden",position:"relative",children:(0,s.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:{left:F,top:Z}},height:B,overflow:"hidden",position:"absolute",width:M,children:(0,s.jsx)(E.Z,{activePageIndex:e,blockHeight:z,blockPosition:{left:O,top:L},blockWidth:R,closeupStoryPinViewability:i,customEndCard:n,isPlaying:o,musicRecordingId:l,muted:c,onEnded:d,onUpdateVideoInfo:u,pageIndex:m,pinId:g,roundCorners:z>=I&&R>=j,video:k,videoThumbnailStartTime:y})})})}function M({activePageIndex:e,block:t,closeupStoryPinViewability:i,customEndCard:n,fontsLoaded:o,isActive:a,isSplitLayout:c=!1,musicRecordingId:d,muteVideos:u,onEnded:p,onFlyoutOpen:h,onUpdateVideoInfo:_,ownerId:m,pageAspectRatio:g,pageHeight:x,pageIndex:y,pageWidth:v,pinId:P,previewOnly:w,productPins:S,stillLoading:A=!1,videoPinProgress:E,videoThumbnailStartTime:T}){const{block_style:{height:C=100,width:z=100,x_coord:O=0,y_coord:L=0}={},interactive_sticker_type:M=null}=t,Z=(0,j.g)(),F=(0,I.EV)(),U=()=>{Z&&a&&(Z.addBinaryAnnotation("pin.id",P,"STRING"),Z.addBinaryAnnotation("video",!1,"BOOL"),Z.stop()),F&&a&&(F.addBinaryAnnotation("pin.id",P,"STRING"),F.addBinaryAnnotation("video",!1,"BOOL"),F.removeConstraint(R._z),F.markConstraintComplete(R.pM))};if(0===C||0===z)return null;const V=v/D;switch(t.type){case f.h8.PARAGRAPH:case f.h8.HEADING:return(0,s.jsx)(k,{block:t,fontsLoaded:o,scaleFactor:V,pageAspectRatio:g});case f.h8.VIDEO:return(0,s.jsx)(B,{activePageIndex:e,block:t,closeupStoryPinViewability:i,customEndCard:n,isActive:a,isSplitLayout:c,musicRecordingId:d,muted:u,onEnded:p,onUpdateVideoInfo:_,ownerId:m,pageAspectRatio:g,pageDimensions:{height:x,width:v},pageIndex:y,pinId:P,scaleFactor:V,stillLoading:A,videoThumbnailStartTime:T});case f.h8.IMAGE:return(0,s.jsx)(r.xu,{overflow:"hidden",position:"absolute",dangerouslySetInlineStyle:{__style:{height:`${C}%`,left:`${O}%`,top:`${L}%`,width:`${z}%`}},children:(0,s.jsx)(N,{block:t,isActive:a,pwtTrackImageLoad:U})});case f.h8.MENTION_STICKER:return!w&&(0,s.jsx)(b,{block:{...t},elementType:12120,onFlyoutOpen:h,pageAspectRatio:g,pageIndex:y,scaleFactor:V,tooltipElementType:12121,videoPinProgress:E});case f.h8.GENERIC_STICKER:return!w&&(e=>{const t=5===M,i=t?12827:12858,n=t?12828:12859;return(0,s.jsx)(b,{block:{...e},elementType:i,onFlyoutOpen:h,pageIndex:y,pageAspectRatio:g,scaleFactor:V,tooltipElementType:n,videoPinProgress:E})})(t);case f.h8.PRODUCT_STICKER:return!w&&(0,s.jsx)(b,{block:{...t},elementType:12223,onFlyoutOpen:h,pageAspectRatio:g,pageIndex:y,productPins:S,scaleFactor:V,tooltipElementType:12224,videoPinProgress:E});case f.h8.VTO_MAKEUP_STICKER:return!w&&(0,s.jsx)(b,{block:{...t},elementType:12561,onFlyoutOpen:h,pageAspectRatio:g,pageIndex:y,scaleFactor:V,tooltipElementType:12561,videoPinProgress:E});case f.h8.COMMENT_REPLY_STICKER:return t.type===f.h8.COMMENT_REPLY_STICKER&&!w&&(0,s.jsx)(l,{block:t,scaleFactor:V,pageAspectRatio:g});default:return null}}},801827:(e,t,i)=>{i.d(t,{A:()=>p,r:()=>_});var n=i(667294),o=i(743217),a=i(627387),r=i(445868),s=i(802933),l=i(674915),c=i(623568),d=i(425288),u=i(785893);const p=({children:e,pin:t,overrideValue:i={}})=>{var d;const p=(0,s.Z)({pin:t}),{video:_}=(0,l.Z)(p)||{},{embed:m}=(0,r.Z)(p)||{},g=m&&m.src,x=m&&"pinstory"===m.subtype,f=(0,c.sY)(null===(d=t.embed)||void 0===d?void 0:d.type),y=(0,n.useMemo)((()=>{const e={mainImage:(0,o.Z)(t),previewImage:(0,a.Z)(t),...i};return{embed:m,isEmbeddedVideo:!!g&&!f&&!x,video:_,imgSrc:f?m.src:e.mainImage.url,isGif:f,...e}}),[m,f,g,x,i,t,_]);return(0,u.jsx)(h,{value:y,children:e})},{Provider:h,useHook:_}=(0,d.Z)("PageHeader")},165733:(e,t,i)=>{i.d(t,{Z:()=>l});var n=i(834911),o=i(743217),a=i(627387),r=i(343591),s=i(954959);const l=e=>{var t;const i={...e.pin,...e.pinResource.data},l=(0,n.Z)({additionalImages:null===(t=e.variantData)||void 0===t?void 0:t.images,carouselData:i.carousel_data,images:i.images,richMetadata:i.rich_metadata,richSummary:i.rich_summary});return{availableWidthForContentOnRight:!1,backButtonLabelFitInScreen:null,closeupBodyContainerHeight:0,closeupContainerHeight:0,firstLoadComplete:!1,didLongClickThrough:!1,didPinClickThrough:!1,didShortClickThrough:!1,hideBackButton:!1,isCommentSectionOpen:!0,isCloseupMaximized:!1,isOverRelatedPins:null,isRelatedInterestsBannerDismissed:!1,intervalId:null,landOnCurrentPage:!1,loginModalOptions:null,modalOpen:!1,myTry:e.pin?{isDoneByMe:e.pin.done_by_me}:null,newshubCloseupCapBackButtonCount:0,passScrollThreshold:!1,pin:i,pinId:e.pinId,quickPromoteModalTriggered:!1,relatedPinsUpsellShown:!1,showBackButton:!0,showProductDetailPage:(0,s.Z)({isEligibleForPdp:i.is_eligible_for_pdp,isStaleProduct:i.is_stale_product,isOutOfStockProduct:i.is_oos_product}),showRelatedContent:!(0,r.Z)(e.pin),shopping:{catalogId:-1,variantId:void 0},viewportSize:"lg",visualState:{carouselData:l&&{...l,index:e.pin.carousel_data&&e.pin.carousel_data.index||0},mainImage:(0,o.Z)(i),previewImage:(0,a.Z)(i)},v1DeprecationModalDismissed:!1}}},385937:(e,t,i)=>{i.d(t,{Z:()=>r});const n=/^\/pin\/(.*[^\/])\/$/,o={"/":"feed_home","/homefeed":"feed_home","/pin/:id":"pin","/pin/:id/comments":"pin","/pin/:id/activity/tried":"pin","/pin/:id/activity/comments":"pin","/pin/:id/visual-search":"flashlight","/discover/article/:id":"explore_article","/discover/article/:title/:id":"explore_article","/topics/:interest":"feed_interest","/categories/:interest":"feed_category","/news_hub/:id":"notifications","/explore/:interest":"seo_auth","/search/:scope":"search","/following":"feed_following","/:username/pins":"user_pins","/:username/tried":"user_tries","/:username/:slug":"board","/:username/:slug/edit":"board","/:username/:slug/invite":"board","/:username/:slug/:section_slug":"board","/pin/:id/related-products":"shop_feed","/story_feed":"shop_feed"};function a(e,t){var i;if(t<=0)return"unknown";const n=e[t-1],a=(null==n||null===(i=n.match)||void 0===i?void 0:i.path)||"";return a?o[a]||"unknown":"feed_home"}function r(e,t){const i=["pin"],o=[];let r=1,s="unknown",l="unknown",c=!0;for(let n=e.length-1;n>0;n-=1){const t=a(e,n);i.splice(0,0,t),c&&(s=t,"pin"===s?r+=1:c=!1)}for(let a=e.length-2;a>=0;a-=1){var d,u;const t=((null===(d=e[a])||void 0===d||null===(u=d.location)||void 0===u?void 0:u.pathname)||"").match(n);if(!t||2!==t.length)break;o.splice(0,0,t[1].split("/")[0])}if(1===i.length?(l="deep_linking",s="deep_linking"):(l=i[i.length-2],"pin"===s&&(s="deep_linking"),2===i.length&&"pin"===l&&(l="deep_linking")),"seo_auth"!==l||t||(l="seo_unauth"),"seo_auth"!==s||t||(s="seo_unauth"),("search"===l||"search"===s)&&e.length>=r+1){var p,h;"/search/buyable_pins/"===((null===(p=e[e.length-r-1])||void 0===p||null===(h=p.location)||void 0===h?void 0:h.pathname)||"")&&(s="shop_feed","search"===l&&(l="shop_feed"))}return{trafficSource:l,topLevelTrafficSource:s,topLevelTrafficSourceDepth:r,contextPinIds:o}}},668627:(e,t,i)=>{i.d(t,{Z:()=>n});const n=(e,t,i)=>({id:e,field_set_key:"auth_web_main_pin",add_fields:i?i.join(","):void 0,client_tracking_params:void 0,noCache:!0,fetch_visual_search_objects:!0,...t?{orbac_subject_id:t}:Object.freeze({})})},128503:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(126098),o=i(784450),a=i(558329);const r=(0,o.ZP)(12,((e,t)=>{var i,o;return{pin_id:e.pinId,email_id:e.emailId,did_long_clickthrough:t.didLongClickThrough||!1,did_pin_clickthrough:t.didPinClickThrough||!1,did_repin:t.didRepin||!1,is_own_or_group_pin:t.is_own_or_group_pin||!1,login_page_type:t.loginPageType||"unknown",scroll_to_threshold:t.scrollToThreshold,pin_image_signature:t.pin_image_signature,chrome_push_subscription:(0,n.Z)(),is_creator_card_shown:!!(0,a.nU)(e.pin),creator_username:null===(i=e.pin)||void 0===i||null===(o=i.closeup_attribution)||void 0===o?void 0:o.full_name}}))},485710:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),o=i(898781),a=i(883119),r=i(785893);function s({children:e,heading:t}){const[i,s]=(0,n.useState)(!1),l=(0,o.ZP)();return(0,r.jsxs)(a.kC,{direction:"column",dataTestId:"collapsible-layout",children:[(0,r.jsxs)(a.X6,{align:"start",size:"400",accessibilityLevel:2,children:[(0,r.jsx)(a.xu,{"data-test-id":"collapsible-layout-heading",display:"inlineBlock",children:t}),(0,r.jsx)(a.xu,{"data-test-id":"collapse-button",display:"inlineBlock",marginStart:1,children:(0,r.jsx)(a.hU,{accessibilityLabel:l._('Show more details drop-down', 'Closeup.common.CollapsibleLayout', 'Collapse the content wrapped in the layout'),icon:i?"arrow-forward":"arrow-down",onClick:()=>{s(!i)},size:"md"})})]}),!i&&(0,r.jsx)(n.Fragment,{children:e})]})}},319530:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(667294),o=i(883119),a=i(785893);function r({children:e,maxLines:t=10}){const i=(0,n.useRef)(null),[r,s]=(0,n.useState)({isFirstLoad:!0,isTruncated:!1}),{isFirstLoad:l,isTruncated:c}=r;return(0,n.useEffect)((()=>{var e;l&&i.current&&((e=i.current).offsetHeights({...r,isTruncated:!1}),children:(0,a.jsx)(o.xv,{inline:!0,size:"200",weight:"bold",children:"… more"})})}),(0,a.jsx)(o.xu,{display:"inlineBlock",flex:"grow",height:"18px",dangerouslySetInlineStyle:{__style:{background:"white"}}})]})})]})}},509278:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(883119),o=i(785893);function a(e,t="200"){return e.split(new RegExp(/(#\S*)/)).map(((e,i)=>{const a=`${i}-${e}`;return e.includes("#")?(0,o.jsx)(n.xv,{size:t,color:"link",inline:!0,children:(0,o.jsx)(n.rU,{underline:"none",display:"inline",href:`/search/pins/?q=${encodeURIComponent(e.replace("#",""))}`,children:e})},a):(0,o.jsx)("span",{children:e},a)}))}},748373:(e,t,i)=>{i.d(t,{Z:()=>l});var n=i(667294),o=i(407043),a=i(883119),r=i(785893);const s=({mention:e,tag:t})=>{const{logContextEvent:i}=(0,o.v)();return(0,r.jsx)(a.rU,{underline:"none",href:`/${e.substr(1)}`,display:"inlineBlock",onClick:({event:e})=>{e.stopPropagation(),i({event_type:101,element:11915,aux_data:{tag_id:t.object_id,tag_type:t.tag_type}})},children:(0,r.jsx)(a.xv,{color:"shopping",inline:!0,weight:"bold",overflow:"normal",children:e})},t.object_id)},l=({description:e,userMentionTags:t})=>{if(0===t.length)return(0,r.jsx)(n.Fragment,{children:e});let i=0;const o=[];t.concat().sort(((e,t)=>{var i,n;return(null!==(i=e.offset)&&void 0!==i?i:0)-(null!==(n=t.offset)&&void 0!==n?n:0)})).forEach((t=>{const{offset:n=0,length:a=0}=t,l=e.substr(i,n-i),c=e.substr(n,a);o.push(l),o.push((0,r.jsx)(s,{mention:c,tag:t})),i=n+a})),o.push(e.substr(i));return o.reduce(((e,t)=>(0,r.jsxs)(a.xv,{inline:!0,children:[e,t]})),null)}},833089:(e,t,i)=>{i.d(t,{Z:()=>sn});var n=i(667294),o=i(662499),a=i(968777),r=i.n(a),s=i(898781),l=i(883119),c=i(785893);function d({handleComplete:e}){const t=(0,s.ZP)();return(0,c.jsx)("div",{onClick:e,style:{cursor:"pointer"},children:(0,c.jsxs)(l.xu,{alignItems:"center",direction:"row",display:"flex",color:"selected",height:"31px",rounding:1,children:[(0,c.jsx)(l.xu,{paddingX:1,children:(0,c.jsx)("img",{src:r(),alt:"",height:"15px",width:"15px"})}),(0,c.jsxs)(l.xu,{paddingX:1,children:[(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{fontWeight:"600",fontSize:"6px",color:"white"}},children:t._('Get the', 'The first part of "Get the Desktop App" Icon', 'The first part of "Get the Desktop App" Icon')}),(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{fontWeight:"600",fontSize:"12px",color:"white",whiteSpace:"nowrap"}},children:t._('Desktop App', 'The second part of "Get the Desktop App" Icon', 'The second part of "Get the Desktop App" Icon')})]})]})})}var u=i(459486),p=i.n(u),h=i(259484),_=i.n(h),m=i(530899),g=i.n(m),x=i(652881),f=i.n(x),y=i(833083),v=i.n(y),b=i(626994),P=i.n(b),w=i(781967),S=i.n(w),A=i(632616),k=i.n(A),E=i(318250),T=i.n(E),C=i(192219),I=i.n(C),j=i(109528),R=i.n(j),D=i(203359),z=i.n(D),O=i(39303),L=i.n(O),N=i(992387),B=i.n(N),M=i(358709),Z=i.n(M),F=i(937155),U=i.n(F),V=i(104461),G=i.n(V),H=i(516759),W=i.n(H),$=i(792594),K=i.n($),q=i(108842),Y=i.n(q),X=i(27700),J=i.n(X),Q=i(871034),ee=i.n(Q),te=i(838281),ie=i.n(te),ne=i(355809),oe=i.n(ne),ae=i(700915),re=i.n(ae),se=i(597887),le=i.n(se),ce=i(187504),de=i.n(ce),ue=i(777140),pe=i.n(ue),he=i(346604),_e=i.n(he),me=i(1832),ge=i.n(me),xe=i(847497),fe=i.n(xe),ye=i(678940),ve=i.n(ye),be=i(966113);const Pe={AR:p(),BN:_(),CS:g(),DA:f(),DE:v(),EL:P(),EN:S(),ES:k(),FI:T(),FR:I(),HI:R(),HU:z(),ID:L(),IT:B(),JA:Z(),KO:U(),MS:G(),NB:W(),NL:K(),PL:Y(),"PT-BR":J(),"PT-PT":ee(),RO:ie(),RU:oe(),SK:re(),SV:le(),TH:de(),TR:pe(),UK:_e(),VI:ge(),"ZH-CN":fe(),"ZH-TW":ve()};function we(e){const t=(0,s.ZP)(),{campaignId:i,handleComplete:n,style:o,language:a,locale:r}=e;let d;a&&(d=a.startsWith("zh")||a.startsWith("pt")?r&&r.toUpperCase():a&&a.toUpperCase());let u=Pe.EN;d=d||"EN",d in Pe&&(u=Pe[d]);let p=be.TM;return i&&(p=`${be.TM}&cid=${i}`),(0,c.jsx)(l.iP,{rel:"nofollow",role:"link",href:p,onTap:n,children:(0,c.jsx)("img",{style:o,src:u,alt:t._('Install the Pinterest desktop app on Windows', 'Windows store icon alt text', 'Windows store icon alt text')})})}var Se=i(412067),Ae=i(829407),ke=i(562034),Ee=i(30287),Te=i(867820),Ce=i(407043),Ie=i(780280),je=i(946177),Re=i.n(je),De=i(407515),ze=i.n(De),Oe=i(38733),Le=i.n(Oe),Ne=i(372424),Be=i.n(Ne),Me=i(37634),Ze=i.n(Me),Fe=i(581537),Ue=i.n(Fe),Ve=i(612522),Ge=i.n(Ve),He=i(18110),We=i.n(He),$e=i(346949),Ke=i.n($e),qe=i(21852),Ye=i.n(qe),Xe=i(265325),Je=i.n(Xe),Qe=i(916292),et=i.n(Qe),tt=i(564291),it=i.n(tt),nt=i(398093),ot=i.n(nt),at=i(187585),rt=i.n(at),st=i(419417),lt=i.n(st),ct=i(13357),dt=i.n(ct),ut=i(953528),pt=i.n(ut),ht=i(921048),_t=i.n(ht),mt=i(443829),gt=i.n(mt),xt=i(914357),ft=i.n(xt),yt=i(469227),vt=i.n(yt),bt=i(419985),Pt=i.n(bt),wt=i(438688),St=i.n(wt),At=i(168331),kt=i.n(At),Et=i(143169),Tt=i.n(Et),Ct=i(431010),It=i.n(Ct),jt=i(626040),Rt=i.n(jt),Dt=i(444764),zt=i.n(Dt),Ot=i(191934),Lt=i.n(Ot),Nt=i(853436),Bt=i.n(Nt),Mt=i(802124),Zt=i.n(Mt),Ft=i(375088),Ut=i.n(Ft),Vt=i(695818),Gt=i.n(Vt),Ht=i(487482),Wt=i.n(Ht),$t=i(664385),Kt=i.n($t),qt=i(183849),Yt=i.n(qt),Xt=i(470265),Jt=i.n(Xt),Qt=i(82737),ei=i.n(Qt),ti=i(173654),ii=i.n(ti),ni=i(906438),oi=i.n(ni),ai=i(923207),ri=i.n(ai),si=i(76164),li=i.n(si),ci=i(59020),di=i.n(ci),ui=i(417912),pi=i.n(ui),hi=i(642753),_i=i.n(hi),mi=i(798221),gi=i.n(mi),xi=i(934072),fi=i.n(xi),yi=i(949461),vi=i.n(yi),bi=i(56353),Pi=i.n(bi),wi=i(839301),Si=i.n(wi),Ai=i(643316),ki=i.n(Ai),Ei=i(201721),Ti=i.n(Ei),Ci=i(925880),Ii=i.n(Ci),ji=i(117131),Ri=i.n(ji),Di=i(516541),zi=i.n(Di),Oi=i(512910),Li=i.n(Oi),Ni=i(17583),Bi=i.n(Ni),Mi=i(245871),Zi=i.n(Mi),Fi=i(831644),Ui=i.n(Fi),Vi=i(28528),Gi=i.n(Vi),Hi=i(485382),Wi=i.n(Hi),$i=i(216541),Ki=i.n($i),qi=i(770464),Yi=i.n(qi),Xi=i(671951),Ji=i.n(Xi),Qi=i(395692),en=i.n(Qi),tn=i(720880),nn=i.n(tn),on=i(232645),an=i.n(on);const rn={android:{AR:Re(),BN:ze(),CS:Le(),DA:Be(),DE:Ze(),EL:Ue(),EN:Ge(),ES:We(),FI:Ke(),FR:Ye(),HI:Je(),HU:et(),ID:it(),IT:ot(),JA:rt(),KO:lt(),ML:dt(),MS:pt(),NL:_t(),NN:gt(),NO:ft(),NB:ft(),PL:vt(),PT:Pt(),RO:St(),RU:kt(),SK:Tt(),SV:It(),TE:Rt(),TH:zt(),TL:Lt(),TR:Bt(),UK:Zt(),VI:Ut(),"ZH-CN":Gt(),"ZH-TW":Wt()},ios:{AR:Kt(),CS:Yt(),DA:Jt(),DE:ei(),EL:ii(),EN:oi(),ES:ri(),FI:li(),FR:di(),HI:pi(),HU:_i(),ID:gi(),IT:fi(),JA:vi(),KO:Pi(),ML:Si(),MS:ki(),NL:Ti(),NN:Ii(),NO:Ri(),NB:Ri(),PL:zi(),PT:Li(),RO:Bi(),RU:Zi(),SK:Ui(),SV:Gi(),TH:Wi(),TL:Ki(),TR:Yi(),UK:Ji(),VI:en(),"ZH-CN":nn(),"ZH-TW":an()}};function sn({handleComplete:e,isNuxChecklist:t,justifyContentOverride:i}){const{logContextEvent:a}=(0,Ce.v)(),r=(0,s.ZP)(),u=(0,Ie.B)(),p=(0,ke.Z)(),h=(0,n.useContext)(o.Z),_=(0,Ee.kM)(window,h);(0,Ae.Z)((()=>{t&&(0,Te.My)(`checklist.pwa_install_eligibility.${_}`)}));const{language:m,locale:g}=u||{},x=(m.startsWith("zh")?g:m).toUpperCase(),{iosUrl:f,androidUrl:y}=function(e="EN"){return{androidUrl:rn.android[e]||rn.android.EN,iosUrl:rn.ios[e]||rn.ios.EN}}(x),{iosAlt:v,androidAlt:b}=function(e){return{androidAlt:e._('Install the Pinterest app on Android', ' - ', ' -- '),iosAlt:e._('Install the Pinterest app on iOS', ' - ', ' -- ')}}(r),P=()=>{Se.Z.create("UserStateResource",{state:"HAS_DONE_APP_INSTALL",value:1}).callCreate(),p({view_parameter:3596,event_type:101,view_type:24,element:12772}),e()},w=(e,t,i)=>(0,c.jsx)(l.xu,{marginTop:1,children:(0,c.jsx)(l.iP,{role:"link",href:e,target:"blank",rel:"nofollow",onTap:P,children:(0,c.jsx)(l.zd,{height:31,width:104,children:(0,c.jsx)(l.Ee,{alt:i,fit:"cover",naturalHeight:31,naturalWidth:104,src:t})})})});return(0,c.jsxs)(l.kC,{gap:{row:1,column:0},justifyContent:i||"center",wrap:!0,children:[w(be.Js,y,b),w(be.c9,f,v),"windows"===_&&(0,c.jsx)(l.xu,{marginTop:1,children:(0,c.jsx)(we,{campaignId:"nux_flow_cta_install_pwa_app",handleComplete:P,language:m,locale:g,style:{height:31,borderRadius:4}})}),"chrome"===_&&(0,c.jsx)(l.xu,{marginTop:1,children:(0,c.jsx)(d,{handleComplete:()=>{if(h){const e=h();e&&(t&&((0,Te.My)("checklist.pwa_install.shown"),a({event_type:13,view_type:423,component:254})),e.prompt(),e.userChoice.then((e=>{t&&((0,Te.My)(`checklist.pwa_install.${e.outcome}`),a({event_type:101,view_type:423,component:254,element:"dismissed"===e.outcome?11796:11795})),"accepted"===e.outcome&&P()})))}}})})]})}},346794:(e,t,i)=>{i.d(t,{Z:()=>j});var n=i(667294),o=i(833089),a=i(168745),r=i.n(a),s=i(785893);function l({qrCodeSize:e}){return(0,s.jsxs)("svg",{width:"152",height:"156",viewBox:"0 0 152 156",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M1.5291e-06 16C7.64806e-07 7.16344 7.16344 -6.26248e-07 16 -1.39876e-06L136 -1.18895e-05C144.837 -1.2662e-05 152 7.16343 152 16L152 156L1.3638e-05 156L1.5291e-06 16Z",fill:"#010027",stroke:"transparent"}),(0,s.jsx)("path",{d:"M8 16C8 11.5817 11.5817 8 16 8H136C140.418 8 144 11.5817 144 16V156H8V16Z",fill:"url(#paint0_linear)"}),(0,s.jsx)("path",{d:"M44 4H108V12C108 16.4183 104.418 20 100 20H52C47.5817 20 44 16.4183 44 12V4Z",fill:"#010027",stroke:"transparent"}),(0,s.jsx)("image",{transform:"translate(16,28)",href:r(),height:e,width:e}),(0,s.jsx)("defs",{children:(0,s.jsxs)("linearGradient",{id:"paint0_linear",x1:"76",y1:"145.5",x2:"76",y2:"156",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{stopColor:"white"}),(0,s.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0.96"})]})})]})}var c=i(829407),d=i(898781),u=i(780280),p=i(883119);function h({completeExperience:e,dismissExperience:t,viewExperience:i}){const n=(0,u.B)().isRTL,a=(0,d.ZP)();return(0,c.Z)((()=>{i&&i()})),(0,s.jsxs)(p.xu,{color:"default",borderStyle:"shadow",overflow:"hidden",rounding:4,width:344,children:[(0,s.jsxs)(p.xu,{height:180,color:"education",position:"relative",children:[(0,s.jsx)(p.xu,{left:n,marginEnd:1,marginTop:1,position:"absolute",right:!n,top:!0,children:(0,s.jsx)(p.hU,{accessibilityLabel:a._('Hide Checklist', 'hide the checklist of pin actions at the top of the homefeed', 'hide the checklist of pin actions at the top of the homefeed'),onClick:t,icon:"cancel",iconColor:"white",size:"sm"})}),(0,s.jsx)(p.kC,{alignItems:"end",height:180,justifyContent:"center",width:344,children:(0,s.jsx)(l,{qrCodeSize:120})})]}),(0,s.jsx)(p.xu,{position:"relative",children:(0,s.jsx)(p.xu,{color:"default",paddingX:5,paddingY:8,children:(0,s.jsxs)(p.kC,{alignItems:"center",direction:"column",gap:{row:0,column:2},justifyContent:"center",children:[(0,s.jsx)(p.xu,{paddingX:3,children:(0,s.jsx)(p.xv,{align:"center",weight:"bold",children:a._('Get Pinterest on your phone', 'footer.appInstall.qrCode.header', 'header text for app install upsell')})}),(0,s.jsx)(p.xv,{align:"center",size:"200",children:a._('Scan the QR code with your phone\'s camera to download our free app', 'footer.appInstall.qrcode.subheader', 'subheader text for app install upsell')}),(0,s.jsx)(o.Z,{handleComplete:e})]})})})]})}const _=JSON.parse('{"v":"4.8.0","meta":{"g":"LottieFiles AE 3.2.2","a":"","k":"","d":"","tc":""},"fr":60,"ip":0,"op":420,"w":270,"h":99,"nm":"handoff_3","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"pin-rep-13","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[135.542,94,0],"ix":2},"a":{"a":0,"k":[24.5,5,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":274,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":286,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":293,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":397,"s":[100,100,100]},{"t":410,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.46,0],[0,0],[0,-2.46],[0,0],[0,0]],"o":[[0,-2.46],[0,0],[2.46,0],[0,0],[0,0],[0,0]],"v":[[0,4.455],[4.455,0],[44.546,0],[49,4.455],[49,10],[0,10]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"pin-rep-13","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":274,"op":576,"st":274,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"pin-rep-12","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[240.083,-28.125,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":268,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":280,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":287,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":397,"s":[100,100,100]},{"t":410,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[49,73.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4.455,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 20","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":268,"op":576,"st":268,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"pin-rep-11","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[240.083,94.125,0],"ix":2},"a":{"a":0,"k":[24.5,5,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":262,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":274,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":281,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":397,"s":[100,100,100]},{"t":410,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.46,0],[0,0],[0,-2.46],[0,0],[0,0]],"o":[[0,-2.46],[0,0],[2.46,0],[0,0],[0,0],[0,0]],"v":[[0,4.455],[4.455,0],[44.546,0],[49,4.455],[49,10],[0,10]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"pin-rep-11","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":262,"op":576,"st":262,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"pin-rep-10","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[188,80.5,0],"ix":2},"a":{"a":0,"k":[24.5,25,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":257,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":269,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":276,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":397,"s":[100,100,100]},{"t":410,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.46,0],[0,0],[0,-2.46],[0,0],[0,0]],"o":[[0,-2.46],[0,0],[2.46,0],[0,0],[0,0],[0,0]],"v":[[0,4.455],[4.455,0],[44.546,0],[49,4.455],[49,43.25],[0,43.25]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"pin-rep-10","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":257,"op":576,"st":257,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"pin-rep-9","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[30,93.875,0],"ix":2},"a":{"a":0,"k":[24.5,5,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":251,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":263,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":270,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":397,"s":[100,100,100]},{"t":410,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.46,0],[0,0],[0,-2.46],[0,0],[0,0]],"o":[[0,-2.46],[0,0],[2.46,0],[0,0],[0,0],[0,0]],"v":[[0,4.455],[4.455,0],[44.546,0],[49,4.455],[49,10],[0,10]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"pin-rep-9","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":251,"op":576,"st":251,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"pin-rep-8","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[30.25,-28.125,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":245,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":257,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":264,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":397,"s":[100,100,100]},{"t":410,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[49,73.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4.455,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 20","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":245,"op":576,"st":245,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"pin-rep-7","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[240.083,47.5,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":238,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":250,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":257,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":397,"s":[100,100,100]},{"t":410,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[49,73.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4.455,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 18","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":238,"op":576,"st":238,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"pin-rep-6","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[82.5,80.25,0],"ix":2},"a":{"a":0,"k":[24.5,25,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":231,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":243,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":250,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":397,"s":[100,100,100]},{"t":410,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.46,0],[0,0],[0,-2.46],[0,0],[0,0],[0,0],[0,0]],"o":[[0,-2.46],[0,0],[2.46,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[0,4.455],[4.455,0],[44.546,0],[49,4.455],[49,40.75],[49,43.75],[0,43.5],[0,43.5]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"pin-rep-6","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":231,"op":576,"st":231,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"pin-rep-5","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[135.542,-28.25,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":224,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":236,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":243,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":397,"s":[100,100,100]},{"t":410,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[49,73.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4.455,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 14","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":224,"op":576,"st":224,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"pin-rep-4","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[30,48.25,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":217,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":229,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":236,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":397,"s":[100,100,100]},{"t":410,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[49,73.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4.455,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 16","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":217,"op":576,"st":217,"bm":0},{"ddd":0,"ind":11,"ty":4,"nm":"pin-rep-3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[188,16.25,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":211,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":223,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":230,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":397,"s":[100,100,100]},{"t":410,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[49,73.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4.455,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"pin-rep-3","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":211,"op":576,"st":211,"bm":0},{"ddd":0,"ind":12,"ty":4,"nm":"pin-rep-2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[82.5,15.75,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":205,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":217,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":224,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":397,"s":[100,100,100]},{"t":410,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[49,73.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4.455,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"pin-rep-2","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":205,"op":576,"st":205,"bm":0},{"ddd":0,"ind":13,"ty":4,"nm":"pin-rep-1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[135.542,47.75,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":200,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":212,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":219,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":397,"s":[100,100,100]},{"t":410,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[49,73.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4.455,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 12","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":200,"op":576,"st":200,"bm":0},{"ddd":0,"ind":14,"ty":4,"nm":"Path 13","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.19,"y":1},"o":{"x":0.55,"y":0},"t":84,"s":[247.25,123.999,0],"to":[-12.958,-9.458,0],"ti":[12.958,9.458,0]},{"t":133,"s":[169.5,67.249,0]}],"ix":2},"a":{"a":0,"k":[4.854,7.854,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.135,0.135,0]},"t":199,"s":[99.962,99.962,100]},{"t":212,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-0.01,0.011],[-0.033,0.038],[-0.086,0.124],[-0.061,0.167],[0.108,0.258],[0.538,1.042],[0.168,0.318],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0.355,0.352],[0,0],[0,0],[0,0],[0,0],[0,0],[0.006,-0.006],[0.021,-0.022],[0.066,-0.075],[0.083,-0.12],[0.057,-0.156],[-0.353,-0.847],[-0.225,-0.435],[0,0],[0,0],[0,0],[0,0]],"v":[[0.854,0.854],[0,0],[0,1.207],[0,13.207],[0,14.414],[0.854,13.561],[3.363,11.051],[5.553,15.431],[5.691,15.707],[6,15.707],[7,15.707],[7.208,15.707],[7.355,15.559],[7,15.207],[7.355,15.559],[7.355,15.559],[7.355,15.559],[7.356,15.558],[7.359,15.555],[7.367,15.547],[7.392,15.521],[7.475,15.43],[7.715,15.123],[7.953,14.682],[7.962,14.015],[6.436,10.859],[5.834,9.707],[8.5,9.707],[9.707,9.707],[8.854,8.854]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Path 11","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":3600,"st":0,"bm":0},{"ddd":0,"ind":15,"ty":4,"nm":"Path 12","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.19,"y":1},"o":{"x":0.55,"y":0},"t":84,"s":[247.25,123.999,0],"to":[-12.958,-9.458,0],"ti":[12.958,9.458,0]},{"t":133,"s":[169.5,67.249,0]}],"ix":2},"a":{"a":0,"k":[4,7,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.135,0.135,0]},"t":199,"s":[99.962,99.962,100]},{"t":212,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0.146,0.35],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[-0.688,-1.65],[0,0],[0,0]],"v":[[0,0],[0,12],[3,9],[5.5,14],[6.5,14],[7,13],[4.5,8],[8,8]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Path 10","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":3600,"st":0,"bm":0},{"ddd":0,"ind":17,"ty":4,"nm":"touch","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[164,56.5,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[50,50,100],"ix":6}},"ao":0,"shapes":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.56,0.56],"y":[1,1]},"o":{"x":[0.58,0.58],"y":[0,0]},"t":155,"s":[40,40]},{"t":180,"s":[150,150]}],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":1,"k":[{"i":{"x":[0.56],"y":[1]},"o":{"x":[0.58],"y":[0]},"t":155,"s":[8]},{"t":180,"s":[0]}],"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false}],"ip":152,"op":240,"st":130,"bm":0},{"ddd":0,"ind":18,"ty":4,"nm":"Rectangle 24","parent":19,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[13.873,48.946,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":0,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":16,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":28,"s":[95,95,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":152,"s":[95,95,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":165,"s":[85,85,100]},{"t":176,"s":[95,95,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[56.692,35.325],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":17.662,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0.913725490196,0.913725490196,0.913725490196,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 10","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":3600,"st":0,"bm":0},{"ddd":0,"ind":19,"ty":4,"nm":"Rectangle 9","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[135,6.322,0],"ix":2},"a":{"a":0,"k":[0.147,0.466,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":0,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":16,"s":[110,110,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":28,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":191,"s":[105,105,100]},{"t":204,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[99,148.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":9,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0.147,0.466],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 9","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":3600,"st":0,"bm":0}],"markers":[]}');function m(){return(0,s.jsxs)("svg",{width:"270",height:"99",viewBox:"0 0 270 99",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_644_53678)",children:[(0,s.jsx)("rect",{x:"30",y:"24",width:"88",height:"58",rx:"4.36364",fill:"#007CFF"}),(0,s.jsx)("rect",{x:"80",y:"45",width:"32",height:"20.1461",rx:"10.073",fill:"#E9E9E9"}),(0,s.jsxs)("g",{filter:"url(#filter0_d_644_53678)",children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104 60V72L107 69L109.5 74H110.5C110.5 74 111.146 73.3496 111 73C110.312 71.3496 108.5 68 108.5 68H112L104 60Z",fill:"black"}),(0,s.jsx)("path",{d:"M104.354 59.6464L103.5 58.7929V60V72V73.2071L104.354 72.3536L106.863 69.8441L109.053 74.2236L109.191 74.5H109.5H110.5H110.708L110.855 74.3523L110.5 74C110.855 74.3523 110.855 74.3522 110.855 74.3521L110.855 74.352L110.855 74.3516L110.856 74.3507L110.859 74.3482L110.866 74.3403C110.873 74.3339 110.881 74.325 110.892 74.3139C110.912 74.2918 110.941 74.2607 110.975 74.2225C111.041 74.1472 111.13 74.0397 111.215 73.9162C111.299 73.7963 111.392 73.6421 111.453 73.4746C111.51 73.3185 111.569 73.066 111.462 72.8077C111.109 71.9611 110.475 70.6941 109.936 69.6517C109.712 69.217 109.502 68.8181 109.334 68.5H112H113.207L112.354 67.6464L104.354 59.6464Z",stroke:"white"})]}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M148.585 47.4803C147.805 46.6993 146.537 46.6993 145.757 47.4803C144.976 48.2613 144.976 49.5273 145.757 50.3083L148.343 52.8943H136C134.895 52.8943 134 53.7903 134 54.8943C134 55.9993 134.895 56.8943 136 56.8943H148.343L145.757 59.4803C144.976 60.2613 144.976 61.5273 145.757 62.3083C146.147 62.6993 146.659 62.8943 147.171 62.8943C147.683 62.8943 148.195 62.6993 148.585 62.3083L156 54.8943L148.585 47.4803Z",fill:"#767676"}),(0,s.jsx)("path",{d:"M195 71.0117C195 69.9007 195.901 69 197.012 69H214.988C216.099 69 217 69.9007 217 71.0117V99H195V71.0117Z",fill:"#007CFF"}),(0,s.jsx)("rect",{x:"218.871",y:"-18",width:"22.129",height:"33.1936",rx:"2.01173",fill:"#007CFF"}),(0,s.jsx)("rect",{x:"218.871",y:"-18",width:"22.129",height:"33.1936",rx:"2.01173",fill:"#007CFF"}),(0,s.jsx)("rect",{x:"171",y:"-18",width:"22.129",height:"33.1936",rx:"2.01173",fill:"#007CFF"}),(0,s.jsx)("path",{d:"M219 89.0117C219 87.9007 219.901 87 221.012 87H238.988C240.099 87 241 87.9007 241 89.0117V99H219V89.0117Z",fill:"#007CFF"}),(0,s.jsx)("path",{d:"M171 89.0117C171 87.9007 171.901 87 173.012 87H190.988C192.099 87 193 87.9007 193 89.0117V99H171V89.0117Z",fill:"#007CFF"}),(0,s.jsx)("rect",{x:"218.871",y:"51.8389",width:"22.129",height:"33.1936",rx:"2.01173",fill:"#007CFF"}),(0,s.jsx)("rect",{x:"194.936",y:"33.7744",width:"22.129",height:"33.1936",rx:"2.01173",fill:"#007CFF"}),(0,s.jsx)("rect",{x:"218.871",y:"17.0645",width:"22.129",height:"33.1936",rx:"2.01173",fill:"#007CFF"}),(0,s.jsx)("rect",{x:"218.871",y:"17.0645",width:"22.129",height:"33.1936",rx:"2.01173",fill:"#007CFF"}),(0,s.jsx)("rect",{x:"171",y:"51.8389",width:"22.129",height:"33.1936",rx:"2.01173",fill:"#007CFF"}),(0,s.jsx)("rect",{x:"171",y:"17.0645",width:"22.129",height:"33.1936",rx:"2.01173",fill:"#007CFF"}),(0,s.jsx)("rect",{x:"194.936",y:"-1",width:"22.129",height:"33.1936",rx:"2.01173",fill:"#007CFF"}),(0,s.jsx)("rect",{x:"194.936",y:"-1",width:"22.129",height:"33.1936",rx:"2.01173",fill:"#007CFF"})]}),(0,s.jsxs)("defs",{children:[(0,s.jsxs)("filter",{id:"filter0_d_644_53678",x:"100",y:"55.5858",width:"17.4141",height:"23.4142",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,s.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,s.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,s.jsx)("feOffset",{dy:"1"}),(0,s.jsx)("feGaussianBlur",{stdDeviation:"1.5"}),(0,s.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),(0,s.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_644_53678"}),(0,s.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_644_53678",result:"shape"})]}),(0,s.jsx)("clipPath",{id:"clip0_644_53678",children:(0,s.jsx)("rect",{width:"270",height:"99",fill:"white"})})]})]})}const g=JSON.parse('{"v":"4.8.0","meta":{"g":"LottieFiles AE 3.2.2","a":"","k":"","d":"","tc":""},"fr":60,"ip":0,"op":719,"w":270,"h":114,"nm":"profile-visuals","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"blue-circle 3","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.5],"y":[0]},"t":468,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.5],"y":[0]},"t":496,"s":[100]},{"t":544,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[73.871,93.483,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,-15.667]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":468,"s":[0,0,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,17.667]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":496,"s":[100,100,100]},{"t":544,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[5.742,5.742],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.541176497936,0.223529413342,0.980392158031,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"blue-circle","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":390,"op":563,"st":390,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"green-circle 3","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.8],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":434,"s":[0]},{"i":{"x":[0.8],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":462,"s":[100]},{"t":511,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[188.766,33.378,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.8,0.8,0.8],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":434,"s":[0,0,100]},{"i":{"x":[0.8,0.8,0.8],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":462,"s":[100,100,100]},{"t":511,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[21.532,21.532],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.35686275363,0.270588248968,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"green-circle","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":395,"op":563,"st":395,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"red-circle 3","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.8],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":425,"s":[0]},{"i":{"x":[0.8],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":453,"s":[100]},{"t":491,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[76.242,20.854,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.8,0.8,0.8],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":425,"s":[0,0,100]},{"i":{"x":[0.8,0.8,0.8],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":453,"s":[100,100,100]},{"t":491,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[11.484,11.484],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.35686275363,0.270588248968,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"red-circle","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":387,"op":563,"st":387,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"yellow-circle 3","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.8],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":464,"s":[0]},{"i":{"x":[0.8],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":492,"s":[100]},{"t":540,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[199.524,76.636,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.8,0.8,0.8],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,16.667]},"t":464,"s":[0,0,100]},{"i":{"x":[0.8,0.8,0.8],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,-16.667]},"t":492,"s":[100,100,100]},{"t":540,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[10.048,10.048],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.992156862745,0.788235294118,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"yellow-circle","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":370,"op":563,"st":370,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Path 14","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":367,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.317],"y":[0]},"t":382,"s":[100]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":642,"s":[100]},{"t":656,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[135,57,0],"ix":2},"a":{"a":0,"k":[51.98,34.065,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":367,"s":[0,0,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":383,"s":[110,110,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":395,"s":[100,100,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":642,"s":[100,100,100]},{"t":656,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.344,0],[0,0],[0,0],[0,0],[0,2.344]],"o":[[0,-2.344],[0,0],[0,0],[0,0],[-2.344,0],[0,0]],"v":[[0,4.245],[4.245,0],[68.131,0],[68.131,68.131],[4.245,68.131],[0,63.886]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274509804,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Path 5","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[2.345,0],[0,0]],"o":[[0,0],[0,0],[0,2.344],[0,0],[0,0]],"v":[[0,0],[33.959,0],[33.959,28.865],[29.714,33.11],[0,33.11]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274509804,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[70,35],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Path 3","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[2.344,0],[0,0],[0,0],[0,0]],"o":[[0,-2.344],[0,0],[0,0],[0,0],[0,0]],"v":[[33.959,4.245],[29.714,0],[0,0],[0,33.11],[33.959,33.11]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274509804,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[70,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Path 4","np":3,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false}],"ip":367,"op":3967,"st":367,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Pin image-15","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":0.702},"o":{"x":0.333,"y":0},"t":360,"s":[185.949,39.938,0],"to":[-4.32,1.305,0],"ti":[10.758,-3.25,0]},{"t":374,"s":[113.054,68.412,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[0.822,0.822,-9.7]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":255,"s":[0,0,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[10.7,10.7,10.7]},"t":268,"s":[60,60,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":281,"s":[60,60,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":360,"s":[60,60,100]},{"t":374,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[36,36],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":3.359,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274509804,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Pin image-2","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":255,"op":3855,"st":255,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"Pin image-14","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":0.7},"o":{"x":0.333,"y":0},"t":360,"s":[148.449,83.438,0],"to":[-0.945,-2.7,0],"ti":[2.353,6.724,0]},{"t":375,"s":[129.175,34.441,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[0.847,0.847,-20.399]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":250,"s":[0,0,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[-1.07,-1.07,21.399]},"t":263,"s":[70,70,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":276,"s":[60,60,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":360,"s":[60,60,100]},{"t":372,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[36,36],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":3.359,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274509804,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Pin image-2","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":250,"op":3850,"st":250,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"Pin image-0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":14,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":0.755},"o":{"x":0.333,"y":0},"t":360,"s":[90.649,39.433,0],"to":[4.05,1.575,0],"ti":[-10.086,-3.922,0]},{"t":374,"s":[173.894,77.557,0]}],"ix":2},"a":{"a":0,"k":[23.399,29.933,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[0.838,0.838,-16.833]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":242,"s":[0,0,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[-1.783,-1.783,17.833]},"t":255,"s":[110,110,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":268,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":360,"s":[100,100,100]},{"t":372,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-1.607,0.404],[0,0],[-0.404,-1.607],[0,0],[1.607,-0.404],[0,0],[0.404,1.607]],"o":[[-0.404,-1.607],[0,0],[1.607,-0.404],[0,0],[0.404,1.607],[0,0],[-1.607,0.404],[0,0]],"v":[[0.091,11.045],[2.269,7.404],[31.364,0.091],[35.005,2.269],[46.706,48.822],[44.528,52.462],[15.433,59.775],[11.792,57.597]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274509804,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Pin image","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":242,"op":3842,"st":242,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"touch","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[144.5,67,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[50,50,100],"ix":6}},"ao":0,"shapes":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.56,0.56],"y":[1,1]},"o":{"x":[0.58,0.58],"y":[0,0]},"t":172,"s":[40,40]},{"t":201,"s":[150,150]}],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.46274510026,0.46274510026,0.46274510026,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":1,"k":[{"i":{"x":[0.56],"y":[1]},"o":{"x":[0.58],"y":[0]},"t":172,"s":[8]},{"t":201,"s":[0]}],"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false}],"ip":169,"op":257,"st":147,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"Path 13","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.19,"y":1},"o":{"x":0.55,"y":0},"t":84,"s":[222.25,123.999,0],"to":[-12.292,-8.417,0],"ti":[12.292,8.417,0]},{"t":133,"s":[148.5,73.499,0]}],"ix":2},"a":{"a":0,"k":[4.854,7.854,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.135,0.135,0]},"t":199,"s":[99.962,99.962,100]},{"t":212,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-0.01,0.011],[-0.033,0.038],[-0.086,0.124],[-0.061,0.167],[0.108,0.258],[0.538,1.042],[0.168,0.318],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0.355,0.352],[0,0],[0,0],[0,0],[0,0],[0,0],[0.006,-0.006],[0.021,-0.022],[0.066,-0.075],[0.083,-0.12],[0.057,-0.156],[-0.353,-0.847],[-0.225,-0.435],[0,0],[0,0],[0,0],[0,0]],"v":[[0.854,0.854],[0,0],[0,1.207],[0,13.207],[0,14.414],[0.854,13.561],[3.363,11.051],[5.553,15.431],[5.691,15.707],[6,15.707],[7,15.707],[7.208,15.707],[7.355,15.559],[7,15.207],[7.355,15.559],[7.355,15.559],[7.355,15.559],[7.356,15.558],[7.359,15.555],[7.367,15.547],[7.392,15.521],[7.475,15.43],[7.715,15.123],[7.953,14.682],[7.962,14.015],[6.436,10.859],[5.834,9.707],[8.5,9.707],[9.707,9.707],[8.854,8.854]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Path 11","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":3600,"st":0,"bm":0},{"ddd":0,"ind":11,"ty":4,"nm":"Path 12","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.19,"y":1},"o":{"x":0.55,"y":0},"t":84,"s":[222.25,123.999,0],"to":[-12.292,-8.417,0],"ti":[12.292,8.417,0]},{"t":133,"s":[148.5,73.499,0]}],"ix":2},"a":{"a":0,"k":[4,7,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.135,0.135,0]},"t":199,"s":[99.962,99.962,100]},{"t":212,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0.146,0.35],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[-0.688,-1.65],[0,0],[0,0]],"v":[[0,0],[0,12],[3,9],[5.5,14],[6.5,14],[7,13],[4.5,8],[8,8]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Path 10","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":3600,"st":0,"bm":0},{"ddd":0,"ind":12,"ty":4,"nm":"Ellipse 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[135,57,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[0,0,100]},{"i":{"x":[0.6,0.6,0.6],"y":[0.97,0.97,0.931]},"o":{"x":[0.262,0.262,0.262],"y":[0,0,0]},"t":14,"s":[110,110,100]},{"i":{"x":[0.65,0.65,0.65],"y":[4.482,4.482,4.482]},"o":{"x":[0.237,0.237,0.237],"y":[-1.457,-1.457,0.34]},"t":29,"s":[100,100,100]},{"i":{"x":[0.816,0.816,0.816],"y":[1,1,1]},"o":{"x":[0.437,0.437,0.437],"y":[0.07,0.07,-0.701]},"t":153,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":173,"s":[90,90,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":187,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":200,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":225,"s":[100,100,100]},{"t":241,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-5.019,0],[0,-5.019],[0,0],[0,0]],"o":[[0,-5.019],[5.019,0],[0,0],[0,0],[0,0]],"v":[[0,9.087],[9.087,0],[18.173,9.087],[18.173,10.904],[0,10.904]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.462745098039,0.462745098039,0.462745098039,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-9.25,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Path 9","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,-2.761],[2.76,0],[0,2.76],[-2.761,0]],"o":[[0,2.76],[-2.761,0],[0,-2.761],[2.76,0]],"v":[[9.995,4.998],[4.998,9.995],[0,4.998],[4.998,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.462745098039,0.462745098039,0.462745098039,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-5,-10.625],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Path 8","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[43.616,43.616],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":3600,"st":0,"bm":0}],"markers":[]}');function x(){return(0,s.jsxs)("svg",{width:"270",height:"114",viewBox:"0 0 270 114",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M227.301 65.8944H249.265V84.5639C249.265 86.0802 248.036 87.3094 246.519 87.3094H227.301V65.8944Z",fill:"#007CFF"}),(0,s.jsx)("path",{d:"M249.266 45.9887C249.266 44.4724 248.036 43.2432 246.52 43.2432H227.301V64.6582H249.266V45.9887Z",fill:"#007CFF"}),(0,s.jsx)("path",{d:"M182 45.9887C182 44.4724 183.229 43.2432 184.746 43.2432H226.066V87.3087H184.746C183.229 87.3087 182 86.0795 182 84.5632V45.9887Z",fill:"#007CFF"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M83.7406 61.4576C83.2531 60.9369 82.4606 60.9369 81.9731 61.4576C81.485 61.9782 81.485 62.8222 81.9731 63.3429L83.5894 65.0669H75.875C75.1844 65.0669 74.625 65.6642 74.625 66.4002C74.625 67.1369 75.1844 67.7336 75.875 67.7336H83.5894L81.9731 69.4576C81.485 69.9782 81.485 70.8222 81.9731 71.3429C82.2169 71.6036 82.5369 71.7336 82.8569 71.7336C83.1769 71.7336 83.4969 71.6036 83.7406 71.3429L88.375 66.4002L83.7406 61.4576Z",fill:"#767676"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M160.741 61.4576C160.253 60.9369 159.461 60.9369 158.973 61.4576C158.485 61.9782 158.485 62.8222 158.973 63.3429L160.589 65.0669H152.875C152.184 65.0669 151.625 65.6642 151.625 66.4002C151.625 67.1369 152.184 67.7336 152.875 67.7336H160.589L158.973 69.4576C158.485 69.9782 158.485 70.8222 158.973 71.3429C159.217 71.6036 159.537 71.7336 159.857 71.7336C160.177 71.7336 160.497 71.6036 160.741 71.3429L165.375 66.4002L160.741 61.4576Z",fill:"#767676"}),(0,s.jsx)("circle",{cx:"38",cy:"64.8076",r:"18",fill:"white"}),(0,s.jsx)("path",{d:"M42.125 59.9328C42.125 62.2113 40.2785 64.0578 38 64.0578C35.7215 64.0578 33.875 62.2113 33.875 59.9328C33.875 57.6543 35.7215 55.8078 38 55.8078C40.2785 55.8078 42.125 57.6543 42.125 59.9328Z",fill:"#767676"}),(0,s.jsx)("path",{d:"M30.5 72.3078C30.5 68.1655 33.8578 64.8078 38 64.8078C42.1423 64.8078 45.5 68.1655 45.5 72.3078V73.8078H30.5V72.3078Z",fill:"#767676"}),(0,s.jsx)("rect",{x:"101",y:"35",width:"18.502",height:"27.753",rx:"1.6743",fill:"#007CFF"}),(0,s.jsx)("rect",{x:"119.417",y:"69.9932",width:"13.1462",height:"19.7192",rx:"1.22782",fill:"#007CFF"}),(0,s.jsx)("rect",{x:"129.854",y:"49.1191",width:"13.1462",height:"13.1462",rx:"1.68825",fill:"#007CFF"}),(0,s.jsxs)("g",{filter:"url(#filter0_d_644_52010)",children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M51 72V84L54 81L56.5 86H57.5C57.5 86 58.1457 85.3496 58 85C57.3123 83.3496 55.5 80 55.5 80H59L51 72Z",fill:"black"}),(0,s.jsx)("path",{d:"M51.3536 71.6464L50.5 70.7929V72V84V85.2071L51.3536 84.3536L53.863 81.8441L56.0528 86.2236L56.191 86.5H56.5H57.5H57.7082L57.8548 86.3523L57.5 86C57.8548 86.3523 57.8549 86.3522 57.855 86.3521L57.8551 86.352L57.8555 86.3516L57.8564 86.3507L57.8589 86.3482L57.8665 86.3403C57.8727 86.3339 57.8812 86.325 57.8917 86.3139C57.9125 86.2918 57.9411 86.2607 57.9746 86.2225C58.0407 86.1472 58.1297 86.0397 58.2154 85.9162C58.2986 85.7963 58.3923 85.6421 58.4532 85.4746C58.51 85.3185 58.5692 85.066 58.4615 84.8077C58.1088 83.9611 57.4748 82.6941 56.9364 81.6517C56.7119 81.217 56.5023 80.8181 56.3339 80.5H59H60.2071L59.3536 79.6464L51.3536 71.6464Z",stroke:"white"})]}),(0,s.jsx)("defs",{children:(0,s.jsxs)("filter",{id:"filter0_d_644_52010",x:"47",y:"67.5858",width:"17.4141",height:"23.4142",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,s.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,s.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,s.jsx)("feOffset",{dy:"1"}),(0,s.jsx)("feGaussianBlur",{stdDeviation:"1.5"}),(0,s.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),(0,s.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_644_52010"}),(0,s.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_644_52010",result:"shape"})]})})]})}var f=i(412067);const y=JSON.parse('{"v":"4.8.0","meta":{"g":"LottieFiles AE 3.0.2","a":"","k":"","d":"","tc":""},"fr":60,"ip":0,"op":420,"w":270,"h":100,"nm":"handoff","ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"blue-circle 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.5],"y":[0]},"t":181,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.5],"y":[0]},"t":209,"s":[100]},{"t":257,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[112.871,64.483,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,-15.667]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":181,"s":[0,0,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,17.667]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":209,"s":[100,100,100]},{"t":257,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[5.742,5.742],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.541176497936,0.223529413342,0.980392158031,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"blue-circle","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":103,"op":418,"st":103,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"green-circle 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.8],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":147,"s":[0]},{"i":{"x":[0.8],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":175,"s":[100]},{"t":224,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[156.766,33.878,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.8,0.8,0.8],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":147,"s":[0,0,100]},{"i":{"x":[0.8,0.8,0.8],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":175,"s":[100,100,100]},{"t":224,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[21.532,21.532],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.35686275363,0.270588248968,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"green-circle","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":108,"op":418,"st":108,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"red-circle 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.8],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":138,"s":[0]},{"i":{"x":[0.8],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":166,"s":[100]},{"t":204,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[118.242,32.354,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.8,0.8,0.8],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":138,"s":[0,0,100]},{"i":{"x":[0.8,0.8,0.8],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":166,"s":[100,100,100]},{"t":204,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[11.484,11.484],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.35686275363,0.270588248968,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"red-circle","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":100,"op":418,"st":100,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"yellow-circle 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.8],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":177,"s":[0]},{"i":{"x":[0.8],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":205,"s":[100]},{"t":253,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[149.524,72.136,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.8,0.8,0.8],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,16.667]},"t":177,"s":[0,0,100]},{"i":{"x":[0.8,0.8,0.8],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,-16.667]},"t":205,"s":[100,100,100]},{"t":253,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[10.048,10.048],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.992156862745,0.788235294118,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"yellow-circle","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":83,"op":418,"st":83,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Path 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[83.923,51.038,0],"ix":2},"a":{"a":0,"k":[8.25,9,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.5,0.5,0.5],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":97,"s":[0,0,100]},{"i":{"x":[0.8,0.8,0.8],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":108,"s":[100,100,100]},{"i":{"x":[0.8,0.8,0.8],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":297,"s":[100,100,100]},{"t":317,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.621,0],[0,0.622],[-0.621,0],[0,-0.622]],"o":[[-0.621,0],[0,-0.622],[0.621,0],[0,0.622]],"v":[[12.75,9.375],[11.625,8.25],[12.75,7.125],[13.875,8.25]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0.621,0],[0,0.622],[-0.621,0],[0,-0.622]],"o":[[-0.621,0],[0,-0.622],[0.621,0],[0,0.622]],"v":[[8.25,9.375],[7.125,8.25],[8.25,7.125],[9.375,8.25]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[-0.621,0],[0,-0.622],[0.621,0],[0,0.622]],"o":[[0.621,0],[0,0.622],[-0.621,0],[0,-0.622]],"v":[[3.75,7.125],[4.875,8.25],[3.75,9.375],[2.625,8.25]],"c":true},"ix":2},"nm":"Path 3","mn":"ADBE Vector Shape - Group","hd":false},{"ind":3,"ty":"sh","ix":4,"ks":{"a":0,"k":{"i":[[4.556,0],[0,-4.556],[-1.16,-1.421],[0,0],[-0.287,0.163],[0,0],[-1.108,0],[0,4.556]],"o":[[-4.556,0],[0,1.977],[0,0],[-0.08,0.321],[0,0],[0.966,0.395],[4.556,0],[0,-4.556]],"v":[[8.25,0],[0,8.25],[1.857,13.462],[0.762,17.533],[1.312,17.95],[5.122,15.883],[8.25,16.5],[16.5,8.25]],"c":true},"ix":2},"nm":"Path 4","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.462745098039,0.462745098039,0.462745098039,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Path 2","np":6,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":97,"op":418,"st":97,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"arrow-down","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[167,51.875,0],"ix":2},"a":{"a":0,"k":[5,3.125,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.5,0.5,0.5],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":97,"s":[0,0,100]},{"i":{"x":[0.5,0.5,0.5],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":108,"s":[116,116,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":297,"s":[116,116,100]},{"t":317,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.183,-0.181],[0,0],[0,0],[0.366,-0.362],[-0.366,-0.362],[0,0],[0,0],[0,0.237],[0.183,0.181],[0.24,0]],"o":[[0,0],[0,0],[-0.367,-0.362],[-0.366,0.361],[0,0],[0,0],[0.183,-0.181],[0,-0.237],[-0.183,-0.181],[-0.24,0]],"v":[[8.4,0.271],[5,3.63],[1.601,0.271],[0.275,0.271],[0.275,1.582],[5,6.25],[9.726,1.582],[10,0.926],[9.726,0.271],[9.063,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.462745098039,0.462745098039,0.462745098039,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"arrow-down","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":97,"op":3697,"st":97,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"Path 11","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[31.86,58.836,0],"ix":2},"a":{"a":0,"k":[8.985,3.586,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.5,0.5,0.5],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":97,"s":[0,0,100]},{"i":{"x":[0.5,0.5,0.5],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":108,"s":[27.3,27.3,100]},{"i":{"x":[0.8,0.8,0.8],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":297,"s":[27.3,27.3,100]},{"t":317,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[4.637,0],[0,4.637]],"o":[[0,4.637],[-4.637,0],[0,0]],"v":[[16.791,0],[8.395,8.395],[0,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.462745098039,0.462745098039,0.462745098039,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Path 2","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":97,"op":3697,"st":97,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"Path 10","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[31.61,48.961,0],"ix":2},"a":{"a":0,"k":[27.985,26.586,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.5,0.5,0.5],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":97,"s":[0,0,100]},{"i":{"x":[0.5,0.5,0.5],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":108,"s":[27.3,27.3,100]},{"i":{"x":[0.8,0.8,0.8],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":297,"s":[27.3,27.3,100]},{"t":317,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,-10.819],[0,0],[-0.915,-6.384],[0,0],[-4.424,4.268],[0,0],[-10.819,0]],"o":[[0,0],[4.424,4.268],[0,0],[0.915,-6.384],[0,0],[0,-10.819],[10.819,0]],"v":[[47.574,19.589],[47.574,36.842],[55.97,53.171],[0,53.171],[8.395,36.842],[8.395,19.589],[27.985,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.462745098039,0.462745098039,0.462745098039,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Path 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":97,"op":3697,"st":97,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"pin-rep-2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":1},"o":{"x":0.5,"y":0},"t":-2,"s":[135.01,48.762,0],"to":[0.083,0,0],"ti":[-0.083,0.959,0]},{"i":{"x":0.5,"y":1},"o":{"x":0.5,"y":0},"t":82,"s":[135.51,48.762,0],"to":[0.083,-0.959,0],"ti":[0,5.792,0]},{"i":{"x":0.548,"y":0.927},"o":{"x":0.514,"y":0},"t":95,"s":[135.51,43.01,0],"to":[0,-5.401,0],"ti":[0,3.713,0]},{"i":{"x":0.645,"y":1},"o":{"x":0.312,"y":0.108},"t":105,"s":[135.51,97.442,0],"to":[0,-0.269,0],"ti":[0,0.014,0]},{"i":{"x":0.5,"y":1},"o":{"x":0.5,"y":0},"t":106,"s":[135.51,100,0],"to":[0,-0.208,0],"ti":[0,8.54,0]},{"t":131,"s":[135.51,48.762,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.5,0.5,0.5],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":4,"s":[0,0,100]},{"i":{"x":[0.5,0.5,0.5],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":18,"s":[110,110,100]},{"i":{"x":[0.5,0.5,0.5],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":24,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":95,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":103,"s":[110,110,100]},{"t":131,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[39,58.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":3.545,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 2","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-2,"op":418,"st":-2,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"Path 9","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[204,58.112,0],"ix":2},"a":{"a":0,"k":[8.333,5,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[],"ip":-2,"op":3598,"st":-2,"bm":0},{"ddd":0,"ind":11,"ty":4,"nm":"Path 4","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[134.5,53.788,0],"ix":2},"a":{"a":0,"k":[7.5,4.5,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.5,0.5,0.5],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":97,"s":[0,0,100]},{"i":{"x":[0.576,0.576,0.576],"y":[1,1,1]},"o":{"x":[0.228,0.228,0.228],"y":[0,0,0]},"t":108,"s":[60,60,100]},{"i":{"x":[0.812,0.812,0.812],"y":[1,1,1]},"o":{"x":[0.292,0.292,0.292],"y":[0,0,0]},"t":134,"s":[55.122,55.122,100]},{"i":{"x":[0.8,0.8,0.8],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":297,"s":[60,60,100]},{"t":317,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-4.142,0],[0,-4.142],[0,0],[0,0]],"o":[[0,-4.142],[4.142,0],[0,0],[0,0],[0,0]],"v":[[0,7.5],[7.5,0],[15,7.5],[15,9],[0,9]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.462745098039,0.462745098039,0.462745098039,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Path 4","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":97,"op":418,"st":97,"bm":0},{"ddd":0,"ind":12,"ty":4,"nm":"Path 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[134.5,47.413,0],"ix":2},"a":{"a":0,"k":[4.125,4.125,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.5,0.5,0.5],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":97,"s":[0,0,100]},{"i":{"x":[0.576,0.576,0.576],"y":[1,1,1]},"o":{"x":[0.228,0.228,0.228],"y":[0,0,0]},"t":108,"s":[60,60,100]},{"i":{"x":[0.812,0.812,0.812],"y":[1,1,1]},"o":{"x":[0.292,0.292,0.292],"y":[0,0,0]},"t":134,"s":[55.122,55.122,100]},{"i":{"x":[0.8,0.8,0.8],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":297,"s":[60,60,100]},{"t":317,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,-2.279],[2.278,0],[0,2.279],[-2.279,0]],"o":[[0,2.279],[-2.279,0],[0,-2.279],[2.278,0]],"v":[[8.25,4.125],[4.125,8.25],[0,4.125],[4.125,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.462745098039,0.462745098039,0.462745098039,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Path 3","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":97,"op":418,"st":97,"bm":0},{"ddd":0,"ind":13,"ty":4,"nm":"Ellipse 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[135.25,50.701,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.5,0.5,0.5],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":97,"s":[0,0,100]},{"i":{"x":[0.812,0.812,0.812],"y":[1,1,1]},"o":{"x":[0.228,0.228,0.228],"y":[0,0,0]},"t":108,"s":[60,60,100]},{"i":{"x":[0.8,0.8,0.8],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":297,"s":[60,60,100]},{"t":317,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[40,40],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.913725495338,0.913725495338,0.913725495338,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-1.25,0.5],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":97,"op":3697,"st":97,"bm":0},{"ddd":0,"ind":14,"ty":4,"nm":"Rectangle 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[80.619,50.25,0],"ix":2},"a":{"a":0,"k":[0.167,-3.862,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.5,0.5,0.5],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":97,"s":[0,0,100]},{"i":{"x":[0.5,0.5,0.5],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":108,"s":[121.038,100,100]},{"i":{"x":[0.8,0.8,0.8],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":297,"s":[121.038,100,100]},{"t":317,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[183,52],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":26,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0.167,-3.862],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":97,"op":418,"st":97,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"dweb_handoff_v3","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[135,50,0],"ix":2},"a":{"a":0,"k":[135,50,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":270,"h":100,"ip":0,"op":420,"st":0,"bm":0}],"markers":[]}');function v(){return(0,s.jsxs)("svg",{width:"280",height:"99",viewBox:"0 0 280 99",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_644_53492)",children:[(0,s.jsx)("rect",{x:"-21",y:"8",width:"205",height:"50",rx:"25",fill:"white"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M97.4219 33.1953C96.8009 33.1953 96.2969 32.6921 96.2969 32.0703C96.2969 31.4486 96.8009 30.9453 97.4219 30.9453C98.0429 30.9453 98.5469 31.4486 98.5469 32.0703C98.5469 32.6921 98.0429 33.1953 97.4219 33.1953ZM92.9219 33.1953C92.3009 33.1953 91.7969 32.6921 91.7969 32.0703C91.7969 31.4486 92.3009 30.9453 92.9219 30.9453C93.5429 30.9453 94.0469 31.4486 94.0469 32.0703C94.0469 32.6921 93.5429 33.1953 92.9219 33.1953ZM88.4219 30.9453C89.0429 30.9453 89.5469 31.4486 89.5469 32.0703C89.5469 32.6921 89.0429 33.1953 88.4219 33.1953C87.8009 33.1953 87.2969 32.6921 87.2969 32.0703C87.2969 31.4486 87.8009 30.9453 88.4219 30.9453ZM92.9219 23.8203C88.3656 23.8203 84.6719 27.5141 84.6719 32.0703C84.6719 34.0473 85.3694 35.8608 86.5289 37.2821L85.4339 41.3531C85.3536 41.6741 85.6964 41.9336 85.9836 41.7701L89.7944 39.7031C90.7596 40.0983 91.8141 40.3203 92.9219 40.3203C97.4781 40.3203 101.172 36.6266 101.172 32.0703C101.172 27.5141 97.4781 23.8203 92.9219 23.8203Z",fill:"#767676"}),(0,s.jsx)("path",{d:"M48.25 29.2502V33.8739C49.4357 35.0177 50.2548 36.5394 50.5 38.2502H35.5C35.7452 36.5394 36.5642 35.0177 37.75 33.8739V29.2502C37.75 26.3507 40.1005 24.0002 43 24.0002C45.8995 24.0002 48.25 26.3507 48.25 29.2502Z",fill:"#767676"}),(0,s.jsx)("path",{d:"M45.25 39.75C45.25 40.9928 44.2428 42 43 42C41.7573 42 40.75 40.9928 40.75 39.75H45.25Z",fill:"#767676"}),(0,s.jsx)("circle",{cx:"140",cy:"33",r:"10",fill:"#E9E9E9"}),(0,s.jsx)("path",{d:"M142.29 30.2917C142.29 31.5575 141.265 32.5833 139.999 32.5833C138.733 32.5833 137.707 31.5575 137.707 30.2917C137.707 29.0258 138.733 28 139.999 28C141.265 28 142.29 29.0258 142.29 30.2917Z",fill:"#767676"}),(0,s.jsx)("path",{d:"M135.832 37.1667C135.832 34.8654 137.697 33 139.999 33C142.3 33 144.165 34.8654 144.165 37.1667V38H135.832V37.1667Z",fill:"#767676"}),(0,s.jsx)("rect",{x:"132",y:"68",width:"16",height:"24",rx:"1.39394",fill:"#007CFF"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M135.058 53.2594C134.538 53.7469 134.538 54.5394 135.058 55.0269C135.579 55.515 136.423 55.515 136.944 55.0269L138.668 53.4106L138.668 61.125C138.668 61.8156 139.265 62.375 140.001 62.375C140.738 62.375 141.334 61.8156 141.334 61.125L141.334 53.4106L143.058 55.0269C143.579 55.515 144.423 55.515 144.944 55.0269C145.204 54.7831 145.334 54.4631 145.334 54.1431C145.334 53.8231 145.204 53.5031 144.944 53.2594L140.001 48.625L135.058 53.2594Z",fill:"#767676"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M167.4 30.7713L164 34.1296L160.601 30.7713C160.234 30.4096 159.641 30.4096 159.275 30.7713C158.908 31.1325 158.908 31.72 159.275 32.0817L164 36.75L168.726 32.0817C168.908 31.9004 169 31.6629 169 31.4262C169 31.1892 168.908 30.9521 168.726 30.7713C168.543 30.5904 168.303 30.5 168.063 30.5C167.823 30.5 167.583 30.5904 167.4 30.7713Z",fill:"#767676"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_644_53492",children:(0,s.jsx)("rect",{width:"270",height:"99",fill:"white"})})})]})}const b=JSON.parse('{"v":"4.8.0","meta":{"g":"LottieFiles AE 3.2.2","a":"","k":"","d":"","tc":""},"fr":60,"ip":0,"op":479,"w":270,"h":114,"nm":"welcome-visuals","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":390,"s":[0]},{"t":419,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[135,57,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[298.326,143.369],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274988511,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[3.163,3.184],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":390,"op":3572,"st":-28,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"pin-rep-14","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[135.542,102.25,0],"ix":2},"a":{"a":0,"k":[24.5,5,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":196,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":208,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":215,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":319,"s":[100,100,100]},{"t":332,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.46,0],[0,0],[0,-2.46],[0,0],[0,0],[0,0]],"o":[[0,-2.46],[0,0],[2.46,0],[0,0],[0,0],[0,0],[0,0]],"v":[[0,4.455],[4.455,0],[44.546,0],[49,4.455],[49.042,17.875],[1.822,17.995],[0.042,18]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"pin-rep-13","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":196,"op":498,"st":196,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"pin-rep-13","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[240.083,-18.875,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":190,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":202,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":209,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":319,"s":[100,100,100]},{"t":332,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[49,73.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4.455,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 20","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":190,"op":498,"st":190,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"pin-rep-12","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[240.083,102.375,0],"ix":2},"a":{"a":0,"k":[24.5,5,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":184,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":196,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":203,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":319,"s":[100,100,100]},{"t":332,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.46,0],[0,0],[0,-2.46],[0,0],[0,0]],"o":[[0,-2.46],[0,0],[2.46,0],[0,0],[0,0],[0,0]],"v":[[0,4.455],[4.455,0],[44.546,0],[49,4.455],[48.958,18.75],[-0.042,18.625]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"pin-rep-11","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":184,"op":498,"st":184,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"pin-rep-11","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[188,89.75,0],"ix":2},"a":{"a":0,"k":[24.5,25,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":179,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":191,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":198,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":319,"s":[100,100,100]},{"t":332,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.46,0],[0,0],[0,-2.46],[0,0],[0,0]],"o":[[0,-2.46],[0,0],[2.46,0],[0,0],[0,0],[0,0]],"v":[[0,4.455],[4.455,0],[44.546,0],[49,4.455],[49,52.25],[0,52.5]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"pin-rep-10","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":179,"op":498,"st":179,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"pin-rep-10","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[30,102.125,0],"ix":2},"a":{"a":0,"k":[24.5,5,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":173,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":185,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":192,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":319,"s":[100,100,100]},{"t":332,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.46,0],[0,0],[0,-2.46],[0,0],[0,0],[0,0]],"o":[[0,-2.46],[0,0],[2.46,0],[0,0],[0,0],[0,0],[0,0]],"v":[[0,4.455],[4.455,0],[44.546,0],[49,4.455],[49,17.75],[24.562,18.125],[0,17.5]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"pin-rep-9","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":173,"op":498,"st":173,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"pin-rep-9","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[30.25,-18.875,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":167,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":179,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":186,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":319,"s":[100,100,100]},{"t":332,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[49,73.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4.455,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 20","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":167,"op":498,"st":167,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"pin-rep-8","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[240.083,56.75,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":160,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":172,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":179,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":319,"s":[100,100,100]},{"t":332,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[49,73.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4.455,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 18","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":160,"op":498,"st":160,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"pin-rep-7","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[82.5,89.5,0],"ix":2},"a":{"a":0,"k":[24.5,25,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":153,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":165,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":172,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":319,"s":[100,100,100]},{"t":332,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.46,0],[0,0],[0,-2.46],[0,0],[0,0],[0,0],[0,0]],"o":[[0,-2.46],[0,0],[2.46,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[0,4.455],[4.455,0],[44.546,0],[49,4.455],[49,40.75],[49,51.375],[0,51.25],[0,43.5]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"pin-rep-6","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":153,"op":498,"st":153,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"pin-rep-6","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[135.542,-19,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":146,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":158,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":165,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":319,"s":[100,100,100]},{"t":332,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[49,73.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4.455,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 14","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":146,"op":498,"st":146,"bm":0},{"ddd":0,"ind":11,"ty":4,"nm":"pin-rep-5","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[30,57.5,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":139,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":151,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":158,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":319,"s":[100,100,100]},{"t":332,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[49,73.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4.455,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 16","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":139,"op":498,"st":139,"bm":0},{"ddd":0,"ind":12,"ty":4,"nm":"pin-rep-4","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[188,25.5,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":133,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":145,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":152,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":319,"s":[100,100,100]},{"t":332,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[49,73.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4.455,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"pin-rep-3","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":133,"op":498,"st":133,"bm":0},{"ddd":0,"ind":13,"ty":4,"nm":"pin-rep-3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[82.5,25,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":127,"s":[0,0,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":139,"s":[105,105,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":146,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":319,"s":[100,100,100]},{"t":332,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[49,73.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4.455,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"pin-rep-2","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":127,"op":498,"st":127,"bm":0},{"ddd":0,"ind":14,"ty":4,"nm":"pin-rep-2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[134.542,56.75,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":319,"s":[100,100,100]},{"t":332,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[49,73.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4.455,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 12","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":122,"op":498,"st":122,"bm":0},{"ddd":0,"ind":15,"ty":4,"nm":"pin-rep-1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[134.75,56.75,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[554,554,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":22,"s":[85,85,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":26,"s":[100,100,100]},{"i":{"x":[0.75,0.75,0.75],"y":[1,1,1]},"o":{"x":[0.5,0.5,0.5],"y":[0,0,0]},"t":319,"s":[100,100,100]},{"t":332,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[49,73.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4.455,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.486274510622,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 12","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":898,"st":0,"bm":0},{"ddd":0,"ind":16,"ty":4,"nm":"yellow-circle 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.45],"y":[1]},"o":{"x":[0.4],"y":[0]},"t":57,"s":[0]},{"i":{"x":[0.45],"y":[1]},"o":{"x":[0.4],"y":[0]},"t":67,"s":[100]},{"t":136,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.45,"y":1},"o":{"x":0.4,"y":0},"t":57,"s":[145.774,65.886,0],"to":[4.167,2.292,0],"ti":[-4.167,-2.292,0]},{"t":71,"s":[170.774,79.636,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[10.048,10.048],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.992156862745,0.788235294118,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"yellow-circle","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":57,"op":884,"st":69,"bm":0},{"ddd":0,"ind":17,"ty":4,"nm":"red-circle 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.45],"y":[1]},"o":{"x":[0.4],"y":[0]},"t":57,"s":[0]},{"i":{"x":[0.45],"y":[1]},"o":{"x":[0.4],"y":[0]},"t":67,"s":[100]},{"t":136,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.45,"y":1},"o":{"x":0.4,"y":0},"t":57,"s":[123.492,48.104,0],"to":[-4.833,-2.083,0],"ti":[4.833,2.083,0]},{"t":71,"s":[94.492,35.604,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[11.484,11.484],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.35686275363,0.270588248968,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"red-circle","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":57,"op":884,"st":86,"bm":0},{"ddd":0,"ind":18,"ty":4,"nm":"green-circle 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.45],"y":[1]},"o":{"x":[0.4],"y":[0]},"t":57,"s":[0]},{"i":{"x":[0.45],"y":[1]},"o":{"x":[0.4],"y":[0]},"t":67,"s":[100]},{"t":136,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.45,"y":1},"o":{"x":0.4,"y":0},"t":57,"s":[146.266,41.128,0],"to":[3.833,-1.833,0],"ti":[-3.833,1.833,0]},{"t":71,"s":[169.266,30.128,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[60,60,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[21.532,21.532],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.35686275363,0.270588248968,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"green-circle","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":57,"op":884,"st":94,"bm":0},{"ddd":0,"ind":19,"ty":4,"nm":"blue-circle 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.45],"y":[1]},"o":{"x":[0.4],"y":[0]},"t":57,"s":[0]},{"i":{"x":[0.45],"y":[1]},"o":{"x":[0.4],"y":[0]},"t":67,"s":[100]},{"t":136,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.45,"y":1},"o":{"x":0.4,"y":0},"t":57,"s":[122.871,69.233,0],"to":[-4,1.75,0],"ti":[4,-1.75,0]},{"t":67,"s":[98.871,79.733,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[5.742,5.742],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.541176497936,0.223529413342,0.980392158031,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"blue-circle","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":57,"op":884,"st":89,"bm":0}],"markers":[]}');function P(){return(0,s.jsxs)("svg",{width:"275",height:"119",viewBox:"0 0 270 114",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_644_51764)",children:[(0,s.jsx)("rect",{x:"108",y:"19",width:"53",height:"79.5",rx:"4.81818",fill:"#007CFF"}),(0,s.jsx)("rect",{x:"108",y:"-64",width:"53",height:"79.5",rx:"4.81818",fill:"#F7FBFF"}),(0,s.jsx)("path",{d:"M108 106.818C108 104.157 110.157 102 112.818 102H156.182C158.843 102 161 104.157 161 106.818V114H108V106.818Z",fill:"#F7FBFF"}),(0,s.jsx)("rect",{x:"-6",y:"19",width:"53",height:"79.5",rx:"4.81818",fill:"#F7FBFF"}),(0,s.jsx)("rect",{x:"-6",y:"-64",width:"53",height:"79.5",rx:"4.81818",fill:"#F7FBFF"}),(0,s.jsx)("path",{d:"M-6 106.818C-6 104.157 -3.84283 102 -1.18182 102H42.1818C44.8428 102 47 104.157 47 106.818V114H-6V106.818Z",fill:"#F7FBFF"}),(0,s.jsx)("rect",{x:"223",y:"19",width:"53",height:"79.5",rx:"4.81818",fill:"#F7FBFF"}),(0,s.jsx)("rect",{x:"223",y:"-64",width:"53",height:"79.5",rx:"4.81818",fill:"#F7FBFF"}),(0,s.jsx)("path",{d:"M223 106.818C223 104.157 225.157 102 227.818 102H271.182C273.843 102 276 104.157 276 106.818V114H223V106.818Z",fill:"#F7FBFF"}),(0,s.jsx)("rect",{x:"51",y:"-33",width:"53",height:"79.5",rx:"4.81818",fill:"#F7FBFF"}),(0,s.jsx)("rect",{x:"165",y:"-33",width:"53",height:"79.5",rx:"4.81818",fill:"#F7FBFF"}),(0,s.jsx)("path",{d:"M51 54.8182C51 52.1572 53.1572 50 55.8182 50H99.1818C101.843 50 104 52.1572 104 54.8182V114H51V54.8182Z",fill:"#F7FBFF"}),(0,s.jsx)("path",{d:"M165 54.8182C165 52.1572 167.157 50 169.818 50H213.182C215.843 50 218 52.1572 218 54.8182V114H165V54.8182Z",fill:"#F7FBFF"}),(0,s.jsxs)("g",{filter:"url(#filter0_d_644_51764)",children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M157 86V98L160 95L162.5 100H163.5C163.5 100 164.146 99.3496 164 99C163.312 97.3496 161.5 94 161.5 94H165L157 86Z",fill:"black"}),(0,s.jsx)("path",{d:"M157.354 85.6464L156.5 84.7929V86V98V99.2071L157.354 98.3536L159.863 95.8441L162.053 100.224L162.191 100.5H162.5H163.5H163.708L163.855 100.352L163.5 100C163.855 100.352 163.855 100.352 163.855 100.352L163.855 100.352L163.855 100.352L163.856 100.351L163.859 100.348L163.866 100.34C163.873 100.334 163.881 100.325 163.892 100.314C163.912 100.292 163.941 100.261 163.975 100.223C164.041 100.147 164.13 100.04 164.215 99.9162C164.299 99.7963 164.392 99.6421 164.453 99.4746C164.51 99.3185 164.569 99.066 164.462 98.8077C164.109 97.9611 163.475 96.6941 162.936 95.6517C162.712 95.217 162.502 94.8181 162.334 94.5H165H166.207L165.354 93.6464L157.354 85.6464Z",stroke:"white"})]}),(0,s.jsx)("circle",{cx:"165.766",cy:"38.7661",r:"10.7661",fill:"#1DAD65"}),(0,s.jsx)("circle",{cx:"173.024",cy:"76.0242",r:"5.02419",fill:"#FDC900"}),(0,s.jsx)("circle",{cx:"94.871",cy:"73.5292",r:"2.87097",fill:"#8A39FA"}),(0,s.jsx)("path",{d:"M106.484 33.742C106.484 36.9132 103.913 39.484 100.742 39.484C97.5708 39.484 95 36.9132 95 33.742C95 30.5709 97.5708 28.0001 100.742 28.0001C103.913 28.0001 106.484 30.5709 106.484 33.742Z",fill:"#FF5B45"})]}),(0,s.jsxs)("defs",{children:[(0,s.jsxs)("filter",{id:"filter0_d_644_51764",x:"153",y:"81.5858",width:"17.4141",height:"23.4142",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,s.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,s.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,s.jsx)("feOffset",{dy:"1"}),(0,s.jsx)("feGaussianBlur",{stdDeviation:"1.5"}),(0,s.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),(0,s.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_644_51764"}),(0,s.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_644_51764",result:"shape"})]}),(0,s.jsx)("clipPath",{id:"clip0_644_51764",children:(0,s.jsx)("rect",{width:"270",height:"114",fill:"white"})})]})]})}var w=i(725796),S=i(615071),A=i(53987),k=i(407043),E=i(123159),T=i(276775),C=i(497529);const I=new Set([503221,503416]);function j({anchor:e,pin:t}){const{mountedPlacements:i}=(0,E.M)(),n=Number(Object.keys(i||[])[0]||""),o=(0,C.Z)(n);return o.experienceForPlacement&&o.experienceForPlacement.display_data&&o.experienceForPlacement.experience_id?(0,s.jsx)(R,{anchor:e,guidedEduExperience:o,pin:t}):null}const R=(0,n.memo)((({anchor:e,guidedEduExperience:t,pin:i})=>{const{logContextEvent:o}=(0,k.v)(),[a,r]=(0,n.useState)(!1),l=(0,T.useHistory)(),c=(0,u.B)().isRTL,{completeExperience:d,dismissExperience:h,experienceForPlacement:E,viewExperience:C}=t,j=(0,n.useMemo)((()=>{switch(null==E?void 0:E.experience_id){case 505171:return{animationData:b,viewParameter:3817,renderSvg:()=>(0,s.jsx)(P,{})};case 505195:return{viewParameter:3819};case 505173:return{animationData:g,viewParameter:3818,renderSvg:()=>(0,s.jsx)(x,{})};case 503221:return{animationData:y,renderSvg:()=>(0,s.jsx)(p.xu,{left:!0,children:(0,s.jsx)(v,{})}),viewParameter:3820};case 501041:return{animationData:y,renderSvg:()=>(0,s.jsx)(p.xu,{left:!0,children:(0,s.jsx)(v,{})}),viewParameter:3821};case 503416:return{animationData:_,renderSvg:()=>(0,s.jsx)(m,{}),viewParameter:3822};default:return{}}}),[E]),{animationData:R,renderSvg:z,viewParameter:O}=j;(0,n.useEffect)((()=>{if(null!=E&&E.display_data.showGuidedEdu){r(!0);I.has(E.experience_id)||(C(E.placement_id,E.experience_id),o({event_type:13,view_type:600,view_parameter:O}))}}),[null==E?void 0:E.display_data.showGuidedEdu,null==E?void 0:E.experience_id,null==E?void 0:E.placement_id,o,C,O]),(0,n.useEffect)((()=>{if(E){const e=()=>d(E.placement_id,E.experience_id);switch(E.experience_id){case 503195:(0,A.L6)(l.location)&&(f.Z.create("UserStateResource",{state:"HAS_DONE_CLOSEUP",value:1}).callCreate(),e())}}}),[E,l.location]);const L={animationData:R,loop:!0,autoplay:!0},{animationContainerRef:N,animationLoaded:B}=(0,w.Z)(L);if((0,n.useEffect)((()=>{B&&o({event_type:10349})}),[B,o]),null==E||!E.display_data.showGuidedEdu)return null;const M=(()=>{var e;switch(E.experience_id){case 501041:case 503221:return null!=i&&i.story_pin_data||null!=i&&null!==(e=i.shopping_flags)&&void 0!==e&&e.length?80:95;case 503416:return 60;case 505173:return 80;default:return 0}})(),Z=505173===E.experience_id?15:0,F=c?Z:void 0,U=c?void 0:Z,{location:V,showAnchoredGuidedEducation:G=!1}=E.display_data,H=E.display_data.showStaticEducation||505171===E.experience_id,W=()=>{o({event_type:101,element:75}),h(E.placement_id,E.experience_id)},$=()=>{d(E.placement_id,E.experience_id)},K=()=>{d(E.placement_id,E.experience_id),V&&l.push(V)},q=()=>{C(E.placement_id,E.experience_id)};return(0,s.jsx)(S.Z,{classNames:"GuidedEducation",in:a,timeout:400,unmountOnExit:!0,children:G&&e?(0,s.jsx)(p.xu,{position:"absolute",dangerouslySetInlineStyle:{__style:{left:F,top:M,right:U}},ref:e,children:(0,s.jsx)(D,{animationContainerRef:N,animationLoaded:B,displayData:E.display_data,onClickToComplete:K,onComplete:$,onDismiss:W,onView:q,renderSvg:z,shouldHaveNoPadding:H})}):(0,s.jsx)(D,{animationContainerRef:N,animationLoaded:B,displayData:E.display_data,onClickToComplete:K,onComplete:$,onDismiss:W,onView:q,renderSvg:z,shouldHaveNoPadding:H})})})),D=(0,n.memo)((({animationContainerRef:e,animationLoaded:t,displayData:i,onClickToComplete:n,onComplete:a,onDismiss:r,onView:l,renderSvg:c,shouldHaveNoPadding:_})=>{const m=(0,d.ZP)(),g=(0,u.B)().isRTL,{button:x,header:f,showAnimatedEducation:y=!1,showAppInstallIcons:v,showQrCodeAppInstall:b=!1,showStaticEducation:P=!1,subheader:w}=i,S=y||P;return(0,s.jsx)(p.xu,{borderStyle:"shadow",color:"default",overflow:"hidden",rounding:4,width:b?344:275,children:b?(0,s.jsx)(h,{completeExperience:a,dismissExperience:r,viewExperience:l}):(0,s.jsxs)(p.xu,{position:"relative",color:S?"light":"education",children:[(!t&&S||P)&&c&&(0,s.jsx)(p.xu,{color:"infoWeak",paddingY:_?0:3,alignSelf:"center",display:"flex",justifyContent:"center",children:c()}),(0,s.jsx)(p.xu,{ref:y?e:void 0,color:"infoWeak"}),(0,s.jsx)(p.xu,{left:g,marginEnd:1,marginTop:1,position:"absolute",right:!g,top:!0,children:(0,s.jsx)(p.hU,{accessibilityLabel:m._('Hide Checklist', 'hide the checklist of pin actions at the top of the homefeed', 'hide the checklist of pin actions at the top of the homefeed'),onClick:r,icon:"cancel",iconColor:S?"darkGray":"white",size:"sm"})}),(0,s.jsx)(p.xu,{paddingX:5,paddingY:S?4:8,children:(0,s.jsxs)(p.kC,{alignItems:"center",direction:"column",gap:{row:0,column:2},justifyContent:"center",children:[(0,s.jsx)(p.xu,{paddingX:S?2:3,children:(0,s.jsx)(p.xv,{align:"center",color:S?"dark":"inverse",weight:"bold",children:f})}),w&&(0,s.jsx)(p.xv,{align:"center",color:S?"dark":"inverse",size:"200",children:w}),v&&(0,s.jsx)(o.Z,{isNuxChecklist:!0,handleComplete:a}),!!x&&(0,s.jsx)(p.xu,{marginBottom:-3,marginTop:1,children:(0,s.jsx)(p.zx,{fullWidth:!0,color:"white",onClick:n,text:x})})]})})]})})}))},243943:(e,t,i)=>{i.d(t,{Xx:()=>_,wA:()=>u,wH:()=>h});var n=i(667294),o=i(752802),a=i(835209),r=i(407043),s=i(789707),l=i(533655),c=i(785893);const d=(0,n.createContext)(undefined),u=e=>{const{variant_set:t}=(0,a.Z)({richPinData:e.rich_metadata})||{},{dimension_metadata:i,variants:n}=t||{};if(!i||!n)return!1;const o=i.find((e=>{var t;return"color"===(null===(t=e.name)||void 0===t?void 0:t.toLowerCase())}));return!!(o&&o.name&&o.values&&1!==o.values.length)},p=({pinId:e,children:t,dimensionMetadata:i,primaryDimName:a,variants:u,primaryDimensionThumbnailImages:p})=>{const h=(0,n.useCallback)((({selectedMap:e})=>{const t=(0,l.B)({dimensionMetadata:i,primaryDimName:a,primaryDimensionThumbnailImages:p,defaultStatus:"invalid"});return(0,l.U0)({variantMap:t,selectedMap:e,variants:u}),t}),[i,a,p,u]),{logContextEvent:_}=(0,r.v)(),m=u.find((e=>e.is_preselected)),g=(0,s.a)(),{pinsState:x,setPinState:f}=g||{},y=x&&x[e],v=y?y.selectedMap:(0,l.O5)(u),b=y?y.selectedVariants:(0,l.x1)({selectedMap:v,variants:u}),P=y?y.variantMap:h({selectedMap:v}),w=!!y&&y.isSelectedByUser,S=y?y.variantUrl:(null==m?void 0:m.pin_id)||e,A=(0,n.useCallback)(((t,i=!1)=>{const n=(0,l.x1)({selectedMap:t,variants:u}),o={selectedMap:t,selectedVariants:n,variantMap:h({selectedMap:t}),isSelectedByUser:i,variantUrl:""},a=n[0].pin_id;a&&(o.variantUrl=a),f&&f(e,o)}),[h,e,f,u]),k=(0,n.useCallback)((()=>{const e=(0,l.O5)(u);A(e)}),[A,u]),E=(0,n.useCallback)((({dimensionName:e,variant:t,isAutoSelection:i=!1})=>{var n;const o=null===(n=P[e])||void 0===n?void 0:n.find((({value:e})=>e===t));try{if(!o)throw new Error(`Unable to find the selected variant ${e}: ${t}`);if(v[e]===t)return;const n={..."invalid"!==o.status?v:{},[e]:t},a=(0,l.i8)({variantMap:P,status:"invalid"});(0,l.U0)({variantMap:a,selectedMap:n,variants:u}),A(n,!i),_({event_type:10240,component:14092})}catch(a){throw k(),a}}),[P,v,u,A,k,_]),{title:T}=b[0],C=(0,o.Z)({images:(b[0].additional_images||[])[0].canonical_images}),I=(0,l.$b)(b),j=(0,n.useMemo)((()=>{const e=((null==m?void 0:m.dimensions)||{})[a],t=P[a]||[];let n=t;if(e&&t){const i=t.find((t=>t.value===e));i&&(n=[i,...t.filter((t=>t.value!==e))])}return{dimensionMetadata:i,offerSummary:I,primaryVariants:n,primaryDimName:a,selectedMap:v,isSelectedByUser:w,selectVariant:E,title:T,variants:u,image:C,variantUrl:S}}),[m,a,P,i,I,v,w,E,T,u,C,S]);return(0,c.jsx)(d.Provider,{"data-test-id":"safe-product-pins-feed-context-provider",value:j,children:t})},h=({children:e,pin:t,isEligible:i})=>{if(!i)return(0,c.jsx)(d.Provider,{"data-test-id":"undefined-context-provider",value:void 0,children:e});const{variant_set:n}=(0,a.Z)({richPinData:t.rich_metadata})||{},{dimension_metadata:o,primary_dimension_thumbnail_images:r,variants:s}=n||{},l=null==o?void 0:o.find((e=>{var t;return"color"===(null===(t=e.name)||void 0===t?void 0:t.toLowerCase())}));return(0,c.jsx)(p,{pinId:t.id,dimensionMetadata:o||[],primaryDimName:(null==l?void 0:l.name)||"",primaryDimensionThumbnailImages:r,variants:s||[],children:e})},_=()=>(0,n.useContext)(d)},789707:(e,t,i)=>{i.d(t,{A:()=>r,a:()=>s});var n=i(667294),o=i(785893);const a=(0,n.createContext)(void 0),r=({children:e})=>{const[t,i]=(0,n.useState)({}),r=(0,n.useMemo)((()=>({setPinState:(e,n)=>{i({...t,[e]:{...t[e]||{},...n}})},pinsState:t})),[t]);return(0,o.jsx)(a.Provider,{value:r,children:e})},s=()=>(0,n.useContext)(a)},820621:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(412067);async function o(e,t){const{resource_response:{data:i}}=await(async()=>{const e={name:t._('Quick Saves', 'quickSave.defaultBoardName', 'Name of the auto-created board for quicksave experience saves.'),layout:"quick_saves",privacy:"public",return_existing:!0};return n.Z.create("BoardResource",e).callCreate()})();return await(async t=>n.Z.create("RepinResource",{board_id:t,clientTrackingParams:"",description:e.description||"",is_buyable_pin:!1,is_removable:e.promoted_is_removable,link:e.link,pin_id:e.id||"",title:e.title||""}).callCreate({showError:!1}))(i.id),i}},799405:(e,t,i)=>{i.d(t,{F:()=>a,L:()=>o});var n=i(425288);const{Provider:o,useHook:a}=(0,n.Z)("IdeaPinCategoriesContext")},341866:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(229428);function o({pin:e}){const{visual_objects:t}=e||{};return(0,n.k)(t||[])}},453451:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(807592),o=i(898781),a=i(883119),r=i(785893);function s({colorOverride:e,isSoldOut:t,productDetails:i,showSalesPrice:s,type:l,weight:c="bold"}){const{max_price:d,min_price:u,price:p,standard_price:h}=i,_=!!p&&!!h&&p!==h;let m="100";"pdpPlusHeading"===l?m="400":"heading"===l&&(m="500");const g=(0,o.ZP)(),x=g._('Sold out', 'product.price.soldOut', 'Product is sold out');return(0,r.jsxs)(a.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:[t&&(0,r.jsx)(a.xu,{marginEnd:2,children:(0,r.jsx)(a.xv,{size:m,color:"subtle",weight:"bold",children:x})}),(!!p||!!u||!!d)&&(0,r.jsx)(a.xv,{color:e||(_?"shopping":"default"),size:m,weight:c,children:(0,r.jsx)("span",{children:(0,n.Z)(i)})}),_&&!s&&(0,r.jsx)(a.xu,{marginStart:1,children:(0,r.jsx)(a.xv,{color:"subtle",size:m,weight:"pdpPlusHeading"===l?"normal":c,children:(0,r.jsx)("span",{style:{textDecoration:"line-through"},children:h})})})]})}},104389:(e,t,i)=>{i.d(t,{Z:()=>d});var n=i(831539),o=i(869503),a=i(474236),r=i(883119),s=i(785893);const l=({count:e,countFormat:t,ratingValue:i,shippingInfo:l})=>(0,s.jsxs)(r.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[(0,s.jsx)(n.Z,{count:e,countFormat:t,rating:i,textSize:"200"}),(0,s.jsx)(r.xu,{marginTop:(0,a.Z)({count:e,rating:i})?1:0,children:(0,s.jsx)(o.Z,{customStyles:{color:"subtle",size:"200"},freeShippingPrice:null==l?void 0:l.free_shipping_price,freeShippingValue:null==l?void 0:l.free_shipping_value})})]}),c=({count:e,countType:t,countFormat:i,hideSeparationDot:l,bracket:c,ratingValue:d,shippingInfo:u})=>(0,s.jsxs)(r.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{rowGap:8}},display:"flex",marginTop:1,wrap:!0,children:[(0,s.jsx)(n.Z,{bracket:c,count:e,countFormat:i,countType:t,rating:d,textSize:"300"}),(0,s.jsx)(r.xu,{marginStart:(0,a.Z)({count:e,rating:d})&&l?2:0,children:(0,s.jsx)(o.Z,{customStyles:{color:"default",size:"300"},showPrevDot:(0,a.Z)({count:e,rating:d})&&!l,freeShippingPrice:null==u?void 0:u.free_shipping_price,freeShippingValue:null==u?void 0:u.free_shipping_value})})]});function d(e){return e.isGridView?(0,s.jsx)(l,{...e}):(0,s.jsx)(c,{...e})}},296005:(e,t,i)=>{i.d(t,{_T:()=>h,eL:()=>p});var n=i(667294),o=i(835209),a=i(954959),r=i(840003),s=i(112690),l=i(533655),c=i(785893);const d=(0,n.createContext)(undefined),u=({children:e,dimensionMetadata:t,isEligibleForPdpPlus:i,primaryDimName:o,variants:a,primaryDimensionThumbnailImages:r})=>{const u=(0,n.useCallback)((({selectedMap:e})=>{const i=(0,l.B)({dimensionMetadata:t,primaryDimName:o,primaryDimensionThumbnailImages:r,defaultStatus:"invalid"});return(0,l.U0)({variantMap:i,selectedMap:e,variants:a}),i}),[t,o,r,a]),p=(0,s.Z)(),[h,_]=(0,n.useState)((0,l.O5)(a)),[m,g]=(0,n.useState)((0,l.x1)({selectedMap:h,variants:a})),[x,f]=(0,n.useState)(u({selectedMap:h})),[y,v]=(0,n.useState)(),[b,P]=(0,n.useState)(!1),w=(0,n.useCallback)((e=>{const t=(0,l.x1)({selectedMap:e,variants:a});_(e),g(t)}),[a]),S=(0,n.useCallback)((()=>{const e=(0,l.O5)(a),t=u({selectedMap:e});f(t),w(e)}),[u,w,a]),A=(0,n.useCallback)((({dimensionName:e,variant:t,isAutoSelection:n})=>{var o;const r=null===(o=x[e])||void 0===o?void 0:o.find((({value:e})=>e===t));try{if(!r)throw new Error(`Unable to find the selected variant ${e}: ${t}`);if(n||P(!0),h&&h[e]===t)return;let o={};if("invalid"===r.status&&i){const i={[e]:t},n=(0,l.x1)({selectedMap:i,variants:a}),r=n.find((e=>{var t;return null===(t=e.offer_summary)||void 0===t?void 0:t.in_stock}))||n[0];(0,l.oX)({selectedMap:o,dimensions:r.dimensions})}else if("outOfStock"===r.status&&i){const i={[e]:t},n=(0,l.x1)({selectedMap:i,variants:a}),r=n.find((e=>{var t;return null===(t=e.offer_summary)||void 0===t?void 0:t.in_stock}))||n.find((i=>{var n;const o=(null===(n=i.dimensions)||void 0===n?void 0:n[e])===t,a=Object.keys(h).filter((t=>t!==e)).every((e=>{var t;return(null===(t=i.dimensions)||void 0===t?void 0:t[e])===h[e]}));return o&&a})),s=null==r?void 0:r.dimensions;(0,l.oX)({selectedMap:o,dimensions:s})}else o="invalid"!==r.status||i?{...h,[e]:t}:{[e]:t};const g=(0,l.i8)({variantMap:x,status:"invalid"});if((0,l.U0)({variantMap:g,selectedMap:o,variants:a}),!n){var s,c,d,u,_,m;const i=null!==(s=null===(c=x[e])||void 0===c?void 0:c.filter((({status:e})=>"invalid"!==e)).length)&&void 0!==s?s:0,n=null!==(d=null===(u=x[e])||void 0===u?void 0:u.length)&&void 0!==d?d:0,o=!(null===(_=x[e])||void 0===_||null===(m=_.find((({value:e})=>t===e)))||void 0===m||!m.image);p({event_type:101,view_type:3,view_parameter:144,component:13879,element:12513,aux_data:{commerce_data:JSON.stringify({dimension_name:e,dimension_value:t,has_variant_image_thumbnail:o?1:0,valid_dimension_option_count:i,total_dimension_option_count:n})}})}w(o),f(g)}catch(g){throw S(),g}}),[x,h,a,p,S,w,i]);(0,n.useEffect)((()=>{S()}),[S]),(0,n.useEffect)((()=>{const e=(0,l.A6)(m.flatMap((e=>e.additional_images||[])));y&&(0,l.xD)(y,e)||e&&e.length>0&&v(e)}),[y,m]),(0,n.useEffect)((()=>{for(const t in x){var e;const i=null===(e=x[t])||void 0===e?void 0:e.filter((e=>"invalid"!==e.status));1===(null==i?void 0:i.length)&&A({dimensionName:t,variant:i[0].value,isAutoSelection:!0})}}),[A,x]),(0,n.useEffect)((()=>{if(Object.keys(h).length===t.length&&1===m.length){const{item_id:e,item_set_id:t,offer_summary:i}=m[0];p({event_type:101,view_type:3,view_parameter:144,component:143,aux_data:{commerce_data:JSON.stringify({item_id:e,item_set_id:t,is_variant_oos:!(null!=i&&i.in_stock),price:null==i?void 0:i.price})}})}}),[t,p,h,m]);const k=(0,l.$b)(m),E=1!==m.length?null:m[0],{title:T,links:C=[]}=E||{},I=(0,n.useMemo)((()=>{var e;const i=x[o]||[],n=Object.entries(x).filter((([e])=>e!==o))||[],r=t.filter((e=>e.dimension_type!==l.Dv.VISUAL)).map((e=>e.name||"")).filter((e=>!!e)),s=(null===(e=t.find((e=>e.dimension_type===l.Dv.VISUAL)))||void 0===e?void 0:e.name)||"",c=(0,l.Yr)({visualVariants:x[s]||[],visualDimName:s,variants:a});return{dimensionMetadata:t,images:y,isSelectedByUser:b,link:C[0],offerSummary:k,primaryDimName:o,primarySelectedVariant:E,primaryVariants:i,secondaryVariantTuples:n,selectedMap:h,selectVariant:A,title:T,utilityDimNames:r,variants:a,visualDimName:s,visualVariants:c}}),[t,y,b,C,k,o,h,E,A,T,x,a]);return(0,c.jsx)(d.Provider,{value:I,children:e})},p=({children:e,pin:t})=>{const{variant_set:i}=(0,o.Z)({richPinData:t.rich_metadata})||{},{dimension_metadata:n,primary_dimension:s,primary_dimension_thumbnail_images:l,variants:p}=i||{},h=(0,r.Z)(t.is_eligible_for_pdp_plus),_=(0,a.Z)({isEligibleForPdp:t.is_eligible_for_pdp||h,isStaleProduct:t.is_stale_product,isOutOfStockProduct:t.is_oos_product});return n&&s&&p&&_?(0,c.jsx)(u,{dimensionMetadata:n,isEligibleForPdpPlus:h,primaryDimName:s,primaryDimensionThumbnailImages:l,variants:p,children:e}):(0,c.jsxs)(d.Provider,{value:void 0,children:[e," "]})},h=()=>(0,n.useContext)(d)},533655:(e,t,i)=>{i.d(t,{$b:()=>l,A6:()=>d,B:()=>o,Dv:()=>m,O5:()=>u,U0:()=>s,Yr:()=>h,i8:()=>a,oX:()=>_,x1:()=>p,xD:()=>c});var n=i(752802);const o=({defaultStatus:e="available",dimensionMetadata:t,primaryDimName:i,primaryDimensionThumbnailImages:o})=>{const a={};for(const{values:n,name:r}of t)r&&n&&(a[r]=n.map((t=>({status:e,value:t}))));return(a[i]||[]).forEach(((e,t)=>{const i=o&&o[t.toString()];i&&(e.image=(0,n.Z)({images:i.canonical_images}))})),a},a=({status:e,variantMap:t})=>{const i={};for(const o in t){var n;i[o]=null===(n=t[o])||void 0===n?void 0:n.map((t=>({...t,status:e})))}return i},r=({dimensionName:e,variants:t,selectedTuple:i,variantStatuses:n})=>{const o=i.filter((([t])=>t!==e));for(const{dimensions:a={},offer_summary:r={}}of t){if(!o.every((([e,t])=>a[e]===t)))continue;const t=n.find((({value:t})=>t===a[e]));t&&(t.status=r.in_stock||"available"===t.status?"available":"outOfStock")}},s=({variants:e,selectedMap:t={},variantMap:i})=>{const n=Object.entries(t);for(const o in i){const t=i[o];t&&r({dimensionName:o,variants:e,selectedTuple:n,variantStatuses:t})}},l=e=>{let t,i,n,o,a=!1;const{percentage_off:r,standard_price:s}=1===e.length&&e[0].offer_summary||{};for(const l of e){const{max_price:e,max_price_val:r,min_price:s,min_price_val:c,price:d,price_val:u,price_in_micro_currency:p,in_stock:h}=l.offer_summary||{},_=u||Number(p);"number"==typeof c&&Number.isFinite(c)&&"number"==typeof r&&Number.isFinite(r)&&((void 0===i||co)&&(o=r,n=e),a=a||!!h),Number.isFinite(_)&&((null==i||_o)&&(o=_,n=d),a=a||!!h)}if(n&&t)return t===n?{in_stock:a,percentage_off:r,price:t,standard_price:s}:{in_stock:a,max_price:n,min_price:t,percentage_off:r,price:t,standard_price:s}},c=(e,t)=>e.length===t.length&&e.every(((e,i)=>{var o,a;return(null===(o=(0,n.Z)({images:e.canonical_images}))||void 0===o?void 0:o.url)===(null===(a=(0,n.Z)({images:t[i].canonical_images}))||void 0===a?void 0:a.url)})),d=e=>{const t=new Set;return e.filter((e=>{const{url:i}=(0,n.Z)({images:e.canonical_images})||{};return!!i&&(!t.has(i)&&(t.add(i),!0))}))||[]},u=e=>{var t;const i={...(null===(t=e.find((e=>!!e.is_preselected)))||void 0===t?void 0:t.dimensions)||{}};for(const n in i)i[n]||delete i[n];return i},p=({selectedMap:e,variants:t})=>t.filter((({dimensions:t={}})=>{for(const i in e){const n=e[i];if(t[i]!==n)return!1}return!0})),h=({visualVariants:e,visualDimName:t,variants:i})=>{const n={};return i.forEach((e=>{var i,o;const a=null===(i=e.dimensions)||void 0===i?void 0:i[t],r=null!==(o=e.offer_summary)&&void 0!==o&&o.in_stock?"available":"outOfStock";a&&("available"===r||!n[a]&&a)&&(n[a]=r)})),e.map((e=>({...e,status:n[e.value]})))},_=({selectedMap:e,dimensions:t})=>{t&&Object.keys(t).forEach((i=>{null!==t[i]&&void 0!==t[i]&&(e[i]=t[i])}))},m={VISUAL:1,UTILITY_GRID:2,UTILITY_DROPDOWN:3}},368271:(e,t,i)=>{i.d(t,{Z:()=>c});var n=i(667294),o=i(883119),a=i(785893);function r({buttonText:e,icon:t,onClick:i}){return(0,a.jsx)(o.iP,{onTap:i,rounding:"pill",accessibilityLabel:e,children:(0,a.jsx)(o.xu,{display:"flex",justifyContent:"center",alignContent:"center",color:"secondary",rounding:"pill",minHeight:48,children:(0,a.jsxs)(o.xu,{display:"flex",justifyContent:"center",alignItems:"center",rounding:"pill",minHeight:48,paddingX:4,children:[(0,a.jsx)(o.xu,{marginEnd:3,children:(0,a.jsx)(o.JO,{accessibilityLabel:"",icon:t,color:"default"})}),(0,a.jsx)(o.xv,{align:"center",color:"default",weight:"bold",children:e})]})})})}var s=i(898781),l=i(407043);function c({entryPoint:e,imageSignature:t,onClick:i,pinId:o,viewParameter:c}){const{logContextEvent:d}=(0,l.v)(),u=(0,s.ZP)();return(0,n.useEffect)((()=>{d({event_type:120,element:12080,view_type:3,view_parameter:c,aux_data:{image_signature:t,entry_point_source:e,...o?{pin_id:o}:{}}})}),[]),(0,a.jsx)(r,{buttonText:u._('Tag products', 'closeup.shopTheLook.tagProducts', 'button that will lead to pin builder where user can tag products'),icon:"tag",onClick:i})}},186986:(e,t,i)=>{function n(e){return"story"===e.type}i.d(t,{Z:()=>n})},206663:(e,t,i)=>{function n(e){if("pin_tag"===e.type){const{x_percent:t,y_percent:i}=e;if(t>0&&t<=100&&i>0&&i<=100)return!0}return!1}i.d(t,{Z:()=>n})},372169:(e,t,i)=>{i.d(t,{Je:()=>n,dA:()=>a,iO:()=>r,jh:()=>s,s_:()=>o,wq:()=>l});const n=350,o=134,a=16,r=2,s=236,l=20},992061:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(883119),o=i(785893);function a({hovered:e,rounding:t}){return(0,o.jsx)(n.xu,{display:e?"block":"none",height:"100%",width:"100%",left:!0,top:!0,position:"fixed",zIndex:new n.Ry(1),color:"transparentDarkGray",rounding:t,opacity:.2})}},167137:(e,t,i)=>{function n(){return["ideapinproductcategorytag.id","ideapinproductcategorytag.type","ideapinproductcategorytag.category_id","ideapinproductcategorytag.label","ideapinproductcategorytag.page_index","ideapinproductcategorytag.pins()","pin.id","pin.type","pin.images[236x,orig]"]}i.d(t,{Z:()=>n})},963e3:(e,t,i)=>{i.d(t,{K:()=>c,Z:()=>d});var n=i(96939),o=i(116303),a=i(149230),r=i(444445),s=i(883119),l=i(785893);const c=[81];function d({data:e}){const{action:t={},container_type:i,objects:c,title:d={}}=e||{},{format:u}=d,{text:p,url:h,user:_={}}=t,{image_large_url:m,full_name:g}=_,x=c.find((e=>"pin"===e.type))||{},{images:f}=x;let y=null;const v=(0,a.Z)({url:h})?"nofollow":"none";switch(i){case 81:y=(0,l.jsxs)(s.kC,{direction:"column",gap:{row:0,column:2},children:[(0,l.jsxs)(s.xu,{position:"relative",children:[(0,l.jsx)(n.Z,{coverImages:f,height:r.yF,text:u,textType:"text",url:h}),_.imageUrl&&(0,l.jsx)(s.xu,{position:"absolute",top:!0,left:!0,padding:2,children:(0,l.jsx)(o.Z,{outline:!0,size:"md",src:m,name:g||""})})]}),(0,l.jsx)(s.zx,{role:"link",rel:v,fullWidth:!0,size:"lg",text:p,href:h})]});break;default:return y}return y}},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})},840003:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(773285);const o=e=>{const{checkExperiment:t}=(0,n.F)();return!!e&&t("web_pdpplus").anyEnabled}},247371:(e,t,i)=>{i.r(t),i.d(t,{SendButton:()=>u,default:()=>p});var n=i(790904),o=i(215292),a=i(883119),r=i(785893);const s={boxShadow:"0 0 0 4px rgba(0, 132, 255, 0.5)",outline:0};function l({accessibilityLabel:e,buttonColor:t,buttonText:i,handleClick:n,icon:l}){return(0,r.jsx)(o.q,{children:({active:o,focused:c,hovered:d,onBlur:u,onFocus:p,onMouseDown:h,onMouseEnter:_,onMouseLeave:m,onMouseUp:g})=>{let x={borderRadius:24};if(d){const e="primary"===t?"rgb(216,0,33)":"rgb(226, 226, 226)";x={...x,backgroundColor:e}}if(o){const e="primary"===t?"rgb(207,0,31)":"rgb(218, 218, 218)";x={...x,backgroundColor:e}}return c&&(x={...x,...s}),(0,r.jsx)("button",{"aria-label":e,style:{display:"block",border:"none",padding:0,cursor:"pointer",background:"transparent",outline:"none"},onBlur:u,onFocus:p,onMouseDown:h,onMouseEnter:_,onMouseLeave:m,onMouseUp:g,onClick:n,children:(0,r.jsx)(a.xu,{color:t,rounding:2,dangerouslySetInlineStyle:{__style:x},children:(0,r.jsxs)(a.xu,{display:"flex",minHeight:40,dangerouslySetInlineStyle:{__style:{padding:"10px 14px"}},children:["share"===l&&(0,r.jsxs)(a.xu,{children:[(0,r.jsx)(a.JO,{accessibilityLabel:"",icon:"share",color:"default",size:18}),(0,r.jsx)(a.xu,{paddingX:3})]}),(0,r.jsx)(a.xv,{align:"center",color:"primary"===t?"light":"default",weight:"bold",children:i})]})})})}})}var c=i(2396),d=i(898781);const u=({buttonType:e,iconColor:t,handleSendShareFlyoutButtonClick:i,iconOnly:o,buttonText:a})=>{const s=(0,d.ZP)(),c="icon"===e,u={accessibilityLabel:s._('Send', 'Accessible label for button to send this pin', 'Accessible label for button to send this pin'),handleClick:i};return c?(0,r.jsx)(n.Z,{...u,testId:"closeup-share-button",icon:"share",iconOnly:o,iconColor:t,buttonText:a}):(0,r.jsx)(l,{...u,icon:"share",buttonColor:"secondary",buttonText:s._('Send', 'Text for button to send this pin', 'Text for button to send this pin')})},p=(0,c.Z)(u)},783331:(e,t,i)=>{function n(e){const{templateType:t,basics:i}=e||{},{listBlocks:n}=i||{};return 1===t?"recipe":2===t?"diy":n&&n.length>0?"blank":"none"}i.d(t,{Z:()=>n})},155582:(e,t,i)=>{i.d(t,{Z:()=>A});var n=i(667294),o=i(412067);var a=i(512465),r=i(898781),s=i(19121),l=i(349700),c=i(129274),d=i(966113),u=i(883119),p=i(785893);const h=d.K_+"?source=block_dialogue";function _(e){return e.map((({full_name:e})=>e))}const m=function({users:e,onClose:t,onSubmit:i}){const n=(0,r.ZP)(),o=(0,p.jsx)("strong",{children:(0,a.Z)(_(e),n)},"userlist");return(0,p.jsxs)("form",{method:"post",children:[(0,p.jsxs)(u.xu,{padding:8,children:[(0,p.jsx)(u.xv,{children:(0,l.nk)(n._('If you block {{ users }}, you won\u2019t be able to follow each other or interact with each other\u2019s Pins.', 'description of blocking users', 'description of blocking users'),{users:o})}),(0,p.jsx)("br",{}),(0,p.jsx)("br",{}),(0,p.jsx)(u.xv,{children:(0,p.jsx)(u.rU,{display:"inlineBlock",href:h,underline:"hover",children:n._('Learn more', 'link to learn more about blocking', 'link to learn more about blocking')})})]}),(0,p.jsx)(u.xu,{padding:2,children:(0,p.jsxs)(u.kC,{alignItems:"stretch",justifyContent:"end",gap:{row:1,column:0},children:[(0,p.jsx)(u.zx,{fullWidth:!0,onClick:t,text:n._('Cancel', 'UserBlock.Cancel', 'cancel form')}),(0,p.jsx)(u.zx,{fullWidth:!0,color:"red",onClick:()=>{i()},text:n._('Block', 'UserBlock.Submit', 'submit form to block users'),type:"submit"})]})})]})};var g=i(174798);const x=({flagReason:e,flagType:t,onClose:i,selectedReason:h,status:x,users:f})=>{const y=(0,r.ZP)(),[v,b]=(0,n.useState)({}),{setModalTitle:P,setStatus:w}=(0,c.d)(),S=(0,s.Z)(),{id:A}=S.isAuth?S:{},k=f.filter((({id:e})=>v[e])),E=k.length>0;(0,n.useEffect)((()=>{(()=>{let e;[g.qb.SUBMITTED,g.qb.PROCESSING].includes(x)?e=y.ngettext('Block this person?', 'Block these people?', k.length, 'BlockAndUnfollow', 'Confirmation text when blocking users (plural)'):t===g.Vm.CONVERSATION&&(e=x===g.qb.COMPLETED?(0,l.nk)(y._('You\u2019ve blocked {{usernames}}', 'BlockAndUnfollow', 'title of modal after user has been blocked'),{usernames:(0,a.Z)(_(k),y).join("")}).join(""):y._('Thanks for your report', 'BlockAndUnfollow', 'title at end of report flow')),P(e)})()}),[x]),(0,n.useEffect)((()=>{w(E?g.qb.SELECTED:g.qb.STARTED)}),[v]);const T=f.filter((({id:e})=>e!==A)),C=[g.qb.STARTED,g.qb.COMPLETED].includes(x);return(0,p.jsx)("form",{method:"post",children:[g.qb.SUBMITTED,g.qb.PROCESSING].includes(x)?(0,p.jsx)(m,{onClose:()=>{w(g.qb.SELECTED)},onSubmit:()=>(w(g.qb.PROCESSING),Promise.all(Object.keys(v).filter((e=>v[e])).map((e=>function(e){return o.Z.create("UserBlockResource",{blocked_user_id:e}).callCreate().then((()=>{}),(()=>{}))}(e)))).finally((()=>{w(g.qb.COMPLETED)}))),users:k}):(0,p.jsxs)(u.xu,{padding:8,children:[(0,p.jsx)(u.xu,{children:x!==g.qb.COMPLETED?(()=>{let t;"harassingOther"===h?t=(0,l.nk)(y._('We remove content that identifies and attacks private people because we consider it to be bullying. We also don\u2019t allow content that reveal someone\u2019s personally identifiable information. Learn more about our {{ communityGuidelines }}.', 'confirmation message after reporting harassment', 'confirmation message after reporting harassment'),{communityGuidelines:(0,p.jsx)(u.rU,{display:"inlineBlock",href:d.Ms,underline:"hover",children:y._('Community Guidelines', 'link to community guidelines for harassment', 'link to community guidelines for harassment')},"policyLink")}):"harassingPublicFigure"===h?t=y._('Please note that we won\u2019t necessarily take down stuff that attacks public figures.', 'message shown after reporting harrassment', 'message shown after reporting harrassment'):"harassingFriend"===h?t=y._('Before we can review this Pin, we need to hear from the person who\u2019s being harassed. Please have your friend report this Pin to us.', 'message shown after reporting harrassment', 'message shown after reporting harrassment'):["spam","policies","hurtfulContent"].includes(e)&&(t=y._('We\u2019ll take a look at this Pin and delete it if it goes against our policies.', 'confirmation message after reporting a pin', 'confirmation message after reporting a pin'));const i=y.ngettext('You can also block this person.', 'You can also block these people.', T.length, 'description to block people', 'description to block people');return(0,p.jsxs)(n.Fragment,{children:[t&&(0,p.jsx)(u.xu,{marginBottom:8,children:(0,p.jsx)(u.xv,{children:t})}),(0,p.jsx)(u.xu,{marginBottom:8,children:(0,p.jsx)(u.xv,{children:i})}),(0,p.jsx)(u.xu,{marginBottom:8,children:T.map((({id:e,full_name:t})=>(0,p.jsx)(u.XZ,{id:"blockPinner"+e,checked:Boolean(v[e]),label:(0,l.nk)(y._('Block {{ pinnerName }}', 'BlockAndUnfollow', 'form option to block a pinner'),{pinnerName:t}).join(""),onChange:({checked:t})=>{b({...v,[e]:t})},helperText:y._('You won\u2019t be able to send each other messages or interact with each other\u2019s Pins.', 'BlockAndUnfollow', 'explanation of blocking a user')},e)))})]})})():E&&(0,p.jsx)(u.xu,{marginBottom:8,children:(0,p.jsx)(u.xv,{children:y._('You won\u2019t be able to follow each other or interact with each other\u2019s pins.', 'BlockAndUnfollow', 'message describing what blocking means')},"blockingConfirmation")})}),(0,p.jsxs)(u.xu,{children:[x!==g.qb.COMPLETED&&(0,p.jsx)(u.xu,{marginBottom:8,children:(0,p.jsx)(u.xv,{size:"100",children:(0,l.nk)(y._('Learn more about {{ linkToTopic }}', 'BlockAndUnfollow', 'footer link to learn more about a topic'),{linkToTopic:(0,p.jsx)(u.rU,{display:"inlineBlock",href:d.K_,underline:"hover",children:y._('blocking', 'BlockAndUnfollow', 'footer link to learn more about blocking')},"policyLink")})})}),(0,p.jsx)(u.xu,{children:(0,p.jsx)(u.zx,{fullWidth:!0,color:"red",onClick:C?i:()=>{b(v),w(g.qb.SUBMITTED)},text:C?y._('Done', 'Block.Complete', 'confirm reporting flow is done & close modal'):y._('Block', 'BlockAndUnfollow', 'submit users to block')})})]})]})})};function f({flagOptions:e,flow:t,handleClose:i,handleNext:n,selectedReason:o,showPrimaryAction:a,submitButton:s}){const l=(0,r.ZP)();if(t===g.Zw.REPORT){var c;if(g.qb.PROCESSING===status||null!==(c=e.getFlagOption(o))&&void 0!==c&&c.isTerminalReason)return s;if(a)return(0,p.jsx)(u.zx,{fullWidth:!0,color:"red",disabled:void 0===o,onClick:n,text:l._('Next', 'go to the next view in the report flow', 'go to the next view in the report flow')})}else if(t===g.Zw.END)return(0,p.jsx)(u.zx,{fullWidth:!0,color:"red",onClick:i,text:l._('Got it', 'confirm reporting flow is done & close modal', 'confirm reporting flow is done & close modal')});return null}var y=i(121151);function v({flow:e,flagReason:t}){const i=(0,r.ZP)();if(e===g.Zw.REPORT){if("attacks"===t)return(0,p.jsx)(u.xv,{size:"100",children:(0,l.nk)(i._('Learn more about our {{ linkToTopic }}', 'footer link to learn more about community guidelines', 'footer link to learn more about community guidelines'),{linkToTopic:(0,p.jsx)(u.rU,{target:"blank",href:d.Ms,children:(0,p.jsx)(u.xv,{inline:!0,color:"error",size:"100",weight:"bold",children:i._('Community Guidelines', 'name of footer link to community guidelines', 'name of footer link to community guidelines')})},"policyLink")})});if("policies"===t)return(0,p.jsxs)("p",{children:[(0,p.jsx)(u.xv,{size:"100",children:(0,l.nk)(i._('Learn about {{ linkToTopic }}', 'footer link to learn more about a topic', 'footer link to learn more about a topic'),{linkToTopic:(0,p.jsx)(u.rU,{target:"blank",href:d.Ms+"#sub-section-adult-content",children:(0,p.jsx)(u.xv,{inline:!0,color:"error",size:"100",children:i._('our nudity policies', 'name of footer link to policy', 'name of footer link to policy')})},"policyLink")})}),(0,p.jsx)(u.xv,{size:"100",children:(0,l.nk)(i._('Learn about {{ linkToTopic }}', 'footer link to learn more about a topic', 'footer link to learn more about a topic'),{linkToTopic:(0,p.jsx)(u.rU,{target:"blank",href:d.Ms+"#sub-section-dangerous-goods-and-activities",children:(0,p.jsx)(u.xv,{inline:!0,color:"error",size:"100",children:i._('our policies on hurtful content', 'name of footer link to policy', 'name of footer link to policy')})},"policyLink")})}),(0,p.jsx)(u.xv,{size:"100",children:(0,l.nk)(i._('Learn about {{ linkToTopic }}', 'footer link to learn more about a topic', 'footer link to learn more about a topic'),{linkToTopic:(0,p.jsx)(u.rU,{target:"blank",href:d.Ms+"#sub-section-violence",children:(0,p.jsx)(u.xv,{inline:!0,color:"error",size:"100",children:i._('our policies on gore', 'name of footer link to policy', 'name of footer link to policy')})},"policyLink")})})]});if("spam"===t||void 0===t)return(0,p.jsx)(u.xv,{size:"100",children:(0,l.nk)(i._('Learn about {{ linkToTopic }}', 'footer link to learn more about a topic', 'footer link to learn more about a topic'),{linkToTopic:(0,p.jsx)(u.rU,{target:"blank",href:d.Ms,children:(0,p.jsx)(u.xv,{inline:!0,color:"error",size:"100",weight:"bold",children:"spam"===t?i._('our spam policies', 'name of footer link to policy', 'name of footer link to policy'):i._('our policies', 'name of footer link to policy', 'name of footer link to policy')})},"policyLink")})})}return null}function b({arrayOfData:e,handleSelectReason:t,selectedReason:i}){const n=(0,r.ZP)();return(0,p.jsx)(u.xu,{padding:2,children:(0,p.jsx)(u.FX,{id:"flag-option-radio-group",legend:n._('Flag legends', 'flag_legend', 'Flag legends'),legendDisplay:"hidden",children:e.map(((e,n)=>{const{condition:o}=e;return void 0===o||o?function(e,t,i,n){const{text:o,value:a,category:r}=e;return(0,p.jsx)(u.xu,{paddingY:2,children:(0,p.jsx)(u.FX.RadioButton,{checked:i===a,id:a,onChange:({checked:e})=>t(e,a,r),name:"flagReason",value:a,label:o})},n)}(e,t,i,n):null}))})})}class P{constructor(e){this.config=e,this.configMap=function(e){const t={};for(const i in e)e[i].forEach((e=>{const n=e.value;if(Object.prototype.hasOwnProperty.call(t,n))throw new Error("Duplicate key in FlagOptions config: "+n);t[n]={...e,parentOption:i}}));return t}(e)}getFlagOption(e){return e?this.configMap[e]:null}renderFlagLabels(e){const{flagReason:t,onSelectReason:i,selectedReason:n}=e;return(0,p.jsx)(b,{arrayOfData:this.config[t],handleSelectReason:i,selectedReason:n})}}function w(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class S extends n.Component{constructor(...e){super(...e),w(this,"flagOptions",new P(this.props.flagOptionsConfig)),w(this,"renderContent",(()=>{const{content:e,flow:t,onSelectReason:i,selectedReason:n}=this.props;return e||(t===g.Zw.REPORT?this.flagOptions.renderFlagLabels({flagReason:this.props.flagReason||"__default",onSelectReason:i,selectedReason:n}):t===g.Zw.END?(0,p.jsx)(u.xv,{children:this.props.i18n._('We\u2019ll use your feedback to make your Pinterest experience better.', 'final message in reporting flow', 'final message in reporting flow')}):void 0)}))}componentDidUpdate(e){const{flow:t,onCompletedReport:i,onCompletedBlock:n}=e;if(this.props.flow!==t)switch(t){case g.Zw.REPORT:i&&i();break;case g.Zw.BLOCK:n&&n()}}render(){const{accessibilityModalLabel:e,flagType:t,flow:i,status:n,modalTitle:o,onClose:a,selectedReason:r,submitButton:s,flagReason:l,showPrimaryAction:c,users:d}=this.props;return(0,p.jsx)(y.ZP,{accessibilityModalLabel:e,heading:o,onDismiss:a,size:"md",footer:i!==g.Zw.BLOCK?(0,p.jsxs)(u.kC,{alignItems:"center",justifyContent:"start",children:[(0,p.jsx)(u.xu,{flex:"grow",children:(0,p.jsx)(v,{flagReason:l,flow:i})}),(0,p.jsx)(u.xu,{padding:1,children:i===g.Zw.REPORT?(0,p.jsx)(u.zx,{fullWidth:!0,onClick:void 0===l?this.props.onClose:()=>{var e,t;null===(e=(t=this.props).onRevert)||void 0===e||e.call(t)},text:void 0===l?this.props.i18n._('Cancel', 'cancel form', 'cancel form'):this.props.i18n._('Back', 'previous step in a form', 'previous step in a form')}):null}),(0,p.jsx)(u.xu,{padding:1,children:(0,p.jsx)(f,{flagOptions:this.flagOptions,flow:i,handleClose:this.props.onClose,handleNext:()=>{var e,t;null===(e=(t=this.props).onNext)||void 0===e||e.call(t)},selectedReason:r,showPrimaryAction:!!c,submitButton:s})})]}):void 0,children:(0,p.jsx)(u.xu,{children:i===g.Zw.BLOCK?(0,p.jsx)(x,{flagReason:l,flagType:t,onClose:a,selectedReason:r,status:n,users:d}):this.renderContent()})})}}function A(e){const t=(0,r.ZP)();return(0,p.jsx)(S,{...e,i18n:t})}},129274:(e,t,i)=>{i.d(t,{N:()=>c,d:()=>l});var n=i(667294),o=i(425288),a=i(174798),r=i(785893);const{Provider:s,useHook:l}=(0,o.Z)("Flag"),c=({children:e})=>{const[t,i]=(0,n.useState)(),[o,l]=(0,n.useState)(a.Zw.REPORT),[c,d]=(0,n.useState)(a.qb.STARTED),[u,p]=(0,n.useState)(),[h,_]=(0,n.useState)(),m=(0,n.useMemo)((()=>({flagReason:h,flow:o,status:c,selectedReason:u,modalTitle:t,setFlagReason:_,setFlow:l,setModalTitle:i,setStatus:d,setSelectedReason:p})),[t,o,c,u,h]);return(0,r.jsx)(s,{value:m,children:e})}},428837:(e,t,i)=>{i.d(t,{Z:()=>m});var n=i(667294),o=i(702664),a=i(794230),r=i(155582),s=i(898781),l=i(966113),c=i(600147),d=i(129274),u=i(883119),p=i(174798),h=i(785893);const _="policies";function m({aggregatedPinDataId:e,didItDataId:t,onClose:i,pinId:m,username:g,users:x}){const f=(0,s.ZP)(),[y,v]=(0,n.useState)([]),[b,P]=(0,n.useState)(),[w,S]=(0,n.useState)(),A=(0,o.useDispatch)(),{flow:k,modalTitle:E,selectedReason:T,setFlow:C,setModalTitle:I,setSelectedReason:j,setStatus:R,status:D}=(0,d.d)();(0,n.useEffect)((()=>{I((()=>{if(k===p.Zw.REPORT)switch(w){case"attacks":return f._('What\'s going on?', 'title for report content flow', 'title for report content flow');case _:return f._('What\'s wrong with this Try?', 'title for report content flow', 'title for report content flow');case"IP":return f._('Intellectual Property', 'title for report content flow for IP complaints', 'title for report content flow for IP complaints');default:return f._('What\'s wrong with this Try?', 'title for the report content flow', 'title for the report content flow')}else if(k===p.Zw.END&&y.includes("notUseful"))return f._('Thanks for letting us know!', 'title at end of report flow when content is not useful', 'title at end of report flow when content is not useful');return""})())}),[y,k,w]);const z=(0,h.jsx)(u.zx,{fullWidth:!0,color:"red",onClick:()=>{if(R(p.qb.PROCESSING),"ignoreThisPin"===T)C(p.Zw.BLOCK),R(p.qb.STARTED);else{const i=[...y,T];v(i),((e,t,i,n,o)=>{A((0,c.Th)(e,t,i,n,o))})(e,i,t,b,g),y.includes("notUseful")?(C(p.Zw.END),R(p.qb.STARTED)):(C(p.Zw.BLOCK),R(p.qb.STARTED))}},text:f._('Report content', 'button to report content', 'button to report content')});return(0,h.jsx)(r.Z,{accessibilityModalLabel:f._('Report conversation', 'Pin.DidIt.Report', 'Accessibility label for report pin did it'),content:"IP"===w?(0,h.jsx)(u.xu,{mdDisplay:"flex",justifyContent:"center",children:(0,h.jsxs)(u.xu,{mdColumn:9,children:[(0,h.jsx)(u.xu,{padding:2,marginStart:2,children:(0,h.jsx)(u.xv,{align:"center",color:"default",weight:"bold",children:f._('If you\u2019ve found content that you believe violates your intellectual property, you can fill out our copyright complaint form.', 'explanation of IP complaint process', 'explanation of IP complaint process')})}),(0,h.jsx)(u.xu,{padding:2,children:(0,h.jsx)(u.zx,{role:"link",href:(0,a.Z)(l.GE,{pin_id:m,user_did_it_id:t}),color:"red",text:f._('File a report', 'link to DMCA form', 'link to DMCA form'),target:"blank"})})]})}):null,flagType:p.Vm.DID_IT,flow:k,modalTitle:E,onClose:i(!0),onNext:()=>{S(T),v([...y,T]),j()},onRevert:()=>{const e=y[y.length-1],t=y.slice(0,-1);j(e),S(t[t.length-1]),v(t),P(),R(void 0===e?p.qb.STARTED:p.qb.SELECTED)},onSelectReason:(e,t,i)=>{e&&(j(t),R(p.qb.SELECTED),P(i))},showPrimaryAction:"IP"!==w,submitButton:z,status:D,selectedReason:T,flagReason:w,users:x,flagOptionsConfig:{__default:[{text:f._('It isn\'t useful or relevant', 'tried-it reporting flow', 'tried-it reporting flow'),value:"ignoreThisPin",isTerminalReason:!0,category:"ignoreThisPin"},{text:f._('It shouldn\'t be on Pinterest', 'tried-it reporting flow', 'tried-it reporting flow'),value:_,isTerminalReason:!1},{text:f._('It\'s spam', 'tried-it reporting flow', 'tried-it reporting flow'),value:"spam",isTerminalReason:!0,category:"spam"},{text:f._('It\'s my intellectual property', 'tried-it reporting flow', 'tried-it reporting flow'),isTerminalReason:!1,value:"IP"}],ignoreThisPin:[],policies:[{text:f._('It\'s sexually explicit', 'tried-it reporting flow', 'tried-it reporting flow'),value:"nudity",isTerminalReason:!0,category:"nudity"},{text:f._('It\'s self-harm', 'an option on tried-it reporting flow', 'an option on tried-it reporting flow'),value:"self-harm",isTerminalReason:!0,category:"self-harm"},{text:f._('It\'s hate speech', 'tried-it reporting flow', 'tried-it reporting flow'),value:"hate-speech",isTerminalReason:!0,category:"hate-speech"},{text:f._('It\'s harassment or bullying', 'tried-it reporting flow', 'tried-it reporting flow'),value:"attacks",isTerminalReason:!1,category:"attacks"},{text:f._('It\'s graphic violence', 'tried-it reporting flow', 'tried-it reporting flow'),value:"gore",isTerminalReason:!0,category:"graphic-violence"}],attacks:[{text:f._('It\'s a photo of me or my child', 'tried-it reporting flow', 'tried-it reporting flow'),value:"harassingMeOrMyChild",isTerminalReason:!0,category:"attacks"},{text:f._('It identifies and attacks me or someone I know', 'tried-it reporting flow', 'tried-it reporting flow'),value:"harassingMeOrAFriend",isTerminalReason:!0,category:"attacks"},{text:f._('Something else', 'tried-it reporting flow', 'tried-it reporting flow'),value:"harassingOther",isTerminalReason:!0,category:"attacks"}],IP:[],spam:[]}})}},174798:(e,t,i)=>{i.d(t,{Vm:()=>a,Zw:()=>n,qb:()=>o});const n={REPORT:"REPORT",BLOCK:"BLOCK",END:"END"},o={STARTED:"STARTED",SELECTED:"SELECTED",SUBMITTED:"SUBMITTED",PROCESSING:"PROCESSING",COMPLETED:"COMPLETED"},a={CONVERSATION:"CONVERSATION",DID_IT:"DID_IT"}},238464:(e,t,i)=>{i.d(t,{Z:()=>R});var n=i(667294),o=i(704115),a=i(926749),r=i(985271),s=i(944546),l=i(366284),c=i(224496),d=i(965900),u=i(858416),p=i(172071),h=i(247371),_=i(19121),m=i(407043),g=i(773285),x=i(898781),f=i(946984),y=i(883119),v=i(785893);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 P={overlay:{__style:{backgroundColor:"#000"}}};class w extends n.PureComponent{constructor(...e){super(...e),b(this,"handleRestartVideo",(({event:e})=>{e&&e.stopPropagation&&e.stopPropagation();const{onRestartVideo:t}=this.props;t&&t({event:e}),p.Z.increment("web.video.endcard.share",1,{status:"restart",variant:"enabled_send_first"})})),b(this,"handleShareVideo",(()=>{const{onToggleFlyout:e,isFlyoutOpen:t,pinId:i,requireAuth:n,logContextEvent:o}=this.props;t&&p.Z.increment("web.video.endcard.share",1,{status:"shareSheetOpen",variant:"enabled_send_first"}),o({event_type:101,component:179,object_id_str:i,view_type:3,view_parameter:156,element:11731}),n?n():e&&e()})),b(this,"handleExternalSend",(()=>{p.Z.increment("web.video.endcard.share",1,{status:"shareSheetOpen",variant:"enabled_send_first"})})),b(this,"renderReplayButton",(()=>(0,v.jsx)(y.iP,{onTap:this.handleRestartVideo,rounding:2,children:(0,v.jsxs)(y.xu,{alignItems:"center",display:"flex",padding:2,children:[(0,v.jsx)(y.hU,{accessibilityLabel:this.props.i18n._('Watch again', 'Button when pressed restarts the video', 'Button when pressed restarts the video'),icon:"refresh",iconColor:"white",size:"md"}),(0,v.jsx)(y.X6,{color:"light",overflow:"normal",size:"400",children:this.props.i18n._('Watch again', 'Clickable label when pressed restarts the video', 'Clickable label when pressed restarts the video')})]})}))),b(this,"renderShareButton",(()=>{const{gridDescription:e,imageSrc:t,isFlyoutOpen:i,onFlyoutDismiss:n,pinId:o}=this.props;return(0,v.jsxs)(y.xu,{alignItems:"center",display:"flex",padding:2,justifyContent:"center",children:[(0,v.jsx)(h.default,{buttonType:"icon",gridDescription:e,imageSrc:t,isFlyoutOpen:i,onExternalSend:this.handleExternalSend,onFlyoutDismiss:n,onToggleFlyout:this.handleShareVideo,pinId:o,sendType:"pin",shownWithinMasonry:!0,iconOnly:!0,iconColor:"white",element:72,component:179,viewType:3}),(0,v.jsx)(y.xu,{children:(0,v.jsx)(y.iP,{onTap:this.handleShareVideo,rounding:2,children:(0,v.jsx)(y.X6,{color:"light",overflow:"normal",size:"400",children:this.props.i18n._('Send', 'end.video.send.icon.label', 'Clickable label when pressed opens share sheet after video is finished')})})})]})}))}componentDidMount(){const{pinId:e,logContextEvent:t}=this.props;p.Z.increment("web.video.endcard.share",1,{status:"land",variant:"enabled_send_first"}),t({event_type:13,component:179,object_id_str:e,view_type:3,view_parameter:156,element:11731})}render(){const{backgroundImage:e,naturalHeight:t,naturalWidth:i,pinTitle:n}=this.props;return(0,v.jsx)(y.xu,{children:(0,v.jsxs)(y.Ee,{alt:n||"",naturalHeight:t,naturalWidth:i,src:e,children:[(0,v.jsx)(y.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,dangerouslySetInlineStyle:P.overlay}),(0,v.jsx)(y.xu,{alignItems:"center",display:"flex",justifyContent:"center",position:"absolute",top:!0,left:!0,height:"100%",width:"100%",direction:"column",children:(0,v.jsxs)(y.xu,{position:"absolute",children:[(0,v.jsx)(y.xu,{children:this.renderShareButton()}),(0,v.jsx)(y.xu,{alignSelf:"center",children:this.renderReplayButton()})]})})]})})}}function S(e){const{logContextEvent:t}=(0,m.v)(),i=(0,x.ZP)(),n=(0,f.Z)();return(0,v.jsx)(w,{...e,i18n:i,requireAuth:n,logContextEvent:t})}const A=({backgroundImage:e,naturalHeight:t,naturalWidth:i,onRestartVideo:n,pinTitle:o})=>{const a=(0,x.ZP)(),{checkExperiment:r}=(0,g.F)(),s=r((0,_.Z)().isAuth?"closeup_auth_dweb_video_scrubber":"closeup_unauth_dweb_video_scrubber_2").anyEnabled,l=a._('Replay', 'closeupVideo.endCard.ReplayButton', 'Button when pressed restarts the video'),c=a._('Replay', 'closeupVideo.endCard.ReplayButton', 'Button when pressed restarts the video');return(0,v.jsx)(y.xu,{children:(0,v.jsxs)(y.Ee,{alt:o||"",naturalHeight:t,naturalWidth:i,src:e,children:[(0,v.jsx)(y.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,opacity:.8,dangerouslySetInlineStyle:P.overlay}),(0,v.jsx)(y.xu,{alignItems:"center",display:"flex",justifyContent:"center",position:"absolute",top:!0,left:!0,height:"100%",width:"100%",children:(0,v.jsx)(y.xu,{children:(0,v.jsx)(y.iP,{onTap:n,rounding:2,children:(0,v.jsxs)(y.xu,{alignItems:"center",display:"flex",padding:2,children:[(0,v.jsx)(y.hU,{accessibilityLabel:s?l:a._('Watch again', 'Button when pressed restarts the video', 'Button when pressed restarts the video'),icon:"refresh",iconColor:"white",size:"md"}),(0,v.jsx)(y.X6,{color:"light",overflow:"normal",size:"400",children:s?c:a._('Watch again', 'Clickable label when pressed restarts the video', 'Clickable label when pressed restarts the video')})]})})})})]})})};var k=i(82314),E=i(276602),T=i(780280),C=i(47168);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 j extends n.Component{constructor(...e){super(...e),I(this,"state",{controls:"always"===this.props.showControls&&!this.props.disabled,fullscreen:!1,playing:!(0,l.G6)(this.props.requestContext.userAgent.browserName)&&(!!this.props.autoplay&&!this.props.disabled),ready:!1,seeking:!1,showEndCard:!1,volume:this.props.muted?0:1,videoStartTime:this.props.videoStartTime||0}),I(this,"setVideoPwtLoadingStop",((e=!1)=>{if(!r.Z)return;const{storyPinStepStopwatch:t,pinId:i,pwtSurfaceContext:n}=this.props;t&&(e||t.addAnnotation("video.startup.end"),t.addBinaryAnnotation("pin.id",i,"STRING"),t.addBinaryAnnotation("video",!0,"BOOL"),t.addBinaryAnnotation("preload",e,"BOOL"),t.addSubspan({name:"perceived_video_load",endTime:r.Z.now()}),t.stop()),n&&(e||n.addAnnotation("video.startup.end"),n.addBinaryAnnotation("pin.id",i,"STRING"),n.addBinaryAnnotation("video",!0,"BOOL"),n.markConstraintComplete(k._z),n.addSubspan("perceived_video_load",null,r.Z.now()),n.getMetricId().segment===k.zc&&n.removeConstraint(k.pM))})),I(this,"componentDidMount",(()=>{const{customThumbnail:e,video:t,preferMp4:i}=this.props,n=t.mp4,o=t.hlsv3||t.hls||null,{thumbnail:a}=i&&n||o||{},r=(s=e||a)&&document.querySelector(`video[poster="${s}"]`)||null;var s;4===(null==r?void 0:r.ready)&&(this.setState({ready:!0}),this.props.autoplay&&this.setVideoPwtLoadingStop(!0))})),I(this,"componentDidUpdate",((e,t)=>{this.props.videoStartTime&&this.props.videoStartTime!==e.videoStartTime&&this.setState({videoStartTime:this.props.videoStartTime}),!1===e.isPlaying&&this.props.isPlaying&&this.setState({playing:!0,controls:"never"!==this.props.showControls}),e.isPlaying&&!1===this.props.isPlaying&&this.setState({playing:!1}),e.autoplay!==this.props.autoplay&&(this.setState({playing:!!this.props.autoplay}),this.props.autoplay&&this.state.ready&&this.setVideoPwtLoadingStop(!0)),e.muted!==this.props.muted&&this.setState({volume:this.props.muted?0:1}),"never"===this.props.showControls&&t.controls&&this.setState({controls:!1}),(t.controls||t.playing)&&this.props.disabled&&this.setState({playing:!1,controls:!1}),!t.playing&&this.state.playing&&this.props.onPlay&&this.props.onPlay()})),I(this,"handleTouch",(()=>{const{seeking:e}=this.state,{disabled:t}=this.props;e||t||this.setState((e=>({playing:!e.playing})))})),I(this,"handleShowControls",(()=>this.setState({controls:!0}))),I(this,"handleHideControls",(()=>this.setState({controls:!1}))),I(this,"handleReady",(()=>{const{ready:e,playing:t}=this.state,{autoplay:i,disabled:n}=this.props;i&&!e&&this.setVideoPwtLoadingStop(),this.setState({ready:!0}),(0,l.G6)(this.props.requestContext.userAgent.browserName)&&!t&&i&&!n&&this.setState({playing:!0})})),I(this,"handleEnded",(({event:e})=>{const{customThumbnail:t,customEndCard:i,pinId:n,setCurrentVideo:o,loop:a,onEnded:r}=this.props;var s;e.stopPropagation(),a||(this.setState({playing:!1}),(s=t)&&s.endsWith(".gif")||i||(this.setState({showEndCard:!0,videoStartTime:0}),o({pinId:n,isPromoted:!1,currentTime:0})),this.state.fullscreen&&this.exitFullscreen()),r&&r()})),I(this,"handlePause",(({event:e})=>{e.stopPropagation(),this.setState({playing:!1})})),I(this,"handlePlay",(({event:e})=>{e.stopPropagation(),this.setState({playing:!0})})),I(this,"handleFullscreenChange",(({event:e,fullscreen:t})=>{e.stopPropagation(),this.setState({fullscreen:t})})),I(this,"handlePlayheadDown",(({event:e})=>{this.setState({seeking:!0})})),I(this,"handlePlayheadUp",(({event:e})=>{setTimeout((()=>{this.setState({seeking:!1})}),500)})),I(this,"handleRestartVideo",(({event:e})=>{e.stopPropagation(),this.setState({playing:!0,showEndCard:!1})})),I(this,"handleShareRestartVideo",(({event:e})=>{e.stopPropagation(),this.setState({playing:!0,showEndCard:!1})})),I(this,"handleVolumeChange",(({event:e,volume:t})=>{e.stopPropagation(),this.setState({volume:t})})),I(this,"exitFullscreen",(()=>{const e=window.document;(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement)&&(e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen())})),I(this,"renderCloseupVideoEndCard",((e,t,i,n)=>{const o={backgroundImage:e,naturalHeight:t,naturalWidth:i,onRestartVideo:this.handleShareRestartVideo},a={backgroundImage:e,naturalHeight:t,naturalWidth:i,onRestartVideo:this.handleRestartVideo},{flyoutShareProps:r}=this.props,s={gridDescription:r?r.gridDescription:"",imageSrc:r?r.imageSrc:"",isFlyoutOpen:!!r&&r.isFlyoutOpen,onFlyoutDismiss:r?r.onFlyoutDismiss:()=>{},onToggleFlyout:r?r.onToggleFlyout:()=>{},pinId:r?r.pinId:""};return n?(0,v.jsx)(A,{...a}):(0,v.jsx)(S,{...s,...o})}))}render(){const{autoplay:e,closeupStoryPinViewability:t,contextLogData:i={component:179,is_closeup_video:!0,objectId:this.props.pinId,view:3,viewParameter:156},customThumbnail:n,isPromoted:o,loop:r,onTimeChange:d,objectFit:u,preferMp4:p,preload:h,requestContext:_,roundingOverride:m,showControls:g,variant:x,video:f,videoThumbnailStartTime:b}=this.props;i.is_closeup_video=!0;const{controls:P,fullscreen:w,playing:S,showEndCard:A,volume:k,videoStartTime:E}=this.state,T=f.hlsv3||f.hls||null;if(!T&&!f.mp4)return null;const C=f.mp4,I=p&&C&&C.url||T&&[{type:"video/m3u8",src:T.url}]||void 0,{height:j,thumbnail:R,width:D}=p&&C||T||{},z=n||R;let O;return O=null!=m?m:"default"===x?0:"storyPin"===x?c.yR:2,(0,v.jsx)(y.zd,{willChangeTransform:!((0,l.G6)(_.userAgent.browserName)&&w),rounding:O,wash:!0,children:A?this.renderCloseupVideoEndCard(null!=z?z:"",null!=j?j:1,null!=D?D:1,o):(0,v.jsx)(y.iP,{accessibilityLabel:this.props.i18n._('Pause or play video', 'pin.closeup.video.tap', 'tap area to pause or play video'),onMouseEnter:"hover"===g?this.handleShowControls:void 0,onMouseLeave:"hover"===g?this.handleHideControls:void 0,onTap:this.handleTouch,rounding:2,children:(0,v.jsx)(a.ZP,{contextLogData:{...i,video_id:this.props.video.id},accessibilityMaximizeLabel:this.props.i18n._('Maximize', 'Maximize button on video', 'Maximize button on video'),accessibilityMinimizeLabel:this.props.i18n._('Minimize', 'Minimize button on video', 'Minimize button on video'),accessibilityMuteLabel:this.props.i18n._('Mute', 'Mute button on video', 'Mute button on video'),accessibilityPauseLabel:this.props.i18n._('Pause', 'Pause button on video', 'Pause button on video'),accessibilityPlayLabel:this.props.i18n._('Play', 'Play button on video', 'Play button on video'),accessibilityProgressBarLabel:this.props.i18n._('Progress bar', 'CloseupVideo.accessibilityProgressBarLabel', 'Video progress bar accessibility label'),accessibilityUnmuteLabel:this.props.i18n._('Unmute', 'Unmute button on video', 'Unmute button on video'),aspectRatio:(null!=D?D:1)/(null!=j?j:1),closeupStoryPinViewability:t,captions:"",controls:P,hlsConfig:{startLevel:s.VS},isAutoPlay:!!e,objectFit:u,onEnded:this.handleEnded,onFullscreenChange:this.handleFullscreenChange,onControlsPause:this.handlePause,onControlsPlay:this.handlePlay,onPlayheadDown:this.handlePlayheadDown,onPlayheadUp:this.handlePlayheadUp,onReady:this.handleReady,onTimeChange:d,onVolumeChange:this.handleVolumeChange,preferMp4:p,playing:S,onPlay:()=>{},onPlayError:()=>{},preload:h,poster:z,src:I,videoStartTime:E||b,volume:k,loop:r})})})}}function R(e){const t=(0,x.ZP)(),i=(0,T.B)(),a=(0,C.g)(),r=(0,E.EV)(),{seekTime:s}=(0,u.Hx)(),{pinId:l,isPromoted:c}=e,{appUI:p,setCurrentVideo:h}=(0,d.I)(),{videosAutoplaying:_}=p,{organicVideosAutoplaying:m,promotedVideosAutoplaying:g}=_,f=c?g[l]:m[l],y=(0,o.Z)(),b=parseInt(y.t||0,10),[P,w]=(0,n.useState)((null==f?void 0:f.currentTime)||0);return(0,n.useEffect)((()=>{let e=P;b>0&&(e=b),s&&(e=s),w(e)}),[s,b,P]),(0,v.jsx)(j,{...e,i18n:t,isPlaying:!f||!f.paused,pwtSurfaceContext:r,requestContext:i,setCurrentVideo:h,storyPinStepStopwatch:a,videoStartTime:P})}I(j,"defaultProps",{loop:!1,showControls:"hover"})},841478:(e,t,i)=>{i.d(t,{A6:()=>l,BS:()=>r,EC:()=>o,_5:()=>s,m9:()=>a,z9:()=>n});const n=800,o=508,a=424,r=278,s=640,l=508},35495:(e,t,i)=>{i.d(t,{GT:()=>h,Gy:()=>r,Kl:()=>g,QY:()=>p,RR:()=>l,SP:()=>d,Sn:()=>m,Zs:()=>_,bA:()=>u,i8:()=>s,nn:()=>a,qN:()=>c});var n=i(834911),o=i(229428);const a=e=>!!e&&(e.shopping_flags||[]).includes(2),r=e=>{var t,i;return e.rich_summary&&e.rich_summary.products&&e.rich_summary.products.length>0||(null!==(t=null===(i=e.rich_metadata)||void 0===i?void 0:i.products)&&void 0!==t?t:[]).length>0},s=e=>{var t;return null===(t=e.aggregated_pin_data)||void 0===t?void 0:t.is_shop_the_look},l=e=>{var t,i;return null===(t=e.rich_summary)||void 0===t||null===(i=t.aggregate_rating)||void 0===i?void 0:i.rating_value},c=e=>e.is_oos_product,d=e=>e.is_stale_product,u=e=>c(e)||d(e),p=e=>{var t,i,n,o;const a=null==e||null===(t=e.link_domain)||void 0===t||null===(i=t.official_user)||void 0===i?void 0:i.full_name;if(a)return a;const r=null==e||null===(n=e.rich_summary)||void 0===n?void 0:n.site_name;if(r)return r;if(e.domain){if("Uploaded by user"===e.domain){return((e.is_repin?e.origin_pinner:e.pinner)||{}).full_name}return e.domain}const s=null==e||null===(o=e.via_pinner)||void 0===o?void 0:o.full_name;return e.is_repin&&s?s:void 0},h=e=>{if(e){const t=e.shopping_flags||[];return!t.includes(10)&&e.product_pin_data&&e.product_pin_data.items&&e.product_pin_data.items[0]&&e.product_pin_data.items[0].additional_images&&t.push(10),t}return[]};function _(e,t={},i){var a,r,s,l,c,d;const u=h(e),p={...t.commerce_data};u.includes(2)&&(p.pin_is_shop_the_look=!0),u.includes(1)&&(p.is_available=!0),u.includes(5)&&(p.is_product_pin_v2=!0),u.includes(6)&&(p.is_rich_product_pin=!0),u.includes(10)&&(p.is_organic_product_carousel=!0);if((!!e.visual_objects&&(0,o.k)(e.visual_objects)||[]).some((e=>!0===e.is_stela))&&(p.pin_is_stela=!0),e.is_eligible_for_pdp_plus||e.is_eligible_for_pdp||e.is_ooo_product||e.is_stale_product){e.is_oos_product?p.pin_show_pdp_oos=!0:e.is_stale_product?p.pin_show_pdp_stale=!0:e.is_eligible_for_pdp&&(p.pin_show_pdp=!0);const t=(0,n.Z)({carouselData:e.carousel_data,images:e.images,richMetadata:null==e?void 0:e.rich_metadata,richSummary:null==e?void 0:e.rich_summary});if("pdp_plus"===i&&e.is_eligible_for_pdp_plus){var _,m,g,x,f,y,v,b;p.is_pdpplus=!0;const i=null==e||null===(_=e.rich_metadata)||void 0===_||null===(m=_.products)||void 0===m?void 0:m[0],n=null==i||null===(g=i.shipping_info)||void 0===g?void 0:g.free_shipping_price,o=null==i||null===(x=i.shipping_info)||void 0===x?void 0:x.free_shipping_value,a=(null==i||null===(f=i.variant_set)||void 0===f||null===(y=f.variants)||void 0===y?void 0:y.length)||0,r=(e=>{const t=(null==e?void 0:e.variants)||[],i=(null==e?void 0:e.dimension_metadata)||[];return Array.isArray(t)&&Array.isArray(i)?i.reduce(((e,i)=>i.name&&Array.isArray(i.values)?e+i.values.filter((e=>t.find((t=>{var n,o;return(null===(n=t.dimensions)||void 0===n?void 0:n[null!==(o=i.name)&&void 0!==o?o:""])===e})))).length:e),0):0})(null==i?void 0:i.variant_set),s=(null==i||null===(v=i.variant_set)||void 0===v||null===(b=v.dimension_metadata)||void 0===b?void 0:b.length)||0;var P;if(t)p.carousel_image_count=null===(P=t.carousel_slots)||void 0===P?void 0:P.length;n&&(p.free_shipping_price=n),o&&(p.free_shipping_value=o),a&&(p.num_variants=a),r&&(p.valid_dimension_option_count=r),s&&(p.total_dimension_option_count=s)}else if(t){var w;p.image_count=null===(w=t.carousel_slots)||void 0===w?void 0:w.length,p.image_index=t.index}}null!=e&&null!==(a=e.rich_summary)&&void 0!==a&&null!==(r=a.products)&&void 0!==r&&null!==(s=r[0])&&void 0!==s&&s.item_id&&(p.item_id=e.rich_summary.products[0].item_id),null!=e&&null!==(l=e.rich_summary)&&void 0!==l&&null!==(c=l.products)&&void 0!==c&&null!==(d=c[0])&&void 0!==d&&d.item_set_id&&(p.item_set_id=e.rich_summary.products[0].item_set_id);const S=e.aggregated_pin_data||{};return null!=S&&S.is_shop_the_look&&(p.pin_is_shop_the_look=!0),e.story_pin_data&&(p.story_pin_id=e.story_pin_data.id),p}function m(e){const t=JSON.stringify(e);return"{}"!==t?{commerce_data:t}:null}const g=(e,t={},i)=>{if(e){return m(_(e,t,i))}return null}},27255:(e,t,i)=>{i.d(t,{Z:()=>n});const n={AMP_TRACKING_DOMAIN:"amp.pinterest.com",BoardPrivacy:{SECRET:"secret",PUBLIC:"public",PROTECTED:"protected"},BoardType:{PROTECTED:"protected"},BulkAction:{MOVE:"bulkMove",COPY:"bulkCopy",CREATE_SECTION:"bulkCreateSection",DELETE:"bulkDelete"},MAX_CHARS_FOR_BOARD_PIN_DESCRIPTION:500,MAX_CHARS_FOR_BOARD_TITLE:50,MAX_CHARS_FOR_FIRST_NAME:30,MAX_FETCH_NUM_FOLLOWERS_PER_PAGE:50,MAX_STORED_VISITED_PIN_PAGES:10,VIDEO_AUTOPLAY_LOCAL_STORAGE_KEY:"_video_autoplay_state",VIDEO_IFRAME_ID:"video-iframe"}},699825:(e,t,i)=>{i.d(t,{Z:()=>u});var n=i(667294),o=i(102500),a=i(692627),r=i(47170),s=i(35495),l=i(623568),c=i(407043),d=i(785893);function u({children:e,hovered:t,pin:i,slotIndex:u,trafficSource:p,viewType:h}){var _,m,g;const{logContextEvent:x}=(0,c.v)(),[f,y]=(0,n.useState)(),[v,b]=(0,n.useState)(),{id:P,tracked_link:w,link:S}=i,A=w||S||"",k=()=>{y(!0)},E=(0,r.Z)(i),T=(0,a.Z)({hasPin:!!i,hasPinRichMetadata:!(null==i||!i.rich_metadata),hasPinRichMetadataProducts:!(null==i||null===(_=i.rich_metadata)||void 0===_||!_.products),hasPinRichMetadataArticle:!(null==i||null===(m=i.rich_metadata)||void 0===m||!m.article),hasPinRichMetadataRecipe:!(null==i||null===(g=i.rich_metadata)||void 0===g||!g.recipe),hasPinStoryPinData:!(null==i||!i.story_pin_data)}),C=(0,n.useCallback)((()=>{((e,t,i)=>{const n={check_only:i,pin_id:e.id,url:t,client_tracking_params:E,aux_data:JSON.stringify({clickthrough_type:"rightClick",objectId:P,...u||{},...(0,s.Kl)(e)||{}})};return(0,o.Z)(n)})(i,A,!1).callGet({showError:!1}).then((e=>{e&&(x({event_type:12,object_id_str:P,view_type:h,view_parameter:T,aux_data:{clickthrough_type:"rightClick",...u||{},...(0,s.Kl)(i)||{}}}),x({event_type:8948,view_type:h,object_id_str:P,view_parameter:T,aux_data:{click_type:"clickthrough",closeup_navigation_type:p&&(0,l.sV)(p)?"deeplink":"click",clickthrough_type:"rightClick",...u||{},...(0,s.Kl)(i)||{}}}))}))})),I=e=>{var t;f&&(/^\/pin/.test(null===(t=e.target.activeElement.attributes.href)||void 0===t?void 0:t.value)||(C(),y(!1)),window.removeEventListener(v,I,!1))};return(0,n.useEffect)((()=>{var e,t,i,n,o,a;void 0!==(null===(e=window)||void 0===e||null===(t=e.document)||void 0===t?void 0:t.hidden)?b("visibilitychange"):void 0!==(null===(i=window)||void 0===i||null===(n=i.document)||void 0===n?void 0:n.msHidden)?b("msvisibilitychange"):void 0!==(null===(o=window)||void 0===o||null===(a=o.document)||void 0===a?void 0:a.webkitHidden)&&b("webkitvisibilitychange")}),[]),(0,n.useEffect)((()=>(f&&window&&window.addEventListener(v,I,!1),()=>window.removeEventListener(v,I))),[f,v]),(0,n.useEffect)((()=>(t&&window.addEventListener("contextmenu",k),()=>{window.removeEventListener("contextmenu",k)})),[t]),(0,d.jsx)(n.Fragment,{children:e})}},628551:(e,t,i)=>{i.r(t),i.d(t,{cleanUpCookie:()=>s,getCsrfToken:()=>l,needsCsrfToken:()=>c});var n=i(231486),o=i(226198),a=i(826067),r=i(29538);const s=()=>{const e=o.fS.name,t=document.cookie.match(new RegExp(e+"=.+?($|;)","g"));var i;t&&t.length>1&&(i=r.c,document.cookie=o.fS.name+"=bad; domain=."+i+"; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/")},l=()=>"undefined"!=typeof window?`${String(n.U2(o.fS))}`:"",c=(e,t)=>!(e=>/^(GET|HEAD|OPTIONS|TRACE)$/.test(e))(e)&&(0,a.Qg)(t)},918301:(e,t,i)=>{i.d(t,{CB:()=>h,y9:()=>p});var n=i(667294),o=i(121151),a=i(412067),r=i(898781),s=i(883119),l=i(785893);const c=({onConfirm:e})=>{const t=(0,r.ZP)(),[i,c]=(0,n.useState)(!1),d=()=>{c(!0),a.Z.create("ApiResource",{url:"/v3/users/email/verify/resend/"}).callCreate()};return(0,l.jsx)(o.ZP,{accessibilityModalLabel:t._('Verify your email', 'Accessible label for email verification being required', 'Accessible label for email verification being required'),onDismiss:e,heading:t._('Verify your email', 'Accessible label for email verification being required', 'Accessible label for email verification being required'),footer:(0,l.jsxs)(s.kC,{justifyContent:"end",gap:{row:2,column:0},children:[i?(0,l.jsx)(s.zx,{fullWidth:!0,size:"lg",color:"gray",text:t._('Email sent', 'Button text for verification email being sent', 'Button text for verification email being sent'),disabled:i,onClick:d}):(0,l.jsx)(s.zx,{fullWidth:!0,size:"lg",color:"gray",text:t._('Resend email', 'Button text for resending email verification email', 'Button text for resending email verification email'),disabled:i,onClick:d}),(0,l.jsx)(s.zx,{fullWidth:!0,size:"lg",color:"red",text:t._('Got it', 'Button text for acknowledging email verificaiton is required', 'Button text for acknowledging email verificaiton is required'),onClick:e})]}),role:"alertdialog",children:(0,l.jsx)(s.xu,{padding:8,children:(0,l.jsx)(s.xv,{align:"center",size:"300",children:t._('Keep your account secure by verifying your email address. Check the inbox associated with this account for an email from us to continue using Pinterest.', 'Inform users that they need to verify their email to keep their account secure and continue using Pinterest', 'Inform users that they need to verify their email to keep their account secure and continue using Pinterest')})})})};var d=i(425288);const{Provider:u,useHook:p}=(0,d.Z)("EmailVerificationReminderModal");function h({children:e}){const[t,i]=(0,n.useState)(!1),o=(0,n.useMemo)((()=>({showEmailVerificationReminderModal:()=>{i(!0)}})),[]);return(0,l.jsxs)(n.Fragment,{children:[(0,l.jsx)(u,{value:o,children:e}),t&&(0,l.jsx)(c,{onConfirm:()=>{i(!1)}})]})}},558068:(e,t,i)=>{i.d(t,{Hv:()=>l,aX:()=>u,nK:()=>p});var n=i(667294),o=i(425288),a=i(276775),r=i(785893);const{Provider:s,useHook:l}=(0,o.Z)("HistoryStackContext",{previous:[],current:null,forward:[]}),c=e=>e&&e.pathname?e.pathname+(e.search||""):"";function d(e,t){var i;const n={action:t.type,location:t.location,match:t.match};if(t.location===(null===(i=e.current)||void 0===i?void 0:i.location))return e;switch(t.type){case"POP":return e.forward.length>0&&c(e.forward[0].location)===c(n.location)?{...e,forward:e.forward.slice(1),current:{...e.forward[0],action:t.type},previous:e.current?[...e.previous,{action:e.current.action,location:e.current.location,match:e.current.match}]:e.previous}:{...e,forward:e.current?[{action:e.current.action,location:e.current.location,match:e.current.match},...e.forward]:e.forward,current:{...e.previous.slice(-1)[0],action:t.type},previous:e.previous.slice(0,-1)};case"PUSH":return{...e,forward:e.forward.length>0?[]:e.forward,current:n,previous:e.current?[...e.previous,{action:e.current.action,location:e.current.location,match:e.current.match}]:e.previous};case"REPLACE":return{...e,current:n};default:return e}}function u(){const{current:e,previous:t}=l();return(0,n.useMemo)((()=>e?t.concat(e):t),[e,t])}function p({children:e}){const t=(0,a.useHistory)(),i=(0,a.useLocation)(),o=(0,a.useRouteMatch)(),l={forward:[],current:{action:t.action,location:i,match:o},previous:[]},[c,u]=(0,n.useReducer)(d,l);return(0,n.useEffect)((()=>{const{action:e}=t;u({type:e,location:i,match:o})}),[i]),(0,r.jsx)(s,{value:c,children:e})}},391254:(e,t,i)=>{i.d(t,{Z:()=>a});i(441143);var n=i(785893);class o{static factory(e){return e instanceof o?e:new o(String(e))}constructor(e){this._private_safe_value=e.trim().replace(">",">").replace("<","<").replace("&","&").replace('"','"').replace("'","'")}toString(){return this._private_safe_value}}function a(e){const{css:t,unsafeCSS:i,...a}=e,r=String(t||"")||i||"";return!!r?(0,n.jsx)("style",{...a,dangerouslySetInnerHTML:{__html:String(o.factory(r))}}):null}},422722:(e,t,i)=>{i.r(t),i.d(t,{default:()=>l});var n=i(176532),o=i(635240),a=i(395164);const r={};r.BASE_URL_PATH="/_/_/report/",r.BASE_URL_PATH_TRACE="/_/_/trace/",r.SERVER_LOG_TYPE=Object.freeze({PAGE_LOAD_METRIC:"page_load_metric",BROWSER_EXTENSION:"browser_extension",RENDER_TIME:"render_time",NETWORK_LOAD:"network_load",SIGNUP_LOAD:"signup_load",TRACE:"trace",STRING_USAGE:"string_usage",HF_REFRESH:"hf_refresh"}),r.HTTP_METHOD=Object.freeze({GET:"GET",POST:"POST"});const s=function(e,t){if(!/password/i.test(e))return t};r._assembleXhrData=function(e,t){let i;try{i=JSON.stringify(t,s)}catch(n){i=JSON.stringify({messages:[n.toString()]})}return{report_context:JSON.stringify(e,s),report_data:i}},r.logToServer=function(e,t,i,s=0,l,c){var d;let u=null!=s?s:0;const p=null!=l?l:1;c=null!==(d=c)&&void 0!==d?d:l,function(e,t,i,a){let s;s="trace"===e?r.BASE_URL_PATH_TRACE+e+"/":r.BASE_URL_PATH+e+"/",a&&(i.timeElapsed=Date.now()-a),e&&(i.logType=e);let l="";try{l=window.location.href}catch(u){}const c={app_version:(0,o.Z)(),current_url:l},d=r._assembleXhrData(c,i);return(0,n.Z)({url:s,type:t,data:d}).promise.then((({ok:e,status:t,statusText:i})=>e?Promise.resolve():Promise.reject({type:"error",message:i,httpStatus:t})))}(e,t,i,c).catch((n=>{if(u){u-=1;const n=Math.min(18e5,1.23*p);setTimeout((()=>{r.logToServer(e,t,i,u,n,c)}),l)}else u-=1,(0,a.T)({name:n.name,message:`LogToServer failed: ${n.message}`})}))},r.logPerfDataToServer=r.logToServer,r.logToServer=function(e,t){let i=0;return function(...n){if(!(i>=t))return i+=1,e.apply(this,n)}}(r.logToServer,10);const l=r},241244:(e,t,i)=>{i.d(t,{N:()=>r,Z:()=>a});var n=i(883119),o=i(785893);function a({children:e,fullWidth:t}){return(0,o.jsx)(n.xu,{"data-test-id":"pointer-events-wrapper",dangerouslySetInlineStyle:{__style:{pointerEvents:"auto",width:t?"100%":void 0}},children:e})}function r({children:e,enabled:t}){return t?(0,o.jsx)(a,{children:e}):e}},310227:(e,t,i)=>{i.d(t,{Dv:()=>a,Ml:()=>r,Oc:()=>n,mv:()=>o});const n=16,o=4,a={SAVED:"rgba(0, 0, 0, 0.33)",VISUAL:"rgba(0, 0, 0, 0.1)",LEGO_WASH:"rgba(0, 0, 0, 0.4)"},r=120},743473:(e,t,i)=>{i.d(t,{Z:()=>P});var n=i(567831),o=i(794230),a=i(107193),r=i(402201),s=i(704115),l=i(412067);const c={open(e){var t;const i=(d=e,c._validParams.reduce(((e,t)=>(d&&Object.prototype.hasOwnProperty.call(d,t)&&(e[t]=d[t]),e)),{}));var d;const u=c._getDialogType(e),p=c.generateFbRef(null!==(t=e.unauthId)&&void 0!==t?t:""),h=e.object_type&&e.object_id&&"feed"===u;let _=(0,n.Z)(e.path);const m=(0,s.Z)();if(m.ptrf&&(_=(0,o.Z)(_,{ptrf:m.ptrf})),h&&(_=(0,o.Z)(_,{fb_ref:p})),i.method=u,"feed"===i.method){const t=(0,r.Z)({width:e.width,height:e.height});let n="http://www.facebook.com/sharer/sharer.php?u="+_;i.picture&&(n+="&picture="+i.picture),i.name&&(n+="&title="+i.name),i.description&&(n+="&description="+i.description),i.caption&&(n+="&caption="+i.caption),window.open(encodeURI(n),"sharer",t)}else"send"===i.method?i.link=_:"share"===i.method&&(i.href=_),(0,a.default)((t=>{t.getLoginStatus((()=>{if("send"===i.method){t.ui(i);let n,o=10;const a=setInterval((()=>{n=function(){if(!document)return;const e=Array.from(document.querySelectorAll(".fb_dialog_iframe iframe"));if(!e.length)return;if(1===e.length)return e[0];const t=e.splice(0,e.length-1);for(let i=0;i{h&&t&&!t.error_message&&l.Z.create("LogFacebookFeedShare",{object_type:e.object_type,object_id:e.object_id,fb_ref:p}).callCreate({showError:!1}),e.callback&&e.callback(t)}))}))}),e.viewer)},_validParams:["description","name","picture","to","href","caption","display"],_validOptions:["send","feed","share"],executeMessengerCallback(e,t){let i=10;const n=setInterval((()=>{"0px"!==e.style.width&&i||(clearInterval(n),e.style.width="575px"),i-=1}),1e3);t&&t()},generateFbRef(e){let t="";for(;t.length<20;)t+=Math.floor(65535*Math.random()).toString(16);return e+":"+t},_getDialogType:e=>c._validOptions.includes(e.type)?e.type:"feed"},d=c;function u(e,t,i){const n=function(e,t){const i=window.screen.width,n=window.screen.height;return"scrollbars=yes,resizable=yes,toolbar=no,location=yes,width="+e+",height="+t+",left="+Math.round((i-e)/2)+",top="+(n>t?Math.round((n-t)/2):0)}(t,i);window.open(e,void 0,n)}const p={DIALOG_WIDTH:510,DIALOG_HEIGHT:525,openDialog(e){u(p._getWindowUrl(e.share_path,e.share_text),p.DIALOG_WIDTH,p.DIALOG_HEIGHT)},_getWindowUrl:(e,t)=>(0,o.Z)("https://social-plugins.line.me/lineit/share",{url:e?(0,n.Z)(e):void 0,text:t})},h=p,_={DIALOG_WIDTH:550,DIALOG_HEIGHT:420,openDialog(e){u(_._getWindowUrl(e.tweet_path,e.tweet_text),_.DIALOG_WIDTH,_.DIALOG_HEIGHT)},_getWindowUrl:(e,t)=>(0,o.Z)("https://twitter.com/intent/tweet",{via:"pinterest",url:e?(0,n.Z)(e):void 0,text:t||void 0})},m=_;var g,x,f=i(167912);const y=void 0!==g?g:g=i(166379),v=void 0!==x?x:x=i(380465),b={ObjectTypeToInviteObject:{pin:1,board:2,pinner:3,article:5,did_it:6,today_article:8,search:0},_convertToInviteObject(e){return this.ObjectTypeToInviteObject[e]||0},_logShareInvite(e,t,i){const n=this._convertToInviteObject(e.object_type),o=e.invite_channel,a=null==e.invite_category?3:e.invite_category,r=e.object_id;return l.Z.create("SentExternalInviteCallbackResource",{invite_type:{invite_category:a,invite_object:n,invite_channel:o},invite_code:t,object_id:r,client_tracking_params:e.client_tracking_params}).callCreate()},createShareInviteData(e,t){const i=this._convertToInviteObject(e.object_type),n=e.invite_channel,o=null==e.invite_category?3:e.invite_category,a=e.orbac_subject_id;if(10===o&&e.path){if(t)return(async(e,t,i)=>{var n;const o=await(0,f.fetchQuery)(e,v,{invite_category:i.toString(),url:t}).toPromise();return(e=>{var t,i,n;return{invite_code:null!==(t=null==e?void 0:e.invite_code)&&void 0!==t?t:"",invite_url:null!==(i=null==e?void 0:e.invite_url)&&void 0!==i?i:"",title:null!==(n=null==e?void 0:e.title)&&void 0!==n?n:""}})(null==o||null===(n=o.v3CreateShareLinkQuery)||void 0===n?void 0:n.data)})(t,e.path,o);return l.Z.create("ShareLinkResource",{invite_category:o,url:e.path}).callCreate().then((e=>Promise.resolve(e.resource_response.data)),(e=>Promise.reject(e)))}if(t)return(async(e,t,i,n,o)=>{var a;const r={invite_category:t,invite_object:i,invite_channel:n},s=await(0,f.fetchQuery)(e,y,{inviteType:JSON.stringify(r),objectId:o}).toPromise();return(e=>{var t,i,n;return{invite_code:null!==(t=null==e?void 0:e.invite_code)&&void 0!==t?t:"",invite_url:null!==(i=null==e?void 0:e.invite_url)&&void 0!==i?i:"",title:null!==(n=null==e?void 0:e.title)&&void 0!==n?n:""}})(null==s||null===(a=s.v3InviteUserExternalQuery)||void 0===a?void 0:a.data)})(t,o,i,n.toString(),e.object_id);{const t=e.object_id;return l.Z.create("CreateExternalInviteResource",{invite_type:{invite_category:o,invite_object:i,invite_channel:n},object_id:t,...a?{orbac_subject_id:a}:{}}).callCreate().then((e=>Promise.resolve(e.resource_response.data)),(e=>Promise.reject(e)))}},logShareInvite(e,t,i){t&&b._logShareInvite(e,t.invite_code,i)},shareFacebookInvite(e,t){const{options:i,unauthId:n,viewer:o}=e;return b.createShareInviteData(i,t).then((e=>{const a=e.invite_url,r=e.invite_code;if(a){const s={type:"share",object_type:i.object_type,object_id:i.object_id,name:i.name,caption:e.title,description:i.description,path:a,picture:i.picture,callback(e){e&&!e.error_message&&b._logShareInvite(i,r,t)}};d.open({...s,display:"popup",unauthId:n,viewer:o})}return Promise.resolve(e)}),(e=>Promise.reject(e)))},shareTwitterInvite(e,t){const i=this._convertToInviteObject(e.object_type);return b.createShareInviteData(e,t).then((n=>{const o=n.invite_url,a=n.invite_code;let r=e.description;return 6===i&&e.name&&(r=e.name),r.trim()||(r=`${n.title}\n`),o&&m.openDialog({tweet_path:o,tweet_text:r}),b._logShareInvite(e,a,t),Promise.resolve(n)}),(e=>Promise.reject(e)))},shareLineInvite(e,t){const i=this._convertToInviteObject(e.object_type);return b.createShareInviteData(e,t).then((n=>{const o=n.invite_url,a=n.invite_code;let r=e.description;return 6===i&&e.name&&(r=e.name),r.trim()||(r=`${n.title}\n`),o&&h.openDialog({share_path:o,share_text:r}),b._logShareInvite(e,a,t),Promise.resolve(n)}),(e=>Promise.reject(e)))},shareFbMessengerInvite(e,t){const{options:i,unauthId:n,viewer:o}=e;return b.createShareInviteData(i,t).then((e=>{const a=e.invite_url,r=e.invite_code;return a&&d.open({type:"send",object_type:i.object_type,object_id:i.object_id,name:i.name,caption:e.title,description:i.description,path:a,picture:i.picture,callback(e){e&&e.success&&b._logShareInvite(i,r,t)},display:"popup",unauthId:n,viewer:o}),Promise.resolve(e)}),(e=>Promise.reject(e)))}},P=b},483205:(e,t,i)=>{i.d(t,{Nv:()=>o,RZ:()=>a,b9:()=>n});const n=36,o=44,a=446},754320:(e,t,i)=>{i.d(t,{Z:()=>u});var n=i(667294),o=i(941646),a=i(898781),r=i(905031),s=i(407043),l=i(883119),c=i(444445),d=i(785893);const u=({contentIds:e,previewImageSrc:t,url:i,buttonText:u,shape:p="square",storyId:h,storyType:_,view:m,viewParameter:g,component:x,element:f})=>{const y="square"===p?4:"circle",v=(0,r.Z)()?c.tG:c.yF,{logContextEvent:b}=(0,s.v)(),P=(0,a.ZP)(),w=(0,n.useMemo)((()=>!(Number.isNaN(m)||Number.isNaN(g)||Number.isNaN(x)||Number.isNaN(f))),[m,g,x,f]);return(0,n.useEffect)((()=>{w&&b({event_type:120,view_type:m,view_parameter:g,component:x,element:f,aux_data:{content_ids:e,story_id:h,story_type:_}})}),[e,b,m,g,x,f,w,h,_]),(0,d.jsx)(o.Z,{id:"sf-action-item-rep",children:(0,d.jsx)(l.xu,{width:v,height:v,color:"secondary",rounding:y,overflow:"hidden",children:(0,d.jsx)(l.zd,{height:"100%",width:"100%",wash:!0,rounding:y,children:(0,d.jsx)(l.Ee,{src:t||"",alt:P._('Action Item Rep Preview Image', 'actionItemRep.image', 'alt text for a preview image image in action item'),color:"#fff",fit:"cover",naturalHeight:50,naturalWidth:50,children:(0,d.jsx)(l.xu,{height:"100%",width:"100%",left:!0,top:!0,alignItems:"center",justifyContent:"center",display:"flex",dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(0,0,0,0.3)"}},children:(0,d.jsx)(l.zx,{onClick:()=>{w&&b({event_type:101,view_type:m,view_parameter:g,component:x,element:f,aux_data:{content_ids:e,story_id:h,story_type:_}})},text:u,role:"link",href:i,color:"white",size:"lg"})})})})})})}},316743:(e,t,i)=>{i.d(t,{Z:()=>y});var n=i(667294),o=i(992061),a=i(898781),r=i(444445),s=i(215292),l=i(608760),c=i(883119),d=i(785893);function u({item:e={},imagePlaceholderColor:t=l.hK,onTap:i}){var u,p;const h=(0,a.ZP)(),_=null==e||null===(u=e.cover_images)||void 0===u?void 0:u[0],m=null==_?void 0:_["236x"];return(0,d.jsx)(c.iP,{onTap:i,children:(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(s.q,{children:({hovered:e,onMouseEnter:i,onMouseLeave:n})=>(0,d.jsx)(c.xu,{marginBottom:2,"data-test-id":"category-bubble",onMouseEnter:i,onMouseLeave:n,children:(0,d.jsxs)(c.zd,{height:r.yF,rounding:"circle",wash:!0,width:r.yF,children:[(0,d.jsx)(o.Z,{hovered:e,rounding:"circle"}),(0,d.jsx)(c.Ee,{alt:h._('Image previewing contents of an item', 'itemRep.userRep.previewImage', 'alt text for an image previewing the contents of an item'),color:t,fit:"cover",naturalHeight:r.yF,naturalWidth:r.yF,src:(null==m?void 0:m.url)||""})]})})}),(null==e||null===(p=e.title)||void 0===p?void 0:p.format)&&(0,d.jsx)(c.xu,{width:r.yF,children:(0,d.jsx)(c.xv,{align:"center",weight:"bold",children:e.title.format})})]})})}const p="pill";var h=i(676302),_=i(407043),m=i(276775),g=i(366428);const x=()=>{},f={2:u,3:function({item:e={},onTap:t}){const i=(0,a.ZP)(),n=null==e?void 0:e.identifier_icon_type,{icon:l,text:u}=((e,t)=>{switch(e){case 2:return{icon:"workflow-status-all",text:t._('Categories', 'NavigationBubble.NavigationIcon.utils', 'Categories navigation button text')};case 3:return{icon:"shopping-bag",text:t._('Stores', 'ExploreArticleRep.NavigationBubble.utils', 'Stores navigation button text')};case 4:return{icon:"terms",text:t._('Your items', 'ExploreArticleRep.NavigationBubble.utils', 'Your items navigation button text')};default:return{icon:null}}})(n,i);return(0,d.jsx)(c.iP,{onTap:t,tapStyle:"compress",rounding:l?5:p,children:(0,d.jsx)(s.q,{children:({active:t,hovered:i,onMouseEnter:n,onMouseLeave:a,onFocus:s,onBlur:h})=>{var _,m,g;return(0,d.jsxs)(c.xu,{"data-test-id":"navigation-bubble",onMouseEnter:n,onMouseLeave:a,onFocus:s,onBlur:h,rounding:5,children:[l&&(0,d.jsxs)(c.zd,{height:85,rounding:5,wash:!0,width:85,children:[(0,d.jsx)(o.Z,{hovered:i}),(0,d.jsx)(c.xu,{alignItems:"center",color:"secondary",display:"flex",height:"100%",justifyContent:"center",padding:2,width:"100%",children:(0,d.jsx)(c.JO,{accessibilityLabel:u||"",color:"default",icon:l,size:32})})]}),u&&(0,d.jsx)(c.xu,{marginTop:2,width:85,children:(0,d.jsx)(c.xv,{align:"center",weight:"bold",children:u})}),!l&&!u&&(null==e||null===(_=e.title)||void 0===_?void 0:_.format)&&(0,d.jsx)(c.xu,{rounding:p,dangerouslySetInlineStyle:{__style:{backgroundColor:null===(m=e.aux_fields)||void 0===m?void 0:m.button_background_color}},children:(0,d.jsx)(c.xu,{rounding:p,padding:4,dangerouslySetInlineStyle:{__style:{backgroundColor:(t?"rgba(0, 0, 0, 0.15)":i&&"rgba(0, 0, 0, 0.06)")||void 0}},children:(0,d.jsx)(c.xv,{align:"center",weight:"normal",color:"#ffffff"===(null===(g=e.aux_fields)||void 0===g?void 0:g.button_text_color)?"inverse":"default",children:(0,d.jsx)(c.xu,{maxWidth:r.yF-16,overflow:"hidden",dangerouslySetInlineStyle:{__style:{whiteSpace:"nowrap",textOverflow:"ellipsis"}},children:e.title.format})})})})]})}})})},1:function({item:e={},onTap:t}){var i;const n=(0,a.ZP)(),r=null==e||null===(i=e.cover_images)||void 0===i?void 0:i[0],l=null==r?void 0:r["236x"];return(0,d.jsx)(c.iP,{onTap:t,tapStyle:"compress",rounding:3,children:(0,d.jsx)(s.q,{children:({hovered:t,onMouseEnter:i,onMouseLeave:a})=>{var r;return(0,d.jsx)(c.xu,{"data-test-id":"search-bubble",onMouseEnter:i,onMouseLeave:a,rounding:3,children:(0,d.jsxs)(c.zd,{height:150,rounding:3,wash:!0,width:300,children:[(0,d.jsx)(o.Z,{hovered:t}),(0,d.jsx)(c.Ee,{alt:n._('Image previewing contents of an item', 'itemRep.userRep.previewImage', 'alt text for an image previewing the contents of an item'),fit:"cover",naturalHeight:150,naturalWidth:300,role:"presentation",src:(null==l?void 0:l.url)||"",children:(0,d.jsx)(c.xu,{alignItems:"center",color:"transparentDarkGray",display:"flex",justifyContent:"center",height:150,padding:3,position:"absolute",top:!0,width:300,children:(null==e||null===(r=e.title)||void 0===r?void 0:r.format)&&(0,d.jsx)(c.X6,{color:"inverse",size:"400",children:e.title.format})})})]})})}})})},4:h.Z};function y(e){var t,i;const{component:o,slotIndex:a,item:r,showExpandedHeader:s,story:l,view:p,viewParameter:h}=e,{display_options:y,type:v,id:b,content_ids:P}=l||{},{logContextEvent:w}=(0,_.v)(),S=(0,m.useHistory)(),A=null==r?void 0:r.id,k=(0,n.useMemo)((()=>({story_type:v,story_id:b,content_ids:P,article_id:A})),[A,P,b,v]),E=(0,g.Z)({componentType:o,contextLogData:k,impressionType:"Article",loggingId:A,objectIdStr:A,slotIndex:a,viewParameter:h,viewType:p}),T=s?null==y||null===(t=y.item_view_rep_style)||void 0===t?void 0:t.expanded_explore_article_rep_style:null==y||null===(i=y.item_view_rep_style)||void 0===i?void 0:i.explore_article_rep_style,{action:C}=r||{},{url:I=""}=C||{},j=Object.hasOwnProperty.call(f,T)?f[T]:u,R=s?x:()=>{S.push(I),w({event_type:101,component:o,view_type:p,view_parameter:h,aux_data:k})};return(0,d.jsx)(c.xu,{ref:E,children:(0,d.jsx)(j,{...e,onTap:R})})}},676302:(e,t,i)=>{i.d(t,{Z:()=>r,u:()=>a});var n=i(883119),o=i(785893);const a=369;function r({item:e,onTap:t,slotIndex:i}){const{action:r,aux_fields:s,cover_images:l,dominant_colors:c,title:d}=e;if(!d||!l||!r)return null;const u=l.length<=0?[{}]:l.slice(0,2);return(0,o.jsx)(n.iP,{onTap:t,tapStyle:"compress",rounding:4,children:(0,o.jsxs)(n.xu,{alignItems:"center","data-test-id":"style-bubble",display:"flex",height:258,justifyContent:"center",overflow:"hidden",position:"relative",rounding:4,width:a,children:[(0,o.jsx)(n.kC,{children:u.map(((e,t)=>{var r,s,l;return(0,o.jsx)(n.zd,{height:258,wash:!0,width:a/u.length,children:(0,o.jsx)(n.Ee,{alt:"",color:(c||[])[t],fit:"cover",naturalHeight:1,naturalWidth:1,role:"presentation",src:(null===(r=e["474x"])||void 0===r?void 0:r.url)||(null===(s=e["736x"])||void 0===s?void 0:s.url)||(null===(l=e["236x"])||void 0===l?void 0:l.url)||""})},`styleCarousel_bubble${i}_pin${t}`)}))}),(0,o.jsx)(n.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:null==s?void 0:s.button_background_color}},paddingX:4,paddingY:3,position:"absolute",rounding:"pill",children:(0,o.jsx)(n.xv,{align:"center",weight:"bold",children:(0,o.jsx)("span",{style:{color:null==s?void 0:s.button_text_color,margin:"0"},children:d.format})})})]})})}},547560:(e,t,i)=>{i.d(t,{ZP:()=>_,lf:()=>p,wg:()=>h,xR:()=>u});var n=i(1514),o=i(605706),a=i(855430),r=i(34518),s=i(50286),l=i(503390),c=i(883119),d=i(785893);const u=299,p=270,h=232;function _(e){var t;const{pinCards:i,isClicked:_,isHovered:m,item:g={},story:x}=e,f=(0,s.HG)(),y=(0,o.Z)(),v=x&&(null===(t=x.objects)||void 0===t?void 0:t.length),{board_name:b,header_text:P,top_image_dominant_color_rgb:w}=g;let S=_?106:110,A=_?u-4:u;f||(S=90,A=1===v?"100%":y?h:p);let k=155;return f||(k=y?108:148),(0,d.jsxs)(c.xu,{height:S,display:"flex",paddingY:2,position:"relative",rounding:r.N3,width:A,dangerouslySetInlineStyle:{__style:(0,l.f)(w,_,m)},children:[(0,d.jsx)(a.Z,{}),(0,d.jsx)(c.xu,{width:f?112:100,position:"relative",children:i.map(((e,t)=>(0,d.jsx)(n.Z,{fanOut:m||_,card:e,index:t,size:f?"SMALL":"MOBILE"},t)))}),(0,d.jsxs)(c.xu,{display:"flex",direction:"column",justifyContent:"center",marginStart:f?2:3,width:k,children:[(0,d.jsx)(c.xv,{size:f?"200":"100",children:P}),(0,d.jsx)(c.xv,{lineClamp:2,size:"400",weight:"bold",children:b})]})]})}},557115:(e,t,i)=>{i.d(t,{Z:()=>g});var n=i(667294),o=i(547560),a=i(1514),r=i(855430),s=i(34518),l=i(503390),c=i(883119),d=i(785893);var u=i(407043);var p=i(50286),h=i(773285);const _={1:o.ZP,3:function(e){const{pinCards:t,isClicked:i,isHovered:n,item:o}=e,{board_name:u,top_image_dominant_color_rgb:p}=o;return(0,d.jsxs)(c.xu,{height:i?165:169,display:"flex",alignItems:"end",justifyContent:"center",paddingX:4,paddingY:3,position:"relative",rounding:s.N3,width:i?232:236,dangerouslySetInlineStyle:{__style:(0,l.f)(p,i,n)},children:[(0,d.jsx)(r.Z,{}),t.map(((e,t)=>(0,d.jsx)(a.Z,{fanOut:n||i,card:e,index:t,size:"DEFAULT"},t))),(0,d.jsx)(c.xv,{align:"center",lineClamp:1,size:"200",weight:"bold",children:u})]})},4:function(e){const{logContextEvent:t}=(0,u.v)(),{pinCards:i,isHovered:n,item:o,view:p,viewParameter:h}=e,{board_name:_,header_text:m,ideas_deep_link_url:g,top_image_dominant_color_rgb:x}=o;return(0,d.jsxs)(c.xu,{alignItems:"center",direction:"column",display:"flex",justifyContent:"end",marginBottom:6,minHeight:377,position:"relative",paddingX:4,paddingY:8,rounding:s.N3,width:236,dangerouslySetInlineStyle:{__style:(0,l.f)(x,!1,n)},children:[i.map(((e,t)=>(0,d.jsx)(a.Z,{fanOut:n,card:e,index:t,size:"LARGE"},t))),(0,d.jsx)(c.xu,{height:168,width:"100%"}),(0,d.jsx)(r.Z,{}),(0,d.jsxs)(c.kC,{alignItems:"stretch",direction:"column",height:"100%",justifyContent:"end",children:[(0,d.jsxs)(c.xu,{display:"flex",direction:"column",alignItems:"center",marginTop:5,marginBottom:5,children:[(0,d.jsx)(c.xu,{marginBottom:1,children:(0,d.jsx)(c.xv,{size:"200",weight:"bold",children:m})}),(0,d.jsx)(c.xv,{align:"center",size:"500",weight:"bold",children:_})]}),(0,d.jsx)(c.xu,{display:"flex",justifyContent:"center",marginTop:1,position:"relative",width:"100%",children:(0,d.jsx)(c.zx,{color:"white",href:g.concat("?ideas_referrer=25"),size:"lg",onClick:({event:e})=>{e.stopPropagation(),t({event_type:101,view_type:p,view_parameter:h,component:14268,element:13002,object_id_str:o.board_id})},role:"link",text:"Explore"})})]})]})}},m=["100%","60%"];function g(e){var t;const{component:i,isInViewOrNext:o,item:{board_id:a,ideas_deep_link_url:r,images:g,image_dominant_color_rgb:x},slotIndex:f,story:y={},view:v,viewParameter:b}=e,{logContextEvent:P}=(0,u.v)(),w=(0,p.ZP)(),{display_options:S,objects:A}=y,k=null==A?void 0:A.length,[E,T]=(0,n.useState)(!1),[C,I]=(0,n.useState)(!1),[j,R]=(0,n.useState)(!1),{group:D}=(0,h.F)().checkExperiment("hfp_hf_more_ideas_structured_feed_web"),z="enabled_variant_one_image"===D,O="enabled_variant_small_images"===D;(0,n.useEffect)((()=>{if(!z&&"desktop"===w){const e=setTimeout((()=>R(!0)),700);return()=>{clearTimeout(e)}}}),[w,z]);let L=[];const N="desktop"!==w?s.mS:s.S$;(o||"desktop"!==w)&&(L=j?O?[g[N][0]].concat(...g[s.fI].slice(1)):[...g[N]]:[g[N][0]]);const B=3-L.length;for(let n=0;nT(!0),onMouseLeave:()=>T(!1),onMouseDown:()=>I(!0),onTap:()=>P({event_type:101,view_type:v,view_parameter:b,component:F,element:13002,object_id_str:a,aux_data:{index:f,total_object_count:k}}),children:(0,d.jsx)(Z,{isClicked:C,isHovered:E,pinCards:L,...e})})}},1514:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(883119),o=i(785893);const a={MOBILE:{HEIGHT_PX:64,WIDTH_PX:48},SMALL:{HEIGHT_PX:72,WIDTH_PX:54},DEFAULT:{HEIGHT_PX:96,WIDTH_PX:72},LARGE:{HEIGHT_PX:130,WIDTH_PX:98}},r=(e,t,i)=>{let n;switch(i){case"MOBILE":n={0:{transform:"rotate(-15deg)",top:"6px",left:"16px"},1:{transform:"rotate(0deg)",top:"3px",left:"30px"},2:{transform:"rotate(15deg)",top:"6px",left:"44px"}};break;case"SMALL":n={0:{transform:t?"rotate(-22deg)":"rotate(-15deg)",top:"12px",left:"12px"},1:{transform:t?"rotate(1deg)":"rotate(0deg)",top:t?"6px":"10px",left:"26px"},2:{transform:t?"rotate(24deg)":"rotate(15deg)",top:"12px",left:"40px"}};break;case"LARGE":n={0:{transform:t?"rotate(-26deg)":"rotate(-15deg)",top:"50px",left:"44px"},1:{transform:t?"rotate(1deg)":"rotate(0deg)",top:t?"36px":"40px",left:"68px"},2:{transform:t?"rotate(26deg)":"rotate(15deg)",top:"56px",left:"98px"}};break;default:n={0:{transform:t?"rotate(-22deg)":"rotate(-15deg)",top:"20px",left:"64px"},1:{transform:t?"rotate(1deg)":"rotate(0deg)",top:t?"10px":"14px",left:"82px"},2:{transform:t?"rotate(24deg)":"rotate(15deg)",top:"20px",left:"100px"}}}const o=n[e];return o.border="1px solid #FFFFFF",o.transition="all 150ms ease-out",o};function s({fanOut:e,card:t,index:i,size:s}){const l=a[s],{height:c=l.HEIGHT_PX,url:d,width:u=l.WIDTH_PX,colorRGB:p,opacity:h}=t;let _;return d?_=(0,o.jsx)(n.Ee,{alt:d,fit:"cover",naturalHeight:c,naturalWidth:u,src:d}):p&&h&&(_=(0,o.jsx)(n.xu,{height:l.HEIGHT_PX,width:l.WIDTH_PX,dangerouslySetInlineStyle:{__style:{backgroundColor:`rgba(${p.join(", ")}, ${h})`}}})),(0,o.jsx)(n.xu,{rounding:5,position:"absolute",dangerouslySetInlineStyle:{__style:r(i,e,s)},children:(0,o.jsx)(n.zd,{height:l.HEIGHT_PX,rounding:5,width:l.WIDTH_PX,wash:!0,children:_})})}},855430:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(883119),o=i(34518),a=i(785893);function r(){return(0,a.jsx)(n.xu,{position:"absolute",rounding:o.N3,top:!0,bottom:!0,right:!0,left:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(0, 0, 0, 0.03)"}}})}},34518:(e,t,i)=>{i.d(t,{N3:()=>n,Ql:()=>o,S$:()=>r,a$:()=>a,fI:()=>l,mS:()=>s});const n=4,o=.35,a=.5,r="170x",s="236x",l="70x"},503390:(e,t,i)=>{i.d(t,{f:()=>o,k:()=>a});var n=i(34518);const o=(e,t,i)=>{return{backgroundColor:`rgba(${e.join(", ")}, ${o=i||t,o?n.a$:n.Ql})`,marginRight:t?"2px":"0px",marginLeft:t?"2px":"0px"};var o},a={1:14114,3:14074,4:14268}},988874:(e,t,i)=>{i.d(t,{Z:()=>h});var n=i(656226),o=i(905031),a=i(883119),r=i(91885),s=i(477802),l=i(826067),c=i(276775),d=i(444445),u=i(785893);const p=e=>null!=e&&e.shop_source||["product_pins","shopping_list"].includes(null==e?void 0:e.story_type)?"ShoppingDynamicHeightGrid":"StoryFeedNonProduct";function h(e){var t,i,h;const{pins_display:_}=(0,l.mB)((0,c.useLocation)().search),{component:m,slotIndex:g,item:x,story:f,surface:y,view:v,viewParameter:b}=e,P=(0,o.Z)()?d.tG:d.yF;if(!x)return null;const{story_type:w,id:S,content_ids:A,display_options:k}=f||{},{pins_display:E}=(null==k?void 0:k.content_display)||{},{id:T,debug:C}=x,I=![3,1].includes(null!=E?E:Number(_)),j={story_type:w,story_id:S,content_ids:A},R=(0,u.jsxs)(a.xu,{"data-test-id":r.Kb,children:[(0,u.jsx)(n.default,{pin:x,pinId:T,pinImageCrop:I?{height:P,width:P}:null,authDesktopSurface:y||p(f),impressionData:j,auxData:j,componentType:null!==(t=null==f||null===(i=f.display_options)||void 0===i||null===(h=i.content_display)||void 0===h?void 0:h.component_type)&&void 0!==t?t:m,slotIndex:g,viewData:{pin_id:T},viewParameter:b,viewType:v}),C&&(0,u.jsx)(s.W,{data:C})]});return I?(0,u.jsx)(a.xu,{flex:"none",width:P,children:R},T):R}},36546:(e,t,i)=>{i.d(t,{Z:()=>S});var n=i(667294),o=i(992061),a=i(898781),r=i(215292),s=i(349700),l=i(883119),c=i(785893);function d({color:e,fullName:t,size:i,src:n}){const d=(0,a.ZP)();return(0,c.jsx)(r.q,{children:({hovered:a,onMouseEnter:r,onMouseLeave:u})=>(0,c.jsx)(l.xu,{marginBottom:2,"data-test-id":"category-bubble",onMouseEnter:r,onMouseLeave:u,children:(0,c.jsxs)(l.zd,{height:i,rounding:"circle",width:i,wash:!0,children:[(0,c.jsx)(o.Z,{hovered:a,rounding:"circle"}),(0,c.jsx)(l.Ee,{naturalHeight:i,naturalWidth:i,src:n,color:e,alt:(0,s.nk)(d._('Logo of {{ fullName }}', 'itemRep.userRep.brandLogo', 'Alt text for the brand logo'),{fullName:t}).join("")})]})})})}const u=({name:e})=>(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{textAlign:"center"}},children:(0,c.jsxs)(l.xv,{inline:!0,weight:"bold",children:[e.toUpperCase()+" ",(0,c.jsx)(l.JO,{accessibilityLabel:"Pin",color:"shopping",icon:"check-circle",inline:!0})]})});var p=i(444445),h=i(608760);const _=({item:e={},imagePlaceholderColor:t=h.hK})=>{const{username:i,image_large_url:n,full_name:o}=e;return(0,c.jsxs)(l.xu,{width:p.yF,children:[(0,c.jsx)(l.xu,{display:"flex",justifyContent:"center",marginBottom:2,children:(0,c.jsx)(d,{size:120,fullName:o||i,src:n||"",color:t})}),o&&(0,c.jsx)(u,{name:o})]})};function m({height:e,width:t,src:i}){return(0,c.jsx)(l.xu,{height:e,width:t,children:(0,c.jsx)(l.Ee,{naturalHeight:e,naturalWidth:t,src:i,color:"lightGray",fit:"cover",alt:""})})}const g=.4*p.yF,x=.75*p.yF,f=({item:e={},story:t})=>{var i,n;const{username:o,image_large_url:a,full_name:r,id:s}=e,[h="",_=""]=(null==t||null===(i=t.custom_properties)||void 0===i||null===(n=i.preview_image_map)||void 0===n?void 0:n[s])||[];return(0,c.jsxs)(l.xu,{flex:"none",width:p.yF,height:p.yF,children:[(0,c.jsx)(l.zd,{rounding:4,height:x,width:p.yF,wash:!0,children:(0,c.jsxs)(l.kC,{children:[(0,c.jsx)(m,{height:p.yF,width:p.yF/2,src:h}),(0,c.jsx)(l.xu,{color:"default",width:2}),(0,c.jsx)(m,{height:p.yF,width:p.yF/2,src:_})]})}),(0,c.jsx)(l.xu,{display:"flex",justifyContent:"center",marginTop:-12,marginBottom:2,children:(0,c.jsx)(d,{size:g,src:a||"",color:"gray",fullName:r||o})}),r&&(0,c.jsx)(u,{name:r})]})},y=({item:e={},story:t,imagePlaceholderColor:i=h.hK})=>{var n,o,a;const{username:r,image_large_url:s,full_name:_,id:f}=e,y=(null==t||null===(n=t.custom_properties)||void 0===n||null===(o=n.preview_image_map)||void 0===o||null===(a=o[f])||void 0===a?void 0:a[0])||"";return(0,c.jsxs)(l.xu,{width:p.yF,height:p.yF,children:[(0,c.jsx)(l.zd,{rounding:4,height:x,width:p.yF,wash:!0,children:(0,c.jsx)(m,{height:p.yF,width:p.yF,src:y})}),(0,c.jsx)(l.xu,{display:"flex",justifyContent:"center",marginTop:-12,marginBottom:2,children:(0,c.jsx)(d,{size:g,src:s||"",color:i,fullName:_||r})}),_&&(0,c.jsx)(u,{name:_})]})};var v=i(407043),b=i(276775),P=i(366428);const w={5:_,1:y,2:f};function S(e){var t,i;const{logContextEvent:o}=(0,v.v)(),a=(0,b.useHistory)(),{story:r={},slotIndex:s,component:d,view:u,viewParameter:p,item:h}=e,_=(null===(t=r.display_options)||void 0===t||null===(i=t.item_view_rep_style)||void 0===i?void 0:i.user_rep_style)||5,m=w[_],g=(0,n.useMemo)((()=>({story_type:r.story_type,story_id:r.id,content_ids:r.content_ids,user_id:h.id})),[h,r]),x=(0,P.Z)({contextLogData:g,impressionType:"User",loggingId:h.id,objectIdStr:h.id,slotIndex:s,viewParameter:p,viewType:u});return m?(0,c.jsx)(l.iP,{ref:x,onTap:()=>{o({event_type:101,view_type:u,view_parameter:p,component:d,aux_data:g}),a.push(`/${h.username}`)},children:(0,c.jsx)(m,{...e})}):null}},87165:(e,t,i)=>{i.d(t,{i:()=>s});var n=i(883119),o=i(444445),a=i(785893);function r(){return(0,a.jsx)(n.xu,{width:o.yF})}function s(e){return new Array(e).fill().map(((e,t)=>(0,a.jsx)(r,{},t)))}},43485:(e,t,i)=>{i.d(t,{Z:()=>f});var n=i(316743),o=i(557115),a=i(988874),r=i(704115),s=i(760693),l=i(478144),c=i(829407),d=i(436395),u=i(883119),p=i(407043),h=i(276775),_=i(507264),m=i(785893);var g=i(36546);const x={board_more_ideas_feed_upsell:o.Z,pin:a.Z,user:g.Z,explorearticle:n.Z,productgroup:function(e){const{logContextEvent:t}=(0,p.v)(),{data:i}=(0,d.Z)(),{search:n}=(0,h.useLocation)(),{pin:o}=(0,r.Z)(n),a=o?"pdp":"profile",g=null==i?void 0:i.username,x=(0,_.N0)();if((0,c.Z)((()=>{s.Z.StructuredFeed.ProductGroups.viewProductGroup({productGroupId:e.item.id,source:a,groupType:e.item.group_type,componentType:13698},t)})),!g)return null;const f=`/${g}/_shop/${e.item.id}/`;return(0,m.jsx)(u.iP,{onTap:()=>{s.Z.StructuredFeed.ProductGroups.tapProductGroup({productGroupId:e.item.id,source:a,groupType:e.item.group_type,componentType:13698,index:e.slotIndex},t)},href:f,role:"link",children:(0,m.jsx)(l.Z,{productGroup:e.item,showControls:x})})}};function f(e){const{item:t}=e;if(null==t||!t.type||"story"===t.type&&!(t.type in x))return null;const i=x[t.type];return(0,m.jsx)(i,{...e})}},643897:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(883119),o=i(608760),a=i(785893);const r=new Map([["pin",4]]);function s({children:e,itemType:t}){return(0,a.jsx)(n.xu,{marginBottom:r.get(t)||o.mT,children:e})}},608760:(e,t,i)=>{i.d(t,{g5:()=>r,hK:()=>o,mT:()=>a});var n=i(988874);const o="lightGray",a=8,r={itemRep:n.Z,shape:"square",getImage:()=>""}},563886:(e,t,i)=>{i.d(t,{Z:()=>T});var n=i(667294),o=i(754320),a=i(435497),r=i(239062),s=i(580326),l=i(782975),c=i(848385),d=i(43485),u=i(751191),p=i(905031),h=i(605706),_=i(390598),m=i(676302),g=i(503390),x=i(50286),f=i(444445),y=i(547560),v=i(883119),b=i(455024),P=i(785893);const w=new Set([3,4]),S=new Set([1]),A=({text:e,url:t})=>Boolean(e)&&Boolean(t),k=e=>A(e)&&w.has(e.location),E=e=>A(e)&&S.has(e.location);function T(e){var t,i,w,S,A,T,C,I,j,R,D,z;const{componentFallback:O,initialSlotIndex:L=0,story:N,surface:B,view:M,viewParameter:Z}=e,{title:F,objects:U,id:V="",action:G,story_type:H}=N,[W,$]=(0,n.useState)(0),K=(0,n.useRef)(null),q=(0,p.Z)(),Y=(0,x.HG)(),X=(0,h.Z)();if(!Array.isArray(U))return null;const J=null!==(t=null===(i=N.display_options)||void 0===i||null===(w=i.content_display)||void 0===w?void 0:w.component_type)&&void 0!==t?t:O,Q=1===(null===(S=N.display_options)||void 0===S?void 0:S.carousel_fade_ends),ee=U,te=ee.length,ie={index:W,carousel_slots:ee},{text:ne,url:oe}=null!=G?G:{},ae={backgroundColor:"default",hoverColor:"default",iconColor:"default"},re=null===(A=N.display_options)||void 0===A||null===(T=A.item_view_rep_style)||void 0===T?void 0:T.more_ideas_rep_style,se=1===re,le=g.k[re],ce=4===(null===(C=N.display_options)||void 0===C||null===(I=C.item_view_rep_style)||void 0===I?void 0:I.explore_article_rep_style),de=13698===(null===(j=N.display_options)||void 0===j||null===(R=j.content_display)||void 0===R?void 0:R.component_type),ue=(({isMoreIdeasListCard:e,isStyleBubble:t,isStorefrontSpotlightCarousel:i,isSfModuleOnMobile:n,isDesktop:o,isSmallMobileScreen:a,totalObjectCount:r,containerRef:s})=>{var l;return e?o?y.xR:1===r?(null===(l=s.current)||void 0===l?void 0:l.clientWidth)||0:a?y.wg:y.lf:t?m.u:i?_.Z.WIDTH:n?f.tG:f.yF})({containerRef:K,isMoreIdeasListCard:se,isStyleBubble:ce,isStorefrontSpotlightCarousel:de,isSfModuleOnMobile:q,isDesktop:Y,isSmallMobileScreen:X,totalObjectCount:te}),pe=se&&!Y,he=!Y&&se?8:f.oX,_e=ee.filter(Boolean),me=(0,b.tD)({slotWidth:ue,containerWidth:(null===(D=K.current)||void 0===D?void 0:D.clientWidth)||0,gap:he,numberOfSlides:_e.length,index:W});return(0,P.jsxs)(v.kC,{direction:"column",children:[F&&(0,P.jsx)(c.Z,{story:N}),(0,P.jsxs)(v.xu,{position:"relative",ref:K,marginBottom:Y?8:0,children:[!pe&&(0,P.jsx)(r.default,{backNode:(0,P.jsx)(u.Z,{...ae,showFab:!0,iconType:"back"}),carouselData:ie,carouselIndex:W,componentType:J,forwardNode:(0,P.jsx)(u.Z,{...ae,showFab:!0,iconType:"forward"}),handleCarouselSwipe:e=>{$(e)},isShowingLastSlide:me,pinId:V,viewParameter:Z,viewType:M,contextLogData:re?{index:W}:{}}),(0,P.jsxs)(a.Z,{componentType:le,containerRef:K,contextLogData:re?{total_object_count:te,storyType:H,boardIdStr:null===(z=_e[W])||void 0===z?void 0:z.board_id,slotIndex:W,story_id:N.id}:{},gap:he,id:"structured-feed-carousel-module",impressionType:re?"BoardMoreIdeasRep":"Pin",index:W,shouldBeDragCarousel:pe,slideWidth:ue,viewParameter:Z,view:M,children:[_e.map(((e,t)=>{var i;return(0,P.jsx)(d.Z,{isInViewOrNext:(0,b.Iw)({slotWidth:ue,containerWidth:(null===(i=K.current)||void 0===i?void 0:i.clientWidth)||0,gap:he,numberOfSlides:_e.length,index:t,currentIndex:W}),item:e,slotIndex:L+t,story:N,surface:B,view:M,viewParameter:Z},(0,l.Z)(e,t))})),G&&ne&&oe&&k(G)&&(0,P.jsx)(o.Z,{contentIds:N.content_ids,buttonText:ne,url:oe,storyId:N.id,storyType:H,view:M,viewParameter:Z,component:J})]}),Q&&W>0&&(0,P.jsx)(v.xu,{height:"100%",position:"absolute",left:!0,top:!0,width:80,dangerouslySetInlineStyle:{__style:{background:"linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%)"}}}),Q&&!me&&(0,P.jsx)(v.xu,{height:"100%",position:"absolute",right:!0,top:!0,width:80,dangerouslySetInlineStyle:{__style:{background:"linear-gradient(270deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%)"}}})]}),G&&E(G)&&(0,P.jsx)(v.xu,{marginTop:4,children:(0,P.jsx)(s.Z,{story:N})})]})}},580326:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(883119),o=i(785893);function a({story:e}){const{url:t,text:i,location:a}=e.action||{};return 1===a&&t&&i?(0,o.jsx)(n.kC,{alignItems:"center",justifyContent:"center",children:(0,o.jsx)(n.zx,{text:i,role:"link",href:t})}):null}},848385:(e,t,i)=>{i.d(t,{Z:()=>_});var n=i(116303),o=i(941646),a=i(865607),r=i(407043),s=i(276775),l=i(883119),c=i(785893);const d={1:"start",2:"center"},u={1:"100",2:"300"},p={1:"400",3:"500",2:"600"},h=new Set([2,4]);function _({isNavigationHeader:e,showExpanded:t=!1,story:i,view:_,viewParameter:m}){var g,x;const f=(0,s.useHistory)(),{logContextEvent:y}=(0,r.v)(),{full_name:v,is_verified_merchant:b,verified_identity:P,username:w,image_medium_url:S}=i.user||{},A=v||(null===(g=i.title)||void 0===g?void 0:g.format),{url:k,text:E,location:T}=i.action||{},C=k||w||"",I=i.display_options||{},j=I.header_display||{},R=t?j.expanded_text_alignment:j.text_alignment,D=d[R||1],z=d[j.subtitle_alignment||1],O=u[j.header_size||1],L=p[j.header_size||1],N=(e,t)=>null!=e?e:t,B=N(I.title_text_color,"default"),M=(Z=I.title_text_color,F="default",null!=Z?Z:F);var Z,F;const U=N(I.subtitle_text_color,"subtle"),V=1===j.title_position,G=()=>{var e;return null!==(e=i.subtitle)&&void 0!==e&&e.format?(0,c.jsx)(l.X6,{size:L,color:U,align:z,children:i.subtitle.format}):null},H=e&&t,W=(0,c.jsx)(l.X6,{accessibilityLevel:2,size:L,color:B,align:D,children:A});return(0,c.jsx)(l.xu,{marginBottom:H?0:4,children:(0,c.jsxs)(l.kC,{gap:{row:0,column:2},direction:"column",children:[V&&(0,c.jsx)(G,{}),(0,c.jsxs)(l.kC,{alignItems:"center",justifyContent:D,children:[w&&S&&(0,c.jsx)(n.Z,{name:w,size:"sm",src:S}),(0,c.jsxs)(l.xu,{marginStart:2,alignItems:"baseline",justifyContent:D,display:"flex",flex:t?void 0:"shrink",width:t?"100%":void 0,children:[C?(0,c.jsx)(o.Z,{id:"sf-header-heading",children:(0,c.jsx)(l.iP,{role:"link",href:C,onTap:()=>{return e=C,y({component:null===(t=I.content_display)||void 0===t?void 0:t.component_type,event_type:101,view_parameter:m,view_type:_}),void f.push(`/${e}`);var e,t},tapStyle:"compress",children:W})}):W,b&&(0,c.jsx)(l.xu,{marginStart:2,children:(0,c.jsx)(a.Z,{hasVerifiedIdentity:Boolean(null==P?void 0:P.verified),isVerifiedMerchant:b,size:"xs"})})]}),h.has(T)&&k&&E&&(0,c.jsx)(l.xu,{marginStart:6,children:(0,c.jsx)(l.zx,{text:E,role:"link",href:k})})]}),!V&&(0,c.jsx)(G,{}),null!==(x=i.description)&&void 0!==x&&x.format?(0,c.jsx)(l.xv,{size:O,color:M,align:D,weight:"bold",children:i.description.format}):null]})})}},896731:(e,t,i)=>{i.r(t),i.d(t,{default:()=>U});var n=i(563886),o=i(580326),a=i(316743),r=i(848385),s=i(988874),l=i(36546),c=i(608760),d=i(444445),u=i(883119),p=i(785893);const h=()=>(0,p.jsx)(u.xu,{height:d.yF,width:d.yF,color:"secondary"}),_={1:{itemRep:s.Z,deprecatedActionShape:"square",deprecatedGetActionImage:e=>{var t,i;return(null===(t=e.images)||void 0===t||null===(i=t.orig)||void 0===i?void 0:i.url)||""}},4:{itemRep:a.Z,deprecatedActionShape:"circle",deprecatedGetActionImage:e=>{var t,i;return(null===(t=e.images)||void 0===t||null===(i=t.orig)||void 0===i?void 0:i.url)||""}},2:{itemRep:l.Z,deprecatedActionShape:"circle",deprecatedGetActionImage:e=>e.image_large_url}};var m=i(754320);var g=i(643897),x=i(905031),f=i(87165),y=i(681291);const v="rgba(0, 0, 0, 0)",b=()=>(0,p.jsx)(u.xu,{height:d.yF,width:d.yF,color:"secondary"}),P={1:{itemRep:s.Z,deprecatedActionShape:"square",deprecatedGetActionImage:e=>{var t,i;return(null===(t=e.images)||void 0===t||null===(i=t.orig)||void 0===i?void 0:i.url)||""}},4:{itemRep:a.Z,deprecatedActionShape:"circle",deprecatedGetActionImage:e=>{var t,i;return(null===(t=e.images)||void 0===t||null===(i=t.orig)||void 0===i?void 0:i.url)||""}},2:{itemRep:l.Z,deprecatedActionShape:"circle",deprecatedGetActionImage:e=>e.image_large_url}};function w({componentFallback:e,initialSlotIndex:t=0,isNavigationHeader:i,showExpanded:n,story:o,view:a,viewParameter:s}){var l,h,_,w,S,A;const k=(null===(l=o.display_options)||void 0===l?void 0:l.content_display)||{},E=k.model_type,T=P[E]||c.g5,C=T.itemRep||b,{action:I}=o,j=(null===(h=o.action)||void 0===h?void 0:h.url)||"",R=null!==(_=null===(w=o.display_options)||void 0===w||null===(S=w.content_display)||void 0===S?void 0:S.component_type)&&void 0!==_?_:e,D=(null===(A=k.grid_layout)||void 0===A?void 0:A.rows)||1,{containerRef:z,itemsToRender:O,actionItem:L}=(0,y.n)({items:o.objects||[],itemWidth:(0,x.Z)()?d.tG:d.yF,itemGap:d.oX,actionItemType:Boolean(I)?"one":void 0,numRows:D}),N=i?function({showExpanded:e,story:t}){return t.objects&&t.expanded_viewport_objects?e?[t.expanded_viewport_objects]:t.objects:[]}({showExpanded:n,story:o}):O,B=L&&T.deprecatedGetActionImage?T.deprecatedGetActionImage(L):void 0,M=i&&n;return(0,p.jsxs)(u.xu,{display:"flex",color:"default",alignItems:"stretch",justifyContent:"start",direction:"column",children:[o.title&&!M&&(0,p.jsx)(r.Z,{story:o,showExpanded:n}),(0,p.jsxs)(y.Z,{itemGap:d.oX,containerRef:z,rowAlignment:"center",numRows:D,children:[N.map(((e,r)=>(0,p.jsx)(g.Z,{itemType:"string"==typeof e.type?e.type:null,children:(0,p.jsx)(C,{component:R,imagePlaceholderColor:v,index:r,item:e,showExpandedHeader:i&&n,slotIndex:t+r,story:o,view:a,viewParameter:s})},r))),!!j&&!(null==I||!I.text)&&(0,p.jsx)(m.Z,{contentIds:o.content_ids,buttonText:I.text,component:R,element:179,previewImageSrc:B,shape:T.deprecatedActionShape,storyId:o.id,storyType:o.story_type,url:j,view:a,viewParameter:s}),!i&&(0,f.i)(12)]})]})}function S({componentFallback:e,showExpanded:t=!0,story:i,view:n,viewParameter:o}){var a,s,l,h;const _=((null===(a=i.display_options)||void 0===a?void 0:a.content_display)||{}).model_type,m=(P[_]||c.g5).itemRep||b,g=null!==(s=null===(l=i.display_options)||void 0===l||null===(h=l.content_display)||void 0===h?void 0:h.component_type)&&void 0!==s?s:e,f=(0,x.Z)()?d.tG:d.yF;return(0,p.jsxs)(u.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[i.title&&(0,p.jsx)(r.Z,{story:i,showExpanded:t}),(0,p.jsx)(u.Rk,{columnWidth:f,renderItem:({data:e,itemIdx:t})=>(0,p.jsx)(m,{component:g,imagePlaceholderColor:v,index:t,item:e,story:i,view:n,viewParameter:o},t),gutterWidth:d.oX,items:i.objects||[],layout:"flexible"})]})}var A=i(667294),k=i(435497),E=i(239062),T=i(116303),C=i(477802),I=i(941646),j=i(898781);var R=i(407043),D=i(276775),z=i(366428);const O=({actionText:e,actionUrl:t,articleId:i,author:n,authorAvatar:o,component:a,contentIds:r,coverImage:s,debug:l,index:c,isFullWidth:d=!1,onImageLoad:h,storyId:_,storyType:m,subtitle:g,title:x,view:f,viewParameter:y,width:v,windowWidth:b})=>{const P=(0,j.ZP)(),w=(0,D.useHistory)(),{logContextEvent:S}=(0,R.v)(),[k,E]=(0,A.useState)(!1),O=(0,z.Z)({loggingId:i,objectIdStr:i,impressionType:"Article",contextLogData:{content_ids:r,story_id:_,story_type:m,article_id:i},slotIndex:c,viewParameter:y,viewType:f,componentType:a});return(0,p.jsx)(I.Z,{id:"sf-hero",children:(0,p.jsxs)(u.xu,{ref:O,width:v,height:"auto",onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),children:[(0,p.jsx)(u.iP,{onTap:()=>{S({event_type:101,view_type:f,view_parameter:y,component:a,aux_data:{article_id:i,content_ids:r,story_id:_,story_type:m}}),w.push(t)},children:(0,p.jsxs)(u.xu,{height:d?400:"35vw",maxHeight:500,overflow:"hidden",position:"relative",children:[(0,p.jsx)(u.xu,{height:"100%",width:"100%",dangerouslySetInlineStyle:{__style:{transition:"transform 0.4s",transform:k?"scale(1.5)":"scale(1)"}},children:(0,p.jsx)(u.Ee,{src:s,alt:P._('Cover image of this shopping spotlight', 'hero.heroCoverImage', 'alt text for an image previewing the contents of a spotlight article'),color:"#fff",onLoad:h,fit:"cover",naturalHeight:400,naturalWidth:400,children:(0,p.jsx)(u.xu,{display:"block",height:"100%",width:"100%",color:"transparentDarkGray",opacity:.3})})}),(0,p.jsx)(u.xu,{width:"100%",position:"absolute",padding:6,marginBottom:d?12:0,bottom:!0,children:(0,p.jsxs)(u.kC,{direction:"column",height:"100%",justifyContent:"end",children:[(0,p.jsx)(u.xu,{dangerouslySetInlineStyle:{__style:{transition:"transform 0.4s",transform:k?"translateY(-20px)":"translateY(20px)"}},children:(0,p.jsx)(u.X6,{size:b<=822?"600":b<1e3?"400":b<1100?"500":"600",color:"light",children:x})}),(0,p.jsxs)(u.xu,{display:"block",height:k?"auto":20,overflow:"hidden",dangerouslySetInlineStyle:{__style:{opacity:k?1:0,transition:k?"opacity 0.4s ease-in":"opacity 0.4s ease-out"}},children:[(0,p.jsx)(u.xv,{color:"inverse",children:g}),n&&(0,p.jsx)(u.xu,{marginTop:4,children:(0,p.jsxs)(u.kC,{direction:"row",alignItems:"center",children:[(0,p.jsx)(T.Z,{size:"md",src:o,name:n})," ",(0,p.jsx)(u.xv,{color:"inverse",children:n})]})})]}),(0,p.jsx)(u.xu,{width:"74px",marginTop:4,children:(0,p.jsx)(u.zx,{color:"white",size:"lg",onClick:()=>{w.push(t)},text:e})})]})})]})}),void 0!==l&&(0,p.jsx)(C.Z,{data:l})]})})};var L=i(751191);function N({onImageLoad:e,story:t,view:i,viewParameter:n,component:o,width:a}){var r;const[s,l]=(0,A.useState)(0),c=(0,A.useRef)(null),d=(null===(r=t.objects)||void 0===r?void 0:r.slice(0,3))||[],h={index:s,carousel_slots:d.map((e=>({id:e.id})))};return(0,p.jsxs)(u.xu,{position:"relative",display:"flex",width:a,height:400,justifyContent:"center",alignItems:"end",ref:c,children:[(0,p.jsx)(k.Z,{id:t.id,index:s,slideWidth:a,containerRef:c,children:d.map(((r,s)=>{var l,c,d,u,h;return(0,p.jsx)(O,{actionText:(null===(l=r.action)||void 0===l?void 0:l.text)||"",actionUrl:(null===(c=r.action)||void 0===c?void 0:c.url)||"",articleId:r.id,coverImage:r.cover_images&&(null===(d=r.cover_images[0].originals)||void 0===d?void 0:d.url)||"",debug:r.debug,onImageLoad:e,storyId:t.id,storyType:t.story_type,subtitle:(null===(u=r.subtitle)||void 0===u?void 0:u.format)||"",title:(null===(h=r.title)||void 0===h?void 0:h.format)||"",index:s,isFullWidth:!0,view:i,viewParameter:n,component:o,width:a,windowWidth:a},r.id)}))}),(0,p.jsx)(u.xu,{display:"inlineBlock",height:"auto",position:"absolute",width:"60%",paddingY:5,children:(0,p.jsx)(E.default,{addEllipsis:!0,pinId:t.id,carouselIndex:s,carouselData:h,handleCarouselSwipe:e=>{l(e)},forwardNode:(0,p.jsx)(L.Z,{showFab:!0,iconType:"forward",iconColor:"inverse"}),backNode:(0,p.jsx)(L.Z,{showFab:!0,iconType:"back",iconColor:"inverse"})})})]})}function B({component:e,onImageLoad:t,story:i,view:n,viewParameter:o,windowWidth:a}){var r;const s=(null===(r=i.objects)||void 0===r?void 0:r.slice(0,3))||[];return(0,p.jsxs)(A.Fragment,{children:[(0,p.jsx)(u.xu,{flex:"grow",dangerouslySetInlineStyle:{__style:{backgroundColor:s[0].dominant_colors[0]}}}),s.map(((r,s)=>{var l,c,d,u,h;return(0,p.jsx)(O,{actionText:(null===(l=r.action)||void 0===l?void 0:l.text)||"",actionUrl:(null===(c=r.action)||void 0===c?void 0:c.url)||"",articleId:r.id,coverImage:r.cover_images&&(null===(d=r.cover_images[0].originals)||void 0===d?void 0:d.url)||"",debug:r.debug,index:s,onImageLoad:t,storyId:i.id,storyType:i.story_type,subtitle:(null===(u=r.subtitle)||void 0===u?void 0:u.format)||"",title:(null===(h=r.title)||void 0===h?void 0:h.format)||"",view:n,viewParameter:o,component:e,width:500,windowWidth:a},r.id)})),(0,p.jsx)(u.xu,{flex:"grow",dangerouslySetInlineStyle:{__style:{backgroundColor:s[2].dominant_colors[0]}}})]})}var M=i(792182);const Z={90:n.Z,88:r.Z,89:o.Z,91:function(e){var t,i;switch(null===(t=e.story.display_options)||void 0===t||null===(i=t.content_display)||void 0===i?void 0:i.pins_display){case 3:case 1:return(0,p.jsx)(S,{...e});case 2:default:return(0,p.jsx)(w,{...e})}},101:function({component:e,pwtSurfaceContext:t,story:i,view:n,viewParameter:o}){const{width:a}=(0,M.Z)()||{},r=()=>{t&&t.markConstraintComplete("RenderHeroImages")},s=!a||a>822?3:1;return(0,p.jsx)(A.Fragment,{children:(0,p.jsx)(u.kC,{alignItems:"stretch",direction:"row",justifyContent:"start",width:a,children:3===s?(0,p.jsx)(B,{component:e,onImageLoad:r,story:i,windowWidth:a,view:n,viewParameter:o}):(0,p.jsx)(N,{component:e,onImageLoad:r,story:i,width:a,view:n,viewParameter:o})})})},92:function({story:e}){var t;const i=(0,D.useHistory)(),{user:n,custom_properties:o,action:a}=e||{},{full_name:r,username:s,image_medium_url:l}=n||{},c=r||(null===(t=e.title)||void 0===t?void 0:t.format)||"",{url:h,text:_}=a||{},{image:m}=o||{};if(!h||!_)return null;const g=(0,p.jsxs)(u.xu,{height:"100%",padding:2,display:"flex",justifyContent:"center",alignItems:"center",color:"transparentDarkGray",position:"relative",children:[s&&l&&(0,p.jsx)(u.xu,{position:"absolute",top:!0,left:!0,padding:2,children:(0,p.jsx)(T.Z,{name:s,size:"sm",src:l})}),c&&(0,p.jsx)(u.xv,{color:"inverse",weight:"bold",children:c})]});return(0,p.jsxs)(u.xu,{marginBottom:4,width:d.yF,children:[(0,p.jsx)(u.iP,{onTap:()=>i.push(h),children:(0,p.jsx)(u.zd,{rounding:2,wash:!0,height:d.yF,children:"string"==typeof m&&m?(0,p.jsx)(u.Ee,{naturalHeight:d.yF,naturalWidth:d.yF,src:m,fit:"contain",alt:c,children:g}):(0,p.jsx)(u.xu,{width:d.yF,height:d.yF,children:g})})}),(0,p.jsx)(u.xu,{marginTop:3,children:(0,p.jsx)(u.zx,{fullWidth:!0,text:_,role:"link",href:h})})]})},131:function({componentFallback:e,showExpanded:t=!0,story:i,view:n,viewParameter:o}){var a,s,l,d,m;const g=((null===(a=i.display_options)||void 0===a?void 0:a.content_display)||{}).model_type,x=(_[g]||c.g5).itemRep||h,f=null!==(s=null===(l=i.display_options)||void 0===l||null===(d=l.content_display)||void 0===d?void 0:d.component_type)&&void 0!==s?s:e;return(0,p.jsx)(u.xu,{marginBottom:2,children:(0,p.jsxs)(u.kC,{alignItems:"stretch",justifyContent:"center",direction:"column",children:[i.title&&(0,p.jsx)(r.Z,{story:i,showExpanded:t}),(0,p.jsx)(u.kC,{wrap:!0,gap:2,justifyContent:"center",children:null===(m=i.objects)||void 0===m?void 0:m.map((function(e,t){return(0,p.jsx)(x,{component:f,imagePlaceholderColor:"rgba(0, 0, 0, 0)",index:t,item:e,story:i,view:n,viewParameter:o},t)}))})]})})}};const F=new Set([101]);function U(e){var t,i;const{componentFallback:n,story:o,view:a,viewParameter:r,width:s,initialSlotIndex:l}=e,{id:c,story_type:d,display_options:h,container_type:_,content_ids:m}=o,g=null!==(t=null==h||null===(i=h.content_display)||void 0===i?void 0:i.component_type)&&void 0!==t?t:n,x=(0,z.Z)({componentType:g,contextLogData:{story_id:c,story_type:d,content_ids:m},impressionType:"Story",loggingId:c,slotIndex:l||0,viewParameter:r,viewType:a}),f=function(e){return Z[e]||null}(_);return f?(0,p.jsx)(u.xu,{ref:x,width:(y=o,F.has(y.container_type)?void 0:s),children:(0,p.jsx)(f,{...e,component:g})}):null;var y}},700398:(e,t,i)=>{i.d(t,{Z:()=>o});const n=new Set([90,88,89,91,101,92,131]);function o(e){return n.has(e)}},605706:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(667294),o=i(50286);function a(){const[e,t]=(0,n.useState)(!1),i=(0,o.HG)();return(0,n.useEffect)((()=>{!i&&window.innerWidth<320&&t(!0)}),[i,t]),e}},782975:(e,t,i)=>{function n(e,t){var i;const n=`${e.type||""} ${t.toString()}`;switch(e.type){case"pin":return e.title||n;case"user":return e.username||n;case"explorearticle":return(null===(i=e.title)||void 0===i?void 0:i.format)||n;case"story":return e.id||n;default:return n}}i.d(t,{Z:()=>n})},673108:(e,t,i)=>{i.d(t,{Z:()=>o});const n=new Set([92]);function o(e){const t=[];return e.forEach((e=>{if("story"!==(i=e).type||n.has(i.container_type)){const i=t[t.length-1];Array.isArray(i)?i.push(e):t.push([e])}else t.push(e);var i})),t}},905031:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(792182),o=i(444445);function a(){const{width:e}=(0,n.Z)()||{width:0};return e<2*o.yF+o.$H}},941646:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(883119),o=i(785893);function a(e){const{children:t,display:i,id:a}=e;return(0,o.jsx)(n.xu,{"data-test-id":a,display:i,children:t})}},170815:(e,t,i)=>{i.d(t,{Z:()=>a});const n=!("undefined"==typeof window||!window.performance||!window.performance.now);function o(){return n?window.performance.now():Date.now()}class a{constructor(){var e,t,i;i=null,(t="startTime")in(e=this)?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}start(){this.startTime=o()}end(){this.elapsedTime=Math.round(o()-(this.startTime||Date.now())),this.startTime=n?Math.round(this.startTime||Date.now()):null}getCompletedTime(){return this.elapsedTime}}},512176:(e,t,i)=>{i.d(t,{Z:()=>d});var n=i(667294),o=i(898781),a=i(112690),r=i(967181),s=i(883119),l=i(785893);const c={sm:12,md:16,lg:20,xl:24};function d({isVerifiedMerchant:e,size:t,showText:i,showVerifiedIdentity:d,inspirationalBadges:u,inspirationalBadgesColor:p}){const h=(0,o.ZP)(),[_,m]=(0,n.useState)(!1),{dangerousInlineStyle:g,iconColor:x}=(0,r.W)(!!e),f=(0,a.Z)();return(0,l.jsxs)(n.Fragment,{children:[(0,l.jsx)(s.iP,{onTap:()=>{f({component:13534,element:11717,event_type:102}),m(!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._('Merchant verification badge icon', 'merchantVerification.badge.icon', 'Badge indicating that a merchant or user is verified'):h._('Badge icon', 'merchantVerification.badge.icon', 'Badge indicating that a merchant or user is verified'),icon:"workflow-status-ok",color:x,inline:!0,size:c[t]}),i&&!d&&(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._('Verified merchant', 'creator.header.verifiedMerchant', 'this merchant is a verified merchant')})})})]})}),(e||i&&!d)&&(0,l.jsx)(r.Z,{showModal:_,setShowModal:m,inspirationalBadges:u,inspirationalBadgesColor:p})]})}},967181:(e,t,i)=>{i.d(t,{W:()=>u,Z:()=>p});var n=i(667294),o=i(121151),a=i(898781),r=i(112690),s=i(966113),l=i(752403),c=i(883119),d=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,a.ZP)(),[_,m]=(0,n.useState)(!0),{dangerousInlineStyle:g,iconColor:x}=u(!0),f=(0,r.Z)();return(0,n.useEffect)((()=>{i&&_&&(m(!1),f({event_type:13,component:13534}))}),[i]),(0,d.jsx)(o.ZP,{"data-test-id":"modal",isOpen:i,mobileAccessibilityCloseIconLabel:h._('Close', 'Close modal window', 'Close modal'),onDismiss:()=>{f({component:13534,element:11716,event_type:102}),p(!1)},type:"verified_merchant_modal",children:(0,d.jsx)(c.xu,{padding:3,children:(0,d.jsxs)(c.xu,{display:"flex",direction:"column",padding:2,"data-test-id":"verified-badge-modal",children:[(0,d.jsx)(c.xu,{display:"flex",dangerouslySetInlineStyle:g,justifyContent:"center",children:(0,d.jsx)(c.JO,{accessibilityLabel:h._('Merchant verification badge icon', 'creator.verifiedMerchant.modalIcon', 'Badge indicating that a merchant or user is verified'),color:x,icon:"workflow-status-ok",size:24})}),(0,d.jsx)(c.xu,{marginTop:4,children:(0,d.jsx)(c.xv,{color:"shopping",weight:"bold",align:"center",children:(0,d.jsx)(c.xu,{dangerouslySetInlineStyle:g,children:h._('Verified merchant', 'creator.verifiedMerchant.modalHeader', 'this merchant is a verified merchant')})})}),(0,d.jsx)(c.xu,{marginTop:4,marginBottom:4,children:(0,d.jsx)(c.xv,{align:"center",overflow:"normal",children:h._('This retailer meets Pinterest\'s Merchant Guidelines', 'creator.verifiedMerchant.modalText.', 'this merchant is a verified merchant')})}),e.map((e=>(0,d.jsxs)(c.xu,{display:"flex",direction:"column",marginTop:4,children:[(0,d.jsx)(c.kC,{alignItems:"stretch",justifyContent:"center",children:(0,d.jsx)(c.xv,{overflow:"noWrap",size:"100",weight:"bold",children:(0,d.jsx)(c.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,d.jsx)(c.xu,{marginTop:2,children:(0,d.jsx)(c.xv,{align:"center",overflow:"normal",children:e.description})})]},e.id))),(0,d.jsx)(c.xu,{display:"flex",marginTop:8,justifyContent:"center",width:"100%","data-test-id":"verified-badge-modal-learn-more",children:(0,d.jsx)(c.zx,{role:"link",accessibilityLabel:h._('Learn more', 'creator.verifiedMerchant.buttonText', 'learn more about the verified merchant program by visiting help.pinterest.com'),target:"blank",size:"lg",href:s.vB,text:h._('Learn more', 'creator.verifiedMerchant.buttonText', 'learn more about the verified merchant program by visiting help.pinterest.com')})})]})})})}},594881:(e,t,i)=>{i.d(t,{Z:()=>u});var n=i(172071),o=i(412067),a=i(202139);var r=i(983722),s=i(635240);var l=i(385740),c=i(30287),d=i(172045);const u=function(){const e=(0,r.Z)();if(null!=e&&e.isAuthenticated&&!function(){const e=window.location.pathname.startsWith("/email/subscription")||window.location.pathname.startsWith("/email/remove"),t=window.location.pathname.startsWith("/pin/create/"),i="/pin-builder/"===window.location.pathname&&/url=/.test(window.location.href),n=t||i,{userAgent:o}=(0,r.Z)()||{userAgent:{isMobile:!1,isTablet:!1}};return!(o.isMobile||o.isTablet)&&n||e}()){var t,i;const{viewType:r,viewParameter:u}=null!==(t=(0,l.BE)())&&void 0!==t?t:{},p=(0,c.FB)(window);!function(e,t){const i=o.Z.create("ActiveUserResource",e);let r=3e4;i.callCreate().catch((o=>{let s=o.message;if(s&&"object"==typeof s){s._t_message&&delete s._t_message;try{s=JSON.stringify(s)}catch(l){s="Unable to serialize error message"}}n.Z.increment("webapp.metrics.dau.errors",1,{message:s,browser:e.data.browser,error_code:o.api_error_code,is_auth:t}),setTimeout((()=>{r>a.UK||(r*=2,i.callCreate())}),r)}))}({data:{appVersion:(0,s.Z)(),auxData:{pwa_type:p&&"unknown"!==p?p:void 0,stage:null!==(i=e.stage)&&void 0!==i?i:"unknown"},browser:e.userAgent.browserType,clientUUID:(0,d.Z)(),event_type:7137,time:1e6*Date.now(),unauth_id:e.unauthId,view_type:r,view_parameter:u}},e.isAuthenticated)}}},55259:(e,t,i)=>{i.d(t,{Z:()=>l});var n=i(794230),o=i(619937);const a={campaignFilter:"all",adGroupFilter:"all",adFilter:"all"},r=e=>{let t={};return e&&(t={objectiveTypes:[e]}),t},s={overview:()=>"/",reporting:e=>{const t=e.objectiveType||null;delete e.objectiveType;const i={...e,...r(t)};return(0,n.Z)("/reporting/campaigns/",i)},reportingAdGroup:e=>{const{campaignId:t,objectiveType:i,showAllEntities:o,adGroupId:s,message:l}=e,c=s?{adGroupIds:[s]}:{},d={campaignIds:[t],...o?a:{},...r(i),...c,message:l};return(0,n.Z)("/reporting/adgroups/",d)},campaign:e=>{const{id:t,objectiveType:i}=e;return(0,n.Z)("/reporting/adgroups/",{campaignIds:[t],...r(i)})},editCampaign:e=>e.isAutomatedCampaign?s.editAutomated({campaignId:e.id,view:"campaign"}):s.editV2({campaignId:e.id,view:"campaign"}),adgroup:e=>{const{id:t,objectiveType:i,showAllEntities:o,pinPromotionId:s,campaignId:l}=e;if("TEMPORARY_SHOPPING"===i||"CATALOG_SALES"===i)return(0,n.Z)("/reporting/productgroups/",{adGroupIds:[t],...r(i)});{const e=o?a:{},c=l?{campaignIds:[l]}:{},d=s?{pinPromotionIds:[s]}:{};return(0,n.Z)("/reporting/ads/",{adGroupIds:[t],...r(i),...e,...d,...c})}},editAdGroup:e=>e.isAutomatedCampaign?s.editAutomated({campaignId:e.id,view:"campaign"}):s.editV2({adGroupId:e.id,view:"adgroup"}),pinPromotion:e=>{const{id:t,adFilter:i}=e,o=i?{adFilter:i}:{};return(0,n.Z)("/reporting/ads/",{pinPromotionIds:[t],...o})},editPinPromotion:e=>{const t=e.isCreatingPins?{isCreatingPins:!0}:{},i=e.pinPromotionId?{pinPromotionId:e.pinPromotionId}:{};return s.editV2({adGroupId:e.adGroupId,view:"ad",...i,...t})},productGroup:e=>{const{id:t,name:i}=e;return(0,n.Z)("/reporting/productgroups/",{productGroupIds:[t],name:i})},campaigns:()=>"/reporting/campaigns/",adgroups:()=>"/reporting/adgroups/",ads:()=>"/reporting/ads/",productgroups:()=>"/reporting/productgroups/",campaignNegativeKeywords:()=>"/reporting/campaignNegativeKeywords/",campaignSearchQueries:()=>"/reporting/campaignSearchQueries/",adGroupNegativeKeywords:()=>"/reporting/adGroupNegativeKeywords/",adGroupPositiveKeywords:()=>"/reporting/adGroupPositiveKeywords/",adGroupSearchQueries:()=>"/reporting/adGroupSearchQueries/",ad:e=>s.pinPromotion(e),campaignMode:e=>(0,n.Z)("/ads/campaign_mode/",e.managedClientId?{managedClientId:e.managedClientId}:void 0),create:e=>{const{campaignId:t,objectiveType:i,partialCreate:o,catalogsFeedId:a,managedClientId:r,productGroupId:s}=e,l={};return t&&o&&(l.campaignId=t),i&&(l.objectiveType=i),"CATALOG_SALES"===i&&a&&(l.catalogsFeedId=a),s&&(l.productGroupId=s),r&&(l.managedClientId=r),(0,n.Z)("/ads/create/",l)},createAutomated:e=>(0,n.Z)("/automated/ads/create/",e),editV2:e=>(0,n.Z)("/ads/edit/",e),editAutomated:e=>(0,n.Z)("/automated/ads/edit/",e),editDraftCampaign:e=>(0,n.Z)("/ads/edit_draft/",{campaignId:e.campaignId,view:"campaign"}),duplicateCampaign:e=>(0,n.Z)("/ads/duplicate/",e),audiences:e=>(0,n.Z)("/audiences/",e.managedClientId?{managedClientId:e.managedClientId}:void 0),audience_debug:()=>"/audience_debug/",prepaid_spend_campaign_breakdown:()=>"/billing/prepaid_spend_campaign_breakdown/",billing:e=>{const{page:t,subSection:i,nextStepUrl:a}=e;switch(t){case o.kM.BILLING_HISTORY:return"/billing/history/";case o.kM.ORDER_LINES:return"/billing/order_lines/";case o.kM.PROMOTIONS:return"/billing/promotions/";case o.kM.DOCUMENTS:return"/billing/documents/";case o.kM.PREPAID_CAMPAIGN_SPEND:return"/billing/prepaid_campaign_spend_summary/";default:const e={};return i&&(e.section=i),a&&(e.next_step_link_url=a),(0,n.Z)("/billing/",e)}},bulk:e=>{const{subSection:t,page:i,jobStarted:a}=e||{};switch(i){case o.fm.UPLOAD_TEMPLATE:return(0,n.Z)("/bulk_editor/upload_template/",{section:t});case o.fm.DOWNLOAD_TEMPLATE:return(0,n.Z)("/bulk_editor/download_template/",{section:t});case o.fm.HISTORY:return(0,n.Z)("/bulk_editor/history/",{section:t,job_started:a});case o.fm.RESOURCES:return(0,n.Z)("/bulk_editor/resources/",{section:t});default:return"/bulk_editor/"}},history:e=>(0,n.Z)("/history/",e),shopping:e=>s.reporting(r("TEMPORARY_SHOPPING")),pinterest_tag:e=>{const{page:t,subSection:i,platform:a}=e;switch(t){case o.qp.PINTEREST_EVENT_HISTORY:return"/conversions/event-history/";case o.qp.CONVERSION_HEALTH:return"/conversions/health/";case o.qp.PINTEREST_TAG:return(0,n.Z)("/conversions/tag/",{subPage:i,platform:a});case o.qp.PINTEREST_TAG_EVENTS:return"/conversions/tag-events/";case o.qp.PINTEREST_TAG_HEALTH:return"/conversions/tag-health/";case o.qp.CONVERSION_UPLOAD:return(0,n.Z)("/conversions/upload/",{subPage:i});case o.qp.UPLOAD_HISTORY:return(0,n.Z)("/conversions/history/",{subPage:i});case o.qp.PCA_UPLOAD_HISTORY:return(0,n.Z)("/conversions/pca_history/",{subPage:i});case o.qp.PCA_UPLOAD:return(0,n.Z)("/conversions/pca_upload/",{subPage:i});case o.qp.CONVERSIONS_API_MANAGER:return"/conversions/api_manager/";case o.qp.CONVERSIONS_API_MANUAL_SETUP_FLOW:return"/conversions/api_manual_setup/";case o.qp.CONVERSIONS_API_ACCESS_TOKEN:return"/conversions/access_token/";case o.qp.CONVERSIONS_API_DEDUPLICATION:return"/conversions/deduplication/";default:return"/conversions/tag/"}},"pin-builder":e=>(0,n.Z)("/pin-builder/",e),purchases:()=>s.reporting(r("PURCHASE")),awareness_reserved:()=>s.reporting(r("IMPRESSION")),engagement:()=>s.reporting(r("BILLABLE_ENGAGEMENT")),videos:()=>s.reporting(r("TEMPORARY_BIDDED_CPM_VIDEO")),videos_reserved:()=>s.reporting(r("TEMPORARY_IMPRESSION_VIDEO")),videos_cpv:()=>s.reporting(r("TEMPORARY_MRC_CPV_VIDEO")),conversions:()=>s.reporting(r("WEB_CONVERSION")),accounts_manager:()=>"/accounts_manager/",reporting_preferences:e=>(0,n.Z)("/reporting/preferences/",e),report_builder:e=>(0,n.Z)("/report-center/builder/",e),report_history:e=>(0,n.Z)("/report-center/history/",e),report_unsubscribe:e=>(0,n.Z)("/report-center/unsubscribe/",e),report_download:e=>(0,n.Z)("/report-center/download/",e),media_planner:()=>"/media_planner/",awareness:()=>s.reporting(r("AWARENESS")),traffic:()=>s.reporting(r("TRAFFIC")),app_installs:()=>s.reporting(r("APP_INSTALL")),catalog_sales:()=>s.reporting(r("CATALOG_SALES")),web_conversion:()=>s.reporting(r("WEB_CONVERSION")),video_view:()=>s.reporting(r("VIDEO_VIEW")),quick_promote:e=>(0,n.Z)("/quick-promote/",e),quick_promote_on_www:()=>"/advertiser/quick-promote/",recommendations:e=>(0,n.Z)("/recommendations/",e),catalog_view:()=>"/product-catalogs/data-source"},l=s},619937:(e,t,i)=>{i.d(t,{$N:()=>p,GY:()=>l,MZ:()=>r,NR:()=>d,Vn:()=>c,fm:()=>n,kM:()=>a,q6:()=>o,qp:()=>s,uV:()=>u});const n={DOWNLOAD_TEMPLATE:"DOWNLOAD_TEMPLATE",UPLOAD_TEMPLATE:"UPLOAD_TEMPLATE",HISTORY:"HISTORY",RESOURCES:"RESOURCES"},o={GENERAL:"GENERAL",CAMPAIGNS:"CAMPAIGNS",AD_GROUPS:"AD_GROUPS",ADS:"ADS",KEYWORDS:"KEYWORDS",PRODUCT_GROUPS:"PRODUCT_GROUPS",ERROR_CODES:"ERROR_CODES"},a={BILLING_HISTORY:"BILLING_HISTORY",BILLING_FORMS:"BILLING_FORMS",ORDER_LINES:"ORDER_LINES",PROMOTIONS:"PROMOTIONS",DOCUMENTS:"DOCUMENTS",PREPAID_CAMPAIGN_SPEND:"PREPAID_CAMPAIGN_SPEND_SUMMARY"},r={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",PREMMERCE:"Premmerce"},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",CONVERSIONS_API_MANAGER:"CONVERSIONS_API_MANAGER",CONVERSIONS_API_MANUAL_SETUP_FLOW:"CONVERSIONS_API_MANUAL_SETUP_FLOW",PINTEREST_EVENTS_OVERVIEW:"PINTEREST_EVENTS_OVERVIEW",PINTEREST_EVENT_HISTORY:"PINTEREST_EVENT_HISTORY"},l={PINTEREST_TAG_DASHBOARD:"PINTEREST_TAG_DASHBOARD",PINTEREST_TAG_LANDING:"PINTEREST_TAG_LANDING",PINTEREST_TAG_INSTRUCTIONS:"PINTEREST_TAG_INSTRUCTIONS",CONVERSION_UPLOAD_LANDING:"CONVERSION_UPLOAD_LANDING",CONVERSION_UPLOAD_VALIDATION:"CONVERSION_UPLOAD_VALIDATION",CONVERSION_UPLOAD_HISTORY:"CONVERSION_UPLOAD_HISTORY",PCA_UPLOAD_HISTORY:"PCA_UPLOAD_HISTORY",PCA_UPLOAD_LANDING:"PCA_UPLOAD_LANDING",PCA_UPLOAD_VALIDATION:"PCA_UPLOAD_VALIDATION"},c={UNREAD:"UNREAD",READ:"READ",ACCEPTED:"ACCEPTED",REJECTED:"REJECTED",DISMISSED:"DISMISSED",INVALID:"INVALID",MUTED:"MUTED",SNOOZED:"SNOOZED",PMP_REPORTED:"PMP_REPORTED",EMAILED:"EMAILED",BULK_DOWNLOADED:"BULK_DOWNLOADED",FILTERED:"FILTERED",PUSHED:"PUSHED"},d={ATTRIBUTION_DESTINATION:"destination",ATTRIBUTION_EXPIRY:"expiry",ATTRIBUTION_SOURCE:"attributionsrc",ATTRIBUTION_SOURCE_EVENT_ID:"source_event_id"},u=604800,p={ATTRIBUTION_SOURCE_ID:"attributionsourceid",ATTRIBUTE_DESTINATION:"attributiondestination",ATTRIBUTE_ON:"attributeon"}},28543:(e,t,i)=>{i.r(t),i.d(t,{default:()=>r});var n=i(567831);var o=i(55259),a=i(966113);function r(e,t,i){if(!o.Z[e])throw new Error(`unknown url key: ${e}`);i||(i={});let r=o.Z[e](i);const s=function(e,t){let i=null;return e&&(i=e.advertiserId||null),!i&&t&&(i=t.id),i}(i,t);return"string"==typeof s&&(r="/advertiser/"+s+r),!!i.absolutify&&(r=(0,n.Z)(r,void 0,a.KU)),r}},21353:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(702664),o=i(28543);function a(){const e=(0,n.useSelector)((({advertiser:e})=>e));return(t,i)=>(0,o.default)(t,e,i)}},77601:(e,t,i)=>{i.d(t,{Z:()=>o});const n="undefined"!=typeof window&&window.performance&&window.performance.now?()=>window.performance.now():()=>Date.now();function o({window:e,duration:t,run:i}){const o=n();let a=0,r=null;const s=()=>{const l=n()-o,c=l-a;if(t===1/0)i(0,l,c);else{const e=l/t;if(e>=1)return void i(1,l,c);i(e,l,c)}a=l,r=e.requestAnimationFrame(s)};return{start:()=>{r=e.requestAnimationFrame(s)},cancel:()=>{r&&(e.cancelAnimationFrame(r),r=null)}}}},100183:(e,t,i)=>{i.d(t,{CC:()=>n,Ll:()=>a,XF:()=>o});const n=(e,t)=>((e,t,i)=>({x:Math.floor(e*Math.cos(i)),y:Math.floor(t*Math.sin(i))}))(t/2,e/2,2*Math.random()*Math.PI),o=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,a=e=>["@-webkit-keyframes","@keyframes"].map((t=>e.map((e=>t+" "+e)).join("\n"))).join("\n")},176532:(e,t,i)=>{function n({async:e,data:t,headers:i,timeout:n,type:o,updateProgress:a,url:r}){let s=!1;return{promise:new Promise(((a,l)=>{const c=n?setTimeout((()=>{s="timeout",l({type:"timeout"})}),n):void 0;fetch(r,{method:o,credentials:"include",mode:"same-origin",keepalive:!e,headers:i,...t?{body:t}:{}}).then((e=>{c&&clearTimeout(c),s?"timeout"!==s&&l({type:"abort"}):a({status:e.status,statusText:e.statusText,ok:e.status>=200&&e.status<300||304===e.status,headers:{get:t=>e.headers.get(t),_logString:()=>{const t=[];for(const[i,n]of e.headers.entries())t.push(`${i}: ${n}\r\n`);return t.join("")}},json:()=>e.json().then((e=>e instanceof Object?e:Promise.reject(new Error("JSON.parse did not return an object"))))})})).catch((()=>Promise.reject({type:"timeout"})))})),abort:()=>{s="manual"}}}i.d(t,{Z:()=>p});var o=i(635240);const a=(...e)=>{};function r({async:e,data:t,headers:i,timeout:n,type:o,updateProgress:r,url:s}){const l=new XMLHttpRequest;return{promise:new Promise(((c,d)=>{const u=n?setTimeout((()=>{l.onreadystatechange=a,l.abort(),d({type:"timeout"})}),n):void 0;l.onreadystatechange=()=>{if(4===l.readyState){l.onreadystatechange=a,clearTimeout(u);const e=l.status,t=l.statusText,i=l.responseText;if(!e)return void d({type:"abort"});c({status:e,statusText:t,ok:e>=200&&e<300||304===e,headers:{get:e=>l.getResponseHeader(e),_logString:()=>l.getAllResponseHeaders()},json:()=>new Promise(((e,t)=>{try{const n=JSON.parse(i);n instanceof Object?e(n):t(new Error("JSON.parse did not return an object"))}catch(n){t(n)}})),responseText:i})}},r&&l.upload.addEventListener("progress",(e=>{let t=null;e.lengthComputable&&(t=e.loaded/e.total*100),r(t)})),l.open(o,s,e),Object.keys(i).forEach((e=>{l.setRequestHeader(e,i[e])})),l.send(t||null)})),abort:()=>{l&&l.abort()}}}var s=i(42238),l=i.n(s);const c=e=>{if((e=>{const t=e.match(/\s+chrome\/(\d+)\./i);return!!t&&parseInt(t[1],10)>=79})(e))return!0;const{name:t="",version:i=""}=l()(e).browser,n=parseInt(i.replace(/\..*/,""),10)||0;return"chrome"===t.toLowerCase()&&n>=79};var d=i(826067),u=i(628551);function p(e){const t={async:!0,cache:!1,data:void 0,headers:{},query:{},timeout:0,type:"GET",...e};let{url:i,data:a}=t;const s=t.type;a&&"object"==typeof a&&("GET"===s?(i=(0,d.ru)(i,a),a=void 0):a instanceof FormData||(a=(0,d.XP)(a))),!1===t.cache&&"GET"===s&&(i=(0,d.ru)(i,{_:Date.now()}));const l=(0,u.needsCsrfToken)(s,i);if(l&&!(0,u.getCsrfToken)())return{promise:Promise.reject({type:"csrferror",message:"No csrf token found"}),abort:()=>{}};return(!t.async&&"keepalive"in new Request("")&&c(window.navigator.userAgent||"")?n:r)({...t,url:i,data:a,headers:{"X-Requested-With":"XMLHttpRequest",Accept:"application/json, text/javascript, */*, q=0.01","X-APP-VERSION":(0,o.Z)(),..."GET"===s||!a||a instanceof FormData?{}:{"Content-Type":"application/x-www-form-urlencoded"},...l?{"X-CSRFToken":(0,u.getCsrfToken)()||""}:{},...t.headers}})}},613316:(e,t,i)=>{function n(e){return[0,24,21,26].includes(e)}function o({articleType:e,id:t,title:i}){const n=i.toLowerCase().replace(/[.,\/#!?$%\^&\*+;:{}=\-_`~()\’'"]/g,"").trim().replace(/\s+/g,"-");return"today"===e?`/today/shop/${n}/${t}/`:`/discover/article/${n}/${t}/`}i.d(t,{x:()=>o,y:()=>n})},427014:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(172071);function o({appType:e,currVersion:t,deviceType:i,eventType:o,eventName:a,stage:r,nextVersion:s,isBot:l,originHost:c}){const d="desktop"===i?5:6;n.Z.increment(`web.client_refresh.${o}.${i}`,1,{stage:r,currVersion:t,nextVersion:s,isBot:l,siteType:e||d,appType:e||d,event:a,originHost:c||"unknown"})}},41233:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(221263),o=i(937330);function a({action:e,board:t,viewer:i}){var a;return(0,n.Z)(i,t)||(0,o.Z)({board:t,viewer:i})&&!(null===(a=t.collaborator_permissions)||void 0===a||!a.includes(e))}},221263:(e,t,i)=>{function n(e,t){const i=t&&t.owner&&t.owner.id;return e.isAuth&&i===e.id}i.d(t,{Z:()=>n})},937330:(e,t,i)=>{function n({board:e,viewer:t}){const{collaborated_by_me:i}=e;return Boolean(t.isAuth&&i)}i.d(t,{Z:()=>n})},4294:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(221263),o=i(937330);function a({board:e,viewer:t}){return(0,n.Z)(t,e)||(0,o.Z)({board:e,viewer:t})}},366284:(e,t,i)=>{i.d(t,{G6:()=>a,i7:()=>r,oi:()=>n,u$:()=>o,un:()=>l,vU:()=>s});const n=Object.freeze({OTHER:0,CHROME:1,SAFARI:2,IE:3,FIREFOX:4,OPERA:5,EDGE:6}),o=e=>{switch(!0){case e.includes("Chrome"):return 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 a(e){return o(e)===n.SAFARI}function r(e){return o(e)===n.CHROME}function s(e){return o(e)===n.FIREFOX}function l(e){return o(e)===n.EDGE}},56641:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(567831),o=i(867820);function a(e,t){if(t&&!(()=>{try{return window.localStorage.test=2,!1}catch(e){return!0}})()){const t=window.open(e,"_blank");return t&&(t.opener=null),t}{const t=(0,n.Z)(e);return setTimeout((()=>{(0,o.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})},78714:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(56641),o=i(954931),a=i(867820);const r=(e,t)=>{null!=t&&t.disableOriginCheck||(0,o.Z)(e)||(e="/",(0,a.My)("url_reset")),(0,n.Z)(e)}},792182:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(667294),o=i(23279),a=i.n(o);function r(){const[e,t]=(0,n.useState)(null);return(0,n.useEffect)((()=>{const e=()=>t({width:window.innerWidth,height:window.innerHeight});e();const i=a()(e,50);return window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)}),[]),e}},326884:(e,t,i)=>{i.d(t,{AM:()=>v,Hg:()=>x,Hl:()=>h,IR:()=>u,Q6:()=>l,QE:()=>n,UG:()=>s,V3:()=>g,Z4:()=>d,c7:()=>p,cU:()=>r,cg:()=>o,dZ:()=>a,gO:()=>_,j$:()=>m,tP:()=>f,uE:()=>c,we:()=>y});const n=3e3,o=342,a=500,r=1e4,s=500,l={DASHBOARD:"DASHBOARD",PEOPLE:"PEOPLE",PARTNERS:"PARTNERS",AD_ACCOUNTS:"AD_ACCOUNTS",AD_ACCOUNTS_PENDING_TAB:"AD_ACCOUNTS_PENDING_TAB",HISTORY:"HISTORY",PEOPLE_DETAIL:"PEOPLE_DETAIL",PARTNERS_DETAIL:"PARTNERS_DETAIL",SHARED_PARTNERS_DETAIL:"SHARED_PARTNERS_DETAIL",AD_ACCOUNTS_DETAIL:"AD_ACCOUNTS_DETAIL",PENDING_AD_ACCOUNTS_DETAIL:"PENDING_AD_ACCOUNTS_DETAIL",PEOPLE_INVITES:"PEOPLE_INVITES",PARTNERS_INVITES:"PARTNERS_INVITES",CHOOSER:"CHOOSER",PARTNERS_REQUEST_PAGE:"PARTNERS_REQUEST_PAGE",PARTNERS_INVITE_PAGE:"PARTNERS_INVITE_PAGE",PROFILES:"PROFILES",PROFILES_DETAIL:"PROFILES_DETAIL",PARTNERS_PENDING_TAB:"PARTNERS_PENDING_TAB",PEOPLE_PENDING_TAB:"PEOPLE_PENDING_TAB",USERS:"USERS",ACOUNTS:"ACCOUNTS",BUSINESS_SECURITY:"BUSINESS_SECURITY",SUPPORT_TOOL:"SUPPORT_TOOL",ASSETS:"ASSETS",ASSET_GROUPS:"ASSET_GROUPS",INVOICE_MANAGEMENT:"INVOICE_MANAGEMENT",BUSINESS_HIERARCHY:"BUSINESS_HIERARCHY",MEMBERS:"MEMBERS"},c={PARTNER:"PARTNER",PARTNER_ADMIN:"PARTNER_ADMIN"},d={ADVERTISER_OWNED_AD_ACCOUNT:"ADVERTISER_OWNED_AD_ACCOUNT",AGENCY_OWNED_AD_ACCOUNT:"AGENCY_OWNED_AD_ACCOUNT"},u={ASCENDING:"ASCENDING",DESCENDING:"DESCENDING"},p={AD_ACCOUNT:"AD_ACCOUNT",PERSON:"PERSON",PARTNER:"PARTNER"},h={PERSON:"PERSON",PARTNER:"PARTNER",PROFILE:"PROFILE"},_={ADMIN:"ADMIN",ANALYST:"ANALYST",FINANCE_MANAGER:"FINANCE_MANAGER",AUDIENCE_MANAGER:"AUDIENCE_MANAGER",CAMPAIGN_MANAGER:"CAMPAIGN_MANAGER",CATALOGS_MANAGER:"CATALOGS_MANAGER"},m=["ADMIN","ANALYST","FINANCE_MANAGER","AUDIENCE_MANAGER","CAMPAIGN_MANAGER","CATALOGS_MANAGER"],g={EMPLOYEE:"EMPLOYEE",BIZ_ADMIN:"BIZ_ADMIN",OWNER:"OWNER"},x=["PROFILE_PUBLISHER"],f={AD_ACCOUNT:0,PROFILE:2},y={id:"0",is_pin_support_user:!0,biz_roles:[g.BIZ_ADMIN],business_roles:[g.BIZ_ADMIN],user:{username:"psupport",full_name:"Pinterest support",image_small_url:"https://i.pinimg.com/60x60_RS/f6/e9/3a/f6e93a06b500b2d87ffd32e1f56f7c6f.jpg",image_medium_url:"https://i.pinimg.com/150x150_RS/f6/e9/3a/f6e93a06b500b2d87ffd32e1f56f7c6f.jpg"}},v={ACTIVE:0,PENDING:1}},924196:(e,t,i)=>{i.d(t,{Z:()=>n});const n={GOOGLE_ADWORDS_ID:852082959,GOOGLE_ADWORDS_LABEL_PROPEL_QUALIFIED:"Mah3CPrv13YQj4KnlgM",GOOGLE_ADWORDS_LABEL_PROPEL_UNQUALIFIED:"_DJfCKzy13YQj4KnlgM",GOOGLE_ADWORDS_LABEL_BUSINESS_CREATE:"GGbCCM7p-nYQj4KnlgM",GOOGLE_ADWORDS_LABEL_BUSINESS_CONVERT:"SwBsCIz9k3cQj4KnlgM",GOOGLE_ADWORDS_LABEL_BUSINESS_ADVERTISER_INTENT:"kDf0COWL4okBEI-Cp5YD",DOUBLECLICK_TAG_ID:"8032161",DOUBLECLICK_EVENT_ID_PROPEL:"prope001",DOUBLECLICK_CATEGORY_ID_PROPEL_QUALIFIED:"pinte0",DOUBLECLICK_CATEGORY_ID_PROPEL_UNQUALIFIED:"pinte00",TRADEDESK_ADVERTISER_ID:"fc1uc9n",TRADEDESK_EVENT_ID_GENERAL_PAGEVIEW:"ogalyt3",TRADEDESK_CONVERSION_ID_PROPEL_QUALIFIED:"judrn76",TRADEDESK_CONVERSION_ID_PROPEL_UNQUALIFIED:"f0v4s5d",FACEBOOK_ADVERTISER_ID:"956400731086791",TWITTER_UNIVERSAL_TAG_ID:"nuzh8",TWITTER_CONVERSION_ID_PROPEL_QUALIFIED:"ny8zl",TWITTER_CONVERSION_ID_PROPEL_UNQUALIFIED:"nya0d",LINKEDIN_PARTNER_ID:"44352",LINKEDIN_CONVERSION_ID_PROPEL_QUALIFIED:"166217",LINKEDIN_CONVERSION_ID_PROPEL_UNQUALIFIED:"171754",LINKEDIN_CONVERSION_ID_SUBMISSION_EVENT:"529092",PINTEREST_TAG_ID:"2614461171935",SMB_PAID_PINTEREST_ID:"2613736141997"}},904431:(e,t,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:()=>a});class o{static reportGoogleConversion(e,t,i){void 0!==window.gtag_report_conversion?window.gtag_report_conversion(e,t,i):o.queuedGoogleConversions.push({id:e,label:t,url:i})}static reportFacebookConversion(e,t,i){void 0!==window.fbq?i?window.fbq("track",t,i):window.fbq("track",t):o.queuedFacebookConversions.push({id:e,event:t,data:i})}static reportCustomFacebookConversion(e,t,i){void 0!==window.fbq?i?window.fbq("trackCustom",t,i):window.fbq("trackCustom",t):o.queuedFacebookConversions.push({id:e,isCustomEvent:!0,event:t,data:i})}static reportPinterestConversion(e,t,i){void 0!==window.pintrk?i?window.pintrk("track",t,i):window.pintrk("track",t):o.queuedPinterestConversions.push({id:e,event:t,data:i})}static reportTwitterConversion(e,t){void 0!==window.twttr?t?window.twttr.conversion.trackPid(e,t):window.twttr.conversion.trackPid(e):o.queuedTwitterConversions.push({id:e,data:t})}static reportTheTradeDeskConversion(e,t){const i=document.createElement("img");i.setAttribute("height","1"),i.setAttribute("width","1"),i.setAttribute("role","presentation"),i.style.borderStyle="none",i.style.position="absolute",i.setAttribute("src",`//insight.adsrvr.org/track/conv/?adv=${e}&ct=0:${t}&fmt=3`),document.body.insertBefore(i,document.body.lastChild)}static reportLinkedInConversion(e,t){const i=document.createElement("img");i.setAttribute("width","1"),i.setAttribute("height","1"),i.setAttribute("role","presentation"),i.setAttribute("src",`https://dc.ads.linkedin.com/collect/?pid=${e}&conversionId=${t}&fmt=gif`),i.style.display="none",document.body.insertBefore(i,document.body.lastChild)}static reportDoubleClickConversion(e,t,i){const n=1e13*Math.random(),o=document.createElement("iframe");o.setAttribute("width","1"),o.setAttribute("height","1"),o.setAttribute("frameborder","0"),o.setAttribute("src",`https://${e}.fls.doubleclick.net/activityi;src=${e};\n type=${t};cat=${i};dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;ord=${n}?`),o.style.display="none",document.body.insertBefore(o,document.body.lastChild)}static insertGoogleAdWordsTag(e){const t=document.createElement("script");t.setAttribute("async",""),t.setAttribute("src",`https://www.googletagmanager.com/gtag/js?id=AW-${e}`),t.onload=()=>{window.dataLayer=window.dataLayer||[],window.gtag=function(e,t,i){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("config","AW-"+e),window.gtag_report_conversion=function(e,t,i){return window.gtag("event","conversion",{send_to:"AW-"+e+"/"+t,event_callback:function(){void 0!==i&&window.location.assign(i)}}),!1};const t=o.queuedGoogleConversions;for(let i=0;i{i.d(t,{Fl:()=>c,GG:()=>d,Pw:()=>p,dl:()=>s,k3:()=>h,su:()=>_,tW:()=>u});var n=i(926275),o=i(411938),a=i(826067);const r=["AT","AU","BE","BR","CA","CH","CY","CZ","DE","DK","ES","FI","FR","GB","GR","HU","IE","IT","LU","MT","MX","NL","NO","NZ","PT","RO","SE","SK","US"],s=["AU","AT","BE","BR","CA","CY","CZ","DK","FI","FR","DE","GR","HU","IE","IT","LU","MT","MX","NL","NZ","NO","PL","PT","RO","SK","ES","SE","CH","GB","US"],l=["US","CA","JP","AR","CL","CO"],c=e=>r.includes(e.toUpperCase()),d=e=>!!e&&l.includes(e.toUpperCase()),u=Object.freeze({NOT_ANSWERED:0,YES:1,NO:2,NOT_SURE:3}),p=({requestContext:e,history:t,pinId:i})=>{((e,t)=>{const i=(0,a.ru)("/business/convert",{next:t});e.push(i)})(t,(e=>e?`/business/ad_create?pinId=${e}`:"/business/ad_create")(i))},h=e=>{const t=e.trim().split(" ").filter((e=>!!e));return{firstName:t.length>0?t[0]:"",lastName:t.length>1?t.slice(1).join(" "):""}},_=e=>e.isAuth&&!e.isPartner&&!(0,o.Z)(null,e)&&!(0,n.Z)(e.createdAt)},752403:(e,t,i)=>{i.d(t,{Bu:()=>_,Dm:()=>s,I:()=>x,NG:()=>p,QP:()=>d,S4:()=>c,Xe:()=>u,_f:()=>h,eT:()=>m,hm:()=>g,yQ:()=>l,ym:()=>y});var n=i(642345);const o=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"}),a=Object.freeze({PERSON_OF_COLOR:"person_of_color",LGBTQ:"lgbtq",DISABILITY:"disability",WOMAN:"woman",NONE:"none"}),r=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(o).map((e=>o[e])),...Object.keys(a).map((e=>a[e]))],l=[...Object.keys(r).map((e=>r[e]))],c=3,d=["#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:d[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 _({verifiedMerchant:e}){var t,i;const n=null==e?void 0:e.isVerifiedMerchant,o=null==e||null===(t=e.inspirational_signal)||void 0===t?void 0:t.is_inspirational,a=null==e||null===(i=e.inspirational_signal)||void 0===i?void 0:i.is_eligible_for_storefront_badges;return Boolean(n&&o&&a)}function m(e){return e.badge_details?e.badge_details.map((e=>e.id)):[]}function g(e){return(null==e?void 0:e.profile_badges)||[]}function x(e,t,i){return t&&i?t.map((e=>i.find((t=>t.id===e.trim())))).filter(Boolean):[]}function f(e){const t=(0,n.oo)(e);if(!t)return"white";const[i,o,a]=t;return(0,n.DW)(i,o,a)<=n.I?"white":"black"}function y(e){const t=e||d[0];return{backgroundColor:t,color:f(t)}}},37620:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(898781),o=i(883119),a=i(785893);const r=({size:e=24})=>{const t=(0,n.ZP)();return(0,a.jsx)(o.JO,{color:"inverse",accessibilityLabel:t._('Call To Create Takes icon', 'calltocreate.icon.takes_arrow', 'Takes icon for Call To Create Pins'),icon:void 0,size:e,dangerouslySetSvgPath:{__path:"M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM16.995 16.9999C17.55 16.9999 18 16.555 18 16C18 12.82 15.41 10.235 12.225 10.235H9.86L11.39 8.70996C11.78 8.31996 11.78 7.68497 11.39 7.29497C10.995 6.90497 10.36 6.90497 9.97 7.29497L6 11.26L9.975 15.225C10.37 15.615 11.005 15.615 11.395 15.225C11.785 14.835 11.785 14.2 11.395 13.81L9.825 12.2449H12.225C14.3 12.2449 15.99 13.93 15.99 16C15.99 16.5499 16.44 16.9999 16.995 16.9999Z"}})};function s({images:e,height:t=48,gap:i=4,responseCount:n,isResponse:s}){const l=e.slice(0,3).reverse(),c=l.length;if(c<1)return null;const d=Math.round(.55*t),u=d+(c-1)*i;return(0,a.jsxs)(o.xu,{width:`${u}px`,children:[(0,a.jsxs)(o.xu,{position:"relative",height:t,width:d,marginBottom:1,children:[l.map(((e,n)=>(0,a.jsx)(o.xu,{position:"absolute",top:!0,left:!0,height:t,width:d,dangerouslySetInlineStyle:{__style:{marginLeft:(c-1-n)*i+"px"}},children:(0,a.jsx)(o.zd,{rounding:2,height:t,width:d,children:(0,a.jsx)(o.Ee,{alt:"",fit:"cover",src:e,naturalHeight:1,naturalWidth:1})})},e))),s&&(0,a.jsx)(o.xu,{position:"absolute",top:!0,left:!0,marginStart:-1,marginTop:-1,color:"selected",rounding:"circle",children:(0,a.jsx)(r,{size:16})})]}),!s&&!!n&&(0,a.jsx)(o.xv,{color:"inverse",size:"200",align:"center",children:n})]})}},834911:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(835209),o=i(341732);function a({carouselData:e,images:t,richMetadata:i,richSummary:a,shouldUnifyImageSizes:r,additionalImages:s}){const l=(0,n.Z)({richPinData:i||a});return l&&s&&s.length>0?(0,o.Z)(null,s,e&&e.index,r,l.id):l&&l.additional_images&&l.additional_images.length>0?(0,o.Z)(t,l.additional_images,e&&e.index,r,l.id):e||void 0}},737022:(e,t,i)=>{function n(e){return e?e["564x"]&&e["564x"].url?e["564x"]:e["736x"]&&e["736x"].url?e["736x"]:e["474x"]&&e["474x"].url?e["474x"]:e["236x"]&&e["236x"].url?e["236x"]:null:null}i.d(t,{Z:()=>n})},687551:(e,t,i)=>{function n(e){return!!(e&&e.carousel_data&&e.carousel_data.id)}i.d(t,{Z:()=>n})},341732:(e,t,i)=>{i.d(t,{Z:()=>a});const n=["236x","474x","564x","736x"];function o(e){function t(e,{imageKey:t,height:i,width:n}){return e.images&&e.images[t]&&(e={...e,images:{...e.images,[t]:{...e.images[t],height:i,width:n}}}),e}const i=n.map((function(t){const i=Math.min(...e.map((e=>e.images&&e.images[t]&&e.images[t].height||1/0))),n=Math.min(...e.map((e=>e.images&&e.images[t]&&e.images[t].width||1/0)));return{imageKey:t,height:i,width:n}}));return e.map((e=>i.reduce(t,e)))}function a(e,t,i,n,a){const r=(null==t?void 0:t.map((({canonical_images:e,image_signature:t})=>({images:e||void 0,image_signature:t||void 0}))))||[],s=e?[{images:e},...r]:r;return{carousel_slots:n?o(s):s,index:i||0,id:a}}},768559:(e,t,i)=>{i.d(t,{Z:()=>l});var n=i(826067);const o=/\/today\/(article|best|trending)\/[\w-]+\/(\d+)/,a=/\/discover\/article\/[\w-]+\/(\d+)/,r=(e,t)=>t?e.substring(t.length).split("/")[0]:e,s=({boardUrl:e,callToCreateSourcePinId:t,path:i,pinId:s,pinnerUserName:l,query:c,search:d,storyPinDataId:u})=>{var p,h;if(!i)return"";let _="";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:_="/pin/";const m=r(i,_);if(s!==m)return t?`ApiResource_callToCreatePins_${m}`:`RelatedPinFeedResource_${m}`;break;case/\/search\//.test(i)&&i:if(d){return`SearchResource_${((0,n.mB)(d,{shouldDecode:!1}).q||"").toLowerCase()}`}if(c)return`SearchResource_${encodeURIComponent(c.q||"").toLowerCase()}`;break;case a.test(i)&&i:return`ExploreArticleResource_${(null===(p=i.match(a))||void 0===p?void 0:p[2])||"unknown"}`;case/\/discover\/article\//.test(i)&&i:_="/discover/article/";return`ExploreArticleResource_${r(i,_)}`;case/\/categories\//.test(i)&&i:_="/categories/";return`CategoryFeedResource_${r(i,_)}`;case/\/discover\/topics\//.test(i)&&i:return"CategoryFeedResource";case/\/news_hub\//.test(i)&&i:_="/news_hub/";return`NewsHubDetailsResource_${r(i,_)}`;case/\/_tools\/more-ideas\//.test(i)&&i:return"BoardContentRecommendationResource";case/\/topics\//.test(i)&&i:_="/topics/";return`TopicFeedResource_${r(i,_)}`;case l&&`/${l}/products/`:return"StoreFrontFeedResource";case/\/source\//.test(i)&&i:_="/source/";return`DomainFeedResource_${r(i,_)}`;case/\/explore\//.test(i)&&i:_="/explore/";return`SearchResource_${r(i,_)}`;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 o.test(i)&&i:return`TodayArticleFeedResource_${(null===(h=i.match(o))||void 0===h?void 0:h[2])||"unknown"}`;case/\/today\//.test(i):return"TodayTabResource";case/\story_feed\//.test(i)&&i:if(d){const{feed_type:e,request_params:t}=(0,n.mB)(d);return`StoryFeedResource_${e}_${t}`}}return""},l=({boardUrl:e,callToCreateSourcePinId:t,location:i,pinId:n,pinnerUserName:o,previousHistory:a,storyPinDataId:r,trackingParams:l,trackingParamsMap:c={}})=>{if(!n||!l||!i)return;if(!c)return`${l}~0`;const{pathname:d,search:u,query:p}=i,h=s({boardUrl:e,callToCreateSourcePinId:t,path:d,pinId:n,pinnerUserName:o,query:p,search:u,storyPinDataId:r,trackingParams:l,trackingParamsMap:c}),_=Object.keys(c);let m;if((d||"").startsWith("/pin/")){const e=_.find((e=>"PinResource"!==e));m=e?c[e]:c.PinResource}else m=c[h];let g;if(!m&&a&&a.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()):""})(a[a.length-1].location);g=s({boardUrl:e,callToCreateSourcePinId:t,path:i,pinId:n,pinnerUserName:o,query:p,search:u,storyPinDataId:r,trackingParams:l,trackingParamsMap:c}),m=c[g]}return m||(m=`${l||""}~0`),m}},47170:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(768559),o=i(558068),a=i(276775);function r(e){var t,i;const r=(0,a.useLocation)(),{previous:s}=(0,o.Hv)();return(0,n.Z)({boardUrl:null===(t=e.board)||void 0===t?void 0:t.url,callToCreateSourcePinId:e.call_to_create_source_pin_id,location:r,pinId:e.id,pinnerUserName:null===(i=e.pinner)||void 0===i?void 0:i.username,previousHistory:s,storyPinDataId:e.story_pin_data_id,trackingParams:e.tracking_params,trackingParamsMap:e.tracking_params_map})}},827896:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(768559),o=i(350118),a=i(276775);function r(){const e=(0,o.S6)(),t=(0,a.useLocation)();return(i,o)=>{let a;const r=e(i);if(null!=o&&o.shouldTrackForPrevLocation){const e=(null==r?void 0:r.tracking_params_map)||{},t=Object.keys(e).find((e=>"PinResource"!==e));r&&(a=t?e[t]:e.PinResource)}else if(r){var s,l;a=(0,n.Z)({boardUrl:null===(s=r.board)||void 0===s?void 0:s.url,callToCreateSourcePinId:r.call_to_create_source_pin_id,location:t,pinId:r.id,pinnerUserName:null===(l=r.pinner)||void 0===l?void 0:l.username,storyPinDataId:r.story_pin_data_id,trackingParams:r.tracking_params,trackingParamsMap:r.tracking_params_map})}return a}}},642345:(e,t,i)=>{i.d(t,{DW:()=>s,I:()=>r,oo:()=>a,vq:()=>o});const n=e=>{const t=e.toString(16);return 1===t.length?"0"+t:t},o=(e,t,i)=>"#"+n(e)+n(t)+n(i),a=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)]},r=.18,s=(e,t,i)=>.2126*(e/255)**2.2+.7151*(t/255)**2.2+.0721*(i/255)**2.2},852782:(e,t,i)=>{i.d(t,{Z:()=>le});var n=i(667294),o=i(702664),a=i(737849),r=i(116303),s=i(898781),l=i(883119),c=i(785893);const d=({isQuestion:e,name:t,size:i,src:n})=>{const o=(0,s.ZP)();return(0,c.jsxs)(l.xu,{position:"relative",children:[(0,c.jsx)(r.Z,{size:i,src:n,name:t}),e&&(0,c.jsxs)(l.xu,{position:"absolute",right:!0,bottom:!0,marginEnd:-1,marginBottom:-1,width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",children:[(0,c.jsx)(l.xu,{position:"absolute",children:(0,c.jsx)(l.JO,{icon:"speech",color:"dark",accessibilityLabel:o._('Q and A comment', 'comment.userAvatar.creator.q&aIndicator', 'question mark icon indicator background that comment is Q&A')})}),(0,c.jsx)(l.xu,{position:"absolute",children:(0,c.jsx)(l.JO,{icon:"question-mark",color:"light",size:8,accessibilityLabel:o._('Q and A comment', 'comment.userAvatar.creator.q&aIndicator', 'question mark icon indicator background that comment is Q&A')})})]})]})},u=({color:e,isMarkedHelpful:t})=>{const i=(0,s.ZP)();return(0,c.jsx)(l.JO,{color:t?"brandPrimary":e,accessibilityLabel:i._('Helpful', 'comment.button.helpful', 'mark or unmark comment as helpful'),icon:void 0,size:12,dangerouslySetSvgPath:{__path:"M21 13.5C21 14.604 20.104 15.5 19 15.5C20.104 15.5 21 16.396 21 17.5C21 18.604 20.104 19.5 19 19.5H16.75C17.717 19.5 18.5 20.284 18.5 21.25C18.5 22.216 17.717 23 16.75 23H10.5C6.357 23 3 19.642 3 15.5C3 13.386 3.878 11.479 5.286 10.116C7.357 7.907 8.502 5.034 8.502 2C8.502 0.896 9.396 0 10.502 0C11.605 0 12.502 0.896 12.502 2C12.502 3.906 12.147 5.758 11.504 7.5H19C20.104 7.5 21 8.396 21 9.5C21 10.604 20.104 11.5 19 11.5C20.104 11.5 21 12.396 21 13.5ZM21 13.5C21 14.604 20.104 15.5 19 15.5C20.104 15.5 21 16.396 21 17.5C21 18.604 20.104 19.5 19 19.5H16.75C17.717 19.5 18.5 20.284 18.5 21.25C18.5 22.216 17.717 23 16.75 23H10.5C6.357 23 3 19.642 3 15.5C3 13.386 3.878 11.479 5.286 10.116C7.357 7.907 8.502 5.034 8.502 2C8.502 0.896 9.396 0 10.502 0C11.605 0 12.502 0.896 12.502 2C12.502 3.906 12.147 5.758 11.504 7.5H19C20.104 7.5 21 8.396 21 9.5C21 10.604 20.104 11.5 19 11.5C20.104 11.5 21 12.396 21 13.5Z"},inline:!0})};var p=i(223815),h=i(499128),_=i(28754),m=i(717615),g=i(845772),x=i(19121),f=i(541776),y=i(550393),v=i(600147),b=i(422946),P=i(139405),w=i(407043),S=i(773285),A=i(116674),k=i(343341),E=i(231947);const T=({aggregatedPinDataId:e,anchor:t,closeupAttributionId:i,comment:a,dismiss:r,isOpen:d,isReply:u,onEdit:T,onReportTry:C,onShowBlockUserModal:I,parentId:j,pinnerId:R,pinId:D})=>{const z=(0,s.ZP)(),O=(0,o.useDispatch)(),{logContextEvent:L}=(0,w.v)(),{showToast:N}=(0,k.F9)(),{anyEnabled:B}=(0,S.F)().checkExperiment("web_m10n_business_access_orbac_ga"),{toggleAggregatedCommentHighlight:M}=(0,P.nf)(),Z=(0,_.Z)(),[F,U]=(0,n.useState)(!1);(0,n.useEffect)((()=>{U(d)}),[d,U]);const V=(0,x.Z)(),G=(0,m.Z)(),H=(0,g.Z)(),{reportComment:W}=(0,A.f)(),$=null!=i?i:"",K=a.user.id,q=V.isAuth&&$===V.id,Y=(0,E.q6)(V,null!=R?R:"",B?G:{}),X=(0,E.D3)(V,K,B?G:{}),J=(0,E.D3)(V,$,B?G:{}),Q=V.isAuth&&(a.tagged_users||[]).filter((({id:e})=>e===V.id)).length>0,ee=e=>()=>{(async e=>{try{await M({aggregatedCommentId:a.id,pinId:D,isHighlighted:e}),L({event_type:101,component:13712,element:e?12475:12474,view_type:220,aux_data:{creator_id:K}}),N((({hideToast:t})=>(0,c.jsx)(h.ZP,{primaryAction:{accessibilityLabel:z._('Undo comment highlight or comment highlight removal', 'unifiedComment.unifiedCommentContainer.commentHighlightToast.a11yUndoButton', 'Undo comment highlight or comment highlight removal'),label:z._('Undo', 'unifiedComment.unifiedCommentContainer.commentHighlightToast.undoButton', 'Undo comment highlight or comment highlight removal'),size:"lg",onClick:()=>{M({aggregatedCommentId:a.id,pinId:D,isHighlighted:!e})}},onHide:t,text:e?z._('Highlight removed', 'unifiedComment.unifiedCommentContainer.commentHighlightRemovalToast', 'Toast that tells user that they have successfully removed a comment highlight.'):z._('Comment highlighted', 'unifiedComment.unifiedCommentContainer.commentHighlightToast', 'Toast that tells user that they have successfully highlighted a comment.')})))}catch(t){t.message&&N((({hideToast:e})=>(0,c.jsx)(h.ZP,{onHide:e,text:t.message,variant:"error"})))}})(e)},te=e=>()=>{e(),r()};if(!d)return null;const ie={highlight:z._('Highlight', 'Highlight a community post or comment', 'Highlight a community post or comment'),removeHighlight:z._('Remove highlight', 'Remove highlight for a community post or comment', 'Remove highlight for a community post or comment'),edit:z._('Edit', 'Edit a community post or comment', 'Edit a community post or comment'),delete:z._('Delete', 'Delete a community post or comment', 'Delete a community post or comment'),reportContent:z._('Report this content', 'Report a community post or comment', 'Report a community post or comment'),removeMention:z._('Remove @mention', 'closeup.activityItem.removeMention', 'Button that allows user to remove their @mention in a comment on a pin'),blockUser:z._('Block user', 'closeup.activityItem.blockUser', 'Block comment author')},ne=new l.Ry(1);return(0,c.jsx)(n.Fragment,{children:F&&(0,c.jsx)(p.Z,{children:(0,c.jsxs)(l.Lt,{id:"comment-overflow-popover",anchor:t,idealDirection:"down",onDismiss:r,isWithinFixedContainer:!1,zIndex:ne,children:[!u&&q&&!a.highlighted_by_pin_owner&&(0,c.jsx)(l.Lt.Item,{onSelect:te(ee(!1)),option:{label:ie.highlight,value:ie.highlight},dataTestId:"dropdown-item-highlight"}),!u&&q&&a.highlighted_by_pin_owner&&(0,c.jsx)(l.Lt.Item,{onSelect:te(ee(!0)),option:{label:ie.removeHighlight,value:ie.removeHighlight},dataTestId:"dropdown-item-remove-highlight"}),X&&(0,c.jsx)(l.Lt.Item,{onSelect:te(T),option:{label:ie.edit,value:ie.edit},dataTestId:"dropdown-item-edit"}),(X||J)&&(0,c.jsx)(l.Lt.Item,{onSelect:te((()=>{"aggregatedcomment"===a.type?Z({aggregatedCommentId:a.id,aggregatedPinId:null!=e?e:"",feedType:u?"aggregatedComments":b.DV.UNIFIED_COMMENTS,orbacSubjectId:H,parentId:j,type:u?f.Rv.REPLY_TO_AGGREGATED:f.Rv.TOP,updateParentCommentCount:!0}):O((0,v.lg)({aggregatedPinDataId:null!=e?e:"",feedType:b.DV.UNIFIED_COMMENTS,id:a.id,isOwnedByMe:!0,pinId:null!=D?D:"",username:a.user.username,updateParentDidItCount:!0}))})),option:{label:ie.delete,value:ie.delete},dataTestId:"dropdown-item-delete"}),!X&&!Y&&(0,c.jsx)(l.Lt.Item,{onSelect:te((()=>{"aggregatedcomment"===a.type?W(a.id,null,null):"userdiditdata"===a.type&&C()})),option:{label:ie.reportContent,value:ie.reportContent},dataTestId:"dropdown-item-report"}),Q&&(0,c.jsx)(l.Lt.Item,{onSelect:te((()=>{O((0,y.Q)(a.id)),N((({hideToast:e})=>(0,c.jsx)(h.ZP,{onHide:e,text:z._('@mention removed!', 'unifiedComment.unifiedCommentContainer.mentionRemovalToast', 'Toast that tells user that they have successfully removed the @mention of them in the comment')})))})),option:{label:ie.removeMention,value:ie.removeMention},dataTestId:"dropdown-item-remove-mention"}),!X&&(0,c.jsx)(l.Lt.Item,{onSelect:te((()=>{U(!1),I()})),option:{label:ie.blockUser,value:ie.blockUser},dataTestId:"dropdown-item-block-user"})]})})})};var C=i(852544),I=i.n(C),j=i(240291),R=i.n(j);const D={containerStyle:{boxShadow:"0 0px 8px rgba(0, 0, 0, 0.1)"},helpfulLabelStyle:{boxShadow:"0 0px 8px rgba(0, 0, 0, 0.1)",right:"50%",transform:"translateX(50%)"},helpfulStyle:{backgroundImage:`url(${I()})`},lovedLabelStyle:{boxShadow:"0 0px 8px rgba(0, 0, 0, 0.1)",left:"50%",transform:"translateX(-50%)"},lovedStyle:{backgroundImage:`url(${R()})`}},z=({setHelpful:e,setLoved:t})=>{const i=(0,s.ZP)(),[o,a]=(0,n.useState)(!1),[r,d]=(0,n.useState)(!1),u=e=>()=>{a(e)},p=e=>()=>{d(e)};return(0,c.jsxs)(l.xu,{alignItems:"center",color:"default",dangerouslySetInlineStyle:{__style:D.containerStyle},"data-test-id":"comment-reaction-tray-background",display:"flex",height:25,justifyContent:"center",padding:1,position:"relative",rounding:"pill",width:43,children:[(0,c.jsx)(l.iP,{fullHeight:!0,onMouseDown:t,onMouseEnter:p(!0),onMouseLeave:p(!1),children:(0,c.jsx)(l.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:D.lovedStyle},"data-test-id":"comment-reaction-tray-loved-emoji",height:18,marginBottom:r?3:1,position:"absolute",width:18,children:r&&(0,c.jsx)(l.xu,{top:!0,color:"selected",dangerouslySetInlineStyle:{__style:D.lovedLabelStyle},marginTop:-7,paddingX:1,paddingY:1,position:"absolute",rounding:"pill",children:(0,c.jsx)(l.xv,{color:"inverse",overflow:"noWrap",size:"100",weight:"bold",children:i._('Love', 'comment.button.loved', 'loved reaction')})})})}),(0,c.jsx)(l.iP,{fullHeight:!0,onMouseDown:e,onMouseEnter:u(!0),onMouseLeave:u(!1),children:(0,c.jsx)(l.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:D.helpfulStyle},"data-test-id":"comment-reaction-tray-helpful-emoji",height:18,marginBottom:o?3:1,position:"absolute",width:18,children:o&&(0,c.jsx)(l.xu,{top:!0,color:"selected",dangerouslySetInlineStyle:{__style:D.helpfulLabelStyle},marginTop:-7,paddingX:1,paddingY:1,position:"absolute",rounding:"pill",children:(0,c.jsx)(l.xv,{color:"inverse",overflow:"normal",size:"100",weight:"bold",children:i._('Helpful', 'comment.button.helpful', 'helpful reaction')})})})})]})};var O=i(347702),L=i.n(O),N=i(430467),B=i.n(N);const M={helpfulStyle:{backgroundImage:`url(${L()})`},lovedStyle:{backgroundImage:`url(${B()})`}},Z=({response:e})=>{const t=14===e.reaction_type,i=1===e.reaction_type;return(0,c.jsxs)(l.kC,{alignItems:"center",children:[(0,c.jsx)(l.iP,{role:"link",href:`/${e.user.username}/`,children:(0,c.jsxs)(l.kC,{alignItems:"center",children:[(0,c.jsx)(l.xu,{maxWidth:40,children:(0,c.jsx)(r.Z,{outline:!0,accessibilityLabel:"",name:e.user.full_name,size:"sm",src:e.user.image_medium_url})}),(0,c.jsx)(l.xu,{marginStart:2,maxWidth:80,children:(0,c.jsx)(l.xv,{color:"inverse",size:"100",weight:"bold",children:e.user.full_name})})]})}),(0,c.jsxs)(l.xu,{alignContent:"end",display:"flex",padding:2,children:[i&&(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:M.lovedStyle},"data-test-id":"comment-reaction-tray-loved-emoji",height:16,width:16}),t&&(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:M.helpfulStyle},"data-test-id":"comment-reaction-tray-helpful-emoji",height:16,width:16})]})]})};var F=i(784590);const U=["userreaction.id","userreaction.reaction_type","userreaction.user()","user.full_name","user.id","user.image_medium_url","user.username"],V=({commentId:e,isMarkedHelpfulByMe:t,isLovedByMe:i})=>{var o,a;const r=(0,x.Z)(),s=(0,F.Z)({name:"ApiResource",options:{url:`/v3/aggregated_comments/${e}/reacted_by/`,field_sets:U}});let d=null===(o=s.data)||void 0===o?void 0:o.filter((e=>e.user.id!==r.id));if((i||t)&&d){d=[{id:e,reaction_type:i?1:14,user:{full_name:r.isAuth?r.fullName:"",id:r.isAuth?r.id:"",image_medium_url:r.isAuth?r.imageMediumUrl:"",username:r.isAuth?r.username:""}},...d]}const u=(0,n.useRef)(null);return(0,n.useEffect)((()=>{const{current:e}=u,t=()=>{s.isFetching||(s.isAtEnd?null==e||e.removeEventListener("scroll",t):s.fetchMore())};return null==e||e.addEventListener("scroll",t),()=>{null==e||e.removeEventListener("scroll",t)}}),[s]),(0,c.jsx)(l.xu,{color:"selected",maxHeight:140,overflow:"scroll",ref:u,rounding:2,width:180,children:null===(a=d)||void 0===a?void 0:a.map((e=>(0,c.jsx)(l.xu,{"data-test-id":"reaction-list-single-user",margin:3,children:(0,c.jsx)(Z,{response:e})},e.id)))})};var G=i(941646);const H=({commentId:e,dismissReactionList:t,helpfulCount:i,isMarkedHelpfulByMe:o,isLovedByMe:a,isReactionListOpen:r,lovedCount:d,onReactionCountHover:u,onToggleHelpful:p,onToggleLove:h})=>{const _=(0,s.ZP)(),m=(0,n.useRef)(),[g,x]=(0,n.useState)(!1);let f=!1,y=(d||0)+(i||0);o&&a&&(y-=1);const v=e=>()=>{x(e)},b=()=>{f=!0,u()},P=()=>{f=!1,setTimeout((()=>{f||t()}),1e3)},w=(0,c.jsx)(G.Z,{id:"comment-reaction-container-entry-point",children:g?(0,c.jsx)(l.iP,{onMouseLeave:v(!1),onMouseDown:v(!1),children:(0,c.jsx)(z,{setHelpful:p(!0),setLoved:h(!0)})}):(0,c.jsx)(l.iP,{onMouseEnter:v(!0),children:(0,c.jsx)(l.JO,{accessibilityLabel:_._('React', 'comment.actionbar.react', 'accessibility label entry point to react to a comment'),color:"subtle",icon:"heart-outline",size:16})})});return(0,c.jsxs)(l.kC,{alignItems:"center",gap:{row:1,column:0},children:[o||a?(0,c.jsx)(l.iP,{onMouseDown:()=>{p(!1)(),h(!1)()},children:(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{backgroundImage:`url(${a?B():L()})`}},"data-test-id":a?"comment-reaction-container-loved-emoji":"comment-reaction-container-helpful-emoji",height:16,width:16})}):w,y>0&&(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)(l.iP,{onMouseEnter:b,onMouseLeave:P,children:(0,c.jsx)(l.xu,{"data-test-id":"comment-reaction-container-reaction-count",ref:m,children:(0,c.jsx)(l.xv,{color:"subtle",inline:!0,size:"200",weight:"bold",children:y})})}),r&&(0,c.jsx)(l.mh,{children:(0,c.jsx)(l.J2,{anchor:m.current,idealDirection:"down",onDismiss:t,positionRelativeToAnchor:!1,children:(0,c.jsx)(l.iP,{onMouseEnter:b,onMouseLeave:P,children:(0,c.jsx)(V,{commentId:e,isMarkedHelpfulByMe:o,isLovedByMe:a})})})})]})]})};var W=i(428837),$=i(486553),K=i(349700);function q(e){const{featuredCommentId:t,parentId:i,parentType:a,isDesktop:r,isLoading:d,isReadOnly:u,openOverflowMenu:p,replyingToCommentId:h,toggleHelpful:_,toggleLike:m,toggleReplyComposer:g,isORBACProfileManager:x,isVideo:f,storyPinDataId:y,pinId:v,closeupAttributionId:w,aggregatedPinDataId:S,closeupAttributionUsername:A,pinnerId:k,reactionListCommentId:E,showReactionListForComment:T}=e,C=(0,s.ZP)(),I=(0,P.lV)(),j=(0,o.useSelector)((({feeds:e})=>(e[`${b.DV.AGGREGATED_COMMENT_REPLIES}:${i}`]||[]).reduce(((e,{id:t})=>{const i=I[t];return i&&e.push(i),e}),[]))),[R,D]=(0,n.useState)(1),z=R===j.length;return(0,c.jsxs)(n.Fragment,{children:[j.length>1&&(0,c.jsx)(l.iP,{onTap:()=>{D(z?0:j.length)},children:(0,c.jsxs)(l.xu,{marginBottom:4,children:[(0,c.jsx)(l.xu,{display:"inlineBlock",marginEnd:2,children:(0,c.jsx)(l.xv,{color:"subtle",size:"200",weight:"bold",children:"⎯⎯"})}),(0,c.jsx)(l.xv,{inline:!0,color:"subtle",size:"100",weight:"bold",children:z?C._('Hide replies', 'comment.button.hideReplies', 'hide comment replies'):(0,K.nk)(C.ngettext('View {{ commentCount }} reply', 'View {{ commentCount }} replies', j.length, 'comment.button.showReplies', 'show comment replies'),{commentCount:j.length})})]})}),(0,c.jsx)(le,{comments:j.slice(0,R),featuredCommentId:t,gapSize:2,isDesktop:r,isLoading:d,isReadOnly:u,openOverflowMenu:p,toggleReplyComposer:g,parentId:i,parentType:a,replyingToCommentId:h,toggleHelpful:_,toggleLike:m,userAvatarSize:"sm",isORBACProfileManager:x,isVideo:f,storyPinDataId:y,pinId:v,closeupAttributionId:w,aggregatedPinDataId:S,closeupAttributionUsername:A,pinnerId:k,showReactionListForComment:T,reactionListCommentId:E})]})}const Y=({tags:e,taggedUsers:t,text:i})=>{const n=(e,t)=>(0,c.jsx)(l.xv,{inline:!0,overflow:"normal",children:e},t);return(0,c.jsx)("span",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},children:(()=>{if(!e.length||!t||e.length!==t.length)return n(i,"1");let o=0,a=[];return e.forEach(((e,r)=>{const s=i.substring(o,e.offset);o=e.offset+e.length;const d=i.substring(e.offset,o);a=a.concat(n(s,`${r}a`)).concat(((e,i,n,o)=>(0,c.jsx)(l.xv,{color:e,inline:!0,weight:"bold",overflow:"normal",children:(0,c.jsx)(l.rU,{href:`/${t[n].username}`,display:"inlineBlock",underline:"hover",children:i})},o))(e.color,d,r,`${r}b`))})),a=a.concat(n(i.substring(o),"2")),(0,c.jsx)(l.xv,{inline:!0,overflow:"normal",children:a})})()})};var X=i(964569),J=i(90326),Q=i(664569),ee=i(129274),te=i(379725),ie=i(473727),ne=i(94089),oe=i(162379),ae=i(584595);function re(e){var t,i,r,p;const{aggregatedPinDataId:_,closeupAttributionId:g,closeupAttributionUsername:f,comment:y,featuredCommentId:v,isDesktop:b,isReadOnly:A,isVideo:C,openOverflowMenu:I,toggleReplyComposer:j,parentId:R,parentType:D=Q.o.pin,pinId:z,storyPinDataId:O,replyingToCommentId:L,showReactionListForComment:N,toggleHelpful:B,toggleLike:M,userAvatarSize:Z,isORBACProfileManager:F,pinnerId:U,reactionListCommentId:V}=e,{user:{id:G,first_name:re,id:se,image_medium_url:le,username:ce},id:de,comment_count:ue,helpful_count:pe,tags:he}=y;let _e=!1,me=0,ge=!1;const xe=!!y.marked_helpful_by_me;let fe;const ye=!A,ve=[y.user];let be="",Pe=0;"aggregatedcomment"===y.type?(_e=y.highlighted_by_pin_owner,me=y.reaction_counts[1],ge=y.reaction_by_me>0,ve.push(...y.tagged_users),be=`${ce} ${y.text}`,Pe=new Date-new Date(y.created_at)):(fe=(y.images[0]||{})["150x150"],be=`${ce} ${y.details}`,Pe=new Date-new Date(y.done_at));const we=(0,s.ZP)(),{logContextEvent:Se}=(0,w.v)(),{checkExperiment:Ae}=(0,S.F)(),{showToast:ke}=(0,k.F9)(),Ee=(0,o.useDispatch)(),Te=(0,n.useRef)(),{anyEnabled:Ce}=Ae("web_m10n_business_access_orbac_ga"),Ie=1===y.comment_tag,je=(0,x.Z)(),Re=(0,m.Z)(),De=Ce?(0,E.lJ)(je,Re):"",{nativeEngagementsHiddenForUser:ze}=(0,ne.G)(),{aggregatedCommentsHiddenForUser:Oe,updateAggregatedComment:Le}=(0,P.nf)(),Ne=(0,X.Z)(),Be="userdiditdata"===y.type,Me=[{offset:0,length:ce.length,color:"darkGray"},...he.map((e=>({...e,offset:(e.offset||0)+ce.length+1,color:"blue"})))],[Ze,Fe]=(0,n.useState)(!1),[Ue,Ve]=(0,n.useState)(!1),[Ge,He]=(0,n.useState)(!1),[We,$e]=(0,n.useState)(!1),[Ke,qe]=(0,n.useState)(!1),[Ye,Xe]=(0,n.useState)(!1),[Je,Qe]=(0,n.useState)(oe.A.NONE),et=e=>()=>{Ve(e)};(0,n.useEffect)((()=>{ue>0&&Ee((0,te.U)("aggregatedcomment"===y.type?"AggregatedCommentReplyFeedResource":"DidItCommentsResource",{options:{isUnifiedComment:!0,objectId:de,redux_normalize_feed:!0}}))}),[y.type,de]);const tt=D.toLowerCase()===Q.o.aggregatedComment.toLowerCase(),it=e=>()=>{Fe(e),Xe(e)},nt=e=>()=>{qe(!e)},ot=()=>{Qe(oe.A.NONE)};return(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)(l.$j,{show:Ge,accessibilityLabel:"Loading comment"}),!Ue&&!Ge&&(0,c.jsxs)(l.kC,{alignItems:"stretch",justifyContent:"start",children:[(0,c.jsx)(l.xu,{marginEnd:2,children:(0,c.jsx)(ie.rU,{to:`/${ce}/`,children:(0,c.jsx)(d,{isQuestion:Ie,name:re||ce||"",size:Z,src:null!=le?le:""})})}),(0,c.jsxs)(l.kC,{flex:"grow",justifyContent:"start",direction:"column",children:[(0,c.jsxs)(l.kC,{justifyContent:"between",children:[(0,c.jsx)(l.kC.Item,{minWidth:0,children:(0,c.jsxs)(l.kC,{direction:"column",children:[fe&&(0,c.jsx)(l.xu,{marginTop:1,marginBottom:4,children:(0,c.jsx)(l.zd,{width:150,height:150,rounding:2,wash:!0,children:(0,c.jsx)(l.Ee,{alt:null!==(t=fe.url)&&void 0!==t?t:"",src:null!==(i=fe.url)&&void 0!==i?i:"",color:"#efefef",naturalWidth:null!==(r=fe.width)&&void 0!==r?r:1,naturalHeight:null!==(p=fe.height)&&void 0!==p?p:1},fe.url)})}),(0,c.jsx)(Y,{taggedUsers:ve,tags:Me,text:be})]})}),v===de&&(0,c.jsx)(l.xu,{alignSelf:"center",color:"primary",height:8,rounding:"pill",minWidth:8})]}),_e&&(0,c.jsx)(l.xu,{marginTop:4,marginBottom:3,children:(0,c.jsx)(l.xv,{size:"100",children:(0,K.nk)(we._('Highlighted by @{{ closeupAttributionUsername }}', 'comment.highlighted.label', 'label on comment that has been highlighted by the Pin creator'),{closeupAttributionUsername:f})})}),ye&&(0,c.jsxs)(l.xu,{alignItems:"center",display:"flex",height:25,justifyContent:"between",position:"relative",children:[(0,c.jsxs)(l.kC,{alignItems:"center",gap:{row:5,column:0},children:[(0,c.jsx)(l.xv,{color:"subtle",size:"200",children:(0,$.Z)(Pe)}),!Be&&(!F||Ce)&&(0,c.jsx)(l.iP,{onTap:()=>{j(y,R,D)},children:(0,c.jsx)(l.xv,{color:"subtle",size:"200",weight:"bold",children:we._('Reply', 'comment.button.reply', 'entry point to reply to comment')})}),!Be&&!F&&(b?(0,c.jsx)(H,{commentId:de,dismissReactionList:()=>{N(void 0)},helpfulCount:pe,isMarkedHelpfulByMe:xe,isLovedByMe:ge,lovedCount:me,onReactionCountHover:()=>{N(de)},onToggleHelpful:e=>()=>{xe!==e&&B(de,!e)()},onToggleLove:e=>()=>{ge!==e&&M(de,!e)()},isReactionListOpen:V===de}):(0,c.jsxs)(l.xu,{display:"flex",alignItems:"center","data-test-id":"reactions-likeWithCountButton",children:[(0,c.jsx)(l.hU,{accessibilityLabel:we._('Like', 'comment.button.like', 'like or unlike comment'),icon:"heart",iconColor:ge?"red":"gray",size:"xs",onClick:M(de,ge)}),me>0&&(0,c.jsx)(l.xv,{color:"subtle",size:"100",weight:"bold",children:me})]})),!(je.id===se&&Ie)&&(!F||Ce)&&(0,c.jsx)(l.xu,{ref:Te,children:(0,c.jsx)(l.hU,{accessibilityLabel:we._('More', 'comment.button.more', 'see more options for comment'),icon:"ellipsis",iconColor:"gray",size:"xs",onClick:()=>{b?Fe(!Ze):I&&I(y)}})})]}),!Be&&!F&&!b&&(0,c.jsx)(l.xu,{children:(0,c.jsx)(l.iP,{fullWidth:!1,onTap:B(de,xe),children:(0,c.jsxs)(l.kC,{height:"100%",alignItems:"center",gap:{row:1,column:0},children:[(0,c.jsx)(u,{color:"subtle",isMarkedHelpful:xe}),(0,c.jsx)(l.xv,{color:"subtle",size:"200",weight:"bold",children:we._('Helpful', 'comment.button.helpful', 'mark or unmark comment as helpful')}),pe>0&&(0,c.jsx)(l.xv,{color:"subtle",size:"100",weight:"bold",children:pe})]})})})]})]})]}),b&&(0,c.jsxs)(n.Fragment,{children:[Ue&&(0,c.jsx)(l.xu,{marginTop:3,children:(0,c.jsx)(oe.Z,{commentWarningModalState:Je,dismissCommentWarningModal:ot,initialText:"aggregatedcomment"===y.type?y.text:y.details,initialTags:y.tags,onAddItem:async({contentMarkdown:e,force:t,tags:i})=>{He(!0);try{await Le({commentId:y.id,force:t,orbacSubjectId:De,tags:i,text:e})}catch(n){if([ae.ky,ae.LJ].includes(n.code)&&b)return Qe(n.code===ae.ky?oe.A.WARNING:oe.A.BLOCK),He(!1),!1}return Ve(!1),He(!1),!0},onCancelItem:et(!1),objectType:Q.o.aggregatedComment,statusType:"textInFlightNested"})}),L===de&&(0,c.jsx)(l.xu,{marginTop:3,marginStart:tt?0:12,children:(0,c.jsx)(oe.Z,{commentWarningModalState:Je,dismissCommentWarningModal:ot,initialText:tt?`@${y.user.username} `:"",initialTags:tt?[{offset:0,object_id:G,length:y.user.username.length+1,tag_type:1}]:[],onAddItem:async({contentMarkdown:e,force:t,tags:i})=>{let n;$e(!0);let o=y.id;if(tt&&(o=R,n=y.id),o)try{await Ne({force:t,fromUnifiedComment:!0,objectType:Q.o.aggregatedComment,objectId:o,orbacSubjectId:De,tags:i,text:e,replyToCommentId:n})}catch(a){if([ae.ky,ae.LJ].includes(a.code)&&b)return Qe(a.code===ae.ky?oe.A.WARNING:oe.A.BLOCK),$e(!1),!1}return j(void 0),$e(!1),!0},onCancelItem:()=>{j()},objectType:Q.o.aggregatedComment,statusType:"textInFlightNested"})})]}),(ue>0||We)&&(0,c.jsx)(l.xu,{marginStart:12,marginTop:4,children:(0,c.jsx)(q,{featuredCommentId:v,isDesktop:b,isLoading:We,isReadOnly:A,parentId:de,parentType:y.type,replyingToCommentId:L,toggleReplyComposer:j,openOverflowMenu:I,toggleHelpful:B,toggleLike:M,isORBACProfileManager:F,pinId:z,closeupAttributionId:g,isVideo:C,storyPinDataId:O,aggregatedPinDataId:_,closeupAttributionUsername:f,pinnerId:U,showReactionListForComment:N,reactionListCommentId:V})}),b&&!A&&(0,c.jsx)(T,{anchor:Te.current,comment:y,dismiss:()=>{Fe(!1)},isOpen:Ze,isReply:tt,onEdit:et(!0),onReportTry:nt(!1),onShowBlockUserModal:it(!0),parentId:R,closeupAttributionId:g,pinnerId:U,pinId:z,aggregatedPinDataId:_}),Ke&&(0,c.jsx)(ee.N,{children:(0,c.jsx)(W.Z,{aggregatedPinDataId:_,didItDataId:de,onClose:nt,pinId:null!=z?z:"",username:ce,users:[y.user]})}),Ye&&(0,c.jsx)(a.Z,{firstName:null!=re?re:"",onBlockUser:()=>{Ee((0,J.Ge)(G,De)),Oe(G),ze(G),Se({event_type:101,component:13712,element:87,view_type:220,aux_data:{creator_id:je.isAuth?je.id:null}}),Xe(!1),ke((({hideToast:e})=>(0,c.jsx)(h.ZP,{onHide:e,text:(0,K.nk)(we._('You\'ve blocked {{ username }}', 'comment.blockAuthor.toast', 'confirmation toast that shows after user blocks comment author'),{username:ce}).join("")})))},onClearModal:it(!1)})]})}var se=i(366428);function le(e){const{aggregatedPinDataId:t,comments:i,featuredCommentId:n,gapSize:o=6,isDesktop:a,isLoaded:r=!1,isLoading:d=!1,isReadOnly:u,openOverflowMenu:p,toggleReplyComposer:h,parentId:_,parentType:m,replyingToCommentId:g,toggleHelpful:f,toggleLike:y,userAvatarSize:v,isORBACProfileManager:b,isVideo:P,storyPinDataId:w,pinId:A,closeupAttributionId:k,closeupAttributionUsername:E,pinnerId:T,showReactionListForComment:C,reactionListCommentId:I}=e,j=(0,s.ZP)(),{isAuth:R}=(0,x.Z)(),{checkExperiment:D}=(0,S.F)();let z;return z=w?"story":P?"video":"pin",i.length>0?(0,c.jsxs)(l.kC,{dataTestId:"aggregated-comment-list",direction:"column",gap:{row:0,column:o},children:[i.map(((e,i)=>(0,c.jsx)(se.F,{impressionAuxFields:{commentId:e.id,pinId:A,pinOwnerUserId:k,pinType:z,parentId:_,parentType:m,commentType:"aggregatedComment"},componentType:"pin"===m?13696:13697,impressionType:"Comment",loggingId:e.id,slotIndex:i,viewType:3,children:({impressionTrackerRef:i})=>(0,c.jsx)(l.xu,{ref:i,"data-test-id":"commentThread-comment",children:(0,c.jsx)(re,{comment:e,isDesktop:a,featuredCommentId:n,isReadOnly:u,parentId:_,parentType:m,openOverflowMenu:p,replyingToCommentId:g,toggleReplyComposer:h,toggleHelpful:f,toggleLike:y,userAvatarSize:v,isORBACProfileManager:b,aggregatedPinDataId:t,closeupAttributionUsername:E,closeupAttributionId:k,pinId:A,storyPinDataId:w,isVideo:P,pinnerId:T,showReactionListForComment:C,reactionListCommentId:I})})},e.id))),(0,c.jsx)(l.$j,{accessibilityLabel:j._('Comments loading', ' - ', ' -- '),show:d})]}):a&&r&&(R||D("web_lop_comment_composer_upsell").anyEnabled)&&(0,c.jsx)(l.xv,{color:"subtle",children:j._('No comments yet! Add one to start the conversation.', 'commentThread.emptyState.message', 'comment thread empty state message')})}},735397:(e,t,i)=>{i.d(t,{Z:()=>d});var n=i(121151),o=i(50286),a=i(898781),r=i(349700),s=i(966113),l=i(883119),c=i(785893);const d=({isBlock:e,isOpen:t,onDismiss:i,onIgnore:d})=>{const u=(0,a.ZP)(),p="desktop"===(0,o.ZP)();return(0,c.jsx)(n.ZP,{accessibilityModalLabel:u._('Comment warning modal', 'commentCreate.warningModal.accessibilityLabel', 'accessibility label for modal that appears when users try create a comment containing words that trigger a warning or block'),isOpen:t,onDismiss:i,children:(0,c.jsxs)(l.xu,{direction:"column",display:"flex",paddingX:4,paddingY:8,children:[(0,c.jsx)(l.X6,{align:"center",size:"500",children:u._('Keep things positive', 'commentCreate.warningModal.heading', 'heading in warning modal reminding users to keep their comments positive')}),(0,c.jsx)(l.xu,{marginTop:p?4:2,marginBottom:8,children:(0,c.jsx)(l.xv,{align:"center",children:(0,r.nk)(e?u._('It looks like your comment violates the {{communityGuidelinesLink}}. Edit your comment to comply with the guidelines before you post.', 'commentCreate.warningModal.description', 'message informing users that their comment violates our community guidelines'):u._('It looks like your comment might violate the {{communityGuidelinesLink}}. Edit your comment to comply with the guidelines before you post.', 'commentCreate.blockModal.description', 'message warning users that their comment might violate our community guidelines'),{communityGuidelinesLink:(0,c.jsx)(l.rU,{href:s.Ms,display:"inlineBlock",children:u._('Community Guidelines', 'commentCreate.warningBlockModal.link.communityGuidelines', 'link to Pinterest community guidelines')})})})}),(0,c.jsxs)(l.kC,{alignItems:"center",gap:2,justifyContent:"center",children:[!e&&(0,c.jsx)(l.zx,{onClick:d,text:u._('Post anyway', 'commentCreate.warningModal.button.postAnyway', 'button in modal users can click to ignore warning and post comment anyway')}),(0,c.jsx)(l.zx,{color:"red",onClick:i,text:u._('Edit comment', 'commentCreate.warningModal.button.editComment', 'button in modal users can click on to heed warning and edit comment before posting')})]})]})})}},162379:(e,t,i)=>{i.d(t,{A:()=>P,Z:()=>S});var n=i(667294),o=i(116303),a=i(121151),r=i(941646),s=i(883119),l=i(785893);const c=({accessibilityModalLabel:e,cancelButtonText:t,confirmButtonText:i,detail:n,heading:o,onConfirm:c,onDismiss:d})=>(0,l.jsx)(a.ZP,{accessibilityModalLabel:e,heading:o,onDismiss:d,size:"md",children:(0,l.jsxs)(s.xu,{children:[(0,l.jsx)(s.xu,{padding:4,children:(0,l.jsx)(s.xv,{children:n})}),(0,l.jsxs)(s.kC,{alignItems:"stretch",justifyContent:"end",children:[(0,l.jsx)(s.xu,{margin:2,children:(0,l.jsx)(r.Z,{id:"confirm-modal-cancel",children:(0,l.jsx)(s.zx,{fullWidth:!0,onClick:d,text:t})})}),(0,l.jsx)(s.xu,{margin:2,children:(0,l.jsx)(r.Z,{id:"confirm-modal-confirm",children:(0,l.jsx)(s.zx,{fullWidth:!0,color:"red",onClick:()=>{c(),d()},text:i})})})]})]})});var d=i(735397),u=i(857752),p=i(898781),h=i(717615),_=i(19121),m=i(664569),g=i(235872),x=i(407043),f=i(773285),y=i(50286),v=i(947729),b=i(231947);const P={NONE:"none",WARNING:"warning",BLOCK:"block"},w=({dismissCommentWarningModal:e,initialTags:t,initialText:i,objectType:a,onAddItem:r,onCancelItem:w,onEnter:S,privatePin:A,commentWarningModalState:k,statusType:E})=>{var T;const C=(0,p.ZP)(),I=(0,y.HG)(),j=(0,_.Z)(),R=(0,h.Z)(),{checkExperiment:D}=(0,f.F)(),{anyEnabled:z}=D("web_m10n_business_access_orbac_ga"),O=z?(0,b.lJ)(j,R):"",{logContextEvent:L}=(0,x.v)(),[N,B]=(0,n.useState)(!1),[M,Z]=(0,n.useState)(!1),[F,U]=(0,n.useState)(t||[]),[V,G]=(0,n.useState)(i),[H,W]=(0,n.useState)(!1),$=j.isAuth?{image_medium_url:O?null===(T=R.user)||void 0===T?void 0:T.imgUrl:j.imageMediumUrl,username:O?(0,b.Ms)(j,R):j.username}:{},K=F.length>g.b7,q=V!==i,Y=[m.o.pin,m.o.didIt].includes(a),X="textStaticDisplay"===E,J="textInFlightNested"===E;let Q=C._('Reply', 'Adding text to a community comment', 'Adding text to a community comment');Y&&(Q=A?C._('Add a public comment', 'Add a comment', 'Add a comment'):C._('Add a comment', 'Prompt to add a comment', 'Prompt to add a comment'));const ee=Y?C._('Done', 'Post a top level comment on a pin or tried it', 'Post a top level comment on a pin or tried it'):C._('Reply', 'Posting a reply to a post or comment', 'Posting a reply to a post or comment');let te=H?"darkWash":"secondary";X||(te="default");const ie=()=>{B(!1),Z(!1),G("")},ne=async e=>{const t={contentMarkdown:V,force:e,imageSignatures:"",objectIds:[],tags:JSON.stringify(F)};return r&&await r(t)?(ie(),!0):(Z(!1),!1)},oe=()=>K?Promise.resolve(!1):(Z(!0),ne(!1)),ae=()=>{ie(),w&&w()},re=()=>{B(!N)},se=j.isAuth&&I&&!J;return(0,l.jsxs)(n.Fragment,{children:[(0,l.jsxs)(s.xu,{dangerouslySetInlineStyle:se?{__style:{borderTop:"1px solid #EFEFEF",borderBottomRightRadius:32,borderBottomLeftRadius:32}}:void 0,color:"default",paddingX:se?8:void 0,paddingY:se?6:0,width:"100%",children:[(0,l.jsxs)(s.kC,{alignItems:"stretch",justifyContent:"start",children:[j.isAuth&&!J&&(0,l.jsx)(s.xu,{alignItems:"end",display:"flex",marginEnd:2,children:(0,l.jsx)(o.Z,{src:$.image_medium_url,name:$.username,size:"md"})}),(0,l.jsx)(s.xu,{borderStyle:X&&I?void 0:"sm",color:X&&I?te:void 0,flex:"grow",paddingY:J?3:0,rounding:J?4:6,children:(0,l.jsx)(s.iP,{onMouseEnter:()=>{W(!0)},onMouseLeave:()=>{W(!1)},fullHeight:!0,children:(0,l.jsx)(s.kC,{height:"100%",justifyContent:"center",children:(0,l.jsx)(u.Z,{cursor:X?"pointer":"text",focusOnMount:J,hasEmojiEntryPoint:I,initialMentions:t,initialText:i,isUiUpdated:se,onAddMention:()=>{L({event_type:8905,aux_data:{tag_type:1}})},onChange:({text:e,mentions:t})=>{t.length{S()},onPost:oe,onSearchMentionCancel:()=>{L({event_type:8908,aux_data:{tag_type:1}})},onSuggestionsPopoverOpen:()=>{L({event_type:8907,aux_data:{tag_type:1}})},placeholder:Q,statusType:E})})})})]}),K&&(0,l.jsx)(s.xv,{color:"error",size:"100",align:"end",children:(0,v.bl)(!1,C)}),J&&(0,l.jsxs)(s.xu,{display:"flex",justifyContent:"end",marginTop:4,children:[(0,l.jsx)(s.zx,{color:"gray",onClick:q?re:ae,text:C._('Cancel', 'Cancel making post or comment', 'Cancel making post or comment')}),(0,l.jsx)(s.xu,{marginStart:2,"data-test-id":"activity-item-create-submit",children:(0,l.jsx)(s.zx,{color:"red",disabled:!q||M||!V.length,onClick:()=>{oe()},text:J?C._('Save', 'comment save button', 'comment save button'):ee})})]})]}),N&&(0,l.jsx)(c,{accessibilityModalLabel:C._('Confirm discard composer', 'Confirm discarding a post or comment', 'Confirm discarding a post or comment'),heading:C._('Are you sure?', 'Confirm discarding a post or comment', 'Confirm discarding a post or comment'),cancelButtonText:C._('Cancel', 'Cancel discarding a post or comment', 'Cancel discarding a post or comment'),confirmButtonText:J?C._('Discard changes', 'Clear edits', 'Clear edits'):C._('Delete', 'delete draft of a post or comment', 'delete draft of a post or comment'),detail:J?C._('Your changes will be discarded', 'Confirmation dialog before discarding changes', 'Confirmation dialog before discarding changes'):C._('Once you delete a draft, you can\u2019t undo it', 'Confirmation before discarding changes', 'Confirmation before discarding changes'),onConfirm:ae,onDismiss:re}),k!==P.NONE&&(0,l.jsx)(d.Z,{isBlock:k===P.BLOCK,onDismiss:e,onIgnore:()=>{ne(!0),e(),w&&w()}})]})};w.defaultProps={initialText:"",onEnter:()=>{}};const S=w},541776:(e,t,i)=>{i.d(t,{LH:()=>o,Rv:()=>a,TJ:()=>r,iB:()=>n,pW:()=>s});const n=48,o=n+8,a=Object.freeze({TOP:0,REPLY_TO_TRIED:1,REPLY_TO_AGGREGATED:2}),r="comment_featured_ids",s="did_it_featured_ids"},512465:(e,t,i)=>{i.d(t,{Z:()=>d,w:()=>u});var n=i(349700);const o=e=>e._('{{ first }}', 'Generic message that lists 1 item', 'Generic message that lists 1 item (ex: Stevie)'),a=e=>e._('{{ first }} and {{ second }}', 'Generic message that lists 2 items', 'Generic message that lists 2 items (ex: Stevie and Michael)'),r=e=>e._('{{ first }}, {{ second }} and {{ third }}', 'Generic message that lists 3 items', 'Generic message that lists 3 items (ex: Stevie, Michael and Cyndi)'),s=e=>e._('{{ first }}, {{ second }}, {{ third }} and {{ fourth }}', 'Generic message that lists 4 items', 'Generic message that lists 4 items (ex: Stevie, Michael, Cyndi and Bob)'),l=e=>e._('{{ first }}, {{ second }}, {{ third }}, {{ fourth }} and {{ fifth }}', 'Generic message that lists 5 items', 'Generic message that lists 5 items (ex: Stevie, Michael, Cyndi, Bob and Bruce)'),c=e=>e._('{{ first }}, {{ second }}, {{ third }}, {{ fourth }}, {{ fifth }} and {{ sixth }}', 'Generic message that lists 6 items', 'Generic message that lists 6 items (ex: Stevie, Michael, Cyndi, Bob, Bruce and Lionel)');function d(e,t){const i={first:e[0],second:e[1],third:e[2],fourth:e[3],fifth:e[4],sixth:e[5],remaining:e.length-5};switch(e.length){case 0:return[];case 1:return(0,n.nk)(o(t),i);case 2:return(0,n.nk)(a(t),i);case 3:return(0,n.nk)(r(t),i);case 4:return(0,n.nk)(s(t),i);case 5:return(0,n.nk)(l(t),i);case 6:return(0,n.nk)(c(t),i);default:return(0,n.nk)((e=>e._('{{ first }}, {{ second }}, {{ third }}, {{ fourth }}, {{ fifth }} and {{ remaining }} others', 'Generic message that lists more than 6 items', 'Generic message that lists more than 6 items (ex: Stevie, Michael, Cyndi, Bob, Bruce and 2 others)'))(t),i)}}function u(e,t){const i={first:e[0],second:e[1],third:e[2],fourth:e[3],fifth:e[4],sixth:e[5],seventh:e[6],remaining:e.length-6};switch(e.length){case 0:return[];case 1:return(0,n.nk)(o(t),i);case 2:return(0,n.nk)(a(t),i);case 3:return(0,n.nk)(r(t),i);case 4:return(0,n.nk)(s(t),i);case 5:return(0,n.nk)(l(t),i);case 6:return(0,n.nk)(c(t),i);case 7:return(0,n.nk)((e=>e._('{{ first }}, {{ second }}, {{ third }}, {{ fourth }}, {{ fifth }}, {{ sixth }} and {{ seventh }}', 'Generic message that lists 7 items', 'Generic message that lists 7 items (ex: Stevie, Michael, Cyndi, Bob, Bruce, Lionel and Tina)'))(t),i);default:return(0,n.nk)((e=>e._('{{ first }}, {{ second }}, {{ third }}, {{ fourth }}, {{ fifth }}, {{ sixth }} and {{ remaining }} others', 'Generic message that lists more than 7 items', 'Generic message that lists more than 7 items (ex: Stevie, Michael, Cyndi, Bob, Bruce, Lionel and 2 others)'))(t),i)}}},81636:(e,t,i)=>{i.d(t,{Q:()=>c,Z:()=>d});var n=i(667294),o=i(682492),a=i.n(o),r=i(112690),s=i(780280),l=i(385740);function c(e,t){const{setViewContextData:i}=(0,l.sV)(),{requestIdentifier:o}=(0,s.B)(),c=(0,r.Z)(),{viewData:d}=(0,l.SU)();(0,n.useEffect)((()=>{var t;e&&(i({viewType:null!==(t=e.view_type)&&void 0!==t?t:1,viewParameter:e.view_parameter,viewData:e.view_data?a()(d,e.view_data):a()({},d),component:e.component,element:e.element,objectIdStr:e.object_id_str,auxData:e.aux_data,clientTrackingParams:e.clientTrackingParams}),c({...e,event_type:13,request_identifier:o}))}),[t])}function d(e){const{children:t,log:i}=e;return c(i),t||null}},407043:(e,t,i)=>{i.d(t,{B:()=>l,v:()=>s});var n=i(385740),o=i(425288),a=i(785893);const{Provider:r,useHook:s}=(0,o.Z)("ContextLogger");function l({children:e,value:t}){const{setViewContextData:i}=(0,n.sV)();return t.injectSetViewContextDataFromHook=i,(0,a.jsx)(r,{value:t,children:e})}},745760:(e,t,i)=>{i.d(t,{Ch:()=>p,nc:()=>b,a:()=>P,ZP:()=>w,cA:()=>y,li:()=>v,h1:()=>d});var n=i(682492),o=i.n(n),a=i(412067),r=i(594881),s=i(706922);var l=i(385740),c=i(172045);const d=()=>1e6*Date.now(),u=[6945,170],p={3829:"articleImpressions",18:"pinImpressions",3700:"boardImpressions",3803:"searchImpressions",170:"storyImpression",3704:"userImpressions"},h=[4700,4701,4702,4703,7042,7043],_=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)),m=e=>u.includes(e);let g;function x(){const e=new Date;g?g&&g.getUTCDate()!==e.getUTCDate()&&(g=e,(0,r.Z)()):g=e}function f(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&&!m(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:d(),component:t.component,clientUUID:(0,c.Z)(),aux_data:t.auxData||{},appState:t.appState,event_data:{[t.impressionType]:m(t.eventType)?{...t.eventData,...(t.eventData||{})[t.impressionType]}:[t.eventData]},object_id_str:t.objectIdStr||void 0};e.push(i)}return e}),[])}const y=e=>{const t=e.event_type,i=h.includes(t),n=(0,l.BE)();return!(!i&&13!==t&&!n)},v=(e,t)=>{const i=e.event_type,n=h.includes(i),a=(0,l.BE)();return n?e:13===i&&e.view_type?(null==t||t({viewType:e.view_type,viewParameter:e.view_parameter,viewData:null!=a&&a.viewData?o()(a.viewData,e.view_data):o()({},e.view_data)}),e):!a||e.view_type&&e.view_parameter?e:{...e,view_type:a.viewType,view_parameter:a.viewParameter,view_data:e.view_data?o()(e.view_data,a.viewData):o()({},a.viewData)}},b=(e,t)=>{var i,n;const o=e.component,a=e.object_id_str,r=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,...o?{component:o}:{},eventData:i,...s?{eventType:s}:{},...r?{viewType:r}:{},viewData:e.view_data,viewParameter:e.view_parameter,...a?{objectIdStr:a}: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,...f(t)]}function o(){e=[],t=[],i=0}function r(e=!1){const t=n();t.length&&(a.Z.create("ContextLogResource",{events:t,report_time:d()}).callCreate({async:!e,showError:!1}),o(),x())}return{flushContextEvents:r,getContextEvents:n,logContextEvent:function({object_id_str:t,...n}){const o={aux_data:{},event_data:{},view_data:{},...n,time:d(),clientUUID:(0,c.Z)(),...t?{object_id_str:t}:null};o.aux_data=function(e){if(!e)return e;const{element:t,eventData:i,component:n,objectId:o,view:a,viewParameter:r,viewData:s,durationNs:l,pairId:c,clientTrackingParams:d,...u}=e;return u}(o.aux_data),i+_(o)>20480&&r(!1),e.push(o),x()},logImpression:function(e){i+_(e)>20480&&r(!1),t.push(e)},resetEventsBuffer:o}}},112690:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(407043);const o=()=>(0,n.v)().logContextEvent},385740:(e,t,i)=>{i.d(t,{BE:()=>c,Ih:()=>d,SU:()=>u,sV:()=>s});var n=i(667294),o=i(425288),a=i(785893);const{Provider:r,useHook:s}=(0,o.Z)("View");let l;function c(){return l}function d({children:e,initialState:t={}}){const[i,o]=(0,n.useState)(t),s=(0,n.useCallback)((()=>{l={},o({})}),[]),c=(0,n.useCallback)((e=>{l={...l,...e},o((t=>({...t,...e})))}),[]),d=(0,n.useMemo)((()=>({viewContextData:i,clearViewContextData:s,setViewContextData:c})),[i,c,s]);return(0,a.jsx)(n.Fragment,{children:(0,a.jsx)(r,{value:d,children:e})})}function u(){const{viewContextData:e}=s();return e}},911691:(e,t,i)=>{i.d(t,{Z:()=>n});const n=["AT","BE","BG","CY","CZ","DE","DK","EE","ES","FI","FR","GB","GR","HR","HU","IE","IS","IT","LI","LT","LU","LV","MT","NL","NO","PL","PT","RO","SE","SI","SK"]},798748:(e,t,i)=>{i.d(t,{sw:()=>c,tb:()=>p,jD:()=>u});var n=i(911691),o=i(226198);const a=[o.EI,o.SJ,o.KU,o.Ek,o.wV,o.ZQ,o.pI,o.pp,o.fs,o.GY,o.hx,o.tv,o.jh,o.x_,o.Ck,o.L9,o.fS,o.rc,o.e7,o.x2,o.nE,o.qN,o.ZO,o.B_,o.Mq,o.Z_,o.$E,o.Q1,o.x3,o.sy,o.It,o.IV,o.eB,o.Gl,o.oj,o.ls,o.hq,o.oC,/^offsite_\d+$/,/^SSESS[a-z0-9]+/],r={marketing:[o.WL,o.k5,o.BN,o.cb,o.We,o._E],analytic:[o.MO,o.tg,o.JD,o.Mw,o.uq,o.o7,o.su,o.eG,o.th,o.VL,o.aq,/^ajs_$/,/^pinAlert.*$/],personalization:[o.T7,o.t0]};function s(e,t){return t.some((t=>t instanceof RegExp?t.test(e):t.name===e))}function l(e,t,i=!1){return s(e,t)||i&&"unknown"===function(e){const t=["marketing","analytic","personalization"];for(const i of t)if(s(e,r[i]))return i;return s(e,a)?"essential":"unknown"}(e)}const c=new Set(n.Z);let d=()=>[];function u(e,t){d=()=>{const i=e(),n=t(),o=i.isAuth?i.country:"";if(!(c.has(o)||c.has(n.countryFromIp||"")||c.has(n.countryFromHostName||"")))return[];return["allow_marketing_cookies","allow_analytic_cookies","allow_personalization_cookies"].filter((e=>i.isAuth&&!0!==i[e])).map((e=>{switch(e){case"allow_marketing_cookies":return"marketing";case"allow_analytic_cookies":return"analytic";case"allow_personalization_cookies":return"personalization";default:throw new Error("Unexpected cookie category to block")}}))}}function p(e){return l(e,function(e=[]){return e.reduce(((e,t)=>e.concat(r[t])),[])}(d()))}},231486:(e,t,i)=>{i.d(t,{U2:()=>r,kZ:()=>s,t8:()=>d,zN:()=>u});var n=i(172071),o=i(798748);function a(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("\\b"+e+"=.+?($|;)","g"));return t&&t[0]&&unescape(t[0].substring(e.length+1,t[0].length).replace(";",""))||null}function r(e){return a(e.name)}function s(e){const t=1/60;switch(e.duration){case"session":return;case"30s":return.008333333333333333;case"1m":return 1*t;case"5m":return 5*t;case"12h":return 12;case"1d":return 24;case"30d":return 720;case"180d":return 4320;case"1y":return 8760;case"sessionCookie":throw new Error("Cannot set duration to sessionCookie in client");default:throw new Error(`Invalid cookie duration ${String(e.duration)}`)}}const l=e=>String(e).replace(/[^0-9a-zA-Z_-]+/g,"_");function c(e,t,i){if((0,o.tb)(e)){let t=!1;if(a(e)){const i=[`${e}=`,"path=/",`expires=${new Date(0).toUTCString()}`].join(";");document.cookie=i,t=!a(e)}return n.Z.increment("webapp.cookies.blocked.client",.01,{cookieName:l(e),deleted:t}),document.cookie}const r=[e+"="+escape(t),"path=/"],s=function(e){if(isNaN(parseInt(e,10)))return"";{const t=new Date;return t.setTime(Date.now()+60*parseInt(e,10)*60*1e3),t.toUTCString()}}(i);return s&&r.push("expires="+s),r.push("secure"),document.cookie=r.join("; "),n.Z.increment("webapp.cookies.set.client",1e-4,{cookieName:l(e)}),document.cookie}function d(e,t,i){return c(e.name,t,i)}const u=e=>{a(e)&&c(e,"",-100)}},226198:(e,t,i)=>{i.d(t,{$E:()=>T,BN:()=>V,B_:()=>A,Ck:()=>g,EI:()=>n,Ek:()=>R,GS:()=>se,GY:()=>u,Gl:()=>B,IV:()=>L,It:()=>O,JD:()=>I,KU:()=>a,L9:()=>x,MO:()=>W,Mq:()=>k,Mw:()=>$,Q1:()=>C,SJ:()=>o,T7:()=>ie,VL:()=>ee,WL:()=>F,We:()=>H,Xh:()=>oe,ZO:()=>S,ZQ:()=>s,Z_:()=>E,_E:()=>ce,aq:()=>te,cb:()=>G,e7:()=>K,eB:()=>N,eF:()=>re,eG:()=>J,fS:()=>f,fs:()=>d,hq:()=>D,hx:()=>p,jh:()=>_,k5:()=>U,lq:()=>ae,ls:()=>Z,nE:()=>P,o7:()=>Y,oC:()=>le,oj:()=>M,pI:()=>l,pp:()=>c,qN:()=>w,rc:()=>y,su:()=>X,sy:()=>z,t0:()=>ne,tg:()=>j,th:()=>Q,tv:()=>h,uq:()=>q,wV:()=>r,x2:()=>b,x3:()=>v,x_:()=>m});const n={name:"_auth",purpose:"essential",httpOnly:!0,provenance:"1p",duration:"sessionCookie"},o={name:"_b",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},a={name:"_pinterest_access_token",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},r={name:"_routing_id",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},s={name:"_ss_al",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},l={name:"_ss_at",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},c={name:"_ss_auth",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},d={name:"_ss_country_code",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},u={name:"_ss_la",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},p={name:"_ss_li",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},h={name:"_ss_lo",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},_={name:"_ss_na",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},m={name:"_ss_u",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},g={name:"AUTHSSL",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},x={name:"cm_sub",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"1y"},f={name:"csrftoken",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"1y"},y={name:"daa",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},v={name:"logged_out",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},b={name:"fbalae",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"12h"},P={name:"force_default_pinner_experience",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},w={name:"forced_experiments",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},S={name:"forced_no_experiments",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},A={name:"G_ENABLED_IDPS",purpose:"essential",httpOnly:!1,provenance:"3p",duration:"session"},k={name:"galae",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"12h"},E={name:"hasBeenShownLoginModalInOpen",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"12h"},T={name:"is_in_integration_tests",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},C={name:"languageIsDetected",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},I={name:"_pinterest_referral_source",purpose:"analytic",httpOnly:!1,provenance:"1p",duration:"5m"},j={name:"_pinterest_referrer",purpose:"analytic",httpOnly:!1,provenance:"1p",duration:"5m"},R={name:"_pinterest_sess",purpose:"essential",httpOnly:!0,provenance:"1p",duration:"sessionCookie"},D={name:"_pinterest_sos",purpose:"essential",httpOnly:!0,provenance:"1p",duration:"1d"},z={name:"ls",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},O={name:"r_r",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"180d"},L={name:"SimpleSAMLAuthToken",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},N={name:"SimpleSAMLSessionID",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},B={name:"ss",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},M={name:"tr_rdrct",purpose:"essential",httpOnly:!1,provenance:"unknown",duration:"1y"},Z={name:"unauthLocale",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"},F={name:"_derived_epik",purpose:"marketing",httpOnly:!1,provenance:"1p",duration:"session"},U={name:"_epik",purpose:"marketing",httpOnly:!1,provenance:"1p",duration:"session"},V={name:"_pinterest_ct",purpose:"marketing",httpOnly:!1,provenance:"1p",duration:"session"},G={name:"_pinterest_ct_rt",purpose:"marketing",httpOnly:!1,provenance:"1p",duration:"session"},H={name:"_pinterest_ct_ua",purpose:"marketing",httpOnly:!1,provenance:"1p",duration:"session"},W={name:"_pinterest_cm",purpose:"analytic",httpOnly:!1,provenance:"1p",duration:"session"},$={name:"_sd_redirect",purpose:"analytic",httpOnly:!1,provenance:"1p",duration:"30s"},K={name:"fba",purpose:"essential",httpOnly:!1,provenance:"1p",duration:"30d"},q={name:"ajs_anonymous_id",purpose:"analytic",httpOnly:!1,provenance:"3p",duration:"session"},Y={name:"ajs_group_id",purpose:"analytic",httpOnly:!1,provenance:"3p",duration:"session"},X={name:"ajs_user_id",purpose:"analytic",httpOnly:!1,provenance:"3p",duration:"session"},J={name:"amp-access",purpose:"analytic",httpOnly:!1,provenance:"1p",duration:"session"},Q={name:"amp-experiment",purpose:"analytic",httpOnly:!1,provenance:"1p",duration:"session"},ee={name:"sessionFunnelEventLogged",purpose:"analytic",httpOnly:!1,provenance:"1p",duration:"12h"},te={name:"session_internal",purpose:"analytic",httpOnly:!1,provenance:"1p",duration:"session"},ie={name:"attemptToClaimWebsite",purpose:"personalization",httpOnly:!1,provenance:"1p",duration:"1d"},ne={name:"bxn",purpose:"personalization",httpOnly:!1,provenance:"1p",duration:"session"},oe={name:"ujr",purpose:"unknown",httpOnly:!1,provenance:"1p",duration:"session"},ae={name:"BearerToken",purpose:"unknown",httpOnly:!1,provenance:"unknown",duration:"session"},re={name:"sterling_save_preferences",purpose:"unknown",httpOnly:!1,provenance:"1p",duration:"session"};function se(e){return{name:`offsite_${e}`,purpose:"essential",httpOnly:!1,provenance:"1p",duration:"session"}}const le={name:"__Secure-s_a",purpose:"essential",httpOnly:!0,provenance:"1p",duration:"sessionCookie"},ce={name:"l_o",purpose:"marketing",httpOnly:!0,provenance:"1p",duration:"1y"}},425288:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(667294),o=i(785893);function a(e,t){let i=e.slice(1);if(i=i.endsWith("Context")?i:`${i}Context`,t){return{hocDisplayName:`with${e[0].toUpperCase()}${i}(${t})`}}return{propsDisplayName:`${e[0].toLowerCase()}${i}`,messageDisplayName:`${e[0].toUpperCase()}${i}`}}function r(e,t){const i=(0,n.createContext)(t),{propsDisplayName:r,messageDisplayName:s}=a(e);i.displayName=s;const l=i.Provider,c=({children:e})=>{const t=(0,n.useContext)(i);if(void 0===t)throw new Error(`${s}Consumer must be used within a ${s}Provider.`);return e(t)},d=()=>(0,n.useContext)(i);function u(t){const{hocDisplayName:i}=a(e,String(t.displayName||t.name)),n=e=>(0,o.jsx)(c,{children:n=>{if(void 0===n)throw new Error(`${i} must be used within a ${s}Provider.`);if(e[r])throw new Error("Parent Component and Context are passing to the component the same variables.");const a={[r]:n};return(0,o.jsx)(t,{...e,...a})}});return n.displayName=i,n}return l.displayName=`${s}Provider`,c.displayName=`${s}Consumer`,u.displayName=`${s}HOC`,{Provider:l,Consumer:c,MaybeConsumer:({children:e})=>e((0,n.useContext)(i)),useMaybeHook:d,useHook:function(){const e=d();if(void 0===e)throw new Error(`use${s} must be used within a ${s}Provider.`);return e},deprecatedHOC:u}}},643010:(e,t,i)=>{i.d(t,{F6:()=>u,Hs:()=>d,Uf:()=>r,Yc:()=>l,vs:()=>c});var n=i(667294),o=i(867820),a=i(844974);const r="theme",s="dark"===(0,a.qn)(r),l=()=>s;function c(){const[e,t]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{t(l())}),[t]),e}const d=()=>{(0,a.Nh)(r,"dark"),(0,o.My)("mweb.dark_mode.enable"),window.location.reload()},u=()=>{(0,a.L_)(r),(0,o.My)("mweb.dark_mode.disable"),window.location.reload()}},782534:(e,t,i)=>{i.d(t,{Z:()=>r,k:()=>o.k});var n=i(780280),o=i(451820),a=i(785893);const r=({dateFormatType:e,useUTC:t=!0,value:i})=>(0,a.jsx)(n.LC,{children:n=>(0,o.Z)(n.locale,i,e,t)})},202139:(e,t,i)=>{i.d(t,{DH:()=>n,F4:()=>r,FS:()=>o,N1:()=>d,N9:()=>l,UK:()=>a,VL:()=>s,v6:()=>c});const n=1e3,o=60*n,a=60*o,r=24*a,s=7*r,l=30*r,c=31*r,d=365*r},451820:(e,t,i)=>{i.d(t,{Z:()=>o,k:()=>n});const n={LONG:"long",YEAR:"year",WEEKDAY_DATE:"weekday_date",WEEKDAY_DATE_TIME_TIMEZONE:"weekday_date_time_timezone",SHORT_WEEKDAY_DATE:"short_weekday_date",LONG_MONTH_YEAR:"long_month_year",NUMERIC:"numeric",MONTH_DAY:"month_day",SHORT_MONTH:"short_month",SHORT_MONTH_DAY:"short_month_day",DAY:"day",YEAR_SHORT_MONTH_DAY:"year_short_month_day",YEAR_SHORT_MONTH_DAY_HOUR:"year_short_month_day_hour",TIME:"time",TIME_TIMEZONE:"time_timezone",HOUR:"hour",TWO_DIGIT:"two_digit"};function o(e,t,i,o=!0){const a=function(e){switch(e){case n.YEAR:return{year:"numeric"};case n.LONG:return{year:"numeric",month:"long",day:"numeric"};case n.NUMERIC:return{year:"numeric",month:"numeric",day:"numeric"};case n.TWO_DIGIT:return{year:"numeric",month:"2-digit",day:"2-digit"};case n.WEEKDAY_DATE:return{weekday:"long",month:"long",day:"numeric",year:"numeric"};case n.SHORT_WEEKDAY_DATE:return{weekday:"short",month:"numeric",day:"numeric"};case n.WEEKDAY_DATE_TIME_TIMEZONE:return{weekday:"short",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"};case n.MONTH_DAY:return{month:"long",day:"numeric"};case n.SHORT_MONTH:return{month:"short"};case n.SHORT_MONTH_DAY:return{month:"short",day:"numeric"};case n.DAY:return{day:"numeric"};case n.LONG_MONTH_YEAR:return{month:"long",year:"numeric"};case n.YEAR_SHORT_MONTH_DAY:return{year:"numeric",month:"short",day:"numeric"};case n.YEAR_SHORT_MONTH_DAY_HOUR:return{month:"short",year:"numeric",day:"numeric",hour:"numeric"};case n.TIME:return{hour:"numeric",minute:"2-digit"};case n.TIME_TIMEZONE:return{hour:"numeric",minute:"2-digit",timeZoneName:"short"};case n.HOUR:return{hour:"numeric"};default:throw new Error('invalid dateFormatType "'+e+'"')}}(i);o&&(a.timeZone="UTC");return new Intl.DateTimeFormat(e,a).format(t)}},486553:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(202139);function o(e){return e=n.N1?`${Math.floor(e/n.N1)}y`:""}},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})},766935:(e,t,i)=>{function n(e,t){let i;return(...n)=>{clearTimeout(i),i=setTimeout((()=>e(...n)),t)}}i.d(t,{Z:()=>n})},966476:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(667294);const o=()=>{const[e,t]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{t(!0)}),[]),e}},722767:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),o=i(973935);function a(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class r extends n.Component{constructor(...e){super(...e),a(this,"observer",null),a(this,"handleVisibilityChanged",((e,t)=>{this.props.onVisibilityChange(e,t)}))}componentDidMount(){const e=o.findDOMNode(this);e instanceof HTMLElement&&(this.node=e),this.node&&(this.observer=new window.IntersectionObserver(this.handleVisibilityChanged,this.props.options),this.observer.observe(this.node))}componentWillUnmount(){this.observer&&(this.observer.unobserve(this.node),delete this.observer)}render(){return n.Children.only(this.props.children)}}const s=r},11363:(e,t,i)=>{i.d(t,{Bx:()=>o,N4:()=>r,is:()=>s,lt:()=>n,oM:()=>a});const n=e=>e._('You\'re almost there! Log in to access all of Pinterest', 'loginModal.limitedLogin.subheader', 'Subheader text on personalized login modal/flyout to remind users to log in'),o=e=>e._('Log in to save this Pin', 'limitedLogin.modalHeader.repin', 'Title on mobile web limited login modal to prompt users to login after they clicked save button.'),a=e=>e._('Log in to edit this Pin', 'limitedLogin.modalHeader.editPin', 'Title on mobile web limited login modal to prompt users to login after they clicked edit button.'),r=({i18n:e,toFollow:t})=>t?e._('Log in to follow', 'limitedLogin.modalHeader.follow', 'Title on mobile web limited login modal to prompt users to login to follow a user or board.'):e._('Log in to unfollow', 'limitedLogin.modalHeader.unfollow', 'Title on mobile web limited login modal to prompt users to login to unfollow a user or board.'),s=e=>e._('Log in to create a Pin or board', 'limitedLogin.modalHeader.create', 'Title on mobile web limited login modal to prompt users to login to create a Pin or board.')},780679:(e,t,i)=>{i.d(t,{g:()=>r,t:()=>a});var n=i(667294);const o=(0,n.createContext)(null),a=o.Provider,r=()=>(0,n.useContext)(o)},946984:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(898781),o=i(11363),a=i(987318);const r=()=>{const{loginForMore:e,viewer:t,limitedLoginModalSubheader:i}=(0,a.H)(),r=(0,n.ZP)();return"AUTH"===t.type?null:t=>{null==e||e.setVisible(!0),null==i||i.setText((null==t?void 0:t.loginModalHeader)||(0,o.lt)(r))}}},375571:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),o=i(172071),a=i(395164);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 s extends n.Component{constructor(...e){super(...e),r(this,"state",{error:null,info:null}),r(this,"resetError",(()=>{this.setState({error:null,info:null})}))}componentDidCatch(e,t){try{var i;const t=this.props.name,n=this.props.type||"secondary";(0,a.T)({extraData:null!==(i=e.extraData)&&void 0!==i?i:{},errorBoundary:t,errorBoundaryType:n,message:e.message,name:e.name,stack:e.stack}),o.Z.increment("react.error_boundary",.1,{component:void 0,name:this.props.name})}catch(n){o.Z.increment("react.error_boundary.error",1,{name:this.props.name})}this.setState({error:e,info:t})}render(){const{renderErrorState:e}=this.props,{error:t,info:i}=this.state;return t&&i?e?e({error:t,info:i,resetError:this.resetError}):null:this.props.children}}},319915:(e,t,i)=>{i.d(t,{Z:()=>n});const n=i(375571).Z},124237:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(607187),o=i.n(n);const a={};a._showErrorCallback=a._showErrorCallback||null,a.setShowHtmlErrorCallback=function(e){a._showErrorCallback=e},a.showError=function(e,t,i){const n=o()(e);return a.showHtmlError(n,t,i)},a.showHtmlError=function(e,t,i){"function"==typeof a._showErrorCallback&&a._showErrorCallback(e,t,i)};const r=a},121093:(e,t,i)=>{i.d(t,{Z:()=>c});var n=i(667294),o=i(702664),a=i(332611),r=i(242923);function s(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class l extends n.Component{constructor(...e){super(...e),s(this,"state",{hasCompleted:[],hasDismissed:[]}),s(this,"view",(()=>{const{experience:e,isBackendExperience:t,targeting:i,viewExperience:n,viewExperienceObject:o}=this.props;e&&"viewed"!==e.status&&(t?(e.status="viewed",o(e)):i?n(e.placement_id,e.experience_id,i):n(e.placement_id,e.experience_id))})),s(this,"complete",(e=>{const{completeExperience:t,completeExperienceObject:i,experience:n,isBackendExperience:o,preventRemoval:a,targeting:r}=this.props,s=e||1;if(n&&!this.state.hasCompleted.includes(n.experience_id)){const{placement_id:e,experience_id:l}=n||{},c=a||2===s;(1===s||c)&&e&&l&&(o?i(n,c):r?t(e,l,c,r):t(e,l,c),this.setState((e=>({hasCompleted:[...e.hasCompleted,l]}))))}})),s(this,"dismiss",(()=>{const{dismissExperience:e,dismissExperienceObject:t,experience:i,isBackendExperience:n,preventRemoval:o,targeting:a}=this.props,{placement_id:r,experience_id:s}=i||{};i&&!this.state.hasDismissed.includes(s)&&(n?t(i):a?e(r,s,!!o,a):e(r,s,!!o),this.setState((e=>({hasDismissed:[...e.hasDismissed,s]}))))})),s(this,"shouldRenderExperience",(()=>{const{experience:e}=this.props;if(e){const{eligibleIds:t,eligibleTypes:i,predicate:n,transitionType:o}=this.props,{experience_id:a,type:r}=e;if(t&&t.includes(a))return!0;if(null==t||!t.length){if(n&&n(e))return!0;if(i&&i.includes(r))return!0;if(o&&o===r)return!0}}return!1}))}componentDidMount(){if(this.props.disableAutoView)return;const{experience:e}=this.props;e&&this.shouldRenderExperience()&&this.view()}componentDidUpdate(e){if(this.props.disableAutoView)return;const t=e.experience,i=this.props.experience;i&&this.shouldRenderExperience()&&(t&&t.experience_id===i.experience_id||this.view())}render(){const{children:e,experience:t,disableAutoView:i}=this.props;return t&&this.shouldRenderExperience()?"function"==typeof e?e({experience:t,complete:this.complete,dismiss:this.dismiss,...i?{view:this.view}:Object.freeze({})}):n.Children.only(e):null}}s(l,"defaultProps",{eligibleIds:[],eligibleTypes:[]});const c=(0,o.connect)((({experiences:e},t)=>({experience:t.experience||(t.placementId?e[t.placementId]:void 0)})),(e=>({completeExperience:(t,i,n,o)=>e((0,a.CK)(t,i,n,!1,{},o)),completeExperienceObject:(t,i)=>e((0,r.Tl)(t,i)),dismissExperience:(t,i,n,o)=>e((0,a.Qu)(t,i,n,void 0,o)),dismissExperienceObject:t=>e((0,r.CF)(t)),viewExperience:(t,i,n)=>e((0,a.UT)(t,i,!1,!1,void 0,n)),viewExperienceObject:t=>e((0,r.dy)(t))})))(l)},701500:(e,t,i)=>{i.d(t,{Z:()=>p});var n=i(667294),o=i(249647),a=i(570470),r=i(883119),s=i(785893);class l extends n.Component{renderPulsar(){const{anchor:e,handleComplete:t,handlePulsarCompleteOnHover:i,zIndex:n}=this.props;return(0,s.jsx)(a.Z,{anchor:e,onTouch:t,onMouseEnter:i,zIndex:n})}renderFlyout(){const{anchor:e,tooltip:t,handleDismiss:i,handleComplete:n}=this.props;if(!t)return null;const{cancelButtonText:o,confirmButtonText:a,mainText:l,idealDirection:c="down"}=t,d=o&&i&&a&&n;return(0,s.jsx)(r.J2,{anchor:e,color:"blue",idealDirection:c,onDismiss:i,shouldFocus:!1,showCaret:!0,size:"flexible",children:(0,s.jsxs)(r.xu,{maxWidth:284,padding:3,width:"max-content",children:[(0,s.jsx)(r.xv,{color:"inverse",overflow:"breakWord",weight:"bold",children:l}),d?(0,s.jsxs)(r.xu,{marginTop:2,display:"flex",alignItems:"center",children:[(0,s.jsx)(r.xu,{column:6,marginEnd:1,children:(0,s.jsx)(r.zx,{fullWidth:!0,color:"transparentWhiteText",onClick:e=>i(e),size:"md",text:String(o)})}),(0,s.jsx)(r.xu,{column:6,children:(0,s.jsx)(r.zx,{fullWidth:!0,color:"white",size:"md",text:String(a),onClick:n})})]}):null]})})}render(){const{anchor:e,pulserOnly:t}=this.props;return e?t?this.renderPulsar():this.renderFlyout():null}}var c=i(70061),d=i(764990),u=i(123159);function p({anchor:e,anchorElementRef:t,children:i,containerBoxConfig:a,experience:p,isHidden:h,onCompleteClick:_,zIndex:m}){var g;const{completeExperience:x,dismissExperience:f,experiences:y,viewExperience:v}=(0,u.M)(),b=(({anchor:e,anchorExperiences:t,passedExperience:i})=>i||(t?t[e]:null))({anchor:e,anchorExperiences:Object.values(y).reduce(((e,t)=>(8===t.type&&(e[(0,d.A0)(t)]=t),e)),{}),passedExperience:p}),P=(null==b||null===(g=b.display_data)||void 0===g?void 0:g.delay)||0,[w,S]=(0,n.useState)(!!P);if((0,n.useEffect)((()=>{if(P>0&&w){const e=setTimeout((()=>{S(!1)}));return()=>clearTimeout(e)}return()=>{}}),[P,w]),(0,n.useEffect)((()=>{!w&&b&&v(b.placement_id,b.experience_id)}),[w,b]),!b||w||h)return n.Children.only(i);const A=(e=>{const{display_data:t}=e;return t.tooltip&&(t.tooltip={...t.tooltip.options,...t.tooltip},delete t.tooltip.options),(0,o.Z)(c.Z,!0)(t)})(b),k=()=>{var e;null!==(e=b.display_data)&&void 0!==e&&e.complete_on_hover&&x(b.placement_id,b.experience_id)};return(0,s.jsxs)(r.xu,{position:"relative",height:null==a?void 0:a.height,display:null==a?void 0:a.display,children:[(0,s.jsx)(r.iP,{onMouseEnter:k,onTap:()=>{_&&_(),A.skipComplete||x(b.placement_id,b.experience_id)},children:n.Children.only(i)}),(0,s.jsx)(l,{anchor:t||null,handlePulsarCompleteOnHover:k,handleComplete:()=>{t instanceof HTMLElement&&t.click()},handleDismiss:e=>{null!=e&&e.event&&e.event.stopPropagation(),f(b.placement_id,b.experience_id)},pulserOnly:!!A.pulserOnly,tooltip:A.tooltip,zIndex:m})]})}},673270:(e,t,i)=>{i.d(t,{Z:()=>l});var n=i(249647),o=i(121093),a=i(911687),r=i(70061),s=i(785893);const l=({placementId:e})=>(0,s.jsx)(o.Z,{placementId:e,predicate:e=>{var t;return 1===(null===(t=e.display_data)||void 0===t?void 0:t.component_type)},children:({complete:e,dismiss:t,experience:{display_data:i}})=>{const o=(0,n.Z)(r.Z)(i);return(0,s.jsx)(a.Z,{displayData:o,onComplete:()=>e(),onDismiss:t})}})},147128:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(121093),o=i(785893);const a=({placementId:e})=>(0,o.jsx)(n.Z,{placementId:e,eligibleIds:[502312,502320],preventRemoval:!0,children:({complete:e})=>(e(),null)})},123159:(e,t,i)=>{i.d(t,{F:()=>p,M:()=>u});var n=i(667294),o=i(702664),a=i(14890),r=i(957191),s=i(425288),l=i(332611),c=i(785893);const{Provider:d,useHook:u}=(0,s.Z)("ExperienceContext");function p({children:e}){const[t,i]=(0,n.useReducer)(((e,t)=>{if("MOUNT_PLACEMENT"===t.type)return{...e,[t.payload]:!0};if("UNMOUNT_PLACEMENT"===t.type){const i={...e};return delete i[t.payload],i}return e}),{}),s=(0,o.useDispatch)(),u=(0,o.useSelector)((e=>e.experiences)),p=(0,n.useMemo)((()=>{const e=(0,a.bindActionCreators)({completeExperience:l.CK,dismissExperience:l.Qu,fetchAllExperiences:l.fO,fetchAllExperiencesMulti:r.NW,fetchExperienceForPlacements:l.pz,mountPlacement:l.N,triggerExperimentsForPlacement:l.kd,viewExperience:l.UT},s);return{...e,mountPlacement:(t,...n)=>{e.mountPlacement(t,...n),i({type:"MOUNT_PLACEMENT",payload:t})},unmountPlacement:e=>{i({type:"UNMOUNT_PLACEMENT",payload:e})}}}),[s,i]),h=(0,n.useMemo)((()=>({experiences:u,mountedPlacements:t,...p})),[u,t,p]);return(0,c.jsx)(d,{value:h,children:e})}},502517:(e,t,i)=>{i.r(t),i.d(t,{default:()=>b});var n=i(667294),o=i(773285),a=i(898781),r=i(276775),s=i(883119),l=i(785893);function c(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const d=5e3;class u extends n.Component{constructor(...e){super(...e),c(this,"isOnClose",this.props.onCloseEnabled&&2===this.props.actionTrigger),c(this,"state",{surveyAccepted:!1,surveyLoaded:!1,surveyLoadFailed:!1,showSurveyOnClose:this.isOnClose}),c(this,"loadSurvey",((e=!0)=>{const{onView:t}=this.props;e&&t(),this.setState({surveyLoaded:!0})})),c(this,"processIFrameMessage",(e=>{const{presentationDelay:t=d,onComplete:i,surveyLink:n,onCloseEnabled:o}=this.props,a=e.origin||e.originalEvent.origin;n.startsWith(a)&&("surveyFinished"===e.data?i():"surveyLoaded"===e.data&&(window.clearTimeout(this.loadSurveyFailureTimeout),this.isOnClose&&this.showSurveyOnLeavingPage(),o?this.actionTriggerHandler():this.loadSurveyTimeout=window.setTimeout(this.loadSurvey,t)))})),c(this,"handleShowSurvey",(()=>{this.setState({surveyAccepted:!0})}))}componentDidMount(){window.addEventListener("message",this.processIFrameMessage),this.loadSurveyFailureTimeout=window.setTimeout((()=>{this.state.surveyLoaded||(window.clearTimeout(this.loadSurveyTimeout),this.setState({surveyLoadFailed:!0}))}),15e3)}componentWillUnmount(){window.removeEventListener("message",this.processIFrameMessage),window.clearTimeout(this.loadSurveyTimeout),window.clearTimeout(this.loadSurveyFailureTimeout),this.isOnClose&&this.props.unblock()}actionTriggerHandler(){const{actionTrigger:e,presentationDelay:t=d}=this.props;switch(e){case 1:this.loadSurvey();break;case 2:this.loadSurvey(!1);break;default:this.loadSurveyTimeout=window.setTimeout(this.loadSurvey,t)}}showSurveyOnLeavingPage(){const{onView:e,block:t}=this.props;t((()=>{e(),this.setState({showSurveyOnClose:!1})}))}render(){const{surveyAccepted:e,surveyLoadFailed:t,surveyLoaded:i,showSurveyOnClose:n}=this.state;if(t)return null;const{acceptButtonText:o,bodyText:a,declineButtonText:r,onDismiss:c,subtitleText:d,surveyLink:u,titleText:p}=this.props,h=(0,l.jsx)("iframe",{style:e?{border:0,minHeight:810,paddingBottom:4,width:"100%"}:{display:"none"},src:u,title:this.props.i18n._('Pinterest Survey', 'Accessible label for survey frame', 'Accessible label for survey frame'),"data-test-id":"anket-iframe"});return i&&!n?(0,l.jsx)(s.xu,{position:"absolute",zIndex:new s.Ry(1e3),children:(0,l.jsxs)(s.u_,{accessibilityModalLabel:this.props.i18n._('Have a few minutes to take a survey?', 'User evaluation survey', 'User evaluation survey'),footer:!e&&(0,l.jsxs)(s.xu,{display:"flex",justifyContent:"end",paddingX:1,children:[(0,l.jsx)(s.xu,{dangerouslySetInlineStyle:{__style:{padding:"6px 8px"}},children:(0,l.jsx)(s.zx,{fullWidth:!0,text:r,onClick:()=>{this.setState({surveyAccepted:!1}),c()}})}),(0,l.jsx)(s.xu,{dangerouslySetInlineStyle:{__style:{padding:"6px 8px"}},children:(0,l.jsx)(s.zx,{fullWidth:!0,color:"red",text:o,onClick:this.handleShowSurvey})})]}),heading:e?"":p,onDismiss:c,role:"alertdialog",size:e?"lg":"md",padding:"none",children:[(0,l.jsx)(s.xu,{children:h}),!e&&(0,l.jsxs)(s.xu,{padding:3,children:[(0,l.jsx)(s.xv,{children:d}),(0,l.jsx)(s.xv,{children:a})]})]})}):h}}const p=function(e){const t=(0,a.ZP)(),{checkExperiment:i}=(0,o.F)(),s=(0,r.useHistory)(),[c,d]=(0,n.useState)(null),p=(0,n.useRef)(null);return(0,l.jsx)(u,{...e,i18n:t,history:(0,r.useHistory)(),onCloseEnabled:i("discovery_measurements_on_close_survey").anyEnabled,unblock:()=>{var e;p&&(null===(e=p.current)||void 0===e||e.call(p));if(c){const{location:e,action:t}=c;"PUSH"===t?s.push(`${e.pathname}${e.search}`):"POP"===t&&s.goBack()}},block:e=>{p.current=s.block(((t,i)=>(d({location:t,action:i}),e(),!1)))}})};var h=i(121093),_=i(149230),m=i(121151);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}class x extends n.Component{constructor(...e){super(...e),g(this,"state",{surveyLoaded:!1}),g(this,"loadSurvey",(()=>{var e,t;this.setState({surveyLoaded:!0}),null===(e=(t=this.props).view)||void 0===e||e.call(t)})),g(this,"handleDismiss",(()=>{this.props.dismiss(),this.setState({surveyLoaded:!1})})),g(this,"handleComplete",(()=>{this.props.complete(),this.setState({surveyLoaded:!1})}))}componentDidMount(){const{displayData:{delay:e}}=this.props;this.surveyTimer=window.setTimeout(this.loadSurvey,e)}componentWillUnmount(){clearTimeout(this.surveyTimer)}render(){if(!this.state.surveyLoaded)return null;const{displayData:{buttons:e,detailed_text:t,title_text:i}}=this.props;return(0,l.jsx)(m.ZP,{heading:i,accessibilityModalLabel:this.props.i18n._('Would you mind taking a survey?', 'User eval survey', 'User eval survey'),onDismiss:this.handleDismiss,size:"sm",footer:(0,l.jsx)(s.kC,{alignItems:"stretch",justifyContent:"end",children:e.map((e=>{if(e.uri){const t=e.uri,i=(0,_.Z)({url:t})?"nofollow":"none";return(0,l.jsx)(s.xu,{marginStart:1,children:(0,l.jsx)(s.zx,{role:"link",href:t,target:"blank",rel:i,fullWidth:!0,color:"red",text:e.text,onClick:this.handleComplete})},e.text)}return(0,l.jsx)(s.xu,{marginStart:1,children:(0,l.jsx)(s.zx,{fullWidth:!0,text:e.text,onClick:this.handleDismiss})},e.text)}))}),children:(0,l.jsx)(s.xu,{padding:3,children:(0,l.jsx)(s.xv,{children:t})})})}}function f(e){const t=(0,a.ZP)();return(0,l.jsx)(x,{...e,i18n:t})}const y=e=>{const{complete:t,dismiss:i,view:n,displayData:o}=e,{anket:a,buttons:r,delay:s,detailed_text:c,subtitle_text:d,title_text:u,action_trigger:h=3}=o,[_,m]=r;return a?(0,l.jsx)(p,{acceptButtonText:m.text,bodyText:c,declineButtonText:_.text,onComplete:t,onDismiss:i,onView:n,presentationDelay:s,subtitleText:d,surveyLink:m.uri,titleText:u,actionTrigger:h}):(0,l.jsx)(f,{complete:t,dismiss:i,displayData:o,view:n})},v=e=>{const{experienceId:t,displayData:i}=e,{delay:o=0}=i,a={...i,delay:0},r={...e,displayData:{...a}},s=(0,n.useRef)(),[c,d]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{const e=["/pin-builder","/idea-pin-builder"],t=e=>window.location.pathname.includes(e),i=()=>{e.some(t)?s.current=setTimeout((()=>i()),3e3):d(!0)};return s.current=setTimeout((()=>i()),o),()=>{clearTimeout(s.current)}}),[t,o]),c?(0,l.jsx)(y,{...r}):null};function b(e){const{placementId:t,targeting:i,eligibleIds:n}=e;return(0,l.jsx)(h.Z,{placementId:t,eligibleTypes:[5],disableAutoView:!0,targeting:i,eligibleIds:n||[],children:({complete:e,dismiss:i,view:n,experience:o})=>{const a=o.display_data,r=o.experience_id;return 1000421===t?(0,l.jsx)(v,{experienceId:r,complete:e,dismiss:i,view:n,displayData:a}):(0,l.jsx)(y,{complete:e,dismiss:i,view:n,displayData:a})}})}},333312:(e,t,i)=>{i.r(t),i.d(t,{default:()=>u});var n=i(667294),o=i(121093),a=i(570470),r=i(883119),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 c extends n.PureComponent{constructor(...e){super(...e),l(this,"onScroll",(()=>{const{dismiss:e}=this.props;this.dismissed||this.timer||(this.timer=setTimeout((()=>{e(),this.dismissed=!0,this.timer=void 0}),3e3))})),l(this,"dismissed",!1)}componentDidMount(){window.addEventListener("scroll",this.onScroll)}componentWillUnmount(){this.timer&&clearTimeout(this.timer)}render(){const{anchor:e,text:t,thumbnails:i,idealDirection:n}=this.props,o=i.slice(-3);return(0,s.jsx)(r.J2,{anchor:e,color:"white",idealDirection:n,onDismiss:this.onScroll,shouldFocus:!1,size:"md",children:(0,s.jsxs)(r.xu,{display:"flex",alignContent:"center",justifyContent:"between",padding:3,width:"100%",children:[(0,s.jsx)(r.xu,{alignItems:"center",display:"flex",flex:"grow",justifyContent:"center",marginStart:-3,paddingX:3,children:(0,s.jsx)(r.xv,{color:"default",weight:"bold",children:t})}),(0,s.jsx)(r.xu,{display:"flex",marginEnd:-2,paddingX:2,children:o.map((e=>(0,s.jsx)(r.xu,{height:60,width:50,paddingX:1,children:(0,s.jsx)(r.zd,{rounding:2,height:60,children:(0,s.jsx)(r.Ee,{alt:"More Ideas Thumbnail",color:"rgb(86, 152, 239)",fit:"cover",naturalHeight:60,naturalWidth:60,src:e})})},e)))})]})})}}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}class u extends n.Component{constructor(...e){super(...e),d(this,"dismissRef",(0,n.createRef)()),d(this,"state",{paused:!1}),d(this,"dismissCb",(()=>{var e,t;null===(e=(t=this.dismissRef).current)||void 0===e||e.call(t)})),d(this,"handlePulsarClick",((e,t)=>{e?this.setState({paused:!0}):t()}))}componentWillUnmount(){const{anchor:e}=this.props;clearTimeout(this.timer),null==e||e.removeEventListener("click",this.dismissCb)}setDefaultPulsarTooltip(e){const t=e=>!(null==e);e.has_pulsar=!t(e.has_pulsar)||e.has_pulsar,e.has_tooltip=!t(e.has_tooltip)||e.has_tooltip}getText(e,t,i){return t&&e.text.replace("{boardName}",t),i?i(e):e.text}render(){const{anchor:e,customWrapper:t,experienceIds:i,boardTextOverride:l,flyoutSize:d,fontSize:u,hasFullWidthButton:p=!0,idealDirection:h,useMasonryFlyout:_,noClickToDismiss:m,onClickComplete:g,onClickDismiss:x,placementId:f,positionRelativeToAnchor:y,shouldTimeoutDismiss:v,showCaret:b,textAlign:P,textOverflow:w,textOverrideFn:S,textWeight:A,customizedComplete:k,pulsarZIndex:E,advertiserId:T}=this.props,C=t||(({children:e})=>_?(0,s.jsx)(r.mh,{children:e}):e),I="blue";return(0,s.jsx)(o.Z,{eligibleIds:i,placementId:f,eligibleTypes:[8],targeting:T?{advertiserId:parseInt(T,10)}:null,children:({complete:t,dismiss:i,experience:o})=>{const{display_data:{scroll_to_dismiss:f,scroll_to_dismiss_delay_in_seconds:T=0,...j}}=o,R=f&&e,D=()=>{z(),setTimeout(i,1e3*T)},z=()=>{R&&(window.removeEventListener("scroll",D),window.removeEventListener("touchmove",D))},O=()=>{z(),t()};if(R&&(window.addEventListener("scroll",D),window.addEventListener("touchmove",D)),this.setDefaultPulsarTooltip(j),!j.has_pulsar&&!j.has_tooltip)return O(),null;v&&j.disappearTime&&j.disappearTime>0&&(this.timer=setTimeout((()=>(D(),null)),j.disappearTime));const L=501041===o.experience_id||505086===o.experience_id;return j.has_tooltip&&!j.has_pulsar&&(this.dismissRef.current=D,null==e||e.addEventListener("click",this.dismissCb)),(0,s.jsxs)(n.Fragment,{children:[j.has_pulsar&&(0,s.jsx)(a.Z,{anchor:e,leftOverride:L?342:void 0,onTouch:()=>this.handlePulsarClick(j.has_tooltip,O),paused:this.state.paused,topOverride:L?-5:void 0,zIndex:E&&E.index()}),j.has_tooltip&&(!j.has_pulsar||this.state.paused)&&(j.thumbnail_urls?(0,s.jsx)(c,{anchor:e,dismiss:D,idealDirection:h||"down",text:j.text,thumbnails:j.thumbnail_urls}):(0,s.jsx)(C,{children:(0,s.jsx)(r.J2,{anchor:e,color:I,idealDirection:h||"down",onDismiss:m?()=>{}:D,positionRelativeToAnchor:!_&&y,shouldFocus:!1,showCaret:b,size:d,children:(0,s.jsxs)(r.xu,{column:12,padding:3,children:[(0,s.jsxs)(r.xv,{align:"right"===P?"end":P,color:"inverse",overflow:w,size:u,weight:A||"bold",children:[this.getText(j,l,S),j.secondary_cta_link&&(0,s.jsx)(r.xu,{display:"inlineBlock",marginStart:1,children:(0,s.jsx)(r.xv,{size:u,weight:"bold",color:"inverse",children:(0,s.jsx)(r.rU,{display:"inlineBlock",target:"blank",href:j.secondary_cta_link.url,underline:"hover",children:j.secondary_cta_link.text})})})]}),j.sub_text&&(0,s.jsx)(r.xu,{paddingY:2,children:(0,s.jsx)(r.xv,{color:"inverse",size:u,children:j.sub_text})}),(j.dismiss_button_text||j.complete_button_text)&&(0,s.jsxs)(r.xu,{display:"flex",alignItems:"center",marginTop:2,children:[j.dismiss_button_text&&(0,s.jsx)(r.xu,{marginEnd:1,column:6,children:(0,s.jsx)(r.zx,{fullWidth:p,color:I,onClick:()=>{x&&x(),D()},size:"md",text:j.dismiss_button_text})}),j.complete_button_text&&(0,s.jsx)(r.xu,{column:j.dismiss_button_text?6:12,children:k?(0,s.jsx)(r.iP,{fullHeight:!0,onTap:()=>{O(),g&&g()},rounding:2,children:(0,s.jsx)(r.xu,{display:"flex",color:"default",padding:2,rounding:2,justifyContent:"center",dangerouslySetInlineStyle:{__style:{padding:"10px"}},children:(0,s.jsx)(r.xv,{color:"shopping",weight:"bold",children:j.complete_button_text})})}):(0,s.jsx)(r.kC,{justifyContent:"center",children:(0,s.jsx)(r.zx,{fullWidth:p,color:"white",href:j.complete_button_cta_url,role:j.complete_button_cta_url?"link":"button",size:"md",target:j.complete_button_cta_url?"blank":null,text:j.complete_button_text,onClick:({event:e})=>{e.preventDefault(),e.stopPropagation(),O(),g&&g()}})})})]})]})})}))]})}})}}d(u,"defaultProps",{fontSize:"300",positionRelativeToAnchor:!0})},756306:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),o=i(121093),a=i(883119),r=i(785893);class s extends n.Component{constructor(...e){var t,i,n;super(...e),n={paused:!1,showPulsar:!1},(i="state")in(t=this)?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n}componentDidMount(){this.mountPulsar(),this.props.onExperienceMount&&this.experience&&this.props.onExperienceMount(this.experience)}componentWillUnmount(){clearTimeout(this.timer)}mountPulsar(){if(!this.experience)return;const{display_data:e}=this.experience;e.has_pulsar&&this.setState({showPulsar:!0})}renderPulsar(){const{anchor:e}=this.props,{paused:t}=this.state;if(!e)return null;const i=e.getBoundingClientRect(),{height:n,width:o}=i,s=-(68+n/2),l=-(68-o/2);return(0,r.jsx)(a.xu,{position:"absolute",zIndex:new a.Ry(1),dangerouslySetInlineStyle:{__style:{marginTop:s,marginLeft:l,cursor:"pointer",pointerEvents:"none"}},children:(0,r.jsx)(a.o3,{paused:t})})}renderFlyout(e){const{anchor:t,flyoutSize:i,idealDirection:n,textOverflow:o}=this.props;return(0,r.jsx)(a.J2,{anchor:t,color:"blue",idealDirection:n||"down",onDismiss:()=>{},shouldFocus:!1,showCaret:!0,size:i,children:(0,r.jsx)(a.xu,{column:12,padding:3,children:(0,r.jsx)(a.xv,{color:"inverse",overflow:o,weight:"bold",children:e})})})}render(){const{experienceIds:e,placementId:t,shouldTimeoutDismiss:i}=this.props,{showPulsar:n}=this.state;return(0,r.jsx)(o.Z,{eligibleIds:e,placementId:t,eligibleTypes:[8],children:({complete:e,dismiss:t,experience:o})=>{this.experience=o;const{display_data:s}=o;return s.has_pulsar||s.has_tooltip?(i&&s.disappearTime&&s.disappearTime>0&&(this.timer=setTimeout((()=>(t(),null)),s.disappearTime)),(0,r.jsxs)(a.xu,{zIndex:new a.Ry(10),children:[n&&this.renderPulsar(),s.has_tooltip&&(!s.has_pulsar||this.state.paused)&&this.renderFlyout(s.text)]})):(e(),null)}})}}},911687:(e,t,i)=>{i.d(t,{Z:()=>p});var n=i(164985),o=i(391254),a=i(149230),r=i(898781),s=i(444445),l=i(883119),c=i(785893);const d=(s.yF+s.lX)*s.yc-s.lX,u=Array.from(Array(s.g5-s.yc).keys()).reduce(((e,t)=>{const i=t+s.yc,n=(s.yF+s.lX)*i-s.lX;return e+(0,s.KN)(s.yF,i,i,`.banner-content {\n width: ${n}px;\n min-width: ${n}px;\n }`,s.lX)}),`.banner-content {\n width: ${d}px;\n min-width: ${d}px;\n }`);function p(e){const t=(0,r.ZP)(),{displayData:{backgroundColorNarrow:i,backgroundColorWide:s,backgroundImageNarrow:d,backgroundImageWide:p,canClose:h,completeButtonText:_,coverImage:m,dismissButtonText:g,iconImage:x,layoutNarrow:f,layoutWide:y,links:v=[],linkTitles:b=[],message:P,onCompleteRedirectUrl:w,onDismissRedirectUrl:S,textColorNarrow:A,textColorWide:k,titleText:E,external:T},onComplete:C,onDismiss:I}=e,{windowWidth:j}=(0,n.Z)(),R=j<=480,D=R?f:y,z=!R&&3!==D,O=R?i:s,L=R?A:k,{altText:N,uri:B}=(R?d:p)||{},{altText:M,uri:Z}=m||{},{altText:F,uri:U}=x||{},V=R&&2===D||!R&&2===D,G=R?"96px":"48px",H=R&&3===D,W=({event:e})=>{C&&C(e)},$=({event:e})=>{I&&I(e)},K=_&&!w&&(0,c.jsx)(l.zx,{text:_,onClick:W,color:"white"}),q=(0,a.Z)({url:w})?"nofollow":"none",Y=_&&w&&(0,c.jsx)(l.zx,{text:_,onClick:W,href:w,role:"link",rel:q,target:T?"blank":void 0,color:"white",size:"lg"},"naglink"),X=(0,a.Z)({url:S})?"nofollow":"none",J=g&&S&&(0,c.jsx)(l.zx,{text:g,onClick:$,href:S,role:"link",rel:X,target:T?"blank":void 0,color:"white",size:"lg"},"naglink"),Q=g&&!S&&(0,c.jsx)(l.zx,{text:g,onClick:$,color:"white",size:"lg"}),ee=h&&(0,c.jsx)(l.hU,{accessibilityLabel:t._('Close', 'accessibility close label', 'accessibility close label'),bgColor:"lightGray",onClick:$,icon:"cancel",iconColor:"gray",size:"md"}),te=v.reduce(((e,t,i)=>{const n=t.startsWith("https://")||t.startsWith("http://")?'rel="noreferrer noopener" target="_blank"':"",o=`${b[i]}`;return e.replace(`{${i}}`,o)}),P),ie={backgroundColor:O,backgroundImage:!B||V||H?void 0:`url(${B})`,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"};return(0,c.jsxs)(l.xu,{direction:z?"row":"column",display:"flex",marginBottom:5,marginEnd:2,marginStart:2,marginTop:2,children:[(0,c.jsx)(o.Z,{unsafeCSS:u}),(0,c.jsx)("div",{className:"banner-content",style:{borderRadius:"16px",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)",margin:"0 auto"},children:(0,c.jsxs)(l.zd,{rounding:4,width:"100%",children:[H&&Z&&(0,c.jsx)(l.kC,{alignItems:"start",height:128,justifyContent:"center",width:"100%",children:(0,c.jsx)(l.Ee,{alt:M||"cover image",fit:"cover",naturalHeight:1,naturalWidth:3,src:Z})}),(0,c.jsxs)(l.xu,{"aria-label":N,alignItems:"center",dangerouslySetInlineStyle:{__style:ie},direction:z?"row":"column",display:"flex",justifyContent:"between",marginTop:H?-2:0,padding:6,children:[(0,c.jsxs)(l.kC,{alignItems:"center",direction:z?"row":"column",justifyContent:"between",maxWidth:z?void 0:"560px",children:[V&&U&&(0,c.jsx)(l.xu,{alignItems:"center",direction:"column",display:"flex",justifyContent:"center",marginEnd:z?4:0,marginBottom:z?0:6,children:(0,c.jsx)(l.xu,{height:G,width:G,children:(0,c.jsx)(l.zd,{rounding:z?4:6,children:(0,c.jsx)(l.Ee,{alt:F||"icon",naturalHeight:1,naturalWidth:1,src:U})})})}),!z&&E&&(0,c.jsx)(l.xv,{align:"center",weight:"bold",children:(0,c.jsx)("div",{className:"banner-title",style:{color:L,fontSize:"28px",marginBottom:"8px"},children:E})}),te&&(0,c.jsxs)(l.xv,{align:z?"start":"center",overflow:"normal",children:[(0,c.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n .banner-text a {\n color: ${L||""};\n font-weight: bold;\n }`}}),(0,c.jsx)("div",{className:"banner-text",dangerouslySetInnerHTML:{__html:te},style:{color:L}})]})]}),(0,c.jsx)(l.xu,{marginBottom:z?0:-1,marginStart:z?4:0,marginTop:z?0:4,children:(0,c.jsxs)(l.kC,{alignItems:"center",justifyContent:"center",wrap:!z,gap:{row:2,column:0},children:[Q||J,K||Y,ee]})})]})]})})]})}},332611:(e,t,i)=>{i.d(t,{CK:()=>p,N:()=>x,Qu:()=>h,UT:()=>u,YX:()=>g,d9:()=>_,fO:()=>l,kd:()=>m,pz:()=>c});var n=i(412067),o=i(764990),a=i(172071),r=i(957191);let s;const l=(e,t)=>i=>{const o=t?{extra_context:e,targeting:t}:{extra_context:e};return n.Z.create("UserExperiencePlatformResource",o).callGet().then((e=>e.resource_response?i((0,r.OD)(e.resource_response.data)):void 0))},c=(e,t,i,a)=>(l,c)=>{if(t)return Promise.resolve();if(a&&(s=a),1===e.length){const t=e[0],n=c().experiences[t],a=(null==n?void 0:n.extraContext)||null;if(JSON.stringify(a)===JSON.stringify(i)||(0,o.E3)(n)&&!(i&&Object.keys(i).length>0))return Promise.resolve()}return n.Z.create("UserExperienceResource",{placement_ids:e,extra_context:i||null,targeting:a}).callGet().then((e=>e.resource_response?l((0,r.cL)(e.resource_response.data)):void 0))},d=(e,t)=>(i,o,a,c=!1,d,u)=>(p,h)=>{const{experiences:_,experiencesMulti:m}=h();let g=null,x=!0;var f;c||(x=_[i]&&_[i].experience_id===o,g=x?_[i]:Array.isArray(m[i])&&(null===(f=m[i])||void 0===f?void 0:f.find((e=>e.experience_id===o))));if(g&&g.experience_id===o||c&&i&&o){const c=n.Z.create(e,{placed_experience_id:`${i}%3A${o}`,extra_context:null!=d?d:{},targeting:u}),h=x?r.Yb:r.xW;switch(t){case"dismissed":return c.callDelete().then((()=>{p(h(i,o,t)),p(l(void 0,s))}));case"completed":return c.callUpdate().then((()=>{a||(p(h(i,o,t)),p(l(void 0,s)))}));case"viewed":return p(h(i,o,t)),c.callUpdate().then((()=>{1000162===i&&p(l())}));case"completedWithoutHomefeed":return c.callUpdate().then((()=>{a||p(h(i,o,t))}));default:return Promise.resolve()}}return Promise.resolve()},u=d("UserExperienceViewedResource","viewed"),p=d("UserExperienceCompletedResource","completed"),h=d("UserExperienceResource","dismissed"),_=d("UserExperienceCompletedResource","completedWithoutHomefeed"),m=(e,t)=>(i,o)=>{const{experiences:r}=o(),s=r[e];s&&s.triggerable_placed_exps&&s.triggerable_placed_exps.length&&s.triggerable_placed_exps.forEach((i=>{const[,o]=i.split(":");let r=t;s.metadata&&s.metadata[o]&&(r={...t,...s.metadata[o]}),n.Z.create("UserExperienceTriggerResource",{placed_experience_id:i.replace(":","%3A"),extra_context:r}).callUpdate().then((()=>{((e,t,i={})=>{a.Z.increment(`${e}.${t}`,1,i)})("experienceservice","experimentTriggerCall.1",{placement_id:e,experience_id:o})}))}))},g=e=>(t,i)=>{t(m(e));const{experiences:n}=i();return n[e]},x=(e,t,i)=>n=>{i&&(s=i),n(m(e,t)),t&&Object.keys(t).length>0&&n(c([e],!1,t,i))}},242923:(e,t,i)=>{i.d(t,{CF:()=>s,Tl:()=>r,dy:()=>l});var n=i(412067),o=i(332611);const a=(e,t)=>(i,a)=>r=>{if(i&&i.id){const s=n.Z.create(e,{placed_experience_id:i.id,extra_context:{}});switch(t){case"dismissed":s.callDelete().then((()=>{r((0,o.fO)())}));break;case"completed":s.callUpdate().then((()=>{a||r((0,o.fO)())}));break;case"viewed":s.callUpdate()}}},r=a("UserExperienceCompletedResource","completed"),s=a("UserExperienceResource","dismissed"),l=a("UserExperienceViewedResource","viewed")},764990:(e,t,i)=>{function n(e){return!!e&&0!==e.type}i.d(t,{A0:()=>a,E3:()=>n,MQ:()=>o});const o=(e,t,i)=>{const o=e[i];return t[i]&&n(o)?o:null};function a(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$:()=>o,_4:()=>r,iY:()=>s,mR:()=>a});const n="REFRESH_ALL_EXPERIENCES_MULTI",o="UPDATE_EXPERIENCE_MULTI",a="FETCH_EXPERIENCES",r="REFRESH_ALL_EXPERIENCES",s="UPDATE_EXPERIENCE"},957191:(e,t,i)=>{i.d(t,{NW:()=>r,OD:()=>l,Yb:()=>s,cL:()=>c,xW:()=>a});var n=i(412067),o=i(207737);const a=(e,t,i)=>({type:o.V$,payload:{placementId:e,experienceId:t,status:i}}),r=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:o.$S,payload:{experiencesMulti:i}})):void 0;var i})),s=(e,t,i)=>({type:o.iY,payload:{placementId:e,experienceId:t,status:i}}),l=e=>({type:o._4,payload:{experiences:e}}),c=e=>({type:o.mR,payload:{experiences:e}})},570470:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),o=i(883119),a=i(785893);function r({anchor:e,children:t,zIndex:i,leftOverride:r,topOverride:s}){const l=(0,n.useRef)(null),[c,d]=(0,n.useState)(0),[u,p]=(0,n.useState)(0),{height:h,width:_}=e.getBoundingClientRect();(0,n.useEffect)((()=>{const{current:t}=l;if(e&&t){const{height:e,width:i}=t.getBoundingClientRect(),{horizontalOffset:n,verticalOffset:o}=((e,t,i,n)=>({horizontalOffset:-(n/2-t/2),verticalOffset:-(i/2-e/2)}))(h,_,e,i);d(n),p(o)}}));const m=r||c,g=s||u;return(0,a.jsx)(o.xu,{position:"absolute",zIndex:i?new o.Ry(i):void 0,dangerouslySetInlineStyle:{__style:{left:m,top:g}},ref:l,children:t})}const s=function(e){const{anchor:t,leftOverride:i,onTouch:n,onMouseEnter:s,paused:l,size:c,topOverride:d,zIndex:u}=e;return t?(0,a.jsx)(r,{anchor:t,leftOverride:i,topOverride:d,zIndex:u,children:(0,a.jsx)(o.iP,{fullWidth:!1,onTap:({event:e})=>n(e),onMouseEnter:s,rounding:"circle",children:(0,a.jsx)(o.o3,{paused:l,size:c})})}):null}},378518:(e,t,i)=>{i.d(t,{_:()=>c,a:()=>d});var n=i(667294),o=i(702664),a=i(618446),r=i.n(a),s=i(780280),l=i(332611);const c=({extraContext:e,id:t,shouldUsePlacedExperience:i=!0})=>{const a=(0,n.useRef)(),c=(0,o.useDispatch)(),{isBot:d}=(0,s.B)(),u=(0,o.useSelector)((e=>e.experiences[t]));return(0,n.useEffect)((()=>{c((0,l.kd)(t))}),[c,u,t]),(0,n.useEffect)((()=>{i||r()(a.current,e)||(c((0,l.pz)([t],d,e)),a.current=e)}),[c,e,d,t,i]),u},d=e=>(c(e),(0,o.useSelector)((t=>t.experiencesMulti[e.id])))},497529:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(667294),o=(i(957191),i(764990)),a=i(123159);i(332611);function r(e){const{mountedPlacements:t,completeExperience:i,dismissExperience:r,experiences:s,fetchAllExperiences:l,fetchAllExperiencesMulti:c,fetchExperienceForPlacements:d,triggerExperimentsForPlacement:u,viewExperience:p}=(0,a.M)(),h=e?(0,o.MQ)(s,t,e):null;return(0,n.useMemo)((()=>({completeExperience:i,dismissExperience:r,experienceForPlacement:h,fetchAllExperiences:l,fetchAllExperiencesMulti:c,fetchExperienceForPlacements:d,triggerExperimentsForPlacement:u,viewExperience:p})),[i,r,h,l,c,d,u,p])}},869636:(e,t,i)=>{i.d(t,{Z:()=>u});var n=i(667294),o=i(702664),a=i(442279),r=i(123159),s=i(780280),l=i(172071);const c=(0,a.P1)((e=>e.experiences),((e,t)=>t),((e,t)=>e[t])),d=(e,t)=>"function"==typeof t?t(e):t,u=(e,t={},i=!1)=>{const[a,u]=(0,n.useReducer)(d,t),{isBot:p}=(0,s.B)(),{fetchExperienceForPlacements:h,mountPlacement:_,triggerExperimentsForPlacement:m,unmountPlacement:g}=(0,r.M)();(0,n.useDebugValue)(`Placement Hook ID - ${e}`),(0,n.useEffect)((()=>{const t={...a},n=i&&null!=t&&t.advertiser_id?{advertiserId:t.advertiser_id}:void 0;return _(e,t,n),()=>{g(e)}}),[]),(0,n.useEffect)((()=>{Object.keys(a).length>0&&h([e],p,a)}),[a]);const x=(0,o.useSelector)((t=>c(t,e))),f=(0,o.useSelector)((t=>t.experiencesMulti[e])),y=x?x.triggerable_placed_exps:[];(0,n.useEffect)((()=>{((e,t,i={})=>{l.Z.increment(`${e}.${t}`,1,i)})("experienceservice","placementHookExperimentTrigger.1",{platform:"web",placement_id:e,...y}),m(e,a)}),[JSON.stringify(y)]);return{experience:x,experiencesMulti:f,setExtraContext:u}}},784450:(e,t,i)=>{i.d(t,{ZP:()=>_});var n=i(667294),o=i(702664),a=i(618446),r=i.n(a),s=i(764990),l=i(123159),c=i(332611),d=i(780280),u=i(785893);function p(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const h={shouldUsePlacedExperience:!0,dispatchMountActionDuringSSR:!1,isAdvertiserPlacement:!1},_=(e,t={},i)=>a=>{const _=function(e){return t=>({experience:t.experiences[e],experiencesMulti:t.experiencesMulti?t.experiencesMulti[e]:void 0})}(e);i={...h,...i};const m=function(e,t,i=!0,a=!0,h=!1,_){class m extends n.Component{constructor(e){super(e),p(this,"state",{extraContext:void 0}),p(this,"setExtraContextState",(e=>{r()(this.state.extraContext,e)||this.setState({extraContext:e})}))}componentDidMount(){this.dispatchPlacementMount()}componentDidUpdate(i,n){const{dispatch:o,experience:a,requestContext:s}=this.props;let l=n.extraContext,d=this.state.extraContext||t||{};"function"==typeof t&&(l=t(i,n.extraContext||{}),d=t(this.props,this.state.extraContext||{})),d&&Object.keys(d).length>0&&!r()(l,d)&&o((0,c.pz)([e],s.isBot,d)),!a||i.experience&&a.id===i.experience.id||o((0,c.kd)(e,d))}componentWillUnmount(){this.props.unmountPlacement(e)}dispatchPlacementMount(){const i="function"==typeof t?t(this.props,this.state.extraContext||{}):{...t},n=h&&null!=i&&i.advertiser_id?{advertiserId:i.advertiser_id}:void 0;this.props.mountPlacement(e,i,n)}render(){const{experience:e,experiencesMulti:t}=this.props,i={[h?"advertiserExperience":"experience"]:(0,s.E3)(e)?e:null};return(0,u.jsx)(_,{...this.props,setPlacementExtraContext:this.setExtraContextState,...i,experiencesMulti:t})}}function g(e){const t=(0,d.B)(),i=(0,o.useDispatch)(),{mountPlacement:n,unmountPlacement:a}=(0,l.M)();return(0,u.jsx)(m,{...e,dispatch:i,mountPlacement:n,requestContext:t,unmountPlacement:a})}return g.displayName=`withPlacement(${_.displayName||_.name||"Component"})`,g}(e,t,i.shouldUsePlacedExperience,i.dispatchMountActionDuringSSR,i.isAdvertiserPlacement,a);return(0,o.connect)(_)(m)}},402201:(e,t,i)=>{i.d(t,{Z:()=>n});const n=e=>{const[t,i]=[(null==e?void 0:e.width)||580,(null==e?void 0:e.height)||400],[n,o]=[window.screen.width,window.screen.height];return["scrollbars=yes","resizable=yes","toolbar=no","location=yes",`width=${t}`,`height=${i}`,`left=${Math.round((n-t)/2)}`,`top=${o>i?Math.round((o-i)/2):0}`].join(",")}},441253:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(537347),o=i.n(n),a=i(172071);function r(e){if("undefined"==typeof window||!document.head)return a.Z.increment("load_fonts.failure",1,{failure_reason:"window undefined"}),Promise.reject(new Error("Window is undefined or no head on the document. Unable to load fonts"));const t=document.head,i=[];return e.forEach((e=>{e.styles.forEach((n=>{var a;let r=document.querySelector(`#${null!==(a=e.fontFamily)&&void 0!==a?a:""}-${n.name}`);if(!r){var s;if(r=document.createElement("style"),r.setAttribute("id",`${null!==(s=e.fontFamily)&&void 0!==s?s:""}-${n.name}`),t.appendChild(r),e.format&&n.fontUrl&&r&&r.sheet){var l;r.sheet.insertRule(`\n @font-face {\n font-family: "${null!==(l=e.fontFamily)&&void 0!==l?l:""}";\n font-style: "${n.fontStyle}";\n font-weight: "${n.fontWeight}";\n src: url("${n.fontUrl}") format("${e.format}");\n }\n `,0)}i.push(new(o())(e.fontFamily,{style:n.fontStyle,weight:n.fontWeight}).load())}}))})),Promise.all(i).then((()=>{Promise.resolve()})).catch((e=>{a.Z.increment("load_fonts.failure",1,{failure_reason:"unsuccessful load"}),Promise.reject(e)}))}},116303:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(883119),o=i(785893);const a=(e,t)=>{const i=null==e?void 0:e.includes("images/user/default");return Boolean(i&&t)};function r({accessibilityLabel:e,name:t,outline:i,size:r,src:s,verified:l}){return(0,o.jsx)(n.qE,{accessibilityLabel:e,name:t,outline:i,size:r,src:a(s,t)?void 0:s,verified:l})}},572551:(e,t,i)=>{i.r(t),i.d(t,{default:()=>b});var n=i(667294),o=i(319915),a=i(757184),r=i(317254),s=i(463076);function l({isRTL:e,maxItemWidth:t=300,maxColumns:i=16,minColumns:n=2}){let o=`\n.gridCentered {\n margin-left: auto;\n margin-right: auto;\n max-width: ${i*t}\n}\n\n.gridCentered .static {\n position: absolute !important;\n visibility: hidden !important;\n}\n\n@media (min-width: ${i*t}px) {\n .gridCentered .static:nth-child(-n+${i}) {\n position: static !important;\n visibility: visible !important;\n float: ${e?"right":"left"};\n display: block;\n }\n\n .gridCentered .static:nth-child(-n+${i}) {\n position: static !important;\n visibility: visible !important;\n float: ${e?"right":"left"};\n display: block;\n }\n\n .gridCentered .static {\n width: ${t}px !important;\n }\n}\n`;for(let a=n;a(null==_?void 0:_.current)||window;return(0,x.jsxs)("div",{className:S,children:[f&&(0,x.jsx)(p.Z,{unsafeCSS:t?l({isRTL:n,maxItemWidth:(e||m.yF)+b,maxColumns:o.length||m.g5,minColumns:u||m.yc}):(0,s.Z)({isRTL:n,itemWidth:(e||m.yF)+b,maxColumns:o.length||m.g5,minColumns:u||m.yc})}),(0,x.jsx)(g.Rk,{columnWidth:(null!=e?e:m.yF)+b,gutterWidth:0,renderItem:e=>(0,x.jsx)(g.xu,{dangerouslySetInlineStyle:{__style:{paddingBottom:P,paddingLeft:b/2,paddingRight:b/2}},children:h(e)}),items:o,layout:t?w:null!=a?a:"basic",loadItems:r,measurementStore:d,minCols:u,ref:e=>{c&&(c.current=e)},scrollContainer:A,virtualize:y,virtualBufferFactor:v})]})}}function y(e){var t;const{isRTL:i}=(0,_.B)(),{checkExperiment:n}=(0,h.F)(),o=null!==(t={enabled_0_3:"0.3",enabled_0_5:"0.5",enabled_0_9:"0.9",enabled_1_1:"1.1",enabled_1_3:"1.3"}[n("web_masonry_virtual_buffer_factor").group])&&void 0!==t?t:.7;return(0,x.jsx)(f,{...e,isRTL:i,virtualBufferFactor:o})}c=f,d="defaultProps",u={gutterWidth:m.ZZ,isGridCentered:!0,minCols:m.yc,paddingStyle:"simplified",virtualize:!0},d in c?Object.defineProperty(c,d,{value:u,enumerable:!0,configurable:!0,writable:!0}):c[d]=u;class v extends n.Component{constructor(...e){super(...e),function(e,t,i){t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}(this,"loadItems",(()=>{const{isFetching:e,loadItems:t}=this.props;!e&&t&&t()}))}render(){const{cacheKey:e,columnWidth:t,flexible:i,gutterWidth:n,isGridCentered:r,items:s,layout:l,masonryRef:c,minCols:d,paddingStyle:u,renderItem:p,scrollContainerRef:h,serverRender:_,virtualize:m}=this.props;return(0,x.jsx)(y,{columnWidth:t,flexible:i,gutterWidth:n,isGridCentered:r,renderItem:e=>(0,x.jsx)(o.Z,{name:"MasonryPerfTimingItem",children:p(e)}),items:s,layout:l,loadItems:this.loadItems,masonryRef:c,measurementStore:(0,a.Z)(e),minCols:d,paddingStyle:u,scrollContainerRef:h,serverRender:_,virtualize:m})}}function b({cacheKey:e,columnWidth:t,flexible:i,gutterWidth:n,isAtEnd:o,isFetching:a,isGridCentered:s=!0,renderItem:l,items:c,pinData:d,layout:u,loadItems:p,masonryRef:h,minCols:_,paddingStyle:m,scrollContainerRef:g,serverRender:f=!0,virtualize:y=!0,includeBackgroundImages:b,includeVideos:P}){return(0,x.jsx)(r.Z,{isAtEndOfFeed:o,pinData:d,itemCount:c.length,includeBackgroundImages:b,includeVideos:P,children:(0,x.jsx)(v,{cacheKey:e,columnWidth:t,flexible:i,gutterWidth:n,isFetching:a,isGridCentered:s,items:c,layout:u,loadItems:p,masonryRef:h,minCols:_,paddingStyle:m,renderItem:l,scrollContainerRef:g,serverRender:f,virtualize:y})})}},757184:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(883119);const o={};function a(e){if(null!=e)return o[e]&&o[e].screenWidth===window.innerWidth||(o[e]={screenWidth:window.innerWidth,cache:n.Rk.createMeasurementStore()}),o[e].cache}},463076:(e,t,i)=>{function n({isRTL:e,itemWidth:t=236,maxColumns:i=16,minColumns:n=2}){let o="\n.gridCentered {\n margin-left: auto;\n margin-right: auto;\n}\n.gridCentered .static {\n position: absolute;\n visibility: hidden;\n}\n";for(let a=n;an})},121151:(e,t,i)=>{i.d(t,{ZP:()=>d,b7:()=>s.b7,bN:()=>l,p4:()=>c});var n=i(50286),o=i(883119),a=i(240684),r=i(785893),s=i(968121);const l=(0,a.ZP)({resolved:{},chunkName:()=>"DesktopModal",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e(51879).then(i.bind(i,373420)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return i(t)},resolve(){return 373420}}),c=(0,a.ZP)({resolved:{},chunkName:()=>"MobileModal",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e(72430).then(i.bind(i,430322)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return i(t)},resolve(){return 430322}});function d(e){const t=(0,n.ZP)(),i=void 0===e.isOpen||e.isOpen;if("desktop"===t&&i){const{isOpen:t,mobileAccessibilityCloseIconLabel:i,mobileAllowScroll:n,mobileHideCloseIcon:o,mobileIsFullscreen:a,mobileIsSlideUp:s,type:c,...d}=e;return(0,r.jsx)(l,{...d})}const{allowClickAndDrag:o,allowMediaPlay:a,allowScroll:s,role:d,size:u,...p}=e;return(0,r.jsx)(c,{...p,isOpen:i})}},968121:(e,t,i)=>{i.d(t,{JN:()=>u,Vf:()=>p,ZM:()=>s,b7:()=>r,bf:()=>d,i_:()=>l,ju:()=>h});var n=i(379764),o=i(643010),a=i(883119);const r=new a.Ry(1e3),s=new a.H3([n.Z]),l=12,c={headingOffset:{__style:{marginLeft:-10,marginRight:50}},RTLheadingOffset:{__style:{marginRight:-10,marginLeft:50}},mask:{baseStyles:{backgroundColor:"rgba(0,0,0, .5)",height:"100%",touchAction:"none",transitionProperty:"opacity",transitionTimingFunction:"ease-out",width:"100%",zIndex:1}},modal:{baseStyles:{border:(0,o.Yc)()?void 0:"1px solid #efefef",touchAction:"none",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",width:"100vw",zIndex:1,left:"0px",bottom:0,borderRadius:"32px 32px 0px 0px",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)",overflow:"hidden"},tabletStyles:{border:void 0,borderRadius:"32px",top:"50%",left:"50%",minWidth:"350px",touchAction:"none",transform:"translate(-50%, -50%)",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",zIndex:1},nonTabletSignUpStyles:{border:void 0,borderRadius:"32px",top:"50%",touchAction:"none",transform:"translate(0%, -50%)",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",zIndex:1,left:"8px",right:"8px",background:"#FFFFFF"},baseStylesSliding:{border:(0,o.Yc)()?void 0:"1px solid #efefef",touchAction:"none",width:"100vw",height:"",zIndex:1,left:0,bottom:0,borderRadius:"32px 32px 0px 0px",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)"},fullscreenStyles:{touchAction:"none",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",width:"90vw",height:"70vh",borderRadius:"8px",zIndex:1,left:"5vw",bottom:"13vh",overflowY:"hidden"},tabletNarrowStyle:{width:425,left:"50%",transform:"translateX(-50%)"}}},d=()=>({__style:c.mask.baseStyles}),u=({isFullscreen:e,isTablet:t,modalStyle:i,type:n})=>{const o=c.modal.fullscreenStyles;let a;return a=e?o:t?c.modal.tabletStyles:"signup"===n?c.modal.nonTabletSignUpStyles:{...c.modal.baseStyles,borderRadius:"32px 32px 0 0"},{__style:i||a}},p=({isFullscreen:e,isTablet:t,isShowing:i,type:n})=>{let o=c.modal.baseStylesSliding,a=i?"translateY(0)":"translateY(100vh)";return o.height=e?"100vh":"",t&&"related_interests_modal"===n&&(o={...o,...c.modal.tabletNarrowStyle},a=i?"translate(-50%, 0)":"translate(-50%, 100vh)"),{__style:{...o,transition:"all 225ms cubic-bezier(0.0,0.0,0.2,1) 500ms",transform:a}}},h=e=>e?c.RTLheadingOffset:c.headingOffset},499128:(e,t,i)=>{i.d(t,{UZ:()=>c,Vg:()=>l,ZP:()=>d});var n=i(667294),o=i(829407),a=i(50286),r=i(883119),s=i(785893);const l=200,c=({deviceType:e,hiding:t,visible:i})=>{const n="desktop"===e;let o=0,a=n?"translateY(200px)":"translateY(-200px)",r="opacity 0.1s ease-in-out",s="hidden";return i&&!t&&(o=1,a="translateY(0)",r="all 0.7s cubic-bezier(.19, 1.15, .48, 1)",s="visible"),i&&t&&(a="scale(1.1)",r="opacity transform 0.2s"),{opacity:o,pointerEvents:"auto",position:"relative",marginTop:n?10:0,transform:a,transition:r,visibility:s}};function d({_dangerouslySetPrimaryAction:e,text:t,primaryAction:i,thumbnailShape:d,variant:u,dataTestId:p,duration:h=2e3,onHide:_,href:m,onClick:g,openNewPage:x,iconThumbnail:f,imageUrl:y}){const v=(0,a.ZP)(),[b,P]=(0,n.useState)(!1),[w,S]=(0,n.useState)(!1),A=(0,n.useRef)(),k=()=>{P(!0),A.current=setTimeout(_,l)},E=()=>{A.current=setTimeout(k,h)},T=()=>{A.current&&clearTimeout(A.current)};let C;(0,o.Z)((()=>(setTimeout((()=>S(!0)),100),E(),T))),f?C=f:y&&(C=(0,s.jsx)(r.xu,{height:48,overflow:"hidden",width:48,children:(0,s.jsx)(r.Ee,{alt:"string"==typeof t?t:`${t[0]} ${t[1]}`,fit:"cover",naturalHeight:1,naturalWidth:1,src:y})}));const I=(0,s.jsx)(r.FN,{_dangerouslySetPrimaryAction:e,primaryAction:i,text:t,thumbnail:C,thumbnailShape:d,variant:u}),{marginTop:j,opacity:R,pointerEvents:D,position:z,transform:O,transition:L,visibility:N}=c({deviceType:v,hiding:b,visible:w});return(0,s.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:{transform:O,transition:L,visibility:N,pointerEvents:D}},"data-test-id":null!=p?p:"toast",onMouseEnter:T,onMouseLeave:E,opacity:R,position:z,marginTop:j,display:"flex",children:m?(0,s.jsx)(r.iP,{role:"link",href:m,onTap:({event:e})=>null==g?void 0:g(e),target:x?"blank":null,rounding:"pill",children:I}):I})}},572752:(e,t,i)=>{function n(e){return`${e.userAgent.isMobile?"mobile":"desktop"}.${e.country}.${e.userAgent.platform}.${e.userAgent.browserName}`.replace(/ /g,"_")}i.d(t,{Z:()=>n})},444445:(e,t,i)=>{i.d(t,{$H:()=>r,$q:()=>x,D6:()=>l,KN:()=>f,Lo:()=>o,P2:()=>_,ZZ:()=>d,g5:()=>u,jC:()=>s,lX:()=>h,nW:()=>p,oX:()=>m,qG:()=>g,tG:()=>a,yF:()=>n,yc:()=>c});const n=236,o=2*n/3,a=175,r=24,s=4,l=2,c=2,d=14,u=16,p=12,h=16,_=24,m=16,g=-1,x=(e=!1,t=!1)=>e?t?h:p:_,f=(e,t,i,n,o=d)=>{const a=e+o;return`\n@media (min-width: ${t*a}px) and (max-width: ${(i+1)*a-1}px) {\n ${n}\n}\n`}},694379:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(892819),o=i(780280),a=i(785893);const r=({currency:e,maximumFractionDigits:t,minimumFractionDigits:i,shortform:r,shortformMaximumFractionDigits:s,formatStyle:l,uplimit:c,value:d})=>{const u=(0,n.Z)();return(0,a.jsx)(o.LC,{children:n=>u(n.locale||"en-US",d,{currency:e,maximum_fraction_digits:t,minimum_fraction_digits:i,shortform:r,shortform_maximum_fraction_digits:s,style:l,uplimit:c})})}},298361:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(898781),o=i(349700),a=i(202139);function r(){const e=(0,n.ZP)();return function(t,i){const n=new Date(t),r=new Date-n,s=Math.floor(r/a.FS),l=Math.floor(r/a.UK),c=Math.floor(r/a.F4),d=Math.floor(r/a.VL),u=Math.floor(r/a.N1),p=e.ngettext('{{ minutes }} minute ago', '{{ minutes }} minutes ago', s, ' - ', ' -- '),h=e.ngettext('{{ hours }} hour ago', '{{ hours }} hours ago', l, ' - ', ' -- '),_=e.ngettext('{{ days }} day ago', '{{ days }} days ago', c, ' - ', ' -- '),m=e.ngettext('{{ weeks }} week ago', '{{ weeks }} weeks ago', d, ' - ', ' -- '),g=e.ngettext('{{ years }} year ago', '{{ years }} years ago', u, ' - ', ' -- '),x=e.ngettext('{{ minutes }}m', '{{ minutes }}m', s, 'minutes ago abbreviated', 'minutes ago abbreviated'),f=e.ngettext('{{ hours }}h', '{{ hours }}h', l, 'hours ago abbreviated', 'hours ago abbreviated'),y=e.ngettext('{{ days }}d', '{{ days }}d', c, 'days ago abbreviated', 'days ago abbreviated'),v=e.ngettext('{{ weeks }}w', '{{ weeks }}w', d, 'weeks ago abbreviated', 'weeks ago abbreviated'),b=e.ngettext('{{ years }}y', '{{ years }}y', u, 'years ago abbreviated', 'years ago abbreviated');return u>0?(0,o.nk)(i?b:g,{years:u}).join(""):d>0?(0,o.nk)(i?v:m,{weeks:d}).join(""):c>0?(0,o.nk)(i?y:_,{days:c}).join(""):l>0?(0,o.nk)(i?f:h,{hours:l}).join(""):s>0?(0,o.nk)(i?x:p,{minutes:s}).join(""):e._('Just now', ' - ', ' -- ')}}},898781:(e,t,i)=>{i.d(t,{ZP:()=>s,oz:()=>a,q6:()=>o});var n=i(425288);const{Provider:o,Consumer:a,useHook:r}=(0,n.Z)("i18n"),s=r},892819:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(66699),o=i(898781);const a=(e,t)=>{const i=t||0,n=10**i,o=+(i?e*n:e).toFixed(8),a=Math.floor(o),r=o-a,s=r>.5-1e-8&&r<.5+1e-8?a%2==0?a:a+1:Math.round(o);return i?s/n:s},r=e=>{try{(0).toLocaleString([e])}catch(t){return!1}return!0};function s(){const e=(0,o.ZP)();return(t,i,o)=>{let s=0,l=0;const c=o&&o.style||void 0,d=o&&o.shortform||!1,u=o&&o.uplimit||void 0,p=o&&o.currency||void 0,h=!!u&&i>=u,_=u&&h?u:i;if("currency"===c){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===o||void 0===o.maximum_fraction_digits?i:o.maximum_fraction_digits,l=void 0===o||void 0===o.minimum_fraction_digits?e:o.minimum_fraction_digits}else s=void 0===o||void 0===o.maximum_fraction_digits?0:o.maximum_fraction_digits,l=void 0===o||void 0===o.minimum_fraction_digits?0:o.minimum_fraction_digits;if(d&&_>999&&(s=void 0===o||void 0===o.shortform_maximum_fraction_digits?2:o.shortform_maximum_fraction_digits,l=0),s999){const e=y?x:f;for(let t=0;t=n){m=a(_/n*Math.pow(10,s))/Math.pow(10,s),g=e[t][i].localeKey;break}}}if(null==m)return"";const v=m.toLocaleString([r(t)&&"ar-SA"!==t?t:"en-US"],(({maximumFractionDigits:e,minimumFractionDigits:t,style:i,currency:n})=>{const o={maximumFractionDigits:e,minimumFractionDigits:t};return i?{...o,style:i,..."currency"===i?{currency:n,currencyDisplay:"symbol"}:{}}:o})({maximumFractionDigits:s,minimumFractionDigits:l,currency:p,style:c}));return g&&g.length>0?(0,n.Z)(e._('{{formattedNumber}}{{numberSuffix}}', 'i18n.usePrettyNumberFormat.prettyNumberFormat', 'String used to concatenate formatted number and localized number suffix'),{formattedNumber:v,numberSuffix:g})+(h?"+":""):v+(h?"+":"")}}},366428:(e,t,i)=>{i.d(t,{F:()=>c,Z:()=>l});var n=i(667294),o=i(124580),a=i(407043),r=i(773285);const s={ActivationCard:{impressionType:"activationCardImpressions",idType:"experienceIdStr",eventType:8547},Article:{impressionType:"articleImpressions",idType:"articleIdStr",eventType:3829},Banner:{impressionType:"bannerImpressions",idType:"userIdStr",eventType:9061},Board:{impressionType:"boardImpressions",idType:"boardIdStr",eventType:3700},Comment:{impressionType:"commentImpressions",idType:"commentIdStr",eventType:9127},Guide:{impressionType:"guideImpressions",idType:"term",eventType:7573},Interest:{impressionType:"topicImpressions",idType:"topicIdStr",eventType:3703},News:{impressionType:"newsHubData",idType:"newsIdStr",eventType:4110},OneBar:{impressionType:"oneBarImpressions",idType:"onebarIdStr",eventType:9993},Pin:{impressionType:"pinImpressions",idType:"pinIdStr",eventType:18},Search:{impressionType:"searchImpressions",idType:"term",eventType:3803},Story:{impressionType:"storyImpression",idType:"idStr",eventType:170},TodayArticle:{impressionType:"todayArticleImpressions",idType:"todayArticleIdStr",eventType:8569},User:{impressionType:"userImpressions",idType:"userIdStr",eventType:3704}};function l({carouselData:e,closeupImpressionType:t,closeupNavigationType:i,componentType:l,contextLogData:c,clientTrackingParams:d,elementType:u,impressionAuxFields:p,inImpressionExp:h,impressionType:_,impressionsFramework:m,isPaused:g,loggingId:x,objectIdStr:f,slotIndex:y,trackCarousel:v,viewData:b,viewParameter:P,viewType:w}){const{logContextEvent:S}=(0,a.v)(),{checkExperiment:A}=(0,r.F)(),k=A("web_mweb_pin_impression_add_width_height").anyEnabled,E=m||o.Z,T=(0,n.useRef)(null),C=n=>{const o=s[_],a=o.idType;let r={endTime:n.endTime,[a]:x,slotIndex:y,time:n.startTime,renderDuration:n.endTime-n.startTime,type:t,...p,forcedExit:"removed"===n.forcedExit?0:void 0};var h,m,g,A;"Pin"===_&&(r={...r,pinCellWidth:k?(null===(h=T.current)||void 0===h?void 0:h.getBoundingClientRect().width)||0:void 0,pinCellHeight:k?(null===(m=T.current)||void 0===m?void 0:m.getBoundingClientRect().height)||0:void 0,windowWidth:k?null===(g=window)||void 0===g?void 0:g.innerWidth:void 0,windowHeight:k?null===(A=window)||void 0===A?void 0:A.innerHeight:void 0});const E={component:l,object_id_str:f,view_type:w,view_data:b||{},view_parameter:P};if(v){if(e){var C,I,j;S({event_type:7352,event_data:{pinCarouselSlotImpressions:[{...r,carouselDataId:Number(e.id),carouselSlotId:(null===(C=e.carousel_slots)||void 0===C?void 0:C[null!==(I=e.index)&&void 0!==I?I:0])&&Number(e.carousel_slots[null!==(j=e.index)&&void 0!==j?j:0].id),slotIndex:e.index}]},...E,aux_data:{...c}})}}else S({clientTrackingParams:d,event_type:o.eventType,...E,element:u,event_data:{[o.impressionType]:"Story"===_?r:[r]},aux_data:{closeup_navigation_type:i,...c}})},I=(0,n.useCallback)((()=>{try{T.current instanceof HTMLElement&&E.start(T.current).onExitViewport(C).setDebugId(x||"unknown")}catch(e){window.console.error('Can only track impressions for type "HTMLElement"')}}),[T.current]);(0,n.useEffect)((()=>(h&&!E.inExperiment&&E.setExperimentStatus(!0),g||I(),()=>{T.current instanceof HTMLElement&&E.stop(T.current)})),[I]);const j=(0,n.useRef)(g);return(0,n.useEffect)((()=>{j.current&&!g&&I(),j.current=g}),[g,I]),T}const c=({children:e,...t})=>e({impressionTrackerRef:l(t)})},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:()=>_});const o=1e6,a=window.location.search.includes("debug_impressions=1")||document.cookie&&document.cookie.indexOf("debug_impressions=1")>-1,r={paused:"Pause",resumed:"Resume",stopped:"Flush",enter:"Enter viewport",exit:"Exit viewport"},s={},l={background:"#FF8A8A",transform:"scale(.98)"},c={init:e=>({transform:`scale(${s[e]?.8:.99})`,transition:"transform .2s ease-in-out",background:"#8E8E8E"}),[r.enter]:{background:"#A0DCC8",transform:"scale(.99)"},[r.exit]:l,[r.stopped]:l,[r.paused]:l,[r.resumed]:{background:"#0FA573",transform:"scale(.99)"}};class d{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(r.enter,{startTime:e,node:this.node}),this.enterCallbacks.forEach((e=>e()))}else!t&&this.inViewport&&(this._debug(r.exit,!0),this.exitCallbacks.forEach((e=>e(this.toJSON()))));this.inViewport=t})),this.enterCallbacks=[],this.exitCallbacks=[],this.inViewport=!1,this.node=e,this.startTime=0,this.debugId=""}onEnterViewport(e){return this.enterCallbacks.push(e),this}onExitViewport(e){return this.exitCallbacks.push(e),this}setDebugId(e){return this.debugId=e,a&&Object.assign(this.node.style,c.init(e)),this}pause(){return this.inViewport&&(this._debug(r.paused,!0),this.exitCallbacks.forEach((e=>e(this.toJSON())))),this}resume(){if(this.inViewport){const e=Date.now();this._debug(r.resumed,{startTime:e}),this.startTime=e}return this}stop(e){return this.inViewport&&(this._debug(r.stopped,!0),this.exitCallbacks.forEach((t=>t(this.toJSON(e))))),this}toJSON(e=""){return{startTime:this.startTime*o,endTime:Date.now()*o,forcedExit:e}}toDebugJSON(){return{pinID:this.debugId,startTime:this.startTime,endTime:Date.now(),duration:(Date.now()-this.startTime)/1e3+" seconds"}}_debug(e,t){if(a)switch(window.console.log(`📌 ${e} -- ${this.debugId}`),!0===t&&window.console.log(this.toDebugJSON()),"object"==typeof t&&window.console.log(t),c[e]&&Object.assign(this.node.style,c[e]),e){case r.flushed:case r.paused:case r.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 _{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 d(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 ithis.observer.observe(e.node))),this.topHeight=e,this.bottomHeight=t}}}},564194:(e,t,i)=>{i.d(t,{Z:()=>p});var n=i(667294),o=i(973935),a=i(124580),r=i(407043),s=i(773285),l=i(785893);function c(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const d={Article:{impressionType:"articleImpressions",idType:"articleIdStr",eventType:3829},Pin:{impressionType:"pinImpressions",idType:"pinIdStr",eventType:18},Board:{impressionType:"boardImpressions",idType:"boardIdStr",eventType:3700},BoardMoreIdeasRep:{impressionType:"boardMoreIdeasFeedUpsellImpressions",idType:"boardIdStr",eventType:10054},Interest:{impressionType:"topicImpressions",idType:"topicIdStr",eventType:3703},Search:{impressionType:"searchImpressions",idType:"term",eventType:3803},Story:{impressionType:"storyImpression",idType:"idStr",eventType:170},ActivationCard:{impressionType:"activationCardImpressions",idType:"experienceIdStr",eventType:8547},User:{impressionType:"userImpressions",idType:"userIdStr",eventType:3704},News:{impressionType:"newsHubData",idType:"newsIdStr",eventType:4110},Guide:{impressionType:"guideImpressions",idType:"term",eventType:7573},TodayArticle:{impressionType:"todayArticleImpressions",idType:"todayArticleIdStr",eventType:8569},Banner:{impressionType:"bannerImpressions",idType:"userIdStr",eventType:9061},Comment:{impressionType:"commentImpressions",idType:"commentIdStr",eventType:9127}};class u extends n.Component{constructor(e){super(e),c(this,"trackImpression",(()=>{try{this.node=(0,o.findDOMNode)(this),this.node instanceof HTMLElement&&this.impressionsFramework.start(this.node).onExitViewport(this.logImpression).setDebugId(this.props.loggingId||"unknown")}catch(e){window.console.error('Can only track impressions for type "HTMLElement"')}})),c(this,"logImpression",(e=>{const{carouselData:t,closeupImpressionType:i,closeupNavigationType:n,componentType:o,contextLogData:a,elementType:r,impressionAuxFields:s,impressionType:l,loggingId:c,objectIdStr:u,slotIndex:p,trackCarousel:h,viewData:_,viewParameter:m,viewType:g,logContextEvent:x,logImpDimensions:f}=this.props,y=d[l],v=y.idType,b=e.forcedExit&&"removed"===e.forcedExit?0:void 0;let P={endTime:e.endTime,[v]:c,slotIndex:p,time:e.startTime,renderDuration:e.endTime-e.startTime,type:i,...s,forcedExit:b};var w,S;"Pin"===l&&f&&(P={...P,pinCellWidth:this.node.offsetWidth,pinCellHeight:this.node.offsetHeight,windowWidth:null===(w=window)||void 0===w?void 0:w.innerWidth,windowHeight:null===(S=window)||void 0===S?void 0:S.innerHeight});if(h||x({event_type:y.eventType,component:o,element:r,event_data:{[y.impressionType]:"Story"===l?P:[P]},object_id_str:u,view_type:g,view_data:_||{},view_parameter:m,aux_data:{...a,closeup_navigation_type:n}}),t&&h){const{carousel_slots:e,index:i=0,id:n}=t;x({event_type:7352,component:o,event_data:{pinCarouselSlotImpressions:[{...P,carouselDataId:Number(n),carouselSlotId:(null==e?void 0:e[i])&&Number(e[i].id),slotIndex:i}]},object_id_str:u,view_type:g,view_data:_||{},view_parameter:m,aux_data:{...a}})}})),this.impressionsFramework=e.impressionsFramework||a.Z}componentDidMount(){this.props.inImpressionExp&&!this.impressionsFramework.inExperiment&&this.impressionsFramework.setExperimentStatus(!0),this.props.isPaused||this.trackImpression()}componentDidUpdate(e){e.isPaused&&!this.props.isPaused&&this.trackImpression()}componentWillUnmount(){this.node instanceof HTMLElement&&this.impressionsFramework.stop(this.node)}render(){return n.Children.only(this.props.children)}}function p(e){const{logContextEvent:t}=(0,r.v)(),{checkExperiment:i}=(0,s.F)(),n=i("web_mweb_pin_impression_add_width_height").anyEnabled;return(0,l.jsx)(u,{...e,logContextEvent:t,logImpDimensions:n})}},124580:(e,t,i)=>{i.d(t,{Z:()=>n});const n=new(i(12610).ZP)},615568:(e,t,i)=>{i.d(t,{Z:()=>p});var n=i(667294),o=i(357787),a=i(704115),r=i(19121),s=i(407043),l=i(785893);function c(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const d=(0,a.Z)()&&(0,a.Z)().debug_impression_log,u={Article:{impressionType:"articleImpressions",idType:"articleIdStr",eventType:3829},Pin:{impressionType:"pinImpressions",idType:"pinIdStr",eventType:18},Board:{impressionType:"boardImpressions",idType:"boardIdStr",eventType:3700},Interest:{impressionType:"topicImpressions",idType:"topicIdStr",eventType:3703},Search:{impressionType:"searchImpressions",idType:"term",eventType:3803},User:{impressionType:"userImpressions",idType:"userIdStr",eventType:3704},News:{impressionType:"newsHubData",idType:"newsIdStr",eventType:4110},Story:{impressionType:"storyImpression",idType:"idStr",eventType:170},Guide:{impressionType:"guideImpressions",idType:"term",eventType:7573},ActivationCard:{impressionType:"activationCardImpressions",idType:"experienceIdStr",eventType:8547},Banner:{impressionType:"bannerImpressions",idType:"userIdStr",eventType:9061}};function p(e){const t=(0,o.Z)(e);class i extends n.Component{constructor(...e){super(...e),c(this,"currentNs",(()=>1e6*Date.now())),c(this,"startTime",0),c(this,"debugPinImpressions",d&&"Pin"===this.props.impressionType&&this.props.viewer.isAuth&&this.props.viewer.isEmployee),c(this,"handleVisibilityChanged",(e=>{const{componentType:t,contextLogData:i,impressionAuxFields:n,impressionType:o,loggingId:a,slotIndex:r,viewParameter:s,viewType:l,viewData:c,logContextEvent:d}=this.props;if(e)this.startTime=this.currentNs(),this.debugPinImpressions&&console.log(r+" started timer");else{const e=u[o],p=e.idType,h=this.currentNs(),_={endTime:h,[p]:a,slotIndex:r,time:this.startTime,renderDuration:h-this.startTime,...n};d({event_type:e.eventType,component:t,event_data:{[e.impressionType]:[_]},view_type:l,view_parameter:s,view_data:c,aux_data:{...i}}),this.debugPinImpressions&&console.log(r+" logged for "+(h-this.startTime)/1e9+"s")}}))}render(){return(0,l.jsx)(t,{onVisibilityChanged:this.handleVisibilityChanged,...this.props})}}return function(e){const{logContextEvent:t}=(0,s.v)(),n=(0,r.Z)();return(0,l.jsx)(i,{...e,viewer:n,logContextEvent:t})}}},349700:(e,t,i)=>{function n(e,t,i){return e.split(i).map((e=>{if(e.match(i)){const i=e.replace(/[\{\}]/g,"").trim();if(Object.prototype.hasOwnProperty.call(t,i))return t[i]}return e}))}i.d(t,{Wc:()=>r,bF:()=>l,nk:()=>a});const o=/(\{\{\s*\w+\s*\}\})/g;function a(e,t){return n(e,t,o)}function r(e,t){return n(e,t,o).join("")}const s=/(\{\s*\w+\s*\})/g;function l(e,t){return n(e,t,s)}},543972:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(667294);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}class a extends n.Component{constructor(...e){super(...e),o(this,"ref",(0,n.createRef)()),o(this,"observer",null),o(this,"handleVisibilityChanged",((e,t)=>{this.props.onVisibilityChange(e,t)}))}componentDidMount(){this.ref&&this.ref.current&&(this.observer=new window.IntersectionObserver(this.handleVisibilityChanged,this.props.options),this.observer.observe(this.ref.current))}componentWillUnmount(){null!==this.observer&&(this.observer.unobserve(this.ref.current),delete this.observer)}render(){return this.props.children(this.ref)}}const r=a},507712:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(412067),o=i(826067);const a=(e=(()=>{}))=>{const t=(0,o.mB)(window.location.search),i=t.invite_code;i?n.Z.create("InviteAttributionResource",{invite_code:i}).callCreate():e(t)}},496793:(e,t,i)=>{i.d(t,{U:()=>m});var n=i(172071),o=i(412067);const a="nic_v3",r="nic_v3=1a",s="nic_v3=1b",l=[r,s],c=["invite_code","invite","board_invite_code","sender"];let d=null;const u=e=>!!c.find((t=>e.includes(t))),p=e=>{return e.pathname.includes("/pin/")&&!u(e.search)&&(t=e.search,!l.find((e=>t.includes(e))));var t},h=(e,t,i=!1,o)=>{if(!p(e))return;const a=i?"mweb":"web";if(t){n.Z.increment(`${a}.nic_v3.social_tracking_pin_non_invite.insert.attempt`);try{const l=((e,t,i)=>{const n=(e.search?"&":"?")+(i?s:r)+t;return e.pathname+e.search+n})(e,t,i);n.Z.increment(`${a}.nic_v3.social_tracking_pin_non_invite.insert.success`),o(l)}catch(l){n.Z.increment(`${a}.nic_v3.social_tracking_pin_non_invite.insert.caught_exception`)}}else n.Z.increment(`${a}.nic_v3.social_tracking_pin_non_invite.insert.no_encrypted_id`)},_=(e,t,i=!1,a)=>{d?h(e,d,i,a):(e=>o.Z.create("InviteSocialTrackingParamNonInviteResource",{user_id:e}).callCreate().then((e=>{if(!e||!e.resource_response)return n.Z.increment("nic_v3.social_tracking_pin_non_invite.no_resource_response"),"";const t=e.resource_response.data,i=encodeURIComponent(t);return n.Z.increment("nic_v3.social_tracking_pin_non_invite.encrypted."+(i?"true":"false")),i})))(t).then((t=>{d=t,h(e,d,i,a)}))},m=(e,t,i,o,r)=>{const s=i?"mweb":"web";n.Z.increment(`${s}.nic_v3.social_tracking_pin_non_invite.attempt`);try{!i&&o&&p(e)?(n.Z.increment(`${s}.nic_v3.social_tracking_pin_non_invite.search_string_eligible`),_(e,t,i,r)):(l=e.search,u(l)||(e=>e.includes("sender"))(l)||!l.includes(a)||n.Z.increment(`${s}.nic_v3.social_tracking_pin_non_invite.search_string_land`))}catch(c){n.Z.increment(`${s}.nic_v3.social_tracking_pin_non_invite.caught_exception`)}var l}},995081:(e,t,i)=>{i.d(t,{Rq:()=>n,Vf:()=>o,jd:()=>a,oy:()=>r});const n=e=>"ios"===e&&(window.devicePixelRatio||1)*window.screen.height==2436,o=28,a=e=>window.innerHeight>=748&&n(e),r=function(){return!("undefined"==typeof window||!window.navigator)&&(/iPad/.test(navigator.platform)||navigator.maxTouchPoints>1&&"MacIntel"===navigator.platform)}},251819:(e,t,i)=>{function n(e){return null==e||(Array.isArray(e)||"string"==typeof e?0===e.length:"function"==typeof e||("symbol"==typeof e||("object"==typeof e?function(e){const t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Object.prototype)}(e)?0===Object.keys(e).reduce(((t,i)=>Object.prototype.hasOwnProperty.call(e,i)&&"constructor"!==i?[...t,i]:t),[]).length:e instanceof Map||e instanceof Set?0===e.size:!Object.keys(e).length:"boolean"==typeof e||"number"==typeof e)))}i.d(t,{Z:()=>n})},329734:(e,t,i)=>{i.d(t,{P:()=>a,Z:()=>o});var n=i(702664);function o(e){return e&&e[1000069]&&500417===e[1000069].experience_id&&e[1000069].display_data.hide_footer}function a(){const e=(0,n.useSelector)((({experiences:e})=>e));return!!e&&o(e)}},926275:(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(){function n(e){return"object"==typeof e&&null!==e&&e.constructor===Object&&"[object Object]"===Object.prototype.toString.call(e)}i.d(t,{Z:()=>n})},411938:(e,t,i)=>{i.d(t,{Z:()=>n});function n(e,t,i=28){if(!(e||{}).resurrection_info&&!(t||{}).resurrectionInfo)return!1;let n;n=t?((t||{}).resurrectionInfo||{}).resurrectionDate:((e||{}).resurrection_info||{}).resurrection_dt;const o=new Date,a=n?new Date(n):o;return a.setDate(a.getDate()+i),(new Date).getTime(){i.d(t,{Z:()=>n});const n=function({hours:e,minutes:t}){return`PT${e}H${t}`}},755742:(e,t,i)=>{i.d(t,{Z:()=>n});const n={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,F5:116,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}},313047:(e,t,i)=>{i.r(t),i.d(t,{DEFAULT_HEIGHT:()=>u,DEFAULT_PADDING_Y:()=>p,FixedFooter:()=>m,FixedHeader:()=>_});var n=i(667294),o=i(124580),a=i(53987),r=i(773285),s=i(834256),l=i(883119),c=i(643010),d=i(785893);const u=64,p=3;function h({children:e,footerConfig:t,headerConfig:i,height:a,hideOnScroll:s,hideOnScrollState:{isHidden:h,updateHiddenState:_},showDockedNavBar:m,dockNavBarForAuthTablet:g,isTablet:x,noPadding:f,paddingY:y=p,type:v,zIndex:b}){const{headerLimitedOverflow:P,ignoreObstructions:w,zIndexForGestaltBug:S}=i||{},{appUpsellFooterConfig:A,footerInLego:k,footerWidth:E}=t||{},T=!!A,C="header"===v?"top":"bottom",{anyEnabled:I}=(0,r.F)().checkExperiment("hfp_hf_ssr_mweb",{dangerouslySkipActivation:!0}),j=(0,c.vs)(),R=I?j:(0,c.Yc)(),D=(0,n.useRef)(null),z=(0,n.useRef)(null);(0,n.useEffect)((()=>{try{if(!w){const e=D.current;z.current=P&&e&&Array.isArray(e.children)?e.children[0]:e,z.current instanceof HTMLElement&&o.Z.addObstruction(C,z.current)}}catch(e){window.console.error(e),window.console.error('Can only register impression obstructions for type "HTMLElement"')}return()=>{w||z.current instanceof HTMLElement&&o.Z.removeObstruction(C,z.current)}}),[w,P,C,R]);const O="top"===C?"relative":"fixed",L=f?0:y,N=(null!=a?a:u)+((null==i?void 0:i.overrideTop)||0),B=s||m||g?{transition:k?"transform 300ms ease-in-out, opacity 300ms ease-in-out":"transform 200ms linear",...h?{transform:`translateY(${"top"===C?-N:N}px)`,opacity:k?0:1}:Object.freeze({})}:{},M="relative"!==O||null!=i&&i.noGutter?0:2,Z=M?-M:0,F=R?"rgba(0,0,0,.95)":"rgba(255,255,255,.95)";let U,V;return R&&("header"===v?U=-1:V=-1),(0,d.jsx)(l.xu,{ref:D,dangerouslySetInlineStyle:{__style:{top:U,bottomStyle:V,...!b||S?{zIndex:S||1}:Object.freeze({}),...P?{background:"transparent",overflow:"hidden",paddingBottom:100,marginBottom:-100,pointerEvents:"none"}:Object.freeze({}),...null!=i&&i.hasBorder?{borderBottom:"1px solid #efefef"}:Object.freeze({}),...null!=t&&t.hasTopShadow?{boxShadow:"0 -2px 4px 1px rgba(0, 0, 0, 0.08)"}:Object.freeze({}),...B}},zIndex:S?void 0:b,"data-test-id":v,display:T?"flex":void 0,height:a&&!k?a:void 0,position:O,bottom:"footer"===v,top:"header"===v,left:!0,right:!0,marginStart:k?"auto":Z,marginEnd:k?"auto":Z,onTransitionEnd:()=>{(s||m||g)&&z.current&&(h?o.Z.removeObstruction(C,z.current):o.Z.addObstruction(C,z.current))},width:k||"fixed"!==O?void 0:"100%",children:(0,d.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:(null==i?void 0:i.isTranslucent)&&F||(null==i?void 0:i.isTransparentBackground)&&"transparent"||"var(--color-background-default)",height:k?T?void 0:null!=a?a:u:"100%",boxShadow:k?"0px 0px 8px rgba(0, 0, 0, 0.1)":void 0,marginBottom:!k||m&&!x?void 0:16,...P?{pointerEvents:"auto"}:Object.freeze({}),...null!=i&&i.useRoundedCorners?{zIndex:5,borderTopRightRadius:17,borderTopLeftRadius:17,borderBottomRightRadius:0,borderBottomLeftRadius:0}:Object.freeze({})}},paddingX:("footer"!==v||f?0:4)+M,paddingY:L,position:"relative",width:k&&E?E:T?void 0:"100%",rounding:!k||m&&!x?void 0:"pill",display:k||null!=t&&t.alignCenter?"flex":void 0,marginStart:k?"auto":void 0,marginEnd:k?"auto":void 0,alignItems:null!=t&&t.alignCenter?"center":void 0,children:"function"==typeof e?e({updateHiddenState:_}):e})})}function _({hasBorder:e,headerLimitedOverflow:t,ignoreObstructions:i,isTranslucent:n,isTransparentBackground:o,noGutter:a,overrideTop:r,useRoundedCorners:c,zIndexForGestaltBug:u,..._}){const{noPadding:m,paddingY:g=p,zIndex:x}=_,f=m?0:g;return(0,d.jsx)(l.Le,{top:r||0,height:t?44+2*f*4:void 0,zIndex:x||void 0,children:(0,d.jsx)(s.Z,{hideOnScroll:_.hideOnScroll,children:s=>(0,d.jsx)(h,{..._,hideOnScrollState:s,type:"header",headerConfig:{isTranslucent:n,isTransparentBackground:o,headerLimitedOverflow:t,hasBorder:e,ignoreObstructions:i,noGutter:a,overrideTop:r,zIndexForGestaltBug:u,useRoundedCorners:c}})})})}function m({alignCenter:e,appUpsellFooterConfig:t,footerInLego:i,footerWidth:n,forceShow:o,hasTopShadow:r,location:l,showDockedNavBar:c,dockNavBarForAuthTablet:u,isTablet:p,isModal:_,onScroll:m,...g}){const x=!!l&&(0,a.uM)(l)&&(!!c||!!u);return(0,d.jsx)(s.Z,{appUpsellFooterConfig:t,forceShow:o,hideOnScroll:g.hideOnScroll,location:l,isDockedNavOnPlp:x,isModal:_,onScroll:m,children:o=>(0,d.jsx)(h,{...g,hideOnScrollState:o,showDockedNavBar:c,dockNavBarForAuthTablet:u,isTablet:p,type:"footer",footerConfig:{alignCenter:e,appUpsellFooterConfig:t,footerInLego:i,footerWidth:n,hasTopShadow:r}})})}},834256:(e,t,i)=>{i.d(t,{Z:()=>s,m:()=>r});var n=i(667294),o=i(700380);function a(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const r=20;class s extends n.Component{constructor(...e){super(...e),a(this,"state",{isHidden:!!this.props.appUpsellFooterConfig||!!this.props.isDockedNavOnPlp}),a(this,"lastScrollPos",0),a(this,"updateHiddenState",(e=>{this.reqAnimationId=window.requestAnimationFrame((()=>{this.setState({isHidden:e})}))})),a(this,"handleScroll",(0,o.Z)((()=>{const{appUpsellFooterConfig:e,isModal:t,onScroll:i,isDockedNavOnPlp:n}=this.props,{isHidden:o}=this.state,a=window.scrollY,s=a-this.lastScrollPos;let l="none";const{scrollHeight:c,clientHeight:d}=document.documentElement||{};if(!Number.isNaN(c)&&!Number.isNaN(d))if(s<0){const e=window.scrollMinY||0;l=a<=Math.abs(e+Math.max(s,r))?"start":"none"}else{l=a>=(window.scrollMaxY||c-d)-Math.max(s,r)?"end":"none"}const u=t?0:55;if(e)if(s>r&&o&&a>=500){e.shouldShowAfterScroll()&&(this.updateHiddenState(!1),i&&i(!1))}else(s<-r&&!o||a<=u)&&(this.updateHiddenState(!0),i&&i(!0));else!this.props.hideOnScroll&&n?"start"===l&&!o||a<=u?(this.updateHiddenState(!0),i&&i(!0)):(a>u||"end"===l)&&o&&(this.updateHiddenState(!1),i&&i(!1)):(s<-r||"start"===l)&&o||a<=u?(this.updateHiddenState(!1),i&&i(!1)):(s>r||"end"===l)&&!o&&(this.updateHiddenState(!0),i&&i(!0));this.lastScrollPos=a}),30))}componentDidMount(){try{(this.props.hideOnScroll||this.props.isDockedNavOnPlp)&&window.addEventListener("scroll",this.handleScroll)}catch(e){window.console.error(e),window.console.error('Can only register impression obstructions for type "HTMLElement"')}}componentWillUnmount(){(this.props.hideOnScroll||this.props.isDockedNavOnPlp)&&window.removeEventListener("scroll",this.handleScroll),this.reqAnimationId&&(window.cancelAnimationFrame(this.reqAnimationId),this.reqAnimationId=null)}componentDidUpdate(e){!e.hideOnScroll&&this.props.hideOnScroll||!e.isDockedNavOnPlp&&this.props.isDockedNavOnPlp?(this.updateHiddenState(!0),window.addEventListener("scroll",this.handleScroll)):(e.hideOnScroll&&!this.props.hideOnScroll||e.isDockedNavOnPlp&&!this.props.isDockedNavOnPlp)&&(this.updateHiddenState(!1),window.removeEventListener("scroll",this.handleScroll))}render(){const{children:e,forceShow:t}=this.props,{isHidden:i}=this.state;return e({isHidden:!t&&i,updateHiddenState:this.updateHiddenState})}}},166300:(e,t,i)=>{i.d(t,{Z:()=>l});var n=i(50286),o=i(883119),a=i(444445),r=i(134879),s=i(785893);const l=({children:e,roundedForLargeDevice:t})=>{const i="phone"!==(0,n.ZP)()&&t;return(0,r.V)()?(0,s.jsx)(o.xu,{marginStart:-a.D6,marginEnd:-a.D6,rounding:i?6:void 0,overflow:i?"hidden":void 0,children:(0,s.jsx)(r.C,{value:!1,children:e})}):e}},542554:(e,t,i)=>{i.r(t),i.d(t,{AMPPageContainer:()=>c,default:()=>d});var n=i(883119),o=i(134879),a=i(444445),r=i(780280),s=i(995081),l=i(785893);const c=({children:e,dataLayoutShiftBoundaryId:t,hasFixedHeader:i=!1,hasGutter:c=!0,height:d,showKeychainError:u=!1,useViewport:p=!1})=>{const h=(0,r.B)(),_=(0,s.jd)(h.userAgent.platform)?s.Vf:0;return(0,l.jsx)(n.xu,{"data-layout-shift-boundary-id":t||"PageContainer",height:p?`calc(100vh - ${_}px)`:d,paddingX:c?a.D6:void 0,paddingY:i||u?void 0:3,children:(0,l.jsx)(o.C,{value:!!c,children:e})})},d=c},134879:(e,t,i)=>{i.d(t,{C:()=>a,V:()=>r});var n=i(667294);const o=(0,n.createContext)(!1),a=o.Provider,r=()=>(0,n.useContext)(o)},48714:(e,t,i)=>{i.d(t,{nS:()=>b,iw:()=>w,gV:()=>y,G3:()=>S,lI:()=>A,Gj:()=>P,Jd:()=>f,$3:()=>v});var n=i(231486),o=i(56641),a=i(768559),r=i(250059);const s=e=>"string"!=typeof e&&e?e.state:null;var l=i(643913),c=i(547239),d=i(508847),u=i(102500),p=i(43760),h=i(579164),_=i(333155),m=i(397066),g=i(623568),x=i(226198);const f=()=>{window&&window.focus(),document.activeElement&&document.activeElement.blur()},y=({isOffsiteUrl:e,event:t})=>!e&&(t.metaKey||t.ctrlKey),v=({location:e,pin:{id:t,is_downstream_promotion:i,promoter:n},surface:o})=>!(0,g.jL)(i,n)&&(({location:e,pinId:t,surface:i})=>{const n=Boolean(i),o=_.ZF.includes(i),a=e.pathname.includes(t);return n&&!o||a})({location:e,pinId:t,surface:o}),b=e=>{const t=Math.round(1e3*Math.random())+"",i=Math.round(1e3*Math.random())+"";n.t8((0,x.GS)(t),i);const o=`${t}-${i}`,{queryParams:a,url:r}=e;let s={token:o,url:r};if(!a){const{pinId:t,csrId:i,clientTrackingParams:n,auxData:o}=e;s={...s,pin:null!=t?t:void 0,csr:i&&!t?i:void 0,client_tracking_params:n,aux_data:o?JSON.stringify(o):void 0}}a&&(s={...s,...a});return`/offsite/?${(0,l.Z)(s)}`},P=e=>{(0,o.Z)(b(e),!0)},w=async({isMounted:e,pin:t,location:i,spamCheckCallback:n,href:o})=>{var r,s;const l=await(0,u.Z)({check_only:!0,client_tracking_params:(0,a.Z)({boardUrl:null==t||null===(r=t.board)||void 0===r?void 0:r.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:o}).callGet({showError:!1});if(!l.resource_response.error&&e){const e=l.resource_response.data||{},{message:t,redirect_status:i,url:o}=e;n({blocked:["blocked","suspicious","porn"].includes(i),message:t,redirectStatus:i,sanitized_url:o})}},S=({event:e,onHistoryChange:t,href:i,history:n,target:a})=>{const l=(0,r.Z)(i),u=s(i),p=(0,c.Z)(l);p===h.Z.TRUSTED_DIFFERENT_ORIGIN||"blank"===a?(0,o.Z)(l,"blank"===a):n&&p===h.Z.SAME_ORIGIN&&(n.push((0,d.Z)({url:l}),null!=u?u:{}),t&&t({event:e}))},A=({href:e,pinId:t,pin:i,location:n,auxData:o,spamCheck:r,queryParams:s},l,c)=>{"undefined"!=typeof window&&window.Windows?(0,p.Z)({url:e,pinId:t,pin:i,location:n,auxData:o}):i?(({spamCheck:e,auxData:t,location:i,pin:n,pinId:o,href:r},s,l)=>{if(null!=e&&e.blocked)null==l||l(e);else{var c,d;if((0,m.b)({href:r,pinId:o,pin:n,location:i,auxData:t},s))return;P({url:r,pinId:o,csrId:null,clientTrackingParams:(0,a.Z)({boardUrl:null===(c=n.board)||void 0===c?void 0:c.url,callToCreateSourcePinId:n.call_to_create_source_pin_id,location:i,pinId:n.id,pinnerUserName:null===(d=n.pinner)||void 0===d?void 0:d.username,storyPinDataId:n.story_pin_data_id,trackingParams:n.tracking_params,trackingParamsMap:n.tracking_params_map}),auxData:t})}})({spamCheck:r,auxData:o,location:n,pin:i,pinId:t,href:e},l,c):P({url:e,pinId:t,queryParams:s})}},102500:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(412067);function o(e){return n.Z.create("ApiResource",{url:"/v3/offsite/",data:e})}},287072:(e,t,i)=>{i.d(t,{Z:()=>d,p:()=>u});var n=i(667294),o=i(250059),a=i(149230),r=i(407043),s=i(108234),l=i(48714),c=i(276775);function d(e){var t;const{externalData:i,href:d,onHistoryChange:u,target:p}=e,{logContextEvent:h}=(0,r.v)(),[_,m]=(0,n.useState)(null),[g,x]=(0,n.useState)(!1),f=(0,c.useHistory)(),y=(0,c.useLocation)(),v=(0,a.Z)({url:(0,o.Z)(d)}),{showWarning:b}=null!==(t=(0,s.s)())&&void 0!==t?t:{};return(0,n.useEffect)((()=>(x(!0),()=>{x(!1)})),[]),(0,n.useEffect)((()=>{v&&null!=i&&i.pin&&null===_&&g&&(0,l.$3)({location:y,pin:i.pin,surface:i.surface})&&(0,l.iw)({isMounted:g,pin:i.pin,location:y,spamCheckCallback:e=>m(e),href:(0,o.Z)(d)})}),[null==i?void 0:i.pin,null==i?void 0:i.surface,d,v,g,y,_]),({event:e})=>{var t;(0,l.gV)({isOffsiteUrl:v,event:e})||(e.preventDefault(),d&&(v||null!=i&&i.dangerouslyForceOffsiteUrl?(0,l.lI)({auxData:null==i?void 0:i.auxData,href:(0,o.Z)(d),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:y,spamCheck:_},h,b):(0,l.G3)({event:e,href:d,history:f,onHistoryChange:u,target:"blank"===p?"blank":null})))}}const u=({children:e,...t})=>e({handleClick:d(t)})},713930:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(172071);function o(e,t){return new Promise(((i,o)=>{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",o),document.getElementsByTagName("head")[0].appendChild(t)}}))}},725796:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(667294);function o(e){const{animationData:t,autoplay:o,initialSegment:a,loop:r,onComplete:s,onConfigReady:l,onDataFailed:c,onDataReady:d,onDestroy:u,onDOMLoaded:p,onEnterFrame:h,onLoadedImages:_,onLoopComplete:m,onSegmentStart:g}=e,[x,f]=(0,n.useState)(null),[y,v]=(0,n.useState)(!1),b=(0,n.useRef)(null),P=(0,n.useRef)(null),w=async()=>{const e=await i.e(98234).then(i.t.bind(i,98234,23));f(e)};(0,n.useEffect)((()=>{w()}),[]);return(0,n.useEffect)((()=>{var t;if(!P.current||!x)return;null===(t=b.current)||void 0===t||t.destroy();const i={...e,container:P.current};b.current=x.loadAnimation(i),v(!!b.current)}),[P,b,t,x,e]),(0,n.useEffect)((()=>{b.current&&(b.current.loop=!!r,r&&b.current.isPaused&&b.current.play())}),[r]),(0,n.useEffect)((()=>{b.current&&(b.current.autoplay=!!o)}),[o]),(0,n.useEffect)((()=>{b.current&&(a?Array.isArray(a)&&a.length&&((b.current.currentRawFramea[1])&&(b.current.currentRawFrame=a[0]),b.current.setSegment(a[0],a[1])):b.current.resetSegments(!1))}),[a]),(0,n.useEffect)((()=>{const e=[{name:"complete",handler:s},{name:"loopComplete",handler:m},{name:"enterFrame",handler:h},{name:"segmentStart",handler:g},{name:"config_ready",handler:l},{name:"data_ready",handler:d},{name:"data_failed",handler:c},{name:"loaded_images",handler:_},{name:"DOMLoaded",handler:p},{name:"destroy",handler:u}].filter((e=>null!=e.handler));return()=>{if(!e.length)return;e.map((e=>{var t;return null===(t=b.current)||void 0===t||t.addEventListener(e.name,e.handler),()=>{var t;null===(t=b.current)||void 0===t||t.removeEventListener(e.name,e.handler)}})).forEach((e=>e()))}}),[s,m,h,g,l,d,c,_,p,u]),{animationContainerRef:P,play:()=>{var e;null===(e=b.current)||void 0===e||e.play()},stop:()=>{var e;null===(e=b.current)||void 0===e||e.stop()},pause:()=>{var e;null===(e=b.current)||void 0===e||e.pause()},setSpeed:e=>{var t;null===(t=b.current)||void 0===t||t.setSpeed(e)},goToAndStop:(e,t)=>{var i;null===(i=b.current)||void 0===i||i.goToAndStop(e,t)},goToAndPlay:(e,t)=>{var i;null===(i=b.current)||void 0===i||i.goToAndPlay(e,t)},setDirection:e=>{var t;null===(t=b.current)||void 0===t||t.setDirection(e)},playSegments:(e,t)=>{var i;null===(i=b.current)||void 0===i||i.playSegments(e,t)},setSubframe:e=>{var t;null===(t=b.current)||void 0===t||t.setSubframe(e)},getDuration:e=>{var t;return null===(t=b.current)||void 0===t?void 0:t.getDuration(e)},destroy:()=>{var e;null===(e=b.current)||void 0===e||e.destroy()},animationLoaded:y,animationItem:b.current}}},53987:(e,t,i)=>{i.d(t,{wy:()=>O,Fw:()=>ie,ey:()=>ee,dt:()=>f,bo:()=>$,oF:()=>re,bW:()=>x,AX:()=>p,Fy:()=>u,XE:()=>d,am:()=>r,pD:()=>h,OJ:()=>l,LO:()=>me,Gl:()=>le,Y8:()=>P,lY:()=>v,dK:()=>b,PY:()=>S,ah:()=>w,Ni:()=>y,pV:()=>L,L6:()=>z,bb:()=>fe,b0:()=>g,jC:()=>q,O7:()=>ce,LM:()=>K,OK:()=>R,mP:()=>A,C$:()=>k,dr:()=>M,gT:()=>B,Fr:()=>Q,Xn:()=>E,l4:()=>D,b_:()=>ae,J:()=>s,dZ:()=>c,FO:()=>I,re:()=>C,RU:()=>de,Ui:()=>_,KY:()=>m,fY:()=>te,uM:()=>J,x7:()=>ne,rk:()=>ge,cD:()=>Y,dW:()=>xe,Pu:()=>se,En:()=>N,ej:()=>he,OX:()=>V,f1:()=>U,E0:()=>W,gf:()=>j,mY:()=>ue,kY:()=>_e,cY:()=>oe,$Y:()=>H,Zz:()=>T,$V:()=>G,j8:()=>X,Q0:()=>Z,tZ:()=>F,YW:()=>pe});const n=new RegExp(/^\/(?!(?:pin|categories|report|search|password|terms|discover|help|email|topics|explore|pw|login|signup|about|business|source|ideas|today|tv))[\w\d\-]+\/(?!(?:following|followers|_tools|_created|_saved|tried))[\w\d\-]+(?=\/|$)/),o=["/BingSiteAuth.xml","/about","/add-account","/ads","/age_verification","/all","/apple-app-site-association","/apple-app-site-association.p7m","/attribution_source","/bot.html","/branded-pins","/browserbutton","/buy-it","/careers","/categories","/close-account","/content-claiming","/content-safety-portal","/convert-business","/convert-personal","/create-business","/create-linked-business","/create-personal","/creation-inspiration","/creator-onboarding-landing","/csrf_error","/ct.html","/deactivate-account","/deed6a3ef3a44d41bb3ae2bad137db84.txt","/developers","/discover","/edit","/email_verification_error","/engagement","/explore","/favicon.ico","/fb.html","/following","/google_gdn.html","/google_search.html","/googlef5dc42d6e03f6e61.html","/guidedsearch","/help","/holidays-celebrations","/homefeed","/idea-pin-builder","/idea-pin-invite","/ideas","/inbox","/install-shuffles","/invited","/jobs","/live-session","/login","/login_redirect","/logout","/manifest.json","/manifest.webapp","/me","/messages","/mobile","/notifications","/oauth","/app-factory-oauth","/appealed-pin","/oembed.json","/offline.html","/offsite","/opensearch.xml","/parent_contact_info","/pin-builder","/pin-editor","/pin_catalog","/pin_redirect","/pinterest-wellbeing","/pinterest-predicts","/pinterestlens","/pinterestlenstryon","/pinterestwellbeing","/policy","/product-catalogs","/recently-viewed","/report","/robots.txt","/safe-redirect","/search","/settings","/shopping","/signup","/socialmanager","/story-pin-builder","/story-pin-invite","/story_feed","/sw-shell.html","/sw.html","/sw.js","/switch_account","/terms","/today","/topics","/transparent.html","/tv","/unauth-profile","/unlink","/upload-image","/upload-profile-image","/verified","/verify","/videos","/web-mentorship","/welcome","/windows-app-web-link","/your-shop"];var a=i(276775);const r=e=>n.test(e.pathname),s=(e,t)=>{const{pathname:i}=e;return r(e)&&i.match(t||"?")},l=e=>{const{pathname:t}=e;return!!(0,a.matchPath)(t,{path:"/:username/:boardId/:boardSectionId",exact:!0})&&!t.match(/^\/.+\/.+\/(_tools)/i)},c=(e,t)=>{const{pathname:i}=e;return l(e)&&i.match(t||"?")},d=e=>!!(0,a.matchPath)(e.pathname,{path:"/board/:id/edit",exact:!0}),u=e=>!!(0,a.matchPath)(e.pathname,{path:"/board/:id/edit/collaborators",exact:!0}),p=e=>!!(0,a.matchPath)(e.pathname,{path:"/board/:id/edit/add_collaborators",exact:!0}),h=e=>!!(0,a.matchPath)(e.pathname,{path:"/boardsection/:id/edit",exact:!0}),_=e=>!!(0,a.matchPath)(e.pathname,{path:"/pin/:id/comments",exact:!0}),m=e=>!!(0,a.matchPath)(e.pathname,{path:"/pin/:id/edit",exact:!0}),g=e=>!!(0,a.matchPath)(e.pathname,{path:"/conversation/:id",exact:!0}),x=e=>!!(0,a.matchPath)(e.pathname,{path:"/appealed-pin/",exact:!0}),f=e=>e.pathname.startsWith("/age-appeal"),y=e=>e.pathname.startsWith("/business/"),v=e=>!!(0,a.matchPath)(e.pathname,{path:"/business/business-access/:userBizId/dashboard",exact:!0}),b=e=>!!(0,a.matchPath)(e.pathname,{path:"/business/business-access/:userBizId/hierarchy",exact:!0}),P=e=>!!(0,a.matchPath)(e.pathname,{path:"/business/business-access/:userBizId/asset-groups",exact:!0}),w=e=>!!(0,a.matchPath)(e.pathname,{path:"/business/business-access/:userBizId/members",exact:!0}),S=e=>e.pathname.startsWith("/business/invite/"),A=e=>!!(0,a.matchPath)(e.pathname,{path:"/pin/:id/visual-search/",exact:!0}),k=e=>"/"===e.pathname,E=e=>e.pathname.startsWith("/login"),T=e=>!!(0,a.matchPath)(e.pathname,{path:"/today",exact:!0}),C=e=>e.pathname.startsWith("/password/reset")||!!(0,a.matchPath)(e.pathname,{path:"/pw/:username",exact:!0}),I=e=>e.pathname.startsWith("/secure/panic"),j=e=>e.pathname.startsWith("/signup"),R=e=>e.pathname.startsWith("/email/subscription"),D=e=>e.pathname.startsWith("/notifications/"),z=e=>!!(0,a.matchPath)(e.pathname,{path:"/pin/:id",exact:!0}),O=e=>z(e)&&void 0===e.state,L=e=>e.pathname.startsWith("/pin_redirect"),N=e=>e.pathname.startsWith("/search"),B=e=>!!(0,a.matchPath)(e.pathname,{path:"/ideas",exact:!0}),M=e=>!!(0,a.matchPath)(e.pathname,{path:"/ideas/:interest/:id",exact:!0}),Z=e=>!!(0,a.matchPath)(e.pathname,{path:"/videos/:category/:id",exact:!0}),F=e=>e.pathname.startsWith("/videos"),U=e=>!!(0,a.matchPath)(e.pathname,{path:"/shopping/",exact:!0}),V=e=>!!(0,a.matchPath)(e.pathname,{path:"/shopping/:category/:id",exact:!0}),G=e=>e.pathname.startsWith("/topics"),H=e=>e.pathname.startsWith("/today/article/")||e.pathname.startsWith("/today/best/")||e.pathname.startsWith("/today/trending/"),W=e=>e.pathname.startsWith("/today/shop/"),$=e=>T(e)||H(e)||e.pathname.startsWith("/today/popular/"),K=e=>/^\/discover\/article\/\S+\/?/i.test(e.pathname),q=e=>e.pathname.startsWith("/pin/create/"),Y=e=>!!(0,a.matchPath)(e.pathname,{path:"/:username/",exact:!0})&&!o.includes(e.pathname.replace(/\/$/,"")),X=e=>e.pathname.startsWith("/unauth-profile"),J=e=>e.pathname.startsWith("/pin/"),Q=e=>"#imgViewer"===e.hash,ee=e=>new RegExp("invite_code").test(e.search),te=e=>!!(0,a.matchPath)(e.pathname,{path:"/pin/:id",exact:!1})&&(e.pathname.includes("/sent/")||e.pathname.includes("/feedback/")),ie=e=>ee(e)&&((te(e)?"pin":r(e)&&"board")||Y(e)&&"profile")||null,ne=e=>e.pathname.includes("/repin/x"),oe=e=>e.pathname.startsWith("/_/storyboard"),ae=e=>e.pathname.startsWith("/oauth"),re=e=>e.pathname.startsWith("/app-factory-oauth"),se=e=>e.pathname.includes("/scheduled-pin/"),le=e=>e.pathname.startsWith("/business/convert"),ce=e=>e.pathname.startsWith("/pin-editor"),de=e=>e.pathname.startsWith("/pin-builder"),ue=e=>e.pathname.startsWith("/story-pin-builder")||e.pathname.startsWith("/idea-pin-builder"),pe=e=>e.pathname.startsWith("/advertiser/quick-promote"),he=e=>e.pathname.startsWith("/settings"),_e=e=>e.pathname.startsWith("/story-pin-invite")||e.pathname.startsWith("/idea-pin-invite"),me=e=>void 0!==e.pathname&&e.pathname.startsWith("/business/business-access/")&&e.pathname.includes("/dashboard/"),ge=e=>void 0!==e.pathname&&e.pathname.startsWith("/tv/studio"),xe=e=>void 0!==e.pathname&&e.pathname.startsWith("/business/schedule_call/"),fe=e=>void 0!==e.pathname&&e.pathname.startsWith("/business/commerce-integrations/")},620707:(e,t,i)=>{function n(e,t){if("object"==typeof e&&"object"==typeof t){const i=Object.keys(e),n=Object.keys(t);return i.length===n.length&&i.every((i=>e[i]===t[i]))}return e===t}i.d(t,{Ak:()=>n,_Y:()=>o,qe:()=>s,xZ:()=>r});const o=(e,t)=>e.length===t.length&&e.every(((e,i)=>n(e,t[i]))),a=(e,t)=>e.length===t.length&&e.every(((e,i)=>e===t[i])),r=(e,t=a)=>i=>{const n=[];return function(...o){const a=this,r=n.find((e=>e.context===a&&t(e.args,o)));if(r)return r.result;const s={context:a,args:o,result:i.apply(this,o)};return n.push(s),e&&n.length>e&&n.shift(),s.result}},s=r(1);r()},249647:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(844753);function o(e,t=!1){return i=>{if(!(0,n.Z)(i))return t&&Array.isArray(i)?i.map(o(e,t)):i;const a={};return Object.keys(i).forEach((r=>{const s=e(i[r],r);(0,n.Z)(i[r])||t&&Array.isArray(i[r])?a[s]=o(e,t)(i[r]):a[s]=i[r]})),a}}function a(e,t=!1){const i=(t,i)=>e(i);return e=>o(i,t)(e)}},914671:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(594881);const o={windowIsInFocus:!0,initFocus(){const e=function(){this.windowIsInFocus=!1},t=function(){this.windowIsInFocus=!0,(0,n.Z)()};"undefined"!=typeof window&&(window.addEventListener("focus",t),window.addEventListener("blur",e))}}},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:()=>r});const o=new class{constructor(){n(this,"onResumeListeners",[]),n(this,"onPauseListeners",[]),n(this,"inExp",!1),n(this,"windowInFocus",!0)}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.windowInFocus?0:void 0}},a=e=>{if(e.isHidden){const{reason:t}=e;o.windowInFocus=!1,o.onPauseListeners.forEach((e=>e(t)))}else o.windowInFocus=!0,o.onResumeListeners.forEach((e=>e()))};setTimeout((()=>{window.addEventListener("beforeunload",(()=>a({isHidden:!0,reason:"beforeunload"}))),window.addEventListener("focus",(()=>a({isHidden:!1}))),window.addEventListener("blur",(()=>a({isHidden:!0,reason:"blur"}))),window.addEventListener("pageshow",(()=>a({isHidden:!1}))),window.addEventListener("pagehide",(()=>a({isHidden:!0,reason:"pagehide"}))),void 0!==document.hidden?document.addEventListener("visibilitychange",(()=>a(document.hidden?{isHidden:!0,reason:"visibilitychange"}:{isHidden:!1})),!1):void 0!==document.webkitHidden&&document.addEventListener("webkitvisibilitychange",(()=>a(document.webkitHidden?{isHidden:!0,reason:"visibilitychange"}:{isHidden:!1})),!1)}),0);const r=o},394951:(e,t,i)=>{i.d(t,{$A:()=>n,$k:()=>a,CP:()=>S,Cr:()=>w,EB:()=>p,H6:()=>P,MO:()=>A,N8:()=>v,NS:()=>g,Oq:()=>c,RZ:()=>b,Te:()=>E,WO:()=>u,Zq:()=>r,ai:()=>s,bd:()=>f,cJ:()=>_,dy:()=>l,fX:()=>m,jP:()=>o,lW:()=>h,qX:()=>k,u1:()=>x,wF:()=>d,y5:()=>y});const n=Object.freeze({IMPRESSION:"IMPRESSION",ENGAGEMENT:"ENGAGEMENT",PIN_CLICK:"PIN_CLICK",CLICKTHROUGH:"CLICKTHROUGH",OUTBOUND_CLICK:"OUTBOUND_CLICK",SAVE:"SAVE",ENGAGEMENT_RATE:"ENGAGEMENT_RATE",PIN_CLICK_RATE:"PIN_CLICK_RATE",OUTBOUND_CLICK_RATE:"OUTBOUND_CLICK_RATE",SAVE_RATE:"SAVE_RATE"}),o=Object.freeze({RANGE_45_49:"45-49",RANGE_45_54:"45-54",RANGE_50_54:"50-54"}),a=Object.freeze({PROFILE_VISIT:"PROFILE_VISIT",USER_FOLLOW:"USER_FOLLOW",OUTBOUND_CLICK:"OUTBOUND_CLICK"}),r=Object.freeze({IMPRESSION:"IMPRESSION",OUTBOUND_CLICK:"OUTBOUND_CLICK",SAVE:"SAVE",VIDEO_MRC_VIEW:"VIDEO_MRC_VIEW",VIDEO_AVG_WATCH_TIME:"VIDEO_AVG_WATCH_TIME",VIDEO_V50_WATCH_TIME:"VIDEO_V50_WATCH_TIME",QUARTILE_95_PERCENT_VIEW:"QUARTILE_95_PERCENT_VIEW",VIDEO_10S_VIEW:"VIDEO_10S_VIEW"}),s=Object.freeze({TOTAL_AUDIENCE:"TOTAL_AUDIENCE",ENGAGERS:"ENGAGERS",MONTHLY_TOTAL_AUDIENCE:"MONTHLY_TOTAL_AUDIENCE",MONTHLY_ENGAGERS:"MONTHLY_ENGAGERS"}),l=[r.VIDEO_MRC_VIEW,r.VIDEO_V50_WATCH_TIME],c=Object.freeze({contentType:"contentType",deviceType:"deviceType",sourceType:"sourceType"}),d=Object.freeze({ORGANIC:"organic",PAID:"paid",ALL:"all"}),u=Object.freeze({MOBILE:"mobile",TABLET:"tablet",WEB:"web",ALL:"all"}),p=Object.freeze({ALL:"all",PROFILE:"profile",NON_PROFILE:"nonProfile"}),h=new Date(Date.UTC(2021,0,21)),_=new Date(Date.UTC(2021,0,20)),m=new Date(Date.UTC(2021,2,8)),g=new Date(Date.UTC(2022,0,1)),x=Object.freeze({red:"#E60023",white:"#FFF",lightGray:"#EFEFEF",gray:"#8E8E8E",darkGray:"#111111",green:"#0FA573",pine:"#005f3e",olive:"#364A4C",blue:"#0074e8",navy:"#004B91",midnight:"#133A5E",purple:"#B469EB",orchid:"#8046A5",eggplant:"#5B2677",maroon:"#6E0F3C",watermelon:"#F13535",orange:"#E3780C"}),f=(Object.freeze({error:"#cc0000",success:"#005f3e",default:"#111111",subtle:"#767676"}),Object.freeze({PROCESSING:"PROCESSING",READY:"READY",NO_REALTIME:"NO_REALTIME",BEFORE_BUSINESS_CREATED:"BEFORE_BUSINESS_CREATED",BEFORE_DATA_RETENTION_PERIOD:"BEFORE_DATA_RETENTION_PERIOD",BEFORE_METRIC_START_DATE:"BEFORE_METRIC_START_DATE",BEFORE_CORE_METRIC_START_DATE:"BEFORE_CORE_METRIC_START_DATE",BEFORE_PIN_FORMAT_METRIC_START_DATE:"BEFORE_PIN_FORMAT_METRIC_START_DATE",BEFORE_AUDIENCE_METRIC_START_DATE:"BEFORE_AUDIENCE_METRIC_START_DATE",BEFORE_AUDIENCE_MONTHLY_METRIC_START_DATE:"BEFORE_AUDIENCE_MONTHLY_METRIC_START_DATE",BEFORE_VIDEO_METRIC_START_DATE:"BEFORE_VIDEO_METRIC_START_DATE",BEFORE_CONVERSION_METRIC_START_DATE:"BEFORE_CONVERSION_METRIC_START_DATE",BEFORE_PUBLISHED_METRIC_START_DATE:"BEFORE_PUBLISHED_METRIC_START_DATE",BEFORE_ASSIST_METRIC_START_DATE:"BEFORE_ASSIST_METRIC_START_DATE",BEFORE_DEMOGRAPHIC_FILTERS_START_DATE:"BEFORE_DEMOGRAPHIC_FILTERS_START_DATE",PURCHASERS_METRIC_SMALLER_THAN_THRESHOLD:"PURCHASERS_METRIC_SMALLER_THAN_THRESHOLD",IN_BAD_TAG_DATE:"IN_BAD_TAG_DATE",BEFORE_ACCOUNT_CLAIMED:"BEFORE_ACCOUNT_CLAIMED",BEFORE_PIN_CREATED:"BEFORE_PIN_CREATED",ESTIMATE:"ESTIMATE",AUDIENCE_SEGMENT_SMALLER_THAN_THRESHOLD:"AUDIENCE_SEGMENT_SMALLER_THAN_THRESHOLD",AUDIENCE_TOTAL_SMALLER_THAN_THRESHOLD:"AUDIENCE_TOTAL_SMALLER_THAN_THRESHOLD",BEFORE_PRODUCT_GROUP_FILTER_START_DATE:"BEFORE_PRODUCT_GROUP_FILTER_START_DATE",BEFORE_INGESTION_SOURCE_FILTER_START_DATE:"BEFORE_INGESTION_SOURCE_FILTER_START_DATE"})),y=[n.IMPRESSION,n.PIN_CLICK,n.SAVE,n.OUTBOUND_CLICK,a.PROFILE_VISIT,a.USER_FOLLOW],v=[r.VIDEO_MRC_VIEW,r.VIDEO_10S_VIEW,r.QUARTILE_95_PERCENT_VIEW,r.VIDEO_AVG_WATCH_TIME,r.VIDEO_V50_WATCH_TIME],b=Object.freeze({SOURCE:"SOURCE",CONTENT:"CONTENT_TYPE",DEVICE:"APP_TYPE",OWNED_CONTENT:"OWNED_CONTENT",PIN_FORMAT:"PIN_FORMAT",CONVERSION_TYPE:"CONVERSION_TYPE",ATTRIBUTION_EVENT:"ATTRIBUTION_EVENT",GENDER:"GENDER",AGE:"AGE",NO_SPLIT:"NO_SPLIT"}),P=["midnight"],w=["orange","orchid","green","watermelon","blue","purple","pine","maroon"],S={impression:"impression",pin_click:"pin_click",save:"save",outbound_click:"outbound_click",profile_visit:"profile_visit",user_follow:"user_follow",video_views:"video_views",video_average_time:"video_average_time",video_total_time:"video_total_time",video_p95_views:"video_p95_views"},A=Object.freeze({last24h:"last24h",last7d:"last7d",last14d:"last14d",last21d:"last21d",last30d:"last30d",last60d:"last60d",last90d:"last90d",last180d:"last180d",lifetime:"lifetime",custom:"custom"}),k=Object.freeze({GMV:"GMV",GMV_ADVERTISER_CURRENCY:"GMV_ADVERTISER_CURRENCY",TOTAL_PURCHASES:"TOTAL_PURCHASES",AVG_ORDER_VALUE:"AVG_ORDER_VALUE",UNIQUE_PURCHASERS:"UNIQUE_PURCHASERS",PAGE_VISIT:"PAGE_VISIT",ADD_TO_CART:"ADD_TO_CART",IMPRESSION:"IMPRESSION",CLICKTHROUGH:"CLICKTHROUGH",SAVE:"SAVE",ENGAGEMENT:"ENGAGEMENT",PAGE_VISITORS:"PAGE_VISITORS",ADD_TO_CARTERS:"ADD_TO_CARTERS",PIN_CLICK:"PIN_CLICK"}),E=[A.last24h]},64446:(e,t,i)=>{i.d(t,{Z:()=>p});var n=i(605028);var o=i(341732),a=i(81226),r=i(898781),s=i(883119),l=i(785893);const c={borderRadius:"18px",fontSize:"10px",fontWeight:"600",height:"24px",lineHeight:"24px",padding:"0 6px"},d={borderRadius:"18px",fontSize:"10px",fontWeight:"600",lineHeight:"24px",padding:"4px 8px"};function u({backgroundColor:e,identifier:t,size:i="sm"}){const n="pine"===e?"#0FA573":"#fff",o="sm"===i?c:d;return(0,l.jsx)(s.xu,{display:"inlineBlock",dangerouslySetInlineStyle:{__style:{...o,backgroundColor:e?n:"rgba(255, 255, 255, 0.8)",color:"pine"===e?"#fff":"#111"}},"data-test-id":"PinTypeIdentifier",children:t})}function p({pin:e,size:t="sm",allowProductCarousel:i,allowShoppingPriceIndicator:c,shoppingLabelColor:d}){const p=(0,r.ZP)(),h=(0,n.Z)(e);if(h.isGif)return u({identifier:"GIF",size:t});if(h.isStoryPin){const{page_count:i=0,total_video_duration:n=0}=e.story_pin_data||{};let o=i.toString();if(n>0)return o=(0,a.Z)(n),u({identifier:o,size:t});return u({identifier:(0,l.jsxs)(s.kC,{alignItems:"center",justifyContent:"between",children:[(0,l.jsx)(s.xu,{marginEnd:1,display:"flex",alignItems:"center",children:(0,l.jsx)(s.JO,{accessibilityLabel:p._('Idea Pin', 'pin.pinTypeIdentifier.ideaPinIconAccessibilityLabel', 'identifier that shows the pin type'),inline:!0,icon:"idea-pin",color:"default",size:"sm"===t?12:16})}),(0,l.jsx)(s.xv,{inline:!0,size:"100",weight:"bold",children:o})]}),size:t})}if(h.isVideo){const i=e.videos,{duration:n=0}=i&&i.video_list&&i.video_list[Object.keys(i.video_list)[0]]||{};return u({identifier:(0,a.Z)(n),size:t})}if(h.isProduct){const i=e.rich_summary&&e.rich_summary.products&&e.rich_summary.products[0]&&e.rich_summary.products[0].offer_summary;if(c){const e=i&&(i.price||i.max_price);return e?u({identifier:e,size:t}):null}if(d){const i=function(e){var t;return((((null===(t=e.rich_summary)||void 0===t?void 0:t.products)||[])[0]||{}).label_info||{}).labels||[]}(e)[0];return i?u({identifier:i,backgroundColor:d,size:t}):null}return null}if(i){const i=e.product_pin_data&&e.product_pin_data.items&&e.product_pin_data.items[0],n=i&&(0,o.Z)(e.images,i.additional_images,e.carousel_data&&e.carousel_data.index)||{},{carousel_slots:a=[],index:r=0}=n;return u({identifier:`${r+1}/${a.length}`,size:t})}if(h.isCarousel){const i=e.carousel_data||{},{carousel_slots:n=[],index:o=0}=i;return u({identifier:`${o+1}/${n.length}`,size:t})}return null}},55275:(e,t,i)=>{i.d(t,{P:()=>r,t:()=>s});var n=i(412067);const o=()=>{};const a={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()))}},r=["complaint","relatedPinHide","unrelatedSearchPin","promotedComplaint","newsHubPinHide","unfollowBoard","unfollowPinner","unfollowTopic"];function s(e,t,i=o){const n=e?a[e]:null;return n?n(t,i):i()}},680046:(e,t,i)=>{i.d(t,{EF:()=>m,Iv:()=>d,Ud:()=>c,XZ:()=>h,fJ:()=>l,hP:()=>s,nb:()=>_,oK:()=>u,yl:()=>p});var n=i(55275),o=i(760372),a=i(349700);const r=e=>e.length>32?`${e.substring(0,32).trim()}...`:e;function s({boardFollowedByMe:e,feedbackType:t,viewParameter:i,promotion:n,recommendationReason:o,pinnerFollowedByMe:a}){if(n&&!n.isDownstreamPromotion)return"promoted";if(t)return t;if(o){if("FOLLOWED_INTEREST"===o.reason)return"topic";if("FOLLOWING_FEED"!==o.reason&&"RECENT_FOLLOWED_BOARD"!==o.reason)return o.hasBoard?"pfyBoard":"pfy"}if(e||a)return"followed";switch(i){case 140:case 144:case 141:case 145:case 139:case 3173:return"related";case 3082:return"newsHub";case 92:default:return"default"}}function l({feedbackData:e,feedbackType:t,pinId:i,recommendationReasonId:n,pinFeedbackType:o,complaintReason:a,throughId:r,throughProperties:s,clientTrackingParams:l}){switch(t){case"search":return{action:"unrelatedSearchPin",actionOptions:{query:null==e?void 0:e.query,pin_id:i}};case"related":return{action:"relatedPinHide",actionOptions:{pin:i}};case"newsHub":return{action:"newsHubPinHide",actionOptions:{pinId:i,newsId:null==e?void 0:e.newsId}};default:const c="promoted"===t;return{action:c?"promotedComplaint":"complaint",actionOptions:{complaint_reason:a||0,pin_id:i,...n?{recommendation_reason_id:n}:{},feedback_type:o||1,promoted:c,...r?{through_id:r}:{},...s?{through_properties:s}:{},...l?{client_tracking_params:l}:{}}}}}function c({feedback:e,i18n:t,makeNavigateLink:i}){var n,o,s,l,c,d,u,p;switch(e.type){case"pfy":return t._('This Pin was inspired by your recent activity', 'Pin feedback reason', 'Pin feedback reason');case"pfyBoard":const{recommendationReasonBoard:h}=e;return h?(0,a.nk)(t._('This Pin was inspired by your board {{ boardLink }}', 'Pin feedback - inspired by your board', 'Pin feedback - inspired by your board'),{boardLink:i("navigation",h.url,h.name)}):null;case"topic":const{sourceInterest:_}=e;return _?(0,a.nk)(t._('This Pin was inspired by {{ formattedTopic }}', 'Pin feedback', 'Pin feedback'),{formattedTopic:i("topicUrl",`/topics/${_.url_name}`,_.name)}):null;case"followed":const{followed:m}=e;return"pinner"===m.type?(0,a.nk)(t._('This Pin is from {{ formattedPinner }}, a profile you follow', 'Pin feedback', 'Pin feedback'),{formattedPinner:i("pinnerUrl",`/${null!==(n=null===(o=m.pinner)||void 0===o?void 0:o.username)&&void 0!==n?n:""}`,r(null!==(s=null===(l=m.pinner)||void 0===l?void 0:l.full_name)&&void 0!==s?s:""))}):(0,a.nk)(t._('This Pin is from {{ formattedBoard }}, a board you follow', 'Pin feedback', 'Pin feedback'),{formattedBoard:i("boardUrl",null!==(c=null===(d=m.board)||void 0===d?void 0:d.url)&&void 0!==c?c:"",r(null!==(u=null===(p=m.board)||void 0===p?void 0:p.name)&&void 0!==u?u:""))});case"promoted":if(e.promoter){const{full_name:n,username:o}=e.promoter,r=i("promotedLink",o?"/"+o+"/":"/",n);return(0,a.nk)(t._('{{ promoterLink }} paid to have this Pin show up where\n you\u2019d be more likely to notice it', 'Pin feedback', 'Pin feedback'),{promoterLink:r})}return t._('This ad was personalized for you using info from one of our partners', 'Pin feedback', 'Pin feedback');default:return null}}function d({sourceInterest:e,i18n:t,makeNavigateLink:i}){var n,r;return{action:"unfollowTopic",actionOptions:{interest_id:e.id,interest_list:o.X},title:"",subTitle:(0,a.nk)(t._('We\u2019ll show you less Pins from {{ formattedTopic }} in the future.', 'pin.contextualMenu.feedback.unfollowTopic.subtitle', 'Confirmation text after unfollowing a topic'),{formattedTopic:i("topicUrl",`/topics/${null!==(n=e.url_name)&&void 0!==n?n:""}`,null!==(r=e.name)&&void 0!==r?r:"",!0)})}}function u({boardId:e,display:t,i18n:i,makeNavigateLink:n}){var o,r,s,l;return{action:"unfollowBoard",actionOptions:{board_id:e},title:"",subTitle:"pinner"===t.type?(0,a.nk)(i._('You unfollowed {{ formattedPinner }} and won\u2019t see Pins they save anymore.', 'Confirmation text after unfollowing a user', 'Confirmation text after unfollowing a user'),{formattedPinner:n("pinnerUrl",`/${null!==(o=t.data.username)&&void 0!==o?o:""}`,null!==(r=t.data.full_name)&&void 0!==r?r:"",!0)}):(0,a.nk)(i._('You unfollowed the board {{ formattedBoard }} and won\u2019t see Pins saved to it anymore.', 'Confirmation text after unfollowing a board', 'Confirmation text after unfollowing a board'),{formattedBoard:n("boardUrl",null!==(s=t.data.url)&&void 0!==s?s:"",null!==(l=t.data.name)&&void 0!==l?l:"",!0)})}}function p(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 h(e){return null==e?void 0:e.through_properties}function _(e){switch(e){case"promoted":return 60;case"followed":case"topic":return 100;case"pfyBoard":case"pfy":return 58}}function m(e,t,i,o,a,r,s){return()=>{const l={...e,undo:!0};let c=t;"unfollowPinner"===t?c="followPinner":"unfollowBoard"===t?c="followBoard":"unfollowTopic"===t&&(c="followTopic"),(0,n.t)(c,l),r(i),s({event_type:101,component:0,element:11181,view_type:o,view_parameter:a})}}},205202:(e,t,i)=>{function n(e,t){return e&&e[t]&&e[t].url}i.d(t,{Z:()=>n})},752802:(e,t,i)=>{i.d(t,{Z:()=>o});const n=["564x","736x","orig","474x","236x"],o=({images:e={},resolutionPreferences:t=n})=>{for(const i of t)if(e[i]&&e[i].url)return e[i];return null}},743217:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(752802),o=i(622305),a=i(802933);function r(e){const{images:t={}}=(0,o.Z)((0,a.Z)({pin:e}))||{},i=(0,n.Z)({images:t});return{url:(null==i?void 0:i.url)||"",height:(null==i?void 0:i.height)||1,width:(null==i?void 0:i.width)||1}}},305791:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(752802),o=i(743217);function a(e,t,i=564){return e>i&&(t*=i/e,e=i),{width:e,height:t}}var r=i(835209);const s=({pin:e,maxWidth:t,imageSignature:i})=>{var s,l;const{image_signature:c}=e;if(!i||""===i||c===i){const{width:i,height:n,url:r}=(0,o.Z)(e);return{...a(i,n,t),url:r}}const d=(0,r.Z)({richPinData:e.rich_metadata||e.rich_summary}),u=[...(null==d||null===(s=d.variant_set)||void 0===s||null===(l=s.variants)||void 0===l?void 0:l.flatMap((e=>e.additional_images||[])))||[],...(null==d?void 0:d.additional_images)||[]],{canonical_images:p}=u.find((({image_signature:e})=>i===e))||{},{height:h=1,width:_=1,url:m=""}=(0,n.Z)({images:p||{}})||{};return{...a(_,h,t),url:m}}},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 o=i;if(!o)return"";if(n){const e="474x"===n&&o["474x"]||"236x"===n&&o["236x"]||o["736x"];if(e&&e.url)return e.url}const a=Object.keys(o).map((e=>{try{const t=e.split("x")[0];return Number.isNaN(Number(t))?(o[t]=o[e],t):e}catch(t){return""}}));a.sort();const r=a.pop();return o[r]&&o[r].url||""}i.d(t,{Z:()=>n})},605028:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(687551),o=i(623568);function a(e){const{access:t,attribution:i,embed:a,is_eligible_for_web_closeup:r,promoted_is_lead_ad:s,rich_summary:l,sponsorship:c,story_pin_data_id:d,videos:u}=e,p={isLeadPin:!1,isCarousel:!1,isGif:!1,isOneTap:!1,isOwnPin:!1,isProduct:!1,isPromoted:!1,isRecipe:!1,isSponsored:!1,isStoryPin:!1,isVideo:!1};s&&(p.isLeadPin=!0),(0,n.Z)(e)&&(p.isCarousel=!0),r&&(p.isOneTap=!0),(0,o.iR)(u)&&(p.isVideo=!0);const h=a||i&&i.embed||null;return h&&"gif"===h.type&&(p.isGif=!0),l&&"product"===l.type_name&&(p.isProduct=!0),l&&"recipe"===l.type_name&&(p.isRecipe=!0),e.promoter&&!e.is_downstream_promotion&&(p.isPromoted=!0),(t||[]).includes("write")&&(p.isOwnPin=!0),d&&(p.isStoryPin=!0),c&&(p.isSponsored=!0),p}},164985:(e,t,i)=>{i.d(t,{Z:()=>n});function n(){let e=800,t=400;return"undefined"!=typeof window&&(e=window.innerHeight,t=window.innerWidth),{windowHeight:e,windowWidth:t}}},818398:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(307061);const o=e=>{const t=(e||[]).reduce(((e,t)=>t.name?e.concat({name:t.name}):e),[]);return t.length>0?t:null},a=(0,n.Z)((e=>{const{richMetadata:t}=e,{article:i}=t,{name:n,description:a,authors:r,date_published:s}=i||{};return n?{...e,article:{name:n,description:a,authors:o(r),datePublished:s&&new Date(s)||void 0}}:null}))},789605:(e,t,i)=>{i.d(t,{Z:()=>n});const n=(0,i(307061).Z)((e=>{const{attribution:t}=e.pin,{author_url:i,url:n,author_name:o,title:a,provider_name:r,cc_url:s,embed:l}=t||{};return!!n&&!!r||o?{...e,attribution:{providerUrl:n,providerName:r,title:a,authorUrl:i,authorName:o,ccUrl:s,embed:l}}:null}))},238873:(e,t,i)=>{i.d(t,{Z:()=>n});const n=(0,i(307061).Z)((e=>{const{categorizedIngredients:t}=e.recipe;return t&&t.length>0?{...e,categorizedIngredients:t}:null}))},445868:(e,t,i)=>{i.d(t,{Z:()=>n});const n=(0,i(307061).Z)((e=>{const{embed:t}=e.pin,{type:i,src:n,subtype:o}=t||{};return n?{...e,embed:{type:i,src:n,subtype:o}}:null}))},74155:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(307061),o=i(499337),a=i(432730);const r=(0,n.Z)((e=>{const{products:t=null}=(0,a.Z)(e)&&(0,o.Z)((0,a.Z)(e))||{},{pin:i}=e,{tracked_link:n,link:r,method:s}=i,l=n||r,c=l&&("catalog_bulk_create"===s||!!t)?decodeURIComponent(l):l;return c?{...e,link:c}:null}))},499337:(e,t,i)=>{i.d(t,{Z:()=>n});const n=(0,i(307061).Z)((e=>{const{pin:t,richMetadata:i}=e,{buyable_availability:n}=t,{products:o}=i,a=Array.isArray(o)?o.map((e=>{const{name:t,offer_summary:i}=e,{in_stock:o,min_price:a,max_price:r,price:s}=i||{};let l=null;return void 0!==a&&void 0!==r?l=`${a} - ${r}`:void 0!==s&&(l=`${s}`),t?{name:t,outOfStock:!1===n||!1===o,priceText:l}:null})).filter((e=>null!==e)):[];return a.length>0?{...e,products:{first:a[0],rest:a.slice(1)}}:null}))},307061:(e,t,i)=>{i.d(t,{Z:()=>n});const n=function(e){return function(t){return null!=t?e(t):null}}},762615:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(307061),o=i(951108);const a=e=>{const{h:t,m:i}=e||{},n={hours:t||0,minutes:i||0};return void 0!==t||void 0!==i?{h:t,m:i,time:n,isoDuration:(0,o.Z)(n)}:null},r=(0,n.Z)((e=>{const{richMetadata:t}=e,{recipe:i}=t,{name:n,categorized_ingredients:o,diets:r,from_aggregated_data:s,cook_times:l,servings_summary:c}=i||{},{total:d,cook:u,prep:p}=l||{},{summary:h}=c||{},_=a(p),m=a(u),g=a(d);return n?{...e,recipe:{name:n,categorizedIngredients:o,diets:r,fromAggregatedData:s,prepTime:_,cookTime:m,totalTime:g,servingSummary:h}}:null}))},432730:(e,t,i)=>{i.d(t,{Z:()=>n});const n=(0,i(307061).Z)((e=>{const{rich_metadata:t}=e.pin;return t?{...e,richMetadata:t}:null}))},533439:(e,t,i)=>{i.d(t,{Z:()=>n});const n=(0,i(307061).Z)((e=>{const{richMetadata:t}=e,{tutorial:i}=t,{name:n,description:o,from_aggregated_data:a}=i||{};return i&&n?{...e,tutorial:{name:n,description:o,fromAggregatedData:a}}:null}))},674915:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(307061),o=i(736688);const a=(0,n.Z)((e=>{const{videos:t}=e.pin,{id:i,video_list:n={}}=t||{},{V_720P:a,V_HLSV4:r,V_HLSV3_MOBILE:s}=n,l=(0,o.V3)(r),c=(0,o.V3)(s),d=(0,o.V3)(a),u=d||l||c;return i&&u?{...e,video:{id:i,hasVideo:u,mp4:d||void 0,hls:l||void 0,hlsv3:c||void 0}}:null}))},825490:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(307061),o=i(445868),a=i(802933),r=i(674915);const s=(0,n.Z)((e=>{const{video:t}=(0,r.Z)((0,a.Z)(e))||{},{embed:i}=(0,o.Z)((0,a.Z)(e))||{},n=!(!t||!(e=>{var t,i;const{hlsv3:n,hls:o}=e,a=n||o;return Boolean(!!a&&(null!==(t=a.width)&&void 0!==t?t:0)>(null!==(i=a.height)&&void 0!==i?i:0))})(t))||!(!i||!i.src||"pinstory"===i.subtype||"gif"===i.type);return{...e,isWideVideo:n}}))},976071:(e,t,i)=>{function n(e){return Boolean(e.promoted_is_removable)}i.d(t,{Z:()=>n})},343591:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(802933),o=i(674915);const a=e=>{var t,i,a,r;const{video:s={}}=(0,o.Z)((0,n.Z)({pin:e}))||{},l=!!e.story_pin_data&&(null===(t=e.story_pin_data)||void 0===t||null===(i=t.pages)||void 0===i?void 0:i.length)>0&&(null===(a=e.story_pin_data)||void 0===a?void 0:a.pages[0])||{},c=!(null==l||null===(r=l.blocks)||void 0===r||!r.find((e=>!!e.video)));return!!s.hasVideo||c}},623568:(e,t,i)=>{i.d(t,{Js:()=>r,NK:()=>x,Nc:()=>f,VX:()=>s,Zt:()=>m,_J:()=>d,_S:()=>y,cL:()=>h,dZ:()=>P,hb:()=>g,hy:()=>c,iR:()=>a,jL:()=>l,o:()=>v,oN:()=>n,pU:()=>b,rM:()=>_,sV:()=>u,sY:()=>p});const n=5e3,o=["Uploaded by user"],a=e=>!!e&&!!e.video_list,r=(e,t)=>{let i=e&&e.url?e.url.split("/")[1]:"";return t&&t.full_name&&(i=t.full_name),i},s=(e,t)=>t&&t.products&&t.products.length>0||(null==e?void 0:e.products)&&e.products.length>0||!1,l=(e,t)=>!!t&&!e,c=e=>!!e,d=e=>!!e.video_status&&5!==e.video_status,u=e=>["email","messages","deep_linking"].includes(e),p=e=>!!e&&"gif"===e,h=({embedSrc:e,embedSubtype:t,embedType:i})=>!!e&&!p(i)&&!(e=>"pinstory"===e)(t),_=({link:e,mobileLink:t,trackedLink:i})=>!t&&!i&&!e,m=({link:e,mobileLink:t,origImageUrl:i,trackedLink:n})=>t||n||e||i||"",g=({isStoryPin:e,isVideoPin:t})=>e?"storyPin":t?"video":"image",x=(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,t,i){var n;return!a(i)&&!c(t)&&0!==Object.keys((null==e||null===(n=e.creator_analytics)||void 0===n?void 0:n["30d_realtime"])||{}).length}function y(e){for(const t of o)if(e===t)return!1;return!0}function v(e){return 0!==Object.keys((null==e?void 0:e["30d_realtime"])||{}).length}function b(e){return 0!==Object.keys((null==e?void 0:e.all_time_realtime)||{}).length}function P(e){var t;return!(null==e||null===(t=e["30d_realtime"])||void 0===t||!t.is_realtime)}},18857:(e,t,i)=>{i.d(t,{G7:()=>c,WE:()=>l,l6:()=>d,rh:()=>s});var n=i(27255),o=i(605028),a=i(66699),r=i(623568);function s(e,t,i,a){var s,l,c;if(!t.isAuth)return!1;const{aggregated_pin_data:d,creator_analytics:u,public_creator_analytics:p,story_pin_data_id:h,videos:_}=e,m=(0,r.Nc)(d,h,_)||(0,r.o)(u),g=(null===(s=e.board)||void 0===s?void 0:s.privacy)===n.Z.BoardPrivacy.PUBLIC,x=((null===(l=e.board)||void 0===l?void 0:l.privacy)===n.Z.BoardPrivacy.PROTECTED||g)&&!e.is_repin&&[t.id,a].includes(null===(c=e.pinner)||void 0===c?void 0:c.id),{isStoryPin:f}=(0,o.Z)(e);return m||t.isPartner&&x||(e=>e.checkExperiment("web_ps4p").anyEnabled)(i)&&f&&x||(0,r.pU)(p)}function l(e,t,i,n,o,a){return e.isAuth&&t&&(i||n)&&!(null==o||!o.isLoaded)&&!a}function c(e,t){return(0,a.Z)(t.ngettext('Last {{ count }} Day', 'Last {{ count }} Days', e, 'Previous {{ count }} days from current date', 'Previous {{ count }} days from current date'),{count:e})}function d(e,t){return(0,a.Z)(t.ngettext('Last {{ count }} Hour', 'Last {{ count }} Hours', e, 'analytics.utils', 'Previous {{ count }} hours from current time'),{count:e})}},66743:(e,t,i)=>{i.d(t,{NC:()=>a,Rc:()=>s,WK:()=>c,X9:()=>o,b9:()=>n,f9:()=>l,gu:()=>r});const n="pin-builder-font-faces",o="system-font-faces",a="pin-builder-education-font-faces",r="licensed",s="system",l="brand",c=4},665866:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(826067);const o={asset_picker:{authOnly:!0,partnerOnly:!0,experiment:"web_pin_builder_asset_picker",groups:/^(enabled|employees)/,scenarios:["default"]},asset_picker_dropbox:{experiment:"web_pin_builder_dropbox",groups:/^(employees|enabled)/,authOnly:!0,partnerOnly:!0},carousel:{authOnly:!0,partnerOnly:!0,orbacExperiment:"web_m10n_business_access_orbac_www"},disabledIdeaPinCreation:{experiment:"disable_pin_creation",groups:/(disable_all|disable_idea_pins|disable_video)/,authOnly:!0,partnerOnly:!1},disabledPinCreation:{experiment:"disable_pin_creation",groups:/(disable_all|disable_web_pins)/,authOnly:!0,partnerOnly:!1},disabledVideoPinCreation:{experiment:"disable_pin_creation",groups:/(disable_all|disable_video)/,authOnly:!0,partnerOnly:!1},editing:{authOnly:!0,partnerOnly:!0},education:{authOnly:!0,partnerOnly:!0},flexibleAspectRatioTool:{experiment:"web_flexible_aspect_ratio_tool",groups:/^(employees|enabled)/,authOnly:!0,partnerOnly:!1,scenarios:["story_pin_v2"]},offsitePinCreation:{scenarios:["offsite_pin_creation"]},layouts:{authOnly:!0,partnerOnly:!0,scenarios:["default","ad_creation","story_pin"]},linkStatusValidation:{authOnly:!0,partnerOnly:!0},requireLink:{scenarios:["ad_creation"]},multipage_deprecation:{experiment:"web_multipage_deprecation",groups:/^(employees|enabled)/,authOnly:!0,partnerOnly:!1,scenarios:["story_pin_v2"]},multi_pin:{authOnly:!0,partnerOnly:!0,scenarios:["default","ad_creation"]},multi_pin_pinner:{authOnly:!0,partnerOnly:!1,scenarios:["default"]},offsite_pin_creation_multi_select:{authOnly:!0,partnerOnly:!1,experiment:"web_offsite_pin_creation_multi_select",groups:/^(enabled|employees|enabled_redirect_to_hf)/,scenarios:["offsite_pin_creation"]},ideaPinExtendVideoLength:{authOnly:!0,partnerOnly:!1,experiment:"web_idea_pin_extend_video_duration",groups:/^(employees|enabled)/,scenarios:["story_pin_v2"]},ideaPinExtendVideoLengthAboveTwoMin:{authOnly:!0,partnerOnly:!1,experiment:"web_idea_pin_extend_video_duration_above_two_min",groups:/^(employees_min|enabled_min)/,scenarios:["story_pin_v2"]},imageSignals:{authOnly:!0,partnerOnly:!0,experiment:"pin_quality_signal_image",groups:/^(employees|enabled)/},scheduling:{authOnly:!0,partnerOnly:!0,scenarios:["default"],orbacExperiment:"web_m10n_business_access_orbac_www"},shop_the_pin:{authOnly:!0,partnerOnly:!0,orbacExperiment:"web_m10n_business_access_orbac_www"},storyPinCommentsPermissions:{authOnly:!0,partnerOnly:!1,groups:/^(employees|enabled)/,scenarios:["story_pin_v2"],orbacExperiment:"web_m10n_business_access_orbac_www"},systemFonts:{authOnly:!0,partnerOnly:!0},tagging:{authOnly:!0,partnerOnly:!0,experiment:"web_pin_builder_tagging",groups:/^(employees|enabled|rollout)/,orbacExperiment:"web_m10n_business_access_orbac_www"},suppressSuccessModal:{scenarios:["ad_creation","business_nux"]},video:{customEnabledCheck:({user:e})=>!(null==e||!e.video_upload_allowed),authOnly:!0,orbacExperiment:"web_m10n_business_access_orbac_www"},videoEditing:{authOnly:!0,partnerOnly:!0,experiment:"video_edit",groups:/^(employees|enabled)/,orbacDisabled:!0},videoTagging:{authOnly:!0,partnerOnly:!0,languages:["en"],orbacExperiment:"web_m10n_business_access_orbac_www"},videoCollectionsTagging:{authOnly:!0,partnerOnly:!0,experiment:"video_hero_collections",groups:/^(employees|enabled)/,orbacDisabled:!0},pinQuality:{partnerOnly:!0},adsVideoPipeline:{partnerOnly:!0,experiment:"aid_exp_use_ads_video_pipeline",groups:/^(employees|enabled)/},ideaPinLinkCreation:{authOnly:!0,partnerOnly:!1,experiment:"web_idea_pin_link_creation",groups:/^(employees|enabled)/,scenarios:["story_pin_v2"]},ideaPinScheduling:{authOnly:!0,partnerOnly:!1,experiment:"web_sce_idea_pin_scheduling",groups:/^(employees|enabled)/},ideaPinDraftExpirationTimeBased:{authOnly:!0,partnerOnly:!1,experiment:"web_px_idea_pin_drafts_expire_time_based",groups:/^(employees|enabled)/,scenarios:["story_pin_v2"]},ideaPinDescriptionInDetails:{authOnly:!0,partnerOnly:!1,experiment:"web_sc_combined_desc_details",groups:/^(employees|enabled)/,scenarios:["story_pin_v2"]}},a={_experiments:null,_viewer:null,_advertiser:null,_scenario:null,_language:null,_context:null,_orbacActingAs:null,initialize(e){const{requestContext:t,viewer:i,location:o,advertiser:a,scenario:r,orbacActingAs:s}=e;this._context=e,this._experiments=t.experimentsClient,this._language=t.language,this._viewer=i,this._advertiser=a,this._orbacActingAs=s;const{adCreate:l}=(0,n.mB)(o.search);this._scenario=r||(l?"ad_creation":"default")},scenario(){return this._scenario},enabled(e){var t;if(!this._viewer||!this._experiments)return!1;const{advertisers:i,authOnly:n,experiment:a,groups:r=/.*/,languages:s,partnerOnly:l,scenarios:c,orbacDisabled:d,orbacExperiment:u,customEnabledCheck:p}=o[e];return(!(!(null===(t=this._orbacActingAs)||void 0===t||!t.id)&&this._orbacActingAs.id!==this._viewer.id)||!(d||u&&"enabled"!==this._experiments.checkExperiment(u).group))&&(p?p(this._context):!(!i||!this._advertiser||null===this._advertiser.billing_type)||!(n&&!this._viewer.isAuth)&&(!(l&&!this._viewer.isPartner)&&(!(c&&!c.includes(this._scenario))&&(!(s&&!s.includes(this._language))&&(!a||r.test(this._experiments.checkExperiment(a).group||""))))))},getExperimentGroup(e){if(!this._viewer||!this._experiments)return null;const{experiment:t}=o[e];if(t){const{group:e}=this._experiments.checkExperiment(t);return e}return null}}},622305:(e,t,i)=>{i.d(t,{Z:()=>n});const n=(0,i(307061).Z)((e=>{const{pin:t}=e,{images:i}=t,n=Object.keys(i||{}).reduce(((e,t)=>{const n=i[t],{url:o,width:a,height:r}=n;return e&&o&&a&&r?{...e,[t]:{url:o,width:a,height:r}}:null}),{});return n&&Object.keys(n).length>0?{...e,images:n}:null}))},802933:(e,t,i)=>{i.d(t,{Z:()=>n});const n=(0,i(307061).Z)((e=>e.pin&&e.pin.id?{...e,id:e.id,aggregatedPinData:e.pin.aggregated_pin_data}:null))},692627:(e,t,i)=>{function n({hasPin:e,hasPinRichMetadata:t,hasPinRichMetadataProducts:i,hasPinRichMetadataArticle:n,hasPinRichMetadataRecipe:o,hasPinStoryPinData:a}){if(e){if(t)return i?144:n?141:o?145:139;if(a)return 157}return 140}i.d(t,{Z:()=>n})},336882:(e,t,i)=>{i.d(t,{Z:()=>n});const n={STARTED:1,FINISHED:2}},432300:(e,t,i)=>{i.d(t,{Z:()=>n});const n={DEFAULT:1,LIMITED:2}},177471:(e,t,i)=>{i.d(t,{k:()=>P});var n=i(667294),o=i(702664),a=i(412067),r=i(19121),s=i(414327),l=i(780280);const c=["etsy","microsoft","twitter","google","instagram","youtube","dropbox"];function d({network:e,data:t,requestContext:i}){if(c.includes(e))return a.Z.create("UserSocialNetworkResource",{network:e,data:t}).callCreate();const n=`/v3/connect/${e}/`,o=((e,t,i)=>{let n;switch(e){case"facebook":const{facebookToken:e}=i;n=t?{facebook_id:t.id,facebook_token:e}:Object.freeze({});break;case"gplus":n=t?{one_time_code:t.one_time_code,redirect_uri:t.redirect_uri||void 0}:Object.freeze({});break;case"line":n=t?{line_id_token:t.line_id_token,line_access_token:t.line_access_token}:Object.freeze({});break;default:n=Object.freeze({})}return n})(e,t,i);return a.Z.create("ApiResource",{url:n,data:o}).callUpdate()}var u=i(553171),p=i(124237),h=i(402201),_=i(572752),m=i(966113),g=i(83969),x=i(867820);let f=Object.freeze({});const y=e=>{const{network:t}=e;if(!f[t])return;const{[t]:{error:i,success:n,complete:o},...a}=f;f={...a},"error"===e.type?null==i||i(Object.freeze({})):n("facebook"===e.network?{id:e.profile.id}:{one_time_code:e.one_time_code,redirect_uri:e.redirect_uri}),null==o||o()},v=({i18n:e,network:t,callbacks:i,requestContext:n})=>{if(i={error:()=>{},complete:()=>{},...i},(0,x.My)(`auth_web.social_connect.${t}.${(0,_.Z)(n)}`),"gplus"===t||"google"===t)(0,x.My)("auth_web.social_connect.google.migration"),async function(e){var t,i;await(0,g.Px)();const n=null===(t=window.google)||void 0===t||null===(i=t.accounts)||void 0===i?void 0:i.oauth2;n&&n.initCodeClient({client_id:m.v3,scope:"https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile",ux_mode:"popup",callback:e}).requestCode()}((e=>{i.success({one_time_code:e.code,redirect_uri:"postmessage"})}));else if("line"===t){const{locale:e}=n;(0,u.Z)(e,i)}else{const n=window.open("/connect/"+t+"/","",(e=>{switch(e){case"dropbox":return"width=600,height=800";case"instagram":return(0,h.Z)({width:580,height:580});case"etsy":return(0,h.Z)({width:580,height:775});case"youtube":return(0,h.Z)({width:605,height:640});default:return(0,h.Z)()}})(t));if(!n)return p.Z.showError(e._('You must enable popups!', ' - ', ' -- ')),void(i.error&&i.error(Object.freeze({})));const o=setInterval((()=>{n.closed&&(clearInterval(o),y({network:t,type:"error"}))}),1e3);f={...f,[t]:i}}};window.addEventListener("message",(e=>{const t=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"");if(e.origin!==t)return;const i=e.data;if(i&&"social-connect-complete"===i.type){const t=e.data;t.network&&y(t)}}));class b{constructor({invalidateResource:e,requestContext:t,viewer:i}){this.getUserId=()=>i.isAuth?i.id:"",this.getUsername=()=>i.isAuth?i.username:"",this.isLimitedLogin=()=>i.isLimitedLogin,this.invalidateResource=e,this.requestContext=t}handleConnect(e,t,i,n){const o=t=>{("connect"===t.type?d({network:e,data:t.data,requestContext:this.requestContext}):a.Z.create("ApiResource",{url:`/v3/connect/${e}/`}).callDelete()).then((e=>{var t;const n={user_id:this.getUserId(),username:this.getUsername(),field_set_key:"social_connect"};this.invalidateResource("UserResource",n),a.Z.create("UserResource",n).callGet(),null===(t=i.success)||void 0===t||t.call(i,e)}),(e=>{var t;e&&"object"==typeof e&&(null===(t=i.error)||void 0===t||t.call(i,{api_error_code:e.api_error_code,code:e.code,message:e.message}))})).finally((()=>{var e;null===(e=i.complete)||void 0===e||e.call(i)}))};t?this.isLimitedLogin()?o({type:"connect"}):v({network:e,callbacks:{success:e=>o({type:"connect",data:e}),error:i.error,complete:i.complete},i18n:n,requestContext:this.requestContext}):o({type:"disconnect"})}}function P(){const e=(0,o.useDispatch)(),t=(0,l.B)(),i=(0,r.Z)();return(0,n.useMemo)((()=>new b({invalidateResource:(t,i)=>e((0,s.jB)(t,i)),requestContext:t,viewer:i})),[e,t,i])}},584595:(e,t,i)=>{i.d(t,{$j:()=>R,Cx:()=>Z,D4:()=>C,E:()=>c,E6:()=>k,H9:()=>B,Jt:()=>O,Jw:()=>r,LJ:()=>N,NF:()=>l,OW:()=>u,Pv:()=>D,RL:()=>P,ZP:()=>V,Zn:()=>S,_K:()=>m,aG:()=>_,an:()=>E,at:()=>z,bd:()=>d,cZ:()=>p,dO:()=>h,hE:()=>M,hU:()=>x,iK:()=>v,iZ:()=>j,ik:()=>F,ky:()=>L,lg:()=>g,nY:()=>y,nf:()=>b,oP:()=>f,pH:()=>o,qF:()=>U,rM:()=>I,rm:()=>T,tL:()=>s,tz:()=>a,xN:()=>A,yV:()=>w});var n=i(817656);const o=101,a=93,r=117,s=116,l=111,c=118,d=9,u=8,p=16,h=12,_=3,m=18,g=105,x=79,f=78,y=77,v=76,b=1402,P=85,w=88,S=1201,A=30,k=84,E=83,T=2901,C=2904,I=2905,j=95,R=19,D=113,z=91,O=2501,L=2915,N=2986,B=3050,M=2,Z=[u,d],F=[u,d,n.Ej],U=new Map([[1,"INVALID_PARAMETERS"],[100,"INVALID_NETWORK_ACCESS_TOKEN"],[g,"FACEBOOK_ACCOUNT_NOT_LINKED"],[h,"API_SERVER_ERROR"],[1202,"LOGIN_MFA_TOKEN_INVALID"],[1203,"MFA_CONNECTION_ERROR"],[13,"API_DOWN"],[181,"GPLUS_CONNECTION_ERROR"],[14,"API_SERVER_SPAM_CONTENT"],[p,"API_REQUEST_TIMEOUT"],[50,"API_ERROR_PIN_NOT_FOUND"],[y,"INVALID_PASSWORD_FB_USER"],[f,"INVALID_PASSWORD_ERROR_CODE"],[x,"INVALID_EMAIL_ERROR_CODE"],[80,"INVALID_EMAIL_OR_PASSWORD"],[82,"LOGIN_DEACTIVATED_USER"],[E,"LOGIN_POLICY_VIOLATION_USER"],[P,"AUTO_PASSWORD_RESET_ERROR_CODE"],[86,"LOGIN_PANICKED_USER"],[87,"LOGIN_SOFT_BANNED_USER"],[a,"API_ERROR_UNDERAGE_REGISTER_ATTEMPT"],[s,"API_ERROR_OVERAGE_REGISTER_ATTEMPT"],[99,"LOGIN_PASSWORD_NOT_CREATED"],[u,"API_LIMIT_EXCEEDED_ERROR"],[d,"API_EVENT_BLOCKED_ERROR"],[R,"USER_IN_SAFE_MODE"],[k,"LOGIN_VOLUNTARILY_DEACTIVATED_USER"],[P,"LOGIN_BAD_PASSWORD_ASK_RESET"],[S,"LOGIN_MFA_REQUIRED"],[A,"LOGIN_USER_NOT_FOUND"],[w,"LOGIN_HARD_BANNED_USER"],[429,"RESPONSE_CODE_TOO_MANY_REQUESTS"],[T,"SAR_DOWNLOAD_LIMIT"],[C,"SAR_EMAIL_UNVERIFIED"],[I,"SAR_EMAIL_MISSING"]]),V=[u,d,R,E,P,w]},553171:(e,t,i)=>{i.d(t,{Z:()=>p});var n=i(231486);var o=i(643913),a=i(226198),r=i(966113),s=i(696157),l=i(826067),c=i(844974);const d="undefined"!=typeof window,u=d?`${window.location.origin}/oauth/line/redirect`:"";function p(e,t){var i;if(!d)return void(null===(i=t.error)||void 0===i||i.call(t,{message:"Window is undefined"}));let p;const h=function(e=5){const t="abcdefghijklmnopqrstuvwxyz1234567890";return new Array(e).fill("").map((()=>t[Math.floor(Math.random()*t.length)])).join("")}(10),_=async e=>{if(!e.isTrusted)return;const i=e instanceof MessageEvent?(({origin:e,data:t})=>t&&e===window.location.origin?String(t):null)(e):(({url:e,key:t})=>{if(!e.startsWith(window.location.origin)||t!==s.MM)return null;const i=(0,c.qn)(s.MM);return(0,c.L_)(s.MM),i})(e),r=(0,l.mB)(i);if(r.state&&r.code&&r.state===h){p&&!p.closed&&p.close();try{const e=await fetch("/oauth/line/verify",{headers:{"Content-type":"application/x-www-form-urlencoded; charset=UTF-8","x-csrftoken":`${String(n.U2(a.fS))}`},method:"POST",body:(0,o.Z)({code:r.code,redirect_uri:u})}),i=await e.json(),{id_token:s,access_token:l}=i;var d;if(s&&l)t.success({line_id_token:s,line_access_token:l});else null===(d=t.error)||void 0===d||d.call(t,{message:"No tokens returned"})}catch(x){var m;null===(m=t.error)||void 0===m||m.call(t,x)}finally{var g;p&&!p.closed&&p.close(),window.removeEventListener("message",_),window.removeEventListener("storage",_),null===(g=t.complete)||void 0===g||g.call(t)}}};window.addEventListener("message",_),window.addEventListener("storage",_),p=window.open(`https://access.line.me/oauth2/v2.1/authorize?response_type=code&client_id=${r.z}&redirect_uri=${encodeURIComponent(u)}&state=${h}&ui_locales=${e}&scope=profile%20openid%20email`,"_blank")}},56528:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(412067);const o=e=>{const t=n.Z.create("ApiResource",{url:"/v3/users/password/",data:e});return e.old?t.callCreate({showError:!1}):t.callUpdate({showError:!1})}},107193:(e,t,i)=>{i.r(t),i.d(t,{default:()=>u});var n=i(336882),o=i(935879),a=i(713930),r=i(412067),s=i(966113),l=i(867820);let c=!1;const d=(e,t,i="en-US",u)=>{u&&(0,l.dy)({event:"load_script_start",provider:"facebook"}),(0,a.Z)((0,o.Z)(i),"FACEBOOK").then((()=>{u&&(0,l.dy)({event:"load_script_success",provider:"facebook"});const i=window.FB;i?(c||(u&&(0,l.dy)({event:"initialize_library",provider:"facebook"}),i.init({appId:s.GH,status:!0,version:"v2.2"}),FB.Event.subscribe("auth.statusChange",(()=>{(e=>e.isAuth&&!!e.facebookId&&!e.isLimitedLogin)(t)&&d((e=>{if(!e.getUserID())return;const t=e.getAccessToken();t&&r.Z.create("ApiResource",{url:"/v3/connect/facebook/",data:{facebook_token:t}}).callCreate({showError:!1})}),t)})),c=!0,window.fb_init=n.Z.FINISHED),e(i)):u&&(0,l.dy)({event:"global_object_not_found",provider:"facebook"})})),window.fb_init=n.Z.STARTED},u=d},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`},83969:(e,t,i)=>{i.d(t,{Fm:()=>r,OY:()=>l,PL:()=>d,Px:()=>s,mK:()=>u,ru:()=>c});var n=i(713930),o=i(966113),a=i(867820);const r=()=>{var e,t,i;return null===(e=window)||void 0===e||null===(t=e.google)||void 0===t||null===(i=t.accounts)||void 0===i?void 0:i.id},s=e=>(0,n.Z)("https://accounts.google.com/gsi/client",null!=e&&e.unsafe?null:"GSI"),l=({autoSelect:e,itpSupport:t},i)=>{var n;null===(n=r())||void 0===n||n.initialize({auto_select:null!=e&&e,client_id:o.v3,callback:i,cancel_on_tap_outside:!1,context:"use",itp_support:t})},c=({buttonRef:e,isDesktop:t})=>{const i=r();if(i&&e.current){const t=e.current.offsetWidth;i.renderButton(e.current,{size:"large",shape:"pill",text:"continue_with",theme:"outline",width:t+"px"})}else(0,a.My)((t?"unauth_web":"unauth_mweb")+".gsi_button.not_initialized")},d=e=>"auto"===e?"AUTO_LOGIN":e.startsWith("btn")?"SIGN_IN_WITH_GOOGLE_BUTTON":"ONE_TAP_PROMPT",u=e=>{switch(e){case"SIGN_IN_WITH_GOOGLE_BUTTON":return"gsi_btn";case"ONE_TAP_PROMPT":return"onetap_btn";default:return"other"}}},760372:(e,t,i)=>{i.d(t,{X:()=>n});const n="favorited"},773285:(e,t,i)=>{i.d(t,{F:()=>a,a:()=>o});var n=i(425288);const{Provider:o,useHook:a}=(0,n.Z)("ExperimentContext")},869503:(e,t,i)=>{i.d(t,{Z:()=>d});var n=i(939106),o=i(898781),a=i(349700),r=i(883119),s=i(785893);function l(){const e=(0,o.ZP)();return e._('Free shipping', 'closeup.product.shipping', 'product shipping info')}function c({freeShippingPrice:e}){const t=(0,o.ZP)();return(0,a.nk)(t._('Free shipping with {{ shippingPrice }}+', 'closeup.product.shipping', 'product shipping info'),{shippingPrice:e}).join("")}function d({customStyles:e,showPrevDot:t,freeShippingPrice:i,freeShippingValue:o}){const a=t?[""]:[],{color:d="subtle",size:u="200"}=e||{};return Number.isFinite(o)?(0===o?a.push((0,s.jsx)(l,{})):i&&a.push((0,s.jsx)(c,{freeShippingPrice:i})),0===a.length?null:(0,s.jsx)(r.xv,{color:d,size:u,children:(0,s.jsx)(n.Z,{color:d,items:a})})):null}},30287:(e,t,i)=>{i.d(t,{AJ:()=>v,FB:()=>m,FP:()=>_,Kj:()=>x,Rx:()=>h,So:()=>g,kM:()=>f});var n=i(231486),o=i(567831),a=i(794230),r=i(957161),s=i(826067),l=i(226198);const c="android-app://com.pinterest.twa",d="pwa_hostname",u="pwa_redirected",p="homescreen_icon",h=e=>["twa","cct","browser","webview"].includes(e),_=e=>{var t,i;return!!e&&((n.U2(l.tg)||"").startsWith(c)||(e.document&&e.document.referrer||"").startsWith(c)||!(!(i=null===(t=e.location)||void 0===t?void 0:t.search)||!h((0,s.mB)(i).twa_type)))},m=e=>{var t,i;if(!e)return null;if(e.Windows)return"windows";if((e=>!!e&&(e.document&&e.document.referrer||"").startsWith("app-info://platform/microsoft-store"))(e))return"msft-store";if(_(e))return"android-twa";if(e.matchMedia&&(null!==(t=e.matchMedia("(display-mode: standalone)"))&&void 0!==t&&t.matches||null!==(i=e.matchMedia("(display-mode: minimal-ui)"))&&void 0!==i&&i.matches)&&e.navigator&&e.navigator.userAgent){const t=e.navigator.userAgent;if(t.includes("Chrome"))return"chrome";if(t.includes("Safari"))return"safari"}return"unknown"},g=e=>{const t=m(e);return!(!t||"unknown"===t)},x=(e,t)=>{if("unknown"!==t)switch(t){case"twa":return 3354;case"cct":return 3355;case"browser":return 3356;default:return null}else switch(e){case"chrome":return 3351;case"safari":return 3352;default:return null}};function f(e,t){if(void 0===e)return"notEligible";if(!g(e)&&e.navigator&&e.navigator.userAgent){if(e.navigator.userAgent.includes("Windows NT 10.0"))return"windows";if(t&&t())return"chrome"}return"notEligible"}const y=e=>{if(!e)return;const t=r.Z.getItem(d)||"";if(t!==e.location.hostname&&!(()=>{const e=Number(r.Z.getItem(u));return Date.now()-e<6e4})()){const{pathname:i}=e.location,n=(0,a.Z)(i,{utm_source:p}),s=(0,o.Z)(n,void 0,t);r.Z.setItem(u,Date.now()),e.location.href=s}},v=e=>{if(e)if((e=>{var t;return(0,s.mB)(null===(t=e.location)||void 0===t?void 0:t.search).utm_source===p})(e)){const{hostname:t}=e.location;r.Z.setItem(d,t)}else e.navigator.userAgent&&e.navigator.userAgent.includes("CrOS")&&y(e)}},813401:(e,t,i)=>{i.d(t,{kf:()=>g,l5:()=>_,of:()=>p,xC:()=>m,yz:()=>h});var n=i(667294),o=i(172071),a=i(829407),r=i(807609),s=i(30287),l=i(425288),c=i(785893);const{Provider:d,useMaybeHook:u}=(0,l.Z)("PwaContext"),p=({children:e,initialContext:t})=>{const[i,r]=(0,n.useState)(null),l=t||{pwaType:"unknown",twaType:null},u=l.pwaType;(0,a.Z)((()=>{const e=(0,s.FB)(window)||"unknown";r(e),u!==e&&o.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,_=(0,n.useMemo)((()=>({pwaType:p,twaType:h})),[p,h]);return(0,c.jsx)(d,{value:_,children:e})},h=()=>{var e;const t=u();return null!==(e=null==t?void 0:t.pwaType)&&void 0!==e?e:"unknown"},_=()=>{var e;const t=u();return null!==(e=null==t?void 0:t.twaType)&&void 0!==e?e:null},m=()=>"android-twa"===h(),g=()=>{const e=h(),t=(0,r.Z)();return"unknown"===e&&t?null:"windows"===e}},523657:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),o=i(883119),a=i(785893);const r=(e,t,i)=>{const o=(0,n.useRef)(null),a=(0,n.useRef)(null);(0,n.useEffect)((()=>{if(e!==o.current||i&&i!==a.current){o.current=e;const i=(n=e,document.querySelector(`img[src="${n}"]`)||null);null!=i&&i.complete&&t()}var n;a.current=i}),[e,t,i])};function s({alt:e,children:t,color:i,elementTiming:n,isActive:s=!1,naturalHeight:l,naturalWidth:c,onLoad:d,src:u}){return r(u,d,s),(0,a.jsx)(o.Ee,{alt:e,color:i,elementTiming:n,naturalHeight:l,naturalWidth:c,onLoad:d,src:u,children:t})}},198462:(e,t,i)=>{i.d(t,{cA:()=>D,fM:()=>z,N5:()=>O});var n=i(667294),o=i(991067),a=i(435851),r=i(172071),s=i(31062),l=i(383434),c=i(938085);const d=(0,l.X)("LayoutShiftDebugger"),u=e=>e instanceof HTMLElement&&e.dataset&&(e.dataset.layoutShiftBoundaryId||e.dataset.testId)||e.parentNode&&u(e.parentNode)||null,p=e=>Math.round(1e3*e);let h=[];const _=({staticContext:e,getCurrentRoute:t,getLastNavigationTime:i})=>{const n=(0,s.Jx)({annotateMarks:["initialAppLoad","RenderReactContainer"],name:"cumulative_layout_shift",pwtStaticContext:e});let o=0;const l=e=>{o=e.timeStamp};window.addEventListener("scroll",l),window.addEventListener("beforeunload",(()=>{window.removeEventListener("scroll",l)}));const _=`${(0,a.Z)(e)}.CLS`,m=()=>(e=>{let t=Object.freeze({}),i=0;h.forEach((({value:e,shift:{sources:n},route:o,hadRecentNavigation:a,hadRecentScroll:r,isAuth:s})=>{if(i+=e,!n||!n.length)return;const l=e/n.length;n.forEach((({node:e})=>{const i=e?u(e)||"ROOT":"NODE_REMOVED",n={route:o,boundaryId:i,hadRecentNavigation:a,hadRecentScroll:r,isAuth:s},c=JSON.stringify(n);t={...t,[c]:{score:((t[c]||{}).score||0)+l,tags:n}}}))})),Object.keys(t).forEach((i=>{const{score:n,tags:o}=t[i];r.Z.count(`${e}.shifts`,p(n),1,{...o})})),d("Debug CLS boundaries",i,t,h),h=[]})(_);let g,x,f=0,y=0,v=0;(0,c.kz)((({entries:n,value:a})=>{if(v=a||0,n.length){g=t(),x=i();const r=n[0].startTime,s=f!==r,l=s?n:n.slice(y);s&&(f=r),h=h.concat(l.map((t=>({value:a,shift:t,route:g,hadRecentNavigation:x>0&&x+500>t.startTime,hadRecentScroll:o>0&&o+500>t.startTime,isAuth:e.isAuthenticated})))),y=n.length}}),!0);const b=setInterval((()=>{if(h.length){m();const t=(e=v)<=.1?"good":e<=.25?"adequate":"poor";r.Z.count(`${_}.${t}`,1,1),n.stop(p(v))}var e}),1e3);window.addEventListener("beforeunload",(()=>{clearInterval(b),0===v&&n.abort("no_shifts_detected")}))};var m=i(311560);var g=i(156381);const x=e=>Number(e.toFixed(2)),f={pin_closeup:{LCP:"pin_closeup_lcp",FID:"pin_closeup_fid"},board:{LCP:"board_lcp",FID:"board_fid"},other_profile:{LCP:"other_profile_lcp",FID:"other_profile_fid"},topic:{LCP:"topic_lcp",FID:"topic_fid"}},y=["CA","GB","DE","FR","AU","JP","BR","MX"],v=({surface:e,isAuthenticated:t})=>{if(t)return[];switch(e){case"pin_closeup":return["mweb_pin_page_ssr_lite"];default:return[]}},b=({pwtStaticContext:e,surface:t})=>{const i="pin_closeup"===t||"board"===t||"other_profile"===t||"topic"===t?(({pwtStaticContext:e,surface:t})=>{const i=(0,s.Jx)({annotateExperiments:v({surface:t,isAuthenticated:e.isAuthenticated}),annotateResourceTimingForSurface:t,annotateMarks:["initialAppLoad","RenderReactContainer",...e.isAuthenticated?[]:["firstClientRenderUnauthPageWrapper","mountUnauthPageWrapper"],..."pin_closeup"===t?["firstClientRenderCloseupPage","firstClientRenderCloseupImage"]:[]],name:f[t].LCP,pwtStaticContext:e}),n=(0,s.Jx)({name:f[t].FID,pwtStaticContext:e});return(e,t)=>{"LCP"===e?i.stop(t):"FID"===e&&n.stop(t)}})({pwtStaticContext:e,surface:t}):null,{isAuthenticated:n,isBot:o,isSocialBot:l,deviceType:d,country:u}=e,p={},h=(s,c,h)=>{if(!p[s]){p[s]=!0;const _=(0,a.Z)(e),g=`${_}.${t}.${s}`,x=`${_}.tags.${t}.${s}`;if("LCPCount"===s)r.Z.count(`${g}.sum`,c,1),r.Z.increment(`${g}.size`,1);else{const e=(0,m.Z)(u);"FID"===s||"FIDStartTime"===s?(r.Z.timing(`${g}`,c,1),r.Z.timing(`${x}`,c,1,{timingBucket:null==h?void 0:h.timingBucket,isAuth:n,region:e})):(r.Z.timing(`${g}`,c,1),r.Z.timing(`${x}`,c,1,{isAuth:n,region:e})),!n&&y.includes(u)&&(({botType:e,deviceType:t,isChrome:i,region:n})=>{const o=`pwtlogger.${e}.${t}`,a=["all",...n?[n.toLowerCase()]:[]],r=["all",...i?["chrome"]:[]],s=[];return a.forEach((e=>{r.forEach((t=>{s.push(`${o}.region_${e}.browser_${t}`)}))})),s})({botType:(l?"socialBot":o&&"bot")||"nonbot",deviceType:d,isChrome:!0,region:e}).forEach((e=>{r.Z.timing(`${e}.tags.growthSEO.${t}_${s}`,c,1,{country:u})})),i&&i(s,c)}}};(0,c.Tx)((({value:e})=>{const t=(0,g.Af)();let i;i=e<=100?"Good":e>100&&e<=300?"Needs Improvement":"Poor",h("FID",x(e),{timingBucket:i}),t&&h("FIDStartTime",x(t),{timingBucket:i})})),(0,c.Tb)((({value:e})=>{h("LCPCount",(0,g.Kj)()),h("LCP",(e=>10*Math.round(e/10))(e))})),(0,c.Y)((({value:e})=>h("FCP",e)))};var P=i(790348);let w=null;const S=e=>{switch(e){case"/":return"homefeed";case"/pin/:id":return"pin_closeup";case"/pin/:id/visual-search":return"flashlight";case"/:username/:slug":return"board";case"/:username":return"other_profile";case"/search/:scope":return"search";case"/ideas/:interest/:id":return"topic";default:return null}};var A=i(969853),k=i(543059),E=i(7789),T=i(22773),C=i(276775),I=i(785893);const j=(0,n.createContext)(null),R=(0,n.createContext)(null);function D({children:e,immutableLocation:t,resourceTimingCacheSize:i,routerHistoryAction:a,staticContext:r}){const l=(0,n.useRef)(null),c=(0,n.useRef)(null),d=(0,n.useRef)(t),u=(0,n.useRef)(!0),{path:p}=(0,C.useRouteMatch)(),h=(0,n.useRef)(p),m=!r.isCachedRender&&(0,o.Z)(r.deviceType);(0,n.useEffect)((()=>{h.current=p}),[p]),(0,n.useEffect)((()=>{if((0,T.X_)({size:i||1e3}),(0,g.UQ)(),(0,P.A9)("totalSessionVolume"),window.performance?["clearMarks","clearMeasures","clearResourceTimings","getEntries","getEntriesByName","getEntriesByType","mark","measure","now","setResourceTimingBufferSize"].forEach((e=>{window.performance[e]||(0,P.A9)(`not_supported.window.performance.${e}`)})):(0,P.A9)("not_supported.window.performance"),window.PerformanceObserver||(0,P.A9)("not_supported.window.PerformanceObserer"),(0,A.v)()||(0,P.A9)("not_supported.grid_profiler"),u.current=!1,m&&!E.is){if(((e,t)=>{let i,n=0,o=0,a=null,r=null,l=null,c=null,d=[];const u=()=>{o+=1,l=window.requestAnimationFrame(u)},p=()=>{if(c){const i=d.some((e=>null!==a&&a-e>0&&a-e<=500)),o=t(),{isAuthenticated:l}=e;if(i){const t=(0,s.Jx)({name:"scroll_session",pwtStaticContext:e});if(!t)return;const i={surface:o,isAuthenticated:l};if(null===a||null===r||0===n)if(null===a&&null===r)t.error("no_duration",i);else if(null==a)w=r,t.error("no_start",i);else if(null==r){let e;e=w&&a-w<750?"no_end.outside_window":"no_end.single_event",t.error(e,i)}else t.error("no_frames",i);else{w=r;const e=r-a,s=e/n;0===s?t.error("zero_value",i):s<0?t.error("negative_value",i):(t.addBinaryAnnotation("surface",o,"STRING"),t.addBinaryAnnotation("isAuthenticated",l,"BOOL"),t.addBinaryAnnotation("duration_ms",e,"I32"),t.addBinaryAnnotation("total_frames_rendered",n,"I16"),t.stop(s))}}else(0,P.A9)("WARN.scroll_session.not_user",{tags:{isAuthenticated:l,surface:o}})}window.cancelAnimationFrame(l),n=0,o=0,d=[],r=null,a=null,c=null},h=({timeStamp:e})=>{i&&clearTimeout(i),i=setTimeout(p,500),null===c?(c=100*Math.random()<10,c&&(l=window.requestAnimationFrame(u),a=e)):c&&(r=e,n+=o,o=0)},_=({timeStamp:e})=>{d.push(e)};["wheel","pointerdown","keydown"].forEach((e=>{window.addEventListener(e,_,{passive:!0,capture:!0})})),window.addEventListener("scroll",h,{passive:!0}),window.addEventListener("pagehide",(()=>{window.removeEventListener("scroll",h),["wheel","pointerdown","keydown"].forEach((e=>{window.removeEventListener(e,_)}))}))})(r,(()=>S(h.current)?S(h.current)||"UNKNOWN_SURFACE":h.current||"UNKNOWN_SURFACE")),"Chrome"===r.browserName){_({staticContext:r,getCurrentRoute:()=>h.current,getLastNavigationTime:()=>c.current||0});const e=S(h.current);e&&b({pwtStaticContext:r,surface:e})}}}),[]);var x,f;if(x=t.pathname,["/advertiser/"].reduce(((e,t)=>x.includes(t)||e),!1)?d.current.pathname!==t.pathname:d.current!==t){d.current=t,c.current=null!==(f=window.performance)&&void 0!==f&&f.now?window.performance.now():null;const{current:e}=c;if(!u.current){const t=!l.current;(0,P.A9)("routeStart",{tags:{action:a}}),(0,T.Eg)(t),(0,g.Ux)(t),(0,g.on)(),(0,k.tl)();const{customBufferSize:i,defaultBufferSize:n}=(0,T.LH)();e&&((0,P.A9)("routeStart.customBufferSize",{count:i}),(0,P.A9)("routeStart.defaultBufferSize",{count:n}),l.current={time:e,action:a})}}return(0,I.jsx)(j.Provider,{value:m?r:null,children:(0,I.jsx)(R.Provider,{value:l.current,children:e})})}const z=()=>(0,n.useContext)(R),O=()=>(0,n.useContext)(j)},42447:(e,t,i)=>{i.d(t,{Z:()=>U});var n=i(667294),o=i(317672),a=i(790348);const r=e=>{const t=performance.getEntriesByType("resource").filter((e=>e.name.includes("i.pinimg"))).reduce(((e,t)=>{const i=t.name.replace(".jpg","").split("/");return{[i[i.length-1]]:{downloadSize:t.name.split("/")[3].split("x")[0]},...e}}),{});[...Array.from(document.getElementsByTagName("img")).map((e=>{const i=e.src.replace(".jpg","").split("/"),n=i[i.length-1];if(t[n]){var a;const i=(null===(a=(0,o.rZ)(e))||void 0===a?void 0:a.width)||1,r=t[n].downloadSize;return{fileName:n,renderedSize:i,downloadedSize:r,ratio:r/i}}return{fileName:n,renderedSize:1,downloadedSize:1,ratio:1}})),...Array.from(document.querySelectorAll('div[role="img"]')).map((e=>{const i=e.style.backgroundImage.split('"')[1].replace(".jpg","").split("/"),n=i[i.length-1];if(t[n]&&e instanceof HTMLDivElement){var a;const i=(null===(a=(0,o.rZ)(e))||void 0===a?void 0:a.width)||1,r=t[n].downloadSize;return{fileName:n,renderedSize:i,downloadedSize:r,ratio:r/i}}return{fileName:n,renderedSize:1,downloadedSize:1,ratio:1}}))].forEach((t=>{const{ratio:i,fileName:n,downloadedSize:o}=t;t.ratio>1.05&&(0,a.A9)(`checkImageRatio.${e}`,{count:Math.round(10*i)/10,tags:{fileName:`${o}_${n}`}})}))};var s=i(860273),l=i(543059),c=i(607150);const d=({constraintMap:e,initialNavTiming:t,annotations:i})=>({...i,...(0,c.jh)("constraint_",e),...(0,c.jh)("mark_",(0,l.gQ)()),...(0,c.jh)("browser_",{...t?(0,c.D3)(t):{},...(0,c.rX)()})});var u=i(358864),p=i(505771),h=i(156381);const _=(e,t)=>{const{firstInputDelay:i}=(0,h.v2)();return[...e.map((e=>(0,p.Z)(e,t))).filter(Boolean),...i?[{name:"fid",id:(0,u.Z)(),parentId:t,startTime:i.startTime,endTime:i.endTime,annotationMap:{},binaryAnnotationMap:{}}]:[]]};var m=i(435851),g=i(172071);const x=({eventPrefix:e,endTime:t,tags:i,resourceArr:n,resourceType:o="allResources"})=>{const a=n.length;if(a>0&&"object"==typeof n[0]&&!Array.isArray(n[0])){const r=[...n].sort(((e,t)=>e.fetchStart-t.fetchStart)),s=[...n].sort(((e,t)=>e.responseEnd-t.responseEnd));let l=1;const c=t/5;let d=0;for(;l<=5;){let t=0;for(;d<=a-1&&r[d].fetchStart<=c*l;)d+=1,t+=1;g.Z.gauge(`${e}.tags.${o}.fetchStartInterval${l}of5`,t,.2,i),g.Z.gauge(`${e}.${o}.fetchStartInterval${l}of5`,t,.2),l+=1}const u={zeroPercentInFlight:r[0].fetchStart,twentyFivePercentInFlight:r[Math.floor(a/4)].fetchStart,fiftyPercentInFlight:r[2*Math.floor(a/4)].fetchStart,seventyFivePercentInFlight:r[3*Math.floor(a/4)].fetchStart,hundredPercentInFlight:r[a-1].fetchStart,twentyFivePercentComplete:s[Math.floor(a/4)].responseEnd,fiftyPercentComplete:s[2*Math.floor(a/4)].responseEnd,seventyFivePercentComplete:s[3*Math.floor(a/4)].responseEnd,hundredPercentComplete:s[a-1].responseEnd};for(const t in u)u[t]&&(g.Z.timing(`${e}.tags.${o}.${t}`,u[t],.2,i),g.Z.timing(`${e}.${o}.${t}`,u[t],.2))}},f=({annotateExperiments:e,endTime:t,entries:i,metricId:n,pwtStaticContext:o})=>{const a=`${(0,m.Z)(o)}.${n.surface}`,r=[a];e&&e.forEach((e=>{const t=o.getExperimentGroup(e)||"null";r.push(`${a}.${e}.${t}`)}));const s={lcpTimingBucket:(e=>{let t;return t=e<=2500?"Good":e>2500&&e<=4e3?"Needs Improvement":"Poor",t})((0,h.Bn)())||"unknown",isAuthenticated:o.isAuthenticated,navigationType:n.navigationType},l=Array.from(i.filter((e=>"number"==typeof e.encodedBodySize&&e.encodedBodySize>=1e4&&e.responseEnd<=t))),c=[],d=[],u=[],p=[],_=[];l.forEach((e=>{"img"===e.initiatorType?c.push(e):"css"===e.initiatorType?d.push(e):"script"===e.initiatorType?u.push(e):"xmlhttprequest"===e.initiatorType?p.push(e):"link"===e.initiatorType&&e.name.includes("i.pinimg.com")&&_.push(e)})),r.forEach((e=>{x({eventPrefix:e,endTime:t,tags:s,resourceArr:l}),x({eventPrefix:e,endTime:t,tags:s,resourceArr:c,resourceType:"image"}),x({eventPrefix:e,endTime:t,tags:s,resourceArr:d,resourceType:"css"}),x({eventPrefix:e,endTime:t,tags:s,resourceArr:u,resourceType:"scripts"}),x({eventPrefix:e,endTime:t,tags:s,resourceArr:p,resourceType:"xhr"}),x({eventPrefix:e,endTime:t,tags:s,resourceArr:_,resourceType:"preloadedImage"})}))};var y=i(22773),v=i(453821),b=i(638089);const P=({annotateExperiments:e,annotations:t,binaryAnnotations:i,constraintMap:n,endTime:o,imageTimings:a,metricId:r,pwtStaticContext:l,startTime:c,traceId:u,spans:p})=>{const h=(0,y.Cg)();let m;"initial_app_load"===r.navigationType&&(m=(0,s.Z)());const g=a.map((({name:e})=>e)),x=h.map((e=>(0,v.p)(e,g))).filter((({timing:e})=>!(({startTime:e,responseEnd:t},i)=>e>i.endTime||!!t&&te&&t?w?((0,a.H)("duplicated_initial_app_load_surface_pwt"),(0,u.Z)()):(w=!0,t):(0,u.Z)();var A=i(558775);const k=(e,t)=>{const i=(0,n.useRef)(t);return{getState:()=>i.current,dispatch:t=>{i.current=e(i.current,t)}}};var E=i(985271),T=i(383434),C=i(226464),I=i(567450),j=i(276602),R=i(198462),D=i(785893);const z=["initial_app_load","client_route_push"],O=(0,T.X)("PwtSurface"),L="NavigationComplete",N="VisuallyComplete",B=(e,t)=>{e.isSampled&&(0,A.Z)({metricId:e.metricConfig.metricId,pwtStaticContext:e.metricConfig.pwtStaticContext,result:{type:"ABORT",reason:t}})},M=e=>{if(e.metricConfig.constraints.every((t=>e.constraintMap[t]))){const t=Math.max(...e.metricConfig.constraints.map((t=>e.constraintMap[t])));return((e,t)=>{var i;const{metricConfig:{metricId:n,pwtStaticContext:o,annotateExperiments:s},annotations:c,binaryAnnotations:d,constraintMap:u,startTime:p,imageTimings:h,isSampled:_,spans:m}=e;(0,l.L8)(`PWT_Complete_${(0,C.KJ)(n)}`);const g=S("initial_app_load"===n.navigationType,null===(i=o.serverData)||void 0===i?void 0:i.trace_id),x=P({annotateExperiments:s,annotations:c,binaryAnnotations:d,constraintMap:u,endTime:t,imageTimings:h,metricId:n,pwtStaticContext:o,startTime:p,traceId:g,spans:m});_&&(0,A.Z)({metricId:n,pwtStaticContext:o,result:x});try{r(String(x.binaryAnnotationMap["metricId.surface"].value))}catch(f){(0,a.H)("image_ratio_check_error",{error:f})}return{...e,result:x,status:"DONE"}})(e,t)}return e},Z=(e,t)=>{const{constraint:i,time:n}=t,o=(0,C.KJ)(e.metricConfig.metricId);return E.Z?e.metricConfig.constraints.find((e=>e===i))?e.constraintMap[i]?(O(`constraint "${i}" is already complete.`),(0,a.H)("duplicated_constraint_complete",{constraint:i,action:o}),e):(O(`marking constraint "${i}" as complete`),(0,l.ZP)(`constraint_${i}_is_complete`),M({...e,constraintMap:{...e.constraintMap,[i]:n||E.Z.now()}})):(O(`marked constraint "${i}" is not a required constraint.`),e):((0,a.H)("missing_window_performance",{action:o}),e)},F=(e,t)=>{if(O("dispatch action",t),"INIT_ROUTE"===t.type)return((e,t)=>{const{metricConfig:i,startTime:n,isSampled:o}=t;if("TIMING"===e.status&&n!==e.startTime&&B(e,"routeUpdatedOnSameSurface"),!i)return{status:"DISABLED",metricConfig:null};const r=(0,C.KJ)(i.metricId);return"TIMING"===e.status&&e.startTime===n&&e.constraintMap.NavigationComplete?((0,a.H)("duplicated_init_route_action",{action:r}),e):("Other"===i.pwtStaticContext.browserName&&!1===i.metricId.isAuthenticated&&"initial_app_load"===i.metricId.navigationType?((0,a.A9)(`TIMING.${r}`,{tags:{userAgent:null===(s=window)||void 0===s||null===(l=s.navigator)||void 0===l?void 0:l.userAgent}}),(0,a.A9)(`TIMING.sampled.${r}`,{tags:{userAgent:null===(c=window)||void 0===c||null===(d=c.navigator)||void 0===d?void 0:d.userAgent},sampleRate:.5})):((0,a.A9)(`TIMING.${r}`),(0,a.A9)(`TIMING.sampled.${r}`,{sampleRate:.5})),Z({status:"TIMING",metricConfig:i,startTime:n,constraintMap:{},annotations:{},binaryAnnotations:{},imageTimings:[],isSampled:o,spans:[]},{constraint:L}));var s,l,c,d})(e,t.payload);if("TIMING"!==e.status)return O(`ignoring action due to invalid state ${e.status}`,t),e;switch(t.type){case"ABORT":B(e,t.reason);const i={type:"ABORT",reason:t.reason};return{...e,status:"DONE",result:i};case"ANNOTATE":const{name:n}=t.payload;if(!E.Z)return e;const o=E.Z.now();return O(`adding annotation {${n}: ${o}}`),{...e,annotations:{...e.annotations,[n]:o}};case"BINARY_ANNOTATE":const{name:r,value:s,annotationType:l}=t.payload;return O(`adding binary annotation {${r}: ${s}}`),{...e,binaryAnnotations:{...e.binaryAnnotations,[r]:{value:s,type:l}}};case"MARK_CONSTRAINT_COMPLETE":return Z(e,t.payload);case"REMOVE_CONSTRAINT":return((e,t)=>{if(!E.Z){const t=(0,C.KJ)(e.metricConfig.metricId);(0,a.H)("missing_window_performance",{action:t})}O(`removing constraint "${t}"`);const i=e.metricConfig.constraints.filter((e=>e!==t)),{[t]:n,...o}=e.constraintMap;return M({...e,constraintMap:o,metricConfig:{...e.metricConfig,constraints:i}})})(e,t.payload);case"SET_SEGMENT":return((e,t)=>{if(!E.Z){const t=(0,C.KJ)(e.metricConfig.metricId);(0,a.H)("missing_window_performance",{action:t})}O(`updating pwt segment to "${t}"`);const i={...e.metricConfig.metricId,segment:t};return{...e,metricConfig:{...e.metricConfig,metricId:i}}})(e,t.payload);case"SET_VISUALLY_COMPLETE_RESULT":{const{payload:{imageTimings:i}}=t;if(0===i.length){B(e,"visuallyComplete_noImages");const t={type:"ABORT",reason:"visuallyComplete_noImages"};return{...e,status:"DONE",result:t}}const n=Math.max(...i.map((e=>e.responseEnd||0)));return Z({...e,imageTimings:i},{constraint:N,time:n})}case"ADD_SUBSPAN":const{startTime:c}=e,{payload:{name:d,startTime:p,endTime:h,annotations:_,binaryAnnotations:m,parentId:g}}=t;return{...e,spans:[...e.spans,{name:d,id:(0,u.Z)(),startTime:p||c,endTime:h,annotationMap:{..._},binaryAnnotationMap:{...m},parentId:g}]};case"START_SUBSPAN":return{...e,spans:[...e.spans,{name:t.payload.name,id:(0,u.Z)(),startTime:E.Z?E.Z.now():0,endTime:1/0,annotationMap:{...t.payload.annotations},binaryAnnotationMap:{...t.payload.binaryAnnotations},parentId:t.payload.parentId}]};case"STOP_SUBSPAN":const x=e.spans.findIndex((e=>e.name===t.payload.name));return x>-1?(e.spans[x].endTime=E.Z?E.Z.now():0,t.payload.annotations&&(e.spans[x].annotationMap={...e.spans[x].annotationMap,...t.payload.annotations}),t.payload.binaryAnnotations&&(e.spans[x].binaryAnnotationMap={...e.spans[x].binaryAnnotationMap,...t.payload.binaryAnnotations})):(0,a.H)("invalid_subspan_stop_name",{name:t.payload.name}),e;default:const f=(0,C.KJ)(e.metricConfig.metricId);return(0,a.H)("invalid_pwt_surface_action",{action:f}),e}};function U({children:e,...t}){var i;const o=(0,R.fM)(),r=(e=>{if(!e)return"initial_app_load";switch(e.action){case"PUSH":return"client_route_push";case"REPLACE":return"client_route_replace";default:return null}})(o),s=["seo_web_react18_render","web_react18_render_auth","web_react18_render_unauth","web_duplo_default",...null!==(i=t.annotateExperiments)&&void 0!==i?i:[]],l={...t,annotateExperiments:s,navigationInfo:{navigationType:r,clientNavigation:o}},{context:c}=(({surface:e,constraints:t,segment:i,measureGridVisuallyComplete:o,annotateExperiments:a,customEnabledNavigationTypes:r,navigationInfo:{clientNavigation:s,navigationType:l},sampleRate:c})=>{const d=(0,n.useRef)("NOT_SET"),u=(0,R.N5)(),{getState:p,dispatch:h}=k(F,{status:"DISABLED",metricConfig:null});if(d.current!==s&&(d.current=s,u)){const{isAuthenticated:n}=u,d=r||z,p=e&&l&&d.includes(l)?{metricId:{type:"surface",surface:e,navigationType:l,isAuthenticated:n,segment:i},annotateExperiments:a,constraints:[L,...t||[],...o?[N]:[]],pwtStaticContext:u}:null;h({type:"INIT_ROUTE",payload:{metricConfig:p,startTime:s?s.time:0,isSampled:!c||Math.random(){const e=e=>{h({type:"ABORT",reason:e})};I.Z.onSessionPause(e);const t=()=>{window.removeEventListener("resize",t),h({type:"ABORT",reason:"windowResized"})};return window.addEventListener("resize",t),()=>{const i=p();O("handling unmount",i),"TIMING"===i.status&&B(i,"unmount"),I.Z.removePauseListener(e),window.removeEventListener("resize",t)}}),[]),"TIMING"!==_.status||!_.constraintMap.NavigationComplete)return{state:_,context:null};const{startTime:m,metricConfig:g}=_;return{state:_,context:{abort:e=>h({type:"ABORT",reason:e}),addAnnotation:e=>h({type:"ANNOTATE",payload:{name:e}}),addBinaryAnnotation:(e,t,i)=>h({type:"BINARY_ANNOTATE",payload:{name:e,value:t,annotationType:i}}),addSubspan:(e,t,i,n={},o={},a=null)=>h({type:"ADD_SUBSPAN",payload:{name:e,startTime:t,endTime:i,annotations:n,binaryAnnotations:o,parentId:a}}),getId:()=>m,getMetricId:()=>g.metricId,markConstraintComplete:e=>h({type:"MARK_CONSTRAINT_COMPLETE",payload:{constraint:e,time:E.Z?E.Z.now():0}}),removeConstraint:e=>h({type:"REMOVE_CONSTRAINT",payload:e}),setSegment:e=>h({type:"SET_SEGMENT",payload:e}),setVisuallyCompleteResult:g.constraints.includes(N)?e=>h({type:"SET_VISUALLY_COMPLETE_RESULT",payload:e}):null,startSubspan:(e,t={},i={},n=null)=>h({type:"START_SUBSPAN",payload:{name:e,annotations:t,binaryAnnotations:i,parentId:n}}),stopSubspan:(e,t={},i={},n=null)=>h({type:"STOP_SUBSPAN",payload:{name:e,annotations:t,binaryAnnotations:i,parentId:n}})}}})(l);return(()=>{const e=(0,j.EV)(),t=!!e;(0,n.useEffect)((()=>{if(t){const t=null==e?void 0:e.getMetricId(),i=t?(0,C.KJ)(t):null;(0,a.H)("nested_pwt_surface",{action:i})}}),[t])})(),(0,D.jsx)(j.Sb,{value:c,children:e})}},276602:(e,t,i)=>{i.d(t,{EV:()=>r,Sb:()=>a,gD:()=>o});var n=i(425288);const{Consumer:o,Provider:a,useMaybeHook:r}=(0,n.Z)("pwtSurfaceContext")},991067:(e,t,i)=>{i.d(t,{Z:()=>r});const n=()=>{var e;return!(null===(e=window.performance)||void 0===e||!e.timing)};var o=i(985271),a=i(969853);function r(e){return!("desktop"===e&&!n())&&(!!o.Z&&(0,a.v)())}},7789:(e,t,i)=>{i.d(t,{DQ:()=>a,eD:()=>n,is:()=>o});const n=window.location.search.includes("debug_tracing"),o=window.location.search.includes("debug_lab_tracing"),a=n||o},226464:(e,t,i)=>{i.d(t,{KJ:()=>d,Rp:()=>c});const n={id:14,name:"own_profile"},o={id:15,name:"other_profile"},a={initial_app_load:{unauth:{board:{id:114,name:"board_page_interactive"},pin_closeup:{id:113,name:"pin_page_interactive"},other_profile:{id:115,name:"user_page_interactive"},topic:{id:119,name:"topic_page_interactive"},sterling_signup:{id:201,name:"sterling_signup_main_pageload"},sterling_login:{id:202,name:"sterling_login_main_pageload"}},auth:{bizhub:{id:607,name:"bizhub_pinteractive"},homefeed:{id:19,name:"home_feed_pinteractive"},sterling_reporting_overview:{id:219,name:"sterling_reporting_overview_pageload"},sterling_ads_create:{id:221,name:"sterling_adscreate_main_pageload"},sterling_ads_duplicate:{id:206,name:"sterling_adsduplication_main_pageload"},sterling_ads_edit:{id:204,name:"sterling_adsedit_main_pageload"},sterling_billing_profile:{id:203,name:"sterling_billingprofile_main_pageload"},sterling_bulk_editor:{id:205,name:"sterling_bulkeditor_main_pageload"},sterling_pin_builder:{id:222,name:"sterling_adscreate_pinbuilder_pageload"},sterling_recommendations:{id:223,name:"sterling_recommendations_pageload"},product_details:{id:120,name:"product_details_interactive"},product_details_plus:{id:121,name:"product_details_plus_interactive"},sterling_reporting_details:{id:218,name:"sterling_reporting_details_pageload"}}},client_route_push:{unauth:{},auth:{bizhub:{id:608,name:"bizhub_page_render"},homefeed:{id:2,name:"home_feed_render"},search:{id:3,name:"search_feed_render"},search_tab:{id:25,name:"search_tab_render"},pin_closeup:{id:13,name:"pin_closeup_details"},product_details:{id:37,name:"product_details_render"},product_details_plus:{id:38,name:"product_details_plus_render"},sterling_audiences:{id:224,name:"sterling_audiences_page_user_nav"},sterling_ads_edit:{id:225,name:"sterling_edit_flow_user_nav"},sterling_reporting_overview:{id:226,name:"sterling_reporting_overview_user_nav"},sterling_reporting_details:{id:227,name:"sterling_reporting_details_user_nav"},own_profile:n,other_profile:o}},client_route_replace:{unauth:{},auth:{own_profile:n,other_profile:o,sterling_reporting_overview:{id:226,name:"sterling_reporting_overview_user_nav"},product_details:{id:37,name:"product_details_render"},product_details_plus:{id:38,name:"product_details_plus_render"},sterling_ads_edit:{id:225,name:"sterling_edit_flow_user_nav"}}}},r={client_route_push:{auth:{pin_closeup:{story_pin:{id:700,name:"story_pin_closeup"}}}}},s={board_picker:16,grid_bottom_spinner:12,facebook_autologin:500,google_autologin:501,story_pin_step:701},l=e=>{var t,i;const{navigationType:n,isAuthenticated:o,segment:s,surface:l}=e,c=o?"auth":"unauth",d=null===(t=r[n])||void 0===t||null===(i=t[c])||void 0===i?void 0:i[l];return s&&d&&d[s]||a[n][c][l]},c=e=>{if("stopwatch"===e.type)return s[e.name]||null;const t=l(e);return t?t.id:null},d=e=>{if("stopwatch"===e.type)return e.name;const{navigationType:t,isAuthenticated:i,segment:n,surface:o}=e,a=i?"auth":"unauth",r=l(e);return r?r.name:`${t}_${a}_${o}${n?"_"+n:""}`}},383434:(e,t,i)=>{i.d(t,{X:()=>a,v:()=>o});var n=i(7789);const o=(e,t)=>{n.DQ&&(e.style.outline=`10px solid ${t}`,e.style.outlineOffset="-30px")},a=e=>(t,...i)=>{n.DQ&&console.log("string"==typeof t?`[PWT:${e}] ${t}`:t,...i)}},317254:(e,t,i)=>{i.d(t,{Z:()=>l});var n=i(969853),o=i(667294),a=i(276602),r=i(543059);var s=i(198462);function l({children:e,isAtEndOfFeed:t,pinData:i,itemCount:l,includeBackgroundImages:c=!1,includeVideos:d=!1,includeSections:u=!1}){var p;return(null===(p=(0,s.N5)())||void 0===p?void 0:p.isAuthenticated)||(u=!0),(0,n.Z)({pinData:i,isAtEndOfFeed:t,includeBackgroundImages:c,includeVideos:d,includeSections:u}),function(e){const t=(0,a.EV)(),i=(0,o.useRef)(null);(0,o.useEffect)((()=>{e!==i.current&&(i.current=e,t&&(0,r.ZP)(r.at))}),[!!t,e])}(l),e}},317672:(e,t,i)=>{i.d(t,{F9:()=>d,LM:()=>l,VZ:()=>a,cQ:()=>u,rZ:()=>r});var n=i(790348),o=i(91885);const a=()=>"number"==typeof window.innerHeight&&"number"==typeof window.pageYOffset&&!!document.querySelector&&!!document.querySelectorAll,r=e=>e instanceof HTMLDivElement||e instanceof HTMLVideoElement?e.getBoundingClientRect():e.parentElement instanceof HTMLElement?e.parentElement.getBoundingClientRect():null,s=e=>{if(e instanceof HTMLImageElement)return e.src;if(e instanceof HTMLVideoElement)return e.attributes.poster.value;const t=((e.style||{}).backgroundImage||"").match(/^url\(["'](.*)["']\)$/);return t&&t[1]||null},l=()=>document.querySelector?document.querySelectorAll(o.wc).length:((0,n.H)("missing_document_query_selector"),0),c=(e,t)=>{const i=r(e);if(!i)return(0,n.H)("missing_client_rect"),!1;if(i.width<100&&i.height<100){if(e instanceof HTMLImageElement)return!1;const t=s(e);if(null!=t&&t.endsWith("svg"))return!1}return(({top:e,height:t},{foldY:i,pageYOffset:n})=>{const o=e+n;if(o>=i)return!1;const a=Math.min(t,i-o);return a>.5*t||a>.2*i})(i,t)},d=()=>{const e=(()=>{if(!document.querySelector)return(0,n.H)("missing_document_query_selector"),null;const e=document.querySelectorAll(o.wc);return e[e.length-1]||null})();if(!e)return!1;const t=window.innerHeight||0,i=window.pageYOffset||0;return e.getBoundingClientRect().top+i>=t},u=(e,t,i)=>{if(!document.querySelector)return(0,n.H)("missing_document_query_selector"),[];const a={foldY:window.innerHeight||0,pageYOffset:window.pageYOffset||0},r=[o.Wf,...e?[o.fF]:[],...t?[o.$N]:[]].join(","),l=[...document.querySelectorAll(r)];if(i){const e=[...document.querySelectorAll('div[data-test-id="board-section"]')],t=e=>{const i=[...e.children];!i.length&&e.style.backgroundImage?l.push(e):i.length&&i.forEach((e=>{t(e)}))};e.forEach((e=>{t(e)}))}return l.reduce(((e,i)=>{if((i instanceof HTMLImageElement||i instanceof HTMLDivElement||i instanceof HTMLVideoElement&&t)&&c(i,a)){const t=s(i);if(t){const n=(t||"").replace(/.*\//,"");return e.concat([{element:i,fileName:n}])}}return e}),[])}},91885:(e,t,i)=>{i.d(t,{$N:()=>l,Kb:()=>n,Wf:()=>r,fF:()=>s,wc:()=>a});const n="pwt-grid-item",o=['div[data-grid-item="true"]',"div.Grid__Item",`div[data-test-id="${n}"]`],a=o.join(","),r=o.map((e=>`${e} img`)).join(","),s=o.map((e=>`${e} div[style*=background-image]`)).join(","),l=o.map((e=>`${e} video`)).join(",")},969853:(e,t,i)=>{i.d(t,{Z:()=>_,v:()=>h});var n=i(667294),o=i(543059),a=i(35954),r=i(226464),s=i(22773),l=i(790348),c=i(276602),d=i(317672),u=i(383434);const p=(0,u.X)("GridProfiler"),h=()=>!!window.addEventListener&&!!window.removeEventListener&&(0,d.VZ)();function _({isAtEndOfFeed:e,pinData:t,includeBackgroundImages:i,includeVideos:h=!1,includeSections:_}){const m=(0,c.EV)(),g=null==m?void 0:m.getId(),x=null==m?void 0:m.setVisuallyCompleteResult,[f,y]=(0,n.useState)({status:"DISABLED"});(0,n.useEffect)((()=>{y(x?{status:"LAYOUT",failedCount:0,numOfItemsChecked:0}:{status:"DISABLED"})}),[g,x]),(0,n.useEffect)((()=>{if("DISABLED"!==f.status&&(0,o.ZP)(`GridVisuallyCompleteProfiler_${f.status}`),p("new status",f),"LAYOUT"===f.status){const e=((e,t)=>{const i=()=>{window.removeEventListener(e,i),t()};return window.addEventListener(e,i),()=>window.removeEventListener(e,i)})("scroll",(()=>{(0,o.ZP)("scrollDuringLayout")}));return()=>{e()}}return()=>{}}),[f.status]),(0,a.Z)((()=>{if(!m||!x)return;const{abort:n,getMetricId:o}=m,a=o();switch(f.status){case"LAYOUT":{const t=((e,t)=>{if(!t){const t=(0,d.LM)();if(t===e)return p("No new items, so skip the viewport-fill check."),{complete:!1,numOfItemsChecked:e};if(!(0,d.F9)())return p("Viewport may not be filled yet."),{complete:!1,numOfItemsChecked:t}}return{complete:!0}})(f.numOfItemsChecked,e);t.complete?y({status:"TIMING",failedCount:0,pinElements:(0,d.cQ)(i,h,_)}):500*f.failedCount>6e4?((0,l.A9)(`images.${(0,r.KJ)(a)}.visuallyComplete.maxLayoutAttempt`),n("visuallyComplete_layoutTimeout"),y({status:"DISABLED"})):y({...f,failedCount:f.failedCount+1,numOfItemsChecked:t.numOfItemsChecked});break}case"TIMING":{const e=(0,s.Cg)(),i=f.pinElements.length,o=[];let c=0,d=0,h=0;if(f.pinElements.forEach((({element:t,fileName:i})=>{const n=e.find((e=>e.name.endsWith(i)));n?n.responseEnd?(o.push(n),(0,u.v)(t,"green")):(h+=1,(0,u.v)(t,"blue")):t instanceof HTMLImageElement&&t.complete?(d+=1,(0,u.v)(t,"red")):(c+=1,(0,u.v)(t,"greenyellow"))})),c||h)100*f.failedCount>6e4?((0,l.A9)(`images.${(0,r.KJ)(a)}.visuallyComplete.maxAttempt`,{tags:{totalImageCount:i,incompleteCount:c,noTimingCount:d,noTimingResponseEndCount:h}}),n("visuallyComplete_timingTimeout"),y({status:"DISABLED"})):y({...f,failedCount:f.failedCount+1});else{if(p(`All ${o.length} images are fetched`),t&&t.length){const e=((e,t)=>{let i=0,n=0,o=0,a=0,r=0;return e=e.filter((e=>"pin"===e.type)),t.forEach(((t,s)=>{var l,c,d,u,p,h;const _=t.fileName.split(".")[0];let m;m=e[s],_!==(null===(l=m)||void 0===l?void 0:l.image_signature)&&(m=e.find((e=>_===(null==e?void 0:e.image_signature)))),void 0===m?r+=1:m.is_promoted||"PROMOTED_PIN"===(null===(c=m.recommendation_reason)||void 0===c?void 0:c.reason)||null!==(d=m)&&void 0!==d&&null!==(u=d.promoter)&&void 0!==u&&u.length?o+=1:null!==m.story_pin_data_id&&void 0!==m.story_pin_data_id?i+=1:null!==(p=m)&&void 0!==p&&null!==(h=p.videos)&&void 0!==h&&h.video_list?n+=1:a+=1})),{storyPinCount:i,videoCount:n,adCount:o,imageCount:a,unknownCount:r}})(t,f.pinElements);Object.entries(e).forEach((([e,t])=>{m.addBinaryAnnotation(e,t,"I16")})),(0,l.A9)(`${(0,r.KJ)(a)}.pinTypes`,{tags:e})}x({imageTimings:o}),y({status:"DISABLED"}),(0,l.A9)(`images.${(0,r.KJ)(a)}.visuallyComplete.complete`,{tags:{totalImageCount:i,noTimingCount:d}})}break}}}),(e=>("LAYOUT"===e.status?500:"TIMING"===e.status&&100)||null)(f))}},790348:(e,t,i)=>{i.d(t,{A9:()=>p,DG:()=>d,H:()=>h,S$:()=>_,iF:()=>u});var n=i(172071),o=i(383434),a=i(50286),r=i(7789);const s=(0,o.X)("logPwtStats");let l=null,c=!0;function d(e){l={browserName:e.userAgent.browserName,browserVersion:e.userAgent.browserVersion,deviceType:(0,a.Mq)(e),isAuthenticated:e.isAuthenticated,isBot:e.isBot,isSocialBot:e.isSocialBot}}const u=e=>{l&&(l.historyAction=e)},p=(e,t={sampleRate:1},i=!0)=>{const o=r.DQ?1:t.sampleRate;if(!l)return s("pwt.metrics_quality.no_context"),void n.Z.increment("pwt.metrics_quality.no_context",o,{eventName:e});const{browserName:a,browserVersion:c,deviceType:d,isBot:u,isSocialBot:p}=l,h=`pwt.${(p?"socialBot":u&&"bot")||"nonbot"}.metrics_quality.${d}.${e}`,_={...t.tags||{},browserName:a,browserVersion:(null==c?void 0:c.split(".")[0])||"0"},m=t.count;i&&(s(`${h}: ${"number"==typeof m?m:1}`),t.tags&&s(Object.entries(t.tags))),r.is||n.Z.count(h,"number"==typeof m?m:1,o,_)},h=(e,t)=>p(`ERROR.${null!=t&&t.action?t.action+".":""}${e}`,{tags:t}),_=({appLoadName:e,clientNavName:t},i)=>{if(l){const n="APP_VOLUME.";c?(p(n.concat(e),{tags:{browserSupportsPwtProfiler:!!i}}),c=!1):"PUSH"===l.historyAction&&p(n.concat(t),{tags:{browserSupportsPwtProfiler:!!i}})}else n.Z.increment("pwt.metrics_quality.no_context",1,{eventName:e.concat(`.${t}`)})}},543059:(e,t,i)=>{i.d(t,{Ao:()=>l,BA:()=>c,L8:()=>u,ZP:()=>p,at:()=>o,gQ:()=>s,tl:()=>d});var n=i(985271);const o="masonryPagination";let a={};const r=e=>`📌 ${e}`,s=()=>{const e={};return Object.keys(a).forEach((t=>{(a[t]||[]).slice(0,3).forEach(((i,n)=>{e[n?`${t}_${n+1}`:t]=i}))})),e},l=(e,t)=>(a[e]||[]).filter((e=>el(e,t)>0,d=()=>{n.Z&&Object.keys(a).forEach((e=>((e,t)=>{const i=r(t);e.clearMarks(i),e.clearMeasures(i)})(n.Z,e))),a={}},u=e=>{n.Z&&(a[e]=(a[e]||[]).concat([n.Z.now()]),((e,t,i,n)=>{const o=r(t);e.measure(o,i,n)})(n.Z,e))},p=e=>{n.Z&&(a[e]=(a[e]||[]).concat([n.Z.now()]),((e,t)=>{const i=r(t);e.mark(i)})(n.Z,e))}},528961:(e,t,i)=>{i.d(t,{cC:()=>a,jy:()=>o,qr:()=>s,sk:()=>r});const n=e=>"number"==typeof e?Math.round(e):e,o=e=>({type:"I16",value:n(e)}),a=e=>({type:"I32",value:n(e)}),r=e=>({type:"STRING",value:e}),s=e=>({type:"BOOL",value:e})},607150:(e,t,i)=>{i.d(t,{D3:()=>a,Hd:()=>l,jh:()=>s,rX:()=>r});var n=i(672115),o=i(156381);const a=e=>({...(0,n.Z)(e),domComplete:e.domComplete||0,domContentLoadedEventEnd:e.domContentLoadedEventEnd||0,domContentLoadedEventStart:e.domContentLoadedEventStart||0,domInteractive:e.domInteractive||0,loadEventEnd:e.loadEventEnd||0,loadEventStart:e.loadEventStart||0}),r=()=>{const{firstInputDelay:e,largestContentfulPaint:t}=(0,o.v2)();return{firstInputDelayStart:(null==e?void 0:e.startTime)||0,firstInputDelayEnd:(null==e?void 0:e.endTime)||0,largestContentfulPaint:t||0}},s=(e,t)=>Object.keys(t).reduce(((i,n)=>({...i,[`${e}${n}`]:t[n]})),{}),l=(e,t)=>Object.keys(e).reduce(((i,n)=>t.includes(n)?{...i,[n]:e[n]}:i),Object.freeze({}))},638089:(e,t,i)=>{i.d(t,{ng:()=>x,rA:()=>y});var n=i(602738),o=i(226464),a=i(22773),r=i(156381),s=i(543059),l=i(528961);const c=(e,t)=>(e||[]).reduce(((e,i)=>({...e,[`experiment.${i}`]:(0,l.sk)(t(i))})),{}),d=(e,t)=>"number"==typeof t?e(t):null,u=e=>e.reduce(((e,t)=>e+t),0),p=(e,t)=>Object.keys(t).reduce(((i,n)=>({...i,[`${e}${n}`]:t[n]})),{}),h=e=>{if(!e.length)return{};const t=e.map((({startTime:e,requestStart:t,responseStart:i,responseEnd:n})=>{const o=t||e;return{startTime:e,requestStart:o,responseStart:i||o,responseEnd:n}})),i=u(t.map((e=>e.requestStart-e.startTime))),n=u(t.map((e=>e.responseStart-e.requestStart))),o=u(t.map((e=>e.responseEnd-e.responseStart))),a=i+n+o,r=u(e.map((e=>e.decodedBodySize||0)));return{decodedBodySize:(0,l.cC)((s=r,Number(Number(s/1024).toFixed(3)))),"duration.all":(0,l.cC)(a),"duration.requestStartToResponseStart":(0,l.cC)(n),"duration.responseStartToResponseEnd":(0,l.cC)(o),"duration.startToRequestStart":(0,l.cC)(i)};var s},_=e=>{const t=e.filter((e=>!!e.responseEnd));return{...e.length?{...h(t),"count.completed":(0,l.cC)(t.length)}:{},"count.all":(0,l.cC)(e.length)}},m=e=>{const t=["timeSecond1","timeSecond2","timeSecond3"],i={timeSecond1:{start:0,end:0,count:0},timeSecond2:{start:0,end:0,count:0},timeSecond3:{start:0,end:0,count:0}},n={script_deferred:[],external:[],visually_complete:[],script:[],css:[],video:[],image:[],xmlhttprequest:[],other:[]};if(e.length){const{requestStart:o,startTime:a}=e[0].timing,r=o||a;i.timeSecond1.start=r,i.timeSecond1.end=r+1e3,i.timeSecond2.start=r+1e3,i.timeSecond2.end=r+2e3,i.timeSecond3.start=r+2e3,i.timeSecond3.end=r+3e3,e.forEach((e=>{const{timing:o}=e;n[e.category]=n[e.category].concat([o]),e.isDeferred&&(n.script_deferred=n.script_deferred.concat([o])),e.isExternal&&(n.external=n.external.concat([o])),e.isVisuallyCompleteRequired&&(n.visually_complete=n.visually_complete.concat([o]));const{requestStart:a,startTime:r,responseEnd:s}=o,l=a||r;t.forEach((e=>{const{start:t,end:n}=i[e];(l>=t&&lt)&&(i[e].count+=1)}))}))}const o={...p("concurrentRequests.",Object.keys(i).reduce(((e,t)=>e={...e,[t]:(0,l.cC)(i[t].count)}),{}))};return{...Object.keys(n).reduce(((e,t)=>({...e,...p(`resource.${t}.`,_(n[t]))})),o)}},g=(e,t,i)=>{var r;const{devicePixelRatio:s,navigator:c,innerWidth:u,innerHeight:p,performance:h}=window,{deviceMemory:_,hardwareConcurrency:m,platform:g,userAgent:x,connection:f}=c,{memory:y}=h,{appType:v,appVersion:b,browserName:P,browserVersion:w,deviceType:S,isAppShell:A,isAuthenticated:k,isBot:E,isSocialBot:T,locale:C,osName:I,stageName:j}=t,R="desktop"===S?v||5:v||6;let D;const{navigationType:z}=e;let O=null;if("initial_app_load"===z){var L;D=1;const e=null===(L=(0,n.Z)("navigation")[0])||void 0===L?void 0:L.transferSize;O=e?parseFloat((.001*e).toFixed(1)):null}else D=4;return{"app.type":(0,l.jy)(R),"app.version":(0,l.sk)(b),"browser.name":(0,l.sk)(P),"browser.version":(0,l.sk)(w),"cpu.speed":(0,l.jy)(m),"device.memory":(0,l.jy)(_),"device.type":(0,l.jy)(0),"device.typeName":(0,l.sk)(S),"device.version":(0,l.sk)("unknown"),"pwt.cause":(0,l.jy)(D),"net.effectiveType":(0,l.sk)((null==f?void 0:f.effectiveType)||null),"net.downlink":(0,l.cC)(d((e=>10*Math.round(e/10)),null==f?void 0:f.downlink)),"net.downlinkMax":(0,l.cC)(d((e=>10*Math.round(e/10)),null==f?void 0:f.downlinkMax)),"net.rtt":(0,l.cC)(d((e=>10*Math.round(e/10)),null==f?void 0:f.rtt)),"net.speed":(0,l.cC)((0,a.Hv)(i,!1)),"pwt.result":(0,l.jy)(1),"view.type":(0,l.cC)(0),"viewport.height":(0,l.cC)(p||0),"viewport.width":(0,l.cC)(u||0),devicePixelRatio:(0,l.cC)(s||0),isAppShell:(0,l.qr)(A),isAuthenticated:(0,l.qr)(k),isBot:(0,l.qr)(E),isSocialBot:(0,l.qr)(T),locale:(0,l.sk)(C),osName:(0,l.sk)(I),...null!==O&&{htmlResponseSize:(0,l.cC)(O)},nextHopProtocol:(0,l.sk)((null===(r=(0,n.Z)("navigation")[0])||void 0===r?void 0:r.nextHopProtocol)||null),platform:(0,l.sk)(g||null),profilerVersion:(0,l.sk)("3"),pwtActionName:(0,l.jy)((0,o.Rp)(e)),stageName:(0,l.sk)(j),userAgent:(0,l.sk)(x),usedJSHeapSize:(0,l.cC)((null==y?void 0:y.usedJSHeapSize)||0),totalJSHeapSize:(0,l.cC)((null==y?void 0:y.totalJSHeapSize)||0),jsHeapSizeLimit:(0,l.cC)((null==y?void 0:y.jsHeapSizeLimit)||0)}},x=({annotateExperiments:e,metricId:t,pwtStaticContext:i,binaryAnnotations:n={},performanceResourceTimings:o=[]})=>({...c(e,i.getExperimentGroup),...g(t,i,o),...n,stopwatchVersion:(0,l.jy)(1)}),f=(e,t)=>{var i;const{navigator:n}=window,{serviceWorker:o}=n,{surface:a,navigationType:c,isAuthenticated:d}=e,{cumulativeLayoutShiftScore:p,longTaskDurations:h}=(0,r.v2)();return{...h.length?{"longTask.count":(0,l.cC)(h.length),"longTask.maxDuration":(0,l.cC)(Math.max(...h)),"longTask.totalDuration":(0,l.cC)(u(h))}:{},cumulativeLayoutShiftScore:(0,l.cC)(100*p),"masonry.paginationMarkCount":(0,l.cC)((0,s.Ao)(s.at,t)),"metricId.isAuthenticated":(0,l.qr)(d),"metricId.navigationType":(0,l.sk)(c),"metricId.surface":(0,l.sk)(a),resourceBufferClearedCount:(0,l.jy)((0,s.Ao)("resourceBufferCleared",t)),scrollDuringLayout:(0,l.qr)((0,s.BA)("scrollDuringLayout",t)),serviceWorker:(0,l.qr)(o?!!o.controller:null),serviceWorkerState:(0,l.sk)((null==o||null===(i=o.controller)||void 0===i?void 0:i.state)||null)}},y=({annotateExperiments:e,binaryAnnotations:t={},entries:i,metricId:n,performanceResources:o,pwtEndTime:a,pwtStaticContext:r})=>({...t,...m(o),...c(e,r.getExperimentGroup),...g(n,r,i),...f(n,a)})},860273:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(985271);const o=()=>{const[e]=n.Z?n.Z.getEntriesByType("navigation"):[];return e}},453821:(e,t,i)=>{i.d(t,{i:()=>n,p:()=>r});const n=({name:e,initiatorType:t})=>{switch(t){case"xmlhttprequest":return"xmlhttprequest";case"img":return"image";case"video":return"video";default:{const t=e.split("."),i=(t.length>1&&t.pop()||"").toLowerCase();return["js","mjs"].includes(i)?"script":"css"===i?"css":["mp4","m4v","mov","ts","m3u8"].includes(i)?"video":["bmp","gif","jpg","jpeg","png","tiff","webp","svg"].includes(i)?"image":"other"}}},o=e=>{const t=e.replace(new RegExp(`^${window.location.origin||""}`),""),i=document&&document.querySelector(`head > script[src='${t}']`);return!!i&&i.hasAttribute("defer")},a=e=>["pinimg","pinterest","pinterdev"].every((t=>!e.includes(`${t}`))),r=(e,t)=>{const i=n(e),{name:r}=e;return{category:i,isDeferred:"script"===i&&o(r),isExternal:a(r),isVisuallyCompleteRequired:"image"===i&&t.includes(r),timing:e}}},558775:(e,t,i)=>{i.d(t,{Z:()=>b});let n=null;const o=(e,t)=>(n=n||{results:[],context:t},n.results.push(e),n);var a=i(176532),r=i(7789),s=i(383434),l=i(226464),c=i(790348),d=i(860273),u=i(358864),p=i(602738),h=i(528961);const _=(e,t)=>Object.keys(e).reduce(((i,n)=>{const o=e[n];return o?{...i,[n]:{timestamp:t+o}}:i}),{}),m=({span:e,timeOrigin:t})=>{return{id:e.id,parent_id:e.parentId||null,result:1,name:e.name,timestamp:t+e.startTime,duration:e.endTime-e.startTime,annotations:_(e.annotationMap,t),binary_annotations:(i=e.binaryAnnotationMap,Object.keys(i).reduce(((e,t)=>{const n=i[t];if(!n)return e;const{value:o,type:a}=n;return null==o?e:e.concat({name:t,value:o,annotation_type:a})}),[]))};var i},g=(e,{startTime:t,endTime:i,annotationMap:n,binaryAnnotationMap:o,parentId:a,traceId:r})=>({name:`pwt/${e}`,startTime:t,endTime:i,annotationMap:n,binaryAnnotationMap:o,parentId:a,id:r}),x=({annotations:e})=>e.reduce(((e,{key:t,timestamp:i})=>({...e,[`server_${t}`]:{timestamp:i}})),{}),f=(e,t)=>({...e,annotations:{...x(t),...e.annotations},binary_annotations:[...t.binary_annotations,...e.binary_annotations]}),y=({traceId:e,actionName:t,result:i,timeOrigin:n,serverDataToJoin:o})=>{let a=m({span:g(t,i),timeOrigin:n}),r=null;return o&&(a=f(a,o),r=((e,t,i)=>{var n;const o=(0,d.Z)();return(null==o?void 0:o.responseEnd)?f(m({span:{name:"html",startTime:0,endTime:(null==o?void 0:o.responseEnd)||1,annotationMap:{},binaryAnnotationMap:{nextHopProtocol:(0,h.sk)((null===(n=(0,p.Z)("navigation")[0])||void 0===n?void 0:n.nextHopProtocol)||null)},id:e.server_span_id||(0,u.Z)(),parentId:t},timeOrigin:i}),e):null})(o,e,n)),{trace_id:e,spans:[a,...r?[r]:[],...i.spans.map((e=>m({span:e,timeOrigin:n})))]}},v=(0,s.X)("reportResult");function b({metricId:e,pwtStaticContext:t,result:i,isAuth:n}){const{serverData:s}=t,d=(0,l.KJ)(e),u=`${i.type}.${d}`,p=`${i.type}.sampled.${d}`,h=void 0!==n&&{tags:{isAuth:n}}||void 0;if((0,c.A9)(i.reason?u.concat(`.${i.reason}`):u,h),(0,c.A9)(i.reason?p.concat(`.${i.reason}`):p,{...h,sampleRate:.5}),"COMPLETE"!==i.type)return void v(`Abort metric ${d}`,i);const _=null!==(m=window.performance)&&void 0!==m&&m.now?Date.now()-window.performance.now():"unknown";var m,g;if("unknown"===_)return v(`Unable to convert to absolute times for ${d} due to missing time origin`),void(0,c.A9)(`missingTimeOrigin.${d}`,h);if(r.is&&(window.PWT_LAB_DATA=o(i,t)),i.spans.length&&(i.spans=i.spans.map((e=>(e.parentId||e.id===i.traceId||"network_resources"===e.name||(e.parentId=i.traceId),e)))),!r.is){const n=e.navigationType&&"initial_app_load"===e.navigationType,o=i.traceId,l=y({traceId:o,actionName:d,result:i,timeOrigin:_,serverDataToJoin:n&&s||null});(0,a.Z)({type:"POST",url:"/_/_/trace/trace/",data:{report_data:JSON.stringify(l),report_context:JSON.stringify((g=t,{debugTrace:r.eD,locale:g.locale,stageName:g.stageName}))}}),v(`PinTrace ${d} will be available shortly: https://pintrace.pinadmin.com/zipkin/traces/${o.toString(16)}`,{duration:i.endTime-i.startTime,result:i,pwtStaticContext:t})}}},672115:(e,t,i)=>{i.d(t,{Z:()=>n});const n=e=>({connectEnd:e.connectEnd||0,connectStart:e.connectStart||0,domainLookupEnd:e.domainLookupEnd||0,domainLookupStart:e.domainLookupStart||0,fetchStart:e.fetchStart||0,requestStart:e.requestStart||0,redirectEnd:e.redirectEnd||0,redirectStart:e.redirectStart||0,responseEnd:e.responseEnd||0,responseStart:e.responseStart||0,secureConnectionStart:e.secureConnectionStart||0,startTime:e.startTime||0,workerStart:e.workerStart||0,unloadEventStart:e.unloadEventStart||0,unloadEventEnd:e.unloadEventEnd||0})},505771:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(358864),o=i(672115),a=i(528961);const r=({category:e,isDeferred:t,isExternal:i})=>[e].concat(t?["deferred"]:[]).concat(i?["external"]:[]).join("_");function s(e,t){const{category:i,timing:s,isDeferred:l,isExternal:c,isVisuallyCompleteRequired:d}=e;return s.responseEnd&&("image"!==i||d)?{name:r(e),id:(0,n.Z)(),parentId:t,startTime:s.startTime,endTime:s.responseEnd,annotationMap:(0,o.Z)(s),binaryAnnotationMap:{category:(0,a.sk)(i),decodedBodySize:(0,a.cC)(s.decodedBodySize||0),initiatorType:(0,a.sk)(s.initiatorType),isDeferred:(0,a.qr)(l),isExternal:(0,a.qr)(c),name:(0,a.sk)(s.name),nextHopProtocol:(0,a.sk)(s.nextHopProtocol),transferSize:(0,a.cC)(s.transferSize||0)}}:null}},584992:(e,t,i)=>{i.d(t,{Z:()=>w});var n=i(667294),o=i(425288),a=i(198462),r=i(729524),s=i(860273),l=i(169213),c=i(358864),d=i(558775),u=i(505771),p=i(985271),h=i(383434),_=i(543059),m=i(453821),g=i(638089),x=i(607150),f=i(790348);const y=(0,h.X)("PwtStopwatch"),v=(e,t)=>{if(p.Z){if("start"===t.type&&!e.isTiming){const{name:i,startTime:n,navigationType:o}=t;return(0,f.A9)(`TIMING.${i}`),{isTiming:!0,name:i,isSampled:t.isSampled,startTime:"number"==typeof n?n:p.Z.now(),metricId:{type:"stopwatch",name:i,navigationType:o},pwtStaticContext:t.pwtStaticContext,annotations:e.annotations,binaryAnnotations:e.binaryAnnotations,spans:e.spans,traceId:e.traceId,spanNameUpdates:e.spanNameUpdates}}if(!e.isTiming){if(!t.bypassIsTimingCheck){const i=t.name||e.name;return y("ignoring action - stopwatch is not actively timing",t),(0,f.A9)(`WARN.${i}.noTiming.${t.type}`),e}y("allowing action while stopwatch is not actively timing (bypassIsTimingCheck is set to true)",t)}if("annotate"===t.type){const i=p.Z.now();return y(`adding annotation {${t.label}: ${i}}`),{...e,annotations:e.annotations.concat([{label:t.label,timestamp:i}])}}if("binaryAnnotate"===t.type)return y(`adding binary annotation {${t.name}: ${String(t.value)}}`),{...e,binaryAnnotations:{...e.binaryAnnotations,[t.name]:{value:t.value,type:t.annotationType}}};if("binaryAnnotateOperation"===t.type){const{value:i,type:n}=t.binaryAnnotationValueAndType;if(e.binaryAnnotations[t.name]){const o=e.binaryAnnotations[t.name].value||0;return y(`operating on binary annotation {\n name: ${t.name}\n pervious value: ${String(o)}\n operand: ${String(i)}\n }`),{...e,binaryAnnotations:{...e.binaryAnnotations,[t.name]:{value:i?t.operation(o,i):o,type:n}}}}return{...e,binaryAnnotations:{...e.binaryAnnotations,[t.name]:{value:i,type:n}}}}if("addSubspan"===t.type){y(`adding subspan {${t.name}}`);-1!==e.spans.findIndex((e=>e.name===t.name))&&y(`WARNING: adding duplicate subspan name {${t.name}}`);const i=t.id||(0,c.Z)();-1!==e.spans.findIndex((e=>e.id===i))&&y(`WARNING: adding duplicate subspan id {${t.name}: ${i}}`);let n=0;return t.startTime?n=t.startTime:e.startTime?n=e.startTime:y(`WARNING: adding subspan {${t.name}} without start time`),{...e,spans:[...e.spans,{name:t.name,id:i,startTime:n,endTime:t.endTime||1/0,annotationMap:{...t.annotations},binaryAnnotationMap:{...t.binaryAnnotations},parentId:t.parentId}]}}if("subspanStart"===t.type){var i;y(`starting subspan {${t.name}}`);-1!==e.spans.findIndex((e=>e.name===t.name))&&y(`WARNING: starting duplicate subspan name {${t.name}}`);const n=t.id||(0,c.Z)();-1!==e.spans.findIndex((e=>e.id===n))&&y(`WARNING: starting duplicate subspan id {${t.name}: ${n}}`);const o=t.parentName?null===(i=e.spans.find((e=>e.name===t.parentName)))||void 0===i?void 0:i.id:null;return{...e,spans:[...e.spans,{name:t.name,id:n,parentId:t.parentId||o,startTime:p.Z.now(),endTime:1/0,annotationMap:{...t.annotations},binaryAnnotationMap:{...t.binaryAnnotations}}]}}if("subspanStop"===t.type){if(y(`stopping subspan {${t.name}}`),!t.id){e.spans.reduce(((e,i)=>(i.name===t.name&&e.push(i),e)),[]).length>1&&(0,f.H)("duplicate_subspan_stop_name",{name:t.name,type:t.type})}const i=t.id?e.spans.findIndex((e=>e.id===t.id)):e.spans.findIndex((e=>e.name===t.name));return i>-1?(e.spans[i].endTime=p.Z.now(),t.annotations&&(e.spans[i].annotationMap={...e.spans[i].annotationMap,...t.annotations}),t.binaryAnnotations&&(e.spans[i].binaryAnnotationMap={...e.spans[i].binaryAnnotationMap,...t.binaryAnnotations})):(0,f.H)("invalid_subspan_stop_name",{name:t.name}),e}if("subspanUpdateName"===t.type){e.spans.reduce(((e,i)=>(i.name===t.currentName&&e.push(i),e)),[]).length>1&&(0,f.H)("duplicate_subspan_stop_name",{name:t.currentName,type:t.type});const i=e.spans.findIndex((e=>e.name===t.currentName));return i>-1?t.updateWhenStopwatchCompletes?e.spanNameUpdates=[...e.spanNameUpdates,{currentName:t.currentName,newName:t.newName}]:(y(`renaming subspan {${t.currentName}} to {${t.newName}}`),e.spans[i].name=t.newName):(0,f.H)("no_subspan_found_to_rename",{name:t.currentName}),e}if("stop"===t.type&&e.isTiming){const{startTime:i,metricId:n,pwtStaticContext:o,annotations:a,binaryAnnotations:l,isSampled:h,spans:f,traceId:v}=e;if(t.stopwatchPerformanceObserver&&t.stopwatchPerformanceObserver.disconnect(),h){const h=t.stopTime||p.Z.now(),b=[...f.map((t=>{t.endTime===1/0&&(t.endTime=h);const i=e.spanNameUpdates.findIndex((e=>t.name===e.currentName));return i>-1&&(y(`renaming subspan {${t.name}} to {${e.spanNameUpdates[i].newName}}`),t.name=e.spanNameUpdates[i].newName,e.spanNameUpdates=e.spanNameUpdates.filter((e=>e.newName!==t.name))),t}))];if(t.manualAndResourceSpans||0===f.length){const e=(0,c.Z)();b.push({name:"network_resources",id:e,startTime:i,endTime:h,annotationMap:{},binaryAnnotationMap:{},parentId:null},...(t.customStopwatchBuffer||[]).map((t=>(0,u.Z)((0,m.p)(t,[]),e))).filter(Boolean))}const P="initial_app_load"===n.navigationType&&(0,s.Z)(),w={type:"COMPLETE",traceId:v,startTime:i,endTime:h,spans:b,annotationMap:{...(0,r.Z)(a),...(0,x.jh)("browser_",P?(0,x.D3)(P):{}),...(0,x.jh)("mark_",(0,_.gQ)())},binaryAnnotationMap:(0,g.ng)({metricId:n,pwtStaticContext:o,binaryAnnotations:l,performanceResourceTimings:t.customStopwatchBuffer||[]})};(0,d.Z)({metricId:n,pwtStaticContext:o,result:w})}return{isTiming:!1,name:e.name,annotations:[],binaryAnnotations:{},spans:[],traceId:(0,c.Z)(),spanNameUpdates:[]}}if("error"===t.type){const{error:i,stopwatchPerformanceObserver:n}=t;return i&&(0,f.H)(i),n&&n.disconnect(),{isTiming:!1,name:e.name,annotations:[],binaryAnnotations:{},spans:[],traceId:(0,c.Z)(),spanNameUpdates:[]}}if("abort"===t.type&&e.isTiming){t.stopwatchPerformanceObserver&&t.stopwatchPerformanceObserver.disconnect();const{metricId:i,pwtStaticContext:n}=e,o=t.reason||"";return(0,d.Z)({metricId:i,pwtStaticContext:n,result:{type:"ABORT",reason:o}}),{isTiming:!1,name:e.name,annotations:[],binaryAnnotations:{},spans:[],traceId:(0,c.Z)(),spanNameUpdates:[]}}}return e},b=({name:e,sampleRate:t,navigationType:i,manualAndResourceSpans:o=!1})=>{const r=(0,a.N5)(),s=(0,n.useRef)([]),d=(0,n.useRef)(null),[u,p]=(0,n.useReducer)(v,{isTiming:!1,name:e,annotations:[],binaryAnnotations:{},spans:[],traceId:(0,c.Z)(),spanNameUpdates:[]});return r?{isTiming:u.isTiming,start:n=>{if(window.PerformanceObserver){const e=1e3;s.current=[],d.current=(0,l.Z)({entryTypes:["resource"]},(t=>{s.current=s.current.concat(t.getEntries()),s.current.length>e&&(s.current=s.current.slice(-e))}))}const o={type:"start",startTime:n,name:e,navigationType:i,pwtStaticContext:r,isSampled:!t||Math.random()p({type:"stop",stopTime:e,stopwatchPerformanceObserver:d.current,customStopwatchBuffer:s.current,manualAndResourceSpans:o}),error:e=>{p({type:"error",stopwatchPerformanceObserver:d.current,error:e})},abort:e=>p({type:"abort",stopwatchPerformanceObserver:d.current,customStopwatchBuffer:s.current,reason:e}),annotate:(e,t,i=!1)=>p({type:"annotate",label:e,parentId:t,bypassIsTimingCheck:i}),binaryAnnotate:(e,t,i,n,o=!1)=>p({type:"binaryAnnotate",name:e,value:t,annotationType:i,parentId:n,bypassIsTimingCheck:o}),binaryAnnotateOperation:({name:e,binaryAnnotationValueAndType:t,operation:i,parentId:n,bypassIsTimingCheck:o=!1})=>p({type:"binaryAnnotateOperation",name:e,binaryAnnotationValueAndType:t,operation:i,parentId:n,bypassIsTimingCheck:o}),addSubspan:({name:e,startTime:t,endTime:i,annotations:n={},binaryAnnotations:o={},parentId:a=null,id:r=null,bypassIsTimingCheck:s=!1})=>p({type:"addSubspan",name:e,startTime:t,endTime:i,annotations:n,binaryAnnotations:o,parentId:a,id:r,bypassIsTimingCheck:s}),subspanStart:({name:e,annotations:t={},binaryAnnotations:i={},parentId:n=null,parentName:o=null,id:a=null,bypassIsTimingCheck:r=!1})=>p({type:"subspanStart",name:e,annotations:t,binaryAnnotations:i,parentId:n,parentName:o,id:a,bypassIsTimingCheck:r}),subspanStop:({name:e,annotations:t,binaryAnnotations:i,id:n,parentId:o,bypassIsTimingCheck:a=!1})=>p({type:"subspanStop",name:e,annotations:t,binaryAnnotations:i,id:n,parentId:o,bypassIsTimingCheck:a}),subspanUpdateName:({currentName:e,newName:t,bypassIsTimingCheck:i,updateWhenStopwatchCompletes:n=!0})=>p({type:"subspanUpdateName",currentName:e,newName:t,bypassIsTimingCheck:i,updateWhenStopwatchCompletes:n}),getSpans:(e,t)=>u.spans.filter((i=>i[e]===t)),getTraceId:()=>u.traceId}:null};var P=i(785893);const w=({name:e,sampleRate:t,abortOnUnloadOrClientNavigation:i=!0,navigationType:r,manualAndResourceSpans:s=!1})=>{const{Provider:l,useMaybeHook:c}=(0,o.Z)(`Stopwatch_${e}`);return{Provider:function({children:o}){const c=b({name:e,sampleRate:t,navigationType:r,manualAndResourceSpans:s}),d=(0,a.fM)(),u=d?d.time:0,p=(0,n.useRef)(!1),h=null==c?void 0:c.isTiming,_=(0,n.useCallback)((t=>{p.current?(p.current=!1,null==c||c.abort(t)):(0,f.A9)(`WARN.${e}.noTiming.abort`)}),[c]),m=(0,n.useCallback)(((e,t)=>{null==c||c.annotate(e,t)}),[c]),g=(0,n.useCallback)(((e,t,i,n)=>{null==c||c.binaryAnnotate(e,t,i,n)}),[c]),x=(0,n.useCallback)((({name:e,binaryAnnotationValueAndType:t,operation:i,parentId:n,bypassIsTimingCheck:o})=>{null==c||c.binaryAnnotateOperation({name:e,binaryAnnotationValueAndType:t,operation:i,parentId:n,bypassIsTimingCheck:o})}),[c]),y=(0,n.useCallback)((({name:e,startTime:t,endTime:i,annotations:n,binaryAnnotations:o,parentId:a,id:r,bypassIsTimingCheck:s})=>{null==c||c.addSubspan({name:e,startTime:t,endTime:i,annotations:n,binaryAnnotations:o,parentId:a,id:r,bypassIsTimingCheck:s})}),[c]),v=(0,n.useCallback)((({name:e,annotations:t,binaryAnnotations:i,parentId:n,parentName:o,id:a,bypassIsTimingCheck:r})=>{null==c||c.subspanStart({name:e,annotations:t,binaryAnnotations:i,parentId:n,parentName:o,id:a,bypassIsTimingCheck:r})}),[c]),w=(0,n.useCallback)((({name:e,annotations:t,binaryAnnotations:i,id:n,parentId:o,bypassIsTimingCheck:a})=>{null==c||c.subspanStop({name:e,annotations:t,binaryAnnotations:i,id:n,parentId:o,bypassIsTimingCheck:a})}),[c]),S=(0,n.useCallback)((({currentName:e,newName:t,bypassIsTimingCheck:i,updateWhenStopwatchCompletes:n})=>{null==c||c.subspanUpdateName({currentName:e,newName:t,bypassIsTimingCheck:i,updateWhenStopwatchCompletes:n})}),[c]),A=(0,n.useCallback)(((e,t)=>c?c.getSpans(e,t):[]),[c]),k=(0,n.useCallback)((()=>c?c.getTraceId():0),[c]),E=(0,n.useCallback)((t=>{p.current?(p.current=!1,null==c||c.error(t)):(0,f.A9)(`WARN.${e}.noTiming.error`)}),[c]),T=(0,n.useCallback)((e=>{p.current&&(null==c||c.abort("duplicated_init_stopwatch_action")),p.current=!0,null==c||c.start(e)}),[c]),C=(0,n.useCallback)((t=>{p.current?(p.current=!1,null==c||c.stop(t)):(0,f.A9)(`WARN.${e}.noTiming.stop`)}),[c]);(0,n.useEffect)((()=>()=>{i&&_("unloadOrClientNavigation")}),[u]);const I=(0,n.useMemo)((()=>({isTiming:h,abort:_,addAnnotation:m,addBinaryAnnotation:g,binaryAnnotationOperation:x,addSubspan:y,subspanStart:v,subspanStop:w,getSpans:A,getTraceId:k,updateSubspanName:S,stop:C,error:E,start:T})),[h,_,m,g,x,y,v,w,A,k,S,C,E,T]);return(0,P.jsx)(l,{value:I,children:o})},useHook:c}}},31062:(e,t,i)=>{i.d(t,{ku:()=>A,Jx:()=>P,PY:()=>S});var n=i(860273),o=i(156381);const a=()=>(0,o.PJ)().reduce(((e,{identifier:t,loadTime:i,renderTime:n})=>e[`${t}_loadTime`]?e[`${t}_dupe_loadTime`]?{...e,[`${t}_dupe_loadTime`]:i,[`${t}_dupe_renderTime`]:n}:e:{...e,[`${t}_loadTime`]:i,[`${t}_renderTime`]:n}),Object.freeze({}));var r=i(672115),s=i(607150),l=i(22773),c=i(464609);const d=e=>{switch(e){case"pin_closeup":{const e=(0,c.Z)();return(e=>{const t=(0,l.y0)();return e.reduce(((e,{name:i,match:n})=>t.filter((e=>n(e))).slice(0,2).reduce(((e,t,n)=>({...e,...(0,s.jh)(`${i}${n?"_dupe1":""}_`,(0,r.Z)(t))})),e)),Object.freeze({}))})([{name:"mainImage",match:({name:t})=>t===e},{name:"PinResource",match:({name:e})=>e.includes("PinResource")}])}default:return{}}};var u=i(169213),p=i(358864),h=i(558775),_=i(505771),m=i(383434),g=i(543059),x=i(453821),f=i(638089),y=i(790348);const v=(0,m.X)("LightStopwatch"),b={},P=({annotateExperiments:e,annotateMarks:t,annotateResourceTimingForSurface:i,name:o,pwtStaticContext:r})=>{const l=(()=>{let e=[],t=null;if(window.PerformanceObserver){const i=1e3;t=(0,u.Z)({entryTypes:["resource"]},(t=>{e=e.concat(t.getEntries()),e.length>i&&(e=e.slice(-i))}))}return{get:()=>e,disconnect:()=>{t&&t.disconnect()}}})();let c=!0,m={};(0,y.A9)(`TIMING.${o}`,{tags:{isAuth:r.isAuthenticated}});const P={type:"stopwatch",name:o,navigationType:"initial_app_load"},w={abort:e=>{c?(c=!1,(0,h.Z)({metricId:P,pwtStaticContext:r,result:{type:"ABORT",reason:e}})):(0,y.H)("duplicate_abort_action",{action:o})},error:(e,t)=>{const i={...t,action:o};c?(e&&(0,y.H)(e,i),l&&l.disconnect(),c=!1):(0,y.H)("duplicate_error_action",i)},stop:u=>{if(!c)return void(0,y.H)("duplicate_stop_action",{action:o});c=!1,l.disconnect();const v=(0,p.Z)(),b=(0,n.Z)(),w=l.get(),S={type:"COMPLETE",traceId:(0,p.Z)(),startTime:0,endTime:u,spans:[{name:"network_resources",id:v,startTime:0,endTime:u,annotationMap:{},binaryAnnotationMap:{},parentId:null},...w.map((e=>(0,_.Z)((0,x.p)(e,[]),v))).filter(Boolean)],annotationMap:{...(0,s.jh)("resource_",i?d(i):{}),...(0,s.jh)("element_",a()),...(0,s.jh)("mark_",t&&t.length?(0,s.Hd)((0,g.gQ)(),t):{}),...(0,s.jh)("browser_",b?(0,s.D3)(b):{})},binaryAnnotationMap:(0,f.ng)({annotateExperiments:e,metricId:P,pwtStaticContext:r,performanceResourceTimings:w,binaryAnnotations:m})};(0,h.Z)({metricId:P,pwtStaticContext:r,result:S,isAuth:r.isAuthenticated})},addBinaryAnnotation:(e,t,i)=>{v(`adding binary annotation {${e}: ${String(t)}}`),m={...m,[e]:{value:t,type:i}}}};return b[o]=w,w},w=e=>b[e],S=e=>!!w(e),A=({stopwatchName:e,binaryAnnotationName:t,value:i,annotationType:n})=>{const o=w(e);o&&o.addBinaryAnnotation(t,i,n)}},47168:(e,t,i)=>{i.d(t,{T:()=>r,g:()=>s});var n=i(584992);const{Provider:o,useHook:a}=(0,n.Z)({name:"story_pin_step",sampleRate:1}),r=o,s=a},729524:(e,t,i)=>{i.d(t,{Z:()=>n});const n=e=>{let t={};e.forEach((({label:e,timestamp:i})=>{t={...t,[e]:(t[e]||[]).concat([i])}}));let i=Object.freeze({});return Object.keys(t).forEach((e=>{(t[e]||[]).forEach(((t,n)=>{const o=n?`${e}_${n+1}`:e;i={...i,[o]:t}}))})),i}},156381:(e,t,i)=>{i.d(t,{Af:()=>g,Bn:()=>_,Kj:()=>p,PJ:()=>l,UQ:()=>x,Ux:()=>c,on:()=>r,v2:()=>d});var n=i(581341),o=i(169213);const a={cumulativeLayoutShiftScore:0,firstInputDelay:null,longTaskDurations:[],largestContentfulPaint:null,elementTimings:[]},r=()=>{a.longTaskDurations=[]},s=(0,n.Z)((()=>a.elementTimings)),l=()=>s.get(),c=e=>{e&&s.save(),a.elementTimings=[]},d=()=>a;let u=0;const p=()=>u;let h;const _=()=>h;let m;const g=()=>m,x=()=>{(0,o.Z)({type:"element",buffered:!0},(e=>{a.elementTimings=a.elementTimings.concat(e.getEntries().reduce(((e,{identifier:t,loadTime:i,renderTime:n})=>e.concat("string"==typeof t&&"number"==typeof i&&"number"==typeof n?[{identifier:t,loadTime:i,renderTime:n}]:[])),[]))})),(0,o.Z)({entryTypes:["longtask"]},(e=>{e.getEntries().map((e=>a.longTaskDurations.push(e.duration)))}),(()=>r())),(0,o.Z)({type:"first-input",buffered:!0},((e,t)=>{const i=e.getEntries()[0];i&&i.startTime&&i.processingStart&&(a.firstInputDelay={startTime:i.startTime,endTime:i.processingStart},m=a.firstInputDelay.startTime),t.disconnect()}),(()=>{a.firstInputDelay=null})),(0,o.Z)({type:"largest-contentful-paint",buffered:!0},(e=>{const t=e.getEntries(),i=t.length,n=t[i-1];n&&(u=i,a.largestContentfulPaint=n.renderTime||n.loadTime||null,h=n.renderTime||n.loadTime||null)})),(0,o.Z)({type:"layout-shift",buffered:!0},(e=>{e.getEntries().forEach((e=>{e.hadRecentInput||(a.cumulativeLayoutShiftScore+=e.value)}))}))}},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";case"CA":return"CA";case"GB":return"GB";case"FR":return"FR";case"DE":return"DE";default:return"OTHER"}}},581341:(e,t,i)=>{i.d(t,{Z:()=>n});const n=e=>{let t=null;return{get:()=>t||e(),save:()=>{t=e()}}}},435851:(e,t,i)=>{i.d(t,{Z:()=>n});const n=e=>{const{deviceType:t,isBot:i,isSocialBot:n}=e;return`coreWebVitalsLite.v1.${(n?"socialBot":i&&"bot")||"nonbot"}.${t}`}},169213:(e,t,i)=>{i.d(t,{Z:()=>n});const n=(e,t,i)=>{if(!window.PerformanceObserver)return null;try{const n=new window.PerformanceObserver(t);return n.observe(e),window.addEventListener("beforeunload",(()=>{n.disconnect()})),i&&window.addEventListener("popstate",(()=>{i()})),n}catch(n){return null}}},464609:(e,t,i)=>{i.d(t,{Z:()=>o,f:()=>n});const n="closeupImage",o=()=>{if(!document.querySelector)return null;const e=document.querySelector('head>link[rel="preload"][as="image"][href^="https://i.pinimg.com/"]');return e instanceof HTMLLinkElement?e.href:null}},358864:(e,t,i)=>{function n(){let e="";for(let t=0;t<15;t+=1){e+="0123456789"[Math.floor(10*Math.random())]}return Number(e)}i.d(t,{Z:()=>n})},22773:(e,t,i)=>{i.d(t,{Cg:()=>m,Eg:()=>x,Hv:()=>y,LH:()=>f,MM:()=>v,X_:()=>p,y0:()=>g});var n=i(581341),o=i(169213),a=i(543059),r=i(602738),s=i(7789),l=i(453821),c=i(790348);let d;function u(){window.performance&&window.performance.clearResourceTimings&&((0,a.ZP)("resourceBufferCleared"),s.DQ&&console.info("Warning: Clearing resource timings in default buffer."),(0,c.A9)("resourceBufferSize",{count:(0,r.Z)("resource").length}),window.performance.clearResourceTimings())}const p=({size:e})=>{if(window.performance){window.PerformanceObserver?(d=(0,r.Z)("resource"),(0,o.Z)({entryTypes:["resource"]},(t=>{d=(d||[]).concat(t.getEntries()),d.length>e&&(d=d.slice(-e))}))):(window.addEventListener("popstate",(()=>{(0,r.Z)("resource").length>e&&u()})),window.performance.setResourceTimingBufferSize&&window.performance.setResourceTimingBufferSize(e));try{window.performance.onresourcetimingbufferfull=()=>{d||u()}}catch(t){}}},h=()=>d||(0,r.Z)("resource"),_=(0,n.Z)(h),m=h,g=()=>_.get(),x=e=>{e&&_.save(),d&&((0,c.A9)("customBufferSize",{count:d.length}),d=[]),u()},f=()=>({customBufferSize:d?d.length:0,defaultBufferSize:(0,r.Z)("resource").length}),y=(e,t=!0)=>{let i=0,n=0;const o=(a=e.filter((e=>t?!("image"!==(0,l.i)(e)||(e.responseEnd||(i+=1),e.transferSize||(n+=1),!e.responseEnd||!e.transferSize)):!!e.responseEnd&&!!e.transferSize)).map((e=>8*(e.transferSize||0)/((e.responseEnd-e.responseStart)/1e3)/1e3))).length?a.reduce(((e,t)=>e+t),0)/a.length:null;var a;return t&&(i>0&&(0,c.A9)("images.downloadSpeed.noResponseEnd",{tags:{count:i}},!1),n>0&&(0,c.A9)("images.downloadSpeed.transferSize",{tags:{count:n}},!1)),o},v=e=>{if(!e)return"unknown";const t=Math.floor(e/1e3);return t<1?"0-1":t<5?"1-5":t<10?"5-10":t<20?"10-20":t<40?"20-40":t<80?"40-80":"80_or_above"}},602738:(e,t,i)=>{function n(e){var t,i;return(null===(t=window)||void 0===t||null===(i=t.performance)||void 0===i?void 0:i.getEntriesByType)&&window.performance.getEntriesByType(e)||[]}i.d(t,{Z:()=>n})},985271:(e,t,i)=>{i.d(t,{Z:()=>n});const n=(o=window.performance)&&o.clearMarks&&o.clearMeasures&&o.clearResourceTimings&&o.getEntries&&o.getEntriesByName&&o.getEntriesByType&&o.mark&&o.measure&&o.now&&o.setResourceTimingBufferSize?o:null;var o},571757:(e,t,i)=>{i.d(t,{Z:()=>y});var n=i(121151),o=i(898781),a=i(667294),r=i(700380),s=i(784590),l=i(116303),c=i(883119),d=i(879564),u=i(785893);const p=function({user:e,viewer:t}){const i=(0,o.ZP)(),{full_name:n,image_medium_url:a,domain_url:r,domain_verified:s,reactionType:p,username:h}=e,_=t&&!!t.id&&t.id===e.id,m=d.GY[p],{staticAsset:g}=(0,d.fW)(m,i);return(0,u.jsxs)(c.xu,{display:"flex",justifyContent:"between",paddingX:6,marginTop:6,children:[(0,u.jsx)(c.iP,{role:"link",href:`/${h}/`,children:(0,u.jsxs)(c.kC,{alignItems:"center",direction:"row",justifyContent:"start",children:[(0,u.jsx)(c.xu,{width:40,children:(0,u.jsx)(l.Z,{accessibilityLabel:"",name:n,src:a})}),(0,u.jsxs)(c.xu,{display:"flex",direction:"column",paddingX:2,children:[(0,u.jsx)(c.xv,{weight:"bold",children:n}),_&&(0,u.jsx)(c.xv,{size:"200",children:i._('That\'s you', 'Indicates that the viewer is the person in the list', 'Indicates that the viewer is the person in the list')}),!_&&r&&s&&(0,u.jsx)(c.xv,{size:"200",children:r})]})]})}),(0,u.jsx)(c.xu,{padding:2,display:"flex",alignItems:"center",children:(0,u.jsx)(c.xu,{width:26,height:26,dangerouslySetInlineStyle:{__style:{backgroundImage:`url(${g})`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"cover"}}})})]})};var h=i(19121),_=i(112690),m=i(304903);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}class x extends a.Component{constructor(...e){super(...e),g(this,"setRef",(e=>{e&&!this.list&&(this.list=e.parentElement,this.list&&this.list.addEventListener("scroll",this.handleScroll))})),g(this,"fetchMore",(()=>{const{feedResource:e}=this.props;e.isFetching||(e.isAtEnd?window.removeEventListener("scroll",this.handleScroll):e.fetchMore())})),g(this,"handleScroll",(0,r.Z)((()=>{const{feedResource:e}=this.props;if(e.isFetching||e.isAtEnd)return;const t=(0,m.Uy)(this.list);(0,m.aZ)(this.list)-(0,m.MX)(this.list)-500){const n=e.map((e=>{const{user:t,reaction_type:i}=e;return{...t,reactionType:i}}));return(0,u.jsxs)(c.xu,{marginBottom:6,maxHeight:400,ref:this.setRef,children:[n.map((e=>(0,u.jsx)(p,{user:e,viewer:i},e.id))),t&&(0,u.jsx)("div",{className:"loadingSpinner",children:(0,u.jsx)(c.$j,{accessibilityLabel:this.props.i18n._('Loading user list', 'Accessibility lable for user list spinner', 'Accessibility lable for user list spinner'),show:!0})})]})}return(0,u.jsx)("div",{className:"loadingSpinner",children:(0,u.jsx)(c.$j,{accessibilityLabel:this.props.i18n._('Loading user list', 'Accessibility lable for user list spinner', 'Accessibility lable for user list spinner'),show:!0})})}}function f(e){const t=(0,o.ZP)(),i=(0,h.Z)(),n=(0,_.Z)(),a=(0,s.Z)({name:"ReactionsResource",options:{pin_id:e.pinId},noCache:!0});return(0,u.jsx)(x,{...e,feedResource:a,viewer:i,i18n:t,logContextEvent:n})}function y({pinId:e,aggregatedReactions:t,totalReactionCount:i,onDismiss:a,logView:r}){const s=(0,o.ZP)(),l=(0,u.jsx)(c.kC,{alignItems:"stretch",justifyContent:"center",children:(0,u.jsxs)(c.xu,{display:"flex",direction:"row",alignItems:"center",height:19,paddingY:6,children:[(0,u.jsx)(c.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:t}),(0,u.jsx)(c.xu,{paddingX:1,children:(0,u.jsx)(c.xv,{weight:"bold",children:i})})]})});return(0,u.jsx)(n.ZP,{accessibilityModalLabel:s._('Users who have reacted to this.', 'Label for a modal showing a list of users who have reacted to a pin', 'Label for a modal showing a list of users who have reacted to a pin'),heading:l,onDismiss:a,size:"sm",allowScroll:!0,children:(0,u.jsx)(f,{pinId:e,logView:r})})}},139134:(e,t,i)=>{i.d(t,{Z:()=>g});var n=i(667294),o=i(571757),a=i(694379),r=i(349700),s=i(773285),l=i(898781),c=i(112690),d=i(883119),u=i(681227),p=i(879564),h=i(785893);function _(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class m extends n.PureComponent{constructor(...e){super(...e),_(this,"state",{displayAggregationModal:!1}),_(this,"showAggregationModal",(()=>{const{disableModal:e,logContextEvent:t}=this.props;e||(this.setState({displayAggregationModal:!0}),t({event_type:101,view_type:3,view_parameter:139,component:13458,element:11435,aux_data:{objectId:this.props.pinId}}))})),_(this,"hideAggregationModal",(()=>{this.setState({displayAggregationModal:!1})}))}render(){const{displayAggregationModal:e}=this.state,{isStoryPin:t,pinId:i,reactionByMe:n,reactionCounts:s,checkExperiment:l}=this.props,c=l("closeup_dweb_onepin_title_and_description").anyEnabled,_=s?(0,u.At)(s):null,m=s?(0,u.Ud)(s):0,g=n&&m>=2?(0,r.nk)(this.props.i18n.ngettext('You and {{ count }} other', 'You and {{ count }} others', m - 1, 'specifies the amount of people who have reacted to a pin', 'specifies the amount of people who have reacted to a pin'),{count:(0,h.jsx)(a.Z,{value:m-1,shortform:!0,shortformMaximumFractionDigits:1})}):(0,h.jsx)(a.Z,{value:m,shortform:!0,shortformMaximumFractionDigits:1}),x=!!_&&_.length>0&&_.filter((e=>!!p.GY[e])).map(((e,t)=>{const i=p.GY[e],{gridAsset:n}=(0,p.fW)(i,this.props.i18n);return(0,h.jsx)(d.xu,{dangerouslySetInlineStyle:{__style:{marginRight:2}},children:(0,h.jsx)(d.xu,{dangerouslySetInlineStyle:{__style:{backgroundImage:`url(${n})`,backgroundPosiiton:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"}},height:19,width:19})},t)})),f=!!x&&(0,h.jsx)(d.xu,{display:"inlineBlock",children:(0,h.jsxs)(d.xu,{alignItems:"center",direction:"row",display:"flex",height:t?"auto":19,paddingY:t?0:6,dangerouslySetInlineStyle:{__style:{cursor:"pointer"}},children:[(0,h.jsx)(d.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:x}),(0,h.jsx)(d.xu,{paddingX:1,children:(0,h.jsx)(d.xv,{size:c?"200":"300",weight:"bold",children:g})})]})});return(0,h.jsxs)(d.xu,{children:[(0,h.jsx)("div",{onClick:this.showAggregationModal,onKeyDown:this.showAggregationModal,role:"presentation",children:f}),e&&m&&(0,h.jsx)(o.Z,{aggregatedReactions:x,onDismiss:this.hideAggregationModal,pinId:i,totalReactionCount:m})]})}}const g=function(e){const t=(0,l.ZP)(),i=(0,c.Z)(),{checkExperiment:n}=(0,s.F)();return(0,h.jsx)(m,{...e,i18n:t,checkExperiment:n,logContextEvent:i})}},879564:(e,t,i)=>{i.d(t,{GY:()=>B,Jg:()=>N,fW:()=>M});var n=i(667753),o=i.n(n),a=i(503697),r=i.n(a),s=i(236804),l=i.n(s),c=i(850115),d=i.n(c),u=i(68034),p=i.n(u),h=i(615601),_=i.n(h),m=i(379507),g=i.n(m),x=i(318634),f=i.n(x),y=i(879210),v=i.n(y),b=i(637956),P=i.n(b),w=i(459588),S=i.n(w),A=i(104220),k=i.n(A),E=i(909745),T=i.n(E),C=i(480597),I=i.n(C),j=i(138009),R=i.n(j),D=i(128206),z=i.n(D),O=i(674218),L=i.n(O);const N=["goodIdea","love","thanks","wow","haha"],B={7:"goodIdea",1:"love",13:"thanks",11:"wow",5:"haha"},M=(e,t,i="darkGray")=>{const n={default:{staticAsset:"white"===i?r():o()},goodIdea:{staticAsset:p(),animatedAsset:l(),gridAsset:d(),label:t._('Good idea', 'Reaction label to tell a creator that their pin is a good idea', 'Reaction label to tell a creator that their pin is a good idea'),htmlStyle:"\n @keyframes play90 {\n 0% {\n background-position: 0px 0px;\n }\n 100% {\n background-position: -3600px 0px;\n }\n }\n ",animationStyle:"play90 3000ms steps(90) infinite forwards",type:7},haha:{staticAsset:f(),animatedAsset:_(),gridAsset:g(),label:t._('Haha', 'Reaction label to tell a creator that the pinner laughed because of their pin', 'Reaction label to tell a creator that the pinner laughed because of their pin'),htmlStyle:"\n @keyframes play60 {\n 0% {\n background-position: 0px 0px;\n }\n 100% {\n background-position: -2400px 0px;\n }\n }\n ",animationStyle:"play60 2000ms steps(60) infinite forwards",type:5},love:{staticAsset:S(),animatedAsset:v(),gridAsset:P(),label:t._('Love', 'Reaction label to tell a creator that the pinner loved their pin', 'Reaction label to tell a creator that the pinner loved their pin'),htmlStyle:"\n @keyframes play90 {\n 0% {\n background-position: 0px 0px;\n }\n 100% {\n background-position: -3600px 0px;\n }\n }\n ",animationStyle:"play90 3000ms steps(90) infinite forwards",type:1},thanks:{staticAsset:I(),animatedAsset:k(),gridAsset:T(),label:t._('Thanks', 'Reaction label to tell a creator thank you', 'Reaction label to tell a creator thank you'),htmlStyle:"\n @keyframes play60 {\n 0% {\n background-position: 0px 0px;\n }\n 100% {\n background-position: -2400px 0px;\n }\n }\n ",animationStyle:"play60 2000ms steps(60) infinite forwards",type:13},wow:{staticAsset:L(),animatedAsset:R(),gridAsset:z(),label:t._('Wow', 'Reaction label to tell a creator that the pinner was wowed by their pin', 'Reaction label to tell a creator that the pinner was wowed by their pin'),htmlStyle:"\n @keyframes play90 {\n 0% {\n background-position: 0px 0px;\n }\n 100% {\n background-position: -3600px 0px;\n }\n }\n ",animationStyle:"play90 3000ms steps(90) infinite forwards",type:11}};return n[e]||n.default}},681227:(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 o(e){const t=Object.values(e);if(t.length>0){return t.reduce(((e,t)=>e+t),0)}return 0}function a(e,t){const{videos:i,is_downstream_promotion:n,is_promoted:o,story_pin_data_id:a,board:r}=e;return!(o||n||(!i||!i.id)&&!a||t||null!=r&&r.is_collaborative&&r.collaborated_by_me)}i.d(t,{At:()=>n,J6:()=>a,Ud:()=>o})},561195:(e,t,i)=>{i.d(t,{A:()=>r,Z:()=>s});var n=i(667294),o=i(883119),a=i(785893);const r=({fill:e,width:t,color:i})=>{const r="half"===e?(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)(o.xu,{position:"absolute",children:(0,a.jsx)(o.JO,{accessibilityLabel:"",color:"default",icon:"star-half",size:12})}),(0,a.jsx)(o.JO,{accessibilityLabel:"",color:"subtle",icon:"star",size:12})]}):(0,a.jsx)(o.JO,{accessibilityLabel:"",color:"full"===e?"default":"subtle",icon:"star",size:12});return(0,a.jsx)(o.xu,{dangerouslySetInlineStyle:{__style:{marginRight:"3px"}},display:"inlineBlock","data-test-id":`rating-star-${e}`,children:r})};function s({max_rating:e,rating:t,width:i,color:o}){const s=[],l=function(e,t){return 5*(t=t<=e?t:e)/e}(parseFloat(e)||5,parseFloat(t)||0);if(Number.isNaN(l))return null;const c=Math.floor(l),d=l-c;return[...Array(c).keys()].forEach((e=>s.push((0,a.jsx)(r,{color:o,fill:"full",width:i},e)))),d>=.75?s.push((0,a.jsx)(r,{color:o,fill:"full",width:i},s.length)):d>=.25&&s.push((0,a.jsx)(r,{color:o,fill:"half",width:i},s.length)),[...Array(5-s.length).keys()].forEach((()=>s.push((0,a.jsx)(r,{color:o,fill:"empty",width:i},s.length)))),(0,a.jsx)(n.Fragment,{children:s})}},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 o(e){const t=Math.floor(e/3600);return n({m:Math.floor(e%3600/60),h:t})}i.d(t,{X:()=>n,u:()=>o})},844897:(e,t,i)=>{i.d(t,{Z:()=>_});var n=i(667294),o=i(485710),a=i(985913),r=i(883119),s=i(785893);function l({category:e,ingredients:t,textSize:i="300"}){return(0,s.jsxs)(r.xu,{children:[e&&(0,s.jsx)(r.xu,{children:(0,s.jsx)(r.xv,{weight:"bold",size:i,children:e})}),(0,s.jsx)("ul",{children:t.map(((e,t)=>(0,s.jsx)("li",{"data-test-id":"recipe-ingredient",itemProp:"recipeIngredient",children:(0,s.jsx)(r.xu,{marginTop:1,children:(0,s.jsxs)(r.xv,{size:i,children:[e.amt||null," ",e.name]})})},t)))})]})}var c=i(134185),d=i(319530),u=i(898781),p=i(578661),h=i(773285);function _({columnGap:e,recipeProps:t,marginOverrides:i}){const _=(0,u.ZP)(),{diets:m,image:g,name:x,categorizedIngredients:f,fromAggregatedData:y}=t.recipe,{checkExperiment:v}=(0,h.F)(),b=v("closeup_dweb_onepin_title_and_description").anyEnabled,P=_._('Ingredients', 'Ingredients title and count in closeup recipe description', 'Ingredients title and count in closeup recipe description');let w;if(f&&f.length){const e=[];f.forEach((t=>e.push(t.ingredients)));const t=(S=e.filter(Boolean),S.reduce(((e,t)=>e.concat(t)),[])).length;w=f&&f.length&&t?(0,a.Z)(_.ngettext('{{ count }} ingredient', '{{ count }} ingredients', t, 'Ingredients title and count in closeup recipe description', 'Ingredients title and count in closeup recipe description'),{count:t.toString()}):P}var S;const A=b?8:(null==i?void 0:i.outerMarginTop)||80;return(0,s.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:{marginTop:A}},children:(0,s.jsxs)(c.Z,{itemScope:!0,itemType:p.G,children:[(0,s.jsx)("meta",{content:x,itemProp:"name"}),(0,s.jsx)("meta",{content:g,itemProp:"image"}),!b&&(0,s.jsx)(r.xu,{"data-test-id":"ingredients-heading",marginBottom:4,children:(0,s.jsx)(r.X6,{size:"400",children:y?x:w})}),!b&&m&&m.length>0&&(0,s.jsx)(r.xu,{marginBottom:4,children:(0,s.jsx)(r.xv,{inline:!0,size:"200",children:m.join(" ")})}),b?(0,s.jsx)(o.Z,{heading:P,children:(0,s.jsx)(d.Z,{children:(0,s.jsx)(r.xu,{marginTop:4,children:f.map((({category:e,ingredients:t},o)=>{const a=`ingredient-${o}`;return(0,s.jsx)(n.Fragment,{children:(0,s.jsx)(r.xu,{marginBottom:(null==i?void 0:i.ingredientMarginBottom)||4,children:(0,s.jsx)(l,{category:e,ingredients:t,textSize:"200"})})},a)}))})})}):Array.isArray(f)&&f.length>0&&(1===f.length?(0,s.jsx)(r.xu,{column:12,"data-test-id":"single-column-ingredients",children:f.map((({category:e,ingredients:t},n)=>(0,s.jsx)(r.xu,{marginBottom:(null==i?void 0:i.ingredientMarginBottom)||2,children:(0,s.jsx)(l,{category:e,ingredients:t,textSize:"100"})},n)))}):(0,s.jsxs)(r.xu,{display:"flex","data-test-id":"dual-column-ingredients",children:[(0,s.jsx)(r.xu,{column:6,children:f.slice(0,Math.ceil(f.length/2)).map((({category:e,ingredients:t},n)=>(0,s.jsx)(r.xu,{marginBottom:(null==i?void 0:i.ingredientMarginBottom)||2,children:(0,s.jsx)(l,{category:e,ingredients:t,textSize:"100"})},n)))}),e,(0,s.jsx)(r.xu,{column:6,children:f.slice(Math.ceil(f.length/2)).map((({category:e,ingredients:t},n)=>(0,s.jsx)(r.xu,{marginBottom:(null==i?void 0:i.ingredientMarginBottom)||2,children:(0,s.jsx)(l,{category:e,ingredients:t,textSize:"100"})},n)))})]}))]})})}},833049:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(694379),o=i(349700),a=i(785893);function r({m:e,h:t,rm:i,rh:r},s,l){const c=l("closeup_dweb_onepin_title_and_description").anyEnabled;return e&&(!t||r<=0)?(0,o.nk)(c?s._('{{mins}}min', 'closeup.makeRecipeText.minutesLabel', 'Minutes label for Rich Pin Recipe'):s.ngettext('{{mins}} minute', '{{mins}} minutes', i, ' - ', ' -- '),{mins:(0,a.jsx)(n.Z,{maximumFractionDigits:2,value:i},"recipe-minutes")}):t?(0,o.nk)(c?s._('{{hrs}}hr', 'closeup.makeRecipeText.hoursLabel', 'Hours label for Rich Pin Recipe'):s.ngettext('{{hrs}} hour', '{{hrs}} hours', r, ' - ', ' -- '),{hrs:(0,a.jsx)(n.Z,{maximumFractionDigits:2,value:r},"recipe-hours")}):null}},927220:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(349700);function o(e,t){return e<60?(0,n.nk)(t._('{{mins}}min', 'recipe.minutes', 'recipe in minutes. mins: recipe duration in minutes'),{mins:e}):(0,n.nk)(t._('{{hrs}}h {{mins}} min', 'recipe.time', 'recipe time. mins: recipe duration in minutes. hrs: recipe duration in hours'),{mins:e%60,hrs:Math.floor(e/60)})}},886858:(e,t,i)=>{i.d(t,{Z:()=>r,k:()=>a});const n=new Set(["bookmarks","client_tracking_params","get_page_metadata","in_nux","invite_code","original_referrer","source","top_level_source","top_level_source_depth"]),o=e=>!n.has(e)&&!e.startsWith("__track__");function a(e){return e.split(/([^=]+=[^=]+),/).filter(Boolean).reduce(((e,t)=>{const[i,n]=t.split("=");return e[i]=JSON.parse(n),e}),{})}const r=e=>e?Object.keys("object"==typeof e&&e||{}).filter((e=>"string"==typeof e)).filter(o).sort().map((t=>`${t}=${JSON.stringify(null==e[t]?null:e[t])}`)).join(","):""},932995:(e,t,i)=>{function n(e,t,i){const n=[...e],o=n.splice(t,1)[0];return n.splice(i,0,o),n}i.d(t,{Z:()=>n})},780280:(e,t,i)=>{i.d(t,{B:()=>u,LC:()=>c,P2:()=>l,fH:()=>d,gf:()=>p});var n=i(667294),o=i(608832),a=i(620707),r=i(785893);const s=(0,n.createContext)();function l({children:e,value:t}){const[i,l]=(0,n.useState)(t),c=(0,n.useMemo)((()=>({requestContext:i,updateRequestContext:e=>{const t={...i,...e};(0,a.Ak)(i,e)||l(t),(0,o.J)(t)}})),[i]);return(0,r.jsx)(s.Provider,{value:c,children:e})}const c=({children:e})=>{const t=(0,n.useContext)(s);if(!t)throw new Error("RequestContextConsumer must be used within a RequestContextProvider");return e(t.requestContext)},d=({children:e})=>{const t=(0,n.useContext)(s);if(!t)throw new Error("RequestContextConsumer must be used within a RequestContextProvider");return e(t.requestContext)};function u(){const e=(0,n.useContext)(s);if(!e)throw new Error("useRequestContext must be used within a RequestContextProvider");return e.requestContext}function p(){const e=(0,n.useContext)(s);if(!e)throw new Error("useUpdateRequestContext must be used within a RequestContextProvider");return e.updateRequestContext}},608832:(e,t,i)=>{let n;function o(e){n=e}function a(){return n}i.d(t,{J:()=>o,l:()=>a})},505920:(e,t,i)=>{i.d(t,{UZ:()=>u,Z8:()=>p,my:()=>h});var n=i(667294),o=(i(702664),i(412067)),a=i(425288),r=i(785893);function s(e,t,i){var n;const o=[...null!==(n=t[e][i.payload.name])&&void 0!==n?n:[],i.payload.handler],a={...t};return a[e]={...t[e],[i.payload.name]:o},a}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)),o={...t};return o[e]={...t[e],[i.payload.name]:n},o}const{Provider:c,useHook:d}=(0,a.Z)("ResourceContext");function u({children:e}){const[{listeners:t,moreListeners:i},a]=(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:{}});o.Z.fetchCompleteCallback=({resource:e,options:i,response:n,normalizedResponse:o,refresh:a,resourceSchema:r})=>{t[e]&&t[e].forEach((t=>t({isRefresh:a,normalizedResponse:o,options:i,schema:r,resource:e,response:n})))},o.Z.fetchMoreCompleteCallback=({resource:e,options:t,response:n,normalizedResponse:o,refresh:a,resourceSchema:r})=>{i[e]&&i[e].forEach((i=>i({isRefresh:a,normalizedResponse:o,options:t,schema:r,resource:e,response:n})))};const d=(0,n.useMemo)((()=>({listenerDispatch:a})),[]);return(0,r.jsx)(c,{value:d,children:e})}function p(e,t){const{listenerDispatch:i}=d();(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}=d();(0,n.useEffect)((()=>(i({type:"addMoreListener",payload:{name:e,handler:t}}),()=>{i({type:"removeMoreListener",payload:{name:e,handler:t}})})))}},379725:(e,t,i)=>{i.d(t,{U:()=>l,b:()=>c});var n=i(886858),o=i(412067),a=i(414327),r=i(718368);function s({fetchOptions:e,resource:t,retry:i}){return(l,c)=>{var d,u,p;const{bookmark:h,headers:_,options:m,refresh:g,schema:x}=e,f=(0,n.Z)(m);if(null!==(d=c().resources)&&void 0!==d&&null!==(u=d[t])&&void 0!==u&&null!==(p=u[f])&&void 0!==p&&p.fetching&&!i)return Promise.resolve();const y=i?i.bookmark:h,v=y?{...m,bookmarks:[y]}:m;return l((0,a.LQ)(t,m,!0)),o.Z.create(t,v).callGet(void 0,_).then((n=>{var c,d,u;const p=null===(c=n.resource_response)||void 0===c?void 0:c.data,[_]=n.bookmarks||[];if(Array.isArray(p)&&0===p.length&&_&&_!==r.q){const n=i?i.count:0;if(!(n>=r.s))return l(s({resource:t,fetchOptions:e,retry:{count:n+1,bookmark:_}}))}null===(d=o.Z.customDataManipulations)||void 0===d||d.call(o.Z,t,p);const{normalizedResponse:f,resourceSchema:y}=(null===(u=o.Z.normalizeResponse)||void 0===u?void 0:u.call(o.Z,{data:p,opts:{bookmark:h,options:m,schema:x},resource:t}))||{normalizedResponse:null,resourceSchema:void 0};return h?(l((0,a.Dm)(t,m,n,f,y)),o.Z.fetchMoreCompleteCallback&&o.Z.fetchMoreCompleteCallback({resource:t,options:m,response:n,normalizedResponse:f,refresh:g,resourceSchema:y})):(l((0,a.Sr)(t,m,n,f,g,y)),o.Z.fetchCompleteCallback&&o.Z.fetchCompleteCallback({resource:t,options:m,response:n,normalizedResponse:f,refresh:g,resourceSchema:y})),Promise.resolve()}),(e=>{l((0,a.Tl)(t,m,e))}))}}const l=(e,{bookmark:t,headers:i,options:n,schema:o})=>s({resource:e,fetchOptions:{bookmark:t,headers:i,options:n,refresh:!1,schema:o}}),c=(e,{headers:t,options:i,schema:n})=>s({resource:e,fetchOptions:{headers:t,options:i,refresh:!0,schema:n}})},718368:(e,t,i)=>{i.d(t,{q:()=>n,s:()=>o});const n="-end-",o=10},176843:(e,t,i)=>{function n(e,t){let i;if(e.error){const{httpStatus:n,api_error_code:o,redirectUrl:a}=e.error;if(404===n||401===n&&7===o){i={pathname:t?"/ideas/":"/",state:{showError:!0}}}301===n&&a&&(i={pathname:a})}return i}i.d(t,{Z:()=>n})},204088:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(704115),o=i(826067),a=i(314880);function r({experimentHash:e,windowIsInFocus:t}){try{const i={"X-Pinterest-AppState":t?"active":"background"};e&&(i["X-Pinterest-ExperimentHash"]=e);const r=(0,n.Z)();r.force_country&&(i["X-Force-Country"]=r.force_country);const s=(0,o.JJ)();if(s&&(i["X-Pinterest-Source-Url"]=s),"undefined"!=typeof window){const e=(0,a.H)();e&&(i["X-Pinterest-PWS-Handler"]=e)}return i}catch(i){return{}}}},338739:(e,t,i)=>{i.d(t,{AF:()=>n,KK:()=>o,aW:()=>s,cR:()=>a,se:()=>l,zP:()=>r});const n="CREATE_COMPLETE",o="FETCHING",a="FETCH_ERROR",r="FETCH_COMPLETE",s="FETCH_MORE_COMPLETE",l="RESOURCE_INVALIDATE"},414327:(e,t,i)=>{i.d(t,{Dm:()=>l,LQ:()=>a,Sr:()=>s,Tl:()=>r,XM:()=>o,jB:()=>c});var n=i(338739);function o(e,t,i,o){return{type:n.AF,payload:{resource:e,options:t,response:i,normalizedResponse:o}}}function a(e,t,i){return{type:n.KK,payload:{resource:e,options:t,isFetching:i}}}const r=(e,t,i)=>({type:n.cR,payload:{resource:e,options:t,error:i}});function s(e,t,i,o,a,r){return{type:n.zP,payload:{isRefresh:a,normalizedResponse:o,options:t,resource:e,response:i,schema:r}}}function l(e,t,i,o,a){return{type:n.aW,payload:{resource:e,options:t,response:i,normalizedResponse:o,schema:a}}}function c(e,t){return{type:n.se,payload:{resource:e,optionsOrOptionsKey:t}}}},784590:(e,t,i)=>{i.d(t,{Z:()=>u});var n=i(667294),o=i(702664),a=i(886858),r=i(718368),s=i(276775),l=i(780280),c=i(379725);const d={};function u(e){const{enabledRouteRefresh:t,__unstableEnableSuspenseSupport:i,headers:u,name:p,noCache:h,options:_,schema:m}=null!=e?e:{name:"DisabledResource",options:null},g=!e,x=(0,o.useDispatch)(),f=(0,a.Z)(_),y=(0,n.useRef)(null),v=(0,n.useRef)(),b=(0,s.useHistory)(),P=b&&"POP"!==b.action,w=e=>(e[p]||d)[f]||d,S=(0,o.useSelector)((({resources:e})=>w(e).nextBookmark)),A=(0,o.useSelector)((({resources:e})=>w(e).data)),k=(0,o.useSelector)((({resources:e})=>w(e).auxData)),E=(0,o.useSelector)((({resources:e})=>w(e).error)),T=(0,o.useSelector)((({resources:e})=>Boolean(w(e).fetching))),C=Boolean(E)||void 0!==A,I=C&&!T&&S===r.q,j=Boolean(C&&t&&P&&!g),[R,D]=(0,n.useState)(j),z=(0,n.useCallback)((e=>{y.current=x((0,c.U)(p,{options:_,schema:m,bookmark:e,headers:u}))}),[x,p,f,m,u]),O=()=>{y.current=x((0,c.b)(p,{options:_,schema:m,headers:u}))},{isBot:L}=(0,l.B)(),N=()=>{if(!g&&v.current!==f){const e=void 0===v.current;v.current=f,!C&&!T||e&&E&&(({httpStatus:e})=>!e||e>=500)(E)?z():(!L&&h||j)&&O()}};(0,n.useEffect)((()=>{i||N()})),i&&N();const B=(0,n.useCallback)((()=>{g||(O(),D(!0))}),[g,c.b,p,f,u,D]),M=(0,n.useCallback)((()=>{!S||I||T||g||z(S)}),[g,z,S,I,T]);if(y.current)if(C&&!T)y.current=null;else if(i)throw y.current;const Z=(0,n.useRef)({auxData:void 0,data:void 0,error:void 0,fetchMore:M,isAtEnd:!1,isFetching:!1,isLoaded:!1,isRefreshing:!1,nextBookmark:void 0,refresh:B}),F={auxData:k,data:A,error:E,fetchMore:M,isAtEnd:I,isFetching:T,isLoaded:C,isRefreshing:R,nextBookmark:S,refresh:B};return(0,o.shallowEqual)(F,Z.current)||(!R||!Z.current.data&&j||(0,o.shallowEqual)(F.data,Z.current.data)||(F.isRefreshing=!1,D(!1)),Z.current=F),Z.current}},989726:(e,t,i)=>{i.d(t,{Z:()=>l});var n=i(176843),o=i(784590),a=i(19121),r=i(53987),s=i(276775);function l(e){const t=(0,s.useHistory)(),i=(0,s.useLocation)(),{isAuth:l}=(0,a.Z)(),c=!l&&(0,r.L6)(i),d=(0,o.Z)(e),u=(0,n.Z)(d,c);return u&&t.replace(u.pathname,u.state),d}},817656:(e,t,i)=>{i.d(t,{AB:()=>n,Ej:()=>o,Sf:()=>a});const n=412,o=429,a=500},134185:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(785893);const o=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"},736688:(e,t,i)=>{i.d(t,{QO:()=>l,V3:()=>r,cO:()=>u,dn:()=>c,fP:()=>d,j1:()=>p,v_:()=>s});var n=i(841726),o=i(867820),a=i(623568);const r=e=>{const{thumbnail:t,url:i,width:n,height:o,duration:a}=e||{};return t&&i&&n&&o&&{thumbnail:t,url:i,width:n,height:o,duration:a}||void 0};function s(e,t){if(t&&t.products&&t.products[0]){const i=t.products[0],n=!(!i.name&&!e),a=!(!t.aggregate_rating||0===t.aggregate_rating.rating_count&&0===t.aggregate_rating.review_count||Number.isNaN(parseFloat(t.aggregate_rating.rating_value))),r=!(!i.offer_summary||!i.offer_summary.min_price&&!i.offer_summary.price),s=n&&(a||r);return(({isEligible:e,hasName:t,hasAggregateRating:i,hasOffers:n})=>{(0,o.My)("closeup_main_pin.leaf_snippet.is_product",{isEligible:e,hasName:t,hasAggregateRating:i,hasOffers:n})})({isEligible:s,hasName:n,hasAggregateRating:a,hasOffers:r}),s}return!1}const l=(e,{userName:t,fullName:i})=>{const n=t||"";return{"@type":"Person",name:i||n,url:e+"/"+n}};function c(e,t,i,o,a,r){i=i.trim();const s=(t=t.trim())||r||i||o,l=()=>t||a;if(!e||!e.metatags)return{title:s,description:i||l()};const{description:c=""}=e.metatags;var d;return{title:s,description:(d=c,(0,n.o)(d||"").trim())||l()}}const d=(e,t,i)=>{let n=t;return i?(n="recipe"===e?i._('Pinterest Recipe', 'pin.closeup.leafsnippet.recipe', 'Default recipe title and description for crawlers'):"howto"===e?i._('Pinterest How To', 'pin.closeup.leafsnippet.howto', 'Default how to title and description for crawlers'):"video"===e?i._('Pinterest Video', 'pin.closeup.leafsnippet.video', 'Default video title and description for crawlers'):"product"===e?i._('Pinterest Product', 'pin.closeup.leafsnippet.product', 'Default product title and description for crawlers'):i._('Pin page', 'pin.closeup.leafsnippet.pin', 'Default pin title and description for crawlers'),{fallbackTitle:n,fallbackDescription:n}):{fallbackTitle:n,fallbackDescription:n}},u=e=>{if(!e)return;const t=e.rating_count,i=e.review_count;if(!(!!t||!!i)||Number.isNaN(parseFloat(e.rating_value)))return;const n=t||i;return{"@type":"AggregateRating",ratingValue:e.rating_value,ratingCount:n,bestRating:5,worstRating:1}},p=(e,t=!0)=>{var i,n,o,r;const s=!!(0,a.iR)(e.videos),l=t&&!!(0,a.cL)({embedSrc:null===(i=e.embed)||void 0===i?void 0:i.src,embedSubtype:null===(n=e.embed)||void 0===n?void 0:n.subtype,embedType:null===(o=e.embed)||void 0===o?void 0:o.type}),c=!(null===(r=e.story_pin_data)||void 0===r||!r.total_video_duration);return s||l||c}},995228:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),o=i(966476),a=i(464228),r=i(785893);function s({children:e,fallback:t,dangerouslyServerRenderForGraphQL:i=!1}){const s=t||null,l=(0,o.Z)(),c=(0,a.P)();return c&&"legacy"!==c?i||l?(0,r.jsx)(n.Suspense,{fallback:s,children:e}):s:(0,r.jsx)(n.Suspense,{fallback:s,children:e})}},947599:(e,t,i)=>{i.d(t,{Z:()=>n});const n=i(995228).Z},251183:(e,t,i)=>{function n({scrollPosition:e,containerSize:t,contentSize:i,intendedDistance:n,extendToEdgeDistance:o=0}){const a=i-t,r=a-e,s=-e;let l=n;return l=Math.min(l,r),l=Math.max(l,s),n>0&&a-(e+l)<=o?l=a-e:n<0&&e+l<=o&&(l=-e),l}i.d(t,{Z:()=>s});var o=i(77601);const a={easingFunction:"ease-in-out",extendToEdgeDistanceX:0,extendToEdgeDistanceY:0,scrollSpeedPxPerMs:1.2,minScrollDuration:200},r={linear:e=>e,"ease-in":e=>e*e,"ease-out":e=>e*(2-e),"ease-in-out":e=>e<.5?2*e*e:(4-2*e)*e-1};function s(e,t,i,s={}){const l={...a,...s},{scrollLeft:c,scrollTop:d,scrollWidth:u,scrollHeight:p,clientWidth:h,clientHeight:_}=e,m=n({scrollPosition:c,containerSize:h,contentSize:u,intendedDistance:t,extendToEdgeDistance:l.extendToEdgeDistanceX}),g=n({scrollPosition:d,containerSize:_,contentSize:p,intendedDistance:i,extendToEdgeDistance:l.extendToEdgeDistanceY}),x=Math.abs(Math.floor(m/l.scrollSpeedPxPerMs)),f=Math.abs(Math.floor(g/l.scrollSpeedPxPerMs));let y=Math.max(x,f);l.minScrollDuration&&(y=Math.max(y,l.minScrollDuration));const v=r[l.easingFunction]||r["ease-in-out"];return(0,o.Z)({window,duration:y,run:t=>{e.scrollLeft=c+m*v(t),e.scrollTop=d+g*v(t),1===t&&l.onAnimationComplete&&setTimeout(l.onAnimationComplete,0)}})}},304903:(e,t,i)=>{function n(e){return e===window?window.innerHeight:e.clientHeight}function o(){return void 0!==window.scrollY?window.scrollY:document.documentElement&&void 0!==document.documentElement.scrollTop?document.documentElement.scrollTop:0}function a(e){return e===window&&document.documentElement?document.documentElement.scrollHeight:e.scrollHeight}function r(e){return e===window?o():e.scrollTop}function s(){window&&window.scroll(0,0)}i.d(t,{MX:()=>r,S$:()=>o,Uy:()=>n,aZ:()=>a,vM:()=>s})},984206:(e,t,i)=>{i.d(t,{Z:()=>n});const n=2},909499:(e,t,i)=>{i.d(t,{Hd:()=>l,_R:()=>r,gi:()=>o,lw:()=>n,wF:()=>s,zh:()=>a});const n={PINS:"pins",PINS_BUYABLE:"buyable_pins",PINS_MINE:"my_pins",PINS_VIDEO:"videos",BOARDS:"boards",USERS:"users",IDEA_PINS:"idea_pins"},o=e=>{switch(e){case n.PINS:return 0;case n.PINS_MINE:return null;case n.PINS_BUYABLE:return 1;case n.PINS_VIDEO:return 2;case n.BOARDS:return 3;case n.USERS:return 4;default:return null}},a=e=>{switch(e){case 0:return n.PINS;case 1:return n.PINS_BUYABLE;case 2:return n.PINS_VIDEO;case 3:return n.BOARDS;case 4:return n.USERS;default:return null}},r=e=>{switch(e){case n.PINS:return 43;case n.PINS_MINE:return 107;case n.PINS_BUYABLE:return 254;case n.PINS_VIDEO:return 3306;case n.BOARDS:return 44;case n.USERS:return 45;default:return null}},s=e=>{switch(e){case n.PINS:return 60;case n.PINS_MINE:return 63;case n.PINS_BUYABLE:return 3800;case n.PINS_VIDEO:return 64;case n.BOARDS:return 61;case n.USERS:return 62;default:return null}},l=e=>{switch(e){case n.USERS:return 1000392;case n.PINS_BUYABLE:return 1000391;case n.PINS:default:return 29}}},940589:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(643913);function o(e){const{query:t,rs:i,scope:o,guideAdded:a,filters:r,user:s}=e;if(!t)return"/";const l={q:t,rs:i};if(r&&(l.filters=r),s&&(l.user=s),a&&a.term&&(l.add_refine=`${a.term}|guide|word|${a.index}`),window.location.pathname.startsWith("/explore"))return`/search/pins/?${(0,n.Z)(l)}`;let c=o;return["pins","buyable_pins","my_pins","boards","users","idea_pins"].includes(c)||(c="pins"),c?`/search/${c}/?${(0,n.Z)(l)}`:`${window.location.pathname}?${(0,n.Z)(l)}`}},391143:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(643913),o=i(613316);function a({storyCategory:e,query:t,referringSource:i,bubbleId:a,storyId:r,title:s}){const l=[0,24,21,26].includes(e),c=(0,n.Z)({q:t,rs:i||void 0,b_id:a,source_id:r}),d=l&&s?(0,o.x)({title:s,id:a,articleType:"discover"}):`/discover/article/${a}/`;return l?d:"/search/pins/"+(c?"?"+c:"")}},862628:(e,t,i)=>{function n(e){return(e||"").trim().replace(/\s+/g," ")}i.d(t,{Z:()=>n})},648284:(e,t,i)=>{function n({appliedProductFilters:e,autoCorrectionDisabled:t,filters:i,query:n,scope:o,selectedPinImgSig:a,user:r}){const s=[o,i,e,r,a,n].map((e=>null!=e?e:"")).join(":");return t?"auto-correction-disabled:"+s:s}function o(e){const{autoCorrectionDisabled:t,appliedProductFilters:i,appliedFilters:n,filters:o,selectedPinImgSig:a,query:r,rs:s,scope:l,bubbleId:c,user:d}=e;return{name:"BaseSearchResource",options:function({autoCorrectionDisabled:e=!1,appliedFilters:t=null,appliedProductFilters:i=null,bubbleId:n=null,filters:o=null,query:a=null,rs:r="direct_navigation",scope:s="pins",selectedPinImgSig:l=null,sourceId:c=null,user:d}){return{article:n,applied_filters:t,appliedProductFilters:i,auto_correction_disabled:e,corpus:l?"personalize":null,customized_rerank_type:l?"manas_graph_sage_only_wand_rewrite":null,filters:o,query:a,query_pin_sigs:l,redux_normalize_feed:!0,rs:r,scope:s,source_id:c,user:d}}({autoCorrectionDisabled:!!t,appliedProductFilters:i,appliedFilters:n,filters:o,query:r,rs:s,scope:l,selectedPinImgSig:a,bubbleId:c,user:d})}}i.d(t,{Ht:()=>o,Tb:()=>n})},350576:(e,t,i)=>{i.d(t,{RX:()=>x,XE:()=>_,Xn:()=>h,an:()=>m,rV:()=>g});var n=i(826067);const o="BING",a="GOOGLE",r="YAHOO",s="YANDEX",l="RAKUTEN",c="NAVER",d="AMP_CACHE",u="DUCKDUCKGO",p=[a,o,r,s,l,c,d,u];function h(e){return p.includes(function(e){const{hostname:t}=(0,n.Qc)(e,!0);if(t&&e){if(t.includes("google.")||function(e){return e.includes("android-app://com.google.android.googlequicksearchbox")}(e))return a;if(t.includes("bing."))return o;if(t.includes("yahoo."))return r;if(t.includes("yandex."))return s;if(t.includes("rakuten."))return l;if(t.includes("naver."))return c;if(t.includes("duckduckgo."))return u;if(t.includes(".cdn.ampproject.org"))return d}return""}(e))}function _(e){return((0,n.Qc)(e).hostname||"").includes(".cdn.ampproject.org")}function m(e){return e||"undefined"!=typeof document&&document.referrer||""}const g="amp",x=e=>Boolean(e&&_(e))},762752:(e,t,i)=>{i.d(t,{D:()=>r,N:()=>a});var n=i(172071);const o=.1;async function a(){const e=navigator.serviceWorker;if(n.Z.increment("web_service_worker.update",o),e&&e.getRegistration){const i=await e.getRegistration();if(!i)return n.Z.increment("web_service_worker.update.registration.not_exist",o),await async function(){const e=navigator.serviceWorker;if(n.Z.increment("web_service_worker.install",o),e&&e.register)try{const t=await e.register("/sw.js");return n.Z.increment("web_service_worker.install.success",o),t}catch(t){throw n.Z.increment("web_service_worker.install.error",o),t}}();n.Z.increment("web_service_worker.update.registration.exist",o);try{return await i.update(),n.Z.increment("web_service_worker.update.success",o),i}catch(t){throw n.Z.increment("web_service_worker.update.fail",o),t}}}async function r(e){const t=navigator.serviceWorker;if(n.Z.increment("web_service_worker.unregister",o,{source:e||"unknown"}),t&&t.getRegistration)try{const i=await t.getRegistration();i?(n.Z.increment("web_service_worker.unregister.registration.exist",o,{source:e||"unknown"}),await i.unregister(),n.Z.increment("web_service_worker.unregister.success",o,{source:e||"unknown"}),async function(e){const t=navigator.serviceWorker;if(n.Z.increment("web_service_worker.clear_app_shell",o,{source:e||"unknown"}),t&&window.caches){const t=(await window.caches.keys()).find((e=>e.startsWith("workbox-precaching")));t?(n.Z.increment("web_service_worker.clear_app_shell.precache.exist",o,{source:e||"unknown"}),(await window.caches.open(t)).delete("/sw-shell.html"),n.Z.increment("web_service_worker.clear_app_shell.delete",o,{source:e||"unknown"})):n.Z.increment("web_service_worker.clear_app_shell.precache.not_exist",o,{source:e})}}(e)):n.Z.increment("web_service_worker.unregister.registration.not_exist",o,{source:e||"unknown"})}catch(i){n.Z.increment("web_service_worker.unregister.fail",o,{source:e||"unknown"})}}},735422:(e,t,i)=>{i.d(t,{$J:()=>A,AP:()=>O,Dm:()=>k,Fv:()=>w,H$:()=>R,In:()=>z,Ng:()=>S,RH:()=>v,Wj:()=>D,_P:()=>E,go:()=>P});var n=i(126098),o=i(412067),a=i(550858),r=i(30287),s=i(53987),l=i(867820),c=i(844974);const d="home",u="closeup",p="news_hub",h="board",_="profile",m="topic",g="today",x="business",f="search";let y;const v="_push",b=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:o}=y.getState().session,a=new URLSearchParams({source_url:window.location.pathname});n&&o&&(0,r.Rx)(o)&&(a.append("pwa_type",n),a.append("twa_type",o)),Boolean("undefined"!=typeof document&&document.referrer&&!document.referrer.startsWith(window.location.origin))&&a.append("referrer",document.referrer),i&&i.register?((0,l.My)("mweb_service_worker.install_attempt"),i.register(`/sw.js?${a.toString()}`).then((t=>{(0,l.My)("mweb_service_worker.install_success"),b(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"),b(i),e(i)})).catch((e=>{(0,l.tj)("mweb_service_worker.update_fail",{error:e.message}),t(e)})):w().then(e)}))):e()})),A=()=>{const e=y.getState().session.isAuthenticated;(0,l.My)(`mweb.${e?"auth":"unauth"}.register_service_worker`),w()},k=()=>{const e=navigator.serviceWorker;return e&&e.getRegistration?((0,l.My)("mweb_service_worker.unregister_attempt"),(0,a.Qi)(),e.getRegistration().then((e=>{if(e)return e.unregister().then((()=>((0,l.My)("mweb_service_worker.unregister_success"),navigator.serviceWorker&&window.caches?window.caches.keys().then((e=>{const t=e.find((e=>e.startsWith("workbox-precaching")));return t?window.caches.delete(t):null})).then((()=>(0,l.My)("mweb_service_worker.clear_app_shell"))):Promise.resolve()))).catch((e=>{(0,l.tj)("mweb_service_worker.unregister_fail",{error:e.message})}))}))):Promise.resolve()},E=()=>!(!P()||!("SyncManager"in window)),T=e=>(0,s.C$)(e)?d:(0,s.L6)(e)?u:(0,s.l4)(e)?p:(0,s.am)(e)?h:(0,s.cD)(e)?_:(0,s.En)(e)?f:(0,s.$V)(e)?m:(0,s.Zz)(e)?g:(0,s.Ni)(e)?x:"undefined",C=e=>{switch(T(e)){case d:return{viewType:1,viewParameter:92};case u:return{viewType:3,viewParameter:void 0};case p:return{viewType:107,viewParameter:3081};case h:return{viewType:5,viewParameter:void 0};case f:return{viewType:2,viewParameter:43};case m:return{viewType:210,viewParameter:void 0};case _:return{viewType:4,viewParameter:void 0};case x:return{viewType:409,viewParameter:3397};case g:return{viewType:1,viewParameter:3372};default:return{viewType:void 0,viewParameter:void 0}}},I=(e,t)=>(0,l.tj)(e,{browser:y.getState().session.browser,version:Math.floor(parseInt(y.getState().session.browserVersion,10)),...t}),j=(0,n.Z)(),R="default"===j||"granted"===j,D=(e,t,i,n)=>{const a=navigator.serviceWorker,r=Boolean((0,c.qn)(v)),s={experimentName:i||"noExperiment",experimentGroup:n||"noGroup"};return a&&a.ready&&R&&!r?(t({event_type:13,view_type:170,component:13125,aux_data:{experiment_name:i,experiment_group:n}}),I(`mweb.notifications_upsell.${T(e)}.viewed`,s),a.ready.then((e=>e.pushManager.subscribe({userVisibleOnly:!0}))).then((i=>((e,t,i,n)=>{o.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};o.Z.create("WebPushDeviceResource",n).callCreate()})),(0,c.Nh)(v,"subscribed"),I(`mweb.notifications_upsell.${T(t)}.subscribed`,i);const a=C(t);n({component:13125,element:10357,event_type:102,view_type:a.viewType,view_parameter:a.viewParameter,aux_data:{experiment_name:i.experimentName,experiment_group:i.experimentGroup}})})(i,e,s,t)),(()=>((e,t,i)=>{(0,c.Nh)(v,"denied"),I(`mweb.notifications_upsell.${T(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()},z=e=>{y=e},O=({isAuthenticated:e,isAppShell:t})=>{let i=!1;const n=n=>{if(i)return;i=!0;const o=`${t?"warm":"cold"}.${e?"auth":"unauth"}`;(0,l.My)(`mweb_service_worker.appshell_status.${o}.${n}`)},o=navigator.serviceWorker,a=null==o?void 0:o.controller;o&&a?setTimeout((()=>n("timeout")),1e3):n("no_worker")}},80816:(e,t,i)=>{i.d(t,{i:()=>n});const n={REGISTRATION:"registration",SETTINGS:"settings",GOOGLE_PEOPLE_API:"google_people_api",HOLISTIC_PROFILE_PROMPT:"holistic_profile_prompt",IN_APP_BIRTHDAY_PROMPT:"in_app_birthday_prompt",FIX_EMAIL_PROMPT:"fix_email_prompt",NUX:"nux",UNKNOWN:"unknown"}},706922:(e,t,i)=>{function n(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function o(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),o=Object.keys(t);if(i.length!==o.length)return!1;for(let a=0;ao})},835209:(e,t,i)=>{function n({richPinData:e={}}){return((null==e?void 0:e.products)||[])[0]}i.d(t,{Z:()=>n})},53325:(e,t,i)=>{i.d(t,{$O:()=>s,GZ:()=>c,OE:()=>d,Xv:()=>l,Z0:()=>n,_z:()=>a,fM:()=>r,qA:()=>o,zX:()=>u});const n=40,o=4,a=106,r=133,s=.1,l=10,c=246,d=197,u=236},954959:(e,t,i)=>{function n({isEligibleForPdp:e,isStaleProduct:t,isOutOfStockProduct:i}){return!!e||!!t||!!i}i.d(t,{Z:()=>n})},458882:(e,t,i)=>{i.d(t,{l:()=>a,r:()=>r});var n=i(667294);const o=(0,n.createContext)(null),a=()=>(0,n.useContext)(o),r=o.Provider},667679:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(458882),o=i(780679);const a=()=>{const e=(0,o.g)(),t=(0,n.l)();return i=>{const{mobileOptions:n,desktopOptions:o,reason:a,attributionLabel:r}=i;e?e.showDesktopSignupModal({signupFlow:"login"===(null==o?void 0:o.modalType)?{type:"login"}:{type:"signup"},reason:a,attributionLabel:r,...null==o?void 0:o.modalOptions}):t&&t.showMobileSignupModal({reason:a,attributionLabel:r,headingType:null==n?void 0:n.headingType})}}},31149:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(785893);function o({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:()=>o});var n=i(785893);function o({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"})]})}},331744:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(785893);function o({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:()=>o});var n=i(785893);function o({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"})]})})]})}},464240:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(785893);function o({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"})]})}},22641:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(785893);function o({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"})]})}},867060:(e,t,i)=>{i.d(t,{LO:()=>a,Pu:()=>r,cc:()=>n,dB:()=>o,yF:()=>s});const n={10:13098,11:13099,6:13100,5:13101,14:13102,12:13103,15:13104,8:13105,4:13106,1:13107,3:13107,18:13108,19:13109,20:13110,21:13111,22:13112,23:13113,26:13114,27:13115,29:13116,9:13286},o={10:13415,11:13416,6:13417,5:13418,14:13419,12:13420,15:13421,8:13422,4:13423,1:13424,3:13424,18:13425,19:13426,20:13427,21:13428,22:13429,23:13430,26:13431,27:13432,29:13433,9:13434},a={10:13436,11:13437,6:13438,5:13439,14:13440,12:13441,15:13442,8:13443,4:13444,1:13445,3:13445,18:13446,19:13447,20:13448,21:13449,22:13450,23:13451,26:13452,27:13453,29:13454,9:13455},r={10:13457,11:13458,6:13459,5:13460,14:13461,12:13462,15:13463,8:13464,4:13465,1:13466,3:13466,18:13467,19:13468,20:13469,21:13470,22:13471,23:13472,26:13473,27:13474,29:13475,9:13476},s={pin:1,board:2,did_it:6,pinner:3,user:3,today_article:8}},223815:(e,t,i)=>{i.d(t,{U:()=>r,Z:()=>s});var n=i(755742),o=i(785893);const a=()=>{},r=e=>{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation&&e.nativeEvent.stopImmediatePropagation()};function s({allowClickAndDrag:e,allowEsc:t,allowMediaPlay:i,allowScroll:s,children:l}){const c=e=>function(e,t){t&&e.keyCode===n.Z.ESCAPE||r(e)}(e,t);return(0,o.jsx)("div",{onAbort:r,onAnimationEnd:r,onAnimationIteration:r,onAnimationStart:r,onBlur:a,onCanPlay:i?a:r,onCanPlayThrough:r,onChange:r,onClick:e?a:r,onCompositionEnd:r,onCompositionStart:r,onCompositionUpdate:r,onContextMenu:r,onCopy:r,onCut:r,onDoubleClick:r,onDurationChange:r,onEmptied:r,onEncrypted:r,onEnded:r,onError:r,onFocus:a,onInput:r,onInvalid:r,onKeyDown:c,onKeyPress:c,onKeyUp:c,onLoad:r,onLoadedData:r,onLoadedMetadata:r,onLoadStart:r,onMouseDown:r,onMouseEnter:r,onMouseLeave:r,onMouseMove:e?a:r,onMouseOut:r,onMouseOver:r,onMouseUp:e?a:r,onPaste:r,onPause:r,onPlay:r,onPlaying:r,onProgress:r,onRateChange:r,onScroll:s?a:r,onSeeked:r,onSeeking:r,onSelect:r,onStalled:r,onSubmit:r,onSuspend:r,onTimeUpdate:r,onTouchCancel:r,onTouchEnd:e?a:r,onTouchMove:e?a:r,onTouchStart:e?a:r,onTransitionEnd:r,onVolumeChange:r,onWaiting:r,onWheel:r,children:l})}},238381:(e,t,i)=>{i.d(t,{Z:()=>_});var n=i(231486),o=i(172071),a=i(700380);let r={get:[],set:[],remove:[]};const s={get:new Set,set:new Set,remove:new Set};const l=(0,a.Z)((async function(){if(!r.get.length&&!r.set.length&&!r.remove.length)return;const e={...r};r={get:[],set:[],remove:[]};try{await fetch(`https://${window.location.hostname}/_/_/storage_report/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({"storage-report":e})})}catch(t){r={...e},o.Z.increment("webapp.storage_report.fetch_error",.01)}}),3e4);const c=async function(e,t){s[e].has(t)||(s[e].add(t),r={...r,[e]:[...r[e],t]},await l())};var d=i(226198);class u{constructor(e){this._cookie=e}length(){const e=n.U2(this._cookie),t=e?JSON.parse(e):{};return Object.keys(t).length}getItem(e){const t=n.U2(this._cookie);return(t?JSON.parse(t):{})[e]}setItem(e,t){const i=n.U2(this._cookie),o=i?JSON.parse(i):{};o[e]=t,n.t8(this._cookie,JSON.stringify(o))}removeItem(e){const t=n.U2(this._cookie),i=t?JSON.parse(t):{};delete i[e],n.t8(this._cookie,JSON.stringify(i))}prependItem(e,t,i=1/0){const n=this.getItem(e),o=Array.isArray(n)?n:[];o.unshift(t),o.length>i&&o.pop(),this.setItem(e,o)}clear(){n.zN(this._cookie.name)}}class p{length(){return window.sessionStorage.length}getItem(e){const t=window.sessionStorage.getItem(e);return null!==t?JSON.parse(t):null}setItem(e,t){window.sessionStorage.setItem(e,JSON.stringify(t))}removeItem(e){window.sessionStorage.removeItem(e)}prependItem(e,t,i=1/0){const n=window.sessionStorage.getItem(e),o=n?JSON.parse(n):[];o.unshift(t),o.length>i&&o.pop(),window.sessionStorage.setItem(e,JSON.stringify(o))}clear(){window.sessionStorage.clear()}}class h{length(){return window.localStorage.length}getItem(e){const t=window.localStorage.getItem(e);return c("get",e),null!==t?JSON.parse(t):t}setItem(e,t){window.localStorage.setItem(e,JSON.stringify(t)),c("set",e)}removeItem(e){window.localStorage.removeItem(e),c("remove",e)}prependItem(e,t,i=1/0){const n=window.localStorage.getItem(e),o=n?JSON.parse(n):[];o.unshift(t),o.length>i&&o.pop(),window.localStorage.setItem(e,JSON.stringify(o)),c("set",e)}clear(){window.localStorage.clear()}}const _=({type:e})=>{let t;try{t="session"===e?window.sessionStorage:window.localStorage}catch(a){t=null}const i="session"===e?d.Gl:d.sy;let n=!1;const o=t;if(o)try{o.setItem("testing","test"),o.removeItem("testing")}catch(a){if(a.code!==window.DOMException.QUOTA_EXCEEDED_ERR||0!==o.length)throw a;n=!0}else n=!0;return n?new u(i):"session"===e?new p:new h}},957161:(e,t,i)=>{i.d(t,{Z:()=>n});const n=(0,i(238381).Z)({type:"local"})},696157:(e,t,i)=>{i.d(t,{E9:()=>l,F6:()=>h,MM:()=>w,MS:()=>n,On:()=>p,SI:()=>b,TJ:()=>c,TO:()=>u,W3:()=>s,WM:()=>v,XC:()=>f,XS:()=>S,Y9:()=>g,Yp:()=>_,_b:()=>o,_l:()=>x,bY:()=>d,co:()=>k,e9:()=>a,iu:()=>y,kl:()=>P,om:()=>r,ou:()=>A,qo:()=>m});const n="visitedPagesBeforeLogin",o="_lastVisitedPages",a="visitedPinLandingPagesBeforeLogin",r="visitedBoardLandingPagesBeforeLogin",s="lastVisitedPage",l="unauthTopicsFollowed",c="unauthPins",d="unauthHybridLoginModalView",u="unauthHybridClickthroughCount",p="unauthHybridClickthroughTS",h="signupTime",_="signupInterestsPickerScrollDown",m="signupTriedSkipInputName",g="signupTriedSkipGender",x="signupInterestsPickerStartTime",f="signupUserLocale",y="signupUserCountry",v="uoiou",b="unauthRevisitation",P="urh",w="lineOAuthOneTimeCode",S="unlinkNetwork",A="mfapc",k="logoutPending"},844974:(e,t,i)=>{i.d(t,{L_:()=>o,Nh:()=>a,qn:()=>n});const n=(e,t=null)=>{try{return"undefined"!=typeof window&&window.localStorage.getItem(e)||t}catch(i){return console.error("Cannot access localStorage."),t}},o=e=>{try{if("undefined"==typeof window)return;window.localStorage.removeItem(e)}catch(t){console.error("Cannot access localStorage.")}},a=(e,t)=>{try{if("undefined"==typeof window)return;window.localStorage.setItem(e,t)}catch(i){console.error("Cannot access localStorage.")}}},339363:(e,t,i)=>{i.d(t,{L_:()=>o,Nh:()=>a,qn:()=>n});const n=(e,t)=>{if("undefined"==typeof window)return t;try{return window.sessionStorage.getItem(e)}catch(i){return window.console.error("Cannot access sessionStorage."),t}},o=e=>{if("undefined"!=typeof window)try{window.sessionStorage.removeItem(e)}catch(t){window.console.error("Cannot access sessionStorage.")}},a=(e,t)=>{if("undefined"!=typeof window)try{window.sessionStorage.setItem(e,t)}catch(i){window.console.error("Cannot access sessionStorage.")}}},685365:(e,t,i)=>{i.d(t,{Q:()=>Ee,Z:()=>De});var n=i(667294),o=i(37620),a=i(31458),r=i(441253),s=i(182750),l=i(702664),c=i(357787),d=i(898781),u=i(287072),p=i(350118),h=i(883119),_=i(785893);const m=(0,c.Z)((e=>{const t=(0,d.ZP)(),{sourceUrl:i,linkText:n,displayUrl:o,image:a,pageId:r,canonicalUrl:s,pinId:l,storyPinDataId:c,onTouch:m,onClickThrough:g,isLoading:x}=e,f={story_pin_page_id:r,story_pin_data_id:c,src_url:i,canonical_url:s},y=(0,_.jsxs)(h.xu,{display:"flex",rounding:2,overflow:"hidden",alignItems:"center",borderStyle:"sm",children:[(0,_.jsx)(h.xu,{minWidth:80,width:80,height:80,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",color:x||a&&a.url?void 0:"secondary",dangerouslySetInlineStyle:{__style:{borderRight:"1px solid lightGray"}},children:x?(0,_.jsx)(h.$j,{accessibilityLabel:t._('Loading website', 'a11y for loading spinner', 'a11y for loading spinner'),show:!0}):(e=>{var i,n;return a&&a.url?(0,_.jsx)(h.Ee,{fit:"cover",src:a.url,alt:e,naturalHeight:null!==(i=a.height)&&void 0!==i?i:1,naturalWidth:null!==(n=a.width)&&void 0!==n?n:1}):(0,_.jsx)(h.JO,{dangerouslySetSvgPath:{__path:"M21.001,7.241 L16.948,11.293 L15.888,10.233 L16.56,9.561 C17.146,8.976 17.146,8.026 16.56,7.44 C15.974,6.855 15.024,6.855 14.439,7.44 L13.768,8.112 L12.707,7.052 L16.759,3 L21.001,7.241 Z M11.293,16.949 L7.241,21.001 L2.999,16.76 L7.052,12.707 L8.111,13.767 L7.44,14.439 C6.855,15.025 6.855,15.974 7.44,16.56 C8.025,17.146 8.976,17.145 9.561,16.56 L10.232,15.888 L11.293,16.949 Z M14.639,0.879 L10.586,4.931 C9.415,6.102 9.415,8.001 10.586,9.173 L11.647,10.233 L10.232,11.647 L9.172,10.586 C8.001,9.415 6.102,9.415 4.931,10.586 L0.879,14.638 C-0.293,15.81 -0.293,17.709 0.879,18.88 L5.12,23.122 C6.291,24.293 8.19,24.293 9.361,23.122 L13.414,19.07 C14.585,17.898 14.585,15.999 13.414,14.828 L12.354,13.767 L13.768,12.354 L14.828,13.414 C15.999,14.585 17.898,14.585 19.069,13.414 L23.121,9.362 C24.293,8.191 24.293,6.292 23.121,5.12 L18.88,0.879 C17.709,-0.293 15.81,-0.293 14.639,0.879 Z"},accessibilityLabel:t._('Default link block icon', 'Icon for default link blocks without an image', 'Icon for default link blocks without an image'),color:"subtle",size:35})})(n)}),(0,_.jsxs)(h.xu,{paddingX:5,flex:"grow",overflow:"hidden",dangerouslySetInlineStyle:{__style:{whiteSpace:"nowrap",textOverflow:"ellipsis"}},children:[(0,_.jsx)(h.xv,{lineClamp:1,weight:"bold",children:n}),(0,_.jsx)(h.xv,{size:"200",color:"shopping",children:o})]})]}),v=(0,p.S6)()(l),b=(0,u.Z)({href:i,target:"blank",externalData:v?{pin:v}:void 0});return m?(0,_.jsx)(h.iP,{onTap:m,rounding:2,children:y}):(0,_.jsx)(h.iP,{href:i,onTap:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),g&&g({auxData:f}),b({event:e})},rel:"nofollow",rounding:2,role:"link",target:"blank",children:y})})),g=(0,l.connect)((({pins:e},{pinId:t})=>({storyPinDataId:t&&e&&e[t]&&e[t].story_pin_data_id})))(m);var x=i(224496),f=i(407043);const y=({block:e,pageId:t,pinId:i,onClickThrough:n})=>{var o;const{logContextEvent:a}=(0,f.v)();switch(e.type){case x.h8.LINK:const{canonical_url:r,image:l,normalized_url:c,src_url:d,text:u=""}=e,p=null==l||null===(o=l.images)||void 0===o?void 0:o["345x"],m=e=>{e&&a({event_type:120,view_type:3,view_parameter:157,component:228,element:11157,object_id_str:i,aux_data:{story_pin_page_id:t,srcUrl:d,canonicalUrl:r}})};return l&&d&&c&&r?(0,_.jsx)(h.xu,{marginTop:5,children:(0,_.jsx)(g,{canonicalUrl:r,displayUrl:c,image:p,linkText:u,onClickThrough:n,onVisibilityChanged:m,pageId:t,pinId:i,sourceUrl:d})}):null;case x.h8.HEADING:{const{text:t=""}=e;return(0,_.jsx)(h.xu,{marginBottom:4,paddingX:2,children:(0,_.jsx)(h.X6,{size:"500",overflow:"normal",accessibilityLevel:2,children:t})})}case x.h8.PARAGRAPH:{const{text:t=""}=e;return(0,_.jsx)(h.xu,{paddingX:2,dangerouslySetInlineStyle:{__style:{whiteSpace:"pre-line"}},children:(0,_.jsx)(h.xv,{children:(0,_.jsxs)(s.Z,{children:[" ",t," "]})})})}default:return null}},v=e=>{const{blocks:t,pageId:i,pinId:n,onClickThrough:o}=e;return(0,_.jsx)("div",{className:"StoryPinText",children:t.filter((e=>e)).map(((e,t)=>(0,_.jsx)(y,{block:e,pageId:i,pinId:n,onClickThrough:o},t)))})};var b=i(280348);const P=375*x.ap;function w(e){var t;let i="";for(const o of null!==(n=e.blocks)&&void 0!==n?n:[]){var n;[1,0].includes(o.block_type)&&(i=o.text?o.text:"")}return null!==(t=i)&&void 0!==t?t:""}function S(e){var t,i,o;const a=(0,d.ZP)(),{activePageIndex:r,hideText:s,isActive:l,isCoverPage:c,muteVideos:u,onClickThrough:p,page:{image_adjusted:m,image:g,blocks:x,video:f,id:y},pageIndex:S,pageWidth:A,pinId:k}=e,E=m||g||{},{images:T={}}=E,C=T["750x"],{video_list:I={}}=f||{},j=I.V_HLSV3_MOBILE||I.V_720P;if(!C&&!j)return null;const R=A/375;return(0,_.jsxs)(n.Fragment,{children:[!!f&&!!j&&(0,_.jsx)(b.Z,{activePageIndex:r,blockHeight:P*R,blockPosition:{left:0,top:0},blockWidth:375*R,isPlaying:l,muted:u,pageIndex:S,pinId:k,video:f}),C&&!j&&(0,_.jsx)(h.Ee,{alt:w(e.page)||a._('Story pin image', 'Alt text for story pin image', 'Alt text for story pin image'),fit:c?"cover":"contain",naturalHeight:null!==(t=C.height)&&void 0!==t?t:1,naturalWidth:null!==(i=C.width)&&void 0!==i?i:1,src:null!==(o=C.url)&&void 0!==o?o:""}),x&&x.length>0&&!s&&(0,_.jsx)("div",{className:"StoryPinTextDrawer",children:(0,_.jsx)(v,{blocks:x,onClickThrough:p,pageId:y,pinId:k})})]})}var A=i(595202),k=i(430323);const E=[x.h8.COMMENT_REPLY_STICKER,x.h8.GENERIC_STICKER,x.h8.HEADING,x.h8.IMAGE,x.h8.MENTION_STICKER,x.h8.PARAGRAPH,x.h8.PRODUCT_STICKER,x.h8.VIDEO,x.h8.VTO_MAKEUP_STICKER];function T({activePageIndex:e,closeupStoryPinViewability:t,customEndCard:i,fontsLoaded:o,hideMute:a,isActive:r,isPreview:s,muteVideos:l,onChangeMuteVideo:c,onEnded:u,onFlyoutOpen:p,onUpdateVideoInfo:m,ownerId:g,page:f,pageAspectRatio:y,pageHeight:v,pageIndex:b,pageWidth:P,pinId:w,productPins:S,shouldLogTimeSpent:T=!0,stillLoading:C=!1,videoPinProgress:I,viewParameter:j,viewType:R}){var D;const z=(0,d.ZP)(),[O,L]=(0,n.useState)(!1),{background_color:N}=f.style||{},B=[],M=[],Z=[];(null!==(D=f.blocks)&&void 0!==D?D:[]).forEach((e=>{E.includes(e.type)?e.type===x.h8.PARAGRAPH||e.type===x.h8.HEADING?M.push(e):Z.push(e):B.push(e)})),Z.push(...M);const F=!!Z.find((e=>e.type===x.h8.VIDEO)),U=!!Z.find((e=>!!e.video&&e.type===x.h8.VIDEO&&e.video_signature)),V=B.find((e=>e.type===x.h8.MUSIC)),G="story_pin_music_block"===(null==V?void 0:V.type)?V.provider_recording_id:void 0,H=()=>(0,_.jsx)(h.iP,{fullHeight:!0,onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1),children:(0,_.jsxs)(h.xu,{dangerouslySetInlineStyle:{__style:{background:N||"#fff"}},height:"100%",children:[!s&&Z.filter((e=>!F||U||e.type===x.h8.VIDEO)).map(((n,a)=>{var s,c;return(0,_.jsx)(A.ZP,{activePageIndex:e,customEndCard:i,block:n,closeupStoryPinViewability:t,fontsLoaded:o,isActive:r,isSplitLayout:3===f.layout,musicRecordingId:G,muteVideos:l,ownerId:g,onEnded:u,onFlyoutOpen:p,videoPinProgress:I,onUpdateVideoInfo:m,pageAspectRatio:y,pageIndex:b,pageHeight:v,pageWidth:P,pinId:w,productPins:S,stillLoading:C},`${null!==(s=f.id)&&void 0!==s?s:""}-${null!==(c=n.type)&&void 0!==c?c:""}-${a}`)})),a||s||!U||!O&&!l?null:(0,_.jsx)(h.xu,{bottom:!0,left:!0,padding:4,position:"absolute",children:l?(0,_.jsx)(h.hU,{accessibilityLabel:z._('Click to unmute', 'closeup.storyPin.storyPinVideo.volume', 'Button to unmute the video'),bgColor:"white",icon:"mute",iconColor:"darkGray",onClick:()=>{c(!1)},size:"md"}):(0,_.jsx)(h.hU,{accessibilityLabel:z._('Click to mute', 'closeup.storyPin.storyPinVideo.volume', 'Button to mute the video'),bgColor:"white",icon:"sound",iconColor:"darkGray",onClick:()=>c(!0),size:"md"})})]})});return T?(0,_.jsx)(k.Z,{view:R,viewParameter:j,component:0===b?227:228,auxData:{story_pin_page_id:b},shouldUseGrandparentId:!0,children:H()}):H()}function C(e){return(null!=e?e:[]).map((e=>e.text||"")).join()}const I=e=>{var t;const{page:{image_adjusted:i,blocks:o}}=e,a=i||{},{images:r={}}=a,s=r["750x"];if(!s)return null;const{width:l,height:c}=s;return(0,_.jsx)(n.Fragment,{children:s&&(0,_.jsx)(h.Ee,{src:null!==(t=s.url)&&void 0!==t?t:"",alt:C(o),naturalWidth:null!=l?l:1,naturalHeight:null!=c?c:1,fit:"contain"})})};var j=i(784590),R=i(92261),D=i(488789),z=i(697335),O=i(558068);function L({children:e,closeupStoryPinViewability:t,productPins:i,viewParameter:n,viewType:o}){const{previous:a,forward:s}=(0,O.Hv)(),l=0===a.length&&0===s.length,c=(0,z.t)();return(0,_.jsx)(D.o,{closeupPaneWidth:R.Gg,headerHeight:c,isLandingPage:l,loadFonts:r.Z,renderStoryPinMediaLayout:({activePageIndex:e,hideText:t,isActive:i,isCoverPage:n,muteVideos:o,onClickThrough:a,page:r,pageIndex:s,pageWidth:l,pinId:c})=>(0,_.jsx)(S,{activePageIndex:e,hideText:t,isActive:i,isCoverPage:n,muteVideos:o,onClickThrough:a,page:r,pageIndex:s,pageWidth:l,pinId:c}),renderStoryPinSplitLayout:({page:e})=>(0,_.jsx)(I,{page:e}),renderStoryPinText:({blocks:e,onClickThrough:t,pageId:i,pinId:n})=>(0,_.jsx)(v,{blocks:e,onClickThrough:t,pageId:i,pinId:n}),renderStoryPinPage:({activePageIndex:e,customEndCard:i,fontsLoaded:a,isActive:r,muteVideos:s,onChangeMuteVideo:l,onEnded:c,onFlyoutOpen:d,onUpdateVideoInfo:u,page:p,pageAspectRatio:h,pageHeight:m,pageWidth:g,pin:x,pinId:f,productPins:y,shouldLogTimeSpent:v,stillLoading:b,videoPinProgress:P})=>{var w,S;return(0,_.jsx)(T,{activePageIndex:e,closeupStoryPinViewability:t,fontsLoaded:a,isActive:r,customEndCard:i,muteVideos:s,onChangeMuteVideo:l,onEnded:c,onFlyoutOpen:d,videoPinProgress:P,onUpdateVideoInfo:u,ownerId:null!==(w=null==x||null===(S=x.native_creator)||void 0===S?void 0:S.id)&&void 0!==w?w:"",page:p,pageAspectRatio:h,pageIndex:e,pageHeight:m,pageWidth:g,productPins:y,pinId:f,shouldLogTimeSpent:v,stillLoading:b,hideMute:!0,viewType:o,viewParameter:n})},productPins:i,children:e})}function N({children:e,isInStream:t,viewType:i,viewParameter:n}){return t?e:(0,_.jsx)(k.Z,{view:i,viewParameter:n,component:85,children:e})}function B({children:e,pin:t}){return e({productPins:(0,j.Z)({name:"StoryPinTaggedProductsResource",options:{id:t.id},noCache:!0}).data||[]})}function M({children:e,closeupStoryPinViewability:t,pin:i,isInStream:n=!1,viewType:o,viewParameter:a}){var r;const s=!(null===(r=i.story_pin_data)||void 0===r||!r.has_product_pins),l=({productPins:i})=>(0,_.jsx)(L,{closeupStoryPinViewability:t,viewType:o,viewParameter:a,productPins:i,children:e});return(0,_.jsx)(N,{isInStream:n,viewType:o,viewParameter:a,children:s?(0,_.jsx)(B,{pin:i,children:l}):l({productPins:[]})})}var Z=i(319915),F=i(768559),U=i(305791),V=i(293324),G=i(52022),H=i(19121),W=i(773285);function $({appConfig:e,hideToggle:t,panelOpen:i,togglePanel:o}){const a=(0,d.ZP)(),{checkExperiment:r}=(0,W.F)(),s=(0,G.Z)(),l=r((0,H.Z)().isAuth?"closeup_auth_dweb_video_scrubber":"closeup_unauth_dweb_video_scrubber_2").anyEnabled;return(0,_.jsxs)(n.Fragment,{children:[(0,_.jsx)(h.xu,{dangerouslySetInlineStyle:{__style:{marginTop:16}},"data-test-id":"back-button",left:!0,paddingX:4,position:"absolute",top:!0,children:"authDesktop"===e.type&&(0,_.jsx)(h.hU,{accessibilityLabel:a._('Back button', 'storyPin.closeup.back', 'Button label to navigate to previous page'),bgColor:"transparent",icon:"directional-arrow-left",iconColor:"darkGray",onClick:()=>{s({action:"click",item:"back-button"}),e.onNavigateBack()},size:"lg"})}),!t&&!l&&(0,_.jsx)(h.xu,{position:"absolute",top:!0,right:!0,paddingX:4,dangerouslySetInlineStyle:{__style:{marginTop:16}},children:(0,_.jsx)(h.kC,{gap:{row:2,column:0},children:(0,_.jsx)(V.Z,{open:i,onChange:o})})})]})}var K=i(534611),q=i(543972),Y=i(391254);const X=({activePageIndex:e,pages:t,showEndCard:i,pageWidth:n,panelOpen:o})=>{const a=(0,d.ZP)(),{checkExperiment:r}=(0,W.F)(),s=r((0,H.Z)().isAuth?"closeup_auth_dweb_video_scrubber":"closeup_unauth_dweb_video_scrubber_2").anyEnabled,l=!s||s&&!o;if(i||!t)return null;const c={paddingLeft:(s?4*Ee+2:0)+"px",bottom:0};let u=null;const p=t[e];if(p&&p.should_mute)u=a._('Audio not available in your location', 'closeup.storyPin.musicAttribution', 'Informational message to tell user audio is not available in their location');else{var m,g,f,y;const{blocks:e}=p,t=(null!=e?e:[]).find((e=>"story_pin_music_block"===e.type)),i=null!==(m=null==t||null===(g=t.audio)||void 0===g?void 0:g.artist_name)&&void 0!==m?m:"",n=null!==(f=null==t||null===(y=t.audio)||void 0===y?void 0:y.title)&&void 0!==f?f:"";u=i&&n?`${i} - ${n}`:""}return u?(0,_.jsx)(h.xu,{"data-test-id":"music-attribution",paddingY:5,alignItems:"center",display:"flex",justifyContent:l&&s?"start":"center",overflow:"hidden",position:"absolute",width:n,zIndex:x.kF,dangerouslySetInlineStyle:{__style:{...l?c:{backgroundImage:"linear-gradient(to bottom, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0))",pointerEvents:"none",borderRadius:"32px 32px 0 0",paddingTop:"30px",top:0},paddingBottom:s&&l?"88px":void 0}},children:(0,_.jsxs)(h.kC,{gap:{row:1,column:0},justifyContent:"center",children:[(0,_.jsx)(h.JO,{icon:p.should_mute?"music-off":"music-on",size:12,inline:!0,accessibilityLabel:a._('Artist and song title for this pin', 'web.closeup.storypin.musicicon', 'Artist and song title for idea pin music attribution'),color:"inverse"}),(0,_.jsx)(h.xu,{overflow:"hidden",children:(0,_.jsxs)("span",{className:u.length>=50?"marquee":void 0,style:{display:"inline-block",maxWidth:u.length>=50?"260px":void 0},children:[(0,_.jsx)(h.xv,{inline:!0,color:"inverse",size:"200",overflow:"noWrap",children:u}),(0,_.jsx)(Y.Z,{unsafeCSS:"\n .marquee {\n animation: marquee 10s linear infinite;\n animation-delay: 2s;\n }\n\n .marquee:hover {\n animation-play-state: paused;\n }\n\n\n @keyframes marquee {\n 0% {\n transform: translateX(0%);\n }\n 50% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(0%);\n }\n }\n "})]})})]})}):null};var J=i(132998),Q=i(219723),ee=i(646422),te=i(692627),ie=i(947599),ne=i(124364),oe=i(829407),ae=i(112690),re=i(483205),se=i(775151),le=i(623568),ce=i(179888),de=i(276602),ue=i(827896),pe=i(858416),he=i(47168),_e=i(700314),me=i(276775),ge=i(924114);const xe=(0,n.lazy)((()=>i.e(3434).then(i.bind(i,79214)))),fe=(0,n.lazy)((()=>i.e(7701).then(i.bind(i,312918)))),ye=(0,n.lazy)((()=>Promise.all([i.e(97270),i.e(50192),i.e(58209),i.e(72048),i.e(6073)]).then(i.bind(i,272048)))),ve=(0,n.lazy)((()=>Promise.all([i.e(47181),i.e(50157)]).then(i.bind(i,247181)))),be=(0,n.lazy)((()=>Promise.all([i.e(97270),i.e(81165),i.e(54996),i.e(50192),i.e(43473)]).then(i.bind(i,666258)))),Pe=(0,n.lazy)((()=>i.e(24859).then(i.bind(i,411177)))),we=(0,n.lazy)((()=>i.e(21408).then(i.bind(i,781099)))),Se=(0,n.lazy)((()=>i.e(87191).then(i.bind(i,471523)))),Ae=1e3,ke=650,Ee=6,Te={backgroundImage:"linear-gradient(to bottom, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0))",pointerEvents:"none",borderRadius:"32px 32px 0 0"},Ce={backgroundImage:"linear-gradient(to top, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0))",pointerEvents:"none",borderRadius:"0 0 32px 32px",bottom:0};const Ie=[5,6,2],je=e=>e.some((e=>{var t;return(null!==(t=e.blocks)&&void 0!==t?t:[]).some((e=>e.type===x.h8.IMAGE&&!!e.image||e.type===x.h8.VIDEO&&(!!e.video||!!e.video_signature)))}));function Re({appConfig:e,isInFocus:t,isInStream:i=!1,isStreamMuted:r,isStreamPanelOpen:s=!0,pin:l,storyPinData:c,goBack:u,onIdeaPinCloseupCommentClick:p,onUpdate:m,setStreamIsMuted:g,streamItemIndex:f,togglePanel:y,variant:v,viewType:b=3,viewParameterType:P,onTogglePanel:w}){var S,A,k,E,T,C,I,j,R;const z=(0,D.c)(),O=(0,ue.Z)(),L=(0,d.ZP)(),N=(0,ae.Z)(),{checkExperiment:B}=(0,W.F)(),M=(0,he.g)(),F=(0,de.EV)(),V=(0,n.useRef)(null),G=(0,me.useHistory)(),{setIdeaPinActivePage:q,setIdeaPinDynamicWidth:Y}=(0,ge.Ut)(),{activePage:Re}=(0,ge.H8)(),{clearSeekTime:De}=(0,pe.RC)(),{seekTime:ze}=(0,pe.Hx)(),{closeupPaneWidth:Oe,headerHeight:Le,loadFonts:Ne,isLandingPage:Be,renderStoryPinMediaLayout:Me,renderStoryPinPage:Ze,renderStoryPinSplitLayout:Fe,renderStoryPinText:Ue,productPins:Ve}=z||{},{id:Ge,image_signature:He,story_pin_data_id:We,ip_eligible_for_stela:$e}=l,Ke=!(null==c||!c.is_deleted),qe=null===(S=l.native_creator)||void 0===S?void 0:S.id,{pages:Ye=[],metadata:Xe={}}=c||{},{canvas_aspect_ratio:Je,version:Qe}=Xe,{anyEnabled:et}=B("web_idea_pin_flexible_aspect_ratio_display");let tt=x.ap;et&&Je&&(tt=Je);const it=B((0,H.Z)().isAuth?"closeup_auth_dweb_video_scrubber":"closeup_unauth_dweb_video_scrubber_2").anyEnabled,[nt,ot]=(0,n.useState)(0),at=(0,n.useRef)(0),rt=(0,n.useRef)(null),[st,lt]=(0,n.useState)("closeup"===v&&t),[ct,dt]=(0,n.useState)(375),ut=`calc(100% - ${96*(it?0:1)+32}px)`,pt=(0,n.useRef)(null),[ht,_t]=(0,n.useState)(!1),[mt,gt]=(0,n.useState)(!1),[xt,ft]=(0,n.useState)(!0);(0,n.useEffect)((()=>{w&&w(xt)}),[xt,w]),(0,n.useEffect)((()=>{ft(s)}),[s]);const yt=null===(A=Ye[nt].should_mute)||void 0===A||A,[vt,bt]=(0,n.useState)(Be||yt),Pt=void 0!==g?g:bt,wt=void 0!==r?r:vt;(0,n.useEffect)((()=>{yt&&Pt(!0)}),[yt,Pt]);const{anyEnabled:St}=B("web_music_attr"),At=Ye.filter((e=>!Ie.includes(e.layout))),kt=At.length,Et=At[nt],Tt=P||(0,te.Z)({hasPin:!!l,hasPinRichMetadata:!!l.rich_metadata,hasPinRichMetadataProducts:!(null===(k=l.rich_metadata)||void 0===k||!k.products),hasPinRichMetadataArticle:!(null===(E=l.rich_metadata)||void 0===E||!E.article),hasPinRichMetadataRecipe:!(null===(T=l.rich_metadata)||void 0===T||!T.recipe),hasPinStoryPinData:!!l.story_pin_data}),Ct=Le+64,It="closeup"===v,jt=()=>{if("undefined"!=typeof window){const e=window.innerWidth-(xt?Oe:0)-216;if(It)dt(function({availableWidth:e,flexibleAspectRatioEnabled:t,pageAspectRatio:i,unavailableHeight:n,windowInnerHeight:o}){const a=o-n,r=(o-n)*i;if(t){let t=Math.min(Math.max(ke,Math.min(r,e)),Ae);return t/i>=a&&(t=a*i),t}return Math.max(320,Math.min(r,e))}({availableWidth:e,flexibleAspectRatioEnabled:et,pageAspectRatio:tt,unavailableHeight:Ct,windowInnerHeight:window.innerHeight}));else{const{width:e}=(0,U.Z)({pin:l,maxWidth:re.RZ});dt(e),Y(e)}}};(0,oe.Z)((()=>(window.addEventListener("resize",jt),jt(),()=>{window.removeEventListener("resize",jt)})));const[Rt,Dt]=(0,n.useState)(!1),[zt,Ot]=(0,n.useState)(null),[Lt,Nt]=(0,n.useState)(!1);(0,n.useEffect)((()=>{!Lt&&t&&(N({event_type:7588,view_type:b,view_parameter:Tt,component:13801,object_id_str:Ge,aux_data:{..."number"==typeof f?{grid_index:f}:{}}}),Nt(!0))}),[Lt,t,N,Ge,b,Tt,f]);const[Bt,Mt]=(0,n.useState)(!1);(0,n.useEffect)((()=>{!Bt&&t&&i&&(N({event_type:9314,view_type:b,view_parameter:Tt,component:13801,aux_data:{grid_index:f,pin_id:Ge,image_signature:He,creator_id:qe,story_pin_data_id:We},clientTrackingParams:O(Ge,{shouldTrackForPrevLocation:!0})}),Mt(!0))}),[O,qe,He,t,i,We,b,Tt,Ge,Bt,N,f]);const Zt=(0,n.useCallback)(((e,i=le.oN)=>{const n=Ye[e],{blocks:o}=n||{},a=null==o?void 0:o.find((e=>3===e.block_type));pt.current&&pt.current instanceof _e.B&&(pt.current.clear(),pt.current=null),!a&&t&&(pt.current=new _e.B((e=>{Ot({currentTime:e<1?e:1,duration:1})}),(()=>{const t="closeup"===v?e:Re;if(t{Ot({currentTime:0,duration:1}),Zt(e)};(0,n.useEffect)((()=>{at.current=nt}),[nt]),(0,n.useEffect)((()=>{rt.current=st}),[st]),(0,oe.Z)((()=>(Ft(nt),()=>{pt.current&&pt.current instanceof _e.B&&rt.current&&pt.current.clear()})));const Ut=e=>{F&&F.abort("startNewPwt"),M&&(M.abort("startNewPwt"),M.start(),M.addBinaryAnnotation("page.current.index",e,"I16"),M.addBinaryAnnotation("page.count",Ye.length,"I16"),M.addBinaryAnnotation("view.type",b,"I32"),M.addBinaryAnnotation("view.parameter",Tt,"I32"))};(0,oe.Z)((()=>{F&&(F.addBinaryAnnotation("page.current.index",nt,"I16"),F.addBinaryAnnotation("page.count",Ye.length,"I16"),F.addBinaryAnnotation("view.type",b,"I32"),F.addBinaryAnnotation("view.parameter",Tt,"I32"))}));const Vt=e=>{st||lt(!0),ht&&_t(!1),Ft(e),e!==nt&&De(),ot(e),q(e),Ut(e)};(0,n.useEffect)((()=>{if(ht&&_t(!1),pt.current&&ze){const e=pt.current;e.pause(),e.remaining=le.oN-ze*ce.gJ,Ot({currentTime:ze/(le.oN/ce.gJ),duration:1})}}),[ze]),(0,n.useEffect)((()=>{q(Re)}),[q,Re]),(0,n.useEffect)((()=>{"related-products"===v&&(ot(Re),Vt(Re))}),[Re,v]);const Gt=()=>ht?13799:0===nt?227:228,Ht=()=>{nt{nt===kt-1&&ht?(Vt(nt),N({event_type:101,view_type:b,view_parameter:Tt,component:Gt(),element:12260,object_id_str:Ge})):nt>0&&(Vt(nt-1),N({event_type:101,view_type:b,view_parameter:Tt,component:Gt(),element:12260,object_id_str:Ge}))},$t=e=>{const{keyCode:t}=e,i=e.srcElement,n=i.isContentEditable||i.contentEditable&&"true"===i.contentEditable;37!==t||n?39!==t||n||Ht():Wt()};(0,n.useEffect)((()=>(document.addEventListener("keydown",$t),()=>document.removeEventListener("keydown",$t))),[nt]);const[Kt,qt]=(0,n.useState)(!1),[Yt,Xt]=(0,n.useState)((()=>!!l&&je(Ye))),Jt=()=>{const e=Ye.reduce(((e,t)=>{var i;return null===(i=t.blocks)||void 0===i||i.filter((e=>[x.h8.PARAGRAPH,x.h8.HEADING].includes(e.type))).forEach((t=>{var i;const n=(null===(i=t.style)||void 0===i?void 0:i.font)||x.Cc.font,{name:o=""}=n;e[o]||(e[o]=n)})),e}),{});if(Object.keys(e).length>0){const t=Object.keys(e).map((t=>{const i=e[t];return(0,se.d3)({letterSpacing:i.letter_spacing,lineHeight:i.line_height,name:i.name,url:i.url})}));Ne&&(Ne(t),qt(!0))}};(0,oe.Z)((()=>{Jt()})),(0,oe.Z)((()=>{Yt||Jt()})),(0,n.useEffect)((()=>{Xt(je(Ye))}),[Ye]);const Qt=Qe?(0,_e.n)(Qe,"0.8.0"):null,ei=null!=Qt&&Qt>=0,ti=e=>{e===kt-1&&(_t(!0),lt(!1),q(0)),e===nt&&Ht()},ii=e=>{var t,i;Ot({currentTime:null!==(t=null==e?void 0:e.currentTime)&&void 0!==t?t:0,duration:null!==(i=null==e?void 0:e.duration)&&void 0!==i?i:1})},ni=()=>{gt(!0),lt(!1),pt.current&&!pt.current.paused&&pt.current.pause()},oi=i=>{var n,o;return Ye[i]?ei?Ze({activePageIndex:nt,fontsLoaded:Kt,customEndCard:!0,isActive:i===nt&&st,muteVideos:wt,onChangeMuteVideo:Pt,onEnded:ti,onFlyoutOpen:ni,videoPinProgress:nt===i?zt:void 0,onUpdateVideoInfo:ii,ownerId:null!==(n=null===(o=l.native_creator)||void 0===o?void 0:o.id)&&void 0!==n?n:"",page:Ye[i],pageAspectRatio:tt,pageIndex:i,pageHeight:ct/tt,pageWidth:ct,pin:l,pinId:l.id,productPins:Ve,shouldLogTimeSpent:t,stillLoading:!Yt}):(t=>{const i=0===t.layout;switch(t.layout){case 0:case 1:return Me({activePageIndex:nt,hideText:i,isActive:!0,isCoverPage:i,muteVideos:wt,onClickThrough:e.onClickThrough,page:t,pageIndex:nt,pageWidth:ct,pinId:Ge});case 4:return t.blocks.length>0&&Ue({blocks:t.blocks,pageId:`text-${nt}`,page:t,pinId:Ge,onClickThrough:e.onClickThrough});case 3:return Fe({page:t});default:return null}})(Et):null},ai=()=>{if(lt(!1),pt.current){pt.current.pause()}N({event_type:9324,view_type:b,view_parameter:Tt,component:Gt(),object_id_str:Ge,aux_data:{story_pin_page_id:nt}})},ri=()=>{if(lt(!0),pt.current){const e=pt.current;ze&&ze>0&&De(),e.resume()}else zt||Ft(nt);N({event_type:9323,view_type:b,view_parameter:Tt,component:Gt(),object_id_str:Ge,aux_data:{story_pin_page_id:nt}})},si=()=>{ht||(gt(!1),st?ai():ri())};(0,n.useEffect)((()=>{"closeup"===v&&(!t||ht||st?!t&&st&&ai():ri())}),[t,v]),(0,n.useEffect)((()=>{"related-products"===v&&ai()}),[]);const li=()=>{Vt(0)},ci=()=>{yt||Pt(!wt)};return(0,_.jsxs)(h.xu,{left:!0,dangerouslySetInlineStyle:{__style:It?{top:Le,height:`calc(100vh - ${Le}px)`,position:"sticky",pointerEvents:"none",minHeight:632,zIndex:xt?"auto":3}:{}},display:"flex",children:[(0,_.jsxs)(h.xu,{flex:"grow",display:"flex",justifyContent:"center",alignItems:"center",position:"relative",dangerouslySetInlineStyle:{__style:{pointerEvents:"auto"}},color:"default",children:[It&&(0,_.jsx)(h.xu,{bottom:!0,color:"secondary",left:!0,position:"absolute",right:!0,top:!0}),Ke?(0,_.jsx)(ne.Z,{width:ct,height:ct/x.ap,rounding:x.yR}):(0,_.jsxs)(n.Fragment,{children:[Yt&&(0,_.jsx)(h.xu,{width:1,height:1,position:"absolute",top:!0,left:!0,marginTop:-1,overflow:"hidden",children:(()=>{const e=[];for(let t=1;t<=3;t+=1)nt+tDt(di)),onMouseLeave:()=>{Dt(!1)},children:[!it&&(0,_.jsx)(Q.Z,{dataTestId:"story-pin-closeup-previous",show:nt>0,onClick:Wt,isPrevious:!0}),(0,_.jsxs)(h.xu,{paddingX:4,children:[(0,_.jsxs)(h.xu,{display:"flex",position:"absolute",bottom:it,width:ut,zIndex:x.Gf,paddingX:Ee,dangerouslySetInlineStyle:{__style:{...it?Ce:Te,flexDirection:it?"column-reverse":"column"}},height:128,children:[it?(0,_.jsx)(K.Z,{activePageIndex:nt,handleMute:ci,handlePageChange:e=>Vt(e),handlePanelChange:()=>{ft(!xt)},handlePausePlay:si,handlePause:ai,handlePlay:ri,handleVideoScrubbingNewPage:e=>{ht&&_t(!1),Ft(e),ot(e),q(e),Ut(e)},handleWatchAgain:li,isMuted:wt,isPanelOpen:xt,onPageSelect:e=>Vt(e),pages:At,pageCount:kt,isPlaying:st,progressInfo:zt,showEndCard:ht,showVideoControls:Rt,viewParameter:Tt}):(0,_.jsx)(h.xu,{height:20,display:"flex",alignItems:"center",dangerouslySetInlineStyle:{__style:{pointerEvents:"auto"}},children:(0,_.jsx)(a.Z,{activePageIndex:nt,onPageSelect:e=>Vt(e),pageCount:kt,progressInfo:zt,showEndCard:ht})}),!ht&&!it&&(0,_.jsxs)(h.kC,{alignItems:"stretch",justifyContent:"between",children:[(0,_.jsx)(h.xu,{children:l.native_creator&&!xt&&(e=>{const{follower_count:t,full_name:i,image_medium_url:n,username:o}=e,{id:a,sponsorship:r}=l,{creator:{id:s}={}}=r||{};return(0,_.jsx)(Z.Z,{name:"SafeSuspense_IdeaPinCloseup_CreatorCardProfile",children:(0,_.jsx)(ie.Z,{children:(0,_.jsx)(fe,{color:"inverse",followerCount:t,fullName:i,imageUrl:n,profileUrl:o?`/${o}/`:"/",onNavigateClick:()=>{var e,t;N({event_type:101,view_type:b,view_parameter:Tt,element:11619,object_id_str:a,component:230,aux_data:{story_pin_template_type:null===(e=l.story_pin_data)||void 0===e||null===(t=e.metadata)||void 0===t?void 0:t.template_type,pin_id:a,creator_id:s}})}})})})})(l.native_creator)}),(0,_.jsxs)(h.kC,{alignItems:"stretch",justifyContent:"start",children:[(0,_.jsx)(J.Z,{mute:wt,onChangeMute:ci}),!xt&&(0,_.jsx)(Z.Z,{name:"SafeSuspense_IdeaPinCloseup_Dropdown",children:(0,_.jsx)(ie.Z,{children:(0,_.jsx)(ye,{componentType:13801,goBack:u,onEditSubmit:m,pin:l,viewParameter:Tt,viewType:b,iconColor:"white"})})})]})]})]}),St&&(0,_.jsx)(X,{activePageIndex:nt,pages:Ye,showEndCard:ht,pageWidth:ct,panelOpen:xt}),!ht&&!xt&&(0,_.jsxs)(h.xu,{display:"flex",height:128,position:"absolute",top:it,width:ut,zIndex:x.Gf,padding:4,dangerouslySetInlineStyle:{__style:xt?{}:it?Te:Ce},alignItems:it?"start":"end",justifyContent:"between",children:[(0,_.jsxs)(h.kC,{alignItems:"stretch",direction:"row",children:[!xt&&(0,_.jsx)(Z.Z,{name:"SafeSuspense_IdeaPinCloseup_IdeaPinSecondarySendButton",children:(0,_.jsx)(ie.Z,{children:(0,_.jsx)(we,{shareButtonRef:V})})}),!xt&&l.is_eligible_for_aggregated_comments&&(0,_.jsx)(Z.Z,{name:"SafeSuspense_IdeaPinCloseup_CommentButton",children:(0,_.jsx)(ie.Z,{children:(0,_.jsx)(xe,{onCommentClick:()=>{N({event_type:101,view_type:b,view_parameter:Tt,component:13801,element:10944,object_id_str:l.id}),i&&y?y():ft(!0),p&&p();const e=document.getElementById(`canonical-card-${l.id}`);e&&e.scrollIntoView({behavior:"smooth",block:"end"})}})})}),!xt&&(0,_.jsx)(Z.Z,{name:"SafeSuspense_IdeaPinCloseup_ReactionPickerContainer",children:(0,_.jsx)(ie.Z,{children:(0,_.jsx)(h.xu,{"data-test-id":"pointer-events-wrapper",dangerouslySetInlineStyle:{__style:{pointerEvents:"auto"}},children:(0,_.jsx)(Pe,{component:13801,iconColor:"white",pinId:l.id,reactionByMe:l.reaction_by_me,showTooltip:!0,viewParameter:Tt,viewType:b,isStoryPinActionBar:!0})})})}),!xt&&$e&&(0,_.jsx)(Z.Z,{name:"SafeSuspense_IdeaPinCloseup_ShopButton",children:(0,_.jsx)(ie.Z,{children:(0,_.jsx)(Se,{pinId:l.id,onShopButtonClick:()=>ft(!xt),viewParameter:Tt,viewType:b})})})]}),!xt&&(0,_.jsx)(Z.Z,{name:"SafeSuspense_IdeaPinCloseup_PinSaveButton",children:(0,_.jsx)(ie.Z,{children:(0,_.jsx)(h.xu,{"data-test-id":"pointer-events-wrapper",dangerouslySetInlineStyle:{__style:{pointerEvents:"auto"}},children:(0,_.jsx)(be,{pin:l,size:"lg",onClickCallback:()=>{N({event_type:101,view_type:b,view_parameter:Tt,component:13801,element:0,object_id_str:l.id})}})})})})]}),(0,_.jsxs)(h.xu,{position:"relative",children:[(0,_.jsx)(h.iP,{accessibilityLabel:st?L._('Pause', 'storyPin.closeup.pauseButton.accessibilityLabel', 'Button label for pause tap area'):L._('Play', 'storyPin.closeup.playButton.accessibilityLabel', 'Button label for play tap area'),disabled:ht,onTap:si,rounding:x.yR,children:(0,_.jsxs)(h.xu,{"data-test-id":"story-pin-closeup-page",position:"relative",rounding:x.yR,overflow:"hidden",width:ct,height:ct/tt,children:[oi(nt),!ht&&!mt&&(0,_.jsx)(ee.Z,{playing:st}),"authDesktop"===e.type&&ht&&l.native_creator&&(0,_.jsx)(Z.Z,{name:"IdeaPinCloseup_EndCard",children:(0,_.jsx)(ie.Z,{children:(0,_.jsx)(h.xu,{rounding:x.yR,padding:4,zIndex:x.s5,position:"absolute",top:!0,bottom:!0,left:!0,right:!0,children:(0,_.jsx)(ve,{creatorName:null!==(C=l.native_creator.username)&&void 0!==C?C:"",watchAgain:li,viewType:b,viewParameter:Tt,pinDescription:null!==(I=l.description)&&void 0!==I?I:"",imageSrc:null!==(j=l.image_url)&&void 0!==j?j:"",pinId:l.id})})})})]})}),!(null===(R=l.call_to_create_source_pin)||void 0===R||!R.id)&&(0,_.jsx)(h.xu,{position:"absolute",bottom:!0,right:!0,margin:6,children:(0,_.jsx)(h.iP,{onTap:()=>{N({event_type:102,view_type:3,element:12336}),l.call_to_create_source_pin_id&&G.push(`/pin/${l.call_to_create_source_pin_id}/`)},rounding:2,children:(0,_.jsx)(o.Z,{images:[l.call_to_create_source_pin.image_medium_url||""],height:80,isResponse:!0})})})]})]}),!it&&(0,_.jsx)(Q.Z,{dataTestId:"story-pin-closeup-next",show:ntft(!xt)})]}),xt&&It&&(0,_.jsx)(h.xu,{width:Oe,height:"100%",flex:"none",position:"relative",children:"duplo"===e.type&&e.storyPinDetails})]});var di}function De(e){var t,i,o;const{pin:a,viewType:r=3,viewParameterType:s}=e,[l,c]=(0,n.useState)({isInFocus:!0,viewability:0}),{isInFocus:d,viewability:u}=l,p=s||(0,te.Z)({hasPin:!!a,hasPinRichMetadata:!!a.rich_metadata,hasPinRichMetadataProducts:!(null===(t=a.rich_metadata)||void 0===t||!t.products),hasPinRichMetadataArticle:!(null===(i=a.rich_metadata)||void 0===i||!i.article),hasPinRichMetadataRecipe:!(null===(o=a.rich_metadata)||void 0===o||!o.recipe),hasPinStoryPinData:!!a.story_pin_data}),m=(0,me.useLocation)();return(0,_.jsx)(he.T,{children:(0,_.jsx)(q.Z,{options:{threshold:[0,.5,.8,.99,1]},onVisibilityChange:e=>{if(e&&e.length>0){const{intersectionRatio:t}=e[0];c({isInFocus:t>.5,viewability:t})}},children:t=>{var i,n;return(0,_.jsx)(h.xu,{ref:t,children:(0,_.jsx)(M,{closeupStoryPinViewability:u,pin:a,viewType:r,viewParameter:p,children:d?(0,_.jsx)(k.Z,{clientTrackingParams:(0,F.Z)({boardUrl:null===(i=a.board)||void 0===i?void 0:i.url,callToCreateSourcePinId:a.call_to_create_source_pin_id,location:m,pinId:a.id,pinnerUserName:null===(n=a.pinner)||void 0===n?void 0:n.username,storyPinDataId:a.story_pin_data_id,trackingParams:a.tracking_params,trackingParamsMap:a.tracking_params_map}),component:13801,objectId:a.id,view:r,viewParameter:p,children:(0,_.jsx)(Re,{...e,isInFocus:d})}):(0,_.jsx)(Re,{...e,isInFocus:d})})})}})})}},132998:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(898781),o=i(883119),a=i(785893);function r({mute:e,onChangeMute:t}){const i=(0,n.ZP)();return(0,a.jsx)(o.xu,{"data-test-id":"story-pin-closeup-mute",dangerouslySetInlineStyle:{__style:{pointerEvents:"auto"}},children:(0,a.jsx)(o.hU,{accessibilityLabel:e?i._('Click to unmute', 'storyPin.closeup.volume', 'Button label to unmute the video'):i._('Click to mute', 'storyPin.closeup.volume', 'Button label to mute the video'),icon:e?"mute":"sound",onClick:()=>t(!e),iconColor:"white",size:"lg"})})}},219723:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(898781),o=i(883119),a=i(785893);function r({dataTestId:e,show:t,onClick:i,isPrevious:r}){const s=(0,n.ZP)();return(0,a.jsx)(o.xu,{display:"flex",justifyContent:"center",opacity:t?1:0,dangerouslySetInlineStyle:{__style:{transition:"500ms opacity linear"}},"data-test-id":e,children:(0,a.jsx)(o.hU,{accessibilityLabel:r?s._('Go to previous page', 'storyPin.closeup.nav', 'Button to go to previous page in Story Pin'):s._('Go to next page', 'storyPin.closeup.nav', 'Button label to go to next page in Story Pin'),bgColor:"transparent",disabled:!t,icon:r?"arrow-back":"arrow-forward",iconColor:"darkGray",onClick:i,size:"lg",tabIndex:t?0:-1})})}},293324:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(898781),o=i(883119),a=i(785893);function r({open:e,onChange:t}){const i=(0,n.ZP)();return(0,a.jsx)(o.xu,{"data-test-id":"story-pin-closeup-panel",children:e?(0,a.jsx)(o.hU,{accessibilityLabel:i._('Click to maximize Idea Pin', 'storyPin.closeup.panel', 'Button label to maximize the Idea Pin'),bgColor:"transparent",icon:"maximize",iconColor:"darkGray",onClick:()=>t(!1),size:"lg"}):(0,a.jsx)(o.hU,{accessibilityLabel:i._('Click to minimize Idea Pin', 'storyPin.closeup.panel', 'Button label to minimize the Idea Pin'),bgColor:"transparent",icon:"minimize",iconColor:"darkGray",onClick:()=>t(!0),size:"lg"})})}},646422:(e,t,i)=>{i.d(t,{Z:()=>l});var n=i(667294),o=i(391254),a=i(224496),r=i(883119),s=i(785893);function l({playing:e}){return(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(o.Z,{unsafeCSS:"#story-pin-closeup-pause-play-overlay svg { filter: drop-shadow( 0px 0px 8px rgba(0,0,0,0.1)); }"}),(0,s.jsx)(r.xu,{id:"story-pin-closeup-pause-play-overlay",rounding:a.yR,position:"absolute",top:!0,left:!0,bottom:!0,right:!0,display:"flex",justifyContent:"center",alignItems:"center",opacity:.8,dangerouslySetInlineStyle:{__style:{pointerEvents:"none"}},children:!e&&(0,s.jsx)(r.JO,{icon:"play",size:48,accessibilityLabel:"Play",color:"light"})})]})}},124364:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(898781),o=i(883119),a=i(785893);function r({height:e,isDenseView:t,rounding:i,width:r}){const s=(0,n.ZP)();return(0,a.jsx)(o.xu,{color:"default",display:"flex",justifyContent:"center",alignItems:"center",position:"relative",rounding:i,overflow:"hidden",width:r,height:e,"data-test-id":"unavailable-pin",children:(0,a.jsxs)(o.kC,{direction:"column",alignItems:"center",children:[(0,a.jsx)(o.xu,{paddingY:t?2:4,children:(0,a.jsx)(o.JO,{accessibilityLabel:s._('Pin not available', 'story-pin.Closeup.UnavailableIdeaPin.icon.accessibilityLabel', 'Accessibility label on icon'),color:"default",icon:"alert",size:20})}),(0,a.jsx)(o.xv,{weight:"bold",children:s._('Unavailable', 'story-pin.Closeup.UnavailableIdeaPin.Unavailable', 'Text on an unavailable idea Pin that has been deleted')}),!t&&(0,a.jsx)(o.xu,{paddingY:1,children:(0,a.jsx)(o.xv,{children:s._('Removed by the creator', 'story-pin.Closeup.UnavailableIdeaPin.Removed', 'Text on an unavailable idea Pin explaining it has been removed by its creator')})})]})})}},31458:(e,t,i)=>{i.d(t,{Z:()=>d});var n=i(667294),o=i(883119),a=i(785893);function r({progressInfo:e}){const{currentTime:t,duration:i}=e,[r,s]=(0,n.useState)(0),[l,c]=(0,n.useState)("none"),d=(0,n.useRef)(0);(0,n.useEffect)((()=>{c(tt(0,a.jsx)(o.xu,{flex:"grow",dangerouslySetInlineStyle:{__style:{margin:"0 2px"}},children:(0,a.jsx)(o.u,{zIndex:c.Gf,idealDirection:"up",text:(0,l.nk)(u._('Page {{ pageIndex }} of {{ pageCount }}', 'ideaPin.closeup.pagination', 'Button label to change to the Idea pin page'),{pageIndex:n+1,pageCount:i}).join(""),children:(0,a.jsx)(o.iP,{accessibilityLabel:u._('ProgressBar button', 'ideaPin.closeup.paginationButton', 'Button to change from one page to another in Idea Pin Pagination'),rounding:"pill",onTap:()=>t(n),children:h(n)})})},n)))})}},534611:(e,t,i)=>{i.d(t,{Z:()=>p});var n=i(667294),o=i(654579),a=i(898781),r=i(623568),s=i(858416),l=i(224496),c=i(883119),d=i(785893);const u=({icon:e,accessibilityLabel:t,handleTap:i})=>(0,d.jsx)(c.iP,{onTap:i,children:(0,d.jsx)(c.JO,{accessibilityLabel:t,color:"light",icon:e,size:16})});function p({activePageIndex:e,handlePageChange:t,handlePanelChange:i,handlePlay:p,handlePause:h,handlePausePlay:_,handleMute:m,handleVideoScrubbingNewPage:g,handleWatchAgain:x,isPlaying:f,isMuted:y,isPanelOpen:v,pages:b,pageCount:P,pinId:w="",progressInfo:S,showEndCard:A,showVideoControls:k=!1,viewParameter:E}){const T=(0,a.ZP)(),{currentTime:C}=S||{},{seekTimes:I,isSeekingIdeaPin:j}=(0,s.Hx)(),R=Object.keys(I).includes(w)&&I[w]?I[w]:C,D=(0,n.useMemo)((()=>b.map((e=>{var t,i,n,o,a,s,l;const c=null===(t=e.blocks)||void 0===t?void 0:t.find((e=>3===e.block_type)),d=(null==c||null===(i=c.video)||void 0===i||null===(n=i.video_list)||void 0===n||null===(o=n.V_HLSV3_MOBILE)||void 0===o?void 0:o.duration)||(null==c||null===(a=c.video)||void 0===a||null===(s=a.video_list)||void 0===s||null===(l=s.V_720P)||void 0===l?void 0:l.duration);return d?{duration:d,isVideo:!0}:{duration:r.oN,isVideo:!1}}))),[b]),z=(0,n.useMemo)((()=>D.reduce(((e,t)=>e+(t.duration||0)),0)/1e3),[D]),O=(0,n.useMemo)((()=>D.filter(((t,i)=>ie+(t.duration||0)),0)/1e3),[D,e]),L=D[e].isVideo||j?R+O:5*R+O;return(0,d.jsxs)(c.xu,{alignItems:"baseline",alignContent:"evenly",direction:"column",display:"flex",justifyContent:"between",width:"100%",dangerouslySetInlineStyle:{__style:{gap:"18.5px",pointerEvents:"auto"}},children:[(0,d.jsxs)(c.xu,{alignItems:"center",direction:"row",justifyContent:"between",width:"99%",display:"flex",dangerouslySetInlineStyle:{__style:{opacity:k||!f?1:0,transition:"all .1s"}},children:[(0,d.jsxs)(c.kC,{direction:"row",gap:5,alignItems:"center",children:[(0,d.jsx)(u,{accessibilityLabel:f?T._('Pause', 'closeup.IdeaPinVideo.Pause', 'Pause button on Idea Pin video'):T._('Play', 'closeup.IdeaPinVideo.Play', 'Play button on Idea Pin video'),icon:f?"pause":"play",handleTap:A?x:_}),S&&(0,d.jsxs)(c.xu,{"data-test-id":"time-display",children:[(0,d.jsx)(c.xv,{color:"inverse",align:"end",overflow:"normal",size:"300",inline:!0,weight:"bold",children:`${(0,l.Lc)(L)}`})," ",(0,d.jsx)(c.xu,{opacity:.6,display:"inlineBlock",children:(0,d.jsx)(c.xv,{color:"inverse",align:"end",overflow:"normal",size:"300",inline:!0,weight:"bold",children:`/ ${(0,l.Lc)(z)}`})})]})]}),(0,d.jsxs)(c.kC,{direction:"row",gap:5,children:[(0,d.jsx)(u,{accessibilityLabel:y?T._('Mute', 'closeup.IdeaPinVideo.mute', 'Mute button on Idea Pin video'):T._('Unmute', 'closeup.IdeaPinVideo.unmute', 'Unmute button on Idea Pin video'),icon:y?"mute":"sound",handleTap:m}),(0,d.jsx)(u,{accessibilityLabel:v?T._('Maximize', 'closeup.IdeaPinVideo.maximize', 'Maximize button on Idea Pin video'):T._('Minimize', 'closeup.IdeaPinVideo.minimize', 'Minimize button on Idea Pin video'),icon:v?"maximize":"minimize",handleTap:i})]})]}),(0,d.jsx)(o.ZP,{activePageIndex:e,activePageCurrentTime:R,currentTime:L,duration:z,handlePlay:p,handlePause:h,handleVideoScrubbingNewPage:g,isPlaying:f,onPageSelect:e=>t(e),pageCount:P,pageDurations:D,pinId:w,progressInfo:S,shouldShowPlayhead:!0,showEndCard:A,videoDurations:D,viewParameter:E})]})}},654579:(e,t,i)=>{i.d(t,{U1:()=>x,lT:()=>g,$E:()=>f,$:()=>y,CT:()=>v,ZP:()=>w});var n=i(667294),o=i(883119),a=i(179888),r=i(785893);function s({activePageCurrentTime:e,pillHeight:t,progressInfo:i,videoDuration:s,videoScrubberV2Enabled:l}){var c,d;const u=null!==(c=null==i?void 0:i.currentTime)&&void 0!==c?c:0,p=null!==(d=null==i?void 0:i.duration)&&void 0!==d?d:1,[h,_]=(0,n.useState)("none"),[m,b]=(0,n.useState)(0),P=(0,n.useRef)(0),w=e||u,S=(null!=s&&s.isVideo?Math.floor(1e4*w/(s.duration/a.gJ))/100:u/p*100)+"%";return(0,n.useEffect)((()=>{_(u{},P={width:"100%",display:"flex",paddingX:4};function w({activePageIndex:e,activePageCurrentTime:t,onPageSelect:i,pageCount:a,progressInfo:x,showEndCard:f,duration:v=0,currentTime:w=0,pageDurations:A=[],handlePlay:k=b,handlePause:E=b,handleVideoScrubbingNewPage:T=b,videoDurations:C=[],viewParameter:I,isInactiveStreamPin:j=!1,isPlaying:R=!1,shouldShowPlayhead:D=!1,pinId:z=""}){const O=(0,l.ZP)(),L=!(0,h.HG)(),N=(0,n.useRef)(null),{checkExperiment:B}=(0,p.F)(),[M,Z]=(0,n.useState)(!1),[F,U]=(0,n.useState)(-1),[V,G]=(0,n.useState)(R),[H,W]=(0,n.useState)(),$=(0,c.Z)(),{isSeekingIdeaPin:K}=(0,m.Hx)(),{updateSeekTime:q,updateSeekingIdeaPin:Y}=(0,m.RC)(),X=(0,d.Z)().isAuth,J=(0,n.useCallback)(((t,i)=>{!j&&i<=a&&(i!==e&&T(i),q(t/1e3,z)),$({event_type:101,view_type:3,view_parameter:I,component:14302})}),[e,T,j,$,a,z,q,I]),Q=Math.floor(1e4*w/v)/100+"%",ee=A.map((e=>(e.duration||0)/v/10+"%")),te=(0,n.useMemo)((()=>{let e=0;return A.map((({duration:t})=>{const i=t+e,n={min:e,max:i};return e=i,n}))}),[A]),ie=te.length>0,ne=ie&&!L&&B(X?"closeup_auth_dweb_video_scrubber":"closeup_unauth_dweb_video_scrubber_2").anyEnabled,oe=ie&&L&&B(X?"closeup_auth_mweb_video_scrubber":"closeup_unauth_mweb_video_scrubber_2").anyEnabled,ae=L?oe:ne,re=ae?M?"0 1.2px":"0 1px":"0 2px",se=e=>()=>Z(e),le=e=>()=>ae&&U(e),ce=(0,n.useCallback)((e=>{if(N.current&&ae){const{left:t=0,width:i=0}=N.current.getBoundingClientRect(),n=Math.max(0,Math.min((e-t)/i,1))*v*1e3,o=te.findIndex((e=>n>=e.min&&n<=e.max));J(n-te[o].min,o)}}),[v,J,te,ae]),de=e=>()=>i(e),ue=()=>{K||(G(R),Y(!0))},pe=(0,n.useCallback)((e=>{K&&ce(e.pageX)}),[ce,K]),he=(0,n.useCallback)((e=>{if(K){e.preventDefault();const t=Array.from(e.changedTouches).find((e=>e.identifier===H));t&&ce(t.pageX)}}),[K,ce,H]),_e=(0,n.useCallback)((()=>{Y(!1),V&&k()}),[Y,k,V]),me=(0,n.useCallback)((e=>{Array.from(e.changedTouches).find((e=>e.identifier===H))&&K&&(Y(!1),se(!1),W(null)),V&&k()}),[k,V,K,H,Y]);(0,n.useEffect)((()=>(K&&(window.addEventListener("mousemove",pe),window.addEventListener("mouseup",_e),window.addEventListener("touchmove",he),window.addEventListener("touchend",me)),()=>{window.removeEventListener("mousemove",pe),window.removeEventListener("mouseup",_e),window.removeEventListener("touchmove",he),window.removeEventListener("touchend",me)})),[pe,_e,me,he,K,ce,H]);const ge={alignItems:"center","aria-label":O._('Video scrubber progress bar', 'ideaPin.closeupvideo.videoScrubberLabel', 'Accessibility label for video scrubber progress bar on video idea pins.'),"aria-valuemax":v||1,"aria-valuemin":"0","aria-valuenow":w||0,display:"flex",flex:"grow",justifyContent:L?"center":"start",marginBottom:L?0:6,minHeight:"8px",onFocus:se(!0),onMouseDown:e=>{ue(),R&&E(),ce(e.pageX)},onMouseLeave:()=>{se(!1),le(-1)},onMouseOver:se(!0),onTouchStart:e=>{ue(),se(!0);const t=e.changedTouches[0];W(t.identifier),R&&E(),ce(t.pageX)},onTouchEnd:e=>e.preventDefault(),position:"relative",ref:N,role:"progressbar",width:"100%"},xe=i=>{const n=g*(M&&(F===i||K&&i===e)?2:M?1.5:1);return i(0,r.jsx)(o.xu,{flex:"grow",width:ae&&ee.length===a?ee[t]:"auto",dangerouslySetInlineStyle:{__style:{margin:re}},children:ae?(0,r.jsx)(o.xu,{"data-test-id":"Idea Pin video progress bar",rounding:"pill",onMouseOver:le(t),onFocus:le(t),onMouseLeave:le(-1),dangerouslySetInlineStyle:{__style:{transition:"all .1s"}},children:xe(t)}):(0,r.jsx)(o.u,{zIndex:new o.H3([_.jH]),idealDirection:"up",text:(0,u.nk)(O._('Page {{ pageIndex }} of {{ pageCount }}', 'ideaPin.closeup.pagination', 'Button label to change to the Idea pin page'),{pageIndex:t+1,pageCount:a}).join(""),children:(0,r.jsx)(o.iP,{accessibilityLabel:O._('ProgressBar button', 'ideaPin.closeup.paginationButton', 'Button to change from one page to another in Idea Pin Pagination'),rounding:"pill",onTap:de(t),children:xe(t)})})},`${z}-${t}`)))]})}const S=({currentTime:e=0,isMobile:t,isSeeking:i,scrubberWidth:n})=>{const a=t&&i;return(0,r.jsxs)(o.xu,{position:"relative",dangerouslySetInlineStyle:{__style:{left:n}},children:[a&&(0,r.jsx)(o.xu,{position:"absolute",dangerouslySetInlineStyle:{__style:{top:"-32px"}},marginStart:-3,children:(0,r.jsx)(o.xv,{color:"light",size:"100",children:(0,_.Lc)(e)})}),(0,r.jsx)(o.xu,{position:"absolute",rounding:"pill",height:g,color:y,children:(0,r.jsx)(o.xu,{rounding:"circle",marginStart:-2,width:a?16:12,height:a?16:12,color:"light",dangerouslySetInlineStyle:{__style:{marginTop:a?-8:-6,transform:"scale(1.25)"}}})})]})}},858416:(e,t,i)=>{i.d(t,{Wr:()=>u,Hx:()=>h,RC:()=>p});var n=i(667294);var o=i(311541),a=i(425288),r=i(924687),s=i(785893);const l=()=>Promise.resolve().then(i.bind(i,924687)),{Provider:c,useHook:d}=(0,a.Z)("IdeaPinVideoPlayer");function u({children:e}){const[t,i]=(0,o.Z)(l,r.initialState),a=(0,n.useMemo)((()=>({dispatch:i,ideaPinVideoPlayerControls:t})),[i,t]);return(0,s.jsx)(c,{value:a,children:e})}function p(){const{dispatch:e}=d();return(0,n.useMemo)((()=>({updateSeekTime:(t,i)=>{e({type:"UPDATE_SEEK_TIME",payload:{seekTime:t,pinId:i||""}})},clearSeekTime:t=>{e({type:"CLEAR_SEEK_TIME",payload:{seekTime:void 0,pinId:t||""}})},updateSeekingIdeaPin:t=>{e(t?{type:"UPDATE_SEEKING_IDEA_PIN",payload:{isSeekingIdeaPin:t}}:{type:"UPDATE_SEEKING_IDEA_PIN",payload:{isSeekingIdeaPin:t,seekTime:void 0}})},updateCurrentTime:t=>{e({type:"UPDATE_CURRENT_TIME",payload:{currentTime:t}})},updateDuration:t=>{e({type:"UPDATE_DURATION",payload:{duration:t}})}})),[e])}function h(){const{ideaPinVideoPlayerControls:e}=d();return e}},924687:(e,t,i)=>{i.r(t),i.d(t,{default:()=>o,initialState:()=>n});const n={seekTime:void 0,seekTimes:{},isSeekingIdeaPin:!1,currentProgressInfo:{currentTime:0,duration:0}};function o(e=n,t){switch(t.type){case"UPDATE_SEEK_TIME":return{...e,seekTimes:{...e.seekTimes,[t.payload.pinId]:t.payload.seekTime},seekTime:t.payload.seekTime};case"CLEAR_SEEK_TIME":return{...e,seekTimes:{},seekTime:void 0};case"UPDATE_SEEKING_IDEA_PIN":return{...e,isSeekingIdeaPin:t.payload.isSeekingIdeaPin};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}}},488789:(e,t,i)=>{i.d(t,{c:()=>s,o:()=>r});var n=i(667294),o=i(785893);const a=(0,n.createContext)(null);function r({children:e,closeupPaneWidth:t,headerHeight:i,isLandingPage:r,loadFonts:s,renderStoryPinMediaLayout:l,renderStoryPinSplitLayout:c,renderStoryPinText:d,renderStoryPinPage:u,productPins:p}){const h=(0,n.useMemo)((()=>({closeupPaneWidth:t,headerHeight:i,isLandingPage:r,loadFonts:s,renderStoryPinMediaLayout:l,renderStoryPinSplitLayout:c,renderStoryPinText:d,renderStoryPinPage:u,productPins:p})),[t,i,r,s,l,c,d,u,p]);return(0,o.jsx)(a.Provider,{value:h,children:e})}const s=()=>(0,n.useContext)(a)},224496:(e,t,i)=>{i.d(t,{Cc:()=>p,Gf:()=>m,LX:()=>o,Lc:()=>x,Rf:()=>l,YL:()=>s,ap:()=>a,h8:()=>d,jH:()=>g,kF:()=>h,pE:()=>c,s5:()=>_,tQ:()=>u,yR:()=>r});var n=i(883119);const o={w:9,h:16},a=o.w/o.h,r=8,s=10,l=5e3;function c(e,t=1){return{x:(null!=e?e:24)/5,y:(null!=e?e:24)*(t-1)}}const d={COMMENT_REPLY_STICKER:"story_pin_comment_reply_block",GENERIC_STICKER:"story_pin_generic_interactive_sticker_block",HEADING:"story_pin_heading_block",IMAGE:"story_pin_image_block",INGREDIENT:"story_pin_ingredient_block",LINK:"story_pin_link_block",MENTION_STICKER:"story_pin_mention_sticker_block",MUSIC:"story_pin_music_block",PARAGRAPH:"story_pin_paragraph_block",PRODUCT_STICKER:"story_pin_product_sticker_block",SUPPLY:"story_pin_supply_block",VIDEO:"story_pin_video_block",VTO_MAKEUP_STICKER:"story_pin_virtual_try_on_makeup_sticker_block"},u=[d.IMAGE,d.VIDEO],p={alignment:1,hex_color:"#111111",highlight_color:"#FFFFFF",vertical_alignment:1,font:{default_size:28,id:"1",key:"Graphik-Regular.otf",letter_spacing:-.4,line_height:1.25,name:"Teaspoon",url:"https://s.pinimg.com/story_pins/fonts/Graphik-Regular.otf"},font_size:28},h=new n.Ry(5),_=new n.H3([h]),m=new n.H3([_]),g=new n.Ry(1e3),x=e=>{const t=Math.floor(e||0),i=Math.floor(t/60),n=t-60*i;return`${i<10?`${i}`:i}:${n<10?`0${n}`:n}`}},775151:(e,t,i)=>{i.d(t,{BN:()=>r,RK:()=>a,d3:()=>l,xm:()=>s});var n=i(224496);const o=(e,t)=>{const i=(0,n.pE)(e,t);return`${i.y}px ${i.x}px`},a=({alignment:e,verticalAlignment:t})=>{const i={alignItems:"flex-start",display:"flex",height:"100%",justifyContent:"start",textAlign:"left",width:"100%"};return 1===t?i.alignItems="center":2===t&&(i.alignItems="flex-end"),1===e&&(i.justifyContent="center",i.textAlign="center"),i},r=({fontSize:e,hexColor:t,highlightColor:i,letterSpacing:n,lineHeight:a,name:r})=>({fontSize:e,letterSpacing:n,color:t,fontFamily:r,margin:0,maxHeight:"100%",textShadow:!i&&t&&"#ffffff"===t.toLowerCase()?"0px 1px 4px rgba(0, 0, 0, 0.2)":void 0,wordBreak:"break-word",...i?{backgroundColor:i,borderRadius:e/5,padding:o(e,a)}:{}}),s=({fontSize:e,hasText:t,highlightColor:i,lineHeight:n})=>({...i?{backgroundColor:t?i:void 0,borderRadius:e/5,padding:o(e,n)}:{}}),l=({letterSpacing:e,lineHeight:t,name:i,url:n})=>({fontFamily:i,fontGroup:"",fontOverrides:{letterSpacing:e,lineHeight:t,textTransform:!1},format:"truetype",defaultStyle:0,styles:[{name:"Regular",fontStyle:"",fontWeight:"normal",fontUrl:n}]})},676142:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(858142);const o=/\{\s*(\w+)\s*\}/g,a=(e,t)=>(0,n.Z)(o,e,t);function r({args:e,format:t}){const i=(e||[]).reduce(((e,t,i)=>({...e,[i]:t.text})),{});return a(t,i)}},940882:(e,t,i)=>{i.d(t,{J:()=>n,Z:()=>o});const n=-1;function o(e){switch(e){case 0:return"shopping-bag";case 1:return"tag";default:return"search"}}},148028:(e,t,i)=>{function n({currentTime:e,endTime:t,startTime:i}){return!("number"==typeof i&&"number"==typeof t&&i>=0&&t>0&&in})},700314:(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,{B:()=>a,n:()=>o});const o=(e,t)=>{const i=/^\d{1,3}\.\d{1,3}(?:\.\d{1,6})?$/;if(null==e||!e.match(i)||null==t||!t.match(i))return null;const n=null==e?void 0:e.split("."),o=null==t?void 0:t.split("."),a=Math.max((null!=n?n:"").length,(null!=o?o:"").length);for(let l=0;lt)return 1}return 0};class a{constructor(e,t,i){n(this,"start",Date.now()),n(this,"paused",!1),this.onProgress=e,this.onComplete=t,this.duration=i,this.remaining=i,"undefined"!=typeof window&&(this.intervalId=window.setInterval((()=>{const e=this.paused?this.duration-this.remaining:this.duration-this.remaining+(Date.now()-this.start);this.onProgress(e/this.duration)}),500),this.resume())}currentTime(){return this.duration-this.remaining}pause(){this.paused=!0,window.clearTimeout(this.timerId),this.remaining-=Date.now()-this.start;const e=this.duration-this.remaining;this.onProgress(e/this.duration)}resume(){this.paused=!1,this.start=Date.now(),window.clearTimeout(this.timerId),this.timerId=window.setTimeout(this.onComplete,this.remaining)}clear(){window.clearTimeout(this.timerId),window.clearInterval(this.intervalId)}}},985913:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(858142);const o=/\{\{\s*(\w+)\s*\}\}/g,a=(e,t)=>(0,n.Z)(o,e,t)},858791:(e,t,i)=>{i.d(t,{Z:()=>n});const n=e=>e.replace(/&/g,"&").replace(//g,">").replace(/\"/g,""").replace(/\'/g,"'")},936776:(e,t,i)=>{i.d(t,{Z:()=>o});const n=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,o=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},858142:(e,t,i)=>{i.d(t,{Z:()=>n});const n=(e,t,i)=>t?t.replace(e,((e,t)=>i&&Object.prototype.hasOwnProperty.call(i,t)?i[t]:"")):""},66699:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(985913),o=i(858791);const a=(e,t)=>{const i={};return Object.keys(t).forEach((e=>{i[e]=t[e]?(0,o.Z)(t[e].toString()):""})),(0,n.Z)(e,i)}},883561:(e,t,i)=>{i.d(t,{ZP:()=>n});function n(e,t=80,i="…",n=false){let o;if(!e)return"";if(e.length<=t)return e;if(" "!==e[t-1]&&" "===e[t]||n)o=e.substring(0,t);else{const i=e.lastIndexOf(" ",t);o=e.substring(0,i)}return o=o.replace(/[\- _,.<>:;+=*&@~\/\|!]*$/,""),o+i}},841726:(e,t,i)=>{i.d(t,{Z:()=>o,o:()=>n});function n(e,t){const i=(((t||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join("");return e.replace(/</g,"<").replace(/>/g,">").replace(/|<\?(?:php)?[\s\S]*?\?>|