(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[39921,51879,72430,73744,15558,87072,69263,54176,27405,26749,76030,25162,65699,90078,44722,29275,30820,71866,33224,8575],{361600:e=>{var t,n,i,a,r,o,s,l,c={fragment:{argumentDefinitions:[t={defaultValue:null,kind:"LocalArgument",name:"inviteCode"},n={defaultValue:null,kind:"LocalArgument",name:"inviteType"},i={defaultValue:null,kind:"LocalArgument",name:"objectId"}],kind:"Fragment",metadata:null,name:"AllShareOptionsUtilityMutation",selections:[{alias:null,args:a=[{fields:[{kind:"Variable",name:"inviteCode",variableName:"inviteCode"},{kind:"Variable",name:"inviteType",variableName:"inviteType"},{kind:"Variable",name:"objectId",variableName:"objectId"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3InviteSentExternalMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[r={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"InviteCode",kind:"LinkedField",name:"data",plural:!1,selections:[o={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"fromUserId",storageKey:null}],storageKey:null}],type:"V3InviteSentExternal",abstractKey:null},{kind:"InlineFragment",selections:[r,l={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null}],storageKey:null}],type:"InvalidParameters",abstractKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[n,t,i],kind:"Operation",name:"AllShareOptionsUtilityMutation",selections:[{alias:null,args:a,concreteType:null,kind:"LinkedField",name:"v3InviteSentExternalMutation",plural:!1,selections:[r,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"InviteCode",kind:"LinkedField",name:"data",plural:!1,selections:[o,s,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],type:"V3InviteSentExternal",abstractKey:null},{kind:"InlineFragment",selections:[l],type:"InvalidParameters",abstractKey:null}],storageKey:null}]},params:{id:"1705ed8db84c79dc12b83cafd1757686fa888571bbecd699295d011693ddd4cf",metadata:{},name:"AllShareOptionsUtilityMutation",operationKind:"mutation",text:null}};c.hash="7e73aab163ac599c2451f08566f2eb15",e.exports=c},865107:e=>{var t,n,i,a,r={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"inviteType"},{defaultValue:null,kind:"LocalArgument",name:"objectId"}],kind:"Fragment",metadata:null,name:"AllShareOptionsUtility_CreateExternalInviteGraphQLQuery",selections:[{alias:null,args:n=[{kind:"Variable",name:"inviteType",variableName:"inviteType"},{kind:"Variable",name:"objectId",variableName:"objectId"}],concreteType:null,kind:"LinkedField",name:"v3InviteUserExternalQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[i={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a={alias:null,args:null,concreteType:"InviteUserExternal",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"inviteCode",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"inviteUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null}],storageKey:null}],type:"V3InviteUserExternal",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"AllShareOptionsUtility_CreateExternalInviteGraphQLQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"v3InviteUserExternalQuery",plural:!1,selections:[i,{kind:"InlineFragment",selections:[a],type:"V3InviteUserExternal",abstractKey:null}],storageKey:null}]},params:{id:"6312848b4bb08588587683a04a42e4d0333e2e986fcab0cef4ed200786d3f5d9",metadata:{},name:"AllShareOptionsUtility_CreateExternalInviteGraphQLQuery",operationKind:"query",text:null}};r.hash="bc8b32c56a4a58de585c9a05ae69bd9c",e.exports=r},906587:e=>{var t,n,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinRecipe_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:'images(spec:"474x")'},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"diets",storageKey:null},{alias:null,args:null,concreteType:"CookTimes",kind:"LinkedField",name:"cookTimes",plural:!1,selections:[{alias:null,args:null,concreteType:"CookTime",kind:"LinkedField",name:"cook",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"m",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"h",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CookTime",kind:"LinkedField",name:"total",plural:!1,selections:t,storageKey:null}],storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,concreteType:"CategorizedIngredientsMetadata",kind:"LinkedField",name:"categorizedIngredients",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"category",storageKey:null},{alias:null,args:null,concreteType:"ParsedIngredientMetadata",kind:"LinkedField",name:"ingredients",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"amt",storageKey:null},n],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ServingsSummary",kind:"LinkedField",name:"servingsSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"summary",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};i.hash="72951c99039e6492a3eb8e9fcb5a22c3",e.exports=i},276667:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"SeeMoreButton_pin",selections:[{args:null,kind:"FragmentSpread",name:"VaseSection_pin"}],type:"Pin",abstractKey:null,hash:"8d0233fe1acbc77ec2b5a1754e0a6e36"};e.exports=t},12617:e=>{var t,n={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"isAuth"}],kind:"Fragment",metadata:null,name:"UnauthDesktopContextMenu_pin",selections:[{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:t,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"originPinner",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null},{condition:"isAuth",kind:"Condition",passingValue:!1,selections:[{alias:null,args:null,concreteType:"SeoBreadcrumbs",kind:"LinkedField",name:"seoBreadcrumbs",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}]}],storageKey:null},{args:null,kind:"FragmentSpread",name:"usePinImagesFragment_pin"}],type:"Pin",abstractKey:null};n.hash="1fbfb33774a77f6b481c8e10a98e0b9c",e.exports=n},167074:e=>{var t,n={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"isAuth"}],kind:"Fragment",metadata:null,name:"UnauthMobileContextMenu_pin",selections:[{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:t,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"originPinner",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null},{condition:"isAuth",kind:"Condition",passingValue:!1,selections:[{alias:null,args:null,concreteType:"SeoBreadcrumbs",kind:"LinkedField",name:"seoBreadcrumbs",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}]}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{args:null,kind:"FragmentSpread",name:"usePinImagesFragment_pin"}],type:"Pin",abstractKey:null};n.hash="9c6f79da64586afb96dd80be65bca5a2",e.exports=n},85934:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VaseAnnotations_pin",selections:[{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"useAnnotationsWithLinksFragment_pin"}],type:"Pin",abstractKey:null,hash:"594237c2ea6ccfb8bbc0e3e8c62cac9f"};e.exports=t},877821:e=>{var t,n,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VaseSection_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"privacy",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[t,n={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSmallUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageLargeUrl",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"pinTitle",storageKey:null}],storageKey:null}],storageKey:null},n,{args:null,kind:"FragmentSpread",name:"VaseAnnotations_pin"}],type:"Pin",abstractKey:null};i.hash="16fa74c6691fea1cd19a833e3523aade",e.exports=i},604955:e=>{var t,n,i,a,r={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"boardId"}],kind:"Fragment",metadata:null,name:"boards_AcceptInvite_Mutation",selections:[{alias:null,args:n=[{fields:[{kind:"Variable",name:"board",variableName:"boardId"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3AcceptBoardCollaboratorInviteMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[i={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a={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:n,concreteType:null,kind:"LinkedField",name:"v3AcceptBoardCollaboratorInviteMutation",plural:!1,selections:[i,{kind:"InlineFragment",selections:[a],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"684be4cb6a79ca32f82ddfa38f308039fdcaff0720a6118743e1e198085f1237",metadata:{},name:"boards_AcceptInvite_Mutation",operationKind:"mutation",text:null}};r.hash="c73ed7e5b29f046197e7dfcf7d7a7cd0",e.exports=r},518190:e=>{var t,n,i,a,r={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:n=[{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:[i={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a={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:n,concreteType:null,kind:"LinkedField",name:"v3ApproveBoardCollaboratorInviteMutation",plural:!1,selections:[i,{kind:"InlineFragment",selections:[a],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"1380a15fe95dc7713c5d72fd6104da573f3db5b8b0ab66f883bec351df4c8a71",metadata:{},name:"boards_ApproveInvite_Mutation",operationKind:"mutation",text:null}};r.hash="216cdb449b148a3d36e9d0621dcfcac5",e.exports=r},90105:e=>{var t,n,i,a,r,o,s={fragment:{argumentDefinitions:[t={defaultValue:null,kind:"LocalArgument",name:"ban"},n={defaultValue:null,kind:"LocalArgument",name:"boardId"},i={defaultValue:null,kind:"LocalArgument",name:"userId"}],kind:"Fragment",metadata:null,name:"boards_DeclineOrDeleteBoardCollaboratorInvite_Mutation",selections:[{alias:null,args:a=[{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:[r={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:[n,i,t],kind:"Operation",name:"boards_DeclineOrDeleteBoardCollaboratorInvite_Mutation",selections:[{alias:null,args:a,concreteType:null,kind:"LinkedField",name:"v3DeclineOrDeleteBoardCollaboratorInviteMutation",plural:!1,selections:[r,{kind:"InlineFragment",selections:[o],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,n,i,a,r,o,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:n=[{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:[i={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"data",plural:!1,selections:[a={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:[i,{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:[r={alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},o={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:[i,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:n,concreteType:null,kind:"LinkedField",name:"v3RemoveBoardCollaboratorsMutation",plural:!1,selections:[i,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"data",plural:!1,selections:[a,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"collaboratingUsers",plural:!1,selections:[i,{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:[r,o,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,n,i,a,r={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:n=[{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:[i={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"V3InviteBoardCollaboratorEmail",abstractKey:null},{kind:"InlineFragment",selections:[i,a={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:n,concreteType:null,kind:"LinkedField",name:"v3InviteBoardCollaboratorEmailMutation",plural:!1,selections:[i,{kind:"InlineFragment",selections:[a],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"4d372bf76e6f77707e9106c02f73ec23773c4bd7e457dc684ea7dd1b87985c7c",metadata:{},name:"boards_emails_Mutation",operationKind:"mutation",text:null}};r.hash="0659a1edf1c7935aff1deef3f51f2add",e.exports=r},16945:e=>{var t,n,i,a,r,o,s={fragment:{argumentDefinitions:[t={defaultValue:null,kind:"LocalArgument",name:"boardId"},n={defaultValue:null,kind:"LocalArgument",name:"collaboratorIds"},i={defaultValue:null,kind:"LocalArgument",name:"message"}],kind:"Fragment",metadata:null,name:"boards_users_Mutation",selections:[{alias:null,args:a=[{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:[r={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:[n,t,i],kind:"Operation",name:"boards_users_Mutation",selections:[{alias:null,args:a,concreteType:null,kind:"LinkedField",name:"v3InviteBoardCollaboratorsMutation",plural:!1,selections:[r,{kind:"InlineFragment",selections:[o],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"9495c71001fb315e3dc5e63ec17a8d8d5a4fb53ebc7f791b44093a4a92665835",metadata:{},name:"boards_users_Mutation",operationKind:"mutation",text:null}};s.hash="743ce0da1ac8191550520ebe045b4fb0",e.exports=s},569772:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useAnnotationsWithLinksFragment_pin",selections:[{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,concreteType:"AnnotationsWithLinks",kind:"LinkedField",name:"annotationsWithLinksArray",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null,hash:"35075da6e1f4b526ac4314727015c44d"};e.exports=t},96795:e=>{var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"usePinImagesFragment_pin",selections:[{alias:"imageSpec_60x60",args:[{kind:"Literal",name:"spec",value:"60x60"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:'images(spec:"60x60")'},{alias:"imageSpec_136x136",args:[{kind:"Literal",name:"spec",value:"136x136"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"136x136")'},{alias:"imageSpec_170x",args:[{kind:"Literal",name:"spec",value:"170x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"170x")'},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"236x")'},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"474x")'},{alias:"imageSpec_564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"564x")'},{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"736x")'},{alias:"imageSpec_600x315",args:[{kind:"Literal",name:"spec",value:"600x315"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"600x315")'},{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"orig")'}],type:"Pin",abstractKey:null};n.hash="8dd4c9c753d2a67c0606dfff23b820e9",e.exports=n},110767:e=>{var t,n,i,a,r,o,s,l,c={fragment:{argumentDefinitions:[t={defaultValue:null,kind:"LocalArgument",name:"isAuth"},n={defaultValue:null,kind:"LocalArgument",name:"pinId"}],kind:"Fragment",metadata:null,name:"useUnauthContextMenuQuery",selections:[{alias:null,args:i=[{kind:"Variable",name:"pin",variableName:"pinId"}],concreteType:null,kind:"LinkedField",name:"v3GetPinQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"data",plural:!1,selections:[{args:a=[{kind:"Variable",name:"isAuth",variableName:"isAuth"}],kind:"FragmentSpread",name:"UnauthDesktopContextMenu_pin"},{args:a,kind:"FragmentSpread",name:"UnauthMobileContextMenu_pin"}],storageKey:null}],type:"V3GetPin",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[n,t],kind:"Operation",name:"useUnauthContextMenuQuery",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3GetPinQuery",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:o=[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:o,storageKey:null},r],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"originPinner",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null},{condition:"isAuth",kind:"Condition",passingValue:!1,selections:[{alias:null,args:null,concreteType:"SeoBreadcrumbs",kind:"LinkedField",name:"seoBreadcrumbs",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}]}],storageKey:null},{alias:"imageSpec_60x60",args:[{kind:"Literal",name:"spec",value:"60x60"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:l=[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},s,{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:l,storageKey:'images(spec:"136x136")'},{alias:"imageSpec_170x",args:[{kind:"Literal",name:"spec",value:"170x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:l,storageKey:'images(spec:"170x")'},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:l,storageKey:'images(spec:"236x")'},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:l,storageKey:'images(spec:"474x")'},{alias:"imageSpec_564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:l,storageKey:'images(spec:"564x")'},{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:l,storageKey:'images(spec:"736x")'},{alias:"imageSpec_600x315",args:[{kind:"Literal",name:"spec",value:"600x315"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:l,storageKey:'images(spec:"600x315")'},{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:l,storageKey:'images(spec:"orig")'},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},r],storageKey:null}],type:"V3GetPin",abstractKey:null}],storageKey:null}]},params:{id:"db5062450db0e02738a779a9cdc581b0b7c368d249bd91b591baf576f0d7dece",metadata:{},name:"useUnauthContextMenuQuery",operationKind:"query",text:null}};c.hash="7c726e4c4d9c734b1de6ea24d96a42a1",e.exports=c},376030:(e,t,n)=>{n.d(t,{Z:()=>se});var i={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},a={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},r=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],o={CSS:{},springs:{}};function s(e,t,n){return Math.min(Math.max(e,t),n)}function l(e,t){return e.indexOf(t)>-1}function c(e,t){return e.apply(null,t)}var d={arr:function(e){return Array.isArray(e)},obj:function(e){return l(Object.prototype.toString.call(e),"Object")},pth:function(e){return d.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||d.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},nil:function(e){return d.und(e)||null===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return d.hex(e)||d.rgb(e)||d.hsl(e)},key:function(e){return!i.hasOwnProperty(e)&&!a.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function u(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}function p(e,t){var n=u(e),i=s(d.und(n[0])?1:n[0],.1,100),a=s(d.und(n[1])?100:n[1],.1,100),r=s(d.und(n[2])?10:n[2],.1,100),l=s(d.und(n[3])?0:n[3],.1,100),c=Math.sqrt(a/i),p=r/(2*Math.sqrt(a*i)),h=p<1?c*Math.sqrt(1-p*p):0,m=p<1?(p*c-l)/h:-l+c;function _(e){var n=t?t*e/1e3:e;return n=p<1?Math.exp(-n*p*c)*(1*Math.cos(h*n)+m*Math.sin(h*n)):(1+m*n)*Math.exp(-n*c),0===e||1===e?e:1-n}return t?_:function(){var t=o.springs[e];if(t)return t;for(var n=1/6,i=0,a=0;;)if(1===_(i+=n)){if(++a>=16)break}else a=0;var r=i*n*1e3;return o.springs[e]=r,r}}function h(e){return void 0===e&&(e=10),function(t){return Math.ceil(s(t,1e-6,1)*e)*(1/e)}}var m,_,g=function(){var e=.1;function t(e,t){return 1-3*t+3*e}function n(e,t){return 3*t-6*e}function i(e){return 3*e}function a(e,a,r){return((t(a,r)*e+n(a,r))*e+i(a))*e}function r(e,a,r){return 3*t(a,r)*e*e+2*n(a,r)*e+i(a)}return function(t,n,i,o){if(0<=t&&t<=1&&0<=i&&i<=1){var s=new Float32Array(11);if(t!==n||i!==o)for(var l=0;l<11;++l)s[l]=a(l*e,t,i);return function(e){return t===n&&i===o||0===e||1===e?e:a(c(e),n,o)}}function c(n){for(var o=0,l=1;10!==l&&s[l]<=n;++l)o+=e;--l;var c=o+(n-s[l])/(s[l+1]-s[l])*e,d=r(c,t,i);return d>=.001?function(e,t,n,i){for(var o=0;o<4;++o){var s=r(t,n,i);if(0===s)return t;t-=(a(t,n,i)-e)/s}return t}(n,c,t,i):0===d?c:function(e,t,n,i,r){var o,s,l=0;do{(o=a(s=t+(n-t)/2,i,r)-e)>0?n=s:t=s}while(Math.abs(o)>1e-7&&++l<10);return s}(n,o,o+e,t,i)}}}(),v=(m={linear:function(){return function(e){return e}}},_={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var n=s(e,1,10),i=s(t,.1,2);return function(e){return 0===e||1===e?e:-n*Math.pow(2,10*(e-1))*Math.sin((e-1-i/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/i)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach((function(e,t){_[e]=function(){return function(e){return Math.pow(e,t+2)}}})),Object.keys(_).forEach((function(e){var t=_[e];m["easeIn"+e]=t,m["easeOut"+e]=function(e,n){return function(i){return 1-t(e,n)(1-i)}},m["easeInOut"+e]=function(e,n){return function(i){return i<.5?t(e,n)(2*i)/2:1-t(e,n)(-2*i+2)/2}},m["easeOutIn"+e]=function(e,n){return function(i){return i<.5?(1-t(e,n)(1-2*i))/2:(t(e,n)(2*i-1)+1)/2}}})),m);function f(e,t){if(d.fnc(e))return e;var n=e.split("(")[0],i=v[n],a=u(e);switch(n){case"spring":return p(e,t);case"cubicBezier":return c(g,a);case"steps":return c(h,a);default:return c(i,a)}}function y(e){try{return document.querySelectorAll(e)}catch(t){return}}function b(e,t){for(var n=e.length,i=arguments.length>=2?arguments[1]:void 0,a=[],r=0;r<n;r++)if(r in e){var o=e[r];t.call(i,o,r,e)&&a.push(o)}return a}function x(e){return e.reduce((function(e,t){return e.concat(d.arr(t)?x(t):t)}),[])}function w(e){return d.arr(e)?e:(d.str(e)&&(e=y(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function P(e,t){return e.some((function(e){return e===t}))}function S(e){var t={};for(var n in e)t[n]=e[n];return t}function k(e,t){var n=S(e);for(var i in e)n[i]=t.hasOwnProperty(i)?t[i]:e[i];return n}function T(e,t){var n=S(e);for(var i in t)n[i]=d.und(e[i])?t[i]:e[i];return n}function I(e){return d.rgb(e)?(n=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(t=e))?"rgba("+n[1]+",1)":t:d.hex(e)?function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,i){return t+t+n+n+i+i})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+parseInt(n[1],16)+","+parseInt(n[2],16)+","+parseInt(n[3],16)+",1)"}(e):d.hsl(e)?function(e){var t,n,i,a=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),r=parseInt(a[1],10)/360,o=parseInt(a[2],10)/100,s=parseInt(a[3],10)/100,l=a[4]||1;function c(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0==o)t=n=i=s;else{var d=s<.5?s*(1+o):s+o-s*o,u=2*s-d;t=c(u,d,r+1/3),n=c(u,d,r),i=c(u,d,r-1/3)}return"rgba("+255*t+","+255*n+","+255*i+","+l+")"}(e):void 0;var t,n}function A(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function C(e,t){return d.fnc(e)?e(t.target,t.id,t.total):e}function E(e,t){return e.getAttribute(t)}function j(e,t,n){if(P([n,"deg","rad","turn"],A(t)))return t;var i=o.CSS[t+n];if(!d.und(i))return i;var a=document.createElement(e.tagName),r=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;r.appendChild(a),a.style.position="absolute",a.style.width=100+n;var s=100/a.offsetWidth;r.removeChild(a);var l=s*parseFloat(t);return o.CSS[t+n]=l,l}function D(e,t,n){if(t in e.style){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),a=e.style[t]||getComputedStyle(e).getPropertyValue(i)||"0";return n?j(e,a,n):a}}function O(e,t){return d.dom(e)&&!d.inp(e)&&(!d.nil(E(e,t))||d.svg(e)&&e[t])?"attribute":d.dom(e)&&P(r,t)?"transform":d.dom(e)&&"transform"!==t&&D(e,t)?"css":null!=e[t]?"object":void 0}function R(e){if(d.dom(e)){for(var t,n=e.style.transform||"",i=/(\w+)\(([^)]*)\)/g,a=new Map;t=i.exec(n);)a.set(t[1],t[2]);return a}}function L(e,t,n,i){var a=l(t,"scale")?1:0+function(e){return l(e,"translate")||"perspective"===e?"px":l(e,"rotate")||l(e,"skew")?"deg":void 0}(t),r=R(e).get(t)||a;return n&&(n.transforms.list.set(t,r),n.transforms.last=t),i?j(e,r,i):r}function M(e,t,n,i){switch(O(e,t)){case"transform":return L(e,t,i,n);case"css":return D(e,t,n);case"attribute":return E(e,t);default:return e[t]||0}}function F(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var i=A(e)||0,a=parseFloat(t),r=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return a+r+i;case"-":return a-r+i;case"*":return a*r+i}}function N(e,t){if(d.col(e))return I(e);if(/\s/g.test(e))return e;var n=A(e),i=n?e.substr(0,e.length-n.length):e;return t?i+t:i}function z(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function U(e){for(var t,n=e.points,i=0,a=0;a<n.numberOfItems;a++){var r=n.getItem(a);a>0&&(i+=z(t,r)),t=r}return i}function Z(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*E(e,"r")}(e);case"rect":return function(e){return 2*E(e,"width")+2*E(e,"height")}(e);case"line":return function(e){return z({x:E(e,"x1"),y:E(e,"y1")},{x:E(e,"x2"),y:E(e,"y2")})}(e);case"polyline":return U(e);case"polygon":return function(e){var t=e.points;return U(e)+z(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function B(e,t){var n=t||{},i=n.el||function(e){for(var t=e.parentNode;d.svg(t)&&d.svg(t.parentNode);)t=t.parentNode;return t}(e),a=i.getBoundingClientRect(),r=E(i,"viewBox"),o=a.width,s=a.height,l=n.viewBox||(r?r.split(" "):[0,0,o,s]);return{el:i,viewBox:l,x:l[0]/1,y:l[1]/1,w:o,h:s,vW:l[2],vH:l[3]}}function V(e,t,n){function i(n){void 0===n&&(n=0);var i=t+n>=1?t+n:0;return e.el.getPointAtLength(i)}var a=B(e.el,e.svg),r=i(),o=i(-1),s=i(1),l=n?1:a.w/a.vW,c=n?1:a.h/a.vH;switch(e.property){case"x":return(r.x-a.x)*l;case"y":return(r.y-a.y)*c;case"angle":return 180*Math.atan2(s.y-o.y,s.x-o.x)/Math.PI}}function H(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,i=N(d.pth(e)?e.totalLength:e,t)+"";return{original:i,numbers:i.match(n)?i.match(n).map(Number):[0],strings:d.str(e)||t?i.split(n):[]}}function K(e){return b(e?x(d.arr(e)?e.map(w):w(e)):[],(function(e,t,n){return n.indexOf(e)===t}))}function W(e){var t=K(e);return t.map((function(e,n){return{target:e,id:n,total:t.length,transforms:{list:R(e)}}}))}function G(e,t){var n=S(t);if(/^spring/.test(n.easing)&&(n.duration=p(n.easing)),d.arr(e)){var i=e.length;2===i&&!d.obj(e[0])?e={value:e}:d.fnc(t.duration)||(n.duration=t.duration/i)}var a=d.arr(e)?e:[e];return a.map((function(e,n){var i=d.obj(e)&&!d.pth(e)?e:{value:e};return d.und(i.delay)&&(i.delay=n?0:t.delay),d.und(i.endDelay)&&(i.endDelay=n===a.length-1?t.endDelay:0),i})).map((function(e){return T(e,n)}))}function $(e,t){var n=[],i=t.keyframes;for(var a in i&&(t=T(function(e){for(var t=b(x(e.map((function(e){return Object.keys(e)}))),(function(e){return d.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[]),n={},i=function(i){var a=t[i];n[a]=e.map((function(e){var t={};for(var n in e)d.key(n)?n==a&&(t.value=e[n]):t[n]=e[n];return t}))},a=0;a<t.length;a++)i(a);return n}(i),t)),t)d.key(a)&&n.push({name:a,tweens:G(t[a],e)});return n}function q(e,t){var n;return e.tweens.map((function(i){var a=function(e,t){var n={};for(var i in e){var a=C(e[i],t);d.arr(a)&&1===(a=a.map((function(e){return C(e,t)}))).length&&(a=a[0]),n[i]=a}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}(i,t),r=a.value,o=d.arr(r)?r[1]:r,s=A(o),l=M(t.target,e.name,s,t),c=n?n.to.original:l,u=d.arr(r)?r[0]:c,p=A(u)||A(l),h=s||p;return d.und(o)&&(o=c),a.from=H(u,h),a.to=H(F(o,u),h),a.start=n?n.end:0,a.end=a.start+a.delay+a.duration+a.endDelay,a.easing=f(a.easing,a.duration),a.isPath=d.pth(r),a.isPathTargetInsideSVG=a.isPath&&d.svg(t.target),a.isColor=d.col(a.from.original),a.isColor&&(a.round=1),n=a,a}))}var J={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,i,a){if(i.list.set(t,n),t===i.last||a){var r="";i.list.forEach((function(e,t){r+=t+"("+e+") "})),e.style.transform=r}}};function Y(e,t){W(e).forEach((function(e){for(var n in t){var i=C(t[n],e),a=e.target,r=A(i),o=M(a,n,r,e),s=F(N(i,r||A(o)),o),l=O(a,n);J[l](a,n,s,e.transforms,!0)}}))}function X(e,t){return b(x(e.map((function(e){return t.map((function(t){return function(e,t){var n=O(e.target,t.name);if(n){var i=q(t,e),a=i[i.length-1];return{type:n,property:t.name,animatable:e,tweens:i,duration:a.end,delay:i[0].delay,endDelay:a.endDelay}}}(e,t)}))}))),(function(e){return!d.und(e)}))}function Q(e,t){var n=e.length,i=function(e){return e.timelineOffset?e.timelineOffset:0},a={};return a.duration=n?Math.max.apply(Math,e.map((function(e){return i(e)+e.duration}))):t.duration,a.delay=n?Math.min.apply(Math,e.map((function(e){return i(e)+e.delay}))):t.delay,a.endDelay=n?a.duration-Math.max.apply(Math,e.map((function(e){return i(e)+e.duration-e.endDelay}))):t.endDelay,a}var ee=0;var te=[],ne=function(){var e;function t(n){for(var i=te.length,a=0;a<i;){var r=te[a];r.paused?(te.splice(a,1),i--):(r.tick(n),a++)}e=a>0?requestAnimationFrame(t):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){ae.suspendWhenDocumentHidden&&(ie()?e=cancelAnimationFrame(e):(te.forEach((function(e){return e._onDocumentVisibility()})),ne()))})),function(){e||ie()&&ae.suspendWhenDocumentHidden||!(te.length>0)||(e=requestAnimationFrame(t))}}();function ie(){return!!document&&document.hidden}function ae(e){void 0===e&&(e={});var t,n=0,r=0,o=0,l=0,c=null;function d(e){var t=window.Promise&&new Promise((function(e){return c=e}));return e.finished=t,t}var u=function(e){var t=k(i,e),n=k(a,e),r=$(n,e),o=W(e.targets),s=X(o,r),l=Q(s,n),c=ee;return ee++,T(t,{id:c,children:[],animatables:o,animations:s,duration:l.duration,delay:l.delay,endDelay:l.endDelay})}(e);d(u);function p(){var e=u.direction;"alternate"!==e&&(u.direction="normal"!==e?"normal":"reverse"),u.reversed=!u.reversed,t.forEach((function(e){return e.reversed=u.reversed}))}function h(e){return u.reversed?u.duration-e:e}function m(){n=0,r=h(u.currentTime)*(1/ae.speed)}function _(e,t){t&&t.seek(e-t.timelineOffset)}function g(e){for(var t=0,n=u.animations,i=n.length;t<i;){var a=n[t],r=a.animatable,o=a.tweens,l=o.length-1,c=o[l];l&&(c=b(o,(function(t){return e<t.end}))[0]||c);for(var d=s(e-c.start-c.delay,0,c.duration)/c.duration,p=isNaN(d)?1:c.easing(d),h=c.to.strings,m=c.round,_=[],g=c.to.numbers.length,v=void 0,f=0;f<g;f++){var y=void 0,x=c.to.numbers[f],w=c.from.numbers[f]||0;y=c.isPath?V(c.value,p*x,c.isPathTargetInsideSVG):w+p*(x-w),m&&(c.isColor&&f>2||(y=Math.round(y*m)/m)),_.push(y)}var P=h.length;if(P){v=h[0];for(var S=0;S<P;S++){h[S];var k=h[S+1],T=_[S];isNaN(T)||(v+=k?T+k:T+" ")}}else v=_[0];J[a.type](r.target,a.property,v,r.transforms),a.currentValue=v,t++}}function v(e){u[e]&&!u.passThrough&&u[e](u)}function f(e){var i=u.duration,a=u.delay,m=i-u.endDelay,f=h(e);u.progress=s(f/i*100,0,100),u.reversePlayback=f<u.currentTime,t&&function(e){if(u.reversePlayback)for(var n=l;n--;)_(e,t[n]);else for(var i=0;i<l;i++)_(e,t[i])}(f),!u.began&&u.currentTime>0&&(u.began=!0,v("begin")),!u.loopBegan&&u.currentTime>0&&(u.loopBegan=!0,v("loopBegin")),f<=a&&0!==u.currentTime&&g(0),(f>=m&&u.currentTime!==i||!i)&&g(i),f>a&&f<m?(u.changeBegan||(u.changeBegan=!0,u.changeCompleted=!1,v("changeBegin")),v("change"),g(f)):u.changeBegan&&(u.changeCompleted=!0,u.changeBegan=!1,v("changeComplete")),u.currentTime=s(f,0,i),u.began&&v("update"),e>=i&&(r=0,u.remaining&&!0!==u.remaining&&u.remaining--,u.remaining?(n=o,v("loopComplete"),u.loopBegan=!1,"alternate"===u.direction&&p()):(u.paused=!0,u.completed||(u.completed=!0,v("loopComplete"),v("complete"),!u.passThrough&&"Promise"in window&&(c(),d(u)))))}return u.reset=function(){var e=u.direction;u.passThrough=!1,u.currentTime=0,u.progress=0,u.paused=!0,u.began=!1,u.loopBegan=!1,u.changeBegan=!1,u.completed=!1,u.changeCompleted=!1,u.reversePlayback=!1,u.reversed="reverse"===e,u.remaining=u.loop,t=u.children;for(var n=l=t.length;n--;)u.children[n].reset();(u.reversed&&!0!==u.loop||"alternate"===e&&1===u.loop)&&u.remaining++,g(u.reversed?u.duration:0)},u._onDocumentVisibility=m,u.set=function(e,t){return Y(e,t),u},u.tick=function(e){o=e,n||(n=o),f((o+(r-n))*ae.speed)},u.seek=function(e){f(h(e))},u.pause=function(){u.paused=!0,m()},u.play=function(){u.paused&&(u.completed&&u.reset(),u.paused=!1,te.push(u),m(),ne())},u.reverse=function(){p(),u.completed=!u.reversed,m()},u.restart=function(){u.reset(),u.play()},u.remove=function(e){oe(K(e),u)},u.reset(),u.autoplay&&u.play(),u}function re(e,t){for(var n=t.length;n--;)P(e,t[n].animatable.target)&&t.splice(n,1)}function oe(e,t){var n=t.animations,i=t.children;re(e,n);for(var a=i.length;a--;){var r=i[a],o=r.animations;re(e,o),o.length||r.children.length||i.splice(a,1)}n.length||i.length||t.pause()}ae.version="3.2.1",ae.speed=1,ae.suspendWhenDocumentHidden=!0,ae.running=te,ae.remove=function(e){for(var t=K(e),n=te.length;n--;){oe(t,te[n])}},ae.get=M,ae.set=Y,ae.convertPx=j,ae.path=function(e,t){var n=d.str(e)?y(e)[0]:e,i=t||100;return function(e){return{property:e,el:n,svg:B(n),totalLength:Z(n)*(i/100)}}},ae.setDashoffset=function(e){var t=Z(e);return e.setAttribute("stroke-dasharray",t),t},ae.stagger=function(e,t){void 0===t&&(t={});var n=t.direction||"normal",i=t.easing?f(t.easing):null,a=t.grid,r=t.axis,o=t.from||0,s="first"===o,l="center"===o,c="last"===o,u=d.arr(e),p=u?parseFloat(e[0]):parseFloat(e),h=u?parseFloat(e[1]):0,m=A(u?e[1]:e)||0,_=t.start||0+(u?p:0),g=[],v=0;return function(e,t,d){if(s&&(o=0),l&&(o=(d-1)/2),c&&(o=d-1),!g.length){for(var f=0;f<d;f++){if(a){var y=l?(a[0]-1)/2:o%a[0],b=l?(a[1]-1)/2:Math.floor(o/a[0]),x=y-f%a[0],w=b-Math.floor(f/a[0]),P=Math.sqrt(x*x+w*w);"x"===r&&(P=-x),"y"===r&&(P=-w),g.push(P)}else g.push(Math.abs(o-f));v=Math.max.apply(Math,g)}i&&(g=g.map((function(e){return i(e/v)*v}))),"reverse"===n&&(g=g.map((function(e){return r?e<0?-1*e:-e:Math.abs(v-e)})))}return _+(u?(h-p)/v:p)*(Math.round(100*g[t])/100)+m}},ae.timeline=function(e){void 0===e&&(e={});var t=ae(e);return t.duration=0,t.add=function(n,i){var r=te.indexOf(t),o=t.children;function s(e){e.passThrough=!0}r>-1&&te.splice(r,1);for(var l=0;l<o.length;l++)s(o[l]);var c=T(n,k(a,e));c.targets=c.targets||e.targets;var u=t.duration;c.autoplay=!1,c.direction=t.direction,c.timelineOffset=d.und(i)?u:F(i,u),s(t),t.seek(c.timelineOffset);var p=ae(c);s(p),o.push(p);var h=Q(o,e);return t.delay=h.delay,t.endDelay=h.endDelay,t.duration=h.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},ae.easing=f,ae.penner=v,ae.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};const se=ae},618552:(e,t,n)=>{var i=n(610852)(n(555639),"DataView");e.exports=i},301989:(e,t,n)=>{var i=n(751789),a=n(780401),r=n(657667),o=n(521327),s=n(281866);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=a,l.prototype.get=r,l.prototype.has=o,l.prototype.set=s,e.exports=l},738407:(e,t,n)=>{var i=n(327040),a=n(514125),r=n(882117),o=n(567518),s=n(654705);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=a,l.prototype.get=r,l.prototype.has=o,l.prototype.set=s,e.exports=l},357071:(e,t,n)=>{var i=n(610852)(n(555639),"Map");e.exports=i},883369:(e,t,n)=>{var i=n(924785),a=n(611285),r=n(396e3),o=n(349916),s=n(195265);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=a,l.prototype.get=r,l.prototype.has=o,l.prototype.set=s,e.exports=l},853818:(e,t,n)=>{var i=n(610852)(n(555639),"Promise");e.exports=i},458525:(e,t,n)=>{var i=n(610852)(n(555639),"Set");e.exports=i},288668:(e,t,n)=>{var i=n(883369),a=n(90619),r=n(572385);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=a,o.prototype.has=r,e.exports=o},646384:(e,t,n)=>{var i=n(738407),a=n(737465),r=n(963779),o=n(267599),s=n(744758),l=n(234309);function c(e){var t=this.__data__=new i(e);this.size=t.size}c.prototype.clear=a,c.prototype.delete=r,c.prototype.get=o,c.prototype.has=s,c.prototype.set=l,e.exports=c},611149:(e,t,n)=>{var i=n(555639).Uint8Array;e.exports=i},70577:(e,t,n)=>{var i=n(610852)(n(555639),"WeakMap");e.exports=i},896874:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},477412:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}},234963:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,a=0,r=[];++n<i;){var o=e[n];t(o,n,e)&&(r[a++]=o)}return r}},14636:(e,t,n)=>{var i=n(422545),a=n(135694),r=n(701469),o=n(644144),s=n(565776),l=n(936719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=r(e),d=!n&&a(e),u=!n&&!d&&o(e),p=!n&&!d&&!u&&l(e),h=n||d||u||p,m=h?i(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 m}},862488:e=>{e.exports=function(e,t){for(var n=-1,i=t.length,a=e.length;++n<i;)e[a+n]=t[n];return e}},282908:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}},286556:(e,t,n)=>{var i=n(789465),a=n(977813);e.exports=function(e,t,n){(void 0!==n&&!a(e[t],n)||void 0===n&&!(t in e))&&i(e,t,n)}},234865:(e,t,n)=>{var i=n(789465),a=n(977813),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var o=e[t];r.call(e,t)&&a(o,n)&&(void 0!==n||t in e)||i(e,t,n)}},218470:(e,t,n)=>{var i=n(977813);e.exports=function(e,t){for(var n=e.length;n--;)if(i(e[n][0],t))return n;return-1}},744037:(e,t,n)=>{var i=n(698363),a=n(3674);e.exports=function(e,t){return e&&i(t,a(t),e)}},163886:(e,t,n)=>{var i=n(698363),a=n(481704);e.exports=function(e,t){return e&&i(t,a(t),e)}},789465:(e,t,n)=>{var i=n(538777);e.exports=function(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},285990:(e,t,n)=>{var i=n(646384),a=n(477412),r=n(234865),o=n(744037),s=n(163886),l=n(364626),c=n(200278),d=n(318805),u=n(201911),p=n(458234),h=n(946904),m=n(664160),_=n(43824),g=n(529148),v=n(738517),f=n(701469),y=n(644144),b=n(356688),x=n(513218),w=n(472928),P=n(3674),S=n(481704),k="[object Arguments]",T="[object Function]",I="[object Object]",A={};A[k]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[I]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[T]=A["[object WeakMap]"]=!1,e.exports=function e(t,n,C,E,j,D){var O,R=1&n,L=2&n,M=4&n;if(C&&(O=j?C(t,E,j,D):C(t)),void 0!==O)return O;if(!x(t))return t;var F=f(t);if(F){if(O=_(t),!R)return c(t,O)}else{var N=m(t),z=N==T||"[object GeneratorFunction]"==N;if(y(t))return l(t,R);if(N==I||N==k||z&&!j){if(O=L||z?{}:v(t),!R)return L?u(t,s(O,t)):d(t,o(O,t))}else{if(!A[N])return j?t:{};O=g(t,N,R)}}D||(D=new i);var U=D.get(t);if(U)return U;D.set(t,O),w(t)?t.forEach((function(i){O.add(e(i,n,C,i,t,D))})):b(t)&&t.forEach((function(i,a){O.set(a,e(i,n,C,a,t,D))}));var Z=F?void 0:(M?L?h:p:L?S:P)(t);return a(Z||t,(function(i,a){Z&&(i=t[a=i]),r(O,a,e(i,n,C,a,t,D))})),O}},603118:(e,t,n)=>{var i=n(513218),a=Object.create,r=function(){function e(){}return function(t){if(!i(t))return{};if(a)return a(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=r},228483:(e,t,n)=>{var i=n(225063)();e.exports=i},868866:(e,t,n)=>{var i=n(862488),a=n(701469);e.exports=function(e,t,n){var r=t(e);return a(e)?r:i(r,n(e))}},909454:(e,t,n)=>{var i=n(644239),a=n(637005);e.exports=function(e){return a(e)&&"[object Arguments]"==i(e)}},690939:(e,t,n)=>{var i=n(902492),a=n(637005);e.exports=function e(t,n,r,o,s){return t===n||(null==t||null==n||!a(t)&&!a(n)?t!=t&&n!=n:i(t,n,r,o,e,s))}},902492:(e,t,n)=>{var i=n(646384),a=n(967114),r=n(518351),o=n(916096),s=n(664160),l=n(701469),c=n(644144),d=n(936719),u="[object Arguments]",p="[object Array]",h="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,_,g,v){var f=l(e),y=l(t),b=f?p:s(e),x=y?p:s(t),w=(b=b==u?h:b)==h,P=(x=x==u?h:x)==h,S=b==x;if(S&&c(e)){if(!c(t))return!1;f=!0,w=!1}if(S&&!w)return v||(v=new i),f||d(e)?a(e,t,n,_,g,v):r(e,t,b,n,_,g,v);if(!(1&n)){var k=w&&m.call(e,"__wrapped__"),T=P&&m.call(t,"__wrapped__");if(k||T){var I=k?e.value():e,A=T?t.value():t;return v||(v=new i),g(I,A,n,_,v)}}return!!S&&(v||(v=new i),o(e,t,n,_,g,v))}},225588:(e,t,n)=>{var i=n(664160),a=n(637005);e.exports=function(e){return a(e)&&"[object Map]"==i(e)}},28458:(e,t,n)=>{var i=n(623560),a=n(215346),r=n(513218),o=n(680346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,d=l.toString,u=c.hasOwnProperty,p=RegExp("^"+d.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!r(e)||a(e))&&(i(e)?p:s).test(o(e))}},829221:(e,t,n)=>{var i=n(664160),a=n(637005);e.exports=function(e){return a(e)&&"[object Set]"==i(e)}},238749:(e,t,n)=>{var i=n(644239),a=n(541780),r=n(637005),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return r(e)&&a(e.length)&&!!o[i(e)]}},400280:(e,t,n)=>{var i=n(225726),a=n(86916),r=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return a(e);var t=[];for(var n in Object(e))r.call(e,n)&&"constructor"!=n&&t.push(n);return t}},710313:(e,t,n)=>{var i=n(513218),a=n(225726),r=n(133498),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return r(e);var t=a(e),n=[];for(var s in e)("constructor"!=s||!t&&o.call(e,s))&&n.push(s);return n}},642980:(e,t,n)=>{var i=n(646384),a=n(286556),r=n(228483),o=n(559783),s=n(513218),l=n(481704),c=n(636390);e.exports=function e(t,n,d,u,p){t!==n&&r(n,(function(r,l){if(p||(p=new i),s(r))o(t,n,l,d,e,u,p);else{var h=u?u(c(t,l),r,l+"",t,n,p):void 0;void 0===h&&(h=r),a(t,l,h)}}),l)}},559783:(e,t,n)=>{var i=n(286556),a=n(364626),r=n(477133),o=n(200278),s=n(738517),l=n(135694),c=n(701469),d=n(229246),u=n(644144),p=n(623560),h=n(513218),m=n(968630),_=n(936719),g=n(636390),v=n(959881);e.exports=function(e,t,n,f,y,b,x){var w=g(e,n),P=g(t,n),S=x.get(P);if(S)i(e,n,S);else{var k=b?b(w,P,n+"",e,t,x):void 0,T=void 0===k;if(T){var I=c(P),A=!I&&u(P),C=!I&&!A&&_(P);k=P,I||A||C?c(w)?k=w:d(w)?k=o(w):A?(T=!1,k=a(P,!0)):C?(T=!1,k=r(P,!0)):k=[]:m(P)||l(P)?(k=w,l(w)?k=v(w):h(w)&&!p(w)||(k=s(P))):T=!1}T&&(x.set(P,k),y(k,P,f,b,x),x.delete(P)),i(e,n,k)}}},105976:(e,t,n)=>{var i=n(406557),a=n(545357),r=n(430061);e.exports=function(e,t){return r(a(e,t,i),e+"")}},356560:(e,t,n)=>{var i=n(575703),a=n(538777),r=n(406557),o=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:r;e.exports=o},422545:e=>{e.exports=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}},307518:e=>{e.exports=function(e){return function(t){return e(t)}}},274757:e=>{e.exports=function(e,t){return e.has(t)}},274318:(e,t,n)=>{var i=n(611149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}},364626:(e,t,n)=>{e=n.nmd(e);var i=n(555639),a=t&&!t.nodeType&&t,r=a&&e&&!e.nodeType&&e,o=r&&r.exports===a?i.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=s?s(n):new e.constructor(n);return e.copy(i),i}},257157:(e,t,n)=>{var i=n(274318);e.exports=function(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},593147:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},540419:(e,t,n)=>{var i=n(562705),a=i?i.prototype:void 0,r=a?a.valueOf:void 0;e.exports=function(e){return r?Object(r.call(e)):{}}},477133:(e,t,n)=>{var i=n(274318);e.exports=function(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},200278:e=>{e.exports=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}},698363:(e,t,n)=>{var i=n(234865),a=n(789465);e.exports=function(e,t,n,r){var o=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],d=r?r(n[c],e[c],c,n,e):void 0;void 0===d&&(d=e[c]),o?a(n,c,d):i(n,c,d)}return n}},318805:(e,t,n)=>{var i=n(698363),a=n(799551);e.exports=function(e,t){return i(e,a(e),t)}},201911:(e,t,n)=>{var i=n(698363),a=n(151442);e.exports=function(e,t){return i(e,a(e),t)}},614429:(e,t,n)=>{var i=n(555639)["__core-js_shared__"];e.exports=i},321463:(e,t,n)=>{var i=n(105976),a=n(816612);e.exports=function(e){return i((function(t,n){var i=-1,r=n.length,o=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(r--,o):void 0,s&&a(n[0],n[1],s)&&(o=r<3?void 0:o,r=1),t=Object(t);++i<r;){var l=n[i];l&&e(t,l,i,o)}return t}))}},225063:e=>{e.exports=function(e){return function(t,n,i){for(var a=-1,r=Object(t),o=i(t),s=o.length;s--;){var l=o[e?s:++a];if(!1===n(r[l],l,r))break}return t}}},538777:(e,t,n)=>{var i=n(610852),a=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=a},967114:(e,t,n)=>{var i=n(288668),a=n(282908),r=n(274757);e.exports=function(e,t,n,o,s,l){var c=1&n,d=e.length,u=t.length;if(d!=u&&!(c&&u>d))return!1;var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var m=-1,_=!0,g=2&n?new i:void 0;for(l.set(e,t),l.set(t,e);++m<d;){var v=e[m],f=t[m];if(o)var y=c?o(f,v,m,t,e,l):o(v,f,m,e,t,l);if(void 0!==y){if(y)continue;_=!1;break}if(g){if(!a(t,(function(e,t){if(!r(g,t)&&(v===e||s(v,e,n,o,l)))return g.push(t)}))){_=!1;break}}else if(v!==f&&!s(v,f,n,o,l)){_=!1;break}}return l.delete(e),l.delete(t),_}},518351:(e,t,n)=>{var i=n(562705),a=n(611149),r=n(977813),o=n(967114),s=n(668776),l=n(321814),c=i?i.prototype:void 0,d=c?c.valueOf:void 0;e.exports=function(e,t,n,i,c,u,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!u(new a(e),new a(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var m=1&i;if(h||(h=l),e.size!=t.size&&!m)return!1;var _=p.get(e);if(_)return _==t;i|=2,p.set(e,t);var g=o(h(e),h(t),i,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,n)=>{var i=n(458234),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,r,o,s){var l=1&n,c=i(e),d=c.length;if(d!=i(t).length&&!l)return!1;for(var u=d;u--;){var p=c[u];if(!(l?p in t:a.call(t,p)))return!1}var h=s.get(e),m=s.get(t);if(h&&m)return h==t&&m==e;var _=!0;s.set(e,t),s.set(t,e);for(var g=l;++u<d;){var v=e[p=c[u]],f=t[p];if(r)var y=l?r(f,v,p,t,e,s):r(v,f,p,e,t,s);if(!(void 0===y?v===f||o(v,f,n,r,s):y)){_=!1;break}g||(g="constructor"==p)}if(_&&!g){var b=e.constructor,x=t.constructor;b==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(_=!1)}return s.delete(e),s.delete(t),_}},458234:(e,t,n)=>{var i=n(868866),a=n(799551),r=n(3674);e.exports=function(e){return i(e,r,a)}},946904:(e,t,n)=>{var i=n(868866),a=n(151442),r=n(481704);e.exports=function(e){return i(e,r,a)}},45050:(e,t,n)=>{var i=n(37019);e.exports=function(e,t){var n=e.__data__;return i(t)?n["string"==typeof t?"string":"hash"]:n.map}},610852:(e,t,n)=>{var i=n(28458),a=n(647801);e.exports=function(e,t){var n=a(e,t);return i(n)?n:void 0}},385924:(e,t,n)=>{var i=n(205569)(Object.getPrototypeOf,Object);e.exports=i},799551:(e,t,n)=>{var i=n(234963),a=n(770479),r=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),i(o(e),(function(t){return r.call(e,t)})))}:a;e.exports=s},151442:(e,t,n)=>{var i=n(862488),a=n(385924),r=n(799551),o=n(770479),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)i(t,r(e)),e=a(e);return t}:o;e.exports=s},664160:(e,t,n)=>{var i=n(618552),a=n(357071),r=n(853818),o=n(458525),s=n(70577),l=n(644239),c=n(680346),d="[object Map]",u="[object Promise]",p="[object Set]",h="[object WeakMap]",m="[object DataView]",_=c(i),g=c(a),v=c(r),f=c(o),y=c(s),b=l;(i&&b(new i(new ArrayBuffer(1)))!=m||a&&b(new a)!=d||r&&b(r.resolve())!=u||o&&b(new o)!=p||s&&b(new s)!=h)&&(b=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,i=n?c(n):"";if(i)switch(i){case _:return m;case g:return d;case v:return u;case f:return p;case y:return h}return t}),e.exports=b},647801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},751789:(e,t,n)=>{var i=n(894536);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},780401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},657667:(e,t,n)=>{var i=n(894536),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(t,e)?t[e]:void 0}},521327:(e,t,n)=>{var i=n(894536),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:a.call(t,e)}},281866:(e,t,n)=>{var i=n(894536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},43824:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,i=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(i.index=e.index,i.input=e.input),i}},529148:(e,t,n)=>{var i=n(274318),a=n(257157),r=n(593147),o=n(540419),s=n(477133);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return i(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return a(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return r(e);case"[object Set]":return new l;case"[object Symbol]":return o(e)}}},738517:(e,t,n)=>{var i=n(603118),a=n(385924),r=n(225726);e.exports=function(e){return"function"!=typeof e.constructor||r(e)?{}:i(a(e))}},565776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var i=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<n}},816612:(e,t,n)=>{var i=n(977813),a=n(498612),r=n(565776),o=n(513218);e.exports=function(e,t,n){if(!o(n))return!1;var s=typeof t;return!!("number"==s?a(n)&&r(t,n.length):"string"==s&&t in n)&&i(n[t],e)}},37019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},215346:(e,t,n)=>{var i,a=n(614429),r=(i=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!r&&r in e}},225726:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},327040:e=>{e.exports=function(){this.__data__=[],this.size=0}},514125:(e,t,n)=>{var i=n(218470),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)}},882117:(e,t,n)=>{var i=n(218470);e.exports=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}},567518:(e,t,n)=>{var i=n(218470);e.exports=function(e){return i(this.__data__,e)>-1}},654705:(e,t,n)=>{var i=n(218470);e.exports=function(e,t){var n=this.__data__,a=i(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},924785:(e,t,n)=>{var i=n(301989),a=n(738407),r=n(357071);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(r||a),string:new i}}},611285:(e,t,n)=>{var i=n(45050);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},396e3:(e,t,n)=>{var i=n(45050);e.exports=function(e){return i(this,e).get(e)}},349916:(e,t,n)=>{var i=n(45050);e.exports=function(e){return i(this,e).has(e)}},195265:(e,t,n)=>{var i=n(45050);e.exports=function(e,t){var n=i(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},668776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}},894536:(e,t,n)=>{var i=n(610852)(Object,"create");e.exports=i},86916:(e,t,n)=>{var i=n(205569)(Object.keys,Object);e.exports=i},133498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},531167:(e,t,n)=>{e=n.nmd(e);var i=n(431957),a=t&&!t.nodeType&&t,r=a&&e&&!e.nodeType&&e,o=r&&r.exports===a&&i.process,s=function(){try{var e=r&&r.require&&r.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(t){}}();e.exports=s},205569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},545357:(e,t,n)=>{var i=n(896874),a=Math.max;e.exports=function(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,s=a(r.length-t,0),l=Array(s);++o<s;)l[o]=r[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=r[o];return c[t]=n(l),i(e,this,c)}}},636390:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},90619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},572385:e=>{e.exports=function(e){return this.__data__.has(e)}},321814:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},430061:(e,t,n)=>{var i=n(356560),a=n(521275)(i);e.exports=a},521275:e=>{var t=Date.now;e.exports=function(e){var n=0,i=0;return function(){var a=t(),r=16-(a-i);if(i=a,r>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},737465:(e,t,n)=>{var i=n(738407);e.exports=function(){this.__data__=new i,this.size=0}},963779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},267599:e=>{e.exports=function(e){return this.__data__.get(e)}},744758:e=>{e.exports=function(e){return this.__data__.has(e)}},234309:(e,t,n)=>{var i=n(738407),a=n(357071),r=n(883369);e.exports=function(e,t){var n=this.__data__;if(n instanceof i){var o=n.__data__;if(!a||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new r(o)}return n.set(e,t),this.size=n.size,this}},680346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},150361:(e,t,n)=>{var i=n(285990);e.exports=function(e){return i(e,5)}},575703:e=>{e.exports=function(e){return function(){return e}}},977813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},406557:e=>{e.exports=function(e){return e}},135694:(e,t,n)=>{var i=n(909454),a=n(637005),r=Object.prototype,o=r.hasOwnProperty,s=r.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return a(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},498612:(e,t,n)=>{var i=n(623560),a=n(541780);e.exports=function(e){return null!=e&&a(e.length)&&!i(e)}},229246:(e,t,n)=>{var i=n(498612),a=n(637005);e.exports=function(e){return a(e)&&i(e)}},644144:(e,t,n)=>{e=n.nmd(e);var i=n(555639),a=n(595062),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,s=o&&o.exports===r?i.Buffer:void 0,l=(s?s.isBuffer:void 0)||a;e.exports=l},618446:(e,t,n)=>{var i=n(690939);e.exports=function(e,t){return i(e,t)}},623560:(e,t,n)=>{var i=n(644239),a=n(513218);e.exports=function(e){if(!a(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},541780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},356688:(e,t,n)=>{var i=n(225588),a=n(307518),r=n(531167),o=r&&r.isMap,s=o?a(o):i;e.exports=s},968630:(e,t,n)=>{var i=n(644239),a=n(385924),r=n(637005),o=Function.prototype,s=Object.prototype,l=o.toString,c=s.hasOwnProperty,d=l.call(Object);e.exports=function(e){if(!r(e)||"[object Object]"!=i(e))return!1;var t=a(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==d}},472928:(e,t,n)=>{var i=n(829221),a=n(307518),r=n(531167),o=r&&r.isSet,s=o?a(o):i;e.exports=s},936719:(e,t,n)=>{var i=n(238749),a=n(307518),r=n(531167),o=r&&r.isTypedArray,s=o?a(o):i;e.exports=s},3674:(e,t,n)=>{var i=n(14636),a=n(400280),r=n(498612);e.exports=function(e){return r(e)?i(e):a(e)}},481704:(e,t,n)=>{var i=n(14636),a=n(710313),r=n(498612);e.exports=function(e){return r(e)?i(e,!0):a(e)}},682492:(e,t,n)=>{var i=n(642980),a=n(321463)((function(e,t,n){i(e,t,n)}));e.exports=a},770479:e=>{e.exports=function(){return[]}},595062:e=>{e.exports=function(){return!1}},959881:(e,t,n)=>{var i=n(698363),a=n(481704);e.exports=function(e){return i(e,a(e))}},762587:e=>{function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,i,a){n=n||"&",i=i||"=";var r={};if("string"!=typeof e||0===e.length)return r;var o=/\+/g;e=e.split(n);var s=1e3;a&&"number"==typeof a.maxKeys&&(s=a.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;c<l;++c){var d,u,p,h,m=e[c].replace(o,"%20"),_=m.indexOf(i);_>=0?(d=m.substr(0,_),u=m.substr(_+1)):(d=m,u=""),p=decodeURIComponent(d),h=decodeURIComponent(u),t(r,p)?Array.isArray(r[p])?r[p].push(h):r[p]=[r[p],h]:r[p]=h}return r}},712361:e=>{var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,i,a){return n=n||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(a){var r=encodeURIComponent(t(a))+i;return Array.isArray(e[a])?e[a].map((function(e){return r+encodeURIComponent(t(e))})).join(n):r+encodeURIComponent(t(e[a]))})).join(n):a?encodeURIComponent(t(a))+i+encodeURIComponent(t(e)):""}},817673:(e,t,n)=>{t.decode=t.parse=n(762587),t.encode=t.stringify=n(712361)},52511:function(e,t,n){var i;e=n.nmd(e),function(a){t&&t.nodeType,e&&e.nodeType;var r="object"==typeof n.g&&n.g;r.global!==r&&r.window!==r&&r.self;var o,s=2147483647,l=36,c=/^xn--/,d=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,m=String.fromCharCode;function _(e){throw RangeError(p[e])}function g(e,t){for(var n=e.length,i=[];n--;)i[n]=t(e[n]);return i}function v(e,t){var n=e.split("@"),i="";return n.length>1&&(i=n[0]+"@",e=n[1]),i+g((e=e.replace(u,".")).split("."),t).join(".")}function f(e){for(var t,n,i=[],a=0,r=e.length;a<r;)(t=e.charCodeAt(a++))>=55296&&t<=56319&&a<r?56320==(64512&(n=e.charCodeAt(a++)))?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),a--):i.push(t);return i}function y(e){return g(e,(function(e){var t="";return e>65535&&(t+=m((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=m(e)})).join("")}function b(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function x(e,t,n){var i=0;for(e=n?h(e/700):e>>1,e+=h(e/t);e>455;i+=l)e=h(e/35);return h(i+36*e/(e+38))}function w(e){var t,n,i,a,r,o,c,d,u,p,m,g=[],v=e.length,f=0,b=128,w=72;for((n=e.lastIndexOf("-"))<0&&(n=0),i=0;i<n;++i)e.charCodeAt(i)>=128&&_("not-basic"),g.push(e.charCodeAt(i));for(a=n>0?n+1:0;a<v;){for(r=f,o=1,c=l;a>=v&&_("invalid-input"),((d=(m=e.charCodeAt(a++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:l)>=l||d>h((s-f)/o))&&_("overflow"),f+=d*o,!(d<(u=c<=w?1:c>=w+26?26:c-w));c+=l)o>h(s/(p=l-u))&&_("overflow"),o*=p;w=x(f-r,t=g.length+1,0==r),h(f/t)>s-b&&_("overflow"),b+=h(f/t),f%=t,g.splice(f++,0,b)}return y(g)}function P(e){var t,n,i,a,r,o,c,d,u,p,g,v,y,w,P,S=[];for(v=(e=f(e)).length,t=128,n=0,r=72,o=0;o<v;++o)(g=e[o])<128&&S.push(m(g));for(i=a=S.length,a&&S.push("-");i<v;){for(c=s,o=0;o<v;++o)(g=e[o])>=t&&g<c&&(c=g);for(c-t>h((s-n)/(y=i+1))&&_("overflow"),n+=(c-t)*y,t=c,o=0;o<v;++o)if((g=e[o])<t&&++n>s&&_("overflow"),g==t){for(d=n,u=l;!(d<(p=u<=r?1:u>=r+26?26:u-r));u+=l)P=d-p,w=l-p,S.push(m(b(p+P%w,0))),d=h(P/w);S.push(m(b(d,0))),r=x(n,y,i==a),n=0,++i}++n,++t}return S.join("")}o={version:"1.3.2",ucs2:{decode:f,encode:y},decode:w,encode:P,toASCII:function(e){return v(e,(function(e){return d.test(e)?"xn--"+P(e):e}))},toUnicode:function(e){return v(e,(function(e){return c.test(e)?w(e.slice(4).toLowerCase()):e}))}},void 0===(i=function(){return o}.call(t,n,t,e))||(e.exports=i)}()},608575:(e,t,n)=>{var i=n(52511),a=n(762502);function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){a.isString(e)&&(e=y(e));return e instanceof r?e.format():r.prototype.format.call(e)},t.Url=r;var o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),d=["'"].concat(c),u=["%","/","?",";","#"].concat(d),p=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},f=n(817673);function y(e,t,n){if(e&&a.isObject(e)&&e instanceof r)return e;var i=new r;return i.parse(e,t,n),i}r.prototype.parse=function(e,t,n){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),s=-1!==r&&r<e.indexOf("#")?"?":"#",c=e.split(s);c[0]=c[0].replace(/\\/g,"/");var y=e=c.join(s);if(y=y.trim(),!n&&1===e.split("#").length){var b=l.exec(y);if(b)return this.path=y,this.href=y,this.pathname=b[1],b[2]?(this.search=b[2],this.query=t?f.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var x=o.exec(y);if(x){var w=(x=x[0]).toLowerCase();this.protocol=w,y=y.substr(x.length)}if(n||x||y.match(/^\/\/[^@\/]+@[^@\/]+/)){var P="//"===y.substr(0,2);!P||x&&g[x]||(y=y.substr(2),this.slashes=!0)}if(!g[x]&&(P||x&&!v[x])){for(var S,k,T=-1,I=0;I<p.length;I++){-1!==(A=y.indexOf(p[I]))&&(-1===T||A<T)&&(T=A)}-1!==(k=-1===T?y.lastIndexOf("@"):y.lastIndexOf("@",T))&&(S=y.slice(0,k),y=y.slice(k+1),this.auth=decodeURIComponent(S)),T=-1;for(I=0;I<u.length;I++){var A;-1!==(A=y.indexOf(u[I]))&&(-1===T||A<T)&&(T=A)}-1===T&&(T=y.length),this.host=y.slice(0,T),y=y.slice(T),this.parseHost(),this.hostname=this.hostname||"";var C="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!C)for(var E=this.hostname.split(/\./),j=(I=0,E.length);I<j;I++){var D=E[I];if(D&&!D.match(h)){for(var O="",R=0,L=D.length;R<L;R++)D.charCodeAt(R)>127?O+="x":O+=D[R];if(!O.match(h)){var M=E.slice(0,I),F=E.slice(I+1),N=D.match(m);N&&(M.push(N[1]),F.unshift(N[2])),F.length&&(y="/"+F.join(".")+y),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=i.toASCII(this.hostname));var z=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+z,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!_[w])for(I=0,j=d.length;I<j;I++){var Z=d[I];if(-1!==y.indexOf(Z)){var B=encodeURIComponent(Z);B===Z&&(B=escape(Z)),y=y.split(Z).join(B)}}var V=y.indexOf("#");-1!==V&&(this.hash=y.substr(V),y=y.slice(0,V));var H=y.indexOf("?");if(-1!==H?(this.search=y.substr(H),this.query=y.substr(H+1),t&&(this.query=f.parse(this.query)),y=y.slice(0,H)):t&&(this.search="",this.query={}),y&&(this.pathname=y),v[w]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){z=this.pathname||"";var K=this.search||"";this.path=z+K}return this.href=this.format(),this},r.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",i=this.hash||"",r=!1,o="";this.host?r=e+this.host:this.hostname&&(r=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(r+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(o=f.stringify(this.query));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||v[t])&&!1!==r?(r="//"+(r||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):r||(r=""),i&&"#"!==i.charAt(0)&&(i="#"+i),s&&"?"!==s.charAt(0)&&(s="?"+s),t+r+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+i},r.prototype.resolve=function(e){return this.resolveObject(y(e,!1,!0)).format()},r.prototype.resolveObject=function(e){if(a.isString(e)){var t=new r;t.parse(e,!1,!0),e=t}for(var n=new r,i=Object.keys(this),o=0;o<i.length;o++){var s=i[o];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),c=0;c<l.length;c++){var d=l[c];"protocol"!==d&&(n[d]=e[d])}return v[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!v[e.protocol]){for(var u=Object.keys(e),p=0;p<u.length;p++){var h=u[p];n[h]=e[h]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||g[e.protocol])n.pathname=e.pathname;else{for(var m=(e.pathname||"").split("/");m.length&&!(e.host=m.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==m[0]&&m.unshift(""),m.length<2&&m.unshift(""),n.pathname=m.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var _=n.pathname||"",f=n.search||"";n.path=_+f}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),x=b||y||n.host&&e.pathname,w=x,P=n.pathname&&n.pathname.split("/")||[],S=(m=e.pathname&&e.pathname.split("/")||[],n.protocol&&!v[n.protocol]);if(S&&(n.hostname="",n.port=null,n.host&&(""===P[0]?P[0]=n.host:P.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===m[0]?m[0]=e.host:m.unshift(e.host)),e.host=null),x=x&&(""===m[0]||""===P[0])),b)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,P=m;else if(m.length)P||(P=[]),P.pop(),P=P.concat(m),n.search=e.search,n.query=e.query;else if(!a.isNullOrUndefined(e.search)){if(S)n.hostname=n.host=P.shift(),(C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=C.shift(),n.host=n.hostname=C.shift());return n.search=e.search,n.query=e.query,a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!P.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=P.slice(-1)[0],T=(n.host||e.host||P.length>1)&&("."===k||".."===k)||""===k,I=0,A=P.length;A>=0;A--)"."===(k=P[A])?P.splice(A,1):".."===k?(P.splice(A,1),I++):I&&(P.splice(A,1),I--);if(!x&&!w)for(;I--;I)P.unshift("..");!x||""===P[0]||P[0]&&"/"===P[0].charAt(0)||P.unshift(""),T&&"/"!==P.join("/").substr(-1)&&P.push("");var C,E=""===P[0]||P[0]&&"/"===P[0].charAt(0);S&&(n.hostname=n.host=E?"":P.length?P.shift():"",(C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=C.shift(),n.host=n.hostname=C.shift()));return(x=x||n.host&&P.length)&&!E&&P.unshift(""),P.length?n.pathname=P.join("/"):(n.pathname=null,n.path=null),a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},762502:e=>{e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},397066:(e,t,n)=>{n.d(t,{b:()=>d,h:()=>u});var i=n(983722),a=n(768559),r=n(43760),o=n(170168),s=n(619937),l=n(48714),c=n(366284);const d=({href:e,pinId:t,pin:n,location:r,auxData:d},u)=>{if(n&&n.is_promoted){var p,h,m,_;const w=(0,a.Z)({boardUrl:null===(p=n.board)||void 0===p?void 0:p.url,callToCreateSourcePinId:n.call_to_create_source_pin_id,location:r,pinId:n.id,pinnerUserName:null===(h=n.pinner)||void 0===h?void 0:h.username,storyPinDataId:n.story_pin_data_id,trackingParams:n.tracking_params,trackingParamsMap:n.tracking_params_map}),P=(0,l.nS)({url:e,pinId:t,csrId:null,clientTrackingParams:w,auxData:d}),S=(0,i.Z)();if((0,c.G6)(null!==(m=null==S?void 0:S.userAgent.browserName)&&void 0!==m?m:"")){var g,v;const{group:i}=null!==(g=null==S?void 0:S.experimentsClient.checkExperiment("m10n_event_conversion_measurement"))&&void 0!==g?g:{},a=null!=S&&null!==(v=S.userAgent)&&void 0!==v&&v.browserVersion?S.userAgent.browserVersion:"0.0",r=parseFloat(a.split(".")[0]+"."+a.split(".")[1]);if(void 0!==n.campaign_id&&r>=14.1&&["enabled_safari"].includes(i)){var f;const i=n.attribution_source_id?((e,t,n)=>{const i=document.createElement("a");return i.setAttribute("href",t),i.setAttribute("target","_blank"),i.setAttribute("rel","noopener nofollow noreferrer"),i.style.cursor="pointer",i.style.display="block",i.setAttribute(s.$N.ATTRIBUTION_SOURCE_ID,e),i.setAttribute(s.$N.ATTRIBUTE_DESTINATION,n),i.setAttribute(s.$N.ATTRIBUTE_ON,n),i.click(),e})(n.attribution_source_id,P,e):((e,t,n)=>{const i=document.createElement("a");i.setAttribute("href",t),i.setAttribute("target","_blank"),i.setAttribute("rel","noopener nofollow noreferrer"),i.style.cursor="pointer",i.style.display="block";const a=""+(e%32*8+Math.floor(((new Date).getTime()-16409952e5)/864e5)%8);return i.setAttribute(s.$N.ATTRIBUTION_SOURCE_ID,a),i.setAttribute(s.$N.ATTRIBUTE_DESTINATION,n),i.setAttribute(s.$N.ATTRIBUTE_ON,n),i.click(),a})(null!==(f=n.pin_promotion_id)&&void 0!==f?f:0,P,e);return u({event_type:101,clientTrackingParams:w,object_id_str:t||"",aux_data:{pin_id:t||"",click_measurement_ppid:n.pin_promotion_id||"",click_measurement_campaign_id:n.campaign_id||"",is_pcm:!0,attribution_source_id:i,page_url:e}}),!0}}else if((0,c.i7)(null!==(_=null==S?void 0:S.userAgent.browserName)&&void 0!==_?_:"")){var y,b;const{group:i}=null!==(y=null==S?void 0:S.experimentsClient.checkExperiment("m10n_event_conversion_measurement_chrome"))&&void 0!==y?y:{},a=null!=S&&null!==(b=S.userAgent)&&void 0!==b&&b.browserVersion?parseInt(S.userAgent.browserVersion.split(".")[0],10):0;if(void 0!==n.attribution_source_id&&a>=101&&["enabled"].includes(i)){var x;const i=((e,t,n)=>{const i=new URL(`${o.C0}/attribution_source/`);i.searchParams.set(s.NR.ATTRIBUTION_SOURCE_EVENT_ID,e),i.searchParams.set(s.NR.ATTRIBUTION_DESTINATION,n),i.searchParams.set(s.NR.ATTRIBUTION_EXPIRY,""+s.uV);const a=document.createElement("a");return a.setAttribute("href",t),a.setAttribute("target","_blank"),a.setAttribute("rel","noopener nofollow noreferrer"),a.style.cursor="pointer",a.style.display="block",a.setAttribute(s.NR.ATTRIBUTION_SOURCE,i.toString()),a.click(),e})(null!==(x=n.attribution_source_id)&&void 0!==x?x:"0",P,e);return u({event_type:101,clientTrackingParams:w,object_id_str:t||"",aux_data:{pin_id:t||"",click_measurement_ppid:n.pin_promotion_id||"",click_measurement_campaign_id:n.campaign_id||"",is_arapi:!0,attribution_source_id:i,page_url:e}}),!0}}}return!1},u=({href:e,pinId:t,pin:n,location:i,auxData:o},s)=>{if("undefined"!=typeof window&&window.Windows)(0,r.Z)({url:e,pinId:t,pin:n,location:i,auxData:o});else{var c,u;if(d({href:e,pinId:t,pin:n,location:i,auxData:o},s))return;(0,l.Gj)({url:e,pinId:t,csrId:null,clientTrackingParams:(0,a.Z)({boardUrl:null==n||null===(c=n.board)||void 0===c?void 0:c.url,callToCreateSourcePinId:null==n?void 0:n.call_to_create_source_pin_id,location:i,pinId:null==n?void 0:n.id,pinnerUserName:null==n||null===(u=n.pinner)||void 0===u?void 0:u.username,storyPinDataId:null==n?void 0:n.story_pin_data_id,trackingParams:null==n?void 0:n.tracking_params,trackingParamsMap:null==n?void 0:n.tracking_params_map}),auxData:o})}}},805501:(e,t,n)=>{function i({storyPinDataId:e,shouldShowStaticImageIdeaPin:t}){return e?{shouldLogAsStoryPin:!0,shouldRenderAsStoryPin:!t}:{shouldLogAsStoryPin:!1,shouldRenderAsStoryPin:!1}}n.d(t,{Z:()=>i})},485710:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(667294),a=n(898781),r=n(883119),o=n(785893);function s({children:e,heading:t}){const[n,s]=(0,i.useState)(!1),l=(0,a.ZP)();return(0,o.jsxs)(r.kC,{direction:"column",dataTestId:"collapsible-layout",children:[(0,o.jsxs)(r.X6,{align:"start",size:"400",accessibilityLevel:2,children:[(0,o.jsx)(r.xu,{"data-test-id":"collapsible-layout-heading",display:"inlineBlock",children:t}),(0,o.jsx)(r.xu,{"data-test-id":"collapse-button",display:"inlineBlock",marginStart:1,children:(0,o.jsx)(r.hU,{accessibilityLabel:l.bt("显示更多详细信息下拉菜单", "Show more details drop-down", "Closeup.common.CollapsibleLayout", undefined, true),icon:n?"arrow-forward":"arrow-down",onClick:()=>{s(!n)},size:"md"})})]}),!n&&(0,o.jsx)(i.Fragment,{children:e})]})}},288889:(e,t,n)=>{n.d(t,{n:()=>i});const i="300"},319530:(e,t,n)=>{n.d(t,{Z:()=>l});var i=n(667294),a=n(898781),r=n(288889),o=n(883119),s=n(785893);function l({children:e,maxLines:t=10}){const n=(0,i.useRef)(null),[l,c]=(0,i.useState)({isFirstLoad:!0,isTruncated:!1}),d=(0,a.ZP)(),{isFirstLoad:u,isTruncated:p}=l;return(0,i.useEffect)((()=>{var e;u&&n.current&&((e=n.current).offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&c({isFirstLoad:!1,isTruncated:!0})}),[u,p]),(0,s.jsxs)(o.xu,{position:"relative","data-test-id":"truncated-text",children:[(0,s.jsx)(o.xv,{ref:n,lineClamp:u||p?t:0,inline:!0,children:e}),p&&(0,s.jsx)(o.xu,{position:"absolute",display:"block",width:"100%",bottom:!0,children:(0,s.jsxs)(o.kC,{flex:"grow",children:[(0,s.jsx)(o.xu,{display:"inlineBlock",width:"120px",height:"14px"}),(0,s.jsx)(o.xu,{"data-test-id":"more-button",display:"inlineBlock",dangerouslySetInlineStyle:{__style:{background:"white"}},children:(0,s.jsx)(o.iP,{fullWidth:!1,onTap:()=>c({...l,isTruncated:!1}),children:(0,s.jsx)(o.xv,{inline:!0,size:r.n,weight:"bold",children:d.bt(" …更多", " … more", "closeup.TruncatedTextContent.moreLabel", undefined, true)})})}),(0,s.jsx)(o.xu,{display:"inlineBlock",flex:"grow",dangerouslySetInlineStyle:{__style:{background:"white"}}})]})})]})}},391254:(e,t,n)=>{n.d(t,{Z:()=>r});n(441143);var i=n(785893);class a{static factory(e){return e instanceof a?e:new a(String(e))}constructor(e){this._private_safe_value=e.trim().replace(">",">").replace("<","<").replace("&","&").replace('"','"').replace("'","'")}toString(){return this._private_safe_value}}function r(e){const{css:t,unsafeCSS:n,...r}=e,o=String(t||"")||n||"";return!!o?(0,i.jsx)("style",{...r,dangerouslySetInnerHTML:{__html:String(a.factory(o))}}):null}},941646:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(883119),a=n(785893);function r(e){const{children:t,display:n,id:r}=e;return(0,a.jsx)(i.xu,{"data-test-id":r,display:n,children:t})}},512176:(e,t,n)=>{n.d(t,{Z:()=>d});var i=n(667294),a=n(898781),r=n(112690),o=n(967181),s=n(883119),l=n(785893);const c={sm:12,md:16,lg:20,xl:24};function d({isVerifiedMerchant:e,size:t,showText:n,showVerifiedIdentity:d,inspirationalBadges:u,inspirationalBadgesColor:p}){const h=(0,a.ZP)(),[m,_]=(0,i.useState)(!1),{dangerousInlineStyle:g,iconColor:v}=(0,o.W)(!!e),f=(0,r.Z)();return(0,l.jsxs)(i.Fragment,{children:[(0,l.jsx)(s.iP,{onTap:()=>{f({component:13534,element:11717,event_type:102}),_(!0)},rounding:"circle",children:(0,l.jsxs)(s.xu,{alignItems:"center",dangerouslySetInlineStyle:g,display:"flex","data-test-id":"verified-badge-icon",children:[(0,l.jsx)(s.JO,{accessibilityLabel:e?h.bt("商家验证徽章图标", "Merchant verification badge icon", "merchantVerification.badge.icon", undefined, true):h.bt("徽章图标", "Badge icon", "merchantVerification.badge.icon", undefined, true),icon:"workflow-status-ok",color:v,inline:!0,size:c[t]}),n&&!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.bt("经过验证的商家", "Verified merchant", "creator.header.verifiedMerchant", undefined, true)})})})]})}),(e||n&&!d)&&(0,l.jsx)(o.Z,{showModal:m,setShowModal:_,inspirationalBadges:u,inspirationalBadgesColor:p})]})}},967181:(e,t,n)=>{n.d(t,{W:()=>u,Z:()=>p});var i=n(667294),a=n(121151),r=n(898781),o=n(112690),s=n(966113),l=n(752403),c=n(883119),d=n(785893);const u=e=>{const t=e?"shopping":"error";return{iconColor:t,dangerousInlineStyle:{__style:{color:t}}}};function p({inspirationalBadges:e=[],inspirationalBadgesColor:t,showModal:n,setShowModal:p}){const h=(0,r.ZP)(),[m,_]=(0,i.useState)(!0),{dangerousInlineStyle:g,iconColor:v}=u(!0),f=(0,o.Z)();return(0,i.useEffect)((()=>{n&&m&&(_(!1),f({event_type:13,component:13534}))}),[n]),(0,d.jsx)(a.ZP,{accessibilityModalLabel:h.bt("经过验证的商家信息", "Verified merchant information", "creator.verifiedMerchant.accessibilityModalLabel", undefined, true),isOpen:n,mobileAccessibilityCloseIconLabel:h.bt("关闭", "Close", "Close modal window", undefined, true),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.bt("商家验证徽章图标", "Merchant verification badge icon", "creator.verifiedMerchant.modalIcon", undefined, true),color:v,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.bt("经过验证的商家", "Verified merchant", "creator.verifiedMerchant.modalHeader", undefined, true)})})}),(0,d.jsx)(c.xu,{marginTop:4,marginBottom:4,children:(0,d.jsx)(c.xv,{align:"center",overflow:"normal",children:h.bt("该零售商符合 Pinterest 的商家指南", "This retailer meets Pinterest's Merchant Guidelines", "creator.verifiedMerchant.modalText.", undefined, true)})}),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.bt("了解更多", "Learn more", "creator.verifiedMerchant.buttonText", undefined, true),target:"blank",size:"lg",href:s.vB,text:h.bt("了解更多", "Learn more", "creator.verifiedMerchant.buttonText", undefined, true)})})]})})})}},619937:(e,t,n)=>{n.d(t,{$N:()=>p,GY:()=>l,MZ:()=>o,NR:()=>d,Vn:()=>c,fm:()=>i,kM:()=>r,q6:()=>a,qp:()=>s,uV:()=>u});const i={DOWNLOAD_TEMPLATE:"DOWNLOAD_TEMPLATE",UPLOAD_TEMPLATE:"UPLOAD_TEMPLATE",HISTORY:"HISTORY",RESOURCES:"RESOURCES"},a={GENERAL:"GENERAL",CAMPAIGNS:"CAMPAIGNS",AD_GROUPS:"AD_GROUPS",ADS:"ADS",KEYWORDS:"KEYWORDS",PRODUCT_GROUPS:"PRODUCT_GROUPS",ERROR_CODES:"ERROR_CODES"},r={BILLING_HISTORY:"BILLING_HISTORY",BILLING_FORMS:"BILLING_FORMS",ORDER_LINES:"ORDER_LINES",PROMOTIONS:"PROMOTIONS",DOCUMENTS:"DOCUMENTS",PREPAID_CAMPAIGN_SPEND:"PREPAID_CAMPAIGN_SPEND_SUMMARY"},o={GOOGLE_TAG_MANAGER:"Google Tag Manager",SHOPIFY:"Shopify",WOO_COMMERCE:"WooCommerce",WORDPRESS:"WordPress",SQUARESPACE:"Squarespace",WEEBLY:"Weebly",TEALIUM:"Tealium",MAGENTO:"Magento",ECWID:"Ecwid",BIG_COMMERCE:"BigCommerce",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"}},283698:(e,t,n)=>{function i(e){return"undefined"!=typeof window&&Object.prototype.hasOwnProperty.call(window,"requestAnimationFrame")||e&&e(),window.requestAnimationFrame((()=>{window.requestAnimationFrame((()=>{e&&e()}))}))}n.d(t,{Z:()=>i})},366284:(e,t,n)=>{n.d(t,{G6:()=>r,i7:()=>o,oi:()=>i,u$:()=>a,un:()=>l,vU:()=>s});const i=Object.freeze({OTHER:0,CHROME:1,SAFARI:2,IE:3,FIREFOX:4,OPERA:5,EDGE:6}),a=e=>e?e.includes("Chrome")?i.CHROME:e.includes("Safari")?i.SAFARI:e.includes("Firefox")?i.FIREFOX:e.includes("Opera")?i.OPERA:e.includes("IE")?i.IE:e.includes("Edge")?i.EDGE:i.OTHER:i.OTHER;function r(e){return a(e)===i.SAFARI}function o(e){return a(e)===i.CHROME}function s(e){return a(e)===i.FIREFOX}function l(e){return a(e)===i.EDGE}},752403:(e,t,n)=>{n.d(t,{Bu:()=>m,Dm:()=>s,I:()=>v,NG:()=>p,QP:()=>d,S4:()=>c,Xe:()=>u,_f:()=>h,eT:()=>_,hm:()=>g,yQ:()=>l,ym:()=>y});var i=n(642345);const a=Object.freeze({AFRICAN_AMERICAN_OR_BLACK:"african_american_or_black",BLACK_AFRICAN_DIASPORA:"black_african_diaspora",HISPANIC_OR_LATINX:"hispanic_or_latinx",NATIVE_OR_INDIGENOUS:"native_or_indigenous",ABORIGINAL_OR_INDIGENOUS:"aboriginal_or_indigenous",NATIVE_AMERICAN_OR_ALASKA_NATIVE_OR_INDIGENOUS_PEOPLES:"native_american_or_alaska_native_or_indigenous_peoples",ASIAN_OR_PACIFIC_ISLANDERS:"asian_or_pacific_islanders",ASIAN:"asian",LGBTQ:"lgbtq",MIDDLE_EASTERN:"middle_eastern",TURKISH:"turkish",ROMA:"roma",MIDDLE_EASTERN_TURKISH_ROMA:"middle_eastern_turkish_roma",NORTH_AFRICAN:"north_african",MIDDLE_EASTERN_OR_NORTH_AFRICAN:"middle_eastern_or_north_african",NONE:"none"}),r=Object.freeze({PERSON_OF_COLOR:"person_of_color",LGBTQ:"lgbtq",DISABILITY:"disability",WOMAN:"woman",NONE:"none"}),o=Object.freeze({INVESTED_IN_GOOD:"invested_in_good",ECO_FRIENDLY:"eco_friendly",RESPONSIBLY_SOURCED:"responsibly_sourced",INCLUSIVE:"inclusive",PERSONAL_TOUCH:"personal_touch"}),s=[...Object.keys(a).map((e=>a[e])),...Object.keys(r).map((e=>r[e]))],l=[...Object.keys(o).map((e=>o[e]))],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 m({verifiedMerchant:e}){var t,n;const i=null==e?void 0:e.isVerifiedMerchant,a=null==e||null===(t=e.inspirational_signal)||void 0===t?void 0:t.is_inspirational,r=null==e||null===(n=e.inspirational_signal)||void 0===n?void 0:n.is_eligible_for_storefront_badges;return Boolean(i&&a&&r)}function _(e){return e.badge_details?e.badge_details.map((e=>e.id)):[]}function g(e){return(null==e?void 0:e.profile_badges)||[]}function v(e,t,n){return t&&n?t.map((e=>n.find((t=>t.id===e.trim())))).filter(Boolean):[]}function f(e){const t=(0,i.oo)(e);if(!t)return"white";const[n,a,r]=t;return(0,i.DW)(n,a,r)<=i.I?"white":"black"}function y(e){const t=e||d[0];return{backgroundColor:t,color:f(t)}}},687551:(e,t,n)=>{function i(e){return!!(e&&e.carousel_data&&e.carousel_data.id)}n.d(t,{Z:()=>i})},768559:(e,t,n)=>{n.d(t,{Z:()=>l});var i=n(826067);const a=/\/today\/(article|best|trending)\/[\w-]+\/(\d+)/,r=/\/discover\/article\/[\w-]+\/(\d+)/,o=(e,t)=>t?e.substring(t.length).split("/")[0]:e,s=({boardUrl:e,callToCreateSourcePinId:t,path:n,pinId:s,pinnerUserName:l,query:c,search:d,storyPinDataId:u})=>{var p,h;if(!n)return"";let m="";switch(n){case"/":case"/homefeed/":return"UserHomefeedResource";case l&&`/${l}/pins/`:return"UserPinsResource";case l&&`/${l}/`:case/\/_activity\//.test(n)&&n:return"UserActivityPinsResource";case/\/_created\//.test(n)&&n:return u?"UserStoryPinsFeedResource":"UserActivityPinsResource";case/\/_community\//.test(n)&&n:return"UserDiscoveredPinsResource";case/\/_shop\//.test(n)&&n:return"StoreFrontFeedResource";case/\/_saved\//.test(n)&&n:return"BoardlessPinsResource";case l&&`/${l}/_shopping_list/`:return"ShoppingListFeedResource";case/\/visual-search\//.test(n)&&n:return"VisualLiveSearchResource";case/\/pin\//.test(n)&&n:m="/pin/";const _=o(n,m);if(s!==_)return t?`ApiResource_callToCreatePins_${_}`:`RelatedPinFeedResource_${_}`;break;case/\/search\//.test(n)&&n:if(d){return`SearchResource_${((0,i.mB)(d,{shouldDecode:!1}).q||"").toLowerCase()}`}if(c)return`SearchResource_${encodeURIComponent(c.q||"").toLowerCase()}`;break;case r.test(n)&&n:return`ExploreArticleResource_${(null===(p=n.match(r))||void 0===p?void 0:p[2])||"unknown"}`;case/\/discover\/article\//.test(n)&&n:m="/discover/article/";return`ExploreArticleResource_${o(n,m)}`;case/\/categories\//.test(n)&&n:m="/categories/";return`CategoryFeedResource_${o(n,m)}`;case/\/discover\/topics\//.test(n)&&n:return"CategoryFeedResource";case/\/news_hub\//.test(n)&&n:m="/news_hub/";return`NewsHubDetailsResource_${o(n,m)}`;case/\/_tools\/more-ideas\//.test(n)&&n:return"BoardContentRecommendationResource";case/\/topics\//.test(n)&&n:m="/topics/";return`TopicFeedResource_${o(n,m)}`;case l&&`/${l}/products/`:return"StoreFrontFeedResource";case/\/source\//.test(n)&&n:m="/source/";return`DomainFeedResource_${o(n,m)}`;case/\/explore\//.test(n)&&n:m="/explore/";return`SearchResource_${o(n,m)}`;case e:case!!e&&/\/more_ideas\//.test(n)&&n:return"BoardFeedResource";case e&&n.indexOf(e)>-1&&n:return"BoardSectionPinsResource";case/\/following\//.test(n)&&n:return"FollowingFeedResource";case/\/brand_catalog\//.test(n)&&n:return"BrandCatalogFeedResource";case a.test(n)&&n:return`TodayArticleFeedResource_${(null===(h=n.match(a))||void 0===h?void 0:h[2])||"unknown"}`;case/\/today\//.test(n):return"TodayTabResource";case/\story_feed\//.test(n)&&n:if(d){const{feed_type:e,request_params:t}=(0,i.mB)(d);return`StoryFeedResource_${e}_${t}`}}return""},l=({boardUrl:e,callToCreateSourcePinId:t,location:n,pinId:i,pinnerUserName:a,previousHistory:r,storyPinDataId:o,trackingParams:l,trackingParamsMap:c={}})=>{if(!i||!l||!n)return;if(!c)return`${l}~0`;const{pathname:d,search:u,query:p}=n,h=s({boardUrl:e,callToCreateSourcePinId:t,path:d,pinId:i,pinnerUserName:a,query:p,search:u,storyPinDataId:o,trackingParams:l,trackingParamsMap:c}),m=Object.keys(c);let _;if((d||"").startsWith("/pin/")){const e=m.find((e=>"PinResource"!==e));_=e?c[e]:c.PinResource}else _=c[h];let g;if(!_&&r&&r.length){const n=(e=>{let t=null==e?void 0:e.pathname;return t?(t.match(/\/search\//)&&null!=e&&e.search&&(t+=e.search),t.toLowerCase()):""})(r[r.length-1].location);g=s({boardUrl:e,callToCreateSourcePinId:t,path:n,pinId:i,pinnerUserName:a,query:p,search:u,storyPinDataId:o,trackingParams:l,trackingParamsMap:c}),_=c[g]}return _||(_=`${l||""}~0`),_}},642345:(e,t,n)=>{n.d(t,{DW:()=>s,I:()=>o,oo:()=>r,vq:()=>a});const i=e=>{const t=e.toString(16);return 1===t.length?"0"+t:t},a=(e,t,n)=>"#"+i(e)+i(t)+i(n),r=e=>{const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t&&[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]},o=.18,s=(e,t,n)=>.2126*(e/255)**2.2+.7151*(t/255)**2.2+.0721*(n/255)**2.2},745760:(e,t,n)=>{n.d(t,{Ch:()=>p,nc:()=>x,a:()=>w,ZP:()=>P,cA:()=>y,li:()=>b,h1:()=>d});var i=n(682492),a=n.n(i),r=n(214494),o=n(594881),s=n(706922);var l=n(385740),c=n(172045);const d=()=>1e6*Date.now(),u=[6945,170],p={3829:"articleImpressions",18:"pinImpressions",3700:"boardImpressions",3803:"searchImpressions",170:"storyImpression",3704:"userImpressions"},h=[4700,4701,4702,4703,7042,7043],m=e=>function(e){let t=e.length;for(let n=e.length-1;n>=0;n-=1){const i=e.charCodeAt(n);i>127&&i<=2047?t+=1:i>2047&&i<=65535&&(t+=2),i>=56320&&i<=57343&&(n-=1)}return t}(JSON.stringify(e)),_=e=>u.includes(e);let g;function v(){const e=new Date;g?g&&g.getUTCDate()!==e.getUTCDate()&&(g=e,(0,o.Z)()):g=e}function f(e){return e.reduce(((e,t)=>{const n=e.find((i=t,e=>e.view_type===i.viewType&&e.view_parameter===i.viewParameter&&e.event_type===i.eventType&&e.object_id_str===i.objectIdStr&&(0,s.Z)(e.view_data,i.viewData)));var i;if(n&&!_(t.eventType))t.impressionType in n.event_data?n.event_data[t.impressionType].push(t.eventData):n.event_data[t.impressionType]=[t.eventData];else{const n={event_type:t.eventType,view_parameter:t.viewParameter,view_type:t.viewType,view_data:t.viewData,time:d(),component:t.component,clientUUID:(0,c.Z)(),aux_data:t.auxData||{},appState:t.appState,event_data:{[t.impressionType]:_(t.eventType)?{...t.eventData,...(t.eventData||{})[t.impressionType]}:[t.eventData]},object_id_str:t.objectIdStr||void 0};e.push(n)}return e}),[])}const y=e=>{const t=e.event_type,n=h.includes(t),i=(0,l.BE)();return!(!n&&13!==t&&!i)},b=(e,t)=>{const n=e.event_type,i=h.includes(n),r=(0,l.BE)();return i?e:13===n&&e.view_type?(null==t||t({viewType:e.view_type,viewParameter:e.view_parameter,viewData:null!=r&&r.viewData?a()(r.viewData,e.view_data):a()({},e.view_data)}),e):!r||e.view_type&&e.view_parameter?e:{...e,view_type:r.viewType,view_parameter:r.viewParameter,view_data:e.view_data?a()(e.view_data,r.viewData):a()({},r.viewData)}},x=(e,t)=>{var n,i;const a=e.component,r=e.object_id_str,o=e.view_type,s=e.event_type,l=e.appState;return null!==(n=((null===(i=e.event_data)||void 0===i?void 0:i[t])||[]).map((n=>({auxData:e.aux_data,...a?{component:a}:{},eventData:n,...s?{eventType:s}:{},...o?{viewType:o}:{},viewData:e.view_data,viewParameter:e.view_parameter,...r?{objectIdStr:r}:null,impressionType:t,appState:l}))))&&void 0!==n?n:[]},w=(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 P(){let e=[],t=[],n=0;function i(){return[...e,...f(t)]}function a(){e=[],t=[],n=0}function o(e=!1){const t=i();t.length&&(r.Z.create("ContextLogResource",{events:t,report_time:d()}).callCreate({async:!e,showError:!1}),a(),v())}return{flushContextEvents:o,getContextEvents:i,logContextEvent:function({object_id_str:t,...i}){const a={aux_data:{},event_data:{},view_data:{},...i,time:d(),clientUUID:(0,c.Z)(),...t?{object_id_str:t}:null};a.aux_data=function(e){if(!e)return e;const{element:t,eventData:n,component:i,objectId:a,view:r,viewParameter:o,viewData:s,durationNs:l,pairId:c,clientTrackingParams:d,...u}=e;return u}(a.aux_data),n+m(a)>20480&&o(!1),e.push(a),v()},logImpression:function(e){n+m(e)>20480&&o(!1),t.push(e)},resetEventsBuffer:a}}},112690:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(407043);const a=()=>(0,i.v)().logContextEvent},816068:(e,t,n)=>{n.d(t,{Z:()=>i});const i=e=>Math.floor(new Date(e).getTime()/1e3)},966476:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(667294);const a=()=>{const[e,t]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{t(!0)}),[]),e}},722767:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(667294),a=n(973935);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class o extends i.Component{constructor(...e){super(...e),r(this,"observer",null),r(this,"handleVisibilityChanged",((e,t)=>{this.props.onVisibilityChange(e,t)}))}componentDidMount(){const e=a.findDOMNode(this);e instanceof HTMLElement&&(this.node=e),this.node&&(this.observer=new window.IntersectionObserver(this.handleVisibilityChanged,this.props.options),this.observer.observe(this.node))}componentWillUnmount(){this.observer&&(this.observer.unobserve(this.node),delete this.observer)}render(){return i.Children.only(this.props.children)}}const s=o},780679:(e,t,n)=>{n.d(t,{g:()=>o,t:()=>r});var i=n(667294);const a=(0,i.createContext)(null),r=a.Provider,o=()=>(0,i.useContext)(a)},332611:(e,t,n)=>{n.d(t,{CK:()=>p,N:()=>v,Qu:()=>h,UT:()=>u,YX:()=>g,d9:()=>m,fO:()=>l,kd:()=>_,pz:()=>c});var i=n(214494),a=n(764990),r=n(172071),o=n(957191);let s;const l=(e,t)=>n=>{const a=t?{extra_context:e,targeting:t}:{extra_context:e};return i.Z.create("UserExperiencePlatformResource",a).callGet().then((e=>e.resource_response?n((0,o.OD)(e.resource_response.data)):void 0))},c=(e,t,n,r)=>(l,c)=>{if(t)return Promise.resolve();if(r&&(s=r),1===e.length){const t=e[0],i=c().experiences[t],r=(null==i?void 0:i.extraContext)||null;if(JSON.stringify(r)===JSON.stringify(n)||(0,a.E3)(i)&&!(n&&Object.keys(n).length>0))return Promise.resolve()}return i.Z.create("UserExperienceResource",{placement_ids:e,extra_context:n||null,targeting:r}).callGet().then((e=>e.resource_response?l((0,o.cL)(e.resource_response.data)):void 0))},d=(e,t)=>(n,a,r,c=!1,d,u)=>(p,h)=>{const{experiences:m,experiencesMulti:_}=h();let g=null,v=!0;var f;c||(v=m[n]&&m[n].experience_id===a,g=v?m[n]:Array.isArray(_[n])&&(null===(f=_[n])||void 0===f?void 0:f.find((e=>e.experience_id===a))));if(g&&g.experience_id===a||c&&n&&a){const c=i.Z.create(e,{placed_experience_id:`${n}%3A${a}`,extra_context:null!=d?d:{},targeting:u}),h=v?o.Yb:o.xW;switch(t){case"dismissed":return c.callDelete().then((()=>{p(h(n,a,t)),p(l(void 0,s))}));case"completed":return c.callUpdate().then((()=>{r||(p(h(n,a,t)),p(l(void 0,s)))}));case"viewed":return p(h(n,a,t)),c.callUpdate().then((()=>{1000162===n&&p(l())}));case"completedWithoutHomefeed":return c.callUpdate().then((()=>{r||p(h(n,a,t))}));default:return Promise.resolve()}}return Promise.resolve()},u=d("UserExperienceViewedResource","viewed"),p=d("UserExperienceCompletedResource","completed"),h=d("UserExperienceResource","dismissed"),m=d("UserExperienceCompletedResource","completedWithoutHomefeed"),_=(e,t)=>(n,a)=>{const{experiences:o}=a(),s=o[e];s&&s.triggerable_placed_exps&&s.triggerable_placed_exps.length&&s.triggerable_placed_exps.forEach((n=>{const[,a]=n.split(":");let o=t;s.metadata&&s.metadata[a]&&(o={...t,...s.metadata[a]}),i.Z.create("ApiResource",{url:`/v3/experiences/${n.replace(":","%3A")}/trigger/`,data:o?{extra_context:JSON.stringify(o,null,1)}:{}}).callUpdate().then((()=>{((e,t,n={})=>{r.Z.increment(`${e}.${t}`,1,n)})("experienceservice","experimentTriggerCall.1",{placement_id:e,experience_id:a})}))}))},g=e=>(t,n)=>{t(_(e));const{experiences:i}=n();return i[e]},v=(e,t,n)=>i=>{n&&(s=n),i(_(e,t)),t&&Object.keys(t).length>0&&i(c([e],!1,t,n))}},764990:(e,t,n)=>{function i(e){return!!e&&0!==e.type}n.d(t,{A0:()=>r,E3:()=>i,MQ:()=>a});const a=(e,t,n)=>{const a=e[n];return t[n]&&i(a)?a:null};function r(e){var t;return null===(t=e.display_data)||void 0===t?void 0:t.anchor}},207737:(e,t,n)=>{n.d(t,{$S:()=>i,V$:()=>a,_4:()=>o,iY:()=>s,mR:()=>r});const i="REFRESH_ALL_EXPERIENCES_MULTI",a="UPDATE_EXPERIENCE_MULTI",r="FETCH_EXPERIENCES",o="REFRESH_ALL_EXPERIENCES",s="UPDATE_EXPERIENCE"},957191:(e,t,n)=>{n.d(t,{NW:()=>o,OD:()=>l,Yb:()=>s,cL:()=>c,xW:()=>r});var i=n(214494),a=n(207737);const r=(e,t,n)=>({type:a.V$,payload:{placementId:e,experienceId:t,status:n}}),o=e=>t=>i.Z.create("UserExperiencePlatformResource",{extra_context:e,multiExperiencePlatform:!0}).callGet().then((e=>{return e.resource_response?t((n=e.resource_response.data,{type:a.$S,payload:{experiencesMulti:n}})):void 0;var n})),s=(e,t,n)=>({type:a.iY,payload:{placementId:e,experienceId:t,status:n}}),l=e=>({type:a._4,payload:{experiences:e}}),c=e=>({type:a.mR,payload:{experiences:e}})},378518:(e,t,n)=>{n.d(t,{_:()=>c,a:()=>d});var i=n(667294),a=n(702664),r=n(618446),o=n.n(r),s=n(780280),l=n(332611);const c=({extraContext:e,id:t,shouldUsePlacedExperience:n=!0})=>{const r=(0,i.useRef)(),c=(0,a.useDispatch)(),{isBot:d}=(0,s.B)(),u=(0,a.useSelector)((e=>e.experiences[t]));return(0,i.useEffect)((()=>{c((0,l.kd)(t))}),[c,u,t]),(0,i.useEffect)((()=>{n||o()(r.current,e)||(c((0,l.pz)([t],d,e)),r.current=e)}),[c,e,d,t,n]),u},d=e=>(c(e),(0,a.useSelector)((t=>t.experiencesMulti[e.id])))},116303:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(883119),a=n(785893);const r=(e,t)=>{const n=null==e?void 0:e.includes("images/user/default");return Boolean(n&&t)};function o({accessibilityLabel:e,name:t,outline:n,size:o,src:s,verified:l}){return(0,a.jsx)(i.qE,{accessibilityLabel:e,name:t,outline:n,size:o,src:r(s,t)?void 0:s,verified:l})}o.displayName="Avatar";const s=o},373420:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var i=n(667294),a=n(124580),r=n(223815),o=n(968121),s=n(883119),l=n(785893);function c({_dangerouslyDisableScrollBoundaryContainer:e,accessibilityModalLabel:t,align:n,allowClickAndDrag:c,allowMediaPlay:d,allowScroll:u,children:p,closeOnOutsideClick:h,footer:m,heading:_,onDismiss:g,role:v,size:f,subHeading:y}){(0,i.useEffect)((()=>(a.Z.pause(),function(){a.Z.resume()})),[]);return(0,l.jsx)(s.mh,{zIndex:o.b7,children:(0,l.jsx)(r.Z,{allowClickAndDrag:c,allowEsc:!0,allowMediaPlay:d,allowScroll:u,children:(0,l.jsx)(s.u_,{_dangerouslyDisableScrollBoundaryContainer:e,accessibilityModalLabel:t,align:n,closeOnOutsideClick:h,heading:_,footer:m,onDismiss:()=>{a.Z.resume(),g()},role:v,size:f,subHeading:y,padding:"none",children:p})})})}},430322:(e,t,n)=>{n.r(t),n.d(t,{default:()=>_});var i=n(667294),a=n(124580),r=n(283698),o=n(223815),s=n(50286),l=n(898781),c=n(965900),d=n(780280),u=n(968121),p=n(867820),h=n(883119),m=n(785893);function _({accessibilityModalLabel:e,align:t="center",allowScroll:n=!1,children:_,closeOnOutsideClick:g=!0,footer:v,heading:f,mobileAccessibilityCloseIconLabel:y,mobileHideCloseIcon:b,mobileIsFullscreen:x,isOpen:w,mobileIsSlideUp:P,mobileIsFooter:S,onDismiss:k,zIndex:T,subHeading:I,type:A}){const C=(0,l.ZP)(),{isRTL:E}=(0,d.B)(),j=(0,i.useRef)(!1),[D,O]=(0,i.useState)(!1),{setAppFocusState:R}=(0,c.I)(),L=(0,s.ZP)();(0,i.useEffect)((()=>{(0,p.My)(`mweb_unauth.mobile_modal.${A||"unknown_type"}.did_mount.is_open.${String(!!w)}`)}),[w,A]),(0,i.useEffect)((()=>(j.current=(0,r.Z)((()=>{j.current&&O(!0)})),()=>{"undefined"!=typeof window&&Object.prototype.hasOwnProperty.call(window,"cancelAnimationFrame")&&j.current&&(window.cancelAnimationFrame(j.current),j.current=null)})),[]),(0,i.useEffect)((()=>(w?(a.Z.pause(),R(!1)):(a.Z.resume(),R(!0)),()=>{w&&(a.Z.resume(),R(!0))})),[R,w]),(0,i.useEffect)((()=>{const e=w&&!n;return e&&(()=>{if(document.body){const{body:{style:e}}=document;e.overflow="hidden",e.touchAction="none"}})(),()=>{e&&(()=>{if(document.body){const{body:{style:e}}=document;e.overflow="visible",e.touchAction="auto"}})()}}),[w,n]);return w?(0,m.jsx)(o.Z,{children:(0,m.jsx)(h.mh,{children:(0,m.jsxs)(h.xu,{"aria-label":e,display:"inlineBlock",zIndex:T||u.ZM,position:"relative",role:"dialog",children:[(0,m.jsx)(h.iP,{accessibilityLabel:C.bt("移动端注册模态框遮罩层", "Mobile Signup Modal Mask", "mweb.signup_modal.mask", undefined, true),onTap:({event:e})=>{const t=e;(0,p.tj)(`mweb_unauth.mobile_modal.wash_tap.${A||"unknown_type"}.with_dismissal`,{x:t.clientX,y:t.clientY}),g&&k()},tapStyle:"none",children:(0,m.jsx)(h.xu,{height:"100%",left:!0,position:"fixed",top:!0,width:"100%",zIndex:new h.Ry(1),dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(0, 0, 0, .5)",touchAction:"none",transitionProperty:"opacity",transitionTimingFunction:"ease-out"}}})}),(0,m.jsxs)(h.xu,{position:"fixed",color:"default",dangerouslySetInlineStyle:P?(0,u.Vf)({isFullscreen:x,isTablet:"tablet"===L,isShowing:D,isRelatedInterestsModal:"related_interests_modal"===A}):(0,u.JN)({variant:x?"fullscreen":"tablet"===L?"tablet":S?"footer":"signup"===A?"signup":void 0}),children:[(0,m.jsxs)(h.kC,{alignItems:"center",justifyContent:"start",width:"100%",gap:{row:2,column:0},children:[y&&!b?(0,m.jsx)(h.xu,{padding:2,"data-test-id":"mobile-modal-cancel-button",children:(0,m.jsx)(h.hU,{accessibilityLabel:y,iconColor:"darkGray",icon:"cancel",onClick:k,padding:4,size:"sm"})}):null,f?(0,m.jsx)(h.kC.Item,{flex:"grow",children:(0,m.jsx)(h.kC,{direction:"column",alignItems:"center",justifyContent:"center",children:(0,m.jsxs)(h.xu,{dangerouslySetInlineStyle:{__style:y&&!b?{marginRight:E?-10:50,marginLeft:E?50:-10}:{}},children:[x?f:(0,m.jsx)(h.xv,{align:t,weight:"bold",size:"400",children:f}),I?(0,m.jsx)(h.xv,{align:t,children:I}):null]})})}):null]}),(0,m.jsxs)(h.xu,{overflow:"auto",children:[_,v]})]})]})})}):null}},499128:(e,t,n)=>{n.d(t,{UZ:()=>c,Vg:()=>l,ZP:()=>d});var i=n(667294),a=n(829407),r=n(50286),o=n(883119),s=n(785893);const l=200,c=({deviceType:e,hiding:t,visible:n})=>{const i="desktop"===e;let a=0,r=i?"translateY(200px)":"translateY(-200px)",o="opacity 0.1s ease-in-out",s="hidden";return n&&!t&&(a=1,r="translateY(0)",o="all 0.7s cubic-bezier(.19, 1.15, .48, 1)",s="visible"),n&&t&&(r="scale(1.1)",o="opacity transform 0.2s"),{opacity:a,pointerEvents:"auto",position:"relative",marginTop:i?10:0,transform:r,transition:o,visibility:s}};function d({_dangerouslySetThumbnail:e,_dangerouslySetPrimaryAction:t,text:n,primaryAction:d,dismissButton:u,helperLink:p,thumbnail:h,type:m,dataTestId:_,duration:g=2e3,onHide:v,href:f,onClick:y,openNewPage:b,imageUrl:x}){var w;const P=(0,r.ZP)(),[S,k]=(0,i.useState)(!1),[T,I]=(0,i.useState)(!1),A=(0,i.useRef)(),C=()=>{k(!0),A.current=setTimeout(v,l)},E=()=>{A.current=setTimeout(C,g)},j=()=>{A.current&&clearTimeout(A.current)};let D;(0,a.Z)((()=>(setTimeout((()=>I(!0)),100),E(),j))),x&&(D={image:(0,s.jsx)(o.Ee,{alt:"string"==typeof n?n:`${n[0]} ${n[1]}`,fit:"cover",naturalHeight:1,naturalWidth:1,src:x})});const O=(0,s.jsx)(o.FN,{_dangerouslySetThumbnail:e,_dangerouslySetPrimaryAction:t,primaryAction:d,text:n,thumbnail:null!==(w=D)&&void 0!==w?w:h,type:m,dismissButton:u,helperLink:p}),{marginTop:R,opacity:L,pointerEvents:M,position:F,transform:N,transition:z,visibility:U}=c({deviceType:P,hiding:S,visible:T});return(0,s.jsx)(o.xu,{dangerouslySetInlineStyle:{__style:{transform:N,transition:z,visibility:U,pointerEvents:M}},"data-test-id":null!=_?_:"toast",onMouseEnter:j,onMouseLeave:E,opacity:L,position:F,marginTop:R,display:"flex",children:f?(0,s.jsx)(o.iP,{role:"link",href:f,onTap:({event:e})=>null==y?void 0:y(e),target:b?"blank":null,rounding:"pill",children:O}):O})}},934494:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(995228),a=n(785893);function r({useGraphQLAdapter:e,useLegacyAdapter:t}){const n=({children:t,data:n})=>t({enabled:!0,data:e(n)}),r=({children:e,data:n})=>e({enabled:!1,data:t(n)});return function({children:e,input:t}){const o=t.enabled?(0,a.jsx)(n,{data:t.data,children:e}):(0,a.jsx)(r,{data:t.data,children:e});return t.suspense?(0,a.jsx)(i.Z,{fallback:t.suspense.fallback,children:o}):o}}},298361:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(898781),a=n(349700),r=n(202139);function o(){const e=(0,i.ZP)();return function(t,n){const i=new Date(t),o=new Date-i,s=Math.floor(o/r.FS),l=Math.floor(o/r.UK),c=Math.floor(o/r.F4),d=Math.floor(o/r.VL),u=Math.floor(o/r.N1),p=e.nbt(["{{ minutes }} 分钟前"], s, " - ", true),h=e.nbt(["{{ hours }} 小时前"], l, " - ", true),m=e.nbt(["{{ days }} 天前"], c, " - ", true),_=e.nbt(["{{ weeks }} 周前"], d, " - ", true),g=e.nbt(["{{ years }} 年前"], u, " - ", true),v=e.nbt(["{{ minutes }} 分钟"], s, "minutes ago abbreviated", true),f=e.nbt(["{{ hours }} 小时"], l, "hours ago abbreviated", true),y=e.nbt(["{{ days }} 天"], c, "days ago abbreviated", true),b=e.nbt(["{{ weeks }} 周"], d, "weeks ago abbreviated", true),x=e.nbt(["{{ years }} 年"], u, "years ago abbreviated", true);return u>0?(0,a.nk)(n?x:g,{years:u}).join(""):d>0?(0,a.nk)(n?b:_,{weeks:d}).join(""):c>0?(0,a.nk)(n?y:m,{days:c}).join(""):l>0?(0,a.nk)(n?f:h,{hours:l}).join(""):s>0?(0,a.nk)(n?v:p,{minutes:s}).join(""):e.bt("刚刚", "Just now", " - ", undefined, true)}}},892819:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(66699),a=n(898781);const r=(e,t)=>{const n=t||0,i=10**n,a=+(n?e*i:e).toFixed(8),r=Math.floor(a),o=a-r,s=o>.5-1e-8&&o<.5+1e-8?r%2==0?r:r+1:Math.round(a);return n?s/i:s},o=e=>{try{(0).toLocaleString([e])}catch(t){return!1}return!0};function s(){const e=(0,a.ZP)();return(t,n,a)=>{let s=0,l=0;const c=a&&a.style||void 0,d=a&&a.shortform||!1,u=a&&a.uplimit||void 0,p=a&&a.currency||void 0,h=!!u&&n>=u,m=u&&h?u:n;if("currency"===c){const{minimumFractionDigits:e,maximumFractionDigits:n}=((e,t)=>{if(t){const{minimumFractionDigits:n,maximumFractionDigits:i}=new Intl.NumberFormat(e,{style:"currency",currency:t}).resolvedOptions();if(void 0!==n&&void 0!==i)return{minimumFractionDigits:n,maximumFractionDigits:i}}return{minimumFractionDigits:2,maximumFractionDigits:2}})(t,p);s=void 0===a||void 0===a.maximum_fraction_digits?n:a.maximum_fraction_digits,l=void 0===a||void 0===a.minimum_fraction_digits?e:a.minimum_fraction_digits}else s=void 0===a||void 0===a.maximum_fraction_digits?0:a.maximum_fraction_digits,l=void 0===a||void 0===a.minimum_fraction_digits?0:a.minimum_fraction_digits;if(d&&m>999&&(s=void 0===a||void 0===a.shortform_maximum_fraction_digits?2:a.shortform_maximum_fraction_digits,l=0),s<l)return String(m);let _=m,g="";const v=[{"100M":{value:1e8,localeKey:e.bt("亿", "億", "Abbreviation for one hundred millions. This abbreviation is only used in Chinese, Japanese and Korean.", undefined, true)}},{"10k":{value:1e4,localeKey:e.bt("万", "万", "Abbreviation for ten thousand. This abbreviation is only used in Chinese, Japanese and Korean.", undefined, true)}}],f=[{b:{value:1e9,localeKey:e.bt("B", "B", "Abbreviation for one billion.", undefined, true)}},{m:{value:1e6,localeKey:e.bt("百万", "M", "Abbreviation for one million.", undefined, true)}},{k:{value:1e3,localeKey:e.bt("千", "k", "Abbreviation for one thousand.", undefined, true)}}],y=/^zh|ja|ko/.test(t);if(d&&m>999){const e=y?v:f;for(let t=0;t<e.length;t+=1){const n=Object.keys(e[t])[0],i=e[t][n].value;if(m>=i){_=r(m/i*Math.pow(10,s))/Math.pow(10,s),g=e[t][n].localeKey;break}}}if(null==_)return"";const b=_.toLocaleString([o(t)&&"ar-SA"!==t?t:"en-US"],(({maximumFractionDigits:e,minimumFractionDigits:t,style:n,currency:i})=>{const a={maximumFractionDigits:e,minimumFractionDigits:t};return n?{...a,style:n,..."currency"===n?{currency:i,currencyDisplay:"symbol"}:{}}:a})({maximumFractionDigits:s,minimumFractionDigits:l,currency:p,style:c}));return g&&g.length>0?(0,i.Z)(e.bt("{{formattedNumber}} {{numberSuffix}}", "{{formattedNumber}}{{numberSuffix}}", "i18n.usePrettyNumberFormat.prettyNumberFormat", undefined, true),{formattedNumber:b,numberSuffix:g})+(h?"+":""):b+(h?"+":"")}}},12610:(e,t,n)=>{function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z3:()=>p,LU:()=>h,ZP:()=>m});const a=1e6,r=window.location.search.includes("debug_impressions=1")||document.cookie&&document.cookie.indexOf("debug_impressions=1")>-1,o={paused:"Pause",resumed:"Resume",stopped:"Flush",enter:"Enter viewport",exit:"Exit viewport"},s={},l={background:"#FF8A8A",transform:"scale(.98)"},c={init:e=>({transform:`scale(${s[e]?.8:.99})`,transition:"transform .2s ease-in-out",background:"#8E8E8E"}),[o.enter]:{background:"#A0DCC8",transform:"scale(.99)"},[o.exit]:l,[o.stopped]:l,[o.paused]:l,[o.resumed]:{background:"#0FA573",transform:"scale(.99)"}};class d{constructor(e){i(this,"setMutationObserver",(e=>(this.mutationObserver=e,this))),i(this,"startMutationObserver",(e=>{this.mutationObserver&&this.mutationObserver.observe(this.node,e)})),i(this,"stopMutationObserver",(()=>{this.mutationObserver&&this.mutationObserver.disconnect()})),i(this,"handleIntersectionChange",(e=>{const t=e.intersectionRatio>0||e.isIntersecting;if(t&&!this.inViewport){const e=Date.now();this.startTime=e,this._debug(o.enter,{startTime:e,node:this.node}),this.enterCallbacks.forEach((e=>e()))}else!t&&this.inViewport&&(this._debug(o.exit,!0),this.exitCallbacks.forEach((e=>e(this.toJSON()))));this.inViewport=t})),this.enterCallbacks=[],this.exitCallbacks=[],this.inViewport=!1,this.node=e,this.startTime=0,this.debugId=""}onEnterViewport(e){return this.enterCallbacks.push(e),this}onExitViewport(e){return this.exitCallbacks.push(e),this}setDebugId(e){return this.debugId=e,r&&Object.assign(this.node.style,c.init(e)),this}pause(){return this.inViewport&&(this._debug(o.paused,!0),this.exitCallbacks.forEach((e=>e(this.toJSON())))),this}resume(){if(this.inViewport){const e=Date.now();this._debug(o.resumed,{startTime:e}),this.startTime=e}return this}stop(e){return this.inViewport&&(this._debug(o.stopped,!0),this.exitCallbacks.forEach((t=>t(this.toJSON(e))))),this}toJSON(e=""){return{startTime:this.startTime*a,endTime:Date.now()*a,forcedExit:e}}toDebugJSON(){return{pinID:this.debugId,startTime:this.startTime,endTime:Date.now(),duration:(Date.now()-this.startTime)/1e3+" seconds"}}_debug(e,t){if(r)switch(window.console.log(`📌 ${e} -- ${this.debugId}`),!0===t&&window.console.log(this.toDebugJSON()),"object"==typeof t&&window.console.log(t),c[e]&&Object.assign(this.node.style,c[e]),e){case o.flushed:case o.paused:case o.exit:s[this.debugId]=!0}}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=!0,h=!1;class m{constructor(){u(this,"_delegateChange",(e=>{e.forEach((e=>{const t=this.activeImpressions.get(e.target);t&&t.handleIntersectionChange(e)}))})),u(this,"_handleMutations",((e,t)=>{const n=this.mutationObservers.get(t);n&&n.offsetHeight<1&&n&&this.stop(n,"removed")})),this.activeImpressions=new Map,this.mutationObservers=new Map,this.bottomHeight=0,this.bottomObstructions=new Set,this.pausePriority=h,this.observer=new window.IntersectionObserver(this._delegateChange),this.paused=!1,this.topHeight=0,this.topObstructions=new Set,this.inExperiment=!1}setExperimentStatus(e){this.inExperiment!==e&&(this.inExperiment=e)}stop(e,t=""){const n=this.activeImpressions.get(e);n&&(n.stop(t),this.mutationObservers.delete(n.mutationObserver),n.stopMutationObserver(),this.activeImpressions.delete(e),this.observer.unobserve(e))}start(e){let t=this.activeImpressions.get(e);if(!t){t=new d(e),this.activeImpressions.set(e,t),this.observer.observe(e);const n=(e,t)=>this._handleMutations(e,t);t.setMutationObserver(new window.MutationObserver(n)),this.mutationObservers.set(t.mutationObserver,e),t.startMutationObserver({subtree:!0,attributes:!0,attributeFilter:["style"]})}return t}pause(e=p){this.paused||(Array.from(this.activeImpressions.values()).forEach((e=>e.pause())),this.paused=!0,this.pausePriority===h&&(this.pausePriority=e))}resume(e=p){e===h&&this.pausePriority===p||this.paused&&(Array.from(this.activeImpressions.values()).forEach((e=>e.resume())),this.paused=!1,this.pausePriority=h)}addObstruction(e,t){"top"===e?this.topObstructions.add(t):"bottom"===e&&this.bottomObstructions.add(t),this._calculateRootMargins()}removeObstruction(e,t){"top"===e?this.topObstructions.delete(t):"bottom"===e&&this.bottomObstructions.delete(t),this._calculateRootMargins()}updateObstructions(){this._calculateRootMargins()}_calculateRootMargins(){const e=Array.from(this.topObstructions).reduce(((e,t)=>{const{bottom:n}=t.getBoundingClientRect();return n>e?n:e}),0),t=window.innerHeight-Array.from(this.bottomObstructions).reduce(((e,t)=>{const{top:n}=t.getBoundingClientRect();return n<e?n:e}),window.innerHeight);if(e!==this.topHeight||t!==this.bottomHeight){const n={rootMargin:`${-e}px 0px ${-t}px`};this.observer.disconnect(),this.observer=new window.IntersectionObserver(this._delegateChange,n),Array.from(this.activeImpressions.values()).forEach((e=>this.observer.observe(e.node))),this.topHeight=e,this.bottomHeight=t}}}},124580:(e,t,n)=>{n.d(t,{Z:()=>i});const i=new(n(12610).ZP)},926275:(e,t,n)=>{n.d(t,{Z:()=>i});function i(e){if(!e)return!1;const t=new Date(e);return t.setDate(t.getDate()+28),(new Date).getTime()<t.getTime()}},166300:(e,t,n)=>{n.d(t,{Z:()=>l});var i=n(50286),a=n(883119),r=n(444445),o=n(134879),s=n(785893);const l=({children:e,roundedForLargeDevice:t})=>{const n="phone"!==(0,i.ZP)()&&t;return(0,o.V)()?(0,s.jsx)(a.xu,{marginStart:-r.D6,marginEnd:-r.D6,rounding:n?6:void 0,overflow:n?"hidden":void 0,children:(0,s.jsx)(o.C,{value:!1,children:e})}):e}},134879:(e,t,n)=>{n.d(t,{C:()=>r,V:()=>o});var i=n(667294);const a=(0,i.createContext)(!1),r=a.Provider,o=()=>(0,i.useContext)(a)},48714:(e,t,n)=>{n.d(t,{nS:()=>x,iw:()=>P,gV:()=>y,G3:()=>S,lI:()=>k,Gj:()=>w,Jd:()=>f,$3:()=>b});var i=n(231486),a=n(56641),r=n(768559),o=n(250059);const s=e=>"string"!=typeof e&&e?e.state:null;var l=n(643913),c=n(547239),d=n(508847),u=n(102500),p=n(43760),h=n(579164),m=n(333155),_=n(397066),g=n(623568),v=n(226198);const f=()=>{window&&window.focus(),document.activeElement&&document.activeElement.blur()},y=({isOffsiteUrl:e,event:t})=>!e&&(t.metaKey||t.ctrlKey),b=({location:e,pin:{id:t,is_downstream_promotion:n,promoter:i},surface:a})=>!(0,g.jL)(n,!!i)&&(({location:e,pinId:t,surface:n})=>{const i=Boolean(n),a=m.ZF.includes(n),r=e.pathname.includes(t);return i&&!a||r})({location:e,pinId:t,surface:a}),x=e=>{const t=Math.round(1e3*Math.random())+"",n=Math.round(1e3*Math.random())+"";i.t8((0,v.GS)(t),n);const a=`${t}-${n}`,{queryParams:r,url:o}=e;let s={token:a,url:o};if(!r){const{pinId:t,csrId:n,clientTrackingParams:i,auxData:a}=e;s={...s,pin:null!=t?t:void 0,csr:n&&!t?n:void 0,client_tracking_params:i,aux_data:a?JSON.stringify(a):void 0}}r&&(s={...s,...r});return`/offsite/?${(0,l.Z)(s)}`},w=e=>{(0,a.Z)(x(e),!0)},P=async({isMounted:e,pin:t,location:n,spamCheckCallback:i,href:a})=>{var o,s;const l=await(0,u.Z)({check_only:!0,client_tracking_params:(0,r.Z)({boardUrl:null==t||null===(o=t.board)||void 0===o?void 0:o.url,callToCreateSourcePinId:null==t?void 0:t.call_to_create_source_pin_id,location:n,pinId:null==t?void 0:t.id,pinnerUserName:null==t||null===(s=t.pinner)||void 0===s?void 0:s.username,storyPinDataId:null==t?void 0:t.story_pin_data_id,trackingParams:null==t?void 0:t.tracking_params,trackingParamsMap:null==t?void 0:t.tracking_params_map}),pin_id:null==t?void 0:t.id,url:a}).callGet({showError:!1});if(!l.resource_response.error&&e){const e=l.resource_response.data||{},{message:t,redirect_status:n,url:a}=e;i({blocked:["blocked","suspicious","porn"].includes(n),message:t,redirectStatus:n,sanitized_url:a})}},S=({event:e,onHistoryChange:t,href:n,history:i,target:r})=>{const l=(0,o.Z)(n),u=s(n),p=(0,c.Z)(l);p===h.Z.TRUSTED_DIFFERENT_ORIGIN||"blank"===r?(0,a.Z)(l,"blank"===r):i&&p===h.Z.SAME_ORIGIN&&(i.push((0,d.Z)({url:l}),null!=u?u:{}),t&&t({event:e}))},k=({href:e,pinId:t,pin:n,location:i,auxData:a,spamCheck:o,queryParams:s},l,c)=>{"undefined"!=typeof window&&window.Windows?(0,p.Z)({url:e,pinId:t,pin:n,location:i,auxData:a}):n?(({spamCheck:e,auxData:t,location:n,pin:i,pinId:a,href:o},s,l)=>{if(null!=e&&e.blocked)null==l||l(e);else{var c,d;if((0,_.b)({href:o,pinId:a,pin:i,location:n,auxData:t},s))return;w({url:o,pinId:a,csrId:null,clientTrackingParams:(0,r.Z)({boardUrl:null===(c=i.board)||void 0===c?void 0:c.url,callToCreateSourcePinId:i.call_to_create_source_pin_id,location:n,pinId:i.id,pinnerUserName:null===(d=i.pinner)||void 0===d?void 0:d.username,storyPinDataId:i.story_pin_data_id,trackingParams:i.tracking_params,trackingParamsMap:i.tracking_params_map}),auxData:t})}})({spamCheck:o,auxData:a,location:i,pin:n,pinId:t,href:e},l,c):w({url:e,pinId:t,queryParams:s})}},102500:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(214494);function a(e){return i.Z.create("ApiResource",{url:"/v3/offsite/",data:e})}},287072:(e,t,n)=>{n.d(t,{Z:()=>d,p:()=>u});var i=n(667294),a=n(250059),r=n(149230),o=n(407043),s=n(108234),l=n(48714),c=n(276775);function d(e){var t;const{externalData:n,href:d,onHistoryChange:u,target:p}=e,{logContextEvent:h}=(0,o.v)(),[m,_]=(0,i.useState)(null),[g,v]=(0,i.useState)(!1),f=(0,c.useHistory)(),y=(0,c.useLocation)(),b=(0,r.Z)({url:(0,a.Z)(d)}),{showWarning:x}=null!==(t=(0,s.s)())&&void 0!==t?t:{};return(0,i.useEffect)((()=>(v(!0),()=>{v(!1)})),[]),(0,i.useEffect)((()=>{b&&null!=n&&n.pin&&null===m&&g&&(0,l.$3)({location:y,pin:n.pin,surface:n.surface})&&(0,l.iw)({isMounted:g,pin:n.pin,location:y,spamCheckCallback:e=>_(e),href:(0,a.Z)(d)})}),[null==n?void 0:n.pin,null==n?void 0:n.surface,d,b,g,y,m]),({event:e})=>{var t;(0,l.gV)({isOffsiteUrl:b,event:e})||(e.preventDefault(),d&&(b||null!=n&&n.dangerouslyForceOffsiteUrl?(0,l.lI)({auxData:null==n?void 0:n.auxData,href:(0,a.Z)(d),pinId:null==n||null===(t=n.pin)||void 0===t?void 0:t.id,pin:null==n?void 0:n.pin,queryParams:null==n?void 0:n.queryParams,location:y,spamCheck:m},h,x):(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,n)=>{n.d(t,{Z:()=>a});var i=n(172071);function a(e,t){return new Promise(((n,a)=>{if(document.querySelector(`script[src="${e}"]`)){let e=0;if("FACEBOOK"===t)if(window.FB)n();else{const t=setInterval((()=>{window.FB||20===e?(clearInterval(t),n()):(e+=1,i.Z.increment(`mweb.loadScript.facebook.tries_${e}`,.01))}),100)}else if("GSI"===t)if(window.google)n();else{const t=setInterval((()=>{window.google||20===e?(clearInterval(t),n()):(e+=1,i.Z.increment(`mweb.loadScript.gsi.tries_${e}`,.01))}),100)}else n()}else{const t=document.createElement("script");t.src=e,t.async=!0,t.addEventListener("load",(()=>n())),t.addEventListener("error",a),document.getElementsByTagName("head")[0].appendChild(t)}}))}},567450:(e,t,n)=>{function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>o});const a=new class{constructor(){i(this,"onResumeListeners",[]),i(this,"onPauseListeners",[]),i(this,"inExp",!1),i(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}},r=e=>{if(e.isHidden){const{reason:t}=e;a.windowInFocus=!1,a.onPauseListeners.forEach((e=>e(t)))}else a.windowInFocus=!0,a.onResumeListeners.forEach((e=>e()))};setTimeout((()=>{window.addEventListener("beforeunload",(()=>r({isHidden:!0,reason:"beforeunload"}))),window.addEventListener("focus",(()=>r({isHidden:!1}))),window.addEventListener("blur",(()=>r({isHidden:!0,reason:"blur"}))),window.addEventListener("pageshow",(()=>r({isHidden:!1}))),window.addEventListener("pagehide",(()=>r({isHidden:!0,reason:"pagehide"}))),void 0!==document.hidden?document.addEventListener("visibilitychange",(()=>r(document.hidden?{isHidden:!0,reason:"visibilitychange"}:{isHidden:!1})),!1):void 0!==document.webkitHidden&&document.addEventListener("webkitvisibilitychange",(()=>r(document.webkitHidden?{isHidden:!0,reason:"visibilitychange"}:{isHidden:!1})),!1)}),0);const o=a},248975:(e,t,n)=>{function i({embedSrc:e,embedType:t,images:n,preferredResolution:i}){if(!e&&!t&&!n)return"";if("gif"===t)return e||"";const a=n;if(!a)return"";if(i){const e="474x"===i&&a["474x"]||"236x"===i&&a["236x"]||a["736x"];if(e&&e.url)return e.url}const r=Object.keys(a).map((e=>{try{const t=e.split("x")[0];return Number.isNaN(Number(t))?(a[t]=a[e],t):e}catch(t){return""}}));r.sort();const o=r.pop();return a[o]&&a[o].url||""}n.d(t,{Z:()=>i})},605028:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(687551),a=n(623568);function r(e){const{access:t,attribution:n,embed:r,is_eligible_for_web_closeup:o,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,i.Z)(e)&&(p.isCarousel=!0),o&&(p.isOneTap=!0),(0,a.iR)(u)&&(p.isVideo=!0);const h=r||n&&n.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}},958007:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(992750);const a=e=>(e||"").trim().replace(/\s+/g," "),r=({storyPinDataId:e,pinDescription:t,richMetadataDescription:n,richSummaryDisplayName:r,closeupDescription:o,closeupUnifiedDescription:s})=>!!e?a(t):a((0,i.eK)({richMetadataDescription:n,richSummaryDisplayName:r,closeupUnifiedDescription:s}).description)||a(s||"")||a(o)||a(t)||a(n)||""},623568:(e,t,n)=>{n.d(t,{Js:()=>s,NK:()=>y,Nc:()=>b,VX:()=>l,ZE:()=>g,Zt:()=>v,_J:()=>u,_S:()=>x,cL:()=>m,dZ:()=>S,hb:()=>f,hy:()=>d,iR:()=>o,jL:()=>c,o:()=>w,oN:()=>a,pU:()=>P,rM:()=>_,sV:()=>p,sY:()=>h});var i=n(605028);const a=5e3,r=["Uploaded by user"],o=e=>!!e&&!!e.video_list,s=(e,t)=>{let n=e&&e.url?e.url.split("/")[1]:"";return t&&t.full_name&&(n=t.full_name),n},l=(e,t)=>t&&t.products&&t.products.length>0||(null==e?void 0:e.products)&&e.products.length>0||!1,c=(e,t)=>!!t&&!e,d=e=>!!e,u=e=>!!e.video_status&&5!==e.video_status,p=e=>["email","messages","deep_linking"].includes(e),h=e=>!!e&&"gif"===e,m=({embedSrc:e,embedSubtype:t,embedType:n})=>!!e&&!h(n)&&!(e=>"pinstory"===e)(t),_=({link:e,mobileLink:t,trackedLink:n})=>!t&&!n&&!e,g=e=>/pin.it/gim.test(e||""),v=({link:e,mobileLink:t,origImageUrl:n,trackedLink:i})=>t||i||e||n||"",f=({isStoryPin:e,isVideoPin:t})=>e?"storyPin":t?"video":"image",y=(e,t)=>({deeplinkUri:{android:`pin/${e}/repin`,iOS:`repin/${e}`},mwebUri:{pathname:`/pin/${e}/repin/`,state:{trackingParams:t.state?t.state.trackingParams:""}}});function b({pin:e,isSCEEnabled:t}){var n;const{aggregated_pin_data:a}=e,{isStoryPin:r,isVideo:o}=(0,i.Z)(e);return!(!t&&(r||o))&&0!==Object.keys((null==a||null===(n=a.creator_analytics)||void 0===n?void 0:n["30d_realtime"])||{}).length}function x(e){for(const t of r)if(e===t)return!1;return!0}function w(e){return 0!==Object.keys((null==e?void 0:e["30d_realtime"])||{}).length}function P(e){return 0!==Object.keys((null==e?void 0:e.all_time_realtime)||{}).length}function S(e){var t;return!(null==e||null===(t=e["30d_realtime"])||void 0===t||!t.is_realtime)}},992750:(e,t,n)=>{n.d(t,{hP:()=>u,fs:()=>l,eK:()=>c,Ly:()=>d,BY:()=>p,bN:()=>h,RC:()=>o,EU:()=>s});const i=/\s\s+/g,a=e=>e.replace(i," ");var r=n(883561);const o=({storyPinDataMetadataPinTitle:e,pinTitle:t})=>e||t,s=(e,t)=>e?e.trim().length>t?(0,r.ZP)(e.trim(),t).trim():e.trim():"",l=({pinTitle:e,gridTitle:t,richSummaryDisplayName:n,richMetadataTitle:i,storyPinDataId:a,storyPinDataMetadataPinTitle:r})=>{const o=r||e,l=s(t,200);return l||(n||(i||(a&&o?o:null)))},c=e=>{const{richSummaryDisplayName:t}=e,n=e.pinJoinVisualAnnotation||[],i=e.pinJoinAnnotationsWithLinks||{},o=e.richMetadataDescription||"",s=e.closeupUnifiedDescription||"",l=n.map((e=>(i||{})[e]||{name:e,url:""}));let c="";const d=(t||"").toLocaleLowerCase().trim(),u=o.toLocaleLowerCase().trim(),p=s.toLocaleLowerCase().trim();return s&&s.length>3&&p!==d?c=s:o&&o.length>3&&u!==d&&(c=o),c&&(c=a((0,r.ZP)(c,496)).trim()),{description:c,annotationsWithLinks:l}},d=({pinTitle:e,gridTitle:t,richSummaryDisplayName:n,richMetadataTitle:i,storyPinDataId:a,storyPinDataMetadataPinTitle:r,pinJoinVisualAnnotation:o,pinJoinAnnotationsWithLinks:s})=>{const{annotationsWithLinks:d}=c({pinJoinVisualAnnotation:o,pinJoinAnnotationsWithLinks:s}),u=(d||[]).map((e=>e.name)),p=e=>(e||[])[0]||null;return l({pinTitle:e,gridTitle:t,richSummaryDisplayName:n,richMetadataTitle:i,storyPinDataId:a,storyPinDataMetadataPinTitle:r})||p(o)||p(u)||e},u=(e,t,n,i)=>{var a;let r=(a=e,"string"==typeof a?a:"").trim();return n?(i&&i.trim().length&&(r=i),n.length>0&&(r&&(r+=" "),r+=n.join(", ")),r):i&&i.trim().length?i:r},p=e=>`/pin/${e}/`,h=({pinId:e,seoUrl:t})=>t&&"string"==typeof t?t:p(e)},467570:(e,t,n)=>{n.d(t,{$:()=>c,GH:()=>l,JF:()=>g,Jb:()=>h,MI:()=>_,sl:()=>u,we:()=>p});var i=n(935879),a=n(713930),r=n(816068),o=n(214494),s=n(867820);const l="274266067164",c=["public_profile","email","user_birthday","user_friends"],d=["picture.type(large)","id","first_name","last_name","email","gender","birthday"],u=e=>{e&&(0,s.dy)({event:"load_script_success",provider:"facebook"}),"undefined"!=typeof window&&window.FB?(e&&(0,s.dy)({event:"initialize_library",provider:"facebook"}),window.FB.init({appId:l,status:!0,xfbml:!0,version:"v2.7"})):e&&(0,s.dy)({event:"global_object_not_found",provider:"facebook"})},p=(e,t)=>{t&&(0,s.dy)({event:"load_script_start",provider:"facebook"});return(0,a.Z)((0,i.Z)(e),"FACEBOOK").then((()=>u(t)))},h=()=>new Promise((e=>{"undefined"!=typeof window&&window.FB&&window.FB.getLoginStatus(e)})),m=({userID:e,accessToken:t,data:{birthday:n,email:i,first_name:a,gender:o,last_name:s,picture:l}})=>({type:"facebook",facebook_id:e,facebook_token:t,birthday:n?(0,r.Z)(n):void 0,email:i,first_name:a,gender:o,image_url:l&&!l.data.is_silhouette?l.data.url:void 0,last_name:s});async function _(e){var t;const n=(null===(t=(await o.Z.create("ApiResource",{url:"/v3/facebook/profile_data/",data:{access_token:e,pii_safe_birthday:!0,fields:d.join(",")}}).callCreate()).resource_response)||void 0===t?void 0:t.data)||{};return{access_token:e,birthday:n.birthday,email:n.email,first_name:n.first_name,gender:n.gender,id:n.id,last_name:n.last_name,picture:n.picture}}const g=()=>new Promise((e=>{window.FB.login(e,{scope:c.join(",")})})).then((e=>((e,t)=>new Promise(((n,i)=>{if("connected"!==e.status)return void i({status:e.status||"unknown"});const{userID:a,accessToken:r}=e.authResponse;_(r).then((e=>{n({creds:{facebook_id:a,facebook_token:r,facebook_autologin:(null==t?void 0:t.autologin)||!1},signupOptions:m({userID:a,accessToken:r,data:e})})}),i)})))(e)))},935879:(e,t,n)=>{n.d(t,{Z:()=>i});const i=e=>`//connect.facebook.net/${(e=>{const t=e.replace(/-/g,"_");if(t.startsWith("es"))return"es_LA";if(t.startsWith("ar"))return"ar_AR";switch(t){case"de":return"de_DE";case"fr":return"fr_FR";case"it":return"it_IT";case"ja":return"ja_JP";case"nl":return"nl_NL";case"tr":return"tr_TR";case"en_AU":return"en_US";default:return t}})(e)}/sdk.js`},760372:(e,t,n)=>{n.d(t,{X:()=>i});const i="favorited"},383690:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(667294),a=n(773285);const r=()=>{const e=(0,a.F)();return(0,i.useCallback)((()=>{e.flush()}),[e])}},813401:(e,t,n)=>{n.d(t,{kf:()=>g,l5:()=>m,of:()=>p,xC:()=>_,yz:()=>h});var i=n(667294),a=n(172071),r=n(829407),o=n(807609),s=n(30287),l=n(425288),c=n(785893);const{Provider:d,useMaybeHook:u}=(0,l.Z)("PwaContext"),p=({children:e,initialContext:t})=>{const[n,o]=(0,i.useState)(null),l=t||{pwaType:"unknown",twaType:null},u=l.pwaType;(0,r.Z)((()=>{const e=(0,s.FB)(window)||"unknown";o(e),u!==e&&a.Z.increment("pwa.type_mismatch",1,{serverPwaType:u,clientPwaType:e,conflict:"unknown"!==u&&"unknown"!==e})}));const p="unknown"===u&&n?n:u,h=l.twaType,m=(0,i.useMemo)((()=>({pwaType:p,twaType:h})),[p,h]);return(0,c.jsx)(d,{value:m,children:e})},h=()=>{var e;const t=u();return null!==(e=null==t?void 0:t.pwaType)&&void 0!==e?e:"unknown"},m=()=>{var e;const t=u();return null!==(e=null==t?void 0:t.twaType)&&void 0!==e?e:null},_=()=>"android-twa"===h(),g=()=>{const e=h(),t=(0,o.Z)();return"unknown"===e&&t?null:"windows"===e}},311560:(e,t,n)=>{n.d(t,{Z:()=>i});const i=e=>{switch(e){case"BR":case"MX":case"AR":case"CL":case"CO":return"LatAm";case"US":return"US";case"CA":return"CA";case"GB":return"GB";case"FR":return"FR";case"DE":return"DE";default:return"OTHER"}}},561195:(e,t,n)=>{n.d(t,{A:()=>o,Z:()=>s});var i=n(667294),a=n(883119),r=n(785893);const o=({fill:e,width:t,color:n})=>{const o="half"===e?(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(a.xu,{position:"absolute",children:(0,r.jsx)(a.JO,{accessibilityLabel:"",color:"default",icon:"star-half",size:12})}),(0,r.jsx)(a.JO,{accessibilityLabel:"",color:"subtle",icon:"star",size:12})]}):(0,r.jsx)(a.JO,{accessibilityLabel:"",color:"full"===e?"default":"subtle",icon:"star",size:12});return(0,r.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{marginRight:"3px"}},display:"inlineBlock","data-test-id":`rating-star-${e}`,children:o})};function s({max_rating:e,rating:t,width:n,color:a}){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,r.jsx)(o,{color:a,fill:"full",width:n},e)))),d>=.75?s.push((0,r.jsx)(o,{color:a,fill:"full",width:n},s.length)):d>=.25&&s.push((0,r.jsx)(o,{color:a,fill:"half",width:n},s.length)),[...Array(5-s.length).keys()].forEach((()=>s.push((0,r.jsx)(o,{color:a,fill:"empty",width:n},s.length)))),(0,r.jsx)(i.Fragment,{children:s})}},923297:(e,t,n)=>{function i({m:e=0,h:t=0}){let n;return n=t<=0?t:e>45?t+1:e>15?t+.5:t,{m:e,h:t,rm:t>0?0:e,rh:n}}function a(e){const t=Math.floor(e/3600);return i({m:Math.floor(e%3600/60),h:t})}n.d(t,{X:()=>i,u:()=>a})},505920:(e,t,n)=>{n.d(t,{UZ:()=>u,Z8:()=>p,my:()=>h});var i=n(667294),a=(n(702664),n(214494)),r=n(425288),o=n(785893);function s(e,t,n){var i;const a=[...null!==(i=t[e][n.payload.name])&&void 0!==i?i:[],n.payload.handler],r={...t};return r[e]={...t[e],[n.payload.name]:a},r}function l(e,t,n){if(!t[e][n.payload.name])return t;const i=t[e][n.payload.name].filter((e=>e!==n.payload.handler)),a={...t};return a[e]={...t[e],[n.payload.name]:i},a}const{Provider:c,useHook:d}=(0,r.Z)("ResourceContext");function u({children:e}){const[{listeners:t,moreListeners:n},r]=(0,i.useReducer)(((e,t)=>{switch(t.type){case"addListener":return s("listeners",e,t);case"addMoreListener":return s("moreListeners",e,t);case"removeListener":return l("listeners",e,t);case"removeMoreListener":return l("moreListeners",e,t);default:return e}}),{listeners:{},moreListeners:{}});a.Z.fetchCompleteCallback=({resource:e,options:n,response:i,normalizedResponse:a,refresh:r,resourceSchema:o})=>{t[e]&&t[e].forEach((t=>t({isRefresh:r,normalizedResponse:a,options:n,schema:o,resource:e,response:i})))},a.Z.fetchMoreCompleteCallback=({resource:e,options:t,response:i,normalizedResponse:a,refresh:r,resourceSchema:o})=>{n[e]&&n[e].forEach((n=>n({isRefresh:r,normalizedResponse:a,options:t,schema:o,resource:e,response:i})))};const d=(0,i.useMemo)((()=>({listenerDispatch:r})),[]);return(0,o.jsx)(c,{value:d,children:e})}function p(e,t){const{listenerDispatch:n}=d();(0,i.useEffect)((()=>(n({type:"addListener",payload:{name:e,handler:t}}),()=>{n({type:"removeListener",payload:{name:e,handler:t}})})))}function h(e,t){const{listenerDispatch:n}=d();(0,i.useEffect)((()=>(n({type:"addMoreListener",payload:{name:e,handler:t}}),()=>{n({type:"removeMoreListener",payload:{name:e,handler:t}})})))}},134185:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(785893);const a=e=>{const t=e.itemType?{itemScope:!0,itemType:e.itemType}:{};return(0,i.jsx)("div",{"data-test-id":"rich-pin-information",...t,children:e.children||null})}},578661:(e,t,n)=>{n.d(t,{G:()=>i});const i="https://schema.org/Recipe"},947599:(e,t,n)=>{n.d(t,{Z:()=>i});const i=n(995228).Z},740990:(e,t,n)=>{n.d(t,{Z:()=>i});const i=(0,n(667294).createContext)("undefined"!=typeof window?window:null)},862628:(e,t,n)=>{function i(e){return(e||"").trim().replace(/\s+/g," ")}n.d(t,{Z:()=>i})},706922:(e,t,n)=>{function i(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function a(e,t){if(i(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(let r=0;r<n.length;r+=1)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!i(e[n[r]],t[n[r]]))return!1;return!0}n.d(t,{Z:()=>a})},458882:(e,t,n)=>{n.d(t,{l:()=>r,r:()=>o});var i=n(667294);const a=(0,i.createContext)(null),r=()=>(0,i.useContext)(a),o=a.Provider},667679:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(458882),a=n(780679);const r=()=>{const e=(0,a.g)(),t=(0,i.l)();return n=>{const{mobileOptions:i,desktopOptions:a,reason:r,attributionLabel:o}=n;e?e.showDesktopSignupModal({signupFlow:"login"===(null==a?void 0:a.modalType)?{type:"login"}:{type:"signup"},reason:r,attributionLabel:o,...null==a?void 0:a.modalOptions}):t&&t.showMobileSignupModal({reason:r,attributionLabel:o,headingType:null==i?void 0:i.headingType})}}},90771:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(785893);function a({size:e=56}){return(0,i.jsxs)("svg",{fill:"none",height:e,width:e,viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,i.jsx)("rect",{fill:"#1a73e8",height:"56",rx:"28",width:"56"}),(0,i.jsx)("path",{d:"m37.086 39.782h-18.454c-2.624 0-4.914-1.983-4.914-4.607v-.028 1.536c0 2.624 2.29 4.913 4.914 4.913h18.454c2.653 0 4.914-2.317 4.914-4.913v-1.536c0 2.624-2.29 4.635-4.914 4.635zm-23.395-13.234v-2.094l-3.434-5.667c-.196-.307-.28-.586-.252-.866v2.401c0 .224.084.447.223.698z",fill:"#185abc"}),(0,i.jsx)("path",{d:"m37.086 17h-25.853c-1.033 0-1.619.893-.92 1.843l3.377 5.863v10.469c0 2.68 1.955 4.914 4.607 4.914h18.761c2.653 0 4.914-2.262 4.914-4.914v-13.233c.028-2.68-2.234-4.942-4.886-4.942z",fill:"#fff"}),(0,i.jsx)("path",{d:"m36.78 24.39h-17.842c-.782 0-1.535-.474-1.535-1.228 0-.753.753-1.228 1.535-1.228h17.84c.782 0 1.536.475 1.536 1.228 0 .754-.754 1.229-1.536 1.229zm0 4.915h-17.842c-.782 0-1.535-.475-1.535-1.229s.753-1.228 1.535-1.228h17.84c.782 0 1.536.474 1.536 1.228s-.754 1.229-1.536 1.229zm-4.942 4.941h-12.928c-.782 0-1.535-.474-1.535-1.228s.753-1.229 1.535-1.229h12.927c.781 0 1.535.475 1.535 1.229s-.754 1.228-1.535 1.228z",fill:"#8ab4f8"})]})}},31149:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(785893);function a({size:e=56}){return(0,i.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,i.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#EFEFEF"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.1106 19.6408C18.2759 19.551 18.4653 19.5 18.6667 19.5H37.3333C37.5535 19.5 37.7594 19.561 37.9351 19.667C37.9351 19.667 37.9352 19.667 37.9352 19.667L28.7395 27.2024C28.3095 27.5547 27.6905 27.5547 27.2605 27.2024L18.0648 19.667C18.0799 19.6579 18.0951 19.6492 18.1106 19.6408ZM14 20.8611V20.6667C14 18.0893 16.0893 16 18.6667 16H37.3333C39.9107 16 42 18.0893 42 20.6667V20.8611V34.6667C42 37.244 39.9107 39.3333 37.3333 39.3333H18.6667C16.0893 39.3333 14 37.244 14 34.6667V20.8611ZM38.5 23.7292V34.6667C38.5 35.311 37.9777 35.8333 37.3333 35.8333H18.6667C18.0223 35.8333 17.5 35.311 17.5 34.6667V23.7292L25.0422 29.9095C26.7622 31.319 29.2378 31.319 30.9578 29.9096L38.5 23.7292Z",fill:"black"})]})}},659522:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(785893);function a({size:e=56}){return(0,i.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,i.jsx)("path",{d:"M56 28C56 12.536 43.464 0 28 0S0 12.536 0 28c0 13.975 10.24 25.56 23.625 27.66V36.094h-7.11V28h7.11v-6.169c0-7.017 4.18-10.893 10.576-10.893 3.064 0 6.268.546 6.268.546v6.891h-3.53c-3.479 0-4.564 2.159-4.564 4.373V28h7.766l-1.242 8.094h-6.524V55.66C45.761 53.56 56 41.975 56 28Z",fill:"#1877F2"}),(0,i.jsx)("path",{d:"M38.9 36.094 40.14 28h-7.765v-5.252c0-2.215 1.085-4.373 4.563-4.373h3.53v-6.89s-3.203-.547-6.267-.547c-6.396 0-10.576 3.876-10.576 10.893V28h-7.11v8.094h7.11V55.66a28.206 28.206 0 0 0 8.75 0V36.094h6.524Z",fill:"#fff"})]})}},214680:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(785893);function a({size:e=56}){return(0,i.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,i.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"url(#paint0_linear_4144_9512)"}),(0,i.jsx)("path",{d:"M27.7512 13C23.3085 13 19.0478 14.47 15.9063 17.0867C12.7649 19.7033 11 23.2522 11 26.9526C11.004 29.3596 11.7556 31.7247 13.1816 33.8182C14.6076 35.9117 16.6595 37.6624 19.138 38.9C18.4779 40.3778 17.4878 41.7636 16.2089 43C18.6891 42.5646 21.0173 41.65 23.0123 40.3273C24.5505 40.708 26.1465 40.9027 27.7512 40.9053C32.1939 40.9052 36.4546 39.4352 39.5961 36.8186C42.7375 34.202 44.5024 30.6531 44.5024 26.9526C44.5024 23.2522 42.7375 19.7033 39.5961 17.0867C36.4546 14.47 32.1939 13 27.7512 13Z",fill:"white"}),(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"paint0_linear_4144_9512",x1:"28.4444",y1:"52.2827",x2:"28.4444",y2:"6.94986",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#0CBD2A"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#5BF675"})]})})]})}},331744:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(785893);function a({size:e=56}){return(0,i.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,i.jsx)("path",{d:"M28 56c15.464 0 28-12.536 28-28S43.464 0 28 0 0 12.536 0 28s12.536 28 28 28Z",fill:"#00B900"}),(0,i.jsx)("path",{d:"M46.625 26.32c0-8.335-8.354-15.115-18.625-15.115-10.267 0-18.625 6.78-18.625 15.115 0 7.471 6.627 13.73 15.578 14.91.606.13 1.432.401 1.642.92.187.47.122 1.208.06 1.684l-.265 1.596c-.08.471-.373 1.843 1.615 1.003 1.988-.835 10.724-6.314 14.634-10.812 2.693-2.964 3.986-5.969 3.986-9.3Z",fill:"#fff"}),(0,i.jsx)("path",{d:"M24.215 22.293H22.91c-.201 0-.364.163-.364.364v8.115c0 .2.163.364.364.364h1.306c.2 0 .364-.163.364-.364v-8.12a.363.363 0 0 0-.364-.36ZM33.208 22.293H31.9c-.2 0-.364.163-.364.364v4.82l-3.72-5.02c-.009-.015-.018-.024-.027-.038l-.005-.005-.023-.023c-.005 0-.005-.005-.005-.005-.005-.005-.014-.01-.019-.014l-.009-.01c-.005-.004-.014-.008-.019-.013-.004-.005-.009-.005-.009-.005a.036.036 0 0 0-.019-.01c-.004 0-.009-.004-.009-.004-.005-.004-.014-.004-.019-.01-.004 0-.009-.004-.014-.004l-.023-.01c-.005 0-.01 0-.014-.004-.01 0-.014-.005-.019-.005h-.014c-.004 0-.014 0-.018-.004H26.212c-.2 0-.364.163-.364.364v8.115c0 .2.164.364.364.364h1.307c.2 0 .364-.163.364-.364v-4.82l3.724 5.03a.283.283 0 0 0 .093.089s.005 0 .005.005c.01.004.014.009.023.014.005 0 .005.004.01.004.004.005.01.005.018.01.005.004.01.004.02.009.004 0 .008.005.008.005.01.004.02.004.024.009h.004c.028.01.061.014.094.014h1.306c.201 0 .364-.163.364-.364v-8.125a.37.37 0 0 0-.368-.36ZM21.065 29.097h-3.551v-6.445c0-.2-.164-.364-.364-.364h-1.307c-.2 0-.364.163-.364.364v8.115c0 .098.037.187.103.252l.004.005.005.005c.065.06.154.102.252.102h5.217c.201 0 .364-.163.364-.364v-1.306a.358.358 0 0 0-.359-.364ZM40.422 24.323c.201 0 .364-.163.364-.364v-1.307c0-.2-.163-.364-.364-.364h-5.217a.353.353 0 0 0-.252.103l-.005.005c0 .004-.004.004-.004.004a.373.373 0 0 0-.103.252v8.115c0 .098.037.187.103.252l.004.005.005.005c.065.06.154.102.252.102h5.217c.201 0 .364-.163.364-.364v-1.306c0-.2-.163-.364-.364-.364h-3.55v-1.372h3.55c.201 0 .364-.164.364-.364v-1.307c0-.2-.163-.364-.364-.364h-3.55v-1.372h3.55v.005Z",fill:"#00B900"})]})}},757146:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(785893);function a({size:e=56}){return(0,i.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,i.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#fff"}),(0,i.jsx)("rect",{x:".5",y:".5",width:"55",height:"55",rx:"27.5",stroke:"#767676",strokeOpacity:".4"}),(0,i.jsx)("path",{d:"M28 12c-9.012 0-16 6.604-16 15.52 0 4.664 1.912 8.696 5.024 11.48.26.232.42.56.428.912l.088 2.848c.028.908.964 1.5 1.796 1.132l3.176-1.4c.268-.12.572-.14.856-.064 1.46.4 3.012.616 4.632.616 9.012 0 16-6.604 16-15.52S37.012 12 28 12Z",fill:"url(#paint0_radial_3730_649)"}),(0,i.jsx)("path",{d:"m18.392 32.06 4.7-7.456a2.401 2.401 0 0 1 3.472-.64l3.74 2.804a.96.96 0 0 0 1.156-.004l5.048-3.832c.672-.512 1.552.296 1.104 1.012l-4.704 7.452a2.401 2.401 0 0 1-3.472.64l-3.74-2.804a.96.96 0 0 0-1.156.004l-5.048 3.832c-.672.512-1.552-.292-1.1-1.008Z",fill:"#fff"}),(0,i.jsx)("defs",{children:(0,i.jsxs)("radialGradient",{id:"paint0_radial_3730_649",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(18.16 43.826) scale(34.8672)",children:[(0,i.jsx)("stop",{stopColor:"#09F"}),(0,i.jsx)("stop",{offset:".61",stopColor:"#A033FF"}),(0,i.jsx)("stop",{offset:".935",stopColor:"#FF5280"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#FF7061"})]})})]})}},862960:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(785893);function a({size:e=56}){return(0,i.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,i.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"url(#paint0_linear_4401_2673)"}),(0,i.jsx)("path",{d:"M22.452 39.991c-.907 0-.753-.342-1.066-1.206l-2.667-8.779 20.533-12.181",fill:"#C8DAEA"}),(0,i.jsx)("path",{d:"M22.452 39.991c.7 0 1.01-.32 1.4-.7l3.734-3.63-4.657-2.808",fill:"#A9C9DD"}),(0,i.jsx)("path",{d:"m22.928 32.854 11.284 8.336c1.288.71 2.217.343 2.538-1.195l4.593-21.645c.47-1.885-.719-2.74-1.95-2.181l-26.971 10.4c-1.841.738-1.83 1.765-.336 2.223l6.921 2.16 16.024-10.109c.757-.458 1.45-.212.881.294",fill:"url(#paint1_linear_4401_2673)"}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("linearGradient",{id:"paint0_linear_4401_2673",x1:"37.352",y1:"9.352",x2:"23.352",y2:"42",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#37AEE2"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#1E96C8"})]}),(0,i.jsxs)("linearGradient",{id:"paint1_linear_4401_2673",x1:"31.096",y1:"27.16",x2:"35.466",y2:"37.116",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#EFF7FC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#fff"})]})]})]})}},464240:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(785893);function a({size:e=56}){return(0,i.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,i.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#1DA1F2"}),(0,i.jsx)("path",{d:"M24.34 42c11.37 0 17.591-9.429 17.591-17.591 0-.265 0-.53-.012-.796a12.596 12.596 0 0 0 3.087-3.207c-1.11.494-2.303.82-3.557.976a6.22 6.22 0 0 0 2.725-3.424 12.299 12.299 0 0 1-3.93 1.495 6.17 6.17 0 0 0-4.51-1.953 6.19 6.19 0 0 0-6.186 6.185c0 .483.06.953.157 1.411-5.136-.253-9.694-2.725-12.744-6.463a6.184 6.184 0 0 0-.832 3.111 6.2 6.2 0 0 0 2.749 5.148 6.254 6.254 0 0 1-2.797-.771v.084a6.196 6.196 0 0 0 4.955 6.065 6.028 6.028 0 0 1-1.628.217c-.397 0-.783-.036-1.157-.109a6.182 6.182 0 0 0 5.775 4.293 12.4 12.4 0 0 1-7.68 2.652c-.494 0-.989-.024-1.471-.084A17.587 17.587 0 0 0 24.34 42Z",fill:"#fff"})]})}},89396:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(785893);function a({size:e=56}){return(0,i.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,i.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#7360F2"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.362 31.327s.57.05.875-.33l.597-.75c.288-.374.984-.61 1.665-.232.902.509 2.067 1.309 2.866 2.054.44.371.542.918.242 1.495l-.002.012a6.278 6.278 0 0 1-1.243 1.53l-.012.009c-.587.489-1.261.773-1.983.538l-.013-.018c-1.296-.367-4.405-1.952-6.386-3.532-3.242-2.558-5.546-6.776-6.183-9.038l-.02-.013c-.235-.724.052-1.398.539-1.984l.01-.01a6.224 6.224 0 0 1 1.53-1.243l.012-.003c.576-.3 1.122-.198 1.494.243.49.505 1.408 1.721 2.054 2.865.378.68.141 1.377-.231 1.664l-.752.598c-.379.306-.33.876-.33.876s1.113 4.207 5.271 5.269Zm6.543-3.488a.405.405 0 0 1-.406-.403c-.018-2.44-.752-4.384-2.178-5.776-1.43-1.393-3.236-2.108-5.37-2.122a.403.403 0 0 1-.4-.408.403.403 0 0 1 .403-.402h.003c2.35.016 4.344.808 5.93 2.352 1.586 1.55 2.402 3.687 2.422 6.35a.406.406 0 0 1-.401.409h-.003Zm-2.127-.832h-.01a.405.405 0 0 1-.395-.414c.032-1.384-.364-2.503-1.208-3.425-.84-.918-1.993-1.42-3.527-1.532a.406.406 0 0 1-.374-.433.406.406 0 0 1 .433-.375c1.725.127 3.093.73 4.065 1.794.977 1.066 1.456 2.409 1.42 3.989a.406.406 0 0 1-.404.396Zm-2.077-.696a.404.404 0 0 1-.404-.386c-.068-1.373-.716-2.045-2.036-2.117a.404.404 0 1 1 .043-.808c1.744.093 2.712 1.092 2.8 2.886a.403.403 0 0 1-.383.423l-.02.002Zm9.09 4.625c-.808 6.503-5.563 6.913-6.44 7.195-.374.12-3.843.982-8.203.698 0 0-3.251 3.92-4.266 4.94-.158.159-.344.223-.469.194-.175-.043-.223-.251-.22-.553l.027-5.354v-.001c-6.35-1.764-5.98-8.394-5.908-11.864.072-3.47.724-6.315 2.661-8.227 3.48-3.152 10.65-2.681 10.65-2.681 6.054.027 8.955 1.85 9.628 2.46 2.234 1.912 3.371 6.49 2.54 13.193Zm-.87-14.817c-.796-.73-4.01-3.064-11.167-3.096 0 0-8.44-.51-12.554 3.267-2.29 2.29-3.096 5.64-3.181 9.797-.085 4.157-.195 11.944 7.311 14.056l.008.002-.005 3.221s-.047 1.306.812 1.572c1.039.322 1.648-.669 2.641-1.738a88.708 88.708 0 0 0 1.863-2.107c5.135.43 9.082-.556 9.532-.701 1.036-.337 6.902-1.088 7.857-8.876.984-8.03-.477-13.106-3.117-15.397Z",fill:"#fff"})]})}},22641:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(785893);function a({size:e=56}){return(0,i.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,i.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#25D366"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.206 16.65A15.75 15.75 0 0 0 27.99 12c-8.74 0-15.854 7.113-15.857 15.855a15.821 15.821 0 0 0 2.117 7.927L12 44l8.406-2.205a15.837 15.837 0 0 0 7.577 1.93h.007c8.74 0 15.853-7.114 15.856-15.857a15.76 15.76 0 0 0-4.64-11.218ZM27.99 41.047h-.005c-2.365 0-4.684-.636-6.708-1.837l-.482-.286-4.988 1.309 1.331-4.864-.313-.499a13.146 13.146 0 0 1-2.015-7.014c.003-7.266 5.915-13.178 13.185-13.178a13.09 13.09 0 0 1 9.318 3.865 13.098 13.098 0 0 1 3.856 9.324c-.003 7.267-5.915 13.18-13.179 13.18Zm7.23-9.871c-.397-.199-2.345-1.157-2.708-1.289-.364-.132-.628-.198-.891.198-.264.397-1.024 1.29-1.255 1.554-.231.264-.462.297-.858.099-.396-.199-1.673-.617-3.187-1.966-1.178-1.051-1.973-2.348-2.204-2.745-.231-.397-.024-.611.173-.808.178-.178.397-.463.595-.695.198-.23.264-.396.396-.66.132-.265.066-.496-.033-.695-.098-.198-.89-2.148-1.221-2.941-.322-.773-.649-.668-.892-.68a16.01 16.01 0 0 0-.759-.014c-.264 0-.693.099-1.057.495-.363.397-1.387 1.356-1.387 3.305 0 1.95 1.42 3.835 1.618 4.1.199.264 2.794 4.265 6.769 5.982.945.409 1.683.653 2.259.835.948.302 1.812.26 2.495.157.76-.114 2.344-.958 2.674-1.884.33-.925.33-1.719.23-1.884-.098-.166-.362-.266-.758-.464Z",fill:"#fff"})]})}},619277:(e,t,n)=>{n.d(t,{o$:()=>a,ty:()=>r,vE:()=>o});var i=n(425288);const{Provider:a,MaybeConsumer:r,useMaybeHook:o}=(0,i.Z)("inviteContext")},867060:(e,t,n)=>{n.d(t,{LO:()=>r,Pu:()=>o,cc:()=>i,dB:()=>a,yF:()=>s});const i={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},a={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},r={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},o={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}},858416:(e,t,n)=>{n.d(t,{Wr:()=>u,Hx:()=>h,RC:()=>p});var i=n(667294);var a=n(311541),r=n(425288),o=n(924687),s=n(785893);const l=()=>Promise.resolve().then(n.bind(n,924687)),{Provider:c,useHook:d}=(0,r.Z)("IdeaPinVideoPlayer");function u({children:e}){const[t,n]=(0,a.Z)(l,o.initialState),r=(0,i.useMemo)((()=>({dispatch:n,ideaPinVideoPlayerControls:t})),[n,t]);return(0,s.jsx)(c,{value:r,children:e})}function p(){const{dispatch:e}=d();return(0,i.useMemo)((()=>({updateSeekTime:(t,n)=>{e({type:"UPDATE_SEEK_TIME",payload:{seekTime:t,pinId:n||""}})},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,n)=>{n.r(t),n.d(t,{default:()=>a,initialState:()=>i});const i={seekTime:void 0,seekTimes:{},isSeekingIdeaPin:!1,currentProgressInfo:{currentTime:0,duration:0}};function a(e=i,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}}},985913:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(858142);const a=/\{\{\s*(\w+)\s*\}\}/g,r=(e,t)=>(0,i.Z)(a,e,t)},858791:(e,t,n)=>{n.d(t,{Z:()=>i});const i=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&#39;")},936776:(e,t,n)=>{n.d(t,{Z:()=>a});const i=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,a=e=>i.test(e)},927104:(e,t,n)=>{n.d(t,{Z:()=>i});const i=(e,t)=>e.length>t?e.substr(0,t-3).trim()+"…":e},858142:(e,t,n)=>{n.d(t,{Z:()=>i});const i=(e,t,n)=>t?t.replace(e,((e,t)=>n&&Object.prototype.hasOwnProperty.call(n,t)?n[t]:"")):""},66699:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(985913),a=n(858791);const r=(e,t)=>{const n={};return Object.keys(t).forEach((e=>{n[e]=t[e]?(0,a.Z)(t[e].toString()):""})),(0,i.Z)(e,n)}},883561:(e,t,n)=>{n.d(t,{ZP:()=>i});function i(e,t=80,n="…",i=false){let a;if(!e)return"";if(e.length<=t)return e;if(" "!==e[t-1]&&" "===e[t]||i)a=e.substring(0,t);else{const n=e.lastIndexOf(" ",t);a=e.substring(0,n)}return a=a.replace(/[\- _,.<>:;+=*&@~\/\|!]*$/,""),a+n}},758127:(e,t,n)=>{n.d(t,{U:()=>r,Z:()=>o});var i=n(883119),a=n(785893);const r=", ";function o(){return(0,a.jsx)(i.xu,{display:"visuallyHidden",children:r})}},948618:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(883119),a=n(785893);function r({ariaHidden:e=!1,color:t="darkGray",size:n}){return(0,a.jsx)("span",{"aria-hidden":e,style:{padding:"0 4px"},children:(0,a.jsx)(i.xv,{color:t,inline:!0,size:null!=n?n:"200",children:"·"})})}},753311:(e,t,n)=>{n.d(t,{M:()=>o,Q:()=>r});var i=n(667294);const a=(0,i.createContext)(null),r=()=>(0,i.useContext)(a),o=a.Provider},690035:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(753311);const a=()=>{var e;return(null===(e=(0,i.Q)())||void 0===e?void 0:e.showUnauthContextMenu)||(()=>{})}},170168:(e,t,n)=>{n.d(t,{Ag:()=>r,C0:()=>l,Vi:()=>o,YD:()=>u,kS:()=>a,oo:()=>s,p3:()=>p,vC:()=>c,vI:()=>d});var i=n(401060);const a="https://www.pinterest.com/business/hub/",r="https://www.pinterest.com/homefeed/",o="www.pinterest.com",s="https://help.pinterest.com",l="https://www.pinterest.com",c=(0,i.Z)({site:"developers"}),d=`${(0,i.Z)({site:"sterling"})}`,u=`${(0,i.Z)({site:"analytics"})}`,p=`${(0,i.Z)({site:"www",path:"/product-catalogs/data-source/?advertiserId="})}`},250059:(e,t,n)=>{n.d(t,{Z:()=>i});const i=e=>e?"string"==typeof e?e:e.pathname?e.pathname:"":""},508847:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(567831);const a=(e,t)=>0===e.lastIndexOf(t,0),r=({url:e})=>{const t=(0,i.Z)("/");return a(e,t)?e.substr(t.length-1):e}},311541:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(667294);function a(e,t){const n=(0,i.useRef)([]),[a,r]=(0,i.useState)(),[o,s]=(0,i.useReducer)(null!=a?a:()=>t,t),l=(0,i.useCallback)((t=>{a?s(t):(n.current.length||e().then((e=>{r((()=>e.default))})),n.current=[...n.current,t])}),[e,a]);return(0,i.useEffect)((()=>{a&&(n.current.forEach(s),n.current=[])}),[a]),[o,l]}},807609:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(411465),a=n(966476);const r=()=>{const e=(0,i.Z)(),t=(0,a.Z)();return e&&!t}},411465:(e,t,n)=>{n.d(t,{G:()=>s,Z:()=>l});var i=n(667294),a=n(276775),r=n(785893);const o=(0,i.createContext)(!0);function s({children:e}){const t=(0,a.useLocation)(),[n,s]=(0,i.useState)(!0),l=(0,i.useRef)(t);return(0,i.useEffect)((()=>{l.current!==t&&(l.current=t,s(!1))}),[t]),(0,r.jsx)(o.Provider,{value:n,children:e})}function l(){return(0,i.useContext)(o)}},644035:(e,t,n)=>{n.d(t,{GW:()=>a,RL:()=>i,s4:()=>r});const i="ios",a="android",r="ipad"},562559:(e,t,n)=>{n.d(t,{Z:()=>b});var i=n(667294),a=n(867631),r=n.n(a),o=n(112690),s=n(19121),l=n(965900),c=n(773285),d=n(780280),u=n(883119),p=n(969315),h=n(179888),m=n(858416),_=n(785893);function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const v=(e,t)=>{if(t){const n="control"===t?"v3.pinimg.com":"v2.pinimg.com";return e.replace("v1.pinimg.com",n)}return e},f=(e,t)=>"string"==typeof e?v(e,t):Array.isArray(e)?((e,t)=>e[0].src&&t?[{...e[0],src:v(e[0].src,t)}]:e)(e,t):e;class y extends i.PureComponent{constructor(...e){super(...e),g(this,"state",{canPlayVideo:!1,isManifestParsed:!1,playbackState:h.Cy.DEFAULT,videoStartTime:this.props.seekTime||0}),g(this,"errorRetryCount",1),g(this,"firstFragBuffered",!1),g(this,"hasPlaybackStarted",!1),g(this,"hasVideoSessionStarted",!1),g(this,"hasVideoSessionEnded",!1),g(this,"hls",null),g(this,"fragStartupTime",{}),g(this,"lastLevelSwitchKbps",null),g(this,"lastStallTime",null),g(this,"lastPauseTime",null),g(this,"logSessionStartOnNextPlay",!1),g(this,"playerId",""),g(this,"videoSessionId",""),g(this,"videoVisibleTime",null),g(this,"playbackPerformance",{canPlayTime:null,detailedErrors:"",downloadedKiloBytes:0,errorCode:0,errorName:"",errorReason:"",hasFatalError:!1,loadStartTime:null,numberOfStalls:0,numberOfSeeks:0,playbackStartTimestamp:null,segments:[],srcString:"string"==typeof this.props.src?v(this.props.src,this.props.quicExpGroup):v(this.props.src[0].src,this.props.quicExpGroup),totalStallDurationMs:0,totalPauseDurationMs:0,videoCreatedTime:null}),g(this,"initializeHls",(()=>{this.destroyHls();const{src:e,hlsConfig:t,quicExpGroup:n}=this.props,i=new(r())(t),a=f(e,n);i.loadSource(a),this.videoPlayerRef&&i.attachMedia(this.videoPlayerRef.video),i.on(r().Events.FRAG_BUFFERED,this.handleHlsFragBuffered),i.on(r().Events.FRAG_CHANGED,this.handleHlsFragChanged),i.on(r().Events.FRAG_LOADING,this.handleHlsFragLoading),i.on(r().Events.FRAG_LOADED,this.handleHlsFragLoaded),i.on(r().Events.MANIFEST_PARSED,(()=>{this.setState({isManifestParsed:!0})})),i.on(r().Events.LEVEL_SWITCHED,this.handleHlsLevelSwitched),i.on(r().Events.ERROR,this.handleHlsError),this.hls=i})),g(this,"destroyHls",(()=>{const{hls:e}=this;e&&e.destroy()})),g(this,"addSegment",(e=>{const{segments:t}=this.playbackPerformance,n=t&&t[t.length-1];if(this.hls&&t.length&&n&&n.uri!==e.url){this.updateWatchDurationForCurrentSegment();const n=this.videoPlayerRef&&this.videoPlayerRef.video,i=this.hls&&this.hls.levels||{},a="number"==typeof e.level?i[e.level]:{},r=this.fragStartupTime[e.url];let o=-1;r&&r.startLoadTime&&r.endLoadTime&&(o=r.endLoadTime-r.startLoadTime);const s={indicatedKbps:a.bitrate/h.bR,duration:e.duration,level:e.level,lastStartPlayTime:this.getCurrentVideoTime(),numServerAddressChange:-1,observedKbps:this.hls&&this.hls.bandwidthEstimate/h.bR||-1,playbackStartDate:Date.now(),serverAddress:"",sn:e.sn,sourceWidth:a.width,sourceHeight:a.height,startupTimeMs:o,switchBitrateKbps:this.lastLevelSwitchKbps||-1,uri:e.url,viewportWidth:n&&n.clientWidth||-1,viewportHeight:n&&n.clientHeight||-1,watchedDurationMs:0};t.push(s)}})),g(this,"initializeSegments",(e=>{const{contextLogData:t={}}=this.props,{is_closeup_video:n=!1}=t,{segments:i}=this.playbackPerformance;if(!i.length)if(this.hls&&this.videoPlayerRef&&this.videoPlayerRef.video&&e){if(!i.length&&"number"==typeof e.level){const t=this.videoPlayerRef&&this.videoPlayerRef.video,n=this.hls.levels,a="number"==typeof e.level?n[e.level]:{},r=this.fragStartupTime[e.url];let o=-1;r&&r.startLoadTime&&r.endLoadTime&&(o=r.endLoadTime-r.startLoadTime),this.lastLevelSwitchKbps=this.hls.bandwidthEstimate/h.bR;const s={indicatedKbps:a.bitrate/h.bR,duration:e.duration,level:e.level,lastStartPlayTime:null,numServerAddressChange:-1,observedKbps:this.hls.bandwidthEstimate/h.bR||-1,playbackStartDate:null,serverAddress:"",sn:e.sn,sourceWidth:a.width,sourceHeight:a.height,startupTimeMs:o,switchBitrateKbps:this.lastLevelSwitchKbps||-1,uri:e.url,viewportWidth:t.clientWidth,viewportHeight:t.clientHeight,watchedDurationMs:0};i.push(s)}}else(0,p.tE)("initializeSegmentsFailed",!0,n)})),g(this,"getCurrentVideoTime",(()=>this.videoPlayerRef&&this.videoPlayerRef.video?this.videoPlayerRef.video.currentTime*h.gJ:null)),g(this,"handleCanPlayVideo",(e=>{const{contextLogData:t={},onReady:n,playing:i}=this.props,{is_closeup_video:a=!1}=t,{canPlayVideo:r}=this.state;(0,p.tE)("handleCanPlayVideo",!0,a,{firstCanPlayEvent:!r,playing:i}),this.playbackPerformance.hasFatalError=!1,r||(this.playbackPerformance.canPlayTime=new Date),this.setState({canPlayVideo:!0}),n&&n(e)})),g(this,"handleEnded",(e=>{const{loop:t,onEnded:n}=this.props,{segments:i}=this.playbackPerformance,a=i&&i[i.length-1];t&&this.videoPlayerRef&&this.videoPlayerRef.video?(this.updateWatchDurationForCurrentSegment(),a&&(a.lastStartPlayTime=0),this.fragStartupTime={}):t||this.logPlaybackPerformance(h.$f,{initiator:"videoEnded",loop:t}),this.setState({playbackState:h.Cy.ENDED}),n&&n(e)})),g(this,"handleHlsError",((e,t)=>{var n;const{contextLogData:i={}}=this.props,{is_closeup_video:a=!1}=i;if(this.playbackPerformance.detailedErrors+=`${this.playbackPerformance.detailedErrors.length>0?", ":""}${t.details}`,t.fatal){var o,s,l,c;this.playbackPerformance.hasFatalError=!0,this.playbackPerformance.errorName=t.type,this.playbackPerformance.errorReason=t.details,this.playbackPerformance.errorCode=t.response&&t.response.code?t.response.code:0;const e={errorName:t.type,errorReason:t.details,errorRetryCount:this.errorRetryCount,errorMessage:(null===(o=t.err)||void 0===o||null===(s=o.message)||void 0===s?void 0:s.slice(0,50))||"unknown",errorResponse:(null===(l=t.response)||void 0===l||null===(c=l.text)||void 0===c?void 0:c.slice(0,50))||"unknown",playbackState:this.state.playbackState};if((0,p.tE)("fatalError",!0,a,e),this.errorRetryCount>0)switch(this.errorRetryCount-=1,t.type){case r().ErrorTypes.NETWORK_ERROR:if(t.details===r().ErrorDetails.MANIFEST_LOAD_ERROR||t.details===r().ErrorDetails.MANIFEST_LOAD_TIMEOUT||t.details===r().ErrorDetails.MANIFEST_LOAD_PARSING_ERROR){var d;const{src:e,quicExpGroup:t}=this.props,n=f(e,t);null===(d=this.hls)||void 0===d||d.loadSource(n)}else{var u;null===(u=this.hls)||void 0===u||u.startLoad()}break;case r().ErrorTypes.MEDIA_ERROR:null===(n=this.hls)||void 0===n||n.recoverMediaError()}}this.updateWatchDurationForCurrentSegment(),this.setState({playbackState:h.Cy.FAILED})})),g(this,"handleHlsFragBuffered",((e,t)=>{this.firstFragBuffered||(this.initializeSegments(t.frag),this.firstFragBuffered=!0)})),g(this,"handleHlsFragChanged",((e,t)=>{this.addSegment(t.frag)})),g(this,"handleHlsFragLoading",((e,t)=>{var n;const i=null===(n=t.frag)||void 0===n?void 0:n.url;i&&!this.fragStartupTime[i]&&(this.fragStartupTime[i]={startLoadTime:new Date})})),g(this,"handleHlsFragLoaded",((e,t)=>{var n;t.frag&&t.frag.loaded&&(this.playbackPerformance.downloadedKiloBytes+=t.frag.loaded/h.Fm);const i=null===(n=t.frag)||void 0===n?void 0:n.url;i&&this.fragStartupTime[i]&&this.fragStartupTime[i].startLoadTime&&(this.fragStartupTime[i].endLoadTime=new Date)})),g(this,"handleHlsLevelSwitched",(()=>{this.hls&&this.hls.bandwidthEstimate&&(this.lastLevelSwitchKbps=this.hls.bandwidthEstimate/h.bR)})),g(this,"handleLoadedMetadata",(()=>{this.setState({playbackState:h.Cy.LOADED_METADATA})})),g(this,"handleLoadStart",(()=>{this.playbackPerformance.loadStartTime=new Date,this.setState({playbackState:h.Cy.LOAD_START})})),g(this,"handleLoadedData",(()=>{this.setState({playbackState:h.Cy.LOADED_DATA})})),g(this,"handlePlaying",(()=>{this.playbackPerformance.hasFatalError=!1,this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.updateStallDuration(),this.updatePauseDuration(),this.setState({playbackState:h.Cy.PLAYING}),this.props.clearSeekTime()})),g(this,"handleUserPause",(e=>{const{onControlsPause:t}=this.props;this.lastPauseTime=new Date,t&&t(e)})),g(this,"handleVideoPause",(()=>{this.state.playbackState!==h.Cy.STALLING&&this.state.playbackState!==h.Cy.SEEKING&&(this.updateWatchDurationForCurrentSegment(),this.lastPauseTime||this.updateStallDuration()),this.setState({playbackState:h.Cy.PAUSED})})),g(this,"handleSeeking",(()=>{this.playbackPerformance.numberOfSeeks+=1;const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&(t.lastStartPlayTime=null),this.state.playbackState!==h.Cy.ENDED&&this.setState({playbackState:h.Cy.SEEKING})})),g(this,"handleStalled",(()=>{null===this.lastStallTime&&this.state.playbackState!==h.Cy.ENDED&&(this.lastStallTime=new Date,this.playbackPerformance.numberOfStalls+=1),this.setState({playbackState:h.Cy.STALLING})})),g(this,"handleTimeUpdate",(e=>{const{onTimeChange:t}=this.props;t&&t(e),this.state.playbackState===h.Cy.PLAYING&&(this.updateWatchDurationForCurrentSegment(),this.setLastSegmentStartPlayTime())})),g(this,"resetPlaybackMetrics",(()=>{this.hasPlaybackStarted=!1,this.hasVideoSessionStarted=!1,this.hasVideoSessionEnded=!0,this.lastLevelSwitchKbps=null,this.lastStallTime=null,this.lastPauseTime=null,this.videoSessionId="",this.videoVisibleTime=null,this.logSessionStartOnNextPlay=!1;const e={...this.playbackPerformance.segments[this.playbackPerformance.segments.length-1],lastStartPlayTime:null,playbackStartDate:null,switchBitrateKbps:-1,watchedDurationMs:0};this.playbackPerformance.detailedErrors="",this.playbackPerformance.downloadedKiloBytes=0,this.playbackPerformance.errorCode=0,this.playbackPerformance.errorName="",this.playbackPerformance.errorReason="",this.playbackPerformance.hasFatalError=!1,this.playbackPerformance.numberOfStalls=0,this.playbackPerformance.numberOfSeeks=0,this.playbackPerformance.playbackStartTimestamp=null,this.playbackPerformance.totalStallDurationMs=0,this.playbackPerformance.segments=[e]})),g(this,"setLastSegmentStartPlayTime",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.lastStartPlayTime&&(t.lastStartPlayTime=this.getCurrentVideoTime())})),g(this,"setLastSegmentPlaybackStartDate",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.playbackStartDate&&(t.playbackStartDate=Date.now())})),g(this,"setPlaybackStartTime",(()=>{this.hasPlaybackStarted||(this.playbackPerformance.playbackStartTimestamp=Date.now(),this.hasPlaybackStarted=!0)})),g(this,"setVideoPlayerRef",(e=>{const{setVideoRef:t}=this.props;if(e&&(t&&t(e),this.videoPlayerRef=e,this.videoPlayerRef.video)){const e=this.videoPlayerRef.video;e.addEventListener("loadedmetadata",this.handleLoadedMetadata),e.addEventListener("loadeddata",this.handleLoadedData),e.addEventListener("pause",this.handleVideoPause),e.readyState>=3&&(this.setState({canPlayVideo:!0}),this.playbackPerformance.canPlayTime=new Date)}})),g(this,"updateStallDuration",(()=>{null!==this.lastStallTime&&(this.playbackPerformance.totalStallDurationMs+=new Date-this.lastStallTime,this.lastStallTime=null)})),g(this,"updatePauseDuration",(()=>{if(null!==this.lastPauseTime){const e=this.lastPauseTime;this.playbackPerformance.totalPauseDurationMs+=new Date-e,this.lastPauseTime=null}})),g(this,"updateWatchDurationForCurrentSegment",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1],n=t?t.lastStartPlayTime:null,i=this.getCurrentVideoTime();if(t&&null!==n&&"number"==typeof i&&"number"==typeof n){const e=i-n;e>0&&(t.watchedDurationMs+=e,t.lastStartPlayTime=null)}})),g(this,"logPlaybackPerformance",((e,t)=>{const{contextLogData:n={},userId:i,isAutoPlay:a,logContextEvent:r}=this.props,{is_closeup_video:o=!1}=n,{canPlayTime:s,detailedErrors:l,downloadedKiloBytes:c,errorCode:d,errorName:u,errorReason:m,hasFatalError:_,playbackStartTimestamp:g,totalPauseDurationMs:v,totalStallDurationMs:f,segments:y,srcString:b,loadStartTime:x,numberOfStalls:w,numberOfSeeks:P}=this.playbackPerformance,S=this.videoPlayerRef&&this.videoPlayerRef.video,k=e===h.DR,T=k&&!this.hasVideoSessionStarted,I=!k&&!this.hasVideoSessionEnded&&this.hasVideoSessionStarted;if(this.hls&&S&&(T||I)){var A;let T=-1;s&&x&&(T=s>x?s-x:0);let I=-1;s&&this.videoVisibleTime&&(I=s>this.videoVisibleTime?s-this.videoVisibleTime:0),k&&(this.videoSessionId=(0,h.Y7)(i),this.playerId=this.playerId||(0,h.EB)());const C={autoplaying:a,averageVideoKbps:-1,detailedErrors:l,downloadedKiloBytes:c,isCellular:!1,errorCode:d,errorName:u,errorReason:m,fatalError:_,nativeVideoDurationMs:S.duration*h.gJ||-1,numberOfStalls:w,numberOfSeeks:P,overallPausedDurationMs:v,overallBufferDurationMs:f,overallWatchedDurationMs:-1,rebufferRate:-1,playbackSessionId:this.videoSessionId,playbackStartTimestamp:g||-1,segments:[],sessionMark:e,screenPixelScale:null!==(A=window)&&void 0!==A&&A.devicePixelRatio?window.devicePixelRatio:-1,startupPlayerWidth:S.clientWidth,startupPlayerHeight:S.clientHeight,startupTimeMs:T,startupLatencyMs:I,startupVariantKbps:-1,startupVariantWatchedDurationMs:-1,startupVariantWidth:S.videoWidth,startupVariantHeight:S.videoHeight,videoUrl:b};if(!k&&y.length){const e=this.hls.levels,t=y[0];this.updateWatchDurationForCurrentSegment(),this.updateStallDuration();const n=y.reduce(((t,n)=>{if(n&&"number"==typeof n.level&&e&&e.length>0){return t+(e[n.level]||{}).bitrate*(n.watchedDurationMs||0)/h.gJ}return t}),0),i=y.reduce(((e,t)=>e+(t.watchedDurationMs||0)),0);let a=null,r=0,o=0;do{r+=y[o].watchedDurationMs,a=a||y[o].level,o+=1}while(o<y.length&&y[o].level===a);C.startupVariantKbps=t.indicatedKbps,C.startupVariantWatchedDurationMs=r,C.startupVariantWidth=t.sourceWidth,C.startupVariantHeight=t.sourceHeight,C.startupPlayerWidth=t.viewportWidth,C.startupPlayerHeight=t.viewportHeight,C.overallWatchedDurationMs=i,i>0?(C.averageVideoKbps=n/(i/h.gJ),C.rebufferRate=this.playbackPerformance.totalStallDurationMs/i):0===i&&(C.averageVideoKbps=-1,C.rebufferRate=-1,C.errorName="invalid_watch_duration"),C.segments=y}else C.errorName="invalid_watch_duration";(0,p.ZP)(C,!0,o,{playbackState:this.state.playbackState,...t});const{clientTrackingParams:E,component:j,durationNs:D,element:O,objectId:R,pairId:L,viewData:M,view:F,viewParameter:N,...z}=n;r({aux_data:{...z,is_closeup_video:o,playback_session_id:this.videoSessionId},clientTrackingParams:E,component:j,duration_ns:D,element:O,event_data:{videoPerformanceData:C},event_type:3606,object_id_str:R,pair_id:L,view_data:M,view_parameter:N,view_type:F}),k?(this.hasVideoSessionStarted=!0,this.hasVideoSessionEnded=!1):this.resetPlaybackMetrics(),(0,p.tE)(k?"sessionStart":"sessionEnd",!0,o,{playbackState:this.state.playbackState,...t})}}))}componentDidMount(){const{contextLogData:e={},playing:t}=this.props,{is_closeup_video:n=!1}=e;this.playbackPerformance.videoCreatedTime=new Date,this.initializeHls(),(0,p.tE)("videoMounted",!0,n),t&&(this.videoVisibleTime=new Date,this.logPlaybackPerformance(h.DR,{initiator:"mount"}))}componentDidUpdate(e){const{loop:t,playing:n,src:i,visible:a,appInFocus:r,seekTime:o}=this.props;var s,l;o&&o!==e.seekTime&&this.setState({videoStartTime:o}),(typeof(s=e.src)!=typeof(l=i)||(Array.isArray(l)?s.length!==l.length||l.some(((e,t)=>!Array.isArray(s)||e.type!==s[t].type||e.src!==s[t].src)):l!==s))&&this.initializeHls(),e.appInFocus&&!r&&(this.logPlaybackPerformance(h.$f,{initiator:"update",loop:t}),this.logSessionStartOnNextPlay=!0),e.visible&&!1===a&&(this.logSessionStartOnNextPlay=!1,this.updatePauseDuration(),this.logPlaybackPerformance(h.$f,{initiator:"update",loop:t})),!1===e.visible&&!0===a&&(this.videoVisibleTime=this.videoVisibleTime||new Date,n?(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(h.DR,{initiator:"update"})):this.logSessionStartOnNextPlay=!0),n&&r&&this.logSessionStartOnNextPlay&&(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(h.DR,{initiator:"update"}),this.logSessionStartOnNextPlay=!1)}componentWillUnmount(){const{loop:e}=this.props;this.updatePauseDuration(),this.logPlaybackPerformance(h.$f,{initiator:"unmount",loop:e}),this.destroyHls()}render(){const{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:i,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:o,aspectRatio:s,backgroundColor:l,captions:c,controls:d,loop:p,loopOverride:h,onDurationChange:m,onFullscreenChange:g,onLoadedChange:v,onControlsPlay:y,onPlayheadDown:b,onPlayheadUp:x,onSeek:w,onVolumeChange:P,playbackRate:S,playing:k,playsInline:T,poster:I,preload:A,quicExpGroup:C,src:E,volume:j}=this.props,{canPlayVideo:D,isManifestParsed:O,videoStartTime:R}=this.state,L=f(E,C);return(0,_.jsx)(u.nk,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:i,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:o,aspectRatio:s,backgroundColor:l,captions:c,controls:d,loop:void 0===h?p:h,onDurationChange:m,onEnded:this.handleEnded,onFullscreenChange:g,onLoadStart:this.handleLoadStart,onLoadedChange:v,onControlsPause:this.handleUserPause,onControlsPlay:y,onPlaying:this.handlePlaying,onPlayheadDown:b,onPlayheadUp:x,onReady:this.handleCanPlayVideo,onSeek:w,onSeeking:this.handleSeeking,onStalled:this.handleStalled,onTimeChange:this.handleTimeUpdate,onVolumeChange:P,onWaiting:this.handleStalled,playbackRate:S,onPlay:()=>{},onPlayError:()=>{},playing:O&&D&&k,playsInline:T,poster:I,preload:A,ref:this.setVideoPlayerRef,src:L,startTime:R,volume:j})}}const b=(0,i.memo)((function(e){const{country:t,isAuthenticated:n,isBot:i,isSocialBot:a,unauthId:r,userAgent:u}=(0,d.B)(),h=(0,o.Z)(),g=(0,s.Z)(),{browserName:v,browserVersion:f,isMobile:b}=u,{contextLogData:x={}}=e,{is_closeup_video:w=!1,view:P,viewParameter:S}=x,{checkExperiment:k}=(0,c.F)(),{seekTime:T}=(0,m.Hx)(),{clearSeekTime:I}=(0,m.RC)();let A=null;n&&(A=k("web_video_quic").group.length?k("web_video_quic").group:null);const{appUI:C}=(0,l.I)(),E=k("web_video_fail_to_start_fix").anyEnabled?C.appInFocus:e.appInFocus,j={browserName:v,browserVersion:f,country:t,isAuthenticated:n,isBot:i,is_closeup_video:w,isMobile:b,isSocialBot:a,view:P,viewParameter:S};return(0,p.r$)(j),(0,_.jsx)(y,{...e,userId:g.id||r,appInFocus:E,quicExpGroup:A,logContextEvent:h,seekTime:T,clearSeekTime:I})}))},969315:(e,t,n)=>{n.d(t,{ZP:()=>u,r$:()=>c,tE:()=>d});var i=n(311560),a=n(172071),r=n(179888);const o=["isCellular","videoUrl","sessionMark"];let s={},l="";const c=e=>{const{browserName:t,browserVersion:n,country:a,isAuthenticated:r,isBot:o,isMobile:c,isSocialBot:d,view:u="unknown",viewParameter:p="unknown"}=e;l=(d?"socialBot":o&&"bot")||"nonbot";const h=(0,i.Z)(a);s={browserName:t,browserVersion:(null==n?void 0:n.split(".")[0])||"0",isAuthenticated:r,isMobile:c,region:h,view:u,viewParameter:p}};function d(e,t,n,i={}){const r=n?"closeup":"nonCloseup",o=t?"hls":"nonHls",c={...i,...s},d=`web.video.${o}.${l}.${r}.${e}`;a.Z.increment(d,1,c)}function u(e,t,n,i={}){const c=n?"closeup":"nonCloseup",d=t?"hls":"nonHls",u=e.sessionMark===r.DR?"sessionStart":"sessionEnd",p={...i,...s};if(Object.entries(e).forEach((([t,n])=>{const i=`web.video.${d}.${l}.${c}.${u}.${t}`,r=parseInt(n,10),s="number"==typeof r?r:-1;var h;if(!o.includes(t))if(t.includes("fatalError")&&!0===n){const{errorCode:t,errorName:n,errorReason:r}=e;a.Z.increment(i,1,{errorCode:t,errorName:n,errorReason:r,...p})}else if(t.includes("Width")||t.includes("Height")){const e=(h=s)<0?"negative":0===h?"zero":h<200?"xs":h<400?"s":h<600?"m":h<800?"l":h<1e3?"xl":h<1200?"xxl":"over1200";a.Z.increment(i,1,{dimensionBucket:e,...p})}else if("numberOfStalls"===t){let e=n;s>1e3?e="over1000":s>10?e="over10":s<0&&(e="negative"),a.Z.increment(i,1,{numberOfStalls:e,...p})}else"screenPixelScale"===t?a.Z.increment(i,1,{screenPixelScale:n||-1,...p}):s>=0?(0===s&&a.Z.increment(`${i}.zero`,1,p),a.Z.timing(i,s,1),a.Z.timing(`${i}_with_tags`,s,1,p)):s<0&&a.Z.increment(`${i}.negative`,1,p)})),e.sessionMark!==r.DR){const{rebufferRate:t,screenPixelScale:n,startupLatencyMs:i,startupVariantWidth:r,startupPlayerWidth:o}=e,s=`web.video.${d}.${l}.${c}.${u}`;if("number"==typeof r&&"number"==typeof o&&"number"==typeof n){const e=1.5*r>n*o;a.Z.increment(`${s}.upscaled.${e?"good":"bad"}`,1,p)}"number"==typeof i&&a.Z.increment(`${s}.startupLatency.${i<500?"good":"bad"}`,1,p),"number"==typeof t&&a.Z.increment(`${s}.rebufferRate.${t<.01?"good":"bad"}`,1,p)}}},179888:(e,t,n)=>{n.d(t,{$f:()=>r,Cy:()=>c,DR:()=>a,EB:()=>p,Fm:()=>l,Y7:()=>u,bR:()=>s,gJ:()=>o,lG:()=>d});var i=n(172045);const a=1,r=2,o=1e3,s=1e3,l=1e3,c=Object.freeze({DEFAULT:0,LOAD_START:1,LOADED_METADATA:2,LOADED_DATA:3,PLAYING:4,PAUSED:5,SEEKING:6,STALLING:7,FAILED:8,ENDED:9}),d=Object.freeze({MEDIA_ERR_ABORTED:1,MEDIA_ERR_NETWORK:2,MEDIA_ERR_DECODE:3,MEDIA_ERR_SRC_NOT_SUPPORTED:4});function u(e){return e+"-"+(0,i.Z)()}function p(){return(0,i.Z)()}},121630:(e,t,n)=>{n.d(t,{Z:()=>r,e:()=>a});var i=n(81226);const a=e=>{if("undefined"==typeof window)return"";let t=0;const n=document.querySelector('[data-test-id="header"]');if(null!==n){const{height:e}=n.getBoundingClientRect();t+=e}switch(e){case"AuthHomefeed":const e=document.querySelector('[data-root-margin="more-ideas-tabs"]');if(null!==e){const{height:n}=e.getBoundingClientRect();t+=n}break;case"SearchItem":const n=document.querySelector('[data-root-margin="search-improvements-bar"]');if(null!==n){const{height:e}=n.getBoundingClientRect();t+=e}const i=document.querySelector('[data-test-id="search-tab-bar"],[data-root-margin="search-one-bar"]');if(null!==i){const{height:e}=i.getBoundingClientRect();t+=e}}return-1*t+"px 0px 0px 0px"},r=e=>{var t,n,a,r,o;return(0,i.Z)((null===(t=e.videos)||void 0===t?void 0:t.duration)||(null===(n=e.videos)||void 0===n||null===(a=n.video_list)||void 0===a||null===(r=a.V_HLSV4)||void 0===r?void 0:r.duration)||(null===(o=e.story_pin_data)||void 0===o?void 0:o.total_video_duration)||0)}},43760:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(768559),a=n(102500),r=n(48714);function o({url:e,pinId:t,pin:n,location:o,auxData:s}){var l,c;const d={check_only:!0,client_tracking_params:n?(0,i.Z)({boardUrl:null===(l=n.board)||void 0===l?void 0:l.url,callToCreateSourcePinId:n.call_to_create_source_pin_id,location:o,pinId:n.id,pinnerUserName:null===(c=n.pinner)||void 0===c?void 0:c.username,storyPinDataId:n.story_pin_data_id,trackingParams:n.tracking_params,trackingParamsMap:n.tracking_params_map}):void 0,pin_id:n?n.id:t,url:e,aux_data:JSON.stringify(s)};(0,a.Z)(d).callGet().then((a=>{if(a&&a.resource_response&&!a.resource_response.error){const{resource_response:e}=a,{redirect_status:t,url:n}=e.data;if(!["blocked","suspicious","porn"].includes(t)){if(window.Windows.Foundation&&window.Windows.System&&window.Windows.System.Launcher&&window.Windows.System.Launcher.launchUriAsync){const e=new window.Windows.Foundation.Uri(n);window.Windows.System.Launcher.launchUriAsync(e)}return}}if(n){var l,c;const a=(0,i.Z)({boardUrl:null===(l=n.board)||void 0===l?void 0:l.url,callToCreateSourcePinId:n.call_to_create_source_pin_id,location:o,pinId:n.id,pinnerUserName:null===(c=n.pinner)||void 0===c?void 0:c.username,storyPinDataId:n.story_pin_data_id,trackingParams:n.tracking_params,trackingParamsMap:n.tracking_params_map});(0,r.Gj)({url:e,pinId:t,csrId:null,clientTrackingParams:a,auxData:s})}else(0,r.Gj)({url:e,pinId:t})}))}},965900:(e,t,n)=>{n.d(t,{g:()=>h,I:()=>p});var i=n(667294),a=n(567450),r=n(150361),o=n.n(r);const s={appInFocus:!0,footerPlusButtonVisible:!0,isAutoplay:!1,showTypeaheadOverlay:!1,videosAutoplaying:{currentlyPlayingOrganicVideoId:null,organicVideosAutoplaying:{},promotedVideosAutoplaying:{}},viewportSize:"lg"},l=(e=s,t)=>{if("TOGGLE_TYPEAHEAD_OVERLAY"===t.type)return{...e,showTypeaheadOverlay:t.payload};if("SET_CURRENT_VIDEO"===t.type){const{payload:n}=t,{pinId:i,isPromoted:a,currentTime:r,inVideoGridAutoplayExp:s}=n,{videosAutoplaying:l}=e,{currentlyPlayingOrganicVideoId:c,promotedVideosAutoplaying:d,organicVideosAutoplaying:u}=l,p=o()(d),h=o()(u);return!a&&c&&s?e:(a?p[i]={pinId:i,currentTime:r,paused:!1}:h[i]={pinId:i,currentTime:r,paused:!1},{...e,videosAutoplaying:{currentlyPlayingOrganicVideoId:a?c:i,promotedVideosAutoplaying:p,organicVideosAutoplaying:h}})}if("SET_IS_AUTOPLAY"===t.type)return{...e,isAutoplay:t.payload};if("PAUSE_CURRENT_VIDEO"===t.type){const{payload:n}=t,{pinId:i,isPromoted:a,currentTime:r}=n,{videosAutoplaying:s}=e,{promotedVideosAutoplaying:l,organicVideosAutoplaying:c}=s,d=o()(l),u=o()(c);return a?d[i]={...d[i],paused:!0,currentTime:r}:u[i]={...u[i],paused:!0,currentTime:r},{...e,videosAutoplaying:{currentlyPlayingOrganicVideoId:null,promotedVideosAutoplaying:d,organicVideosAutoplaying:u}}}return"SET_APP_FOCUS_STATE"===t.type?{...e,appInFocus:t.payload}:"SET_VIEWPORT_SIZE"===t.type?{...e,viewportSize:t.payload}:"SET_FOOTER_VISIBILITY_STATE"===t.type?{...e,footerPlusButtonVisible:t.payload}:e};var c=n(425288),d=n(785893);const{Provider:u,useHook:p}=(0,c.Z)("AppUI");function h({children:e}){const[t,n]=(0,i.useReducer)(l,s),r=(0,i.useCallback)((e=>n({type:"PAUSE_CURRENT_VIDEO",payload:e})),[]),o=(0,i.useCallback)((e=>n({type:"SET_APP_FOCUS_STATE",payload:e})),[]),c=(0,i.useCallback)((e=>n({type:"SET_CURRENT_VIDEO",payload:e})),[]),p=(0,i.useCallback)((e=>n({type:"SET_FOOTER_VISIBILITY_STATE",payload:e})),[]),h=(0,i.useCallback)((e=>n({type:"SET_IS_AUTOPLAY",payload:e})),[]),m=(0,i.useCallback)((e=>n({type:"SET_VIEWPORT_SIZE",payload:e})),[]),_=(0,i.useCallback)((e=>n({type:"TOGGLE_TYPEAHEAD_OVERLAY",payload:e})),[]),g=(0,i.useMemo)((()=>({pauseAutoplay:r,setCurrentVideo:c,setFooterPlusButtonVisible:p,setIsAutoplay:h,setViewportSize:m,toggleTypeaheadOverlay:_,setAppFocusState:o,appUI:t})),[r,c,p,h,m,_,o,t]);return(0,i.useEffect)((()=>{a.Z.onSessionResume((()=>{o(!0)})).onSessionPause((()=>{o(!1)}))}),[o]),(0,d.jsx)(u,{value:g,children:e})}},333155:(e,t,n)=>{n.d(t,{UP:()=>s,Wv:()=>a,ZF:()=>i,zI:()=>r,zl:()=>o});const i=["AuthHomefeed","CloseupRelatedProducts","FollowingFeedGrid","RelatedPinGrid","RelatedProductsFeed","SearchItem"],a=["ArticleProductsStory","CloseupRelatedProducts","ProductPinsFeed","RelatedProductsFeed","ShoppingPackageItem","RelatedProductsFeed","UserProfilePinGrid","ShoppingGridShippedMetadataWithVisitButton"],r=[...a,"ShoppingGridShippedMetadata","ShoppingSquareGridDomain","ShoppingSquareGridDomainNoMetadata","ProductPinsFeed","ShoppingCatalogsProductsMetadata","ShoppingDynamicHeightGrid"],o=["ShoppingSquareGridDomain","ShoppingGridShippedMetadata","ShoppingSquareGridStorefront","ShoppingSquareGridStorefrontDomain","ShoppingGridShippedMetadataWithVisitButton"],s=["BaseBoardPinGrid"]},8320:(e,t,n)=>{n.d(t,{Z:()=>c});var i=n(63552),a=n(883119),r=n(785893);const o={__style:{borderRadius:"4px",padding:"10px 14px"}},s={borderWidth:"1px",borderStyle:"solid",borderColor:"white"},l={__style:{borderRadius:"4px",padding:"10px 14px 9px 8px",whiteSpace:"nowrap"}},c=({accessibilityLabel:e,color:t,customStyles:n,forwardedRef:c,icon:d,inline:u=!1,minHeight:p=40,minWidth:h=70,onTouch:m,pressState:_,shape:g,text:v})=>{const f=(e=>"primary"===e||"transparent"===e||"dark"===e?"inverse":"default")(t),y=(({color:e,icon:t})=>t?l:"transparent"===e?{__style:{...o.__style,...s}}:o)({color:t,icon:d}),b=(0,r.jsx)(a.xu,{position:"relative",children:(0,r.jsx)(a.xu,{color:t,display:u?"inlineBlock":"flex",justifyContent:"center",minHeight:p,minWidth:h,dangerouslySetInlineStyle:"pill"===g?(x=n,{__style:{borderRadius:"24px",paddingTop:"10px",paddingBottom:"10px",paddingLeft:"14px",paddingRight:"14px",...x}}):y,children:(0,r.jsxs)(a.kC,{alignItems:"center",justifyContent:"center",children:[d&&(0,r.jsx)(a.xu,{paddingX:"check"===d?2:0,children:(0,r.jsx)(a.JO,{accessibilityLabel:e,color:f,icon:d,inline:!0,size:"check"===d?16:20})}),(0,r.jsx)(a.xv,{color:f,inline:!0,size:"300",lineClamp:1,weight:"bold",children:v})]})})});var x;return m?(0,r.jsx)(i.Z,{onTouch:m,rounding:"pill"===g?"pill":2,pressState:_||"none",children:(0,r.jsx)(a.xu,{ref:c,children:b})}):b}},313951:(e,t,n)=>{n.d(t,{i5:()=>y,sX:()=>w,aX:()=>b,Z5:()=>f,NG:()=>x,MT:()=>P,iu:()=>S});var i=n(667294),a=n(214494),r=n(682492),o=n.n(r);const s=(e,t)=>e.data[t]&&e.data[t].messages||[];function l(e,t){const n={};return e.filter((e=>!!e)).reduce(((e,i)=>{const a=t(i);return n[a]?(o()(n[a],i),e):(n[a]=i,e.concat([i]))}),[])}function c(e){return[...e].sort(((e,t)=>new Date(e.created_ms||e.created_at)-new Date(t.created_ms||t.created_at)))}function d(e,t,n){return c(l(s(e,t).concat(n),(e=>e.id)))}const u={conversationsUnseenCount:0,data:{},newsHubCount:0,open:null,objectAttachment:null,showConversationsDropdown:!1,showNewMessageView:!1,ui:{},unread:0};function p(e=u,t){if("CONVERSATION_OPEN"===t.type)return{...e,open:t.payload.id,objectAttachment:null,showNewMessageView:!1,ui:{...e.ui,[t.payload.id]:{contactRequestId:t.payload.contactRequestId||"",isPreview:t.payload.isPreview}}};if("CONVERSATION_CLOSE"===t.type)return{...e,open:null,objectAttachment:null,showNewMessageView:!1,ui:{...e.ui,[t.payload.id]:{contactRequestId:t.payload.contactRequestId||"",isPreview:!1,isDeclined:t.payload.isDeclined}}};if("CONVERSATION_CREATE"===t.type){const{id:n}=t.payload;return{...e,data:{...e.data,[n]:{...e.data[n]||{},...t.payload}}}}if("CONVERSATION_DELETE"===t.type){const n={...e,data:{...e.data}},{id:i}=t.payload;return delete n.data[i],n}if("FETCH_COMPLETE"===t.type){const{options:n,resource:i,response:a}=t.payload,r=a.resource_response.data;if("ConversationMessagesResource"===i){const t=r||[],i=(null==n?void 0:n.conversation_id)||"",a=d(e,i,t),o=a[a.length-1];return{...e,data:{...e.data,[i]:{...e.data[i],id:i,messages:a,unread:0,last_message:o}}}}if("ConversationsResource"===i){const t=r||[],n={...e,data:{...e.data}};return t.forEach((e=>{const{id:t,created_at:i,name:a,board:r,emails:o,unread:s,users:l,last_message:c}=e,u=d(n,t,[c]);n.data[t]={...n.data[t],id:t,created_at:i,name:a,board:r,emails:o||[],unread:s||0,users:l||[],last_message:c,messages:u}})),n}if("ConversationResource"===i){const t=r||{},{id:n}=t,i={...e,data:{...e.data}};return n&&(i.data[n]={...i.data[n],...t}),i}if("NewsHubBadgeResource"===i){if(r){const t=r.conversations_unseen_count||0;return{...e,unread:t}}return e}}else{if("MESSAGE_SEND_PENDING"===t.type){const{id:n,message:i}=t.payload;return e.data[n]?{...e,data:{...e.data,[n]:{...e.data[n],id:n,messages:[...e.data[n].messages,i]}}}:e}if("MESSAGE_SEND_PENDING_SUCCESS"===t.type){const{id:n,tempMessage:i,newMessage:a}=t.payload;if(e.data[n]){if(s(e,n).find((e=>e.id===i.id&&e.created_ms===i.created_ms))){const t=c(l(s(e,n).filter((e=>e.id!==i.id)).concat([a]),(e=>e.id)));return{...e,data:{...e.data,[n]:{...e.data[n],last_message:a,messages:t}}}}}return e}if("MESSAGE_SEND_PENDING_FAILURE"===t.type){const{id:n,tempMessageId:i}=t.payload;if(e.data[n]){const t=s(e,n).filter((e=>e.id!==i));return{...e,data:{...e.data,[n]:{...e.data[n],messages:t}}}}return e}if("OPEN_NEW_MESSAGE"===t.type){const{objectAttachment:n}=t.payload||null;return{...e,showNewMessageView:!0,open:null,objectAttachment:n}}if("CLOSE_DROPDOWN"===t.type)return{...e,showConversationsDropdown:!1,objectAttachment:null,showNewMessageView:!1};if("OPEN_DROPDOWN"===t.type)return{...e,showConversationsDropdown:!0};if("UPDATE_NEWSHUB_COUNT"===t.type)return{...e,newsHubCount:t.payload};if("UPDATE_UNREAD_COUNT"===t.type)return{...e,conversationsUnseenCount:t.payload};if("CLEAR_MESSAGE_BADGE"===t.type){const{id:n}=t.payload;return{...e,data:{...e.data,[n]:{...e.data[n],unread:0}}}}if("CONVERSATION_SAVE_POSITION"===t.type){const{id:n,position:i}=t.payload;return{...e,data:{...e.data,[n]:{...e.data[n],position:i}}}}if("CONVERSATION_RESET_POSITION"===t.type){const{id:n}=t.payload;return{...e,data:{...e.data,[n]:{...e.data[n],position:null}}}}if("SET_OBJECT_ATTACHMENT"===t.type){const{objectAttachment:n}=t.payload;return{...e,objectAttachment:n}}if("REMOVE_OBJECT_ATTACHMENT"===t.type)return{...e,objectAttachment:null}}return e}var h=n(425288),m=n(505920),_=n(785893);const g=(()=>{let e=0;return()=>e++})(),{Provider:v,useHook:f}=(0,h.Z)("Conversations");function y({children:e}){const[t,n]=(0,i.useReducer)(p,u),r=(0,i.useCallback)((e=>n({type:"FETCH_COMPLETE",payload:e})),[]);(0,m.Z8)("ConversationMessagesResource",r),(0,m.my)("ConversationMessagesResource",r),(0,m.Z8)("ConversationsResource",r),(0,m.Z8)("ConversationResource",r),(0,m.Z8)("NewsHubBadgeResource",r);const o=(0,i.useCallback)(((e,t=!1,i="")=>n({type:"CONVERSATION_OPEN",payload:{id:e,isPreview:t,contactRequestId:i}})),[]),s=(0,i.useCallback)(((e,t="",i=!1)=>n({type:"CONVERSATION_CLOSE",payload:{id:e,contactRequestId:t,isDeclined:i}})),[]),l=(0,i.useCallback)((e=>n({type:"CONVERSATION_CREATE",payload:e})),[]),c=(0,i.useCallback)((e=>n({type:"CONVERSATION_DELETE",payload:{id:e}})),[]),d=(0,i.useCallback)(((e,t)=>n({type:"CONVERSATION_SAVE_POSITION",payload:{id:e,position:t}})),[]),h=(0,i.useCallback)((e=>n({type:"CONVERSATION_RESET_POSITION",payload:{id:e}})),[]),g=(0,i.useCallback)(((e,t,i)=>{a.Z.create("ConversationsResource",{user_ids:e,emails:t,text:""}).callCreate().then((e=>{const t=e&&e.resource_response.data;n({type:"CONVERSATION_OPEN",payload:{id:t.id}})})).catch((e=>{const t=e.message_detail||e.message||"";i(t)}))}),[]),f=(0,i.useCallback)((()=>{n({type:"CLOSE_DROPDOWN"})}),[]),y=(0,i.useCallback)((()=>{n({type:"OPEN_DROPDOWN"})}),[]),b=(0,i.useCallback)((e=>{n({type:"OPEN_NEW_MESSAGE",payload:{objectAttachment:e}})}),[]),x=(0,i.useCallback)(((e,t)=>n({type:"MESSAGE_SEND_PENDING",payload:{id:e,message:t}})),[]),w=(0,i.useCallback)(((e,t,i)=>n({type:"MESSAGE_SEND_PENDING_SUCCESS",payload:{id:e,tempMessage:t,newMessage:i}})),[]),P=(0,i.useCallback)(((e,t)=>n({type:"MESSAGE_SEND_PENDING_FAILURE",payload:{id:e,tempMessageId:t}})),[]),S=(0,i.useCallback)((e=>n({type:"UPDATE_NEWSHUB_COUNT",payload:e})),[]),k=(0,i.useCallback)((e=>n({type:"UPDATE_UNREAD_COUNT",payload:e})),[]),T=(0,i.useCallback)((e=>n({type:"CLEAR_MESSAGE_BADGE",payload:{id:e}})),[]),I=(0,i.useCallback)((e=>n({type:"SET_OBJECT_ATTACHMENT",payload:{objectAttachment:e}})),[]),A=(0,i.useCallback)((()=>n({type:"REMOVE_OBJECT_ATTACHMENT"})),[]),C=(0,i.useMemo)((()=>({clearMessageBadge:T,conversationOpen:o,conversationClose:s,conversationCreate:l,conversationDelete:c,conversationGet:g,saveConversationPosition:d,resetConversationPosition:h,dropdownClose:f,dropdownOpen:y,newMessageOpen:b,pendingMessageSend:x,pendingMessageSuccess:w,pendingMessageFailure:P,updateNewsHubCount:S,updateUnreadCount:k,conversations:t,setObjectAttachment:I,removeObjectAttachment:A})),[T,o,s,l,c,g,d,h,f,y,b,x,w,P,S,k,t,I,A]);return(0,_.jsx)(v,{value:C,children:e})}function b(){const{conversationCreate:e}=f();return async t=>{let n;const i=a.Z.create("ConversationsResource",t);try{var r;const t=null===(r=(await i.callCreate()).resource_response)||void 0===r?void 0:r.data;t&&(e(t),n=t)}catch(o){throw new Error(o.message)}return n}}function x(){const{conversations:e,conversationCreate:t,pendingMessageSend:n,pendingMessageSuccess:i,pendingMessageFailure:r}=f();return async(o,s,l,c)=>{const{text:d,pinId:u,boardId:p,userId:h,didItId:m}=s;async function _(){const e=a.Z.create("ConversationMessagesResource",{conversation_id:o,text:d,pin:u,board:p,user:h,user_did_it_data:m,source:l}),t=`${g()}`,s={text:d,sender:c,created_at:(new Date).toString(),created_ms:Date.now(),id:t,type:"tempMessage"};n(o,s);try{var _;const t=null===(_=(await e.callCreate()).resource_response)||void 0===_?void 0:_.data;t&&i(o,s,t)}catch(v){throw r(o,t),new Error(v.message)}}if(e.data[o])await _();else{const e=a.Z.create("ConversationResource",{conversation_id:o});try{var v;const n=null===(v=(await e.callGet()).resource_response)||void 0===v?void 0:v.data;n&&(t(n),await _())}catch(f){throw new Error(f.message)}}}}function w(e){const{conversations:t}=f();return t.data[e]}function P(e){const{conversations:t}=f();return t.ui[e]||{contactRequestId:"",isDeclined:!1,isPreview:!1}}function S(){const{conversations:{data:e}}=f(),t=(n=e,Object.keys(n).map((e=>n[e]))).filter((e=>e.users&&e.last_message));var n,i;return i=t,Array.from(i).sort(((e,t)=>new Date((t.last_message||t).created_at)-new Date((e.last_message||e).created_at)))}},57791:(e,t,n)=>{n.d(t,{MZ:()=>D,di:()=>R,Ai:()=>O});var i=n(667294),a=n(296679),r=n(8320),o=n(329900),s=n(926275),l=n(250059),c=n(149230),d=n(407043),u=n(48714),p=n(276775);const h=({children:e,external:t,externalQueryParams:n,target:i,href:a})=>{const{logContextEvent:r}=(0,d.v)(),o=(0,p.useHistory)(),s=(0,p.useLocation)();if(!a)return null;const h=(0,l.Z)(a);return e({navigate:e=>{e.preventDefault(),(0,c.Z)({url:h})||t?(0,u.lI)({href:h,queryParams:n,location:s},r,null):(0,u.G3)({event:e,href:a,history:o,target:"blank"===i?"blank":null})}})};var m=n(883119),_=n(785893);const g=({accessibilityLabel:e,children:t,external:n,externalQueryParams:i,inline:a=!1,newTab:r,nofollow:o,onTouch:s,onBlur:c,onFocus:d,pressState:u,rounding:p,to:g})=>(0,_.jsx)(h,{external:n,target:r?"blank":null,externalQueryParams:i,href:g,children:({navigate:n})=>(0,_.jsx)(m.rU,{accessibilityLabel:e,onBlur:c?({event:e})=>c(e):void 0,onFocus:d?({event:e})=>d(e):void 0,underline:"none",href:(0,l.Z)(g),display:a?"inlineBlock":"block",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),null==s||s(e),e.defaultPrevented||n(e)},rel:o?"nofollow":"none",rounding:p,tapStyle:(Array.isArray(u)?u:[u]).includes("compress")?"compress":"none",children:t})}),v=({external:e,externalQueryParams:t,newTab:n,onTouch:i,to:a,...o})=>(0,_.jsx)(h,{external:e,target:n?"blank":null,externalQueryParams:t,href:a,children:({navigate:e})=>(0,_.jsx)(r.Z,{onTouch:t=>{null==i||i(t),t.defaultPrevented||e(t)},...o})});var f=n(938917),y=n(383690),b=n(112690),x=n(19121),w=n(30287),P=n(598615),S=n(948376),k=n(773285),T=n(780280),I=n(698330),A=n(844974),C=n(339363),E=n(53987);const j=(e,t=!1)=>function({isAppUpsellDisabled:n,...r}){const{children:l,clientTrackingParams:c,deeplinkUri:d,external:u,onTouch:h,refresh:g,to:v,viewParameter:j,viewType:D}=r,O=(0,f.Z)(),[R,L]=(0,i.useState)(!1),[M,F]=(0,i.useState)(!1),[N,z]=(0,i.useState)(!1),[U,Z]=(0,i.useState)("control"),{isAuth:B}=(0,x.Z)(),{userAgent:{platform:V},locale:H}=(0,T.B)(),K=(0,I.Tt)(),W=(0,b.Z)(),{checkExperiment:G}=(0,k.F)(),$=(0,p.useLocation)(),q=(0,y.Z)();(0,i.useEffect)((()=>{!async function(){if("getInstalledRelatedApps"in navigator){z(!0);(await navigator.getInstalledRelatedApps()).length>0&&F(!0)}}()}),[]);const J=()=>{W({event_type:1701,view_type:D,view_parameter:j}),R&&L(!1)};return(0,_.jsxs)(m.xu,{"data-test-id":"deeplink-wrapper",children:[R&&(0,_.jsx)(a.Z,{clientTrackingParams:c,copyChangeGroup:U,deepLinkUri:d,isOpen:!0,onDismiss:()=>{W({component:14157,element:10308,event_type:10220,view_type:D||202,view_parameter:j,aux_data:{app_upsell_type:"deep-link-app-upsell-modal"}})},onOpenInApp:()=>{(0,A.Nh)("deeplinkBehavior","branchfallback"),J()},shouldTrackDismiss:!0,to:v,viewParameter:j,viewType:D,within:"deep-link-app-upsell-modal"}),(0,_.jsx)(o.Z,{children:i=>(0,_.jsx)(e,{...r,onTouch:e=>{const a=O&&!n&&B&&!u&&!g&&!(0,w.FP)(window)&&!("ios"===V&&(H||"").startsWith("ar"))&&(0,S.kp)((0,s.Z)(null==K?void 0:K.created_at));if(a){let t=!0,n=!1;if("string"==typeof d&&(d||"").startsWith("/pin/")&&((0,E.uM)($)||(0,E.am)($)||(0,E.C$)($))){if(N){if(M&&G("mweb_auth_deep_link_app_installed_user").anyEnabled){const e=G("mweb_auth_deep_link_app_installed_user").group;"enabled_triggering_change"===e?t=!1:Z(e)}!M&&G("mweb_auth_deep_link_no_app_installed_user").anyEnabled&&Z(G("mweb_auth_deep_link_no_app_installed_user").group)}}else G("mweb_auth_deep_link_other_triggering").anyEnabled&&(q(),t=!1,"enabled_no_deeplink"===G("mweb_auth_deep_link_other_triggering").group&&(n=!0));t?(e.stopPropagation(),e.preventDefault(),L(!0)):n||(e.stopPropagation(),e.preventDefault(),i(null!=d?d:(0,P.B)($),"deep-link-app-upsell-modal"))}else"branchfallback"!==(0,A.qn)("deeplinkBehavior")||(0,C.qn)("fallbackAttempt")||(e.stopPropagation(),e.preventDefault(),(0,C.Nh)("fallbackAttempt",1),i(d,"deep-link-app-upsell-modal",`${window.location.origin}${r=v,"string"==typeof r?r:`${r.pathname||""}${r.search?`?${r.search}`:""}`}`),J());var r;t&&a||!h||h(e)},children:l})})]})},D=j(g),O=j(v),R=j(r.Z,!0)},79113:(e,t,n)=>{n.d(t,{Z:()=>m});var i=n(667294),a=n(124580),r=n(740990),o=n(223815),s=n(643010),l=n(968121),c=n(965900),d=n(883119),u=n(785893);const p={border:(0,s.Yc)()?void 0:"1px solid #efefef",width:"100vw",maxHeight:"100%",height:"100%",overflow:"auto",top:"0",left:"0",position:"fixed",backgroundColor:(0,s.Yc)()?"#000":"#fff",transition:"transform 0.3s ease-out",WebkitOverflowScrolling:"touch"},h={modalOpen:{__style:{...p}},modalClose:{__style:{...p,transform:"translate3d(0px, 100%, 0px)"}}};function m({accessibilityModalLabel:e,allowClickAndDrag:t,children:n,isOpen:s}){const{setAppFocusState:p}=(0,c.I)(),m=(0,i.useRef)(null);return(0,i.useEffect)((()=>(s&&(a.Z.pause(),p(!1),document.body&&(document.body.style.overflow="hidden")),()=>{s&&(a.Z.resume(),p(!0),document.body&&(document.body.style.overflow=""))})),[s,p]),(0,u.jsx)(o.Z,{allowClickAndDrag:t,children:(0,u.jsx)(d.mh,{zIndex:l.b7,children:(0,u.jsx)(d.xu,{display:"inlineBlock",role:"dialog","aria-label":e,children:(0,u.jsx)(d.xu,{ref:m,dangerouslySetInlineStyle:{__style:s?h.modalOpen.__style:h.modalClose.__style},children:(0,u.jsx)(r.Z.Provider,{value:m.current,children:n})})})})})}},326960:(e,t,n)=>{n.d(t,{Z:()=>p});var i=n(667294),a=n(172071),r=n(883119),o=n(813401),s=n(112690),l=n(785893);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(e,t)=>{const n=e&&e.replace(".","_");return t?n&&n.substring(0,50):n};class u extends i.Component{constructor(...e){super(...e),c(this,"state",{href:void 0}),c(this,"onEvent",(()=>new Promise(((e,t)=>{"undefined"==typeof window&&t();const{filename:n,imgSrc:i,isAndroidTwa:r,isChromeOnIOS:o,isUnauth:s,logContextEvent:l,category:c,viewParameter:u,viewType:p,pinId:h,imageSignature:m}=this.props,{href:_}=this.state;window.AndroidTwa&&window.AndroidTwa.downloadImage?(window.AndroidTwa.downloadImage(i,d(n,r)),e()):o?(this.imageDownload&&this.imageDownload.click(),e()):null==_&&fetch(i,{headers:new Headers({Origin:window.location.origin}),mode:"cors"}).then((e=>e.blob())).then((t=>{this.setState({href:window.URL.createObjectURL(t)},(()=>{this.imageDownload&&(this.imageDownload.click(),e())}))})).catch((()=>this.setState({href:this.DOWNLOAD_ERROR}))),a.Z.increment(`mweb.${s?"unauth":"auth"}.download.click.${c||"no_category"}`),l({event_type:82,object_id_str:h,view_type:p||3,view_parameter:u||139,aux_data:{image_signature:m}})})))),c(this,"DOWNLOAD_ERROR","error")}render(){const{children:e,filename:t,imgSrc:n,isAndroidTwa:a,isChromeOnIOS:o}=this.props,{href:s}=this.state,c=null!=s&&s!==this.DOWNLOAD_ERROR;return(0,l.jsxs)(i.Fragment,{children:[e(this.onEvent),o&&n?(0,l.jsx)(r.xu,{display:"none",children:(0,l.jsx)("a",{ref:e=>this.imageDownload=e,rel:"noopener noreferrer",tabIndex:-1,target:"_blank",href:n})}):c&&(0,l.jsx)(r.xu,{display:"none",children:(0,l.jsx)("a",{ref:e=>this.imageDownload=e,tabIndex:-1,download:d(t,a),href:s})})]})}}function p(e){const t=(0,o.xC)(),n=(0,s.Z)();return(0,l.jsx)(u,{...e,isAndroidTwa:t,logContextEvent:n})}},815613:(e,t,n)=>{n.d(t,{Z:()=>P});var i=n(829407),a=n(898781),r=n(112690),o=n(927383),s=n(201155),l=n(667679),c=n(52022),d=n(19121),u=n(945698),p=n(62409),h=n(773285),m=n(350118),_=n(698330),g=n(50286),v=n(343341),f=n(640064),y=n(867820),b=n(883119),x=n(785893);const w=({children:e,pulsar:t,testId:n})=>t.show?(0,x.jsx)(b.xu,{position:"relative","data-test-id":n,children:(0,x.jsxs)(b.iP,{tapStyle:"none",onTap:t.onClick,children:[(0,x.jsx)(b.xu,{position:"absolute",marginTop:-5,dangerouslySetInlineStyle:{__style:{marginLeft:"-75px"}},children:e}),(0,x.jsx)(b.xu,{position:"absolute",marginTop:-12,dangerouslySetInlineStyle:{__style:{marginLeft:"-83px"}},children:(0,x.jsx)(b.o3,{})})]})}):(0,x.jsx)(b.xu,{"data-test-id":n,children:e});function P({auxData:e,disabled:t,disableLog:n,followEventType:P,id:S,inline:k,invertColors:T,isFollowed:I,isIdeaPin:A,isLegoEnabled:C,isSecondaryButton:E,isUserFollowButton:j,isUserMe:D,onFollow:O,onUnfollow:R,pinId:L,shouldUseLegoColors:M,showPulsar:F,size:N,textType:z="FollowFollowing",unfollowEventType:U,viewParameter:Z,viewType:B}){const V=(0,a.ZP)(),H=(0,g.HG)(),{showToast:K}=(0,v.F9)(),W=(0,c.Z)(),G=(0,r.Z)(),$=(0,l.Z)(),{checkExperiment:q}=(0,h.F)(),J=(0,o.Z)(),Y=(0,d.Z)(),X=Y&&Y.isAuth,{unauthFollowUserId:Q,setUnauthFollowUserId:ee}=(0,f.f)(),te=(0,_.mN)()(S),ne=(0,m.S6)()(null!=L?L:""),{link_domain:ie,native_creator:ae,origin_pinner:re,pinner:oe}=ne||{},se=(0,p.wS)(ie,ae,re,oe),le=null!=te?te:se;(0,i.Z)((()=>{!H&&X&&Q&&S&&Q===S&&O(S)}));const ce=J({fn:()=>{X?I?(R(S),n||G({event_type:U,view_type:B,view_parameter:Z,object_id_str:S,aux_data:e})):(O(S),j&&K((({hideToast:e})=>{if(!le)return null;const t=le.username?`/${le.username}/`:"";return(0,x.jsx)(s.Z,{handleHide:e,text:V.bt("关注中！他们的已创建 Pin 图将在你的主页上显示！", "Following! Their created Pins will show up in your home feed!", "followButton.follow.informationalToastText", undefined, true),userId:S,href:t,imageUrl:le.image_medium_url})})),n||G({event_type:P,view_type:B,view_parameter:Z,object_id_str:S,aux_data:e})):((0,y.My)(`mweb_unauth_follow_button.tap.${String(B)}`),5===B&&26===P&&(0,y.My)("mweb_unauth_board_page_follow_button.tap"),(0,y.NC)(I?"press_profile_unfollow":"press_profile_follow"),W({action:"click",item:"board-follow-button"}),$({reason:"ACTION_REQUIRES_LOGIN_OR_SIGNUP",attributionLabel:A?"click_idea_pin_follow":"click_follow",desktopOptions:{modalType:"signup",modalOptions:H&&q("pcons_dweb_contextual_follow_modal").anyEnabled?{source:"followButton",container:"follow"}:void 0},mobileOptions:!H&&q("pcons_mweb_contextual_follow_modal").anyEnabled?{headingType:"follow"}:void 0}),H||ee(null!=S?S:""),(0,y.NC)("clickthrough"))},modalHeader:(0,u.N4)({i18n:V,toFollow:!I})}),de=!I&&!!F,ue=()=>{if(D)return V.bt("这就是你！", "That's you!", "Follow button is disabled because this is you", undefined, true);if("AddRemove"===z)return I?V.bt("移除", "Remove", "unfollowButton.removeText", undefined, true):V.bt("添加", "Add", "followButton.addText", undefined, true);const e="FollowUnfollow"===z?V.bt("取消关注", "Unfollow", "unfollowButton.unfollowText", undefined, true):V.bt("关注", "Following", "Follow button label - followed state", undefined, true);return I?e:V.bt("关注", "Follow", "Follow button label - unfollowed state", undefined, true)};return(0,x.jsx)(w,{pulsar:de?{show:!0,onClick:ce}:{show:!1},testId:D||I?"board-unfollow-button":"board-follow-button",children:(0,x.jsx)(b.zx,{color:M||"AddRemove"===z||!C&&E||I?"gray":"red",disabled:D||t,fullWidth:k,onClick:de?void 0:({event:t})=>{t.preventDefault(),t.stopPropagation(),n||G({event_type:101,component:13672,element:11951,object_id_str:S,view_type:B,view_parameter:Z,aux_data:e}),ce()},selected:T?!I:M&&I||!!I&&E,size:N,text:ue(),accessibilityLabel:ue()})})}},861411:(e,t,n)=>{n.d(t,{fv:()=>g,GR:()=>p,Hs:()=>f,Mv:()=>m,uc:()=>_,dL:()=>h,qS:()=>v,Y4:()=>x,HE:()=>b,Cy:()=>y});var i=n(667294),a=n(973935),r=n(124580),o=n(407043),s=n(785893);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends i.Component{constructor(...e){super(...e),l(this,"observe",(()=>{try{if(this.node=(0,a.findDOMNode)(this),this.node instanceof HTMLElement){const{pinIdStr:e,newsIdStr:t}=this.props.eventData;r.Z.start(this.node).onExitViewport(this.logImpression).setDebugId(e||t||"unknown")}}catch(e){window.console.error('Can only track impressions for type "HTMLElement"')}})),l(this,"logImpression",(e=>{this.props.logImpression({viewData:this.props.viewData||{},viewType:this.props.viewType,viewParameter:this.props.viewParameter,eventType:this.props.eventType,impressionType:this.props.impressionType,auxData:this.props.auxData,component:this.props.component,objectIdStr:this.props.objectIdStr,eventData:{endTime:e.endTime,time:e.startTime,...this.props.eventData}})}))}componentDidMount(){this.props.isPaused||this.observe()}componentDidUpdate(e){e.isPaused&&!this.props.isPaused&&this.observe()}componentWillUnmount(){this.node instanceof HTMLElement&&r.Z.stop(this.node)}render(){return i.Children.only(this.props.children)}}function d(e){const{logImpression:t}=(0,o.v)();return(0,s.jsx)(c,{...e,logImpression:t})}function u({auxData:e,component:t,eventData:n,eventType:a,impressionType:s,isPaused:l,objectIdStr:c,viewData:d,viewType:u,viewParameter:p}){const h=(0,i.useRef)(null),{logImpression:m}=(0,o.v)(),_=(0,i.useCallback)((()=>{const i=i=>{var r,o,l,_;m({viewData:d||{},viewType:u,viewParameter:p,eventType:a,impressionType:s,auxData:e,component:t,objectIdStr:c,eventData:{endTime:i.endTime,time:i.startTime,pinCellWidth:(null===(r=h.current)||void 0===r?void 0:r.getBoundingClientRect().width)||0,pinCellHeight:(null===(o=h.current)||void 0===o?void 0:o.getBoundingClientRect().height)||0,windowWidth:null===(l=window)||void 0===l?void 0:l.innerWidth,windowHeight:null===(_=window)||void 0===_?void 0:_.innerHeight,...n}})};try{if(h.current instanceof HTMLElement){const{pinIdStr:e,newsIdStr:t}=n;r.Z.start(h.current).onExitViewport(i).setDebugId(e||t||"unknown")}}catch(o){window.console.error('Can only track impressions for type "HTMLElement"')}}),[h.current]);return(0,i.useEffect)((()=>{l||_();const e=h.current;return()=>{e instanceof HTMLElement&&r.Z.stop(e)}}),[l,_]),h}const p=e=>(0,s.jsx)(d,{eventData:{...e.impressionData||{},pinIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:18,impressionType:"pinImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter,children:e.children}),h=e=>{const t=u({eventData:{...e.impressionData||{},pinIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:18,impressionType:"pinImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},m=e=>{const t=u({eventData:{newsIdStr:e.notificationId,newsType:e.newsType,displayMode:e.displayMode,newsIndex:e.newsIndex||0,tapItemIdStr:e.tapItemIdStr},auxData:e.auxData||{},eventType:4111,impressionType:"notificationDetailImpressions",loggingId:e.notificationId,viewType:107,viewParameter:3082});return e.children({impressionTrackerRef:t})},_=e=>{const t=u({eventData:{newsIdStr:e.notificationId,newsType:e.newsType},auxData:e.auxData||{},eventType:4110,impressionType:"notificationFeedImpressions",loggingId:e.notificationId,viewType:107,viewParameter:3081});return e.children({impressionTrackerRef:t})},g=e=>(0,s.jsx)(d,{eventData:{...e.impressionData||{},articleIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:3829,impressionType:"articleImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter,children:e.children}),v=e=>{const t=u({eventData:{...e.impressionData||{},storyIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:170,impressionType:"storyImpression",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},f=e=>(0,s.jsx)(d,{eventData:{...e.impressionData||{},storyIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:170,impressionType:"storyImpression",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter,children:e.children}),y=e=>{const t=u({eventData:{...e.impressionData||{},userIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex||0},auxData:e.auxData||{},component:e.component,eventType:3704,impressionType:"userImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},b=e=>{const t=u({eventData:{...e.impressionData||{},topicIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex||0},auxData:e.auxData||{},component:e.component,eventType:3703,impressionType:"topicImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},x=e=>{const t=u({eventData:{...e.impressionData||{},clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:8569,impressionType:"todayArticleImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})}},904779:(e,t,n)=>{n.d(t,{K:()=>o,T:()=>s});var i=n(667294),a=n(785893);const r=(0,i.createContext)({getPinFeedbackStatus:()=>{},setPinFeedbackStatus:()=>{}}),o=()=>(0,i.useContext)(r);function s({children:e}){const[t,n]=(0,i.useState)(Object.freeze({})),o=(0,i.useMemo)((()=>({getPinFeedbackStatus:({pinId:e})=>t[e],setPinFeedbackStatus:({pinId:e,pinFeedbackStatus:i})=>n({...t,[e]:i})})),[t]);return(0,a.jsx)(r.Provider,{value:o,children:e})}},255607:(e,t,n)=>{function i(e){const t=Object.keys(e);if(t.length>0){return t.sort(((t,n)=>e[n]-e[t])).slice(0,3)}return null}function a(e){const t=Object.values(e);if(t.length>0){return t.reduce(((e,t)=>e+t),0)}return 0}function r({boardIsCollaborative:e,isDownstreamPromotion:t,isPromoted:n,storyPinDataId:i,videosId:a,isEligibleForStaticImageIdeaPin:r}){return!(n||t||!a&&!i||null!=e&&e||r)}n.d(t,{At:()=>i,J6:()=>r,Ud:()=>a})},130460:(e,t,n)=>{n.d(t,{bn:()=>s,fJ:()=>c,gC:()=>l});var i=n(702664),a=n(425288),r=n(785893);const{Provider:o,useHook:s}=(0,a.Z)("Boards");function l(){const e=s();return t=>e[t]}function c({children:e}){const t=(0,i.useSelector)((({boards:e})=>e),i.shallowEqual);return(0,r.jsx)(o,{value:t,children:e})}},698330:(e,t,n)=>{n.d(t,{Tt:()=>u,cm:()=>d,kW:()=>l,kY:()=>p,mN:()=>c});var i=n(702664),a=n(19121),r=n(425288),o=n(785893);const{Provider:s,useHook:l}=(0,r.Z)("Users");function c(){const e=l();return t=>e[t]}function d(){const e=l();return t=>{const n=Object.keys(e).find((n=>e[n].username===t));return e[null!=n?n:""]}}function u(){const{id:e}=(0,a.Z)();return l()[null!=e?e:""]}function p({children:e}){const t=(0,i.useSelector)((({users:e})=>e),i.shallowEqual);return(0,o.jsx)(s,{value:t,children:e})}},349741:(e,t,n)=>{n.d(t,{Z:()=>w});var i=n(667294),a=n(327212),r=n(830157),o=n(499128),s=n(898781),l=n(349700),c=n(883119),d=n(785893);function u({hideToast:e,newPin:t,originalPinId:n}){var i,a;const r=(0,s.ZP)();return(0,d.jsx)(o.ZP,{primaryAction:{accessibilityLabel:r.bt("更改已收藏 Pin 图按钮", "Change saved Pin button", "RepinRequest.a11yChangeButton", undefined, true),href:`/pin/${t.id}/repin/?isEditingPin=true&pinBoardId=${null!==(i=null===(a=t.board)||void 0===a?void 0:a.id)&&void 0!==i?i:""}&&isFromToast=true&&originalPinId=${null!=n?n:""}`,label:r.bt("更改", "Change", "RepinRequest.ChangeButton", undefined, true),size:"lg",onClick:e},duration:5e3,onHide:e,text:(0,d.jsx)(c.xv,{children:(0,l.nk)(r.bt("已收藏至 {{ profile }}", "Saved to {{ profile }}", "RepinRequest.ProfileSaveToastText", undefined, true),{profile:(0,d.jsx)(c.xv,{inline:!0,weight:"bold",children:r.bt("个人资料", "Profile", "RepinRequest.ProfileSaveToastText.Profile", undefined, true)})})}),thumbnail:{icon:(0,d.jsx)(c.JO,{accessibilityLabel:r.bt("个人资料", "Profile", "RepinRequest.ProfileIcon", undefined, true),icon:"history",size:22})}})}var p=n(214494),h=n(483025),m=n(414327),_=n(332611),g=n(675752),v=n(56632),f=n(12918),y=n(782677);const b="RepinResource",x=({board:e,section:t})=>{const n=(0,s.ZP)();return t?(0,l.nk)(n.bt("已将 {{sectionName}} 收藏至 {{boardName}}", "Saved to {{sectionName}} in {{boardName}}", "Toast for successfully saving to a section within a board", undefined, true),{sectionName:t&&t.title,boardName:e.name}).join(""):(0,d.jsxs)(i.Fragment,{children:[(0,d.jsx)(c.xv,{color:"default",children:n.bt("收藏至", "Saved to", "Saved to {{ boardName }}", undefined, true)}),(0,d.jsx)(c.xv,{color:"default",weight:"bold",children:e.name})]})};class w{constructor({boardId:e,dispatch:t,history:n,isOneTapSave:i=!1,isQuickSave:a=!1,onSuccess:o,onUndo:s,originalPinId:l,pin:c,section:d,showNewUserSavetoProfileAnimation:u=!1,showRepinToasts:p,trackingParams:m,userId:_,viewType:g,historyPush:v,suggestedBoardIds:f,savePinId:b}){var x,w,P,S,k;k=e=>(0,y.Fv)(e.resource_response.data,h.Z.RepinResource),(S="_getNormalizedResponse")in(P=this)?Object.defineProperty(P,S,{value:k,enumerable:!0,configurable:!0,writable:!0}):P[S]=k,this.boardId=e,this.trackingParams=m,this.clientTrackingParams=(0,r.Z)(m.clientTrackingParams||"",c.tracking_params),this.dispatch=t,this.history=n,this.onSuccess=o,this.onUndo=s,this.originalPinId=l,this.pin=c,this.pinnedToBoardId=m.pinnedToBoardId||(null!==(x=null===(w=c.pinned_to_board)||void 0===w?void 0:w.id)&&void 0!==x?x:""),this.showNewUserSavetoProfileAnimation=u,this.showRepinToasts=p,this.section=d,this.isOneTapSave=i,this.isQuickSave=a,this.userId=_,this.viewType=null!=g?g:3,this.historyPush=v,this.suggestedBoardIds=f,this.savePinId=b}get resourceOptions(){const{link:e,title:t,promoted_is_removable:n,id:i}=this.pin,a=n?{is_removable:!0}:{};return{pin_id:i,board_id:this.boardId,section:this.section&&this.section.id,clientTrackingParams:this.clientTrackingParams,link:null!=e?e:"",title:null!=t?t:"",user_id:this.userId,is_removable:a}}get trackingData(){return{event_type:5,element:this.isOneTapSave?10599:void 0,view_type:this.viewType,component:this.isOneTapSave?0:7,view_parameter:this.isOneTapSave?3173:(0,g.A)(this.pin),object_id_str:this.pin.id,clientTrackingParams:this.clientTrackingParams,aux_data:{board_id:this.pinnedToBoardId,destination_board_id:this.boardId,is_profile_save:!this.boardId,pin_id:this.pin.id,suggested_boards:this.suggestedBoardIds}}}_createRepin(){return p.Z.create(b,{...this.resourceOptions,disable_event_log_info:!0}).callCreate()}processRepin(e){return this._createRepin().then((t=>{this.onSuccess&&this.onSuccess();const n=t.resource_response.data,{board:i}=n,{isQuickSave:r,originalPinId:o,showNewUserSavetoProfileAnimation:l}=this,p=({hideToast:e})=>{var t;if(r&&!l)return(0,d.jsx)(u,{hideToast:e,newPin:n,originalPinId:o});const{thumbnail:p}=(0,v.L)(i.id);return(0,d.jsx)(a.Z,{button:(0,d.jsx)(s.oz,{children:e=>(0,d.jsx)(c.zx,{fullWidth:!0,onClick:({event:t})=>{t.preventDefault(),t.stopPropagation();const a=this.onUndo;var r;a&&!l?a(this.pin.id,n.id,i.id,null===(r=this.section)||void 0===r?void 0:r.id,e):l&&this.historyPush(`/pin/${n.id}/repin/?isEditingPin=true&pinBoardId=${i.id}&&isFromToast=true&&originalPinId=${null!=o?o:""}`)},text:l?e.bt("整理", "Organize", "RepinRequest.OrganizeButton", undefined, true):e.bt("撤销", "Undo", "RepinRequest.UndoButton", undefined, true)})}),href:this.section?`${i.url}${null!==(t=this.section.slug)&&void 0!==t?t:""}`:i.url,isRepinToExistingBoard:!0,onHide:e,text:(0,d.jsx)(x,{board:i,section:this.section}),thumbnail:p})},h=this._getNormalizedResponse(t);if(this.dispatch((0,m.XM)(b,this.resourceOptions,t,h)),this.savePinId(this.resourceOptions.pin_id,n.id),this.originalPinId&&this.originalPinId!==this.resourceOptions.pin_id){const e={...this.resourceOptions,pin_id:this.originalPinId};this.dispatch((0,m.XM)(b,e,t,h)),this.savePinId(this.originalPinId,n.id)}this.dispatch((0,f.M)(n.id,i.id,this.section?this.section.id:void 0,this.userId));const g=this.showRepinToasts;return g&&g(p),this.dispatch((0,_.fO)({event_type:5})),e(this.trackingData),n}))}}},21384:(e,t,n)=>{n.d(t,{Z:()=>I});var i=n(667294),a=n(702664),r=n(373420),o=n(430322),s=n(121151),l=n(898781),c=n(643010),d=n(883119),u=n(50286),p=n(785893);function h({showFullScreenInfo:e,isOpen:t,interstitialUpsellDismissed:n,children:i}){const a=(0,l.ZP)(),r=(0,u.HG)(),h=(0,u.Wb)();return h||r?(0,p.jsx)(s.ZP,{accessibilityModalLabel:"",mobileHideCloseIcon:!0,mobileIsFullscreen:!0,isOpen:e&&!h,closeOnOutsideClick:!1,onDismiss:()=>{},children:(0,p.jsx)(d.xu,{color:(0,c.Yc)()?"dark":"default",dangerouslySetInlineStyle:{__style:{border:(0,c.Yc)()?void 0:"1px solid #efefef",transition:"transform 0.3s ease-out",WebkitOverflowScrolling:"touch"}},height:"100%",left:!0,maxHeight:"100%",overflow:"auto",position:"fixed",top:!0,width:r?"100vw":"100%",zIndex:new d.Ry(1),children:(0,p.jsx)(d.xu,{bottom:!0,left:!0,right:!0,top:!0,position:"fixed",padding:5,overflow:"scroll",marginTop:n?0:12,children:i})})}):(0,p.jsx)(o.default,{accessibilityModalLabel:a.bt("关闭", "Close", "Close modal window", undefined, true),isOpen:t,onDismiss:()=>{},mobileAccessibilityCloseIconLabel:a.bt("关闭", "Close", "Close modal window", undefined, true),children:i})}var m,_=n(784590),g=n(690035),v=n(52022),f=n(385801),y=n(867820),b=n(780280),x=n(167912);const w=void 0!==m?m:m=n(276667);function P({iconColor:e,size:t,isMainPin:n,isAuth:o,pinCreditPrefix:s,onClickTitleOrDomain:c,pinId:m,graphqlRef:_}){const x=(0,l.ZP)(),w=(0,v.Z)(),{isBot:P}=(0,b.B)(),{unauthInterstitialDismissed:S}=(0,a.useSelector)((({session:e})=>e)),[k,T]=(0,i.useState)(!1),I=(0,u.HG)(),A=(0,u.Wb)(),C=(0,g.Z)(),E=!A&&!o,j=!I,D=(0,p.jsxs)(d.xu,{padding:5,dangerouslySetInlineStyle:E?{__style:{paddingTop:0,paddingBottom:30}}:void 0,children:[(0,p.jsx)(d.xu,{left:!0,position:"absolute",top:!0,color:"default",padding:4,"data-test-id":"close-seo-vase-see-more-button",children:(0,p.jsx)(d.hU,{accessibilityLabel:x.bt("取消", "Cancel", "close modal icon", undefined, true),icon:"cancel",size:"sm",onClick:()=>{(0,y.My)("mweb.unauth.see_more.dismissed"),w({action:"click",item:"close-seo-vase-see-more-button"}),T(!1),n&&(0,y.My)("mweb.unauth.see_more.main_pin.dismissed")},iconColor:"gray"})}),(0,p.jsx)(d.xu,{marginBottom:E?0:8,children:(0,p.jsx)(d.xv,{align:E?"start":"center",weight:E?void 0:"bold",children:(0,p.jsx)("span",{className:"deprecatedTextSizeXL",children:E?null:x.bt("更多信息", "More information", "more information label", undefined, true)})})}),(0,p.jsx)(f.Z,{pinCreditPrefix:s,onClickTitleOrDomain:c,pinId:m,queryRef:_})]});return(0,p.jsxs)(d.xu,{right:!0,"data-test-id":"SeoVaseSeeMoreButton",dangerouslySetInlineStyle:{__style:{float:"right"}},children:[(0,p.jsx)(d.hU,{accessibilityLabel:x.bt("查看更多", "See more", "more information icon", undefined, true),icon:"ellipsis",iconColor:null!=e?e:"gray",size:t||"md",onClick:({event:e})=>{e.stopPropagation(),(0,y.My)("mweb.unauth.see_more.shown."+(n?"main_pin":"related_pins")),w({action:"click",item:"seo-vase-see-more-button"}),A||o?(T(!0),n&&(0,y.My)("mweb.unauth.see_more.main_pin.shown")):C({pinId:m||"",location:n?"main-pin-more-information":"non-main-pin-more-information",vaseSection:(0,p.jsx)(f.Z,{pinCreditPrefix:s,onClickTitleOrDomain:c,pinId:m,queryRef:_})})}}),P&&j?(0,p.jsx)(d.xu,{display:k?"flex":"none",children:D}):(0,p.jsx)(h,{showFullScreenInfo:k,isOpen:k&&!A,interstitialUpsellDismissed:!!S,children:D}),A&&k&&(0,p.jsx)(r.default,{accessibilityModalLabel:"test",onDismiss:()=>{},children:D})]})}function S(e){const t=(0,x.useFragment)(w,e.graphqlRef);return(0,p.jsx)(P,{iconColor:e.iconColor,size:e.size,isAuth:e.isAuth,isMainPin:e.isMainPin,pinCreditPrefix:e.pinCreditPrefix,onClickTitleOrDomain:e.onClickTitleOrDomain,pinId:e.pinId,graphqlRef:t})}function k(e){return(0,p.jsx)(P,{iconColor:e.iconColor,size:e.size,isAuth:e.isAuth,isMainPin:e.isMainPin,pinCreditPrefix:e.pinCreditPrefix,onClickTitleOrDomain:e.onClickTitleOrDomain,pinId:e.pinId})}function T(e){return(0,_.Z)({name:"PinResource",options:{id:e.pinId,field_set_key:"unauth_ssr_lazy_load"}}),(0,p.jsx)(k,{...e})}function I(e){return e.graphqlRef?(0,p.jsx)(S,{...e}):e.lazyLoadAnnotations?(0,p.jsx)(T,{...e}):(0,p.jsx)(k,{...e})}},108234:(e,t,n)=>{n.d(t,{Z:()=>g,s:()=>_});var i=n(667294),a=n(121151),r=n(608575),o=n(898781),s=n(349700),l=n(883119),c=n(785893);const d=()=>{var e;const t=(0,o.ZP)(),{dismissWarning:n}=null!==(e=_())&&void 0!==e?e:{};return(0,c.jsx)(l.xu,{paddingX:3,children:(0,c.jsx)(l.zx,{fullWidth:!0,color:"red",onClick:n,text:t.bt("确定", "Okay", "Dismiss a modal stating that clicking through to a link has been blocked", undefined, true)})})},u=()=>{const e=(0,o.ZP)();return(0,c.jsx)(l.xv,{inline:!0,weight:"bold",children:(0,c.jsx)(l.rU,{target:"blank",href:"https://policy.pinterest.com/community-guidelines#section-spam",display:"inlineBlock",underline:"hover",children:e.bt("了解更多", "Learn more", "Link text leading to policy website", undefined, true)})})},p=({message:e,sanitized_url:t})=>{var n;const i=(0,o.ZP)(),{dismissWarning:p}=null!==(n=_())&&void 0!==n?n:{};return(0,c.jsx)(a.ZP,{accessibilityModalLabel:i.bt("我们已屏蔽此链接", "We have blocked this link", "Modal label when clicking a spammy link", undefined, true),onDismiss:p,heading:i.bt("提醒！", "Heads up!", "Modal heading when clicking through to a link has been blocked", undefined, true),footer:(0,c.jsx)(d,{}),children:(0,c.jsxs)(l.xu,{padding:6,children:[(0,c.jsx)(l.xv,{children:(0,s.nk)("{{ message }} {{ learnMore }}",{message:e,learnMore:(0,c.jsx)(u,{},"learnMoreLink")})}),(0,c.jsxs)(l.xu,{alignItems:"center",display:"flex",marginTop:4,children:[(0,c.jsx)(l.xu,{marginEnd:3,children:(0,c.jsx)(l.JO,{accessibilityLabel:i.bt("已屏蔽的链接地址", "Blocked link address", "Icon label preceding a block url", undefined, true),color:"error",icon:"report",inline:!0,size:24})}),(0,c.jsx)(l.xv,{inline:!0,lineClamp:1,weight:"bold",children:r.parse(t).hostname})]})]})})};var h=n(425288);const{Provider:m,useMaybeHook:_}=(0,h.Z)("SpammyClickthrough");function g({children:e}){const[t,n]=(0,i.useState)(null),a=(0,i.useCallback)((()=>{n(null)}),[n]),r=(0,i.useCallback)((e=>{n(e)}),[n]),o=(0,i.useMemo)((()=>({dismissWarning:a,showWarning:r})),[a,r]);return(0,c.jsxs)(m,{value:o,children:[t&&(0,c.jsx)(p,{...t}),e]})}},640064:(e,t,n)=>{n.d(t,{f:()=>s,w:()=>l});var i=n(667294),a=n(425288),r=n(785893);const{Provider:o,useHook:s}=(0,a.Z)("Session");function l({children:e}){const[t,n]=(0,i.useState)(void 0),a=(0,i.useCallback)((()=>n(void 0)),[]),s=(0,i.useMemo)((()=>({unauthFollowUserId:t,setUnauthFollowUserId:n,removeUnauthFollowUserId:a})),[t,a]);return(0,r.jsx)(o,{value:s,children:e})}},394332:(e,t,n)=>{n.d(t,{Z:()=>x});var i,a=n(667294),r=n(391254),o=n(941646),s=n(862193),l=n(898781),c=n(52022),d=n(992750),u=n(350118),p=n(883119),h=n(167912),m=n(785893);const _=void 0!==i?i:i=n(85934);function g({direction:e,handleClick:t,testId:n}){const i=(0,l.ZP)(),a=(0,c.Z)();return(0,m.jsx)("div",{style:{alignItems:"center",background:`linear-gradient(to ${"left"===e?"right":"left"}, rgba(255,255,255,1) 25%,rgba(255,255,255,0) 100%)`,border:"none",cursor:"pointer",display:"flex",height:30,lineHeight:25,outline:"none",paddingBottom:4,paddingTop:4,position:"absolute",top:0,width:45,..."right"===e?{right:0,justifyContent:"flex-end",textAlign:"right"}:{left:0}},onClick:e=>{a({action:"click",item:"board-pills-arrow"}),t(e)},role:"button","aria-label":"arrow",tabIndex:-1,"aria-hidden":"true","data-test-id":n,children:(0,m.jsx)(o.Z,{id:"board-pills-arrow",children:(0,m.jsx)(p.JO,{accessibilityLabel:i.bt("滚动", "Scroll", "annotations.scrollArrow", undefined, true),icon:"right"===e?"arrow-forward":"arrow-back",size:8,color:"subtle"})})})}function v({name:e,url:t}){const[n,i]=(0,a.useState)(!1),r=(0,c.Z)();return(0,m.jsx)(p.xu,{"data-test-id":"vase-tag",display:"inlineBlock",marginTop:1,marginEnd:1,paddingX:2,paddingY:1,height:26,color:"secondary",rounding:8,dangerouslySetInlineStyle:{__style:{whiteSpace:"nowrap"}},onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:(0,m.jsx)(p.xv,{color:n?"subtle":"default",inline:!0,overflow:"breakWord",size:"100",weight:"bold",children:t?(0,m.jsx)(p.rU,{display:"inlineBlock",tapStyle:"compress",href:t,rounding:8,onClick:()=>{r({action:"click",item:"vase-tag"})},underline:"hover",children:e}):e})})}function f({pinJoinVisualAnnotation:e,pinJoinAnnotationsWithLinks:t,mode:n}){const[i,s]=(0,a.useState)(!1),[l,u]=(0,a.useState)(!1),h=(0,c.Z)(),_=(0,a.useRef)(null);(0,a.useEffect)((()=>{const e=_.current,t=()=>{if("inlineWithScrollArrows"===n&&_.current){const e=_.current,t=Math.max(0,e.scrollLeft),n=t+e.clientWidth;s(0!==t),u(n<e.scrollWidth)}else s(!1),u(!1)};return t(),null==e||e.addEventListener("scroll",t),()=>{null==e||e.removeEventListener("scroll",t)}}),[n]);const f=e=>t=>{t.preventDefault(),t.stopPropagation(),"right"===e&&h({action:"click",item:"board-pills-arrow-button-right"});const n=_.current;if(!n)return;const i=("left"===e?-1:1)*n.clientWidth*.5;n.scrollLeft=Math.min(Math.max(n.scrollLeft+i,0),n.scrollWidth)},{annotationsWithLinks:y}=(0,d.eK)({pinJoinVisualAnnotation:e,pinJoinAnnotationsWithLinks:t});return(0,m.jsx)(p.kC,{alignItems:"center",justifyContent:"end",children:(0,m.jsxs)(p.xu,{display:"flex",overflow:"auto",width:"100%",position:"relative","data-test-id":"vase-carousel",children:[(0,m.jsx)(r.Z,{unsafeCSS:"\n::-webkit-scrollbar {\n  display: none;\n}\n"}),i&&(0,m.jsx)(g,{direction:"left",handleClick:f("left"),testId:"left-scroll-arrow"}),(0,m.jsx)(p.xu,{overflow:"auto",padding:0,dangerouslySetInlineStyle:{__style:{scrollBehavior:"smooth",scrollbarWidth:"none",whiteSpace:"nowrap"}},ref:_,children:y.map((({name:e,url:t})=>(0,m.jsx)(v,{name:e,url:t},t||e)))}),l&&(0,m.jsx)(o.Z,{id:"board-pills-arrow-button-right",children:(0,m.jsx)(g,{direction:"right",handleClick:f("right"),testId:"right-scroll-arrow"})})]})})}function y(e){var t;const n=(0,h.useFragment)(_,e.graphqlRef),i=(0,s.Z)(n),a=(null==n||null===(t=n.pinJoin)||void 0===t?void 0:t.visualAnnotation)||[];return a.length<1?null:(0,m.jsx)(f,{mode:e.mode,pinJoinVisualAnnotation:a,pinJoinAnnotationsWithLinks:i||void 0})}function b(e){var t,n,i;const a=(0,u.S6)()(e.pinId||"");return((null==a||null===(t=a.pin_join)||void 0===t?void 0:t.visual_annotation)||[]).length<1?null:(0,m.jsx)(f,{mode:e.mode,pinJoinVisualAnnotation:null==a||null===(n=a.pin_join)||void 0===n?void 0:n.visual_annotation,pinJoinAnnotationsWithLinks:null==a||null===(i=a.pin_join)||void 0===i?void 0:i.annotations_with_links})}function x(e){return e.graphqlRef?(0,m.jsx)(y,{...e}):(0,m.jsx)(b,{...e})}},385801:(e,t,n)=>{n.d(t,{Z:()=>T});var i=n(667294),a=n(934494),r=n(927104),o=n(941646),s=n(52022),l=n(867820),c=n(50286),d=n(883119),u=n(785893);function p({boardUrl:e,boardName:t,boardPrivacy:n,pinnerFullName:i,pinnerImageSmallUrl:a,pinnerImageLargeUrl:r}){const p=(0,c.HG)(),h=(0,s.Z)();if(!e||!t)return null;const m=e.split("/")[1],_=i||m,g=a||r;return(0,u.jsxs)(d.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:[g?(0,u.jsx)(d.iP,{role:"link",href:`/${m}/`,fullWidth:!1,tapStyle:"compress",onTap:()=>{(0,l.My)(`pcons.${p?"desktop":"mobile"}.see-more-button-creator`),h({action:"click",item:"see-more-button-creator"})},children:(0,u.jsx)(d.xu,{rounding:"circle",width:32,height:32,overflow:"hidden",marginEnd:2,"data-test-id":"see-more-button-creator",children:(0,u.jsx)(d.Ee,{naturalHeight:32,naturalWidth:32,alt:_,fit:"cover",color:"rgb(231, 186, 176)",src:g})})},"profile-link"):null,(0,u.jsxs)(d.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:[(0,u.jsx)(o.Z,{id:"see-more-button-creator-full-name",children:(0,u.jsx)(d.iP,{onTap:()=>{(0,l.My)(`pcons.${p?"desktop":"mobile"}.see-more-button-creator-full-name`),h({action:"click",item:"see-more-button-creator-full-name"})},children:(0,u.jsx)(d.xv,{color:"default",inline:!0,size:"100",weight:"bold",children:(0,u.jsx)(d.rU,{href:`/${m}/`,display:"inlineBlock",tapStyle:"compress",underline:"hover",children:_},"profile-link")},"profileLink")})}),"protected"===n?null:(0,u.jsx)(d.xv,{color:"default",inline:!0,size:"100",children:(0,u.jsx)(d.rU,{href:null!=e?e:"",display:"inlineBlock",tapStyle:"compress",underline:"hover",children:null!=t?t:""},"board-link")},"boardLink")]})]})}var h,m=n(898781),_=n(394332),g=n(349700),v=n(623568),f=n(350118),y=n(780280),b=n(992750),x=n(298024),w=n(167912);const P=void 0!==h?h:h=n(877821);function S({pin:e,pinId:t,forwardRef:n,onClickTitleOrDomain:a,pinCreditPrefix:o}){var h,f,w,P,S,k,T,I,A;const C=(0,m.ZP)(),E=(0,c.ml)(),j=(0,c.Wb)(),{isAuthenticated:D,isBot:O}=(0,y.B)(),R=(0,s.Z)(),L=!D&&!O&&E,M=a||null,[F,N]=(0,i.useState)(!1),z=(0,x.si)(),U=(0,x.Re)(),Z=(0,b.fs)({pinTitle:e.title,gridTitle:e.gridTitle,richSummaryDisplayName:null===(h=e.richSummary)||void 0===h?void 0:h.displayName,richMetadataTitle:null===(f=e.richMetadata)||void 0===f?void 0:f.title,storyPinDataId:e.storyPinDataId,storyPinDataMetadataPinTitle:null===(w=e.storyPinData)||void 0===w||null===(P=w.metadata)||void 0===P?void 0:P.pinTitle})||e.description,B=(Z||"").length>U,{description:V}=(0,b.eK)({richMetadataDescription:null===(S=e.richMetadata)||void 0===S?void 0:S.description,richSummaryDisplayName:null===(k=e.richSummary)||void 0===k?void 0:k.displayName,closeupUnifiedDescription:e.closeupUnifiedDescription}),H=V.length>z,[K,W]=(0,i.useState)(!H&&!B),G=(0,v._S)(e.domain)?e.domain:"";return(0,u.jsxs)(d.xu,{children:[(0,u.jsxs)(d.xu,{children:[(0,u.jsxs)(d.xu,{as:"figcaption",paddingX:j?11:0,children:[(0,u.jsx)(d.X6,{color:"default",size:"300",accessibilityLevel:3,children:F||O?Z:(0,r.Z)(Z||"",U)}),!!Z&&(0,u.jsx)(d.xu,{height:V?8:0}),V&&(H||B)?(0,u.jsxs)(d.iP,{onTap:()=>{F||D||((0,l.NC)("click_open_description_in_sheet"),R({action:"click",item:"more-description-in-sheet"})),W(!K),N(!F)},fullWidth:!1,children:[(0,u.jsx)(d.xv,{color:"default",size:"200",inline:!0,children:F||O?V:(0,r.Z)(V,z)}),(0,u.jsx)(d.xu,{display:"inlineBlock",paddingX:1,children:(0,u.jsx)(d.xv,{weight:"bold",size:"200",inline:!0,children:F||O?C.bt("折叠", "Less", "Toggle less description button", undefined, true):C.bt("展开", "More", "Toggle more description button", undefined, true)})})]}):(0,u.jsx)(d.xv,{color:"default",size:"200",inline:!0,children:V})]}),L&&(K||O)&&!!G&&(0,u.jsx)(d.xu,{marginTop:2,children:(0,u.jsx)(d.kC,{alignItems:"center",direction:"row",width:"100%",children:(0,g.nk)(C.bt("{{ pinCreditPrefix }}自 {{ pinCredit }}", "{{ pinCreditPrefix }} {{ pinCredit }}", "tells the user where the pin is from in the form of Saved from website", undefined, true),{pinCreditPrefix:(0,u.jsx)(d.xu,{display:"inlineBlock",children:(0,u.jsx)(d.xv,{inline:!0,size:"200",children:o})},"pinCreditsPrefix"),pinCredit:(0,u.jsx)(d.xu,{display:"inlineBlock",marginStart:1,maxWidth:"60vw","data-test-id":"pin-domain-link",children:(0,u.jsx)(d.iP,{onTap:({event:e})=>{e.preventDefault(),e.stopPropagation(),R({action:"click",item:"pin-domain-link"}),(0,l.My)("mweb_pin_page.pin_link.clickthrouh"),D||(0,l.NC)("click_pin_closeup_link_clickthrough"),M&&M()},tapStyle:"compress",children:(0,u.jsx)(d.xv,{size:"200",lineClamp:1,children:(0,u.jsx)("span",{style:{textDecoration:"underline"},children:G})},"pinLinkDomain")})},"pinCredits")})})})]}),!!e.board&&(K||O)&&(0,u.jsx)(d.xu,{marginTop:4,children:(0,u.jsx)(p,{boardUrl:e.board.url||void 0,boardName:e.board.name||void 0,boardPrivacy:e.board.privacy||void 0,pinnerFullName:(null===(T=e.pinner)||void 0===T?void 0:T.fullName)||void 0,pinnerImageSmallUrl:null===(I=e.pinner)||void 0===I?void 0:I.imageSmallUrl,pinnerImageLargeUrl:null===(A=e.pinner)||void 0===A?void 0:A.imageLargeUrl})}),(0,u.jsx)(d.xu,{marginTop:4,children:(0,u.jsx)(_.Z,{pinId:t,mode:"expanded",graphqlRef:n})})]})}const k=(0,a.Z)({useGraphQLAdapter:e=>{const t=(0,w.useFragment)(P,e);return{pin:t,forwardRef:t}},useLegacyAdapter:e=>{const t=(0,f.S6)()(null!=e?e:"");return t?{pin:{board:t.board&&{name:t.board.name,privacy:t.board.privacy,url:t.board.url},closeupUnifiedDescription:t.closeup_unified_description,description:t.description,domain:t.domain,gridTitle:t.grid_title,pinner:t.pinner&&{fullName:t.pinner.full_name,imageLargeUrl:t.pinner.image_large_url,imageSmallUrl:t.pinner.image_small_url},richMetadata:t.rich_metadata&&{description:t.rich_metadata.description,title:t.rich_metadata.title},richSummary:t.rich_summary&&{displayName:t.rich_summary.display_name},storyPinData:t.story_pin_data&&{metadata:t.story_pin_data.metadata&&{pinTitle:t.story_pin_data.metadata.pin_title}},storyPinDataId:t.story_pin_data_id,title:t.title},forwardRef:null}:null}});function T({queryRef:e,pinId:t,...n}){return(0,u.jsx)(k,{input:e?{enabled:!0,data:e}:{enabled:!1,data:t},children:({data:e})=>e&&(0,u.jsx)(S,{...n,pinId:t,pin:e.pin,forwardRef:e.forwardRef})})}},999023:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(667294),a=n(112690),r=n(867820);const o=({viewType:e,viewParameter:t,viewData:n,auxData:i,objectIdStr:a,component:o,clientTrackingParams:s,element:l},c)=>{const d=(u={event_type:13,view_type:e,view_parameter:t,view_data:n,aux_data:i,object_id_str:a,component:o,clientTrackingParams:s,element:l},Object.keys(u).reduce(((e,t)=>(void 0===u[t]&&delete e[t],e)),{...u}));var u;-1===Object.keys(d).indexOf("view_type")&&(0,r.My)("mweb.logging.null_view_type"),c(d)};function s(e){const{auxData:t,clientTrackingParams:n,children:r,component:s,element:l,objectIdStr:c,viewData:d,viewParameter:u,viewType:p}=e,h=(0,a.Z)(),m=JSON.stringify(t),_=JSON.stringify(d);return(0,i.useEffect)((()=>{o(e,h)}),[h,m,n,s,l,c,_,u,p]),i.Children.only(r)}},296679:(e,t,n)=>{n.d(t,{Z:()=>_});var i=n(598615),a=n(821997),r=n(430322),o=n(898781),s=n(287072),l=n(948376),c=n(50286),d=n(780280),u=n(664166),p=n(883119),h=n(785893);const m=({copyChangeGroup:e,deepLinkUri:t,isOpen:n,onDismiss:u,onOpenInApp:m,to:_,within:g})=>{var v;const f=(0,o.ZP)(),y=(0,c.Wb)(),{userAgent:{platform:b,raw:x}}=(0,d.B)(),w=(0,l.Rp)({platform:b,userAgent:x}),P=(0,s.Z)({href:null!=_?_:""}),S=y?60:40,k={control:{valueProp:f.bt("最佳体验尽在 Pinterest 应用程序", "The best experience is on the app", "mweb.unauth.app_upsell.app_value_prop", undefined, true),description:f.bt("免费、无限访问点子", "Free, unlimited access to ideas", "mweb.app_upsell.description", undefined, true)},enabled_copy_change_1:{valueProp:f.bt("在应用程序中继续此操作", "Pick this up in the app", "mweb.unauth.app_upsell.app_value_prop1", undefined, true),description:f.bt("在 Pinterest 应用程序中继续以获享最佳体验", "Continue in the Pinterest app for the best experience", "mweb.app_upsell.description1", undefined, true)},enabled_copy_change_2:{valueProp:f.bt("在应用程序中继续此操作", "Pick this up in the app", "mweb.unauth.app_upsell.app_value_prop1", undefined, true),description:f.bt("你似乎已下载 Pinterest 应用程序", "Looks like you’ve already downloaded the Pinterest app", "mweb.app_upsell.description2", undefined, true)},enabled_copy_change_3:{valueProp:f.bt("在应用程序中继续此操作", "Pick this up in the app", "mweb.unauth.app_upsell.app_value_prop1", undefined, true),description:f.bt("你似乎已下载 Pinterest。使用应用程序，获享最佳体验。", "Looks like you’ve already downloaded Pinterest. Use the app for the best experience.", "mweb.app_upsell.description3", undefined, true)},enabled_copy_change_4:{valueProp:f.bt("Pinterest 在应用程序上的体验更棒", "Pinterest is better on the app", "mweb.unauth.app_upsell.app_value_prop2", undefined, true),description:f.bt("在应用程序中继续以获享完整体验", "Continue in the app for the full experience", "mweb.app_upsell.description4", undefined, true)},enabled_copy_change_5:{valueProp:f.bt("Pinterest 在应用程序上的体验更棒", "Pinterest is better on the app", "mweb.unauth.app_upsell.app_value_prop2", undefined, true),description:f.bt("在应用程序中继续以获享更多发现点子的方式", "Continue in the app for more ways to discover ideas", "mweb.app_upsell.description5", undefined, true)}},{valueProp:T,description:I}=null!==(v=k[e||"control"])&&void 0!==v?v:{},A=null!=e&&e.startsWith("enabled_copy_change")?f.bt("打开应用程序", "Open app", "mweb.app_upsell.app_upsell_button_text1", undefined, true):f.bt("获取应用", "Get the app", "mweb.app_upsell.app_upsell_button_text", undefined, true);return(0,h.jsx)(r.default,{accessibilityModalLabel:"",isOpen:n,mobileHideCloseIcon:!0,type:"app_upsell_v1",zIndex:new p.Ry(101),closeOnOutsideClick:!1,onDismiss:()=>{},children:(0,h.jsx)(i.Z,{componentType:14157,within:g,children:({handleOpenApp:e})=>(0,h.jsxs)(p.xu,{padding:3,"data-test-id":"appUpsell-iframe",children:[(0,h.jsx)(p.xu,{display:"inlineBlock",position:"absolute",children:(0,h.jsx)(p.xu,{"data-test-id":"appUpsell-continue",children:(0,h.jsx)(p.hU,{accessibilityLabel:f.bt("关闭图标背景", "close icon background", "accesibility label for close icon on a overlay", undefined, true),icon:"cancel",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{u({event:e}),P&&!e.defaultPrevented&&(t(),P({event:e}))},size:"lg",iconColor:"gray"})})}),(0,h.jsxs)(p.xu,{paddingX:2,paddingY:6,children:[(0,h.jsx)(p.xu,{paddingY:2,justifyContent:"center",display:"flex",children:w?(0,h.jsx)(a.Z,{size:S}):(0,h.jsx)(p.JO,{color:"brandPrimary",icon:"pinterest",accessibilityLabel:"Pinterest App",size:S})}),(0,h.jsxs)(p.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:[(0,h.jsx)(p.xu,{paddingY:2,children:(0,h.jsx)(p.X6,{align:"center",size:"400",children:w?f.bt("体验 Pinterest Lite", "Try Pinterest Lite", "mweb.app_upsell.lite_app_upsell_title", undefined, true):T})}),(0,h.jsx)(p.xv,{align:"center",size:"300",children:w?f.bt("以节省空间的方式发现新点子", "A space-saving way to discover new ideas", "mweb.app_upsell.lite_app_value_prop", undefined, true):I}),(0,h.jsx)(p.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{display:"grid"}},justifyContent:"center",marginTop:8,children:(0,h.jsx)(p.zx,{fullWidth:!0,size:"lg",color:"red",onClick:()=>{e({deepLinkUri:t}),m()},text:A})})]})]})]})})})};function _({clientTrackingParams:e,copyChangeGroup:t,deepLinkUri:n,isOpen:i,onDismiss:a,onOpenInApp:r,shouldTrackDismiss:o,to:s,viewParameter:l,viewType:c,within:d}){return(0,h.jsx)(u.Z,{clientTrackingParams:e,viewType:c,viewParameter:l,children:(0,h.jsx)(m,{copyChangeGroup:t,deepLinkUri:n,isOpen:i,onDismiss:e=>{o&&(0,u.y)(),a(e)},onOpenInApp:()=>{(0,u.y)(),r()},to:s,within:d})})}},80811:(e,t,n)=>{n.d(t,{Z:()=>w});var i=n(667294),a=n(948618),r=n(815613),o=n(298361),s=n(112690),l=n(892819),c=n(19121),d=n(349700),u=n(867820),p=n(50286),h=n(780280),m=n(758127),_=n(722556),g=n(898781),v=n(883119),f=n(526760),y=n(785893);function b(e,t){const{full_name:n,username:i}=e,a=(0,y.jsx)(v.rU,{href:`/${i}`,display:"inlineBlock",underline:"hover",children:n});return(0,d.nk)(t.bt("{{ linkToUser }} 诚邀你加入此图板", "{{ linkToUser }} invited you to join this board", "boardRep.invite.invitationText", undefined, true),{linkToUser:a})}const x=({children:e})=>{const t=(0,c.Z)(),n=(0,p.HG)(),i=t&&t.isAuth;return n&&i?(0,y.jsx)(v.X6,{accessibilityLevel:2,size:"400",lineClamp:1,children:e}):(0,y.jsx)(v.xv,{lineClamp:1,weight:"bold",children:e})};function w({archivedDate:e,boardUrl:t,canEdit:n,collaborators:c,collaboratorsCount:w=0,containerBackgroundColor:P,coverPhoto:S,followedByMe:k,fullSizeDrawer:T,sensitivityScreen:I,handleInviteResponse:A,hideMeta:C,id:E,invite:j,imagesLego:D=[],isBoardInviteAccepted:O,isActive:R,isAuthenticated:L,isCollaborative:M,isCollaborator:F,isOwner:N,isProtected:z,isSecret:U,lastModifiedDate:Z,layout:B,locale:V,name:H,numCols:K,onEditClick:W,onFollow:G,onUnfollow:$,owner:q,pinCount:J=0,sectionCount:Y,showFollowButton:X,viewParameter:Q,viewType:ee,viewerId:te}){const ne=(0,g.ZP)(),ie=(0,o.Z)(),ae=(0,l.Z)(),re=(0,s.Z)(),oe=(0,p.HG)(),{isRTL:se}=(0,h.B)(),le=oe&&L,ce="square"===B?f.M0:f.z9,de=D.map((e=>({url:e.url,name:H}))),ue=!!q&&!n&&X,pe=!N&&!F&&!(null==I||!I.show_warning),he={board_id:E,reason:null==I?void 0:I.reason};(0,i.useEffect)((()=>{pe&&re({event_type:13,component:13861,view_type:215,aux_data:he})}),[]);const me=q?q.id:void 0,_e=[...c.filter((({id:e})=>e===me)),...c.filter((({id:e})=>e===te&&e!==me)),...c.filter((({id:e})=>![me,te].includes(e)))].map((e=>{var t,n;return{name:null!==(t=le?e.full_name:e.username)&&void 0!==t?t:"",src:"https://s.pinimg.com/images/user/default_75.png"===e.image_medium_url?"":null!==(n=e.image_medium_url)&&void 0!==n?n:""}}));let ge=w>=_e.length?w-_e.length:0;ge=ge>99?100:ge;const ve=[..._e,...Array(ge).fill({name:"",src:""})],fe=le?24:16,ye=fe/3*(2*(_e.length>2?3:_e.length)+1);return(0,y.jsxs)(v.xu,{"data-test-id":`boardCard-${H}`,position:"relative",height:ue?"max(calc(25vh + 10px), 220px)":"100%",width:le?ce:"100%",children:[(0,y.jsx)(_.Z,{canEdit:n,containerBackgroundColor:P,coverPhoto:S,images:de,isProtected:z,isSecret:U,fullSize:T,showSensitivityScreen:pe,isActive:R,onEditClick:W,layout:B}),!C&&(0,y.jsx)(i.Fragment,{children:j?(0,y.jsxs)(i.Fragment,{children:[(0,y.jsxs)(v.xu,{padding:2,alignItems:"start","data-test-id":"board-card-title",display:"flex",flex:"grow",justifyContent:"between",children:[(0,y.jsxs)(v.xu,{width:"100%",children:[(0,y.jsx)(v.rU,{href:null!=t?t:"",children:(0,y.jsx)(v.xu,{marginTop:0,marginBottom:1,children:(0,y.jsx)(x,{children:H})})}),O?(0,y.jsx)(v.xv,{size:"200",lineClamp:1,children:ne.bt("你已加入", "You’ve joined", "boardRep.invite.invitationAcceptedText", undefined, true)}):(0,y.jsx)(v.xv,{size:"200",children:b(j.invited_by_user,ne)})]}),(0,y.jsx)(v.xu,{dangerouslySetInlineStyle:{__style:{marginTop:-1}},marginStart:2,width:ye,minWidth:ye,height:fe,children:(0,y.jsx)(v.HE,{accessibilityLabel:m.U+(ne.bt("图板包含合作用户", "Board has collaborators", "BoardCard.AvatarGroup.Collaborators", undefined, true)),collaborators:ve})})]}),O?(0,y.jsx)(v.xu,{direction:"row",display:"flex",paddingX:2,children:(0,y.jsx)(v.xu,{flex:"grow",marginBottom:3,paddingX:1,children:(0,y.jsx)(v.zx,{role:"link",href:null!=t?t:"",fullWidth:!0,size:"lg",text:ne.bt("查看图板", "See board", "boardRep.invite.seeBoardButton", undefined, true)})})}):(0,y.jsxs)(v.kC,{direction:"row",flex:"grow",justifyContent:"start",wrap:!0,children:[(0,y.jsx)(v.xu,{marginBottom:3,paddingX:1,flex:"grow",children:(0,y.jsx)(v.zx,{fullWidth:!0,onClick:()=>{null==A||A(!1)},size:"lg",text:ne.bt("拒绝", "Decline", "boardRep.invite.declineButton", undefined, true)})}),(0,y.jsx)(v.xu,{marginBottom:3,paddingX:1,flex:"grow",children:(0,y.jsx)(v.zx,{fullWidth:!0,color:"red",onClick:()=>{null==A||A(!0)},size:"lg",text:ne.bt("接受", "Accept", "boardRep.invite.acceptButton", undefined, true)})})]})]}):(0,y.jsxs)(v.xu,{height:le?void 0:f.s0,marginTop:le?0:1,paddingX:2,paddingY:le?2:0,children:[(0,y.jsxs)(v.xu,{alignItems:"center","data-test-id":"board-card-title",display:"flex",flex:"grow",justifyContent:"between",children:[(0,y.jsx)(x,{children:H}),M&&(0,y.jsx)(v.xu,{dangerouslySetInlineStyle:{__style:{marginTop:-1}},marginStart:2,width:ye,minWidth:ye,height:fe,children:(0,y.jsx)(v.HE,{accessibilityLabel:m.U+(ne.bt("图板包含合作用户", "Board has collaborators", "BoardCard.AvatarGroup.Collaborators", undefined, true)),collaborators:ve})})]}),(0,y.jsxs)(v.xu,{alignItems:oe?"center":"start",direction:oe?"row":"column",display:"flex",marginTop:1,children:[(0,y.jsxs)(v.xv,{size:"100",lineClamp:1,children:[(0,y.jsx)(m.Z,{}),(0,d.nk)(ne.nbt(["{{ count }} 张 Pin 图"], J, "profile.ProfilePage.board.BoardCard.PinsCount", true),{count:ae(V,J,{})})]}),!!Y&&(0,y.jsx)(v.xv,{size:"100",children:(0,y.jsxs)(i.Fragment,{children:[(0,y.jsx)(a.Z,{ariaHidden:!0}),(0,y.jsx)(m.Z,{}),(0,d.nk)(ne.nbt(["{{ count }} 个图板区块"], Y, "profile.ProfilePage.board.BoardCard.SectionsCount", true),{count:Y})]})}),!e&&(0,y.jsx)(v.xu,{dangerouslySetInlineStyle:{__style:{display:le?"inline-flex":"inline",paddingLeft:oe?7:0,paddingRight:se?7:0}},children:(0,y.jsxs)(v.xv,{color:"subtle",inline:!0,size:"100",lineClamp:1,children:[(0,y.jsx)(m.Z,{}),ie(Z,!0)]})})]}),ue&&(0,y.jsx)(v.xu,{marginTop:2===K?3:void 0,column:2===K?12:void 0,flex:"none",children:(0,y.jsx)(r.Z,{disabled:null==q?void 0:q.blocked_by_me,followEventType:26,id:E,isFollowed:k,onFollow:e=>{L||(0,u.NC)("press_follow_board"),G&&G(e)},onUnfollow:e=>{L||(0,u.NC)("press_unfollow_board"),$&&$(e)},shouldUseLegoColors:!0,size:"md",unfollowEventType:27,viewParameter:Q,viewType:ee})})]})})]})}},223019:(e,t,n)=>{n.d(t,{Z:()=>g});var i=n(702664),a=n(80811),r=n(340494),o=n(52022),s=n(19121),l=n(867820),c=n(130460),d=n(780280),u=n(883119),p=n(712055),h=n(853492),m=n(785893);const _=["thumbnail","imageOnly"];function g({boardId:e,containerBackgroundColor:t,forwardedRef:n,fullSize:g,showFollowButton:v=!0,showPinCount:f=!0,type:y,viewParameter:b,viewType:x}){var w,P,S;const k=(0,s.Z)(),T=k&&k.isAuth,I=(0,i.useDispatch)(),{locale:A}=(0,d.B)(),C=(0,o.Z)(),E=(0,c.gC)()(e),j=(0,r.Z)(),D=k.isAuth?k.id:"";if(!E)return null;const O=E.owner,R=[O,...E.collaborating_users||[]].filter(Boolean).map((({id:e,image_medium_url:t,username:n})=>({id:e,image_medium_url:t,username:n}))),L=(null==O?void 0:O.id)===D,M=R.filter((({id:e})=>e===D)).length>0;if("secret"===E.privacy&&!M)return null;const F="grid"===y||"thumbnail"===y?2:4,N=j(E,F),z={isCustom:E.has_custom_cover,url:N,position:(0,h.Bw)(E.cover_pin)},U=(0,h.Jx)(E,N).map((({url:e})=>({name:(0,h.po)(e),url:e}))),Z=(0,m.jsx)(a.Z,{archivedDate:null!==(w=E.archived_by_me_at)&&void 0!==w?w:void 0,canEdit:!!E.access&&E.access.includes("write"),collaborators:R,collaboratorsCount:E.collaborator_count,containerBackgroundColor:t,coverPhoto:N?z:null,followedByMe:E.followed_by_me,fullSizeDrawer:g,hideMeta:_.includes(y),id:E.id,imagesLego:U,isAuthenticated:T,isCollaborative:E.is_collaborative,isCollaborator:M,isOwner:L,isProtected:"protected"===E.privacy,isSecret:"secret"===E.privacy,lastModifiedDate:"full"===y?E.board_order_modified_at:"",locale:A,name:null!==(P=E.name)&&void 0!==P?P:"",numCols:F,onFollow:e=>I((0,p.Z)(e)),onUnfollow:e=>I((0,p.f)(e)),owner:O,pinCount:f&&E.pin_count?E.pin_count:void 0,sectionCount:null!==(S=E.section_count)&&void 0!==S?S:0,sensitivityScreen:E.sensitivity_screen,showFollowButton:v,viewParameter:b,viewType:x,viewerId:D});return!_.includes(y)&&E.url?(0,m.jsx)(u.iP,{role:"link",href:E.url,rounding:2,tapStyle:"compress",onTap:()=>{T||((0,l.NC)("click_go_to_board"),C({action:"click",item:"board-card"}))},children:(0,m.jsx)(u.xu,{ref:n,paddingY:3,children:Z})}):Z}},686844:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(883119),a=n(785893);function r({customCover:e,height:t,imgUrl:n,imgPos:r,width:o}){const s=t/o;let l="center center";if(e&&r){let e=1;e=r.height/r.width>s?o/r.width:t/r.height;l=`-${r.x*e}px -${r.y*e}px`}const c={backgroundImage:`url(${n})`,backgroundPosition:l,backgroundRepeat:"no-repeat",backgroundSize:"cover",minHeight:"100%",backgroundColor:"#EFEFEF",position:"relative"};return(0,a.jsx)(i.xu,{dangerouslySetInlineStyle:{__style:{height:t,width:o}},children:(0,a.jsx)(i.xu,{dangerouslySetInlineStyle:{__style:c},children:(0,a.jsx)("div",{className:"imageWash",style:{position:"absolute"}})})})}},722556:(e,t,n)=>{n.d(t,{Z:()=>p});var i=n(686844),a=n(108211),r=n(898781),o=n(50286),s=n(780280),l=n(883119),c=n(526760),d=n(785893);const u="100%";function p(e){var t,n;const p=(0,r.ZP)(),{containerBackgroundColor:h="white",coverPhoto:m,fullSize:_,images:g,isProtected:v,isSecret:f,showSensitivityScreen:y,isActive:b,canEdit:x,onEditClick:w,layout:P}=e,S=(0,o.HG)(),{isRTL:k,isAuthenticated:T}=(0,s.B)(),I=S&&T,A=g[0],C=!m&&(null===(t=g[0])||void 0===t?void 0:t.name)||p.bt("封面图片", "Cover image", "DrawerImageGroup", undefined, true),E=Array(2).fill(),j=new l.Ry(1),D="square"===P?c.M0:c.z9,O="square"===P?c.FP:c.FC,R=null!=A&&A.url?(0,d.jsx)(l.Ee,{alt:C,color:"#efefef",fit:"cover",naturalHeight:133,naturalWidth:133,src:A.url}):(0,d.jsx)(l.xu,{color:"secondary",height:"100%",width:"100%"}),L=y?{filter:"blur(20px)"}:{};return(0,d.jsx)(l.zd,{height:_?"100%":void 0,rounding:4,width:"100%",wash:b,children:(0,d.jsxs)(l.xu,{"aria-hidden":!0,display:"flex",height:I?O:"100%",direction:"row",children:[(0,d.jsx)(l.sg,{span:8,children:(0,d.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:L},position:"relative",height:_?"100%":void 0,children:(0,d.jsx)(l.xu,{color:"secondary",dangerouslySetInlineStyle:{__style:{paddingBottom:u}},overflow:"hidden",width:"100%",children:(0,d.jsxs)(l.xu,{"data-test-id":"drawer-image-group-first-image-container",dangerouslySetInlineStyle:{__style:{borderColor:h,borderStyle:"solid",borderWidth:"1px 0 1px 1px"}},overflow:"hidden",position:"absolute",top:!0,bottom:!0,right:!0,left:!0,children:[(v||f)&&(0,d.jsx)(l.xu,{left:!k,right:k,margin:2,position:"absolute",top:!0,zIndex:j,children:(0,d.jsx)(a.Z,{backgroundColor:"default",iconColor:"default",privacy:f?"secret":"protected",size:I?32:24})}),I&&null!=m&&m.url?(0,d.jsx)(i.Z,{customCover:m.isCustom,imgPos:m.position||{width:0,height:0,x:0,y:0},imgUrl:null!==(n=m.url)&&void 0!==n?n:"",width:Math.floor(D/3*2),height:O}):R]})})})}),(0,d.jsx)(l.sg,{span:4,children:(0,d.jsxs)(l.xu,{dangerouslySetInlineStyle:{__style:L},height:"100%",children:[x&&b&&(0,d.jsx)(l.xu,{left:k,right:!k,margin:2,position:"absolute",bottom:!0,zIndex:j,children:(0,d.jsx)(l.hU,{accessibilityLabel:p.bt("编辑", "Edit", "DrawerImageGroup.edit", undefined, true),bgColor:"white",icon:"edit",iconColor:"darkGray",onClick:({event:e})=>null==w?void 0:w(e),size:"sm"})}),E.map(((e,t)=>{const n=g[I?t:t+1];return(0,d.jsx)(l.xu,{position:"relative",height:_?"50%":void 0,children:(0,d.jsx)(l.xu,{color:"secondary",dangerouslySetInlineStyle:{__style:{paddingBottom:u}},overflow:"hidden",width:"100%",children:(0,d.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{borderColor:h,borderStyle:"solid",borderWidth:0===t?1:"0 1px 1px 1px"}},overflow:"hidden",position:"absolute",top:!0,bottom:!0,right:!0,left:!0,children:null!=n&&n.url?(0,d.jsx)(l.Ee,{alt:n&&n.name||"placeholder",color:"#efefef",fit:"cover",naturalHeight:133,naturalWidth:133,src:n.url}):(0,d.jsx)(l.xu,{color:"secondary",height:"100%",width:"100%"})})})},t)}))]})}),y&&(0,d.jsx)(l.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{background:"rgba(0,0,0,0.5)"}},display:"flex",height:"100%",justifyContent:"center",position:"absolute",top:!0,width:"100%",children:(0,d.jsx)(l.X6,{align:"center",color:"light",size:"400",children:p.bt("此图板可能包含敏感内容", "This board may contain sensitive content", "drawerImageGroup.sensitivityScreen.heading", undefined, true)})})]})})}},526760:(e,t,n)=>{n.d(t,{FC:()=>s,FP:()=>r,M0:()=>a,Xq:()=>l,s0:()=>i,z9:()=>o});const i=40,a=236,r=157,o=320,s=213,l=7},108211:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(898781),a=n(883119),r=n(785893);function o({backgroundColor:e="darkGray",iconColor:t="inverse",iconSize:n,privacy:o,size:s=20}){const l=(0,i.ZP)();return(0,r.jsx)(a.xu,{display:"flex",direction:"column",alignItems:"center",color:e,width:s,height:s,rounding:"circle",justifyContent:"center",children:(0,r.jsx)(a.JO,{accessibilityLabel:l.bt("私密图板图标", "Secret board icon", "Icon indicating that a board is secret", undefined, true),color:t,icon:"secret"===o?"lock":"security",size:null!=n?n:s/2})})}},340494:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(19121),a=n(50286);function r(){const e=(0,a.HG)(),t=(0,i.Z)(),n=t&&t.isAuth;if(e&&n){return e=>{var t,n;const i=e.cover_images&&e.cover_images["222x"]?e.cover_images["222x"].url:void 0,a=null!==(t=null===(n=e.cover_pin)||void 0===n?void 0:n.image_url)&&void 0!==t?t:i,r=e.images&&e.images["170x"]&&e.images["170x"].length?e.images["170x"][0].url:"";return a||r}}return(e,t)=>{var n,i;const a=e.has_custom_cover?e.image_cover_hd_url||e.image_cover_url:"";if(!a)return"";const r=e.cover_images&&e.cover_images["400x300"]?e.cover_images["400x300"].url:void 0,o=e.cover_images&&e.cover_images["222x"]?e.cover_images["222x"].url:void 0,s=e.cover_images&&e.cover_images["216x146"]?e.cover_images["216x146"].url:void 0,l=null!==(n=null!==(i=null!=r?r:o)&&void 0!==i?i:s)&&void 0!==n?n:"",c=e.image_cover_url||"";return a||(t&&t>2&&l?l:"")||c}}},853492:(e,t,n)=>{n.d(t,{Bw:()=>s,Jx:()=>o,po:()=>i});const i=(e="")=>(null!=e?e:"").substring((null!=e?e:"").lastIndexOf("/")+1),a=e=>({dominant_color:"#FFFFFF",height:1,url:e,width:1}),r=e=>{if(!e)return()=>!0;const t=i(e);return e=>{var n;return"string"==typeof e?i(e)!==t:i(null!==(n=e.url)&&void 0!==n?n:"")!==t}},o=(e,t)=>e.images&&e.images["170x"]?e.images["170x"].filter(r(t)):e.pin_thumbnail_urls?e.pin_thumbnail_urls.filter(r(t)).map(a):[],s=e=>{var t;return null!==(t=e&&e.crop&&e.size&&{x:e.crop[0],y:e.crop[1],width:e.size[0],height:e.size[1]})&&void 0!==t?t:{x:0,y:0,width:0,height:0}}},538232:(e,t,n)=>{n.d(t,{R:()=>r,q:()=>a});var i=n(425288);const{Provider:a,useHook:r}=(0,i.Z)("CloseupPageContext")},350948:(e,t,n)=>{n.d(t,{IS:()=>b,Ys:()=>y,ZP:()=>A,j$:()=>P});var i,a=n(667294),r=n(485710),o=n(134185),s=n(319530),l=n(50286),c=n(349700),d=n(578661),u=n(923297),p=n(773285),h=n(350118),m=n(898781),_=n(883119),g=n(167912),v=n(785893);const f=void 0!==i?i:i=n(906587),y=({m:e,h:t,rm:n,rh:i},a,r=!1)=>e&&(!t||i<=0)?r?(0,c.nk)(a.bt("{{mins}} 分钟", "{{mins}}min", "closeup.makeRecipeTimeText.minutes", undefined, true),{mins:n.toString()}):(0,c.nk)(a.nbt(["{{mins}} 分钟"], n, "number showing the minutes to complete a recipe", true),{mins:n.toString()}):t?r?(0,c.nk)(a.bt("{{hrs}} 小时", "{{hrs}}hr", "closeup.makeRecipeTimeText.hours", undefined, true),{hrs:i.toString()}):(0,c.nk)(a.nbt(["{{hrs}} 小时"], i, "number showing the hours to complete a recipe", true),{hrs:i.toString()}):null,b=({m:e,h:t,rm:n,rh:i,i18n:a})=>e&&(!t||i<=0)?(0,c.nk)(a.bt("{{mins}}m", "{{mins}}m", "number showing minutes to complete a recipe", undefined, true),{mins:n.toString()}):t?(0,c.nk)(a.bt("{{hrs}}h {{mins}}m", "{{hrs}}h {{mins}}m", "number showing hours to complete a recipe", undefined, true),{hrs:t.toString(),mins:e.toString()}):null,x=(e,t)=>{const n=e&&e.length>0&&e.join(", "),i=t&&t.summary;return n&&i?`${n} • ${i}`:n||i},w=e=>e?e.reduce(((e,t)=>{var n,i;return e+(null!==(n=null===(i=t.ingredients)||void 0===i?void 0:i.length)&&void 0!==n?n:0)}),0):0,P=({cookTimesCookM:e,cookTimesCookH:t,cookTimesTotalM:n,cookTimesTotalH:i,hasCookTimesTotal:a,i18n:r,isShortened:o})=>{let s;return s=a?(0,u.X)({m:n||0,h:i||0}):(0,u.X)({m:e||0,h:t||0}),y(s,r,o)};function S({category:e,ingredients:t,textSize:n="300",isOnePinEnabled:i}){return(0,v.jsxs)(_.xu,{marginBottom:4,children:[e&&(0,v.jsx)(_.xu,{children:(0,v.jsx)(_.xv,{weight:"bold",size:n,children:e})}),(null!=t?t:[]).map((e=>{var t,a;return(0,v.jsx)(_.xu,{"data-test-id":"recipe-ingredient",itemProp:"recipeIngredient",marginTop:1,children:(0,v.jsxs)(_.xv,{size:n,children:[i?"•":""," ",e.amt||null," ",e.name]})},`${null!==(t=e.name)&&void 0!==t?t:""}-${null!==(a=e.name)&&void 0!==a?a:""}`)}))]})}const k=({categorizedIngredients:e,cookTimes:t,image:n,ingredientCount:i,ingredientsDescription:c,name:u,pinLink:h})=>{var g,f,y,b;const x=(0,m.ZP)(),{checkExperiment:w}=(0,p.F)(),k=(0,l.ZP)(),T=w("closeup_dweb_unauth_onepin_title_and_description").anyEnabled;if(!P({cookTimesCookM:null==t||null===(g=t.cook)||void 0===g?void 0:g.m,cookTimesCookH:null==t||null===(f=t.cook)||void 0===f?void 0:f.h,cookTimesTotalM:null==t||null===(y=t.total)||void 0===y?void 0:y.m,cookTimesTotalH:null==t||null===(b=t.total)||void 0===b?void 0:b.h,hasCookTimesTotal:!(!t||!t.total),i18n:x,isShortened:T})&&!i&&!c)return null;const I="desktop"===k,A=x.bt("材料", "Ingredients", "Closeup.PinRecipe.ingredientsLabel", undefined, true);return(0,v.jsxs)(_.xu,{"data-test-id":"pin-recipe-container",display:"flex",direction:"column",marginTop:8,children:[(0,v.jsxs)(_.xu,{direction:"column",display:"flex",marginTop:4,marginBottom:4,marginEnd:6,overflow:"hidden",children:[(!T||!I)&&(0,v.jsx)(_.xu,{marginBottom:4,children:(0,v.jsx)(_.xv,{weight:"bold",align:"desktop"===k?"start":"center",children:A})}),(0,v.jsxs)(o.Z,{itemScope:!0,itemType:d.G,children:[(0,v.jsx)("meta",{content:u,itemProp:"name"}),n&&(0,v.jsx)("meta",{content:n,itemProp:"image"}),T&&I&&(0,v.jsx)(_.xu,{"data-test-id":"one-pin-layout",children:Array.isArray(e)&&e.length>0&&(0,v.jsx)(r.Z,{heading:A,children:(0,v.jsx)(s.Z,{children:e.map((({category:e,ingredients:t},n)=>{const i=`ingredient-${n}`;return(0,v.jsx)(a.Fragment,{children:(0,v.jsx)(_.xu,{marginBottom:4,children:(0,v.jsx)(S,{category:e,ingredients:t,textSize:"300",isOnePinEnabled:T})})},i)}))})})}),(!T||!I)&&Array.isArray(e)&&e.length>0&&(0,v.jsx)(_.xu,{column:12,"data-test-id":"single-column-ingredients",children:e.map((({category:e,ingredients:t},n)=>(0,v.jsx)(_.xu,{marginBottom:2,children:(0,v.jsx)(S,{category:e,ingredients:t,textSize:"300",isOnePinEnabled:T})},n)))})]})]}),(!T||!I)&&(0,v.jsx)(_.xu,{marginBottom:4,display:"flex",justifyContent:"phone"===k?"center":void 0,children:h&&(0,v.jsx)(_.zx,{text:x.bt("开始制作", "Make it", "closeup.recipe.make_it_button", undefined, true),role:"link",href:h,target:"blank"})})]})},T=({graphqlRef:e,checkExperiment:t})=>{const n=(0,g.useFragment)(f,e),{imageSpec_474x:i,link:a,richMetadata:r}=n,o=null==r?void 0:r.recipe,s=null==o?void 0:o.categorizedIngredients,l=w(s),c=(null==o?void 0:o.categorizedIngredients)&&x(o.diets,o.servingsSummary);return(0,v.jsx)(k,{categorizedIngredients:s,cookTimes:null==o?void 0:o.cookTimes,image:null==i?void 0:i.url,ingredientCount:l,ingredientsDescription:c,name:null==o?void 0:o.name,pinLink:a,checkExperiment:t})},I=({pinId:e,checkExperiment:t})=>{var n,i;const a=(0,h.S6)()(e),r=(null==a||null===(n=a.rich_metadata)||void 0===n?void 0:n.recipe)||{},{cook_times:o,name:s,categorized_ingredients:l,diets:c,servings_summary:d}=r,u=w(l),p=l&&x(c,d);return(0,v.jsx)(k,{categorizedIngredients:l,cookTimes:o,image:(null===(i=((null==a?void 0:a.images)||{})["474x"])||void 0===i?void 0:i.url)||"",ingredientCount:u,ingredientsDescription:p,name:s,pinLink:(null==a?void 0:a.link)||"",checkExperiment:t})};function A({graphqlRef:e,pinId:t}){const{checkExperiment:n}=(0,p.F)();return e?(0,v.jsx)(T,{graphqlRef:e,checkExperiment:n}):(0,v.jsx)(I,{pinId:t,checkExperiment:n})}},763839:(e,t,n)=>{n.d(t,{w:()=>l,z:()=>s});var i=n(667294),a=n(425288),r=n(785893);const{Provider:o,useMaybeHook:s}=(0,a.Z)("CloseupPreviewContext");function l({children:e}){const[t,n]=(0,i.useState)(Object.freeze({})),a=(0,i.useMemo)((()=>({setData:(e,t)=>n((n=>({...n,[e]:t}))),getData:e=>t[e]})),[t]);return(0,r.jsx)(o,{value:a,children:e})}},298024:(e,t,n)=>{n.d(t,{Ph:()=>a,Re:()=>o,si:()=>r});var i=n(50286);const a=e=>e&&e.promoter&&!e.is_downstream_promotion?e.promoter:null,r=()=>"phone"!==(0,i.ZP)()?180:130,o=()=>"phone"!==(0,i.ZP)()?180:80},759177:(e,t,n)=>{n.d(t,{Z:()=>o});var i,a=n(167912);const r=void 0!==i?i:i=n(96795);const o=e=>function(e){var t,n,i,a,r,o,s,l,c,d,u,p,h,m,_,g,v,f,y,b,x,w,P,S,k,T,I;return{"60x60":{height:(null==e||null===(t=e.imageSpec_60x60)||void 0===t?void 0:t.height)||void 0,url:(null==e||null===(n=e.imageSpec_60x60)||void 0===n?void 0:n.url)||void 0,width:(null==e||null===(i=e.imageSpec_60x60)||void 0===i?void 0:i.width)||void 0},"136x136":{height:(null==e||null===(a=e.imageSpec_136x136)||void 0===a?void 0:a.height)||void 0,url:(null==e||null===(r=e.imageSpec_136x136)||void 0===r?void 0:r.url)||void 0,width:(null==e||null===(o=e.imageSpec_136x136)||void 0===o?void 0:o.width)||void 0},"170x":{height:(null==e||null===(s=e.imageSpec_170x)||void 0===s?void 0:s.height)||void 0,url:(null==e||null===(l=e.imageSpec_170x)||void 0===l?void 0:l.url)||void 0,width:(null==e||null===(c=e.imageSpec_170x)||void 0===c?void 0:c.width)||void 0},"236x":{height:(null==e||null===(d=e.imageSpec_236x)||void 0===d?void 0:d.height)||void 0,url:(null==e||null===(u=e.imageSpec_236x)||void 0===u?void 0:u.url)||void 0,width:(null==e||null===(p=e.imageSpec_236x)||void 0===p?void 0:p.width)||void 0},"474x":{height:(null==e||null===(h=e.imageSpec_474x)||void 0===h?void 0:h.height)||void 0,url:(null==e||null===(m=e.imageSpec_474x)||void 0===m?void 0:m.url)||void 0,width:(null==e||null===(_=e.imageSpec_474x)||void 0===_?void 0:_.width)||void 0},"564x":{height:(null==e||null===(g=e.imageSpec_564x)||void 0===g?void 0:g.height)||void 0,url:(null==e||null===(v=e.imageSpec_564x)||void 0===v?void 0:v.url)||void 0,width:(null==e||null===(f=e.imageSpec_564x)||void 0===f?void 0:f.width)||void 0},"736x":{height:(null==e||null===(y=e.imageSpec_736x)||void 0===y?void 0:y.height)||void 0,url:(null==e||null===(b=e.imageSpec_736x)||void 0===b?void 0:b.url)||void 0,width:(null==e||null===(x=e.imageSpec_736x)||void 0===x?void 0:x.width)||void 0},"600x315":{height:(null==e||null===(w=e.imageSpec_600x315)||void 0===w?void 0:w.height)||void 0,url:(null==e||null===(P=e.imageSpec_600x315)||void 0===P?void 0:P.url)||void 0,width:(null==e||null===(S=e.imageSpec_600x315)||void 0===S?void 0:S.width)||void 0},orig:{height:(null==e||null===(k=e.imageSpec_orig)||void 0===k?void 0:k.height)||void 0,url:(null==e||null===(T=e.imageSpec_orig)||void 0===T?void 0:T.url)||void 0,width:(null==e||null===(I=e.imageSpec_orig)||void 0===I?void 0:I.width)||void 0}}}((0,a.useFragment)(r,e))},886076:(e,t,n)=>{function i({isEligibleForPdp:e,isOosProduct:t,isStaleProduct:n,pinShoppingFlags:i}){if(i){const a=i,r={pin_is_shop_the_look:a.includes(2),pin_show_pdp:e||t||n,is_available:a.includes(1),is_product_pin_v2:a.includes(5),is_rich_product_pin:a.includes(6)};return JSON.stringify(r)}}n.d(t,{Z:()=>i})},830157:(e,t,n)=>{function i(e,t){return e||(t?`${t}~0`:"~0")}n.d(t,{Z:()=>i})},116485:(e,t,n)=>{n.d(t,{AA:()=>r,E9:()=>_,EU:()=>f,IO:()=>v,Jd:()=>h,KH:()=>d,QR:()=>c,Uw:()=>a,ZR:()=>y,dy:()=>l,eA:()=>p,fo:()=>m,k7:()=>o,rT:()=>g,tz:()=>u,u9:()=>b,zR:()=>s,zu:()=>i});const i="OPEN_UNAUTH",a="openUnauthType",r="_isAfterLogin",o="_lastVisitedPages",s="_lastVisitedPagesBeforeLogin",l="_lastVisitedBoardPages",c="_lastVisitedPagesBeforeNavPage",d="_lastVisitedSessionPages",u="_unauthVisitedPages",p=20,h="_unauthInviteCode",m="_unauthReferrerString",_="unauthTopicsFollowed",g=["US","CA","NZ","AU"],v=new Set(["GB","IE"]),f=new Set(["AT","BE","CH","DE","DK","ES","FR","IT","NL","NO","PT","SE"]),y=new Set(["BR","MX","AR","CL","CO","PE"]),b="ad_img"},62409:(e,t,n)=>{n.d(t,{AH:()=>l,Bk:()=>r,CK:()=>s,Xe:()=>a,kb:()=>o,wS:()=>i});const i=(e,t,n,i)=>{let a;return a=t||(e?e.official_user:n||i),a};function a({hasLinkDomain:e,hasNativeCreator:t,hasOriginPinner:n,pinDomain:i,sourceUserUsername:a,sourceUserFullName:r}){return!t&&(e||n)&&a?{pinCreditLink:`/${a}/`,pinCredit:r}:{pinCreditLink:void 0,pinCredit:!t&&e?i:""}}const r=({i18n:e,isLego:t,hasLinkDomain:n,hasRichMetadataArticle:i,hasRichMetadataTutorial:a,hasRichMetadataRecipeCategorizedIngredients:r,hasRichMetadataProductOfferSummary:o,hasRichSummaryProductOfferSummary:s,richMetadataRecipeFromAggregatedData:l,richMetadataProductName:c,richSummaryProductName:d})=>{const u=r;let p;c&&o&&(p=!0);const h=i,m=a;let _=t?e.bt("自 ", "From ", "Closeup pin annotation", undefined, true):e.bt("收藏自 ", "Saved from ", "Closeup pin annotation", undefined, true);return!n||l?_=e.bt("收藏者： ", "Saved by ", "Closeup pin annotation", undefined, true):p?_=e.bt("产品售自 ", "Product sold by ", "pin annotation", undefined, true):m?(t&&(_=e.bt("自 ", "From ", "pin annotation", undefined, true)),_=e.bt("收藏自 ", "Saved from ", "pin annotation", undefined, true)):u?_=e.bt("食谱来自 ", "Recipe from ", "pin annotation", undefined, true):h&&(_=e.bt("文章来自 ", "Article from ", "pin annotation", undefined, true)),!o&&d&&s&&(_=e.bt("产品售自 ", "Product sold by ", "pin annotation", undefined, true)),_},o=({hasLinkDomain:e,richMetadata:t,richSummary:n})=>{var i;return e&&(null==t||null===(i=t.recipe)||void 0===i||!i.fromAggregatedData)&&null!=t&&t.products&&t.products[0]&&t.products[0].name&&t.products[0].offerSummary?t.products[0].offerSummary:null!=n&&n.products&&n.products[0]&&n.products[0].name&&n.products[0].offerSummary?n.products[0].offerSummary:void 0},s=({hasRichMetadata:e,hasRichMetadataProducts:t,hasRichMetadataArticle:n,hasRichMetadataRecipe:i})=>e?t?144:n?141:i?145:139:140,l=e=>!!e&&!e.startsWith("https://i.pinimg.com")},772486:(e,t,n)=>{n.d(t,{XK:()=>s,jC:()=>o,yd:()=>l});var i=n(745760);let a=null,r=null;const o=((e,t)=>{let n=null;return o=>{var s;if(o&&!n)return n={...o,event_type:e,time:(0,i.h1)()},null===(s=r)||void 0===s||s.logContextEvent(n),a&&n&&a.storeClickthroughProperties(n),e;if(!o&&n){var l;const e={...n,event_type:t,duration_ns:(0,i.h1)()-n.time};return null===(l=r)||void 0===l||l.logContextEvent(e),n=null,t}return null}})(12,4100),s=e=>{a=e},l=e=>{r=e}},529195:(e,t,n)=>{n.d(t,{CC:()=>x,Cb:()=>f,Ff:()=>E,H$:()=>P,Mt:()=>b,OJ:()=>v,Yi:()=>T,Ys:()=>g,Yy:()=>A,Z4:()=>_,ZN:()=>p,dc:()=>k,dp:()=>w,kw:()=>y,p9:()=>S,t_:()=>h});var i=n(231486),a=n(214494),r=n(826067),o=n(332215),s=n(226198),l=n(867820),c=n(339363),d=n(844974),u=n(116485);const p=["utm_pai","utm_source","invite_code"],h=()=>(0,d.qn)(u.tz,""),m=()=>{const e=h();let t;try{t=JSON.parse(e)}catch(n){t=[]}return t},_=(e,t)=>{const n=m(),i=n.length,a=i?n[0].path:"";if(i<u.eA&&(!i||e!==a)){const i={path:e,pageType:t,ts:Date.now()};(0,d.Nh)(u.tz,JSON.stringify([i].concat(n)))}},g=e=>{(0,d.Nh)(u.Jd,e)},v=()=>(0,d.qn)(u.fo,""),f=e=>{(0,d.Nh)(u.fo,e)},y=()=>{h()&&(0,d.L_)(u.tz),(0,d.qn)(u.Jd,"")&&(0,d.L_)(u.Jd),v()&&(0,d.L_)(u.fo)},b=(e,t,n,i,a,r,o=u.k7)=>{const s=(0,d.qn)(o)?JSON.parse((0,d.qn)(o)):[];if(!s[0]||s[0].path!==e){const l=[{path:e,ts:Date.now(),pin_id:n||0,first_pin_image_signature:t||"",first_pin_id:n||"",image_info:i||"",pin_description:a||"",is_shared:!!r,pin_invite_code:r}];(0,d.Nh)(o,JSON.stringify(l.concat(s)))}},x=({path:e,image:t,dominant_color:n,pin_description:i,pin_id:a})=>{const r=(()=>{const e=(0,c.qn)(u.KH);if(!e)return[];let t;try{t=JSON.parse(e)}catch(n){t=[]}return t})();if(!r[0]||r[0].path!==e){const o=[{path:e,image:t,pin_description:i||"",dominant_color:n||"",pin_id:a||""}];(0,c.Nh)(u.KH,JSON.stringify(o.concat(r)))}};function w(e,t,n,i,a,r){b(e,t,n,i,a,r,u.zR)}const P=(e,t,n,i,a)=>{b(e,t,n,i,null!=a?a:"","",u.dy)};function S(e,t,n,i,a){b(e,t,n,i,a,"",u.QR)}function k(){return m().filter((e=>"closeup"===e.pageType)).length}function T(){const e=a.Z.create("UnauthUserDataResource");return new Promise(((t,n)=>{e.callGet().then((e=>{const a=e.resource_response.data,r=!!i.U2(s.x3);return a?((0,o.Wn)(a.medium_image_url)&&(a.medium_image_url=""),(0,l.My)("mweb.unauth.personalized_login.fetch_user_info.info.user_info_found.logged_out_cookie_"+(r?"true":"false")),t(a)):((0,l.My)("mweb.unauth.personalized_login.fetch_user_info.info.no_user_info.logged_out_cookie_"+(r?"true":"false")),n({}))})).catch((e=>{if(e&&e.message){const t=e.message.replace(/\s/g,"_").toLowerCase();(0,l.My)(`mweb.unauth.personalized_login.fetch_user_info.error.${t}`)}else(0,l.My)("mweb.unauth.personalized_login.fetch_user_info.error.unknown");return n(e)}))}))}function I({i18n:e,location:t}){const n=t.pathname.startsWith("/signup"),i=t.pathname.startsWith("/login");if(!n&&!i)return{showPLPBanner:!1,pinForBanner:null};let a;try{a=JSON.parse((0,c.qn)(u.KH))}catch(r){a=[]}if(a&&a.length>0){const t=a[0];if(t)return t.bannerCopy=e.bt("更多类似的点子，敬请期待", "More ideas like this await", "page banner with pin image that was signed up from", undefined, true),{showPLPBanner:Boolean(t.image),pinForBanner:t}}return{showPLPBanner:!1,pinForBanner:null}}const A=e=>e.search&&e.search.startsWith("?next=")?e.search.split("?next=")[1]:null;function C({i18n:e,location:t}){var n;const i=(null===(n=t.state)||void 0===n?void 0:n.next)||A(t);if(i){const t=i.indexOf("?"),n=(0,r.mB)(i.substring(t));if(n.url&&n.media)return{showPLPBanner:!0,pinForBanner:{image:{url:(0,r.Jx)(n.media),height:1,width:1},pinDescription:n.description,bannerCopy:e.bt("收藏这个点子，发现更多类似灵感。", "Save this idea and discover more inspiration like it.", "page banner with pin image that was signed up from", undefined, true)}}}return{showPLPBanner:!1,pinForBanner:null}}function E({i18n:e,location:t}){return C({i18n:e,location:t}).showPLPBanner?C({i18n:e,location:t}):I({i18n:e,location:t}).showPLPBanner?I({i18n:e,location:t}):{showPLPBanner:!1,pinForBanner:null}}},305324:(e,t,n)=>{n.d(t,{M:()=>f,g:()=>y});var i,a=n(667294),r=n(590674),o=(n(883119),n(867820)),s=n(447409),l=n(50286),c=n(780280),d=n(430235),u=n(874317),p=n(167912),h=n(785893);const m=void 0!==i?i:i=n(110767);const _=({queryReference:e,...t})=>{var n;const i=(0,p.usePreloadedQuery)(m,e),a=null==i||null===(n=i.v3GetPinQuery)||void 0===n?void 0:n.data;return a?(0,h.jsx)(d.Z,{...t,graphqlRef:a}):null},g=({queryReference:e,...t})=>{var n;const i=(0,p.usePreloadedQuery)(m,e),a=null==i||null===(n=i.v3GetPinQuery)||void 0===n?void 0:n.data;return a?(0,h.jsx)(u.ZP,{...t,graphqlRef:a}):null},v=(0,a.createContext)((()=>()=>{})),f=()=>(0,a.useContext)(v),y=({children:e,feedRef:t,viewType:n,viewParameter:i,useGraphql:f})=>{const[y,b]=(0,a.useState)(null),[x,w]=(0,a.useState)(null),[P,S]=(0,a.useState)(!1),[k,T]=(0,a.useState)(null),[I,A]=(0,a.useState)(!1),C=(0,l.HG)(),{isAuthenticated:E}=(0,c.B)(),[j,D]=(0,p.useQueryLoader)(m);if(f&&!j&&k){D(function({pinId:e,isAuth:t}){return{query:m,variables:{pinId:e,isAuth:t}}}({pinId:k,isAuth:E}).variables)}const O=()=>{document&&document.body&&document.body.style&&(document.body.style.overflow="unset")};(0,a.useEffect)((()=>O),[]);const R=(0,a.useCallback)((e=>n=>{const{pinId:i,deviceOptions:a}=e;if(n.stopPropagation(),n.preventDefault(),T(i),a.isDesktop)A(a.isMainPinImage),(0,o.My)("dweb.unauth.context_menu.open_menu"),b({xPosition:n.clientX,yPosition:n.clientY}),document&&document.body&&document.body.style&&(document.body.style.overflow="hidden");else{(0,o.My)("mweb.unauth.related_pin.context_menu.open");const e=n.changedTouches.item(0);if(t&&t.current){const n=t.current.getBoundingClientRect(),i=Math.min(e.pageX-n.left,n.width-u.nt),r=e.pageY-s.n;w({xPosition:i,yPosition:r,context:a.context})}}}),[t]),L=!!y;(0,a.useEffect)((()=>{const e=()=>{b(null),O(),(0,o.My)("dweb.unauth.context_menu.click_away")};return L&&document.addEventListener("click",e),()=>{L&&document.removeEventListener("click",e)}}),[L]);const M=y&&k?f?j&&(0,h.jsx)(_,{desktopContextMenuState:y,pinId:k,isMainPinImage:!!I,queryReference:j}):(0,h.jsx)(d.Z,{desktopContextMenuState:y,pinId:k,isMainPinImage:!!I,graphqlRef:null}):null,F=x&&k?f?j&&(0,h.jsx)(g,{mwebContextMenuState:x,pinId:k,openShareModal:S,setMwebContextMenuState:w,queryReference:j}):(0,h.jsx)(u.ZP,{graphqlRef:null,mwebContextMenuState:x,pinId:k,openShareModal:S,setMwebContextMenuState:w}):null;return(0,h.jsx)(v.Provider,{value:R,children:(0,h.jsxs)(a.Fragment,{children:[e,C&&M,!C&&F,!C&&P&&k&&(0,h.jsx)(r.default,{objectType:1,isOpen:P,onDismiss:()=>S(!1),objectId:k,hideContactsSuggestions:!0,element:12016,viewType:n,viewParameter:i,component:18})]})})}},332215:(e,t,n)=>{function i(e){return Boolean(null==e?void 0:e.is_matured_new_user)}n.d(t,{IR:()=>o,V0:()=>i,Wn:()=>r,xT:()=>a});const a=e=>!!e&&2===e.login_state,r=e=>!(!e||!e.match(/\/static\/images\/user\/default_\d+\.png$/));function o(e){return!e||void 0===e.third_party_marketing_tracking_enabled||null===e.third_party_marketing_tracking_enabled||e.third_party_marketing_tracking_enabled}},987318:(e,t,n)=>{n.d(t,{H:()=>r,o:()=>a});var i=n(425288);const{Provider:a,useHook:r}=(0,i.Z)("LimitedLogin")},945698:(e,t,n)=>{n.d(t,{N4:()=>r,Wh:()=>i,hr:()=>a});const i=e=>e.bt("登录并继续", "Log in to continue", "limitedLogin.modalHeader.default", undefined, true),a=e=>e.bt("距离成功不远了！登录以访问 Pinterest", "You're almost there! Log in to access all of Pinterest", "loginModal.limitedLogin.subheader", undefined, true),r=({i18n:e,toFollow:t})=>t?e.bt("登录并关注", "Log in to follow", "limitedLogin.modalHeader.follow", undefined, true):e.bt("登录并取消关注", "Log in to unfollow", "limitedLogin.modalHeader.unfollow", undefined, true)},881802:(e,t,n)=>{n.d(t,{Bb:()=>g,Bx:()=>l,F4:()=>s,OG:()=>r,Qj:()=>c,_6:()=>_,gv:()=>o,hg:()=>d,is:()=>h,jP:()=>m,lt:()=>a,oM:()=>u,wI:()=>p});var i=n(826067);const a=e=>e.bt("登录并继续", "Log in to continue", "limitedLogin.modalHeader.default", undefined, true),r=e=>e.pathname,o=({firstName:e,i18n:t})=>e?(t.bt("{{ name }} 邀你加入他们的图板", "{{ name }} invited you to join their board", "limitedLogin.modalHeader.groupBoardCollab", undefined, true)).replace("{{ name }}",e):t.bt("朋友邀你加入他们的图板", "Your friends invited you to join their board", "limitedLogin.modalHeader.groupBoardCollab", undefined, true),s=e=>{const t=(0,i.mB)(e.search).board_url;if(t){const e=(0,i.Jx)(t),n=(0,i.XP)({accept_invite:!0,seamless:!0});return e.includes("?")?`${e}&${n}`:`${e}?${n}`}return e.pathname},l=e=>e.bt("登录并收藏此 Pin 图", "Log in to save this Pin", "limitedLogin.modalHeader.repin", undefined, true),c=e=>{const t=e.pathname;if(t.startsWith("/pin/")){const e=t.split("/");if(e.length>2)return`/${e[1]}/${e[2]}/repin/`}return t},d=e=>e.bt("登录并发送此 Pin 图", "Log in to send this Pin", "limitedLogin.modalHeader.send", undefined, true),u=e=>e.bt("登录并编辑此 Pin 图", "Log in to edit this Pin", "limitedLogin.modalHeader.editPin", undefined, true),p=e=>{const t=e.pathname;if(t.startsWith("/pin/")){const e=t.split("/");if(e.length>2)return`/${e[1]}/${e[2]}/edit/`}return t},h=e=>e.bt("登录并创建 Pin 图或图板", "Log in to create a Pin or board", "limitedLogin.modalHeader.create", undefined, true),m=e=>e.bt("登录以隐藏此 Pin 图", "Log in to hide this Pin", "limitedLogin.modalHeader.hidePin", undefined, true),_=e=>e.bt("登录即可分享个人资料", "Log in to share the profile", "limitedLogin.modalHeader.shareProfile", undefined, true),g=e=>e.bt("登录以创建图板", "Log in to create a board", "limitedLogin.modalHeader.createBoard", undefined, true)},927383:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(898781),a=n(50286),r=n(987318),o=n(945698);const s=()=>{const e=(0,i.ZP)(),t=(0,a.HG)(),{viewer:n,loginForMore:s,limitedLoginModalSubheader:l,limitedLoginModalNextLocation:c}=(0,r.H)();return"LIMITED_LOGIN"===n.type?({modalHeader:n,nextLocation:i})=>a=>{let r=null;a&&(a.nativeEvent&&a.nativeEvent instanceof Event?r=a:a.event&&(r=a.event)),r&&(r.preventDefault&&r.preventDefault(),r.stopPropagation&&r.stopPropagation()),null==s||s.setVisible(!0),null==l||l.setText(n||(t?(0,o.hr)(e):(0,o.Wh)(e))),i&&(null==c||c.setRoute(i))}:({fn:e})=>e}},461355:(e,t,n)=>{n.d(t,{Z:()=>_,z:()=>d});var i=n(667294),a=n(702664),r=n(391254),o=n(350118),s=n(698330),l=n(883119),c=n(785893);const d=2500,u={__style:{right:"-105px"}},p={__style:{animationName:"SavePin_AnimateIn, SavePin_CircleAnimateOut",animationDuration:"0.3s, 0.25s",animationDelay:"0.5s, 1.3s",animationFillMode:"forwards",animatitionTimingFunction:"ease-out",backgroundColor:"rgba(255, 255, 255, 0.6)"}},h={__style:{animationName:"SavePin_AnimateIn, SavePin_AnimateOut",animationDuration:"0.3s, 0.35s",animationDelay:"0.5s, 1.55s",animationFillMode:"forwards",animatitionTimingFunction:"ease-out",border:"4px solid white"}},m={__style:{animationName:"SavePin_NavButtonAnimation",animationDuration:"0.8s",animationDelay:"1.65s",animationFillMode:"forwards",animatitionTimingFunction:"ease-out"}},_=(0,i.memo)((({children:e})=>{var t;const n=null===(t=(0,s.Tt)())||void 0===t?void 0:t.last_repin_id,i=(0,o.S6)(),d=n?i(n):null,_=(0,a.useSelector)((({session:e})=>e.isShowingRepinAnimation));if(!d||!_)return e;const{images:g}=d,{height:v,width:f,url:y}=(null==g?void 0:g["136x136"])||(null==g?void 0:g["236x"])||{};return(0,c.jsxs)(l.kC,{alignItems:"stretch",flex:"grow",justifyContent:"center",children:[(0,c.jsx)(r.Z,{unsafeCSS:"\n@keyframes SavePin_AnimateIn {\n  from {\n    transform: scale(0.0);\n    opacity: 0;\n  }\n  to {\n    opacity: 1;\n    transform: scale(1.0);\n  }\n}\n@keyframes SavePin_CircleAnimateOut {\n  from {\n    transform: scale(1.0);\n    opacity: 1;\n  }\n  to {\n    transform: scale(0.8);\n    opacity: 0;\n  }\n}\n@keyframes SavePin_AnimateOut {\n  from {\n    transform: translateY(0);\n    opacity: 1;\n  }\n  to {\n    transform: translateY(100px);\n    width: 0px;\n    height: 0px;\n    opacity: 0;\n  }\n}\n@keyframes SavePin_NavButtonAnimation {\n  0% {\n    transform: scale(1.0);\n  }\n  50% {\n    transform: scale(1.3);\n  }\n  100% {\n    transform: scale(1.0);\n  }\n}\n"}),(0,c.jsxs)(l.xu,{position:"relative",children:[(0,c.jsxs)(l.xu,{width:250,height:250,position:"absolute",right:!0,bottom:!0,dangerouslySetInlineStyle:u,children:[(0,c.jsx)(l.xu,{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",opacity:0,rounding:"circle",dangerouslySetInlineStyle:p}),(0,c.jsx)(l.xu,{width:100,height:100,position:"absolute",margin:"auto",left:!0,right:!0,top:!0,bottom:!0,opacity:0,rounding:3,dangerouslySetInlineStyle:h,children:(0,c.jsx)(l.zd,{rounding:2,height:"100%",width:"100%",wash:!0,children:(0,c.jsx)(l.Ee,{alt:"pin-image",fit:"cover",naturalWidth:null!=f?f:1,naturalHeight:null!=v?v:1,src:null!=y?y:""})})})]}),(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:m,children:e})]})]})}))},327212:(e,t,n)=>{n.d(t,{Z:()=>E});var i=n(667294),a=n(376030),r=n(391254),o=n(883119),s=n(785893);function l({addedStyles:e,button:t,headerText:n,icon:a,iconOverride:l,minHeight:c,subHeaderText:d}){return(0,s.jsx)(o.xu,{display:"flex",justifyContent:"center",width:"100vw",paddingX:2,children:(0,s.jsxs)(o.xu,{alignContent:"center",alignItems:"center",bottom:!0,color:"default",dangerouslySetInlineStyle:{__style:{boxShadow:"0 3px 6px rgba(0,0,0,0.18)",transform:"translateY(-20px)",...e}},display:"flex",minHeight:c||75,padding:6,position:"relative",rounding:4,width:"100%",children:[(()=>{const e=l||(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(r.Z,{unsafeCSS:"\n@keyframes baseEduToastIconScale {\n  0% {\n    transform: scale(0)\n  }\n  30% {\n    transform: scale(1.2);\n  }\n  50% {\n    transform: scale(1);\n  }\n}\n"}),(0,s.jsx)(o.xu,{alignItems:"center",color:"education","data-test-id":"pin-save-toast",direction:"column",dangerouslySetInlineStyle:{__style:{animation:"baseEduToastIconScale 3s"}},display:"flex",height:60,justifyContent:"center",minHeight:60,minWidth:60,rounding:"circle",width:60,children:(0,s.jsx)(o.JO,{accessibilityLabel:a.accessibilityLabel,color:a.color,dangerouslySetSvgPath:a.dangerouslySetSvgPath,icon:a.icon,inline:a.inline,size:a.size})})]});return(0,s.jsx)(o.xu,{marginEnd:4,children:e})})(),(0,s.jsxs)(o.xu,{marginEnd:"auto",children:[(0,s.jsx)(o.xv,{color:"default",weight:"bold",children:n}),!!d&&(0,s.jsx)(o.xu,{paddingY:1,children:(0,s.jsx)(o.xv,{size:"300",color:"default",children:d})})]}),(0,s.jsx)(o.xu,{display:"flex",flex:"shrink",marginStart:2,children:t})]})})}var c=n(223815),d=n(829407),u=n(898781),p=n(759929);function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const m=(e,t)=>(e-t)/2,_=68,g=m(_,68),v=m(_,66),f=m(_,60),y="cubicBezier(0.25, 0.1, 0.25, 1)",b="encourageToastIconContainer",x="encourageToastIconRadiateBg",w="encourageToastIconRadiateRing",P={targets:`#${b}`,duration:300,scale:1.4,easing:y},S={targets:`#${b}`,duration:300,scale:1,easing:y,endDelay:1e3},k={targets:`#${b}`,duration:300,scale:.42,easing:y},T={targets:`#${x}`,duration:400,opacity:0,scale:1.6,easing:y},I={targets:`#${w}`,duration:650,opacity:0,scale:2,easing:y};function A({hiding:e,visible:t}){return t?e?{opacity:0,transform:"scale(1.0)",transition:"opacity transform .2s"}:{opacity:1,transition:"all 0.7s cubic-bezier(.19, 1.15, .48, 1)"}:Object.freeze({})}class C extends i.PureComponent{constructor(...e){super(...e),h(this,"delayTimer",null),h(this,"requestAnimationFrameId",null),h(this,"playAnimation",(()=>{this.requestAnimationFrameId=window.requestAnimationFrame((()=>{(0,a.Z)(T),(0,a.Z)(I),(0,a.Z)(P).finished.then((()=>{(0,a.Z)(S).finished.then((()=>{a.Z.set(`#${b}`,{transformOrigin:"top right"}),(0,a.Z)(k)}))}))}))})),h(this,"getHeaderText",(()=>{const{text:e}=this.props;return Array.isArray(e)?e[0]:e})),h(this,"getIconProps",(()=>({accessibilityLabel:this.props.i18n.bt("检查图标", "Check icon", "Label for check icon on toast shown after board create", undefined, true),color:"inverse",icon:"check",size:30}))),h(this,"getSubHeaderText",(()=>{const{text:e}=this.props;return e instanceof Array&&e.length>1&&e[1]?e[1]:""})),h(this,"renderAnimatedIcon",(()=>(0,s.jsxs)(o.xu,{height:_,position:"relative",width:_,children:[(0,s.jsx)(o.xu,{"data-test-id":"pin-save-toast",width:60,height:60,overflow:"hidden",position:"absolute",rounding:4,dangerouslySetInlineStyle:{__style:{left:`${f}px`,top:`${f}px`}},children:this.props.thumbnail}),(0,s.jsxs)(o.xu,{id:b,height:_,width:_,dangerouslySetInlineStyle:{__style:{transform:"scale(0)"}},position:"absolute",children:[(0,s.jsx)(o.xu,{color:"infoBase",id:x,width:68,height:68,position:"absolute",rounding:"circle",dangerouslySetInlineStyle:{__style:{left:`${g}px`,top:`${g}px`,transform:"scale(0)"}}}),(0,s.jsx)(o.xu,{id:w,width:66,height:66,position:"absolute",rounding:"circle",opacity:1,dangerouslySetInlineStyle:{__style:{borderWidth:"2px",borderStyle:"solid",borderColor:"#0074e8",left:`${v}px`,top:`${v}px`,transform:"scale(0)"}}}),(0,s.jsx)(o.xu,{alignItems:"center",color:"infoBase",direction:"column",display:"flex",height:_,justifyContent:"center",minHeight:_,minWidth:_,position:"absolute",rounding:"circle",width:_,children:(0,s.jsx)(o.JO,{accessibilityLabel:this.props.i18n.bt("检查图标", "Check icon", "Label for check icon on toast shown after board create", undefined, true),color:"inverse",icon:"check",size:30})})]})]})))}componentDidMount(){this.delayTimer=setTimeout(this.playAnimation,700)}componentWillUnmount(){this.delayTimer&&clearTimeout(this.delayTimer),this.requestAnimationFrameId&&window.cancelAnimationFrame(this.requestAnimationFrameId)}render(){const{isRepinToExistingBoard:e,button:t}=this.props,n=e;return(0,s.jsx)(l,{button:t,headerText:this.getHeaderText(),icon:this.getIconProps(),iconOverride:n?void 0:this.renderAnimatedIcon(),subHeaderText:this.getSubHeaderText()})}}function E(e){const{duration:t,onHide:n}=e,a=(0,u.ZP)(),[r,l]=(0,i.useState)(!1),[h,m]=(0,i.useState)(!1),_=(0,i.useRef)(),g=()=>{l(!0),_.current=setTimeout(n,200)},v=()=>{_.current&&clearTimeout(_.current)};(0,d.Z)((()=>(setTimeout((()=>m(!0)),100),_.current=setTimeout(g,t||p.w),v)));let f=(0,s.jsx)(C,{...e,i18n:a});return e.href&&(f=(0,s.jsx)(o.rU,{href:e.href,onClick:g,rounding:"pill",tapStyle:"none",children:f})),(0,s.jsx)(c.Z,{children:(0,s.jsx)(o.mh,{children:(0,s.jsx)(o.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{...A({hiding:r,visible:h})}},justifyContent:"center",position:"fixed",width:"100%",display:"flex",zIndex:p.k,children:f})})})}},56632:(e,t,n)=>{n.d(t,{L:()=>d,q:()=>u});var i=n(223019),a=n(258430),r=n(898781),o=n(883119),s=n(785893);const l=()=>{const e=(0,r.ZP)();return e.bt("温馨收藏！", "Sweet save!", "Header text on toast that appears after user creates their first board", undefined, true)},c=()=>{const e=(0,r.ZP)();return e.bt("所有图板都会出现在你的个人资料中", "All your boards live on your profile", "Subheader text on toast that appears after user creates their first board", undefined, true)},d=e=>({duration:5e3,thumbnail:(0,s.jsx)(o.xu,{"data-test-id":"pin-save-toast",width:48,height:48,children:(0,s.jsx)(a.Z,{boardId:e})})}),u=({boardId:e,isFBC:t,viewType:n})=>({duration:5e3,thumbnail:(0,s.jsx)(o.xu,{"data-test-id":"pin-save-toast",children:(0,s.jsx)(i.Z,{boardId:e,viewType:n,type:"thumbnail"})}),text:t?[(0,s.jsx)(l,{},"0"),(0,s.jsx)(c,{},"1")]:void 0})},662089:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(702664),a=n(461355),r=n(343341),o=n(639952);function s(){const e=(0,i.useDispatch)(),{showToast:t,showOneToast:n}=(0,r.F9)();return{showToast:t,showOneToast:n,showRepinConfirmation:(n,i)=>{i||e((0,o.WF)()),setTimeout((()=>{i||e((0,o.a5)()),t(n)}),a.z)}}}},239682:(e,t,n)=>{function i(e,t,n){return{privacy_filter:t?"secret":"public",sort:n||"last_pinned_to",field_set_key:"profile_grid_item",username:e}}n.d(t,{Z:()=>i})},240265:(e,t,n)=>{n.d(t,{O:()=>s,Q:()=>l});var i=n(59644),a=n(414327),r=n(956800);const o=["alphabetical","last_pinned_to","oldest","newest","group_boards_at_top","custom"],s={name:"BoardsResource",key:"boardsResource",options:({boardOrder:e,filterStories:t,mixPublicSecret:n,username:i},a)=>({privacy_filter:"all",sort:e||"last_pinned_to",field_set_key:"profile_grid_item",filter_stories:t,username:i,page_size:25,group_by:n?"mix_public_private":"visibility",include_archived:!0,redux_normalize_feed:!0,...a?{orbac_subject_id:a}:Object.freeze({})})},l=e=>o.reduce(((t,n)=>{const o=[(0,r.N8)("profileBoards",(0,i.Z)(e,n))];return[!0,!1].forEach((t=>{[!0,!1].forEach((i=>{o.push((0,a.jB)(s.name,s.options({username:e,boardOrder:n,mixPublicSecret:t,filterStories:i})))}))})),t.concat(o)}),[])},254176:(e,t,n)=>{n.d(t,{$z:()=>V,Br:()=>b,Cr:()=>O,K8:()=>T,L1:()=>W,NH:()=>te,OA:()=>K,RZ:()=>q,Tq:()=>S,Xi:()=>Z,YQ:()=>H,YV:()=>D,ZP:()=>R,aX:()=>L,eo:()=>w,fJ:()=>$,h6:()=>Y,k8:()=>X,md:()=>x,oG:()=>P,oL:()=>M,of:()=>I,rS:()=>ne,xH:()=>k,xQ:()=>A,xR:()=>B,xk:()=>E,yT:()=>y,yt:()=>Q,zC:()=>ee,zS:()=>G});var i,a,r,o,s,l,c=n(702664),d=n(27255),u=n(239682),p=n(422946),h=n(248327),m=n(240265),_=n(414327),g=n(214494),v=n(956800),f=n(167912);function y(e){return{type:"BOARD_UPDATE_COMPLETE",payload:{board:e}}}function b(e){return{type:"BOARD_PIN_COUNT_CHANGED",payload:e}}function x(e,t){return{type:"BOARD_FOLLOW",payload:{boardId:e,value:t}}}function w({viewingUserId:e,viewingUsername:t,boardId:n,boardPinCount:i}){return{type:"BOARD_DELETE",payload:{viewingUserId:e,viewingUsername:t,boardId:n,boardPinCount:i}}}const P=(e,t)=>n=>n((0,h.U)("BoardResource",{options:{board_id:e,field_set_key:t}}));function S(e,t,n){return(0,h.U)("BoardResource",{options:{board_id:e,field_set_key:t,...n?{orbac_subject_id:n}:{}}})}function k(e,t,n){return i=>g.Z.create("ApiResource",{url:`/v3/boards/${e}/merge/${t}/`,data:n?{orbac_subject_id:n}:{}}).callCreate().then((()=>Promise.all([i(w({boardId:e})),i(S(t,"pin_count")),i((0,v.N8)(p.DV.BOARD_SECTIONS,t))])))}function T(e){return t=>{e&&(0,m.Q)(e).forEach((e=>{t(e)}))}}const I=e=>({type:"BOARD_DISMISS_SENSITIVITY_SCREEN",payload:{boardId:e}}),A=e=>P(e,"pin_count");function C(e,t){return{type:"BOARD_ARCHIVE",payload:{boardId:e,username:t}}}function E(e,t){return n=>(n(C(e)),g.Z.create("BoardArchiveResource",{boardId:e,orbacSubjectId:t}).callUpdate())}function j(e){return{type:"BOARD_UNARCHIVE",payload:{boardId:e}}}function D(e,t){return n=>(n(j(e)),g.Z.create("BoardArchiveResource",{boardId:e,orbacSubjectId:t}).callDelete())}const O=(e,t)=>({type:"BOARD_COVER_IMAGE_UPDATED",payload:{boardId:e,coverPin:t}}),R=e=>({type:"BOARD_DISABLE_MORE_IDEAS_BADGING",payload:{boardId:e}});function L(e,t,n){const i={name:e,privacy:d.Z.BoardPrivacy.PUBLIC,username:t,...n?{orbac_subject_id:n}:Object.freeze({})};return e=>g.Z.create("BoardResource",i).callCreate().then((n=>{const i=n.resource_response.data;return e(t&&(0,_.jB)("BoardsResource",(0,u.Z)(t,!1))),i}))}function M(e={},t,n){return{type:"BOARD_CREATE_COMPLETE",payload:{options:e,board:t},error:n}}const F=(e,t,n)=>({type:"BOARD_INVITE_APPROVED_BY_VIEWER",payload:{boardId:e,isRequestToJoin:t,collaboratingUser:n}}),N=(e,t)=>({type:"BOARD_INVITE_DENIED_BY_VIEWER",payload:{boardId:e,userId:t}}),z=(e,t,n)=>({type:"BOARD_COLLABORATOR_DELETE",payload:{boardId:e,userId:t,viewingUser:n}}),U=(e,t,n,i)=>({type:"BOARD_COLLABORATOR_ADD",payload:{boardId:e,viewingUser:t,status:n,collaboratingUsers:i}}),Z=(e,t=!1,n)=>i=>(i(F(e,t,n)),g.Z.create("BoardInviteResource",{board_id:e,invited_user_id:null==n?void 0:n.id}).callUpdate()),B=(e,t)=>n=>(n(N(e,t)),g.Z.create("BoardInviteResource",{board_id:e,invited_user_id:t}).callDelete()),V=(e,t,n)=>i=>(i(U(e,t,"new",n)),g.Z.create("BoardInviteResource",{board_id:e,invited_user_ids:n.map((({id:e})=>e))}).callCreate()),H=(e,t,n,i,a)=>r=>{var o,s;const l="accepted"===t?"BoardCollaboratorResource":"BoardInviteResource";return r(z(e,null!==(o=null==i?void 0:i.id)&&void 0!==o?o:"",n)),g.Z.create(l,{board_id:e,field_set_key:"boardEdit",invited_user_id:null!==(s=null==i?void 0:i.id)&&void 0!==s?s:"",...a?{orbac_subject_id:a}:{}}).callDelete().catch((()=>r(U(e,n,t,[i]))))},K=(e,t)=>()=>g.Z.create("BoardEmailInviteResource",{board_id:e,emails:t}).callCreate(),W=(e,t,n,i)=>a=>{const r=g.Z.create("BoardResource",{board_id:n}).callDelete();return a(w({viewingUserId:e,viewingUsername:t,boardId:n,boardPinCount:i})),r},G=(e,t)=>n=>g.Z.create("BoardArchiveResource",{boardId:e}).callUpdate().then((i=>(n((0,v.Qv)("archived-boards",[{id:e,type:"board"}])),n(C(e,t)),i))),$=(e,t)=>n=>g.Z.create("BoardArchiveResource",{boardId:e}).callDelete().then((i=>(n((0,v.Qv)(`profile-boards:${t}`,[{id:e,type:"board"}])),n(j(e)),i))),q=()=>{const e=void 0!==i?i:i=n(604955),[t]=(0,f.useMutation)(e);return async e=>{const n={boardId:e};return await new Promise(((e,i)=>{t({variables:{...n},onCompleted:(t,n)=>{n&&i(n[0]),e(t)},onError:e=>i(e)})}))}},J=()=>{const e=void 0!==a?a:a=n(90105),[t]=(0,f.useMutation)(e);return async(e,n,i)=>{const a={boardId:e,userId:n,ban:i||!1};return await new Promise(((e,n)=>{t({variables:{...a},onCompleted:(t,i)=>{i&&n(i[0]),e(t)},onError:e=>n(e)})}))}},Y=()=>{const e=void 0!==o?o:o=n(518190),[t]=(0,f.useMutation)(e),i=(0,c.useDispatch)();return async(e,n,a)=>{const r={boardId:e,userId:(null==a?void 0:a.id)||""};return await new Promise(((o,s)=>{t({variables:{...r},onCompleted:(t,r)=>{r&&s(r[0]),i(F(e,n,a)),o(t)},onError:e=>s(e)})}))}},X=()=>{const e=J();return(t,n)=>i=>(i(N(t,n)),e(t,n))},Q=()=>{const e=void 0!==s?s:s=n(16945),[t]=(0,f.useMutation)(e);return async(e,n)=>{const i={boardId:e,collaboratorIds:n.map((({id:e})=>e)),message:""};return await new Promise(((e,n)=>{t({variables:{...i},onCompleted:(t,i)=>{i&&n(i[0]),e(t)},onError:e=>n(e)})}))}},ee=()=>{const e=void 0!==l?l:l=n(787525),[t]=(0,f.useMutation)(e);return async(e,n)=>{const i={board:e,emails:n,message:""};return await new Promise(((e,n)=>{t({variables:{...i},onCompleted:(t,i)=>{i&&n(i[0]),e(t)},onError:e=>n(e)})}))}},te=()=>{const e=Q();return(t,n,i)=>a=>(a(U(t,n,"new",i)),e(t,i))},ne=()=>{const e=J(),t=(()=>{const e=void 0!==r?r:r=n(472297),[t]=(0,f.useMutation)(e);return async(e,n)=>{const i={board:e,collaboratorIds:[n]};return await new Promise(((e,n)=>{t({variables:{...i},onCompleted:(t,i)=>{i&&n(i[0]),e(t)},onError:e=>n(e)})}))}})();return(n,i,a,r)=>o=>{var s,l;const c="accepted"===i?t:e;return o(z(n,null!==(s=null==r?void 0:r.id)&&void 0!==s?s:"",a)),c(n,null!==(l=null==r?void 0:r.id)&&void 0!==l?l:"").catch((()=>o(U(n,a,i,[r]))))}}},712055:(e,t,n)=>{n.d(t,{Z:()=>o,f:()=>s});var i=n(214494),a=n(254176);function r(e){return i.Z.create("BoardFollowResource",{board_id:e})}function o(e){return t=>{r(e).callCreate().catch((()=>{t((0,a.md)(e,!1))})),t((0,a.md)(e,!0))}}function s(e){return t=>{r(e).callDelete().catch((()=>{t((0,a.md)(e,!0))})),t((0,a.md)(e,!1))}}},956800:(e,t,n)=>{function i(e){return{type:"FEED_ITEM_REORDERED",payload:e}}function a(e,t){return{type:"FEED_INVALIDATE",payload:{feedType:e,feedId:t}}}n.d(t,{EX:()=>o,N8:()=>a,Qv:()=>r,_f:()=>i,vX:()=>s});const r=(e,t,n=Object.freeze({}))=>({type:"APPEND_FEED_ITEMS",payload:{id:e,options:n,items:t}});function o(e){return{type:"FEED_ITEMS_REMOVED",payload:e}}function s(e){return{type:"FEED_ITEMS_ADDED",payload:e}}},12918:(e,t,n)=>{n.d(t,{M:()=>l,i:()=>c});var i=n(483025),a=n(414327),r=n(782677),o=n(90326),s=n(214494);const l=(e,t,n,i)=>({type:"PIN_ADD",payload:{pinId:e,boardId:t,boardSectionId:n,pinnerId:i}}),c=e=>t=>{const{method:n,guid:c,image_base64:d,image_url:u}=e;return((e,t)=>new Promise((n=>{e?(0,o.eR)(e).then((e=>{n(e)})):n(t)})))(d,u).then((o=>{const d={...e,method:"button"!==n||c?n:"button_external",image_url:o,image_base64:void 0},u="PinResource";return s.Z.create(u,d).callCreate().then((e=>{const n=(0,r.Fv)(e.resource_response.data,i.Z.PinResource);t((0,a.XM)(u,d,e,n));const o=e.resource_response.data,{board:{id:s},pinner:{id:c},section:p}=o,h=p&&p.id;return t(l(o.id,s,h,c)),e}))}))}},139574:(e,t,n)=>{n.d(t,{L:()=>s,q:()=>l});var i=n(422946),a=n(956800),r=n(254176),o=n(214494);function s(e){return t=>{const{inSelectAll:n,selectedPinIds:s,orbacSubjectId:l,source:{boardId:c,sectionId:d}}=e,u=n?"BulkEditSelectAllResource":"BulkEditResource",p={board_id:c,section_id:d,pin_ids:s,orbac_subject_id:l};return t((0,r.xQ)(c)),t((0,a.EX)({feedId:d||c,feedType:d?i.DV.BOARD_SECTION_PINS:i.DV.BOARDFEED,inverseSelection:n,itemIds:s,itemType:"pin"})),o.Z.create(u,p).callDelete()}}const l=({pinId:e,boardId:t,boardSectionId:n,clientTrackingParams:i})=>(a,r)=>{const s=o.Z.create("PinResource",{id:e,client_tracking_params:i}).callDelete(),{session:{userId:l}}=r();return a(((e,t,n,i)=>({type:"PIN_DELETE",payload:{pinId:e,boardId:t,boardSectionId:n,userId:i}}))(e,t,n,l)),s}},850431:(e,t,n)=>{n.d(t,{w:()=>r});var i=n(349741),a=n(956800);const r=({pinId:e,boardId:t,i18n:n,logContextEvent:r,onSuccess:o,onUndo:s,originalPinId:l,showNewUserSavetoProfileAnimation:c,showRepinConfirmation:d,showToast:u,section:p,trackingParams:h,isOneTapSave:m,viewType:_,historyPush:g,suggestedBoardIds:v,savePinId:f})=>(y,b)=>{var x,w,P,S,k;const{pins:T,session:I,feeds:A}=b(),C=T[e];t&&((null===(x=null!==(w=null==C?void 0:C.shopping_flags)&&void 0!==w?w:[])||void 0===x?void 0:x.length)>0||null!=C&&C.rich_summary&&(null===(P=null!==(S=null==C||null===(k=C.rich_summary)||void 0===k?void 0:k.products)&&void 0!==S?S:[])||void 0===P?void 0:P.length)>0)&&(A[`board-shop-saved-preview:${t}`]&&y((0,a.Qv)(`board-shop-saved-preview:${t}`,[C],{isPrepend:!0})),A[`board-shop-saved:${t}`]&&y((0,a.Qv)(`board-shop-saved:${t}`,[C],{isPrepend:!0})));return new i.Z({boardId:t,dispatch:y,i18n:n,isLegoSaveStyle:!0,isOneTapSave:m,onSuccess:o,onUndo:s,originalPinId:l,pin:C,section:p,showNewUserSavetoProfileAnimation:c,showRepinToasts:e=>d?d(e):u?u(e):void 0,trackingParams:h,userId:I.userId,viewType:_,historyPush:g,suggestedBoardIds:v,savePinId:f}).processRepin(r)}},639952:(e,t,n)=>{n.d(t,{Cp:()=>l,FK:()=>s,H5:()=>b,MI:()=>m,O0:()=>h,QZ:()=>o,W:()=>v,WF:()=>d,Wz:()=>x,a5:()=>u,dz:()=>g,e0:()=>p,e2:()=>r,iW:()=>f,n1:()=>a,rm:()=>c,wb:()=>y,xu:()=>_});var i=n(53987);const a=()=>({type:"DISMISS_UNAUTH_SAVE"}),r=()=>({type:"COMPLETE_UNAUTH_SAVE_ACTION"}),o=e=>({type:"SET_UNAUTH_SAVE_PIN_ID",payload:{unauthSavePinId:e}}),s=()=>({type:"HIDE_NAV_FOOTER"}),l=()=>({type:"SHOW_NAV_FOOTER"}),c=e=>({type:"SET_LOGIN_SIGNUP_FROM",payload:{from:e}}),d=()=>({type:"SHOW_REPIN_ANIMATION"}),u=()=>({type:"HIDE_REPIN_ANIMATION"}),p=e=>({type:"SET_NUM_SIGNUP_STEPS",payload:{steps:e}}),h=()=>({type:"SET_OWN_PROFILE_PINS_REFRESH"}),m=e=>({type:"SHOW_BIZ_NUX_HOMEFEED_LOADER",payload:e}),_=e=>({type:"SET_VIEWED_IMAGE",payload:{viewedImageSignature:e}}),g=e=>({type:"SET_VIEWED_SHARED_PINS",payload:{pins:e}}),v=()=>({type:"DISMISS_UNAUTH_APP_UPSELL"}),f=e=>e?{type:"LOGGED_OUT_USER_INFO_FOUND",payload:e}:{type:"LOGGED_OUT_USER_INFO_NOT_FOUND"},y=()=>({type:"STOP_SCROLL_TO_CLOSEUP_PIN"}),b=e=>({type:"UPDATE_USER_FIRST_HOME_FEED_REQUEST_AFTER_NUX",payload:e}),x=(e,t)=>{let n;return n=e?(0,i.bo)(e)?"today":(0,i.dr)(e)?"ideas":t&&(0,i.dZ)(e,t)?"own_section":t&&(0,i.J)(e,t)?"own_board":(0,i.OJ)(e)?"section":(0,i.am)(e)?"board":(0,i.L6)(e)?"closeup":(0,i.C$)(e)?"home":(0,i.cD)(e)?"profile":(0,i.En)(e)?"search":(0,i.$V)(e)?"topic":"":"",{type:"SET_LANDING_PAGE_TYPE",payload:n}}},90326:(e,t,n)=>{n.d(t,{Ge:()=>l,JS:()=>r,OF:()=>g,P_:()=>o,Q_:()=>u,b8:()=>p,eR:()=>_,h2:()=>c,h6:()=>d});var i=n(735422),a=n(214494);function r(e){return{type:"UPDATE_USER_PIN_COUNT",payload:e}}const o=(e,t)=>({type:"USER_FOLLOW",payload:{id:e,value:t}}),s=(e,t)=>({type:"USER_BLOCK",payload:{id:e,value:t}}),l=({id:e,orbacSubjectId:t,blockSource:n,blockContext:i})=>r=>(r(s(e,!0)),a.Z.create("UserBlockResource",{blocked_user_id:e,orbac_subject_id:t,block_source:n,block_context:i}).callCreate().catch((()=>r(s(e,!1))))),c=e=>t=>(t(s(e,!1)),a.Z.create("UserBlockResource",{blocked_user_id:e}).callDelete().catch((()=>t(s(e,!0)))));function d(e){return{type:"UPDATE_USER_SCHEDULED_PIN_COUNT",payload:e}}const u=(e,t)=>()=>a.Z.create("UserStateResource",{state:e,value:t}).callCreate(),p=(e,t,n)=>(r,o)=>{a.Z.create("ApiResource",{url:"/v3/users/me/"}).callCreate().then((()=>{n({event_type:48,object_id_str:o().session.userId}),e(),(0,i.Dm)()}),t)};const h=async(e,t,n)=>{var i;const r=await a.Z.create("VIPResource",{upload_ids:[e]}).callGet();if(null!==(i=r.resource_response)&&void 0!==i&&i.data[e]){const i=r.resource_response.data[e],{status:a,signature:o}=i;if("processing"===a||"registered"===a)setTimeout((async()=>{h(e,t,n)}),5e3);else if("succeeded"===a){const e=((e,t="150x150")=>e&&`https://i.pinimg.com/${t}/${e.substring(0,2)}/${e.substring(2,4)}/${e.substring(4,6)}/${e}.jpg`||"")(o);t(e)}else n()}else n()},m=e=>new Promise(((t,n)=>{var i,r,o,s,l;i=e,r="pinimage",o=()=>{},s=e=>{t(e)},l=e=>{n(e)},(new FormData).append("img",i),a.Z.create("VIPResource",{type:r}).callCreate().then((e=>{var t;if(null!==(t=e.resource_response)&&void 0!==t&&t.data){const{upload_id:t,upload_url:n,upload_parameters:a}=e.resource_response.data,r=new XMLHttpRequest;r.open("POST",n,!0),r.onload=()=>{var e;(e=r.status)>=200&&e<400?(o(100),h(t,s,l)):l()},r.upload.onprogress=e=>{const t=Math.round(100*e.loaded/e.total);o(t)};const c=new FormData;for(const e in a)c.append(e,a[e]);c.append("file",i),r.send(c)}}),(()=>{l()}))})),_=e=>new Promise(((t,n)=>{"string"==typeof e?e.startsWith("data")&&m(function(e,t=512){const n=e.split(";"),i=n[0].split(":")[1],a=n[1].split(",")[1],r=atob(a),o=[];for(let s=0;s<r.length;s+=t){const e=r.slice(s,s+t),n=new Array(e.length);for(let t=0;t<e.length;t+=1)n[t]=e.charCodeAt(t);const i=new Uint8Array(n);o.push(i)}return new Blob(o,{type:i})}(e)).then((e=>t(e))):n("Invalid Image")})),g=e=>()=>a.Z.create("ApiResource",{url:"/v3/register/exists/",data:{email:e}}).callGet()},675752:(e,t,n)=>{n.d(t,{A:()=>i});const i=e=>{const t=e.rich_metadata;return t?t.products?144:t.article?141:t.recipe?145:139:140}},977734:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(349741),a=n(214494);function r({history:e,i18n:t,logContextEvent:n,onSuccess:r,onUndo:o,originalPinId:s,pinId:l,trackingParams:c,disableRepinAnimation:d,showNewUserSavetoProfileAnimation:u,showRepinConfirmation:p,historyPush:h,savePinId:m}){return(_,g)=>{const{pins:v,session:f}=g(),{userId:y}=f,b=v[l],x={name:t.bt("快速收藏", "Quick Saves", "quickSave.boardName", undefined, true),layout:"quick_saves",protected:!1,return_existing:!0,user_id:y};return a.Z.create("BoardResource",x).callCreate().then((a=>{const l=a.resource_response.data;return new i.Z({boardId:l.id,dispatch:_,isQuickSave:!0,history:e,i18n:t,onSuccess:r,onUndo:o,originalPinId:s,pin:b,section:void 0,showNewUserSavetoProfileAnimation:u,showRepinToasts:e=>p?p(e,d):void 0,trackingParams:c,userId:f.userId,historyPush:h,savePinId:m}).processRepin(n)}))}}},580751:(e,t,n)=>{n.d(t,{M:()=>s,Q:()=>l});var i=n(667294),a=n(425288),r=n(785893);const{Provider:o,useMaybeHook:s}=(0,a.Z)("RepinContext");function l({children:e}){const[t,n]=(0,i.useState)(Object.freeze({})),a=(0,i.useMemo)((()=>({getSavedPinId:e=>t[e],isSaved:e=>!!t[e],save:(e,t)=>n((n=>({...n,[e]:t}))),unsave:e=>n((t=>({...t,[e]:null})))})),[t]);return(0,r.jsx)(o,{value:a,children:e})}},225313:(e,t,n)=>{n.d(t,{Z:()=>Z});var i=n(667294),a=n(702664),r=n(90771),o=n(31149),s=n(659522),l=n(214680),c=n(331744),d=n(172071),u=n(757146),p=n(785893);function h({size:e=56}){return(0,p.jsxs)("svg",{display:"block",fill:"none",height:e,viewBox:"0 0 56 56",width:e,xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("rect",{fill:"#e60023",height:"56",rx:"28",width:"56"}),(0,p.jsx)("path",{clipRule:"evenodd",d:"m28 31.9842 6 3.6666v-15.6508h-12v15.6508zm0 3.5158 5.9571 3.6404c1.3327.8145 3.0429-.1447 3.0429-1.7065v-17.4339c0-1.6569-1.3431-3-3-3h-12c-1.6569 0-3 1.3431-3 3v17.4339c0 1.5618 1.7102 2.521 3.0429 1.7065z",fill:"#fff",fillRule:"evenodd"})]})}var m=n(862960),_=n(941646),g=n(499128),v=n(464240),f=n(287072),y=n(89396),b=n(22641),x=n(467570),w=n(867820),P=n(773285),S=n(50286),k=n(167912),T=n(780280),I=n(898781),A=n(112690),C=n(52022),E=n(86802),j=n(642832),D=n(883119),O=n(844974),R=n(644035),L=n(343341);function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const F=56,N=String(86),z=({text:e})=>(0,p.jsx)(D.xv,{align:"center",size:"100",children:e});class U extends i.PureComponent{constructor(...e){super(...e),M(this,"state",{invitePath:"",inviteCode:null,inviteMessage:"",inviteTitle:"",Clipboard:null,fbLoaded:!1}),M(this,"setClipboard",(e=>{const{Clipboard:t,invitePath:n}=this.state;(0,j.sF)(n,t,e,this.showCopyToast)})),M(this,"showCopyToast",(()=>{var e,t,n,i;this.logShareClick(12),this.setNewAppOrder(12),null===(e=(t=this.props).onShare)||void 0===e||e.call(t),this.props.showToast((({hideToast:e})=>(0,p.jsx)(g.ZP,{text:this.props.i18n.bt("链接已复制到剪贴板可用于分享", "Copied link to your clipboard to share", "url link was copied to user clipboard", undefined, true),onHide:e}))),null===(n=(i=this.props).setShareSent)||void 0===n||n.call(i,!0),this.props.trackInteraction({action:"click",item:"copy-link-share-icon"})})),M(this,"getDefaultAppOrder",(()=>{const{country:e,isDesktop:t}=this.props;return(0,j.pW)({country:e,isDesktop:t,shouldShowNativeShare:Boolean(navigator.share)})})),M(this,"getAppOrder",(()=>{const{isDesktop:e}=this.props;let t=JSON.parse((0,O.qn)(E.B));return!t||e?this.getDefaultAppOrder():(t=[...t.filter((e=>11!==e&&12!==e)),12],Boolean(navigator.share)&&t.push(11),t)})),M(this,"setNewAppOrder",(e=>{const{isDesktop:t}=this.props;t||E.F6.has(e)||(0,O.Nh)(E.B,JSON.stringify([e,...this.getAppOrder().filter((t=>t!==e))]))})),M(this,"handleMessagingAppClick",(e=>{var t,n,i,a;null===(t=(n=this.props).onShare)||void 0===t||t.call(n),null===(i=(a=this.props).setShareSent)||void 0===i||i.call(a,!0),this.logShareClick(e),this.setFreshInviteCode(e),E.rO.has(e)||(0,O.Nh)(E.Cq,e),this.setNewAppOrder(e)})),M(this,"handleMessengerClick",(()=>{this.props.trackInteraction({action:"click",item:"fbmessenger-share-icon"}),this.handleMessagingAppClick(6)})),M(this,"handleTwitterClick",(()=>{this.props.trackInteraction({action:"click",item:"twitter-share-icon"}),this.handleMessagingAppClick(9)})),M(this,"handleWhatsappClick",(()=>{this.props.trackInteraction({action:"click",item:"whatsapp-share-icon"}),this.handleMessagingAppClick(10)})),M(this,"handleLineClick",(()=>{this.handleMessagingAppClick(8)})),M(this,"handleTelegramClick",(()=>{this.handleMessagingAppClick(20)})),M(this,"handleViberClick",(()=>{this.handleMessagingAppClick(22)})),M(this,"handleEmailClick",(()=>{this.handleMessagingAppClick(3),this.props.trackInteraction({action:"click",item:"email-share-button"})})),M(this,"handleFacebookClick",(e=>{var t,n,i,a;const{isDesktop:r}=this.props;e.preventDefault(),null===(t=(n=this.props).onShare)||void 0===t||t.call(n),null===(i=(a=this.props).setShareSent)||void 0===i||i.call(a,!0),(0,w.My)(`pcons.${r?"desktop":"mobile"}.facebook-share-icon`),this.props.trackInteraction({action:"click",item:"facebook-share-icon"}),this.logShareClick(5);const{inviteCode:o,invitePath:s,fbLoaded:l}=this.state;(0,j.Rh)(l,s,o||""),this.setFreshInviteCode(5),this.setNewAppOrder(5)})),M(this,"handleSmsClick",(()=>{this.handleMessagingAppClick(4)})),M(this,"logShareClick",((e,t=this.state.inviteCode)=>{const{objectId:n,objectType:i,component:a,clientTrackingParams:r,logContextEvent:o,viewType:s,viewParameter:l,socialShareComponent:c}=this.props;(0,j.Iz)({inviteChannel:e,inviteCode:t,objectId:n,objectType:i,component:a,clientTrackingParams:r,logContextEvent:o,view_type:s,view_parameter:l,socialShareComponent:c})})),M(this,"copyButtonRef",null),M(this,"renderAppsInCustomOrder",(({Email:e,Facebook:t,FBMessenger:n,Line:a,WhatsApp:r,Twitter:o,Viber:s,Telegram:l,CopyLink:c,Sms:d,ShareVia:u})=>{const h=this.getAppOrder(),m=new Map([[6,n],[10,r],[5,t],[9,o],[3,e],[8,a],[20,l],[22,s],[4,d],[12,c],[11,u]]);return(0,p.jsx)(i.Fragment,{children:h.map((e=>m.get(e)))})})),M(this,"onHandleRepinSave",(({event:e,dangerouslyDisableOnNavigation:t})=>{var n,i;t(),null===(n=(i=this.props).onSave)||void 0===n||n.call(i),this.props.onNavigation({event:e})}))}componentDidMount(){this.setFreshInviteCode(12),(0,x.we)(this.props.locale).then((()=>{this.setState({fbLoaded:!0})})),n.e(6527).then(n.t.bind(n,842152,23)).then((({default:e})=>{e.isSupported()&&(this.setState({Clipboard:e}),this.setClipboard(this.copyButtonRef))}))}componentDidUpdate({objectId:e}){const{objectId:t}=this.props;e!==t&&this.setFreshInviteCode(12)}async setFreshInviteCode(e){const{objectId:t,objectType:n}=this.props,{invitePath:i,inviteCode:a,title:r,message:o}=await(0,j.yP)(e,t,n,this.props.relayEnvironment),s={};i&&(s.invitePath=i),a&&(s.inviteCode=a),r&&(s.inviteTitle=r),o&&(s.inviteMessage=o),this.setState(s)}render(){const{isDesktop:e,objectType:t,onSave:n,showSaveOption:i,isAppleDevice:a,inVerticalContactsShareExp:g}=this.props,{invitePath:f,inviteMessage:x,inviteTitle:w}=this.state,{emailShareLink:P,messengerShareLink:S,twitterShareLink:k,whatsappShareLink:T,lineShareLink:I,telegramShareLink:A,viberShareLink:C,smsShareLink:E}=(0,j.tA)({invitePath:f,inviteTitle:w,objectType:t,i18n:this.props.i18n,isDesktop:e}),O=({children:t})=>(0,p.jsx)(D.kC,{alignItems:"center",justifyContent:"start",direction:"column",width:e?`${N}px`:"100%",children:t}),R=({children:e})=>(0,p.jsx)(D.xu,{display:"flex",justifyContent:"center",paddingX:3,marginBottom:1,children:e}),L=(0,p.jsxs)(O,{children:[(0,p.jsx)(R,{children:(0,p.jsx)(_.Z,{id:"fbmessenger-share-icon",children:(0,p.jsx)(D.iP,{rounding:"circle",role:"link",rel:"nofollow",href:S,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleMessengerClick()},children:(0,p.jsx)(u.Z,{size:F})})})}),(0,p.jsx)(z,{text:this.props.i18n.bt("Messenger", "Messenger", "shareMenu.icon.label.messenger", undefined, true)})]}),M=(0,p.jsxs)(O,{children:[(0,p.jsx)(R,{children:(0,p.jsx)(_.Z,{id:"whatsapp-share-icon",children:(0,p.jsx)(D.iP,{rounding:"circle",role:"link",rel:"nofollow",href:T,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleWhatsappClick()},children:(0,p.jsx)(b.Z,{size:F})})})}),(0,p.jsx)(z,{text:this.props.i18n.bt("WhatsApp", "WhatsApp", "shareMenu.icon.label.whatsapp", undefined, true)})]}),U=(0,p.jsx)(D.xu,{"data-test-id":"facebook-share-icon",display:"flex",flex:"shrink",children:(0,p.jsxs)(O,{children:[(0,p.jsx)(R,{children:(0,p.jsx)(D.rU,{href:"#",onClick:({event:e})=>{this.handleFacebookClick(e)},children:(0,p.jsx)(s.Z,{size:F})})}),(0,p.jsx)(z,{text:this.props.i18n.bt("Facebook", "Facebook", "shareMenu.icon.label.facebook", undefined, true)})]})}),Z=(0,p.jsxs)(O,{children:[(0,p.jsx)(R,{children:(0,p.jsx)(_.Z,{id:"twitter-share-icon",children:(0,p.jsx)(D.iP,{rounding:"circle",role:"link",rel:"nofollow",href:k,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleTwitterClick()},children:(0,p.jsx)(v.Z,{size:F})})})}),(0,p.jsx)(z,{text:this.props.i18n.bt("Twitter", "Twitter", "shareMenu.icon.label.twitter", undefined, true)})]}),B=(0,p.jsxs)(O,{children:[(0,p.jsx)(R,{children:(0,p.jsx)(D.iP,{rounding:"circle",role:"link",rel:"nofollow",href:I,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleLineClick()},children:(0,p.jsx)(c.Z,{size:F})})}),(0,p.jsx)(z,{text:this.props.i18n.bt("行高", "Line", "shareMenu.icon.label.line", undefined, true)})]}),V=(0,p.jsxs)(O,{children:[(0,p.jsx)(R,{children:(0,p.jsx)(D.iP,{rounding:"circle",role:"link",rel:"nofollow",href:C,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleViberClick()},children:(0,p.jsx)(y.Z,{size:F})})}),(0,p.jsx)(z,{text:this.props.i18n.bt("Viber", "Viber", "shareMenu.icon.label.viber", undefined, true)})]}),H=(0,p.jsxs)(O,{children:[(0,p.jsx)(R,{children:(0,p.jsx)(D.iP,{rounding:"circle",role:"link",rel:"nofollow",href:A,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleTelegramClick()},children:(0,p.jsx)(m.Z,{size:F})})}),(0,p.jsx)(z,{text:this.props.i18n.bt("Telegram", "Telegram", "shareMenu.icon.label.telegram", undefined, true)})]}),K=(0,p.jsxs)(O,{children:[(0,p.jsx)(R,{children:(0,p.jsx)(_.Z,{id:"email-share-button",children:(0,p.jsx)(D.iP,{rounding:"circle",role:"link",rel:"nofollow",target:"blank",href:P,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleEmailClick()},children:(0,p.jsx)(o.Z,{size:F})})})}),(0,p.jsx)(z,{text:this.props.i18n.bt("电子邮件", "Email", "shareMenu.icon.label.email", undefined, true)})]}),W=(0,p.jsxs)(O,{children:[(0,p.jsx)(R,{children:(0,p.jsx)(D.iP,{rounding:"circle",role:"link",rel:"nofollow",target:"blank",href:"#",onTap:({event:e,dangerouslyDisableOnNavigation:t})=>{var n,i;e.preventDefault(),null===(n=(i=this.props).onShare)||void 0===n||n.call(i),t();const a=x.indexOf("https://");navigator.share&&navigator.share({url:f,text:a>0?x.slice(0,a):x,title:w}).then((()=>{this.handleMessagingAppClick(11),d.Z.increment("allshareoptions_navigator_share.success",1)})).catch((e=>{d.Z.increment("allshareoptions_navigator_share.error",1,{name:e.name,message:e.message})}))},children:(0,p.jsx)(D.xu,{height:F,children:(0,p.jsx)(D.hU,{accessibilityLabel:this.props.i18n.bt("原生分享表格图标", "Native share sheet icon", "shareMenu.icon.accessibilityLabel.native_share_sheet", undefined, true),bgColor:"lightGray",icon:"share",iconColor:"darkGray",size:"xl"})})})}),(0,p.jsx)(z,{text:this.props.i18n.bt("通过以下方式分享", "Share via", "shareMenu.icon.label.share_via", undefined, true)})]}),G=(0,p.jsxs)(O,{children:[(0,p.jsx)(R,{children:(0,p.jsx)(D.iP,{rounding:"circle",role:"link",rel:"nofollow",href:E,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleSmsClick()},children:a?(0,p.jsx)(l.Z,{size:F}):(0,p.jsx)(r.Z,{size:F})})}),(0,p.jsx)(z,{text:this.props.i18n.bt("消息", "Message", "shareMenu.icon.label.message", undefined, true)})]}),$=(0,p.jsxs)(O,{children:[(0,p.jsx)(R,{children:(0,p.jsx)(D.xu,{ref:this.setClipboard,dangerouslySetInlineStyle:{__style:{cursor:e?"pointer":void 0}},"data-test-id":"copy-link-share-icon",height:F,children:(0,p.jsx)(D.hU,{accessibilityLabel:this.props.i18n.bt("链接图标", "Link icon", "shareMenu.icon.accessibilityLabel.copy", undefined, true),bgColor:"lightGray",icon:"link",iconColor:"darkGray",size:"xl"})})}),(0,p.jsx)(z,{text:this.props.i18n.bt("复制链接", "Copy link", "shareMenu.icon.label.copy", undefined, true)})]});return(0,p.jsxs)(D.xu,{children:[!g&&(0,p.jsx)(D.xu,{height:4}),(0,p.jsx)(D.kC,{alignItems:"stretch",justifyContent:"start",overflow:"hidden",children:(0,p.jsxs)(D.xu,{display:"flex",justifyContent:"start",height:e?180:void 0,width:e?370:"100vw",marginBottom:-2,marginTop:g?-2:void 0,paddingX:1,paddingY:2,overflow:e?void 0:"scrollX",wrap:e,children:[i&&n&&(()=>(0,p.jsxs)(O,{children:[(0,p.jsx)(R,{children:(0,p.jsx)(D.iP,{rounding:"circle",onTap:this.onHandleRepinSave,children:(0,p.jsx)(h,{size:F})})}),(0,p.jsx)(z,{text:this.props.i18n.bt("收藏", "Save", "shareMenu.icon.label.save", undefined, true)})]}))(),this.renderAppsInCustomOrder({Email:K,Facebook:U,FBMessenger:L,Line:B,WhatsApp:M,Twitter:Z,Viber:V,Telegram:H,CopyLink:$,Sms:G,ShareVia:W})]})}),(0,p.jsx)(D.xu,{height:16})]})}}function Z(e){const t=(0,I.ZP)(),n=(0,S.HG)(),{showToast:i}=(0,L.F9)(),{country:r,locale:o}=(0,T.B)(),s=(0,f.Z)({href:{pathname:`/pin/${e.objectId}/repin`,state:{viewType:e.viewType,viewParameter:e.viewParameter}}}),{checkExperiment:l}=(0,P.F)(),c=(0,a.useSelector)((({session:e})=>e.userAgentPlatform)),d=c===R.RL||c===R.s4,u=l("graphql_migration_sharesheet_sgrowth_web").anyEnabled,h=(0,k.useRelayEnvironment)(),m=(0,A.Z)(),_=(0,C.Z)();return(0,p.jsx)(U,{...e,country:r,i18n:t,isDesktop:n,locale:o,showToast:i,onNavigation:s,logContextEvent:m,isAppleDevice:d,relayEnvironment:u?h:void 0,trackInteraction:_})}},642832:(e,t,n)=>{n.d(t,{Iz:()=>g,Rh:()=>p,pW:()=>d,rL:()=>_,sF:()=>h,tA:()=>u,yP:()=>m});var i,a,r=n(214494),o=n(467570),s=n(867060),l=n(167912);const c={FBMessenger:6,WhatsApp:10,Facebook:5,Twitter:9,Email:3,Line:8,Telegram:20,Viber:22,Sms:4,CopyLink:12,ShareVia:11};function d({country:e,isDesktop:t,shouldShowNativeShare:n}){const{FBMessenger:i,WhatsApp:a,Facebook:r,Twitter:o,Email:s,Line:l,Telegram:d,Viber:u,Sms:p,CopyLink:h,ShareVia:m}=c;function _(){switch(e){case"US":return t?[a,r,o,s]:[p,i,a,r,o];case"ID":return t?[a,l,s,r]:[a,d,p,l,s,r];case"JP":case"TH":case"TW":return t?[l,o,s,r]:[l,s,p,o,r];case"GR":return t?[a,r,o,s]:[u,i,a,p,r,o];case"IR":case"IQ":return t?[a,r,o,s]:[a,d,p,i,o];case"UA":case"RU":return t?[a,r,o,s]:[a,u,d,r,i,p,o];default:return t?[a,r,o,s]:[a,i,p,r,o]}}return t?[h,..._()]:[..._(),h,...n?[m]:[]]}function u({invitePath:e,inviteTitle:t,objectType:n,i18n:i,isDesktop:a}){let r=i.bt("为你推荐的 Pin 图", "A Pin for you", "shareMenu.message.title", undefined, true);8===n&&(r=i.bt("请在 Pinterest 上查看此文章。", "Check out this article on Pinterest!", "shareMenu.message.title", undefined, true));const s=`mailto:?subject=${encodeURIComponent(r)}&body=${encodeURIComponent(e)}`,l=`fb-messenger://share/?link=${encodeURIComponent(e)}&app_id=${o.GH}`,c=`${t}\n${e}`,d=a?`https://twitter.com/intent/tweet?via=pinterest&url=${encodeURIComponent(c)}`:`twitter://post?message=${encodeURIComponent(c)}`,u=a?`https://web.whatsapp.com/send?text=${encodeURIComponent(c)}`:`whatsapp://send?text=${encodeURIComponent(c)}`,p=a?`https://social-plugins.line.me/lineit/share?url=${encodeURIComponent(e)}&text=${encodeURIComponent(t)}`:`https://line.me/R/msg/text/?${encodeURIComponent(c)}`,h=`viber://forward?text=${encodeURIComponent(c)}`;return{emailShareLink:s,messengerShareLink:l,twitterShareLink:d,whatsappShareLink:u,lineShareLink:p,telegramShareLink:`tg://msg?text=${encodeURIComponent(c)}`,viberShareLink:h,smsShareLink:`sms:?&body=${encodeURIComponent(c)}`}}function p(e,t,n,i){e&&window.FB&&window.FB.ui&&window.FB.ui({method:"share",mobile_iframe:!0,href:t},(e=>{e&&!e.error_message&&i&&i()}))}function h(e,t,n,i){if(!n||!t)return;const a=new t(n,{text:()=>e});a.on("success",(e=>{i&&i(e)})),a.on("error",(e=>{throw new Error("<ShareMenu /> error: copy command failed")}))}async function m(e,t,a,o){if(o)return((e,t,a,r,o)=>{const s=void 0!==i?i:i=n(865107),c={invite_category:t,invite_object:a,invite_channel:r};return(0,l.fetchQuery)(e,s,{inviteType:JSON.stringify(c),objectId:o}).toPromise().then((e=>{var t;return Promise.resolve((e=>{var t,n,i,a;return{inviteCode:null!==(t=null==e?void 0:e.inviteCode)&&void 0!==t?t:"",invitePath:null!==(n=null==e?void 0:e.inviteUrl)&&void 0!==n?n:"",title:null!==(i=null==e?void 0:e.title)&&void 0!==i?i:"",message:null!==(a=null==e?void 0:e.message)&&void 0!==a?a:""}})(null==e||null===(t=e.v3InviteUserExternalQuery)||void 0===t?void 0:t.data))}),(e=>Promise.reject(e)))})(o,3,a,e.toString(),t);{const n=r.Z.create("CreateExternalInviteResource",{invite_type:{invite_category:3,invite_object:a,invite_channel:e},object_id:t}),i=await n.callCreate(),{invite_url:o,invite_code:s,title:l,message:c}=i.resource_response.data;return{inviteCode:s,invitePath:o,title:l,message:c}}}const _=(e,t,i,r,o,s)=>{const c=void 0!==a?a:a=n(361600),d={inviteType:JSON.stringify({invite_category:t,invite_object:i,invite_channel:r}),inviteCode:o,objectId:s};(0,l.commitMutation)(e,{mutation:c,variables:{...d}})};async function g({inviteChannel:e,inviteCode:t,objectId:n,objectType:i,component:a,clientTrackingParams:o,logContextEvent:l,view_parameter:c,view_type:d,socialShareComponent:u}){let p,h;l({aux_data:{invite_object:i},object_id_str:n,component:a,clientTrackingParams:o,element:s.cc[e],event_type:102,view_type:d,view_parameter:c}),p=2===i?s.LO:3===i?s.Pu:s.dB,h=14122===a?14312:14123===a?14310:u||a,l({event_type:10399,component:h,object_id_str:n,view_type:d,view_parameter:c,aux_data:{invite_object:i},element:p[e]}),r.Z.create("SentExternalInviteCallbackResource",{invite_type:{invite_category:3,invite_object:i,invite_channel:e},invite_code:t,object_id:n,client_tracking_params:o}).callCreate()}},590674:(e,t,n)=>{n.r(t),n.d(t,{default:()=>$});var i=n(667294),a=n(225313),r=n(702664),o=n(766935),s=n(72566),l=n(936776),c=n(172071),d=n(214494),u=n(700380),p=n(784590),h=n(19121),m=n(53987),_=n(773285),g=n(385740),v=n(698330),f=n(878499),y=n(116303),b=n(499128),x=n(407043),w=n(898781),P=n(927383),S=n(349700),k=n(313951),T=n(883119),I=n(276775),A=n(343341),C=n(785893);function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class j extends i.PureComponent{constructor(...e){var t;super(...e),t=this,E(this,"state",{viewConversation:!1,isSent:!1,path:""}),E(this,"renderViewConversationButton",(()=>{const{viewConversation:e}=this.state;return e?(0,C.jsxs)(T.kC,{alignItems:"center",direction:"row",flex:"grow",justifyContent:"center",children:[(0,C.jsx)(T.zx,{fullWidth:!0,size:"sm",text:this.props.i18n.bt("查看", "View chat", "View current chat", undefined, true),color:"white",onClick:()=>{this.onViewConversation()}}),(0,C.jsx)(T.JO,{icon:"arrow-forward",color:"default",accessibilityLabel:this.props.i18n.bt("查看", "View chat", "View current chat", undefined, true)})]}):(0,C.jsxs)(T.kC,{alignItems:"center",direction:"row",flex:"grow",justifyContent:"center",children:[(0,C.jsx)(T.xu,{marginEnd:2,children:(0,C.jsx)(T.JO,{icon:"check",color:"default",accessibilityLabel:this.props.i18n.bt("已发送", "sent", "content is sent", undefined, true)})}),(0,C.jsx)(T.xu,{marginEnd:2,children:(0,C.jsx)(T.xv,{size:"300",color:"subtle",weight:"bold",children:this.props.i18n.bt("已发送", "Sent", "mweb.sharemenu.contactItem.isSent", undefined, true)})})]})})),E(this,"onViewConversation",(()=>{const{path:e}=this.state,{sendObject:t,component:n}=this.props;let i;c.Z.increment("mweb_sharesheet_view_conversation",1),this.props.history.push(e),i=3===t.objectType?13532:2===t.objectType?13529:13526,this.props.logContextEvent({view_type:this.props.viewType,event_type:10399,component:n,element:i})})),E(this,"onInlineSend",this.props.requireAuthForLimitedLogin({fn:async function(){const e={1:"pin",2:"board",3:"user",8:"today_article"},{createConversation:n,i18n:i,isFullHeight:a,onDismiss:r,setShareSent:o,recipient:s,sendObject:l,showToast:d,email:u,updateCachedContactsAfterSend:p,userId:h,logContextOnSend:m}=t.props,_=e[l.objectType];null==m||m(),t.setState({isSent:!0});try{const e=await n({user_ids:s?[s.id,h]:void 0,[_]:l.objectId,emails:u?[u]:void 0});if(e){const n=e.id;t.setState({path:`/conversation/${n}`,viewConversation:!0}),c.Z.increment("mweb_sharesheet.inline_send",1,{success:!0}),o(!0),null==p||p(),!a&&r&&(d((({hideToast:e})=>(0,C.jsx)(b.ZP,{dataTestId:"sharesheet-inline-send-toast",primaryAction:{accessibilityLabel:i.bt("查看转化", "View the conversation", "ContactItem.ConfirmationToast.a11yButtonText", undefined, true),label:i.bt("浏览", "View", "ContactItem.ConfirmationToast.buttonText", undefined, true),onClick:t.onViewConversation},duration:4e3,onHide:e,text:(0,S.Wc)(i.bt("发送给 {{recipientName}}！", "Sent to {{recipientName}}!", "ContactItem.ConfirmationToast.text", undefined, true),{recipientName:(null==s?void 0:s.full_name)||""}),thumbnail:{avatar:(0,C.jsx)(y.Z,{size:"fit",src:(null==s?void 0:s.image_large_url)||"",name:(null==s?void 0:s.full_name)||""})}}))),r(n))}}catch(g){d((({hideToast:e})=>(0,C.jsx)(b.ZP,{type:"error",text:(null==g?void 0:g.message_detail)||(null==g?void 0:g.message)||i.bt("无法创建对话。", "Failed to create conversation.", "ContactItem.errorToast.text", undefined, true),onHide:e}))),t.setState({isSent:!1}),c.Z.increment("mweb_sharesheet.inline_send",1,{success:!1,error:g})}}}))}render(){var e,t,n,a,r,o;const{isFullHeight:s,recipient:l,email:c,inVerticalContactsShareExp:d}=this.props,{isSent:u}=this.state,p=(0,C.jsx)(T.zx,{fullWidth:!0,size:"lg",color:"gray",text:this.props.i18n.bt("发送", "Send", "Send current content", undefined, true),onClick:()=>{this.onInlineSend()}});return!s&&l?(0,C.jsx)(i.Fragment,{children:d?(0,C.jsxs)(T.xu,{display:"flex",alignItems:"center",paddingX:3,paddingY:2,children:[(0,C.jsx)(T.kC,{height:48,width:48,flex:"none",children:(0,C.jsx)(y.Z,{size:"md",src:null!==(e=l.image_large_url)&&void 0!==e?e:"",name:null!==(t=l.full_name)&&void 0!==t?t:""})}),(0,C.jsx)(T.xu,{paddingX:2,marginStart:2,display:"flex",flex:"grow",children:(0,C.jsx)(T.xv,{lineClamp:1,children:l.full_name})}),(0,C.jsx)(T.xu,{"data-test-id":"sharesheet-send-button",children:p})]}):(0,C.jsxs)(T.xu,{"data-test-id":"sharesheet-send-button",display:"flex",direction:"column",paddingX:3,paddingY:4,children:[(0,C.jsx)(T.iP,{onTap:()=>this.onInlineSend(),children:(0,C.jsx)(T.xu,{height:56,marginBottom:1,width:56,children:(0,C.jsx)(y.Z,{size:"fit",src:null!==(n=l.image_large_url)&&void 0!==n?n:"",name:null!==(a=l.full_name)&&void 0!==a?a:""})})}),(0,C.jsx)(T.xu,{width:56,children:(0,C.jsx)(T.xv,{lineClamp:1,size:"100",align:"center",children:l.full_name})})]})}):(0,C.jsxs)(T.xu,{"data-test-id":"sharesheet-send-button",position:"relative",direction:"row",display:"flex",width:"100%",alignItems:"center",justifyContent:"between",paddingY:2,children:[l?(0,C.jsx)(T.xu,{children:(0,C.jsx)(y.Z,{size:"md",src:null!==(r=l.image_large_url)&&void 0!==r?r:"",name:null!==(o=l.full_name)&&void 0!==o?o:""})}):c&&(0,C.jsx)(T.xu,{children:(0,C.jsx)(y.Z,{size:"md",name:c})}),(0,C.jsx)(T.xu,{paddingX:2,flex:"grow",maxWidth:"71%",children:(0,C.jsx)(T.xv,{lineClamp:1,weight:"bold",children:l?l.full_name:c&&u?c:(0,S.nk)(this.props.i18n.bt("{{email}} 邀请", "invite {{email}}", "mweb.newMessage.searchEmail", undefined, true),{email:c})})}),(0,C.jsx)(T.xu,{"data-test-id":"sharesheet-viewchat-link",right:!0,flex:"none",maxWidth:"100%",children:u?this.renderViewConversationButton():p})]})}}function D(e){const t=(0,I.useHistory)(),n=(0,w.ZP)(),i=(0,P.Z)(),{showToast:a}=(0,A.F9)(),r=(0,k.aX)(),{logContextEvent:o}=(0,x.v)();return(0,p.Z)({name:"ConversationsResource",options:{user_ids:[e.userId]}}),(0,C.jsx)(j,{...e,createConversation:r,history:t,i18n:n,requireAuthForLimitedLogin:i,showToast:a,logContextEvent:o})}var O=n(112690),R=n(248327);function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const M={boxShadow:"0 6px 8px -4px rgba(0, 0, 0, 0.1)",transition:"box-shadow 300ms ease-in-out"};class F extends i.PureComponent{componentDidUpdate(e){const{fetching:t}=e,{value:n}=this.state,i=t&&!this.props.fetching,a=this.getContactSuggestions();if(!n&&i){const e=a.length>0?7511:7512;this.props.logContextEvent({event_type:e,view_type:70,view_parameter:256})}}constructor(e){super(e),L(this,"state",{value:"",showScrollShadow:!1,defaultSuggestions:[],loadingDefaultSuggestions:!0}),L(this,"onSearchChange",(({value:e})=>{const{userId:t,searchContacts:n}=this.props,i={options:{user:t,term:e}};this.setState({value:e},n(i))})),L(this,"getContactSuggestions",(()=>{const{typeaheadSuggestions:e,userId:t,users:n}=this.props,{value:i,defaultSuggestions:a}=this.state;if(!i)return a.filter((e=>e.id&&n[e.id]))||[];const r=`term="${i}",user="${t}"`,o=`term="${i.slice(0,-1)}",user="${t}"`;return e[r]||e[o]||[]})),L(this,"renderContactSuggestions",(()=>{const{expandContactsList:e,fetching:t,i18n:n,isFullHeight:i,logContextEvent:a,onDismiss:r,sendObject:o,setShareSent:s,userId:c,updateCachedContactsAfterSend:d,viewType:u,viewParameter:p,inVerticalContactsShareExp:h,location:_,component:g}=this.props,{loadingDefaultSuggestions:v,value:f}=this.state,y=this.getContactSuggestions(),b=t||v,x=h?48:56,w=()=>{let t;a({event_type:102,view_type:70,view_parameter:256,component:14315,element:13498}),t=3===o.objectType?13531:2===o.objectType?13528:13525,a({view_type:(0,m.b0)(_)?42:u,view_parameter:(0,m.b0)(_)?203:p,event_type:10399,component:g,element:t}),e()},P=e=>{const t=f&&f.trim(),{selected_contact_index:n,selected_contact_reason:r}=e||{},s=()=>t?(0,l.Z)(t)?{is_selected_contact_email:"true"}:{search_query_length:JSON.stringify(t.length),selected_contact_index:n,selected_contact_reason:r}:{selected_contact_index:n,selected_contact_reason:r};let c;a({event_type:102,view_type:70,view_parameter:i?3827:256,component:t?14314:14315,element:10837,aux_data:s()}),c=3===o.objectType?13530:2===o.objectType?13527:13524,a({event_type:10399,view_type:(0,m.b0)(_)?42:u,view_parameter:(0,m.b0)(_)?203:p,component:g,element:c,aux_data:s()})};let S;return S=!i&&b?107:"100%",b?(0,C.jsx)(T.xu,{alignItems:"center",display:"flex",justifyContent:"center",height:S,paddingY:2,children:(0,C.jsx)(T.$j,{show:!0,accessibilityLabel:n.bt("正在搜索联系人", "Searching for contacts", "Placeholder text for spinner on share menu", undefined, true)})}):0===y.length&&!(0,l.Z)(f)&&f&&i?(0,C.jsx)(T.xu,{marginTop:3,children:(0,C.jsx)(T.xv,{align:"center",children:n.bt("抱歉， 我们无法找到此用户名的用户。", "Sorry, we can't find anyone by that name.", "Text to show empty state when a contact can not be found", undefined, true)})}):(0,C.jsx)(T.kC,{direction:i?"column":"row",overflow:i?void 0:"hidden",children:(0,C.jsxs)(T.xu,{display:i?void 0:"flex",direction:!i&&h?"column":void 0,height:S,overflow:i||h?void 0:"scrollX",paddingX:i?4:1,width:"100%",children:[0===y.length&&(0,l.Z)(f)&&(0,C.jsx)(D,{email:f,isFullHeight:i,sendObject:o,setShareSent:s,userId:c,logContextOnSend:P,viewType:u,component:g}),!i&&(0,C.jsxs)(T.xu,{alignItems:"center",display:"flex",direction:h?"row":"column",paddingX:3,paddingY:h?2:4,children:[(0,C.jsx)(T.xu,{marginEnd:h?1:void 0,marginBottom:h?void 0:1,"data-test-id":"sharesheet-search-icon",width:x,height:x,children:(0,C.jsx)(T.hU,{accessibilityLabel:n.bt("搜索用户", "Search for users", "ContactsSuggestsions.SearchIcon.accessibilityLabel", undefined, true),bgColor:"lightGray",icon:"search",iconColor:"darkGray",onClick:w,size:h?"lg":"xl"})}),(0,C.jsx)(T.xu,{paddingX:h?1:void 0,marginStart:h?2:void 0,display:"flex",flex:"grow",children:(0,C.jsx)(T.iP,{onTap:h?w:void 0,children:(0,C.jsx)(T.xv,{lineClamp:1,size:h?void 0:"100",children:h?n.bt("搜索联系人", "Search contacts", "ContactsSuggestions.SearchOption.text", undefined, true):n.bt("搜索", "Search", "ContactsSuggestions.SearchOption.text", undefined, true)})})})]}),y.map(((e,t)=>(0,C.jsx)(D,{isFullHeight:i,onDismiss:r,recipient:e,sendObject:o,setShareSent:s,userId:c,updateCachedContactsAfterSend:d,logContextOnSend:()=>{P({selected_contact_index:JSON.stringify(t),selected_contact_reason:JSON.stringify(e.debug_reason.reason)})},viewType:u,inVerticalContactsShareExp:h,component:g},e.id)))]})})})),this.scrollerRef=(0,i.createRef)()}async componentDidMount(){const{inContactsCacheExp:e,cachedShareSuggestions:t,getFreshContactSuggestions:n,updateCachedShareSuggestions:i}=this.props;if(e)if(t)this.setState({loadingDefaultSuggestions:!1,defaultSuggestions:t});else{const e=await n()||[];i(e),this.setState({loadingDefaultSuggestions:!1,defaultSuggestions:e})}else{const e=await n()||[];this.setState({loadingDefaultSuggestions:!1,defaultSuggestions:e})}}render(){const{showScrollShadow:e}=this.state,{isFullHeight:t,expandContactsList:n}=this.props,a=(0,u.Z)((()=>{const e=this.scrollerRef.current;e&&!Number.isNaN(e.scrollTop)&&this.setState({showScrollShadow:e.scrollTop>0})}),100);return(0,C.jsx)(i.Fragment,{children:t?(0,C.jsxs)(T.xu,{color:"default",display:"flex",direction:"column",paddingX:0,height:"90%",children:[(0,C.jsx)(T.xu,{"data-test-id":"contact-suggestion-search-field",paddingY:2,color:"default",paddingX:4,dangerouslySetInlineStyle:{__style:e?M:null},children:(0,C.jsx)(s.Z,{accessibilityLabel:this.props.i18n.bt("搜索联系人", "search contact", "Accessibility label for searchbar on share menu", undefined, true),id:"contactsSuggestSearchField",onChange:this.onSearchChange,onFocus:n,placeholder:this.props.i18n.bt("按姓名或电子邮箱搜索", "Search by name or email", "Placeholder text for searchbar on share menu", undefined, true),value:this.state.value,autoFocus:t})}),(0,C.jsx)(T.xu,{display:"flex",direction:"column",paddingY:1,overflow:"scrollY",onScroll:a,ref:this.scrollerRef,children:this.renderContactSuggestions()})]}):(0,C.jsx)(T.xu,{children:this.renderContactSuggestions()})})}}function N(e){const t=(0,w.ZP)(),n=(0,v.kW)(),i=(0,O.Z)(),{id:a}=(0,h.Z)(),s=(0,r.useDispatch)(),{viewType:l}=(0,g.SU)(),u=(0,I.useLocation)();(0,p.Z)({name:"ShareSuggestionsTypeaheadResource",options:{term:"",user:a}});const m=(0,r.useSelector)((({resources:e})=>{const{ShareSuggestionsTypeaheadResource:t}=e,n={};for(const i of Object.keys(t||{})){const e=t[i].data;e&&e.items&&(n[i]=e.items)}return n})),y=(0,r.useSelector)((e=>e.resources.ShareSuggestionsTypeaheadResource)),b=Object.keys(y||{}).some((e=>y[e].fetching)),{cachedShareSuggestions:x,clearCachedShareSuggestions:P,updateCachedShareSuggestions:S}=(0,f.$)(),k=async()=>{let e;const t=d.Z.create("ShareSuggestionsResource",{suggestion_type:"share"});try{var n;e=null===(n=(await t.callGet()).resource_response)||void 0===n?void 0:n.data}catch(i){c.Z.increment("mweb_share_menu_load_suggestions.fail.share",1)}return e},{checkExperiment:T}=(0,_.F)(),A=T("mweb_cache_contacts_share").anyEnabled;return(0,C.jsx)(F,{...e,i18n:t,logContextEvent:i,users:n,searchContacts:e=>{(0,o.Z)(s((0,R.U)("ShareSuggestionsTypeaheadResource",e)),200)},fetching:b,userId:a||"",typeaheadSuggestions:m,inContactsCacheExp:A,cachedShareSuggestions:x,getFreshContactSuggestions:k,updateCachedContactsAfterSend:async()=>{if(A){P();const e=await k();e&&S(e)}},updateCachedShareSuggestions:S,viewType:l,location:u})}var z=n(79113),U=n(121151),Z=n(52022),B=n(749049),V=n(867820),H=n(50286);const K=14121,W=({heading:e,onDismiss:t})=>{const n=(0,w.ZP)();return(0,C.jsxs)(T.kC,{alignItems:"center",flex:"grow",justifyContent:"start",children:[(0,C.jsx)(T.xu,{display:"flex",alignItems:"center",padding:1,children:(0,C.jsx)(T.hU,{accessibilityLabel:n.bt("关闭", "Close", "close share menu", undefined, true),icon:"cancel",onClick:t,size:"sm",iconColor:"darkGray",padding:4})}),(0,C.jsx)(T.xu,{display:"flex",flex:"grow",alignItems:"center",justifyContent:"center",marginEnd:12,children:(0,C.jsx)(T.xv,{align:"center",weight:"bold",children:(0,C.jsx)("span",{className:"deprecatedTextSizeXL",children:e})})})]})},G=({children:e,isOpen:t,onDismiss:n,childPaddingX:i=3,shouldRenderCloseIcon:a,shouldRenderFullHeight:r,heading:o})=>{const s=(0,w.ZP)(),l={mobileAccessibilityCloseIconLabel:s.bt("关闭发送模式", "close send modal", " - ", undefined, true),accessibilityModalLabel:"",heading:o,mobileHideCloseIcon:!a,isOpen:t,onDismiss:n,type:"share_menu"};return r?(0,C.jsxs)(z.Z,{isOpen:t,accessibilityModalLabel:o,children:[(0,C.jsx)(W,{heading:o,onDismiss:n}),e]}):(0,C.jsx)(U.ZP,{...l,children:(0,C.jsx)(T.xu,{marginTop:a?0:4,paddingX:i,children:e})})},$=({isOpen:e,onDismiss:t,objectType:n,objectId:r,hideContactsSuggestions:o,clientTrackingParams:s,element:l,viewType:d,viewParameter:u,component:p})=>{const g=(0,w.ZP)(),[v,f]=(0,i.useState)(!1),[y,b]=(0,i.useState)(!1),x=(0,I.useLocation)(),{checkExperiment:P}=(0,_.F)(),S=(0,O.Z)(),k=(0,Z.Z)(),{should_show_messaging:A}=(0,h.Z)(),E=o||!A,j=p,D=e=>{P("mweb_share_menu_logging").anyEnabled&&S({clientTrackingParams:s,component:K,event_type:y||e?7493:7492,element:13097,view_type:70,view_parameter:u,aux_data:{invite_object:n}}),y||void 0!==e||S({clientTrackingParams:s,component:p,event_type:10403,element:13478,view_type:d,view_parameter:u,aux_data:{invite_object:n}});const i=(e=>(0,m.cD)(e)?"profile_page":(0,m.am)(e)?"board_page":(0,m.uM)(e)?"pin_page":"unknown")(x);k({action:"click",item:"close-share-menu"}),t(),(0,V.My)(`mweb_${i}_share_menu.click_invite.close`)},R=P("mweb_share_menu_logging").anyEnabled;(0,i.useEffect)((()=>{e&&(S({event_type:7120,component:K,object_id_str:r,clientTrackingParams:R?s:null,element:R?l:null,view_type:R?d:70,view_parameter:R?u:256,aux_data:R?{invite_object:n}:void 0}),S({event_type:10400,component:p,object_id_str:r,clientTrackingParams:s,element:(0,B.O)(n),view_type:d,view_parameter:u,aux_data:{invite_object:n}}))}),[e,P,R]);const L=(0,H.Wb)(),M=!E&&P("mweb_share_sheet_vertical_contacts").anyEnabled,F=g.bt("在 Pinerest 上发送", "Send on Pinterest", "Heading for share contacts search", undefined, true),z=M?g.bt("分享到", "Share to", "ShareMenu.AllShareOptions.HeaderText", undefined, true):g.bt("分享", "Share", "ShareMenu.AllShareOptions.HeaderText", undefined, true),U=v?F:(0,C.jsx)(T.xu,{marginTop:0,children:(0,C.jsx)(T.xv,{align:"center",weight:"bold",size:"300",children:E||M?z:F})}),W=(0,C.jsx)(N,{sendObject:{objectId:r,objectType:n},expandContactsList:()=>{f(!0),c.Z.increment("mweb_sharesheet.contacts.expand",1)},isFullHeight:v,onDismiss:D,setShareSent:e=>b(e),viewType:d,viewParameter:u,inVerticalContactsShareExp:M,component:j}),$=(0,C.jsx)(a.Z,{objectId:r,objectType:n,viewType:R?d:70,viewParameter:u,onDismiss:D,setShareSent:e=>b(e),clientTrackingParams:s,component:K,inVerticalContactsShareExp:M,socialShareComponent:j});return(0,C.jsx)(G,{isOpen:e,onDismiss:v?()=>{f(!1),c.Z.increment("mweb_sharesheet.contacts.collapse",1)}:()=>D(),shouldRenderFullHeight:v,shouldRenderCloseIcon:!0,childPaddingX:0,heading:U,children:(0,C.jsx)(T.kC,{justifyContent:"center",children:(0,C.jsx)(T.xu,{width:L?440:"100%",height:"100%",children:v?W:(0,C.jsx)(i.Fragment,{children:E?(0,C.jsx)(T.xu,{marginBottom:8,children:$}):(0,C.jsx)(i.Fragment,{children:M?(0,C.jsxs)(T.xu,{maxHeight:L?552:526,marginTop:L?-6:void 0,overflow:"scrollY",paddingY:L?6:void 0,position:L?"relative":void 0,rounding:L?8:void 0,zIndex:L?new T.Ry(1):void 0,children:[$,(0,C.jsxs)(i.Fragment,{children:[(0,C.jsxs)(T.xu,{paddingX:4,children:[(0,C.jsx)(T.xu,{marginTop:2,marginBottom:4,children:(0,C.jsx)(T.iz,{})}),(0,C.jsx)(T.xu,{paddingY:2,children:(0,C.jsx)(T.xv,{size:"300",weight:"bold",children:F})})]}),W]})]}):(0,C.jsxs)(T.xu,{marginBottom:8,marginTop:-4,children:[(0,C.jsxs)(i.Fragment,{children:[W,(0,C.jsxs)(T.xu,{marginTop:4,paddingX:4,children:[(0,C.jsx)(T.iz,{}),(0,C.jsx)(T.xu,{marginTop:8,children:(0,C.jsx)(T.xv,{align:"center",size:"300",weight:"bold",children:z})})]})]}),$]})})})})})})}},878499:(e,t,n)=>{n.d(t,{$:()=>s,l:()=>l});var i=n(667294),a=n(425288),r=n(785893);const{Provider:o,useHook:s}=(0,a.Z)("ShareSuggestions");function l({children:e}){const[t,n]=(0,i.useState)(void 0),a=(0,i.useCallback)((()=>{n(void 0)}),[]),s=(0,i.useCallback)((e=>{n(e)}),[]),l=(0,i.useMemo)((()=>({cachedShareSuggestions:t,clearCachedShareSuggestions:a,updateCachedShareSuggestions:s})),[t,a,s]);return(0,r.jsx)(o,{value:l,children:e})}},86802:(e,t,n)=>{n.d(t,{B:()=>r,Cq:()=>a,F6:()=>u,RV:()=>i,VZ:()=>o,W_:()=>l,bm:()=>s,iS:()=>p,rO:()=>d,zn:()=>c});const i="animatedShareIconLastViewed",a="lastUsedSocialShare",r="customizedSocialAppOrder",o=44,s=9e5,l=4e3,c=5e3,d=new Set([12,3,11]),u=new Set([11,12]),p=new Map([["AU",6],["CA",6],["DK",6],["DZ",6],["GE",6],["HU",6],["LT",6],["NO",6],["NP",6],["NZ",6],["PH",6],["PL",6],["SK",6],["TN",6],["US",6],["JP",8],["TW",8],["TH",8],["IQ",20],["KH",20],["MM",20],["UZ",20],["BA",22],["BG",22],["BY",22],["CY",22],["GR",22],["MD",22],["RS",22],["UA",22]])},749049:(e,t,n)=>{n.d(t,{O:()=>i});const i=e=>{switch(e){case 2:return 331;case 3:return 12631;default:return 72}}},72566:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(667294),a=n(883119),r=n(785893);class o extends i.Component{constructor(...e){var t,n,i;super(...e),i=e=>{e&&(this.searchRef=e)},(n="setSearchRef")in(t=this)?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i}componentDidMount(){this.props.autoFocus&&this.searchRef.focus()}render(){const{accessibilityLabel:e,id:t,onBlur:n,onChange:i,onFocus:o,placeholder:s,value:l}=this.props;return(0,r.jsx)(a.Um,{accessibilityLabel:e,id:t,onBlur:n,onChange:i,onFocus:o,placeholder:s,ref:this.setSearchRef,size:"lg",value:l})}}},248299:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(166300),a=n(898781),r=n(883119),o=n(785893);function s({isPinRep:e}){const t=(0,a.ZP)(),n=e?"default":"inverse",s=(0,o.jsx)(r.xu,{padding:e?1:0,"data-test-id":"unavailable-pin",children:(0,o.jsx)(r.xu,{color:e?"secondary":"dark",top:!0,height:e?314:"100vh",position:e?"static":"absolute",rounding:e?4:0,width:"100%",children:(0,o.jsxs)(r.kC,{height:"100%",direction:"column",justifyContent:"center",alignItems:"center",children:[(0,o.jsx)(r.xu,{paddingY:4,children:(0,o.jsx)(r.JO,{accessibilityLabel:t.bt("Pin 图不可用", "Pin not available", "story-pin.Closeup.UnavailableStoryPin.icon.accessibilityLabel", undefined, true),color:n,icon:"alert",size:20})}),(0,o.jsx)(r.xv,{align:"center",color:n,weight:"bold",children:t.bt("不可用", "Unavailable", "story-pin.Closeup.UnavailableStoryPin.Unavailable", undefined, true)}),(0,o.jsx)(r.xu,{paddingY:1,children:(0,o.jsx)(r.xv,{align:"center",color:n,children:t.bt("由创建者移除", "Removed by the creator", "story-pin.Closeup.UnavailableStoryPin.Removed", undefined, true)})})]})})});return e?s:(0,o.jsx)(r.xu,{height:"100vh",children:(0,o.jsx)(i.Z,{children:s})})}},201155:(e,t,n)=>{n.d(t,{Z:()=>d});var i=n(883119),a=n(785893);function r({ideaPinImages:e}){const t={1:28,2:40,3:48},n=e.map(((e,t)=>{var n,r,o;return(0,a.jsx)(i.xu,{height:48,width:28,color:"default",borderStyle:"sm",overflow:"hidden",rounding:2,dangerouslySetInlineStyle:{__style:{borderColor:"white",marginInlineEnd:"-17px",WebkitMaskImage:"-webkit-radial-gradient(white, black)",zIndex:t}},children:(0,a.jsx)(i.Ee,{alt:"",src:null!==(n=null==e?void 0:e.url)&&void 0!==n?n:"",color:"#696969",fit:"cover",naturalHeight:null!==(r=null==e?void 0:e.height)&&void 0!==r?r:1,naturalWidth:null!==(o=null==e?void 0:e.width)&&void 0!==o?o:1})},t)}));return(0,a.jsx)(i.kC,{justifyContent:"center",children:(0,a.jsx)(i.kC,{justifyContent:"start",width:t[e.length],children:n})})}var o=n(499128),s=n(898781),l=n(784590),c=n(50286);function d({handleHide:e,text:t,userId:n,href:d,imageUrl:u}){const p=(0,s.ZP)(),h=(0,c.HG)(),m=(0,l.Z)({name:"UserStoryPinsFeedResource",options:{data:{filter_version:2,public_only:!0},field_set_key:"partner_grid_item",user_id:n}}),_=Array.isArray(t)?t.join(" "):t;if(0===(m.data||[]).length)return(0,a.jsx)(o.ZP,{duration:5e3,onHide:e,text:_,href:d,thumbnail:u?{image:(0,a.jsx)(i.Ee,{alt:p.bt("你关注用户的头像", "Image of who you followed", "userFollowingToast.thumbnail.userImage", undefined, true),fit:"cover",naturalHeight:1,naturalWidth:1,src:u})}:void 0});const g=(m.data||[]).slice(0,3).map((e=>{var t;return null===(t=e.images)||void 0===t?void 0:t[h?"236x":"170x"]})),v=(0,a.jsx)(r,{ideaPinImages:g});return(0,a.jsx)(o.ZP,{href:d,duration:5e3,onHide:e,_dangerouslySetThumbnail:v,text:_})}},258430:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(883119),a=n(130460),r=n(785893);function o({boardId:e}){var t;const n=(0,a.gC)()(e),o=null!=n&&n.images&&n.images["170x"]?n.images["170x"][0]:void 0;return e&&o?(0,r.jsx)(i.Ee,{alt:"Pin image",color:"#efefef",fit:"cover",naturalHeight:1,naturalWidth:1,src:null!==(t=o.url)&&void 0!==t?t:""}):null}},759929:(e,t,n)=>{n.d(t,{k:()=>o,w:()=>r});var i=n(379764),a=n(883119);const r=2e3,o=new a.H3([i.Z])},430235:(e,t,n)=>{n.d(t,{Z:()=>P});var i,a=n(667294),r=n(248975),o=n(862628),s=n(898781),l=n(759177),c=n(667679),d=n(62409),u=n(349700),p=n(867820),h=n(350118),m=n(276775),_=n(883119),g=n(167912),v=n(785893);const f=({children:e,onTap:t})=>{const[n,i]=(0,a.useState)(!1);return(0,v.jsx)(_.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:n?"rgba(0, 0, 0, 0.06)":void 0}},rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,v.jsx)(_.iP,{onTap:t,onBlur:()=>i(!1),onFocus:()=>i(!0),onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:e})})},y=void 0!==i?i:i=n(12617);function b({desktopContextMenuState:e,isMainPinImage:t,source:n,images:i,embedSrc:l,embedType:d,sourceUserUsername:h,sourceUserFullname:g,pinJoinVisualAnnotation:y,pinJoinSeoBreadcrumbName:b,pinJoinSeoBreadcrumbUrl:x,pinId:w,pinLink:P}){var S;const k=(0,s.ZP)(),T=(0,m.useHistory)(),I=(0,r.Z)({images:i,embedSrc:l,embedType:d}),A=b,C=x,E=null!==(S=null==y?void 0:y[0])&&void 0!==S?S:void 0,j=(0,o.Z)(E),D=`/search/pins/?q=${encodeURIComponent(j)}&rs=image_only_attribution`,O=(0,c.Z)(),R="dweb.plp.ellipsis.button"===n;return I?(0,v.jsxs)(_.xu,{"data-test-id":"desktop-context-menu",position:"fixed",dangerouslySetInlineStyle:{__style:{top:`${e.yPosition}px`,left:`${e.xPosition}px`}},zIndex:new _.Ry(99999),color:"default",rounding:2,borderStyle:"shadow",display:"flex",direction:"column",paddingY:3,paddingX:2,maxWidth:250,children:[(0,v.jsx)(_.xu,{rounding:2,paddingX:3,paddingY:2,role:"img",children:(0,v.jsx)(_.JO,{icon:"pinterest",accessibilityLabel:k.bt("Pinterest 图标", "Pinterest logo", "dweb.unauth.context_menu.pinterest_logo", undefined, true),color:"brandPrimary"})}),(0,v.jsx)(f,{onTap:()=>{let e;(0,p.My)("dweb.unauth.context_menu.save_image"),e=R?"action_bar_ellipsis":t?"right_click":"related_pin_right_click",O({reason:"UPSELL_LOGIN_OR_SIGNUP",attributionLabel:`click_context_menu_${e}_save_button`,desktopOptions:{modalType:"signup",modalOptions:{source:"saveButtonExp",container:"save",savePinId:w}}})},children:(0,v.jsx)(_.xv,{size:"200",weight:"bold",children:k.bt("收藏图片", "Save image", "dweb.unauth.context_menu.link.save_image", undefined, true)})}),!(t||R&&!P)&&(0,v.jsx)(f,{onTap:()=>{(0,p.My)(R?"dweb.unauth.context_menu.open_plp_new_tab.from.ellipsis.button":"dweb.unauth.context_menu.open_plp_new_tab"),window.open(R?P:`/pin/${w}/`),R||O({reason:"UPSELL_LOGIN_OR_SIGNUP",attributionLabel:"click_context_menu_related_pin_right_click_open_link_button",desktopOptions:{modalType:"login"}})},children:(0,v.jsx)(_.xv,{size:"200",weight:"bold",children:k.bt("在新标签页中打开链接", "Open link in new tab", "dweb.unauth.context_menu.link.plp_new_tab", undefined, true)})}),(E||!(!A||!C))&&(0,v.jsx)(f,{onTap:()=>{(0,p.My)("dweb.unauth.context_menu.see_more_pins"),C?T.push(`${C}`):T.push(D)},children:A?(0,v.jsx)(_.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,u.nk)(k.bt("查看更多关于 {{levelOneInterestName}} 的点子", "See more ideas about {{levelOneInterestName}}", "dweb.unauth.context_menu.link.see_more_ideas.l1", undefined, true),{levelOneInterestName:A})}):(0,v.jsx)(_.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,u.nk)(k.bt("查看更多关于 {{interestTag}} 的点子", "See more ideas about {{interestTag}}", "dweb.unauth.context_menu.link.see_more_ideas.interest_tag", undefined, true),{interestTag:E})})}),!(!g||!h)&&(0,v.jsx)(f,{onTap:()=>{(0,p.My)("dweb.unauth.context_menu.more_from_creator"),T.push(`/${h}/`)},children:(0,v.jsx)(_.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,u.nk)(k.bt("更多来自 {{full_name}} 的内容", "See more from {{full_name}}", "dweb.unauth.context_menu.link.more_from_creator", undefined, true),{full_name:g})})}),(0,v.jsx)(a.Fragment,{children:(0,v.jsx)(f,{onTap:()=>{let e;(0,p.My)("dweb.unauth.context_menu.login_signup"),e=R?"action_bar_ellipsis":t?"right_click":"related_pin_right_click",O({reason:"CLICK_LOGIN_OR_SIGNUP",attributionLabel:`click_context_menu_${e}_signup_or_login_button`,desktopOptions:{modalType:"login"}})},children:(0,v.jsx)(_.xv,{size:"200",weight:"bold",children:k.bt("登录或注册以查看更多", "Log in or sign up for more", "dweb.unauth.context_menu.link.login_signup", undefined, true)})})})]}):null}function x({graphqlRef:e,pinId:t,useNativeCreatorAsPinner:n,...i}){var a,r,o,s,c;const d=(0,g.useFragment)(y,e),u=(0,l.Z)(d);let p;var h,m;(p=null!=d&&d.nativeCreator?d.nativeCreator:null!=d&&d.linkDomain?d.linkDomain.officialUser:(null==d?void 0:d.originPinner)||(null==d?void 0:d.pinner),p)||(p=null!==(h=null==d||null===(m=d.linkDomain)||void 0===m?void 0:m.officialUser)&&void 0!==h?h:null==d?void 0:d.pinner);return(0,v.jsx)(b,{...i,embedSrc:(null==d?void 0:d.embed)&&d.embed.src,embedType:(null==d?void 0:d.embed)&&d.embed.type,images:u,sourceUserUsername:null===(a=p)||void 0===a?void 0:a.username,sourceUserFullname:null===(r=p)||void 0===r?void 0:r.fullName,pinJoinVisualAnnotation:null==d||null===(o=d.pinJoin)||void 0===o?void 0:o.visualAnnotation,pinJoinSeoBreadcrumbName:(null==d||null===(s=d.pinJoin)||void 0===s?void 0:s.seoBreadcrumbs)&&(d.pinJoin.seoBreadcrumbs.length>0?d.pinJoin.seoBreadcrumbs[0].name:null),pinJoinSeoBreadcrumbUrl:(null==d||null===(c=d.pinJoin)||void 0===c?void 0:c.seoBreadcrumbs)&&(d.pinJoin.seoBreadcrumbs.length>0?d.pinJoin.seoBreadcrumbs[0].url:null),pinId:t})}function w({graphqlRef:e,pinId:t,useNativeCreatorAsPinner:n,...i}){var a,r,o,s,l,c;const u=(0,h.S6)()(t),{link_domain:p,native_creator:m,origin_pinner:_,pinner:g}=u||{};let f=(0,d.wS)(p,m,_,g);var y,x;f||(f=null!==(y=null==u||null===(x=u.link_domain)||void 0===x?void 0:x.official_user)&&void 0!==y?y:null==u?void 0:u.pinner);const{full_name:w,username:P}=null!==(a=f)&&void 0!==a?a:{};return(0,v.jsx)(b,{...i,embedSrc:null==u||null===(r=u.embed)||void 0===r?void 0:r.src,embedType:null==u||null===(o=u.embed)||void 0===o?void 0:o.type,images:null==u?void 0:u.images,sourceUserUsername:w,sourceUserFullname:P,pinJoinVisualAnnotation:null==u||null===(s=u.pin_join)||void 0===s?void 0:s.visual_annotation,pinJoinSeoBreadcrumbName:(null==u||null===(l=u.pin_join)||void 0===l?void 0:l.seo_breadcrumbs)&&(u.pin_join.seo_breadcrumbs.length>0?u.pin_join.seo_breadcrumbs[0].name:null),pinJoinSeoBreadcrumbUrl:(null==u||null===(c=u.pin_join)||void 0===c?void 0:c.seo_breadcrumbs)&&(u.pin_join.seo_breadcrumbs.length>0?u.pin_join.seo_breadcrumbs[0].url:null),pinId:t})}function P(e){return e.graphqlRef?(0,v.jsx)(x,{...e}):(0,v.jsx)(w,{...e})}},874317:(e,t,n)=>{n.d(t,{Yw:()=>S,ZP:()=>C,nt:()=>P});var i,a=n(598615),r=n(326960),o=n(248975),s=n(63552),l=n(862628),c=n(938917),d=n(898781),u=n(759177),p=n(667679),h=n(62409),m=n(349700),_=n(867820),g=n(538232),v=n(773285),f=n(350118),y=n(276775),b=n(883119),x=n(167912),w=n(785893);const P=250,S={WebkitTouchCallout:"none",WebkitUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",KhtmlUserSelect:"none",UserSelect:"none"},k=void 0!==i?i:i=n(167074);function T({mwebContextMenuState:e,openShareModal:t,setMwebContextMenuState:n,pinId:i,images:u,embedSrc:h,embedType:f,sourceUserUsername:x,sourceUserFullname:S,pinDownloadFilename:k,pinImageSignature:T,pinJoinVisualAnnotation:I,pinJoinSeoBreadcrumbName:A,pinJoinSeoBreadcrumbUrl:C}){var E;const j=(0,d.ZP)(),D=(0,y.useHistory)(),O=(0,o.Z)({images:u,embedSrc:h,embedType:f}),{isChromeOnIOS:R}=(0,g.R)(),L=A,M=C,F=null!==(E=null==I?void 0:I[0])&&void 0!==E?E:void 0,N=(0,l.Z)(F),z=`/search/pins/?q=${encodeURIComponent(N)}&rs=image_only_attribution`,U=(0,p.Z)(),Z=(0,g.R)(),{checkExperiment:B}=(0,v.F)(),V=(0,c.Z)();return O?(0,w.jsxs)(b.xu,{"data-test-id":"mobile-context-menu",position:"absolute",dangerouslySetInlineStyle:{__style:{top:`${e.yPosition}px`,left:`${e.xPosition}px`}},zIndex:new b.Ry(99999),color:"default",rounding:2,borderStyle:"shadow",display:"flex",direction:"column",paddingY:3,paddingX:2,maxWidth:P,children:[(0,w.jsxs)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"img",direction:"row",display:"flex",alignItems:"center",justifyContent:"between",children:[(0,w.jsx)(b.JO,{icon:"pinterest",accessibilityLabel:j.bt("Pinterest 图标", "Pinterest logo", "unauth.mweb.context_menu.pinterest_logo", undefined, true),color:"brandPrimary"}),(0,w.jsx)(b.xu,{alignSelf:"end","data-test-id":"mobile-context-menu-cancel-button",children:(0,w.jsx)(b.iP,{onTap:({event:e})=>{e.stopPropagation(),n(null)},children:(0,w.jsx)(b.JO,{icon:"cancel",accessibilityLabel:j.bt("忽略 mweb 背景菜单", "Dismiss mweb context menu", "unauth.mweb.context_menu.dismiss", undefined, true)})})})]}),"main"===e.context&&V&&B("mweb_main_pin_ltcm_open_in_app").anyEnabled&&(0,w.jsx)(a.Z,{componentType:18,within:"mweb-context-menu",children:({handleOpenApp:e})=>(0,w.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,w.jsx)(b.iP,{onTap:({event:t})=>{t.stopPropagation(),n(null),e({deepLinkUri:`/pin/${i}/`}),(0,_.My)("unauth.mweb.context_menu.open_in_app")},children:(0,w.jsx)(b.xv,{size:"200",weight:"bold",children:j.bt("在应用中打开", "Open in App", "unauth.mweb.context_menu.link.open_in_app", undefined, true)})})})}),["download","short_d"].includes(e.context)&&T?(0,w.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,w.jsx)(r.Z,{imgSrc:O,isChromeOnIOS:R,filename:k,pinId:i,viewType:3,imageSignature:T,children:e=>(0,w.jsx)(s.Z,{pressState:"none",onTouch:t=>{e().then((()=>{t.stopPropagation(),n(null),(0,_.My)("unauth.mweb.context_menu.download_image")}))},children:(0,w.jsx)(b.xv,{size:"200",weight:"bold",children:j.bt("下载图片", "Download image", "unauth.mweb.related_pin.context_menu.link.download_image", undefined, true)})})})}):(0,w.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,w.jsx)(b.iP,{onTap:({event:e})=>{e.stopPropagation(),n(null),(0,_.My)("unauth.mweb.context_menu.save_image"),e&&Z.saveButtonConfig.onSaveButtonClick(e)},children:(0,w.jsx)(b.xv,{size:"200",weight:"bold",children:j.bt("收藏图片", "Save image", "unauth.mweb.context_menu.link.save_image", undefined, true)})})}),["download","save","short_s","short_d"].includes(e.context)&&(0,w.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,w.jsx)(b.iP,{onTap:({event:e})=>{e.stopPropagation(),n(null),t&&t(!0),(0,_.My)("unauth.mweb.context_menu.share_related_pin")},children:(0,w.jsx)(b.xv,{size:"200",weight:"bold",children:j.bt("分享图片", "Share image", "unauth.mweb.context_menu.link.share_menu", undefined, true)})})}),(0,w.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,w.jsx)(b.iP,{onTap:({event:e})=>{e.stopPropagation(),n(null),(0,_.My)("unauth.mweb.context_menu.open_plp_new_tab"),window.open(`/pin/${i}/`)},children:(0,w.jsx)(b.xv,{size:"200",weight:"bold",children:j.bt("在新标签页中打开链接", "Open link in new tab", "unauth.mweb.context_menu.link.plp_new_tab", undefined, true)})})}),["download","save","main"].includes(e.context)&&(F||!(!L||!M))&&(0,w.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,w.jsx)(b.iP,{onTap:()=>{(0,_.My)("unauth.mweb.context_menu.see_more_pins"),D.push(M?`${M}`:z)},children:L?(0,w.jsx)(b.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,m.nk)(j.bt("查看更多关于 {{levelOneInterestName}} 的点子", "See more ideas about {{levelOneInterestName}}", "unauth.mweb.context_menu.link.see_more_ideas.l1", undefined, true),{levelOneInterestName:L})}):(0,w.jsx)(b.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,m.nk)(j.bt("查看更多关于 {{interestTag}} 的点子", "See more ideas about {{interestTag}}", "unauth.mweb.context_menu.link.see_more_ideas.interest_tag", undefined, true),{interestTag:F})})})}),["download","save","main"].includes(e.context)&&!(!S||!x)&&(0,w.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,w.jsx)(b.iP,{onTap:()=>{(0,_.My)("unauth.mweb.context_menu.more_from_creator"),D.push(`/${x}/`)},children:(0,w.jsx)(b.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,m.nk)(j.bt("更多来自 {{full_name}} 的内容", "See more from {{full_name}}", "unauth.context_menu.link.more_from_creator", undefined, true),{full_name:S})})})}),(0,w.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,w.jsx)(b.iP,{onTap:({event:e})=>{e.stopPropagation(),n(null),(0,_.My)("unauth.mweb.context_menu.login_signup"),U({reason:"CLICK_LOGIN_OR_SIGNUP",attributionLabel:"tap_unauth_context_menu_login_signup"})},children:(0,w.jsx)(b.xv,{size:"200",weight:"bold",children:j.bt("登录或注册以查看更多", "Log in or sign up for more", "unauth.mweb.context_menu.link.login_signup", undefined, true)})})})]}):null}function I({graphqlRef:e,pinId:t,...n}){var i,a,r,o,s;const l=(0,x.useFragment)(k,e),c=(0,u.Z)(l);let d;var p,h;(d=null!=l&&l.nativeCreator?l.nativeCreator:null!=l&&l.linkDomain?l.linkDomain.officialUser:(null==l?void 0:l.originPinner)||(null==l?void 0:l.pinner),d&&"string"!=typeof d)||(d=null!==(p=null==l||null===(h=l.linkDomain)||void 0===h?void 0:h.officialUser)&&void 0!==p?p:null==l?void 0:l.pinner);const m=(null==l?void 0:l.gridTitle)||(null==l?void 0:l.closeupUnifiedDescription),_=null==l?void 0:l.imageSignature;return(0,w.jsx)(T,{...n,embedSrc:(null==l?void 0:l.embed)&&l.embed.src,embedType:(null==l?void 0:l.embed)&&l.embed.type,images:c,sourceUserUsername:null===(i=d)||void 0===i?void 0:i.username,sourceUserFullname:null===(a=d)||void 0===a?void 0:a.fullName,pinDownloadFilename:m,pinImageSignature:_,pinJoinVisualAnnotation:null==l||null===(r=l.pinJoin)||void 0===r?void 0:r.visualAnnotation,pinJoinSeoBreadcrumbName:(null==l||null===(o=l.pinJoin)||void 0===o?void 0:o.seoBreadcrumbs)&&(l.pinJoin.seoBreadcrumbs.length>0?l.pinJoin.seoBreadcrumbs[0].name:null),pinJoinSeoBreadcrumbUrl:(null==l||null===(s=l.pinJoin)||void 0===s?void 0:s.seoBreadcrumbs)&&(l.pinJoin.seoBreadcrumbs.length>0?l.pinJoin.seoBreadcrumbs[0].url:null),pinId:t})}function A({graphqlRef:e,pinId:t,...n}){var i,a,r,o,s,l;const c=(0,f.S6)()(t),{link_domain:d,native_creator:u,origin_pinner:p,pinner:m}=c||{};let _=(0,h.wS)(d,u,p,m);var g,v;_&&"string"!=typeof _||(_=null!==(g=null==c||null===(v=c.link_domain)||void 0===v?void 0:v.official_user)&&void 0!==g?g:m);const{full_name:y,username:b}=null!==(i=_)&&void 0!==i?i:{},x=(null==c?void 0:c.grid_title)||(null==c?void 0:c.closeup_unified_description),P=null==c?void 0:c.image_signature;return(0,w.jsx)(T,{...n,embedSrc:null==c||null===(a=c.embed)||void 0===a?void 0:a.src,embedType:null==c||null===(r=c.embed)||void 0===r?void 0:r.type,images:null==c?void 0:c.images,sourceUserUsername:y,sourceUserFullname:b,pinDownloadFilename:x,pinImageSignature:P,pinJoinVisualAnnotation:null==c||null===(o=c.pin_join)||void 0===o?void 0:o.visual_annotation,pinJoinSeoBreadcrumbName:(null==c||null===(s=c.pin_join)||void 0===s?void 0:s.seo_breadcrumbs)&&(c.pin_join.seo_breadcrumbs.length>0?c.pin_join.seo_breadcrumbs[0].name:null),pinJoinSeoBreadcrumbUrl:(null==c||null===(l=c.pin_join)||void 0===l?void 0:l.seo_breadcrumbs)&&(c.pin_join.seo_breadcrumbs.length>0?c.pin_join.seo_breadcrumbs[0].url:null),pinId:t})}function C(e){return e.graphqlRef?(0,w.jsx)(I,{...e}):(0,w.jsx)(A,{...e})}},862193:(e,t,n)=>{n.d(t,{Z:()=>s});var i,a=n(667294),r=n(167912);const o=void 0!==i?i:i=n(569772),s=e=>{var t;const n=(0,r.useFragment)(o,e),i=null==n||null===(t=n.pinJoin)||void 0===t?void 0:t.annotationsWithLinksArray;return(0,a.useMemo)((()=>null==i?void 0:i.reduce(((e,{name:t,url:n})=>t?{...e,[t]:{name:t,url:n}}:e),{})),[i])}},926749:(e,t,n)=>{n.d(t,{ZP:()=>S});var i=n(667294),a=n(23279),r=n.n(a),o=n(722767);function s(e){const{eventData:{videoEvent:{videoDuration:t,startTime:n,endTime:i,videoStartTime:a,videoEndTime:r,isAudible:o,height:s,width:l,playbackState:c,quartile:d,quartilePercentValue:u,windowHeight:p,windowWidth:h,viewability:m}},component:_,objectId:g,view:v,viewParameter:f,...y}=e;return{component:_,object_id_str:g,view_type:v,view_parameter:f,aux_data:{...y},event_data:{videoEventData:{videoDuration:t,time:n,endTime:i,videoTime:a,endVideoTime:r,isAudible:o,height:s,width:l,playbackState:c,quartile:d,quartilePercentValue:u,windowHeight:p,windowWidth:h,viewability:m}}}}var l=n(121630),c=n(944546),d=n(407043),u=n(158103),p=n(883119),h=n(785893);function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _=[0,.25,.5,.75,.95,.97],g=[0,.5,.8,.99,1],v="-64px 0px 0px 0px",f={rootMargin:v,threshold:g},y={rootMargin:v,threshold:c.iM},b=Object.freeze({LOADING:0,PLAYING:1,PAUSED:2,STALLING:3});function x(){return(new Date).getTime()}function w(e){return!!e.volume&&e.volume>0}class P extends i.Component{constructor(e){super(e),m(this,"videoWrapperRef",(0,i.createRef)()),m(this,"handleWindowResize",(()=>{if(!this.fullscreen){const e=this.getDimensions(),{height:t,width:n}=this.currentInterval;e.height!==t||e.width!==n?this.startNewInterval(e):(this.currentInterval.windowHeight=e.windowHeight,this.currentInterval.windowWidth=e.windowWidth)}})),m(this,"handlePlayheadDown",(({event:e})=>{const{onPlayheadDown:t}=this.props;this.setState({seeking:!0}),t&&t({event:e})})),m(this,"handlePlayheadUp",(({event:e})=>{const{onPlayheadUp:t}=this.props;this.setState({seeking:!1}),t&&t({event:e})})),m(this,"handleLoop",(()=>{this.videoTime=0})),m(this,"handleTimeChange",(e=>{const{seeking:t,ready:n}=this.state;if(!this.currentInterval.videoDuration)return;const i=1e3*e.time,a=function(e,t,n,i){if(e>t)return null;if(n<=0)return null;for(const a of i){const i=a*n;if(e<=i&&t>i)return a}return null}(this.videoTime,i,this.currentInterval.videoDuration,_);if("number"==typeof a&&this.props.playing&&!t&&n){const e=x();this.logVideoEvent(6906,{...this.currentInterval,startTime:e,endTime:e,videoStartTime:0,videoEndTime:0,quartile:Math.floor(4*a),quartilePercentValue:a})}this.videoTime=i,this.props.onTimeChange&&this.props.onTimeChange(e)})),m(this,"handleDurationChange",(e=>{this.currentInterval.videoDuration=1e3*e.duration,this.props.onDurationChange&&this.props.onDurationChange(e)})),m(this,"handleReady",(e=>{const{ready:t}=this.state;t||this.setState({ready:!0}),this.props.onReady&&this.props.onReady(e)})),m(this,"handleEnded",(e=>{this.logFourthQuartileEvent(),this.props.loop&&(this.startNewInterval(),this.currentInterval.videoStartTime=0),this.props.onEnded&&this.props.onEnded(e)})),m(this,"handleVisibilityChange",((e,t)=>{if(0===e.length)return;const n=e.slice(-1)[0],i=function(e,t){for(let n=0;n<t.length;n+=1){const i=t[n],a=t[n+1];if(null==a)return i;if(i<=e&&e<a)return i}return null}(Number.parseFloat(n.intersectionRatio.toFixed(2)),g);"number"==typeof i&&(this.visible=i>=.5),null==i||i===this.currentInterval.viewability||this.fullscreen||(0===i?this.startNewInterval({viewability:i,playbackState:b.PAUSED}):this.startNewInterval({viewability:i}))})),m(this,"handleFullscreenChange",(({event:e,fullscreen:t})=>{if(t){const{height:e,width:t}=window.screen;this.startNewInterval({height:e,width:t,windowHeight:e,windowWidth:t})}else t||this.startNewInterval(this.getDimensions());this.fullscreen=t,this.props.onFullscreenChange&&this.props.onFullscreenChange({event:e,fullscreen:t})})),m(this,"handleClose",(()=>{this.startNewInterval()})),m(this,"handleContextMenu",(e=>{e.preventDefault()})),this.state={ready:!1,seeking:!1};const t=x();this.handleWindowResize=r()(this.handleWindowResize,1e3),this.currentInterval={videoDuration:0,startTime:t,endTime:t,videoStartTime:0,videoEndTime:0,isAudible:w(e),playbackState:this.getPlaybackState(e,this.state),quartile:-1,quartilePercentValue:0,height:null,width:null,windowHeight:null,windowWidth:null,viewability:null},this.videoTime=0,this.fullscreen=!1,this.visible=null}componentDidMount(){this.currentInterval={...this.currentInterval,...this.getDimensions()},window.addEventListener("resize",this.handleWindowResize),window.addEventListener("beforeunload",this.handleClose)}componentDidUpdate(e,t){const n={};w(e)&&!w(this.props)?n.isAudible=!1:!w(e)&&w(this.props)&&(n.isAudible=!0);const i=this.getPlaybackState(this.props,this.state);this.getPlaybackState(e,t)!==i&&(n.playbackState=i),Object.keys(n).length>0&&this.startNewInterval(n)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),window.removeEventListener("beforeunload",this.handleClose),this.startNewInterval()}getPlaybackState(e,t){return t.ready?e.playing&&!t.seeking?b.PLAYING:b.PAUSED:b.LOADING}getDimensions(){let e,t;if(this.videoWrapperRef.current){const n=this.videoWrapperRef.current;n.clientHeight&&n.clientWidth&&(e=n.clientHeight,t=n.clientWidth)}return{height:e,width:t,windowHeight:window.innerHeight,windowWidth:window.innerWidth}}logVideoEvent(e,t){const{closeupStoryPinViewability:n,contextLogData:i,logContextEvent:a}=this.props,{height:r,width:o,windowHeight:l,windowWidth:c,viewability:d,...u}=t;if(null!=r&&null!=o&&null!=l&&null!=c&&null!=d){const t={...u,height:r,width:o,windowHeight:l,windowWidth:c,viewability:n||d};a({event_type:e,...s({...i,view:this.fullscreen?108:i.view,eventData:{videoEvent:t}})})}}logFourthQuartileEvent(){const e=x();this.logVideoEvent(6906,{...this.currentInterval,startTime:e,endTime:e,videoStartTime:0,videoEndTime:0,quartile:4,quartilePercentValue:1})}startNewInterval(e){const t=x();this.logVideoEvent(6904,{...this.currentInterval,endTime:t,videoEndTime:this.videoTime}),this.currentInterval={...this.currentInterval,...e,startTime:t,videoStartTime:this.videoTime,endTime:-1,videoEndTime:-1}}render(){const{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:i,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:s,aspectRatio:c,backgroundColor:d,captions:m,contextLogData:_,controls:g,cropHeight:v,hlsConfig:b,inAdsDesktopVideoExperiment:x,isAutoPlay:w,loop:P,objectFit:S,onLoadedChange:k,onControlsPause:T,onControlsPlay:I,onSeek:A,onVolumeChange:C,playbackRate:E,playing:j,playsInline:D,poster:O,preload:R,rootMargin:L,src:M,surface:F,videoStartTime:N,volume:z}=this.props,{seeking:U}=this.state,Z=x?y:f;return void 0!==L&&(Z.rootMargin=F?(0,l.e)(F):L),(0,h.jsx)(o.Z,{options:Z,onVisibilityChange:this.handleVisibilityChange,children:(0,h.jsx)(p.xu,{ref:this.videoWrapperRef,onContextMenu:this.handleContextMenu,dangerouslySetInlineStyle:{__style:v?{display:"flex",alignItems:"center",height:`${v}px`}:{}},children:(0,h.jsx)(u.default,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:i,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:s,aspectRatio:v?236/v:c,backgroundColor:d,captions:m,contextLogData:_,controls:g,hlsConfig:b,isAutoPlay:w,loop:P,objectFit:S,onDurationChange:this.handleDurationChange,onEnded:this.handleEnded,onFullscreenChange:this.handleFullscreenChange,onLoadedChange:k,onLoop:this.handleLoop,onControlsPause:T,onControlsPlay:I,onPlayheadDown:this.handlePlayheadDown,onPlayheadUp:this.handlePlayheadUp,onReady:this.handleReady,onSeek:A,onTimeChange:this.handleTimeChange,onVolumeChange:C,playbackRate:E,playing:!U&&j,onPlay:()=>{},onPlayError:()=>{},playsInline:D,poster:O,preload:R,src:M,videoStartTime:N,visible:this.visible,volume:z})})})}}function S(e){const{logContextEvent:t}=(0,d.v)();return(0,h.jsx)(P,{...e,logContextEvent:t})}m(P,"defaultProps",p.nk.defaultProps)},158103:(e,t,n)=>{n.r(t),n.d(t,{VideoWrapper:()=>w,default:()=>P,getPlaylistSourceSrc:()=>x});var i=n(667294),a=n(19121),r=n(965900),o=n(407043),s=n(773285),l=n(858416),c=n(780280),d=n(883119),u=n(969315),p=n(179888),h=n(785893);function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){if(!e||void 0===e)return"undefined";if("string"==typeof e){let n=e;if(t){const i="control"===t?"v3.pinimg.com":"v2.pinimg.com";n=e.replace("v1.pinimg.com",i)}return n}if(Array.isArray(e)&&e[0].src){let n=e[0].src;if(t){const e="control"===t?"v3.pinimg.com":"v2.pinimg.com";n=n.replace("v1.pinimg.com",e)}return n}return"unsupported_type_"+typeof e}class g extends i.Component{constructor(...e){super(...e),m(this,"state",{canPlayVideo:!1,playbackState:p.Cy.DEFAULT}),m(this,"errorRetryCount",2),m(this,"hasSegmentStarted",!1),m(this,"hasPlaybackStarted",!1),m(this,"hasVideoSessionStarted",!1),m(this,"hasVideoSessionEnded",!1),m(this,"lastStallTime",null),m(this,"lastPauseTime",null),m(this,"logSessionStartOnNextPlay",!1),m(this,"playerId",""),m(this,"videoSessionId",""),m(this,"videoVisibleTime",null),m(this,"playbackPerformance",{canPlayTime:null,detailedErrors:"",errorCode:0,errorName:"",errorReason:"",hasFatalError:!1,loadStartTime:null,numberOfStalls:0,numberOfSeeks:0,playbackStartTimestamp:null,segments:[],srcString:_(this.props.src,this.props.quicExpGroup),totalStallDurationMs:0,totalPauseDurationMs:0}),m(this,"componentDidMount",(()=>{const{contextLogData:e={},playing:t}=this.props,{is_closeup_video:n=!1}=e;(0,u.tE)("videoMounted",!1,n),t&&(this.videoVisibleTime=new Date,this.logPlaybackPerformance(p.DR,{initiator:"mount"}))})),m(this,"componentDidUpdate",(e=>{const{playing:t,visible:n,appInFocus:i}=this.props;e.appInFocus&&!i&&(this.logPlaybackPerformance(p.$f,{initiator:"update"}),this.logSessionStartOnNextPlay=!0),e.visible&&!1===n&&(this.logSessionStartOnNextPlay=!1,this.updatePauseDuration(),this.logPlaybackPerformance(p.$f,{initiator:"update"})),!1===e.visible&&!0===n&&(this.videoVisibleTime=this.videoVisibleTime||new Date,t?(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(p.DR,{initiator:"update"})):this.logSessionStartOnNextPlay=!0),t&&i&&this.logSessionStartOnNextPlay&&(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(p.DR,{initiator:"update"}),this.logSessionStartOnNextPlay=!1)})),m(this,"addSegment",(()=>{const{canPlayTime:e,loadStartTime:t,segments:n,srcString:i}=this.playbackPerformance;let a=-1;e&&t&&0===n.length&&(a=e>t?e-t:0);const r=this.videoPlayerRef&&this.videoPlayerRef.video,o={indicatedKbps:-1,duration:r&&r.duration*p.gJ||-1,lastStartPlayTime:null,level:-1,numServerAddressChange:-1,observedKbps:-1,playbackStartDate:null,serverAddress:"",sourceWidth:-1,sourceHeight:-1,startupTimeMs:a,switchBitrateKbps:-1,uri:i,viewportWidth:r&&r.clientWidth||-1,viewportHeight:r&&r.clientHeight||-1,watchedDurationMs:0};n.push(o)})),m(this,"getCurrentVideoTime",(()=>this.videoPlayerRef&&this.videoPlayerRef.video?this.videoPlayerRef.video.currentTime*p.gJ:0)),m(this,"getVideoResourceTiming",(()=>{var e,t;if(null!==(e=window)&&void 0!==e&&null!==(t=e.performance)&&void 0!==t&&t.getEntriesByName&&this.playbackPerformance.srcString){const e=window.performance.getEntriesByName(this.playbackPerformance.srcString);return e.length>0&&e[0]||null}return null})),m(this,"handleCanPlayVideo",(e=>{const{contextLogData:t={},onReady:n,playing:i}=this.props,{is_closeup_video:a=!1}=t,{canPlayVideo:r}=this.state;(0,u.tE)("handleCanPlayVideo",!1,a,{firstCanPlayEvent:!r,playing:i}),this.playbackPerformance.hasFatalError=!1,r||(this.playbackPerformance.canPlayTime=new Date),this.setState({canPlayVideo:!0}),n&&n(e)})),m(this,"handleEnded",(e=>{const{loop:t,onEnded:n}=this.props,{segments:i}=this.playbackPerformance,a=i&&i[i.length-1];t&&this.videoPlayerRef&&this.videoPlayerRef.video?(this.updateWatchDurationForCurrentSegment(),a&&(a.lastStartPlayTime=0),this.hasSegmentStarted=!1):t||this.logPlaybackPerformance(p.$f,{initiator:"videoEnded",loop:t}),this.setState({playbackState:p.Cy.ENDED}),n&&n(e)})),m(this,"handleError",(()=>{var e,t,n,i,a,r,o,s;const{contextLogData:l={}}=this.props,{is_closeup_video:c=!1}=l,d=this.videoPlayerRef&&this.videoPlayerRef.video;(null==d||null===(e=d.error)||void 0===e?void 0:e.code)!==p.lG.MEDIA_ERR_ABORTED&&(this.playbackPerformance.hasFatalError=!0),this.playbackPerformance.detailedErrors+=`${this.playbackPerformance.detailedErrors.length>0?", ":""}${(null==d||null===(t=d.error)||void 0===t?void 0:t.message)||""}`,this.playbackPerformance.errorCode=(null==d||null===(n=d.error)||void 0===n?void 0:n.code)||0,this.playbackPerformance.errorName=(null==d||null===(i=d.error)||void 0===i||null===(a=i.message)||void 0===a?void 0:a.slice(0,100))||"unknown",this.playbackPerformance.errorReason=(null==d||null===(r=d.error)||void 0===r||null===(o=r.message)||void 0===o?void 0:o.slice(0,100))||"unknown";const h={errorName:this.playbackPerformance.errorCode,errorReason:this.playbackPerformance.errorName,errorRetryCount:this.errorRetryCount,playbackState:this.state.playbackState,networkState:(null==d?void 0:d.networkState)||"unknown"};switch((0,u.tE)("fatalError",!1,c,h),null==d||null===(s=d.error)||void 0===s?void 0:s.code){case p.lG.MEDIA_ERR_ABORTED:break;case p.lG.MEDIA_ERR_NETWORK:case p.lG.MEDIA_ERR_DECODE:case p.lG.MEDIA_ERR_SRC_NOT_SUPPORTED:default:this.errorRetryCount>0&&(null==d||d.load(),this.errorRetryCount-=1)}this.updateWatchDurationForCurrentSegment(),this.setState({playbackState:p.Cy.FAILED})})),m(this,"handleLoadedMetadata",(()=>{this.setState({playbackState:p.Cy.LOADED_METADATA})})),m(this,"handleLoadStart",(()=>{this.playbackPerformance.loadStartTime=new Date,this.setState({playbackState:p.Cy.LOAD_START})})),m(this,"handleLoadedData",(()=>{this.setState({playbackState:p.Cy.LOADED_DATA})})),m(this,"handlePlaying",(()=>{this.playbackPerformance.hasFatalError=!1,this.setPlaybackStartTime(),this.hasSegmentStarted||this.addSegment(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.updateStallDuration(),this.updatePauseDuration(),this.setState({playbackState:p.Cy.PLAYING}),this.props.clearSeekTime&&this.props.clearSeekTime()})),m(this,"handleUserPause",(e=>{const{onControlsPause:t}=this.props;this.lastPauseTime=new Date,t&&t(e)})),m(this,"handleVideoPause",(()=>{this.state.playbackState!==p.Cy.STALLING&&this.state.playbackState!==p.Cy.SEEKING&&(this.updateWatchDurationForCurrentSegment(),this.lastPauseTime||this.updateStallDuration()),this.setState({playbackState:p.Cy.PAUSED})})),m(this,"handleSeeking",(()=>{this.playbackPerformance.numberOfSeeks+=1;const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&(t.lastStartPlayTime=null),this.state.playbackState!==p.Cy.ENDED&&this.setState({playbackState:p.Cy.SEEKING})})),m(this,"handleStalled",(()=>{null===this.lastStallTime&&this.state.playbackState!==p.Cy.ENDED&&(this.lastStallTime=new Date,this.playbackPerformance.numberOfStalls+=1,this.setState({playbackState:p.Cy.STALLING}))})),m(this,"handleTimeUpdate",(e=>{const{onTimeChange:t}=this.props;t&&t(e),this.state.playbackState===p.Cy.PLAYING&&(this.updateWatchDurationForCurrentSegment(),this.setLastSegmentStartPlayTime())})),m(this,"resetPlaybackMetrics",(()=>{this.hasSegmentStarted=!0,this.hasPlaybackStarted=!1,this.hasVideoSessionStarted=!1,this.hasVideoSessionEnded=!0,this.lastStallTime=null,this.lastPauseTime=null,this.videoSessionId="",this.videoVisibleTime=null,this.logSessionStartOnNextPlay=!1;const e={...this.playbackPerformance.segments[this.playbackPerformance.segments.length-1],lastStartPlayTime:null,playbackStartDate:null,watchedDurationMs:0};this.playbackPerformance.detailedErrors="",this.playbackPerformance.errorCode=0,this.playbackPerformance.errorName="",this.playbackPerformance.errorReason="",this.playbackPerformance.hasFatalError=!1,this.playbackPerformance.numberOfStalls=0,this.playbackPerformance.numberOfSeeks=0,this.playbackPerformance.playbackStartTimestamp=null,this.playbackPerformance.totalStallDurationMs=0,this.playbackPerformance.segments=[e]})),m(this,"setLastSegmentStartPlayTime",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.lastStartPlayTime&&(t.lastStartPlayTime=this.getCurrentVideoTime())})),m(this,"setLastSegmentPlaybackStartDate",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.playbackStartDate&&(t.playbackStartDate=Date.now())})),m(this,"setPlaybackStartTime",(()=>{this.hasPlaybackStarted||(this.playbackPerformance.playbackStartTimestamp=Date.now(),this.hasPlaybackStarted=!0)})),m(this,"setVideoPlayerRef",(e=>{const{setVideoRef:t}=this.props;if(e&&(t&&t(e),this.videoPlayerRef=e,this.videoPlayerRef.video)){const e=this.videoPlayerRef.video;e.addEventListener("loadedmetadata",this.handleLoadedMetadata),e.addEventListener("loadeddata",this.handleLoadedData),e.addEventListener("pause",this.handleVideoPause),e.readyState>=3&&(this.setState({canPlayVideo:!0}),this.playbackPerformance.canPlayTime=new Date)}})),m(this,"updateStallDuration",(()=>{if(null!==this.lastStallTime){const e=this.lastStallTime;this.playbackPerformance.totalStallDurationMs+=new Date-e,this.lastStallTime=null}})),m(this,"updatePauseDuration",(()=>{if(null!==this.lastPauseTime){const e=this.lastPauseTime;this.playbackPerformance.totalPauseDurationMs+=new Date-e,this.lastPauseTime=null}})),m(this,"updateWatchDurationForCurrentSegment",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1],n=t?t.lastStartPlayTime:null,i=this.getCurrentVideoTime();if(t&&null!==n&&"number"==typeof i&&"number"==typeof n){const e=i-n;e>0&&(t.watchedDurationMs+=e,t.lastStartPlayTime=null)}})),m(this,"logPlaybackPerformance",((e,t)=>{const{contextLogData:n={},userId:i,isAutoPlay:a,logContextEvent:r}=this.props,{is_closeup_video:o=!1}=n,{canPlayTime:s,detailedErrors:l,errorCode:c,errorName:d,errorReason:h,hasFatalError:m,loadStartTime:_,totalPauseDurationMs:g,totalStallDurationMs:v,numberOfStalls:f,numberOfSeeks:y,playbackStartTimestamp:b,segments:x,srcString:w}=this.playbackPerformance,P=this.videoPlayerRef&&this.videoPlayerRef.video,S=e===p.DR,k=S&&!this.hasVideoSessionStarted,T=!S&&!this.hasVideoSessionEnded&&this.hasVideoSessionStarted;if(P&&(k||T)){var I;let k=-1;s&&_&&(k=s>_?s-_:0);let T=-1;s&&this.videoVisibleTime&&(T=s>this.videoVisibleTime?s-this.videoVisibleTime:0),S&&(this.videoSessionId=(0,p.Y7)(i),this.playerId=this.playerId||(0,p.EB)());const A=this.getVideoResourceTiming(),C={averageVideoKbps:-1,autoplaying:a,detailedErrors:l,downloadedKiloBytes:"number"==typeof(null==A?void 0:A.decodedBodySize)&&A.decodedBodySize/p.Fm||0,errorCode:c,errorName:d,errorReason:h,fatalError:m,isCellular:!1,nativeVideoDurationMs:P.duration*p.gJ||-1,numberOfStalls:f,numberOfSeeks:y,overallPausedDurationMs:g,overallBufferDurationMs:v,overallWatchedDurationMs:-1,rebufferRate:-1,playbackSessionId:this.videoSessionId,playbackStartTimestamp:b||-1,segments:[],sessionMark:e,screenPixelScale:null!==(I=window)&&void 0!==I&&I.devicePixelRatio?window.devicePixelRatio:-1,startupPlayerWidth:P.clientWidth,startupPlayerHeight:P.clientHeight,startupTimeMs:k,startupLatencyMs:T,startupVariantKbps:-1,startupVariantWatchedDurationMs:-1,startupVariantWidth:P.videoWidth,startupVariantHeight:P.videoHeight,videoUrl:w};if(!S){this.updateWatchDurationForCurrentSegment(),this.updateStallDuration();const e=x.reduce(((e,t)=>e+(t.watchedDurationMs||0)),0);C.overallWatchedDurationMs=e,C.startupVariantWatchedDurationMs=e,C.segments=this.playbackPerformance.segments,0===e?(C.errorName="invalid_watch_duration",C.rebufferRate=-1):C.rebufferRate=v/e}(0,u.ZP)(C,!1,o,{playbackState:this.state.playbackState,...t});const{view:E,viewParameter:j,component:D,element:O,objectId:R,...L}=n;r({event_type:3606,event_data:{videoPerformanceData:C},view_type:E,view_parameter:j,component:D,element:O,object_id_str:R,aux_data:{...L,is_closeup_video:o,playback_session_id:this.videoSessionId}}),S?(this.hasVideoSessionStarted=!0,this.hasVideoSessionEnded=!1):this.resetPlaybackMetrics(),(0,u.tE)(S?"sessionStart":"sessionEnd",!1,o,{playbackState:this.state.playbackState,...t})}}))}componentWillUnmount(){const{loop:e}=this.props;this.updatePauseDuration(),this.logPlaybackPerformance(p.$f,{initiator:"unmount",loop:e})}render(){const{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:i,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:o,aspectRatio:s,captions:l,controls:c,loop:u,loopOverride:p,objectFit:m,onDurationChange:g,onFullscreenChange:v,onLoadedChange:f,onControlsPlay:y,onPlayheadDown:b,onPlayheadUp:x,onSeek:w,onVolumeChange:P,playbackRate:S,playing:k,playsInline:T,poster:I,preload:A,src:C,videoStartTime:E,volume:j}=this.props,{canPlayVideo:D}=this.state;return(0,h.jsx)(d.nk,{autoplay:D&&k,accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:i,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:o,aspectRatio:s,captions:l,controls:c,loop:void 0===p?u:p,objectFit:m,onDurationChange:g,onEnded:this.handleEnded,onError:this.handleError,onFullscreenChange:v,onLoadedChange:f,onLoadStart:this.handleLoadStart,onControlsPause:this.handleUserPause,onControlsPlay:y,onPlaying:this.handlePlaying,onPlayheadDown:b,onPlayheadUp:x,onReady:this.handleCanPlayVideo,onSeek:w,onSeeking:this.handleSeeking,onStalled:this.handleStalled,onTimeChange:this.handleTimeUpdate,onVolumeChange:P,onWaiting:this.handleStalled,playbackRate:S,onPlay:()=>{},onPlayError:()=>{},playing:D&&k,playsInline:T,poster:I,preload:A,ref:this.setVideoPlayerRef,src:_(C,this.props.quicExpGroup),startTime:E||void 0,volume:j})}}const v=(0,i.memo)((function(e){const{logContextEvent:t}=(0,o.v)(),{country:n,isAuthenticated:i,isBot:d,isSocialBot:p,unauthId:m,userAgent:_}=(0,c.B)(),{browserName:v,browserVersion:f,isMobile:y}=_,{contextLogData:b={}}=e,{is_closeup_video:x=!1,view:w,viewParameter:P}=b,{appUI:{appInFocus:S}}=(0,r.I)(),{checkExperiment:k}=(0,s.F)(),{clearSeekTime:T}=(0,l.RC)();let I=null;i&&(I=k("web_video_quic").group.length?k("web_video_quic").group:null);const A=(0,a.Z)(),C={browserName:v,browserVersion:f,country:n,isAuthenticated:i,isBot:d,is_closeup_video:x,isMobile:y,isSocialBot:p,view:w,viewParameter:P};return(0,u.r$)(C),(0,h.jsx)(g,{...e,userId:A.id||m,appInFocus:S,quicExpGroup:I,logContextEvent:t,clearSeekTime:T})}));var f=n(562559),y=n(366284);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const x=e=>{if(Array.isArray(e)){const t=e.find((e=>"video/m3u8"===e.type));return t?t.src:void 0}return RegExp("m3u8$").test(e)?e:void 0};class w extends i.PureComponent{constructor(e){super(e),b(this,"componentDidUpdate",((e,t)=>{var n;e.videoStartTime&&this.props.videoStartTime&&e.videoStartTime<this.props.videoStartTime&&null!==(n=this.videoPlayerRef)&&void 0!==n&&n.video&&(this.videoPlayerRef.video.currentTime=this.props.videoStartTime)})),b(this,"setVideoPlayerRef",(e=>{e&&(this.videoPlayerRef=e)})),b(this,"handleOnEnded",(({event:e})=>{const{loop:t,onLoop:n,onEnded:i}=this.props;i&&(i({event:e}),this.videoPlayerRef&&this.videoPlayerRef.video&&t&&(this.videoPlayerRef.video.play(),n&&n()))}));const t=x(e.src);this.state={useHlsVideo:!e.preferMp4&&!(0,y.G6)(e.requestContext.userAgent.browserName)&&!!t}}render(){const{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:i,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:o,aspectRatio:s,appInFocus:l,backgroundColor:c,captions:d,contextLogData:u,controls:p,hlsConfig:m,isAutoPlay:_,loop:g,objectFit:y,onDurationChange:b,onEnded:w,onFullscreenChange:P,onLoadedChange:S,onControlsPause:k,onControlsPlay:T,onPlayheadDown:I,onPlayheadUp:A,onReady:C,onSeek:E,onTimeChange:j,onVolumeChange:D,playbackRate:O,playing:R,playsInline:L,poster:M,preferMp4:F,preload:N,src:z,videoStartTime:U,visible:Z,volume:B}=this.props,{useHlsVideo:V}=this.state,H=x(z),K={...m,startPosition:U||-1},W=!w&&g;return V&&H?(0,h.jsx)(f.Z,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:i,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:o,aspectRatio:s,appInFocus:l,backgroundColor:c,captions:d,contextLogData:u,controls:p,hlsConfig:K,isAutoPlay:_,loop:g,loopOverride:W,onDurationChange:b,onEnded:this.handleOnEnded,onFullscreenChange:P,onLoadedChange:S,onControlsPause:k,onControlsPlay:T,onPlayheadDown:I,onPlayheadUp:A,onReady:C,onSeek:E,onTimeChange:j,onVolumeChange:D,playbackRate:O,onPlay:()=>{},onPlayError:()=>{},playing:R,playsInline:L,poster:M,preload:N,setVideoRef:this.setVideoPlayerRef,src:H,visible:Z,volume:B}):(0,h.jsx)(v,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:n,accessibilityPauseLabel:i,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:o,aspectRatio:s,captions:d,contextLogData:u,controls:p,isAutoPlay:_,loop:g,loopOverride:W,objectFit:y,onDurationChange:b,onEnded:this.handleOnEnded,onFullscreenChange:P,onLoadedChange:S,onControlsPause:k,onControlsPlay:T,onPlayheadDown:I,onPlayheadUp:A,onReady:C,onSeek:E,onTimeChange:j,onVolumeChange:D,playbackRate:O,onPlay:()=>{},onPlayError:()=>{},playing:R,playsInline:L,poster:M,preload:N,setVideoRef:this.setVideoPlayerRef,src:F?z:H||z,videoStartTime:U,visible:Z,volume:B})}}function P(e){const{appUI:{appInFocus:t}}=(0,r.I)(),n=(0,c.B)();return(0,h.jsx)(w,{...e,appInFocus:t,requestContext:n})}},944546:(e,t,n)=>{n.d(t,{HJ:()=>a,VS:()=>i,iM:()=>r});const i=2,a="V_HLSV3_MOBILE",r=[0,.01,.02,.03,.04,.05,.06,.07,.08,.09,.1,.11,.12,.13,.14,.15,.16,.17,.18,.19,.2,.21,.22,.23,.24,.25,.26,.27,.28,.29,.3,.31,.32,.33,.34,.35,.36,.37,.38,.39,.4,.41,.42,.43,.44,.45,.46,.47,.48,.49,.5,.51,.52,.53,.54,.55,.56,.57,.58,.59,.6,.61,.62,.63,.64,.65,.66,.67,.68,.69,.7,.71,.72,.73,.74,.75,.76,.77,.78,.79,.8,.81,.82,.83,.84,.85,.86,.87,.88,.89,.9,.91,.92,.93,.94,.95,.96,.97,.98,.99,1]}}]);
//# sourceMappingURL=https://sm.pinimg.com/webapp/DefaultPinRep.zh_CN-3f7dfbef5efe4ff6.mjs.map