banko-ai-assistant 1.0.0__py3-none-any.whl → 1.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. banko_ai/static/creditcard_files/0dbda187ceb472a466dff54b7015b1d4.jpg +0 -0
  2. banko_ai/static/creditcard_files/10903-7f8736e237ced107.mjs +2 -0
  3. banko_ai/static/creditcard_files/10966-809952783184ae4b.mjs +4 -0
  4. banko_ai/static/creditcard_files/13351-8a7dda060266efff.mjs +2 -0
  5. banko_ai/static/creditcard_files/1342-c79d3d17da82f23c.mjs +11 -0
  6. banko_ai/static/creditcard_files/16142-bdecf7bfdd6d70ae.mjs +2 -0
  7. banko_ai/static/creditcard_files/16550-e89f65017860221d.mjs +2 -0
  8. banko_ai/static/creditcard_files/17492-942c70b114fdcce1.mjs +10 -0
  9. banko_ai/static/creditcard_files/18352-481d67e871cc6985.mjs +2 -0
  10. banko_ai/static/creditcard_files/18555-0d9763eb744f7a77.mjs +2 -0
  11. banko_ai/static/creditcard_files/19437-575ba467ea85e866.mjs +2 -0
  12. banko_ai/static/creditcard_files/1aca1669c3b4a07f0966c4733c939d6d.jpg +0 -0
  13. banko_ai/static/creditcard_files/20126-602c15db592cf3c4.mjs +26 -0
  14. banko_ai/static/creditcard_files/20224-b6de2c08cc8ad497.mjs +66 -0
  15. banko_ai/static/creditcard_files/2029a63f9af76541f860b6a6a4ec0c90.jpg +0 -0
  16. banko_ai/static/creditcard_files/21662-1214728138c72aa2.css +1 -0
  17. banko_ai/static/creditcard_files/22517-5f7ab2631d424b77.mjs +9 -0
  18. banko_ai/static/creditcard_files/23019-be3b8956cee94725.mjs +2 -0
  19. banko_ai/static/creditcard_files/26067-cb77f2673c5f757c.mjs +2 -0
  20. banko_ai/static/creditcard_files/27405-880a12623820964d.mjs +9 -0
  21. banko_ai/static/creditcard_files/27503-82078c18034012ed.mjs +38 -0
  22. banko_ai/static/creditcard_files/28090-8e4b5fd6c88f8eb2.mjs +6 -0
  23. banko_ai/static/creditcard_files/2c66dacf04db64cc1099835f2e2328d5.jpg +0 -0
  24. banko_ai/static/creditcard_files/30090868cb2b559a7093999fec5fbcc8.jpg +0 -0
  25. banko_ai/static/creditcard_files/30102-608e861dccc907f1.mjs +2 -0
  26. banko_ai/static/creditcard_files/31600-ca2e152d871d51d5.mjs +2 -0
  27. banko_ai/static/creditcard_files/31d5156a9cc5fe5fd780c2d9e59db98f.jpg +0 -0
  28. banko_ai/static/creditcard_files/34713-54729fd9c7517d50.mjs +2 -0
  29. banko_ai/static/creditcard_files/35074-d765c14dc3e8eafc.mjs +77 -0
  30. banko_ai/static/creditcard_files/38230-4d6eb1a608eecdeb.mjs +7 -0
  31. banko_ai/static/creditcard_files/40566-e2dbb4226dd2ab42.mjs +6 -0
  32. banko_ai/static/creditcard_files/42298-668aa166e1146c6c.mjs +2 -0
  33. banko_ai/static/creditcard_files/43203-3a1e46e5259313c8.mjs +14 -0
  34. banko_ai/static/creditcard_files/44429-6534f772a6bd895b.mjs +13 -0
  35. banko_ai/static/creditcard_files/48327-48fb70091d7ac731.mjs +2 -0
  36. banko_ai/static/creditcard_files/49923-dc71193d54a0b99c.mjs +2 -0
  37. banko_ai/static/creditcard_files/49c3cac3c5a09ca104a2efea48536d14.jpg +0 -0
  38. banko_ai/static/creditcard_files/50040-3c27b1fe14ca588b.mjs +2 -0
  39. banko_ai/static/creditcard_files/5047473e06297bbccfae9c43ca36bd93.jpg +0 -0
  40. banko_ai/static/creditcard_files/51531-253e8d8f8f527d9c.mjs +26 -0
  41. banko_ai/static/creditcard_files/58103-d6be57f2d624e7b4.mjs +2 -0
  42. banko_ai/static/creditcard_files/58822-d1779ebe9d4fab59.mjs +51 -0
  43. banko_ai/static/creditcard_files/61b440e4366b35d7213172be53d3864e.jpg +0 -0
  44. banko_ai/static/creditcard_files/61d121a699367070f3988f633ed6ac7d.jpg +0 -0
  45. banko_ai/static/creditcard_files/65610-15f55d146aa3cc6f.mjs +2 -0
  46. banko_ai/static/creditcard_files/65662-2b7065d2ddcf6a0c.mjs +2 -0
  47. banko_ai/static/creditcard_files/67631-9d4d7f4aab06e79c.mjs +2 -0
  48. banko_ai/static/creditcard_files/68445-8aae26e83c03d9bc.mjs +7 -0
  49. banko_ai/static/creditcard_files/6863-da15e99ca946f07a.mjs +2 -0
  50. banko_ai/static/creditcard_files/71526-518cf6126a32651b.mjs +2 -0
  51. banko_ai/static/creditcard_files/72268-8f69a6e8585b9af2.mjs +2 -0
  52. banko_ai/static/creditcard_files/76f1a52015cf2a243ed085586f3d44e8.jpg +0 -0
  53. banko_ai/static/creditcard_files/80538-65bd348271403336.mjs +2 -0
  54. banko_ai/static/creditcard_files/81505-387f6ddb644ae967.mjs +38 -0
  55. banko_ai/static/creditcard_files/8151-1a0cf04ea45ad513.mjs +2 -0
  56. banko_ai/static/creditcard_files/83119-1cf7ca2f5ba0e1ab.mjs +9 -0
  57. banko_ai/static/creditcard_files/83485-27ce97f9e7369ed7.mjs +5 -0
  58. banko_ai/static/creditcard_files/8575-e1977ceb3b34da9c.mjs +2 -0
  59. banko_ai/static/creditcard_files/8962-664b3c9b21ec2e0f.mjs +2 -0
  60. banko_ai/static/creditcard_files/90123-40fd5c2d5dc1c0a1.mjs +2 -0
  61. banko_ai/static/creditcard_files/91846-55cc5635c18159a0.mjs +47 -0
  62. banko_ai/static/creditcard_files/91936-56d11562a38b3f77.mjs +2 -0
  63. banko_ai/static/creditcard_files/96833-fbcb1ab8436924d4.mjs +36 -0
  64. banko_ai/static/creditcard_files/99246-889e96fc0a42e07a.mjs +2 -0
  65. banko_ai/static/creditcard_files/99961-ee8d9a1207a9db7a.mjs +2 -0
  66. banko_ai/static/creditcard_files/DefaultPinRep-78e567622e9cb382.mjs +27 -0
  67. banko_ai/static/creditcard_files/DesktopUnauthPageWrapper-26b3c2c050f09d27.css +1 -0
  68. banko_ai/static/creditcard_files/DesktopUnauthPageWrapper-a120f0b0faa773a2.mjs +252 -0
  69. banko_ai/static/creditcard_files/KkWFeSURekXGycdprVC-UY6ED-ZF5ll2JCMiHhJE2Rk.js +1 -0
  70. banko_ai/static/creditcard_files/MobileAndUnauthPinPage-0083f61f79e906d2.mjs +400 -0
  71. banko_ai/static/creditcard_files/UnauthCloseupRelatedPins-d98c713ac2e141a7.mjs +2 -0
  72. banko_ai/static/creditcard_files/[id]-87f8f6f1f81e3a8a.mjs +2 -0
  73. banko_ai/static/creditcard_files/_client-49638f60bdf5658e.mjs +43 -0
  74. banko_ai/static/creditcard_files/a7ee24644496b7a3131cd4e13b8c6edb.jpg +0 -0
  75. banko_ai/static/creditcard_files/a8ada9395c00dffc8fb81a7b76bd34b5.jpg +0 -0
  76. banko_ai/static/creditcard_files/abbf5a82906bef8c6be49ab38eaeea7c.jpg +0 -0
  77. banko_ai/static/creditcard_files/ad910641231bb413f6a985e4e9961efb.jpg +0 -0
  78. banko_ai/static/creditcard_files/anchor.html +186 -0
  79. banko_ai/static/creditcard_files/b6083df3cfa26856caef114c51a8d21e.jpg +0 -0
  80. banko_ai/static/creditcard_files/b957829ac112a8c28b313307e5ff0df6.jpg +0 -0
  81. banko_ai/static/creditcard_files/bb2d3d28e3421d901d8d431c33f0c6ed.jpg +0 -0
  82. banko_ai/static/creditcard_files/bb2d3d28e3421d901d8d431c33f0c6ed.png +0 -0
  83. banko_ai/static/creditcard_files/c3031b4a938377789e00d3d2f3b2438c.jpg +0 -0
  84. banko_ai/static/creditcard_files/client +300 -0
  85. banko_ai/static/creditcard_files/ct.html +3 -0
  86. banko_ai/static/creditcard_files/d03e6db9649ea3479b799d5a21008ac2.jpg +0 -0
  87. banko_ai/static/creditcard_files/d3d38fd9aa0c808a28ff5bd9ae5b5576.jpg +0 -0
  88. banko_ai/static/creditcard_files/de7cb9e198b4ebc9430824132ccfce2e.jpg +0 -0
  89. banko_ai/static/creditcard_files/e4330b4a4e71a3f77dd0682b99037cad.jpg +0 -0
  90. banko_ai/static/creditcard_files/ecdf72d4d54e70608e9416020f8ad67d.jpg +0 -0
  91. banko_ai/static/creditcard_files/eef64355b9f10e89c355b138adbae1e9.jpg +0 -0
  92. banko_ai/static/creditcard_files/enterprise.js +1 -0
  93. banko_ai/static/creditcard_files/f1354f6bb993409ea12235a01a978936.jpg +0 -0
  94. banko_ai/static/creditcard_files/f7c30e2615fe0e57d9ab6e41aac5e738.jpg +0 -0
  95. banko_ai/static/creditcard_files/fa72fa1ae9bb3ec93f41595333d22d16.jpg +0 -0
  96. banko_ai/static/creditcard_files/fb09ce3b0feb4931402867cf109cd618.jpg +0 -0
  97. banko_ai/static/creditcard_files/i +0 -0
  98. banko_ai/static/creditcard_files/locale-en_US-lite-js-d0d346142714beb1.mjs +2 -0
  99. banko_ai/static/creditcard_files/login-3c695aa28fdc27a5.mjs +161 -0
  100. banko_ai/static/creditcard_files/login-e161a84cea9cd0a3.css +1 -0
  101. banko_ai/static/creditcard_files/packages-rich-snippet-LeafSnippet-b7f61038a4431021.mjs +2 -0
  102. banko_ai/static/creditcard_files/polyfills-c5ca6e711f8975ec.mjs +2 -0
  103. banko_ai/static/creditcard_files/recaptcha__en.js +1011 -0
  104. banko_ai/static/creditcard_files/repin-62bbd4d7c8e22f17.css +1 -0
  105. banko_ai/static/creditcard_files/repin-d49f19d89ddd3cbe.mjs +292 -0
  106. banko_ai/static/creditcard_files/runtime-505e4380476a458b.mjs +2 -0
  107. banko_ai/static/creditcard_files/saved_resource(1).html +7 -0
  108. banko_ai/static/creditcard_files/saved_resource(2).html +3 -0
  109. banko_ai/static/creditcard_files/saved_resource.html +3 -0
  110. banko_ai/static/creditcard_files/sdk(1).js +22 -0
  111. banko_ai/static/creditcard_files/sdk.js +228 -0
  112. banko_ai/static/creditcard_files/select.html +387 -0
  113. banko_ai/static/creditcard_files/style +1 -0
  114. banko_ai/static/creditcard_files/styles__ltr.css +1 -0
  115. banko_ai/static/creditcard_files/unnamed.jpg +0 -0
  116. banko_ai/static/creditcard_files/vendor-react-76e71fd67c83934b.mjs +54 -0
  117. banko_ai/static/creditcard_files/visual-search-fe95849c7568d600.mjs +123 -0
  118. banko_ai/static/css/style.css +1274 -0
  119. banko_ai/templates/dashboard.html +5 -5
  120. banko_ai/templates/index.html +6 -6
  121. banko_ai/web/app.py +14 -2
  122. {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.1.dist-info}/METADATA +2 -2
  123. banko_ai_assistant-1.0.1.dist-info/RECORD +164 -0
  124. banko_ai_assistant-1.0.0.dist-info/RECORD +0 -46
  125. {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.1.dist-info}/WHEEL +0 -0
  126. {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.1.dist-info}/entry_points.txt +0 -0
  127. {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.1.dist-info}/licenses/LICENSE +0 -0
  128. {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,400 @@
1
+ (self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[18192,51879,72430,13047,16117,51798,91449,19596,3875,24661,90984,75721,82837,48327,42298,18555,22531,50040,8575,99961,90123,61514,16142,27405,8962,58103,76030,84590,77578,56588,74727,1342,53592,60310,69965,10966,18352,56831],{376030:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ee});var i,l,a={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},r={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},o=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],s={CSS:{},springs:{}};function d(e,t,n){return Math.min(Math.max(e,t),n)}function u(e,t){return e.indexOf(t)>-1}function c(e,t){return e.apply(null,t)}var p={arr:function(e){return Array.isArray(e)},obj:function(e){return u(Object.prototype.toString.call(e),"Object")},pth:function(e){return p.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||p.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 p.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 p.hex(e)||p.rgb(e)||p.hsl(e)},key:function(e){return!a.hasOwnProperty(e)&&!r.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function m(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(e){return parseFloat(e)}):[]}function h(e,t){var n=m(e),i=d(p.und(n[0])?1:n[0],.1,100),l=d(p.und(n[1])?100:n[1],.1,100),a=d(p.und(n[2])?10:n[2],.1,100),r=d(p.und(n[3])?0:n[3],.1,100),o=Math.sqrt(l/i),u=a/(2*Math.sqrt(l*i)),c=u<1?o*Math.sqrt(1-u*u):0,h=u<1?(u*o+-r)/c:-r+o;function _(e){var n=t?t*e/1e3:e;return(n=u<1?Math.exp(-n*u*o)*(1*Math.cos(c*n)+h*Math.sin(c*n)):(1+h*n)*Math.exp(-n*o),0===e||1===e)?e:1-n}return t?_:function(){var t=s.springs[e];if(t)return t;for(var n=1/6,i=0,l=0;;)if(1===_(i+=n)){if(++l>=16)break}else l=0;var a=i*n*1e3;return s.springs[e]=a,a}}function _(e){return void 0===e&&(e=10),function(t){return Math.ceil(d(t,1e-6,1)*e)*(1/e)}}var g=function(){function e(e,t,n){return(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e}function t(e,t,n){return 3*(1-3*n+3*t)*e*e+2*(3*n-6*t)*e+3*t}return function(n,i,l,a){if(0<=n&&n<=1&&0<=l&&l<=1){var r=new Float32Array(11);if(n!==i||l!==a)for(var o=0;o<11;++o)r[o]=e(.1*o,n,l);return function(o){return n===i&&l===a||0===o||1===o?o:e(function(i){for(var a=0,o=1;10!==o&&r[o]<=i;++o)a+=.1;var s=a+(i-r[--o])/(r[o+1]-r[o])*.1,d=t(s,n,l);return d>=.001?function(n,i,l,a){for(var r=0;r<4;++r){var o=t(i,l,a);if(0===o)break;var s=e(i,l,a)-n;i-=s/o}return i}(i,s,n,l):0===d?s:function(t,n,i,l,a){var r,o,s=0;do(r=e(o=n+(i-n)/2,l,a)-t)>0?i=o:n=o;while(Math.abs(r)>1e-7&&++s<10)return o}(i,a,a+.1,n,l)}(o),i,a)}}}}(),y=(i={linear:function(){return function(e){return e}}},l={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=d(e,1,10),i=d(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){l[e]=function(){return function(e){return Math.pow(e,t+2)}}}),Object.keys(l).forEach(function(e){var t=l[e];i["easeIn"+e]=t,i["easeOut"+e]=function(e,n){return function(i){return 1-t(e,n)(1-i)}},i["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}},i["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}}}),i);function v(e,t){if(p.fnc(e))return e;var n=e.split("(")[0],i=y[n],l=m(e);switch(n){case"spring":return h(e,t);case"cubicBezier":return c(g,l);case"steps":return c(_,l);default:return c(i,l)}}function f(e){try{return document.querySelectorAll(e)}catch(e){return}}function b(e,t){for(var n=e.length,i=arguments.length>=2?arguments[1]:void 0,l=[],a=0;a<n;a++)if(a in e){var r=e[a];t.call(i,r,a,e)&&l.push(r)}return l}function x(e){return e.reduce(function(e,t){return e.concat(p.arr(t)?x(t):t)},[])}function k(e){return p.arr(e)?e:(p.str(e)&&(e=f(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 w(e,t){var n=S(e);for(var i in e)n[i]=t.hasOwnProperty(i)?t[i]:e[i];return n}function A(e,t){var n=S(e);for(var i in t)n[i]=p.und(e[i])?t[i]:e[i];return n}function T(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 I(e,t){return p.fnc(e)?e(t.target,t.id,t.total):e}function E(e,t){return e.getAttribute(t)}function C(e,t,n){if(P([n,"deg","rad","turn"],T(t)))return t;var i=s.CSS[t+n];if(!p.und(i))return i;var l=document.createElement(e.tagName),a=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;a.appendChild(l),l.style.position="absolute",l.style.width=100+n;var r=100/l.offsetWidth;a.removeChild(l);var o=r*parseFloat(t);return s.CSS[t+n]=o,o}function D(e,t,n){if(t in e.style){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),l=e.style[t]||getComputedStyle(e).getPropertyValue(i)||"0";return n?C(e,l,n):l}}function j(e,t){return p.dom(e)&&!p.inp(e)&&(!p.nil(E(e,t))||p.svg(e)&&e[t])?"attribute":p.dom(e)&&P(o,t)?"transform":p.dom(e)&&"transform"!==t&&D(e,t)?"css":null!=e[t]?"object":void 0}function F(e){if(p.dom(e)){for(var t,n=e.style.transform||"",i=/(\w+)\(([^)]*)\)/g,l=new Map;t=i.exec(n);)l.set(t[1],t[2]);return l}}function R(e,t,n,i){switch(j(e,t)){case"transform":var l,a;return l=u(t,"scale")?1:0+(u(t,"translate")||"perspective"===t?"px":u(t,"rotate")||u(t,"skew")?"deg":void 0),a=F(e).get(t)||l,i&&(i.transforms.list.set(t,a),i.transforms.last=t),n?C(e,a,n):a;case"css":return D(e,t,n);case"attribute":return E(e,t);default:return e[t]||0}}function L(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var i=T(e)||0,l=parseFloat(t),a=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return l+a+i;case"-":return l-a+i;case"*":return l*a+i}}function z(e,t){if(p.col(e)){var n,i,l,a;return n=e,p.rgb(n)?(i=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n))?"rgba("+i[1]+",1)":n:p.hex(n)?(l=n.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,i){return t+t+n+n+i+i}),"rgba("+parseInt((a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(l))[1],16)+","+parseInt(a[2],16)+","+parseInt(a[3],16)+",1)"):p.hsl(n)?function(e){var t,n,i,l=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),a=parseInt(l[1],10)/360,r=parseInt(l[2],10)/100,o=parseInt(l[3],10)/100,s=l[4]||1;function d(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0==r)t=n=i=o;else{var u=o<.5?o*(1+r):o+r-o*r,c=2*o-u;t=d(c,u,a+1/3),n=d(c,u,a),i=d(c,u,a-1/3)}return"rgba("+255*t+","+255*n+","+255*i+","+s+")"}(n):void 0}if(/\s/g.test(e))return e;var r=T(e),o=r?e.substr(0,e.length-r.length):e;return t?o+t:o}function O(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function M(e){for(var t,n=e.points,i=0,l=0;l<n.numberOfItems;l++){var a=n.getItem(l);l>0&&(i+=O(t,a)),t=a}return i}function N(e){var t;if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return 2*Math.PI*E(e,"r");case"rect":return 2*E(e,"width")+2*E(e,"height");case"line":return O({x:E(e,"x1"),y:E(e,"y1")},{x:E(e,"x2"),y:E(e,"y2")});case"polyline":return M(e);case"polygon":return t=e.points,M(e)+O(t.getItem(t.numberOfItems-1),t.getItem(0))}}function B(e,t){var n=t||{},i=n.el||function(e){for(var t=e.parentNode;p.svg(t)&&p.svg(t.parentNode);)t=t.parentNode;return t}(e),l=i.getBoundingClientRect(),a=E(i,"viewBox"),r=l.width,o=l.height,s=n.viewBox||(a?a.split(" "):[0,0,r,o]);return{el:i,viewBox:s,x:s[0]/1,y:s[1]/1,w:r,h:o,vW:s[2],vH:s[3]}}function Z(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,i=z(p.pth(e)?e.totalLength:e,t)+"";return{original:i,numbers:i.match(n)?i.match(n).map(Number):[0],strings:p.str(e)||t?i.split(n):[]}}function K(e){return b(e?x(p.arr(e)?e.map(k):k(e)):[],function(e,t,n){return n.indexOf(e)===t})}function U(e){var t=K(e);return t.map(function(e,n){return{target:e,id:n,total:t.length,transforms:{list:F(e)}}})}var H={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,l){if(i.list.set(t,n),t===i.last||l){var a="";i.list.forEach(function(e,t){a+=t+"("+e+") "}),e.style.transform=a}}};function V(e,t){U(e).forEach(function(e){for(var n in t){var i=I(t[n],e),l=e.target,a=T(i),r=R(l,n,a,e),o=L(z(i,a||T(r)),r);H[j(l,n)](l,n,o,e.transforms,!0)}})}function G(e,t){var n=e.length,i=function(e){return e.timelineOffset?e.timelineOffset:0},l={};return l.duration=n?Math.max.apply(Math,e.map(function(e){return i(e)+e.duration})):t.duration,l.delay=n?Math.min.apply(Math,e.map(function(e){return i(e)+e.delay})):t.delay,l.endDelay=n?l.duration-Math.max.apply(Math,e.map(function(e){return i(e)+e.duration-e.endDelay})):t.endDelay,l}var $=0,W=[],q=function(){var e;function t(n){for(var i=W.length,l=0;l<i;){var a=W[l];a.paused?(W.splice(l,1),i--):(a.tick(n),l++)}e=l>0?requestAnimationFrame(t):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",function(){X.suspendWhenDocumentHidden&&(Y()?e=cancelAnimationFrame(e):(W.forEach(function(e){return e._onDocumentVisibility()}),q()))}),function(){e||Y()&&X.suspendWhenDocumentHidden||!(W.length>0)||(e=requestAnimationFrame(t))}}();function Y(){return!!document&&document.hidden}function X(e){void 0===e&&(e={});var t,n,i,l,o,s,u,c,m,_=0,g=0,y=0,f=0,k=null;function P(e){var t=window.Promise&&new Promise(function(e){return k=e});return e.finished=t,t}var E=(n=w(a,t=e),l=function(e,t){var n=[],i=t.keyframes;for(var l in i&&(t=A(function(e){for(var t=b(x(e.map(function(e){return Object.keys(e)})),function(e){return p.key(e)}).reduce(function(e,t){return 0>e.indexOf(t)&&e.push(t),e},[]),n={},i=0;i<t.length;i++)!function(i){var l=t[i];n[l]=e.map(function(e){var t={};for(var n in e)p.key(n)?n==l&&(t.value=e[n]):t[n]=e[n];return t})}(i);return n}(i),t)),t)p.key(l)&&n.push({name:l,tweens:function(e,t){var n=S(t);if(/^spring/.test(n.easing)&&(n.duration=h(n.easing)),p.arr(e)){var i=e.length;2!==i||p.obj(e[0])?p.fnc(t.duration)||(n.duration=t.duration/i):e={value:e}}var l=p.arr(e)?e:[e];return l.map(function(e,n){var i=p.obj(e)&&!p.pth(e)?e:{value:e};return p.und(i.delay)&&(i.delay=n?0:t.delay),p.und(i.endDelay)&&(i.endDelay=n===l.length-1?t.endDelay:0),i}).map(function(e){return A(e,n)})}(t[l],e)});return n}(i=w(r,t),t),u=G(s=b(x((o=U(t.targets)).map(function(e){return l.map(function(t){return function(e,t){var n=j(e.target,t.name);if(n){var i,l=t.tweens.map(function(n){var l=function(e,t){var n={};for(var i in e){var l=I(e[i],t);p.arr(l)&&1===(l=l.map(function(e){return I(e,t)})).length&&(l=l[0]),n[i]=l}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}(n,e),a=l.value,r=p.arr(a)?a[1]:a,o=T(r),s=R(e.target,t.name,o,e),d=i?i.to.original:s,u=p.arr(a)?a[0]:d,c=T(u)||T(s),m=o||c;return p.und(r)&&(r=d),l.from=Z(u,m),l.to=Z(L(r,u),m),l.start=i?i.end:0,l.end=l.start+l.delay+l.duration+l.endDelay,l.easing=v(l.easing,l.duration),l.isPath=p.pth(a),l.isPathTargetInsideSVG=l.isPath&&p.svg(e.target),l.isColor=p.col(l.from.original),l.isColor&&(l.round=1),i=l,l}),a=l[l.length-1];return{type:n,property:t.name,animatable:e,tweens:l,duration:a.end,delay:l[0].delay,endDelay:a.endDelay}}}(e,t)})})),function(e){return!p.und(e)}),i),c=$,$++,A(n,{id:c,children:[],animatables:o,animations:s,duration:u.duration,delay:u.delay,endDelay:u.endDelay}));function C(){var e=E.direction;"alternate"!==e&&(E.direction="normal"!==e?"normal":"reverse"),E.reversed=!E.reversed,m.forEach(function(e){return e.reversed=E.reversed})}function D(e){return E.reversed?E.duration-e:e}function F(){_=0,g=D(E.currentTime)*(1/X.speed)}function z(e,t){t&&t.seek(e-t.timelineOffset)}function O(e){for(var t=0,n=E.animations,i=n.length;t<i;){var l=n[t],a=l.animatable,r=l.tweens,o=r.length-1,s=r[o];o&&(s=b(r,function(t){return e<t.end})[0]||s);for(var u=d(e-s.start-s.delay,0,s.duration)/s.duration,c=isNaN(u)?1:s.easing(u),p=s.to.strings,m=s.round,h=[],_=s.to.numbers.length,g=void 0,y=0;y<_;y++){var v=void 0,f=s.to.numbers[y],x=s.from.numbers[y]||0;v=s.isPath?function(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 l=B(e.el,e.svg),a=i(),r=i(-1),o=i(1),s=n?1:l.w/l.vW,d=n?1:l.h/l.vH;switch(e.property){case"x":return(a.x-l.x)*s;case"y":return(a.y-l.y)*d;case"angle":return 180*Math.atan2(o.y-r.y,o.x-r.x)/Math.PI}}(s.value,c*f,s.isPathTargetInsideSVG):x+c*(f-x),m&&!(s.isColor&&y>2)&&(v=Math.round(v*m)/m),h.push(v)}var k=p.length;if(k){g=p[0];for(var P=0;P<k;P++){p[P];var S=p[P+1],w=h[P];isNaN(w)||(S?g+=w+S:g+=w+" ")}}else g=h[0];H[l.type](a.target,l.property,g,a.transforms),l.currentValue=g,t++}}function M(e){E[e]&&!E.passThrough&&E[e](E)}function N(e){var t=E.duration,n=E.delay,i=t-E.endDelay,l=D(e);E.progress=d(l/t*100,0,100),E.reversePlayback=l<E.currentTime,m&&function(e){if(E.reversePlayback)for(var t=f;t--;)z(e,m[t]);else for(var n=0;n<f;n++)z(e,m[n])}(l),!E.began&&E.currentTime>0&&(E.began=!0,M("begin")),!E.loopBegan&&E.currentTime>0&&(E.loopBegan=!0,M("loopBegin")),l<=n&&0!==E.currentTime&&O(0),(l>=i&&E.currentTime!==t||!t)&&O(t),l>n&&l<i?(E.changeBegan||(E.changeBegan=!0,E.changeCompleted=!1,M("changeBegin")),M("change"),O(l)):E.changeBegan&&(E.changeCompleted=!0,E.changeBegan=!1,M("changeComplete")),E.currentTime=d(l,0,t),E.began&&M("update"),e>=t&&(g=0,E.remaining&&!0!==E.remaining&&E.remaining--,E.remaining?(_=y,M("loopComplete"),E.loopBegan=!1,"alternate"===E.direction&&C()):(E.paused=!0,!E.completed&&(E.completed=!0,M("loopComplete"),M("complete"),!E.passThrough&&"Promise"in window&&(k(),P(E)))))}return P(E),E.reset=function(){var e=E.direction;E.passThrough=!1,E.currentTime=0,E.progress=0,E.paused=!0,E.began=!1,E.loopBegan=!1,E.changeBegan=!1,E.completed=!1,E.changeCompleted=!1,E.reversePlayback=!1,E.reversed="reverse"===e,E.remaining=E.loop,f=(m=E.children).length;for(var t=f;t--;)E.children[t].reset();(E.reversed&&!0!==E.loop||"alternate"===e&&1===E.loop)&&E.remaining++,O(E.reversed?E.duration:0)},E._onDocumentVisibility=F,E.set=function(e,t){return V(e,t),E},E.tick=function(e){y=e,_||(_=y),N((y+(g-_))*X.speed)},E.seek=function(e){N(D(e))},E.pause=function(){E.paused=!0,F()},E.play=function(){E.paused&&(E.completed&&E.reset(),E.paused=!1,W.push(E),F(),q())},E.reverse=function(){C(),E.completed=!E.reversed,F()},E.restart=function(){E.reset(),E.play()},E.remove=function(e){J(K(e),E)},E.reset(),E.autoplay&&E.play(),E}function Q(e,t){for(var n=t.length;n--;)P(e,t[n].animatable.target)&&t.splice(n,1)}function J(e,t){var n=t.animations,i=t.children;Q(e,n);for(var l=i.length;l--;){var a=i[l],r=a.animations;Q(e,r),r.length||a.children.length||i.splice(l,1)}n.length||i.length||t.pause()}X.version="3.2.1",X.speed=1,X.suspendWhenDocumentHidden=!0,X.running=W,X.remove=function(e){for(var t=K(e),n=W.length;n--;)J(t,W[n])},X.get=R,X.set=V,X.convertPx=C,X.path=function(e,t){var n=p.str(e)?f(e)[0]:e,i=t||100;return function(e){return{property:e,el:n,svg:B(n),totalLength:N(n)*(i/100)}}},X.setDashoffset=function(e){var t=N(e);return e.setAttribute("stroke-dasharray",t),t},X.stagger=function(e,t){void 0===t&&(t={});var n=t.direction||"normal",i=t.easing?v(t.easing):null,l=t.grid,a=t.axis,r=t.from||0,o="first"===r,s="center"===r,d="last"===r,u=p.arr(e),c=u?parseFloat(e[0]):parseFloat(e),m=u?parseFloat(e[1]):0,h=T(u?e[1]:e)||0,_=t.start||0+(u?c:0),g=[],y=0;return function(e,t,p){if(o&&(r=0),s&&(r=(p-1)/2),d&&(r=p-1),!g.length){for(var v=0;v<p;v++){if(l){var f=s?(l[0]-1)/2:r%l[0],b=s?(l[1]-1)/2:Math.floor(r/l[0]),x=v%l[0],k=Math.floor(v/l[0]),P=f-x,S=b-k,w=Math.sqrt(P*P+S*S);"x"===a&&(w=-P),"y"===a&&(w=-S),g.push(w)}else g.push(Math.abs(r-v));y=Math.max.apply(Math,g)}i&&(g=g.map(function(e){return i(e/y)*y})),"reverse"===n&&(g=g.map(function(e){return a?e<0?-1*e:-e:Math.abs(y-e)}))}return _+(u?(m-c)/y:c)*(Math.round(100*g[t])/100)+h}},X.timeline=function(e){void 0===e&&(e={});var t=X(e);return t.duration=0,t.add=function(n,i){var l=W.indexOf(t),a=t.children;function o(e){e.passThrough=!0}l>-1&&W.splice(l,1);for(var s=0;s<a.length;s++)o(a[s]);var d=A(n,w(r,e));d.targets=d.targets||e.targets;var u=t.duration;d.autoplay=!1,d.direction=t.direction,d.timelineOffset=p.und(i)?u:L(i,u),o(t),t.seek(d.timelineOffset);var c=X(d);o(c),a.push(c);var m=G(a,e);return t.delay=m.delay,t.endDelay=m.endDelay,t.duration=m.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},X.easing=v,X.penner=y,X.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};let ee=X},294184:(e,t)=>{var n;/*!
2
+ Copyright (c) 2017 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */!function(){"use strict";var i={}.hasOwnProperty;function l(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)&&n.length){var r=l.apply(null,n);r&&e.push(r)}else if("object"===a)for(var o in n)i.call(n,o)&&n[o]&&e.push(o)}}return e.join(" ")}e.exports?(l.default=l,e.exports=l):void 0!==(n=(function(){return l}).apply(t,[]))&&(e.exports=n)}()},497621:(e,t,n)=>{"use strict";function i(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function l(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}n.d(t,{Z:()=>a});let a={p:l,P:function(e,t){var n,a=e.match(/(P+)(p+)?/),r=a[1],o=a[2];if(!o)return i(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",i(r,t)).replace("{{time}}",l(o,t))}}},924262:(e,t,n)=>{"use strict";function i(e){return e.getTime()%6e4}function l(e){var t=new Date(e.getTime()),n=Math.ceil(t.getTimezoneOffset());t.setSeconds(0,0);var l=n>0?(6e4+i(t))%6e4:i(t);return 6e4*n+l}n.d(t,{Z:()=>l})},333276:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(619013),l=n(666979),a=n(507032),r=n(13882);function o(e){(0,r.Z)(1,arguments);var t=(0,i.Z)(e);return Math.round(((0,l.Z)(t).getTime()-(function(e){(0,r.Z)(1,arguments);var t=(0,a.Z)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,l.Z)(n)})(t).getTime())/6048e5)+1}},507032:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(619013),l=n(666979),a=n(13882);function r(e){(0,a.Z)(1,arguments);var t=(0,i.Z)(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=(0,l.Z)(r),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var d=(0,l.Z)(s);return t.getTime()>=o.getTime()?n+1:t.getTime()>=d.getTime()?n:n-1}},505230:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(619013),l=n(159025),a=n(983946),r=n(107651),o=n(13882);function s(e,t){(0,o.Z)(1,arguments);var n=(0,i.Z)(e);return Math.round(((0,l.Z)(n,t).getTime()-(function(e,t){(0,o.Z)(1,arguments);var n=t||{},i=n.locale,s=i&&i.options&&i.options.firstWeekContainsDate,d=null==s?1:(0,a.Z)(s),u=null==n.firstWeekContainsDate?d:(0,a.Z)(n.firstWeekContainsDate),c=(0,r.Z)(e,t),p=new Date(0);return p.setUTCFullYear(c,0,u),p.setUTCHours(0,0,0,0),(0,l.Z)(p,t)})(n,t).getTime())/6048e5)+1}},107651:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(983946),l=n(619013),a=n(159025),r=n(13882);function o(e,t){(0,r.Z)(1,arguments);var n=(0,l.Z)(e,t),o=n.getUTCFullYear(),s=t||{},d=s.locale,u=d&&d.options&&d.options.firstWeekContainsDate,c=null==u?1:(0,i.Z)(u),p=null==s.firstWeekContainsDate?c:(0,i.Z)(s.firstWeekContainsDate);if(!(p>=1&&p<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(o+1,0,p),m.setUTCHours(0,0,0,0);var h=(0,a.Z)(m,t),_=new Date(0);_.setUTCFullYear(o,0,p),_.setUTCHours(0,0,0,0);var g=(0,a.Z)(_,t);return n.getTime()>=h.getTime()?o+1:n.getTime()>=g.getTime()?o:o-1}},5267:(e,t,n)=>{"use strict";n.d(t,{Do:()=>r,Iu:()=>a,qp:()=>o});var i=["D","DD"],l=["YY","YYYY"];function a(e){return -1!==i.indexOf(e)}function r(e){return -1!==l.indexOf(e)}function o(e,t,n){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}},13882:(e,t,n)=>{"use strict";function i(e,t){if(t.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:()=>i})},666979:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(619013),l=n(13882);function a(e){(0,l.Z)(1,arguments);var t=(0,i.Z)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((n<1?7:0)+n-1)),t.setUTCHours(0,0,0,0),t}},159025:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(983946),l=n(619013),a=n(13882);function r(e,t){(0,a.Z)(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,s=null==o?0:(0,i.Z)(o),d=null==n.weekStartsOn?s:(0,i.Z)(n.weekStartsOn);if(!(d>=0&&d<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=(0,l.Z)(e),c=u.getUTCDay();return u.setUTCDate(u.getUTCDate()-((c<d?7:0)+c-d)),u.setUTCHours(0,0,0,0),u}},983946:(e,t,n)=>{"use strict";function i(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{Z:()=>i})},51820:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(983946),l=n(619013),a=n(13882);function r(e,t){(0,a.Z)(2,arguments);var n=(0,l.Z)(e).getTime(),r=(0,i.Z)(t);return new Date(n+r)}},642298:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I});var i=n(112274),l=n(983975),a=n(491218),r=n(619013);function o(e,t){for(var n=Math.abs(e).toString();n.length<t;)n="0"+n;return(e<0?"-":"")+n}let s={y:function(e,t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return o("yy"===t?i%100:i,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):o(n+1,2)},d:function(e,t){return o(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.toUpperCase();case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return o(e.getUTCHours()%12||12,t.length)},H:function(e,t){return o(e.getUTCHours(),t.length)},m:function(e,t){return o(e.getUTCMinutes(),t.length)},s:function(e,t){return o(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length;return o(Math.floor(e.getUTCMilliseconds()*Math.pow(10,n-3)),t.length)}};var d=n(13882),u=n(333276),c=n(507032),p=n(505230),m=n(107651),h={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function _(e,t){var n=e>0?"-":"+",i=Math.abs(e),l=Math.floor(i/60),a=i%60;return 0===a?n+String(l):n+String(l)+(t||"")+o(a,2)}function g(e,t){return e%60==0?(e>0?"-":"+")+o(Math.abs(e)/60,2):y(e,t)}function y(e,t){var n=e>0?"-":"+",i=Math.abs(e);return n+o(Math.floor(i/60),2)+(t||"")+o(i%60,2)}let v={G:function(e,t,n){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var i=e.getUTCFullYear(),l=i>0?i:1-i;return n.ordinalNumber(l,{unit:"year"})}return s.y(e,t)},Y:function(e,t,n,i){var l=(0,m.Z)(e,i),a=l>0?l:1-l;return"YY"===t?o(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):o(a,t.length)},R:function(e,t){return o((0,c.Z)(e),t.length)},u:function(e,t){return o(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return o(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return o(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){var i=e.getUTCMonth();switch(t){case"M":case"MM":return s.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return o(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){var l=(0,p.Z)(e,i);return"wo"===t?n.ordinalNumber(l,{unit:"week"}):o(l,t.length)},I:function(e,t,n){var i=(0,u.Z)(e);return"Io"===t?n.ordinalNumber(i,{unit:"week"}):o(i,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):s.d(e,t)},D:function(e,t,n){var i=function(e){(0,d.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((n-t.getTime())/864e5)+1}(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):o(i,t.length)},E:function(e,t,n){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){var l=e.getUTCDay(),a=(l-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return o(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(l,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(l,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(l,{width:"short",context:"formatting"});default:return n.day(l,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){var l=e.getUTCDay(),a=(l-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return o(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(l,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(l,{width:"narrow",context:"standalone"});case"cccccc":return n.day(l,{width:"short",context:"standalone"});default:return n.day(l,{width:"wide",context:"standalone"})}},i:function(e,t,n){var i=e.getUTCDay(),l=0===i?7:i;switch(t){case"i":return String(l);case"ii":return o(l,t.length);case"io":return n.ordinalNumber(l,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){var i=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){var i,l=e.getUTCHours();switch(i=12===l?h.noon:0===l?h.midnight:l/12>=1?"pm":"am",t){case"b":case"bb":case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){var i,l=e.getUTCHours();switch(i=l>=17?h.evening:l>=12?h.afternoon:l>=4?h.morning:h.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var i=e.getUTCHours()%12;return 0===i&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return s.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):s.H(e,t)},K:function(e,t,n){var i=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(i,{unit:"hour"}):o(i,t.length)},k:function(e,t,n){var i=e.getUTCHours();return(0===i&&(i=24),"ko"===t)?n.ordinalNumber(i,{unit:"hour"}):o(i,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):s.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):s.s(e,t)},S:function(e,t){return s.S(e,t)},X:function(e,t,n,i){var l=(i._originalDate||e).getTimezoneOffset();if(0===l)return"Z";switch(t){case"X":return g(l);case"XXXX":case"XX":return y(l);default:return y(l,":")}},x:function(e,t,n,i){var l=(i._originalDate||e).getTimezoneOffset();switch(t){case"x":return g(l);case"xxxx":case"xx":return y(l);default:return y(l,":")}},O:function(e,t,n,i){var l=(i._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+_(l,":");default:return"GMT"+y(l,":")}},z:function(e,t,n,i){var l=(i._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+_(l,":");default:return"GMT"+y(l,":")}},t:function(e,t,n,i){return o(Math.floor((i._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,i){return o((i._originalDate||e).getTime(),t.length)}};var f=n(497621),b=n(924262),x=n(5267),k=n(983946),P=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,S=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,w=/^'([^]*?)'?$/,A=/''/g,T=/[a-zA-Z]/;function I(e,t,n){(0,d.Z)(2,arguments);var o=String(t),s=n||{},u=s.locale||l.default,c=u.options&&u.options.firstWeekContainsDate,p=null==c?1:(0,k.Z)(c),m=null==s.firstWeekContainsDate?p:(0,k.Z)(s.firstWeekContainsDate);if(!(m>=1&&m<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=u.options&&u.options.weekStartsOn,_=null==h?0:(0,k.Z)(h),g=null==s.weekStartsOn?_:(0,k.Z)(s.weekStartsOn);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!u.localize)throw RangeError("locale must contain localize property");if(!u.formatLong)throw RangeError("locale must contain formatLong property");var y=(0,r.Z)(e);if(!(0,i.Z)(y))throw RangeError("Invalid time value");var I=(0,b.Z)(y),E=(0,a.Z)(y,I),C={firstWeekContainsDate:m,weekStartsOn:g,locale:u,_originalDate:y};return o.match(S).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,f.Z[t])(e,u.formatLong,C):e}).join("").match(P).map(function(n){if("''"===n)return"'";var i=n[0];if("'"===i)return n.match(w)[1].replace(A,"'");var l=v[i];if(l)return!s.useAdditionalWeekYearTokens&&(0,x.Do)(n)&&(0,x.qp)(n,t,e),!s.useAdditionalDayOfYearTokens&&(0,x.Iu)(n)&&(0,x.qp)(n,t,e),l(E,n,u.localize,C);if(i.match(T))throw RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n}).join("")}},112274:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(619013),l=n(13882);function a(e){return(0,l.Z)(1,arguments),!isNaN((0,i.Z)(e))}},849526:(e,t,n)=>{"use strict";function i(e){return function(t){var n=t||{},i=n.width?String(n.width):e.defaultWidth;return e.formats[i]||e.formats[e.defaultWidth]}}n.d(t,{Z:()=>i})},688486:(e,t,n)=>{"use strict";function i(e){return function(t,n){var i,l=n||{};if("formatting"===(l.context?String(l.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,r=l.width?String(l.width):a;i=e.formattingValues[r]||e.formattingValues[a]}else{var o=e.defaultWidth,s=l.width?String(l.width):e.defaultWidth;i=e.values[s]||e.values[o]}return i[e.argumentCallback?e.argumentCallback(t):t]}}n.d(t,{Z:()=>i})},276723:(e,t,n)=>{"use strict";function i(e){return function(t,n){var i,l=String(t),a=n||{},r=a.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=l.match(o);if(!s)return null;var d=s[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth];return i="[object Array]"===Object.prototype.toString.call(u)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(u,function(e){return e.test(d)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(u,function(e){return e.test(d)}),i=e.valueCallback?e.valueCallback(i):i,{value:i=a.valueCallback?a.valueCallback(i):i,rest:l.slice(d.length)}}}n.d(t,{Z:()=>i})},360974:(e,t,n)=>{"use strict";function i(e){return function(t,n){var i=String(t),l=n||{},a=i.match(e.matchPattern);if(!a)return null;var r=a[0],o=i.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:s=l.valueCallback?l.valueCallback(s):s,rest:i.slice(r.length)}}}n.d(t,{Z:()=>i})},181991:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function l(e,t,n){var l;return(n=n||{},l="string"==typeof i[e]?i[e]:1===t?i[e].one:i[e].other.replace("{{count}}",t),n.addSuffix)?n.comparison>0?"in "+l:l+" ago":l}},721865:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e,t,n,l){return i[e]}},611950:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(688486),l={ordinalNumber:function(e,t){var n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,i.Z)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,i.Z)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,i.Z)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,i.Z)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,i.Z)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};let a=l},507219:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(360974),l=n(276723),a={ordinalNumber:(0,i.Z)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,l.Z)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,l.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,l.Z)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,l.Z)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,l.Z)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};let r=a},983975:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(181991),l=n(849526),a={date:(0,l.Z)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,l.Z)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,l.Z)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},r=n(721865),o=n(611950),s=n(507219),d={code:"en-US",formatDistance:i.Z,formatLong:a,formatRelative:r.Z,localize:o.Z,match:s.Z,options:{weekStartsOn:0,firstWeekContainsDate:1}};let u=d},491218:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(983946),l=n(51820),a=n(13882);function r(e,t){(0,a.Z)(2,arguments);var n=(0,i.Z)(t);return(0,l.Z)(e,-n)}},619013:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(13882);function l(e){(0,i.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(Error().stack)),new Date(NaN))}},782677:(e,t,n)=>{"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function o(e){return!!(e&&"function"==typeof e.hasOwnProperty&&(e.hasOwnProperty("__ownerID")||e._map&&e._map.hasOwnProperty("__ownerID")))}function s(e,t,n){return Object.keys(e).reduce(function(t,i){var l=""+i;return t.has(l)?t.set(l,n(t.get(l),e[l])):t},t)}n.d(t,{Fv:()=>f,fK:()=>v});var d=function(){function e(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),!e||"string"!=typeof e)throw Error("Expected a string key for Entity, but found "+e+".");var i=n,l=i.idAttribute,r=void 0===l?"id":l,s=i.mergeStrategy,d=void 0===s?function(e,t){return a({},e,t)}:s,u=i.processStrategy,c=void 0===u?function(e){return a({},e)}:u,p=i.fallbackStrategy;this._key=e,this._getId="function"==typeof r?r:function(e){return o(e)?e.get(r):e[r]},this._idAttribute=r,this._mergeStrategy=d,this._processStrategy=c,this._fallbackStrategy=void 0===p?function(e,t){}:p,this.define(t)}var t=e.prototype;return t.define=function(e){this.schema=Object.keys(e).reduce(function(t,n){var i,l=e[n];return a({},t,((i={})[n]=l,i))},this.schema||{})},t.getId=function(e,t,n){return this._getId(e,t,n)},t.merge=function(e,t){return this._mergeStrategy(e,t)},t.fallback=function(e,t){return this._fallbackStrategy(e,t)},t.normalize=function(e,t,n,i,l,a){var r=this,o=this.getId(e,t,n),s=this.key;if(s in a||(a[s]={}),o in a[s]||(a[s][o]=[]),a[s][o].some(function(t){return t===e}))return o;a[s][o].push(e);var d=this._processStrategy(e,t,n);return Object.keys(this.schema).forEach(function(t){if(d.hasOwnProperty(t)&&"object"==typeof d[t]){var n=r.schema[t],o="function"==typeof n?n(e):n;d[t]=i(d[t],d,t,o,l,a)}}),l(this,d,e,t,n),o},t.denormalize=function(e,t){var n=this;return o(e)?s(this.schema,e,t):(Object.keys(this.schema).forEach(function(i){if(e.hasOwnProperty(i)){var l=n.schema[i];e[i]=t(e[i],l)}}),e)},l(e,[{key:"key",get:function(){return this._key}},{key:"idAttribute",get:function(){return this._idAttribute}}]),e}(),u=function(){function e(e,t){t&&(this._schemaAttribute="string"==typeof t?function(e){return e[t]}:t),this.define(e)}var t=e.prototype;return t.define=function(e){this.schema=e},t.getSchemaAttribute=function(e,t,n){return!this.isSingleSchema&&this._schemaAttribute(e,t,n)},t.inferSchema=function(e,t,n){if(this.isSingleSchema)return this.schema;var i=this.getSchemaAttribute(e,t,n);return this.schema[i]},t.normalizeValue=function(e,t,n,i,l,a){var r=this.inferSchema(e,t,n);if(!r)return e;var o=i(e,t,n,r,l,a);return this.isSingleSchema||null==o?o:{id:o,schema:this.getSchemaAttribute(e,t,n)}},t.denormalizeValue=function(e,t){var n=o(e)?e.get("schema"):e.schema;return this.isSingleSchema||n?t((this.isSingleSchema?void 0:o(e)?e.get("id"):e.id)||e,this.isSingleSchema?this.schema:this.schema[n]):e},l(e,[{key:"isSingleSchema",get:function(){return!this._schemaAttribute}}]),e}(),c=function(e){function t(t,n){if(!n)throw Error('Expected option "schemaAttribute" not found on UnionSchema.');return e.call(this,t,n)||this}r(t,e);var n=t.prototype;return n.normalize=function(e,t,n,i,l,a){return this.normalizeValue(e,t,n,i,l,a)},n.denormalize=function(e,t){return this.denormalizeValue(e,t)},t}(u),p=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.normalize=function(e,t,n,i,l,r){var o=this;return Object.keys(e).reduce(function(t,n,s){var d,u=e[n];return null!=u?a({},t,((d={})[n]=o.normalizeValue(u,e,n,i,l,r),d)):t},{})},n.denormalize=function(e,t){var n=this;return Object.keys(e).reduce(function(i,l){var r,o=e[l];return a({},i,((r={})[l]=n.denormalizeValue(o,t),r))},{})},t}(u),m=function(e){if(Array.isArray(e)&&e.length>1)throw Error("Expected schema definition to be a single schema, but found "+e.length+".");return e[0]},h=function(e){return Array.isArray(e)?e:Object.keys(e).map(function(t){return e[t]})},_=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.normalize=function(e,t,n,i,l,a){var r=this;return h(e).map(function(e,o){return r.normalizeValue(e,t,n,i,l,a)}).filter(function(e){return null!=e})},n.denormalize=function(e,t){var n=this;return e&&e.map?e.map(function(e){return n.denormalizeValue(e,t)}):e},t}(u),g=function(e,t,n,i,l,r,o){var s=a({},t);return Object.keys(e).forEach(function(n){var i=e[n],a="function"==typeof i?i(t):i,d=l(t[n],t,n,a,r,o);null==d?delete s[n]:s[n]=d}),s},y=function(e,t,n){if(o(t))return s(e,t,n);var i=a({},t);return Object.keys(e).forEach(function(t){null!=i[t]&&(i[t]=n(i[t],e[t]))}),i},v={Array:_,Entity:d,Object:function(){function e(e){this.define(e)}var t=e.prototype;return t.define=function(e){this.schema=Object.keys(e).reduce(function(t,n){var i,l=e[n];return a({},t,((i={})[n]=l,i))},this.schema||{})},t.normalize=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return g.apply(void 0,[this.schema].concat(t))},t.denormalize=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.apply(void 0,[this.schema].concat(t))},e}(),Union:c,Values:p},f=function(e,t){if(!e||"object"!=typeof e)throw Error('Unexpected input given to normalize. Expected type to be "object", found "'+(null===e?"null":typeof e)+'".');var n={};return{entities:n,result:function e(t,n,i,l,a,r){return"object"==typeof t&&t?"object"!=typeof l||l.normalize&&"function"==typeof l.normalize?l.normalize(t,n,i,e,a,r):(Array.isArray(l)?function(e,t,n,i,l,a,r){return e=m(e),h(t).map(function(t,o){return l(t,n,i,e,a,r)})}:g)(l,t,n,i,e,a,r):t}(e,e,null,t,function(e,t,i,l,a){var r=e.key,o=e.getId(i,l,a);r in n||(n[r]={});var s=n[r][o];s?n[r][o]=e.merge(s,t):n[r][o]=t},{})}}},762587:e=>{"use strict";e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var l={};if("string"!=typeof e||0===e.length)return l;var a=/\+/g;e=e.split(t);var r=1e3;i&&"number"==typeof i.maxKeys&&(r=i.maxKeys);var o=e.length;r>0&&o>r&&(o=r);for(var s=0;s<o;++s){var d,u,c,p,m=e[s].replace(a,"%20"),h=m.indexOf(n);(h>=0?(d=m.substr(0,h),u=m.substr(h+1)):(d=m,u=""),c=decodeURIComponent(d),p=decodeURIComponent(u),Object.prototype.hasOwnProperty.call(l,c))?Array.isArray(l[c])?l[c].push(p):l[c]=[l[c],p]:l[c]=p}return l}},712361:e=>{"use strict";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,l){return(n=n||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e)?Object.keys(e).map(function(l){var a=encodeURIComponent(t(l))+i;return Array.isArray(e[l])?e[l].map(function(e){return a+encodeURIComponent(t(e))}).join(n):a+encodeURIComponent(t(e[l]))}).join(n):l?encodeURIComponent(t(l))+i+encodeURIComponent(t(e)):""}},817673:(e,t,n)=>{"use strict";t.decode=t.parse=n(762587),t.encode=t.stringify=n(712361)},201342:(e,t,n)=>{"use strict";n.d(t,{tn:()=>et,lr:()=>Q});var i,l,a,r,o,s,d,u,c,p,m,h,_,g,y=n(667294),v=n.t(y,2);/**
6
+ * @remix-run/router v1.5.0
7
+ *
8
+ * Copyright (c) Remix Software Inc.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE.md file in the root directory of this source tree.
12
+ *
13
+ * @license MIT
14
+ */function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function b(e,t){if(!1===e||null==e)throw Error(t)}function x(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function k(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}(i=u||(u={})).Pop="POP",i.Push="PUSH",i.Replace="REPLACE",(l=c||(c={})).data="data",l.deferred="deferred",l.redirect="redirect",l.error="error";let P=/^:\w+$/,S=e=>"*"===e;function w(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&"/"!==i?null:e.slice(n)||"/"}function A(e,t,n,i){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t)+"` field ["+JSON.stringify(i)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}let T=e=>e.join("/").replace(/\/\/+/g,"/"),I=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),E=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",C=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,Symbol("deferred");let{useState:D,useEffect:j,useLayoutEffect:F,useDebugValue:R}=v;"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,v.useSyncExternalStore;let L=y.createContext(null),z=y.createContext(null),O=y.createContext(null),M=y.createContext(null),N=y.createContext({outlet:null,matches:[]}),B=y.createContext(null);function Z(){return(Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function K(){return null!=y.useContext(M)}function U(){return K()||b(!1),y.useContext(M).location}function H(){let e=function(){var e;let t,n,i;let l=y.useContext(B),a=(m.UseRouteError,(t=y.useContext(z))||b(!1),t),r=(m.UseRouteError,(i=((n=y.useContext(N))||b(!1),n).matches[n.matches.length-1]).route.id||b(!1),i.route.id);return l||(null==(e=a.errors)?void 0:e[r])}(),t=null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},n):null,null)}class V extends y.Component{constructor(e){super(e),this.state={location:e.location,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error,location:e.location}:{error:e.error||t.error,location:t.location}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?y.createElement(N.Provider,{value:this.props.routeContext},y.createElement(B.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function G(e){let{routeContext:t,match:n,children:i}=e,l=y.useContext(L);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(N.Provider,{value:t},i)}function $(e){b(!1)}function W(e){let{basename:t="/",children:n=null,location:i,navigationType:l=u.Pop,navigator:a,static:r=!1}=e;K()&&b(!1);let o=t.replace(/^\/*/,"/"),s=y.useMemo(()=>({basename:o,navigator:a,static:r}),[o,a,r]);"string"==typeof i&&(i=k(i));let{pathname:d="/",search:c="",hash:p="",state:m=null,key:h="default"}=i,_=y.useMemo(()=>{let e=w(d,o);return null==e?null:{location:{pathname:e,search:c,hash:p,state:m,key:h},navigationType:l}},[o,d,c,p,m,h,l]);return null==_?null:y.createElement(O.Provider,{value:s},y.createElement(M.Provider,{children:n,value:_}))}function q(e){let{children:t,location:n}=e,i=y.useContext(L);return function(e,t){let n;K()||b(!1);let{navigator:i}=y.useContext(O),l=y.useContext(z),{matches:a}=y.useContext(N),r=a[a.length-1],o=r?r.params:{};r&&r.pathname;let s=r?r.pathnameBase:"/";r&&r.route;let d=U();if(t){var c;let e="string"==typeof t?k(t):t;"/"===s||(null==(c=e.pathname)?void 0:c.startsWith(s))||b(!1),n=e}else n=d;let p=n.pathname||"/",m=function(e,t,n){void 0===n&&(n="/");let i=w(("string"==typeof t?k(t):t).pathname||"/",n);if(null==i)return null;let l=function e(t,n,i,l){void 0===n&&(n=[]),void 0===i&&(i=[]),void 0===l&&(l="");let a=(t,a,r)=>{let o={relativePath:void 0===r?t.path||"":r,caseSensitive:!0===t.caseSensitive,childrenIndex:a,route:t};o.relativePath.startsWith("/")&&(b(o.relativePath.startsWith(l),'Absolute route path "'+o.relativePath+'" nested under path "'+l+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(l.length));let s=T([l,o.relativePath]),d=i.concat(o);if(t.children&&t.children.length>0&&(b(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),e(t.children,n,d,s)),null!=t.path||t.index){var u;let e,i;n.push({path:s,score:(u=t.index,i=(e=s.split("/")).length,e.some(S)&&(i+=-2),u&&(i+=2),e.filter(e=>!S(e)).reduce((e,t)=>e+(P.test(t)?3:""===t?1:10),i)),routesMeta:d})}};return t.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of function e(t){let n=t.split("/");if(0===n.length)return[];let[i,...l]=n,a=i.endsWith("?"),r=i.replace(/\?$/,"");if(0===l.length)return a?[r,""]:[r];let o=e(l.join("/")),s=[];return s.push(...o.map(e=>""===e?r:[r,e].join("/"))),a&&s.push(...o),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))a(e,t,n);else a(e,t)}),n}(e);!function(e){e.sort((e,t)=>{var n,i;return e.score!==t.score?t.score-e.score:(n=e.routesMeta.map(e=>e.childrenIndex),i=t.routesMeta.map(e=>e.childrenIndex),n.length===i.length&&n.slice(0,-1).every((e,t)=>e===i[t])?n[n.length-1]-i[i.length-1]:0)})}(l);let a=null;for(let e=0;null==a&&e<l.length;++e)a=function(e,t){let{routesMeta:n}=e,i={},l="/",a=[];for(let e=0;e<n.length;++e){let r=n[e],o=e===n.length-1,s="/"===l?t:t.slice(l.length)||"/",d=function(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,i]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),x("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let i=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(e,t)=>(i.push(t),"/([^\\/]+)"));return e.endsWith("*")?(i.push("*"),l+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":""!==e&&"/"!==e&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),i]}(e.path,e.caseSensitive,e.end),l=t.match(n);if(!l)return null;let a=l[0],r=a.replace(/(.)\/+$/,"$1"),o=l.slice(1);return{params:i.reduce((e,t,n)=>{if("*"===t){let e=o[n]||"";r=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return x(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(o[n]||"",t),e},{}),pathname:a,pathnameBase:r,pattern:e}}({path:r.relativePath,caseSensitive:r.caseSensitive,end:o},s);if(!d)return null;Object.assign(i,d.params);let u=r.route;a.push({params:i,pathname:T([l,d.pathname]),pathnameBase:I(T([l,d.pathnameBase])),route:u}),"/"!==d.pathnameBase&&(l=T([l,d.pathnameBase]))}return a}(l[e],function(e){try{return decodeURI(e)}catch(t){return x(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}(i));return a}(e,{pathname:"/"===s?p:p.slice(s.length)||"/"}),h=function(e,t,n){if(void 0===t&&(t=[]),null==e){if(null==n||!n.errors)return null;e=n.matches}let i=e,l=null==n?void 0:n.errors;if(null!=l){let e=i.findIndex(e=>e.route.id&&(null==l?void 0:l[e.route.id]));e>=0||b(!1),i=i.slice(0,Math.min(i.length,e+1))}return i.reduceRight((e,a,r)=>{let o=a.route.id?null==l?void 0:l[a.route.id]:null,s=null;n&&(s=a.route.ErrorBoundary?y.createElement(a.route.ErrorBoundary,null):a.route.errorElement?a.route.errorElement:y.createElement(H,null));let d=t.concat(i.slice(0,r+1)),u=()=>{let t=e;return o?t=s:a.route.Component?t=y.createElement(a.route.Component,null):a.route.element&&(t=a.route.element),y.createElement(G,{match:a,routeContext:{outlet:e,matches:d},children:t})};return n&&(a.route.ErrorBoundary||a.route.errorElement||0===r)?y.createElement(V,{location:n.location,component:s,error:o,children:u(),routeContext:{outlet:null,matches:d}}):u()},null)}(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:T([s,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?s:T([s,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),a,l||void 0);return t&&h?y.createElement(M.Provider,{value:{location:Z({pathname:"/",search:"",hash:"",state:null,key:"default"},n),navigationType:u.Pop}},h):h}(i&&!t?i.router.routes:function e(t,n){void 0===n&&(n=[]);let i=[];return y.Children.forEach(t,(t,l)=>{if(!y.isValidElement(t))return;let a=[...n,l];if(t.type===y.Fragment){i.push.apply(i,e(t.props.children,a));return}t.type!==$&&b(!1),t.props.index&&t.props.children&&b(!1);let r={id:t.props.id||a.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(r.children=e(t.props.children,a)),i.push(r)}),i}(t),n)}(a=p||(p={})).UseBlocker="useBlocker",a.UseRevalidator="useRevalidator",(r=m||(m={})).UseBlocker="useBlocker",r.UseLoaderData="useLoaderData",r.UseActionData="useActionData",r.UseRouteError="useRouteError",r.UseNavigation="useNavigation",r.UseRouteLoaderData="useRouteLoaderData",r.UseMatches="useMatches",r.UseRevalidator="useRevalidator",(o=h||(h={}))[o.pending=0]="pending",o[o.success=1]="success",o[o.error=2]="error",new Promise(()=>{});var Y=n(616550);function X(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let i=e[n];return t.concat(Array.isArray(i)?i.map(e=>[n,e]):[[n,i]])},[]))}function Q(e){let t=y.useRef(X(e)),n=y.useRef(!1),i=U(),l=y.useMemo(()=>(function(e,t){let n=X(e);if(t)for(let e of t.keys())n.has(e)||t.getAll(e).forEach(t=>{n.append(e,t)});return n})(i.search,n.current?null:t.current),[i.search]),a=function(){K()||b(!1);let{basename:e,navigator:t}=y.useContext(O),{matches:n}=y.useContext(N),{pathname:i}=U(),l=JSON.stringify(n.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0).map(e=>e.pathnameBase)),a=y.useRef(!1);return y.useEffect(()=>{a.current=!0}),y.useCallback(function(n,r){if(void 0===r&&(r={}),!a.current)return;if("number"==typeof n){t.go(n);return}let o=function(e,t,n,i){let l,a;void 0===i&&(i=!1),"string"==typeof e?l=k(e):(b(!(l=f({},e)).pathname||!l.pathname.includes("?"),A("?","pathname","search",l)),b(!l.pathname||!l.pathname.includes("#"),A("#","pathname","hash",l)),b(!l.search||!l.search.includes("#"),A("#","search","hash",l)));let r=""===e||""===l.pathname,o=r?"/":l.pathname;if(i||null==o)a=n;else{let e=t.length-1;if(o.startsWith("..")){let t=o.split("/");for(;".."===t[0];)t.shift(),e-=1;l.pathname=t.join("/")}a=e>=0?t[e]:"/"}let s=function(e,t){let n;void 0===t&&(t="/");let{pathname:i,search:l="",hash:a=""}="string"==typeof e?k(e):e;return{pathname:i?i.startsWith("/")?i:(n=t.replace(/\/+$/,"").split("/"),i.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"):t,search:E(l),hash:C(a)}}(l,a),d=o&&"/"!==o&&o.endsWith("/"),u=(r||"."===o)&&n.endsWith("/");return!s.pathname.endsWith("/")&&(d||u)&&(s.pathname+="/"),s}(n,JSON.parse(l),i,"path"===r.relative);"/"!==e&&(o.pathname="/"===o.pathname?e:T([e,o.pathname])),(r.replace?t.replace:t.push)(o,r.state,r)},[e,t,l,i])}(),r=y.useCallback((e,t)=>{let i=X("function"==typeof e?e(l):e);n.current=!0,a("?"+i,t)},[a,l]);return[l,r]}"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(s=_||(_={})).UseScrollRestoration="useScrollRestoration",s.UseSubmitImpl="useSubmitImpl",s.UseFetcher="useFetcher",(d=g||(g={})).UseFetchers="useFetchers",d.UseScrollRestoration="useScrollRestoration";let J=!!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),ee=J?y.useLayoutEffect:()=>{};function et(e){let{children:t}=e,n=(0,Y.useHistory)(),[i,l]=y.useState(()=>({location:n.location,action:n.action}));return ee(()=>{n.listen((e,t)=>l({location:e,action:t}))},[n]),y.createElement(W,{navigationType:i.action,location:i.location,navigator:n},y.createElement(q,null,y.createElement($,{path:"*",element:t})))}},442279:(e,t)=>{"use strict";function n(e,t){return e===t}t.P1=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return function(){for(var t=arguments.length,i=Array(t),l=0;l<t;l++)i[l]=arguments[l];var a=0,r=i.pop(),o=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e}))throw Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+t.map(function(e){return typeof e}).join(", ")+"]");return t}(i),s=e.apply(void 0,[function(){return a++,r.apply(void 0,arguments)}].concat(n)),d=function(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),l=2;l<n;l++)i[l-2]=arguments[l];var a=o.map(function(n){return n.apply(void 0,[e,t].concat(i))});return s.apply(void 0,function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}(a))};return d.resultFunc=r,d.recomputations=function(){return a},d.resetRecomputations=function(){return a=0},d}}(function(e){var t=arguments.length<=1||void 0===arguments[1]?n:arguments[1],i=null,l=null;return function(){for(var n=arguments.length,a=Array(n),r=0;r<n;r++)a[r]=arguments[r];return null!==i&&i.length===a.length&&a.every(function(e,n){return t(e,i[n])})||(l=e.apply(void 0,a)),i=a,l}})},560053:(e,t)=>{"use strict";/**
15
+ * @license React
16
+ * scheduler.production.min.js
17
+ *
18
+ * Copyright (c) Facebook, Inc. and its affiliates.
19
+ *
20
+ * This source code is licensed under the MIT license found in the
21
+ * LICENSE file in the root directory of this source tree.
22
+ */function n(e,t){var n=e.length;for(e.push(t);0<n;){var i=n-1>>>1,l=e[i];if(0<a(l,t))e[i]=t,e[n]=l,n=i;else break}}function i(e){return 0===e.length?null:e[0]}function l(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;for(var i=0,l=e.length,r=l>>>1;i<r;){var o=2*(i+1)-1,s=e[o],d=o+1,u=e[d];if(0>a(s,n))d<l&&0>a(u,s)?(e[i]=u,e[d]=n,i=d):(e[i]=s,e[o]=n,i=o);else if(d<l&&0>a(u,n))e[i]=u,e[d]=n,i=d;else break}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var r,o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,d=s.now();t.unstable_now=function(){return s.now()-d}}var u=[],c=[],p=1,m=null,h=3,_=!1,g=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,f="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=i(c);null!==t;){if(null===t.callback)l(c);else if(t.startTime<=e)l(c),t.sortIndex=t.expirationTime,n(u,t);else break;t=i(c)}}function k(e){if(y=!1,x(e),!g){if(null!==i(u))g=!0,F(P);else{var t=i(c);null!==t&&R(k,t.startTime-e)}}}function P(e,n){g=!1,y&&(y=!1,f(A),A=-1),_=!0;var a=h;try{for(x(n),m=i(u);null!==m&&(!(m.expirationTime>n)||e&&!E());){var r=m.callback;if("function"==typeof r){m.callback=null,h=m.priorityLevel;var o=r(m.expirationTime<=n);n=t.unstable_now(),"function"==typeof o?m.callback=o:m===i(u)&&l(u),x(n)}else l(u);m=i(u)}if(null!==m)var s=!0;else{var d=i(c);null!==d&&R(k,d.startTime-n),s=!1}return s}finally{m=null,h=a,_=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S=!1,w=null,A=-1,T=5,I=-1;function E(){return!(t.unstable_now()-I<T)}function C(){if(null!==w){var e=t.unstable_now();I=e;var n=!0;try{n=w(!0,e)}finally{n?r():(S=!1,w=null)}}else S=!1}if("function"==typeof b)r=function(){b(C)};else if("undefined"!=typeof MessageChannel){var D=new MessageChannel,j=D.port2;D.port1.onmessage=C,r=function(){j.postMessage(null)}}else r=function(){v(C,0)};function F(e){w=e,S||(S=!0,r())}function R(e,n){A=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||_||(g=!0,F(P))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return i(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,l,a){var r=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?r+a:r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=a+o,e={id:p++,callback:l,priorityLevel:e,startTime:a,expirationTime:o,sortIndex:-1},a>r?(e.sortIndex=a,n(c,e),null===i(u)&&e===i(c)&&(y?(f(A),A=-1):y=!0,R(k,a-r))):(e.sortIndex=o,n(u,e),g||_||(g=!0,F(P))),e},t.unstable_shouldYield=E,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},363840:(e,t,n)=>{"use strict";e.exports=n(560053)},52511:function(e,t,n){var i;e=n.nmd(e),function(l){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof n.g&&n.g;a.global===a||a.window===a||a.self;var r,o=/^xn--/,s=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,u={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=Math.floor,p=String.fromCharCode;function m(e){throw RangeError(u[e])}function h(e,t){for(var n=e.length,i=[];n--;)i[n]=t(e[n]);return i}function _(e,t){var n=e.split("@"),i="";return n.length>1&&(i=n[0]+"@",e=n[1]),i+h((e=e.replace(d,".")).split("."),t).join(".")}function g(e){for(var t,n,i=[],l=0,a=e.length;l<a;)(t=e.charCodeAt(l++))>=55296&&t<=56319&&l<a?(64512&(n=e.charCodeAt(l++)))==56320?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),l--):i.push(t);return i}function y(e){return h(e,function(e){var t="";return e>65535&&(e-=65536,t+=p(e>>>10&1023|55296),e=56320|1023&e),t+=p(e)}).join("")}function v(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function f(e,t,n){var i=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;i+=36)e=c(e/35);return c(i+36*e/(e+38))}function b(e){var t,n,i,l,a,r,o,s,d,u,p,h=[],_=e.length,g=0,v=128,b=72;for((i=e.lastIndexOf("-"))<0&&(i=0),l=0;l<i;++l)e.charCodeAt(l)>=128&&m("not-basic"),h.push(e.charCodeAt(l));for(a=i>0?i+1:0;a<_;){for(r=g,o=1,s=36;a>=_&&m("invalid-input"),((d=(t=e.charCodeAt(a++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:36)>=36||d>c((2147483647-g)/o))&&m("overflow"),g+=d*o,!(d<(u=s<=b?1:s>=b+26?26:s-b));s+=36)o>c(2147483647/(p=36-u))&&m("overflow"),o*=p;b=f(g-r,n=h.length+1,0==r),c(g/n)>2147483647-v&&m("overflow"),v+=c(g/n),g%=n,h.splice(g++,0,v)}return y(h)}function x(e){var t,n,i,l,a,r,o,s,d,u,h,_,y,b,x,k=[];for(r=0,_=(e=g(e)).length,t=128,n=0,a=72;r<_;++r)(h=e[r])<128&&k.push(p(h));for(i=l=k.length,l&&k.push("-");i<_;){for(o=2147483647,r=0;r<_;++r)(h=e[r])>=t&&h<o&&(o=h);for(o-t>c((2147483647-n)/(y=i+1))&&m("overflow"),n+=(o-t)*y,t=o,r=0;r<_;++r)if((h=e[r])<t&&++n>2147483647&&m("overflow"),h==t){for(s=n,d=36;!(s<(u=d<=a?1:d>=a+26?26:d-a));d+=36)x=s-u,b=36-u,k.push(p(v(u+x%b,0))),s=c(x/b);k.push(p(v(s,0))),a=f(n,y,i==l),n=0,++i}++n,++t}return k.join("")}r={version:"1.3.2",ucs2:{decode:g,encode:y},decode:b,encode:x,toASCII:function(e){return _(e,function(e){return s.test(e)?"xn--"+x(e):e})},toUnicode:function(e){return _(e,function(e){return o.test(e)?b(e.slice(4).toLowerCase()):e})}},void 0!==(i=(function(){return r}).call(t,n,t,e))&&(e.exports=i)}(0)},608575:(e,t,n)=>{"use strict";var i=n(52511),l=n(762502);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=v,t.resolve=function(e,t){return v(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?v(e,!1,!0).resolveObject(t):t},t.format=function(e){return(l.isString(e)&&(e=v(e)),e instanceof a)?e.format():a.prototype.format.call(e)},t.Url=a;var r=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n"," "])),u=["%","/","?",";","#"].concat(d),c=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},_={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(817673);function v(e,t,n){if(e&&l.isObject(e)&&e instanceof a)return e;var i=new a;return i.parse(e,t,n),i}a.prototype.parse=function(e,t,n){if(!l.isString(e))throw TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),o=-1!==a&&a<e.indexOf("#")?"?":"#",v=e.split(o);v[0]=v[0].replace(/\\/g,"/");var f=e=v.join(o);if(f=f.trim(),!n&&1===e.split("#").length){var b=s.exec(f);if(b)return this.path=f,this.href=f,this.pathname=b[1],b[2]?(this.search=b[2],t?this.query=y.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var x=r.exec(f);if(x){var k=(x=x[0]).toLowerCase();this.protocol=k,f=f.substr(x.length)}if(n||x||f.match(/^\/\/[^@\/]+@[^@\/]+/)){var P="//"===f.substr(0,2);P&&!(x&&_[x])&&(f=f.substr(2),this.slashes=!0)}if(!_[x]&&(P||x&&!g[x])){for(var S,w,A=-1,T=0;T<c.length;T++){var I=f.indexOf(c[T]);-1!==I&&(-1===A||I<A)&&(A=I)}-1!==(w=-1===A?f.lastIndexOf("@"):f.lastIndexOf("@",A))&&(S=f.slice(0,w),f=f.slice(w+1),this.auth=decodeURIComponent(S)),A=-1;for(var T=0;T<u.length;T++){var I=f.indexOf(u[T]);-1!==I&&(-1===A||I<A)&&(A=I)}-1===A&&(A=f.length),this.host=f.slice(0,A),f=f.slice(A),this.parseHost(),this.hostname=this.hostname||"";var E="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!E)for(var C=this.hostname.split(/\./),T=0,D=C.length;T<D;T++){var j=C[T];if(j&&!j.match(p)){for(var F="",R=0,L=j.length;R<L;R++)j.charCodeAt(R)>127?F+="x":F+=j[R];if(!F.match(p)){var z=C.slice(0,T),O=C.slice(T+1),M=j.match(m);M&&(z.push(M[1]),O.unshift(M[2])),O.length&&(f="/"+O.join(".")+f),this.hostname=z.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),E||(this.hostname=i.toASCII(this.hostname));var N=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+N,this.href+=this.host,E&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==f[0]&&(f="/"+f))}if(!h[k])for(var T=0,D=d.length;T<D;T++){var Z=d[T];if(-1!==f.indexOf(Z)){var K=encodeURIComponent(Z);K===Z&&(K=escape(Z)),f=f.split(Z).join(K)}}var U=f.indexOf("#");-1!==U&&(this.hash=f.substr(U),f=f.slice(0,U));var H=f.indexOf("?");if(-1!==H?(this.search=f.substr(H),this.query=f.substr(H+1),t&&(this.query=y.parse(this.query)),f=f.slice(0,H)):t&&(this.search="",this.query={}),f&&(this.pathname=f),g[k]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var N=this.pathname||"",V=this.search||"";this.path=N+V}return this.href=this.format(),this},a.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":")+"@");var t=this.protocol||"",n=this.pathname||"",i=this.hash||"",a=!1,r="";this.host?a=e+this.host:this.hostname&&(a=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&l.isObject(this.query)&&Object.keys(this.query).length&&(r=y.stringify(this.query));var o=this.search||r&&"?"+r||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==a?(a="//"+(a||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):a||(a=""),i&&"#"!==i.charAt(0)&&(i="#"+i),o&&"?"!==o.charAt(0)&&(o="?"+o),t+a+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(o=o.replace("#","%23"))+i},a.prototype.resolve=function(e){return this.resolveObject(v(e,!1,!0)).format()},a.prototype.resolveObject=function(e){if(l.isString(e)){var t=new a;t.parse(e,!1,!0),e=t}for(var n=new a,i=Object.keys(this),r=0;r<i.length;r++){var o=i[r];n[o]=this[o]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),d=0;d<s.length;d++){var u=s[d];"protocol"!==u&&(n[u]=e[u])}return g[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!g[e.protocol]){for(var c=Object.keys(e),p=0;p<c.length;p++){var m=c[p];n[m]=e[m]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||_[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.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 y=n.pathname||"",v=n.search||"";n.path=y+v}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var f=n.pathname&&"/"===n.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),x=b||f||n.host&&e.pathname,k=x,P=n.pathname&&n.pathname.split("/")||[],h=e.pathname&&e.pathname.split("/")||[],S=n.protocol&&!g[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&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),x=x&&(""===h[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=h;else if(h.length)P||(P=[]),P.pop(),P=P.concat(h),n.search=e.search,n.query=e.query;else if(!l.isNullOrUndefined(e.search)){if(S){n.hostname=n.host=P.shift();var w=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");w&&(n.auth=w.shift(),n.host=n.hostname=w.shift())}return n.search=e.search,n.query=e.query,l.isNull(n.pathname)&&l.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 A=P.slice(-1)[0],T=(n.host||e.host||P.length>1)&&("."===A||".."===A)||""===A,I=0,E=P.length;E>=0;E--)"."===(A=P[E])?P.splice(E,1):".."===A?(P.splice(E,1),I++):I&&(P.splice(E,1),I--);if(!x&&!k)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=""===P[0]||P[0]&&"/"===P[0].charAt(0);if(S){n.hostname=n.host=C?"":P.length?P.shift():"";var w=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");w&&(n.auth=w.shift(),n.host=n.hostname=w.shift())}return(x=x||n.host&&P.length)&&!C&&P.unshift(""),P.length?n.pathname=P.join("/"):(n.pathname=null,n.path=null),l.isNull(n.pathname)&&l.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},a.prototype.parseHost=function(){var e=this.host,t=o.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=>{"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},653250:(e,t,n)=>{"use strict";/**
23
+ * @license React
24
+ * use-sync-external-store-shim.production.min.js
25
+ *
26
+ * Copyright (c) Facebook, Inc. and its affiliates.
27
+ *
28
+ * This source code is licensed under the MIT license found in the
29
+ * LICENSE file in the root directory of this source tree.
30
+ */var i=n(667294),l="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useState,r=i.useEffect,o=i.useLayoutEffect,s=i.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!l(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),i=a({inst:{value:n,getSnapshot:t}}),l=i[0].inst,u=i[1];return o(function(){l.value=n,l.getSnapshot=t,d(l)&&u({inst:l})},[e,n,t]),r(function(){return d(l)&&u({inst:l}),e(function(){d(l)&&u({inst:l})})},[e]),s(n),n};t.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:u},950139:(e,t,n)=>{"use strict";/**
31
+ * @license React
32
+ * use-sync-external-store-shim/with-selector.production.min.js
33
+ *
34
+ * Copyright (c) Facebook, Inc. and its affiliates.
35
+ *
36
+ * This source code is licensed under the MIT license found in the
37
+ * LICENSE file in the root directory of this source tree.
38
+ */var i=n(667294),l=n(61688),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=l.useSyncExternalStore,o=i.useRef,s=i.useEffect,d=i.useMemo,u=i.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,i,l){var c=o(null);if(null===c.current){var p={hasValue:!1,value:null};c.current=p}else p=c.current;var m=r(e,(c=d(function(){function e(e){if(!s){if(s=!0,r=e,e=i(e),void 0!==l&&p.hasValue){var t=p.value;if(l(t,e))return o=t}return o=e}if(t=o,a(r,e))return t;var n=i(e);return void 0!==l&&l(t,n)?t:(r=e,o=n)}var r,o,s=!1,d=void 0===n?null:n;return[function(){return e(t())},null===d?void 0:function(){return e(d())}]},[t,n,i,l]))[0],c[1]);return s(function(){p.hasValue=!0,p.value=m},[m]),u(m),m}},61688:(e,t,n)=>{"use strict";e.exports=n(653250)},552798:(e,t,n)=>{"use strict";e.exports=n(950139)},17314:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i,l,a=n(813653),r=n(861470),o=0,s=0;let d=function(e,t,n){var d=t&&n||0,u=t||Array(16),c=(e=e||{}).node||i,p=void 0!==e.clockseq?e.clockseq:l;if(null==c||null==p){var m=e.random||(e.rng||a.Z)();null==c&&(c=i=[1|m[0],m[1],m[2],m[3],m[4],m[5]]),null==p&&(p=l=(m[6]<<8|m[7])&16383)}var h=void 0!==e.msecs?e.msecs:Date.now(),_=void 0!==e.nsecs?e.nsecs:s+1,g=h-o+(_-s)/1e4;if(g<0&&void 0===e.clockseq&&(p=p+1&16383),(g<0||h>o)&&void 0===e.nsecs&&(_=0),_>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");o=h,s=_,l=p;var y=((268435455&(h+=122192928e5))*1e4+_)%4294967296;u[d++]=y>>>24&255,u[d++]=y>>>16&255,u[d++]=y>>>8&255,u[d++]=255&y;var v=h/4294967296*1e4&268435455;u[d++]=v>>>8&255,u[d++]=255&v,u[d++]=v>>>24&15|16,u[d++]=v>>>16&255,u[d++]=p>>>8|128,u[d++]=255&p;for(var f=0;f<6;++f)u[d+f]=c[f];return t||(0,r.Z)(u)}},749585:e=>{"use strict";var t,n,i,l,a={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},l={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:[l],type:"V3InviteUserExternal",abstractKey:null}],storageKey:null}]},params:{id:"6312848b4bb08588587683a04a42e4d0333e2e986fcab0cef4ed200786d3f5d9",metadata:{},name:"AllShareOptionsUtility_CreateExternalInviteGraphQLQuery",operationKind:"query",text:null}};a.hash="bc8b32c56a4a58de585c9a05ae69bd9c",e.exports=a,function(e){if("query"===e.params.operationKind){if(window.__pwsCacheRelayConcreteRequest)window.__pwsCacheRelayConcreteRequest(e);else{let t=[e.params.name,e.params.id].join(":");window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__=window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__||{},window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__[t]=e}}}(a)},201557:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"Attribution_pin",selections:[{args:null,kind:"FragmentSpread",name:"StoryPinDescription_pin"},{args:null,kind:"FragmentSpread",name:"MusicAttribution_pin"}],type:"Pin",abstractKey:null};t.hash="073d579cf70fb0330fe26977d9b9f41a",e.exports=t},281309:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupDescriptionMediaAttribution_pin",selections:[{alias:null,args:null,concreteType:"MediaAttribution",kind:"LinkedField",name:"mediaAttribution",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"author",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"authorUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ccUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mediaType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"providerName",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="91cf1b742f42f2f57e9e89991ad2eebd",e.exports=t},801322:e=>{"use strict";var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupDescriptionPhotoAttribution_pin",selections:[{alias:null,args:null,concreteType:"Attribution",kind:"LinkedField",name:"attribution",plural:!1,selections:[{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[t={alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"authorUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"authorName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ccUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"providerName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"subtype",storageKey:null},t,{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};n.hash="5dff28be2de95106e382c42d78ad1833",e.exports=n},882900:e=>{"use strict";var t,n,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupDescription_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[t={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"datePublished",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:n=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},t,{alias:null,args:null,concreteType:"Attribution",kind:"LinkedField",name:"attribution",plural:!1,selections:n,storageKey:null},{alias:null,args:null,concreteType:"MediaAttribution",kind:"LinkedField",name:"mediaAttribution",plural:!1,selections:n,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seoDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seoNoindexReason",storageKey:null},{args:null,kind:"FragmentSpread",name:"CloseupDescriptionPhotoAttribution_pin"},{args:null,kind:"FragmentSpread",name:"CloseupDescriptionMediaAttribution_pin"}],type:"Pin",abstractKey:null};i.hash="c8423888a19a8f6884a814676a99cd51",e.exports=i},623861:e=>{"use strict";var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupDetailsBasicsLayout_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"title",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:"templateType",storageKey:null},{alias:null,args:null,concreteType:"StoryPinBasics",kind:"LinkedField",name:"basics",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinListBlock",kind:"LinkedField",name:"listBlocks",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:t=[{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null}],type:"TextBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"HeadingBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"ParagraphBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"LinkBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"StoryPinImageBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"StoryPinVideoBlock",abstractKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"heading",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinKeyValueBlock",kind:"LinkedField",name:"keyValueBlocks",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};n.hash="b8f25f1b5aa21f88bc1091e219609eb8",e.exports=n},914715:e=>{"use strict";var t,n,i,l,a,r=(a=[{args:null,kind:"FragmentSpread",name:"CloseupDetails_user"}],{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"isAuth"},{defaultValue:null,kind:"LocalArgument",name:"isDesktop"}],kind:"Fragment",metadata:null,name:"CloseupDetails_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForAggregatedComments",storageKey:null},{alias:null,args:null,concreteType:"AggregatedPinData",kind:"LinkedField",name:"aggregatedPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"commentCount",storageKey:null},{alias:null,args:null,concreteType:"AggregatedDidItData",kind:"LinkedField",name:"didItData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"imagesCount",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shoppingKlpUrls",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[t={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,concreteType:"OfferSummary",kind:"LinkedField",name:"offerSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"price",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"inStock",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:l=[i={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"MakeCardTutorialMetadata",kind:"LinkedField",name:"tutorial",plural:!1,selections:l,storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fromAggregatedData",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayCookTime",storageKey:null},{alias:null,args:null,concreteType:"ServingsSummary",kind:"LinkedField",name:"servingsSummary",plural:!1,selections:l,storageKey:null},{alias:null,args:null,concreteType:"AggregateRatingMetadata",kind:"LinkedField",name:"aggregateRating",plural:!1,selections:l,storageKey:null},{alias:null,args:null,concreteType:"CategorizedIngredientsMetadata",kind:"LinkedField",name:"categorizedIngredients",plural:!0,selections:l,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[t,{alias:null,args:null,concreteType:"OfferSummary",kind:"LinkedField",name:"offerSummary",plural:!1,selections:[n],storageKey:null}],storageKey:null}],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,concreteType:"StoryPinBasics",kind:"LinkedField",name:"basics",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinKeyValueBlock",kind:"LinkedField",name:"keyValueBlocks",plural:!0,selections:[i,{alias:null,args:null,kind:"ScalarField",name:"categoryType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"closeupAttribution",plural:!1,selections:l,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"commentsDisabled",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[i,{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:a,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"originPinner",plural:!1,selections:a,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{args:null,kind:"FragmentSpread",name:"OfficialUserAttribution_pin"},{args:null,kind:"FragmentSpread",name:"CloseupDetailsBasicsLayout_pin"},{args:null,kind:"FragmentSpread",name:"SeeMoreButton_pin"},{args:null,kind:"FragmentSpread",name:"PinRecipe_pin"},{args:null,kind:"FragmentSpread",name:"CloseupTitle_pin"},{args:null,kind:"FragmentSpread",name:"CloseupSavedAttribution_pin"},{args:null,kind:"FragmentSpread",name:"PinFeaturedInArticleCard_pin"},{args:null,kind:"FragmentSpread",name:"VaseFullBleedModal_pin"},{args:null,kind:"FragmentSpread",name:"PinRecipeRating_pin"},{args:null,kind:"FragmentSpread",name:"CloseupDescription_pin"},{args:null,kind:"FragmentSpread",name:"useAnnotationsWithLinksFragment_pin"},{args:null,kind:"FragmentSpread",name:"useReactionCountsFragment_pin"},{args:null,kind:"FragmentSpread",name:"VaseAnnotations_pin"},{condition:"isAuth",kind:"Condition",passingValue:!0,selections:[{args:null,kind:"FragmentSpread",name:"ProductDetails_pin"}]},{condition:"isAuth",kind:"Condition",passingValue:!1,selections:[{args:null,kind:"FragmentSpread",name:"ProductDescriptionDropdown_pin"}]},{condition:"isDesktop",kind:"Condition",passingValue:!1,selections:[{args:null,kind:"FragmentSpread",name:"PinFeedbackButton_pin"}]},{condition:"isDesktop",kind:"Condition",passingValue:!0,selections:[{args:null,kind:"FragmentSpread",name:"CommentThreadContainer_pin"}]},{args:null,kind:"FragmentSpread",name:"UserRep_pin"}],type:"Pin",abstractKey:null});r.hash="26d32b9142f479e02c0600f3ac018156",e.exports=r},350886:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupDetails_user",selections:[{alias:null,args:null,kind:"ScalarField",name:"blockedByMe",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"explicitlyFollowedByMe",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"followerCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageLargeUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSmallUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isVerifiedMerchant",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,concreteType:"VerifiedIdentity",kind:"LinkedField",name:"verifiedIdentity",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"verified",storageKey:null}],storageKey:null}],type:"User",abstractKey:null};t.hash="c9713d85ef89281fa5ad27120a1c71f9",e.exports=t},900247:e=>{"use strict";var t={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"isAuth"}],kind:"Fragment",metadata:null,name:"CloseupFullDetail_pin",selections:[{args:null,kind:"FragmentSpread",name:"ImageViewer_pin"},{args:null,kind:"FragmentSpread",name:"PinActionBar_pin"},{args:null,kind:"FragmentSpread",name:"PinActionBarOptionsButton_pin"},{args:null,kind:"FragmentSpread",name:"CloseupModals_pin"},{condition:"isAuth",kind:"Condition",passingValue:!1,selections:[{args:null,kind:"FragmentSpread",name:"UnauthCloseupRelatedPins_pin"}]},{args:null,kind:"FragmentSpread",name:"CommentModule_pin"}],type:"Pin",abstractKey:null};t.hash="38f2636099d309e9c211d80723788491",e.exports=t},887883:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupMainIframe_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}],storageKey:null},{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:'images(spec:"736x")'}],type:"Pin",abstractKey:null};t.hash="040479189b5808c581351271292cad96",e.exports=t},315522:e=>{"use strict";var t={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"isAuth"},{defaultValue:null,kind:"LocalArgument",name:"isDesktop"}],kind:"Fragment",metadata:null,name:"CloseupMainPinDetail_pin",selections:[{args:null,kind:"FragmentSpread",name:"ProductCarousel_pin"},{args:null,kind:"FragmentSpread",name:"CloseupMainIframe_pin"},{args:[{kind:"Variable",name:"isAuth",variableName:"isAuth"},{kind:"Variable",name:"isDesktop",variableName:"isDesktop"}],kind:"FragmentSpread",name:"CloseupDetails_pin"},{condition:"isAuth",kind:"Condition",passingValue:!1,selections:[{args:null,kind:"FragmentSpread",name:"LeafSnippet_pin"}]}],type:"Pin",abstractKey:null};t.hash="7fa629ded275b5b0f24ecd3f0c5a586b",e.exports=t},495740:e=>{"use strict";var t,n,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupMainPinImage_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,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"descriptionHtml",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"altText",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"autoAltText",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dominantColor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"domain",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}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isHidden",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isUnsafe",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"connectionType",storageKey:null}],storageKey:null},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:n=[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:'images(spec:"236x")'},{alias:"imageSpec_136x136",args:[{kind:"Literal",name:"spec",value:"136x136"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:n,storageKey:'images(spec:"136x136")'},{alias:null,args:null,concreteType:"Shuffle",kind:"LinkedField",name:"shuffle",plural:!1,selections:t,storageKey:null},{args:null,kind:"FragmentSpread",name:"usePinImageUrls_pin"},{args:null,kind:"FragmentSpread",name:"UnauthDesktopContextMenu_pin"}],type:"Pin",abstractKey:null};i.hash="443f97940c4c45181ef7c7f2c903a6f9",e.exports=i},562005:e=>{"use strict";var t={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"isDesktop"}],kind:"Fragment",metadata:null,name:"CloseupMainPinStoryPin_pin",selections:[{args:null,kind:"FragmentSpread",name:"CloseupStoryPinBlock_pin"},{args:null,kind:"FragmentSpread",name:"StoryPinCloseup_pin"},{condition:"isDesktop",kind:"Condition",passingValue:!1,selections:[{args:null,kind:"FragmentSpread",name:"StoryPinCloseupBodyOnMobile_pin"}]},{condition:"isDesktop",kind:"Condition",passingValue:!0,selections:[{args:null,kind:"FragmentSpread",name:"StoryPinCloseupBodyOnDesktop_pin"},{args:null,kind:"FragmentSpread",name:"StoryPinCloseupDetailsOnDesktop_pin"}]}],type:"Pin",abstractKey:null};t.hash="33567d57b67b5a49be2253f636baf23e",e.exports=t},774598:e=>{"use strict";var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupMainPin_pin",selections:[{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:'images(spec:"orig")'},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mobileLink",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackedLink",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageLargeUrl",storageKey:null},{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subtype",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinPage",kind:"LinkedField",name:"pages",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"layout",storageKey:null},{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"ad",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"blockType",storageKey:null}],type:"StoryPinVideoBlock",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:"additionalImageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"AdditionalImagesPerSpec",kind:"LinkedField",name:"additionalImagesPerSpec",plural:!0,selections:t,storageKey:'additionalImagesPerSpec(spec:"236x")'},{alias:"additionalImageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"AdditionalImagesPerSpec",kind:"LinkedField",name:"additionalImagesPerSpec",plural:!0,selections:t,storageKey:'additionalImagesPerSpec(spec:"474x")'},{alias:"additionalImageSpec_564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"AdditionalImagesPerSpec",kind:"LinkedField",name:"additionalImagesPerSpec",plural:!0,selections:t,storageKey:'additionalImagesPerSpec(spec:"564x")'},{alias:"additionalImageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"AdditionalImagesPerSpec",kind:"LinkedField",name:"additionalImagesPerSpec",plural:!0,selections:t,storageKey:'additionalImagesPerSpec(spec:"736x")'}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"CloseupMainPinImage_pin"},{args:null,kind:"FragmentSpread",name:"CloseupVideo_pin"},{args:null,kind:"FragmentSpread",name:"useClickthrough_pin"}],type:"Pin",abstractKey:null};n.hash="8f46840f8000dc1e4bcb2ce3bf21b9e1",e.exports=n},46226:e=>{"use strict";var t={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"isAuth"}],kind:"Fragment",metadata:null,name:"CloseupPageContainer_pin",selections:[{args:[{kind:"Variable",name:"isAuth",variableName:"isAuth"}],kind:"FragmentSpread",name:"UnauthContextMenuController_pin"}],type:"Pin",abstractKey:null};t.hash="4f6345abad9348df2ae456106d4b9c44",e.exports=t},782726:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupPageViewAndTimeSpent_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isOosProduct",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isStaleProduct",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shoppingFlags",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null}],type:"Pin",abstractKey:null};t.hash="5b01543e9ace6cf2b437348f6b1a3a64",e.exports=t},481926:e=>{"use strict";var t,n,i,l={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"isAuth"}],kind:"Fragment",metadata:null,name:"CloseupPage_pin",selections:[{alias:null,args:null,concreteType:"CreatorClass",kind:"LinkedField",name:"creatorClass",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CreatorClassInstance",kind:"LinkedField",name:"creatorClassInstance",plural:!1,selections:t,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"dominantColor",storageKey:null},{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[i={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},i,{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:'images(spec:"236x")'},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"typeName",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"videos",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"videoUrls",storageKey:null}],storageKey:null},{args:[{kind:"Variable",name:"isAuth",variableName:"isAuth"}],kind:"FragmentSpread",name:"Closeup_pin"}],type:"Pin",abstractKey:null};l.hash="a58b8b966069793cc65d32416a70af71",e.exports=l},781293:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupSavedAttribution_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"layout",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"BoardSection",kind:"LinkedField",name:"section",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"slug",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="62fd54709d3c18c78af173903ab765f1",e.exports=t},557440:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupStoryPinBlock_pin",selections:[{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinPage",kind:"LinkedField",name:"pages",plural:!0,selections:[{alias:"pageId",args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"StoryPinBlock_page"}],type:"Pin",abstractKey:null};t.hash="d344c68f5098c99fd60af6ae84bd46ae",e.exports=t},627766:e=>{"use strict";var t,n,i,l,a,r,o,s,d,u,c,p,m,h,_,g,y,v,f,b,x,k,P,S,w,A,T,I,E,C,D,j,F,R,L,z,O,M,N,B,Z,K,U,H,V,G,$,W,q,Y,X,Q,J,ee,et,en,ei,el,ea,er,eo,es,ed,eu,ec=(t={defaultValue:null,kind:"LocalArgument",name:"isDesktop"},n={defaultValue:null,kind:"LocalArgument",name:"pinId"},i=[{kind:"Variable",name:"pin",variableName:"pinId"}],a=[l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],p={alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},_=[r={alias:null,args:null,kind:"ScalarField",name:"blockType",storageKey:null},c={alias:null,args:null,concreteType:"BlockStyle",kind:"LinkedField",name:"blockStyle",plural:!1,selections:[o={alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"xCoord",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"yCoord",storageKey:null}],storageKey:null},p,{alias:null,args:null,concreteType:"TextStyle",kind:"LinkedField",name:"style",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"alignment",storageKey:null},{alias:null,args:null,concreteType:"Font",kind:"LinkedField",name:"font",plural:!1,selections:[m,{alias:null,args:null,kind:"ScalarField",name:"defaultSize",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"letterSpacing",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"lineHeight",storageKey:null},h],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fontSize",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hexColor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"highlightColor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"verticalAlignment",storageKey:null}],storageKey:null}],v={alias:"imageSpec_750x",args:g=[{kind:"Literal",name:"spec",value:"750x"}],concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:y=[o,h,s],storageKey:'images(spec:"750x")'},f=[{kind:"Literal",name:"version",value:"V_HLSV3_MOBILE"}],x={alias:null,args:null,kind:"ScalarField",name:"thumbnail",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"captionsUrls",storageKey:null},P=[b={alias:null,args:null,kind:"ScalarField",name:"duration",storageKey:null}],w={alias:null,args:null,kind:"ScalarField",name:"endTime",storageKey:null},A={alias:null,args:null,kind:"ScalarField",name:"isRemoved",storageKey:null},T={alias:null,args:null,kind:"ScalarField",name:"startTime",storageKey:null},I={alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},E={alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},C={alias:null,args:null,kind:"ScalarField",name:"imageSmallUrl",storageKey:null},D={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},F=[r,S={alias:null,args:null,concreteType:"BlockStyle",kind:"LinkedField",name:"blockStyle",plural:!1,selections:[o,s,d,u,{alias:null,args:null,kind:"ScalarField",name:"rotation",storageKey:null}],storageKey:null},w,A,T,{alias:null,args:null,kind:"ScalarField",name:"pinId",storageKey:null}],R={alias:null,args:null,kind:"ScalarField",name:"amt",storageKey:null},L=[l,D],O={alias:null,args:null,kind:"ScalarField",name:"dominantColor",storageKey:null},M=[{kind:"Literal",name:"spec",value:"236x"}],N=[{kind:"Literal",name:"spec",value:"1200x"}],B=[{kind:"Literal",name:"spec",value:"orig"}],Z={alias:null,args:null,kind:"ScalarField",name:"shouldMute",storageKey:null},K={alias:null,args:null,concreteType:"MusicAttribute",kind:"LinkedField",name:"musicAttributions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"artist",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isrc",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"thumbnailImageUrl",storageKey:null},z={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null},U={alias:null,args:null,kind:"ScalarField",name:"heading",storageKey:null},V={kind:"InlineFragment",selections:H=[p],type:"TextBlock",abstractKey:null},G={kind:"InlineFragment",selections:H,type:"ParagraphBlock",abstractKey:null},$={kind:"InlineFragment",selections:H,type:"HeadingBlock",abstractKey:null},W={kind:"InlineFragment",selections:H,type:"LinkBlock",abstractKey:null},q={kind:"InlineFragment",selections:H,type:"StoryPinImageBlock",abstractKey:null},Y={kind:"InlineFragment",selections:H,type:"StoryPinVideoBlock",abstractKey:null},X={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},Q=[h],J={alias:null,args:null,kind:"ScalarField",name:"adsOnlyProfileSite",storageKey:null},ee={alias:null,args:null,kind:"ScalarField",name:"blockedByMe",storageKey:null},et={alias:null,args:null,kind:"ScalarField",name:"explicitlyFollowedByMe",storageKey:null},en={alias:null,args:null,kind:"ScalarField",name:"imageLargeUrl",storageKey:null},ei={alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null},el={alias:null,args:null,kind:"ScalarField",name:"isAdsOnlyProfile",storageKey:null},ea={alias:null,args:null,concreteType:"VerifiedIdentity",kind:"LinkedField",name:"verifiedIdentity",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"verified",storageKey:null}],storageKey:null},er=[X,D],eo={alias:null,args:null,kind:"ScalarField",name:"category",storageKey:null},es={alias:null,args:null,kind:"ScalarField",name:"followerCount",storageKey:null},ed={alias:null,args:null,kind:"ScalarField",name:"isVerifiedMerchant",storageKey:null},eu=[x],{fragment:{argumentDefinitions:[t,n],kind:"Fragment",metadata:null,name:"CloseupStoryPinQuery",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3GetPinQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[l,{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"data",plural:!1,selections:[{args:[{kind:"Variable",name:"isDesktop",variableName:"isDesktop"}],kind:"FragmentSpread",name:"CloseupStoryPin_pin"}],storageKey:null}],type:"V3GetPin",abstractKey:null},{kind:"InlineFragment",selections:a,type:"Error",abstractKey:"__isError"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[n,t],kind:"Operation",name:"CloseupStoryPinQuery",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3GetPinQuery",plural:!1,selections:[l,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinPage",kind:"LinkedField",name:"pages",plural:!0,selections:[{alias:"pageId",args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:"storyPageId",args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[l,{kind:"InlineFragment",selections:_,type:"ParagraphBlock",abstractKey:null},{kind:"InlineFragment",selections:_,type:"HeadingBlock",abstractKey:null},{kind:"InlineFragment",selections:[r,c,v,p],type:"StoryPinImageBlock",abstractKey:null},{kind:"InlineFragment",selections:[r,c,{alias:null,args:null,concreteType:"StoryPinVideoMetadataFormatted",kind:"LinkedField",name:"videoData",plural:!1,selections:[{alias:null,args:f,concreteType:"StoryPinVideoFormats",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vHLSV3MOBILE",plural:!1,selections:[b,o,x,h,s,k],storageKey:null}],storageKey:'videoList(version:"V_HLSV3_MOBILE")'}],storageKey:null},p,{alias:null,args:null,concreteType:"StoryPinVideoMetadata",kind:"LinkedField",name:"video",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinVideoFormats",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"v720P",plural:!1,selections:P,storageKey:null},{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vHLSV3MOBILE",plural:!1,selections:P,storageKey:null}],storageKey:null}],storageKey:null}],type:"StoryPinVideoBlock",abstractKey:null},{kind:"InlineFragment",selections:[r,S,w,A,T,{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[I,E,C,D],storageKey:null}],type:"StoryPinMentionStickerBlock",abstractKey:null},{kind:"InlineFragment",selections:[r,{alias:null,args:null,kind:"ScalarField",name:"interactiveStickerType",storageKey:null},S,w,{alias:null,args:null,kind:"ScalarField",name:"errorMessage",storageKey:null},A,{alias:null,args:null,kind:"ScalarField",name:"isValid",storageKey:null},T,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"stickerData",plural:!1,selections:[l,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"boardId",storageKey:null},j],type:"GenericInteractiveStickerStoryBoardData",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"questionCommentId",storageKey:null},j],type:"GenericInteractiveStickerStoryQuestionData",abstractKey:null}],storageKey:null}],type:"StoryPinGenericInteractiveStickerBlock",abstractKey:null},{kind:"InlineFragment",selections:F,type:"StoryPinProductStickerBlock",abstractKey:null},{kind:"InlineFragment",selections:F,type:"StoryPinVirtualTryOnMakeupStickerBlock",abstractKey:null},{kind:"InlineFragment",selections:[p,r],type:"TextBlock",abstractKey:null},{kind:"InlineFragment",selections:[p,r,{alias:null,args:null,kind:"ScalarField",name:"srcUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"canonicalUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"normalizedUrl",storageKey:null}],type:"LinkBlock",abstractKey:null},{kind:"InlineFragment",selections:[r,R,m,{alias:null,args:null,kind:"ScalarField",name:"unit",storageKey:null}],type:"IngredientBlock",abstractKey:null},{kind:"InlineFragment",selections:[r,R,m],type:"SupplyBlock",abstractKey:null},{kind:"InlineFragment",selections:[r],type:"StoryPinMusicBlock",abstractKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"layout",storageKey:null},{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"ad",plural:!1,selections:L,storageKey:null},{alias:"musicBlocks",args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[l,{kind:"InlineFragment",selections:[r,{alias:null,args:null,concreteType:"Audio",kind:"LinkedField",name:"audio",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"artistName",storageKey:null},z,D],storageKey:null}],type:"StoryPinMusicBlock",abstractKey:null}],storageKey:null},{alias:"videoBlocks",args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[l,{kind:"InlineFragment",selections:[r,{alias:null,args:null,concreteType:"StoryPinVideoMetadata",kind:"LinkedField",name:"video",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinVideoFormats",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vHLSV3MOBILE",plural:!1,selections:[b,k],storageKey:null}],storageKey:null}],storageKey:null}],type:"StoryPinVideoBlock",abstractKey:null}],storageKey:null},O,{alias:null,args:null,kind:"ScalarField",name:"dominantColorAdjusted",storageKey:null},v,{alias:"imageSpec_236x",args:M,concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:y,storageKey:'images(spec:"236x")'},{alias:"imageSpec_1200x",args:N,concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:y,storageKey:'images(spec:"1200x")'},{alias:"imageSpec_orig",args:B,concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:y,storageKey:'images(spec:"orig")'},{alias:"imageAdjustedSpec_750x",args:g,concreteType:"Thumbnails",kind:"LinkedField",name:"imagesAdjusted",plural:!1,selections:y,storageKey:'imagesAdjusted(spec:"750x")'},{alias:"imageAdjustedSpec_236x",args:M,concreteType:"Thumbnails",kind:"LinkedField",name:"imagesAdjusted",plural:!1,selections:y,storageKey:'imagesAdjusted(spec:"236x")'},{alias:"imageAdjustedSpec_1200x",args:N,concreteType:"Thumbnails",kind:"LinkedField",name:"imagesAdjusted",plural:!1,selections:y,storageKey:'imagesAdjusted(spec:"1200x")'},{alias:"imageAdjustedSpec_orig",args:B,concreteType:"Thumbnails",kind:"LinkedField",name:"imagesAdjusted",plural:!1,selections:y,storageKey:'imagesAdjusted(spec:"orig")'},Z,{alias:null,args:null,kind:"ScalarField",name:"imageSignatureAdjusted",storageKey:null},{alias:null,args:null,concreteType:"PageStyle",kind:"LinkedField",name:"style",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"backgroundColor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinVideoMetadata",kind:"LinkedField",name:"video",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinVideoFormats",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vHLSV3MOBILE",plural:!1,selections:[s,o,x,h],storageKey:null}],storageKey:null}],storageKey:null},K],storageKey:null},D,{alias:null,args:null,kind:"ScalarField",name:"hasProductPins",storageKey:null},{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"canvasAspectRatio",storageKey:null},{alias:null,args:null,concreteType:"StoryPinRecipeMetadataField",kind:"LinkedField",name:"recipeData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"cookingTime",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"prepTime",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"servingSize",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"templateType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"version",storageKey:null},{alias:null,args:null,concreteType:"StoryPinBasics",kind:"LinkedField",name:"basics",plural:!1,selections:[l,{alias:null,args:null,concreteType:"StoryPinKeyValueBlock",kind:"LinkedField",name:"keyValueBlocks",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"categoryType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinListBlock",kind:"LinkedField",name:"listBlocks",plural:!0,selections:[U,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[l,{kind:"InlineFragment",selections:[U,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[l,V,G,$,W,q,Y],storageKey:null}],type:"StoryPinListBlock",abstractKey:null},V,$,G,W,q,Y],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},X],storageKey:null},X,{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:Q,storageKey:'images(spec:"736x")'},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",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},{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:null,args:null,concreteType:"OfferSummary",kind:"LinkedField",name:"offerSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"price",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"maxPrice",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"firstName",storageKey:null},I,E,D,J,ee,X,et,en,ei,C,el,ea],storageKey:null},{alias:"imageSpec_236x",args:M,concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:Q,storageKey:'images(spec:"236x")'},{alias:null,args:null,concreteType:"AggregatedPinData",kind:"LinkedField",name:"aggregatedPinData",plural:!1,selections:[X,D,{alias:null,args:null,kind:"ScalarField",name:"commentCount",storageKey:null},{alias:null,args:null,concreteType:"AggregatedDidItData",kind:"LinkedField",name:"didItData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"imagesCount",storageKey:null}],storageKey:null}],storageKey:null},O,{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[J,ee,X,et,I,en,ei,C,el,E,ea,D],storageKey:null},{alias:null,args:null,concreteType:"Sponsorship",kind:"LinkedField",name:"sponsorship",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"creator",plural:!1,selections:er,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"sponsor",plural:!1,selections:[X,I,E,D],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},z,{alias:null,args:null,concreteType:"ReactionCountModel",kind:"LinkedField",name:"reactionCountsData",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"reactionType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reactionCount",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:er,storageKey:null},{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},j],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForAggregatedComments",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"pinnedToBoard",plural:!1,selections:er,storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:a,storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:a,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"BoardSection",kind:"LinkedField",name:"section",plural:!1,selections:er,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null},{alias:"imageSpec_60x60",args:[{kind:"Literal",name:"spec",value:"60x60"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:Q,storageKey:'images(spec:"60x60")'},{alias:"imageSpec_136x136",args:[{kind:"Literal",name:"spec",value:"136x136"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:Q,storageKey:'images(spec:"136x136")'},{alias:"imageSpec_170x",args:[{kind:"Literal",name:"spec",value:"170x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:Q,storageKey:'images(spec:"170x")'},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:Q,storageKey:'images(spec:"474x")'},{alias:"imageSpec_564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:Q,storageKey:'images(spec:"564x")'},{alias:"imageSpec_600x315",args:[{kind:"Literal",name:"spec",value:"600x315"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:Q,storageKey:'images(spec:"600x315")'},{alias:"imageSpec_orig",args:B,concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:Q,storageKey:'images(spec:"orig")'},{alias:null,args:null,kind:"ScalarField",name:"mobileLink",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackedLink",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},eo,{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:[ei,D,E],storageKey:null},D],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:L,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isOosProduct",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isStaleProduct",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shoppingFlags",storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"videos",plural:!1,selections:[X,D,{alias:null,args:null,concreteType:"VideoList",kind:"LinkedField",name:"videoList",plural:!1,selections:a,storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"commentsDisabled",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"doneByMe",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"closeupAttribution",plural:!1,selections:[X,E,D,ei,es,{alias:null,args:null,kind:"ScalarField",name:"followedByMe",storageKey:null},el,J,ed,I,ea],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"originPinner",plural:!1,selections:[E,ei,D],storageKey:null},K,Z,D,{condition:"isDesktop",kind:"Condition",passingValue:!1,selections:[en]},{condition:"isDesktop",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinBasics",kind:"LinkedField",name:"basics",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinKeyValueBlock",kind:"LinkedField",name:"keyValueBlocks",plural:!0,selections:a,storageKey:null},{alias:null,args:null,concreteType:"StoryPinListBlock",kind:"LinkedField",name:"listBlocks",plural:!0,selections:a,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinPage",kind:"LinkedField",name:"pages",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:[{alias:"imageSpec_750x",args:g,concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:a,storageKey:'images(spec:"750x")'},{alias:"imageSpec_236x",args:M,concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:a,storageKey:'images(spec:"236x")'},{alias:"imageSpec_1200x",args:N,concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:a,storageKey:'images(spec:"1200x")'},{alias:"imageSpec_orig",args:B,concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:a,storageKey:'images(spec:"orig")'}],type:"StoryPinImageBlock",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"StoryPinVideoMetadata",kind:"LinkedField",name:"video",plural:!1,selections:[l,{alias:null,args:null,concreteType:"StoryPinVideoFormats",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vHLSV3MOBILE",plural:!1,selections:[k],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinVideoMetadataFormatted",kind:"LinkedField",name:"videoData",plural:!1,selections:[{alias:"videoListMobile",args:f,concreteType:"StoryPinVideoFormats",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vHLSV3MOBILE",plural:!1,selections:eu,storageKey:null}],storageKey:'videoList(version:"V_HLSV3_MOBILE")'},{alias:"videoList720P",args:[{kind:"Literal",name:"version",value:"V_720P"}],concreteType:"StoryPinVideoFormats",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"v720P",plural:!1,selections:eu,storageKey:null}],storageKey:'videoList(version:"V_720P")'}],storageKey:null}],type:"StoryPinVideoBlock",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:[es,ed],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[m],storageKey:null},{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,kind:"ScalarField",name:"displayCookTime",storageKey:null},m,{alias:null,args:null,concreteType:"CategorizedIngredientsMetadata",kind:"LinkedField",name:"categorizedIngredients",plural:!0,selections:[eo,{alias:null,args:null,concreteType:"ParsedIngredientMetadata",kind:"LinkedField",name:"ingredients",plural:!0,selections:[R,m],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},{alias:null,args:null,kind:"ScalarField",name:"serves",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AggregateRatingMetadata",kind:"LinkedField",name:"aggregateRating",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"bestRating",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ratingValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reviewCount",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,concreteType:"TodayArticleWithPath",kind:"LinkedField",name:"relatedArticle",plural:!1,selections:[{alias:"entityId",args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:"_id",args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mainImageUrl",storageKey:null},z,{alias:null,args:null,kind:"ScalarField",name:"urlPath",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUserNote",storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null},{alias:null,args:null,concreteType:"AnnotationsWithLinks",kind:"LinkedField",name:"annotationsWithLinksArray",plural:!0,selections:[m,h],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"method",storageKey:null}]}],storageKey:null}],type:"V3GetPin",abstractKey:null},{kind:"TypeDiscriminator",abstractKey:"__isError"}],storageKey:null}]},params:{id:"cde46916cd865b3c288bfc421dbbba9cf474bb9c055c96c81f7792cac0f79fa2",metadata:{},name:"CloseupStoryPinQuery",operationKind:"query",text:null}});ec.hash="0fc4770b382aee80c94c86d66000808a",e.exports=ec,function(e){if("query"===e.params.operationKind){if(window.__pwsCacheRelayConcreteRequest)window.__pwsCacheRelayConcreteRequest(e);else{let t=[e.params.name,e.params.id].join(":");window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__=window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__||{},window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__[t]=e}}}(ec)},584666:e=>{"use strict";var t={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"isDesktop"}],kind:"Fragment",metadata:null,name:"CloseupStoryPin_pin",selections:[{condition:"isDesktop",kind:"Condition",passingValue:!1,selections:[{args:null,kind:"FragmentSpread",name:"StoryPinStream_pin"}]},{args:[{kind:"Variable",name:"isDesktop",variableName:"isDesktop"}],kind:"FragmentSpread",name:"CloseupMainPinStoryPin_pin"}],type:"Pin",abstractKey:null};t.hash="4597a5267d66159a656998151fa41ab0",e.exports=t},560728:e=>{"use strict";var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupTitle_pin",selections:[t={alias:null,args:null,kind:"ScalarField",name:"title",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],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"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},{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},{alias:null,args:null,kind:"ScalarField",name:"seoNoindexReason",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seoTitle",storageKey:null}],type:"Pin",abstractKey:null};n.hash="e77b42ec174b43e9b7604897d7df5144",e.exports=n},451369:e=>{"use strict";var t,n,i,l,a,r,o,s,d=(n=[t={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"isAuth"}],kind:"Fragment",metadata:null,name:"Closeup_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"collaboratedByMe",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"collaboratorPermissions",storageKey:null},t,{alias:null,args:null,kind:"ScalarField",name:"isCollaborative",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"owner",plural:!1,selections:n,storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"closeupAttribution",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"subtype",storageKey:null},{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,kind:"ScalarField",name:"imageSignature",storageKey:null},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:l=[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:'images(spec:"236x")'},{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:null,args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:[i],storageKey:'images(spec:"orig")'},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForAggregatedComments",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPromoted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isV1IdeaPin",storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{condition:"isAuth",kind:"Condition",passingValue:!1,selections:[{alias:null,args:null,concreteType:"SeoBreadcrumbs",kind:"LinkedField",name:"seoBreadcrumbs",plural:!0,selections:[a={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},i],storageKey:null}]}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[a,s={alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:o=[r={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"UserWebsite",kind:"LinkedField",name:"linkUserWebsite",plural:!1,selections:[s],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mobileLink",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"pinnedToBoard",plural:!1,selections:[t,i],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"domainUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"domainVerified",storageKey:null},t],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:n,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"promotedIsRemovable",storageKey:null},{alias:null,args:null,concreteType:"PinRecommendationReason",kind:"LinkedField",name:"recommendationReason",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"reason",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reasonId",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[r,{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:o,storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"MakeCardTutorialMetadata",kind:"LinkedField",name:"tutorial",plural:!1,selections:o,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"BoardSection",kind:"LinkedField",name:"section",plural:!1,selections:n,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shouldOpenInStream",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,kind:"ScalarField",name:"isDeleted",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"thirdPartyPinOwner",plural:!1,selections:o,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackedLink",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"videos",plural:!1,selections:n,storageKey:null},{args:null,kind:"FragmentSpread",name:"CloseupPageViewAndTimeSpent_pin"},{args:[{kind:"Variable",name:"isAuth",variableName:"isAuth"}],kind:"FragmentSpread",name:"CloseupPageContainer_pin"},{args:null,kind:"FragmentSpread",name:"CloseupMainPin_pin"},{args:null,kind:"FragmentSpread",name:"usePinImageUrls_pin"},{args:null,kind:"FragmentSpread",name:"useCommerceData_pin"},{args:null,kind:"FragmentSpread",name:"useGetFeedbackType_pin"}],type:"Pin",abstractKey:null});d.hash="af96394906609375b89a070e19c3dd24",e.exports=d},66917:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CommentComposerModalEntryPoint_pin",selections:[{args:null,kind:"FragmentSpread",name:"CommentThreadModal_pin"}],type:"Pin",abstractKey:null};t.hash="b78f0667f69c1a0526a3aea69dda48b0",e.exports=t},313342:e=>{"use strict";var t,n,i=(n=[t={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CommentModule_pin",selections:[{alias:null,args:null,concreteType:"AggregatedPinData",kind:"LinkedField",name:"aggregatedPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"commentCount",storageKey:null},{alias:null,args:null,concreteType:"AggregatedDidItData",kind:"LinkedField",name:"didItData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"imagesCount",storageKey:null}],storageKey:null},t],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"closeupAttribution",plural:!1,selections:[t,{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"commentsDisabled",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:n,storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:n,storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"videos",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoList",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},t],storageKey:null},{args:null,kind:"FragmentSpread",name:"CommentComposerModalEntryPoint_pin"},{args:null,kind:"FragmentSpread",name:"SingleCommentPreview_pin"}],type:"Pin",abstractKey:null});i.hash="426e0b6541bc49e1a020426291ec2aa3",e.exports=i},437435:e=>{"use strict";var t,n,i={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"pinId"}],kind:"Fragment",metadata:null,name:"CommentReactionUnitedSocialModulePinReactionCountQuery",selections:[{alias:null,args:n=[{kind:"Variable",name:"pin",variableName:"pinId"}],concreteType:null,kind:"LinkedField",name:"v3GetPinQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"data",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"useReactionCountsFragment_pin"}],storageKey:null}],type:"V3GetPin",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"CommentReactionUnitedSocialModulePinReactionCountQuery",selections:[{alias:null,args:n,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:"ReactionCountModel",kind:"LinkedField",name:"reactionCountsData",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"reactionType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reactionCount",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],type:"V3GetPin",abstractKey:null}],storageKey:null}]},params:{id:"534cc4fd914eda4ab97f06d103fcaaf156a58d4ab66808c7091ffc3772bcb6c5",metadata:{},name:"CommentReactionUnitedSocialModulePinReactionCountQuery",operationKind:"query",text:null}};i.hash="617006b89ee9f57921e57d3c9098adff",e.exports=i,function(e){if("query"===e.params.operationKind){if(window.__pwsCacheRelayConcreteRequest)window.__pwsCacheRelayConcreteRequest(e);else{let t=[e.params.name,e.params.id].join(":");window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__=window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__||{},window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__[t]=e}}}(i)},90838:e=>{"use strict";var t,n,i=(n=[t={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CommentThreadContainer_pin",selections:[{alias:null,args:null,concreteType:"AggregatedPinData",kind:"LinkedField",name:"aggregatedPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"commentCount",storageKey:null},{alias:null,args:null,concreteType:"AggregatedDidItData",kind:"LinkedField",name:"didItData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"imagesCount",storageKey:null}],storageKey:null},t],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"doneByMe",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"closeupAttribution",plural:!1,selections:[t,{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"commentsDisabled",storageKey:null},t,{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:n,storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:n,storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"videos",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoList",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null});i.hash="6e4bec581cece19361386d6124ddde90",e.exports=i},173895:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CommentThreadModalEntryPoint_pin",selections:[{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"videos",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"CommentThreadModal_pin"}],type:"Pin",abstractKey:null};t.hash="8870c13169c2c3853d298396ebbb7276",e.exports=t},517953:e=>{"use strict";var t,n,i,l,a,r,o=(t=[{defaultValue:null,kind:"LocalArgument",name:"pinId"}],n=[{kind:"Variable",name:"pin",variableName:"pinId"}],i={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},r=[l={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],{fragment:{argumentDefinitions:t,kind:"Fragment",metadata:null,name:"CommentThreadModalQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"v3GetPinQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"data",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"CommentThreadModal_pin"}],storageKey:null}],type:"V3GetPin",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"CommentThreadModalQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"v3GetPinQuery",plural:!1,selections:[i,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:null,args:null,concreteType:"AggregatedPinData",kind:"LinkedField",name:"aggregatedPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"commentCount",storageKey:null},{alias:null,args:null,concreteType:"AggregatedDidItData",kind:"LinkedField",name:"didItData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"imagesCount",storageKey:null}],storageKey:null},l,a],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"commentsDisabled",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"doneByMe",storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:r,storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"videos",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoList",kind:"LinkedField",name:"videoList",plural:!1,selections:[i],storageKey:null},a],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"closeupAttribution",plural:!1,selections:[l,{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},a],storageKey:null},l,{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:r,storageKey:null},a],storageKey:null}],type:"V3GetPin",abstractKey:null}],storageKey:null}]},params:{id:"a71a94cbb6bbc3b1d7072276b1e8983469142306de0d3eccfa151ce12464ea17",metadata:{},name:"CommentThreadModalQuery",operationKind:"query",text:null}});o.hash="3ab6a98b978f52a8036f26117e2bd229",e.exports=o,function(e){if("query"===e.params.operationKind){if(window.__pwsCacheRelayConcreteRequest)window.__pwsCacheRelayConcreteRequest(e);else{let t=[e.params.name,e.params.id].join(":");window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__=window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__||{},window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__[t]=e}}}(o)},273412:e=>{"use strict";var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CommentThreadModal_pin",selections:[{alias:null,args:null,concreteType:"AggregatedPinData",kind:"LinkedField",name:"aggregatedPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"commentCount",storageKey:null},{alias:null,args:null,concreteType:"AggregatedDidItData",kind:"LinkedField",name:"didItData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"imagesCount",storageKey:null}],storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"commentsDisabled",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"doneByMe",storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[t],storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"videos",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoList",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"CommentThreadContainer_pin"}],type:"Pin",abstractKey:null};n.hash="94f7ae778628b666925a4aab3ebc789a",e.exports=n},359010:e=>{"use strict";var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CoverPage_story_pin_page",selections:[{alias:null,args:null,kind:"ScalarField",name:"dominantColor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dominantColorAdjusted",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:t=[{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null}],type:"TextBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"HeadingBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"ParagraphBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"LinkBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"StoryPinImageBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"StoryPinVideoBlock",abstractKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"useStoryPinPageImages"}],type:"StoryPinPage",abstractKey:null};n.hash="9329e2351d4ff22c3541173b9fb9d26d",e.exports=n},84928:e=>{"use strict";var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"FollowButton_pin",selections:[{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=[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:t,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}],type:"Pin",abstractKey:null};n.hash="cabaa35ed7d59dee006897bf3ef32e3d",e.exports=n},788603:e=>{"use strict";var t,n,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"IdeaPinActionBar_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForAggregatedComments",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"pinnedToBoard",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:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:n=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:n,storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:n,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"BoardSection",kind:"LinkedField",name:"section",plural:!1,selections:t,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null},{args:null,kind:"FragmentSpread",name:"usePinImageUrls_pin"},{args:null,kind:"FragmentSpread",name:"IdeaPinVisitButton_pin"},{args:null,kind:"FragmentSpread",name:"CommentThreadModalEntryPoint_pin"}],type:"Pin",abstractKey:null};i.hash="f35f3a341c8184bf99bf7b8193bb56b7",e.exports=i},293665:e=>{"use strict";var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"IdeaPinVideoScrubber_pin",selections:[{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinPage",kind:"LinkedField",name:"pages",plural:!0,selections:[{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"ad",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"layout",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shouldMute",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"blockType",storageKey:null},{alias:null,args:null,concreteType:"StoryPinVideoMetadata",kind:"LinkedField",name:"video",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinVideoFormats",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"v720P",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"duration",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vHLSV3MOBILE",plural:!1,selections:t,storageKey:null}],storageKey:null}],storageKey:null}],type:"StoryPinVideoBlock",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};n.hash="77263a73db576ada99ff387fd2f080b7",e.exports=n},636929:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"IdeaPinVisitButton_pin",selections:[{args:null,kind:"FragmentSpread",name:"useClickthrough_pin"}],type:"Pin",abstractKey:null};t.hash="c4f99b4a897525ceeb600a989bc21a22",e.exports=t},391582:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"IngredientsPage_story_pin_page",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"blockType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"amt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"unit",storageKey:null}],type:"IngredientBlock",abstractKey:null}],storageKey:null}],type:"StoryPinPage",abstractKey:null};t.hash="55064042cd1ba8a517e02b413ac45570",e.exports=t},418273:e=>{"use strict";var t,n,i,l={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"pinId"}],kind:"Fragment",metadata:null,name:"LazyLoadPinBreadcrumbsQuery",selections:[{alias:null,args:n=[{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:[i={alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!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}],storageKey:null}],type:"V3GetPin",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"LazyLoadPinBreadcrumbsQuery",selections:[{alias:null,args:n,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:[i,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],type:"V3GetPin",abstractKey:null}],storageKey:null}]},params:{id:"f5c2a4544d75592cedbb5c841969c7b7f7d1b38bf96dd6d0ab116107bfa90978",metadata:{},name:"LazyLoadPinBreadcrumbsQuery",operationKind:"query",text:null}};l.hash="c8e65ee18cda32864e9b7635744f253f",e.exports=l,function(e){if("query"===e.params.operationKind){if(window.__pwsCacheRelayConcreteRequest)window.__pwsCacheRelayConcreteRequest(e);else{let t=[e.params.name,e.params.id].join(":");window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__=window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__||{},window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__[t]=e}}}(l)},756203:e=>{"use strict";var t,n,i,l={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MediaPage_pin",selections:[{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinPage",kind:"LinkedField",name:"pages",plural:!0,selections:[{alias:"storyPageId",args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dominantColor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dominantColorAdjusted",storageKey:null},{alias:null,args:null,concreteType:"StoryPinVideoMetadata",kind:"LinkedField",name:"video",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinVideoFormats",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vHLSV3MOBILE",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"thumbnail",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:i=[t={alias:null,args:null,kind:"ScalarField",name:"blockType",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null}],type:"TextBlock",abstractKey:null},{kind:"InlineFragment",selections:i,type:"HeadingBlock",abstractKey:null},{kind:"InlineFragment",selections:i,type:"ParagraphBlock",abstractKey:null},{kind:"InlineFragment",selections:[t,n,{alias:null,args:null,kind:"ScalarField",name:"srcUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"canonicalUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"normalizedUrl",storageKey:null}],type:"LinkBlock",abstractKey:null},{kind:"InlineFragment",selections:i,type:"StoryPinImageBlock",abstractKey:null},{kind:"InlineFragment",selections:i,type:"StoryPinVideoBlock",abstractKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"useStoryPinPageImages"}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};l.hash="74d7004491fe9a51e0aa578ce9aebc55",e.exports=l},848720:e=>{"use strict";var t,n,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MusicAttribution_pin",selections:[{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinPage",kind:"LinkedField",name:"pages",plural:!0,selections:[t={alias:null,args:null,kind:"ScalarField",name:"shouldMute",storageKey:null},n={alias:null,args:null,concreteType:"MusicAttribute",kind:"LinkedField",name:"musicAttributions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"artist",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isrc",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"thumbnailImageUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},n,t],type:"Pin",abstractKey:null};i.hash="4b6b65f5a09a6a83ab2a4dc6550ee39f",e.exports=i},347806:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OfficialUserAttributionText_pin",selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"closeupAttribution",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isVerifiedMerchant",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},{alias:null,args:null,concreteType:"VerifiedIdentity",kind:"LinkedField",name:"verifiedIdentity",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"verified",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isAdsOnlyProfile",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"adsOnlyProfileSite",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="17ee7538a8ba5a468f69f85d06121f1d",e.exports=t},521835:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OfficialUserAttribution_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"closeupAttribution",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"followerCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"followedByMe",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isAdsOnlyProfile",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"adsOnlyProfileSite",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"OfficialUserAttributionText_pin"},{args:null,kind:"FragmentSpread",name:"FollowButton_pin"}],type:"Pin",abstractKey:null};t.hash="e9f1e0adefbc64e46ae0d9f836929d13",e.exports=t},79e3:e=>{"use strict";var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinActionBarMoreOptions_pin",selections:[{alias:null,args:null,concreteType:"AggregatedPinData",kind:"LinkedField",name:"aggregatedPinData",plural:!1,selections:[t={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},t,{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isDeleted",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};n.hash="57a329cbbb02bd406276ee6031be91b9",e.exports=n},401482:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinActionBarOptionsButton_pin",selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"shoppingKlpUrls",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"VaseSection_pin"},{args:null,kind:"FragmentSpread",name:"useClickthrough_pin"},{args:null,kind:"FragmentSpread",name:"UnauthDesktopContextMenu_pin"}],type:"Pin",abstractKey:null};t.hash="b01402e9eb5ee4124874a409ef3b9bb5",e.exports=t},721415:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinActionBarVisitButton_pin",selections:[{args:null,kind:"FragmentSpread",name:"useClickthrough_pin"}],type:"Pin",abstractKey:null};t.hash="2ed8f79733cbeedba9e8a7ed03435228",e.exports=t},833641:e=>{"use strict";var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinActionBar_pin",selections:[{alias:null,args:null,concreteType:"AggregatedPinData",kind:"LinkedField",name:"aggregatedPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForAggregatedComments",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"blockedByMe",storageKey:null}],storageKey:null},{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:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fromAggregatedData",storageKey:null},{alias:null,args:null,concreteType:"CategorizedIngredientsMetadata",kind:"LinkedField",name:"categorizedIngredients",plural:!0,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:t,storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"PinActionBarOptionsButton_pin"},{args:null,kind:"FragmentSpread",name:"PinActionBarVisitButton_pin"},{args:null,kind:"FragmentSpread",name:"CommentThreadModalEntryPoint_pin"}],type:"Pin",abstractKey:null};n.hash="03cf62005de03cbd9768d464b7dbfb2b",e.exports=n},30755:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinFeaturedInArticleCard_pin",selections:[{alias:null,args:null,concreteType:"TodayArticleWithPath",kind:"LinkedField",name:"relatedArticle",plural:!1,selections:[{alias:"_id",args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mainImageUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"urlPath",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="a7aa8ca2a9aab89cbe065401dfa9e30d",e.exports=t},394384:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinRecipeRating_pin",selections:[{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,kind:"ScalarField",name:"displayCookTime",storageKey:null},{alias:null,args:null,concreteType:"ServingsSummary",kind:"LinkedField",name:"servingsSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"serves",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AggregateRatingMetadata",kind:"LinkedField",name:"aggregateRating",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"bestRating",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ratingValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reviewCount",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="0cd4ab994109a00e8277b7cf95fc202d",e.exports=t},189333:e=>{"use strict";var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinRecipe_pin",selections:[{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,kind:"ScalarField",name:"displayCookTime",storageKey:null},t={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},t],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ServingsSummary",kind:"LinkedField",name:"servingsSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"summary",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};n.hash="0399d1e5d3138c8784dabc45eac4492b",e.exports=n},413527:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProductCarousel_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isHidden",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isUnsafe",storageKey:null},{args:null,kind:"FragmentSpread",name:"usePinCarouselData_pin"}],type:"Pin",abstractKey:null};t.hash="60d3a4ecde70765f103974d4f860b9bd",e.exports=t},319461:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProductDescriptionDropdown_pin",selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"closeupAttribution",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"domainUrl",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{args:null,kind:"FragmentSpread",name:"useStructuredDescriptionFragment_pin"}],type:"Pin",abstractKey:null};t.hash="e49c269bff73cba5691f5113b6f00759",e.exports=t},498006:e=>{"use strict";var t,n,i,l={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProductDetails_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"isOosProduct",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isStaleProduct",storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"AggregateRatingMetadata",kind:"LinkedField",name:"aggregateRating",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ratingValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reviewCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ratingCount",storageKey:null}],storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:null,args:null,concreteType:"Brand",kind:"LinkedField",name:"brand",plural:!1,selections:[n={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"userId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isMerchant",storageKey:null}],storageKey:null},n,i={alias:null,args:null,concreteType:"OfferSummary",kind:"LinkedField",name:"offerSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"inStock",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"price",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"maxPrice",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"minPrice",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"standardPrice",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ShippingInfo",kind:"LinkedField",name:"shippingInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"freeShippingPrice",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"freeShippingValue",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[n,i],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null}],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}],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},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"closeupAttribution",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"domainUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},t,{args:null,kind:"FragmentSpread",name:"useStructuredDescriptionFragment_pin"},{args:null,kind:"FragmentSpread",name:"ProductPrice_pin"},{args:null,kind:"FragmentSpread",name:"ProductReviews_pin"},{args:null,kind:"FragmentSpread",name:"CloseupTitle_pin"},{args:null,kind:"FragmentSpread",name:"OfficialUserAttributionText_pin"}],type:"Pin",abstractKey:null};l.hash="8da55c30ecd63040c01f96b3ca18ce77",e.exports=l},187561:e=>{"use strict";var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProductPrice_pin",selections:[{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:t=[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,concreteType:"OfferSummary",kind:"LinkedField",name:"offerSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"price",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"maxPrice",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"minPrice",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"standardPrice",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:t,storageKey:null}],type:"Pin",abstractKey:null};n.hash="2d8f315013487d39e45789c61794f121",e.exports=n},346154:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProductReviewsCollapsible_pin",selections:[{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"AggregateRatingMetadata",kind:"LinkedField",name:"aggregateRating",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ratingValue",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null}],type:"Pin",abstractKey:null};t.hash="a663d52f0626cc8887103d9e1a8a78c2",e.exports=t},987557:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProductReviewsModal_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"AggregateRatingMetadata",kind:"LinkedField",name:"aggregateRating",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ratingValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reviewCount",storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="a942edb09f07e93186cbbfed0b8031a7",e.exports=t},762183:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProductReviewsPreview_pin",selections:[{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"AggregateRatingMetadata",kind:"LinkedField",name:"aggregateRating",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ratingValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reviewCount",storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="25e031a9439a0eef8418850148f49a45",e.exports=t},460930:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProductReviews_pin",selections:[{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"AggregateRatingMetadata",kind:"LinkedField",name:"aggregateRating",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ratingValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reviewCount",storageKey:null}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"ProductReviewsCollapsible_pin"},{args:null,kind:"FragmentSpread",name:"ProductReviewsPreview_pin"},{args:null,kind:"FragmentSpread",name:"ProductReviewsModal_pin"}],type:"Pin",abstractKey:null};t.hash="c2f4c93600298edcacdd3b6d3a62ab79",e.exports=t},583780:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"SeeMoreButton_pin",selections:[{args:null,kind:"FragmentSpread",name:"VaseSection_pin"}],type:"Pin",abstractKey:null};t.hash="8d0233fe1acbc77ec2b5a1754e0a6e36",e.exports=t},974452:e=>{"use strict";var t,n,i,l,a={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"inviteType"},{defaultValue:null,kind:"LocalArgument",name:"objectId"}],kind:"Fragment",metadata:null,name:"ShareInviteCreateExternalInviteGraphQLQuery",selections:[{alias:null,args: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},l={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}],storageKey:null}],type:"V3InviteUserExternal",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"ShareInviteCreateExternalInviteGraphQLQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"v3InviteUserExternalQuery",plural:!1,selections:[i,{kind:"InlineFragment",selections:[l],type:"V3InviteUserExternal",abstractKey:null}],storageKey:null}]},params:{id:"9444c7d899b56b0d3f582ffd76e4aa03c97bb76a403a805aeb20150c64ee61d7",metadata:{},name:"ShareInviteCreateExternalInviteGraphQLQuery",operationKind:"query",text:null}};a.hash="1fbbd3a52281ca7385d39618818c9f5c",e.exports=a,function(e){if("query"===e.params.operationKind){if(window.__pwsCacheRelayConcreteRequest)window.__pwsCacheRelayConcreteRequest(e);else{let t=[e.params.name,e.params.id].join(":");window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__=window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__||{},window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__[t]=e}}}(a)},974016:e=>{"use strict";var t,n,i,l,a={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"invite_category"},{defaultValue:null,kind:"LocalArgument",name:"url"}],kind:"Fragment",metadata:null,name:"ShareInviteCreateShareLinkGraphQLQuery",selections:[{alias:null,args:n=[{kind:"Variable",name:"inviteCategory",variableName:"invite_category"},{kind:"Literal",name:"name",value:""},{kind:"Variable",name:"url",variableName:"url"}],concreteType:null,kind:"LinkedField",name:"v3CreateShareLinkQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[i={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},l={alias:null,args:null,concreteType:"ShareLink",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}],storageKey:null}],type:"V3CreateShareLink",abstractKey:null},{kind:"InlineFragment",selections:[i],type:"ClientError",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"ShareInviteCreateShareLinkGraphQLQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"v3CreateShareLinkQuery",plural:!1,selections:[i,{kind:"InlineFragment",selections:[l],type:"V3CreateShareLink",abstractKey:null}],storageKey:null}]},params:{id:"1a2c34659f0fc64fb8a13ad996b008dbd6b92e50c9b051a13ea424a4eeda7cb4",metadata:{},name:"ShareInviteCreateShareLinkGraphQLQuery",operationKind:"query",text:null}};a.hash="811d4ea697a4e7e3aa559549b7762835",e.exports=a,function(e){if("query"===e.params.operationKind){if(window.__pwsCacheRelayConcreteRequest)window.__pwsCacheRelayConcreteRequest(e);else{let t=[e.params.name,e.params.id].join(":");window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__=window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__||{},window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__[t]=e}}}(a)},457281:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"SingleCommentPreview_pin",selections:[{args:null,kind:"FragmentSpread",name:"CommentThreadModal_pin"}],type:"Pin",abstractKey:null};t.hash="e4098241d62707526add1ad0a8117ad9",e.exports=t},53811:e=>{"use strict";var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinBasicsLayout_pin",selections:[{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinBasics",kind:"LinkedField",name:"basics",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinListBlock",kind:"LinkedField",name:"listBlocks",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:t=[{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null}],type:"TextBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"HeadingBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"ParagraphBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"LinkBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"StoryPinImageBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"StoryPinVideoBlock",abstractKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"heading",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinKeyValueBlock",kind:"LinkedField",name:"keyValueBlocks",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"categoryType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"OfficialUserAttribution_pin"}],type:"Pin",abstractKey:null};n.hash="9bd82ee705047a24dfa595bf581f4c96",e.exports=n},276781:e=>{"use strict";var t,n,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinBlock_page",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:'images(spec:"736x")'},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinPage",kind:"LinkedField",name:"pages",plural:!0,selections:[{alias:"storyPageId",args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:[t={alias:null,args:null,kind:"ScalarField",name:"blockType",storageKey:null},n={alias:null,args:null,concreteType:"BlockStyle",kind:"LinkedField",name:"blockStyle",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"xCoord",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"yCoord",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"StoryPinParagraphBlock_block"}],type:"ParagraphBlock",abstractKey:null},{kind:"InlineFragment",selections:[t,n,{args:null,kind:"FragmentSpread",name:"StoryPinHeadingBlock_block"}],type:"HeadingBlock",abstractKey:null},{kind:"InlineFragment",selections:[t,n,{args:null,kind:"FragmentSpread",name:"StoryPinImageBlock_block"}],type:"StoryPinImageBlock",abstractKey:null},{kind:"InlineFragment",selections:[t,n,{args:null,kind:"FragmentSpread",name:"StoryPinVideoBlock_block"}],type:"StoryPinVideoBlock",abstractKey:null},{kind:"InlineFragment",selections:[t,n,{args:null,kind:"FragmentSpread",name:"StoryPinMentionStickerBlock_block"}],type:"StoryPinMentionStickerBlock",abstractKey:null},{kind:"InlineFragment",selections:[t,{alias:null,args:null,kind:"ScalarField",name:"interactiveStickerType",storageKey:null},n,{args:null,kind:"FragmentSpread",name:"StoryPinGenericInteractiveStickerBlock_block"}],type:"StoryPinGenericInteractiveStickerBlock",abstractKey:null},{kind:"InlineFragment",selections:[t,n,{args:null,kind:"FragmentSpread",name:"StoryPinProductStickerBlock_block"}],type:"StoryPinProductStickerBlock",abstractKey:null},{kind:"InlineFragment",selections:[t,n,{args:null,kind:"FragmentSpread",name:"StoryPinVirtualTryOnMakeupStickerBlock_block"}],type:"StoryPinVirtualTryOnMakeupStickerBlock",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"StoryPinGenericInteractiveStickerBlock_pin"}],type:"Pin",abstractKey:null};i.hash="f5ec4ea9be50b222f7c0ef2806d58324",e.exports=i},360980:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinBlock_pin",selections:[{args:null,kind:"FragmentSpread",name:"StoryPinStickerBlockCloseup_pin"}],type:"Pin",abstractKey:null};t.hash="8bb1bb1f7bafeed0fe43bed44ef12d2a",e.exports=t},193048:e=>{"use strict";var t,n,i,l,a,r,o,s=(r={alias:null,args:null,kind:"ScalarField",name:"blockType",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinCloseup_pin",selections:[{alias:null,args:null,concreteType:"AggregatedPinData",kind:"LinkedField",name:"aggregatedPinData",plural:!1,selections:n=[t={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dominantColor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:a=[{alias:null,args:null,kind:"ScalarField",name:"adsOnlyProfileSite",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"blockedByMe",storageKey:null},t,{alias:null,args:null,kind:"ScalarField",name:"explicitlyFollowedByMe",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageLargeUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSmallUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isAdsOnlyProfile",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,concreteType:"VerifiedIdentity",kind:"LinkedField",name:"verifiedIdentity",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"verified",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"hasProductPins",storageKey:null},{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"canvasAspectRatio",storageKey:null},{alias:null,args:null,concreteType:"StoryPinRecipeMetadataField",kind:"LinkedField",name:"recipeData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"cookingTime",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"prepTime",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"servingSize",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"templateType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"version",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinPage",kind:"LinkedField",name:"pages",plural:!0,selections:[{alias:"pageId",args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"layout",storageKey:null},{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"ad",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:"musicBlocks",args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:[r,{alias:null,args:null,concreteType:"Audio",kind:"LinkedField",name:"audio",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"artistName",storageKey:null},o],storageKey:null}],type:"StoryPinMusicBlock",abstractKey:null}],storageKey:null},{alias:"videoBlocks",args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:[r,{alias:null,args:null,concreteType:"StoryPinVideoMetadata",kind:"LinkedField",name:"video",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinVideoFormats",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vHLSV3MOBILE",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"duration",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"captionsUrls",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"StoryPinVideoBlock",abstractKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"CoverPage_story_pin_page"},{args:null,kind:"FragmentSpread",name:"IngredientsPage_story_pin_page"},{args:null,kind:"FragmentSpread",name:"SuppliesPage_story_pin_page"}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Sponsorship",kind:"LinkedField",name:"sponsorship",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"creator",plural:!1,selections:n,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"sponsor",plural:!1,selections:[t,i,l],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},o,{args:null,kind:"FragmentSpread",name:"useReactionCountsFragment_pin"},{args:null,kind:"FragmentSpread",name:"IdeaPinActionBar_pin"},{args:null,kind:"FragmentSpread",name:"StoryPinPage_pin"},{args:null,kind:"FragmentSpread",name:"MediaPage_pin"},{args:null,kind:"FragmentSpread",name:"Attribution_pin"},{args:null,kind:"FragmentSpread",name:"IdeaPinVideoScrubber_pin"},{args:null,kind:"FragmentSpread",name:"MusicAttribution_pin"}],type:"Pin",abstractKey:null});s.hash="881d2d3affb0135cb28928a5f3e17192",e.exports=s},933702:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinDescription_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"hasProductPins",storageKey:null},{alias:null,args:null,concreteType:"StoryPinPage",kind:"LinkedField",name:"pages",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"layout",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinBasics",kind:"LinkedField",name:"basics",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"StoryPinPreviewText_pin"},{args:null,kind:"FragmentSpread",name:"StoryPinListModal_pin"}],type:"Pin",abstractKey:null};t.hash="698f60983e1f329c15da35026da26ed3",e.exports=t},754912:e=>{"use strict";var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinGenericInteractiveStickerBlock_block",selections:[{alias:null,args:null,kind:"ScalarField",name:"endTime",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"errorMessage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"interactiveStickerType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isRemoved",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isValid",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"startTime",storageKey:null},{alias:null,args:null,concreteType:"BlockStyle",kind:"LinkedField",name:"blockStyle",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"rotation",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"stickerData",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"boardId",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],type:"GenericInteractiveStickerStoryBoardData",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"questionCommentId",storageKey:null},t],type:"GenericInteractiveStickerStoryQuestionData",abstractKey:null}],storageKey:null}],type:"StoryPinGenericInteractiveStickerBlock",abstractKey:null};n.hash="020b8c3f71cd0246bb11c20ad3ede297",e.exports=n},500154:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinGenericInteractiveStickerBlock_pin",selections:[{args:null,kind:"FragmentSpread",name:"StoryPinStickerBlock_pin"}],type:"Pin",abstractKey:null};t.hash="2d13cb1f75d0bf3742ddb8f141ea022a",e.exports=t},417103:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinHeadingBlock_block",selections:[{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},{alias:null,args:null,concreteType:"TextStyle",kind:"LinkedField",name:"style",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"alignment",storageKey:null},{alias:null,args:null,concreteType:"Font",kind:"LinkedField",name:"font",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"defaultSize",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"letterSpacing",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"lineHeight",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fontSize",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hexColor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"highlightColor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"verticalAlignment",storageKey:null}],storageKey:null}],type:"HeadingBlock",abstractKey:null};t.hash="af07b7cdd16e1077cabeda3ca6145d1b",e.exports=t},331577:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinImageBlock_block",selections:[{alias:"imageSpec_750x",args:[{kind:"Literal",name:"spec",value:"750x"}],concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:'images(spec:"750x")'}],type:"StoryPinImageBlock",abstractKey:null};t.hash="724c999686603f1e98f5d4626b40c50d",e.exports=t},285617:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinListModal_pin",selections:[{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinBasics",kind:"LinkedField",name:"basics",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinRecipeMetadataField",kind:"LinkedField",name:"recipeData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"cookingTime",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"prepTime",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"servingSize",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"templateType",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"StoryPinList_pin"}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{args:null,kind:"FragmentSpread",name:"StoryPinBasicsLayout_pin"}],type:"Pin",abstractKey:null};t.hash="b408927eb9f996106daef1a0ce894de9",e.exports=t},541497:e=>{"use strict";var t,n,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinList_pin",selections:[{alias:null,args:null,concreteType:"StoryPinPage",kind:"LinkedField",name:"pages",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"layout",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:[t={alias:null,args:null,kind:"ScalarField",name:"amt",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"unit",storageKey:null}],type:"IngredientBlock",abstractKey:null},{kind:"InlineFragment",selections:[t,n],type:"SupplyBlock",abstractKey:null}],storageKey:null}],storageKey:null}],type:"StoryPinData",abstractKey:null};i.hash="58ca192c8da31187227f6d6d9370c6ca",e.exports=i},172665:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinMentionStickerBlock_block",selections:[{alias:null,args:null,kind:"ScalarField",name:"endTime",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isRemoved",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"startTime",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSmallUrl",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"BlockStyle",kind:"LinkedField",name:"blockStyle",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"rotation",storageKey:null}],storageKey:null}],type:"StoryPinMentionStickerBlock",abstractKey:null};t.hash="9754fdf299e8958fcc42660ffe6c6155",e.exports=t},948529:e=>{"use strict";var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinPage_pin",selections:[{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinPage",kind:"LinkedField",name:"pages",plural:!0,selections:[{alias:"storyPageId",args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"layout",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shouldMute",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dominantColorAdjusted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignatureAdjusted",storageKey:null},{alias:null,args:null,concreteType:"PageStyle",kind:"LinkedField",name:"style",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"backgroundColor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:t=[{alias:null,args:null,kind:"ScalarField",name:"blockType",storageKey:null}],type:"StoryPinVideoBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"StoryPinMusicBlock",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"StoryPinBlock_page"}],type:"Pin",abstractKey:null};n.hash="b66792a47f0a1f6f3458affee6280c35",e.exports=n},109997:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinParagraphBlock_block",selections:[{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},{alias:null,args:null,concreteType:"TextStyle",kind:"LinkedField",name:"style",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"alignment",storageKey:null},{alias:null,args:null,concreteType:"Font",kind:"LinkedField",name:"font",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"defaultSize",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"letterSpacing",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"lineHeight",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fontSize",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hexColor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"highlightColor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"verticalAlignment",storageKey:null}],storageKey:null}],type:"ParagraphBlock",abstractKey:null};t.hash="b8a348287be5b70818ef7b7ccb39d819",e.exports=t},200300:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinPreviewText_pin",selections:[{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinBasics",kind:"LinkedField",name:"basics",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinKeyValueBlock",kind:"LinkedField",name:"keyValueBlocks",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"categoryType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"extractPreviewText_basics"}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null}],type:"Pin",abstractKey:null};t.hash="e90c3859c7387fc3b0a3a59572bac234",e.exports=t},578632:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinProductStickerBlock_block",selections:[{alias:null,args:null,kind:"ScalarField",name:"endTime",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isRemoved",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"startTime",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pinId",storageKey:null},{alias:null,args:null,concreteType:"BlockStyle",kind:"LinkedField",name:"blockStyle",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"rotation",storageKey:null}],storageKey:null}],type:"StoryPinProductStickerBlock",abstractKey:null};t.hash="084531623b2f67777d2e474859ff21c2",e.exports=t},884884:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinStickerBlockCloseup_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:'images(spec:"236x")'},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:null,args:null,concreteType:"OfferSummary",kind:"LinkedField",name:"offerSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"price",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"maxPrice",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="7e8d917850c8329247291df0d281a59b",e.exports=t},264074:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinStickerBlock_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",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},{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:null,args:null,concreteType:"OfferSummary",kind:"LinkedField",name:"offerSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"price",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"maxPrice",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"firstName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:'images(spec:"236x")'}],type:"Pin",abstractKey:null};t.hash="97a6e17f21fa95eedecad1971f9f2ea5",e.exports=t},458504:e=>{"use strict";var t,n,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinVideoBlock_block",selections:[{alias:null,args:null,concreteType:"BlockStyle",kind:"LinkedField",name:"blockStyle",plural:!1,selections:[t={alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinVideoMetadataFormatted",kind:"LinkedField",name:"videoData",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"version",value:"V_HLSV3_MOBILE"}],concreteType:"StoryPinVideoFormats",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vHLSV3MOBILE",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"duration",storageKey:null},t,{alias:null,args:null,kind:"ScalarField",name:"thumbnail",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},n,{alias:null,args:null,kind:"ScalarField",name:"captionsUrls",storageKey:null}],storageKey:null}],storageKey:'videoList(version:"V_HLSV3_MOBILE")'}],storageKey:null}],type:"StoryPinVideoBlock",abstractKey:null};i.hash="ec4888678fb26782fcb93aa6df7ecdc9",e.exports=i},936245:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinVirtualTryOnMakeupStickerBlock_block",selections:[{alias:null,args:null,kind:"ScalarField",name:"endTime",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isRemoved",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"startTime",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pinId",storageKey:null},{alias:null,args:null,concreteType:"BlockStyle",kind:"LinkedField",name:"blockStyle",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"rotation",storageKey:null}],storageKey:null}],type:"StoryPinVirtualTryOnMakeupStickerBlock",abstractKey:null};t.hash="2c07e1a8942151e5386e2c2786701f8e",e.exports=t},229325:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"SuppliesPage_story_pin_page",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"blockType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"amt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],type:"SupplyBlock",abstractKey:null}],storageKey:null}],type:"StoryPinPage",abstractKey:null};t.hash="73f16c3292b301b8d4f16a586c454df1",e.exports=t},329499:e=>{"use strict";var t,n,i,l,a,r,o,s={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"inviteCode"}],kind:"Fragment",metadata:null,name:"UnauthCloseupInviteUpsellQuery",selections:[{alias:null,args:n=[{kind:"Variable",name:"inviteCode",variableName:"inviteCode"}],concreteType:null,kind:"LinkedField",name:"v3GetInviteCodeQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[i={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"InviteCode",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"sender",plural:!1,selections:[l={alias:null,args:null,kind:"ScalarField",name:"firstName",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null}],storageKey:null}],type:"InviteCodeResponse",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"UnauthCloseupInviteUpsellQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"v3GetInviteCodeQuery",plural:!1,selections:[i,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"InviteCode",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"sender",plural:!1,selections:[l,a,r,o={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},o],storageKey:null}],type:"InviteCodeResponse",abstractKey:null}],storageKey:null}]},params:{id:"4610a8b7fe41310eb2db231b8c1171930d91f797fbc7fd321ec6682cb48a3711",metadata:{},name:"UnauthCloseupInviteUpsellQuery",operationKind:"query",text:null}};s.hash="6932152931fe069ad54b218e36e66908",e.exports=s,function(e){if("query"===e.params.operationKind){if(window.__pwsCacheRelayConcreteRequest)window.__pwsCacheRelayConcreteRequest(e);else{let t=[e.params.name,e.params.id].join(":");window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__=window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__||{},window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__[t]=e}}}(s)},561296:e=>{"use strict";var t={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"isAuth"}],kind:"Fragment",metadata:null,name:"UnauthContextMenuController_pin",selections:[{args:[{kind:"Variable",name:"isAuth",variableName:"isAuth"}],kind:"FragmentSpread",name:"UnauthContextMenu_pin"}],type:"Pin",abstractKey:null};t.hash="9cbce2e5d42ba48125c1151e618b033c",e.exports=t},2942:e=>{"use strict";var t,n,i,l,a,r,o=(l=[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],a=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],r={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"isAuth"}],kind:"Fragment",metadata:null,name:"UnauthContextMenu_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"category",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:"imageSpec_236",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:i=[n={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:'images(spec:"236x")'},{alias:"imageSpec_474",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:i,storageKey:'images(spec:"474x")'},{alias:"imageSpec_736",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:i,storageKey:'images(spec:"736x")'},{alias:null,args:null,kind:"ScalarField",name:"isUnsafe",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:l,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:l,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"originPinner",plural:!1,selections:l,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:l,storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{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},n],storageKey:null}]},{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:a,storageKey:null},t,{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:a,storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:a,storageKey:null},r],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"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},r,{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"videos",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoList",kind:"LinkedField",name:"videoList",plural:!1,selections:a,storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null});o.hash="0c601e5a81932b7e4ed3919f8fd378ef",e.exports=o},298748:e=>{"use strict";var t,n,i,l={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"UnauthDesktopContextMenu_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"category",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isUnsafe",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:n=[{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:n,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"originPinner",plural:!1,selections:n,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:n,storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!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},{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[t,i={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:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"pinTitle",storageKey:null}],storageKey:null}],storageKey:null},i,{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"videos",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoList",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"usePinImageUrls_pin"}],type:"Pin",abstractKey:null};l.hash="9927ced98afae08f50c02180203fa8b0",e.exports=l},951193:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"UserRep_pin",selections:[{args:null,kind:"FragmentSpread",name:"FollowButton_pin"}],type:"Pin",abstractKey:null};t.hash="3aa915f8ddd58c7ab54f435ed3309484",e.exports=t},445418:e=>{"use strict";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};t.hash="594237c2ea6ccfb8bbc0e3e8c62cac9f",e.exports=t},353070:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VaseFullBleedModal_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"privacy",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",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}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="2e464db34007ea4c1c0752bf62bbb542",e.exports=t},175322:e=>{"use strict";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,kind:"ScalarField",name:"link",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="dda341dce5f1fa956d1837dec35496de",e.exports=i},22528:e=>{"use strict";var t,n,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"extractPreviewText_basics",selections:[{alias:null,args:null,concreteType:"StoryPinListBlock",kind:"LinkedField",name:"listBlocks",plural:!0,selections:[t={alias:null,args:null,kind:"ScalarField",name:"heading",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:[t,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:n=[{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null}],type:"TextBlock",abstractKey:null},{kind:"InlineFragment",selections:n,type:"ParagraphBlock",abstractKey:null},{kind:"InlineFragment",selections:n,type:"HeadingBlock",abstractKey:null},{kind:"InlineFragment",selections:n,type:"LinkBlock",abstractKey:null},{kind:"InlineFragment",selections:n,type:"StoryPinImageBlock",abstractKey:null},{kind:"InlineFragment",selections:n,type:"StoryPinVideoBlock",abstractKey:null}],storageKey:null}],type:"StoryPinListBlock",abstractKey:null}],storageKey:null}],storageKey:null}],type:"StoryPinBasics",abstractKey:null};i.hash="70e84f7d1d0b4c8f0d2d282682155e30",e.exports=i},434444:e=>{"use strict";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};t.hash="35075da6e1f4b526ac4314727015c44d",e.exports=t},645791:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useClickthrough_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mobileLink",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackedLink",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"category",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"usePinImageUrls_pin"},{args:null,kind:"FragmentSpread",name:"useCommerceData_pin"}],type:"Pin",abstractKey:null};t.hash="3f29ffb1fba341866459b5981697a556",e.exports=t},115831:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useCommerceData_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isOosProduct",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isStaleProduct",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shoppingFlags",storageKey:null}],type:"Pin",abstractKey:null};t.hash="1b446350cec79dea7b3946321fdb0a52",e.exports=t},150148:e=>{"use strict";var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetFeedbackType_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"followedByMe",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"explicitlyFollowedByMe",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PinRecommendationReason",kind:"LinkedField",name:"recommendationReason",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"reason",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:t,storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};n.hash="09058e2c22f768d113516b357e48e9cd",e.exports=n},469656:e=>{"use strict";var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetNormalizedPinImage_pin",selections:[{alias:"imageSpec_564x",args:[{kind:"Literal",name:"spec",value:"564x"}],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:"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_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"orig")'},{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_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"236x")'}],type:"Pin",abstractKey:null};n.hash="3d7a6d04f923d00acfb2887f852aea16",e.exports=n},669926:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"usePinCarouselData_pin",selections:[{args:null,kind:"FragmentSpread",name:"usePinDefaultCarouselData_pin"},{args:null,kind:"FragmentSpread",name:"usePinProductCarouselData_pin"}],type:"Pin",abstractKey:null};t.hash="461a57fcc8f7958e3742c217e4cc45a2",e.exports=t},680880:e=>{"use strict";var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"usePinDefaultCarouselData_pin",selections:[{alias:null,args:null,concreteType:"PinCarouselData",kind:"LinkedField",name:"carouselData",plural:!1,selections:[{alias:null,args:null,concreteType:"PinCarouselSlot",kind:"LinkedField",name:"carouselSlots",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"details",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{alias:"image236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"Thumbnails",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:"236x")'},{alias:"image474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"474x")'},{alias:"image564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"564x")'},{alias:"image736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"736x")'},{alias:"slotId",args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"index",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};n.hash="a3cbf6d55cf89d97d6e04c32195968d9",e.exports=n},460863:e=>{"use strict";var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"usePinImageUrls_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:"url",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="b7ea441f2c20a68b323088ebe3847835",e.exports=n},283996:e=>{"use strict";var t,n,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"usePinProductCarouselData_pin",selections:[{alias:"image236x",args:[{kind:"Literal",name:"spec",value:"236x"}],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:"236x")'},{alias:"image474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"474x")'},{alias:"image564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"564x")'},{alias:"image736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"736x")'},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:n=[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:"productId",args:null,kind:"ScalarField",name:"id",storageKey:null},{args:null,kind:"FragmentSpread",name:"useRichPinProductMetadataCarouselSlots_richPinProductMetadata"}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:n,storageKey:null}],type:"Pin",abstractKey:null};i.hash="6588018e2880f2695fc6c4ba45aab606",e.exports=i},982182:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useReactionCountsFragment_pin",selections:[{alias:null,args:null,concreteType:"ReactionCountModel",kind:"LinkedField",name:"reactionCountsData",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"reactionType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reactionCount",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="11d828252f89045bc37e6aa5eb3fbea6",e.exports=t},240956:e=>{"use strict";var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useRichPinProductMetadataCarouselSlots_richPinProductMetadata",selections:[{alias:"image236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"AdditionalImagesPerSpec",kind:"LinkedField",name:"additionalImagesPerSpec",plural:!0,selections:t=[{alias:null,args:null,concreteType:"Thumbnails",kind:"LinkedField",name:"canonicalImage",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null}],storageKey:'additionalImagesPerSpec(spec:"236x")'},{alias:"image474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"AdditionalImagesPerSpec",kind:"LinkedField",name:"additionalImagesPerSpec",plural:!0,selections:t,storageKey:'additionalImagesPerSpec(spec:"474x")'},{alias:"image564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"AdditionalImagesPerSpec",kind:"LinkedField",name:"additionalImagesPerSpec",plural:!0,selections:t,storageKey:'additionalImagesPerSpec(spec:"564x")'},{alias:"image736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"AdditionalImagesPerSpec",kind:"LinkedField",name:"additionalImagesPerSpec",plural:!0,selections:t,storageKey:'additionalImagesPerSpec(spec:"736x")'}],type:"RichPinProductMetadata",abstractKey:null};n.hash="b49953855cdc69f6ee2c8d4925149d23",e.exports=n},269860:e=>{"use strict";var t,n,i,l,a,r,o,s,d,u,c,p,m,h,_,g,y,v,f,b,x,k,P,S,w,A,T,I,E,C,D=(t={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"seoViewCount",storageKey:null},u={alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"v720P",plural:!1,selections:d=[{alias:null,args:null,kind:"ScalarField",name:"thumbnail",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"duration",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"captionsUrls",storageKey:null}],storageKey:null},p=[{alias:null,args:null,kind:"ScalarField",name:"dominantColor",storageKey:null},s,c={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},r,o],m=[{kind:"Literal",name:"spec",value:"orig"}],h=[{kind:"Literal",name:"spec",value:"originals"}],_=[s,r,o],v=[g={alias:null,args:null,kind:"ScalarField",name:"blockType",storageKey:null},y={alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null}],x={kind:"InlineFragment",selections:b=[g,f={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],type:"IngredientBlock",abstractKey:null},k={kind:"InlineFragment",selections:b,type:"SupplyBlock",abstractKey:null},S={kind:"InlineFragment",selections:P=[y,g],type:"HeadingBlock",abstractKey:null},T={alias:null,args:null,kind:"ScalarField",name:"ratingCount",storageKey:null},I={alias:null,args:null,kind:"ScalarField",name:"reviewCount",storageKey:null},E={alias:null,args:null,kind:"ScalarField",name:"ratingValue",storageKey:null},C=[{alias:null,args:null,kind:"ScalarField",name:"m",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"h",storageKey:null}],{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useRichSnippetPin_pin",selections:[{alias:null,args:null,concreteType:"AggregatedPinData",kind:"LinkedField",name:"aggregatedPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"commentCount",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},t,n,{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"priceCurrency",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"descriptionHtml",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[i,l],storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"videos",plural:!1,selections:[a,{alias:null,args:null,concreteType:"VideoList",kind:"LinkedField",name:"videoList",plural:!1,selections:[u,{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vHLSV4",plural:!1,selections:d,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subtype",storageKey:null},c],storageKey:null},{alias:"imageSpec_60x60",args:[{kind:"Literal",name:"spec",value:"60x60"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:p,storageKey:'images(spec:"60x60")'},{alias:"imageSpec_136x136",args:[{kind:"Literal",name:"spec",value:"136x136"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:p,storageKey:'images(spec:"136x136")'},{alias:"imageSpec_170x",args:[{kind:"Literal",name:"spec",value:"170x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:p,storageKey:'images(spec:"170x")'},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:p,storageKey:'images(spec:"236x")'},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:p,storageKey:'images(spec:"474x")'},{alias:"imageSpec_564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:p,storageKey:'images(spec:"564x")'},{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:p,storageKey:'images(spec:"736x")'},{alias:"imageSpec_600x315",args:[{kind:"Literal",name:"spec",value:"600x315"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:p,storageKey:'images(spec:"600x315")'},{alias:"imageSpec_orig",args:m,concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:p,storageKey:'images(spec:"orig")'},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"totalVideoDuration",storageKey:null},{alias:null,args:null,concreteType:"StoryPinPage",kind:"LinkedField",name:"pages",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"layout",storageKey:null},{alias:"imageSpec_orig",args:h,concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:_,storageKey:'images(spec:"originals")'},{alias:"imageAdjustedSpec_orig",args:h,concreteType:"Thumbnails",kind:"LinkedField",name:"imagesAdjusted",plural:!1,selections:_,storageKey:'imagesAdjusted(spec:"originals")'},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:v,type:"TextBlock",abstractKey:null},x,k,{kind:"InlineFragment",selections:[g,y,{alias:null,args:null,concreteType:"StoryPinVideoMetadataFormatted",kind:"LinkedField",name:"videoData",plural:!1,selections:[a,{alias:"videoListMobile",args:[{kind:"Literal",name:"version",value:"V_HLSV3_MOBILE"}],concreteType:"StoryPinVideoFormats",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vHLSV3MOBILE",plural:!1,selections:d,storageKey:null}],storageKey:'videoList(version:"V_HLSV3_MOBILE")'},{alias:"videoListEXP3",args:[{kind:"Literal",name:"version",value:"V_EXP3"}],concreteType:"StoryPinVideoFormats",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vEXP3",plural:!1,selections:d,storageKey:null}],storageKey:'videoList(version:"V_EXP3")'},{alias:"videoListEXP4",args:[{kind:"Literal",name:"version",value:"V_EXP4"}],concreteType:"StoryPinVideoFormats",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vEXP4",plural:!1,selections:d,storageKey:null}],storageKey:'videoList(version:"V_EXP4")'},{alias:"videoListEXP5",args:[{kind:"Literal",name:"version",value:"V_EXP5"}],concreteType:"StoryPinVideoFormats",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vEXP5",plural:!1,selections:d,storageKey:null}],storageKey:'videoList(version:"V_EXP5")'},{alias:"videoListEXP6",args:[{kind:"Literal",name:"version",value:"V_EXP6"}],concreteType:"StoryPinVideoFormats",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vEXP6",plural:!1,selections:d,storageKey:null}],storageKey:'videoList(version:"V_EXP6")'},{alias:"videoListEXP7",args:[{kind:"Literal",name:"version",value:"V_EXP7"}],concreteType:"StoryPinVideoFormats",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vEXP7",plural:!1,selections:d,storageKey:null}],storageKey:'videoList(version:"V_EXP7")'},{alias:"videoList720P",args:[{kind:"Literal",name:"version",value:"V_720P"}],concreteType:"StoryPinVideoFormats",kind:"LinkedField",name:"videoList",plural:!1,selections:[u],storageKey:'videoList(version:"V_720P")'}],storageKey:null}],type:"StoryPinVideoBlock",abstractKey:null},{kind:"InlineFragment",selections:[g,y,{alias:"imageSpec_orig",args:m,concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:_,storageKey:'images(spec:"orig")'}],type:"StoryPinImageBlock",abstractKey:null},{kind:"InlineFragment",selections:v,type:"ParagraphBlock",abstractKey:null},S],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"pinTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"templateType",storageKey:null},{alias:null,args:null,concreteType:"StoryPinBasics",kind:"LinkedField",name:"basics",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinKeyValueBlock",kind:"LinkedField",name:"keyValueBlocks",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"categoryType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinListBlock",kind:"LinkedField",name:"listBlocks",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"heading",storageKey:null},g,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[w={kind:"InlineFragment",selections:P,type:"TextBlock",abstractKey:null},x,k,A={kind:"InlineFragment",selections:P,type:"ParagraphBlock",abstractKey:null},S,{kind:"InlineFragment",selections:[g,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[w,x,k,A,S],storageKey:null}],type:"StoryPinListBlock",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[n,t,r,{alias:null,args:null,kind:"ScalarField",name:"siteName",storageKey:null},{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"datePublished",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AggregateRatingMetadata",kind:"LinkedField",name:"aggregateRating",plural:!1,selections:[T,I,E],storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:[f,{alias:null,args:null,kind:"ScalarField",name:"fromAggregatedData",storageKey:null},{alias:null,args:null,concreteType:"ServingsSummary",kind:"LinkedField",name:"servingsSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"serves",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"summary",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CookTimes",kind:"LinkedField",name:"cookTimes",plural:!1,selections:[{alias:null,args:null,concreteType:"CookTime",kind:"LinkedField",name:"total",plural:!1,selections:C,storageKey:null},{alias:null,args:null,concreteType:"CookTime",kind:"LinkedField",name:"cook",plural:!1,selections:C,storageKey:null},{alias:null,args:null,concreteType:"CookTime",kind:"LinkedField",name:"prep",plural:!1,selections:C,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AggregateRatingMetadata",kind:"LinkedField",name:"aggregateRating",plural:!1,selections:[E,T,{alias:null,args:null,kind:"ScalarField",name:"bestRating",storageKey:null},I],storageKey:null},{alias:null,args:null,concreteType:"CategorizedIngredientsMetadata",kind:"LinkedField",name:"categorizedIngredients",plural:!0,selections:[{alias:null,args:null,concreteType:"ParsedIngredientMetadata",kind:"LinkedField",name:"ingredients",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"amt",storageKey:null},f],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[f,{alias:null,args:null,concreteType:"OfferSummary",kind:"LinkedField",name:"offerSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"minPrice",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"price",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"maxPrice",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shareCount",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:[l,i,{alias:null,args:null,kind:"ScalarField",name:"profileUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"followerCount",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ReactionCountModel",kind:"LinkedField",name:"reactionCountsData",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"reactionCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reactionType",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:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:[l],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"seoCanonicalUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seoCanonicalDomain",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackedLink",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seoTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seoDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seoUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seoNoindexReason",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"repinCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"category",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[r],storageKey:null},{args:null,kind:"FragmentSpread",name:"useAnnotationsWithLinksFragment_pin"}],type:"Pin",abstractKey:null});D.hash="7cecf818f28b335d55b7ae8cd97b4e3c",e.exports=D},697780:e=>{"use strict";var t,n,i,l,a,r={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useStoryPinPageImages",selections:[{alias:"imageSpec_750x",args:t=[{kind:"Literal",name:"spec",value:"750x"}],concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:n=[{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:"750x")'},{alias:"imageSpec_236x",args:i=[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:n,storageKey:'images(spec:"236x")'},{alias:"imageSpec_1200x",args:l=[{kind:"Literal",name:"spec",value:"1200x"}],concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:n,storageKey:'images(spec:"1200x")'},{alias:"imageSpec_orig",args:a=[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:n,storageKey:'images(spec:"orig")'},{alias:"imageAdjustedSpec_750x",args:t,concreteType:"Thumbnails",kind:"LinkedField",name:"imagesAdjusted",plural:!1,selections:n,storageKey:'imagesAdjusted(spec:"750x")'},{alias:"imageAdjustedSpec_236x",args:i,concreteType:"Thumbnails",kind:"LinkedField",name:"imagesAdjusted",plural:!1,selections:n,storageKey:'imagesAdjusted(spec:"236x")'},{alias:"imageAdjustedSpec_1200x",args:l,concreteType:"Thumbnails",kind:"LinkedField",name:"imagesAdjusted",plural:!1,selections:n,storageKey:'imagesAdjusted(spec:"1200x")'},{alias:"imageAdjustedSpec_orig",args:a,concreteType:"Thumbnails",kind:"LinkedField",name:"imagesAdjusted",plural:!1,selections:n,storageKey:'imagesAdjusted(spec:"orig")'}],type:"StoryPinPage",abstractKey:null};r.hash="c766f3f12008fe7e57798edf4ada1bd0",e.exports=r},721538:e=>{"use strict";var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useStructuredDescriptionFragment_pin",selections:[{alias:null,args:null,concreteType:"FormattedCloseupDescription",kind:"LinkedField",name:"formattedCloseupDescription",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"components",plural:!0,selections:[{kind:"InlineFragment",selections:[{alias:"stringContent",args:null,kind:"ScalarField",name:"content",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],type:"DescriptionString",abstractKey:null},{kind:"InlineFragment",selections:[t,{alias:"pointsContent",args:null,kind:"ScalarField",name:"content",storageKey:null}],type:"DescriptionPoints",abstractKey:null},{kind:"InlineFragment",selections:[t,{alias:"specsContent",args:null,concreteType:"DescriptionSpecDetail",kind:"LinkedField",name:"content",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null}],type:"DescriptionSpecs",abstractKey:null},{kind:"InlineFragment",selections:[t,{alias:"tableContent",args:null,kind:"ScalarField",name:"content",storageKey:null}],type:"DescriptionTable",abstractKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};n.hash="be1864520883fcc12e69e99c1323d274",e.exports=n},182750:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var i=n(667294),l=n(968337),a=n.n(l),r=n(610248),o=n(883119),s=n(595371),d=n(954931),u=n(89254),c=n(785893);let p=new(a());p.tlds(r),p.add("#",{validate(e,t,n){let i=e.slice(t);return(n.re.hashtag||(n.re.hashtag=RegExp("^([a-zA-Z0-9_]){1,15}(?!_)(?=$|"+n.re.src_ZPCc+")")),n.re.hashtag.test(i))?(!(t>=2)||"#"!==i[t-2])&&i.match(n.re.hashtag)[0].length:0},normalize(e){e.url=`https://pinterest.com/search/pins/?q=${encodeURIComponent(e.text)}&rs=${s.i.HASHTAG_PINREP}`}});let m=e=>p.match(e),h=({decoratedHref:e,decoratedText:t,index:n,isTrusted:i})=>(0,c.jsx)(o.rU,{href:e,onClick:({event:e})=>{e.stopPropagation()},target:i?null:"blank",children:t},n);class _ extends i.PureComponent{parseString(e){if(""===e)return e;let t=m(e);if(!t)return e;let n=[],i=0;return t.forEach((t,l)=>{t.index>i&&n.push(e.substring(i,t.index));let a=t.url,r=(0,d.Z)(t.url)&&!t.url.match(/help.pinterest/g);if(r){let e=(0,u.Z)(t.url);a=a.replace(e.origin,"")}let{text:o}=t,s=(0,c.jsx)(h,{decoratedHref:a,decoratedText:o,index:l,isTrusted:r});n.push(s),i=t.lastIndex}),e.length>i&&n.push(e.substring(i)),1===n.length?n[0]:n}parse(e,t=0){return"string"==typeof e?this.parseString(e):(0,i.isValidElement)(e)&&"a"!==e.type&&"button"!==e.type?(0,i.cloneElement)(e,{key:t},this.parse(e.props.children)):Array.isArray(e)?e.map((e,t)=>this.parse(e,t)):e}render(){return(0,c.jsx)("span",{children:this.parse(this.props.children)})}}},964569:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(702664),l=n(214494),a=n(139405),r=n(664569),o=n(600147),s=n(956800),d=n(274415),u=n(492583);let c={[r.o.aggregatedComment]:"AggregatedCommentReplyResource",[r.o.pin]:"AggregatedCommentResource",[r.o.didIt]:"DidItCommentsResource"};function p(){let e=(0,i.useDispatch)(),{aggregatedCommentCreated:t,updateCommentCount:n}=(0,a.nf)();return async({force:i=!0,fromUnifiedComment:a,objectId:r,objectType:p,orbacSubjectId:m,pinId:h,replyToCommentId:_,tags:g,text:y})=>{let v=c[p],f={force:i,objectId:r,pinId:h,tags:g,text:y,replyToCommentId:_,...m?{orbacSubjectId:m}:{}},b=u.Z.AGGREGATED_COMMENTS;a&&(b="pin"===p?u.Z.UNIFIED_COMMENTS:u.Z.AGGREGATED_COMMENT_REPLIES);let x=await l.Z.create(v,f).callCreate({showError:!1}),k=x.resource_response.data;return t(r,k),e((0,s.vX)({feedType:b,feedId:r,itemIds:[k.id],itemType:k.type,prepend:!0})),"pin"===p&&h?e((0,d.R)(h,1)):"aggregatedComment"===p?n(r,1):e((0,o.L8)(r,1)),k.id||x}}},28754:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(702664),l=n(214494),a=n(541776),r=n(139405),o=n(600147),s=n(956800),d=n(274415),u=n(492583);function c(){let e=(0,i.useDispatch)(),{aggregatedCommentDeleted:t,updateCommentCount:n}=(0,r.nf)();return async({aggregatedCommentId:i,aggregatedPinId:r,feedType:c,orbacSubjectId:p,parentId:m,type:h,updateParentCommentCount:_,pinId:g})=>{await l.Z.create("AggregatedCommentResource",{commentId:i,...p?{orbacSubjectId:p}:{}}).callDelete({showError:!1}),m&&(e((0,s.EX)({feedId:r||m,feedType:c||u.Z.AGGREGATED_COMMENTS,itemIds:[i],itemType:"aggregatedcomment"})),t(m,i),_&&(h||0===h)&&(h===a.Rv.TOP&&g?e((0,d.R)(g,-1)):h===a.Rv.REPLY_TO_AGGREGATED?n(m,-1):e((0,o.L8)(m,-1))))}}},790904:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(667294),l=n(883119),a=n(785893);function r({accessibilityLabel:e,handleClick:t,icon:n,iconColor:r,iconOnly:o,testId:s,buttonText:d,tabIndex:u}){let[c,p]=(0,i.useState)(!1),m=(0,i.useRef)(null),h=()=>{p(e=>!e),t()},_=e=>{var t;m&&e.target instanceof Element&&!(null!==(t=m.current)&&void 0!==t&&t.contains(e.target))&&p(!1)};return(0,i.useEffect)(()=>(window.addEventListener("mousedown",_),()=>{window.removeEventListener("mousedown",_)}),[]),(0,a.jsx)(l.xu,{"data-test-id":s||"closeup-action-bar-button",children:(0,a.jsxs)(l.kC,{alignItems:"center",justifyContent:"start",children:[(0,a.jsx)(l.hU,{accessibilityLabel:e,iconColor:r||"darkGray",onClick:h,selected:c,icon:n,size:o?"md":"lg",ref:m,tabIndex:u}),d&&(0,a.jsx)(l.iP,{onTap:h,rounding:2,children:(0,a.jsx)(l.X6,{color:"light",overflow:"normal",size:"400",children:d})})]})})}},930912:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var i=n(667294),l=n(616550),a=n(773285);function r({surfaceType:e}){let{checkExperiment:t}=(0,a.F)();return"flashlight"===e&&(t("web_flashlight_cta").anyEnabled||t("web_flashlight_cta_expansion").anyEnabled)||"stela"===e&&t("web_stela_cta").anyEnabled||"stl"===e&&(t("web_flashlight_cta").anyEnabled||t("web_flashlight_cta_expansion").anyEnabled||t("web_stela_cta").anyEnabled)}var o=n(898781),s=n(780280),d=n(883119),u=n(483205),c=n(785893);function p({buttonText:e,onButtonClick:t,handleAnimationEnd:n,iconType:i,styleOptions:l,textRef:a,textColor:r}){let s=(0,o.ZP)();return(0,c.jsx)(d.iP,{accessibilityLabel:s._('Click to shop', 'closeup.shopButton', 'Button label for shop icon'),onTap:t,rounding:"circle",children:(0,c.jsx)(d.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(255, 255, 255, 0.8)"}},"data-test-id":"shop-button",display:"flex",justifyContent:"center",minHeight:u.Nv,minWidth:u.Nv,onAnimationEnd:n,padding:3,position:"relative",rounding:"pill",children:(0,c.jsxs)(d.kC,{alignItems:"stretch",justifyContent:"center",children:[(0,c.jsx)(d.xu,{dangerouslySetInlineStyle:{__style:l.buttonStyle},children:e&&(0,c.jsx)(d.xu,{ref:null!=a?a:void 0,dangerouslySetInlineStyle:{__style:l.textStyle},children:(0,c.jsx)(d.xv,{color:r,weight:"bold",children:e})})}),(0,c.jsx)(d.xu,{position:"absolute",dangerouslySetInlineStyle:{__style:{bottom:(u.Nv-u.ZG)/2,right:(u.Nv-u.ZG)/2}},children:(0,c.jsx)(d.JO,{accessibilityLabel:s._('Click to shop', 'closeup.shopButton', 'Button label for shop icon'),color:"default",icon:i,size:u.ZG})})]})})})}var m=n(112690),h=n(391254),_=n(335174),g=n(622096),y=n(50286),v=n(829407),f=n(297852),b=n(872482);function x({actionUrl:e,animateShopButton:t,id:n,imageSignature:d,onAnimationComplete:u,surfaceType:x}){let k=(0,i.useRef)(),P=(0,m.Z)(),S=r({surfaceType:x}),w=(0,l.useHistory)(),[A,T]=(0,i.useState)(),[I,E]=(0,i.useState)(),[C,D]=(0,i.useState)(),j=function({surfaceType:e,showButton:t}){let n=(0,o.ZP)(),{isAuthenticated:i}=(0,s.B)(),l=r({surfaceType:e});if(!t)return null;if(!i)return n._('Image search', 'closeup.visualSearchButton.flashlightVariant1', 'clicking on this text will open a visual search feed');if(l)return n._('Image search', 'closeup.shopButton.similarProducts', 'clicking on this text will open a feed similar shoppable Pins');switch(e){case"stela":return n._('Shop similar items', 'closeup.shopButton.similarProducts', 'clicking on this text will open a feed similar shoppable Pins');case"stl":return n._('Shop this look', 'closeup.overlay.stl.shopButtonText', 'clicking on this text will show the stl flyout with exact match products');case"flashlight":return"";default:return null}}({surfaceType:x,showButton:t}),{isAuthenticated:F}=(0,s.B)(),R=(0,y.ml)(),L=(0,b.a)(),{checkExperiment:z}=(0,a.F)();return(0,v.Z)(()=>{"stl"===x?P({event_type:120,element:11963,view_type:3,aux_data:{image_signature:d}}):P({event_type:120,component:128,element:234,view_type:3,aux_data:{image_signature:d}})}),(0,i.useEffect)(()=>{if(k.current&&!A&&t){let e=k.current.getBoundingClientRect().width;e&&T(e)}},[k,A,t]),(0,i.useEffect)(()=>{t&&(E("shopButtonSlideInThenOut 3s ease-in-out forwards"),D("stelaSlideInThenOut 3s ease-in-out forwards"))},[t]),(0,c.jsxs)(i.Fragment,{children:[(0,c.jsx)(h.Z,{unsafeCSS:(0,_.Z)(A||0)}),(0,c.jsx)(p,{buttonText:j,handleAnimationEnd:u,iconType:"flashlight"===x||S?"flashlight":"shopping-bag",onButtonClick:()=>{g.Z.setItem("VISUAL_SEARCH_SOURCE","FLASH_LIGHT_BUTTON"),["flashlight","stela"].includes(x)&&P({event_type:101,component:128,element:234,view_type:3,aux_data:{image_signature:d}}),!F&&R&&L&&!z("mweb_unauth_remove_visual_search_app_upsell").anyEnabled?L.setShouldShowVisualSearchAppUpsell(!0):e&&null!=x?w.push(e):w.push((0,f.Z)({pinId:n,isProductPage:!1,surfaceType:x}))},styleOptions:{buttonStyle:{animation:I},textStyle:{animation:C,whiteSpace:"nowrap"}},textColor:"default",textRef:k})]})}},237693:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(667294),l=n(883119),a=n(898781),r=n(773285),o=n(780280),s=n(785893);function d({collapsed:e,displayViewState:t,forceTappableHeader:n,headerPaddingRight:d,headerPreview:u,heading:c,onClick:p,showArrow:m}){let h=(0,a.ZP)(),{checkExperiment:_}=(0,r.F)(),{isAuthenticated:g}=(0,o.B)(),y=g?_("auth_closeup_redesign").anyEnabled:_("unauth_closeup_redesign").anyEnabled;return(0,s.jsx)(i.Fragment,{children:n||null!==t?(0,s.jsx)(l.iP,{onTap:p,children:(0,s.jsxs)(l.kC,{alignItems:"center",dataTestId:"collapsible-header",direction:"row",flex:"grow",justifyContent:"between",children:[(0,s.jsx)(l.X6,{align:"start",size:y?"300":"400",accessibilityLevel:2,id:"comments-heading",children:c}),(0,s.jsxs)(l.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{paddingRight:d}},direction:"row",display:"flex",children:[e&&u,m&&(0,s.jsx)(l.xu,{"data-test-id":"collapse-button",display:"flex",marginStart:u?4:0,width:48,alignItems:"center",justifyContent:"center",children:(0,s.jsx)(l.JO,{accessibilityLabel:h._('Expand icon', 'accordion.actionButton', 'accessibility label on accordion'),color:"default",icon:e?"arrow-down":"arrow-up"})})]})]})}):(0,s.jsx)(l.X6,{align:"start",size:"400",accessibilityLevel:2,id:"comments-heading",children:c})})}},945544:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(883119),l=n(509278),a=n(440455),r=n(773285),o=n(785893);function s({description:e,userMentionTags:t}){let{checkExperiment:n}=(0,r.F)(),s=n("web_hashtags_in_description_display").anyEnabled,d=e=>e.replace(/\s+/g," "),u=e.split(/\n/)||[];return u.map((e,n)=>0===n&&null!=t&&t.length?(0,o.jsx)(a.Z,{description:d(e),userMentionTags:t}):(0,o.jsx)(i.xu,{children:(0,l.Z)({isHashtagInDescriptionDisplayEnabled:s,text:e})}))}},459263:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(667294),l=n(883119),a=n(407043),r=n(121151),o=n(898781),s=n(391254),d=n(785893);function u({handlePause:e,handlePlay:t,musicAttributions:n,shouldMute:u,showEndCard:c}){let p=(0,o.ZP)(),{logContextEvent:m}=(0,a.v)(),[h,_]=(0,i.useState)(!1);if((0,i.useEffect)(()=>{!c&&(null!=n&&n.length||u)&&m({event_type:u?14600:14601,view_type:3,view_parameter:140})},[m,n,u,c]),c||!(null!=n&&n.length)&&!u)return null;let g=()=>{t&&t(),_(!1)},y="";if((null==n?void 0:n.length)===1){let{artist:e="",title:t=""}=n[0];y=e&&t?`${e} - ${t}`:""}let v=((null==n?void 0:n.length)||0)>=2?(0,d.jsx)(l.xu,{children:(0,d.jsx)(l.iP,{fullHeight:!0,fullWidth:!0,onTap:()=>{e&&e(),_(!0)},children:(0,d.jsxs)(l.kC,{alignItems:"stretch",justifyContent:"start",children:[(0,d.jsx)(l.xu,{marginEnd:2,children:(0,d.jsx)(l.JO,{inline:!0,accessibilityLabel:p._('Music icon', 'web.closeup.musicicon', 'Artist and song title for Pin music attribution'),color:"inverse",icon:u?"music-off":"music-on",size:12})}),(0,d.jsx)(l.xv,{inline:!0,color:"inverse",overflow:"noWrap",size:"100",children:p._('View the playlist', 'web.closeup.musicAttibutionModal.entryPoint', 'Entry point for playlist modal')})]})})}):(0,d.jsxs)(i.Fragment,{children:[(0,d.jsx)(l.JO,{inline:!0,accessibilityLabel:p._('Music icon', 'web.pin.closeup.musicicon', 'Music icon for Pin music attribution'),color:"inverse",icon:u?"music-off":"music-on",size:12}),(0,d.jsx)(l.xu,{marginStart:2,overflow:"hidden",children:(0,d.jsxs)("span",{className:y.length>=50?"marquee":void 0,style:{display:"inline-block",maxWidth:y.length>=50?"260px":void 0},children:[(0,d.jsx)(l.xv,{inline:!0,color:"inverse",overflow:"noWrap",size:"100",children:y}),(0,d.jsx)(s.Z,{unsafeCSS:`
39
+ .marquee {
40
+ animation: marquee 10s linear infinite;
41
+ animation-delay: 2s;
42
+ }
43
+
44
+ .marquee:hover {
45
+ animation-play-state: paused;
46
+ }
47
+
48
+
49
+ @keyframes marquee {
50
+ 0% {
51
+ transform: translateX(0%);
52
+ }
53
+ 50% {
54
+ transform: translateX(-100%);
55
+ }
56
+ 100% {
57
+ transform: translateX(0%);
58
+ }
59
+ }
60
+ `})]})})]});return(0,d.jsxs)(i.Fragment,{children:[u?(0,d.jsx)(i.Fragment,{children:(0,d.jsxs)(l.kC,{alignItems:"stretch",justifyContent:"start",children:[(0,d.jsx)(l.xu,{marginEnd:2,children:(0,d.jsx)(l.JO,{inline:!0,accessibilityLabel:p._('Music icon', 'web.closeup.musicMutedIcon', 'Music muted icon for Pin music attribution'),color:"inverse",icon:"music-off",size:12})}),(0,d.jsx)(l.xv,{inline:!0,color:"inverse",overflow:"noWrap",size:"100",children:p._('Audio not available in your location', 'web.closeup.musicAttribution', 'Informational message to tell user audio is not available in their location')})]})}):v,h&&(0,d.jsx)(r.ZP,{accessibilityModalLabel:p._('Artist and song title for this Pin', 'web.closeup.musicAttibutionModal', 'Artist and song title for Pin music attribution'),heading:(0,d.jsxs)(l.kC,{justifyContent:"between",children:[(0,d.jsx)(l.X6,{size:"500",children:p._('Playlist for this video', 'web.closeup.musicAttibutionModal.heading', 'Title for music attribution modal')}),(0,d.jsx)(l.hU,{accessibilityLabel:p._('Close modal button', 'web.closeup.musicAttibutionModal.closeButton', 'Close modal button for music attribution modal'),bgColor:"white",icon:"cancel",iconColor:"darkGray",onClick:g,size:"sm"})]}),onDismiss:g,children:(0,d.jsx)(l.xu,{paddingX:5,marginBottom:5,paddingY:1,children:null==n?void 0:n.map(({isrc:e,thumbnail_image_url:t,title:n,artist:i},a)=>(0,d.jsxs)(l.xu,{display:"flex",padding:1,children:[(0,d.jsx)(l.xu,{color:"darkWash",height:60,rounding:7,width:60,children:(0,d.jsx)(l.Ee,{alt:p._('Image of album art', 'web.closeup.musicAttibutionModal.albumArt', 'Alt text for image of album art for associated song'),color:"darkWash",naturalWidth:1,naturalHeight:1,src:t||""})}),(0,d.jsxs)(l.xu,{display:"flex",direction:"column",justifyContent:"center",paddingX:2,children:[(0,d.jsx)(l.xv,{weight:"bold",children:null!=n?n:""}),(0,d.jsx)(l.xv,{size:"100",children:null!=i?i:""})]})]},e||`${a}`))})})]})}},565212:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(667294),l=n(883119),a=n(288889),r=n(898781),o=n(854907),s=n(788645),d=n(785893);function u({isDarkMode:e,onPress:t,testID:n,label:i}){return(0,d.jsx)(l.xu,{display:"inlineBlock",dangerouslySetInlineStyle:{__style:{background:e?"black":"white"}},"data-test-id":n,children:(0,d.jsx)(l.iP,{fullWidth:!1,onTap:t,children:(0,d.jsxs)(l.xv,{size:a.n,weight:"bold",children:["\xa0...\xa0",i]})})})}function c({children:e,isDarkMode:t,descriptionDir:n}){let c=(0,i.useRef)(null),[p,m]=(0,i.useState)({isFirstLoad:!0,isTruncated:!1,showToggle:!1}),{isFirstLoad:h,isTruncated:_,showToggle:g}=p,y=(0,r.ZP)();return(0,i.useEffect)(()=>{if(h&&c.current){var e;let t=(0,o.xW)(c.current),n=(e=c.current).offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth;m({isTruncated:n,isFirstLoad:!1,showToggle:t>=3&&n})}},[h,_]),(0,d.jsx)(l.xu,{position:"relative","data-test-id":"truncated-description",flex:"grow",children:(0,d.jsx)(s.Z,{dir:n,children:(0,d.jsxs)(l.xv,{size:a.n,ref:c,lineClamp:h||_?3:0,align:"ltr"===n?"forceLeft":void 0,children:[e,g?(0,d.jsx)(i.Fragment,{children:_?(0,d.jsx)(l.xu,{position:"absolute",bottom:!0,right:!0,children:(0,d.jsx)(u,{label:y._('more', 'storyPin.previewText.more', 'Story pin preview more text truncation'),onPress:()=>m({...p,isTruncated:!1}),testID:"more-description-container",isDarkMode:t})}):(0,d.jsx)(u,{label:y._('less', 'storyPin.previewText.less', 'Story pin preview less text truncation'),onPress:()=>m({...p,isTruncated:!0}),testID:"less-description-container",isDarkMode:t})}):null]})})})}},280348:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(667294),l=n(883119),a=n(238464),r=n(407043),o=n(898781),s=n(428258),d=n(785893);class u extends i.PureComponent{constructor(...e){var t,n,i;super(...e),t="startAudiblePlayTime",n=this.props.muted?null:new Date,(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n}componentDidUpdate(e){e.muted!==this.props.muted&&(this.startAudiblePlayTime=this.props.muted?null:new Date)}componentWillUnmount(){let{musicRecordingId:e,muted:t,pinId:n,video:i}=this.props;if(e&&!t&&this.startAudiblePlayTime){let t=new Date-this.startAudiblePlayTime;if(t>=2e3){var l,a,r,o,d,u,c;let{hlsv3:t,mp4:p}=(0,s.ZP)({vEXP3:null===(l=i.video_list)||void 0===l?void 0:l.V_EXP3,vEXP4:null===(a=i.video_list)||void 0===a?void 0:a.V_EXP4,vEXP5:null===(r=i.video_list)||void 0===r?void 0:r.V_EXP5,vEXP6:null===(o=i.video_list)||void 0===o?void 0:o.V_EXP6,vEXP7:null===(d=i.video_list)||void 0===d?void 0:d.V_EXP7,v720P:null===(u=i.video_list)||void 0===u?void 0:u.V_720P,vHLSV3MOBILE:null===(c=i.video_list)||void 0===c?void 0:c.V_HLSV3_MOBILE})||{},m=p||t,h=(null==m?void 0:m.duration)||0;this.props.logContextEvent({event_type:8999,object_id_str:e,aux_data:{pin_id:n,story_pin_music_duration:h}})}}}render(){var e,t,n,i,r,o,u,c;let{activePageIndex:p,blockHeight:m,blockWidth:h,closeupStoryPinViewability:_,customEndCard:g,isPlaying:y,muted:v,onEnded:f,onUpdateVideoInfo:b,pageIndex:x,pinId:k,roundCorners:P=!0,video:S,videoThumbnailStartTime:w}=this.props,{hlsv3:A,mp4:T}=null!==(e=(0,s.ZP)({vEXP3:null===(t=S.video_list)||void 0===t?void 0:t.V_EXP3,vEXP4:null===(n=S.video_list)||void 0===n?void 0:n.V_EXP4,vEXP5:null===(i=S.video_list)||void 0===i?void 0:i.V_EXP5,vEXP6:null===(r=S.video_list)||void 0===r?void 0:r.V_EXP6,vEXP7:null===(o=S.video_list)||void 0===o?void 0:o.V_EXP7,v720P:null===(u=S.video_list)||void 0===u?void 0:u.V_720P,vHLSV3MOBILE:null===(c=S.video_list)||void 0===c?void 0:c.V_HLSV3_MOBILE}))&&void 0!==e?e:{},I=T||A;if(!I)return null;let{height:E,thumbnail:C,width:D}=I,j=(null!=D?D:1)/(null!=E?E:1),F={height:"100%",left:"0",top:"0",width:"100%"},R=h/m;if(Math.abs(R-j)>.01){if(R<j){let e=100*j/R;F.width=`${e}%`,F.left=`-${(e-100)/2}%`}else if(R>j){let e=100*R/j;F.height=`${e}%`,F.top=`-${(e-100)/2}%`}}let L="number"==typeof p&&x<=p+3;return(0,d.jsx)(l.xu,{height:m,overflow:"hidden",position:"relative",width:h,children:(0,d.jsx)(l.xu,{height:"100%",position:"absolute",width:"100%",children:L||y||w?(0,d.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:F},position:"absolute",children:(0,d.jsx)(a.Z,{loop:!1,autoplay:y,closeupStoryPinViewability:_,contextLogData:{component:0===x?227:228,element:10957,objectId:k,story_pin_page_id:x,view:3,viewParameter:157},customThumbnail:C,customEndCard:g,isPromoted:!1,muted:v,pinId:k,showControls:"never",variant:"storyPin",preferMp4:!!T,objectFit:T?"cover":void 0,roundingOverride:P?null:0,video:{id:S.id,hlsv3:A,mp4:T},onTimeChange:({time:e})=>{if(b&&"number"==typeof I.duration&&I.duration>0){let t=I.duration/1e3;b({currentTime:e,duration:t})}},onEnded:()=>{f&&f(x)},videoThumbnailStartTime:w})}):(0,d.jsx)(l.Ee,{alt:this.props.i18n._('Video cover image', 'closeup.storyPin.videoCover', 'cover image displayed for a video'),fit:"cover",naturalHeight:null!=E?E:1,naturalWidth:null!=D?D:1,src:null!=C?C:""})})})}}function c(e){let{logContextEvent:t}=(0,r.v)(),n=(0,o.ZP)();return(0,d.jsx)(u,{...e,i18n:n,logContextEvent:t})}},386352:(e,t,n)=>{"use strict";n.d(t,{_B:()=>U,Xw:()=>H,tD:()=>V,ZP:()=>q}),n(167912);var i,l,a=n(883119),r=n(616550),o=n(407043),s=n(784590),d=n(252417),u=n(785893);let c=({block:{block_style:{height:e=0,width:t=0,x_coord:n=0,y_coord:i=0,rotation:l=0}={},original_comment_id:c},pageAspectRatio:p,scaleFactor:m})=>{let{logContextEvent:h}=(0,o.v)(),_=U/p,g=(0,r.useHistory)(),{data:y}=(0,s.Z)({name:"AggregatedCommentResource",options:{commentId:c,field_set_key:"comment_reply_sticker"}});return(0,u.jsx)(a.xu,{display:"flex",dangerouslySetInlineStyle:{__style:{left:n*U*m/100,top:i*_*m/100,transform:`rotate(${l}deg)`}},height:e*_*m/100,position:"absolute",width:t*U*m/100,rounding:2,zIndex:d.B5,padding:1,margin:-1,children:(0,u.jsx)(a.iP,{onTap:()=>{h({event_type:102,view_type:1,component:227,element:12541,aux_data:{comment_id:c}}),null!=y&&y.pin_id&&g.push(`/pin/${y.pin_id}/comments/${c||""}`)},rounding:"pill"})})};var p=n(523657),m=n(902355);function h({src:e,fallbackSrc:t,...n}){let i=(0,m.Z)(e);return(0,u.jsx)(p.Z,{...n,src:i?e:t})}var _=n(702664);function g({isUseCache:e,signature:t}){return(0,_.useSelector)(({pinbuilder:n})=>{let{storyPinItemBlocks:i}=n;if(!e)return null;for(let e of Object.keys(i)){var l,a;if((null===(l=i[e].media)||void 0===l?void 0:l.signatureEdited)===t||(null===(a=i[e].media)||void 0===a?void 0:a.signature)===t)return i[e]}return null})}var y=n(667294),v=n(964569),f=n(237056),b=n(121151),x=n(898781),k=n(664569);let P=({aggregatedCommentId:e,onDismiss:t})=>{let n=(0,x.ZP)(),i=(0,f.Z)(),l=(0,v.Z)(),[r,o]=(0,y.useState)(""),s=(0,u.jsx)(a.kC,{justifyContent:"end",children:(0,u.jsx)(a.zx,{color:"red",disabled:!r,onClick:()=>{(async()=>{await l({fromUnifiedComment:!0,objectType:k.o.aggregatedComment,objectId:e,tags:"[]",text:r})})(),t()},text:n._('Post', 'ideapin.questionsticker.replymodal.postbutton', 'Post reply to creator Q&A question')})});return(0,u.jsx)(b.ZP,{accessibilityModalLabel:"reply to creator Q and A question",align:"start",footer:s,heading:n._('Reply', 'ideapin.questionsticker.replymodal', 'Reply to creator Q&A question'),onDismiss:t,children:(0,u.jsx)(a.xu,{paddingX:8,paddingY:1,children:(0,u.jsx)(a.Kx,{id:"ideaPinQuestionStickerReplyModalTextArea",onChange:({value:e})=>{o(e)},placeholder:i?n._('Your reply will show up as a public comment on this Pin.', 'pin.questionsticker.replymodal.placeholder', 'Placeholder for creator Q&A reply textarea'):n._('Your reply will show up as a public comment on this Idea Pin.', 'ideapin.questionsticker.replymodal.placeholder', 'Placeholder for creator Q&A reply textarea'),value:r})})})};var S=n(356997),w=n(916117),A=n(349700),T=n(773285),I=n(224496),E=n(148028);let C=void 0!==i?i:i=n(884884);function D({block:e,elementType:t,onFlyoutOpen:n,pageAspectRatio:i,pageIndex:l,pinKey:c,scaleFactor:p,tooltipElementType:m,videoPinProgress:h}){var _;let{logContextEvent:g}=(0,o.v)(),[v,f]=(0,y.useState)(!1),[b,k]=(0,y.useState)(!1),D=(0,y.useRef)(null),j=(0,r.useHistory)(),F=(0,x.ZP)(),{data:R}=(0,w.u)(C,c),{checkExperiment:L}=(0,T.F)(),{block_style:{height:z=0,width:O=0,x_coord:M=0,y_coord:N=0,rotation:B=0}={},end_time:Z,error_message:K,interactive_sticker_type:G=null,is_removed:$,is_valid:W,start_time:q,sticker_data:Y,type:X}=e,Q=null==R?void 0:R.entityId,{board_id:J,question_comment_id:ee}=Y||{},{image_small_url:et,full_name:en,username:ei=""}=null!==(_=e.user)&&void 0!==_?_:{},el=null,ea=W&&5===G&&!!J,er=W&&7===G&&!!ee,eo=(0,s.Z)(J&&ea?{name:"BoardResource",options:{field_set_key:"tagged_board_preview",board_id:J}}:null),{is_collaborative:es,pin_count:ed,url:eu}=eo.data||{};X===I.h8.PRODUCT_STICKER?el=Q?`/pin/${Q}/`:"/":X===I.h8.MENTION_STICKER?el=`/${ei}/`:ea&&(el=eo.isLoaded?`${eu}`:null);let ec=U/i,{currentTime:ep}=h||{},em=!(0,E.Z)({currentTime:ep,endTime:Z,startTime:q}),eh=()=>{g({event_type:123,component:228,element:m,view_type:3,view_parameter:157,aux_data:{story_pin_page_id:l}}),f(!1)},e_=({event:e})=>{g({event_type:120,component:228,element:m,view_type:3,view_parameter:157,aux_data:{error_message:!W&&K?K:null,story_pin_page_id:l}}),f(!0),n&&(e.stopPropagation(),n())};(0,y.useEffect)(()=>(document.addEventListener("scroll",()=>{f(!1)}),()=>document.removeEventListener("scroll",()=>{f(!1)})),[]);let eg=()=>[5].includes(G)?W?eo.isLoaded?(0,u.jsxs)(y.Fragment,{children:[(0,u.jsxs)(a.xu,{flex:"grow",paddingX:2,children:[(0,u.jsx)(a.xv,{weight:"bold",size:"100",lineClamp:1,children:es?F._('Explore this group board', 'closeup.StoryPin.stickerBlock.boardSticker.clickLabel', 'Label explaining click action when group board tag flyout showing'):F._('Explore this board', 'closeup.StoryPin.stickerBlock.boardSticker.clickLabel', 'Label explaining click action when board tag flyout showing')}),(0,u.jsx)(a.xv,{size:"100",children:(!!ed||0===ed)&&(0,A.nk)(F.ngettext('{{ pinCount }} Pin', '{{ pinCount }} Pins', ed, 'closeup.StoryPin.stickerBlock.boardSticker.boardLabel', 'Caption when board tag flyout that showing number of Pins on board'),{pinCount:ed})})]}),(0,u.jsx)(a.xu,{flex:"none",children:(0,u.jsx)(a.Sj,{iconColor:"darkGray",bgColor:"transparent",size:"xs",icon:"arrow-forward"})})]}):(0,u.jsxs)(a.xu,{alignItems:"center",direction:"row",display:"flex",flex:"grow",paddingY:2,children:[(0,u.jsx)(a.xu,{marginEnd:1,paddingX:2,children:(0,u.jsx)(a.xv,{color:"subtle",size:"100",lineClamp:1,children:F._('Loading board...', 'closeup.StoryPin.stickerBlock.boardSticker.loadingText', 'Label explaining board sticker still loading')})}),(0,u.jsx)(a.$j,{accessibilityLabel:F._('Board is loading', 'closeup.StoryPin.stickerBlock.boardSticker.loadingSpinnerText', 'Accessibility label for board loading spinner'),size:"sm",show:!0})]}):(0,u.jsx)(a.xu,{paddingX:2,paddingY:2,children:(0,u.jsx)(a.xv,{color:"subtle",lineClamp:1,size:"200",weight:"bold",children:K})}):(0,u.jsx)(a.xu,{paddingX:2,paddingY:2,children:(0,u.jsx)(a.xv,{color:"subtle",lineClamp:1,size:"200",weight:"bold",children:F._('Sticker not supported yet', 'closeup.StoryPin.stickerBlock.genericStickerError', 'Label explaining this sticker has not been implemented yet')})}),ey=()=>{let e=null;switch(X){case I.h8.PRODUCT_STICKER:let{gridTitle:t,imageSpec_236x:n,richSummary:i,description:l}=R||{},{displayName:r,products:o}=i||{},s=((o||[])[0]||{}).offerSummary||{},{price:d,maxPrice:c}=s||{},p=r||t||l;e=(0,u.jsxs)(y.Fragment,{children:[(0,u.jsx)(a.xu,{flex:"none",children:(0,u.jsx)(a.zd,{wash:!0,height:40,width:40,rounding:3,children:(0,u.jsx)(a.Ee,{alt:"",color:"lightGray",fit:"cover",naturalHeight:1,naturalWidth:1,src:(null==n?void 0:n.url)||""})})}),(0,u.jsx)(a.xu,{flex:"grow",paddingX:2,children:s&&(d||c)?(0,u.jsxs)(a.kC,{alignContent:"center",alignItems:"stretch",direction:"column",flex:"grow",justifyContent:"center",children:[(0,u.jsx)(a.xv,{size:"100",lineClamp:1,weight:"bold",color:"shopping",children:d}),(0,u.jsx)(a.xv,{size:"100",lineClamp:1,children:p})]}):(0,u.jsx)(a.xv,{size:"100",lineClamp:1,children:p})}),(0,u.jsx)(a.xu,{flex:"none",children:(0,u.jsx)(a.Sj,{iconColor:"darkGray",bgColor:"transparent",size:"xs",icon:"arrow-forward"})})]});break;case I.h8.MENTION_STICKER:e=(0,u.jsxs)(y.Fragment,{children:[(0,u.jsx)(a.xu,{flex:"none",children:(0,u.jsx)(S.qE,{size:"sm",name:null!=en?en:"",src:null!=et?et:void 0})}),(0,u.jsx)(a.xu,{flex:"grow",paddingX:2,children:(0,u.jsx)(a.xv,{weight:"bold",size:"200",lineClamp:1,children:en})}),(0,u.jsx)(a.xu,{flex:"none",children:(0,u.jsx)(a.Sj,{iconColor:"darkGray",bgColor:"transparent",size:"xs",icon:"arrow-forward"})})]});break;case I.h8.GENERIC_STICKER:e=eg();break;case I.h8.VTO_MAKEUP_STICKER:e=(0,u.jsx)(a.xv,{weight:"bold",size:"300",children:F._('Try this sticker on your phone!', 'closeup.storyPin.vtoMakeupSticker', 'Caption when @vitural-try-on-makeup tag is tapped for Web')})}return(0,u.jsx)(a.xu,{alignItems:"center","data-test-id":X,display:"flex",justifyContent:"center",padding:X===I.h8.PRODUCT_STICKER?1:3,width:"100%",children:$?(0,u.jsx)(a.xv,{color:"subtle",weight:"bold",size:"200",children:F._('Tag removed!', 'closeup.storyPin.stickerBlock', 'Caption when the tag is removed')}):e})};return(0,u.jsx)(y.Fragment,{children:em?null:(0,u.jsxs)(a.xu,{dangerouslySetInlineStyle:{__style:{left:M*U*p/100,top:N*ec*p/100,transform:`rotate(${B}deg)`}},"data-test-id":(X||"")+"_container",display:"flex",height:z*ec*p/100+2*H,margin:-1,padding:1,position:"absolute",ref:D,rounding:2,width:O*U*p/100+2*H,zIndex:d.B5,children:[(0,u.jsx)(a.iP,{onTap:v?eh:({event:e})=>{!em&&(g({event_type:101,component:228,element:t,view_type:3,view_parameter:157,aux_data:{story_pin_page_id:l}}),er?L("web_question_sticker_display").anyEnabled&&k(!0):e_({event:e}))},rounding:"pill",disabled:em}),v&&(0,u.jsx)(a.mh,{zIndex:V,children:(0,u.jsx)(a.J2,{anchor:D.current,idealDirection:"up",onDismiss:eh,positionRelativeToAnchor:!1,_deprecatedShowCaret:!0,size:$?"flexible":"sm",children:$?ey():(0,u.jsx)(a.iP,{onTap:({event:e})=>{e.preventDefault(),$||(g({event_type:101,component:228,element:m,object_id_str:Q,view_type:3,view_parameter:157,aux_data:{story_pin_page_id:l}}),el?j.push(el):eh())},fullWidth:!0,children:ey()})})}),!!ee&&b&&(0,u.jsx)(P,{aggregatedCommentId:ee,onDismiss:()=>{k(!1)}})]})})}var j=n(775151),F=n(296342),R=n(854907),L=n(829084);function z({block:e,fontsLoaded:t,pageAspectRatio:n,scaleFactor:i,thumbnail:l}){let{block_style:r,style:o=I.Cc,text:s}=e,{alignment:d,font:c,font_size:p,highlight_color:m,vertical_alignment:h=I.Cc.vertical_alignment}=o,{hex_color:_=I.Cc.hex_color}=null!=o?o:{},[g,v]=(0,y.useState)(0),[f,b]=(0,y.useState)([]),x=c||I.Cc.font,{name:k,default_size:P,letter_spacing:S,line_height:w}=x,A=(0,L.Z)(x),T=Math.round(100*((null==r?void 0:r.width)||100))/1e4,E=Math.round(100*((null==r?void 0:r.height)||100))/1e4,C=Math.round(100*((null==r?void 0:r.x_coord)||0))/1e4,D=Math.round(100*((null==r?void 0:r.y_coord)||0))/1e4;(0,y.useEffect)(()=>{if(t){let e=(0,R.KV)({text:s,boxHeight:F.U*E,boxWidth:F.q8*T,font:A,startFontSize:Math.floor(p||P||24)});b(e.lines),v(e.fontSize)}},[t,s]);let z=g*i,O=m?(0,I.pE)(z,w):{x:0,y:0},M=T*F.q8*i+2*O.x,N=E*F.U*i+2*O.y,B=C*F.q8*i-O.x,Z=l?`${100*D}%`:D*(F.q8/n)*i-O.y;return(0,u.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{left:B,top:Z}},display:"flex",height:N,position:"absolute",width:M,children:(0,u.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:(0,j.RK)({alignment:d,verticalAlignment:h})},children:(0,u.jsx)(a.xu,{display:"inlineBlock",maxWidth:"100%",children:(0,u.jsx)("p",{style:(0,j.BN)({fontSize:z,hexColor:_,letterSpacing:S,lineHeight:w,name:k}),children:f.map((e,t)=>(0,u.jsx)("span",{style:(0,j.xm)({fontSize:z,hasText:e.text.length>0,highlightColor:m||null,lineHeight:w}),children:t===f.length-1?e.text:(0,u.jsxs)(y.Fragment,{children:[e.text," ",(0,u.jsx)("br",{})]})},`paragraphLine-${t}-${(null!=s?s:"").substr(0,9)}`))})})})})}var O=n(280348),M=n(19121);function N({ownerId:e}){let t=(0,x.ZP)(),n=(0,M.Z)(),i=n.isAuth&&n.id===e;return(0,u.jsxs)(a.xu,{alignItems:"center",color:"tertiary",direction:"column",display:"flex",height:"100%",justifyContent:"center",width:"100%",children:[(0,u.jsx)(a.xv,{color:"inverse",children:i?t._('Your video is processing!', 'closeup.storyPin.videoPlaceholder', 'Let user know that their video is still processing'):t._('This video is still processing!', 'closeup.storyPin.videoPlaceholder', 'Let user know that this video is still processing')}),(0,u.jsx)(a.xv,{color:"inverse",children:t._('Check back in a few minutes.', 'closeup.storyPin.videoPlaceholder', 'Let user know to come back in a couple of minutes to view the video')})]})}var B=n(276602),Z=n(47168),K=n(387957);let U=375,H=4,V=new a.Ry(3);function G({block:e,isActive:t,pwtTrackImageLoad:n,thumbnail:i}){var l,a,r,o,s,d,c,m,_,y,v,f;let b=(0,x.ZP)(),k=(null===(l=e.image)||void 0===l?void 0:null===(a=l.images)||void 0===a?void 0:a["750x"])||(null===(r=e.image)||void 0===r?void 0:null===(o=r.images)||void 0===o?void 0:o["474x"]),P=g({isUseCache:!0,signature:e.image_signature});if(!k&&!P)return null;let S=i?"cover":"none";return P?(0,u.jsx)(h,{alt:b._('Story pin image', 'closeup.storypin.renderer', 'Alt text for story pin image'),fallbackSrc:null!==(s=null===(d=P.media)||void 0===d?void 0:d.src)&&void 0!==s?s:"",isActive:t,naturalHeight:null!==(c=null==k?void 0:k.height)&&void 0!==c?c:1,naturalWidth:null!==(m=null==k?void 0:k.width)&&void 0!==m?m:1,src:null!==(_=null==k?void 0:k.url)&&void 0!==_?_:"",onLoad:n,fit:S}):(0,u.jsx)(p.Z,{alt:b._('Story pin image', 'closeup.storypin.renderer', 'Alt text for story pin image'),isActive:t,naturalHeight:null!==(y=null==k?void 0:k.height)&&void 0!==y?y:1,naturalWidth:null!==(v=null==k?void 0:k.width)&&void 0!==v?v:1,src:null!==(f=null==k?void 0:k.url)&&void 0!==f?f:"",onLoad:n,fit:S})}function $({activePageIndex:e,block:t,closeupStoryPinViewability:n,customEndCard:i,isActive:l,isSplitLayout:r=!1,musicRecordingId:o,muted:s,onEnded:d,onUpdateVideoInfo:c,ownerId:p,pageAspectRatio:m,pageDimensions:h,pageIndex:_,pinId:y,scaleFactor:v,stillLoading:f,videoThumbnailStartTime:b,thumbnail:x=!1}){var k,P;let{block_style:{height:S=100,width:w=100,x_coord:A=0,y_coord:T=0}={},video:I}=t,E=U/m,{height:C,width:D}=h,j=w*U*v/100,F=S*E*v/100,R=w<100?Math.min(Math.max(100,w)-Math.abs(A),w):Math.min(Math.max(w-Math.abs(A),0),100),L=S<100?Math.min(Math.max(100,S)-Math.abs(T),S):Math.min(Math.max(S-Math.abs(T),0),100),z=L*E*v/100,M=R*U*v/100,B=Math.max(T,0)*E*v/100,Z=Math.max(A,0)*U*v/100,K=g({isUseCache:!I,signature:t.video_signature});if(f)return null;let{media:H}=K||{},{duration:V,src:G}=H||{},$=!!G&&!!V;if(!I&&!$)return(0,u.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{left:Z,top:B}},height:z,position:"absolute",width:M,children:(0,u.jsx)(N,{ownerId:p})});let W=(null==I?void 0:null===(k=I.video_list)||void 0===k?void 0:k.V_HLSV3_MOBILE)||(null==I?void 0:null===(P=I.video_list)||void 0===P?void 0:P.V_720P)||$;return!!W&&(0,u.jsx)(a.xu,{height:r?"50%":"100%",overflow:"hidden",position:"relative",children:(0,u.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{left:Z,top:B}},height:x?C:z,overflow:"hidden",position:"absolute",width:x?D:M,children:(0,u.jsx)(O.Z,{activePageIndex:e,blockHeight:x?C:F,blockWidth:x?D:j,closeupStoryPinViewability:n,customEndCard:i,isPlaying:l,musicRecordingId:o,muted:s,onEnded:d,onUpdateVideoInfo:c,pageIndex:_,pinId:y,roundCorners:F>=C&&j>=D,video:I||{video_list:{V_EXP7:{duration:V?1e3*V:0,url:G}}},videoThumbnailStartTime:b})})})}let W=void 0!==l?l:l=n(360980);function q({activePageIndex:e,block:t,closeupStoryPinViewability:n,customEndCard:i,disableProductStickers:l,fontsLoaded:r,isActive:o,isSplitLayout:s=!1,musicRecordingId:d,muteVideos:p,onEnded:m,onFlyoutOpen:h,onImageLoaded:_,onUpdateVideoInfo:g,ownerId:y,pageAspectRatio:v,pageHeight:f,pageIndex:b,pageWidth:x,pinId:k,previewOnly:P,pinKey:S,stillLoading:A=!1,thumbnail:T=!1,transform:E,videoPinProgress:C,videoThumbnailStartTime:j}){let{data:F}=(0,w.u)(W,S),{block_style:{height:R=100,width:L=100,x_coord:O=0,y_coord:M=0}={},interactive_sticker_type:N=null}=t,H=(0,Z.g)(),V=(0,B.E)();if(0===R||0===L)return null;let q=x/U;switch(t.type){case I.h8.PARAGRAPH:case I.h8.HEADING:return(0,u.jsx)(z,{block:t,fontsLoaded:r,scaleFactor:q,pageAspectRatio:v,thumbnail:T});case I.h8.VIDEO:return(0,u.jsx)($,{activePageIndex:e,block:t,closeupStoryPinViewability:n,customEndCard:i,isActive:o,isSplitLayout:s,musicRecordingId:d,muted:p,onEnded:m,onUpdateVideoInfo:g,ownerId:y,pageAspectRatio:v,pageDimensions:{height:f,width:x},pageIndex:b,pinId:k,scaleFactor:q,stillLoading:A,videoThumbnailStartTime:j,thumbnail:T});case I.h8.IMAGE:let{scaleX:Y=1,scaleY:X=1}=E||{};return(0,u.jsx)(a.xu,{overflow:"hidden",position:"absolute",dangerouslySetInlineStyle:{__style:{height:`${R}%`,left:`${O*Y}%`,top:`${M*X}%`,width:`${L}%`}},children:(0,u.jsx)(G,{block:t,isActive:o,pwtTrackImageLoad:()=>{H&&o&&(H.addBinaryAnnotation("pin.id",k,"STRING"),H.addBinaryAnnotation("video",!1,"BOOL"),H.stop()),V&&o&&(V.addBinaryAnnotation("pin.id",k,"STRING"),V.addBinaryAnnotation("video",!1,"BOOL"),V.removeConstraint(K._z),V.markConstraintComplete(K.pM)),_&&_()},thumbnail:T})});case I.h8.MENTION_STICKER:return!P&&(0,u.jsx)(D,{block:{...t},elementType:12120,onFlyoutOpen:h,pageAspectRatio:v,pageIndex:b,scaleFactor:q,tooltipElementType:12121,videoPinProgress:C,pinKey:null});case I.h8.GENERIC_STICKER:return!P&&(e=>{let t=5===N;return(0,u.jsx)(D,{block:{...e},elementType:t?12827:12858,onFlyoutOpen:h,pageIndex:b,pageAspectRatio:v,scaleFactor:q,tooltipElementType:t?12828:12859,videoPinProgress:C,pinKey:null})})(t);case I.h8.PRODUCT_STICKER:return!P&&!l&&(0,u.jsx)(D,{block:{...t},elementType:12223,onFlyoutOpen:h,pageAspectRatio:v,pageIndex:b,pinKey:F,scaleFactor:q,tooltipElementType:12224,videoPinProgress:C});case I.h8.VTO_MAKEUP_STICKER:return!P&&(0,u.jsx)(D,{block:{...t},elementType:12561,onFlyoutOpen:h,pageAspectRatio:v,pageIndex:b,pinKey:null,scaleFactor:q,tooltipElementType:12561,videoPinProgress:C});case I.h8.COMMENT_REPLY_STICKER:return t.type===I.h8.COMMENT_REPLY_STICKER&&!P&&(0,u.jsx)(c,{block:t,scaleFactor:q,pageAspectRatio:v});default:return null}}},233316:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(224496);let l=[i.h8.COMMENT_REPLY_STICKER,i.h8.GENERIC_STICKER,i.h8.HEADING,i.h8.IMAGE,i.h8.MENTION_STICKER,i.h8.PARAGRAPH,i.h8.PRODUCT_STICKER,i.h8.VIDEO,i.h8.VTO_MAKEUP_STICKER];function a({storyPinBlocks:e=[],blocksToRender:t=l}){let n=[],a=[],r=[];return e.forEach(e=>{t.includes(e.type)?e.type===i.h8.PARAGRAPH||e.type===i.h8.HEADING?a.push(e):r.push(e):n.push(e)}),r.push(...a),{nonRenderableBlocks:n,textBlocks:a,blocks:r}}},860507:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(773285);function l(){let{checkExperiment:e}=(0,i.F)();return["employees","enabled"].includes(e("web_product_tagging_on_shopping_module",{dangerouslySkipActivation:!0}).group)}},517082:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(667294),l=n(186656);let a=()=>["pin.shuffle()","shuffle.{id,items,effect_data}","shuffleitem.{id,item_type,text,offset,scale,rotation,effect_data,mask,shuffle_asset,images[750x,750x(heic)]}"],r=e=>(0,l.Z)({url:`/v3/pins/${e}/`,data:{fields:a()}}),o=({pinId:e,shouldRenderShuffle:t})=>{let[n,l]=(0,i.useState)(null);return(0,i.useEffect)(()=>{if(t){let t=async()=>{let t=await r(e);l(t.resource_response.data.shuffle)};t()}},[e,t]),n}},664633:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(773285),l=n(780280),a=n(50286);let r=()=>{let{isAuthenticated:e}=(0,l.B)(),t=(0,a.HG)(),{checkExperiment:n}=(0,i.F)(),r="unauth_web_shuffle_renderer_closeup";e&&(r=t?"auth_dweb_shuffle_renderer_closeup":"auth_mweb_shuffle_renderer_closeup");let o=n(r);return o.anyEnabled}},485710:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(667294),l=n(883119),a=n(237693),r=n(773285),o=n(780280),s=n(50286),d=n(785893);function u({children:e,displayViewState:t,forceTappableHeader:n,headerPaddingRight:u,headerPreview:c,heading:p,collapseByDefault:m=!0}){let h=(0,s.ml)(),{checkExperiment:_}=(0,r.F)(),{isAuthenticated:g,isBot:y}=(0,o.B)(),v=h&&_(g?"closeup_auth_mweb_collapsable_modules":"closeup_unauth_mweb_collapsable_modules").group||"",f=["no_collapse_by_default","collapse_by_default"].includes(v),b="collapse_by_default"===v,[x,k]=(0,i.useState)(f&&!y&&b&&m||[1,2].includes(t));return(0,d.jsxs)(l.kC,{direction:"column",dataTestId:"collapsible-layout",gap:f?4:0,children:[(0,d.jsx)(a.Z,{collapsed:x,displayViewState:t,forceTappableHeader:n,headerPaddingRight:u,headerPreview:c,heading:p,onClick:()=>{k(!x)},showArrow:!0}),!x&&(0,d.jsx)(l.xu,{children:e})]})}},288889:(e,t,n)=>{"use strict";n.d(t,{n:()=>i});let i="300"},319530:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(667294),l=n(883119),a=n(288889),r=n(643010),o=n(898781),s=n(785893);function d({children:e,maxLines:t=10}){let n=(0,i.useRef)(null),[d,u]=(0,i.useState)({isFirstLoad:!0,isTruncated:!1}),c=(0,o.ZP)(),p=(0,r.vs)(),m=p?"#111":"#fff",{isFirstLoad:h,isTruncated:_}=d;return(0,i.useEffect)(()=>{var e;h&&n.current&&((e=n.current).offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&u({isFirstLoad:!1,isTruncated:!0})},[h,_]),(0,s.jsxs)(l.xu,{position:"relative","data-test-id":"truncated-text",children:[(0,s.jsx)(l.xv,{ref:n,lineClamp:h||_?t:0,inline:!0,children:e}),_&&(0,s.jsx)(l.xu,{position:"absolute",display:"block",width:"100%",bottom:!0,children:(0,s.jsxs)(l.kC,{flex:"grow",children:[(0,s.jsx)(l.xu,{display:"inlineBlock",width:"120px",height:"14px"}),(0,s.jsx)(l.xu,{"data-test-id":"more-button",display:"inlineBlock",dangerouslySetInlineStyle:{__style:{paddingLeft:15,background:`linear-gradient(90deg, transparent 0%, ${m} 15%)`}},children:(0,s.jsx)(l.iP,{fullWidth:!1,onTap:()=>u({...d,isTruncated:!1}),children:(0,s.jsx)(l.xv,{inline:!0,size:a.n,weight:"bold",children:c._(' \u2026 more', 'closeup.TruncatedTextContent.moreLabel', 'Expand content label')})})}),(0,s.jsx)(l.xu,{display:"inlineBlock",flex:"grow",dangerouslySetInlineStyle:{__style:{background:m}}})]})})]})}},509278:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(883119),l=n(785893);let a=/#(?:[0-9A-Z_a-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*/g;function r({isHashtagInDescriptionDisplayEnabled:e,text:t}){return t.split(new RegExp(/(#\S*)/)).map((t,n)=>{let r=`${n}-${t}`;return(e?t.match(a):t.includes("#"))?(0,l.jsx)(i.xv,{size:"300",color:"link",inline:!0,children:(0,l.jsx)(i.rU,{underline:"none",display:"inline",href:`/search/pins/?q=${encodeURIComponent(t.replace("#",""))}`,children:t})},r):(0,l.jsx)("span",{children:t},r)})}},237056:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(773285),l=n(50286),a=n(19121),r=n(717615),o=n(231947);let s=Object.freeze({dweb:{organic:"web_sce_organic_pinbuilder_dep",monetized:"web_sce_monetized_pinbuilder_dep"},mweb:{organic:"mweb_sce_organic_pinbuilder_dep",monetized:"mweb_sce_monetized_pinbuilder_dep"}});function d(e){let t=(0,l.HG)(),{checkExperiment:n}=(0,i.F)(),d=(0,r.Z)(),u=(0,a.Z)(),c=(0,o.lJ)(u,d),p=s[t?"dweb":"mweb"];return e&&!c&&(n("sce_lightswitch_organic"),n("sce_lightswitch_monetized")),!c&&(n(p.organic).anyEnabled||n(p.monetized).anyEnabled)}},440455:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(288889),l=n(748373),a=n(785893);let r=({description:e,userMentionTags:t})=>(0,a.jsx)(l.Z,{description:e,mentionLinkColor:"link",shouldAdjustOffset:!0,shouldMakeHashtagLinksFromText:!0,textSize:i.n,userMentionTags:t})},748373:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var i=n(667294),l=n(883119),a=n(509278),r=n(407043),o=n(773285),s=n(785893);let d=e=>e.replace(/\s+/g," "),u=e=>null!=e&&e>-1,c=(e,t)=>{let n=t.substr(0,e);return(null!=e?e:0)-(n.length-d(n).length)},p=({color:e,mention:t,tagObjectId:n,tagType:i,textSize:a})=>{let{logContextEvent:o}=(0,r.v)();return(0,s.jsx)(l.rU,{underline:"none",href:`/${t.substr(1)}`,display:"inlineBlock",onClick:({event:e})=>{e.stopPropagation(),o({event_type:101,element:11915,aux_data:{tag_id:n,tag_type:i}})},children:(0,s.jsx)(l.xv,{size:a,color:e,inline:!0,weight:"bold",overflow:"normal",children:t})},n)},m=({description:e,mentionLinkColor:t,shouldAdjustOffset:n,shouldMakeHashtagLinksFromText:r,textSize:d,userMentionTags:m})=>{let{checkExperiment:h}=(0,o.F)(),_=h("web_hashtags_in_description_display").anyEnabled;if(0===m.length)return(0,s.jsx)(i.Fragment,{children:e});let g=0,y=[],v=[...m].map(t=>{var i;return n?{...t,offset:c(null!==(i=t.offset)&&void 0!==i?i:0,e)}:t}).sort((e,t)=>{var n,i;return(null!==(n=e.offset)&&void 0!==n?n:0)-(null!==(i=t.offset)&&void 0!==i?i:0)}).filter(e=>u(e.offset)&&u(e.length));return v.forEach(n=>{var i,l;let a=null!==(i=n.offset)&&void 0!==i?i:0,r=null!==(l=n.length)&&void 0!==l?l:0,o=e.substr(g,a-g),u=e.substr(a,r);y.push(o),y.push((0,s.jsx)(p,{color:t,mention:u,tagObjectId:n.objectId,tagType:n.tagType,textSize:d})),g=a+r}),y.push(e.substr(g)),(r?y.flatMap(e=>"string"!=typeof e?e:(0,a.Z)({isHashtagInDescriptionDisplayEnabled:_,text:e})):y).reduce((e,t)=>(0,s.jsxs)(l.xv,{size:d,inline:!0,children:[e,t]}),null)}},641950:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var i=n(667294),l=n(883119),a=n(979588),r=n(407043),o=n(898781),s=n(276602),d=n(733336),u=n(540923),c=n(882801),p=n(785893);let m=({onOpen:e,structuredDescription:t,type:n})=>{let a=(0,o.ZP)(),r=(0,s.E)(),m=(0,i.useCallback)(()=>{r&&r.markConstraintComplete("description")},[r]),h=(0,i.useRef)(null),[_,g]=(0,i.useState)(!1);(0,i.useEffect)(()=>{var e;(h.current&&((e=h.current).offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)||t.length>1)&&g(!0)},[h,t]);let y="expandable"===n&&t[0].type===c.X.PARAGRAPH,v=y?(0,p.jsx)(l.xv,{ref:h,lineClamp:1,size:"200",children:t[0].content}):null,f=a._('Product Details', 'productDetails.accordionHeader.text', 'text in tap area to open product description accordion panel');return!_&&v?(0,p.jsxs)(i.Fragment,{children:[(0,p.jsx)(l.xu,{paddingY:1,children:(0,p.jsx)(l.xv,{weight:"bold",size:"300",children:f})}),(0,p.jsx)(l.xu,{marginEnd:6,marginBottom:1,children:v})]}):(0,p.jsx)(d.Z,{header:f,content:(0,p.jsx)(l.xu,{paddingY:y?0:1,children:(0,p.jsx)(u.Z,{descriptions:t,onLoad:m})}),onOpen:e,previewContent:v,previewContentHeight:y?20:0,shouldToggleOnBodyTap:!0,arrowDirection:"expandable"===n?"arrow-down":"arrow-forward"})},h=({isOpen:e,onOpen:t,structuredDescription:n})=>{var a;let[r,d]=(0,i.useState)(!1),c=(0,o.ZP)(),m=(0,i.useRef)(null),h=(0,s.E)(),_=(0,i.useCallback)(()=>{h&&m.current&&h.markConstraintComplete("description")},[h]),g=r&&!e,y=e?c._('See less', 'productDescription.productDescriptionPreview.cta', 'CTA label for collapsing the description'):c._('See more', 'productDescription.productDescriptionPreview.cta', 'CTA label for expanding the description');return(0,i.useLayoutEffect)(()=>{!(!m.current||Number.isNaN(m.current.offsetHeight)||150>Number(m.current.offsetHeight))&&(r||d(!0))},[r,null===(a=m.current)||void 0===a?void 0:a.offsetHeight]),(0,p.jsxs)(l.xu,{display:m.current?"block":"visuallyHidden",paddingY:1,"data-test-id":"product-description-preview",children:[(0,p.jsx)(l.xv,{size:"300",weight:"bold",children:c._('Product Details', 'productDescription.productDescriptionPreview.header', 'header for the product description')}),(0,p.jsxs)(l.xu,{marginTop:2,marginBottom:g?0:2,position:"relative",children:[(0,p.jsx)(l.xu,{height:g?150:"auto",overflow:g?"hidden":"visible",ref:m,children:(0,p.jsx)(u.Z,{descriptions:n,onLoad:_})}),r&&(0,p.jsx)(l.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{backgroundImage:"linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff)",transition:"opacity 200ms ease"}},height:150,opacity:g?1:0,position:"absolute",width:"100%"})]}),r&&(0,p.jsx)(l.iP,{onTap:t,children:(0,p.jsx)(l.xv,{size:"200",weight:"bold",children:y})})]})};function _(e){let{commerceData:t,structuredDescription:n,type:l="accordion",viewParameter:o}=e,{logContextEvent:s}=(0,r.v)(),[d,u]=(0,i.useState)(!1);(0,i.useEffect)(()=>{s({event_type:120,component:13597,view_type:3,view_parameter:o,aux_data:{...t}})},[]);let _=()=>{u(!d),s({event_type:101,component:13597,view_type:3,element:d?13278:13277,view_parameter:o,aux_data:{...t}}),s({event_type:101,component:13597,view_type:3,element:10492,view_parameter:o,aux_data:{...t}})};if(0===n.length)return null;let g="expandable"===l&&n[0].type===c.X.PARAGRAPH;return"preview"===l?(0,p.jsx)(h,{...e,isOpen:d,onOpen:_}):(0,p.jsx)(a.Z,{topBorder:!0,paddingY:g?3:0,children:(0,p.jsx)(m,{...e,onOpen:_})})}},979588:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(883119),l=n(785893);function a({children:e,paddingY:t,topBorder:n,marginEnd:a}){return(0,l.jsx)(i.xu,{"data-test-id":"product-metadata-border",width:"100%",dangerouslySetInlineStyle:{__style:{borderTop:n?"1px solid #efefef":void 0}},marginEnd:a,paddingY:t,children:e})}},453451:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(883119),l=n(807592),a=n(898781),r=n(785893);function o({colorOverride:e,isSoldOut:t,isStale:n,productDetails:o,showSalesPrice:s,type:d,weight:u="bold"}){let{maxPrice:c,minPrice:p,price:m,standardPrice:h}=o,_=!!m&&!!h&&m!==h,g="100";"pdpPlusHeading"===d?g="400":"heading"===d?g="500":"pdpPlusMobileHeading"===d&&(g="300");let y=(0,a.ZP)(),v=y._('See price on site', 'product.price.stale', 'Product is stale'),f=y._('Sold out', 'product.price.soldOut', 'Product is sold out');return n?(0,r.jsx)(i.xv,{size:g,color:"subtle",weight:"bold",children:v}):(0,r.jsxs)(i.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:[t&&(0,r.jsx)(i.xu,{"data-test-id":"product-sold-out-text",marginEnd:2,children:(0,r.jsx)(i.xv,{size:g,color:"subtle",weight:"bold",children:f})}),(!!m||!!p||!!c)&&(0,r.jsx)(i.xv,{color:e||(_?"shopping":"default"),size:g,weight:u,children:(0,r.jsx)("span",{children:(0,l.Z)({maxPrice:c,minPrice:p,price:m})})}),_&&!s&&(0,r.jsx)(i.xu,{marginStart:1,children:(0,r.jsx)(i.xv,{color:"subtle",size:g,weight:["pdpPlusHeading","pdpPlusMobileHeading"].includes(d)?"normal":u,children:(0,r.jsx)("span",{style:{textDecoration:"line-through"},children:h})})})]})}},650702:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var i=n(883119),l=n(898781),a=n(349700),r=n(939106),o=n(785893);function s(){let e=(0,l.ZP)();return e._('Free shipping', 'closeup.product.shipping', 'product shipping info')}function d({freeShippingPrice:e}){let t=(0,l.ZP)();return(0,a.nk)(t._('Free shipping with {{ shippingPrice }}+', 'closeup.product.shipping', 'product shipping info'),{shippingPrice:e}).join("")}function u({customStyles:e,showPrevDot:t,freeShippingPrice:n,freeShippingValue:l}){let a;let u=t?[""]:[],{color:c="subtle",size:p="200"}=e||{};return Number.isFinite(l)?(0===l?a=(0,o.jsx)(s,{}):n&&(a=(0,o.jsx)(d,{freeShippingPrice:n})),a&&u.push((0,o.jsx)(i.kC,{direction:"row",children:a})),0===u.length)?null:(0,o.jsx)(i.xv,{color:c,size:p,children:(0,o.jsx)(r.Z,{color:c,items:u})}):null}var c=n(892819),p=n(561195),m=n(780280);function h({count:e,rating:t}){return!!(t&&"None"!==t&&Number.isFinite(e))}let _=({rating:e,textSize:t,type:n})=>{if("single"===n){let n=parseFloat(e);return Number.isNaN(n)?null:(0,o.jsxs)(i.kC,{alignItems:"center",children:[(0,o.jsx)(p.A,{fill:"full",width:12}),(0,o.jsx)(i.xv,{size:t,children:n.toFixed(1)})]})}return(0,o.jsx)(p.Z,{rating:e,width:12})},g=({bracket:e,count:t,countFormat:n,countType:r,marginStart:s,textSize:d,underline:u})=>{let{locale:p}=(0,m.B)(),h=(0,l.ZP)(),_=(0,c.Z)();if(null==t)return null;let g=_(p,t,{shortform:!0,shortform_maximum_fraction_digits:1});if("text"===n){let e="review"===r?h.ngettext('{{ count }} review', '{{ count }} reviews', t, 'webapp.app.www-unified.productStarRatings.RatingCountText', 'count: total reviews count'):h.ngettext('{{ count }} rating', '{{ count }} ratings', t, 'webapp.app.www-unified.productStarRatings.RatingCountText', 'count: total ratings count');g=(0,a.nk)(e,{count:t}).join("")}return e&&(g=`(${g})`),(0,o.jsx)(i.xu,{dangerouslySetInlineStyle:{__style:{borderBottom:u?"1px solid gray":"none"}},marginStart:s,children:(0,o.jsx)(i.xv,{color:u?"subtle":"default",size:d,underline:u,children:(0,o.jsx)(i.xu,{"data-test-id":"ratings-count-text",display:"inlineBlock",children:g})})})};function y({bracket:e,count:t,countFormat:n,countType:l,rating:a,textSize:r,underline:s}){let d=h({count:t,rating:a});return d?(0,o.jsxs)(i.kC,{alignItems:"center",justifyContent:"start",children:[(0,o.jsx)(_,{rating:a,textSize:r,type:"multiple"}),(0,o.jsx)(g,{bracket:e,count:t,countFormat:n,countType:l,textSize:r,underline:s})]}):null}let v=({count:e,countFormat:t,ratingValue:n,shippingInfo:l})=>(0,o.jsxs)(i.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[(0,o.jsx)(y,{count:e,countFormat:t,rating:n,textSize:"200"}),(0,o.jsx)(i.xu,{marginTop:h({count:e,rating:n})?1:0,children:(0,o.jsx)(u,{customStyles:{color:"subtle",size:"200"},freeShippingPrice:null==l?void 0:l.freeShippingPrice,freeShippingValue:null==l?void 0:l.freeShippingValue})})]}),f=({count:e,countType:t,countFormat:n,hideSeparationDot:l,bracket:a,ratingValue:r,shippingInfo:s})=>(0,o.jsxs)(i.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{rowGap:8}},display:"flex",marginTop:1,wrap:!0,children:[(0,o.jsx)(y,{bracket:a,count:e,countFormat:n,countType:t,rating:r,textSize:"300"}),(0,o.jsx)(i.xu,{marginStart:h({count:e,rating:r})&&l?2:0,children:(0,o.jsx)(u,{customStyles:{color:"default",size:"300"},showPrevDot:h({count:e,rating:r})&&!l,freeShippingPrice:null==s?void 0:s.freeShippingPrice,freeShippingValue:null==s?void 0:s.freeShippingValue})})]});function b(e){return e.isGridView?(0,o.jsx)(v,{...e}):(0,o.jsx)(f,{...e})}},807592:(e,t,n)=>{"use strict";function i({maxPrice:e,minPrice:t,price:n}){return e&&t?`${t}-${e}`:n}n.d(t,{Z:()=>i})},590670:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(790904),l=n(898781),a=n(334005),r=n(785893);function o({controllerOptions:e,iconColor:t,iconOnly:n,buttonText:o,tabIndex:s=0}){let d=(0,l.ZP)();return(0,r.jsx)(a.Z,{...e,children:({handleSendShareFlyoutButtonClick:e})=>(0,r.jsx)(i.Z,{accessibilityLabel:d._('Send', 'Accessible label for button to send this pin', 'Accessible label for button to send this pin'),buttonText:o,handleClick:()=>e(),icon:"share",iconColor:t,iconOnly:n,tabIndex:s,testId:"closeup-share-button"})})}},129274:(e,t,n)=>{"use strict";n.d(t,{N:()=>d,d:()=>s});var i=n(667294),l=n(174798),a=n(425288),r=n(785893);let{Provider:o,useHook:s}=(0,a.Z)("Flag"),d=({children:e})=>{let[t,n]=(0,i.useState)(),[a,s]=(0,i.useState)(l.Zw.REPORT),[d,u]=(0,i.useState)(l.qb.STARTED),[c,p]=(0,i.useState)(),[m,h]=(0,i.useState)(),_=(0,i.useMemo)(()=>({flagReason:m,flow:a,status:d,selectedReason:c,modalTitle:t,setFlagReason:h,setFlow:s,setModalTitle:n,setStatus:u,setSelectedReason:p}),[t,a,d,c,m]);return(0,r.jsx)(o,{value:_,children:e})}},923764:(e,t,n)=>{"use strict";n.d(t,{Z:()=>j});var i=n(667294),l=n(702664),a=n(883119),r=n(214494);async function o({userId:e,blockSource:t,blockContext:n,logContextEvent:i}){let l=r.Z.create("UserBlockResource",{blocked_user_id:e,block_source:t,block_context:n});await l.callCreate(),i({event_type:54,object_id_str:e})}var s=n(129274),d=n(174798),u=n(512465),c=n(898781),p=n(349700),m=n(966113),h=n(785893);let _=m.K_Y+"?source=block_dialogue";function g(e){return e.map(({full_name:e})=>e)}let y=function({users:e,onClose:t,onSubmit:n}){let i=(0,c.ZP)(),l=(0,h.jsx)("strong",{children:(0,u.Z)(g(e),i)},"userlist");return(0,h.jsxs)("form",{method:"post",children:[(0,h.jsxs)(a.xu,{padding:8,children:[(0,h.jsx)(a.xv,{children:(0,p.nk)(i._('If you block {{ users }}, you won\u2019t be able to follow each other or interact with each other\u2019s Pins.', 'description of blocking users', 'description of blocking users'),{users:l})}),(0,h.jsx)("br",{}),(0,h.jsx)("br",{}),(0,h.jsx)(a.xv,{children:(0,h.jsx)(a.rU,{display:"inlineBlock",href:_,underline:"hover",children:i._('Learn more', 'link to learn more about blocking', 'link to learn more about blocking')})})]}),(0,h.jsx)(a.xu,{padding:2,children:(0,h.jsxs)(a.kC,{alignItems:"stretch",justifyContent:"end",gap:{row:1,column:0},children:[(0,h.jsx)(a.zx,{fullWidth:!0,onClick:t,text:i._('Cancel', 'UserBlock.Cancel', 'cancel form')}),(0,h.jsx)(a.zx,{fullWidth:!0,color:"red",onClick:()=>{n()},text:i._('Block', 'UserBlock.Submit', 'submit form to block users'),type:"submit"})]})})]})};var v=n(112690),f=n(19121);let b=({deleteAndCloseConversation:e,flagReason:t,flagType:n,onClose:l,selectedReason:r,status:_,users:b,blockContext:x})=>{let k=(0,c.ZP)(),P=(0,v.Z)(),[S,w]=(0,i.useState)({}),{setModalTitle:A,setStatus:T}=(0,s.d)(),I=(0,f.Z)(),{id:E}=I.isAuth?I:{},C=b.filter(({id:e})=>S[e]),D=C.length>0,j=()=>{let e;[d.qb.SUBMITTED,d.qb.PROCESSING].includes(_)?e=k.ngettext('Block this person?', 'Block these people?', C.length, 'BlockAndUnfollow', 'Confirmation text when blocking users (plural)'):n===d.Vm.CONVERSATION&&(e=_===d.qb.COMPLETED?(0,p.nk)(k._('You\u2019ve blocked {{usernames}}', 'BlockAndUnfollow', 'title of modal after user has been blocked'),{usernames:(0,u.Z)(g(C),k).join("")}).join(""):k._('Thanks for your report', 'BlockAndUnfollow', 'title at end of report flow')),A(e)};(0,i.useEffect)(()=>{j()},[_]),(0,i.useEffect)(()=>{T(D?d.qb.SELECTED:d.qb.STARTED)},[S]);let F=b.filter(({id:e})=>e!==E),R=[d.qb.STARTED,d.qb.COMPLETED].includes(_);return(0,h.jsx)("form",{method:"post",children:[d.qb.SUBMITTED,d.qb.PROCESSING].includes(_)?(0,h.jsx)(y,{onClose:()=>{T(d.qb.SELECTED)},onSubmit:()=>(T(d.qb.PROCESSING),Promise.all(Object.keys(S).filter(e=>S[e]).map(e=>o({userId:e,blockSource:"message_report",blockContext:x,logContextEvent:P}))).finally(()=>{T(d.qb.COMPLETED)})),users:C}):(0,h.jsxs)(a.xu,{padding:8,children:[(0,h.jsx)(a.xu,{children:_!==d.qb.COMPLETED?(()=>{let e;"harassingOther"===r?e=(0,p.nk)(k._('We remove content that identifies and attacks private people because we consider it to be bullying. We also don\u2019t allow content that reveal someone\u2019s personally identifiable information. Learn more about our {{ communityGuidelines }}.', 'confirmation message after reporting harassment', 'confirmation message after reporting harassment'),{communityGuidelines:(0,h.jsx)(a.rU,{display:"inlineBlock",href:m.MsG,underline:"hover",children:k._('Community Guidelines', 'link to community guidelines for harassment', 'link to community guidelines for harassment')},"policyLink")}):"harassingPublicFigure"===r?e=k._('Please note that we won\u2019t necessarily take down stuff that attacks public figures.', 'message shown after reporting harrassment', 'message shown after reporting harrassment'):"harassingFriend"===r?e=k._('Before we can review this Pin, we need to hear from the person who\u2019s being harassed. Please have your friend report this Pin to us.', 'message shown after reporting harrassment', 'message shown after reporting harrassment'):["spam","policies","hurtfulContent"].includes(t)&&(e=k._('We\u2019ll take a look at this Pin and delete it if it goes against our policies.', 'confirmation message after reporting a pin', 'confirmation message after reporting a pin'));let n=k.ngettext('You can also block this person.', 'You can also block these people.', F.length, 'description to block people', 'description to block people');return(0,h.jsxs)(i.Fragment,{children:[e&&(0,h.jsx)(a.xu,{marginBottom:8,children:(0,h.jsx)(a.xv,{children:e})}),(0,h.jsx)(a.xu,{marginBottom:8,children:(0,h.jsx)(a.xv,{children:n})}),(0,h.jsx)(a.xu,{marginBottom:8,children:F.map(({id:e,full_name:t})=>(0,h.jsx)(a.XZ,{id:"blockPinner"+e,checked:!!S[e],label:(0,p.nk)(k._('Block {{ pinnerName }}', 'BlockAndUnfollow', 'form option to block a pinner'),{pinnerName:t}).join(""),onChange:({checked:t})=>{w({...S,[e]:t})},helperText:k._('You won\u2019t be able to send each other messages or interact with each other\u2019s Pins.', 'BlockAndUnfollow', 'explanation of blocking a user')},e))})]})})():D&&(0,h.jsx)(a.xu,{marginBottom:8,children:(0,h.jsx)(a.xv,{children:k._('You won\u2019t be able to follow each other or interact with each other\u2019s pins.', 'BlockAndUnfollow', 'message describing what blocking means')},"blockingConfirmation")})}),(0,h.jsxs)(a.xu,{children:[_!==d.qb.COMPLETED&&(0,h.jsx)(a.xu,{marginBottom:8,children:(0,h.jsx)(a.xv,{size:"100",children:(0,p.nk)(k._('Learn more about {{ linkToTopic }}', 'BlockAndUnfollow', 'footer link to learn more about a topic'),{linkToTopic:(0,h.jsx)(a.rU,{display:"inlineBlock",href:m.K_Y,underline:"hover",children:k._('blocking', 'BlockAndUnfollow', 'footer link to learn more about blocking')},"policyLink")})})}),(0,h.jsx)(a.xu,{children:(0,h.jsx)(a.zx,{fullWidth:!0,color:"red",onClick:R?()=>{l(),_===d.qb.COMPLETED&&(null==e||e())}:()=>{w(S),T(d.qb.SUBMITTED)},text:R?k._('Done', 'Block.Complete', 'confirm reporting flow is done & close modal'):k._('Block', 'BlockAndUnfollow', 'submit users to block')})})]})]})})};function x({flagOptions:e,flow:t,handleClose:n,handleNext:i,selectedReason:l,showPrimaryAction:r,submitButton:o}){let s=(0,c.ZP)();if(t===d.Zw.REPORT){var u;if(d.qb.PROCESSING===status||null!==(u=e.getFlagOption(l))&&void 0!==u&&u.isTerminalReason)return o;if(r)return(0,h.jsx)(a.zx,{fullWidth:!0,color:"red",disabled:void 0===l,onClick:i,text:s._('Next', 'go to the next view in the report flow', 'go to the next view in the report flow')})}else if(t===d.Zw.END)return(0,h.jsx)(a.zx,{fullWidth:!0,color:"red",onClick:n,text:s._('Got it', 'confirm reporting flow is done & close modal', 'confirm reporting flow is done & close modal')});return null}function k({flow:e,flagReason:t}){let n=(0,c.ZP)();if(e===d.Zw.REPORT){if("attacks"===t)return(0,h.jsx)(a.xv,{size:"100",children:(0,p.nk)(n._('Learn more about our {{ linkToTopic }}', 'footer link to learn more about community guidelines', 'footer link to learn more about community guidelines'),{linkToTopic:(0,h.jsx)(a.rU,{target:"blank",href:m.MsG,children:(0,h.jsx)(a.xv,{inline:!0,color:"error",size:"100",weight:"bold",children:n._('Community Guidelines', 'name of footer link to community guidelines', 'name of footer link to community guidelines')})},"policyLink")})});if("policies"===t)return(0,h.jsxs)("p",{children:[(0,h.jsx)(a.xv,{size:"100",children:(0,p.nk)(n._('Learn about {{ linkToTopic }}', 'footer link to learn more about a topic', 'footer link to learn more about a topic'),{linkToTopic:(0,h.jsx)(a.rU,{target:"blank",href:m.MsG+"#sub-section-adult-content",children:(0,h.jsx)(a.xv,{inline:!0,color:"error",size:"100",children:n._('our nudity policies', 'name of footer link to policy', 'name of footer link to policy')})},"policyLink")})}),(0,h.jsx)(a.xv,{size:"100",children:(0,p.nk)(n._('Learn about {{ linkToTopic }}', 'footer link to learn more about a topic', 'footer link to learn more about a topic'),{linkToTopic:(0,h.jsx)(a.rU,{target:"blank",href:m.MsG+"#sub-section-dangerous-goods-and-activities",children:(0,h.jsx)(a.xv,{inline:!0,color:"error",size:"100",children:n._('our policies on hurtful content', 'name of footer link to policy', 'name of footer link to policy')})},"policyLink")})}),(0,h.jsx)(a.xv,{size:"100",children:(0,p.nk)(n._('Learn about {{ linkToTopic }}', 'footer link to learn more about a topic', 'footer link to learn more about a topic'),{linkToTopic:(0,h.jsx)(a.rU,{target:"blank",href:m.MsG+"#sub-section-violence",children:(0,h.jsx)(a.xv,{inline:!0,color:"error",size:"100",children:n._('our policies on gore', 'name of footer link to policy', 'name of footer link to policy')})},"policyLink")})})]});if("spam"===t||void 0===t)return(0,h.jsx)(a.xv,{size:"100",children:(0,p.nk)(n._('Learn about {{ linkToTopic }}', 'footer link to learn more about a topic', 'footer link to learn more about a topic'),{linkToTopic:(0,h.jsx)(a.rU,{target:"blank",href:m.MsG,children:(0,h.jsx)(a.xv,{inline:!0,color:"error",size:"100",weight:"bold",children:"spam"===t?n._('our spam policies', 'name of footer link to policy', 'name of footer link to policy'):n._('our policies', 'name of footer link to policy', 'name of footer link to policy')})},"policyLink")})})}return null}function P({arrayOfData:e,handleSelectReason:t,selectedReason:n}){let i=(0,c.ZP)();return(0,h.jsx)(a.xu,{padding:2,children:(0,h.jsx)(a.FX,{id:"flag-option-radio-group",legend:i._('Flag legends', 'flag_legend', 'Flag legends'),legendDisplay:"hidden",children:e.map((e,i)=>{let{condition:l}=e;return void 0===l||l?function(e,t,n,i){let{text:l,value:r,category:o}=e;return(0,h.jsx)(a.xu,{paddingY:2,children:(0,h.jsx)(a.FX.RadioButton,{checked:n===r,id:r,onChange:({checked:e})=>t(e,r,o),name:"flagReason",value:r,label:l})},i)}(e,t,n,i):null})})})}class S{constructor(e){this.config=e,this.configMap=function(e){let t={};for(let n in e){let i=e[n];i.forEach(e=>{let{value:i}=e;if(Object.prototype.hasOwnProperty.call(t,i))throw Error("Duplicate key in FlagOptions config: "+i);t[i]={...e,parentOption:n}})}return t}(e)}getFlagOption(e){return e?this.configMap[e]:null}renderFlagLabels(e){let{flagReason:t,onSelectReason:n,selectedReason:i}=e;return(0,h.jsx)(P,{arrayOfData:this.config[t],handleSelectReason:n,selectedReason:i})}}var w=n(121151);function A(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class T extends i.Component{constructor(...e){super(...e),A(this,"flagOptions",new S(this.props.flagOptionsConfig)),A(this,"renderContent",()=>{let{content:e,flow:t,onSelectReason:n,selectedReason:i}=this.props;return e||(t===d.Zw.REPORT?this.flagOptions.renderFlagLabels({flagReason:this.props.flagReason||"__default",onSelectReason:n,selectedReason:i}):t===d.Zw.END?(0,h.jsx)(a.xv,{children:this.props.i18n._('We\u2019ll use your feedback to make your Pinterest experience better.', 'final message in reporting flow', 'final message in reporting flow')}):void 0)})}componentDidUpdate(e){let{flow:t,onCompletedReport:n,onCompletedBlock:i}=e;if(this.props.flow!==t)switch(t){case d.Zw.REPORT:n&&n();break;case d.Zw.BLOCK:i&&i()}}render(){let{accessibilityModalLabel:e,deleteAndCloseConversation:t,flagType:n,flow:i,status:l,modalTitle:r,onClose:o,selectedReason:s,submitButton:u,flagReason:c,showPrimaryAction:p,users:m,blockContext:_}=this.props;return(0,h.jsx)(w.ZP,{accessibilityModalLabel:e,heading:r,onDismiss:o,size:"md",footer:i!==d.Zw.BLOCK?(0,h.jsxs)(a.kC,{alignItems:"center",justifyContent:"start",children:[(0,h.jsx)(a.xu,{flex:"grow",children:(0,h.jsx)(k,{flagReason:c,flow:i})}),(0,h.jsx)(a.xu,{padding:1,children:i===d.Zw.REPORT?(0,h.jsx)(a.zx,{fullWidth:!0,onClick:void 0===c?this.props.onClose:()=>{var e,t;null===(e=(t=this.props).onRevert)||void 0===e||e.call(t)},text:void 0===c?this.props.i18n._('Cancel', 'cancel form', 'cancel form'):this.props.i18n._('Back', 'previous step in a form', 'previous step in a form')}):null}),(0,h.jsx)(a.xu,{padding:1,children:(0,h.jsx)(x,{flagOptions:this.flagOptions,flow:i,handleClose:this.props.onClose,handleNext:()=>{var e,t;null===(e=(t=this.props).onNext)||void 0===e||e.call(t)},selectedReason:s,showPrimaryAction:!!p,submitButton:u})})]}):void 0,children:(0,h.jsx)(a.xu,{children:i===d.Zw.BLOCK?(0,h.jsx)(b,{deleteAndCloseConversation:t,flagReason:c,flagType:n,onClose:o,selectedReason:s,status:l,users:m,blockContext:_}):this.renderContent()})})}}function I(e){let t=(0,c.ZP)();return(0,h.jsx)(T,{...e,i18n:t})}var E=n(794230),C=n(600147);let D="policies";function j({aggregatedPinDataId:e,didItDataId:t,onClose:n,pinId:r,username:o,users:u}){let p=(0,c.ZP)(),[_,g]=(0,i.useState)([]),[y,v]=(0,i.useState)(),[f,b]=(0,i.useState)(),x=(0,l.useDispatch)(),k=(e,t,n,i,l)=>x((0,C.Th)(e,t,n,i,l)),{flow:P,modalTitle:S,selectedReason:w,setFlow:A,setModalTitle:T,setSelectedReason:j,setStatus:F,status:R}=(0,s.d)(),L=()=>{if(P===d.Zw.REPORT)switch(f){case"attacks":return p._('What\'s going on?', 'title for report content flow', 'title for report content flow');case D:return p._('What\'s wrong with this Try?', 'title for report content flow', 'title for report content flow');case"IP":return p._('Intellectual Property', 'title for report content flow for IP complaints', 'title for report content flow for IP complaints');default:return p._('What\'s wrong with this Try?', 'title for the report content flow', 'title for the report content flow')}else if(P===d.Zw.END&&_.includes("notUseful"))return p._('Thanks for letting us know!', 'title at end of report flow when content is not useful', 'title at end of report flow when content is not useful');return""};(0,i.useEffect)(()=>{T(L())},[_,P,f]);let z=(0,h.jsx)(a.zx,{fullWidth:!0,color:"red",onClick:()=>{if(F(d.qb.PROCESSING),"ignoreThisPin"===w)A(d.Zw.BLOCK),F(d.qb.STARTED);else{let n=[..._,w];g(n),k(e,n,t,y,o),_.includes("notUseful")?A(d.Zw.END):A(d.Zw.BLOCK),F(d.qb.STARTED)}},text:p._('Report content', 'button to report content', 'button to report content')});return(0,h.jsx)(I,{accessibilityModalLabel:p._('Report conversation', 'Pin.DidIt.Report', 'Accessibility label for report pin did it'),content:"IP"===f?(0,h.jsx)(a.xu,{mdDisplay:"flex",justifyContent:"center",children:(0,h.jsxs)(a.xu,{mdColumn:9,children:[(0,h.jsx)(a.xu,{padding:2,marginStart:2,children:(0,h.jsx)(a.xv,{align:"center",color:"default",weight:"bold",children:p._('If you\u2019ve found content that you believe violates your intellectual property, you can fill out our copyright complaint form.', 'explanation of IP complaint process', 'explanation of IP complaint process')})}),(0,h.jsx)(a.xu,{padding:2,children:(0,h.jsx)(a.ZP,{href:(0,E.Z)(m.GEi,{pin_id:r,user_did_it_id:t}),color:"red",text:p._('File a report', 'link to DMCA form', 'link to DMCA form'),target:"blank"})})]})}):null,flagType:d.Vm.DID_IT,flow:P,modalTitle:S,onClose:n(!0),onNext:()=>{b(w),g([..._,w]),j()},onRevert:()=>{let e=_[_.length-1],t=_.slice(0,-1);j(e),b(t[t.length-1]),g(t),v(),F(void 0===e?d.qb.STARTED:d.qb.SELECTED)},onSelectReason:(e,t,n)=>{e&&(j(t),F(d.qb.SELECTED),v(n))},showPrimaryAction:"IP"!==f,submitButton:z,status:R,selectedReason:w,flagReason:f,users:u,blockContext:null!=e?e:"",flagOptionsConfig:{__default:[{text:p._('It isn\'t useful or relevant', 'tried-it reporting flow', 'tried-it reporting flow'),value:"ignoreThisPin",isTerminalReason:!0,category:"ignoreThisPin"},{text:p._('It shouldn\'t be on Pinterest', 'tried-it reporting flow', 'tried-it reporting flow'),value:D,isTerminalReason:!1},{text:p._('It\'s spam', 'tried-it reporting flow', 'tried-it reporting flow'),value:"spam",isTerminalReason:!0,category:"spam"},{text:p._('It\'s my intellectual property', 'tried-it reporting flow', 'tried-it reporting flow'),isTerminalReason:!1,value:"IP"}],ignoreThisPin:[],policies:[{text:p._('It\'s sexually explicit', 'tried-it reporting flow', 'tried-it reporting flow'),value:"nudity",isTerminalReason:!0,category:"nudity"},{text:p._('It\'s self-harm', 'an option on tried-it reporting flow', 'an option on tried-it reporting flow'),value:"self-harm",isTerminalReason:!0,category:"self-harm"},{text:p._('It\'s hate speech', 'tried-it reporting flow', 'tried-it reporting flow'),value:"hate-speech",isTerminalReason:!0,category:"hate-speech"},{text:p._('It\'s harassment or bullying', 'tried-it reporting flow', 'tried-it reporting flow'),value:"attacks",isTerminalReason:!1,category:"attacks"},{text:p._('It\'s graphic violence', 'tried-it reporting flow', 'tried-it reporting flow'),value:"gore",isTerminalReason:!0,category:"graphic-violence"}],attacks:[{text:p._('It\'s a photo of me or my child', 'tried-it reporting flow', 'tried-it reporting flow'),value:"harassingMeOrMyChild",isTerminalReason:!0,category:"attacks"},{text:p._('It identifies and attacks me or someone I know', 'tried-it reporting flow', 'tried-it reporting flow'),value:"harassingMeOrAFriend",isTerminalReason:!0,category:"attacks"},{text:p._('Something else', 'tried-it reporting flow', 'tried-it reporting flow'),value:"harassingOther",isTerminalReason:!0,category:"attacks"}],IP:[],spam:[]}})}},174798:(e,t,n)=>{"use strict";n.d(t,{Vm:()=>a,Zw:()=>i,qb:()=>l});let i={REPORT:"REPORT",BLOCK:"BLOCK",END:"END"},l={STARTED:"STARTED",SELECTED:"SELECTED",SUBMITTED:"SUBMITTED",PROCESSING:"PROCESSING",COMPLETED:"COMPLETED"},a={CONVERSATION:"CONVERSATION",DID_IT:"DID_IT"}},238464:(e,t,n)=>{"use strict";n.d(t,{Z:()=>B});var i=n(667294),l=n(883119),a=n(590670),r=n(407043),o=n(946984),s=n(898781),d=n(67347),u=n(785893);function c(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let p={overlay:{__style:{backgroundColor:"#000"}}};class m extends i.PureComponent{constructor(...e){super(...e),c(this,"handleRestartVideo",({event:e})=>{var t,n;e.stopPropagation(),null===(t=(n=this.props).onRestartVideo)||void 0===t||t.call(n,{event:e}),(0,d.nP)("web.video.endcard.share",{sampleRate:1,tags:{status:"restart",variant:"enabled_send_first"}})}),c(this,"handleShareVideo",()=>{let{onToggleFlyout:e,isFlyoutOpen:t,pinId:n,requireAuth:i,logContextEvent:l}=this.props;if(t&&(0,d.nP)("web.video.endcard.share",{sampleRate:1,tags:{status:"shareSheetOpen",variant:"enabled_send_first"}}),l({event_type:101,component:179,object_id_str:n,view_type:3,view_parameter:156,element:11731}),i){i();return}e&&e()}),c(this,"handleExternalSend",()=>{(0,d.nP)("web.video.endcard.share",{sampleRate:1,tags:{status:"shareSheetOpen",variant:"enabled_send_first"}})}),c(this,"renderReplayButton",()=>(0,u.jsx)(l.iP,{accessibilityLabel:this.props.i18n._('Watch again', 'Button when pressed restarts the video', 'Button when pressed restarts the video'),onTap:this.handleRestartVideo,rounding:2,children:(0,u.jsxs)(l.xu,{alignItems:"center",display:"flex",padding:2,children:[(0,u.jsx)(l.xu,{marginEnd:3,children:(0,u.jsx)(l.JO,{accessibilityLabel:this.props.i18n._('Watch again', 'Button when pressed restarts the video', 'Button when pressed restarts the video'),icon:"refresh",color:"inverse",size:18})}),(0,u.jsx)(l.X6,{color:"light",overflow:"normal",size:"400",children:this.props.i18n._('Watch again', 'Clickable label when pressed restarts the video', 'Clickable label when pressed restarts the video')})]})})),c(this,"renderShareButton",()=>{let{gridDescription:e,imageSrc:t,isFlyoutOpen:n,onFlyoutDismiss:i,pinId:r}=this.props;return(0,u.jsx)(l.iP,{accessibilityLabel:this.props.i18n._('Send', 'end.video.send.icon.label', 'Clickable label when pressed opens share sheet after video is finished'),onTap:this.handleShareVideo,rounding:2,children:(0,u.jsxs)(l.xu,{alignItems:"center",display:"flex",padding:2,justifyContent:"center",children:[(0,u.jsx)(a.default,{controllerOptions:{flyoutDisplayOptions:{shownWithinMasonry:!0},loggingOptions:{component:179,element:72,onExternalSend:this.handleExternalSend,viewType:3},isFlyoutOpen:n,onFlyoutDismiss:i,onToggleFlyout:()=>{},sendObject:{type:"pin",description:e,id:r,imageUrl:t,url:`/pin/${r}/`}},iconOnly:!0,iconColor:"white",tabIndex:-1}),(0,u.jsx)(l.xu,{children:(0,u.jsx)(l.X6,{color:"light",overflow:"normal",size:"400",children:this.props.i18n._('Send', 'end.video.send.icon.label', 'Clickable label when pressed opens share sheet after video is finished')})})]})})})}componentDidMount(){let{pinId:e,logContextEvent:t}=this.props;(0,d.nP)("web.video.endcard.share",{sampleRate:1,tags:{status:"land",variant:"enabled_send_first"}}),t({event_type:13,component:179,object_id_str:e,view_type:3,view_parameter:156,element:11731})}render(){let{backgroundImage:e,naturalHeight:t,naturalWidth:n,pinTitle:i}=this.props;return(0,u.jsx)(l.xu,{children:(0,u.jsxs)(l.Ee,{alt:i||"",naturalHeight:t,naturalWidth:n,src:e,children:[(0,u.jsx)(l.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,dangerouslySetInlineStyle:p.overlay}),(0,u.jsx)(l.xu,{alignItems:"center",display:"flex",justifyContent:"center",position:"absolute",top:!0,left:!0,height:"100%",width:"100%",direction:"column",children:(0,u.jsxs)(l.xu,{position:"absolute",children:[(0,u.jsx)(l.xu,{children:this.renderShareButton()}),(0,u.jsx)(l.xu,{alignSelf:"center",children:this.renderReplayButton()})]})})]})})}}function h(e){let{logContextEvent:t}=(0,r.v)(),n=(0,s.ZP)(),i=(0,o.Z)();return(0,u.jsx)(m,{...e,i18n:n,requireAuth:i,logContextEvent:t})}let _=({backgroundImage:e,naturalHeight:t,naturalWidth:n,onRestartVideo:i,pinTitle:a})=>{let r=(0,s.ZP)();return(0,u.jsx)(l.xu,{children:(0,u.jsxs)(l.Ee,{alt:a||"",naturalHeight:t,naturalWidth:n,src:e,children:[(0,u.jsx)(l.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,opacity:.8,dangerouslySetInlineStyle:p.overlay}),(0,u.jsx)(l.xu,{alignItems:"center",display:"flex",justifyContent:"center",position:"absolute",top:!0,left:!0,height:"100%",width:"100%",children:(0,u.jsx)(l.xu,{children:(0,u.jsx)(l.iP,{onTap:i,rounding:2,children:(0,u.jsxs)(l.xu,{alignItems:"center",display:"flex",padding:2,children:[(0,u.jsx)(l.hU,{accessibilityLabel:r._('Replay', 'closeupVideo.endCard.ReplayButton', 'Button when pressed restarts the video'),icon:"refresh",iconColor:"white",size:"md"}),(0,u.jsx)(l.X6,{color:"light",overflow:"normal",size:"400",children:r._('Replay', 'closeupVideo.endCard.ReplayButton', 'Button when pressed restarts the video')})]})})})})]})})};var g=n(366284),y=n(773285),v=n(466225),f=n(276602),b=n(47168),x=n(985271),k=n(780280),P=n(764537),S=n(646422),w=n(534611),A=n(224496),T=n(858416),I=n(704115),E=n(50286),C=n(179888),D=n(965900),j=n(387957),F=n(944546),R=n(926749);function L(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let z=e=>!!e&&e.endsWith(".gif"),O=(e,t)=>{var n,i;t({currentTime:null!==(n=null==e?void 0:e.currentTime)&&void 0!==n?n:0,duration:null!==(i=null==e?void 0:e.duration)&&void 0!==i?i:1})},M=e=>e&&document.querySelector(`video[poster="${e}"]`)||null;class N extends i.Component{constructor(...e){super(...e),L(this,"state",{controls:"always"===this.props.showControls&&!this.props.disabled,fullscreen:!1,playing:!(0,g.G6)(this.props.requestContext.userAgent.browserName)&&!!this.props.autoplay&&!this.props.disabled,ready:!1,seeking:!1,showEndCard:!1,volume:this.props.muted||this.props.shouldMute?0:1,videoStartTime:this.props.videoStartTime||0}),L(this,"setVideoPwtLoadingStop",(e=!1)=>{if(!x.Z)return;let{storyPinStepStopwatch:t,pinId:n,pwtSurfaceContext:i}=this.props;t&&(e||t.addAnnotation("video.startup.end"),t.addBinaryAnnotation("pin.id",n,"STRING"),t.addBinaryAnnotation("video",!0,"BOOL"),t.addBinaryAnnotation("preload",e,"BOOL"),t.addSubspan({name:"perceived_video_load",endTime:x.Z.now()}),t.stop()),i&&(e||i.addAnnotation("video.startup.end"),i.addBinaryAnnotation("pin.id",n,"STRING"),i.addBinaryAnnotation("video",!0,"BOOL"),i.markConstraintComplete(j._z),i.addSubspan("perceived_video_load",null,x.Z.now()),"story_pin"===i.getMetricId().segment&&i.removeConstraint(j.pM))}),L(this,"componentDidMount",()=>{let{customThumbnail:e,video:t,preferMp4:n}=this.props,{mp4:i}=t,l=t.hlsv3||t.hls||null,{thumbnail:a}=n&&i||l||{},r=M(e||a);(null==r?void 0:r.ready)===4&&(this.setState({ready:!0}),this.props.autoplay&&this.setVideoPwtLoadingStop(!0))}),L(this,"componentDidUpdate",(e,t)=>{this.props.videoStartTime&&this.props.videoStartTime!==e.videoStartTime&&this.setState({videoStartTime:this.props.videoStartTime}),!1===e.isPlaying&&this.props.isPlaying&&this.setState({playing:!0,controls:"never"!==this.props.showControls}),e.isPlaying&&!1===this.props.isPlaying&&this.setState({playing:!1}),e.autoplay!==this.props.autoplay&&(this.setState({playing:!!this.props.autoplay}),this.props.autoplay&&this.state.ready&&this.setVideoPwtLoadingStop(!0)),e.muted!==this.props.muted&&this.setState({volume:this.props.muted?0:1}),"never"===this.props.showControls&&t.controls&&this.setState({controls:!1}),(t.controls||t.playing)&&this.props.disabled&&this.setState({playing:!1,controls:!1}),!t.playing&&this.state.playing&&this.props.onPlay&&this.props.onPlay()}),L(this,"handleTouch",()=>{let{seeking:e}=this.state,{disabled:t}=this.props;e||t||this.setState(e=>({playing:!e.playing}))}),L(this,"handleShowControls",()=>this.setState({controls:!0})),L(this,"handleHideControls",()=>this.setState({controls:!1})),L(this,"handleReady",()=>{let{ready:e,playing:t}=this.state,{autoplay:n,disabled:i}=this.props;n&&!e&&this.setVideoPwtLoadingStop(),this.setState({ready:!0}),(0,g.G6)(this.props.requestContext.userAgent.browserName)&&!t&&n&&!i&&this.setState({playing:!0})}),L(this,"handleEnded",({event:e})=>{let{customThumbnail:t,customEndCard:n,pinId:i,setCurrentVideo:l,loop:a,onEnded:r}=this.props;e.stopPropagation(),!a&&(this.setState({playing:!1}),z(t)||n||(this.setState({showEndCard:!0,videoStartTime:0}),l({pinId:i,isPromoted:!1,currentTime:0})),this.state.fullscreen&&this.exitFullscreen()),r&&r()}),L(this,"handlePause",({event:e})=>{e.stopPropagation(),this.setState({playing:!1})}),L(this,"handlePlay",({event:e})=>{e.stopPropagation(),this.setState({playing:!0})}),L(this,"handleFullscreenChange",({event:e,fullscreen:t})=>{e.stopPropagation(),this.setState({fullscreen:t})}),L(this,"handlePlayheadDown",()=>{this.setState({seeking:!0})}),L(this,"handlePlayheadUp",()=>{setTimeout(()=>{this.setState({seeking:!1})},500)}),L(this,"handleRestartVideo",({event:e})=>{e.stopPropagation(),this.setState({playing:!0,showEndCard:!1})}),L(this,"handleShareRestartVideo",({event:e})=>{e.stopPropagation(),this.setState({playing:!0,showEndCard:!1})}),L(this,"handleVolumeChange",({event:e,volume:t})=>{let{shouldMute:n}=this.props;e.stopPropagation(),n||this.setState({volume:t})}),L(this,"exitFullscreen",()=>{let{document:e}=window;(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement)&&(e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen())}),L(this,"renderCloseupVideoEndCard",(e,t,n,i)=>{let l={backgroundImage:e,naturalHeight:t,naturalWidth:n,onRestartVideo:this.handleShareRestartVideo},a={backgroundImage:e,naturalHeight:t,naturalWidth:n,onRestartVideo:this.handleRestartVideo},{flyoutShareProps:r}=this.props,o={gridDescription:r?r.gridDescription:"",imageSrc:r?r.imageSrc:"",isFlyoutOpen:!!r&&r.isFlyoutOpen,onFlyoutDismiss:r?r.onFlyoutDismiss:()=>{},onToggleFlyout:r?r.onToggleFlyout:()=>{},pinId:r?r.pinId:""};return i?(0,u.jsx)(_,{...a}):(0,u.jsx)(h,{...o,...l})})}render(){let e;let{autoplay:t,closeupStoryPinViewability:n,contextLogData:i={component:179,is_closeup_video:!0,objectId:this.props.pinId,view:3,viewParameter:156},customThumbnail:a,isPromoted:r,loop:o,objectFit:s,preferMp4:d,preload:c,requestContext:p,roundingOverride:m,showControls:h,variant:_,video:y,captions:f,videoThumbnailStartTime:b,pinId:x,setProgressInfo:k,progressInfo:T,setPanelOpen:I,panelOpen:E,setMute:D,isMuted:j,captionsExpGroup:L,onTimeChange:z}=this.props;i.is_closeup_video=!0;let{controls:M,fullscreen:N,playing:B,showEndCard:Z,volume:K,videoStartTime:U}=this.state,H=y.hlsv3||y.hls||null;if(!H&&!y.mp4)return null;let{mp4:V}=y,G=d&&V&&V.url||H&&[{type:"video/m3u8",src:H.url}]||void 0,{height:$,thumbnail:W,width:q}=d&&V||H||{},Y=a||W;return e=null!=m?m:"default"===_?0:"storyPin"===_?A.yR:2,(0,u.jsxs)(l.zd,{willChangeTransform:!((0,g.G6)(p.userAgent.browserName)&&N),rounding:e,wash:!0,children:[Z?this.renderCloseupVideoEndCard(null!=Y?Y:"",null!=$?$:1,null!=q?q:1,r):(0,u.jsxs)(l.iP,{accessibilityLabel:this.props.i18n._('Pause or play video', 'pin.closeup.video.tap', 'tap area to pause or play video'),onMouseEnter:"hover"===h?this.handleShowControls:void 0,onMouseLeave:"hover"===h?this.handleHideControls:void 0,onTap:this.handleTouch,rounding:2,children:[L&&(0,v.Z)(L)&&(0,u.jsx)(S.Z,{playing:B,zIndexValue:99}),(0,u.jsx)(R.ZP,{contextLogData:{...i,video_id:this.props.video.id},aspectRatio:(null!=q?q:1)/(null!=$?$:1),closeupStoryPinViewability:n,captions:L&&(0,v.Z)(L)?f:"",controls:!(L&&(0,v.Z)(L))&&M,hlsConfig:{startLevel:F.V},isAutoPlay:!!t,objectFit:s,onEnded:this.handleEnded,onFullscreenChange:this.handleFullscreenChange,onControlsPause:this.handlePause,onControlsPlay:this.handlePlay,onPlayheadDown:this.handlePlayheadDown,onPlayheadUp:this.handlePlayheadUp,onReady:this.handleReady,onTimeChange:"storyPin"===_?z:({time:e})=>{if(O&&"number"==typeof(null==V?void 0:V.duration)&&V.duration>0&&k){let t=V.duration/C.gJ;O({currentTime:e,duration:t},k)}},onVolumeChange:this.handleVolumeChange,preferMp4:d,playing:B,onPlay:()=>{},onPlayError:()=>{},preload:c,poster:Y,src:G,videoStartTime:U||b,volume:K,loop:o})]}),(0,u.jsx)(l.xu,{paddingX:1,children:"storyPin"!==_&&L&&(0,v.Z)(L)&&(0,u.jsx)(l.xu,{display:"flex",position:"absolute",bottom:!0,width:"calc(100% - 4px)",zIndex:A.Gf,paddingX:6,dangerouslySetInlineStyle:{__style:{...P.l3,flexDirection:"column-reverse"}},height:P.hy,children:(0,u.jsx)(w.Z,{activePageIndex:0,handleMute:()=>{this.setState({volume:j?0:1}),D(!j)},handlePanelChange:()=>{I&&I(!E)},handlePausePlay:()=>{this.setState({playing:!B})},handlePause:()=>{this.setState({playing:!0})},handlePlay:()=>{this.setState({playing:!0})},handleWatchAgain:this.handleRestartVideo,isMuted:j,isPanelOpen:E,pageCount:1,pages:[],pinId:x,isPlaying:B,progressInfo:T,showEndCard:Z,showVideoControls:"hover"===h,viewParameter:156,isStoryPin:!1,captionsUrl:f,captionsExpGroup:L})})})]})}}function B(e){var t,n;let l=(0,s.ZP)(),a=(0,k.B)(),{isAuthenticated:r}=a,o=(0,b.g)(),d=(0,f.E)(),{seekTime:c}=(0,T.Hx)(),{pinId:p,isPromoted:m,video:h,muted:_,variant:g}=e,{appUI:v,setCurrentVideo:x}=(0,D.I)(),{videosAutoplaying:P}=v,{organicVideosAutoplaying:S,promotedVideosAutoplaying:w}=P,A=a.locale.toLowerCase(),C=null!==(t=null===(n=h.mp4)||void 0===n?void 0:n.captions_urls)&&void 0!==t?t:{},j=A&&C[A]||Object.values(C)[0]||"",{checkExperiment:F}=(0,y.F)(),R=(0,E.HG)(),L="storyPin"!==g&&j&&R&&r?F("auth_desktop_video_pin_captions").group:"",z=m?w[p]:S[p],O=(0,I.Z)(),M=parseInt(O.t||0,10),[B,Z]=(0,i.useState)((null==z?void 0:z.currentTime)||0),[K,U]=(0,i.useState)(null),[H,V]=(0,i.useState)(!0),[G,$]=(0,i.useState)(!_);return(0,i.useEffect)(()=>{let e=B;M>0&&(e=M),c&&(e=c),Z(e)},[c,M,B]),(0,u.jsx)(N,{...e,i18n:l,isPlaying:!z||!z.paused,captions:String(j)||"",pwtSurfaceContext:d,requestContext:a,setCurrentVideo:x,storyPinStepStopwatch:o,videoStartTime:B,progressInfo:K,setProgressInfo:U,panelOpen:H,setPanelOpen:V,setMute:$,isMuted:G,captionsExpGroup:L})}L(N,"defaultProps",{loop:!1,showControls:"hover"})},579602:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(667294),l=n(883119),a=n(121151),r=n(898781),o=n(349700),s=n(785893);let d=({cancelBlockCallback:e,onBlock:t,onBlockCallback:n,openModalCallback:d,size:u,user:c})=>{let p=(0,r.ZP)(),[m,h]=(0,i.useState)(!1),_=()=>{h(!1)},{username:g,full_name:y,blocked_by_me:v}=null!=c?c:{};return(0,s.jsx)(l.kC,{alignItems:"stretch",justifyContent:"start",children:!v&&(0,s.jsxs)(l.xu,{"data-test-id":"block-button-container",children:[(0,s.jsx)(l.iP,{onTap:()=>{h(!0),null==d||d()},children:(0,s.jsx)(l.X6,{size:u||"400",children:p._('Block', 'BlockButton.Heading.Block', 'Blocking an user means you won\'t be able to follow each other or interact with each other\'s Pins')})}),(0,s.jsxs)(a.ZP,{accessibilityModalLabel:"",isOpen:m,onDismiss:_,mobileHideCloseIcon:!0,type:"block_button",children:[(0,s.jsx)(l.xu,{paddingX:3,paddingY:5,children:(0,s.jsx)(l.X6,{accessibilityLevel:1,size:"500",children:(0,o.nk)(p._('Block {{ full_name }}?', 'BlockButton.FullName.Block', 'full_name: user full name to block'),{full_name:y})})}),(0,s.jsx)(l.xu,{marginBottom:3,marginStart:2,marginEnd:2,children:(0,s.jsx)(l.xv,{children:(0,o.nk)(p._(`If you block {{full_name}} ({{username}}),
61
+ you won’t be able to follow each other
62
+ or interact with each other’s Pins.`, 'BlockButton.Description.Block', 'full_name:user full name to block, username: username to block, Warning about blocking a user'),{full_name:y,username:g})})}),(0,s.jsx)(l.xu,{marginBottom:2,marginStart:2,marginEnd:2,children:(0,s.jsx)(l.zx,{fullWidth:!0,color:"red",text:p._('Block', 'BlockButton.Action.Block', 'Action to block user'),onClick:()=>{if(c){let{id:e,first_name:n=""}=c;null==t||t(e,n,p)}_(),null==n||n()}})}),(0,s.jsx)(l.xu,{marginStart:2,marginEnd:2,children:(0,s.jsx)(l.zx,{fullWidth:!0,color:"gray",text:p._('Cancel', 'BlockButton.Action.Cancel', 'Action to cancel blocking a user'),onClick:()=>{_(),null==e||e()}})})]})]})})}},27255:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i={AMP_TRACKING_DOMAIN:"amp.pinterest.com",BoardPrivacy:{SECRET:"secret",PUBLIC:"public",PROTECTED:"protected"},BoardType:{PROTECTED:"protected"},BulkAction:{MOVE:"bulkMove",COPY:"bulkCopy",CREATE_SECTION:"bulkCreateSection",DELETE:"bulkDelete"},MAX_CHARS_FOR_BOARD_PIN_DESCRIPTION:500,MAX_CHARS_FOR_BOARD_TITLE:50,MAX_CHARS_FOR_FIRST_NAME:30,MAX_FETCH_NUM_FOLLOWERS_PER_PAGE:50,MAX_STORED_VISITED_PIN_PAGES:10,VIDEO_IFRAME_ID:"video-iframe"}},391254:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a}),n(441143);var i=n(785893);class l{static factory(e){return e instanceof l?e:new l(String(e))}constructor(e){this._private_safe_value=e.trim().replace(">",">").replace("<","<").replace("&","&").replace('"','"').replace("'","'")}toString(){return this._private_safe_value}}function a(e){let{css:t,unsafeCSS:n,...a}=e,r=String(t||"")||n||"",o=!!r;return o?(0,i.jsx)("style",{...a,dangerouslySetInnerHTML:{__html:String(l.factory(r))}}):null}},241244:(e,t,n)=>{"use strict";n.d(t,{N:()=>r,Z:()=>a});var i=n(883119),l=n(785893);function a({children:e,fullWidth:t}){return(0,l.jsx)(i.xu,{"data-test-id":"pointer-events-wrapper",dangerouslySetInlineStyle:{__style:{pointerEvents:"auto",width:t?"100%":void 0}},children:e})}function r({children:e,enabled:t}){return t?(0,l.jsx)(a,{children:e}):e}},743473:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var i,l,a=n(167912),r=n(214494),o=n(402201),s=n(186656),d=n(107193),u=n(567831),c=n(794230),p=n(704115);let m={open(e){var t;let n=m._validParams.reduce((t,n)=>(e&&Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]),t),{}),i=m._getDialogType(e),l=m.generateFbRef(null!==(t=e.unauthId)&&void 0!==t?t:""),a=e.object_type&&e.object_id&&"feed"===i,r=(0,u.Z)(e.path),h=(0,p.Z)();if(h.ptrf&&(r=(0,c.Z)(r,{ptrf:h.ptrf})),a&&(r=(0,c.Z)(r,{fb_ref:l})),n.method=i,"feed"===n.method){let t=(0,o.Z)({width:e.width,height:e.height}),i="http://www.facebook.com/sharer/sharer.php?u="+r;n.picture&&(i+="&picture="+n.picture),n.name&&(i+="&title="+n.name),n.description&&(i+="&description="+n.description),n.caption&&(i+="&caption="+n.caption),window.open(encodeURI(i),"sharer",t)}else"send"===n.method?n.link=r:"share"===n.method&&(n.href=r),(0,d.default)(t=>{t.getLoginStatus(()=>{if("send"===n.method){let i;t.ui(n);let l=10,a=setInterval(()=>{((i=function(){if(!document)return;let e=Array.from(document.querySelectorAll(".fb_dialog_iframe iframe")).reduce((e,t)=>t instanceof HTMLIFrameElement?e.concat([t]):e,[]);if(e.length)return e.slice(0,e.length-1).forEach(e=>{var t;return null===(t=e.parentNode)||void 0===t?void 0:t.removeChild(e)}),e[e.length-1]}())||!l)&&(clearInterval(a),i&&m.executeMessengerCallback(i,e.callback)),l-=1},1e3)}else"share"===n.method&&t.ui(n,t=>{a&&t&&!t.error_message&&(0,s.Z)({url:`/v3/log/facebook/feed_share/${e.object_type||""}/${e.object_id||""}/${l}`,method:"PUT",data:{showError:!1}}),e.callback&&e.callback(t)})})},e.viewer)},_validParams:["description","name","picture","to","href","caption","display"],_validOptions:["send","feed","share"],executeMessengerCallback(e,t){let n=10,i=setInterval(()=>{let{width:t}=e.style;"0px"!==t&&n||(clearInterval(i),e.style.width="575px"),n-=1},1e3);t&&t()},generateFbRef(e){let t="";for(;t.length<20;)t+=Math.floor(65535*Math.random()).toString(16);return e+":"+t},_getDialogType(e){let t=m._validOptions.includes(e.type),n=t?e.type:"feed";return n}},h=function(e,t){let n=window.screen.width,i=window.screen.height,l=Math.round((n-e)/2),a=i>t?Math.round((i-t)/2):0;return"scrollbars=yes,resizable=yes,toolbar=no,location=yes,width="+e+",height="+t+",left="+l+",top="+a};function _(e,t,n){let i=h(t,n);window.open(e,void 0,i)}let g={DIALOG_WIDTH:510,DIALOG_HEIGHT:525,openDialog(e){let t=g._getWindowUrl(e.share_path,e.share_text);_(t,g.DIALOG_WIDTH,g.DIALOG_HEIGHT)},_getWindowUrl:(e,t)=>(0,c.Z)("https://social-plugins.line.me/lineit/share",{url:e?(0,u.Z)(e):void 0,text:t})},y={DIALOG_WIDTH:550,DIALOG_HEIGHT:420,openDialog(e){let t=y._getWindowUrl(e.tweet_path,e.tweet_text);_(t,y.DIALOG_WIDTH,y.DIALOG_HEIGHT)},_getWindowUrl:(e,t)=>(0,c.Z)("https://twitter.com/intent/tweet",{via:"pinterest",url:e?(0,u.Z)(e):void 0,text:t||void 0})},v=void 0!==i?i:i=n(974452),f=void 0!==l?l:l=n(974016),b=()=>{let e=(0,a.useRelayEnvironment)();return async(t,n)=>await new Promise((i,l)=>(0,a.fetchQuery)(e,f,{invite_category:n.toString(),url:t}).subscribe({next:e=>{var t,n,l,a,r,o,s,d,u;return i({invite_code:null!==(t=null===(n=e.v3CreateShareLinkQuery)||void 0===n?void 0:null===(l=n.data)||void 0===l?void 0:l.inviteCode)&&void 0!==t?t:"",invite_url:null!==(a=null===(r=e.v3CreateShareLinkQuery)||void 0===r?void 0:null===(o=r.data)||void 0===o?void 0:o.inviteUrl)&&void 0!==a?a:"",title:null!==(s=null===(d=e.v3CreateShareLinkQuery)||void 0===d?void 0:null===(u=d.data)||void 0===u?void 0:u.title)&&void 0!==s?s:""})},error:e=>l(e)}))},x=()=>{let e=(0,a.useRelayEnvironment)();return async(t,n,i,l)=>{let r={invite_category:t,invite_object:n,invite_channel:i};return await new Promise((t,n)=>(0,a.fetchQuery)(e,v,{inviteType:JSON.stringify(r),objectId:l}).subscribe({next:e=>{var n,i,l,a,r,o,s,d,u;return t({invite_code:null!==(n=null===(i=e.v3InviteUserExternalQuery)||void 0===i?void 0:null===(l=i.data)||void 0===l?void 0:l.inviteCode)&&void 0!==n?n:"",invite_url:null!==(a=null===(r=e.v3InviteUserExternalQuery)||void 0===r?void 0:null===(o=r.data)||void 0===o?void 0:o.inviteUrl)&&void 0!==a?a:"",title:null!==(s=null===(d=e.v3InviteUserExternalQuery)||void 0===d?void 0:null===(u=d.data)||void 0===u?void 0:u.title)&&void 0!==s?s:""})},error:e=>n(e)}))}};function k(){let e={pin:1,board:2,pinner:3,article:5,did_it:6,today_article:8,search:0},t=b(),n=x();function i(t,n){let i=e[t.object_type]||0,l=t.invite_channel,a=null==t.invite_category?3:t.invite_category,o=t.object_id,s=r.Z.create("SentExternalInviteCallbackResource",{invite_type:{invite_category:a,invite_object:i,invite_channel:l},invite_code:n,object_id:o,client_tracking_params:t.client_tracking_params});return s.callCreate()}function l(i){let l=e[i.object_type]||0,a=i.invite_channel,r=null==i.invite_category?3:i.invite_category;return 10===r&&i.path?t(i.path,r):n(r,l,a.toString(),i.object_id)}return{ObjectTypeToInviteObject:e,logShareInvite:function(e,t){t&&i(e,t.invite_code)},createShareInviteData:l,shareFacebookInvite:function(e){let{options:t,unauthId:n,viewer:a}=e;return l(t).then(e=>{let l=e.invite_url,r=e.invite_code;if(l){let o={type:"share",object_type:t.object_type,object_id:t.object_id,name:t.name,caption:e.title,description:t.description,path:l,picture:t.picture,callback(e){e&&!e.error_message&&i(t,r)}};m.open({...o,display:"popup",unauthId:n,viewer:a})}return Promise.resolve(e)},e=>Promise.reject(e))},shareTwitterInvite:function(t){let n=e[t.object_type]||0;return l(t).then(e=>{let l=e.invite_url,a=e.invite_code,r=t.description;return 6===n&&t.name&&(r=t.name),r.trim()||(r=`${e.title}
63
+ `),l&&y.openDialog({tweet_path:l,tweet_text:r}),i(t,a),Promise.resolve(e)},e=>Promise.reject(e))},shareLineInvite:function(t){let n=e[t.object_type]||0;return l(t).then(e=>{let l=e.invite_url,a=e.invite_code,r=t.description;return 6===n&&t.name&&(r=t.name),r.trim()||(r=`${e.title}
64
+ `),l&&g.openDialog({share_path:l,share_text:r}),i(t,a),Promise.resolve(e)},e=>Promise.reject(e))},shareFbMessengerInvite:function(e){let{options:t,unauthId:n,viewer:a}=e;return l(t).then(e=>{let l=e.invite_url,r=e.invite_code;return l&&m.open({type:"send",object_type:t.object_type,object_id:t.object_id,name:t.name,caption:e.title,description:t.description,path:l,picture:t.picture,callback(e){e&&e.success&&i(t,r)},display:"popup",unauthId:n,viewer:a}),Promise.resolve(e)},e=>Promise.reject(e))}}}},335174:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(483205);let l=e=>`@keyframes shopButtonSlideInThenOut {
65
+ 0% {
66
+ width: 0px;
67
+ }
68
+
69
+ 15% {
70
+ width: ${e+i.I6}px;
71
+ }
72
+
73
+ 85% {
74
+ width: ${e+i.I6}px;
75
+ }
76
+
77
+ 100% {
78
+ width: 0px;
79
+ }
80
+ }
81
+
82
+ @keyframes revealShopText {
83
+ from {
84
+ clip-path: inset(0 100% 0 0);
85
+ }
86
+ to {
87
+ clip-path: inset(0 0 0 0);
88
+ }
89
+ }
90
+
91
+ @keyframes stelaSlideInThenOut {
92
+ 0% {
93
+ opacity: 0;
94
+ }
95
+
96
+ 15% {
97
+ opacity: 0;
98
+ }
99
+
100
+ 25% {
101
+ opacity: 1;
102
+ }
103
+
104
+ 50% {
105
+ opacity: 1;
106
+ }
107
+
108
+ 75% {
109
+ opacity: 1;
110
+ }
111
+
112
+ 85% {
113
+ opacity: 0;
114
+ }
115
+
116
+ 100% {
117
+ opacity: 0;
118
+ }
119
+ }
120
+
121
+
122
+ @keyframes stelaGrowInAndOut {
123
+ 0% {
124
+ transform: scale(0);
125
+ opacity: 0;
126
+ }
127
+
128
+ 10% {
129
+ transform: scale(1);
130
+ opacity: 1;
131
+ }
132
+
133
+ 90% {
134
+ transform: scale(1);
135
+ opacity: 1;
136
+ }
137
+
138
+ 100% {
139
+ transform: scale(0);
140
+ opacity: 0;
141
+ }
142
+ }
143
+
144
+ `},483205:(e,t,n)=>{"use strict";n.d(t,{I6:()=>l,Nv:()=>i,RZ:()=>a,ZG:()=>s,b9:()=>o,s0:()=>r});let i=44,l=24,a=446,r=.05,o=36,s=20},501338:(e,t,n)=>{"use strict";n.d(t,{Pw:()=>i,SB:()=>l,ZP:()=>r,x9:()=>a});let i=80,l=56,a=e=>"phone"===e?l:i;function r(e,t){return t?0:a(e)}},792606:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h}),n(167912);var i,l=n(883119),a=n(681669),r=n(898781),o=n(349700),s=n(867820),d=n(52022),u=n(829407),c=n(785893);let p=void 0!==i?i:i=n(353070);function m({pin:e,onClose:t,zIndex:n}){var i,a,p,m;let h=null==e?void 0:null===(i=e.board)||void 0===i?void 0:i.name,_=(null==e?void 0:null===(a=e.board)||void 0===a?void 0:a.privacy)==="protected"?null:null==e?void 0:null===(p=e.board)||void 0===p?void 0:p.url,g=(0,r.ZP)(),y=(0,d.Z)(),v=_&&h?{boardName:h,boardUrl:_,username:_.split("/")[1]}:null;return(0,u.Z)(()=>{var t;null!=e&&null!==(t=e.description)&&void 0!==t&&t.trim()||v||(0,s.My)("lop.dweb.plp.more_info.empty")}),(0,c.jsx)("div",{"data-test-id":"more-information-modal",style:{backgroundColor:"rgba(85, 85, 85, 0.9)",color:"#333",height:"100vh",left:0,position:"fixed",top:0,WebkitFontSmoothing:"antialiased",width:"100vw",zIndex:n||2},onClick:()=>{y({action:"click",item:"close-more-information-modal"}),t()},children:(0,c.jsxs)(l.xu,{as:"section",color:"default",dangerouslySetInlineStyle:{__style:{left:"50%",top:"50%",transform:"translate(-50%, calc(-50% - 32px))",paddingBottom:"10px"}},onClick:e=>e.stopPropagation(),position:"absolute",rounding:2,width:414,children:[(0,c.jsxs)(l.xu,{display:"flex",height:60,justifyContent:"end",dangerouslySetInlineStyle:{__style:{borderBottom:"solid 1px #efefef",padding:"0 24px"}},children:[(0,c.jsx)("div",{onClick:()=>t(),onKeyUp:()=>t(),role:"button",style:{cursor:"pointer",fill:"#767676",marginTop:"20px"},tabIndex:"0",children:(0,c.jsx)(l.xu,{"data-test-id":"close-more-information-modal",children:(0,c.jsx)(l.JO,{accessibilityLabel:g._('Cancel', 'close modal icon', 'close modal icon'),icon:"cancel",inline:!0,size:18})})}),(0,c.jsx)(l.xu,{marginTop:5,position:"absolute",dangerouslySetInlineStyle:{__style:{fontSize:"21px",fontWeight:"bold",left:"50%",transform:"translateX(-50%)"}},children:g._('More information', 'more information label', 'more information label')})]}),(0,c.jsxs)(l.xu,{dangerouslySetInlineStyle:{__style:{maxHeight:"calc(60vh - 60px)",overflowY:"auto",padding:"0 24px 24px 24px"}},children:[!!(null!=e&&e.description)&&(0,c.jsx)("h2",{style:{fontSize:"16px",marginTop:"15px"},children:e.description}),!!v&&(0,c.jsx)(l.xu,{marginTop:3,children:(0,c.jsx)(l.xv,{children:(0,o.nk)(g._('Find this Pin and more on {{ board_link }} by {{ profile_link }}.', 'Link to pin\'s board and board\'s owner', 'Link to pin\'s board and board\'s owner'),{board_link:(0,c.jsx)(l.xv,{inline:!0,weight:"bold",children:(0,c.jsx)(l.rU,{display:"inlineBlock",href:v.boardUrl,onClick:()=>(0,s.NC)("click_vase_modal_board",!0),underline:"hover",children:v.boardName},"board-link")}),profile_link:(0,c.jsx)(l.xv,{inline:!0,weight:"bold",children:(0,c.jsx)(l.rU,{display:"inlineBlock",href:`/${v.username}/`,onClick:()=>(0,s.NC)("click_vase_modal_profile",!0),underline:"hover",children:(null==e?void 0:null===(m=e.pinner)||void 0===m?void 0:m.fullName)||v.username},"profile-link")})})})})]})]})})}function h({pinKey:e,...t}){let{data:n}=(0,a.sr)(p,e,{type:"pin",useLegacyAdapter:e=>({board:e.board&&{name:e.board.name,privacy:e.board.privacy,url:e.board.url},description:e.description,pinner:e.pinner&&{fullName:e.pinner.full_name}})});return n&&(0,c.jsx)(m,{...t,pin:n})}},512176:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(667294),l=n(883119),a=n(112690),r=n(898781),o=n(967181),s=n(785893);let d={sm:12,md:16,lg:20,xl:24};function u({isVerifiedMerchant:e,size:t,showText:n,showVerifiedIdentity:u,inspirationalBadges:c,inspirationalBadgesColor:p}){let m=(0,r.ZP)(),[h,_]=(0,i.useState)(!1),{dangerousInlineStyle:g,iconColor:y}=(0,o.W)(!!e),v=(0,a.Z)();return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(l.iP,{onTap:()=>{v({component:13534,element:11717,event_type:102}),_(!0)},rounding:"circle",children:(0,s.jsxs)(l.xu,{alignItems:"center",dangerouslySetInlineStyle:g,display:"flex","data-test-id":"verified-badge-icon",children:[(0,s.jsx)(l.JO,{accessibilityLabel:e?m._('Merchant verification badge icon', 'merchantVerification.badge.icon', 'Badge indicating that a merchant or user is verified'):m._('Badge icon', 'merchantVerification.badge.icon', 'Badge indicating that a merchant or user is verified'),icon:"workflow-status-ok",color:y,inline:!0,size:d[t]}),n&&!u&&(0,s.jsx)(l.xu,{marginStart:2,children:(0,s.jsx)(l.xv,{color:"shopping",inline:!0,weight:"bold",children:(0,s.jsx)(l.xu,{dangerouslySetInlineStyle:g,children:m._('Verified merchant', 'creator.header.verifiedMerchant', 'this merchant is a verified merchant')})})})]})}),(e||n&&!u)&&(0,s.jsx)(o.Z,{showModal:h,setShowModal:_,inspirationalBadges:c,inspirationalBadgesColor:p})]})}},967181:(e,t,n)=>{"use strict";n.d(t,{W:()=>c,Z:()=>p});var i=n(667294),l=n(883119),a=n(752403),r=n(112690),o=n(121151),s=n(898781),d=n(966113),u=n(785893);let c=e=>{let t=e?"shopping":"error";return{iconColor:t,dangerousInlineStyle:{__style:{color:t}}}};function p({inspirationalBadges:e=[],inspirationalBadgesColor:t,showModal:n,setShowModal:p}){let m=(0,s.ZP)(),[h,_]=(0,i.useState)(!0),{dangerousInlineStyle:g,iconColor:y}=c(!0),v=(0,r.Z)();return(0,i.useEffect)(()=>{n&&h&&(_(!1),v({event_type:13,component:13534}))},[n]),(0,u.jsx)(o.ZP,{accessibilityModalLabel:m._('Verified merchant information', 'creator.verifiedMerchant.accessibilityModalLabel', 'Accessibility label for modal informing about a verified merchant'),isOpen:n,mobileAccessibilityCloseIconLabel:m._('Close', 'Close modal window', 'Close modal'),onDismiss:()=>{v({component:13534,element:11716,event_type:102}),p(!1)},type:"verified_merchant_modal",children:(0,u.jsx)(l.xu,{padding:3,children:(0,u.jsxs)(l.xu,{display:"flex",direction:"column",padding:2,"data-test-id":"verified-badge-modal",children:[(0,u.jsx)(l.xu,{display:"flex",dangerouslySetInlineStyle:g,justifyContent:"center",children:(0,u.jsx)(l.JO,{accessibilityLabel:m._('Merchant verification badge icon', 'creator.verifiedMerchant.modalIcon', 'Badge indicating that a merchant or user is verified'),color:y,icon:"workflow-status-ok",size:24})}),(0,u.jsx)(l.xu,{marginTop:4,children:(0,u.jsx)(l.xv,{color:"shopping",weight:"bold",align:"center",children:(0,u.jsx)(l.xu,{dangerouslySetInlineStyle:g,children:m._('Verified merchant', 'creator.verifiedMerchant.modalHeader', 'this merchant is a verified merchant')})})}),(0,u.jsx)(l.xu,{marginTop:4,marginBottom:4,children:(0,u.jsx)(l.xv,{align:"center",overflow:"normal",children:m._('This retailer meets Pinterest\'s Merchant Guidelines', 'creator.verifiedMerchant.modalText.', 'this merchant is a verified merchant')})}),e.map(e=>(0,u.jsxs)(l.xu,{display:"flex",direction:"column",marginTop:4,children:[(0,u.jsx)(l.kC,{alignItems:"stretch",justifyContent:"center",children:(0,u.jsx)(l.xv,{overflow:"noWrap",size:"100",weight:"bold",children:(0,u.jsx)(l.xu,{display:"inlineBlock",rounding:1,paddingX:2,paddingY:2,dangerouslySetInlineStyle:{__style:(0,a.ym)(t)},"data-test-id":"verified-badge-modal-inspirational-badge",children:e.label})})}),(0,u.jsx)(l.xu,{marginTop:2,children:(0,u.jsx)(l.xv,{align:"center",overflow:"normal",children:e.description})})]},e.id)),(0,u.jsx)(l.xu,{display:"flex",marginTop:8,justifyContent:"center",width:"100%","data-test-id":"verified-badge-modal-learn-more",children:(0,u.jsx)(l.ZP,{accessibilityLabel:m._('Learn more', 'creator.verifiedMerchant.buttonText', 'learn more about the verified merchant program by visiting help.pinterest.com'),target:"blank",size:"lg",href:d.vBy,text:m._('Learn more', 'creator.verifiedMerchant.buttonText', 'learn more about the verified merchant program by visiting help.pinterest.com')})})]})})})}},619937:(e,t,n)=>{"use strict";n.d(t,{$N:()=>h,Cu:()=>g,GY:()=>d,MZ:()=>r,NR:()=>c,Vn:()=>u,bC:()=>_,fm:()=>i,kM:()=>a,q6:()=>l,qp:()=>s,uV:()=>p,ug:()=>m,xL:()=>o});let i={DOWNLOAD_TEMPLATE:"DOWNLOAD_TEMPLATE",UPLOAD_TEMPLATE:"UPLOAD_TEMPLATE",HISTORY:"HISTORY",RESOURCES:"RESOURCES"},l={GENERAL:"GENERAL",CAMPAIGNS:"CAMPAIGNS",AD_GROUPS:"AD_GROUPS",ADS:"ADS",KEYWORDS:"KEYWORDS",PRODUCT_GROUPS:"PRODUCT_GROUPS",ERROR_CODES:"ERROR_CODES"},a={BILLING_HISTORY:"BILLING_HISTORY",BILLING_FORMS:"BILLING_FORMS",ORDER_LINES:"ORDER_LINES",PROMOTIONS:"PROMOTIONS",TAX_DOCUMENTS:"TAX_DOCUMENTS",DOCUMENTS:"DOCUMENTS",PREPAID_CAMPAIGN_SPEND:"PREPAID_CAMPAIGN_SPEND_SUMMARY"},r={GOOGLE_TAG_MANAGER:"Google Tag Manager",SHOPIFY:"Shopify",WOO_COMMERCE:"WooCommerce",WORDPRESS:"WordPress",SQUARESPACE:"Squarespace",WEEBLY:"Weebly",TEALIUM:"Tealium",MAGENTO:"Magento",ECWID:"Ecwid",BIG_COMMERCE:"BigCommerce",PREMMERCE:"Premmerce",SEGMENT:"Segment",BRANCH:"Branch",HIGHTOUCH:"Hightouch",EULERIAN:"Eulerian",ADOBE_CDP:"Adobe Real-Time CDP",ADOBE_COMMERCE:"Adobe Commerce",SALESFORCE_COMMERCE_CLOUD:"Salesforce Commerce Cloud"},o={GTM:"GTM",SHOPIFY:"SHOPIFY",WORDPRESS:"WORDPRESS",WOOCOMMERCE:"WOOCOMMERCE",TEALIUM:"TEALIUM"},s={PINTEREST_TAG:"PINTEREST_TAG",PINTEREST_TAG_MANUAL_SETUP_FLOW:"PINTEREST_TAG_MANUAL_SETUP_FLOW",PINTEREST_TEST_EVENTS:"PINTEREST_TEST_EVENTS",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_PARTNER_SETUP_FLOW:"CONVERSIONS_API_PARTNER_SETUP_FLOW",CONVERSIONS_API_MANUAL_SETUP_FLOW:"CONVERSIONS_API_MANUAL_SETUP_FLOW",PINTEREST_EVENTS_OVERVIEW:"PINTEREST_EVENTS_OVERVIEW",PINTEREST_EVENT_HISTORY:"PINTEREST_EVENT_HISTORY",PAYLOAD_HELPER:"PAYLOAD_HELPER",CONVERSIONS:"CONVERSIONS",PINTEREST_EVENTS_OVERVIEW_BEFORE_SETUP:"PINTEREST_EVENTS_OVERVIEW_BEFORE_SETUP",PINTEREST_SETUP_API:"PINTEREST_SETUP_API"},d={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"},u={UNREAD:"UNREAD",READ:"READ",ACCEPTED:"ACCEPTED",REJECTED:"REJECTED",DISMISSED:"DISMISSED",INVALID:"INVALID",MUTED:"MUTED",SNOOZED:"SNOOZED",PMP_REPORTED:"PMP_REPORTED",EMAILED:"EMAILED",BULK_DOWNLOADED:"BULK_DOWNLOADED",FILTERED:"FILTERED",PUSHED:"PUSHED"},c={DESTINATION:"destination",EXPIRY:"expiry",SOURCE:"attributionsrc",SOURCE_EVENT_ID:"source_event_id",SOURCE_EVENT_TYPE:"source_event_type",PRIORITY:"priority",CLICK_PRIORITY:"2",VIEW_PRIORITY:"1",CAMPAIGN_ID:"campaign_id",ADVERTISER_ID:"advertiser_id"},p="604800",m="86400",h={ATTRIBUTION_SOURCE_ID:"attributionsourceid",ATTRIBUTE_DESTINATION:"attributiondestination",ATTRIBUTE_ON:"attributeon"},_="click",g="view"},337815:(e,t,n)=>{"use strict";n.d(t,{YS:()=>r,eF:()=>o,m_:()=>a});var i=n(619937),l=n(67347);function a(e,t,n,l,a){let r=new URLSearchParams,o=null!=e?e:"0";return r.append(i.NR.SOURCE_EVENT_ID,o),r.append(i.NR.DESTINATION,function(e){let t;try{t=decodeURIComponent(e)}catch(n){t=e}t.startsWith("http")?t.startsWith("http://")&&(t=t.replace("http://","https://")):t="https://"+t;try{return new URL(t).origin}catch(i){let n=t.match(/^(https?:\/\/[^\/]+)(\/|$)/);if(n&&n.length>1)return n[1];return e}}(t)||""),r.append(i.NR.EXPIRY,n?i.uV:i.ug),r.append(i.NR.PRIORITY,n?i.NR.CLICK_PRIORITY:i.NR.VIEW_PRIORITY),a&&r.append(i.NR.ADVERTISER_ID,a),l&&r.append(i.NR.CAMPAIGN_ID,l),r.append(i.NR.SOURCE_EVENT_TYPE,n?i.bC:i.Cu),"/attribution_source/?"+r.toString()}async function r(e,t,n,i,r,o,s){let{appType:d,osType:u}=o||{};if(["Pin","pinImpressions"].includes(e)&&t&&i){(0,l.nP)("webapp.arapi.view.funnel",{sampleRate:.1,tags:{status:"start",appType:d,osType:u}});try{var c;if(!(null!==(c=window.document.featurePolicy)&&void 0!==c&&c.allowsFeature("attribution-reporting"))){(0,l.nP)("webapp.arapi.view.funnel",{sampleRate:.1,tags:{status:"skipped",message:"attribution-reporting is not enabled",appType:d,osType:u}});return}let e=a(n,i||"",!1,r,s),t=await window.fetch(e,{keepalive:!0,attributionReporting:{eventSourceEligible:!0,triggerEligible:!1}});if(!t.ok)throw Error("server request failed.");(0,l.nP)("webapp.arapi.view.funnel",{sampleRate:.1,tags:{status:"success",appType:d,osType:u}})}catch(e){(0,l.nP)("webapp.arapi.view.funnel",{sampleRate:.1,tags:{status:"failed",error:e.name,appType:d,osType:u}})}}else(0,l.nP)("webapp.arapi.view.funnel",{sampleRate:.1,tags:{status:"missing_param",appType:d,osType:u}})}function o(e){if(e){let t=e.toLowerCase();if(t.includes("windows"))return"windows xp"===t?1:"windows vista"===t?2:"windows 7"===t?3:"windows 8"===t?4:12;if(t.includes("mac os"))return 5;if(t.includes("android"))return 7;if(t.includes("ios"))return 6;if(t.includes("ubuntu"))return 8;if(t.includes("chromium os"))return 13}return 0}},283698:(e,t,n)=>{"use strict";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})},100183:(e,t,n)=>{"use strict";n.d(t,{CC:()=>l,Ll:()=>r,XF:()=>a});let i=(e,t,n)=>({x:Math.floor(e*Math.cos(n)),y:Math.floor(t*Math.sin(n))}),l=(e,t)=>{let n=2*Math.random()*Math.PI;return i(t/2,e/2,n)},a=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,r=e=>["@-webkit-keyframes","@keyframes"].map(t=>e.map(e=>t+" "+e).join("\n")).join("\n")},561067:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m}),n(167912);var i,l=n(883119),a=n(681669),r=n(898781),o=n(867820),s=n(52022),d=n(785893);let u=void 0!==i?i:i=n(30755),c=()=>{let e=(0,r.ZP)();return(0,d.jsx)(l.xv,{size:"300",children:e._('Featured in Pinterest\'s article', 'Title of suggesting articles module in the pin.', 'unauth.main_pin.featured_in_articles')})};function p({isDesktop:e,pin:t}){let n=(0,r.ZP)(),i=(0,s.Z)(),{_id:a,mainImageUrl:u,title:p,urlPath:m}=(null==t?void 0:t.relatedArticle)||{};if(!a&&!u&&!p&&!m)return null;let h=()=>{(0,o.tj)("mweb.unauth.featured_in_article_text.plp.touch",{article_id:a}),i({action:"click",item:"pin-featured-in-article"})};return(0,d.jsxs)(l.xu,{marginTop:10,children:[(0,d.jsx)(l.iz,{}),!e&&(0,d.jsx)(l.xu,{marginTop:4,marginBottom:-2,children:(0,d.jsx)(c,{})}),(0,d.jsxs)(l.xu,{display:"flex",direction:"row",marginBottom:4,marginTop:4,children:[(0,d.jsx)(l.xu,{alignSelf:"center",children:(0,d.jsx)(l.zd,{width:48,height:48,rounding:3,children:u&&(0,d.jsx)(l.Ee,{alt:"",color:"#efefef",fit:"cover",naturalHeight:1,naturalWidth:1,src:u})})}),(0,d.jsxs)(l.xu,{marginStart:2,marginEnd:2,alignSelf:"center",children:[e&&(0,d.jsx)(c,{}),(0,d.jsx)(l.rU,{href:m||"",underline:"none",tapStyle:"compress",onClick:()=>h(),children:(0,d.jsx)(l.xv,{size:"300",weight:"bold",overflow:"normal",children:p})})]}),(0,d.jsx)(l.xu,{"data-test-id":"view-button",marginStart:"auto",children:(0,d.jsx)(l.ZP,{fullWidth:!0,href:m||"",size:"lg",text:n._('View', 'Button that takes the user from a pin to the article the pin is featured on', 'unauth.main_pin.view_featured_in_articles'),onClick:()=>h()})})]})]})}let m=({pinKey:e,...t})=>{let{data:n}=(0,a.sr)(u,e,{type:"pin",useLegacyAdapter:e=>({relatedArticle:e.related_article&&{_id:e.related_article.id,mainImageUrl:e.related_article.main_image_url,title:e.related_article.title,urlPath:e.related_article.url_path}})});return n&&(0,d.jsx)(p,{...t,pin:n})}},366284:(e,t,n)=>{"use strict";n.d(t,{G6:()=>a,i7:()=>r,oi:()=>i,u$:()=>l,un:()=>s,vU:()=>o});let i=Object.freeze({OTHER:0,CHROME:1,SAFARI:2,IE:3,FIREFOX:4,OPERA:5,EDGE:6}),l=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 a(e){return l(e)===i.SAFARI}function r(e){return l(e)===i.CHROME}function o(e){return l(e)===i.FIREFOX}function s(e){return l(e)===i.EDGE}},780678:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l,v:()=>i});let i=()=>"undefined"!=typeof navigator&&"getInstalledRelatedApps"in navigator;async function l(){if(!i())return[];try{let e=await navigator.getInstalledRelatedApps();return e}catch(e){return[]}}},78714:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(56641),l=n(867820),a=n(954931);let r=(e,t)=>{null!=t&&t.disableOriginCheck||(0,a.Z)(e)||(e="/",(0,l.My)("url_reset")),(0,i.Z)(e)}},792182:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(667294);function l(e){return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}function a(){return window.innerWidth}function r(){return window.innerHeight}function o(){return null}function s(){let e=(0,i.useSyncExternalStore)(l,r,o),t=(0,i.useSyncExternalStore)(l,a,o);return null!==e&&null!==t?{height:e,width:t}:null}},924196:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i={GOOGLE_ADWORDS_ID:852082959,GOOGLE_ADWORDS_LABEL_PROPEL_QUALIFIED:"Mah3CPrv13YQj4KnlgM",GOOGLE_ADWORDS_LABEL_PROPEL_UNQUALIFIED:"_DJfCKzy13YQj4KnlgM",GOOGLE_ADWORDS_LABEL_BUSINESS_CREATE:"GGbCCM7p-nYQj4KnlgM",GOOGLE_ADWORDS_LABEL_BUSINESS_CONVERT:"SwBsCIz9k3cQj4KnlgM",GOOGLE_ADWORDS_LABEL_BUSINESS_ADVERTISER_INTENT:"kDf0COWL4okBEI-Cp5YD",DOUBLECLICK_TAG_ID:"8032161",DOUBLECLICK_EVENT_ID_PROPEL:"prope001",DOUBLECLICK_CATEGORY_ID_PROPEL_QUALIFIED:"pinte0",DOUBLECLICK_CATEGORY_ID_PROPEL_UNQUALIFIED:"pinte00",TRADEDESK_ADVERTISER_ID:"fc1uc9n",TRADEDESK_EVENT_ID_GENERAL_PAGEVIEW:"ogalyt3",TRADEDESK_CONVERSION_ID_PROPEL_QUALIFIED:"judrn76",TRADEDESK_CONVERSION_ID_PROPEL_UNQUALIFIED:"f0v4s5d",FACEBOOK_ADVERTISER_ID:"956400731086791",TWITTER_UNIVERSAL_TAG_ID:"nuzh8",TWITTER_CONVERSION_ID_PROPEL_QUALIFIED:"ny8zl",TWITTER_CONVERSION_ID_PROPEL_UNQUALIFIED:"nya0d",LINKEDIN_PARTNER_ID:"44352",LINKEDIN_CONVERSION_ID_PROPEL_QUALIFIED:"166217",LINKEDIN_CONVERSION_ID_PROPEL_UNQUALIFIED:"171754",LINKEDIN_CONVERSION_ID_SUBMISSION_EVENT:"529092",PINTEREST_TAG_ID:"2614461171935",SMB_PAID_PINTEREST_ID:"2613736141997"}},904431:(e,t,n)=>{"use strict";function i(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>a});class l{static reportGoogleConversion(e,t,n,i){if(!i){if(void 0===window.gtag_report_conversion){l.queuedGoogleConversions.push({id:e,label:t,url:n});return}window.gtag_report_conversion(e,t,n)}}static reportFacebookConversion(e,t,n){if(void 0===window.fbq){l.queuedFacebookConversions.push({id:e,event:t,data:n});return}n?window.fbq("track",t,n):window.fbq("track",t)}static reportCustomFacebookConversion(e,t,n){if(void 0===window.fbq){l.queuedFacebookConversions.push({id:e,isCustomEvent:!0,event:t,data:n});return}n?window.fbq("trackCustom",t,n):window.fbq("trackCustom",t)}static reportPinterestConversion(e,t,n){if(void 0===window.pintrk){l.queuedPinterestConversions.push({id:e,event:t,data:n});return}n?window.pintrk("track",t,n):window.pintrk("track",t)}static reportTheTradeDeskConversion(e,t){let n=document.createElement("img");n.setAttribute("height","1"),n.setAttribute("width","1"),n.setAttribute("role","presentation"),n.style.borderStyle="none",n.style.position="absolute",n.setAttribute("src",`//insight.adsrvr.org/track/conv/?adv=${e}&ct=0:${t}&fmt=3`),document.body.insertBefore(n,document.body.lastChild)}static reportLinkedInConversion(e,t){let n=document.createElement("img");n.setAttribute("width","1"),n.setAttribute("height","1"),n.setAttribute("role","presentation"),n.setAttribute("src",`https://dc.ads.linkedin.com/collect/?pid=${e}&conversionId=${t}&fmt=gif`),n.style.display="none",document.body.insertBefore(n,document.body.lastChild)}static reportDoubleClickConversion(e,t,n){let i=1e13*Math.random(),l=document.createElement("iframe");l.setAttribute("width","1"),l.setAttribute("height","1"),l.setAttribute("frameborder","0"),l.setAttribute("src",`https://${e}.fls.doubleclick.net/activityi;src=${e};
145
+ type=${t};cat=${n};dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;ord=${i}?`),l.style.display="none",document.body.insertBefore(l,document.body.lastChild)}static insertGoogleAdWordsTag(e,t){let n=document.createElement("script");t||(n.setAttribute("async",""),n.setAttribute("src",`https://www.googletagmanager.com/gtag/js?id=AW-${e}`),n.onload=()=>{window.dataLayer=window.dataLayer||[],window.gtag=function(e,t,n){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("config","AW-"+e),window.gtag_report_conversion=function(e,t,n){return window.gtag("event","conversion",{send_to:"AW-"+e+"/"+t,event_callback:function(){void 0!==n&&window.location.assign(n)}}),!1};let n=l.queuedGoogleConversions;for(let i=0;i<n.length;i+=1){let a=n[i];a.id===e&&l.reportGoogleConversion(a.id,a.label,a.url,t)}}),document.body.insertBefore(n,document.body.firstChild)}static insertFacebookPixelTag(e){var t,n,i,a,r,o;t=window,n=document,i="script",t.fbq||(a=t.fbq=function(){"function"==typeof a.callMethod?a.callMethod(...arguments):a.queue.push(arguments)},t._fbq||(t._fbq=a),a.push=a,a.loaded=!0,a.version="2.0",a.queue=[],(r=n.createElement(i)).async=!0,r.src="//connect.facebook.net/en_US/fbevents.js",(o=n.getElementsByTagName(i)[0]).parentNode.insertBefore(r,o)),window.fbq("init",e),window.fbq("track","PageView");let s=l.queuedFacebookConversions;for(let t=0;t<s.length;t+=1){let n=s[t];n.id===e&&(n.isCustomEvent?l.reportCustomFacebookConversion(e,n.event,n.data):l.reportFacebookConversion(e,n.event,n.data))}}static insertPinterestTag(e){!function(e){if(!window.pintrk){window.pintrk=function(){window.pintrk.queue.push(Array.prototype.slice.call(arguments))};let t=window.pintrk;t.queue=[],t.version="3.0";let n=document.createElement("script");n.async=!0,n.src=e;let i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(n,i)}}("https://s.pinimg.com/ct/core.js"),window.pintrk("load",e),window.pintrk("page");let t=l.queuedPinterestConversions;for(let n=0;n<t.length;n+=1){let i=t[n];i.id===e&&l.reportPinterestConversion(e,i.event,i.data)}}}i(l,"queuedGoogleConversions",[]),i(l,"queuedFacebookConversions",[]),i(l,"queuedPinterestConversions",[]);let a=l},752403:(e,t,n)=>{"use strict";n.d(t,{Bu:()=>h,Dm:()=>o,I:()=>y,NG:()=>p,QP:()=>u,S4:()=>d,Xe:()=>c,_f:()=>m,eT:()=>_,hm:()=>g,yQ:()=>s,ym:()=>v});var i=n(642345);let l=Object.freeze({AFRICAN_AMERICAN_OR_BLACK:"african_american_or_black",BLACK_AFRICAN_DIASPORA:"black_african_diaspora",HISPANIC_OR_LATINX:"hispanic_or_latinx",NATIVE_OR_INDIGENOUS:"native_or_indigenous",ABORIGINAL_OR_INDIGENOUS:"aboriginal_or_indigenous",NATIVE_AMERICAN_OR_ALASKA_NATIVE_OR_INDIGENOUS_PEOPLES:"native_american_or_alaska_native_or_indigenous_peoples",ASIAN_OR_PACIFIC_ISLANDERS:"asian_or_pacific_islanders",ASIAN:"asian",LGBTQ:"lgbtq",MIDDLE_EASTERN:"middle_eastern",TURKISH:"turkish",ROMA:"roma",MIDDLE_EASTERN_TURKISH_ROMA:"middle_eastern_turkish_roma",NORTH_AFRICAN:"north_african",MIDDLE_EASTERN_OR_NORTH_AFRICAN:"middle_eastern_or_north_african",NONE:"none"}),a=Object.freeze({PERSON_OF_COLOR:"person_of_color",LGBTQ:"lgbtq",DISABILITY:"disability",WOMAN:"woman",NONE:"none"}),r=Object.freeze({INVESTED_IN_GOOD:"invested_in_good",ECO_FRIENDLY:"eco_friendly",RESPONSIBLY_SOURCED:"responsibly_sourced",INCLUSIVE:"inclusive",PERSONAL_TOUCH:"personal_touch"}),o=[...Object.keys(l).map(e=>l[e]),...Object.keys(a).map(e=>a[e])],s=[...Object.keys(r).map(e=>r[e])],d=3,u=["#EFEFEF","#F8E3D1","#F6F1C1","#DDEEAF","#C9F2EE","#DBD5F4","#EFBCEE"],c={business_diversity_labels:[],created_at:"",disapproval_reasons:[],is_inspirational:!1,review_criteria:[],review_labels:[],updated_at:"",inspirational_badge_selection:{badgeColor:u[0],badgeOptOut:[]},is_eligible_for_storefront_badges:!1,badge_details:[],profile_badges:[]},p="https://help.pinterest.com/article/merchant-details",m="https://help.pinterest.com/business/article/add-merchant-details-to-your-profile";function h({verifiedMerchant:e}){var t,n;let i=null==e?void 0:e.isVerifiedMerchant,l=null==e?void 0:null===(t=e.inspirational_signal)||void 0===t?void 0:t.is_inspirational,a=null==e?void 0:null===(n=e.inspirational_signal)||void 0===n?void 0:n.is_eligible_for_storefront_badges;return!!(i&&l&&a)}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 y(e,t,n){return t&&n?t.map(e=>n.find(t=>t.id===e.trim())).filter(Boolean):[]}function v(e){let t=e||u[0];return{backgroundColor:t,color:function(e){let t=(0,i.oo)(e);if(!t)return"white";let[n,l,a]=t,r=(0,i.DW)(n,l,a);return r<=i.I?"white":"black"}(t)}}},737022:(e,t,n)=>{"use strict";function i(e,t=!1){var n;return e&&null!==(n=[...t?[e["736x"],e["564x"]]:[e["564x"],e["736x"]],e["474x"],e["236x"]].find(e=>null==e?void 0:e.url))&&void 0!==n?n:null}n.d(t,{Z:()=>i})},729884:(e,t,n)=>{"use strict";n.d(t,{P:()=>p,Z:()=>c});var i,l,a,r,o=n(167912),s=n(357998),d=n(897243),u=n(681669);function c(e){let{childDataKey__DEPRECATED:t}=(0,s.Q)(void 0!==r?r:r=n(669926),e,{useLegacyAdapter:()=>({})}),c=function(e){var t,l;let{data:a}=(0,s.Q)(void 0!==i?i:i=n(680880),e,{useLegacyAdapter:e=>{var t,n,i;return{carouselData:e.carousel_data&&{entityId:null!==(t=e.carousel_data.id)&&void 0!==t?t:"",index:e.carousel_data.index,carouselSlots:null!==(n=null===(i=e.carousel_data.carousel_slots)||void 0===i?void 0:i.map(e=>{var t,n,i,l;return{details:e.details,imageSignature:e.image_signature,image236x:(null===(t=e.images)||void 0===t?void 0:t["236x"])&&{height:e.images["236x"].height,url:e.images["236x"].url,width:e.images["236x"].width},image474x:(null===(n=e.images)||void 0===n?void 0:n["474x"])&&{height:e.images["474x"].height,url:e.images["474x"].url,width:e.images["474x"].width},image564x:(null===(i=e.images)||void 0===i?void 0:i["564x"])&&{height:e.images["564x"].height,url:e.images["564x"].url,width:e.images["564x"].width},image736x:(null===(l=e.images)||void 0===l?void 0:l["736x"])&&{height:e.images["736x"].height,url:e.images["736x"].url,width:e.images["736x"].width},slotId:e.id,title:e.title}}))&&void 0!==n?n:[]}}}});return null!=a&&a.carouselData?{index:a.carouselData.index,carouselId:a.carouselData.entityId,carouselSlots:null!==(t=null===(l=a.carouselData.carouselSlots)||void 0===l?void 0:l.map(({details:e,imageSignature:t,image236x:n,image474x:i,image564x:l,image736x:a,slotId:r,title:o})=>({details:e,imageSignature:t,imageSizeMap:[["236x",n],["474x",i],["564x",l],["736x",a]].reduce((e,[t,n])=>({...e,[t]:n}),{}),slotId:r,title:o})))&&void 0!==t?t:[]}:null}(t),p=function({pinKey:e,index:t}){let i;return i=null==e?{type:"deprecated",data:null}:"graphqlRef"===e.type?e:{type:"deprecated",data:e.data},(0,u.Zm)(void 0!==a?a:a=n(283996),i,{useGraphQLAdapter:e=>{var i,a;let r=null===(i=e.richMetadata||e.richSummary)||void 0===i?void 0:null===(a=i.products)||void 0===a?void 0:a[0],s=function(e){let t=(0,o.useFragment)(void 0!==l?l:l=n(240956),e);if(!t)return[];let i={},{image236x:a,image474x:r,image564x:s,image736x:d}=t;return[[a,"236x"],[r,"474x"],[s,"564x"],[d,"736x"]].forEach(([e,t])=>{(null!=e?e:[]).forEach(({canonicalImage:e,imageSignature:n})=>{n&&e&&(i={...i,[n]:{...i[n],[t]:{height:e.height,url:e.url,width:e.width}}})})}),Object.entries(i).map(([e,t])=>({imageSignature:e,imageSizeMap:t}))}(r);return r&&s.length?{carouselId:r.productId,carouselSlots:[{imageSignature:null,imageSizeMap:[["236x",e.image236x],["474x",e.image474x],["564x",e.image564x],["736x",e.image736x]].reduce((e,[t,n])=>({...e,[t]:n&&{height:n.height,url:n.url,width:n.width}}),{})},...s],index:t}:null},useLegacyAdapter:e=>{var n,i,l;let a=null===(n=(null==e?void 0:e.rich_metadata)||(null==e?void 0:e.rich_summary))||void 0===n?void 0:null===(i=n.products)||void 0===i?void 0:i[0],r=(null!==(l=null==a?void 0:a.additional_images)&&void 0!==l?l:[]).reduce((e,{canonical_images:t,image_signature:n})=>e.concat(t&&n?[{imageSignature:n,imageSizeMap:Object.keys(t).reduce((e,n)=>t[n]?{...e,[n]:{height:t[n].height,url:t[n].url,width:t[n].width}}:e,{})}]:[]),[]);return e&&a&&r.length?{carouselId:a.id,carouselSlots:[...e.images?[{imageSignature:null,imageSizeMap:(0,d.b)(e.images)}]:[],...r],index:t}:null}}).data}({pinKey:t,index:null==c?void 0:c.index});return p?{...p,carouselSlots:p.carouselSlots.map(e=>({...e,details:null,slotId:null,title:null}))}:c}function p({children:e,pinKey:t}){return e(c(t))}},768559:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(826067);let l=/\/today\/(article|best|trending)\/[\w-]+\/(\d+)/,a=(e,t)=>t?e.substring(t.length).split("/")[0]:e,r=({boardUrl:e,path:t,pinId:n,pinnerUserName:r,query:o,search:s,storyPinDataId:d})=>{var u;if(!t)return"";let c="";switch(t){case"/":case"/homefeed/":return"UserHomefeedResource";case r&&`/${r}/pins/`:return"UserPinsResource";case r&&`/${r}/`:case/\/_activity\//.test(t)&&t:return"UserActivityPinsResource";case/\/_created\//.test(t)&&t:return d?"UserStoryPinsFeedResource":"UserActivityPinsResource";case/\/_community\//.test(t)&&t:return"UserDiscoveredPinsResource";case/\/_saved\//.test(t)&&t:return"BoardlessPinsResource";case r&&`/${r}/_shopping_list/`:return"ShoppingListFeedResource";case/\/visual-search\//.test(t)&&t:return"VisualLiveSearchResource";case/\/pin\//.test(t)&&t:c="/pin/";let p=a(t,c);if(n!==p)return`RelatedPinFeedResource_${p}`;break;case/\/search\//.test(t)&&t:if(s){let e=(0,i.mB)(s,{shouldDecode:!1}).q||"";return`SearchResource_${e.toLowerCase()}`}if(o)return`SearchResource_${encodeURIComponent(o.q||"").toLowerCase()}`;break;case/\/categories\//.test(t)&&t:c="/categories/";let m=a(t,c);return`CategoryFeedResource_${m}`;case/\/discover\/topics\//.test(t)&&t:return"CategoryFeedResource";case/\/news_hub\//.test(t)&&t:c="/news_hub/";let h=a(t,c);return`NewsHubDetailsResource_${h}`;case/\/_tools\/more-ideas\//.test(t)&&t:return"BoardContentRecommendationResource";case/\/topics\//.test(t)&&t:c="/topics/";let _=a(t,c);return`TopicFeedResource_${_}`;case/\/source\//.test(t)&&t:c="/source/";let g=a(t,c);return`DomainFeedResource_${g}`;case/\/explore\//.test(t)&&t:c="/explore/";let y=a(t,c);return`SearchResource_${y}`;case e:case!!e&&/\/more_ideas\//.test(t)&&t:return"BoardFeedResource";case e&&t.indexOf(e)>-1&&t:return"BoardSectionPinsResource";case/\/brand_catalog\//.test(t)&&t:return"BrandCatalogFeedResource";case l.test(t)&&t:let v=(null===(u=t.match(l))||void 0===u?void 0:u[2])||"unknown";return`TodayArticleFeedResource_${v}`;case/\/today\//.test(t):return"TodayTabResource";case/\story_feed\//.test(t)&&t:if(s){let{feed_type:e,request_params:t}=(0,i.mB)(s);return`StoryFeedResource_${e}_${t}`}}return""},o=e=>{let t=null==e?void 0:e.pathname;return t?(t.match(/\/search\//)&&null!=e&&e.search&&(t+=e.search),t.toLowerCase()):""},s=({boardUrl:e,location:t,pinId:n,pinnerUserName:i,previousHistory:l,storyPinDataId:a,trackingParams:s,trackingParamsMap:d={}})=>{let u,c;if(!n||!s||!t)return;if(!d)return`${null!=s?s:""}~0`;let{pathname:p,search:m,query:h}=t,_=r({boardUrl:e,path:p,pinId:n,pinnerUserName:i,query:h,search:m,storyPinDataId:a,trackingParams:s,trackingParamsMap:d}),g=Object.keys(d),y=(p||"").startsWith("/pin/");if(y){let e=g.find(e=>"PinResource"!==e);u=e?d[e]:d.PinResource}else u=d[_];if(!u&&l&&l.length){let t=o(l[l.length-1].location);c=r({boardUrl:e,path:t,pinId:n,pinnerUserName:i,query:h,search:m,storyPinDataId:a,trackingParams:s,trackingParamsMap:d}),u=d[c]}return u||(u=`${s||""}~0`),u}},827896:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(616550),l=n(768559),a=n(350118);function r(){let e=(0,a.S6)(),t=(0,i.useLocation)();return(n,i)=>{let a;let r=e(n);if(null!=i&&i.shouldTrackForPrevLocation){let e=(null==r?void 0:r.tracking_params_map)||{},t=Object.keys(e),n=t.find(e=>"PinResource"!==e);r&&(a=n?e[n]:e.PinResource)}else if(r){var o,s;a=(0,l.Z)({boardUrl:null===(o=r.board)||void 0===o?void 0:o.url,location:t,pinId:r.id,pinnerUserName:null===(s=r.pinner)||void 0===s?void 0:s.username,storyPinDataId:r.story_pin_data_id,trackingParams:r.tracking_params,trackingParamsMap:r.tracking_params_map})}return a}}},41861:(e,t,n)=>{"use strict";function i(e){return function e(t,n){let i;if(null==t||"object"!=typeof t&&"function"!=typeof t)return t;let l=n.find(e=>e.value===t);if(l)return l.result;let a=Object.prototype.toString.call(t);switch(a){case"[object Array]":i=Array(t.length);break;case"[object Set]":i=new Set;break;case"[object Object]":case"[object Arguments]":i={};break;case"[object Map]":i=new Map;break;default:return t}let r=[...n,{value:t,result:i}];switch(a){case"[object Array]":t.forEach((t,n)=>{i[n]=e(t,r)});break;case"[object Set]":t.forEach(t=>{i.add(e(t,r))});break;case"[object Object]":case"[object Arguments]":Object.entries(t).forEach(([t,n])=>{i[t]=e(n,r)});break;case"[object Map]":t.forEach((t,n)=>{i.set(n,e(t,r))})}return i}(e,[])}n.d(t,{Z:()=>i})},409667:(e,t,n)=>{"use strict";function i({isHiddenPin:e,isUnsafePin:t}){return!e&&!t}n.d(t,{Z:()=>i})},642345:(e,t,n)=>{"use strict";n.d(t,{DW:()=>a,I:()=>l,oo:()=>i,zI:()=>r});let i=e=>{let 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)]},l=.18,a=(e,t,n)=>.2126*(e/255)**2.2+.7151*(t/255)**2.2+.0721*(n/255)**2.2,r=e=>{let t=e.replace("#",""),n=parseInt(t.substr(0,2),16),i=parseInt(t.substr(2,2),16),l=parseInt(t.substr(4,2),16);return(299*n+587*i+114*l)/1e3<155}},997138:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(883119),l=n(356997),a=n(898781),r=n(785893);let o=({isQuestion:e,name:t,size:n,src:o})=>{let s=(0,a.ZP)();return(0,r.jsxs)(i.xu,{position:"relative","data-test-id":"comment-avatar-container",children:[(0,r.jsx)(l.qE,{size:n,src:o,name:t}),e&&(0,r.jsxs)(i.xu,{position:"absolute",right:!0,bottom:!0,marginEnd:-1,marginBottom:-1,width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",children:[(0,r.jsx)(i.xu,{position:"absolute",children:(0,r.jsx)(i.JO,{icon:"speech",color:"dark",accessibilityLabel:s._('Q and A comment', 'comment.userAvatar.creator.q&aIndicator', 'question mark icon indicator background that comment is Q&A')})}),(0,r.jsx)(i.xu,{position:"absolute",children:(0,r.jsx)(i.JO,{icon:"question-mark",color:"light",size:8,accessibilityLabel:s._('Q and A comment', 'comment.userAvatar.creator.q&aIndicator', 'question mark icon indicator background that comment is Q&A')})})]})]})}},785120:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f}),n(167912);var i,l=n(883119),a=n(866898),r=n(898781),o=n(349700),s=n(139134),d=n(995228),u=n(538232),c=n(328896),p=n(350118),m=n(986926),h=n(785893);let _=void 0!==i?i:i=n(437435),g=({aggregatedPinDataId:e,commentCount:t,commentsDisabled:n,inCommentModuleExp:i,isEligibleForPinReactions:a,isInCommentModule:d,nativePinType:p,onCancel:m,pinUid:_,reactionCounts:g,refetchReactionCount:y})=>{let v=(0,r.ZP)(),{clientTrackingParams:f}=(0,u.R)();return(0,h.jsxs)(l.xu,{dangerouslySetInlineStyle:{__style:{borderBottom:d?void 0:"1px solid var(--color-gray-roboflow-200)"}},display:"flex",justifyContent:"between",paddingX:d?0:4,paddingY:d?0:5,marginBottom:d?4:0,marginTop:d?0:1,children:[(0,h.jsxs)(l.kC,{alignItems:"center",gap:{row:4,column:0},children:[!!m&&(0,h.jsx)(l.iP,{onTap:m,dataTestId:"comment-reaction-united-cancel",children:(0,h.jsx)(l.JO,{accessibilityLabel:v._('cancel', 'commentThreadModal.header.cancel', 'icon to close comment thread modal'),color:"default",icon:"cancel"})}),(0,h.jsx)(l.xu,{"data-test-id":"comment-reaction-united-header-with-count",children:(0,h.jsx)(l.xv,{weight:"bold",children:t&&!n?(0,o.nk)(v.ngettext('{{ commentCount }} comment', '{{ commentCount }} comments', t, 'pinCloseup.commentThread.header', 'Number of comments on a Pin. commentCount: number of comments'),{commentCount:t}):v._('What do you think?', 'pinCloseup.commentThread.header', 'prompt user to comment on Pin')})})]}),a&&(0,h.jsxs)(l.kC,{alignItems:"center",gap:{column:0,row:i?2:3},dataTestId:"reaction-aggregation-and-picker-container",children:[(0,h.jsx)(s.Z,{isBold:!1,inCommentModuleExp:i,isInCommentModule:d,paddingY:0,pinId:_,reactionCounts:g}),(0,h.jsx)(c.default,{aggregatedPinDataId:e,clientTrackingParams:f,hasBackground:!i,inCommentModuleExp:i,isInCommentModule:d,isTrayPositionRelative:!1,onReactionUpdated:()=>{y&&y()},nativePinType:p,pinId:_})]})]})};function y(e){var t;let{data:n,refetch:i}=(0,a.Z)(_,{pinId:e.pinUid},{suspendOnRefetch:!1}),l=(0,m.Z)(null===(t=n.v3GetPinQuery)||void 0===t?void 0:t.data);return(0,h.jsx)(g,{...e,reactionCounts:l,refetchReactionCount:i})}function v(e){let t=(0,p.S6)()(e.pinUid);return(0,h.jsx)(g,{...e,reactionCounts:null==t?void 0:t.reaction_counts})}function f({shouldUseGraphQL:e,...t}){return e?(0,h.jsx)(d.Z,{children:(0,h.jsx)(y,{...t})}):(0,h.jsx)(v,{...t})}},44715:(e,t,n)=>{"use strict";n.d(t,{Z:()=>el});var i=n(883119),l=n(667294),a=n(702664),r=n(473727),o=n(964569),s=n(129274),d=n(923764),u=n(997138),c=n(898781),p=n(785893);let m=({color:e,isMarkedHelpful:t})=>{let n=(0,c.ZP)();return(0,p.jsx)(i.JO,{color:t?"brandPrimary":e,accessibilityLabel:n._('Helpful', 'comment.button.helpful', 'mark or unmark comment as helpful'),icon:"thumbs-up",size:12,inline:!0})};var h=n(28754),_=n(541776),g=n(407043),y=n(499128),v=n(773285),f=n(343341),b=n(19121),x=n(717615),k=n(845772),P=n(231947),S=n(139405),w=n(600147),A=n(550393),T=n(492583),I=n(116674);let E=({aggregatedPinDataId:e,anchor:t,closeupAttributionId:n,comment:r,dismiss:o,isOpen:s,isReply:d,onEdit:u,onShowBlockUserModal:m,parentId:E,pinnerId:C,pinId:D})=>{let j=(0,c.ZP)(),F=(0,a.useDispatch)(),{logContextEvent:R}=(0,g.v)(),{showToast:L}=(0,f.F9)(),{checkExperiment:z}=(0,v.F)(),{anyEnabled:O}=z("web_m10n_business_access_orbac_ga"),{toggleAggregatedCommentHighlight:M}=(0,S.nf)(),N=(0,h.Z)(),[B,Z]=(0,l.useState)(!1);(0,l.useEffect)(()=>{Z(s)},[s,Z]);let K=(0,b.Z)(),U=(0,x.Z)(),H=(0,k.Z)(),{reportComment:V}=(0,I.f)(),G=null!=n?n:"",$=r.user.id,W=K.isAuth&&G===K.id,q="userdiditdata"===r.type,Y=(0,P.q6)(K,null!=C?C:"",O?U:{}),X=(0,P.D3)(K,$,O?U:{}),Q=(0,P.D3)(K,G,O?U:{}),J=K.isAuth&&(r.tagged_users||[]).filter(({id:e})=>e===K.id).length>0,ee=async e=>{try{await M({aggregatedCommentId:r.id,pinId:D,isHighlighted:e}),R({event_type:101,component:13712,element:e?12475:12474,view_type:220,aux_data:{creator_id:$}}),L(({hideToast:t})=>(0,p.jsx)(y.ZP,{primaryAction:{accessibilityLabel:j._('Undo comment highlight or comment highlight removal', 'unifiedComment.unifiedCommentContainer.commentHighlightToast.a11yUndoButton', 'Undo comment highlight or comment highlight removal'),label:j._('Undo', 'unifiedComment.unifiedCommentContainer.commentHighlightToast.undoButton', 'Undo comment highlight or comment highlight removal'),size:"lg",onClick:()=>{M({aggregatedCommentId:r.id,pinId:D,isHighlighted:!e})}},onHide:t,text:e?j._('Highlight removed', 'unifiedComment.unifiedCommentContainer.popover.commentHighlightRemovalToast', 'Toast that tells user that they have successfully removed a comment highlight.'):j._('Comment highlighted', 'unifiedComment.unifiedCommentContainer.popover.commentHighlightToast', 'Toast that tells user that they have successfully highlighted a comment.')}))}catch(e){e.message&&L(({hideToast:t})=>(0,p.jsx)(y.ZP,{onHide:t,text:e.message,type:"error"}))}},et=e=>()=>void ee(e),en=e=>()=>{e(),o(!0)};if(!s)return null;let ei={highlight:j._('Highlight', 'Highlight a community post or comment', 'Highlight a community post or comment'),removeHighlight:j._('Remove highlight', 'Remove highlight for a community post or comment', 'Remove highlight for a community post or comment'),edit:j._('Edit', 'Edit a community post or comment', 'Edit a community post or comment'),delete:j._('Delete', 'Delete a community post or comment', 'Delete a community post or comment'),reportContent:j._('Report this content', 'Report a community post or comment', 'Report a community post or comment'),removeMention:j._('Remove @mention', 'closeup.activityItem.removeMention', 'Button that allows user to remove their @mention in a comment on a pin'),reportForNetzDG:j._('Report comment for NetzDG', 'commentOverflowMenu.option.reportForNetzDG', 'Report comment - NetzDG'),blockUser:j._('Block user', 'closeup.activityItem.blockUser', 'Block comment author')},el=new i.Ry(1);return B&&(0,p.jsx)(i.xu,{onFocus:e=>e.stopPropagation(),children:(0,p.jsx)(i.Lt,{id:"comment-overflow-popover",anchor:t,idealDirection:"down",onDismiss:()=>o(!1),isWithinFixedContainer:!1,zIndex:el,disableMobileUI:!0,children:K.isAuth?(0,p.jsxs)(l.Fragment,{children:[!d&&W&&!r.highlighted_by_pin_owner&&!q&&(0,p.jsx)(i.Lt.Item,{onSelect:en(et(!1)),option:{label:ei.highlight,value:ei.highlight},dataTestId:"dropdown-item-highlight"}),!d&&W&&r.highlighted_by_pin_owner&&!q&&(0,p.jsx)(i.Lt.Item,{onSelect:en(et(!0)),option:{label:ei.removeHighlight,value:ei.removeHighlight},dataTestId:"dropdown-item-remove-highlight"}),X&&(0,p.jsx)(i.Lt.Item,{onSelect:en(u),option:{label:ei.edit,value:ei.edit},dataTestId:"dropdown-item-edit"}),(X||Q)&&(0,p.jsx)(i.Lt.Item,{onSelect:en(()=>{"aggregatedcomment"===r.type?N({aggregatedCommentId:r.id,aggregatedPinId:null!=e?e:"",feedType:d?"aggregatedComments":T.Z.UNIFIED_COMMENTS,orbacSubjectId:H,parentId:E,type:d?_.Rv.REPLY_TO_AGGREGATED:_.Rv.TOP,updateParentCommentCount:!0,pinId:D}):F((0,w.lg)({aggregatedPinDataId:null!=e?e:"",feedType:T.Z.UNIFIED_COMMENTS,id:r.id,isOwnedByMe:!0,pinId:null!=D?D:"",username:r.user.username,updateParentDidItCount:!0}))}),option:{label:ei.delete,value:ei.delete},dataTestId:"dropdown-item-delete"}),!X&&!Y&&(0,p.jsx)(i.Lt.Item,{onSelect:en(()=>{V(r.id,E,r.type)}),option:{label:ei.reportContent,value:ei.reportContent},dataTestId:"dropdown-item-report"}),J&&(0,p.jsx)(i.Lt.Item,{onSelect:en(()=>{F((0,A.Q)(r.id)),L(({hideToast:e})=>(0,p.jsx)(y.ZP,{onHide:e,text:j._('@mention removed!', 'unifiedComment.unifiedCommentContainer.mentionRemovalToast', 'Toast that tells user that they have successfully removed the @mention of them in the comment')}))}),option:{label:ei.removeMention,value:ei.removeMention},dataTestId:"dropdown-item-remove-mention"}),!X&&(0,p.jsx)(i.Lt.Item,{onSelect:en(()=>{Z(!1),m(),R({component:14349,event_type:9406})}),option:{label:ei.blockUser,value:ei.blockUser},dataTestId:"dropdown-item-block-user"})]}):(0,p.jsx)(i.Lt.Link,{href:"https://policy.pinterest.com/de/netzdg/",option:{label:ei.reportForNetzDG,value:ei.reportForNetzDG},dataTestId:"dropdown-item-report-for-netzdg"})})})};var C=n(600636),D=n(133758);let j={containerStyle:{boxShadow:"0 0px 8px rgba(0, 0, 0, 0.1)"},helpfulLabelStyle:{boxShadow:"0 0px 8px rgba(0, 0, 0, 0.1)",right:"50%",transform:"translateX(50%)"},helpfulStyle:{backgroundImage:`url(${C})`},lovedLabelStyle:{boxShadow:"0 0px 8px rgba(0, 0, 0, 0.1)",left:"50%",transform:"translateX(-50%)"},lovedStyle:{backgroundImage:`url(${D})`}},F=({setHelpful:e,setLoved:t})=>{let n=(0,c.ZP)(),[a,r]=(0,l.useState)(!1),[o,s]=(0,l.useState)(!1),d=e=>()=>{r(e)},u=e=>()=>{s(e)};return(0,p.jsxs)(i.xu,{alignItems:"center",color:"default",dangerouslySetInlineStyle:{__style:j.containerStyle},"data-test-id":"comment-reaction-tray-background",display:"flex",height:25,justifyContent:"center",padding:1,position:"relative",rounding:"pill",width:43,children:[(0,p.jsx)(i.iP,{fullHeight:!0,onMouseDown:t,onMouseEnter:u(!0),onMouseLeave:u(!1),children:(0,p.jsx)(i.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:j.lovedStyle},"data-test-id":"comment-reaction-tray-loved-emoji",height:18,marginBottom:o?3:1,position:"absolute",width:18,children:o&&(0,p.jsx)(i.xu,{top:!0,color:"selected",dangerouslySetInlineStyle:{__style:j.lovedLabelStyle},marginTop:-7,paddingX:1,paddingY:1,position:"absolute",rounding:"pill",children:(0,p.jsx)(i.xv,{color:"inverse",overflow:"noWrap",size:"100",weight:"bold",children:n._('Love', 'comment.button.loved', 'loved reaction')})})})}),(0,p.jsx)(i.iP,{fullHeight:!0,onMouseDown:e,onMouseEnter:d(!0),onMouseLeave:d(!1),children:(0,p.jsx)(i.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:j.helpfulStyle},"data-test-id":"comment-reaction-tray-helpful-emoji",height:18,marginBottom:a?3:1,position:"absolute",width:18,children:a&&(0,p.jsx)(i.xu,{top:!0,color:"selected",dangerouslySetInlineStyle:{__style:j.helpfulLabelStyle},marginTop:-7,paddingX:1,paddingY:1,position:"absolute",rounding:"pill",children:(0,p.jsx)(i.xv,{color:"inverse",overflow:"noWrap",size:"100",weight:"bold",children:n._('Helpful', 'comment.button.helpful', 'helpful reaction')})})})})]})};var R=n(311716),L=n(559113),z=n(356997);let O={helpfulStyle:{backgroundImage:`url(${R})`},lovedStyle:{backgroundImage:`url(${L})`}},M=({response:e})=>{let t=14===e.reaction_type,n=1===e.reaction_type,l=e.user.is_private_profile?e.user.first_name:e.user.full_name;return(0,p.jsxs)(i.kC,{alignItems:"center",children:[(0,p.jsx)(i.Tg,{href:`/${e.user.username}/`,children:(0,p.jsxs)(i.kC,{alignItems:"center",children:[(0,p.jsx)(i.xu,{maxWidth:40,children:(0,p.jsx)(z.qE,{outline:!0,accessibilityLabel:"",name:l,size:"sm",src:e.user.image_medium_url})}),(0,p.jsx)(i.xu,{marginStart:2,maxWidth:80,children:(0,p.jsx)(i.xv,{color:"inverse",size:"100",weight:"bold",children:l})})]})}),(0,p.jsxs)(i.xu,{alignContent:"end",display:"flex",padding:2,children:[n&&(0,p.jsx)(i.xu,{dangerouslySetInlineStyle:{__style:O.lovedStyle},"data-test-id":"comment-reaction-tray-loved-emoji",height:16,width:16}),t&&(0,p.jsx)(i.xu,{dangerouslySetInlineStyle:{__style:O.helpfulStyle},"data-test-id":"comment-reaction-tray-helpful-emoji",height:16,width:16})]})]})};var N=n(784590);let B=["userreaction.id","userreaction.reaction_type","userreaction.user()","user.first_name","user.full_name","user.id","user.image_medium_url","user.is_private_profile","user.username"],Z=({commentId:e,isMarkedHelpfulByMe:t,isLovedByMe:n,isTry:a})=>{var r,o;let s=(0,b.Z)(),d=(0,N.Z)({name:"ApiResource",options:{url:a?`/v3/did_it/${e}/reacted_by/`:`/v3/aggregated_comments/${e}/reacted_by/`,field_sets:B}}),u=null===(r=d.data)||void 0===r?void 0:r.filter(e=>e.user.id!==s.id);if((n||t)&&u){let t={id:e,reaction_type:n?1:14,user:{first_name:s.isAuth?s.firstName:"",full_name:s.isAuth?s.fullName:"",id:s.isAuth?s.id:"",image_medium_url:s.isAuth?s.imageMediumUrl:"",is_private_profile:!!s.isAuth&&!!s.isPrivateProfile,username:s.isAuth?s.username:""}};u=[t,...u]}let c=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let{current:e}=c,t=()=>{d.isFetching||(d.isAtEnd?null==e||e.removeEventListener("scroll",t):d.fetchMore())};return null==e||e.addEventListener("scroll",t),()=>{null==e||e.removeEventListener("scroll",t)}},[d]),(0,p.jsx)(i.xu,{color:"selected",maxHeight:140,overflow:"scroll",ref:c,rounding:2,width:180,children:null===(o=u)||void 0===o?void 0:o.map(e=>(0,p.jsx)(i.xu,{"data-test-id":"reaction-list-single-user",margin:3,children:(0,p.jsx)(M,{response:e})},e.id))})};var K=n(814197);let U=({commentId:e,dismissReactionList:t,helpfulCount:n,isMarkedHelpfulByMe:a,isLovedByMe:r,isReactionListOpen:o,isTry:s,lovedCount:d,onReactionCountHover:u,onToggleHelpful:m,onToggleLove:h})=>{let _=(0,c.ZP)(),g=(0,l.useRef)(),[y,v]=(0,l.useState)(!1),f=!1,b=(d||0)+(n||0);a&&r&&(b-=1);let x=e=>()=>{v(e)},k=()=>{f=!0,u()},P=()=>{f=!1,setTimeout(()=>{f||t()},1e3)},S=(0,p.jsx)(i.xu,{"data-test-id":"comment-reaction-container-entry-point",children:y?(0,p.jsx)(i.iP,{onMouseLeave:x(!1),onMouseDown:x(!1),children:(0,p.jsx)(F,{setHelpful:m(!0),setLoved:h(!0)})}):(0,p.jsx)(i.iP,{onMouseEnter:x(!0),children:(0,p.jsx)(i.JO,{accessibilityLabel:_._('React', 'comment.actionbar.react', 'accessibility label entry point to react to a comment'),color:"subtle",icon:"heart-outline",size:16})})});return(0,p.jsxs)(i.kC,{alignItems:"center",gap:{row:1,column:0},children:[a||r?(0,p.jsx)(i.iP,{onMouseDown:()=>{m(!1)(),h(!1)()},children:(0,p.jsx)(i.xu,{dangerouslySetInlineStyle:{__style:{backgroundImage:`url(${r?L:R})`}},"data-test-id":r?"comment-reaction-container-loved-emoji":"comment-reaction-container-helpful-emoji",height:16,width:16})}):S,b>0&&(0,p.jsxs)(l.Fragment,{children:[(0,p.jsx)(i.iP,{onMouseEnter:k,onMouseLeave:P,children:(0,p.jsx)(i.xu,{"data-test-id":"comment-reaction-container-reaction-count",ref:g,children:(0,p.jsx)(i.xv,{color:"subtle",inline:!0,size:"200",weight:"bold",children:b})})}),o&&(0,p.jsx)(i.mh,{zIndex:K.lI,children:(0,p.jsx)(i.J2,{anchor:g.current,idealDirection:"down",onDismiss:t,positionRelativeToAnchor:!1,children:(0,p.jsx)(i.iP,{onMouseEnter:k,onMouseLeave:P,children:(0,p.jsx)(Z,{commentId:e,isMarkedHelpfulByMe:a,isLovedByMe:r,isTry:s})})})})]})]})};var H=n(513578),V=n(349700);function G(e){let{featuredCommentId:t,parentId:n,parentType:r,isDesktop:o,isLoading:s,isReadOnly:d,openOverflowMenu:u,replyingToCommentId:m,toggleHelpful:h,toggleLike:_,toggleReplyComposer:g,isORBACProfileManager:y,isVideo:v,storyPinDataId:f,pinId:b,closeupAttributionId:x,aggregatedPinDataId:k,closeupAttributionUsername:P,pinnerId:w,reactionListCommentId:A,showReactionListForComment:I,viewParameter:E}=e,C=(0,c.ZP)(),D=(0,S.lV)(),j=(0,a.useSelector)(({feeds:e})=>{let t=e[`${T.Z.AGGREGATED_COMMENT_REPLIES}:${n}`]||[],i=e[`${T.Z.AGGREGATED_COMMENTS}:${n}`]||[],l=t.concat(i);return l.reduceRight((e,{id:t})=>{let n=D[t];return n?[...e,n]:e},[])}),[F,R]=(0,l.useState)(1),L=F===j.length;return(0,p.jsxs)(l.Fragment,{children:[j.length>1&&(0,p.jsx)(i.iP,{onTap:()=>{R(L?0:j.length)},children:(0,p.jsxs)(i.xu,{marginBottom:4,children:[(0,p.jsx)(i.xu,{display:"inlineBlock",marginEnd:2,children:(0,p.jsx)(i.xv,{color:"subtle",size:"200",weight:"bold",children:"⎯⎯"})}),(0,p.jsx)(i.xv,{inline:!0,color:"subtle",size:"100",weight:"bold",children:L?C._('Hide replies', 'comment.button.hideReplies', 'hide comment replies'):(0,V.nk)(C.ngettext('View {{ commentCount }} reply', 'View {{ commentCount }} replies', j.length, 'comment.button.showReplies', 'show comment replies'),{commentCount:j.length})})]})}),(0,p.jsx)(el,{comments:j.slice(0,F),commentsDisabled:!1,featuredCommentId:t,gapSize:2,isDesktop:o,isLoading:s,isReadOnly:d,openOverflowMenu:u,toggleReplyComposer:g,parentId:n,parentType:r,replyingToCommentId:m,toggleHelpful:h,toggleLike:_,userAvatarSize:"sm",isORBACProfileManager:y,isVideo:v,storyPinDataId:f,pinId:b,closeupAttributionId:x,aggregatedPinDataId:k,closeupAttributionUsername:P,pinnerId:w,showReactionListForComment:I,reactionListCommentId:A,viewParameter:E})]})}var $=n(264322),W=n(298361),q=n(584595),Y=n(780280),X=n(248327),Q=n(664569),J=n(94089),ee=n(737849),et=n(90326);function en(e){var t,n,h,k;let A;let{aggregatedPinDataId:T,closeupAttributionId:I,closeupAttributionUsername:C,comment:D,featuredCommentId:j,isDesktop:F,isReadOnly:R,isVideo:L,openOverflowMenu:z,toggleReplyComposer:O,parentId:M,parentType:N=Q.o.pin,pinId:B,storyPinDataId:Z,replyingToCommentId:K,showReactionListForComment:en,toggleHelpful:ei,toggleLike:el,userAvatarSize:ea,isORBACProfileManager:er,pinnerId:eo,reactionListCommentId:es,viewParameter:ed}=e,{user:{id:eu,first_name:ec,id:ep,image_medium_url:em,username:eh},id:e_,image_signatures:eg,is_translatable:ey,comment_count:ev,helpful_count:ef,tags:eb=[]}=D,[ex,ek]=(0,l.useState)(!1),eP=ex&&D.translatedText||D.text,eS=!ey||""===D.translatedText,ew=!1,eA=0,eT=!1,eI=!!D.marked_helpful_by_me,eE=[D.user],eC="",eD=new Date;"aggregatedcomment"===D.type?(ew=D.highlighted_by_pin_owner,eA=D.reaction_counts[1],eT=D.reaction_by_me>0,eE.push(...D.tagged_users),eC=`${eh} ${eP}`,eD=new Date(D.created_at)):(eA=D.like_count,eT=D.liked_by_me,A=(D.images[0]||{})["150x150"],eC=`${eh} ${D.details}`,eD=new Date(D.done_at));let ej=(0,c.ZP)(),eF=(0,b.Z)(),{logContextEvent:eR}=(0,g.v)(),{country:eL,isBot:ez}=(0,Y.B)(),{checkExperiment:eO}=(0,v.F)(),{showToast:eM}=(0,f.F9)(),eN=(0,a.useDispatch)(),eB=(0,l.useRef)(),{anyEnabled:eZ}=eO("web_m10n_business_access_orbac_ga"),eK=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","EU"].includes(eL),eU=1===D.comment_tag,eH=(0,x.Z)(),eV=eZ?(0,P.lJ)(eF,eH):"",{nativeEngagementsHiddenForUser:eG}=(0,J.G)(),{aggregatedCommentsHiddenForUser:e$,translateAggregatedComment:eW,updateAggregatedComment:eq}=(0,S.nf)(),eY=(0,o.Z)(),eX="userdiditdata"===D.type,eQ=(0,W.Z)(),eJ=ey&&eO("dweb_comment_translations").anyEnabled,e0=eX&&eO("dweb_photo_commenting").anyEnabled,e1=eX&&F&&eO("dweb_photo_comment_replies").anyEnabled,e2=eX&&!F&&eO("mweb_photo_comment_replies").anyEnabled,e3=eX&&eO("mweb_photo_commenting").anyEnabled,e8=!R&&!er&&eX,e6=e8&&F&&eO("dweb_photo_comment_reactions").anyEnabled,e4=e8&&!F&&eO("mweb_photo_comment_reactions").anyEnabled,e5=[{offset:0,length:eh.length,color:"darkGray"},...eb.map(e=>({...e,offset:(e.offset||0)+eh.length+1,color:"shopping"}))],e7={SHOW_TRANSLATION:ej._('Show translation', 'comment.translateButton.showTranslation', 'text for translation button when translation is available'),TRANSLATING:ej._('Translating...', 'comment.translateButton.translating', 'text for translation button while translating'),SHOW_ORIGINAL:ej._('Show original', 'comment.translateButton.showOriginal', 'text for translation button after translating')},e9=(0,l.useRef)(e7.SHOW_TRANSLATION),[te,tt]=(0,l.useState)(!1),[tn,ti]=(0,l.useState)(!1),[tl,ta]=(0,l.useState)(!1),[tr,to]=(0,l.useState)(!1),[ts,td]=(0,l.useState)(!1),[tu,tc]=(0,l.useState)(!1),[tp,tm]=(0,l.useState)(_.A9.NONE),th=e=>()=>{ti(e)};(0,l.useEffect)(()=>{eJ&&eR({event_type:10416,view_type:3,view_parameter:ed,component:"pin"===N?13696:13697})},[eR,N,eJ,ed]),(0,l.useEffect)(()=>{ev>0&&!ez&&eN((0,X.U)("aggregatedcomment"===D.type?"AggregatedCommentReplyFeedResource":"DidItCommentsResource",{options:{isUnifiedComment:!0,objectId:e_,redux_normalize_feed:!0}}))},[D.type,e_]);let t_=N.toLowerCase()===Q.o.aggregatedComment.toLowerCase()||N.toLowerCase()===Q.n.didIt.toLowerCase(),tg=Object.values(Q.n).includes(N.toLowerCase()),ty=D.user.first_name||"",tv=async({contentMarkdown:e,force:t,tags:n})=>{let i,l;to(!0);let a=D.id;if(t_&&(i=N.toLowerCase()===Q.n.didIt,a=M,l=D.id),a)try{await eY({force:t,fromUnifiedComment:!0,objectType:eX||i?Q.o.didIt:Q.o.aggregatedComment,objectId:a,orbacSubjectId:eV,tags:n,text:e,replyToCommentId:l})}catch(e){if([q.ky,q.LJ].includes(e.code)&&F)return tm(e.code===q.ky?_.A9.WARNING:_.A9.BLOCK),to(!1),!1}return O&&O(void 0),to(!1),!0},tf=async({contentMarkdown:e,force:t,tags:n})=>{ta(!0);try{e0?await eN((0,w.IU)({id:D.id,details:e,pinId:null!=B?B:"",image_signatures:null!=eg?eg:[]})):await eq({commentId:D.id,force:t,orbacSubjectId:eV,tags:n,text:e})}catch(e){if([q.ky,q.LJ].includes(e.code)&&F)return tm(e.code===q.ky?_.A9.WARNING:_.A9.BLOCK),ta(!1),!1}return ti(!1),ta(!1),!0},tb=e=>()=>{tt(e),tc(e),e||eR({component:14349,event_type:9408})},tx=()=>{tm(_.A9.NONE)},tk=()=>{ex||D.translatedText||eW(D.id),ex||e9.current!==e7.SHOW_TRANSLATION?ex&&e9.current===e7.SHOW_ORIGINAL&&eR({event_type:10418,view_type:3,view_parameter:ed,component:"pin"===N?13696:13697}):eR({event_type:10417,view_type:3,view_parameter:ed,component:"pin"===N?13696:13697}),ek(!ex)};(0,l.useEffect)(()=>{ex&&eS&&(ek(!ex),eM(({hideToast:e})=>(0,p.jsx)(y.ZP,{onHide:e,text:ej._('Error - couldn\'t translate', 'comment.couldNotTranslate.toast', 'error toast that shows after unsuccessful translation'),type:"error"})))},[ex,eS]),ex?e9.current=D.translatedText?e7.SHOW_ORIGINAL:e7.TRANSLATING:e9.current=e7.SHOW_TRANSLATION;let tP=A&&(0,p.jsx)(i.xu,{marginTop:1,marginBottom:!F&&e3?2:4,children:(0,p.jsx)(i.zd,{width:150,height:150,rounding:2,wash:!0,children:(0,p.jsx)(i.Ee,{alt:null!==(t=A.url)&&void 0!==t?t:"",src:null!==(n=A.url)&&void 0!==n?n:"",color:"#efefef",naturalWidth:null!==(h=A.width)&&void 0!==h?h:1,naturalHeight:null!==(k=A.height)&&void 0!==k?k:1},A.url)})});return(0,p.jsxs)(l.Fragment,{children:[(0,p.jsx)(i.$j,{show:tl,accessibilityLabel:"Loading comment"}),!tn&&!tl&&(0,p.jsxs)(i.kC,{alignItems:"stretch",justifyContent:"start",children:[(0,p.jsx)(i.xu,{marginEnd:2,children:(0,p.jsx)(r.rU,{to:`/${eh}/`,children:(0,p.jsx)(u.Z,{isQuestion:eU,name:ec||eh||"",size:ea,src:null!=em?em:""})})}),(0,p.jsxs)(i.kC,{flex:"grow",justifyContent:"start",direction:"column",children:[(0,p.jsxs)(i.kC,{justifyContent:"between",children:[(0,p.jsx)(i.kC.Item,{minWidth:0,children:(0,p.jsxs)(i.kC,{direction:"column",dataTestId:"author-and-comment-container",children:[!F&&e3&&tP,(0,p.jsx)($.Z,{isFirstTaggedUserAuthor:!0,shouldShowFirstNameOnly:!0,taggedUsers:eE,tags:e5,text:eC}),(F||!F&&!e3)&&tP,eJ&&(0,p.jsx)(i.xu,{marginTop:2,marginBottom:2,children:(0,p.jsx)(i.iP,{onTap:()=>tk(),children:(0,p.jsx)(i.xv,{color:"subtle",size:"300",weight:"bold",children:e9.current})})})]})}),j===e_&&(0,p.jsx)(i.xu,{alignSelf:"center",color:"primary",height:8,rounding:"pill",minWidth:8})]}),ew&&(0,p.jsx)(i.xu,{marginTop:4,marginBottom:3,children:(0,p.jsx)(i.xv,{size:"100",children:(0,V.nk)(ej._('Highlighted by @{{ closeupAttributionUsername }}', 'comment.highlighted.label', 'label on comment that has been highlighted by the Pin creator'),{closeupAttributionUsername:C})})}),(!R||eK)&&(0,p.jsxs)(i.xu,{alignItems:"center",display:"flex",height:25,justifyContent:"between",position:"relative",children:[(0,p.jsxs)(i.kC,{alignItems:"center",gap:{row:5,column:0},children:[!R&&(0,p.jsx)(i.xu,{"data-test-id":"comments-time-passed",children:(0,p.jsx)(i.xv,{color:"subtle",size:"200",children:eQ(eD,!0)})}),!R&&(!er||eZ)&&(!eX||e1||e2)&&(0,p.jsx)(i.xu,{"data-test-id":"comment-reply-button-container",children:(0,p.jsx)(i.iP,{onTap:()=>{O&&O(D,M,N)},children:(0,p.jsx)(i.xv,{color:"subtle",size:"200",weight:"bold",children:ej._('Reply', 'comment.button.reply', 'entry point to reply to comment')})})}),!R&&!er&&(!eX||e6||e4)&&(F?(0,p.jsx)(U,{commentId:e_,dismissReactionList:()=>{en(void 0)},helpfulCount:ef,isMarkedHelpfulByMe:eI,isLovedByMe:eT,isTry:eX,lovedCount:eA,onReactionCountHover:()=>{en(e_),eR({event_type:9906,component:"pin"===N?13696:13697,view_type:3,view_parameter:ed})},onToggleHelpful:e=>()=>{eI!==e&&ei(e_,!e,eX)()},onToggleLove:e=>()=>{eT!==e&&el(e_,!e,eX)()},isReactionListOpen:es===e_}):(0,p.jsxs)(i.xu,{display:"flex",alignItems:"center","data-test-id":"reactions-likeWithCountButton",children:[(0,p.jsx)(i.hU,{accessibilityLabel:ej._('Like', 'comment.button.like', 'like or unlike comment'),icon:"heart",iconColor:eT?"red":"gray",size:"xs",onClick:el(e_,eT,eX)}),eA>0&&(0,p.jsx)(i.xu,{"data-test-id":"love-count-container",children:(0,p.jsx)(i.xv,{color:"subtle",size:"100",weight:"bold",children:eA})})]})),!(eF.id===ep&&eU)&&(!er||eZ)&&(0,p.jsx)(i.xu,{ref:eB,"data-test-id":"comment-more-options",children:(0,p.jsx)(i.hU,{accessibilityLabel:ej._('More', 'comment.button.more', 'see more options for comment'),icon:"ellipsis",iconColor:"gray",size:"xs",onClick:()=>{F?tt(!te):z&&z(D)}})})]}),!R&&!er&&!F&&(!eX||e4)&&(0,p.jsx)(i.xu,{marginStart:6,children:(0,p.jsx)(i.iP,{fullWidth:!1,onTap:ei(e_,eI,eX),children:(0,p.jsxs)(i.kC,{height:"100%",alignItems:"center",gap:{row:1,column:0},dataTestId:"helpful-reaction",children:[(0,p.jsx)(m,{color:"subtle",isMarkedHelpful:eI}),(0,p.jsx)(i.xv,{color:"subtle",size:"200",weight:"bold",children:ej._('Helpful', 'comment.button.helpful', 'mark or unmark comment as helpful')}),ef>0&&(0,p.jsx)(i.xu,{"data-test-id":"helpful-count-container",children:(0,p.jsx)(i.xv,{color:"subtle",size:"100",weight:"bold",children:ef})})]})})})]})]})]}),F&&(0,p.jsxs)(l.Fragment,{children:[tn&&(0,p.jsx)(i.xu,{marginTop:3,children:(0,p.jsx)(H.Z,{commentWarningModalState:tp,dismissCommentWarningModal:tx,initialText:"aggregatedcomment"===D.type?D.text:D.details,initialTags:D.tags,isReplyEditor:tg,onAddItem:tf,onCancelItem:th(!1),objectType:Q.o.aggregatedComment,postedPhoto:A,showCommentComposer:!0,statusType:"textInFlightNested",viewParameter:ed})}),K===e_&&(0,p.jsx)(i.xu,{marginTop:3,marginStart:t_?0:12,children:(0,p.jsx)(H.Z,{commentWarningModalState:tp,dismissCommentWarningModal:tx,initialText:t_?`${ty} `:"",initialTags:t_?[{offset:0,object_id:eu,length:ty.length,tag_type:1}]:[],isReplyEditor:tg,onAddItem:tv,onCancelItem:()=>{O&&O()},objectType:Q.o.aggregatedComment,showCommentComposer:!0,statusType:"textInFlightNested",viewParameter:ed})})]}),(ev>0||tr)&&(0,p.jsx)(i.xu,{marginStart:12,marginTop:4,children:(0,p.jsx)(G,{featuredCommentId:j,isDesktop:F,isLoading:tr,isReadOnly:R,parentId:e_,parentType:D.type,replyingToCommentId:K,toggleReplyComposer:O,openOverflowMenu:z,toggleHelpful:ei,toggleLike:el,isORBACProfileManager:er,pinId:B,closeupAttributionId:I,isVideo:L,storyPinDataId:Z,aggregatedPinDataId:T,closeupAttributionUsername:C,pinnerId:eo,showReactionListForComment:en,reactionListCommentId:es,viewParameter:ed})}),F&&(!R||eK)&&(0,p.jsx)(E,{anchor:eB.current,comment:D,dismiss:e=>{tt(!1),e||eR({component:14349,event_type:10128})},isOpen:te,isReply:t_,onEdit:th(!0),onShowBlockUserModal:tb(!0),parentId:M,closeupAttributionId:I,pinnerId:eo,pinId:B,aggregatedPinDataId:T}),ts&&(0,p.jsx)(s.N,{children:(0,p.jsx)(d.Z,{aggregatedPinDataId:T,didItDataId:e_,onClose:e=>()=>{td(!e)},pinId:null!=B?B:"",username:eh,users:[D.user]})}),tu&&(0,p.jsx)(ee.Z,{firstName:null!=ec?ec:"",onBlockUser:()=>{eN((0,et.Ge)({id:eu,orbacSubjectId:eV,blockSource:"comment",blockContext:e_,logContextEvent:eR})),e$(eu),eG(eu),eR({event_type:101,component:13712,element:87,view_type:220,aux_data:{creator_id:eF.isAuth?eF.id:null}}),eR({component:14349,event_type:9407}),tc(!1),eM(({hideToast:e})=>(0,p.jsx)(y.ZP,{onHide:e,text:(0,V.nk)(ej._('You\'ve blocked {{ username }}', 'comment.blockAuthor.toast', 'confirmation toast that shows after user blocks comment author'),{username:eh}).join("")}))},onClearModal:tb(!1)})]})}var ei=n(366428);function el(e){let t;let{aggregatedPinDataId:n,comments:l,commentsDisabled:a,featuredCommentId:r,gapSize:o=6,isDesktop:s,isLoaded:d=!1,isLoading:u=!1,isReadOnly:m,openOverflowMenu:h,toggleReplyComposer:_,parentId:g,parentType:y,replyingToCommentId:v,toggleHelpful:f,toggleLike:b,userAvatarSize:x,isORBACProfileManager:k,isVideo:P,storyPinDataId:S,pinId:w,closeupAttributionId:A,closeupAttributionUsername:T,pinnerId:I,showReactionListForComment:E,reactionListCommentId:C,viewParameter:D}=e,j=(0,c.ZP)();return(t=S?"story":P?"video":"pin",a)?(0,p.jsx)(i.xu,{alignSelf:"center",width:"100%","data-test-id":"comments-disabled-label",children:(0,p.jsx)(i.xv,{align:s?"start":"center",color:"subtle",children:j._('Comments are turned off for this Pin', 'commentThread.disabledState.message', 'Comments are turned off or disabled for this pin')})}):l.length>0?(0,p.jsxs)(i.kC,{dataTestId:"aggregated-comment-list",direction:"column",gap:{row:0,column:o},maxHeight:"100%",width:"100%",children:[l.map((e,l)=>(0,p.jsx)(ei.F,{impressionAuxFields:{commentId:e.id,pinId:w,pinOwnerUserId:A,pinType:t,parentId:g,parentType:y,commentType:"aggregatedComment"},componentType:"pin"===y?13696:13697,impressionType:"Comment",loggingId:e.id,slotIndex:l,viewType:s?3:98,children:({impressionTrackerRef:t})=>(0,p.jsx)(i.xu,{ref:t,"data-test-id":"commentThread-comment",children:(0,p.jsx)(en,{comment:e,isDesktop:s,featuredCommentId:r,isReadOnly:m,parentId:g,parentType:y,openOverflowMenu:h,replyingToCommentId:v,toggleReplyComposer:_,toggleHelpful:f,toggleLike:b,userAvatarSize:x,isORBACProfileManager:k,aggregatedPinDataId:n,closeupAttributionUsername:T,closeupAttributionId:A,pinId:w,storyPinDataId:S,isVideo:P,pinnerId:I,showReactionListForComment:E,reactionListCommentId:C,viewParameter:D})})},e.id)),(0,p.jsx)(i.$j,{accessibilityLabel:j._('Comments loading', ' - ', ' -- '),show:u})]}):(0,p.jsxs)(i.xu,{alignSelf:"center",width:"100%",children:[(0,p.jsx)(i.$j,{accessibilityLabel:j._('Comments loading', ' - ', ' -- '),show:u}),d&&(0,p.jsx)(i.xv,{align:s?"start":"center",color:"subtle",children:j._('No comments yet! Add one to start the conversation.', 'commentThread.emptyState.message', 'comment thread empty state message')})]})}},513578:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(667294),l=n(995228),a=n(785893);let r=(0,i.lazy)(()=>Promise.all([n.e(11177),n.e(21662)]).then(n.bind(n,778072)));function o(e){return(0,a.jsx)(l.Z,{fallback:null,children:(0,a.jsx)(r,{...e})})}},264322:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(667294),l=n(883119),a=n(643010),r=n(898781),o=n(785893);let s=({hasManyComments:e,isFirstTaggedUserAuthor:t,isInCommentModule:n,shouldShowFirstNameOnly:s,tags:d,taggedUsers:u,text:c})=>{let p=(0,r.ZP)(),m=(0,i.useRef)(null),h=(0,a.Yc)()?"#111111":"#FFFFFF",[_,g]=(0,i.useState)(!1),y=p._('...view', 'comment.module.toggle.view', 'label on comment module to open coment thread'),v=p._('...view all', 'comment.module.toggle.viewAll', 'label on comment module to open coment thread');(0,i.useEffect)(()=>{m.current&&g(m.current.scrollHeight>m.current.offsetHeight)},[m,g,c]);let f=(e,t)=>(0,o.jsx)(l.xv,{inline:!0,overflow:"normal",children:(0,o.jsx)("span",{className:"text-container",children:e})},t),b=(e,i,a,r)=>{let d=s||0===a&&t?u[a].first_name||u[a].username[0]:i;return(0,o.jsx)(l.xv,{color:e,inline:!0,weight:"bold",overflow:"normal",children:n?d:(0,o.jsx)(l.rU,{href:`/${u[a].username}`,display:"inlineBlock",underline:"hover",children:d})},r)};return(0,o.jsx)("span",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},children:(()=>{if(!d.length||!u||d.length!==u.length)return f(c,"1");let t=0,i=[];return d.forEach((e,n)=>{let l=c.substring(t,e.offset);t=e.offset+e.length;let a=c.substring(e.offset,t);i=i.concat(f(l,`${n}a`)).concat(b(e.color,a,n,`${n}b`))}),i=i.concat(f(c.substring(t),"2")),(0,o.jsx)(l.xu,{position:"relative",marginEnd:3,children:(0,o.jsxs)(l.xv,{inline:!0,lineClamp:n?2:void 0,ref:m,children:[i,n&&(0,o.jsx)(l.xu,{display:"inlineBlock",dangerouslySetInlineStyle:{__style:{background:`linear-gradient(270deg, ${h} 50%, ${h}00 100%)`}},position:_?"absolute":void 0,bottom:!!_||void 0,right:!!_||void 0,width:_?140:void 0,children:(0,o.jsxs)(l.xv,{align:"end",weight:"bold",children:["\xa0",e?v:y]})})]})})})()})}},541776:(e,t,n)=>{"use strict";n.d(t,{A9:()=>s,LH:()=>l,Rv:()=>a,TJ:()=>r,iB:()=>i,pW:()=>o});let i=48,l=i+8,a=Object.freeze({TOP:0,REPLY_TO_TRIED:1,REPLY_TO_AGGREGATED:2}),r="comment_featured_ids",o="did_it_featured_ids",s={NONE:"none",WARNING:"warning",BLOCK:"block"}},512465:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m,w:()=>h});var i=n(349700);let l=e=>e._('{{ first }}', 'Generic message that lists 1 item', 'Generic message that lists 1 item (ex: Stevie)'),a=e=>e._('{{ first }} and {{ second }}', 'Generic message that lists 2 items', 'Generic message that lists 2 items (ex: Stevie and Michael)'),r=e=>e._('{{ first }}, {{ second }} and {{ third }}', 'Generic message that lists 3 items', 'Generic message that lists 3 items (ex: Stevie, Michael and Cyndi)'),o=e=>e._('{{ first }}, {{ second }}, {{ third }} and {{ fourth }}', 'Generic message that lists 4 items', 'Generic message that lists 4 items (ex: Stevie, Michael, Cyndi and Bob)'),s=e=>e._('{{ first }}, {{ second }}, {{ third }}, {{ fourth }} and {{ fifth }}', 'Generic message that lists 5 items', 'Generic message that lists 5 items (ex: Stevie, Michael, Cyndi, Bob and Bruce)'),d=e=>e._('{{ first }}, {{ second }}, {{ third }}, {{ fourth }}, {{ fifth }} and {{ sixth }}', 'Generic message that lists 6 items', 'Generic message that lists 6 items (ex: Stevie, Michael, Cyndi, Bob, Bruce and Lionel)'),u=e=>e._('{{ first }}, {{ second }}, {{ third }}, {{ fourth }}, {{ fifth }}, {{ sixth }} and {{ seventh }}', 'Generic message that lists 7 items', 'Generic message that lists 7 items (ex: Stevie, Michael, Cyndi, Bob, Bruce, Lionel and Tina)'),c=e=>e._('{{ first }}, {{ second }}, {{ third }}, {{ fourth }}, {{ fifth }} and {{ remaining }} others', 'Generic message that lists more than 6 items', 'Generic message that lists more than 6 items (ex: Stevie, Michael, Cyndi, Bob, Bruce and 2 others)'),p=e=>e._('{{ first }}, {{ second }}, {{ third }}, {{ fourth }}, {{ fifth }}, {{ sixth }} and {{ remaining }} others', 'Generic message that lists more than 7 items', 'Generic message that lists more than 7 items (ex: Stevie, Michael, Cyndi, Bob, Bruce, Lionel and 2 others)');function m(e,t){let n={first:e[0],second:e[1],third:e[2],fourth:e[3],fifth:e[4],sixth:e[5],remaining:e.length-5};switch(e.length){case 0:return[];case 1:return(0,i.nk)(l(t),n);case 2:return(0,i.nk)(a(t),n);case 3:return(0,i.nk)(r(t),n);case 4:return(0,i.nk)(o(t),n);case 5:return(0,i.nk)(s(t),n);case 6:return(0,i.nk)(d(t),n);default:return(0,i.nk)(c(t),n)}}function h(e,t){let n={first:e[0],second:e[1],third:e[2],fourth:e[3],fifth:e[4],sixth:e[5],seventh:e[6],remaining:e.length-6};switch(e.length){case 0:return[];case 1:return(0,i.nk)(l(t),n);case 2:return(0,i.nk)(a(t),n);case 3:return(0,i.nk)(r(t),n);case 4:return(0,i.nk)(o(t),n);case 5:return(0,i.nk)(s(t),n);case 6:return(0,i.nk)(d(t),n);case 7:return(0,i.nk)(u(t),n);default:return(0,i.nk)(p(t),n)}}},407043:(e,t,n)=>{"use strict";n.d(t,{B:()=>s,v:()=>o});var i=n(385740),l=n(425288),a=n(785893);let{Provider:r,useHook:o}=(0,l.Z)("ContextLogger");function s({children:e,value:t}){let{setViewContextData:n}=(0,i.sV)();return t.injectSetViewContextDataFromHook=n,(0,a.jsx)(r,{value:t,children:e})}},112690:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(407043);let l=()=>(0,i.v)().logContextEvent},755289:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=()=>1e6*Date.now()},643010:(e,t,n)=>{"use strict";n.d(t,{F6:()=>c,Hs:()=>u,Yc:()=>s,vs:()=>d});var i=n(667294),l=n(844974),a=n(867820);let r="theme",o="dark"===(0,l.qn)(r),s=()=>o;function d(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t(s())},[t]),e}let u=()=>{(0,l.Nh)(r,"dark"),(0,a.My)("mweb.dark_mode.enable"),window.location.reload()},c=()=>{(0,l.L_)(r),(0,a.My)("mweb.dark_mode.disable"),window.location.reload()}},81226:(e,t,n)=>{"use strict";function i(e){let t=Math.round(e/1e3),n=Math.floor(t/60),i=t%60;return n+":"+(i<10?"0":"")+i}n.d(t,{Z:()=>i})},816068:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=e=>Math.floor(new Date(e).getTime()/1e3)},594736:(e,t,n)=>{"use strict";function i(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i+=1)if(!a(e[i],t[i],n+1))return!1;return!0}function l(e,t,n){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e)if(!(i in t)||!a(e[i],t[i],n+1))return!1;return!0}function a(e,t,n){if(n>=1e3)return!1;if(e===t)return!0;if(null==e||null==t||"object"!=typeof e&&"object"!=typeof t)return e!=e&&t!=t;let a=Object.prototype.toString.call(e),r=Object.prototype.toString.call(t);if(a!==r)return!1;switch(a){case"[object Array]":return i(e,t,n);case"[object Set]":return i(Array.from(e).sort(),Array.from(t).sort(),n);case"[object Object]":case"[object Arguments]":return l(e,t,n);case"[object Map]":return l(Object.fromEntries(e),Object.fromEntries(t),n);case"[object RegExp]":return e+""==t+"";case"[object Error]":return e.name===t.name&&e.message===t.message;default:return!1}}function r(e,t){return a(e,t,0)}n.d(t,{ZP:()=>r})},722767:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(667294),l=n(973935);function a(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class r extends i.Component{constructor(...e){super(...e),a(this,"observer",null),a(this,"handleVisibilityChanged",(e,t)=>{this.props.onVisibilityChange(e,t)})}componentDidMount(){let e=l.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)}}let o=r},11363:(e,t,n)=>{"use strict";n.d(t,{Bx:()=>l,N4:()=>r,is:()=>o,lt:()=>i,oM:()=>a});let i=e=>e._('You\'re almost there! Log in to access all of Pinterest', 'loginModal.limitedLogin.subheader', 'Subheader text on personalized login modal/flyout to remind users to log in'),l=e=>e._('Log in to save this Pin', 'limitedLogin.modalHeader.repin', 'Title on mobile web limited login modal to prompt users to login after they clicked save button.'),a=e=>e._('Log in to edit this Pin', 'limitedLogin.modalHeader.editPin', 'Title on mobile web limited login modal to prompt users to login after they clicked edit button.'),r=({i18n:e,toFollow:t})=>t?e._('Log in to follow', 'limitedLogin.modalHeader.follow', 'Title on mobile web limited login modal to prompt users to login to follow a user or board.'):e._('Log in to unfollow', 'limitedLogin.modalHeader.unfollow', 'Title on mobile web limited login modal to prompt users to login to unfollow a user or board.'),o=e=>e._('Log in to create a Pin or board', 'limitedLogin.modalHeader.create', 'Title on mobile web limited login modal to prompt users to login to create a Pin or board.')},780679:(e,t,n)=>{"use strict";n.d(t,{g:()=>r,t:()=>a});var i=n(667294);let l=(0,i.createContext)(null),a=l.Provider,r=()=>(0,i.useContext)(l)},526915:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(667294),l=n(616550),a=n(780679),r=n(704115);let o=e=>{let t=(0,l.useLocation)(),n=(0,a.g)();(0,i.useEffect)(()=>{if(n){let{showDesktopSignupModal:i,pinLinkClickHandler:l}=n,{mt:a,l:o,showsignup:s}=(0,r.Z)(t.search);a?i({signupFlow:"login"===a?{type:"login"}:{type:"signup"},attributionLabel:"navigation_1",container:e,reason:"UPSELL_LOGIN_OR_SIGNUP"}):s?i({signupFlow:{type:"signup"},attributionLabel:"closeup_query_param_showSignup",source:"defaultSource",reason:"UPSELL_LOGIN_OR_SIGNUP"}):o&&l&&l()}},[e,t,!!n])}},946984:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(11363),l=n(898781),a=n(987318);let r=()=>{let{loginForMore:e,viewer:t,limitedLoginModalSubheader:n}=(0,a.H)(),r=(0,l.ZP)();return"AUTH"===t.type?null:t=>{null==e||e.setVisible(!0),null==n||n.setText((null==t?void 0:t.loginModalHeader)||(0,i.lt)(r))}}},375571:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(667294),l=n(395164),a=n(67347);function r(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))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,"state",{error:null,info:null}),r(this,"resetError",()=>{this.setState({error:null,info:null})})}componentDidCatch(e,t){try{var n;let{name:t}=this.props,i=this.props.type||"secondary";(0,l.T)({extraData:null!==(n=e.extraData)&&void 0!==n?n:{},errorBoundary:t,errorBoundaryType:i,message:e.message,name:e.name,stack:e.stack}),(0,a.nP)("react.error_boundary",{sampleRate:.1,tags:{component:void 0,name:this.props.name}})}catch(e){(0,a.nP)("react.error_boundary.error",{sampleRate:1,tags:{name:this.props.name}})}this.setState({error:e,info:t})}render(){let{renderErrorState:e}=this.props,{error:t,info:n}=this.state;return t&&n?e?e({error:t,info:n,resetError:this.resetError}):null:this.props.children}}},319915:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(375571);let l=i.Z},121093:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(667294),l=n(702664),a=n(112690),r=n(332611),o=n(242923),s=n(785893);function d(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u extends i.Component{constructor(...e){super(...e),d(this,"state",{hasCompleted:[],hasDismissed:[]}),d(this,"view",()=>{let{experience:e,isBackendExperience:t,targeting:n,viewExperience:i,viewExperienceObject:l}=this.props;e&&"viewed"!==e.status&&(t?(e.status="viewed",l(e)):n?i(e.placement_id,e.experience_id,n):i(e.placement_id,e.experience_id))}),d(this,"complete",e=>{let{completeExperience:t,completeExperienceObject:n,experience:i,isBackendExperience:l,preventRemoval:a,targeting:r}=this.props,o=e||1;if(i&&!this.state.hasCompleted.includes(i.experience_id)){let{placement_id:e,experience_id:s}=i||{},d=a||2===o;(1===o||d)&&e&&s&&(l?n(i,d):r?t(e,s,d,r):t(e,s,d),this.setState(e=>({hasCompleted:[...e.hasCompleted,s]})))}}),d(this,"dismiss",()=>{let{dismissExperience:e,dismissExperienceObject:t,experience:n,isBackendExperience:i,preventRemoval:l,targeting:a}=this.props,{placement_id:r,experience_id:o}=n||{};n&&!this.state.hasDismissed.includes(o)&&(i?t(n):a?e(r,o,!!l,a):e(r,o,!!l),this.setState(e=>({hasDismissed:[...e.hasDismissed,o]})))}),d(this,"isEligibleExperience",()=>{let{experience:e}=this.props;if(!e)return!1;let{eligibleIds:t,eligibleTypes:n,predicate:i,transitionType:l}=this.props,{experience_id:a,type:r}=e;return t&&t.length?t.includes(a):n&&n.length?n.includes(r):i?i(e):!l||l===r})}componentDidMount(){if(this.props.disableAutoView)return;let{experience:e}=this.props;e&&this.isEligibleExperience()&&this.view()}componentDidUpdate(e){if(this.props.disableAutoView)return;let t=e.experience,n=this.props.experience;n&&this.isEligibleExperience()&&(t&&t.experience_id===n.experience_id||this.view())}render(){let{children:e,experience:t,disableAutoView:n}=this.props;return t&&this.isEligibleExperience()?"function"==typeof e?e({experience:t,complete:this.complete,dismiss:this.dismiss,...n?{view:this.view}:Object.freeze({})}):i.Children.only(e):null}}function c(e){let t=(0,l.useSelector)(({experiences:t})=>e.experience||(e.placementId?t[e.placementId]:void 0)),n=(0,l.useDispatch)(),i=(0,r.be)(),d=(0,r.Am)(),c=(0,r.Ig)(),p=(0,a.Z)();return(0,s.jsx)(u,{...e,experience:t,completeExperience:(e,t,l,a)=>n(i(e,t,l,!1,{},a)),completeExperienceObject:(e,t)=>n((0,o.Tl)(p)(e,t)),dismissExperience:(e,t,i,l)=>n(d(e,t,i,void 0,l)),dismissExperienceObject:e=>n((0,o.CF)(e)),viewExperience:(e,t,i)=>n(c(e,t,!1,!1,void 0,i)),viewExperienceObject:e=>n((0,o.dy)(p)(e))})}d(u,"defaultProps",{eligibleIds:[],eligibleTypes:[]})},123159:(e,t,n)=>{"use strict";n.d(t,{F:()=>p,M:()=>c});var i=n(667294),l=n(702664),a=n(14890),r=n(425288),o=n(332611),s=n(957191),d=n(785893);let{Provider:u,useHook:c}=(0,r.Z)("ExperienceContext");function p({children:e}){let[t,n]=(0,i.useReducer)((e,t)=>{if("MOUNT_PLACEMENT"===t.type)return{...e,mountedPlacements:{...e.mountedPlacements,[t.payload]:!0}};if("UNMOUNT_PLACEMENT"===t.type){let n={...e};return delete n.mountedPlacements[t.payload],delete n.registerdAfterActionPlacements[t.payload],n}return"REGISTER_AFTER_ACTION_PLACEMENT"===t.type?{...e,registerdAfterActionPlacements:{...e.registerdAfterActionPlacements,[t.payload]:!0}}:e},{mountedPlacements:{},registerdAfterActionPlacements:{}}),{mountedPlacements:r,registerdAfterActionPlacements:c}=t,p=(0,l.useDispatch)(),m=(0,l.useSelector)(e=>e.experiences),h=(0,o.be)(),_=(0,o.Am)(),g=(0,o.Ig)(),y=(0,i.useMemo)(()=>{let e=(0,a.bindActionCreators)({completeExperience:h,dismissExperience:_,fetchAllExperiences:o.fO,fetchAllExperiencesMulti:s.NW,fetchExperienceForPlacements:o.pz,mountPlacement:o.N,triggerExperimentsForPlacement:o.kd,viewExperience:g},p);return{...e,mountPlacement:(t,...i)=>{e.mountPlacement(t,...i),n({type:"MOUNT_PLACEMENT",payload:t})},unmountPlacement:e=>{n({type:"UNMOUNT_PLACEMENT",payload:e})},registerAfterActionPlacement:e=>{n({type:"REGISTER_AFTER_ACTION_PLACEMENT",payload:e})}}},[h,_,p,n,g]),v=(0,i.useMemo)(()=>({experiences:m,mountedPlacements:r,registerdAfterActionPlacements:c,...y}),[m,r,c,y]);return(0,d.jsx)(u,{value:v,children:e})}},322617:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var i=n(667294),l=n(702664),a=n(883119),r=n(121093),o=n(121151),s=n(249647),d=n(70061),u=n(50286),c=n(283698),p=n(968121),m=n(898781),h=n(124580),_=n(223815),g=n(965900),y=n(785893);let v=()=>{if(document.body){let{body:{style:e}}=document;e.overflow="hidden",e.touchAction="none"}},f=()=>{if(document.body){let{body:{style:e}}=document;e.overflow="visible",e.touchAction="auto"}};function b({accessibilityModalLabel:e,allowScroll:t=!1,children:n,closeOnOutsideClick:l=!0,footer:r,isOpen:o,modalWidth:s,onDismiss:d,zIndex:u}){let b=(0,m.ZP)(),x=(0,i.useRef)(!1),{setAppFocusState:k}=(0,g.I)();return((0,i.useEffect)(()=>(x.current=(0,c.Z)(()=>{}),()=>{"undefined"!=typeof window&&Object.prototype.hasOwnProperty.call(window,"cancelAnimationFrame")&&x.current&&(window.cancelAnimationFrame(x.current),x.current=null)}),[]),(0,i.useEffect)(()=>(o?(h.Z.pause(),k(!1)):(h.Z.resume(),k(!0)),()=>{o&&(h.Z.resume(),k(!0))}),[k,o]),(0,i.useEffect)(()=>{let e=o&&!t;return e&&v(),()=>{e&&f()}},[o,t]),o)?(0,y.jsx)(_.Z,{children:(0,y.jsx)(a.mh,{children:(0,y.jsxs)(a.xu,{"aria-label":e,zIndex:u||p.b7,position:"relative",role:"dialog",children:[(0,y.jsx)(a.iP,{accessibilityLabel:b._('Mobile Popup Modal Mask', 'mweb.experience_popup_modal.mask', 'The acessibility label for the mask of popup modal'),onTap:()=>{l&&d()},tapStyle:"none",children:(0,y.jsx)(a.xu,{height:"100%",left:!0,position:"fixed",top:!0,width:"100%",zIndex:new a.Ry(1),dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(0, 0, 0, .5)",touchAction:"none",transitionProperty:"opacity",transitionTimingFunction:"ease-out"}}})}),(0,y.jsxs)(a.xu,{position:"fixed",color:"default",top:!0,width:s,zIndex:new a.Ry(1),rounding:4,overflow:"hidden",dangerouslySetInlineStyle:{__style:{top:"50%",left:"50%",transform:"translate(-50%, -50%)",touchAction:"none",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out"}},children:[n,r]})]})})}):null}var x=n(215727),k=n(977558);let P=new a.Ry(k.fe),S=new a.H3([P]);function w(e){var t;let n=(0,l.useSelector)(({experiences:t})=>e.experience||(e.placementId?t[e.placementId]:void 0)),c=null==n?void 0:null===(t=n.display_data)||void 0===t?void 0:t.delay_in_millis,[p,m]=(0,i.useState)(n&&!c),h=(0,u.HG)();return(0,i.useEffect)(()=>{var e;m(n&&!(null!==(e=n.display_data)&&void 0!==e&&e.delay_in_millis))},[n]),(0,i.useEffect)(()=>{let e;return c&&(e=setTimeout(()=>{m(!0)},c)),()=>clearTimeout(e)},[c]),(0,y.jsx)(i.Fragment,{children:p&&(0,y.jsx)(r.Z,{experience:n,eligibleTypes:[26],placementId:e.placementId,children:({complete:e,dismiss:t,experience:{display_data:n}})=>{let i=(0,s.Z)(d.Z)(n),{title:l,body:r,completeButton:u}=i;return l&&r&&u.text?h?(0,y.jsx)(a.mh,{zIndex:S,children:(0,y.jsx)(o.ZP,{accessibilityModalLabel:"",onDismiss:t,size:"sm",children:(0,y.jsx)(x.Z,{isMobile:!1,displayData:i,handleComplete:e,handleDismiss:t})})}):(0,y.jsx)(b,{modalWidth:320,accessibilityModalLabel:null==i?void 0:i.title,onDismiss:t,isOpen:!0,children:(0,y.jsx)(x.Z,{isMobile:!0,displayData:i,handleComplete:e,handleDismiss:t})}):null}})})}},327788:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(667294),l=n(123159),a=n(322617),r=n(497529),o=n(785893);let s=({placementId:e})=>{let{experienceForPlacement:t}=(0,r.Z)(e),{unmountPlacement:n,registerAfterActionPlacement:s}=(0,l.M)();return(0,i.useEffect)(()=>(s(e),()=>{n(e)}),[e,n,s]),(0,o.jsx)(i.Fragment,{children:(0,o.jsx)(a.Z,{experience:t})})}},332611:(e,t,n)=>{"use strict";let i;n.d(t,{Am:()=>y,Ig:()=>_,N:()=>x,Sd:()=>v,YX:()=>b,be:()=>g,fO:()=>p,kd:()=>f,pz:()=>m});var l=n(667294),a=n(214494),r=n(112690),o=n(764990),s=n(957191),d=n(186656),u=n(67347);let c=(e,t,n={})=>(0,u.nP)(`${e}.${t}`,{sampleRate:1,tags:n}),p=(e,t)=>n=>{let i=t?{extra_context:e,targeting:t}:{extra_context:e};return a.Z.create("UserExperiencePlatformResource",i).callGet().then(e=>e.resource_response?n((0,s.OD)(e.resource_response.data)):void 0)},m=(e,t,n,l)=>(r,d)=>{if(t)return Promise.resolve();if(l&&(i=l),1===e.length){let t=e[0],i=d().experiences,l=i[t],a=(null==l?void 0:l.extraContext)||null;if(JSON.stringify(a)===JSON.stringify(n)||(0,o.E3)(l)&&!(n&&Object.keys(n).length>0))return Promise.resolve()}return a.Z.create("UserExperienceResource",{placement_ids:e,extra_context:n||null,targeting:l}).callGet().then(e=>e.resource_response?r((0,s.cL)(e.resource_response.data)):void 0)},h=(e,t,n,l)=>(r,o,d,u=!1,c,m)=>(h,_)=>{let{experiences:g,experiencesMulti:y}=_(),v=null,f=!0;if(!u){var b;v=(f=g[r]&&g[r].experience_id===o)?g[r]:Array.isArray(y[r])&&(null===(b=y[r])||void 0===b?void 0:b.find(e=>e.experience_id===o))}if(v&&v.experience_id===o||u&&r&&o){let u=a.Z.create(e,{placed_experience_id:`${r}%3A${o}`,extra_context:null!=c?c:{},targeting:m}),_=f?s.Yb:s.xW;switch(t){case"dismissed":return u.callDelete().then(()=>{h(_(r,o,t)),h(p(void 0,i)),n&&l&&n({event_type:l,object_id_str:o.toString()})});case"completed":return u.callUpdate().then(()=>{!d&&(h(_(r,o,t)),h(p(void 0,i)),n&&l&&n({event_type:l,object_id_str:o.toString()}))});case"viewed":return h(_(r,o,t)),u.callUpdate().then(()=>{1000162===r&&h(p()),n&&l&&n({event_type:l,object_id_str:o.toString()})});case"completedWithoutHomefeed":return u.callUpdate().then(()=>{d||h(_(r,o,t)),n&&l&&n({event_type:l,object_id_str:o.toString()})})}}return Promise.resolve()},_=()=>{let e=(0,r.Z)(),t=(0,l.useCallback)(h("UserExperienceViewedResource","viewed",e,4503),[e]);return t},g=()=>{let e=(0,r.Z)(),t=(0,l.useCallback)(h("UserExperienceCompletedResource","completed",e,6567),[e]);return t},y=()=>{let e=(0,r.Z)(),t=(0,l.useCallback)(h("UserExperienceResource","dismissed",e,6568),[e]);return t},v=()=>{let e=(0,r.Z)(),t=(0,l.useCallback)(h("UserExperienceCompletedResource","completedWithoutHomefeed",e,6567),[e]);return t},f=(e,t)=>(n,i)=>{let{experiences:l}=i(),a=l[e];a&&a.triggerable_placed_exps&&a.triggerable_placed_exps.length&&a.triggerable_placed_exps.forEach(n=>{let[,i]=n.split(":"),l=t;a.metadata&&a.metadata[i]&&(l={...t,...a.metadata[i]}),(0,d.Z)({url:`/v3/experiences/${n.replace(":","%3A")}/trigger/`,method:"PUT",data:l?{extra_context:JSON.stringify(l,null,1)}:{}}).then(()=>{c("experienceservice","experimentTriggerCall.1",{placement_id:e,experience_id:i})})})},b=e=>(t,n)=>{t(f(e));let{experiences:i}=n();return i[e]},x=(e,t,n)=>l=>{n&&(i=n),l(f(e,t)),t&&Object.keys(t).length>0&&l(m([e],!1,t,n))}},242923:(e,t,n)=>{"use strict";n.d(t,{CF:()=>o,Tl:()=>r,dy:()=>s});var i=n(214494),l=n(332611);let a=(e,t,n,a)=>(r,o)=>s=>{if(r&&r.id){let d=i.Z.create(e,{placed_experience_id:r.id,extra_context:{}});switch(t){case"dismissed":d.callDelete().then(()=>{s((0,l.fO)()),n&&a&&n({event_type:a,object_id_str:r.id.toString()})});break;case"completed":d.callUpdate().then(()=>{o||s((0,l.fO)()),n&&a&&n({event_type:a,object_id_str:r.id.toString()})});break;case"viewed":d.callUpdate().then(()=>{n&&a&&n({event_type:a,object_id_str:r.id.toString()})})}}},r=e=>a("UserExperienceCompletedResource","completed",e,6567),o=a("UserExperienceResource","dismissed"),s=e=>a("UserExperienceViewedResource","viewed",e,4503)},764990:(e,t,n)=>{"use strict";n.d(t,{A0:()=>s,E3:()=>r,MQ:()=>o,fL:()=>d});var i=n(883119),l=n(149230),a=n(785893);function r(e){return!!e&&0!==e.type}let o=(e,t,n)=>{let i=e[n];return t[n]&&r(i)?i:null};function s(e){var t;return null===(t=e.display_data)||void 0===t?void 0:t.anchor}let d=e=>{var t;let n=new DOMParser,r=n.parseFromString(e,"text/html"),o=[...(null===(t=r.body)||void 0===t?void 0:t.childNodes)||[]].map(e=>{if("A"!==e.nodeName)return(0,a.jsx)(i.xv,{inline:!0,children:e.textContent});{let t=e.href||"",n=(0,l.Z)({url:t});return(0,a.jsx)(i.rU,{href:t,display:"inline",externalLinkIcon:n?"default":"none",target:"blank",rel:n?"nofollow":"none",children:e.textContent})}});return(0,a.jsx)(i.xv,{inline:!0,children:o})}},207737:(e,t,n)=>{"use strict";n.d(t,{$S:()=>i,V$:()=>l,_4:()=>r,iY:()=>o,mR:()=>a});let i="REFRESH_ALL_EXPERIENCES_MULTI",l="UPDATE_EXPERIENCE_MULTI",a="FETCH_EXPERIENCES",r="REFRESH_ALL_EXPERIENCES",o="UPDATE_EXPERIENCE"},957191:(e,t,n)=>{"use strict";n.d(t,{NW:()=>o,OD:()=>d,Yb:()=>s,cL:()=>u,xW:()=>r});var i=n(214494),l=n(207737);let a=e=>({type:l.$S,payload:{experiencesMulti:e}}),r=(e,t,n)=>({type:l.V$,payload:{placementId:e,experienceId:t,status:n}}),o=e=>t=>i.Z.create("UserExperiencePlatformResource",{extra_context:e,multiExperiencePlatform:!0}).callGet().then(e=>e.resource_response?t(a(e.resource_response.data)):void 0),s=(e,t,n)=>({type:l.iY,payload:{placementId:e,experienceId:t,status:n}}),d=e=>({type:l._4,payload:{experiences:e}}),u=e=>({type:l.mR,payload:{experiences:e}})},79264:(e,t,n)=>{"use strict";n.d(t,{c:()=>s});var i=n(123159),l=n(50286);let a=["/","/homefeed/"],r=["/search/pins/","/search/my_pins/"],o=(e,t)=>a.includes(e)?1000503:r.includes(e)?1000506:e.startsWith("/pin/")?t?1000141:1000494:void 0,s=()=>{let{mountPlacement:e,registerdAfterActionPlacements:t}=(0,i.M)(),n=(0,l.HG)();return(i,l,a,r)=>{let s;switch(i){case"Save":s=o(l,n);break;case"Download":l.startsWith("/pin/")&&(s=n?1000499:1000500)}null!=s&&t[s]&&e(s,a,r)}}},378518:(e,t,n)=>{"use strict";n.d(t,{_:()=>s,a:()=>d});var i=n(667294),l=n(702664),a=n(594736),r=n(332611),o=n(780280);let s=({extraContext:e,id:t,shouldUsePlacedExperience:n=!0})=>{let s=(0,i.useRef)(),d=(0,l.useDispatch)(),{isBot:u}=(0,o.B)(),c=(0,l.useSelector)(e=>e.experiences[t]);return(0,i.useEffect)(()=>{d((0,r.kd)(t))},[d,c,t]),(0,i.useEffect)(()=>{n||(0,a.ZP)(s.current,e)||(d((0,r.pz)([t],u,e)),s.current=e)},[d,e,u,t,n]),c},d=e=>(s(e),(0,l.useSelector)(t=>t.experiencesMulti[e.id]))},497529:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(667294);n(332611);var l=n(123159),a=n(764990);n(957191);var r=n(780280);function o(e){let{mountedPlacements:t,completeExperience:n,dismissExperience:o,experiences:s,fetchAllExperiences:d,fetchAllExperiencesMulti:u,fetchExperienceForPlacements:c,triggerExperimentsForPlacement:p,viewExperience:m}=(0,l.M)(),{isBot:h}=(0,r.B)(),_=e&&!h?(0,a.MQ)(s,t,e):null;return(0,i.useMemo)(()=>({completeExperience:n,dismissExperience:o,experienceForPlacement:_,fetchAllExperiences:d,fetchAllExperiencesMulti:u,fetchExperienceForPlacements:c,triggerExperimentsForPlacement:p,viewExperience:m}),[n,o,_,d,u,c,p,m])}},869636:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(667294),l=n(702664),a=n(442279),r=n(123159),o=n(780280),s=n(67347);let d=(0,a.P1)(e=>e.experiences,(e,t)=>t,(e,t)=>e[t]),u=(e,t,n={})=>(0,s.nP)(`${e}.${t}`,{sampleRate:1,tags:n}),c=(e,t)=>"function"==typeof t?t(e):t,p=(e,t={},n=!1)=>{let[a,s]=(0,i.useReducer)(c,t),{isBot:p}=(0,o.B)(),{fetchExperienceForPlacements:m,mountPlacement:h,triggerExperimentsForPlacement:_,unmountPlacement:g}=(0,r.M)();(0,i.useDebugValue)(`Placement Hook ID - ${e}`),(0,i.useEffect)(()=>{let t={...a},i=n&&null!=t&&t.advertiser_id?{advertiserId:t.advertiser_id}:void 0;return h(e,t,i),()=>{g(e)}},[]),(0,i.useEffect)(()=>{Object.keys(a).length>0&&m([e],p,a)},[a]);let y=(0,l.useSelector)(t=>d(t,e)),v=(0,l.useSelector)(t=>t.experiencesMulti[e]),f=y?y.triggerable_placed_exps:[];return(0,i.useEffect)(()=>{let t={platform:"web",placement_id:e,...f};u("experienceservice","placementHookExperimentTrigger.1",t),_(e,a)},[JSON.stringify(f)]),{experience:y,experiencesMulti:v,setExtraContext:s}}},402201:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=e=>{let[t,n]=[(null==e?void 0:e.width)||580,(null==e?void 0:e.height)||400],[i,l]=[window.screen.width,window.screen.height];return`scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=${t},height=${n},left=${Math.round((i-t)/2)},top=${l>n?Math.round((l-n)/2):0}`}},441253:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(537347),l=n.n(i),a=n(67347);function r(e){if("undefined"==typeof window||!document.head)return(0,a.nP)("load_fonts.failure",{sampleRate:1,tags:{failure_reason:"window undefined"}}),Promise.reject(Error("Window is undefined or no head on the document. Unable to load fonts"));let{head:t}=document,n=[];return e.forEach(e=>{e.styles.forEach(i=>{var a,r,o;let s=document.querySelector(`#${null!==(a=e.fontFamily)&&void 0!==a?a:""}-${i.name}`);if(!s){if((s=document.createElement("style")).setAttribute("id",`${null!==(r=e.fontFamily)&&void 0!==r?r:""}-${i.name}`),t.appendChild(s),e.format&&i.fontUrl&&s&&s.sheet){let t=s.sheet;t.insertRule(`
146
+ @font-face {
147
+ font-family: "${null!==(o=e.fontFamily)&&void 0!==o?o:""}";
148
+ font-style: "${i.fontStyle}";
149
+ font-weight: "${i.fontWeight}";
150
+ src: url("${i.fontUrl}") format("${e.format}");
151
+ }
152
+ `,0)}n.push(new(l())(e.fontFamily,{style:i.fontStyle,weight:i.fontWeight}).load())}})}),Promise.all(n).then(()=>{Promise.resolve()}).catch(e=>{(0,a.nP)("load_fonts.failure",{sampleRate:1,tags:{failure_reason:"unsuccessful load"}}),Promise.reject(e)})}},872085:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(785893);let l=({size:e=56})=>(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",{x:"0.5",y:"0.5",width:"55",height:"55",rx:"27.5",fill:"white",stroke:"#CDCDCD"}),(0,i.jsx)("path",{d:"M21.773 32.5718C16.3702 32.5718 11.9998 27.9614 11.9998 22.2859C11.9998 16.6104 16.3702 12.0003 21.773 12.0003H31.941C37.3438 12.0003 41.7142 16.6106 41.7142 22.2859C41.7142 27.9613 37.3438 32.5716 31.941 32.5716L21.773 32.5718Z",fill:"#86A9FF"}),(0,i.jsx)("path",{d:"M28.3636 36.7279V42.9999C28.3636 43.5456 27.9241 43.9999 27.3973 43.9999C27.1394 43.9981 26.8936 43.8914 26.7161 43.7044L17.1846 33.8872C15.3178 31.9787 14.2858 29.3656 14.2858 26.6609C14.2858 21.0934 18.6561 16.5712 24.0589 16.5712H34.2269C39.6298 16.5712 44.0001 21.0936 44.0001 26.6609C44.0001 32.2282 39.6298 36.7506 34.2269 36.7506H28.3636V36.7279Z",fill:"#578CFF"}),(0,i.jsx)("path",{d:"M21.7258 32.5713H31.9183C37.3338 32.5713 41.7142 27.8541 41.7142 22.0468C41.7142 21.3593 41.6479 20.6959 41.5382 20.0319C39.7554 17.8988 37.1578 16.5714 34.2738 16.5714H24.0818C18.6663 16.5714 14.2858 21.2886 14.2858 27.096C14.2858 27.7835 14.3521 28.4468 14.4618 29.0868C16.2446 31.22 18.8423 32.5713 21.7263 32.5713H21.7258Z",fill:"#0057CC"})]})},142236:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(785893);let l=({size:e=56})=>(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"})]})},777992:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(785893);let l=({size:e=56})=>(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"})]})},404241:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(785893);let l=({size:e=56})=>(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"})]})})]})},905260:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(785893);let l=({size:e=56})=>(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"})]})},413764:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(785893);let l=({size:e})=>(0,i.jsxs)("svg",{height:e,style:{display:"block"},viewBox:"-3 -3 82 82",width:e,children:[(0,i.jsx)("circle",{cx:"38",cy:"38",fill:"white",r:"40"}),(0,i.jsx)("path",{d:"M27.5 71c3.3 1 6.7 1.6 10.3 1.6C57 72.6 72.6 57 72.6 37.8 72.6 18.6 57 3 37.8 3 18.6 3 3 18.6 3 37.8c0 14.8 9.3 27.5 22.4 32.5-.3-2.7-.6-7.2 0-10.3l4-17.2s-1-2-1-5.2c0-4.8 3-8.4 6.4-8.4 3 0 4.4 2.2 4.4 5 0 3-2 7.3-3 11.4C35.6 49 38 52 41.5 52c6.2 0 11-6.6 11-16 0-8.3-6-14-14.6-14-9.8 0-15.6 7.3-15.6 15 0 3 1 6 2.6 8 .3.2.3.5.2 1l-1 3.8c0 .6-.4.8-1 .4-4.4-2-7-8.3-7-13.4 0-11 7.8-21 22.8-21 12 0 21.3 8.6 21.3 20 0 12-7.4 21.6-18 21.6-3.4 0-6.7-1.8-7.8-4L32 61.7c-.8 3-3 7-4.5 9.4z",fill:"#fb7072",fillRule:"evenodd"})]})},712714:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(785893);let l=({size:e=56})=>(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_messenger)"}),(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_messenger",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"})]})})]})},675706:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(785893);let l=({size:e=56})=>(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 56C43.464 56 56 43.464 56 28C56 12.536 43.464 0 28 0C12.536 0 0 12.536 0 28C0 43.464 12.536 56 28 56Z",fill:"url(#paint0_linear_3_21)"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6745 27.7045C20.837 24.1482 26.28 21.8037 29.0034 20.6709C36.7793 17.4366 38.3951 16.8748 39.4482 16.8563C39.6799 16.8522 40.1978 16.9096 40.5332 17.1818C40.8165 17.4116 40.8944 17.7221 40.9317 17.9401C40.969 18.158 41.0155 18.6544 40.9786 19.0423C40.5572 23.4698 38.7339 34.2141 37.8063 39.1729C37.4138 41.2712 36.641 41.9747 35.8928 42.0436C34.2667 42.1932 33.032 40.969 31.4571 39.9366C28.9928 38.3212 27.6006 37.3156 25.2085 35.7393C22.444 33.9175 24.2361 32.9162 25.8116 31.2799C26.2239 30.8517 33.3881 24.3352 33.5268 23.7441C33.5441 23.6701 33.5602 23.3946 33.3965 23.249C33.2328 23.1035 32.9911 23.1533 32.8168 23.1929C32.5696 23.249 28.6328 25.8511 21.0062 30.9992C19.8887 31.7665 18.8766 32.1404 17.9697 32.1208C16.97 32.0992 15.0469 31.5555 13.6172 31.0908C11.8637 30.5208 10.4701 30.2195 10.5914 29.2514C10.6547 28.7472 11.349 28.2316 12.6745 27.7045Z",fill:"white"}),(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"paint0_linear_3_21",x1:"2800",y1:"0",x2:"2800",y2:"5558.47",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#2AABEE"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#229ED9"})]})})]})},871714:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(785893);let l=({size:e=56})=>(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"})]})},942321:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(785893);let l=({size:e=56})=>(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"})]})},632005:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(643010),l=n(785893);let a=({size:e=56})=>{let t=(0,i.vs)();return(0,l.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,l.jsx)("rect",{width:"56",height:"56",rx:"28",fill:t?"white":"#111111"}),(0,l.jsx)("path",{d:"M30.3055 25.8561L40.505 14H38.088L29.2318 24.2945L22.1584 14H14L24.6964 29.5671L14 42H16.4171L25.7695 31.1287L33.2396 42H41.3979L30.3049 25.8561H30.3055ZM26.995 29.7042L25.9112 28.1541L17.288 15.8196H21.0005L27.9595 25.7739L29.0433 27.324L38.0892 40.2632H34.3767L26.995 29.7048V29.7042Z",fill:t?"#111111":"white"})]})}},939120:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(858472),l=n(785893);let a=(0,l.jsxs)("svg",{display:"block",fill:"none",height:"56",viewBox:"0 0 56 56",width:"56",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("rect",{fill:i.x7,height:"56",rx:"28",width:"56"}),(0,l.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"})]}),r=a},579014:(e,t,n)=>{"use strict";n.d(t,{B1:()=>l,Md:()=>u,iX:()=>d,lI:()=>a,op:()=>s,uZ:()=>r,wN:()=>i,z_:()=>o});let i="var(--color-background-default)",l="var(--color-background-inverse-base)",a="var(--color-background-secondary-base)",r="var(--color-background-error-base)",o="var(--color-background-info-weak)",s="var(--color-border-error)",d="var(--color-border-container)",u="var(--color-text-subtle)"},858472:(e,t,n)=>{"use strict";n.d(t,{$$:()=>y,C5:()=>T,CZ:()=>g,EX:()=>a,FZ:()=>i,HH:()=>o,KK:()=>P,Kp:()=>h,Ln:()=>_,Mv:()=>w,OX:()=>r,P6:()=>I,Rb:()=>x,Xn:()=>b,YX:()=>c,bu:()=>d,cO:()=>v,ci:()=>s,fM:()=>f,k6:()=>S,oY:()=>l,sX:()=>A,vZ:()=>p,wA:()=>k,x7:()=>u,xE:()=>m});let i="var(--color-transparent)",l="var(--color-black-cosmicore-900)",a="var(--color-blue-skycicle-900)",r="var(--color-red-pushpin-50)",o="var(--color-red-pushpin-100)",s="var(--color-red-pushpin-200)",d="var(--color-red-pushpin-300)",u="var(--color-red-pushpin-450)",c="var(--color-red-pushpin-500)",p="var(--color-red-pushpin-600)",m="var(--color-red-pushpin-700)",h="var(--color-red-pushpin-800)",_="var(--color-pink-flaminglow-0)",g="var(--color-white-mochimalist-0)",y="var(--color-gray-roboflow-50)",v="var(--color-gray-roboflow-200)",f="var(--color-gray-roboflow-300)",b="var(--color-gray-roboflow-400)",x="var(--color-gray-roboflow-500)",k="var(--color-gray-roboflow-600)",P="var(--color-gray-roboflow-700)",S="var(--color-purple-mysticool-200)",w="var(--color-purple-mysticool-300)",A="var(--color-purple-mysticool-500)",T="var(--color-teal-spabattical-100)",I="var(--color-yellow-caramellow-300)"},301723:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(667294),l=n(883119);let a=(0,i.createContext)();var r=n(785893);function o(e){(0,i.useContext)(a);let{alt:t,color:n,children:o,crossOrigin:s,decoding:d,elementTiming:u,fetchPriority:c,fit:p,loading:m,naturalHeight:h,naturalWidth:_,onError:g,onLoad:y,role:v,sizes:f,src:b,srcSet:x}=e;return(0,r.jsx)(l.Ee,{alt:t,color:n,crossOrigin:s,decoding:d,elementTiming:u,fetchPriority:c,fit:p,loading:m,naturalHeight:h,naturalWidth:_,onError:g,onLoad:y,role:v,sizes:f,src:b,srcSet:x,children:o})}},121151:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>d,b7:()=>r.b7,bN:()=>o,p4:()=>s});var i=n(240684),l=n(50286),a=n(785893),r=n(968121);let o=(0,i.ZP)({resolved:{},chunkName:()=>"DesktopModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e(51879).then(n.bind(n,373420)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return n(t)},resolve:()=>373420}),s=(0,i.ZP)({resolved:{},chunkName:()=>"MobileModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e(72430).then(n.bind(n,430322)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return n(t)},resolve:()=>430322});function d(e){let t=(0,l.ZP)(),n=void 0===e.isOpen||e.isOpen;if("desktop"===t&&n){let{isOpen:t,mobileAccessibilityCloseIconLabel:n,mobileAllowScroll:i,mobileHideCloseIcon:l,mobileIsFullscreen:r,mobileIsSlideUp:s,type:d,mobileIsFooter:u,zIndex:c,...p}=e;return(0,a.jsx)(o,{...p})}let{allowMediaPlay:i,allowScroll:r,role:d,size:u,_dangerouslyDisableScrollBoundaryContainer:c,...p}=e;return(0,a.jsx)(s,{...p,isOpen:n})}},373420:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(667294),l=n(883119),a=n(968121),r=n(124580),o=n(223815),s=n(785893);function d({_dangerouslyDisableScrollBoundaryContainer:e,accessibilityModalLabel:t,align:n,allowClickAndDrag:d,allowMediaPlay:u,allowScroll:c,children:p,closeOnOutsideClick:m,footer:h,heading:_,onDismiss:g,role:y,size:v,subHeading:f}){return(0,i.useEffect)(()=>(r.Z.pause(),function(){r.Z.resume()}),[]),(0,s.jsx)(l.mh,{zIndex:a.b7,children:(0,s.jsx)(o.Z,{allowClickAndDrag:d,allowEsc:!0,allowMediaPlay:u,allowScroll:c,children:(0,s.jsx)(l.u_,{_dangerouslyDisableScrollBoundaryContainer:e,accessibilityModalLabel:t,align:n,closeOnOutsideClick:m,heading:_,footer:h,onDismiss:()=>{r.Z.resume(),g()},role:y,size:v,subHeading:f,padding:"none",children:p})})})}},430322:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var i=n(667294),l=n(883119),a=n(283698),r=n(968121),o=n(898781),s=n(124580),d=n(780280),u=n(223815),c=n(867820),p=n(50286),m=n(965900),h=n(785893);let _=()=>{if(document.body){let{body:{style:e}}=document;e.overflow="hidden",e.touchAction="none"}},g=()=>{if(document.body){let{body:{style:e}}=document;e.overflow="visible",e.touchAction="auto"}};function y({accessibilityModalLabel:e,align:t="center",allowClickAndDrag:n,allowScroll:y=!1,children:v,closeOnOutsideClick:f=!0,footer:b,heading:x,isOpen:k,mobileAccessibilityCloseIconLabel:P,mobileHideCloseIcon:S,mobileIsFooter:w,mobileIsFullscreen:A,mobileIsSlideUp:T,onDismiss:I,subHeading:E,type:C,zIndex:D}){let j=(0,o.ZP)(),{isRTL:F}=(0,d.B)(),R=(0,i.useRef)(!1),[L,z]=(0,i.useState)(!1),{setAppFocusState:O}=(0,m.I)(),M=(0,p.ZP)();return((0,i.useEffect)(()=>{(0,c.My)(`mweb_unauth.mobile_modal.${C||"unknown_type"}.did_mount.is_open.${String(!!k)}`)},[k,C]),(0,i.useEffect)(()=>(R.current=(0,a.Z)(()=>{R.current&&z(!0)}),()=>{"undefined"!=typeof window&&Object.prototype.hasOwnProperty.call(window,"cancelAnimationFrame")&&R.current&&(window.cancelAnimationFrame(R.current),R.current=null)}),[]),(0,i.useEffect)(()=>(k?(s.Z.pause(),O(!1)):(s.Z.resume(),O(!0)),()=>{k&&(s.Z.resume(),O(!0))}),[O,k]),(0,i.useEffect)(()=>{let e=k&&!y;return e&&_(),()=>{e&&g()}},[k,y]),k)?(0,h.jsx)(u.Z,{allowClickAndDrag:n,children:(0,h.jsx)(l.mh,{children:(0,h.jsxs)(l.xu,{"aria-label":e,display:"inlineBlock",zIndex:D||r.ZM,position:"relative",role:"dialog",children:[(0,h.jsx)(l.iP,{accessibilityLabel:j._('Mobile Signup Modal Mask', 'mweb.signup_modal.mask', 'The accessibility label for the mask of mobile signup modal'),onTap:({event:e})=>{e.clientX&&e.clientY&&(0,c.tj)(`mweb_unauth.mobile_modal.wash_tap.${C||"unknown_type"}.with_dismissal`,{x:e.clientX,y:e.clientY}),f&&I()},tapStyle:"none",children:(0,h.jsx)(l.xu,{height:"100%",left:!0,position:"fixed",top:!0,width:"100%",zIndex:new l.Ry(1),dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(0, 0, 0, .5)",touchAction:"none",transitionProperty:"opacity",transitionTimingFunction:"ease-out"}}})}),(0,h.jsxs)(l.xu,{position:"fixed",color:"default","data-test-id":"mobile-signup-mask",dangerouslySetInlineStyle:T?(0,r.Vf)({isFullscreen:A,isTablet:"tablet"===M,isShowing:L,isRelatedInterestsModal:"related_interests_modal"===C}):(0,r.JN)({variant:A?"fullscreen":"tablet"===M?"tablet":w?"footer":"signup"===C?"signup":void 0}),children:[(0,h.jsxs)(l.kC,{alignItems:"center",justifyContent:"start",width:"100%",gap:{row:2,column:0},children:[P&&!S?(0,h.jsx)(l.xu,{padding:2,"data-test-id":"mobile-modal-cancel-button",children:(0,h.jsx)(l.hU,{accessibilityLabel:P,iconColor:"darkGray",icon:"cancel",onClick:I,padding:4,size:"sm"})}):null,x?(0,h.jsx)(l.kC.Item,{flex:"grow",children:(0,h.jsx)(l.kC,{direction:"column",alignItems:"center",justifyContent:"center",children:(0,h.jsxs)(l.xu,{"data-test-id":"mobile-modal-heading",dangerouslySetInlineStyle:{__style:P&&!S?{marginRight:F?-10:50,marginLeft:F?50:-10}:{}},children:[A?x:(0,h.jsx)(l.xv,{align:t,weight:"bold",size:"400",children:x}),E?(0,h.jsx)(l.xv,{align:t,children:E}):null]})})}):null]}),(0,h.jsxs)(l.xu,{overflow:"auto",children:[v,b]})]})]})})}):null}},968121:(e,t,n)=>{"use strict";n.d(t,{JN:()=>d,Vf:()=>u,ZM:()=>o,b7:()=>r,i_:()=>s});var i=n(883119),l=n(643010),a=n(379764);let r=new i.Ry(1e3),o=new i.H3([a.Z]),s=12,d=({variant:e})=>({__style:"fullscreen"===e?{touchAction:"none",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",width:"90vw",height:"70vh",borderRadius:"8px",zIndex:1,left:"5vw",bottom:"13vh",overflowY:"hidden"}:"tablet"===e?{border:void 0,borderRadius:"32px",top:"50%",left:"50%",minWidth:"350px",touchAction:"none",transform:"translate(-50%, -50%)",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",zIndex:1}:"footer"===e?{border:(0,l.Yc)()?void 0:"1px solid #efefef",bottom:0,boxShadow:"0 0 16px rgba(0,0,0, 0.16)",left:0,touchAction:"none",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",width:"100vw",zIndex:1}:"signup"===e?{border:void 0,borderRadius:"32px",top:"50%",touchAction:"none",transform:"translate(0%, -50%)",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",zIndex:1,left:"8px",right:"8px",background:"#FFFFFF"}:{border:(0,l.Yc)()?void 0:"1px solid #efefef",touchAction:"none",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",width:"100vw",zIndex:1,left:"0px",bottom:0,boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)",overflow:"hidden",borderRadius:"32px 32px 0 0"}}),u=({isFullscreen:e,isTablet:t,isShowing:n,isRelatedInterestsModal:i})=>{let a={border:(0,l.Yc)()?void 0:"1px solid #efefef",touchAction:"none",width:"100vw",height:"",zIndex:1,left:0,bottom:0,borderRadius:"32px 32px 0px 0px",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)"},r=n?"translateY(0)":"translateY(100vh)";return a.height=e?"100vh":"",t&&i&&(a={...a,width:425,left:"50%",transform:"translateX(-50%)"},r=n?"translate(-50%, 0)":"translate(-50%, 100vh)"),{__style:{...a,transition:"all 225ms cubic-bezier(0.0,0.0,0.2,1) 500ms",transform:r}}}},499128:(e,t,n)=>{"use strict";n.d(t,{UZ:()=>d,Vg:()=>s,ZP:()=>u});var i=n(667294),l=n(883119),a=n(50286),r=n(829407),o=n(785893);let s=200,d=({deviceType:e,hiding:t,visible:n})=>{let i="desktop"===e,l=0,a=i?"translateY(200px)":"translateY(-200px)",r="opacity 0.1s ease-in-out",o="hidden";return n&&!t&&(l=1,a="translateY(0)",r="all 0.7s cubic-bezier(.19, 1.15, .48, 1)",o="visible"),n&&t&&(a="scale(1.1)",r="opacity transform 0.2s"),{opacity:l,pointerEvents:"auto",position:"relative",marginTop:i?10:0,transform:a,transition:r,visibility:o}};function u({_dangerouslySetThumbnail:e,_dangerouslySetPrimaryAction:t,text:n,primaryAction:u,dismissButton:c,helperLink:p,thumbnail:m,type:h,dataTestId:_,duration:g=2e3,onHide:y,href:v,onClick:f,openNewPage:b,imageUrl:x}){var k;let P;let S=(0,a.ZP)(),[w,A]=(0,i.useState)(!1),[T,I]=(0,i.useState)(!1),E=(0,i.useRef)(),C=()=>{A(!0),E.current=setTimeout(y,s)},D=()=>{E.current=setTimeout(C,g)},j=()=>{E.current&&clearTimeout(E.current)};(0,r.Z)(()=>(setTimeout(()=>I(!0),100),D(),j)),x&&(P={image:(0,o.jsx)(l.Ee,{alt:"string"==typeof n?n:`${n[0]} ${n[1]}`,fit:"cover",naturalHeight:1,naturalWidth:1,src:x})});let F=(0,o.jsx)(l.FN,{_dangerouslySetThumbnail:e,_dangerouslySetPrimaryAction:t,primaryAction:u,text:n,thumbnail:null!==(k=P)&&void 0!==k?k:m,type:h,dismissButton:c,helperLink:p}),{marginTop:R,opacity:L,pointerEvents:z,position:O,transform:M,transition:N,visibility:B}=d({deviceType:S,hiding:w,visible:T});return(0,o.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{transform:M,transition:N,visibility:B,pointerEvents:z}},"data-test-id":null!=_?_:"toast",onMouseEnter:j,onMouseLeave:D,opacity:L,position:O,marginTop:R,display:"flex",children:v?(0,o.jsx)(l.Tg,{href:v,onTap:({event:e,dangerouslyDisableOnNavigation:t})=>{v.startsWith("#")&&(e.preventDefault(),t()),null==f||f(e)},target:b?"blank":null,rounding:"pill",children:F}):F})}},356997:(e,t,n)=>{"use strict";n.d(t,{qE:()=>o,u_:()=>s.ZP});var i=n(883119),l=n(785893);let a=(e,t)=>{let n=null==e?void 0:e.includes("images/user/default");return!!(n&&t)};function r({accessibilityLabel:e,name:t,outline:n,size:r,src:o,verified:s}){return(0,l.jsx)(i.qE,{accessibilityLabel:e,name:t,outline:n,size:r,src:a(o,t)?void 0:o,verified:s})}r.displayName="Avatar";let o=r;var s=n(121151);n(499128)},178467:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>R,sE:()=>C,jV:()=>j});var i=n(441143),l=n.n(i),a=n(244311);let r={vDASHHEVCSLCONTROL:"V_DASH_HEVC_SL_CONTROL",vHLSHEVC2SEC:"V_HLS_HEVC_2_SEC",vHLSHEVCSLCONTROL:"V_HLS_HEVC_SL_CONTROL",vHLSSINGLEFILECMAFEXP:"V_HLS_SINGLE_FILE_CMAF_EXP",vHLSSINGLEFILECONTROL:"V_HLS_SINGLE_FILE_CONTROL",vHLSSINGLEFILETSEXP:"V_HLS_SINGLE_FILE_TS_EXP",vHLSSLCONTROL:"V_HLS_SL_CONTROL",vHLSV3:"V_HLSV3",vHLSV3EXP:"V_HLSV3_EXP",vHLSV3MOBILE:"V_HLSV3_MOBILE",vHLSV3WEB:"V_HLSV3_WEB",vHLSV4:"V_HLSV4",vLOWBITRATEEXPHLSHEVCCONTROL:"V_LOW_BITRATE_EXP_HLS_HEVC_CONTROL",vLOWBITRATEEXPHLSHEVCLOB:"V_LOW_BITRATE_EXP_HLS_HEVC_LOB",vLOWBITRATEEXPHLSHEVCLQS:"V_LOW_BITRATE_EXP_HLS_HEVC_LQS"},o=/(\d\d0P)(\d\d0K)/,s=/QVBR(8|10)/,d=/(EXP\d?|ADSHQ|AVC|DASH|MANI|HIGHQUAL|HEVC|HLS|H265|H264|720P?|MP4|ENABLED|CONTROL|PROD|T\d|Q?VBR\d*|AUTOABR|MEDIACONVERT|QUALITY|REARRANGED|REMHIGHRES|VISIONULAR|480$|640$|V2$|\dSEC$|\d\d0P\d\d0K$)/g,u=/^v/,c=e=>{var t;return null!==(t=r[e])&&void 0!==t?t:e.replace(d,"_$1").replace(o,"$1_$2").replace(s,"QVBR_$1").replace("ADSHQ","ADS_HQ").replace("HIGHQUAL","HIGH_QUAL").replace("REMHIGHRES","REM_HIGH_RES").replace(u,"V")},p=/[A-Z]/g,m=e=>e.replace(p,e=>`_${e.toLowerCase()}`),h=/^_/,_=e=>e.replace(h,""),g=e=>_(m(e)),y=e=>{switch(e){case"entityId":return"id";case"localPinId":return"localPinId";case"sectionId":return"sectionId";case"boardId":return"boardId";default:return g(e)}},v=e=>"StoryPinPage"===e||"StoryPinImageBlock"===e,f=(e,t,n)=>{if(v(n)){if("images"===e)return"image";if("imagesAdjusted"===e)return"image_adjusted"}if("PinTagChipImagesPerSpec"===n&&"image"===e)return"images";if("VideoDetail"===t)return c(e);switch(e){case"reactionCountsData":return"reaction_counts";case"videoData":return"video";case"savedInfo":return"savedInfo";case"selectedItem":return"selectedItem";default:return g(e)}},b=(e,t)=>{switch(e){case"reactionType":return"string"==typeof t?Number(t):t;case"campaignId":case"pinPromotionId":return"number"==typeof t?String(t):t;default:return t}},x=({untypedInput:e,concreteType:t})=>{if(!e)return null;switch(l()("object"==typeof e,"legacy data must be an object"),t){case"ReactionCountModel":return Object.entries(e).map(([e,t])=>({reaction_type:e,reaction_count:t}));case"PinThroughProperties":return Object.entries(e).map(([e,t])=>({key:e,data:t}));default:if(Array.isArray(e))return e;return Object.entries(e).map(([e,t])=>({key:e,value:t}))}},k=({args:e,name:t})=>{let n=e.find(e=>e.name===t);return n&&"string"==typeof n.value?n.value:null},P=(e,t,n)=>{let{args:i,name:a}=n;if("PinTagChipImagesPerSpec"===t&&"image"===a){var r;return null==e?void 0:null===(r=e.images)||void 0===r?void 0:r["750x"]}let o=null==e?void 0:e[f(a,n.concreteType,t)];if(!o)return o;let s=k({args:null!=i?i:[],name:"spec"});if(s){if(l()("object"==typeof o,"value must be an object"),v(t)){let{dominant_color:e,images:t}=o;if(!t)return t;l()("object"==typeof t,"images must be an object");let n=t["orig"===s?"originals":s];return n&&e?{...n,dominant_color:e}:n}return o[s]}return o},S={HeadingBlock:"StoryPinHeadingBlock",IngredientBlock:"StoryPinIngredientBlock",InstantContentURLNavigateAction:"InstantContentActionUrlNavigate",InstantContentHeaderBlock:"InstantContentHeader",InstantContentParagraphBlock:"InstantContentParagraph",InstantContentTextBlock:"InstantContentText",InstantContentHeadingBlock:"InstantContentHeading",InstantContentImageBlock:"InstantContentImage",InstantContentVideoBlock:"InstantContentVideo",InstantContentTableBlock:"InstantContentTable",InstantContentGroupBlock:"InstantContentGroup",InstantContentOrderedListBlock:"InstantContentOrderedList",InstantContentUnorderedListBlock:"InstantContentUnorderedList",InstantContentSectionBlock:"InstantContentSection",InstantContentSeparatorBlock:"InstantContentSeparator",InstantContentUserBlock:"InstantContentUser",InstantContentWebBlock:"InstantContentWeb",InstantContentPromotedWebBlock:"InstantContentPromotedWeb",LinkBlock:"StoryPinLinkBlock",ParagraphBlock:"StoryPinParagraphBlock",SupplyBlock:"StoryPinSupplyBlock",TextBlock:"StoryPinTextBlock"},w=(e,t)=>{var n;return(null!==(n=S[e])&&void 0!==n?n:e).toLowerCase()===t},A={0:"StoryPinParagraphBlock",1:"StoryPinHeadingBlock",2:"StoryPinImageBlock",3:"StoryPinVideoBlock",4:"StoryPinLinkBlock",5:"StoryPinIngredientBlock",6:"StoryPinSupplyBlock",7:"StoryPinListBlock",8:"StoryPinKeyValueBlock",9:"StoryPinTextBlock",11:"StoryPinMusicBlock",12:"StoryPinMentionStickerBlock",13:"StoryPinProductStickerBlock",14:"StoryPinStaticStickerBlock",15:"StoryPinAnimatedStickerBlock",16:"StoryPinCommentReplyBlock",17:"StoryPinVirtualTryOnMakeupStickerBlock",18:"StoryPinAdBlock",19:"StoryPinGenericInteractiveStickerBlock"},T=/_/g,I=e=>"string"==typeof e.type?e.type.replace(T,"").toLowerCase():"number"==typeof e.block_type?A[e.block_type].toLowerCase():void 0;var E=n(67347);let C=Symbol("fragmentSpread"),D=({conditionContext:e,fragmentName:t,mutableOutput:n,parentType:i,selections:a,untypedInput:r})=>{a.forEach(a=>{switch(a.kind){case"ScalarField":{let{alias:e,name:t}=a;l()(!("__typename"===t&&null==i),"We do not support selecting __typename directly on interface fields. Contact @jackhsu or @robertbalicki"),n[null!=e?e:t]="__typename"===t?i:b(t,null==r?void 0:r[y(t)]);break}case"LinkedField":{let{alias:s,name:d,concreteType:u,plural:c,selections:p}=a,m=null!=s?s:d,h=P(r,i,a);if(null==h){n[m]=h;return}if(c){let i=x({untypedInput:h,concreteType:u}),a=n[m];l()(!a||Array.isArray(a),"plural data must be an array"),n[m]=null==i?void 0:i.map((n,i)=>{var l;let r=null!==(l=null==a?void 0:a[i])&&void 0!==l?l:{};return D({conditionContext:e,fragmentName:t,mutableOutput:r,parentType:u,selections:p,untypedInput:n}),r})}else{var o;l()("object"==typeof h,`Value for ${d} must be an object${u?` with type ${u}`:""}, but a ${typeof h} is given`);let i=null!==(o=n[m])&&void 0!==o?o:{};n[m]=i,D({conditionContext:e,fragmentName:t,mutableOutput:i,parentType:u,selections:p,untypedInput:h})}break}case"InlineFragment":{let{abstractKey:i,type:o,selections:s}=a;if(l()(null!=o&&null===i,"We only support using inline fragment to refine to concrete types for now. Contact @jackhsu or @robertbalicki"),null==r)break;let d=I(r);null!=d&&w(o,d)&&D({conditionContext:e,fragmentName:t,mutableOutput:n,parentType:o,selections:s,untypedInput:r});break}case"Condition":{let{condition:l,selections:o}=a,s=!0;"isAuth"===l?s=e.isAuth===a.passingValue:"isDesktop"===l&&(s=e.isDesktop===a.passingValue),s&&D({conditionContext:e,fragmentName:t,mutableOutput:n,parentType:i,selections:o,untypedInput:r});break}case"FragmentSpread":n[C]=r;break;case"ClientExtension":D({conditionContext:e,fragmentName:t,mutableOutput:n,parentType:i,selections:a.selections,untypedInput:r});break;case"Defer":case"Stream":case"ActorChange":case"FlightField":case"ModuleImport":case"RelayResolver":case"RequiredField":case"RelayLiveResolver":case"AliasedFragmentSpread":case"ClientEdgeToClientObject":case"ClientEdgeToServerObject":case"InlineDataFragmentSpread":case"AliasedInlineFragmentSpread":throw Error(`The selection type '${a.kind}' is not supported yet. Contact @jackhsu or @robertbalicki`);default:throw Error(`Unexpected selection type '${a.kind}'`)}})};function j(e,t){return e[C]=t,e}let F=new Set;function R({conditionContext:e,fragment:t,legacyData:n}){let i;try{i=function({conditionContext:e,fragment:t,legacyData:n}){let i=(0,a.getFragment)(t),r=null==i.abstractKey;if(r){let e=null!=n?I(n):null;null!=e&&l()(w(i.type,e),`fragment data type '${i.type}' does not match legacy data type '${e}'. See http://pinch.pinadmin.com/fragment-data-type-does-not-match-legacy-data-type.`)}let o={};return D({conditionContext:e,fragmentName:i.name,mutableOutput:o,parentType:i.type,selections:i.selections,untypedInput:n}),o}({conditionContext:e,fragment:t,legacyData:n})}catch(i){throw F.has(t.name)||(F.add(t.name),(0,E.nP)("autoLegacyAdapter.erroredReadResults",{sampleRate:1,tags:{fragmentName:t.name,rootId:null==n?void 0:n.id,rootType:null==n?void 0:n.type,url:window.location.href,isAuth:e.isAuth}})),i}return i}},897243:(e,t,n)=>{"use strict";n.d(t,{b:()=>l});let i=({height:e,url:t,width:n})=>({height:e,url:t,width:n}),l=e=>Object.entries(e).reduce((e,[t,n])=>({...e,[t]:n&&i(n)}),{})},934494:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(667294),l=n(995228),a=n(785893);function r({useGraphQLAdapter:e,useLegacyAdapter:t}){let 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}){var o;let s=t.enabled?(0,a.jsx)(n,{data:t.data,children:e}):(0,a.jsx)(r,{data:t.data,children:e}),d=null!==(o=t.suspense)&&void 0!==o&&o.dangerouslyServerRender?i.Suspense:l.Z;return t.suspense?(0,a.jsx)(d,{fallback:t.suspense.fallback,children:s}):s}}},273213:(e,t,n)=>{"use strict";n.d(t,{B:()=>l});var i=n(178467);function l(e){let t=e[i.sE];return null!=t?{type:"deprecated",data:t}:e.__fragments?{type:"graphqlRef",data:e}:e}},681669:(e,t,n)=>{"use strict";n.d(t,{qH:()=>w,Zm:()=>g,HF:()=>P,sr:()=>S,O7:()=>y,V4:()=>k});var i=n(702664),l=n(167912),a=n(178467);function r(e){return null==e?"null or undefined":Array.isArray(e)?"Array":typeof e}function o(e,t,n){return"Manual"===t?{path:e,message:`Value found only in legacy adapter, where it had type ${r(n)}. (Or it was null in the auto-legacy adapter.)`,kind:"MissingInLegacy"}:{path:e,message:`Value found only in auto-legacy adapter, where it had type ${r(n)}. (Or it was null in the legacy adapter.)`,kind:"MissingInAutoLegacy"}}function s(e,t,n){let i=r(t),l=r(n);return{path:e,message:`Found item of type ${i} in the legacy adapter result, and an item of type ${l} in the auto-legacy result.`,kind:"Type"}}var d=n(773285),u=n(780280),c=n(50286),p=n(350118),m=n(67347);let h={},_=new Set;function g(e,t,{useGraphQLAdapter:n,useLegacyAdapter:i}){if("deprecated"===t.type)return{data:i(t.data),childDataKey__DEPRECATED:t};let a=(0,l.useFragment)(e,t.data);return{data:n(a),childDataKey__DEPRECATED:{type:"graphqlRef",data:a}}}let y=()=>{let{isAuthenticated:e}=(0,u.B)(),t=(0,c.HG)();return{isAuth:!!e,isDesktop:t}};function v(){return"undefined"!=typeof performance?performance.now():Date.now()}function f(e){let t=v(),n=e(),i=v();return[n,i-t]}let b=new Map;function x(e,t,n,i){let l=b.get(i);if(l){if(!l.has(t)){let[i,a]=f(e);return l.add(t),(0,m.LY)(t,a,{sampleRate:n.isParallel?1:.1,tags:n}),i}}else{let[l,a]=f(e);return b.set(i,new Set([t])),(0,m.LY)(t,a,{sampleRate:n.isParallel?1:.1,tags:n}),l}return e()}function k(e,t){let{checkExperiment:n}=(0,d.F)(),{isAuthenticated:i}=(0,u.B)(),{group:l,anyEnabled:c}=n(i?"web_graphql_auto_legacy_adapters_auth":"web_graphql_auto_legacy_adapters_unauth"),p=y();return l.includes("parallel")?n=>{let i=x(()=>(0,a.jV)(t(n),n),"autoLegacyAdapter.legacyTiming",{isParallel:!0,fragmentName:e.name},e.name);return"object"==typeof window&&function(e,t,n,i){let l;try{l=x(()=>(0,a.ZP)({conditionContext:t,fragment:e,legacyData:n}),"autoLegacyAdapter.autoLegacyTiming",{fragmentName:e.name,isParallel:!0},e.name)}catch(e){return}try{var d,u;let t=(d=l,function e(t,n,i){let l=[],a=Object.keys(n),d=Object.keys(i);for(let d of a){let a=n[d],u=i[d];l.push(...function t(n,i,l){return null!=i&&null==l?[o(n,"Manual",i)]:i===l||null==i&&null==l?[]:Array.isArray(i)?Array.isArray(l)?function(e,n,i){if(n.length!==i.length)return[{path:e,message:`legacyResult is an array of length ${n.length}; autoLegacyResult is an array of length ${i.length}`,kind:"Length"}];let l=[];for(let a=0;a<n.length;a+=1){let r=n[a],o=i[a];l.push(...t(`${e}[]`,r,o))}return l}(n,i,l):[s(n,i,l)]:"object"==typeof i?"object"==typeof l&&null!==l&&null!==i?e(n,i,l):[s(n,i,l)]:[typeof i!=typeof l?s(n,i,l):{path:n,message:`Found items of type ${r(i)}, but their values did not match.`,kind:"Value"}]}(`${t}.${d}`,a,u))}for(let e of d){let a=n[e],r=i[e];null!=r&&null==a&&l.push(o(`${t}.${e}`,"Auto",r))}return l}("",i,d));if(t.length>0){window.SHOULD_LOG_ADAPTER_DIFFERENCES&&console.warn({differences:t,fragment:e.name}),h[e.name]=null!==(u=h[e.name])&&void 0!==u?u:new Set;let n=h[e.name];for(let i of t)n.has(i.path)||(n.add(i.path),(0,m.nP)("autoLegacyAdapter.inconsistentReadResults",{sampleRate:1,tags:{fragmentName:e.name,path:i.path,kind:i.kind}}))}}catch(t){_.has(e.name)||(_.add(e.name),window.SHOULD_LOG_ADAPTER_DIFFERENCES&&console.warn(`comparing results threw for fragment ${e.name}`),(0,m.nP)("autoLegacyAdapter.erroredCompareResults",{sampleRate:1,tags:{fragmentName:e.name}}))}}(e,p,n,i),i}:c?t=>x(()=>(0,a.ZP)({conditionContext:p,fragment:e,legacyData:t}),"autoLegacyAdapter.autoLegacyTiming",{fragmentName:e.name,isParallel:!1},e.name):n=>x(()=>(0,a.jV)(t(n),n),"autoLegacyAdapter.legacyTiming",{fragmentName:e.name,isParallel:!1},e.name)}function P(e,t,n){let l;switch(n.type){case"article":l=e=>{let t=(0,i.useSelector)(({articles:t})=>t[e]);return t?n.useLegacyAdapter(t):null};break;case"story":l=e=>{let t=(0,i.useSelector)(({stories:t})=>t[e]);return t?n.useLegacyAdapter(t):null};break;default:l=e=>{let t=(0,p.S6)()(e);return t?n.useLegacyAdapter(t):null}}return g(e,t,{useGraphQLAdapter:n.useGraphQLAdapter,useLegacyAdapter:l})}function S(e,t,n){let i=k(e,n.useLegacyAdapter);return P(e,t,{...n,useGraphQLAdapter:e=>e,useLegacyAdapter:i})}let w=void 0},916117:(e,t,n)=>{"use strict";n.d(t,{u:()=>o});var i=n(422578),l=n(178467),a=n(273213),r=n(681669);function o(e,t){if(null==t)return{data:null};let n=(0,a.B)(t);if("deprecated"===n.type){let{data:t}=n;if(null==t)return{data:null};{let n=(0,r.O7)();return{data:(0,l.ZP)({conditionContext:n,fragment:e,legacyData:t})}}}let o=(0,i.useFragment)(e,n.data);return{data:o}}},357998:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});var i=n(422578),l=n(273213),a=n(681669);function r(e,t,{useLegacyAdapter:n}){if(null==t)return{data:null,childDataKey__DEPRECATED:null};let r=(0,l.B)(t);if("deprecated"===r.type){let{data:t}=r;return null==t?{data:null,childDataKey__DEPRECATED:r}:{data:(0,a.V4)(e,n)(t),childDataKey__DEPRECATED:r}}let o=(0,i.useFragment)(e,r.data);return{data:o,childDataKey__DEPRECATED:{type:"graphqlRef",data:o}}}},866898:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(667294),l=n(167912),a=n(244311);function r(e,t,n){var r;let o=null===(r=null==n?void 0:n.suspendOnRefetch)||void 0===r||r,s=(0,l.useRelayEnvironment)(),[d,u]=(0,i.useState)({fetchKey:0,fetchPolicy:"store-or-network"}),[c,p]=(0,i.useState)(!1),m=(0,i.useCallback)(()=>{c||(o?u(e=>({fetchKey:e.fetchKey+1,fetchPolicy:"network-only"})):(p(!0),(0,a.fetchQuery)(s,e,t).subscribe({complete:()=>{p(!1),u(e=>({fetchKey:e.fetchKey+1,fetchPolicy:"store-only"}))},error:()=>{p(!1)}})))},[s,c,e,o,t]),h=(0,l.useLazyLoadQuery)(e,t,d);return{data:h,isRefetching:c,refetch:m}}},444445:(e,t,n)=>{"use strict";n.d(t,{$H:()=>r,$q:()=>f,D6:()=>d,KN:()=>x,Lo:()=>l,OS:()=>m,P2:()=>g,Wv:()=>b,ZZ:()=>c,g5:()=>p,jC:()=>o,lX:()=>_,nW:()=>h,oX:()=>y,qG:()=>v,tG:()=>a,yF:()=>i,yc:()=>u,yt:()=>s});let i=236,l=2*i/3,a=175,r=24,o=4,s=8,d=2,u=2,c=14,p=16,m=5,h=12,_=16,g=24,y=16,v=-1,f=(e=!1,t=!1)=>e?t?_:h:g,b=({contentVisibleItemCount:e,gap:t,width:n})=>e||n?(n-(e-1)*t)/e:i,x=(e,t,n,i,l=c)=>{let a=e+l,r=`
153
+ @media (min-width: ${t*a}px) and (max-width: ${(n+1)*a-1}px) {
154
+ ${i}
155
+ }
156
+ `;return r}},694379:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(892819),l=n(780280),a=n(785893);let r=({currency:e,maximumFractionDigits:t,minimumFractionDigits:n,shortform:r,shortformMaximumFractionDigits:o,formatStyle:s,uplimit:d,value:u})=>{let c=(0,i.Z)();return(0,a.jsx)(l.LC,{children:i=>c(i.locale||"en-US",u,{currency:e,maximum_fraction_digits:t,minimum_fraction_digits:n,shortform:r,shortform_maximum_fraction_digits:o,style:s,uplimit:d})})}},357527:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=["AT","BE","BG","CH","CY","CZ","DE","DK","EE","ES","FI","FR","GB","GR","HU","HR","IE","IT","LT","LU","LV","MT","NL","PL","PT","RO","SK","SI","SE"]},298361:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(202139),l=n(898781),a=n(349700);function r(){let e=(0,l.ZP)();return function(t,n){let l=new Date(t),r=new Date,o=r-l,s=Math.floor(o/i.FS),d=Math.floor(o/i.UK),u=Math.floor(o/i.F4),c=Math.floor(o/i.VL),p=Math.floor(o/i.N1),m=e.ngettext('{{ minutes }} minute ago', '{{ minutes }} minutes ago', s, ' - ', ' -- '),h=e.ngettext('{{ hours }} hour ago', '{{ hours }} hours ago', d, ' - ', ' -- '),_=e.ngettext('{{ days }} day ago', '{{ days }} days ago', u, ' - ', ' -- '),g=e.ngettext('{{ weeks }} week ago', '{{ weeks }} weeks ago', c, ' - ', ' -- '),y=e.ngettext('{{ years }} year ago', '{{ years }} years ago', p, ' - ', ' -- '),v=e.ngettext('{{ minutes }}m', '{{ minutes }}m', s, 'minutes ago abbreviated', 'minutes ago abbreviated'),f=e.ngettext('{{ hours }}h', '{{ hours }}h', d, 'hours ago abbreviated', 'hours ago abbreviated'),b=e.ngettext('{{ days }}d', '{{ days }}d', u, 'days ago abbreviated', 'days ago abbreviated'),x=e.ngettext('{{ weeks }}w', '{{ weeks }}w', c, 'weeks ago abbreviated', 'weeks ago abbreviated'),k=e.ngettext('{{ years }}y', '{{ years }}y', p, 'years ago abbreviated', 'years ago abbreviated');return p>0?(0,a.nk)(n?k:y,{years:p}).join(""):c>0?(0,a.nk)(n?x:g,{weeks:c}).join(""):u>0?(0,a.nk)(n?b:_,{days:u}).join(""):d>0?(0,a.nk)(n?f:h,{hours:d}).join(""):s>0?(0,a.nk)(n?v:m,{minutes:s}).join(""):e._('Just now', ' - ', ' -- ')}}},898781:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>o,oz:()=>a,q6:()=>l});var i=n(425288);let{Provider:l,Consumer:a,useHook:r}=(0,i.Z)("i18n"),o=r},892819:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(898781),l=n(66699);let a=(e,t)=>{let n=t||0,i=10**n,l=+(n?e*i:e).toFixed(8),a=Math.floor(l),r=l-a,o=r>.49999999&&r<.50000001?a%2==0?a:a+1:Math.round(l);return n?o/i:o},r=({maximumFractionDigits:e,minimumFractionDigits:t,style:n,currency:i})=>{let l={maximumFractionDigits:e,minimumFractionDigits:t};return n?{...l,style:n,..."currency"===n?{currency:i,currencyDisplay:"symbol"}:{}}:l},o=e=>{try{0..toLocaleString([e])}catch(e){return!1}return!0},s=(e,t)=>{if(t){let{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}};function d(){let e=(0,i.ZP)();return(t,n,i)=>{let d=0,u=0,c=i&&i.style||void 0,p=i&&i.shortform||!1,m=i&&i.uplimit||void 0,h=i&&i.currency||void 0,_=!!m&&n>=m,g=m&&_?m:n;if("currency"===c){let{minimumFractionDigits:e,maximumFractionDigits:n}=s(t,h);d=void 0===i||void 0===i.maximum_fraction_digits?n:i.maximum_fraction_digits,u=void 0===i||void 0===i.minimum_fraction_digits?e:i.minimum_fraction_digits}else d=void 0===i||void 0===i.maximum_fraction_digits?0:i.maximum_fraction_digits,u=void 0===i||void 0===i.minimum_fraction_digits?0:i.minimum_fraction_digits;if(p&&g>999&&(d=void 0===i||void 0===i.shortform_maximum_fraction_digits?2:i.shortform_maximum_fraction_digits,u=0),d<u)return String(g);let y=g,v="",f=[{"100M":{value:1e8,localeKey:e._('億', 'Abbreviation for one hundred millions. This abbreviation is only used in Chinese, Japanese and Korean.', 'Abbreviation for one hundred millions. This abbreviation is only used in Chinese, Japanese and Korean.')}},{"10k":{value:1e4,localeKey:e._('万', 'Abbreviation for ten thousand. This abbreviation is only used in Chinese, Japanese and Korean.', 'Abbreviation for ten thousand. This abbreviation is only used in Chinese, Japanese and Korean.')}}],b=[{b:{value:1e9,localeKey:e._('B', 'Abbreviation for one billion.', 'Abbreviation for one billion.')}},{m:{value:1e6,localeKey:e._('M', 'Abbreviation for one million.', 'Abbreviation for one million.')}},{k:{value:1e3,localeKey:e._('k', 'Abbreviation for one thousand.', 'Abbreviation for one thousand.')}}],x=/^zh|ja|ko/.test(t);if(p&&g>999){let e=x?f:b;for(let t=0;t<e.length;t+=1){let n=Object.keys(e[t])[0],i=e[t][n].value;if(g>=i){y=a(g/i*Math.pow(10,d))/Math.pow(10,d),v=e[t][n].localeKey;break}}}if(null==y)return"";let k=y.toLocaleString([o(t)&&"ar-SA"!==t?t:"en-US"],r({maximumFractionDigits:d,minimumFractionDigits:u,currency:h,style:c}));return v&&v.length>0?(0,l.Z)(e._('{{formattedNumber}}{{numberSuffix}}', 'i18n.usePrettyNumberFormat.prettyNumberFormat', 'String used to concatenate formatted number and localized number suffix'),{formattedNumber:k,numberSuffix:v})+(_?"+":""):k+(_?"+":"")}}},366428:(e,t,n)=>{"use strict";n.d(t,{F:()=>s,Z:()=>o});var i=n(667294),l=n(407043),a=n(124580);let r={ActivationCard:{impressionType:"activationCardImpressions",idType:"experienceIdStr",eventType:8547},Article:{impressionType:"articleImpressions",idType:"articleIdStr",eventType:3829},Banner:{impressionType:"bannerImpressions",idType:"userIdStr",eventType:9061},Board:{impressionType:"boardImpressions",idType:"boardIdStr",eventType:3700},Comment:{impressionType:"commentImpressions",idType:"commentIdStr",eventType:9127},Guide:{impressionType:"guideImpressions",idType:"term",eventType:7573},Interest:{impressionType:"topicImpressions",idType:"topicIdStr",eventType:3703},News:{impressionType:"newsHubData",idType:"newsIdStr",eventType:4110},OneBar:{impressionType:"oneBarImpressions",idType:"onebarIdStr",eventType:9993},Pin:{impressionType:"pinImpressions",idType:"pinIdStr",eventType:18},Search:{impressionType:"searchImpressions",idType:"term",eventType:3803},Story:{impressionType:"storyImpression",idType:"idStr",eventType:170},TodayArticle:{impressionType:"todayArticleImpressions",idType:"todayArticleIdStr",eventType:8569},User:{impressionType:"userImpressions",idType:"userIdStr",eventType:3704},AdsPreview:{impressionType:"AdsPreviewImpression",idType:"AdsPreviewStr",eventType:8600}};function o({carouselData:e,closeupImpressionType:t,closeupNavigationType:n,componentType:o,contextLogData:s,clientTrackingParams:d,elementType:u,impressionAuxFields:c,inImpressionExp:p,impressionType:m,impressionsFramework:h,isPaused:_,loggingId:g,objectIdStr:y,slotIndex:v,trackCarousel:f,viewData:b,viewParameter:x,viewType:k}){let{logContextEvent:P}=(0,l.v)(),S=h||a.Z,w=(0,i.useRef)(null),A=i=>{var l,a,p,h,_,S,A;let T=r[m],I=T.idType,E={clientTrackingParams:d,endTime:i.endTime,[I]:g,slotIndex:v,time:i.startTime,renderDuration:i.endTime-i.startTime,type:t,...c,forcedExit:"removed"===i.forcedExit?0:void 0};"Pin"===m&&(E={...E,pinCellWidth:(null===(l=w.current)||void 0===l?void 0:l.getBoundingClientRect().width)||0,pinCellHeight:(null===(a=w.current)||void 0===a?void 0:a.getBoundingClientRect().height)||0,windowWidth:null===(p=window)||void 0===p?void 0:p.innerWidth,windowHeight:null===(h=window)||void 0===h?void 0:h.innerHeight});let C={component:o,object_id_str:y,view_type:k,view_data:b||{},view_parameter:x};f?e&&P({event_type:7352,event_data:{pinCarouselSlotImpressions:[{...E,carouselDataId:Number(e.id),carouselSlotId:(null===(_=e.carousel_slots)||void 0===_?void 0:_[null!==(S=e.index)&&void 0!==S?S:0])&&Number(e.carousel_slots[null!==(A=e.index)&&void 0!==A?A:0].id),slotIndex:e.index}]},...C,aux_data:{...s}}):P({clientTrackingParams:d,event_type:T.eventType,...C,element:u,event_data:{[T.impressionType]:"Story"===m?E:[E]},aux_data:{closeup_navigation_type:n,...s}})},T=(0,i.useCallback)(()=>{try{w.current instanceof HTMLElement&&S.start(w.current).onExitViewport(A).setDebugId(g||"unknown")}catch(e){window.console.error('Can only track impressions for type "HTMLElement"')}},[w.current]);(0,i.useEffect)(()=>(p&&!S.inExperiment&&S.setExperimentStatus(!0),_||T(),()=>{w.current instanceof HTMLElement&&S.stop(w.current)}),[T]);let I=(0,i.useRef)(_);return(0,i.useEffect)(()=>{I.current&&!_&&T(),I.current=_},[_,T]),w}let s=({children:e,...t})=>e({impressionTrackerRef:o(t)})},12610:(e,t,n)=>{"use strict";function i(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z3:()=>c,LU:()=>p,ZP:()=>m});let l=window.location.search.includes("debug_impressions=1")||document.cookie&&document.cookie.indexOf("debug_impressions=1")>-1,a={paused:"Pause",resumed:"Resume",stopped:"Flush",enter:"Enter viewport",exit:"Exit viewport"},r={},o={background:"#FF8A8A",transform:"scale(.98)"},s={init:e=>({transform:`scale(${r[e]?.8:.99})`,transition:"transform .2s ease-in-out",background:"#8E8E8E"}),[a.enter]:{background:"#A0DCC8",transform:"scale(.99)"},[a.exit]:o,[a.stopped]:o,[a.paused]:o,[a.resumed]:{background:"#0FA573",transform:"scale(.99)"}};class d{constructor(e){i(this,"setMutationObserver",e=>(this.mutationObserver=e,this)),i(this,"startMutationObserver",e=>{this.mutationObserver&&this.mutationObserver.observe(this.node,e)}),i(this,"stopMutationObserver",()=>{this.mutationObserver&&this.mutationObserver.disconnect()}),i(this,"handleIntersectionChange",e=>{let t=e.intersectionRatio>0||e.isIntersecting;if(t&&!this.inViewport){let e=Date.now();this.startTime=e,this._debug(a.enter,{startTime:e,node:this.node}),this.enterCallbacks.forEach(e=>e())}else!t&&this.inViewport&&(this._debug(a.exit,!0),this.exitCallbacks.forEach(e=>e(this.toJSON())));this.inViewport=t}),this.enterCallbacks=[],this.exitCallbacks=[],this.inViewport=!1,this.node=e,this.startTime=0,this.debugId=""}onEnterViewport(e){return this.enterCallbacks.push(e),this}onExitViewport(e){return this.exitCallbacks.push(e),this}setDebugId(e){return this.debugId=e,l&&Object.assign(this.node.style,s.init(e)),this}pause(){return this.inViewport&&(this._debug(a.paused,!0),this.exitCallbacks.forEach(e=>e(this.toJSON()))),this}resume(){if(this.inViewport){let e=Date.now();this._debug(a.resumed,{startTime:e}),this.startTime=e}return this}stop(e){return this.inViewport&&(this._debug(a.stopped,!0),this.exitCallbacks.forEach(t=>t(this.toJSON(e)))),this}toJSON(e=""){return{startTime:1e6*this.startTime,endTime:1e6*Date.now(),forcedExit:e}}toDebugJSON(){return{pinID:this.debugId,startTime:this.startTime,endTime:Date.now(),duration:`${(Date.now()-this.startTime)/1e3} seconds`}}_debug(e,t){if(l)switch(window.console.log(`📌 ${e} -- ${this.debugId}`),!0===t&&window.console.log(this.toDebugJSON()),"object"==typeof t&&window.console.log(t),s[e]&&Object.assign(this.node.style,s[e]),e){case a.flushed:case a.paused:case a.exit:r[this.debugId]=!0}}}function u(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let c=!0,p=!1;class m{constructor(){u(this,"_delegateChange",e=>{e.forEach(e=>{let t=this.activeImpressions.get(e.target);t&&t.handleIntersectionChange(e)})}),u(this,"_handleMutations",(e,t)=>{let n=this.mutationObservers.get(t),i=n&&n.offsetHeight<1;i&&n&&this.stop(n,"removed")}),this.activeImpressions=new Map,this.mutationObservers=new Map,this.bottomHeight=0,this.bottomObstructions=new Set,this.pausePriority=p,this.observer=new window.IntersectionObserver(this._delegateChange),window.Cypress&&!window.activeImpressions&&(window.activeImpressions=new Map),this.paused=!1,this.topHeight=0,this.topObstructions=new Set,this.inExperiment=!1}setExperimentStatus(e){this.inExperiment!==e&&(this.inExperiment=e)}stop(e,t=""){let n=this.activeImpressions.get(e);if(n){var i;n.stop(t),this.mutationObservers.delete(n.mutationObserver),n.stopMutationObserver(),this.activeImpressions.delete(e),null===(i=window.activeImpressions)||void 0===i||i.delete(e),this.observer.unobserve(e)}}start(e){let t=this.activeImpressions.get(e);if(!t){var n;t=new d(e),this.activeImpressions.set(e,t),null===(n=window.activeImpressions)||void 0===n||n.set(e,t),this.observer.observe(e),t.setMutationObserver(new window.MutationObserver((e,t)=>this._handleMutations(e,t))),this.mutationObservers.set(t.mutationObserver,e),t.startMutationObserver({subtree:!0,attributes:!0,attributeFilter:["style"]})}return t}pause(e=c){this.paused||(Array.from(this.activeImpressions.values()).forEach(e=>e.pause()),this.paused=!0,this.pausePriority!==p||(this.pausePriority=e))}resume(e=c){(e!==p||this.pausePriority!==c)&&this.paused&&(Array.from(this.activeImpressions.values()).forEach(e=>e.resume()),this.paused=!1,this.pausePriority=p)}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(){let e=Array.from(this.topObstructions).reduce((e,t)=>{let{bottom:n}=t.getBoundingClientRect();return n>e?n:e},0),t=window.innerHeight-Array.from(this.bottomObstructions).reduce((e,t)=>{let{top:n}=t.getBoundingClientRect();return n<e?n:e},window.innerHeight);if(e!==this.topHeight||t!==this.bottomHeight){let 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)=>{"use strict";n.d(t,{Z:()=>l});var i=n(12610);let l=new i.ZP},349700:(e,t,n)=>{"use strict";n.d(t,{Wc:()=>s,bF:()=>u,nk:()=>o,r7:()=>c});var i=n(667294),l=n(785893);function a(e,t,n){return e.split(n).map(e=>{if(e.match(n)){let n=e.replace(/[\{\}]/g,"").trim();if(Object.prototype.hasOwnProperty.call(t,n))return t[n]}return e})}let r=/(\{\{\s*\w+\s*\}\})/g;function o(e,t){return a(e,t,r)}function s(e,t){return a(e,t,r).join("")}let d=/(\{\s*\w+\s*\})/g;function u(e,t){return a(e,t,d)}let c=({text:e})=>Array.isArray(e)?e.map((e,t)=>(0,l.jsx)(i.Fragment,{children:e},t)):e},543972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(667294);function l(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class a extends i.Component{constructor(...e){super(...e),l(this,"ref",(0,i.createRef)()),l(this,"observer",null),l(this,"handleVisibilityChanged",(e,t)=>{this.props.onVisibilityChange(e,t)})}componentDidMount(){this.ref&&this.ref.current&&(this.observer=new window.IntersectionObserver(this.handleVisibilityChanged,this.props.options),this.observer.observe(this.ref.current))}componentWillUnmount(){null!==this.observer&&(this.observer.unobserve(this.ref.current),delete this.observer)}render(){return this.props.children(this.ref)}}let r=a},507712:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(186656),l=n(826067);let a=(e=()=>{})=>{let t=(0,l.mB)(window.location.search),{invite_code:n}=t;if(!n){e(t);return}let a=encodeURIComponent(n),r=encodeURIComponent(a);(0,i.Z)({url:"/v3/invite_code/attribution/land/",method:"POST",data:{invite_code:r}})}},496793:(e,t,n)=>{"use strict";n.d(t,{U:()=>y});var i=n(67347);let l="nic_v3",a=`${l}=1a`,r=`${l}=1b`,o=[a,r],s=["invite_code","invite","board_invite_code","sender"],d=e=>!!s.find(t=>e.includes(t)),u=e=>!!o.find(t=>e.includes(t)),c=e=>e.pathname.includes("/pin/")&&!d(e.search)&&!u(e.search),p=e=>e.includes("sender"),m=e=>!d(e)&&!p(e)&&e.includes(l),h=(e,t,n)=>{let i=e.search?"&":"?",l=e.pathname+e.search+(i+(n?r:a)+t);return l},_=(e,t,n=!1,a)=>{if(!c(e))return;let r=n?"mweb":"web";if(!t){(0,i.nP)(`${r}.${l}.social_tracking_pin_non_invite.insert.no_encrypted_id`);return}(0,i.nP)(`${r}.${l}.social_tracking_pin_non_invite.insert.attempt`);try{let o=h(e,t,n);(0,i.nP)(`${r}.${l}.social_tracking_pin_non_invite.insert.success`),a(o)}catch(e){(0,i.nP)(`${r}.${l}.social_tracking_pin_non_invite.insert.caught_exception`)}},g=(e,t,n=!1,i)=>_(e,"",n,i),y=(e,t,n,a,r)=>{let o=n?"mweb":"web";(0,i.nP)(`${o}.${l}.social_tracking_pin_non_invite.attempt`);try{!n&&a&&c(e)?((0,i.nP)(`${o}.${l}.social_tracking_pin_non_invite.search_string_eligible`),g(e,t,n,r)):m(e.search)&&(0,i.nP)(`${o}.${l}.social_tracking_pin_non_invite.search_string_land`)}catch(e){(0,i.nP)(`${o}.${l}.social_tracking_pin_non_invite.caught_exception`)}}},995081:(e,t,n)=>{"use strict";n.d(t,{Rq:()=>a,Vf:()=>r,ab:()=>d,jd:()=>o,k8:()=>c,nw:()=>u,oy:()=>s});var i=n(231486),l=n(226198);let a=e=>"ios"===e&&(window.devicePixelRatio||1)*window.screen.height==2436,r=28,o=e=>window.innerHeight>=748&&a(e),s=function(){return"undefined"!=typeof window&&!!window.navigator&&(/iPad/.test(navigator.platform)||navigator.maxTouchPoints>1&&"MacIntel"===navigator.platform)},d=()=>{i.t8(l.oj,String(!0),(0,i.kZ)(l.oj))},u=()=>!!i.U2(l.oj),c=e=>{if(s()){let t=u();e.experimentsClient.flush(),t||(d(),"undefined"!=typeof window&&window.location.reload(!0))}}},926275:(e,t,n)=>{"use strict";function i(e){if(!e)return!1;let t=new Date(e);return t.setDate(t.getDate()+28),new Date().getTime()<t.getTime()}n.d(t,{Z:()=>i})},844753:(e,t,n)=>{"use strict";function i(e){return"object"==typeof e&&null!==e&&e.constructor===Object&&"[object Object]"===Object.prototype.toString.call(e)}n.d(t,{Z:()=>i})},411938:(e,t,n)=>{"use strict";function i(e,t,n=28){let i;if(!(e||{}).resurrection_info&&!(t||{}).resurrectionInfo)return!1;i=t?((t||{}).resurrectionInfo||{}).resurrectionDate:((e||{}).resurrection_info||{}).resurrection_dt;let l=new Date,a=i?new Date(i):l;return a.setDate(a.getDate()+n),new Date().getTime()<a.getTime()}n.d(t,{Z:()=>i})},755742:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,F5:116,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}},313047:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DEFAULT_HEIGHT:()=>p,DEFAULT_PADDING_Y:()=>m,FixedFooter:()=>g,FixedHeader:()=>_});var i=n(667294),l=n(883119),a=n(643010),r=n(579014),o=n(858472),s=n(124580),d=n(834256),u=n(773285),c=n(785893);let p=64,m=3;function h({children:e,footerConfig:t,headerConfig:n,height:d,hideOnScroll:h,hideOnScrollState:{isHidden:_,updateHiddenState:g},noPadding:y,paddingY:v=m,type:f,zIndex:b}){let x,k;let{headerLimitedOverflow:P,ignoreObstructions:S,zIndexForGestaltBug:w}=n||{},{appUpsellFooterConfig:A,footerInLego:T,navFooterConfig:I}=t||{},E=!!A,C="header"===f?"top":"bottom",{anyEnabled:D}=(0,u.F)().checkExperiment("hfp_hf_ssr_mweb",{dangerouslySkipActivation:!0}),j=(0,a.vs)(),F=D?j:(0,a.Yc)(),R=(0,i.useRef)(null),L=(0,i.useRef)(null);(0,i.useEffect)(()=>{try{if(!S){let e=R.current;L.current=P&&e&&Array.isArray(e.children)?e.children[0]:e,L.current instanceof HTMLElement&&s.Z.addObstruction(C,L.current)}}catch(e){window.console.error(e),window.console.error('Can only register impression obstructions for type "HTMLElement"')}return()=>{!S&&L.current instanceof HTMLElement&&s.Z.removeObstruction(C,L.current)}},[S,P,C,F]);let z="top"===C?"relative":"fixed",O=(null!=d?d:p)+((null==n?void 0:n.overrideTop)||0),M=h||I?{transition:T?"transform 300ms ease-in-out, opacity 300ms ease-in-out":"transform 200ms linear",..._?{transform:`translateY(${"top"===C?-O:O}px)`,opacity:T?0:1}:Object.freeze({})}:{},N="relative"!==z||null!=n&&n.noGutter?0:2,B=N?-N:0,Z=F?"rgba(0,0,0,.95)":"rgba(255,255,255,.95)";return F&&("header"===f?x=-1:k=-1),(0,c.jsx)(l.xu,{ref:R,dangerouslySetInlineStyle:{__style:{top:x,bottomStyle:k,...!b||w?{zIndex:w||1}:Object.freeze({}),...P?{background:"transparent",overflow:"hidden",paddingBottom:100,marginBottom:-100,pointerEvents:"none"}:Object.freeze({}),...null!=n&&n.hasBorder?{borderBottom:"1px solid #efefef"}:Object.freeze({}),...null!=t&&t.hasTopShadow?{boxShadow:"0 -2px 4px 1px rgba(0, 0, 0, 0.08)"}:Object.freeze({}),...M}},zIndex:w?void 0:b,"data-test-id":f,display:E?"flex":void 0,height:d&&!T?d:void 0,position:z,bottom:"footer"===f,top:"header"===f,left:!0,right:!0,marginStart:T?"auto":B,marginEnd:T?"auto":B,onTransitionEnd:()=>{(h||I)&&L.current&&(_?s.Z.removeObstruction(C,L.current):s.Z.addObstruction(C,L.current))},width:T||"fixed"!==z?void 0:"100%",children:(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:(null==n?void 0:n.isTranslucent)&&Z||(null==n?void 0:n.isTransparentBackground)&&o.FZ||r.wN,height:T?E?void 0:null!=d?d:p:"100%",boxShadow:T?"0px 0px 8px rgba(0, 0, 0, 0.1)":void 0,marginBottom:T&&!(null!=I&&I.docked)?16:void 0,...P?{pointerEvents:"auto"}:Object.freeze({}),...null!=n&&n.useRoundedCorners?{zIndex:5,borderTopRightRadius:17,borderTopLeftRadius:17,borderBottomRightRadius:0,borderBottomLeftRadius:0}:Object.freeze({})}},paddingX:("footer"!==f||y?0:4)+N,paddingY:y?0:v,position:"relative",width:I?I.footerWidth:E?void 0:"100%",rounding:T&&!(null!=I&&I.docked)?"pill":void 0,display:T||null!=t&&t.alignCenter?"flex":void 0,marginStart:T?"auto":void 0,marginEnd:T?"auto":void 0,alignItems:null!=t&&t.alignCenter?"center":void 0,children:"function"==typeof e?e({updateHiddenState:g}):e})})}function _({hasBorder:e,headerLimitedOverflow:t,ignoreObstructions:n,isTranslucent:i,isTransparentBackground:a,noGutter:r,overrideTop:o,useRoundedCorners:s,zIndexForGestaltBug:u,...p}){let{noPadding:_,paddingY:g=m,zIndex:y}=p;return(0,c.jsx)(l.Le,{top:o||0,height:t?44+8*(_?0:g):void 0,zIndex:y||void 0,children:(0,c.jsx)(d.Z,{hideOnScroll:p.hideOnScroll,children:l=>(0,c.jsx)(h,{...p,hideOnScrollState:l,type:"header",headerConfig:{isTranslucent:i,isTransparentBackground:a,headerLimitedOverflow:t,hasBorder:e,ignoreObstructions:n,noGutter:r,overrideTop:o,zIndexForGestaltBug:u,useRoundedCorners:s}})})})}function g({alignCenter:e,appUpsellFooterConfig:t,footerInLego:n,hasTopShadow:i,navFooterConfig:l,...a}){return(0,c.jsx)(d.Z,{appUpsellFooterConfig:t,hideOnScroll:a.hideOnScroll,navFooterConfig:null==l?void 0:l.scrollConfig,children:r=>(0,c.jsx)(h,{...a,hideOnScrollState:r,type:"footer",footerConfig:{alignCenter:e,appUpsellFooterConfig:t,footerInLego:n,hasTopShadow:i,navFooterConfig:l}})})}},834256:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o,m:()=>r});var i=n(667294),l=n(700380);function a(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let r=20;class o extends i.Component{constructor(...e){var t;super(...e),a(this,"state",{isHidden:!!this.props.appUpsellFooterConfig||!!(null!==(t=this.props.navFooterConfig)&&void 0!==t&&t.isDockedNavOnPlp)}),a(this,"lastScrollPos",0),a(this,"updateHiddenState",e=>{this.reqAnimationId=window.requestAnimationFrame(()=>{this.setState({isHidden:e})})}),a(this,"handleScroll",(0,l.Z)(()=>{var e;let{appUpsellFooterConfig:t,navFooterConfig:n}=this.props,{isHidden:i}=this.state,l=window.scrollY,a=l-this.lastScrollPos,o="none",{scrollHeight:s,clientHeight:d}=document.documentElement||{};if(!Number.isNaN(s)&&!Number.isNaN(d)){if(a<0){let e=window.scrollMinY||0,t=Math.abs(e+Math.max(a,r));o=l<=t?"start":"none"}else{let e=window.scrollMaxY||s-d,t=e-Math.max(a,r);o=l>=t?"end":"none"}}let u=null!=n&&n.isModal?0:55;if(t){if(a>r&&i&&l>=500){let e=t.shouldShowAfterScroll();e&&(this.updateHiddenState(!1),null==n||n.onScroll(!1))}else(a<-r&&!i||l<=u)&&(this.updateHiddenState(!0),null==n||n.onScroll(!0))}else null!==(e=this.props.navFooterConfig)&&void 0!==e&&e.isDockedNavOnPlp?"start"===o&&!i||l<=u?(this.updateHiddenState(!0),null==n||n.onScroll(!0)):(l>u||"end"===o)&&i&&(this.updateHiddenState(!1),null==n||n.onScroll(!1)):(a<-r||"start"===o)&&i||l<=u?(this.updateHiddenState(!1),null==n||n.onScroll(!1)):(a>r||"end"===o)&&!i&&(this.updateHiddenState(!0),null==n||n.onScroll(!0));this.lastScrollPos=l},30))}componentDidMount(){try{var e;(this.props.hideOnScroll||null!==(e=this.props.navFooterConfig)&&void 0!==e&&e.isDockedNavOnPlp)&&window.addEventListener("scroll",this.handleScroll)}catch(e){window.console.error(e),window.console.error('Can only register impression obstructions for type "HTMLElement"')}}componentWillUnmount(){var e;(this.props.hideOnScroll||null!==(e=this.props.navFooterConfig)&&void 0!==e&&e.isDockedNavOnPlp)&&window.removeEventListener("scroll",this.handleScroll),this.reqAnimationId&&(window.cancelAnimationFrame(this.reqAnimationId),this.reqAnimationId=null)}componentDidUpdate(e){var t,n,i,l;!e.hideOnScroll&&this.props.hideOnScroll||!(null!==(t=e.navFooterConfig)&&void 0!==t&&t.isDockedNavOnPlp)&&null!==(n=this.props.navFooterConfig)&&void 0!==n&&n.isDockedNavOnPlp?(this.updateHiddenState(!0),window.addEventListener("scroll",this.handleScroll)):(e.hideOnScroll&&!this.props.hideOnScroll||null!==(i=e.navFooterConfig)&&void 0!==i&&i.isDockedNavOnPlp&&!(null!==(l=this.props.navFooterConfig)&&void 0!==l&&l.isDockedNavOnPlp))&&(this.updateHiddenState(!1),window.removeEventListener("scroll",this.handleScroll))}render(){let{children:e,navFooterConfig:t}=this.props,{isHidden:n}=this.state,i=!(null!=t&&t.forceShow)&&n;return e({isHidden:i,updateHiddenState:this.updateHiddenState})}}},166300:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(883119),l=n(444445),a=n(134879),r=n(50286),o=n(785893);let s=({children:e,roundedForLargeDevice:t})=>{let n=(0,r.ZP)(),s="phone"!==n&&t;return(0,a.V)()?(0,o.jsx)(i.xu,{marginStart:-l.D6,marginEnd:-l.D6,rounding:s?6:void 0,overflow:s?"hidden":void 0,children:(0,o.jsx)(a.C,{value:!1,children:e})}):e}},542554:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(883119),l=n(444445),a=n(995081),r=n(134879),o=n(780280),s=n(785893);let d=({children:e,dataLayoutShiftBoundaryId:t,hasFixedHeader:n=!1,hasGutter:d=!0,height:u,showKeychainError:c=!1,useViewport:p=!1})=>{let m=(0,o.B)(),h=(0,a.jd)(m.userAgent.platform)?a.Vf:0;return(0,s.jsx)(i.xu,{"data-layout-shift-boundary-id":t||"PageContainer",height:p?`calc(100vh - ${h}px)`:u,paddingX:d?l.D6:void 0,paddingY:n||c?void 0:3,children:(0,s.jsx)(r.C,{value:!!d,children:e})})}},134879:(e,t,n)=>{"use strict";n.d(t,{C:()=>a,V:()=>r});var i=n(667294);let l=(0,i.createContext)(!1),a=l.Provider,r=()=>(0,i.useContext)(l)},48714:(e,t,n)=>{"use strict";n.d(t,{Se:()=>y,iw:()=>f,gV:()=>_,G3:()=>b,Gj:()=>v,Jd:()=>h,$3:()=>g});var i=n(56641),l=n(231486),a=n(226198),r=n(186656),o=n(250059);let s=e=>"string"!=typeof e&&e?e.state:null;var d=n(643913),u=n(547239),c=n(508847),p=n(579164),m=n(333155);let h=()=>{window&&window.focus(),document.activeElement&&document.activeElement.blur()},_=({isOffsiteUrl:e,event:t})=>!e&&(t.metaKey||t.ctrlKey),g=({location:e,pinId:t,surface:n})=>!!n&&!m.ZF.includes(n)||e.pathname.includes(t),y=(e,t)=>{var n,i;let r=Math.round(1e3*Math.random())+"",o=Math.round(1e3*Math.random())+"";l.t8((0,a.GS)(r),o);let s={token:`${r}-${o}`,url:e,...t&&!t.params?t.queryParams:(null==t?void 0:t.params)&&{pin:null!==(n=t.params.pinId)&&void 0!==n?n:void 0,isThirdPartyAd:null!==(i=t.params.isThirdPartyAd)&&void 0!==i?i:void 0,csr:t.params.csrId&&!t.params.pinId?t.params.csrId:void 0,client_tracking_params:t.params.clientTrackingParams,aux_data:t.params.auxData?JSON.stringify(t.params.auxData):void 0}};return`/offsite/?${(0,d.Z)(s)}`},v=(e,t)=>{(0,i.Z)(y(e,t),!0,null==t?void 0:t.features)},f=async({clientTrackingParams:e,href:t,isMounted:n,pinId:i,spamCheckCallback:l})=>{let a=await (0,r.Z)({url:"/v3/offsite/",data:{check_only:!0,client_tracking_params:e,pin_id:i,url:t}});if(!a.resource_response.error&&n){let e=a.resource_response.data||{},{message:t,redirect_status:n,url:i}=e,r=["blocked","suspicious","porn"].includes(n);l({blocked:r,message:t,redirectStatus:n,sanitized_url:i})}},b=({event:e,onHistoryChange:t,href:n,history:l,target:a})=>{let r=(0,o.Z)(n),d=s(n),m=(0,u.Z)(r);m===p.Z.TRUSTED_DIFFERENT_ORIGIN||"blank"===a?(0,i.Z)(r,"blank"===a):l&&m===p.Z.SAME_ORIGIN&&(l.push((0,c.Z)({url:r}),null!=d?d:{}),t&&t({event:e}))}},287072:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(667294),l=n(616550),a=n(768559),r=n(48714),o=n(188335),s=n(250059),d=n(149230),u=n(108234),c=n(67347);function p(e){var t,n,p;let{externalData:m,href:h,onHistoryChange:_,target:g}=e,[y,v]=(0,i.useState)(null),[f,b]=(0,i.useState)(!1),x=(0,l.useHistory)(),k=(0,l.useLocation)(),P=(0,s.Z)(h),S=(0,d.Z)({url:P}),{showWarning:w}=null!==(t=(0,u.s)())&&void 0!==t?t:{},{pin:A,surface:T}=m||{},I=A?(0,a.Z)({boardUrl:null===(n=A.board)||void 0===n?void 0:n.url,location:k,pinId:A.entityId,pinnerUserName:null===(p=A.pinner)||void 0===p?void 0:p.username,storyPinDataId:A.storyPinDataId,trackingParams:A.trackingParams,trackingParamsMap:A.trackingParamsMap}):null,E=(0,o.Z)();return(0,i.useEffect)(()=>(b(!0),()=>{b(!1)}),[]),(0,i.useEffect)(()=>{S&&A&&null===y&&f&&(!A.promoter||A.isDownstreamPromotion)&&(0,r.$3)({location:k,pinId:A.entityId,surface:T})&&(0,r.iw)({clientTrackingParams:I,isMounted:f,pinId:A.entityId,spamCheckCallback:e=>v(e),href:P})},[I,A,T,P,S,f,k,y]),({event:e})=>{if(!(0,r.gV)({isOffsiteUrl:S,event:e})){if(e.preventDefault(),!h||"string"==typeof h&&h.startsWith("#")){(0,c.nP)("link_navigation_empty_href",{sampleRate:1,tags:{route:k.pathname,href:h}});return}if(S||null!=m&&m.dangerouslyForceOffsiteUrl){var t;E({auxData:null==m?void 0:m.auxData,clientTrackingParams:I,pin:(null==m?void 0:m.pin)&&{attributionSourceId:m.pin.attributionSourceId,campaignId:m.pin.campaignId,isPromoted:m.pin.isPromoted,pinPromotionId:m.pin.pinPromotionId,isThirdPartyAd:m.pin.isThirdPartyAd,advertiserId:m.pin.advertiserId},pinId:null==m?void 0:null===(t=m.pin)||void 0===t?void 0:t.entityId,queryParams:null==m?void 0:m.queryParams,showWarning:w,spamCheck:y,url:P})}else(0,r.G3)({event:e,href:h,history:x,onHistoryChange:_,target:"blank"===g?"blank":null})}}}},188335:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var i=n(983722),l=n(619937),a=n(337815),r=n(366284),o=n(407043),s=n(48714),d=n(43760);let u=(e,t,n)=>{let 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",i.setAttribute(l.$N.ATTRIBUTION_SOURCE_ID,e),i.setAttribute(l.$N.ATTRIBUTE_DESTINATION,n),i.setAttribute(l.$N.ATTRIBUTE_ON,n),i.click()},c=(e,t,n,i,r)=>{let o=(0,a.m_)(e,n,!0,i,r),s=document.createElement("a");s.setAttribute("href",t),s.setAttribute("target","_blank"),s.setAttribute("rel","noopener nofollow noreferrer"),s.style.cursor="pointer",s.style.display="block",s.setAttribute(l.NR.SOURCE,o),s.click()},p=()=>{let{logContextEvent:e}=(0,o.v)();return({attributionSourceId:t,auxData:n,campaignId:l,clientTrackingParams:a,href:o,isPromoted:d,pinId:p,pinPromotionId:m,isThirdPartyAd:h,advertiserId:_})=>{var g,y,v;if(!d)return!1;let f=(0,i.Z)(),b=(0,s.Se)(o,{params:{pinId:p,csrId:null,clientTrackingParams:a,auxData:n,isThirdPartyAd:h}}),x=null!==(g=null==f?void 0:f.userAgent.browserName)&&void 0!==g?g:"";if((0,r.G6)(x)){let{group:n}=null!==(y=null==f?void 0:f.experimentsClient.checkExperiment("m10n_event_conversion_measurement"))&&void 0!==y?y:{},i=null!=f&&f.userAgent.browserVersion?f.userAgent.browserVersion:"0.0",r=parseFloat(i.split(".")[0]+"."+i.split(".")[1]);if(t&&r>=14.1&&["enabled_safari"].includes(n))return u(t,b,o),e({event_type:101,clientTrackingParams:a,object_id_str:p||"",aux_data:{pin_id:p||"",click_measurement_ppid:m||"",click_measurement_campaign_id:l||"",is_pcm:!0,attribution_source_id:t,page_url:o}}),!0}else if((0,r.i7)(x)&&null!==(v=window.document.featurePolicy)&&void 0!==v&&v.allowsFeature("attribution-reporting"))return c(t,b,o,l,_),e({event_type:101,clientTrackingParams:a,object_id_str:p||"",aux_data:{pin_id:p||"",click_measurement_ppid:m||"",click_measurement_campaign_id:l||"",is_arapi:!0,attribution_source_id:t,page_url:o}}),!0;return!1}},m=e=>{let t=p();return({auxData:n,clientTrackingParams:i,pin:l,pinId:a,queryParams:r,showWarning:o,spamCheck:u,url:c})=>{if("undefined"!=typeof window&&window.Windows){(0,d.Z)(c,{clientTrackingParams:i,pinId:a,hasPin:!!l,auxData:n,isThirdPartyAd:null==l?void 0:l.isThirdPartyAd});return}if(!l&&!(null!=e&&e.isFromClickthroughLink)){(0,s.Gj)(c,r?{queryParams:r}:{params:{pinId:a}});return}if(null!=u&&u.blocked){null==o||o(u);return}l&&t({attributionSourceId:l.attributionSourceId,auxData:n,campaignId:l.campaignId?String(l.campaignId):null,clientTrackingParams:i,href:c,isPromoted:l.isPromoted,pinId:a,pinPromotionId:l.pinPromotionId?String(l.pinPromotionId):null,isThirdPartyAd:l.isThirdPartyAd,advertiserId:l.advertiserId?l.advertiserId:null})||(0,s.Gj)(c,{params:{clientTrackingParams:i,auxData:n,pinId:a,isThirdPartyAd:null==l?void 0:l.isThirdPartyAd}})}}},713930:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(67347);function l(e,t){return new Promise((n,l)=>{if(document.querySelector(`script[src="${e}"]`)){let e=0;if("FACEBOOK"===t){if(window.FB)n();else{let t=setInterval(()=>{window.FB||20===e?(clearInterval(t),n()):(e+=1,(0,i.nP)(`mweb.loadScript.facebook.tries_${e}`,{sampleRate:.01}))},100)}}else if("GSI"===t){if(window.google)n();else{let t=setInterval(()=>{window.google||20===e?(clearInterval(t),n()):(e+=1,(0,i.nP)(`mweb.loadScript.gsi.tries_${e}`,{sampleRate:.01}))},100)}}else n()}else{let t=document.createElement("script");t.src=e,t.async=!0,t.addEventListener("load",()=>n()),t.addEventListener("error",l),document.getElementsByTagName("head")[0].appendChild(t)}})}},249647:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(844753);function l(e,t=!1){let n=(t,n)=>e(n);return e=>(function e(t,n=!1){return l=>{if(!(0,i.Z)(l))return n&&Array.isArray(l)?l.map(e(t,n)):l;let a={};return Object.keys(l).forEach(r=>{let o=t(l[r],r);(0,i.Z)(l[r])||n&&Array.isArray(l[r])?a[o]=e(t,n)(l[r]):a[o]=l[r]}),a}})(n,t)(e)}},767546:(e,t,n)=>{"use strict";n.d(t,{Z:()=>function e(t,n,i=()=>void 0){let l=i(t,n);return void 0!==l?l:void 0===n?t:Array.isArray(t)&&Array.isArray(n)?n.reduce((t,l,a)=>(t[a]=e(t[a],n[a],i),t),[...t]):t&&"object"==typeof t&&n&&"object"==typeof n?Object.keys(n).reduce((t,l)=>(t[l]=e(t[l],n[l],i),t),{...t}):n}})},567450:(e,t,n)=>{"use strict";function i(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r});let l=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}},a=e=>{if(e.isHidden){let{reason:t}=e;l.windowInFocus=!1,l.onPauseListeners.forEach(e=>e(t))}else l.windowInFocus=!0,l.onResumeListeners.forEach(e=>e())};setTimeout(()=>{window.addEventListener("beforeunload",()=>a({isHidden:!0,reason:"beforeunload"})),window.addEventListener("focus",()=>a({isHidden:!1})),window.addEventListener("blur",()=>a({isHidden:!0,reason:"blur"})),window.addEventListener("pageshow",()=>a({isHidden:!1})),window.addEventListener("pagehide",()=>a({isHidden:!0,reason:"pagehide"})),void 0!==document.hidden?document.addEventListener("visibilitychange",()=>a(document.hidden?{isHidden:!0,reason:"visibilitychange"}:{isHidden:!1}),!1):void 0!==document.webkitHidden&&document.addEventListener("webkitvisibilitychange",()=>a(document.webkitHidden?{isHidden:!0,reason:"visibilitychange"}:{isHidden:!1}),!1)},0);let r=l},55275:(e,t,n)=>{"use strict";n.d(t,{P:()=>_,t:()=>g});var i=n(214494),l=n(186656);let a=()=>{};async function r({board_id:e},t,n){await (0,l.Z)({url:`/v3/boards/${e}/follow/`,method:"DELETE"}),n({event_type:27,object_id_str:e}),t()}async function o({board_id:e},t,n){await (0,l.Z)({url:`/v3/boards/${e}/follow/`,method:"POST"}),n({event_type:26,object_id_str:e}),t()}async function s(e,t){let n=i.Z.create("UserFollowResource",e);await n.callDelete(),t()}async function d(e,t){let n=i.Z.create("UserFollowResource",e);await n.callCreate(),t()}async function u(e,t,n){let l=i.Z.create("InterestFollowResource",e);await l.callDelete(),t(),n({event_type:602,object_id_str:e.interest_id})}async function c(e,t,n){let l=i.Z.create("InterestFollowResource",e);await l.callCreate(),t(),n({event_type:601,object_id_str:e.interest_id})}async function p(e,t){let n=i.Z.create("PinFeedbackResource",e);await n.callUpdate(),t()}async function m(e,t){let n=i.Z.create("PinFeedbackResource",e);await n.callUpdate(),t()}let h={complaint:p,followBoard:o,followPinner:d,followTopic:c,newsHubPinHide:function(e,t){let n=(0,l.Z)({url:e.undo?`/v3/news_hub/${e.newsId}/pin/${e.pinId}/undo/`:`/v3/news_hub/${e.newsId}/pin/${e.pinId}/hide/`,method:"PUT"});n.then(()=>t()),p({feedback_type:1,pin_id:e.pinId,...e},t)},promotedComplaint:m,relatedPinHide:function(e,t){let n=(0,l.Z)({url:e.undo?`/v3/p2p/${e.pin}/unhide/`:`/v3/p2p/${e.pin}/hide/`,method:"PUT"});n.then(()=>t()),p({feedback_type:1,pin_id:e.pin,...e},t)},reportPin:function(e,t){t()},showAdReasons:function(e,t){t()},unfollowBoard:r,unfollowPinner:s,unfollowTopic:u,unrelatedSearchPin:function(e,t){let n=(0,l.Z)({url:e.undo?`/v3/search/${e.pin_id}/unhide/`:`/v3/search/${e.pin_id}/hide/`,method:"PUT",data:{query:e.query,pin_type:e.pin_type}});n.then(()=>t()),p({feedback_type:1,...e},t)}},_=["complaint","relatedPinHide","unrelatedSearchPin","promotedComplaint","newsHubPinHide","unfollowBoard","unfollowPinner","unfollowTopic"];function g(e,t,n=a,i){let l=e?h[e]:null;return l?l(t,n,i):n()}},680046:(e,t,n)=>{"use strict";n.d(t,{EF:()=>p,Iv:()=>d,Ud:()=>s,hP:()=>o,nb:()=>c,oK:()=>u});var i=n(349700),l=n(55275),a=n(760372);let r=e=>e.length>32?`${e.substring(0,32).trim()}...`:e;function o({boardFollowedByMe:e,feedbackType:t,viewParameter:n,promotion:i,recommendationReason:l,pinnerFollowedByMe:a}){if(i&&!i.isDownstreamPromotion)return"promoted";if(t)return t;if(l){if("FOLLOWED_INTEREST"===l.reason)return"topic";if("FOLLOWING_FEED"!==l.reason&&"RECENT_FOLLOWED_BOARD"!==l.reason)return l.hasBoard?"pfyBoard":"pfy"}if(e||a)return"followed";switch(n){case 140:case 144:case 141:case 145:case 139:case 3173:return"related";case 3082:return"newsHub";default:return"default"}}function s({feedback:e,i18n:t,makeNavigateLink:n}){var l,a,o,s,d,u,c,p;switch(e.type){case"pfy":return t._('This Pin was inspired by your recent activity', 'Pin feedback reason', 'Pin feedback reason');case"pfyBoard":let{recommendationReasonBoard:m}=e;return m?(0,i.nk)(t._('This Pin was inspired by your board {{ boardLink }}', 'Pin feedback - inspired by your board', 'Pin feedback - inspired by your board'),{boardLink:n("navigation",m.url,m.name)}):null;case"topic":let{sourceInterest:h}=e;return h?(0,i.nk)(t._('This Pin was inspired by {{ formattedTopic }}', 'Pin feedback', 'Pin feedback'),{formattedTopic:n("topicUrl",`/topics/${h.url_name}`,h.name)}):null;case"followed":let{followed:_}=e,g="pinner"===_.type?(0,i.nk)(t._('This Pin is from {{ formattedPinner }}, a profile you follow', 'Pin feedback', 'Pin feedback'),{formattedPinner:n("pinnerUrl",`/${null!==(l=null===(a=_.pinner)||void 0===a?void 0:a.username)&&void 0!==l?l:""}`,r(null!==(o=null===(s=_.pinner)||void 0===s?void 0:s.full_name)&&void 0!==o?o:""))}):(0,i.nk)(t._('This Pin is from {{ formattedBoard }}, a board you follow', 'Pin feedback', 'Pin feedback'),{formattedBoard:n("boardUrl",null!==(d=null===(u=_.board)||void 0===u?void 0:u.url)&&void 0!==d?d:"",r(null!==(c=null===(p=_.board)||void 0===p?void 0:p.name)&&void 0!==c?c:""))});return g;case"promoted":let{promotedIsPersonalized:y,isEligibleForPromotedPartnership:v,promotedPartnershipAttributionName:f,promotedPartnershipAdvertiserName:b}=e.thirdPartyAdAttributes||{};if(!y&&v)return(0,i.nk)(t._('{{ promotedPartnershipAdvertiserName }} paid, through a partnership with {{ promotedPartnershipAttributionName }}, to have this Pin show up where you\'d be more likely to notice it', 'feedbackHelpers.getRecommendationDescription.promoted.thirdParty', 'Recommendation description for ads with promoted partnership. promotedPartnershipAdvertiserName:Name of advertiser, promotedPartnershipAttributionName:Name of promoted partner'),{promotedPartnershipAdvertiserName:b,promotedPartnershipAttributionName:f});if(!e.promoter||y)return t._('This ad was personalized for you using info from one of our partners', 'Pin feedback', 'Pin feedback');{let{full_name:l,username:a}=e.promoter,r=n("promotedLink",a?"/"+a+"/":"/",l);return(0,i.nk)(t._('{{ promoterLink }} paid to have this Pin show up where you\u2019d be more likely to notice it', 'Pin feedback', 'Pin feedback'),{promoterLink:r})}default:return null}}function d({sourceInterest:e,i18n:t,makeNavigateLink:n}){var l,r;return{action:"unfollowTopic",actionOptions:{interest_id:e.id,interest_list:a.X},title:"",subTitle:(0,i.nk)(t._('We\u2019ll show you less Pins from {{ formattedTopic }} in the future.', 'pin.contextualMenu.feedback.unfollowTopic.subtitle', 'Confirmation text after unfollowing a topic'),{formattedTopic:n("topicUrl",`/topics/${null!==(l=e.url_name)&&void 0!==l?l:""}`,null!==(r=e.name)&&void 0!==r?r:"",!0)})}}function u({boardId:e,display:t,i18n:n,makeNavigateLink:l}){var a,r,o,s;return{action:"unfollowBoard",actionOptions:{board_id:e},title:"",subTitle:"pinner"===t.type?(0,i.nk)(n._('You unfollowed {{ formattedPinner }} and won\u2019t see Pins they save anymore.', 'Confirmation text after unfollowing a user', 'Confirmation text after unfollowing a user'),{formattedPinner:l("pinnerUrl",`/${null!==(a=t.data.username)&&void 0!==a?a:""}`,null!==(r=t.data.full_name)&&void 0!==r?r:"",!0)}):(0,i.nk)(n._('You unfollowed the board {{ formattedBoard }} and won\u2019t see Pins saved to it anymore.', 'Confirmation text after unfollowing a board', 'Confirmation text after unfollowing a board'),{formattedBoard:l("boardUrl",null!==(o=t.data.url)&&void 0!==o?o:"",null!==(s=t.data.name)&&void 0!==s?s:"",!0)})}}function c(e){switch(e){case"promoted":return 60;case"followed":case"topic":return 100;case"pfyBoard":case"pfy":return 58}}function p(e,t,n,i,a,r,o){return()=>{let s={...e,undo:!0},d=t;"unfollowPinner"===t?d="followPinner":"unfollowBoard"===t?d="followBoard":"unfollowTopic"===t&&(d="followTopic"),(0,l.t)(d,s,void 0,o),r(n),o({event_type:101,component:0,element:11181,view_type:i,view_parameter:a})}}},915446:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});let i={REPIN_BOARD:1,USER_ACTIVITY:4,CLICKTHROUGH:9,FRESH_REPIN_BOARD:47,FRESH_CLICKTHROUGH:48,FRESH_USER_ACTIVITY:49,LOCAL_REPIN_BOARD:13,LOCAL_CLICKTHROUGH:32,LOCAL_USER_ACTIVITY:33,P2P_CLICKTHROUGH:28,INSTANT_PFY_NON_MATERIALIZABLE:36,FOLLOWED_INTEREST:5,TOPIC_BEST_PINS:70,EMBEDDING_BASED_BEST_PINS:173,RECOMMENDED_TOPICS:65,RECOMMENDED_GEO_INTERESTS:192,USER_SEQUENCE_INTERESTS_PINS:193,U2I_DNN_INTERESTS_PINS:196,PINNERSAGE_INTERESTS_PINS:197,GRAPHSAGE_USER_EMBEDDINGS_TO_ORGANIC_PINS:109,NAVBOOST_PFY:89,NAVBOOST_P2P:88,NOTIFICATION_NEWS_HUB:138,GEMINI_INTERESTS_FRESH:104,INTENTIONAL_DISTRIBUTION_USER_TO_CREATOR_STORY_PIN:100,INTENTIONAL_DISTRIBUTION_USER_TO_CREATOR_STORY_PIN_ENGAGEMENT:175,INTENTIONAL_DISTRIBUTION_USER_TO_CREATOR_VIDEO:95,INTENTIONAL_DISTRIBUTION_DOMAIN:86,INTENTIONAL_DISTRIBUTION_TOPICS_STORY_PINS:91,INTENTIONAL_DISTRIBUTION_TOPICS_VIDEO:98,GRAPHSAGE_MULTI_PINS_TO_CREATOR_PINS_REALTIME:135,GRAPHSAGE_MULTI_PINS_TO_VIDEO_PINS_REALTIME:139,GRAPHSAGE_MULTI_PINS_TO_STORY_PINS_REALTIME:140,INTENTIONAL_DISTRIBUTION_MANUAL_TAGGEED_INTERESTS_VIDEO:118,INTENTIONAL_DISTRIBUTION_MANUAL_TAGGED_INTERESTS_STORY_PIN:130,CREATOR_DIRECT_INJECT:148,USER_INTERESTS_TO_LONGTERM_CREATOR_PINS:141,GRAPHSAGE_PRODUCT_PINS:97,GRAPHSAGE_TML_PRODUCT_PINS:212,GRAPHSAGE_USER_EMBEDDINGS_TO_PINS:108,PROMOTED_PIN:15,UNKNOWN:0,RECOMMENDED_CATEGORY:2,COOKIE_MONSTER:3,REALTIME_P2B:6,REALTIME_P2B_CLOSEUP:22,RECOMMENDED_INTEREST:7,VISUALLY_SIMILAR:8,BOARD_FOLLOW:35,USER_FOLLOW:45,RECOMMENDED_COMMERCE:10,EVERYTHING_FEED:11,RECOMMENDED_LOCAL_PIN:12,SEARCH:46,P2P_USER_COMMERCE:16,COMMERCE_EDUCATION:17,LANDING_PAGE_PINS:18,FOLLOWING_FEED:19,POPULAR_FEED:20,P2P_DYNAMIC_GRID:23,LANDING_PAGE_INTEREST_PINS:24,FRESH_PIN_FROM_PIN:25,FRESH_PIN_FROM_INTEREST:26,FRESH_PIN_FROM_BOARD:27,SIFTER_VIDEO_FROM_INTEREST:39,SIFTER_PRODUCTS:57,SIFTER_DISTRIBUTION_A:50,SIFTER_DISTRIBUTION_B:51,SIFTER_DISTRIBUTION_C:52,SIFTER_DISTRIBUTION_D:53,SIFTER_DISTRIBUTION_E:54,SIFTER_ACTIVATION_EXPERIMENT:58,SIFTER_FRESHMAKER_PIN_FROM_INTEREST:40,P2P_CLOSEUP:29,P2P_LIKE:30,P2P_PIN_CREATE:31,INSTANT_PFY:34,DYNAMIC_INSERTION:37,DYNAMIC_INSERTION_BOARD_FOLLOW:38,HYPERLOCAL_INTEREST_BOARD:41,NUX_BOARD_FOLLOW_P2P:42,INDIRECT_DOMAIN_PIN:43,PIXIE_PINS_FOR_BOARD:44,SCREENSHOT_SAVE:55,TEXT_EMBEDDINGS:56,FRESH_TEXT_EMBEDDINGS:67,PREFETCH_LOAD:60,DIVERSE_TOPICS:62,QUIZ_RESULTS:63,INTENTIONAL_DISTRIBUTION_TOPICS:64,INTENTIONAL_DISTRIBUTION_TOPICS_THIRD_PARTY:90,INTENTIONAL_DISTRIBUTION_GEMINI:73,INTENTIONAL_DISTRIBUTION_GEMINI_V5:120,INTENTIONAL_DISTRIBUTION_SHOP_STYLE_STL:74,INTENTIONAL_DISTRIBUTION_GRAPHSAGE:78,INTENTIONAL_DISTRIBUTION_REPIN_BOARD:80,INTENTIONAL_DISTRIBUTION_CLICKTHROUGH:81,INTENTIONAL_DISTRIBUTION_USER_ACTIVITY:82,INTENTIONAL_DISTRIBUTION_CREATOR_BASELINE:92,INTENTIONAL_DISTRIBUTION_RECOMMENDED_TOPICS:102,INTENTIONAL_DISTRIBUTION_RECOMMENDED_TOPICS_STORY_PIN:103,INTENTIONAL_DISTRIBUTION_RECOMMENDED_TOPICS_DIVERSITY:105,PIXIE_RECENT_ACTION:66,NATIVE_CONTENT_TOPICS:68,BUBBLE_OPEN_TOPICS:69,TOPIC_BEST_PINS_V2:77,DAILY_BEST_PINS:79,TOPIC_BEST_PINS_V3:101,TOPIC_BEST_STORY_PINS:164,REC_SEQ_STORY_PIN_CLS:165,DARK_PROMOTED_PIN:71,POST_EXPLORE_TOPICS:72,GRAPHSAGE_EMBEDDINGS:75,DEMOGRAPHIC_PFY:76,SHOPPING_STL:83,UNAUTH_PIXIE_P2B:84,UNAUTH_PIXIE_P2P:85,VIDEO_EMBEDDINGS:87,VIDEO_EMBEDDINGS_GEMINI_V5:121,GEMINI_V5_EMBEDDINGS_STATIC:93,GEMINI_V5_EMBEDDINGS_FRESH:94,GEMINI_V5_EMBEDDINGS_REALTIME:106,GEMINI_V5_EMBEDDINGS_STORYPIN:107,CURATED_VIDEO_INTEREST:96,GRAPHSAGE_PRODUCT_PINS_LONGER_HISTORY:112,GRAPHSAGE_SHOPPABLE_INSPIRATION:126,GRAPHSAGE_PRODUCT_PINS_EXPERIMENTAL:134,NUX_GRAPHSAGE:99,GRAPHSAGE_USER_EMBEDDINGS_TO_PRODUCT_PINS:110,GRAPHSAGE_VIDEO_PINS:113,RECBOOST_REPIN_BOARD:114,RECBOOST_CLICKTHROUGH:115,RECBOOST_USER_ACTIVITY:116,RECBOOST_CREATOR_BOARDS:129,RECOMMENDED_BOARDS:117,RECOMMENDED_ANNOTATION_BOARDS:136,RECOMMENDED_GRAPHSAGE_BOARDS:153,INTENTIONAL_DISTRIBUTION_RECOMMENDED_GRAPHSAGE_BOARDS:191,RECOMMENDED_CREATOR_BOARDS:124,ANNOTATION_REC_CREATOR_BOARDS:127,INTENTIONAL_DISTRIBUTION_MANUAL_INTERESTS_VIDEO:119,INTENTIONAL_DISTRIBUTION_INTERESTS_VIDEO:143,INTENTIONAL_DISTRIBUTION_INTERESTS_STORY_PIN:144,REPIN_CREATOR_BOARD:122,GRAPHSAGE_USER_EMBEDDINGS_TO_CREATOR_PINS:123,GRAPHSAGE_USER_EMBEDDINGS_TO_CREATOR_PINS_REALTIME:131,FRESH_SIG_FROM_BOARD:125,RECENT_ENGAGED_CREATOR_BOARDS:128,RECENT_ENGAGED_BOARDS:132,SHOPPING_CREATOR_REALTIME:133,GRAPHSAGE_BASED_RECOMMENDED_CREATOR_BOARDS:137,PIXIE_P2P:142,NEW_USE_CASE_PINS:145,RECBOOST_NEW_USE_CASES:146,SEARCHSAGE_PFY:147,SEARCHSAGE_SHOPPING_PFY:155,INTEREST_EXPLORATION:149,INTEREST_EXPLORATION_TRENDY_QUERIES:150,INTEREST_EXPLORATION_RELATED_INTERESTS:151,RECBOOST_INTERESTS:152,HF_STORY_SHOPPING_RETARGETING:154,RECBOOST_STORY_PINS:156,RECBOOST_STORY_BOARDS:157,PINNABILITY_EMBEDDINGS:158,PINNABILITY_FRESH_STORY_EMBEDDINGS:159,PINNABILITY_STORY_EMBEDDINGS:160,PINNABILITY_PRODUCT_PIN_EMBEDDINGS:195,PINNABILITY_FRESH_PRODUCT_PIN_EMBEDDINGS:209,PINNABILITY_TML_PRODUCT_PIN_EMBEDDINGS:213,PINNABILITY_MULTI_EMBEDDINGS:210,EXPLORATION_STORY_PINS:161,EXPLORATION_STORY_PINS_BASELINE:162,EXPLOITATION_STORY_PINS:163,ANNOTATION_REC_CREATOR_STORY_PINS:166,GRAPHSAGE_MULTI_PINS_TO_STORY_PINS:167,IDEASTREAM_GRAPHSAGE_STORY_PINS:168,HF_EDUCATION_PIN_INSERTION:169,RP_EDUCATION_PIN_INSERTION:170,USER_TO_CREATOR_STORY_PINS:171,USER_TO_CREATOR_STORY_PINS_ENGAGEMENT:176,COENGAGEMENT_STORY_PINS:172,ANNOTATION_STORY_PINS:177,DISCOVER_STREAM_DEMOGRAPHIC_FALLBACK:178,DISCOVER_STREAM_CELEBRITY:179,GRAPHSAGE_SHOPIFY_VMP_PRODUCT_PINS:180,CREATOR_BEST_IDEA_PINS:181,INTEREST_BEST_IDEA_PINS:182,NAVBOOST_STORY_PINS:183,SHOPPING_DISTRIBUTION_PINS:185,WATCH_TAB_EHQ_STORIES:186,NOTIF_LEARNED_RETRIEVAL:187,NOTIF_DIRECT_INJECT:207,LANDING_PAGE_PIN_RECOMMENDATIONS:188,PINNERSAGE_LEARNED_EMBEDDINGS:189,RECGPT_CG_USER_TO_PINS:206,TOPIC_FEED:190,ORGANIC_COENGAGEMENT:211,RTC_IMPROVEMENT_TEST_1:501,RTC_IMPROVEMENT_TEST_2:502,RTC_IMPROVEMENT_TEST_3:503,RTC_IMPROVEMENT_TEST_4:504,RTC_IMPROVEMENT_TEST_5:505,RTC_IMPROVEMENT_TEST_6:506,RTC_IMPROVEMENT_TEST_7:507,RTC_IMPROVEMENT_TEST_8:508,RTC_IMPROVEMENT_TEST_9:509,RTC_IMPROVEMENT_TEST_10:510,RTC_IMPROVEMENT_TEST_11:511,RTC_IMPROVEMENT_TEST_12:512,RTC_IMPROVEMENT_TEST_13:513,RTC_IMPROVEMENT_TEST_14:514,RTC_IMPROVEMENT_TEST_15:515,RTC_BLENDER_TEST:516,P2P_COMMERCE:21,P2P:14,LENS_CAMERA_VISUALLY_SIMILAR:111,RECENT_FOLLOWED_INTEREST:59,RECENT_FOLLOWED_BOARD:61,GRAPHSAGE_SHOPIFY_VMP_MERCHANT_ACTIVATION_PRODUCT_PINS:174,FOLLOWED_INTEREST_SEO_BESPIN_EXPORATION:184,XPIXIE_TO_PRODUCT_PINS:194,SHOPPING_RECENTLY_VIEWED_MODULE_PINS:198,SHOPPING_RECENTLY_SAVED_MODULE_PINS:199,SHOPPING_BEST_SELLING_RECOMMENDED_BRAND_MODULE_PINS:200,SHOPPING_SHOP_THE_BOARD_MODULE_PINS:203,SHOPPING_ON_SALE_MODULE_PINS:204,SHOPPING_PRODUCT_CATEGORY_BASED_MODULE_PINS:205,SHOPPING_SHOP_SEARCH_MODULE_PINS:208,RECENTLY_VIEWED_ORGANIC_MODULE_PINS:201,RECENTLY_SAVED_ORGANIC_MODULE_PINS:202};function l({feedbackData:e,feedbackType:t,pinId:n,pinFeedbackType:l,recommendationReason:a,complaintReason:r,clientTrackingParams:o,isThirdPartyAd:s}){var d,u,c;switch(t){case"search":return{action:"unrelatedSearchPin",actionOptions:{query:null==e?void 0:e.query,pin_id:n}};case"related":return{action:"relatedPinHide",actionOptions:{pin:n}};case"newsHub":return{action:"newsHubPinHide",actionOptions:{pinId:n,newsId:null==e?void 0:e.newsId}};default:let p="promoted"===t,m=(c=null==a?void 0:a.reason)&&i[c],h=null!==(d=null==a?void 0:a.reasonId)&&void 0!==d?d:null==a?void 0:null===(u=a.board)||void 0===u?void 0:u.entityId,_={complaint_reason:r||0,pin_id:n,feedback_type:l||1,promoted:p};return m&&(_.recommendation_reason_id=m),h&&(_.through_id=h),null!=a&&a.throughProperties&&(_.through_properties=a.throughProperties.reduce((e,t)=>{let{key:n,data:i}=t;return n&&(e[n]=[...e[n]||[],...i||[]]),e},{})),o&&(_.client_tracking_params=o),s&&(_.is_third_party_ad=s),{action:p?"promotedComplaint":"complaint",actionOptions:_}}}},248975:(e,t,n)=>{"use strict";function i({embedSrc:e,embedType:t,imagesUrls:n,preferredResolution:i,excludeOriginals:l}){if(!e&&!t&&!n)return"";if("gif"===t)return e||"";if(!n)return"";if(i){let e="474x"===i&&n["474x"]||"236x"===i&&n["236x"]||n["736x"];if(e)return e}let a=Object.keys(n).reduce((e,t)=>{try{let i=t.split("x")[0];if(Number.isNaN(Number(i)))return{...e,[t]:n[t]};return{...e,[i]:n[t]}}catch(t){return e}},{}),r=Object.keys(a);l&&"orig"===r[r.length-1]&&r.pop();let o=r.pop();return a[o]||""}n.d(t,{Z:()=>i})},958007:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(992750);let l=e=>(e||"").trim().replace(/\s+/g," "),a=({storyPinDataId:e,pinDescription:t,richMetadataDescription:n,richSummaryDisplayName:a,closeupDescription:r,closeupUnifiedDescription:o,seoDescription:s,seoNoindexReason:d})=>d&&i.eg.has(d)?l(s):e?l(t):l((0,i.eK)({richMetadataDescription:n,richSummaryDisplayName:a,closeupUnifiedDescription:o}).description)||l(o||"")||l(r)||l(t)||l(n)||""},164985:(e,t,n)=>{"use strict";function i(){let e=800,t=400;return"undefined"!=typeof window&&(e=window.innerHeight,t=window.innerWidth),{windowHeight:e,windowWidth:t}}n.d(t,{Z:()=>i})},623568:(e,t,n)=>{"use strict";n.d(t,{NK:()=>g,P6:()=>a,ZE:()=>h,Zt:()=>_,_J:()=>s,_S:()=>y,cL:()=>p,jL:()=>o,oN:()=>l,rM:()=>m,sV:()=>d,sY:()=>u});var i=n(179888);let l=5e3,a=l/i.gJ,r=["Uploaded by user"],o=(e,t)=>!!t&&!e,s=e=>!!e&&5!==e,d=e=>["email","messages","deep_linking"].includes(e),u=e=>!!e&&"gif"===e,c=e=>"pinstory"===e,p=({embedSrc:e,embedSubtype:t,embedType:n})=>!!e&&!u(n)&&!c(t),m=({link:e,mobileLink:t,trackedLink:n})=>!t&&!n&&!e,h=e=>/pin.it/gim.test(e||""),_=({link:e,mobileLink:t,origImageUrl:n,trackedLink:i})=>t||i||e||n||"",g=(e,t)=>({deeplinkUri:{android:`pin/${e}/repin`,iOS:`repin/${e}`},mwebUri:{pathname:`/pin/${e}/repin/`,state:{trackingParams:t.state?t.state.trackingParams:""}}});function y(e){for(let t of r)if(e===t)return!1;return!0}},992750:(e,t,n)=>{"use strict";n.d(t,{eg:()=>r,kt:()=>_,rw:()=>m,fs:()=>u,eK:()=>c,Ly:()=>p,BY:()=>h,bN:()=>g,RC:()=>s,EU:()=>d});let i=/\s\s+/g,l=e=>e.replace(i," ");var a=n(883561);let r=Object.freeze(new Set(["sensitive_raw_pin_text","is_sensitive_rich_pin_description","is_sensitive_rich_pin_title","is_sensitive_board_title"])),o=e=>"string"==typeof e?e:"",s=({storyPinDataMetadataPinTitle:e,pinTitle:t})=>e||t,d=(e,t)=>e?e.trim().length>t?(0,a.ZP)(e.trim(),t).trim():e.trim():"",u=({pinTitle:e,gridTitle:t,richSummaryDisplayName:n,richMetadataTitle:i,storyPinDataId:l,storyPinDataMetadataPinTitle:a})=>{let r=a||e,o=d(t,200);return o||n||i||(l&&r?r:null)},c=e=>{let{richSummaryDisplayName:t}=e,n=e.pinJoinVisualAnnotation||[],i=e.pinJoinAnnotationsWithLinks||{},r=e.richMetadataDescription||"",o=e.closeupUnifiedDescription||"",s=n.map(e=>(i||{})[e]||{name:e,url:""}),d="",u=(t||"").toLocaleLowerCase().trim(),c=r.toLocaleLowerCase().trim(),p=o.toLocaleLowerCase().trim();return o&&o.length>3&&p!==u?d=o:r&&r.length>3&&c!==u&&(d=r),d&&(d=l((0,a.ZP)(d,496)).trim()),{description:d,annotationsWithLinks:s}},p=({pinTitle:e,gridTitle:t,richSummaryDisplayName:n,richMetadataTitle:i,storyPinDataId:l,storyPinDataMetadataPinTitle:a,pinJoinVisualAnnotation:o,seoNoindexReason:s,seoTitle:d})=>r.has(null!=s?s:"")?d:u({pinTitle:e,gridTitle:t,richSummaryDisplayName:n,richMetadataTitle:i,storyPinDataId:l,storyPinDataMetadataPinTitle:a})||(null==o?void 0:o[0])||e,m=(e,t,n,i,l)=>{let a=o(e).trim(),r=(e,t)=>t&&t.length>0?`${e} ${t.join(", ")}`:e;return i&&i.trim().length?r(i.trim(),n):l&&l.trim().length?l.trim():a?r(a,n):n?n.join(", "):""},h=e=>`/pin/${e}/`,_=(e,t)=>{let n=`Pinterest video from ${t}: `.concat(e);return""===t?e:n},g=({pinId:e,seoUrl:t})=>t&&"string"==typeof t?t:h(e)},223008:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i,l=n(667294);n(167912);var a=n(357998);let r=void 0!==i?i:i=n(469656),o=e=>{var t,n,i,l,a;return{imageSpec_236x:(null===(t=e.images)||void 0===t?void 0:t["236x"])&&{height:e.images["236x"].height,url:e.images["236x"].url,width:e.images["236x"].width},imageSpec_474x:(null===(n=e.images)||void 0===n?void 0:n["474x"])&&{height:e.images["474x"].height,url:e.images["474x"].url,width:e.images["474x"].width},imageSpec_564x:(null===(i=e.images)||void 0===i?void 0:i["564x"])&&{height:e.images["564x"].height,url:e.images["564x"].url,width:e.images["564x"].width},imageSpec_736x:(null===(l=e.images)||void 0===l?void 0:l["736x"])&&{height:e.images["736x"].height,url:e.images["736x"].url,width:e.images["736x"].width},imageSpec_orig:(null===(a=e.images)||void 0===a?void 0:a.orig)&&{height:e.images.orig.height,url:e.images.orig.url,width:e.images.orig.width}}};function s({pinKey:e,maxWidth:t}){let{data:n}=(0,a.Q)(r,e,{useLegacyAdapter:o}),i=(null==n?void 0:n.imageSpec_564x)||(null==n?void 0:n.imageSpec_736x)||(null==n?void 0:n.imageSpec_orig)||(null==n?void 0:n.imageSpec_474x)||(null==n?void 0:n.imageSpec_236x),s=(null==i?void 0:i.width)||1,d=(null==i?void 0:i.height)||1,u=(null==i?void 0:i.url)||"",c=function(e,t,n=564){return e>n&&(t*=n/e,e=n),{width:e,height:t}}(s,d,t),p=(0,l.useCallback)(()=>({width:c.width,height:c.height,url:u}),[c.height,c.width,u]);return{getNormalizedPinImage:p}}},53199:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r}),n(167912);var i,l=n(357998);let a=void 0!==i?i:i=n(460863),r=e=>{let{data:t}=(0,l.Q)(a,e,{useLegacyAdapter:e=>{var t,n,i,l,a,r,o,s,d;return{imageSpec_60x60:(null===(t=e.images)||void 0===t?void 0:t["60x60"])&&{url:e.images["60x60"].url},imageSpec_136x136:(null===(n=e.images)||void 0===n?void 0:n["136x136"])&&{url:e.images["136x136"].url},imageSpec_170x:(null===(i=e.images)||void 0===i?void 0:i["170x"])&&{url:e.images["170x"].url},imageSpec_236x:(null===(l=e.images)||void 0===l?void 0:l["236x"])&&{url:e.images["236x"].url},imageSpec_474x:(null===(a=e.images)||void 0===a?void 0:a["474x"])&&{url:e.images["474x"].url},imageSpec_564x:(null===(r=e.images)||void 0===r?void 0:r["564x"])&&{url:e.images["564x"].url},imageSpec_736x:(null===(o=e.images)||void 0===o?void 0:o["736x"])&&{url:e.images["736x"].url},imageSpec_600x315:(null===(s=e.images)||void 0===s?void 0:s["600x315"])&&{url:e.images["600x315"].url},imageSpec_orig:(null===(d=e.images)||void 0===d?void 0:d.orig)&&{url:e.images.orig.url}}}}),n=[["60x60",null==t?void 0:t.imageSpec_60x60],["136x136",null==t?void 0:t.imageSpec_136x136],["170x",null==t?void 0:t.imageSpec_170x],["236x",null==t?void 0:t.imageSpec_236x],["474x",null==t?void 0:t.imageSpec_474x],["564x",null==t?void 0:t.imageSpec_564x],["736x",null==t?void 0:t.imageSpec_736x],["600x315",null==t?void 0:t.imageSpec_600x315],["orig",null==t?void 0:t.imageSpec_orig]];return n.reduce((e,[t,n])=>n?{...e,[t]:n.url}:e,{})}},66743:(e,t,n)=>{"use strict";n.d(t,{NC:()=>a,Rc:()=>o,WK:()=>d,X9:()=>l,b9:()=>i,f9:()=>s,gu:()=>r});let i="pin-builder-font-faces",l="system-font-faces",a="pin-builder-education-font-faces",r="licensed",o="system",s="brand",d=4},692627:(e,t,n)=>{"use strict";function i({hasPin:e,hasPinRichMetadata:t,hasPinRichMetadataProducts:n,hasPinRichMetadataArticle:i,hasPinRichMetadataRecipe:l,hasPinStoryPinData:a}){if(e){if(t)return n?144:i?141:l?145:139;if(a)return 157}return 140}n.d(t,{Z:()=>i})},336882:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i={STARTED:1,FINISHED:2}},467570:(e,t,n)=>{"use strict";n.d(t,{GH:()=>s,JF:()=>y,Jb:()=>m,MI:()=>_,_V:()=>d,sl:()=>c,we:()=>p});var i=n(816068),l=n(186656),a=n(713930),r=n(935879),o=n(867820);let s="274266067164",d=()=>["public_profile","email","user_friends"],u=["picture.type(large)","id","first_name","last_name","email","gender"],c=e=>{e&&(0,o.dy)({event:"load_script_success",provider:"facebook"}),"undefined"!=typeof window&&window.FB?(e&&(0,o.dy)({event:"initialize_library",provider:"facebook"}),window.FB.init({appId:s,status:!0,xfbml:!0,version:"v2.7"})):e?(0,o.dy)({event:"global_object_not_found",provider:"facebook"}):(0,o.My)("pcons.non_autologin.fb.global_object_not_found")},p=(e,t)=>{t&&(0,o.dy)({event:"load_script_start",provider:"facebook"});let n=(0,a.Z)((0,r.Z)(e),"FACEBOOK");return n.then(()=>c(t))},m=()=>new Promise(e=>{"undefined"!=typeof window&&window.FB&&window.FB.getLoginStatus(e)}),h=({userID:e,accessToken:t,data:{birthday:n,email:l,first_name:a,gender:r,last_name:o,picture:s}})=>({type:"facebook",facebook_id:e,facebook_token:t,birthday:n?(0,i.Z)(n):void 0,email:l,first_name:a,gender:r,image_url:s&&!s.data.is_silhouette?s.data.url:void 0,last_name:o});async function _(e){let t=await (0,l.Z)({url:"/v3/facebook/profile_data/",method:"POST",data:{access_token:e,pii_safe_birthday:!0,fields:u}}),n=t.resource_response.data||{};return(0,o.My)(n?"pcons.facebook_user.non_empty_user_data_returned":"pcons.facebook_user.empty_user_data_returned"),{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}}let g=(e,t)=>new Promise((n,i)=>{if("connected"!==e.status){i({status:e.status||"unknown"});return}let{userID:l,accessToken:a}=e.authResponse;_(a).then(e=>{n({creds:{facebook_id:l,facebook_token:a,facebook_autologin:(null==t?void 0:t.autologin)||!1},signupOptions:h({userID:l,accessToken:a,data:e})})},i)}),y=()=>new Promise(e=>{window.FB.login(e,{scope:d().join(",")})}).then(e=>g(e))},107193:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(186656),l=n(713930),a=n(336882),r=n(935879),o=n(966113),s=n(867820);let d=!1,u=e=>e.isAuth&&!!e.facebookId&&!e.isLimitedLogin,c=(e,t,n="en-US",p)=>{p&&(0,s.dy)({event:"load_script_start",provider:"facebook"}),(0,l.Z)((0,r.Z)(n),"FACEBOOK").then(()=>{p&&(0,s.dy)({event:"load_script_success",provider:"facebook"});let n=window.FB;if(!n){p&&(0,s.dy)({event:"global_object_not_found",provider:"facebook"});return}d||(p&&(0,s.dy)({event:"initialize_library",provider:"facebook"}),n.init({appId:o.GHq,status:!0,version:"v2.2"}),FB.Event.subscribe("auth.statusChange",()=>{u(t)&&c(e=>{if(!e.getUserID())return;let t=e.getAccessToken();t&&(0,i.Z)({url:"/v3/connect/facebook/",method:"POST",data:{facebook_token:t}})},t)}),d=!0,window.fb_init=a.Z.FINISHED),e(n)}),window.fb_init=a.Z.STARTED},p=c},935879:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});let i=e=>{let 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}},l=e=>`//connect.facebook.net/${i(e)}/sdk.js`},760372:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});let i="favorited"},466225:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=e=>e.startsWith("enabled")||e.startsWith("employee")},383690:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(667294),l=n(773285);let a=()=>{let e=(0,l.F)();return(0,i.useCallback)(()=>{e.flush()},[e])}},813401:(e,t,n)=>{"use strict";n.d(t,{kf:()=>g,l5:()=>h,of:()=>p,xC:()=>_,yz:()=>m});var i=n(667294),l=n(425288),a=n(30287),r=n(829407),o=n(807609),s=n(67347),d=n(785893);let{Provider:u,useMaybeHook:c}=(0,l.Z)("PwaContext"),p=({children:e,initialContext:t})=>{let[n,l]=(0,i.useState)(null),o=t||{pwaType:"unknown",twaType:null},c=o.pwaType;(0,r.Z)(()=>{let e=(0,a.FB)(window)||"unknown";l(e),c!==e&&(0,s.nP)("pwa.type_mismatch",{sampleRate:1,tags:{serverPwaType:c,clientPwaType:e,conflict:"unknown"!==c&&"unknown"!==e}})});let p="unknown"===c&&n?n:c,{twaType:m}=o,h=(0,i.useMemo)(()=>({pwaType:p,twaType:m}),[p,m]);return(0,d.jsx)(u,{value:h,children:e})},m=()=>{var e;let t=c();return null!==(e=null==t?void 0:t.pwaType)&&void 0!==e?e:"unknown"},h=()=>{var e;let t=c();return null!==(e=null==t?void 0:t.twaType)&&void 0!==e?e:null},_=()=>{let e=m();return"android-twa"===e},g=()=>{let e=m(),t=(0,o.Z)();return"unknown"===e&&t?null:"windows"===e}},523657:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(667294);n(883119);var l=n(301723),a=n(785893);let r=e=>document.querySelector(`img[src="${e}"]`)||null,o=(e,t,n)=>{let l=(0,i.useRef)(null),a=(0,i.useRef)(null);(0,i.useEffect)(()=>{if(e!==l.current||n&&n!==a.current){l.current=e;let n=r(e);null!=n&&n.complete&&t()}a.current=n},[e,t,n])};function s({alt:e,children:t,color:n,elementTiming:i,isActive:r=!1,naturalHeight:s,naturalWidth:d,onLoad:u,src:c,fit:p="none"}){return o(c,u,r),(0,a.jsx)(l.Z,{alt:e,color:n,elementTiming:i,naturalHeight:s,naturalWidth:d,onLoad:u,src:c,fit:p,children:t})}},198462:(e,t,n)=>{"use strict";n.d(t,{cA:()=>$,fM:()=>W,N5:()=>q});var i=n(667294),l=n(616550),a=n(991067),r=n(7789);let o=e=>{switch(e){case"/":return"homefeed";case"/pin/:id":case"/pin/:id/sent":return"pin_closeup";case"/pin/:id/visual-search":return"flashlight";case"/:username/:slug":return"board";case"/:username":return"other_profile";case"/search/:scope":return"search";case"/ideas/:interest/:id":return"topic";default:return null}},s=e=>{switch(e){case"/pin/:id":case"/pin/:id/sent":return"pin_closeup";case"/:username/:slug":return"board";case"/:username":return"other_profile";case"/ideas/:interest/:id":return"topic";default:return null}};var d=n(969853),u=n(45528),c=n(31062),p=n(156381),m=n(311560),h=n(435851),_=n(69028);let g=({botType:e,browserName:t,deviceType:n,region:i})=>{let l=`pwtlogger.${e}.${n}`,a=["all",...i?[i.toLowerCase()]:[]],r=[];"desktop"===n?("Chrome"===t||"Edge"===t||"Safari"===t||"Firefox"===t||"Opera"===t)&&(r=[t.toLowerCase().replace(/\s/g,"_")]):"phone"===n?("Chrome"===t||"Mobile Safari"===t||"Samsung Browser"===t||"Chrome WebView"===t||"GSA"===t)&&(r=[t.toLowerCase().replace(/\s/g,"_")]):"tablet"===n&&"Chrome"===t&&(r=[t.toLowerCase().replace(/\s/g,"_")]);let o=["all",...r],s=[];return a.forEach(e=>{o.forEach(t=>{s.push(`${l}.region_${e}.browser_${t}`)})}),s};var y=n(991565),v=n(893641);let f=e=>10*Math.round(e/10),b=e=>Number(e.toFixed(2));var x=n(361115),k=n(67347);let P={pin_closeup:{LCP:"pin_closeup_lcp",FID:"pin_closeup_fid",INP:"pin_closeup_inp"},board:{LCP:"board_lcp",FID:"board_fid",INP:"board_inp"},other_profile:{LCP:"other_profile_lcp",FID:"other_profile_fid",INP:"other_profile_inp"},topic:{LCP:"topic_lcp",FID:"topic_fid",INP:"topic_inp"}},S=["CA","GB","DE","FR","AU","JP","BR","MX","AU","IN"],w=({surface:e,pwtStaticContext:t})=>{switch(e){case"pin_closeup":return[(0,x.Uw)({isDesktop:"desktop"===t.deviceType,viewerType:t.isBot&&"bot"||t.isAuthenticated&&"auth"||"unauth"}),t.isAuthenticated?"web_eager_loadable_auth":"web_eager_loadable_unauth"];case"board":return[t.isAuthenticated?"web_eager_loadable_auth":"web_eager_loadable_unauth"];default:return[]}},A=({pwtStaticContext:e,surface:t})=>{let n=(0,c.Jx)({annotateExperiments:w({surface:t,pwtStaticContext:e}),annotateResourceTimingForSurface:t,annotateMarks:["initialAppLoad","RenderReactContainer",...e.isAuthenticated?[]:["firstClientRenderUnauthPageWrapper","mountUnauthPageWrapper"],..."pin_closeup"===t?["firstClientRenderCloseupPage","firstClientRenderCloseupImage"]:[]],name:P[t].LCP,pwtStaticContext:e}),i=(0,c.Jx)({name:P[t].FID,pwtStaticContext:e}),l=(0,c.Jx)({name:P[t].INP,pwtStaticContext:e});return(e,t)=>{"LCP"===e?n.stop(t):"FID"===e?i.stop(t):"INP"===e&&l.stop(t)}},T=({pwtStaticContext:e,surface:t,getCurrentRoute:n})=>{let i=A({pwtStaticContext:e,surface:t}),{isAuthenticated:l,isBot:a,isSocialBot:r,deviceType:o,country:s,fullPath:d,browserName:c,osName:x}=e,P={},w=({name:u,value:p,options:f,metricDetails:b})=>{if(!P[u]){let w;P[u]=!0;let A=(0,h.Z)(e),T=`${A}.${t}.${u}`,I=`${A}.tags.${t}.${u}`;if(w="iOS"===x&&"Chrome"===c?"iOS_Chrome":"CrUX","LCPCount"===u)(0,k.QX)(`${T}.sum`,p,{sampleRate:1}),(0,k.nP)(`${T}.size`,{sampleRate:1});else{let e=(0,m.Z)(s),h=(0,_.Z)(d);if("FID"===u||"FIDStartTime"===u)(0,k.LY)(`${T}`,p,{sampleRate:1}),(0,k.LY)(`${I}`,p,{sampleRate:1,tags:{timingBucket:null==f?void 0:f.timingBucket,isAuth:l,CrUXSegment:w,region:e,...h&&{pinType:h}}});else if("INP"===u){if(b){let{rating:t,navigationType:i}=b,{eventTime:a,eventType:r,loadState:o}=b.attribution,s=(0,y.Z)(a),{path:d}=n(),u={isAuth:l,path:d,CrUXSegment:w,region:e,CWVBucket:t,eventTimeGroup:s,eventType:r,loadState:o,navigationType:i};if((0,k.LY)(`${T}`,p,{sampleRate:1}),(0,k.LY)(`${I}`,p,{sampleRate:1,tags:u}),"Chrome"===c){let e=(0,v.Z)(b);e&&(0,k.LY)(`${A}.INPBoundary`,p,{sampleRate:1,tags:{...u,INPBoundary:e}})}}}else(0,k.LY)(`${T}`,p,{sampleRate:1}),(0,k.LY)(`${I}`,p,{sampleRate:1,tags:{isAuth:l,CrUXSegment:w,region:e,...h&&{pinType:h}}});!l&&S.includes(s)&&g({botType:r&&"socialBot"||a&&"bot"||"nonbot",browserName:c,deviceType:o,region:e}).forEach(e=>{(0,k.LY)(`${e}.tags.growthSEO.${t}_${u}`,p,{sampleRate:1,tags:{country:s}})}),i(u,p)}}};(0,u.Fu)(({value:e})=>{let t;let n=(0,p.Af)();t=e<=100?"Good":e>100&&e<=300?"Needs Improvement":"Poor",w({name:"FID",value:b(e),options:{timingBucket:t}}),n&&w({name:"FIDStartTime",value:b(n),options:{timingBucket:t}})}),(0,u.NO)(({value:e})=>{w({name:"LCPCount",value:(0,p.Kj)()}),w({name:"LCP",value:f(e)})}),(0,u.a4)(({value:e})=>w({name:"FCP",value:e})),(0,u.Yn)(e=>{w({name:"INP",value:e.value,metricDetails:e})})};var I=n(790348),E=n(543059),C=n(383434);let D=(0,C.XV)("LayoutShiftDebugger"),j=e=>e<=.1?"good":e<=.25?"adequate":"poor",F=e=>e instanceof HTMLElement&&e.dataset&&(e.dataset.layoutShiftBoundaryId||e.dataset.testId)||e.parentNode&&F(e.parentNode)||null,R=e=>Math.round(1e3*e),L=[],z=e=>{let t=Object.freeze({}),n=0;L.forEach(({value:e,shift:{sources:i},route:l,params:a,hadRecentNavigation:r,hadRecentScroll:o,isAuth:s})=>{if(n+=e,!i||!i.length)return;let d=e/i.length;i.forEach(({node:e})=>{let n=e?F(e)||"ROOT":"NODE_REMOVED",i=a&&a.scope?a.scope:"none",u={route:l,searchScope:i,boundaryId:n,hadRecentNavigation:r,hadRecentScroll:o,isAuth:s},c=JSON.stringify(u);t={...t,[c]:{score:((t[c]||{}).score||0)+d,tags:u}}})}),Object.keys(t).forEach(n=>{let{score:i,tags:l}=t[n];(0,k.QX)(`${e}.shifts`,R(i),{sampleRate:1,tags:{...l}})}),D("Debug CLS boundaries",n,t,L),L=[]},O=({staticContext:e,getCurrentRoute:t,getLastNavigationTime:n})=>{let i;let l=(0,c.Jx)({annotateMarks:["initialAppLoad","RenderReactContainer"],name:"cumulative_layout_shift",pwtStaticContext:e}),a=0,r=e=>{a=e.timeStamp};window.addEventListener("scroll",r),window.addEventListener("beforeunload",()=>{window.removeEventListener("scroll",r)});let o=`${(0,h.Z)(e)}.CLS`,s=()=>z(o),d=0,p=0,m=0;(0,u.mw)(({entries:l,value:r})=>{if(m=r||0,l.length){let{path:o,params:s}=t();i=n();let u=l[0].startTime,c=d!==u,m=c?l:l.slice(p);c&&(d=u),L=L.concat(m.map(t=>({value:r,shift:t,route:o,params:s,hadRecentNavigation:i>0&&i+500>t.startTime,hadRecentScroll:a>0&&a+500>t.startTime,isAuth:e.isAuthenticated}))),p=l.length}},!0);let _=setInterval(()=>{if(L.length){s();let e=j(m);(0,k.QX)(`${o}.${e}`,1,{sampleRate:1}),l.stop(R(m))}},1e3);window.addEventListener("beforeunload",()=>{clearInterval(_),0===m&&l.abort("no_shifts_detected")})},M=null,N=(e,t)=>{let n,i=0,l=0,a=null,r=null,o=null,s=null,d=[],u=()=>{l+=1,o=window.requestAnimationFrame(u)},p=()=>{if(s){let n=d.some(e=>null!==a&&a-e>0&&a-e<=500),l=t(),{isAuthenticated:o}=e;if(n){let t=(0,c.Jx)({name:"scroll_session",pwtStaticContext:e});if(!t)return;let n={surface:l,isAuthenticated:o};if(null===a||null===r||0===i){if(null===a&&null===r)t.error("no_duration",n);else if(null==a)M=r,t.error("no_start",n);else if(null==r){let e;e=M&&a-M<750?"no_end.outside_window":"no_end.single_event",t.error(e,n)}else t.error("no_frames",n)}else{M=r;let e=r-a,s=e/i;0===s?t.error("zero_value",n):s<0?t.error("negative_value",n):(t.addBinaryAnnotation("surface",l,"STRING"),t.addBinaryAnnotation("isAuthenticated",o,"BOOL"),t.addBinaryAnnotation("duration_ms",e,"I32"),t.addBinaryAnnotation("total_frames_rendered",i,"I16"),t.stop(s))}}else(0,I.A9)("WARN.scroll_session.not_user",{tags:{isAuthenticated:o,surface:l}})}window.cancelAnimationFrame(o),i=0,l=0,d=[],r=null,a=null,s=null},m=({timeStamp:e})=>{n&&clearTimeout(n),n=setTimeout(p,500),null===s?(s=100*Math.random()<10)&&(o=window.requestAnimationFrame(u),a=e):s&&(r=e,i+=l,l=0)},h=({timeStamp:e})=>{d.push(e)};["wheel","pointerdown","keydown"].forEach(e=>{window.addEventListener(e,h,{passive:!0,capture:!0})}),window.addEventListener("scroll",m,{passive:!0}),window.addEventListener("pagehide",()=>{window.removeEventListener("scroll",m),["wheel","pointerdown","keydown"].forEach(e=>{window.removeEventListener(e,h)})})};var B=n(22773),Z=n(785893);let K=(0,i.createContext)(null),U=(0,i.createContext)(null),H=()=>{(0,I.A9)("totalSessionVolume"),window.performance?["clearMarks","clearMeasures","clearResourceTimings","getEntries","getEntriesByName","getEntriesByType","mark","measure","now","setResourceTimingBufferSize"].forEach(e=>{window.performance[e]||(0,I.A9)(`not_supported.window.performance.${e}`)}):(0,I.A9)("not_supported.window.performance"),window.PerformanceObserver||(0,I.A9)("not_supported.window.PerformanceObserer"),(0,d.v)()||(0,I.A9)("not_supported.grid_profiler")},V=()=>{var e;return null!==(e=window.performance)&&void 0!==e&&e.now?window.performance.now():null},G=e=>["/advertiser/"].reduce((t,n)=>e.includes(n)||t,!1);function $({children:e,immutableLocation:t,resourceTimingCacheSize:n,routerHistoryAction:d,staticContext:u}){let c=(0,i.useRef)(null),m=(0,i.useRef)(null),h=(0,i.useRef)(t),_=(0,i.useRef)(!0),{path:g,params:y}=(0,l.useRouteMatch)(),v=(0,i.useRef)(g),f=(0,i.useRef)(y),b=!u.isCachedRender&&(0,a.Z)(u.deviceType);(0,i.useEffect)(()=>{v.current=g},[g]),(0,i.useEffect)(()=>{f.current=y},[y]),(0,i.useEffect)(()=>{if((0,B.X_)({size:n||1e3}),(0,p.UQ)(),H(),_.current=!1,b&&!r.is&&(N(u,()=>o(v.current)||v.current||"UNKNOWN_SURFACE"),"Chrome"===u.browserName)){O({staticContext:u,getCurrentRoute:()=>({path:v.current,params:f.current}),getLastNavigationTime:()=>m.current||0});let e=s(v.current);e&&T({pwtStaticContext:u,surface:e,getCurrentRoute:()=>({path:v.current})})}},[]);let x=G(t.pathname)?h.current.pathname!==t.pathname:h.current!==t;if(x){h.current=t,m.current=V();let{current:e}=m;if(!_.current){let t=!c.current;(0,I.A9)("routeStart",{tags:{action:d}}),(0,B.Eg)(t),(0,p.Ux)(t),(0,p.on)(),(0,E.tl)();let{customBufferSize:n,defaultBufferSize:i}=(0,B.LH)();e&&((0,I.A9)("routeStart.customBufferSize",{count:n}),(0,I.A9)("routeStart.defaultBufferSize",{count:i}),c.current={time:e,action:d})}}return(0,Z.jsx)(K.Provider,{value:b?u:null,children:(0,Z.jsx)(U.Provider,{value:c.current,children:e})})}let W=()=>(0,i.useContext)(U),q=()=>(0,i.useContext)(K)},42447:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ee});var i=n(667294),l=n(567450),a=n(226464),r=n(383434),o=n(790348),s=n(543059),d=n(198462),u=n(276602),c=n(638089),p=n(860273),m=n(453821),h=n(607150);let _=({constraintMap:e,initialNavTiming:t,annotations:n})=>({...n,...(0,h.jh)("constraint_",e),...(0,h.jh)("mark_",(0,s.gQ)()),...(0,h.jh)("browser_",{...t?(0,h.D3)(t):{},...(0,h.rX)()})});var g=n(505771),y=n(156381),v=n(358864);let f=(e,t)=>{let{firstInputDelay:n}=(0,y.v2)();return[...e.map(e=>(0,g.Z)(e,t)).filter(Boolean),...n?[{name:"fid",id:(0,v.Z)(),parentId:t,startTime:n.startTime,endTime:n.endTime,annotationMap:{},binaryAnnotationMap:{}}]:[]]};var b=n(435851),x=n(67347);let k=e=>e<=2500?"Good":e>2500&&e<=4e3?"Needs Improvement":"Poor",P=({eventPrefix:e,endTime:t,tags:n,resourceArr:i,resourceType:l="allResources"})=>{let a=i.length;if(a>0&&"object"==typeof i[0]&&!Array.isArray(i[0])){let r=[...i].sort((e,t)=>e.fetchStart-t.fetchStart),o=[...i].sort((e,t)=>e.responseEnd-t.responseEnd),s=1,d=t/5,u=0;for(;s<=5;){let t=0;for(;u<=a-1&&r[u].fetchStart<=d*s;)u+=1,t+=1;(0,x.S0)(`${e}.tags.${l}.fetchStartInterval${s}of5`,t,{sampleRate:.2,tags:n}),(0,x.S0)(`${e}.${l}.fetchStartInterval${s}of5`,t,{sampleRate:.2}),s+=1}let c={zeroPercentInFlight:r[0].fetchStart,twentyFivePercentInFlight:r[Math.floor(a/4)].fetchStart,fiftyPercentInFlight:r[2*Math.floor(a/4)].fetchStart,seventyFivePercentInFlight:r[3*Math.floor(a/4)].fetchStart,hundredPercentInFlight:r[a-1].fetchStart,twentyFivePercentComplete:o[Math.floor(a/4)].responseEnd,fiftyPercentComplete:o[2*Math.floor(a/4)].responseEnd,seventyFivePercentComplete:o[3*Math.floor(a/4)].responseEnd,hundredPercentComplete:o[a-1].responseEnd};for(let t in c)c[t]&&((0,x.LY)(`${e}.tags.${l}.${t}`,c[t],{sampleRate:.2,tags:n}),(0,x.LY)(`${e}.${l}.${t}`,c[t],{sampleRate:.2}))}},S=({annotateExperiments:e,endTime:t,entries:n,metricId:i,pwtStaticContext:l})=>{let a=`${(0,b.Z)(l)}.${i.surface}`,r=[a];e&&e.forEach(e=>{let t=l.getExperimentGroup(e)||"null";r.push(`${a}.${e}.${t}`)});let o=k((0,y.Bn)()),s={lcpTimingBucket:o||"unknown",isAuthenticated:l.isAuthenticated,navigationType:i.navigationType},d=Array.from(n.filter(e=>"number"==typeof e.encodedBodySize&&e.encodedBodySize>=1e4&&e.responseEnd<=t)),u=[],c=[],p=[],m=[],h=[];d.forEach(e=>{"img"===e.initiatorType?u.push(e):"css"===e.initiatorType?c.push(e):"script"===e.initiatorType?p.push(e):"xmlhttprequest"===e.initiatorType?m.push(e):"link"===e.initiatorType&&e.name.includes("i.pinimg.com")&&h.push(e)}),r.forEach(e=>{P({eventPrefix:e,endTime:t,tags:s,resourceArr:d}),P({eventPrefix:e,endTime:t,tags:s,resourceArr:u,resourceType:"image"}),P({eventPrefix:e,endTime:t,tags:s,resourceArr:c,resourceType:"css"}),P({eventPrefix:e,endTime:t,tags:s,resourceArr:p,resourceType:"scripts"}),P({eventPrefix:e,endTime:t,tags:s,resourceArr:m,resourceType:"xhr"}),P({eventPrefix:e,endTime:t,tags:s,resourceArr:h,resourceType:"preloadedImage"})})};var w=n(22773);let A=({startTime:e,responseEnd:t},n)=>e>n.endTime||!!t&&t<n.startTime,T=({annotateExperiments:e,annotations:t,binaryAnnotations:n,constraintMap:i,endTime:l,imageTimings:a,metricId:r,pwtStaticContext:o,startTime:s,traceId:d,spans:u})=>{let h;let g=(0,w.Cg)();"initial_app_load"===r.navigationType&&(h=(0,p.Z)());let y=a.map(({name:e})=>e),v=g.map(e=>(0,m.p)(e,y)).filter(({timing:e})=>!A(e,{startTime:s,endTime:l}));return("board"===r.surface||"pin_closeup"===r.surface)&&S({annotateExperiments:e,endTime:l,entries:g,metricId:r,pwtStaticContext:o}),{type:"COMPLETE",traceId:d,startTime:s,endTime:l,spans:f(v,d).concat(u),annotationMap:_({constraintMap:i,initialNavTiming:h,annotations:t}),binaryAnnotationMap:(0,c.rA)({annotateExperiments:e,binaryAnnotations:n,entries:g,metricId:r,performanceResources:v,pwtEndTime:l,pwtStaticContext:o})}},I=!1,E=(e,t)=>{if(e&&t){if(!I)return I=!0,t;(0,o.H)("duplicated_initial_app_load_surface_pwt")}return(0,v.Z)()};var C=n(558775),D=n(317672);let j=e=>{let t=performance.getEntriesByType("resource").filter(e=>e.name.includes("i.pinimg")).reduce((e,t)=>{let n=t.name.replace(".jpg","").split("/");return{[n[n.length-1]]:{downloadSize:t.name.split("/")[3].split("x")[0]},...e}},{}),n=Array.from(document.getElementsByTagName("img")).map(e=>{let n=e.src.replace(".jpg","").split("/"),i=n[n.length-1];if(t[i]){var l;let n=(null===(l=(0,D.rZ)(e))||void 0===l?void 0:l.width)||1,a=t[i].downloadSize;return{fileName:i,renderedSize:n,downloadedSize:a,ratio:a/n}}return{fileName:i,renderedSize:1,downloadedSize:1,ratio:1}}),i=Array.from(document.querySelectorAll('div[role="img"]')).map(e=>{let n=e.style.backgroundImage.split('"')[1].replace(".jpg","").split("/"),i=n[n.length-1];if(t[i]&&e instanceof HTMLDivElement){var l;let n=(null===(l=(0,D.rZ)(e))||void 0===l?void 0:l.width)||1,a=t[i].downloadSize;return{fileName:i,renderedSize:n,downloadedSize:a,ratio:a/n}}return{fileName:i,renderedSize:1,downloadedSize:1,ratio:1}});[...n,...i].forEach(t=>{let{ratio:n,fileName:i,downloadedSize:l}=t;t.ratio>1.05&&(0,o.A9)(`checkImageRatio.${e}`,{count:Math.round(10*n)/10,tags:{fileName:`${l}_${i}`}})})};var F=n(985271),R=n(780280);let L=(e,t)=>{let n=(0,i.useRef)(t);return{getState:()=>n.current,dispatch:t=>{n.current=e(n.current,t)}}};var z=n(314880),O=n(785893);let M=["initial_app_load","client_route_push"],N=(0,r.XV)("PwtSurface"),B="NavigationComplete",Z="VisuallyComplete",K=(e,t)=>{e.isSampled&&(0,C.Z)({metricId:e.metricConfig.metricId,pwtStaticContext:e.metricConfig.pwtStaticContext,result:{type:"ABORT",reason:t}})},U=(e,t,n)=>{var i;let{metricConfig:{metricId:l,pwtStaticContext:r,annotateExperiments:d},annotations:u,binaryAnnotations:c,constraintMap:p,startTime:m,imageTimings:h,isSampled:_,spans:g}=e;(0,s.L8)(`PWT_Complete_${(0,a.KJ)(l)}`);let y=E("initial_app_load"===l.navigationType,null===(i=r.serverData)||void 0===i?void 0:i.trace_id),v=T({annotateExperiments:d,annotations:u,binaryAnnotations:c,constraintMap:p,endTime:t,imageTimings:h,metricId:l,pwtStaticContext:r,startTime:m,traceId:y,spans:g});_&&!n&&(0,C.Z)({metricId:l,pwtStaticContext:r,result:v});try{j(String(v.binaryAnnotationMap["metricId.surface"].value))}catch(e){(0,o.H)("image_ratio_check_error",{error:e})}return{...e,result:v,status:"DONE"}},H=(e,t)=>{if(e.metricConfig.constraints.every(t=>e.constraintMap[t])){let n=Math.max(...e.metricConfig.constraints.map(t=>e.constraintMap[t]));return U(e,n,t)}return e},V=(e,t)=>{let{constraint:n,time:i,disablePWTLogging:l}=t,r=(0,a.KJ)(e.metricConfig.metricId);return F.Z?e.metricConfig.constraints.find(e=>e===n)?e.constraintMap[n]?(N(`constraint "${n}" is already complete.`),(0,o.H)("duplicated_constraint_complete",{constraint:n,action:r}),e):(N(`marking constraint "${n}" as complete`),(0,s.ZP)(`constraint_${n}_is_complete`),H({...e,constraintMap:{...e.constraintMap,[n]:i||F.Z.now()}},l)):(N(`marked constraint "${n}" is not a required constraint.`),e):((0,o.H)("missing_window_performance",{action:r}),e)},G=(e,t)=>{if(!F.Z){let t=(0,a.KJ)(e.metricConfig.metricId);(0,o.H)("missing_window_performance",{action:t})}N(`removing constraint "${t}"`);let n=e.metricConfig.constraints.filter(e=>e!==t),{[t]:i,...l}=e.constraintMap;return H({...e,constraintMap:l,metricConfig:{...e.metricConfig,constraints:n}})},$=(e,t)=>{if(!F.Z){let t=(0,a.KJ)(e.metricConfig.metricId);(0,o.H)("missing_window_performance",{action:t})}N(`updating pwt segment to "${t}"`);let n={...e.metricConfig.metricId,segment:t};return{...e,metricConfig:{...e.metricConfig,metricId:n}}},W=(e,t)=>{let{metricConfig:n,startTime:i,isSampled:l,disablePWTLogging:r}=t;if(r||"TIMING"!==e.status||i===e.startTime||K(e,"routeUpdatedOnSameSurface"),!n)return{status:"DISABLED",metricConfig:null};let s=(0,a.KJ)(n.metricId);if("TIMING"===e.status&&e.startTime===i&&e.constraintMap[B])return(0,o.H)("duplicated_init_route_action",{action:s}),e;if(!r){if("Other"===n.pwtStaticContext.browserName&&!1===n.metricId.isAuthenticated&&"initial_app_load"===n.metricId.navigationType){var d,u,c,p;(0,o.A9)(`TIMING.${s}`,{tags:{userAgent:null===(d=window)||void 0===d?void 0:null===(u=d.navigator)||void 0===u?void 0:u.userAgent}}),(0,o.A9)(`TIMING.sampled.${s}`,{tags:{userAgent:null===(c=window)||void 0===c?void 0:null===(p=c.navigator)||void 0===p?void 0:p.userAgent},sampleRate:.5})}else(0,o.A9)(`TIMING.${s}`),(0,o.A9)(`TIMING.sampled.${s}`,{sampleRate:.5})}return V({status:"TIMING",metricConfig:n,startTime:i,constraintMap:{},annotations:{},binaryAnnotations:{},imageTimings:[],isSampled:l,spans:[]},{constraint:B,disablePWTLogging:r})},q=(e,t)=>{if(N("dispatch action",t),"INIT_ROUTE"===t.type)return W(e,t.payload);if("TIMING"!==e.status)return N(`ignoring action due to invalid state ${e.status}`,t),e;switch(t.type){case"ABORT":K(e,t.reason);let n={type:"ABORT",reason:t.reason};return{...e,status:"DONE",result:n};case"ANNOTATE":let{name:i}=t.payload;if(!F.Z)return e;let l=F.Z.now();return N(`adding annotation {${i}: ${l}}`),{...e,annotations:{...e.annotations,[i]:l}};case"BINARY_ANNOTATE":let{name:r,value:s,annotationType:d}=t.payload;return N(`adding binary annotation {${r}: ${s}}`),{...e,binaryAnnotations:{...e.binaryAnnotations,[r]:{value:s,type:d}}};case"MARK_CONSTRAINT_COMPLETE":return V(e,t.payload);case"REMOVE_CONSTRAINT":return G(e,t.payload);case"SET_SEGMENT":return $(e,t.payload);case"SET_VISUALLY_COMPLETE_RESULT":{let{payload:{imageTimings:n}}=t;if(0===n.length)return K(e,"visuallyComplete_noImages"),{...e,status:"DONE",result:{type:"ABORT",reason:"visuallyComplete_noImages"}};let i=Math.max(...n.map(e=>e.responseEnd||0));return V({...e,imageTimings:n},{constraint:Z,time:i})}case"ADD_SUBSPAN":let{startTime:u}=e,{payload:{name:c,startTime:p,endTime:m,annotations:h,binaryAnnotations:_,parentId:g}}=t;return{...e,spans:[...e.spans,{name:c,id:(0,v.Z)(),startTime:p||u,endTime:m,annotationMap:{...h},binaryAnnotationMap:{..._},parentId:g}]};case"START_SUBSPAN":return{...e,spans:[...e.spans,{name:t.payload.name,id:(0,v.Z)(),startTime:F.Z?F.Z.now():0,endTime:1/0,annotationMap:{...t.payload.annotations},binaryAnnotationMap:{...t.payload.binaryAnnotations},parentId:t.payload.parentId}]};case"STOP_SUBSPAN":let y=e.spans.findIndex(e=>e.name===t.payload.name);return y>-1?(e.spans[y].endTime=F.Z?F.Z.now():0,t.payload.annotations&&(e.spans[y].annotationMap={...e.spans[y].annotationMap,...t.payload.annotations}),t.payload.binaryAnnotations&&(e.spans[y].binaryAnnotationMap={...e.spans[y].binaryAnnotationMap,...t.payload.binaryAnnotations})):(0,o.H)("invalid_subspan_stop_name",{name:t.payload.name}),e;default:let f=(0,a.KJ)(e.metricConfig.metricId);return(0,o.H)("invalid_pwt_surface_action",{action:f}),e}},Y=e=>{if(!e)return"initial_app_load";switch(e.action){case"PUSH":return"client_route_push";case"REPLACE":return"client_route_replace";default:return null}},X=new Set,Q=({surface:e,constraints:t,segment:n,measureGridVisuallyComplete:a,annotateExperiments:r,customEnabledNavigationTypes:o,navigationInfo:{clientNavigation:s,navigationType:u},sampleRate:c})=>{let p=(0,i.useRef)("NOT_SET"),m=(0,d.N5)(),{getState:h,dispatch:_}=L(q,{status:"DISABLED",metricConfig:null}),g=(0,R.B)();if(p.current!==s&&(p.current=s,m)){let{isAuthenticated:i}=m,l=e&&u&&(o||M).includes(u)?{metricId:{type:"surface",surface:e,navigationType:u,isAuthenticated:i,segment:n},annotateExperiments:r,constraints:[B,...t||[],...a?[Z]:[]],pwtStaticContext:m}:null;(0,x.nP)("webapp.pwt_surface.init_route",{tags:{surface:e,navigationType:u,isAuthenticated:i}});let d=!X.has(s);_({type:"INIT_ROUTE",payload:{metricConfig:l,startTime:s?s.time:0,isSampled:!c||Math.random()<c,disablePWTLogging:!d}}),d&&X.add(s)}let y=h();if((0,i.useEffect)(()=>()=>{X.delete(s)},[s]),(0,i.useEffect)(()=>{let e=e=>{_({type:"ABORT",reason:e})};l.Z.onSessionPause(e);let t=window.innerHeight,n=window.innerWidth,i=()=>{var e,l,a;let r=Math.abs(window.innerHeight-t),o=Math.abs(window.innerWidth-n),s=window.innerHeight!==t,d=window.innerWidth!==n,u={handler:(0,z.H)(),deviceType:null!==(e=null==m?void 0:m.deviceType)&&void 0!==e?e:"unknown",isAuthenticated:null!==(l=null==m?void 0:m.isAuthenticated)&&void 0!==l?l:"unknown",platform:null!==(a=g.userAgent.platform)&&void 0!==a?a:"unknown"};(0,x.nP)("webapp.PwtLogger.handleResize",{sampleRate:1,tags:{...u,heightChanged:s,widthChanged:d}}),s&&(0,x.S0)("webapp.PwtLogger.resizeHeightDelta",r,{sampleRate:1,tags:u}),d&&(0,x.S0)("webapp.PwtLogger.resizeWidthDelta",o,{sampleRate:1,tags:u}),window.removeEventListener("resize",i);let c=(null==m?void 0:m.deviceType)==="phone"&&(!d&&s&&r<=150||!s&&!d)||(null==m?void 0:m.deviceType)==="desktop"&&!s&&!d;if(c){(0,x.nP)("webapp.PwtLogger.skipResizeAbort",{sampleRate:1,tags:{...u,heightChanged:s,widthChanged:d}});return}_({type:"ABORT",reason:"windowResized"})};return window.addEventListener("resize",i),()=>{let t=h();N("handling unmount",t),"TIMING"===t.status&&K(t,"unmount"),l.Z.removePauseListener(e),window.removeEventListener("resize",i)}},[]),"TIMING"!==y.status||!y.constraintMap[B])return{state:y,context:null};let{startTime:v,metricConfig:f}=y;return{state:y,context:{abort:e=>_({type:"ABORT",reason:e}),addAnnotation:e=>_({type:"ANNOTATE",payload:{name:e}}),addBinaryAnnotation:(e,t,n)=>_({type:"BINARY_ANNOTATE",payload:{name:e,value:t,annotationType:n}}),addSubspan:(e,t,n,i={},l={},a=null)=>_({type:"ADD_SUBSPAN",payload:{name:e,startTime:t,endTime:n,annotations:i,binaryAnnotations:l,parentId:a}}),getId:()=>v,getMetricId:()=>f.metricId,markConstraintComplete:e=>_({type:"MARK_CONSTRAINT_COMPLETE",payload:{constraint:e,time:F.Z?F.Z.now():0}}),removeConstraint:e=>_({type:"REMOVE_CONSTRAINT",payload:e}),setSegment:e=>_({type:"SET_SEGMENT",payload:e}),setVisuallyCompleteResult:f.constraints.includes(Z)?e=>_({type:"SET_VISUALLY_COMPLETE_RESULT",payload:e}):null,startSubspan:(e,t={},n={},i=null)=>_({type:"START_SUBSPAN",payload:{name:e,annotations:t,binaryAnnotations:n,parentId:i}}),stopSubspan:(e,t={},n={},i=null)=>_({type:"STOP_SUBSPAN",payload:{name:e,annotations:t,binaryAnnotations:n,parentId:i}})}}},J=()=>{let e=(0,u.E)(),t=!!e;(0,i.useEffect)(()=>{if(t){let t=null==e?void 0:e.getMetricId(),n=t?(0,a.KJ)(t):null;(0,o.H)("nested_pwt_surface",{action:n})}},[t])};function ee({children:e,...t}){var n;let i=(0,d.fM)(),l=Y(i),a=[...null!==(n=t.annotateExperiments)&&void 0!==n?n:[]],r={...t,annotateExperiments:a,navigationInfo:{navigationType:l,clientNavigation:i}},{context:o}=Q(r);return J(),(0,O.jsx)(u.S,{value:o,children:e})}},276602:(e,t,n)=>{"use strict";n.d(t,{E:()=>a,S:()=>l});var i=n(425288);let{Provider:l,useMaybeHook:a}=(0,i.Z)("pwtSurfaceContext")},991067:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(969853);let l=()=>{var e;return!!(null!==(e=window.performance)&&void 0!==e&&e.timing)};var a=n(985271);function r(e){return!!("desktop"!==e||l())&&!!a.Z&&(0,i.v)()}},226464:(e,t,n)=>{"use strict";n.d(t,{KJ:()=>u,Rp:()=>d});let i={id:14,name:"own_profile"},l={id:15,name:"other_profile"},a={initial_app_load:{unauth:{board:{id:114,name:"board_page_interactive"},pin_closeup:{id:113,name:"pin_page_interactive"},other_profile:{id:115,name:"user_page_interactive"},topic:{id:119,name:"topic_page_interactive"},sterling_signup:{id:201,name:"sterling_signup_main_pageload"},sterling_login:{id:202,name:"sterling_login_main_pageload"}},auth:{bizhub:{id:607,name:"bizhub_pinteractive"},homefeed:{id:19,name:"home_feed_pinteractive"},sterling_reporting_overview:{id:219,name:"sterling_reporting_overview_pageload"},sterling_ads_create:{id:221,name:"sterling_adscreate_main_pageload"},sterling_ads_duplicate:{id:206,name:"sterling_adsduplication_main_pageload"},sterling_ads_edit:{id:204,name:"sterling_adsedit_main_pageload"},sterling_billing_profile:{id:203,name:"sterling_billingprofile_main_pageload"},sterling_bulk_editor:{id:205,name:"sterling_bulkeditor_main_pageload"},sterling_pin_builder:{id:222,name:"sterling_adscreate_pinbuilder_pageload"},sterling_recommendations:{id:223,name:"sterling_recommendations_pageload"},sterling_reporting_details:{id:218,name:"sterling_reporting_details_pageload"}}},client_route_push:{unauth:{},auth:{bizhub:{id:608,name:"bizhub_page_render"},homefeed:{id:2,name:"home_feed_render"},search:{id:3,name:"search_feed_render"},search_tab:{id:25,name:"search_tab_render"},pin_closeup:{id:13,name:"pin_closeup_details"},sterling_audiences:{id:224,name:"sterling_audiences_page_user_nav"},sterling_ads_edit:{id:225,name:"sterling_edit_flow_user_nav"},sterling_reporting_overview:{id:226,name:"sterling_reporting_overview_user_nav"},sterling_reporting_details:{id:227,name:"sterling_reporting_details_user_nav"},merchant_catalogs_data_sources:{id:228,name:"merchant_catalogs_data_sources_user_nav"},merchant_catalogs_product_groups:{id:229,name:"merchant_catalogs_product_groups_user_nav"},merchant_catalogs_listings:{id:230,name:"merchant_catalogs_listings_user_nav"},own_profile:i,other_profile:l}},client_route_replace:{unauth:{},auth:{own_profile:i,other_profile:l,sterling_reporting_overview:{id:226,name:"sterling_reporting_overview_user_nav"},sterling_ads_edit:{id:225,name:"sterling_edit_flow_user_nav"},merchant_catalogs_data_sources:{id:228,name:"merchant_catalogs_data_sources_user_nav"},merchant_catalogs_product_groups:{id:229,name:"merchant_catalogs_product_groups_user_nav"},merchant_catalogs_listings:{id:230,name:"merchant_catalogs_listings_user_nav"}}}},r={initial_app_load:{auth:{pin_closeup:{product_detail_page:{id:120,name:"product_details_interactive"},product_detail_page_plus:{id:121,name:"product_details_plus_interactive"}}}},client_route_push:{auth:{pin_closeup:{story_pin:{id:700,name:"story_pin_closeup"},product_detail_page:{id:37,name:"product_details_render"},product_detail_page_plus:{id:38,name:"product_details_plus_render"}}}},client_route_replace:{auth:{pin_closeup:{product_detail_page:{id:37,name:"product_details_render"},product_detail_page_plus:{id:38,name:"product_details_plus_render"}}}}},o={board_picker:16,grid_bottom_spinner:12,facebook_autologin:500,google_autologin:501,story_pin_step:701},s=e=>{var t,n;let{navigationType:i,isAuthenticated:l,segment:o,surface:s}=e,d=l?"auth":"unauth",u=null===(t=r[i])||void 0===t?void 0:null===(n=t[d])||void 0===n?void 0:n[s],c=o&&u&&u[o]||a[i][d][s];return c},d=e=>{if("stopwatch"===e.type)return o[e.name]||null;let t=s(e);return t?t.id:null},u=e=>{if("stopwatch"===e.type)return e.name;let{navigationType:t,isAuthenticated:n,segment:i,surface:l}=e,a=s(e);return a?a.name:`${t}_${n?"auth":"unauth"}_${l}${i?"_"+i:""}`}},886302:(e,t,n)=>{"use strict";n.d(t,{w:()=>l});var i=n(45528);let l=function(){let e;let t=!1,n=new Set;return function(l){if(e){l(e);return}n.add(l),t||(t=!0,(0,i.NO)(t=>{for(let i of(e=t,n))i(t),n.delete(i)}))}}()},383434:(e,t,n)=>{"use strict";n.d(t,{Ex:()=>r,XV:()=>a,v5:()=>l});var i=n(7789);let l=(e,t)=>{i.DQ&&(e.style.outline=`10px solid ${t}`,e.style.outlineOffset="-30px")},a=e=>(t,...n)=>{i.DQ&&console.log("string"==typeof t?`[PWT:${e}] ${t}`:t,...n)},r=e=>t=>{i.jn&&console.log(`[CWV:${e}] ${String(t)}`)}},317672:(e,t,n)=>{"use strict";n.d(t,{F9:()=>p,LM:()=>d,VZ:()=>a,cQ:()=>m,rZ:()=>r});var i=n(91885),l=n(790348);let a=()=>"number"==typeof window.innerHeight&&"number"==typeof window.pageYOffset&&!!document.querySelector&&!!document.querySelectorAll,r=e=>e instanceof HTMLDivElement||e instanceof HTMLVideoElement?e.getBoundingClientRect():e.parentElement instanceof HTMLElement?e.parentElement.getBoundingClientRect():null,o=({top:e,height:t},{foldY:n,pageYOffset:i})=>{let l=e+i;if(l>=n)return!1;let a=Math.min(t,n-l);return a>.5*t||a>.2*n},s=e=>{if(e instanceof HTMLImageElement)return e.src;if(e instanceof HTMLVideoElement)return e.attributes.poster.value;let t=(e.style||{}).backgroundImage||"",n=t.match(/^url\(["'](.*)["']\)$/);return n&&n[1]||null},d=()=>document.querySelector?document.querySelectorAll(i.wc).length:((0,l.H)("missing_document_query_selector"),0),u=()=>{if(!document.querySelector)return(0,l.H)("missing_document_query_selector"),null;let e=document.querySelectorAll(i.wc);return e[e.length-1]||null},c=(e,t)=>{let n=r(e);if(!n)return(0,l.H)("missing_client_rect"),!1;if(n.width<100&&n.height<100){let t=e instanceof HTMLImageElement;if(t)return!1;let n=s(e);if(null!=n&&n.endsWith("svg"))return!1}return o(n,t)},p=()=>{let e=u();if(!e)return!1;let t=window.innerHeight||0,n=window.pageYOffset||0,i=e.getBoundingClientRect().top+n>=t;return i},m=(e,t,n)=>{if(!document.querySelector)return(0,l.H)("missing_document_query_selector"),[];let a={foldY:window.innerHeight||0,pageYOffset:window.pageYOffset||0},r=[i.Wf,...e?[i.fF]:[],...t?[i.$N]:[]].join(","),o=[...document.querySelectorAll(r)];if(n){let e=[...document.querySelectorAll('div[data-test-id="board-section"]')],t=e=>{let n=[...e.children];!n.length&&e.style.backgroundImage?o.push(e):n.length&&n.forEach(e=>{t(e)})};e.forEach(e=>{t(e)})}return o.reduce((e,n)=>{if((n instanceof HTMLImageElement||n instanceof HTMLDivElement||n instanceof HTMLVideoElement&&t)&&c(n,a)){let t=s(n);if(t){let i=(t||"").replace(/.*\//,"");return e.concat([{element:n,fileName:i}])}}return e},[])}},91885:(e,t,n)=>{"use strict";n.d(t,{$N:()=>d,Kb:()=>i,Wf:()=>o,fF:()=>s,wc:()=>r});let i="pwt-grid-item",l=`div[data-test-id="${i}"]`,a=['div[data-grid-item="true"]',"div.Grid__Item",l],r=a.join(","),o=a.map(e=>`${e} img`).join(","),s=a.map(e=>`${e} div[style*=background-image]`).join(","),d=a.map(e=>`${e} video`).join(",")},969853:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v,v:()=>m});var i=n(667294),l=n(226464),a=n(383434),r=n(317672),o=n(790348),s=n(543059),d=n(276602),u=n(22773),c=n(35954);let p=(0,a.XV)("GridProfiler"),m=()=>!!window.addEventListener&&!!window.removeEventListener&&(0,r.VZ)(),h=e=>"LAYOUT"===e.status&&500||"TIMING"===e.status&&100||null,_=(e,t)=>{if(!t){let t=(0,r.LM)();if(t===e)return p("No new items, so skip the viewport-fill check."),{complete:!1,numOfItemsChecked:e};if(!(0,r.F9)())return p("Viewport may not be filled yet."),{complete:!1,numOfItemsChecked:t}}return{complete:!0}},g=(e,t)=>{let n=0,i=0,l=0,a=0,r=0;return e=e.filter(e=>"pin"===e.type),t.forEach((t,o)=>{var s,d,u,c,p,m;let h;let _=t.fileName.split(".")[0];_!==(null===(s=h=e[o])||void 0===s?void 0:s.image_signature)&&(h=e.find(e=>_===(null==e?void 0:e.image_signature))),void 0===h?r+=1:h.is_promoted||(null===(d=h.recommendation_reason)||void 0===d?void 0:d.reason)==="PROMOTED_PIN"||null!==(u=h)&&void 0!==u&&null!==(c=u.promoter)&&void 0!==c&&c.length?l+=1:null!==h.story_pin_data_id&&void 0!==h.story_pin_data_id?n+=1:null!==(p=h)&&void 0!==p&&null!==(m=p.videos)&&void 0!==m&&m.video_list?i+=1:a+=1}),{storyPinCount:n,videoCount:i,adCount:l,imageCount:a,unknownCount:r}},y=(e,t)=>{let n=()=>{window.removeEventListener(e,n),t()};return window.addEventListener(e,n),()=>window.removeEventListener(e,n)};function v({isAtEndOfFeed:e,pinData:t,includeBackgroundImages:n,includeVideos:m=!1,includeSections:v}){let f=(0,d.E)(),b=null==f?void 0:f.getId(),x=null==f?void 0:f.setVisuallyCompleteResult,[k,P]=(0,i.useState)({status:"DISABLED"});(0,i.useEffect)(()=>{x?P({status:"LAYOUT",failedCount:0,numOfItemsChecked:0}):P({status:"DISABLED"})},[b,x]),(0,i.useEffect)(()=>{if("DISABLED"!==k.status&&(0,s.ZP)(`GridVisuallyCompleteProfiler_${k.status}`),p("new status",k),"LAYOUT"===k.status){let e=y("scroll",()=>{(0,s.ZP)("scrollDuringLayout")});return()=>{e()}}return()=>{}},[k.status]),(0,c.Z)(()=>{if(!f||!x)return;let{abort:i,getMetricId:s}=f,d=s();switch(k.status){case"LAYOUT":{let t=_(k.numOfItemsChecked,e);t.complete?P({status:"TIMING",failedCount:0,pinElements:(0,r.cQ)(n,m,v)}):500*k.failedCount>6e4?((0,o.A9)(`images.${(0,l.KJ)(d)}.visuallyComplete.maxLayoutAttempt`),i("visuallyComplete_layoutTimeout"),P({status:"DISABLED"})):P({...k,failedCount:k.failedCount+1,numOfItemsChecked:t.numOfItemsChecked});break}case"TIMING":{let e=(0,u.Cg)(),n=k.pinElements.length,r=[],s=0,c=0,m=0;if(k.pinElements.forEach(({element:t,fileName:n})=>{let i=e.find(e=>e.name.endsWith(n));i?i.responseEnd?(r.push(i),(0,a.v5)(t,"green")):(m+=1,(0,a.v5)(t,"blue")):t instanceof HTMLImageElement&&t.complete?(c+=1,(0,a.v5)(t,"red")):(s+=1,(0,a.v5)(t,"greenyellow"))}),s||m)100*k.failedCount>6e4?((0,o.A9)(`images.${(0,l.KJ)(d)}.visuallyComplete.maxAttempt`,{tags:{totalImageCount:n,incompleteCount:s,noTimingCount:c,noTimingResponseEndCount:m}}),i("visuallyComplete_timingTimeout"),P({status:"DISABLED"})):P({...k,failedCount:k.failedCount+1});else{if(p(`All ${r.length} images are fetched`),t&&t.length){let e=g(t,k.pinElements);Object.entries(e).forEach(([e,t])=>{f.addBinaryAnnotation(e,t,"I16")}),(0,o.A9)(`${(0,l.KJ)(d)}.pinTypes`,{tags:e})}x({imageTimings:r}),P({status:"DISABLED"}),(0,o.A9)(`images.${(0,l.KJ)(d)}.visuallyComplete.complete`,{tags:{totalImageCount:n,noTimingCount:c}})}}}},h(k))}},790348:(e,t,n)=>{"use strict";n.d(t,{A9:()=>p,DG:()=>u,H:()=>m,S$:()=>h,iF:()=>c});var i=n(7789),l=n(383434),a=n(50286),r=n(67347);let o=(0,l.XV)("logPwtStats"),s=null,d=!0;function u(e){s={browserName:e.userAgent.browserName,browserVersion:e.userAgent.browserVersion,deviceType:(0,a.Mq)(e),isAuthenticated:e.isAuthenticated,isBot:e.isBot,isSocialBot:e.isSocialBot}}let c=e=>{s&&(s.historyAction=e)},p=(e,t={sampleRate:1},n=!0)=>{let l=i.DQ?1:t.sampleRate;if(!s){o("pwt.metrics_quality.no_context"),(0,r.nP)("pwt.metrics_quality.no_context",{sampleRate:l,tags:{eventName:e}});return}let{browserName:a,browserVersion:d,deviceType:u,isBot:c,isSocialBot:p}=s,m=`pwt.${p&&"socialBot"||c&&"bot"||"nonbot"}.metrics_quality.${u}.${e}`,h={...t.tags||{},browserName:a,browserVersion:(null==d?void 0:d.split(".")[0])||"0"},_="number"==typeof t.count?t.count:1;n&&(o(`${m}: ${_}`),t.tags&&o(Object.entries(t.tags))),i.is||(0,r.QX)(m,_,{sampleRate:l,tags:h})},m=(e,t)=>p(`ERROR.${null!=t&&t.action?t.action+".":""}${e}`,{tags:t}),h=({appLoadName:e,clientNavName:t},n)=>{if(s){let i="APP_VOLUME.";d?(p(i.concat(e),{tags:{browserSupportsPwtProfiler:!!n}}),d=!1):"PUSH"===s.historyAction&&p(i.concat(t),{tags:{browserSupportsPwtProfiler:!!n}})}else(0,r.nP)("pwt.metrics_quality.no_context",{sampleRate:1,tags:{eventName:e.concat(`.${t}`)}})}},543059:(e,t,n)=>{"use strict";n.d(t,{Ao:()=>c,BA:()=>p,L8:()=>h,ZP:()=>_,at:()=>l,gQ:()=>u,tl:()=>m});var i=n(985271);let l="masonryPagination",a={},r=e=>`📌 ${e}`,o=(e,t)=>{let n=r(t);e.mark(n)},s=(e,t,n,i)=>{let l=r(t);e.measure(l,n,i)},d=(e,t)=>{let n=r(t);e.clearMarks(n),e.clearMeasures(n)},u=()=>{let e={};return Object.keys(a).forEach(t=>{(a[t]||[]).slice(0,3).forEach((n,i)=>{let l=i?`${t}_${i+1}`:t;e[l]=n})}),e},c=(e,t)=>(a[e]||[]).filter(e=>e<t).length,p=(e,t)=>c(e,t)>0,m=()=>{i.Z&&Object.keys(a).forEach(e=>d(i.Z,e)),a={}},h=e=>{i.Z&&(a[e]=(a[e]||[]).concat([i.Z.now()]),s(i.Z,e))},_=e=>{i.Z&&(a[e]=(a[e]||[]).concat([i.Z.now()]),o(i.Z,e))}},528961:(e,t,n)=>{"use strict";n.d(t,{cC:()=>a,jy:()=>l,qr:()=>o,sk:()=>r});let i=e=>"number"==typeof e?Math.round(e):e,l=e=>({type:"I16",value:i(e)}),a=e=>({type:"I32",value:i(e)}),r=e=>({type:"STRING",value:e}),o=e=>({type:"BOOL",value:e})},607150:(e,t,n)=>{"use strict";n.d(t,{D3:()=>a,Hd:()=>s,jh:()=>o,rX:()=>r});var i=n(672115),l=n(156381);let a=e=>({...(0,i.Z)(e),domComplete:e.domComplete||0,domContentLoadedEventEnd:e.domContentLoadedEventEnd||0,domContentLoadedEventStart:e.domContentLoadedEventStart||0,domInteractive:e.domInteractive||0,loadEventEnd:e.loadEventEnd||0,loadEventStart:e.loadEventStart||0}),r=()=>{let{firstInputDelay:e,largestContentfulPaint:t}=(0,l.v2)();return{firstInputDelayStart:(null==e?void 0:e.startTime)||0,firstInputDelayEnd:(null==e?void 0:e.endTime)||0,largestContentfulPaint:t||0}},o=(e,t)=>Object.keys(t).reduce((n,i)=>({...n,[`${e}${i}`]:t[i]}),{}),s=(e,t)=>Object.keys(e).reduce((n,i)=>t.includes(i)?{...n,[i]:e[i]}:n,Object.freeze({}))},638089:(e,t,n)=>{"use strict";n.d(t,{ng:()=>v,rA:()=>b});var i=n(226464),l=n(543059),a=n(528961),r=n(156381),o=n(22773),s=n(602738);let d=(e,t)=>(e||[]).reduce((e,n)=>({...e,[`experiment.${n}`]:(0,a.sk)(t(n))}),{}),u=(e,t)=>"number"==typeof t?e(t):null,c=e=>Number(Number(e/1024).toFixed(3)),p=e=>e.reduce((e,t)=>e+t,0),m=(e,t)=>Object.keys(t).reduce((n,i)=>({...n,[`${e}${i}`]:t[i]}),{}),h=e=>{if(!e.length)return{};let t=e.map(({startTime:e,requestStart:t,responseStart:n,responseEnd:i})=>{let l=t||e;return{startTime:e,requestStart:l,responseStart:n||l,responseEnd:i}}),n=p(t.map(e=>e.requestStart-e.startTime)),i=p(t.map(e=>e.responseStart-e.requestStart)),l=p(t.map(e=>e.responseEnd-e.responseStart)),r=n+i+l,o=p(e.map(e=>e.decodedBodySize||0));return{decodedBodySize:(0,a.cC)(c(o)),"duration.all":(0,a.cC)(r),"duration.requestStartToResponseStart":(0,a.cC)(i),"duration.responseStartToResponseEnd":(0,a.cC)(l),"duration.startToRequestStart":(0,a.cC)(n)}},_=e=>{let t=e.filter(e=>!!e.responseEnd);return{...e.length?{...h(t),"count.completed":(0,a.cC)(t.length)}:{},"count.all":(0,a.cC)(e.length)}},g=e=>{let t=["timeSecond1","timeSecond2","timeSecond3"],n={timeSecond1:{start:0,end:0,count:0},timeSecond2:{start:0,end:0,count:0},timeSecond3:{start:0,end:0,count:0}},i={script_deferred:[],external:[],visually_complete:[],script:[],css:[],video:[],image:[],xmlhttprequest:[],other:[]};if(e.length){let{requestStart:l,startTime:a}=e[0].timing,r=l||a;n.timeSecond1.start=r,n.timeSecond1.end=r+1e3,n.timeSecond2.start=r+1e3,n.timeSecond2.end=r+2e3,n.timeSecond3.start=r+2e3,n.timeSecond3.end=r+3e3,e.forEach(e=>{let{timing:l}=e;i[e.category]=i[e.category].concat([l]),e.isDeferred&&(i.script_deferred=i.script_deferred.concat([l])),e.isExternal&&(i.external=i.external.concat([l])),e.isVisuallyCompleteRequired&&(i.visually_complete=i.visually_complete.concat([l]));let{requestStart:a,startTime:r,responseEnd:o}=l,s=a||r;t.forEach(e=>{let{start:t,end:i}=n[e];s>=t&&s<i?n[e].count+=1:s<t&&o>t&&(n[e].count+=1)})})}let l={...m("concurrentRequests.",Object.keys(n).reduce((e,t)=>e={...e,[t]:(0,a.cC)(n[t].count)},{}))},r={...Object.keys(i).reduce((e,t)=>({...e,...m(`resource.${t}.`,_(i[t]))}),l)};return r},y=(e,t,n)=>{var l,r;let d;let{devicePixelRatio:c,navigator:p,innerWidth:m,innerHeight:h,performance:_}=window,{deviceMemory:g,hardwareConcurrency:y,platform:v,userAgent:f,connection:b}=p,{memory:x}=_,{appType:k,appVersion:P,browserName:S,browserVersion:w,deviceType:A,isAppShell:T,isAuthenticated:I,isBot:E,isSocialBot:C,locale:D,osName:j,stageName:F}=t,R="desktop"===A?k||5:k||6,{navigationType:L}=e,z=null;if("initial_app_load"===L){d=1;let e=null===(r=(0,s.Z)("navigation")[0])||void 0===r?void 0:r.transferSize;z=e?parseFloat((.001*e).toFixed(1)):null}else d=4;return{"app.type":(0,a.jy)(R),"app.version":(0,a.sk)(P),"browser.name":(0,a.sk)(S),"browser.version":(0,a.sk)(w),"cpu.speed":(0,a.jy)(y),"device.memory":(0,a.jy)(g),"device.type":(0,a.jy)(0),"device.typeName":(0,a.sk)(A),"device.version":(0,a.sk)("unknown"),"pwt.cause":(0,a.jy)(d),"net.effectiveType":(0,a.sk)((null==b?void 0:b.effectiveType)||null),"net.downlink":(0,a.cC)(u(e=>10*Math.round(e/10),null==b?void 0:b.downlink)),"net.downlinkMax":(0,a.cC)(u(e=>10*Math.round(e/10),null==b?void 0:b.downlinkMax)),"net.rtt":(0,a.cC)(u(e=>10*Math.round(e/10),null==b?void 0:b.rtt)),"net.speed":(0,a.cC)((0,o.Hv)(n,!1)),"pwt.result":(0,a.jy)(1),"view.type":(0,a.cC)(0),"viewport.height":(0,a.cC)(h||0),"viewport.width":(0,a.cC)(m||0),devicePixelRatio:(0,a.cC)(c||0),isAppShell:(0,a.qr)(T),isAuthenticated:(0,a.qr)(I),isBot:(0,a.qr)(E),isSocialBot:(0,a.qr)(C),locale:(0,a.sk)(D),osName:(0,a.sk)(j),...null!==z&&{htmlResponseSize:(0,a.cC)(z)},nextHopProtocol:(0,a.sk)((null===(l=(0,s.Z)("navigation")[0])||void 0===l?void 0:l.nextHopProtocol)||null),platform:(0,a.sk)(v||null),profilerVersion:(0,a.sk)("3"),pwtActionName:(0,a.jy)((0,i.Rp)(e)),stageName:(0,a.sk)(F),userAgent:(0,a.sk)(f),usedJSHeapSize:(0,a.cC)((null==x?void 0:x.usedJSHeapSize)||0),totalJSHeapSize:(0,a.cC)((null==x?void 0:x.totalJSHeapSize)||0),jsHeapSizeLimit:(0,a.cC)((null==x?void 0:x.jsHeapSizeLimit)||0)}},v=({annotateExperiments:e,metricId:t,pwtStaticContext:n,binaryAnnotations:i={},performanceResourceTimings:l=[]})=>({...d(e,n.getExperimentGroup),...y(t,n,l),...i,stopwatchVersion:(0,a.jy)(1)}),f=(e,t)=>{var n;let{navigator:i}=window,{serviceWorker:o}=i,{surface:s,navigationType:d,isAuthenticated:u}=e,{cumulativeLayoutShiftScore:c,longTaskDurations:m}=(0,r.v2)();return{...m.length?{"longTask.count":(0,a.cC)(m.length),"longTask.maxDuration":(0,a.cC)(Math.max(...m)),"longTask.totalDuration":(0,a.cC)(p(m))}:{},cumulativeLayoutShiftScore:(0,a.cC)(100*c),"masonry.paginationMarkCount":(0,a.cC)((0,l.Ao)(l.at,t)),"metricId.isAuthenticated":(0,a.qr)(u),"metricId.navigationType":(0,a.sk)(d),"metricId.surface":(0,a.sk)(s),resourceBufferClearedCount:(0,a.jy)((0,l.Ao)("resourceBufferCleared",t)),scrollDuringLayout:(0,a.qr)((0,l.BA)("scrollDuringLayout",t)),serviceWorker:(0,a.qr)(o?!!o.controller:null),serviceWorkerState:(0,a.sk)((null==o?void 0:null===(n=o.controller)||void 0===n?void 0:n.state)||null)}},b=({annotateExperiments:e,binaryAnnotations:t={},entries:n,metricId:i,performanceResources:l,pwtEndTime:a,pwtStaticContext:r})=>({...t,...g(l),...d(e,r.getExperimentGroup),...y(i,r,n),...f(i,a)})},860273:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(985271);let l=()=>{let[e]=i.Z?i.Z.getEntriesByType("navigation"):[];return e}},453821:(e,t,n)=>{"use strict";n.d(t,{i:()=>i,p:()=>r});let i=({name:e,initiatorType:t})=>{switch(t){case"xmlhttprequest":return"xmlhttprequest";case"img":return"image";case"video":return"video";default:{let t=e.split("."),n=(t.length>1&&t.pop()||"").toLowerCase();if(["js","mjs"].includes(n))return"script";if("css"===n)return"css";if(["mp4","m4v","mov","ts","m3u8"].includes(n))return"video";if(["bmp","gif","jpg","jpeg","png","tiff","webp","svg"].includes(n))return"image";return"other"}}},l=e=>{let t=e.replace(RegExp(`^${window.location.origin||""}`),""),n=document&&document.querySelector(`script[src='${t}']`);return!!n&&n.hasAttribute("defer")},a=e=>["pinimg","pinterest","pinterdev"].every(t=>!e.includes(`${t}`)),r=(e,t)=>{let n=i(e),{name:r}=e;return{category:n,isDeferred:"script"===n&&l(r),isExternal:a(r),isVisuallyCompleteRequired:"image"===n&&t.includes(r),timing:e}}},558775:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var i=n(176532),l=n(7789),a=n(226464),r=n(383434),o=n(790348);let s=null,d=(e,t)=>((s=s||{results:[],context:t}).results.push(e),s);var u=n(528961),c=n(860273),p=n(358864),m=n(602738);let h=(e,t)=>Object.keys(e).reduce((n,i)=>{let l=e[i];return l?{...n,[i]:{timestamp:t+l}}:n},{}),_=e=>Object.keys(e).reduce((t,n)=>{let i=e[n];if(!i)return t;let{value:l,type:a}=i;return null==l?t:t.concat({name:n,value:l,annotation_type:a})},[]),g=({span:e,timeOrigin:t})=>({id:e.id,parent_id:e.parentId||null,result:1,name:e.name,timestamp:t+e.startTime,duration:e.endTime-e.startTime,annotations:h(e.annotationMap,t),binary_annotations:_(e.binaryAnnotationMap)}),y=(e,{startTime:t,endTime:n,annotationMap:i,binaryAnnotationMap:l,parentId:a,traceId:r})=>({name:`pwt/${e}`,startTime:t,endTime:n,annotationMap:i,binaryAnnotationMap:l,parentId:a,id:r}),v=({annotations:e})=>e.reduce((e,{key:t,timestamp:n})=>({...e,[`server_${t}`]:{timestamp:n}}),{}),f=(e,t)=>({...e,annotations:{...v(t),...e.annotations},binary_annotations:[...t.binary_annotations,...e.binary_annotations]}),b=(e,t,n)=>{var i;let l=(0,c.Z)(),a=null==l?void 0:l.responseEnd;return a?f(g({span:{name:"html",startTime:0,endTime:(null==l?void 0:l.responseEnd)||1,annotationMap:{},binaryAnnotationMap:{nextHopProtocol:(0,u.sk)((null===(i=(0,m.Z)("navigation")[0])||void 0===i?void 0:i.nextHopProtocol)||null)},id:e.server_span_id||(0,p.Z)(),parentId:t},timeOrigin:n}),e):null},x=({traceId:e,actionName:t,result:n,timeOrigin:i,serverDataToJoin:l})=>{let a=g({span:y(t,n),timeOrigin:i}),r=null;return l&&(a=f(a,l),r=b(l,e,i)),{trace_id:e,spans:[a,...r?[r]:[],...n.spans.map(e=>g({span:e,timeOrigin:i}))]}},k=e=>({debugTrace:l.eD,locale:e.locale,stageName:e.stageName}),P=(0,r.XV)("reportResult"),S=()=>{var e;return null!==(e=window.performance)&&void 0!==e&&e.now?Date.now()-window.performance.now():"unknown"};function w({metricId:e,pwtStaticContext:t,result:n,isAuth:r}){let{serverData:s}=t,u=(0,a.KJ)(e),c=`${n.type}.${u}`,p=`${n.type}.sampled.${u}`,m=void 0!==r&&{tags:{isAuth:r}}||void 0;if((0,o.A9)(n.reason?c.concat(`.${n.reason}`):c,m),(0,o.A9)(n.reason?p.concat(`.${n.reason}`):p,{...m,sampleRate:.5}),"COMPLETE"!==n.type){P(`Abort metric ${u}`,n);return}let h=S();if("unknown"===h){P(`Unable to convert to absolute times for ${u} due to missing time origin`),(0,o.A9)(`missingTimeOrigin.${u}`,m);return}if(l.is&&(window.PWT_LAB_DATA=d(n,t)),n.spans.length&&(n.spans=n.spans.map(e=>(e.parentId||e.id===n.traceId||"network_resources"===e.name||(e.parentId=n.traceId),e))),!l.is){let l=e.navigationType&&"initial_app_load"===e.navigationType,{traceId:a}=n,r=x({traceId:a,actionName:u,result:n,timeOrigin:h,serverDataToJoin:l&&s||null});(0,i.Z)({type:"POST",url:"/_/_/trace/trace/",data:{report_data:JSON.stringify(r),report_context:JSON.stringify(k(t))}}),P(`PinTrace ${u} will be available shortly: https://pintrace.pinadmin.com/zipkin/traces/${a.toString(16)}`,{duration:n.endTime-n.startTime,result:n,pwtStaticContext:t})}}},672115:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=e=>({connectEnd:e.connectEnd||0,connectStart:e.connectStart||0,domainLookupEnd:e.domainLookupEnd||0,domainLookupStart:e.domainLookupStart||0,fetchStart:e.fetchStart||0,requestStart:e.requestStart||0,redirectEnd:e.redirectEnd||0,redirectStart:e.redirectStart||0,responseEnd:e.responseEnd||0,responseStart:e.responseStart||0,secureConnectionStart:e.secureConnectionStart||0,startTime:e.startTime||0,workerStart:e.workerStart||0,unloadEventStart:e.unloadEventStart||0,unloadEventEnd:e.unloadEventEnd||0})},505771:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(528961),l=n(672115),a=n(358864);let r=({category:e,isDeferred:t,isExternal:n})=>[e].concat(t?["deferred"]:[]).concat(n?["external"]:[]).join("_");function o(e,t){let{category:n,timing:o,isDeferred:s,isExternal:d,isVisuallyCompleteRequired:u}=e;return o.responseEnd&&("image"!==n||u)?{name:r(e),id:(0,a.Z)(),parentId:t,startTime:o.startTime,endTime:o.responseEnd,annotationMap:(0,l.Z)(o),binaryAnnotationMap:{category:(0,i.sk)(n),decodedBodySize:(0,i.cC)(o.decodedBodySize||0),initiatorType:(0,i.sk)(o.initiatorType),isDeferred:(0,i.qr)(s),isExternal:(0,i.qr)(d),name:(0,i.sk)(o.name),nextHopProtocol:(0,i.sk)(o.nextHopProtocol),transferSize:(0,i.cC)(o.transferSize||0)}}:null}},584992:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});var i=n(667294),l=n(425288),a=n(790348),r=n(198462),o=n(383434),s=n(543059),d=n(607150),u=n(638089),c=n(860273),p=n(453821),m=n(558775),h=n(505771),_=n(729524),g=n(169213),y=n(358864),v=n(985271);let f=(0,o.XV)("PwtStopwatch"),b=(e,t)=>{if(v.Z){if("start"===t.type&&!e.isTiming){let{name:n,startTime:i,navigationType:l}=t;return(0,a.A9)(`TIMING.${n}`),{isTiming:!0,name:n,isSampled:t.isSampled,startTime:"number"==typeof i?i:v.Z.now(),metricId:{type:"stopwatch",name:n,navigationType:l},pwtStaticContext:t.pwtStaticContext,annotations:e.annotations,binaryAnnotations:e.binaryAnnotations,spans:e.spans,traceId:e.traceId,spanNameUpdates:e.spanNameUpdates}}if(!e.isTiming){if(t.bypassIsTimingCheck)f("allowing action while stopwatch is not actively timing (bypassIsTimingCheck is set to true)",t);else{let n=t.name||e.name;return f("ignoring action - stopwatch is not actively timing",t),(0,a.A9)(`WARN.${n}.noTiming.${t.type}`),e}}if("annotate"===t.type){let n=v.Z.now();return f(`adding annotation {${t.label}: ${n}}`),{...e,annotations:e.annotations.concat([{label:t.label,timestamp:n}])}}if("binaryAnnotate"===t.type)return f(`adding binary annotation {${t.name}: ${String(t.value)}}`),{...e,binaryAnnotations:{...e.binaryAnnotations,[t.name]:{value:t.value,type:t.annotationType}}};if("binaryAnnotateOperation"===t.type){let{value:n,type:i}=t.binaryAnnotationValueAndType;if(!e.binaryAnnotations[t.name])return{...e,binaryAnnotations:{...e.binaryAnnotations,[t.name]:{value:n,type:i}}};{let l=e.binaryAnnotations[t.name].value||0;return f(`operating on binary annotation {
157
+ name: ${t.name}
158
+ pervious value: ${String(l)}
159
+ operand: ${String(n)}
160
+ }`),{...e,binaryAnnotations:{...e.binaryAnnotations,[t.name]:{value:n?t.operation(l,n):l,type:i}}}}}if("addSubspan"===t.type){f(`adding subspan {${t.name}}`);let n=e.spans.findIndex(e=>e.name===t.name);-1!==n&&f(`WARNING: adding duplicate subspan name {${t.name}}`);let i=t.id||(0,y.Z)(),l=e.spans.findIndex(e=>e.id===i);-1!==l&&f(`WARNING: adding duplicate subspan id {${t.name}: ${i}}`);let a=0;return t.startTime?a=t.startTime:e.startTime?a=e.startTime:f(`WARNING: adding subspan {${t.name}} without start time`),{...e,spans:[...e.spans,{name:t.name,id:i,startTime:a,endTime:t.endTime||1/0,annotationMap:{...t.annotations},binaryAnnotationMap:{...t.binaryAnnotations},parentId:t.parentId}]}}if("subspanStart"===t.type){var n;f(`starting subspan {${t.name}}`);let i=e.spans.findIndex(e=>e.name===t.name);-1!==i&&f(`WARNING: starting duplicate subspan name {${t.name}}`);let l=t.id||(0,y.Z)(),a=e.spans.findIndex(e=>e.id===l);-1!==a&&f(`WARNING: starting duplicate subspan id {${t.name}: ${l}}`);let r=t.parentName?null===(n=e.spans.find(e=>e.name===t.parentName))||void 0===n?void 0:n.id:null;return{...e,spans:[...e.spans,{name:t.name,id:l,parentId:t.parentId||r,startTime:v.Z.now(),endTime:1/0,annotationMap:{...t.annotations},binaryAnnotationMap:{...t.binaryAnnotations}}]}}if("subspanStop"===t.type){if(f(`stopping subspan {${t.name}}`),!t.id){let n=e.spans.reduce((e,n)=>n.name===t.name?[...e,n]:e,[]);n.length>1&&(0,a.H)("duplicate_subspan_stop_name",{name:t.name,type:t.type})}let n=t.id?e.spans.findIndex(e=>e.id===t.id):e.spans.findIndex(e=>e.name===t.name);return n>-1?(e.spans[n].endTime=v.Z.now(),t.annotations&&(e.spans[n].annotationMap={...e.spans[n].annotationMap,...t.annotations}),t.binaryAnnotations&&(e.spans[n].binaryAnnotationMap={...e.spans[n].binaryAnnotationMap,...t.binaryAnnotations})):(0,a.H)("invalid_subspan_stop_name",{name:t.name}),e}if("subspanUpdateName"===t.type){let n=e.spans.reduce((e,n)=>n.name===t.currentName?[...e,n]:e,[]);n.length>1&&(0,a.H)("duplicate_subspan_stop_name",{name:t.currentName,type:t.type});let i=e.spans.findIndex(e=>e.name===t.currentName);return i>-1?t.updateWhenStopwatchCompletes?e.spanNameUpdates=[...e.spanNameUpdates,{currentName:t.currentName,newName:t.newName}]:(f(`renaming subspan {${t.currentName}} to {${t.newName}}`),e.spans[i].name=t.newName):(0,a.H)("no_subspan_found_to_rename",{name:t.currentName}),e}if("stop"===t.type&&e.isTiming){let{startTime:n,metricId:i,pwtStaticContext:l,annotations:a,binaryAnnotations:r,isSampled:o,spans:g,traceId:b}=e;if(t.stopwatchPerformanceObserver&&t.stopwatchPerformanceObserver.disconnect(),o){let o=t.stopTime||v.Z.now(),x=[...g.map(t=>{t.endTime===1/0&&(t.endTime=o);let n=e.spanNameUpdates.findIndex(e=>t.name===e.currentName);return n>-1&&(f(`renaming subspan {${t.name}} to {${e.spanNameUpdates[n].newName}}`),t.name=e.spanNameUpdates[n].newName,e.spanNameUpdates=e.spanNameUpdates.filter(e=>e.newName!==t.name)),t})];if(t.manualAndResourceSpans||0===g.length){let e=(0,y.Z)();x.push({name:"network_resources",id:e,startTime:n,endTime:o,annotationMap:{},binaryAnnotationMap:{},parentId:null},...(t.customStopwatchBuffer||[]).map(t=>(0,h.Z)((0,p.p)(t,[]),e)).filter(Boolean))}let k="initial_app_load"===i.navigationType&&(0,c.Z)(),P={type:"COMPLETE",traceId:b,startTime:n,endTime:o,spans:x,annotationMap:{...(0,_.Z)(a),...(0,d.jh)("browser_",k?(0,d.D3)(k):{}),...(0,d.jh)("mark_",(0,s.gQ)())},binaryAnnotationMap:(0,u.ng)({metricId:i,pwtStaticContext:l,binaryAnnotations:r,performanceResourceTimings:t.customStopwatchBuffer||[]})};(0,m.Z)({metricId:i,pwtStaticContext:l,result:P})}return{isTiming:!1,name:e.name,annotations:[],binaryAnnotations:{},spans:[],traceId:(0,y.Z)(),spanNameUpdates:[]}}if("error"===t.type){let{error:n,stopwatchPerformanceObserver:i}=t;return n&&(0,a.H)(n),i&&i.disconnect(),{isTiming:!1,name:e.name,annotations:[],binaryAnnotations:{},spans:[],traceId:(0,y.Z)(),spanNameUpdates:[]}}if("abort"===t.type&&e.isTiming){t.stopwatchPerformanceObserver&&t.stopwatchPerformanceObserver.disconnect();let{metricId:n,pwtStaticContext:i}=e,l=t.reason||"";return(0,m.Z)({metricId:n,pwtStaticContext:i,result:{type:"ABORT",reason:l}}),{isTiming:!1,name:e.name,annotations:[],binaryAnnotations:{},spans:[],traceId:(0,y.Z)(),spanNameUpdates:[]}}}return e},x=({name:e,sampleRate:t,navigationType:n,manualAndResourceSpans:l=!1})=>{let a=(0,r.N5)(),o=(0,i.useRef)([]),s=(0,i.useRef)(null),[d,u]=(0,i.useReducer)(b,{isTiming:!1,name:e,annotations:[],binaryAnnotations:{},spans:[],traceId:(0,y.Z)(),spanNameUpdates:[]});return a?{isTiming:d.isTiming,start:i=>(window.PerformanceObserver&&(o.current=[],s.current=(0,g.Z)({entryTypes:["resource"]},e=>{o.current=o.current.concat(e.getEntries()),o.current.length>1e3&&(o.current=o.current.slice(-1e3))})),u({type:"start",startTime:i,name:e,navigationType:n,pwtStaticContext:a,isSampled:!t||Math.random()<t})),stop:e=>u({type:"stop",stopTime:e,stopwatchPerformanceObserver:s.current,customStopwatchBuffer:o.current,manualAndResourceSpans:l}),error:e=>{u({type:"error",stopwatchPerformanceObserver:s.current,error:e})},abort:e=>u({type:"abort",stopwatchPerformanceObserver:s.current,customStopwatchBuffer:o.current,reason:e}),annotate:(e,t,n=!1)=>u({type:"annotate",label:e,parentId:t,bypassIsTimingCheck:n}),binaryAnnotate:(e,t,n,i,l=!1)=>u({type:"binaryAnnotate",name:e,value:t,annotationType:n,parentId:i,bypassIsTimingCheck:l}),binaryAnnotateOperation:({name:e,binaryAnnotationValueAndType:t,operation:n,parentId:i,bypassIsTimingCheck:l=!1})=>u({type:"binaryAnnotateOperation",name:e,binaryAnnotationValueAndType:t,operation:n,parentId:i,bypassIsTimingCheck:l}),addSubspan:({name:e,startTime:t,endTime:n,annotations:i={},binaryAnnotations:l={},parentId:a=null,id:r=null,bypassIsTimingCheck:o=!1})=>u({type:"addSubspan",name:e,startTime:t,endTime:n,annotations:i,binaryAnnotations:l,parentId:a,id:r,bypassIsTimingCheck:o}),subspanStart:({name:e,annotations:t={},binaryAnnotations:n={},parentId:i=null,parentName:l=null,id:a=null,bypassIsTimingCheck:r=!1})=>u({type:"subspanStart",name:e,annotations:t,binaryAnnotations:n,parentId:i,parentName:l,id:a,bypassIsTimingCheck:r}),subspanStop:({name:e,annotations:t,binaryAnnotations:n,id:i,parentId:l,bypassIsTimingCheck:a=!1})=>u({type:"subspanStop",name:e,annotations:t,binaryAnnotations:n,id:i,parentId:l,bypassIsTimingCheck:a}),subspanUpdateName:({currentName:e,newName:t,bypassIsTimingCheck:n,updateWhenStopwatchCompletes:i=!0})=>u({type:"subspanUpdateName",currentName:e,newName:t,bypassIsTimingCheck:n,updateWhenStopwatchCompletes:i}),getSpans:(e,t)=>d.spans.filter(n=>n[e]===t),getTraceId:()=>d.traceId}:null};var k=n(785893);let P=({name:e,sampleRate:t,abortOnUnloadOrClientNavigation:n=!0,navigationType:o,manualAndResourceSpans:s=!1})=>{let{Provider:d,useMaybeHook:u}=(0,l.Z)(`Stopwatch_${e}`);return{Provider:function({children:l}){let u=x({name:e,sampleRate:t,navigationType:o,manualAndResourceSpans:s}),c=(0,r.fM)(),p=c?c.time:0,m=(0,i.useRef)(!1),h=null==u?void 0:u.isTiming,_=(0,i.useCallback)(t=>{m.current?(m.current=!1,null==u||u.abort(t)):(0,a.A9)(`WARN.${e}.noTiming.abort`)},[u]),g=(0,i.useCallback)((e,t)=>{null==u||u.annotate(e,t)},[u]),y=(0,i.useCallback)((e,t,n,i)=>{null==u||u.binaryAnnotate(e,t,n,i)},[u]),v=(0,i.useCallback)(({name:e,binaryAnnotationValueAndType:t,operation:n,parentId:i,bypassIsTimingCheck:l})=>{null==u||u.binaryAnnotateOperation({name:e,binaryAnnotationValueAndType:t,operation:n,parentId:i,bypassIsTimingCheck:l})},[u]),f=(0,i.useCallback)(({name:e,startTime:t,endTime:n,annotations:i,binaryAnnotations:l,parentId:a,id:r,bypassIsTimingCheck:o})=>{null==u||u.addSubspan({name:e,startTime:t,endTime:n,annotations:i,binaryAnnotations:l,parentId:a,id:r,bypassIsTimingCheck:o})},[u]),b=(0,i.useCallback)(({name:e,annotations:t,binaryAnnotations:n,parentId:i,parentName:l,id:a,bypassIsTimingCheck:r})=>{null==u||u.subspanStart({name:e,annotations:t,binaryAnnotations:n,parentId:i,parentName:l,id:a,bypassIsTimingCheck:r})},[u]),P=(0,i.useCallback)(({name:e,annotations:t,binaryAnnotations:n,id:i,parentId:l,bypassIsTimingCheck:a})=>{null==u||u.subspanStop({name:e,annotations:t,binaryAnnotations:n,id:i,parentId:l,bypassIsTimingCheck:a})},[u]),S=(0,i.useCallback)(({currentName:e,newName:t,bypassIsTimingCheck:n,updateWhenStopwatchCompletes:i})=>{null==u||u.subspanUpdateName({currentName:e,newName:t,bypassIsTimingCheck:n,updateWhenStopwatchCompletes:i})},[u]),w=(0,i.useCallback)((e,t)=>u?u.getSpans(e,t):[],[u]),A=(0,i.useCallback)(()=>u?u.getTraceId():0,[u]),T=(0,i.useCallback)(t=>{m.current?(m.current=!1,null==u||u.error(t)):(0,a.A9)(`WARN.${e}.noTiming.error`)},[u]),I=(0,i.useCallback)(e=>{m.current&&(null==u||u.abort("duplicated_init_stopwatch_action")),m.current=!0,null==u||u.start(e)},[u]),E=(0,i.useCallback)(t=>{m.current?(m.current=!1,null==u||u.stop(t)):(0,a.A9)(`WARN.${e}.noTiming.stop`)},[u]);(0,i.useEffect)(()=>()=>{n&&_("unloadOrClientNavigation")},[p]);let C=(0,i.useMemo)(()=>({isTiming:h,abort:_,addAnnotation:g,addBinaryAnnotation:y,binaryAnnotationOperation:v,addSubspan:f,subspanStart:b,subspanStop:P,getSpans:w,getTraceId:A,updateSubspanName:S,stop:E,error:T,start:I}),[h,_,g,y,v,f,b,P,w,A,S,E,T,I]);return(0,k.jsx)(d,{value:C,children:l})},useHook:u}}},31062:(e,t,n)=>{"use strict";n.d(t,{ku:()=>I,Jx:()=>w,PY:()=>T});var i=n(383434),l=n(790348),a=n(543059),r=n(607150),o=n(638089),s=n(860273),d=n(156381);let u=()=>(0,d.PJ)().reduce((e,{identifier:t,loadTime:n,renderTime:i})=>e[`${t}_loadTime`]?e[`${t}_dupe_loadTime`]?{...e,[`${t}_dupe_loadTime`]:n,[`${t}_dupe_renderTime`]:i}:e:{...e,[`${t}_loadTime`]:n,[`${t}_renderTime`]:i},Object.freeze({}));var c=n(672115),p=n(464609),m=n(22773);let h=e=>{let t=(0,m.y0)();return e.reduce((e,{name:n,match:i})=>t.filter(e=>i(e)).slice(0,2).reduce((e,t,i)=>({...e,...(0,r.jh)(`${n}${i?"_dupe1":""}_`,(0,c.Z)(t))}),e),Object.freeze({}))},_=e=>{if("pin_closeup"===e){let e=(0,p.Z)();return h([{name:"mainImage",match:({name:t})=>t===e},{name:"PinResource",match:({name:e})=>e.includes("PinResource")}])}return{}};var g=n(453821),y=n(558775),v=n(505771),f=n(69028),b=n(169213),x=n(358864);let k=(0,i.XV)("LightStopwatch"),P=()=>{let e=[],t=null;return window.PerformanceObserver&&(t=(0,b.Z)({entryTypes:["resource"]},t=>{(e=e.concat(t.getEntries())).length>1e3&&(e=e.slice(-1e3))})),{get:()=>e,disconnect:()=>{t&&t.disconnect()}}},S={},w=({annotateExperiments:e,annotateMarks:t,annotateResourceTimingForSurface:n,name:i,pwtStaticContext:d})=>{let c=P(),p=(0,f.Z)(d.fullPath),m=!0,h={...p?{pagePath:{value:p,type:"STRING"}}:{}};(0,l.A9)(`TIMING.${i}`,{tags:{isAuth:d.isAuthenticated}});let b={type:"stopwatch",name:i,navigationType:"initial_app_load"},w={abort:e=>{if(!m){(0,l.H)("duplicate_abort_action",{action:i});return}m=!1,(0,y.Z)({metricId:b,pwtStaticContext:d,result:{type:"ABORT",reason:e}})},error:(e,t)=>{let n={...t,action:i};if(!m){(0,l.H)("duplicate_error_action",n);return}e&&(0,l.H)(e,n),c&&c.disconnect(),m=!1},stop:p=>{if(!m){(0,l.H)("duplicate_stop_action",{action:i});return}m=!1,c.disconnect();let f=(0,x.Z)(),k=(0,s.Z)(),P=c.get(),S={type:"COMPLETE",traceId:(0,x.Z)(),startTime:0,endTime:p,spans:[{name:"network_resources",id:f,startTime:0,endTime:p,annotationMap:{},binaryAnnotationMap:{},parentId:null},...P.map(e=>(0,v.Z)((0,g.p)(e,[]),f)).filter(Boolean)],annotationMap:{...(0,r.jh)("resource_",n?_(n):{}),...(0,r.jh)("element_",u()),...(0,r.jh)("mark_",t&&t.length?(0,r.Hd)((0,a.gQ)(),t):{}),...(0,r.jh)("browser_",k?(0,r.D3)(k):{})},binaryAnnotationMap:(0,o.ng)({annotateExperiments:e,metricId:b,pwtStaticContext:d,performanceResourceTimings:P,binaryAnnotations:h})};(0,y.Z)({metricId:b,pwtStaticContext:d,result:S,isAuth:d.isAuthenticated})},addBinaryAnnotation:(e,t,n)=>{k(`adding binary annotation {${e}: ${String(t)}}`),h={...h,[e]:{value:t,type:n}}}};return S[i]=w,w},A=e=>S[e],T=e=>!!A(e),I=({stopwatchName:e,binaryAnnotationName:t,value:n,annotationType:i})=>{let l=A(e);l&&l.addBinaryAnnotation(t,n,i)}},47168:(e,t,n)=>{"use strict";n.d(t,{T:()=>r,g:()=>o});var i=n(584992);let{Provider:l,useHook:a}=(0,i.Z)({name:"story_pin_step",sampleRate:1}),r=l,o=a},991565:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=e=>e<100?"0-100ms":e<250?"100-250ms":e<500?"250-500ms":e<1e3?"500-1000ms":e<2e3?"1000-2000ms":e<3e3?"2000-3000ms":e<4e3?"3000-4000ms":e<5e3?"4000-5000ms":e<6e3?"5000-6000ms":e<7e3?"6000-7000ms":e<8e3?"7000-8000ms":e<9e3?"8000-9000ms":e<1e4?"9000-10000ms":"10000+ms"},729524:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=e=>{let t={};e.forEach(({label:e,timestamp:n})=>{t={...t,[e]:(t[e]||[]).concat([n])}});let n=Object.freeze({});return Object.keys(t).forEach(e=>{(t[e]||[]).forEach((t,i)=>{let l=i?`${e}_${i+1}`:e;n={...n,[l]:t}})}),n}},156381:(e,t,n)=>{"use strict";let i,l;n.d(t,{Af:()=>g,Bn:()=>_,Kj:()=>h,PJ:()=>u,UQ:()=>v,Ux:()=>c,on:()=>s,v2:()=>p});var a=n(581341),r=n(169213);let o={cumulativeLayoutShiftScore:0,firstInputDelay:null,longTaskDurations:[],largestContentfulPaint:null,elementTimings:[]},s=()=>{o.longTaskDurations=[]},d=(0,a.Z)(()=>o.elementTimings),u=()=>d.get(),c=e=>{e&&d.save(),o.elementTimings=[]},p=()=>o,m=0,h=()=>m,_=()=>i,g=()=>l,y=e=>e.reduce((e,{identifier:t,loadTime:n,renderTime:i})=>e.concat("string"==typeof t&&"number"==typeof n&&"number"==typeof i?[{identifier:t,loadTime:n,renderTime:i}]:[]),[]),v=()=>{(0,r.Z)({type:"element",buffered:!0},e=>{o.elementTimings=o.elementTimings.concat(y(e.getEntries()))}),(0,r.Z)({entryTypes:["longtask"]},e=>{e.getEntries().map(e=>o.longTaskDurations.push(e.duration))},()=>s()),(0,r.Z)({type:"first-input",buffered:!0},(e,t)=>{let n=e.getEntries()[0];n&&n.startTime&&n.processingStart&&(o.firstInputDelay={startTime:n.startTime,endTime:n.processingStart},l=o.firstInputDelay.startTime),t.disconnect()},()=>{o.firstInputDelay=null}),(0,r.Z)({type:"largest-contentful-paint",buffered:!0},e=>{let t=e.getEntries(),n=t.length,l=t[n-1];l&&(m=n,o.largestContentfulPaint=l.renderTime||l.loadTime||null,i=l.renderTime||l.loadTime||null)}),(0,r.Z)({type:"layout-shift",buffered:!0},e=>{let t=e.getEntries();t.forEach(e=>{e.hadRecentInput||(o.cumulativeLayoutShiftScore+=e.value)})})}},311560:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let 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";case"AU":return"AU";case"IN":return"IN";default:return"OTHER"}}},581341:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=e=>{let t=null;return{get:()=>t||e(),save:()=>{t=e()}}}},435851:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=e=>{let{deviceType:t,isBot:n,isSocialBot:i}=e;return`coreWebVitalsLite.v1.${i&&"socialBot"||n&&"bot"||"nonbot"}.${t}`}},69028:(e,t,n)=>{"use strict";function i(e){var t;let n=null!==(t=e.split("?")[0])&&void 0!==t?t:"";if(!n.startsWith("/pin/"))return null;let i=n.split("/")[3];return i?"feedback"===i||"sent"===i?i:null:"default"}n.d(t,{Z:()=>i})},169213:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=(e,t,n)=>{if(!window.PerformanceObserver)return null;try{let i=new window.PerformanceObserver(t);return i.observe(e),window.addEventListener("beforeunload",()=>{i.disconnect()}),n&&window.addEventListener("popstate",()=>{n()}),i}catch(e){return null}}},893641:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});let i=e=>{var t;return e?"HTML"===e.tagName&&null===e.parentElement?"HTML":"BODY"===e.tagName&&(null===(t=e.parentElement)||void 0===t?void 0:t.tagName)==="HTML"?"BODY":e.dataset.layoutShiftBoundaryID||e.dataset.testId?e.dataset.layoutShiftBoundaryID||e.dataset.testId:e.parentElement&&e.parentElement instanceof HTMLDivElement?i(e.parentElement):null:"NODE_REMOVED"},l=e=>{let{target:t}=e.attribution.eventEntry;return t?i(t):"NODE_REMOVED"}},464609:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l,f:()=>i});let i="closeupImage",l=()=>{if(!document.querySelector)return null;let e=document.querySelector('head>link[rel="preload"][as="image"][href^="https://i.pinimg.com/"]');return e instanceof HTMLLinkElement?e.href:null}},358864:(e,t,n)=>{"use strict";function i(){let e="";for(let t=0;t<15;t+=1){let t=Math.floor(10*Math.random());e+="0123456789"[t]}return Number(e)}n.d(t,{Z:()=>i})},22773:(e,t,n)=>{"use strict";let i;n.d(t,{Cg:()=>_,Eg:()=>y,Hv:()=>b,LH:()=>v,MM:()=>x,X_:()=>p,y0:()=>g});var l=n(7789),a=n(790348),r=n(543059),o=n(453821),s=n(581341),d=n(169213),u=n(602738);function c(){window.performance&&window.performance.clearResourceTimings&&((0,r.ZP)("resourceBufferCleared"),l.DQ&&console.info("Warning: Clearing resource timings in default buffer."),(0,a.A9)("resourceBufferSize",{count:(0,u.Z)("resource").length}),window.performance.clearResourceTimings())}let p=({size:e})=>{if(window.performance){window.PerformanceObserver?(i=(0,u.Z)("resource"),(0,d.Z)({entryTypes:["resource"]},t=>{(i=(i||[]).concat(t.getEntries())).length>e&&(i=i.slice(-e))})):(window.addEventListener("popstate",()=>{let t=(0,u.Z)("resource").length;t>e&&c()}),window.performance.setResourceTimingBufferSize&&window.performance.setResourceTimingBufferSize(e));try{window.performance.onresourcetimingbufferfull=()=>{i||c()}}catch(e){}}},m=()=>i||(0,u.Z)("resource"),h=(0,s.Z)(m),_=m,g=()=>h.get(),y=e=>{e&&h.save(),i&&((0,a.A9)("customBufferSize",{count:i.length}),i=[]),c()},v=()=>({customBufferSize:i?i.length:0,defaultBufferSize:(0,u.Z)("resource").length}),f=e=>e.length?e.reduce((e,t)=>e+t,0)/e.length:null,b=(e,t=!0)=>{let n=0,i=0,l=f(e.filter(e=>{if(t){let t="image"===(0,o.i)(e);return!!t&&(e.responseEnd||(n+=1),e.transferSize||(i+=1),!!e.responseEnd&&!!e.transferSize)}return!!e.responseEnd&&!!e.transferSize}).map(e=>{let t=8*(e.transferSize||0),n=(e.responseEnd-e.responseStart)/1e3;return t/n/1e3}));return t&&(n>0&&(0,a.A9)("images.downloadSpeed.noResponseEnd",{tags:{count:n}},!1),i>0&&(0,a.A9)("images.downloadSpeed.transferSize",{tags:{count:i}},!1)),l},x=e=>{if(!e)return"unknown";let t=Math.floor(e/1e3);return t<1?"0-1":t<5?"1-5":t<10?"5-10":t<20?"10-20":t<40?"20-40":t<80?"40-80":"80_or_above"}},602738:(e,t,n)=>{"use strict";function i(e){var t,n;return(null===(t=window)||void 0===t?void 0:null===(n=t.performance)||void 0===n?void 0:n.getEntriesByType)&&window.performance.getEntriesByType(e)||[]}n.d(t,{Z:()=>i})},985271:(e,t,n)=>{"use strict";var i;n.d(t,{Z:()=>l});let l=(i=window.performance)&&i.clearMarks&&i.clearMeasures&&i.clearResourceTimings&&i.getEntries&&i.getEntriesByName&&i.getEntriesByType&&i.mark&&i.measure&&i.now&&i.setResourceTimingBufferSize?i:null},571757:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var i=n(883119),l=n(121151),a=n(898781),r=n(667294),o=n(112690),s=n(356997),d=n(879564),u=n(785893);let c=function({user:e,viewer:t}){let n=(0,a.ZP)(),{full_name:l,image_medium_url:r,domain_url:o,domain_verified:c,is_private_profile:p,reactionType:m,username:h}=e,_=t&&!!t.id&&t.id===e.id,g=p?e.first_name:l,y=d.GY[m],{staticAsset:v}=(0,d.fW)(y,n);return(0,u.jsxs)(i.xu,{display:"flex",justifyContent:"between",paddingX:6,marginTop:6,children:[(0,u.jsx)(i.Tg,{href:`/${h}/`,children:(0,u.jsxs)(i.kC,{alignItems:"center",direction:"row",justifyContent:"start",children:[(0,u.jsx)(i.xu,{width:40,children:(0,u.jsx)(s.qE,{accessibilityLabel:"",name:g,src:r})}),(0,u.jsxs)(i.xu,{display:"flex",direction:"column",paddingX:2,children:[(0,u.jsx)(i.xv,{weight:"bold",children:g}),_&&(0,u.jsx)(i.xv,{size:"200",children:n._('That\'s you', 'Indicates that the viewer is the person in the list', 'Indicates that the viewer is the person in the list')}),!_&&o&&c&&(0,u.jsx)(i.xv,{size:"200",children:o})]})]})}),(0,u.jsx)(i.xu,{padding:2,display:"flex",alignItems:"center",children:(0,u.jsx)(i.xu,{width:26,height:26,dangerouslySetInlineStyle:{__style:{backgroundImage:`url(${v})`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"cover"}}})})]})};var p=n(784590),m=n(304903),h=n(700380),_=n(19121);function g(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class y extends r.Component{constructor(...e){super(...e),g(this,"setRef",e=>{e&&!this.list&&(this.list=e.parentElement,this.list&&this.list.addEventListener("scroll",this.handleScroll))}),g(this,"fetchMore",()=>{let{feedResource:e}=this.props;e.isFetching||(e.isAtEnd?window.removeEventListener("scroll",this.handleScroll):e.fetchMore())}),g(this,"handleScroll",(0,h.Z)(()=>{let{feedResource:e}=this.props;if(e.isFetching||e.isAtEnd)return;let t=(0,m.Uy)(this.list),n=(0,m.aZ)(this.list),i=(0,m.MX)(this.list);n-i-50<t&&this.fetchMore()},10))}componentDidMount(){let{logContextEvent:e,logView:t=!0}=this.props;t&&e({event_type:13,view_type:266,view_parameter:3312})}componentWillUnmount(){this.list&&this.list.removeEventListener("scroll",this.handleScroll)}render(){let{feedResource:{data:e,isFetching:t},viewer:n}=this.props;if(e&&e.length>0){let l=e.map(e=>{let{user:t,reaction_type:n}=e;return{...t,reactionType:n}});return(0,u.jsxs)(i.xu,{marginBottom:6,ref:this.setRef,children:[l.map(e=>(0,u.jsx)(c,{user:e,viewer:n},e.id)),t&&(0,u.jsx)("div",{className:"loadingSpinner",children:(0,u.jsx)(i.$j,{accessibilityLabel:this.props.i18n._('Loading user list', 'Accessibility lable for user list spinner', 'Accessibility lable for user list spinner'),show:!0})})]})}return(0,u.jsx)("div",{className:"loadingSpinner",children:(0,u.jsx)(i.$j,{accessibilityLabel:this.props.i18n._('Loading user list', 'Accessibility lable for user list spinner', 'Accessibility lable for user list spinner'),show:!0})})}}function v(e){let t=(0,a.ZP)(),n=(0,_.Z)(),i=(0,o.Z)(),l=(0,p.Z)({name:"ReactionsResource",options:{pin_id:e.pinId},noCache:!0});return(0,u.jsx)(y,{...e,feedResource:l,viewer:n,i18n:t,logContextEvent:i})}function f({pinId:e,aggregatedReactions:t,totalReactionCount:n,onDismiss:r,logView:o}){let s=(0,a.ZP)(),d=(0,u.jsx)(i.kC,{alignItems:"stretch",justifyContent:"center",children:(0,u.jsxs)(i.xu,{display:"flex",direction:"row",alignItems:"center",height:19,paddingY:6,children:[(0,u.jsx)(i.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:t}),(0,u.jsx)(i.xu,{paddingX:1,children:(0,u.jsx)(i.xv,{weight:"bold",children:n})})]})});return(0,u.jsx)(l.ZP,{mobileAccessibilityCloseIconLabel:s._('close modal', 'pin.reactions.reactedUsers', 'accessibility label for modal close icon'),accessibilityModalLabel:s._('Users who have reacted to this.', 'Label for a modal showing a list of users who have reacted to a pin', 'Label for a modal showing a list of users who have reacted to a pin'),heading:d,onDismiss:r,size:"sm",allowScroll:!0,children:(0,u.jsx)(i.xu,{height:"calc(75% - 90px)",children:(0,u.jsx)(v,{pinId:e,logView:o})})})}},139134:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var i=n(667294),l=n(883119),a=n(288889),r=n(112690),o=n(694379),s=n(898781),d=n(571757),u=n(879564),c=n(681227),p=n(785893);function m(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class h extends i.PureComponent{constructor(...e){super(...e),m(this,"state",{displayAggregationModal:!1}),m(this,"showAggregationModal",()=>{let{disableModal:e,logContextEvent:t}=this.props;e||(this.setState({displayAggregationModal:!0}),t({event_type:101,view_type:3,view_parameter:139,component:13458,element:11435,aux_data:{objectId:this.props.pinId}}))}),m(this,"hideAggregationModal",()=>{this.setState({displayAggregationModal:!1})})}render(){let{displayAggregationModal:e}=this.state,{isBold:t,inCommentModuleExp:n,isInCommentModule:i,isStoryPin:r,paddingY:s,pinId:m,reactionCounts:h}=this.props,_=h?(0,c.At)(h):null,g=h?(0,c.Ud)(h):0,y=!!_&&_.length>0&&_.filter(e=>!!u.GY[e]).map((e,t)=>{let n=u.GY[e],{gridAsset:i}=(0,u.fW)(n,this.props.i18n);return(0,p.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{marginRight:2}},children:(0,p.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{backgroundImage:`url(${i})`,backgroundPosiiton:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"}},height:19,width:19})},t)});return(0,p.jsxs)(l.xu,{children:[(0,p.jsx)("div",{onClick:i?void 0:this.showAggregationModal,onKeyDown:i?void 0:this.showAggregationModal,role:"presentation",children:!!y&&(0,p.jsx)(l.xu,{"data-test-id":"aggregated-reactions-container",display:"inlineBlock",children:n?(0,p.jsx)(l.xv,{weight:"bold",children:(0,p.jsx)(o.Z,{value:g,shortform:!0,shortformMaximumFractionDigits:1})}):(0,p.jsxs)(l.xu,{alignItems:"center",direction:"row",display:"flex",height:r?"auto":19,paddingY:null!=s?s:r?0:6,dangerouslySetInlineStyle:{__style:{cursor:"pointer"}},"data-test-id":"aggregated-reactions-container",children:[(0,p.jsx)(l.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:y}),(0,p.jsx)(l.xu,{paddingX:1,children:(0,p.jsx)(l.xv,{color:t?"default":"subtle",size:a.n,weight:t?"bold":"normal",children:(0,p.jsx)(o.Z,{value:g,shortform:!0,shortformMaximumFractionDigits:1})})})]})})}),e&&g&&(0,p.jsx)(d.Z,{aggregatedReactions:y,onDismiss:this.hideAggregationModal,pinId:m,totalReactionCount:g})]})}}m(h,"defaultProps",{isBold:!0});let _=function(e){let t=(0,s.ZP)(),n=(0,r.Z)();return(0,p.jsx)(h,{...e,i18n:t,logContextEvent:n})}},879564:(e,t,n)=>{"use strict";n.d(t,{GY:()=>x,Go:()=>k,Jg:()=>b,fW:()=>P});var i=n(184508),l=n(147916),a=n(167361),r=n(697031),o=n(404247),s=n(836866),d=n(620668),u=n(86119),c=n(753873),p=n(873774),m=n(479197),h=n(110099),_=n(244892),g=n(485846),y=n(461471),v=n(662502),f=n(239784);let b=["goodIdea","love","thanks","wow","haha"],x={7:"goodIdea",1:"love",13:"thanks",11:"wow",5:"haha"},k={7:"yellow-caramellow-50",1:"red-pushpin-100",13:"teal-spabattical-100",11:"orange-firetini-50",5:"purple-mysticool-100"},P=(e,t,n="darkGray")=>{let b={default:{staticAsset:"white"===n?m:p},goodIdea:{staticAsset:a,animatedAsset:i,gridAsset:l,label:t._('Good idea', 'Reaction label to tell a creator that their pin is a good idea', 'Reaction label to tell a creator that their pin is a good idea'),htmlStyle:`
161
+ @keyframes play90 {
162
+ 0% {
163
+ background-position: 0px 0px;
164
+ }
165
+ 100% {
166
+ background-position: -3600px 0px;
167
+ }
168
+ }
169
+ `,animationStyle:"play90 3000ms steps(90) infinite forwards",type:7},haha:{staticAsset:s,animatedAsset:r,gridAsset:o,label:t._('Haha', 'Reaction label to tell a creator that the pinner laughed because of their pin', 'Reaction label to tell a creator that the pinner laughed because of their pin'),htmlStyle:`
170
+ @keyframes play60 {
171
+ 0% {
172
+ background-position: 0px 0px;
173
+ }
174
+ 100% {
175
+ background-position: -2400px 0px;
176
+ }
177
+ }
178
+ `,animationStyle:"play60 2000ms steps(60) infinite forwards",type:5},love:{staticAsset:c,animatedAsset:d,gridAsset:u,label:t._('Love', 'Reaction label to tell a creator that the pinner loved their pin', 'Reaction label to tell a creator that the pinner loved their pin'),htmlStyle:`
179
+ @keyframes play90 {
180
+ 0% {
181
+ background-position: 0px 0px;
182
+ }
183
+ 100% {
184
+ background-position: -3600px 0px;
185
+ }
186
+ }
187
+ `,animationStyle:"play90 3000ms steps(90) infinite forwards",type:1},thanks:{staticAsset:g,animatedAsset:h,gridAsset:_,label:t._('Thanks', 'Reaction label to tell a creator thank you', 'Reaction label to tell a creator thank you'),htmlStyle:`
188
+ @keyframes play60 {
189
+ 0% {
190
+ background-position: 0px 0px;
191
+ }
192
+ 100% {
193
+ background-position: -2400px 0px;
194
+ }
195
+ }
196
+ `,animationStyle:"play60 2000ms steps(60) infinite forwards",type:13},wow:{staticAsset:f,animatedAsset:y,gridAsset:v,label:t._('Wow', 'Reaction label to tell a creator that the pinner was wowed by their pin', 'Reaction label to tell a creator that the pinner was wowed by their pin'),htmlStyle:`
197
+ @keyframes play90 {
198
+ 0% {
199
+ background-position: 0px 0px;
200
+ }
201
+ 100% {
202
+ background-position: -3600px 0px;
203
+ }
204
+ }
205
+ `,animationStyle:"play90 3000ms steps(90) infinite forwards",type:11}};return b[e]||b.default}},681227:(e,t,n)=>{"use strict";function i(e){let t=Object.keys(e);if(t.length>0){let n=t.sort((t,n)=>e[n]-e[t]).slice(0,3);return n}return null}function l(e){let t=Object.values(e);if(t.length>0){let e=t.reduce((e,t)=>e+t,0);return e}return 0}function a(e,t,n){var i,l;return!e.isPromoted&&!e.isDownstreamPromotion&&!!(null!==(i=e.videos)&&void 0!==i&&i.entityId||e.storyPinDataId)&&!t&&(!(null!==(l=e.board)&&void 0!==l&&l.isCollaborative)||!e.board.collaboratedByMe)&&!n}n.d(t,{At:()=>i,J6:()=>a,Ud:()=>l})},561195:(e,t,n)=>{"use strict";n.d(t,{A:()=>r,Z:()=>o});var i=n(667294),l=n(883119),a=n(785893);let r=({fill:e,width:t})=>{let n="half"===e?(0,a.jsxs)(i.Fragment,{children:[(0,a.jsx)(l.xu,{position:"absolute",children:(0,a.jsx)(l.JO,{accessibilityLabel:"",color:"default",icon:"star-half",size:12})}),(0,a.jsx)(l.JO,{accessibilityLabel:"",color:"subtle",icon:"star",size:12})]}):(0,a.jsx)(l.JO,{accessibilityLabel:"",color:"full"===e?"default":"subtle",icon:"star",size:12});return(0,a.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{marginRight:"3px"}},display:"inlineBlock","data-test-id":`rating-star-${e}`,children:n})};function o({max_rating:e,rating:t,width:n}){var i;let o=[],s=parseFloat(e)||5,d=5*(i=(i=parseFloat(t)||0)<=s?i:s)/s;if(Number.isNaN(d))return null;let u=Math.floor(d),c=d-u;return[...Array(u).keys()].forEach(e=>o.push((0,a.jsx)(r,{fill:"full",width:n},e))),c>=.75?o.push((0,a.jsx)(r,{fill:"full",width:n},o.length)):c>=.25&&o.push((0,a.jsx)(r,{fill:"half",width:n},o.length)),[...Array(5-o.length).keys()].forEach(()=>o.push((0,a.jsx)(r,{fill:"empty",width:n},o.length))),(0,a.jsx)(l.xu,{position:"relative",display:"inlineBlock",width:15*s,children:o})}},923297:(e,t,n)=>{"use strict";function i({m:e=0,h:t=0}){return{m:e,h:t,rm:t>0?0:e,rh:t<=0?t:e>45?t+1:e>15?t+.5:t}}function l(e){let t=Math.floor(e/3600),n=Math.floor(e%3600/60);return i({m:n,h:t})}n.d(t,{X:()=>i,u:()=>l})},833049:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(694379),l=n(349700),a=n(785893);function r({m:e,h:t,rm:n,rh:r},o){return e&&(!t||r<=0)?(0,l.nk)(o._('{{mins}}min', 'closeup.makeRecipeText.minutesLabel', 'Minutes label for Rich Pin Recipe'),{mins:(0,a.jsx)(i.Z,{maximumFractionDigits:2,value:n},"recipe-minutes")}):t?(0,l.nk)(o._('{{hrs}}hr', 'closeup.makeRecipeText.hoursLabel', 'Hours label for Rich Pin Recipe'),{hrs:(0,a.jsx)(i.Z,{maximumFractionDigits:2,value:r},"recipe-hours")}):null}},927220:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(349700);function l(e,t){return e<60?(0,i.nk)(t._('{{mins}}min', 'recipe.minutes', 'recipe in minutes. mins: recipe duration in minutes'),{mins:e}):(0,i.nk)(t._('{{hrs}}h {{mins}} min', 'recipe.time', 'recipe time. mins: recipe duration in minutes. hrs: recipe duration in hours'),{mins:e%60,hrs:Math.floor(e/60)})}},886858:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r,k:()=>a});let i=new Set(["bookmarks","client_tracking_params","get_page_metadata","in_nux","invite_code","original_referrer","source","top_level_source","top_level_source_depth"]),l=e=>!i.has(e)&&!e.startsWith("__track__");function a(e){return e.split(/([^=]+=[^=]+),/).filter(Boolean).reduce((e,t)=>{let[n,i]=t.split("=");return e[n]=JSON.parse(i),e},{})}let r=e=>e?Object.keys("object"==typeof e&&e||{}).filter(e=>"string"==typeof e).filter(l).sort().map(t=>`${t}=${JSON.stringify(null==e[t]?null:e[t])}`).join(","):""},505920:(e,t,n)=>{"use strict";n.d(t,{UZ:()=>c,Z8:()=>p,my:()=>m});var i=n(667294);n(702664);var l=n(214494),a=n(425288),r=n(785893);function o(e,t,n){var i;let l=[...null!==(i=t[e][n.payload.name])&&void 0!==i?i:[],n.payload.handler],a={...t};return a[e]={...t[e],[n.payload.name]:l},a}function s(e,t,n){if(!t[e][n.payload.name])return t;let i=t[e][n.payload.name].filter(e=>e!==n.payload.handler),l={...t};return l[e]={...t[e],[n.payload.name]:i},l}let{Provider:d,useHook:u}=(0,a.Z)("ResourceContext");function c({children:e}){let[{listeners:t,moreListeners:n},a]=(0,i.useReducer)((e,t)=>{switch(t.type){case"addListener":return o("listeners",e,t);case"addMoreListener":return o("moreListeners",e,t);case"removeListener":return s("listeners",e,t);case"removeMoreListener":return s("moreListeners",e,t);default:return e}},{listeners:{},moreListeners:{}});l.Z.fetchCompleteCallback=({resource:e,options:n,response:i,normalizedResponse:l,refresh:a,resourceSchema:r})=>{t[e]&&t[e].forEach(t=>t({isRefresh:a,normalizedResponse:l,options:n,schema:r,resource:e,response:i}))},l.Z.fetchMoreCompleteCallback=({resource:e,options:t,response:i,normalizedResponse:l,refresh:a,resourceSchema:r})=>{n[e]&&n[e].forEach(n=>n({isRefresh:a,normalizedResponse:l,options:t,schema:r,resource:e,response:i}))};let u=(0,i.useMemo)(()=>({listenerDispatch:a}),[]);return(0,r.jsx)(d,{value:u,children:e})}function p(e,t){let{listenerDispatch:n}=u();(0,i.useEffect)(()=>(n({type:"addListener",payload:{name:e,handler:t}}),()=>{n({type:"removeListener",payload:{name:e,handler:t}})}))}function m(e,t){let{listenerDispatch:n}=u();(0,i.useEffect)(()=>(n({type:"addMoreListener",payload:{name:e,handler:t}}),()=>{n({type:"removeMoreListener",payload:{name:e,handler:t}})}))}},248327:(e,t,n)=>{"use strict";n.d(t,{U:()=>c,b:()=>p});var i=n(214494),l=n(886858),a=n(718368),r=n(414327),o=n(782677),s=n(483025);let d=(e,{bookmark:t,options:n,schema:i})=>{let l=i||s.Z[e];return"function"==typeof l?l({resource:e,options:n,bookmark:t}):l};function u({fetchOptions:e,resource:t,retry:n}){return(s,c)=>{var p,m,h;let{bookmark:_,paginationGroup:g,headers:y,options:v,refresh:f,schema:b}=e,x=(0,l.Z)(v);if(null!==(p=c().resources)&&void 0!==p&&null!==(m=p[t])&&void 0!==m&&null!==(h=m[x])&&void 0!==h&&h.fetching&&!n)return Promise.resolve();let k=n?n.bookmark:_,P=k?{...v,bookmarks:[k],pagination_group:g}:v;return s((0,r.LQ)(t,v,!0)),i.Z.create(t,P).callGet(void 0,y).then(l=>{var c;let{data:p}=l.resource_response,[m]=l.bookmarks||[];if(Array.isArray(p)&&0===p.length&&m&&m!==a.q){let i=n?n.count:0,l=i>=a.s;if(!l)return s(u({resource:t,fetchOptions:e,retry:{count:i+1,bookmark:m}}))}c=p,"VisualSearchFlashlightUnifiedResource"===t&&(c=c.results);let{normalizedResponse:h,resourceSchema:g}=function({data:e,opts:{bookmark:t,options:n,schema:i},resource:l}){let a=d(l,{bookmark:t,options:n,schema:i}),r=a&&e?(0,o.Fv)(e,a):null;return{normalizedResponse:r,resourceSchema:a}}({data:p,opts:{bookmark:_,options:v,schema:b},resource:t})||{normalizedResponse:null,resourceSchema:void 0};return _?(s((0,r.Dm)(t,v,l,h,g)),i.Z.fetchMoreCompleteCallback&&i.Z.fetchMoreCompleteCallback({resource:t,options:v,response:l,normalizedResponse:h,refresh:f,resourceSchema:g})):(s((0,r.Sr)(t,v,l,h,f,g)),i.Z.fetchCompleteCallback&&i.Z.fetchCompleteCallback({resource:t,options:v,response:l,normalizedResponse:h,refresh:f,resourceSchema:g})),Promise.resolve()},e=>{s((0,r.Tl)(t,v,e))})}}let c=(e,{bookmark:t,headers:n,options:i,schema:l,paginationGroup:a})=>u({resource:e,fetchOptions:{bookmark:t,headers:n,options:i,refresh:!1,schema:l,paginationGroup:a}}),p=(e,{headers:t,options:n,schema:i})=>u({resource:e,fetchOptions:{headers:t,options:n,refresh:!0,schema:i}})},176843:(e,t,n)=>{"use strict";function i(e,t){let n;if(e.error){let{httpStatus:i,api_error_code:l,redirectUrl:a}=e.error;(404===i||401===i&&7===l)&&(n={pathname:t?"/ideas/":"/",state:{showError:!0}}),301===i&&a&&(n={pathname:a})}return n}n.d(t,{Z:()=>i})},338739:(e,t,n)=>{"use strict";n.d(t,{AF:()=>i,KK:()=>l,aW:()=>o,cR:()=>a,se:()=>s,zP:()=>r});let i="CREATE_COMPLETE",l="FETCHING",a="FETCH_ERROR",r="FETCH_COMPLETE",o="FETCH_MORE_COMPLETE",s="RESOURCE_INVALIDATE"},414327:(e,t,n)=>{"use strict";n.d(t,{Dm:()=>s,LQ:()=>a,Sr:()=>o,Tl:()=>r,XM:()=>l,jB:()=>d});var i=n(338739);function l(e,t,n,l){return{type:i.AF,payload:{resource:e,options:t,response:n,normalizedResponse:l}}}function a(e,t,n){return{type:i.KK,payload:{resource:e,options:t,isFetching:n}}}let r=(e,t,n)=>({type:i.cR,payload:{resource:e,options:t,error:n}});function o(e,t,n,l,a,r){return{type:i.zP,payload:{isRefresh:a,normalizedResponse:l,options:t,resource:e,response:n,schema:r}}}function s(e,t,n,l,a){return{type:i.aW,payload:{resource:e,options:t,response:n,normalizedResponse:l,schema:a}}}function d(e,t){return{type:i.se,payload:{resource:e,optionsOrOptionsKey:t}}}},784590:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(667294),l=n(702664),a=n(616550),r=n(886858),o=n(780280),s=n(248327),d=n(718368);let u={},c=({httpStatus:e})=>!e||e>=500;function p(e){let{enabledRouteRefresh:t,__unstableEnableSuspenseSupport:n,headers:p,name:m,noCache:h,options:_,schema:g}=null!=e?e:{name:"DisabledResource",options:null},y=!e,v=(0,l.useDispatch)(),f=(0,r.Z)(_),b=(0,i.useRef)(null),x=(0,i.useRef)(),k=(0,a.useHistory)(),P=k&&"POP"!==k.action,S=e=>(e[m]||u)[f]||u,w=(0,l.useSelector)(({resources:e})=>S(e).nextBookmark),A=(0,l.useSelector)(({resources:e})=>S(e).data),T=(0,l.useSelector)(({resources:e})=>S(e).auxData),I=(0,l.useSelector)(({resources:e})=>S(e).error),E=(0,l.useSelector)(({resources:e})=>!!S(e).fetching),C="object"==typeof T&&"string"==typeof(null==T?void 0:T.pagination_group)?T.pagination_group:void 0,D=!!I||void 0!==A,j=D&&!E&&w===d.q,F=!!(D&&t&&P&&!y),[R,L]=(0,i.useState)(F),z=(0,i.useCallback)((e,t)=>{b.current=v((0,s.U)(m,{options:_,schema:g,bookmark:e,headers:p,paginationGroup:t}))},[v,m,f,g,p]),O=()=>{b.current=v((0,s.b)(m,{options:_,schema:g,headers:p}))},{isBot:M}=(0,o.B)(),N=()=>{if(!y&&x.current!==f){let e=void 0===x.current;x.current=f,!D&&!E||e&&I&&c(I)?z():(!M&&h||F)&&O()}};(0,i.useEffect)(()=>{n||N()}),n&&N();let B=(0,i.useCallback)(()=>{y||(O(),L(!0))},[y,s.b,m,f,p,L]),Z=(0,i.useCallback)(()=>{!w||j||E||y||z(w,C)},[y,z,w,j,E,C]);if(b.current){if(D&&!E)b.current=null;else if(n)throw b.current}let K=(0,i.useRef)({auxData:void 0,data:void 0,error:void 0,fetchMore:Z,isAtEnd:!1,isFetching:!1,isLoaded:!1,isRefreshing:!1,nextBookmark:void 0,refresh:B}),U={auxData:T,data:A,error:I,fetchMore:Z,isAtEnd:j,isFetching:E,isLoaded:D,isRefreshing:R,nextBookmark:w,refresh:B};return(0,l.shallowEqual)(U,K.current)||(R&&(K.current.data||!F)&&!(0,l.shallowEqual)(U.data,K.current.data)&&(U.isRefreshing=!1,L(!1)),K.current=U),K.current}},989726:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(616550),l=n(53987),a=n(176843),r=n(784590),o=n(19121);function s(e){let t=(0,i.useHistory)(),n=(0,i.useLocation)(),{isAuth:s}=(0,o.Z)(),d=!s&&(0,l.L6)(n),u=(0,r.Z)(e),c=(0,a.Z)(u,d);return c&&t.replace(c.pathname,c.state),u}},844255:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h,g:()=>m});var i,l=n(167912),a=n(224496),r=n(862193);let o=void 0!==i?i:i=n(269860),s=e=>{var t,n,i,l,a,r;if(e)return{thumbnail:null!==(t=e.thumbnail)&&void 0!==t?t:void 0,url:null!==(n=e.url)&&void 0!==n?n:void 0,width:null!==(i=e.width)&&void 0!==i?i:void 0,height:null!==(l=e.height)&&void 0!==l?l:void 0,duration:null!==(a=e.duration)&&void 0!==a?a:void 0,captions_urls:null!==(r=e.captionsUrls)&&void 0!==r?r:{}}},d=e=>{if(!e)return;let t={V_720P:s(e.v720P),V_HLSV4:s(e.vHLSV4)};return t},u=e=>{var t,n,i,l,a,r,o;if(!e)return;let d={V_HLSV3_MOBILE:s(null===(t=e.videoListMobile)||void 0===t?void 0:t.vHLSV3MOBILE),V_EXP3:s(null===(n=e.videoListEXP3)||void 0===n?void 0:n.vEXP3),V_EXP4:s(null===(i=e.videoListEXP4)||void 0===i?void 0:i.vEXP4),V_EXP5:s(null===(l=e.videoListEXP5)||void 0===l?void 0:l.vEXP5),V_EXP6:s(null===(a=e.videoListEXP6)||void 0===a?void 0:a.vEXP6),V_EXP7:s(null===(r=e.videoListEXP7)||void 0===r?void 0:r.vEXP7),V_720P:s(null===(o=e.videoList720P)||void 0===o?void 0:o.v720P)};return d},c=e=>{if(!e)return;let t={height:e.height||void 0,url:e.url||void 0,width:e.width||void 0};return{orig:t,originals:t}},p=e=>{if(!e)return null;let t=[["60x60",e.imageSpec_60x60],["136x136",e.imageSpec_136x136],["170x",e.imageSpec_170x],["236x",e.imageSpec_236x],["474x",e.imageSpec_474x],["564x",e.imageSpec_564x],["736x",e.imageSpec_736x],["600x315",e.imageSpec_600x315],["orig",e.imageSpec_orig]];return t.reduce((e,[t,n])=>({...e,[t]:n&&{dominant_color:n.dominantColor,height:n.height,type:n.type,url:n.url,width:n.width}}),{})},m=({blocks:e})=>{if(!e)return;let t=[];return e.forEach(e=>{var n,i,l,r,o,s,d,p;if(9===e.blockType){let i={block_type:9,type:"story_pin_text_block",text:null!==(n=e.text)&&void 0!==n?n:void 0};t.push(i)}if(5===e.blockType){let n={block_type:5,type:a.h8.INGREDIENT,name:null!==(i=e.name)&&void 0!==i?i:void 0};t.push(n)}if(6===e.blockType){let n={block_type:6,type:a.h8.SUPPLY,name:null!==(l=e.name)&&void 0!==l?l:void 0};t.push(n)}if(0===e.blockType){let n={block_type:0,type:a.h8.PARAGRAPH,text:null!==(r=e.text)&&void 0!==r?r:void 0};t.push(n)}if(1===e.blockType){let n={block_type:1,type:a.h8.HEADING,text:null!==(o=e.text)&&void 0!==o?o:void 0};t.push(n)}if(3===e.blockType){let n={block_type:3,type:a.h8.VIDEO,text:null!==(s=e.text)&&void 0!==s?s:void 0,video:e.videoData?{video_list:u(e.videoData)}:void 0,video_data:e.videoData?{seo_view_count:e.videoData.seoViewCount}:void 0};t.push(n)}if(2===e.blockType){let n={block_type:2,type:a.h8.IMAGE,text:null!==(d=e.text)&&void 0!==d?d:void 0,image:e.imageSpec_orig?{images:c(e.imageSpec_orig)}:void 0};t.push(n)}if(7===e.blockType){let n={block_type:7,type:"story_pin_list_block",blocks:m({blocks:null!==(p=e.blocks)&&void 0!==p?p:void 0})};t.push(n)}}),t},h=e=>{var t,n,i,a,s,u,h,_,g,y,v,f,b,x,k,P,S,w,A,T,I,E,C,D,j,F,R,L,z,O,M,N,B,Z,K,U,H,V,G,$,W,q,Y,X;let Q=(0,l.useFragment)(o,e),J=p(Q),ee=(0,r.Z)(Q),et={id:Q.entityId,title:Q.title,grid_title:Q.gridTitle,story_pin_data_id:Q.storyPinDataId,created_at:Q.createdAt,description:Q.description,closeup_unified_description:null!==(t=Q.closeupUnifiedDescription)&&void 0!==t?t:void 0,price_currency:Q.priceCurrency,domain:Q.domain,description_html:Q.descriptionHtml,aggregated_pin_data:Q.aggregatedPinData?{comment_count:Q.aggregatedPinData.commentCount}:void 0,embed:Q.embed?{src:null!==(n=Q.embed.src)&&void 0!==n?n:void 0,subtype:null!==(i=Q.embed.subtype)&&void 0!==i?i:void 0,type:null!==(a=Q.embed.type)&&void 0!==a?a:void 0}:void 0,board:Q.board?{url:null!==(s=Q.board.url)&&void 0!==s?s:""}:void 0,rich_summary:Q.richSummary?{display_name:Q.richSummary.displayName}:void 0,pinner:Q.pinner?{username:null!==(u=Q.pinner.username)&&void 0!==u?u:void 0,full_name:null!==(h=Q.pinner.fullName)&&void 0!==h?h:void 0}:void 0,reaction_counts:Q.reactionCountsData&&Q.reactionCountsData.reduce((e,t)=>{if(t.reactionType){let n=String(t.reactionType);e[n]=t.reactionCount||0}return e},{}),share_count:Q.shareCount||void 0,rich_metadata:Q.richMetadata?{description:Q.richMetadata.description,title:Q.richMetadata.title,url:Q.richMetadata.url,site_name:Q.richMetadata.siteName,article:Q.richMetadata.article?{date_published:Q.richMetadata.article.datePublished}:void 0,products:Q.richMetadata.products?Q.richMetadata.products.map(e=>({name:e.name,offer_summary:e.offerSummary?{min_price:e.offerSummary.minPrice,price:e.offerSummary.price,max_price:e.offerSummary.maxPrice}:void 0})):void 0,aggregate_rating:null!==(_=Q.richMetadata)&&void 0!==_&&_.aggregateRating?{rating_count:null!==(g=Q.richMetadata.aggregateRating.ratingCount)&&void 0!==g?g:void 0,review_count:null!==(y=Q.richMetadata.aggregateRating.reviewCount)&&void 0!==y?y:void 0,rating_value:null!==(v=Q.richMetadata.aggregateRating.ratingValue)&&void 0!==v?v:void 0}:void 0,recipe:null!==(f=Q.richMetadata)&&void 0!==f&&f.recipe?{name:Q.richMetadata.recipe.name,from_aggregated_data:null!==(b=Q.richMetadata.recipe.fromAggregatedData)&&void 0!==b?b:void 0,cook_times:Q.richMetadata.recipe.cookTimes?{cook:Q.richMetadata.recipe.cookTimes.cook?{h:Q.richMetadata.recipe.cookTimes.cook.h,m:Q.richMetadata.recipe.cookTimes.cook.m}:void 0,prep:Q.richMetadata.recipe.cookTimes.prep?{h:Q.richMetadata.recipe.cookTimes.prep.h,m:Q.richMetadata.recipe.cookTimes.prep.m}:void 0,total:Q.richMetadata.recipe.cookTimes.total?{h:Q.richMetadata.recipe.cookTimes.total.h,m:Q.richMetadata.recipe.cookTimes.total.m}:void 0}:void 0,servings_summary:Q.richMetadata.recipe.servingsSummary?{serves:Q.richMetadata.recipe.servingsSummary.serves,summary:Q.richMetadata.recipe.servingsSummary.summary}:void 0,aggregate_rating:Q.richMetadata.recipe.aggregateRating?{rating_count:null!==(x=Q.richMetadata.recipe.aggregateRating.ratingCount)&&void 0!==x?x:void 0,review_count:null!==(k=Q.richMetadata.recipe.aggregateRating.reviewCount)&&void 0!==k?k:void 0,rating_value:null!==(P=Q.richMetadata.recipe.aggregateRating.ratingValue)&&void 0!==P?P:void 0,best_rating:null!==(S=Q.richMetadata.recipe.aggregateRating.bestRating)&&void 0!==S?S:void 0}:void 0,categorized_ingredients:Q.richMetadata.recipe.categorizedIngredients?Q.richMetadata.recipe.categorizedIngredients.map(({ingredients:e})=>({ingredients:e?e.map(({amt:e,name:t})=>({amt:e,name:null!=t?t:void 0})):void 0})):void 0}:void 0}:void 0,videos:Q.videos?{video_list:d(Q.videos.videoList),seo_view_count:null===(w=Q.videos)||void 0===w?void 0:w.seoViewCount}:void 0,story_pin_data:Q.storyPinData?{total_video_duration:null!==(A=Q.storyPinData.totalVideoDuration)&&void 0!==A?A:void 0,metadata:Q.storyPinData.metadata?{pin_title:null!==(T=Q.storyPinData.metadata.pinTitle)&&void 0!==T?T:void 0,template_type:[1,2].includes(Q.storyPinData.metadata.templateType)?null===(I=Q.storyPinData)||void 0===I?void 0:null===(E=I.metadata)||void 0===E?void 0:E.templateType:void 0,basics:null!==(C=Q.storyPinData)&&void 0!==C&&null!==(D=C.metadata)&&void 0!==D&&D.basics?{key_value_blocks:Q.storyPinData.metadata.basics.keyValueBlocks?Q.storyPinData.metadata.basics.keyValueBlocks.map(e=>{var t;return{block_type:8,category_type:null!==(t=e.categoryType)&&void 0!==t?t:void 0,type:"story_pin_key_value_block",value:e.value}}):void 0,list_blocks:null!==(j=Q.storyPinData)&&void 0!==j&&null!==(F=j.metadata)&&void 0!==F&&null!==(R=F.basics)&&void 0!==R&&R.listBlocks?Q.storyPinData.metadata.basics.listBlocks.map(e=>{var t;return{block_type:7,type:"story_pin_list_block",blocks:m(e),heading:null!==(t=e.heading)&&void 0!==t?t:void 0}}):void 0}:void 0}:void 0,pages:null!==(L=Q.storyPinData)&&void 0!==L&&L.pages?Q.storyPinData.pages.map(e=>{var t;return{layout:null!==(t=e.layout)&&void 0!==t?t:void 0,blocks:m(e),image:e.imageSpec_orig?{images:c(e.imageSpec_orig)}:void 0,image_adjusted:e.imageAdjustedSpec_orig?{images:c(e.imageAdjustedSpec_orig)}:void 0}}):void 0}:void 0,native_creator:Q.nativeCreator?{username:null!==(z=Q.nativeCreator.username)&&void 0!==z?z:void 0,full_name:null!==(O=Q.nativeCreator.fullName)&&void 0!==O?O:void 0,profile_url:null!==(M=Q.nativeCreator.profileUrl)&&void 0!==M?M:void 0,follower_count:null!==(N=Q.nativeCreator.followerCount)&&void 0!==N?N:void 0}:void 0,link_domain:Q.linkDomain?{official_user:Q.linkDomain.officialUser?{full_name:null!==(B=Q.linkDomain.officialUser.fullName)&&void 0!==B?B:void 0}:void 0,type:"domain"}:void 0,link:null!==(Z=Q.link)&&void 0!==Z?Z:"",tracked_link:null!==(K=Q.trackedLink)&&void 0!==K?K:"",seo_title:null!==(U=Q.seoTitle)&&void 0!==U?U:"",seo_description:null!==(H=Q.seoDescription)&&void 0!==H?H:"",seo_url:null!==(V=Q.seoUrl)&&void 0!==V?V:"",seo_noindex_reason:null!==(G=Q.seoNoindexReason)&&void 0!==G?G:void 0,repin_count:null!==($=Q.repinCount)&&void 0!==$?$:0,pin_join:Q.pinJoin?{seo_canonical_domain:null!==(W=Q.pinJoin.seoCanonicalDomain)&&void 0!==W?W:"",seo_canonical_url:null!==(q=Q.pinJoin.seoCanonicalUrl)&&void 0!==q?q:"",visual_annotation:null!==(Y=Q.pinJoin.visualAnnotation)&&void 0!==Y?Y:void 0,annotations_with_links:ee}:void 0,category:null!==(X=Q.category)&&void 0!==X?X:"",images:J};return et}},995228:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(667294),l=n(785893);function a({children:e,fallback:t}){return(0,l.jsx)(i.Suspense,{fallback:t||null,children:e})}},947599:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(995228);let l=i.Z},304903:(e,t,n)=>{"use strict";function i(e){return e===window?window.innerHeight:e.clientHeight}function l(){return void 0!==window.scrollY?window.scrollY:document.documentElement&&void 0!==document.documentElement.scrollTop?document.documentElement.scrollTop:0}function a(e){return e===window&&document.documentElement?document.documentElement.scrollHeight:e.scrollHeight}function r(e){return e===window?l():e.scrollTop}function o(){window&&window.scroll(0,0)}n.d(t,{MX:()=>r,S$:()=>l,Uy:()=>i,aZ:()=>a,vM:()=>o})},862628:(e,t,n)=>{"use strict";function i(e){return(e||"").trim().replace(/\s+/g," ")}n.d(t,{Z:()=>i})},595371:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});let i={AC:"ac",AUTOCOMPLETE:"autocomplete",DIRECT_NAVIGATION:"direct_navigation",FILTER:"filter",GUIDED_SEARCH_ENTRY:"guided_search_entry",GUIDED_SEARCH_LANDING:"guided_search_landing",HASHTAG_CLOSEUP:"hashtag_closeup",HASHTAG_PINREP:"hashtag_pinrep",HOMEFEED_BUBBLE:"homefeed_bubble",HUB_PAGE:"hub_page",IMAGE_ONLY_ATTRIBUTION:"image_only_attribution",LANDING_PAGE_STORY:"landing_page_story",NO_RESULTS_SEARCH_STORY:"no_results_search_story",PRODUCT:"product",REMOVE:"remove",RS:"rs",SITELINKS_SEARCHBOX:"sitelinks_searchbox",SLP_REC_CURATED:"slp_rec_curated",SLP_REC_TRENDING:"slp_rec_trending",SRS:"srs",STRUCTURED_GUIDE:"structured_guide",TRENDING:"trending",TYPED:"typed",TYPO_AUTO_ORIGINAL:"typo_auto_original",TYPO_SUGGESTION:"typo_suggestion",UNKNOWN:"Unknown",VANILLA_GUIDE:"guide",VIDEO:"video"}},458882:(e,t,n)=>{"use strict";n.d(t,{l:()=>a,r:()=>r});var i=n(667294);let l=(0,i.createContext)(null),a=()=>(0,i.useContext)(l),r=l.Provider},667679:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(780679),l=n(458882);let a=()=>{let e=(0,i.g)(),t=(0,l.l)();return n=>{let{mobileOptions:i,desktopOptions:l,reason:a,attributionLabel:r,pinId:o}=n;e?e.showDesktopSignupModal({signupFlow:(null==l?void 0:l.modalType)==="login"?{type:"login"}:{type:"signup"},reason:a,attributionLabel:r,...null==l?void 0:l.modalOptions}):t&&t.showMobileSignupModal({reason:a,attributionLabel:r,headingType:null==i?void 0:i.headingType,pinId:o})}}},619277:(e,t,n)=>{"use strict";n.d(t,{o$:()=>l,ty:()=>a,vE:()=>r});var i=n(425288);let{Provider:l,MaybeConsumer:a,useMaybeHook:r}=(0,i.Z)("inviteContext")},867060:(e,t,n)=>{"use strict";n.d(t,{LO:()=>a,Pu:()=>r,cc:()=>i,dB:()=>l,yF:()=>o});let 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},l={10:13415,11:13416,6:13417,5:13418,14:13419,12:13420,15:13421,8:13422,4:13423,1:13424,3:13424,18:13425,19:13426,20:13427,21:13428,22:13429,23:13430,26:13431,27:13432,29:13433,9:13434},a={10:13436,11:13437,6:13438,5:13439,14:13440,12:13441,15:13442,8:13443,4:13444,1:13445,3:13445,18:13446,19:13447,20:13448,21:13449,22:13450,23:13451,26:13452,27:13453,29:13454,9:13455},r={10:13457,11:13458,6:13459,5:13460,14:13461,12:13462,15:13463,8:13464,4:13465,1:13466,3:13466,18:13467,19:13468,20:13469,21:13470,22:13471,23:13472,26:13473,27:13474,29:13475,9:13476},o={pin:1,board:2,did_it:6,pinner:3,user:3,today_article:8,follow_invite:3}},223815:(e,t,n)=>{"use strict";n.d(t,{U:()=>r,Z:()=>o});var i=n(755742),l=n(785893);let a=()=>{},r=e=>{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation&&e.nativeEvent.stopImmediatePropagation()};function o({allowClickAndDrag:e,allowEsc:t,allowMediaPlay:n,allowScroll:o,children:s}){let d=e=>{t&&e.keyCode===i.Z.ESCAPE||r(e)};return(0,l.jsx)("div",{onAbort:r,onAnimationEnd:r,onAnimationIteration:r,onAnimationStart:r,onBlur:a,onCanPlay:n?a:r,onCanPlayThrough:r,onChange:r,onClick:e?a:r,onCompositionEnd:r,onCompositionStart:r,onCompositionUpdate:r,onContextMenu:r,onCopy:r,onCut:r,onDoubleClick:r,onDurationChange:r,onEmptied:r,onEncrypted:r,onEnded:r,onError:r,onFocus:a,onInput:r,onInvalid:r,onKeyDown:d,onKeyPress:d,onKeyUp:d,onLoad:r,onLoadedData:r,onLoadedMetadata:r,onLoadStart:r,onMouseDown:r,onMouseEnter:r,onMouseLeave:r,onMouseMove:e?a:r,onMouseOut:r,onMouseOver:r,onMouseUp:e?a:r,onPaste:r,onPause:r,onPlay:r,onPlaying:r,onProgress:r,onRateChange:r,onScroll:o?a:r,onSeeked:r,onSeeking:r,onSelect:r,onStalled:r,onSubmit:r,onSuspend:r,onTimeUpdate:r,onTouchCancel:r,onTouchEnd:e?a:r,onTouchMove:e?a:r,onTouchStart:e?a:r,onTransitionEnd:r,onVolumeChange:r,onWaiting:r,onWheel:r,children:s})}},622096:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(238381);let l=(0,i.Z)({type:"session"}),a=l},764537:(e,t,n)=>{"use strict";n.d(t,{l3:()=>eg,hy:()=>eh,ZP:()=>eb});var i=n(667294),l=n(616550),a=n(883119),r=n(459263),o=n(386352),s=n(233316),d=n(860507),u=n(898781),c=n(224496),p=n(430323),m=n(785893);function h({activePageIndex:e,closeupStoryPinViewability:t,customEndCard:n,fontsLoaded:l,hideMute:r,isActive:h,isPreview:_,muteVideos:g,onChangeMuteVideo:y,onEnded:v,onFlyoutOpen:f,onUpdateVideoInfo:b,ownerId:x,page:k,pageAspectRatio:P,pageHeight:S,pageIndex:w,pageWidth:A,pinId:T,productPins:I,shouldLogTimeSpent:E=!0,stillLoading:C=!1,videoPinProgress:D,viewParameter:j,viewType:F}){var R;let L=(0,u.ZP)(),z=(0,d.Z)(),[O,M]=(0,i.useState)(!1),{background_color:N}=k.style||{},{nonRenderableBlocks:B,blocks:Z}=(0,s.Z)({storyPinBlocks:null!==(R=k.blocks)&&void 0!==R?R:[]}),K=!!Z.find(e=>e.type===c.h8.VIDEO),U=!!Z.find(e=>!!e.video&&e.type===c.h8.VIDEO&&e.video_signature),H=B.find(e=>e.type===c.h8.MUSIC),V=(null==H?void 0:H.type)==="story_pin_music_block"?H.provider_recording_id:void 0,G=()=>(0,m.jsx)(a.iP,{fullHeight:!0,onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!1),children:(0,m.jsxs)(a.xu,{dangerouslySetInlineStyle:{__style:{background:N||"#fff"}},height:"100%",children:[!_&&Z.filter(e=>!K||U||e.type===c.h8.VIDEO).map((i,a)=>{var r,s;let d=(I||[]).find(e=>[e.id,e.cacheable_id].includes(i.pin_id));return(0,m.jsx)(o.ZP,{activePageIndex:e,customEndCard:n,block:i,closeupStoryPinViewability:t,disableProductStickers:z,fontsLoaded:l,isActive:h,isSplitLayout:3===k.layout,musicRecordingId:V,muteVideos:g,ownerId:x,onEnded:v,onFlyoutOpen:f,videoPinProgress:D,onUpdateVideoInfo:b,pageAspectRatio:P,pageIndex:w,pageHeight:S,pageWidth:A,pinId:T,pinKey:null!=d?{type:"deprecated",data:d}:null,stillLoading:C},`${null!==(r=k.id)&&void 0!==r?r:""}-${null!==(s=i.type)&&void 0!==s?s:""}-${a}`)}),!r&&!_&&U&&(O||g)?(0,m.jsx)(a.xu,{bottom:!0,left:!0,padding:4,position:"absolute",children:g?(0,m.jsx)(a.hU,{accessibilityLabel:L._('Click to unmute', 'closeup.storyPin.storyPinVideo.volume', 'Button to unmute the video'),bgColor:"white",icon:"mute",iconColor:"darkGray",onClick:()=>{y(!1)},size:"md"}):(0,m.jsx)(a.hU,{accessibilityLabel:L._('Click to mute', 'closeup.storyPin.storyPinVideo.volume', 'Button to mute the video'),bgColor:"white",icon:"sound",iconColor:"darkGray",onClick:()=>y(!0),size:"md"})}):null]})});return E?(0,m.jsx)(p.Z,{view:F,viewParameter:j,component:0===w?227:228,auxData:{story_pin_page_id:w},shouldUseGrandparentId:!0,children:G()}):G()}var _=n(182750),g=n(702664),y=n(287072),v=n(357787),f=n(350118);let b=(0,v.Z)(e=>{let t=(0,u.ZP)(),{sourceUrl:n,linkText:i,displayUrl:l,image:r,pageId:o,canonicalUrl:s,pinId:d,onTouch:c,onClickThrough:p,isLoading:h}=e,_=(0,g.useSelector)(t=>{var n,i;return e.pinId&&(null===(n=t.pins)||void 0===n?void 0:null===(i=n[e.pinId])||void 0===i?void 0:i.story_pin_data_id)}),v={story_pin_page_id:o,story_pin_data_id:_,src_url:n,canonical_url:s},b=()=>{p&&p({auxData:v})},x=(0,m.jsxs)(a.xu,{display:"flex",rounding:2,overflow:"hidden",alignItems:"center",borderStyle:"sm",children:[(0,m.jsx)(a.xu,{minWidth:80,width:80,height:80,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",color:h||r&&r.url?void 0:"secondary",dangerouslySetInlineStyle:{__style:{borderRight:"1px solid lightGray"}},children:h?(0,m.jsx)(a.$j,{accessibilityLabel:t._('Loading website', 'a11y for loading spinner', 'a11y for loading spinner'),show:!0}):(e=>{if(r&&r.url){var n,i;return(0,m.jsx)(a.Ee,{fit:"cover",src:r.url,alt:e,naturalHeight:null!==(n=r.height)&&void 0!==n?n:1,naturalWidth:null!==(i=r.width)&&void 0!==i?i:1})}return(0,m.jsx)(a.JO,{icon:"link",accessibilityLabel:t._('Default link block icon', 'Icon for default link blocks without an image', 'Icon for default link blocks without an image'),color:"subtle",size:35})})(i)}),(0,m.jsxs)(a.xu,{paddingX:5,flex:"grow",overflow:"hidden",dangerouslySetInlineStyle:{__style:{whiteSpace:"nowrap",textOverflow:"ellipsis"}},children:[(0,m.jsx)(a.xv,{lineClamp:1,weight:"bold",children:i}),(0,m.jsx)(a.xv,{size:"200",color:"shopping",children:l})]})]}),k=(0,f.S6)()(d),P=(0,y.Z)({href:n,target:"blank",externalData:k?{pin:k&&{attributionSourceId:k.attribution_source_id,board:k.board&&{url:k.board.url},campaignId:k.campaign_id,entityId:k.id,isDownstreamPromotion:k.is_downstream_promotion,isPromoted:k.is_promoted,pinner:k.pinner&&{username:k.pinner.username},pinPromotionId:k.pin_promotion_id,promoter:k.promoter&&{entityId:k.promoter.id},storyPinDataId:k.story_pin_data_id,trackingParams:k.tracking_params,trackingParamsMap:k.tracking_params_map,advertiserId:k.advertiser_id}}:void 0});return c?(0,m.jsx)(a.iP,{onTap:c,rounding:2,children:x}):(0,m.jsx)(a.Tg,{href:n,onTap:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),b(),P({event:e})},rel:"nofollow",rounding:2,target:"blank",children:x})});var x=n(407043);let k=({block:e,pageId:t,pinId:n,onClickThrough:i})=>{var l;let{logContextEvent:r}=(0,x.v)();switch(e.type){case c.h8.LINK:let{canonical_url:o,image:s,normalized_url:d,src_url:u,text:p=""}=e,h=null==s?void 0:null===(l=s.images)||void 0===l?void 0:l["345x"];if(s&&u&&d&&o)return(0,m.jsx)(a.xu,{marginTop:5,children:(0,m.jsx)(b,{canonicalUrl:o,displayUrl:d,image:h,linkText:p,onClickThrough:i,onVisibilityChanged:e=>{e&&r({event_type:120,view_type:3,view_parameter:157,component:228,element:11157,object_id_str:n,aux_data:{story_pin_page_id:t,srcUrl:u,canonicalUrl:o}})},pageId:t,pinId:n,sourceUrl:u})});return null;case c.h8.HEADING:{let{text:t=""}=e;return(0,m.jsx)(a.xu,{marginBottom:4,paddingX:2,children:(0,m.jsx)(a.X6,{size:"500",overflow:"normal",accessibilityLevel:2,children:t})})}case c.h8.PARAGRAPH:{let{text:t=""}=e;return(0,m.jsx)(a.xu,{paddingX:2,dangerouslySetInlineStyle:{__style:{whiteSpace:"pre-line"}},children:(0,m.jsx)(a.xv,{children:(0,m.jsxs)(_.Z,{children:[" ",t," "]})})})}default:return null}},P=e=>{let{blocks:t,pageId:n,pinId:i,onClickThrough:l}=e;return(0,m.jsx)("div",{className:"StoryPinText",children:t.filter(e=>e).map((e,t)=>(0,m.jsx)(k,{block:e,pageId:n,pinId:i,onClickThrough:l},t))})};var S=n(280348);let w=375*c.ap;function A(e){var t,n,l;let r=(0,u.ZP)(),{activePageIndex:o,hideText:s,isActive:d,isCoverPage:c,muteVideos:p,onClickThrough:h,page:{image_adjusted:_,image:g,blocks:y,video:v,id:f},pageIndex:b,pageWidth:x,pinId:k}=e,{images:A={}}=_||g||{},T=A["750x"],{video_list:I={}}=v||{},E=I.V_HLSV3_MOBILE||I.V_720P;if(!T&&!E)return null;let C=x/375;return(0,m.jsxs)(i.Fragment,{children:[!!v&&!!E&&(0,m.jsx)(S.Z,{activePageIndex:o,blockHeight:w*C,blockWidth:375*C,isPlaying:d,muted:p,pageIndex:b,pinId:k,video:v}),T&&!E&&(0,m.jsx)(a.Ee,{alt:function(e){var t,n;let i="";for(let t of null!==(n=e.blocks)&&void 0!==n?n:[])[1,0].includes(t.block_type)&&(i=t.text?t.text:"");return null!==(t=i)&&void 0!==t?t:""}(e.page)||r._('Story pin image', 'Alt text for story pin image', 'Alt text for story pin image'),fit:c?"cover":"contain",naturalHeight:null!==(t=T.height)&&void 0!==t?t:1,naturalWidth:null!==(n=T.width)&&void 0!==n?n:1,src:null!==(l=T.url)&&void 0!==l?l:""}),y&&y.length>0&&!s&&(0,m.jsx)("div",{className:"StoryPinTextDrawer",children:(0,m.jsx)(P,{blocks:y,onClickThrough:h,pageId:f,pinId:k})})]})}let T=e=>{var t;let{page:{image_adjusted:n,blocks:l}}=e,{images:r={}}=n||{},o=r["750x"];if(!o)return null;let{width:s,height:d}=o;return(0,m.jsx)(i.Fragment,{children:o&&(0,m.jsx)(a.Ee,{src:null!==(t=o.url)&&void 0!==t?t:"",alt:(null!=l?l:[]).map(e=>e.text||"").join(),naturalWidth:null!=s?s:1,naturalHeight:null!=d?d:1,fit:"contain"})})};var I=n(441253),E=n(558068),C=n(784590),D=n(488789),j=n(92261),F=n(697335);function R({children:e,closeupStoryPinViewability:t,productPins:n,viewParameter:i,viewType:l}){let{previous:a,forward:r}=(0,E.Hv)(),o=0===a.length&&0===r.length,s=(0,F.t)();return(0,m.jsx)(D.o,{closeupPaneWidth:j.Gg,headerHeight:s,isLandingPage:o,loadFonts:I.Z,renderStoryPinMediaLayout:({activePageIndex:e,hideText:t,isActive:n,isCoverPage:i,muteVideos:l,onClickThrough:a,page:r,pageIndex:o,pageWidth:s,pinId:d})=>(0,m.jsx)(A,{activePageIndex:e,hideText:t,isActive:n,isCoverPage:i,muteVideos:l,onClickThrough:a,page:r,pageIndex:o,pageWidth:s,pinId:d}),renderStoryPinSplitLayout:({page:e})=>(0,m.jsx)(T,{page:e}),renderStoryPinText:({blocks:e,onClickThrough:t,pageId:n,pinId:i})=>(0,m.jsx)(P,{blocks:e,onClickThrough:t,pageId:n,pinId:i}),renderStoryPinPage:({activePageIndex:e,customEndCard:n,fontsLoaded:a,isActive:r,muteVideos:o,onChangeMuteVideo:s,onEnded:d,onFlyoutOpen:u,onUpdateVideoInfo:c,page:p,pageAspectRatio:_,pageHeight:g,pageWidth:y,ownerId:v,pinId:f,productPins:b,shouldLogTimeSpent:x,stillLoading:k,videoPinProgress:P})=>(0,m.jsx)(h,{activePageIndex:e,closeupStoryPinViewability:t,fontsLoaded:a,isActive:r,customEndCard:n,muteVideos:o,onChangeMuteVideo:s,onEnded:d,onFlyoutOpen:u,videoPinProgress:P,onUpdateVideoInfo:c,ownerId:v,page:p,pageAspectRatio:_,pageIndex:e,pageHeight:g,pageWidth:y,productPins:b,pinId:f,shouldLogTimeSpent:x,stillLoading:k,hideMute:!0,viewType:l,viewParameter:i}),productPins:n,children:e})}function L({children:e,isInStream:t,viewType:n,viewParameter:i}){return t?e:(0,m.jsx)(p.Z,{view:n,viewParameter:i,component:85,children:e})}function z({children:e,pin:t}){let n=(0,C.Z)({name:"StoryPinTaggedProductsResource",options:{id:t.id},noCache:!0});return e({productPins:n.data||[]})}function O({children:e,closeupStoryPinViewability:t,pin:n,isInStream:i=!1,viewType:l,viewParameter:a}){var r;let o=!!(null!==(r=n.story_pin_data)&&void 0!==r&&r.has_product_pins),s=({productPins:n})=>(0,m.jsx)(R,{closeupStoryPinViewability:t,viewType:l,viewParameter:a,productPins:n,children:e});return(0,m.jsx)(L,{isInStream:i,viewType:l,viewParameter:a,children:o?(0,m.jsx)(z,{pin:n,children:s}):s({productPins:[]})})}var M=n(768559),N=n(827896),B=n(112690),Z=n(319915),K=n(543972),U=n(623568),H=n(223008),V=n(692627),G=n(773285),$=n(276602),W=n(47168),q=n(780280),Y=n(947599),X=n(483205),Q=n(52022);function J({appConfig:e}){let t=(0,u.ZP)(),n=(0,Q.Z)(),{isRTL:l}=(0,q.B)();return(0,m.jsx)(i.Fragment,{children:(0,m.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{marginTop:16}},"data-test-id":"back-button",right:l,left:!l,top:!0,paddingX:4,position:"absolute",children:"authDesktop"===e.type&&(0,m.jsx)(a.hU,{accessibilityLabel:t._('Back button', 'storyPin.closeup.back', 'Button label to navigate to previous page'),bgColor:"transparent",icon:"directional-arrow-left",iconColor:"darkGray",onClick:()=>{n({action:"click",item:"back-button"}),e.onNavigateBack()},size:"lg"})})})}var ee=n(646422),et=n(124364),en=n(534611),ei=n(775151),el=n(858416),ea=n(700314),er=n(829407),eo=n(179888),es=n(924114);let ed=(0,i.lazy)(()=>n.e(3434).then(n.bind(n,79214))),eu=(0,i.lazy)(()=>n.e(50157).then(n.bind(n,247181))),ec=(0,i.lazy)(()=>Promise.all([n.e(97270),n.e(48937),n.e(22555),n.e(59072),n.e(43473)]).then(n.bind(n,666258))),ep=(0,i.lazy)(()=>Promise.all([n.e(11177),n.e(24859)]).then(n.bind(n,411177))),em=(0,i.lazy)(()=>n.e(21408).then(n.bind(n,781099))),eh=128,e_={backgroundImage:"linear-gradient(to bottom, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0))",pointerEvents:"none",borderRadius:"32px 32px 0 0"},eg={backgroundImage:"linear-gradient(to top, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0))",pointerEvents:"none",borderRadius:"0 0 32px 32px",bottom:0},ey={backgroundImage:"linear-gradient(to bottom, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0))",borderRadius:"32px 32px 0 0",paddingTop:"30px",top:0},ev=[5,6,2];function ef({appConfig:e,isInFocus:t,isInStream:n=!1,isStreamMuted:l,isStreamPanelOpen:o=!0,pin:s,storyPinData:d,onIdeaPinCloseupCommentClick:p,setStreamIsMuted:h,streamItemIndex:_,togglePanel:g,variant:y,viewType:v=3,viewParameterType:f,onTogglePanel:b}){var x,k,P,S,w,A,T,I;let E=(0,D.c)(),C=(0,N.Z)(),j=(0,u.ZP)(),F=(0,B.Z)(),R=(0,W.g)(),L=(0,$.E)(),{setIdeaPinActivePage:z,setIdeaPinDynamicWidth:O}=(0,es.Ut)(),{activePage:M}=(0,es.H8)(),{clearSeekTime:K}=(0,el.RC)(),{seekTimes:Q}=(0,el.Hx)(),{closeupPaneWidth:ef,headerHeight:eb,isLandingPage:ex,renderStoryPinMediaLayout:ek,renderStoryPinPage:eP,renderStoryPinSplitLayout:eS,renderStoryPinText:ew,productPins:eA}=E||{},{id:eT,image_signature:eI,story_pin_data_id:eE}=s,eC=Q&&Q[s.id],eD=!!(null!=d&&d.is_deleted),ej=null===(x=s.native_creator)||void 0===x?void 0:x.id,{pages:eF=[],metadata:eR={}}=d||{},{canvas_aspect_ratio:eL,version:ez}=eR,eO=null!=eL?eL:c.ap,[eM,eN]=(0,i.useState)(0),eB=(0,i.useRef)(0),eZ=(0,i.useRef)(null),[eK,eU]=(0,i.useState)("closeup"===y&&t),[eH,eV]=(0,i.useState)(375),eG="calc(100% - 32px)",e$=(0,i.useRef)(null),[eW,eq]=(0,i.useState)(!1),[eY,eX]=(0,i.useState)(!1),[eQ,eJ]=(0,i.useState)(!0);(0,i.useEffect)(()=>{b&&b(eQ)},[eQ,b]),(0,i.useEffect)(()=>{eJ(o)},[o]);let e0=eF[eM],{should_mute:e1=!0,music_attributions:e2=[]}=e0,[e3,e8]=(0,i.useState)(ex||e1),e6=void 0!==h?h:e8,e4=void 0!==l?l:e3;(0,i.useEffect)(()=>{e1&&e6(!0)},[e1,e6]);let e5=eF.filter(e=>!ev.includes(e.layout)),e7=e5.length,e9=e5[eM],te=f||(0,V.Z)({hasPin:!!s,hasPinRichMetadata:!!s.rich_metadata,hasPinRichMetadataProducts:!!(null!==(k=s.rich_metadata)&&void 0!==k&&k.products),hasPinRichMetadataArticle:!!(null!==(P=s.rich_metadata)&&void 0!==P&&P.article),hasPinRichMetadataRecipe:!!(null!==(S=s.rich_metadata)&&void 0!==S&&S.recipe),hasPinStoryPinData:!!s.story_pin_data}),tt=eb+64,{getNormalizedPinImage:tn}=(0,H.Z)({pinKey:{type:"deprecated",data:s},maxWidth:X.RZ}),ti="closeup"===y,tl=()=>{if("undefined"!=typeof window){let e=window.innerWidth-(eQ?ef:0)-216;if(ti)eV(function({availableWidth:e,pageAspectRatio:t,unavailableHeight:n,windowInnerHeight:i}){let l=i-n,a=Math.min(Math.max(650,Math.min((i-n)*t,e)),1e3);return a/t>=l&&(a=l*t),a}({availableWidth:e,pageAspectRatio:eO,unavailableHeight:tt,windowInnerHeight:window.innerHeight}));else{let{width:e}=tn();eV(e),O(e)}}};(0,er.Z)(()=>(window.addEventListener("resize",tl),tl(),()=>{window.removeEventListener("resize",tl)}));let[ta,tr]=(0,i.useState)(!1),[to,ts]=(0,i.useState)(null),[td,tu]=(0,i.useState)(!1);(0,i.useEffect)(()=>{!td&&t&&(F({event_type:7588,view_type:v,view_parameter:te,component:13801,object_id_str:eT,aux_data:{..."number"==typeof _?{grid_index:_}:{}}}),tu(!0))},[td,t,F,eT,v,te,_]);let[tc,tp]=(0,i.useState)(!1);(0,i.useEffect)(()=>{!tc&&t&&n&&(F({event_type:9314,view_type:v,view_parameter:te,component:13801,aux_data:{grid_index:_,pin_id:eT,image_signature:eI,creator_id:ej,story_pin_data_id:eE},clientTrackingParams:C(eT,{shouldTrackForPrevLocation:!0})}),tp(!0))},[C,ej,eI,t,n,eE,v,te,eT,tc,F,_]);let tm=(0,i.useCallback)(e=>{let n=eF[e],{blocks:i}=n||{},l=null==i?void 0:i.find(e=>3===e.block_type);e$.current&&e$.current instanceof ea.B7&&(e$.current.clear(),e$.current=null),!l&&t&&(e$.current=new ea.B7(e=>{ts({currentTime:e<1?e:1,duration:1})},()=>{let t="closeup"===y?e:M;if(t<e7-1){if(e$.current&&e$.current instanceof ea.B7){let e=e$.current;e.clear(),e$.current=null}ty(t+1)}else eq(!0),eU(!1)},U.oN))},[t,e7,eF,M,y]),th=e=>{ts({currentTime:0,duration:1}),tm(e)};(0,i.useEffect)(()=>{eB.current=eM},[eM]),(0,i.useEffect)(()=>{eZ.current=eK},[eK]),(0,er.Z)(()=>(th(eM),()=>{e$.current&&e$.current instanceof ea.B7&&eZ.current&&e$.current.clear()}));let t_=()=>{L&&(L.addBinaryAnnotation("page.current.index",eM,"I16"),L.addBinaryAnnotation("page.count",eF.length,"I16"),L.addBinaryAnnotation("view.type",v,"I32"),L.addBinaryAnnotation("view.parameter",te,"I32"))},tg=e=>{L&&L.abort("startNewPwt"),R&&(R.abort("startNewPwt"),R.start(),R.addBinaryAnnotation("page.current.index",e,"I16"),R.addBinaryAnnotation("page.count",eF.length,"I16"),R.addBinaryAnnotation("view.type",v,"I32"),R.addBinaryAnnotation("view.parameter",te,"I32"))};(0,er.Z)(()=>{t_()});let ty=e=>{eK||eU(!0),eW&&eq(!1),th(e),e!==eM&&K(),eN(e),z(e),tg(e)};(0,i.useEffect)(()=>{if(eW&&eq(!1),e$.current&&eC){let e=e$.current;e.pause(),e.remaining=U.oN-eC*eo.gJ,ts({currentTime:eC/U.P6,duration:1})}},[eC]),(0,i.useEffect)(()=>{z(M)},[z,M]),(0,i.useEffect)(()=>{"related-products"===y&&(eN(M),ty(M))},[M,y]);let tv=()=>eW?13799:0===eM?227:228,tf=()=>{eM<e7-1&&(ty(eM+1),F({event_type:101,view_type:v,view_parameter:te,component:tv(),element:12261,object_id_str:eT}))},tb=()=>{eM===e7-1&&eW?(ty(eM),F({event_type:101,view_type:v,view_parameter:te,component:tv(),element:12260,object_id_str:eT})):eM>0&&(ty(eM-1),F({event_type:101,view_type:v,view_parameter:te,component:tv(),element:12260,object_id_str:eT}))},tx=e=>{let{keyCode:t}=e,{srcElement:n}=e,i=n.isContentEditable||n.contentEditable&&"true"===n.contentEditable;37!==t||i?39!==t||i||tf():tb()};(0,i.useEffect)(()=>(document.addEventListener("keydown",tx),()=>document.removeEventListener("keydown",tx)),[eM]);let{fontsLoaded:tk,mediaDataReceived:tP}=(0,ei.tq)({hasPin:!!s,pages:eF}),tS=ez?(0,ea.n4)(ez,"0.8.0"):null,tw=null!=tS&&tS>=0,tA=t=>{let n=0===t.layout;switch(t.layout){case 0:case 1:return ek({activePageIndex:eM,hideText:n,isActive:!0,isCoverPage:n,muteVideos:e4,onClickThrough:e.onClickThrough,page:t,pageIndex:eM,pageWidth:eH,pinId:eT});case 4:return t.blocks.length>0&&ew({blocks:t.blocks,pageId:`text-${eM}`,page:t,pinId:eT,onClickThrough:e.onClickThrough});case 3:return eS({page:t});default:return null}},tT=e=>{e===e7-1&&(eq(!0),eU(!1),z(0)),e===eM&&tf()},tI=e=>{var t,n;ts({currentTime:null!==(t=null==e?void 0:e.currentTime)&&void 0!==t?t:0,duration:null!==(n=null==e?void 0:e.duration)&&void 0!==n?n:1})},tE=()=>{eX(!0),eU(!1),e$.current&&!e$.current.paused&&e$.current.pause()},tC=e=>{var n,i;return eF[e]?tw?eP({activePageIndex:eM,fontsLoaded:tk,customEndCard:!0,isActive:e===eM&&eK,muteVideos:e4,onChangeMuteVideo:e6,onEnded:tT,onFlyoutOpen:tE,videoPinProgress:eM===e?to:void 0,onUpdateVideoInfo:tI,ownerId:null!==(n=null===(i=s.native_creator)||void 0===i?void 0:i.id)&&void 0!==n?n:"",page:eF[e],pageAspectRatio:eO,pageIndex:e,pageHeight:eH/eO,pageWidth:eH,pinId:s.id,productPins:eA,shouldLogTimeSpent:t,stillLoading:!tP}):tA(e9):null},tD=()=>{if(eU(!1),e$.current){let e=e$.current;e.pause()}F({event_type:9324,view_type:v,view_parameter:te,component:tv(),object_id_str:eT,aux_data:{story_pin_page_id:eM}})},tj=()=>{if(eU(!0),e$.current){let e=e$.current;eC&&eC>0&&K(),e.resume()}else to||th(eM);F({event_type:9323,view_type:v,view_parameter:te,component:tv(),object_id_str:eT,aux_data:{story_pin_page_id:eM}})},tF=()=>{eW||(eX(!1),eK?tD():tj())};(0,i.useEffect)(()=>{"closeup"===y&&(!t||eW||eK?!t&&eK&&tD():tj())},[t,y]),(0,i.useEffect)(()=>{"related-products"===y&&tD()},[]);let tR=()=>{ty(0)},tL=()=>{n&&g?g():eJ(!0)},{isAuthenticated:tz}=(0,q.B)(),{checkExperiment:tO}=(0,G.F)(),tM=tz&&tO("auth_plp_hide_back_button").anyEnabled;return(0,m.jsxs)(a.xu,{left:!0,dangerouslySetInlineStyle:{__style:ti?{top:eb,height:`calc(100vh - ${eb}px)`,position:"sticky",pointerEvents:"none",minHeight:632,zIndex:eQ?"auto":3}:{}},display:"flex",children:[(0,m.jsxs)(a.xu,{flex:"grow",display:"flex",justifyContent:"center",alignItems:"center",position:"relative",dangerouslySetInlineStyle:{__style:{pointerEvents:"auto"}},color:"default",children:[ti&&(0,m.jsx)(a.xu,{bottom:!0,color:"secondary",left:!0,position:"absolute",right:!0,top:!0}),eD?(0,m.jsx)(et.Z,{width:eH,height:eH/c.ap,rounding:c.yR}):(0,m.jsxs)(i.Fragment,{children:[tP&&(0,m.jsx)(a.xu,{width:1,height:1,position:"absolute",top:!0,left:!0,marginTop:-1,overflow:"hidden",children:(()=>{let e=[];for(let t=1;t<=eF.length;t+=1)eM+t<eF.length&&e.push(tC(eM+t));return e})()}),(0,m.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{marginLeft:ti?void 0:`${c.YL}px`}},display:"flex",alignItems:"center",position:"relative",onMouseOver:()=>tr(!0),onMouseLeave:()=>{tr(!1)},children:(0,m.jsxs)(a.xu,{paddingX:4,children:[(0,m.jsx)(a.xu,{display:"flex",position:"absolute",bottom:!0,width:eG,zIndex:c.Gf,paddingX:6,dangerouslySetInlineStyle:{__style:{...eg,flexDirection:"column-reverse"}},height:eh,children:(0,m.jsx)(en.Z,{activePageIndex:eM,handleMute:()=>{e1||e6(!e4)},handlePanelChange:()=>{eJ(!eQ)},handlePausePlay:tF,handlePause:tD,handlePlay:tj,handleVideoScrubbingNewPage:e=>{eW&&eq(!1),th(e),eN(e),z(e),tg(e)},handleWatchAgain:tR,isMuted:e4,isPanelOpen:eQ,onPageSelect:e=>ty(e),pages:e5,pageCount:e7,pinId:s.id,isPlaying:eK,progressInfo:to,showEndCard:eW,showVideoControls:ta,viewParameter:te})}),(0,m.jsx)(a.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{...eQ?ey:{paddingLeft:"26px",bottom:0},marginBottom:eQ?void 0:"88px"}},"data-test-id":"music-attribution",display:"flex",justifyContent:eQ?"center":"start",overflow:"hidden",paddingY:eQ?5:void 0,position:"absolute",width:eH,zIndex:c.Gf,children:(0,m.jsx)(r.Z,{handlePause:tD,handlePlay:tj,musicAttributions:e2,shouldMute:e1,showEndCard:eW})}),!eW&&!eQ&&(0,m.jsxs)(a.xu,{display:"flex",height:eh,position:"absolute",top:!0,width:eG,zIndex:c.Gf,padding:4,dangerouslySetInlineStyle:{__style:eQ?{}:e_},alignItems:"start",justifyContent:"between",children:[(0,m.jsxs)(a.kC,{alignItems:"stretch",direction:"row",children:[!eQ&&(0,m.jsx)(Z.Z,{name:"SafeSuspense_IdeaPinCloseup_IdeaPinSecondarySendButton",children:(0,m.jsx)(Y.Z,{children:(0,m.jsx)(em,{imageSrc:null!==(w=s.image_url)&&void 0!==w?w:"",pinDescription:null!==(A=s.description)&&void 0!==A?A:"",pinId:s.id})})}),!eQ&&s.is_eligible_for_aggregated_comments&&(0,m.jsx)(Z.Z,{name:"SafeSuspense_IdeaPinCloseup_CommentButton",children:(0,m.jsx)(Y.Z,{children:(0,m.jsx)(ed,{onCommentClick:()=>{F({event_type:101,view_type:v,view_parameter:te,component:13801,element:10944,object_id_str:s.id}),tL(),p&&p();let e=document.getElementById(`canonical-card-${s.id}`);e&&e.scrollIntoView({behavior:"smooth",block:"end"})}})})}),!eQ&&(0,m.jsx)(Z.Z,{name:"SafeSuspense_IdeaPinCloseup_ReactionPickerContainer",children:(0,m.jsx)(Y.Z,{children:(0,m.jsx)(a.xu,{"data-test-id":"pointer-events-wrapper",dangerouslySetInlineStyle:{__style:{pointerEvents:"auto"}},children:(0,m.jsx)(ep,{component:13801,iconColor:"white",pinId:s.id,reactionByMe:s.reaction_by_me,showTooltip:!0,viewParameter:te,viewType:v})})})})]}),!eQ&&(0,m.jsx)(Z.Z,{name:"SafeSuspense_IdeaPinCloseup_PinSaveButton",children:(0,m.jsx)(Y.Z,{children:(0,m.jsx)(a.xu,{"data-test-id":"pointer-events-wrapper",dangerouslySetInlineStyle:{__style:{pointerEvents:"auto"}},children:(0,m.jsx)(ec,{pinKey:{type:"deprecated",data:s},size:"lg",onClickCallback:()=>{F({event_type:101,view_type:v,view_parameter:te,component:13801,element:0,object_id_str:s.id})},isCloseupPin:!0,trackingParamsMap:s.tracking_params_map})})})})]}),(0,m.jsx)(a.xu,{position:"relative","data-test-id":"story-pin-closeup-container",children:(0,m.jsx)(a.iP,{accessibilityLabel:eK?j._('Pause', 'storyPin.closeup.pauseButton.accessibilityLabel', 'Button label for pause tap area'):j._('Play', 'storyPin.closeup.playButton.accessibilityLabel', 'Button label for play tap area'),disabled:eW,onTap:tF,rounding:c.yR,children:(0,m.jsxs)(a.xu,{"data-test-id":"story-pin-closeup-page",position:"relative",rounding:c.yR,overflow:"hidden",width:eH,height:eH/eO,children:[tC(eM),!eW&&!eY&&!eC&&(0,m.jsx)(ee.Z,{playing:eK}),"authDesktop"===e.type&&eW&&s.native_creator&&(0,m.jsx)(Z.Z,{name:"IdeaPinCloseup_EndCard",children:(0,m.jsx)(Y.Z,{children:(0,m.jsx)(a.xu,{rounding:c.yR,padding:4,zIndex:c.s5,position:"absolute",top:!0,bottom:!0,left:!0,right:!0,children:(0,m.jsx)(eu,{watchAgain:tR,pinDescription:null!==(T=s.description)&&void 0!==T?T:"",imageSrc:null!==(I=s.image_url)&&void 0!==I?I:"",pinId:s.id})})})})]})})})]})})]}),!n&&!tM&&ti&&(0,m.jsx)(J,{appConfig:e})]}),eQ&&ti&&(0,m.jsx)(a.xu,{width:ef,height:"100%",flex:"none",position:"relative",children:"duplo"===e.type&&e.storyPinDetails})]})}function eb(e){var t,n,r;let{pin:o,viewType:s=3,viewParameterType:d}=e,[u,c]=(0,i.useState)({isInFocus:!0,viewability:0}),{isInFocus:h,viewability:_}=u,g=d||(0,V.Z)({hasPin:!!o,hasPinRichMetadata:!!o.rich_metadata,hasPinRichMetadataProducts:!!(null!==(t=o.rich_metadata)&&void 0!==t&&t.products),hasPinRichMetadataArticle:!!(null!==(n=o.rich_metadata)&&void 0!==n&&n.article),hasPinRichMetadataRecipe:!!(null!==(r=o.rich_metadata)&&void 0!==r&&r.recipe),hasPinStoryPinData:!!o.story_pin_data}),y=(0,l.useLocation)();return(0,m.jsx)(W.T,{children:(0,m.jsx)(K.Z,{options:{threshold:[0,.5,.8,.99,1]},onVisibilityChange:e=>{if(e&&e.length>0){let{intersectionRatio:t}=e[0];c({isInFocus:t>.5,viewability:t})}},children:t=>{var n,i;return(0,m.jsx)(a.xu,{ref:t,children:(0,m.jsx)(O,{closeupStoryPinViewability:_,pin:o,viewType:s,viewParameter:g,children:h?(0,m.jsx)(p.Z,{clientTrackingParams:(0,M.Z)({boardUrl:null===(n=o.board)||void 0===n?void 0:n.url,location:y,pinId:o.id,pinnerUserName:null===(i=o.pinner)||void 0===i?void 0:i.username,storyPinDataId:o.story_pin_data_id,trackingParams:o.tracking_params,trackingParamsMap:o.tracking_params_map}),component:13801,objectId:o.id,view:s,viewParameter:g,children:(0,m.jsx)(ef,{...e,isInFocus:h})}):(0,m.jsx)(ef,{...e,isInFocus:h})})})}})})}},646422:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(667294),l=n(883119),a=n(391254),r=n(224496),o=n(252417),s=n(785893);function d({playing:e,zIndexValue:t}){return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(a.Z,{unsafeCSS:"#story-pin-closeup-pause-play-overlay svg { filter: drop-shadow( 0px 0px 8px rgba(0,0,0,0.1));}"}),(0,s.jsx)(l.xu,{id:"story-pin-closeup-pause-play-overlay","data-test-id":"story-pin-closeup-pause-play-overlay",rounding:r.yR,position:"absolute",top:!0,left:!0,bottom:!0,right:!0,display:"flex",justifyContent:"center",alignItems:"center",opacity:.8,dangerouslySetInlineStyle:{__style:{pointerEvents:"none"}},zIndex:t?new l.Ry(t):o.lt,children:!e&&(0,s.jsx)(l.JO,{icon:"play",size:48,accessibilityLabel:"Play",color:"light"})})]})}},124364:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(883119),l=n(898781),a=n(785893);function r({height:e,isDenseView:t,rounding:n,width:r,color:o}){let s=(0,l.ZP)();return(0,a.jsx)(i.xu,{color:o||"default",display:"flex",justifyContent:"center",alignItems:"center",position:"relative",rounding:n,overflow:"hidden",width:r,height:e,"data-test-id":"unavailable-pin",children:(0,a.jsxs)(i.kC,{direction:"column",alignItems:"center",children:[(0,a.jsx)(i.xu,{paddingY:t?2:4,children:(0,a.jsx)(i.JO,{accessibilityLabel:s._('Pin not available', 'story-pin.Closeup.UnavailableIdeaPin.icon.accessibilityLabel', 'Accessibility label on icon'),color:"default",icon:"alert",size:20})}),(0,a.jsx)(i.xv,{weight:"bold",children:s._('Unavailable', 'story-pin.Closeup.UnavailableIdeaPin.Unavailable', 'Text on an unavailable idea Pin that has been deleted')}),!t&&(0,a.jsx)(i.xu,{paddingY:1,children:(0,a.jsx)(i.xv,{children:s._('Removed by the creator', 'story-pin.Closeup.UnavailableIdeaPin.Removed', 'Text on an unavailable idea Pin explaining it has been removed by its creator')})})]})})}},534611:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var i=n(667294),l=n(883119),a=n(898781),r=n(623568),o=n(773285),s=n(466225),d=n(780280),u=n(654579),c=n(224496),p=n(858416),m=n(50286),h=n(179888),_=n(994320),g=n(785893);let y=({accessibilityLabel:e,dataTestId:t,disable:n,handleTap:i,icon:a})=>(0,g.jsx)(l.xu,{"data-test-id":t,opacity:n?.5:void 0,children:(0,g.jsx)(l.iP,{disabled:n,onTap:i,children:(0,g.jsx)(l.JO,{accessibilityLabel:e,color:"light",size:16,icon:a})})});function v({activePageIndex:e,handlePanelChange:t,handlePlay:n,handlePause:v,handlePausePlay:f,handleMute:b,handleVideoScrubbingNewPage:x,handleWatchAgain:k,isPlaying:P,isMuted:S,isPanelOpen:w,pages:A,pageCount:T,pinId:I="",progressInfo:E,showEndCard:C,showVideoControls:D=!1,viewParameter:j,isStoryPin:F=!0,captionsUrl:R="",captionsExpGroup:L=""}){var z,O,M,N;let B=(0,a.ZP)(),{currentTime:Z}=E||{},{seekTimes:K}=(0,p.Hx)(),U=(0,d.B)(),H=(0,_.r)(),{checkExperiment:V}=(0,o.F)(),G=(0,m.HG)(),{isAuthenticated:$}=U,{captionsEnabled:W}=H,q=A[e],{should_mute:Y}=q||S,X=Object.keys(K).includes(I)&&K[I]?K[I]:Z,Q=(0,i.useMemo)(()=>A.map(e=>{var t,n,i,l,a,o,s;let d=null===(t=e.blocks)||void 0===t?void 0:t.find(e=>3===e.block_type),u=(null==d?void 0:null===(n=d.video)||void 0===n?void 0:null===(i=n.video_list)||void 0===i?void 0:null===(l=i.V_HLSV3_MOBILE)||void 0===l?void 0:l.duration)||(null==d?void 0:null===(a=d.video)||void 0===a?void 0:null===(o=a.video_list)||void 0===o?void 0:null===(s=o.V_720P)||void 0===s?void 0:s.duration);return u?{duration:u,isVideo:!0}:{duration:r.oN,isVideo:!1}}),[A]),J=[{duration:(null==E?void 0:E.duration)||0,isVideo:!0}],ee=F?Q:J,et=null===(z=(q&&(null===(N=q.blocks)||void 0===N?void 0:N[0])||{}).video)||void 0===z?void 0:null===(O=z.video_list)||void 0===O?void 0:null===(M=O.V_HLSV3_MOBILE)||void 0===M?void 0:M.captions_urls,en=!1;(et&&0!==Object.keys(et).length||R)&&(en=!0);let ei=F&&en&&G?V($?"auth_desktop_idea_pin_captions":"unauth_desktop_idea_pin_captions").group:"",el=L||ei,ea=(0,s.Z)(el),er=(0,i.useMemo)(()=>ee.reduce((e,t)=>e+(t.duration||0),0)/(F?h.gJ:1),[ee,F]),eo=(0,i.useMemo)(()=>ee.filter((t,n)=>n<e).reduce((e,t)=>e+(t.duration||0),0)/h.gJ,[ee,e]),es=ee.length>0&&ee[e].isVideo?X+eo:5*Z+eo,ed=B._('Hide captions', 'gestalt.video.accessibilityHideCaptionsLabel', 'ARIA label for hide captions button'),eu=B._('Show captions', 'gestalt.video.accessibilityShowCaptionsLabel', 'ARIA label for show captions button');return(0,g.jsxs)(l.xu,{alignItems:"baseline",alignContent:"evenly",direction:"column",display:"flex",justifyContent:"between",width:"100%",dangerouslySetInlineStyle:{__style:{gap:"18.5px",pointerEvents:"auto"}},children:[(0,g.jsxs)(l.xu,{alignItems:"center",direction:"row",justifyContent:"between",width:"99%",display:"flex",dangerouslySetInlineStyle:{__style:{opacity:D||!P?1:0,transition:"all .1s"}},children:[(0,g.jsxs)(l.kC,{direction:"row",gap:5,alignItems:"center",children:[(0,g.jsx)(y,{accessibilityLabel:P?B._('Pause', 'closeup.IdeaPinVideo.Pause', 'Pause button on Idea Pin video'):B._('Play', 'closeup.IdeaPinVideo.Play', 'Play button on Idea Pin video'),icon:P?"pause":"play",handleTap:C&&k?k:f,dataTestId:`story-pin-closeup-${P?"pause":"play"}`}),E&&(0,g.jsxs)(l.xu,{"data-test-id":"time-display",children:[(0,g.jsx)(l.xv,{color:"inverse",align:"end",overflow:"normal",size:"300",inline:!0,weight:"bold",children:`${(0,c.Lc)(es)}`})," ",(0,g.jsx)(l.xu,{opacity:.6,display:"inlineBlock",children:(0,g.jsx)(l.xv,{color:"inverse",align:"end",overflow:"normal",size:"300",inline:!0,weight:"bold",children:`/ ${(0,c.Lc)(er)}`})})]})]}),(0,g.jsxs)(l.kC,{direction:"row",gap:5,children:[(el.startsWith("enabled_captions")||el.startsWith("employees"))&&en&&(0,g.jsx)(y,{accessibilityLabel:W?eu:ed,icon:W?"captions":"captions-outline",handleTap:()=>{H.setCaptionsEnabled(!W)},dataTestId:"story-pin-closeup-captions"}),(0,g.jsx)(y,{accessibilityLabel:S?B._('Unmute', 'closeup.IdeaPinVideo.unmute', 'Unmute button on Idea Pin video'):B._('Mute', 'closeup.IdeaPinVideo.mute', 'Mute button on Idea Pin video'),disable:Y,icon:S?"mute":"sound",handleTap:b,dataTestId:`story-pin-closeup-${S?"unmute":"mute"}`}),(0,g.jsx)(y,{accessibilityLabel:w?B._('Maximize', 'closeup.IdeaPinVideo.maximize', 'Maximize button on Idea Pin video'):B._('Minimize', 'closeup.IdeaPinVideo.minimize', 'Minimize button on Idea Pin video'),icon:w?"maximize":"minimize",handleTap:t,dataTestId:`story-pin-closeup-${w?"maximize":"minimize"}`})]})]}),(0,g.jsx)(u.ZP,{activePageIndex:e,activePageCurrentTime:X,currentTime:es,duration:er,handlePlay:n,handlePause:v,videoControlsExp:ea,handleVideoScrubbingNewPage:x,isPlaying:P,pageCount:T,pageDurations:ee,pinId:I,progressInfo:E,shouldShowPlayhead:!0,showEndCard:C,videoDurations:ee,viewParameter:j,showVideoControls:D})]})}},654579:(e,t,n)=>{"use strict";n.d(t,{$E:()=>y,$:()=>v,ZP:()=>x});var i=n(667294),l=n(883119),a=n(112690),r=n(898781),o=n(773285),s=n(780280),d=n(623568),u=n(179888),c=n(785893);function p({activePageCurrentTime:e,pillHeight:t,progressInfo:n,videoDuration:i}){var a,r;let o=null!==(a=null==n?void 0:n.currentTime)&&void 0!==a?a:0,s=null!==(r=null==n?void 0:n.duration)&&void 0!==r?r:d.P6,p=`${null!=i&&i.isVideo?Math.floor(1e4*(e||o)/(i.duration/u.gJ))/100:o/s*100}%`;return(0,c.jsx)(l.xu,{height:t,rounding:"pill",overflow:"hidden",dangerouslySetInlineStyle:{__style:{backgroundColor:y}},children:(0,c.jsx)(l.xu,{height:"100%",color:v,rounding:"pill",dangerouslySetInlineStyle:{__style:{width:p}}})})}var m=n(224496),h=n(858416),_=n(50286),g=n(19121);let y="rgba(255,255,255,0.24)",v="light",f=()=>{},b=({children:e,setHoveringChange:t,handleMouseDown:n,handleMouseLeave:i,handleTouchStart:a,playhead:o,isPlaying:s,showVideoControls:d,videoControlsExp:u})=>{let p=(0,r.ZP)(),m=!(0,_.HG)();return u?(0,c.jsx)(l.iP,{children:(0,c.jsx)(l.xu,{alignItems:"center","aria-label":p._('Video scrubber progress bar', 'ideaPin.closeupvideo.videoScrubberLabel', 'Accessibility label for video scrubber progress bar on video idea pins.'),display:"flex",flex:"grow",justifyContent:m?"center":"start",marginBottom:m?0:6,minHeight:"8px",onFocus:t(!0),onMouseDown:n,onMouseLeave:i,onMouseOver:t(!0),onTouchStart:a,onTouchEnd:e=>e.preventDefault(),paddingY:m?6:0,position:"relative",ref:o,role:"progressbar",width:"100%","data-test-id":"bullet-video-progress-bar",opacity:u&&(d||!s)?1:0,dangerouslySetInlineStyle:{__style:{pointerEvents:"auto",touchAction:"none"}},children:e})}):(0,c.jsx)(l.xu,{alignItems:"center","aria-label":p._('Video scrubber progress bar', 'ideaPin.closeupvideo.videoScrubberLabel', 'Accessibility label for video scrubber progress bar on video idea pins.'),display:"flex",flex:"grow",justifyContent:m?"center":"start",marginBottom:m?0:6,minHeight:"8px",onFocus:t(!0),onMouseDown:n,onMouseLeave:i,onMouseOver:t(!0),onTouchStart:a,onTouchEnd:e=>e.preventDefault(),paddingY:m?6:0,position:"relative",ref:o,role:"progressbar",width:"100%","data-test-id":"bullet-video-progress-bar",dangerouslySetInlineStyle:{__style:{pointerEvents:"auto",touchAction:"none"}},children:e})};function x({activePageIndex:e,activePageCurrentTime:t,pageCount:n,progressInfo:r,showEndCard:d,duration:u=0,currentTime:m=0,pageDurations:y=[],handlePlay:x=f,handlePause:P=f,handleVideoScrubbingNewPage:S=f,videoDurations:w=[],viewParameter:A,isInactiveStreamPin:T=!1,isPlaying:I=!1,setVideoProgress:E,shouldShowPlayhead:C=!1,showVideoControls:D=!0,pinId:j="",videoControlsExp:F=!1}){let R=!(0,_.HG)(),L=(0,i.useRef)(null),{checkExperiment:z}=(0,o.F)(),{isRTL:O}=(0,s.B)(),[M,N]=(0,i.useState)(!1),[B,Z]=(0,i.useState)(I),[K,U]=(0,i.useState)(),H=(0,a.Z)(),{isSeekingIdeaPin:V}=(0,h.Hx)(),{updateSeekTime:G,updateSeekingIdeaPin:$}=(0,h.RC)(),W=(0,g.Z)(),q=W.isAuth,Y=(0,i.useCallback)((t,i)=>{if(!T&&i<=n){if(i!==e&&S(i),E){var l;let{isVideo:e}=w[i];E({currentTime:t/1e3,duration:e?null!==(l=null==r?void 0:r.duration)&&void 0!==l?l:1:5,pinId:j})}G(t/1e3,j)}H({event_type:101,view_type:3,view_parameter:A,component:14302})},[e,S,T,H,n,j,null==r?void 0:r.duration,E,G,w,A]),X=`${m/u*100}%`,Q=y.map(e=>`${(e.duration||0)/u/10}%`),J=(0,i.useMemo)(()=>{let e=0;return y.map(({duration:t})=>{let n=t+e,i={min:e,max:n};return e=n,i})},[y]),ee=R&&z(q?"closeup_auth_mweb_remove_streams":"closeup_unauth_mweb_remove_streams").anyEnabled,et=M?"0 1.2px":"0 1px",en=e=>()=>N(e),ei=(0,i.useCallback)(e=>{if(L.current){let{left:t=0,right:n=0,width:i=0}=L.current.getBoundingClientRect(),l=O?Math.max(0,Math.min((n-e)/i,1)):Math.max(0,Math.min((e-t)/i,1)),a=l*u*1e3,r=J.findIndex(e=>a>=e.min&&a<=e.max);Y(a-J[-1!==r?r:0].min,0)}},[u,Y,J,O]),el=()=>{V||(Z(I||d),$(!0))},ea=(0,i.useCallback)(e=>{V&&ei(e.pageX)},[ei,V]),er=(0,i.useCallback)(e=>{if(V){e.preventDefault();let t=Array.from(e.changedTouches).find(e=>e.identifier===K);t&&ei(t.pageX)}},[V,ei,K]),eo=(0,i.useCallback)(()=>{$(!1),en(!1),U(void 0),B&&x()},[$,x,B]),es=(0,i.useCallback)(e=>{let t=Array.from(e.changedTouches).find(e=>e.identifier===K);t&&($(!1),en(!1),U(void 0)),B&&x()},[x,B,K,$]);(0,i.useEffect)(()=>(V&&!T&&(window.addEventListener("mousemove",ea),window.addEventListener("mouseup",eo),window.addEventListener("touchmove",er),window.addEventListener("touchend",es)),()=>{window.removeEventListener("mousemove",ea),window.removeEventListener("mouseup",eo),window.removeEventListener("touchmove",er),window.removeEventListener("touchend",es)}),[ea,eo,es,er,T,V,ei,K]);let ed=n=>n<e||d?(0,c.jsx)(l.xu,{height:4,color:v,rounding:"pill"}):e===n&&r?(0,c.jsx)(p,{activePageCurrentTime:t,pillHeight:4,progressInfo:r,videoDuration:w[n]}):(0,c.jsx)(l.xu,{height:4,color:v,rounding:"pill",dangerouslySetInlineStyle:{__style:{opacity:.24}}});return(0,c.jsxs)(b,{setHoveringChange:en,handleMouseDown:e=>{el(),I&&P(),ei(e.pageX)},handleMouseLeave:()=>{en(!1)},handleTouchStart:e=>{el(),en(!0);let t=e.changedTouches[0];U(t.identifier),I&&P(),ei(t.pageX)},playhead:L,videoControlsExp:F,showVideoControls:D,isPlaying:I,children:[C&&(D&&F||M||V||R)&&(0,c.jsx)(k,{currentTime:t,inRemoveRelatedStreamsExp:ee,isMobile:R,isRTL:O,videoControlsExp:F,isSeeking:V,scrubberWidth:X}),Array(n).fill().map((e,t)=>(0,c.jsx)(l.xu,{flex:"grow",width:Q.length===n?Q[t]:"auto",dangerouslySetInlineStyle:{__style:{margin:et}},children:(0,c.jsx)(l.xu,{"data-test-id":"idea-pin-video-progress-bar",rounding:"pill",dangerouslySetInlineStyle:{__style:{transition:"all .1s"}},children:ed(t)})},`${j}-${t}`))]})}let k=({currentTime:e=0,inRemoveRelatedStreamsExp:t,isMobile:n,isRTL:i,isSeeking:a,scrubberWidth:r,videoControlsExp:o})=>(0,c.jsxs)(l.xu,{position:"relative","data-test-id":"video-progress-bar",dangerouslySetInlineStyle:{__style:i?{right:r}:{left:r}},children:[n&&a&&!t&&(0,c.jsx)(l.xu,{position:"absolute",dangerouslySetInlineStyle:{__style:{top:"-32px"}},marginStart:-3,children:(0,c.jsx)(l.xv,{color:"light",size:"100",children:(0,m.Lc)(e)})}),(0,c.jsx)(l.xu,{position:"absolute",rounding:"pill",height:4,color:v,children:(0,c.jsx)(l.xu,{rounding:"circle",marginStart:-2,width:a&&o?16:12,height:a&&o?16:12,color:"light",dangerouslySetInlineStyle:{__style:{marginTop:a&&o?-8:-6}}})})]})},858416:(e,t,n)=>{"use strict";n.d(t,{Wr:()=>c,Hx:()=>m,RC:()=>p});var i=n(667294),l=n(425288),a=n(924687),r=n(311541),o=n(785893);let s=()=>Promise.resolve().then(n.bind(n,924687)),{Provider:d,useHook:u}=(0,l.Z)("IdeaPinVideoPlayer");function c({children:e}){let[t,n]=(0,r.Z)(s,a.initialState),l=(0,i.useMemo)(()=>({dispatch:n,ideaPinVideoPlayerControls:t}),[n,t]);return(0,o.jsx)(d,{value:l,children:e})}function p(){let{dispatch:e}=u();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=>{t?e({type:"UPDATE_SEEKING_IDEA_PIN",payload:{isSeekingIdeaPin:t}}):e({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 m(){let{ideaPinVideoPlayerControls:e}=u();return e}},924687:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,initialState:()=>i});let i={seekTime:void 0,seekTimes:{},isSeekingIdeaPin:!1,currentProgressInfo:{currentTime:0,duration:0}};function l(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}}},488789:(e,t,n)=>{"use strict";n.d(t,{c:()=>o,o:()=>r});var i=n(667294),l=n(785893);let a=(0,i.createContext)(null);function r({children:e,closeupPaneWidth:t,headerHeight:n,isLandingPage:r,loadFonts:o,renderStoryPinMediaLayout:s,renderStoryPinSplitLayout:d,renderStoryPinText:u,renderStoryPinPage:c,productPins:p}){let m=(0,i.useMemo)(()=>({closeupPaneWidth:t,headerHeight:n,isLandingPage:r,loadFonts:o,renderStoryPinMediaLayout:s,renderStoryPinSplitLayout:d,renderStoryPinText:u,renderStoryPinPage:c,productPins:p}),[t,n,r,o,s,d,u,c,p]);return(0,l.jsx)(a.Provider,{value:m,children:e})}let o=()=>(0,i.useContext)(a)},224496:(e,t,n)=>{"use strict";n.d(t,{Cc:()=>m,DL:()=>d,Gf:()=>y,LX:()=>l,Lc:()=>v,Ls:()=>h,Rf:()=>s,YL:()=>o,ap:()=>a,h8:()=>c,pE:()=>u,s5:()=>g,tQ:()=>p,yR:()=>r});var i=n(883119);let l={w:9,h:16},a=l.w/l.h,r=8,o=10,s=5e3,d=2e3;function u(e,t=1){return{x:(null!=e?e:24)/5,y:(null!=e?e:24)*(t-1)}}let c={COMMENT_REPLY_STICKER:"story_pin_comment_reply_block",GENERIC_STICKER:"story_pin_generic_interactive_sticker_block",HEADING:"story_pin_heading_block",IMAGE:"story_pin_image_block",INGREDIENT:"story_pin_ingredient_block",LINK:"story_pin_link_block",MENTION_STICKER:"story_pin_mention_sticker_block",MUSIC:"story_pin_music_block",PARAGRAPH:"story_pin_paragraph_block",PRODUCT_STICKER:"story_pin_product_sticker_block",SUPPLY:"story_pin_supply_block",VIDEO:"story_pin_video_block",VTO_MAKEUP_STICKER:"story_pin_virtual_try_on_makeup_sticker_block"},p=[c.IMAGE,c.VIDEO],m={alignment:1,hex_color:"#111111",highlight_color:"#FFFFFF",vertical_alignment:1,font:{default_size:28,id:"1",key:"Graphik-Regular.otf",letter_spacing:-.4,line_height:1.25,name:"Teaspoon",url:"https://s.pinimg.com/story_pins/fonts/Graphik-Regular.otf"},font_size:28},h=new i.Ry(1),_=new i.Ry(5),g=new i.H3([_]),y=new i.H3([g]),v=e=>{let t=Math.floor(e||0),n=Math.floor(t/60),i=t-60*n,l=n<10?`${n}`:n,a=i<10?`0${i}`:i;return`${l}:${a}`}},775151:(e,t,n)=>{"use strict";n.d(t,{BN:()=>u,RK:()=>d,d3:()=>p,tq:()=>m,xm:()=>c});var i=n(667294),l=n(441253),a=n(224496),r=n(700314),o=n(829407);let s=(e,t)=>{let n=(0,a.pE)(e,t);return`${n.y}px ${n.x}px`},d=({alignment:e,verticalAlignment:t})=>{let n={alignItems:"flex-start",display:"flex",height:"100%",justifyContent:"start",textAlign:"left",width:"100%"};return 1===t?n.alignItems="center":2===t&&(n.alignItems="flex-end"),1===e&&(n.justifyContent="center",n.textAlign="center"),n},u=({fontSize:e,hexColor:t,highlightColor:n,letterSpacing:i,lineHeight:l,name:a})=>({fontSize:e,letterSpacing:i,color:t,fontFamily:a,margin:0,maxHeight:"100%",textShadow:!n&&t&&"#ffffff"===t.toLowerCase()?"0px 1px 4px rgba(0, 0, 0, 0.2)":void 0,wordBreak:"break-word",...n?{backgroundColor:n,borderRadius:e/5,padding:s(e,l)}:{}}),c=({fontSize:e,hasText:t,highlightColor:n,lineHeight:i})=>({...n?{backgroundColor:t?n:void 0,borderRadius:e/5,padding:s(e,i)}:{}}),p=({letterSpacing:e,lineHeight:t,name:n,url:i})=>({fontFamily:n,fontGroup:"",fontOverrides:{letterSpacing:e,lineHeight:t,textTransform:!1},format:"truetype",defaultStyle:0,styles:[{name:"Regular",fontStyle:"",fontWeight:"normal",fontUrl:i}]}),m=({hasPin:e,pages:t,limitToSingleFont:n})=>{let[s,d]=(0,i.useState)(!1),[u,c]=(0,i.useState)(()=>!!e&&(0,r.X7)(t)),m=()=>{let e=t.reduce((e,t)=>{var i;let l=(null==t?void 0:null===(i=t.blocks)||void 0===i?void 0:i.filter(e=>[a.h8.PARAGRAPH,a.h8.HEADING].includes(e.type)))||[];return n&&l.length>1&&(l=[l[0]]),l.forEach(t=>{var n;let i=(null===(n=t.style)||void 0===n?void 0:n.font)||a.Cc.font,{name:l=""}=i;e[l]||(e[l]=i)}),e},{});if(Object.keys(e).length>0){let t=Object.keys(e).map(t=>{let n=e[t];return p({letterSpacing:n.letter_spacing,lineHeight:n.line_height,name:n.name,url:n.url})});(0,l.Z)(t),d(!0)}};return(0,o.Z)(()=>{m()}),(0,o.Z)(()=>{u||m()}),(0,i.useEffect)(()=>{u||c((0,r.X7)(t))},[u,t]),{fontsLoaded:s,mediaDataReceived:u}}},148028:(e,t,n)=>{"use strict";function i({currentTime:e,endTime:t,startTime:n}){return"number"!=typeof n||"number"!=typeof t||!(n>=0)||!(t>0)||!(n<t)||n<=e&&e<=t}n.d(t,{Z:()=>i})},700314:(e,t,n)=>{"use strict";n.d(t,{B7:()=>r,X7:()=>o,n4:()=>a});var i=n(224496);function l(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let a=(e,t)=>{let n=/^\d{1,3}\.\d{1,3}(?:\.\d{1,6})?$/;if(!(null!=e&&e.match(n))||!(null!=t&&t.match(n)))return null;let i=null==e?void 0:e.split("."),l=null==t?void 0:t.split("."),a=Math.max((null!=i?i:"").length,(null!=l?l:"").length);for(let e=0;e<a;e+=1){var r,o;let t=e<(null!==(r=null==i?void 0:i.length)&&void 0!==r?r:0)?parseInt(null==i?void 0:i[e],10):0,n=e<(null!==(o=null==l?void 0:l.length)&&void 0!==o?o:0)?parseInt(null==l?void 0:l[e],10):0;if(t<n)return -1;if(t>n)return 1}return 0};class r{constructor(e,t,n){if(l(this,"start",Date.now()),l(this,"paused",!1),this.onProgress=e,this.onComplete=t,this.duration=n,this.remaining=n,"undefined"==typeof window)return;this.intervalId=window.setInterval(()=>{let e=this.paused?this.duration-this.remaining:this.duration-this.remaining+(Date.now()-this.start);this.onProgress(e/this.duration)},500),this.resume()}currentTime(){return this.duration-this.remaining}pause(){this.paused=!0,window.clearTimeout(this.timerId),this.remaining-=Date.now()-this.start;let e=this.duration-this.remaining;this.onProgress(e/this.duration)}resume(){this.paused=!1,this.start=Date.now(),window.clearTimeout(this.timerId),this.timerId=window.setTimeout(this.onComplete,this.remaining)}clear(){window.clearTimeout(this.timerId),window.clearInterval(this.intervalId)}}let o=e=>e.some(e=>{var t;return(null!==(t=null==e?void 0:e.blocks)&&void 0!==t?t:[]).some(e=>e.type===i.h8.IMAGE&&!!e.image||e.type===i.h8.VIDEO&&(!!e.video||!!e.video_signature))})},985913:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(858142);let l=/\{\{\s*(\w+)\s*\}\}/g,a=(e,t)=>(0,i.Z)(l,e,t)},858791:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&#39;")},927104:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=(e,t)=>e.length>t?e.substr(0,t-3).trim()+"…":e},858142:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=(e,t,n)=>t?t.replace(e,(e,t)=>n&&Object.prototype.hasOwnProperty.call(n,t)?n[t]:""):""},66699:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(985913),l=n(858791);let a=(e,t)=>{let n={};return Object.keys(t).forEach(e=>{n[e]=t[e]?(0,l.Z)(t[e].toString()):""}),(0,i.Z)(e,n)}},883561:(e,t,n)=>{"use strict";function i(e,t=80,n="…",i=!1){let l;if(!e)return"";if(e.length<=t)return e;if(" "!==e[t-1]&&" "===e[t]||i)l=e.substring(0,t);else{let n=e.lastIndexOf(" ",t);l=e.substring(0,n)}return(l=l.replace(/[\- _,.<>:;+=*&@~\/\|!]*$/,""))+n}n.d(t,{ZP:()=>i})},70061:(e,t,n)=>{"use strict";function i(e){return e.replace(/[_.-](\w|$)/g,(e,t)=>t.toUpperCase())}n.d(t,{Z:()=>i})},430323:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var i=n(667294),l=n(722767),a=n(558068),r=n(780280),o=n(239745),s=n(245474),d=n(425288);let{Provider:u,useMaybeHook:c}=(0,d.Z)("timeSpentContext");var p=n(790123),m=n(350118),h=n(785893);function _(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class g extends i.Component{constructor(e){super(e),_(this,"componentWillUnmount",()=>{this.unregisterComponent()}),_(this,"getContext",()=>{let{clientTrackingParams:e,component:t,element:n,objectId:i,timeSpentContext:l,view:a,viewParameter:r}=this.props;return{view:a||(null==l?void 0:l.view),viewParameter:r||(null==l?void 0:l.viewParameter),component:t||(null==l?void 0:l.component),element:n,objectId:i||(null==l?void 0:l.objectId),clientTrackingParams:e||(null==l?void 0:l.clientTrackingParams),getParentUuid:()=>this.getUuid(),getGrandparentUuid:()=>this.getParentId()}}),_(this,"getLoggerContext",()=>{let e={...this.getContext()};return delete e.getParentUuid,e}),_(this,"getParentId",()=>{let{timeSpentContext:e,shouldUseGrandparentId:t=!1}=this.props;if(t&&e&&e.getGrandparentUuid){let t=e.getGrandparentUuid();if(t)return t}return e&&e.getParentUuid?e.getParentUuid():void 0}),_(this,"getUuid",()=>this.state.timedPair?this.state.timedPair.uuid:void 0),_(this,"getTimedPair",()=>this.state.timedPair),_(this,"setTimedPair",e=>this.setState({timedPair:e})),_(this,"isRegistered",!1),_(this,"registerComponent",()=>{this.props.timeSpentManager.registerComponent(this),this.isRegistered=!0}),_(this,"unregisterComponent",()=>{this.isRegistered&&(this.props.timeSpentManager.unregisterComponent(this),this.isRegistered=!1)}),_(this,"handleVisibilityChange",e=>{let{intersectionRatio:t}=e[0],{bottom:n,left:i,right:l,top:a}=e[0].intersectionRect;t>0?this.registerComponent():0===t&&(0===n&&0===i&&0===l&&0===a?this.unregisterComponent():this.registerComponent())}),this.state={timedPair:new s.Z(this.getLoggerContext())}}componentDidUpdate(e){!this.isRegistered||e.view===this.props.view&&e.viewParameter===this.props.viewParameter&&e.component===this.props.component&&e.element===this.props.element&&e.objectId===this.props.objectId&&(0,o.Z)(e.auxData,this.props.auxData)&&(0,o.Z)(e.viewData,this.props.viewData)||(this.unregisterComponent(),setTimeout(this.registerComponent))}render(){let{children:e}=this.props;return(0,h.jsx)(u,{value:this.getContext(),children:(0,h.jsx)(l.Z,{options:{threshold:0},onVisibilityChange:this.handleVisibilityChange,children:i.Children.only(e)})})}}function y(e){var t;let n=(0,a.Hv)(),l=c(),o=(0,p.w)(),s=(0,m.H0)(),{requestIdentifier:d=""}=(0,r.B)(),u={app_instance_id:d.slice(0,8),...null!==(t=e.auxData)&&void 0!==t?t:{}};return(0,i.useEffect)(()=>{null==o||o.setHistoryStackContext(n)},[n,o]),(0,i.useEffect)(()=>{null==o||o.setPins(null!=s?s:{})},[s,o]),o?(0,h.jsx)(g,{...e,auxData:u,timeSpentContext:l,timeSpentManager:o,children:e.children}):e.children}y.displayName="TimeSpent";let v=y},433780:(e,t,n)=>{"use strict";n.d(t,{w:()=>m});var i=n(768559),l=n(245474),a=n(704115),r=n(67347);function o(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let s=null,d={ACTIVE:"ACTIVE",PAUSED:"PAUSED"},u=()=>window&&window.performance&&window.performance.now?`(Time: ${(window.performance.now()/1e3).toFixed(3)}s)`:"",c=e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}},p={};function m({contextLogger:e,shouldExtractTrackingParams:t}){if(s)return s;let n=(n,l,a)=>{if(t&&a&&n){let e;let{pair_id:t,event_type:d}=n;if(4703===d&&t&&p[t])n.clientTrackingParams=p[t];else{var r,o,s;let u=n.object_id_str,c=u?a[u]:null,m=null==l?void 0:null===(r=l.current)||void 0===r?void 0:r.location,h=null==l?void 0:l.previous;c&&m&&(e=(0,i.Z)({boardUrl:null===(o=c.board)||void 0===o?void 0:o.url,location:m,pinId:c.id,pinnerUserName:null===(s=c.pinner)||void 0===s?void 0:s.username,previousHistory:h,storyPinDataId:c.story_pin_data_id,trackingParams:c.tracking_params,trackingParamsMap:c.tracking_params_map})||`${c.tracking_params||""}~0`,n.clientTrackingParams=e,4702===d&&t&&(p[t]=e))}}e.logContextEvent(n)},m=new Map,h=(0,a.Z)()&&(0,a.Z)().debug_timespent,_=h?console:{error:(...e)=>{},log:(...e)=>{},group:(...e)=>{},groupEnd:(...e)=>{}};return console.group||(_.group=(...e)=>console.log(...e),_.groupEnd=(...e)=>{}),s=new class{constructor(){o(this,"appTimedPair",null),o(this,"clickthroughProperties",null),o(this,"historyStackContext",null),o(this,"offsiteTimedPair",null),o(this,"offsiteTimedPairForegroundId",null),o(this,"pins",Object.freeze({})),o(this,"addEventListeners",()=>{let e,t;"undefined"!==document.hidden?(e="hidden",t="visibilitychange"):"undefined"!==document.msHidden?(e="msHidden",t="msvisibilitychange"):"undefined"!==document.webkitHidden&&(e="webkitHidden",t="webkitvisibilitychange"),t&&document.addEventListener(t,t=>{document[e]?this.unregisterApp(!1,void 0,t):document.hasFocus()&&this.registerApp()},!1),window.addEventListener("focus",this.registerApp),window.addEventListener("blur",e=>this.unregisterApp(!1,void 0,e));let n=c(e=>this.unregisterApp(!0,void 0,e));window.addEventListener("beforeunload",n),window.addEventListener("pagehide",n);let i=navigator&&navigator.userAgent.toLowerCase();i&&i.includes("macintosh")&&i.includes("chrome")&&window.addEventListener("popstate",t=>{document.hasFocus()||document[e]||(0,r.nP)("chrome_mac_back_forward_button",{sampleRate:1})})}),o(this,"storeClickthroughProperties",e=>{this.clickthroughProperties&&(0,r.nP)("webapp.metrics.clickthroughs.overwritten",{sampleRate:1,tags:{previousView:this.clickthroughProperties.view_type,previousViewParameter:this.clickthroughProperties.view_parameter,nextView:e.view_type,nextViewParameter:e.view_parameter}}),this.clickthroughProperties=e}),o(this,"clearClickthroughProperties",()=>{this.clickthroughProperties=null,this.offsiteTimedPair=null,this.offsiteTimedPairForegroundId=null}),o(this,"registerApp",()=>{_.group("App Foreground",u()),null==this.appTimedPair?(this.appTimedPair=new l.Z,this.appTimedPair.start(),this._unpauseAllComponents(),this._endOffsiteTimedPair(),null!==this.appTimedPair&&void 0!==this.appTimedPair&&n({event_type:4700,pair_id:this.appTimedPair.uuid},this.historyStackContext,this.pins)):_.error("TimedPair already exists for app."),_.groupEnd()}),o(this,"unregisterApp",(t=!1,i=!1,l)=>{_.group("App Background",u());let{appTimedPair:a}=this;if(null!=a){this._pauseAllComponents();let e=a.end();this._startOffsiteTimedPair(),n({event_type:4701,duration_ns:e,pair_id:a.uuid},this.historyStackContext,this.pins),this.appTimedPair=null}else _.error("No TimedPair found for app.");let r=["beforeunload","pagehide"],o=r.includes(null==l?void 0:l.type),s=r.includes(null==l?void 0:l.pauseReason);(o||s)&&this._endOffsiteTimedPair(),i||e.flushContextEvents(null!=t&&t),_.groupEnd()}),o(this,"_activateComponent",e=>{_.group("Activating component",u()),h&&_.log(e.getContext());let t=e.getTimedPair();if(t){t.start();let{view:i,viewParameter:l,component:a,element:r,objectId:o,clientTrackingParams:s}=e.getLoggerContext();n({event_type:4702,view_type:i,view_parameter:l,component:a,element:r,object_id_str:o,view_data:e.props.viewData,pair_id:t.uuid,clientTrackingParams:s,aux_data:{time_spent_foreground_pairid:this.appTimedPair&&this.appTimedPair.uuid,time_spent_parent_pairid:e.getParentId(),...e.props.auxData}},this.historyStackContext,this.pins)}_.groupEnd()}),o(this,"_deactivateComponent",e=>{_.group("Deactivating component",u()),h&&_.log(e.getContext());let t=e.getTimedPair();if(t){let{view:i,viewParameter:l,component:a,element:r,objectId:o,clientTrackingParams:s}=t,d=t.end();n({event_type:4703,view_type:i,view_parameter:l,component:a,element:r,object_id_str:o,view_data:e.props.viewData,duration_ns:d,pair_id:t.uuid,clientTrackingParams:s,aux_data:{time_spent_foreground_pairid:this.appTimedPair&&this.appTimedPair.uuid,time_spent_parent_pairid:e.getParentId(),...e.props.auxData}},this.historyStackContext,this.pins)}_.groupEnd()}),o(this,"_startOffsiteTimedPair",()=>{let{clickthroughProperties:e}=this;e&&(this.offsiteTimedPair=new l.Z({...e,view:186,viewParameter:e.view_parameter,objectId:e.object_id_str}),this.offsiteTimedPair.start(),this.offsiteTimedPairForegroundId=this.appTimedPair?this.appTimedPair.uuid:null,n({...e,event_type:4702,view_type:186,pair_id:this.offsiteTimedPair?this.offsiteTimedPair.uuid:null,aux_data:{...e.aux_data,time_spent_foreground_pairid:this.offsiteTimedPairForegroundId}},this.historyStackContext,this.pins))}),o(this,"_endOffsiteTimedPair",()=>{let{offsiteTimedPair:e,clickthroughProperties:t}=this;if(e&&t){let i=e.end();n({...t,event_type:4703,view_type:186,pair_id:this.offsiteTimedPair?this.offsiteTimedPair.uuid:null,aux_data:{...t.aux_data,time_spent_foreground_pairid:this.offsiteTimedPairForegroundId},duration_ns:i},this.historyStackContext,this.pins),this.clearClickthroughProperties()}}),o(this,"_pauseAllComponents",()=>{_.group("Pause all components"),m.forEach((e,t,n)=>{e===d.ACTIVE&&this._deactivateComponent(t),n.set(t,d.PAUSED)}),_.groupEnd()}),o(this,"_unpauseAllComponents",()=>{_.group("Unpause all components"),m.forEach((e,t)=>{t.setTimedPair(new l.Z(t.getLoggerContext()))}),m.forEach((e,t)=>{m.set(t,d.ACTIVE),this._activateComponent(t)}),_.groupEnd()})}setHistoryStackContext(e){this.historyStackContext=e}setPins(e){this.pins=e}registerComponent(e){null===this.appTimedPair?m.set(e,d.PAUSED):(m.set(e,d.ACTIVE),this._activateComponent(e))}unregisterComponent(e){let t=m.get(e);t===d.ACTIVE&&(this._deactivateComponent(e),e.setTimedPair(new l.Z(e.getLoggerContext()))),m.delete(e)}size(){return m.size}}}},790123:(e,t,n)=>{"use strict";n.d(t,{j:()=>p,w:()=>c});var i=n(407043),l=n(425288),a=n(780280),r=n(433780),o=n(50286),s=n(829407),d=n(785893);let{Provider:u,useMaybeHook:c}=(0,l.Z)("TimeSpentManagerContext");function p({children:e}){let t=(0,i.v)(),n=(0,o.HG)(),{isAuthenticated:l}=(0,a.B)(),c=(0,r.w)({contextLogger:t,shouldExtractTrackingParams:n&&l});return(0,s.Z)(()=>{document.hasFocus()&&c.registerApp(),c.addEventListeners()}),(0,d.jsx)(u,{value:c,children:e})}},245474:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(172045),l=n(17314);function a(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let r="undefined"!=typeof window&&window.performance&&window.performance.now?()=>Math.floor(1e6*window.performance.now()):()=>1e6*Date.now(),o=class{constructor(e){a(this,"start",()=>(this.startTime=r(),this.startTime)),a(this,"end",()=>(this.endTime=r(),this.duration=this.startTime?this.endTime-this.startTime:null,this.duration));try{this.uuid=(0,i.Z)()}catch(e){this.uuid=(0,l.Z)()}e&&Object.assign(this,e)}}},52022:(e,t,n)=>{"use strict";n.d(t,{S:()=>o,Z:()=>s});var i=n(667294),l=n(616550),a=n(53987),r=n(867820);let o=e=>(0,a.L6)(e)?"pin":(0,a.am)(e)?"board":(0,a.Xn)(e)?"login":(0,a.C$)(e)?"home":(0,a.cD)(e)?"profile":(0,a.dr)(e)?"ideas":(0,a.gT)(e)?"ideas-root":(0,a.tZ)(e)?"videos":(0,a.Q0)(e)?"videos-category":(0,a.$Y)(e)?"article":(0,a.E0)(e)?"shopping-spotlight":(0,a.Zz)(e)?"today":(0,a.j8)(e)?"unauth-profile":(0,a.f1)(e)?"shopping-root":(0,a.OX)(e)?"shopping-category":"other";function s(){let e=(0,l.useLocation)();return(0,i.useCallback)(({action:t,item:n,within:i})=>{let l=o(e);(0,r.My)(`logged_out_product.interaction.${l}.${t}`,{item:n||"none",within:i||"none"})},[e])}},273712:(e,t,n)=>{"use strict";n.d(t,{$J:()=>i,Ct:()=>m,Dm:()=>p,Ff:()=>c,Md:()=>s,My:()=>r,Rp:()=>o,ak:()=>a,d0:()=>h,gs:()=>_,jm:()=>d,oo:()=>l,vw:()=>u});let i={SMALL:"SMALL",MEDIUM:"MEDIUM",LARGE:"LARGE",MOBILE_SMALL:"MOBILE_SMALL",MOBILE_LARGE:"MOBILE_LARGE"},l=2,a=6,r=3,o=1.5,s=16,d=8,u=16/9,c=25,p="Includes Paid Promotion #Ad",m={PRE_LIVE:1,OFFLINE:2,LIVE:3,POST_LIVE:4},h={TRUE:!0,FALSE:!1,UNKNOWN:void 0},_=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","EU"]},719626:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>s,e5:()=>u,p6:()=>o,pf:()=>d});var i=n(642298),l=n(898781),a=n(273712),r=n(878987);function o(e){let t=e?(0,i.Z)(new Date(e),"eeee, MMMM do,"):"",n=e?(0,i.Z)(new Date(e),"eee, MMM do,"):"",l=e?(0,i.Z)(new Date(e),"d MMM yyy"):"",a=e?(0,i.Z)(new Date(e),"EEEE"):"",r=e?(0,i.Z)(new Date(e),"h:mm aaa"):"",o=e?(0,i.Z)(new Date(e),"MM/dd/yyyy"):"",s=e?(0,i.Z)(new Date(e),"E, MMM dd"):"";return{date:t,shortDate:n,formalDate:l,dayOfWeek:a,time:r,mmddyyy:o,Emmmdd:s}}function s(e){var t,n;let i=e.creator_class_instance.live_status===a.Ct.POST_LIVE;return{pinId:e.id,classId:e.creator_class.id,storyId:null===(t=e.creator_class.recap_pin)||void 0===t?void 0:t.id,creatorClassInstance:e.creator_class_instance,creatorClassInstanceId:e.creator_class_instance.id,title:e.creator_class_instance.title,isLive:e.creator_class_instance.live_status===a.Ct.LIVE,postLive:i,path:`/tv/${e.id}/?referrer=${e.referrer||0}`,recapPath:`/pin/${(null===(n=e.creator_class.recap_pin)||void 0===n?void 0:n.id)||e.id}/?referrer=${e.referrer||0}`,creator:{avatar:e.creator_class.creator.image_medium_url,host:e.creator_class.creator.full_name||e.creator_class.creator.username,path:`/${e.creator_class.creator.username}`},video:i&&e.creator_class_instance.replay_video?e.creator_class_instance.replay_video.video_list.V_720P:e.creator_class_instance.preview_video?e.creator_class_instance.preview_video.video_list.V_720P:e.creator_class_instance.hero_video?e.creator_class_instance.hero_video.video_list.V_720P:null,subscriberCount:e.creator_class.subscriber_count,subscribers:e.creator_class.subscribers}}function d(e,t,n){let i=a.gs.indexOf(e)>-1,l=a.gs.indexOf(t)>-1;return n&&i||l}function u(e){let t=(0,l.ZP)();switch(e){case r.S7.CREATOR_STUDIO:return{text:t._('Organic creator', 'web.pinTv.studio.pendingEpisode.organicCreator', 'Indicates that the creator is an organic creator'),type:"recommendation"};case r.S7.PINTEREST_APP:return{text:t._('Community creator', 'web.pinTv.studio.pendingEpisode.communityCreator', 'Indicates that the creator is a community creator'),type:"warning"};case r.S7.MANAGED:return{text:t._('Managed creator', 'web.pinTv.studio.pendingEpisode.managedCreator', 'Indicates that the creator is a managed creator'),type:"info"};default:return{text:t._('No source', 'web.pinTv.studio.pendingEpisode.noSource', 'Indicates that there is no application source'),type:"error"}}}},733336:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(667294),l=n(883119),a=n(898781),r=n(785893);function o({content:e,header:t,headerWidth:n,isCollapsible:o,isContentLoaded:s,isOpenByDefault:d,maxHeight:u,onOpen:c,previewContent:p,previewContentHeight:m,shouldToggleOnBodyTap:h,arrowDirection:_}){var g;let[y,v]=(0,i.useState)(!1),[f,b]=(0,i.useState)(0),x=(0,i.useRef)(null),k=(0,a.ZP)(),P=null===(g=x.current)||void 0===g?void 0:g.getBoundingClientRect().height;(0,i.useEffect)(()=>{d&&s&&v(!0)},[d,s]),(0,i.useLayoutEffect)(()=>{void 0===u&&x.current&&P&&P>f&&b(Math.ceil(P))},[f,P,u]);let S=()=>{o&&(v(!y),c&&!y&&c())},w=_||"arrow-forward";return(0,r.jsxs)(l.iP,{onTap:h?S:void 0,children:[(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",justifyContent:"between",paddingY:p?1:5,width:n,children:[(0,r.jsx)(l.xv,{weight:"bold",size:"300",children:t}),o&&(0,r.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{transition:"transform 0.3s ease-in-out",transform:y?`rotate(${"arrow-down"===w?"180deg":"-90deg"})`:""}},marginEnd:4,children:(0,r.jsx)(l.iP,{onTap:S,children:(0,r.jsx)(l.JO,{accessibilityLabel:k._('Expand icon', 'accordion.actionButton', 'accessibility label on accordion'),color:"default",icon:w,size:20})})})]}),(0,r.jsxs)(l.xu,{"data-test-id":"accordion-panel",opacity:y||p?1:0,height:!y&&p?m:y?u||f:0,overflow:void 0===u?"hidden":"auto",marginEnd:p?7:0,dangerouslySetInlineStyle:{__style:{transition:`all 0.3s ease-in-out, visibility 0s linear ${y?"0s":"0.3s"}`,visibility:y||p?"visible":"hidden"}},children:[(0,r.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{display:y?"none":"block"}},children:p}),(0,r.jsx)(l.xu,{opacity:y||p?1:0,dangerouslySetInlineStyle:{__style:{visibility:y?"visible":"hidden",transition:`all 0.3s ease-in-out, visibility 0s linear ${y||p?"0s":"0.3s"}`}},ref:x,children:e})]})]})}o.defaultProps={isCollapsible:!0,isContentLoaded:!0}},413252:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var i=n(667294),l=n(883119),a=n(945544),r=n(509278),o=n(643010),s=n(898781),d=n(773285),u=n(788645),c=n(785893);let p=({isExpanded:e,onToggle:t,expandedText:n,collapsedText:i})=>(0,c.jsx)(l.xu,{display:"inlineBlock","data-test-id":`${e?"less":"more"}-description-container`,children:(0,c.jsx)(l.iP,{onTap:t,children:(0,c.jsx)(l.xv,{weight:"bold",inline:!0,children:e?n:i})})});function m({isExpanded:e,description:t,maxHeight:n,handleToggle:m,Wrapper:h}){let _=(0,i.useRef)(null),[g,y]=(0,i.useState)(!1),v=(0,s.ZP)(),{checkExperiment:f}=(0,d.F)(),b=(0,o.vs)(),x=f("web_new_line_description").anyEnabled,k=f("web_hashtags_in_description_display").anyEnabled;(0,i.useEffect)(()=>{if(!(_&&_.current))return;let{height:e}=_.current.getBoundingClientRect();e>n&&y(!0)},[_,n]);let P=(0,c.jsx)(p,{isExpanded:e,onToggle:m,expandedText:v._('less', 'closeup.description.toggle.lessButton', 'Toggle less description button'),collapsedText:v._('... more', 'closeup.description.toggle.moreButton', 'Toggle more description button')}),S=b?"#111111":"#FFFFFF";return(0,c.jsx)(h,{children:(0,c.jsx)(l.xu,{maxHeight:e?void 0:n,overflow:"hidden",position:"relative","data-test-id":"collapsible-description",children:(0,c.jsxs)(u.Z,{dir:(0,u.j)(t),children:[(0,c.jsx)(l.xu,{ref:_,children:(0,c.jsxs)(l.xv,{inline:!0,children:[x?(0,c.jsx)(a.Z,{description:t}):(0,r.Z)({isHashtagInDescriptionDisplayEnabled:k,text:t})," ",g&&e&&(0,c.jsxs)(l.xv,{inline:!0,weight:"bold",children:["... ",P]})]})}),g&&!e&&(0,c.jsx)(l.xu,{position:"absolute",right:!0,bottom:!0,width:140,dangerouslySetInlineStyle:{__style:{background:`linear-gradient(270deg, ${S} 50%, ${S}00 100%)`,textAlign:"end"}},children:P})]})})})}},948618:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(883119),l=n(785893);function a({ariaHidden:e=!1,color:t="darkGray",size:n}){return(0,l.jsx)("span",{"aria-hidden":e,style:{padding:"0 4px"},children:(0,l.jsx)(i.xv,{color:t,inline:!0,size:null!=n?n:"200",children:"\xb7"})})}},939106:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(667294),l=n(883119),a=n(948618),r=n(785893);function o(e){return null!=e}function s({additionalPadding:e,color:t="darkGray",inline:n,items:s}){let d=e?(0,r.jsx)("span",{style:{padding:`0 ${4*e}px`},children:(0,r.jsx)(a.Z,{color:t})}):(0,r.jsx)(a.Z,{color:t}),u=s.filter(o).reduce((e,t,n)=>[...e,0!==n?d:null,t],[]).filter(o).map((e,t)=>(0,r.jsx)(i.Fragment,{children:e},t));return 0===u.length?null:n?(0,r.jsx)(l.xu,{children:u}):(0,r.jsx)(l.kC,{alignItems:"center",justifyContent:"start",children:u})}},343341:(e,t,n)=>{"use strict";n.d(t,{F9:()=>a,Zo:()=>l});var i=n(425288);let{Provider:l,useHook:a}=(0,i.Z)("toastManagerContext")},753311:(e,t,n)=>{"use strict";n.d(t,{M:()=>r,Q:()=>a});var i=n(667294);let l=(0,i.createContext)(null),a=()=>(0,i.useContext)(l),r=l.Provider},690035:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(753311);let l=()=>{var e;return(null===(e=(0,i.Q)())||void 0===e?void 0:e.showUnauthContextMenu)||(()=>{})}},250059:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=e=>e?"string"==typeof e?e:e.pathname?e.pathname:"":""},388619:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(704115);let l=({url:e})=>{if(e){let t=e.split("?");if(t[1])return(0,i.Z)(t[1])}return(0,i.Z)()}},149230:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(954931);let l=({url:e})=>!!(e&&e.match(/^https{0,1}:\/\//)&&!(0,i.Z)(e))},508847:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});let i=(e,t)=>0===e.lastIndexOf(t,0);var l=n(567831);let a=({url:e})=>{let t=(0,l.Z)("/");return i(e,t)?e.substr(t.length-1):e}},311541:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(667294);function l(e,t){let n=(0,i.useRef)([]),[l,a]=(0,i.useState)(),[r,o]=(0,i.useReducer)(null!=l?l:()=>t,t),s=(0,i.useCallback)(t=>{l?o(t):(n.current.length||e().then(e=>{a(()=>e.default)}),n.current=[...n.current,t])},[e,l]);return(0,i.useEffect)(()=>{l&&(n.current.forEach(o),n.current=[])},[l]),[r,s]}},829407:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(667294);let l=e=>{(0,i.useEffect)(e,[])}},35954:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(667294);let l=(e,t)=>{let n=(0,i.useRef)(()=>{});(0,i.useEffect)(()=>{n.current=e},[e]),(0,i.useEffect)(()=>{if(null===t)return()=>{};let e=setInterval(()=>n.current(),t);return()=>clearInterval(e)},[t])}},807609:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(667294);let l=()=>()=>{},a=()=>!1,r=()=>!0,o=()=>{let e=(0,i.useSyncExternalStore)(l,a,r);return e}},411465:(e,t,n)=>{"use strict";n.d(t,{G:()=>o,Z:()=>s});var i=n(667294),l=n(616550),a=n(785893);let r=(0,i.createContext)(!0);function o({children:e}){let t=(0,l.useLocation)(),[n,o]=(0,i.useState)(!0),s=(0,i.useRef)(t);return(0,i.useEffect)(()=>{s.current!==t&&(s.current=t,o(!1))},[t]),(0,a.jsx)(r.Provider,{value:n,children:e})}function s(){return(0,i.useContext)(r)}},902355:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(667294);async function l(e){return new Promise((t,n)=>{let i=document.createElement("img");i.onerror=()=>n(Error(`Image failed to load with src ${e}`)),i.onload=()=>t(!0),i.src=e})}async function a(e){try{let t=await fetch(e,{method:"HEAD"}),n=await t.blob(),i=n.type.startsWith("image/");{let t=await l(e);return i&&t}}catch(e){return!1}}function r(e){let[t,n]=(0,i.useState)(null);return(0,i.useEffect)(()=>{(async function(){let t=await a(e);n(t)})()},[e]),t}},560927:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(667294),l=n(81072);let a=(e,t)=>{let n=(0,l.Z)();(0,i.useEffect)(()=>{if(t){let{top:n,left:i,bottom:l,right:a}=t.getBoundingClientRect(),{innerHeight:r,innerWidth:o}=window;e(l<0||a<0||n>r||i>o)}},[n,t,e])}},895315:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(667294);function l(e,t){let[n,l]=(0,i.useState)(e),a=(0,i.useRef)(new Map),r=(0,i.useRef)(t),o=r.current;if(o!==t){var s;r.current=t,a.current.set(o,n);let i=null!==(s=a.current.get(t))&&void 0!==s?s:e;return l(i),[i,l]}return[n,l]}},81072:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(667294),l=n(700380);let a=()=>{let[e,t]=(0,i.useState)(0);return(0,i.useEffect)(()=>{let e=(0,l.Z)(()=>t(window.scrollY),10);return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),e}},357787:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var i=n(667294),l=n(973935),a=n(785893);function r(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let o=new Map,s=null,d=e=>{e.forEach(e=>{let t=o.get(e.target);t&&t(e)})},u=e=>{s.unobserve(e),o.delete(e)},c=(e,t="-64px 0px 0px 0px",n)=>{let i={root:"undefined"==typeof document?null:document.querySelector("#mainContainer"),rootMargin:t,threshold:[0,.5,1]};s=s||new window.IntersectionObserver(d,i),o.set(e,n),s.observe(e)},p=e=>o.has(e),m=e=>{class t extends i.Component{constructor(...e){super(...e),r(this,"seen",!1),r(this,"enter",e=>{let t=e.intersectionRatio>0||e.isIntersecting;this.seen=t,this.seen&&this.props.onVisibilityChanged(!0)}),r(this,"leave",()=>{let e=this._node;e&&p(e)&&this.seen&&(this.props.onVisibilityChanged(!1),this.seen=!1)}),r(this,"observe",e=>{try{this._node=l.findDOMNode(this)}catch(e){return}if(!this._node)return;let{inAdsDesktopVideoExperiment:t}=this.props,n=this._node;c(n,e,e=>{if(!o.has(n))return;let i=t?e.intersectionRatio>=.5:e.intersectionRatio>0||e.isIntersecting,l=this.props.trackFullVisible?e.intersectionRatio>=1:i,a=this.props.trackFullVisible?0===e.intersectionRatio:!l;!this.seen&&l?this.enter(e):this.seen&&a&&this.leave()})})}componentDidMount(){let{rootMargin:e}=this.props;this.observe(e)}componentWillUnmount(){let e=this._node;e&&(this.leave(),u(e))}render(){return(0,a.jsx)(e,{...this.props})}}return r(t,"displayName",`DeprecatedWithVisibilityChanged(${e.displayName||e.name})`),t}},644035:(e,t,n)=>{"use strict";n.d(t,{GW:()=>l,RL:()=>i,s4:()=>a});let i="ios",l="android",a="ipad"},562559:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});var i=n(667294),l=n(867631),a=n.n(l),r=n(883119),o=n(112690),s=n(391254),d=n(773285),u=n(780280),c=n(19121),p=n(969315),m=n(179888),h=n(965900),_=n(539766),g=n(785893);function y(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let v=(e,t)=>typeof e!=typeof t||(Array.isArray(t)?e.length!==t.length||t.some((t,n)=>!Array.isArray(e)||t.type!==e[n].type||t.src!==e[n].src):t!==e),f=(e,t)=>t?e.replace("v1.pinimg.com","control"===t?"v3.pinimg.com":"v2.pinimg.com"):e,b=(e,t)=>e[0].src&&t?[{...e[0],src:f(e[0].src,t)}]:e,x=(e,t)=>"string"==typeof e?f(e,t):Array.isArray(e)?b(e,t):e;class k extends i.PureComponent{constructor(...e){super(...e),y(this,"state",{canPlayVideo:!1,isManifestParsed:!1,playbackState:m.Cy.DEFAULT,videoStartTime:this.props.seekTime||0}),y(this,"errorRetryCount",1),y(this,"firstFragBuffered",!1),y(this,"hasPlaybackStarted",!1),y(this,"hasVideoSessionStarted",!1),y(this,"hasVideoSessionEnded",!1),y(this,"hls",null),y(this,"fragStartupTime",{}),y(this,"lastLevelSwitchKbps",null),y(this,"lastStallTime",null),y(this,"lastPauseTime",null),y(this,"logSessionStartOnNextPlay",!1),y(this,"playerId",""),y(this,"videoSessionId",""),y(this,"videoVisibleTime",null),y(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?f(this.props.src,this.props.quicExpGroup):f(this.props.src[0].src,this.props.quicExpGroup),totalStallDurationMs:0,totalPauseDurationMs:0,videoCreatedTime:null}),y(this,"initializeHls",()=>{this.destroyHls();let{src:e,hlsConfig:t,quicExpGroup:n}=this.props,i=new(a())(t),l=x(e,n);i.loadSource(l),this.videoPlayerRef&&i.attachMedia(this.videoPlayerRef.video),i.on(a().Events.FRAG_BUFFERED,this.handleHlsFragBuffered),i.on(a().Events.FRAG_CHANGED,this.handleHlsFragChanged),i.on(a().Events.FRAG_LOADING,this.handleHlsFragLoading),i.on(a().Events.FRAG_LOADED,this.handleHlsFragLoaded),i.on(a().Events.MANIFEST_PARSED,()=>{this.setState({isManifestParsed:!0})}),i.on(a().Events.LEVEL_SWITCHED,this.handleHlsLevelSwitched),i.on(a().Events.ERROR,this.handleHlsError),this.hls=i}),y(this,"destroyHls",()=>{let{hls:e}=this;e&&e.destroy()}),y(this,"addSegment",e=>{let{segments:t}=this.playbackPerformance,n=t&&t[t.length-1];if(this.hls&&t.length&&n&&n.uri!==e.url){this.updateWatchDurationForCurrentSegment();let n=this.videoPlayerRef&&this.videoPlayerRef.video,i=this.hls&&this.hls.levels||{},l="number"==typeof e.level?i[e.level]:{},a=this.fragStartupTime[e.url],r=-1;a&&a.startLoadTime&&a.endLoadTime&&(r=a.endLoadTime-a.startLoadTime);let o={indicatedKbps:l.bitrate/m.bR,duration:e.duration,level:e.level,lastStartPlayTime:this.getCurrentVideoTime(),numServerAddressChange:-1,observedKbps:this.hls&&this.hls.bandwidthEstimate/m.bR||-1,playbackStartDate:Date.now(),serverAddress:"",sn:e.sn,sourceWidth:l.width,sourceHeight:l.height,startupTimeMs:r,switchBitrateKbps:this.lastLevelSwitchKbps||-1,uri:e.url,viewportWidth:n&&n.clientWidth||-1,viewportHeight:n&&n.clientHeight||-1,watchedDurationMs:0};t.push(o)}}),y(this,"initializeSegments",e=>{let{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){(0,p.tE)("initializeSegmentsFailed",!0,n);return}if(!i.length&&"number"==typeof e.level){let t=this.videoPlayerRef&&this.videoPlayerRef.video,{levels:n}=this.hls,l="number"==typeof e.level?n[e.level]:{},a=this.fragStartupTime[e.url],r=-1;a&&a.startLoadTime&&a.endLoadTime&&(r=a.endLoadTime-a.startLoadTime),this.lastLevelSwitchKbps=this.hls.bandwidthEstimate/m.bR;let o={indicatedKbps:l.bitrate/m.bR,duration:e.duration,level:e.level,lastStartPlayTime:null,numServerAddressChange:-1,observedKbps:this.hls.bandwidthEstimate/m.bR||-1,playbackStartDate:null,serverAddress:"",sn:e.sn,sourceWidth:l.width,sourceHeight:l.height,startupTimeMs:r,switchBitrateKbps:this.lastLevelSwitchKbps||-1,uri:e.url,viewportWidth:t.clientWidth,viewportHeight:t.clientHeight,watchedDurationMs:0};i.push(o)}}}),y(this,"getCurrentVideoTime",()=>this.videoPlayerRef&&this.videoPlayerRef.video?this.videoPlayerRef.video.currentTime*m.gJ:null),y(this,"handleCanPlayVideo",e=>{let{contextLogData:t={},onReady:n,playing:i}=this.props,{is_closeup_video:l=!1}=t,{canPlayVideo:a}=this.state;(0,p.tE)("handleCanPlayVideo",!0,l,{firstCanPlayEvent:!a,playing:i}),this.playbackPerformance.hasFatalError=!1,a||(this.playbackPerformance.canPlayTime=new Date),this.setState({canPlayVideo:!0}),n&&n(e)}),y(this,"handleEnded",e=>{let{loop:t,onEnded:n}=this.props,{segments:i}=this.playbackPerformance,l=i&&i[i.length-1];t&&this.videoPlayerRef&&this.videoPlayerRef.video?(this.updateWatchDurationForCurrentSegment(),l&&(l.lastStartPlayTime=0),this.fragStartupTime={}):t||this.logPlaybackPerformance(m.$f,{initiator:"videoEnded",loop:t}),this.setState({playbackState:m.Cy.ENDED}),n&&n(e)}),y(this,"handleHlsError",(e,t)=>{var n,i,l,r,o,s,d;let{contextLogData:u={}}=this.props,{is_closeup_video:c=!1}=u;if(this.playbackPerformance.detailedErrors+=`${this.playbackPerformance.detailedErrors.length>0?", ":""}${t.details}`,t.fatal){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;let e={errorName:t.type,errorReason:t.details,errorRetryCount:this.errorRetryCount,errorMessage:(null===(i=t.err)||void 0===i?void 0:null===(l=i.message)||void 0===l?void 0:l.slice(0,50))||"unknown",errorResponse:(null===(r=t.response)||void 0===r?void 0:null===(o=r.text)||void 0===o?void 0:o.slice(0,50))||"unknown",playbackState:this.state.playbackState};if((0,p.tE)("fatalError",!0,c,e),this.errorRetryCount>0)switch(this.errorRetryCount-=1,t.type){case a().ErrorTypes.NETWORK_ERROR:if(t.details===a().ErrorDetails.MANIFEST_LOAD_ERROR||t.details===a().ErrorDetails.MANIFEST_LOAD_TIMEOUT||t.details===a().ErrorDetails.MANIFEST_LOAD_PARSING_ERROR){let{src:e,quicExpGroup:t}=this.props,n=x(e,t);null===(s=this.hls)||void 0===s||s.loadSource(n)}else null===(d=this.hls)||void 0===d||d.startLoad();break;case a().ErrorTypes.MEDIA_ERROR:null===(n=this.hls)||void 0===n||n.recoverMediaError()}}this.updateWatchDurationForCurrentSegment(),this.setState({playbackState:m.Cy.FAILED})}),y(this,"handleHlsFragBuffered",(e,t)=>{this.firstFragBuffered||(this.initializeSegments(t.frag),this.firstFragBuffered=!0)}),y(this,"handleHlsFragChanged",(e,t)=>{this.addSegment(t.frag)}),y(this,"handleHlsFragLoading",(e,t)=>{var n;let i=null===(n=t.frag)||void 0===n?void 0:n.url;i&&!this.fragStartupTime[i]&&(this.fragStartupTime[i]={startLoadTime:new Date})}),y(this,"handleHlsFragLoaded",(e,t)=>{var n;t.frag&&t.frag.loaded&&(this.playbackPerformance.downloadedKiloBytes+=t.frag.loaded/m.Fm);let 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)}),y(this,"handleHlsLevelSwitched",()=>{this.hls&&this.hls.bandwidthEstimate&&(this.lastLevelSwitchKbps=this.hls.bandwidthEstimate/m.bR)}),y(this,"handleLoadedMetadata",()=>{this.setState({playbackState:m.Cy.LOADED_METADATA})}),y(this,"handleLoadStart",()=>{this.playbackPerformance.loadStartTime=new Date,this.setState({playbackState:m.Cy.LOAD_START})}),y(this,"handleLoadedData",()=>{this.setState({playbackState:m.Cy.LOADED_DATA})}),y(this,"handlePlaying",()=>{this.playbackPerformance.hasFatalError=!1,this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.updateStallDuration(),this.updatePauseDuration(),this.setState({playbackState:m.Cy.PLAYING}),this.props.clearSeekTime&&this.props.clearSeekTime()}),y(this,"handleUserPause",e=>{let{onControlsPause:t}=this.props;this.lastPauseTime=new Date,t&&t(e)}),y(this,"handleVideoPause",()=>{this.state.playbackState===m.Cy.STALLING||this.state.playbackState===m.Cy.SEEKING||(this.updateWatchDurationForCurrentSegment(),this.lastPauseTime||this.updateStallDuration()),this.setState({playbackState:m.Cy.PAUSED})}),y(this,"handleSeeking",()=>{this.playbackPerformance.numberOfSeeks+=1;let{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&(t.lastStartPlayTime=null),this.state.playbackState!==m.Cy.ENDED&&this.setState({playbackState:m.Cy.SEEKING})}),y(this,"handleStalled",()=>{null===this.lastStallTime&&this.state.playbackState!==m.Cy.ENDED&&(this.lastStallTime=new Date,this.playbackPerformance.numberOfStalls+=1),this.setState({playbackState:m.Cy.STALLING})}),y(this,"handleTimeUpdate",e=>{let{onTimeChange:t}=this.props;t&&t(e),this.state.playbackState===m.Cy.PLAYING&&(this.updateWatchDurationForCurrentSegment(),this.setLastSegmentStartPlayTime())}),y(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;let e=this.playbackPerformance.segments[this.playbackPerformance.segments.length-1],t={...e,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=[t]}),y(this,"setLastSegmentStartPlayTime",()=>{let{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.lastStartPlayTime&&(t.lastStartPlayTime=this.getCurrentVideoTime())}),y(this,"setLastSegmentPlaybackStartDate",()=>{let{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.playbackStartDate&&(t.playbackStartDate=Date.now())}),y(this,"setPlaybackStartTime",()=>{this.hasPlaybackStarted||(this.playbackPerformance.playbackStartTimestamp=Date.now(),this.hasPlaybackStarted=!0)}),y(this,"setVideoPlayerRef",e=>{let{setVideoRef:t}=this.props;if(e&&(t&&t(e),this.videoPlayerRef=e,this.videoPlayerRef.video)){let 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)}}),y(this,"updateStallDuration",()=>{null!==this.lastStallTime&&(this.playbackPerformance.totalStallDurationMs+=new Date-this.lastStallTime,this.lastStallTime=null)}),y(this,"updatePauseDuration",()=>{if(null!==this.lastPauseTime){let{lastPauseTime:e}=this;this.playbackPerformance.totalPauseDurationMs+=new Date-e,this.lastPauseTime=null}}),y(this,"updateWatchDurationForCurrentSegment",()=>{let{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){let e=i-n;e>0&&(t.watchedDurationMs+=e,t.lastStartPlayTime=null)}}),y(this,"logPlaybackPerformance",(e,t)=>{let{contextLogData:n={},userId:i,isAutoPlay:l,logContextEvent:a,preload:r}=this.props,{is_closeup_video:o=!1}=n,{canPlayTime:s,detailedErrors:d,downloadedKiloBytes:u,errorCode:c,errorName:h,errorReason:_,hasFatalError:g,playbackStartTimestamp:y,totalPauseDurationMs:v,totalStallDurationMs:f,segments:b,srcString:x,loadStartTime:k,numberOfStalls:P,numberOfSeeks:S}=this.playbackPerformance,w=this.videoPlayerRef&&this.videoPlayerRef.video,A=e===m.DR,T=A&&!this.hasVideoSessionStarted,I=!A&&!this.hasVideoSessionEnded&&this.hasVideoSessionStarted;if(this.hls&&w&&(T||I)){var E;let T=-1;s&&k&&(T=s>k?s-k:0);let I=-1;s&&this.videoVisibleTime&&(I=s>this.videoVisibleTime?s-this.videoVisibleTime:0),A&&(this.videoSessionId=(0,m.Y7)(i),this.playerId=this.playerId||(0,m.EB)());let C={autoplaying:l,averageVideoKbps:-1,detailedErrors:d,downloadedKiloBytes:u,isCellular:!1,errorCode:c,errorName:h,errorReason:_,fatalError:g,nativeVideoDurationMs:w.duration*m.gJ||-1,numberOfStalls:P,numberOfSeeks:S,overallPausedDurationMs:v,overallBufferDurationMs:f,overallWatchedDurationMs:-1,rebufferRate:-1,playbackSessionId:this.videoSessionId,playbackStartTimestamp:y||-1,segments:[],sessionMark:e,screenPixelScale:null!==(E=window)&&void 0!==E&&E.devicePixelRatio?window.devicePixelRatio:-1,startupPlayerWidth:w.clientWidth,startupPlayerHeight:w.clientHeight,startupTimeMs:T,startupLatencyMs:I,startupVariantKbps:-1,startupVariantWatchedDurationMs:-1,startupVariantWidth:w.videoWidth,startupVariantHeight:w.videoHeight,videoUrl:x,wasVideoPreloaded:"auto"===r};if(!A&&b.length){let{levels:e}=this.hls,t=b[0];this.updateWatchDurationForCurrentSegment(),this.updateStallDuration();let n=b.reduce((t,n)=>{if(!n||"number"!=typeof n.level||!e||!(e.length>0))return t;{let i=(e[n.level]||{}).bitrate,l=n.watchedDurationMs;return t+i*(l||0)/m.gJ}},0),i=b.reduce((e,t)=>e+(t.watchedDurationMs||0),0),l=null,a=0,r=0;do a+=b[r].watchedDurationMs,l=l||b[r].level,r+=1;while(r<b.length&&b[r].level===l)C.startupVariantKbps=t.indicatedKbps,C.startupVariantWatchedDurationMs=a,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/m.gJ),C.rebufferRate=this.playbackPerformance.totalStallDurationMs/i):0===i&&(C.averageVideoKbps=-1,C.rebufferRate=-1,C.errorName="invalid_watch_duration"),C.segments=b}else C.errorName="invalid_watch_duration";(0,p.ZP)(C,!0,o,{playbackState:this.state.playbackState,...t});let{clientTrackingParams:D,component:j,durationNs:F,element:R,objectId:L,pairId:z,viewData:O,view:M,viewParameter:N,...B}=n;a({aux_data:{...B,is_closeup_video:o,playback_session_id:this.videoSessionId},clientTrackingParams:D,component:j,duration_ns:F,element:R,event_data:{videoPerformanceData:C},event_type:3606,object_id_str:L,pair_id:z,view_data:O,view_parameter:N,view_type:M}),A?(this.hasVideoSessionStarted=!0,this.hasVideoSessionEnded=!1):this.resetPlaybackMetrics(),(0,p.tE)(A?"sessionStart":"sessionEnd",!0,o,{playbackState:this.state.playbackState,...t})}})}componentDidMount(){let{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(m.DR,{initiator:"mount"}))}componentDidUpdate(e){var t,n;let{loop:i,playing:l,src:a,visible:r,appInFocus:o,seekTime:s,captionsEnabled:d}=this.props,u=null===(t=this.videoPlayerRef)||void 0===t?void 0:null===(n=t.video)||void 0===n?void 0:n.textTracks[0];u&&(d?u.mode="showing":u.mode="disabled",u.addEventListener("cuechange",()=>{let e=u.activeCues&&u.activeCues.length>0&&u.activeCues[0];e&&e.line&&(e.line=-6,e.size=88)})),s&&s!==e.seekTime&&this.setState({videoStartTime:s}),v(e.src,a)&&this.initializeHls(),e.appInFocus&&!o&&(this.logPlaybackPerformance(m.$f,{initiator:"update",loop:i}),this.logSessionStartOnNextPlay=!0),e.visible&&!1===r&&(this.logSessionStartOnNextPlay=!1,this.updatePauseDuration(),this.logPlaybackPerformance(m.$f,{initiator:"update",loop:i})),!1===e.visible&&!0===r&&(this.videoVisibleTime=this.videoVisibleTime||new Date,l?(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(m.DR,{initiator:"update"})):this.logSessionStartOnNextPlay=!0),l&&o&&this.logSessionStartOnNextPlay&&(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(m.DR,{initiator:"update"}),this.logSessionStartOnNextPlay=!1)}componentWillUnmount(){let{loop:e}=this.props;this.updatePauseDuration(),this.logPlaybackPerformance(m.$f,{initiator:"unmount",loop:e}),this.destroyHls()}render(){let{aspectRatio:e,backgroundColor:t,captions:n,controls:i,loop:l,loopOverride:a,objectFit:o,onDurationChange:d,onFullscreenChange:u,onLoadedChange:c,onControlsPlay:p,onPlayheadDown:m,onPlayheadUp:h,onSeek:y,onVolumeChange:v,playbackRate:f,playing:b,playsInline:k,poster:P,preload:S,quicExpGroup:w,src:A,volume:T,captionsEnabled:I}=this.props,{canPlayVideo:E,isManifestParsed:C,videoStartTime:D}=this.state,j=x(A,w);return I?(0,g.jsxs)(r.xu,{width:"100%",children:[(0,g.jsx)(s.Z,{unsafeCSS:_.P}),(0,g.jsx)(r.nk,{aspectRatio:e,backgroundColor:t,captions:n,controls:i,loop:void 0===a?l:a,objectFit:o,onDurationChange:d,onEnded:this.handleEnded,onFullscreenChange:u,onLoadStart:this.handleLoadStart,onLoadedChange:c,onControlsPause:this.handleUserPause,onControlsPlay:p,onPlaying:this.handlePlaying,onPlayheadDown:m,onPlayheadUp:h,onReady:this.handleCanPlayVideo,onSeek:y,onSeeking:this.handleSeeking,onStalled:this.handleStalled,onTimeChange:this.handleTimeUpdate,onVolumeChange:v,onWaiting:this.handleStalled,playbackRate:f,onPlay:()=>{},onPlayError:()=>{},playing:C&&E&&b,playsInline:k,poster:P,preload:S,ref:this.setVideoPlayerRef,src:j,startTime:D,volume:T})]}):(0,g.jsx)(r.nk,{aspectRatio:e,backgroundColor:t,captions:n,controls:i,loop:void 0===a?l:a,objectFit:o,onDurationChange:d,onEnded:this.handleEnded,onFullscreenChange:u,onLoadStart:this.handleLoadStart,onLoadedChange:c,onControlsPause:this.handleUserPause,onControlsPlay:p,onPlaying:this.handlePlaying,onPlayheadDown:m,onPlayheadUp:h,onReady:this.handleCanPlayVideo,onSeek:y,onSeeking:this.handleSeeking,onStalled:this.handleStalled,onTimeChange:this.handleTimeUpdate,onVolumeChange:v,onWaiting:this.handleStalled,playbackRate:f,onPlay:()=>{},onPlayError:()=>{},playing:C&&E&&b,playsInline:k,poster:P,preload:S,ref:this.setVideoPlayerRef,src:j,startTime:D,volume:T})}}let P=(0,i.memo)(function(e){let{country:t,isAuthenticated:n,isBot:i,isSocialBot:l,unauthId:a,userAgent:r}=(0,u.B)(),s=(0,o.Z)(),m=(0,c.Z)(),{browserName:_,browserVersion:y,isMobile:v}=r,{contextLogData:f={}}=e,{is_closeup_video:b=!1,view:x,viewParameter:P}=f,{checkExperiment:S}=(0,d.F)(),w=null;n&&(w=S("web_video_quic").group.length?S("web_video_quic").group:null);let{appUI:A}=(0,h.I)(),T=S("web_video_fail_to_start_fix").anyEnabled?A.appInFocus:e.appInFocus;return(0,p.r$)({browserName:_,browserVersion:y,country:t,isAuthenticated:n,isBot:i,is_closeup_video:b,isMobile:v,isSocialBot:l,view:x,viewParameter:P}),(0,g.jsx)(k,{...e,userId:m.id||a,appInFocus:T,quicExpGroup:w,logContextEvent:s})})},994320:(e,t,n)=>{"use strict";n.d(t,{W:()=>s,r:()=>o});var i=n(667294),l=n(425288),a=n(785893);let{Provider:r,useHook:o}=(0,l.Z)("VideoPlayer");function s({children:e}){let[t,n]=(0,i.useState)(!1),l=(0,i.useMemo)(()=>({captionsEnabled:t,setCaptionsEnabled:n}),[t]);return(0,a.jsx)(r,{value:l,children:e})}},428258:(e,t,n)=>{"use strict";n.d(t,{Q6:()=>l,ZP:()=>r,t2:()=>a});let i=()=>{var e;return!(null!==(e=window)&&void 0!==e&&e.devicePixelRatio)||window.devicePixelRatio<=1?"1x":"2x"},l=()=>{var e,t;let n;let l="undefined"!=typeof window?null===(e=window.navigator)||void 0===e?void 0:null===(t=e.connection)||void 0===t?void 0:t.effectiveType:void 0,a=i();return l?"4g"===l?n="40-80":(a="1x",n="0-1"):n="unknown",{downloadSpeedGroup:n,screenDimension:a}};function a({vEXP3:e,vEXP4:t,vEXP5:n,vEXP6:i,vEXP7:a,v720P:r}){let{downloadSpeedGroup:o,screenDimension:s}=l(),d={"1x":e,"2x":n},u={"1x":a,"2x":a};return({unknown:d,"0-1":d,"1-5":{"1x":t,"2x":n},"5-10":{"1x":n,"2x":n},"10-20":{"1x":i,"2x":i},"20-40":u,"40-80":u,"80_or_above":u})[o][s]||r||void 0}function r(e){let{vHLSV3MOBILE:t,...n}=e,i=a(n),l=t||void 0;return i?{hlsv3:l,mp4:i}:{hlsv3:l}}},969315:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>p,r$:()=>u,tE:()=>c});var i=n(311560),l=n(179888),a=n(67347);let r=["isCellular","videoUrl","sessionMark"],o={},s="",d=e=>e<0?"negative":0===e?"zero":e<200?"xs":e<400?"s":e<600?"m":e<800?"l":e<1e3?"xl":e<1200?"xxl":"over1200",u=e=>{let{browserName:t,browserVersion:n,country:l,isAuthenticated:a,isBot:r,isMobile:d,isSocialBot:u,view:c="unknown",viewParameter:p="unknown"}=e;s=u&&"socialBot"||r&&"bot"||"nonbot";let m=(0,i.Z)(l);o={browserName:t,browserVersion:(null==n?void 0:n.split(".")[0])||"0",isAuthenticated:a,isMobile:d,region:m,view:c,viewParameter:p}};function c(e,t,n,i={}){let l={...i,...o},r=`web.video.${t?"hls":"nonHls"}.${s}.${n?"closeup":"nonCloseup"}.${e}`;"nonbot"===s&&(0,a.nP)(r,{sampleRate:1,tags:l})}function p(e,t,n,i={}){let u=n?"closeup":"nonCloseup",c=t?"hls":"nonHls",p=e.sessionMark===l.DR?"sessionStart":"sessionEnd",m={...i,...o};if("nonbot"===s&&(Object.entries(e).forEach(([t,n])=>{let i=`web.video.${c}.${s}.${u}.${p}.${t}`,l=parseInt(n,10),o="number"==typeof l?l:-1;if(!r.includes(t)){if(t.includes("fatalError")&&!0===n){let{errorCode:t,errorName:n,errorReason:l}=e;(0,a.nP)(i,{sampleRate:1,tags:{errorCode:t,errorName:n,errorReason:l,...m}})}else if(t.includes("Width")||t.includes("Height")){let e=d(o);(0,a.nP)(i,{sampleRate:1,tags:{dimensionBucket:e,...m}})}else if("numberOfStalls"===t){let e=n;o>1e3?e="over1000":o>10?e="over10":o<0&&(e="negative"),(0,a.nP)(i,{sampleRate:1,tags:{numberOfStalls:e,...m}})}else"screenPixelScale"===t?(0,a.nP)(i,{sampleRate:1,tags:{screenPixelScale:n||-1,...m}}):o>=0?(0===o&&(0,a.nP)(`${i}.zero`,{sampleRate:1,tags:m}),(0,a.LY)(i,o,{sampleRate:1})):o<0&&(0,a.nP)(`${i}.negative`,{sampleRate:1,tags:m})}}),e.sessionMark!==l.DR)){let{rebufferRate:t,screenPixelScale:n,startupLatencyMs:i,startupVariantWidth:l,startupPlayerWidth:r}=e,o=`web.video.${c}.${s}.${u}.${p}`;"number"==typeof l&&"number"==typeof r&&"number"==typeof n&&(0,a.nP)(`${o}.upscaled.${1.5*l>n*r?"good":"bad"}`,{sampleRate:1,tags:m}),"number"==typeof i&&(0,a.nP)(`${o}.startupLatency.${i<500?"good":"bad"}`,{sampleRate:1,tags:m}),"number"==typeof t&&(0,a.nP)(`${o}.rebufferRate.${t<.01?"good":"bad"}`,{sampleRate:1,tags:m})}}},179888:(e,t,n)=>{"use strict";n.d(t,{$f:()=>a,Cy:()=>d,DR:()=>l,EB:()=>p,Fm:()=>s,Y7:()=>c,bR:()=>o,gJ:()=>r,lG:()=>u});var i=n(172045);let l=1,a=2,r=1e3,o=1e3,s=1e3,d=Object.freeze({DEFAULT:0,LOAD_START:1,LOADED_METADATA:2,LOADED_DATA:3,PLAYING:4,PAUSED:5,SEEKING:6,STALLING:7,FAILED:8,ENDED:9}),u=Object.freeze({MEDIA_ERR_ABORTED:1,MEDIA_ERR_NETWORK:2,MEDIA_ERR_DECODE:3,MEDIA_ERR_SRC_NOT_SUPPORTED:4});function c(e){return e+"-"+(0,i.Z)()}function p(){return(0,i.Z)()}},121630:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a,e:()=>l});var i=n(81226);let l=e=>{if("undefined"==typeof window)return"";let t=0,n=document.querySelector('[data-test-id="header"]');if(null!==n){let{height:e}=n.getBoundingClientRect();t+=e}switch(e){case"AuthHomefeed":let i=document.querySelector('[data-root-margin="more-ideas-tabs"]');if(null!==i){let{height:e}=i.getBoundingClientRect();t+=e}break;case"SearchItem":let l=document.querySelector('[data-root-margin="search-improvements-bar"]');if(null!==l){let{height:e}=l.getBoundingClientRect();t+=e}let a=document.querySelector('[data-test-id="search-tab-bar"],[data-root-margin="search-one-bar"]');if(null!==a){let{height:e}=a.getBoundingClientRect();t+=e}}return`${-1*t}px 0px 0px 0px`},a=({videosDuration:e,vHLSV4VideoDuration:t,storyPinDataTotalVideoDuration:n})=>{let l=(0,i.Z)(e||t||n||0);return l}},94047:(e,t,n)=>{"use strict";function i({cropArea:e,cropSource:t,requestParams:n,searchQuery:i,surfaceType:l,title:a,trafficSource:r}){let o=[];if(e){let{x:t,y:n,w:i,h:l}=e;t>=0&&n>=0&&i>=0&&l>=0&&o.push(`x=${t}`,`y=${n}`,`w=${i}`,`h=${l}`)}t&&o.push(`cropSource=${t}`),l&&o.push(`surfaceType=${l}`),a&&o.push(`full_feed_title=${encodeURIComponent(a)}`),i&&o.push(`q=${i}`),r&&"unknown"!==r&&o.push(`rs=${r}`),n&&o.push(`requestParams=${encodeURIComponent(n)}`);let s=o.length?`?${o.join("&")}`:"";return s}n.d(t,{Z:()=>i})},297852:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(94047);function l({cropArea:e,cropSource:t,isProductPage:n,pinId:l,requestParams:a,searchQuery:r,surfaceType:o,title:s,trafficSource:d}){let u=(0,i.Z)({cropArea:e,cropSource:t,requestParams:a,searchQuery:r,surfaceType:o,title:s,trafficSource:d}),c="";return n&&(c="products/"),`/pin/${l}/visual-search/${c}${u}`}},43760:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(186656),l=n(48714);function a(e,t){let{auxData:n,clientTrackingParams:a,hasPin:r,pinId:o,isThirdPartyAd:s}=t||{},d={pin_id:o,check_only:!0,client_tracking_params:r?a:void 0,url:e,aux_data:JSON.stringify(n)};s&&(d.third_party_ad=o,delete d.pin_id),(0,i.Z)({url:"/v3/offsite/",data:d}).then(t=>{if(t&&t.resource_response&&!t.resource_response.error){let{resource_response:e}=t,{redirect_status:n,url:i}=e.data,l=["blocked","suspicious","porn"].includes(n);if(!l){if(window.Windows.Foundation&&window.Windows.System&&window.Windows.System.Launcher&&window.Windows.System.Launcher.launchUriAsync){let e=new window.Windows.Foundation.Uri(i);window.Windows.System.Launcher.launchUriAsync(e)}return}}(0,l.Gj)(e,{params:r?{pinId:o,clientTrackingParams:a,auxData:n,isThirdPartyAd:s}:{pinId:o}})})}},869899:(e,t,n)=>{"use strict";n.r(t),n.d(t,{RoleBasedAccessControlProvider:()=>b,useRoleBasedAccessControlContext:()=>f});var i=n(667294),l=n(425288),a=n(773285),r=n(784590),o=n(19121),s=n(389643),d=n(339363),u=n(70061);let c=e=>{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&("object"!=typeof e[n]||null===e[n]||Array.isArray(e[n])?t[(0,u.Z)(n)]=e[n]:t[(0,u.Z)(n)]=c(e[n]));return t},p=(e,t)=>{let n=[];for(let i in e)i!==t&&n.push({id:i,...c(e[i])});let i=n.sort(({user:{businessName:e}},{user:{businessName:t}})=>e.localeCompare(t)),l=new Map;for(let e of i)l.set(e.id,e);return l},m={profiles:new Map,headerVisible:!1,orbacVisibility:!1,activeProfile:void 0,disableProfileChanger:!1},h=(e,t)=>{switch(t.type){case"LOAD_PROFILES":return{...e,profiles:t.payload};case"SET_ACTIVE_PROFILE":return{...e,activeProfile:t.payload};case"TOGGLE_HEADER_VISIBILITY":return{...e,headerVisible:t.payload};case"TOGGLE_ORBAC_VISIBILITY":return{...e,orbacVisibility:t.payload};case"TOGGLE_DISABLE_PROFILE_CHANGER":return{...e,disableProfileChanger:t.payload};default:return e}},_=({dispatch:e,isEnabled:t,state:n})=>{let{orbacVisibility:l,disableProfileChanger:a,headerVisible:r}=n,o=(0,i.useCallback)(n=>{t&&e({type:"SET_ACTIVE_PROFILE",payload:n})},[t,e]),s=(0,i.useCallback)(n=>{t&&e({type:"TOGGLE_ORBAC_VISIBILITY",payload:null!=n?n:!l})},[t,e,l]),d=(0,i.useCallback)(n=>{t&&e({type:"TOGGLE_DISABLE_PROFILE_CHANGER",payload:null!=n?n:!a})},[t,e,a]),u=(0,i.useCallback)(n=>{t&&e({type:"TOGGLE_HEADER_VISIBILITY",payload:null!=n?n:!r})},[t,e,r]);return{changeProfile:o,toggleORBACVisibility:s,toggleDisableProfileChanger:d,toggleHeaderVisibility:u}},g=e=>{let[t,n]=(0,i.useReducer)(h,m),l=_({dispatch:n,isEnabled:e,state:t}),{activeProfile:a,orbacVisibility:r}=t;(0,i.useEffect)(()=>{let e=(0,d.qn)("orbacActiveProfile",!1);e&&n({type:"SET_ACTIVE_PROFILE",payload:e})},[]),(0,i.useEffect)(()=>{let e=(0,d.qn)("orbacVisibilty",!1);e&&n({type:"TOGGLE_ORBAC_VISIBILITY",payload:e})},[]),(0,i.useEffect)(()=>{(0,d.Nh)("orbacVisibility",r)},[r]),(0,i.useEffect)(()=>{(0,d.Nh)("orbacActiveProfile",a)},[a]);let o=(0,i.useCallback)((e,t)=>{n({type:"LOAD_PROFILES",payload:p(e,t)})},[n]);return{state:t,actions:l,receiveProfiles:o}};var y=n(785893);let{Provider:v,useMaybeHook:f}=(0,l.Z)("RoleBasedAccessControlContext"),b=({children:e})=>{let t;let{checkExperiment:n}=(0,a.F)(),l=(0,o.Z)(),d=!!(l.isAuth&&l.isPartner&&n("web_m10n_business_access_orbac_www").anyEnabled),{state:u,actions:c,receiveProfiles:p}=g(d),{activeProfile:m,headerVisible:h,profiles:_=[]}=u,f=_?Array.from(_.values()):[],b=(0,s.Z)(f),x=!!l.isAuth&&f.length>0&&b,k=l.isAuth?l.id:"",P=l.isAuth?l.username:"",{changeProfile:S,toggleORBACVisibility:w,toggleDisableProfileChanger:A,toggleHeaderVisibility:T}=c;(0,i.useEffect)(()=>{if(d){if("string"==typeof b){S(b);return}m||S(k)}},[b,k,d,S,m]),(0,i.useEffect)(()=>{d&&(x&&!h&&T(!0),!x&&h&&T(!1))},[T,x,d,h,_]);let{data:I}=(0,r.Z)(d?{name:"ApiResource",options:{url:"/vx/business_access/profiles/",disable_auth_failure_redirect:!0}}:null),E=null==I?void 0:I.profiles;l&&l.isAuth&&u.activeProfile===l.id?t={id:l.id,permissions:["OWNER"],user:{username:P,businessName:l.fullName,imgUrl:l.imageSmallUrl}}:m&&u.profiles&&(t=u.profiles.get(m)),(0,i.useEffect)(()=>{E&&p(E,k)},[p,E,k]);let C=u.profiles?Array.from(u.profiles.values()):[];return(0,y.jsx)(v,{value:{profiles:C,headerVisible:u.headerVisible,activeProfile:t,changeProfile:S,toggleORBACVisibility:w,toggleDisableProfileChanger:A,toggleHeaderVisibility:T},children:e})}},717615:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(773285),l=n(869899),a=n(389643);let r=()=>{let{checkExperiment:e}=(0,i.F)(),t=(0,l.useRoleBasedAccessControlContext)(),{activeProfile:n}=t||{},r=e("web_m10n_business_access_orbac_www").anyEnabled,o=(0,a.Z)((null==t?void 0:t.profiles)||[]),{anyEnabled:s}=e("useorbacroutematcher_in_useorbacactingas");return r&&(!s||o)&&n&&(n.viewerMeetsMfaRequirement||(n.permissions||[]).includes("OWNER"))?n:Object.freeze({})}},389643:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(616550),l=n(53987),a=n(773285),r=n(19121),o=n(350118);let s=e=>{var t,n,s,d;let u=(0,i.useLocation)(),c=(0,r.Z)(),p=(0,o.S6)(),{anyEnabled:m}=(0,a.F)().checkExperiment("web_m10n_business_access_orbac_www"),h=(0,i.useRouteMatch)("/:username"),_=null==h?void 0:null===(t=h.params)||void 0===t?void 0:t.username,g=(0,i.useRouteMatch)("/pin/:id"),y=null!=g&&null!==(n=g.params)&&void 0!==n&&!!n.id&&(null===(s=p(g.params.id))||void 0===s?void 0:null===(d=s.pinner)||void 0===d?void 0:d.id);if((0,l.ej)(u))return!1;if((0,l.RU)(u))return!0;if((0,l.mY)(u))return m;let v=e.concat(c.isAuth?{user:{username:c.username},id:c.id}:{}).find(e=>{let{user:t={},id:n}=e||{},{username:i}=t;return(!!i&&!!_||!!y&&!!n)&&(i===_||y===n)});return!!v&&v.id}},845772:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(19121),l=n(717615),a=n(231947);let r=()=>{let e=(0,i.Z)(),t=(0,l.Z)(),n=(0,a.lJ)(e,t);return n}},231947:(e,t,n)=>{"use strict";n.d(t,{D3:()=>d,DX:()=>o,KY:()=>u,Ms:()=>i,N1:()=>c,_P:()=>r,lJ:()=>a,nl:()=>l,q6:()=>s});let i=(e,t)=>{let n=e&&e.isAuth?e.username:"";return e&&t&&t.user&&t.user.username&&(n=t.user.username),n},l=(e,t)=>!!(t&&t.user&&e&&e.isAuth&&t.id!==e.id?t.user.eligibleForStlTool:e&&e.isAuth&&e.eligibleForStlTool),a=(e,t)=>e&&e.isAuth&&t&&t.id&&t.id!==e.id?t.id:"",r=(e,t,n)=>{var i;return n&&n.user&&t&&t.isAuth&&n.id!==t.id?n.user.merchantId:null===(i=e.advertiser)||void 0===i?void 0:i.merchant_id},o=(e,t,n)=>n&&n.user&&e.isAuth&&n.id!==e.id?n.user.scheduledPinCount||0:e.isAuth&&t&&t.scheduled_pin_count||0,s=(e,t,n)=>{let i=e&&e.isAuth&&n&&n.id&&n.id!==e.id&&n.id===t;return!!i},d=(e,t,n)=>{let i=s(e,t,n)||e&&e.isAuth&&t===e.id;return!!i},u=(e,t,n)=>{let i=t&&t.owner&&t.owner.id||"";return d(e,i,n)};function c(e,t,n){let i=t?t.id:"";return d(e,i,n)}},522679:(e,t,n)=>{"use strict";n.d(t,{N:()=>p,t:()=>_});var i=n(667294),l=n(214494),a=n(78714),r=n(904431),o=n(924196),s=n(425288),d=n(773285),u=n(785893);let{Provider:c,useHook:p}=(0,s.Z)("LinkedAccount"),m=e=>{(0,a.Z)(e?`/?next=${encodeURIComponent(e)}`:"/")},h=e=>{r.Z.reportFacebookConversion(o.Z.FACEBOOK_ADVERTISER_ID,"CompleteRegistration",{content_name:"/business/convert"}),r.Z.reportPinterestConversion("track","lead",{lead_type:"Self-serve"}),r.Z.reportLinkedInConversion(o.Z.LINKEDIN_PARTNER_ID,o.Z.LINKEDIN_CONVERSION_ID_SUBMISSION_EVENT),r.Z.reportGoogleConversion(o.Z.GOOGLE_ADWORDS_ID,o.Z.GOOGLE_ADWORDS_LABEL_BUSINESS_CONVERT,"/",e)};function _({children:e}){let[t,n]=(0,i.useState)(!1),[a,r]=(0,i.useState)([]),{checkExperiment:o}=(0,d.F)(),s=o("ppm_p_gate").anyEnabled,p=(0,i.useCallback)(({businessName:e,thirdPartyApps:t,thirdPartyMarketingTrackingEnabled:i,nextUrl:a})=>(n(!0),l.Z.create("BusinessOwnershipResource",{business_name:e,third_party_apps:t}).callCreate({showError:!0}).then(()=>{i&&h(s),n(!1),m(a)}).catch(e=>(n(!1),Promise.reject({error:e})))),[n,s]),_=(0,i.useMemo)(()=>({createLinkedBusinessAccount:p,linkedBusinessCreationLoading:t,userAccounts:a,userAccountsRetrieved:r}),[p,t,r,a]);return(0,u.jsx)(c,{value:_,children:e})}},139405:(e,t,n)=>{"use strict";n.d(t,{pb:()=>f,nf:()=>b,lV:()=>x});var i=n(667294),l=n(702664),a=n(441143),r=n.n(a),o=n(214494),s=n(425288),d=n(186656),u=n(505920),c=n(594736),p=n(767546);let m={feature_map:Object.freeze({})},h=(e,t)=>{let n={...(0,p.Z)(e,t),...t.reaction_counts?{reaction_counts:t.reaction_counts}:Object.freeze({}),...t.tags?{tags:t.tags}:Object.freeze({}),...t.tagged_users?{tagged_users:t.tagged_users}:Object.freeze({})};return(0,c.ZP)(e,n)?e:n},_=(e=m,t)=>{if("FETCH_COMPLETE"===t.type){let{payload:{resource:n}}=t,{data:i}=t.payload.response.resource_response;if("AggregatedCommentFeedResource"===n||"AggregatedCommentReplyFeedResource"===n||"DidItCommentsResource"===n){let t=i||[],n=t.reduce((t,n)=>(t[n.id]=h(e[n.id],n),t),{});return{...e,...n}}if("UnifiedCommentsResource"===n&&i&&i.length>0){let t=i.filter(e=>"aggregatedcomment"===e.type),n=t.reduce((t,n)=>(t[n.id]=h(e[n.id],n),t),{});return{...e,...n}}if("UnifiedCommentsPreviewResource"===n&&i&&i.length>0){let t=i[0].aggregated_comment,n=t?{[t.id]:h(e[t.id],t)}:{},l=i[0].creator_reply,a=l?{[l.id]:h(e[l.id],l)}:{};return{...e,...n,...a}}if("AggregatedCommentFeaturesResource"===n&&i&&Object.keys(i).length>0)return{...e,feature_map:i}}else if("AGGREGATED_COMMENT_CREATED"===t.type){let{payload:{aggregatedComment:n}}=t;return n.id?{...e,[n.id]:n}:e}else if("AGGREGATED_COMMENT_DELETED"===t.type||"AGGREGATED_COMMENT_HIDDEN"===t.type){let{payload:{aggregatedCommentId:n}}=t,i={...e};return delete i[n],i}else if("AGGREGATED_COMMENT_HIDDEN_FOR_USER"===t.type){let{payload:{userId:n}}=t;return Object.fromEntries(Object.entries(e).filter(e=>{var t;return(null===(t=e[1].user)||void 0===t?void 0:t.id)!==n}))}else if("AGGREGATED_COMMENT_UPDATED"===t.type){let{payload:{data:n}}=t;return{...e,[n.id]:h(e[n.id],n)}}else if("AGGREGATED_COMMENT_LIKE_TOGGLED"===t.type){let{payload:{data:n}}=t,i=e[n.id],l=i.reaction_counts[1]||0,a={1:n.reaction_by_me?l+1:l-1},r={...i,reaction_by_me:n.reaction_by_me,reaction_counts:a};return{...e,[n.id]:r}}else if("AGGREGATED_COMMENT_HELPFUL_TOGGLED"===t.type){let{payload:{data:n}}=t,i=e[n.id],l=i.helpful_count||0,a=n.marked_helpful_by_me?l+1:l-1,r={...i,marked_helpful_by_me:n.marked_helpful_by_me,helpful_count:a};return{...e,[n.id]:r}}else if("AGGREGATED_COMMENT_HIGHLIGHT_TOGGLED"===t.type){let{payload:{data:n}}=t,i=e[n.aggregated_comment_id],l={...i,highlighted_by_pin_owner:n.is_highlighted};return{...e,[n.aggregated_comment_id]:l}}else if("AGGREGATED_COMMENT_FEATURES_UPDATED"===t.type){let{payload:{data:{featureMap:n}}}=t;return{...e,feature_map:{...e.feature_map,...n}}}else if("UPDATE_AGGREGATED_COMMENT_COMMENT_COUNT"===t.type){let{payload:{increment:n,id:i}}=t,l=e[i];if(!l)return e;let a={...l,comment_count:l.comment_count+n};return{...e,[i]:a}}else if("DELETE_COMMENT_MENTION"===t.type){let{payload:{aggregatedCommentId:n,tagged_users:i}}=t,l=e[n],a={...l,tagged_users:i};return{...e,[n]:a}}else if("GET_COMMENT_TRANSLATION"===t.type){let{payload:{aggregatedCommentId:n,translatedText:i}}=t,l=e[n],a={...l,translatedText:i};return{...e,[n]:a}}return e};var g=n(785893);let{Provider:y,useHook:v}=(0,s.Z)("AggregatedComments");function f({children:e}){let t=(0,l.useSelector)(({resources:e})=>e.UnifiedCommentsResource),n=m;t&&Object.values(t).forEach(e=>{var t;let i=null===(t=e.data)||void 0===t?void 0:t.filter(e=>"aggregatedcomment"===e.type),l=null==i?void 0:i.reduce((e,t)=>(e[t.id]=h(n[t.id],t),e),{});n={...n,...l}});let[a,r]=(0,i.useReducer)(_,n),o=e=>{r({type:"FETCH_COMPLETE",payload:e})};(0,u.Z8)("AggregatedCommentFeaturesResource",o),(0,u.my)("AggregatedCommentFeaturesResource",o),(0,u.Z8)("AggregatedCommentFeedResource",o),(0,u.my)("AggregatedCommentFeedResource",o),(0,u.Z8)("AggregatedCommentReplyFeedResource",o),(0,u.my)("AggregatedCommentReplyFeedResource",o),(0,u.Z8)("DidItCommentsResource",o),(0,u.my)("DidItCommentsResource",o),(0,u.Z8)("UnifiedCommentsPreviewResource",o),(0,u.my)("UnifiedCommentsPreviewResource",o),(0,u.Z8)("UnifiedCommentsResource",o),(0,u.my)("UnifiedCommentsResource",o);let s=(0,i.useMemo)(()=>({aggregatedComments:a,dispatch:r}),[a,r]);return(0,g.jsx)(y,{value:s,children:e})}function b(){let{dispatch:e}=v();return(0,i.useMemo)(()=>({aggregatedCommentCreated(t,n){e({type:"AGGREGATED_COMMENT_CREATED",payload:{parentId:t,aggregatedComment:n}})},aggregatedCommentDeleted:(t,n)=>{e({type:"AGGREGATED_COMMENT_DELETED",payload:{parentId:t,aggregatedCommentId:n}})},aggregatedCommentHidden:t=>{e({type:"AGGREGATED_COMMENT_HIDDEN",payload:{aggregatedCommentId:t}})},aggregatedCommentsHiddenForUser:t=>{e({type:"AGGREGATED_COMMENT_HIDDEN_FOR_USER",payload:{userId:t}})},flagAggregatedComment:async({commentId:e,reason:t,detailedReasons:n})=>(0,d.Z)({url:`/v3/aggregated_comments/${e}/flag/`,method:"PUT",data:{commentId:e,reason:t,detailedReasons:n}}),deleteCommentMention:async t=>{var n;let{resource_response:i}=await (0,d.Z)({url:`/v3/aggregated_comments/${t}/mentions/`,method:"DELETE",data:{fields:["aggregatedcomment.id","aggregatedcomment.tagged_users"]}}),l=null!==(n=i.data)&&void 0!==n?n:{};e({type:"DELETE_COMMENT_MENTION",payload:{aggregatedCommentId:l.id,tagged_users:l.tagged_users}})},translateAggregatedComment:async t=>{try{var n;let{resource_response:i}=await (0,d.Z)({url:`/v3/aggregated_comments/${t}/translate/`,method:"GET"}),l=null!==(n=i.data)&&void 0!==n?n:"";e({type:"GET_COMMENT_TRANSLATION",payload:{aggregatedCommentId:t,translatedText:l}})}catch(n){e({type:"GET_COMMENT_TRANSLATION",payload:{aggregatedCommentId:t,translatedText:""}})}},toggleAggregatedCommentHelpful:({aggregatedCommentId:t,isMarkedHelpfulByMe:n})=>{(0,d.Z)({url:`/v3/helpful/1/${t}/`,method:n?"DELETE":"POST"}),e({type:"AGGREGATED_COMMENT_HELPFUL_TOGGLED",payload:{data:{id:t,marked_helpful_by_me:!n}}})},toggleAggregatedCommentHighlight:async({aggregatedCommentId:t,pinId:n,isHighlighted:i})=>{r()(t,"Could not find comment"),r()(n,"Could not find Pin"),await (0,d.Z)({url:"/v3/aggregated_comments/pin/highlight/",method:"PUT",data:{aggregated_comment:t,pin:n,highlight:!i}}),e({type:"AGGREGATED_COMMENT_HIGHLIGHT_TOGGLED",payload:{data:{aggregated_comment_id:t,pin_id:n,is_highlighted:!i}}})},toggleAggregatedCommentLike:({aggregatedCommentId:t,isLikedByMe:n})=>{(0,d.Z)({url:`/v3/aggregated_comments/${t}/react/`,method:n?"DELETE":"POST",data:{reaction_type:1}}),e({type:"AGGREGATED_COMMENT_LIKE_TOGGLED",payload:{data:{id:t,reaction_by_me:n?0:1}}})},updateAggregatedComment:async({commentId:t,force:n,orbacSubjectId:i,tags:l,text:a})=>{var r;let{resource_response:s}=await o.Z.create("AggregatedCommentResource",{commentId:t,force:n,tags:l,text:a,...i?{orbacSubjectId:i}:{}}).callUpdate({showError:!1}),{tagged_users:d}=null!==(r=s.data)&&void 0!==r?r:{},u=d.map(e=>({...e}));e({type:"AGGREGATED_COMMENT_UPDATED",payload:{data:{id:t,tagged_users:u,tags:JSON.parse(l),text:a}}})},updateAggregatedCommentFeatures:async({userId:t,featureMap:n,passcode:i})=>{var l;let{resource_response:a}=await o.Z.create("AggregatedCommentFeaturesResource",{userId:t,featureMap:n,passcode:i}).callUpdate({showError:!1}),r=null!==(l=a.data)&&void 0!==l?l:Object.freeze({});e({type:"AGGREGATED_COMMENT_FEATURES_UPDATED",payload:{data:{featureMap:r}}})},updateCommentCount:(t,n)=>{e({type:"UPDATE_AGGREGATED_COMMENT_COMMENT_COUNT",payload:{increment:n,id:t}})}}),[e])}function x(){let{aggregatedComments:e}=v();return e}},664569:(e,t,n)=>{"use strict";n.d(t,{n:()=>l,o:()=>i});let i={aggregatedComment:"aggregatedComment",didIt:"didIt",pin:"pin"},l={aggregatedComment:"aggregatedcomment",didIt:"userdiditdata",pin:"pin"}},965900:(e,t,n)=>{"use strict";n.d(t,{g:()=>p,I:()=>c});var i=n(667294),l=n(425288),a=n(567450),r=n(41861);let o={appInFocus:!0,footerPlusButtonVisible:!0,isAutoplay:!1,showTypeaheadOverlay:!1,videosAutoplaying:{currentlyPlayingOrganicVideoId:null,organicVideosAutoplaying:{},promotedVideosAutoplaying:{}},viewportSize:"lg"},s=(e=o,t)=>{if("TOGGLE_TYPEAHEAD_OVERLAY"===t.type)return{...e,showTypeaheadOverlay:t.payload};if("SET_CURRENT_VIDEO"===t.type){let{payload:n}=t,{pinId:i,isPromoted:l,currentTime:a}=n,{videosAutoplaying:o}=e,{currentlyPlayingOrganicVideoId:s,promotedVideosAutoplaying:d,organicVideosAutoplaying:u}=o,c=(0,r.Z)(d),p=(0,r.Z)(u);return!l&&s?e:(l?c[i]={pinId:i,currentTime:a,paused:!1}:p[i]={pinId:i,currentTime:a,paused:!1},{...e,videosAutoplaying:{currentlyPlayingOrganicVideoId:l?s:i,promotedVideosAutoplaying:c,organicVideosAutoplaying:p}})}if("SET_IS_AUTOPLAY"===t.type)return{...e,isAutoplay:t.payload};if("PAUSE_CURRENT_VIDEO"===t.type){let{payload:n}=t,{pinId:i,isPromoted:l,currentTime:a}=n,{videosAutoplaying:o}=e,{promotedVideosAutoplaying:s,organicVideosAutoplaying:d}=o,u=(0,r.Z)(s),c=(0,r.Z)(d);return l?u[i]={...u[i],paused:!0,currentTime:a}:c[i]={...c[i],paused:!0,currentTime:a},{...e,videosAutoplaying:{currentlyPlayingOrganicVideoId:null,promotedVideosAutoplaying:u,organicVideosAutoplaying:c}}}if("SET_APP_FOCUS_STATE"===t.type)return{...e,appInFocus:t.payload};if("SET_VIEWPORT_SIZE"===t.type)return{...e,viewportSize:t.payload};if("SET_FOOTER_VISIBILITY_STATE"===t.type)return{...e,footerPlusButtonVisible:t.payload};return e};var d=n(785893);let{Provider:u,useHook:c}=(0,l.Z)("AppUI");function p({children:e}){let[t,n]=(0,i.useReducer)(s,o),l=(0,i.useCallback)(e=>n({type:"PAUSE_CURRENT_VIDEO",payload:e}),[]),r=(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}),[]),m=(0,i.useCallback)(e=>n({type:"SET_IS_AUTOPLAY",payload:e}),[]),h=(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:l,setCurrentVideo:c,setFooterPlusButtonVisible:p,setIsAutoplay:m,setViewportSize:h,toggleTypeaheadOverlay:_,setAppFocusState:r,appUI:t}),[l,c,p,m,h,_,r,t]);return(0,i.useEffect)(()=>{a.Z.onSessionResume(()=>{r(!0)}).onSessionPause(()=>{r(!1)})},[r]),(0,d.jsx)(u,{value:g,children:e})}},333155:(e,t,n)=>{"use strict";n.d(t,{UP:()=>o,Wv:()=>l,ZF:()=>i,zI:()=>a,zl:()=>r});let i=["AuthHomefeed","CloseupRelatedProducts","FollowingFeedGrid","RelatedPinGrid","RelatedProductsFeed","SearchItem"],l=["ArticleProductsStory","CloseupRelatedProducts","ProductPinsFeed","RelatedProductsFeed","ShoppingPackageItem","RelatedProductsFeed","UserProfilePinGrid","ShoppingGridShippedMetadataWithVisitButton"],a=[...l,"ShoppingGridShippedMetadata","ShoppingSquareGridDomain","ShoppingSquareGridDomainNoMetadata","ProductPinsFeed","ShoppingCatalogsProductsMetadata","ShoppingDynamicHeightGrid"],r=["ShoppingSquareGridDomain","ShoppingGridShippedMetadata","ShoppingSquareGridStorefront","ShoppingSquareGridStorefrontDomain","ShoppingGridShippedMetadataWithVisitButton"],o=["BaseBoardPinGrid"]},740025:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s}),n(422578);var i,l=n(357998),a=n(680046);let r=void 0!==i?i:i=n(150148),o=e=>({board:e.board&&{followedByMe:e.board.followed_by_me},isDownstreamPromotion:e.is_downstream_promotion,pinner:e.pinner&&{explicitlyFollowedByMe:e.pinner.explicitly_followed_by_me},promoter:e.promoter&&{__typename:"User"},recommendationReason:e.recommendation_reason&&{board:e.recommendation_reason.board&&{__typename:"Board"},reason:e.recommendation_reason.reason}});function s({pinKey:e,feedbackType:t,viewParameter:n}){var i,s,d,u,c;let{data:p}=(0,l.Q)(r,e,{useLegacyAdapter:o});return function({feedbackType:e,viewParameter:t,boardFollowedByMe:n,hasPromoter:i,isDownstreamPromotion:l,pinnerFollowedByMe:r,hasRecommendationReason:o,recommendationReasonHasBoard:s,recommendationReasonReason:d}){return(0,a.hP)({boardFollowedByMe:n,feedbackType:e,promotion:i?{isDownstreamPromotion:l}:void 0,pinnerFollowedByMe:r,recommendationReason:o?{hasBoard:s,reason:d}:void 0,viewParameter:t})}({feedbackType:t,viewParameter:n,boardFollowedByMe:!!(null!=p&&null!==(i=p.board)&&void 0!==i&&i.followedByMe),hasPromoter:!!(null!=p&&p.promoter),isDownstreamPromotion:!!(null!=p&&p.isDownstreamPromotion),pinnerFollowedByMe:!!(null!=p&&null!==(s=p.pinner)&&void 0!==s&&s.explicitlyFollowedByMe),hasRecommendationReason:!!(null!=p&&p.recommendationReason),recommendationReasonReason:null!==(d=null==p?void 0:null===(u=p.recommendationReason)||void 0===u?void 0:u.reason)&&void 0!==d?d:void 0,recommendationReasonHasBoard:!!(null!=p&&null!==(c=p.recommendationReason)&&void 0!==c&&c.board)})}},988744:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(667294),l=n(883119),a=n(319915),r=n(499128),o=n(898781),s=n(947599),d=n(343341),u=n(785893);let c=(0,i.lazy)(()=>n.e(4603).then(n.t.bind(n,774855,23)));function p({linkURL:e,onDidFocus:t,onDidClickCopyButton:n,onCopyText:i,toastDuration:p,oneToast:m=!1,hideInput:h=!1,buttonSize:_="lg",asLink:g=!1}){let y=(0,o.ZP)(),{showToast:v,showOneToast:f}=(0,d.F9)(),b=y._('Copy link', '[button] copy a URL link shown, to paste in another place', '[button] copy a URL link shown, to paste in another place'),x=(e,t)=>{t&&(m?f:v)(({hideToast:e})=>(0,u.jsx)(r.ZP,{duration:p,onHide:e,text:null!=i?i:y._('Link copied to clipboard!', 'toast message to confirm if users copied the url successfully', 'toast message to confirm if users copied the url successfully')})),n()};return g?(0,u.jsx)(a.Z,{name:"SafeSuspense_CopyableLink_CopyToClipboard",children:(0,u.jsx)(s.Z,{fallback:(0,u.jsx)(l.zx,{text:b,disabled:!0}),children:(0,u.jsx)(c,{text:e,onCopy:x,children:(0,u.jsx)(l.rU,{href:"",display:"inline",children:b})})})}):(0,u.jsxs)(l.xu,{display:"flex",alignItems:"center",paddingX:h?0:4,children:[!h&&(0,u.jsx)(l.xu,{flex:"grow",marginEnd:2,children:(0,u.jsx)(l.nv,{id:"copylinkurl",onChange:()=>{},onFocus:t,size:"lg",type:"url",value:e})}),(0,u.jsx)(a.Z,{name:"SafeSuspense_CopyableLink_CopyToClipboard",children:(0,u.jsx)(s.Z,{fallback:(0,u.jsx)(l.zx,{text:b,disabled:!0}),children:(0,u.jsx)(c,{text:e,onCopy:x,children:(0,u.jsx)(l.zx,{text:b,size:_})})})})]})}},8320:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var i=n(667294),l=n(883119),a=n(63552),r=n(785893);let o=40,s=70,d={__style:{borderRadius:"4px",padding:"10px 14px"}},u={__style:{borderWidth:"1px",borderStyle:"solid",borderColor:"white"}},c={__style:{borderRadius:"4px",padding:"10px 14px 9px 8px",whiteSpace:"nowrap"}},p=e=>({__style:{borderRadius:"24px",paddingTop:"10px",paddingBottom:"10px",paddingLeft:"14px",paddingRight:"14px",...e}}),m=e=>"transparent"===e||"dark"===e?"inverse":"primary"===e?"light":"default",h=({color:e,icon:t})=>t?c:"transparent"===e?{__style:{...d.__style,...u.__style}}:d,_=({accessibilityLabel:e,color:t,customStyles:n,forwardedRef:d,icon:u,inline:c=!1,minHeight:_=o,minWidth:g=s,onTouch:y,pressState:v,shape:f,text:b})=>{let[x,k]=(0,i.useState)(!1),P=m(t),S=h({color:t,icon:u}),w=(0,r.jsx)(l.xu,{position:"relative",onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:(0,r.jsx)(l.xu,{color:"primary"===t&&x?"errorBase":t,display:c?"inlineBlock":"flex",justifyContent:"center",minHeight:_,minWidth:g,dangerouslySetInlineStyle:"pill"===f?p(n):S,children:(0,r.jsxs)(l.kC,{alignItems:"center",justifyContent:"center",children:[u&&(0,r.jsx)(l.xu,{paddingX:"check"===u?2:0,children:(0,r.jsx)(l.JO,{accessibilityLabel:e,color:P,icon:u,inline:!0,size:"check"===u?16:20})}),(0,r.jsx)(l.xv,{color:P,inline:!0,size:"300",lineClamp:1,weight:"bold",children:b})]})})});return y?(0,r.jsx)(a.Z,{onTouch:y,rounding:"pill"===f?"pill":2,pressState:v||"none",children:(0,r.jsx)(l.xu,{ref:d,children:w})}):w}},57791:(e,t,n)=>{"use strict";n.d(t,{MZ:()=>F,di:()=>L,Ai:()=>R});var i=n(667294),l=n(616550),a=n(883119),r=n(780678),o=n(112690),s=n(926275),d=n(53987),u=n(773285),c=n(383690),p=n(30287),m=n(780280),h=n(844974),_=n(339363),g=n(867820),y=n(19121),v=n(598615),f=n(296679),b=n(938917),x=n(8320),k=n(250059),P=n(48714),S=n(149230),w=n(43760);let A=({children:e,external:t,externalQueryParams:n,target:i,href:a,features:r})=>{let o=(0,l.useHistory)();if(!a)return null;let s=(0,k.Z)(a);return e({navigate:e=>{e.preventDefault(),(0,S.Z)({url:s})||t?"undefined"!=typeof window&&window.Windows?(0,w.Z)(s):(0,P.Gj)(s,{queryParams:n,features:r}):(0,P.G3)({event:e,href:a,history:o,target:"blank"===i?"blank":null})}})};var T=n(785893),I=n(329900),E=n(948376),C=n(698330);let D=e=>"string"==typeof e?e:`${e.pathname||""}${e.search?`?${e.search}`:""}`,j=(e,t=!1)=>function({isAppUpsellDisabled:n,...x}){let{children:k,clientTrackingParams:P,deeplinkUri:S,external:w,onTouch:A,refresh:j,to:F,viewParameter:R,viewType:L}=x,z=(0,b.Z)(),[O,M]=(0,i.useState)(!1),[N,B]=(0,i.useState)(!1),[Z,K]=(0,i.useState)(!1),{isAuth:U}=(0,y.Z)(),{userAgent:{platform:H,browserName:V},locale:G}=(0,m.B)(),$=(0,C.Tt)(),W=(0,o.Z)(),{checkExperiment:q}=(0,u.F)(),Y=(0,l.useLocation)(),X=(0,c.Z)();(0,i.useEffect)(()=>{(async function(){if((0,r.v)()){K(!0);let e=await (0,r.Z)();e.length>0&&B(!0)}})()},[]),(0,i.useEffect)(()=>{U||(0,g.My)(`unauth.app_upsell.has_app.${N.toString()}`,{browser:V,platform:H})},[V,N,U,H]);let Q=()=>{W({event_type:1701,view_type:L,view_parameter:R}),O&&M(!1)};return(0,T.jsxs)(a.xu,{"data-test-id":"deeplink-wrapper",children:[O&&(0,T.jsx)(f.Z,{clientTrackingParams:P,deepLinkUri:S,isOpen:!0,onDismiss:()=>{W({component:14157,element:10308,event_type:10220,view_type:L||202,view_parameter:R,aux_data:{app_upsell_type:"deep-link-app-upsell-modal"}})},onOpenInApp:()=>{(0,h.Nh)("deeplinkBehavior","branchfallback"),Q()},shouldTrackDismiss:!0,to:F,viewParameter:R,viewType:L,app_upsell_type:"deep-link-app-upsell-modal"}),(0,T.jsx)(I.Z,{children:i=>(0,T.jsx)(e,{...x,onTouch:e=>{let l=z&&!n&&U&&!w&&!j&&!(0,p.FP)(window)&&!("ios"===H&&(G||"").startsWith("ar"))&&(0,E.kp)((0,s.Z)(null==$?void 0:$.created_at));if(l){let t=!0,n=!1,l="string"==typeof S&&(S||"").startsWith("/pin/")&&((0,d.uM)(Y)||(0,d.am)(Y)||(0,d.C$)(Y));l?Z&&N&&S&&"android"===H&&q("mweb_auth_deep_link_app_installed_user").anyEnabled&&(X(),t=!1):(t=!1,n=!0),t?(e.stopPropagation(),e.preventDefault(),M(!0)):n||(e.stopPropagation(),e.preventDefault(),W({component:14347,element:13582,event_type:3830,view_type:20,view_parameter:3844,aux_data:{upsell_reason:"deep-link-app-upsell-modal"}}),i(null!=S?S:(0,v.B)(Y,"android"===H),"deep-link-app-upsell-modal"))}else"branchfallback"!==(0,h.qn)("deeplinkBehavior")||(0,_.qn)("fallbackAttempt")||(e.stopPropagation(),e.preventDefault(),(0,_.Nh)("fallbackAttempt",1),i(S,"deep-link-app-upsell-modal",`${window.location.origin}${D(F)}`),Q());!(t&&l)&&A&&A(e)},children:k})})]})},F=j(({accessibilityLabel:e,children:t,external:n,externalQueryParams:i,features:l,inline:r=!1,newTab:o,nofollow:s,onTouch:d,onBlur:u,onFocus:c,pressState:p,rounding:m,to:h})=>(0,T.jsx)(A,{external:n,target:o?"blank":null,externalQueryParams:i,features:l,href:h,children:({navigate:n})=>(0,T.jsx)(a.rU,{accessibilityLabel:e,onBlur:u?({event:e})=>u(e):void 0,onFocus:c?({event:e})=>c(e):void 0,underline:"none",href:(0,k.Z)(h),display:r?"inlineBlock":"block",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),null==d||d(e),e.defaultPrevented||n(e)},rel:s?"nofollow":"none",rounding:m,tapStyle:(Array.isArray(p)?p:[p]).includes("compress")?"compress":"none",children:t})})),R=j(({external:e,externalQueryParams:t,newTab:n,onTouch:i,to:l,...a})=>(0,T.jsx)(A,{external:e,target:n?"blank":null,externalQueryParams:t,href:l,children:({navigate:e})=>(0,T.jsx)(x.Z,{onTouch:t=>{null==i||i(t),t.defaultPrevented||e(t)},...a})})),L=j(x.Z,!0)},329900:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var i=n(407043),l=n(773285),a=n(780280),r=n(619277),o=n(948376),s=n(780678),d=n(826067),u=n(67347);let c="http://play.google.com/store/apps/details?id=com.pinterest",p=["access_token","new_password","new_password_confirm","password","next"],m=(e,t)=>t?(0,d.ru)(e,{invite_code:t}):e,h=(e,t,n)=>{if("ios"===t&&"string"==typeof e&&e.startsWith("discover/article/")){let t=e.split("/")[2];e=`discover_article/${t}/?is_deeplink=1`}return("string"==typeof e&&"shopping/"===e&&(e="?is_deeplink=1"),"string"==typeof e)?m(e,n):"ios"===t||"ipad"===t?m(e.iOS,n):"android"===t?m(e.android,n):null},_=({deeplinkUri:e,invite_code:t,platform:n,fallbackUrl:i,unauthId:l,app_upsell_type:a})=>({deeplink_path:h(e,n,t),current_page_url:(0,d.Gw)("undefined"!=typeof window?window.location.href:"",p),install_id:l,utm_source:140,utm_medium:2152,app_upsell_type:a,...i?{af_r:i}:null}),g=({deeplinkUri:e,invite_code:t,platform:n,unauthId:i,app_upsell_type:l})=>{let a=JSON.stringify({deeplink_path:h(e,n,t),current_page_url:(0,d.Gw)("undefined"!=typeof window?window.location.href:"",p),install_id:i}),r=(0,d.XP)({utm_source:"mweb",utm_medium:"upsell",utm_content:a,app_upsell_type:l});return{referrer:r}},y=({unauthId:e,app_upsell_type:t})=>{let n=(0,d.XP)({utm_source:"mweb",utm_medium:"upsell",utm_campaign:"twa",utm_content:e,app_upsell_type:t});return{referrer:encodeURI(n)}},v=({isAuthenticated:e,deeplinkUri:t,fallbackUrl:n,invite_code:i,logContextEvent:l,platform:a,redirectToLite:r,unauthId:o,userAgent:p,app_upsell_type:m})=>{if(null==l||l({component:14347,element:13582,event_type:701,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:m}}),t){let h=_({isAuthenticated:e,deeplinkUri:t,fallbackUrl:n,invite_code:i,platform:a,unauthId:o,userAgent:p,app_upsell_type:m});if((0,u.nP)("mweb.deeplink",{sampleRate:1,tags:{platform:a}}),i&&(0,u.nP)("mweb.deeplink.invite_code",{sampleRate:1}),(0,u.nP)("mweb.deeplink.unauthId",{sampleRate:1,tags:{withUnauthId:!!o}}),r){(0,u.nP)("mweb.deeplink.lite_link",{sampleRate:1}),null==l||l({component:14347,element:13582,event_type:14540,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:m}});let e=y({unauthId:o,app_upsell_type:m});window.location.href=(0,d.ru)("http://play.google.com/store/apps/details?id=com.pinterest.twa",e)}else if("android"===a){let e=g({deeplinkUri:t,invite_code:i,platform:a,unauthId:o,app_upsell_type:m});(0,s.v)()?(0,s.Z)().then(t=>{if(t.length>0){let e=(0,d.ru)(window.location.href,h);null==l||l({component:14347,element:13582,event_type:703,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:m}});let t=window.open(e);t||null==l||l({component:14347,element:13582,event_type:702,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:m}})}else null==l||l({component:14347,element:13582,event_type:14538,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:m}}),window.location.href=(0,d.ru)(c,e)}).catch(()=>{(0,u.nP)("mweb_android.deeplink.playStore.error",{sampleRate:1})}):(null==l||l({component:14347,element:13582,event_type:14538,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:m}}),window.location.href=(0,d.ru)(c,e))}else{if((0,u.nP)("mweb.deeplink.appsflyer_link",{sampleRate:1}),"ios"===a&&"undefined"!=typeof window&&window.location.href.includes("show_yip_modal")){window.location.href=(0,d.ru)("https://pinterest.com/pinterest-predicts",h);return}null==l||l({component:14347,element:13582,event_type:14539,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:m}}),window.location.href=(0,d.ru)("https://pinterest.onelink.me/TVSr/21e04bfd",h)}}};var f=n(785893);function b({children:e,invite_code:t}){let{isAuthenticated:n,isBot:r,unauthId:s,userAgent:{platform:d,raw:u}}=(0,a.B)(),{logContextEvent:c}=(0,i.v)(),{checkExperiment:p}=(0,l.F)(),m=async(e,i,l)=>{c({component:14347,element:13582,event_type:700,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:i}}),v({isAuthenticated:n,checkExperiment:p,deeplinkUri:e,fallbackUrl:l,invite_code:t,logContextEvent:c,platform:d,redirectToLite:(0,o.Rp)({isBot:r,platform:d,userAgent:u}),unauthId:s,userAgent:u,app_upsell_type:i})};return e(m)}let x=e=>(0,f.jsx)(r.ty,{children:t=>(0,f.jsx)(b,{...e,invite_code:t})});x.displayName="DeepLinkNavigator";let k=x},326960:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(667294),l=n(883119),a=n(112690),r=n(813401),o=n(67347),s=n(785893);function d(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let u=(e,t)=>{let n=e&&e.replace(".","_");return t?n&&n.substring(0,50):n};class c extends i.Component{constructor(...e){super(...e),d(this,"state",{href:void 0}),d(this,"onEvent",()=>new Promise((e,t)=>{"undefined"==typeof window&&t();let{filename:n,imgSrc:i,isAndroidTwa:l,isChromeOnIOS:a,isUnauth:r,logContextEvent:s,category:d,viewParameter:c,viewType:p,pinId:m,imageSignature:h}=this.props,{href:_}=this.state;window.AndroidTwa&&window.AndroidTwa.downloadImage?(window.AndroidTwa.downloadImage(i,u(n,l)),e()):a?(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})),(0,o.nP)(`mweb.${r?"unauth":"auth"}.download.click.${d||"no_category"}`),s({event_type:82,object_id_str:m,view_type:p||3,view_parameter:c||139,aux_data:{image_signature:h}})})),d(this,"DOWNLOAD_ERROR","error")}render(){let{children:e,filename:t,imgSrc:n,isAndroidTwa:a,isChromeOnIOS:r}=this.props,{href:o}=this.state,d=null!=o&&o!==this.DOWNLOAD_ERROR;return(0,s.jsxs)(i.Fragment,{children:[e(this.onEvent),r&&n?(0,s.jsx)(l.xu,{display:"none",children:(0,s.jsx)("a",{ref:e=>this.imageDownload=e,rel:"noopener noreferrer",tabIndex:-1,target:"_blank",href:n})}):d&&(0,s.jsx)(l.xu,{display:"none",children:(0,s.jsx)("a",{ref:e=>this.imageDownload=e,tabIndex:-1,download:u(t,a),href:o})})]})}}function p(e){let t=(0,r.xC)(),n=(0,a.Z)();return(0,s.jsx)(c,{...e,isAndroidTwa:t,logContextEvent:n})}},920085:(e,t,n)=>{"use strict";n.d(t,{H:()=>o,Z:()=>r});var i=n(957161),l=n(867820),a=n(709113);async function r({filename:e,imgSrc:t,imageDownloadSuccessCallback:n,category:i,pinId:a,viewParameter:r,viewType:o,isUnauth:s=!1,platform:d="web",expName:u,expGroup:c},p){return"undefined"==typeof window?Promise.resolve():((0,l.My)("web.download.click",{category:i||"no_category",authType:s?"unauth":"auth",platform:d,viewType:o,expName:u,expGroup:c}),p({event_type:82,object_id_str:a,view_type:o||3,view_parameter:r||139}),t&&document)?fetch(t,{headers:new Headers({Origin:window.location.origin}),mode:"cors"}).then(e=>e.blob()).then(t=>{var a,r;let p=document.createElement("a");p.href=window.URL.createObjectURL(t),p.setAttribute("download",e&&e.replace(".","_")),p.style.display="none",null===(a=document.body)||void 0===a||a.appendChild(p),p.click(),null===(r=document.body)||void 0===r||r.removeChild(p),(0,l.My)("web.download.success",{category:i||"no_category",authType:s?"unauth":"auth",platform:d,viewType:o,expName:u,expGroup:c}),null==n||n()}).catch(()=>{throw(0,l.My)("web.download.failure",{category:i||"no_category",authType:s?"unauth":"auth",platform:d,viewType:o,expName:u,expGroup:c}),Error("Download image error")}):Promise.resolve()}let o=(e,t)=>{let n=i.Z.getItem(a.rN)||0,{group:l}=e(t),r=!!l&&l.startsWith("enabled");if(!r)return{expName:t,expGroup:l,limitReached:!0,oldCount:n,newCount:n};let o=l.split("_").pop(),s=o?parseInt(o,10):0,d=n>=s,u=d?n:n+1;return n!==u&&i.Z.setItem(a.rN,u),{expName:t,expGroup:l,limitReached:d,oldCount:n,newCount:u}}},815613:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w}),n(167912);var i,l=n(883119),a=n(112690),r=n(357998),o=n(898781),s=n(773285),d=n(667679),u=n(867820),c=n(52022),p=n(343341),m=n(50286),h=n(829407),_=n(19121),g=n(945698),y=n(927383),v=n(698330),f=n(201155),b=n(640064),x=n(785893);let k=({children:e,pulsar:t,testId:n})=>t.show?(0,x.jsx)(l.xu,{position:"relative","data-test-id":n,children:(0,x.jsxs)(l.iP,{tapStyle:"none",onTap:t.onClick,children:[(0,x.jsx)(l.xu,{position:"absolute",marginTop:-5,dangerouslySetInlineStyle:{__style:{marginLeft:"-75px"}},children:e}),(0,x.jsx)(l.xu,{position:"absolute",marginTop:-12,dangerouslySetInlineStyle:{__style:{marginLeft:"-83px"}},children:(0,x.jsx)(l.o3,{})})]})}):(0,x.jsx)(l.xu,{"data-test-id":n,children:e}),P=void 0!==i?i:i=n(84928),S=e=>({linkDomain:e.link_domain&&{officialUser:e.link_domain.official_user&&{imageMediumUrl:e.link_domain.official_user.image_medium_url,username:e.link_domain.official_user.username}},nativeCreator:e.native_creator&&{imageMediumUrl:e.native_creator.image_medium_url,username:e.native_creator.username},originPinner:e.origin_pinner&&{imageMediumUrl:e.origin_pinner.image_medium_url,username:e.origin_pinner.username},pinner:e.pinner&&{imageMediumUrl:e.pinner.image_medium_url,username:e.pinner.username}});function w({auxData:e,disabled:t,disableLog:n,followEventType:i,id:w,inline:A,invertColors:T,isFollowed:I,isIdeaPin:E,isLegoEnabled:C,isSecondaryButton:D,isUserFollowButton:j,isUserMe:F,onFollow:R,onUnfollow:L,pinKey:z,shouldUseLegoColors:O,showPulsar:M,size:N,textType:B="FollowFollowing",unfollowEventType:Z,viewParameter:K,viewType:U,clientTrackingParams:H}){let V;let G=(0,o.ZP)(),$=(0,m.HG)(),{showToast:W}=(0,p.F9)(),q=(0,c.Z)(),Y=(0,a.Z)(),X=(0,d.Z)(),{checkExperiment:Q}=(0,s.F)(),J=(0,y.Z)(),ee=(0,_.Z)(),et=ee&&ee.isAuth,{unauthFollowUserId:en,setUnauthFollowUserId:ei}=(0,b.f)(),el=(0,v.mN)()(w),ea=el&&{imageMediumUrl:el.image_medium_url,username:el.username},{data:er}=(0,r.Q)(P,z,{useLegacyAdapter:S}),eo=null==er?void 0:er.linkDomain,es=null==er?void 0:er.nativeCreator,ed=null==er?void 0:er.originPinner,eu=null==er?void 0:er.pinner;V=es||(eo?eo.officialUser:ed||eu);let ec=null!=ea?ea:V;(0,h.Z)(()=>{!$&&et&&en&&w&&en===w&&R(w)});let ep=J({fn:()=>{et?I?(L(w),n||Y({event_type:Z,view_type:U,view_parameter:K,object_id_str:w,aux_data:e,clientTrackingParams:H})):(R(w),j&&W(({hideToast:e})=>{if(!ec)return null;let t=ec.username?`/${ec.username}/`:"";return(0,x.jsx)(f.Z,{handleHide:e,text:G._('Following! Their created Pins will show up in your home feed!', 'followButton.follow.informationalToastText', 'Text explaining that a creator\'s Pins will show up in home feed after follow'),userId:w,href:t,imageUrl:ec.imageMediumUrl})}),n||Y({event_type:i,view_type:U,view_parameter:K,object_id_str:w,aux_data:e,clientTrackingParams:H})):((0,u.My)(`mweb_unauth_follow_button.tap.${String(U)}`),5===U&&26===i&&(0,u.My)("mweb_unauth_board_page_follow_button.tap"),(0,u.NC)(I?"press_profile_unfollow":"press_profile_follow"),q({action:"click",item:"board-follow-button"}),X({reason:"ACTION_REQUIRES_LOGIN_OR_SIGNUP",attributionLabel:E?"click_idea_pin_follow":"click_follow",desktopOptions:{modalType:"signup",modalOptions:$&&Q("pcons_dweb_contextual_follow_modal").anyEnabled?{source:"followButton",container:"follow"}:void 0},mobileOptions:!$&&Q("pcons_mweb_contextual_follow_modal").anyEnabled?{headingType:"follow"}:void 0}),$||ei(null!=w?w:""),(0,u.NC)("clickthrough"))},modalHeader:(0,g.N4)({i18n:G,toFollow:!I})}),em=!I&&!!M,eh=()=>{if(F)return G._('That\'s you!', 'Follow button is disabled because this is you', 'Follow button is disabled because this is you');if("AddRemove"===B)return I?G._('Remove', 'unfollowButton.removeText', 'Follow button label - followed state, so user can click to "remove" the follow'):G._('Add', 'followButton.addText', 'Follow button label - unfollowed state, so user can click to "add" the follow');let e="FollowUnfollow"===B?G._('Unfollow', 'unfollowButton.unfollowText', 'Follow button label - followed state, so user can click to "unfollow" the follow'):G._('Following', 'Follow button label - followed state', 'Follow button label - followed state');return I?e:G._('Follow', 'Follow button label - unfollowed state', 'Follow button label - unfollowed state')};return(0,x.jsx)(k,{pulsar:em?{show:!0,onClick:ep}:{show:!1},testId:F||I?"board-unfollow-button":"board-follow-button",children:(0,x.jsx)(l.zx,{color:O||"AddRemove"===B||!C&&D||I?"gray":"red",disabled:F||t,fullWidth:A,onClick:em?void 0:({event:t})=>{t.preventDefault(),t.stopPropagation(),n||Y({event_type:101,component:13672,element:11951,object_id_str:w,view_type:U,view_parameter:K,aux_data:e,clientTrackingParams:H}),ep()},selected:T?!I:O&&I||!!I&&D,size:N,text:eh(),accessibilityLabel:eh()})})}},962482:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(883119),l=n(898781),a=n(785893);let r=({isInModal:e})=>{let t=(0,l.ZP)();return(0,a.jsx)(i.xu,{alignItems:"center",display:"flex",height:"100%",justifyContent:"center",left:!0,position:e?"absolute":"fixed",top:!0,width:"100%",zIndex:new i.Ry(1),dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(255, 255, 255, .5)"}},children:(0,a.jsx)(i.$j,{accessibilityLabel:t._('Loading', 'Full page loading state', 'Full page loading state'),show:!0})})}},697335:(e,t,n)=>{"use strict";n.d(t,{c:()=>l,t:()=>a});var i=n(883521);function l({children:e}){let{height:t}=(0,i.J)();return e(t)}function a(){let{height:e}=(0,i.J)();return e}},883521:(e,t,n)=>{"use strict";n.d(t,{J:()=>d,Z:()=>m});var i=n(667294),l=n(425288),a=n(522679),r=n(977558),o=n(785893);let{Provider:s,useHook:d}=(0,l.Z)("Header"),u={childList:!0,attributes:!0,subtree:!0},c={height:r.cI,isInBiznuxFullscreen:!1,repinPinId:null,repinStartAnimation:!1,showAccountMenuFlyout:!1};function p(e,t){switch(t.type){case"showAccountMenuFlyout":return{...e,showAccountMenuFlyout:!0};case"hideAccountMenuFlyout":return{...e,showAccountMenuFlyout:!1};case"showRepinAnimation":return{...e,repinStartAnimation:!0,repinPinId:t.payload};case"hideRepinAnimation":return{...e,repinStartAnimation:!1,repinPinId:null};case"updateHeight":return{...e,height:t.payload};case"updateIsInBiznuxFullscreen":return{...e,isInBiznuxFullscreen:t.payload};default:throw Error("action type not supported")}}function m({children:e}){let t=(0,i.useRef)(null),[{height:n,isInBiznuxFullscreen:l,repinPinId:d,repinStartAnimation:m,showAccountMenuFlyout:h},_]=(0,i.useReducer)(p,c);(0,i.useEffect)(()=>{let e=document.getElementById(r.WZ);return e&&"undefined"!=typeof MutationObserver&&(t.current=new MutationObserver(()=>{e&&_({type:"updateHeight",payload:e.clientHeight})}),t.current.observe(e,u)),()=>{var e;null===(e=t.current)||void 0===e||e.disconnect()}});let g=(0,i.useMemo)(()=>({height:n,isInBiznuxFullscreen:l,repinPinId:d,repinStartAnimation:m,showAccountMenuFlyout:h,updateHeaderState:_}),[_,n,l,d,m,h]);return(0,o.jsx)(s,{value:g,children:(0,o.jsx)(a.t,{children:e})})}},977558:(e,t,n)=>{"use strict";n.d(t,{L1:()=>a,Rz:()=>s,WZ:()=>r,cI:()=>l,fe:()=>o,hu:()=>i});let i=64,l=80,a=22,r="HeaderContent",o=671,s={boxShadow:"0px 8px 8px -8px rgba(0, 0, 0, 0.1)",transition:"box-shadow 300ms ease-in-out"}},924114:(e,t,n)=>{"use strict";n.d(t,{H8:()=>m,Ut:()=>p,fr:()=>c});var i=n(667294),l=n(425288),a=n(311541),r=n(839377),o=n(785893);let s=()=>n.e(67891).then(n.bind(n,367891)),{Provider:d,useHook:u}=(0,l.Z)("IdeaPin");function c({children:e}){let[t,n]=(0,a.Z)(s,r.Z),l=(0,i.useMemo)(()=>({dispatch:n,ideaPin:t}),[n,t]);return(0,o.jsx)(d,{value:l,children:e})}function p(){let{dispatch:e}=u();return(0,i.useMemo)(()=>({setIdeaPinActivePage:t=>{e({type:"IDEA_PIN_ACTIVE_PAGE",payload:{activePage:t}})},setIdeaPinDynamicWidth:t=>{e({type:"IDEA_PIN_DYNAMIC_WIDTH",payload:{dynamicWidth:t}})}}),[e])}function m(){let{ideaPin:e}=u();return e}},839377:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i={activePage:0,dynamicWidth:0}},861411:(e,t,n)=>{"use strict";n.d(t,{fv:()=>f,fS:()=>w,Vi:()=>v,Hs:()=>x,Mv:()=>g,uc:()=>y,dL:()=>_,qS:()=>b,Y4:()=>S,HE:()=>P,Cy:()=>k});var i=n(667294),l=n(973935),a=n(407043),r=n(124580),o=n(785893);function s(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d extends i.Component{constructor(...e){super(...e),s(this,"observe",()=>{try{if(this.node=(0,l.findDOMNode)(this),this.node instanceof HTMLElement){let{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"')}}),s(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 u(e){let{logImpression:t}=(0,a.v)();return(0,o.jsx)(d,{...e,logImpression:t})}var c=n(337815),p=n(780280),m=n(807609);function h({auxData:e,component:t,eventData:n,eventType:l,impressionType:o,isPaused:s,objectIdStr:d,viewData:u,viewType:h,viewParameter:_}){let g=(0,i.useRef)(null),{logImpression:y}=(0,a.v)(),v=(0,m.Z)(),f=(0,p.B)(),b=(0,i.useCallback)(()=>{try{if(g.current instanceof HTMLElement){let{pinIdStr:i,newsIdStr:a}=n;r.Z.start(g.current).onExitViewport(i=>{var a,r,s,p,m,b;y({viewData:u||{},viewType:h,viewParameter:_,eventType:l,impressionType:o,auxData:e,component:t,objectIdStr:d,eventData:{endTime:i.endTime,time:i.startTime,pinCellWidth:(null===(a=g.current)||void 0===a?void 0:a.getBoundingClientRect().width)||0,pinCellHeight:(null===(r=g.current)||void 0===r?void 0:r.getBoundingClientRect().height)||0,windowWidth:null===(s=window)||void 0===s?void 0:s.innerWidth,windowHeight:null===(p=window)||void 0===p?void 0:p.innerHeight,...n}});let{attributionSourceId:x,campaignId:k,isPromoted:P,link:S,advertiserId:w}=n;"pinImpressions"===o&&P&&!v&&null!==(m=window.document.featurePolicy)&&void 0!==m&&m.allowsFeature("attribution-reporting")&&(0,c.YS)(o,P,null!=x?x:null,S,k,{appType:f.appTypeDetailed,osType:(0,c.eF)(null!==(b=f.userAgent.osName)&&void 0!==b?b:"Unknown")},null!=w?w:null)}).setDebugId(i||a||"unknown")}}catch(e){window.console.error('Can only track impressions for type "HTMLElement"')}},[g.current]);return(0,i.useEffect)(()=>{s||b();let{current:e}=g;return()=>{e instanceof HTMLElement&&r.Z.stop(e)}},[s,b]),g}let _=e=>{let t=h({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})},g=e=>{let t=h({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})},y=e=>{let t=h({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})},v=e=>(0,o.jsx)(u,{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}),f=e=>{let t=h({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});return e.children({impressionTrackerRef:t})},b=e=>{let t=h({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})},x=e=>(0,o.jsx)(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,children:e.children}),k=e=>{let t=h({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})},P=e=>{let t=h({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})},S=e=>{let t=h({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})},w=e=>{let t=h({eventData:{...e.impressionData||{},clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:3700,impressionType:"boardImpressions",loggingId:e.loggingId,viewType:e.viewType||1,viewParameter:e.viewParameter,viewData:e.viewData});return e.children({impressionTrackerRef:t})}},63552:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(883119),l=n(785893);function a({children:e,onMouseEnter:t,onMouseLeave:n,onTouch:a,rounding:r,fullWidth:o=!1,pressState:s="none",accessibilityLabel:d,role:u}){let c=(Array.isArray(s)?s:[s]).includes("compress");return(0,l.jsx)(i.iP,{fullWidth:o,onMouseEnter:t&&(({event:e})=>t(e)),onMouseLeave:n&&(({event:e})=>n(e)),onTap:a&&(({event:e})=>a(e)),rounding:r,tapStyle:c?"compress":"none",accessibilityLabel:d,role:u,children:e})}},194969:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var i=n(667294),l=n(616550),a=n(883119),r=n(898781),o=n(391254),s=n(166300),d=n(53987),u=n(780280),c=n(50286),p=n(112690),m=n(52022),h=n(785893);function _({breadcrumb:e,isLastBreadcrumb:t,viewType:n,isHubPage:i}){var l;let r=(0,p.Z)(),o=(0,m.Z)();return(0,h.jsx)(a.xu,{color:t?"secondary":void 0,"data-test-id":"breadcrumb",display:"inlineBlock",paddingX:t?2:void 0,paddingY:t?1:void 0,rounding:"pill",children:(0,h.jsxs)(a.kC,{alignItems:"center",justifyContent:"start",children:[(0,h.jsx)(a.rU,{href:null!==(l=e.url)&&void 0!==l?l:"",onClick:({dangerouslyDisableOnNavigation:e})=>{e(),o({action:"click",item:"breadcrumb"}),r({event_type:102,component:176,element:1155,view_parameter:3713,view_type:n})},children:(0,h.jsx)(a.xv,{color:i&&!t?"light":"default",inline:!0,size:"100",overflow:"noWrap",children:e.name})}),!t&&(0,h.jsx)(a.xu,{paddingX:3,display:"inlineBlock",children:(0,h.jsx)(a.xv,{inline:!0,size:"100",color:i&&!t?"light":"default",children:(0,h.jsx)(a.JO,{accessibilityLabel:"breadcrumb arrow",color:i?"light":"default",icon:"arrow-forward",size:8})})})]})})}var g=n(748367);let y=`
206
+ .article-row {
207
+ -ms-overflow-style: none;
208
+ scrollbar-width: none;
209
+ }
210
+ div::-webkit-scrollbar {
211
+ display: none;
212
+ }
213
+ `;function v({direction:e}){return(0,h.jsx)(a.xu,{width:16,height:32,position:"absolute",left:"left"===e,right:"right"===e,dangerouslySetInlineStyle:{__style:{backgroundImage:`linear-gradient(to ${e}, rgba(255, 255, 255, 0), #fff)`}}})}function f({breadcrumbs:e,disableOverflowGradient:t,shouldHideLazyExploreButton:n,isHubPage:p}){let m=(0,r.ZP)(),f=(0,l.useLocation)(),{origin:b}=(0,u.B)(),x=(0,c.ml)(),k=(0,c.HG)(),[P,S]=x?[2,3]:[4,4],w=(0,d.Q0)(f),A=!1,T=202;(0,d.uM)(f)?T=3:(0,d.dr)(f)?(T=442,A=!0):(0,d.$Y)(f)||(0,d.E0)(f)?T=1:w&&(A=!0,T=580);let I=w?{name:m._('Watch', 'unauth.header.tabs.videos', 'label for videos root'),url:"/videos/"}:{name:m._('Explore', 'unauth.header.tabs.ideas', 'label for ideas hub'),url:"/ideas/"},E=A?e.slice(0,e.length-1):[...e],C=[...w||!n?[I]:[],...E];return(0,h.jsxs)(a.xu,{"data-test-id":"breadcrumbs",children:[(0,h.jsx)(o.Z,{unsafeCSS:y}),(0,h.jsx)(s.Z,{children:(0,h.jsx)(a.xu,{"data-test-id":"breadcrumbs-list",display:"flex",height:50.5,alignItems:"center",direction:"column",paddingY:S,overflow:"scrollX",justifyContent:k?"center":void 0,dangerouslySetInlineStyle:{__style:{flexDirection:"row-reverse"}},children:(0,h.jsxs)(a.xu,{display:"flex",alignItems:"center",margin:k?void 0:"auto",paddingX:P,justifyContent:"end",children:[!t&&(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)(v,{direction:"left"}),(0,h.jsx)(v,{direction:"right"})]}),C.map((e,t,n)=>(0,h.jsx)(_,{breadcrumb:e,isLastBreadcrumb:t===n.length-1,viewType:T,isHubPage:p},e.url))]})})}),(0,h.jsx)(g.Z,{type:"application/ld+json",testId:"breadcrumbs-list-metadata",value:{"@context":"http://schema.org","@type":"BreadcrumbList",itemListElement:[{name:m._('Pinterest', 'unauth.header.tabs.pinterest', 'label for pinterest website'),url:""},I,...e].map((e,t)=>{var n;return{"@type":"ListItem",position:t+1,name:e.name,item:`${b}${null!==(n=e.url)&&void 0!==n?n:""}`}})}})]})}},356188:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i,l=n(167912),a=n(934494),r=n(784590),o=n(194969),s=n(785893);let d=void 0!==i?i:i=n(418273),u=(0,a.Z)({useGraphQLAdapter:e=>{var t,n,i,a,r;let o=(0,l.useLazyLoadQuery)(d,{pinId:e});return{breadcrumbs:null!==(t=null===(n=o.v3GetPinQuery)||void 0===n?void 0:null===(i=n.data)||void 0===i?void 0:null===(a=i.pinJoin)||void 0===a?void 0:null===(r=a.seoBreadcrumbs)||void 0===r?void 0:r.map(({name:e,url:t})=>({name:null!=e?e:"",url:null!=t?t:""})))&&void 0!==t?t:[],shouldHideLazyExploreButton:!1}},useLegacyAdapter:e=>{var t;let{data:n,isLoaded:i}=(0,r.Z)({name:"PinResource",options:{id:e,field_set_key:"unauth_ssr_lazy_load"}});return{shouldHideLazyExploreButton:!i,breadcrumbs:(null==n?void 0:null===(t=n.pin_join)||void 0===t?void 0:t.seo_breadcrumbs)||[]}}});function c({pinId:e,shouldUseGraphQL:t}){return(0,s.jsx)(u,{input:t?{enabled:!0,data:e,suspense:{fallback:(0,s.jsx)(o.Z,{breadcrumbs:[],shouldHideLazyExploreButton:!0})}}:{enabled:!1,data:e},children:({data:{breadcrumbs:e,shouldHideLazyExploreButton:t}})=>(0,s.jsx)(o.Z,{breadcrumbs:e,shouldHideLazyExploreButton:t})})}},94089:(e,t,n)=>{"use strict";n.d(t,{G:()=>p,Kl:()=>m,vo:()=>c});var i=n(667294),l=n(425288),a=n(505920),r=n(311541),o=n(785893);let s=()=>n.e(18870).then(n.bind(n,218870)),{Provider:d,useHook:u}=(0,l.Z)("NativeEngagements");function c({children:e}){let[t,n]=(0,r.Z)(s,[]),l=e=>{n({type:"FETCH_COMPLETE",payload:e})};(0,a.Z8)("NativeInteractionsResource",l),(0,a.my)("NativeInteractionsResource",l);let u=(0,i.useMemo)(()=>({dispatch:n,nativeEngagements:t}),[n,t]);return(0,o.jsx)(d,{value:u,children:e})}function p(){let{dispatch:e}=u();return(0,i.useMemo)(()=>({nativeEngagementsHiddenForUser:t=>{e({type:"NATIVE_ENGAGEMENT_HIDDEN_FOR_USER",payload:{userId:t}})}}),[e])}function m(){let{nativeEngagements:e}=u();return e}},118405:(e,t,n)=>{"use strict";n.d(t,{U:()=>p,m:()=>m});var i=n(667294),l=n(702664),a=n(425288),r=n(926275),o=n(411938),s=n(773285),d=n(19121),u=n(785893);let{Provider:c,useHook:p}=(0,a.Z)("NavFooterContext");function m({children:e}){let[t,n]=(0,i.useState)(),[a,p]=(0,i.useState)(!1),[m,h]=(0,i.useState)(0),[_,g]=(0,i.useState)(!1),[y,v]=(0,i.useState)(!1),[f,b]=(0,i.useState)(!1),{checkExperiment:x}=(0,s.F)(),k=(0,o.Z)(null,(0,d.Z)()),P=(0,l.useSelector)(e=>e.session.isAuthenticated),S=(0,l.useSelector)(e=>P?e.users[e.session.userId]:void 0),w=(0,r.Z)(null==S?void 0:S.created_at),A=x("mweb_modernize_navbar").anyEnabled,T=P&&(A&&k||w);return(0,u.jsx)(c,{value:{forceShowNavFooter:f,homeFlyoutText:t,isNavFooterHiddenAfterScroll:a,navFooterHeight:a?0:A?T?64:52:60,numUnauthSavedPins:m,setForceShowNavFooter:b,setHomeFlyoutText:n,setIsNavFooterHiddenAfterScroll:p,setNumUnauthSavedPins:h,setShowHomeBadge:g,setShowHomeFlyoutWithButton:v,showHomeBadge:_,showHomeFlyoutWithButton:y},children:e})}},379764:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(883119),l=n(633988);let a=new i.H3([l.Z]),r=a},872482:(e,t,n)=>{"use strict";n.d(t,{D:()=>l,a:()=>a});var i=n(425288);let{Provider:l,useMaybeHook:a}=(0,i.Z)("unauthPageWrapperContext")},904779:(e,t,n)=>{"use strict";n.d(t,{K:()=>r,T:()=>o});var i=n(667294),l=n(785893);let a=(0,i.createContext)({getPinFeedbackStatus:()=>void 0,setPinFeedbackStatus:()=>{}}),r=()=>(0,i.useContext)(a);function o({children:e}){let[t,n]=(0,i.useState)(Object.freeze({})),r=(0,i.useMemo)(()=>({getPinFeedbackStatus:({pinId:e})=>t[e],setPinFeedbackStatus:({pinId:e,pinFeedbackStatus:i})=>n({...t,[e]:i})}),[t]);return(0,l.jsx)(a.Provider,{value:r,children:e})}},651745:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});var i=n(844974),l=n(576272),a=n(709113);let r=({canUpsellNativeApp:e})=>{let t;if("undefined"==typeof window)return t;let n=(0,i.qn)(a.CP),r=!!(n&&Date.now()-Number(n)<864e5),o=(0,i.qn)(a.X)||0,s=Number(o)>=3,d=(0,i.qn)(l.V5),u=Date.now()-Number(d)<l.UH?(0,i.qn)(l.QJ):0,c=u>=l.km;return!e||r||s?c||(t="saveSend"):t="appUpsell",t}},961385:(e,t,n)=>{"use strict";n.d(t,{GY:()=>b,Jg:()=>f,bR:()=>x,fW:()=>k});var i=n(184508),l=n(147916),a=n(167361),r=n(697031),o=n(404247),s=n(836866),d=n(620668),u=n(86119),c=n(753873),p=n(873774),m=n(110099),h=n(244892),_=n(485846),g=n(461471),y=n(662502),v=n(239784);let f=["goodIdea","love","thanks","wow","haha"],b={7:"goodIdea",1:"love",13:"thanks",11:"wow",5:"haha"},x={goodIdea:7,love:1,thanks:13,wow:11,haha:5},k=({i18n:e,type:t})=>{let n={default:{staticAsset:p},goodIdea:{backgroundColor:"yellow-caramellow-50",staticAsset:a,animatedAsset:i,gridAsset:l,label:e._('Good idea', 'Reaction label to tell a creator that their pin is a good idea', 'Reaction label to tell a creator that their pin is a good idea'),htmlStyle:`
214
+ @keyframes play90 {
215
+ 0% {
216
+ background-position: 0px 0px;
217
+ }
218
+ 100% {
219
+ background-position: -7380px 0px;
220
+ }
221
+ }
222
+ `,animationStyle:"play90 3000ms steps(90) infinite forwards",type:7},haha:{backgroundColor:"purple-mysticool-100",staticAsset:s,animatedAsset:r,gridAsset:o,label:e._('Haha', 'Reaction label to tell a creator that the pinner laughed because of their pin', 'Reaction label to tell a creator that the pinner laughed because of their pin'),htmlStyle:`
223
+ @keyframes play60 {
224
+ 0% {
225
+ background-position: 0px 0px;
226
+ }
227
+ 100% {
228
+ background-position: -4920px 0px;
229
+ }
230
+ }
231
+ `,animationStyle:"play60 2000ms steps(60) infinite forwards",type:5},love:{backgroundColor:"red-pushpin-100",staticAsset:c,animatedAsset:d,gridAsset:u,label:e._('Love', 'Reaction label to tell a creator that the pinner loved their pin', 'Reaction label to tell a creator that the pinner loved their pin'),htmlStyle:`
232
+ @keyframes play90 {
233
+ 0% {
234
+ background-position: 0px 0px;
235
+ }
236
+ 100% {
237
+ background-position: -7380px 0px;
238
+ }
239
+ }
240
+ `,animationStyle:"play90 3000ms steps(90) infinite forwards",type:1},thanks:{backgroundColor:"teal-spabattical-100",staticAsset:_,animatedAsset:m,gridAsset:h,label:e._('Thanks', 'Reaction label to tell a creator thank you', 'Reaction label to tell a creator thank you'),htmlStyle:`
241
+ @keyframes play60 {
242
+ 0% {
243
+ background-position: 0px 0px;
244
+ }
245
+ 100% {
246
+ background-position: -4920px 0px;
247
+ }
248
+ }
249
+ `,animationStyle:"play60 2000ms steps(60) infinite forwards",type:13},wow:{backgroundColor:"orange-firetini-50",staticAsset:v,animatedAsset:g,gridAsset:y,label:e._('Wow', 'Reaction label to tell a creator that the pinner was wowed by their pin', 'Reaction label to tell a creator that the pinner was wowed by their pin'),htmlStyle:`
250
+ @keyframes play90 {
251
+ 0% {
252
+ background-position: 0px 0px;
253
+ }
254
+ 100% {
255
+ background-position: -7380px 0px;
256
+ }
257
+ }
258
+ `,animationStyle:"play90 3000ms steps(90) infinite forwards",type:11}};return n[t]||null}},328896:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var i=n(667294),l=n(702664),a=n(883119),r=n(112690),o=n(898781),s=n(784590),d=n(120285),u=n(927383),c=n(961385),p=n(785893);let m="cubic-bezier(0, 0, 0.58, 1)",h={loaded:{opacity:1,transitionDuration:"0.20s",transitionTimingFunction:m,transitionProperty:"transform, opacity",transform:"translate(0, 5px)",transformOrigin:"center"},fade:{opacity:.1,transitionDuration:"0.30s",transitionTimingFunction:m,transitionProperty:"transform, opacity",transform:"translate(0, 5px)",transformOrigin:"center"}};function _({reactionLabel:e,handleHideConfirmation:t}){let[n,l]=(0,i.useState)("loaded"),r=(0,i.useRef)();return(0,i.useEffect)(()=>{r.current=requestAnimationFrame(()=>{setTimeout(()=>l("fade"),1e3),setTimeout(()=>t(),1300)})},[]),(0,p.jsx)(a.xu,{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",children:(0,p.jsx)(a.xu,{rounding:"pill",position:"absolute",color:"selected",ref:r,height:"20px",display:"flex",alignItems:"center",justifyContent:"center",paddingY:1,paddingX:2,dangerouslySetInlineStyle:{__style:{...h[n],whiteSpace:"nowrap"}},children:(0,p.jsx)(a.xv,{color:"inverse",size:"100",weight:"bold",overflow:"normal",children:e})})})}var g=n(391254),y=n(63552);let v="cubic-bezier(0.25, 0.1, 0.25, 1)",f={icon:{backgroundRepeat:"no-repeat",backgroundSize:"cover"},loading:{opacity:0,transitionDuration:"0.25s",transitionTimingFunction:v,transitionProperty:"transform, opacity",transform:"translateZ(0) translateY(25px) scale(1.28)"},loaded:{opacity:1,transitionDuration:"0.25s",transitionTimingFunction:v,transitionProperty:"transform, opacity",transform:"translateZ(0) translateY(0px) scale(1.28)"},clicked:{transitionDuration:"0.25s",transitionTimingFunction:v,transitionProperty:"transform",transform:"translateZ(0) translateY(-50px) scale(1.2)"},flying:{transitionDuration:"0.25s",transitionTimingFunction:v,transitionProperty:"transform"},label:{transitionDuration:"0.25s",transitionTimingFunction:v,transitionProperty:"transform",transform:"translateZ(0) translateY(0) scale(0.8)",whiteSpace:"nowrap"},fading:{opacity:0,transitionDuration:"0.25s",transitionTimingFunction:v}},b={boxShadow:"0 9px 26px rgba(0, 0, 0, 0.4)"};function x({handleReactionClick:e,isCentered:t,isIdeaPinCloseUp:n,isInCommentModule:l,marginTop:s,reactionButtonRect:d,shouldShowReactionTrayUp:u,viewType:m,viewParameter:h,reactionPickerRef:_}){let v=(0,o.ZP)(),x=(0,r.Z)(),[k,P]=(0,i.useState)("loading"),[S,w]=(0,i.useState)(""),[A,T]=(0,i.useState)(),[I,E]=(0,i.useState)(),[C,D]=(0,i.useState)(!1),[j,F]=(0,i.useState)({}),R=(0,i.useRef)(),L=(0,i.useRef)({}),z=()=>{D(!0);let e={...j};c.Jg.forEach(t=>{L.current[t]&&!e[t]&&(e[t]=L.current[t].getBoundingClientRect())}),F(e)},O=()=>{let e={...A};c.Jg.forEach(t=>{let n=j[t],{left:i,top:l}=d,{left:a,top:r}=n,o=i-a-7+1.25*c.Jg.indexOf(t);e[t]={translateX:o,translateY:l-r-8.5}}),T(e)};(0,i.useEffect)(()=>{"loading"===k&&(R.current=requestAnimationFrame(()=>P("loaded"))),!A&&C&&O()},[C]);let M=()=>{document.body&&document.body.style&&(document.body.style.overflow="hidden")},N=()=>{document.body&&document.body.style&&(document.body.style.overflow="unset")},B=e=>{let t;return C&&c.Jg.forEach(n=>{let i=j[n];if(i&&i.left&&i.right){let{left:l,right:a}=i;e>=l&&e<=a&&(t=n)}}),t||null},Z=t=>{l&&t.stopPropagation(),z(),M();let{clientX:n}=t,i=B(n);if(i!==S&&i){if(I&&S){let{type:e}=(0,c.fW)(i);x({event_type:105,element:11354,view_type:m,view_parameter:h,aux_data:{reaction_type:e,duration:`${(Date.now()-I)/1e3} seconds`}})}else!I&&S&&E(Date.now());w(i),P("clicked"),setTimeout(()=>{P("flying"),setTimeout(()=>{e(i)},800),N()},750)}},K=c.Jg.map((e,t)=>{let n={transitionDelay:`${.2*(t/c.Jg.length)}s`},i={};A&&(i={transform:`translateZ(0) translateX(${A[e].translateX}px) translateY(${A[e].translateY}px) scale(1)`});let{staticAsset:l,animatedAsset:r,label:o,htmlStyle:s,animationStyle:d}=(0,c.fW)({i18n:v,type:e});return(0,p.jsx)(a.xu,{display:"flex",alignSelf:"center",children:(0,p.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{zIndex:e===S&&"clicked"===k?"3":"2"}},children:(0,p.jsxs)(a.xu,{maxHeight:"flying"===k?24:32,maxWidth:"flying"===k?24:32,dangerouslySetInlineStyle:{__style:{..."loading"===k||"loaded"===k||S===e&&"clicked"===k||S===e&&"flying"===k?f[k]:{},...S!==e&&("clicked"===k||"flying"===k)?f.loaded:{},..."loading"===k||"loaded"===k?n:{},...S===e&&"flying"===k?i:{},...S!==e&&"flying"===k?f.fading:{},transformOrigin:"left"}},display:"flex",alignItems:"center",justifyContent:"center",position:"relative",children:[S!==e&&(0,p.jsx)(a.xu,{position:"absolute",top:!0,left:!0,bottom:!0,right:!0,children:(0,p.jsx)(a.xu,{width:32,height:32,dangerouslySetInlineStyle:{__style:{backgroundImage:`url(${l})`,backgroundPosiiton:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"}}})}),(0,p.jsxs)(a.xu,{display:"flex",alignItems:"center",justifyContent:"center",direction:"column",position:"relative",children:[(0,p.jsx)(g.Z,{unsafeCSS:s}),S===e&&"clicked"===k&&(0,p.jsx)(a.xu,{rounding:"pill",color:"selected",height:20,dangerouslySetInlineStyle:{__style:f.label},display:"flex",alignItems:"center",justifyContent:"center",paddingY:1,paddingX:2,children:(0,p.jsx)(a.xv,{color:"inverse",size:"100",weight:"bold",overflow:"normal",children:o})}),(0,p.jsx)(y.Z,{onTouch:Z,pressState:"none",children:(0,p.jsx)(a.xu,{width:S===e&&"flying"!==k?82:"flying"===k?24:32,height:S===e&&"flying"!==k?82:"flying"===k?24:32,display:"flex",alignItems:"center",justifyContent:"center",dangerouslySetInlineStyle:{__style:{...f.icon,...S===e&&"clicked"===k?{animation:d}:{},backgroundImage:`url(${r})`}},ref:t=>{L.current[e]=t}})})]})]})})},t)});return(0,p.jsx)(a.xu,{children:(0,p.jsx)(a.xu,{ref:_,"data-test-id":"reaction-tray",top:!0,left:!0,right:t,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",dangerouslySetInlineStyle:{__style:{marginLeft:n?-295:0,marginTop:s||(u?-80:80),userSelect:"none"}},children:(0,p.jsx)(a.Le,{top:0,children:(0,p.jsx)(a.xu,{color:"flying"===k?"transparent":"default",width:300,height:80,display:"flex",alignItems:"center",rounding:"pill",justifyContent:"center",dangerouslySetInlineStyle:{__style:{..."flying"!==k?b:{},userSelect:"none"}},children:(0,p.jsx)(a.xu,{width:"100%",children:(0,p.jsx)(a.xu,{display:"flex",justifyContent:"evenly",onTouchStart:()=>{z()},onTouchMove:e=>{M();let{clientX:t}=e.touches[0],n=B(t);if(n!==S){if(I&&S&&n&&(0,c.fW)(n)){let{type:e}=(0,c.fW)(n);x({event_type:105,element:11354,view_type:m,view_parameter:h,aux_data:{reaction_type:e,duration:`${(Date.now()-I)/1e3} seconds`}})}else!I&&S&&E(Date.now());w(n)}P("clicked")},onTouchEnd:()=>{S&&(P("flying"),setTimeout(()=>{e(S)},325)),N()},children:K})})})})})})}x.defaultProps={isCentered:!1};var k=n(95359);function P(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class S extends i.PureComponent{static getDerivedStateFromProps(e,t){let{reactions:n,viewer:i}=e,{isReactionsLoaded:l}=t;if(n.length>0&&!l){let e=!1,t=0;return n.forEach(n=>{var l;i&&i.id&&n&&(null!==(l=n.user.id)&&void 0!==l?l:n.user)===i.id&&(e=!0,t=n.reaction_type)}),{didViewerReact:e,userReaction:t?c.GY[t]:"",isReactionsLoaded:!0}}return null}constructor(e){var t;super(e),t=this,P(this,"state",{isReactionTrayShowing:!1,reactionButtonRect:null,showConfirmation:!1,didViewerReact:!1,userReaction:null,isReactionsLoaded:!1}),P(this,"trayCloseTimer",null),P(this,"observer",null),P(this,"reactionPickerRef",(0,i.createRef)()),P(this,"handleClickOutside",e=>{var t;let{isReactionTrayShowing:n}=this.state;n&&this.reactionPickerRef&&e.target instanceof Element&&!(null!==(t=this.reactionPickerRef.current)&&void 0!==t&&t.contains(e.target))&&this.setState({isReactionTrayShowing:!1})}),P(this,"setReactionButtonRect",()=>{if(this.reactionButton){var e;let t=this.reactionButton.getBoundingClientRect(),{height:n,width:i,top:l,right:a}=t,r=document.createElement("div");r.style.height=n+"px",r.style.width=i+"px",r.style.top=l+"px",r.style.right=a+"px",r.style.position="absolute",r.style.zIndex="-1",null===(e=document.body)||void 0===e||e.append(r),this.setState({reactionButtonRect:t})}}),P(this,"handleIconPositionChange",e=>{e.forEach(e=>{e.intersectionRatio<1&&this.setReactionButtonRect()})}),P(this,"handleScroll",()=>{let{isReactionTrayShowing:e}=this.state;e&&this.hideReactionTray(),this.setReactionButtonRect()}),P(this,"onReactionClick",async function(e){let{addReaction:n,i18n:i,reactionPinId:l,userId:a,clientTrackingParams:r,incrementReactionCount:o,onReactionUpdated:s,pinId:d}=t.props,{type:u}=(0,c.fW)({i18n:i,type:e});await n(u,l,a,r),s&&s(),o(d,u),t.handleShowConfirmation()}),P(this,"handleShowConfirmation",()=>{this.setState({showConfirmation:!0})}),P(this,"handleHideConfirmation",()=>{this.setState({showConfirmation:!1})}),P(this,"handleReactionClick",e=>{this.setState({userReaction:e,didViewerReact:!0},()=>{this.onReactionClick(e),this.trayCloseTimer=setTimeout(this.hideReactionTray,250)})}),P(this,"hideReactionTray",()=>{this.setState({isReactionTrayShowing:!1})}),P(this,"handleClick",e=>{let{didViewerReact:n,userReaction:i}=this.state,{isInCommentModule:l,removeReaction:a,reactionPinId:r,userId:o,requireAuthForLimitedLogin:s,decrementReactionCount:d,onReactionUpdated:u,pinId:p,logContextEvent:m}=this.props;l&&e.stopPropagation(),n||m({event_type:103,element:11354,object_id_str:this.props.pinId,view_type:3,view_parameter:156}),s({fn:async function(){n?(await a(r,o),i&&(d(p,c.bR[i]),u&&u()),t.setState({isReactionTrayShowing:!1,userReaction:null,didViewerReact:!1})):t.setState({isReactionTrayShowing:!0})}})()}),P(this,"handleOneClickReact",()=>{let{didViewerReact:e,userReaction:t}=this.state,{removeReaction:n,reactionPinId:i,userId:l,requireAuthForLimitedLogin:a,decrementReactionCount:r,pinId:o,logContextEvent:s}=this.props;e||s({event_type:103,element:11354,object_id_str:this.props.pinId,view_type:3,view_parameter:156}),a({fn:()=>{e?(n(i,l),t&&r(o,c.bR[t]),this.setState({userReaction:null,didViewerReact:!1})):this.onReactionClick("love")}})()}),this.reactionPickerRef=(0,i.createRef)(),this.handleClickOutside=this.handleClickOutside.bind(this)}componentDidMount(){this.observer=new window.IntersectionObserver(this.handleIconPositionChange),this.reactionButton&&this.observer.observe(this.reactionButton),this.setReactionButtonRect(),window.addEventListener("scroll",this.handleScroll),window.addEventListener("mouseover",this.setReactionButtonRect),window.addEventListener("mousedown",this.handleClickOutside)}componentWillUnmount(){window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("mouseover",this.setReactionButtonRect),window.removeEventListener("mousedown",this.handleClickOutside),clearTimeout(this.trayCloseTimer)}render(){let{isReactionTrayShowing:e,reactionButtonRect:t,userReaction:n,showConfirmation:i,didViewerReact:l}=this.state,{experience:r,i18n:o,nativePinType:s,hasBackground:u,inCommentModuleExp:m,isInCommentModule:h,isIdeaPinCloseUp:g,iconColor:y,isTextButton:v=!1,isTrayPositionRelative:f}=this.props,{animatedAsset:b,staticAsset:k,label:P,backgroundColor:S}=(0,c.fW)({i18n:o,type:l&&n?n:"default"}),w=h?(null==t?void 0:t.top)+window.scrollY+48:48;return(0,p.jsxs)(a.xu,{position:f?"relative":void 0,children:[e&&!!t&&!!t.left&&!!t.top&&(0,p.jsx)(x,{isInCommentModule:h,isCentered:!f,isIdeaPinCloseUp:g,handleReactionClick:this.handleReactionClick,marginTop:f?void 0:w,reactionButtonRect:t,shouldShowReactionTrayUp:"storyPin"===s,viewParameter:156,viewType:3,reactionPickerRef:this.reactionPickerRef}),(0,p.jsx)(a.iP,{onTap:v?this.handleOneClickReact:({event:e})=>{this.handleClick(e)},children:v?(0,p.jsx)(a.xv,{weight:"bold",children:o._('React', 'Closeup.ReactionPicker.Text', 'Text for button to react to current pin')}):(0,p.jsx)(a.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{backgroundColor:S&&!m?`var(--color-${S})`:void 0}},display:"flex",height:m?void 0:48,justifyContent:m?"start":"center",ref:e=>{this.reactionButton=e},rounding:"circle",width:m?34:48,children:l&&n?(0,p.jsx)(a.xu,{width:20,height:20,dangerouslySetInlineStyle:{__style:{backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundImage:`url(${l&&b?b:k})`}}}):m?(0,p.jsx)(a.JO,{icon:"heart-outline",accessibilityLabel:o._('React', 'Accessibility label for reacting to a Pin', 'Accessibility label for reacting to a Pin'),size:h?20:24,color:"default"}):(0,p.jsx)(a.hU,{accessibilityLabel:o._('React', 'Accessibility label for reacting to a Pin', 'Accessibility label for reacting to a Pin'),bgColor:u?"lightGray":void 0,size:"lg",icon:"heart-outline",iconColor:y||"darkGray"})})}),!e&&!i&&!l&&(0,p.jsx)(a.xu,{position:"absolute",left:!0,top:!0,right:!0,children:(0,p.jsx)(d.Z,{experience:r,eligibleIds:[501979,501996],color:"blue",children:()=>null})}),i&&!!n&&P&&(0,p.jsx)(_,{reactionLabel:P,handleHideConfirmation:this.handleHideConfirmation})]})}}function w(e){var t;let n=(0,l.useDispatch)();(0,s.Z)({name:"ReactionsResource",options:{pin_id:e.pinId,user_id:e.userId}});let i=(0,l.useSelector)(({feeds:t})=>t[`reactions:${e.pinId}`]||[]),a=(0,l.useSelector)(({reactions:e})=>i.length>0?i.map(t=>e[t.id]):[]),d=(0,l.useSelector)(({session:e,users:t})=>t[e.userId]),c=(0,l.useSelector)(({session:e})=>e.userId);return(0,p.jsx)(S,{...e,addReaction:(t,i,l,a)=>n((0,k.Gy)(e.pinId,t,i,l,a)),decrementReactionCount:(e,t)=>n((0,k.Ps)(e,t)),i18n:(0,o.ZP)(),incrementReactionCount:(e,t)=>n((0,k.xQ)(e,t)),logContextEvent:(0,r.Z)(),reactionPinId:null!==(t=e.aggregatedPinDataId)&&void 0!==t?t:"",reactions:a,removeReaction:(t,i,l)=>n((0,k.G3)(e.pinId,t,i,l)),requireAuthForLimitedLogin:(0,u.Z)(),userId:c,viewer:d})}P(S,"defaultProps",{hasBackground:!1,isTrayPositionRelative:!0})},255607:(e,t,n)=>{"use strict";function i(e){let t=Object.keys(e);if(t.length>0){let n=t.sort((t,n)=>e[n]-e[t]).slice(0,3);return n}return null}function l(e){let t=Object.values(e);if(t.length>0){let e=t.reduce((e,t)=>e+t,0);return e}return 0}function a({boardIsCollaborative:e,isDownstreamPromotion:t,isPromoted:n,storyPinDataId:i,videosId:l,isEligibleForStaticImageIdeaPin:a}){return!n&&!t&&(!!l||!!i)&&(null==e||!e)&&!a}n.d(t,{At:()=>i,J6:()=>a,Ud:()=>l})},130460:(e,t,n)=>{"use strict";n.d(t,{bn:()=>o,fJ:()=>d,gC:()=>s});var i=n(702664),l=n(425288),a=n(785893);let{Provider:r,useHook:o}=(0,l.Z)("Boards");function s(){let e=o();return t=>e[t]}function d({children:e}){let t=(0,i.useSelector)(({boards:e})=>e,i.shallowEqual);return(0,a.jsx)(r,{value:t,children:e})}},350118:(e,t,n)=>{"use strict";n.d(t,{AF:()=>o,H0:()=>s,S6:()=>d,_S:()=>u});var i=n(702664),l=n(425288),a=n(785893);let{Provider:r,useHook:o,useMaybeHook:s}=(0,l.Z)("Pins");function d(){let e=o();return t=>e[t]}function u({children:e}){let t=(0,i.useSelector)(({pins:e})=>e,i.shallowEqual);return(0,a.jsx)(r,{value:t,children:e})}},698330:(e,t,n)=>{"use strict";n.d(t,{Tt:()=>c,cm:()=>u,kW:()=>s,kY:()=>p,mN:()=>d});var i=n(702664),l=n(425288),a=n(19121),r=n(785893);let{Provider:o,useHook:s}=(0,l.Z)("Users");function d(){let e=s();return t=>e[t]}function u(){let e=s();return t=>{let n=Object.keys(e).find(n=>e[n].username===t);return e[null!=n?n:""]}}function c(){let{id:e}=(0,a.Z)(),t=s();return t[null!=e?e:""]}function p({children:e}){let t=(0,i.useSelector)(({users:e})=>e,i.shallowEqual);return(0,r.jsx)(o,{value:t,children:e})}},723852:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});var i=n(667294),l=n(782677),a=n(883119),r=n(214494),o=n(332611),s=n(898781),d=n(349700),u=n(414327),c=n(830157),p=n(327212),m=n(258430),h=n(785893);let _=e=>{let t=(0,h.jsx)(a.xu,{"data-test-id":"pin-save-toast",width:48,height:48,children:(0,h.jsx)(m.Z,{boardId:e})});return{duration:5e3,thumbnail:t}};var g=n(499128),y=n(19121);function v({boardId:e,hideToast:t,pinId:n,originalPinId:i}){let l=(0,s.ZP)(),r=(0,y.Z)();return(0,h.jsx)(g.ZP,{primaryAction:{accessibilityLabel:l._('Change saved Pin button', 'RepinRequest.a11yChangeButton', 'Change saved Pin button'),href:`/pin/${n}/repin/?isEditingPin=true&pinBoardId=${null!=e?e:""}&&isFromToast=true&&originalPinId=${null!=i?i:""}`,label:l._('Change', 'RepinRequest.ChangeButton', 'Change saved Pin button'),size:"lg",onClick:t,role:"link"},duration:5e3,onHide:t,text:(0,h.jsxs)(a.xv,{children:[(0,h.jsx)(a.xv,{inline:!0,children:l._('Saved to ', 'RepinRequest.ProfileSaveToastText', 'Toast for successfully saving to profile')}),(0,h.jsx)(a.xv,{inline:!0,weight:"bold",children:(0,h.jsx)(a.rU,{display:"inlineBlock",href:r.isAuth?`/${r.username}/_saved`:"/",target:"self",underline:"hover",children:l._('Profile', 'RepinRequest.ProfileSaveToastText.Profile', 'referring to pinner profile where pin was saved')})})]}),thumbnail:{icon:(0,h.jsx)(a.JO,{accessibilityLabel:l._('Profile', 'RepinRequest.ProfileIcon', 'Icon signifying Pin was saved to profile without a board'),icon:"history",size:22})}})}var f=n(12918),b=n(483025);let x="RepinResource",k=({board:e,section:t})=>{let n=(0,s.ZP)(),l="quick_saves"===e.layout,r=l?n._('Profile', 'EditPin.Quicksaves.BoardName', 'Name for Quicksaves board that we want to surface to users'):e.name;return t?(0,d.nk)(n._('Saved to {{sectionName}} in {{boardName}}', 'Toast for successfully saving to a section within a board', 'Toast for successfully saving to a section within a board'),{sectionName:t&&t.title,boardName:e.name}).join(""):(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)(a.xv,{color:"default",children:n._('Saved to', 'Saved to {{ boardName }}', 'Saved to {{ boardName }}')}),(0,h.jsx)(a.xv,{color:"default",weight:"bold",children:r})]})};class P{constructor({boardId:e,dispatch:t,history:n,isOneTapSave:i=!1,isQuickSave:a=!1,onSuccess:r,onUndo:o,originalPinId:s,pinId:d,section:u,showNewUserSavetoProfileAnimation:p=!1,showRepinToasts:m,trackingParams:h,userId:_,viewType:g,historyPush:y,suggestedBoardIds:v,savePinId:f,pinData:{trackingParams:k,viewParameter:P,pinnedToBoardId:S}}){var w,A,T;w="_getNormalizedResponse",A=e=>(0,l.Fv)(e.resource_response.data,b.Z[x]),(w="symbol"==typeof(T=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(w,"string"))?T:String(T))in this?Object.defineProperty(this,w,{value:A,enumerable:!0,configurable:!0,writable:!0}):this[w]=A,this.boardId=e,this.trackingParams=h,this.clientTrackingParams=(0,c.Z)(h.clientTrackingParams||"",k),this.dispatch=t,this.history=n,this.onSuccess=r,this.onUndo=o,this.originalPinId=s,this.pinId=d,this.pinnedToBoardId=h.pinnedToBoardId||(null!=S?S:""),this.showNewUserSavetoProfileAnimation=p,this.showRepinToasts=m,this.section=u,this.isOneTapSave=i,this.isQuickSave=a,this.userId=_,this.viewType=null!=g?g:3,this.historyPush=y,this.suggestedBoardIds=v,this.savePinId=f,this.pinViewParameter=P}get resourceOptions(){var e;return{pin_id:this.pinId,board_id:this.boardId,section:null===(e=this.section)||void 0===e?void 0:e.id,clientTrackingParams:this.clientTrackingParams,user_id:this.userId}}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:this.pinViewParameter,object_id_str:this.pinId,clientTrackingParams:this.clientTrackingParams,aux_data:{board_id:this.pinnedToBoardId,destination_board_id:this.boardId,is_profile_save:!this.boardId,pin_id:this.pinId,suggested_boards:this.suggestedBoardIds}}}_createRepin(){return r.Z.create(x,{...this.resourceOptions,disable_event_log_info:!0}).callCreate()}processRepin(e){let t=this._createRepin();return t.then(t=>{this.onSuccess&&this.onSuccess();let n=t.resource_response.data,{board:i}=n,{isQuickSave:l,originalPinId:r,showNewUserSavetoProfileAnimation:d}=this,c=this._getNormalizedResponse(t);if(this.dispatch((0,u.XM)(x,this.resourceOptions,t,c)),this.savePinId(this.resourceOptions.pin_id,n.id),this.originalPinId&&this.originalPinId!==this.resourceOptions.pin_id){let e={...this.resourceOptions,pin_id:this.originalPinId};this.dispatch((0,u.XM)(x,e,t,c)),this.savePinId(this.originalPinId||"",n.id)}this.dispatch((0,f.M)(n.id,i.id,this.section?this.section.id:void 0,this.userId));let{showRepinToasts:m}=this;return m&&m(({hideToast:e})=>{var t;if(l&&!d)return(0,h.jsx)(v,{hideToast:e,pinId:n.id,boardId:n.board.id,originalPinId:r});let{thumbnail:o}=_(i.id);return(0,h.jsx)(p.Z,{button:(0,h.jsx)(s.oz,{children:e=>(0,h.jsx)(a.zx,{fullWidth:!0,onClick:({event:t})=>{t.preventDefault(),t.stopPropagation();let{onUndo:l}=this;if(l&&!d){var a;l(this.pinId,n.id,i.id,null===(a=this.section)||void 0===a?void 0:a.id,e)}else d&&this.historyPush(`/pin/${n.id}/repin/?isEditingPin=true&pinBoardId=${i.id}&&isFromToast=true&&originalPinId=${null!=r?r:""}`)},text:d?e._('Organize', 'RepinRequest.OrganizeButton', 'Button to allow users to organize saved pins'):e._('Undo', 'RepinRequest.UndoButton', 'Undo saved pin button')})}),href:this.section?`${i.url}${null!==(t=this.section.slug)&&void 0!==t?t:""}`:i.url,isRepinToExistingBoard:!0,onHide:e,text:(0,h.jsx)(k,{board:i,section:this.section}),thumbnail:o})}),this.dispatch((0,o.fO)({event_type:5})),e(this.trackingData),n})}}},4700:(e,t,n)=>{"use strict";n.d(t,{Z:()=>z});var i=n(702664),l=n(883119),a=n(643010),r=n(378518),o=n(898781),s=n(780280),d=n(784590),u=n(50286),c=n(698330),p=n(667294),m=n(332611),h=n(57791),_=n(616550),g=n(112690),y=n(499128),v=n(926275),f=n(773285),b=n(52022),x=n(343341),k=n(361115),P=n(881802),S=n(927383),w=n(118405),A=n(574724),T=n(639952),I=n(977734),E=n(580751),C=n(785893);let D=()=>{};var j=n(252417);let F=({onTap:e,shouldShowSavedButton:t,text:n})=>(0,C.jsx)(l.iP,{onTap:({event:t})=>{null==e||e(t)},rounding:"pill",fullWidth:!1,children:(0,C.jsx)(l.xu,{color:t&&(0,a.Yc)()?"lightWash":"primary",height:j.oe,rounding:j.dX,display:"flex",justifyContent:"center",alignItems:"center",paddingX:j.rM,paddingY:j.Ai,children:(0,C.jsx)(l.xv,{color:t?"dark":"light",weight:"bold",size:n.length>5?"100":"300",children:n})})}),R=({buttonText:e,clientTrackingParams:t,color:n="red",deviceType:a,experience:r,hasQuickSave:s,hasSaveHandoffExperience:d,inline:u=!0,isLegoSaveStyle:j,isOnIdeaPinCloseup:R,onTouch:L,onUnsave:z,pinId:O,pinnedToBoardId:M,shape:N,shouldShowSavedButton:B,to:Z,viewParameter:K,viewType:U})=>{let H=(0,o.ZP)(),V=(0,i.useDispatch)(),G=(0,m.Ig)();(0,p.useEffect)(()=>{r&&r.placement_id&&V(G(r.placement_id,r.experience_id))},[r,V,G]);let $=function({clientTrackingParams:e,experience:t,hasSaveHandoffExperience:n,onError:l,onTouch:a,onUnsave:r,pinId:s,pinnedToBoardId:d,shouldShowSavedButton:u,showSingleToast:h}){let j=(0,o.ZP)(),F=(0,g.Z)(),R=(0,b.Z)(),L=(0,i.useDispatch)(),z=(0,_.useHistory)(),O=(0,_.useLocation)(),{showToast:M}=(0,x.F9)(),N=function({showSingleToast:e}){let t=(0,i.useDispatch)(),n=(0,x.F9)()[e?"showOneToast":"showToast"],{forceShowNavFooter:l,setForceShowNavFooter:a}=(0,w.U)(),r=(0,i.useSelector)(({session:e})=>e.shouldHideNavBar);return(e,i)=>{i||(r&&t((0,T.Cp)()),t((0,T.WF)()),l||a(!0)),setTimeout(()=>{i||(r&&t((0,T.FK)()),t((0,T.a5)()),l||a(!1)),n(e)},A.Tt)}}({showSingleToast:h}),B=(0,E.M)(),Z=O.pathname.startsWith("/pin"),K=(0,i.useSelector)(({session:e})=>e.hasSavedUnauthPin),U=(0,i.useSelector)(({session:e})=>e.unauthSavePinId),H=(0,c.Tt)(),V=null==H?void 0:H.pin_count,G=(0,p.useRef)(null),$=n&&!K,W=(0,S.Z)(),{checkExperiment:q}=(0,f.F)(),Y=(0,m.be)(),X=(0,v.Z)(null==H?void 0:H.created_at)||q("mweb_show_repin_toast_animation_to_res_user").anyEnabled,Q=(0,k.J1)(),J=e=>z.push(e),ee=s?()=>{var i;F({event_type:102,element:11933}),L((0,I.Z)({checkExperiment:q,history:z,i18n:j,logContextEvent:F,onSuccess:()=>{t&&L(Y(t.placement_id,t.experience_id))},originalPinId:s,pinId:s,trackingParams:{clientTrackingParams:e,pinnedToBoardId:d},showNewUserSavetoProfileAnimation:X,showRepinConfirmation:n&&!Z?()=>void 0:N,disableRepinAnimation:U===s,pinCount:V,historyPush:J,savePinId:null!==(i=null==B?void 0:B.save)&&void 0!==i?i:()=>{}})).catch(e=>{M(({hideToast:t})=>(0,C.jsx)(y.ZP,{type:"error",text:e.message||j._('Sorry! Something went wrong on our end.', 'quickSave.toast.error.message', 'error during repin'),onHide:t})),null==l||l()})}:D;if((0,p.useEffect)(()=>{$&&!G.current&&s&&!q(Q).anyEnabled&&(R({action:"trigger",item:"unauth-save-button-quicksave"}),F({event_type:14581}),ee(),L((0,T.e2)())),G.current=$}),!s)return null;let et=W({fn:e=>{e.stopPropagation(),e.preventDefault(),a&&a(e),u?u&&r&&r(e):ee()},modalHeader:(0,P.Bx)(j)});return et}({clientTrackingParams:t,experience:r,hasSaveHandoffExperience:d,onTouch:L,onUnsave:z,pinId:O,pinnedToBoardId:M,shouldShowSavedButton:B}),W={accessibilityLabel:H._('Pin', 'Pin accessibility label', 'Pin accessibility label'),color:n,inline:j?void 0:u,minHeight:j?48:void 0,onTouch:s?$:L,onUnsave:s?$:z,pressState:"compress",shape:j?"pill":N,size:"lg",text:e||H._('Save', 'Auth mobile web save button for pin closeup', 'Auth mobile web save button for pin closeup'),to:Z,unsaveAccessibilityLabel:H._('Saved', 'SaveButton.ExperimentalSavedButtonAccessibilityLabel', 'Accessibility label on a saved button - Pin has already been saved')},q=B?(0,C.jsx)(l.zx,{text:W.text,accessibilityLabel:W.unsaveAccessibilityLabel,size:W.size,fullWidth:W.inline,onClick:({event:e})=>{var t;null===(t=W.onUnsave)||void 0===t||t.call(W,e)},selected:!0}):(0,C.jsx)(h.Ai,{...W,deeplinkUri:"deeplinkUri",upsellType:"save",viewType:U,viewParameter:K,clientTrackingParams:t,deviceType:a});return R&&"desktop"!==a&&(q=B?(0,C.jsx)(F,{onTap:W.onUnsave,shouldShowSavedButton:!0,text:W.text}):(0,C.jsx)(h.MZ,{...W,clientTrackingParams:t,deeplinkUri:"deeplinkUri",deviceType:a,isActionButton:!0,upsellType:"save",viewParameter:K,viewType:U,children:(0,C.jsx)(F,{onTap:W.onTouch,shouldShowSavedButton:!1,text:W.text})})),(0,C.jsx)(l.xu,{"data-test-id":"save-button-mobile",children:q})},L=({i18n:e,isSaved:t})=>{let n=(0,a.Yc)();return t?{buttonText:e._('Saved', 'closeup.savedButton.text', 'Auth mobile web save button for pin closeup when user has saved the Pin being viewed'),color:n?"darkGray":"white",inline:!1}:Object.freeze({})};function z({buttonText:e,clientTrackingParams:t,pinId:n,pinnedToBoardId:a,shouldShowSavedButton:p,to:m,...h}){let _=(0,o.ZP)(),g=(0,u.ZP)(),{isAuthenticated:y}=(0,s.B)(),v=(0,c.Tt)(),f=y?v:null,b=L({i18n:_,isSaved:p});(0,d.Z)(f?{name:"UserResource",options:{user_id:f.id,field_set_key:"save_behavior"}}:null);let x=null==f?void 0:f.save_behavior,k=(0,i.useSelector)(({session:e})=>e.unauthSavePinId),P=y&&!!k,S=(0,r._)({id:1000152});return(0,C.jsx)(l.xu,{"data-test-id":"standard-save-button",children:(0,C.jsx)(R,{experience:S,pinnedToBoardId:a,pinId:n,to:m,hasQuickSave:0===x||P,shouldShowSavedButton:p,hasSaveHandoffExperience:P,clientTrackingParams:t,deviceType:g,...h,...b,isLegoSaveStyle:!0})})}},576272:(e,t,n)=>{"use strict";n.d(t,{QJ:()=>l,UH:()=>a,V5:()=>i,km:()=>r});let i="saveSendEducationModalLastDismissed",l="saveSendEducationModalTimesDismissed",a=864e5,r=2},954063:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(667294),l=n(883119),a=n(785893);class r extends i.Component{componentDidMount(){this.anchor&&(!this.props.hash||this.props.hash&&`#${this.props.hash}`===window.location.hash)&&(this.anchor.scrollIntoView(),this.props.offset&&window.scrollBy(0,this.props.offset))}render(){let e=this.props.children?i.Children.only(this.props.children):null;return(0,a.jsx)(l.xu,{ref:e=>this.anchor=e,children:e})}}},21384:(e,t,n)=>{"use strict";n.d(t,{Z:()=>T});var i,l=n(667294),a=n(702664),r=n(167912),o=n(883119),s=n(373420),d=n(898781),u=n(780280),c=n(784590),p=n(867820),m=n(52022),h=n(690035),_=n(50286),g=n(643010),y=n(121151),v=n(430322),f=n(785893);function b({showFullScreenInfo:e,isOpen:t,interstitialUpsellDismissed:n,children:i}){let l=(0,d.ZP)(),a=(0,_.HG)(),r=(0,_.Wb)();return r||a?(0,f.jsx)(y.ZP,{accessibilityModalLabel:"",mobileHideCloseIcon:!0,mobileIsFullscreen:!0,isOpen:e&&!r,closeOnOutsideClick:!1,onDismiss:()=>{},children:(0,f.jsx)(o.xu,{color:(0,g.Yc)()?"dark":"default",dangerouslySetInlineStyle:{__style:{border:(0,g.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:a?"100vw":"100%",zIndex:new o.Ry(1),children:(0,f.jsx)(o.xu,{bottom:!0,left:!0,right:!0,top:!0,position:"fixed",padding:5,overflow:"scroll",marginTop:n?0:12,children:i})})}):(0,f.jsx)(v.default,{accessibilityModalLabel:l._('Close', 'Close modal window', 'Close modal window'),isOpen:t,onDismiss:()=>{},mobileAccessibilityCloseIconLabel:l._('Close', 'Close modal window', 'Close modal window'),children:i})}var x=n(385801);let k=void 0!==i?i:i=n(583780);function P({dedupeVisualAnnotations:e,iconColor:t,size:n,isMainPin:i,isAuth:r,pinCreditPrefix:c,onClickTitleOrDomain:g,pinId:y,renderOnlyHiddenSEOContent:v=!1,graphqlRef:k,shoppingKlpUrls:P}){let S=(0,d.ZP)(),w=(0,m.Z)(),{isBot:A}=(0,u.B)(),{unauthInterstitialDismissed:T}=(0,a.useSelector)(({session:e})=>e),[I,E]=(0,l.useState)(!1),C=(0,_.HG)(),D=(0,_.Wb)(),j=(0,h.Z)(),F=!D&&!r,R=k?{type:"graphqlRef",data:k}:{type:"deprecated",data:y},L=(0,f.jsxs)(o.xu,{padding:5,dangerouslySetInlineStyle:F?{__style:{paddingTop:0,paddingBottom:30}}:void 0,children:[(0,f.jsx)(o.xu,{left:!0,position:"absolute",top:!0,color:"default",padding:4,"data-test-id":"close-seo-vase-see-more-button",children:(0,f.jsx)(o.hU,{accessibilityLabel:S._('Cancel', 'close modal icon', 'close modal icon'),icon:"cancel",size:"sm",onClick:()=>{(0,p.My)("mweb.unauth.see_more.dismissed"),w({action:"click",item:"close-seo-vase-see-more-button"}),E(!1),i&&(0,p.My)("mweb.unauth.see_more.main_pin.dismissed")},iconColor:"gray"})}),(0,f.jsx)(o.xu,{marginBottom:F?0:8,children:(0,f.jsx)(o.xv,{align:F?"start":"center",weight:F?void 0:"bold",children:(0,f.jsx)("span",{className:"deprecatedTextSizeXL",children:F?null:S._('More information', 'more information label', 'more information label')})})}),(0,f.jsx)(x.Z,{dedupeVisualAnnotations:e,pinCreditPrefix:c,onClickTitleOrDomain:g,pinId:y,shoppingKlpUrls:P,pinKey:R})]});return v?(0,f.jsx)(o.xu,{display:"none",children:L}):(0,f.jsxs)(o.xu,{right:!0,"data-test-id":"SeoVaseSeeMoreButton",dangerouslySetInlineStyle:{__style:{float:"right"}},children:[(0,f.jsx)(o.hU,{accessibilityLabel:S._('See more', 'more information icon', 'more information icon'),icon:"ellipsis",iconColor:null!=t?t:"gray",size:n||"md",onClick:({event:t})=>{t.stopPropagation(),(0,p.My)(`mweb.unauth.see_more.shown.${i?"main_pin":"related_pins"}`),w({action:"click",item:"seo-vase-see-more-button"}),D||r?(E(!0),i&&(0,p.My)("mweb.unauth.see_more.main_pin.shown")):j({pinId:y||"",location:i?"main-pin-more-information":"non-main-pin-more-information",vaseSection:(0,f.jsx)(x.Z,{dedupeVisualAnnotations:e,pinCreditPrefix:c,onClickTitleOrDomain:g,pinId:y,shoppingKlpUrls:P,pinKey:R})})}}),A&&!C?(0,f.jsx)(o.xu,{display:I?"flex":"none",children:L}):(0,f.jsx)(b,{showFullScreenInfo:I,isOpen:I&&!D,interstitialUpsellDismissed:!!T,children:L}),D&&I&&(0,f.jsx)(s.default,{accessibilityModalLabel:"test",onDismiss:()=>{},children:L})]})}function S(e){let t=(0,r.useFragment)(k,e.graphqlRef);return(0,f.jsx)(P,{dedupeVisualAnnotations:e.dedupeVisualAnnotations,iconColor:e.iconColor,size:e.size,isAuth:e.isAuth,isMainPin:e.isMainPin,pinCreditPrefix:e.pinCreditPrefix,onClickTitleOrDomain:e.onClickTitleOrDomain,pinId:e.pinId,renderOnlyHiddenSEOContent:e.renderOnlyHiddenSEOContent,graphqlRef:t,shoppingKlpUrls:e.shoppingKlpUrls})}function w(e){return(0,f.jsx)(P,{dedupeVisualAnnotations:e.dedupeVisualAnnotations,iconColor:e.iconColor,size:e.size,isAuth:e.isAuth,isMainPin:e.isMainPin,pinCreditPrefix:e.pinCreditPrefix,onClickTitleOrDomain:e.onClickTitleOrDomain,pinId:e.pinId,renderOnlyHiddenSEOContent:e.renderOnlyHiddenSEOContent,shoppingKlpUrls:e.shoppingKlpUrls})}function A(e){return(0,c.Z)({name:"PinResource",options:{id:e.pinId,field_set_key:"unauth_ssr_lazy_load"}}),(0,f.jsx)(w,{...e})}function T(e){return e.graphqlRef?(0,f.jsx)(S,{...e}):e.lazyLoadAnnotations?(0,f.jsx)(A,{...e}):(0,f.jsx)(w,{...e})}},334005:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(667294),l=n(883119),a=n(946984),r=n(121151),o=n(604356),s=n(785893);let d=new l.Ry(1);function u({anchor:e,children:t,displayOptions:n,onFlyoutDismiss:i}){var a,o;return null!=n&&n.shownWithinMasonry||null!=n&&n.shownWithinProfileHeader?(0,s.jsx)(l.mh,{zIndex:n.shownWithinProfileHeader?d:void 0,children:(0,s.jsx)(l.xu,{zIndex:n.inModal?r.b7:void 0,position:n.inModal?"absolute":void 0,top:!!n.inModal||void 0,children:(0,s.jsx)(l.J2,{anchor:e,idealDirection:null!==(a=n.idealDirection)&&void 0!==a?a:"down",onDismiss:()=>{i()},_deprecatedShowCaret:n.showCaret,size:"flexible",positionRelativeToAnchor:!1,children:t})})}):(0,s.jsx)(l.J2,{anchor:e,idealDirection:null!==(o=null==n?void 0:n.idealDirection)&&void 0!==o?o:"down",onDismiss:()=>{i()},_deprecatedShowCaret:null==n?void 0:n.showCaret,size:"flexible",children:t})}function c({children:e,flyoutDisplayOptions:t,isFlyoutOpen:n,loggingOptions:r,onClick:d,onFlyoutDismiss:c,onToggleFlyout:p,sendObject:m}){let h=(0,i.useRef)(null),_=(0,a.Z)();return(0,s.jsxs)(l.xu,{ref:h,dangerouslySetInlineStyle:{__style:{pointerEvents:"auto"}},children:[(0,s.jsx)(l.xu,{children:e({handleSendShareFlyoutButtonClick:()=>{if(_){_();return}p()}})}),n&&(0,s.jsx)(u,{anchor:h.current,displayOptions:t,onFlyoutDismiss:c,children:(0,s.jsx)(o.Z,{element:r.element,component:r.component,onHide:()=>{null==d||d(),c()},onExternalSend:r.onExternalSend,sendType:m.type,sharedObject:{...m,type:"user"===m.type?"pinner":m.type},viewParameter:r.viewParameter,viewType:r.viewType})})]})}},108234:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g,s:()=>_});var i=n(667294),l=n(425288),a=n(608575),r=n(883119),o=n(121151),s=n(898781),d=n(349700),u=n(785893);let c=()=>{var e;let t=(0,s.ZP)(),{dismissWarning:n}=null!==(e=_())&&void 0!==e?e:{};return(0,u.jsx)(r.xu,{paddingX:3,children:(0,u.jsx)(r.zx,{fullWidth:!0,color:"red",onClick:n,text:t._('Okay', 'Dismiss a modal stating that clicking through to a link has been blocked', 'Dismiss a modal stating that clicking through to a link has been blocked')})})},p=()=>{let e=(0,s.ZP)();return(0,u.jsx)(r.xv,{inline:!0,weight:"bold",children:(0,u.jsx)(r.rU,{target:"blank",href:"https://policy.pinterest.com/community-guidelines#section-spam",display:"inlineBlock",underline:"hover",children:e._('Learn more', 'Link text leading to policy website', 'Link text leading to policy website')})})},m=({message:e,sanitized_url:t})=>{var n;let i=(0,s.ZP)(),{dismissWarning:l}=null!==(n=_())&&void 0!==n?n:{};return(0,u.jsx)(o.ZP,{accessibilityModalLabel:i._('We have blocked this link', 'Modal label when clicking a spammy link', 'Modal label when clicking a spammy link'),onDismiss:l,heading:i._('Heads up!', 'Modal heading when clicking through to a link has been blocked', 'Modal heading when clicking through to a link has been blocked'),footer:(0,u.jsx)(c,{}),children:(0,u.jsxs)(r.xu,{padding:6,children:[(0,u.jsx)(r.xv,{children:(0,d.nk)("{{ message }} {{ learnMore }}",{message:e,learnMore:(0,u.jsx)(p,{},"learnMoreLink")})}),(0,u.jsxs)(r.xu,{alignItems:"center",display:"flex",marginTop:4,children:[(0,u.jsx)(r.xu,{marginEnd:3,children:(0,u.jsx)(r.JO,{accessibilityLabel:i._('Blocked link address', 'Icon label preceding a block url', 'Icon label preceding a block url'),color:"error",icon:"report",inline:!0,size:24})}),(0,u.jsx)(r.xv,{inline:!0,lineClamp:1,weight:"bold",children:a.parse(t).hostname})]})]})})},{Provider:h,useMaybeHook:_}=(0,l.Z)("SpammyClickthrough");function g({children:e}){let[t,n]=(0,i.useState)(null),l=(0,i.useCallback)(()=>{n(null)},[n]),a=(0,i.useCallback)(e=>{n(e)},[n]),r=(0,i.useMemo)(()=>({dismissWarning:l,showWarning:a}),[l,a]);return(0,u.jsxs)(h,{value:r,children:[t&&(0,u.jsx)(m,{...t}),e]})}},914142:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d,j:()=>s});var i=n(883119),l=n(898781),a=n(349700),r=n(773285),o=n(785893);let s=[0,2,3];function d({hasAffiliatedProducts:e,isPromoted:t,sponsorName:n,sponsorshipStatus:d,textColor:u}){let c;let p=(0,l.ZP)(),m=(0,r.F)().checkExperiment("mweb_web_android_ios_clbc_eu_ad_string").anyEnabled;return t?c=(0,a.nk)(p._('Promoted by {{ name }}', 'sponsorship.sponsorshipText.promotedByBrand', 'indicating the username of the person who promoted the pin'),{name:n}):d||0===d?n&&!s.includes(d)?c=(0,a.nk)(p._('Paid partnership with {{ name }}', 'closeup.creator.sponsoredPinTitle', 'Subtext of closeup creator card when sponsored by a brand'),{name:n}):2!==d&&(c=p._('Paid partnership', 'closeup.creator.sponsoredPinTitle', 'Subtext of closeup creator card when the pin is sponsored but the sponsorship status is rejected/requested/unaffiliated')):e&&(c=p._('Includes sponsored products', 'sponsorship.sponsorshipText.affiliatedProducts', 'Subtext of pincard attribution for a pin with affiliated products')),(0,o.jsxs)(i.xv,{color:u,size:"100",children:[m&&!t&&"Ad • "||"",(0,o.jsx)(a.r7,{text:c})]})}},640064:(e,t,n)=>{"use strict";n.d(t,{f:()=>o,w:()=>s});var i=n(667294),l=n(425288),a=n(785893);let{Provider:r,useHook:o}=(0,l.Z)("Session");function s({children:e}){let[t,n]=(0,i.useState)(void 0),l=(0,i.useCallback)(()=>n(void 0),[]),o=(0,i.useMemo)(()=>({unauthFollowUserId:t,setUnauthFollowUserId:n,removeUnauthFollowUserId:l}),[t,l]);return(0,a.jsx)(r,{value:o,children:e})}},44759:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(883119);let l="var(--font-family-default-latin)";var a=n(898781),r=n(867820),o=n(598615),s=n(938917),d=n(872482),u=n(785893);function c({pinId:e}){let t=(0,a.ZP)(),n=(0,d.a)(),c=(0,s.Z)();if(!n)return null;let{setShouldShowLearningUpsell:p}=n;return c?(0,u.jsx)(o.Z,{app_upsell_type:"mweb-unauth-plp-learning-upsell",children:({handleOpenApp:n})=>(0,u.jsx)(i.xu,{alignItems:"center",direction:"row",display:"flex",left:!0,minHeight:70,dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(233, 228, 255, 0.9)"}},position:"absolute",right:!0,top:!0,width:"100%",zIndex:new i.Ry(99999),children:(0,u.jsx)(i.iP,{onTap:()=>{(0,r.My)("learning.upsell.click.background"),n({deepLinkUri:`/pin/${e}`})},children:(0,u.jsxs)(i.kC,{alignItems:"center",justifyContent:"start",direction:"row",width:"100%",children:[(0,u.jsx)(i.xu,{marginStart:4,marginEnd:2,onTouchStart:e=>{e.preventDefault(),e.stopPropagation()},onTouchEnd:t=>{t.preventDefault(),t.stopPropagation(),(0,r.My)("learning.upsell.click.icon"),n({deepLinkUri:`/pin/${e}`})},children:(0,u.jsx)(i.JO,{accessibilityLabel:"Pinterest",icon:"pinterest",color:"default",size:24})}),(0,u.jsxs)(i.xu,{marginStart:2,marginEnd:2,children:[(0,u.jsx)("span",{style:{fontFamily:l,color:"#111111",fontSize:"16px"},onTouchStart:e=>{e.preventDefault(),e.stopPropagation()},onTouchEnd:t=>{t.preventDefault(),t.stopPropagation(),(0,r.My)("learning.upsell.click.description"),n({deepLinkUri:`/pin/${e}`})},children:t._('If you like this idea, see all the details in the app! ', 'mweb.unauth.main.pin.learning.app.upsell.description.like', 'mweb unauth main pin learning app upsell description text for group enabled_app_like')}),(0,u.jsx)("span",{style:{fontFamily:l,fontWeight:"600",color:"#111111",fontSize:"16px"},onTouchStart:e=>{e.preventDefault(),e.stopPropagation()},onTouchEnd:t=>{t.preventDefault(),t.stopPropagation(),(0,r.My)("learning.upsell.click.cta"),n({deepLinkUri:`/pin/${e}`})},children:t._('Download', 'mweb.unauth.main.pin.learning.app.upsell.cta', 'mweb unauth main pin learning app upsell cta text')})]}),(0,u.jsx)(i.xu,{marginStart:2,marginEnd:4,onTouchStart:e=>{e.preventDefault(),e.stopPropagation()},onTouchEnd:e=>{p(!1),e.preventDefault(),e.stopPropagation(),(0,r.My)("learning.upsell.click.cancel")},children:(0,u.jsx)(i.JO,{icon:"cancel",accessibilityLabel:"cancel",color:"dark"})})]})})})}):null}},394332:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>S});var i,l=n(667294),a=n(167912),r=n(883119),o=n(898781),s=n(391254),d=n(992750),u=n(780280),c=n(867820),p=n(52022),m=n(50286),h=n(350118),_=n(862193),g=n(785893);let y=`
259
+ div::-webkit-scrollbar {
260
+ display: none;
261
+ }
262
+ `,v=void 0!==i?i:i=n(445418);function f({direction:e,handleClick:t,testId:n,isRTL:i}){let l=(0,o.ZP)(),a=(0,p.Z)(),s=i?["arrow-back","arrow-forward"]:["arrow-forward","arrow-back"];return(0,g.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",position:"absolute",top:0,width:45,..."right"===e?{right:0,justifyContent:"flex-end",textAlign:"right"}:{left:0,justifyContent:"flex-start",textAlign:"left"}},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,g.jsx)(r.xu,{position:"absolute",left:"left"===e,right:"right"===e,borderStyle:"none",children:(0,g.jsx)(r.xu,{"data-test-id":"board-pills-arrow",children:(0,g.jsx)(r.JO,{accessibilityLabel:l._('Scroll', 'annotations.scrollArrow', 'Accessibility label for scroll arrow button'),icon:"left"!==e?s[0]:s[1],size:12,color:"subtle"})})})})}function b({name:e,url:t}){let[n,i]=(0,l.useState)(!1),a=(0,p.Z)(),{country:o,locale:s}=(0,u.B)(),d=(0,m.HG)();return(0,g.jsx)(r.xu,{"data-test-id":"vase-tag",display:"inlineBlock",marginTop:1,marginEnd:1,paddingX:2,paddingY:1,color:"secondary",rounding:8,dangerouslySetInlineStyle:{__style:{whiteSpace:"nowrap"}},onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:(0,g.jsx)(r.xv,{color:n?"subtle":"default",inline:!0,overflow:"breakWord",size:"100",weight:"bold",children:t?(0,g.jsx)(r.rU,{display:"inlineBlock",tapStyle:"compress",href:t,rounding:8,onClick:()=>{a({action:"click",item:"vase-tag"}),t.split("/").length>=2&&"shopping"===t.split("/")[1]&&(0,c.My)(`${d?"dweb":"mweb"}.vase.shoppingKlp.click`,{country:o,locale:s})},underline:"hover",children:e}):e})})}function x({pinJoinVisualAnnotation:e,pinJoinAnnotationsWithLinks:t,mode:n,shoppingKlpUrls:i}){let a=(0,l.useRef)(null),[o,c]=(0,l.useState)(!1),[m,h]=(0,l.useState)(!1),_=(0,p.Z)(),{isRTL:v}=(0,u.B)();(0,l.useEffect)(()=>{let e=a.current,t=()=>{if("inlineWithScrollArrows"===n&&a.current){let e=a.current,t=Math.abs(e.scrollLeft||0),n=Math.abs(e.scrollWidth||0),i=t>4,l=t+e.clientWidth<n-4,r=v?i:l,o=v?l:i;c(r),h(o)}else c(!1),h(!1)};return t(),null==e||e.addEventListener("scroll",t),()=>{null==e||e.removeEventListener("scroll",t)}},[n,v]);let x=e=>t=>{t.preventDefault(),t.stopPropagation(),"right"===e&&_({action:"click",item:"board-pills-arrow-button-right"});let n=a.current;if(!n)return;let i=("left"===e?-1:1)*n.clientWidth*.5;n.scrollBy(i,0)},{annotationsWithLinks:k}=(0,d.eK)({pinJoinVisualAnnotation:e,pinJoinAnnotationsWithLinks:t});k.map(e=>{let t=e.name||"";return t});let P=[...k];return i&&(P=i.reduce((e,t)=>(e.push({name:function(e){let t=e.split("/"),n=t[2].split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ");return n}(t),url:t}),e),P)),(0,g.jsx)(r.kC,{alignItems:"center",justifyContent:"end",children:(0,g.jsxs)(r.xu,{display:"flex",width:"100%",overflow:"hidden",position:"relative","data-test-id":"vase-carousel",children:[(0,g.jsx)(s.Z,{unsafeCSS:y}),m&&(0,g.jsx)(f,{direction:"left",handleClick:x("left"),testId:"left-scroll-arrow",isRTL:v}),(0,g.jsx)(r.xu,{overflow:"auto",padding:0,dangerouslySetInlineStyle:{__style:{scrollBehavior:"smooth",scrollbarWidth:"none",whiteSpace:"nowrap"}},ref:a,children:P.map(({name:e,url:t})=>(0,g.jsx)(b,{name:e,url:t},t||e))}),o&&(0,g.jsx)(r.xu,{"data-test-id":"board-pills-arrow-button-right",children:(0,g.jsx)(f,{direction:"right",handleClick:x("right"),testId:"right-scroll-arrow",isRTL:v})})]})})}function k({dedupeVisualAnnotations:e,graphqlRef:t,mode:n,pinId:i,shoppingKlpUrls:l}){var r;let o=(0,a.useFragment)(v,t),s=(0,_.Z)(o),d=(null==o?void 0:null===(r=o.pinJoin)||void 0===r?void 0:r.visualAnnotation)||[];return(e&&(d=e({pinId:i,visualAnnotations:d})),d.length<1)?null:(0,g.jsx)(x,{mode:n,pinJoinVisualAnnotation:d,pinJoinAnnotationsWithLinks:s||void 0,shoppingKlpUrls:l})}function P(e){var t,n,i;let l=(0,h.S6)()(e.pinId),a=(null==l?void 0:null===(t=l.pin_join)||void 0===t?void 0:t.visual_annotation)||[];return a.length<1?null:(0,g.jsx)(x,{mode:e.mode,pinJoinVisualAnnotation:null==l?void 0:null===(n=l.pin_join)||void 0===n?void 0:n.visual_annotation,pinJoinAnnotationsWithLinks:null==l?void 0:null===(i=l.pin_join)||void 0===i?void 0:i.annotations_with_links,shoppingKlpUrls:e.shoppingKlpUrls})}function S(e){return e.graphqlRef?(0,g.jsx)(k,{...e}):(0,g.jsx)(P,{...e})}},385801:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var i,l=n(667294);n(167912);var a=n(883119),r=n(681669),o=n(898781),s=n(349700),d=n(623568),u=n(992750),c=n(780280),p=n(927104),m=n(867820),h=n(52022),_=n(50286),g=n(298024),y=n(785893);function v({boardUrl:e,boardName:t,boardPrivacy:n,pinnerFullName:i,pinnerImageSmallUrl:l,pinnerImageLargeUrl:r}){let o=(0,_.HG)(),s=(0,h.Z)();if(!e||!t)return null;let d=e.split("/")[1],u=i||d,c=l||r;return(0,y.jsxs)(a.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:[c?(0,y.jsx)(a.Tg,{href:`/${d}/`,fullWidth:!1,tapStyle:"compress",onTap:()=>{(0,m.My)(`pcons.${o?"desktop":"mobile"}.see-more-button-creator`),s({action:"click",item:"see-more-button-creator"})},children:(0,y.jsx)(a.xu,{rounding:"circle",width:32,height:32,overflow:"hidden",marginEnd:2,"data-test-id":"see-more-button-creator",children:(0,y.jsx)(a.Ee,{naturalHeight:32,naturalWidth:32,alt:u,fit:"cover",color:"rgb(231, 186, 176)",src:c})})},"profile-link"):null,(0,y.jsxs)(a.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:[(0,y.jsx)(a.xu,{"data-test-id":"see-more-button-creator-full-name",children:(0,y.jsx)(a.iP,{onTap:()=>{(0,m.My)(`pcons.${o?"desktop":"mobile"}.see-more-button-creator-full-name`),s({action:"click",item:"see-more-button-creator-full-name"})},children:(0,y.jsx)(a.xv,{color:"default",inline:!0,size:"100",weight:"bold",children:(0,y.jsx)(a.rU,{href:`/${d}/`,display:"inlineBlock",tapStyle:"compress",underline:"hover",children:u},"profile-link")},"profileLink")})}),"protected"===n?null:(0,y.jsx)(a.xv,{color:"default",inline:!0,size:"100",children:(0,y.jsx)(a.rU,{href:null!=e?e:"",display:"inlineBlock",tapStyle:"compress",underline:"hover",children:null!=t?t:""},"board-link")},"boardLink")]})]})}var f=n(394332);let b=void 0!==i?i:i=n(175322);function x({dedupeVisualAnnotations:e,pin:t,pinId:n,queryRef:i,onClickTitleOrDomain:r,pinCreditPrefix:b,shoppingKlpUrls:x}){var k,P,S,w,A,T,I,E,C;let D=(0,o.ZP)(),j=(0,_.ml)(),F=(0,_.Wb)(),{isAuthenticated:R,isBot:L}=(0,c.B)(),z=(0,h.Z)(),O=r||null,[M,N]=(0,l.useState)(!1),B=(0,g.si)(),Z=(0,g.Re)(),K=(0,u.fs)({pinTitle:t.title,gridTitle:t.gridTitle,richSummaryDisplayName:null===(k=t.richSummary)||void 0===k?void 0:k.displayName,richMetadataTitle:null===(P=t.richMetadata)||void 0===P?void 0:P.title,storyPinDataId:t.storyPinDataId,storyPinDataMetadataPinTitle:null===(S=t.storyPinData)||void 0===S?void 0:null===(w=S.metadata)||void 0===w?void 0:w.pinTitle})||t.description,U=(K||"").length>Z,{description:H}=(0,u.eK)({richMetadataDescription:null===(A=t.richMetadata)||void 0===A?void 0:A.description,richSummaryDisplayName:null===(T=t.richSummary)||void 0===T?void 0:T.displayName,closeupUnifiedDescription:t.closeupUnifiedDescription}),V=H.length>B,[G,$]=(0,l.useState)(!V&&!U),W=(0,d._S)(t.domain)?t.domain:"";return(0,y.jsxs)(a.xu,{children:[(0,y.jsxs)(a.xu,{children:[(0,y.jsxs)(a.xu,{as:"figcaption",paddingX:F?11:0,children:[(0,y.jsx)(a.X6,{id:"vase-pin-title",color:"default",size:"300",accessibilityLevel:3,children:M||L?K:(0,p.Z)(K||"",Z)}),!!K&&(0,y.jsx)(a.xu,{height:H?8:0}),H&&(V||U)?(0,y.jsx)(a.xu,{"data-test-id":"vase-pin-description",children:(0,y.jsxs)(a.iP,{onTap:()=>{M||R||((0,m.NC)("click_open_description_in_sheet"),z({action:"click",item:"more-description-in-sheet"})),$(!G),N(!M)},fullWidth:!1,children:[(0,y.jsx)(a.xv,{color:"default",size:"200",inline:!0,children:M||L?H:(0,p.Z)(H,B)}),(0,y.jsx)(a.xu,{display:"inlineBlock",paddingX:1,children:(0,y.jsx)(a.xv,{weight:"bold",size:"200",inline:!0,children:M||L?D._('Less', 'Toggle less description button', 'Toggle less description button'):D._('More', 'Toggle more description button', 'Toggle more description button')})})]})}):(0,y.jsx)(a.xu,{"data-test-id":"vase-pin-description",children:(0,y.jsx)(a.xv,{color:"default",size:"200",inline:!0,children:H})})]}),!R&&!L&&j&&(G||L)&&!!W&&(0,y.jsx)(a.xu,{marginTop:2,children:(0,y.jsx)(a.kC,{alignItems:"center",direction:"row",width:"100%",children:(0,s.nk)(D._('{{ pinCreditPrefix }} {{ pinCredit }}', 'tells the user where the pin is from in the form of Saved from website', 'tells the user where the pin is from in the form of Saved from website'),{pinCreditPrefix:(0,y.jsx)(a.xu,{display:"inlineBlock",children:(0,y.jsx)(a.xv,{inline:!0,size:"200",children:b})},"pinCreditsPrefix"),pinCredit:(0,y.jsxs)(a.xu,{display:"inlineBlock",marginStart:1,maxWidth:"60vw","data-test-id":"pin-domain-link",children:[O&&(0,y.jsx)(a.iP,{onTap:({event:e})=>{e.preventDefault(),e.stopPropagation(),z({action:"click",item:"pin-domain-link"}),(0,m.My)("mweb_pin_page.pin_link.clickthrouh"),R||(0,m.NC)("click_pin_closeup_link_clickthrough"),O()},tapStyle:"compress",children:(0,y.jsx)(a.xv,{size:"200",lineClamp:1,children:(0,y.jsx)("span",{style:{textDecoration:"underline"},children:W})},"pinLinkDomain")}),t.link&&!O&&(0,y.jsx)(a.rU,{href:t.link,children:(0,y.jsx)(a.xv,{size:"200",underline:!0,children:W})})]},"pinCredits")})})})]}),!!t.board&&(G||L)&&(0,y.jsx)(a.xu,{marginTop:4,children:(0,y.jsx)(v,{boardUrl:t.board.url||void 0,boardName:t.board.name||void 0,boardPrivacy:t.board.privacy||void 0,pinnerFullName:(null===(I=t.pinner)||void 0===I?void 0:I.fullName)||void 0,pinnerImageSmallUrl:null===(E=t.pinner)||void 0===E?void 0:E.imageSmallUrl,pinnerImageLargeUrl:null===(C=t.pinner)||void 0===C?void 0:C.imageLargeUrl})}),(0,y.jsx)(a.xu,{marginTop:4,children:(0,y.jsx)(f.ZP,{dedupeVisualAnnotations:e,pinId:n,mode:"expanded",graphqlRef:i,shoppingKlpUrls:x})})]})}function k({pinKey:e,pinId:t,...n}){let{data:i,childDataKey__DEPRECATED:l}=(0,r.sr)(b,e,{type:"pin",useLegacyAdapter:e=>({board:e.board&&{name:e.board.name,privacy:e.board.privacy,url:e.board.url},closeupUnifiedDescription:e.closeup_unified_description,description:e.description,domain:e.domain,gridTitle:e.grid_title,link:e.link,pinner:e.pinner&&{fullName:e.pinner.full_name,imageLargeUrl:e.pinner.image_large_url,imageSmallUrl:e.pinner.image_small_url},richMetadata:e.rich_metadata&&{description:e.rich_metadata.description,title:e.rich_metadata.title},richSummary:e.rich_summary&&{displayName:e.rich_summary.display_name},storyPinData:e.story_pin_data&&{metadata:e.story_pin_data.metadata&&{pinTitle:e.story_pin_data.metadata.pin_title}},storyPinDataId:e.story_pin_data_id,title:e.title})});return i&&(0,y.jsx)(x,{...n,pinId:t,pin:i,queryRef:"graphqlRef"===l.type?l.data:null})}},156637:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(667294),l=n(385740),a=n(594736),r=n(999023),o=n(785893);class s extends i.Component{componentDidMount(){let{setCurrentPageData:e,viewData:t,viewParameter:n,viewType:i}=this.props;e({viewData:t,viewParameter:n,viewType:i})}componentDidUpdate(e){let{setCurrentPageData:t,viewData:n,viewParameter:i,viewType:l}=this.props;i===e.viewParameter&&l===e.viewType&&(0,a.ZP)(n,e.viewData)||t({viewData:n,viewParameter:i,viewType:l})}componentWillUnmount(){this.props.clearCurrentPageData()}render(){let{auxData:e,children:t,component:n,objectIdStr:i,viewData:l,viewParameter:a,viewType:s,clientTrackingParams:d}=this.props;return(0,o.jsx)(r.Z,{auxData:e,component:n,objectIdStr:i,clientTrackingParams:d,viewData:l,viewParameter:a,viewType:s,children:t})}}function d(e){let{setViewContextData:t,clearViewContextData:n}=(0,l.sV)();return(0,o.jsx)(s,{...e,clearCurrentPageData:n,setCurrentPageData:t})}},999023:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(667294),l=n(112690),a=n(867820);let r=e=>Object.keys(e).reduce((t,n)=>(void 0===e[n]&&delete t[n],t),{...e}),o=({viewType:e,viewParameter:t,viewData:n,auxData:i,objectIdStr:l,component:o,clientTrackingParams:s,element:d},u)=>{let c=r({event_type:13,view_type:e,view_parameter:t,view_data:n,aux_data:i,object_id_str:l,component:o,clientTrackingParams:s,element:d});-1===Object.keys(c).indexOf("view_type")&&(0,a.My)("mweb.logging.null_view_type"),u(c)};function s(e){let{auxData:t,clientTrackingParams:n,children:a,component:r,element:s,objectIdStr:d,viewData:u,viewParameter:c,viewType:p}=e,m=(0,l.Z)(),h=JSON.stringify(t),_=JSON.stringify(u);return(0,i.useEffect)(()=>{o(e,m)},[m,h,n,r,s,d,_,c,p]),i.Children.only(a)}},598615:(e,t,n)=>{"use strict";n.d(t,{B:()=>_,Z:()=>g});var i=n(667294),l=n(616550),a=n(407043),r=n(385740),o=n(53987),s=n(780280),d=n(867820),u=n(52022),c=n(938917),p=n(329900),m=n(67347),h=n(785893);let _=(e,t)=>"/"===e.pathname?"/":(0,o.am)(e)&&t?`board/${e.pathname.substr(1)}`:e.pathname.substr(1);function g({children:e,componentType:t,app_upsell_type:n}){let o=(0,l.useLocation)(),{flushContextEvents:g,logContextEvent:y}=(0,a.v)(),{viewType:v,viewParameter:f}=(0,r.SU)(),b=(0,u.Z)(),{userAgent:{platform:x}}=(0,s.B)();(0,i.useEffect)(()=>{b({action:"view",item:"download-button",within:n})},[o,n,b]);let k=(0,i.useRef)(!1);(0,i.useEffect)(()=>{v&&202!==v?(y({component:t||13106,element:10308,event_type:9976,view_type:v,view_parameter:f,aux_data:{app_upsell_type:n,app_upsell_is_dupe:k.current}}),k.current=!0):(0,m.nP)("webapp.track_app_upsell_viewed_invalid_parameters",{sampleRate:1,tags:{component:t,view_type:v,view_parameter:f,app_upsell_type:n,app_upsell_is_dupe:k.current}})},[t,y,f,v,n]);let P=(0,c.Z)();return(0,i.useEffect)(()=>{P||(0,d.My)(`mweb.app_upsell.forbidden_upsell.${n}`)},[P,n]),(0,h.jsx)(p.Z,{children:i=>e({handleOpenApp:e=>{if(b({action:"click",item:"download-button",within:n}),(0,d.NC)("press_open_app",!0),y({component:t||13106,element:10308,event_type:102,view_type:v||202,view_parameter:f,aux_data:{app_upsell_type:n}}),y({component:t||13106,element:10308,event_type:9977,view_type:v||202,view_parameter:f,aux_data:{app_upsell_type:n}}),g(!0),i){var l;y({component:t||13106,element:10308,event_type:1701,view_type:v||202,view_parameter:f,aux_data:{app_upsell_type:n}}),i(null!==(l=null==e?void 0:e.deepLinkUri)&&void 0!==l?l:_(o,"android"===x),n)}}})})}},296679:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var i=n(883119),l=n(413764),a=n(430322),r=n(898781),o=n(287072),s=n(780280),d=n(50286),u=n(598615),c=n(664166),p=n(948376),m=n(785893);let h=({deepLinkUri:e,isOpen:t,onDismiss:n,onOpenInApp:c,to:h,app_upsell_type:_})=>{let g=(0,r.ZP)(),y=(0,d.Wb)(),{isBot:v,userAgent:{platform:f,raw:b}}=(0,s.B)(),x=(0,p.Rp)({isBot:v,platform:f,userAgent:b}),k=(0,o.Z)({href:null!=h?h:""}),P=y?60:40;return(0,m.jsx)(a.default,{accessibilityModalLabel:"",isOpen:t,mobileHideCloseIcon:!0,type:"app_upsell_v1",zIndex:new i.Ry(101),closeOnOutsideClick:!1,onDismiss:()=>{},children:(0,m.jsx)(u.Z,{componentType:14157,app_upsell_type:_,children:({handleOpenApp:t})=>(0,m.jsxs)(i.xu,{padding:3,"data-test-id":"appUpsell-iframe",children:[(0,m.jsx)(i.xu,{display:"inlineBlock",position:"absolute",children:(0,m.jsx)(i.xu,{"data-test-id":"appUpsell-continue",children:(0,m.jsx)(i.hU,{accessibilityLabel:g._('close icon background', 'accesibility label for close icon on a overlay', 'accesibility label for close icon on a overlay'),icon:"cancel",onClick:({event:e})=>{n({event:e}),k&&!e.defaultPrevented&&k({event:e})},size:"lg",iconColor:"gray"})})}),(0,m.jsxs)(i.xu,{paddingX:2,paddingY:6,children:[(0,m.jsx)(i.xu,{paddingY:2,justifyContent:"center",display:"flex",children:x?(0,m.jsx)(l.Z,{size:P}):(0,m.jsx)(i.JO,{color:"brandPrimary",icon:"pinterest",accessibilityLabel:"Pinterest App",size:P})}),(0,m.jsxs)(i.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:[(0,m.jsx)(i.xu,{paddingY:2,children:(0,m.jsx)(i.X6,{align:"center",size:"400",children:x?g._('Try Pinterest Lite', 'mweb.app_upsell.lite_app_upsell_title', 'Mobile Web App Upsell title informing the value of downloading the lite app'):g._('Pinterest is better on the app', 'mweb.unauth.app_upsell.app_value_prop2', 'Mobile Web App Upsell title on Pin click informing the value of downloading an app')})}),(0,m.jsx)(i.xv,{align:"center",size:"300",children:x?g._('A space-saving way to discover new ideas', 'mweb.app_upsell.lite_app_value_prop', 'Mobile Web App Upsell subheading informing the user the value of downloading the lite app'):g._('Continue in the app for the full experience', 'mweb.app_upsell.description4', 'description on app upsell modal')}),(0,m.jsx)(i.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{display:"grid"}},justifyContent:"center",marginTop:8,children:(0,m.jsx)(i.zx,{fullWidth:!0,size:"lg",color:"red",onClick:()=>{t({deepLinkUri:e}),c()},text:g._('Open app', 'mweb.app_upsell.app_upsell_button_text1', 'Button to get the Pinterest Lite app')})})]})]})]})})})};function _({clientTrackingParams:e,deepLinkUri:t,isOpen:n,onDismiss:i,onOpenInApp:l,shouldTrackDismiss:a,to:r,viewParameter:o,viewType:s,app_upsell_type:d}){return(0,m.jsx)(c.Z,{clientTrackingParams:e,viewType:s,viewParameter:o,children:(0,m.jsx)(h,{deepLinkUri:t,isOpen:n,onDismiss:e=>{a&&(0,c.y)(),i(e)},onOpenInApp:()=>{(0,c.y)(),l()},to:r,app_upsell_type:d})})}},664166:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c,y:()=>u});var i=n(667294),l=n(30287),a=n(844974),r=n(339363),o=n(807609),s=n(999023),d=n(785893);let u=()=>{(0,a.Nh)("appUpsell",Date.now()),(0,a.qn)("firstUpsellTime")||(0,a.Nh)("firstUpsellTime",Date.now()),(0,r.Nh)("showedAppUpsellCurrentSession",!0)};function c({children:e,clientTrackingParams:t,viewParameter:n,viewType:a}){let r=(0,o.Z)();return r||(0,l.FP)(window)?null:(0,d.jsx)(s.Z,{viewType:a,viewParameter:n,component:13106,clientTrackingParams:t,children:(0,d.jsx)(i.Fragment,{children:e})})}},207484:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(883119),l=n(385740),a=n(898781),r=n(999023),o=n(598615),s=n(785893);function d(e){let{viewParameter:t,viewType:n}=(0,l.SU)(),d=(0,a.ZP)(),u=d._('Search this image with the app', 'mweb.visual.search.app.upsell.heading.text.hard.ask', 'mweb visual search app upsell heading text for hard ask'),c=d._('Download the free Pinterest app to find ideas inspired by parts of this image', 'mweb.visual.search.app.upsell.description.text.soft.ask', 'mweb visual search app upsell description text for soft ask');return(0,s.jsx)(r.Z,{component:13106,viewType:null!=n?n:202,viewParameter:t,children:(0,s.jsxs)(i.xu,{direction:"column",justifyContent:"center",alignItems:"center",display:"flex",paddingX:7,"data-test-id":"mweb-visual-search-app-upsell",children:[(0,s.jsx)(i.kC,{direction:"row",height:48,width:"100%",justifyContent:"center",children:(0,s.jsx)(i.xu,{height:48,width:48,rounding:"circle",color:"secondary",justifyContent:"center",direction:"row",display:"flex",alignItems:"center",marginTop:-3,children:(0,s.jsx)(i.JO,{accessibilityLabel:d._('Visual search', 'mweb.visual.search.app.upsell.flashlight.icon', 'mweb visual search app upsell flashlight icon'),icon:"flashlight",size:24,color:"default"})})}),(0,s.jsx)(i.xu,{marginTop:4,children:(0,s.jsx)(i.X6,{size:"400",align:"center",children:u})}),(0,s.jsx)(i.xu,{marginTop:2,maxWidth:300,children:(0,s.jsx)(i.xv,{align:"center",size:"300",children:c})}),(0,s.jsx)(i.xu,{marginTop:4,marginBottom:6,direction:"row",justifyContent:"center",display:"flex",children:(0,s.jsx)(o.Z,{componentType:14157,app_upsell_type:e.app_upsell_type,children:({handleOpenApp:t})=>(0,s.jsx)(i.zx,{color:"red",text:d._('Open app', 'mweb.app_upsell.app_upsell_button_text1', 'Button to get the Pinterest Lite app'),size:"lg",onClick:()=>t({deepLinkUri:`/pin/${e.pinId}`})})})})]})})}},938917:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(702664);let l=()=>(0,i.useSelector)(({session:{canUseNativeApp:e}})=>e)},876442:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(351356),l=n(272029);function a({action:e,collaboratedByMe:t,collaboratorPermissions:n,ownerId:a}){let r=(0,i.Z)(a),o=(0,l.Z)(t);return r||o&&!!(null!=n&&n.includes(e))}},351356:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(19121);function l(e){let t=(0,i.Z)();return e===t.id}},272029:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(19121);function l(e){let t=(0,i.Z)();return t.isAuth&&e}},682273:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(42447),l=n(780280),a=n(387957),r=n(361115),o=n(785893);function s({children:e,type:t}){let n=(0,l.B)();return(0,o.jsx)(i.Z,{annotateExperiments:[(0,r.J1)(),n.isAuthenticated?"web_eager_loadable_auth":"web_eager_loadable_unauth"],surface:"pin_closeup",constraints:"authDesktop"===t?[...a.d0]:["PinPageMainImageRendered"],customEnabledNavigationTypes:["initial_app_load","client_route_push","client_route_replace"],children:e})}},92261:(e,t,n)=>{"use strict";n.d(t,{$T:()=>g,CI:()=>a,Ch:()=>o,Gb:()=>s,Gg:()=>i,Ie:()=>p,KP:()=>m,Kn:()=>r,Uj:()=>d,bx:()=>h,d2:()=>c,g9:()=>_,iB:()=>y,u6:()=>l,zT:()=>u});let i=508,l=2*i,a=488,r=992,o=672,s=1176,d=.6,u=.84,c=40,p=72,m=740,h=912,_=32,g=24,y={ARTICLE:"https://schema.org/Article",BRAND:"https://schema.org/Brand",PRODUCT:"https://schema.org/Product",RECIPE:"https://schema.org/Recipe",OFFER:"https://schema.org/Offer",OUT_OF_STOCK:"https://schema.org/OutOfStock",PERSON:"https://schema.org/Person"}},387957:(e,t,n)=>{"use strict";let i;n.d(t,{GL:()=>r,_z:()=>l,d0:()=>s,hO:()=>o,pM:()=>a});let l="video",a="image",r=new Map([["DEFAULT",new Set(["button"])],["story_pin",new Set([l])],["product_detail_page",new Set(["description","shopButton","thumbnailsLoaded"])],["product_detail_page_plus",new Set(["description","shopButton","thumbnailsLoaded"])]]),o=(i=new Set,r.forEach(e=>{i=new Set([...i,...e])}),i),s=new Set([...o,a,"resource"])},814197:(e,t,n)=>{"use strict";n.d(t,{Cq:()=>u,Dk:()=>p,Fk:()=>l,fS:()=>d,km:()=>c,lI:()=>r,lJ:()=>a,mS:()=>s,qW:()=>o});var i=n(883119);let l=new i.Ry(1),a=3,r=new i.Ry(a),o=2,s=new i.Ry(o),d=3,u=4,c=new i.Ry(5),p=new i.Ry(100)},398061:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o,e:()=>r});var i=n(883119),l=n(780280),a=n(785893);let r=new i.Ry(1);function o({children:e,isImagePinForUnauthOnTablet:t}){let{isAuthenticated:n}=(0,l.B)();return(0,a.jsxs)(i.xu,{alignItems:"center",bottom:!0,dangerouslySetInlineStyle:{__style:{cursor:"pointer",width:t?"40vw":void 0}},zIndex:n?void 0:r,display:"flex",justifyContent:"center",left:!0,position:"absolute",right:!t||void 0,top:!0,children:[(0,a.jsx)(i.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:"#000",borderRadius:"6px 6px 0 0",WebkitTransition:"opacity .04s linear",transition:"opacity .04s linear"}},left:!0,opacity:.4,position:"absolute",right:!0,top:!0}),e]})}},446713:(e,t,n)=>{"use strict";n.d(t,{Z:()=>e6});var i,l,a,r,o,s=n(667294),d=n(702664),u=n(167912),c=n(616550),p=n(240684),m=n(883119),h=n(112690),_=n(319915),g=n(332611),y=n(322617),v=n(327788),f=n(79264),b=n(121151),x=n(898781),k=n(349700),P=n(507712),S=n(496793),w=n(995081),A=n(926275),T=n(411938),I=n(53987),E=n(55275),C=n(915446),D=n(248975),j=n(623568),F=n(53199),R=n(773285),L=n(780280),z=n(947599),O=n(458882),M=n(667679),N=n(844974),B=n(700380),Z=n(867820),K=n(52022),U=n(826067),H=n(50286),V=n(829407),G=n(895315),$=n(938917),W=n(207484),q=n(740025),Y=n(876442),X=n(502177),Q=n(775029),J=n(759842),ee=n(207004),et=n(515672),en=n(693582),ei=n(724029),el=n(470321),ea=n(632521),er=n(315016),eo=n(667790),es=n(605073),ed=n(876437),eu=n(163331),ec=n(229646),ep=n(830157),em=n(581323),eh=n(62409),e_=n(367438),eg=n(332215),ey=n(691720),ev=n(194969),ef=n(356188),eb=n(881802),ex=n(927383),ek=n(118405),eP=n(414221),eS=n(574724),ew=n(872482),eA=n(904779),eT=n(255607),eI=n(447948),eE=n(639952),eC=n(90326),eD=n(350118),ej=n(797087),eF=n(458996),eR=n(995269),eL=n(580751),ez=n(248299),eO=n(44759),eM=n(785893);let eN=(0,p.ZP)({resolved:{},chunkName:()=>"StoryPinStream",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e(28384).then(n.bind(n,4548)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return n(t)},resolve:()=>4548}),eB=(0,s.lazy)(()=>Promise.all([n.e(44970),n.e(56503),n.e(34617)]).then(n.bind(n,40405))),eZ=(0,s.lazy)(()=>n.e(84615).then(n.bind(n,184615))),eK=(0,s.lazy)(()=>n.e(47297).then(n.bind(n,47297))),eU=(0,s.lazy)(()=>Promise.all([n.e(27503),n.e(6037)]).then(n.bind(n,406037))),eH=(0,p.ZP)({resolved:{},chunkName:()=>"UnauthCloseupRelatedPins",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e(27503),n.e(75676)]).then(n.bind(n,91728)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return n(t)},resolve:()=>91728}),eV=void 0!==i?i:i=n(451369),eG=void 0!==l?l:l=n(900247),e$=void 0!==a?a:a=n(787067),eW=void 0!==r?r:r=n(584666),eq=void 0!==o?o:o=n(627766),eY=({children:e,queryRef:t})=>{var n;return e((0,u.useFragment)(eG,null===(n=(0,u.usePreloadedQuery)(e$,t).v3GetPinQuery)||void 0===n?void 0:n.data))},eX=({children:e,fallback:t,queryRef:n})=>n?(0,eM.jsx)(s.Suspense,{fallback:t,children:(0,eM.jsx)(eY,{queryRef:n,children:t=>t&&e(t)})}):e(null),eQ=({children:e,pinId:t})=>{var n;let i=(0,H.HG)();return e((0,u.useFragment)(eW,null===(n=(0,u.useLazyLoadQuery)(eq,{pinId:t,isDesktop:i}).v3GetPinQuery)||void 0===n?void 0:n.data))},eJ=s.Fragment,e0=({children:e,uanuthDesktopSocialLandingPopover:t})=>e&&t?(0,eM.jsxs)(m.kC,{gap:{row:4,column:0},justifyContent:"center",children:[t,e]}):e,e1=({domain:e,isPromoted:t,hasLinkDomainOfficialUser:n,hasLinkUserWebsiteOfficialUser:i,hasNativeCreator:l,hasThirdPartyPinOwner:a,pinnerDomainVerified:r,pinnerDomainUrl:o})=>i||n||a||!!r&&o===e&&!t||l;function e2({boardCollaboratedByMe:e,boardCollaboratorPermissions:t,boardIsCollaborative:n,boardOwnerId:i,boardId:l,boardUrl:a,clickthroughInterstitialExperience:r,closeupAttributionFullName:o,embedSrc:u,embedSubtype:p,embedType:F,experience:q,hasLinkDomain:en,hasLinkDomainOfficialUser:eD,hasLinkUserWebsiteOfficialUser:eV,hasNativeCreator:eG,hasRichMetadata:e$,hasRichMetadataProducts:eW,hasRichMetadataArticle:eq,hasRichMetadataRecipe:eY,hasRichMetadataTutorial:eQ,hasThirdPartyPinOwner:e2,imageSignature:e3,isDeletedStoryPin:e8,isDownstreamPromotion:e6,isEligibleForAggregatedComments:e4,isEligibleForPdp:e5,isProductPin:e7,isPromoted:e9,isStoryPin:te,isV1IdeaPin:tt,isVideoPin:tn,link:ti,linkDomainName:tl,mobileLink:ta,graphqlRefs:tr,originalPinImageDimensions:to,pinCreatedAt:ts,pinDomain:td,pinTrackingParams:tu,pinId:tc,imagesUrls:tp,pinSectionId:tm,pinnedToBoardId:th,pinnedToBoardUrl:t_,pinnerDomainUrl:tg,pinnerDomainVerified:ty,pinnerId:tv,postDownloadModalEligibilityType:tf,promotedIsRemovable:tb,promoterId:tx,recommendationReason:tk,seoBreadcrumbs:tP,shouldOpenInStream:tS,storyPinDataId:tw,trackedLink:tA,uanuthDesktopSocialLandingPopover:tT,videosId:tI,viewerId:tE,viewingUser:tC,feedbackType:tD}){var tj,tF;let tR=(0,x.ZP)(),tL=(0,c.useHistory)(),tz=(0,c.useLocation)(),tO=(0,c.useRouteMatch)(),tM=(0,H.ZP)(),tN="desktop"===tM,tB=(0,d.useDispatch)(),tZ=(0,$.Z)(),{checkExperiment:tK}=(0,R.F)(),tU=(0,h.Z)(),tH=(0,K.Z)(),tV=(0,M.Z)(),tG=(0,ex.Z)(),{isBot:t$,isSocialBot:tW,isAuthenticated:tq,userAgent:tY,locale:tX}=(0,L.B)(),{setHomeFlyoutText:tQ,setShowHomeBadge:tJ,setShowHomeFlyoutWithButton:t0}=(0,ek.U)(),{setPinFeedbackStatus:t1}=(0,eA.K)(),t2=null==tr?void 0:tr.pageRef,{group:t3}=tK("mweb_pin_closeup_resize_image",{dangerouslySkipActivation:!0}),{group:t8}=tK("mweb_pin_closeup_resize_image_body",{dangerouslySkipActivation:!0}),[t6,t4]=(0,s.useState)(!tN&&tq&&!!(t8||t3)),t5=(0,eL.M)(),[t7,t9]=(0,s.useState)(!1);(0,s.useEffect)(()=>{t9(!1)},[tc]);let[ne,nt]=(0,G.Z)(!1,tc),nn=!tN&&tK(tq?"closeup_auth_mweb_remove_streams":"closeup_unauth_mweb_remove_streams").anyEnabled,ni=!tN&&!e5&&e4&&tq&&tK("mweb_comment_module").anyEnabled,nl=!e9&&!e6&&!e8,na=te&&!1!==tS&&!tN&&!t$&&!nn,nr=tv===tE,no=(0,j._S)(td)?(0,eh.Wj)({i18n:tR,hasLinkDomain:en,hasRichMetadataArticle:eq,hasRichMetadataRecipeCategorizedIngredients:eY,hasRichMetadataTutorial:eQ,richMetadataRecipeFromAggregatedData:null}):tR._('Uploaded to Pinterest', 'closeup.closeupDetails.pinCreditPrefix', 'tells the pinner that the pin was uploaded to Pinterest');(0,s.useEffect)(()=>{let e=!(0,e_.Z)(tz);e&&tq&&(0,T.Z)(tC,null,28)&&tU({event_type:9956,view_type:3,userIdStr:null==tC?void 0:tC.id}),tq&&(0,Z.Nc)("view_pin_page")},[]);let[ns,nd]=(0,s.useState)(!1),[nu,nc]=(0,s.useState)(!1),[np,nm]=(0,s.useState)(!1),[nh,n_]=(0,s.useState)(null),{showUnauthSharingModals:ng}=null!==(tj=(0,O.l)())&&void 0!==tj?tj:Object.freeze({}),ny=(0,f.c)(),nv=e7&&tq,nf=!tN&&!e7,nb=nv||nf||t6,nx=!e7&&tK("auth_mweb_inline_action_bar").anyEnabled,[nk,nP]=(0,G.Z)(!nb&&(!tq||tN||nx),tc),nS=nk||t6?"body":"header",nw=(0,Y.Z)({action:4,collaboratedByMe:null!=e&&e,collaboratorPermissions:t,ownerId:i}),nA=(0,I.fY)(tz),nT=()=>{!t$&&null!=tC&&tC.id&&"undefined"!=typeof window&&(0,S.U)(window.location,tC.id,!0,tq,e=>tL.replace(e,tz.state))},nI=()=>(0,B.Z)(()=>{tc&&tU({event_type:110,view_type:3,view_parameter:156,component:tn?179:85,aux_data:{unauth_page_pin_id:tc}})},300),nE=(0,s.useCallback)(()=>{let e={pin_image_signature:e3};tB((0,g.pz)([1000112],t$,tq?{...e,creator_username:o,is_creator_card_shown:!nr&&!!e1({domain:td,isPromoted:e9,hasLinkDomainOfficialUser:eD,hasLinkUserWebsiteOfficialUser:eV,hasNativeCreator:eG,hasThirdPartyPinOwner:e2,pinnerDomainVerified:ty,pinnerDomainUrl:tg})}:e))},[tB,o,e3,tq,e9,t$,eD,eV,eG,e2,td,ty,tg,nr]);(0,s.useEffect)(()=>{null!=t5&&t5.isSaved(tc)&&ny("Save",tz.pathname)},[t5,tc,tz.pathname]);let nC=e=>{na&&tU({component:229,element:10942,event_type:102,view_type:3,view_parameter:157}),tG({fn:()=>{n_("sendPinModal"),tq||null==ng||ng()},modalHeader:(0,eb.hg)(tR)})(e)},nD=(0,H.ml)();(0,V.Z)(()=>{nT(),(0,P.Z)();let e=(0,U.mB)(window.location.search),t=e.invite_code;if(t&&tU({component:tn?179:85,element:46,event_type:47,view_type:3,view_parameter:156}),tq){if(!tN){let e=(0,N.qn)(eS.Hn);e||(0,eg.xT)(tC)||(tB((0,eC.Q_)("HAS_DONE_CLOSEUP",1)),(0,N.Nh)(eS.Hn,!0))}}else window.addEventListener("scroll",nI),(0,Z.My)(`mweb.pin_page.${tY.platform||"unknown"}`),ts&&(0,Z.My)("mweb_unauth.pin_page.publish_date"),(0,Z.NC)("view_pin_page");return tw&&tB((0,eE.FK)()),t$||nE(),"t"===(0,U.mB)(tz.search).open_share&&nC(),()=>{tw&&tB((0,eE.Cp)()),tq||window.removeEventListener("scroll",nI)}});let nj=(0,s.useRef)({linkDomainName:tl,pinId:tc});(0,s.useEffect)(()=>{let e=nj.current,t=tc!==e.pinId,n=!e.pinId&&tc,i=e&&e.linkDomainName!==tl;t&&(nT(),tq&&(0,Z.Nc)("view_pin_page")),(n||t||i&&tq)&&nE(),nj.current={linkDomainName:tl,pinId:tc}});let nF=void 0===tL.location.state,nR=tq&&nF&&t7&&!nu&&!np;(0,s.useEffect)(()=>{nR&&nm((0,eP.Z)())},[nR]),(0,s.useEffect)(()=>{tB((0,eE.Cp)())},[tB]);let nL=(0,ew.a)(),{setShouldShowLearningUpsell:nz,shouldShowLearningUpsell:nO}=null!=nL?nL:{},nM=!tq&&nD&&["ios","android"].includes(tY.platform);(0,s.useEffect)(()=>{if(!nM||!nz)return()=>{};{let e=(0,B.Z)(()=>{window.scrollY>400&&(nz(!1),(0,Z.My)("learning.upsell.dismiss.by.scroll.down"))},10);return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}},[nM,nz]);let nN=(0,ej.Z)({embedSrc:u,embedType:F,hasRichMetadata:e$,hasRichMetadataProducts:eW,hasRichMetadataArticle:eq,hasRichMetadataRecipe:eY,imagesUrls:tp,isStoryPin:te,pinId:tc}),nB=(0,eR.Z)({boardId:null!=l?l:"",embedSrc:u,embedType:F,imagesUrls:tp,pinId:tc,pinnerId:null!=tv?tv:"",pinnedToBoardId:null!=th?th:"",pinSectionId:null!=tm?tm:"",trackingParams:tu}),nZ=(0,eF.Z)({embedSrc:u,embedType:F,imagesUrls:tp,pinId:tc,pinnerId:null!=tv?tv:""}),nK=(0,er.Z)({link:ti,mobileLink:ta,trackedLink:tA}),nU=(0,eT.J6)({boardIsCollaborative:n,isDownstreamPromotion:e6,isEligibleForStaticImageIdeaPin:te&&!1===tS,isPromoted:e9,storyPinDataId:tw,videosId:tI}),nH=tq&&nU,nV=(0,ep.Z)(null===(tF=tz.state)||void 0===tF?void 0:tF.trackingParams,tu),nG=tn&&tq&&!tN,n$=t2?{type:"graphqlRef",data:t2}:{type:"deprecated",data:tc},nW=(0,em.Z)(n$),nq={downloadImageUrl:!tn&&(0,D.Z)({imagesUrls:tp,embedSrc:u,embedType:F,excludeOriginals:!t$&&!tW})||null,isAuthenticated:tq,isBot:t$,isSocialBot:tW,saveButtonConfig:{shouldShowSavedButton:nZ,onSaveButtonClick:e=>{nN(e)},onUnsaveButtonClick:nB,repinPageLocation:(0,j.NK)(tc,tz)},clientTrackingParams:nV,isStoryPin:te,viewParameter:(0,eh.CK)({hasRichMetadata:e$,hasRichMetadataProducts:eW,hasRichMetadataArticle:eq,hasRichMetadataRecipe:eY}),pinId:tc,canUpsellNativeApp:tZ,shouldShowReactions:nH,onSendButtonClick:nC,isChromeOnIOS:"ios"===tY.platform&&"Chrome"===tY.browserName,handleDownloadPinImageClick:()=>{tH({action:"click",item:"download-image-button",within:"action-bar"}),"unauthPostDownloadUpsell"===tf?(n_(null),tN||tV({attributionLabel:"tap_closeup_download_button",reason:"UPSELL_LOGIN_OR_SIGNUP",mobileOptions:{headingType:"download"}})):tf?n_("postDownloadModal"):ny("Download",tz.pathname)},shouldRenderAsStoryPin:te&&!1!==tS&&!nn,shouldShowVisitInMoreOptions:nK&&nG,onHidePin:()=>{let{action:e,actionOptions:t}=(0,C.Z)({feedbackType:tD,pinId:tc,pinFeedbackType:"pfy"===tD?4:10,recommendationReason:tk&&{board:null,reasonId:tk.reasonId,reason:tk.reason,throughProperties:[]},clientTrackingParams:nV});tB((0,eI.NA)({id:tc})),(0,E.t)(e,t,()=>t1({pinId:tc,pinFeedbackStatus:"hidden"}),tU),tL&&tL.goBack()}},nY=nH&&(tI&&"video"||te&&"storyPin")||null,nX=nr||nw?tG({fn:()=>tL.push(tO.url+"edit/"),modalHeader:(0,eb.oM)(tR),nextLocation:(0,eb.wI)(tz)}):void 0,nQ=()=>{n_("reportPinModal"),tU({view_type:3,view_parameter:139,element:72,event_type:102,object_id_str:tc||""})},nJ=(0,eM.jsx)(eX,{queryRef:null==tr?void 0:tr.detailRef,children:e=>(0,eM.jsx)(eo.Z,{clickthroughInterstitialExperience:r,experience:q,inCommentModuleExp:!!ni,isActionBarInline:nk||t6,isEligibleForPinReactions:nl,isNewUser:(0,A.Z)(null==tC?void 0:tC.created_at),isRemovablePin:null!=tb&&tb,nativePinType:nY,onMobileTap:()=>{na&&tU({component:229,element:10946,event_type:102,view_type:3,view_parameter:157}),nQ()},onSendButtonClick:nC,pinId:tc,pinnedToBoardId:th,pinnedToBoardUrl:(nr?a:t_)||"",scrolledToRelatedPins:t7,shouldShowReactions:nH&&!nb,onEditButtonClick:nX,shouldShowBackButton:"header"===nS,shouldShowShareOnVideoCloseup:nG,isEligibleToVisitPin:nK,graphqlRef:e})}),n0=(0,eM.jsx)(eX,{queryRef:null==tr?void 0:tr.detailRef,children:e=>(0,eM.jsx)(el.Z,{inCommentModuleExp:!!ni,isEligibleForPinReactions:nl,isProductPin:e7,pinId:tc,pinKey:e?{type:"graphqlRef",data:e}:{type:"deprecated",data:tc}})}),n1=(tz.search||"").includes("force_seo")||!tq;return(0,eM.jsx)(et.Z,{pinKey:n$,pinId:tc,viewParameter:nq.viewParameter,children:(0,eM.jsxs)(J.Z,{closeupPageContext:nq,imageViewer:(0,I.Fr)(tz)&&!na&&tq&&(0,eM.jsx)(eX,{queryRef:null==tr?void 0:tr.detailRef,children:e=>(0,eM.jsx)(eB,{postDownloadModalEligibilityType:tf,isRemovablePin:!!tb,experience:q,graphqlRef:e,pinnedToBoardId:th,pinnedToBoardUrl:(nr?a:t_)||"",pinId:tc,shouldShowSEOPinInfo:n1,setActionBarIsMinifiedToMainPinImage:nd})}),pinKey:n$,hasGutter:!na,stickyUpsell:nM&&nO&&(0,eM.jsx)(eO.Z,{pinId:tc}),children:[(0,eM.jsxs)(eJ,{children:[tq&&(0,eM.jsxs)(s.Fragment,{children:[q&&(0,eM.jsx)(eu.Z,{experience:q}),q&&(0,eM.jsx)(ec.Z,{experience:q}),q&&(0,eM.jsx)(y.Z,{experience:q},`${tc}-1000112`),(0,eM.jsx)(v.Z,{placementId:1000494},`${tc}-1000494`),(0,eM.jsx)(v.Z,{placementId:1000500},`${tc}-1000500`)]}),!tq&&nA&&!tN&&(0,eM.jsx)(ed.Z,{isDesktop:!1,isStoryPin:te}),"header"===nS&&!ns&&nJ,!tq&&(tN?(0,eM.jsx)(ev.Z,{breadcrumbs:null!=tP?tP:[]}):!na&&(t$?(0,eM.jsx)(ev.Z,{breadcrumbs:null!=tP?tP:[]}):(0,eM.jsx)(ef.Z,{pinId:tc,shouldUseGraphQL:!!t2})))]}),(0,eM.jsxs)(e0,{uanuthDesktopSocialLandingPopover:tT,children:[(nb||nk)&&!na&&(0,eM.jsx)(ei.Z,{pinActionBarOptionsButton:nb&&!t7&&(0,eM.jsx)(eX,{queryRef:null==tr?void 0:tr.detailRef,children:e=>(0,eM.jsx)(m.xu,{"data-test-id":"ellipsis-button",children:(0,eM.jsx)(es.Z,{onMobileTap:nQ,pinCreditPrefix:no,pinId:tc,graphqlRef:e,overlayingPinImage:!0,clickthroughInterstitialExperience:r})})}),l1interestFallbackUrl:null!=tP&&tP[tP.length-1]?tP[tP.length-1].url:""}),na?(0,eM.jsx)(_.Z,{name:"SafeSuspense_Closeup_StoryPinStream",children:(0,eM.jsx)(eN,{fallback:null,pinId:tc,graphqlRef:null==tr?void 0:tr.storyPinRef})}):e8?(0,eM.jsx)(ez.Z,{}):(0,eM.jsx)(X.Z,{pinId:tc,originalPinImageHeight:to.height||1,originalPinImageWidth:to.width||1,setIsEligibleToShowInlineActionBar:t4,children:e=>(0,eM.jsx)(Q.Z,{pinImageResizePercents:e.pinImageResizePercents,resizePinImageExperimentGroup:e.resizePinImageExperimentGroup,setCloseupDetailsHeight:e.setCloseupDetailsHeight,setCloseupPinLinkCreditsHeight:e.setCloseupPinLinkCreditsHeight,setCloseupTitleHeight:e.setCloseupTitleHeight,setUploadedToPinterestTextHeight:e.setUploadedToPinterestTextHeight,setUserAttributionHeight:e.setUserAttributionHeight,setUserRepHeight:e.setUserRepHeight,actionBarIsMinifiedToMainPinImage:ns,clickthroughInterstitialExperience:r,closeupIsFirstPageInHistoryStack:nF,commentModule:ni?n0:null,graphqlRefs:tr,isActionBarInline:nk||!!e.resizePinImageExperimentGroup,isImagePinForUnauthOnTablet:!tq&&!tn&&!(0,j.cL)({embedSrc:u,embedSubtype:p,embedType:F})&&("tablet"===tM||(0,w.oy)()),isSendPinModalOpen:"sendPinModal"===nh,isVideoPin:tn,onLinklessPinTap:()=>{let e=!ns;nd(e),tB(e?(0,eE.Cp)():(0,eE.FK)())},onMoreButtonClick:nQ,onSendPin:nC,pinActionBar:"body"===nS||e.resizePinImageExperimentGroup?nJ:null,pinCloseupExperience:q,pinId:tc,pinnedToBoardId:th,setIsActionBarInline:nP,setIsShowingCloseupDetailsSuspenseFallback:nt,shouldShowReactions:nU,shouldShowSEOPinInfo:n1,viewerId:tE})})]}),tq&&!na&&(0,eM.jsx)(_.Z,{name:"SafeSuspense_Closeup_RelatedInterestUpsellContainer",children:(0,eM.jsx)(z.Z,{fallback:(0,eM.jsx)(ee.Z,{}),children:(0,eM.jsx)(eU,{auxCommerceData:nW,graphqlConfig:tr?{fallback:(0,eM.jsx)(ee.Z,{}),isShowingCloseupDetailsSuspenseFallback:ne}:null,isProductDetailPage:e7,onRelatedPinsTitleEnter:()=>t9(!1),onRelatedPinsTitleExit:()=>t9(!0),pinId:tc,recommendationReason:tk})})}),!tq&&!na&&!tx&&(0,eM.jsx)(eX,{fallback:(0,eM.jsx)(ee.Z,{}),queryRef:null==tr?void 0:tr.detailRef,children:e=>(0,eM.jsx)(eH,{fallback:(0,eM.jsx)(ee.Z,{}),isShowingCloseupDetailsSuspenseFallback:ne,onRelatedPinsTitleEnter:()=>t9(!1),onRelatedPinsTitleExit:()=>t9(!0),pinId:tc,pinKey:e?{type:"graphqlRef",data:e}:{type:"deprecated",data:tc}})}),(0,eM.jsx)(eX,{queryRef:null==tr?void 0:tr.detailRef,children:e=>(0,eM.jsxs)(s.Fragment,{children:[!tq&&"phone"===tM&&tZ&&(null==nL?void 0:nL.shouldShowVisualSearchAppUpsell)&&(0,eM.jsx)(b.ZP,{mobileAccessibilityCloseIconLabel:tR._('Cancel', 'mweb.visual.search.app.upsell.cancel.on.pin.page', 'accessibble close icon label for visual search app upsell on pin page'),accessibilityModalLabel:"",_dangerouslyDisableScrollBoundaryContainer:!0,isOpen:!0,onDismiss:()=>{nL.setShouldShowVisualSearchAppUpsell(!1),tU({component:14157,element:10308,event_type:10220,view_type:156,view_parameter:3,aux_data:{upsell_reason:"visual-search-app-upsell-on-pin-page"}})},children:(0,eM.jsx)(W.Z,{pinId:tc,app_upsell_type:"visual-search-app-upsell-on-pin-page"})}),tq&&!(0,eg.xT)(tC)&&nF&&t7&&!nu&&!np&&!tK("mweb_turn_off_mini_renux_exp").anyEnabled&&(0,eM.jsx)(_.Z,{name:"SafeSuspense_Closeup_RelatedInterestUpsellContainer",children:(0,eM.jsx)(z.Z,{children:(0,eM.jsx)(eK,{onComplete:e=>{e&&(tQ((0,k.nk)(tR._('We\'ve added fresh ideas for {{ interestName }}', 'navFooter.flyout.text', 'A flyout points at Home button to ask users to go to home page'),{interestName:(0,ey.T_)(e,tX)}).join("")),tJ(!0),t0(!0)),nc(!0)},pinId:tc,showRelatedInterestModal:()=>{n_("relatedInterestsModal")}})})}),tt&&(0,eM.jsx)(ea.Z,{pinId:tc,viewParameter:nq.viewParameter}),(0,eM.jsx)(_.Z,{name:"SafeSuspense_Closeup_CloseupModals",children:(0,eM.jsx)(z.Z,{children:(0,eM.jsx)(m.xu,{"data-test-id":"close-action-bar",children:(0,eM.jsx)(eZ,{graphqlRef:e,modal:nh,onDismiss:()=>{tH({action:"click",item:"close-action-bar",within:"action-bar"}),"relatedInterestsModal"===nh&&nc(!0),n_(null)},onEditButtonClick:nX,onSendButtonClick:nC,pinId:tc,postDownloadModalEligibilityType:tf,viewParameter:nq.viewParameter,clientTrackingParams:nV,clickthroughInterstitialExperience:r,shouldShowShareOnVideoCloseup:nG,nativePinType:nY})})})})]})})]})})}function e3(e){var t,n,i,l,a,r,o,s,d,u,p,h,_,g,y,v,f,b,x,k,P,S,w;let{pinId:A}=e,T=(0,eD.S6)()(A),E=(0,H.HG)(),C=(0,c.useLocation)(),{isAuthenticated:D}=(0,L.B)(),j=(0,q.Z)({pinKey:T?{type:"deprecated",data:T}:null,viewParameter:156}),F=null==T?void 0:T.board,R=null!=T&&T.promoter&&!T.is_downstream_promotion?T.promoter:null,z=null==T?void 0:T.pinner;return T&&z&&F?(0,eM.jsx)(e2,{...e,boardCollaboratedByMe:null!==(t=F.collaborated_by_me)&&void 0!==t&&t,boardCollaboratorPermissions:F.collaborator_permissions,boardIsCollaborative:F.is_collaborative,boardOwnerId:null===(n=F.owner)||void 0===n?void 0:n.id,boardId:F.id,boardUrl:F.url,closeupAttributionFullName:null===(i=T.closeup_attribution)||void 0===i?void 0:i.full_name,embedSrc:null===(l=T.embed)||void 0===l?void 0:l.src,embedSubtype:null===(a=T.embed)||void 0===a?void 0:a.subtype,embedType:null===(r=T.embed)||void 0===r?void 0:r.type,graphqlRefs:null,hasLinkDomain:!!T.link_domain,hasLinkDomainOfficialUser:!!(null===(o=T.link_domain)||void 0===o?void 0:o.official_user),hasLinkUserWebsiteOfficialUser:!!(null===(s=T.link_user_website)||void 0===s?void 0:s.official_user),hasNativeCreator:!!T.native_creator,hasRichMetadata:!!T.rich_metadata,hasRichMetadataProducts:!!(null===(d=T.rich_metadata)||void 0===d?void 0:d.products),hasRichMetadataArticle:!!(null===(u=T.rich_metadata)||void 0===u?void 0:u.article),hasRichMetadataRecipe:!!(null===(p=T.rich_metadata)||void 0===p?void 0:p.recipe),hasRichMetadataTutorial:!!(null===(h=T.rich_metadata)||void 0===h?void 0:h.tutorial),hasThirdPartyPinOwner:!!T.third_party_pin_owner,imageSignature:T.image_signature,isDeletedStoryPin:null!==(_=null===(g=T.story_pin_data)||void 0===g?void 0:g.is_deleted)&&void 0!==_&&_,isDownstreamPromotion:T.is_downstream_promotion,isEligibleForAggregatedComments:T.is_eligible_for_aggregated_comments,isEligibleForPdp:T.is_eligible_for_pdp,isPromoted:T.is_promoted,isV1IdeaPin:T.is_v1_idea_pin,isVideoPin:!!(null!==(y=T.videos)&&void 0!==y&&y.video_list),link:T.link,linkDomainName:null===(v=T.link_domain)||void 0===v?void 0:v.name,mobileLink:T.mobile_link,originalPinImageDimensions:(null===(f=T.images)||void 0===f?void 0:f["236x"])||(null===(b=T.images)||void 0===b?void 0:b["136x136"])||{},pinCreatedAt:T.created_at,pinDomain:T.domain,pinId:A,imagesUrls:T.images?Object.keys(T.images).reduce((e,t)=>{var n,i;return t&&null!==(n=T.images)&&void 0!==n&&null!==(i=n[t])&&void 0!==i&&i.url?{...e,[t]:T.images[t].url}:e},{}):void 0,pinSectionId:null===(x=T.section)||void 0===x?void 0:x.id,pinTrackingParams:T.tracking_params,pinnedToBoardId:null===(k=T.pinned_to_board)||void 0===k?void 0:k.id,pinnedToBoardUrl:null===(P=T.pinned_to_board)||void 0===P?void 0:P.url,pinnerDomainVerified:z.domain_verified,pinnerDomainUrl:z.domain_url,pinnerId:z.id,promoterId:null==R?void 0:R.id,promotedIsRemovable:T.promoted_is_removable,recommendationReason:T.recommendation_reason&&{reason:T.recommendation_reason.reason,reasonId:T.recommendation_reason.reason_id},seoBreadcrumbs:null===(S=T.pin_join)||void 0===S?void 0:S.seo_breadcrumbs,shouldOpenInStream:T.should_open_in_stream||!1,storyPinDataId:T.story_pin_data_id,trackedLink:T.tracked_link,videosId:null===(w=T.videos)||void 0===w?void 0:w.id,feedbackType:j}):(0,eM.jsx)(m.xu,{margin:5,children:D||E&&(0,I.fY)(C)?(0,eM.jsx)(ee.Z,{}):(0,eM.jsx)(en.Z,{})})}function e8({graphqlRefs:e,...t}){var n,i,l,a,r,o,s,d,c,p,m,h,_,g,y,v,f,b,x,k,P,S,w,A,T;let{pinId:I}=t,E=(0,u.useFragment)(eV,e.pageRef),C=(0,F.Z)({type:"graphqlRef",data:E}),{board:D,pinner:j}=E,R=null===(n=E.pinJoin)||void 0===n?void 0:null===(i=n.seoBreadcrumbs)||void 0===i?void 0:i.map(({name:e,url:t})=>({name:null!=e?e:"",url:null!=t?t:""})),L=(0,q.Z)({pinKey:{type:"graphqlRef",data:E},viewParameter:156});return(0,eM.jsx)(e2,{...t,boardCollaboratedByMe:null!==(l=null==D?void 0:D.collaboratedByMe)&&void 0!==l&&l,boardCollaboratorPermissions:null==D?void 0:D.collaboratorPermissions,boardIsCollaborative:null==D?void 0:D.isCollaborative,boardOwnerId:null==D?void 0:null===(a=D.owner)||void 0===a?void 0:a.entityId,boardId:null==D?void 0:D.entityId,boardUrl:null==D?void 0:D.url,closeupAttributionFullName:null!==(r=null===(o=E.closeupAttribution)||void 0===o?void 0:o.fullName)&&void 0!==r?r:"",embedSrc:null===(s=E.embed)||void 0===s?void 0:s.src,embedSubtype:null===(d=E.embed)||void 0===d?void 0:d.subtype,embedType:null===(c=E.embed)||void 0===c?void 0:c.type,hasLinkDomain:!!E.linkDomain,hasLinkDomainOfficialUser:!!(null===(p=E.linkDomain)||void 0===p?void 0:p.officialUser),hasLinkUserWebsiteOfficialUser:!!(null===(m=E.linkUserWebsite)||void 0===m?void 0:m.officialUser),hasNativeCreator:!!E.nativeCreator,hasRichMetadata:!!E.richMetadata,hasRichMetadataProducts:!!(null===(h=E.richMetadata)||void 0===h?void 0:null===(_=h.products)||void 0===_?void 0:_.length),hasRichMetadataArticle:!!(null===(g=E.richMetadata)||void 0===g?void 0:g.article),hasRichMetadataRecipe:!!(null===(y=E.richMetadata)||void 0===y?void 0:y.recipe),hasRichMetadataTutorial:!!(null===(v=E.richMetadata)||void 0===v?void 0:v.tutorial),hasThirdPartyPinOwner:!!E.thirdPartyPinOwner,imageSignature:E.imageSignature,isDeletedStoryPin:null!==(f=null===(b=E.storyPinData)||void 0===b?void 0:b.isDeleted)&&void 0!==f&&f,isDownstreamPromotion:E.isDownstreamPromotion,isEligibleForAggregatedComments:E.isEligibleForAggregatedComments,isEligibleForPdp:E.isEligibleForPdp,isPromoted:E.isPromoted,isV1IdeaPin:E.isV1IdeaPin,isVideoPin:!!(null===(x=E.videos)||void 0===x?void 0:x.entityId),link:E.link,linkDomainName:null===(k=E.linkDomain)||void 0===k?void 0:k.name,mobileLink:E.mobileLink,originalPinImageDimensions:E.imageSpec_236x||E.imageSpec_136x136||{},pinCreatedAt:E.createdAt,pinDomain:E.domain,pinId:I,imagesUrls:C,pinSectionId:null===(P=E.section)||void 0===P?void 0:P.entityId,pinTrackingParams:E.trackingParams,pinnedToBoardId:null===(S=E.pinnedToBoard)||void 0===S?void 0:S.entityId,pinnedToBoardUrl:null===(w=E.pinnedToBoard)||void 0===w?void 0:w.url,pinnerDomainVerified:null==j?void 0:j.domainVerified,pinnerDomainUrl:null==j?void 0:j.domainUrl,pinnerId:null==j?void 0:j.entityId,promoterId:null===(A=E.promoter)||void 0===A?void 0:A.entityId,promotedIsRemovable:E.promotedIsRemovable,recommendationReason:E.recommendationReason&&{reason:E.recommendationReason.reason,reasonId:E.recommendationReason.reasonId},seoBreadcrumbs:null!=R?R:[],shouldOpenInStream:E.shouldOpenInStream||!1,storyPinDataId:E.storyPinDataId,trackedLink:E.trackedLink,videosId:null===(T=E.videos)||void 0===T?void 0:T.entityId,graphqlRefs:{...e,pageRef:E},feedbackType:L})}function e6({graphqlRefs:e,...t}){if(!e)return(0,eM.jsx)(e3,{...t});let{isStoryPin:n,pinId:i}=t;return n?(0,eM.jsx)(eQ,{pinId:i,children:n=>n&&(0,eM.jsx)(e8,{...t,graphqlRefs:{...e,storyPinRef:n}})}):(0,eM.jsx)(e8,{...t,graphqlRefs:{...e,storyPinRef:null}})}},49895:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var i=n(883119),l=n(166300),a=n(773285),r=n(780280),o=n(50286),s=n(63552),d=n(691720),u=n(785893);let c={boxShadow:"0 1px 20px 0 rgba(0, 0, 0, 0.1)",borderRadius:32},p=({detail:e,isShowingBreadcrumbs:t,media:n,sideBySideOptions:{mainImageEventHandlers:l}})=>{let p=(0,o.ZP)(),m="desktop"===p?8:"undefined"!=typeof window&&window.screen&&window.screen.width<750?0:54,{checkExperiment:h}=(0,a.F)(),{isAuthenticated:_}=(0,r.B)(),g=_?h("auth_closeup_redesign").anyEnabled:h("unauth_closeup_redesign").anyEnabled,y="phone"!==p?d.Hg:"47vw",v="phone"!==p?0:"desktop"===p?8:10;return(0,u.jsx)(i.kC,{alignItems:"stretch",justifyContent:"center",width:"100%",children:(0,u.jsx)(i.xu,{dangerouslySetInlineStyle:g?{__style:c}:void 0,paddingX:g?5:void 0,paddingY:g?5:void 0,maxWidth:g?1059:void 0,children:(0,u.jsxs)(i.xu,{position:"relative",display:"flex",overflow:"phone"!==p?void 0:"hidden",minHeight:"40vh",rounding:"desktop"===p?void 0:6,dangerouslySetInlineStyle:"phone"!==p?{__style:{justifyContent:"center"}}:{__style:{marginTop:t?0:54,marginRight:m,marginBottom:54,marginLeft:m,boxShadow:"desktop"===p?void 0:"0px 0px 8px rgba(0, 0, 0, 0.1)"}},children:[(0,u.jsx)(i.xu,{display:"phone"!==p?"block":"flex",height:"100%",justifyContent:"center",overflow:"phone"!==p?void 0:"hidden",rounding:"desktop"===p?8:void 0,width:y,paddingX:v,children:(0,u.jsx)(s.Z,{onMouseEnter:null==l?void 0:l.onMouseEnter,onMouseLeave:null==l?void 0:l.onMouseLeave,onTouch:null==l?void 0:l.onTouch,pressState:"desktop"===p?"none":"compress",rounding:2,children:n})}),(0,u.jsx)(i.xu,{paddingX:v,width:y,display:"flex",direction:"column",justifyContent:"between",children:e})]})})})},m=({detail:e,isShowingBreadcrumbs:t,media:n,sideBySideOptions:a})=>{let r=(0,o.ZP)();return a?(0,u.jsx)(i.xu,{marginEnd:"auto",marginStart:"auto","data-test-id":"closeup-body-landscape",children:(0,u.jsx)(p,{detail:e,isShowingBreadcrumbs:t,media:n,sideBySideOptions:a})}):(0,u.jsxs)(i.xu,{marginEnd:"auto",marginStart:"auto",maxWidth:"desktop"===r?void 0:"phone"===r?d.g6:d.Hg,"data-test-id":"closeup-body-portrait",children:[t||"desktop"===r?(0,u.jsx)(l.Z,{roundedForLargeDevice:!0,children:n}):n,e]})}},946843:(e,t,n)=>{"use strict";n.d(t,{Z:()=>j}),n(167912);var i,l,a,r=n(681669),o=n(898781),s=n(349700),d=n(958007),u=n(780280),c=n(883119),p=n(785893);let m=void 0!==i?i:i=n(281309);function h({pin:e}){let t=(0,o.ZP)(),{author:n,authorUrl:i,ccUrl:l,link:a,mediaType:r,providerName:d}=e.mediaAttribution||{},u=!!d&&"Unknown"!==d,m={author:(0,p.jsx)(c.xu,{display:"inlineBlock",children:(0,p.jsx)(c.rU,{underline:"none",href:i||"",rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,p.jsx)(c.xv,{inline:!0,size:"200",weight:"bold",children:n})},"author")},"author"),provider:u?(0,p.jsx)(c.xu,{marginEnd:1,display:"inlineBlock",children:(0,p.jsx)(c.rU,{underline:"always",href:a||"",rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,p.jsx)(c.xv,{inline:!0,size:"200",weight:"bold",children:d})},"provider")},"provider"):null},h=u?t._('from {{ provider }}', 'closeup.description.imageSourceWithProvider', 'Image source attribution without author on pin closeup'):null;return n&&(h="VIDEO"===r?u?t._('Video by {{ author }} on {{ provider }}', 'closeup.description.videoSourceWithProvider', 'Video source attribution on pin closeup'):t._('Video by {{ author }}', 'closeup.description.videoSource', 'Video source attribution without provider on pin closeup'):u?t._('Photo by {{ author }} on {{ provider }}', 'closeup.description.photoSourceWithProvider', 'Photo source attribution on pin closeup'):t._('Photo by {{ author }}', 'closeup.description.photoSource', 'Photo source attribution without provider on pin closeup')),(0,p.jsx)(c.xu,{display:"inlineBlock","data-test-id":"media-attribution",children:(0,p.jsxs)(c.xv,{size:"200",inline:!0,children:[!!h&&(0,s.nk)(h,m),l&&(0,p.jsx)(c.rU,{underline:"none",href:l,rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,p.jsx)(c.xv,{size:"200",inline:!0,children:t._('(cc)', 'creative commons link text', 'creative commons link text')})},"link")]})})}function _({pinKey:e}){let{data:t}=(0,r.sr)(m,e,{type:"pin",useLegacyAdapter:e=>({mediaAttribution:e.media_attribution&&{author:e.media_attribution.author,authorUrl:e.media_attribution.author_url,ccUrl:e.media_attribution.cc_url,link:e.media_attribution.link,mediaType:e.media_attribution.media_type,providerName:e.media_attribution.provider_name}})});return t&&(0,p.jsx)(h,{pin:t})}let g=void 0!==l?l:l=n(801322);function y({pin:e}){var t,n;let i=(0,o.ZP)(),{authorUrl:l,authorName:a,url:r,providerName:d,ccUrl:u}=e.attribution||{},m=null===(t=e.attribution)||void 0===t?void 0:null===(n=t.embed)||void 0===n?void 0:n.src,{type:h,src:_,subtype:g}=e.embed||{},y=!!d&&"Unknown"!==d,v={author:(0,p.jsx)(c.xu,{display:"inlineBlock",children:(0,p.jsx)(c.rU,{underline:"none",href:l||"",rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,p.jsx)(c.xv,{inline:!0,size:"200",weight:"bold",children:a})},"author")},"author"),provider:y?(0,p.jsx)(c.xu,{marginEnd:1,display:"inlineBlock",children:(0,p.jsx)(c.rU,{underline:"always",href:r||"",rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,p.jsx)(c.xv,{inline:!0,size:"200",weight:"bold",children:d})},"provider")},"provider"):null},f=y?i._('from {{ provider }}', 'closeup.description.imageSourceWithProvider', 'Image source attribution without author on pin closeup'):null;return a&&(f=(_||m)&&"gif"!==h&&"pinstory"!==g?y?i._('Video by {{ author }} on {{ provider }}', 'closeup.description.videoSourceWithProvider', 'Video source attribution on pin closeup'):i._('Video by {{ author }}', 'closeup.description.videoSource', 'Video source attribution without provider on pin closeup'):y?i._('Photo by {{ author }} on {{ provider }}', 'closeup.description.photoSourceWithProvider', 'Photo source attribution on pin closeup'):i._('Photo by {{ author }}', 'closeup.description.photoSource', 'Photo source attribution without provider on pin closeup')),(0,p.jsx)(c.xu,{display:"inlineBlock","data-test-id":"photo-attribution",children:(0,p.jsxs)(c.xv,{size:"200",inline:!0,children:[!!f&&(0,s.nk)(f,v),u&&(0,p.jsx)(c.rU,{underline:"none",href:u,rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,p.jsx)(c.xv,{size:"200",inline:!0,children:i._('(cc)', 'creative commons link text', 'creative commons link text')})},"link")]})})}function v({pinKey:e}){let{data:t}=(0,r.sr)(g,e,{type:"pin",useLegacyAdapter:e=>({attribution:e.attribution&&{authorName:e.attribution.author_name,authorUrl:e.attribution.author_url,ccUrl:e.attribution.cc_url,embed:e.attribution.embed&&{src:e.attribution.embed.src},providerName:e.attribution.provider_name,url:e.attribution.url},embed:e.embed&&{src:e.embed.src,subtype:e.embed.subtype,type:e.embed.type}})});return t&&(0,p.jsx)(y,{pin:t})}var f=n(667294),b=n(565212),x=n(509278),k=n(643010),P=n(773285),S=n(867820),w=n(52022),A=n(413252),T=n(50286);function I({text:e}){let{isAuthenticated:t,isBot:n}=(0,u.B)(),[i,l]=(0,f.useState)(!1),{checkExperiment:a}=(0,P.F)(),r=(0,T.ZP)(),o=(0,w.Z)(),{anyEnabled:s}=a("hfp_hf_ssr_mweb",{dangerouslySkipActivation:!0}),d=a("web_hashtags_in_description_display").anyEnabled,m=(0,k.vs)(),h=s?m:(0,k.Yc)(),_=(0,f.useCallback)(()=>{i||t||((0,S.NC)("click_open_description"),(0,S.My)("desktop"===r?"pcons.dweb-more-description":"pcons.mweb-more-description"),o({action:"click",item:"more-description"})),l(!i)},[i,t,o,r]);return n?(0,p.jsx)(c.xv,{inline:!0,children:(0,x.Z)({isHashtagInDescriptionDisplayEnabled:d,text:e})}):"desktop"!==r?(0,p.jsx)(A.Z,{Wrapper:({children:e})=>(0,p.jsx)("h2",{style:{fontSize:"14px",wordWrap:"break-word",textAlign:"start"},children:e}),isExpanded:i,description:e,maxHeight:38,handleToggle:_}):(0,p.jsx)(b.Z,{isDarkMode:h,children:(0,x.Z)({isHashtagInDescriptionDisplayEnabled:d,text:e})})}function E({photoAttribution:e,text:t}){let n;let i=(0,T.ZP)(),l=(0,w.Z)(),{checkExperiment:a}=(0,P.F)(),{isAuthenticated:r}=(0,u.B)(),o=r?a("auth_closeup_redesign").anyEnabled:a("unauth_closeup_redesign").anyEnabled;return"phone"===i&&(n=o?"start":"center"),(0,p.jsxs)(c.xu,{"data-test-id":"CloseupDescriptionContainer",maxWidth:"100%",dangerouslySetInlineStyle:{__style:{textAlign:n}},children:[e,t&&(0,p.jsx)(c.xu,{"data-test-id":"main-pin-description-text",children:(0,p.jsx)(c.iP,{onTap:()=>{(0,S.My)("desktop"===i?"pcons.dweb.main-pin-description-text":"pcons.mweb.main-pin-description-text"),l({action:"click",item:"main-pin-description-text"})},children:(0,p.jsx)(c.xu,{dangerouslySetInlineStyle:{__style:{cursor:"auto"}},children:(0,p.jsx)(I,{text:t})})})})]})}let C=void 0!==a?a:a=n(882900),D=(e,t)=>{if(e){let n=e.getTime(),i=new Date().getTime();return null==t||i-n<=31536e6*t}return!1};function j({pinKey:e}){var t,n,i,l,a,c,m,h;let g;let y=(0,o.ZP)(),{isAuthenticated:f,locale:b}=(0,u.B)(),{data:x,childDataKey__DEPRECATED:k}=(0,r.sr)(C,e,{type:"pin",useLegacyAdapter:e=>({attribution:e.attribution&&{__typename:"Attribution"},closeupDescription:e.closeup_description,closeupUnifiedDescription:e.closeup_unified_description,description:e.description,mediaAttribution:e.media_attribution&&{__typename:"MediaAttribution"},richMetadata:e.rich_metadata&&{article:e.rich_metadata.article&&{datePublished:e.rich_metadata.article.date_published},description:e.rich_metadata.description,recipe:e.rich_metadata.recipe&&{__typename:"RecipeMetadata"}},richSummary:e.rich_summary&&{displayName:e.rich_summary.display_name},seoDescription:e.seo_description,seoNoindexReason:e.seo_noindex_reason,storyPinDataId:e.story_pin_data_id})});if(!x)return null;let{closeupDescription:P,closeupUnifiedDescription:S,storyPinDataId:w}=x,A=null!==(t=null===(n=x.richMetadata)||void 0===n?void 0:n.description)&&void 0!==t?t:"",T=null!==(i=null===(l=x.richMetadata)||void 0===l?void 0:null===(a=l.article)||void 0===a?void 0:a.datePublished)&&void 0!==i?i:"",I=null!==(c=null===(m=x.richSummary)||void 0===m?void 0:m.displayName)&&void 0!==c?c:"",j=x.description,F=!!x.attribution,R=!!x.mediaAttribution,L=x.seoDescription||"",z=x.seoNoindexReason||"",O=T&&new Date(T),M=f?null==S?void 0:S.trim():(0,d.Z)({storyPinDataId:w,pinDescription:j,richMetadataDescription:A,richSummaryDisplayName:I,closeupDescription:P,closeupUnifiedDescription:S,seoDescription:L,seoNoindexReason:z}),N=O&&D(O,2)&&M?(0,s.nk)(y._('{{ pinDescription }} Published on {{ date }}', 'closeup.details.descirptionWithPublishedDate', 'Pin description with publish date'),{date:function(e,t){try{return new Intl.DateTimeFormat(t,{month:"long",day:"numeric",year:"numeric",calendar:"gregory"}).format(e)}catch(t){return e?e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate():""}}(O,b),pinDescription:M}).join(""):M;return(F||R)&&(g=(0,s.nk)(M?"{{ credit }} \xb7 ":"{{ credit }}",{credit:R?(0,p.jsx)(_,{pinKey:k},"article-pin"):(0,p.jsx)(v,{pinKey:k},"article-pin"),descriptionToDisplay:N})),(0,p.jsx)(E,{photoAttribution:g,text:null!==(h=x.richMetadata)&&void 0!==h&&h.recipe?null:M})}},29066:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>eh,fL:()=>eo,xh:()=>ea});var i,l,a=n(667294),r=n(167912),o=n(240684),s=n(883119),d=n(288889),u=n(807592),c=n(561067),p=n(643010),m=n(319915),h=n(681669),_=n(898781),g=n(543972),y=n(926275),v=n(313047),f=n(623568),b=n(992750),x=n(773285),k=n(780280),P=n(947599),S=n(844974),w=n(66699),A=n(939106),T=n(50286),I=n(792606),E=n(946843),C=n(892363),D=n(435183),j=n(266224),F=n(40995),R=n(745162),L=n(358381),z=n(350948),O=n(635821),M=n(178307),N=n(44004),B=n(62409),Z=n(332215),K=n(96023),U=n(698330),H=n(571577),V=n(954063),G=n(21384),$=n(678532),W=n(238253),q=n(252417),Y=n(642639),X=n(375559),Q=n(862193),J=n(817767),ee=n(986926),et=n(394332),en=n(785893);let ei=(0,o.ZP)({resolved:{},chunkName:()=>"Reactions-ReactionAggregation",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e(15206).then(n.bind(n,142219)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return n(t)},resolve:()=>142219}),el=(0,a.lazy)(()=>n.e(7612).then(n.bind(n,607612))),ea=2,er=a.Fragment,eo=({children:e})=>{let t=(0,H.H)();return"lg"===t?(0,en.jsx)(s.Le,{top:68,children:(0,en.jsx)(s.xu,{marginStart:4,children:e})}):e},es=(0,a.lazy)(()=>n.e(55967).then(n.bind(n,55967))),ed=void 0!==i?i:i=n(350886),eu=void 0!==l?l:l=n(914715);function ec(e){let t,n;let i=(0,_.ZP)(),{commentCount:l,commentsDisabled:r,commentModule:o,isEligibleForPdp:u,isImagePinForUnauthOnTablet:h,isStoryPin:H,onClickTitleOrDomain:Q,shouldShowAggregatedComments:ee,shouldShowReactions:ed,shouldShowSEOPinInfo:eu,viewParameter:ec,viewerId:ep,pinActionBar:em,sourceUserBlockedByMe:eh,sourceUserExplicitlyFollowedByMe:e_,sourceUserFollowerCount:eg,sourceUserFullName:ey,sourceUserId:ev,sourceUserImageLargeUrl:ef,sourceUserimageMediumUrl:eb,sourceUserImageSmallUrl:ex,sourceUserIsVerifiedMerchant:ek,sourceUserUsername:eP,sourceUserVerifiedIdentityVerified:eS,pinId:ew,pinLink:eA,pinDomain:eT,pinProductPrice:eI,pinProductInStock:eE,pinReactionCounts:eC,promoterFullName:eD,hasPinProduct:ej,hasSourceUser:eF,hasOfficialUser:eR,hasLinkDomain:eL,hasNativeCreator:ez,hasOriginPinner:eO,hasPromoter:eM,hasRichMetadataArticle:eN,hasRichMetadataTutorial:eB,hasRichMetadataRecipe:eZ,hasRichMetadataRecipeCategorizedIngredients:eK,hasRichMetadataRecipeAggregateInfo:eU,hasRichMetadataProductOfferSummary:eH,hasRichSummaryProductOfferSummary:eV,richMetadataRecipeFromAggregatedData:eG,richMetadataProductName:e$,richSummaryProductName:eW,pinJoinVisualAnnotation:eq,pinJoinAnnotationsWithLinks:eY,graphqlRef:eX,isActionBarInline:eQ,setIsActionBarInline:eJ,clientTrackingParams:e0,shoppingKlpUrls:e1,storyPinKeyValueBlocks:e2,setCloseupDetailsHeight:e3,setCloseupPinLinkCreditsHeight:e8,setCloseupTitleHeight:e6,setUploadedToPinterestTextHeight:e4,setUserAttributionHeight:e5,setUserRepHeight:e7}=e,{checkExperiment:e9}=(0,x.F)(),te=(0,T.ZP)(),tt="desktop"===te,tn="phone"===te,{isAuthenticated:ti,country:tl,locale:ta,isBot:tr,regionFromIp:to}=(0,k.B)(),ts=(0,U.Tt)(),td=(0,p.vs)(),tu=u&&ti,tc=tu||!tt&&!u,tp=(0,a.useRef)(null),tm=(0,a.useRef)(null),th=(0,a.useRef)(null),t_=(0,a.useRef)(null),tg=(0,a.useRef)(null),ty=(0,a.useRef)(null),tv=(0,a.useRef)(null);(0,K.Z)(e=>{e3&&tm&&tm.current&&tm.current.offsetHeight<72&&e3(e.offsetHeight)},tp),(0,K.Z)(e=>{e8&&e8(e.offsetHeight)},th),(0,K.Z)(e=>{e6&&e6(e.offsetHeight)},t_),(0,K.Z)(e=>{e5&&e5(e.offsetHeight)},ty),(0,K.Z)(e=>{e4&&e4(e.offsetHeight)},tg),(0,K.Z)(e=>{e7&&e7(e.offsetHeight)},tv);let tf=!tt&&(!ti||tc&&eQ||!u&&e9("auth_mweb_inline_action_bar").anyEnabled);if(ti&&u)return(0,en.jsx)(eo,{children:(0,en.jsxs)(s.xu,{"data-test-id":"CloseupDetails",children:[(0,en.jsx)(s.xu,{width:"100%",paddingY:o?0:3,paddingX:2,children:(0,en.jsx)(W.Z,{onClickTitleOrDomain:Q,graphqlRef:eX,pinId:ew,inlinePinActionBar:tf?em:void 0,setIsActionBarInline:tc?eJ:void 0})}),o]})});let tb=!tt&&["no_collapse_by_default","collapse_by_default"].includes(e9(ti?"closeup_auth_mweb_collapsable_modules":"closeup_unauth_mweb_collapsable_modules").group),tx=(0,f._S)(eT)?(0,B.Fc)({i18n:i,hasRichMetadataProductOfferSummary:eH,richMetadataProductName:e$,richSummaryProductName:eW,hasRichSummaryProductOfferSummary:eV}):void 0,tk=(0,f._S)(eT)?(0,B.Fc)({i18n:i,hasRichMetadataProductOfferSummary:eH,richMetadataProductName:e$,richSummaryProductName:eW,hasRichSummaryProductOfferSummary:eV})||(0,B.Wj)({i18n:i,hasLinkDomain:eL,hasRichMetadataArticle:eN,hasRichMetadataRecipeCategorizedIngredients:eK,hasRichMetadataTutorial:eB,richMetadataRecipeFromAggregatedData:eG}):void 0,tP=!ti&&ej&&(u||tr||!e9("unauth_gate_product_pins_by_country_and_trustworthiness").anyEnabled),{pinCreditLink:tS,pinCredit:tw}=(0,B.Xe)({hasLinkDomain:eL,hasNativeCreator:ez,hasOriginPinner:eO,pinDomain:eT,sourceUserUsername:eP,sourceUserFullName:ey}),{annotationsWithLinks:tA}=(0,b.eK)({pinJoinVisualAnnotation:eq,pinJoinAnnotationsWithLinks:eY}),tT=(0,B.AH)(eA),tI=eF&&(!ti||tw&&tS),tE=ed&&!!eC&&!e9(`${ti?"auth":"unauth"}_mweb_reactions_expansion_mvp_idea_video_pin`).anyEnabled,tC=(0,y.Z)(null==ts?void 0:ts.created_at)&&!(0,Z.V0)(ts),tD=tr&&!tt&&tc&&e9("mweb_render_missing_seo_content_holdout_ff").anyEnabled,tj=tD?!tc:tr||!tc,tF=ti?e9("auth_closeup_redesign").anyEnabled:e9("unauth_closeup_redesign").anyEnabled,tR=!tt&&eu&&(0,en.jsx)(s.xu,{children:(0,en.jsx)(G.Z,{dedupeVisualAnnotations:null,pinId:ew,isMainPin:!0,isAuth:ti,pinCreditPrefix:tk,onClickTitleOrDomain:Q,graphqlRef:eX,lazyLoadAnnotations:!ti&&!tr,renderOnlyHiddenSEOContent:!tD&&tc&&tr,shoppingKlpUrls:e1})}),tL=eR&&(0,en.jsx)(s.xu,{marginBottom:2,ref:ty,children:(0,en.jsx)(L.Z,{hideFollowButton:e9("lex_follow_button").group.includes("hide_follow")||tt,justifyContent:tt?"start":"center",viewerId:ep,pinId:ew,graphqlRef:eX,seeMoreButton:tj&&tR,clientTrackingParams:e0})}),tz=!!tI&&!eR&&(0,en.jsxs)(s.xu,{flex:"grow",marginTop:tF?void 0:q.dP,"data-test-id":"CloseupUserRep",display:"flex",justifyContent:"between",alignItems:"center",width:"100%",ref:tv,children:[(0,en.jsx)(J.Z,{activateLexFollowExp:()=>e9("lex_follow_button"),blockedByMe:null!=eh&&eh,explicitlyFollowedByMe:null!=e_&&e_,followerCount:null!=eg?eg:0,fullName:null!=ey?ey:"",id:null!=ev?ev:"",imageLargeUrl:null!=ef?ef:"",imageMediumUrl:null!=eb?eb:"",imageSmallUrl:null!=ex?ex:"",isEligibleForPdp:!!u,isImagePinForUnauthOnTablet:null!=h&&h,isOnCloseup:!0,isVerifiedMerchant:null!=ek&&ek,pinId:ew,pinKey:eX,textColor:"default",type:"row",username:null!=eP?eP:"",verifiedIdentityVerified:null!=eS&&eS,viewParameter:ec,viewType:3,clientTrackingParams:e0}),tj&&tR]}),tO=tt&&(tA||[]).length>0&&(0,en.jsx)(a.Fragment,{children:(0,en.jsx)(s.xu,{paddingX:0,padding:tF?0:2,marginTop:tF?4:0,children:(0,en.jsx)(et.ZP,{dedupeVisualAnnotations:null,pinId:ew,mode:"inlineWithScrollArrows",graphqlRef:eX,shoppingKlpUrls:e1})})}),tM=tE&&(0,en.jsx)(m.Z,{name:"SafeSuspense_CloseupDetails_ReactionAggregation",children:(0,en.jsx)(P.Z,{children:(0,en.jsx)(s.xu,{alignSelf:"center",display:"flex",justifyContent:tt||tF?"start":"center",marginTop:tt?2:void 0,children:(0,en.jsx)(ei,{pinId:ew,reactionCounts:eC,viewParameter:156,viewType:3,disableModal:!ti,textSize:d.n,textWeight:"bold"})})})});eT&&eA&&(t={domain:eT,url:eA});let tN=eX?{type:"graphqlRef",data:eX}:{type:"deprecated",data:ew},tB=(e2||[]).map((e,t)=>{var n;return(0,en.jsx)(Y.Z,{categoryType:null!==(n=e.categoryType)&&void 0!==n?n:e.category_type,value:e.value,type:"compact",size:"300"},`key-val-component-${t}`)}).filter(e=>null!=e),tZ=q.dP,tK=tE||tn?q.dP:0,tU=ti?void 0:10,tH=tt?"start":"center";return tF&&(tZ=tt?4:2,tK=tE||tn?q.dP:1,tU=ti?void 0:8,n=tn,tH="start"),(0,en.jsx)(eo,{children:(0,en.jsxs)(s.xu,{"data-test-id":"CloseupDetails",ref:tp,children:[(0,en.jsxs)(s.xu,{width:"100%",marginTop:4,marginBottom:tb&&!tF?0:4,paddingX:ea,children:[!tf&&em,tn&&tL,tM,(tt||tP||tT&&(!tI||h))&&(0,en.jsx)(s.xu,{"data-test-id":"callToActionButton",display:ti||tt||h||tP?void 0:"none",marginTop:tK,ref:th,children:(0,en.jsx)(D.Z,{isImagePinForUnauthOnTablet:h,onClickTitleOrDomain:Q,pinCreditPrefix:tF?tx:tk,pinDomain:eT})}),tt&&tP&&eI&&(0,en.jsxs)(s.xu,{alignItems:"baseline",display:"flex",direction:"row",marginTop:1,children:[(0,en.jsx)(s.xv,{size:"500",children:eI}),(0,en.jsx)(s.xu,{marginStart:2,children:(0,en.jsx)(s.xv,{size:"400",children:eE?i._('In stock', 'closeup.details.productPinInStock', 'Product pin in stock'):i._('Out of stock', 'Product pin out of stock', 'Product pin out of stock')})})]}),(0,en.jsxs)(er,{children:[tn&&tz,(0,en.jsx)(s.xu,{marginTop:tF?4:q.dP,ref:t_,children:(0,en.jsx)(F.Z,{onClick:Q,hasLink:tT,lineClamp:tF?void 0:(0,R.Z)({isImagePinForUnauthOnTablet:h}),pinId:ew,graphqlRef:eX,forceSmallerHeading:n,textAlign:tH})})]}),(0,en.jsx)(er,{children:tn&&tb&&(0,en.jsx)(s.xu,{marginTop:q.dP,children:(0,en.jsx)(A.Z,{items:tB.filter(e=>""!==e),color:td?"light":"default"})})}),!tt&&eI&&(0,en.jsx)(s.xu,{display:"flex",justifyContent:tF?"start":"center",marginTop:2,marginBottom:2,children:(0,en.jsxs)(s.xv,{children:[eI," \xb7 ",eE?i._('In stock', 'closeup.details.productPinInStock', 'Product pin in stock'):i._('Out of stock', 'Product pin out of stock', 'Product pin out of stock')]})}),eZ&&eU&&!tC&&(0,en.jsx)(O.Z,{pinId:ew,graphqlRef:eX,boldText:!1,marginTop:q.dP,textSize:"300",isWideViewport:tt}),(0,en.jsx)(s.xu,{ref:tm,children:(0,en.jsx)(er,{children:(0,en.jsx)(g.Z,{options:{threshold:[1]},onVisibilityChange:tc?e=>{if(e&&e.length>0&&eJ){let{intersectionRatio:t,boundingClientRect:n}=e[0],i=n.y<0;eJ(1===t||i)}}:()=>{},children:e=>(0,en.jsx)(s.xu,{ref:e,children:(0,en.jsx)(s.xu,{marginTop:tF?tZ:q.dP,children:tP?(0,en.jsx)($.Z,{onClickTitleOrDomain:Q,pinKey:tN}):(0,en.jsx)(E.Z,{pinKey:tN})})})})})}),tf&&(0,en.jsx)(s.xu,{marginTop:tF?4:0,marginBottom:tF&&!o?4:0,children:em}),tt&&!ti&&tO,!tn&&(0,en.jsx)(s.xu,{marginTop:tF?q.dP:0,children:tz}),!tn&&(0,en.jsx)(s.xu,{marginTop:tF?8:q.dP,children:tL}),tt&&ti&&(0,en.jsx)(s.xu,{"data-test-id":"UnauthVaseFullBleedModalContainer",dangerouslySetInlineStyle:{__style:{visibility:"hidden"}},children:(0,en.jsx)(I.Z,{pinKey:tN,onClose:()=>{}})}),!tt&&eM&&(0,en.jsxs)(a.Fragment,{children:[(0,en.jsx)(s.xu,{marginTop:q.dP,children:(0,en.jsx)(s.iz,{})}),(0,en.jsxs)(s.xu,{alignItems:"center",display:"flex",justifyContent:"between",margin:2,paddingX:1,children:[(0,en.jsx)(s.xv,{inline:!0,size:"200",weight:"bold",children:i._('Promoted Pin', 'Denotes promoted pin in closeup', 'Denotes promoted pin in closeup')}),(0,en.jsx)(m.Z,{name:"SafeSuspense_CloseupDetails_PinFeedbackButton",children:(0,en.jsx)(P.Z,{children:(0,en.jsx)(es,{graphqlRef:eX,pinId:ew,promoter:null!=eD?eD:"",type:"promoted"})})})]}),(0,en.jsx)(s.iz,{})]}),!tC&&eZ&&!H&&(0,en.jsx)(V.Z,{hash:"recipe",offset:-v.DEFAULT_HEIGHT,children:(0,en.jsx)(z.ZP,{pinId:ew,graphqlRef:eX})}),!tC&&H&&(0,en.jsx)(C.Z,{graphqlRef:eX,link:t,pinId:null!=ew?ew:"",clientTrackingParams:e0}),!tb&&(0,en.jsx)(j.Z,{graphqlRef:eX,pinId:ew,inCollapsibleModulesExp:tb}),!ti&&tn&&"IN"===tl&&(ta||"").startsWith("en")&&X.N3.includes(to)&&3>=Number((0,S.qn)("indiaUnauthLocaleShowCount",0))&&(0,en.jsx)(m.Z,{name:"SafeSuspense_CloseupDetails_UnauthSwitchLanguageModal",children:(0,en.jsx)(P.Z,{children:(0,en.jsx)(el,{})})}),(0,en.jsx)(c.Z,{pinKey:tN,isDesktop:tt})]}),tt&&ee&&!ej&&(0,en.jsx)(m.Z,{name:"CommentThread",children:(0,en.jsxs)(s.xu,{paddingX:2,marginTop:tU,children:[(0,en.jsx)(s.X6,{size:"400",accessibilityLevel:2,children:l&&!r?(0,w.Z)(i.ngettext('{{ count }} Comment', '{{ count }} Comments', l, 'desktopPinCloseup.sectionTitle.commentsCountLabel', 'Comments on a Pin. count: number of comments'),{count:l.toString()}):i._('Comments', 'desktopPinCloseup.sectionTitle', 'Title of comments section')}),(0,en.jsx)(N.Z,{isReadOnly:!0,pinKey:tN,pinId:ew,viewParameter:ec}),!tr&&!r&&(0,en.jsx)(M.Z,{isStoryPin:!1,viewParameter:ec})]})}),!tt&&o]})})}let ep=e=>{var t,n,i,l,a,o,s,d,u,c,p,m,h,_,g,y,v,f,b,x,P,S,w,A,T,I,E,C,D,j,F,R,L,z,O,M,N,B,Z,K,U;let H,V;let G=(0,ee.Z)(e),$=(0,Q.Z)(e),W=(0,r.useFragment)(ed,e.pinner),q=(0,r.useFragment)(ed,e.nativeCreator),Y=(0,r.useFragment)(ed,null===(t=e.linkDomain)||void 0===t?void 0:t.officialUser),X=(0,r.useFragment)(ed,e.originPinner),J=(null===(n=e.pinJoin)||void 0===n?void 0:n.visualAnnotation)||[],et=(null===(i=e.pinJoin)||void 0===i?void 0:i.shoppingKlpUrls)||[],en=e.promoter&&!e.isDownstreamPromotion?e.promoter:null,ei=null===(l=e.richMetadata)||void 0===l?void 0:null===(a=l.products)||void 0===a?void 0:a[0],el=null===(o=e.richSummary)||void 0===o?void 0:null===(s=o.products)||void 0===s?void 0:s[0],ea=(null===(d=e.aggregatedPinData)||void 0===d?void 0:d.commentCount)||0,er=(null===(u=e.aggregatedPinData)||void 0===u?void 0:null===(c=u.didItData)||void 0===c?void 0:c.imagesCount)||0,{isAuthenticated:eo}=(0,k.B)();H=q||(e.linkDomain?Y:X||W),eo||H||(H=W);let es=!!e.closeupAttribution;return ei&&ei.name&&ei.offerSummary&&(V=ei.offerSummary),!V&&el&&el.name&&el.offerSummary&&(V=el.offerSummary),{commentCount:ea+er,commentsDisabled:e.commentsDisabled,closeupUnifiedDescription:e.closeupUnifiedDescription,hasLinkDomain:!!e.linkDomain,hasNativeCreator:!!e.nativeCreator,hasOfficialUser:es,hasOriginPinner:!!e.originPinner,hasPinProduct:!!V,hasPromoter:!!en,hasRichMetadataArticle:!!(null!==(m=e.richMetadata)&&void 0!==m&&m.article),hasRichMetadataProductOfferSummary:!!(null!=ei&&ei.offerSummary),hasRichMetadataRecipe:!!(null!==(h=e.richMetadata)&&void 0!==h&&h.recipe),hasRichMetadataRecipeAggregateInfo:!!(null!==(_=e.richMetadata)&&void 0!==_&&null!==(g=_.recipe)&&void 0!==g&&g.displayCookTime)||!!(null!==(y=e.richMetadata)&&void 0!==y&&null!==(v=y.recipe)&&void 0!==v&&v.servingsSummary)||!!(null!==(f=e.richMetadata)&&void 0!==f&&null!==(b=f.recipe)&&void 0!==b&&b.aggregateRating),hasRichMetadataRecipeCategorizedIngredients:!!(null!==(x=e.richMetadata)&&void 0!==x&&null!==(P=x.recipe)&&void 0!==P&&P.categorizedIngredients),hasRichMetadataTutorial:!!(null!==(S=e.richMetadata)&&void 0!==S&&S.tutorial),hasRichSummaryProductOfferSummary:!!(null!=ei&&ei.offerSummary),hasSourceUser:!!H,isEligibleForPdp:e.isEligibleForPdp,pinDomain:e.domain,pinJoinAnnotationsWithLinks:$,pinJoinVisualAnnotation:J,pinLink:e.link,pinProductInStock:null===(w=V)||void 0===w?void 0:w.inStock,pinProductPrice:null===(A=V)||void 0===A?void 0:A.price,pinReactionCounts:G,promoterFullName:null==en?void 0:en.fullName,richMetadataProductName:null==ei?void 0:ei.name,richMetadataRecipeFromAggregatedData:null===(T=e.richMetadata)||void 0===T?void 0:null===(I=T.recipe)||void 0===I?void 0:I.fromAggregatedData,richSummaryProductName:null==el?void 0:el.name,shouldShowAggregatedComments:e.isEligibleForAggregatedComments,shoppingKlpUrls:et,sourceUserBlockedByMe:null===(E=H)||void 0===E?void 0:E.blockedByMe,sourceUserExplicitlyFollowedByMe:null===(C=H)||void 0===C?void 0:C.explicitlyFollowedByMe,sourceUserFollowerCount:null===(D=H)||void 0===D?void 0:D.followerCount,sourceUserFullName:null===(j=H)||void 0===j?void 0:j.fullName,sourceUserId:null===(F=H)||void 0===F?void 0:F.entityId,sourceUserImageLargeUrl:null===(R=H)||void 0===R?void 0:R.imageLargeUrl,sourceUserimageMediumUrl:null===(L=H)||void 0===L?void 0:L.imageMediumUrl,sourceUserImageSmallUrl:null===(z=H)||void 0===z?void 0:z.imageSmallUrl,sourceUserIsVerifiedMerchant:null===(O=H)||void 0===O?void 0:O.isVerifiedMerchant,sourceUserUsername:null===(M=H)||void 0===M?void 0:M.username,sourceUserVerifiedIdentityVerified:null===(N=H)||void 0===N?void 0:null===(B=N.verifiedIdentity)||void 0===B?void 0:B.verified,storyPinKeyValueBlocks:null===(Z=e.storyPinData)||void 0===Z?void 0:null===(K=Z.metadata)||void 0===K?void 0:null===(U=K.basics)||void 0===U?void 0:U.keyValueBlocks}},em=e=>{var t,n,i,l,a,r,o,s,d,c,p,m,h,_,g,y,v,f,b,x,P,S,w,A,T,I,E,C,D,j,F,R,L,z;let O,M;let{isAuthenticated:N}=(0,k.B)(),Z=(0,U.mN)();if(!e)return null;let K=(null===(t=e.aggregated_pin_data)||void 0===t?void 0:t.comment_count)||0,H=(null===(n=e.aggregated_pin_data)||void 0===n?void 0:null===(i=n.did_it_data)||void 0===i?void 0:i.images_count)||0,V=e.promoter&&!e.is_downstream_promotion?e.promoter:null,G=null===(l=e.rich_metadata)||void 0===l?void 0:null===(a=l.products)||void 0===a?void 0:a[0],$=null===(r=e.rich_summary)||void 0===r?void 0:null===(o=r.products)||void 0===o?void 0:o[0],{link_domain:W,native_creator:q,origin_pinner:Y,pinner:X}=e||{},Q=(0,B.wS)(W,q,Y,X);N||Q||(Q=X),Q&&(O="string"==typeof Q?Z(Q):Q);let J=!!e.closeup_attribution;return G&&G.name&&G.offer_summary&&(M=G.offer_summary),!M&&$&&$.name&&$.offer_summary&&(M=$.offer_summary),{commentCount:K+H,commentsDisabled:e.comments_disabled,hasLinkDomain:!!e.link_domain,hasNativeCreator:!!e.native_creator,hasOfficialUser:J,hasOriginPinner:!!e.origin_pinner,hasPinProduct:!!M,hasPromoter:!!V,hasRichMetadataArticle:!!(null!==(d=e.rich_metadata)&&void 0!==d&&d.article),hasRichMetadataProductOfferSummary:!!(null!=G&&G.offer_summary),hasRichMetadataRecipe:!!(null!==(c=e.rich_metadata)&&void 0!==c&&c.recipe),hasRichMetadataRecipeCategorizedIngredients:!!(null!==(p=e.rich_metadata)&&void 0!==p&&null!==(m=p.recipe)&&void 0!==m&&m.categorized_ingredients),hasRichMetadataTutorial:!!(null!==(h=e.rich_metadata)&&void 0!==h&&h.tutorial),hasRichSummaryProductOfferSummary:!!(null!=G&&G.offer_summary),hasSourceUser:!!Q,isEligibleForPdp:e.is_eligible_for_pdp,pinDomain:e.domain,pinJoinAnnotationsWithLinks:null===(_=e.pin_join)||void 0===_?void 0:_.annotations_with_links,pinJoinVisualAnnotation:null===(g=e.pin_join)||void 0===g?void 0:g.visual_annotation,pinLink:e.link,pinProductInStock:null===(y=M)||void 0===y?void 0:y.in_stock,pinProductPrice:M&&(0,u.Z)({maxPrice:M.max_price,minPrice:M.min_price,price:M.price}),pinReactionCounts:e.reaction_counts,promoterFullName:null==V?void 0:V.full_name,richMetadataProductName:null==G?void 0:G.name,richMetadataRecipeFromAggregatedData:null===(v=e.rich_metadata)||void 0===v?void 0:null===(f=v.recipe)||void 0===f?void 0:f.from_aggregated_data,richSummaryProductName:null==$?void 0:$.name,shouldShowAggregatedComments:e.is_eligible_for_aggregated_comments,shoppingKlpUrls:(null===(b=e.pin_join)||void 0===b?void 0:b.shopping_klp_urls)||[],sourceUserBlockedByMe:null===(x=O)||void 0===x?void 0:x.blocked_by_me,sourceUserExplicitlyFollowedByMe:null===(P=O)||void 0===P?void 0:P.explicitly_followed_by_me,sourceUserFollowerCount:null===(S=O)||void 0===S?void 0:S.follower_count,sourceUserFullName:null===(w=O)||void 0===w?void 0:w.full_name,sourceUserId:null===(A=O)||void 0===A?void 0:A.id,sourceUserImageLargeUrl:null===(T=O)||void 0===T?void 0:T.image_large_url,sourceUserimageMediumUrl:null===(I=O)||void 0===I?void 0:I.image_medium_url,sourceUserImageSmallUrl:null===(E=O)||void 0===E?void 0:E.image_small_url,sourceUserIsVerifiedMerchant:null===(C=O)||void 0===C?void 0:C.is_verified_merchant,sourceUserUsername:null===(D=O)||void 0===D?void 0:D.username,sourceUserVerifiedIdentityVerified:null===(j=O)||void 0===j?void 0:null===(F=j.verified_identity)||void 0===F?void 0:F.verified,storyPinKeyValueBlocks:null===(R=e.story_pin_data)||void 0===R?void 0:null===(L=R.metadata)||void 0===L?void 0:null===(z=L.basics)||void 0===z?void 0:z.key_value_blocks}};function eh({graphqlRef:e,pinId:t,...n}){let{data:i,childDataKey__DEPRECATED:l}=(0,h.HF)(eu,e?{type:"graphqlRef",data:e}:{type:"deprecated",data:t},{type:"pin",useGraphQLAdapter:ep,useLegacyAdapter:em});return!!i&&(0,en.jsx)(ec,{...n,...i,pinId:t,graphqlRef:"graphqlRef"===l.type?l.data:null})}},892363:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});var i,l=n(667294),a=n(167912),r=n(883119),o=n(485710),s=n(288889),d=n(319530),u=n(444445),c=n(898781),p=n(773285),m=n(780280),h=n(50286),_=n(29066),g=n(706443),y=n(350118),v=n(785893);let f=void 0!==i?i:i=n(623861);function b({listBlocks:e,templateType:t}){let n=(0,c.ZP)(),i=(0,h.ml)(),{checkExperiment:a}=(0,p.F)(),{isAuthenticated:y}=(0,m.B)(),f=i&&["no_collapse_by_default","collapse_by_default"].includes(a(y?"closeup_auth_mweb_collapsable_modules":"closeup_unauth_mweb_collapsable_modules").group),b=new Map([[null,n._('Notes', 'Closeup.CloseupDetailsBasicsLayout.notesLayoutTitle', 'Label for button to expand notes Story Pin details')],[1,n._('Ingredients', 'Closeup.CloseupDetailsBasicsLayout.recipeLayoutTitle', 'Label for button to expand ingredients Story Pin details')],[2,n._('Supplies', 'Closeup.CloseupDetailsBasicsLayout.diyHomeLayoutTitle', 'Label for button to expand supplies Story Pin details')]]);return(0,v.jsx)(r.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:e&&e.length>0&&(0,v.jsxs)(r.xu,{marginTop:4,display:"flex",direction:"column",dangerouslySetInlineStyle:{__style:{rowGap:16}},children:[f&&(0,v.jsx)(g.Z,{marginStart:u.D6+_.xh}),(0,v.jsx)(o.Z,{heading:b.get(t),children:(0,v.jsx)(({children:e})=>f?(0,v.jsx)(r.kC,{direction:"column",gap:4,children:e}):(0,v.jsx)(d.Z,{children:e}),{children:e.map((e,t)=>{var n;let i=`${e.heading||"empty"}-${t}-listHeading`;return(0,v.jsxs)(l.Fragment,{children:[(0,v.jsx)(r.xu,{paddingY:f?0:2,marginTop:f?0:2}),(0,v.jsx)(r.xv,{size:s.n,weight:"bold",children:e.heading}),(null!==(n=e.blocks)&&void 0!==n?n:[]).map((t,n)=>{let i=`item-${n}-${e.heading||"empty"}`;return(0,v.jsx)(l.Fragment,{children:(0,v.jsx)(r.xu,{marginBottom:1,children:(0,v.jsxs)(r.xv,{size:s.n,children:["• ",t.text?t.text:""]})})},i)})]},i)})})})]})})}function x({pinId:e,graphqlRef:t,...n}){var i,l,a,r,o;let s=(0,y.S6)()(e),d=(null==s?void 0:null===(i=s.story_pin_data)||void 0===i?void 0:null===(l=i.metadata)||void 0===l?void 0:l.basics)||{},{key_value_blocks:u,list_blocks:c}=d;return(0,v.jsx)(b,{...n,pinId:e,keyValueBlocks:u,listBlocks:c,title:null!==(a=null==s?void 0:s.title)&&void 0!==a?a:"",templateType:null==s?void 0:null===(r=s.story_pin_data)||void 0===r?void 0:null===(o=r.metadata)||void 0===o?void 0:o.template_type})}function k({pinId:e,graphqlRef:t,...n}){var i,l,r,o,s;let d=(0,a.useFragment)(f,t),u=(null==d?void 0:null===(i=d.storyPinData)||void 0===i?void 0:null===(l=i.metadata)||void 0===l?void 0:l.basics)||{};return(0,v.jsx)(b,{...n,pinId:e,listBlocks:u.listBlocks,keyValueBlocks:u.keyValueBlocks,graphqlRef:d,title:null!==(r=null==d?void 0:d.title)&&void 0!==r?r:"",templateType:null==d?void 0:null===(o=d.storyPinData)||void 0===o?void 0:null===(s=o.metadata)||void 0===s?void 0:s.templateType})}function P(e){return e.graphqlRef?(0,v.jsx)(k,{graphqlRef:e.graphqlRef,...e}):(0,v.jsx)(x,{...e})}},398789:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var i=n(667294),l=n(883119),a=n(898781),r=n(773285),o=n(523657),s=n(780280),d=n(700380),u=n(50286),c=n(411465),p=n(398061),m=n(616550),h=n(667679),_=n(622096),g=n(867820),y=n(52022),v=n(785893);function f({setShowClickthroughOverlay:e,isEligibleForPdp:t,isEligibleForDesktopSocialInviteOverlay:n,inviterFirstName:o,imageSignature:s,pinId:d}){let c=(0,a.ZP)(),p=(0,y.Z)(),f=(0,h.Z)(),{checkExperiment:b}=(0,r.F)(),x=(0,i.useRef)(),k=(0,u.ZP)(),P="desktop"===k,S=o&&n,w=P&&b("dweb_unauth_main_pin_visual_search_v2").group,A="enabled_2_no_upsell"===w||"enabled_rollout"===w||"enabled_1_nav_upsell_post_land"===w,T=S&&(c._('Sign up to join {{ name }} on Pinterest', 'pin.closeup.wash.desktop.shareNotification', 'Clickthrough overlay for desktop users that a sender ({{ name }}) shared a Pin to them, name: username')).replace("{{ name }}",o),I=A?c._('See something you like? Tap to search inside this image', 'web.unauth.plp.clickable_wash.header', 'Copy shown on hover to sign up for an account'):c._('Click to make the most out of this idea with a free account', 'web.unauth.plp.clickable_wash.header', 'Copy shown on hover to sign up for an account'),E=c._('Tap to make the most out of this idea with a free account', 'mweb.unauth.plp.clickable_wash.header', 'Pin clickable wash header text'),C=(0,m.useHistory)();return(0,v.jsx)(l.iP,{onMouseEnter:()=>{S&&(0,g.My)("dweb.main_pin.social.wash.view"),(0,g.My)("dweb.pin.wash.view")},onMouseLeave:()=>{S&&(0,g.My)("dweb.main_pin.social.wash.dismiss"),(0,g.My)("dweb.pin.wash.dismiss")},onTap:({event:e})=>{if(P){if(e.preventDefault(),p({action:"click",item:"pin-image"}),n&&o&&(0,g.My)("dweb.main_pin.social.wash.click"),A){let e=`/pin/${d}/visual-search/?`;s&&(e+=`imageSignature=${s}`),C.push(e),_.Z.setItem("VISUAL_SEARCH_SOURCE","MAIN_PIN_WASH")}else(0,g.My)("dweb_unauth_main_pin_image_click.signup_modal.show"),f({reason:"UPSELL_LOGIN_OR_SIGNUP",attributionLabel:"click_closeup",desktopOptions:{modalType:"signup",modalOptions:{source:"defaultSource",container:"pinWash"}}});t&&(0,g.My)("unauth.pdp.pin.img.click",{device:k})}},children:(0,v.jsxs)(l.xu,{zIndex:new l.Ry(2),children:[(0,v.jsx)(l.xu,{top:!0,bottom:!0,left:!0,right:!0,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:n?"center":void 0,direction:"column",position:"absolute",ref:x,"data-test-id":"main-pin-hover-overlay",children:(0,v.jsx)(l.xu,{paddingY:10,display:"flex",alignItems:"center",maxWidth:A?260:240,direction:"column",children:(0,v.jsx)(l.xu,{marginTop:8,children:(0,v.jsx)(l.X6,{size:S?"500":"400",align:"center",color:"light",children:P?T||I:E})})})}),!P&&(0,v.jsx)(l.xu,{position:"absolute",top:!0,right:!0,marginTop:4,marginEnd:4,children:(0,v.jsx)(l.hU,{icon:"cancel",iconColor:"white",onClick:({event:t})=>{t.stopPropagation(),e&&(e(!1),(0,g.My)("main.pin.wash.cancel"))},accessibilityLabel:c._('Close pin clickable wash', 'mweb.unauth.plp.clickable_wash.close_button', 'Close button'),size:"md"})})]})})}var b=n(691720),x=n(872482);let k=e=>{var t;let n=(0,a.ZP)(),{alt:m,clickthroughOverlayOptions:h,color:_,isFlashlightPage:g,naturalHeight:y,naturalWidth:k,placeholder:P,pinImageResizePercent:S=100,pwtElementTimingId:w,pwtSurfaceContext:A,setShowClickthroughOverlay:T,showSpinner:I,src:E,stickyFooter:C,isEligibleForPdp:D,pinId:j,imageSignature:F}=e,R=(0,c.Z)(),{checkExperiment:L}=(0,r.F)(),z=!R,{isAuthenticated:O}=(0,s.B)(),M=(0,u.ZP)(),N="desktop"===M,B=O&&!N&&L("auth_mweb_inline_action_bar").anyEnabled,Z=(0,i.useRef)(),[K,U]=(0,i.useState)(!z||!!E&&!!P&&P===E),H=(0,i.useRef)(""),V=()=>{A&&A.markConstraintComplete("PinPageMainImageRendered")};(0,i.useEffect)(()=>{let e=new Image;e.onload=()=>U(!0),e.src=E},[]);let G=(0,i.useRef)(null===(t=(0,x.a)())||void 0===t?void 0:t.setHasScrolledPastMainContent);(0,i.useEffect)(()=>{let e=(0,d.Z)(()=>{if(Z.current){var t;let n=window.scrollY>Z.current.offsetTop+Z.current.offsetHeight;null===(t=G.current)||void 0===t||t.call(G,n),n&&window.removeEventListener("scroll",e)}},10);window.addEventListener("scroll",e)},[]);let[$,W]=(0,i.useState)();(0,i.useEffect)(()=>{Z.current&&W(Z.current.scrollHeight)},[]);let q=!g&&"tablet"===M,Y=z?(0,v.jsx)(o.Z,{alt:m,color:_,elementTiming:w,naturalHeight:y,naturalWidth:k,src:P,onLoad:V}):null;return(0,v.jsxs)(l.xu,{"data-test-id":"pin-closeup-image",dangerouslySetInlineStyle:{__style:{transition:100===S?"":"width 500ms ease-in-out"}},maxHeight:"100%",minHeight:100===S?$:void 0,maxWidth:"tablet"===M?b.g6:void 0,overflow:C?void 0:"hidden",position:"relative",width:g||"phone"===M?`${S}%`:N?508:b.Hg,rounding:g||"phone"===M?0:6,ref:Z,marginTop:"tablet"===M&&B?12:0,children:[!O&&h&&"enabled_3_no_wash_upsell_post_land"!==L("dweb_unauth_main_pin_visual_search_v2").group&&(0,v.jsx)(p.Z,{isImagePinForUnauthOnTablet:!1,children:(0,v.jsx)(f,{setShowClickthroughOverlay:T,inviterFirstName:H.current,isEligibleForPdp:D,imageSignature:F||"",pinId:j||""})}),Y&&(q?(0,v.jsx)(l.xu,{rounding:6,overflow:"hidden",children:Y}):Y),(0,v.jsx)(l.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{opacity:K?1:0,transition:K&&!N?"opacity .5s ease-in-out":void 0,backgroundColor:_}},left:!0,position:z?"absolute":"relative",right:!0,rounding:q?6:5,overflow:q?"hidden":void 0,top:!0,children:z?(0,v.jsx)(l.Ee,{alt:m,naturalHeight:y,naturalWidth:k,src:E}):(0,v.jsx)(o.Z,{alt:m,color:_,elementTiming:w,naturalHeight:y,naturalWidth:k,src:E,onLoad:V})}),I&&(0,v.jsx)(l.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{opacity:K?0:1,transition:K?"opacity .5s ease-in-out":void 0}},display:"flex",justifyContent:"center",left:!0,position:"absolute",right:!0,top:!0,children:!K&&(0,v.jsx)(l.kC,{alignItems:"center",justifyContent:"start",children:(0,v.jsx)(l.$j,{accessibilityLabel:n._('Loading image', 'Loading higher resolution image', 'Loading higher resolution image'),show:!0})})}),C]})}},502177:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var i=n(667294),l=n(407043),a=n(123159),r=n(869636),o=n(773285),s=n(50286),d=n(807609),u=n(19121),c=n(785893);let p=({isEligibleForPinImageResizeToBody:e,isEligibleForPinImageResizeToTitle:t,pinId:n})=>{let l;let{checkExperiment:s}=(0,o.F)(),{viewExperience:d}=(0,a.M)(),u=(0,r.Z)(1000511,{pin_id:n}),c=u&&u.experience&&505784===u.experience.experience_id;return(0,i.useEffect)(()=>{c&&d(1000511,505784)},[c,d]),c?(l="",t&&(l=s("mweb_pin_closeup_resize_image").group),!l&&e&&(l=s("mweb_pin_closeup_resize_image_body").group),l):""};function m({children:e,originalPinImageHeight:t,originalPinImageWidth:n,pinId:i,setIsEligibleToShowInlineActionBar:l}){let a=(0,s.ml)(),{checkExperiment:r}=(0,o.F)(),{isAuth:d}=(0,u.Z)(),{group:p}=r("mweb_pin_closeup_resize_image",{dangerouslySkipActivation:!0}),{group:m}=r("mweb_pin_closeup_resize_image_body",{dangerouslySkipActivation:!0});return a&&d&&(p||m)?(0,c.jsx)(h,{originalPinImageHeight:t,originalPinImageWidth:n,pinId:i,setIsEligibleToShowInlineActionBar:l,children:e}):e({pinImageResizePercents:{pinImageResizePercentForShowBodyVariant:100,pinImageResizePercentForShowTitleVariant:100}})}function h({children:e,originalPinImageHeight:t=1,originalPinImageWidth:n=1,pinId:a,setIsEligibleToShowInlineActionBar:r}){let o=(0,d.Z)(),{logContextEvent:s}=(0,l.v)(),u=o?820:window.innerWidth,c=o?1180:window.innerHeight,m=u/n*t,[h,_]=(0,i.useState)(""),[g,y]=(0,i.useState)(0),[v,f]=(0,i.useState)(0),[b,x]=(0,i.useState)(0),[k,P]=(0,i.useState)(0),[S,w]=(0,i.useState)(0),[A,T]=(0,i.useState)(0),[I,E]=(0,i.useState)(!1),[C,D]=(0,i.useState)(!1),[j,F]=(0,i.useState)(m),[R,L]=(0,i.useState)(m);(0,i.useEffect)(()=>{if(g){let e=c-g-86;F(e),E(m>e)}let e=v?b>33?141:138:!v&&b>33?134:b+126,t=c-e-v-k-S-A;t<m&&(L(t),D(m>t))},[g,b,v,m,k,S,A,c]);let z=p({isEligibleForPinImageResizeToBody:I,isEligibleForPinImageResizeToTitle:C,pinId:a});return(0,i.useLayoutEffect)(()=>{z?(s({event_type:15046,component:13283}),r(!0)):r(!1)},[s,z,r]),(0,i.useEffect)(()=>{h!==a&&(_(a),F(m),L(m))},[h,m,a]),e({pinImageResizePercents:{pinImageResizePercentForShowTitleVariant:C?R/m*100:100,pinImageResizePercentForShowBodyVariant:I?j/m*100:100},resizePinImageExperimentGroup:z,setCloseupDetailsHeight:y,setCloseupPinLinkCreditsHeight:f,setCloseupTitleHeight:x,setUploadedToPinterestTextHeight:P,setUserAttributionHeight:w,setUserRepHeight:T})}},160026:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var i,l=n(167912),a=n(883119),r=n(898781),o=n(350118),s=n(785893);let d=void 0!==i?i:i=n(887883),u=({embedsrc:e,pinImgSrc:t})=>{let n=(0,r.ZP)(),i={};return e&&e.includes("youtube")&&e.includes("/embed/")&&t&&(i.background=`url("${t}")`,i.backgroundSize="cover",i.backgroundPosition="center"),(0,s.jsx)(a.xu,{column:12,dangerouslySetInlineStyle:{__style:{paddingBottom:"50%",background:i.background,backgroundSize:i.backgroundSize,backgroundPosition:i.backgroundPosition}},overflow:"hidden",position:"relative",rounding:2,children:(0,s.jsx)("iframe",{allowFullScreen:!0,frameBorder:0,src:null==e?void 0:e.replace("http://","https://"),style:{width:"100%",height:"100%",position:"absolute",border:0},title:n._('Embedded content', 'Embedded iframe accessibility title', 'Embedded iframe accessibility title')})})},c=({graphqlRef:e})=>{var t;let n=(0,l.useFragment)(d,e),{embed:i,imageSpec_736x:a}=n,r=null!==(t=null==a?void 0:a.url)&&void 0!==t?t:"";return(0,s.jsx)(u,{embedsrc:null==i?void 0:i.src,pinImgSrc:r})},p=({pinId:e})=>{var t;let n=(0,o.S6)()(e),{embed:i,images:l}=null!=n?n:Object.freeze({});return(0,s.jsx)(u,{embedsrc:null==i?void 0:i.src,pinImgSrc:l?null===(t=l["736x"])||void 0===t?void 0:t.url:void 0})};function m({graphqlRef:e,pinId:t}){return e?(0,s.jsx)(c,{graphqlRef:e}):(0,s.jsx)(p,{pinId:t})}},775029:(e,t,n)=>{"use strict";n.d(t,{Z:()=>et});var i,l,a,r=n(667294),o=n(702664),s=n(167912),d=n(616550),u=n(240684),c=n(883119),p=n(787067),m=n.n(p),h=n(385740),_=n(780679),g=n(444445),y=n(623568),v=n(773285),f=n(276602),b=n(780280),x=n(430323),k=n(50286),P=n(49895),S=n(29066),w=n(160026),A=n(224229),T=n(417931),I=n(538232),E=n(697354),C=n(856306),D=n(583281),j=n(613166),F=n(885149),R=n(108712),L=n(350118),z=n(571577),O=n(487258),M=n(61764),N=n(785893);let B=(0,u.ZP)({resolved:{},chunkName:()=>"CloseupVideo",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e(91564).then(n.bind(n,996998)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return n(t)},resolve:()=>996998}),Z=(0,u.ZP)({resolved:{},chunkName:()=>"StoryPinCloseupBodyOnDesktop",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e(7620),n.e(29164)]).then(n.bind(n,239596)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return n(t)},resolve:()=>239596}),K=(0,u.ZP)({resolved:{},chunkName:()=>"StoryPinCloseupDetailsOnDesktop",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e(7620).then(n.bind(n,413911)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return n(t)},resolve:()=>413911}),U=(0,u.ZP)({resolved:{},chunkName:()=>"StoryPinCloseupBodyOnMobile",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e(34258).then(n.bind(n,485886)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return n(t)},resolve:()=>485886}),H=(0,u.ZP)({resolved:{},chunkName:()=>"SEODebugModule",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e(91576).then(n.bind(n,243155)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return n(t)},resolve:()=>243155}),V=(0,u.ZP)({resolved:{},chunkName:()=>"packages-rich-snippet-LeafSnippet",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e(36e3).then(n.bind(n,592979)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return n(t)},resolve:()=>592979}),G=void 0!==i?i:i=n(774598),$=void 0!==l?l:l=n(315522),W=void 0!==a?a:a=n(562005),q=({setIsShowingCloseupDetailsSuspenseFallback:e})=>((0,r.useEffect)(()=>(e(!0),()=>e(!1)),[e]),null),Y=({children:e,queryRef:t})=>{var n;return e((0,s.useFragment)($,null===(n=(0,s.usePreloadedQuery)(m(),t).v3GetPinQuery)||void 0===n?void 0:n.data))},X=({children:e,fallback:t,queryRef:n})=>n?(0,N.jsx)(r.Suspense,{fallback:t,children:(0,N.jsx)(Y,{queryRef:n,children:t=>t&&e(t)})}):e(null);function Q({actionBarIsMinifiedToMainPinImage:e,clickthrough:t,closeupIsFirstPageInHistoryStack:n,commentModule:i,embedSrc:l,embedSubtype:a,embedType:u,graphqlRefs:p,hasImages:m,hasProductAdditionalImages:C,shouldRenderAsStoryPinVideo:L,isActionBarInline:G,isEligibleForPdp:$,isImagePinForUnauthOnTablet:Y,isSendPinModalOpen:Q,isVideoPin:J,onMoreButtonClick:ee,onSendPin:et,pinActionBar:en,pinCloseupExperience:ei,pinId:el,pinImageLargeUrl:ea,pinImageResizePercents:er={},pinLink:eo,pinMobileLink:es,pinnedToBoardId:ed,pinTrackedLink:eu,resizePinImageExperimentGroup:ec="",setCloseupDetailsHeight:ep,setCloseupPinLinkCreditsHeight:em,setCloseupTitleHeight:eh,setIsActionBarInline:e_,setIsShowingCloseupDetailsSuspenseFallback:eg,setUploadedToPinterestTextHeight:ey,setUserAttributionHeight:ev,setUserRepHeight:ef,shouldShowReactions:eb,shouldShowSEOPinInfo:ex,viewerId:ek}){var eP;let eS=null==p?void 0:p.pageRef,{isAuthenticated:ew,isBot:eA}=(0,b.B)(),{seoDebug:eT}=(0,o.useSelector)(({session:e})=>e),{clientTrackingParams:eI,isStoryPin:eE,viewParameter:eC,shouldRenderAsStoryPin:eD}=(0,I.R)(),ej=(0,d.useLocation)(),eF=(0,z.H)(),eR=(0,f.E)(),eL=(0,k.HG)(),{viewType:ez}=(0,h.SU)(),{checkExperiment:eO}=(0,v.F)(),eM=!eL&&eO(ew?"closeup_auth_mweb_remove_streams":"closeup_unauth_mweb_remove_streams").anyEnabled,[eN,eB]=(0,r.useState)(!1),[eZ,eK]=(0,r.useState)(!0),eU=(0,_.g)(),eH=null==eU?void 0:eU.pinLinkClickHandler,eV=ec.includes("peek_related_pins"),eG=ec.includes("peek_title"),e$=ec.includes("background"),eW=ec.includes("expand_button"),{pinImageResizePercentForShowBodyVariant:eq=100,pinImageResizePercentForShowTitleVariant:eY=100}=er,eX=()=>{t(),eH&&eH()},eQ=(0,j.Z)(),eJ=()=>eQ({linkType:es&&"mobile"||eu&&"tracked"||eo&&"external"||"original",viewParameter:eC}),e0=(0,o.useDispatch)(),e1=(0,o.useSelector)(({pinNavContext:e})=>(null==e?void 0:e.pinId)!==el?{}:e,(e,t)=>(null==e?void 0:e.pinId)===(null==t?void 0:t.pinId));(0,r.useEffect)(()=>{null!=e1&&e1.pinId&&e1.pinId!==el&&e0((0,R.H)())},[]);let e2=(0,s.useFragment)(W,null==p?void 0:p.storyPinRef);return(0,N.jsxs)(T.Z,{imageLargeUrl:ea,isVideoPin:J,pinId:el,children:[eT&&eZ&&(0,N.jsx)(H,{entityId:el,entityType:"pin",setShowSeoDebugModule:eK}),e&&(0,N.jsx)(D.Z,{onMoreButtonTap:ee,onSendButtonTap:et}),eD?(0,N.jsxs)(r.Fragment,{children:[eL?(0,N.jsx)(Z,{pinId:el,graphqlRef:e2,clientTrackingParams:eI,pinActionBar:en}):(0,N.jsx)(U,{clientTrackingParams:eI,pinId:el,pinCloseupExperience:ei,pinnedToBoardId:ed,viewParameter:eC,viewType:3,graphqlRef:e2}),(0,N.jsx)(X,{queryRef:null==p?void 0:p.detailRef,children:e=>!eL&&!Y&&(0,N.jsx)(S.ZP,{pinId:el,isStoryPin:!0,onClickTitleOrDomain:ew?eJ:eX,shouldShowReactions:eb,shouldShowSEOPinInfo:ex,viewParameter:eC,graphqlRef:e,isActionBarInline:G||!!ec,setIsActionBarInline:e_,clientTrackingParams:eI})})]}):(0,N.jsx)(P.Z,{isShowingBreadcrumbs:!ew&&!(eE&&!eL),sideBySideOptions:("lg"===eF||eL)&&(ew||!ew&&"enabled_3_no_wash_upsell_post_land"!==eO("dweb_unauth_main_pin_visual_search_v2").group)?{mainImageEventHandlers:J?void 0:eL?{onMouseEnter:()=>{eB(!0)},onMouseLeave:()=>{eB(!1)}}:{onTouch:e=>{e.stopPropagation(),e.preventDefault(),eJ()}}}:null,media:(0,N.jsx)(x.Z,{clientTrackingParams:eI,component:J?179:85,viewParameter:eC,children:J?(0,N.jsx)(B,{isAuthenticated:ew,isFirstPageInHistoryStack:n,isSendPinModalOpen:Q,onSendPin:et,pinId:el,pinKey:eS?{type:"graphqlRef",data:eS}:{type:"deprecated",data:el},handleVideoTimeChange:e=>{e0((0,R.k)({pinId:el,video:{elapsedTime:e}}))},startTimeAt:null==e1?void 0:null===(eP=e1.video)||void 0===eP?void 0:eP.elapsedTime}):(0,y.cL)({embedSrc:l,embedSubtype:a,embedType:u})?(0,N.jsx)(X,{queryRef:null==p?void 0:p.detailRef,children:e=>(0,N.jsx)(w.Z,{graphqlRef:e,pinId:el})}):!eL&&C&&(ew?$:!eA)?(0,N.jsx)(X,{queryRef:null==p?void 0:p.detailRef,children:e=>(0,N.jsx)(O.Z,{pinKey:e?{type:"graphqlRef",data:e}:{type:"deprecated",data:el},viewParameter:eC,pwtSurfaceContext:eR,unauthLazyLoad:!ew})}):m?(0,N.jsx)(F.x,{children:(0,N.jsx)(c.xu,{dangerouslySetInlineStyle:{__style:{margin:`0 ${-g.yt}px`}},children:(0,N.jsx)(A.Z,{actionBarIsMinifiedToMainPinImage:e,clickthrough:eN?eX:void 0,onImageClick:e=>{e&&(e.preventDefault(),e.stopPropagation()),L||eJ()},shouldShowSEOPinInfo:ex,viewParameter:eC,pinImageResizePercent:eG?eY:eV?eq:100,inPinImageResizeExp:!!ec,setShowClickthroughOverlay:eB,pinId:el,graphqlRef:eS,shouldRenderAsStaticImageIdeaPin:eE&&!eD,showBaseColorBackground:e$,showExpandActionButton:eW,shouldRenderAsStoryPinVideo:L,renderStoryPinBlock:({placeholder:e})=>L&&eM?(0,N.jsx)(M.Z,{clientTrackingParams:eI,experience:ei,location:ej,pinId:el,pinnedToBoardId:ed,viewParameter:eC,viewType:ez,graphqlRef:e2}):(0,N.jsx)(E.Z,{pinId:el,pinKey:null!=e2?{type:"graphqlRef",data:e2}:{type:"deprecated",data:el},placeholder:e})})})}):(0,N.jsx)(r.Fragment,{children:null})}),detail:eE&&!eD&&eL?(0,N.jsx)(S.fL,{children:(0,N.jsxs)(c.xu,{padding:3,children:[en,(0,N.jsx)(K,{fallback:null,pinId:el,graphqlRef:e2,shouldHideReactions:!0,disableScroll:!0,clientTrackingParams:eI})]})}):(0,N.jsx)(X,{queryRef:null==p?void 0:p.detailRef,fallback:(0,N.jsx)(q,{setIsShowingCloseupDetailsSuspenseFallback:eg}),children:t=>(0,N.jsx)(S.ZP,{isStoryPin:eE,pinId:el,commentModule:i,isImagePinForUnauthOnTablet:Y,onClickTitleOrDomain:eX,pinActionBar:e?null:en,setCloseupDetailsHeight:ep,setCloseupPinLinkCreditsHeight:em,setCloseupTitleHeight:eh,setUploadedToPinterestTextHeight:ey,setUserAttributionHeight:ev,setUserRepHeight:ef,shouldShowReactions:eb,shouldShowSEOPinInfo:ex,viewParameter:eC,viewerId:ek,graphqlRef:t,isActionBarInline:G,setIsActionBarInline:e_,clientTrackingParams:eI})})}),!ew&&(0,N.jsx)(X,{queryRef:null==p?void 0:p.detailRef,children:e=>(0,N.jsx)(V,{pinId:el,graphqlRef:e})})]})}function J({actionBarIsMinifiedToMainPinImage:e,clickthroughInterstitialExperience:t,graphqlRefs:n,onLinklessPinTap:i,pinId:l,...a}){var r,o,d,u,c,p,m,h,_,g,v;let f=(0,s.useFragment)(G,n.pageRef),b=(0,C.I)({clickthroughInterstitialExperience:t,linklessOptions:(0,y.rM)({mobileLink:f.mobileLink,trackedLink:f.trackedLink,link:f.link})?{actionBarIsMinifiedToMainPinImage:e,onTap:i}:void 0,graphqlRef:f}),x=null===(r=f.richMetadata)||void 0===r?void 0:null===(o=r.products)||void 0===o?void 0:o[0],k=Number(null==x?void 0:null===(d=x.additionalImageSpec_236x)||void 0===d?void 0:d.length)>0||Number(null==x?void 0:null===(u=x.additionalImageSpec_474x)||void 0===u?void 0:u.length)>0||Number(null==x?void 0:null===(c=x.additionalImageSpec_564x)||void 0===c?void 0:c.length)>0||Number(null==x?void 0:null===(p=x.additionalImageSpec_736x)||void 0===p?void 0:p.length)>0,P=null===(m=f.storyPinData)||void 0===m?void 0:null===(h=m.pages)||void 0===h?void 0:h.filter(e=>!(2===e.layout&&!e.ad||5===e.layout||6===e.layout)),S=null==P?void 0:P.some(e=>{var t;return null===(t=e.blocks)||void 0===t?void 0:t.find(e=>3===e.blockType)}),w=S||((null==P?void 0:P.length)||0)>1;return(0,N.jsx)(Q,{...a,actionBarIsMinifiedToMainPinImage:e,clickthroughInterstitialExperience:t,onLinklessPinTap:i,clickthrough:b,pinId:l,hasImages:!!f.imageSpec_orig,shouldRenderAsStoryPinVideo:!!w,isEligibleForPdp:f.isEligibleForPdp,pinMobileLink:f.mobileLink,pinTrackedLink:f.trackedLink,pinLink:f.link,pinImageLargeUrl:f.imageLargeUrl,embedSrc:null===(_=f.embed)||void 0===_?void 0:_.src,embedSubtype:null===(g=f.embed)||void 0===g?void 0:g.subtype,embedType:null===(v=f.embed)||void 0===v?void 0:v.type,hasProductAdditionalImages:k,graphqlRefs:{...n,pageRef:f}})}function ee({actionBarIsMinifiedToMainPinImage:e,clickthroughInterstitialExperience:t,onLinklessPinTap:n,pinId:i,...l}){var a,r,o,s,d,u,c,p;let m=(0,L.S6)()(i),h=(0,C.Z)({clickthroughInterstitialExperience:t,linklessOptions:(0,y.rM)({mobileLink:null==m?void 0:m.mobile_link,trackedLink:null==m?void 0:m.tracked_link,link:null==m?void 0:m.link})?{actionBarIsMinifiedToMainPinImage:e,onTap:n}:void 0,pinId:i}),_=null==m?void 0:null===(a=m.story_pin_data)||void 0===a?void 0:null===(r=a.pages)||void 0===r?void 0:r.filter(e=>!(2===e.layout&&!e.ad||5===e.layout||6===e.layout)),g=null==_?void 0:_.some(e=>{var t;return null===(t=e.blocks)||void 0===t?void 0:t.find(e=>3===e.block_type)}),v=g||((null==_?void 0:_.length)||0)>1;return m?(0,N.jsx)(Q,{...l,actionBarIsMinifiedToMainPinImage:e,clickthrough:h,clickthroughInterstitialExperience:t,pinId:i,hasImages:!!m.images,shouldRenderAsStoryPinVideo:!!v,isEligibleForPdp:m.is_eligible_for_pdp,onLinklessPinTap:n,pinMobileLink:m.mobile_link,pinTrackedLink:m.tracked_link,pinLink:m.link,pinImageLargeUrl:m.image_large_url,embedSrc:null===(o=m.embed)||void 0===o?void 0:o.src,embedSubtype:null===(s=m.embed)||void 0===s?void 0:s.subtype,embedType:null===(d=m.embed)||void 0===d?void 0:d.type,hasProductAdditionalImages:Number(null===(u=m.rich_metadata)||void 0===u?void 0:null===(c=u.products)||void 0===c?void 0:null===(p=c[0].additional_images)||void 0===p?void 0:p.length)>0}):null}function et({graphqlRefs:e,...t}){return e?(0,N.jsx)(J,{...t,graphqlRefs:e}):(0,N.jsx)(ee,{...t})}},224229:(e,t,n)=>{"use strict";n.d(t,{Z:()=>q});var i,l=n(667294),a=n(702664),r=n(167912),o=n(269220),s=n(883119),d=n(517082),u=n(664633),c=n(409667),p=n(643010),m=n(898781),h=n(926275),_=n(166300),g=n(248975),y=n(594353),v=n(623568),f=n(992750),b=n(53199),x=n(773285),k=n(886302),P=n(276602),S=n(464609),w=n(780280),A=n(867820),T=n(690035),I=n(50286),E=n(398789),C=n(538232),D=n(628320),j=n(63552),F=n(332215),R=n(885149),L=n(691720),z=n(872482),O=n(350118),M=n(698330),N=n(430235),B=n(67347),Z=n(127525),K=n(785893);let U=void 0!==i?i:i=n(495740),H=({children:e,onTouch:t})=>{let n=(0,I.ZP)();return(0,K.jsx)(s.xu,{rounding:"phone"!==n?6:void 0,overflow:"phone"!==n?"hidden":void 0,children:"desktop"===n?e:(0,K.jsx)(j.Z,{onTouch:e=>{e.preventDefault(),e.stopPropagation(),t()},pressState:"none",fullWidth:!0,children:e})})},V=({pinId:e})=>(0,a.useSelector)(({feeds:t})=>{let n=t[`related-pins:${e||""}`];return!!n&&0===n.length});function G({actionBarIsMinifiedToMainPinImage:e,clickthrough:t,onImageClick:n,setShowClickthroughOverlay:i,shouldShowSEOPinInfo:a,viewParameter:r,imagesUrls:u,embedSrc:b,embedType:j,description:O,descriptionHtml:U,altText:G,autoAltText:$,dominantColor:W,pinId:q,domain:Y,pinJoinVisualAnnotation:X,pinnerConnectionType:Q,hasPromoter:J,graphqlRef:ee,isEligibleForPdp:et,isHiddenPin:en,isUnsafePin:ei,shouldRenderAsStaticImageIdeaPin:el,renderStoryPinBlock:ea,imageSignature:er,shouldRenderAsStoryPinVideo:eo,shouldRenderShuffle:es,placeholder:ed,isSmallestImgPlaceholder:eu,inPinImageResizeExp:ec=!1,pinImageResizePercent:ep,showBaseColorBackground:em=!1,showExpandActionButton:eh=!1}){var e_,eg,ey;let ev=(0,m.ZP)(),ef=(0,P.E)(),eb=(0,p.vs)(),ex=(0,I.HG)(),ek=(0,I.ml)(),eP=(0,R.Z)(),{onSendButtonClick:eS}=(0,C.R)(),ew=(0,T.Z)(),{isAuthenticated:eA,isBot:eT,isSocialBot:eI,countryFromIp:eE,userAgent:{platform:eC,canUseNativeApp:eD}}=(0,w.B)(),ej=(0,d.Z)({pinId:q,shouldRenderShuffle:es}),eF=(0,I.ZP)(),eR=`${eC}.${eF}`,eL=(0,l.useRef)(Date.now()),ez=(0,l.useRef)(null),eO=!eA&&!ex&&["ios","ipad","android"].includes(eC),eM=!eA&&ek&&["ios","android"].includes(eC),eN=!eA&&ek&&["ios","android"].includes(eC),eB=(0,z.a)(),{shouldShowLearningUpsell:eZ,setShouldShowLearningUpsell:eK,hasScrolledPastMainContent:eU}=null!=eB?eB:Object.freeze({}),eH=(0,M.Tt)(),eV=V({pinId:q}),eG=null,{checkExperiment:e$}=(0,x.F)(),eW=!ex&&e$(eA?"closeup_auth_mweb_remove_streams":"closeup_unauth_mweb_remove_streams").anyEnabled,eq=(0,c.Z)({isHiddenPin:en,isUnsafePin:ei}),eY=!eA&&ek&&!eD;eA||eV||eU||ex?!eq||eY||eA&&((0,h.Z)(null==eH?void 0:eH.created_at)&&!(0,F.V0)(eH)||J||(0,v.sY)(j)||e)||(eG="visualSearch"):eG="moreLikeThisButton";let eX=(0,Z.I)(),eQ=(0,g.Z)({imagesUrls:u,embedSrc:b,embedType:j,preferredResolution:function({countryFromIp:e,isBot:t,isDesktop:n,pinnerConnectionType:i,shouldRenderSIIP:l}){return l?"236x":n?void 0:(0,y.Z)(e||"",t,n)&&["Dialup","Cellular"].includes(i)?"236x":"736x"}({isDesktop:ex,countryFromIp:eE,isBot:eT,pinnerConnectionType:Q,shouldRenderSIIP:el}),excludeOriginals:!eT&&!eI});(0,l.useEffect)(()=>{if(eX){var e,t;let n=null!==(e=null===(t=document.getElementById("pin-image-preload"))||void 0===t?void 0:t.getAttribute("href"))&&void 0!==e?e:"",i="";try{i=document.URL.split("/pin/")[1].slice(0,-1)}catch(e){i="unknown"}(0,B.nP)("www.closeup.preloadImageCheck",{sampleRate:1,tags:{isAuthenticated:eA,deviceType:eF,isEqual:n===eQ,isGraphQL:!!ee}}),(0,k.w)(e=>{let{entries:t}=e,{element:i,url:l}=t[t.length-1];(0,B.nP)("www.closeup.mainPinImageLcpCheck",{sampleRate:1,tags:{isAuthenticated:eA,deviceType:eF,isEqual:eQ===l,isGraphQL:!!ee,isPreloadEqual:n===l,nodeName:i?i.nodeName:"unknown"}})}),n!==eQ&&((0,B.nP)("www.closeup.preloadImageCheckWithId",{sampleRate:.5,tags:{isAuthenticated:eA,deviceType:eF,pinId:i}}),(0,B.nP)("www.closeup.preloadImageCheckWithResolutions",{sampleRate:1,tags:{isAuthenticated:eA,deviceType:eF,resolution:eQ.split("/")[3]}}));let l=document.querySelector('[data-test-id="pin-closeup-image"]'),a=(null==l?void 0:l.querySelectorAll("img").length)||0;a>1&&((0,B.nP)("www.closeup.mainImageCount",{sampleRate:1,tags:{isAuthenticated:eA,deviceType:eF}}),(0,B.nP)("www.closeup.mainImageCountWithId",{sampleRate:.1,tags:{isAuthenticated:eA,deviceType:eF,pinId:i}}))}},[]);let eJ="phone"===eF?"100%":L.Hg,e0=(0,K.jsx)(E.Z,{alt:a?(0,f.rw)(null!=O?O:"",U||"",X,G||"",$||""):ev._('Pin image', 'Pin closeup image', 'Pin closeup image'),color:W||"#efefef",naturalHeight:null!==(e_=null==ed?void 0:ed.height)&&void 0!==e_?e_:1,naturalWidth:null!==(eg=null==ed?void 0:ed.width)&&void 0!==eg?eg:1,clickthroughOverlayOptions:t?{onConfirm:t,visitButtonText:"Uploaded by user"===Y?ev._('Uploaded by user', 'pin.default_domain', 'default domain for the pin'):Y||""}:void 0,setShowClickthroughOverlay:i,pinImageResizePercent:ep,placeholder:null!==(ey=null==ed?void 0:ed.url)&&void 0!==ey?ey:"",pwtElementTimingId:S.f,pwtSurfaceContext:ef,showSpinner:eu,src:eQ,isEligibleForPdp:et,pinId:q||"",imageSignature:er||"",stickyFooter:!ec&&eG&&(0,K.jsx)(D.Z,{type:eG,viewParameter:r,imageSignature:er,pinId:q})},q),e1=(0,K.jsx)(H,{onTouch:()=>{eN&&eK?(eZ?(0,A.My)("learning.upsell.tap.hide"):(0,A.My)("learning.upsell.tap.show"),eK(!eZ)):n(),eO&&(0,A.My)(`unauth.mweb.${eR}.pin.image.touch`),!eA&&et&&(0,A.My)("unauth.pdp.pin.img.click",{device:eF})},children:(0,K.jsxs)(s.xu,{display:"flex",justifyContent:"center",onContextMenu:e=>{!eA&&et&&(0,A.My)("unauth.pdp.pin.context_menu.open",{device:eF}),e.preventDefault(),e.stopPropagation(),ex?(eP((0,K.jsx)(N.Z,{desktopContextMenuState:{x:e.clientX,y:e.clientY},pinId:q,graphqlRef:ee,onSendButtonClick:eS,isMainPinImage:!0})),(0,A.My)("pcons.dweb.main_pin.context_menu.open")):(0,A.My)(`${eA?"auth":"unauth"}.mweb_pin_closeup_page.pin_image.long_press`)},onTouchStart:e=>{if((eO||eM)&&(e.stopPropagation(),eL.current=Date.now(),(0,A.My)(`unauth.mweb.${eR}.pin.image.touch.start`),e.changedTouches&&e.changedTouches.length>0)){let t=e.changedTouches.item(0);t&&(ez.current={x:t.clientX,y:t.clientY})}},onTouchMove:e=>{eM&&e.stopPropagation()},onTouchEnd:e=>{if(!eO&&!eM)return;e.stopPropagation(),(0,A.My)(`unauth.mweb.${eR}.pin.image.touch.end`);let t=Date.now()-eL.current>500,n=!1,i=ez.current;if(e.changedTouches&&e.changedTouches.length>0&&i){let t=e.changedTouches.item(0),l=t.clientX-i.x,a=t.clientY-i.y;n=t&&Math.pow(l,2)+Math.pow(a,2)>100}!eO||!t||n||((0,A.My)(`unauth.mweb.${eR}.pin.image.long.touch`),e.preventDefault(),eA||ex||ew({pinId:q,location:"main-pin-long-press"}))},dangerouslySetInlineStyle:{__style:{WebkitTouchCallout:"none",WebkitUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",KhtmlUserSelect:"none",UserSelect:"none",background:(()=>{if(ec)return em?`linear-gradient(90deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0) ${.25*window.innerWidth}px, rgba(0, 0, 0, 0) ${.5*window.innerWidth}px, rgba(0, 0, 0, 0.0) ${.75*window.innerWidth}px, rgba(0, 0, 0, 0.4) ${window.innerWidth}px)`:eb?"#111111":"#efefef"})()}},children:[(!el||!eW)&&(es?(0,K.jsx)(o.s,{rounded:!ek,width:eJ,shuffle:ej,children:e0}):e0),el&&(eW?(0,K.jsxs)(s.xu,{width:eJ,marginStart:-2,marginEnd:-2,overflow:eG?void 0:"hidden",children:[ea({placeholder:ed&&{height:ed.height,width:ed.width}}),eG&&!eo&&(0,K.jsx)(D.Z,{type:eG,viewParameter:r,imageSignature:er,pinId:q})]}):(0,K.jsx)(s.xu,{position:"absolute",left:!0,right:!0,top:!0,bottom:!0,overflow:"hidden",rounding:6,marginStart:-2,marginEnd:-2,children:ea({placeholder:ed&&{height:ed.height,width:ed.width}})}))]})}),e2=eA?_.Z:l.Fragment;return(0,K.jsx)(s.xu,{position:"relative",width:"100%",children:ec?(0,K.jsx)(e2,{children:(0,K.jsxs)(s.xu,{dangerouslySetInlineStyle:{__style:{background:em?W||"#efefef":void 0}},children:[eh&&(0,K.jsx)(s.xu,{position:"absolute",bottom:!0,right:!0,width:"100%",children:(0,K.jsx)(D.Z,{imageSignature:er,inPinImageResizeExp:ec,pinId:q,type:"expand",viewParameter:r})}),eG&&(0,K.jsx)(s.xu,{position:"absolute",bottom:!0,left:!0,width:"100%",children:(0,K.jsx)(D.Z,{imageSignature:er,inPinImageResizeExp:ec,pinId:q,type:eG,viewParameter:r})}),e1]})}):e1})}function $({graphqlRef:e,pinId:t,...n}){var i,l;let a=(0,r.useFragment)(U,e),o=(0,b.Z)({type:"graphqlRef",data:a}),s=a.imageSpec_236x||a.imageSpec_136x136,d=!!(s&&!a.imageSpec_236x),{isBot:c}=(0,w.B)(),p=(0,u.Z)(),m=!!a.shuffle&&p&&!c;return(0,K.jsx)(G,{...n,embedSrc:a.embed&&a.embed.src,embedType:a.embed&&a.embed.type,imagesUrls:o,placeholder:s&&{height:s.height,width:s.width,url:s.url},isSmallestImgPlaceholder:d,description:a.description,descriptionHtml:a.descriptionHtml,altText:a.altText,autoAltText:a.autoAltText,dominantColor:a.dominantColor,pinId:t,domain:a.domain,pinJoinVisualAnnotation:null===(i=a.pinJoin)||void 0===i?void 0:i.visualAnnotation,pinnerConnectionType:null===(l=a.pinner)||void 0===l?void 0:l.connectionType,hasPromoter:!!a.promoter&&!a.isDownstreamPromotion,isEligibleForPdp:!!a.isEligibleForPdp,isHiddenPin:a.isHidden,isUnsafePin:a.isUnsafe,imageSignature:a.imageSignature,graphqlRef:a,shouldRenderShuffle:m})}function W({pinId:e,...t}){var n,i,l,a,r,o,s;let d=(0,O.S6)()(e),c=(null==d?void 0:null===(n=d.images)||void 0===n?void 0:n["236x"])||(null==d?void 0:null===(i=d.images)||void 0===i?void 0:i["136x136"]),p=!!(c&&!(null!=d&&null!==(l=d.images)&&void 0!==l&&l["236x"])),m=(0,b.Z)(null!=d?{type:"deprecated",data:d}:null),{isBot:h}=(0,w.B)(),_=(0,u.Z)(),g=!!(null==d?void 0:d.shuffle)&&_&&!h;return(0,K.jsx)(G,{...t,embedSrc:null==d?void 0:null===(a=d.embed)||void 0===a?void 0:a.src,embedType:null==d?void 0:null===(r=d.embed)||void 0===r?void 0:r.type,imagesUrls:m,placeholder:c&&{height:c.height,width:c.width,url:c.url},isSmallestImgPlaceholder:p,description:null==d?void 0:d.description,descriptionHtml:null==d?void 0:d.description_html,altText:null==d?void 0:d.alt_text,autoAltText:null==d?void 0:d.auto_alt_text,dominantColor:null==d?void 0:d.dominant_color,pinId:e,domain:null==d?void 0:d.domain,pinJoinVisualAnnotation:null==d?void 0:null===(o=d.pin_join)||void 0===o?void 0:o.visual_annotation,pinnerConnectionType:null==d?void 0:null===(s=d.pinner)||void 0===s?void 0:s.connection_type,hasPromoter:!!(d&&d.promoter&&!d.is_downstream_promotion),isEligibleForPdp:!!(null==d?void 0:d.is_eligible_for_pdp),isHiddenPin:null==d?void 0:d.is_hidden,isUnsafePin:null==d?void 0:d.is_unsafe,imageSignature:null==d?void 0:d.image_signature,shouldRenderShuffle:g})}function q({graphqlRef:e,...t}){return e?(0,K.jsx)($,{...t,graphqlRef:e}):(0,K.jsx)(W,{...t})}},417931:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(616550),l=n(883119),a=n(829407),r=n(538232),o=n(725214),s=n(361115),d=n(861411),u=n(785893);let c=({children:e,imageLargeUrl:t,isVideoPin:n,pinId:c})=>{let p=(0,i.useHistory)(),{clientTrackingParams:m,viewParameter:h}=(0,r.R)(),_=(0,s.Yg)();return(0,a.Z)(()=>{null==_||_("main_pin_impression")}),(0,u.jsx)(l.xu,{"data-layout-shift-boundary-id":"CloseupPageBody",children:(0,u.jsx)(d.dL,{auxData:{closeup_navigation_type:(0,o.Z)(p)},component:n?179:85,loggingId:c,impressionData:{imageURL:t,type:13},trackingParams:m,slotIndex:-1,viewData:{pin_id:c},viewParameter:h,viewType:3,children:({impressionTrackerRef:t})=>(0,u.jsx)(l.xu,{"data-test-id":"CloseupMainPin",maxWidth:"100%",position:"relative",ref:t,children:e})},c)})}},759842:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g}),n(167912);var i,l=n(883119),a=n(681669),r=n(542554),o=n(501338),s=n(538232),d=n(730440),u=n(667294),c=n(319915),p=n(947599),m=n(785893);function h({children:e,imageViewer:t}){return(0,m.jsxs)(u.Fragment,{children:[(0,m.jsx)(l.xu,{display:t?"visuallyHidden":"block",opacity:t?0:1,"data-layout-shift-boundary-id":"CloseupPageContainerInner",dangerouslySetInlineStyle:{__style:{transition:"opacity 0.2s ease-out"}},children:!t&&e}),(0,m.jsx)(c.Z,{name:"SafeSuspense_Closeup_ImageViewer",children:(0,m.jsx)(p.Z,{children:(0,m.jsx)(l.xu,{display:t?"block":"visuallyHidden",opacity:t?1:0,dangerouslySetInlineStyle:{__style:{transition:"opacity 0.2s ease-in"}},children:t})})})]})}var _=n(609875);function g({children:e,closeupPageContext:t,hasGutter:u,imageViewer:c,pinKey:p,stickyUpsell:g}){let{childDataKey__DEPRECATED:y}=(0,a.sr)(void 0!==i?i:i=n(46226),p,{type:"pin",useLegacyAdapter:()=>({})});return(0,m.jsx)(s.q,{value:t,children:(0,m.jsxs)(l.xu,{position:"relative",width:"100%",children:[!!g&&(0,m.jsx)(l.Le,{top:o.SB,zIndex:new l.Ry(99999),children:g}),(0,m.jsx)(_.Z,{graphqlRef:"graphqlRef"===y.type?y.data:null,onSendButtonClick:t.onSendButtonClick,children:(0,m.jsx)(r.default,{dataLayoutShiftBoundaryId:"CloseupPageContainer",hasFixedHeader:!0,hasGutter:u,children:(0,m.jsx)(d.m,{children:(0,m.jsx)(h,{imageViewer:c,children:e})})})})]})})}},538232:(e,t,n)=>{"use strict";n.d(t,{R:()=>a,q:()=>l});var i=n(425288);let{Provider:l,useHook:a}=(0,i.Z)("CloseupPageContext")},207004:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(883119),l=n(898781),a=n(785893);function r(){let e=(0,l.ZP)();return(0,a.jsx)(i.xu,{padding:5,children:(0,a.jsx)(i.$j,{accessibilityLabel:e._('Loading pin data', 'closeupPage.loadingPinData', 'accessibility label for pin loading spinner'),show:!0})})}},515672:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m}),n(167912);var i,l=n(616550),a=n(681669),r=n(430323),o=n(156637),s=n(725214),d=n(886076),u=n(830157),c=n(785893);function p({children:e,pin:{imageSignature:t,isEligibleForPdp:n,isOosProduct:i,isStaleProduct:a,shoppingFlags:p,trackingParams:m},pinId:h,viewParameter:_}){var g;let y=(0,l.useHistory)(),v=(0,l.useLocation)(),f=(0,u.Z)(null===(g=v.state)||void 0===g?void 0:g.trackingParams,m);return(0,c.jsx)(o.Z,{auxData:{closeup_navigation_type:(0,s.Z)(y),commerce_data:(0,d.Z)({isEligibleForPdp:n,isOosProduct:i,isStaleProduct:a,pinShoppingFlags:null!=p?p:[]})},clientTrackingParams:f,objectIdStr:h,viewData:{pin_id:h,closeup_rich_types:null!=p?p:[],image_signature:t||null},viewParameter:_,viewType:3,component:13283,children:(0,c.jsx)(r.Z,{view:3,objectId:h,clientTrackingParams:f,children:e})})}function m({children:e,pinKey:t,...l}){let{data:r}=(0,a.sr)(void 0!==i?i:i=n(782726),t,{type:"pin",useLegacyAdapter:e=>({imageSignature:e.image_signature,isEligibleForPdp:e.is_eligible_for_pdp,isOosProduct:e.is_oos_product,isStaleProduct:e.is_stale_product,shoppingFlags:e.shopping_flags,trackingParams:e.tracking_params})});return r?(0,c.jsx)(p,{pin:r,...l,children:e}):null}},435183:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var i=n(883119),l=n(288889),a=n(898781),r=n(349700),o=n(623568),s=n(773285),d=n(780280),u=n(867820),c=n(52022),p=n(50286),m=n(785893);function h({isImagePinForUnauthOnTablet:e,onClickTitleOrDomain:t,pinCreditPrefix:n,pinDomain:h}){let{isAuthenticated:_}=(0,d.B)(),g=(0,a.ZP)(),y=(0,c.Z)(),v=(0,p.HG)(),{checkExperiment:f}=(0,s.F)(),b=_?f("auth_closeup_redesign").anyEnabled:f("unauth_closeup_redesign").anyEnabled,x=v?"start":"center",k=1,P=e?void 0:"bold",S=e?{textDecoration:"underline"}:{};b&&(x="start",k=n?1:0,P=void 0,S={textDecoration:"underline"});let w=(0,o._S)(h);return(0,m.jsx)(i.kC,{alignItems:"center",direction:"row",justifyContent:x,width:"100%",children:(0,r.nk)(g._('{{ pinCreditPrefix }} {{ pinCredit }}', 'tells the user where the pin is from in the form of Saved from website', 'tells the user where the pin is from in the form of Saved from website'),{pinCreditPrefix:(0,m.jsx)(i.xu,{display:"inlineBlock",children:(0,m.jsx)(i.xv,{inline:!0,size:l.n,children:n})},"pinCreditsPrefix"),pinCredit:w?(0,m.jsx)(i.xu,{display:"inlineBlock",marginStart:k,maxWidth:"60vw","data-test-id":"pin-domain-link",children:(0,m.jsx)(i.iP,{onTap:({event:e})=>{e.preventDefault(),e.stopPropagation(),y({action:"click",item:"pin-domain-link"}),(0,u.My)("mweb_pin_page.pin_link.clickthrouh"),_||(0,u.NC)("click_pin_closeup_link_clickthrough"),t()},tapStyle:"compress",children:(0,m.jsx)(i.xv,{size:l.n,weight:P,lineClamp:1,children:(0,m.jsx)("span",{style:S,children:h})},"pinLinkDomain")})},"pinCredits"):""})})}},805426:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var i=n(898781),l=n(166300),a=n(542554),r=n(276602),o=n(464609),s=n(49895),d=n(398789),u=n(207004),c=n(724029),p=n(613166),m=n(63552),h=n(62409),_=n(785893);let g=e=>{var t,n,i,l;return(0,h.CK)({hasRichMetadata:!!e.richMetadata,hasRichMetadataProducts:!!(null!==(t=e.richMetadata)&&void 0!==t&&null!==(n=t.products)&&void 0!==n&&n.length),hasRichMetadataArticle:!!(null!==(i=e.richMetadata)&&void 0!==i&&i.article),hasRichMetadataRecipe:!!(null!==(l=e.richMetadata)&&void 0!==l&&l.recipe)})};function y({data:e}){var t,n,l;let a=(0,r.E)(),s=(0,i.ZP)(),{derived:{imageUrl:u,placeholder:c},pin:h}=e,y=(0,p.Z)();return(0,_.jsx)(m.Z,{onTouch:e=>{e.preventDefault(),e.stopPropagation(),y({linkType:h.mobileLink&&"mobile"||h.trackedLink&&"tracked"||h.link&&"external"||"original",viewParameter:g(h)})},pressState:"none",fullWidth:!0,children:(0,_.jsx)(d.Z,{alt:s._('Pin image', 'Pin closeup image', 'Pin closeup image'),color:h.dominantColor||"#efefef",naturalHeight:null!==(t=null==c?void 0:c.height)&&void 0!==t?t:1,naturalWidth:null!==(n=null==c?void 0:c.width)&&void 0!==n?n:1,placeholder:null!==(l=null==c?void 0:c.url)&&void 0!==l?l:"",pwtElementTimingId:o.f,pwtSurfaceContext:a,showSpinner:!1,src:u})})}function v({data:e}){return(0,_.jsxs)(a.default,{dataLayoutShiftBoundaryId:"CloseupPageContainer",hasFixedHeader:!0,hasGutter:!0,children:[(0,_.jsx)(c.Z,{}),(0,_.jsx)(s.Z,{isShowingBreadcrumbs:!1,sideBySideOptions:null,media:(0,_.jsx)(l.Z,{roundedForLargeDevice:!0,children:(0,_.jsx)(y,{data:e})}),detail:null}),(0,_.jsx)(u.Z,{})]})}},266224:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m}),n(167912);var i,l=n(883119),a=n(356997),r=n(681669),o=n(898781),s=n(349700),d=n(19121),u=n(785893);let c=void 0!==i?i:i=n(781293);function p({inCollapsibleModulesExp:e,pin:t}){var n,i,r,c,p,m,h,_,g,y,v,f;let b;let x=(0,o.ZP)(),k=(0,d.Z)(),P=!((null===(n=t.board)||void 0===n?void 0:n.layout)!=="quick_creates"),S=k.id===(null===(i=t.pinner)||void 0===i?void 0:i.entityId);if(!S||P||!k.isAuth)return null;let{imageMediumUrl:w,username:A}=k||{};if(null!==(r=t.section)&&void 0!==r&&r.title&&t.section.slug){let e=`${null!==(c=null===(p=t.board)||void 0===p?void 0:p.url)&&void 0!==c?c:""}${t.section.slug}/`;b=(0,s.nk)(x._('{{ you }} {{ savedTo }} {{ sectionName }}', 'closeup.savedAttribution.section', 'Showing that you saved this pin to a section within a board on closeup'),{you:(0,u.jsx)(l.xu,{display:"inlineBlock",marginEnd:1,children:(0,u.jsx)(l.rU,{href:`/${A}`,rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,u.jsx)(l.xv,{size:"300",weight:"bold",children:x._('You', 'closeup.savedAttribution.user', 'This is the user')})},"author")},A),savedTo:(0,u.jsx)(l.xu,{children:(0,u.jsx)(l.xv,{size:"300",children:x._('saved to', 'closeup.savedAttribution.savedTo', 'saved to text')})},"saved-to"),sectionName:(0,u.jsx)(l.xu,{display:"inlineBlock",marginStart:1,children:(0,u.jsx)(l.rU,{href:e,rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,u.jsx)(l.xv,{size:"300",weight:"bold",lineClamp:1,children:null===(m=t.section)||void 0===m?void 0:m.title})},"section")},e)})}else b=(0,s.nk)(x._('{{ you }} {{ savedTo }} {{ boardName }}', 'closeup.savedAttribution.board', 'Indicating you saved this pin to a board on closeup'),{you:(0,u.jsx)(l.xu,{display:"inlineBlock",marginEnd:1,children:(0,u.jsx)(l.rU,{href:`/${A}`,rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,u.jsx)(l.xv,{inline:!0,size:"300",weight:"bold",children:x._('You', 'closeup.savedAttribution.user', 'This is the user')})},"author")},A),savedTo:(0,u.jsx)(l.xu,{children:(0,u.jsx)(l.xv,{size:"300",children:x._('saved to', 'closeup.savedAttribution.savedTo', 'saved to text')})},"saved-to"),boardName:(0,u.jsx)(l.xu,{display:"inlineBlock",marginStart:1,children:(0,u.jsx)(l.rU,{href:null!==(g=null===(y=t.board)||void 0===y?void 0:y.url)&&void 0!==g?g:"",rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,u.jsx)(l.xv,{inline:!0,size:"300",weight:"bold",children:null!==(v=null===(f=t.board)||void 0===f?void 0:f.name)&&void 0!==v?v:""})},"author")},null!==(h=null===(_=t.board)||void 0===_?void 0:_.url)&&void 0!==h?h:"")});return(0,u.jsxs)(l.xu,{display:"flex",direction:"row",maxWidth:"100%",marginTop:e?0:12,paddingY:e?4:0,"data-test-id":"saved-attribution",children:[(0,u.jsx)(l.xu,{display:"flex",flex:"shrink","data-test-id":"saved-attribution-avatar",children:(0,u.jsx)(l.iP,{rounding:"circle",children:(0,u.jsx)(l.rU,{href:`/${A}`,rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,u.jsx)(a.qE,{size:"md",name:A,src:null!=w?w:""})},"profile")})}),(0,u.jsx)(l.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:(0,u.jsx)(l.xu,{"data-test-id":"saved-attribution-board-or-section",alignItems:"baseline",display:"flex",marginStart:2,children:b})})]})}function m({graphqlRef:e,inCollapsibleModulesExp:t,pinId:n}){let{data:i}=(0,r.sr)(c,e?{type:"graphqlRef",data:e}:{type:"deprecated",data:n},{type:"pin",useLegacyAdapter:e=>({board:e.board&&{layout:e.board.layout,name:e.board.name,url:e.board.url},pinner:e.pinner&&{entityId:e.pinner.id},section:e.section&&{slug:e.section.slug,title:e.section.title}})});return i&&(0,u.jsx)(p,{inCollapsibleModulesExp:t,pin:i})}},693582:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var i=n(667294),l=n(883119),a=n(898781),r=n(391254),o=n(780280),s=n(619623);let d="undefined"!=typeof window&&window.innerWidth-32||400,u=e=>[{name:`${e}closeup`,width:d,height:d},{name:`${e}title`,width:d,height:24},{name:`${e}attribution`,width:40,height:40},{name:`${e}credit`,width:d-40-8,height:40},{name:`${e}visit_button`,width:d,height:40},{name:`${e}pin_grid_pin`,width:(d-32)/2,height:100}].map(({name:e,width:t,height:n})=>(0,s.Z)({name:e,width:t,height:n})).join("");var c=n(785893);let p="CloseupPageSkeletonLoader__",m=()=>{let e=(0,a.ZP)(),{isAuthenticated:t}=(0,o.B)();return(0,c.jsxs)(i.Fragment,{children:[(0,c.jsx)(r.Z,{unsafeCSS:u(p)}),(0,c.jsxs)(l.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[(0,c.jsxs)(i.Fragment,{children:[(0,c.jsx)(l.xu,{marginTop:4,marginEnd:3,children:(0,c.jsx)("div",{className:p+"closeup"})}),(0,c.jsx)(l.xu,{marginTop:3,children:(0,c.jsx)("div",{className:p+"title"})}),(0,c.jsxs)(l.xu,{display:"flex",direction:"row",marginTop:3,children:[(0,c.jsx)(l.xu,{children:(0,c.jsx)("div",{className:p+"attribution"})}),(0,c.jsx)(l.xu,{marginStart:2,children:(0,c.jsx)("div",{className:p+"credit"})})]}),(0,c.jsx)(l.xu,{marginTop:3,children:(0,c.jsx)(l.iz,{})})]}),(0,c.jsx)(l.xu,{marginBottom:3,marginTop:2,children:(0,c.jsx)(l.xv,{weight:"bold",align:t?void 0:"center",children:e._('More like this', 'On mobile web pin page, title for related pins beneath pin closeup', 'On mobile web pin page, title for related pins beneath pin closeup')})}),(0,c.jsxs)(l.xu,{display:"flex",direction:"row",marginTop:3,children:[(0,c.jsx)(l.xu,{marginStart:t?2:1,marginEnd:t?2:1,children:(0,c.jsx)("div",{className:p+"pin_grid_pin"})}),(0,c.jsx)(l.xu,{marginStart:t?2:1,marginEnd:t?2:1,children:(0,c.jsx)("div",{className:p+"pin_grid_pin"})})]})]})]})}},724029:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(883119),l=n(241244),a=n(773285),r=n(780280),o=n(501338),s=n(50286),d=n(404508),u=n(785893);function c({pinActionBarOptionsButton:e,l1interestFallbackUrl:t}){let{isAuthenticated:n,isBot:c}=(0,r.B)(),p=(0,s.ZP)(),{checkExperiment:m}=(0,a.F)(),h=!n&&!c&&m("unauth_plp_hide_back_button").anyEnabled||n&&m("auth_plp_hide_back_button").anyEnabled;return(0,u.jsx)(i.Le,{top:n?0:(0,o.x9)(p),children:(0,u.jsx)(i.xu,{position:"absolute",marginTop:2,width:"100%",dangerouslySetInlineStyle:{__style:{pointerEvents:"none"}},children:(0,u.jsxs)(i.kC,{justifyContent:h?"end":"between",children:[!h&&(0,u.jsx)(l.Z,{children:(0,u.jsx)(d.Z,{fallbackUrlForExp:t,bgColor:"white",color:"darkGray",fallbackUrl:n?"/":"/ideas",padding:3,viewParameter:156,viewType:3})}),!!e&&(0,u.jsx)(l.Z,{children:e})]})})})}},697354:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d}),n(167912);var i,l=n(233316),a=n(681669),r=n(224496),o=n(509886),s=n(785893);function d({pinId:e,pinKey:t,placeholder:d}){var u,c;let{data:p,childDataKey__DEPRECATED:m}=(0,a.HF)(void 0!==i?i:i=n(557440),t,{type:"pin",useGraphQLAdapter:e=>e.storyPinData,useLegacyAdapter:e=>e?e.story_pin_data:null}),h=null==p?void 0:null===(u=p.pages)||void 0===u?void 0:u[0].pageId,_=null==p?void 0:null===(c=p.pages)||void 0===c?void 0:c[0].blocks,{blocks:g}=(0,l.Z)({storyPinBlocks:null!=_?_:[],blocksToRender:[r.h8.COMMENT_REPLY_STICKER,r.h8.GENERIC_STICKER,r.h8.HEADING,r.h8.MENTION_STICKER,r.h8.PARAGRAPH,r.h8.PRODUCT_STICKER,r.h8.VTO_MAKEUP_STICKER,r.h8.IMAGE]});return p?(0,s.jsx)(o.Z,{blocks:g,isActive:!0,isCoverImageWithTitle:!0,isSinglePage:!0,isStaticImageIdeaPin:!0,muteVideos:!0,pinAspectRatio:((null==d?void 0:d.width)||0)/((null==d?void 0:d.height)||1),pinId:e,pageId:h,maybeGraphqlRef:"graphqlRef"===m.type?m.data:null}):null}},40995:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});var i,l=n(167912),a=n(883119),r=n(926275),o=n(313047),s=n(992750),d=n(773285),u=n(780280),c=n(867820),p=n(50286),m=n(63552),h=n(350118),_=n(698330),g=n(954063),y=n(785893);let v=({children:e,handleTap:t})=>t?(0,y.jsx)(m.Z,{onTouch:t,pressState:"compress",children:e}):e,f=void 0!==i?i:i=n(560728);function b({onClick:e,hasLink:t,forceSmallerHeading:n,textAlign:i,pinTitle:l,gridTitle:m,richSummaryDisplayName:h,richMetadataTitle:f,storyPinDataId:b,storyPinDataMetadataPinTitle:x,pinJoinVisualAnnotation:k,lineClamp:P,seoNoindexReason:S,seoTitle:w}){let A=(0,p.ZP)(),{isAuthenticated:T,isBot:I}=(0,u.B)(),E=(0,_.Tt)(),{checkExperiment:C}=(0,d.F)(),D=(0,r.Z)(null==E?void 0:E.created_at)&&!(null!=E&&E.is_matured_new_user),j=T?C("auth_closeup_redesign").anyEnabled:C("unauth_closeup_redesign").anyEnabled,F=(0,s.Ly)({pinTitle:l,gridTitle:m,richSummaryDisplayName:h,richMetadataTitle:f,storyPinDataId:b,storyPinDataMetadataPinTitle:x,pinJoinVisualAnnotation:k,seoNoindexReason:S,seoTitle:w}),R="desktop"===A?"start":"center";return j&&(R="start"),(0,y.jsx)(g.Z,{hash:"details",offset:-o.DEFAULT_HEIGHT,children:(0,y.jsx)(a.kC,{alignItems:"desktop"===A?"start":"center",direction:"column",justifyContent:"center",children:(0,y.jsx)(a.xu,{"data-test-id":"pinTitle",maxWidth:"100%",alignSelf:j?"start":"stretch",children:(0,y.jsx)(v,{handleTap:"desktop"!==A&&t?t=>{t.preventDefault(),t.stopPropagation(),(0,c.My)("mweb_pin_page.pin_title.click"),T||(0,c.NC)("unauth_click_pin_closeup_title"),e()}:null,children:(0,y.jsx)(a.X6,{align:i||R,accessibilityLevel:1,overflow:"breakWord",size:n||D?"400":"500",lineClamp:I?void 0:P,children:F})})})})})}function x(e){var t,n,i,a,r,o,s;let d=(0,l.useFragment)(f,e.graphqlRef);return(0,y.jsx)(b,{onClick:e.onClick,hasLink:e.hasLink,forceSmallerHeading:e.forceSmallerHeading,lineClamp:e.lineClamp,textAlign:e.textAlign,pinId:e.pinId,pinTitle:null==d?void 0:d.title,gridTitle:null==d?void 0:d.gridTitle,richSummaryDisplayName:null!==(t=null==d?void 0:null===(n=d.richSummary)||void 0===n?void 0:n.displayName)&&void 0!==t?t:"",richMetadataTitle:null!==(i=null==d?void 0:null===(a=d.richMetadata)||void 0===a?void 0:a.title)&&void 0!==i?i:"",storyPinDataId:null==d?void 0:d.storyPinDataId,storyPinDataMetadataPinTitle:null==d?void 0:null===(r=d.storyPinData)||void 0===r?void 0:null===(o=r.metadata)||void 0===o?void 0:o.pinTitle,pinJoinVisualAnnotation:(null==d?void 0:null===(s=d.pinJoin)||void 0===s?void 0:s.visualAnnotation)||void 0,seoNoindexReason:null==d?void 0:d.seoNoindexReason,seoTitle:null==d?void 0:d.seoTitle})}function k(e){var t,n,i,l,a,r,o;let s=(0,h.S6)()(e.pinId||"");return s?(0,y.jsx)(b,{onClick:e.onClick,hasLink:e.hasLink,forceSmallerHeading:e.forceSmallerHeading,lineClamp:e.lineClamp,textAlign:e.textAlign,pinId:e.pinId,pinTitle:s.title,gridTitle:s.grid_title,richSummaryDisplayName:null!==(t=null===(n=s.rich_summary)||void 0===n?void 0:n.display_name)&&void 0!==t?t:"",richMetadataTitle:null!==(i=null===(l=s.rich_metadata)||void 0===l?void 0:l.title)&&void 0!==i?i:"",storyPinDataId:s.story_pin_data_id,storyPinDataMetadataPinTitle:null===(a=s.story_pin_data)||void 0===a?void 0:null===(r=a.metadata)||void 0===r?void 0:r.pin_title,pinJoinVisualAnnotation:null===(o=s.pin_join)||void 0===o?void 0:o.visual_annotation,seoNoindexReason:s.seo_noindex_reason,seoTitle:s.seo_title}):null}function P(e){return e.graphqlRef?(0,y.jsx)(x,{...e}):(0,y.jsx)(k,{...e})}},470321:(e,t,n)=>{"use strict";n.d(t,{Z:()=>F});var i,l,a,r=n(667294);n(167912);var o=n(616550),s=n(883119),d=n(785120),u=n(407043),c=n(681669),p=n(898781),m=n(773285),h=n(780280),_=n(784590),g=n(50286),y=n(538232),v=n(706443),f=n(356997),b=n(19121),x=n(717615),k=n(231947),P=n(648136),S=n(785893);let w=void 0!==i?i:i=n(66917);function A({closeCommentComposerModal:e,isCommentComposerOpen:t,isInCommentModule:n,openCommentComposerModal:i,pinId:l,pinKey:a,shouldShowAvatar:r}){var o;let{childDataKey__DEPRECATED:d}=(0,c.sr)(w,a,{type:"pin",useLegacyAdapter:()=>({})}),u=(0,p.ZP)(),{checkExperiment:h}=(0,m.F)(),_=(0,b.Z)(),g=(0,x.Z)(),{anyEnabled:v}=h("web_m10n_business_access_orbac_ga"),A=v?(0,k.lJ)(_,g):"",T=(0,y.R)(),{viewParameter:I}=T,E=_.isAuth?{image_medium_url:A?null===(o=g.user)||void 0===o?void 0:o.imgUrl:_.imageMediumUrl,username:A?(0,k.Ms)(_,g):_.username}:{},C=u._('Add a comment', 'commentComposer.placeholder.addAComment', 'Adding text to a new comment');return(0,S.jsxs)(s.xu,{children:[(0,S.jsxs)(s.kC,{alignItems:"stretch",justifyContent:"start",children:[r&&E&&(0,S.jsx)(s.xu,{alignItems:"end",display:"flex",marginEnd:2,children:(0,S.jsx)(f.qE,{src:E.image_medium_url,name:E.username,size:"md"})}),(0,S.jsxs)(s.xu,{flex:"grow",minHeight:44,rounding:6,dangerouslySetInlineStyle:{__style:{borderColor:"#efefef",borderStyle:"solid",borderWidth:2}},children:[(0,S.jsx)(s.xu,{alignItems:"center",display:"flex",height:"100%",marginStart:4,children:(0,S.jsx)(s.iP,{accessibilityLabel:u._('Add a comment for this Pin', 'InlineCommentComposerInternal.commentForPin', 'Accessibility label for comment container to indicate where a user should tap to start writing a comment.'),onTap:({event:e})=>{i(e)},fullHeight:!1,children:(0,S.jsx)(s.xv,{color:"subtle",size:"300",children:C})})}),(0,S.jsx)("input",{id:"hiddenInput",style:{visibility:"hidden",height:0,"font-size":"16px"}})]})]}),t&&(0,S.jsx)(P.Z,{inCommentModuleExp:!0,isInCommentModule:n,isModalOpen:!1,onDismiss:e,pinId:l,pinKey:d,viewParameter:I})]})}var T=n(997138),I=n(264322),E=n(349700);let C=void 0!==l?l:l=n(457281);function D({closeThreadModal:e,closeupAttributionUsername:t,comment:n,featuredCommentId:i,hasManyComments:l,isCommentThreadOpen:a,isEligibleForPinReactions:r,isStoryPin:o,pinId:d,pinKey:u,pinVideosId:h,viewParameter:_}){let{childDataKey__DEPRECATED:g}=(0,c.sr)(C,u,{type:"pin",useLegacyAdapter:()=>({})}),y=(0,p.ZP)(),{checkExperiment:v}=(0,m.F)(),{isAuth:f}=(0,b.Z)(),x=y._('posted a photo', 'comment.preview.text.photo', 'Comment preview text for an image that a user posted'),k=y._('posted a sticker', 'comment.preview.text.sticker', 'Comment preview text for a sticker that a user posted'),{user:{first_name:w,image_medium_url:A,username:D},id:j,tags:F=[]}=n,R=!1,L=[n.user],z="";if("aggregatedcomment"===n.type){var O;R=n.highlighted_by_pin_owner,L.push(...n.tagged_users);let e=(null===(O=n.media)||void 0===O?void 0:O.media_type)===1;z=`${D} ${e?k:n.text}`}else{let e="userdiditdata"===n.type;z=`${D} ${e?x:n.details}`}let M=[{offset:0,length:D.length,color:"darkGray"},...F.map(e=>({...e,offset:(e.offset||0)+D.length+1,color:"shopping"}))],{anyEnabled:N}=v(`${f?"auth":"unauth"}_mweb_reactions_expansion_mvp_${h||o?"idea_video":"web"}_pin`),B=1===n.comment_tag;return(0,S.jsxs)(s.xu,{marginBottom:4,children:[(0,S.jsxs)(s.kC,{alignItems:"stretch",justifyContent:"start",children:[(0,S.jsx)(s.xu,{marginEnd:2,children:(0,S.jsx)(T.Z,{isQuestion:B,name:w||D||"",size:"sm",src:null!=A?A:""})}),(0,S.jsxs)(s.kC,{flex:"grow",justifyContent:"center",direction:"column",children:[(0,S.jsxs)(s.kC,{justifyContent:"between",children:[(0,S.jsx)(s.kC.Item,{minWidth:0,children:(0,S.jsx)(s.kC,{direction:"column",dataTestId:"author-and-comment-container",children:(0,S.jsx)(I.Z,{hasManyComments:l,isFirstTaggedUserAuthor:!0,isInCommentModule:!0,shouldShowFirstNameOnly:!0,taggedUsers:L,tags:M,text:z})})}),i===j&&(0,S.jsx)(s.xu,{alignSelf:"center",color:"primary",height:8,rounding:"pill",minWidth:8})]}),R&&(0,S.jsx)(s.xu,{marginTop:4,marginBottom:3,children:(0,S.jsx)(s.xv,{size:"100",children:(0,E.nk)(y._('Highlighted by @{{ closeupAttributionUsername }}', 'comment.highlighted.label', 'label on comment that has been highlighted by the Pin creator'),{closeupAttributionUsername:t})})})]})]}),a&&(0,S.jsx)(P.Z,{inCommentModuleExp:!0,isEligibleForPinReactions:r,isModalOpen:!0,isReactionsExpansionEnabled:N,onDismiss:e,pinId:d,pinKey:g,viewParameter:_})]})}let j=void 0!==a?a:a=n(313342);function F({inCommentModuleExp:e,isEligibleForPinReactions:t,isProductPin:n,pinId:i,pinKey:l}){var a,f;let{data:b,childDataKey__DEPRECATED:x}=(0,c.sr)(j,l,{type:"pin",useLegacyAdapter:e=>{var t,n,i,l;return{aggregatedPinData:e.aggregated_pin_data&&{commentCount:e.aggregated_pin_data.comment_count,didItData:e.aggregated_pin_data.did_it_data&&{imagesCount:e.aggregated_pin_data.did_it_data.images_count},entityId:null!==(t=e.aggregated_pin_data.id)&&void 0!==t?t:""},closeupAttribution:e.closeup_attribution&&{entityId:null!==(n=e.closeup_attribution.id)&&void 0!==n?n:"",username:e.closeup_attribution.username},commentsDisabled:e.comments_disabled,pinner:e.pinner&&{entityId:e.pinner.id},storyPinData:e.story_pin_data&&{entityId:null!==(i=e.story_pin_data.id)&&void 0!==i?i:""},videos:e.videos&&{videoList:e.videos.video_list&&{__typename:"VideoList"},entityId:null!==(l=e.videos.id)&&void 0!==l?l:""}}}}),{aggregatedPinData:k,closeupAttribution:P,commentsDisabled:w,storyPinData:T,videos:I}=b||{},{entityId:E,commentCount:C,didItData:F}=k||{},R=(0,p.ZP)(),{logContextEvent:L}=(0,u.v)(),{comment_id:z}=(0,o.useParams)(),O=(0,y.R)(),{viewParameter:M}=O,N=(0,g.ml)(),{checkExperiment:B}=(0,m.F)(),{isAuthenticated:Z}=(0,h.B)(),K=N&&["no_collapse_by_default","collapse_by_default"].includes(B(Z?"closeup_auth_mweb_collapsable_modules":"closeup_unauth_mweb_collapsable_modules").group),[U,H]=(0,r.useState)(!1),[V,G]=(0,r.useState)(!1),[$,W]=(0,r.useState)(!1),q=(null!=C?C:0)+(null!==(a=null==F?void 0:F.imagesCount)&&void 0!==a?a:0),Y=!!(null!=T&&T.entityId),X=(0,_.Z)(E&&e?{name:"UnifiedCommentsPreviewResource",options:{aggregated_pin_id:E}}:null),{aggregated_comment:Q,unified_comment:J,user_did_it_data:ee}=(null===(f=X.data)||void 0===f?void 0:f[0])||{},et=Q||ee||J;return((0,r.useEffect)(()=>{setTimeout(()=>{W(!0)},1e3)},[]),$)?(0,S.jsxs)(r.Fragment,{children:[!n&&(0,S.jsx)(v.Z,{}),(0,S.jsx)(s.xu,{paddingX:2,marginBottom:6,marginTop:6,children:(0,S.jsx)(s.xu,{marginTop:6,marginBottom:6,children:(0,S.jsxs)(s.iP,{onTap:()=>{et?(L({component:13464,element:11533,event_type:10554,view_type:3}),H(!0)):G(!0)},children:[(0,S.jsx)(d.Z,{aggregatedPinDataId:E,commentCount:q,commentsDisabled:w,inCommentModuleExp:e,isEligibleForPinReactions:t,isInCommentModule:!0,nativePinType:Y&&"storyPin"||(null==I?void 0:I.videoList)&&"video"||"image",pinUid:i,shouldUseGraphQL:"graphqlRef"===x.type}),w?(0,S.jsx)(s.xv,{color:"subtle",children:R._('Comments are turned off for this Pin', 'commentModule.disabledState.message', 'Comments are turned off or disabled for this Pin')}):(0,S.jsxs)(s.xu,{children:[!!et&&(0,S.jsx)(D,{closeThreadModal:()=>{H(!1)},closeupAttributionUsername:null==P?void 0:P.username,comment:et,featuredCommentId:z,hasManyComments:q>1,isCommentThreadOpen:U,isEligibleForPinReactions:t,isStoryPin:Y,pinId:i,pinKey:x,pinVideosId:null==I?void 0:I.entityId,viewParameter:M}),(0,S.jsx)(A,{closeCommentComposerModal:()=>{G(!1)},isCommentComposerOpen:V,isInCommentModule:!0,openCommentComposerModal:e=>{G(!0),e.stopPropagation()},pinKey:x,pinId:i,shouldShowAvatar:0===q})]})]})})}),!K&&(0,S.jsx)(v.Z,{})]}):null}},633988:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(883119),l=n(398061);let a=new i.H3([l.e]),r=a},706443:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(883119),l=n(444445),a=n(785893);let r=function({marginStart:e=l.D6}){return(0,a.jsx)(i.xu,{height:1,width:"100vw",dangerouslySetInlineStyle:{__style:{marginLeft:`${-(4*e)}px`,backgroundColor:"#E9E9E9"}}})}},632521:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(667294),l=n(883119),a=n(407043),r=n(121151),o=n(898781),s=n(785893);function d({pinId:e,viewParameter:t}){let{logContextEvent:n}=(0,a.v)(),d=(0,o.ZP)(),[u,c]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{c(!1)},[e]),u)?null:(0,s.jsx)(r.ZP,{accessibilityModalLabel:"",mobileIsSlideUp:!0,isOpen:!0,onDismiss:()=>{n({event_type:102,view_type:3,view_parameter:t,element:12511}),c(!0)},mobileHideCloseIcon:!0,children:(0,s.jsx)(l.xu,{rounding:6,padding:9,marginBottom:3,color:"default",children:(0,s.jsxs)(l.kC,{gap:{row:0,column:4},direction:"column",alignItems:"center",justifyContent:"center",children:[(0,s.jsx)(l.xv,{align:"center",children:d._('This Pin was created with early test tools that no longer exist, so parts of the content may be permanently missing.', 'storyPinCloseup.MobileModal.V1DeprecationMessage', 'Message letting user know that V1 Idea Pins are deprecated.')}),(0,s.jsx)(l.zx,{color:"red",text:d._('Got it', 'storyPinCloseup.MobileModal.V1DeprecationAcknowledgementButton', 'Button for user\'s acknowledgement of V1 idea pins deprecation.'),onClick:()=>{n({event_type:102,view_type:3,view_parameter:t,element:12511}),c(!0)}})]})})})}},583281:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(883119),l=n(780280),a=n(785893);let r=new i.H3([new i.Ry(0)]);function o({onMoreButtonTap:e,onSendButtonTap:t}){let{userAgent:{platform:n}}=(0,l.B)();return(0,a.jsxs)(i.xu,{position:"absolute",top:!0,zIndex:r,width:"100%",padding:6,display:"flex",justifyContent:"end",children:[(0,a.jsx)(i.hU,{accessibilityLabel:"share",icon:"android"===n?"android-share":"share",bgColor:"transparentDarkGray",onClick:t,size:"md"}),(0,a.jsx)(i.xu,{marginStart:2,children:(0,a.jsx)(i.hU,{accessibilityLabel:"overflow menu",icon:"ellipsis",bgColor:"transparentDarkGray",onClick:e,size:"md"})})]})}},628320:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var i=n(883119),l=n(780280),a=n(50286),r=n(667294),o=n(930912),s=n(700380),d=n(52022),u=n(501338),c=n(829407),p=n(785893);function m({pinId:e,imageSignature:t}){let n=(0,a.HG)(),l=(0,a.ml)(),[m,h]=(0,r.useState)(!1),[_,g]=(0,r.useState)(!1),y=(0,r.useRef)(),v=(0,d.Z)();return(0,c.Z)(()=>{let e=(0,s.Z)(()=>{if(y.current){let t=y.current,{top:n}=t.getBoundingClientRect(),i=n>(l?u.SB:u.Pw);!_&&i&&(h(!0),g(!0),window.removeEventListener("scroll",e))}},10);n?h(!0):window.addEventListener("scroll",e)}),(0,p.jsx)(i.xu,{display:"flex",alignItems:"stretch",justifyContent:"end",ref:y,paddingX:n?2:0,"data-test-id":"visual-search-icon",children:(0,p.jsx)(i.xu,{overflow:"hidden",children:(0,p.jsx)(i.iP,{onTap:()=>{v({action:"click",item:"visual-search-icon",within:"pin-image"})},children:(0,p.jsx)(o.default,{animateShopButton:m,id:e,imageSignature:t,onAnimationComplete:()=>{h(!1)},surfaceType:"flashlight"})})})})}var h=n(616550),_=n(407043),g=n(643010),y=n(898781);function v({pinId:e,viewParameter:t}){let n=(0,y.ZP)(),l=(0,g.vs)(),{logContextEvent:a}=(0,_.v)(),r=(0,h.useHistory)();return(0,c.Z)(()=>{a({element:10405,event_type:120,view_type:3})}),(0,p.jsx)(i.iP,{onTap:()=>{a({component:128,element:10405,event_type:102,view_parameter:t,view_type:3}),r&&e&&r.push(`/pin/${e}#imgViewer`)},children:(0,p.jsx)(i.xu,{"data-test-id":"expand-action-icon",alignItems:"center",dangerouslySetInlineStyle:{__style:{backgroundColor:l?"rgba(51, 51, 51, 0.8)":"rgba(255, 255, 255, 0.8)",transform:"scaleX(-1)",marginLeft:-4}},display:"flex",height:44,justifyContent:"center",rounding:"pill",width:44,children:(0,p.jsx)(i.JO,{accessibilityLabel:n._('Button to expand the image', 'expandAction.button', 'Button to expand the pin image to full screen'),color:"default",icon:"maximize",size:20})})})}var f=n(773285),b=n(867820),x=n(872482);function k({imageSignature:e,pinId:t,showUpsell:n=!0,viewParameter:r}){let o=(0,y.ZP)(),{logContextEvent:s}=(0,_.v)(),u=(0,d.Z)(),{isAuthenticated:m}=(0,l.B)(),v=(0,g.vs)(),k=(0,a.HG)(),P=(0,a.ml)(),S=(0,h.useHistory)(),w=(0,x.a)(),{checkExperiment:A}=(0,f.F)();return(0,c.Z)(()=>{s({aux_data:{image_signature:e},component:128,element:234,event_type:120,view_parameter:r,view_type:3})}),(0,p.jsx)(i.iP,{onTap:({event:i})=>{m||((0,b.My)(`${k?"dweb":"mweb"}_pin_page.flashlight_icon_click`),u({action:"click",item:"visual-search-icon",within:"pin-image"})),i.stopPropagation(),i.preventDefault(),s({aux_data:{image_signature:e},component:128,element:234,event_type:102,view_parameter:r,view_type:3}),!m&&P&&w&&n&&!A("mweb_unauth_remove_visual_search_app_upsell").anyEnabled?w.setShouldShowVisualSearchAppUpsell(!0):S&&t?S.push(`/pin/${t}/visual-search/`):(0,b.My)(`${k?"dweb":"mweb"}_pin_page.flashlight_icon_click.error`)},tapStyle:"compress",children:(0,p.jsx)(i.xu,{"data-test-id":"visual-search-icon",alignItems:"center",dangerouslySetInlineStyle:{__style:{backgroundColor:v?"rgba(51, 51, 51, 0.8)":"rgba(255, 255, 255, 0.8)"}},display:"flex",height:44,justifyContent:"center",rounding:"pill",width:44,children:(0,p.jsx)(i.JO,{accessibilityLabel:o._('Visual search', 'flashlight.button', 'Button to search for visually similar Pins'),color:"default",icon:"flashlight",size:20})})})}var P=n(730440);let S=()=>{let{isScrolledToPins:e,scrollToPins:t}=(0,P.Z)(),n=(0,y.ZP)();return e&&t(!1),(0,p.jsx)(i.xu,{"data-test-id":"more-like-this-button",children:(0,p.jsx)(i.iP,{onTap:({event:e})=>{e.stopPropagation(),e.preventDefault(),(0,b.My)("remove_drawer_exp.more_like_this.scroll_to_pins"),t(!0)},children:(0,p.jsx)(i.kC,{alignItems:"stretch",justifyContent:"end",children:(0,p.jsxs)(i.xu,{alignContent:"between",alignItems:"center",color:"default",display:"flex",padding:3,rounding:"pill",children:[(0,p.jsx)(i.xu,{marginEnd:3,rounding:"pill",color:"default",children:(0,p.jsx)(i.xv,{inline:!0,weight:"bold",children:n._('More like this', 'mobilePinPage.relatedPins.title', 'On mobile web pin page, title for related pins beneath pin closeup')})}),(0,p.jsx)(i.JO,{accessibilityLabel:n._('Scroll to related pins button', 'mobilePinPage.relatedPins.scroll', 'Button to auto scroll to the related pins section'),color:"dark",icon:"arrow-down",inline:!0})]})})})})},w=({isDesktop:e})=>e?-68:-60;function A({imageSignature:e,inPinImageResizeExp:t=!1,pinId:n,type:r,viewParameter:o}){let{isAuthenticated:s}=(0,l.B)(),d=(0,a.HG)();return(0,p.jsx)(i.Le,{bottom:0,children:(0,p.jsx)(i.xu,{dangerouslySetInlineStyle:{__style:{marginTop:w({isDesktop:d}),marginRight:t&&"visualSearch"===r?-8:0,marginLeft:t&&"expand"===r?-4:0}},padding:2,position:"expand"===r?"relative":"absolute",right:"expand"!==r,children:"moreLikeThisButton"===r?(0,p.jsx)(S,{}):"expand"===r?(0,p.jsx)(v,{pinId:n,viewParameter:o}):"visualSearch"!==r||s?(0,p.jsx)(k,{imageSignature:e,pinId:n,viewParameter:o}):(0,p.jsx)(m,{pinId:n})})})}},358381:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var i,l=n(667294),a=n(702664),r=n(167912),o=n(883119),s=n(112690),d=n(356997),u=n(898781),c=n(892819),p=n(349700),m=n(773285),h=n(780280),_=n(819354),g=n(815613),y=n(461773),v=n(350118),f=n(698330),b=n(785893);let x=void 0!==i?i:i=n(521835);function k({hideFollowButton:e,hideFollowerCount:t,viewerId:n,justifyContent:i,avatarSize:r,seeMoreButton:v,graphqlRef:x,pinId:k,pinImageSignature:P,userData:S,clientTrackingParams:w}){let A=(0,u.ZP)(),T=(0,c.Z)(),{checkExperiment:I}=(0,m.F)(),{isAuthenticated:E}=(0,h.B)(),C=E?I("auth_closeup_redesign").anyEnabled:I("unauth_closeup_redesign").anyEnabled,{id:D="",image_medium_url:j,follower_count:F,followed_by_me:R,username:L="",is_ads_only_profile:z=!1,ads_only_profile_site:O=""}=S,M=(0,f.mN)()(D),N=(0,a.useDispatch)(),B=(0,l.useRef)(),Z=(0,s.Z)(),{locale:K}=(0,h.B)(),[U,H]=(0,l.useState)(M?M.explicitly_followed_by_me:R),V=z&&O,G=V&&O?O:`/${L}/`;return(0,b.jsxs)(o.xu,{display:"flex",direction:"row","data-test-id":"official-user-attribution",alignItems:"center",justifyContent:i||"center",children:[(0,b.jsx)(o.kC,{alignItems:"stretch",justifyContent:"start",flex:"shrink",children:(0,b.jsx)(o.Tg,{href:G,rel:V?"nofollow":"none",target:V?"blank":null,onTap:()=>{V&&Z({event_type:9371,element:13382,component:123})},children:(0,b.jsx)(d.qE,{name:L,size:r||"md",src:null!=j?j:""})})}),(0,b.jsxs)(o.xu,{display:"flex",direction:"column",marginStart:2,justifyContent:"center",minWidth:0,children:[(0,b.jsx)(_.Z,{fontWeight:"bold",graphqlRef:x,pinId:k}),!t&&(0,b.jsx)(o.xv,{size:C?"200":"300",children:(0,p.nk)(A._('{{ followerCount }} followers', 'closeup.officialUser.followerCount', 'Official user\'s follower count'),{followerCount:T(K,F||0,{shortform:!0,shortform_maximum_fraction_digits:0})})})]}),v,!e&&(0,b.jsx)(l.Fragment,{children:(0,b.jsx)(o.xu,{marginStart:"auto",ref:B,children:(0,b.jsx)(g.Z,{followEventType:45,id:D,isFollowed:U,isUserFollowButton:!0,isUserMe:n===D,onFollow:e=>{H(!0),N((0,y.ZN)(e,null,w))},onUnfollow:e=>{H(!1),N((0,y.fv)(e,null,w))},pinKey:null!=x?x:null,size:"lg",shouldUseLegoColors:!0,unfollowEventType:46,viewType:3,auxData:k&&P?{pin_id:k,image_signature:P}:void 0,clientTrackingParams:w})})})]})}function P({graphqlRef:e,pinId:t,...n}){var i,a,o,s,d,u;let c=(0,r.useFragment)(x,e),p=c.closeupAttribution;return p&&c?(0,b.jsx)(k,{...n,pinId:t,pinImageSignature:null!==(i=c.imageSignature)&&void 0!==i?i:void 0,userData:{id:null!==(a=p.entityId)&&void 0!==a?a:void 0,image_medium_url:null!==(o=p.imageMediumUrl)&&void 0!==o?o:void 0,follower_count:null!==(s=p.followerCount)&&void 0!==s?s:void 0,followed_by_me:null!==(d=p.followedByMe)&&void 0!==d?d:void 0,username:null!==(u=p.username)&&void 0!==u?u:void 0,is_ads_only_profile:!!p.isAdsOnlyProfile,ads_only_profile_site:p.adsOnlyProfileSite},graphqlRef:c}):(0,b.jsx)(l.Fragment,{})}function S({pinId:e,...t}){var n;let i=(0,v.S6)()(e),a=null==i?void 0:i.closeup_attribution;return a&&i?(0,b.jsx)(k,{...t,pinId:e,pinImageSignature:null!==(n=i.image_signature)&&void 0!==n?n:void 0,userData:a}):(0,b.jsx)(l.Fragment,{})}function w({graphqlRef:e,...t}){return e?(0,b.jsx)(P,{...t,graphqlRef:e}):(0,b.jsx)(S,{...t})}},819354:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var i,l=n(667294),a=n(167912),r=n(883119),o=n(112690),s=n(512176),d=n(350118),u=n(785893);let c=void 0!==i?i:i=n(347806);function p({getDisplayName:e,fontWeight:t="normal",isVerifiedMerchant:n,fullName:i="",verifiedIdentityVerified:l,username:a="",isAdsOnlyProfile:d=!1,adsOnlyProfileSite:c="",onMouseDown:p}){let m=(0,o.Z)(),h=d&&c,_=h&&c?c:`/${a}/`;return(0,u.jsx)(r.Tg,{href:_,rel:h?"nofollow":"none",target:h?"blank":null,onMouseDown:()=>{p&&p()},onTap:()=>{h&&m({event_type:9371,element:13382,component:123})},children:(0,u.jsxs)(r.kC,{alignItems:"center",direction:"row",justifyContent:"start",minWidth:0,children:[(0,u.jsx)(r.xu,{"data-test-id":"creator-profile-name",children:(0,u.jsx)(r.xv,{size:"300",lineClamp:1,weight:t,children:e?e(i):i})}),(n||l)&&(0,u.jsx)(r.xu,{marginStart:1,marginEnd:2,children:(0,u.jsx)(s.Z,{showVerifiedIdentity:!n,isVerifiedMerchant:n,size:"sm"})})]})})}function m(e){var t,n,i,r,o,s;let d=(0,a.useFragment)(c,e.graphqlRef),m=null==d?void 0:d.closeupAttribution;return m?(0,u.jsx)(p,{getDisplayName:e.getDisplayName,fontWeight:e.fontWeight,isVerifiedMerchant:null!==(t=m.isVerifiedMerchant)&&void 0!==t?t:void 0,fullName:null!==(n=m.fullName)&&void 0!==n?n:void 0,verifiedIdentityVerified:null!==(i=null===(r=m.verifiedIdentity)||void 0===r?void 0:r.verified)&&void 0!==i?i:void 0,username:null!==(o=m.username)&&void 0!==o?o:void 0,isAdsOnlyProfile:null!==(s=m.isAdsOnlyProfile)&&void 0!==s&&s,adsOnlyProfileSite:m.adsOnlyProfileSite,onMouseDown:e.onMouseDown}):(0,u.jsx)(l.Fragment,{})}function h(e){var t;let n=(0,d.S6)()(e.pinId),i=null==n?void 0:n.closeup_attribution;return i?(0,u.jsx)(p,{getDisplayName:e.getDisplayName,fontWeight:e.fontWeight,isVerifiedMerchant:i.is_verified_merchant,fullName:i.full_name,verifiedIdentityVerified:null===(t=i.verified_identity)||void 0===t?void 0:t.verified,username:i.username,isAdsOnlyProfile:i.is_ads_only_profile,adsOnlyProfileSite:i.ads_only_profile_site,onMouseDown:e.onMouseDown}):(0,u.jsx)(l.Fragment,{})}function _(e){return e.graphqlRef?(0,u.jsx)(m,{...e}):(0,u.jsx)(h,{...e})}},667790:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Q});var i,l,a=n(667294),r=n(167912),o=n(883119),s=n(319915),d=n(898781);let u=({hasRecipe:e,hasArticle:t,i18n:n})=>e?n._('Make it', 'pinPage.pinActionBar.Makeit.Button', 'Text on a button that lets users visit the source of the pin'):t?n._('Read it', 'pinPage.pinActionBar.Readit.Button', 'Text on a button that lets users visit the source of the pin'):n._('Visit', 'pinPage.pinActionBar.visitButton', 'Text on a button that lets users visit the source of the pin');var c=n(467570),p=n(773285),m=n(780280),h=n(947599),_=n(50286),g=n(19121),y=n(202139),v=n(844974);let f=()=>{let e=(0,v.qn)("relatedPinsAppUpsell"),t=e&&Date.now()-e>y.F4;return!e||t};var b=n(938917),x=n(538232),k=n(763839),P=n(767094),S=n(741927),w=n(203201),A=n(605073),T=n(52022),I=n(856306),E=n(361115),C=n(785893);let D=void 0!==i?i:i=n(721415),j=({clickthrough:e,onLoad:t,actionButtonText:n})=>{let i=(0,T.Z)(),l=(0,E.Yg)();return(0,a.useEffect)(()=>{t&&t()},[t]),(0,C.jsx)(o.xu,{"data-test-id":"main-pin-section-visit-button",children:(0,C.jsx)(o.zx,{accessibilityLabel:n,fullWidth:!0,size:"lg",onClick:()=>{i({action:"click",item:"main-pin-section-visit-button"}),null==l||l("main_pin_clickthrough"),e()},text:n||""})})},F=({clickthroughInterstitialExperience:e,graphqlRef:t,actionButtonText:n})=>{let i=(0,r.useFragment)(D,t),l=(0,I.I)({clickthroughInterstitialExperience:e,graphqlRef:i});return(0,C.jsx)(j,{clickthrough:l,actionButtonText:n})},R=({clickthroughInterstitialExperience:e,pinId:t,actionButtonText:n})=>{let i=(0,I.Z)({clickthroughInterstitialExperience:e,pinId:t});return(0,C.jsx)(j,{clickthrough:i,actionButtonText:n})};function L({clickthroughInterstitialExperience:e,pinId:t,graphqlRef:n,actionButtonText:i}){return n?(0,C.jsx)(F,{graphqlRef:n,clickthroughInterstitialExperience:e,actionButtonText:i}):(0,C.jsx)(R,{clickthroughInterstitialExperience:e,pinId:t,actionButtonText:i})}var z=n(438010),O=n(256588),M=n(350118),N=n(698330),B=n(4700),Z=n(24987),K=n(246340);let U=(0,a.lazy)(()=>n.e(97180).then(n.bind(n,197180))),H=(0,a.lazy)(()=>Promise.resolve().then(n.bind(n,328896))),V=void 0!==l?l:l=n(833641),G=({children:e,experience:t,onCompleteRef:n})=>{let i=(0,a.useRef)();return(0,C.jsxs)(a.Fragment,{children:[(0,C.jsx)(o.xu,{ref:i,children:(0,C.jsx)(o.xu,{children:e})}),(0,C.jsx)(s.Z,{name:"SafeSuspense_PinActionBarSaveButton_ExperienceTooltipDelayedPulsar",children:(0,C.jsx)(h.Z,{children:(0,C.jsx)(U,{experience:t,eligibleIds:[503459,503761],anchor:i.current,showTooltip:!0,onCompleteRef:n})})})]})},$=()=>{let{locale:e}=(0,m.B)();(0,a.useEffect)(()=>{(0,c.we)(e)},[e])};function W({pinId:e,viewParameter:t}){let n=(0,d.ZP)(),[i,l]=(0,a.useState)(!1),r=(0,a.useRef)(null);return(0,C.jsxs)(o.xu,{ref:r,children:[(0,C.jsx)(o.kC,{alignItems:"center",justifyContent:"start",children:(0,C.jsx)(Z.Z,{onDefaultSendButtonClick:()=>{l(!0)},viewParameter:t})}),i&&(0,C.jsx)(K.Z,{anchor:r.current,objectId:e,objectType:1,onDismiss:()=>l(!1),viewType:3,viewParameter:t,component:194,title:n._('Send this pin', 'PinCloseup.ShareMenu.Title', 'title for share menu popover')})]})}function q({aggregatedPinDataId:e,clickthroughInterstitialExperience:t,experience:n,inCommentModuleExp:i,isEligibleForAggregatedComments:l,isEligibleForPinReactions:r,isNewUser:u,isRemovablePin:c,onEditButtonClick:y,onMobileTap:v,onSendButtonClick:T,pinId:I,actionButtonText:D,pinnedToBoardId:j,pinnedToBoardUrl:F,nativePinType:R,scrolledToRelatedPins:M,shouldShowReactions:K,shouldShowBackButton:U,shouldShowShareOnVideoCloseup:V,isEligibleToVisitPin:q,hasPin:Y,isEligibleForPdp:X,pinnerBlockedByMe:Q,maybeGraphqlRef:J,isActionBarInline:ee}){let et=(0,d.ZP)(),{checkExperiment:en}=(0,p.F)(),ei=(0,_.HG)(),{isAuthenticated:el}=(0,m.B)(),ea=(0,x.R)(),{clientTrackingParams:er,isStoryPin:eo,shouldRenderAsStoryPin:es,saveButtonConfig:ed,viewParameter:eu}=ea,ec=(0,b.Z)(),ep=(0,a.useRef)(null),{id:em}=(0,g.Z)(),eh=(0,N.mN)()(null!=em?em:""),{countryFromIp:e_}=(0,m.B)(),{COUNTRY_CODES:eg}=O.LAW_CONFIGURATION.dsa,ey=eg.includes(e_),ev=!el&&ey,ef=X&&el||!ei&&!X,eb=el&&!ei&&en("auth_mweb_inline_action_bar").anyEnabled,ex=(0,k.z)(),ek=(0,E.Yg)();$();let eP=!!n&&8===n.type;if(!ei&&eo&&es)return null;if(M&&el&&!eb&&!ef){let e=ec&&u&&!(null!=eh&&eh.is_partner)&&f();return(0,C.jsx)(S.Z,{backButton:U?(0,C.jsx)(P.Z,{bgColor:"white"}):null,headerLimitedOverflow:eP,isRelatedPinsAppUpsellShown:e,isTransparentBackground:!0,isActionBarInline:ee,showHorizontalActionBar:ef,isDesktop:ei})}let eS=!ei&&!X&&l&&(!el||["enabled","running_experiments"].includes(en("community_engagement_holdout_2023_h1").group));return(0,C.jsx)(S.Z,{isActionBarInline:ee,showHorizontalActionBar:ef,backButton:U?(0,C.jsx)(P.Z,{}):null,commentButton:eS&&(0,C.jsx)(z.default,{inCommentModuleExp:i,isEligibleForPinReactions:r,pinKey:J?{type:"graphqlRef",data:J}:{type:"deprecated",data:I},pinId:I,viewParameter:eu}),editOrMoreButton:!ef&&(y?(0,C.jsx)(o.xu,{"data-test-id":"editBoardButton",children:(0,C.jsx)(o.hU,{accessibilityLabel:et._('edit', 'Pin edit button', 'Pin edit button'),iconColor:"darkGray",icon:"edit",onClick:({event:e})=>y(e),size:"lg"})}):(0,w.E)(ea,ev)&&!!Y&&(0,C.jsx)(o.xu,{"data-test-id":"ellipsis-button",children:(0,C.jsx)(A.Z,{onMobileTap:v,pinId:I,graphqlRef:J})})),headerLimitedOverflow:eP,saveButton:el&&(c||Q)?null:(0,C.jsx)(G,{experience:n,onCompleteRef:ep,children:(0,C.jsx)(B.Z,{clientTrackingParams:er,deeplinkUri:ed.shouldShowSavedButton&&F||ed.repinPageLocation.deeplinkUri,onTouch:e=>{var t;null===(t=ep.current)||void 0===t||t.call(ep),ed.onSaveButtonClick(e);let n=!!(null!=ex&&ex.getData(I));null==ek||ek(n?"main_pin_savebutton_pinactionbar_withcloseuppreviewdata":"main_pin_savebutton_pinactionbar")},onUnsave:ed.onUnsaveButtonClick,pinId:I,pinnedToBoardId:j,shouldShowSavedButton:ed.shouldShowSavedButton,to:ed.repinPageLocation.mwebUri,viewType:3,viewParameter:eu,color:"primary"})}),shareButtonGroup:K&&R?(0,C.jsxs)(o.kC,{alignItems:"center",justifyContent:"start",children:[(0,C.jsx)(s.Z,{name:"SafeSuspense_PinActionBarSaveButton_ReactionPickerContainer",children:(0,C.jsx)(h.Z,{children:(0,C.jsx)(H,{aggregatedPinDataId:e,clientTrackingParams:er,pinId:I,nativePinType:R,experience:n})})}),V&&(0,C.jsx)(Z.Z,{onDefaultSendButtonClick:T,viewParameter:ea.viewParameter})]}):(0,C.jsx)(o.xu,{"data-test-id":"share-button",children:!el&&ei?(0,C.jsx)(W,{pinId:I,viewParameter:ea.viewParameter}):(0,C.jsx)(o.kC,{alignItems:"center",justifyContent:"start",children:(0,C.jsx)(Z.Z,{onDefaultSendButtonClick:T,viewParameter:ea.viewParameter})})}),visitButton:!V&&q?(0,C.jsx)(o.xu,{paddingX:2,"data-test-id":"visit-button-mobile",children:(0,C.jsx)(L,{clickthroughInterstitialExperience:t,pinId:I,graphqlRef:J,actionButtonText:D})}):null,isDesktop:ei})}let Y=({graphqlRef:e,...t})=>{var n,i,l,a,o;let s=(0,d.ZP)(),c=(0,r.useFragment)(V,e),p=null===(n=c.richMetadata)||void 0===n?void 0:n.recipe,m=u({hasRecipe:!!(null!=p&&p.name&&null!==(i=p.categorizedIngredients)&&void 0!==i&&i.length&&!p.fromAggregatedData),hasArticle:!!(null!==(l=c.richMetadata)&&void 0!==l&&l.article),i18n:s});return(0,C.jsx)(q,{aggregatedPinDataId:null===(a=c.aggregatedPinData)||void 0===a?void 0:a.entityId,hasPin:!!c,isEligibleForAggregatedComments:c.isEligibleForAggregatedComments,isEligibleForPdp:c.isEligibleForPdp,pinnerBlockedByMe:null===(o=c.pinner)||void 0===o?void 0:o.blockedByMe,maybeGraphqlRef:c,actionButtonText:m,...t})},X=({pinId:e,...t})=>{var n,i,l;let a=(0,M.S6)()(e),r=(0,d.ZP)(),o=null==a?void 0:a.pinner,s=null==a?void 0:null===(n=a.rich_metadata)||void 0===n?void 0:n.recipe,c=u({hasRecipe:!!(null!=s&&s.name&&s.categorized_ingredients&&!s.from_aggregated_data),hasArticle:!!(null!=a&&null!==(i=a.rich_metadata)&&void 0!==i&&i.article),i18n:r});return(0,C.jsx)(q,{aggregatedPinDataId:null==a?void 0:null===(l=a.aggregated_pin_data)||void 0===l?void 0:l.id,pinId:e,actionButtonText:c,hasPin:!!a,isEligibleForAggregatedComments:null==a?void 0:a.is_eligible_for_aggregated_comments,isEligibleForPdp:null==a?void 0:a.is_eligible_for_pdp,pinnerBlockedByMe:null==o?void 0:o.blocked_by_me,maybeGraphqlRef:null,...t})};function Q({graphqlRef:e,...t}){return e?(0,C.jsx)(Y,{graphqlRef:e,...t}):(0,C.jsx)(X,{...t})}},767094:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(883119),l=n(780280),a=n(538232),r=n(404508),o=n(785893);let s=({bgColor:e,color:t})=>{let{viewParameter:n}=(0,a.R)(),{isAuthenticated:s}=(0,l.B)();return(0,o.jsx)(i.xu,{"data-test-id":"back-button",children:(0,o.jsx)(r.Z,{bgColor:e,color:t||"darkGray",fallbackUrl:s?"/":"/ideas",padding:"auto",viewParameter:n,viewType:3,size:"xl"})})}},741927:(e,t,n)=>{"use strict";n.d(t,{V:()=>p,Z:()=>h});var i=n(667294),l=n(883119),a=n(313047),r=n(773285),o=n(780280),s=n(571577),d=n(785893);let u=new l.Ry(2),c=new l.Ry(1),p=new l.Ry(4),m=({children:e,headerLimitedOverflow:t,isDesktop:n,isActionBarInline:i,isRelatedPinsAppUpsellShown:r,isTransparentBackground:o,showHorizontalActionBar:s,zIndex:u,isCloseupRedesign:c})=>!n&&s?(0,d.jsxs)(l.xu,{children:[(0,d.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{opacity:i?0:1,transition:"opacity .4s ease-in-out"}},children:(0,d.jsx)(a.FixedFooter,{paddingY:5,hasTopShadow:!0,zIndex:u,children:e},String(o))}),i&&(0,d.jsx)(l.xu,{paddingY:c?0:5,dangerouslySetInlineStyle:{__style:{opacity:i?1:0,transition:"opacity .4s ease-in-out"}},children:e})]}):(0,d.jsx)(a.FixedHeader,{headerLimitedOverflow:t,isTranslucent:!o,isTransparentBackground:o,ignoreObstructions:o,paddingY:r?0:void 0,zIndex:u,children:e},String(o)),h=({backButton:e,commentButton:t,copyButton:n,editOrMoreButton:a,headerLimitedOverflow:h,isActionBarInline:_=!1,isDesktop:g,isRelatedPinsAppUpsellShown:y,isTransparentBackground:v,saveButton:f,showHorizontalActionBar:b,shareButtonGroup:x,visitButton:k})=>{let P;let S=(0,s.H)(),{isAuthenticated:w}=(0,o.B)(),{checkExperiment:A}=(0,r.F)(),T=w?A("auth_closeup_redesign").anyEnabled:A("unauth_closeup_redesign").anyEnabled;return w?"lg"===S?P=u:b&&(P=p):P=b?p:c,(0,d.jsx)(l.xu,{"data-test-id":"header",children:(0,d.jsx)(m,{headerLimitedOverflow:h,isDesktop:g,isActionBarInline:_,isRelatedPinsAppUpsellShown:y,isTransparentBackground:v,showHorizontalActionBar:b,zIndex:P,isCloseupRedesign:T,children:(0,d.jsx)(l.xu,{marginTop:T?0:-1,marginBottom:T?0:-1,children:(0,d.jsx)(l.kC,{alignItems:"center",justifyContent:"between",children:b?(0,d.jsxs)(i.Fragment,{children:[(0,d.jsx)(l.kC,{alignItems:"center",justifyContent:"start",children:t||null}),(0,d.jsxs)(l.xu,{display:"flex",alignItems:"center",justifyContent:"start",marginStart:!t&&x?12:0,children:[k||null,f||null]}),(0,d.jsx)(l.kC,{alignItems:"center",justifyContent:"start",children:x||null})]}):(0,d.jsxs)(i.Fragment,{children:[(0,d.jsxs)(l.kC,{alignItems:"center",justifyContent:"start",children:[!!e&&(0,d.jsx)(l.xu,{marginStart:T?0:-1,color:v?"default":void 0,rounding:"circle",dangerouslySetInlineStyle:{__style:v?{boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)"}:{}},children:e}),(0,d.jsxs)(l.kC,{alignItems:"center",justifyContent:"start",children:[t||null,T?a||null:x||null,T?x||null:a||null,n||null]})]}),(0,d.jsxs)(l.kC,{alignItems:"center",justifyContent:"start",children:[k||null,f||null]})]})})})})})}},203201:(e,t,n)=>{"use strict";n.d(t,{E:()=>T,Z:()=>j});var i,l=n(167912),a=n(883119),r=n(407043),o=n(375571),s=n(378518),d=n(898781),u=n(349700),c=n(773285),p=n(995228),m=n(667679),h=n(50286),_=n(19121),g=n(598615),y=n(538232),v=n(856306),f=n(326960),b=n(63552),x=n(149823),k=n(328896),P=n(350118),S=n(785893);let w=void 0!==i?i:i=n(79e3),A=({canUpsellNativeApp:e,downloadImageUrl:t,pinId:n,shouldShowReactions:i,isAuthenticated:l,shouldShowVisitInMoreOptions:a})=>n?{react:i,editPin:l,downloadImageUrl:t,openInApp:e,reportPin:l,sendPin:i,visitPin:a,hidePin:l}:Object.freeze({}),T=(e,t)=>{let n=A(e);return!!(n.react||n.openInApp||n.sendPin||n.downloadImageUrl||n.reportPin||n.visitPin||t||n.hidePin)},I=({imageUrl:e,closeupUnifiedDescription:t,gridTitle:n,title:i,pinId:l,imageSignature:r,textSize:o})=>{let s=(0,d.ZP)(),{isChromeOnIOS:u,viewParameter:c,handleDownloadPinImageClick:p,isAuthenticated:_}=(0,y.R)(),g=(0,m.Z)(),v=(0,h.HG)(),x=t&&t.trim();return(0,S.jsx)(f.Z,{imgSrc:e,isChromeOnIOS:u,filename:n||i||x,pinId:l,viewParameter:c,viewType:3,imageSignature:r||void 0,children:e=>(0,S.jsx)(a.xu,{"data-test-id":"more-options-download-pin",children:(0,S.jsx)(b.Z,{pressState:"none",onTouch:()=>{e().then(()=>{v&&!_&&g({reason:"UPSELL_LOGIN_OR_SIGNUP",attributionLabel:"tap_closeup_download_button",desktopOptions:{modalType:"signup",modalOptions:{source:"downloadImageBtnDweb",container:"download"}}}),p()})},children:(0,S.jsx)(a.xv,{weight:"bold",size:o,children:s._('Download image', 'Button to download Pin image', 'Button to download Pin image')})})})})},E=({aggregatedPinDataId:e,pinId:t,domain:n,closeupUnifiedDescription:i,gridTitle:l,title:m,imageSignature:f,textSize:P,onDismiss:w,onEditButtonClick:T,isIdeaPin:E,isIdeaPinDeleted:C,shouldShowShareOnVideoCloseup:D,clickthroughInterstitialExperience:j,nativePinType:F})=>{let R=(0,d.ZP)(),L=(0,y.R)(),{clientTrackingParams:z,onSendButtonClick:O,isAuthenticated:M,onHidePin:N}=L,B=(0,v.Z)({clickthroughInterstitialExperience:j,pinId:t}),{logContextEvent:Z}=(0,r.v)(),K=(0,s._)({id:1000112}),U=(0,h.HG)(),{isAuth:H}=(0,_.Z)(),{checkExperiment:V}=(0,c.F)(),G=A(L);return(0,S.jsxs)(a.kC,{direction:"column",gap:{row:0,column:4},children:[G.react&&!!F&&!U&&!V(`${H?"auth":"unauth"}_mweb_reactions_expansion_mvp_idea_video_pin`).anyEnabled&&(0,S.jsx)(o.Z,{name:"SafeSuspense_PinActionBarMoreOptionsMenu_ReactionPickerContainer",children:(0,S.jsx)(p.Z,{children:(0,S.jsx)(b.Z,{pressState:"none",onTouch:w,children:(0,S.jsx)(k.default,{aggregatedPinDataId:e,clientTrackingParams:z,pinId:t,nativePinType:F,experience:K,isTextButton:!0})})})}),!U&&G.editPin&&T&&(0,S.jsx)(a.xu,{"data-test-id":"editBoardButton",children:(0,S.jsx)(b.Z,{pressState:"none",onTouch:()=>T(),children:(0,S.jsx)(a.xv,{weight:"bold",size:P,children:R._('Edit Pin', 'closeup.PinActionBarMoreOptions.editButton', 'Option in overflow menu on Pin closeup to edit this pin')})})}),G.openInApp&&(0,S.jsx)(g.Z,{componentType:14162,app_upsell_type:M?"auth-pin-page-action-bar":"unauth-pin-page-action-bar",children:({handleOpenApp:e})=>(0,S.jsx)(a.xu,{"data-test-id":"more-options-open-app",children:(0,S.jsx)(b.Z,{pressState:"none",onTouch:()=>e({deepLinkUri:`pin/${t}`}),children:(0,S.jsx)(a.xv,{weight:"bold",size:P,children:R._('Open in app', 'Option in overflow menu on Pin closeup to open the Pin in the Pinterest app', 'Option in overflow menu on Pin closeup to open the Pin in the Pinterest app')})})})}),!D&&!E&&G.sendPin&&(0,S.jsx)(a.xu,{"data-test-id":"more-options-send-app",children:(0,S.jsx)(b.Z,{pressState:"none",onTouch:O,children:(0,S.jsx)(a.xv,{weight:"bold",size:P,children:R._('Send Pin', 'Option in overflow menu on Pin closeup to send this pin', 'Option in overflow menu on Pin closeup to send this pin')})})}),!E&&G.visitPin&&(0,S.jsx)(b.Z,{pressState:"none",onTouch:B,children:(0,S.jsx)(a.xv,{weight:"bold",size:P,children:(0,u.Wc)(R._('Visit {{domain}}', 'videoPinCloseup.overflowMenu.visit', 'Option in overflow menu on Pin closeup to visit the source of pin, domain: the domain name of the url that takes user to source of pin'),{domain:n||""})})}),!E&&!C&&G.downloadImageUrl&&(0,S.jsx)(I,{imageUrl:G.downloadImageUrl,closeupUnifiedDescription:i,gridTitle:l,title:m,pinId:t,imageSignature:f,textSize:P}),G.hidePin&&(0,S.jsx)(a.xu,{"data-test-id":"more-options-hide-pin",children:(0,S.jsx)(b.Z,{pressState:"none",onTouch:()=>{w&&w(),N()},children:(0,S.jsx)(a.xv,{weight:"bold",size:P,children:R._('Hide Pin', 'closeup.PinActionBarMoreOptions.hidePinButton', 'Option in overflow menu on Pin closeup to hide this pin')})})}),G.reportPin&&(0,S.jsx)(x.Z,{callbackFunction:w,nextLocation:`/pin/${t}/report/`,children:(0,S.jsx)(a.xv,{weight:"bold",size:P,children:(0,S.jsx)(a.xu,{"data-test-id":"more-options-report-pin",children:(0,S.jsx)(a.rU,{href:`/pin/${t}/report/`,tapStyle:"none",onClick:()=>{Z({view_type:48,element:176,event_type:102,component:13,object_id_str:t})},children:R._('Report Pin', 'Takes you to a separate page where you can give reasons why you are reporting this Pin (e.g spam, pornography)', 'Takes you to a separate page where you can give reasons why you are reporting this Pin (e.g spam, pornography)')})})})})]})},C=({graphqlRef:e,...t})=>{var n,i,a,r;let o=(0,l.useFragment)(w,e);return(0,S.jsx)(E,{aggregatedPinDataId:null===(n=o.aggregatedPinData)||void 0===n?void 0:n.entityId,pinId:null!==(i=o.entityId)&&void 0!==i?i:"",domain:o.domain,closeupUnifiedDescription:o.closeupUnifiedDescription,gridTitle:o.gridTitle,title:o.title,imageSignature:o.imageSignature,isIdeaPinDeleted:null!==(a=null===(r=o.storyPinData)||void 0===r?void 0:r.isDeleted)&&void 0!==a&&a,...t})},D=e=>{var t,n,i,l;let{pinId:a}=(0,y.R)(),r=e.pinId||a,o=(0,P.S6)()(r);return(0,S.jsx)(E,{aggregatedPinDataId:null==o?void 0:null===(t=o.aggregated_pin_data)||void 0===t?void 0:t.id,pinId:null!==(n=null==o?void 0:o.id)&&void 0!==n?n:"",domain:null==o?void 0:o.domain,closeupUnifiedDescription:null==o?void 0:o.closeup_unified_description,gridTitle:null==o?void 0:o.grid_title,title:null==o?void 0:o.title,imageSignature:null==o?void 0:o.image_signature,isIdeaPinDeleted:null!==(i=null==o?void 0:null===(l=o.story_pin_data)||void 0===l?void 0:l.is_deleted)&&void 0!==i&&i,...e})};function j({graphqlRef:e,...t}){return e?(0,S.jsx)(C,{graphqlRef:e,...t}):(0,S.jsx)(D,{...t})}},605073:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});var i,l=n(667294),a=n(167912),r=n(883119),o=n(898781),s=n(780280),d=n(867820),u=n(52022),c=n(690035),p=n(50286),m=n(538232),h=n(856306),_=n(350118),g=n(430235),y=n(385801),v=n(785893);let f=void 0!==i?i:i=n(401482),b=({pinId:e,pinCreditPrefix:t,onClickTitleOrDomain:n,onMobileTap:i,hasPinner:a,graphqlRef:h,overlayingPinImage:_=!1,shoppingKlpUrls:f=[]})=>{let b;let x=(0,o.ZP)(),k=(0,u.Z)(),P=(0,c.Z)(),{onSendButtonClick:S}=(0,m.R)(),w=(0,l.useRef)(),A=(0,p.HG)(),T=(0,p.Wb)(),{isAuthenticated:I}=(0,s.B)(),[E,C]=(0,l.useState)(null),D=!!E;(0,l.useEffect)(()=>{let e=()=>{C(null),(0,d.My)("dweb.unauth.context_menu.click_away")};return D&&document.addEventListener("click",e),()=>{D&&document.removeEventListener("click",e)}},[D]);let j=_?"white":"darkGray";return A||(j=_?"darkGray":"white",b=_?"white":"darkGray"),(0,v.jsxs)(l.Fragment,{children:[(0,v.jsx)(r.xu,{ref:w,children:(0,v.jsx)(r.hU,{accessibilityLabel:x._('more', 'Pin more button', 'Pin more button'),iconColor:j,bgColor:b,icon:"ellipsis",onClick:({event:l})=>{if(I||A){if(k({action:"click",item:"ellipsis-button"}),A){if(l.stopPropagation(),l.preventDefault(),(0,d.My)("dweb.ellipsis_button.context_menu.open"),w.current){let e=w.current.getBoundingClientRect(),t=e.left,n=e.top;C({x:t,y:n})}}else i(l)}else e&&a?P({pinId:e,location:"main-pin-overflow",vaseSection:!T&&(0,v.jsx)(y.Z,{dedupeVisualAnnotations:null,pinId:e,pinKey:h?{type:"graphqlRef",data:h}:{type:"deprecated",data:e},pinCreditPrefix:t,onClickTitleOrDomain:n,shoppingKlpUrls:f})}):i(l)},size:"lg"})}),E&&A&&e&&a&&(0,v.jsx)(g.Z,{desktopContextMenuState:E,pinId:e,source:"dweb.plp.ellipsis.button",graphqlRef:h,onSendButtonClick:S})]})},x=({graphqlRef:e,pinId:t,pinCreditPrefix:n,onMobileTap:i,overlayingPinImage:l,clickthroughInterstitialExperience:r})=>{var o;let s=(0,a.useFragment)(f,e),d=(0,h.I)({clickthroughInterstitialExperience:r,graphqlRef:s});return(0,v.jsx)(b,{hasPinner:!!s.pinner,pinId:t,pinCreditPrefix:n,onClickTitleOrDomain:d,onMobileTap:i,graphqlRef:s,overlayingPinImage:l,shoppingKlpUrls:(null===(o=s.pinJoin)||void 0===o?void 0:o.shoppingKlpUrls)||[]})},k=({pinId:e,pinCreditPrefix:t,onMobileTap:n,overlayingPinImage:i,clickthroughInterstitialExperience:l})=>{var a,r;let o=(0,_.S6)()(e),s=(0,h.Z)({clickthroughInterstitialExperience:l,pinId:e});return(0,v.jsx)(b,{hasPinner:!!(null!=o&&o.pinner),pinId:e,pinCreditPrefix:t,onClickTitleOrDomain:s,onMobileTap:n,overlayingPinImage:i,shoppingKlpUrls:null!==(a=null==o?void 0:null===(r=o.pin_join)||void 0===r?void 0:r.shopping_klp_urls)&&void 0!==a?a:[]})};function P({graphqlRef:e,pinId:t,pinCreditPrefix:n,onMobileTap:i,overlayingPinImage:l,clickthroughInterstitialExperience:a}){let r={pinId:t,pinCreditPrefix:n,onMobileTap:i,overlayingPinImage:l,clickthroughInterstitialExperience:a};return e?(0,v.jsx)(x,{...r,graphqlRef:e}):(0,v.jsx)(k,{...r})}},350948:(e,t,n)=>{"use strict";n.d(t,{IS:()=>P,Ys:()=>k,ZP:()=>D,j$:()=>A});var i,l=n(667294),a=n(167912),r=n(883119),o=n(485710),s=n(319530),d=n(444445),u=n(898781),c=n(349700),p=n(773285),m=n(923297),h=n(780280),_=n(50286),g=n(29066),y=n(706443),v=n(350118),f=n(252417),b=n(785893);let x=void 0!==i?i:i=n(189333),k=({m:e,h:t,rm:n,rh:i},l,a=!1)=>e&&(!t||i<=0)?a?(0,c.nk)(l._('{{mins}}min', 'closeup.makeRecipeTimeText.minutes', 'number showing the minutes to complete a recipe'),{mins:n.toString()}):(0,c.nk)(l.ngettext('{{mins}} minute', '{{mins}} minutes', n, 'number showing the minutes to complete a recipe', 'number showing the minutes to complete a recipe'),{mins:n.toString()}):t?a?(0,c.nk)(l._('{{hrs}}hr {{mins}}min', 'closeup.makeRecipeTimeText.hours', 'hrs: number showing the hours to complete a recipe, mins: number showing the minutes to complete a recipe'),{hrs:t.toString(),mins:e.toString()}):(0,c.nk)(l.ngettext('{{hrs}} hour', '{{hrs}} hours', i, 'number showing the hours to complete a recipe', 'number showing the hours to complete a recipe'),{hrs:i.toString()}):null,P=({m:e,h:t,rm:n,rh:i,i18n:l})=>e&&(!t||i<=0)?(0,c.nk)(l._('{{mins}}m', 'number showing minutes to complete a recipe', 'number showing mnutes to complete a recipe'),{mins:n.toString()}):t?(0,c.nk)(l._('{{hrs}}h {{mins}}m', 'number showing hours to complete a recipe', 'number showing hours to complete a recipe'),{hrs:t.toString(),mins:e.toString()}):null,S=(e,t)=>{let 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,A=({displayCookTime:e,i18n:t,isShortened:n})=>k((0,m.u)(e),t,n);function T({category:e,ingredients:t,textSize:n="300"}){return(0,b.jsxs)(r.xu,{marginBottom:4,children:[e&&(0,b.jsx)(r.xu,{children:(0,b.jsx)(r.xv,{weight:"bold",size:n,children:e})}),(null!=t?t:[]).map(e=>{var t,i;return(0,b.jsx)(r.xu,{"data-test-id":"recipe-ingredient",itemProp:"recipeIngredient",marginTop:1,children:(0,b.jsxs)(r.xv,{size:n,children:["• ",e.amt||null," ",e.name]})},`${null!==(t=e.name)&&void 0!==t?t:""}-${null!==(i=e.name)&&void 0!==i?i:""}`)})]})}let I=({categorizedIngredients:e,displayCookTime:t,image:n,ingredientCount:i,ingredientsDescription:a,name:c})=>{let m=(0,u.ZP)(),{checkExperiment:v}=(0,p.F)(),{isAuthenticated:x}=(0,h.B)(),k=(0,_.ZP)(),P=x?v("auth_closeup_redesign").anyEnabled:v("unauth_closeup_redesign").anyEnabled,S="desktop"!==k&&["no_collapse_by_default","collapse_by_default"].includes(v(x?"closeup_auth_mweb_collapsable_modules":"closeup_unauth_mweb_collapsable_modules").group),w=t?A({displayCookTime:t,i18n:m,isShortened:!0}):null;if(!w&&!i&&!a)return null;let I=m._('Ingredients', 'Closeup.PinRecipe.ingredientsLabel', 'Ingredients category heading for recipes');return(0,b.jsxs)(r.xu,{marginTop:f.dP,children:[S&&(0,b.jsx)(y.Z,{marginStart:d.D6+g.xh}),(0,b.jsxs)(r.xu,{"data-test-id":"pin-recipe-container",direction:"column",display:"flex",marginTop:P?4:12,marginBottom:P?0:4,marginEnd:P?0:6,overflow:"hidden",children:[(0,b.jsx)("meta",{content:c,itemProp:"name"}),n&&(0,b.jsx)("meta",{content:n,itemProp:"image"}),(0,b.jsx)(r.xu,{"data-test-id":"one-pin-layout",children:Array.isArray(e)&&e.length>0&&(0,b.jsx)(o.Z,{heading:I,children:S?e.map(({category:e,ingredients:t},n)=>{let i=`ingredient-${n}`;return(0,b.jsx)(l.Fragment,{children:(0,b.jsx)(r.xu,{marginBottom:4,children:(0,b.jsx)(T,{category:e,ingredients:t,textSize:"300"})})},i)}):(0,b.jsx)(s.Z,{children:e.map(({category:e,ingredients:t},n)=>{let i=`ingredient-${n}`;return(0,b.jsx)(l.Fragment,{children:(0,b.jsx)(r.xu,{marginBottom:4,children:(0,b.jsx)(T,{category:e,ingredients:t,textSize:"300"})})},i)})})})})]})]})},E=({graphqlRef:e})=>{let t=(0,a.useFragment)(x,e),{imageSpec_474x:n,richMetadata:i}=t,l=null==i?void 0:i.recipe,r=null==l?void 0:l.categorizedIngredients,o=w(r),s=(null==l?void 0:l.categorizedIngredients)&&S(l.diets,l.servingsSummary);return(0,b.jsx)(I,{categorizedIngredients:r,displayCookTime:null==l?void 0:l.displayCookTime,image:null==n?void 0:n.url,ingredientCount:o,ingredientsDescription:s,name:null==l?void 0:l.name})},C=({pinId:e})=>{var t,n;let i=(0,v.S6)()(e),l=(null==i?void 0:null===(t=i.rich_metadata)||void 0===t?void 0:t.recipe)||{},{display_cook_time:a,name:r,categorized_ingredients:o,diets:s,servings_summary:d}=l,u=w(o),c=o&&S(s,d);return(0,b.jsx)(I,{categorizedIngredients:o,displayCookTime:a,image:(null===(n=((null==i?void 0:i.images)||{})["474x"])||void 0===n?void 0:n.url)||"",ingredientCount:u,ingredientsDescription:c,name:r})};function D({graphqlRef:e,pinId:t}){return e?(0,b.jsx)(E,{graphqlRef:e}):(0,b.jsx)(C,{pinId:t})}},635821:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var i,l=n(167912),a=n(883119),r=n(898781),o=n(349700),s=n(773285),d=n(561195),u=n(780280),c=n(50286),p=n(350948),m=n(350118),h=n(785893);let _=void 0!==i?i:i=n(394384);function g({boldText:e=!0,marginTop:t=3,onlyShowNumber:n=!1,textSize:i="md",width:l=12,isWideViewport:m,ratingBestRating:_,ratingRatingValue:g,ratingReviewCount:y,hasPinRecipe:v,displayCookTime:f,dietList:b,servingSummaryServes:x}){let k=(0,r.ZP)(),{checkExperiment:P}=(0,s.F)(),{isAuthenticated:S}=(0,u.B)(),w=S?P("auth_closeup_redesign").anyEnabled:P("unauth_closeup_redesign").anyEnabled,A=(0,c.ZP)(),T=(0,o.nk)(k.ngettext('{{review_count}} rating', '{{review_count}} ratings', null != y ? y : 0, 'closeup.recipe.ratings', 'number of ratings for this recipe pin'),{review_count:y}),I=f?(0,p.j$)({displayCookTime:f,i18n:k,isShortened:!0}):null,E=Number(x),C=(0,o.nk)(k.ngettext('{{serves}} serving', '{{serves}} servings', Number.isNaN(E) ? 0 : E, 'closeup.recipe.serves', 'number of servings for this recipe pin'),{serves:x}).join(""),D=[b,C].filter(Boolean),j=(0,o.nk)(k._('{{ ratingStars }} {{ count }}', 'closeup.recipe.rating', 'recipe ratings and count'),{ratingStars:(0,h.jsx)(d.Z,{rating:g,max_rating:_,width:l},"ratingStars"),count:(0,h.jsx)(a.xv,{inline:!0,size:i,weight:e?"bold":"normal",children:n?y:T},"ratingCount")});v&&(j=(0,h.jsx)(a.xu,{"data-test-id":"CookTime",children:(0,o.nk)(k._('{{ recipeText }} {{cookTime}} {{ pinRecipe }}', 'closeup recipe cooktime', 'This is the bar under the title which shows these three things. recipeText: shows the rating of the Pin. cookTime: shows the amount of time it takes to prepare the food. pinRecipe: includes any dietary restrictions and how many servings the Pin serves.'),{recipeText:(0,h.jsx)(a.xv,{inline:!0,children:j},"recipeText"),cookTime:(0,h.jsxs)(a.xv,{inline:!0,children:[I&&"\xb7 ",I]},"cookTimeText"),pinRecipe:(0,h.jsx)(a.xv,{inline:!0,children:D.length>0&&(0,h.jsx)(a.xv,{inline:!0,children:` \xb7 ${D.join(" \xb7 ")}`})},"pinRecipe")})}));let F=m||"phone"!==A?"start":"center";return w&&(F="start"),(0,h.jsx)(a.xu,{alignItems:"baseline","data-test-id":"PinRecipeContainer",display:v&&"phone"===A?"block":"flex",justifyContent:"start",marginTop:t,children:(0,h.jsx)(a.xv,{align:F,inline:!0,children:j})})}let y=({graphqlRef:e,...t})=>{var n,i,a,r;let o=(0,l.useFragment)(_,e),{richMetadata:s}=o,d=null==s?void 0:s.recipe;return(0,h.jsx)(g,{...t,displayCookTime:null==d?void 0:d.displayCookTime,dietList:((null==d?void 0:d.diets)||[]).join(", "),servingSummaryServes:null==d?void 0:null===(n=d.servingsSummary)||void 0===n?void 0:n.serves,hasPinRecipe:!!(null!=s&&s.recipe),ratingBestRating:null==d?void 0:null===(i=d.aggregateRating)||void 0===i?void 0:i.bestRating,ratingRatingValue:null==d?void 0:null===(a=d.aggregateRating)||void 0===a?void 0:a.ratingValue,ratingReviewCount:null==d?void 0:null===(r=d.aggregateRating)||void 0===r?void 0:r.reviewCount})},v=({pinId:e,...t})=>{var n,i,l,a,r;let o=(0,m.S6)()(e),s=(null==o?void 0:null===(n=o.rich_metadata)||void 0===n?void 0:n.recipe)||{},{diets:d,display_cook_time:u,servings_summary:c}=s;return(0,h.jsx)(g,{...t,displayCookTime:u,dietList:(d||[]).join(", "),servingSummaryServes:null==c?void 0:c.serves,hasPinRecipe:!!(null!=o&&null!==(i=o.rich_metadata)&&void 0!==i&&i.recipe),ratingBestRating:null===(l=s.aggregate_rating)||void 0===l?void 0:l.best_rating,ratingRatingValue:null===(a=s.aggregate_rating)||void 0===a?void 0:a.rating_value,ratingReviewCount:null===(r=s.aggregate_rating)||void 0===r?void 0:r.review_count})};function f({graphqlRef:e,pinId:t,...n}){return e?(0,h.jsx)(y,{...n,graphqlRef:e}):(0,h.jsx)(v,{...n,pinId:t})}},95551:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(883119),l=n(898781),a=n(780280),r=n(785893);let o=({onSendButtonClick:e,trackShareTap:t,color:n,size:o,bgColor:s})=>{let d=(0,l.ZP)(),{userAgent:{platform:u}}=(0,a.B)();return(0,r.jsx)(i.hU,{accessibilityLabel:d._('Send', 'Board.Pin.SendButton', 'Accessible label for button to send a pin or a board'),onClick:({event:n})=>{e(n),t()},size:o||"lg",bgColor:s||"transparent",iconColor:n||"darkGray",icon:"android"===u?"android-share":"share"})}},178307:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(883119),l=n(541776),a=n(513578),r=n(947599),o=n(667679),s=n(867820),d=n(664569),u=n(785893);function c(e){let{viewParameter:t,isStoryPin:n}=e,c=(0,o.Z)();return(0,u.jsx)(r.Z,{fallback:null,children:(0,u.jsx)(i.xu,{marginTop:4,children:(0,u.jsx)(a.Z,{commentWarningModalState:l.A9.NONE,dismissCommentWarningModal:()=>{},objectType:d.o.pin,onEnter:()=>{(0,s.My)(n?"dweb.unauth.comment_compose.story_pin.tap":"dweb.unauth.comment_compose.tap"),c({reason:"ACTION_REQUIRES_LOGIN_OR_SIGNUP",attributionLabel:"tap_unauth_comment_composer",desktopOptions:{modalType:"login",modalOptions:{source:"commentComposer",container:"closeup"}}})},statusType:"textStaticDisplay",viewParameter:t})})})}},744856:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});let i="imgViewer"},725214:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(388619);let l=e=>{let t=(0,i.Z)({url:e.location.search});switch(e.action){case"PUSH":if("news_hub"===t.entrySource)return"deeplink";return"click";case"REPLACE":return"click";case"POP":if(!e.location.key)return"deeplink";return"click";default:return null}}},745162:(e,t,n)=>{"use strict";function i({isImagePinForUnauthOnTablet:e}){return e?3:2}n.d(t,{Z:()=>i})},298024:(e,t,n)=>{"use strict";n.d(t,{Ph:()=>l,Re:()=>r,si:()=>a});var i=n(50286);let l=(e,t)=>e&&!t?e:null,a=()=>{let e=(0,i.ZP)();return"phone"!==e?180:130},r=()=>{let e=(0,i.ZP)();return"phone"!==e?180:80}},856306:(e,t,n)=>{"use strict";n.d(t,{Z:()=>z,I:()=>L});var i,l=n(702664),a=n(167912),r=n(616550),o=n(112690),s=n(332611),d=n(926275),u=n(48714),c=n(248975),p=n(623568),m=n(53199),h=n(780280),_=n(867820),g=n(52022),y=n(826067),v=n(538232),f=n(725214),b=n(298024),x=n(186656);let k=async({pinId:e,link:t,mobileLink:n,origImageUrl:i,trackedLink:l,clientTrackingParams:a})=>{var r;let o=await (0,x.Z)({url:"/v3/offsite/",data:{check_only:!0,client_tracking_params:a,pin_id:null!=e?e:null,url:null!==(r=(0,p.Zt)({link:t,mobileLink:n,origImageUrl:i,trackedLink:l}))&&void 0!==r?r:""}});if(!o||!o.resource_response||o.resource_response.error)return"error";{let{redirect_status:e}=o.resource_response.data;return e}},P=e=>{k(e).then(e=>(0,_.My)(`mweb.unauth.clickthrough_quality.${e}`))};var S=n(830157),w=n(581323),A=n(772486),T=n(534427),I=n(350118);let E=void 0!==i?i:i=n(645791),C=({commerceData:e,imageSignature:t,location:n,pinId:i,trackingParams:l,viewParameter:a})=>{let r=(0,S.Z)((n.state||{}).trackingParams,l);return{object_id_str:i,component:4,element:35,view_type:3,view_parameter:a,clientTrackingParams:r,aux_data:{commerce_data:e,image_signature:t}}},D=()=>navigator.onLine,j=({context:{completeExperience:e,dispatch:t,history:n,isAuthenticated:i,isBot:l,isSocialBot:a,location:r,logContextEvent:o,shouldUpsellHomePage:d,trackInteraction:m,userIsNew:h,viewExperience:g},data:{category:v,clickthroughInterstitialExperience:b,commerceData:x,domain:k,embedSrc:S,embedType:w,hasPin:T,hasPromoter:I,imageSignature:E,imagesUrls:j,link:F,linkDomainOfficialUserImageMediumUrl:R,linklessOptions:L,mobileLink:z,pinId:O,trackedLink:M,trackingParams:N,viewParameter:B}})=>()=>{var Z;if(!T)return;let K=C({commerceData:x,imageSignature:E,location:r,pinId:O,trackingParams:N,viewParameter:B});(0,_.My)("mweb_pin_page.pin_image.clickthrough_occurred"),m({action:"click",item:"clickthrough"}),i||P({pinId:O,link:F,mobileLink:z,origImageUrl:null==j?void 0:j.orig,trackedLink:M,clientTrackingParams:K.clientTrackingParams});let U=(0,A.jC)(K);12===U&&o({event_type:8948,view_type:3,view_parameter:B,object_id_str:O,clientTrackingParams:K.clientTrackingParams,aux_data:{image_signature:E,closeup_navigation_type:(0,f.Z)(n),click_type:"clickthrough",cosmic_ray_count:"1"}});let H=null!==(Z=(0,p.Zt)({link:F,mobileLink:z,origImageUrl:null==j?void 0:j.orig,trackedLink:M}))&&void 0!==Z?Z:"",V={pin:O,client_tracking_params:K.clientTrackingParams};if(L){if(!L.actionBarIsMinifiedToMainPinImage){let e=new XMLHttpRequest;e.open("GET",(0,u.Se)(H,{queryParams:V})),e.send()}L.onTap();return}let G=!I&&(h||d);if(G&&t((0,s.kd)(1000162)),G&&b){t(g(b.placement_id,b.experience_id)),t(e(b.placement_id,b.experience_id));let n=(0,u.Se)(H,{queryParams:V}),i=(0,c.Z)({imagesUrls:j,embedSrc:S,embedType:w,excludeOriginals:!l&&!a}),o=r.pathname+r.search;if(!D())return;window.open((0,y.ru)("/pin_redirect",{domain:null!=k?k:"",domainImageUrl:null!=R?R:"",origin:o,pinCategory:v,pinImageUrl:i,redirectUrl:n}),"_blank")}else{if(!D())return;(0,u.Gj)(H,{queryParams:V})}},F=()=>{let e=(0,r.useHistory)(),t=(0,r.useLocation)(),n=(0,l.useDispatch)(),i=(0,T.S)(),a=(0,l.useSelector)(({users:e,session:t})=>(0,d.Z)(e[t.userId].created_at)),{isAuthenticated:u,isBot:c,isSocialBot:p}=(0,h.B)(),m=(0,o.Z)(),_=(0,g.Z)(),y=(0,s.be)(),v=(0,s.Ig)();return{history:e,location:t,dispatch:n,shouldUpsellHomePage:i,userIsNew:a,isAuthenticated:u,isBot:c,isSocialBot:p,logContextEvent:m,trackInteraction:_,completeExperience:y,viewExperience:v}},R=e=>j({context:F(),data:e}),L=({clickthroughInterstitialExperience:e,linklessOptions:t,graphqlRef:n})=>{var i,l,r,o,s,d;let{viewParameter:u}=(0,v.R)(),c=(0,a.useFragment)(E,n),p=(0,m.Z)({type:"graphqlRef",data:c}),h=(0,w.Z)({type:"graphqlRef",data:c});return R({hasPromoter:!!(c.promoter&&!c.isDownstreamPromotion),viewParameter:u,clickthroughInterstitialExperience:e,linklessOptions:t,hasPin:!!c.entityId,pinId:null!==(i=c.entityId)&&void 0!==i?i:"",commerceData:h,imageSignature:c.imageSignature,mobileLink:c.mobileLink,trackingParams:c.trackingParams,link:c.link,trackedLink:c.trackedLink,imagesUrls:p,embedSrc:null===(l=c.embed)||void 0===l?void 0:l.src,embedType:null===(r=c.embed)||void 0===r?void 0:r.type,category:null!==(o=c.category)&&void 0!==o?o:"",domain:c.domain,linkDomainOfficialUserImageMediumUrl:null===(s=c.linkDomain)||void 0===s?void 0:null===(d=s.officialUser)||void 0===d?void 0:d.imageMediumUrl})},z=({clickthroughInterstitialExperience:e,linklessOptions:t,pinId:n})=>{var i,l,a,r,o;let s=(0,I.S6)()(n),d=(0,b.Ph)(null==s?void 0:s.promoter,null==s?void 0:s.is_downstream_promotion),{viewParameter:u}=(0,v.R)(),c=(0,w.Z)({type:"deprecated",data:n}),p=(0,m.Z)(null!=s?{type:"deprecated",data:s}:null);return R({hasPromoter:!!d,viewParameter:u,clickthroughInterstitialExperience:e,linklessOptions:t,hasPin:!!s,pinId:null!==(i=null==s?void 0:s.id)&&void 0!==i?i:"",commerceData:c,imageSignature:null==s?void 0:s.image_signature,mobileLink:null==s?void 0:s.mobile_link,trackingParams:null==s?void 0:s.tracking_params,link:null==s?void 0:s.link,trackedLink:null==s?void 0:s.tracked_link,imagesUrls:p,embedSrc:null==s?void 0:null===(l=s.embed)||void 0===l?void 0:l.src,embedType:null==s?void 0:null===(a=s.embed)||void 0===a?void 0:a.type,category:null==s?void 0:s.category,domain:null==s?void 0:s.domain,linkDomainOfficialUserImageMediumUrl:null==s?void 0:null===(r=s.link_domain)||void 0===r?void 0:null===(o=r.official_user)||void 0===o?void 0:o.image_medium_url})}},315016:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(926275),l=n(623568),a=n(19121),r=n(332215),o=n(698330);function s({link:e,mobileLink:t,trackedLink:n}){let{id:s}=(0,a.Z)(),d=(0,o.mN)()(null!=s?s:"");return!!(e||t||n)&&!((0,i.Z)(null==d?void 0:d.created_at)&&!(0,r.V0)(d))&&!(0,l.ZE)(e)}},876437:(e,t,n)=>{"use strict";n.d(t,{X:()=>P,Z:()=>S});var i,l=n(167912),a=n(883119),r=n(947599),o=n(619277),s=n(356997),d=n(898781),u=n(667679),c=n(867820),p=n(63552),m=n(67347),h=n(785893);function _({isStoryPin:e,inviteText:t,inviterFirstName:n,isThinnerStyle:i,username:l}){let r=t.split(n);return(0,h.jsx)(a.xu,{children:(0,h.jsx)(p.Z,{onTouch:()=>{(0,m.nP)("mweb_social_unauth.closeup.social_text_click")},pressState:"none",children:(0,h.jsxs)(a.kC,{direction:"row",gap:{row:1,column:0},children:[(0,h.jsx)(a.xv,{inline:!0,size:"300",children:r[0]}),e?(0,h.jsx)(a.xv,{inline:!0,size:"300",weight:"bold",children:(0,h.jsx)(a.rU,{href:"/"+l,target:"blank",onClick:()=>(0,c.My)("mweb_unauth_inviter_profile_click"),children:n})}):(0,h.jsx)(a.xv,{inline:!0,size:i?"200":"300",weight:i?"normal":"bold",children:(0,h.jsx)(a.rU,{href:"/"+l,target:"blank",onClick:()=>(0,c.My)("mweb_unauth_inviter_profile_click_not_story"),children:n})}),(0,h.jsx)(a.xv,{inline:!0,size:i?"200":"300",children:r[1]})]})})})}function g({inviter:e,socialContextBannerStyle:t,setShouldShowSocialUpsellBanner:n}){let{shouldShowSignupUpsellText:i,isDismissible:l}=t,r=(0,d.ZP)(),{username:o}=e,m=e.imageMediumUrl,g=e.firstName,y=(0,u.Z)();return(0,h.jsx)(a.kC,{justifyContent:l?"center":"start",alignItems:"center",children:(0,h.jsx)(a.xu,{children:(0,h.jsx)(a.iP,{fullHeight:!0,onTap:()=>{(0,c.My)("dweb.unauth.social_banner.click"),y({reason:"UPSELL_LOGIN_OR_SIGNUP",attributionLabel:"tap_desktop_unauth_social_context_banner",desktopOptions:{modalType:"signup",modalOptions:{source:"defaultSource",container:"pinWash"}}})},children:(0,h.jsxs)(a.xu,{alignItems:"center",direction:"row",display:"flex",height:44,width:l?1012:void 0,dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(233, 228, 255, 0.9)"}},marginTop:2,marginBottom:6,marginStart:l?0:2,paddingX:l?4:2,paddingY:4,rounding:"pill",position:l?"static":"absolute",top:!0,zIndex:new a.Ry(1),children:[(0,h.jsx)(a.xu,{marginTop:8,marginBottom:8,marginEnd:1,width:32,children:(0,h.jsx)(p.Z,{onTouch:e=>{e.stopPropagation(),o&&window.open("/"+o),(0,c.My)("dweb.unauth.social_banner.avatar_click")},pressState:"none",children:null!=m&&m.includes("default")?(0,h.jsx)(a.JO,{accessibilityLabel:"pinterest logo",color:"default",icon:"pinterest",size:24}):(0,h.jsx)(s.qE,{size:"fit",src:null!=m?m:void 0,name:g})})}),(0,h.jsxs)(a.kC,{flex:"grow",direction:"row",children:[(0,h.jsx)(_,{isStoryPin:!1,inviteText:i?(r._('{{ name }} shared this idea.', 'pin.closeup.long_banner.desktop.shareNotification', 'Long banner notifying desktop users that a sender ({{ name }}) shared a Pin to them, name: username')).replace("{{ name }}",g):(r._('{{ name }} shared this idea ', 'pin.closeup.banner.desktop.shareNotification', 'Banner notifying desktop users that a sender ({{ name }}) shared a Pin to them, name: username')).replace("{{ name }}",g),inviterFirstName:g,username:o,isThinnerStyle:i}),i&&(0,h.jsx)(a.xu,{marginStart:1,marginEnd:2,children:(0,h.jsx)(a.xv,{inline:!0,size:"200",weight:"bold",children:r._('Sign up to join them', 'pin.header.social_context_dweb', 'label')})})]}),l&&(0,h.jsx)(a.hU,{icon:"cancel",accessibilityLabel:"cancel",size:"sm",onClick:({event:e})=>{e.stopPropagation(),(0,c.My)("unauth.dweb.social_banner.dismiss"),null==n||n(!1)}})]})})})})}var y=n(773285),v=n(50286),f=n(598615),b=n(938917);function x({inviter:{imageMediumUrl:e,username:t,firstName:n},isStoryPin:i}){let l=(0,d.ZP)(),{checkExperiment:r}=(0,y.F)(),o=(0,v.ml)(),g=()=>(0,m.nP)("mweb_social_unauth.closeup.avatar_click"),x=(0,b.Z)(),k=(0,u.Z)(),P=(l._('{{ name }} shared this idea', 'pin.closeup.header.shareNotification', 'header notifying users that a sender ({{ name }}) shared a Pin to them')).replace("{{ name }}",t),S="undefined"!=typeof window&&window.innerWidth<360,w=t.length>25,A=o&&!i&&r("mweb_social_context_header_upsell").anyEnabled,T=r("mweb_social_context_header_upsell").group;return x&&i?(0,h.jsxs)(a.kC,{gap:{row:2,column:0},alignItems:"center",justifyContent:"center",minHeight:w?100:80,children:[(0,h.jsx)(a.xu,{marginTop:4,marginBottom:4,width:40,children:(0,h.jsx)(p.Z,{onTouch:g,pressState:"none",children:(0,h.jsx)(s.qE,{size:"fit",src:null!=e?e:void 0,name:n})})}),(0,h.jsx)(a.kC.Item,{flex:"grow",children:(0,h.jsxs)(a.xu,{display:"flex",direction:w?"column":"row",alignItems:"center",justifyContent:w?"start":"between",padding:w?3:0,children:[(0,h.jsxs)(a.kC,{direction:"column",alignItems:"start",gap:{row:0,column:1},wrap:!S,children:[(0,h.jsx)(a.kC,{children:(0,h.jsxs)(a.xv,{align:w?"center":"start",children:[(0,h.jsx)(a.xv,{inline:!0,weight:"bold",children:(0,h.jsx)(a.rU,{display:"inlineBlock",href:`/${null!=t?t:""}/`,target:"blank",onClick:()=>(0,c.My)("mweb_unauth_inviter_profile_click"),underline:"hover",children:t})}),P.split(t)[1]]})}),!w&&(0,h.jsx)(a.xv,{size:"100",children:l._('Open Pinterest to see more', 'unauth.mweb.shared.banner.edu', 'education for CTA to open app on shared banner')})]}),(0,h.jsx)(a.xu,{display:"flex",justifyContent:"center",alignItems:"center",minWidth:w?0:100,marginTop:w?3:0,children:(0,h.jsx)(f.Z,{componentType:14161,app_upsell_type:"social-context-header",children:({handleOpenApp:e})=>(0,h.jsx)(a.zx,{onClick:()=>e(),size:"md",text:l._('Open app', 'unauth.mweb.shared.banner.cta', 'CTA to open app on shared banner')})})})]})})]}):(0,h.jsx)(p.Z,{onTouch:()=>{A&&k({reason:"UPSELL_LOGIN_OR_SIGNUP",attributionLabel:"tap_mobile_unauth_social_context_header"})},pressState:"none",children:(0,h.jsxs)(a.kC,{alignItems:"center",gap:4,justifyContent:"start",minHeight:80,children:[(0,h.jsx)(a.xu,{marginTop:4,marginStart:A?2:0,marginBottom:4,width:48,children:(0,h.jsx)(p.Z,{onTouch:g,pressState:"none",children:(0,h.jsx)(s.qE,{src:null!=e?e:void 0,name:n})})}),(0,h.jsxs)(a.kC,{alignItems:A?"start":"center",justifyContent:"start",direction:"column",children:[(0,h.jsx)(a.xu,{marginStart:A?-1:0,children:(0,h.jsx)(_,{isStoryPin:i,inviteText:A&&T.includes("join")?(l._('{{ name }} shared this idea', 'pin.closeup.header.shareNotification', 'header notifying users that a sender ({{ name }}) shared a Pin to them, name: username')).replace("{{ name }}",n):A&&T.includes("converse")?(l._('{{ name }} sent an idea', 'pin.closeup.header.shareNotification', 'header notifying users that a sender ({{ name }}) shared a Pin to them, name: username')).replace("{{ name }}",n):A&&T.includes("explore")?(l._('{{ name }} sent this idea', 'pin.closeup.header.shareNotification', 'header notifying users that a sender ({{ name }}) shared a Pin to them, name: username')).replace("{{ name }}",n):(l._('{{ name }} shared this idea with you', 'pin.closeup.header.shareNotification', 'header notifying users that a sender ({{ name }}) shared a Pin to them, name: username')).replace("{{ name }}",n),inviterFirstName:n,username:t,isThinnerStyle:A})}),A&&(0,h.jsx)(a.xu,{marginTop:1,children:(0,h.jsx)(a.xv,{inline:!0,size:"300",weight:"bold",children:T.includes("join")?l._('Tap to join them on Pinterest', 'pin.closeup.header.shareNotification.text', 'header notifying users to tap on area'):T.includes("converse")?l._('Tap to share feedback', 'pin.closeup.header.shareNotification.text', 'header notifying users to tap on area'):T.includes("explore")&&l._('Tap to see more like it', 'pin.closeup.header.shareNotification.text', 'header notifying users to tap on area')})})]})]})})}let k=void 0!==i?i:i=n(329499),P=({children:e,variables:t})=>e((0,l.useLazyLoadQuery)(k,t));function S({inviterFirstNameRef:e,isDesktop:t,isStoryPin:n,setShouldShowSocialUpsellBanner:i,socialContextBannerStyle:l}){return(0,h.jsx)(r.Z,{children:(0,h.jsx)(o.ty,{children:r=>r?(0,h.jsx)(P,{variables:{inviteCode:r},children:r=>{var o,s;let d=null===(o=r.v3GetInviteCodeQuery)||void 0===o?void 0:null===(s=o.data)||void 0===s?void 0:s.sender,{firstName:u,imageMediumUrl:c,username:p}=null!=d?d:Object.freeze({});return u&&p?(e&&(e.current=u),t?(0,h.jsx)(g,{inviter:{firstName:u,imageMediumUrl:c,username:p},socialContextBannerStyle:null!=l?l:{isDismissible:!0,shouldShowSignupUpsellText:!0},setShouldShowSocialUpsellBanner:i}):(0,h.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{boxShadow:"0 1px 0 0 rgba(0, 0, 0, 0.08)"}},marginStart:-2,paddingX:2,marginEnd:-2,children:(0,h.jsx)(x,{inviter:{firstName:u,imageMediumUrl:c,username:p},isStoryPin:!!n})})):null}}):null})})}},362240:(e,t,n)=>{"use strict";n.d(t,{E:()=>h,Z:()=>g});var i=n(702664),l=n(248975),a=n(780280),r=n(667679),o=n(957161),s=n(867820),d=n(50286),u=n(118405),c=n(872482),p=n(639952),m=n(709113);let h=({action:e,isAuthenticated:t})=>(0,s.My)(`mweb_${e}.closeup.is_auth_${String(t)}`),_=(e,t,n,i)=>{n&&e((0,p.Cp)()),t||i(!0),setTimeout(()=>{n||e((0,p.FK)()),t&&i(!1)},3e3)};function g({embedSrc:e,embedType:t,imagesUrls:n,pinId:s,isFromUnauthContextMenu:g,attributionLabel:y}){var v;let f=(0,c.a)(),{numUnauthSavedPins:b,setNumUnauthSavedPins:x}=(0,u.U)(),k=(0,i.useDispatch)(),P=(0,d.ZP)(),S=(0,r.Z)(),w=!!(s&&f&&f.unauthSavedPinsStore.isSaved(s)),{forceShowNavFooter:A,setForceShowNavFooter:T}=(0,u.U)(),I=null!==(v=(0,i.useSelector)(({session:e})=>e.shouldHideNavBar))&&void 0!==v&&v,{isBot:E,isSocialBot:C}=(0,a.B)();if(f&&s)return{isSaved:w,onSave:()=>{h({action:"save_click",isAuthenticated:!1});let i="save",a=!0;if("desktop"!==P){let{unauthSavedPinsStore:r}=f,d=!!r.pins.length;!g&&r.canSaveMore()?(r.save({id:s,imageUrl:(0,l.Z)({imagesUrls:n,embedSrc:e,embedType:t,excludeOriginals:!E&&!C})}),a=!1,x(b+1),_(k,A,I,T)):("desktop"!==P?k((0,p.QZ)(s)):o.Z.setItem(m.M8,s),i=d&&!g?"extended_save_out_of_quota":"save")}else o.Z.setItem(m.M8,s);a&&S({attributionLabel:"extended_save_out_of_quota"===i?"click_save_button_with_max_unauth_saves":y||"click_save_button_on_closeup",reason:"ACTION_REQUIRES_LOGIN_OR_SIGNUP",mobileOptions:{headingType:i},desktopOptions:{modalType:"signup",modalOptions:{source:"saveButtonExp",container:"save"}},pinId:s})},onUnsave:()=>{b>=1&&x(b-1);let{unauthSavedPinsStore:e}=f;e.unsave(s),h({action:"unsave_click",isAuthenticated:!1}),"desktop"===P&&o.Z.removeItem(m.M8)}}}},613166:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(667294),l=n(616550),a=n(407043),r=n(385740),o=n(780280),s=n(867820),d=n(52022),u=n(744856),c=n(208901);function p(){var e;let{isAuthenticated:t}=(0,o.B)(),n=(0,l.useLocation)(),p=(0,l.useHistory)(),m=(0,d.Z)(),{logContextEvent:h}=(0,a.v)(),{viewType:_}=(0,r.SU)(),[g,y]=(0,i.useState)(!1),v=(0,l.useRouteMatch)(),f=null===(e=n.state)||void 0===e?void 0:e.trackingParams;return({linkType:e,viewParameter:n})=>{if((0,s.NC)("click_pin_closeup_image"),t||m({action:"click",item:"pin-image"}),(0,c.Z)(e),t){v.params.id&&p.push(`/pin/${v.params.id}#${u.v}`,{trackingParams:f});return}g?(h({event_type:14688,element:13319,component:14215,view_type:_,view_data:n,aux_data:{upsell_reason:"click_pin_closeup_image"}}),p.push("/signup"),(0,s.My)("main.pin.wash.click")):((0,s.My)("main.pin.wash.show"),y(!g))}}},730440:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o,m:()=>r});var i=n(667294),l=n(785893);let a=(0,i.createContext)({isScrolledToPins:!1,scrollToPins:()=>{}});function r({children:e}){let[t,n]=(0,i.useState)(!1),r=(0,i.useMemo)(()=>({isScrolledToPins:t,scrollToPins:n}),[t,n]);return(0,l.jsx)(a.Provider,{value:r,children:e})}let o=()=>(0,i.useContext)(a)},44004:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A,w:()=>k});var i,l=n(667294),a=n(702664);n(167912);var r=n(616550),o=n(442279),s=n(883119),d=n(44715),u=n(681669),c=n(784590),p=n(50286),m=n(829407),h=n(19121),_=n(139405),g=n(664569),y=n(114020),v=n(600147),f=n(492583),b=n(698330),x=n(785893);let k=({aggregatedPinDataId:e,featuredCommentIds:t,featuredDidItIds:n,isDesktop:i,isReversed:l=!1,noCache:a=!1})=>({name:"UnifiedCommentsResource",options:{aggregated_pin_id:e,comment_featured_ids:t,did_it_featured_ids:n,page_size:i?10:25,redux_normalize_feed:!0,is_reversed:l},noCache:a}),P=(0,o.P1)((e,t,n)=>n,({feeds:e},t)=>e[`${f.Z.UNIFIED_COMMENTS}:${t||""}`],({didItData:e})=>e,(e,t,n,i)=>i,(e,t,n,i)=>(null==t?void 0:t.map(({id:t,type:l})=>{var a,r;let o="aggregatedcomment"===l.toLowerCase()?e[t]:n[t];if(!o)return;let s="string"==typeof o.user?null!==(a=i[o.user])&&void 0!==a?a:{}:null!==(r=o.user)&&void 0!==r?r:{};return{...o,user:null!=s?s:{}}}).filter(e=>e))||[]),S=void 0!==i?i:i=n(90838),w=({aggregatedPinDataId:e,closeupAttributionId:t,closeupAttributionUsername:n,commentsDisabled:i,hasComments:o,isReadOnly:u,pinId:f,isVideo:S,pinnerId:w,scrollContainer:A,setIsComposingNewComment:T=()=>{},storyPinDataId:I,viewParameter:E,toggleComposerForReply:C,openMwebOverflowMenu:D})=>{let{comment_id:j}=(0,r.useParams)(),F=(0,a.useDispatch)(),R=(0,p.HG)(),L=(0,h.Z)(),z=(0,l.useRef)(o),O=(0,c.Z)(z.current&&e?k({aggregatedPinDataId:e,featuredCommentIds:j?[j]:[],isDesktop:R}):null),{removeUnauthCommentPinId:M,unauthCommentPinId:N}=(0,y.C)(),B=(0,_.lV)(),{toggleAggregatedCommentHelpful:Z,toggleAggregatedCommentLike:K}=(0,_.nf)(),U=(0,b.kW)(),H=(0,a.useSelector)(t=>P(t,e,B,U)),[V,G]=(0,l.useState)(void 0),$=()=>{T(!0)};return(0,m.Z)(()=>{!R&&L.isAuth&&N&&f&&N===f&&($(),M())}),(0,l.useEffect)(()=>{let e=()=>{let t=!!A&&A.scrollTop+A.clientHeight+10>=A.scrollHeight;O&&!O.isFetching&&(O.isAtEnd?null==A||A.removeEventListener("scroll",e):t&&O.fetchMore())};return null==A||A.addEventListener("scroll",e),()=>{null==A||A.removeEventListener("scroll",e)}},[O,A]),(0,x.jsx)(l.Fragment,{children:(0,x.jsx)(s.xu,{display:"flex",marginTop:R?6:0,width:"100%",children:(0,x.jsx)(d.Z,{comments:H,commentsDisabled:i,isDesktop:R,isReadOnly:u,isLoaded:O&&O.isLoaded||!o,openOverflowMenu:D,toggleReplyComposer:C,parentId:null!=e?e:"",parentType:g.o.pin,toggleHelpful:(e,t,n)=>()=>{n?F((0,v.YH)({didItDataId:e,isMarkedHelpfulByMe:t})):Z({aggregatedCommentId:e,isMarkedHelpfulByMe:t})},toggleLike:(e,t,n)=>()=>{n?F((0,v.wH)({didItDataId:e,isLikedByMe:t})):K({aggregatedCommentId:e,isLikedByMe:t})},userAvatarSize:"sm",aggregatedPinDataId:e,closeupAttributionId:t,closeupAttributionUsername:n,pinId:f,isVideo:S,storyPinDataId:I,pinnerId:w,showReactionListForComment:G,reactionListCommentId:V,viewParameter:E})})})};function A({pinKey:e,...t}){var n,i,l,a,r,o,s,d,c;let{data:p}=(0,u.sr)(S,e,{type:"pin",useLegacyAdapter:e=>{var t,n,i;return{aggregatedPinData:e.aggregated_pin_data&&{commentCount:e.aggregated_pin_data.comment_count,didItData:e.aggregated_pin_data.did_it_data&&{imagesCount:e.aggregated_pin_data.did_it_data.images_count},entityId:null!==(t=e.aggregated_pin_data.id)&&void 0!==t?t:""},closeupAttribution:e.closeup_attribution&&{entityId:null!==(n=e.closeup_attribution.id)&&void 0!==n?n:"",username:e.closeup_attribution.username},commentsDisabled:e.comments_disabled,doneByMe:e.done_by_me,entityId:e.id,pinner:e.pinner&&{entityId:e.pinner.id},storyPinData:e.story_pin_data&&{entityId:null!==(i=e.story_pin_data.id)&&void 0!==i?i:""},videos:e.videos&&{videoList:e.videos.video_list&&{__typename:"VideoList"}}}}}),m=((null==p?void 0:null===(n=p.aggregatedPinData)||void 0===n?void 0:n.commentCount)||0)+((null==p?void 0:null===(i=p.aggregatedPinData)||void 0===i?void 0:null===(l=i.didItData)||void 0===l?void 0:l.imagesCount)||0);return(0,x.jsx)(w,{aggregatedPinDataId:null==p?void 0:null===(a=p.aggregatedPinData)||void 0===a?void 0:a.entityId,closeupAttributionId:null==p?void 0:null===(r=p.closeupAttribution)||void 0===r?void 0:r.entityId,closeupAttributionUsername:null==p?void 0:null===(o=p.closeupAttribution)||void 0===o?void 0:o.username,commentsDisabled:null==p?void 0:p.commentsDisabled,disablePhotoCommentSelection:!!(null!=p&&p.doneByMe),hasComments:m>0&&!(null!=p&&p.commentsDisabled),isVideo:!!(null!=p&&null!==(s=p.videos)&&void 0!==s&&s.videoList),pinId:null==p?void 0:p.entityId,pinnerId:null==p?void 0:null===(d=p.pinner)||void 0===d?void 0:d.entityId,storyPinDataId:null==p?void 0:null===(c=p.storyPinData)||void 0===c?void 0:c.entityId,...t})}},648136:(e,t,n)=>{"use strict";n.d(t,{Z:()=>J});var i,l,a=n(667294),r=n(702664);n(167912);var o=n(442279),s=n(883119),d=n(964569),u=n(785120),c=n(541776),p=n(513578),m=n(407043),h=n(121151),_=n(681669),g=n(866898),y=n(898781),v=n(349700),f=n(584595),b=n(773285),x=n(50286),k=n(829407),P=n(19121),S=n(139405),w=n(664569),A=n(156637),T=n(44004),I=n(896628),E=n(579602),C=n(785893);let D=({action:e,text:t})=>(0,C.jsx)(s.iP,{onTap:e,children:(0,C.jsx)(s.xv,{weight:"bold",children:t})});var j=n(164985),F=n(499128),R=n(343341);let L={SPAM:"spam",PORN:"nudity",SELF_INJURY:"self-harm",HATE_SPEECH:"hate-speech",HARASSMENT:"attacks",VIOLENCE:"graphic-violence",MEDICAL_MISINFORMATION:"medical-misinformation"},z=e=>[{key:L.SPAM,title:e._('Spam', 'report.comment.option.spam.title', 'Report comment option'),subtitle:e._('Misleading or repetitive posts', 'report.comment.option.spam.subtitle', 'Report comment option description')},{key:L.PORN,title:e._('Sexual commentary', 'report.comment.option.sexualCommentary.title', 'Report comment option'),subtitle:e._('Sexually explicit content', 'report.comment.option.sexualCommentary.subtitle', 'Report comment option description')},{key:L.SELF_INJURY,title:e._('Self-harm', 'report.comment.option.selfHarm.title', 'Report comment option'),subtitle:e._('Eating disorders, cutting, suicide, drugs', 'report.comment.option.selfHarm.subtitle', 'Report comment option description')},{key:L.MEDICAL_MISINFORMATION,title:e._('Medical misinformation', 'report.comment.option.medicalMisinformation.title', 'Report comment option'),subtitle:e._('Harmful or misleading content about health and safety', 'report.comment.option.medicalMisinformation.subtitle', 'Report comment option description')},{key:L.HATE_SPEECH,title:e._('Hate speech', 'report.comment.option.hateSpeech.title', 'Report comment option'),subtitle:e._('Prejudice or attacks directed at protected groups', 'report.comment.option.hateSpeech.subtitle', 'Report comment option description')},{key:L.HARASSMENT,title:e._('Harassment or privacy violations', 'report.comment.option.harassment.title', 'Report comment option'),subtitle:e._('Blackmail, personal attacks or bullying', 'report.comment.option.harassment.subtitle', 'Report comment option description')},{key:L.VIOLENCE,title:e._('Graphic violence', 'report.comment.option.violence.title', 'Report comment option'),subtitle:e._('Threats or promotion of violence', 'report.comment.option.violence.subtitle', 'Report comment option description')}],O=({onReasonSelect:e})=>{let t=(0,y.ZP)();return z(t).map(({key:n,title:i,subtitle:l})=>(0,C.jsx)(s.iP,{onTap:e(n),children:(0,C.jsxs)(s.xu,{paddingY:3,display:"flex",justifyContent:"between",children:[(0,C.jsxs)(s.xu,{children:[(0,C.jsx)(s.X6,{size:"400",children:i}),(0,C.jsx)(s.xv,{size:"300",color:"subtle",children:l})]}),(0,C.jsx)(s.JO,{icon:"arrow-forward",accessibilityLabel:t._('Arrow Forward', 'reportPinReasonSelection.openUrl.accessibilityLabel', 'Accessibility label on arrow icon'),color:"default"})]})},n))},M=e=>({[L.SPAM]:{title:e._('Report spam?', 'Confirm report comment reason title', 'Confirm report comment reason title'),removals:[e._('Misleading content or behavior', 'Example of spam', 'Example of spam'),e._('Repetitive posts', 'Example of spam', 'Example of spam'),e._('Unsolicited commercial messages', 'Example of spam', 'Example of spam')]},[L.PORN]:{title:e._('Report a sexual comment?', 'Confirm report comment reason title', 'Confirm report comment reason title'),removals:[e._('Graphic sexual descriptions', 'Example of sexual comment', 'Example of sexual comment'),e._('Unsolicited sexual remarks', 'Example of sexual comment', 'Example of sexual comment'),e._('Links to sexual content', 'Example of sexual comment', 'Example of sexual comment')]},[L.SELF_INJURY]:{title:e._('Report this comment?', 'Confirm report comment reason title', 'Confirm report comment reason title'),removals:[e._('Encouragement of self-injury, suicide, eating disorders and substance abuse', 'Example of self-injury', 'Example of self-injury'),e._('Buying or selling drugs', 'Example of self-injury', 'Example of self-injury'),e._('Jokes about self-harm', 'Example of self-injury', 'Example of self-injury')],notes:e._('We may send support resources to the person who left this comment.', 'Note on further actions Pinterest may take in the case of self-harm content.', 'Note on further actions Pinterest may take in the case of self-harm content.')},[L.MEDICAL_MISINFORMATION]:{title:e._('Report medical misinformation?', 'Confirm report comment reason title', 'Confirm report comment reason title'),removals:[e._('False cures for cancer or other chronic or terminal illnesses', 'Example of medical misinformation', 'Example of medical misinformation'),e._('Anti-vaccination advice', 'Example of medical misinformation', 'Example of medical misinformation')],nonRemovals:[e._('Diet advice, including cleanses and supplements that can boost the immune system', 'Example of a comment we will not remove', 'Example of a comment we will not remove'),e._('Teas, oils and herbs proposed for aromatic and sleep quality', 'Example of a comment we will not remove', 'Example of a comment we will not remove')]},[L.HATE_SPEECH]:{title:e._('Report hateful speech?', 'Confirm report comment reason title', 'Confirm report comment reason title'),removals:[e._('Attacks or slurs directed at protected groups', 'Example of hate speech', 'Example of hate speech'),e._('Support for hate groups and their messages', 'Example of hate speech', 'Example of hate speech'),e._('Denial of someone\u2019s gender or sexual identity', 'Example of hate speech', 'Example of hate speech')]},[L.HARASSMENT]:{title:e._('Report harassment?', 'Confirm report comment reason title', 'Confirm report comment reason title'),removals:[e._('Bullying', 'Example of harassment', 'Example of harassment'),e._('Profanity directed at individuals', 'Example of harassment', 'Example of harassment'),e._('Personally identifiable information (even if shared voluntarily)', 'Example of harassment', 'Example of harassment')]},[L.VIOLENCE]:{title:e._('Report graphic violence?', 'Confirm report comment reason title', 'Confirm report comment reason title'),removals:[e._('Glorification or promotion of violence', 'Example of violence', 'Example of violence'),e._('Threats of harm', 'Example of violence', 'Example of violence')]}}),N=e=>{let t="policies";switch(e){case L.SPAM:return[L.SPAM,"spamPin"];case L.PORN:return[t,L.PORN];case L.SELF_INJURY:return[t,"hurtfulContent","selfHarm"];case L.HATE_SPEECH:return[t,"hurtfulContent","hateSpeech"];case L.HARASSMENT:return[t,"hurtfulContent","harassingMeOrMyChild"];case L.VIOLENCE:return[t,"gore"];default:return[]}},B=({commentId:e,onDismiss:t,reason:n})=>{let i=(0,y.ZP)(),{flagAggregatedComment:l,aggregatedCommentHidden:r}=(0,S.nf)(),{showToast:o}=(0,R.F9)(),[d,u]=(0,a.useState)(!1),{title:c,nonRemovals:p,removals:m}=M(i)[n];return(0,C.jsxs)(a.Fragment,{children:[(0,C.jsxs)(s.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[(0,C.jsx)(s.xu,{paddingY:4,children:(0,C.jsx)(s.X6,{align:"center",children:c})}),(0,C.jsxs)(s.xu,{paddingY:4,children:[(0,C.jsx)(s.xv,{children:i._('We remove things such as', 'comment.report.removeIntro', 'Text introducing the types of comments that get removed')}),(0,C.jsx)(s.xu,{paddingY:2,children:m.map(e=>(0,C.jsxs)(s.xv,{children:["• ",e]},e))})]}),p&&(0,C.jsxs)(s.xu,{paddingY:4,children:[(0,C.jsx)(s.xv,{children:"We don't remove things like"}),(0,C.jsx)(s.xu,{paddingY:2,children:p.map(e=>(0,C.jsxs)(s.xv,{children:["• ",e]},e))})]}),(0,C.jsx)(s.xu,{alignSelf:"center",marginTop:3,children:(0,C.jsx)(s.zx,{color:"red",onClick:()=>{r(e),l({commentId:e,reason:n,detailedReasons:N(n)}).then(()=>{o(({hideToast:e})=>(0,C.jsx)(F.ZP,{text:i._('Thanks! Your feedback helps us improve Pinterest.', 'reportPinReasonDetail.submit.toast', 'Message to user after successfully reporting a pin'),onHide:e})),setTimeout(()=>{t()},3500)})},size:"lg",text:i._('Report', 'reportCommentConfirmation.button.report', 'button to report comment')})})]}),d&&(0,C.jsx)(F.ZP,{onHide:()=>{u(!1)},text:i._('Thanks! Your feedback helps us improve Pinterest', 'comment.report.confirmationToast', 'Toast confirming that user has successfully reported a comment'),duration:3500})]})},Z=({commentId:e,isModalOpen:t,onDismiss:n})=>{let i=(0,y.ZP)(),[l,r]=(0,a.useState)(void 0);if((0,a.useEffect)(()=>{t&&r(void 0)},[t]),!e)return null;let{windowHeight:o}=(0,j.Z)();return(0,C.jsx)(h.ZP,{mobileAccessibilityCloseIconLabel:i._('Close', 'commentThreadModal.close', 'Close modal window'),accessibilityModalLabel:"",heading:i._('Report Comment', 'reportComment.heading', 'Heading for report comment page in report comment flow'),isOpen:t,mobileIsSlideUp:!0,onDismiss:n,children:(0,C.jsx)(s.xu,{height:o-90,paddingX:5,paddingY:3,children:l?(0,C.jsx)(B,{commentId:e,onDismiss:n,reason:l}):(0,C.jsx)(O,{onReasonSelect:e=>()=>{r(e)}})})})};var K=n(90326);let U=({author:e,commentId:t,isMenuOpen:n,isViewingOwnComment:i,onDelete:l,onDismiss:o,openEditComposer:d})=>{let u=(0,y.ZP)(),{isAuth:c}=(0,P.Z)(),p=(0,r.useDispatch)(),{logContextEvent:_}=(0,m.v)(),{aggregatedCommentsHiddenForUser:g}=(0,S.nf)(),[v,f]=(0,a.useState)(!1),b=e=>()=>{_({component:14349,event_type:e})};return(0,C.jsxs)(a.Fragment,{children:[(0,C.jsx)(h.ZP,{mobileAccessibilityCloseIconLabel:u._('Close', 'commentOverflowMenu.close', 'Close modal window'),accessibilityModalLabel:"",isOpen:n,mobileIsSlideUp:!0,onDismiss:()=>o(!1),children:(0,C.jsx)(s.xu,{padding:3,"data-test-id":"comment-overflow-menu",children:(0,C.jsx)(s.kC,{direction:"column",gap:{row:0,column:4},children:c?(0,C.jsx)(a.Fragment,{children:i?(0,C.jsxs)(s.kC,{direction:"column",gap:4,children:[(0,C.jsx)(s.xu,{"data-test-id":"overflow-edit-menu-option",children:(0,C.jsx)(D,{action:d,text:u._('Edit', 'commentOverflowMenu.option.edit', 'Edit comment')})}),(0,C.jsx)(s.xu,{"data-test-id":"overflow-delete-menu-option",children:(0,C.jsx)(D,{action:l(t),text:u._('Delete', 'commentOverflowMenu.option.delete', 'Delete comment')})})]}):(0,C.jsxs)(s.kC,{direction:"column",gap:4,children:[(0,C.jsx)(s.xu,{"data-test-id":"overflow-report-menu-option",children:(0,C.jsx)(D,{action:()=>{f(!0)},text:u._('Report', 'commentOverflowMenu.option.report', 'Report comment')})}),(0,C.jsx)(E.Z,{cancelBlockCallback:b(9408),onBlock:()=>{let{id:t}=e;p((0,K.Ge)({id:t,blockSource:"comment",blockContext:t,logContextEvent:_})),g(t),b(9407)()},onBlockCallback:()=>o(!0),openModalCallback:b(9406),size:"300",user:e})]})}):(0,C.jsx)(s.rU,{href:"https://policy.pinterest.com/de/netzdg/",target:"blank",underline:"none",children:(0,C.jsx)(s.xv,{weight:"bold",children:u._('Report comment for NetzDG', 'commentOverflowMenu.option.reportForNetzDG', 'Report comment - NetzDG')})})})})}),(0,C.jsx)(Z,{commentId:t,isModalOpen:v,onDismiss:()=>{f(!1),o(!0)}})]})};var H=n(114020),V=n(431389),G=n(214494),$=n(600147),W=n(492583);let q={height:150,signature:"",url:"",width:150},Y=(0,o.P1)((e,t,n)=>n,({feeds:e},t)=>e[`${W.Z.UNIFIED_COMMENTS}:${t}`],({didItData:e})=>e,(e,t,n)=>(null==t?void 0:t.map(({id:t,type:i})=>{let l="aggregatedcomment"===i.toLowerCase()?e[t]:n[t];return l}).filter(e=>e))||[]),X=void 0!==i?i:i=n(273412),Q=void 0!==l?l:l=n(517953);function J({inCommentModuleExp:e,isEligibleForPinReactions:t,isInCommentModule:n,isModalOpen:i,isReactionsExpansionEnabled:l,onDismiss:o,pinId:E,pinKey:D,viewParameter:j}){var F,R,L,z,O,M,N,B,Z,K;let J;let{data:ee,childDataKey__DEPRECATED:et}=(0,_.sr)(X,D,{type:"pin",useLegacyAdapter:e=>{var t,n;return{aggregatedPinData:e.aggregated_pin_data&&{commentCount:e.aggregated_pin_data.comment_count,didItData:e.aggregated_pin_data.did_it_data&&{imagesCount:e.aggregated_pin_data.did_it_data.images_count},entityId:null!==(t=e.aggregated_pin_data.id)&&void 0!==t?t:""},commentsDisabled:e.comments_disabled,doneByMe:e.done_by_me,storyPinData:e.story_pin_data&&{entityId:null!==(n=e.story_pin_data.id)&&void 0!==n?n:""},videos:e.videos&&{videoList:e.videos.video_list&&{__typename:"VideoList"}}}}}),{refetch:en}=(0,g.Z)(Q,{pinId:E},{suspendOnRefetch:!1}),ei=(0,y.ZP)(),{isAuth:el}=(0,P.Z)(),ea=(0,x.HG)(),er=(0,P.Z)(),eo=(0,S.lV)(),es=(0,r.useDispatch)(),{checkExperiment:ed}=(0,b.F)(),{logContextEvent:eu}=(0,m.v)(),ec=(0,a.useRef)(null),[ep,em]=(0,a.useState)(!!n),{removeUnauthCommentPinId:eh,unauthCommentPinId:e_}=(0,H.C)(),{updateAggregatedComment:eg}=(0,S.nf)(),ey=(0,V.Z)(),ev=(0,d.Z)(),ef=function(){let{aggregatedCommentDeleted:e,updateCommentCount:t}=(0,S.nf)();return async({commentId:n,parentId:i,isReply:l})=>{G.Z.create("AggregatedCommentResource",{commentId:n,pinId:l?void 0:i}).callDelete().then(()=>{e(i,n),l&&t(i,-1)})}}(),[eb,ex]=(0,a.useState)(""),[ek,eP]=(0,a.useState)(void 0),[eS,ew]=(0,a.useState)(void 0),[eA,eT]=(0,a.useState)(c.A9.NONE),[eI,eE]=(0,a.useState)(!1),[eC,eD]=(0,a.useState)(void 0),[ej,eF]=(0,a.useState)(void 0),[eR,eL]=(0,a.useState)(q),[ez,eO]=(0,a.useState)(!!(null!=ee&&ee.doneByMe)),eM=er.isAuth?er.id:null,eN=null==ee?void 0:null===(F=ee.aggregatedPinData)||void 0===F?void 0:F.entityId,eB=(0,r.useSelector)(e=>Y(e,eN,eo)),eZ=ei._('Add comment', 'commentComposer.heading.addComment', 'Comment composer title when composing new comment'),eK=()=>{ex(eZ),em(!0)};if((0,k.Z)(()=>{!ea&&er.isAuth&&e_&&E&&e_===E&&(eK(),eh())}),!ee)return null;let eU="",eH=[];ek&&(ed("mweb_photo_comment_replies").anyEnabled?"aggregatedcomment"===ek.parentType||"userdiditdata"===ek.parentType:"aggregatedcomment"===ek.parentType)?(eU=`@${ek.user.username} `,eH=[{length:ek.user.username.length+1,object_id:ek.user.id,offset:0,tag_type:1}]):eS&&(eU=null!==(K=eS.text||eS.details)&&void 0!==K?K:"",eH=eS.tags,J=eS.images?eS.images[0]["150x150"]:void 0);let eV=e=>{let t=ed("mweb_foundation_open_editor").anyEnabled;(t?e:!em)||(em(!1),eP(void 0)),n&&o(),ew(void 0),eL(q)},eG=e=>{eE(!1),e||eu({component:14349,event_type:10128})},e$=()=>{eV(!eS),eG(!0)},eW=async(e,t,n)=>{var i,l,a;let r;if(eS)"userdiditdata"===eS.type&&ed("mweb_photo_commenting").anyEnabled?(es((0,$.IU)({id:eS.id,details:e,pinId:null!=E?E:"",image_signatures:null!==(i=eS.image_signatures)&&void 0!==i?i:[]})),e$()):r=eg({commentId:eS.id,force:n,text:e,tags:"[]"});else if(E){let i=(null==ek?void 0:ek.parentType)==="aggregatedcomment",o=(null==ek?void 0:null===(l=ek.parentType)||void 0===l?void 0:l.toLowerCase())===w.n.didIt,s=i||o?null==ek?void 0:ek.parentId:(null==ek?void 0:ek.id)||(null===(a=ee.aggregatedPinData)||void 0===a?void 0:a.entityId),d=(null==ek?void 0:ek.type)==="userdiditdata",u=d||o?w.o.didIt:w.o.aggregatedComment;if(s){if(eR.signature){let t={aggregatedPinDataId:s,details:e,image_signatures:eR.signature,pin_id:null!=E?E:"",username:er.username||"",fromUnifiedComment:!0};await es((0,$.DD)(t)),eO(!0),en(),e$()}else r=ed("mweb_photo_comment_replies").anyEnabled?ev({force:n,fromUnifiedComment:!0,objectId:s,pinId:E,objectType:ek?u:w.o.pin,text:e,tags:JSON.stringify(t),replyToCommentId:i||o?null==ek?void 0:ek.id:void 0}):ey({force:n,parentId:s,pinId:E,text:e,tags:JSON.stringify(t),isReply:!!ek,replyToCommentId:i?null==ek?void 0:ek.id:null})}}if(!r)return!0;try{await r,en(),e$()}catch(e){return[f.ky,f.LJ].includes(e.api_error_code)&&eT(e.api_error_code===f.ky?c.A9.WARNING:c.A9.BLOCK),!1}return!0},eq=()=>{eT(c.A9.NONE)},eY=({photoHeight:e,photoUrl:t,photoWidth:n,photoSignature:i})=>{eL({height:e,url:t,signature:i,width:n})},eX=(null!==(R=null===(L=ee.aggregatedPinData)||void 0===L?void 0:L.commentCount)&&void 0!==R?R:0)+(null!==(z=null===(O=ee.aggregatedPinData)||void 0===O?void 0:null===(M=O.didItData)||void 0===M?void 0:M.imagesCount)&&void 0!==z?z:0),eQ=!!(null!==(N=ee.storyPinData)&&void 0!==N&&N.entityId);return(0,C.jsxs)(s.xu,{children:[(0,C.jsx)(h.ZP,{mobileAccessibilityCloseIconLabel:ei._('Close', 'commentThreadModal.close', 'Close modal window'),accessibilityModalLabel:"",heading:!l&&ei._('Comments', 'commentThreadModal.heading', 'Comment thread'),isOpen:i,mobileHideCloseIcon:l,mobileIsSlideUp:!0,onDismiss:o,children:(0,C.jsx)(A.Z,{viewParameter:j,viewType:98,children:(0,C.jsxs)(s.kC,{alignContent:"stretch",alignItems:"stretch",justifyContent:"start",direction:"column",height:"75vh",dataTestId:"comment-modal-container",children:[l&&(0,C.jsx)(u.Z,{aggregatedPinDataId:null===(B=ee.aggregatedPinData)||void 0===B?void 0:B.entityId,commentCount:eX,commentsDisabled:ee.commentsDisabled,inCommentModuleExp:e,isEligibleForPinReactions:t,nativePinType:eQ&&"storyPin"||(null===(Z=ee.videos)||void 0===Z?void 0:Z.videoList)&&"video"||"image",onCancel:o,pinUid:E,shouldUseGraphQL:"graphqlRef"===et.type}),(0,C.jsx)(s.xu,{display:"flex",flex:"grow",paddingX:4,paddingY:6,minHeight:128,overflow:"scrollY",ref:ec,children:(0,C.jsx)(T.Z,{scrollContainer:ec.current,disablePhotoCommentSelection:ez,isComposingNewComment:ep,isReadOnly:!el,pinId:E,pinKey:et,setIsComposingNewComment:em,viewParameter:j,toggleComposerForReply:(e,t,n)=>{if(e){let{user:{first_name:i,full_name:l,username:a}}=e;ex((0,v.nk)(ei._('Reply to {{ name }}', 'commentComposer.heading.replyTo', 'Comment composer title when reply to comment'),{name:i||l||a}).join("")),e.parentId=t,e.parentType=n}eP(e)},openMwebOverflowMenu:e=>{eE(!0),eD(e.id),eF(e.user)}})}),!ee.commentsDisabled&&el&&(0,C.jsx)(s.xu,{dangerouslySetInlineStyle:{__style:{borderTop:"1px solid var(--color-gray-roboflow-200)"}},paddingX:4,paddingY:4,children:ed("mweb_photo_commenting").anyEnabled?!ep&&(0,C.jsx)(p.Z,{commentWarningModalState:c.A9.NONE,disablePhotoCommentSelection:ez,dismissCommentWarningModal:()=>{},handlePhotoSelect:eY,inCommentModuleExp:e,objectType:w.o.pin,onEnter:eK,statusType:"textStaticDisplay",viewParameter:j}):(0,C.jsx)(p.Z,{commentWarningModalState:c.A9.NONE,disablePhotoCommentSelection:ez,dismissCommentWarningModal:()=>{},handlePhotoSelect:eY,inCommentModuleExp:e,objectType:w.o.pin,onEnter:eK,statusType:"textStaticDisplay",viewParameter:j})}),!ea&&(0,C.jsx)(I.Z,{commentWarningModalState:eA,defaultText:eU,disablePhotoCommentSelection:ez,dismissCommentWarningModal:eq,handlePhotoSelect:eY,heading:eb,initialMentions:eH,isCommentReply:!!ek,isCommentEdit:!!eS,isModalOpen:!!ep||!!ek||!!eS,onDismiss:eV,onPost:eW,uploadedPhotoProperties:eR,postedPhoto:J}),eC&&!!ej&&(0,C.jsx)(U,{author:ej,commentId:eC,isMenuOpen:eI,isViewingOwnComment:ej.id===eM,onDelete:e=>()=>{var t;let n=(null==ek?void 0:ek.id)||(null===(t=ee.aggregatedPinData)||void 0===t?void 0:t.entityId),i=eB.find(e=>e.id===eC),l=null!=i?i:eo[null!=eC?eC:""];try{n&&("aggregatedcomment"===l.type?ef({commentId:e,parentId:n,isReply:!!ek}).then(()=>{eG(!0)}):es((0,$.lg)({aggregatedPinDataId:null!=eN?eN:"",feedType:W.Z.UNIFIED_COMMENTS,id:e,isOwnedByMe:!0,pinId:null!=E?E:"",username:l.user.username,updateParentDidItCount:!0})),eO(!1),en(),eG(!0))}catch(e){}},onDismiss:eG,openEditComposer:()=>{let e=eB.find(e=>e.id===eC),t=null!=e?e:eo[null!=eC?eC:""];t&&(!t.images||ed("mweb_photo_commenting").anyEnabled)&&(ex(ei._('Edit comment', 'commentComposer.heading.editComment', 'Comment composer title when editing own comment')),ew(t))}})]})})}),!ea&&n&&(0,C.jsx)(I.Z,{commentWarningModalState:eA,defaultText:eU,disablePhotoCommentSelection:ez,dismissCommentWarningModal:eq,handlePhotoSelect:eY,heading:eZ,initialMentions:eH,isCommentReply:!!ek,isCommentEdit:!!eS,isInCommentModule:n,isModalOpen:!!ep||!!ek||!!eS,onDismiss:eV,onPost:eW,uploadedPhotoProperties:eR,postedPhoto:J})]})}},438010:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var i,l=n(667294);n(167912);var a=n(616550),r=n(883119),o=n(112690),s=n(643010),d=n(681669),u=n(898781),c=n(773285),p=n(867820),m=n(19121),h=n(538232),_=n(648136),g=n(252417),y=n(785893);function v({color:e}){return(0,y.jsx)(r.xu,{alignItems:"center",minHeight:g.CR,minWidth:g.CR,"data-test-id":"comment-button-container",dangerouslySetInlineStyle:{__style:{WebkitMaskImage:'url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyMiAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMS4wMDAyIDJDNS45Mzc2NiAyIDEuODMzNSA2LjEwNDE3IDEuODMzNSAxMS4xNjY3QzEuODMzNSAxMy4zNjMzIDIuNjA4NSAxNS4zNzgzIDMuODk2ODMgMTYuOTU3NUwyLjY4MDE2IDIxLjQ4MDhDMi41OTEgMjEuODM3NSAyLjk3MTgzIDIyLjEyNTggMy4yOTEgMjEuOTQ0Mkw3LjUyNTE2IDE5LjY0NzVDOC41OTc2NiAyMC4wODY3IDkuNzY5MzMgMjAuMzMzMyAxMS4wMDAyIDIwLjMzMzNDMTYuMDYyNyAyMC4zMzMzIDIwLjE2NjggMTYuMjI5MiAyMC4xNjY4IDExLjE2NjdDMjAuMTY2OCA2LjEwNDE3IDE2LjA2MjcgMiAxMS4wMDAyIDJaIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjMiLz4KPC9zdmc+Cg==")',WebkitMaskRepeat:"no-repeat",WebkitMaskPosition:"center",background:e}},display:"flex",justifyContent:"center",position:"relative"})}var f=n(114020);let b=void 0!==i?i:i=n(173895);function x({inCommentModuleExp:e,isEligibleForPinReactions:t,pinId:n,pinKey:i,viewParameter:x}){var k;let{data:P,childDataKey__DEPRECATED:S}=(0,d.sr)(b,i,{type:"pin",useLegacyAdapter:e=>({videos:e.videos&&{entityId:e.videos.id||""}})}),w=(0,s.vs)(),A=(0,u.ZP)(),{checkExperiment:T}=(0,c.F)(),I=(0,o.Z)(),{comment_id:E}=(0,a.useParams)(),{unauthCommentPinId:C}=(0,f.C)(),{isStoryPin:D,shouldRenderAsStoryPin:j}=(0,h.R)(),{isAuth:F}=(0,m.Z)(),[R,L]=(0,l.useState)(!!E||F&&!!C&&!!n&&C===n);if(!P)return null;let{anyEnabled:z}=T(`${F?"auth":"unauth"}_mweb_reactions_expansion_mvp_${null!==(k=P.videos)&&void 0!==k&&k.entityId||D?"idea_video":"web"}_pin`),O=j||w;return(0,y.jsx)(l.Fragment,{children:(0,y.jsxs)(r.xu,{"data-test-id":"comment-button",children:[(0,y.jsx)(r.iP,{accessibilityLabel:A._('comments', 'closeup.storyPin.actionBar.commentThread', 'Comments entry point'),onTap:()=>{F||(0,p.My)("pcons.comment_button_clicked"),I({event_type:102,element:2,view_type:3}),I({component:D?13801:13464,element:D?10944:2,event_type:10554,view_type:D?1:3}),L(!0)},children:z?(0,y.jsx)(r.xu,{alignItems:"center",minHeight:g.CR,minWidth:g.CR,"data-test-id":"comment-button-container",display:"flex",justifyContent:"center",position:"relative",children:(0,y.jsxs)(l.Fragment,{children:[(0,y.jsx)(r.xu,{position:"absolute",children:(0,y.jsx)(r.JO,{accessibilityLabel:"",color:O?"light":"dark",icon:"speech",size:24})}),(0,y.jsx)(r.xu,{position:"absolute",children:(0,y.jsx)(r.JO,{accessibilityLabel:"",color:O?"dark":"light",icon:"heart",size:10})})]})}):(0,y.jsx)(v,{color:O?"white":"black"})}),R&&(0,y.jsx)(_.Z,{inCommentModuleExp:e,isEligibleForPinReactions:t,isModalOpen:!0,isReactionsExpansionEnabled:z,onDismiss:()=>{L(!1)},pinId:n,pinKey:S,viewParameter:x})]})})}},114020:(e,t,n)=>{"use strict";n.d(t,{C:()=>o,p:()=>s});var i=n(667294),l=n(425288),a=n(785893);let{Provider:r,useHook:o}=(0,l.Z)("Session");function s({children:e}){let[t,n]=(0,i.useState)(void 0),l=(0,i.useCallback)(()=>n(void 0),[]),o=(0,i.useMemo)(()=>({unauthCommentPinId:t,setUnauthCommentPinId:n,removeUnauthCommentPinId:l}),[t,l]);return(0,a.jsx)(r,{value:o,children:e})}},896628:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(667294),l=n(883119),a=n(407043),r=n(121151),o=n(898781),s=n(773285),d=n(947599),u=n(785893);let c=(0,i.lazy)(()=>Promise.all([n.e(72586),n.e(46888),n.e(93179),n.e(95781)]).then(n.bind(n,395781))),p=({commentWarningModalState:e,defaultText:t,disablePhotoCommentSelection:n,dismissCommentWarningModal:p,handlePhotoSelect:m,heading:h,initialMentions:_,isCommentEdit:g,isCommentReply:y,isInCommentModule:v,isModalOpen:f,onDismiss:b,onPost:x,placeholder:k,uploadedPhotoProperties:P,postedPhoto:S})=>{var w;let A=(0,o.ZP)(),{logContextEvent:T}=(0,a.v)(),{checkExperiment:I}=(0,s.F)(),[E,C]=(0,i.useState)(!1),D=null===(w=document.body)||void 0===w?void 0:w.style,j=I("mweb_foundation_scroll_lock").anyEnabled;(0,i.useEffect)(()=>{if(f){T({component:14348,event_type:8983});let e=document.getElementById("hiddenInput");e&&(e.style.visibility="visible",e.focus(),e.style.visibility="hidden")}},[f,T]),(0,i.useEffect)(()=>(D&&j&&(D.position="fixed"),()=>{D&&j&&(D.position="unset")}),[D,j]);let F=(0,u.jsx)(l.xv,{align:"center",size:"300",weight:"bold",children:h});return(0,u.jsx)(r.ZP,{mobileAccessibilityCloseIconLabel:A._('Close', 'commentComposer.close', 'Close comment composer'),accessibilityModalLabel:"",heading:F,mobileIsFullscreen:E,isOpen:f,mobileIsSlideUp:!v,onDismiss:()=>{T({component:14348,event_type:8985}),b(),C(!1)},children:(0,u.jsx)(l.xu,{padding:3,children:(0,u.jsx)(d.Z,{children:(0,u.jsx)(c,{defaultText:t,disablePhotoCommentSelection:n,dismissCommentWarningModal:p,handlePhotoSelect:m,initialMentions:_,isCommentEdit:!!g,isCommentReply:!!y,onPost:(e,t,n)=>()=>{T({component:14348,event_type:8984}),x(e,t,n)},placeholder:k,postedPhoto:S,toggleFullScreen:e=>{C(e)},uploadedPhotoProperties:P,warningModalState:e})})})})}},431389:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(702664),l=n(214494),a=n(139405),r=n(956800),o=n(492583);function s(){let e=(0,i.useDispatch)(),{aggregatedCommentCreated:t,updateCommentCount:n}=(0,a.nf)();return async({force:i,parentId:a,pinId:s,text:d,tags:u,isReply:c,replyToCommentId:p})=>l.Z.create(c?"AggregatedCommentReplyResource":"AggregatedCommentResource",{force:i,objectId:a,pinId:s,tags:u,text:d,replyToCommentId:p}).callCreate().then(i=>{let l=i.resource_response.data;t(a,l),e((0,r.vX)({feedType:c?o.Z.AGGREGATED_COMMENT_REPLIES:o.Z.UNIFIED_COMMENTS,feedId:a,itemIds:[l.id],itemType:l.type})),c&&n(a,1)})}},215727:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var i=n(667294),l=n(240684),a=n(883119),r=n(898781),o=n(149230),s=n(977558),d=n(785893);let u=new a.Ry(s.fe),c=new a.H3([u]),p=new a.H3([c]),m={modalMargin:24,gestaltModalMargin:6,closeButtonMargin:6},h={width:540,height:363},_={modalMargin:24,gestaltModalMargin:6,closeButtonMargin:4},g={width:320,height:215},y=(0,l.ZP)({resolved:{},chunkName:()=>"video-VideoWrapper",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e(67631),n.e(3875)]).then(n.bind(n,158103)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return n(t)},resolve:()=>158103});function v(e){let{displayData:t,handleComplete:n,handleDismiss:l,isMobile:r}=e,{video:s,image:u,title:c,body:p,completeButton:h,dismissButton:g}=t,y=r?"center":"start",v=(0,o.Z)({url:h.url});return(0,d.jsxs)(i.Fragment,{children:[(0,d.jsx)(f,{isMobile:r,image:u,video:s,handleDismiss:l,title:c}),(0,d.jsxs)(a.xu,{margin:(r?_:m).gestaltModalMargin,justifyContent:"center",display:"flex",direction:"column",children:[(0,d.jsx)(a.X6,{align:y,children:c}),(0,d.jsx)(a.xu,{marginTop:2,marginBottom:4,children:(0,d.jsx)(a.xv,{align:y,children:p})}),(0,d.jsxs)(a.xu,{margin:-1,display:"flex",justifyContent:r?"center":"end",dangerouslySetInlineStyle:{__style:{flexWrap:"wrap-reverse"}},children:[g&&!g.hideDismissButton&&(0,d.jsx)(a.xu,{padding:1,fit:!0,minWidth:r?130:void 0,flex:r?"grow":"none",children:(0,d.jsx)(a.zx,{fullWidth:r,color:"gray",size:"lg",text:g.text,onClick:l})}),h&&(0,d.jsx)(a.xu,{padding:1,fit:!0,minWidth:r?130:void 0,flex:r?"grow":"none",children:h.url?(0,d.jsx)(a.ZP,{fullWidth:r,color:"red",size:"lg",text:h.text,onClick:()=>n(),href:h.url,rel:v?"nofollow":"none"}):(0,d.jsx)(a.zx,{fullWidth:r,color:"red",size:"lg",text:h.text,onClick:()=>n()})})]})]})]})}let f=e=>{var t,n;let{isMobile:i,image:l,video:o,handleDismiss:s,title:u}=e,c=(0,r.ZP)(),v=i?_:m,f=i?g:h,b=(0,d.jsx)(a.xu,{margin:v.closeButtonMargin,display:"flex",justifyContent:i?"start":"end",position:"absolute",zIndex:p,width:f.width-2*v.modalMargin,children:(0,d.jsx)(a.hU,{accessibilityLabel:c._('Dismiss', 'experiences.ExperienceModalWindow.modalDismissIconButton', 'Accessibility lable for the X icon button to dismiss the modal window'),icon:"cancel",iconColor:"darkGray",onClick:s,size:"sm"})}),x=l?l.imageAlt:u,k=l?l.url:null==o?void 0:null===(t=o.metadata)||void 0===t?void 0:t.thumbnail,P=(null==l?void 0:null===(n=l.dominantColor)||void 0===n?void 0:n.length)===3?`rgb(${l.dominantColor[0]}, ${l.dominantColor[1]}, ${l.dominantColor[2]})`:"rgb(111, 91, 77)",S=f.width/f.height,w={width:f.width,height:f.height};l&&l.width&&l.height?(S=l.width/l.height,w={width:l.width,height:l.height}):o&&o.metadata.width&&o.metadata.height&&(S=o.metadata.width/o.metadata.height,w={width:o.metadata.width,height:o.metadata.height});let A=k&&(0,d.jsx)(a.Ee,{alt:x||"",color:P,naturalHeight:w.height,naturalWidth:w.width,src:k,fit:"cover"}),T=Math.trunc(f.width/S);return(0,d.jsxs)(a.xu,{top:!0,left:!0,bottom:!0,right:!0,width:f.width,height:T,overflow:"hidden",children:[b,l&&A,o&&(0,d.jsx)(y,{fallback:A,aspectRatio:S,objectFit:"cover",captions:"",controls:!1,loop:!0,isAutoPlay:!0,onPlay:()=>{},onPlayError:()=>{},playing:!0,playsInline:!0,poster:(null==l?void 0:l.url)||o.metadata.thumbnail,src:o.url,volume:0})]})}},163331:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});var i=n(121093),l=n(667294),a=n(883119),r=n(391254),o=n(249647),s=n(164985),d=n(70061),u=n(643010),c=n(858472),p=n(287072),m=n(250059),h=n(149230),_=n(785893);let g=40,y={lightMode:{backgroundColor:c.x7,color:"#FFFFFF"},darkMode:{backgroundColor:c.x7,color:"#FFFFFF"}},v={lightMode:{backgroundColor:"#EFEFEF",color:"#111111"},darkMode:{backgroundColor:"#292929",color:"#EFEFEF"}},f=({color:e,isPrimary:t,shape:n,text:i,textColor:l})=>{let r=(0,u.Yc)()?"darkMode":"lightMode",o=(t?y:v)[r];return(0,_.jsx)(a.xv,{align:"center",weight:"bold",children:(0,_.jsx)("div",{className:t?"banner-button-primary":"banner-button-secondary",style:{backgroundColor:e||o.backgroundColor,borderRadius:"pill"===n?"24px":"4px",color:l||o.color,padding:"10px 14px"},children:i})})},b=({external:e,onTouch:t,pressState:n,to:i,accessibilityLabel:l,color:r,isPrimary:o,textColor:s,minHeight:d=g,shape:u,text:c})=>{let y=(0,m.Z)(i),v=(0,p.Z)({externalData:{dangerouslyForceOffsiteUrl:e},href:y});return(0,_.jsx)(a.xu,{"aria-label":l,minHeight:d,children:y?(0,_.jsx)(a.Tg,{onTap:({event:e})=>{null==t||t(e),e.defaultPrevented||v({event:e})},href:y,target:"blank",rel:(0,h.Z)({url:y})?"nofollow":"none",tapStyle:n||"none",rounding:"pill"===u?"pill":2,children:(0,_.jsx)(f,{color:r,isPrimary:o,shape:u,text:c,textColor:s})}):(0,_.jsx)(a.iP,{onTap:({event:e})=>null==t?void 0:t(e),tapStyle:n||"none",rounding:"pill"===u?"pill":2,children:(0,_.jsx)(f,{color:r,isPrimary:o,shape:u,text:c,textColor:s})})})};function x(e){return e.startsWith("https://")||e.startsWith("http://")}let k=function({experience:e,onComplete:t,onDismiss:n}){let{display_data:i={},experience_id:u,placement_id:c}=e||{},p=(0,l.useMemo)(()=>(0,o.Z)(d.Z)(i),[i]),{backgroundColorNarrowMweb:m,backgroundColorWideMweb:h,backgroundImageNarrow:g,backgroundImageWide:y,button1ColorNarrowMweb:v,button1ColorWideMweb:f,button1TextColorNarrowMweb:k,button1TextColorWideMweb:P,button1Text:S,button1Uri:w,button2ColorNarrowMweb:A,button2ColorWideMweb:T,button2TextColorNarrowMweb:I,button2TextColorWideMweb:E,button2Text:C,button2Uri:D,completeButtonAction:j,coverImage:F,detailedTextWithLinks:R,iconImage:L,layoutNarrow:z,layoutWide:O,links:M,linkTitles:N,primaryColorNarrowMweb:B,primaryColorWideMweb:Z,titleText:K}=p,{windowWidth:U}=(0,s.Z)(),H=U<=480,V=H?z:O,G=!H&&3!==V,$=H?B:Z,{altText:W,uri:q}=(H?g:y)||{},{altText:Y,uri:X}=F||{},{altText:Q,uri:J}=L||{},ee=H&&2===V||!H&&2===V,et=H?"96px":"48px",en=H&&3===V,ei=e=>{!e&&c&&u&&n&&n()},el=e=>{t&&t(e)},ea=S&&(0,_.jsx)(a.xu,{marginEnd:2,children:(0,_.jsx)(b,{accessibilityLabel:S,color:H?v:f,external:w?x(w):void 0,onTouch:()=>ei(w),shape:"pill",text:S,textColor:H?k:P,to:w})}),er=C&&(0,_.jsx)(b,{accessibilityLabel:C,color:H?A:T,external:D?x(D):void 0,isPrimary:!0,onTouch:()=>el(j),shape:"pill",text:C,textColor:H?I:E,to:D}),eo=M.reduce((e,t,n)=>{let i=x(t)?'rel="noreferrer noopener" target="_blank"':"",l=`<a href="${t}" ${i}>${N[n]}</a>`;return e.replace(`{${n}}`,l)},R),es={backgroundImage:!q||ee||en?void 0:`url(${q})`,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"};return(0,_.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:H?m:h,boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)"}},marginBottom:1,rounding:4,children:(0,_.jsxs)(a.zd,{rounding:4,children:[en&&X&&(0,_.jsx)(a.kC,{alignItems:"start",height:128,justifyContent:"center",width:"100%",children:(0,_.jsx)(a.Ee,{alt:Y||"cover image",fit:"cover",naturalHeight:1,naturalWidth:3,src:X})}),(0,_.jsxs)(a.xu,{"aria-label":W,alignItems:"center",dangerouslySetInlineStyle:{__style:es},direction:G?"row":"column",display:"flex",justifyContent:"between",marginTop:en?-2:0,padding:6,children:[(0,_.jsxs)(a.kC,{alignItems:"center",direction:G?"row":"column",justifyContent:"between",maxWidth:G?void 0:"560px",children:[ee&&J&&(0,_.jsx)(a.xu,{alignItems:"center",direction:"column",display:"flex",justifyContent:"center",marginEnd:G?4:0,marginBottom:G?0:6,children:(0,_.jsx)(a.xu,{height:et,width:et,children:(0,_.jsx)(a.zd,{rounding:G?4:6,children:(0,_.jsx)(a.Ee,{alt:Q||"icon",naturalHeight:1,naturalWidth:1,src:J})})})}),!G&&K&&(0,_.jsx)(a.xv,{align:"center",weight:"bold",children:(0,_.jsx)(a.xu,{marginBottom:2,dangerouslySetInlineStyle:{__style:{color:$,fontSize:"20px"}},children:K})}),R&&(0,_.jsxs)(a.xv,{align:G?"start":"center",overflow:"normal",children:[(0,_.jsx)(r.Z,{unsafeCSS:`
263
+ .nag-text a {
264
+ color: ${$||""};
265
+ font-weight: bold;
266
+ }`}),(0,_.jsx)("div",{className:"nag-text",dangerouslySetInnerHTML:{__html:eo},style:{color:$}})]})]}),(ea||er)&&(0,_.jsxs)(a.xu,{alignItems:"center",display:"flex",justifyContent:"center",marginBottom:G?0:-1,marginStart:G?4:0,marginTop:G?0:4,wrap:!G,children:[ea,er]})]})]})})},P=({experience:e={}})=>(0,_.jsx)(i.Z,{experience:e,predicate:e=>e&&e.display_data&&1===e.display_data.component_type,children:({complete:e,dismiss:t,experience:n})=>(0,_.jsx)(k,{experience:n,onComplete:e,onDismiss:t})})},229646:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(667294),l=n(702664),a=n(332611),r=n(121093),o=n(785893);let s=[502321,502322];class d extends i.Component{componentDidMount(){let{experience:e,completeExperience:t}=this.props;e&&s.includes(e.experience_id)&&t(e.placement_id,e.experience_id,!0)}render(){return(0,o.jsx)(r.Z,{experience:this.props.experience,eligibleIds:s,children:(0,o.jsx)("span",{})})}}function u(e){let t=(0,l.useDispatch)(),n=(0,a.be)();return(0,o.jsx)(d,{...e,completeExperience:(e,i,l)=>t(n(e,i,l))})}},120285:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(667294),l=n(702664),a=n(883119),r=n(332611),o=n(121093),s=n(63552),d=n(785893);function u(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends i.PureComponent{constructor(...e){super(...e),u(this,"state",{paused:!1,showPulsar:!1,hasMounted:!1}),u(this,"handleDismiss",()=>{let{onClickDismiss:e,dismissExperience:t,experience:n}=this.props;if(!n)return;let{experience_id:i,placement_id:l}=n;t(l,i),e&&e()}),u(this,"wrapperRef",(0,i.createRef)())}componentDidMount(){this.props.experience&&(this.mountPulsar(),this.setState({hasMounted:!0}))}componentDidUpdate(e){this.props.experience&&e.experience!==this.props.experience&&(this.mountPulsar(),this.setState({hasMounted:!0}))}mountPulsar(){let{experience:e}=this.props;if(!e)return;let{display_data:t}=e;t.has_pulsar&&this.setState({showPulsar:!0})}renderPulsar(){let e=this.wrapperRef,{paused:t}=this.state;if(!e||!e.current)return null;let n=e.current.getBoundingClientRect(),{height:i,width:l}=n;return(0,d.jsx)(s.Z,{pressState:"none",children:(0,d.jsx)(a.xu,{position:"absolute",zIndex:new a.Ry(1),dangerouslySetInlineStyle:{__style:{marginTop:-(68+i/2),marginLeft:-(68-l/2),pointerEvents:"none"}},children:(0,d.jsx)(a.o3,{paused:t,size:136})})})}render(){let{children:e,color:t,eligibleIds:n,experience:i,idealDirection:l,onClickComplete:r,showCaret:s,size:u,textWeight:c="bold",textAlign:p,textOverflow:m,fontSize:h}=this.props,{showPulsar:_,hasMounted:g}=this.state;if(!i||!n.includes(i.experience_id)||!g)return e({experience:i});let{display_data:{scroll_to_dismiss:y,scroll_to_dismiss_delay_in_seconds:v=0,...f}}=i;return(0,d.jsx)(o.Z,{eligibleIds:n,experience:i,children:({complete:n})=>{let o=()=>(g(),setTimeout(this.handleDismiss,1e3*v)),g=()=>{y&&(window.removeEventListener("scroll",o),window.removeEventListener("touchmove",o))};y&&(window.addEventListener("scroll",o),window.addEventListener("touchmove",o));let b=()=>{g(),n(1)};return(0,d.jsxs)(a.xu,{ref:this.wrapperRef,children:[e({experience:i}),_?this.renderPulsar():f.has_tooltip&&(0,d.jsx)(a.J2,{anchor:this.wrapperRef.current,color:"blue"===t?"deprecatedBlue":t,idealDirection:l||"down",onDismiss:this.handleDismiss,_deprecatedShowCaret:s,size:u,children:(0,d.jsx)(a.xu,{padding:3,children:(0,d.jsxs)(a.kC,{direction:"column",gap:{row:0,column:3},children:[(0,d.jsx)(a.xu,{column:12,children:(0,d.jsxs)(a.xv,{align:"right"===p?"end":p,color:"inverse",overflow:m,size:h,weight:c||"bold",children:[f.text,f.secondary_cta_link&&(0,d.jsx)(a.xu,{display:"inlineBlock",marginStart:1,children:(0,d.jsx)(a.xv,{size:h,weight:"bold",color:"inverse",children:(0,d.jsx)(a.rU,{display:"inlineBlock",target:"blank",href:f.secondary_cta_link.url,underline:"hover",children:f.secondary_cta_link.text})})})]})}),f.complete_button_text&&(0,d.jsx)(a.kC,{alignItems:"stretch",justifyContent:"center",children:f.complete_button_text&&(0,d.jsx)(a.kC,{alignContent:"center",children:(0,d.jsx)(a.zx,{color:"white",onClick:()=>{b(),r&&r()},size:"md",text:f.complete_button_text})})})]})})})]})}})}}function p(e){let t=(0,l.useDispatch)(),n=(0,r.be)(),i=(0,r.Am)();return(0,d.jsx)(c,{...e,dismissExperience:(e,n)=>t(i(e,n)),completeExperience:(e,i)=>t(n(e,i))})}},82058:(e,t,n)=>{"use strict";n.d(t,{_l:()=>f,cO:()=>v,t2:()=>b,w2:()=>x,xM:()=>y});var i=n(667294),l=n(616550),a=n(214494),r=n(53987),o=n(826067),s=n(50286),d=n(19121),u=n(785893);let c="UnauthDesktopSocialPinLandingPageContext",p="AthDesktopSocialPinLandingPageContext",m="AuthMobileSocialPinLandingPageContext",h=(0,i.createContext)(),_=({children:e})=>{let[t,n]=(0,i.useState)(!1),[l,a]=(0,i.useState)(!1),r=(0,i.useMemo)(()=>({hasSeenAuthMobileLandingToast:t,setHasSeenAuthMobileLandingToast:n,hasSeenAuthDesktopLandingToast:l,setHasSeenAuthDesktopLandingToast:a}),[t,n,l,a]);return(0,u.jsx)(h.Provider,{value:r,children:e})},g=(0,i.createContext)({key:"",data:null}),y=({children:e})=>{let t=(0,l.useLocation)(),n=(0,d.Z)(),h=n&&n.isAuth,y=(0,s.HG)(),v=(0,i.useRef)((0,r.fY)(t)&&(0,o.mB)(t.search).invite_code||null),f=(0,l.matchPath)(t.pathname,{path:"/pin/:id"}),b=f&&f.params.id||"",[x,k]=(0,i.useState)({key:"",data:null});return(0,i.useEffect)(()=>{(async function(){let e=v.current;if(e)try{let i=a.Z.create("InviteCodeMetadataResource",{invite_code:e}),l=await i.callGet(),r=l.resource_response.data;if(r){var t;let e=null!==(t=r.sender)&&void 0!==t?t:null,i=h&&e.id!==n.id&&(null==e?void 0:e.should_show_messaging)&&n.should_show_messaging;!h&&y?k({key:c,data:{inviter:e,popoverData:e&&![5,9,12,16].includes(r.invite_channel)?{inviterAvatarUrl:e.image_medium_url||"",inviterName:e.first_name||e.full_name}:null}}):i&&!y?k({key:m,data:{toastData:{inviter:{inviterAvatarUrl:e.image_medium_url||"",inviterName:e.first_name||e.full_name,inviterId:e.id},viewer:{viewerId:n.id||""},pin:{pinId:b}}}}):i&&y&&k({key:p,data:{toastData:{inviter:{inviterAvatarUrl:e.image_medium_url||"",inviterName:e.first_name||e.full_name,inviterId:e.id},viewer:{viewerId:n.id||""},pin:{pinId:b}}}})}else k({key:"",data:null})}catch(e){k({key:"",data:null})}})()},[h,y,n.id,b,n.should_show_messaging]),(0,u.jsx)(_,{children:(0,u.jsx)(g.Provider,{value:x,children:e})})},v=()=>{let e=(0,i.useContext)(g);return e.key===c?e:null},f=()=>{let e=(0,i.useContext)(g);return e.key===m?e:null},b=()=>{let e=(0,i.useContext)(g);return e.key===p?e:null},x=()=>(0,i.useContext)(h)},886076:(e,t,n)=>{"use strict";function i({isEligibleForPdp:e,isOosProduct:t,isStaleProduct:n,pinShoppingFlags:i}){if(i){let l={pin_is_shop_the_look:i.includes(2),pin_show_pdp:e||t||n,is_available:i.includes(1),is_product_pin_v2:i.includes(5),is_rich_product_pin:i.includes(6)};return JSON.stringify(l)}}n.d(t,{Z:()=>i})},830157:(e,t,n)=>{"use strict";function i(e,t){return e||`${t||""}~0`}n.d(t,{Z:()=>i})},581323:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o}),n(167912);var i,l=n(681669),a=n(886076);let r=void 0!==i?i:i=n(115831);function o(e){let{data:t}=(0,l.sr)(r,e,{type:"pin",useLegacyAdapter:e=>({isEligibleForPdp:e.is_eligible_for_pdp,isOosProduct:e.is_oos_product,isStaleProduct:e.is_stale_product,shoppingFlags:e.shopping_flags})});return t?(0,a.Z)({isEligibleForPdp:t.isEligibleForPdp,isOosProduct:t.isOosProduct,isStaleProduct:t.isStaleProduct,pinShoppingFlags:t.shoppingFlags}):null}},948376:(e,t,n)=>{"use strict";n.d(t,{G3:()=>u,Rp:()=>d,kp:()=>o});var i=n(202139),l=n(844974),a=n(339363);let r=14*i.F4,o=(e,t)=>{let n=function(){let e=Date.now(),t=Number((0,l.qn)("appUpsell")),n=Number((0,l.qn)("firstUpsellTime")),i=!!(0,a.qn)("showedAppUpsellCurrentSession");return{currentTime:e,firstUpsellTime:n,lastUpsellTime:t,showedAppUpsellCurrentSession:i}}();return e?function(e,t,n){let{currentTime:i,firstUpsellTime:a,lastUpsellTime:o,showedAppUpsellCurrentSession:s}=e;return(n=n||r,!a||i<a+t)?!s:i-o>n&&((0,l.L_)("firstUpsellTime"),!0)}(n,i.F4):function(e,t){let{currentTime:n,lastUpsellTime:i}=e;return t=t||r,!i||n-i>t}(n,t)},s=e=>{e=e.toLowerCase();let t=e.match(/android\s([0-9\.]*)/i);return t?t[1]:void 0},d=({isBot:e,platform:t,userAgent:n})=>{try{return!e&&"android"===t&&7>parseFloat(s(n))}catch(e){return!1}},u=e=>(e.startsWith("zh")||e.startsWith("ar")?e:e.slice(0,2)).toUpperCase()},116485:(e,t,n)=>{"use strict";n.d(t,{AA:()=>a,E9:()=>g,EU:()=>f,IO:()=>v,KH:()=>u,Lg:()=>m,QR:()=>d,Uw:()=>l,ZR:()=>b,dy:()=>s,eA:()=>p,eV:()=>h,fo:()=>_,k7:()=>r,rT:()=>y,tz:()=>c,u9:()=>x,zR:()=>o,zu:()=>i});let i="OPEN_UNAUTH",l="openUnauthType",a="_isAfterLogin",r="_lastVisitedPages",o="_lastVisitedPagesBeforeLogin",s="_lastVisitedBoardPages",d="_lastVisitedPagesBeforeNavPage",u="_lastVisitedSessionPages",c="_unauthVisitedPages",p=20,m="_inviteCodeRedemption",h="_paidTrafficLand",_="_unauthReferrerString",g="unauthTopicsFollowed",y=["US","CA","NZ","AU"],v=new Set(["GB","IE"]),f=new Set(["AT","BE","CH","DE","DK","ES","FR","IT","NL","NO","PT","SE"]),b=new Set(["BR","MX","AR","CL","CO","PE"]),x="ad_img"},208901:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(67347);let l=e=>{(0,i.nP)(`closeup.image.clicked.${e}`,{sampleRate:1,tags:{platform:"mobile"}})}},62409:(e,t,n)=>{"use strict";n.d(t,{AH:()=>d,CK:()=>s,Fc:()=>r,Wj:()=>a,Xe:()=>l,kb:()=>o,wS:()=>i});let i=(e,t,n,i)=>t||(e?e.official_user:n||i);function l({hasLinkDomain:e,hasNativeCreator:t,hasOriginPinner:n,pinDomain:i,sourceUserUsername:l,sourceUserFullName:a}){return!t&&(e||n)&&l?{pinCreditLink:`/${l}/`,pinCredit:a}:{pinCreditLink:void 0,pinCredit:!t&&e?i:""}}let a=({i18n:e,hasLinkDomain:t,hasRichMetadataArticle:n,hasRichMetadataRecipeCategorizedIngredients:i,hasRichMetadataTutorial:l,richMetadataRecipeFromAggregatedData:a})=>(!t||a)&&e._('Saved by ', 'Closeup pin annotation', 'Closeup pin annotation')||l&&e._('Saved from ', 'pin annotation', 'pin annotation')||i&&e._('Recipe from ', 'pin annotation', 'pin annotation')||n&&e._('Article from ', 'pin annotation', 'pin annotation')||e._('From ', 'Closeup pin annotation', 'Closeup pin annotation');function r({i18n:e,hasRichMetadataProductOfferSummary:t,richMetadataProductName:n,richSummaryProductName:i,hasRichSummaryProductOfferSummary:l}){return t&&n||!t&&i&&l?e._('Product sold by ', 'pin annotation', 'pin annotation'):""}let 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,d=e=>!!e&&!e.startsWith("https://i.pinimg.com")},367438:(e,t,n)=>{"use strict";function i(e){return!!e.key}n.d(t,{Z:()=>i})},772486:(e,t,n)=>{"use strict";let i;n.d(t,{XK:()=>s,jC:()=>o,yd:()=>d});var l=n(755289);let a=null,r=null,o=(i=null,e=>{var t,n,o;if(e&&!i){let o={...e,time:(0,l.Z)()};return i={...o,event_type:12},null===(t=r)||void 0===t||t.logContextEvent(i),null===(n=a)||void 0===n||n.storeClickthroughProperties(o),12}if(!e&&i){let e={...i,event_type:4100,duration_ns:(0,l.Z)()-i.time};return null===(o=r)||void 0===o||o.logContextEvent(e),i=null,4100}return null}),s=e=>{a=e},d=e=>{r=e}},59729:(e,t,n)=>{"use strict";n.d(t,{CC:()=>s,H$:()=>u,Mt:()=>r,dp:()=>d,p9:()=>c});var i=n(844974),l=n(339363),a=n(116485);let r=(e,t,n,l,r,o,s=a.k7)=>{let d=(0,i.qn)(s)?JSON.parse((0,i.qn)(s)):[];if(!d[0]||d[0].path!==e){let a=[{path:e,ts:Date.now(),pin_id:n||0,first_pin_image_signature:t||"",first_pin_id:n||"",image_info:l||"",pin_description:r||"",is_shared:!!o,pin_invite_code:o}];(0,i.Nh)(s,JSON.stringify(a.concat(d)))}},o=()=>{let e;let t=(0,l.qn)(a.KH);if(!t)return[];try{e=JSON.parse(t)}catch(t){e=[]}return e},s=({path:e,image:t,dominant_color:n,pin_description:i,pin_id:r})=>{let s=o();s[0]&&s[0].path===e||(0,l.Nh)(a.KH,JSON.stringify([{path:e,image:t,pin_description:i||"",dominant_color:n||"",pin_id:r||""}].concat(s)))};function d(e,t,n,i,l,o){r(e,t,n,i,l,o,a.zR)}let u=(e,t,n,i,l)=>{r(e,t,n,i,null!=l?l:"","",a.dy)};function c(e,t,n,i,l){r(e,t,n,i,l,"",a.QR)}},534427:(e,t,n)=>{"use strict";n.d(t,{E:()=>r,S:()=>o});var i=n(667294),l=n(844974);let a="_loggingInNotHome",r=e=>{e?(0,l.Nh)(a,1):(0,l.L_)(a)},o=()=>{let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t(!0)},[]),e&&(0,l.qn)(a)}},885149:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c,x:()=>u});var i=n(667294),l=n(867820),a=n(785893);let r=(0,i.createContext)(()=>{}),o=()=>{document&&document.body&&document.body.style&&(document.body.style.overflow="hidden")},s=()=>{document&&document.body&&document.body.style&&(document.body.style.overflow="unset")},d=()=>(0,i.useEffect)(()=>s,[]),u=({children:e})=>{let[t,n]=(0,i.useState)(null);d();let u=(0,i.useCallback)(e=>{(0,l.My)("dweb.unauth.context_menu.open_menu"),o(),n(e)},[]),c=!!t;return(0,i.useEffect)(()=>{let e=()=>{n(null),s(),(0,l.My)("dweb.unauth.context_menu.click_away")};return c&&document.addEventListener("click",e),()=>{c&&document.removeEventListener("click",e)}},[c]),(0,a.jsx)(r.Provider,{value:u,children:(0,a.jsxs)(i.Fragment,{children:[e,t]})})},c=()=>(0,i.useContext)(r)},332215:(e,t,n)=>{"use strict";function i(e){return!!(null==e?void 0:e.is_matured_new_user)}n.d(t,{IR:()=>r,V0:()=>i,Wn:()=>a,xT:()=>l});let l=e=>!!e&&2===e.login_state,a=e=>!!(e&&e.match(/\/static\/images\/user\/default_\d+\.png$/));function r(e){return!e||void 0===e.third_party_marketing_tracking_enabled||null===e.third_party_marketing_tracking_enabled||e.third_party_marketing_tracking_enabled}},691720:(e,t,n)=>{"use strict";n.d(t,{D5:()=>o,Hg:()=>l,T_:()=>r,g6:()=>a,w6:()=>i});let i=(e,t)=>Array.from({length:t-e},(t,n)=>n+e),l=508,a=600;function r(e,t){if(!t.startsWith("en"))return e;let n=e.split(" ").map(e=>{let t=e===e.toUpperCase();return t?e:e.toLowerCase()});return n.join(" ")}let o=()=>{let e=new URL(window.location.href),t=e.hostname.replace("www.",""),n=e.pathname;return`${t}${n=n.replace(/\/\d+\//,"/").replace(/\/$/,"")}`}},619623:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=({name:e,width:t,height:n})=>{let i=`${t}${"number"==typeof t?"px":""}`,l=`${n}${"number"==typeof n?"px":""}`,a="number"==typeof t?t:236;return`
267
+ .${e} {
268
+ -webkit-animation-duration: 1s;
269
+ -webkit-animation-fill-mode: forwards;
270
+ -webkit-animation-iteration-count: infinite;
271
+ -webkit-animation-name: ${e}_placeHolderShimmer;
272
+ -webkit-animation-timing-function: linear;
273
+ border-radius: 16px;
274
+ background: #f6f7f9;
275
+ background-image: linear-gradient(to right, #f6f7f9 0%, #e9ebee 20%, #f6f7f9 40%, #f6f7f9 100%);
276
+ background-repeat: no-repeat;
277
+ background-size: ${a} ${l};
278
+ width: ${i};
279
+ height: ${l};
280
+ }
281
+
282
+ @keyframes ${e}_placeHolderShimmer{
283
+ 0% {
284
+ background-position: -${a}px 0;
285
+ }
286
+ 100% {
287
+ background-position: ${a}px 0;
288
+ }
289
+ }
290
+ `}},987318:(e,t,n)=>{"use strict";n.d(t,{H:()=>a,o:()=>l});var i=n(425288);let{Provider:l,useHook:a}=(0,i.Z)("LimitedLogin")},945698:(e,t,n)=>{"use strict";n.d(t,{N4:()=>a,Wh:()=>i,hr:()=>l});let i=e=>e._('Log in to continue', 'limitedLogin.modalHeader.default', 'Default title on mobile web limited login modal'),l=e=>e._('You\'re almost there! Log in to access all of Pinterest', 'loginModal.limitedLogin.subheader', 'Subheader text on personalized login modal/flyout to remind users to log in'),a=({i18n:e,toFollow:t})=>t?e._('Log in to follow', 'limitedLogin.modalHeader.follow', 'Title on mobile web limited login modal to prompt users to login to follow a user or board.'):e._('Log in to unfollow', 'limitedLogin.modalHeader.unfollow', 'Title on mobile web limited login modal to prompt users to login to unfollow a user or board.')},881802:(e,t,n)=>{"use strict";n.d(t,{Bb:()=>g,Bx:()=>s,F4:()=>o,OG:()=>a,Qj:()=>d,_6:()=>_,gv:()=>r,hg:()=>u,is:()=>m,jP:()=>h,lt:()=>l,oM:()=>c,wI:()=>p});var i=n(826067);let l=e=>e._('Log in to continue', 'limitedLogin.modalHeader.default', 'Default title on mobile web limited login modal'),a=e=>e.pathname,r=({firstName:e,i18n:t})=>e?(t._('{{ name }} invited you to join their board', 'limitedLogin.modalHeader.groupBoardCollab', 'Mobile Modal prompting users to join a friends({{ name }}) board')).replace("{{ name }}",e):t._('Your friends invited you to join their board', 'limitedLogin.modalHeader.groupBoardCollab', 'Mobile Modal prompting users to join a friends board'),o=e=>{let t=(0,i.mB)(e.search).board_url;if(t){let e=(0,i.Jx)(t),n=(0,i.XP)({accept_invite:!0,seamless:!0});return e.includes("?")?`${e}&${n}`:`${e}?${n}`}return e.pathname},s=e=>e._('Log in to save this Pin', 'limitedLogin.modalHeader.repin', 'Title on mobile web limited login modal to prompt users to login after they clicked save button.'),d=e=>{let t=e.pathname;if(t.startsWith("/pin/")){let e=t.split("/");if(e.length>2)return`/${e[1]}/${e[2]}/repin/`}return t},u=e=>e._('Log in to send this Pin', 'limitedLogin.modalHeader.send', 'Title on mobile web limited login modal to prompt users to login after they clicked send button.'),c=e=>e._('Log in to edit this Pin', 'limitedLogin.modalHeader.editPin', 'Title on mobile web limited login modal to prompt users to login after they clicked edit button.'),p=e=>{let t=e.pathname;if(t.startsWith("/pin/")){let e=t.split("/");if(e.length>2)return`/${e[1]}/${e[2]}/edit/`}return t},m=e=>e._('Log in to create a Pin or board', 'limitedLogin.modalHeader.create', 'Title on mobile web limited login modal to prompt users to login to create a Pin or board.'),h=e=>e._('Log in to hide this Pin', 'limitedLogin.modalHeader.hidePin', 'Title on mobile web limited login modal to prompt users to login after they clicked hide Pin button.'),_=e=>e._('Log in to share the profile', 'limitedLogin.modalHeader.shareProfile', 'Title on mobile web limited login modal to prompt users to login after they clicked share button on profile page.'),g=e=>e._('Log in to create a board', 'limitedLogin.modalHeader.createBoard', 'Title on mobile web limited login modal to prompt users to login to create a board.')},149823:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(898781),l=n(881802),a=n(987318),r=n(785893);function o({children:e,callbackFunction:t,modalHeader:n,nextLocation:o}){let s=(0,i.ZP)(),{viewer:d,loginForMore:u,limitedLoginModalSubheader:c,limitedLoginModalNextLocation:p}=(0,a.H)(),m="LIMITED_LOGIN"===d.type;return(0,r.jsx)("div",{onClickCapture:e=>{m&&(t&&t(),e&&(e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()),null==u||u.setVisible(!0),null==c||c.setText(n||(0,l.lt)(s)),o&&(null==p||p.setRoute(o)))},children:e})}},927383:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(898781),l=n(50286),a=n(987318),r=n(945698);let o=()=>{let e=(0,i.ZP)(),t=(0,l.HG)(),{viewer:n,loginForMore:o,limitedLoginModalSubheader:s,limitedLoginModalNextLocation:d}=(0,a.H)(),u="LIMITED_LOGIN"===n.type;return u?({modalHeader:n,nextLocation:i})=>l=>{let a=null;l&&(l.nativeEvent&&l.nativeEvent instanceof Event?a=l:l.event&&(a=l.event)),a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation()),null==o||o.setVisible(!0),null==s||s.setText(n||(t?(0,r.hr)(e):(0,r.Wh)(e))),i&&(null==d||d.setRoute(i))}:({fn:e})=>e}},574724:(e,t,n)=>{"use strict";n.d(t,{Hn:()=>c,Jw:()=>_,L7:()=>i,Qc:()=>l,Tt:()=>y,UF:()=>d,UV:()=>r,W1:()=>a,Ws:()=>p,ZW:()=>s,cK:()=>g,cy:()=>h,o4:()=>m,tr:()=>u,vF:()=>o});let i=1,l=2,a="female",r="male",o="unspecified",s="en-US",d="US",u=3,c="has_done_closeup",p="Gender",m="InterestPicker",h="LoadingStep",_="AppInstall",g={NUX_GENDER_STEP_NAME:p,NUX_INTEREST_PICKER_STEP_NAME:m,NUX_LOADING_STEP_NAME:h,NUX_APP_INSTALL_STEP_NAME:_},y=2500},327212:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var i=n(667294),l=n(376030),a=n(883119),r=n(898781),o=n(223815),s=n(829407),d=n(391254),u=n(785893);let c=`
291
+ @keyframes baseEduToastIconScale {
292
+ 0% {
293
+ transform: scale(0)
294
+ }
295
+ 30% {
296
+ transform: scale(1.2);
297
+ }
298
+ 50% {
299
+ transform: scale(1);
300
+ }
301
+ }
302
+ `;function p({addedStyles:e,button:t,headerText:n,icon:l,iconOverride:r,minHeight:o,subHeaderText:s}){return(0,u.jsx)(a.xu,{display:"flex",justifyContent:"center",width:"100vw",paddingX:2,children:(0,u.jsxs)(a.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:o||75,padding:6,position:"relative",rounding:4,width:"100%",children:[(()=>{let e=r||(0,u.jsxs)(i.Fragment,{children:[(0,u.jsx)(d.Z,{unsafeCSS:c}),(0,u.jsx)(a.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,u.jsx)(a.JO,{accessibilityLabel:l.accessibilityLabel,color:l.color,dangerouslySetSvgPath:l.dangerouslySetSvgPath,icon:l.icon,inline:l.inline,size:l.size})})]});return(0,u.jsx)(a.xu,{marginEnd:4,children:e})})(),(0,u.jsxs)(a.xu,{marginEnd:"auto","data-test-id":"pin-save-toast-header",children:[(0,u.jsx)(a.xv,{color:"default",weight:"bold",children:n}),!!s&&(0,u.jsx)(a.xu,{paddingY:1,children:(0,u.jsx)(a.xv,{size:"300",color:"default",children:s})})]}),(0,u.jsx)(a.xu,{display:"flex",flex:"shrink",marginStart:2,children:t})]})})}var m=n(759929);function h(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let _="cubicBezier(0.25, 0.1, 0.25, 1)",g="encourageToastIconContainer",y="encourageToastIconRadiateBg",v="encourageToastIconRadiateRing",f={targets:`#${g}`,duration:300,scale:1.4,easing:_},b={targets:`#${g}`,duration:300,scale:1,easing:_,endDelay:1e3},x={targets:`#${g}`,duration:300,scale:.42,easing:_},k={targets:`#${y}`,duration:400,opacity:0,scale:1.6,easing:_},P={targets:`#${v}`,duration:650,opacity:0,scale:2,easing:_};class S extends i.PureComponent{constructor(...e){super(...e),h(this,"delayTimer",null),h(this,"requestAnimationFrameId",null),h(this,"playAnimation",()=>{this.requestAnimationFrameId=window.requestAnimationFrame(()=>{(0,l.Z)(k),(0,l.Z)(P),(0,l.Z)(f).finished.then(()=>{(0,l.Z)(b).finished.then(()=>{l.Z.set(`#${g}`,{transformOrigin:"top right"}),(0,l.Z)(x)})})})}),h(this,"getHeaderText",()=>{let{text:e}=this.props;return Array.isArray(e)?e[0]:e}),h(this,"getIconProps",()=>({accessibilityLabel:this.props.i18n._('Check icon', 'Label for check icon on toast shown after board create', 'Label for check icon on toast shown after board create'),color:"inverse",icon:"check",size:30})),h(this,"getSubHeaderText",()=>{let{text:e}=this.props;return e instanceof Array&&e.length>1&&e[1]?e[1]:""}),h(this,"renderAnimatedIcon",()=>(0,u.jsxs)(a.xu,{height:68,position:"relative",width:68,children:[(0,u.jsx)(a.xu,{"data-test-id":"pin-save-toast",width:60,height:60,overflow:"hidden",position:"absolute",rounding:4,dangerouslySetInlineStyle:{__style:{left:"4px",top:"4px"}},children:this.props.thumbnail}),(0,u.jsxs)(a.xu,{id:g,height:68,width:68,dangerouslySetInlineStyle:{__style:{transform:"scale(0)"}},position:"absolute",children:[(0,u.jsx)(a.xu,{color:"infoBase",id:y,width:68,height:68,position:"absolute",rounding:"circle",dangerouslySetInlineStyle:{__style:{left:"0px",top:"0px",transform:"scale(0)"}}}),(0,u.jsx)(a.xu,{id:v,width:66,height:66,position:"absolute",rounding:"circle",opacity:1,dangerouslySetInlineStyle:{__style:{borderWidth:"2px",borderStyle:"solid",borderColor:"#0074e8",left:"1px",top:"1px",transform:"scale(0)"}}}),(0,u.jsx)(a.xu,{alignItems:"center",color:"infoBase",direction:"column",display:"flex",height:68,justifyContent:"center",minHeight:68,minWidth:68,position:"absolute",rounding:"circle",width:68,children:(0,u.jsx)(a.JO,{accessibilityLabel:this.props.i18n._('Check icon', 'Label for check icon on toast shown after board create', 'Label for check icon on toast shown after board create'),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(){let{isRepinToExistingBoard:e,button:t}=this.props;return(0,u.jsx)(p,{button:t,headerText:this.getHeaderText(),icon:this.getIconProps(),iconOverride:e?void 0:this.renderAnimatedIcon(),subHeaderText:this.getSubHeaderText()})}}function w(e){let{duration:t,onHide:n}=e,l=(0,r.ZP)(),[d,c]=(0,i.useState)(!1),[p,h]=(0,i.useState)(!1),_=(0,i.useRef)(),g=()=>{c(!0),_.current=setTimeout(n,200)},y=()=>{_.current&&clearTimeout(_.current)},v=()=>{_.current=setTimeout(g,t||m.w)};(0,s.Z)(()=>(setTimeout(()=>h(!0),100),v(),y));let f=(0,u.jsx)(S,{...e,i18n:l});return e.href&&(f=(0,u.jsx)(a.rU,{href:e.href,onClick:g,rounding:"pill",tapStyle:"none",children:f})),(0,u.jsx)(o.Z,{children:(0,u.jsx)(a.mh,{children:(0,u.jsx)(a.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{...function({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({})}({hiding:d,visible:p})}},justifyContent:"center",position:"fixed",width:"100%",display:"flex",zIndex:m.k,children:f})})})}},414221:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(844974);function l(){let e=(0,i.qn)("lastViewedMiniRenux");return!!e&&Date.now()-Number(e)<2592e5}},709655:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Q,getPinResourceOptions:()=>V});var i,l,a=n(667294),r=n(702664),o=n(167912),s=n(616550),d=n(240684),u=n(526915),c=n(378518),p=n(623568),m=n(773285),h=n(886302),_=n(31062),g=n(780280),y=n(989726),v=n(719626),f=n(826067),b=n(280446),x=n(50286),k=n(829407),P=n(19121),S=n(938917),w=n(682273),A=n(446713),T=n(207004),I=n(805426),E=n(911426),C=n(361115),D=n(82058),j=n(59729),F=n(594353),R=n(872482),L=n(651745),z=n(639952),O=n(350118),M=n(698330),N=n(562647),B=n(67347),Z=n(597897),K=n(127525),U=n(785893);let H=(0,d.ZP)({resolved:{},chunkName:()=>"tv-EpisodeCloseupPage",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e(67295),n.e(50076),n.e(10293)]).then(n.bind(n,950201)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return n(t)},resolve:()=>950201}),V=({id:e,isAuthenticated:t,addUserConnectionType:n,shouldLazyLoadPinJoin:i,getPageMetadata:l,addResourceLatency:a})=>t?{id:e,field_set_key:"detailed",fetch_visual_search_objects:!0,is_mobile_fork:!0,add_connection_type:n,add_resource_latency:a}:{id:e,field_set_key:"unauth_react_main_pin",get_page_metadata:l?"seo":void 0,add_connection_type:n,fetch_pin_join_by_default:!i},G=void 0!==i?i:i=n(481926),$=void 0!==l?l:l=n(3127);function W({description:e,dominantColor:t,graphqlRefs:n,imageSignature:i,isGif:l,isLoaded:o,isProductPin:d,isRecipePin:p,isStoryPin:m,isVideoPin:y,pinId:v,pinImage:b,pinTitle:w,renderAuthMobilePinLandingToast:T,uanuthDesktopSocialLandingPopover:I}){let E=(0,Z.U)(),C=(0,r.useDispatch)(),F=(0,s.useLocation)(),O=(0,x.ZP)(),H=(0,c._)({id:1000112}),{id:V}=(0,P.Z)(),{isAuthenticated:G,isBot:$}=(0,g.B)(),W=(0,M.mN)()(null!=V?V:""),q=(0,K.I)(),Y=(0,r.useSelector)(({experiences:e})=>e),X=l&&"gif"||d&&"productPin"||p&&"recipePin"||m&&"storyPin"||y&&"video"||"image";(0,a.useEffect)(()=>{E&&setTimeout(()=>{var e;null===(e=E.preload)||void 0===e||e.call(E,(0,N.ke)("pin/[id]/repin.js"))},500)},[]),(0,a.useEffect)(()=>{if(q){let e=document.querySelector('div[data-test-id="CloseupMainPin"]');(0,h.w)(t=>{let{entries:i}=t,{element:l}=i[i.length-1];(0,B.nP)("www.closeup.lcpCheck",{sampleRate:1,tags:{isAuthenticated:G,deviceType:O,isGraphQL:!!n,isMainPin:null==e?void 0:e.contains(l),nodeName:l?l.nodeName:"unknown",pinType:X}})})}},[]),(0,u.Z)("closeup");let Q=(0,x.HG)();(0,a.useEffect)(()=>{let n=()=>{C((0,z.Cp)()),window.removeEventListener("scroll",n)};if(Q||$?C(m?(0,z.FK)():(0,z.Cp)()):window.addEventListener("scroll",n),G)i&&C((0,z.xu)(i));else{var l;let n=F.pathname,a=null!=e?e:"";(0,j.Mt)(n,i),(0,j.CC)({path:n,image:b,dominant_color:null!=t?t:null,pin_description:a,pin_id:v});let r=(0,f.mB)(F.search).invite_code;(0,j.dp)(n,i,v,b,null!=a?a:"",r),null!==(l=F.state)&&void 0!==l&&l.isFromNavFooterPage||(0,j.p9)(n,i,v,b,"pin")}},[F]);let J=(0,R.a)(),ee=null==J?void 0:J.onPinTypeLoad,et=!!o;(0,a.useEffect)(()=>{et&&ee&&ee(m)},[et,m,ee]);let en="pin_closeup_lcp",ei=(0,_.PY)(en);(0,a.useEffect)(()=>{ei&&(0,_.ku)({stopwatchName:en,binaryAnnotationName:"pinType",value:X,annotationType:"STRING"})},[ei,X]);let el=(0,S.Z)(),ea=G?(0,L.o)({canUpsellNativeApp:el}):"unauthPostDownloadUpsell",er=(0,D.w2)();return(0,k.Z)(()=>{if(!T||!er||er.hasSeenAuthMobileLandingToast)return()=>{};let{setHasSeenAuthMobileLandingToast:n}=er,i=setTimeout(()=>{T({type:"pin",id:v,data:{title:w||e||"",imgUrl:(null==b?void 0:b.url)||"",dominantColor:t||""}})},3e3);return()=>{n(!0),clearTimeout(i)}}),(0,U.jsx)(A.Z,{clickthroughInterstitialExperience:Y[1000162],experience:H,isProductPin:d,isStoryPin:m,graphqlRefs:n,pinId:v,postDownloadModalEligibilityType:ea,uanuthDesktopSocialLandingPopover:I,viewerId:null!=V?V:"",viewingUser:W})}function q({pinId:e,queryRefs:t,...n}){var i,l,a,r,d,u,c,m,h,_,y,f,b;let x=(0,o.usePreloadedQuery)($,t.pageRef),k=(0,o.useFragment)(G,null===(i=x.v3GetPinQuery)||void 0===i?void 0:i.data),{isAuthenticated:P,countryFromIp:S,country:w}=(0,g.B)();return k?k.creatorClass&&k.creatorClassInstance?(0,v.pf)(w,S,P)?(0,U.jsx)(s.Redirect,{to:"/tv/error"}):(0,U.jsx)(H,{pinId:e}):(0,U.jsx)(W,{...n,description:k.description,dominantColor:k.dominantColor,graphqlRefs:{...t,pageRef:k},imageSignature:null!==(l=k.imageSignature)&&void 0!==l?l:"",isGif:(0,p.sY)(null===(a=k.embed)||void 0===a?void 0:a.type),isLoaded:!0,isProductPin:!!k.isEligibleForPdp,isRecipePin:(null===(r=k.richSummary)||void 0===r?void 0:r.typeName)==="recipe",isStoryPin:!!k.storyPinDataId,isVideoPin:!!(null!==(d=k.videos)&&void 0!==d&&null!==(u=d.videoUrls)&&void 0!==u&&u.length),pinId:e,pinImage:k.imageSpec_236x?{dominant_color:null!==(c=k.imageSpec_236x.dominantColor)&&void 0!==c?c:"",height:null!==(m=k.imageSpec_236x.height)&&void 0!==m?m:0,type:null!==(h=k.imageSpec_236x.type)&&void 0!==h?h:"",url:null!==(_=k.imageSpec_236x.url)&&void 0!==_?_:"",width:null!==(y=k.imageSpec_236x.width)&&void 0!==y?y:0}:null,pinTitle:null!==(f=null!==(b=k.gridTitle)&&void 0!==b?b:k.gridDescription)&&void 0!==f?f:"",storyPinDataId:k.storyPinDataId}):(0,U.jsx)(s.Redirect,{to:{pathname:P?"/":"/ideas/",state:{showError:!0}}})}function Y({pinId:e,queryRefs:t,...n}){let i=(0,E.Z)(e);return(0,U.jsx)(a.Suspense,{fallback:i.enabled?(0,U.jsx)(I.Z,{data:i.data}):(0,U.jsx)(T.Z,{}),children:"QUERY_MISS"!==t&&(0,U.jsx)(q,{...n,pinId:e,queryRefs:t})})}function X({pinId:e,...t}){var n,i,l,a,r,o,d,u,c;let{country:h,countryFromIp:_,isBot:f,isAuthenticated:b}=(0,g.B)(),k=(0,x.HG)(),P=(0,F.Z)(null!=_?_:"",f,k),S=(0,E.Z)(e),{checkExperiment:w}=(0,m.F)(),A=(0,C.J1)(),T=b&&w(A).group.includes("add_latency"),D=(0,y.Z)({name:"PinResource",options:V({id:e,isAuthenticated:b,addUserConnectionType:P,shouldLazyLoadPinJoin:!k&&!b&&!f,addResourceLatency:T})}),j=(0,O.S6)()(e),R=D.data||j;return null!=R&&null!==(n=R.creator_class)&&void 0!==n&&n.id&&null!==(i=R.creator_class_instance)&&void 0!==i&&i.id?(0,v.pf)(h,_,b)?(0,U.jsx)(s.Redirect,{to:"/tv/error"}):(0,U.jsx)(H,{pinId:e}):!R&&S.enabled?(0,U.jsx)(I.Z,{data:S.data}):(0,U.jsx)(W,{...t,description:null==R?void 0:R.description,dominantColor:null==R?void 0:R.dominant_color,graphqlRefs:null,imageSignature:null==R?void 0:R.image_signature,isGif:(0,p.sY)(null==R?void 0:null===(l=R.embed)||void 0===l?void 0:l.type),isLoaded:!!R,isProductPin:!!(null!=R&&R.is_eligible_for_pdp),isRecipePin:(null==R?void 0:null===(a=R.rich_summary)||void 0===a?void 0:a.type_name)==="recipe",isStoryPin:!!(null!=R&&R.story_pin_data_id),isVideoPin:!!(null!=R&&null!==(r=R.videos)&&void 0!==r&&r.video_list),pinId:e,pinImage:null!==(o=null==R?void 0:null===(d=R.images)||void 0===d?void 0:d["236x"])&&void 0!==o?o:null,pinTitle:null!==(u=null!==(c=null==R?void 0:R.grid_title)&&void 0!==c?c:null==R?void 0:R.grid_description)&&void 0!==u?u:"",storyPinDataId:null==R?void 0:R.story_pin_data_id})}function Q({queryRefs:e,...t}){let n=(0,s.useRouteMatch)(),{pinId:i}=(0,b.Z)(n.params.id||"");return(0,U.jsx)(w.Z,{type:"duplo",children:"GRAPHQL_DISABLED"===e?(0,U.jsx)(X,{...t,pinId:i}):(0,U.jsx)(Y,{...t,pinId:i,queryRefs:e})})}},594353:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(116485);let l=(e,t,n)=>!t&&!n&&i.ZR.has(e)},256588:(e,t,n)=>{"use strict";n.d(t,{C:()=>s,LAW_CONFIGURATION:()=>d,Z:()=>u});var i=n(883119),l=n(357527),a=n(898781),r=n(767546),o=n(785893);let s=["DMCA","Trademark","GDPR"],d={test:{LAW:"test",DECIDER_KEY:"legal_webapp_takedown_form_test",COUNTRY_CODES:["US"],API:"/v3/legal/takedowns/test/",COMPLAINTS_OFFICE:!0,RESTRICT_MULTIPLE_LAWS:!1,ALLOW_ANON_SUBMISSION:!1},netzdg:{LAW:"netzdg",DECIDER_KEY:"legal_webapp_takedown_form_netzdg",COUNTRY_CODES:["DE"],API:"/v3/legal/takedowns/netzdg/",COMPLAINTS_OFFICE:!0,RESTRICT_MULTIPLE_LAWS:!1,ALLOW_ANON_SUBMISSION:!1},turkey:{LAW:"turkey",DECIDER_KEY:"legal_webapp_takedown_form_turkey",COUNTRY_CODES:["TR"],API:"/v3/legal/takedowns/turkey/",COMPLAINTS_OFFICE:!1,RESTRICT_MULTIPLE_LAWS:!0,ALLOW_ANON_SUBMISSION:!1},koplg:{LAW:"koplg",DECIDER_KEY:"legal_webapp_takedown_form_koplg",COUNTRY_CODES:["AT"],API:"/v3/legal/takedowns/koplg/",COMPLAINTS_OFFICE:!0,RESTRICT_MULTIPLE_LAWS:!1,ALLOW_ANON_SUBMISSION:!1},loi_fr:{LAW:"loi_fr",DECIDER_KEY:"legal_webapp_takedown_form_fr",COUNTRY_CODES:["FR"],API:"/v3/legal/takedowns/fr_dsa/",COMPLAINTS_OFFICE:!1,RESTRICT_MULTIPLE_LAWS:!0,ALLOW_ANON_SUBMISSION:!1},dsa:{LAW:"dsa",DECIDER_KEY:"legal_webapp_takedown_form_dsa",EXPERIMENT_KEY:"legal_web_dsa_form",COUNTRY_CODES:l.Z.filter(e=>"GB"!==e&&"CH"!==e),API:"/v3/legal/takedowns/dsa/",COMPLAINTS_OFFICE:!1,RESTRICT_MULTIPLE_LAWS:!0,ALLOW_ANON_SUBMISSION:!0}};function u(e,t){let n=(0,a.ZP)(),l={test:{header:"Test Header",subHeader:"Test SubHeader",laws:[{name:"Test Law A",label:"Test Law A"},{name:"Test Law B",label:"Test Law B"}]},netzdg:{header:n._('NetzDG Complaint Form', 'Takedown.NetzDG.FormTitle', 'The title of the form'),subHeader:n._('Use this form to identify content that violates German laws that are subject to the Netzwerkdurchsetzungsgesetz (NetzDG). Please fill out the information below with as much detail as possible to allow us to evaluate your complaint.', 'Takedown.NetzDG.FormDescription', 'Provides a description of what the form is used for'),laws:[{name:"Dissemination of propaganda material of unconstitutional organizations (Section 86 StGB)",label:n._('Dissemination of propaganda material of unconstitutional organizations (Section 86 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Using symbols of unconstitutional organizations (Section 86a StGB)",label:n._('Using symbols of unconstitutional organizations (Section 86a StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Preparation of a serious violent offense endangering the state (Section 89a StGB)",label:n._('Preparation of a serious violent offense endangering the state (Section 89a StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Encouraging the commission of a serious violent offense endangering the state (Section 91 StGB)",label:n._('Encouraging the commission of a serious violent offense endangering the state (Section 91 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Treasonous forgery (Section 100a StGB)",label:n._('Treasonous forgery (Section 100a StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Public incitement to crime (Section 111 StGB)",label:n._('Public incitement to crime (Section 111 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Breach of the public peace by threatening to commit offenses (Section 126 StGB)",label:n._('Breach of the public peace by threatening to commit offenses (Section 126 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Forming criminal organizations (Section 129 StGB)",label:n._('Forming criminal organizations (Section 129 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Forming terrorist organizations (Section 129a StGB)",label:n._('Forming terrorist organizations (Section 129a StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Criminal and terrorist organizations abroad; extended confiscation and deprivation (Section 129b StGB)",label:n._('Criminal and terrorist organizations abroad; extended confiscation and deprivation (Section 129b StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Incitement to hatred (Section 130 StGB)",label:n._('Incitement to hatred (Section 130 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Dissemination of depictions of violence (Section 131 StGB)",label:n._('Dissemination of depictions of violence (Section 131 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Rewarding and approving of criminal offenses (Section 140 StGB)",label:n._('Rewarding and approving of criminal offenses (Section 140 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Insulting denominations, religious communities and ideological associations (Paragraph 166 StGB)",label:n._('Insulting denominations, religious communities and ideological associations (Paragraph 166 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Making available child pornography by broadcasting, media services, or telecommunication services (Section 184b/184d StGB)",label:n._('Making available child pornography by broadcasting, media services, or telecommunication services (Section 184b/184d StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Insult (Section 185 StGB)",label:n._('Insult (Section 185 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Defamation (Section 186 StGB)",label:n._('Defamation (Section 186 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Intentional Defamation (Section 187 StGB)",label:n._('Intentional Defamation (Section 187 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Denigration of the memory of the deceased (Paragraph 189 StGB)",label:n._('Denigration of the memory of the deceased (Paragraph 189 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Violation of intimate privacy by taking photographs (Section 201a StGB)",label:n._('Violation of intimate privacy by taking photographs (Section 201a StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Threatening the commission of a felony (Section 241 StGB)",label:n._('Threatening the commission of a felony (Section 241 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Forgery of data intended to provide proof (Section 269 StGB)",label:n._('Forgery of data intended to provide proof (Section 269 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')}]},turkey:{header:(0,o.jsx)(i.xu,{"data-test-id":"turkish-law-complaint-header",children:n._('Turkish Internet Law Complaint Form', 'Takedown.Turkey.FormSubHeader', 'The title of the form')}),subHeader:n._('Use this form to identify content that violates Turkish laws that are subject to the Turkish Internet Law. Please fill out the information below with as much detail as possible to allow us to evaluate your complaint.', 'Takedown.Turkey.FormSubheader', 'The sub-title of the form'),laws:[{label:n._('Personal rights violation', 'Takedown.Turkey.Law.Personal', 'These are laws which a user can report a pin for takedown'),name:"Personal rights violation"},{label:n._('Privacy rights violation', 'Takedown.Turkey.Law.Privacy', 'These are laws which a user can report a pin for takedown'),name:"Privacy rights violation"}]},koplg:{header:n._('Austria KoPl-G Form', 'AustriaKoPl-G.FormTitle', 'The title of the form'),subHeader:n._('Use this form to identify content that violates Austrian laws that are subject to the Kommunikationsplattformen-Gesetz (KoPl-G). Please fill out the information below with as much detail as possible to allow us to evaluate your complaint.', 'AustriaKoPl-G.FormDescription', 'Provides a description of what the form is used for'),laws:[{label:"N\xf6tigung",name:"N\xf6tigung"},{label:"Gef\xe4hrliche Drohung",name:"Gef\xe4hrliche Drohung"},{label:"Beharrliche Verfolgung",name:"Beharrliche Verfolgung"},{label:"Fortdauernde Bel\xe4stigung im Wege einer Telekommunikation",name:"Fortdauernde Bel\xe4stigung im Wege einer Telekommunikation"},{label:"Vorwurf einer schon abgetanen gerichtlich strafbaren Handlung",name:"Vorwurf einer schon abgetanen gerichtlich strafbaren Handlung"},{label:"Beleidigung",name:"Beleidigung"},{label:"Unbefugte Bildaufnahmen",name:"Unbefugte Bildaufnahmen"},{label:"Erpressung",name:"Erpressung"},{label:"Herabw\xfcrdigung religi\xf6ser Lehren",name:"Herabw\xfcrdigung religi\xf6ser Lehren"},{label:"Pornographische Darstellungen Minderj\xe4hriger",name:"Pornographische Darstellungen Minderj\xe4hriger"},{label:"Anbahnung von Sexualkontakten zu Unm\xfcndigen",name:"Anbahnung von Sexualkontakten zu Unm\xfcndigen"},{label:"Terroristische Vereinigung",name:"Terroristische Vereinigung"},{label:"Anleitung zur Begehung einer terroristischen Straftat",name:"Anleitung zur Begehung einer terroristischen Straftat"},{label:"Anleitung zu terroristischen Straftaten und Guthei\xdfung terroristischer Straftaten",name:"Anleitung zu terroristischen Straftaten und Guthei\xdfung terroristischer Straftaten"},{label:"Verhetzung",name:"Verhetzung"},{label:"Nazionalsozialistische Propaganga",name:"Nazionalsozialistische Propaganga"}]},loi_fr:{header:n._('Bill confirming respect for the principles of the Republic Form', 'French_DSA.FormTitle', 'The title of the form'),subHeader:n._('Use this form to identify content that violates French laws that are subject to the bill confirming respect for the principles of the Republic. Please fill out the information below with as much detail as possible to allow us to evaluate your complaint.', 'French_DSA.FormDescription', 'Provides a description of what the form is used for'),laws:[{name:"Apology of/sympathy to crimes",label:n._('Apology of/sympathy to crimes', 'French_DSA.Law', 'A French law which a user can report content for takedown')},{name:"Provocation to discrimination, hatred or violence on the ground of origin, ethnic group, nation, race or religion, or sex, sexual orientation or gender identity or their disability",label:n._('Provocation to discrimination, hatred or violence on the ground of origin, ethnic group, nation, race or religion, or sex, sexual orientation or gender identity or their disability', 'French_DSA.Law', 'A French law which a user can report content for takedown')},{name:"Challenging the existence of crimes against humanity, denial, minimization or trivialization of crimes of genocide, crimes of enslavement or war crimes",label:n._('Challenging the existence of crimes against humanity, denial, minimization or trivialization of crimes of genocide, crimes of enslavement or war crimes', 'French_DSA.Law', 'A French law which a user can report content for takedown')},{name:"Sexual harassment",label:n._('Sexual harassment', 'French_DSA.Law', 'A French law which a user can report content for takedown')},{name:"Child pornography",label:n._('Child pornography', 'French_DSA.Law', 'A French law which a user can report content for takedown')},{name:"Human trafficking",label:n._('Human trafficking', 'French_DSA.Law', 'A French law which a user can report content for takedown')},{name:"Procuring/pimping",label:n._('Procuring/pimping', 'French_DSA.Law', 'A French law which a user can report content for takedown')},{name:"Direct provocation or public apology for acts of terrorism",label:n._('Direct provocation or public apology for acts of terrorism', 'French_DSA.Law', 'A French law which a user can report content for takedown')},{name:"Insult based on origin, ethnic group, nation, race or religion",label:n._('Insult based on origin, ethnic group, nation, race or religion', 'French_DSA.Law', 'A French law which a user can report content for takedown')},{name:"Insult based on gender, sexual orientation, gender identify or disability",label:n._('Insult based on gender, sexual orientation, gender identify or disability', 'French_DSA.Law', 'A French law which a user can report content for takedown')}]},dsa:{header:n._('European Union Illegal Content Reporting Form', 'DSA.FormTitle', 'The title of the form'),subHeader:n._('Use this form to report content you believe to be illegal in the European Union. Please fill out the form with as much detail as possible to allow us to efficiently evaluate your report.', 'DSA.FormDescription', 'The sub-title of the form'),laws:[{name:"Promoting or condoning terrorist acts",label:n._('Promoting or condoning terrorist acts', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:n._('E.g., Incitement to or apology of terrorist acts', 'DSA.Law', 'Example of this law')},{name:"Threatening commission of or condoning serious criminal offense",label:n._('Threatening commission of or condoning serious criminal offense', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:n._('E.g., Threats to commit serious criminal offense against individuals or their condemnation', 'DSA.Law', 'Example of this law')},{name:"Child sexual abuse material (CSAM)",label:n._('Child sexual abuse material (CSAM)', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:n._('E.g., Dissemination or\xA0 procurement of child pornographic content', 'DSA.Law', 'Example of this law')},{name:"Hate speech, hateful acts and discrimination",label:n._('Hate speech, hateful acts and discrimination', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:n._('E.g., Incitement to hatred, violence or discrimination against protected and vulnerable groups', 'DSA.Law', 'Example of this law')},{name:"Graphic Violence",label:n._('Graphic Violence', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:n._('E.g., Gore/graphic wounds and mutilation, beatings, excessive blood, corpses', 'DSA.Law', 'Example of this law')},{name:"Denying or condoning crimes against humanity",label:n._('Denying or condoning crimes against humanity', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:n._('E.g., Denial of genocides, war crimes and other crimes against humanity', 'DSA.Law', 'Example of this law')},{name:"Illegal goods and services",label:n._('Illegal goods and services', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:n._('E.g., Illegal sale of drugs, live animals or the illegal offer of services', 'DSA.Law', 'Example of this law')},{name:"Harassment",label:n._('Harassment', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:n._('E.g., Online stalking or sexual harassment', 'DSA.Law', 'Example of this law')},{name:"Harmful to minors",label:n._('Harmful to minors', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:n._('E.g., Incitement of minors to engage in actions which put them in physical danger or to intentionally harm themselves', 'DSA.Law', 'Example of this law')},{name:"Nudity or pornography",label:n._('Nudity or pornography', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:n._('E.g., Dissemination of pornographic content', 'DSA.Law', 'Example of this law')},{name:"Disinformation",label:n._('Disinformation', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:n._('E.g., Deliberate disinformation of individuals or groups of people', 'DSA.Law', 'Example of this law')},{name:"Affront to personal honor",label:n._('Affront to personal honor', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:n._('E.g., Insults or defamation', 'DSA.Law', 'Example of this law')},{name:"Violation of privacy",label:n._('Violation of privacy', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:n._('E.g., Non-consensual sharing of private images', 'DSA.Law', 'Example of this law')},{name:"DMCA",label:n._('Copyright infringement', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:(0,o.jsxs)(i.xv,{size:"100",inline:!0,color:"warning",children:[" ",n._('Fill out the', 'Dsa.Law.DMCA', 'Subtext for filling out the DMCA form'),(0,o.jsxs)(i.rU,{href:"https://www.pinterest.com/about/copyright/dmca-pin/",underline:"always",display:"inline",children:[" ",n._(' Copyright Complaint form here', 'DSA.Law', 'Hyperlink to copyright form')]})]})},{name:"Trademark",label:n._('Trademark infringement', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:(0,o.jsxs)(i.xv,{size:"100",inline:!0,color:"warning",children:[" ",n._('Fill out the ', 'Dsa.Law.Trademark', 'Subtext for filling out the trademark form'),(0,o.jsxs)(i.rU,{href:"https://www.pinterest.com/about/trademark/",underline:"always",display:"inline",children:[" ",n._('Trademark Complaint form here', 'DSA.Law', 'Hyperlink to trademark form')]})]})},{name:"GDPR",label:n._('Contains my personal data', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:(0,o.jsxs)(i.xv,{size:"100",inline:!0,color:"warning",children:[" ",n._('You can delete your data by going to your settings or by contacting ', 'Dsa.Law.GDPR', 'Subtext for removing your personal data'),(0,o.jsxs)(i.rU,{href:"mailto:privacy-support@pinterest.com",underline:"always",display:"inline",children:[" ",n._('privacy-support@pinterest.com', 'DSA.Law', 'Hyperlink to privacy support email')]})]})},{name:"Other illegal behavior",label:n._('Other illegal behavior', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:n._('Report behavior that does not match the above categories here', 'DSA.Law', 'Example of this law')}]}},s={header:n._('Complaint Information', 'AustriaKoPl-G.ComplaintInformation.Header', 'Complaint Information header'),reportedUrl:n._('Identify the URL of the content', 'AustriaKoPl-G.ContentUrlField', 'The url of the content the user wants to report'),dsaReportedUrl:n._('What is the URL of the content you want to report?', 'Dsa.ContentUrlField', 'The url of the content the user wants to report for DSA'),reportedUrlHelperText:n._('Please provide the full URL of the content you are complaining about. 1 URL per form.', 'AustriaKoPl-G.ComplaintInformation.ContentUrl.HelperText', 'Complaint Information url field helper text'),contentPortionHeader:n._('What portion(s) of the content are you reporting?', 'AustriaKoPl-G.ContentReporting.Header', 'Header describing which part of the content the user is reporting'),dsaContentPortionHeader:n._('What portion of the content are you reporting?', 'DSA.ContentReporting.Header', 'Header describing which part of the content the user is reporting for DSA'),lawsViolatedLabel:n._('Which law(s) do you believe the content violates?', 'AustriaKoPl-G.ContentReporting.Header', 'Header describing which part of the content the user is reporting'),dsaLawsViolatedLabel:n._('Why do you think this content is illegal under local law?', 'DSA.ContentReporting.Header', 'Header describing which part of the content the user is reporting for DSA'),dsaLawsViolatedSubtext:n._('Please carefully consider the option you select, so we can address your report as efficiently as possible.', 'DSA.ContentReporting.Subtext', 'Subtext asking to carefully choose the law being violated for DSA'),otherLabel:n._('Enter other portion of content', 'AustriaKoPl-G.ContentPortion.OtherValue', 'Field to describe other portion of the pin they are reporting'),dsaOtherLabel:n._('Please describe what other portion of the content you are reporting', 'DSA.ContentPortion.OtherValue', 'Field to describe other portion of the content they are reporting for DSA'),additionalInformationLabel:n._('Additional information on illegality of content (Optional)', 'AustriaKoPl-G.ContentReporting.Header', 'Header describing which part of the content the user is reporting'),additionalInformationPlaceholder:n._('250 character limit...', 'AustriaKoPl-G.ContentReporting.Header', 'Header describing which part of the content the user is reporting'),dsaAdditionalInformationLabel:n._('Please provide additional information about why you think the content is illegal. You may cite or link to relevant statutes, if you like. (Optional)', 'DSA.ContentReporting.Header', 'Label for the additional details textbox of the DSA form'),dsaAdditionalInformationPlaceholder:n._('Provide additional details here', 'DSA.ContentReporting.Placeholder', 'Placeholder for the additional details textbox of the DSA form'),countryHeader:n._('Under what country\u2019s laws do you believe this content is illegal?', 'DSA.Country.Header', 'Header describing the country in which the content is illegal'),otherViolationLabel:n._('Report behavior that does not match the above categories here', 'DSA.OtherViolation.Field', 'Field to describe other violation reason of the reported content'),attachmentLabel:n._('If you have additional documents that could help us understand your report (e.g., court order), you can attach it here. Please upload PDFs only, with a maximum file size of 5 MB.', 'DSA.OtherViolation.Field', 'Field for uplodaing attachments'),moduleCollapseLabel:n._('Collapse the module', 'DSA.CollapseModule', 'Text for collapsing items module'),moduleExpandLabel:n._('Expand the module', 'DSA.ExpandModule', 'Text for expanding items module'),noCountryResultText:n._('No countries found', 'DSA.NoCountries', 'Text for country combo box no countries found error'),clearButtonLabel:n._('Clear search field', 'DSA.ClearInput', 'Accessibility text for clearing combobox field'),invalidUrlText:n._('Invalid URL', 'DSA.Invalid Url', 'Accessibility text for invalid pinterest urls'),selectedLawErrorText:n._('Please fill out the appropriate form for this complaint', 'DSA.InvalidLaw', 'Accessibility text for redirecting to the appropriate place for this law'),multiselectPlaceholder:n._('Select an option', 'DSA.Multiselect.Placeholder', 'Header prompting user to select an option')},u={contactHeader:n._('Contact Information', 'TakedownsContactInformation.OwnerInformationHeading', 'Heading with the word Owner Information'),companyCheckbox:n._('Do you represent a complaints office? (Yes)', 'TakedownsContactInformation.ComplaintsOfficeValidation', 'Checkbox to determine if represents a complaints office'),company:n._('Complaints office', 'TakedownsContactInformation.ComplaintsOfficeNameField', 'The name of the organization or office submitting the complaint'),trustedFlaggerCheckbox:n._('Are you a trusted flagger? (Yes)', 'TakedownsContactInformation.TrustedFlagger', 'Checkbox to determine if reporter is a trusted flagger'),trustedFlaggerSubtext:n._('Trusted flaggers are designated parties, usually associated with NGOs, government entities, or private bodies', 'TakedownsContactInformation.TrustedFlaggerSubtext', 'Defines a trusted flagger'),anonSubmissionCheckbox:n._('Do you wish to remain anonymous? (Yes)', 'TakedownsContactInformation.AnonSubmission', 'Checkbox to determine if reporter wishes to remain anonymous'),anonSubmissionSubtext:n._('If you select this box, you will not receive any additional communications about your report, including the final outcome of your report.', 'TakedownsContactInformation.AnonSubmissionSubtext', 'Anon submission disclaimer'),organization:n._('Organization Name', 'TakedownsContactInformation.OrganizationNameField', 'The name of the organization or office submitting the complaint'),name:n._('Name of Reporter', 'TakedownsContactInformation.NameField', 'User\'s name'),email:n._('Email Address', 'TakedownsContactInformation.EmailField', 'User\'s email address'),phone:n._('Phone Number', 'TakedownsContactInformation.PhoneField', 'Users phone number'),address:n._('Full Address', 'TakedownsContactInformation.AddressField', 'User address')},c={termsHeading:n._('By checking the following boxes, I confirm:', 'TakedownsForm.LabelForCheckboxes', 'Label describing the checkboxes'),isAccurate:n._('The information in this application is accurate.', 'TakedownsContactInformation.isAccurateBoolean', 'Confirmation checkbox that information in form is accurate'),consequences:n._('I understand that if I use this form to submit fraudulent or abusive complaints, I might be subject to claims of liability by Pinterest or other third parties.', 'temp', 'temp'),possibleSuspension:n._('I understand that frequently submitting reports that are fraudulent or abusive may lead Pinterest to suspend the processing of my reports.', 'TakedownsContactInformation.possibleSuspension', 'Confirmation checkbox that fraudulent reports may lead to suspension'),terms:(0,o.jsx)(i.xv,{children:n._('I have a good faith belief that the content violates the law(s) identified.', 'TakedownsContactInformation.termsBoolean', 'Checkbox to confirm they are owner of items they are claiming')}),dsaIsAccurate:n._('I have a good faith belief that the information and allegations contained in this report are accurate and complete.', 'TakedownsContactInformation.DSA.termsBoolean', 'Checkbox to confirm that the information is accurate and complete'),submitText:n._('Submit', 'TakedownsForm.SubmitApplication', 'Submit application form'),cancelText:n._('Cancel', 'TakedownsForm.CancelApplication', 'Cancel application form'),errorCallout:n._('Please fill out all required fields before submitting the application', 'CCP.AppValidationCallout', 'Call out that lets user know there\'s a validation error ')},p={pin_image:n._('Pin Image / Video', 'TakedownsForm.ContentPortion.Image', 'Checkbox content portion for Image'),pin_description:n._('Pin Description', 'TakedownsForm.ContentPortion.Description', 'Checkbox content portion for Description'),pin_notes:n._('Pin Comments / Notes', 'TakedownsForm.ContentPortion.Notes', 'Checkbox content portion for Notes'),profile_image:n._('Profile Image', 'TakedownsForm.ContentPortion.Image', 'Checkbox content portion for Image'),profile_name:n._('Profile Name', 'TakedownsForm.ContentPortion.Name', 'Checkbox content portion for Name'),profile_description:n._('Profile Description', 'TakedownsForm.ContentPortion.Description', 'Checkbox content portion for Description'),board_name:n._('Board Name', 'TakedownsForm.ContentPortion.Name', 'Checkbox content portion for Name'),board_description:n._('Board Description', 'TakedownsForm.ContentPortion.Description', 'Checkbox content portion for Description'),other:n._('Other...', 'TakedownsForm.ContentPortion.Other', 'Checkbox content portion for Other')},m=(0,r.Z)({takedown:l[e],contactInformation:u,complaints:s,terms:c,reportedPortion:p},t);return{configuration:d[e],translations:m}}},878987:(e,t,n)=>{"use strict";n.d(t,{AL:()=>j,CY:()=>s,Ct:()=>b,FW:()=>u,Jd:()=>v,Lc:()=>l,M5:()=>R,MV:()=>x,OL:()=>S,RA:()=>_,RZ:()=>i,S2:()=>a,S7:()=>T,Tx:()=>f,Vr:()=>p,XP:()=>D,Ym:()=>w,Zf:()=>m,aj:()=>r,bQ:()=>g,gn:()=>d,hK:()=>k,jn:()=>I,k6:()=>c,mD:()=>h,oF:()=>P,oZ:()=>A,oc:()=>E,wL:()=>y,wS:()=>o,wW:()=>F,yd:()=>C});let i=1200,l=240,a=426,r=60,o=1100,s=8,d=200,u=8,c=2,p="400",m=71+4*u,h="OVERVIEW",_="VISUALS",g="PRODUCTS",y="ATTENDEES",v="REVIEW",f={UPCOMING:1,PREVIOUS:2,PENDING:3,DRAFT:4,REJECTED:5},b={PRE_LIVE:1,OFFLINE:2,LIVE:3,POST_LIVE:4},x={NORMAL:1,PRODUCT_DROP:2,SHOPPING:3},k={NORMAL:1,PRODUCT_DROP:2,SHOPPING:3},P={PENDING:1,REJECTED:2,APPROVED:3,DRAFT:4,SOFT_REJECTED:5},S={BAD_TITLE:1,BAD_COVER_IMAGE:2,BAD_DATETIME:3,TITLE_NOT_DESCRIPTIVE:4,ALREADY_BOOKED_TIME:5,START_TIME_IN_PAST:6,COVER_IMG_BLURRY:7,COVER_IMG_CONTENT:8,COVER_IMG_FAIL_GUIDELINES:9,VIDEO_CONTENT:10},w={TRENDSETTER:0,IMMERSIVE:1,HOW_TO:2,TRANSFORMATIVE:3,LIVE_EVENT:4},A={PENDING:0,APPROVED:1,HIDDEN:2},T={CREATOR_STUDIO:1,PINTEREST_APP:2,MANAGED:3},I={CLASS_HERO_VIDEO:"1",CLASS_INSTANCE_HERO_VIDEO:"2",CLASS_INSTANCE_REPLAY_VIDEO:"3",APPLICATION_EXAMPLE_VIDEO:"4"},E={NO_LIVE_CREATOR:1,MANAGED_CREATOR:2,COMMUNITY_CREATOR:3,ORGANIC_CREATOR:4},C=new Intl.DateTimeFormat().resolvedOptions().timeZone||"America/Los Angeles",D={PIN_ID:"424605071130991177",PIN_URL:"https://www.pinterest.com/pin/424605071130991177/",PIN_URL_SHORTENED:"https://pin.it/2T2eRb6"},j={IS_SPONSORED:!0,IS_NOT_SPONSORED:!1},F={IS_SPONSORED:"I am receiving something of value for including links or promoting a brand/product in my episode.",IS_NOT_SPONSORED:"I am not receiving anything of value from a brand/product for including links or a brand/product in my episode OR I am not including any brand/product in my episode."},R="Anytime you receive something of value to promote a brand or its product(s), you have an obligation to disclose that. Something of value can be money, like affiliate earnings or direct payments from the brand. It can also be free products or even discounts on products. If your episode includes multiple products and you were only compensated for some of those products, you must still disclose that."},239682:(e,t,n)=>{"use strict";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})},59644:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=(e,t)=>`${e}:${t||""}`},240265:(e,t,n)=>{"use strict";n.d(t,{O:()=>o,Q:()=>s});var i=n(414327),l=n(59644),a=n(956800);let r=["alphabetical","last_pinned_to","oldest","newest","group_boards_at_top","custom"],o={name:"BoardsResource",key:"boardsResource",options:({boardOrder:e,filterStories:t,mixPublicSecret:n,username:i},l)=>({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,...l?{orbac_subject_id:l}:Object.freeze({})})},s=e=>r.reduce((t,n)=>{let r=[(0,a.N8)("profileBoards",(0,l.Z)(e,n))];return[!0,!1].forEach(t=>{[!0,!1].forEach(l=>{r.push((0,i.jB)(o.name,o.options({username:e,boardOrder:n,mixPublicSecret:t,filterStories:l})))})}),t.concat(r)},[])},96023:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(667294);function l(e,t){let n=null,l=null,a=null,r=()=>{if(n){let t=n.clientHeight,i=n.clientWidth;(l!==t||a!==i)&&(l=t,a=i,e(n)),window.requestAnimationFrame(r)}},o=t=>{n&&n===t||(n=t,l=t.clientHeight,a=t.clientWidth,e(n),r())},s=()=>{n=null};(0,i.useEffect)(()=>(t.current&&o(t.current),()=>{s()}),[t])}},737849:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(883119),l=n(121151),a=n(898781),r=n(349700),o=n(966113),s=n(50286),d=n(785893);let u=o.K_Y+"?source=block_dialogue";function c({firstName:e,onBlockUser:t,onClearModal:n}){let o=(0,a.ZP)(),c=(0,s.HG)(),p=(0,r.nk)(o._('Block {{ firstName }}?', 'blockUser.modal.header', 'header text asking if we should block the user'),{firstName:e}).join(""),m=(0,r.nk)(o._('Blocking {{ firstName }}, stops messages, follows, and comments. You can still view each other\u2019s profiles.', 'blockUser.modal.description', 'explanation of what blocking another user means'),{firstName:e});return c?(0,d.jsxs)(l.ZP,{accessibilityModalLabel:p,onDismiss:n,heading:p,footer:(0,d.jsxs)(i.xu,{marginStart:-1,marginEnd:-1,display:"flex",alignItems:"center",justifyContent:"end",children:[(0,d.jsx)(i.xu,{padding:1,children:(0,d.jsx)(i.zx,{fullWidth:!0,size:"md",text:o._('Cancel', 'blockUser.modal.cancel', 'Cancel blocking a user'),onClick:n})}),(0,d.jsx)(i.xu,{padding:1,children:(0,d.jsx)(i.zx,{fullWidth:!0,size:"md",color:"red",text:o._('Block', 'Button to confirm blocking a user', 'Button to confirm blocking a user'),onClick:t})})]}),role:"alertdialog",size:"md",children:[(0,d.jsx)(i.xu,{padding:4,"data-test-id":"block-text",children:(0,d.jsx)(i.xv,{children:m})}),(0,d.jsx)(i.xu,{padding:4,children:(0,d.jsx)(i.xv,{color:"default",weight:"bold",children:(0,d.jsx)(i.rU,{target:"blank",href:u,children:o._('Learn more', 'link to help center to learn more about blocking', 'link to help center to learn more about blocking')})})})]}):(0,d.jsxs)(l.ZP,{accessibilityModalLabel:p,onDismiss:n,mobileHideCloseIcon:!0,type:"block_button",children:[(0,d.jsx)(i.xu,{paddingX:3,paddingY:5,alignItems:"center",display:"flex",children:(0,d.jsx)(i.X6,{accessibilityLevel:1,size:"500",children:p})}),(0,d.jsx)(i.xu,{marginBottom:3,marginStart:2,marginEnd:2,children:(0,d.jsx)(i.xv,{align:"center",children:m})}),(0,d.jsxs)(i.xu,{marginStart:-1,marginEnd:-1,display:"flex",alignItems:"center",justifyContent:"center",children:[(0,d.jsx)(i.xu,{padding:1,children:(0,d.jsx)(i.zx,{fullWidth:!0,size:"md",text:o._('Cancel', 'blockUser.modal.cancel', 'Cancel blocking a user'),onClick:n})}),(0,d.jsx)(i.xu,{padding:1,children:(0,d.jsx)(i.zx,{fullWidth:!0,size:"md",color:"red",text:o._('Block', 'Button to confirm blocking a user', 'Button to confirm blocking a user'),onClick:t})})]})]})}},678638:(e,t,n)=>{"use strict";n.d(t,{$n:()=>f,A4:()=>P,CE:()=>h,ET:()=>E,F$:()=>v,Kw:()=>T,Nv:()=>A,PA:()=>k,X_:()=>I,d9:()=>b,e1:()=>m,o4:()=>w,vB:()=>g});var i=n(782677),l=n(214494),a=n(186656),r=n(248327),o=n(414327),s=n(254176),d=n(956800),u=n(563339),c=n(483025),p=n(492583);function m(e){return t=>{let{boardId:n,sectionIdBefore:i,sectionIdAfter:l,sourceSectionId:r,targetSectionId:o}=e;t((0,d._f)({feedType:p.Z.BOARD_SECTIONS,feedId:n,itemType:"boardsection",sourceItemId:r,targetItemId:o}));let s=Object.freeze({});return i&&(s={...s,section_before:i}),l&&(s={...s,section_after:l}),(0,a.Z)({url:`/v3/board/sections/${r}/reorder/`,method:"POST",data:s})}}function h(e,t){return n=>n((0,r.U)("BoardSectionResource",{options:{field_set_key:t||"board_page",section_id:e}}))}function _(e,t){return{type:"SECTION_ADDED",payload:{boardId:e,section:t}}}function g({boardId:e,sourceBoardId:t="",sourceSectionId:n="",name:i,nameSource:a,pinImport:r,initialPinIds:c=[]},m,h,g){let y=0;"RECOMMENDATION"===a?y=1:"EDITED_RECOMMENDATION"===a&&(y=2);let v={board_id:e,initial_pins:r&&!r.all?r.pinIds:c,name:i,name_source:y,...h?{orbac_subject_id:h}:Object.freeze({})};return i=>l.Z.create("BoardSectionResource",v).callCreate({showError:!1}).then(({resource_response:{data:l}})=>{g({event_type:7100,object_id_str:l.id}),i(_(e,l)),i((0,d.vX)({feedId:e,feedType:p.Z.BOARD_SECTIONS,itemIds:[l.id],itemType:"boardsection"})),i((0,s.Tq)(e,"pin_count")),i((0,o.jB)("BoardSectionsRepinResource",{board_id:e,orbac_subject_id:h}));let{all:a,pinIds:c}=r||{all:!1,pinIds:[]};return a?new Promise((a,r)=>i((0,u.Z)({inverseSelection:!0,selectedPinIds:c,source:{boardId:t||e,sectionId:n||null},target:{boardId:e,sectionId:l.id}},m)).then(()=>a(l)).catch(r)):(c.length>0&&i((0,d.N8)(p.Z.BOARDFEED,e)),l)})}function y(e,t){return{type:"SECTION_DELETED",payload:{boardId:e,sectionId:t}}}function v(e,t,n){return i=>l.Z.create("BoardSectionEditResource",{section_id:t,...n?{orbac_subject_id:n}:Object.freeze({})}).callDelete({showError:!1}).then(()=>Promise.all([i(y(e,t)),i((0,d.EX)({feedId:e,feedType:p.Z.BOARD_SECTIONS,itemIds:[t],itemType:"boardsection"})),i((0,s.Tq)(e,"pin_count")),i((0,o.jB)("BoardSectionsRepinResource",{board_id:e,orbac_subject_id:n}))]))}function f(e,t,n,i){return a=>l.Z.create("BoardSectionEditResource",{section_id:t,title:n,...i?{orbac_subject_id:i}:Object.freeze({})}).callCreate({showError:!1}).then(t=>{let n=t.resource_response.data;return a(t=>{let i=n.board;if(i&&i.id!==e){var l,a,r,o,u;t(y(e,null!==(l=n.id)&&void 0!==l?l:"")),t((0,d.EX)({feedId:e,feedType:p.Z.BOARD_SECTIONS,itemIds:[null!==(a=n.id)&&void 0!==a?a:""],itemType:"boardsection"})),t((0,s.Tq)(e,"pin_count")),t(_(null!==(r=i.id)&&void 0!==r?r:"",n)),t((0,d.vX)({feedId:null!==(o=i.id)&&void 0!==o?o:"",feedType:p.Z.BOARD_SECTIONS,itemIds:[null!==(u=n.id)&&void 0!==u?u:""],itemType:"boardsection"})),t((0,s.Tq)(e,"pin_count"))}else t({type:"SECTION_UPDATED",payload:{boardId:e,section:n}})}),a((0,o.jB)("BoardSectionsRepinResource",{board_id:e,orbac_subject_id:i})),n})}function b(e,t,n){return i=>(0,a.Z)({url:`/v3/board/sections/${t}/merge/${n}/`,method:"POST",data:{fields:["boardsection.id","boardsection.board()","board.id","board.blocking_actions"]}}).then(l=>Promise.all([i(y(e,t)),i((0,o.jB)("BoardSectionsRepinResource",{board_id:e})),i(h(n)),i((0,d.N8)(p.Z.BOARD_SECTION_PINS,n))]).then(()=>l))}let x=(e,t)=>({type:"BOARD_SECTION_EDIT",payload:t}),k=(e,t)=>n=>l.Z.create("BoardSectionEditResource",{...t,section_id:e}).callCreate().then(i=>(n(x(e,t)),i.resource_response.data)),P=e=>t=>l.Z.create("BoardSectionResource",{section_id:e}).callGet().then(n=>{let i=n.resource_response.data||{id:"",title:""};return t(x(e,i)),n}),S=(e,t,n,i)=>({type:"BOARD_SECTION_DELETE",payload:{userId:e,boardSectionId:t,boardId:n,pinCount:i}}),w=(e,t,n,i)=>a=>{let r=l.Z.create("BoardSectionEditResource",{section_id:t}).callDelete();return a(S(e,t,n,i)),r},A=(e,t,n,a)=>r=>{let s={board_id:e,initial_pins:t,name:n},u="BoardSectionResource";return l.Z.create(u,s).callCreate().then(n=>{let l=n.resource_response.data,m=(0,i.Fv)(l,c.Z[u]);return a({event_type:7100,object_id_str:l.id}),r((0,o.XM)(u,s,n,m)),r(_(e,l)),r((0,d.vX)({feedId:e,feedType:p.Z.BOARD_SECTIONS,itemIds:[l.id],itemType:"boardsection"})),t.length&&r({type:"PINS_MOVE",payload:{source:{boardId:e},target:{boardId:e,sectionId:l.id},pinIds:t}}),n})},T=e=>t=>{let{source:n,target:a,pinIds:r}=e;if(t({type:"PINS_MOVE",payload:e}),n.boardlessPins||a.boardId!==n.boardId){let e={board_id:a.boardId,pin_ids:r,section_id:a.sectionId};return l.Z.create("BulkEditResource",e).callUpdate()}if(a.sectionId){let e={section_id:a.sectionId,pins:r},n="BoardSectionEditResource";return l.Z.create(n,e).callUpdate().then(l=>{let a=(0,i.Fv)(l.resource_response.data,c.Z[n]);return t((0,o.XM)(n,e,l,a)),l})}let s={section_id:n.sectionId,pins:r};return l.Z.create("BoardSectionPinsResource",s).callDelete()},I=e=>t=>{t({type:"PINS_MOVE_ALL",payload:e});let{source:n,target:i,excludePinIds:a}=e,r={board_id:n.boardId,new_board_id:i.boardId,pin_ids:a,old_section_id:n.sectionId,new_section_id:i.sectionId};return l.Z.create("BulkEditSelectAllResource",r).callUpdate()},E=(e,t,n,i,l)=>a=>a(A(e,[],t,l)).then(t=>{let l=t.resource_response.data.id;return a(I({source:{boardId:e,sectionId:i},target:{boardId:e,sectionId:l},excludePinIds:n}))})},254176:(e,t,n)=>{"use strict";n.d(t,{Br:()=>m,Cr:()=>A,K8:()=>f,L1:()=>L,Tq:()=>y,YQ:()=>R,YV:()=>w,ZP:()=>T,aX:()=>I,eo:()=>_,fJ:()=>O,md:()=>h,oG:()=>g,oL:()=>E,of:()=>b,xH:()=>v,xQ:()=>x,xR:()=>F,xk:()=>P,yT:()=>p,zS:()=>z});var i=n(214494),l=n(27255),a=n(186656),r=n(248327),o=n(414327),s=n(239682),d=n(240265),u=n(956800),c=n(492583);function p(e){return{type:"BOARD_UPDATE_COMPLETE",payload:{board:e}}}function m(e){return{type:"BOARD_PIN_COUNT_CHANGED",payload:e}}function h(e,t){return{type:"BOARD_FOLLOW",payload:{boardId:e,value:t}}}function _({viewingUserId:e,viewingUsername:t,boardId:n,boardPinCount:i}){return{type:"BOARD_DELETE",payload:{viewingUserId:e,viewingUsername:t,boardId:n,boardPinCount:i}}}let g=(e,t)=>n=>n((0,r.U)("BoardResource",{options:{board_id:e,field_set_key:t}}));function y(e,t,n){return(0,r.U)("BoardResource",{options:{board_id:e,field_set_key:t,...n?{orbac_subject_id:n}:{}}})}function v(e,t,n){return i=>(0,a.Z)({url:`/v3/boards/${e}/merge/${t}/`,method:"POST",data:n?{orbac_subject_id:n}:{}}).then(()=>Promise.all([i(_({boardId:e})),i(y(t,"pin_count")),i((0,u.N8)(c.Z.BOARD_SECTIONS,t))]))}function f(e){return t=>{e&&(0,d.Q)(e).forEach(e=>{t(e)})}}let b=e=>({type:"BOARD_DISMISS_SENSITIVITY_SCREEN",payload:{boardId:e}}),x=e=>g(e,"pin_count");function k(e,t){return{type:"BOARD_ARCHIVE",payload:{boardId:e,username:t}}}function P(e,t){return n=>(n(k(e)),i.Z.create("BoardArchiveResource",{boardId:e,orbacSubjectId:t}).callUpdate())}function S(e){return{type:"BOARD_UNARCHIVE",payload:{boardId:e}}}function w(e,t){return n=>(n(S(e)),i.Z.create("BoardArchiveResource",{boardId:e,orbacSubjectId:t}).callDelete())}let A=(e,t)=>({type:"BOARD_COVER_IMAGE_UPDATED",payload:{boardId:e,coverPin:t}}),T=e=>({type:"BOARD_DISABLE_MORE_IDEAS_BADGING",payload:{boardId:e}});function I(e,t,n){let a={name:e,privacy:l.Z.BoardPrivacy.PUBLIC,username:t,...n?{orbac_subject_id:n}:Object.freeze({})};return e=>i.Z.create("BoardResource",a).callCreate().then(n=>{let i=n.resource_response.data;return e(t&&(0,o.jB)("BoardsResource",(0,s.Z)(t,!1))),i})}function E(e={},t,n){return{type:"BOARD_CREATE_COMPLETE",payload:{options:e,board:t},error:n}}let C=(e,t)=>({type:"BOARD_INVITE_DENIED_BY_VIEWER",payload:{boardId:e,userId:t}}),D=(e,t,n)=>({type:"BOARD_COLLABORATOR_DELETE",payload:{boardId:e,userId:t,viewingUser:n}}),j=(e,t,n,i)=>({type:"BOARD_COLLABORATOR_ADD",payload:{boardId:e,viewingUser:t,status:n,collaboratingUsers:i}}),F=(e,t,n)=>async l=>{l(C(e,t));let a=await i.Z.create("BoardInviteResource",{board_id:e,invited_user_id:t}).callDelete();return a.resource_response.error||n({event_type:29,object_id_str:e}),a},R=(e,t,n,l,a,r)=>async o=>{var s,d;let u="accepted"===t?"BoardCollaboratorResource":"BoardInviteResource";o(D(e,null!==(s=null==l?void 0:l.id)&&void 0!==s?s:"",n));try{let n=await i.Z.create(u,{board_id:e,field_set_key:"boardEdit",invited_user_id:null!==(d=null==l?void 0:l.id)&&void 0!==d?d:"",...r?{orbac_subject_id:r}:{}}).callDelete();n.resource_response.error||a({event_type:"accepted"===t?25:29,object_id_str:e})}catch(i){o(j(e,n,t,[l]))}},L=(e,t,n,l)=>a=>{let r=i.Z.create("BoardResource",{board_id:n}).callDelete();return a(_({viewingUserId:e,viewingUsername:t,boardId:n,boardPinCount:l})),r},z=(e,t)=>n=>i.Z.create("BoardArchiveResource",{boardId:e}).callUpdate().then(i=>(n((0,u.Qv)("archived-boards",[{id:e,type:"board"}])),n(k(e,t)),i)),O=(e,t)=>n=>i.Z.create("BoardArchiveResource",{boardId:e}).callDelete().then(i=>(n((0,u.Qv)(`profile-boards:${t}`,[{id:e,type:"board"}])),n(S(e)),i))},576028:(e,t,n)=>{"use strict";n.d(t,{V:()=>r,u:()=>a});var i=n(214494),l=n(254176);let a=e=>t=>i.Z.create("BoardResource",{board_id:e}).callGet().then(e=>{let n=e&&e.resource_response&&e.resource_response.data;return n&&t((0,l.yT)(n)),e});function r(e,t,n){return(a,r)=>{let{boards:o}=r(),s=o[e],d=void 0===t.collaborator_requests_enabled||null===t.collaborator_requests_enabled?Object.freeze({}):{collaborator_requests_enabled:t.collaborator_requests_enabled},u={allow_homefeed_recommendations:t.allow_homefeed_recommendations,category:t.category,collab_board_email:t.collab_board_email,collaborator_invites_enabled:t.collaborator_invites_enabled,collaborator_permissions_setting:t.collaborator_permissions_setting,description:t.description,...t.name&&{name:t.name},privacy:t.privacy,sensitivity:t.sensitivity||null,...n?{orbac_subject_id:n}:Object.freeze({}),...d};return a((0,l.yT)({...u,id:e})),i.Z.create("BoardResource",{...u,board_id:e}).callUpdate().then(e=>{let n=e&&e.resource_response&&e.resource_response.data||t;return null!=t.allow_homefeed_recommendations&&(n.allow_homefeed_recommendations=t.allow_homefeed_recommendations),a((0,l.yT)(n)),e}).catch(e=>{throw s&&a((0,l.yT)(s)),e})}}},600147:(e,t,n)=>{"use strict";n.d(t,{DD:()=>c,lg:()=>p,Th:()=>h,YH:()=>s,wH:()=>o,IU:()=>m,L8:()=>u});var i=n(214494),l=n(186656),a=n(956800),r=n(492583);function o({didItDataId:e,isLikedByMe:t}){return n=>((0,l.Z)({url:`/v3/did_it/${e}/like/`,method:t?"DELETE":"POST"}),n({type:"USER_DID_IT_DATA_LIKE_TOGGLED",payload:{id:e,liked_by_me:!t}}))}function s({didItDataId:e,isMarkedHelpfulByMe:t}){return n=>((0,l.Z)({url:`/v3/helpful/2/${e}/`,method:t?"DELETE":"POST"}),n({type:"USER_DID_IT_DATA_HELPFUL_TOGGLED",payload:{id:e,marked_helpful_by_me:!t}}))}function d(e){return{type:"USER_DID_IT_DATA_DELETE",payload:{id:e}}}function u(e,t){return{type:"USER_DID_IT_DATA_UPDATE_COMMENT_COUNT",payload:{id:e,increment:t}}}function c({aggregatedPinDataId:e,details:t,fromUnifiedComment:n,image_signatures:l,pin_id:o,username:s,updateParentDidItCount:d}){let c={aggregatedPinDataId:e,details:t,image_signatures:l,pin_id:o};return t=>i.Z.create("DidItActivityResource",c).callCreate().then(i=>{let l=i.resource_response.data;t({type:"PIN_DID_IT",payload:{id:o,value:!0}}),t({type:"USER_DID_IT_DATA_CREATE",payload:{user_did_it_data:l}}),t((0,a.vX)({feedId:e,feedType:n?r.Z.UNIFIED_COMMENTS:r.Z.TRIED_IT_FEED,itemIds:[l.id],itemType:l.type})),t((0,a.vX)({feedId:s,feedType:r.Z.TRIED_IT_FEED,itemIds:[l.id],itemType:l.type})),d&&t(u(e,1))},()=>{})}function p({aggregatedPinDataId:e,feedType:t,id:n,isOwnedByMe:l,pinId:o,username:s,updateParentDidItCount:c}){return p=>{i.Z.create("DidItActivityResource",{user_did_it_data_id:n,pinId:o}).callDelete().then(()=>{l&&p({type:"PIN_DID_IT",payload:{id:o,value:!1}}),p(d(n)),p((0,a.EX)({feedId:null!=e?e:"",feedType:t||r.Z.TRIED_IT_FEED,itemIds:[n],itemType:"userdiditdata"})),p((0,a.EX)({feedId:s,feedType:r.Z.TRIED_IT_FEED,itemIds:[n],itemType:"userdiditdata"})),p((0,a.EX)({feedId:s,feedType:r.Z.UNIFIED_COMMENTS,itemIds:e?[e]:[],itemType:"userdiditdata"})),c&&p(u(n,-1))},()=>{})}}function m({id:e,details:t,image_signatures:n,pinId:l}){let a={details:t,image_signatures:n,user_did_it_data_id:e,pin_id:l};return e=>{i.Z.create("DidItActivityResource",a).callUpdate().then(t=>{let n=t.resource_response.data;e({type:"USER_DID_IT_DATA_UPDATE",payload:{user_did_it_data:n}})},()=>{})}}function h(e,t,n,i,o){return s=>{(0,l.Z)({url:`/v3/did_it/${n}/flag/`,method:"PUT",data:{reason:i,detailed_reasons:t,explanation:void 0}}).then(()=>{s(d(n)),e&&s((0,a.EX)({feedId:e,feedType:r.Z.TRIED_IT_FEED,itemIds:[n],itemType:"userdiditdata"})),s((0,a.EX)({feedId:o,feedType:r.Z.TRIED_IT_FEED,itemIds:[n],itemType:"userdiditdata"}))},()=>{})}}},956800:(e,t,n)=>{"use strict";function i(e){return{type:"FEED_ITEM_REORDERED",payload:e}}function l(e,t){return{type:"FEED_INVALIDATE",payload:{feedType:e,feedId:t}}}n.d(t,{EX:()=>r,N8:()=>l,Qv:()=>a,_f:()=>i,vX:()=>o});let a=(e,t,n=Object.freeze({}))=>({type:"APPEND_FEED_ITEMS",payload:{id:e,options:n,items:t}});function r(e){return{type:"FEED_ITEMS_REMOVED",payload:e}}function o(e){return{type:"FEED_ITEMS_ADDED",payload:e}}},563339:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m,S:()=>p});var i=n(214494),l=n(254176),a=n(678638),r=n(956800),o=n(492583),s=n(124237);let d=e=>t=>{s.Z.showError(function(e,t){switch(e.api_error_code){case 2171:case 2172:case 2173:return t._('Please wait until the previous board action finishes.', ' - ', ' -- ');default:return e.message}}(t,e))},u=e=>(0,r.N8)(e.sectionId?o.Z.BOARD_SECTION_PINS:o.Z.BOARDFEED,e.sectionId||e.boardId);function c(e,t){let{source:n,target:i}=e;i.boardId!==n.boardId?(t((0,l.Tq)(n.boardId,"pin_count")),t((0,l.Tq)(i.boardId,"pin_count"))):n.sectionId&&i.sectionId||t((0,l.Tq)(i.boardId,"pin_count")),n.sectionId&&t((0,a.CE)(n.sectionId)),i.sectionId&&t((0,a.CE)(i.sectionId))}function p(e){return t=>{let{selectedPinIds:n,source:i,target:l}=e;t((0,r.EX)({feedId:i.sectionId||i.boardId,feedType:i.sectionId?o.Z.BOARD_SECTION_PINS:o.Z.BOARDFEED,itemIds:n,itemType:"pin"})),t((0,r.vX)({feedId:l.sectionId||l.boardId,feedType:l.sectionId?o.Z.BOARD_SECTION_PINS:o.Z.BOARDFEED,itemIds:n,itemType:"pin"})),c(e,t)}}function m(e,t){return n=>(function(e,t,n){let{inverseSelection:l,selectedPinIds:a,source:s,target:c,orbacSubjectId:p}=e;if(s.boardId===c.boardId&&(s.sectionId||null)===(c.sectionId||null))return Promise.reject();if(l){let e={board_id:s.boardId,new_board_id:c.boardId,old_section_id:s.sectionId||void 0,new_section_id:c.sectionId||void 0,pin_ids:a,orbac_subject_id:p};return i.Z.create("BulkEditSelectAllResource",e).callUpdate({showError:!1}).then(()=>Promise.all([t(u(s)),t(u(c))])).catch(d(n))}{let e=(e,n)=>{t((0,r.EX)({feedId:e.sectionId||e.boardId,feedType:e.sectionId?o.Z.BOARD_SECTION_PINS:o.Z.BOARDFEED,itemIds:a,itemType:"pin"})),t((0,r.vX)({feedId:n.sectionId||n.boardId,feedType:n.sectionId?o.Z.BOARD_SECTION_PINS:o.Z.BOARDFEED,itemIds:a,itemType:"pin"}))};e(s,c);let l=()=>e(c,s);if(c.boardId===s.boardId){if(c.sectionId){let e={section_id:c.sectionId,pins:a,orbac_subject_id:p};return i.Z.create("BoardSectionEditResource",e).callUpdate({showError:!1}).catch(e=>{l(),d(n)(e)})}{let e={section_id:s.sectionId,pins:a,orbac_subject_id:p};return i.Z.create("BoardSectionPinsResource",e).callDelete({showError:!1}).catch(e=>{l(),d(n)(e)})}}{let e={board_id:c.boardId,section_id:c.sectionId||void 0,pin_ids:a,orbac_subject_id:p};return i.Z.create("BulkEditResource",e).callUpdate({showError:!1}).catch(e=>{l(),d(n)(e)})}}})(e,n,t).then(()=>c(e,n))}},108712:(e,t,n)=>{"use strict";function i(e){return{type:"PIN_NAV_CONTEXT_CREATE",payload:e}}function l(){return{type:"PIN_NAV_CONTEXT_DELETE"}}n.d(t,{H:()=>l,k:()=>i})},447948:(e,t,n)=>{"use strict";function i(e,t){return{type:"CHANGE_CAROUSEL_SLOT_INDEX",payload:{id:e,index:t}}}function l(e,t){return{type:"SET_PIN_COMMENTS_DISABLED",payload:{id:e,pinCommentsDisabled:t}}}function a(e,t,n,i,l){return{type:"PIN_SAVE",payload:{id:e,boardId:t,title:n,url:i,localPinId:l}}}function r(e){return{type:"PIN_UNSAVE",payload:{id:e}}}function o(e){return{type:"PIN_SHOW_SUGGESTED_CREATOR_RECS",payload:{id:e,value:!0}}}function s({id:e,text:t,undoAction:n,undoActionOptions:i,undoText:l}){return{type:"PIN_SHOW_UNDO_AND_FEEDBACK",payload:{id:e,value:!0,text:t,undoAction:n,undoActionOptions:i,undoText:l}}}function d(e){return{type:"PIN_SHOW_FEEDBACK",payload:{id:e,value:!1}}}function u(e,t){return{type:"PIN_SHOW_FEEDBACK",payload:{id:e,value:!0,text:t}}}function c(e){return{type:"PIN_SHOW_FEEDBACK_OVERLAY",payload:{id:e,value:!0}}}function p(e){return{type:"PIN_SHOW_FEEDBACK_OVERLAY",payload:{id:e,value:!1}}}function m(e){return{type:"PIN_SHOW_AD_REASONS_MODAL",payload:{id:e,value:!0}}}function h(e){return{payload:{id:e,value:!1},type:"PIN_SHOW_AD_REASONS_MODAL"}}n.d(t,{Gb:()=>r,I1:()=>d,Ib:()=>c,NA:()=>s,Ur:()=>a,Vw:()=>o,b9:()=>m,i0:()=>p,mO:()=>l,q1:()=>u,yR:()=>i,yj:()=>h})},12918:(e,t,n)=>{"use strict";n.d(t,{M:()=>s,i:()=>u});var i=n(782677),l=n(214494),a=n(414327),r=n(90326),o=n(483025);let s=(e,t,n,i)=>({type:"PIN_ADD",payload:{pinId:e,boardId:t,boardSectionId:n,pinnerId:i}}),d=(e,t)=>new Promise(n=>{e?(0,r.eR)(e).then(e=>{n(e)}):n(t)}),u=e=>t=>{let{method:n,guid:r,image_base64:u,image_url:c}=e;return d(u,c).then(d=>{let u={...e,method:"button"!==n||r?n:"button_external",image_url:d,image_base64:void 0},c="PinResource";return l.Z.create(c,u).callCreate().then(e=>{let n=(0,i.Fv)(e.resource_response.data,o.Z[c]);t((0,a.XM)(c,u,e,n));let l=e.resource_response.data,{board:{id:r},pinner:{id:d},section:p}=l,m=p&&p.id;return t(s(l.id,r,m,d)),e})})}},274415:(e,t,n)=>{"use strict";function i(e,t){return{type:"PIN_UPDATE_COMMENT_COUNT",payload:{id:e,increment:t}}}n.d(t,{R:()=>i})},139574:(e,t,n)=>{"use strict";n.d(t,{L:()=>o,q:()=>d});var i=n(214494),l=n(254176),a=n(956800),r=n(492583);function o(e){return t=>{let{inSelectAll:n,selectedPinIds:o,orbacSubjectId:s,source:{boardId:d,sectionId:u}}=e;return t((0,l.xQ)(d)),t((0,a.EX)({feedId:u||d,feedType:u?r.Z.BOARD_SECTION_PINS:r.Z.BOARDFEED,inverseSelection:n,itemIds:o,itemType:"pin"})),i.Z.create(n?"BulkEditSelectAllResource":"BulkEditResource",{board_id:d,section_id:u,pin_ids:o,orbac_subject_id:s}).callDelete()}}let s=(e,t,n,i)=>({type:"PIN_DELETE",payload:{pinId:e,boardId:t,boardSectionId:n,userId:i}}),d=({pinId:e,boardId:t,boardSectionId:n,clientTrackingParams:l})=>(a,r)=>{let o=i.Z.create("PinResource",{id:e,client_tracking_params:l}).callDelete(),{session:{userId:d}}=r();return a(s(e,t,n,d)),o}},550393:(e,t,n)=>{"use strict";n.d(t,{Q:()=>a,a:()=>l});var i=n(186656);function l(e,t){return async n=>{let{resource_response:l}=await (0,i.Z)({url:`/v3/storypins/${e}/mentions/`,method:"DELETE"});return n({type:"DELETE_PIN_MENTION",payload:{pinId:e,userId:t}}),l}}function a(e){return async t=>{let{resource_response:n}=await (0,i.Z)({url:`/v3/aggregated_comments/${e}/mentions/`,method:"DELETE",data:{fields:["aggregatedcomment.id","aggregatedcomment.tagged_users"]}}),{data:l}=n;return t({type:"DELETE_COMMENT_MENTION",payload:{aggregatedCommentId:l.id,tagged_users:l.tagged_users}}),n}}},95359:(e,t,n)=>{"use strict";n.d(t,{G3:()=>c,Gy:()=>u,Ps:()=>s,fA:()=>p,xQ:()=>d});var i=n(782677),l=n(214494),a=n(414327),r=n(483025);function o(e,t,n){return{type:"UPDATE_PIN_REACTION_COUNT",payload:{increment:t,reactionType:n,pinId:e}}}function s(e,t){return o(e,!1,t)}function d(e,t){return o(e,!0,t)}let u=(e,t,n,o,s)=>d=>{let u={pin_id:e,user_id:o,reaction_type:t,reaction_pin_id:n,action_type:"reaction",client_tracking_parameters:s},c="ReactionsResource";return l.Z.create(c,u).callUpdate().then(e=>{let t=(0,i.Fv)(e.resource_response.data,r.Z[c]);d((0,a.XM)(c,u,e,t))})},c=(e,t,n,o)=>s=>{let d={pin_id:e,user_id:n,reaction_pin_id:t,action_type:"unreaction",client_tracking_parameters:o},u="ReactionsResource";return l.Z.create(u,d).callDelete().then(e=>{let t=(0,i.Fv)(e.resource_response.data,r.Z[u]);s((0,a.XM)(u,d,e,t))})};function p(e,t,n){return{type:"PIN_UPDATE_REACTION_COUNT",payload:{id:e,increment:t,reactionType:n}}}},639952:(e,t,n)=>{"use strict";n.d(t,{Cp:()=>s,FK:()=>o,H5:()=>f,MI:()=>h,O0:()=>m,QZ:()=>r,W:()=>y,WF:()=>u,Wz:()=>b,a5:()=>c,dz:()=>g,e0:()=>p,e2:()=>a,iW:()=>v,n1:()=>l,rm:()=>d,xu:()=>_});var i=n(53987);let l=()=>({type:"DISMISS_UNAUTH_SAVE"}),a=()=>({type:"COMPLETE_UNAUTH_SAVE_ACTION"}),r=e=>({type:"SET_UNAUTH_SAVE_PIN_ID",payload:{unauthSavePinId:e}}),o=()=>({type:"HIDE_NAV_FOOTER"}),s=()=>({type:"SHOW_NAV_FOOTER"}),d=e=>({type:"SET_LOGIN_SIGNUP_FROM",payload:{from:e}}),u=()=>({type:"SHOW_REPIN_ANIMATION"}),c=()=>({type:"HIDE_REPIN_ANIMATION"}),p=e=>({type:"SET_NUM_SIGNUP_STEPS",payload:{steps:e}}),m=()=>({type:"SET_OWN_PROFILE_PINS_REFRESH"}),h=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}}),y=()=>({type:"DISMISS_UNAUTH_APP_UPSELL"}),v=e=>e?{type:"LOGGED_OUT_USER_INFO_FOUND",payload:e}:{type:"LOGGED_OUT_USER_INFO_NOT_FOUND"},f=e=>({type:"UPDATE_USER_FIRST_HOME_FEED_REQUEST_AFTER_NUX",payload:e}),b=(e,t)=>({type:"SET_LANDING_PAGE_TYPE",payload: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":"":""})},461773:(e,t,n)=>{"use strict";n.d(t,{KF:()=>u,ZN:()=>o,fv:()=>d,kE:()=>p,yA:()=>s});var i=n(214494),l=n(186656),a=n(90326);function r(e,t,n,l){return i.Z.create("UserFollowResource",{user_id:e,invite_code:l||void 0,aux_data:t?{pin_id:t}:void 0,client_tracking_params:n})}function o(e,t=null,n,i){return l=>{r(e,t,n,i).callCreate().catch(()=>l((0,a.P_)(e,!1))),l((0,a.P_)(e,!0))}}function s(e,t=null,n,i){return async l=>{l((0,a.P_)(e,!0)),await r(e,t,n,i).callCreate().catch(t=>{throw l((0,a.P_)(e,!1)),t})}}function d(e,t=null,n){return i=>{r(e,t,n).callDelete().catch(()=>i((0,a.P_)(e,!0))),i((0,a.P_)(e,!1))}}function u(e,t=null,n){return async i=>{i((0,a.P_)(e,!1)),await r(e,t,n).callDelete().catch(t=>{throw i((0,a.P_)(e,!0)),t})}}let c=(e,t)=>({type:"USER_BULK_FOLLOW",payload:{ids:e,value:t}}),p=e=>t=>{e.length>0&&((0,l.Z)({url:"/v3/users/follow/",method:"PUT",data:{followee_ids:e.join(",")}}).catch(()=>t(c(e,!1))),t(c(e,!0)))}},90326:(e,t,n)=>{"use strict";n.d(t,{Ge:()=>d,JS:()=>r,OF:()=>b,P_:()=>o,Q_:()=>p,b8:()=>m,eR:()=>f,h2:()=>u,h6:()=>c});var i=n(214494),l=n(186656),a=n(735422);function r(e){return{type:"UPDATE_USER_PIN_COUNT",payload:e}}let o=(e,t)=>({type:"USER_FOLLOW",payload:{id:e,value:t}}),s=(e,t)=>({type:"USER_BLOCK",payload:{id:e,value:t}}),d=({id:e,orbacSubjectId:t,blockSource:n,blockContext:l,logContextEvent:a})=>async r=>{r(s(e,!0));let o=await i.Z.create("UserBlockResource",{blocked_user_id:e,orbac_subject_id:t,block_source:n,block_context:l}).callCreate().catch(()=>r(s(e,!1)));return a({event_type:54,object_id_str:e}),o},u=(e,t)=>async n=>{n(s(e,!1));let l=await i.Z.create("UserBlockResource",{blocked_user_id:e}).callDelete().catch(()=>n(s(e,!0)));return t({event_type:55,object_id_str:e}),l};function c(e){return{type:"UPDATE_USER_SCHEDULED_PIN_COUNT",payload:e}}let p=(e,t)=>()=>{let n=i.Z.create("UserStateResource",{state:e,value:t});return n.callCreate()},m=(e,t,n)=>(i,r)=>{(0,l.Z)({url:"/v3/users/me/",method:"POST"}).then(()=>{n({event_type:48,object_id_str:r().session.userId}),e(),(0,a.Dm)()},t)},h=e=>e>=200&&e<400,_=(e,t="150x150")=>e&&`https://i.pinimg.com/${t}/${e.substring(0,2)}/${e.substring(2,4)}/${e.substring(4,6)}/${e}.jpg`||"",g=async(e,t,n)=>{let l=await i.Z.create("VIPResource",{upload_ids:[e]}).callGet();if(l.resource_response.data[e]){let i=l.resource_response.data[e],{status:a,signature:r}=i;if("processing"===a||"registered"===a)setTimeout(async()=>{g(e,t,n)},5e3);else if("succeeded"===a){let e=_(r);t(e)}else n()}else n()},y=(e,t,n,l,a)=>{let r=new FormData;return r.append("img",e),i.Z.create("VIPResource",{type:t}).callCreate().then(t=>{if(t.resource_response.data){let{upload_id:i,upload_url:r,upload_parameters:o}=t.resource_response.data,s=new XMLHttpRequest;s.open("POST",r,!0),s.onload=()=>{h(s.status)?(n(100),g(i,l,a)):a()},s.upload.onprogress=e=>{let t=Math.round(100*e.loaded/e.total);n(t)};let d=new FormData;for(let e in o)d.append(e,o[e]);d.append("file",e),s.send(d)}},()=>{a()})},v=e=>new Promise((t,n)=>{y(e,"pinimage",()=>{},e=>{t(e)},e=>{n(e)})}),f=e=>new Promise((t,n)=>{"string"==typeof e?e.startsWith("data")&&v(function(e,t=512){let n=e.split(";"),i=n[0].split(":")[1],l=n[1].split(",")[1],a=atob(l),r=[];for(let e=0;e<a.length;e+=t){let n=a.slice(e,e+t),i=Array(n.length);for(let e=0;e<n.length;e+=1)i[e]=n.charCodeAt(e);let l=new Uint8Array(i);r.push(l)}let o=new Blob(r,{type:i});return o}(e)).then(e=>t(e)):n("Invalid Image")}),b=e=>()=>(0,l.Z)({url:"/v3/register/exists/",data:{email:e}})},483025:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(819063);let l={AggregatedCommentResource:i.rm,AggregatedCommentFeedResource:i.LR,AggregatedCommentReplyResource:i.rm,AggregatedCommentReplyFeedResource:i.LR,AggregatedActivityFeedResource:i.LR,BestPinsFeedAltResource:i.LR,BoardArchiveResource:i.LR,BoardContentRecommendationResource:i.LR,BoardFeedResource:i.LR,BoardFollowingResource:i.LR,BoardInviteResource:i.sf,BoardInvitesResource:i.Ht,BoardlessPinsResource:i.LR,BoardPickerBoardsResource:{all_boards:i.LR,boards_shortlist:i.LR},BoardSectionEditResource:i._F,BoardSectionsRepinResource:i.LR,BoardSectionsResource:i.LR,BoardsFeedResource:i.LR,BoardResource:i.IY,BoardSectionResource:i._F,BoardSectionPinsResource:i.LR,BoardToolsFeedResource:i.LR,ContactRequestsResource:i.LR,ConversationsResource:i.LR,ConversationMessagesResource:i.dq,DidItCommentsResource:i.LR,DidItLikedByResource:i.Gn,DidItUserFeedResource:i.LR,HolidaySpotlightResource:i.LR,InterestFollowingResource:i.LR,InterestResource:i.cC,MoreIdeasTabsBoardsResource:i.LR,NewsHubResource:i.LR,NewsHubDetailsResource:i.LR,NewsHubSummaryResource:i.t6,NuxInterestsResource:i.LR,NuxTopicToCreatorsResource:i.Gn,PinResource:i.Cj,PinCatalogResource:i.LR,PinsFromBrandResource:i.LR,ReactionsResource:i.fE,RelatedArticlesResource:i.LR,RelatedInterestsResource:i.LR,RelatedModulesResource:i.LR,RelatedPinFeedResource:i.LR,RelatedProductFeedResource:i.LR,RelatedStreamResource:i.LR,RepinResource:i.Cj,BaseSearchResource:{results:i.LR},SearchResource:i.LR,SectionToolsFeedResource:i.LR,ShareSuggestionsTypeaheadResource:{items:i.LR},ShoppingFeedModularizedResource:i.LR,StoryFeedResource:i.LR,StoryPinTaggedProductsResource:i.LR,SuggestedCreatorFollowsResource:i.Gn,TodayArticleFeedResource:i.LR,IdeasHubTodayArticlesResource:i.LR,TodayArticleResource:i.iF,TodayTabInterestFeedResource:i.LR,TodayTabResource:i.LR,TopicFeedResource:i.LR,UnifiedCommentsResource:i.LR,UserActivityPinsResource:i.LR,UserFollowingResource:i.LR,UserRecentActivityResource:i.LR,UserHomefeedResource:i.LR,UserPinsResource:i.LR,UserSettingsResource:i.EA,UserStoryPinsFeedResource:i.LR,UserResource:i.EA,VideosFeedResource:i.LR,VisualLiveSearchResource:{results:i.LR},VisualLiveSearchProductFeedResource:i.LR,VisualSearchFlashlightUnifiedResource:i.LR,SeoTier1CandidateResource:i.LR},a=l},819063:(e,t,n)=>{"use strict";n.d(t,{Cj:()=>d,EA:()=>a,Gn:()=>w,Ht:()=>S,IY:()=>s,LR:()=>T,_F:()=>p,cC:()=>f,dq:()=>h,fE:()=>c,iF:()=>v,rm:()=>r,sN:()=>A,sf:()=>b,t6:()=>P});var i=n(782677);let l=Object.freeze({aggregatedComment:"aggregatedComments",article:"articles",board:"boards",boardsection:"boardsections",contactrequest:"contactrequests",conversation:"conversations",conversationMessage:"conversationMessages",inbox:"inbox",notification:"notifications",pin:"pins",reaction:"reactions",story:"stories",todayArticle:"todayArticles",topic:"topics",triedit:"triedits",user:"users",invite:"collaboratorinvite"}),a=new i.fK.Entity(l.user),r=new i.fK.Entity(l.aggregatedComment,{user:a,tagged_users:[a]}),o=new i.fK.Entity(l.article),s=new i.fK.Entity(l.board),d=new i.fK.Entity(l.pin),u=new i.fK.Entity(l.reaction),c=new i.fK.Array(u),p=new i.fK.Entity(l.boardsection),m=new i.fK.Entity(l.conversationMessage,{sender:a,users:[a],board:s,pin:d,user:a}),h=new i.fK.Array(m),_=new i.fK.Entity(l.contactrequest),g=new i.fK.Entity(l.story),y=new i.fK.Entity(l.triedit),v=new i.fK.Entity(l.todayArticle,{article_creator_user:a,content_pin:d,content_pin_official_user:a,video_pin:d}),f=new i.fK.Entity(l.topic,{},{processStrategy:e=>({...e,slug:e.slug?e.slug:e.url_name?e.url_name.includes(":")?e.url_name.split(":")[1]:e.url_name:""})}),b=new i.fK.Entity(l.invite,{invited_by_user:a,invited_user:a,board:s},{idAttribute:e=>`${e.board.id}:${e.invited_user.id}`}),x=e=>{switch(e.type){case"aggregatedcomment":return"aggregatedComment";case"conversationMessage":return"conversationMessage";case"explorearticle":return"article";case"news":return"notification";case"interest":case"klp_featured_data":return"topic";case"userdiditdata":return"triedit";case"board_section":return"boardsection";case"todayarticle":return"todayArticle";default:return e.type}},k=new i.fK.Union({user:a,board:s,invite:b,pin:d,topic:f,triedit:y},x),P=new i.fK.Entity(l.notification,{content_items:[{content_object:k}],header_icon_objects:[k]}),S=new i.fK.Array(b),w=new i.fK.Array(a),A=new i.fK.Array(s),T=new i.fK.Array({aggregatedComment:r,article:o,board:s,boardsection:p,contactrequest:_,conversationMessage:m,notification:P,pin:d,story:g,todayArticle:v,topic:f,triedit:y,user:a},x,e=>{switch(e.type){case"collaboratorinvite":return e.board.id;case"category":return"key";default:return"id"}});g.define({objects:T})},492583:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i={AGGREGATED_COMMENTS:"aggregatedComments",AGGREGATED_COMMENT_REPLIES:"aggregated-comment-replies",BOARDFEED:"boardfeed",BOARDLESS_PINS:"boardless-pins",BOARD_SECTIONS:"board-sections",BOARD_SECTION_PINS:"board-section-pins",STORY_PINS_FEED:"story-pins-feed",PROFILE_PINS_FEED:"profile-pins-feed",PROFILE_BOARDS:"profileBoards",SEARCH_PINS:"searchPins",STORY_PIN_DATA:"storyPinData",TODAY_ARTICLE_INTEREST_FEED:"todayArticleInterestFeed",TODAY_TAB:"todayTabFeed",UNIFIED_COMMENTS:"unified-comments",TRIED_IT_FEED:"trieditfeed"}},404508:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var i=n(702664),l=n(616550),a=n(883119),r=n(112690),o=n(385740),s=n(898781),d=n(773285),u=n(957161),c=n(867820),p=n(52022),m=n(50286),h=n(709113),_=n(785893);function g({alignIconLeft:e,bgColor:t,color:n,disableRedirect:g=!1,fallbackUrl:y,icon:v="arrow-back",onTouch:f,padding:b,placement:x,shouldUseFallbackUrl:k,size:P="lg",viewParameter:S,viewType:w,fallbackUrlForExp:A}){let T=(0,s.ZP)(),I=(0,m.HG)(),{checkExperiment:E}=(0,d.F)(),C=(0,l.useHistory)(),D=(0,l.useLocation)(),j=(0,i.useSelector)(e=>e.session.isAuthenticated),F=(0,r.Z)(),R=(0,p.Z)(),L=!j&&A&&"/ideas"===y,{viewType:z,viewParameter:O}=(0,o.SU)(),[M,N]=w?[w,S]:[z,O],B=()=>D.search&&D.search.includes("?nativeShouldDismiss=true"),Z=()=>{let e=u.Z.getItem(h.pm);D.key||"/ideas"!==y?(0,c.My)(`pinner_conversion.back_button.${String(null==e?void 0:e[0].pageType)}`):(0,c.My)("pinner_conversion.back_button.no_history"),(0,c.My)(`web_back_button_click.${String(x)}.is_auth_${String(j)}`),R({action:"click",item:"back-button"}),M&&F({view_type:M,view_parameter:N,element:34,event_type:102}),f&&f(),g||((!D.key||D.state&&"redirect"===D.state.referrer||k)&&y?L?I&&E("web_unauth_backbutton_navigation").anyEnabled?(C.push(A||y),(0,c.My)("web.unauth.back_button.l1interest")):!I&&E("mweb_unauth_backbutton_navigation").anyEnabled?(C.push(A||y),(0,c.My)("mweb.unauth.back_button.l1interest")):C.push(y):C.push(y):D.pathname.includes("/password/reset/")&&B()?C.push("/login/?dismissWebview=true"):C.goBack())};return(0,_.jsx)(a.xu,{"data-test-id":"back-button",children:e?(0,_.jsx)(a.xu,{display:"flex",width:48,height:48,alignItems:"center",marginStart:"cancel"===v?-1:-2,children:(0,_.jsx)(a.hU,{accessibilityLabel:T._('Back', 'navigation button', 'navigation button'),bgColor:t,iconColor:!n&&(!t||["white","lightGray","transparent"].includes(t))?"gray":n,icon:v,onClick:Z,padding:"auto"!==b?b:2,size:P})}):(0,_.jsx)(a.hU,{accessibilityLabel:T._('Back', 'navigation button', 'navigation button'),bgColor:t,iconColor:!n&&(!t||["white","lightGray","transparent"].includes(t))?"gray":n,icon:v,onClick:Z,padding:"auto"!==b?b:2,size:P})})}},675752:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let i=({hasRichMetadata:e,hasRichMetadataProducts:t,hasRichMetadataArticle:n,hasRichMetadataRecipe:i})=>e?t?144:n?141:i?145:139:140},977734:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(214494),l=n(361115),a=n(723852),r=n(675752);function o({checkExperiment:e,history:t,i18n:n,logContextEvent:o,onSuccess:s,onUndo:d,originalPinId:u,pinId:c,trackingParams:p,disableRepinAnimation:m,showNewUserSavetoProfileAnimation:h,showRepinConfirmation:_,historyPush:g,savePinId:y}){return(v,f)=>{let{pins:b,session:x}=f(),{userId:k}=x,P=b[c],S=n._('Quick Saves', 'quickSave.boardName', 'Name of the auto-created board in quicksave experience.');return i.Z.create("BoardResource",{name:S,layout:"quick_saves",protected:!1,return_existing:!0,user_id:k}).callCreate().then(i=>{var f,b,k,S;let w=i.resource_response.data;(0,l.ib)({checkExperiment:e,isAuthMweb:x.isAuthenticated&&(x.isMobile||x.isTablet)});let A=new a.Z({boardId:w.id,dispatch:v,isQuickSave:!0,history:t,i18n:n,onSuccess:s,onUndo:d,originalPinId:u,pinId:c,section:void 0,showNewUserSavetoProfileAnimation:h,showRepinToasts:e=>_?_(e,m):void 0,trackingParams:p,userId:x.userId,historyPush:g,savePinId:y,pinData:{trackingParams:P?P.tracking_params:void 0,viewParameter:P?(0,r.A)({hasRichMetadata:!!P.rich_metadata,hasRichMetadataProducts:!!(null!==(f=P.rich_metadata)&&void 0!==f&&f.products),hasRichMetadataArticle:!!(null!==(b=P.rich_metadata)&&void 0!==b&&b.article),hasRichMetadataRecipe:!!(null!==(k=P.rich_metadata)&&void 0!==k&&k.recipe)}):void 0,pinnedToBoardId:P?null===(S=P.pinned_to_board)||void 0===S?void 0:S.id:void 0}});return A.processRepin(o)})}}},166753:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(499128),l=n(576028),a=n(678638),r=n(139574),o=n(785893);let s=({boardId:e,boardSectionId:t,clientTrackingParams:n,dispatch:s,i18n:d,newPinId:u,onError:c,onSuccess:p,originalPinId:m,shouldRefresh:h=!1,showToast:_,sourcePinId:g,undoSavedPin:y})=>s((0,r.q)({pinId:u,boardId:e,boardSectionId:t,clientTrackingParams:n})).then(()=>{m&&y(m),y(g),h&&(t&&s((0,a.A4)(t)),e&&s((0,l.u)(e))),_(({hideToast:e})=>(0,o.jsx)(i.ZP,{text:d._('Pin removed!', 'Utils.Unsave.Success', 'User removed their pin'),onHide:e})),p&&p()}).catch(()=>{_(({hideToast:e})=>(0,o.jsx)(i.ZP,{type:"error",text:d._('Sorry! There was an error removing your Pin.', 'Utils.Unsave.Error', 'Error when user tried to remove pin'),onHide:e})),null==c||c()})},797087:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var i=n(702664),l=n(616550),a=n(112690),r=n(898781),o=n(432300),s=n(52022),d=n(362240),u=n(62409),c=n(332215),p=n(881802),m=n(927383),h=n(698330);function _({embedSrc:e,embedType:t,hasRichMetadata:n,hasRichMetadataProducts:_,hasRichMetadataArticle:g,hasRichMetadataRecipe:y,imagesUrls:v,isFromUnauthContextMenu:f,isStoryPin:b,pinId:x,attributionLabel:k}){var P;let S=(0,a.Z)(),w=(0,s.Z)(),{isAuthenticated:A,userId:T}=(0,i.useSelector)(({session:e})=>e),I=(0,m.Z)(),E=(0,r.ZP)(),C=(0,h.mN)()(T),D=(0,l.useLocation)();f=null!==(P=f)&&void 0!==P&&P;let j=(0,d.Z)({embedSrc:e,embedType:t,imagesUrls:v,pinId:x,isFromUnauthContextMenu:f,attributionLabel:k});return e=>{(0,d.E)({action:"save_button_click",isAuthenticated:A}),f||S({view_type:3,view_parameter:x?(0,u.CK)({hasRichMetadata:n,hasRichMetadataProducts:_,hasRichMetadataArticle:g,hasRichMetadataRecipe:y}):67,element:48,event_type:102,aux_data:{...A?{login_state:(0,c.xT)(C)?o.Z.LIMITED:o.Z.DEFAULT}:{}}}),b&&S({component:229,element:10943,event_type:102,view_type:3,view_parameter:157}),A||(e.preventDefault(),j&&j.onSave(),w({action:"click",item:"save-button"})),I({fn:()=>{},modalHeader:(0,p.Bx)(E),nextLocation:(0,p.Qj)(D)})(e)}}},458996:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(702664),l=n(362240),a=n(580751);function r({embedSrc:e,embedType:t,imagesUrls:n,pinId:r,pinnerId:o}){var s;let{isAuthenticated:d,userId:u}=(0,i.useSelector)(({session:e})=>e),c=(0,a.M)(),p=(0,l.Z)({embedSrc:e,embedType:t,imagesUrls:n,pinId:r});return!!r&&(d?!!(o===u||null!=c&&c.isSaved(r)):null!==(s=null==p?void 0:p.isSaved)&&void 0!==s&&s)}},995269:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(702664),l=n(616550),a=n(898781),r=n(343341),o=n(362240),s=n(830157),d=n(927383),u=n(166753),c=n(580751);function p({boardId:e,embedSrc:t,embedType:n,imagesUrls:p,pinId:m,pinnerId:h,pinnedToBoardId:_,pinSectionId:g,trackingParams:y,showSingleToast:v,onError:f,shouldRefresh:b=!0}){let x=(0,i.useDispatch)(),k=(0,d.Z)(),P=(0,r.F9)()[v?"showOneToast":"showToast"],S=(0,a.ZP)(),w=(0,o.Z)({embedSrc:t,embedType:n,imagesUrls:p,pinId:m}),A=(0,l.useHistory)(),T=(0,l.useLocation)(),I=(0,c.M)(),{isAuthenticated:E,userId:C}=(0,i.useSelector)(({session:e})=>e),D=(0,s.Z)(T.state?T.state.trackingParams:"",y),j=k({fn:()=>{var t;if(!m||!e||!h){null==f||f();return}let n=h===C,i=!n&&(null==I?void 0:I.getSavedPinId(m))||m,l=n?A.goBack():void 0;(0,u.Z)({boardId:!n&&_?_:e,boardSectionId:null!=g?g:"",clientTrackingParams:D,dispatch:x,i18n:S,newPinId:i,onError:f,onSuccess:l,shouldRefresh:b,showToast:P,sourcePinId:m,undoSavedPin:null!==(t=null==I?void 0:I.unsave)&&void 0!==t?t:()=>void 0})}});return E?j:(null==w?void 0:w.onUnsave)||(()=>void 0)}},580751:(e,t,n)=>{"use strict";n.d(t,{M:()=>o,Q:()=>s});var i=n(667294),l=n(425288),a=n(785893);let{Provider:r,useMaybeHook:o}=(0,l.Z)("RepinContext");function s({children:e}){let[t,n]=(0,i.useState)(Object.freeze({})),l=(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,a.jsx)(r,{value:l,children:e})}},571577:(e,t,n)=>{"use strict";n.d(t,{H:()=>a,I:()=>l});var i=n(425288);let{Provider:l,useHook:a}=(0,i.Z)("ScreenSize")},604356:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(667294),l=n(883119),a=n(319915),r=n(898781),o=n(947599),s=n(785893);let d=(0,i.lazy)(()=>Promise.all([n.e(10966),n.e(49510),n.e(49426),n.e(61116)]).then(n.bind(n,535591)));function u(e){let t=(0,r.ZP)();return(0,s.jsx)(a.Z,{name:"SafeSuspense_SendObjectLoader_SendObjectWrapper",children:(0,s.jsx)(o.Z,{fallback:(0,s.jsx)(l.xu,{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",padding:2,children:(0,s.jsx)(l.$j,{accessibilityLabel:t._('Loading sharing', 'Accessibility label for loading sharing UI', 'Accessibility label for loading sharing UI'),show:!0})}),children:(0,s.jsx)(d,{...e})})})}},678532:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var i,l=n(667294);n(167912);var a=n(883119),r=n(681669),o=n(898781),s=n(349700),d=n(867820),u=n(50286),c=n(540923),p=n(219413),m=n(882801),h=n(785893);let _=void 0!==i?i:i=n(319461),g=({onTap:e,isOpen:t})=>{let n=(0,o.ZP)();return(0,h.jsx)(a.iP,{tapStyle:"compress",onTap:e,children:(0,h.jsxs)(a.xu,{display:"flex",alignItems:"center",justifyContent:"between",paddingY:5,dangerouslySetInlineStyle:{__style:{borderTop:"1px solid #efefef",borderBottom:"1px solid #efefef"}},children:[(0,h.jsx)(a.xv,{weight:"bold",size:"300",children:n._('Product details', 'productDetails.descriptionTap.text', 'text in tap area to open product description dropdown')}),(0,h.jsx)(a.JO,{accessibilityLabel:n._('Arrow forward', 'productDetails.openDropdown', 'accessibility label on button'),color:"default",icon:t?"arrow-down":"arrow-forward"})]})})};function y({onClickTitleOrDomain:e,pinKey:t}){var n;let{data:i,childDataKey__DEPRECATED:y}=(0,r.sr)(_,t,{type:"pin",useLegacyAdapter:e=>e&&{closeupAttribution:e.closeup_attribution&&{domainUrl:e.closeup_attribution.domain_url},closeupUnifiedDescription:e.closeup_unified_description}}),v=(0,o.ZP)(),f=(0,u.ZP)(),b=null==i?void 0:null===(n=i.closeupAttribution)||void 0===n?void 0:n.domainUrl,x=(0,p.Z)(y),k=(0,m.j)({components:x||[],pinDescription:(null==i?void 0:i.closeupUnifiedDescription)&&i.closeupUnifiedDescription.trim()}),[P,S]=(0,l.useState)(!1);return(0,h.jsx)(a.kC,{alignItems:"start",direction:"column",justifyContent:"start",children:k.length>0&&(0,h.jsxs)(a.xu,{marginTop:6,width:"100%",children:[(0,h.jsx)(g,{isOpen:P,onTap:()=>{S(!P),(0,d.My)("unauth.pdp.details.click",{action:P?"close":"open",device:f})}}),(0,h.jsx)(a.xu,{overflow:"scrollY",maxHeight:P?"75vh":"0vh",paddingX:4,children:(0,h.jsxs)(a.xu,{marginBottom:6,marginTop:2,dangerouslySetInlineStyle:{__style:{lineHeight:"1.2"}},children:[(0,h.jsx)(c.Z,{descriptions:k}),b&&(0,h.jsx)(a.xu,{marginTop:6,children:(0,h.jsx)(a.xv,{children:(0,s.nk)(v._('Ships from and sold by {{ userDomain }}', 'productDetails.productDescription.soldBy', 'Domain url of seller'),{userDomain:(0,h.jsx)(a.iP,{onTap:e,tapStyle:"compress",children:(0,h.jsx)(a.xv,{inline:!0,weight:"bold",children:b})},b)})})})]})})]})})}},238253:(e,t,n)=>{"use strict";n.d(t,{Z:()=>j});var i,l,a,r,o,s=n(667294),d=n(167912),u=n(883119),c=n(641950),p=n(453451),m=n(650702),h=n(407043),_=n(898781),g=n(349700),y=n(543972),v=n(992750),f=n(780280),b=n(40995),x=n(745162),k=n(819354),P=n(62409),S=n(350118);n(112690),n(784590),n(561195);var w=n(785893);void 0!==i||(i=n(346154)),n(121151),void 0!==l||(l=n(987557)),void 0!==a||(a=n(762183)),void 0!==r||(r=n(460930));var A=n(219413),T=n(882801);let I=void 0!==o?o:o=n(498006);function E({aggregateRating:e,brandInfo:t,closeupAttributionDomainId:n,isImagePinForUnauthOnTablet:i,isOutOfStock:l,isStale:a,onClickTitleOrDomain:r,graphqlRef:o,inlinePinActionBar:d,pinId:S,pinLink:I,closeupUnifiedDescription:E,offerSummary:C,gridTitle:D,pinTitle:j,richSummaryDisplayName:F,richMetadataTitle:R,setIsActionBarInline:L,shippingInfo:z,storyPinDataId:O,storyPinDataMetadataPinTitle:M,pinJoinVisualAnnotation:N}){let B=(0,_.ZP)(),{isAuthenticated:Z}=(0,f.B)(),{logContextEvent:K}=(0,h.v)(),U=(0,P.AH)(I),H=E&&E.trim(),V=D||j;Z||(V=(0,v.Ly)({pinTitle:j,gridTitle:D,richSummaryDisplayName:F,richMetadataTitle:R,storyPinDataId:O,storyPinDataMetadataPinTitle:M,pinJoinVisualAnnotation:N}));let G=(0,x.Z)({isImagePinForUnauthOnTablet:i}),$=(0,A.Z)(o?{type:"graphqlRef",data:o}:{type:"deprecated",data:S}),W=(0,T.j)({components:$,pinDescription:H}),[q,Y]=(0,s.useState)(!1),X=V&&(0,w.jsx)(u.xu,{marginTop:2,marginBottom:2,children:(0,w.jsx)(b.Z,{onClick:r,hasLink:U,forceSmallerHeading:!i,textAlign:"start",pinId:S,graphqlRef:o,lineClamp:G})}),{rating_count:Q,review_count:J,rating_value:ee}=e||{},et=(0,w.jsx)(m.Z,{bracket:!0,count:Q||J,countType:Number(Q||0)?"rating":"review",countFormat:"number",hideSeparationDot:!0,ratingValue:ee,shippingInfo:z&&{freeShippingPrice:z.free_shipping_price,freeShippingValue:z.free_shipping_value}}),en=(0,w.jsx)(c.Z,{structuredDescription:W,type:"expandable"}),ei=null==t?void 0:t.name,el=null==t?void 0:t.userId,ea=n&&n===el||(null==t?void 0:t.isMerchant),er=!!ei,eo=(0,s.useCallback)(e=>{if(e&&er){let t=ei!==e&&(null===ea||!1===ea);return t?(0,g.nk)(B._('{{ brand }} sold by {{ merchant }}', 'productmetadata.officialuserattribution.text', 'officialuserattribution text. brand:name of the brand. merchant:name of the merchant'),{brand:(0,w.jsx)(u.xv,{inline:!0,weight:"bold",children:ei},"brand-name"),merchant:(0,w.jsx)(u.xv,{inline:!0,weight:"bold",children:e},"merchant-name")}):[(0,w.jsx)(u.xv,{inline:!0,weight:"bold",children:ei},"brand-name")]}return e},[ei,ea,B,er]),es=(0,w.jsx)(k.Z,{getDisplayName:eo,graphqlRef:o,pinId:S,onMouseDown:er?()=>{K({event_type:102,object_id_str:S,view_type:3,view_parameter:144,element:13592,aux_data:{pin_id:S,commerce_data:JSON.stringify({pin_show_pdp:"1"})}})}:void 0}),ed=(0,w.jsx)(p.Z,{productDetails:{maxPrice:null==C?void 0:C.max_price,minPrice:null==C?void 0:C.min_price,price:null==C?void 0:C.price,standardPrice:null==C?void 0:C.standard_price},type:"pdpPlusMobileHeading",colorOverride:"default",isSoldOut:l,isStale:a});return(0,w.jsxs)(u.xu,{children:[(0,w.jsx)(u.kC,{alignItems:"start",direction:"column",justifyContent:"start",children:(0,w.jsx)(y.Z,{options:{threshold:[1]},onVisibilityChange:e=>{if(e&&e.length>0&&L){let{intersectionRatio:t,boundingClientRect:n}=e[0],i=n.y<0;L(1===t||i)}},children:e=>(0,w.jsx)(u.xu,{ref:e,children:(0,w.jsxs)(u.xu,{marginBottom:4,children:[X,ed,(0,w.jsx)(u.xu,{marginBottom:2,children:et}),es]})})})}),d,W.length>0&&(0,w.jsx)(u.xu,{marginTop:6,width:"100%",children:en}),!1]})}function C({pinId:e,graphqlRef:t,...n}){var i,l,a,r,o,s,u,c,p,m,h,_,g,y,v,f,b,x,k,P,S,A,T,C,D,j,F,R,L,z,O;let M;let N=(0,d.useFragment)(I,t),B=(null===(i=N.pinJoin)||void 0===i?void 0:i.visualAnnotation)||[];if(B.length<1)return null;let{richMetadata:Z,richSummary:K}=N;null!=Z&&null!==(l=Z.products)&&void 0!==l&&l[0]&&Z.products[0].name&&Z.products[0].offerSummary&&(M=Z.products[0].offerSummary),!M&&null!=K&&null!==(a=K.products)&&void 0!==a&&a[0]&&K.products[0].name&&K.products[0].offerSummary&&(M=K.products[0].offerSummary);let U={min_price:null===(r=M)||void 0===r?void 0:r.minPrice,max_price:null===(o=M)||void 0===o?void 0:o.maxPrice,price:null===(s=M)||void 0===s?void 0:s.price,standard_price:null===(u=M)||void 0===u?void 0:u.standardPrice},H={rating_value:null!==(c=null==Z?void 0:null===(p=Z.aggregateRating)||void 0===p?void 0:p.ratingValue)&&void 0!==c?c:void 0,review_count:null!==(m=null==Z?void 0:null===(h=Z.aggregateRating)||void 0===h?void 0:h.reviewCount)&&void 0!==m?m:void 0,rating_count:null!==(_=null==Z?void 0:null===(g=Z.aggregateRating)||void 0===g?void 0:g.ratingCount)&&void 0!==_?_:void 0},V={free_shipping_price:null==Z?void 0:null===(y=Z.products)||void 0===y?void 0:null===(v=y[0].shippingInfo)||void 0===v?void 0:v.freeShippingPrice,free_shipping_value:null==Z?void 0:null===(f=Z.products)||void 0===f?void 0:null===(b=f[0].shippingInfo)||void 0===b?void 0:b.freeShippingValue},G=N.isOosProduct||(null===(x=M)||void 0===x?void 0:x.inStock)===!1,$=N.isStaleProduct,W={isMerchant:null==Z?void 0:null===(k=Z.products)||void 0===k?void 0:null===(P=k[0].brand)||void 0===P?void 0:P.isMerchant,name:null==Z?void 0:null===(S=Z.products)||void 0===S?void 0:null===(A=S[0].brand)||void 0===A?void 0:A.name,userId:null==Z?void 0:null===(T=Z.products)||void 0===T?void 0:null===(C=T[0].brand)||void 0===C?void 0:C.userId};return(0,w.jsx)(E,{...n,aggregateRating:H,brandInfo:W,closeupAttributionDomainUrl:null===(D=N.closeupAttribution)||void 0===D?void 0:D.domainUrl,closeupAttributionDomainId:null===(j=N.closeupAttribution)||void 0===j?void 0:j.entityId,graphqlRef:N,isOutOfStock:G,isStale:null!=$&&$,pinId:e,pinLink:N.link,closeupUnifiedDescription:null!==(F=N.closeupUnifiedDescription)&&void 0!==F?F:"",offerSummary:U,gridTitle:N.gridTitle,pinTitle:N.title,richSummaryDisplayName:null!==(R=null==K?void 0:K.displayName)&&void 0!==R?R:"",richMetadataTitle:null!==(L=null==Z?void 0:Z.title)&&void 0!==L?L:"",shippingInfo:V,storyPinDataId:N.storyPinDataId,storyPinDataMetadataPinTitle:null===(z=N.storyPinData)||void 0===z?void 0:null===(O=z.metadata)||void 0===O?void 0:O.pinTitle,pinJoinVisualAnnotation:B})}function D({pinId:e,...t}){var n,i,l,a,r,o,s,d,u,c,p,m,h,_,g,y,v,f,b,x,k,P;let A;let T=(0,S.S6)()(e),I=null==T?void 0:T.rich_metadata,C=null==T?void 0:T.rich_summary;null!=I&&null!==(n=I.products)&&void 0!==n&&n[0]&&I.products[0].name&&I.products[0].offer_summary&&(A=I.products[0].offer_summary),!A&&null!=C&&null!==(i=C.products)&&void 0!==i&&i[0]&&C.products[0].name&&C.products[0].offer_summary&&(A=C.products[0].offer_summary);let D=(null==T?void 0:T.is_oos_product)||(null===(l=A)||void 0===l?void 0:l.in_stock)===!1,j=null==T?void 0:T.is_stale_product,F={isMerchant:null==I?void 0:null===(a=I.products)||void 0===a?void 0:null===(r=a[0].brand)||void 0===r?void 0:r.is_merchant,name:null==I?void 0:null===(o=I.products)||void 0===o?void 0:null===(s=o[0].brand)||void 0===s?void 0:s.name,userId:null==I?void 0:null===(d=I.products)||void 0===d?void 0:null===(u=d[0].brand)||void 0===u?void 0:u.user_id};return(0,w.jsx)(E,{...t,aggregateRating:null==T?void 0:null===(c=T.rich_metadata)||void 0===c?void 0:c.aggregate_rating,brandInfo:F,closeupAttributionDomainUrl:null==T?void 0:null===(p=T.closeup_attribution)||void 0===p?void 0:p.domain_url,closeupAttributionDomainId:null==T?void 0:null===(m=T.closeup_attribution)||void 0===m?void 0:m.id,pinId:e,pinLink:null==T?void 0:T.link,closeupUnifiedDescription:null!==(h=null==T?void 0:T.closeup_unified_description)&&void 0!==h?h:"",gridTitle:null==T?void 0:T.grid_title,isOutOfStock:D,isStale:null!=j&&j,pinTitle:null==T?void 0:T.title,offerSummary:A,richSummaryDisplayName:null!==(_=null==T?void 0:null===(g=T.rich_summary)||void 0===g?void 0:g.display_name)&&void 0!==_?_:"",richMetadataTitle:null!==(y=null==T?void 0:null===(v=T.rich_metadata)||void 0===v?void 0:v.title)&&void 0!==y?y:"",shippingInfo:null==T?void 0:null===(f=T.rich_metadata)||void 0===f?void 0:null===(b=f.products)||void 0===b?void 0:b[0].shipping_info,storyPinDataId:null==T?void 0:T.story_pin_data_id,storyPinDataMetadataPinTitle:null==T?void 0:null===(x=T.story_pin_data)||void 0===x?void 0:null===(k=x.metadata)||void 0===k?void 0:k.pin_title,pinJoinVisualAnnotation:null==T?void 0:null===(P=T.pin_join)||void 0===P?void 0:P.visual_annotation})}function j({graphqlRef:e,...t}){return e?(0,w.jsx)(C,{...t,graphqlRef:e}):(0,w.jsx)(D,{...t})}},63536:(e,t,n)=>{"use strict";n.d(t,{jF:()=>_,ZP:()=>v});var i,l=n(167912),a=n(883119),r=n(350118),o=n(785893);let s=({maxPrice:e,minPrice:t,price:n,standardPrice:i,NoPrice:l,RangedPrice:a,RegularPrice:r,RangedSalePrice:s,SalePrice:d})=>t&&e&&i?(0,o.jsx)(s,{saleMinPrice:t,saleMaxPrice:e,regularPriceRange:i}):t&&e?(0,o.jsx)(a,{maxPrice:e,minPrice:t}):n?i&&n!==i?(0,o.jsx)(d,{regularPrice:i,salePrice:n}):(0,o.jsx)(r,{price:n}):(0,o.jsx)(l,{}),d=()=>null,u=void 0!==i?i:i=n(187561),c=({price:e,align:t,fontSize:n})=>(0,o.jsx)(a.X6,{color:"default",size:n||"400",align:t,children:e}),p=({minPrice:e,maxPrice:t,align:n,fontSize:i})=>(0,o.jsx)(a.X6,{color:"default",size:i||"400",align:n,children:`${e}-${t}`}),m=({salePrice:e,regularPrice:t,align:n,fontSize:i})=>(0,o.jsxs)(a.X6,{size:i||"400",align:n,children:[(0,o.jsx)("span",{style:{color:"#0074e8"},children:e})," ",(0,o.jsx)("span",{style:{textDecoration:"line-through",color:"#767676"},children:`${t}`})]}),h=({saleMinPrice:e,saleMaxPrice:t,regularPriceRange:n,align:i,fontSize:l})=>(0,o.jsxs)(a.X6,{size:l||"400",align:i,children:[(0,o.jsx)("span",{style:{color:"#0074e8"},children:`${e}-${t}`})," ",(0,o.jsx)("span",{style:{textDecoration:"line-through",color:"#767676"},children:`${n}`})]});function _({maxPrice:e,minPrice:t,price:n,standardPrice:i,align:l,NoPrice:a,RangedPrice:r,RangedSalePrice:u,RegularPrice:_,SalePrice:g,fontSize:y}){return a||(a=e=>(0,o.jsx)(d,{...e,align:l,fontSize:y})),r||(r=e=>(0,o.jsx)(p,{...e,align:l,fontSize:y})),u||(u=e=>(0,o.jsx)(h,{...e,align:l,fontSize:y})),_||(_=e=>(0,o.jsx)(c,{...e,align:l,fontSize:y})),g||(g=e=>(0,o.jsx)(m,{...e,align:l,fontSize:y})),(0,o.jsx)(s,{maxPrice:e,minPrice:t,price:n,standardPrice:i,NoPrice:a,RegularPrice:_,RangedPrice:r,RangedSalePrice:u,SalePrice:g})}function g(e){var t,n,i,a,r,s;let d;let c=(0,l.useFragment)(u,e.graphqlRef),p=null==c?void 0:c.richMetadata,m=null==c?void 0:c.richSummary;return null!=p&&null!==(t=p.products)&&void 0!==t&&t[0]&&p.products[0].name&&p.products[0].offerSummary&&(d=p.products[0].offerSummary),!d&&null!=m&&null!==(n=m.products)&&void 0!==n&&n[0]&&m.products[0].name&&m.products[0].offerSummary&&(d=m.products[0].offerSummary),(0,o.jsx)(_,{maxPrice:null===(i=d)||void 0===i?void 0:i.maxPrice,minPrice:null===(a=d)||void 0===a?void 0:a.minPrice,price:null===(r=d)||void 0===r?void 0:r.price,standardPrice:null===(s=d)||void 0===s?void 0:s.standardPrice,NoPrice:e.NoPrice,RegularPrice:e.RegularPrice,RangedPrice:e.RangedPrice,RangedSalePrice:e.RangedSalePrice,SalePrice:e.SalePrice})}function y(e){var t,n,i,l,a,s;let d;let u=(0,r.S6)()(e.pinId||""),c=null==u?void 0:u.rich_metadata,p=null==u?void 0:u.rich_summary;return null!=c&&null!==(t=c.products)&&void 0!==t&&t[0]&&c.products[0].name&&c.products[0].offer_summary&&(d=c.products[0].offer_summary),!d&&null!=p&&null!==(n=p.products)&&void 0!==n&&n[0]&&p.products[0].name&&p.products[0].offer_summary&&(d=p.products[0].offer_summary),(0,o.jsx)(_,{maxPrice:null===(i=d)||void 0===i?void 0:i.max_price,minPrice:null===(l=d)||void 0===l?void 0:l.min_price,price:null===(a=d)||void 0===a?void 0:a.price,standardPrice:null===(s=d)||void 0===s?void 0:s.standard_price,NoPrice:e.NoPrice,RegularPrice:e.RegularPrice,RangedPrice:e.RangedPrice,RangedSalePrice:e.RangedSalePrice,SalePrice:e.SalePrice})}function v(e){return e.graphqlRef?(0,o.jsx)(g,{...e}):(0,o.jsx)(y,{...e})}},487258:(e,t,n)=>{"use strict";n.d(t,{Z:()=>T});var i,l=n(667294);n(167912);var a=n(616550),r=n(883119),o=n(737022),s=n(729884),d=n(409667),u=n(112690),c=n(357998),p=n(444445),m=n(898781),h=n(773285),_=n(780280),g=n(700380),y=n(829407),v=n(628320),f=n(872482),b=n(350118),x=n(867820),k=n(50286),P=n(744856),S=n(785893);function w({alt:e,dominantColor:t,height:n,onLoad:i,src:l,width:o,unauthLazyLoad:s,index:d}){let u=(0,a.useHistory)(),c=(0,a.useRouteMatch)(),{isAuthenticated:p}=(0,_.B)(),m=(0,k.ZP)(),h=()=>{u&&c&&c.params&&c.params.id&&u.push(`/pin/${c.params.id}#${P.v}`,{imageData:{src:l,height:n,width:o}})};return(0,S.jsxs)(r.iP,{tapStyle:"compress",onTap:()=>{p||(0,x.My)("unauth.pdp.carousel.click",{device:m,index:d}),h()},children:[(0,S.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:{background:"rgba(0, 0, 0, 0.03)"}},position:"absolute",width:"100%",height:"100%",zIndex:new r.Ry(1),top:!0}),(0,S.jsx)(r.Ee,{alt:e,color:t,loading:s?"lazy":"auto",naturalHeight:n,naturalWidth:o,onLoad:i,src:l})]})}let A=void 0!==i?i:i=n(413527);function T({pinKey:e,pwtSurfaceContext:t,viewParameter:n,unauthLazyLoad:i}){var x,k;let P;let T=(0,a.useRouteMatch)(),I=(0,m.ZP)(),E=(0,u.Z)(),[C,D]=(0,l.useState)(0),j=(0,b.S6)(),{isAuthenticated:F}=(0,_.B)(),R=(0,l.useRef)(null),L=(0,l.useRef)([]);if("graphqlRef"===e.type)P=e;else{let t=j(e.data);P=null!=t?{type:"deprecated",data:t}:null}let{data:z,childDataKey__DEPRECATED:O}=(0,c.Q)(A,P,{useLegacyAdapter:e=>{var t;return{entityId:null!==(t=e.id)&&void 0!==t?t:"",isHidden:e.is_hidden,isUnsafe:e.is_unsafe}}}),M=(0,l.useCallback)(()=>{t&&t.markConstraintComplete("PinPageMainImageRendered")},[t]),{checkExperiment:N}=(0,h.F)(),B=N("web_higher_res_carousel_image").anyEnabled,Z=I._('Pin image', 'Pin closeup image', 'Pin closeup image'),K=(0,d.Z)({isHiddenPin:null==z?void 0:z.isHidden,isUnsafePin:null==z?void 0:z.isUnsafe}),U=K&&0===C,H=(0,s.Z)(O),V=(null!==(x=null==H?void 0:H.carouselSlots)&&void 0!==x?x:[]).filter(({imageSizeMap:e})=>(0,o.Z)(e,B)),G=V.length,{imageSignature:$}=V[C]||{},W=()=>{if(!R.current)return;let{left:e,width:t}=R.current.getBoundingClientRect(),n=e+t/2;for(let e=0;e<G;e++){var i;let{x:t}=L.current[e].current.getBoundingClientRect(),{x:l=1/0}=(null===(i=L.current[e+1])||void 0===i?void 0:i.current.getBoundingClientRect())||{};if(t<=n&&l>n){D(e);break}}};(0,y.Z)(()=>{L.current=Array(G).fill().map((e,t)=>L.current[t]||(0,l.createRef)());let e=R.current;return e&&e.addEventListener("scroll",W),()=>{null==e||e.removeEventListener("scroll",W)}}),(0,l.useEffect)(()=>{$&&E({event_type:13,view_type:3,view_parameter:144,element:10555,aux_data:{view_object_image_signature:$}})},[E,$]);let q=(0,l.useRef)(null===(k=(0,f.a)())||void 0===k?void 0:k.setHasScrolledPastMainContent);(0,l.useEffect)(()=>{let e=(0,g.Z)(()=>{if(R.current){var t;let n=window.scrollY>R.current.offsetTop+R.current.offsetHeight;null===(t=q.current)||void 0===t||t.call(q,n),n&&window.removeEventListener("scroll",e)}},10);e(),window.addEventListener("scroll",e)},[]);let Y=(0,f.a)(),{hasScrolledPastMainContent:X}=null!=Y?Y:Object.freeze({}),Q="visualSearch";return F||X||(Q="moreLikeThisButton"),(0,S.jsxs)(r.xu,{position:"relative",marginStart:-p.D6,marginEnd:-p.D6,children:[(0,S.jsx)(r.xu,{minHeight:"30vh",maxHeight:"60vh",overflow:"scrollX",display:"flex",ref:R,children:V.map((e,t)=>{var n,l,a,s;let d=0===t,u=t===G-1,c=(0,o.Z)(e.imageSizeMap,B);return(0,S.jsx)(r.xu,{width:"80%",flex:"none",marginEnd:u?0:2,display:"flex",alignItems:"center",position:"relative",dangerouslySetInlineStyle:{__style:{backgroundColor:"#ffffff00"}},ref:L.current[t],children:(0,S.jsx)(w,{alt:Z,src:null!==(l=null==c?void 0:c.url)&&void 0!==l?l:"",height:null!==(a=null==c?void 0:c.height)&&void 0!==a?a:1,width:null!==(s=null==c?void 0:c.width)&&void 0!==s?s:1,dominantColor:"#ffffff00",onLoad:M,unauthLazyLoad:i&&!d,index:t})},`${null!==(n=null==z?void 0:z.entityId)&&void 0!==n?n:""}_${t}`)})}),(0,S.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:{transition:`opacity 500ms, \
303
+ visibility 500ms ease-in-out`,visibility:U?"visible":"hidden"}},opacity:U?1:0,children:(0,S.jsx)(v.Z,{imageSignature:$,pinId:T.params.id||(null==z?void 0:z.entityId)||"",type:Q,viewParameter:n})})]})}},74727:(e,t,n)=>{"use strict";n.d(t,{Z:()=>M});var i=n(667294),l=n(702664),a=n(883119),r=n(112690),o=n(872085),s=n(142236),d=n(777992),u=n(404241),c=n(905260),p=n(712714),m=n(675706),h=n(871714),_=n(942321),g=n(632005),y=n(939120),v=n(499128),f=n(898781),b=n(287072),x=n(467570),k=n(780280),P=n(844974),S=n(867820),w=n(52022),A=n(343341),T=n(50286),I=n(644035),E=n(642832),C=n(86802),D=n(67347),j=n(785893);function F(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let R=()=>n.e(6527).then(n.t.bind(n,842152,23)),L=String(86),z=({text:e})=>(0,j.jsx)(a.xv,{align:"center",size:"100",children:e});class O extends i.PureComponent{constructor(...e){super(...e),F(this,"state",{invitePath:"",inviteCode:null,inviteMessage:"",inviteTitle:"",Clipboard:null,fbLoaded:!1}),F(this,"setClipboard",e=>{let{Clipboard:t,invitePath:n}=this.state;(0,E.sF)(n,t,e,this.showCopyToast)}),F(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,j.jsx)(v.ZP,{text:this.props.i18n._('Copied link to your clipboard to share', 'url link was copied to user clipboard', 'url link was copied to user clipboard'),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"})}),F(this,"getDefaultAppOrder",()=>{let{country:e,isDesktop:t}=this.props;return(0,E.pW)({country:e,isDesktop:t,shouldShowNativeShare:!!navigator.share})}),F(this,"getAppOrder",()=>{let{isDesktop:e,showFixedRows:t}=this.props,n=JSON.parse((0,P.qn)(C.B));return!n||e?this.getDefaultAppOrder():(n=[...n.filter(e=>11!==e&&12!==e)],t?n.unshift(12):n.push(12),navigator.share&&n.push(11),n)}),F(this,"setNewAppOrder",e=>{let{isDesktop:t}=this.props;t||C.F6.has(e)||(0,P.Nh)(C.B,JSON.stringify([e,...this.getAppOrder().filter(t=>t!==e)]))}),F(this,"handleMessagingAppClick",e=>{var t,n,i,l;null===(t=(n=this.props).onShare)||void 0===t||t.call(n),null===(i=(l=this.props).setShareSent)||void 0===i||i.call(l,!0),this.logShareClick(e),this.setFreshInviteCode(e),C.rO.has(e)||(0,P.Nh)(C.Cq,e),this.setNewAppOrder(e)}),F(this,"handleMessengerClick",()=>{this.props.trackInteraction({action:"click",item:"fbmessenger-share-icon"}),this.handleMessagingAppClick(6)}),F(this,"handleTwitterClick",()=>{this.props.trackInteraction({action:"click",item:"twitter-share-icon"}),this.handleMessagingAppClick(9)}),F(this,"handleWhatsappClick",()=>{this.props.trackInteraction({action:"click",item:"whatsapp-share-icon"}),this.handleMessagingAppClick(10)}),F(this,"handleLineClick",()=>{this.handleMessagingAppClick(8)}),F(this,"handleTelegramClick",()=>{this.handleMessagingAppClick(20)}),F(this,"handleViberClick",()=>{this.handleMessagingAppClick(22)}),F(this,"handleEmailClick",()=>{this.handleMessagingAppClick(3),this.props.trackInteraction({action:"click",item:"email-share-button"})}),F(this,"handleFacebookClick",()=>{var e,t,n,i;let{isDesktop:l}=this.props;null===(e=(t=this.props).onShare)||void 0===e||e.call(t),null===(n=(i=this.props).setShareSent)||void 0===n||n.call(i,!0),(0,S.My)(`pcons.${l?"desktop":"mobile"}.facebook-share-icon`),this.props.trackInteraction({action:"click",item:"facebook-share-icon"}),this.logShareClick(5);let{inviteCode:a,invitePath:r,fbLoaded:o}=this.state;(0,E.Rh)(o,r,a||""),this.setFreshInviteCode(5),this.setNewAppOrder(5)}),F(this,"handleSmsClick",()=>{this.handleMessagingAppClick(4)}),F(this,"logShareClick",(e,t=this.state.inviteCode)=>{let{objectId:n,objectType:i,component:l,clientTrackingParams:a,logContextEvent:r,viewType:o,viewParameter:s,socialShareComponent:d}=this.props;(0,E.Iz)({inviteChannel:e,inviteCode:t,objectId:n,objectType:i,component:l,clientTrackingParams:a,logContextEvent:r,view_type:o,view_parameter:s,socialShareComponent:d})}),F(this,"copyButtonRef",null),F(this,"renderAppsInCustomOrder",({Email:e,Facebook:t,FBMessenger:n,Line:l,WhatsApp:a,Twitter:r,Viber:o,Telegram:s,CopyLink:d,Sms:u,ShareVia:c})=>{let p=this.getAppOrder(),m=new Map([[6,n],[10,a],[5,t],[9,r],[3,e],[8,l],[20,s],[22,o],[4,u],[12,d],[11,c]]);return(0,j.jsx)(i.Fragment,{children:p.map(e=>(0,j.jsxs)(i.Fragment,{children:[" ",m.get(e)]},e))})}),F(this,"onHandleRepinSave",({event:e})=>{var t,n;null===(t=(n=this.props).onSave)||void 0===t||t.call(n),this.props.onNavigation({event:e})})}componentDidMount(){this.setFreshInviteCode(12),(0,x.we)(this.props.locale).then(()=>{this.setState({fbLoaded:!0})}),R().then(({default:e})=>{e.isSupported()&&(this.setState({Clipboard:e}),this.setClipboard(this.copyButtonRef))})}componentDidUpdate({objectId:e}){let{objectId:t}=this.props;e!==t&&this.setFreshInviteCode(12)}async setFreshInviteCode(e){let{objectId:t,objectType:n,fetchFreshInviteCode:i}=this.props,{invitePath:l,inviteCode:a,title:r,message:o}=await i(e,t,n),s={};l&&(s.invitePath=l),a&&(s.inviteCode=a),r&&(s.inviteTitle=r),o&&(s.inviteMessage=o),this.setState(s)}render(){let{isDesktop:e,objectType:t,onSave:n,showSaveOption:i,isAppleDevice:l,shouldShowVerticalContacts:r,showFixedRows:v}=this.props,{invitePath:f,inviteMessage:b,inviteTitle:x}=this.state,{emailShareLink:k,messengerShareLink:P,twitterShareLink:S,whatsappShareLink:w,lineShareLink:A,telegramShareLink:T,viberShareLink:I,smsShareLink:C}=(0,E.tA)({invitePath:f,inviteTitle:x,objectType:t,i18n:this.props.i18n,isDesktop:e}),F=({children:t})=>(0,j.jsx)(a.kC,{alignItems:"center",justifyContent:"start",direction:"column",width:e||v?`${L}px`:"100%",children:(0,j.jsx)(a.xu,{marginBottom:v?2:0,children:t})}),R=({children:e})=>(0,j.jsx)(a.xu,{display:"flex",justifyContent:"center",paddingX:3,marginBottom:1,children:e}),O=(0,j.jsxs)(F,{children:[(0,j.jsx)(R,{children:(0,j.jsx)(a.xu,{"data-test-id":"fbmessenger-share-icon",children:(0,j.jsx)(a.Tg,{rounding:"circle",rel:"nofollow",href:P,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleMessengerClick()},children:(0,j.jsx)(p.Z,{size:56})})})}),(0,j.jsx)(z,{text:this.props.i18n._('Messenger', 'shareMenu.icon.label.messenger', 'Facebook Messenger App')})]}),M=(0,j.jsxs)(F,{children:[(0,j.jsx)(R,{children:(0,j.jsx)(a.xu,{"data-test-id":"whatsapp-share-icon",children:(0,j.jsx)(a.Tg,{rounding:"circle",rel:"nofollow",href:w,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleWhatsappClick()},children:(0,j.jsx)(_.Z,{size:56})})})}),(0,j.jsx)(z,{text:this.props.i18n._('WhatsApp', 'shareMenu.icon.label.whatsapp', 'WhatsApp App')})]}),N=(0,j.jsx)(a.xu,{"data-test-id":"facebook-share-icon",display:"flex",flex:"shrink",children:(0,j.jsxs)(F,{children:[(0,j.jsx)(R,{children:(0,j.jsx)(a.rU,{href:"#",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{e.preventDefault(),t(),this.handleFacebookClick()},children:(0,j.jsx)(d.Z,{size:56})})}),(0,j.jsx)(z,{text:this.props.i18n._('Facebook', 'shareMenu.icon.label.facebook', 'Facebook App')})]})}),B=(0,j.jsxs)(F,{children:[(0,j.jsx)(R,{children:(0,j.jsx)(a.xu,{"data-test-id":"twitter-share-icon",children:(0,j.jsx)(a.Tg,{rounding:"circle",rel:"nofollow",href:S,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleTwitterClick()},children:(0,j.jsx)(g.Z,{size:56})})})}),(0,j.jsx)(z,{text:this.props.i18n._('X', 'shareMenu.icon.label.twitter', 'Twitter App')})]}),Z=(0,j.jsxs)(F,{children:[(0,j.jsx)(R,{children:(0,j.jsx)(a.Tg,{rounding:"circle",rel:"nofollow",href:A,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleLineClick()},children:(0,j.jsx)(c.Z,{size:56})})}),(0,j.jsx)(z,{text:this.props.i18n._('Line', 'shareMenu.icon.label.line', 'Line App')})]}),K=(0,j.jsxs)(F,{children:[(0,j.jsx)(R,{children:(0,j.jsx)(a.Tg,{rounding:"circle",rel:"nofollow",href:I,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleViberClick()},children:(0,j.jsx)(h.Z,{size:56})})}),(0,j.jsx)(z,{text:this.props.i18n._('Viber', 'shareMenu.icon.label.viber', 'Viber App')})]}),U=(0,j.jsxs)(F,{children:[(0,j.jsx)(R,{children:(0,j.jsx)(a.Tg,{rounding:"circle",rel:"nofollow",href:T,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleTelegramClick()},children:(0,j.jsx)(m.Z,{size:56})})}),(0,j.jsx)(z,{text:this.props.i18n._('Telegram', 'shareMenu.icon.label.telegram', 'Telegram App')})]}),H=(0,j.jsxs)(F,{children:[(0,j.jsx)(R,{children:(0,j.jsx)(a.xu,{"data-test-id":"email-share-button",children:(0,j.jsx)(a.Tg,{rounding:"circle",rel:"nofollow",target:"blank",href:k,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleEmailClick()},children:(0,j.jsx)(s.Z,{size:56})})})}),(0,j.jsx)(z,{text:this.props.i18n._('Email', 'shareMenu.icon.label.email', 'Email App')})]}),V=(0,j.jsxs)(F,{children:[(0,j.jsx)(R,{children:(0,j.jsx)(a.Tg,{rounding:"circle",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();let l=b.indexOf("https://");navigator.share&&navigator.share({url:f,text:l>0?b.slice(0,l):b,title:x}).then(()=>{this.handleMessagingAppClick(11),(0,D.nP)("allshareoptions_navigator_share.success",{sampleRate:1})}).catch(e=>{(0,D.nP)("allshareoptions_navigator_share.error",{sampleRate:1,tags:{name:e.name,message:e.message}})})},children:(0,j.jsx)(a.xu,{height:56,children:(0,j.jsx)(a.hU,{accessibilityLabel:this.props.i18n._('Native share sheet icon', 'shareMenu.icon.accessibilityLabel.native_share_sheet', 'Accessibility label for native share sheet icon'),bgColor:"lightGray",icon:"share",iconColor:"darkGray",size:"xl"})})})}),(0,j.jsx)(z,{text:this.props.i18n._('Share via', 'shareMenu.icon.label.share_via', 'Share via label')})]}),G=(0,j.jsxs)(F,{children:[(0,j.jsx)(R,{children:(0,j.jsx)(a.Tg,{rounding:"circle",rel:"nofollow",href:C,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleSmsClick()},children:l?(0,j.jsx)(u.Z,{size:56}):(0,j.jsx)(a.xu,{"data-test-id":"message-share-button",children:(0,j.jsx)(o.Z,{size:56})})})}),(0,j.jsx)(z,{text:this.props.i18n._('Message', 'shareMenu.icon.label.message', 'Message App')})]}),$=(0,j.jsxs)(F,{children:[(0,j.jsx)(R,{children:(0,j.jsx)(a.xu,{ref:this.setClipboard,dangerouslySetInlineStyle:{__style:{cursor:e?"pointer":void 0}},"data-test-id":"copy-link-share-icon",height:56,children:(0,j.jsx)(a.hU,{accessibilityLabel:this.props.i18n._('Link icon', 'shareMenu.icon.accessibilityLabel.copy', 'Accessibility label for copy link icon'),bgColor:"lightGray",icon:"link",iconColor:"darkGray",size:"xl"})})}),(0,j.jsx)(z,{text:this.props.i18n._('Copy link', 'shareMenu.icon.label.copy', 'Copy link icon')})]});return(0,j.jsxs)(a.xu,{children:[(0,j.jsx)(a.kC,{alignItems:"stretch",justifyContent:"start",overflow:"hidden",children:(0,j.jsxs)(a.xu,{display:"flex",direction:v?"row":void 0,column:v?3:void 0,justifyContent:"start",height:e&&!v?200:"100%",width:e&&!v?370:"100%",marginBottom:-2,marginTop:r?-2:void 0,paddingX:1,paddingY:2,overflow:e||v?void 0:"scrollX",wrap:v||e,children:[i&&n&&(0,j.jsxs)(F,{children:[(0,j.jsx)(R,{children:(0,j.jsx)(a.iP,{rounding:"circle",onTap:this.onHandleRepinSave,children:y.Z})}),(0,j.jsx)(z,{text:this.props.i18n._('Save', 'shareMenu.icon.label.save', 'Save')})]}),this.renderAppsInCustomOrder({Email:H,Facebook:N,FBMessenger:O,Line:Z,WhatsApp:M,Twitter:B,Viber:K,Telegram:U,CopyLink:$,Sms:G,ShareVia:V})]})}),(0,j.jsx)(a.xu,{height:v?32:16})]})}}function M(e){let t=(0,f.ZP)(),n=(0,T.HG)(),{showToast:i}=(0,A.F9)(),{country:a,locale:o}=(0,k.B)(),s=(0,b.Z)({href:{pathname:`/pin/${e.objectId}/repin`,state:{viewType:e.viewType,viewParameter:e.viewParameter}}}),d=(0,l.useSelector)(({session:e})=>e.userAgentPlatform),u=d===I.RL||d===I.s4,c=(0,r.Z)(),p=(0,w.Z)(),m=(0,E.D3)();return(0,j.jsx)(O,{...e,country:a,i18n:t,isDesktop:n,locale:o,showToast:i,onNavigation:s,logContextEvent:c,isAppleDevice:u,fetchFreshInviteCode:m,trackInteraction:p})}},642832:(e,t,n)=>{"use strict";n.d(t,{D3:()=>_,Iz:()=>g,Rh:()=>c,pW:()=>d,sF:()=>p,tA:()=>u});var i,l=n(167912),a=n(214494),r=n(467570),o=n(867060);let s={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}){let{FBMessenger:i,WhatsApp:l,Facebook:a,Twitter:r,Email:o,Line:d,Telegram:u,Viber:c,Sms:p,CopyLink:m,ShareVia:h}=s;function _(){switch(e){case"US":return t?[l,a,r,o]:[p,i,l,a,r];case"ID":return t?[l,d,o,a]:[l,u,p,d,o,a];case"JP":case"TH":case"TW":return t?[d,r,o,a]:[d,o,p,r,a];case"GR":return t?[l,a,r,o]:[c,i,l,p,a,r];case"IR":case"IQ":return t?[l,a,r,o]:[l,u,p,i,r];case"UA":case"RU":return t?[l,a,r,o]:[l,c,u,a,i,p,r];default:return t?[l,a,r,o]:[l,i,p,a,r]}}let g=t?[m,..._()]:[..._(),m,...n?[h]:[]];return g}function u({invitePath:e,inviteTitle:t,objectType:n,i18n:i,isDesktop:l}){let a=i._('A Pin for you', 'shareMenu.message.title', 'Messaging title when sharing a pin to a friend');8===n&&(a=i._('Check out this article on Pinterest!', 'shareMenu.message.title', 'Messaging title when sharing a today article to a friend'));let o=`mailto:?subject=${encodeURIComponent(a)}&body=${encodeURIComponent(e)}`,s=`fb-messenger://share/?link=${encodeURIComponent(e)}&app_id=${r.GH}`,d=`${t}
304
+ ${e}`,u=l?`https://twitter.com/intent/tweet?via=pinterest&url=${encodeURIComponent(d)}`:`twitter://post?message=${encodeURIComponent(d)}`,c=l?`https://web.whatsapp.com/send?text=${encodeURIComponent(d)}`:`whatsapp://send?text=${encodeURIComponent(d)}`,p=l?`https://social-plugins.line.me/lineit/share?url=${encodeURIComponent(e)}&text=${encodeURIComponent(t)}`:`https://line.me/R/msg/text/?${encodeURIComponent(d)}`,m=`viber://forward?text=${encodeURIComponent(d)}`,h=`tg://msg?text=${encodeURIComponent(d)}`,_=`sms:?&body=${encodeURIComponent(d)}`;return{emailShareLink:o,messengerShareLink:s,twitterShareLink:u,whatsappShareLink:c,lineShareLink:p,telegramShareLink:h,viberShareLink:m,smsShareLink:_}}function c(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 p(e,t,n,i){if(!n||!t)return;let l=new t(n,{container:n.parentElement,text:()=>e});l.on("success",e=>{i&&i(e)}),l.on("error",()=>{throw Error("<ShareMenu /> error: copy command failed")})}let m=void 0!==i?i:i=n(749585),h=()=>{let e=(0,l.useRelayEnvironment)();return async(t,n,i,a)=>{let r={invite_category:t,invite_object:n,invite_channel:i};return await new Promise((t,n)=>(0,l.fetchQuery)(e,m,{inviteType:JSON.stringify(r),objectId:a}).subscribe({next:e=>{var n,i,l,a,r,o,s,d,u,c,p,m;return t({inviteCode:null!==(n=null===(i=e.v3InviteUserExternalQuery)||void 0===i?void 0:null===(l=i.data)||void 0===l?void 0:l.inviteCode)&&void 0!==n?n:"",invitePath:null!==(a=null===(r=e.v3InviteUserExternalQuery)||void 0===r?void 0:null===(o=r.data)||void 0===o?void 0:o.inviteUrl)&&void 0!==a?a:"",title:null!==(s=null===(d=e.v3InviteUserExternalQuery)||void 0===d?void 0:null===(u=d.data)||void 0===u?void 0:u.title)&&void 0!==s?s:"",message:null!==(c=null===(p=e.v3InviteUserExternalQuery)||void 0===p?void 0:null===(m=p.data)||void 0===m?void 0:m.message)&&void 0!==c?c:""})},error:e=>n(e)}))}};function _(){let e=h();return async(t,n,i)=>await e(3,i,t,n)}async function g({inviteChannel:e,inviteCode:t,objectId:n,objectType:i,component:l,clientTrackingParams:r,logContextEvent:s,view_parameter:d,view_type:u,socialShareComponent:c}){let p;s({aux_data:{invite_object:i},object_id_str:n,component:l,clientTrackingParams:r,element:o.cc[e],event_type:102,view_type:u,view_parameter:d}),p=2===i?o.LO:3===i?o.Pu:o.dB,s({event_type:10399,component:14122===l?14312:14123===l?14310:c||l,object_id_str:n,view_type:u,view_parameter:d,aux_data:{invite_object:i},element:p[e]}),a.Z.create("SentExternalInviteCallbackResource",{invite_type:{invite_category:3,invite_object:i,invite_channel:e},invite_code:t,object_id:n,client_tracking_params:r}).callCreate()}},24987:(e,t,n)=>{"use strict";n.d(t,{Z:()=>F});var i=n(667294),l=n(883119),a=n(100183),r=n(112690),o=n(898781),s=n(391254),d=n(780280),u=n(844974),c=n(52022),p=n(50286),m=n(829407),h=n(644035),_=n(95551),g=n(82058),y=n(872085),v=n(777992),f=n(404241),b=n(905260),x=n(712714),k=n(675706),P=n(871714),S=n(942321),w=n(632005),A=n(86802),T=n(785893);let I="#ffffff",E="ANIMATE_SHARE",C=()=>{let e=`${E}_default {
305
+ from: {
306
+ opacity: 1;
307
+ visibility:visible;
308
+ }
309
+ 7% {
310
+ fill: ${I};
311
+ opacity: 0;
312
+ visibility:hidden;
313
+ }
314
+ 89% {
315
+ fill: ${I};
316
+ opacity: 0;
317
+ visibility:hidden;
318
+ }
319
+ 93% {
320
+ opacity: 0.5;
321
+ visibility:visible;
322
+ }
323
+ to {
324
+ fill: #111111;
325
+ opacity: 1;
326
+ visibility:visible;
327
+ }
328
+ }`,t=`${E}_upsellApp {
329
+ from {
330
+ opacity: 0;
331
+ fill: ${I};
332
+ }
333
+ 7% {
334
+ fill: ${I};
335
+ transform: scale(1.25);
336
+ opacity: 1;
337
+ }
338
+ 11% {
339
+ transform: scale(1);
340
+ opacity: 1;
341
+ }
342
+ 89% {
343
+ fill: ${I};
344
+ transform: scale(1);
345
+ opacity: 1;
346
+ }
347
+ 93% {
348
+ transform: scale(1.25);
349
+ opacity: 1;
350
+ }
351
+ to {
352
+ fill: ${I};
353
+ opacity: 0;
354
+ }
355
+ }`;return(0,a.Ll)([e,t])},D=e=>({animation:`${E}_${e} ${A.zn}ms ease-in-out`,WebkitAnimation:`${E}_${e} ${A.zn}ms ease-in-out`}),j=({children:e,handleShareTap:t,upsellIcon:n})=>{let i=(0,o.ZP)();return n?((0,u.Nh)(A.RV,Date.now()),(0,T.jsxs)(l.xu,{children:[(0,T.jsx)(s.Z,{unsafeCSS:C()}),(0,T.jsxs)(l.xu,{alignItems:"center",justifyContent:"center",display:"flex",width:48,height:48,borderStyle:"none",dangerouslySetInlineStyle:{__style:{borderRadius:"22px",...D("container")}},children:[(0,T.jsx)(l.xu,{position:"absolute",opacity:0,dangerouslySetInlineStyle:{__style:D("upsellApp")},children:(0,T.jsx)(l.iP,{accessibilityLabel:i._('Send', 'Board.Pin.SendButton', 'Accessible label for button to send a pin or a board'),onTap:({event:e})=>t(e),children:n})}),(0,T.jsx)(l.xu,{position:"absolute",dangerouslySetInlineStyle:{__style:D("default")},children:e})]})]})):e},F=({onDefaultSendButtonClick:e,sendButtonColor:t,viewParameter:n})=>{let a=(0,p.HG)(),o=(0,r.Z)(),s=(0,c.Z)(),{country:I,userAgent:{platform:E}}=(0,d.B)(),C=E===h.RL||E===h.s4,[D,F]=(0,i.useState)(),R=(0,g._l)(),{hasSeenAuthMobileLandingToast:L}=(0,g.w2)()||{},z=()=>{s({action:"click",item:"share-button"}),o({component:194,element:46,event_type:102,view_type:3,view_parameter:n})};return(0,m.Z)(()=>{if(!a){let e=function({country:e,isAppleDevice:t}){let n=(0,u.qn)(A.RV),i=n&&Date.now()-Number(n)<A.bm;if(!i){let n=Number((0,u.qn)(A.Cq))||A.iS.get(e)||10;switch(n){case 5:return(0,T.jsx)(v.Z,{size:A.VZ});case 6:return(0,T.jsx)(x.Z,{size:A.VZ});case 8:return(0,T.jsx)(b.Z,{size:A.VZ});case 4:return t?(0,T.jsx)(f.Z,{size:A.VZ}):(0,T.jsx)(l.xu,{"data-test-id":"message-share-button",children:(0,T.jsx)(y.Z,{size:A.VZ})});case 20:return(0,T.jsx)(k.Z,{size:A.VZ});case 9:return(0,T.jsx)(w.Z,{size:A.VZ});case 22:return(0,T.jsx)(P.Z,{size:A.VZ});case 10:return(0,T.jsx)(S.Z,{size:A.VZ})}}return null}({country:I,isAppleDevice:C});e&&setTimeout(()=>{F(e)},A.W_)}}),R&&!L?(0,T.jsx)(l.xu,{"data-test-id":"share-button-no-animation",children:(0,T.jsx)(_.Z,{onSendButtonClick:e,trackShareTap:z,color:t})}):(0,T.jsx)(j,{handleShareTap:t=>{z(),e(t)},upsellIcon:D,children:(0,T.jsx)(l.xu,{"data-test-id":"share-button-no-animation",children:(0,T.jsx)(_.Z,{onSendButtonClick:e,trackShareTap:z,color:t})})})}},246340:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(667294),l=n(883119),a=n(112690),r=n(829407),o=n(74727),s=n(749049),d=n(158989),u=n(785893);let c=new l.H3([d.Z]);function p({anchor:e,onDismiss:t,objectId:n,objectType:d,title:p,component:m,viewType:h,viewParameter:_}){let g=(0,a.Z)(),[y,v]=(0,i.useState)(!1);return(0,r.Z)(()=>{g({event_type:10400,view_type:h,object_id_str:n,component:m,view_parameter:_,element:(0,s.O)(d),aux_data:{invite_object:d}})}),(0,u.jsx)(l.mh,{zIndex:c,children:(0,u.jsx)(l.J2,{anchor:e,onDismiss:()=>{y||g({component:m,event_type:10403,element:13478,view_type:h,view_parameter:_,aux_data:{invite_object:d}}),t()},size:"xl",positionRelativeToAnchor:!1,children:(0,u.jsx)(l.xu,{"data-test-id":"share-menu-container",children:(0,u.jsxs)(l.kC,{alignItems:"center",direction:"column",wrap:!0,width:360,overflow:"hidden",children:[(0,u.jsx)(l.xu,{marginTop:4,marginBottom:4,children:(0,u.jsx)(l.xv,{size:"300",weight:"bold",children:(0,u.jsx)(l.xu,{"data-test-id":"share-send-message",children:p})})}),(0,u.jsx)(l.kC,{width:360,children:(0,u.jsx)(o.Z,{objectId:n,objectType:d,onDismiss:t,setShareSent:e=>v(e),component:m})})]})})})})}},86802:(e,t,n)=>{"use strict";n.d(t,{B:()=>a,Cq:()=>l,F6:()=>c,RV:()=>i,VZ:()=>r,W_:()=>s,bm:()=>o,iS:()=>p,rO:()=>u,zn:()=>d});let i="animatedShareIconLastViewed",l="lastUsedSocialShare",a="customizedSocialAppOrder",r=44,o=9e5,s=4e3,d=5e3,u=new Set([12,3,11]),c=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)=>{"use strict";n.d(t,{O:()=>i});let i=e=>{switch(e){case 2:return 331;case 3:return 12631;default:return 72}}},539766:(e,t,n)=>{"use strict";n.d(t,{P:()=>h,Z:()=>g});var i=n(667294),l=n(867631),a=n.n(l),r=n(883119),o=n(366284),s=n(898781),d=n(391254),u=n(780280),c=n(50286),p=n(785893);function m(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let h=`
356
+ video::cue {
357
+ color: white;
358
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Helvetica, 'ヒラギノ角ゴ Pro W3', 'メイリオ', Meiryo, 'MS Pゴシック', Arial, sans-serif;
359
+ font-weight: 450;
360
+ font-size: 18px;
361
+ }
362
+ `;class _ extends i.PureComponent{constructor(...e){super(...e),m(this,"state",{videoStartTime:0}),m(this,"setVideoPlayerRef",e=>{let{setVideoRef:t,handlePlay:n,autoplay:i=!0}=this.props;this.videoPlayerRef=e,e&&t&&t(e.video),this.videoPlayerRef&&this.videoPlayerRef.video&&n&&i&&this.videoPlayerRef.video.addEventListener("canplay",()=>{n({userTriggeredPlay:!1})})}),m(this,"hls",null),m(this,"initializeHls",()=>{this.destroyHls();let{src:e}=this.props,t=new(a());a().isSupported()&&!(0,o.G6)(this.props.requestContext.userAgent.browserName)&&(t.loadSource(e),this.videoPlayerRef&&t.attachMedia(this.videoPlayerRef.video)),this.hls=t}),m(this,"destroyHls",()=>{let{hls:e}=this;e&&e.destroy()}),m(this,"onPlay",({event:e})=>{let{handlePlay:t}=this.props;e.stopPropagation(),t&&t({userTriggeredPlay:!0})}),m(this,"onPause",({event:e})=>{let{handlePause:t}=this.props;e.stopPropagation(),t&&t()}),m(this,"handleVolumeChange",({event:e,volume:t})=>{let{onVolumeChange:n}=this.props;e.stopPropagation(),n&&n({volume:t})}),m(this,"handleOnReady",e=>{this.props.onReady&&this.props.onReady(e)}),m(this,"handleEnded",()=>{let{onEnded:e}=this.props;e&&e()}),m(this,"handlePlaying",()=>{let{clearSeekTime:e}=this.props;e&&e()})}componentDidMount(){this.initializeHls()}componentWillUnmount(){this.destroyHls()}componentDidUpdate(e){var t,n;let{activeStreamItemIndex:i,playing:l,src:r,seekTime:o,captionsEnabled:s,isDesktop:d,isTablet:u,requestContext:c,isVideoPin:p}=this.props,{isAuthenticated:m}=c;o&&o!==e.seekTime&&this.setState({videoStartTime:o});let h=null===(t=this.videoPlayerRef)||void 0===t?void 0:null===(n=t.video)||void 0===n?void 0:n.textTracks[0];h&&(s?h.mode="showing":h.mode="disabled",h.addEventListener("cuechange",()=>{let e=h.activeCues&&h.activeCues.length>0&&h.activeCues[0];e&&e.line&&(d?(e.line=-6,e.size=88):(m?e.line=-8:(e.line=-10,u&&(e.line=-15)),e.size=70),p&&(e.line=-5))})),i!==e.activeStreamItemIndex&&this.videoPlayerRef&&this.videoPlayerRef.video&&(this.videoPlayerRef.video.currentTime=0),e.src!==r&&(this.initializeHls(),this.hls&&this.hls.on(a().Events.MANIFEST_PARSED,()=>{void 0!==l&&l&&this.videoPlayerRef&&this.videoPlayerRef.play()}))}render(){let{aspectRatio:e,controls:t,loop:n=!1,poster:i,src:l,onTimeChange:a,playing:o,volume:s,captions:u}=this.props;return(0,p.jsxs)(r.xu,{width:"100%",children:[(0,p.jsx)(d.Z,{unsafeCSS:h}),(0,p.jsx)(r.nk,{autoplay:o,playsInline:!0,aspectRatio:e,captions:u,controls:t,loop:n,onControlsPause:this.onPause,onControlsPlay:this.onPlay,onReady:this.handleOnReady,onEnded:this.handleEnded,onVolumeChange:this.handleVolumeChange,onTimeChange:a,onPlay:()=>{},onPlaying:this.handlePlaying,onPlayError:()=>{},playing:o,poster:i,ref:this.setVideoPlayerRef,src:l,startTime:this.state.videoStartTime||void 0,volume:s})]})}}function g(e){let{clearSeekTime:t,pinId:n="",seekTime:i}=e,l=(0,s.ZP)(),a=(0,u.B)(),r=(0,c.HG)(),o=(0,c.Wb)();return(0,p.jsx)(_,{...e,i18n:l,requestContext:a,isDesktop:r,isTablet:o,seekTime:i,clearSeekTime:()=>{t&&t(n)}})}},881999:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(667294),l=n(539766),a=n(785893);function r(e){let{onReady:t,volume:n}=e,[r,o]=(0,i.useState)(!0),s=(0,i.useCallback)(()=>{o(!1)},[]),d=(0,i.useCallback)(()=>{o(!0)},[]);return(0,a.jsx)(l.Z,{...e,handlePause:s,handlePlay:d,onReady:e=>{t&&t(e)},volume:n,playing:r})}},762674:(e,t,n)=>{"use strict";n.d(t,{D:()=>N,Z:()=>H});var i,l,a=n(667294),r=n(167912),o=n(616550),s=n(883119),d=n(112690),u=n(643010),c=n(375571),p=n(898781),m=n(623568),h=n(53199),_=n(780280),g=n(995228),y=n(50286),v=n(19121),f=n(350118),b=n(797087),x=n(458996),k=n(995269),P=n(4700),S=n(252417),w=n(456082),A=n(858472),T=n(52022),I=n(856306),E=n(785893);let C=void 0!==i?i:i=n(636929),D=({clickthrough:e,onLoad:t})=>{let n=(0,p.ZP)(),i=(0,T.Z)();return(0,a.useEffect)(()=>{t&&t()},[t]),(0,E.jsx)(s.xu,{"data-test-id":"idea-pin-section-visit-button",children:(0,E.jsx)(s.iP,{onTap:()=>{i({action:"click",item:"visit-button"}),e()},rounding:"pill",fullWidth:!0,children:(0,E.jsx)(s.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:A.KK}},height:S.oe,rounding:S.dX,display:"flex",justifyContent:"center",alignItems:"center",paddingX:S.rM,paddingY:S.Ai,children:(0,E.jsx)(s.xv,{color:"light",weight:"bold",size:"300",children:n._('Visit', 'CloseupStreams.IdeaPinActionBar.visitButton', 'Text on a button that lets users visit the source of the pin')})})})})},j=({clickthroughInterstitialExperience:e,graphqlRef:t,onLoad:n})=>{let i=(0,r.useFragment)(C,t),l=(0,I.I)({clickthroughInterstitialExperience:e,graphqlRef:i});return(0,E.jsx)(D,{clickthrough:l,onLoad:n})},F=({clickthroughInterstitialExperience:e,pinId:t,onLoad:n})=>{let i=(0,I.Z)({clickthroughInterstitialExperience:e,pinId:t});return(0,E.jsx)(D,{clickthrough:i,onLoad:n})};function R({clickthroughInterstitialExperience:e,pinId:t,graphqlRef:n,onLoad:i}){return n?(0,E.jsx)(j,{graphqlRef:n,clickthroughInterstitialExperience:e,onLoad:i}):(0,E.jsx)(F,{clickthroughInterstitialExperience:e,pinId:t,onLoad:i})}var L=n(885523);let z=(0,a.lazy)(()=>Promise.resolve().then(n.bind(n,328896))),O=(0,a.lazy)(()=>Promise.resolve().then(n.bind(n,438010))),M=({action:e})=>(0,E.jsx)("button",{style:{background:"transparent",border:"none"},children:(0,E.jsx)(s.kC,{alignContent:"center",alignItems:"center",justifyContent:"center",height:32,children:e})}),N=60,B=void 0!==l?l:l=n(788603);function Z({clientTrackingParams:e,experience:t,pinId:n,pinnedToBoardId:i,viewParameter:l,graphqlRef:r,viewType:h,boardId:f,embedSrc:A,embedType:T,hasRichMetadata:I,hasRichMetadataProducts:C,hasRichMetadataArticle:D,hasRichMetadataRecipe:j,imagesUrls:F,pinnerId:N,pinSectionId:B,trackingParams:Z,isEligibleForAggregatedComments:K,hasLink:U,component:H,attributionLabel:V}){let{isRTL:G}=(0,_.B)(),$=(0,p.ZP)(),W=(0,d.Z)(),q=(0,v.Z)(),Y=q.isAuth,[X,Q]=(0,a.useState)(!1),J=(0,o.useLocation)(),ee=(0,m.NK)(n,J),et=(0,y.HG)(),en=et?S.hk:S.gx,ei=et?S.R_:S.CR,el=(0,x.Z)({embedSrc:A,embedType:T,imagesUrls:F,pinId:n,pinnerId:N}),ea=(0,b.Z)({embedSrc:A,embedType:T,hasRichMetadata:I,hasRichMetadataProducts:C,hasRichMetadataArticle:D,hasRichMetadataRecipe:j,imagesUrls:F,isStoryPin:!0,pinId:n,attributionLabel:V}),er=(0,k.Z)({boardId:null!=f?f:"",embedSrc:A,embedType:T,imagesUrls:F,pinId:n,pinnerId:null!=N?N:"",pinnedToBoardId:i,pinSectionId:B,trackingParams:Z,shouldRefresh:!1}),eo=(0,u.Yc)(),es=eo?"darkGray":"white",ed=et?"11px":"40px",eu=et?ed:"0px",ec=(0,E.jsx)(P.Z,{buttonText:et?"":"Save",clientTrackingParams:e,deeplinkUri:ee.deeplinkUri,isOnIdeaPinCloseup:!0,onTouch:ea,onUnsave:er,pinId:n,pinnedToBoardId:i,shouldShowSavedButton:el,to:ee.mwebUri,viewParameter:l,viewType:h}),{paddingX:ep,paddingY:em}=(0,S._P)(et),eh=r?{type:"graphqlRef",data:r}:{type:"deprecated",data:n};return(0,E.jsxs)(s.xu,{"data-test-id":"story-pin-action-bar-mweb",position:"absolute",bottom:!0,right:et&&!G,left:et&&G,marginEnd:et||G?2:0,marginStart:et&&G?2:0,width:et?"initial":"100%",dangerouslySetInlineStyle:{__style:{marginBottom:eu,backgroundColor:et?"transparent":"#000000"}},paddingX:ep,paddingY:em,zIndex:S.lp,children:[(0,E.jsxs)(s.kC,{direction:et?"column":"row",justifyContent:et?"end":"start",alignItems:et?"center":"stretch",width:"100%",gap:et?{row:0,column:2}:void 0,children:[et&&(0,E.jsx)(s.kC,{alignItems:"center",dataTestId:"pin-more-button",justifyContent:"center",height:en,width:ei,children:(0,E.jsx)(s.hU,{size:"lg",accessibilityLabel:$._('more', 'closeup.storyPin.actionBar.contextualMenu', 'Pin more button'),iconColor:es,icon:"ellipsis",onClick:()=>{Q(!0),W({component:229,element:10946,event_type:102,view_type:3,view_parameter:157})}})}),Y&&(0,E.jsx)(c.Z,{name:"SafeSuspense_StoryPinActionBar_ReactionPickerContainer",children:(0,E.jsx)(g.Z,{children:et?(0,E.jsx)(s.kC,{alignItems:"center",justifyContent:"center",height:en,width:ei,children:(0,E.jsx)(z,{experience:t,pinId:n,nativePinType:"storyPin",isIdeaPinCloseUp:!0,iconColor:es})}):(0,E.jsx)(a.Fragment,{})})}),(0,E.jsxs)(s.kC,{justifyContent:et?"start":"between",direction:et?"column":"row",flex:et?"none":"grow",children:[(0,E.jsx)(c.Z,{name:"SafeSuspense_CloseupModals_ShareMenu",children:(0,E.jsx)(g.Z,{children:et?(0,E.jsx)(s.kC,{dataTestId:"share-button-container",alignItems:"center",justifyContent:"center",height:en,width:ei,children:(0,E.jsx)(L.Z,{pinId:n,iconSize:"lg",iconColor:es,viewParameter:l,clientTrackingParams:e,viewType:h,component:H})}):K&&(0,E.jsx)(M,{action:(0,E.jsx)(O,{pinId:n,pinKey:eh,viewParameter:l})})})}),!et&&(0,E.jsxs)(s.kC,{gap:2,children:[U&&(0,E.jsx)(s.xu,{display:"flex","data-test-id":"streams-visit-text-btn",alignItems:"center",justifyContent:"center",height:en,children:(0,E.jsx)(R,{pinId:n,graphqlRef:r})}),(0,E.jsx)(s.xu,{display:"flex","data-test-id":"streams-save-text-btn",alignItems:"center",justifyContent:"center",height:en,children:ec})]}),(0,E.jsx)(c.Z,{name:"SafeSuspense_StoryPinActionBar_CommentThreadContainer",children:(0,E.jsx)(g.Z,{children:et?K&&(0,E.jsx)(s.kC,{alignItems:"center",justifyContent:"center",height:en,width:ei,dataTestId:"comment-button-container",children:(0,E.jsx)(O,{pinId:n,pinKey:eh,viewParameter:l})}):(0,E.jsx)(M,{action:(0,E.jsx)(L.Z,{pinId:n,iconSize:"md",iconColor:es,viewParameter:l,clientTrackingParams:e,viewType:h,component:H})})})})]}),et&&(0,E.jsx)(s.xu,{display:"flex","data-test-id":"streams-save-text-btn",alignItems:"center",justifyContent:"center",height:en,children:ec})]}),X&&(0,E.jsx)(w.Z,{onDismiss:()=>Q(!1),pinId:n})]})}function K({graphqlRef:e,...t}){var n,i,l,a,s,d,u,c,p,m,_;let g=(0,r.useFragment)(B,e),y=(0,h.Z)({type:"graphqlRef",data:g}),v=(0,o.useLocation)();return(0,E.jsx)(Z,{...t,boardId:null===(n=g.board)||void 0===n?void 0:n.entityId,embedSrc:null===(i=g.embed)||void 0===i?void 0:i.src,embedType:null===(l=g.embed)||void 0===l?void 0:l.type,graphqlRef:g,hasLink:!!g.link&&!g.link.startsWith("https://i.pinimg.com"),hasRichMetadata:!!g.richMetadata,hasRichMetadataProducts:!!(null===(a=g.richMetadata)||void 0===a?void 0:a.products),hasRichMetadataArticle:!!(null===(s=g.richMetadata)||void 0===s?void 0:s.article),hasRichMetadataRecipe:!!(null===(d=g.richMetadata)||void 0===d?void 0:d.recipe),imagesUrls:y,isEligibleForAggregatedComments:null===(u=g.isEligibleForAggregatedComments)||void 0===u||u,pinnedToBoardId:null===(c=g.pinnedToBoard)||void 0===c?void 0:c.entityId,pinnerId:null===(p=g.pinner)||void 0===p?void 0:p.entityId,pinSectionId:null===(m=g.section)||void 0===m?void 0:m.entityId,trackingParams:g.trackingParams,attributionLabel:null===(_=v.state)||void 0===_?void 0:_.attributionLabel})}function U(e){var t,n,i,l,a,r,s,d,u,c,p;let m=(0,f.S6)()(e.pinId),_=null==m?void 0:null===(t=m.board)||void 0===t?void 0:t.id,g=(0,o.useLocation)(),y=(0,h.Z)(null!=m?{type:"deprecated",data:m}:null);return(0,E.jsx)(Z,{...e,boardId:_,embedSrc:null==m?void 0:null===(n=m.embed)||void 0===n?void 0:n.src,embedType:null==m?void 0:null===(i=m.embed)||void 0===i?void 0:i.type,hasLink:!!(null!=m&&m.link)&&!m.link.startsWith("https://i.pinimg.com"),hasRichMetadata:!!(null==m?void 0:m.rich_metadata),hasRichMetadataProducts:!!(null==m?void 0:null===(l=m.rich_metadata)||void 0===l?void 0:l.products),hasRichMetadataArticle:!!(null==m?void 0:null===(a=m.rich_metadata)||void 0===a?void 0:a.article),hasRichMetadataRecipe:!!(null==m?void 0:null===(r=m.rich_metadata)||void 0===r?void 0:r.recipe),imagesUrls:y,isEligibleForAggregatedComments:null!==(s=null==m?void 0:m.is_eligible_for_aggregated_comments)&&void 0!==s&&s,pinnedToBoardId:null==m?void 0:null===(d=m.pinned_to_board)||void 0===d?void 0:d.id,pinnerId:null==m?void 0:null===(u=m.pinner)||void 0===u?void 0:u.id,pinSectionId:null==m?void 0:null===(c=m.section)||void 0===c?void 0:c.id,trackingParams:null==m?void 0:m.tracking_params,attributionLabel:null===(p=g.state)||void 0===p?void 0:p.attributionLabel,graphqlRef:null})}function H({graphqlRef:e,...t}){return e?(0,E.jsx)(K,{graphqlRef:e,...t}):(0,E.jsx)(U,{...t})}},456082:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(883119),l=n(121151),a=n(898781),r=n(538232),o=n(203201),s=n(785893);function d({onDismiss:e,pinId:t}){let n=(0,a.ZP)(),d=(0,r.R)();return(0,s.jsx)(l.ZP,{accessibilityModalLabel:"",mobileAccessibilityCloseIconLabel:n._('close report modal', ' - ', ' -- '),onDismiss:e,type:"closeup_page",children:(0,o.E)(d)&&(0,s.jsx)(i.xu,{padding:3,children:(0,s.jsx)(o.Z,{isIdeaPin:!0,nativePinType:"storyPin",textSize:"300",onDismiss:e,graphqlRef:null,pinId:t})})})}},680175:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(883119),l=n(164985),a=n(881999),r=n(762674),o=n(785893);let s=e=>{let{media:t,altImageText:n,dominantColor:s="#000000",pageType:d,isVideo:u}=e,{windowHeight:c,windowWidth:p}=(0,l.Z)(),m=c-r.D,h=Math.min(16*p/9,m),_=h/p;return t||null!=t&&t.width?(0,o.jsx)(i.xu,{height:"100%",width:"100%",position:"relative",overflow:"hidden",children:u?(()=>{if(!t.video_list||!t.video_list.V_HLSV3_MOBILE)return null;let{width:e,height:n,thumbnail:l,url:r}=t.video_list.V_HLSV3_MOBILE;return(0,o.jsx)(i.xu,{position:"absolute",width:"100%",dangerouslySetInlineStyle:{__style:{top:"50%",left:"50%",transform:"translate(-50%, -50%)"}},children:(0,o.jsx)(a.default,{aspectRatio:(null!=e?e:1)/(null!=n?n:1),controls:!0,poster:l,src:null!=r?r:""})})})():(()=>{var e,l;if(!t.width)return null;let a="number"==typeof t.height&&"number"==typeof t.width?t.height/t.width:1,r="contain";return("cover"===d||a>_)&&(r="cover"),(0,o.jsx)(i.Ee,{alt:n,color:s,fit:r,naturalHeight:null!==(e=t.height)&&void 0!==e?e:1,naturalWidth:t.width,src:null!==(l=t.url)&&void 0!==l?l:""})})()}):null}},185258:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var i,l=n(167912),a=n(883119),r=n(844255),o=n(224496),s=n(430323),d=n(962482),u=n(350118),c=n(680175),p=n(667294),m=n(63552),h=n(252417),_=n(112690),g=n(898781),y=n(785893);let v=({blockImage:e,text:t})=>{let n=(0,g.ZP)();if(e&&e.url){var i,l;return(0,y.jsx)(a.Ee,{fit:"cover",src:e.url,alt:t,naturalHeight:null!==(i=e.height)&&void 0!==i?i:1,naturalWidth:null!==(l=e.width)&&void 0!==l?l:1})}return(0,y.jsx)(a.JO,{icon:"link",accessibilityLabel:n._('Default link block icon', 'Icon for default link blocks without an image', 'Icon for default link blocks without an image'),color:"subtle",size:35})};class f extends p.Component{constructor(...e){var t,n,i;super(...e),t="onTouch",n=e=>{e.stopPropagation();let{block:t,logContextEvent:n,pageId:i}=this.props,{src_url:l="",canonical_url:a=""}=t;n({view_type:3,component:228,view_parameter:157,element:11157,event_type:102,aux_data:{story_pin_page_id:i,src_url:l,canonical_url:a}})},(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n}componentDidMount(){this.props.logContextEvent({event_type:120,view_type:3,component:228,view_parameter:157,element:11157})}render(){var e;let{block:t}=this.props;if(t.type!==h.h8.LINK)return null;let{image:n,text:i="",normalized_url:l,src_url:r}=t,o=null==n?void 0:null===(e=n.images)||void 0===e?void 0:e["345x"];return(0,y.jsx)(a.Tg,{target:"blank",rel:"nofollow",href:r||"",tapStyle:"compress",rounding:2,onTap:({event:e})=>this.onTouch(e),children:(0,y.jsxs)(a.xu,{display:"flex",rounding:2,overflow:"hidden",alignItems:"center",borderStyle:"sm",children:[(0,y.jsx)(a.xu,{minWidth:48,width:48,height:48,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",dangerouslySetInlineStyle:{__style:{borderRight:"1px solid lightGray"}},children:(0,y.jsx)(v,{blockImage:o,text:i})}),(0,y.jsxs)(a.xu,{paddingX:5,flex:"grow",overflow:"hidden",dangerouslySetInlineStyle:{__style:{whiteSpace:"nowrap",textOverflow:"ellipsis"}},children:[(0,y.jsx)(a.xv,{size:"100",lineClamp:1,weight:"bold",children:i}),(0,y.jsx)(a.xv,{color:"shopping",size:"100",children:l})]})]})})}}function b(e){let t=(0,_.Z)();return(0,y.jsx)(f,{...e,logContextEvent:t})}function x(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class k extends p.PureComponent{constructor(...e){super(...e),x(this,"state",{isTextDrawerExpanded:!1}),x(this,"toggleIsTextDrawerExpanded",e=>{e.stopPropagation();let{isTextDrawerExpanded:t}=this.state;this.setState({isTextDrawerExpanded:!t})}),x(this,"renderBlock",(e,t,n)=>{let{isTextDrawerExpanded:i}=this.state;switch(e.type){case h.h8.HEADING:return(0,y.jsxs)(a.xu,{display:"flex",justifyContent:"between",marginBottom:2,children:[(0,y.jsx)(a.xu,{maxWidth:"90%",children:(0,y.jsx)(a.X6,{color:"default",size:"500",overflow:"normal",children:e.text})}),(0,y.jsx)(a.JO,{accessibilityLabel:i?"hide":"expand",color:"default",icon:i?"arrow-down":"arrow-up"})]},t);case h.h8.PARAGRAPH:return(0,y.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{whiteSpace:"pre-wrap"}},children:(0,y.jsx)(a.xv,{color:"default",children:e.text})},t);case h.h8.LINK:return(0,y.jsx)(a.xu,{marginTop:6,children:(0,y.jsx)(b,{block:e,pageId:n})},t);default:return null}})}render(){let{associatedText:e,pageId:t}=this.props,{isTextDrawerExpanded:n}=this.state,i=(null!=e?e:[]).map((e,n)=>this.renderBlock(e,n,t)).filter(e=>null!==e);return i.length?(0,y.jsx)(m.Z,{onTouch:this.toggleIsTextDrawerExpanded,pressState:"none",children:(0,y.jsx)(a.xu,{bottom:!0,color:"default",dangerouslySetInlineStyle:{__style:{borderRadius:"40px 40px 0px 0px"}},height:n?void 0:132,left:!0,minHeight:n?132:void 0,maxHeight:n?"80%":void 0,overflow:n?"auto":"hidden",padding:6,position:"absolute",right:!0,children:i})}):null}}var P=n(46249);let S=void 0!==i?i:i=n(756203),w=({onLastPage:e,textOnly:t,dominantColor:n,images:i,blocks:l,pageId:r,video:o,hasImageAdjusted:d})=>{var u;let p=o||(null==i?void 0:i["750x"])||(null==i?void 0:i["236x"])||(null==i?void 0:i["1200x"])||(null==i?void 0:i.originals),m=(null!==(u=null==l?void 0:l.length)&&void 0!==u?u:0)>0,h=m&&null!=l&&l[0].text?l[0].text:"";return(0,y.jsx)(s.Z,{view:3,viewParameter:157,component:228,auxData:{story_pin_page_id:r},children:(0,y.jsxs)(a.xu,{width:"100%",height:"100%",children:[!t&&(0,y.jsx)(c.Z,{altImageText:h,isVideo:!!o,media:p,pageType:"media",dominantColor:null!=n?n:void 0}),e&&(0,y.jsx)(a.xu,{position:"absolute",top:!0,left:!0,bottom:!0,right:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(0,0,0, 0.7)"}}}),m&&!d&&!e&&(0,y.jsx)(k,{associatedText:null!=l?l:void 0,pageId:null!=r?r:void 0})]})})},A=({page:e})=>{var t,n,i,l,a;if(!e)return null;let s=e.video?{video_list:e.video.videoList?{V_HLSV3_MOBILE:e.video.videoList.vHLSV3MOBILE?{width:null!==(t=e.video.videoList.vHLSV3MOBILE.width)&&void 0!==t?t:void 0,height:null!==(n=e.video.videoList.vHLSV3MOBILE.height)&&void 0!==n?n:void 0,thumbnail:null!==(i=e.video.videoList.vHLSV3MOBILE.thumbnail)&&void 0!==i?i:void 0,url:null!==(l=e.video.videoList.vHLSV3MOBILE.url)&&void 0!==l?l:void 0}:void 0}:void 0}:void 0,d=(0,r.g)(e),u=(null!==(a=e.blocks)&&void 0!==a?a:[]).reduce((e,t)=>{if(4===t.blockType){var n,i,l,a;let r={block_type:4,type:o.h8.LINK,text:null!==(n=t.text)&&void 0!==n?n:void 0,src_url:null!==(i=t.srcUrl)&&void 0!==i?i:void 0,canonical_url:null!==(l=t.canonicalUrl)&&void 0!==l?l:void 0,normalized_url:null!==(a=t.normalizedUrl)&&void 0!==a?a:void 0,image:void 0};return[...e,r]}return e},[]),c=null!=d&&d.length||u.length?[...null!=d?d:[],...null!=u?u:[]]:null;return{blocks:c,video:s}};function T({pageId:e,graphqlRef:t,onLastPage:n,textOnly:i}){var a,r,o,s,u;let c=(0,l.useFragment)(S,t),p=(null!==(a=null===(r=c.storyPinData)||void 0===r?void 0:r.pages)&&void 0!==a?a:[]).find(t=>t.storyPageId===e),m=null!==(o=null!==(s=null==p?void 0:p.dominantColorAdjusted)&&void 0!==s?s:null==p?void 0:p.dominantColor)&&void 0!==o?o:"",{imageImages:h,imageAdjustedImages:_,hasImageImages:g,hasImageAdjustedImages:v}=(0,P.Z)(p)||Object.freeze({});if(!p)return null;let f=!!p.dominantColorAdjusted||v,b=!!p.dominantColor||g;if(!b&&!f&&!p.video&&!i)return(0,y.jsx)(d.Z,{});let{blocks:x,video:k}=null!==(u=A({page:p}))&&void 0!==u?u:Object.freeze({});return(0,y.jsx)(w,{dominantColor:m,images:f?_:h,hasImageAdjusted:f,pageId:p.storyPageId,blocks:x,video:k,onLastPage:n,textOnly:i})}function I({pageId:e,pinId:t,textOnly:n,onLastPage:i}){var l,a;let r=(0,u.S6)()(null!=t?t:""),o=(null!==(l=null==r?void 0:null===(a=r.story_pin_data)||void 0===a?void 0:a.pages)&&void 0!==l?l:[]).find(t=>t.id===e),{image:s,image_adjusted:c,blocks:p,video:m,id:h}=o||Object.freeze({}),{dominant_color:_,images:g}=c||s||Object.freeze({});return s||m||n?(0,y.jsx)(w,{dominantColor:_,images:g,blocks:p,hasImageAdjusted:!!c,pageId:h,video:m,onLastPage:i,textOnly:n}):(0,y.jsx)(d.Z,{})}function E({pageId:e,pinId:t,graphqlRef:n,...i}){return n?(0,y.jsx)(T,{graphqlRef:n,pageId:e,...i}):(0,y.jsx)(I,{pageId:e,pinId:t,...i})}},257558:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var i,l=n(667294),a=n(167912),r=n(883119),o=n(407043),s=n(121151),d=n(898781),u=n(391254),c=n(773285),p=n(50286),m=n(19121),h=n(350118),_=n(252417),g=n(785893);let y=void 0!==i?i:i=n(848720),v=({children:e,handleCloseModal:t})=>{let n=(0,p.HG)(),i=(0,d.ZP)();return n?(0,g.jsx)(s.ZP,{accessibilityModalLabel:i._('Artist and song title for this Pin', 'web.closeup.musicAttibutionModal', 'Artist and song title for Pin music attribution'),heading:(0,g.jsxs)(r.kC,{justifyContent:"between",children:[(0,g.jsx)(r.X6,{size:"500",children:i._('Playlist for this video', 'web.closeup.musicAttibutionModal.heading', 'Title for music attribution modal')}),(0,g.jsx)(r.hU,{accessibilityLabel:i._('Close modal button', 'web.closeup.musicAttibutionModal.closeButton', 'Close modal button for music attribution modal'),bgColor:"white",icon:"cancel",iconColor:"darkGray",onClick:t,size:"sm"})]}),onDismiss:t,children:e}):(0,g.jsx)(r.mh,{zIndex:_.lp,children:(0,g.jsx)(r.Io,{heading:i._('Playlist for this video', 'mWeb.closeup.musicAttibutionModal.heading', 'Title for music attribution modal'),onDismiss:t,children:e})})},f=({musicAttributions:e,pageMusicBlockAudioArtistName:t,pageMusicBlockAudioTitle:n,playbackHandlers:i,shouldMute:a,viewParameter:s})=>{let h=(0,d.ZP)(),{logContextEvent:_}=(0,o.v)(),{checkExperiment:y}=(0,c.F)(),f=(0,p.ZP)(),b=(0,m.Z)(),x="desktop"!==f&&y(b.isAuth?"closeup_auth_mweb_remove_streams":"closeup_unauth_mweb_remove_streams").anyEnabled,[k,P]=(0,l.useState)(!1),S=new r.Ry(6);if((0,l.useEffect)(()=>{(null!=e&&e.length||a)&&e&&_({event_type:a?14600:14601,view_type:3,view_parameter:s})},[_,e,a,s]),!(null!=e&&e.length)&&!a)return null;let{handlePause:w,handlePlay:A}=i||{},T=null;if(a)T=h._('Audio not available in your location', 'closeup.storyPin.musicAttribution', 'Informational message to tell user audio is not available in their location');else{let e=null!=t?t:"",i=null!=n?n:"";T=e&&i?`${e} - ${i}`:""}if((null==e?void 0:e.length)===1){let t=e[0],{artist:n="",title:i=""}=t;T=n&&i?`${n} - ${i}`:""}return(0,g.jsx)(r.xu,{"data-test-id":"music-attribution",alignItems:"center",display:"flex",justifyContent:"center",overflow:"hidden",zIndex:S,children:a?(0,g.jsx)(l.Fragment,{children:(0,g.jsxs)(r.kC,{alignItems:"stretch",justifyContent:"center",children:[(0,g.jsx)(r.xu,{marginEnd:2,children:(0,g.jsx)(r.JO,{inline:!0,accessibilityLabel:h._('Music icon', 'mWeb.closeup.storyPin.musicMutedIcon', 'Music muted icon for idea pin music attribution'),color:"light",icon:"music-off",size:12})}),(0,g.jsx)(r.xv,{inline:!0,color:"light",overflow:"noWrap",size:"100",children:h._('Audio not available in your location', 'closeup.storyPin.musicAttribution', 'Informational message to tell user audio is not available in their location')})]})}):(0,g.jsxs)(l.Fragment,{children:[e&&e.length>=2?(0,g.jsx)(r.xu,{children:(0,g.jsx)(r.iP,{fullHeight:!0,fullWidth:!0,onTap:()=>{null==w||w(),P(!0)},children:(0,g.jsxs)(r.kC,{alignItems:"center",justifyContent:x?"center":"start",children:[(0,g.jsx)(r.xu,{marginEnd:2,children:(0,g.jsx)(r.JO,{inline:!0,accessibilityLabel:h._('Music icon', 'mWeb.closeup.storypin.musicicon', 'Artist and song title for idea pin music attribution'),color:"light",icon:a?"music-off":"music-on",size:12})}),(0,g.jsx)(r.xv,{inline:!0,color:"light",overflow:"noWrap",size:"100",children:h._('View the playlist', 'mWeb.closeup.musicAttibutionModal.entryPoint', 'Entry point for playlist modal')})]})})}):(0,g.jsxs)(l.Fragment,{children:[(0,g.jsx)(r.JO,{inline:!0,accessibilityLabel:h._('Music icon', 'mWeb.closeup.storypin.musicicon', 'Music icon for idea pin music attribution'),color:"light",icon:a?"music-off":"music-on",size:12}),(0,g.jsx)(r.xu,{marginStart:2,overflow:"hidden",children:(0,g.jsxs)("span",{className:T.length>=50?"marquee":void 0,style:{display:"inline-block",maxWidth:T.length>=50?"260px":void 0},children:[(0,g.jsx)(r.xv,{inline:!0,color:"light",overflow:"noWrap",size:"100",children:T}),(0,g.jsx)(u.Z,{unsafeCSS:`
363
+ .marquee {
364
+ animation: marquee 10s linear infinite;
365
+ animation-delay: 2s;
366
+ }
367
+
368
+ .marquee:hover {
369
+ animation-play-state: paused;
370
+ }
371
+
372
+ @keyframes marquee {
373
+ 0% {
374
+ transform: translateX(0%);
375
+ }
376
+ 50% {
377
+ transform: translateX(-100%);
378
+ }
379
+ 100% {
380
+ transform: translateX(0%);
381
+ }
382
+ }
383
+ `})]})})]}),k&&(0,g.jsx)(v,{handleCloseModal:()=>{null==A||A(),P(!1)},children:(0,g.jsx)(r.xu,{paddingX:5,marginBottom:5,paddingY:1,children:null==e?void 0:e.map(({isrc:e,thumbnailImageUrl:t,thumbnail_image_url:n,title:i,artist:l})=>(0,g.jsxs)(r.xu,{display:"flex",padding:1,children:[(0,g.jsx)(r.xu,{color:"darkWash",height:60,rounding:7,width:60,children:(0,g.jsx)(r.Ee,{alt:h._('Image of album art', 'mWeb.closeup.musicAttibutionModal.albumArt', 'Alt text for image of album art for associated song'),color:"darkWash",naturalWidth:1,naturalHeight:1,src:t||n||""})}),(0,g.jsxs)(r.xu,{display:"flex",direction:"column",justifyContent:"center",paddingX:2,children:[(0,g.jsx)(r.xv,{weight:"bold",children:i}),(0,g.jsx)(r.xv,{size:"100",children:l})]})]},e))})})]})})};function b({activePageIndex:e,graphqlRef:t,...n}){var i;let l;let r=(0,a.useFragment)(y,t),o=null==r?void 0:r.storyPinData,s=e||0===e?null==o?void 0:null===(i=o.pages)||void 0===i?void 0:i[e]:null,d=!1;return o&&s?(d=s.shouldMute||!1,l=s.musicAttributions):(d=(null==r?void 0:r.shouldMute)||!1,l=null==r?void 0:r.musicAttributions),(0,g.jsx)(f,{...n,musicAttributions:l,shouldMute:d,graphqlRef:null})}function x({activePageIndex:e,pinId:t,...n}){var i;let l;let a=(0,h.S6)()(t),r=null==a?void 0:a.story_pin_data,o=e||0===e?null==r?void 0:null===(i=r.pages)||void 0===i?void 0:i[e]:null,s=!1;return r&&o?(s=o.should_mute||!1,l=o.music_attributions):(s=(null==a?void 0:a.should_mute)||!1,l=null==a?void 0:a.music_attributions),(0,g.jsx)(f,{...n,musicAttributions:l,shouldMute:s,graphqlRef:null})}function k({graphqlRef:e,...t}){return e?(0,g.jsx)(b,{graphqlRef:e,...t}):(0,g.jsx)(x,{graphqlRef:null,...t})}},885523:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(667294),l=n(883119),a=n(898781),r=n(458882),o=n(50286),s=n(19121),d=n(252417),u=n(785893);let c=(0,i.lazy)(()=>Promise.all([n.e(44970),n.e(19594)]).then(n.bind(n,657742))),p=({pinId:e,iconColor:t,iconSize:n,clientTrackingParams:p,viewType:m,viewParameter:h,component:_})=>{var g;let y=(0,a.ZP)(),{isAuth:v}=(0,s.Z)(),{hideUnauthSharingModals:f}=null!==(g=(0,r.l)())&&void 0!==g?g:Object.freeze({}),[b,x]=(0,i.useState)(!1),k=(0,o.HG)(),P=()=>x(!0),S=()=>{x(!1),v||null==f||f()};return(0,u.jsxs)(i.Fragment,{children:[k?(0,u.jsx)(l.hU,{accessibilityLabel:y._('Share Pin', 'closeup.storyPin.actionBar.sharePin', 'Share pin entry point'),icon:"share",size:n||"lg",iconColor:t||"white",onClick:b?S:P}):(0,u.jsx)(l.iP,{accessibilityLabel:y._('share', 'closeup.storyPin.actionBar.shareButton', 'Share entry point'),onTap:P,children:(0,u.jsx)(l.xu,{"data-test-id":"share-button-container",minHeight:d.gx,minWidth:d.CR,dangerouslySetInlineStyle:{__style:{WebkitMaskImage:'url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTguMzI2MjEgNi4zODY2N0w3LjM0NjIxIDcuMzY4MzNDNi42OTYyMSA4LjAxOTE3IDUuNjQxMjEgOC4wMjA4MyA0Ljk4ODcxIDcuMzdDNC4zMzc4NyA2LjcyIDQuMzM3MDQgNS42NjUgNC45ODcwNCA1LjAxMzMzTDkuOTkwMzcgMEwxNS4wMTEyIDUuMDEwODNDMTUuNjYyIDUuNjYxNjcgMTUuNjYyOSA2LjcxNjY3IDE1LjAxMjkgNy4zNjgzM0MxNC4zNjI5IDguMDE5MTcgMTMuMzA3OSA4LjAyMDgzIDEyLjY1NjIgNy4zN0wxMS42NTk1IDYuMzc1ODNWMTEuNTI0MkMxMS42NTk1IDEyLjQ0NDIgMTAuOTEyOSAxMy4xOTA4IDkuOTkyODcgMTMuMTkwOEM5LjA3MjA0IDEzLjE5MDggOC4zMjYyMSAxMi40NDQyIDguMzI2MjEgMTEuNTI0MlY2LjM4NjY3WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTE1LjgzMzQgMTMuMzMzNUMxNS44MzM0IDEyLjQxMzUgMTYuNTggMTEuNjY2OCAxNy41IDExLjY2NjhDMTguNDIgMTEuNjY2OCAxOS4xNjY3IDEyLjQxMzUgMTkuMTY2NyAxMy4zMzM1VjE4LjMzMzVDMTkuMTY2NyAxOS4yNTM1IDE4LjQyIDIwLjAwMDIgMTcuNSAyMC4wMDAySDIuNTAwMDRDMS41ODAwNCAyMC4wMDAyIDAuODMzMzc0IDE5LjI1MzUgMC44MzMzNzQgMTguMzMzNVYxMy4zMzM1QzAuODMzMzc0IDEyLjQxMzUgMS41ODAwNCAxMS42NjY4IDIuNTAwMDQgMTEuNjY2OEMzLjQyMDA0IDExLjY2NjggNC4xNjY3MSAxMi40MTM1IDQuMTY2NzEgMTMuMzMzNVYxNi42NjY4SDE1LjgzMzRWMTMuMzMzNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=")',WebkitMaskRepeat:"no-repeat",WebkitMaskPosition:"center",background:"white"}}})}),(0,u.jsx)(c,{objectType:1,isOpen:b,onDismiss:S,objectId:e,hideContactsSuggestions:!v,clientTrackingParams:p,element:10942,viewType:m,viewParameter:h,component:_})]})}},509886:(e,t,n)=>{"use strict";n.d(t,{Z:()=>eN});var i,l,a,r,o,s,d,u,c,p,m,h=n(667294),_=n(167912),g=n(883119),y=n(386352),v=n(241244),f=n(780280),b=n(224496),x=n(50286),k=n(252417),P=n(616550),S=n(237056),w=n(541776),A=n(112690),T=n(356997),I=n(898781),E=n(349700),C=n(784590),D=n(667679),j=n(148028),F=n(19121),R=n(896628),L=n(431389),z=n(350118),O=n(785893);let M=void 0!==i?i:i=n(264074);function N({elementType:e,onFlyoutClose:t,onFlyoutOpen:n,pinId:i,tooltipElementType:l,videoProgressInfo:a,title:r,hasPrice:o,imageUrl:s,productCurrentPrice:d,pinCreator:u,blockStyleRotation:c,blockEndTime:p,blockErrorMessage:m,blockInteractiveStickerType:_,blockIsRemoved:y,blockIsValid:v,blockStartTime:f,blockTypeIdentifier:b,stickerDataQuestionCommentId:x,stickerDataBoardId:z,blockUserImageUrl:M,blockUserFullName:N,blockUserUsername:B}){let Z=(0,I.ZP)(),K=(0,F.Z)(),[U,H]=(0,h.useState)(!1),V=(0,h.useRef)(),G=(0,P.useHistory)(),$=(0,A.Z)(),W=(0,S.Z)(),q=(0,D.Z)(),Y=v&&5===_&&!!z,X=(0,C.Z)(Y?{name:"BoardResource",options:{field_set_key:"tagged_board_preview",board_id:z}}:null),Q=v&&7===_&&!!x,J=(0,L.Z)(),{is_collaborative:ee,pin_count:et,url:en}=X.data||{},ei=null;b===k.h8.PRODUCT_STICKER?ei=i?`/pin/${i}/`:"/":b===k.h8.MENTION_STICKER?ei=`/${null!=B?B:""}/`:Y&&(ei=X.isLoaded?`${en}`:null);let{currentTime:el}=a||{},ea=!(0,j.Z)({currentTime:el,endTime:p,startTime:f}),[er,eo]=(0,h.useState)(!1);(0,h.useEffect)(()=>{ea&&H(!1)},[ea]);let es=()=>{$({event_type:123,view_type:3,view_parameter:157,component:228,element:l}),H(!1),t&&t()},ed=e=>{$({event_type:120,view_type:3,view_parameter:157,component:228,element:l,aux_data:{error_message:!v&&m?m:null}}),H(!0),n&&n(),e.preventDefault(),e.stopPropagation()},eu=()=>v?Y?X.isLoaded?(0,O.jsxs)(h.Fragment,{children:[(0,O.jsxs)(g.xu,{flex:"grow",paddingX:2,children:[(0,O.jsx)(g.xv,{weight:"bold",size:"100",lineClamp:1,children:ee?Z._('Explore this group board', 'closeup.StoryPin.stickerBlock.boardSticker.clickLabel', 'Label explaining click action when group board tag flyout showing'):Z._('Explore this board', 'closeup.StoryPin.stickerBlock.boardSticker.clickLabel', 'Label explaining click action when board tag flyout showing')}),(0,O.jsx)(g.xv,{size:"100",children:(!!et||0===et)&&(0,E.nk)(Z.ngettext('{{ pinCount }} Pin', '{{ pinCount }} Pins', et, 'closeup.StoryPin.stickerBlock.boardSticker.boardLabel', 'Caption when board tag flyout that showing number of Pins on board'),{pinCount:et})})]}),(0,O.jsx)(g.xu,{flex:"none",children:(0,O.jsx)(g.Sj,{iconColor:"darkGray",bgColor:"transparent",size:"xs",icon:"arrow-forward"})})]}):(0,O.jsx)(h.Fragment,{children:(0,O.jsxs)(g.xu,{alignItems:"center",direction:"row",display:"flex",flex:"grow",paddingY:2,children:[(0,O.jsx)(g.xu,{marginEnd:1,paddingX:2,children:(0,O.jsx)(g.xv,{color:"subtle",size:"100",lineClamp:1,children:Z._('Loading board...', 'closeup.StoryPin.stickerBlock.boardSticker.loadingText', 'Label explaining board sticker still loading')})}),(0,O.jsx)(g.$j,{accessibilityLabel:Z._('Board is loading', 'closeup.StoryPin.stickerBlock.boardSticker.loadingSpinnerText', 'Accessibility label for board loading spinner'),size:"sm",show:!0})]})}):(0,O.jsx)(g.xu,{paddingX:2,paddingY:2,children:(0,O.jsx)(g.xv,{color:"subtle",lineClamp:1,size:"200",weight:"bold",children:Z._('Sticker not supported yet', 'closeup.StoryPin.stickerBlock.genericStickerError', 'Label explaining this sticker has not been implemented yet')})}):(0,O.jsx)(g.xu,{paddingX:2,paddingY:2,children:(0,O.jsx)(g.xv,{color:"subtle",lineClamp:1,size:"100",weight:"bold",children:m})}),ec=()=>{let e=null;switch(b){case k.h8.PRODUCT_STICKER:e=(0,O.jsxs)(h.Fragment,{children:[(0,O.jsx)(g.xu,{flex:"none",children:(0,O.jsx)(g.zd,{wash:!0,height:40,width:40,rounding:3,children:(0,O.jsx)(g.Ee,{alt:"",color:"lightGray",fit:"cover",naturalHeight:1,naturalWidth:1,src:s||""})})}),(0,O.jsx)(g.xu,{flex:"grow",paddingX:2,children:o?(0,O.jsxs)(g.kC,{alignContent:"center",alignItems:"stretch",direction:"column",flex:"grow",justifyContent:"center",children:[(0,O.jsx)(g.xv,{size:"100",lineClamp:1,weight:"bold",color:"shopping",children:d}),(0,O.jsx)(g.xv,{size:"100",lineClamp:1,children:r})]}):(0,O.jsx)(g.xv,{size:"100",lineClamp:1,children:r})}),(0,O.jsx)(g.xu,{flex:"none",children:(0,O.jsx)(g.Sj,{iconColor:"darkGray",bgColor:"transparent",size:"xs",icon:"arrow-forward"})})]});break;case k.h8.MENTION_STICKER:e=(0,O.jsxs)(h.Fragment,{children:[(0,O.jsx)(g.xu,{flex:"none",children:(0,O.jsx)(T.qE,{size:"sm",name:null!=N?N:"",src:null!=M?M:void 0})}),(0,O.jsx)(g.xu,{flex:"grow",paddingX:2,children:(0,O.jsx)(g.xv,{weight:"bold",size:"200",lineClamp:1,children:N})}),(0,O.jsx)(g.xu,{flex:"none",children:(0,O.jsx)(g.Sj,{iconColor:"darkGray",bgColor:"transparent",size:"xs",icon:"arrow-forward"})})]});break;case k.h8.GENERIC_STICKER:e=eu();break;case k.h8.VTO_MAKEUP_STICKER:e=(0,O.jsx)(g.xv,{weight:"bold",size:"300",children:Z._('Try this sticker on your phone!', 'closeup.storyPin.vtoMakeupSticker', 'Caption when @vitural-try-on-makeup tag is tapped for Web')})}let t=ee?Z._('Explore this group board', 'closeup.StoryPin.stickerBlock.boardSticker.clickLabel', 'Label explaining click action when group board tag flyout showing'):Z._('Explore this board', 'closeup.StoryPin.stickerBlock.boardSticker.clickLabel', 'Label explaining click action when board tag flyout showing');return(0,O.jsx)(g.J2,{accessibilityLabel:t,anchor:V.current,idealDirection:"up",onDismiss:es,positionRelativeToAnchor:!1,_deprecatedShowCaret:!0,size:y?"flexible":"sm",children:(0,O.jsx)(g.xu,{alignItems:"center",display:"flex",justifyContent:"center",padding:b===k.h8.PRODUCT_STICKER?1:3,width:"100%",children:y?(0,O.jsx)(g.xv,{color:"subtle",weight:"bold",size:"200",children:Z._('Tag removed!', 'closeup.storyPin.stickerBlock', 'Caption when the tag is removed')}):e})})},ep=async(e,t,n)=>(i&&x&&(await J({force:n,parentId:x,pinId:i,text:e,tags:JSON.stringify(t),isReply:!0}),eo(!1)),!0);return(0,O.jsxs)(g.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{transform:`rotate(${null!=c?c:0}deg)`,touchAction:"none"}},"data-test-id":(b||"")+"_container",display:"flex",left:!0,position:"absolute",ref:V,right:!0,rounding:2,top:!0,zIndex:k.B5,children:[(0,O.jsx)(g.iP,{onTap:U?es:({event:t})=>{ea||($({view_type:3,view_parameter:157,component:228,element:e,event_type:102}),Q?K.isAuth?eo(!0):q({reason:"ACTION_REQUIRES_LOGIN_OR_SIGNUP",attributionLabel:"tap_unauth_idea_pin_question_sticker",desktopOptions:{modalType:"login"}}):ed(t))},rounding:"pill",disabled:ea}),U&&(0,O.jsx)(g.mh,{zIndex:k.tD,children:y?ec():(0,O.jsx)(g.iP,{onTap:({event:e})=>{$({view_type:3,view_parameter:157,component:228,element:l,event_type:102}),e.preventDefault(),e.stopPropagation(),ei?G.push(ei):es()},fullWidth:!0,children:ec()})}),Q&&(0,O.jsx)(R.Z,{commentWarningModalState:w.A9.NONE,dismissCommentWarningModal:()=>{},heading:(0,E.nk)(Z._('Reply to {{ creator }}', 'ideapin.questionsticker.replymodal.heading', 'Replying to creator Q&A'),{creator:u}).join(" "),initialMentions:[],isModalOpen:er,onDismiss:()=>{eo(!1)},onPost:ep,placeholder:W?Z._('Your reply will show up as a public comment on this Pin', 'pin.questionsticker.replymodal.placeholder', 'Placeholder informing that Q&A reply will be a public comment'):Z._('Your reply will show up as a public comment on this Idea Pin', 'ideapin.questionsticker.replymodal.placeholder', 'Placeholder informing that Q&A reply will be a public comment')})]})}function B({graphqlRef:e,...t}){var n,i,l;let a=(0,_.useFragment)(M,e),{gridTitle:r,description:o,richSummary:s}=a||Object.freeze({}),d=a.imageSpec_236x,{displayName:u,products:c}=s||{},p=(null==c?void 0:c[0].offerSummary)||Object.freeze({}),{price:m,maxPrice:h}=p||{},g=(null===(n=a.nativeCreator)||void 0===n?void 0:n.firstName)||(null===(i=a.nativeCreator)||void 0===i?void 0:i.fullName)||(null===(l=a.nativeCreator)||void 0===l?void 0:l.username);return(0,O.jsx)(N,{...t,hasPrice:!!p&&(!!m||!!h),title:u||r||o,productCurrentPrice:m,imageUrl:null==d?void 0:d.url,pinCreator:g,pinId:a.entityId})}function Z({blockPinId:e,pinId:t,...n}){var i,l,a;let r=t||e,o=(0,z.S6)()(null!=r?r:""),{grid_title:s,description:d,images:u,rich_summary:c}=o||{},p=(u||{})["236x"]||{},{display_name:m,products:h}=c||{},_=((h||[])[0]||{}).offer_summary||{},{price:g,max_price:y}=_||{},v=(null==o?void 0:null===(i=o.native_creator)||void 0===i?void 0:i.first_name)||(null==o?void 0:null===(l=o.native_creator)||void 0===l?void 0:l.full_name)||(null==o?void 0:null===(a=o.native_creator)||void 0===a?void 0:a.username);return(0,O.jsx)(N,{...n,hasPrice:!!_&&(!!g||!!y),title:m||s||d,productCurrentPrice:g,imageUrl:p.url,pinCreator:v,pinId:r})}function K({graphqlRef:e,blockPinId:t,...n}){return e?(0,O.jsx)(B,{graphqlRef:e,...n}):(0,O.jsx)(Z,{blockPinId:t,...n})}let U=void 0!==l?l:l=n(754912),H=void 0!==a?a:a=n(500154);function V({graphqlRef:e,rootPingraphqlRef:t,...n}){var i,l,a;let r=(0,_.useFragment)(H,t),o=(0,_.useFragment)(U,e);return(0,O.jsx)(K,{...n,blockStyleRotation:null===(i=o.blockStyle)||void 0===i?void 0:i.rotation,blockEndTime:o.endTime,blockErrorMessage:o.errorMessage,blockInteractiveStickerType:o.interactiveStickerType,blockIsRemoved:o.isRemoved,blockIsValid:o.isValid,blockStartTime:o.startTime,blockTypeIdentifier:k.h8.GENERIC_STICKER,stickerDataQuestionCommentId:null===(l=o.stickerData)||void 0===l?void 0:l.questionCommentId,stickerDataBoardId:null===(a=o.stickerData)||void 0===a?void 0:a.boardId,blockUserImageUrl:null,blockUserFullName:null,blockUserUsername:null,graphqlRef:r,blockPinId:null})}function G({graphqlRef:e,...t}){var n,i,l;let a=(0,_.useFragment)(U,e);return(0,O.jsx)(K,{...t,blockStyleRotation:null===(n=a.blockStyle)||void 0===n?void 0:n.rotation,blockEndTime:a.endTime,blockErrorMessage:a.errorMessage,blockInteractiveStickerType:a.interactiveStickerType,blockIsRemoved:a.isRemoved,blockIsValid:a.isValid,blockStartTime:a.startTime,blockTypeIdentifier:k.h8.GENERIC_STICKER,stickerDataQuestionCommentId:null===(i=a.stickerData)||void 0===i?void 0:i.questionCommentId,stickerDataBoardId:null===(l=a.stickerData)||void 0===l?void 0:l.boardId,blockUserImageUrl:null,blockUserFullName:null,blockUserUsername:null,graphqlRef:null,blockPinId:null})}function $({block:e,...t}){let{block_style:{rotation:n=0}={},end_time:i,error_message:l,interactive_sticker_type:a=null,is_removed:r,is_valid:o,start_time:s,sticker_data:d,type:u}=e,{board_id:c,question_comment_id:p}=d||{};return(0,O.jsx)(K,{...t,blockStyleRotation:n,blockEndTime:i,blockErrorMessage:l,blockInteractiveStickerType:a,blockIsRemoved:r,blockIsValid:o,blockStartTime:s,blockTypeIdentifier:u,stickerDataQuestionCommentId:p,stickerDataBoardId:c,blockUserImageUrl:null,blockUserFullName:null,blockUserUsername:null,graphqlRef:null,blockPinId:null})}function W({block:e,resourceBlock:t,rootPingraphqlRef:n,...i}){return e&&n?(0,O.jsx)(V,{graphqlRef:e,rootPingraphqlRef:n,...i}):e&&!n?(0,O.jsx)(G,{graphqlRef:e,...i}):t?(0,O.jsx)($,{block:t,...i}):null}var q=n(490444),Y=n(889760);let X=void 0!==r?r:r=n(417103);function Q({blockText:e,styleAlignment:t,styleFontSize:n,styleHexColor:i,styleHighlightColor:l,styleVerticalAlignment:a,fontName:r,fontLetterSpacing:o,fontLineHeight:s,fontUrl:d,fontDefaultSize:u}){return(0,Y.m)({hasFont:!0,letterSpacing:o,lineHeight:s,name:r,url:d}),(0,O.jsx)("h1",{style:(0,q.RK)({alignment:t,verticalAlignment:null!=a?a:k.Wz.vertical_alignment}),children:(0,O.jsx)("span",{style:(0,q.BN)({fontSize:n||u,hexColor:null!=i?i:k.Wz.hex_color,letterSpacing:o,lineHeight:s,name:r,highlightColor:l}),children:e})})}function J({graphqlRef:e}){var t,n,i,l,a,r,o,s,d,u,c,p,m,h,g,y,v,f,b,x,P,S,w,A,T;let I=(0,_.useFragment)(X,e);return(0,O.jsx)(Q,{blockText:I.text,styleAlignment:null!==(t=null===(n=I.style)||void 0===n?void 0:n.alignment)&&void 0!==t?t:k.Wz.alignment,styleFontSize:null!==(i=null===(l=I.style)||void 0===l?void 0:l.fontSize)&&void 0!==i?i:k.Wz.font_size,styleHexColor:null!==(a=null===(r=I.style)||void 0===r?void 0:r.hexColor)&&void 0!==a?a:k.Wz.hex_color,styleHighlightColor:null!==(o=null===(s=I.style)||void 0===s?void 0:s.highlightColor)&&void 0!==o?o:k.Wz.highlight_color,styleVerticalAlignment:null!==(d=null===(u=I.style)||void 0===u?void 0:u.verticalAlignment)&&void 0!==d?d:k.Wz.vertical_alignment,fontName:null!==(c=null===(p=I.style)||void 0===p?void 0:null===(m=p.font)||void 0===m?void 0:m.name)&&void 0!==c?c:k.Wz.font.name,fontLetterSpacing:null!==(h=null===(g=I.style)||void 0===g?void 0:null===(y=g.font)||void 0===y?void 0:y.letterSpacing)&&void 0!==h?h:k.Wz.font.letter_spacing,fontLineHeight:null!==(v=null===(f=I.style)||void 0===f?void 0:null===(b=f.font)||void 0===b?void 0:b.lineHeight)&&void 0!==v?v:k.Wz.font.line_height,fontUrl:null!==(x=null===(P=I.style)||void 0===P?void 0:null===(S=P.font)||void 0===S?void 0:S.url)&&void 0!==x?x:k.Wz.font.url,fontDefaultSize:null!==(w=null===(A=I.style)||void 0===A?void 0:null===(T=A.font)||void 0===T?void 0:T.defaultSize)&&void 0!==w?w:k.Wz.font.default_size})}function ee({block:e}){var t,n,i,l,a,r,o,s,d,u,c,p,m,h,_,g,y,v,f,b,x,P,S,w,A;return(0,O.jsx)(Q,{blockText:e.text,styleAlignment:null!==(t=null===(n=e.style)||void 0===n?void 0:n.alignment)&&void 0!==t?t:k.Wz.alignment,styleFontSize:null!==(i=null===(l=e.style)||void 0===l?void 0:l.font_size)&&void 0!==i?i:k.Wz.font_size,styleHexColor:null!==(a=null===(r=e.style)||void 0===r?void 0:r.hex_color)&&void 0!==a?a:k.Wz.hex_color,styleHighlightColor:null!==(o=null===(s=e.style)||void 0===s?void 0:s.highlight_color)&&void 0!==o?o:k.Wz.highlight_color,styleVerticalAlignment:null!==(d=null===(u=e.style)||void 0===u?void 0:u.vertical_alignment)&&void 0!==d?d:k.Wz.vertical_alignment,fontName:null!==(c=null===(p=e.style)||void 0===p?void 0:null===(m=p.font)||void 0===m?void 0:m.name)&&void 0!==c?c:k.Wz.font.name,fontLetterSpacing:null!==(h=null===(_=e.style)||void 0===_?void 0:null===(g=_.font)||void 0===g?void 0:g.letter_spacing)&&void 0!==h?h:k.Wz.font.letter_spacing,fontLineHeight:null!==(y=null===(v=e.style)||void 0===v?void 0:null===(f=v.font)||void 0===f?void 0:f.line_height)&&void 0!==y?y:k.Wz.font.line_height,fontUrl:null!==(b=null===(x=e.style)||void 0===x?void 0:null===(P=x.font)||void 0===P?void 0:P.url)&&void 0!==b?b:k.Wz.font.url,fontDefaultSize:null!==(S=null===(w=e.style)||void 0===w?void 0:null===(A=w.font)||void 0===A?void 0:A.default_size)&&void 0!==S?S:k.Wz.font.default_size})}function et({block:e,resourceBlock:t}){return e?(0,O.jsx)(J,{graphqlRef:e}):t?(0,O.jsx)(ee,{block:t}):null}let en=void 0!==o?o:o=n(331577);function ei({imageHeight:e,imageWidth:t,imageUrl:n}){let i=(0,I.ZP)();return(0,O.jsx)(g.xu,{flex:"grow",children:(0,O.jsx)(g.Ee,{alt:i._('Story pin image', 'mweb.closeup.storypin.renderer', 'Alt text for story pin image'),color:"transparent",naturalHeight:null!=e?e:1,naturalWidth:null!=t?t:1,src:null!=n?n:""})})}function el({graphqlRef:e}){let t=(0,_.useFragment)(en,e);return t.imageSpec_750x?(0,O.jsx)(ei,{imageHeight:t.imageSpec_750x.height,imageWidth:t.imageSpec_750x.width,imageUrl:t.imageSpec_750x.url}):null}function ea({block:e}){let t=e.image;if(!t)return null;let{images:n={}}=t,i=n["750x"];return(0,O.jsx)(ei,{imageHeight:null==i?void 0:i.height,imageWidth:null==i?void 0:i.width,imageUrl:null==i?void 0:i.url})}function er({block:e,resourceBlock:t}){return e?(0,O.jsx)(el,{graphqlRef:e}):t?(0,O.jsx)(ea,{block:t}):null}let eo=void 0!==s?s:s=n(172665);function es({graphqlRef:e,...t}){var n,i,l,a;let r=(0,_.useFragment)(eo,e);return(0,O.jsx)(K,{...t,blockStyleRotation:null===(n=r.blockStyle)||void 0===n?void 0:n.rotation,blockEndTime:r.endTime,blockErrorMessage:null,blockInteractiveStickerType:null,blockIsRemoved:r.isRemoved,blockIsValid:null,blockStartTime:r.startTime,blockTypeIdentifier:k.h8.MENTION_STICKER,stickerDataQuestionCommentId:null,stickerDataBoardId:null,blockUserImageUrl:null===(i=r.user)||void 0===i?void 0:i.imageSmallUrl,blockUserFullName:null===(l=r.user)||void 0===l?void 0:l.fullName,blockUserUsername:null===(a=r.user)||void 0===a?void 0:a.username,graphqlRef:null,blockPinId:null})}function ed({block:e,...t}){var n;let{block_style:{rotation:i}={},end_time:l,is_removed:a,start_time:r,type:o}=e,{image_small_url:s,full_name:d,username:u}=null!==(n=e.user)&&void 0!==n?n:{};return(0,O.jsx)(K,{...t,blockStyleRotation:i,blockEndTime:l,blockErrorMessage:null,blockInteractiveStickerType:null,blockIsRemoved:a,blockIsValid:null,blockStartTime:r,blockTypeIdentifier:o,stickerDataQuestionCommentId:null,stickerDataBoardId:null,blockUserImageUrl:s,blockUserFullName:d,blockUserUsername:u,graphqlRef:null,blockPinId:null})}function eu({block:e,resourceBlock:t,...n}){return e?(0,O.jsx)(es,{graphqlRef:e,...n}):t?(0,O.jsx)(ed,{block:t,...n}):null}let ec=void 0!==d?d:d=n(109997);function ep({blockText:e,styleAlignment:t,styleFontSize:n,styleHexColor:i,styleHighlightColor:l,styleVerticalAlignment:a,fontName:r,fontLetterSpacing:o,fontLineHeight:s,fontUrl:d,fontDefaultSize:u}){(0,Y.m)({hasFont:!0,letterSpacing:o,lineHeight:s,name:r,url:d});let c=(null!=e?e:"").split(/\r?\n/g);return(0,O.jsx)("div",{style:(0,q.RK)({alignment:t,verticalAlignment:null!=a?a:k.Cc.vertical_alignment}),children:(0,O.jsx)("p",{style:(0,q.BN)({fontSize:n||u,hexColor:null!=i?i:k.Cc.hex_color,letterSpacing:o,lineHeight:s,name:r}),children:c.map((t,n)=>(0,O.jsx)("span",{style:(0,q.xm)({highlightColor:t.trim().length?l:null}),children:n===c.length-1?t:(0,O.jsxs)(h.Fragment,{children:[t," ",(0,O.jsx)("br",{})]})},`paragraphLine-${n}-${(null!=e?e:"").substr(0,9)}`))})})}function em({graphqlRef:e}){var t,n,i,l,a,r,o,s,d,u,c,p,m,h,g,y,v,f,b,x,P,S,w,A,T;let I=(0,_.useFragment)(ec,e);return(0,O.jsx)(ep,{blockText:I.text,styleAlignment:null!==(t=null===(n=I.style)||void 0===n?void 0:n.alignment)&&void 0!==t?t:k.Cc.alignment,styleFontSize:null!==(i=null===(l=I.style)||void 0===l?void 0:l.fontSize)&&void 0!==i?i:k.Cc.font_size,styleHexColor:null!==(a=null===(r=I.style)||void 0===r?void 0:r.hexColor)&&void 0!==a?a:k.Cc.hex_color,styleHighlightColor:null!==(o=null===(s=I.style)||void 0===s?void 0:s.highlightColor)&&void 0!==o?o:k.Cc.highlight_color,styleVerticalAlignment:null!==(d=null===(u=I.style)||void 0===u?void 0:u.verticalAlignment)&&void 0!==d?d:k.Cc.vertical_alignment,fontName:null!==(c=null===(p=I.style)||void 0===p?void 0:null===(m=p.font)||void 0===m?void 0:m.name)&&void 0!==c?c:k.Cc.font.name,fontLetterSpacing:null!==(h=null===(g=I.style)||void 0===g?void 0:null===(y=g.font)||void 0===y?void 0:y.letterSpacing)&&void 0!==h?h:k.Cc.font.letter_spacing,fontLineHeight:null!==(v=null===(f=I.style)||void 0===f?void 0:null===(b=f.font)||void 0===b?void 0:b.lineHeight)&&void 0!==v?v:k.Cc.font.line_height,fontUrl:null!==(x=null===(P=I.style)||void 0===P?void 0:null===(S=P.font)||void 0===S?void 0:S.url)&&void 0!==x?x:k.Cc.font.url,fontDefaultSize:null!==(w=null===(A=I.style)||void 0===A?void 0:null===(T=A.font)||void 0===T?void 0:T.defaultSize)&&void 0!==w?w:k.Cc.font.default_size})}function eh({block:e}){var t,n,i,l,a,r,o,s,d,u,c,p,m,h,_,g,y,v,f,b,x,P,S,w,A;return(0,O.jsx)(ep,{blockText:e.text,styleAlignment:null!==(t=null===(n=e.style)||void 0===n?void 0:n.alignment)&&void 0!==t?t:k.Cc.alignment,styleFontSize:null!==(i=null===(l=e.style)||void 0===l?void 0:l.font_size)&&void 0!==i?i:k.Cc.font_size,styleHexColor:null!==(a=null===(r=e.style)||void 0===r?void 0:r.hex_color)&&void 0!==a?a:k.Cc.hex_color,styleHighlightColor:null!==(o=null===(s=e.style)||void 0===s?void 0:s.highlight_color)&&void 0!==o?o:k.Cc.highlight_color,styleVerticalAlignment:null!==(d=null===(u=e.style)||void 0===u?void 0:u.vertical_alignment)&&void 0!==d?d:k.Cc.vertical_alignment,fontName:null!==(c=null===(p=e.style)||void 0===p?void 0:null===(m=p.font)||void 0===m?void 0:m.name)&&void 0!==c?c:k.Cc.font.name,fontLetterSpacing:null!==(h=null===(_=e.style)||void 0===_?void 0:null===(g=_.font)||void 0===g?void 0:g.letter_spacing)&&void 0!==h?h:k.Cc.font.letter_spacing,fontLineHeight:null!==(y=null===(v=e.style)||void 0===v?void 0:null===(f=v.font)||void 0===f?void 0:f.line_height)&&void 0!==y?y:k.Cc.font.line_height,fontUrl:null!==(b=null===(x=e.style)||void 0===x?void 0:null===(P=x.font)||void 0===P?void 0:P.url)&&void 0!==b?b:k.Cc.font.url,fontDefaultSize:null!==(S=null===(w=e.style)||void 0===w?void 0:null===(A=w.font)||void 0===A?void 0:A.default_size)&&void 0!==S?S:k.Cc.font.default_size})}function e_({block:e,resourceBlock:t}){return e?(0,O.jsx)(em,{graphqlRef:e}):t?(0,O.jsx)(eh,{block:t}):null}let eg=void 0!==u?u:u=n(578632);function ey({graphqlRef:e,...t}){var n;let i=(0,_.useFragment)(eg,e);return(0,O.jsx)(K,{...t,blockStyleRotation:null===(n=i.blockStyle)||void 0===n?void 0:n.rotation,blockEndTime:i.endTime,blockErrorMessage:null,blockInteractiveStickerType:null,blockIsRemoved:i.isRemoved,blockIsValid:null,blockStartTime:i.startTime,blockTypeIdentifier:k.h8.PRODUCT_STICKER,stickerDataQuestionCommentId:null,stickerDataBoardId:null,blockUserImageUrl:null,blockUserFullName:null,blockUserUsername:null,graphqlRef:null,blockPinId:i.pinId})}function ev({block:e,...t}){let{block_style:{rotation:n}={},end_time:i,is_removed:l,start_time:a,type:r}=e;return(0,O.jsx)(K,{...t,blockStyleRotation:n,blockEndTime:i,blockErrorMessage:null,blockInteractiveStickerType:null,blockIsRemoved:l,blockIsValid:null,blockStartTime:a,blockTypeIdentifier:r,stickerDataQuestionCommentId:null,stickerDataBoardId:null,blockUserImageUrl:null,blockUserFullName:null,blockUserUsername:null,graphqlRef:null,blockPinId:e.pin_id})}function ef({block:e,resourceBlock:t,...n}){return e?(0,O.jsx)(ey,{graphqlRef:e,...n}):t?(0,O.jsx)(ev,{block:t,...n}):null}var eb=n(858416),ex=n(560927),ek=n(994320),eP=n(539766);let eS=void 0!==c?c:c=n(458504);function ew({activeStreamItemIndex:e,hasPinPosterImage:t,isActive:n,isSinglePage:i,muteVideos:l,onVideoEnded:a,onVideoTimeChange:r,pinAspectRatio:o,blockStyleWidth:s,blockStyleHeight:d,blockVideo:u,pinId:c,pinPosterImage:p}){var m;let _=function(){let e=(0,x.HG)(),[t,n]=(0,h.useState)(b.ap);return(0,h.useEffect)(()=>{"undefined"!=typeof window&&n(e?b.ap:window.innerWidth/window.innerHeight)},[e]),t}(),y=(0,f.B)(),{isBot:v}=y,{isSeekingIdeaPin:k,seekTimes:P}=(0,eb.Hx)(),{captionsEnabled:S}=(0,ek.r)(),{clearSeekTime:w}=(0,eb.RC)(),A=P&&P[c]||0,T=(0,h.useRef)();(0,ex.Z)(e=>{var t,n;e&&!(null!==(t=T.current)&&void 0!==t&&t.paused)&&(null===(n=T.current)||void 0===n||n.pause())},T.current);let I=y.locale.toLowerCase(),E=null!==(m=(null==u?void 0:u.captionsUrls)||(null==u?void 0:u.captions_urls))&&void 0!==m?m:{},C=I&&E[I]||Object.values(E)[0]||"";if(!u)return null;let{width:D,height:j,thumbnail:F,url:R}=u,L=s&&d?s/d*_:_,z=(null!=D?D:1)/(null!=j?j:1),M={height:"100%",left:"0%",top:"0%",width:"100%"};if(L<z){let e=100*z/L;M.width=v?"100%":`${e}%`,M.left=v?"":`-${(e-100)/2}%`}else if(L>z){let e=100*L/z;M.height=`${e}%`,M.top=`-${(e-100)/2}%`}let N=(0,O.jsx)(eP.Z,{setVideoRef:e=>{T.current=e},activeStreamItemIndex:e,aspectRatio:(null!=D?D:1)/(null!=j?j:1),poster:t&&p||(null!=F?F:void 0),src:null!=R?R:"",captionsEnabled:S,captions:String(C)||"",playing:!k&&n,volume:l?0:1,onEnded:n?a:()=>{},onTimeChange:({time:e})=>{if(r&&"number"==typeof u.duration&&u.duration>0&&!k&&n){let t=u.duration/1e3;r({currentTime:e,duration:t,pinId:c})}},pinId:c,clearSeekTime:w,loop:i,seekTime:A});return o!==b.ap?N:(0,O.jsx)(g.xu,{height:"100%",width:"100%",children:(0,O.jsx)(g.xu,{dangerouslySetInlineStyle:{__style:M},position:"absolute",children:N})})}function eA({graphqlRef:e,...t}){var n,i,l,a;let r=(0,_.useFragment)(eS,e),o=null===(n=r.videoData)||void 0===n?void 0:null===(i=n.videoList)||void 0===i?void 0:i.vHLSV3MOBILE;return(0,O.jsx)(ew,{blockStyleWidth:null===(l=r.blockStyle)||void 0===l?void 0:l.width,blockStyleHeight:null===(a=r.blockStyle)||void 0===a?void 0:a.height,blockVideo:o,...t})}function eT({block:e,...t}){var n,i,l,a;let r=null===(n=e.video)||void 0===n?void 0:null===(i=n.video_list)||void 0===i?void 0:i.V_HLSV3_MOBILE;return(0,O.jsx)(ew,{blockStyleWidth:null===(l=e.block_style)||void 0===l?void 0:l.width,blockStyleHeight:null===(a=e.block_style)||void 0===a?void 0:a.height,blockVideo:r,...t})}function eI({block:e,resourceBlock:t,...n}){return e?(0,O.jsx)(eA,{graphqlRef:e,...n}):t?(0,O.jsx)(eT,{block:t,...n}):null}let eE=void 0!==p?p:p=n(936245);function eC({graphqlRef:e,...t}){var n;let i=(0,_.useFragment)(eE,e);return(0,O.jsx)(K,{...t,blockStyleRotation:null===(n=i.blockStyle)||void 0===n?void 0:n.rotation,blockEndTime:i.endTime,blockErrorMessage:null,blockInteractiveStickerType:null,blockIsRemoved:i.isRemoved,blockIsValid:null,blockStartTime:i.startTime,blockTypeIdentifier:k.h8.VTO_MAKEUP_STICKER,stickerDataQuestionCommentId:null,stickerDataBoardId:null,blockUserImageUrl:null,blockUserFullName:null,blockUserUsername:null,graphqlRef:null,blockPinId:i.pinId})}function eD({block:e,...t}){let{block_style:{rotation:n}={},end_time:i,is_removed:l,start_time:a,type:r}=e;return(0,O.jsx)(K,{...t,blockStyleRotation:n,blockEndTime:i,blockErrorMessage:null,blockInteractiveStickerType:null,blockIsRemoved:l,blockIsValid:null,blockStartTime:a,blockTypeIdentifier:r,stickerDataQuestionCommentId:null,stickerDataBoardId:null,blockUserImageUrl:null,blockUserFullName:null,blockUserUsername:null,graphqlRef:null,blockPinId:e.pin_id})}function ej({block:e,resourceBlock:t,...n}){return e?(0,O.jsx)(eC,{graphqlRef:e,...n}):t?(0,O.jsx)(eD,{block:t,...n}):null}let eF=void 0!==m?m:m=n(276781);function eR(){let[e,t]=(0,h.useState)(0),[n,i]=(0,h.useState)(0);return(0,h.useEffect)(()=>{"undefined"!=typeof window&&(t(window.innerWidth),i(window.innerHeight))},[]),{windowHeight:n,windowWidth:e}}let eL=({children:e,height:t,isParagraphBlock:n,isStaticImageIdeaPin:i,isVideoOrImageBlock:l,left:a,pinAspectRatio:r=b.ap,top:o,width:s})=>{var d;let{windowHeight:u,windowWidth:c}=eR(),p=(0,x.HG)(),{isBot:m}=(0,f.B)(),{defaultWidth:_,scaledHeight:v,scaledLeft:k,scaledWidth:P,scaledBottom:S,scaledTop:w}=(0,h.useMemo)(()=>{let e=c/y._B,n=i||r!==b.ap?r:c/u,l=y._B/n,d=(s||0)*y._B*e/100,p=(t||0)*l*e/100,h=(a||0)*y._B*e/100,_=(o||0)*l*e/100,g=m?c:`${null!=s?s:100}%`;return{defaultWidth:g,scaledHeight:p,scaledLeft:h,scaledWidth:d,scaledBottom:80*e,scaledTop:_}},[t,m,i,a,r,o,s,u,c]);return a=m?0:a,l||p?(0,O.jsx)(g.xu,{height:`${null!=t?t:100}%`,width:_,position:i?"relative":"absolute",display:"flex",dangerouslySetInlineStyle:{__style:{top:`${null!=o?o:0}%`,left:`${null!==(d=a)&&void 0!==d?d:0}%`}},children:e}):(0,O.jsx)(g.xu,{height:`${v}px`,width:m?c:`${P}px`,position:"absolute",display:"flex",dangerouslySetInlineStyle:{__style:{top:n?void 0:`${w}px`,bottom:`${S}px`,left:m?"0px":`${k}px`}},children:e})};function ez({activeStreamItemIndex:e,block:t,isActive:n,isCoverImageWithTitle:i,isSinglePage:l,isStaticImageIdeaPin:a=!1,muteVideos:r,onFlyoutClose:o,onFlyoutOpen:s,onVideoEnded:d,onVideoTimeChange:u,pinAspectRatio:c,pinId:p,videoProgressInfo:m,BoxWrapper:h=eL}){let{block_style:{height:_,width:g,x_coord:y,y_coord:b}={},interactive_sticker_type:x=null}=t,{isBot:P}=(0,f.B)(),{windowWidth:S}=eR();return(0,O.jsxs)(h,{isStaticImageIdeaPin:a,height:_,width:P?S:g,left:y,top:b,pinAspectRatio:c,isVideoOrImageBlock:[k.h8.IMAGE,k.h8.VIDEO].includes(t.type),isParagraphBlock:k.h8.PARAGRAPH===t.type,children:[t.type===k.h8.PARAGRAPH&&(0,O.jsx)(e_,{resourceBlock:t,block:null}),t.type===k.h8.HEADING&&!i&&(0,O.jsx)(et,{resourceBlock:t,block:null}),t.type===k.h8.IMAGE&&(0,O.jsx)(er,{resourceBlock:t,block:null}),t.type===k.h8.VIDEO&&(0,O.jsx)(eI,{activeStreamItemIndex:e,block:null,isActive:n,isSinglePage:l,resourceBlock:t,muteVideos:r,onVideoTimeChange:u,onVideoEnded:d,pinAspectRatio:c,pinId:p}),t.type===k.h8.MENTION_STICKER&&(0,O.jsx)(v.Z,{children:(0,O.jsx)(eu,{block:null,resourceBlock:t,pinId:null,onFlyoutClose:o,onFlyoutOpen:s,elementType:12120,tooltipElementType:12121,videoProgressInfo:m})}),t.type===k.h8.GENERIC_STICKER&&(5===x?(0,O.jsx)(W,{block:null,resourceBlock:t,pinId:null,elementType:12827,onFlyoutClose:o,onFlyoutOpen:s,tooltipElementType:12828,videoProgressInfo:m,rootPingraphqlRef:null}):(0,O.jsx)(W,{block:null,resourceBlock:t,elementType:12858,onFlyoutClose:o,onFlyoutOpen:s,pinId:p,tooltipElementType:12859,videoProgressInfo:m,rootPingraphqlRef:null})),t.type===k.h8.PRODUCT_STICKER&&(0,O.jsx)(ef,{block:null,resourceBlock:t,pinId:null,onFlyoutClose:o,onFlyoutOpen:s,elementType:12223,tooltipElementType:12224,videoProgressInfo:m}),t.type===k.h8.VTO_MAKEUP_STICKER&&(0,O.jsx)(ej,{block:null,resourceBlock:t,pinId:null,onFlyoutClose:o,onFlyoutOpen:s,elementType:12561,tooltipElementType:12561,videoProgressInfo:m})]})}function eO({activeStreamItemIndex:e,graphqlRef:t,isStaticImageIdeaPin:n,pageId:i,pinAspectRatio:l,pinId:a,BoxWrapper:r=eL,...o}){var s,d,u,c;let p=(0,_.useFragment)(eF,t),m=(null===(s=p.imageSpec_736x)||void 0===s?void 0:s.url)||"",h=!!m,g=(null!==(d=null===(u=p.storyPinData)||void 0===u?void 0:u.pages)&&void 0!==d?d:[]).find(e=>e.storyPageId===i),{isBot:y}=(0,f.B)(),{windowWidth:b}=eR();return(null!==(c=null==g?void 0:g.blocks)&&void 0!==c?c:[]).map(t=>{var i,s;let{height:d,width:u,xCoord:c,yCoord:_}=null!==(i=t.blockStyle)&&void 0!==i?i:Object.freeze({});return(0,O.jsxs)(r,{height:d,width:y?b:u,left:c,top:_,isStaticImageIdeaPin:!!n,pinAspectRatio:l,isVideoOrImageBlock:[2,3].includes(t.blockType),isParagraphBlock:0===t.blockType,children:[0===t.blockType&&(0,O.jsx)(e_,{block:t}),1===t.blockType&&(0,O.jsx)(et,{block:t}),2===t.blockType&&(0,O.jsx)(er,{block:t}),3===t.blockType&&(0,O.jsx)(eI,{activeStreamItemIndex:e,block:t,hasPinPosterImage:h,isSinglePage:o.isSinglePage,isActive:o.isActive,muteVideos:o.muteVideos,onVideoTimeChange:o.onVideoTimeChange,onVideoEnded:o.onVideoEnded,pinAspectRatio:l,pinId:a,pinPosterImage:m}),12===t.blockType&&(0,O.jsx)(v.Z,{children:(0,O.jsx)(eu,{block:t,onFlyoutOpen:o.onFlyoutOpen,elementType:12120,tooltipElementType:12121,videoProgressInfo:o.videoProgressInfo,pinId:null})}),19===t.blockType&&5===t.interactiveStickerType&&(0,O.jsx)(W,{block:t,onFlyoutOpen:o.onFlyoutOpen,elementType:12120,tooltipElementType:12121,videoProgressInfo:o.videoProgressInfo,pinId:null,rootPingraphqlRef:null}),19===t.blockType&&7===t.interactiveStickerType&&(0,O.jsx)(W,{block:t,onFlyoutOpen:o.onFlyoutOpen,elementType:12858,tooltipElementType:12859,videoProgressInfo:o.videoProgressInfo,pinId:p.entityId,rootPingraphqlRef:p}),13===t.blockType&&(0,O.jsx)(ef,{block:t,onFlyoutOpen:o.onFlyoutOpen,elementType:12223,tooltipElementType:12224,videoProgressInfo:o.videoProgressInfo,pinId:null}),17===t.blockType&&(0,O.jsx)(ej,{block:t,onFlyoutOpen:o.onFlyoutOpen,elementType:12561,tooltipElementType:12561,videoProgressInfo:o.videoProgressInfo,pinId:null})]},`${null!=d?d:""}-${null!=u?u:""}-${null!==(s=t.blockType)&&void 0!==s?s:""}`)})}function eM({blocks:e,...t}){return(null!=e?e:[]).map((e,n)=>{var i;return(0,O.jsx)(ez,{block:e,...t},`${n}-${null!==(i=e.block_type)&&void 0!==i?i:""}`)})}function eN({blocks:e,pageId:t,maybeGraphqlRef:n,...i}){return n?(0,O.jsx)(eO,{graphqlRef:n,pageId:t,...i}):(0,O.jsx)(eM,{blocks:e,...i})}},61764:(e,t,n)=>{"use strict";n.d(t,{Z:()=>tg});var i,l,a,r,o,s,d,u,c,p,m,h=n(667294),_=n(167912),g=n(616550),y=n(883119),v=n(792182),f=n(112690),b=n(643010),x=n(898781),k=n(623568),P=n(773285),S=n(780280),w=n(339363),A=n(224496),T=n(858416),I=n(700314),E=n(430323),C=n(50286),D=n(829407),j=n(19121),F=n(179888),R=n(962482),L=n(63552),z=n(116485),O=n(350118),M=n(257558),N=n(702664),B=n(349700),Z=n(785893);let K=e=>{let{name:t="",unit:n="",amt:i=""}=e;return(0,Z.jsxs)("li",{style:{display:"table-row"},children:[(0,Z.jsx)(y.xu,{dangerouslySetInlineStyle:{__style:{display:"table-cell",paddingRight:20}},children:!!i&&(0,Z.jsx)(y.xu,{marginStart:6,children:(0,Z.jsxs)(y.xv,{size:"200",weight:"bold",children:[i," ",n]})})}),(0,Z.jsx)(y.xu,{width:"70%",dangerouslySetInlineStyle:{__style:{display:"table-cell"}},children:(0,Z.jsx)(y.xv,{size:"200",children:t})})]})};var U=n(923297),H=n(350948);function V({i18n:e,storyPinMetadataTemplateType:t,storyPinMetadataRecipeData:n}){if(!n||1!==t)return null;let{cooking_time:i,prep_time:l,serving_size:a=null}=n,r="number"==typeof i&&"number"==typeof l?i+l:0;return{timeLabel:r?(0,H.Ys)((0,U.X)({m:r}),e):null,servingSize:a}}let G=void 0!==i?i:i=n(541497),$=({storyPinPages:e})=>{let t=null!=e&&e[1]&&5===e[1].layout?e[1]:null,n=null!=e&&e[1]&&6===e[1].layout?e[1]:null;return t||n},W=({listPage:e,listType:t,storyPinMetadataTemplateType:n,storyPinMetadataRecipeData:i})=>{let l=(0,x.ZP)();if(!e)return null;let{blocks:a}=e,r="ingredients"===t?V({i18n:l,storyPinMetadataRecipeData:i,storyPinMetadataTemplateType:n}):null,o=r?r.servingSize:null,s=o?(0,B.nk)(l.ngettext('{{servingSize}} serving', '{{servingSize}} servings', o, 'closeup.storyPin.listModal.ingredients.servings', 'number of servings for a recipe'),{servingSize:o}):null;return(0,Z.jsxs)(y.xu,{children:[(0,Z.jsxs)(y.xu,{display:"flex",direction:"column",justifyContent:"center",alignItems:"center",marginTop:7,children:[(0,Z.jsx)(y.X6,{size:"400",overflow:"normal",children:"ingredients"===t?l._('Ingredients', 'closeup.storyPin.listModal.ingredients', 'Heading for list of ingredients'):l._('Supplies', 'closeup.storyPin.listModal.supplies', 'Heading for list of supplies')}),s&&(0,Z.jsx)(y.xu,{marginBottom:4,children:(0,Z.jsx)(y.xv,{color:"subtle",children:s})})]}),(0,Z.jsx)("ul",{style:{padding:0},children:(null!=a?a:[]).map(({name:e,unit:t,amt:n},i)=>(0,Z.jsx)(K,{name:e,unit:t,amt:n},e||i))})]})};function q({graphqlRef:e,...t}){let n=(0,_.useFragment)(G,e),i=$({storyPinPages:n.pages});return(0,Z.jsx)(W,{...t,listPage:i})}function Y({pinId:e,...t}){var n;let i=(0,O.S6)()(e),l=$({storyPinPages:null==i?void 0:null===(n=i.story_pin_data)||void 0===n?void 0:n.pages});return(0,Z.jsx)(W,{...t,listPage:l})}function X({graphqlRef:e,pinId:t,...n}){return e?(0,Z.jsx)(q,{graphqlRef:e,...n}):(0,Z.jsx)(Y,{pinId:t,...n})}var Q=n(121151),J=n(883561),ee=n(63536);function et({imageSize:e,index:t,hasPin:n,pinId:i,gridTitle:l,image236x:a,hasProductDetailsCurrentPrice:r,hasProductDetailsMaxPrice:o}){var s,d,u;return n?(0,Z.jsx)(y.xu,{width:e,marginEnd:t%2==0?2:0,marginTop:4,children:(0,Z.jsxs)(y.Tg,{href:`/pin/${null!=i?i:""}`,rounding:4,tapStyle:"none",children:[(0,Z.jsx)(y.xu,{rounding:5,overflow:"hidden",width:e,maxWidth:176,maxHeight:176,children:(0,Z.jsx)(y.zd,{wash:!0,height:e,width:e,children:(0,Z.jsx)(y.Ee,{alt:"",color:"lightGray",fit:"cover",naturalHeight:null!==(s=null==a?void 0:a.height)&&void 0!==s?s:1,naturalWidth:null!==(d=null==a?void 0:a.width)&&void 0!==d?d:1,src:null!==(u=null==a?void 0:a.url)&&void 0!==u?u:""})})}),(r||o)&&(0,Z.jsx)(y.xu,{marginTop:2,children:(0,Z.jsx)(ee.ZP,{pinId:i,graphqlRef:null})}),!!l&&(0,Z.jsx)(y.xu,{marginTop:1,children:(0,Z.jsx)(y.xv,{size:"100",children:(0,J.ZP)(l,40)})})]})}):null}var en=n(35919);let ei="calc((100vw - (12px * 3)) / 2)",el=void 0!==l?l:l=n(285617),ea=({fullName:e,hasStoryPinMetadataBasics:t,imageLargeUrl:n,imageMediumUrl:i,imageSmallUrl:l,isOpen:a,link:r,hasListPage:o,listType:s,onDismiss:d,pinId:u,pinTitle:c,pinDescription:p,storyPinMetadataRecipeData:m,storyPinMetadataTemplateType:h,taggedProducts:_,username:g,maybeGraphqlRef:v,clientTrackingParams:f})=>{let b=(0,x.ZP)(),k=(0,O.S6)(),P=_.length<20&&_.length%2!=0;return(0,Z.jsx)(Q.ZP,{accessibilityModalLabel:"",isOpen:a,onDismiss:d,type:"story_pin_list",mobileAccessibilityCloseIconLabel:b._('Close', 'StoryPin.Modal', 'Close modal window'),children:(0,Z.jsx)(y.xu,{display:"flex",paddingX:4,alignItems:"center",direction:"column",justifyContent:"center",maxHeight:"75vh",overflow:"scrollY",children:(0,Z.jsxs)(y.xu,{flex:"grow",marginBottom:4,width:"100%",children:[(t||r||c||p)&&(0,Z.jsx)(en.Z,{fullName:e,graphqlRef:v,imageLargeUrl:n,imageMediumUrl:i,imageSmallUrl:l,link:r,pinId:null!=u?u:"",title:c,description:p,username:g,templateType:h,clientTrackingParams:f}),!!o&&(0,Z.jsx)(y.xu,{"data-test-id":"story-pin-basics",children:(0,Z.jsx)(X,{pinId:u,listType:s,storyPinMetadataRecipeData:m,storyPinMetadataTemplateType:h,graphqlRef:null==v?void 0:v.storyPinData})}),(0,Z.jsxs)(y.kC,{alignItems:"stretch",direction:"row",justifyContent:"center",wrap:!0,children:[_.length>0&&_.map((e,t)=>{var n,i,l,a,r,o,s;let d=k(e.id);return(0,Z.jsx)(et,{imageSize:ei,index:t,hasPin:!!d,pinId:null==d?void 0:d.id,gridTitle:null==d?void 0:d.grid_title,image236x:null!=d&&null!==(n=d.images)&&void 0!==n&&n["236x"]?{height:d.images["236x"].height,url:d.images["236x"].url,width:d.images["236x"].width}:void 0,hasProductDetailsCurrentPrice:!!(null!=d&&null!==(i=d.rich_summary)&&void 0!==i&&null!==(l=i.products)&&void 0!==l&&null!==(a=l[0].offer_summary)&&void 0!==a&&a.price),hasProductDetailsMaxPrice:!!(null!=d&&null!==(r=d.rich_summary)&&void 0!==r&&null!==(o=r.products)&&void 0!==o&&null!==(s=o[0].offer_summary)&&void 0!==s&&s.max_price)},e.id)}),P&&(0,Z.jsx)(y.xu,{width:ei})]})]})})})};function er({graphqlRef:e,...t}){var n,i,l,a,r,o,s;let d=(0,_.useFragment)(el,e),u=d.storyPinData,c=!!(null==u?void 0:null===(n=u.metadata)||void 0===n?void 0:n.basics),p=null==u?void 0:null===(i=u.metadata)||void 0===i?void 0:i.recipeData;return(0,Z.jsx)(ea,{...t,hasStoryPinMetadataBasics:c,pinTitle:null!==(l=d.title)&&void 0!==l?l:"",pinDescription:d.closeupUnifiedDescription,storyPinMetadataRecipeData:{cooking_time:null!==(a=null==p?void 0:p.cookingTime)&&void 0!==a?a:0,prep_time:null!==(r=null==p?void 0:p.prepTime)&&void 0!==r?r:0,serving_size:null!==(o=null==p?void 0:p.servingSize)&&void 0!==o?o:0},storyPinMetadataTemplateType:null==u?void 0:null===(s=u.metadata)||void 0===s?void 0:s.templateType,maybeGraphqlRef:d})}function eo(e){var t,n,i,l;let a=(0,O.S6)()(e.pinId),r=null==a?void 0:a.story_pin_data,o=!!((null==r?void 0:null===(t=r.metadata)||void 0===t?void 0:t.basics)&&Object.keys(r.metadata.basics).length>0);return(0,Z.jsx)(ea,{...e,hasStoryPinMetadataBasics:o,pinTitle:null!==(n=null==a?void 0:a.title)&&void 0!==n?n:"",pinDescription:null==a?void 0:a.closeup_unified_description,storyPinMetadataRecipeData:null==r?void 0:null===(i=r.metadata)||void 0===i?void 0:i.recipe_data,storyPinMetadataTemplateType:null==r?void 0:null===(l=r.metadata)||void 0===l?void 0:l.template_type,maybeGraphqlRef:null})}function es({graphqlRef:e,...t}){return e?(0,Z.jsx)(er,{graphqlRef:e,...t}):(0,Z.jsx)(eo,{...t})}var ed=n(57009);let eu=void 0!==a?a:a=n(22528);function ec(e){return(0,ed.Z)(function({domain:e,listBlocks:t,keyValueBlock:n,description:i}){let l=[];for(let a of(e&&l.push(e),n.length>0&&l.push(...n),i&&l.push(i),null!=t?t:[]))if(a.heading&&l.push(a.heading),a.blocks)for(let e of a.blocks)e.text&&l.push(e.text);return l}(e))}var ep=n(594635),em=n(788645);let eh=void 0!==r?r:r=n(200300);function e_({anchorRef:e,onTap:t,previewText:n,previewTitle:i}){let l=(0,x.ZP)();if(!i&&!n)return null;let a=(0,em.j)(n);return(0,Z.jsx)(y.iP,{onTap:t,ref:e,children:(0,Z.jsx)(em.Z,{dir:a,children:(0,Z.jsxs)(y.kC,{direction:"column",gap:1,children:[i&&(0,Z.jsx)(y.X6,{accessibilityLevel:1,lineClamp:1,size:"100",color:"light",children:i}),n&&(0,Z.jsxs)(y.xv,{inline:!0,color:"light",size:"100",children:[n.length>90?`${n.substr(0,90)} ... `:n,n.length>90?(0,Z.jsx)(y.xv,{inline:!0,weight:"bold",size:"100",color:"light",children:l._('more', 'storyPin.previewText.more', 'Story pin preview text truncation')}):null]})]})})})}function eg({graphqlRef:e,...t}){var n,i,l;let a=(0,x.ZP)(),r=(0,_.useFragment)(eh,e),{storyPinData:o,closeupUnifiedDescription:s,title:d}=r||{},u=((null==o?void 0:null===(n=o.metadata)||void 0===n?void 0:null===(i=n.basics)||void 0===i?void 0:i.keyValueBlocks)||[]).map(e=>(0,ep.Z)(e.categoryType,e.value,a)),c=function(e,t,n,i){let l=(0,_.useFragment)(eu,e);return ec({domain:null,keyValueBlock:n,listBlocks:null==l?void 0:l.listBlocks,description:i})}(null==o?void 0:null===(l=o.metadata)||void 0===l?void 0:l.basics,0,u.filter(e=>""!==e),null==s?void 0:s.trim());return(0,Z.jsx)(e_,{...t,previewText:c,previewTitle:d})}function ey({pinId:e,...t}){var n,i,l,a;let r=(0,x.ZP)(),o=(0,O.S6)()(e),{title:s,story_pin_data:d,closeup_unified_description:u}=o||{},c=((null==d?void 0:null===(n=d.metadata)||void 0===n?void 0:null===(i=n.basics)||void 0===i?void 0:i.key_value_blocks)||[]).map(e=>(0,ep.Z)(e.category_type,e.value,r)),p=null==d?void 0:null===(l=d.metadata)||void 0===l?void 0:null===(a=l.basics)||void 0===a?void 0:a.list_blocks,m=ec({domain:null,listBlocks:p,keyValueBlock:c.filter(e=>""!==e),description:null==u?void 0:u.trim()});return(0,Z.jsx)(e_,{...t,previewText:m,previewTitle:s})}function ev({graphqlRef:e,pinId:t,...n}){return e?(0,Z.jsx)(eg,{graphqlRef:e,...n}):(0,Z.jsx)(ey,{pinId:t,...n})}let ef={5:"ingredients",6:"supplies"},eb=void 0!==o?o:o=n(933702),ex=({anchorRef:e,fullName:t,hasProductPins:n,imageLargeUrl:i,imageMediumUrl:l,imageSmallUrl:a,storyPinData:r,username:o,pinDomain:s,pinLink:d,pinId:u,maybeGraphqlRef:c,title:p,description:m,clientTrackingParams:_})=>{var g;let v;let f=(0,N.useSelector)(({feeds:e})=>e["story-pin-tagged-products"])||[],[b,x]=(0,h.useState)(!1),k=$({storyPinPages:null==r?void 0:r.pages}),P=null==r?void 0:null===(g=r.metadata)||void 0===g?void 0:g.basics;s&&d&&(v={domain:s,url:d});let S=b&&(!!k||!!P||f.length>0||!!v||p||m);return S?(0,Z.jsx)(es,{fullName:t,graphqlRef:c,imageLargeUrl:i,imageMediumUrl:l,imageSmallUrl:a,isOpen:b,link:v,hasListPage:!!k,listType:ef[null==k?void 0:k.layout]||null,onDismiss:()=>x(!1),pinId:null!=u?u:"",taggedProducts:n&&f?f:[],username:o,clientTrackingParams:_}):(0,Z.jsx)(y.xu,{"data-test-id":"StoryPinDescriptionContainer",children:(0,Z.jsx)(ev,{anchorRef:e,onTap:e=>{e.event.preventDefault(),e.event.stopPropagation(),x(!0)},pinDomain:s,pinId:null!=u?u:"",graphqlRef:c})})};function ek({graphqlRef:e,...t}){var n;let i=(0,_.useFragment)(eb,e);return(0,Z.jsx)(ex,{...t,description:i.closeupUnifiedDescription,hasProductPins:!!(null!==(n=i.storyPinData)&&void 0!==n&&n.hasProductPins),maybeGraphqlRef:i,pinDomain:i.domain,pinLink:i.link,storyPinData:i.storyPinData,title:i.title})}function eP(e){var t,n;let i=(0,O.S6)()(null!==(t=e.pinId)&&void 0!==t?t:""),l=null==i?void 0:i.story_pin_data;return(0,Z.jsx)(ex,{...e,description:null==i?void 0:i.closeup_unified_description,hasProductPins:!!(null!=i&&null!==(n=i.story_pin_data)&&void 0!==n&&n.has_product_pins),maybeGraphqlRef:null,pinDomain:null==i?void 0:i.domain,pinLink:null==i?void 0:i.link,storyPinData:l,title:null==i?void 0:i.title})}function eS({graphqlRef:e,...t}){return e?(0,Z.jsx)(ek,{graphqlRef:e,...t}):(0,Z.jsx)(eP,{...t})}var ew=n(356997),eA=n(815613),eT=n(461773),eI=n(90326),eE=n(698330),eC=n(914142);function eD({adsOnlyProfileSite:e,avatarSize:t="sm",blockedByMe:n,explicitlyFollowedByMe:i,fullName:l,hasAffiliatedProducts:a,id:r,imageLargeUrl:o,imageMediumUrl:s,imageSmallUrl:d,isAdsOnlyProfile:u,noFollowButton:c,pageId:p,pinId:m,pinImageSignature:_,sponsorName:g,sponsorId:v,sponsorUsername:b,sponsorshipStatus:k,textColor:S="default",username:w,verified:A,clientTrackingParams:T}){let I=(0,f.Z)(),E=(0,eE.mN)()(r),C=(0,N.useDispatch)(),[D,F]=(0,h.useState)(E?E.explicitly_followed_by_me:i),R=e=>C((0,eI.h2)(e,I)),L=(0,j.Z)(),z=L.isAuth&&L.id,O=(0,x.ZP)(),{checkExperiment:M}=(0,P.F)(),B=u&&e,K=()=>{I({aux_data:{creator_id:r,pin_id:m,...p?{story_pin_page_id:p}:{}},component:230,event_type:102,object_id_str:m,view_parameter:157,view_type:3}),B&&I({event_type:9371,element:13382,component:230})},U=b&&g,H=U||(eC.j.includes(k)||a)&&M("mweb_web_android_ios_backend_clbc_display_controls").anyEnabled,V=U?(0,Z.jsx)(y.xv,{inline:!0,color:S,size:"200",weight:"bold",children:(0,Z.jsx)(y.rU,{onClick:()=>{I({aux_data:{pin_id:m,story_pin_page_id:p,...r&&v?{creator_id:r,sponsor_id:v}:{}},component:230,event_type:102,object_id_str:m,view_parameter:157,view_type:3})},tapStyle:"compress",href:`/${null!=b?b:""}/`,children:g})}):void 0,G=B&&e?e:`/${encodeURIComponent(w)}/`;return(0,Z.jsx)(y.kC,{alignItems:"center",justifyContent:"between",children:(0,Z.jsxs)(y.xu,{flex:"grow",marginEnd:2,display:"flex",alignItems:"center",children:[(0,Z.jsx)(y.xu,{flex:"none",marginEnd:2,children:(0,Z.jsx)(y.Tg,{href:G,rounding:2,tapStyle:"compress",onTap:K,rel:B?"nofollow":"none",target:B?"blank":null,children:(0,Z.jsx)(ew.qE,{name:null!=l?l:"",size:t,src:o||s||d||"",verified:A})})}),(0,Z.jsxs)(y.xu,{overflow:"hidden",marginEnd:2,dangerouslySetInlineStyle:{__style:H?{flex:"1 1 30%"}:{}},children:[(0,Z.jsx)(y.xv,{color:S,lineClamp:1,weight:"bold",children:(0,Z.jsx)(y.rU,{href:G,tapStyle:"compress",rounding:2,onClick:K,rel:B?"nofollow":"none",target:B?"blank":null,children:w})}),H?(0,Z.jsx)(eC.Z,{hasAffiliatedProducts:a,sponsorName:V,sponsorshipStatus:k,textColor:S}):null]}),!c&&(0,Z.jsx)(y.xu,{flex:"grow",children:n?(0,Z.jsx)(y.zx,{fullWidth:!0,text:O._('Unblock', ' - ', ' -- '),color:"gray",size:"sm",onClick:()=>R(r)}):(0,Z.jsx)(eA.Z,{isSecondaryButton:!0,id:r,size:"sm",isFollowed:D,isUserFollowButton:!0,isIdeaPin:!0,isUserMe:z===r,onFollow:e=>{F(!0),C((0,eT.ZN)(e))},onUnfollow:e=>{C((0,eT.fv)(e)),F(!1)},followEventType:45,unfollowEventType:46,viewType:3,viewParameter:157,auxData:{pin_id:m,image_signature:_},clientTrackingParams:T,pinKey:null})})]})})}let ej=void 0!==s?s:s=n(201557);function eF({anchorRef:e,creatorAdsOnlyProfileSite:t,creatorBlockedByMe:n,creatorExplicitlyFollowedByMe:i,creatorFullName:l,creatorId:a,creatorImageLargeUrl:r,creatorImageMediumUrl:o,creatorImageSmallUrl:s,creatorIsAdsOnlyProfile:d,creatorUsername:u,creatorVerified:c,currentPageIndex:p,handlePause:m,handlePlay:h,isMultiPagePin:_,maybeGraphqlRef:g,pinId:v,pinImageSignature:f,sponsorFullName:b,sponsorId:x,sponsorshipStatus:k,sponsorUsername:P,storyPinHasProductPins:S,pageId:w,pageMusicBlockAudioArtistName:A,pageMusicBlockAudioTitle:T,clientTrackingParams:I}){return(0,Z.jsxs)(y.kC,{direction:"column",gap:2,children:[(0,Z.jsx)(eD,{adsOnlyProfileSite:t,blockedByMe:n,explicitlyFollowedByMe:i,fullName:null!=l?l:"",hasAffiliatedProducts:S,id:null!=a?a:"",imageLargeUrl:r,imageMediumUrl:o,imageSmallUrl:s,isAdsOnlyProfile:!!d,pageId:null!=w?w:void 0,pinId:v,pinImageSignature:null!=f?f:"",sponsorId:null!=x?x:"",sponsorName:null!=b?b:"",sponsorshipStatus:k,sponsorUsername:null!=P?P:"",textColor:"light",username:null!=u?u:"",verified:null!=c&&c,clientTrackingParams:I}),(0,Z.jsx)(eS,{anchorRef:e,fullName:null!=l?l:"",graphqlRef:g,imageLargeUrl:r,imageMediumUrl:o,imageSmallUrl:s,pinId:v,username:null!=u?u:"",clientTrackingParams:I}),!_&&(0,Z.jsx)(M.Z,{activePageIndex:p,graphqlRef:g,pageMusicBlockAudioArtistName:A,pageMusicBlockAudioTitle:T,pinId:v,playbackHandlers:{handlePause:m,handlePlay:h},viewParameter:157})]})}function eR({graphqlRef:e,...t}){let n=(0,_.useFragment)(ej,e);return(0,Z.jsx)(eF,{...t,maybeGraphqlRef:n})}function eL({graphqlRef:e,...t}){return e?(0,Z.jsx)(eR,{graphqlRef:e,...t}):(0,Z.jsx)(eF,{maybeGraphqlRef:null,...t})}var ez=n(252417),eO=n(934494),eM=n(680175),eN=n(46249);let eB=void 0!==d?d:d=n(359010);function eZ({storyPinTitle:e,dominantColor:t,hasImageAdjusted:n,hasImage:i,images:l}){if(!i&&!n)return(0,Z.jsx)(R.Z,{});let a=(null==l?void 0:l["750x"])||(null==l?void 0:l["236x"])||(null==l?void 0:l["1200x"])||(null==l?void 0:l.originals);return(0,Z.jsx)(E.Z,{view:3,viewParameter:157,component:227,children:(0,Z.jsxs)(y.xu,{width:"100%",height:"100%",children:[(0,Z.jsx)(eM.Z,{altImageText:e,dominantColor:t,media:a,pageType:"cover"}),(0,Z.jsx)(y.xu,{position:"absolute",top:!0,left:!0,bottom:!0,right:!0,dangerouslySetInlineStyle:{__style:n?{}:{backgroundImage:"linear-gradient(rgba(0,0,0,0), rgba(0,0,0, 0.5))"}}}),(0,Z.jsx)(y.xu,{position:"absolute",bottom:!0,left:!0,right:!0,paddingX:4,paddingY:4,children:!n&&(0,Z.jsx)(y.xu,{column:9,children:(0,Z.jsx)(y.X6,{color:"light",size:"500",overflow:"normal",children:e})})})]})})}let eK=(0,eO.Z)({useGraphQLAdapter:e=>{var t,n;let i=(0,_.useFragment)(eB,e),{imageImages:l,imageAdjustedImages:a,hasImageImages:r,hasImageAdjustedImages:o}=(0,eN.Z)(i)||Object.freeze({});if(!i)return null;let s=(null===(t=i.blocks)||void 0===t?void 0:t[0].text)||"",d=null!==(n=i.dominantColorAdjusted)&&void 0!==n?n:i.dominantColor,u=!!i.dominantColorAdjusted||o,c=!!i.dominantColor||r;return{storyPinTitle:s,dominantColor:null!=d?d:void 0,images:u?a:l,hasImageAdjusted:u,hasImage:c}},useLegacyAdapter:e=>{let{image:t,image_adjusted:n,blocks:i}=e,l=(null==i?void 0:i[0].text)||"",{dominant_color:a,images:r}=n||t||{};return{storyPinTitle:l,dominantColor:a,images:r,hasImageAdjusted:!!n,hasImage:!!t}}});function eU({page:e}){return(0,Z.jsx)(eK,{input:"graphql"===e.type?{enabled:!0,data:e.data}:{enabled:!1,data:e.data},children:({data:e})=>e&&(0,Z.jsx)(eZ,{...e})})}var eH=n(762674),eV=n(456082),eG=n(164985);let e$=({block:e})=>{let{windowWidth:t}=(0,eG.Z)();if(e.type!==ez.h8.INGREDIENT)return null;let{name:n,unit:i,amt:l}=e;return(0,Z.jsxs)("li",{style:{display:"table-row"},children:[(0,Z.jsx)(y.xu,{dangerouslySetInlineStyle:{__style:{display:"table-cell",paddingRight:8}},children:!!l&&(0,Z.jsxs)(y.xv,{children:[l," ",i]})}),(0,Z.jsx)(y.xu,{dangerouslySetInlineStyle:{__style:{display:"table-cell",maxWidth:.7*t}},children:(0,Z.jsx)(y.xv,{children:n})})]})},eW=void 0!==u?u:u=n(391582),eq=e=>5===e.block_type,eY=({ingredientBlocks:e,servingSize:t})=>{let n=(0,x.ZP)(),{windowHeight:i,windowWidth:l}=(0,eG.Z)(),a=Math.min(16*l/9,i),r=t?(0,B.nk)(n.ngettext('{{servingSize}} serving', '{{servingSize}} servings', t, 'number of servings for a recipe', 'number of servings for a recipe'),{servingSize:t}):null;return(0,Z.jsxs)(y.xu,{height:a,width:l,position:"relative",padding:4,color:"default",children:[(0,Z.jsx)(y.xu,{marginTop:12,children:(0,Z.jsx)(y.X6,{overflow:"normal",children:n._('Ingredients', 'Heading for list of ingredients', 'Heading for list of ingredients')})}),r&&(0,Z.jsx)(y.xu,{marginBottom:4,children:(0,Z.jsx)(y.xv,{color:"subtle",children:r})}),(0,Z.jsx)(y.kC,{alignItems:"stretch",justifyContent:"start",children:(0,Z.jsx)("ul",{style:{padding:0},children:(null!=e?e:[]).map((e,t)=>(0,Z.jsx)(e$,{block:e},e.name||t))})})]})},eX=(0,eO.Z)({useGraphQLAdapter:e=>{let t=(0,_.useFragment)(eW,e);if(!t)return null;let n=t.blocks?t.blocks.reduce((e,t)=>{if(5===t.blockType){var n,i,l;let a={type:5,amt:null!==(n=t.amt)&&void 0!==n?n:void 0,name:null!==(i=t.name)&&void 0!==i?i:void 0,unit:null!==(l=t.unit)&&void 0!==l?l:void 0};return[...e,a]}return e},[]):void 0;return{ingredientBlocks:n}},useLegacyAdapter:e=>{var t;let n=null===(t=e.blocks)||void 0===t?void 0:t.filter(eq);return{ingredientBlocks:n}}});function eQ({page:e,servingSize:t}){return(0,Z.jsx)(eX,{input:"graphql"===e.type?{enabled:!0,data:e.data}:{enabled:!1,data:e.data},children:({data:e})=>e&&(0,Z.jsx)(eY,{...e,servingSize:t})})}var eJ=n(185258),e0=n(969541);let e1=e=>({transition:`transform ${e/1e3}s ease-in 0s`}),e2=e=>{let{animationDuration:t=0,children:n,currentPageIndex:i,height:l,index:a,marginTop:r,width:o}=e,{isBot:s}=(0,S.B)(),d=Math.abs(a-i);return 0===d?(0,Z.jsx)(y.xu,{height:l,"data-test-id":"story-pin-animation",position:"absolute",width:o,dangerouslySetInlineStyle:{__style:{backgroundColor:"#000000",marginTop:`${r}px`,...e1(t),...t>0?{transform:"translateX(calc(-100% - 1px))"}:{transform:"translateX(0)"}}},children:n}):1===d?(0,Z.jsx)(y.xu,{height:l,"data-test-id":"story-pin-animation",position:"absolute",width:o,dangerouslySetInlineStyle:{__style:{backgroundColor:"#000000",marginTop:`${r}px`,...e1(t),...t>0?{transform:"translateX(0)"}:{transform:"translateX(calc(100% + 1px))"}}},children:n}):s?(0,Z.jsx)(y.xu,{position:"absolute",dangerouslySetInlineStyle:{__style:{backgroundColor:"#000000",transform:"translateX(1000%)"}},children:n}):null},e3=({block:e})=>{let{windowWidth:t}=(0,eG.Z)();if(e.type!==ez.h8.SUPPLY)return null;let{name:n,amt:i}=e;return(0,Z.jsxs)("li",{style:{display:"table-row"},children:[(0,Z.jsx)(y.xu,{dangerouslySetInlineStyle:{__style:{display:"table-cell",paddingRight:8}},children:!!i&&(0,Z.jsx)(y.xv,{children:i})}),(0,Z.jsx)(y.xu,{dangerouslySetInlineStyle:{__style:{display:"table-cell",maxWidth:.7*t}},children:(0,Z.jsx)(y.xv,{children:n})})]})},e8=void 0!==c?c:c=n(229325),e6=e=>6===e.block_type,e4=({suppliesBlocks:e})=>{let t=(0,x.ZP)(),{windowHeight:n,windowWidth:i}=(0,eG.Z)(),l=Math.min(16*i/9,n);return(0,Z.jsxs)(y.xu,{height:l,width:i,position:"relative",padding:4,color:"default",children:[(0,Z.jsx)(y.xu,{marginTop:12,children:(0,Z.jsx)(y.X6,{overflow:"normal",children:t._('Supplies', 'Heading for list of supplies', 'Heading for list of supplies')})}),(0,Z.jsx)(y.kC,{alignItems:"stretch",justifyContent:"start",children:(0,Z.jsx)("ul",{style:{padding:0},children:(null!=e?e:[]).map((e,t)=>(0,Z.jsx)(e3,{block:e},e.name||t))})})]})},e5=(0,eO.Z)({useGraphQLAdapter:e=>{let t=(0,_.useFragment)(e8,e);if(!t)return null;let n=t.blocks?t.blocks.reduce((e,t)=>{if(6===t.blockType){var n,i;let l={type:6,amt:null!==(n=t.amt)&&void 0!==n?n:void 0,name:null!==(i=t.name)&&void 0!==i?i:void 0};return[...e,l]}return e},[]):void 0;return{suppliesBlocks:n}},useLegacyAdapter:e=>{var t;let n=null===(t=e.blocks)||void 0===t?void 0:t.filter(e6);return{suppliesBlocks:n}}});function e7({page:e}){return(0,Z.jsx)(e5,{input:"graphql"===e.type?{enabled:!0,data:e.data}:{enabled:!1,data:e.data},children:({data:e})=>e&&(0,Z.jsx)(e4,{...e})})}var e9=n(764340),te=n(681669),tt=n(654579),tn=n(994320);let ti=void 0!==p?p:p=n(293665),tl=({accessibilityLabel:e,disabled:t,handleTap:n,icon:i})=>(0,Z.jsx)(y.xu,{opacity:t?.5:void 0,children:(0,Z.jsx)(y.iP,{disabled:t,onTap:({event:e})=>{e.stopPropagation(),!t&&n&&n()},tapStyle:"compress",children:(0,Z.jsx)(y.JO,{accessibilityLabel:e,color:"light",icon:i,size:20})})});function ta({activePageIndex:e,handlePageChange:t,handlePlay:n,handlePause:i,handleMute:l,inRemoveRelatedStreamsExp:a,isInactiveStreamPin:r,isPlaying:o,isMuted:s,pageCount:d,pinId:u,progressInfo:c,setVideoProgress:p,shouldMute:m,showVideoControls:_=!1,videoDurations:g=[],captionsExpGroup:v="",viewParameter:f}){let b=(0,x.ZP)(),{currentTime:k}=c||{},{seekTimes:P}=(0,T.Hx)(),S=(0,C.HG)(),w=(0,tn.r)(),{captionsEnabled:I}=w,E=Object.keys(P).includes(u)&&P[u]?P[u]:k,D=(0,h.useMemo)(()=>g.reduce((e,t)=>e+(t.duration||0),0)/F.gJ,[g]),j=(0,h.useMemo)(()=>g.filter((t,n)=>n<e).reduce((e,t)=>e+(t.duration||0),0)/F.gJ,[g,e]),R=g.length>0&&g[e].isVideo?E+j:5*k+j,L=v.startsWith("enabled_captions"),z=b._('Hide captions', 'gestalt.video.accessibilityHideCaptionsLabel', 'ARIA label for hide captions button'),O=b._('Show captions', 'gestalt.video.accessibilityShowCaptionsLabel', 'ARIA label for show captions button');return(0,Z.jsxs)(y.xu,{alignItems:"center",direction:"row",display:"flex",justifyContent:"center",width:"100%",dangerouslySetInlineStyle:{__style:{gap:4*(a?3:5),pointerEvents:"auto",touchAction:"none"}},children:[a&&(0,Z.jsx)(y.xu,{children:(0,Z.jsx)(y.xv,{color:"light",size:"100",children:(0,A.Lc)(R)})}),(0,Z.jsx)(tt.ZP,{activePageIndex:e,activePageCurrentTime:E,currentTime:R,duration:D,handlePlay:n,handlePause:i,handleVideoScrubbingNewPage:t,isInactiveStreamPin:r,isPlaying:o,pageCount:d,pageDurations:g,pinId:u,progressInfo:c,setVideoProgress:p,shouldShowPlayhead:!0,showEndCard:!1,videoDurations:g,viewParameter:f}),a&&(0,Z.jsx)(y.xu,{children:(0,Z.jsx)(y.xv,{color:"light",size:"100",children:(0,A.Lc)(D)})}),v.startsWith("enabled_captions")&&(0,Z.jsx)(tl,{accessibilityLabel:L?O:z,disabled:!L,handleTap:()=>{w.setCaptionsEnabled(!I)},icon:I?"captions":"captions-outline"}),!!l&&(0,Z.jsx)(y.xu,{"data-test-id":"mute-control-button",marginEnd:S?3:0,dangerouslySetInlineStyle:{__style:{opacity:_||!o?1:0,transition:"all .1s"}},children:(0,Z.jsx)(tl,{accessibilityLabel:s?b._('Mute', 'closeup.IdeaPinVideo.mute', 'Mute button on Idea Pin video'):b._('Unmute', 'closeup.IdeaPinVideo.unmute', 'Unmute button on Idea Pin video'),disabled:!!m,handleTap:l,icon:m||s?"mute":"sound"})})]})}let tr=({activePageIndex:e,pinKey:t,...n})=>{var i,l;let{data:a}=(0,te.sr)(ti,t,{type:"pin",useLegacyAdapter:e=>({storyPinData:e.story_pin_data&&{pages:e.story_pin_data.pages&&e.story_pin_data.pages.map(e=>e&&{ad:e.ad&&{__typename:"Pin"},blocks:e.blocks&&e.blocks.map(e=>e&&3===e.block_type?{blockType:e.block_type,video:e.video&&{videoList:e.video.video_list&&{v720P:e.video.video_list.V_720P&&{duration:e.video.video_list.V_720P.duration},vHLSV3MOBILE:e.video.video_list.V_HLSV3_MOBILE&&{duration:e.video.video_list.V_HLSV3_MOBILE.duration}}}}:{}),layout:e.layout,shouldMute:e.should_mute})}})});if(!a)return(0,Z.jsx)(R.Z,{});let{storyPinData:r}=a,{shouldMute:o}=(null==r?void 0:null===(i=r.pages)||void 0===i?void 0:i[e])||{},s=null==r?void 0:null===(l=r.pages)||void 0===l?void 0:l.filter(e=>!(2===e.layout&&!e.ad||5===e.layout||6===e.layout)),d=null==s?void 0:s.map(e=>{var t;return null===(t=e.blocks)||void 0===t?void 0:t.find(e=>3===e.blockType)}),u=null==d?void 0:d.map(e=>{var t,n,i,l,a,r;let o=(null==e?void 0:null===(t=e.video)||void 0===t?void 0:null===(n=t.videoList)||void 0===n?void 0:null===(i=n.v720P)||void 0===i?void 0:i.duration)||(null==e?void 0:null===(l=e.video)||void 0===l?void 0:null===(a=l.videoList)||void 0===a?void 0:null===(r=a.vHLSV3MOBILE)||void 0===r?void 0:r.duration);return o?{duration:o,isVideo:!0}:{duration:k.oN,isVideo:!1}});return(0,Z.jsx)(ta,{...n,activePageIndex:e,shouldMute:o,videoDurations:u})};var to=n(986926);let ts=void 0!==m?m:m=n(193048),td=e=>(null!=e?e:[]).filter(e=>{var t,n,i,l;return!((null===(t=e.data)||void 0===t?void 0:t.layout)===2&&!(null!==(n=e.data)&&void 0!==n&&n.ad)||(null===(i=e.data)||void 0===i?void 0:i.layout)===5||(null===(l=e.data)||void 0===l?void 0:l.layout)===6)}),tu=(e,t)=>{var n,i;let l=null===(n=e.state)||void 0===n?void 0:n.startingStoryPageId;if(!l)return 0;let a=null!==(i=td(t))&&void 0!==i?i:[];return a.findIndex(e=>{var t;return("graphql"===e.type?null===(t=e.data)||void 0===t?void 0:t.pageId:e.data.id)===l})||0};function tc(e){let t=(0,I.n4)(e,"0.8.0");return null!=t&&t>=0}function tp({activeStreamItemIndex:e,currentPageIndex:t,graphqlRef:n,handlePause:i,handlePlay:l,isActive:a,isAuthenticated:r,isInactiveStreamPin:o,isSinglePage:s,mute:d,onVideoEnded:u,page:c,pinId:p,setFlyoutOpen:m,storyPinMetadataRecipeData:h,storyPinMetadataTemplateType:_,storyPinMetadataVersion:g,pinAspectRatio:y,videoProgress:v,setVideoProgress:f}){var b,k;let P=(0,x.ZP)(),S=tc(null!=g?g:"");if(!c)return null;let w="graphql"===c.type?null===(b=c.data)||void 0===b?void 0:b.pageId:c.data.id;if(S)return(0,Z.jsx)(e0.Z,{activeStreamItemIndex:e,graphqlRef:n,isSinglePage:s,isActive:!o&&a,isAuthenticated:r,muteVideos:d,onFlyoutClose:()=>{l(),m(!1)},onFlyoutOpen:()=>{i(),m(!0)},onVideoEnded:()=>{u(t)},pinId:p,pinAspectRatio:y,pageId:w,videoProgress:v,setVideoProgress:f});switch(null===(k=c.data)||void 0===k?void 0:k.layout){case 0:return(0,Z.jsx)(eU,{page:c},w);case 1:case 3:case 4:return(0,Z.jsx)(eJ.Z,{pageId:w,pinId:p,graphqlRef:n},w);case 5:let A=V({i18n:P,storyPinMetadataRecipeData:h,storyPinMetadataTemplateType:_}),T=A?A.servingSize:null;return(0,Z.jsx)(eQ,{page:c,servingSize:T},w);case 6:return(0,Z.jsx)(e7,{page:c},w);default:return null}}function tm(e){var t,n,i,l,a,r,o,s,d,u,c,p,m,_,R,O,N,B,K,U,H,V,G;let{activeStreamItemIndex:$,clientTrackingParams:W,creatorAdsOnlyProfileSite:q,creatorBlockedByMe:Y,creatorExplicitlyFollowedByMe:X,creatorFullName:Q,creatorId:J,creatorImageLargeUrl:ee,creatorImageMediumUrl:et,creatorImageSmallUrl:en,creatorIsAdsOnlyProfile:ei,creatorUsername:el,creatorVerified:ea,dominantColor:er,experience:eo,graphqlRef:es,imageSignature:ed,isFirstInStream:eu,isInactiveStreamPin:ec,isRelatedStreamPin:ep,isStreamMuted:em,pinAspectRatio:eh,pinId:e_,pinnedToBoardId:eg,reactionCounts:ey,setStreamMuted:ev,sponsorFullName:ef,sponsorId:eb,sponsorshipCreatorId:ex,sponsorshipStatus:ek,sponsorUsername:eP,storyPinDataId:eS,storyPinHasProductPins:ew,storyPinMetadataRecipeData:eA,storyPinMetadataTemplateType:eT,storyPinMetadataVersion:eI,storyPinPages:eE,streamItemIndex:eC,viewParameter:eD,viewType:ej,attributionLabel:eF}=e,eR=(0,h.useRef)(null),{checkExperiment:eO}=(0,P.F)(),{storyPinHeight:eM,fillerPaddingTop:eN}=(0,e9.Z)(),eB=(0,C.ZP)(),eZ=(0,x.ZP)(),eK=(0,g.useLocation)(),eU=(0,f.Z)(),eG=(0,j.Z)(),{width:e$}=(0,v.Z)()||{},{isRTL:eW}=(0,S.B)(),eq=(0,C.HG)(),[eY,eX]=(0,h.useState)(tu(eK,eE)),[eQ,eJ]=(0,h.useState)(!1),e0=(0,h.useRef)(null),e1=(0,h.useRef)(null),e3=eG.isAuth,e8="desktop"!==eB&&eO(e3?"closeup_auth_mweb_remove_streams":"closeup_unauth_mweb_remove_streams").anyEnabled,{anyEnabled:e6}=(0,P.F)().checkExperiment("hfp_hf_ssr_mweb",{dangerouslySkipActivation:!0}),e4=(0,b.vs)(),e5=e6?e4:(0,b.Yc)(),[e7,te]=(0,h.useState)(!0),tt=null!=em?em:e7,[tn,ti]=(0,h.useState)(!0),[tl,ta]=(0,h.useState)(null),[to,ts]=(0,h.useState)(!1),[tm,th]=(0,h.useState)(!1),{clearSeekTime:t_}=(0,T.RC)(),{isSeekingIdeaPin:tg,seekTimes:ty}=(0,T.Hx)(),tv=ty&&ty[e_],tf=(to||!tn)&&!tg&&!tm,tb=null!==(t=eE&&(null===(n=eE[eY].data)||void 0===n?void 0:n.videoBlocks))&&void 0!==t?t:[].find(e=>e.type===ez.h8.VIDEO||3===e.block_type||3===e.blockType),tx={};eE&&eE.length>eY&&eE[eY]&&(tx=(null===(p=eE[eY].data)||void 0===p?void 0:null===(m=p.video)||void 0===m?void 0:null===(_=m.video_list)||void 0===_?void 0:null===(R=_.V_HLSV3_MOBILE)||void 0===R?void 0:R.captions_urls)||{}),tb&&tb.length>eY&&tb[eY]&&(tx=(null===(O=tb[eY].video)||void 0===O?void 0:null===(N=O.videoList)||void 0===N?void 0:null===(B=N.vHLSV3MOBILE)||void 0===B?void 0:B.captionsUrls)||{});let tk=!1;tx&&0!==Object.keys(tx).length&&(tk=!0);let tP=tk&&!eq?eO(e3?"auth_mweb_idea_pin_captions":"unauth_mweb_idea_pin_captions").group:"",[tS,tw]=(0,h.useState)(!1),{paddingY:tA}=(0,ez._P)(eq),tT=4*tA;(0,h.useEffect)(()=>(tf&&(e1.current=setTimeout(()=>{ts(!1)},A.DL)),()=>{clearTimeout(e1.current)}),[tn,tf]),(0,h.useEffect)(()=>{if(e0.current&&tv){let e=e0.current;e.pause(),e.remaining=k.oN-tv*F.gJ,ta({currentTime:tv/k.P6,duration:1,pinId:e_})}},[tv,e_]),(0,h.useEffect)(()=>{"desktop"===eB||tS||ec||(eU({event_type:9314,view_type:1,view_parameter:eD,component:13801,aux_data:{grid_index:eC,pin_id:e_,image_signature:ed,creator_id:ex,story_pin_data_id:eS},clientTrackingParams:W}),tw(!0))},[W,eB,tS,ec,ed,eU,e_,ex,eS,eC,eD]),(0,h.useEffect)(()=>{e3||(0,w.Nh)(z.Uw,z.zu),("desktop"===eB||eu)&&eU({event_type:13,view_type:3,view_parameter:157,component:13283,object_id_str:e_})},[]),(0,D.Z)(()=>(tj(eY),()=>{e0.current&&e0.current instanceof I.B7&&e0.current.clear()}));let tI=(0,h.useCallback)(()=>e8?0:eq?tT:ez.hk+tT,[e8,eq,tT]),tE=null!==(i=td(eE))&&void 0!==i?i:[],tC=tE.length,tD=tE[eY],tj=e=>{ta({currentTime:0,duration:1,pinId:e_}),tR(e)},tF=e=>{tn||ti(!0),tj(e),eX(e)},tR=(0,h.useCallback)(e=>{var t,n,i,l;let a=(null!==(t=null!==(n=null===(i=tE[e].data)||void 0===i?void 0:i.blocks)&&void 0!==n?n:null===(l=tE[e].data)||void 0===l?void 0:l.videoBlocks)&&void 0!==t?t:[]).find(e=>e.type===ez.h8.VIDEO||3===e.block_type||3===e.blockType);e0.current&&e0.current instanceof I.B7&&(e0.current.clear(),e0.current=null),a||(e0.current=new I.B7(e=>{ta({currentTime:e<1?e:1,duration:1,pinId:e_})},()=>{e<tC-1?tF(e+1):tF(0)},k.oN))},[e_,eE,tC]),tL=()=>{eY<tC-1&&tF(eY+1)},tz=e=>{var t;ta({currentTime:0,duration:null!==(t=null==tl?void 0:tl.duration)&&void 0!==t?t:1,pinId:e_}),t_(),e===tC-1&&tF(0),e===eY&&tL()};if(!eE)return null;let tO="number"==typeof eM?`${eM}px`:e9.F,{heightString:tM,marginTop:tN}=function({actionBarHeight:e,actionBarPaddingY:t,availableHeightFormatted:n,availableHeightRaw:i,inRemoveRelatedStreamsExp:l,pinAspectRatio:a,windowWidth:r}){let o=0,s=`${e}px - 2 * ${t}px`,d=`calc(${n} - ${l?"0px":s})`;if("number"==typeof a&&"number"==typeof i){let n=Math.min(r/a,i-e-2*t);d=`${n}px`,o=(i-n)/2}return{heightString:d,marginTop:o}}({actionBarHeight:eq||e8?0:ez.gx,actionBarPaddingY:tT,availableHeightFormatted:tO,availableHeightRaw:eM,inRemoveRelatedStreamsExp:e8,pinAspectRatio:"number"==typeof eh&&eh!==A.ap?eh:null,windowWidth:e$}),tB=eq?"calc(100vw - 110px)":"100%",tZ="number"==typeof eN?"desktop"!==eB?`${eN}px`:eN:e9.F,tK=()=>{ti(!0),ts(!1),e0.current?(e0.current.resume(),tv>0&&t_()):tl||tj(eY)},tU=()=>{ti(!1),e0.current&&e0.current.pause()},tH=(null!==(l=null!==(a=null===(r=tD.data)||void 0===r?void 0:r.blocks)&&void 0!==a?a:null===(o=tD.data)||void 0===o?void 0:o.musicBlocks)&&void 0!==l?l:[]).find(e=>e.type===ez.h8.MUSIC||11===e.blockType),tV=es?{type:"graphqlRef",data:es}:{type:"deprecated",data:e_},tG=tP.startsWith("enabled");return(0,Z.jsxs)(h.Fragment,{children:[(0,Z.jsx)(E.Z,{view:3,viewParameter:157,component:85,children:(0,Z.jsxs)(y.xu,{position:"relative",marginStart:eq?-2:0,marginEnd:eq?-2:0,children:[(0,Z.jsxs)(y.xu,{"data-test-id":"story-pin-full-bleed-slideshow-mweb",height:tO,position:"absolute",overflow:"hidden",top:!0,left:!0,bottom:!0,right:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:null!=er?er:""}},children:[(0,Z.jsx)(y.xu,{id:`idea-pin-closeup-pause-play-scrubber-overlay-${e_}-${null!=$?$:0}`,rounding:eq||e8?0:ez.HG,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",alignSelf:"center",top:!0,left:!0,right:!0,bottom:!0,opacity:tG?.4:.8,dangerouslySetInlineStyle:{__style:{pointerEvents:"none",paddingBottom:tI(),marginBottom:tG?35:0,transition:"all .2s ease-in-out",...tf?{backgroundColor:"rgba(0,0,0,.6)"}:{}}},zIndex:ez.lt,children:(0,Z.jsx)(y.kC,{alignItems:"center",justifyContent:"center",children:tf&&(0,Z.jsx)(y.iP,{onTap:()=>tn?tU():tK(),tapStyle:"compress",children:(0,Z.jsx)(y.xu,{dangerouslySetInlineStyle:{__style:{pointerEvents:"auto"}},"data-test-id":"play-control-button",children:(0,Z.jsx)(y.JO,{icon:tn?"pause":"play",size:48,accessibilityLabel:"Play",color:"light",inline:!0})})})})}),(0,Z.jsxs)(L.Z,{onTouch:()=>{tg||ts(!to)},pressState:"none",children:[tE.map((e,t)=>(0,Z.jsx)(h.Fragment,{children:(0,Z.jsx)(e2,{index:t,currentPageIndex:eY,width:"100%",height:tM,marginTop:tN,children:(0,Z.jsx)(tp,{activeStreamItemIndex:$,anchorRef:eR,currentPageIndex:eY,graphqlRef:es,handlePause:tU,handlePlay:tK,isActive:tn&&eY===t&&!ec,isAuthenticated:e3,isInactiveStreamPin:ec,isSinglePage:1===tE.length,mute:tC>1||tt,onVideoEnded:tz,page:e,pinId:e_,pinAspectRatio:eh,setFlyoutOpen:th,setVideoProgress:ta,storyPinMetadataTemplateType:eT,storyPinMetadataVersion:eI,storyPinMetadataRecipeData:eA,videoProgress:tl})})},`${e_}-${t}`)),!(tC>1)&&e8&&(0,Z.jsx)(y.xu,{alignContent:"center",display:"flex",justifyContent:"center",paddingY:5,children:(0,Z.jsx)(M.Z,{activePageIndex:eY,graphqlRef:es,pageMusicBlockAudioArtistName:null!==(s=null==tH?void 0:null===(d=tH.audio)||void 0===d?void 0:d.artist_name)&&void 0!==s?s:null==tH?void 0:null===(u=tH.audio)||void 0===u?void 0:u.artistName,pageMusicBlockAudioTitle:null==tH?void 0:null===(c=tH.audio)||void 0===c?void 0:c.title,pinId:e_,playbackHandlers:{handlePause:tU,handlePlay:tK},viewParameter:157})}),(0,Z.jsxs)(y.xu,{position:"absolute",display:"flex",direction:"column",bottom:!0,left:!0,right:!0,paddingX:6,dangerouslySetInlineStyle:{__style:{marginBottom:eq||e8?0:ez.hk+tT,background:"linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0))",paddingTop:"6vh"}},zIndex:e8?new y.Ry(1):ez.lp,children:[!tg&&!e8&&(0,Z.jsx)(y.xu,{width:tB,dangerouslySetInlineStyle:{__style:{textShadow:"0px 0px 8px rgb(0 0 0 / 30%)"}},marginBottom:2,children:(0,Z.jsx)(eL,{anchorRef:eR,creatorAdsOnlyProfileSite:null!=q?q:"",creatorBlockedByMe:null!=Y&&Y,creatorExplicitlyFollowedByMe:null!=X&&X,creatorFullName:Q,creatorId:J,creatorImageLargeUrl:ee,creatorImageMediumUrl:et,creatorImageSmallUrl:en,creatorIsAdsOnlyProfile:!!ei,creatorUsername:el,creatorVerified:ea,currentPageIndex:eY,handlePause:tU,handlePlay:tK,graphqlRef:es,isMultiPagePin:tC>1,pinId:e_,pinImageSignature:ed,sponsorFullName:ef,sponsorId:eb,sponsorshipStatus:ek,sponsorUsername:eP,storyPinHasProductPins:null!=ew&&ew,pageMusicBlockAudioArtistName:null!==(K=null==tH?void 0:null===(U=tH.audio)||void 0===U?void 0:U.artist_name)&&void 0!==K?K:null==tH?void 0:null===(H=tH.audio)||void 0===H?void 0:H.artistName,pageMusicBlockAudioTitle:null==tH?void 0:null===(V=tH.audio)||void 0===V?void 0:V.title,pageId:null===(G=tD.data)||void 0===G?void 0:G.id,clientTrackingParams:W})}),(0,Z.jsx)(tr,{activePageIndex:eY,handlePageChange:tF,handlePlay:tK,handlePause:tU,handleMute:tC>1?void 0:()=>{null==ev||ev(!tt),te(!tt)},inRemoveRelatedStreamsExp:e8,isInactiveStreamPin:ec,isPlaying:!ec&&tn,isMuted:tt,pageCount:tE.length,pinId:e_,pinKey:tV,progressInfo:tl,setVideoProgress:ta,showVideoControls:!0,captionsExpGroup:tP})]}),!eq&&!e8&&(0,Z.jsx)(y.xu,{padding:2,position:"absolute",right:!eW,left:eW,top:!0,height:ez.hk,width:ez.R_,zIndex:ez.lp,"data-test-id":"pin-more-button",children:(0,Z.jsx)(y.iP,{onTap:({event:e})=>{e.stopPropagation(),eU({component:229,element:10946,event_type:102,view_type:3,view_parameter:157}),eJ(!0)},children:(0,Z.jsx)(y.hU,{size:"lg",accessibilityLabel:eZ._('more', 'closeup.storyPin.actionBar.contextualMenu', 'Pin more button'),iconColor:e5?"darkGray":"white",icon:"ellipsis"})})}),!e3&&eI&&tc(eI)&&(0,Z.jsxs)(h.Fragment,{children:[(0,Z.jsx)(y.xu,{height:120,position:"absolute",top:!0,width:"100%",dangerouslySetInlineStyle:{__style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%)"}}}),(0,Z.jsx)(y.xu,{height:120,position:"absolute",bottom:!0,width:"100%",dangerouslySetInlineStyle:{__style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%)"}}})]})]}),!eq&&!e8&&(0,Z.jsx)(eH.Z,{clientTrackingParams:W,experience:eo,graphqlRef:es,pinId:e_,pinnedToBoardId:eg,reactionCounts:ey,viewType:ej,viewParameter:eD,component:228,attributionLabel:eF})]}),(0,Z.jsx)(y.xu,{"data-test-id":"filler",height:"auto",dangerouslySetInlineStyle:{__style:{marginTop:ep||e8?0:-64,paddingTop:tZ}}})]})}),eQ&&(0,Z.jsx)(eV.Z,{onDismiss:()=>eJ(!1),pinId:e_})]})}function th({graphqlRef:e,...t}){var n,i,l,a,r,o,s,d,u,c,p,m,h,y,v;let f=(0,_.useFragment)(ts,e),{dominantColor:b,imageSignature:x,nativeCreator:k,pinner:P,sponsorship:S,storyPinData:w,storyPinDataId:T}=f,I=null===(n=f.aggregatedPinData)||void 0===n?void 0:n.entityId,E=null==S?void 0:S.sponsor,C=null==S?void 0:null===(i=S.creator)||void 0===i?void 0:i.entityId,D=null==S?void 0:S.status,j=k||P,F=null==w?void 0:null===(l=w.pages)||void 0===l?void 0:l.map(e=>({type:"graphql",data:e})),L=(0,g.useLocation)(),z=(0,to.Z)(f);if(!f)return(0,Z.jsx)(R.Z,{});let O=null==w?void 0:null===(a=w.metadata)||void 0===a?void 0:a.recipeData,M=(null==w?void 0:null===(r=w.metadata)||void 0===r?void 0:r.canvasAspectRatio)||A.ap;return(0,Z.jsx)(tm,{...t,aggregatedPinDataId:I,creatorAdsOnlyProfileSite:null==j?void 0:j.adsOnlyProfileSite,creatorBlockedByMe:null==j?void 0:j.blockedByMe,creatorExplicitlyFollowedByMe:null==j?void 0:j.explicitlyFollowedByMe,creatorFullName:null==j?void 0:j.fullName,creatorId:null==j?void 0:j.entityId,creatorImageLargeUrl:null==j?void 0:j.imageLargeUrl,creatorImageMediumUrl:null==j?void 0:j.imageMediumUrl,creatorImageSmallUrl:null==j?void 0:j.imageSmallUrl,creatorIsAdsOnlyProfile:null==j?void 0:j.isAdsOnlyProfile,creatorUsername:null!==(o=null==j?void 0:j.username)&&void 0!==o?o:"",creatorVerified:null!==(s=null==j?void 0:null===(d=j.verifiedIdentity)||void 0===d?void 0:d.verified)&&void 0!==s&&s,dominantColor:b,graphqlRef:f,imageSignature:x,pinAspectRatio:M,pinTitle:f.title,reactionCounts:z,sponsorFullName:null==E?void 0:E.fullName,sponsorId:null==E?void 0:E.entityId,sponsorshipCreatorId:C,sponsorshipStatus:D,sponsorUsername:null==E?void 0:E.username,storyPinDataId:T,storyPinHasProductPins:null!==(u=null==w?void 0:w.hasProductPins)&&void 0!==u&&u,storyPinPages:F,storyPinMetadataRecipeData:{cooking_time:null!==(c=null==O?void 0:O.cookingTime)&&void 0!==c?c:0,prep_time:null!==(p=null==O?void 0:O.prepTime)&&void 0!==p?p:0,serving_size:null!==(m=null==O?void 0:O.servingSize)&&void 0!==m?m:0},storyPinMetadataTemplateType:null==w?void 0:null===(h=w.metadata)||void 0===h?void 0:h.templateType,storyPinMetadataVersion:null==w?void 0:null===(y=w.metadata)||void 0===y?void 0:y.version,attributionLabel:null===(v=L.state)||void 0===v?void 0:v.attributionLabel})}function t_(e){var t,n,i,l,a,r,o,s,d,u,c;let{pinId:p}=e,m=(0,O.S6)()(p),h=(0,g.useLocation)();if(!m)return(0,Z.jsx)(R.Z,{});let{aggregated_pin_data:_,dominant_color:y,image_signature:v,native_creator:f,pinner:b,reaction_counts:x,sponsorship:k,story_pin_data_id:P,story_pin_data:S}=m,w=null==_?void 0:_.id,T=f||b,I=null==k?void 0:k.sponsor,E=null==k?void 0:null===(t=k.creator)||void 0===t?void 0:t.id,C=null==k?void 0:k.status,D=null==S?void 0:null===(n=S.pages)||void 0===n?void 0:n.map(e=>({type:"legacy",data:e})),j=(null==S?void 0:null===(i=S.metadata)||void 0===i?void 0:i.canvas_aspect_ratio)||A.ap;return(0,Z.jsx)(tm,{...e,aggregatedPinDataId:w,creatorAdsOnlyProfileSite:null==T?void 0:T.ads_only_profile_site,creatorBlockedByMe:null==T?void 0:T.blocked_by_me,creatorExplicitlyFollowedByMe:null==T?void 0:T.explicitly_followed_by_me,creatorFullName:null==T?void 0:T.full_name,creatorId:null==T?void 0:T.id,creatorImageLargeUrl:null==T?void 0:T.image_large_url,creatorImageMediumUrl:null==T?void 0:T.image_medium_url,creatorImageSmallUrl:null==T?void 0:T.image_small_url,creatorIsAdsOnlyProfile:null==T?void 0:T.is_ads_only_profile,creatorUsername:null!==(l=null==T?void 0:T.username)&&void 0!==l?l:"",creatorVerified:null!==(a=null==T?void 0:null===(r=T.verified_identity)||void 0===r?void 0:r.verified)&&void 0!==a&&a,dominantColor:y,imageSignature:v,pinAspectRatio:j,pinTitle:m.title,reactionCounts:x,sponsorFullName:null==I?void 0:I.full_name,sponsorId:null==I?void 0:I.id,sponsorshipCreatorId:E,sponsorshipStatus:C,sponsorUsername:null==I?void 0:I.username,storyPinDataId:P,storyPinHasProductPins:null!==(o=null==S?void 0:S.has_product_pins)&&void 0!==o&&o,storyPinMetadataRecipeData:null==S?void 0:null===(s=S.metadata)||void 0===s?void 0:s.recipe_data,storyPinMetadataTemplateType:null==S?void 0:null===(d=S.metadata)||void 0===d?void 0:d.template_type,storyPinMetadataVersion:null==S?void 0:null===(u=S.metadata)||void 0===u?void 0:u.version,storyPinPages:D,attributionLabel:null===(c=h.state)||void 0===c?void 0:c.attributionLabel})}function tg({graphqlRef:e,...t}){return e?(0,Z.jsx)(th,{graphqlRef:e,...t}):(0,Z.jsx)(t_,{...t})}},594635:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(923297),l=n(927220),a=n(350948);function r(e,t,n,r){switch(e){case 0:{let e=parseInt(t,10);return function({isShortened:e,minutes:t,i18n:n}){if(!t)return"";if(e)return(0,l.Z)(t,n).join("");let r=(0,a.Ys)((0,i.X)({m:t}),n);if(!r)return"";let o=r.join(""),s=n._('Cook Time', 'ideapin.basics.cookTime', 'The cook time for the food in this pin');return`${s}: ${o}`}({minutes:e,i18n:n,isShortened:r})}case 1:{let e=parseInt(t,10);return function({servingSize:e,i18n:t}){return e?1===e?`${e} ${t._('serving', 'ideapin.basics.servings', 'The number of servings this recipe makes')}`:`${e} ${t._('servings', 'ideapin.basics.servings', 'The number of servings this recipe makes')}`:""}({servingSize:e,i18n:n})}case 2:return function({difficulty:e,i18n:t}){let n={1:t._('Easy', 'closeup.storyPin.basicsLayout.difficulty', 'Easy difficulty level'),2:t._('Intermediate', 'closeup.storyPin.basicsLayout.difficulty', 'Intermediate difficulty level'),3:t._('Expert', 'closeup.storyPin.basicsLayout.difficulty', 'Expert difficulty level')},i=t._('Difficulty', 'ideapin.basics.difficulty', 'The difficulty for the activity in this pin');return`${i}: ${n[null!=e?e:"1"]}`}({difficulty:t,i18n:n});default:return""}}},57009:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=e=>e.join(` • `)},969541:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var i,l=n(667294),a=n(167912),r=n(883119),o=n(773285),s=n(224496),d=n(430323),u=n(50286),c=n(19121),p=n(350118),m=n(252417),h=n(509886),_=n(785893);let g=void 0!==i?i:i=n(948529);function y({activeStreamItemIndex:e,isActive:t,isSinglePage:n=!1,muteVideos:i,onFlyoutClose:a,onFlyoutOpen:p,onVideoEnded:g,pinId:y,maybeGraphqlRef:v,pinAspectRatio:f,pageId:b,pageLayout:x,pageShouldMute:k,pageHasImageAdjusted:P,pageStyleBackgroundColor:S,pageBlocks:w,hasVideoBlock:A,videoProgress:T,setVideoProgress:I}){let E=(0,u.HG)(),C=(0,c.Z)(),{checkExperiment:D}=(0,o.F)(),j=!E&&D(C.isAuth?"closeup_auth_mweb_remove_streams":"closeup_unauth_mweb_remove_streams").anyEnabled,F=0===x;return(0,_.jsx)(d.Z,{view:3,viewParameter:157,component:F?227:228,...A?{element:10957}:null,children:(0,_.jsx)(l.Fragment,{children:(0,_.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:{background:S||"#ffffff"}},position:"absolute",top:!0,left:!0,bottom:!0,right:!0,overflow:"hidden",rounding:E||j?0:m.HG,zIndex:s.Ls,children:(0,_.jsx)(r.xu,{position:"relative",height:`calc(100vh -
384
+ ${E?0:m.gx+8*m.r4}px
385
+ )`,width:"100%",children:(0,_.jsx)(h.Z,{activeStreamItemIndex:e,isActive:t,blocks:w,onFlyoutClose:a,onFlyoutOpen:p,pinId:y,muteVideos:k||!!i,isCoverImageWithTitle:F&&!P,onVideoTimeChange:e=>{I&&I(e)},onVideoEnded:g,pageId:b,videoProgressInfo:T,pinAspectRatio:f,maybeGraphqlRef:v,isSinglePage:n})})})})})}function v(e){var t,n,i,l,a;let r=(0,p.S6)()(e.pinId),o=(null!==(t=null==r?void 0:null===(n=r.story_pin_data)||void 0===n?void 0:n.pages)&&void 0!==t?t:[]).find(t=>t.id===e.pageId),s=(null!==(i=null==o?void 0:o.blocks)&&void 0!==i?i:[]).find(e=>e.type===m.h8.MUSIC),d=(null!==(l=null==o?void 0:o.blocks)&&void 0!==l?l:[]).some(e=>e.type===m.h8.VIDEO);return(0,_.jsx)(y,{...e,maybeGraphqlRef:null,pageId:null==o?void 0:o.id,pageLayout:null==o?void 0:o.layout,pageShouldMute:null==o?void 0:o.should_mute,pageHasImageAdjusted:!!(null!=o&&o.image_adjusted),pageStyleBackgroundColor:null==o?void 0:null===(a=o.style)||void 0===a?void 0:a.background_color,pageBlocks:null==o?void 0:o.blocks,musicBlock:s,hasVideoBlock:d})}function f({graphqlRef:e,...t}){var n,i,l,r,o,s;let d=(0,a.useFragment)(g,e),u=(null!==(n=null===(i=d.storyPinData)||void 0===i?void 0:i.pages)&&void 0!==n?n:[]).find(e=>e.storyPageId===t.pageId),c=!!(null!=u&&u.dominantColorAdjusted),p=(null!==(r=null==u?void 0:u.blocks)&&void 0!==r?r:[]).find(e=>11===e.blockType),m=(null!==(o=null==u?void 0:u.blocks)&&void 0!==o?o:[]).some(e=>3===e.blockType);return(0,_.jsx)(y,{...t,maybeGraphqlRef:d,pageId:null==u?void 0:u.storyPageId,pageLayout:null==u?void 0:u.layout,pageShouldMute:null==u?void 0:u.shouldMute,pageHasImageAdjusted:c,pageStyleBackgroundColor:null==u?void 0:null===(s=u.style)||void 0===s?void 0:s.backgroundColor,pageBlocks:null,musicBlock:p,hasVideoBlock:m})}function b({graphqlRef:e,...t}){return e?(0,_.jsx)(f,{graphqlRef:e,...t}):(0,_.jsx)(v,{...t})}},248299:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(883119),l=n(898781),a=n(166300),r=n(785893);function o({isPinRep:e}){let t=(0,l.ZP)(),n=e?"default":"inverse",o=(0,r.jsx)(i.xu,{padding:e?1:0,"data-test-id":"unavailable-pin",children:(0,r.jsx)(i.xu,{color:e?"secondary":"dark",top:!0,height:e?314:"100vh",position:e?"static":"absolute",rounding:e?4:0,width:"100%",children:(0,r.jsxs)(i.kC,{height:"100%",direction:"column",justifyContent:"center",alignItems:"center",children:[(0,r.jsx)(i.xu,{paddingY:4,children:(0,r.jsx)(i.JO,{accessibilityLabel:t._('Pin not available', 'story-pin.Closeup.UnavailableStoryPin.icon.accessibilityLabel', 'Accessibility label on icon'),color:n,icon:"alert",size:20})}),(0,r.jsx)(i.xv,{align:"center",color:n,weight:"bold",children:t._('Unavailable', 'story-pin.Closeup.UnavailableStoryPin.Unavailable', 'Text on an unavailable idea Pin that has been deleted')}),(0,r.jsx)(i.xu,{paddingY:1,children:(0,r.jsx)(i.xv,{align:"center",color:n,children:t._('Removed by the creator', 'story-pin.Closeup.UnavailableStoryPin.Removed', 'Text on an unavailable idea Pin explaining it has been removed by its creator')})})]})})});return e?o:(0,r.jsx)(i.xu,{height:"100vh",children:(0,r.jsx)(a.Z,{children:o})})}},252417:(e,t,n)=>{"use strict";n.d(t,{Ai:()=>P,B5:()=>h,CR:()=>u,Cc:()=>r,HG:()=>f,R_:()=>s,Wz:()=>o,_P:()=>v,dP:()=>S,dX:()=>x,gx:()=>c,h8:()=>l,hk:()=>d,lp:()=>g,lt:()=>m,oe:()=>b,r4:()=>y,rM:()=>k,tD:()=>p});var i=n(883119);let l={GENERIC_STICKER:"story_pin_generic_interactive_sticker_block",HEADING:"story_pin_heading_block",IMAGE:"story_pin_image_block",INGREDIENT:"story_pin_ingredient_block",LINK:"story_pin_link_block",MENTION_STICKER:"story_pin_mention_sticker_block",MUSIC:"story_pin_music_block",PARAGRAPH:"story_pin_paragraph_block",PRODUCT_STICKER:"story_pin_product_sticker_block",SUPPLY:"story_pin_supply_block",VIDEO:"story_pin_video_block",VTO_MAKEUP_STICKER:"story_pin_virtual_try_on_makeup_sticker_block"},a={alignment:1,hex_color:"#111111",highlight_color:"#FFFFFF",vertical_alignment:1},r={...a,font:{default_size:28,letter_spacing:-.4,line_height:1.25,name:"Graphik Regular",url:"https://pinterest-taipei.s3.amazonaws.com/Graphik-Regular.otf"},font_size:28},o={...a,font:{default_size:48,letter_spacing:0,line_height:1,name:"Graphik Bold Italic",url:"https://pinterest-taipei.s3.amazonaws.com/Graphik-Bold-Italic.otf"},font_size:48},s=64,d=64,u=48,c=48,p=new i.Ry(5),m=new i.H3([p]),h=new i.H3([m]),_=new i.H3([p]),g=new i.H3([_]),y=4;function v(e){return e?{paddingX:0,paddingY:0}:{paddingX:2,paddingY:y}}let f=6,b=47,x=8,k=4,P=5,S=3},35919:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var i,l=n(667294),a=n(167912),r=n(883119),o=n(485710),s=n(288889),d=n(319530),u=n(112690),c=n(643010),p=n(356997),m=n(898781),h=n(391254),_=n(413252),g=n(939106),y=n(50286),v=n(19121),f=n(856306),b=n(358381),x=n(350118),k=n(642639),P=n(788645),S=n(785893);let w=void 0!==i?i:i=n(53811);function A({fullName:e,keyValueBlocks:t,imageLargeUrl:n,imageMediumUrl:i,imageSmallUrl:a,link:x,listBlocks:w,pinId:A,title:T,templateType:I,username:E,description:C,graphqlRef:D,clientTrackingParams:j}){let F=(0,m.ZP)(),R=(0,u.Z)(),L=(0,y.HG)(),z=(0,v.Z)(),O=(0,c.vs)(),M=(0,f.Z)({clickthroughInterstitialExperience:null,pinId:null!=A?A:""}),[N,B]=(0,l.useState)(!1),Z=(t||[]).map((e,t)=>{var n;return(0,S.jsx)(k.Z,{categoryType:null!==(n=e.categoryType)&&void 0!==n?n:e.category_type,value:e.value,type:"compact",size:"300"},`key-val-component-${t}`)}).filter(e=>null!=e);if(!L)return(0,S.jsxs)(r.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",gap:4,children:[(0,S.jsx)(h.Z,{unsafeCSS:`
386
+ li.light-mode::marker {
387
+ color: #111;
388
+ }
389
+
390
+ li.dark-mode::marker {
391
+ color: #fff;
392
+ }
393
+ `}),(0,S.jsx)(b.Z,{justifyContent:"start",pinId:A,graphqlRef:D,hideFollowerCount:!0,viewerId:z.id,clientTrackingParams:j}),(0,S.jsx)(r.X6,{align:"start",accessibilityLevel:1,overflow:"breakWord",size:"400",children:T}),(0,S.jsx)(g.Z,{items:Z.filter(e=>""!==e),color:O?"light":"default"}),C&&C.trim()?(0,S.jsx)(r.xu,{children:(0,S.jsx)(_.Z,{Wrapper:({children:e})=>(0,S.jsx)(r.xv,{size:"200",align:"start",children:e}),isExpanded:N,description:C,maxHeight:38,handleToggle:()=>{B(!N)}})}):null,(w||[]).map((e,t)=>(0,S.jsxs)(r.kC,{direction:"column",gap:4,children:[e.heading?(0,S.jsx)(r.xv,{size:"300",weight:"bold",children:e.heading}):null,e.blocks&&e.blocks.length>0?(0,S.jsx)("ul",{style:{listStyleType:"disc",paddingInlineStart:16,margin:0},children:e.blocks.map((t,n)=>(0,S.jsx)("li",{style:{listStyle:"disc"},className:O?"dark-mode":"light-mode",children:(0,S.jsx)(r.xv,{size:"300",overflow:"normal",inline:!0,children:t.text?t.text:""})},`item-${n}-${e.heading||"empty"}`))},`${e.heading||"empty"}-${t}-list`):null]},`${e.heading||"empty"}-${t}-listHeading`))]});let K=new Map([[null,F._('Notes', 'Closeup.StoryPinBasicsLayout.notesLayoutTitle', 'Label for button to expand notes Story Pin details')],[1,F._('Ingredients', 'Closeup.StoryPinBasicsLayout.recipeLayoutTitle', 'Label for button to expand ingredients Story Pin details')],[2,F._('Supplies', 'Closeup.StoryPinBasicsLayout.diyHomeLayoutTitle', 'Label for button to expand supplies Story Pin details')]]);return(0,S.jsxs)(r.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:[!L&&(0,S.jsxs)(r.xu,{display:"flex",justifyContent:"center",alignItems:"center",direction:"column",paddingY:4,children:[x&&(0,S.jsx)(r.xu,{marginBottom:2,"data-test-id":"link",children:(0,S.jsx)(r.rU,{href:x.url,target:"blank",underline:"always",onClick:()=>{R({view_type:132,view_parameter:3549,element:12971,event_type:102,aux_data:{pin_id:A,url:null==x?void 0:x.url}}),M()},children:(0,S.jsx)(r.xv,{children:x.domain})})}),(0,S.jsx)(P.Z,{dir:(0,P.j)(T),children:(0,S.jsx)(r.X6,{align:"center",size:"500",children:T})}),(0,S.jsxs)(r.Tg,{fullWidth:!1,href:`/${E}/`,children:[(0,S.jsx)(r.xu,{padding:2,children:(0,S.jsx)(r.xu,{height:44,width:44,children:(0,S.jsx)(p.qE,{name:null!=e?e:"",size:"fit",src:n||i||a||void 0})})}),(0,S.jsxs)(r.xu,{children:[(0,S.jsx)(r.xv,{inline:!0,size:"300",children:F._('By', 'closeup.storyPin.basicsLayout.publishedBy.label', 'Label for native creator')})," ",(0,S.jsx)(r.xv,{inline:!0,size:"300",weight:"bold",children:e})]})]})]}),w&&w.length>0&&(0,S.jsx)(r.xu,{marginBottom:8,children:(0,S.jsx)(o.Z,{heading:K.get(I),children:(0,S.jsx)(d.Z,{children:w.map((e,t)=>{var n;let i=`${e.heading||"empty"}-${t}-listHeading`;return(0,S.jsxs)(l.Fragment,{children:[(0,S.jsx)(r.xu,{paddingY:2,marginTop:2}),(0,S.jsx)(r.xv,{size:s.n,weight:"bold",children:e.heading}),(null!==(n=e.blocks)&&void 0!==n?n:[]).map((t,n)=>{let i=`item-${n}-${e.heading||"empty"}`;return(0,S.jsx)(l.Fragment,{children:(0,S.jsx)(r.xu,{marginBottom:1,children:(0,S.jsxs)(r.xv,{size:s.n,children:["• ",t.text?t.text:""]})})},i)})]},i)})})})})]})}function T({pinId:e,graphqlRef:t,...n}){var i,l;let a=(0,x.S6)()(e),r=(null==a?void 0:null===(i=a.story_pin_data)||void 0===i?void 0:null===(l=i.metadata)||void 0===l?void 0:l.basics)||{},{key_value_blocks:o,list_blocks:s}=r;return(0,S.jsx)(A,{...n,pinId:e,keyValueBlocks:o,listBlocks:s})}function I({pinId:e,graphqlRef:t,...n}){var i,l;let r=(0,a.useFragment)(w,t),o=(null==r?void 0:null===(i=r.storyPinData)||void 0===i?void 0:null===(l=i.metadata)||void 0===l?void 0:l.basics)||{};return(0,S.jsx)(A,{...n,pinId:e,keyValueBlocks:o.keyValueBlocks,listBlocks:o.listBlocks,graphqlRef:r})}function E(e){return e.graphqlRef?(0,S.jsx)(I,{graphqlRef:e.graphqlRef,...e}):(0,S.jsx)(T,{...e})}},642639:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var i=n(883119),l=n(898781),a=n(349700),r=n(923297),o=n(833049),s=n(927220),d=n(785893);let u=({minutes:e,type:t,size:n})=>{let a=(0,l.ZP)();if("compact"===t){let t=(0,s.Z)(e,a);return(0,d.jsx)(i.xv,{inline:!0,size:n,children:t})}let u=(0,o.Z)((0,r.X)({m:e}),a);return(0,d.jsxs)(i.xu,{children:[(0,d.jsx)(i.xv,{weight:"bold",inline:!0,size:n,children:a._('Cook Time: ', 'closeup.storyPin.basicsLayout.cookTime.label', 'Label for cook time (ex. Cook Time: 3 minutes)')}),(0,d.jsx)(i.xv,{inline:!0,size:n,children:u})]})},c=({servingSize:e,type:t,size:n})=>{let r=(0,l.ZP)(),o=(0,a.nk)(r.ngettext('{{servingSize}} serving', '{{servingSize}} servings', e, 'number of servings for a recipe', 'number of servings for a recipe'),{servingSize:e});return"compact"===t?(0,d.jsx)(i.xv,{inline:!0,size:n,children:o}):(0,d.jsxs)(i.xu,{children:[(0,d.jsx)(i.xv,{weight:"bold",inline:!0,size:n,children:r._('Serving Size: ', 'closeup.storyPin.basicsLayout.servingSize.label', 'Label for serving size')}),(0,d.jsx)(i.xv,{inline:!0,size:n,children:o})]})},p=({difficulty:e,type:t,size:n})=>{let a=(0,l.ZP)(),r={1:a._('Easy', 'closeup.storyPin.basicsLayout.difficulty', 'Easy difficulty level'),2:a._('Intermediate', 'closeup.storyPin.basicsLayout.difficulty', 'Intermediate difficulty level'),3:a._('Expert', 'closeup.storyPin.basicsLayout.difficulty', 'Expert difficulty level')};return(0,d.jsxs)(i.xu,{children:[(0,d.jsx)(i.xv,{weight:"compact"===t?"normal":"bold",inline:!0,size:n,children:a._('Difficulty: ', 'closeup.storyPin.basicsLayout.difficulty.label', 'Label for difficulty')}),(0,d.jsx)(i.xv,{inline:!0,size:n,children:r[null!=e?e:"1"]})]})};function m({categoryType:e,value:t,type:n,size:i}){if(0===e){let e=parseInt(t,10);return e?(0,d.jsx)(u,{minutes:e,type:n,size:i}):null}if(1===e){let e=parseInt(t,10);return(0,d.jsx)(c,{servingSize:e,type:n,size:i})}return 2===e?(0,d.jsx)(p,{difficulty:t,type:n,size:i}):null}},490444:(e,t,n)=>{"use strict";n.d(t,{BN:()=>l,RK:()=>i,d3:()=>r,xm:()=>a});let i=({alignment:e,verticalAlignment:t})=>{let n={alignItems:"flex-start",display:"flex",height:"100%",textAlign:"left",width:"100%"};return 1===t?n.alignItems="center":2===t&&(n.alignItems="flex-end"),1===e&&(n.textAlign="center"),n},l=({fontSize:e,hexColor:t,highlightColor:n,letterSpacing:i,lineHeight:l,name:a})=>({fontSize:e,letterSpacing:i,lineHeight:l,color:t,fontFamily:a,margin:0,textShadow:n||(null==t?void 0:t.toLowerCase())!=="#ffffff"?void 0:"0px 1px 4px rgba(0, 0, 0, 0.2)",width:"100%",...n?{backgroundColor:n,borderRadius:5,padding:".05em .2em"}:{}}),a=({highlightColor:e})=>({...e?{backgroundColor:e,borderRadius:5,padding:".05em .2em"}:{}}),r=({letterSpacing:e,lineHeight:t,name:n,url:i})=>({fontFamily:n,fontGroup:"",fontOverrides:{letterSpacing:e,lineHeight:t,textTransform:!1},format:"truetype",defaultStyle:0,styles:[{name:"Regular",fontStyle:"",fontWeight:"normal",fontUrl:i}]})},46249:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i,l=n(667294),a=n(167912);let r=void 0!==i?i:i=n(697780),o=e=>{let t=(0,a.useFragment)(r,e),n=(0,l.useMemo)(()=>{if(!t)return null;let e={"750x":t.imageSpec_750x?{height:t.imageSpec_750x.height||void 0,url:t.imageSpec_750x.url||void 0,width:t.imageSpec_750x.width||void 0}:void 0,"236x":t.imageSpec_236x?{height:t.imageSpec_236x.height||void 0,url:t.imageSpec_236x.url||void 0,width:t.imageSpec_236x.width||void 0}:void 0,"1200x":t.imageSpec_1200x?{height:t.imageSpec_1200x.height||void 0,url:t.imageSpec_1200x.url||void 0,width:t.imageSpec_1200x.width||void 0}:void 0,original:t.imageSpec_orig?{height:t.imageSpec_orig.height||void 0,url:t.imageSpec_orig.url||void 0,width:t.imageSpec_orig.width||void 0}:void 0},n={"750x":t.imageAdjustedSpec_750x?{height:t.imageAdjustedSpec_750x.height||void 0,url:t.imageAdjustedSpec_750x.url||void 0,width:t.imageAdjustedSpec_750x.width||void 0}:void 0,"236x":t.imageAdjustedSpec_236x?{height:t.imageAdjustedSpec_236x.height||void 0,url:t.imageAdjustedSpec_236x.url||void 0,width:t.imageAdjustedSpec_236x.width||void 0}:void 0,"1200x":t.imageAdjustedSpec_1200x?{height:t.imageAdjustedSpec_1200x.height||void 0,url:t.imageAdjustedSpec_1200x.url||void 0,width:t.imageAdjustedSpec_1200x.width||void 0}:void 0,original:t.imageAdjustedSpec_orig?{height:t.imageAdjustedSpec_orig.height||void 0,url:t.imageAdjustedSpec_orig.url||void 0,width:t.imageAdjustedSpec_orig.width||void 0}:void 0},i=Object.values(n).some(e=>!!e),l=Object.values(e).some(e=>!!e);return{imageImages:e,imageAdjustedImages:n,hasImageAdjustedImages:i,hasImageImages:l}},[t]);return n}},889760:(e,t,n)=>{"use strict";n.d(t,{h:()=>r,m:()=>o});var i=n(537347),l=n.n(i),a=n(490444);function r(e,t){if("undefined"==typeof window)return Promise.resolve();let n=document.querySelector(`#${t}`);if(n)return Promise.resolve();(n=document.createElement("style")).setAttribute("id",t),e.filter(e=>!!e.fontFaceUrl).forEach(e=>{n&&e.fontFaceUrl&&n.appendChild(document.createTextNode(`@import url('${e.fontFaceUrl}');`))});let{head:i}=document;if(!i)return Promise.resolve();let a=document.createElement("style");a.setAttribute("id",`${t}-font-faces`),i.appendChild(n),i.appendChild(a);let r=[];return e.forEach(e=>{e&&e.styles&&e.styles.forEach(t=>{if(e.format&&t.fontUrl&&a&&a.sheet){var n;let i=a.sheet;i.insertRule(`
394
+ @font-face {
395
+ font-family: "${null!==(n=e.fontFamily)&&void 0!==n?n:""}";
396
+ font-style: "${t.fontStyle}";
397
+ font-weight: "${t.fontWeight}";
398
+ src: url("${t.fontUrl}") format("${e.format}");
399
+ }`)}r.push(new(l())(e.fontFamily,{weight:t.fontWeight,style:t.fontStyle}).load())})}),Promise.all(r)}function o(e){let{hasFont:t,letterSpacing:n,lineHeight:i,name:l,url:o}=e||{};t&&r([(0,a.d3)({letterSpacing:n,lineHeight:i,name:l,url:o})],(null!=l?l:"").split(" ").join(""))}},764340:(e,t,n)=>{"use strict";n.d(t,{F:()=>d,Z:()=>u});var i=n(667294),l=n(773285),a=n(501338),r=n(50286),o=n(19121),s=n(252417);let d="100vh";function u(){let{isAuth:e}=(0,o.Z)(),t=(0,r.ZP)(),n="desktop"===t,{checkExperiment:d}=(0,l.F)(),u=!n&&d(e?"closeup_auth_mweb_remove_streams":"closeup_unauth_mweb_remove_streams").anyEnabled,{paddingY:c}=(0,s._P)(n),p=4*c,[m,h]=(0,i.useState)(null),[_,g]=(0,i.useState)(null),y="desktop"!==t&&!u,v=(0,i.useCallback)(()=>{var n;let i=null===(n=window)||void 0===n?void 0:n.innerHeight;if(!e){let e="tablet"===t?a.Pw:a.SB;i-=e}u&&(i-=s.hk+p),h(i),g(y?i+2:i)},[e,u,y,t,p]);return(0,i.useEffect)(()=>("undefined"!=typeof window&&v(),window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)}),[t,e,y,v]),{storyPinHeight:m,fillerPaddingTop:_}}},788645:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r,j:()=>a});var i=n(785893);let l=RegExp("^[^A-Za-z\xc0-\xd6\xd8-\xf6A-Za-z\xc0-\xd6\xd8-\xf6︀-﹯﻽-￿]*[֑-߿יִ-﷽ﹰ-ﻼ]");function a(e){return l.test(e||"")?"rtl":"ltr"}function r({children:e,dir:t="auto"}){return(0,i.jsx)("div",{dir:t,children:e})}},854907:(e,t,n)=>{"use strict";function i(e){let t=[],n="";for(let i of e)if(n){let e=!!i.match(/\s/),l=!!n.match(/\s/);if(e===l)n+=i;else if(!l&&n.includes("-")){let e=0;for(let i=0;i<n.length;i+=1)"-"===n[i]&&(t.push(n.substring(e,i+1)),e=i+1);t.push(n.substring(e)),n=i}else t.push(n),n=i}else n=i;return n.length&&t.push(n),t}function l({boxHeight:e,boxWidth:t,font:n,startFontSize:l,text:a}){var r,o;if("undefined"==typeof document||!document.body)return{fontSize:l,lines:[]};let{body:s}=document,d=document.createElement("div");s.appendChild(d);let u=null==a?void 0:a.split(/\r?\n/g),c=l,p=(null===(r=n.fontOverrides)||void 0===r?void 0:r.letterSpacing)!=null?`${n.fontOverrides.letterSpacing}px`:void 0,m=(null===(o=n.fontOverrides)||void 0===o?void 0:o.lineHeight)||1.1,h={letterSpacing:p,lineHeight:String(m),fontFamily:n.fontFamily,fontSize:`${c}px`,position:"absolute",visibility:"hidden",width:`${t}px`};Object.assign(d.style,h);let _=document.createElement("div");for(_.style.display="inline",d.appendChild(_),(null!=u?u:[]).forEach((e,t)=>{let n=document.createElement("span");n.style.wordBreak="break-word",_.appendChild(n),n.appendChild(document.createTextNode(e)),t!==(null!=a?a:"").length-1&&n.appendChild(document.createElement("br"))});(_.offsetHeight>e||_.offsetWidth>t)&&c>0;)c-=1,d.style.fontSize=`${c}px`;return _.remove(),d.remove(),{fontSize:c,lines:c>0?function({font:e,fontSize:t,textList:n,width:l}){var a,r;if("undefined"==typeof document||!document.body||l<=0||t<=0)return[];let{body:o}=document,s=document.createElement("div");o.appendChild(s);let d=(null===(a=e.fontOverrides)||void 0===a?void 0:a.letterSpacing)!=null?`${e.fontOverrides.letterSpacing}px`:void 0,u=(null===(r=e.fontOverrides)||void 0===r?void 0:r.lineHeight)||1.1,c={letterSpacing:d,lineHeight:String(u),fontFamily:e.fontFamily,fontSize:`${t}px`,visibility:"hidden"};Object.assign(s.style,c);let p=document.createElement("div");p.style.display="inline",s.appendChild(p);let m=document.createTextNode("");p.appendChild(m);let h=[],_="",g=e=>{let t=e.trim();return m.textContent=t,{text:t,width:p.offsetWidth}},y=e=>{let t=!!e.match(/\s/),n=0===_.length;if(m.textContent=`${_}${e}`,p.offsetWidth>l){if(t)h.push(g(_)),_="";else if(n)for(let t of e)y(t);else h.push(g(_)),_="",y(e)}else _+=e};for(let e of null!=n?n:[]){0===e.length&&h.push(g(_));let t=i(e);t.forEach(e=>y(e)),_.length&&(h.push(g(_)),_="")}return p.remove(),s.remove(),h}({font:n,fontSize:c,textList:u,width:t}):[]}}function a(e){let t=window.getComputedStyle(e,null),n=parseFloat(t.getPropertyValue("height").replace("px","")),i=parseFloat(t.getPropertyValue("font-size").replace("px","")),l=parseFloat(t.getPropertyValue("line-height").replace("px",""));Number.isNaN(l)&&(l=1.2*i);let a=Math.ceil(n/l);return a}n.d(t,{KV:()=>l,Yd:()=>i,xW:()=>a})},829084:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(66743);function l(e){var t;return{defaultStyle:0,fontFamily:null!==(t=e.name)&&void 0!==t?t:"",fontGroup:i.gu,fontOverrides:{letterSpacing:e.letter_spacing,lineHeight:e.line_height},format:"truetype",id:e.id,styles:[{fontStyle:"",fontUrl:e.url,fontWeight:"normal",name:"normal"}]}}},296342:(e,t,n)=>{"use strict";n.d(t,{Af:()=>u,Ei:()=>s,II:()=>x,Lh:()=>y,U:()=>_,UC:()=>c,Zy:()=>o,dD:()=>a,er:()=>g,hb:()=>f,in:()=>d,j7:()=>v,kX:()=>m,me:()=>p,mx:()=>b,n5:()=>r,q8:()=>h,xH:()=>l});var i=n(224496);let l=1048576,a=3,r=20,o=3,s=10,d=50,u=10,c=720,p=1080,m=1200,h=375,_=h/i.ap,g=1200,y="#FFFFFF",v={blockStyle:{x_coord:4.27,y_coord:46.82,width:91.46,height:26.35,corner_radius:0},style:{font_id:6,hex_color:"#FFFFFF",font_size:36,alignment:1},text:"",type:"story_pin_paragraph_block"},f=420,b=325,x=768},540923:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var i=n(667294),l=n(883119),a=n(898781),r=n(882801),o=n(785893);let s=e=>0===e?0:2,d=({children:e,dangerouslySetInlineStyle:t,marginTop:n})=>(0,o.jsx)(l.xu,{dangerouslySetInlineStyle:t,"data-test-id":"structured-description",marginTop:n,children:e}),u=({content:e,order:t,type:n})=>{if(!e)return null;let i=n===r.X.HEADER,a=[r.X.HEADER,r.X.BOLD].includes(n),u=t>0&&i?4:s(t);return(0,o.jsx)(d,{marginTop:u,children:(0,o.jsx)(l.xv,{size:"200",weight:a?"bold":"normal",children:e})})},c=({content:e,order:t})=>e?(0,o.jsx)(d,{marginTop:s(t),children:e}):null,p=({content:e,order:t})=>Array.isArray(e)&&0!==e.length?(0,o.jsx)(d,{marginTop:s(t),children:e.map(e=>(0,o.jsxs)(l.xu,{display:"flex",direction:"row",marginStart:1,marginTop:1,children:[(0,o.jsx)(l.xv,{size:"200",weight:"bold",inline:!0,children:"\xb7"}),(0,o.jsx)(l.xu,{marginStart:1,children:(0,o.jsx)(l.xv,{size:"200",children:e})})]},e))}):null,m=({accessibilityLabel:e,content:t,order:n})=>t&&"object"==typeof t?(0,o.jsx)(d,{dangerouslySetInlineStyle:{__style:{borderTop:"1px solid #ddd",borderBottom:"1px solid #ddd"}},marginTop:s(n),children:(0,o.jsx)(l.iA,{accessibilityLabel:e,children:(0,o.jsx)(l.iA.Body,{children:Object.entries(t).map(([e,t],n)=>(0,o.jsxs)(l.iA.Row,{children:[(0,o.jsx)(l.iA.Cell,{children:(0,o.jsx)(l.xv,{size:"100",weight:"bold",children:e})}),(0,o.jsx)(l.iA.Cell,{children:(0,o.jsx)(l.xv,{size:"100",children:String(t)})})]},n))})})}):null,h=({accessibilityLabel:e,content:t,order:n})=>{if(!Array.isArray(t)||t.length<2)return null;let i=t[0],a=t.slice(1);return(0,o.jsx)(d,{dangerouslySetInlineStyle:{__style:{borderTop:"1px solid #ddd",borderBottom:"1px solid #ddd"}},marginTop:s(n),children:(0,o.jsxs)(l.iA,{accessibilityLabel:e,children:[(0,o.jsx)(l.iA.Header,{children:(0,o.jsx)(l.iA.Row,{children:i.map((e,t)=>(0,o.jsx)(l.iA.HeaderCell,{children:(0,o.jsx)(l.xv,{size:"100",weight:"bold",children:e})},t))})}),(0,o.jsx)(l.iA.Body,{children:a.map((e,t)=>(0,o.jsx)(l.iA.Row,{children:e.map((e,t)=>(0,o.jsx)(l.iA.Cell,{children:(0,o.jsx)(l.xv,{size:"100",children:e})},t))},t))})]})})},_=e=>{let t=(0,a.ZP)();switch(e.type){case r.X.POINTS:return(0,o.jsx)(p,{...e});case r.X.SPECS:return(0,o.jsx)(m,{accessibilityLabel:t._('Specification view of description', 'webapp.app.www-unified.components.structuredDescription.StructuredDescription.StructuredSpecs', 'Content represented in specification format'),...e});case r.X.TABLE:return(0,o.jsx)(h,{accessibilityLabel:t._('Table view of description', 'webapp.app.www-unified.components.structuredDescription.StructuredDescription.StructuredTable', 'Content represented in table format'),...e});case r.X.ELEMENT:return(0,o.jsx)(c,{...e});default:return(0,o.jsx)(u,{...e})}};function g({descriptions:e,onLoad:t}){return((0,i.useEffect)(()=>{"function"==typeof t&&t()},[t]),0===e.length)?null:e.map(({content:e,type:t},n)=>(0,o.jsx)(_,{content:e,order:n,type:t},n))}},219413:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i,l=n(667294);n(167912);var a=n(681669),r=n(882801);let o=void 0!==i?i:i=n(721538);function s(e){let{data:t}=(0,a.HF)(o,e,{type:"pin",useGraphQLAdapter:e=>(0,l.useMemo)(()=>{var t;return(t=e.formattedCloseupDescription)&&Array.isArray(t.components)?t.components.filter(e=>e.type).map(e=>{var t,n,i,l;let a=null!==(t=e.type)&&void 0!==t?t:"";return a===r.X.SPECS?{type:a,content:null===(l=e.specsContent)||void 0===l?void 0:l.map(e=>({key:e.key,value:e.value}))}:{type:a,content:null!==(n=null!==(i=e.stringContent)&&void 0!==i?i:e.pointsContent)&&void 0!==n?n:e.tableContent}}):[]},[e.formattedCloseupDescription]),useLegacyAdapter:e=>{var t;let n=null===(t=e.formatted_description)||void 0===t?void 0:t.components;return Array.isArray(n)?n:[]}});return null!=t?t:[]}},882801:(e,t,n)=>{"use strict";n.d(t,{X:()=>i,j:()=>l});let i={BOLD:"formatted_description_bold_component",ELEMENT:"formatted_description_element_component",HEADER:"formatted_description_header_component",PARAGRAPH:"formatted_description_paragraph_component",POINTS:"formatted_description_points_component",SPECS:"formatted_description_specs_component",TABLE:"formatted_description_table_component"},l=({components:e,pinDescription:t})=>e&&0!==e.length?e:[{content:t,type:i.PARAGRAPH}]},375559:(e,t,n)=>{"use strict";n.d(t,{JJ:()=>i,N3:()=>a,zu:()=>l});let i=["TR","WB"],l=["BR","CG","HP","HR","JH","MP","RJ","UK","UP"],a=[...i,...l,"AP","TG"]},201155:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(883119),l=n(499128),a=n(898781),r=n(784590),o=n(50286),s=n(785893);function d({ideaPinImages:e}){let t=e.map((e,t)=>{var n,l,a;return(0,s.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,s.jsx)(i.Ee,{alt:"",src:null!==(n=null==e?void 0:e.url)&&void 0!==n?n:"",color:"#696969",fit:"cover",naturalHeight:null!==(l=null==e?void 0:e.height)&&void 0!==l?l:1,naturalWidth:null!==(a=null==e?void 0:e.width)&&void 0!==a?a:1})},t)});return(0,s.jsx)(i.kC,{justifyContent:"center",children:(0,s.jsx)(i.kC,{justifyContent:"start",width:{1:28,2:40,3:48}[e.length],children:t})})}function u({handleHide:e,text:t,userId:n,href:u,imageUrl:c}){let p=(0,a.ZP)(),m=(0,o.HG)(),h=(0,r.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===(h.data||[]).length)return(0,s.jsx)(l.ZP,{duration:5e3,onHide:e,text:_,href:u,thumbnail:c?{image:(0,s.jsx)(i.Ee,{alt:p._('Image of who you followed', 'userFollowingToast.thumbnail.userImage', 'Profile thumbnail of the user you followed'),fit:"cover",naturalHeight:1,naturalWidth:1,src:c})}:void 0});let g=(h.data||[]).slice(0,3).map(e=>{var t;return null===(t=e.images)||void 0===t?void 0:t[m?"236x":"170x"]}),y=(0,s.jsx)(d,{ideaPinImages:g});return(0,s.jsx)(l.ZP,{href:u,duration:5e3,onHide:e,_dangerouslySetThumbnail:y,text:_})}},258430:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(883119),l=n(130460),a=n(785893);function r({boardId:e}){var t;let n=(0,l.gC)()(e),r=null!=n&&n.images&&n.images["170x"]?n.images["170x"][0]:void 0;return e&&r?(0,a.jsx)(i.Ee,{alt:"Pin image",color:"#efefef",fit:"cover",naturalHeight:1,naturalWidth:1,src:null!==(t=r.url)&&void 0!==t?t:""}):null}},759929:(e,t,n)=>{"use strict";n.d(t,{k:()=>r,w:()=>a});var i=n(883119),l=n(379764);let a=2e3,r=new i.H3([l.Z])},430235:(e,t,n)=>{"use strict";n.d(t,{Z:()=>U});var i,l=n(667294),a=n(167912),r=n(616550),o=n(883119),s=n(407043),d=n(499128),u=n(898781),c=n(349700),p=n(248975),m=n(958007),h=n(992750),_=n(53199),g=n(773285),y=n(780280),v=n(862628),f=n(595371),b=n(743473),x=n(667679),k=n(867820),P=n(343341),S=n(829407),w=n(988744),A=n(920085),T=n(62409),I=n(256588),E=n(350118),C=n(785893);let D=({children:e,onTap:t,testId:n})=>{let[i,a]=(0,l.useState)(!1);return(0,C.jsx)(o.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:i?"rgba(0, 0, 0, 0.06)":void 0}},rounding:2,paddingX:3,paddingY:2,role:"listitem","data-test-id":`more-options-${n}`,children:(0,C.jsx)(o.iP,{onTap:t,onBlur:()=>a(!1),onFocus:()=>a(!0),onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:e})})},j=void 0!==i?i:i=n(298748),F=({i18n:e,pinId:t,showSignupModal:n,attributionLabelSource:i})=>(0,C.jsx)(D,{testId:"save",onTap:()=>{(0,k.My)("dweb.unauth.context_menu.save_image",{attributionLabelSource:i}),n({reason:"UPSELL_LOGIN_OR_SIGNUP",attributionLabel:`click_context_menu_${i}_save_button`,desktopOptions:{modalType:"signup",modalOptions:{source:"saveButtonExp",container:"save",savePinId:t}}})},children:(0,C.jsx)(o.xv,{size:"200",weight:"bold",children:e._('Save image', 'dweb.unauth.context_menu.link.save_image', 'Link to save the image')})},"SaveMenuItem"),R=e=>({invite_category:3,invite_channel:12,object_type:1,object_id:e}),L=({pinId:e,variant:t,onSendButtonClick:n,dismissPriorToast:i})=>{let a=(0,u.ZP)(),{logContextEvent:r}=(0,s.v)(),[d,c]=(0,l.useState)(null),[p,m]=(0,l.useState)(!1),{logShareInvite:h,createShareInviteData:_}=(0,b.Z)(),g=()=>{null===d||p||(m(!0),h(R(e),d))},y=()=>{r({event_type:101,component:14162,element:72,object_id_str:e})};return(0,S.Z)(()=>{let t=async()=>{let t=await _({invite_category:3,invite_channel:12,object_type:"pin",object_id:e,path:""});c(t)};t()}),"copy_link"===t?(0,C.jsxs)(o.xu,{"data-test-id":"post-download-copy-link",children:[a._('Image downloaded to your device. ', 'context_menu.pin_downloaded.toastText', 'toast message to confirm when users downloaded a pin image'),(0,C.jsx)(w.Z,{linkURL:(null==d?void 0:d.invite_url)||"",onDidClickCopyButton:()=>{g(),y()},onDidFocus:g,buttonSize:"sm",onCopyText:a._('Copied link to your clipboard to share', 'context_menu.pin_downloaded.copy_link_button_activate', 'notify the user that the link is now copied to their clipboard'),toastDuration:5e3,oneToast:!0,hideInput:!0,asLink:!0})]}):(0,C.jsxs)(o.xu,{"data-test-id":"post-download-share-pin",children:[a._('Image downloaded to your device. ', 'context_menu.pin_downloaded.toastText', 'toast message to confirm when users downloaded a pin image'),(0,C.jsx)(o.rU,{display:"inline",onClick:()=>{i(),n(),y()},href:"",accessibilityLabel:a._('Share Pin', 'context_menu.pin_downloaded.share_pin_button', 'toast message that shows share pin sharesheet invite CTA'),children:a._('Share Pin', 'context_menu.pin_downloaded.share_pin_button', 'toast message that shows share pin sharesheet invite CTA')})]})},z=({i18n:e,pinTitle:t,pinDescription:n,pinId:i,bestPinImgSrc:l,attributionLabelSource:a,logContextEvent:r,pinCategory:s,checkExperiment:u,showSignupModal:c,onSendButtonClick:p})=>{let{showOneToast:m}=(0,P.F9)();return(0,C.jsx)(D,{testId:"download",onTap:()=>{let{expName:h,expGroup:_,limitReached:g,oldCount:y,newCount:v}=(0,A.H)(u,"dweb_download_in_context_menus_v3");if((0,k.My)("dweb.unauth.context_menu.download_image",{attributionLabelSource:a,expName:h,expGroup:_,limitReached:g,oldCount:y,newCount:v}),g){c({reason:"ACTION_REQUIRES_LOGIN_OR_SIGNUP",attributionLabel:`click_context_menu_${a}_download_button`,desktopOptions:{modalType:"signup",modalOptions:{source:"downloadImageBtnUnauth",container:"download",savePinId:i}}});return}(0,A.Z)({filename:t||n||i,imgSrc:l||"",category:s,pinId:i,isUnauth:!0,platform:"web",expName:h,expGroup:_},r);let f=_.includes("copy_link"),b=f?"copy_link":"sharesheet";m(({hideToast:t})=>(0,C.jsx)(d.ZP,{onHide:t,duration:5e3,thumbnail:{image:(0,C.jsx)(o.Ee,{alt:e._('Image of downloaded Pin', 'context_menu.pin_downloaded.altImageText', 'Alt text for image shown when downloading pin'),src:l||"",fit:"cover",naturalWidth:32,naturalHeight:32})},text:(0,C.jsx)(o.xv,{color:"inverse",children:(0,C.jsx)(L,{pinId:i,variant:b,onSendButtonClick:p,dismissPriorToast:t})})}))},children:(0,C.jsx)(o.xv,{size:"200",weight:"bold",children:e._('Download image', 'Button to download Pin image', 'Button to download Pin image')})},"DownloadMenuItem")},O=({pinId:e,pinLink:t,fromEllipsisButton:n,attributionLabelSource:i,showSignupModal:l,i18n:a})=>(0,C.jsx)(D,{testId:"new-tab",onTap:()=>{(0,k.My)("dweb.unauth.context_menu.open_plp_new_tab",{attributionLabelSource:i}),window.open(n?t:`/pin/${e}/`),n||l({reason:"UPSELL_LOGIN_OR_SIGNUP",attributionLabel:"click_context_menu_related_pin_right_click_open_link_button",desktopOptions:{modalType:"login"}})},children:(0,C.jsx)(o.xv,{size:"200",weight:"bold",children:a._('Open link in new tab', 'dweb.unauth.context_menu.link.plp_new_tab', 'Link to open the pin in a new tab')})},"NewTabMenuItem"),M=({history:e,levelOneInterestUrl:t,searchUrl:n,levelOneInterestName:i,i18n:l,interestTag:a,attributionLabelSource:r})=>(0,C.jsx)(D,{testId:"interests",onTap:()=>{(0,k.My)("dweb.unauth.context_menu.see_more_pins",{attributionLabelSource:r}),t?e.push(`${t}`):e.push(n)},children:i?(0,C.jsx)(o.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,c.nk)(l._('See more ideas about {{levelOneInterestName}}', 'dweb.unauth.context_menu.link.see_more_ideas.l1', 'Link to see similar pins'),{levelOneInterestName:i})}):(0,C.jsx)(o.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,c.nk)(l._('See more ideas about {{interestTag}}', 'dweb.unauth.context_menu.link.see_more_ideas.interest_tag', 'Link to see similar pins'),{interestTag:a})})},"MoreInterestsMenuItem"),N=({attributionLabelSource:e,reportLink:t,i18n:n})=>(0,C.jsx)(l.Fragment,{children:(0,C.jsx)(D,{testId:"dsa",onTap:()=>{(0,k.My)("dweb.unauth.context_menu.report_pin_dsa",{attributionLabelSource:e}),window.open(t,"_blank")},children:(0,C.jsx)(o.xv,{size:"200",weight:"bold",children:n._('Report Pin for EU local law violation', 'dweb.unauth.context_menu.link.report_pin_dsa', 'Button to report Pin for EU local law violation')})})},"ReportForDSAMenuItem");function B({desktopContextMenuState:e,isMainPinImage:t,source:n,imagesUrls:i,embedSrc:l,embedType:a,pinJoinVisualAnnotation:d,pinJoinSeoBreadcrumbName:c,pinJoinSeoBreadcrumbUrl:m,pinId:h,pinLink:_,pinTitle:b,pinDescription:k,pinCategory:P,pinEligibleForDownload:S,onSendButtonClick:w}){var A;let T=(0,u.ZP)(),E=(0,r.useHistory)(),{logContextEvent:D}=(0,s.v)(),{countryFromIp:j,isBot:R,isSocialBot:L}=(0,y.B)(),{checkExperiment:B}=(0,g.F)(),Z=(0,p.Z)({imagesUrls:i,embedSrc:l,embedType:a,excludeOriginals:!R&&!L}),K=null!==(A=null==d?void 0:d[0])&&void 0!==A?A:void 0,U=(0,v.Z)(K),H=`/search/pins/?q=${encodeURIComponent(U)}&rs=${f.i.IMAGE_ONLY_ATTRIBUTION}`,V=(0,x.Z)(),G="dweb.plp.ellipsis.button"===n,{COUNTRY_CODES:$}=I.LAW_CONFIGURATION.dsa,W=$.includes(j);if(!Z)return null;let q=(0,p.Z)({imagesUrls:i,embedSrc:l,embedType:a,excludeOriginals:!R&&!L}),Y="related_pin_right_click";G?Y="action_bar_ellipsis":t&&(Y="right_click");let X=[{component:()=>F({i18n:T,pinId:h,showSignupModal:V,attributionLabelSource:Y})},{component:()=>S&&z({i18n:T,pinTitle:b,pinDescription:k,pinId:h,bestPinImgSrc:q,attributionLabelSource:Y,logContextEvent:D,pinCategory:P,checkExperiment:B,showSignupModal:V,onSendButtonClick:null!=w?w:()=>{}})},{component:()=>!(t||G&&!_)&&O({i18n:T,pinId:h,pinLink:_,fromEllipsisButton:G,showSignupModal:V,attributionLabelSource:Y})},{component:()=>!!(K||c&&m)&&M({history:E,levelOneInterestUrl:m,searchUrl:H,levelOneInterestName:c,i18n:T,interestTag:K,attributionLabelSource:Y})},{component:()=>W&&N({reportLink:`https://www.pinterest.com/about/dsa/?pinId=${h}`,i18n:T,attributionLabelSource:Y})}],Q=X.map(({component:e})=>e()).filter(e=>!!e);return(0,C.jsxs)(o.xu,{"data-test-id":"desktop-context-menu",position:"fixed",dangerouslySetInlineStyle:{__style:{top:`${e.y}px`,left:`${e.x}px`}},zIndex:new o.Ry(99999),color:"default",rounding:2,borderStyle:"shadow",display:"flex",direction:"column",paddingY:3,paddingX:2,maxWidth:250,children:[(0,C.jsx)(o.xu,{rounding:2,paddingX:3,paddingY:2,role:"img",children:(0,C.jsx)(o.JO,{icon:"pinterest",accessibilityLabel:T._('Pinterest logo', 'dweb.unauth.context_menu.pinterest_logo', 'Pinterest logo in the context menu'),color:"brandPrimary"})}),Q]})}function Z({graphqlRef:e,pinId:t,useNativeCreatorAsPinner:n,onSendButtonClick:i,...l}){var r,o,s,d,u,c,p,g,y,v,f,b,x,k,P,S,w;let A;let T=(0,a.useFragment)(j,e),I=(0,_.Z)({type:"graphqlRef",data:T}),E=!!T.storyPinDataId,D=!!(null===(r=T.videos)||void 0===r?void 0:r.videoList),{isUnsafe:F}=T;(A=T.nativeCreator?T.nativeCreator:T.linkDomain?T.linkDomain.officialUser:T.originPinner||T.pinner)||(A=null!==(S=null===(w=T.linkDomain)||void 0===w?void 0:w.officialUser)&&void 0!==S?S:T.pinner);let{storyPinDataId:R}=T,L=null!==(o=null===(s=T.richSummary)||void 0===s?void 0:s.displayName)&&void 0!==o?o:"",z=null!==(d=null===(u=T.richMetadata)||void 0===u?void 0:u.title)&&void 0!==d?d:"",O=null!==(c=null===(p=T.richMetadata)||void 0===p?void 0:p.description)&&void 0!==c?c:"",M=null===(g=T.storyPinData)||void 0===g?void 0:null===(y=g.metadata)||void 0===y?void 0:y.pinTitle,N=(null===(v=T.pinJoin)||void 0===v?void 0:v.visualAnnotation)||void 0,Z=T.category||"",K=(0,h.Ly)({pinTitle:T.title,gridTitle:T.gridTitle,richSummaryDisplayName:L,richMetadataTitle:z,storyPinDataId:R,storyPinDataMetadataPinTitle:M,pinJoinVisualAnnotation:N}),U=(0,m.Z)({storyPinDataId:R,pinDescription:T.description,richMetadataDescription:O,richSummaryDisplayName:L,closeupDescription:T.closeupDescription,closeupUnifiedDescription:T.closeupUnifiedDescription});return(0,C.jsx)(B,{...l,embedSrc:T.embed&&T.embed.src,embedType:T.embed&&T.embed.type,imagesUrls:I,sourceUserUsername:null===(f=A)||void 0===f?void 0:f.username,sourceUserFullname:null===(b=A)||void 0===b?void 0:b.fullName,pinJoinVisualAnnotation:null===(x=T.pinJoin)||void 0===x?void 0:x.visualAnnotation,pinJoinSeoBreadcrumbName:(null===(k=T.pinJoin)||void 0===k?void 0:k.seoBreadcrumbs)&&(T.pinJoin.seoBreadcrumbs.length>0?T.pinJoin.seoBreadcrumbs[0].name:null),pinJoinSeoBreadcrumbUrl:(null===(P=T.pinJoin)||void 0===P?void 0:P.seoBreadcrumbs)&&(T.pinJoin.seoBreadcrumbs.length>0?T.pinJoin.seoBreadcrumbs[0].url:null),pinId:t,pinTitle:K,pinDescription:U,pinCategory:Z,pinEligibleForDownload:!!(!E&&!D&&!F&&i),onSendButtonClick:i})}function K({graphqlRef:e,pinId:t,useNativeCreatorAsPinner:n,onSendButtonClick:i,...l}){var a,r,o,s,d,u,c,p,g,y,v,f,b,x,k,P,S;let w=(0,E.S6)()(t),A=(0,_.Z)(null!=w?{type:"deprecated",data:w}:null),I=null==w?void 0:w.story_pin_data_id,D=null==w?void 0:w.videos,j=!!I,F=!!(null!=D&&D.video_list),R=null==w?void 0:w.title,L=null==w?void 0:w.description,z=null==w?void 0:w.grid_title,O=null!==(a=null==w?void 0:null===(r=w.rich_metadata)||void 0===r?void 0:r.title)&&void 0!==a?a:"",M=null==w?void 0:w.category,N=null!==(o=null==w?void 0:null===(s=w.rich_metadata)||void 0===s?void 0:s.description)&&void 0!==o?o:"",Z=null!==(d=null==w?void 0:null===(u=w.rich_summary)||void 0===u?void 0:u.display_name)&&void 0!==d?d:"",K=null==w?void 0:w.closeup_description,U=null==w?void 0:w.closeup_unified_description,H=null==w?void 0:null===(c=w.story_pin_data)||void 0===c?void 0:null===(p=c.metadata)||void 0===p?void 0:p.pin_title,V=null==w?void 0:null===(g=w.pin_join)||void 0===g?void 0:g.visual_annotation,G=null==w?void 0:w.is_unsafe,{link_domain:$,native_creator:W,origin_pinner:q,pinner:Y}=w||{},X=(0,T.wS)($,W,q,Y);X||(X=null!==(P=null==w?void 0:null===(S=w.link_domain)||void 0===S?void 0:S.official_user)&&void 0!==P?P:null==w?void 0:w.pinner);let{full_name:Q,username:J}=null!==(y=X)&&void 0!==y?y:{},ee=(0,h.Ly)({pinTitle:R,gridTitle:z,richSummaryDisplayName:Z,richMetadataTitle:O,storyPinDataId:I,storyPinDataMetadataPinTitle:H,pinJoinVisualAnnotation:V}),et=(0,m.Z)({storyPinDataId:I,pinDescription:L,richMetadataDescription:N,richSummaryDisplayName:Z,closeupDescription:K,closeupUnifiedDescription:U});return(0,C.jsx)(B,{...l,embedSrc:null==w?void 0:null===(v=w.embed)||void 0===v?void 0:v.src,embedType:null==w?void 0:null===(f=w.embed)||void 0===f?void 0:f.type,imagesUrls:A,sourceUserUsername:J,sourceUserFullname:Q,pinJoinVisualAnnotation:null==w?void 0:null===(b=w.pin_join)||void 0===b?void 0:b.visual_annotation,pinJoinSeoBreadcrumbName:(null==w?void 0:null===(x=w.pin_join)||void 0===x?void 0:x.seo_breadcrumbs)&&(w.pin_join.seo_breadcrumbs.length>0?w.pin_join.seo_breadcrumbs[0].name:null),pinJoinSeoBreadcrumbUrl:(null==w?void 0:null===(k=w.pin_join)||void 0===k?void 0:k.seo_breadcrumbs)&&(w.pin_join.seo_breadcrumbs.length>0?w.pin_join.seo_breadcrumbs[0].url:null),pinId:t,pinTitle:ee,pinDescription:et,pinCategory:M,pinEligibleForDownload:!!(!j&&!F&&!G&&i),onSendButtonClick:i})}function U(e){return e.graphqlRef?(0,C.jsx)(Z,{...e,graphqlRef:e.graphqlRef}):(0,C.jsx)(K,{...e})}},158989:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(883119);let l=new i.Ry(9999),a=l},609875:(e,t,n)=>{"use strict";n.d(t,{Z:()=>$});var i,l,a=n(667294),r=n(167912),o=n(616550),s=n(753311),d=n(883119),u=n(407043),c=n(430322),p=n(499128),m=n(898781),h=n(248975),_=n(958007),g=n(992750),y=n(773285),v=n(780280),f=n(862628),b=n(595371),x=n(743473),k=n(667679),P=n(867820),S=n(343341),w=n(829407),A=n(988744),T=n(349700),I=n(598615),E=n(938917),C=n(785893);function D({type:e,onTap:t,location:n,l1InterestName:i,interestTag:l,sourceUserUsername:a,pinId:r}){let o=(0,m.ZP)(),s=(0,E.Z)();return"app-install"===e&&s?(0,C.jsx)(I.Z,{componentType:18,app_upsell_type:"mweb-context-menu",children:({handleOpenApp:t})=>(0,C.jsx)(d.iP,{onTap:()=>{(0,P.My)(`context.menu.tap.${n}.${e}`),r?(t({deepLinkUri:`/pin/${r}/`}),(0,P.My)("mweb.context_menu.open_in_app.pin")):(t({deepLinkUri:"/"}),(0,P.My)("mweb.context_menu.open_in_app.homepage")),(0,P.My)("mweb.context_menu.open_in_app")},children:(0,C.jsx)(d.xu,{marginBottom:4,"data-test-id":"more-options-open-app",children:(0,C.jsx)(d.xv,{size:"300",weight:"bold",children:o._('Open in app', 'mweb.context_menu.link.open_in_app', 'Link to open Pinterest app')})})})}):(0,C.jsx)(d.iP,{onTap:({event:i})=>{(0,P.My)(`context.menu.tap.${n}.${e}`),t&&t("save"===e||"saveonly"===e?i:void 0)},children:(0,C.jsx)(d.xu,{marginBottom:4,"data-test-id":`more-options-${e}`,children:(0,C.jsx)(d.xv,{size:"300",weight:"bold",children:(()=>{switch(e){case"save":return o._('Save image', 'mweb.context_menu.link.save_image', 'Link to save the image');case"new-tab":return o._('Open link in new tab', 'mweb.context_menu.link.plp_new_tab', 'Link to open the pin in a new tab');case"more-ideas":return i?(0,T.nk)(o._('See more ideas about {{l1InterestName}}', 'unauth.mweb.context_menu.link.see_more_ideas.l1', 'Link to see similar pins, l1InterestName: name of the top level pin category'),{l1InterestName:i}):(0,T.nk)(o._('See more ideas about {{interestTag}}', 'unauth.mweb.context_menu.link.see_more_ideas.interest_tag', 'Link to see similar pins, interestTag: name of the interest type of pin'),{interestTag:l});case"more-from-creator":return(0,T.nk)(o._('See more from {{sourceUserUsername}}', 'unauth.context_menu.link.more_from_creator', 'Link to see more ideas from this creator, sourceUserUsername: the user name of the pin creator'),{sourceUserUsername:a});case"login-signup":return o._('Log in or sign up for more', 'unauth.mweb.context_menu.link.login_signup', 'Link to log in or sign up');case"saveonly":return o._('Save', 'mweb.context_menu.link.saveonly', 'Link to save the pin');case"download":return o._('Download image', 'Button to download Pin image', 'Button to download Pin image');case"dsa":return o._('Report Pin for EU local law violation', 'unauth.context_menu.link.report_pin_dsa', 'Button to report Pin for EU local law violation');default:return null}})()})})})}var j=n(920085),F=n(256588),R=n(350118),L=n(797087);let z={"main-pin-long-press":"main_pin_longtouch","main-pin-overflow":"action_bar_ellipsis","main-pin-more-information":"main_pin_ellipsis","related-pins-long-press":"related_pin_longtouch","non-main-pin-more-information":"related_pin_ellipsis"},O=["main-pin-long-press","main-pin-overflow","main-pin-more-information"],M=()=>{},N=void 0!==i?i:i=n(2942),B=e=>({invite_category:3,invite_channel:12,object_type:1,object_id:e}),Z=({pinId:e,variant:t,onSendButtonClick:n,dismissPriorToast:i})=>{let l=(0,m.ZP)(),{logContextEvent:r}=(0,u.v)(),[o,s]=(0,a.useState)(null),[c,p]=(0,a.useState)(!1),{logShareInvite:h,createShareInviteData:_}=(0,x.Z)(),g=()=>{null===o||c||(p(!0),h(B(e),o))},y=()=>{r({event_type:101,component:14162,element:72,object_id_str:e})};return(0,w.Z)(()=>{let t=async()=>{let t=await _({invite_category:3,invite_channel:12,object_type:"pin",object_id:e,path:""});s(t)};t()}),"copy_link"===t?(0,C.jsxs)(d.xu,{"data-test-id":"post-download-copy-link",children:[l._('Image downloaded to your device. ', 'context_menu.pin_downloaded.toastText', 'toast message to confirm when users downloaded a pin image'),(0,C.jsx)(A.Z,{linkURL:(null==o?void 0:o.invite_url)||"",onDidClickCopyButton:()=>{g(),y()},onDidFocus:g,buttonSize:"sm",onCopyText:l._('Copied link to your clipboard to share', 'context_menu.pin_downloaded.copy_link_button_activate', 'notify the user that the link is now copied to their clipboard'),toastDuration:5e3,oneToast:!0,hideInput:!0,asLink:!0})]}):(0,C.jsxs)(d.xu,{"data-test-id":"post-download-share-pin",children:[l._('Image downloaded to your device. ', 'context_menu.pin_downloaded.toastText', 'toast message to confirm when users downloaded a pin image'),(0,C.jsx)(d.rU,{display:"inline",onClick:({event:e})=>{i(),n(e),y()},href:"",accessibilityLabel:l._('Share Pin', 'context_menu.pin_downloaded.share_pin_button', 'toast message that shows share pin sharesheet invite CTA'),children:l._('Share Pin', 'context_menu.pin_downloaded.share_pin_button', 'toast message that shows share pin sharesheet invite CTA')})]})};function K({embedSrc:e,embedType:t,hasRichMetadata:n,hasRichMetadataArticle:i,hasRichMetadataProducts:l,hasRichMetadataRecipe:a,interestTag:r,imagesUrls:s,isStoryPin:_,l1InterestName:g,location:x,onDismiss:A,pinId:T,pinCategory:I,pinDescription:E,pinJoinSeoBreadcrumbUrl:R,pinTitle:O,sourceUserUsername:N,vaseSection:B,pinEligibleForDownload:K,onSendButtonClick:U}){let H=(0,m.ZP)(),{countryFromIp:V,isBot:G,isSocialBot:$}=(0,v.B)(),W=(0,o.useHistory)(),q=(0,k.Z)(),Y=(0,f.Z)(r),X=`/search/pins/?q=${encodeURIComponent(Y)}&rs=${b.i.IMAGE_ONLY_ATTRIBUTION}`,Q=z[x],J="click_context_menu_"+Q,{COUNTRY_CODES:ee}=F.LAW_CONFIGURATION.dsa,et=ee.includes(V),{checkExperiment:en}=(0,y.F)(),{showOneToast:ei}=(0,S.F9)(),el=(0,L.Z)({embedSrc:e,embedType:t,hasRichMetadata:n,hasRichMetadataProducts:l,hasRichMetadataArticle:i,hasRichMetadataRecipe:a,imagesUrls:s,isFromUnauthContextMenu:!0,isStoryPin:_,pinId:T,attributionLabel:J+"_save_button"}),ea=K?["save","download","app-install","new-tab"]:["save","app-install","new-tab"];et&&ea.push("dsa");let er=(0,h.Z)({imagesUrls:s,embedSrc:e,embedType:t,excludeOriginals:!G&&!$}),{logContextEvent:eo}=(0,u.v)(),es={save:e=>{e&&(e.stopPropagation(),el(e),A())},saveonly:e=>{e&&(e.stopPropagation(),el(e),A())},"new-tab":()=>{window.open(`/pin/${T}/`),A()},"more-ideas":g||r?()=>{W.push(R?`${R}`:X),A()}:void 0,"more-from-creator":()=>{W.push(`/${N}/`),A()},"login-signup":()=>{q({reason:"CLICK_LOGIN_OR_SIGNUP",attributionLabel:"click_context_menu_"+Q+"_signup_or_login_button"}),A()},download:K?()=>{let{expName:e,expGroup:t,limitReached:n,oldCount:i,newCount:l}=(0,j.H)(en,"mweb_download_in_context_menus_v3");if((0,P.My)("mweb.unauth.context_menu.download_image",{attributionLabelSource:J,expName:e,expGroup:t,limitReached:n,oldCount:i,newCount:l}),n){A(),q({reason:"ACTION_REQUIRES_LOGIN_OR_SIGNUP",attributionLabel:`click_context_menu_${J}_download_button`,mobileOptions:{headingType:"download_limit_reached"}});return}(0,j.Z)({filename:O||E||T,imgSrc:er||"",category:I,pinId:T,isUnauth:!0,platform:"mweb",expName:e,expGroup:t},eo);let a=t.includes("copy_link"),r=a?"copy_link":"sharesheet";ei(({hideToast:e})=>(0,C.jsx)(p.ZP,{onHide:e,duration:5e3,thumbnail:{image:(0,C.jsx)(d.Ee,{alt:H._('Image of downloaded Pin', 'context_menu.pin_downloaded.altImageText', 'Alt text for image shown when downloading pin'),src:er,fit:"cover",naturalWidth:32,naturalHeight:32})},text:(0,C.jsx)(d.xv,{color:"inverse",children:(0,C.jsx)(Z,{pinId:T,variant:r,onSendButtonClick:null!=U?U:M,dismissPriorToast:e})})})),A()}:M,"app-install":()=>{},dsa:()=>{(0,P.My)("mweb.unauth.context_menu.dsa"),window.open(`https://www.pinterest.com/about/dsa/?pinId=${T}`,"_blank")}};return(0,w.Z)(()=>{(0,P.My)(`open.context_menu_modal.${x}`)}),(0,C.jsxs)(c.default,{accessibilityModalLabel:H._('Close', 'Close modal window', 'Close modal window'),isOpen:!0,onDismiss:()=>{(0,P.My)(`dismiss.context_menu.modal.${x}`),A()},mobileAccessibilityCloseIconLabel:H._('Close', 'context_modal.menu.close', 'Close modal window'),children:[!!B&&(0,C.jsxs)(d.xu,{children:[(0,C.jsx)(d.xu,{dangerouslySetInlineStyle:{__style:{paddingLeft:20,paddingRight:20,paddingBottom:20,paddingTop:8}},children:B}),(0,C.jsx)(d.xu,{marginBottom:5,paddingX:5,children:(0,C.jsx)(d.iz,{})})]}),(0,C.jsxs)(d.xu,{marginStart:5,marginBottom:6,"data-test-id":"mobile-context-menu",children:[(0,C.jsx)(d.xu,{marginBottom:4,children:(0,C.jsx)(d.xv,{size:"200",children:H._('More options', 'header.context_menu.modal', 'Header for the options on context menu modal')})}),ea.map(e=>es[e]?(0,C.jsx)(D,{type:e,location:x,onTap:es[e],l1InterestName:g,interestTag:r,pinId:T,sourceUserUsername:N},e):null)]})]})}function U({onDismiss:e,location:t,pinId:n,vaseSection:i,onSendButtonClick:l}){var a,r,o,s,d,u,c,p,m,h,y,v,f,b,x,k,P,S,w,A,T,I,E;let D;let j=(0,R.S6)()(n),F=null==j?void 0:j.story_pin_data_id,L=!!F,z=!!(null!=j&&null!==(a=j.videos)&&void 0!==a&&a.video_list),M=null==j?void 0:j.is_unsafe,N=!!(!L&&!z&&!M&&l&&O.includes(t)),B=null==j?void 0:j.title,Z=null==j?void 0:j.description,U=null==j?void 0:j.grid_title,H=null!==(r=null==j?void 0:null===(o=j.rich_metadata)||void 0===o?void 0:o.title)&&void 0!==r?r:"",V=null!==(s=null==j?void 0:null===(d=j.rich_metadata)||void 0===d?void 0:d.description)&&void 0!==s?s:"",G=null!==(u=null==j?void 0:null===(c=j.rich_summary)||void 0===c?void 0:c.display_name)&&void 0!==u?u:"",$=null==j?void 0:j.closeup_description,W=null==j?void 0:j.closeup_unified_description,q=null==j?void 0:null===(p=j.story_pin_data)||void 0===p?void 0:null===(m=p.metadata)||void 0===m?void 0:m.pin_title,Y=null==j?void 0:null===(h=j.pin_join)||void 0===h?void 0:h.visual_annotation,X=(null==j?void 0:null===(y=j.pin_join)||void 0===y?void 0:y.seo_breadcrumbs)&&(j.pin_join.seo_breadcrumbs.length>0?j.pin_join.seo_breadcrumbs[0].name:"")||"",Q=null!==(v=null==j?void 0:null===(f=j.pin_join)||void 0===f?void 0:null===(b=f.visual_annotation)||void 0===b?void 0:b[0])&&void 0!==v?v:"";(D=null!=j&&j.native_creator?j.native_creator:null!=j&&j.link_domain?j.link_domain.official_user:(null==j?void 0:j.origin_pinner)||(null==j?void 0:j.pinner))&&"string"!=typeof D||(D=null!==(I=null==j?void 0:null===(E=j.link_domain)||void 0===E?void 0:E.official_user)&&void 0!==I?I:null==j?void 0:j.pinner);let J=(null===(x=D)||void 0===x?void 0:x.username)||"",ee=(null==j?void 0:null===(k=j.pin_join)||void 0===k?void 0:k.seo_breadcrumbs)&&(j.pin_join.seo_breadcrumbs.length>0?j.pin_join.seo_breadcrumbs[0].url:"")||"",et=(0,g.Ly)({pinTitle:B,gridTitle:U,richSummaryDisplayName:G,richMetadataTitle:H,storyPinDataId:F,storyPinDataMetadataPinTitle:q,pinJoinVisualAnnotation:Y})||"",en=(0,_.Z)({storyPinDataId:F,pinDescription:Z,richMetadataDescription:V,richSummaryDisplayName:G,closeupDescription:$,closeupUnifiedDescription:W});return(0,C.jsx)(K,{embedSrc:null==j?void 0:null===(P=j.embed)||void 0===P?void 0:P.src,embedType:null==j?void 0:null===(S=j.embed)||void 0===S?void 0:S.type,hasRichMetadata:!!(null!=j&&j.rich_metadata),hasRichMetadataProducts:!!(null!=j&&null!==(w=j.rich_metadata)&&void 0!==w&&w.products),hasRichMetadataArticle:!!(null!=j&&null!==(A=j.rich_metadata)&&void 0!==A&&A.article),hasRichMetadataRecipe:!!(null!=j&&null!==(T=j.rich_metadata)&&void 0!==T&&T.recipe),imagesUrls:null!=j&&j.images?Object.keys(j.images).reduce((e,t)=>{var n,i;return t&&null!==(n=j.images)&&void 0!==n&&null!==(i=n[t])&&void 0!==i&&i.url?{...e,[t]:j.images[t].url}:e},{}):void 0,interestTag:Q,isStoryPin:L,l1InterestName:X,onDismiss:e,location:t,pinCategory:null==j?void 0:j.category,pinDescription:en,pinId:n,pinTitle:et,pinJoinSeoBreadcrumbUrl:ee,sourceUserUsername:J,vaseSection:i,pinEligibleForDownload:N,onSendButtonClick:l})}function H({graphqlRef:e,onDismiss:t,location:n,pinId:i,vaseSection:l,onSendButtonClick:a}){var o,s,d,u,c,p,m,h,y,v,f,b,x,k,P,S,w,A,T,I,E,D,j;let F;let R=(0,r.useFragment)(N,e),L=!!R.storyPinDataId,z=!!(null===(o=R.videos)||void 0===o?void 0:o.videoList),{isUnsafe:M}=R,B=!L&&!z&&!M&&O.includes(n),{title:Z}=R,{description:U}=R,{gridTitle:H}=R,V=null!==(s=null===(d=R.richSummary)||void 0===d?void 0:d.displayName)&&void 0!==s?s:"",G=null!==(u=null===(c=R.richMetadata)||void 0===c?void 0:c.title)&&void 0!==u?u:"",$=null!==(p=null===(m=R.richMetadata)||void 0===m?void 0:m.description)&&void 0!==p?p:"",{storyPinDataId:W}=R,q=null===(h=R.storyPinData)||void 0===h?void 0:null===(y=h.metadata)||void 0===y?void 0:y.pinTitle,Y=(null===(v=R.pinJoin)||void 0===v?void 0:v.visualAnnotation)||void 0,{closeupDescription:X}=R,{closeupUnifiedDescription:Q}=R,J=(null===(f=R.pinJoin)||void 0===f?void 0:f.seoBreadcrumbs)&&(R.pinJoin.seoBreadcrumbs.length>0?R.pinJoin.seoBreadcrumbs[0].name:"")||"",ee=null!==(b=null===(x=R.pinJoin)||void 0===x?void 0:null===(k=x.visualAnnotation)||void 0===k?void 0:k[0])&&void 0!==b?b:"";(F=R.nativeCreator?R.nativeCreator:R.linkDomain?R.linkDomain.officialUser:R.originPinner||R.pinner)&&"string"!=typeof F||(F=null!==(D=null===(j=R.linkDomain)||void 0===j?void 0:j.officialUser)&&void 0!==D?D:R.pinner);let et=(null===(P=F)||void 0===P?void 0:P.username)||"",en=(null===(S=R.pinJoin)||void 0===S?void 0:S.seoBreadcrumbs)&&(R.pinJoin.seoBreadcrumbs.length>0?R.pinJoin.seoBreadcrumbs[0].url:"")||"",ei=R.category||"",el={"236x":R.imageSpec_236,"474x":R.imageSpec_474,"736x":R.imageSpec_736},ea=(0,g.Ly)({pinTitle:Z,gridTitle:H,richSummaryDisplayName:V,richMetadataTitle:G,storyPinDataId:W,storyPinDataMetadataPinTitle:q,pinJoinVisualAnnotation:Y})||"",er=(0,_.Z)({storyPinDataId:W,pinDescription:U,richMetadataDescription:$,richSummaryDisplayName:V,closeupDescription:X,closeupUnifiedDescription:Q});return(0,C.jsx)(K,{embedSrc:null===(w=R.embed)||void 0===w?void 0:w.src,embedType:null===(A=R.embed)||void 0===A?void 0:A.type,hasRichMetadata:!!R.richMetadata,hasRichMetadataArticle:!!(null!==(T=R.richMetadata)&&void 0!==T&&T.article),hasRichMetadataProducts:!!(null!==(I=R.richMetadata)&&void 0!==I&&I.products),hasRichMetadataRecipe:!!(null!==(E=R.richMetadata)&&void 0!==E&&E.recipe),imagesUrls:Object.keys(el).reduce((e,t)=>{var n;return t&&null!==(n=el[t])&&void 0!==n&&n.url?{...e,[t]:el[t].url}:e},{}),interestTag:ee,isStoryPin:L,l1InterestName:J,onDismiss:t,location:n,pinCategory:ei,pinId:i,pinDescription:er,pinTitle:ea,pinJoinSeoBreadcrumbUrl:en,sourceUserUsername:et,vaseSection:l,pinEligibleForDownload:B,onSendButtonClick:a})}function V({graphqlRef:e,...t}){return e?(0,C.jsx)(H,{graphqlRef:e,...t}):(0,C.jsx)(U,{...t})}let G=void 0!==l?l:l=n(561296);function $({graphqlRef:e,children:t,onSendButtonClick:n}){let i=(0,r.useFragment)(G,e),[l,d]=(0,a.useState)(null),[u,c]=(0,a.useState)(""),[p,m]=(0,a.useState)(""),{pathname:h}=(0,o.useLocation)(),_=!!l,g=(0,a.useMemo)(()=>({modal:{isShown:_},showUnauthContextMenu:({location:e,pinId:t,vaseSection:n})=>{d({vaseSection:n}),c(t),m(e)},dismissMobileUnauthContextMenu:()=>d(null)}),[_]);return(0,a.useEffect)(()=>{d(null)},[h]),(0,C.jsxs)(s.M,{value:g,children:[t,l&&(0,C.jsx)(V,{graphqlRef:i,onDismiss:g.dismissMobileUnauthContextMenu,pinId:u,vaseSection:l.vaseSection,location:p||"default",onSendButtonClick:n})]})}},116674:(e,t,n)=>{"use strict";n.d(t,{X:()=>u,f:()=>d});var i=n(667294),l=n(425288),a=n(623568);function r(e=null,t){switch(t.type){case"REPORT_CONTENT_SHOW":return{id:t.payload.id,isProduct:t.payload.isProduct,isPromoted:t.payload.isPromoted,parentId:t.payload.parentId,videoDuration:t.payload.videoDuration,viewParameter:t.payload.viewParameter,viewType:t.payload.viewType,type:t.payload.type,isThirdPartyAd:t.payload.isThirdPartyAd};case"REPORT_CONTENT_DISMISS":return null;default:return e}}var o=n(785893);let{Provider:s,useHook:d}=(0,l.Z)("ReportData");function u({children:e}){let[t,n]=(0,i.useReducer)(r,null),l=(0,i.useCallback)(()=>n({type:"REPORT_CONTENT_DISMISS"}),[]),d=(0,i.useCallback)((e,t,i)=>n({type:"REPORT_CONTENT_SHOW",payload:{id:e,isProduct:!1,isPromoted:!1,parentId:t,videoDuration:null,viewParameter:null,viewType:null,type:i}}),[]),u=(0,i.useCallback)((e,t,i)=>n({type:"REPORT_CONTENT_SHOW",payload:{id:e,isProduct:!1,isPromoted:!1,videoDuration:null,viewParameter:t,viewType:i,type:"conversation"}}),[]),c=(0,i.useCallback)((e,t,i)=>n({type:"REPORT_CONTENT_SHOW",payload:{id:e,isProduct:!1,isPromoted:!1,videoDuration:null,viewParameter:t,viewType:i,type:"pin"}}),[]),p=(0,i.useCallback)(({pinId:e,isDownstreamPromotion:t,hasPromoter:i,firstVideoDuration:l,isProduct:r,viewParameter:o,viewType:s,isThirdPartyAd:d})=>{let u=(0,a.jL)(t,i);n({type:"REPORT_CONTENT_SHOW",payload:{id:e,isProduct:r,isPromoted:u,videoDuration:l,viewParameter:o,viewType:s,type:"pin",isThirdPartyAd:d}})},[]),m=(0,i.useMemo)(()=>({reportData:t,dismiss:l,reportComment:d,reportConversation:u,reportImage:c,reportPin:p}),[t,l,d,u,c,p]);return(0,o.jsx)(s,{value:m,children:e})}},862193:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i,l=n(667294),a=n(167912);let r=void 0!==i?i:i=n(434444),o=e=>{var t;let n=(0,a.useFragment)(r,e),i=null==n?void 0:null===(t=n.pinJoin)||void 0===t?void 0:t.annotationsWithLinksArray,o=(0,l.useMemo)(()=>null==i?void 0:i.reduce((e,{name:t,url:n})=>t?{...e,[t]:{name:t,url:n}}:e,{}),[i]);return o}},986926:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i,l=n(667294),a=n(167912);let r=void 0!==i?i:i=n(982182),o=e=>{let t=(0,a.useFragment)(r,e),n=null==t?void 0:t.reactionCountsData,i=(0,l.useMemo)(()=>n?n.reduce((e,t)=>{var n,i;return{...e,[String(null!==(n=t.reactionType)&&void 0!==n?n:0)]:null!==(i=t.reactionCount)&&void 0!==i?i:0}},{}):n,[n]);return i}},817767:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var i,l=n(702664);n(167912);var a=n(883119),r=n(112690),o=n(357998),s=n(898781),d=n(667679),u=n(867820),c=n(52022),p=n(19121),m=n(512176),h=n(815613),_=n(461773),g=n(90326),y=n(892819),v=n(349700),f=n(780280),b=n(785893);let x=({followerCount:e})=>{let t=(0,s.ZP)(),n=(0,y.Z)(),{locale:i}=(0,f.B)();return(0,b.jsx)(a.xv,{children:(0,v.nk)(t.ngettext('{{followers}} follower', '{{followers}} followers', e, 'pinPage.attribution.followersCount', 'Count of a user\'s followers'),{followers:n(i,e,{shortform:!0,shortform_maximum_fraction_digits:0})})})},k=void 0!==i?i:i=n(951193),P=e=>({});function S(e){let t=(0,p.Z)(),n=t.isAuth&&t.id,i=t.isAuth,y=(0,s.ZP)(),v=(0,d.Z)(),f=(0,r.Z)(),S=(0,c.Z)(),w=(0,l.useDispatch)(),A=e=>w((0,_.ZN)(e)),T=e=>w((0,_.fv)(e)),I=e=>w((0,g.h2)(e,f)),{avatarSize:E,detailText:C,hideButtons:D,blockedByMe:j,explicitlyFollowedByMe:F,followerCount:R,fullName:L,id:z,imageLargeUrl:O,imageMediumUrl:M,imageSmallUrl:N,isEligibleForPdp:B,isVerifiedMerchant:Z,verifiedIdentityVerified:K,username:U,isCurrentUser:H,isOnCloseup:V,isImagePinForUnauthOnTablet:G,pinId:$,pinKey:W,shouldNavigateToProfile:q=!0,textColor:Y,type:X,viewParameter:Q,viewType:J,unauthFollow:ee,activateLexFollowExp:et,clientTrackingParams:en}=e,{data:ei}=(0,o.Q)(k,W,{useLegacyAdapter:P}),el=($&&$.length,()=>{i?(A(z),f({event_type:45,view_type:3,view_parameter:156,view_data:{isCurrentUser:H,viewObjectId:$,viewObjectIdStr:$},object_id_str:z,clientTrackingParams:en})):v({reason:"ACTION_REQUIRES_LOGIN_OR_SIGNUP",attributionLabel:"click_follow",desktopOptions:{modalType:"login"}})}),ea=()=>{T(z),f({event_type:46,view_type:3,view_parameter:156,object_id_str:z,clientTrackingParams:en})},er=()=>(0,b.jsx)(h.Z,{disableLog:!0,followEventType:45,id:z,isFollowed:F||!1,isSecondaryButton:!0,isUserFollowButton:!0,isUserMe:n===z,onFollow:()=>V?el():A(z),onUnfollow:()=>V?ea():T(z),pinKey:ei,size:"md",unfollowEventType:46,viewParameter:Q,viewType:J,clientTrackingParams:en}),eo=()=>{if(j)return(0,b.jsx)(a.zx,{fullWidth:!0,color:"gray",onClick:()=>I(z),size:"md",text:y._('Unblock', ' - ', ' -- ')});if(i)return er();if(et){if(!et().group.includes("hide_follow")&&ee)return er()}else if(ee)return er();return null},es=e=>(0,b.jsx)(a.xu,{"data-test-id":"avatar-image",children:(0,b.jsx)(a.HE,{accessibilityLabel:y._('User`s avatar', 'User`s avatar', 'User`s avatar'),onClick:()=>{S({action:"click",item:"avatar-image"})},collaborators:[{name:null!=L?L:"",src:O||M||N||void 0}],size:(e||{}).size})}),ed=G?"calc(100% - 48px)":void 0,eu=Z||K,ec=(0,b.jsxs)(a.kC,{alignItems:"center",flex:"shrink",justifyContent:"start",children:[(0,b.jsx)(a.xu,{flex:"none",marginEnd:2,children:es({size:E||"md"})}),(0,b.jsxs)(a.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",maxWidth:ed,children:[(0,b.jsxs)(a.kC,{alignItems:"stretch",justifyContent:"start",children:[!i&&B&&!eu&&(0,b.jsx)(a.xu,{marginEnd:1,children:(0,b.jsx)(a.xv,{children:y._('Saved by', 'Context on user rep', 'userRep.saveContext')})}),(0,b.jsx)(a.xu,{"data-test-id":"username",children:(0,b.jsx)(a.iP,{onTap:()=>{S({action:"click",item:"username"})},children:(0,b.jsx)(a.xv,{color:Y||"default",lineClamp:G?1:void 0,weight:"bold",children:L})})}),eu&&(0,b.jsx)(a.xu,{marginStart:1,paddingY:1,children:(0,b.jsx)(m.Z,{showVerifiedIdentity:!Z,size:"sm"})})]}),(0,b.jsx)(a.xv,{color:Y||"default",lineClamp:G?1:void 0,children:C}),!!R&&(0,b.jsx)(a.xu,{"data-test-id":"user-follower-count",children:(0,b.jsx)(a.iP,{onTap:()=>{S({action:"click",item:"user-follower-count"})},children:(0,b.jsx)(x,{followerCount:R})})})]})]}),ep="row"===X?(0,b.jsxs)(a.kC,{alignItems:"center",justifyContent:"between",children:[ec,!D&&(0,b.jsx)(a.xu,{flex:"none",marginStart:2,children:eo()})]}):(0,b.jsxs)(a.xu,{maxWidth:ed,padding:2,children:[es(),(0,b.jsxs)(a.xu,{display:"flex",paddingY:2,children:[(0,b.jsx)(a.xv,{align:"center",size:"200",lineClamp:1,weight:"bold",children:L}),eu&&(0,b.jsx)(a.xu,{marginStart:1,paddingY:1,children:(0,b.jsx)(m.Z,{showVerifiedIdentity:!Z,size:"sm"})})]}),!D&&eo()]}),em=(0,b.jsxs)(a.xu,{alignItems:"center",display:"flex",justifyContent:"between",overflow:"hidden",dangerouslySetInlineStyle:{__style:{pointerEvents:"auto"}},children:[(0,b.jsx)(a.Tg,{onTap:()=>{i||((0,u.NC)("click_pin_closeup_profile"),S({action:"click",item:"user-rep"}))},tapStyle:"compress",rounding:2,href:`/${encodeURIComponent(U)}/`,children:ec}),!D&&(0,b.jsx)(a.xu,{flex:"none",marginStart:2,children:eo()})]});return(0,b.jsx)(a.xu,{"data-test-id":"user-rep",width:"100%",children:q?em:ep})}},926749:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>k});var i=n(667294),l=n(883119),a=n(407043),r=n(766935),o=n(722767),s=n(121630),d=n(944546),u=n(158103),c=n(785893);function p(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let m=[0,.25,.5,.75,.95,.97],h=[0,.5,.8,.99,1],_="-64px 0px 0px 0px",g={rootMargin:_,threshold:h},y={rootMargin:_,threshold:d.i},v=Object.freeze({LOADING:0,PLAYING:1,PAUSED:2,STALLING:3});function f(){return new Date().getTime()}function b(e){return!!e.volume&&e.volume>0}class x extends i.Component{constructor(e){super(e),p(this,"videoWrapperRef",(0,i.createRef)()),p(this,"handleWindowResize",()=>{if(!this.fullscreen){let 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)}}),p(this,"handlePlayheadDown",({event:e})=>{let{onPlayheadDown:t}=this.props;this.setState({seeking:!0}),t&&t({event:e})}),p(this,"handlePlayheadUp",({event:e})=>{let{onPlayheadUp:t}=this.props;this.setState({seeking:!1}),t&&t({event:e})}),p(this,"handleLoop",()=>{this.videoTime=0}),p(this,"handleTimeChange",e=>{let{seeking:t,ready:n}=this.state;if(!this.currentInterval.videoDuration)return;let i=1e3*e.time,l=function(e,t,n,i){if(e>t||n<=0)return null;for(let l of i){let i=l*n;if(e<=i&&t>i)return l}return null}(this.videoTime,i,this.currentInterval.videoDuration,m);if("number"==typeof l&&this.props.playing&&!t&&n){let e=f();this.logVideoEvent(6906,{...this.currentInterval,startTime:e,endTime:e,videoStartTime:0,videoEndTime:0,quartile:Math.floor(4*l),quartilePercentValue:l})}this.videoTime=i,this.props.onTimeChange&&this.props.onTimeChange(e)}),p(this,"handleDurationChange",e=>{this.currentInterval.videoDuration=1e3*e.duration,this.props.onDurationChange&&this.props.onDurationChange(e)}),p(this,"handleReady",e=>{let{ready:t}=this.state;t||this.setState({ready:!0}),this.props.onReady&&this.props.onReady(e)}),p(this,"handleEnded",e=>{this.logFourthQuartileEvent(),this.props.loop&&(this.startNewInterval(),this.currentInterval.videoStartTime=0),this.props.onEnded&&this.props.onEnded(e)}),p(this,"handleVisibilityChange",e=>{if(0===e.length)return;let t=e.slice(-1)[0],n=function(e,t){for(let n=0;n<t.length;n+=1){let i=t[n],l=t[n+1];if(null==l||i<=e&&e<l)return i}return null}(Number.parseFloat(t.intersectionRatio.toFixed(2)),h);"number"==typeof n&&(this.visible=n>=.5),null==n||n===this.currentInterval.viewability||this.fullscreen||(0===n?this.startNewInterval({viewability:n,playbackState:v.PAUSED}):this.startNewInterval({viewability:n}))}),p(this,"handleFullscreenChange",({event:e,fullscreen:t})=>{if(t){let{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})}),p(this,"handleClose",()=>{this.startNewInterval()}),p(this,"handleContextMenu",e=>{e.preventDefault()}),this.state={ready:!1,seeking:!1};let t=f();this.handleWindowResize=(0,r.Z)(this.handleWindowResize,1e3),this.currentInterval={videoDuration:0,startTime:t,endTime:t,videoStartTime:0,videoEndTime:0,isAudible:b(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){let n={};b(e)&&!b(this.props)?n.isAudible=!1:!b(e)&&b(this.props)&&(n.isAudible=!0);let 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?v.PLAYING:v.PAUSED:v.LOADING}getDimensions(){let e,t;if(this.videoWrapperRef.current){let 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){let{closeupStoryPinViewability:n,contextLogData:i,logContextEvent:l,playing:a,surface:r}=this.props,{seeking:o}=this.state,{height:s,width:d,windowHeight:u,windowWidth:c,viewability:p,...m}=t;if(null!=s&&null!=d&&null!=u&&null!=c&&null!=p){let t={...m,gridAutoplay:6904===e&&a&&!o&&("AuthHomefeed"===r||"SearchItem"===r||"RelatedPinGrid"===r),height:s,width:d,windowHeight:u,windowWidth:c,viewability:n||p};l({event_type:e,...function(e){let{eventData:{videoEvent:{gridAutoplay:t,videoDuration:n,startTime:i,endTime:l,videoStartTime:a,videoEndTime:r,isAudible:o,height:s,width:d,playbackState:u,quartile:c,quartilePercentValue:p,windowHeight:m,windowWidth:h,viewability:_}},component:g,objectId:y,view:v,viewParameter:f,...b}=e;return{component:g,object_id_str:y,view_type:v,view_parameter:f,aux_data:{...b},event_data:{videoEventData:{gridAutoplay:t,videoDuration:n,time:i,endTime:l,videoTime:a,endVideoTime:r,isAudible:o,height:s,width:d,playbackState:u,quartile:c,quartilePercentValue:p,windowHeight:m,windowWidth:h,viewability:_}}}}({...i,view:this.fullscreen?108:i.view,eventData:{videoEvent:t}})})}}logFourthQuartileEvent(){let e=f();this.logVideoEvent(6906,{...this.currentInterval,startTime:e,endTime:e,videoStartTime:0,videoEndTime:0,quartile:4,quartilePercentValue:1})}startNewInterval(e){let t=f();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(){let{aspectRatio:e,backgroundColor:t,captions:n,contextLogData:i,controls:a,cropHeight:r,hlsConfig:d,inAdsDesktopVideoExperiment:p,isAutoPlay:m,loop:h,objectFit:_,onLoadedChange:v,onControlsPause:f,onControlsPlay:b,onSeek:x,onVolumeChange:k,playbackRate:P,playing:S,playsInline:w,poster:A,preload:T,rootMargin:I,src:E,surface:C,videoStartTime:D,volume:j}=this.props,{seeking:F}=this.state,R=p?y:g;return void 0!==I&&(R.rootMargin=C?(0,s.e)(C):I),(0,c.jsx)(o.Z,{options:R,onVisibilityChange:this.handleVisibilityChange,children:(0,c.jsx)(l.xu,{ref:this.videoWrapperRef,onContextMenu:this.handleContextMenu,dangerouslySetInlineStyle:{__style:r?{display:"flex",alignItems:"center",height:`${r}px`}:{}},children:(0,c.jsx)(u.default,{aspectRatio:r?236/r:e,backgroundColor:t,captions:n,contextLogData:i,controls:a,hlsConfig:d,isAutoPlay:m,loop:h,objectFit:_,onDurationChange:this.handleDurationChange,onEnded:this.handleEnded,onFullscreenChange:this.handleFullscreenChange,onLoadedChange:v,onLoop:this.handleLoop,onControlsPause:f,onControlsPlay:b,onPlayheadDown:this.handlePlayheadDown,onPlayheadUp:this.handlePlayheadUp,onReady:this.handleReady,onSeek:x,onTimeChange:this.handleTimeChange,onVolumeChange:k,playbackRate:P,playing:!F&&S,onPlay:()=>{},onPlayError:()=>{},playsInline:w,poster:A,preload:T,src:E,videoStartTime:D,visible:this.visible,volume:j})})})}}function k(e){let{logContextEvent:t}=(0,a.v)();return(0,c.jsx)(x,{...e,logContextEvent:t})}p(x,"defaultProps",l.nk.defaultProps)},158103:(e,t,n)=>{"use strict";n.r(t),n.d(t,{VideoWrapper:()=>w,default:()=>A,getPlaylistSourceSrc:()=>S});var i=n(667294),l=n(883119),a=n(366284),r=n(780280),o=n(858416),s=n(562559),d=n(994320),u=n(965900),c=n(407043),p=n(391254),m=n(773285),h=n(19121),_=n(969315),g=n(179888),y=n(539766),v=n(785893);function f(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!e||void 0===e)return"undefined";if("string"==typeof e){let n=e;return t&&(n=e.replace("v1.pinimg.com","control"===t?"v3.pinimg.com":"v2.pinimg.com")),n}if(Array.isArray(e)&&e[0].src){let n=e[0].src;return t&&(n=n.replace("v1.pinimg.com","control"===t?"v3.pinimg.com":"v2.pinimg.com")),n}return`unsupported_type_${typeof e}`}class x extends i.Component{constructor(...e){super(...e),f(this,"state",{canPlayVideo:!1,playbackState:g.Cy.DEFAULT,videoStartTime:this.props.seekTime?this.props.seekTime:this.props.videoStartTime||0}),f(this,"errorRetryCount",2),f(this,"hasSegmentStarted",!1),f(this,"hasPlaybackStarted",!1),f(this,"hasVideoSessionStarted",!1),f(this,"hasVideoSessionEnded",!1),f(this,"lastStallTime",null),f(this,"lastPauseTime",null),f(this,"logSessionStartOnNextPlay",!1),f(this,"playerId",""),f(this,"videoSessionId",""),f(this,"videoVisibleTime",null),f(this,"playbackPerformance",{canPlayTime:null,detailedErrors:"",errorCode:0,errorName:"",errorReason:"",hasFatalError:!1,loadStartTime:null,numberOfStalls:0,numberOfSeeks:0,playbackStartTimestamp:null,segments:[],srcString:b(this.props.src,this.props.quicExpGroup),totalStallDurationMs:0,totalPauseDurationMs:0}),f(this,"componentDidMount",()=>{var e,t;let{contextLogData:n={},playing:i}=this.props,{is_closeup_video:l=!1}=n;(0,_.tE)("videoMounted",!1,l),i&&(this.videoVisibleTime=new Date,this.logPlaybackPerformance(g.DR,{initiator:"mount"}));let a=null===(e=this.videoPlayerRef)||void 0===e?void 0:null===(t=e.video)||void 0===t?void 0:t.textTracks[0];a&&a.addEventListener("cuechange",()=>{let e=a.activeCues[0];e&&e.line&&(e.line=-6,e.size=88)})}),f(this,"componentDidUpdate",e=>{var t,n;let{playing:i,visible:l,appInFocus:a,seekTime:r,captionsEnabled:o}=this.props;r&&r!==e.seekTime&&this.setState({videoStartTime:r});let s=null===(t=this.videoPlayerRef)||void 0===t?void 0:null===(n=t.video)||void 0===n?void 0:n.textTracks[0];s&&(o?s.mode="showing":s.mode="disabled"),e.appInFocus&&!a&&(this.logPlaybackPerformance(g.$f,{initiator:"update"}),this.logSessionStartOnNextPlay=!0),e.visible&&!1===l&&(this.logSessionStartOnNextPlay=!1,this.updatePauseDuration(),this.logPlaybackPerformance(g.$f,{initiator:"update"})),!1===e.visible&&!0===l&&(this.videoVisibleTime=this.videoVisibleTime||new Date,i?(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(g.DR,{initiator:"update"})):this.logSessionStartOnNextPlay=!0),i&&a&&this.logSessionStartOnNextPlay&&(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(g.DR,{initiator:"update"}),this.logSessionStartOnNextPlay=!1)}),f(this,"addSegment",()=>{let{canPlayTime:e,loadStartTime:t,segments:n,srcString:i}=this.playbackPerformance,l=-1;e&&t&&0===n.length&&(l=e>t?e-t:0);let a=this.videoPlayerRef&&this.videoPlayerRef.video,r={indicatedKbps:-1,duration:a&&a.duration*g.gJ||-1,lastStartPlayTime:null,level:-1,numServerAddressChange:-1,observedKbps:-1,playbackStartDate:null,serverAddress:"",sourceWidth:-1,sourceHeight:-1,startupTimeMs:l,switchBitrateKbps:-1,uri:i,viewportWidth:a&&a.clientWidth||-1,viewportHeight:a&&a.clientHeight||-1,watchedDurationMs:0};n.push(r)}),f(this,"getCurrentVideoTime",()=>this.videoPlayerRef&&this.videoPlayerRef.video?this.videoPlayerRef.video.currentTime*g.gJ:0),f(this,"getVideoResourceTiming",()=>{var e,t;if(null!==(e=window)&&void 0!==e&&null!==(t=e.performance)&&void 0!==t&&t.getEntriesByName&&this.playbackPerformance.srcString){let e=window.performance.getEntriesByName(this.playbackPerformance.srcString);return e.length>0&&e[0]||null}return null}),f(this,"handleCanPlayVideo",e=>{let{contextLogData:t={},onReady:n,playing:i}=this.props,{is_closeup_video:l=!1}=t,{canPlayVideo:a}=this.state;(0,_.tE)("handleCanPlayVideo",!1,l,{firstCanPlayEvent:!a,playing:i}),this.playbackPerformance.hasFatalError=!1,a||(this.playbackPerformance.canPlayTime=new Date),this.setState({canPlayVideo:!0}),n&&n(e)}),f(this,"handleEnded",e=>{let{loop:t,onEnded:n}=this.props,{segments:i}=this.playbackPerformance,l=i&&i[i.length-1];t&&this.videoPlayerRef&&this.videoPlayerRef.video?(this.updateWatchDurationForCurrentSegment(),l&&(l.lastStartPlayTime=0),this.hasSegmentStarted=!1):t||this.logPlaybackPerformance(g.$f,{initiator:"videoEnded",loop:t}),this.setState({playbackState:g.Cy.ENDED}),n&&n(e)}),f(this,"handleError",()=>{var e,t,n,i,l,a,r,o;let{contextLogData:s={}}=this.props,{is_closeup_video:d=!1}=s,u=this.videoPlayerRef&&this.videoPlayerRef.video;(null==u?void 0:null===(e=u.error)||void 0===e?void 0:e.code)!==g.lG.MEDIA_ERR_ABORTED&&(this.playbackPerformance.hasFatalError=!0),this.playbackPerformance.detailedErrors+=`${this.playbackPerformance.detailedErrors.length>0?", ":""}${(null==u?void 0:null===(t=u.error)||void 0===t?void 0:t.message)||""}`,this.playbackPerformance.errorCode=(null==u?void 0:null===(n=u.error)||void 0===n?void 0:n.code)||0,this.playbackPerformance.errorName=(null==u?void 0:null===(i=u.error)||void 0===i?void 0:null===(l=i.message)||void 0===l?void 0:l.slice(0,100))||"unknown",this.playbackPerformance.errorReason=(null==u?void 0:null===(a=u.error)||void 0===a?void 0:null===(r=a.message)||void 0===r?void 0:r.slice(0,100))||"unknown";let c={errorName:this.playbackPerformance.errorCode,errorReason:this.playbackPerformance.errorName,errorRetryCount:this.errorRetryCount,playbackState:this.state.playbackState,networkState:(null==u?void 0:u.networkState)||"unknown"};switch((0,_.tE)("fatalError",!1,d,c),null==u?void 0:null===(o=u.error)||void 0===o?void 0:o.code){case g.lG.MEDIA_ERR_ABORTED:break;case g.lG.MEDIA_ERR_NETWORK:case g.lG.MEDIA_ERR_DECODE:case g.lG.MEDIA_ERR_SRC_NOT_SUPPORTED:default:this.errorRetryCount>0&&(null==u||u.load(),this.errorRetryCount-=1)}this.updateWatchDurationForCurrentSegment(),this.setState({playbackState:g.Cy.FAILED})}),f(this,"handleLoadedMetadata",()=>{this.setState({playbackState:g.Cy.LOADED_METADATA})}),f(this,"handleLoadStart",()=>{this.playbackPerformance.loadStartTime=new Date,this.setState({playbackState:g.Cy.LOAD_START})}),f(this,"handleLoadedData",()=>{this.setState({playbackState:g.Cy.LOADED_DATA})}),f(this,"handlePlaying",()=>{this.playbackPerformance.hasFatalError=!1,this.setPlaybackStartTime(),this.hasSegmentStarted||this.addSegment(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.updateStallDuration(),this.updatePauseDuration(),this.setState({playbackState:g.Cy.PLAYING}),this.props.clearSeekTime&&this.props.clearSeekTime()}),f(this,"handleUserPause",({event:e})=>{let{onControlsPause:t}=this.props;this.lastPauseTime=new Date,t&&t({event:e})}),f(this,"handleVideoPause",()=>{this.state.playbackState===g.Cy.STALLING||this.state.playbackState===g.Cy.SEEKING||(this.updateWatchDurationForCurrentSegment(),this.lastPauseTime||this.updateStallDuration()),this.setState({playbackState:g.Cy.PAUSED})}),f(this,"handleSeeking",()=>{this.playbackPerformance.numberOfSeeks+=1;let{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&(t.lastStartPlayTime=null),this.state.playbackState!==g.Cy.ENDED&&this.setState({playbackState:g.Cy.SEEKING})}),f(this,"handleStalled",()=>{null===this.lastStallTime&&this.state.playbackState!==g.Cy.ENDED&&(this.lastStallTime=new Date,this.playbackPerformance.numberOfStalls+=1,this.setState({playbackState:g.Cy.STALLING}))}),f(this,"handleTimeUpdate",e=>{let{onTimeChange:t}=this.props;t&&t(e),this.state.playbackState===g.Cy.PLAYING&&(this.updateWatchDurationForCurrentSegment(),this.setLastSegmentStartPlayTime())}),f(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;let e=this.playbackPerformance.segments[this.playbackPerformance.segments.length-1],t={...e,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=[t]}),f(this,"setLastSegmentStartPlayTime",()=>{let{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.lastStartPlayTime&&(t.lastStartPlayTime=this.getCurrentVideoTime())}),f(this,"setLastSegmentPlaybackStartDate",()=>{let{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.playbackStartDate&&(t.playbackStartDate=Date.now())}),f(this,"setPlaybackStartTime",()=>{this.hasPlaybackStarted||(this.playbackPerformance.playbackStartTimestamp=Date.now(),this.hasPlaybackStarted=!0)}),f(this,"setVideoPlayerRef",e=>{let{setVideoRef:t}=this.props;if(e&&(t&&t(e),this.videoPlayerRef=e,this.videoPlayerRef.video)){let e=this.videoPlayerRef.video;e.addEventListener("loadedmetadata",this.handleLoadedMetadata),e.addEventListener("loadeddata",this.handleLoadedData),e.addEventListener("pause",this.handleVideoPause),e.readyState>=3&&(this.setState({canPlayVideo:!0}),this.playbackPerformance.canPlayTime=new Date)}}),f(this,"updateStallDuration",()=>{if(null!==this.lastStallTime){let{lastStallTime:e}=this;this.playbackPerformance.totalStallDurationMs+=new Date-e,this.lastStallTime=null}}),f(this,"updatePauseDuration",()=>{if(null!==this.lastPauseTime){let{lastPauseTime:e}=this;this.playbackPerformance.totalPauseDurationMs+=new Date-e,this.lastPauseTime=null}}),f(this,"updateWatchDurationForCurrentSegment",()=>{let{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){let e=i-n;e>0&&(t.watchedDurationMs+=e,t.lastStartPlayTime=null)}}),f(this,"logPlaybackPerformance",(e,t)=>{let{contextLogData:n={},userId:i,isAutoPlay:l,logContextEvent:a,preload:r}=this.props,{is_closeup_video:o=!1}=n,{canPlayTime:s,detailedErrors:d,errorCode:u,errorName:c,errorReason:p,hasFatalError:m,loadStartTime:h,totalPauseDurationMs:y,totalStallDurationMs:v,numberOfStalls:f,numberOfSeeks:b,playbackStartTimestamp:x,segments:k,srcString:P}=this.playbackPerformance,S=this.videoPlayerRef&&this.videoPlayerRef.video,w=e===g.DR,A=w&&!this.hasVideoSessionStarted,T=!w&&!this.hasVideoSessionEnded&&this.hasVideoSessionStarted;if(S&&(A||T)){var I;let A=-1;s&&h&&(A=s>h?s-h:0);let T=-1;s&&this.videoVisibleTime&&(T=s>this.videoVisibleTime?s-this.videoVisibleTime:0),w&&(this.videoSessionId=(0,g.Y7)(i),this.playerId=this.playerId||(0,g.EB)());let E=this.getVideoResourceTiming(),C={averageVideoKbps:-1,autoplaying:l,detailedErrors:d,downloadedKiloBytes:"number"==typeof(null==E?void 0:E.decodedBodySize)&&E.decodedBodySize/g.Fm||0,errorCode:u,errorName:c,errorReason:p,fatalError:m,isCellular:!1,nativeVideoDurationMs:S.duration*g.gJ||-1,numberOfStalls:f,numberOfSeeks:b,overallPausedDurationMs:y,overallBufferDurationMs:v,overallWatchedDurationMs:-1,rebufferRate:-1,playbackSessionId:this.videoSessionId,playbackStartTimestamp:x||-1,segments:[],sessionMark:e,screenPixelScale:null!==(I=window)&&void 0!==I&&I.devicePixelRatio?window.devicePixelRatio:-1,startupPlayerWidth:S.clientWidth,startupPlayerHeight:S.clientHeight,startupTimeMs:A,startupLatencyMs:T,startupVariantKbps:-1,startupVariantWatchedDurationMs:-1,startupVariantWidth:S.videoWidth,startupVariantHeight:S.videoHeight,videoUrl:P,wasVideoPreloaded:"auto"===r};if(!w){this.updateWatchDurationForCurrentSegment(),this.updateStallDuration();let e=k.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,_.ZP)(C,!1,o,{playbackState:this.state.playbackState,...t});let{view:D,viewParameter:j,component:F,element:R,objectId:L,...z}=n;a({event_type:3606,event_data:{videoPerformanceData:C},view_type:D,view_parameter:j,component:F,element:R,object_id_str:L,aux_data:{...z,is_closeup_video:o,playback_session_id:this.videoSessionId}}),w?(this.hasVideoSessionStarted=!0,this.hasVideoSessionEnded=!1):this.resetPlaybackMetrics(),(0,_.tE)(w?"sessionStart":"sessionEnd",!1,o,{playbackState:this.state.playbackState,...t})}})}componentWillUnmount(){let{loop:e}=this.props;this.updatePauseDuration(),this.logPlaybackPerformance(g.$f,{initiator:"unmount",loop:e})}render(){let{aspectRatio:e,captions:t,controls:n,loop:a,loopOverride:r,objectFit:o,onDurationChange:s,onFullscreenChange:d,onLoadedChange:u,onControlsPlay:c,onPlayheadDown:m,onPlayheadUp:h,onSeek:_,onVolumeChange:g,playbackRate:f,playing:x,playsInline:k,poster:P,preload:S,src:w,volume:A}=this.props,{canPlayVideo:T,videoStartTime:I}=this.state;return(0,v.jsxs)(i.Fragment,{children:[(0,v.jsx)(p.Z,{unsafeCSS:y.P}),(0,v.jsx)(l.nk,{autoplay:T&&x,aspectRatio:e,captions:t,controls:n,loop:void 0===r?a:r,objectFit:o,onDurationChange:s,onEnded:this.handleEnded,onError:this.handleError,onFullscreenChange:d,onLoadedChange:u,onLoadStart:this.handleLoadStart,onControlsPause:this.handleUserPause,onControlsPlay:c,onPlaying:this.handlePlaying,onPlayheadDown:m,onPlayheadUp:h,onReady:this.handleCanPlayVideo,onSeek:_,onSeeking:this.handleSeeking,onStalled:this.handleStalled,onTimeChange:this.handleTimeUpdate,onVolumeChange:g,onWaiting:this.handleStalled,playbackRate:f,onPlay:()=>{},onPlayError:()=>{},playing:T&&x,playsInline:k,poster:P,preload:S,ref:this.setVideoPlayerRef,src:b(w,this.props.quicExpGroup),startTime:I||void 0,volume:A})]})}}let k=(0,i.memo)(function(e){let{logContextEvent:t}=(0,c.v)(),{country:n,isAuthenticated:i,isBot:l,isSocialBot:a,unauthId:s,userAgent:d}=(0,r.B)(),{browserName:p,browserVersion:g,isMobile:y}=d,{contextLogData:f={}}=e,{is_closeup_video:b=!1,view:k,viewParameter:P}=f,{appUI:{appInFocus:S}}=(0,u.I)(),{checkExperiment:w}=(0,m.F)(),{clearSeekTime:A}=(0,o.RC)(),T=null;i&&(T=w("web_video_quic").group.length?w("web_video_quic").group:null);let I=(0,h.Z)();return(0,_.r$)({browserName:p,browserVersion:g,country:n,isAuthenticated:i,isBot:l,is_closeup_video:b,isMobile:y,isSocialBot:a,view:k,viewParameter:P}),(0,v.jsx)(x,{...e,userId:I.id||s,appInFocus:S,quicExpGroup:T,logContextEvent:t,clearSeekTime:A})});function P(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let S=e=>{if(Array.isArray(e)){let t=e.find(e=>"video/m3u8"===e.type);return t?t.src:void 0}return/m3u8$/.test(e)?e:void 0};class w extends i.PureComponent{constructor(e){super(e),P(this,"componentDidUpdate",e=>{var t;e.videoStartTime&&this.props.videoStartTime&&e.videoStartTime<this.props.videoStartTime&&null!==(t=this.videoPlayerRef)&&void 0!==t&&t.video&&(this.videoPlayerRef.video.currentTime=this.props.videoStartTime)}),P(this,"setVideoPlayerRef",e=>{e&&(this.videoPlayerRef=e)}),P(this,"handleOnEnded",({event:e})=>{let{loop:t,onLoop:n,onEnded:i}=this.props;i&&(i({event:e}),this.videoPlayerRef&&this.videoPlayerRef.video&&t&&(this.videoPlayerRef.video.play(),n&&n()))});let t=S(e.src);this.state={useHlsVideo:!e.preferMp4&&!(0,a.G6)(e.requestContext.userAgent.browserName)&&!!t}}render(){let{aspectRatio:e,appInFocus:t,backgroundColor:n,captions:i,toggleCaptions:l,clearSeekTime:a,contextLogData:r,controls:o,hlsConfig:d,isAutoPlay:u,loop:c,objectFit:p,onDurationChange:m,onEnded:h,onFullscreenChange:_,onLoadedChange:g,onControlsPause:y,onControlsPlay:f,onPlayheadDown:b,onPlayheadUp:x,onReady:P,onSeek:w,onTimeChange:A,onVolumeChange:T,playbackRate:I,playing:E,playsInline:C,poster:D,preferMp4:j,preload:F,seekTime:R,src:L,videoStartTime:z,visible:O,volume:M}=this.props,{useHlsVideo:N}=this.state,B=S(L),Z={...d,startPosition:z||-1},K=!h&&c;return N&&B?(0,v.jsx)(s.Z,{aspectRatio:e,appInFocus:t,backgroundColor:n,captions:i,clearSeekTime:a,contextLogData:r,controls:o,hlsConfig:Z,isAutoPlay:u,loop:c,loopOverride:K,objectFit:p,onDurationChange:m,onEnded:this.handleOnEnded,onFullscreenChange:_,onLoadedChange:g,onControlsPause:y,onControlsPlay:f,onPlayheadDown:b,onPlayheadUp:x,onReady:P,onSeek:w,onTimeChange:A,onVolumeChange:T,playbackRate:I,onPlay:()=>{},onPlayError:()=>{},playing:E,playsInline:C,poster:D,preload:F,seekTime:R,setVideoRef:this.setVideoPlayerRef,src:B,visible:O,volume:M,captionsEnabled:l}):(0,v.jsx)(k,{aspectRatio:e,captions:i,captionsEnabled:l,clearSeekTime:a,contextLogData:r,controls:o,isAutoPlay:u,loop:c,loopOverride:K,objectFit:p,onDurationChange:m,onEnded:this.handleOnEnded,onFullscreenChange:_,onLoadedChange:g,onControlsPause:y,onControlsPlay:f,onPlayheadDown:b,onPlayheadUp:x,onReady:P,onSeek:w,onTimeChange:A,onVolumeChange:T,playbackRate:I,onPlay:()=>{},onPlayError:()=>{},playing:E,playsInline:C,poster:D,preload:F,seekTime:R,setVideoRef:this.setVideoPlayerRef,src:j?L:B||L,videoStartTime:z,visible:O,volume:M})}}function A(e){let{appUI:{appInFocus:t}}=(0,u.I)(),{seekTime:n}=(0,o.Hx)(),{captionsEnabled:i}=(0,d.r)(),{clearSeekTime:l}=(0,o.RC)(),a=(0,r.B)();return(0,v.jsx)(w,{...e,appInFocus:t,requestContext:a,clearSeekTime:l,toggleCaptions:i,seekTime:n})}},944546:(e,t,n)=>{"use strict";n.d(t,{V:()=>i,i:()=>l});let i=2,l=[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]},748367:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let i={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},l=/[&><\u2028\u2029]/g;var a=n(785893);function r({id:e,isRelayResponseScript:t,testId:n,type:r="application/json",value:o}){let s=JSON.stringify(o).replace(l,e=>i[e]);return(0,a.jsx)("script",{id:e,"data-test-id":n,...t?{"data-relay-response":!0}:{},type:r,dangerouslySetInnerHTML:{__html:s}})}},597897:(e,t,n)=>{"use strict";n.d(t,{U:()=>a,Z:()=>r});var i=n(667294);let l=(0,i.createContext)();function a(){return(0,i.useContext)(l)}let r=l},127525:(e,t,n)=>{"use strict";n.d(t,{I:()=>u,Z:()=>c});var i=n(667294),l=n(616550),a=n(473727),r=n(201342),o=n(785893);let s=(0,i.createContext)(null);function d({children:e}){let t=(0,l.useLocation)(),n=(0,i.useMemo)(()=>t,[]);return(0,o.jsx)(s.Provider,{value:n,children:e})}function u(){let e=(0,l.useLocation)(),t=(0,i.useContext)(s);return e===t}function c({children:e,initialLocation:t}){return(0,o.jsx)(a.VK,{children:(0,o.jsx)(r.tn,{children:(0,o.jsx)(d,{children:e})})})}},311716:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/commentHelpful-99007872.svg"},600636:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/commentHelpfulOutline-7f59f782.svg"},559113:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/commentLoved-7942dc4f.svg"},133758:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/commentLovedOutline-97205606.svg"},184508:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/goodIdeaAnimated-5de05cb7.svg"},147916:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/goodIdeaGrid-e3e37a7f.svg"},167361:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/goodIdeaStatic-855554b0.svg"},697031:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/hahaAnimated-df9cb2fa.svg"},404247:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/hahaGrid-7945c718.svg"},836866:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/hahaStatic-28ee6e1e.svg"},620668:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/loveAnimated-ccd5b808.svg"},86119:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/loveGrid-1ec7b8e4.svg"},753873:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/loveStatic-31fc2a99.svg"},873774:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/reactionHeartOutline-24ab75a6.svg"},479197:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/reactionHeartOutlineWhite-61cdbdb7.svg"},110099:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/thanksAnimated-6831daf3.svg"},244892:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/thanksGrid-b3cf8b93.svg"},485846:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/thanksStatic-51f19932.svg"},461471:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/wowAnimated-b776449f.svg"},662502:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/wowGrid-9e62e75a.svg"},239784:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/wowStatic-d966adbd.svg"},45528:(e,t,n)=>{"use strict";n.d(t,{Fu:()=>K,NO:()=>ea,Yn:()=>en,a4:()=>F,mw:()=>j});var i,l,a,r,o,s=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},d=function(e){if("loading"===document.readyState)return"loading";var t=s();if(t){if(e<t.domInteractive)return"loading";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return"dom-interactive";if(0===t.domComplete||e<t.domComplete)return"dom-content-loaded"}return"complete"},u=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},c=function(e,t){var n="";try{for(;e&&9!==e.nodeType;){var i=e,l=i.id?"#"+i.id:u(i)+(i.classList&&i.classList.value&&i.classList.value.trim()&&i.classList.value.trim().length?"."+i.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+l.length>(t||100)-1)return n||l;if(n=n?l+">"+n:l,i.id)break;e=i.parentNode}}catch(e){}return n},p=-1,m=function(){return p},h=function(e){addEventListener("pageshow",function(t){t.persisted&&(p=t.timeStamp,e(t))},!0)},_=function(){var e=s();return e&&e.activationStart||0},g=function(e,t){var n=s(),i="navigate";return m()>=0?i="back-forward-cache":n&&(document.prerendering||_()>0?i="prerender":document.wasDiscarded?i="restore":n.type&&(i=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},y=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var i=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return i.observe(Object.assign({type:e,buffered:!0},n||{})),i}}catch(e){}},v=function(e,t,n,i){var l,a;return function(r){var o;t.value>=0&&(r||i)&&((a=t.value-(l||0))||void 0===l)&&(l=t.value,t.delta=a,t.rating=(o=t.value)>n[1]?"poor":o>n[0]?"needs-improvement":"good",e(t))}},f=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},b=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},x=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},k=-1,P=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},S=function(e){"hidden"===document.visibilityState&&k>-1&&(k="visibilitychange"===e.type?e.timeStamp:0,A())},w=function(){addEventListener("visibilitychange",S,!0),addEventListener("prerenderingchange",S,!0)},A=function(){removeEventListener("visibilitychange",S,!0),removeEventListener("prerenderingchange",S,!0)},T=function(){return k<0&&(k=P(),w(),h(function(){setTimeout(function(){k=P(),w()},0)})),{get firstHiddenTime(){return k}}},I=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},E=[1800,3e3],C=function(e,t){t=t||{},I(function(){var n,i=T(),l=g("FCP"),a=y("paint",function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(a.disconnect(),e.startTime<i.firstHiddenTime&&(l.value=Math.max(e.startTime-_(),0),l.entries.push(e),n(!0)))})});a&&(n=v(e,l,E,t.reportAllChanges),h(function(i){n=v(e,l=g("FCP"),E,t.reportAllChanges),f(function(){l.value=performance.now()-i.timeStamp,n(!0)})}))})},D=[.1,.25],j=function(e,t){var n,i;n=function(t){(function(e){if(e.entries.length){var t,n=e.entries.reduce(function(e,t){return e&&e.value>t.value?e:t});if(n&&n.sources&&n.sources.length){var i=(t=n.sources).find(function(e){return e.node&&1===e.node.nodeType})||t[0];if(i)return void(e.attribution={largestShiftTarget:c(i.node),largestShiftTime:n.startTime,largestShiftValue:n.value,largestShiftSource:i,largestShiftEntry:n,loadState:d(n.startTime)})}}e.attribution={}})(t),e(t)},i=(i=t)||{},C(x(function(){var e,t=g("CLS",0),l=0,a=[],r=function(n){n.forEach(function(e){if(!e.hadRecentInput){var t=a[0],n=a[a.length-1];l&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(l+=e.value,a.push(e)):(l=e.value,a=[e])}}),l>t.value&&(t.value=l,t.entries=a,e())},o=y("layout-shift",r);o&&(e=v(n,t,D,i.reportAllChanges),b(function(){r(o.takeRecords()),e(!0)}),h(function(){l=0,e=v(n,t=g("CLS",0),D,i.reportAllChanges),f(function(){return e()})}),setTimeout(e,0))}))},F=function(e,t){C(function(t){!function(e){if(e.entries.length){var t=s(),n=e.entries[e.entries.length-1];if(t){var i=t.activationStart||0,l=Math.max(0,t.responseStart-i);return void(e.attribution={timeToFirstByte:l,firstByteToFCP:e.value-l,loadState:d(e.entries[0].startTime),navigationEntry:t,fcpEntry:n})}}e.attribution={timeToFirstByte:0,firstByteToFCP:e.value,loadState:d(m())}}(t),e(t)},t)},R={passive:!0,capture:!0},L=new Date,z=function(e,t){i||(i=t,l=e,a=new Date,N(removeEventListener),O())},O=function(){if(l>=0&&l<a-L){var e={entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+l};r.forEach(function(t){t(e)}),r=[]}},M=function(e){if(e.cancelable){var t,n,i,l=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?(t=function(){z(l,e),i()},n=function(){i()},i=function(){removeEventListener("pointerup",t,R),removeEventListener("pointercancel",n,R)},addEventListener("pointerup",t,R),addEventListener("pointercancel",n,R)):z(l,e)}},N=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,M,R)})},B=[100,300],Z=function(e,t){t=t||{},I(function(){var n,a=T(),o=g("FID"),s=function(e){e.startTime<a.firstHiddenTime&&(o.value=e.processingStart-e.startTime,o.entries.push(e),n(!0))},d=function(e){e.forEach(s)},u=y("first-input",d);n=v(e,o,B,t.reportAllChanges),u&&b(x(function(){d(u.takeRecords()),u.disconnect()})),u&&h(function(){n=v(e,o=g("FID"),B,t.reportAllChanges),r=[],l=-1,i=null,N(addEventListener),r.push(s),O()})})},K=function(e,t){Z(function(t){var n;n=t.entries[0],t.attribution={eventTarget:c(n.target),eventType:n.name,eventTime:n.startTime,eventEntry:n,loadState:d(n.startTime)},e(t)},t)},U=0,H=1/0,V=0,G=function(e){e.forEach(function(e){e.interactionId&&(H=Math.min(H,e.interactionId),U=(V=Math.max(V,e.interactionId))?(V-H)/7+1:0)})},$=function(){return o?U:performance.interactionCount||0},W=function(){"interactionCount"in performance||o||(o=y("event",G,{type:"event",buffered:!0,durationThreshold:0}))},q=[200,500],Y=0,X=function(){return $()-Y},Q=[],J={},ee=function(e){var t=Q[Q.length-1],n=J[e.interactionId];if(n||Q.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var i={id:e.interactionId,latency:e.duration,entries:[e]};J[i.id]=i,Q.push(i)}Q.sort(function(e,t){return t.latency-e.latency}),Q.splice(10).forEach(function(e){delete J[e.id]})}},et=function(e,t){t=t||{},I(function(){W();var n,i,l=g("INP"),a=function(e){e.forEach(function(e){e.interactionId&&ee(e),"first-input"!==e.entryType||Q.some(function(t){return t.entries.some(function(t){return e.duration===t.duration&&e.startTime===t.startTime})})||ee(e)});var t,n=(t=Math.min(Q.length-1,Math.floor(X()/50)),Q[t]);n&&n.latency!==l.value&&(l.value=n.latency,l.entries=n.entries,i())},r=y("event",a,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});i=v(e,l,q,t.reportAllChanges),r&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&r.observe({type:"first-input",buffered:!0}),b(function(){a(r.takeRecords()),l.value<0&&X()>0&&(l.value=0,l.entries=[]),i(!0)}),h(function(){Q=[],Y=$(),i=v(e,l=g("INP"),q,t.reportAllChanges)}))})},en=function(e,t){et(function(t){!function(e){if(e.entries.length){var t=e.entries.sort(function(e,t){return t.duration-e.duration||t.processingEnd-t.processingStart-(e.processingEnd-e.processingStart)})[0],n=e.entries.find(function(e){return e.target});e.attribution={eventTarget:c(n&&n.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:d(t.startTime)}}else e.attribution={}}(t),e(t)},t)},ei=[2500,4e3],el={},ea=function(e,t){var n,i;n=function(t){(function(e){if(e.entries.length){var t=s();if(t){var n=t.activationStart||0,i=e.entries[e.entries.length-1],l=i.url&&performance.getEntriesByType("resource").filter(function(e){return e.name===i.url})[0],a=Math.max(0,t.responseStart-n),r=Math.max(a,l?(l.requestStart||l.startTime)-n:0),o=Math.max(r,l?l.responseEnd-n:0),d=Math.max(o,i?i.startTime-n:0),u={element:c(i.element),timeToFirstByte:a,resourceLoadDelay:r-a,resourceLoadTime:o-r,elementRenderDelay:d-o,navigationEntry:t,lcpEntry:i};return i.url&&(u.url=i.url),l&&(u.lcpResourceEntry=l),void(e.attribution=u)}}e.attribution={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadTime:0,elementRenderDelay:e.value}})(t),e(t)},i=(i=t)||{},I(function(){var e,t=T(),l=g("LCP"),a=function(n){var i=n[n.length-1];i&&i.startTime<t.firstHiddenTime&&(l.value=Math.max(i.startTime-_(),0),l.entries=[i],e())},r=y("largest-contentful-paint",a);if(r){e=v(n,l,ei,i.reportAllChanges);var o=x(function(){el[l.id]||(a(r.takeRecords()),r.disconnect(),el[l.id]=!0,e(!0))});["keydown","click"].forEach(function(e){addEventListener(e,function(){return setTimeout(o,0)},!0)}),b(o),h(function(t){e=v(n,l=g("LCP"),ei,i.reportAllChanges),f(function(){l.value=performance.now()-t.timeStamp,el[l.id]=!0,e(!0)})})}})}}}]);
400
+ //# sourceMappingURL=https://sm.pinimg.com/webapp/MobileAndUnauthPinPage-0083f61f79e906d2.mjs.map