ui.powerreviews.com Open in urlscan Pro
2600:9000:2156:f200:4:41b4:a00:93a1  Public Scan

URL: https://ui.powerreviews.com/tag-builds/10309/4.0/ui.engine.js
Submission: On December 24 via manual from RO — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

/**
 * PowerReviews, Copyright 2021
 * HEAD | 1c5b023b9 | 12/13/2021
 */
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.pwrCreate(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.pwrBind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=420)}([function(e,t,r){"use strict";e.exports=r(255)},function(e,t,r){"use strict";r.d(t,"b",function(){return o});var n=r(172),a=function(e){var t={};return Object.keys(e).forEach(function(r){var n=e[r];t[r]=n,-1!==r.indexOf("write_a_review.")&&(t[r.replace("write_a_review.","")]=n)}),t}(n),i=/pr_localization_view=(1|true)/i.test(window.location.search||""),o=function(e,t){var r;if(void 0===t&&(t=a),i)return e;var n=null!=(r=t[e])?r:function(e){return a[e]}(e);return null!=n?n:""};t.a=o},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,r){"use strict";var n=r(2),a=r.n(n),i=r(40),o=r(55),s=r.n(o),c=(r(35),function(){if("object"==typeof window&&void 0!==document.querySelectorAll&&void 0!==window.pageYOffset&&void 0!==history.pushState){var e=function(e,t,r,n){return r>n?t:e+(t-e)*function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1}(r/n)};return function(t,r,n,a){r=r||500,a=a||window;var i=window.pageYOffset;if("number"==typeof t)var o=parseInt(t);else o=function(e){return"HTML"===e.nodeName?-window.pageYOffset:e.getBoundingClientRect().top+window.pageYOffset}(t);var s=Date.now(),c=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){window.setTimeout(e,15)};!function l(){var u=Date.now()-s;a!==window?a.scrollTop=e(i,o,u,r):window.scroll(0,e(i,o,u,r)),u>r?"function"==typeof n&&n(t):c(l)}()}}}()),l=r(42),u=r(41),p=r(30),d=r(5);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}r.d(t,"k",function(){return m}),r.d(t,"h",function(){return h}),r.d(t,"g",function(){return v}),r.d(t,"x",function(){return g}),r.d(t,"n",function(){return y}),r.d(t,"E",function(){return _}),r.d(t,"B",function(){return w}),r.d(t,"m",function(){return O}),r.d(t,"l",function(){return S}),r.d(t,"y",function(){return C}),r.d(t,"A",function(){return j}),r.d(t,"p",function(){return x}),r.d(t,"v",function(){return k}),r.d(t,"o",function(){return I}),r.d(t,"F",function(){return P}),r.d(t,"z",function(){return T}),r.d(t,"c",function(){return R}),r.d(t,"w",function(){return N}),r.d(t,"j",function(){return D}),r.d(t,"i",function(){return L}),r.d(t,"e",function(){return M}),r.d(t,"b",function(){return F}),r.d(t,"a",function(){return V}),r.d(t,"D",function(){return U}),r.d(t,"d",function(){return q}),r.d(t,"r",function(){return W}),r.d(t,"q",function(){return B}),r.d(t,"s",function(){return H}),r.d(t,"t",function(){return K}),r.d(t,"u",function(){return G}),r.d(t,"C",function(){return Q}),r.d(t,"f",function(){return Y});var m=function(e){if(e.image_url)return h(Object(u.a)(e.image_url));for(var t=["100","175","300","75","50","fallback"],r=0;r<t.length;r++){if(!(!e.full_product_image_urls||!e.full_product_image_urls[t[r]]))return e.full_product_image_urls[t[r]]}},h=function(e,t){return void 0===t&&(t="d_noimage.jpg,c_lpad,w_100,h_100"),"https://media.powerreviews.com/image/fetch/f_auto,q_auto,"+t+"/"+encodeURIComponent(Object(u.a)(e))},v=function(){for(var e in Array.prototype)if(Array.prototype.propertyIsEnumerable(e)){var t=Array.prototype[e];Object.defineProperty(Array.prototype,e,{enumerable:!1,value:t})}},g=function(){return b(8)},b=function(e){var t;try{t=window.navigator.userAgent.toLowerCase()}catch(e){t=""}return(-1!==t.indexOf("msie")||!1!=!!window.navigator.userAgent.match(/Trident\/7.0/)||!1!=!!window.navigator.userAgent.match(/rv:11.0/))&&(void 0!==t&&!1==!!window.navigator.userAgent.match(/Trident\/7.0/)&&!1==!!window.navigator.userAgent.match(/rv:11.0/)?parseInt(t.split("msie")[1])==e:window.navigator.userAgent.match(/Trident\/7.0/)&&window.navigator.userAgent.match(/rv:11.0/)?11==e:void 0)},y=function(e){var t=window.document.cookie.match("(?:^|;)\\s*"+E(e)+"=([^;]*)");return t?decodeURIComponent(t[1]):null},_=function(e,t,r,n){var a=new Date,i=a;i.setTime(a.getTime()+1e3*r),window.document.cookie=e+"="+encodeURIComponent(t)+";expires="+i.toGMTString()+";path=/"+(n?";domain="+n:"")},w=function(){for(var e,t,r={},n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];for(var o=0,s=a.length;o<s;o++)for(e in a[o])void 0!==(t=a[o][e])&&(r[e]=t);return r},E=function(e){return e.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1")},O=function(e){for(var t=[],r=0;r<e;r++)t.push((36*Math.random()|0).toString(36));return t.join("")},S=function(e,t){return Math.round(Math.random()*(t-e)+e)},C=function(e){return void 0!==e&&null!==e&&""!==e&&e!==Number.NaN},j=function(e,t){return function(e){return"object"!=typeof e?typeof e:null===e?"null":Object.prototype.toString.call(e).match(/\[object\s(\w+)\]/)[1].toLowerCase()}(e)===t},x=function(e,t){var r=t||new Date,n=e||"mm/dd/yyyy";return s()(r,n)},k=function(e,t){var r="";if(e){var n=I(new Date(e));if("number"==typeof n){if(n<=1)r=t.day_ago.replace("{0}",1);else if(n>1&&n<30)r=t.days_ago.replace("{0}",n);else if(n>=30&&n<731){var a=n/30;r=t.months_ago.replace("{0}",Math.round(a))}else if(n>=731){var i=n/365;r=t.years_ago.replace("{0}",Math.round(i))}return r}}},I=function(e){var t=new Date;return Math.round(Math.abs((t.getTime()-e.getTime())/864e5))},P=function(e,t){if(window.scroll)return c(e,t);var r=e.getBoundingClientRect();return window.scrollBy?window.scrollBy(0,r.top):void 0},T=function(){return"ontouchstart"in window||navigator.msMaxTouchPoints>0},R=function(e){return e.pwrMap(function(e){var t=e.values||e.value;return void 0!==e.is_required?N(t,e.is_required,e.validationType):void 0!==e.required?N(t,e.required,e.validationType):void 0}).pwrReduce(function(e,t){return e&&t})},N=function(e,t,r){var n=!0;return void 0!==e&&e.trim&&(e=e.trim()),r&&!A(e,r)&&void 0!==e&&e.length>0&&(n=!1),t&&(void 0===e||e.length<=0)&&(n=!1),"object"==typeof e&&e.length>0&&e.forEach(function(e){e.value&&"Video"===e.value.composite_type&&(e.value.isValid||(n=!1))}),n},A=function(e,t){return t!==i.a.EMAIL||"string"==typeof e&&-1!==e.lastIndexOf("@")},D=function(e,t){var r,n;if(null===(r=window.POWERREVIEWS)||void 0===r?void 0:null===(n=r.common)||void 0===n?void 0:n.getCallbacks){var a=window.POWERREVIEWS.common.getCallbacks();void 0!==a[e]&&a[e](t)}},L=function(e){var t=document.createElement("div");return e&&"string"==typeof e&&(e=(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")).replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),t.innerHTML=e,e=t.textContent,t.textContent=""),e},M=function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()},F=function(e){var t=document.getElementsByTagName("head")[0];t&&t.firstChild?t.appendChild(e):t?t.appendChild(e):window.document.children[0].appendChild(e)},z=function(e,t){return new RegExp(" "+t+" ").test(" "+e.className+" ")},V=function(e,t){z(e,t)||(e.className+=" "+t)},U=function(e,t){var r=" "+e.className.replace(/[\t\r\n]/g," ")+" ";if(z(e,t)){for(;r.indexOf(" "+t+" ")>=0;)r=r.replace(" "+t+" "," ");e.className=r.replace(/^\s+|\s+$/g,"")}},q=function(e){var t=(e=e||{}).localizations||{},r={daysAgo:parseInt(e.daysAgo)||"",monthsAgo:parseInt(e.daysAgo/30)||"",yearsAgo:parseInt(e.daysAgo/365)||""};if(e.author){var n=t.author.replace("{0}",e.author);if("number"==typeof r.daysAgo)switch(!!r.daysAgo){case r.daysAgo>1&&r.daysAgo<30:n+=t.day.replace("{0}",r.daysAgo).toString();break;case r.daysAgo>30&&r.daysAgo<335:n+=t.month.replace("{0}",r.monthsAgo).toString();break;case r.daysAgo>=335:n+=t.year.replace("{0}",r.yearsAgo).toString()}return n}},W=l.a,B=function(){var e=window.navigator.userAgent||navigator.userAgent,t={MAC:/Macintosh/,WIN:/Windows/,ANDROID:/Android/,IOS:/iP(hone|od|ad)/};for(var r in t)if(t[r].exec(e))return r;return"OTHER"},H=function(e,t,r){if(e.ugc_id&&e.passcode)return[e.ugc_id,e.passcode].join("-");var n=e.site_id?e.merchant_group_id+"-"+e.site_id:e.merchant_id;return[r||n,e.page_id,!0===p.a.getItem("reviewTranslationEnabled")?"all":t||e.locale].join("-")},K=function(e){return[e.site_id?e.merchant_group_id+"-"+e.site_id:e.merchant_id,e.merchant_user_email,e.page_ids].join("-")},G=function(e){if(!e)return null;return e.match(/javascript\:/gi)?null:e},Q=function(e,t){return t.pwrMap(function(t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){a()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t);if(Object(d.b)(r.key)){var n=Object(d.b)(r.key);if("simple"===r.field_type)"numeric"!==r.answer_type||isNaN(Number(n))?"numeric"!==r.answer_type&&(r.value=decodeURIComponent(n.replace(/\+/g," "))):r.value=Number(n);else if("collection"===r.field_type){n.split(",").forEach(function(e){var t=e-1;r.choices[t]&&(r.choices[t].checked=!0,r.values||(r.values=[]),r.values.push(r.choices[t]))})}"name"===r.key&&e.params&&e.params.pr_reviewer_name&&(r.value=e.params.pr_reviewer_name,r.isVisible=!1),"location"===r.key&&e.params&&e.params.pr_reviewer_location&&(r.value=e.params.pr_reviewer_location,r.isVisible=!1)}return"email_collection"===r.key&&(r.id=r.key,r.validationType=i.a.EMAIL),r})},Y=function(e,t){return void 0===t&&(t=7),e.split("").pwrMap(function(e){return String.fromCharCode(e.charCodeAt(0)+t)}).join("")}},function(e,t,r){"use strict";var n=r(2),a=r.n(n),i=r(4),o=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function s(e,t){return e===t||!(!o(e)||!o(t))}function c(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!s(e[r],t[r]))return!1;return!0}var l=function(e,t){var r;void 0===t&&(t=c);var n,a=[],i=!1;return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return i&&r===this&&t(o,a)?n:(n=e.apply(this,o),i=!0,r=this,a=o,n)}};function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){a()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}r.d(t,"a",function(){return f}),r.d(t,"b",function(){return m});var d=/^pr_/i,f=function(){for(var e={},t=[],r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];n.forEach(function(r){"boolean"==typeof r?t.push(r):e=p(p({},e),r)});var i=t[0],o=void 0!==i&&i,s=t[1];return v(e,o,void 0!==s&&s)};f=l(f);var m=function(e){var t;e=e.replace(d,"");for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var i=f.apply(void 0,n);return null!=(t=i[e.toUpperCase()])?t:i[e.toLowerCase()]},h=function(){return Object.keys(window).filter(function(e){return d.test(e)}).pwrReduce(function(e,t){return e[t.replace(d,"").toLowerCase()]=window[t],e},{})};h=l(h);var v=function(e,t,r){void 0===e&&(e={}),void 0===t&&(t=!1),void 0===r&&(r=!1);var n={},a=h(window.location.href);if(Object.keys(a).concat(Object.keys(e)).forEach(function(t){var i,o=t.replace(d,""),s=null!=(i=e[t])?i:a[t],c=r?o.toLowerCase():o.toUpperCase();n[c]=s}),!t){var o=Object(i.r)();Object.keys(o).forEach(function(e){if("pr_"===e.substr(0,3)){var t=o[e];"true"===t?t=!0:"false"===t&&(t=!1);var a=e.substr(3);a=r?a.toLowerCase():a.toUpperCase(),n[a]=t}})}return n}},function(e,t,r){"use strict";r.d(t,"f",function(){return n}),r.d(t,"i",function(){return a}),r.d(t,"j",function(){return i}),r.d(t,"k",function(){return o}),r.d(t,"d",function(){return s}),r.d(t,"e",function(){return c}),r.d(t,"s",function(){return l}),r.d(t,"r",function(){return u}),r.d(t,"t",function(){return p}),r.d(t,"q",function(){return d}),r.d(t,"l",function(){return f}),r.d(t,"m",function(){return m}),r.d(t,"o",function(){return h}),r.d(t,"p",function(){return v}),r.d(t,"g",function(){return g}),r.d(t,"h",function(){return b}),r.d(t,"a",function(){return y}),r.d(t,"b",function(){return _}),r.d(t,"c",function(){return w}),r.d(t,"n",function(){return E});var n="ReviewDisplay",a="ReviewList",i="ReviewSnapshot",o="ReviewSnippet",s="QuestionDisplay",c="QuestionSnippet",l="WriteAReview",u="WriteAQuestion",p="WriteAnAnswer",d="Write",f="ReviewYourPurchases",m="SellerRatings",h="WhydYouBuy",v="WhydYouBuyDisplay",g="ReviewImageDisplay",b="ReviewImageSnippet",y="AddToCart",_="CategorySnippet",w="IRLSnippet",E="SizeFitSnippet";t.u={ReviewDisplay:n,ReviewList:a,ReviewSnapshot:i,ReviewSnippet:o,QuestionDisplay:s,QuestionSnippet:c,WriteAReview:l,WriteAQuestion:u,WriteAnAnswer:p,Write:d,ReviewYourPurchases:f,SellerRatings:m,WhydYouBuy:h,WhydYouBuyDisplay:v,ReviewImageDisplay:g,ReviewImageSnippet:b,AddToCart:y,CategorySnippet:_,IRLSnippet:w,SizeFitSnippet:E}},function(e,t){e.exports=function(e,t){e.prototype=Object.pwrCreate(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t){function r(){return e.exports=r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r.apply(this,arguments)}e.exports=r},function(e,t,r){e.exports=r(259)()},function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)&&n.length){var o=a.apply(null,n);o&&e.push(o)}else if("object"===i)for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(16),o=r.n(i),s=r(0),c=r.n(s),l=(r(9),r(200)),u=c.a.createContext(),p=function(e){var t=e.initialLevel,r=e.children,n=c.a.useContext(u),a="number"==typeof n&&"number"!=typeof t?n+1:t;return-1===n&&(a=-1),c.a.createElement(u.Provider,{value:a},r)},d=function(e,t){var r,n=e.shouldUseSpan,i=e.className,s=e.importance,p=o()(e,["shouldUseSpan","className","importance"]),d=c.a.useContext(u),f={};if(n||"number"!=typeof d||-1===d)return c.a.createElement(l.a,a()({},e,{ref:t,importance:s}));d>6?(r="div",f["aria-level"]=d,f.role="heading"):r="h"+d;var m=i?i+" pr-h"+s:"pr-h"+s;return c.a.createElement(r,a()({},p,f,{ref:t,className:m}))};d=c.a.forwardRef(d),r.d(t,"b",function(){return p}),r.d(t,"a",function(){return d})},function(e,t,r){"use strict";r.d(t,"e",function(){return n}),r.d(t,"f",function(){return a}),r.d(t,"c",function(){return i}),r.d(t,"h",function(){return o}),r.d(t,"g",function(){return s}),r.d(t,"d",function(){return c}),r.d(t,"a",function(){return l}),r.d(t,"b",function(){return u});var n="REVIEW_DISPLAY",a="REVIEW_SNAPSHOT",i="QA_DISPLAY",o="RID",s="REVIEW_SNIPPET",c="QA_SNIPPET",l="IMAGE_SNIPPET",u="IRL_SNIPPET";t.i={WAR:"WAR",WARIF:"WARIF",WARMO:"WARMO",REVIEW_DISPLAY:n,REVIEW_LIST:"REVIEW_LIST",REVIEW_SNAPSHOT:a,RYP:"RYP",SRW:"SRW",WAQWAA:"WAQWAA",WYB:"WYB",WYB_DISPLAY:"WYB_DISPLAY",QA_DISPLAY:i,RID:o,REVIEW_SNIPPET:s,QA_SNIPPET:c,IMAGE_SNIPPET:l,CATEGORY_SNIPPET:"CATEGORY_SNIPPET",IRL_SNIPPET:u,SIZEFIT_SNIPPET:"SIZEFIT_SNIPPET"}},function(e,t,r){"use strict";var n=r(76),a=r(155),i=r(109);function o(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=c();t&&(t=t.join("\n"),n.textContent=t,s())}var s=Object(i.a)(function(){c().textContent=""},500);function c(){var e=document.getElementById("pr-a11y-status-message");return e||((e=document.createElement("div")).setAttribute("id","pr-a11y-status-message"),e.setAttribute("data-testid","pr-a11y-status-message"),e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-relevant","additions text"),e.style.border="0",e.style.clip="rect(0 0 0 0)",e.style.height="1px",e.style.width="1px",e.style.margin="-1px",e.style.overflow="hidden",e.style.padding="0",e.style.position="absolute",document.body.appendChild(e),e)}var l=r(33),u=(r(110),r(130)),p=r(1),d=r(28);r.d(t,"f",function(){return n.a}),r.d(t,"h",function(){return a.a}),r.d(t,"c",function(){return i.a}),r.d(t,"g",function(){return o}),r.d(t,"d",function(){return l.a}),r.d(t,"b",function(){return u.a}),r.d(t,"e",function(){return p.b}),r.d(t,"a",function(){return d.a})},function(e,t,r){"use strict";var n=r(38),a=r(0),i=r.n(a),o=r(43),s=r(2),c=r.n(s);function l(){var e=document.location.hostname;return"www."===e.substring(0,4)&&(e=e.substring(4)),e}function u(e){return"https:"===document.location.protocol?e+";secure":e}var p=function(e,t){var r=e+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; samesite=strict; path=/; domain="+(t=Boolean(t)?t:l());window.document.cookie=u(r)},d={event:"e",eventType:"et",id:"id",userId:"uid",time:"t",locale:"l",merchantGroupId:"mgid",merchantId:"mid",pageId:"pid",pageIdVariant:"pidv",siteId:"sid",pageUrl:"p",referrerUrl:"r",reviewCount:"rc",starRating:"s",inlineSEO:"i",engineVersion:"v",questionCount:"qc",answerCount:"ac",visible:"vis",synMerchantId:"symid",synSharedReviewIds:"sysrids",synReviewsOnPageCount:"syropc",compact:"c",profileId:"prid",displayVersion:"v",displayBuildVersion:"vv",eventFlow:"ef",orderId:"oid",orderSubtotal:"os",orderNumberOfItems:"on",orderItems:"oi",merchantUserId:"muid",userEmail:"ue",userFirstName:"uf",userLastName:"ul",userFullName:"un",marketingOptIn:"mo",productBrandName:"bn",productName:"n",productDescription:"d",productUrl:"pu",productImageUrl:"iu",productPrice:"pri",productCategoryName:"cn",productInStock:"is",productManufacturerId:"mi",productUpc:"upc",productAddToCartUrl:"atcu",testGroup:"tg",rypSort:"sort",rypPageIds:"pids",rypCompletedStep:"step",asin:"asn",bestBuySku:"stbb",coolBlueSku:"stcb"},f=r(112),m=r.n(f);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var v=function(e){return e.replace(/^(https?:){0,1}\/\/|/i,"https://")}("//t.powerreviews.com/t/v1.gif");var g=function(){function e(e){c()(this,"q",[]),c()(this,"uid",void 0),c()(this,"obfuscateBeacon",void 0),c()(this,"merchantGroupId",void 0),c()(this,"merchantId",void 0),c()(this,"locale",void 0),c()(this,"siteId",void 0);var t=e.SOCIAL_MEASUREMENT_DATA,r=e.SOCIAL_MEASUREMENT_COOKIE_DOMAIN,n=e.SM_DATA,a=e.OX,i=e.MERCHANT_GROUP_ID,o=e.LOCALE,s=e.MERCHANT_ID,l=e.SITE_ID;this.obfuscateBeacon=a,this.merchantGroupId=i,this.merchantId=s,this.locale=o,this.siteId=l,this.cookieDomain=r,this.setMode(n||t)}var t=e.prototype;return t.setupUserId=function(){var e="__pr."+parseInt(this.merchantGroupId,10).toString(36);switch(this.mode){case"NO_COOKIES":p(e,this.cookieDomain),this.uid="no_cookies";break;case"DISABLED":p(e,this.cookieDomain),this.uid=null;break;case"ENABLED":this.uid=function(e){var t,r,n=new RegExp(e),a=null===(t=window.document.cookie.split("; ").find(function(e){return n.test(e)}))||void 0===t?void 0:null===(r=t.split("="))||void 0===r?void 0:r[1];return a?decodeURIComponent(a):null}(e),this.uid||(this.uid=m()(10)),function(e,t,r,n){var a=new Date,i=a;n=Boolean(n)?n:l(),i.setTime(a.getTime()+1e3*r);var o=e+"="+encodeURIComponent(t)+"; expires="+i.toGMTString()+"; samesite=strict; path=/; domain="+n;window.document.cookie=u(o)}(e,this.uid,2592e3,this.cookieDomain);break;default:throw new Error("Unsupported SOCIAL_MEASUREMENT_DATA value: "+this.mode)}},t.setMode=function(e){var t=this;e&&(this.mode=e,this.setupUserId(),this.q.forEach(function(e){t.sendBeacon.apply(t,e)}),this.q=[])},t.sendBeacon=function(e,t,r){var a;if(void 0!==this.mode){var i=null===(a=n[t])||void 0===a?void 0:a.social_measurement_id;if(!i)throw new Error("Unknown event type: "+t);if("DISABLED"!==this.mode||i===n.FEEDLESS_PRODUCT_CATALOG.social_measurement_id){var o=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){c()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({locale:this.locale,pageId:e,merchantId:this.merchantId,merchantGroupId:this.merchantGroupId,siteId:this.siteId,displayVersion:4,displayBuildVersion:"10309",id:m()(10),time:Date.now().toString(36),userId:this.uid,event:i,pageUrl:window.document.location.href,referrerUrl:window.document.referrer,eventType:"string"==typeof r?r:void 0},"object"==typeof r&&r),s=new URL(v);if(Object.entries(d).forEach(function(e){var t=e[0],r=e[1],n=function e(t,r){void 0===r&&(r=0);var n=[];var a=[";",","];if(Array.isArray(t)&&r<a.length){for(var i=0;i<t.length;i++)n.push(e(t[i],r+1));return n.join(a[r])}if("boolean"==typeof t)return t?"y":"n";if(b(t))return t;return""}(o[t]);b(n)&&s.searchParams.append(r,n)}),this.obfuscateBeacon){var l=function(e,t){void 0===t&&(t=7);return e.split("").pwrMap(function(e){return String.fromCharCode(e.charCodeAt(0)+t)}).join("")}(decodeURIComponent(y(s.searchParams)));Array.from(s.searchParams.keys()).forEach(function(e){s.searchParams.delete(e)}),s.searchParams.append("rwp_xe",l)}var u=y(s);return(new Image).src=u}}else this.q.push(arguments)},e}();function b(e){return Boolean(e)&&!function(e){return"number"==typeof e&&e!=e}(e)}function y(e){return e.toString().replace(/\+/g,"%20")}var _=i.a.createContext(),w=function(e){var t=e.children,r=Object(o.c)(),n=Object(a.useState)(function(){return new g(r)})[0],s=Object(a.useCallback)(function(){n.sendBeacon.apply(n,arguments)},[n]);return i.a.createElement(_.Provider,{value:s},t)};function E(){var e=Object(a.useContext)(_);if(void 0===e)throw new Error("useSocialMeasurement must be used within a SocialMeaurementProvider");for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(1===r.length){var i=r[0];return function(t,r){return e(i,t,r)}}if(r.length>=2){var o=r[0],s=r[1];return function(t){return e(o,s,t)}}return e}r.d(t,"d",function(){return w}),r.d(t,"c",function(){return _}),r.d(t,"e",function(){return E}),r.d(t,"b",function(){return g}),r.d(t,"a",function(){return n})},function(e,t,r){"use strict";r.d(t,"c",function(){return f}),r.d(t,"h",function(){return m}),r.d(t,"e",function(){return h}),r.d(t,"f",function(){return v}),r.d(t,"d",function(){return g}),r.d(t,"g",function(){return b}),r.d(t,"n",function(){return y}),r.d(t,"r",function(){return _}),r.d(t,"o",function(){return w}),r.d(t,"q",function(){return E}),r.d(t,"p",function(){return O}),r.d(t,"b",function(){return S}),r.d(t,"s",function(){return C}),r.d(t,"t",function(){return j}),r.d(t,"w",function(){return x}),r.d(t,"a",function(){return k}),r.d(t,"j",function(){return I}),r.d(t,"u",function(){return P}),r.d(t,"v",function(){return T}),r.d(t,"k",function(){return R}),r.d(t,"i",function(){return N}),r.d(t,"l",function(){return A}),r.d(t,"m",function(){return D}),r.d(t,"A",function(){return L}),r.d(t,"z",function(){return F}),r.d(t,"H",function(){return z}),r.d(t,"x",function(){return V}),r.d(t,"B",function(){return U}),r.d(t,"I",function(){return q}),r.d(t,"C",function(){return W}),r.d(t,"D",function(){return B}),r.d(t,"E",function(){return H}),r.d(t,"y",function(){return K}),r.d(t,"F",function(){return G}),r.d(t,"G",function(){return Q});var n=r(2),a=r.n(n),i=r(34),o=r(31),s=r(4),c=r(37),l=r(23),u=r(5);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){a()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var f="WRITE_A_REVIEW_INITIAL_FETCH",m="WRITE_A_REVIEW_INITIAL_FETCH_SUCCESS",h="WRITE_A_REVIEW_INITIAL_FETCH_ERROR_INVALID_PARAMETER",v="WRITE_A_REVIEW_INITIAL_FETCH_ERROR_MISSING_PARAMETERS",g="WRITE_A_REVIEW_INITIAL_FETCH_ERROR_DUPLICATE_REVIEW",b="WRITE_A_REVIEW_INITIAL_FETCH_ERROR_UNKNOWN",y="WRITE_A_REVIEW_SUBMIT",_="WRITE_A_REVIEW_SUBMIT_SUCCESS",w="WRITE_A_REVIEW_SUBMIT_ERROR_COPPA",E="WRITE_A_REVIEW_SUBMIT_ERROR_VALIDATION",O="WRITE_A_REVIEW_SUBMIT_ERROR_UNKNOWN",S="WRITE_A_REVIEW_CANCEL_SUBMIT",C="WRITE_A_REVIEW_UPDATE_FIELD",j="WRITE_A_REVIEW_UPDATE_FIELDS",x="WRITE_A_REVIEW_UPDATE_WAR_MEDIA",k="WRITE_A_REVIEW_ADD_MEDIA",I="WRITE_A_REVIEW_REMOVE_MEDIA",P="WRITE_A_REVIEW_UPDATE_MEDIA",T="WRITE_A_REVIEW_UPDATE_MEDIA_CAPTION",R="WRITE_A_REVIEW_ROTATE_MEDIA",N="WRITE_A_REVIEW_MEDIA_ONLY_SUBMIT_SUCCESS",A="WRITE_A_REVIEW_SET_MESSAGE",D="WRITE_A_REVIEW_SET_SUBMIT_ERROR_MESSAGE",L=function(e){var t=Object(s.s)(e);return function(r){return r({type:f,productKey:t}),Object(o.e)(e,{includeLocalizations:!0}).then(function(n){var a;switch(n.statusCode){case 200:a=m;break;case 403:a=g;break;case 400:case 500:case null:a=n.body&&n.body.message.indexOf("Missing merchant identifier request parameters")>-1?v:b;break;case 404:a=h;break;default:a=b}var i=!0===Object(u.b)("pr_autosubmit"),o=c.b(e);o=c.d(o)?o:{},r({type:a,productKey:t,feedlessProductInfo:o,body:n.body,fields:n.body.fields?Object(s.C)(e,n.body.fields):[],isSubmitting:i})}).catch(function(e){console.log(e)})}},M=function(e){var t=e.pwrMap(function(e){return e.isUploaded?new pwrPromise(function(t){return t(d({},e))}):new pwrPromise(function(t){var r;e.type===i.a?r="Image":e.type===i.b&&(r="NativeVideo"),Object(o.j)(e.file,e.type).then(function(n){t(d(d({},e),{},{isUploaded:!0,meta:d(d({},e.meta),{},{composite_data:n,composite_type:r,field_type:"composite",fields:[{field_type:"simple",input_type:"TextBox",key:"caption",value:e.caption}]})}))})})});return pwrPromise.all(t)},F=function(e){var t=Object(s.s)(e);return function(r){return r({type:f,productKey:t}),Object(o.e)(e,{includeLocalizations:!0}).then(function(n){var a;switch(n.statusCode){case 200:a=m;break;case 404:a=v;break;default:a=b}var i=c.b(e);return i=c.d(i)?i:{},r({type:a,productKey:t,body:n.body,feedlessProductInfo:i,fields:n.body.fields||[]})}).catch(function(e){console.log(e)})}},z=function(e,t){var r=Object(s.s)(e);return function(e){e({type:j,productKey:r,fields:t}),t.forEach(function(t,n){"Image"!==t.composite_type&&"NativeVideo"!==t.composite_type||t.values&&t.values.forEach(function(t,a){if(!t.isUploaded){var s=t.file.file.type.indexOf("video")>-1?i.b:i.a;Object(o.j)(t.file.file,s).then(function(t){e({type:x,productKey:r,fieldIndex:n,valueIndex:a,composite_data:t,fileType:s})})}})})}},V=function(e,t){var r=Object(s.s)(e);return function(e){return e({type:k,productKey:r,media:t}),M(t).then(function(t){return e({type:P,productKey:r,media:t})})}},U=function(e,t,r){var n=Object(s.s)(e);return{type:I,productKey:n,mediaType:r,index:t}},q=function(e,t,r,n){var a=Object(s.s)(e);return{type:T,productKey:a,mediaType:n,index:t,caption:r}},W=function(e,t){var r=Object(s.s)(e);return{type:R,productKey:r,index:t}},B=function(e,t){var r=Object(s.s)(e);return{type:A,productKey:r,message:t}},H=function(e,t){var r=Object(s.s)(e);return{type:D,productKey:r,message:t}},K=function(e){var t=Object(s.s)(e);return{type:S,productKey:t}},G=function(e,t,r,n,a){var i=Object(s.s)(e);return function(s){return s({type:y,productKey:i}),function(e){var t=e.pwrMap(function(e){if(!e.rotation)return e;var t=e.meta.composite_data.raw.url;return d(d({},e),{},{isUploaded:!1,file:{source:t.replace("/upload/","/upload/a_"+e.rotation+"/")}})});return M(t)}(t).then(function(t){var c={context_information:n,fields:t.pwrMap(function(e){return d(d({},e.meta),{},{fields:[{field_type:"simple",input_type:"TextBox",key:"caption",value:e.caption}]})}),iovation_black_box:a};return r.name&&(c.product_information=r),Object(o.g)(c,d(d({},e),{},{is_complete:!1,review_type:"media_first"})).then(function(e){var t,r=e.body;switch(e.statusCode){case 200:t=N;break;case 400:if(t=O,e.body.fields){var n=e.body.fields.filter(function(e){return e.fields}).pwrMap(function(e){return e.fields}).pwrReduce(function(e,t){return e.concat(t)},[]).filter(function(e){return e.error_message&&e.error_message.error_code===l.a.RESTRICTED_WORD});n.length>0&&(t=E,r=d(d({},e.body),{},{message:n[0].error_message.message}))}break;default:t=O}return s({type:t,productKey:i,body:r})})})}},Q=function(e,t,r,n,a,u){var p=Object(s.s)(e);return function(s){s({type:y,productKey:p});var f={context_information:n,fields:c.e(t).fields,iovation_black_box:a},m=f.fields.pwrMap(function(e){return new pwrPromise(function(t){var r="Image"===e.composite_type,n="NativeVideo"===e.composite_type;if(!r&&!n||!e.rotation)return t(e);var a=(r?e.composite_data.raw.url:e.composite_data.video_url).replace("/upload/","/upload/a_"+e.rotation+"/");return Object(o.j)({source:a},"Image"===e.composite_type?i.a:i.b).then(function(r){return t(d(d({},e),{},{composite_data:r}))})})});return pwrPromise.all(m).then(function(t){return f.fields=t,r.name&&(f.product_information=r),Object(o.g)(f,d(d({},e),{},{is_complete:!0,review_type:u?"media_first":void 0})).then(function(e){var t=O,r=e.body;switch(e.statusCode){case 200:t=_;break;case 400:if("AgeDisclosure"===e.body.error_code)t=w;else if(e.body.fields){var n=e.body.fields.pwrReduce(function(e,t){return t.fields?e.push.apply(e,t.fields):e.push(t),e},[]).filter(function(e){return e.error_message&&(e.error_message.error_code===l.a.RESTRICTED_WORD||e.error_message.error_code===l.a.INVALID_VALUE)});n.length>0&&(t=E,r=d(d({},e.body),{},{message:e.body.message||n[0].error_message.message}))}break;default:t=O}return s({type:t,productKey:p,body:r})})})}}},function(e,t){e.exports=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}},function(e,t,r){"use strict";function n(e,t){e.prototype=Object.pwrCreate(t.prototype),e.prototype.constructor=e,e.__proto__=t}var a=r(0),i=r.n(a),o=r(9),s=r.n(o),c=i.a.createContext(null),l=function(e){function t(t){var r;r=e.call(this,t)||this;var n=t.store;return r.state={storeState:n.getState(),store:n},r}n(t,e);var r=t.prototype;return r.componentDidMount=function(){this._isMounted=!0,this.subscribe()},r.componentWillUnmount=function(){this.unsubscribe&&this.unsubscribe(),this._isMounted=!1},r.componentDidUpdate=function(e){this.props.store!==e.store&&(this.unsubscribe&&this.unsubscribe(),this.subscribe())},r.subscribe=function(){var e=this,t=this.props.store;this.unsubscribe=t.subscribe(function(){var r=t.getState();e._isMounted&&e.setState(function(e){return e.storeState===r?null:{storeState:r}})});var r=t.getState();r!==this.state.storeState&&this.setState({storeState:r})},r.render=function(){var e=this.props.context||c;return i.a.createElement(e.Provider,{value:this.state},this.props.children)},t}(a.Component);l.propTypes={store:s.a.shape({subscribe:s.a.func.isRequired,dispatch:s.a.func.isRequired,getState:s.a.func.isRequired}),context:s.a.object,children:s.a.any};var u=l;function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}var f=r(218),m=r.n(f),h=r(129),v=r.n(h),g=r(264);function b(e,t){void 0===t&&(t={});var r=t,o=r.getDisplayName,s=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,l=r.methodName,u=void 0===l?"connectAdvanced":l,f=r.renderCountProp,h=void 0===f?void 0:f,b=r.shouldHandleStateChanges,y=void 0===b||b,_=r.storeKey,w=void 0===_?"store":_,E=r.withRef,O=void 0!==E&&E,S=r.forwardRef,C=void 0!==S&&S,j=r.context,x=void 0===j?c:j,k=d(r,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]);v()(void 0===h,"renderCountProp is removed. render counting is built into the latest React dev tools profiling extension"),v()(!O,"withRef is removed. To access the wrapped instance, use a ref on the connected component");var I="To use a custom Redux store for specific components,  create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like:  <Provider context={MyContext}><ConnectedComponent context={MyContext} /></Provider>. You may also pass a {context : MyContext} option to connect";v()("store"===w,"storeKey has been removed and does not do anything. "+I);var P=x;return function(t){var r=t.displayName||t.name||"Component",o=s(r),c=p({},k,{getDisplayName:s,methodName:u,renderCountProp:h,shouldHandleStateChanges:y,storeKey:w,displayName:o,wrappedComponentName:r,WrappedComponent:t}),l=k.pure,d=a.Component;l&&(d=a.PureComponent);var f=function(r){function a(t){var n;return n=r.call(this,t)||this,v()(C?!t.wrapperProps[w]:!t[w],"Passing redux store in props has been removed and does not do anything. "+I),n.selectDerivedProps=function(){var t,r,n,a,i,o;return function(s,c,u,p){if(l&&t===c&&r===s)return n;u===a&&i===p||(a=u,i=p,o=e(u.dispatch,p)),t=c,r=s;var d=o(s,c);return n=d}}(),n.selectChildElement=function(){var e,t,r,n;return function(a,o,s){return o===e&&s===t&&n===a||(e=o,t=s,n=a,r=i.a.createElement(a,p({},o,{ref:s}))),r}}(),n.indirectRenderWrappedComponent=n.indirectRenderWrappedComponent.pwrBind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}n(a,r);var s=a.prototype;return s.indirectRenderWrappedComponent=function(e){return this.renderWrappedComponent(e)},s.renderWrappedComponent=function(e){v()(e,'Could not find "store" in the context of "'+o+'". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to '+o+" in connect options.");var r,n=e.storeState,a=e.store,i=this.props;C&&(i=this.props.wrapperProps,r=this.props.forwardedRef);var s=this.selectDerivedProps(n,i,a,c);return this.selectChildElement(t,s,r)},s.render=function(){var e=this.props.context&&this.props.context.Consumer&&Object(g.isContextConsumer)(i.a.createElement(this.props.context.Consumer,null))?this.props.context:P;return i.a.createElement(e.Consumer,null,this.indirectRenderWrappedComponent)},a}(d);if(f.WrappedComponent=t,f.displayName=o,C){var b=i.a.forwardRef(function(e,t){return i.a.createElement(f,{wrapperProps:e,forwardedRef:t})});return b.displayName=o,b.WrappedComponent=t,m()(b,t)}return m()(f,t)}}var y=Object.prototype.hasOwnProperty;function _(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function w(e,t){if(_(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var a=0;a<r.length;a++)if(!y.call(t,r[a])||!_(e[r[a]],t[r[a]]))return!1;return!0}var E=r(108);function O(e){return function(t,r){var n=e(t,r);function a(){return n}return a.dependsOnOwnProps=!1,a}}function S(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function C(e,t){return function(t,r){r.displayName;var n=function(e,t){return n.dependsOnOwnProps?n.pwrMapToProps(e,t):n.pwrMapToProps(e)};return n.dependsOnOwnProps=!0,n.pwrMapToProps=function(t,r){n.pwrMapToProps=e,n.dependsOnOwnProps=S(e);var a=n(t,r);return"function"==typeof a&&(n.pwrMapToProps=a,n.dependsOnOwnProps=S(a),a=n(t,r)),a},n}}var j=[function(e){return"function"==typeof e?C(e):void 0},function(e){return e?void 0:O(function(e){return{dispatch:e}})},function(e){return e&&"object"==typeof e?O(function(t){return Object(E.b)(e,t)}):void 0}];var x=[function(e){return"function"==typeof e?C(e):void 0},function(e){return e?void 0:O(function(){return{}})}];function k(e,t,r){return p({},r,e,t)}var I=[function(e){return"function"==typeof e?function(e){return function(t,r){r.displayName;var n,a=r.pure,i=r.areMergedPropsEqual,o=!1;return function(t,r,s){var c=e(t,r,s);return o?a&&i(c,n)||(n=c):(o=!0,n=c),n}}}(e):void 0},function(e){return e?void 0:function(){return k}}];function P(e,t,r,n){return function(a,i){return r(e(a,i),t(n,i),i)}}function T(e,t,r,n,a){var i,o,s,c,l,u=a.areStatesEqual,p=a.areOwnPropsEqual,d=a.areStatePropsEqual,f=!1;function m(a,f){var m=!p(f,o),h=!u(a,i);return i=a,o=f,m&&h?(s=e(i,o),t.dependsOnOwnProps&&(c=t(n,o)),l=r(s,c,o)):m?(e.dependsOnOwnProps&&(s=e(i,o)),t.dependsOnOwnProps&&(c=t(n,o)),l=r(s,c,o)):h?function(){var t=e(i,o),n=!d(t,s);return s=t,n&&(l=r(s,c,o)),l}():l}return function(a,u){return f?m(a,u):function(a,u){return s=e(i=a,o=u),c=t(n,o),l=r(s,c,o),f=!0,l}(a,u)}}function R(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,a=t.initMergeProps,i=d(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),o=r(e,i),s=n(e,i),c=a(e,i);return(i.pure?T:P)(o,s,c,e,i)}function N(e,t,r){for(var n=t.length-1;n>=0;n--){var a=t[n](e);if(a)return a}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function A(e,t){return e===t}var D=function(e){var t=void 0===e?{}:e,r=t.connectHOC,n=void 0===r?b:r,a=t.pwrMapStateToPropsFactories,i=void 0===a?x:a,o=t.pwrMapDispatchToPropsFactories,s=void 0===o?j:o,c=t.mergePropsFactories,l=void 0===c?I:c,u=t.selectorFactory,f=void 0===u?R:u;return function(e,t,r,a){void 0===a&&(a={});var o=a,c=o.pure,u=void 0===c||c,m=o.areStatesEqual,h=void 0===m?A:m,v=o.areOwnPropsEqual,g=void 0===v?w:v,b=o.areStatePropsEqual,y=void 0===b?w:b,_=o.areMergedPropsEqual,E=void 0===_?w:_,O=d(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),S=N(e,i,"pwrMapStateToProps"),C=N(t,s,"pwrMapDispatchToProps"),j=N(r,l,"mergeProps");return n(f,p({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:S,initMapDispatchToProps:C,initMergeProps:j,pure:u,areStatesEqual:h,areOwnPropsEqual:g,areStatePropsEqual:y,areMergedPropsEqual:E},O))}}();r.d(t,"a",function(){return u}),r.d(t,"b",function(){return D})},function(e,t,r){"use strict";r.d(t,"a",function(){return i}),r.d(t,"b",function(){return o});var n=r(0),a=r.n(n);r(9),r(364);function i(){return a.a.createElement("svg",{x:"0px",y:"0px",viewBox:"0 0 512 512",xmlSpace:"preserve","aria-hidden":"true",focusable:"false",className:"pr-form-control-error-icon"},a.a.createElement("path",{d:"M507.333 424.604l-.01-.01C473.238 354.677 416.1 255.51 365.692 168.021c-26.376-45.792-51.294-89.031-69.305-121.896-8.5-15.521-23.605-24.792-40.398-24.792s-31.897 9.271-40.397 24.792c-18.022 32.885-42.95 76.167-69.357 121.99C95.858 255.583 38.741 354.708 4.667 424.604 1.573 430.969 0 437.708 0 444.615c0 25.396 20.511 46.052 45.731 46.052L256 490.646l210.269.021c25.22 0 45.731-20.656 45.731-46.052 0-6.907-1.573-13.646-4.667-20.011zM256 448.01c-11.76 0-21.333-9.573-21.333-21.333 0-11.76 9.573-21.333 21.333-21.333s21.333 9.573 21.333 21.333c0 11.76-9.573 21.333-21.333 21.333zm21.333-74.666a10.66 10.66 0 01-10.667 10.667h-21.333a10.66 10.66 0 01-10.667-10.667V138.677a10.66 10.66 0 0110.667-10.667h21.333a10.66 10.66 0 0110.667 10.667v234.667z"}))}function o(e){return a.a.createElement("div",{className:"pr-form-control-error-wrapper"},e.children)}},function(e,t,r){var n=r(45),a=r(175).f,i=r(100),o=r(86),s=r(180),c=r(280),l=r(186);e.exports=function(e,t){var r,u,p,d,f,m=e.target,h=e.global,v=e.stat;if(r=h?n:v?n[m]||s(m,{}):(n[m]||{}).prototype)for(u in t){if(d=t[u],p=e.noTargetGet?(f=a(r,u))&&f.value:r[u],!l(h?u:m+(v?".":"#")+u,e.forced)&&void 0!==p){if(typeof d==typeof p)continue;c(d,p)}(e.sham||p&&p.sham)&&i(d,"sham",!0),o(r,u,d,e)}}},function(e,t,r){"use strict";var n=r(16),a=r.n(n),i=r(3),o=r.n(i),s=r(7),c=r.n(s),l=r(2),u=r.n(l),p=r(0),d=r.n(p),f=(r(9),r(26)),m=r.n(f),h=r(4),v=r(67),g=r(1),b=r(8),y=r.n(b),_=function(e){e.success;var t=a()(e,["success"]),r="#DDD";return e.success&&(r="#8AC734"),d.a.createElement("svg",y()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",focusable:"false"},t),d.a.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},d.a.createElement("g",{transform:"translate(-49.000000, -1000.000000)",fill:r},d.a.createElement("g",{transform:"translate(49.000000, 1000.000000)"},d.a.createElement("path",{d:"M10,17.8934967 C5.64738562,17.8934967 2.10653595,14.3526471 2.10653595,10.0000327 C2.10653595,5.6474183 5.64738562,2.10656863 10,2.10656863 C14.3526144,2.10656863 17.8934641,5.6474183 17.8934641,10.0000327 C17.8934641,14.3526471 14.3526144,17.8934967 10,17.8934967 M10,0.245130719 C4.62565359,0.245130719 0.245098039,4.62568627 0.245098039,10.0000327 C0.245098039,15.3743791 4.62565359,19.7549346 10,19.7549346 C15.3743464,19.7549346 19.754902,15.388268 19.754902,10.0000327 C19.754902,4.62568627 15.3743464,0.245130719 10,0.245130719"}),d.a.createElement("polygon",{points:"8.4604902 11.161634 6.41718954 9.11833333 4.93352941 10.5877778 8.39055556 14.0446405 15.0663725 7.36882353 13.6528105 5.95526144"})))))},w=r(10),E=r.n(w),O=function(e){function t(t){var r;return r=e.call(this,t)||this,u()(o()(r),"makeInvisible",function(){var e=m.a.findDOMNode(o()(r));-1===e.className.indexOf("pr-hide")&&(e.className+=" pr-hide")}),r.state={currentValue:"string"==typeof t.preset?t.preset:""},r.update=r.update.pwrBind(o()(r)),r.updateCollection=r.updateCollection.pwrBind(o()(r)),r.getLabel=r.getLabel.pwrBind(o()(r)),r.syncTimer=null,r.isProgressiveSubmissionEnabled=!1,r}c()(t,e),t.getLabelClass=function(e){return E()("pr-control-label",{"pr-accessible-text":!1===e.showLabel})},t.getRequiredIndicator=function(e){return e.isRequired?d.a.createElement("abbr",{className:"pr-required-indicator",title:e.requiredText},"*"):null};var r=t.prototype;return r.componentDidMount=function(){this.props.isVisible&&!this.props.hidden||this.makeInvisible()},r.componentDidUpdate=function(){this.props.isVisible&&!this.props.hidden||this.makeInvisible()},r.getID=function(){return this.props.id},r.getLabel=function(){if(!this.props.showLabel)return"";var e=this.getID(),r=t.getRequiredIndicator(this.props);if(this.props.clickToExpand)return d.a.createElement("label",{className:"pr-control-label checkbox"},d.a.createElement("input",{onClick:this.handleClickToExpand,type:"checkbox"}),d.a.createElement("span",{dangerouslySetInnerHTML:{__html:this.props.label}}),r);var n=t.getLabelClass(this.props);return d.a.createElement("label",{className:n,htmlFor:e+"-input"},d.a.createElement("span",{dangerouslySetInnerHTML:{__html:this.props.label}}),r)},r.getFieldError=function(e){var t=this.isCharacterLimitIndicatorVisible(e)?"pr-field-alert pr-text-danger":"pr-field-alert pr-text-danger pr-hide",r=Object(g.a)("counter.text",this.props.localizations.write_a_review).replace(/\{0\}/g,this.getCharactersLeft()),n="";if(this.isErrorVisible())if(this.props.error.detail.profanity){var a="";this.props.error.detail.profanity.forEach(function(e){a+=e,a+=", "}),n=this.props.error.message.slice(0,-1)+" : "+a.slice(0,-2)+"."}else this.props.error.detail.invalid&&(n=this.props.error.detail.invalid);var i=this.isErrorVisible()?"pr-field-alert pr-text-danger":"pr-field-alert pr-text-danger pr-hide";return d.a.createElement("div",null,d.a.createElement("p",{className:"pr-field-alert-char "+t},r),d.a.createElement("p",{className:"pr-field-alert-profanity "+i},n))},r.getMinCharacterMessage=function(){var e=this.props,t=e.minCharacters,r=e.isValid,n=e.localizations;if(!t)return null;var a=t-this.state.currentValue.length,i=a<=0?Object(g.a)("min_characters.requirement_met",n.write_a_review):1===a?Object(g.a)("min_characters.characters_remaining_singular",n.write_a_review).replace(/\{0\}/g,"<b>"+a+"</b>"):Object(g.a)("min_characters.characters_remaining_plural",n.write_a_review).replace(/\{0\}/g,"<b>"+a+"</b>"),o=a>0&&!r?"pr-min-character-alert pr-text-danger":"pr-min-character-alert";return d.a.createElement("div",{className:"pr-min-character-wrapper"},d.a.createElement(_,{className:"pr-min-character-icon",success:a<=0}),d.a.createElement("p",{dangerouslySetInnerHTML:{__html:i},className:"pr-field-alert-char "+o}))},r.getHelperText=function(){return this.props.helperText?d.a.createElement("div",{className:"pr-helper-text"},this.props.helperText):""},r.getCharactersLeft=function(){return this.props.maxCharacters?this.props.maxCharacters-this.state.currentValue.length:255},r.checkCharacterLimit=function(e,t){e.target.value.length>=this.props.maxCharacters&&this.props.maxCharacters&&(e.target.value=e.target.value.substring(0,this.props.maxCharacters)),this.setState({currentValue:e.target.value},t)},r.isCharacterLimitIndicatorVisible=function(e){return!!this.props.maxCharacters&&!!this.state.currentValue&&this.state.currentValue.length>=this.props.maxCharacters-e},r.updateCollection=function(e,t,r,n){void 0===n&&(n=v.c.OFF);var i={id:e,values:t,isValid:h.w(t,this.props.isRequired,this.props.validationType),syncStatus:n};if(r&&(i.choices=r),this.props.handleFieldUpdate){i.id;var o=a()(i,["id"]);this.props.handleFieldUpdate(o,e)}},r.update=function(e,t){var r={id:e,value:t,isValid:h.w(t,this.props.isRequired,this.props.validationType)};if(this.props.handleFieldUpdate){var n=a()(r,["id"]);this.props.handleFieldUpdate(n,e)}},r.isErrorVisible=function(){return!!this.props.error},t}(d.a.Component);O.defaultProps={preset:null,isValid:!0,isRequired:!1,isVisible:!0,showLabel:!0};t.a=O},function(e,t,r){"use strict";r.d(t,"d",function(){return h}),r.d(t,"e",function(){return v}),r.d(t,"b",function(){return g}),r.d(t,"c",function(){return b}),r.d(t,"f",function(){return y}),r.d(t,"g",function(){return _}),r.d(t,"l",function(){return w}),r.d(t,"m",function(){return E}),r.d(t,"a",function(){return O}),r.d(t,"n",function(){return S}),r.d(t,"k",function(){return C}),r.d(t,"h",function(){return j}),r.d(t,"i",function(){return x}),r.d(t,"j",function(){return k}),r.d(t,"q",function(){return I}),r.d(t,"p",function(){return P}),r.d(t,"r",function(){return T}),r.d(t,"v",function(){return R}),r.d(t,"o",function(){return N}),r.d(t,"w",function(){return A}),r.d(t,"s",function(){return D}),r.d(t,"t",function(){return L}),r.d(t,"u",function(){return M});var n=r(2),a=r.n(n),i=r(53),o=r(37),s=r(4),c=r(5),l=r(85),u=r(68),p=r(131),d=r(60);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){a()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var h="GET_SINGLE_REVIEW",v="GET_SINGLE_REVIEW_SUCCESS",g="GET_REVIEWS",b="GET_REVIEWS_SUCCESS",y="GET_SNIPPETS",_="GET_SNIPPETS_SUCCESS",w="SORT_AND_FILTER",E="SORT_AND_FILTER_SUCCESS",O="FLAG_CONTENT",S="VOTE_CONTENT",C="PREVIOUS_PAGE",j="NEXT_PAGE",x="NEXT_PAGE_FETCH_SUCCESS",k="OVERRIDE_MERCHANT_AND_LOCALE",I=function(e,t){return e=F(e,u.b),function(r){return r({type:h,review_id:t}),Object(i.getContent)("reviews",m(m({},e),{},{review_id:t})).then(function(e){if(Array.isArray(e.results))return r({type:v,review_id:t,response:e})})}},P=Object(l.b)(function(e,t,r){if(e instanceof d.a==!1)throw new Error("Display api is wrong");t=F(t,u.b);var n=Object(s.s)(t),a=Object(d.f)(t,t.page_id),i=Object(c.a)(t),o=i.DEFAULT_REVIEW_SORT_ORDER,l=i.REVIEWS_PER_PAGE;return function(i){return i({type:g,productKey:n}),Object(d.c)(e,t.page_id,{localeOverride:r,filters:a,sorts:o?[p.a[o.toLowerCase()].sort]:[],pageSize:l}).then(function(e){if(Array.isArray(e.results))return i({type:b,productKey:n,response:e,urlFilters:a})})}}),T=function(e,t){return function(r){return t.batched_page_ids.forEach(function(e){var n=Object(s.s)(m(m({},t),{},{page_id:e}));r({type:y,productKey:n})}),d.e.apply(void 0,[e].concat(t.batched_page_ids)).then(function(e){Array.isArray(e.results)&&r({type:_,response:e,config:t})})}},R=function(e,t,r){e=F(e,u.b);var n=Object(s.s)(e);return function(a){return a({type:w,productKey:n}),Object(i.getContent)("reviews",m(m({},e),{},{sorts:t,filters:r,newFilters:!0,pwrPageSize:Object(c.b)("reviews_per_page",e)})).then(function(e){Array.isArray(e.results)&&a({type:E,productKey:n,response:e,sorts:t,filters:r})})}},N=function(e,t,r){return t=F(t,u.b),function(n){return o.a(m(m(m({},r),t),{},{command:"flagugc",ugc_id:e})).then(function(t){n({type:O,flaggedID:e})})}},A=function(e,t,r){return t=F(t,u.b),function(n){return o.f(m(m({},t),{},{vote_type:r.toLowerCase(),command:"voteugc",ugc_id:e})),n({type:S,votedID:e,voteType:r})}},D=function(e,t){e=F(e,u.b);var r=Object(s.s)(e);return function(n){return t?Object(i.get)(t,e).then(function(e){return n({type:x,productKey:r,response:e})}):new pwrPromise(function(e){e(n({type:j,productKey:r}))})}},L=function(e){e=F(e,u.b);var t=Object(s.s)(e);return{type:C,productKey:t}},M=function(e){var t=e.locale,r=e.merchant_id,n=e.api_key;return{type:k,locale:t,merchant_id:r,api_key:n}};function F(e,t){var r=t.getState().Reviews,n=r.localeOverride,a=r.merchantOverride,i=r.apiKeyOverride;return m(m({},e),{},{locale:n||e.locale,merchant_id:a||e.merchant_id,api_key:i||e.api_key,noConfig:!a})}},function(e,t,r){"use strict";r.d(t,"d",function(){return o}),r.d(t,"c",function(){return l}),r.d(t,"e",function(){return u}),r.d(t,"f",function(){return p}),r.d(t,"h",function(){return d}),r.d(t,"b",function(){return f}),r.d(t,"a",function(){return m}),r.d(t,"g",function(){return h});var n=r(5),a=r(4),i=r(98),o=function(e,t,r,a){var i=Object(n.a)(e),o=i.PAGE_ID,l=i.PAGE_ID_VARIANT,u=i.MERCHANT_GROUP_ID,p=o||null,d=l||null,f=Object(n.b)("review_wrapper_url",e,!0)||t.REVIEW_WRAPPER_URL||"";return-1===f.toLowerCase().indexOf("javascript")?(f=s(f,"pageIdVariant","pr_page_id_variant"),f=s(f,"pageId","pr_page_id"),f=s(f,"___PAGE_ID___",p),f=s(f,"___VARIANT___",d),f=s(f,"~~~PAGE_ID~~~",p),f=s(f,"~~~VARIANT~~~",d),f+="&pr_merchant_id="+(a||e.merchant_id),f+="&pr_merchant_group_id="+(u||null),r&&(f+="&pr_locale="+r),f=c(f,p,d)):""},s=function(e,t,r){return e.replace(new RegExp(t,"g"),r)},c=function(e,t,r){var n=e;return t&&!e.match(/pr_page_id/)&&(n+="&pr_page_id="+t),r&&!e.match(/pr_page_id_variant/)&&(n+="&pr_page_id_variant="+r),n},l=function(e,t){var r=e.getState(),n=function(e){return[e.site_id?e.merchant_group_id+"-"+e.site_id:e.merchant_id,e.page_id,e.locale].join("-")}(t);return{summary:{review_count:r.Reviews[n]?r.Reviews[n].reviews.length:null,question_count:r.Questions[n]?r.Questions[n].overallTotalQuestions:null,answer_count:r.Answers[n]?r.Answers[n].total:null,image_count:r.Reviews[n]?r.Reviews[n].media.length:null},reviews:r.Reviews[n]?r.Reviews[n].reviews:[],images:r.Reviews[n]?r.Reviews[n].media:[],questions:r.Questions[n]?r.Questions[n].questions:[],answers:r.Answers[n]?r.Answers[n].results:[]}},u=function(e){return e.pwrMap(function(e){return p(e)?e.isVisible=!1:e.isVisible=!0,e})},p=function(e){var t=e.id,r=e.review_id;return!!(window.POWERREVIEWS.display&&window.POWERREVIEWS.display.fastUnpublishedReviews&&(window.POWERREVIEWS.display.fastUnpublishedReviews.indexOf(Number(t))>-1||window.POWERREVIEWS.display.fastUnpublishedReviews.indexOf(Number(r))>-1))},d=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var r=Object(n.a)(t,e),a=r.ENABLE_CLIENT_SIDE_STRUCTURED_DATA,i=r.CLIENT_SIDE_STRUCTURED_DATA_FORMAT,o=r.STRUCTURED_DATA_PRODUCT_ID,s=a&&"MICRODATA"!==i;return{showJSONLD:s,showMicrodata:a&&"MICRODATA"===i,useNestedJSONLD:s&&!(null!=o)}},f=function(e){var t=0,r=0;e.forEach(function(e,n){r+=e.count||0,t+=(e.count||0)*n});var n=t/r;return 3===e.length?2*n:n},m=function(e){var t=f(e),r=e.filter(function(r){return e.length>3?r.position===Math.round(t):r.position===Math.round(t/2)});return r.length&&r[0].label?r[0].label:""},h=function(e){var t={};for(var r in e)t[r]=Object(n.b)(r,e,!0);var o=Object(a.r)(),s=Object(n.b)("pr_enhanced_content_security_enabled",t,!0)||Object(n.b)("pr_enable_enhanced_content_security",t,!0),c=Object(i.a)(["return_url","product","enable_front_end_iovation_validation"]);for(var l in s&&(c.add("style_sheet"),c.add("review_wrapper_url")),o)if("page_id"!==l||e.components.Write||e.components.WriteAReview||e.components.WriteAQuestion||e.components.WriteAnAnswer||e.components.WhydYouBuy||e.components.SellerRatings){var u=l;"pr_"===l.substr(0,3)&&(u=l.substr(3,l.length)),c.has(u)||(t[u]=o[l])}return t}},function(e,t,r){"use strict";t.a={RESTRICTED_WORD:"RestrictedWord",INVALID_VALUE:"InvalidValue",REQUIRED_FIELD:"RequiredField",REQUEST_FAILED:"REQUEST_FAILED",FATAL_ERROR:"FATAL_ERROR",FATAL_SUBMIT_REVIEW_FAILURE:"FATAL_SUBMIT_REVIEW_FAILURE",DUPLICATE_REVIEW:"DUPLICATE_REVIEW",NON_FATAL_ERROR:"NON_FATAL_ERROR",MISSING_PARAMETER:"MISSING_PARAMETER",INVALID_PARAMETER:"INVALID_PARAMETER"}},function(e,t,r){"use strict";r.d(t,"b",function(){return c}),r.d(t,"c",function(){return l}),r.d(t,"a",function(){return u});var n=r(42),a=r(49),i=r.n(a),o={local:i.a.local,develop:i.a.develop,release:i.a.release,stable:i.a.stable},s=function(e,t){if(o[t])return o[t];var r=Object(n.a)()[e];return o[r]},c=function(e){void 0===e&&(e=null);return s("pr_ui_library_base_url",e)},l=function(e){void 0===e&&(e=null);return s("pr_write_services_base_url",e)},u=function(e){void 0===e&&(e=null);return s("pr_read_services_base_url",e)}},function(e,t,r){"use strict";var n=r(2),a=r.n(n);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var o={onReviewComponentRender:function(e,t,r){var n={component:e,page_id:t.config.page_id},a={review_count:r.review_count,average_rating:r.average_rating};t.config.on_render(n,a)},onReviewComponentChange:function(e,t,r){var n={component:e,page_id:t.config.page_id},a={review_count:r.review_count,average_rating:r.average_rating,reviews:r.reviews};t.config.on_change(n,a)},onImageComponentRender:function(e,t,r){var n={component:e,page_id:t.config.page_id},a={review_image_count:r.review_image_count};t.config.on_render(n,a)},onQuestionsComponentRender:function(e,t,r){var n={component:e,page_id:t.config.page_id},a={question_count:r.total};t.config.on_render(n,a)},onWriteComponentRender:function(e,t){var r={component:e,page_id:t.config.page_id};t.config.on_render(r,{})},onWriteComponentSubmit:function(e,t,r){var n={component:e,page_id:t.config.page_id},o=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){a()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},r);t.config.on_submit(n,o)}};t.a=o},function(e,t,r){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(256)},function(e,t,r){"use strict";r.d(t,"h",function(){return l}),r.d(t,"j",function(){return u}),r.d(t,"i",function(){return p}),r.d(t,"a",function(){return d}),r.d(t,"c",function(){return f}),r.d(t,"b",function(){return m}),r.d(t,"k",function(){return h}),r.d(t,"m",function(){return v}),r.d(t,"l",function(){return g}),r.d(t,"d",function(){return b}),r.d(t,"f",function(){return y}),r.d(t,"e",function(){return _}),r.d(t,"g",function(){return w}),r.d(t,"p",function(){return E}),r.d(t,"o",function(){return O}),r.d(t,"n",function(){return S}),r.d(t,"r",function(){return C}),r.d(t,"q",function(){return j});var n=r(2),a=r.n(n),i=r(31),o=r(4);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){a()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var l="WAQ_INITIAL_FETCH",u="WAQ_INITIAL_FETCH_SUCCESS",p="WAQ_INITIAL_FETCH_ERROR",d="WAA_INITIAL_FETCH",f="WAA_INITIAL_FETCH_SUCCESS",m="WAA_INITIAL_FETCH_ERROR",h="WAQ_SUBMIT",v="WAQ_SUBMIT_SUCCESS",g="WAQ_SUBMIT_ERROR",b="WAA_SUBMIT",y="WAA_SUBMIT_SUCCESS",_="WAA_SUBMIT_ERROR",w="WAQWAA_SET_SUBMIT_ERROR",E=function(e,t,r,n){void 0===n&&(n=!1);var a=Object(o.s)(e)+("WAQ"===t?"_question":"_answer");return{type:w,productKey:a,errorMessage:r,fatalSubmitError:n}},O=function(e){var t=Object(o.s)(e)+"_question";return function(r){return r({type:l,productKey:t}),Object(i.d)(e).then(function(e){var n;n=200===e.statusCode?u:p,r({type:n,body:e.body,productKey:t})})}},S=function(e,t,r){var n=Object(o.s)(e)+"_answer"+(r?"_"+r:"");return function(r){return r({type:d,productKey:n}),Object(i.f)(c(c({},e),{},{component_type:t})).then(function(e){var t;t=200===e.statusCode?f:m,r({type:t,body:e.body,productKey:n})})}},C=function(e,t){var r=Object(o.s)(e)+"_question";return function(n){return n({type:h,productKey:r}),Object(i.i)(e,t).then(function(e){var t;return t=200===e.statusCode?v:g,n({type:t,body:e.body,productKey:r}),e})}},j=function(e,t,r,n){var a=Object(o.s)(e)+"_answer"+(n?"_"+n:"");return function(n){return n({type:b,productKey:a}),Object(i.h)(c(c({},e),{},{component_type:t}),r).then(function(e){var t;return t=200===e.statusCode?y:_,n({type:t,body:e.body,productKey:a}),e})}}},function(e,t,r){"use strict";var n=r(2),a=r.n(n),i={crop:"c_",default_image:"d_",format:"f_",width:"w_",height:"h_",quality:"q_",zoom:"z_",gravity:"g_",transform:"t_"};function o(e){var t=[];return Object.keys(e).forEach(function(r){var n=i[r],a=e[r];n&&null!=a&&t.push(function(e,t){return Array.isArray(t)?e+t.join("."):e+t}(n,a))}),t.sort().join(",")}var s=/(youtube.com\/(v\/|watch\?v=)|(youtu\.be\/))/i,c=/^(https?:)?\/\/(res.cloudinary.com|media.powerreviews.com)\/(?:[^/]+\/)(?:(image|video)\/)?(?:(upload|fetch)\/)?(?:(?:[^_/]+_[^,/]+,?)*\/)?(v[0-9]{10,}\/){0,1}/g,l=/\.(jpg|jpe|jpeg|jpc|jp2|j2k|wdp|jxr|hdp|png|gif|webp|bmp|tif|tiff|avif)$/g,u=/\.(mp4|webm|flv|mov|ogv|3gp|3g2|wmv|mpeg|flv|mkv|avi)$/g,p=function(e){return e.split(c).pop().replace(l,"").replace(u,"")},d=function(e){return{accessType:"upload",resourceType:"image",publicId:p(e)}},f=function(e){return{accessType:"upload",resourceType:"video",publicId:p(e)}};function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){a()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var v="https://media.powerreviews.com/image/upload/f_auto,q_auto,w_150,h_150/noimage";function g(e,t){void 0===t&&(t=null);var r=e.accessType,n=e.resourceType,a=e.publicId,i=void 0===a?"portal-no-product-image_ttlfpi.svg":a,s="https://media.powerreviews.com/"+n+"/"+r;return t?s+"/"+o(t)+"/"+i:s+"/"+i}function b(e,t){void 0===t&&(t=null);var r={quality:"auto",format:"auto",default_image:"portal-no-product-image_ttlfpi.svg"};return{raw:"youtube"===e.accessType?"//www.youtube.com/embed/"+e.publicId:g(e,h({},t)),thumbnail:g(e,h(h({},r),{},{width:150,height:150,crop:"thumb"},t)),small:g(e,h(h({},r),{},{width:300,height:300,crop:"lpad"},t)),medium:g(e,h(h({},r),{},{width:400,height:400,crop:"lpad"},t)),large:g(e,h(h({},r),{},{width:"auto",height:500},t)),full:g(e,h(h({},r),{},{width:"auto",height:768},t)),thumb_high_res:g(e,{transform:"rd_highres_thumb"})}}function y(e){return s.test(e)}function _(e){return y(e)?e.split(s).pop():null}function w(e,t){return t="."===t.charAt(0)?t:"."+t,(e=e.replace(/\.\w*$/,""))+t}var E={DEFAULT_PRODUCT_IMAGE:v,url:g,urlSet:b,libraryUrl:function(e,t){return void 0===t&&(t=null),g(d(e),h({quality:"auto",format:"auto",default_image:"portal-no-product-image_ttlfpi.svg"},t))},libraryVideoUrl:function(e,t){void 0===t&&(t=null);var r=f(e);return r.publicId=r.publicId+".jpg",g(r,h({quality:"auto",format:"auto",default_image:"portal-no-product-image_ttlfpi.svg"},t))},removeDefaultImageParameter:function(e){return e.replace("d_noimage.jpg,","")},isDefaultImage:function(e){return e===v||"noimage"===p(e)},libraryUrlSet:function(e,t){return void 0===t&&(t=null),b(d(e),t)},fetchUrlSet:function(e){return b(function(e){return{accessType:"fetch",resourceType:"image",publicId:function(e){return e.replace(/\?/g,"%3F")}(e)}}(e||"http://httpstat.us/404"))},libraryVideoUrlSet:function(e,t){void 0===t&&(t=null);var r=f(e);return r.publicId=r.publicId+".jpg",b(r,t)},youtubeUrlSet:function(e){return b(function(e){return{accessType:"youtube",resourceType:"image",publicId:e.split(s).pop()}}(e))},isYoutubeVideo:y,getYoutubeVideoID:_},O=E;r.d(t,"b",function(){return O}),r.d(t,"c",function(){return _}),r.d(t,"d",function(){return w}),r.d(t,"a",function(){return E})},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(16),o=r.n(i),s=r(0),c=r.n(s),l=r(26),u=r.n(l);function p(e){if("string"==typeof e){if("true"===(e=e.trim()))return!0;if("false"===e)return!1}return e}var d=r(10),f=r.n(d),m=r(144),h=r(109);r.d(t,"a",function(){return y}),r.d(t,"e",function(){return _}),r.d(t,"c",function(){return w}),r.d(t,"d",function(){return E}),r.d(t,"b",function(){return O});var v=Object(s.createContext)(),g=Object(s.createContext)(),b=Object(s.createContext)();function y(e){var t=e.children,r=e.targetNode,n=Object(s.useState)(!1),a=n[0],i=n[1],o=Object(s.useState)(),l=o[0],d=o[1],f=Object(s.useRef)(Object(m.a)()),y=c.a.Children.only(t),_=Object(s.useState)(function(){return new WeakMap})[0],w=Object(s.useState)(function(){return new IntersectionObserver(function(e){e.forEach(function(e){if(e.isIntersecting||e.intersectionRatio>0){var t=e.target,r=_.get(t);if(r){var n=function(){r(!0),w.unobserve(t),_.delete(t)};"requestIdleCallback"in window?requestIdleCallback(n,{timeout:50}):setTimeout(n,0)}}})})})[0],E=null!=l;Object(s.useEffect)(function(){var e=new ResizeObserver(Object(h.a)(function(e){pwrPromise.resolve().then(function(){return e.forEach(function(e){if(e.contentRect){var t=e.contentRect.width;f.current.emit("resize",t)}})})},250));return e.observe(r),function(){e.disconnect()}},[r]);var O=Object(s.useMemo)(function(){return{observe:function(e,t){w.observe(e),_.set(e,t)},unobserve:function(e){w.unobserve(e),_.delete(e)}}},[w,_]);Object(s.useEffect)(function(){return O.observe(r,i),function(){return w.disconnect()}},[w,r,O]),Object(s.useEffect)(function(){if(!E){var e=r.clientWidth;if(e<=0)for(var t=r;e<=0;)e=t.clientWidth,t=t.parentNode;d(e)}},[E,r]);var S=Object(s.useMemo)(function(){return{rootNode:r,initialWidth:l,isVisible:a}},[r,l,a]);return u.a.createPortal(c.a.createElement("div",{className:"p-w-r"},c.a.createElement(v.Provider,{value:S},c.a.createElement(g.Provider,{value:f.current},c.a.createElement(b.Provider,{value:O},E?c.a.cloneElement(y,{onLoad:function(){return function(e){Array.from(e.querySelectorAll("[data-pr-placeholder]")).forEach(function(e){window.requestAnimationFrame(function(){return e.style.display="none"})})}(r)},elementConfig:function(e){for(var t={},r=e.attributes,n=r.length-1;n>=0;n--){var a=r[n];if(0===a.name.indexOf("data-pr-")){var i=a.name.replace("data-pr-","").toLowerCase();t[i=i.replace(/-/g,"_")]=p(a.value)}}return t}(r)}):null)))),r)}function _(){var e=Object(s.useContext)(g),t=Object(s.useContext)(v).initialWidth,r=Object(s.useState)(t),n=r[0],a=r[1];return Object(s.useEffect)(function(){var t=function(e){0!==e&&a(e)};return e.on("resize",t),function(){e.off("resize",t)}},[e]),n}function w(e){var t=e.children,r=e.sizes,n=e.callback,a=r.sort(function(e,t){return e.width-t.width}),i=_(),o=function(){for(var e=null,t=0;t<a.length;++t)i>a[t].width&&(e=a[t]);return e}();Object(s.useEffect)(function(){o&&n&&n(o.name)},[o,n]);var l=Array.isArray(t)&&1===c.a.Children.count(t)&&t[0];return l=c.a.Children.only(t),c.a.cloneElement(l,{className:f()(l.props.className,(null===o||void 0===o?void 0:o.name)||"")})}function E(e,t){void 0===t&&(t=!1);var r=Object(s.useRef)(),n=Object(s.useContext)(b);if(null==n)throw new Error("useComponentVisibilitySensor must be used within a ComponentVisibilityProvider");var a=n.observe,i=n.unobserve;return Object(s.useEffect)(function(){if(null!=r.current&&!t){var n=r.current;return a(n,e),function(){i(n,e)}}},[a,i,t,e]),{ref:r}}function O(e,t){var r=e.children,n=e.onChange,i=e.disabled,s=e.as,l=void 0===s?"div":s,u=o()(e,["children","onChange","disabled","as"]),p=E(n,i).ref;if("function"==typeof r)return r(p);var d=l;return c.a.createElement(d,a()({ref:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter(Boolean);return n.length<=1?n[0]:function(e){n.forEach(function(t){"function"==typeof t?t(e):t.current=e})}}(t,p)},u),r)}O=c.a.forwardRef(O)},function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n="[[PowerreviewsGlobalObject]]";function a(e,t){try{Object.defineProperty(window[n],e,{configurable:!1,enumerable:!1,writable:!1,value:t})}catch(e){0}}window.hasOwnProperty(n)||(Object.defineProperty(window,n,{configurable:!1,enumerable:!1,writable:!1,value:{}}),a("version",4),a("buildVersion","10309"));var i={getItem:function(e){return window[n][e]},setItem:a,setItemVolatile:function(e,t){window[n][e]=t}}},function(e,t,r){"use strict";r.d(t,"j",function(){return k}),r.d(t,"a",function(){return I}),r.d(t,"e",function(){return T}),r.d(t,"g",function(){return R}),r.d(t,"c",function(){return N}),r.d(t,"b",function(){return A}),r.d(t,"d",function(){return D}),r.d(t,"f",function(){return L}),r.d(t,"i",function(){return M}),r.d(t,"h",function(){return F});var n=r(158),a=r.n(n),i=r(201),o=r.n(i),s=r(2),c=r.n(s),l=r(34),u=r(12),p=r(82),d=r.n(p),f=r(65),m=r.n(f),h=r(24),v=r(5);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){c()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var y=document.location.protocol&&document.location.protocol.indexOf("http")>-1?document.location.protocol:"http:",_=y+"//writeservices.powerreviews.com",w=function(e,t){return Object(h.c)(e)?y+Object(h.c)(e).writeBase:t},E=function(e,t){return"merchant_group_id"===e&&t.merchantGroupId?t.merchantGroupId:"merchant_id"===e&&t.merchantId?t.merchantId:"site_id"===e&&t.siteId?t.siteId:"reviewer_type"===e&&t.reviewer_ttype?t.reviewer_ttype:"page_id"===e&&t.page_id?window.encodeURIComponent(String(window.decodeURIComponent(t.page_id)).replace(/\//g,"%2F")):t[e]||null},O=function(e){return"string"==typeof e?decodeURIComponent(e.replace(/\+/g," ")):e},S=function(e,t,r){if(!r[e]&&"locale"===e)return"en_US";if("page_ids"===e&&(E(e,t)||E(e,r))){var n=E(e,t)||E(e,r);return O(n)}return t&&E(e,t)?O(E(e,t)):r&&E(e,r)?O(E(e,r)):void 0};function C(e,t){void 0===t&&(t={});var r=Object(v.b)("pr_write_services_base_url"),n=""+w(r,_)+e,a=m.a.get(n);try{a.withCredentials()}catch(e){}return new pwrPromise(function(e){a.end(function(t,r){t?(console.log(t),e({body:{message:t.toString()},statusCode:t.status||t.statusCode||-1})):e({body:r.body,statusCode:r.status||r.statusCode})})})}function j(e,t,r){void 0===r&&(r={});var n=Object(v.b)("pr_write_services_base_url"),a=""+w(n,_)+e,i=m.a.post(a).send(t).set("Content-Type","application/json");try{i.withCredentials()}catch(e){}return new pwrPromise(function(e){i.end(function(t,r){t?(console.log(t),e({body:{message:t.toString()},statusCode:t.status||t.statusCode||-1})):e({body:r.body,statusCode:r.status||r.statusCode})})})}var x=function(e,t){var r={raw:{height:e.height,width:e.width,publicId:e.public_id,size:Math.floor(e.bytes/1e3),url:e.secure_url||e.url,deleteToken:e.delete_token}};return t===l.a?r:b(b({},r),{},{video_url:e.secure_url||e.url,video_thumbnail_url:"https://media.powerreviews.com/video/upload/t_media_lib_thumb/"+e.public_id+".jpg",youTubeDetails:e.public_id})};function k(e,t){var r;return t===l.b?r="prod_video_preset":t===l.a&&(r="prod_preset"),new pwrPromise(function(n,a){var i="//api.cloudinary.com/v1_1/powerreviews/auto/upload";e.source?m.a.post(y+i).set("Content-Type","application/json").send({file:e.source,upload_preset:r}).end(function(e,r){e?a(e):n(x(r.body,t))}):m.a.post(y+i).attach("file",e,e.name).field("upload_preset",r).end(function(e,r){e?a(e):n(x(r.body,t))})})}function I(e){return P.apply(this,arguments)}function P(){return(P=o()(a.a.mark(function e(t){var r,n,i;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.publicId,r=t.deleteToken,(n=new FormData).append("token",r),e.next=5,fetch(y+"//api.cloudinary.com/v1_1/powerreviews/delete_by_token",{method:"POST",body:n});case 5:if(!1!==(i=e.sent).ok){e.next=8;break}throw new Error(i.statusText);case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}function T(e,t){var r="/war/writereview?",n={},a=e.ugc_id&&e.passcode;if(e.merchant_group_id&&e.site_id)r+="merchant_group_id="+e.merchant_group_id+"&site_id="+e.site_id;else if(e.merchant_id)r+="merchant_id="+e.merchant_id;else if(!a)throw new Error("PowerReviews getWriteAReviewTemplate() error - combination of merchant_group_id and site_id or merchant_id provided is not valid");if(!e.page_id&&!a)throw new Error("PowerReviews getWriteAReviewTemplate() error - page_id provided is not valid");["page_id_variant","locale","unique_review_id","merchant_user_id","merchant_user_email","emuid","promo_code","product_category","includeLocalizations","ugc_id","passcode"].forEach(function(r){S(r,t,e)&&(n[r]=S(r,t,e))});var i=d.a.stringify(n);return e.page_id&&(r+="&page_id="+E("page_id",e)),r+=-1===r.indexOf("?")?"?":"&",C(r+=i,e)}function R(e,t){var r="/war/writereview?",n={},a=t.ugc_id&&t.passcode;if(t.merchant_group_id&&t.site_id)r+="merchant_group_id="+t.merchant_group_id+"&site_id="+t.site_id;else if(t.merchant_id)r+="merchant_id="+t.merchant_id;else if(!a)throw new Error("PowerReviews getWriteAReviewTemplate() error - combination of merchant_group_id and site_id or merchant_id provided is not valid");if(!t.page_id&&!a)throw new Error("PowerReviews getWriteAReviewTemplate() error - page_id provided is not valid");["current_step","is_complete","page_id_variant","locale","source","merchant_user_email","emuid","merchant_user_id","unique_review_id","reviewer_type","order_id","campaign_id","promo_code","disclosure_code","review_type","includeLocalizations","ugc_id","passcode"].forEach(function(e){S(e,{},t)&&(n[e]=S(e,{},t))});var i=d.a.stringify(n);return t.page_id&&(r+="&page_id="+E("page_id",t)),r+=-1===r.indexOf("?")?"?":"&",j(r+=i,e,t)}function N(e,t){if(!(e.merchant_group_id&&e.site_id||e.merchant_id))throw new Error("PowerReviews getReviewYourPurchasesTemplate() error - combination of merchant_group_id and site_id or merchant_id provided is not valid");if(!(e.page_ids||e.emuid||e.page_id||e.merchant_user_email))throw new Error("PowerReviews getWriteAReviewTemplate() error - merchant_user_email, emuid, page_ids, or page_id provided is not valid");var r={};return["merchant_group_id","site_id","merchant_id","locale","merchant_user_id","merchant_user_email","emuid","page_ids","is_multi_merchant"].forEach(function(n){S(n,t,e)&&(r[n]=S(n,t,e))}),C("/api/ryp?"+d.a.stringify(r),e)}function A(e,t){if(!(e.merchant_group_id&&e.site_id||e.merchant_id))throw new Error("PowerReviews getReviewYourPurchasesTemplate() error - combination of merchant_group_id and site_id or merchant_id provided is not valid");if(!(e.page_ids||e.emuid||e.page_id||e.merchant_user_email))throw new Error("PowerReviews getWriteAReviewTemplate() error - merchant_user_email, emuid, page_ids, or page_id provided is not valid");var r={};return["merchant_group_id","site_id","merchant_id","locale","merchant_user_id","merchant_user_email","page_id","page_id_variant","emuid","review_type"].forEach(function(n){S(n,t,e)&&(r[n]=S(n,t,e))}),function(e,t){void 0===t&&(t={});var r=""+w(t.write_services_base_url,_)+e,n=m.a.del(r);try{n.withCredentials()}catch(e){}return new pwrPromise(function(e){n.end(function(t,r){t?(console.log(t),e({body:{message:t.toString()},statusCode:t.status||t.statusCode||-1})):e({body:r.body,statusCode:r.status||r.statusCode})})})}("/api/ryp?"+d.a.stringify(r),e)}function D(e,t){var r="/qa/question",n={includeLocalizations:!0},a=["page_id_variant","locale"];if(e.merchant_group_id&&e.site_id)a.push("merchant_group_id","site_id");else{if(!e.merchant_id)throw new Error("PowerReviews getWriteAQuestionData() error - combination of merchant_group_id and site_id or merchant_id provided is not valid");a.push("merchant_id")}if(!e.page_id)throw new Error("PowerReviews getWriteAQuestionData() error - page_id provided is not valid");a.forEach(function(r){S(r,t,e)&&(n[r]=S(r,t,e))});var i=d.a.stringify(n);return C(r+="?page_id="+E("page_id",e)+"&"+i,e)}function L(e,t){var r=e.component_type===u.i.WYB,n=r?"/qa/whydidyoubuy":"/qa/answer",a={includeLocalizations:!0},i=["page_id_variant","locale","question_id"];if(e.merchant_group_id&&e.site_id)i.push("merchant_group_id","site_id");else{if(!e.merchant_id)throw new Error("PowerReviews getWriteAnAnswerData() error - combination of merchant_group_id and site_id or merchant_id provided is not valid");i.push("merchant_id")}if(!e.page_id)throw new Error("PowerReviews getWriteAnAnswerData() error - page_id provided is not valid");if(!e.question_id&&!r)throw new Error("PowerReviews getWriteAnAnswerData() error - question_id provided is not valid");i.forEach(function(r){S(r,t,e)&&(a[r]=S(r,t,e))});var o=d.a.stringify(a);return C(n+="?page_id="+E("page_id",e)+"&"+o,e)}function M(e,t){var r="/qa/question",n={},a=["locale","question_id","page_id_variant"];if(e.merchant_group_id&&e.site_id)a.push("merchant_group_id","site_id");else{if(!e.merchant_id)throw new Error("PowerReviews submitWAQ() error - combination of merchant_group_id and site_id or merchant_id provided is not valid");a.push("merchant_id")}if(!e.page_id)throw new Error("PowerReviews submitWAQ() error - page_id provided is not valid");a.forEach(function(t){S(t,{},e)&&(n[t]=S(t,{},e))});var i=d.a.stringify(n);return j(r+="?page_id="+E("page_id",e)+"&"+i,t,e)}function F(e,t){var r=e.component_type===u.i.WYB?"/qa/whydidyoubuy":"/qa/answer",n={},a=["locale","question_id","page_id_variant","question_type"];if(e.merchant_group_id&&e.site_id)a.push("merchant_group_id","site_id");else{if(!e.merchant_id)throw new Error("PowerReviews submitWAA() error - combination of merchant_group_id and site_id or merchant_id provided is not valid");a.push("merchant_id")}if(!e.page_id)throw new Error("PowerReviews submitWAA() error - page_id provided is not valid");a.forEach(function(t){S(t,{},e)&&(n[t]=S(t,{},e))});var i=d.a.stringify(n);return j(r+="?page_id="+E("page_id",e)+"&"+i,t,e)}},function(e,t,r){"use strict";r.d(t,"d",function(){return n}),r.d(t,"i",function(){return a}),r.d(t,"g",function(){return i}),r.d(t,"j",function(){return o}),r.d(t,"h",function(){return s}),r.d(t,"c",function(){return c}),r.d(t,"a",function(){return l}),r.d(t,"e",function(){return u}),r.d(t,"b",function(){return p}),r.d(t,"f",function(){return d});var n="HELPFUL",a="UNHELPFUL",i="PROFANE",o="WRONG_PRODUCT",s="SPAM",c="DUPLICATE",l="COPYRIGHT",u="NOT_REVIEW",p="CUSTOMER_IMAGE",d="OTHER"},function(e,t,r){"use strict";function n(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(1===r.length&&"object"==typeof r[0]){var a=r[0];return e.replace(/{(\w+)}/g,function(e,t){return null!=a[t]?a[t]:e})}return r.length>0?e.replace(/{\s*}/g,"{0}").replace(/{(\w+)}/g,function(e,t){return null!=r[t]?r[t]:e}):e}r.d(t,"a",function(){return n})},function(e,t,r){"use strict";r.d(t,"a",function(){return n}),r.d(t,"b",function(){return a});var n="IMAGE",a="VIDEO"},function(e,t,r){"use strict";t.a={parse:function(){var e=JSON.parse.apply(JSON,arguments);if(window.Prototype&&Array.prototype.toJSON){var t=Array.prototype.toJSON;delete Array.prototype.toJSON,e=JSON.parse.apply(JSON,arguments),Array.prototype.toJSON=t}return e},stringify:function(){var e=JSON.stringify.apply(JSON,arguments);if(window.Prototype&&Array.prototype.toJSON){var t=Array.prototype.toJSON;delete Array.prototype.toJSON,e=JSON.stringify.apply(JSON,arguments),Array.prototype.toJSON=t}return e}}},function(e,t,r){"use strict";var n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).pwrMap(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,o,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in r=Object(arguments[c]))a.call(r,l)&&(s[l]=r[l]);if(n){o=n(r);for(var u=0;u<o.length;u++)i.call(r,o[u])&&(s[o[u]]=r[o[u]])}}return s}},function(e,t,r){"use strict";var n="REQUEST",a=(r(40),r(154)),i=(r(36),r(35),r(128)),o=r(5);r.d(t,"b",function(){return s}),r.d(t,"d",function(){return c}),r.d(t,"e",function(){return l}),r.d(t,"c",function(){return p}),r.d(t,"f",function(){return d}),r.d(t,"a",function(){return f});var s=function(e){if(!e.page_id)return{};var t={},r={},n=i.a.getItem("currentProductInformation");return e.page_id==(null===n||void 0===n?void 0:n.page_id)&&(r=n),["pr_product_name","pr_product_image_url","pr_product_description","pr_product_category_name","pr_product_brand_name","pr_product_price","pr_product_in_stock","pr_product_manufacturer_id","pr_product_upc","pr_product_url"].pwrMap(function(n,a){var i=function(e){return e=e.match("product")&&"pr_product_url"!==e?e.split("product_").pop():e.split("pr_").pop()}(n);Object(o.b)(n,e)?t[i]=Object(o.b)(n,e):r[n]&&(t[i]=r[n])}),t},c=function(e){void 0===e&&(e={});var t=!0;return["name","image_url","description","category_name","product_url"].forEach(function(r){e[r]||(t=!1)}),t},l=function(e){var t=[],r=[];for(var a in e){var i=e[a];if(i.target!==n){if("simple"===i.field_type)t.push({id:i.id,field_type:i.field_type,key:i.key,label:i.label,value:i.value});else if("composite"===i.field_type&&"Simple"===i.composite_type)for(var o=0;o<i.values.length;o++)i.values[o]&&t.push({id:i.id+"_"+o,field_type:i.field_type,composite_type:i.composite_type,key:i.key+"_"+o,fields:[{key:i.key,field_type:"simple",value:i.values[o].value,input_type:"TextBox"}]});else if("collection"===i.field_type)t.push({id:i.id,field_type:i.field_type,key:i.key,values:i.values});else if("composite"===i.field_type&&"Image"===i.composite_type){for(var s=i.values,c=0;c<s.length;c++)if(s&&s[c]){var l=s[c];if(!l)continue;var u={id:i.id+"_"+c,field_type:i.field_type,key:i.key+"_"+c,composite_type:i.composite_type,rotation:l.rotation||0,fields:[{key:"caption",field_type:"simple",value:l.caption,input_type:"TextBox"}]};u.composite_data=l.composite_data,t.push(u)}}else if("composite"===i.field_type&&"Video"===i.composite_type||"NativeVideo"===i.composite_type)for(var p=i.values,d=0;d<p.length;d++)if(p&&p[d]){var f=p[d];if(f.value&&(f=f.value),!f||void 0===f||!f.video_url)continue;var m={id:i.id+"_"+d,field_type:i.field_type,key:i.key+"_"+d,composite_type:i.composite_type,rotation:i.rotation||0,composite_data:{video_url:f.video_url,video_thumbnail_url:f.video_thumbnail_url},fields:[{key:"caption",field_type:"simple",value:f.caption,input_type:"TextBox"}]};t.push(m)}}else r.push(i)}return{fields:t,additionalOptions:r}},u=function(e,t){var r={},n=t;for(var a in n){var i=n[a];"merchant_group_id"===i&&e.merchantGroupId&&(r[i]=e.merchantGroupId),"merchant_id"===i&&e.merchantId&&(r[i]=e.merchantId),"site_id"===i&&e.siteId&&(r[i]=e.siteId),"reviewer_type"===i&&e.reviewer_ttype&&(r[i]=e.reviewer_ttype),e[i]&&("page_id"===i&&e.page_id?r[i]=window.encodeURIComponent(String(window.decodeURIComponent(e.page_id)).replace(/\//g,"%2F")):r[i]=e[i])}return r},p=function(e,t){var r=["page_id","site_id","locale","merchant_user_id","merchant_user_email","page_id_variant","asin","gtin","lookup_asin","bestbuy_sku","coolblue_sku"];e.merchant_id?r.push("merchant_id"):(r.push("merchant_group_id"),r.push("site_id"));var n=u(e,r);e.api&&window.POWERREVIEWS.local&&(n.api=e.api),Object(o.b)("pr_write_services_base_url")&&(n.api=Object(o.b)("pr_write_services_base_url")),a.a.getShareToRetailerData(n,t)},d=function(e,t){a.a.submitFlaggingAndHelpfulVoting(e,function(e){var r=!0;200!==e.statusCode&&(r=!1),t&&t(r,e)})};function f(e){return new pwrPromise(function(t,r){d(e,function(e,n){!0!==e?r(n.data):t(n)})})}},function(e,t,r){"use strict";r.r(t),r.d(t,"WAR",function(){return n}),r.d(t,"WARIF",function(){return a}),r.d(t,"WARMO",function(){return i}),r.d(t,"SRW",function(){return o}),r.d(t,"WAQ",function(){return s}),r.d(t,"WAA",function(){return c}),r.d(t,"WYB",function(){return l}),r.d(t,"AS",function(){return u}),r.d(t,"RYP",function(){return p}),r.d(t,"REVIEW_DISPLAY",function(){return d}),r.d(t,"QA_DISPLAY",function(){return f}),r.d(t,"RID",function(){return m}),r.d(t,"REVIEW_SNIPPET",function(){return h}),r.d(t,"QA_SNIPPET",function(){return v}),r.d(t,"IMAGE_SNIPPET",function(){return g}),r.d(t,"IRL_SNIPPET",function(){return b}),r.d(t,"REVIEW_SNAPSHOT",function(){return y}),r.d(t,"FEEDLESS_PRODUCT_CATALOG",function(){return _}),r.d(t,"ADD_TO_CART",function(){return w}),r.d(t,"REVIEW_DISPLAY_LOAD",function(){return E}),r.d(t,"QA_DISPLAY_LOAD",function(){return O}),r.d(t,"QA_DISPLAY_VISIBLE",function(){return S}),r.d(t,"REVIEW_DISPLAY_VISIBLE",function(){return C}),r.d(t,"REVIEW_DISPLAY_VISIBLE_INDIVIDUAL",function(){return j}),r.d(t,"REVIEW_IMAGE_DISPLAY_VISIBLE",function(){return x}),r.d(t,"REVIEW_HISTOGRAM_VISIBLE",function(){return k}),r.d(t,"REVIEW_SNIPPET_VISIBLE",function(){return I}),r.d(t,"QA_SNIPPET_VISIBLE",function(){return P}),r.d(t,"IMAGE_SNIPPET_VISIBLE",function(){return T}),r.d(t,"IRL_SNIPPET_VISIBLE",function(){return R}),r.d(t,"QA_SNIPPET_READ_QUESTIONS",function(){return N}),r.d(t,"QA_SNIPPET_ASK_A_QUESTION",function(){return A}),r.d(t,"QA_DISPLAY_ASK_QUESTION",function(){return D}),r.d(t,"QA_DISPLAY_WRITE_ANSWER",function(){return L}),r.d(t,"QA_DISPLAY_MORE_ANSWERS",function(){return M}),r.d(t,"QA_DISPLAY_SEARCH_ANSWERS",function(){return F}),r.d(t,"QA_DISPLAY_SORT_MOST_RECENT",function(){return z}),r.d(t,"QA_DISPLAY_SORT_OLDEST",function(){return V}),r.d(t,"QA_DISPLAY_SORT_MOST_ANSWERS",function(){return U}),r.d(t,"QA_DISPLAY_HELPFUL",function(){return q}),r.d(t,"QA_DISPLAY_UNHELPFUL",function(){return W}),r.d(t,"REVIEW_SNIPPET_READ_REVIEWS",function(){return B}),r.d(t,"REVIEW_SNIPPET_WRITE_REVIEW",function(){return H}),r.d(t,"IRL_SNIPPET_NEXT",function(){return K}),r.d(t,"IMAGE_SNIPPET_CLICK_IMAGE",function(){return G}),r.d(t,"REVIEW_DISPLAY_RATING_FILTER_APPLIED",function(){return Q}),r.d(t,"REVIEW_DISPLAY_TAG_FILTER_APPLIED",function(){return Y}),r.d(t,"REVIEW_DISPLAY_MSQ_FILTER_APPLIED",function(){return $}),r.d(t,"REVIEW_DISPLAY_RATING_FILTER_REMOVED",function(){return J}),r.d(t,"REVIEW_DISPLAY_TAG_FILTER_REMOVED",function(){return X}),r.d(t,"REVIEW_DISPLAY_MSQ_FILTER_REMOVED",function(){return Z}),r.d(t,"REVIEW_DISPLAY_PREV_PAGE",function(){return ee}),r.d(t,"REVIEW_DISPLAY_NEXT_PAGE",function(){return te}),r.d(t,"REVIEW_DISPLAY_BACK_TO_TOP",function(){return re}),r.d(t,"REVIEW_DISPLAY_HELPFUL",function(){return ne}),r.d(t,"REVIEW_DISPLAY_UNHELPFUL",function(){return ae}),r.d(t,"REVIEW_DISPLAY_FLAG",function(){return ie}),r.d(t,"REVIEW_DISPLAY_MORE_DETAILS",function(){return oe}),r.d(t,"REVIEW_DISPLAY_SORT_HIGHEST",function(){return se}),r.d(t,"REVIEW_DISPLAY_SORT_LOWEST",function(){return ce}),r.d(t,"REVIEW_DISPLAY_SORT_MOST_HELPFUL",function(){return le}),r.d(t,"REVIEW_DISPLAY_SORT_OLDEST",function(){return ue}),r.d(t,"REVIEW_DISPLAY_SORT_MOST_RECENT",function(){return pe}),r.d(t,"REVIEW_DISPLAY_SORT_IMAGES",function(){return de}),r.d(t,"REVIEW_DISPLAY_SEARCH_ANSWERS",function(){return fe}),r.d(t,"REVIEW_SNAPSHOT_WRITE_REVIEW",function(){return me}),r.d(t,"REVIEW_SNAPSHOT_FACEOFF_POSITIVE",function(){return he}),r.d(t,"REVIEW_SNAPSHOT_FACEOFF_NEGATIVE",function(){return ve}),r.d(t,"REVIEW_TRANSLATE_VIEWED",function(){return ge}),r.d(t,"REVIEW_TRANSLATE",function(){return be}),r.d(t,"REVIEW_TRANSLATE_ORIGINAL",function(){return ye}),r.d(t,"IMAGES_CLICK_IMAGE_TO_OPEN",function(){return _e}),r.d(t,"IMAGES_CLICK_NEXT",function(){return we}),r.d(t,"IMAGES_CLICK_PREV",function(){return Ee});var n={social_measurement_id:"wr",ga_id:"submit2verify",start:"start",complete:"askForLogin",smsStart:"sms-start",smsComplete:"sms-submit",error:"submit_error",share_to_retailer_present:function(e){return"share_to_retailer_present_"+e},share_to_retailer_clicked:function(e){return"share_to_retailer_clicked_"+e}},a={social_measurement_id:"if",ga_id:"if",start:"start",complete:"thankyou",error:"submit_error"},i={social_measurement_id:"mo",ga_id:"mo",start:"start",caption:"caption",complete:"thankyou",error:"submit_error"},o={social_measurement_id:"srw",ga_id:"srw",start:"start",complete:"thankyou",error:"submit_error"},s={ga_id:"question",start:"edit_page",complete:"finished_page",error:"submit_error"},c={ga_id:"answer",start:"edit_page",complete:"finished_page",error:"submit_error"},l={ga_id:"wyb",start:"edit_page",complete:"finished_page",error:"submit_error"},u={ga_id:"as",start:"call_to_action",complete:"redirected",error:"fallback",fallback_copy:"fallback_copy",fallback_complete:"fallback_redirected"},p={social_measurement_id:"ryp",ga_id:"ryp",start:"start",click:"star_click",complete:"review_submission",error:"error",image:"image_upload"},d={social_measurement_id:"rd",events:{load:""}},f={social_measurement_id:"ab",events:{load:""}},m={social_measurement_id:"rid"},h={social_measurement_id:"rd"},v={social_measurement_id:"ab"},g={social_measurement_id:"is"},b={social_measurement_id:"irl"},y={social_measurement_id:"rd"},_={social_measurement_id:"fp"},w={social_measurement_id:"atc"},E="",O="",S="product-answers-visible",C="reviews-visible",j=function(e){return"reviews-visible-"+e},x="review-image-display-visible",k="histogram-viewed",I="snippet-visible",P="answers-snippet-visible",T="image-snippet-visible",R="irl-snippet-visible",N="answers-snippet-read-questions",A="answers-snippet-ask-a-question",D="header-ask-question-button",L="product-answers-answer-question-{questionId}",M="product-answers-label-{questionId}",F="product-answers-search",z="product-answers-sort-newest",V="product-answers-sort-oldest",U="product-answers-sort-most-answers",q="product-answers-helpful",W="product-answers-not-helpful",B="snippet-read-reviews",H="snippet-write-review",K="irl-snippet-click-next",G="image-snippet-click-image",Q="filter-applied-{rating}star",Y="filter-applied-{type}-{value}",$="filter-applied-msq-{value}",J="filter-removed-{rating}star",X="filter-removed-{type}-{value}",Z="filter-removed-msq-{value}",ee="footer-page-prev-link",te="footer-page-next-link",re="footer-back-to-top-link",ne="review-helpful-yes-link",ae="review-helpful-no-link",ie="review-report-issue-link",oe="review-more-details",se="review-sort-highest",ce="review-sort-lowest",le="review-sort-most-helpful",ue="review-sort-oldest",pe="review-sort-most-recent",de="review-sort-images",fe=function(e){return"review-search-"+e},me="snapshot-write-review",he="faceoff-positive-link",ve="faceoff-negative-link",ge=function(e){return"review-translate-viewed-"+e},be=function(e){return"review-translate-"+e},ye=function(e){return"review-translate-original-"+e},_e="image-gallery",we="image-gallery-next",Ee="image-gallery-prev"},function(e,t,r){var n=r(45),a=r(222),i=r(57),o=r(183),s=r(231),c=r(294),l=a("wks"),u=n.Symbol,p=c?u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(s&&i(u,e)?l[e]=u[e]:l[e]=p("Symbol."+e)),l[e]}},function(e,t,r){"use strict";t.a={EMAIL:"EMAIL"}},function(e,t,r){"use strict";function n(e){return 0===e.indexOf("//")?"https:"+e:0===e.indexOf("http://")?e.replace("http","https"):e}r.d(t,"a",function(){return n})},function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=["SOCIAL_MEASUREMENT_COOKIE_DOMAIN"],a=function(){var e={};if(window&&window.location&&window.location.search)for(var t=window.location.search.substring(1).split("&"),r=0,a=t.length;r<a;++r){var i=t[r].split("="),o=i[0],s=i[1];e[o]=decodeURIComponent(s)}return n.forEach(function(t){var r=new RegExp("^(pr_){0,1}"+t,"i");for(var n in e)r.test(n)&&delete e[n]}),e}},function(e,t,r){"use strict";var n=r(0),a=r.n(n),i=r(5),o=(r(1),r(60)),s=r(128),c=function(e){var t=e.initProxy("/m/{merchant_id}/l/{locale}/configuration"),r=t.url,n=t.headers,a=s.a.getItem(r)||{},i=a.$value,o=a.$timestamp;return(null===i||void 0===i?void 0:i.properties)&&(null===i||void 0===i?void 0:i.localizations)&&(null===i||void 0===i?void 0:i.features)&&Date.now()-o<144e5?pwrPromise.resolve(i):fetch(r,{method:"GET",headers:n}).then(e.checkResponseStatus).then(function(e){return e.json()}).then(function(e){return s.a.setItem(r,{$value:e,$timestamp:Date.now()}),e})};c=Object(o.b)(c);var l=r(110),u=r(98),p=r(30),d=r(131),f=a.a.createContext(),m=new u.a(["ReviewDisplay","ReviewSnapshot","ReviewList","ReviewImageDisplay","ReviewImageSnippet","SizeFitSnippet"]);function h(e){var t=e.config,r=void 0===t?{}:t,s=e.children,h=Object(n.useState)(function(){var e=Object(i.b)("read_services_base_url",r)||"stable";return new o.a(e,r)})[0],v=Object(n.useState)({}),g=v[0],b=g.status,y=g.data,_=v[1],w=Object(n.useState)(!1),E=w[0],O=w[1];Object(n.useEffect)(function(){null==b&&(_({status:"pending"}),c(h).then(function(e){_({status:"fulfilled",data:e})}).catch(function(e){console.error("Error fetching display configuration"),_({status:"rejected",data:e})}))},[h,b]);var S=Object(n.useMemo)(function(){return"fulfilled"!==b?{config:r}:{config:r,merchantProperties:y.properties,localizations:y.localizations,features:y.features,displayApi:h,reviewTranslationEnabled:Object(l.a)(r.locale,y.properties),componentKeys:Object(u.a)(Object.keys(r.__componentKeys||{}))}},[r,y,h,b]);return Object(n.useEffect)(function(){if(!0!==E&&"fulfilled"===b){p.a.setItem("reviewTranslationEnabled",S.reviewTranslationEnabled);var e=!1;if(r.__componentKeys)for(var t=0,n=Object.keys(r.__componentKeys);t<n.length;t++){var a=n[t];if(m.has(a)){e=!0;break}}if(e){var s=Object(o.f)(r,r.page_id),c=Object(i.a)(r),l=c.DEFAULT_REVIEW_SORT_ORDER,u=c.REVIEWS_PER_PAGE;Object(o.c)(h,r.page_id,{filters:s,sorts:l?[d.a[l.toLowerCase()].sort]:[],pageSize:u}).then(function(e){var t;(null===(t=window.POWERREVIEWS)||void 0===t?void 0:t.display)&&Object.defineProperty(window.POWERREVIEWS.display,"reviews",{configurable:!0,enumerable:!1,get:function(){return console.warn('[Powerreviews] Unsupported access to internal property: "POWERREVIEWS.display.reviews"'),e},set:function(){}}),O(!0)})}else O(!0)}},[b,E,S.reviewTranslationEnabled,r,h]),!1===E?null:a.a.createElement(f.Provider,{value:S},"function"==typeof s?s():s)}function v(e){void 0===e&&(e=!1);var t=a.a.useContext(f);if(void 0===t)throw new Error("useConfig must be used within a ConigProvider");var r=t.config,n=t.merchantProperties;return Object(i.a)(n,r,e)}r.d(t,"a",function(){return f}),r.d(t,"b",function(){return h}),r.d(t,"c",function(){return v})},function(e,t,r){"use strict";r.d(t,"a",function(){return m}),r.d(t,"b",function(){return h});var n=r(8),a=r.n(n),i=r(16),o=r.n(i),s=r(2),c=r.n(s),l=r(0),u=r.n(l),p=r(28);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){c()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function m(e){var t=e.src,r=o()(e,["src"]),n=Object(p.d)(t,"jpg");return u.a.createElement("picture",null,u.a.createElement("source",{type:"image/webp",srcSet:Object(p.d)(t,".webp")}),u.a.createElement("source",{type:"image/jxr",srcSet:Object(p.d)(t,".jxr")}),u.a.createElement("img",a()({alt:r.alt},r,{ref:function(e){e&&e.src!==n&&(e.src=n)}})))}function h(e){var t=e.src,r=o()(e,["src"]);return u.a.createElement("video",r,u.a.createElement("source",{type:"video/webm",src:Object(p.d)(t,".webm")}),u.a.createElement("source",{type:"video/mp4",src:Object(p.d)(t,".mp4")}))}m.urlFromMedia=function(e,t,r){void 0===r&&(r={});var n="number"==typeof t?{height:t,width:t}:t,a=n.height,i=n.width;return r=f(f({},r),{},{height:a,width:i,format:null}),"cvideo"===e.type?p.b.libraryVideoUrl(e.image,r):p.b.libraryUrl(e.image,r)}},function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")()}).call(this,r(133))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){"use strict";function n(e){return!(!e||!/^[a-z][a-z]_\w/.test(e))}function a(e){if("string"==typeof e)switch(e=e.trim()){case"es_MX":case"zh_TW":case"fa_AF":case"fr_CA":return e.replace("_","-");default:var t=e.split("_");if(Array.isArray(t)&&t.length)return t[0]}}r.d(t,"a",function(){return n}),r.d(t,"b",function(){return a})},function(e,t,r){"use strict";var n=r(7),a=r.n(n),i=r(0),o=r.n(i),s=(r(9),function(e){function t(){return e.apply(this,arguments)||this}a()(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return e!==this.props},r.render=function(){return o.a.createElement("div",{className:this.props.isVisible?"pr-loading-indicator":"pr-loading-indicator pr-hide"})},t}(o.a.Component));t.a=s},function(e,t,r){e.exports={cloudinaryUploadBase:"//api.cloudinary.com/v1_1/powerreviews/auto/upload",cloudinaryDownloadBase:"https://media.powerreviews.com",local:{akamaiUIBase:"//localhost:3001",awsUIBase:"//localhost:3001",writeBase:"//devwriteservices.powerreviews.com",b2cReadBase:"//dev-origin-readservices-b2c-api.powerreviews.com",b2cReadOrigin:"//dev-origin-readservices-b2c-api.powerreviews.com",b2cReadProxy:"https://devui.powerreviews.com/api/",cloudinaryImagePreset:"dev_preset",cloudinaryVideoPreset:"dev_video_preset",trackingBase:"//t-dev.powerreviews.com",servicesBase:"//qaservices.powerreviews.com/JSController.do",uiPRBase:"//localhost:3001",versionFullJS:"local-fulljs-version.json",versionFile3:"local-3.0-version.json",versionFile4:"local-4.0-version.json",buildBase:""},develop:{akamaiUIBase:"//akaui.powerreviews.com",awsUIBase:"//ui.powerreviews.com",writeBase:"//devwriteservices.powerreviews.com",b2cReadBase:"//dev-origin-readservices-b2c-api.powerreviews.com",b2cReadOrigin:"//dev-origin-readservices-b2c-api.powerreviews.com",b2cReadProxy:"https://devui.powerreviews.com/api/",cloudinaryImagePreset:"dev_preset",cloudinaryVideoPreset:"dev_video_preset",trackingBase:"//t-dev.powerreviews.com",servicesBase:"//qaservices.powerreviews.com/JSController.do",uiPRBase:"//ui.powerreviews.com/develop",versionFullJS:"develop-fulljs-version.json",versionFile3:"develop-3.0-version.json",versionFile4:"develop-4.0-version.json",buildBase:"develop-builds"},release:{akamaiUIBase:"//akaui.powerreviews.com",awsUIBase:"//ui.powerreviews.com",writeBase:"//qawriteservices.powerreviews.com",b2cReadBase:"//qa-origin-readservices-b2c-api.powerreviews.com",b2cReadOrigin:"//qa-origin-readservices-b2c-api.powerreviews.com",b2cReadProxy:"https://qaui.powerreviews.com/api/",cloudinaryImagePreset:"qa_preset",cloudinaryVideoPreset:"qa_video_preset",trackingBase:"//t-qa.powerreviews.com",servicesBase:"//qaservices.powerreviews.com/JSController.do",uiPRBase:"//ui.powerreviews.com/release",versionFullJS:"release-fulljs-version.json",versionFile3:"release-3.0-version.json",versionFile4:"release-4.0-version.json",buildBase:"release-builds"},stable:{akamaiUIBase:"//akaui.powerreviews.com",awsUIBase:"//ui.powerreviews.com",writeBase:"//writeservices.powerreviews.com",b2cReadBase:"//display.powerreviews.com",b2cReadOrigin:"//origin-readservices-b2c-api.powerreviews.com",b2cReadProxy:"https://ui.powerreviews.com/api/",cloudinaryImagePreset:"prod_preset",cloudinaryVideoPreset:"prod_video_preset",trackingBase:"//t.powerreviews.com",servicesBase:"//services.powerreviews.com/JSController.do",uiPRBase:"//ui.powerreviews.com/stable",versionFullJS:"stable-fulljs-version.json",versionFile3:"stable-3.0-version.json",versionFile4:"stable-4.0-version.json",buildBase:"tag-builds"}}},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),e.raw=t,e}},function(e,t,r){"use strict";t.a={UPDATE_FIELD:"UPDATE_FIELD",LOADED:"LOADED",COMPLETE:"COMPLETE",SUBMISSION_ERROR:"SUBMISSION_ERROR"}},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(0),o=r.n(i),s=(r(9),r(372),o.a.forwardRef(function(e,t){var r=e.type,n=e.message,i=e.isVisible,s="pr-alert pr-alert-"+r,c="string"==typeof n?{dangerouslySetInnerHTML:{__html:n||""}}:{children:n};return o.a.createElement("div",{role:"alert","aria-atomic":"true",ref:t},i?o.a.createElement("div",{className:"pr-alert-container"},o.a.createElement("div",a()({className:s},c))):null)}));s.defaultProps={type:"danger"},t.a=s},function(e,t,r){"use strict";r.r(t),r.d(t,"dataTypes",function(){return v}),r.d(t,"urlQueryConstructor",function(){return g}),r.d(t,"getContent",function(){return _}),r.d(t,"get",function(){return w});var n=r(5),a=r(24),i=r(270),o=r.n(i),s=r(65),c=r.n(s),l=r(30),u=r(47),p=o()(c.a,pwrPromise),d=document.location.protocol&&document.location.protocol.indexOf("http")>-1?document.location.protocol:"http:",f=d+(Object(a.a)()||"//display.powerreviews.com"),m=d+(Object(a.a)()||"//origin-readservices-b2c-api.powerreviews.com"),h=function(e,t){return Object(a.a)(e)?d+Object(a.a)(e).b2cReadBase:t},v={REVIEW:"review",QUESTION:"question",PRODUCT:"product",CATEGORY:"category"};function g(e,t){var r=[],a=Object(n.b)("nocache",t),i=t.page_id,o=t.review_id,s=t.read_services_base_url,c=t.sorts,p=t.merchant_id,d=t.filter,v=t.filters,g=t.locale,b=t.newFilters,y=t.pwrPageSize,_=t.category,w=t.hashtags,E=t.noConfig,O=""+h(s,f);!0===a&&(O=""+h(s,m),r.push("_nocache=true"));var S="en_US";if(!0===l.a.getItem("reviewTranslationEnabled")&&"reviews"===e?(S="all",r.push("page_locale="+g)):Object(u.a)(g)&&(S=g),O+="/m/"+p+"/l/"+S,o?O+="/review/"+o+"?":(i&&(O+="/product/"+encodeURIComponent(i)),O+="/"+e+"?"),t.wdyb&&(O+="wdyb=true&"),c&&c.length>0){var C=c.filter(function(e){return"created_date"!==e.type||1===c.length}).pwrMap(function(e){if("string"==typeof e)return e;switch(e.type){case"rating":return"asc"===e.order?"LowestRating":"HighestRating";case"helpful_votes":return"MostHelpful";case"created_date":return"asc"===e.order?"Oldest":"Newest";case"answer_count":return"MostAnswers";case"mediasort":return"MediaSort";default:return null}}).join(",");r.push("sort="+C)}if(v&&Array.isArray(v)&&v.length>0)if(b){var j=[],x=v.pwrReduce(function(e,t){return e[t.attribute]?e[t.attribute].push(t.value):e[t.attribute]=[t.value],e},{});Object.keys(x).forEach(function(e){"search"===e&&x[e][0].length?r.push("search="+encodeURIComponent(x[e][0])):"variant"===e?r.push("variant="+encodeURIComponent(x[e][0])):"native_only"===e?r.push("native_only="+encodeURIComponent(x[e][0])):j.push(e+":"+encodeURIComponent(x[e].join("||")))}),j.length&&r.push("filters="+j.join(","))}else{var k=[];v.forEach(function(e){if("search"===e.operation&&e.value.length)r.push("search="+encodeURIComponent(e.value));else if("="===e.operation){var t=e.value.length>1?e.value.join("||"):e.value;k.push(e.attribute+":"+encodeURIComponent(t))}else"variant"===e.operation&&k.push(e.attribute+":"+encodeURIComponent(e.value))}),k.length&&r.push("filters="+k.join(","))}return d&&r.push("filter="+d),y&&r.push("paging.size="+y),_&&r.push("category="+_),w&&r.push("hashtags="+w),!0===E&&r.push("_noconfig=true"),""+O+r.join("&")}var b=function(e,t,r){if(!0===Object(n.b)("api_authorization",r))return p(e,t).set("Authorization",r.api_key).end();var a=t;return a.indexOf("apikey")<0&&(a.indexOf("?")<0&&(a+="?"),a+="&apikey="+r.api_key),p(e,a)},y={};function _(e,t,r){var n=g(e.toLowerCase(),t),a="number"==typeof r;if(a&&y[n]){var i=y[n],o=i.timestamp,s=i.error,c=i.payload;if(Date.now()-o<r)return!0===s?pwrPromise.reject(c):!1===s?pwrPromise.resolve(c):c}var l=b("GET",n,t).then(function(e){return a&&(y[n]={payload:e.body,error:!1,timestamp:Date.now()}),e.body},function(e){a&&(y[n]={payload:e,error:!0,timestamp:Date.now()}),console.log(e)});return y[n]={payload:l,error:null,timestamp:Date.now()},l}function w(e,t){var r=e?""+h(t.read_services_base_url,f)+e:h(t.read_services_base_url,f)+"/search";if(t.noConfig){var n=new URL(r);n.searchParams.set("_noconfig",!0),r=n.toString()}return b("GET",r,t).then(function(e){return e.body},function(e){console.log(e)})}},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(16),o=r.n(i),s=r(0),c=r.n(s),l=r(10),u=r.n(l),p=function(e){var t=e.className,r=o()(e,["className"]);return c.a.createElement("svg",a()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",className:u()("pr-icon pr-icon-chevron",t)},r),c.a.createElement("path",{fill:"none",strokeLinecap:"square",strokeLinejoin:"round",strokeWidth:"2",d:"M15 19l-7-7 7-7"}))},d=function(e){var t=e.className,r=o()(e,["className"]);return c.a.createElement("svg",a()({version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 216 146",enableBackground:"new 0 0 216 146","aria-hidden":"true",focusable:"false",className:u()("pr-icon pr-icon-flag",t)},r),c.a.createElement("g",null,c.a.createElement("path",{d:"M55.4,13.5c-2-2-4.5-3.1-7.4-3.1c-2.9,0-5.3,1-7.4,3.1c-2,2-3.1,4.5-3.1,7.4c0,3.9,1.7,6.9,5.2,9V133c0,0.7,0.3,1.3,0.8,1.8c0.5,0.5,1.1,0.8,1.8,0.8h5.2c0.7,0,1.3-0.3,1.8-0.8c0.5-0.5,0.8-1.1,0.8-1.8V29.8c3.5-2.1,5.2-5.1,5.2-9C58.5,18,57.4,15.5,55.4,13.5z"}),c.a.createElement("path",{d:"M176.8,22.4c-1-1-2.3-1.5-3.7-1.5c-0.7,0-2.2,0.6-4.4,1.7s-4.6,2.4-7.2,3.8c-2.5,1.4-5.5,2.7-9,3.8c-3.4,1.1-6.6,1.7-9.6,1.7c-2.7,0-5.1-0.5-7.2-1.5c-6.8-3.2-12.8-5.6-17.8-7.2c-5.1-1.6-10.5-2.4-16.3-2.4c-10,0-21.5,3.3-34.3,9.8c-3.2,1.6-5.3,2.7-6.4,3.5c-1.7,1.2-2.5,2.7-2.5,4.5v60.5c0,1.4,0.5,2.6,1.5,3.7c1,1,2.3,1.5,3.7,1.5c0.9,0,1.8-0.2,2.7-0.7c14.8-7.9,27.4-11.9,37.8-11.9c4,0,7.8,0.6,11.6,1.8c3.8,1.2,6.9,2.5,9.4,3.9c2.5,1.4,5.4,2.7,8.8,3.9c3.4,1.2,6.8,1.8,10.1,1.8c8.4,0,18.4-3.1,30.1-9.4c1.5-0.8,2.5-1.5,3.2-2.2s1-1.8,1-3.1V26.1C178.4,24.7,177.9,23.4,176.8,22.4z"})))},f=function(e){var t=e.className,r=o()(e,["className"]);return c.a.createElement("svg",a()({viewBox:"0 0 84 85","aria-hidden":"true",focusable:"false",className:u()("pr-icon pr-icon-logo",t)},r),c.a.createElement("g",{fill:"none",stroke:"none"},c.a.createElement("path",{d:"M44.378 25.846h-9.384v14.256h9.384c4.51 0 7.577-2.587 7.577-7.098 0-4.51-3.066-7.158-7.577-7.158zm.36 20.15h-9.744v16.839H28.5V23.25c0-1.677 1.59-3.237 3.332-3.237h12.906c8.362 0 13.715 5.534 13.715 12.991 0 7.459-5.353 12.993-13.715 12.993z",fill:"#888787"}),c.a.createElement("path",{d:"M59.328 62.839l-9.852-14.175s-1.098.529-4.42.529h-3.201l9.39 13.655 8.083-.01",fill:"#888787"}),c.a.createElement("path",{d:"M6.263 42.286c-.023-8.942 2.839-16.655 8.688-23.419l-4.737-4.097C3.338 22.72-.026 31.79 0 42.3c.06 23.154 18.878 41.877 42.03 41.818l-.015-6.255c-19.695.046-35.702-15.88-35.752-35.577",fill:"#75C6B8"}),c.a.createElement("path",{d:"M77.261 47.07C74.814 64.809 59.924 77.818 42.02 77.864h-.005l.015 6.255c21.047-.054 38.549-15.346 41.425-36.194l-6.194-.855",fill:"#FBB817"}),c.a.createElement("path",{d:"M64.05 6.584L60.748 11.9l.005.002C72.916 19.46 79.217 32.883 77.26 47.07l6.194.855c2.3-16.675-5.107-32.456-19.405-41.34",fill:"#53C7E6"}),c.a.createElement("path",{d:"M60.748 11.899l3.302-5.315c-10.719-6.66-22.427-8.17-34.485-4.452l1.846 5.984.004-.001C41.67 4.95 51.63 6.235 60.748 11.899",fill:"#8AC734"}),c.a.createElement("path",{d:"M31.411 8.116l-1.846-5.984c-8.03 2.479-13.853 6.28-19.35 12.638l4.736 4.097.002-.001c4.676-5.409 9.628-8.642 16.458-10.75",fill:"#F05E24"})))},m=function(e){var t=e.className,r=o()(e,["className"]);return c.a.createElement("svg",a()({version:"1.1",x:"0px",y:"0px",viewBox:"0 0 216 146",xmlSpace:"preserve",focusable:"false","aria-hidden":"true",className:u()("pr-icon pr-icon-thumb",t)},r),c.a.createElement("g",null,c.a.createElement("path",{d:"M168.7,79.9c3-3.4,4.5-7.5,4.5-12.1c0-4.2-1.6-7.9-4.6-11c-3.1-3.1-6.8-4.6-11-4.6H135 c0.2-0.8,0.4-1.4,0.7-2s0.5-1.1,0.9-1.8s0.7-1.1,0.8-1.5c1-1.8,1.7-3.4,2.2-4.6c0.5-1.2,1-2.8,1.5-4.9c0.5-2.1,0.8-4.1,0.8-6.2 c0-1.3,0-2.4,0-3.2c0-0.8-0.2-2-0.4-3.7c-0.2-1.6-0.6-3-1-4.1c-0.4-1.1-1.1-2.3-2-3.7c-0.9-1.4-2-2.5-3.3-3.3s-2.9-1.5-4.9-2.1 c-2-0.6-4.2-0.9-6.7-0.9c-1.4,0-2.6,0.5-3.7,1.5c-1.1,1.1-2,2.4-2.8,4.1c-0.8,1.6-1.3,3-1.6,4.2c-0.3,1.2-0.6,2.9-1,5 c-0.5,2.3-0.9,3.9-1.1,4.9c-0.2,1-0.7,2.3-1.4,4c-0.7,1.6-1.5,2.9-2.5,3.9c-1.8,1.8-4.5,5.1-8.2,9.8c-2.7,3.5-5.4,6.8-8.2,9.9 c-2.8,3.1-4.9,4.7-6.2,4.8c-1.4,0.1-2.5,0.7-3.5,1.7s-1.5,2.2-1.5,3.5v52.2c0,1.4,0.5,2.6,1.5,3.6s2.3,1.5,3.7,1.6 c1.9,0.1,6.2,1.2,12.9,3.6c4.2,1.4,7.5,2.5,9.8,3.2c2.4,0.7,5.7,1.5,9.9,2.4c4.2,0.8,8.1,1.3,11.7,1.3h1.4h6.2h2.9 c7.2-0.1,12.6-2.2,16.1-6.4c3.1-3.7,4.5-8.7,4-14.7c2.1-2,3.6-4.6,4.4-7.7c0.9-3.3,0.9-6.5,0-9.5c2.5-3.3,3.7-7,3.5-11.2 C169.9,84.4,169.5,82.3,168.7,79.9z"}),c.a.createElement("path",{d:"M71.5,62.6H48c-1.4,0-2.6,0.5-3.7,1.5s-1.5,2.3-1.5,3.7v52.1c0,1.4,0.5,2.6,1.5,3.7c1,1,2.3,1.5,3.7,1.5 h23.5c1.4,0,2.6-0.5,3.7-1.5c1-1,1.5-2.3,1.5-3.7V67.8c0-1.4-0.5-2.6-1.5-3.7C74.1,63.1,72.9,62.6,71.5,62.6z M62.1,113.2 c-1,1-2.3,1.5-3.7,1.5c-1.5,0-2.7-0.5-3.7-1.5c-1-1-1.5-2.2-1.5-3.7c0-1.4,0.5-2.6,1.5-3.7c1-1,2.2-1.5,3.7-1.5 c1.4,0,2.6,0.5,3.7,1.5c1,1,1.5,2.3,1.5,3.7C63.7,111,63.2,112.2,62.1,113.2z"})))},h=function(e){var t=e.className,r=o()(e,["className"]);return c.a.createElement("svg",a()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",className:u()("pr-icon pr-icon-x",t)},r),c.a.createElement("path",{stroke:"none",fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))};r.d(t,"a",function(){return p}),r.d(t,"b",function(){return d}),r.d(t,"c",function(){return f}),r.d(t,"d",function(){return m}),r.d(t,"e",function(){return h})},function(e,t,r){var n;!function(a){"use strict";var i=function(){var e=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,t=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,r=/[^-+\dA-Z]/g;return function(n,a,s,c){if(1!==arguments.length||"string"!==function(e){if(null===e)return"null";if(void 0===e)return"undefined";if("object"!=typeof e)return typeof e;if(Array.isArray(e))return"array";return{}.toString.call(e).slice(8,-1).toLowerCase()}(n)||/\d/.test(n)||(a=n,n=void 0),(n=n||new Date)instanceof Date||(n=new Date(n)),isNaN(n))throw TypeError("Invalid date");var l=(a=String(i.masks[a]||a||i.masks.default)).slice(0,4);"UTC:"!==l&&"GMT:"!==l||(a=a.slice(4),s=!0,"GMT:"===l&&(c=!0));var u=s?"getUTC":"get",p=n[u+"Date"](),d=n[u+"Day"](),f=n[u+"Month"](),m=n[u+"FullYear"](),h=n[u+"Hours"](),v=n[u+"Minutes"](),g=n[u+"Seconds"](),b=n[u+"Milliseconds"](),y=s?0:n.getTimezoneOffset(),_=function(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var r=new Date(t.getFullYear(),0,4);r.setDate(r.getDate()-(r.getDay()+6)%7+3);var n=t.getTimezoneOffset()-r.getTimezoneOffset();t.setHours(t.getHours()-n);var a=(t-r)/6048e5;return 1+Math.floor(a)}(n),w=function(e){var t=e.getDay();0===t&&(t=7);return t}(n),E={d:p,dd:o(p),ddd:i.i18n.dayNames[d],dddd:i.i18n.dayNames[d+7],m:f+1,mm:o(f+1),mmm:i.i18n.monthNames[f],mmmm:i.i18n.monthNames[f+12],yy:String(m).slice(2),yyyy:m,h:h%12||12,hh:o(h%12||12),H:h,HH:o(h),M:v,MM:o(v),s:g,ss:o(g),l:o(b,3),L:o(Math.round(b/10)),t:h<12?"a":"p",tt:h<12?"am":"pm",T:h<12?"A":"P",TT:h<12?"AM":"PM",Z:c?"GMT":s?"UTC":(String(n).match(t)||[""]).pop().replace(r,""),o:(y>0?"-":"+")+o(100*Math.floor(Math.abs(y)/60)+Math.abs(y)%60,4),S:["th","st","nd","rd"][p%10>3?0:(p%100-p%10!=10)*p%10],W:_,N:w};return a.replace(e,function(e){return e in E?E[e]:e.slice(1,e.length-1)})}}();function o(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e}i.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},i.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},void 0===(n=function(){return i}.call(t,r,t,e))||(e.exports=n)}()},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(115),a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},function(e,t,r){var n=r(71),a=r(46),i=r(57),o=Object.defineProperty,s={},c=function(e){throw e};e.exports=function(e,t){if(i(s,e))return s[e];t||(t={});var r=[][e],l=!!i(t,"ACCESSORS")&&t.ACCESSORS,u=i(t,0)?t[0]:c,p=i(t,1)?t[1]:void 0;return s[e]=!!r&&!a(function(){if(l&&!n)return!0;var e={length:-1};l?o(e,1,{enumerable:!0,get:c}):e[1]=1,r.call(e,u,p)})}},function(e,t,r){"use strict";var n=r(143),a=r(144),i=Object(a.a)(),o=function(e,t){return t instanceof n.a?t.toString():t},s=function(e){return e.pwrMap(function(e){return JSON.stringify(e,o)}).join("$")};function c(e,t){void 0===t&&(t=s);var r=new Map;return function(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];var s=t(a);if(r.has(s)){var c=r.get(s),l=c.status,u=c.payload;switch(l){case"pending":var p;return new pwrPromise(function(e,t){p=function(r){var n=r.status,a=r.payload;return i.off(s,p),"fulfilled"===n?e(a):t(a)},i.on(s,p)});case"fulfilled":return pwrPromise.resolve(u);case"rejected":return pwrPromise.reject(u);default:throw new Error}}return r.set(s,{status:"pending"}),e.apply(void 0,a).then(function(e){var t={status:"fulfilled",payload:e};return r.set(s,t),i.emit(s,t),e}).catch(function(e){var t={status:"rejected",payload:e};throw r.set(s,t),i.emit(s,t),e})}}var l=r(2),u=r.n(l),p=r(30);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var f=function(e,t,r){var n=void 0===r?{}:r,a=n.sorts,i=n.filters,o=n.pageSize,s=n.localeOverride,c=!0,l={page_id:t},f=!1;null!=s&&(l.locale=s,c="all"===s),!0===p.a.getItem("reviewTranslationEnabled")&&(l.locale="all",f=!0);var m=e.init("/m/{merchant_id}/l/{locale}/product/{page_id}/reviews",l,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){u()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({_noconfig:c,page_locale:f?"{locale}":null,"paging.size":o,sort:function(e){if(e&&e.length>0)return e.filter(function(t){return"created_date"!==t.type||1===e.length}).pwrMap(function(e){if("string"==typeof e)return e;switch(e.type){case"rating":return"asc"===e.order?"LowestRating":"HighestRating";case"helpful_votes":return"MostHelpful";case"created_date":return"asc"===e.order?"Oldest":"Newest";case"mediasort":return"MediaSort";default:return null}}).join(",");return}(a)},function(e){var t={};if(Array.isArray(e)&&e.length>0){var r=[],n=e.pwrReduce(function(e,t){return e[t.attribute]?e[t.attribute].push(t.value):e[t.attribute]=[t.value],e},{});Object.keys(n).forEach(function(e){"search"===e&&n[e][0].length?t.search=n[e][0]:"variant"===e?t.variant=n[e][0]:"native_only"===e?t.native_only=n[e][0]:r.push(e+":"+n[e].join("||"))}),r.length&&(t.filters=r.join(","))}return t}(i))),h=m.url,v=m.headers;return fetch(h,{method:"GET",headers:v}).then(e.checkResponseStatus).then(function(e){return e.json()})};function m(e,t){var r,n="review_"+t+"_filters";if(window.location.search){var a=new URLSearchParams(window.location.search);r=a.get("pr_"+n)||a.get("pr_"+n.toUpperCase())}return null==r&&(r=e[n]||e[n.toUpperCase()]||e["pr_"+n]||e["pr_"+n.toUpperCase()]),r?decodeURIComponent(r).split(",").pwrReduce(function(e,t){var r=t.split(":");return"search"===r[0]||"rating"===r[0]?e:(r[1].split("||").forEach(function(t){e.push({attribute:r[0],value:t})}),e)},[]):null}f=c(f,JSON.stringify);var h=r(22);function v(e,t){var r=t.review_id,n=e.init("/m/{merchant_id}/l/{locale}/review/{review_id}",{review_id:r},{_noconfig:!0}),a=n.url,i=n.headers;return fetch(a,{method:"GET",headers:i}).then(e.checkResponseStatus).then(function(e){return e.json()}).then(function(e){return Object(h.e)(e.results)[0]})}function g(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a={pageIds:encodeURIComponent(r.join(","))},i={_noconfig:!0};!0===p.a.getItem("reviewTranslationEnabled")&&(a.locale="all",i.page_locale="{locale}");var o=e.init("/m/{merchant_id}/l/{locale}/product/{pageIds}/snippet",a,i),s=o.url,c=o.headers;return fetch(s,{method:"GET",headers:c}).then(e.checkResponseStatus).then(function(e){return e.json()})}g=c(g),r.d(t,"b",function(){return c}),r.d(t,"a",function(){return n.a}),r.d(t,"c",function(){return f}),r.d(t,"f",function(){return m}),r.d(t,"d",function(){return v}),r.d(t,"e",function(){return g})},function(e,t,r){"use strict";var n=r(0),a=r.n(n),i=(r(9),function(e){return a.a.createElement("span",{className:"pr-caret-icon"},a.a.createElement("svg",{viewBox:"-9 -10 52 52",focusable:"false"},a.a.createElement("g",null,a.a.createElement("polyline",{className:"pr-caret-icon__line",fill:"none",stroke:e.strokeColor,strokeWidth:e.lineStrokeSize,points:"23.7,31.5 8.3,16 23.7,0.5 "}),e.circleOutline&&a.a.createElement("circle",{className:"pr-caret-icon__circle",cx:"17",cy:"16",r:"25",stroke:e.strokeColor,strokeWidth:e.circleStrokeSize,fill:e.fillColor}))))});i.defaultProps={circleOutline:!0,fillColor:"none",strokeColor:"#333",lineStrokeSize:"2",circleStrokeSize:"2"},t.a=i},function(e,t,r){"use strict";var n=r(0),a=r.n(n),i=(r(9),function(e){return a.a.createElement("span",{className:"pr-cross-icon"},a.a.createElement("svg",{viewBox:"9.5 9.5 21 21",focusable:"false"},a.a.createElement("g",{className:"pr-cross-icon__group"},e.circleOutline&&a.a.createElement("circle",{className:"pr-cross-icon__circle",cx:"20",cy:"20",r:"10",stroke:e.strokeColor,strokeWidth:e.circleStrokeSize,fill:e.fillColor}),a.a.createElement("line",{className:"pr-cross-icon__line",x1:"15",y1:"15",x2:"25",y2:"25",stroke:e.strokeColor,strokeWidth:e.lineStrokeSize}),a.a.createElement("line",{className:"pr-cross-icon__line",x1:"25",y1:"15",x2:"15",y2:"25",stroke:e.strokeColor,strokeWidth:e.lineStrokeSize}))))});i.defaultProps={circleOutline:!0,fillColor:"none",strokeColor:"#333",lineStrokeSize:"2",circleStrokeSize:"1"},t.a=i},function(e,t,r){var n=r(177);e.exports=function(e){return Object(n(e))}},function(e,t,r){"use strict";var n=r(3),a=r.n(n),i=r(7),o=r.n(i),s=r(2),c=r.n(s),l=r(0),u=r.n(l),p=(r(9),r(83)),d=r(1),f=r(18),m=function(e){function t(t){var r;return r=e.call(this,t)||this,c()(a()(r),"TermsCheckbox",u.a.createRef()),r.state={termsHasError:!1,areTermsAccepted:!1},r._onClick=r._onClick.pwrBind(a()(r)),r._showLegal=r._showLegal.pwrBind(a()(r)),r}o()(t,e);var r=t.prototype;return r._showLegal=function(){return this.props.showLegal&&this.props.legalText&&!this.props.config.testenv?u.a.createElement("p",{className:"pr-subscript",dangerouslySetInnerHTML:{__html:this.props.legalText}}):null},r._showLogo=function(){if(this.props.showLogo&&this.props.logoText){var e=this.props.logoText||"";return u.a.createElement("a",{href:"http://www.powerreviews.com",target:"_blank",rel:"noopener noreferrer"},u.a.createElement("div",{className:"pr-logo-container pr-pull-right"},u.a.createElement("div",{className:"pr-powered pr-pull-left"},u.a.createElement("span",null,e)),u.a.createElement("div",{className:"pr-logo pr-pull-right"},u.a.createElement(p.a,{"aria-label":"PowerReviews"}))))}return null},r._onClick=function(e){var t=this;"function"==typeof this.props.onClick&&(this.props.mustAcceptTerms?this.state.areTermsAccepted?this.setState({termsHasError:!1},function(){t.props.onClick(e)}):this.setState({termsHasError:!0},function(){t.TermsCheckbox.current.focus()}):this.props.onClick(e))},r._onTermsClick=function(){this.state.areTermsAccepted?this.setState({areTermsAccepted:!1,termsHasError:!0}):this.setState({areTermsAccepted:!0,termsHasError:!1})},r._onTermsKeyDown=function(e){13===e.keyCode&&this._onTermsClick()},r.render=function(){return u.a.createElement("div",{className:"pr-submit"},this.props.mustAcceptTerms&&u.a.createElement("div",{className:"pr-checkbox"+(this.state.termsHasError?" pr-has-error":""),style:{marginBottom:"15px"}},u.a.createElement(f.b,null,u.a.createElement("label",{ref:this.TermsCheckbox,className:"pr-control-label"},u.a.createElement("input",{type:"checkbox",onKeyDown:this._onTermsKeyDown.pwrBind(this),onChange:this._onTermsClick.pwrBind(this),checked:this.state.areTermsAccepted,required:!0,"aria-invalid":!this.state.areTermsAccepted}),u.a.createElement("span",null,Object(d.a)("agree_with_terms",this.props.localizations.powerreviews))),this.state.termsHasError?u.a.createElement(f.a,null):null)),u.a.createElement("div",{className:this.props.usePRFooterClass?"pr-footer":""},this._showLegal(),u.a.createElement("button",{type:"submit",className:"pr-pull-left pr-btn pr-btn-default pr-btn-review pr-accessible-btn "+(this.props.disabled?"disabled":""),disabled:this.props.disabled,onClick:this._onClick},this.props.children),this._showLogo(),u.a.createElement("div",{className:"pr-clearfix"})))},t}(u.a.Component);m.defaultProps={config:{},showLogo:!1,showLegal:!1,logoText:"Powered by: ",legalText:"",disabled:!1,mustAcceptTerms:!1,usePRFooterClass:!1},t.a=m},function(e,t,r){var n=r(366),a=r(367),i="undefined"==typeof window?this:window;function o(){}var s="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function c(e){return e===Object(e)}function l(e){if(!c(e))return e;var t=[];for(var r in e)null!=e[r]&&t.push(encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t.join("&")}function u(e){for(var t,r={},n=e.split("&"),a=0,i=n.length;a<i;++a)t=n[a].split("="),r[decodeURIComponent(t[0])]=decodeURIComponent(t[1]);return r}function p(e,t){t=t||{},this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!=this.req.method?this.xhr.responseText:null,this.setStatusProperties(this.xhr.status),this.header=this.headers=function(e){var t,r,n,a,i=e.split(/\r?\n/),o={};i.pop();for(var c=0,l=i.length;c<l;++c)t=(r=i[c]).indexOf(":"),n=r.slice(0,t).toLowerCase(),a=s(r.slice(t+1)),o[n]=a;return o}(this.xhr.getAllResponseHeaders()),this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this.setHeaderProperties(this.header),this.body="HEAD"!=this.req.method?this.parseBody(this.text):null}function d(e,t){var r=this;n.call(this),this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",function(){var e=null,t=null;try{t=new p(r)}catch(t){(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=t}r.callback(e,t)})}function f(e,t){return"function"==typeof t?new d("GET",e).end(t):1==arguments.length?new d("GET",e):new d(e,t)}f.serializeObject=l,f.parseString=u,f.types={html:"text/html",json:"application/json",xml:"application/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},f.serialize={"application/x-www-form-urlencoded":l,"application/json":JSON.stringify},f.parse={"application/x-www-form-urlencoded":u,"application/json":JSON.parse},p.prototype.get=function(e){return this.header[e.toLowerCase()]},p.prototype.setHeaderProperties=function(e){var t=this.header["content-type"]||"";this.type=function(e){return e.split(/ *; */).shift()}(t);var r=function(e){return a(e.split(/ *; */),function(e,t){var r=t.split(/ *= */),n=r.shift(),a=r.shift();return n&&a&&(e[n]=a),e},{})}(t);for(var n in r)this[n]=r[n]},p.prototype.parseBody=function(e){var t=f.parse[this.type];return t&&e&&e.length?t(e):null},p.prototype.setStatusProperties=function(e){var t=e/100|0;this.status=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.accepted=202==e,this.noContent=204==e||1223==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.notFound=404==e,this.forbidden=403==e},p.prototype.toError=function(){var e=this.req,t=e.method,r=e.url,n="cannot "+t+" "+r+" ("+this.status+")",a=new Error(n);return a.status=this.status,a.method=t,a.url=r,a},f.Response=p,n(d.prototype),d.prototype.use=function(e){return e(this),this},d.prototype.timeout=function(e){return this._timeout=e,this},d.prototype.clearTimeout=function(){return this._timeout=0,clearTimeout(this._timer),this},d.prototype.abort=function(){if(!this.aborted)return this.aborted=!0,this.xhr.abort(),this.clearTimeout(),this.emit("abort"),this},d.prototype.set=function(e,t){if(c(e)){for(var r in e)this.set(r,e[r]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},d.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},d.prototype.getHeader=function(e){return this._header[e.toLowerCase()]},d.prototype.type=function(e){return this.set("Content-Type",f.types[e]||e),this},d.prototype.accept=function(e){return this.set("Accept",f.types[e]||e),this},d.prototype.auth=function(e,t){var r=btoa(e+":"+t);return this.set("Authorization","Basic "+r),this},d.prototype.query=function(e){return"string"!=typeof e&&(e=l(e)),e&&this._query.push(e),this},d.prototype.field=function(e,t){return this._formData||(this._formData=new FormData),this._formData.append(e,t),this},d.prototype.attach=function(e,t,r){return this._formData||(this._formData=new FormData),this._formData.append(e,t,r),this},d.prototype.send=function(e){var t=c(e),r=this.getHeader("Content-Type");if(t&&c(this._data))for(var n in e)this._data[n]=e[n];else"string"==typeof e?(r||this.type("form"),r=this.getHeader("Content-Type"),this._data="application/x-www-form-urlencoded"==r?this._data?this._data+"&"+e:e:(this._data||"")+e):this._data=e;return t?(r||this.type("json"),this):this},d.prototype.callback=function(e,t){var r=this._callback;return this.clearTimeout(),2==r.length?r(e,t):e?this.emit("error",e):void r(t)},d.prototype.crossDomainError=function(){var e=new Error("Origin is not allowed by Access-Control-Allow-Origin");e.crossDomain=!0,this.callback(e)},d.prototype.timeoutError=function(){var e=this._timeout,t=new Error("timeout of "+e+"ms exceeded");t.timeout=e,this.callback(t)},d.prototype.withCredentials=function(){return this._withCredentials=!0,this},d.prototype.end=function(e){var t=this,r=this.xhr=function(){if(i.XMLHttpRequest&&("file:"!=i.location.protocol||!i.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}return!1}(),n=this._query.join("&"),a=this._timeout,s=this._formData||this._data;if(this._callback=e||o,r.onreadystatechange=function(){if(4==r.readyState)return 0==r.status?t.aborted?t.timeoutError():t.crossDomainError():void t.emit("end")},r.upload&&(r.upload.onprogress=function(e){e.percent=e.loaded/e.total*100,t.emit("progress",e)}),a&&!this._timer&&(this._timer=setTimeout(function(){t.abort()},a)),n&&(n=f.serializeObject(n),this.url+=~this.url.indexOf("?")?"&"+n:"?"+n),r.open(this.method,this.url,!0),this._withCredentials&&(r.withCredentials=!0),"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof s&&!function(e){switch({}.toString.call(e)){case"[object File]":case"[object Blob]":case"[object FormData]":return!0;default:return!1}}(s)){var c=f.serialize[this.getHeader("Content-Type")];c&&(s=c(s))}for(var l in this.header)null!=this.header[l]&&r.setRequestHeader(l,this.header[l]);return this.emit("request",this),r.send(s),this},f.Request=d,f.get=function(e,t,r){var n=f("GET",e);return"function"==typeof t&&(r=t,t=null),t&&n.query(t),r&&n.end(r),n},f.head=function(e,t,r){var n=f("HEAD",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},f.del=function(e,t){var r=f("DELETE",e);return t&&r.end(t),r},f.patch=function(e,t,r){var n=f("PATCH",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},f.post=function(e,t,r){var n=f("POST",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},f.put=function(e,t,r){var n=f("PUT",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},e.exports=f},function(e,t,r){"use strict";r.d(t,"a",function(){return u});var n=r(8),a=r.n(n),i=r(0),o=r.n(i),s=r(5),c=(window.io_min_flash_version=3e3,"pr-iovation"),l=function(){var e=!1;try{e=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(t){e=!(!navigator||!navigator.mimeTypes)&&void 0!==navigator.mimeTypes["application/x-shockwave-flash"]}return e}();function u(e){return function(t){var r=t.config,n=t.merchant,u=null===n||void 0===n?void 0:n.configuration,p=Object(i.useState)(),d=p[0],f=p[1];return Object(i.useEffect)(function(){null!=r&&null!=u&&f(function(e,t){var r=Object(s.a)(e,t),n=r.ENABLE_FRONT_END_IOVATION_VALIDATION,a=void 0===n||n;return"ru_RU"!==r.LOCALE&&a}(u,r))},[r,u]),Object(i.useEffect)(function(){if(d&&!document.getElementById(c)){var e=document.createElement("script");e.src="https://mpsnare.iesnare.com/snare.js",e.id=c;var t=document.getElementsByTagName("script")[0];t?t.parentNode.insertBefore(e,t):document.body.appendChild(e)}},[d]),Object(i.useEffect)(function(){if(d){var e,t=0;return l&&(e=setInterval(function(){var r=document.getElementById("stmgwb2");r?(r.setAttribute("aria-hidden","true"),clearInterval(e)):t>=5?clearInterval(e):t++},1e3)),function(){return e&&clearInterval(e)}}},[d]),o.a.createElement(e,a()({},t,{iovationRequired:d}))}}},function(e,t,r){"use strict";r.d(t,"b",function(){return n}),r.d(t,"a",function(){return a});var n="IN_PROGRESS",a="COMPLETE";t.c={PENDING:"PENDING",IN_PROGRESS:n,COMPLETE:a,OFF:"OFF"}},function(e,t,r){"use strict";var n=r(108),a=r(271),i=r.n(a),o=r(2),s=r.n(o),c=r(32),l=r(22),u=r(4),p=r(85),d=r(21);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){s()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var h={flaggedContent:[],helpfulContent:[],unhelpfulContent:[],localeOverride:null,merchantOverride:null,apiKeyOverride:null};function v(e,t){var r,n,a,i,o;switch(void 0===e&&(e=h),t.type){case d.d:return m(m({},e),{},((r={})[t.review_id]=m(m({},e[t.review_id]),{},{isLoading:!0}),r));case d.e:var s,f=t.response,v=f.configuration,g=(v=void 0===v?{}:v).localizations,b=v.properties,y=v.features,_=f.results,w=void 0===_?[]:_;return m(m({},e),{},((s={})[t.review_id]=m(m({},e[t.review_id]),{},{isLoading:!1,localizations:g,features:y,merchantProperties:b,review:Object(l.e)(w)[0]}),s));case d.b:case d.f:return m(m({},e),{},((n={})[t.productKey]=m(m({},e[t.productKey]),{},{isLoading:!0,sorts:[],filters:[]}),n));case d.c:var E,O=t.response,S=O.configuration,C=(S=void 0===S?{}:S).localizations,j=S.properties,x=S.features,k=O.paging,I=(k=void 0===k?{}:k).current_page_number,P=k.next_page_url,T=k.page_size,R=k.pages_total,N=k.total_results,A=O.results,D=void 0===A?[]:A,L=O.native_filter,M=D[0].rollup||{},F=t.urlFilters||[];return m(m({},e),{},((E={})[t.productKey]=m(m({},e[t.productKey]),{},{isLoading:!1,snippetLoaded:!0,reviewsLoaded:!0,currentPage:1,localizations:C,features:x,filters:F,merchantProperties:j,pagesLoaded:I,nextPage:P,pageSize:T,totalPages:R,totalReviews:N,media:Object(l.e)(Object(p.a)(M.media||[])).filter(function(e){return e.isVisible}),rollup:M,reviews:Object(l.e)(D[0].reviews||[]),initialNativeFilter:L}),E));case d.g:var z=t.response,V=z.configuration,U=(V=void 0===V?{}:V).localizations,q=V.properties,W=z.results,B=void 0===W?[]:W,H=t.config.batched_page_ids.pwrReduce(function(r,n){var a=Object(u.s)(m(m({},t.config),{},{page_id:n})),i=B.filter(function(e){return String(e.page_id)===String(n)})[0]||{};return r[a]=m(m({},e[a]),{},{isLoading:!1,snippetLoaded:!0,rollup:{review_count:0},localizations:U,merchantProperties:q},i),r},{});return m(m({},e),H);case d.l:return m(m({},e),{},((a={})[t.productKey]=m(m({},e[t.productKey]),{},{isLoading:!0}),a));case d.m:var K,G=t.response,Q=G.paging,Y=(Q=void 0===Q?{}:Q).current_page_number,$=Q.next_page_url,J=Q.page_size,X=Q.pages_total,Z=Q.total_results,ee=G.results,te=void 0===ee?[]:ee;return m(m({},e),{},((K={})[t.productKey]=m(m({},e[t.productKey]),{},{isLoading:!1,currentPage:1,sorts:t.sorts,filters:t.filters,pagesLoaded:Y,nextPage:$,pageSize:J,totalPages:X,totalReviews:Z,reviews:Object(l.e)(te[0].reviews||[])}),K));case d.k:return m(m({},e),{},((i={})[t.productKey]=m(m({},e[t.productKey]),{},{currentPage:Math.max(e[t.productKey].currentPage-1,1)}),i));case d.h:return m(m({},e),{},((o={})[t.productKey]=m(m({},e[t.productKey]),{},{currentPage:Math.min(e[t.productKey].currentPage+1,e[t.productKey].totalPages)}),o));case d.i:var re,ne=t.response,ae=ne.paging,ie=(ae=void 0===ae?{}:ae).current_page_number,oe=ae.next_page_url,se=ne.results,ce=void 0===se?[]:se;return m(m({},e),{},((re={})[t.productKey]=m(m({},e[t.productKey]),{},{isLoading:!1,currentPage:Math.min(e[t.productKey].currentPage+1,e[t.productKey].totalPages),pagesLoaded:ie,nextPage:oe,reviews:[].concat(e[t.productKey].reviews,Object(l.e)(ce[0].reviews||[]))}),re));case d.a:return m(m({},e),{},{flaggedContent:[].concat(e.flaggedContent,[t.flaggedID])});case d.n:var le=[].concat(e.helpfulContent),ue=[].concat(e.unhelpfulContent);return t.voteType===c.d?le.push(t.votedID):ue.push(t.votedID),m(m({},e),{},{helpfulContent:le,unhelpfulContent:ue});case d.j:return m(m({},e),{},{localeOverride:t.locale,merchantOverride:t.merchant_id,apiKeyOverride:t.api_key});default:return e}}var g=r(79);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){s()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var _={helpfulVotes:[],unhelpfulVotes:[]};function w(e,t){var r,n;switch(void 0===e&&(e=_),t.type){case g.b:return y(y({},e),{},((r={})[t.productKey]=y({sorts:[],filters:[],isLoading:!0,isQuestionSubmitted:!1},e[t.productKey]),r));case g.c:var a,i=t.response,o=i.paging,s=(o=void 0===o?{}:o).next_page_url,l=o.total_results,u=i.results,p=void 0===u?[]:u;return y(y({},e),{},((a={})[t.productKey]=y(y({},e[t.productKey]),{},{questionsLoaded:!0,isLoading:!1,sorts:t.sorts,filters:t.filters,nextPage:s,totalQuestions:l,overallTotalQuestions:e[t.productKey].overallTotalQuestions||l,questions:p||[]}),a));case g.a:var d,f=t.response,m=f.paging,h=(m=void 0===m?{}:m).next_page_url,v=f.results,b=void 0===v?[]:v;return y(y({},e),{},((d={})[t.productKey]=y(y({},e[t.productKey]),{},{isLoading:!1,nextPage:h,questions:[].concat(e[t.productKey].questions,b||[])}),d));case g.e:var w=[].concat(e.helpfulVotes),E=[].concat(e.unhelpfulVotes);return t.voteType===c.d?w.push(t.votedID):E.push(t.votedID),y(y({},e),{},{helpfulVotes:w,unhelpfulVotes:E});case g.d:return y(y({},e),{},((n={})[t.productKey]=y(y({},e[t.productKey]),{},{isQuestionSubmitted:!0}),n));default:return e}}var E=r(153),O={history:[]};function S(e,t){return void 0===e&&(e=O),{history:e.history.concat(t)}}var C=r(209),j=r(34),x=r(23),k=r(67),I=r(15);function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach(function(t){s()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var R={};function N(e,t){var r,n,a,i,o,s,c,l,u,p,d,f,m,h,v,g,b,y;switch(void 0===e&&(e=R),t.type){case I.l:return T(T({},e),{},((r={})[t.productKey]=T(T({},e[t.productKey]),{},{message:t.message}),r));case I.m:return T(T({},e),{},((n={})[t.productKey]=T(T({},e[t.productKey]),{},{submitError:!0,submitErrorMessage:t.message}),n));case I.t:return T(T({},e),{},((a={})[t.productKey]=T(T({},e[t.productKey]),{},{fields:t.fields}),a));case I.c:return T(T({},e),{},((i={})[t.productKey]={isLoading:!0,isSubmitting:!1,contextInformation:void 0,localizations:void 0,merchant:void 0,product:void 0,fields:[],media:[],fetchError:!1,fetchErrorType:null,fetchErrorMessage:null,submitError:!1,submitErrorType:null,submitErrorMessage:null,isReviewSubmitted:!1,isComplete:!1},i));case I.h:var _=t.body,w=_.product_information||t.feedlessProductInfo.name?T(T(T({},t.feedlessProductInfo),_.product_information),{},{image_url:(_.product_information||{}).full_product_image_urls?null:t.feedlessProductInfo.image_url}):{};return T(T({},e),{},((o={})[t.productKey]=T(T(T({},e[t.productKey]),_),{},{contextInformation:_.context_information||{},localizations:_.form_localizations||{},merchant:_.merchant_information||{},product:w,product_information:w,feedlessProductInfo:t.feedlessProductInfo,fields:t.fields.pwrMap(function(e){return e.choices&&e.values&&e.values.length&&e.choices.pwrMap(function(t){return t.checked=t.checked||t.id===e.values[0].id&&t.name===e.values[0].name,t}),e}),isLoading:!1,isSubmitting:t.isSubmitting}),o));case I.d:case I.e:case I.f:case I.g:var E;return t.type===I.d?E=x.a.DUPLICATE_REVIEW:t.type===I.e?E=x.a.INVALID_PARAMETER:t.type===I.f?E=x.a.MISSING_PARAMETER:t.type===I.g&&(E=x.a.FATAL_ERROR),T(T({},e),{},((s={})[t.productKey]=T(T({},e[t.productKey]),{},{isLoading:!1,fetchError:!0,fetchErrorType:E,fetchErrorMessage:t.body.message,fields:[]}),s));case I.n:return T(T({},e),{},((c={})[t.productKey]=T(T({},e[t.productKey]),{},{submitError:!1,submitErrorType:null,submitErrorMessage:null,isSubmitting:!0}),c));case I.r:return T(T({},e),{},((l={})[t.productKey]=T(T({},e[t.productKey]),{},{submittedFields:t.body.fields,contextInformation:t.body.context_information,isReviewSubmitted:!0,isSubmitting:!1}),l));case I.o:return T(T({},e),{},((u={})[t.productKey]=T(T(T({},e[t.productKey]),t.body),{},{isSubmitting:!1,submitError:!0,submitErrorType:x.a.FATAL_SUBMIT_REVIEW_FAILURE,submitErrorMessage:t.body.message,isLoading:!1}),u));case I.q:var O=t.body.fields.pwrReduce(function(e,t){return e[t.key]=t,e},{}),S=e[t.productKey].fields.pwrMap(function(e){var t=O[e.key],r=T({},e);if(t)r.submitted_value=t.value,r.error_message=t.error_message;else if("composite"===r.field_type&&Array.isArray(r.values)){var n=r.values.pwrMap(function(e){if("Image"===e.composite_type||"NativeVideo"===e.composite_type||"Video"===e.composite_type){var t="Video"===e.composite_type||"NativeVideo"===e.composite_type?e.key.replace("media_video","media_videourl"):e.key,r=O[t];if(r){var n=r.fields.filter(function(e){return"caption"===e.key})[0];e.error_message=n.error_message,e.submitted_caption=n.value}}return e});r.values=n}return r});return T(T({},e),{},((p={})[t.productKey]=T(T({},e[t.productKey]),{},{message:t.body.message,isSubmitting:!1,submitError:!0,submitErrorMessage:t.body.message,error:!0,isLoading:!1,fields:S,media:e[t.productKey].media.pwrMap(function(e){return T(T({},e),{},{hasError:t.body.fields.filter(function(t){return e.meta.key===t.key}).pwrMap(function(e){return e.fields}).pwrReduce(function(e,t){return e.concat(t)},[]).pwrMap(function(e){return!!e.error_message}).filter(function(e){return!0===e}).length>0})})}),p));case I.p:return T(T({},e),{},((d={})[t.productKey]=T(T(T({},e[t.productKey]),t.body),{},{message:t.body.message,isSubmitting:!1,submitError:!0,submitErrorType:x.a.FATAL_SUBMIT_REVIEW_FAILURE,submitErrorMessage:t.body.message,error:!0,isLoading:!1}),d));case I.b:return T(T({},e),{},((f={})[t.productKey]=T(T({},e[t.productKey]),{},{isSubmitting:!1}),f));case I.s:return T(T({},e),{},((m={})[t.productKey]=T(T({},e[t.productKey]),{},{fields:e[t.productKey].fields.pwrMap(function(e,r){var n=e;return t.data.index===r&&(n=T(T({},e),t.data.fieldUpdates)),n})}),m));case I.a:return T(T({},e),{},((h={})[t.productKey]=T(T({},e[t.productKey]),{},{message:null,media:[].concat(e[t.productKey].media,t.media)}),h));case I.j:var C,P=0,N=0;return T(T({},e),{},((C={})[t.productKey]=T(T({},e[t.productKey]),{},{message:null,media:e[t.productKey].media.filter(function(e,r){return r!==t.index}).pwrMap(function(e){var t=e.type===j.b?P++:N++,r=e.type===j.b?"videourl":"image";return T(T({},e),{},{meta:T(T({},e.meta),{},{id:"media_"+r+"_"+t,key:"media_"+r+"_"+t})})})}),C));case I.u:var A,D=0,L=0;return T(T({},e),{},((A={})[t.productKey]=T(T({},e[t.productKey]),{},{message:null,media:e[t.productKey].media.pwrMap(function(e){var r=t.media.filter(function(t){return t.id===e.id});return r.length>0?T(T({},e),r[0]):e}).pwrMap(function(e){var t=e.type===j.b?D++:L++,r=e.type===j.b?"videourl":"image";return T(T({},e),{},{meta:T(T({},e.meta),{},{id:"media_"+r+"_"+t,key:"media_"+r+"_"+t})})})}),A));case I.v:return T(T({},e),{},((v={})[t.productKey]=T(T({},e[t.productKey]),{},{message:null,media:e[t.productKey].media.pwrMap(function(e,r){return r===t.index?T(T({},e),{},{caption:t.caption}):e})}),v));case I.k:return T(T({},e),{},((g={})[t.productKey]=T(T({},e[t.productKey]),{},{message:null,media:e[t.productKey].media.pwrMap(function(e,r){if(r===t.index){var n=(e.rotation||0)+90;return 360===n&&(n=0),T(T({},e),{},{rotation:n})}return e})}),g));case I.w:var M=[].concat(e[t.productKey].fields),F=T({},M[t.fieldIndex]),z=t.fileType===j.b?T({},t.composite_data):{composite_data:t.composite_data};F.values[t.valueIndex]=T(T(T({},F.values[t.valueIndex]),z),{},{isUploaded:!0});var V=F.values.every(function(e){return e.isUploaded})?k.a:k.b;return M[t.fieldIndex]=T(T({},F),{},{syncStatus:V}),T(T({},e),{},((b={})[t.productKey]=T(T({},e[t.productKey]),{},{fields:M}),b));case I.i:return T(T({},e),{},((y={})[t.productKey]=T(T({},e[t.productKey]),{},{isLoading:!1,isSubmitting:!1,isComplete:!0,fields:e[t.productKey].fields.pwrMap(function(e){var t="composite"===e.field_type&&("Image"===e.composite_type||"Video"===e.composite_type||"NativeVideo"===e.composite_type);return T(T({},e),{},{isVisible:!t})})}),y));default:return e}}var A=r(27);function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach(function(t){s()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var M={};function F(e,t){var r,n,a,i,o,s,c;switch(void 0===e&&(e=M),t.type){case A.h:case A.a:return L(L({},e),{},((r={})[t.productKey]=L(L({},e[t.productKey]),{},{isLoading:!0}),r));case A.j:case A.c:return L(L({},e),{},((n={})[t.productKey]=L(L({},e[t.productKey]),{},{isLoading:!1},t.body),n));case A.i:case A.b:return L(L({},e),{},((a={})[t.productKey]=L(L({},e[t.productKey]),{},{isLoading:!1,fetchError:!0,errorMessage:t.body.message}),a));case A.k:case A.d:return L(L({},e),{},((i={})[t.productKey]=L(L({},e[t.productKey]),{},{isSubmitting:!0,field_errors:null,errorMessage:null,fatalSubmitError:!1}),i));case A.m:case A.f:return L(L({},e),{},((o={})[t.productKey]=L(L({},e[t.productKey]),{},{isSubmitting:!1,isComplete:!0},t.body),o));case A.l:case A.e:var l=t.body,u=l.detail,p=l.message,d={field_errors:u,errorMessage:p,fatalSubmitError:!u&&!p};return L(L({},e),{},((s={})[t.productKey]=L(L(L({},e[t.productKey]),d),{},{isSubmitting:!1}),s));case A.g:return L(L({},e),{},((c={})[t.productKey]=L(L({},e[t.productKey]),{},{errorMessage:t.errorMessage,fatalSubmitError:t.fatalSubmitError}),c));default:return e}}var z=r(91);r(53),r(5);var V="FETCH_IRL_MEDIA",U="FETCH_IRL_MEDIA_SUCCESS",q="FETCH_IRL_MEDIA_ERROR";function W(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?W(Object(r),!0).forEach(function(t){s()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var H={media:[]};function K(e,t){switch(void 0===e&&(e=H),t.type){case V:return B(B({},e),{},{isLoading:!0});case U:var r=t.paging||{},n=r.page_size,a=void 0===n?0:n,i=r.total_results,o=void 0===i?0:i,s=r.next_page_url;return B(B({},e),{},{isLoading:!1,media:[].concat(e.media,Object(p.a)(t.results)),localizations:e.localizations||t.configuration.localizations,merchantProperties:e.merchantProperties||t.configuration.properties,totalMedia:o,pageSize:a,nextPage:s});case q:return B(B({},e),{},{isLoading:!1,error:!0});default:return e}}r.d(t,"b",function(){return Y});var G=Object(n.d)(window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__({name:"PRStore",instanceId:"prstore-1"}):function(e){return e})(n.e),Q=function(){var e=Object(n.c)({Reviews:v,Questions:w,Answers:E.a,ActionHistory:S,Redraw:C.a,WriteAReview:N,WAQWAA:F,ReviewYourPurchases:z.b,IRLSnippet:K});return Object(n.a)(i.a)(G)(function(t,r){return"CLEAR_STORE"===r.type&&(t=void 0),e(t,r)})},Y=Q();t.a=Q},function(e,t,r){"use strict";function n(e,t){return e===t}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,r=null,a=null;return function(){return function(e,t,r){if(null===t||null===r||t.length!==r.length)return!1;for(var n=t.length,a=0;a<n;a++)if(!e(t[a],r[a]))return!1;return!0}(t,r,arguments)||(a=e.apply(null,arguments)),r=arguments,a}}function i(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=0,s=n.pop(),c=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e})){var r=t.pwrMap(function(e){return typeof e}).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+r+"]")}return t}(n),l=e.apply(void 0,[function(){return o++,s.apply(null,arguments)}].concat(r)),u=a(function(){for(var e=[],t=c.length,r=0;r<t;r++)e.push(c[r].apply(null,arguments));return l.apply(null,e)});return u.resultFunc=s,u.recomputations=function(){return o},u.resetRecomputations=function(){return o=0},u}}t.__esModule=!0,t.defaultMemoize=a,t.createSelectorCreator=i,t.createStructuredSelector=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var r=Object.keys(e);return t(r.pwrMap(function(t){return e[t]}),function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.pwrReduce(function(e,t,n){return e[r[n]]=t,e},{})})};var o=t.createSelector=i(a)},function(e,t,r){"use strict";var n=r(0),a=r.n(n),i=r(84),o=a.a.memo(function(e){var t="0.0";return e.ratingValue&&(t=Math.round(10*e.ratingValue)/10),a.a.createElement("div",{className:"pr-snippet-stars pr-snippet-stars-png "+("SMALL"===e.starSize?"pr-snippet-stars-png-small":"")},a.a.createElement(i.a,{isInteractive:!1,untoggledClassName:e.untoggledClassName,toggledClassName:e.toggledClassName,useQuarterStars:e.useQuarterStars,starSize:e.starSize,starStyles:e.starStyles,preset:e.ratingValue}),a.a.createElement("div",{"aria-hidden":"true",className:"pr-snippet-rating-decimal"},t))});o.defaultProps={className:"pr-snippet-star-rating",untoggledClassName:"pr-star",toggledClassName:"pr-star-selected",useQuarterStars:!1,starStyles:"GOLD_NON_ACCESSIBILITY_COMPLIANT",ratingValue:0,ratingMaxValue:5},t.a=o},function(e,t,r){var n=r(46);e.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t,r){var n=r(56);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,r){var n=r(45);e.exports=n},function(e,t,r){"use strict";var n=r(0),a=r.n(n),i=(r(9),r(10)),o=r.n(i),s=r(4),c=r(13),l=r(1),u=r(32),p=r(18),d=[u.g,u.j,u.h,u.c,u.a,u.e,u.b,u.f];t.a=function(e){var t=e.localizations,r=e.isImageForm,i=e.onClose,u=e.onSubmit,f=Object(n.useState)(""),m=f[0],h=f[1],v=Object(n.useState)(""),g=v[0],b=v[1],y=Object(n.useState)(""),_=y[0],w=y[1],E=Object(n.useState)("profane"),O=E[0],S=E[1],C=Object(n.useState)(!0),j=C[0],x=C[1],k=Object(n.useRef)(null),I=Object(n.useRef)(),P=Object(n.useRef)(Object(c.f)());Object(n.useEffect)(function(){k.current&&k.current.focus()},[]),Object(n.useEffect)(function(){j||I.current.focus()},[j]);var T=Object(l.a)("review_display.4.0.flagging_form.whats_the_issue_label",t),R=Object(l.a)("review_display.4.0.flagging_form.email_address_label",t),N=Object(l.a)("review_display.4.0.flagging_form.comments_label",t),A=Object(l.a)("review_display.4.0.flagging_form.button_label.flag",t),D=Object(l.a)("review_display.4.0.flagging_form.button_label.cancel",t),L=function(e,t){return[Object(l.a)("review_display.4.0.flagging_form.profanity_label",e),Object(l.a)("review_display.4.0.flagging_form.wrong_product_label",e),Object(l.a)("review_display.4.0.flagging_form.spam_label",e),Object(l.a)("review_display.4.0.flagging_form.duplicate_label",e),Object(l.a)("review_display.4.0.flagging_form.copyright_label",e),Object(l.a)("review_display.4.0.flagging_form.not_product_review_label",e),t?Object(l.a)("review_display.4.0.flagging_form.inappropriate_image_label",e):Object(l.a)("review_display.4.0.flagging_form.customer_image_label",e),Object(l.a)("review_display.4.0.flagging_form.other_label",e)]}(t,r).pwrMap(function(e,t){return a.a.createElement("div",{key:e,className:"pr-flagging-radio"},a.a.createElement("label",{htmlFor:"flagOptions"+t},a.a.createElement("input",{className:"pr-flag-review-input pr-form-control pr-radio pr-form-radio",type:"radio",onChange:function(e){return S(e.target.value)},name:"flagOptions",id:"flagOptions"+t,value:d[t].toLowerCase(),defaultChecked:0===t,required:!0,ref:0===t?k:null}),a.a.createElement("span",null," "+e)))});return a.a.createElement("form",{id:"pr-flag-reviews",className:"pr-flag-review",noValidate:!0,onSubmit:function(e){e&&e.preventDefault();var r=Object(l.a)("review_display.4.0.flagging_form.required_error",t),n=Object(l.a)("review_display.4.0.flagging_form.email_error",t),a=s.w(m,!0,"EMAIL");if(!a){var o=m.trim().length?n:r;return x(a),void w(a?null:o)}x(!0),w(null),u({contact_email:m,flag_comment:g,flag_type:O}).then(function(){i()}).catch(function(e){return null===e||void 0===e?void 0:e.detail.forEach(function(e){e.fields.forEach(function(e){"contact_email"===e&&(x(!1),w(r))})})})}},a.a.createElement("fieldset",{className:"pr-flag-review-fieldset"},a.a.createElement("legend",{className:"pr-flag-review-label pr-control-label","aria-required":"true"},a.a.createElement("b",null,T+" "),a.a.createElement("abbr",{"aria-hidden":"true"},"*")),a.a.createElement("div",{className:"pr-flagging-radiogroup"},a.a.createElement("div",{className:"pr-form-group pr-flagging-form-group"},L.slice(0,Math.ceil(L.length/2))),a.a.createElement("div",{className:"pr-form-group pr-flagging-form-group"},L.slice(Math.ceil(L.length/2),L.length)))),a.a.createElement("div",{className:o()("pr-flag-review-fieldset",{"pr-has-error":!j})},a.a.createElement("label",{className:"pr-control-label pr-flag-review-label",htmlFor:"pr-email-field"},a.a.createElement("b",null,R+" "),a.a.createElement("abbr",{"aria-hidden":"true"},"*")),a.a.createElement(p.b,null,a.a.createElement("input",{id:"pr-email-field",type:"email",ref:I,className:"pr-form-control form-control pr-textinput pr-flag-review-input",value:m,onChange:function(e){return h(e.target.value)},"aria-required":!0,"aria-invalid":!j||void 0,"aria-describedby":j?void 0:P.current,autoComplete:"on"}),j?null:a.a.createElement(p.a,null)),!j&&a.a.createElement("span",{className:"pr-field-alert pr-text-danger pr-flag-error",id:P.current},_)),a.a.createElement("div",{className:"pr-flag-review-fieldset"},a.a.createElement("label",{className:"pr-control-label pr-flag-review-label",htmlFor:"pr-flag-comments"},N),a.a.createElement("textarea",{value:g,onChange:function(e){return b(e.target.value)},"aria-multiline":"true",id:"pr-flag-comments",type:"textarea",rows:"5",className:"pr-form-control pr-textarea pr-flag-review-input"})),a.a.createElement("button",{className:"pr-btn pr-btn-default pr-flag-review-btn pr-flag-review-btn-submit",type:"submit"},A),a.a.createElement("button",{type:"button",className:"pr-btn pr-btn-default pr-flag-review-btn pr-flag-review-btn-cancel",onClick:i},D))}},function(e,t,r){"use strict";t.a={WAR:{social_measurement_id:"wr",ga_id:"submit2verify",start:"start",complete:"askForLogin",smsStart:"sms-start",smsComplete:"sms-submit",error:"submit_error",share_to_retailer_present:function(e){return"share_to_retailer_present_"+e},share_to_retailer_clicked:function(e){return"share_to_retailer_clicked_"+e}},WARIF:{social_measurement_id:"if",ga_id:"if",start:"start",complete:"thankyou",error:"submit_error"},WARMO:{social_measurement_id:"mo",ga_id:"mo",start:"start",caption:"caption",complete:"thankyou",error:"submit_error"},SRW:{social_measurement_id:"srw",ga_id:"srw",start:"start",complete:"thankyou",error:"submit_error"},WAQ:{ga_id:"question",start:"edit_page",complete:"finished_page",error:"submit_error"},WAA:{ga_id:"answer",start:"edit_page",complete:"finished_page",error:"submit_error"},WYB:{ga_id:"wyb",start:"edit_page",complete:"finished_page",error:"submit_error"},AS:{ga_id:"as",start:"call_to_action",complete:"redirected",error:"fallback",fallback_copy:"fallback_copy",fallback_complete:"fallback_redirected"},RYP:{social_measurement_id:"ryp",ga_id:"ryp",start:"start",click:"star_click",complete:"review_submission",error:"error",image:"image_upload"},REVIEW_DISPLAY:{social_measurement_id:"rd"},QA_DISPLAY:{social_measurement_id:"ab"},RID:{social_measurement_id:"rid"},REVIEW_SNIPPET:{social_measurement_id:"rd"},QA_SNIPPET:{social_measurement_id:"ab"},IMAGE_SNIPPET:{social_measurement_id:"is"},IRL_SNIPPET:{social_measurement_id:"irl"},REVIEW_SNAPSHOT:{social_measurement_id:"rd"},FEEDLESS_PRODUCT_CATALOG:{social_measurement_id:"fp"},ADD_TO_CART:{social_measurement_id:"atc"}}},function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r(112),a=r.n(n),i=function(e){return void 0===e&&(e=21),"pr-"+a()(e)}},function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r(0),a=r.n(n),i=(r(9),r(261),function(e){var t=e.filledPercent,r=e.size,n=t?function(e){return[0,25,50,75,100].pwrReduce(function(t,r){return Math.abs(r-e)<Math.abs(t-e)?r:t})}(t)+"-percent":"0-percent";return a.a.createElement("svg",{className:"pr-star-icon",viewBox:"0 0 30 30",width:r,height:r,"data-size":r},a.a.createElement("defs",null,a.a.createElement("linearGradient",{id:"0-percent"},a.a.createElement("stop",{className:"pr-star-icon__fill--empty",offset:"100%"}))),a.a.createElement("defs",null,a.a.createElement("linearGradient",{id:"25-percent"},a.a.createElement("stop",{className:"pr-star-icon__fill--full",offset:"0%"}),a.a.createElement("stop",{className:"pr-star-icon__fill--full",offset:"20%"}),a.a.createElement("stop",{className:"pr-star-icon__fill--empty",offset:"50%"}),a.a.createElement("stop",{className:"pr-star-icon__fill--empty",offset:"75%"}),a.a.createElement("stop",{className:"pr-star-icon__fill--empty",offset:"100%"}))),a.a.createElement("defs",null,a.a.createElement("linearGradient",{id:"50-percent"},a.a.createElement("stop",{className:"pr-star-icon__fill--full",offset:"50%"}),a.a.createElement("stop",{className:"pr-star-icon__fill--empty",offset:"50%"}))),a.a.createElement("defs",null,a.a.createElement("linearGradient",{id:"75-percent"},a.a.createElement("stop",{className:"pr-star-icon__fill--full",offset:"0%"}),a.a.createElement("stop",{className:"pr-star-icon__fill--full",offset:"20%"}),a.a.createElement("stop",{className:"pr-star-icon__fill--full",offset:"50%"}),a.a.createElement("stop",{className:"pr-star-icon__fill--empty",offset:"75%"}),a.a.createElement("stop",{className:"pr-star-icon__fill--empty",offset:"100%"}))),a.a.createElement("defs",null,a.a.createElement("linearGradient",{id:"100-percent"},a.a.createElement("stop",{className:"pr-star-icon__fill--full",offset:"100%"}))),a.a.createElement("g",{className:"pr-star-icon__group pr-star-icon__group--outline",fill:"url(#"+n+")",transform:"translate(-42.000000, -48.000000)"},a.a.createElement("polygon",{points:"56.0384615 70.165 47.7868609 76.0397634 50.2973723 65.5595983 42.6870912 58.7102366 52.4902733 58.1079017 56.0384615 48 59.5866498 58.1079017 69.3898319 58.7102366 61.7795508 65.5595983 64.2900622 76.0397634 "})))});i.defaultProps={size:18}},function(e,t,r){"use strict";var n=r(0),a=r.n(n),i=(r(9),function(e){var t=e.thumbDirection,r=e.thumbColor,n="up"===t?"pr-thumbs-icon pr-thumbs-icon-up":"pr-thumbs-icon pr-thumbs-icon-down";return a.a.createElement("span",{className:n},a.a.createElement("svg",{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 216 146",xmlSpace:"preserve",focusable:"false","aria-hidden":"true"},a.a.createElement("g",null,a.a.createElement("path",{className:"pr-thumbs-fill",fill:r,d:"M168.7,79.9c3-3.4,4.5-7.5,4.5-12.1c0-4.2-1.6-7.9-4.6-11c-3.1-3.1-6.8-4.6-11-4.6H135 c0.2-0.8,0.4-1.4,0.7-2s0.5-1.1,0.9-1.8s0.7-1.1,0.8-1.5c1-1.8,1.7-3.4,2.2-4.6c0.5-1.2,1-2.8,1.5-4.9c0.5-2.1,0.8-4.1,0.8-6.2 c0-1.3,0-2.4,0-3.2c0-0.8-0.2-2-0.4-3.7c-0.2-1.6-0.6-3-1-4.1c-0.4-1.1-1.1-2.3-2-3.7c-0.9-1.4-2-2.5-3.3-3.3s-2.9-1.5-4.9-2.1 c-2-0.6-4.2-0.9-6.7-0.9c-1.4,0-2.6,0.5-3.7,1.5c-1.1,1.1-2,2.4-2.8,4.1c-0.8,1.6-1.3,3-1.6,4.2c-0.3,1.2-0.6,2.9-1,5 c-0.5,2.3-0.9,3.9-1.1,4.9c-0.2,1-0.7,2.3-1.4,4c-0.7,1.6-1.5,2.9-2.5,3.9c-1.8,1.8-4.5,5.1-8.2,9.8c-2.7,3.5-5.4,6.8-8.2,9.9 c-2.8,3.1-4.9,4.7-6.2,4.8c-1.4,0.1-2.5,0.7-3.5,1.7s-1.5,2.2-1.5,3.5v52.2c0,1.4,0.5,2.6,1.5,3.6s2.3,1.5,3.7,1.6 c1.9,0.1,6.2,1.2,12.9,3.6c4.2,1.4,7.5,2.5,9.8,3.2c2.4,0.7,5.7,1.5,9.9,2.4c4.2,0.8,8.1,1.3,11.7,1.3h1.4h6.2h2.9 c7.2-0.1,12.6-2.2,16.1-6.4c3.1-3.7,4.5-8.7,4-14.7c2.1-2,3.6-4.6,4.4-7.7c0.9-3.3,0.9-6.5,0-9.5c2.5-3.3,3.7-7,3.5-11.2 C169.9,84.4,169.5,82.3,168.7,79.9z"}),a.a.createElement("path",{className:"pr-thumbs-cuff-fill",fill:r,d:"M71.5,62.6H48c-1.4,0-2.6,0.5-3.7,1.5s-1.5,2.3-1.5,3.7v52.1c0,1.4,0.5,2.6,1.5,3.7c1,1,2.3,1.5,3.7,1.5 h23.5c1.4,0,2.6-0.5,3.7-1.5c1-1,1.5-2.3,1.5-3.7V67.8c0-1.4-0.5-2.6-1.5-3.7C74.1,63.1,72.9,62.6,71.5,62.6z M62.1,113.2 c-1,1-2.3,1.5-3.7,1.5c-1.5,0-2.7-0.5-3.7-1.5c-1-1-1.5-2.2-1.5-3.7c0-1.4,0.5-2.6,1.5-3.7c1-1,2.2-1.5,3.7-1.5 c1.4,0,2.6,0.5,3.7,1.5c1,1,1.5,2.3,1.5,3.7C63.7,111,63.2,112.2,62.1,113.2z"}))))});i.defaultProps={thumbDirection:"up",thumbColor:"#707070"},t.a=i},function(e,t,r){"use strict";var n=r(2),a=r.n(n),i=r(53),o=r(4),s=r(85),c=r(37);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){a()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}r.d(t,"b",function(){return p}),r.d(t,"c",function(){return d}),r.d(t,"a",function(){return f}),r.d(t,"e",function(){return m}),r.d(t,"d",function(){return h}),r.d(t,"g",function(){return v}),r.d(t,"f",function(){return g}),r.d(t,"i",function(){return b}),r.d(t,"h",function(){return y});var p="GET_QUESTIONS",d="GET_QUESTIONS_SUCCESS",f="GET_MORE_QUESTIONS_SUCCESS",m="VOTE_ANSWER",h="QUESTION_SUBMITTED",v=Object(s.b)(function(e,t,r){void 0===t&&(t=[]),void 0===r&&(r=[]);var n=Object(o.s)(e);return function(a){return a({type:p,productKey:n}),Object(i.getContent)("questions",u(u({},e),{},{sorts:t,filters:r,newFilters:!0,noConfig:!0})).then(function(e){if(e.name)return a({type:d,productKey:n,sorts:t,filters:r,response:e})})}}),g=function(e,t){var r=Object(o.s)(e);return function(n){return Object(i.get)(t,u(u({},e),{},{noConfig:!0})).then(function(e){return n({type:f,productKey:r,response:e})})}},b=function(e,t,r,n){return void 0===n&&(n="Legacy"),function(a){return c.f(u(u({},t),{},{vote_type:r.toLowerCase(),command:"CDM"===n?"voteugc":"voteanswer",ugc_id:e})),a({type:m,votedID:e,voteType:r})}},y=function(e){var t=Object(o.s)(e);return{type:h,productKey:t}}},function(e,t,r){var n=r(71),a=r(220),i=r(72),o=r(178),s=Object.defineProperty;t.f=n?s:function(e,t,r){if(i(e),t=o(t,!0),i(r),a)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(0),o=r.n(i),s=r(9),c=r.n(s),l=r(95),u=r(3),p=r.n(u),d=r(7),f=r.n(d),m=r(2),h=r.n(m),v=r(10),g=r.n(v),b=r(20),y=r(18);function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach(function(t){h()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var E=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,h()(p()(t),"state",{showFields:!0,stashedFields:[]}),h()(p()(t),"keyDown",function(e){13===e.keyCode&&(e.target.checked?e.target.checked=!1:e.target.checked=!0,t.handleClickToExpand(e))}),h()(p()(t),"getTextInputGroupLabel",function(e){if(!t.props.showLabel)return"";var r=t.getID(),n=b.a.getRequiredIndicator(t.props),a=e?"pr-text-danger":"";return t.props.clickToExpand?o.a.createElement("label",{className:(t.props.isValid?"":"pr-invalid-field ")+"pr-control-label checkbox"},o.a.createElement("input",{"aria-invalid":!t.props.isValid,type:"checkbox",onClick:t.handleClickToExpand,onKeyDown:t.keyDown}),o.a.createElement("span",{className:a},t.props.label),n):o.a.createElement("label",{htmlFor:r,className:"pr-control-label"},o.a.createElement("span",{className:a},t.props.label),n)}),h()(p()(t),"handleClickToExpand",function(e){var r=e.target.checked;if(t.setState({showFields:r}),r){var n=t.state.stashedFields.length?t.state.stashedFields:[];t.updateCollection(t.props.fieldIndex,n)}else t.setState({stashedFields:t.props.values},function(){t.updateCollection(t.props.fieldIndex,[])})}),t}f()(t,e);var r=t.prototype;return r.componentDidMount=function(){this.props.clickToExpand&&this.setState({showFields:!1})},r.render=function(){var e,t=this.getID(),r=this.getTextInputGroupLabel();this.state.showFields&&(e=this.getHelperText());for(var n=[],a=0;a<this.props.count;a++){var i=t+"-"+(a+1),s=!0,c="";this.props.values&&this.props.values[a]&&void 0!==this.props.values[a].isValid&&null!==this.props.values[a].isValid&&!this.props.values[a].isValid&&(s=!1,c=this.props.values[a].error_message,r=this.getTextInputGroupLabel(!0)),n.push(o.a.createElement(O,{localizations:this.props.localizations,label:this.props.label,key:i,id:i,fieldIndex:this.props.fieldIndex+"-"+a,isRequired:this.props.isRequired,isValid:s,values:this.props.values,showLabel:!1,maxCharacters:25,isVisible:this.state.showFields,error:c}))}return o.a.createElement("div",{className:g()("pr-form-group form-group "+t+"-form-group",{"pr-click-to-expand":this.props.clickToExpand})},o.a.createElement(y.b,null,r,this.props.isValid?null:o.a.createElement(y.a,null)),e,n)},t}(b.a);E.defaultProps=w(w({},b.a.defaultProps),{},{count:1});var O=function(e){function t(t){var r;r=e.call(this,t)||this;var n=p()(r);return r.setValue=function(t){e.prototype.checkCharacterLimit.call(p()(r),t,function(){var e=n.props.fieldIndex.split("-"),t=e[0],r=e[1],a=n.props.values||[];a=a.slice(0),""!==n.state.currentValue?a[r]={value:n.state.currentValue}:a[r]=null,n.updateCollection(t,a)})},r}return f()(t,e),t}(l.a),S=E,C=r(166),j=r(167),x=r(122),k=r(168),I=r(90),P=r(26),T=r.n(P),R=r(4),N=function(e){function t(){return e.apply(this,arguments)||this}return f()(t,e),t.prototype.render=function(){return o.a.createElement("span",{dangerouslySetInnerHTML:{__html:'<svg enable-background="new 0 0 32 32" version="1.1" viewBox="0 0 32 32" focusable="false" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><polyline fill="none" points="   649,137.999 675,137.999 675,155.999 661,155.999  " stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2"/><polyline fill="none" points="   653,155.999 649,155.999 649,141.999  " stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2"/><polyline fill="none" points="   661,156 653,162 653,156  " stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2"/></g><g><path d="M28,6h-6.382l-1.724-3.447C19.725,2.214,19.379,2,19,2h-6c-0.379,0-0.725,0.214-0.895,0.553L10.382,6H4   C3.448,6,3,6.448,3,7s0.448,1,1,1h20v20H8V11c0-0.552-0.448-1-1-1s-1,0.448-1,1v18c0,0.553,0.448,1,1,1h18c0.553,0,1-0.447,1-1V8h2   c0.553,0,1-0.448,1-1S28.553,6,28,6z M13.618,4h4.764l1,2h-6.764L13.618,4z"/><path d="M14,24V14c0-0.552-0.448-1-1-1s-1,0.448-1,1v10c0,0.553,0.448,1,1,1S14,24.553,14,24z"/><path d="M20,24V14c0-0.552-0.447-1-1-1s-1,0.448-1,1v10c0,0.553,0.447,1,1,1S20,24.553,20,24z"/></g></svg>'}})},t}(o.a.Component),A=r(120),D=r(146),L=r(1),M=r(13),F=function(e){function t(t){var r;return(r=e.call(this,t)||this).state={},r._handleButtonClick=r._handleButtonClick.pwrBind(p()(r)),r._handleKeyDown=r._handleKeyDown.pwrBind(p()(r)),r.fileInputLabelId=Object(M.f)(),r}f()(t,e);var r=t.prototype;return r._handleButtonClick=function(){var t=this,r=this.props.values?this.props.values.slice(0):[],n=0;r.forEach(function(e,t){e&&(n=t+1)}),r[n]={},e.prototype.updateCollection.call(this,this.props.fieldIndex,r,null),setTimeout(function(){var e=T.a.findDOMNode(t.refs["pr-video-input"+(r.length-1)]);e&&e.focus()},1)},r._handleKeyDown=function(e){13===e.keyCode&&this._handleButtonClick()},r._handleYouTubeValidation=function(e){return e.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11,})(?:\S+)?$/)?RegExp.$1:null},r._handleFileInputChange=function(t,r){var n=this,a=r.target,i=this._handleYouTubeValidation(a.value),o=i?"http://img.youtube.com/vi/"+i+"/1.jpg":"",s=i?"https://www.youtube.com/v/"+i:null,c=this.props.values||[];(c=c.slice(0))[t]={value:{video_url:s,video_thumbnail_url:o,id:"media_video_"+t,field_type:"composite",key:"media_video_"+t,composite_type:"Video",youTubeDetails:i,isValid:!!i}},this.setState({error_message:i?null:{message:Object(L.a)("video.error.invalid_url",this.props.localizations.write_a_review)}},function(){e.prototype.updateCollection.call(n,n.props.fieldIndex,c,null)})},r._handleRemoveFile=function(t,r){var n=this,a=this.props.values.slice(0);a.splice(t,1),this.setState({error_message:null},function(){e.prototype.updateCollection.call(n,n.props.fieldIndex,a,null)})},r._deleteKeyDown=function(e,t){13===t.keyCode&&this._handleRemoveFile(e,t)},r.render=function(){for(var e,t=this.getID(),r=this.props.values||[],n=(r.length,this.props.count,r.length>0?"pr-table pr-table-striped pr-media-table":"pr-hide pr-table pr-table-striped pr-media-table"),a=[],i=0;i<r.length;i++){var s="pr-video-input"+i;r&&r.length>0&&r[i]&&(!("boolean"==typeof r[i].isValid&&!r[i].isValid),r[i].error_message);var c=void 0;c=r&&r.length>0&&r[i].value?r[i].value.video_thumbnail_url:"";var l=r[i].value?r[i].value.video_url:"",u="video",p="pr-form-control form-control pr-textinput";r[i].value&&(r[i].value.isValid||(p+=" pr-invalid-field",u+=" pr-has-error")),a.push(o.a.createElement("tr",{key:s,className:"form-group pr-video-form-group"},o.a.createElement("td",{className:"pr-vertical-middle",width:"80px"},o.a.createElement("span",null,o.a.createElement(A.a,{key:s+c,className:"pr-war-img-preview",ref:"img"+i,alt:Object(L.a)("collect_display.collect.media.uploaded_media_item",this.props.localizations),src:c}))),o.a.createElement("td",{className:"pr-vertical-middle"},o.a.createElement("span",{className:u},o.a.createElement("input",{value:l,placeholder:Object(L.a)("video.placeholder",this.props.localizations.write_a_review),className:p,id:s,type:"text",ref:s,onChange:this._handleFileInputChange.pwrBind(this,i)}))),o.a.createElement("td",{className:"pr-vertical-middle"},o.a.createElement("div",{className:"pr-btn pr-btn-danger pr-btn-delete pr-pull-right",onClick:this._handleRemoveFile.pwrBind(this,i),tabIndex:"0",onKeyDown:this._deleteKeyDown.pwrBind(this,i)},o.a.createElement("div",{className:"pr-icon-delete"},o.a.createElement(N,null))))))}return this.state.error_message&&(e=o.a.createElement("p",{className:"pr-text-danger",dangerouslySetInnerHTML:{__html:"&nbsp;&nbsp;"+this.state.error_message.message}})),0===r.length&&(n+=" pr-hide"),o.a.createElement("div",{className:"pr-form-group form-group "+t+"-form-group"},o.a.createElement("div",{ref:"fields"},o.a.createElement("div",null,e,o.a.createElement("table",{role:"presentation",className:n},o.a.createElement("tbody",null,a)),o.a.createElement("div",{className:"pr-war-media-input"},o.a.createElement("div",{className:"pr-file-input-btn-group"+(r.length<this.props.count?"":" pr-hide")},o.a.createElement("label",{className:"pr-file-input-label",id:this.fileInputLabelId},this.props.label),o.a.createElement("div",{className:"pr-file-input-btn"},o.a.createElement("button",{type:"button",onClick:this._handleButtonClick,onKeyDown:this._handleKeyDown,className:"pr-btn pr-btn-default pr-btn-fileinput pr-youtube-btn","aria-describedby":this.fileInputLabelId},o.a.createElement(D.a,null)," YouTube")))))))},t}(b.a),z=r(170),V=r(16),U=r.n(V),q=(r(375),r(96)),W=function(e){var t=e.isValid,r=e.id,n=e.label,a=e.helperText,s=e.error,c=e.rows,l=e.preset,u=e.placeholder,p=e.isRequired,d=e.showLabel,f=e.reactKey,m=e.fieldIndex,h=e.minRecommendedChars,v=e.localizations,_=g()("pr-form-group form-group",r+"-form-group",{"pr-has-error":!t,"no-label":!d}),w=g()("pr-form-control form-control pr-textarea",{"pr-invalid-field":!t}),E=b.a.getRequiredIndicator(e),O=o.a.useState(""),S=O[0],C=O[1],j=S.length/h,x=Object(L.a)("min_recommended_chars.recommendation",v.write_a_review).replace("{0}",h);S.length<h&&S.length>0?x=Object(L.a)("min_recommended_chars.characters_left",v.write_a_review).replace("{0}",h-S.length):S.length>=h&&(x=Object(L.a)("min_recommended_chars.recommendation_met",v.write_a_review));var k=B(j,v,h),I=Object(M.h)(k);Object(i.useEffect)(function(){I!==k&&Object(M.g)(k)},[I,k]);var P=function(e){var t=e.currentTarget.value;C(t),T(m,t)},T=function(t,r){var n={id:t,value:r,isValid:R.w(r,e.isRequired,e.validationType)};if(e.handleFieldUpdate){var a=U()(n,["id"]);e.handleFieldUpdate(a,t)}};return o.a.createElement(q.a,{valid:t,helperText:a,fieldError:H(25,s)},function(e){var a=e.helperText,i=e.fieldError,s=e.describedBy;return o.a.createElement("div",{className:_},o.a.createElement("label",{className:"pr-control-label",htmlFor:r+"-input"},o.a.createElement("span",{dangerouslySetInnerHTML:{__html:n}}),E),t?a:i,o.a.createElement(y.b,null,o.a.createElement("textarea",{key:f||!1,id:r+"-input",className:w,rows:c,defaultValue:l,onChange:P,placeholder:u,required:!!p||void 0,"aria-invalid":!t||void 0,"aria-describedby":s}),t?null:o.a.createElement(y.a,null)),o.a.createElement("div",{className:g()("pr-review-meter",{"pr-review-meter-animation":j>=1}),style:{width:j<=1?100*j+"%":"100%",display:j>0?"block":"none"}}),o.a.createElement("div",{className:"pr-review-meter-text"},x))})},B=function(e,t,r){var n;return 0===e?n=Object(L.a)("min_recommended_chars.recommendation",t.write_a_review).replace("{0}",r):e>=1?n=Object(L.a)("min_recommended_chars.aria_status_recommendation_met",t.write_a_review)+" "+Object(L.a)("min_recommended_chars.recommendation_met",t.write_a_review):e>=.75?n=Object(L.a)("min_recommended_chars.aria_status",t.write_a_reviews).replace("{0}",75)+" "+Object(L.a)("min_recommended_chars.characters_left",t.write_a_review).replace("{0}",Math.round(r-.75*r)):e>=.5?n=Object(L.a)("min_recommended_chars.aria_status",t.write_a_review).replace("{0}",50)+" "+Object(L.a)("min_recommended_chars.characters_left",t.write_a_reviews).replace("{0}",Math.round(r-.5*r)):e>=.25&&(n=Object(L.a)("min_recommended_chars.aria_status",t.write_a_review).replace("{0}",25)+" "+Object(L.a)("min_recommended_chars.characters_left",t.write_a_review).replace("{0}",Math.round(r-.25*r))),n},H=function(e,t){var r="";if(t)if(t.detail.profanity){var n="";t.detail.profanity.forEach(function(e){n+=e,n+=", "}),r=t.message.slice(0,-1)+" : "+n.slice(0,-2)+"."}else t.detail.invalid&&(r=t.detail.invalid);var a=g()("pr-field-alert pr-text-danger pr-field-alert-profanity",{"pr-hide":!t});return o.a.createElement("p",{className:a},r)};function K(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return G(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return G(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.pwrBind(r)}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Q(e,t){return!0===t?"pr-"+e:e}function Y(e){var t=e.localizations,r=e.field,n=e.fieldIndex,i=e.starStyles,s=e.type,c=e.videoCollectionType,u=e.handleFieldUpdate,p=e.prependID,d=e.minCharacters,f=e.minRecommendedChars,m=null,h={fieldIndex:n,localizations:t,error:r.error_message,id:Q(r.key,p),isRequired:r.required,isValid:function e(t,r){void 0===r&&(r=function(e){return e.submitted_value===e.value});var n=t.error_message&&t.error_message.message,a=r(t);if(n&&a)return!1;if("composite"===t.field_type&&Array.isArray(t.values))for(var i,o=K(t.values);!(i=o()).done;){var s=i.value;if(("Image"===s.composite_type||"NativeVideo"===s.composite_type||"Video"===s.composite_type)&&!e(s,function(e){return e.submitted_caption===e.caption}))return!1}return t.isValid}(r),isVisible:r.isVisible,hidden:r.hidden,label:r.label,validationType:r.validationType,handleFieldUpdate:u};if("TextBox"===r.input_type&&(m=o.a.createElement(l.a,a()({},h,{maxCharacters:r.max_length,placeholder:r.helper_text,helperText:r.example,preset:r.value,value:r.value,reactKey:r.reactKey,requiredText:e.requiredText}))),"TextArea"===r.input_type&&(m=!d&&f>0?o.a.createElement(W,a()({},h,{count:r.count,rows:r.rows,maxCharacters:r.maxCharacters,placeholder:r.helper_text,helperText:r.example,preset:r.value,reactKey:r.reactKey,requiredText:e.requiredText,minRecommendedChars:f})):o.a.createElement(z.a,a()({},h,{count:r.count,rows:r.rows,maxCharacters:r.maxCharacters,minCharacters:d,placeholder:r.helper_text,helperText:r.example,preset:r.value,reactKey:r.reactKey,requiredText:e.requiredText}))),"Stars"===r.input_type&&(m=o.a.createElement(C.a,a()({},h,{isSubrating:"rating"!==r.key,preset:r.value,reactKey:r.reactKey,starStyles:i||"",requiredText:e.requiredText}))),"CheckboxVertical"===r.input_type){var v=r.choices||[];m=o.a.createElement(j.a,a()({},h,{choices:v,helperText:r.helper_text,preset:r.preset,values:r.values,requiredText:e.requiredText}))}if("AgeDisclosure"===r.input_type||"RadioVertical"===r.input_type||"RadioHorizontal"===r.input_type||"RadioHorizontalLinked"===r.input_type){var g=r.choices||[];m=o.a.createElement(x.a,a()({},h,{choices:g,helperText:r.helper_text,inputType:r.input_type,preset:r.value,requiredText:e.requiredText}))}if("Dropdown"===r.input_type){var b=r.choices||[];m=o.a.createElement(k.a,a()({},h,{preset:r.value,tags:b,requiredText:e.requiredText}))}return"composite"===r.field_type&&"Simple"===r.composite_type&&(m=o.a.createElement(S,a()({},h,{clickToExpand:!0,count:r.count,helperText:r.helper_text,values:r.values||[],requiredText:e.requiredText}))),"composite"===r.field_type&&"Image"===r.composite_type&&(m=o.a.createElement(I.a,a()({},h,{mediaType:r.composite_type,count:r.count,files:r.files,label:r.prompt||r.label,subfields:r.fields,values:r.values,uploaded:r.values&&r.values.filter(function(e){return e.isUploaded}).length,autoSubmit:!0,parentComponent:s,config:e.config,merchantProperties:e.merchantProperties,requiredText:e.requiredText}))),"composite"===r.field_type&&("NativeVideo"===r.composite_type||"Video"===r.composite_type&&"NATIVE"===c)&&(m=o.a.createElement(I.a,a()({},h,{isRequired:!1,mediaType:"Video",count:r.count,files:r.files,label:r.label||Object(L.a)("video.add_button_label",t.write_a_review),subfields:r.fields,values:r.values,uploaded:r.values&&r.values.filter(function(e){return e.isUploaded}).length,autoSubmit:!1,config:e.config,merchantProperties:e.merchantProperties,requiredText:e.requiredText}))),"composite"===r.field_type&&"Video"===r.composite_type&&(m=o.a.createElement(F,a()({},h,{isRequired:!1,mediaType:r.composite_type,count:r.count,files:r.files,label:r.label||Object(L.a)("video.add_button_label",t.write_a_review),subfields:r.fields,values:r.values,autoSubmit:!1,requiredText:e.requiredText}))),m}W.defaultProps={preset:null,isValid:!0,isRequired:!1,isVisible:!0,showLabel:!0,maxCharacters:2e3,rows:5},r.d(t,"b",function(){return Q}),Y.propTypes={className:c.a.string,localizations:c.a.object,starStyles:c.a.string,type:c.a.string,videoCollectionType:c.a.string,field:c.a.object,fieldIndex:c.a.number,handleFieldUpdate:c.a.func,prependID:c.a.bool,config:c.a.object,merchantProperties:c.a.object,minCharacters:c.a.number,requiredText:c.a.string,minRecommendedChars:c.a.number},Y.defaultProps={prependID:!0};t.a=Y},function(e,t,r){"use strict";t.decode=t.parse=r(368),t.encode=t.stringify=r(369)},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(7),o=r.n(i),s=r(0),c=r.n(s),l=function(e){function t(){return e.apply(this,arguments)||this}return o()(t,e),t.prototype.render=function(){return c.a.createElement("svg",a()({viewBox:"0 0 213 85",focusable:"false"},this.props),c.a.createElement("title",null,"PowerReviews"),c.a.createElement("g",{fill:"none"},c.a.createElement("path",{d:"M44.378 25.846h-9.384v14.256h9.384c4.51 0 7.577-2.587 7.577-7.098 0-4.51-3.066-7.158-7.577-7.158zm.36 20.15h-9.744v16.839H28.5V23.25c0-1.677 1.59-3.237 3.332-3.237h12.906c8.362 0 13.715 5.534 13.715 12.991 0 7.459-5.353 12.993-13.715 12.993z",fill:"#888787"}),c.a.createElement("path",{d:"M59.328 62.839l-9.852-14.175s-1.098.529-4.42.529h-3.201l9.39 13.655 8.083-.01M105.12 29.192c2.066 0 3.433-.993 3.433-2.977 0-2.254-1.501-2.978-3.486-2.978h-3.728v5.955h3.782zm-5.19-8.959h5.62c3.701 0 6.49 2.092 6.49 6.008 0 2.924-1.957 5.955-6.302 5.955h-4.399v7.161h-3.568V22.244c0-1.182.911-2.011 2.16-2.011zM125.937 32.813v-6.116c0-2.306-1.986-3.62-4.239-3.62-1.823 0-4.104.964-4.104 3.7v6.116c0 2.307 1.986 3.621 4.238 3.621 1.824 0 4.105-.965 4.105-3.7zm-11.882.268v-6.116c0-4.533 3.861-7.054 7.643-7.054 4.158 0 7.778 2.709 7.778 6.974v5.74c0 4.532-3.861 7.054-7.644 7.054-4.158 0-7.777-2.334-7.777-6.598zM130.927 20.233h3.648l3.003 13.385h.053l3.516-13.385h3.03l3.487 13.465h.053l3.058-13.465h3.594l-4.963 19.205h-3.298l-3.434-13.492h-.053l-3.433 13.492h-3.326l-4.935-19.205M158.929 20.233h11.375v3.138h-9.71v4.668h8.61v1.382c0 .9-.697 1.755-1.599 1.755h-7.011v5.043h9.817v3.138h-13.384V22.062c0-.932.872-1.829 1.902-1.829M180.793 29.192c2.065 0 3.434-.993 3.434-2.977 0-2.254-1.503-2.978-3.488-2.978h-3.513v5.955h3.567zm-5.537-8.959h5.965c3.596 0 6.492 2.092 6.492 6.008 0 2.28-1.207 4.64-3.781 5.552l4.747 7.564h-3.888l-4.48-7.161h-3.085v7.161h-3.567V21.901c0-.996.567-1.668 1.597-1.668zM104.906 51.947c2.066 0 3.433-.992 3.433-2.977 0-2.254-1.502-2.977-3.486-2.977h-3.514v5.954h3.567zM99.41 42.99h5.925c3.595 0 6.491 2.092 6.491 6.008 0 2.28-1.206 4.64-3.782 5.552l4.747 7.563h-3.888l-4.48-7.16h-3.084v7.16h-3.568V44.596c0-.931.61-1.607 1.639-1.607zM116.86 42.989h11.516v3.138h-9.708v4.666h8.608v1.515c0 .902-.613 1.624-1.514 1.624h-7.094v5.042h9.816v3.138H115.1V44.628c0-.9.828-1.64 1.76-1.64M131.41 42.989h3.863l4.317 14.081h.054l4.318-14.081h3.54l-6.328 19.204h-3.489l-6.275-19.204M152.726 42.989h1.752v19.123h-3.566V44.725c0-1.124.754-1.736 1.814-1.736M160.472 42.989h11.548v3.138h-9.709v4.666h8.609v1.515c0 .9-.517 1.624-1.546 1.624h-7.063v5.042h9.816v3.138h-13.383V44.693c0-1.126.636-1.704 1.728-1.704M174.3 42.989h3.648l3.003 13.384h.054l3.513-13.384h3.031l3.487 13.464h.054l3.058-13.464h3.593l-4.962 19.204h-3.298l-3.434-13.491h-.054l-3.432 13.491h-3.326L174.3 42.989M197.61 57.688l3.218-1.26c.725 1.848 2.467 2.895 4.614 2.895 1.931 0 3.754-.752 3.754-2.521 0-1.421-1.154-2.065-2.628-2.495l-3.219-.778c-2.548-.644-4.586-1.797-4.586-5.176 0-3.595 3.138-5.687 6.84-5.687 3.191 0 5.499 1.047 6.732 3.916l-2.924 1.288c-.832-1.609-2.253-2.199-4.103-2.199-1.556 0-3.057.698-3.057 2.413 0 1.342 1.286 1.96 2.789 2.362l3.271.804c2.281.536 4.373 1.904 4.373 5.31 0 3.514-3.139 5.847-7.349 5.847-3.514 0-6.733-1.474-7.726-4.72",fill:"#888787"}),c.a.createElement("path",{d:"M6.263 42.286c-.023-8.942 2.839-16.655 8.688-23.419l-4.737-4.097C3.338 22.72-.026 31.79 0 42.3c.06 23.154 18.878 41.877 42.03 41.818l-.015-6.255c-19.695.046-35.702-15.88-35.752-35.577",fill:"#75C6B8"}),c.a.createElement("path",{d:"M77.261 47.07C74.814 64.809 59.924 77.818 42.02 77.864h-.005l.015 6.255c21.047-.054 38.549-15.346 41.425-36.194l-6.194-.855",fill:"#FBB817"}),c.a.createElement("path",{d:"M64.05 6.584L60.748 11.9l.005.002C72.916 19.46 79.217 32.883 77.26 47.07l6.194.855c2.3-16.675-5.107-32.456-19.405-41.34",fill:"#53C7E6"}),c.a.createElement("path",{d:"M60.748 11.899l3.302-5.315c-10.719-6.66-22.427-8.17-34.485-4.452l1.846 5.984.004-.001C41.67 4.95 51.63 6.235 60.748 11.899",fill:"#8AC734"}),c.a.createElement("path",{d:"M31.411 8.116l-1.846-5.984c-8.03 2.479-13.853 6.28-19.35 12.638l4.736 4.097.002-.001c4.676-5.409 9.628-8.642 16.458-10.75",fill:"#F05E24"})))},t}(c.a.Component);t.a=l},function(e,t,r){"use strict";var n=r(3),a=r.n(n),i=r(7),o=r.n(i),s=r(2),c=r.n(s),l=r(8),u=r.n(l),p=r(0),d=r.n(p),f=(r(9),r(13)),m=r(77),h=r(16),v=r.n(h);function g(e){var t=d.a.useRef(Object(f.f)()),r=e.iconInputId,n=e.onClickRating,a=e.onIconKeyDown,i=e.isRequired,o=e.onMouseEnter,s=e.filledPercent,c=e.label,l=(e.children,v()(e,["iconInputId","onClickRating","onIconKeyDown","isRequired","onMouseEnter","filledPercent","label","children"]));return d.a.createElement("span",null,d.a.createElement("input",{id:t.current,name:r,className:"sr-only",onClick:n,onKeyDown:a,"aria-describedby":l["aria-describedby"],required:!!i||void 0,type:"radio"}),d.a.createElement("label",{htmlFor:t.current,onMouseMove:o,className:"pr-interactive-star-icon"},d.a.createElement(m.a,{size:50,filledPercent:s}),d.a.createElement("span",{className:"pr-accessible-text"},c)))}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){c()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var _=function(e,t){return t>=2?e+"s":e},w=d.a.forwardRef(function(e,t){return d.a.createElement(E,u()({},e,{forwardedRef:t}))}),E=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=e.call.apply(e,[this].concat(n))||this,c()(a()(t),"radioBtnId",Object(f.f)()),t}return o()(t,e),t.prototype.render=function(){var e=y({},this.props.style);this.props.isInteractive&&(e.cursor="pointer");var t="pr-star-v4";"ORANGE_ACCESSIBILITY_COMPLIANT"===this.props.starStyles&&(t="pr-star-accessible"),this.props.filledPercent?t+=" "+t+"-"+this.props.filledPercent+"-filled":t+=this.props.toggled?" "+t+"-100-filled":" "+t+"-0-filled",this.props.isValid||1!==this.props.starNumber||(t+=" pr-invalid-field");var r=this.props.imageAlt+" "+(this.props.label?this.props.label+" ":"")+this.props.starNumber+" "+_("star",this.props.starNumber);return this.props.isInteractive?d.a.createElement("span",null,d.a.createElement("input",{id:this.radioBtnId,name:this.props.iconInputId,className:"sr-only",onClick:this.props.onClickRating,onKeyDown:this.props.onIconKeyDown,"aria-describedby":this.props["aria-describedby"],required:!!this.props.isRequired||void 0,type:"radio",ref:this.props.forwardedRef}),d.a.createElement("label",{htmlFor:this.radioBtnId,className:t,style:e,onMouseMove:this.props.onMouseEnter},this.props.isInteractive&&d.a.createElement("span",{className:"pr-accessible-text"},r))):d.a.createElement("div",{className:t,style:e})},t}(d.a.Component);c()(E,"defaultProps",{isInteractive:!0,isRequired:!1,isValid:!0,starStyles:"GOLD_NON_ACCESSIBILITY_COMPLIANT"});var O=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=e.call.apply(e,[this].concat(n))||this,c()(a()(t),"radioBtnId",Object(f.f)()),t}return o()(t,e),t.prototype.render=function(){var e=y({},this.props.style);this.props.isInteractive&&(e.cursor="pointer");var t=this.props.toggled?this.props.toggledClassName:this.props.untoggledClassName;this.props.isValid||1!==this.props.starNumber||(t+=" pr-invalid-field");var r,n=this.props.imageAlt+" "+(this.props.label?this.props.label+" ":"")+this.props.starNumber+" "+_("star",this.props.starNumber);this.props.customStarImageUrl||this.props.customStarImageHoverUrl?(t+=" pr-custom-image",r=this.props.toggled?this.props.customStarImageHoverUrl:this.props.customStarImageUrl):r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHkAAACACAMAAAAYuTaqAAAAmVBMVEVHcEz///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8JA+lgAAAAMnRSTlMAB8m4/AIB4fkMzkW+Wnr1lB4Z8mA+FaOqdC0zKLEkf5A4UlWIbdbrEGbu3Zlq5UyMnnY191AAAAN3SURBVBgZ7cGHVupKAAXQk56QYgqE3puA9fz/xz3LU0STSGbIsO5a7o0//4o2riRxE1zHiitchbblVsM1tEm2cQ0tkjquYM5Xc6jX5asulMtdvnJzqBbxXQTFLIfvHAtqLfhhAbUCfgig1IhHI6gU8yiGQl7Go8yDOmt+dQ9l7A2/2kAZn6d8qDLmqR4USUyeMhOoseJ3KyihbfndVoMKbf4UQgWdP+lQYM4iQzSvyyLPaFzusoibo2kRi/XRMMthsYOFZi1Y5hHNCljGQKNGLDdBk2KWm6E5tpexXOahOWtW2aE5G1bZoDE+q3XQlDGr9dCQxGQ1M8WleZP54y4y+Bsj2j3OJx7kWOnAD/ur57Hu3LCeG0cfP6/6oT9ILZzpdtRZ3E/jXrDZ8zL2m6AXT+8XncktvtOS4WO7/9Q1Wg8um+Q+tIzuU7/9OEw0AFHGa8giYMprmOJF26Vqbhtv/D3Vynz8b+BQJWeAT2mL6rRSHNmeQVUMDyesO6pxZ+GUjYgqRCgQumyaG6KI3dmzWfsOSowcNukwQqm0xeboOSp4Bpsy9lDJumMzYgu/idiEPs4Qurw0d4mzdPa8rO0cZxodeEmHCc6W67wcPUcN3piXMtZQixXzMmYW6urzAsw1BCxdyrpZQMh8SznbOcTYkwNlHCYQlusUZuo5JGhjiuppkGLNKObJhqSEYlLICilmCVkxxcwgq0UxOiR5JsWYHuT4FNWBnClFRZATUJQBKVZGUXsbMoYUN4CMNcXtIKNHcV3IcCjuAAkJZaQQF1LGEuJiyphBXIsydAjzTMowPYjyKacDUVPKiSAqYCXDD1jJgCArY4WHJYDlAytkFsQMWc588vDKm5ksN4CYNUsFA3wY6Cy1g5geS2zbNr5ob1miCzEOC5l3tzh1e2ey0AFCEhbSh/hp3mKhFCJCFtjfWyhi3e9ZYAkRMX/q5iiTd/nTDCJa/G7TQZXOht/pEOCZPJX1LVTT+hlPmR7q83mql+J3SY+nOqhvyq8OPs7jH/hVhPoCHrlTDefSpi6PDNRmZfw0nqCOicFPmYW6hvzgLFDXwuGHAepa85278lCft3L5boe6enwTjCDEHgV800VdDl88hBAXbvnigJoSkubMg4zb2CSZop6Q1AewIWeok0vUE2/bNuTZu/0M9axzXEa+xp8/f/405T/VfiCDRYkxmAAAAABJRU5ErkJggg==";var a={};return this.props.isInteractive&&(a.role="button"),this.props.isInteractive?d.a.createElement("span",null,d.a.createElement("input",{id:this.radioBtnId,name:this.props.iconInputId,className:"sr-only",onClick:this.props.onClickRating,onKeyDown:this.props.onIconKeyDown,"aria-describedby":this.props["aria-describedby"],required:!!this.props.isRequired||void 0,type:"radio"}),d.a.createElement("label",{htmlFor:this.radioBtnId,className:t,style:e,onMouseMove:this.props.onMouseEnter},d.a.createElement("span",{"aria-hidden":"true",className:"pr-accessible-text"},n),d.a.createElement("img",{className:"pr-rating-star",src:r,alt:n}))):d.a.createElement("div",u()({},a,{role:"radio",className:t,onMouseMove:this.props.onMouseEnter,style:e,"aria-checked":this.props.toggled,onClick:this.props.onClickRating,onKeyDown:this.props.onIconKeyDown,tabIndex:this.props.isInteractive?"0":"-1"}),d.a.createElement("span",{"aria-hidden":"true",className:"pr-accessible-text"},n),d.a.createElement("img",{className:"pr-rating-star",src:r,alt:n}))},t}(d.a.Component);c()(O,"defaultProps",{isInteractive:!0,isRequired:!1,isValid:!0});var S=function(e){function t(t){var r;return(r=e.call(this,t)||this).state={currentRating:t.currentRating||t.preset||0,currentRating_hover:0,hovering:!1,customStarUrl:null,customStarHoverUrl:null,max:5},r}o()(t,e);var r=t.prototype;return r.componentDidMount=function(){var e=document.getElementsByClassName("pr-custom-star-image")[0];if(e){var t=window.getComputedStyle(e).getPropertyValue("background-image"),r=document.getElementsByClassName("pr-custom-star-image-hover")[0],n=window.getComputedStyle(r).getPropertyValue("background-image"),a=/\((")?(.+)\1\)/,i=a.exec(t),o=a.exec(n),s=i&&i[2]||void 0,c=o&&o[2]||void 0;this.setState({customStarUrl:s,customStarHoverUrl:c})}},r.componentDidUpdate=function(e){this.props.isInteractive||e.currentRating===this.props.currentRating&&e.preset===this.props.preset||this.setState({currentRating:this.props.currentRating||this.props.preset})},r.onMouseEnter=function(e,t){if(this.props.isInteractive){var r=e;t.nativeEvent.clientX<t.target.offsetLeft+t.target.offsetWidth/2&&(r-=.5),this.setState({currentRating_hover:r,hovering:!0}),this.props.setValue(r,!1)}},r.onMouseLeave=function(){this.props.isInteractive&&(this.setState({hovering:!1}),this.props.setValue(this.state.currentRating,!1))},r.onClickRating=function(e,t){t.stopPropagation(),this.props.isInteractive&&(this.setState({currentRating:e}),this.props.setValue(e,!0),this.props.onChange&&this.props.onChange(e))},r.onIconKeyDown=function(e,t,r){13!==t.keyCode&&32!==t.keyCode||this.onClickRating(e,t,r)},r.onKeyDown=function(e){if(this.props.isInteractive){var t=this.state.currentRating;switch(e.keyCode){case 39:this.setState({currentRating:t+1}),this.props.setValue(t+1,!0);break;case 37:this.setState({currentRating:t-1}),this.props.setValue(t-1,!0)}}},r._renderStars=function(){for(var e,t=[],r=!1,n=1;n<=this.state.max;++n){e=this.state["currentRating"+(this.state.hovering?"_hover":"")],r=n<=Math.round(e);var a=(Math.round(4*e)/4).toFixed(2),i=this.props.useQuarterStars&&Math.floor(a)+1===n?a%1*100:0;i=0===i&&!0===r?100:i;var o=this.props.imageAlt+" "+(this.props.label?this.props.label+" ":"")+n+" "+_("star",n),s="ORANGE_ACCESSIBILITY_COMPLIANT"===this.props.starStyles,c=this.props.isInteractive,l=void 0;l=s?c?d.a.createElement(g,{key:n,iconInputId:this.props.iconInputId,onMouseEnter:this.onMouseEnter.pwrBind(this,n),onClickRating:this.onClickRating.pwrBind(this,n),onIconKeyDown:this.onIconKeyDown.pwrBind(this,n),filledPercent:i,isInteractive:this.props.isInteractive,isRequired:this.props.isRequired,"aria-describedby":this.props["aria-describedby"],label:o}):d.a.createElement(m.a,{key:n,filledPercent:i,size:this.props.starSize}):d.a.createElement(w,{key:n,starNumber:n,filledPercent:i,label:this.props.label,iconInputId:this.props.iconInputId,onMouseEnter:this.onMouseEnter.pwrBind(this,n),onClickRating:this.onClickRating.pwrBind(this,n),onIconKeyDown:this.onIconKeyDown.pwrBind(this,n),toggled:r,customStarImageUrl:this.state.customStarUrl,customStarImageHoverUrl:this.state.customStarHoverUrl,isInteractive:this.props.isInteractive,isRequired:this.props.isRequired,isValid:this.props.isValid,starStyles:this.props.starStyles,"aria-describedby":this.props["aria-describedby"],imageAlt:this.props.imageAlt,ref:1===n?this.props.forwardedRef:null}),t.push(l)}var p={};return this.props.isInteractive&&(p={"aria-hidden":!1,role:"radiogroup",onMouseLeave:this.onMouseLeave.pwrBind(this)}),d.a.createElement("div",u()({"aria-hidden":"true",className:"pr-rating-stars"},p),t)},r._renderLegacyStars=function(){for(var e,t=[],r=!1,n=1;n<=this.state.max;++n){e=this.state["currentRating"+(this.state.hovering?"_hover":"")],r=n<=Math.round(e);var a=(Math.round(4*e)/4).toFixed(2),i=this.props.useQuarterStars&&Math.floor(a)+1===n?a%1*100:0,o=void 0;if(this.props.useQuarterStars&&Math.floor(a)+1===n){var s=void 0;document.getElementsByClassName("pr-star-mock").length>0&&(s=window.getComputedStyle(document.getElementsByClassName("pr-star-mock")[0]).getPropertyValue("background-color")),o="-webkit-gradient(linear, left top, right top, color-stop("+i+"%, "+s+"), color-stop("+a%1*100+"%, #DDDDDD))"}t.push(d.a.createElement(O,{key:n,starNumber:n,label:this.props.label,iconInputId:this.props.iconInputId,style:this.props.useQuarterStars?{background:o}:{},toggledClassName:this.props.toggledClassName,untoggledClassName:this.props.untoggledClassName,onMouseEnter:this.onMouseEnter.pwrBind(this,n),onClickRating:this.onClickRating.pwrBind(this,n),onIconKeyDown:this.onIconKeyDown.pwrBind(this,n),toggled:r,customStarImageUrl:this.state.customStarUrl,customStarImageHoverUrl:this.state.customStarHoverUrl,isInteractive:this.props.isInteractive,isRequired:this.props.isRequired,isValid:this.props.isValid,"aria-describedby":this.props["aria-describedby"],imageAlt:this.props.imageAlt}))}var c={};return c=this.props.isInteractive?{role:"radiogroup"}:{"aria-hidden":!0},d.a.createElement("div",u()({},c,{className:"pr-rating-stars",onMouseLeave:this.onMouseLeave.pwrBind(this)}),d.a.createElement("div",{className:"pr-star-mock pr-star-selected pr-hide"}),d.a.createElement("div",{className:"pr-custom-star-image"}),d.a.createElement("div",{className:"pr-custom-star-image-hover"}),t)},r.render=function(){return window.POWERREVIEWS&&"4.0"!==window.POWERREVIEWS.UI_VERSION&&!0!==Object({UI_VERSION:4,BUILD_VERSION:"10309",SHARE_FROM_SOCIAL_URL_FACEBOOK:"//ui.powerreviews.com/stable/social/facebookshare.html",SHARE_FROM_SOCIAL_URL_INSTAGRAM:"//ui.powerreviews.com/stable/social/instagramshare.html",STAGE:"stable",HOSTING_PROVIDER:"aws",NODE_ENV:"production",CLOUDINARY_UPLOAD_BASE_URL:"//api.cloudinary.com/v1_1/powerreviews/auto/upload",CLOUDINARY_DOWNLOAD_BASE_URL:"https://media.powerreviews.com",CLOUDINARY_IMAGE_PRESET:"prod_preset",CLOUDINARY_VIDEO_PRESET:"prod_video_preset",UI_LIBRARY_BASE_URL:"//ui.powerreviews.com",WRITE_SERVICES_BASE_URL:"//writeservices.powerreviews.com",B2C_READ_API_BASE_URL:"//display.powerreviews.com",B2C_READ_API_ORIGIN_URL:"//origin-readservices-b2c-api.powerreviews.com",B2C_READ_API_PROXY_URL:"https://ui.powerreviews.com/api/",TRACKING_BASE_URL:"//t.powerreviews.com",SERVICES_BASE_URL:"//services.powerreviews.com/JSController.do",UI_PR_BASE_URL:"//ui.powerreviews.com/stable",VERSION_FULLJS_URL:"stable-fulljs-version.json",VERSION_3_URL:"stable-3.0-version.json",VERSION_4_URL:"stable-4.0-version.json",BUILD_BASE_URL:"tag-builds",HAS_MODAL:!0}).DYNAMIC_LOADER?this._renderLegacyStars():this._renderStars()},t}(d.a.Component);c()(S,"defaultProps",{isInteractive:!0,useQuarterStars:!1,isRequired:!1,isValid:!0,starStyles:"GOLD_NON_ACCESSIBILITY_COMPLIANT"});t.a=d.a.forwardRef(function(e,t){return d.a.createElement(S,u()({},e,{forwardedRef:t}))})},function(e,t,r){"use strict";r.d(t,"b",function(){return s}),r.d(t,"a",function(){return c});var n=r(2),a=r.n(n);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){a()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var s=function(e){var t=function(e,t,r){var n,a=[];return function(i,o){var s=this,c=o[0]&&o[0].page_id,l=a.indexOf(c)>-1,u=r&&!n||!l;if(clearTimeout(n),n=setTimeout(function(){if(n=null,!r)return e.apply(s,[i,o])},t),u)return a.push(c),e.apply(this,[i,o])}}(function(t,r){return t(e.apply(void 0,r))},0,!0);return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return function(e){return t(e,r)}}},c=function(e){return e.pwrMap(function(e){return o(o({},e),{},{image:e.uri},"video"===e.type&&{type:function(e){return e.uri&&(e.uri.indexOf("youtube.com")>-1||e.uri.indexOf("youtu.be")>-1)}(e)?"yt":"cvideo"})}).filter(function(e){return"yt"!==e.type})}},function(e,t,r){var n=r(45),a=r(100),i=r(57),o=r(180),s=r(181),c=r(101),l=c.get,u=c.enforce,p=String(String).split("String");(e.exports=function(e,t,r,s){var c=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof t||i(r,"name")||a(r,"name",t),u(r).source=p.join("string"==typeof t?t:"")),e!==n?(c?!d&&e[t]&&(l=!0):delete e[t],l?e[t]=r:a(e,t,r)):l?e[t]=r:o(t,r)})(Function.prototype,"toString",function(){return"function"==typeof this&&l(this).source||s(this)})},function(e,t,r){"use strict";var n=r(46);e.exports=function(e,t){var r=[][e];return!!r&&n(function(){r.call(null,t||function(){throw 1},1)})}},function(e,t){e.exports="data:image/svg+xml,%3C?xml version='1.0' ?%3E%3Csvg height='22px' version='1.1' viewBox='0 0 20 20' width='20px' focusable='false' xmlns='http://www.w3.org/2000/svg' xmlns:sketch='http://www.bohemiancoding.com/sketch/ns' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Ctitle/%3E%3Cdesc/%3E%3Cdefs/%3E%3Cg fill='none' stroke='%23999' stroke-width='0.35'%3E%3Cg fill='%23FFFFFF' transform='translate(-168.000000, -85.000000)'%3E%3Cg transform='translate(168.000000, 85.000000)'%3E%3Cpath d='M8,14.5 L14,10 L8,5.5 L8,14.5 L8,14.5 Z M10,0 C4.5,0 0,4.5 0,10 C0,15.5 4.5,20 10,20 C15.5,20 20,15.5 20,10 C20,4.5 15.5,0 10,0 L10,0 Z M10,18 C5.6,18 2,14.4 2,10 C2,5.6 5.6,2 10,2 C14.4,2 18,5.6 18,10 C18,14.4 14.4,18 10,18 L10,18 Z' /%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E"},function(e,t,r){"use strict";var n=r(6),a=[{name:"category.engine.js",components:[n.a,n.b]},{name:"irl.engine.js",components:[n.a,n.b,n.c]},{name:"reviews.engine.js",womName:"reviews-wom.engine.js",components:[n.f,n.i,n.j,n.k,n.p,n.g,n.h,n.a,n.b,n.c,n.n]},{name:"display.engine.js",womName:"display-wom.engine.js",components:[n.f,n.i,n.j,n.k,n.d,n.e,n.p,n.g,n.h,n.a,n.b,n.c,n.n]},{name:"collect.engine.js",components:[n.s,n.r,n.t,n.q,n.l,n.m,n.o,n.a]},{name:"ui.engine.js",components:[n.f,n.i,n.j,n.k,n.d,n.e,n.s,n.r,n.t,n.q,n.l,n.m,n.o,n.p,n.g,n.h,n.a,n.b,n.c,n.n]}];r(5),r(24),r(47);r.d(t,"a",function(){return i}),r.d(t,"b",function(){return o}),r.d(t,"c",function(){return s});var i=function(e){var t,r=!0,n=!1,a=[],i=function(e){e.hasOwnProperty("ENABLE_CONTENT_COLLECTION_MODAL")&&(r=e.ENABLE_CONTENT_COLLECTION_MODAL),e.hasOwnProperty("splitBypass")&&(t=e.splitBypass),e.hasOwnProperty("style_sheet")&&(n=!0);var i=e.components;if(i)for(var o in i)-1===a.indexOf(o)&&a.push(o)};return e.length?e.forEach(i):i(e),{keys:a,splitBypass:t,hasStyleSheet:n,ENABLE_CONTENT_COLLECTION_MODAL:r}},o=function(e,t,r){var n=(r||"//ui.powerreviews.com/tag-builds")+"/"+(e.v?e.v:"")+"/"+t;n.replace("//","https://");var a=document.createElement("script");a.type="text/javascript",a.src=n;var i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(a,i)},s=function(e,t,r){var n=0,s=setInterval(function(){if(n+=20,window.POWERREVIEWS.display.renderQueue){var c=function(e){var t=i(e),r=t.keys,n=t.splitBypass,o=t.hasStyleSheet,s=t.ENABLE_CONTENT_COLLECTION_MODAL,c="ui.engine.js";if(n)return{engineFile:c,hasStyleSheet:o};for(var l=function(e){var t=a[e];if(!r.filter(function(e){return-1===t.components.indexOf(e)}).length)return c=!1===s&&t.womName?t.womName:t.name,"break"},u=0;u<a.length&&"break"!==l(u);u++);return{engineFile:c,hasStyleSheet:o}}(window.POWERREVIEWS.display.renderQueue),u=c.engineFile;c.hasStyleSheet||l();var p="4.0/"+u;return window.POWERREVIEWS.display.engine=u,o(e,p,r),clearInterval(s)}if(n>1e3)return l(),o(e,t,r),clearInterval(s)},20)},c=function(e){var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)},l=function(){window.POWERREVIEWS.stylesLoaded=!0;var e=document.createElement("style");e.setAttribute("type","text/css");var t=document.createTextNode(".p-w-r {display: none;}");e.appendChild(t),c(e);var r=document.createElement("link"),n="//ui.powerreviews.com/4.0/styles.css";window.POWERREVIEWS.display.build&&(n="//ui.powerreviews.com/tag-builds/"+window.POWERREVIEWS.display.build+"/4.0/styles.css"),r.setAttribute("href",n),r.setAttribute("type","text/css"),r.setAttribute("rel","stylesheet"),c(r)}},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(3),o=r.n(i),s=r(7),c=r.n(s),l=r(2),u=r.n(l),p=r(0),d=r.n(p),f=(r(9),r(20)),m=r(1),h=r(67),v=(r(12),r(31)),g=r(169),b=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,u()(o()(t),"getImageSrc",function(){return("Video"===t.props.mediaType?t.props.media.video_thumbnail_url:t.props.media.composite_data.raw.url).replace("upload/","upload/f_auto,w_150,h_150,q_90,c_pad,a_"+(t.props.media.rotation||0)+"/")}),t}return c()(t,e),t.prototype.render=function(){var e=this;return d.a.createElement("li",{className:"pr-media-preview"},d.a.createElement(g.a,{source:this.props.media.isUploaded&&this.getImageSrc(),onRemove:this.props.onRemove,onRotate:this.props.onRotate,onCaptionChange:function(t,r){return e.props.onCaptionChange(r.target.value)},localizations:this.props.localizations,caption:this.props.media.caption,isUploaded:this.props.media.isUploaded,mediaIndex:this.props.fileIndex,error:this.props.error}))},t}(d.a.Component);b.defaultProps={media:{}};var y=b,_=r(146),w=r(204),E=r(205),O=r(13);function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach(function(t){u()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var j,x={Image:"image/*",Video:"video/*",All:"image/*,video/*"},k=0,I=function(e){function t(t){var r;return r=e.call(this,t)||this,u()(o()(r),"fileInputRef",d.a.createRef()),u()(o()(r),"onRotate",function(e){r.updateCollection(r.props.fieldIndex,r.props.values.pwrMap(function(t,r){var n=(t.rotation||0)+90;return 360===n&&(n=0),r===e?C(C({},t),{},{rotation:n}):t}))}),u()(o()(r),"onChange",function(e){r.onFileAttach(e.target.files)}),u()(o()(r),"onFileDrag",function(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer.files&&r.onFileAttach(e.dataTransfer.files)}),u()(o()(r),"onFileAttach",function(e){for(var t=r.props.values.length,n=[],a=0;a<e.length;a++)a+t<r.props.count&&n.push({file:e[a],attach_date:new Date});r.fileInputRef.current.value="";var i="Video"===r.props.mediaType?"media_video_":"media_image_",o=n.pwrMap(function(e,n){return{composite_type:r.props.mediaType,field_type:"composite",id:i+(t+n),key:i+(t+n),isValid:!0,caption:e.file.caption||"",file:e}});r.updateCollection(r.props.fieldIndex,[].concat(r.props.values,o),null,h.b)}),u()(o()(r),"onFileRemove",function(e,t){r.updateCollection(r.props.fieldIndex,r.props.values.filter(function(t,r){return r!==e})),Object(v.a)(t)}),u()(o()(r),"onCaptionChange",function(e,t){r.updateCollection(r.props.fieldIndex,r.props.values.pwrMap(function(r,n){return n===e?C(C({},r),{},{caption:t}):r}))}),u()(o()(r),"handleSocialShare",function(e){var t=e.pwrMap(function(e){return{source:e.imageSrc,caption:e.caption,name:e.imageSrc,lastModified:(new Date).toISOString(),type:""}});r.onFileAttach(t)}),u()(o()(r),"getUrls",function(){return{origin:"https://ui.powerreviews.com",facebook:"//ui.powerreviews.com/stable/social/facebookshare.html",instagram:"//ui.powerreviews.com/stable/social/instagramshare.html"}}),u()(o()(r),"handleClick",function(e,t){e&&e.preventDefault(),j=r.fieldId,"facebook"===t?r.facebookWindow=window.open(r.getUrls().facebook,"_blank"):"instagram"===t&&(r.instagramWindow=window.open(r.getUrls().instagram,"_blank"))}),u()(o()(r),"receiveMessage",function(e){j===r.fieldId&&e.origin===r.getUrls().origin&&e.data&&e.data.type&&e.data.media&&(r.handleSocialShare(e.data.media),"facebook"===e.data.type?r.facebookWindow&&r.facebookWindow.close():"instagram"===e.data.type&&r.instagramWindow&&r.instagramWindow.close())}),r.state={focus:!1,files:[]},window.addEventListener("message",r.receiveMessage),r.fieldId=k++,r.fileInputLabelId=Object(O.f)(),r}c()(t,e);var r=t.prototype;return r.componentWillUnmount=function(){window.removeEventListener("message",this.receiveMessage)},r.render=function(){var e=this,t="Video"!==this.props.mediaType&&this.props.merchantProperties&&this.props.merchantProperties.enable_facebook_integration,r="Video"!==this.props.mediaType&&this.props.merchantProperties&&this.props.merchantProperties.enable_instagram_integration,n=this.props.id;return d.a.createElement("div",{className:"pr-form-group form-group "+n+"-form-group"},d.a.createElement("div",null,d.a.createElement("ul",{className:"pr-table pr-media-table "+(this.props.values.length?"":"pr-hide")},this.props.values.pwrMap(function(t,r){return d.a.createElement(y,a()({},e.props,{key:t.file.attach_date+"-"+t.file.file.name+t.file.file.lastModified,media:t,fileIndex:r,onRotate:e.onRotate,onRemove:function(){var n;return e.onFileRemove(r,(null===(n=t.composite_data)||void 0===n?void 0:n.raw)||t.raw)},onCaptionChange:e.onCaptionChange.pwrBind(e,r),localizations:e.props.localizations,caption:t.file.file.caption,file:t.file.file,isUploaded:t.isUploaded,error:t.error_message?t.error_message.message:void 0}))})),d.a.createElement("div",{className:"pr-file-input-btn-group"+(this.props.values.length<this.props.count?"":" pr-hide")},d.a.createElement("label",{className:"pr-file-input-label",id:this.fileInputLabelId,htmlFor:n},this.props.label),d.a.createElement("div",{className:"pr-file-input-btn"},d.a.createElement("input",{ref:this.fileInputRef,name:n,id:n,onChange:this.onChange,accept:x[this.props.mediaType],type:"file",multiple:!0,style:{display:"none"}}),d.a.createElement("button",{className:"pr-btn pr-btn-default pr-btn-fileinput",onDragOver:this.onFileDrag,onDrop:this.onFileDrag,onClick:function(){return e.fileInputRef.current.click()},htmlFor:n,"aria-describedby":this.fileInputLabelId},d.a.createElement(_.a,{"aria-hidden":!0})," ",Object(m.a)("image.upload_button_label",this.props.localizations.write_a_review))),t&&d.a.createElement("button",{type:"button",onClick:function(t){return e.handleClick(t,"facebook")},className:"pr-btn pr-btn-default pr-btn-fileinput pr-file-input-btn pr-facebook-btn","aria-describedby":this.fileInputLabelId},d.a.createElement(w.a,{focusable:"false","aria-hidden":!0})," ","Facebook"),r&&d.a.createElement("button",{type:"button",onClick:function(t){return e.handleClick(t,"instagram")},className:"pr-btn pr-btn-default pr-btn-fileinput pr-file-input-btn pr-instagram-btn","aria-describedby":this.fileInputLabelId},d.a.createElement(E.a,{focusable:"false","aria-hidden":!0})," ","Instagram"))))},t}(f.a);I.defaultProps=C(C({},f.a.defaultProps),{},{values:[]});t.a=I},function(e,t,r){"use strict";r.d(t,"b",function(){return j}),r.d(t,"c",function(){return x}),r.d(t,"e",function(){return k}),r.d(t,"f",function(){return P}),r.d(t,"a",function(){return T}),r.d(t,"d",function(){return R});var n=r(2),a=r.n(n),i=r(31),o=r(4),s=r(34),c=r(23),l=r(67),u=r(124);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){a()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var f="RYP_INITIAL_FETCH",m="RYP_INITIAL_FETCH_SUCCESS",h="RYP_INITIAL_FETCH_ERROR_MISSING_PARAMETERS",v="RYP_INITIAL_FETCH_ERROR_UNKNOWN",g="RYP_VALIDATE_FORM",b="RYP_CLOSE",y="RYP_SUBMIT",_="RYP_SUBMIT_SUCCESS",w="RYP_SUBMIT_ERROR_PROFANITY",E="RYP_SUBMIT_ERROR_UNKNOWN",O="RYP_UPDATE_FIELD",S="RYP_UPDATE_MEDIA",C={};function j(e,t){var r,n,a,i,o,s,c,u,p,j,x,k;switch(void 0===e&&(e=C),t.type){case f:return d(d({},e),{},((r={})[t.rypKey]={isLoading:!0,localizations:{},merchant_information:{},purchaser_information:null,purchases:null,error:null,isComplete:!1},r));case m:return d(d({},e),{},((n={})[t.rypKey]=d(d(d({},e[t.rypKey]),{},{purchases:[]},t.body),{},{isLoading:!1,error:null,isAutoSubmitting:t.isAutoSubmitting}),n));case h:return d(d({},e),{},((a={})[t.rypKey]=d(d(d({},e[t.rypKey]),t.body),{},{error:!0,isLoading:!1}),a));case v:return d(d({},e),{},((i={})[t.rypKey]=d(d(d({},e[t.rypKey]),t.body),{},{error:!0,isLoading:!1}),i));case g:return d(d({},e),{},((o={})[t.rypKey]=d(d({},e[t.rypKey]),{},{purchases:e[t.rypKey].purchases.pwrMap(function(e,r){return r===t.purchaseIndex?d(d({},e),{},{review_template:e.review_template.pwrMap(function(e){return d(d({},e),{},{isValid:!e.required||!!e.value})})}):e})}),o));case b:return d(d({},e),{},((s={})[t.rypKey]=d(d({},e[t.rypKey]),{},{purchases:e[t.rypKey].purchases.filter(function(e,r){return r!==t.purchaseIndex})}),s));case y:return d(d({},e),{},((c={})[t.rypKey]=d(d({},e[t.rypKey]),{},{isLoading:!0}),c));case w:var I={};return t.body.fields.pwrMap(function(e){if("media_image"===e.id){var t=null;return e.fields&&e.fields.forEach(function(e){"caption"===e.key&&e.error_message&&(t=e.error_message)}),d(d({},e),{},{error_message:t,isValid:!t})}return d(d({},e),{},{isValid:!0,error_message:e.error_message||null})}).filter(function(e){return!!e.error_message}).forEach(function(e){I[e.id]=e.error_message}),d(d({},e),{},((u={})[t.rypKey]=d(d({},e[t.rypKey]),{},{purchases:e[t.rypKey].purchases.pwrMap(function(e,r){return r===t.purchaseIndex?d(d({},e),{},{review_template:[].concat(e.review_template.pwrMap(function(e){return I[e.id]?d(d({},e),{},{error_message:I[e.id],isValid:!1}):d(d({},e),{},{isValid:!0,error_message:null})})),isLoading:!1,isComplete:!1}):e}),message:t.body.message,isComplete:!1,isLoading:!1,isAutoSubmitting:!1}),u));case E:return d(d({},e),{},((p={})[t.rypKey]=d(d(d({},e[t.rypKey]),t.body),{},{error:!0,isComplete:!1,isLoading:!1,isAutoSubmitting:!1}),p));case O:return d(d({},e),{},((j={})[t.rypKey]=d(d({},e[t.rypKey]),{},{purchases:e[t.rypKey].purchases.pwrMap(function(e,r){return r===t.purchaseIndex?d(d({},e),{},{review_template:e.review_template.pwrMap(function(e){return e.id===t.fieldID?d(d({},e),t.fieldUpdates):e})}):e})}),j));case S:return d(d({},e),{},((x={})[t.rypKey]=d(d({},e[t.rypKey]),{},{purchases:e[t.rypKey].purchases.pwrMap(function(e,r){return r===t.purchaseIndex?d(d({},e),{},{review_template:e.review_template.pwrMap(function(e){if(e.id===t.fieldID){var r=e.values.pwrMap(function(e,r){return r===t.valueIndex?d(d({},e),{},{composite_data:t.composite_data,isUploaded:!0}):e}),n=r.every(function(e){return e.isUploaded});return d(d({},e),{},{values:r,syncStatus:n?l.a:l.b})}return e})}):e})}),x));case _:var P=t.isComplete?{}:{review_template:t.body.fields,progressive_info:t.body.progressive_info};return d(d({},e),{},((k={})[t.rypKey]=d(d({},e[t.rypKey]),{},{isLoading:!1,isAutoSubmitting:!1,purchases:e[t.rypKey].purchases.pwrMap(function(e,r){return r===t.purchaseIndex?d(d(d({},e),P),{},{isLoading:!1,isComplete:t.isComplete}):e})}),k));default:return e}}function x(e,t){void 0===t&&(t=!0);var r=Object(o.t)(e);return function(n){return t&&n({type:f,rypKey:r}),Object(i.c)(e,{includeLocalizations:!0}).then(function(t){var a,i=!1;switch(t.statusCode){case 200:a=m,(t.body.purchases||[]).forEach(function(t){Object(u.a)(e,t)&&(t.review_template=Object(o.C)(e,t.review_template),i=!0)});break;case 404:a=h;break;default:a=v}return n({type:a,rypKey:r,body:t.body||null,isAutoSubmitting:i})}).catch(function(e){console.log(e)})}}function k(e,t,r,n){var a=Object(o.t)(e);return function(e){return n.values&&n.values.forEach(function(n,o){"Image"!==n.composite_type||n.isUploaded||Object(i.j)(n.file.file,s.a).then(function(n){e({type:S,rypKey:a,purchaseIndex:t,fieldID:r,valueIndex:o,composite_data:n})})}),e({type:O,rypKey:a,purchaseIndex:t,fieldID:r,fieldUpdates:n})}}var I=function(e,t,r,n,a,l){void 0===l&&(l=0);var u={fields:function(e){return e.pwrReduce(function(e,t){return"media_image"===t.id?t.values&&t.values.forEach(function(t){e.push({composite_data:t.composite_data,composite_type:"Image",field_type:"composite",rotation:t.rotation,fields:[{field_type:"simple",input_type:"TextBox",key:"caption",value:t.caption}],id:t.key,key:t.key})}):e.push(t),e},[])}(r)},p=u.fields.pwrMap(function(e){return new pwrPromise(function(t){if("Image"===e.composite_type&&e.rotation){var r=e.composite_data.raw.url.replace("/upload/","/upload/a_"+e.rotation+"/");return Object(i.j)({source:r},s.a).then(function(r){t(d(d({},e),{},{composite_data:r}))})}t(e)})});return pwrPromise.all(p).then(function(r){u.fields=r,!a||function(e){return e&&e.is_progressive_type}(n)&&!function(e){return 0===e.current_step}(n)||(u.iovation_black_box=a);var s=d(d({},t),{},{merchant_id:t.purchase_merchant_id,is_complete:!0,current_step:n&&n.is_progressive_type?n.current_step:null});return Object(i.g)(u,s).then(function(r){var a=!0;n&&n.is_progressive_type&&!n.is_last_step&&200===r.statusCode&&(a=!1);var i,s=Object(o.t)(t),u=r.body;switch(r.statusCode){case 200:i=_;break;case 400:if(i=E,r.body.fields){var p=r.body.fields.filter(function(e){return e.fields}).pwrMap(function(e){return e.fields}).pwrReduce(function(e,t){return e.concat(t)},[]).filter(function(e){return e.error_message&&e.error_message.error_code===c.a.RESTRICTED_WORD}),f=r.body.fields.filter(function(e){return e.error_message&&e.error_message.error_code===c.a.RESTRICTED_WORD});(f.length>0||p.length>0)&&(i=w,u=d(d({},r.body),{},{message:f.length>0?f[0].error_message.message:p[0].error_message.message}))}break;default:i=E}return e({type:i,rypKey:s,pageId:t.page_id,body:u,isComplete:a,purchaseIndex:l})})})};function P(e,t){var r=Object(o.t)(e);return{type:g,rypKey:r,purchaseIndex:t}}function T(e,t,r,n){var a=Object(o.t)(e);return function(o){return Object(i.b)(e,{review_type:"ryp",page_id:t,page_id_variant:r}).then(function(){return o({type:b,rypKey:a,purchaseIndex:n})})}}function R(e,t,r,n,a){var i=Object(o.t)(e);return function(o){return o({type:y,rypKey:i}),I(o,e,t,r,n,a)}}},function(e,t,r){var n=r(135),a=r(177);e.exports=function(e){return n(a(e))}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,r){var n=r(39),a=r(161),i=r(80),o=n("unscopables"),s=Array.prototype;void 0==s[o]&&i.f(s,o,{configurable:!0,value:a(null)}),e.exports=function(e){s[o][e]=!0}},function(e,t,r){"use strict";var n=r(7),a=r.n(n),i=r(2),o=r.n(i),s=r(0),c=r.n(s),l=r(20),u=r(10),p=r.n(u),d=r(18),f=r(96);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var v=function(e){function t(){return e.apply(this,arguments)||this}a()(t,e);var r=t.prototype;return r.setValue=function(e){var t=this;e.preventDefault(),this.state.currentValue!==e.currentTarget.value&&this.checkCharacterLimit(e,function(){t.update(t.props.fieldIndex,t.state.currentValue)})},r.render=function(){var e=this,t=this.props.isValid,r=this.getID(),n=this.getLabel(),a=this.getFieldError(5),i=this.getHelperText(),o=p()("pr-form-group form-group "+r+"-form-group",{"pr-has-error":!t,"pr-hide":!this.props.isVisible});return c.a.createElement(f.a,{valid:t,fieldError:a,helperText:i},function(a){var i=a.fieldError,s=a.helperText,l=a.describedBy;return c.a.createElement("div",{className:o},n,c.a.createElement("div",{className:"form-group",id:r},t?s:i,c.a.createElement(d.b,null,c.a.createElement("input",{"aria-invalid":!e.props.isValid||void 0,required:!!e.props.isRequired||void 0,key:!!e.props.reactKey&&e.props.reactKey,id:r+"-input",className:p()("pr-form-control form-control pr-textinput",{"pr-invalid-field":!e.props.isValid}),defaultValue:e.props.preset,name:e.props.label,onChange:e.props.onChange||e.setValue.pwrBind(e),placeholder:e.props.placeholder,type:"text","aria-describedby":l}),t?null:c.a.createElement(d.a,null))))})},t}(l.a);o()(v,"defaultProps",h(h({},l.a.defaultProps),{},{maxCharacters:40,placeholder:""})),t.a=v},function(e,t,r){"use strict";r.d(t,"a",function(){return c});var n=r(0),a=r.n(n),i=r(9),o=r.n(i),s=r(13);function c(e){var t,r=e.valid,n=a.a.useRef(Object(s.f)()),i=n.current+"h",o=n.current+"e",c=e.helperText,l=e.fieldError;return r?c&&(c=a.a.cloneElement(c,{id:i}),t=i):l&&(l=a.a.cloneElement(l,{id:o}),t=o),e.children({describedBy:t,helperText:c,fieldError:l})}c.propTypes={valid:o.a.bool.isRequired,fieldError:o.a.node,helperText:o.a.node,children:o.a.func}},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(16),o=r.n(i),s=r(3),c=r.n(s),l=r(7),u=r.n(l),p=r(2),d=r.n(p),f=r(0),m=r.n(f),h=(r(9),r(10)),v=r.n(h),g=r(150),b=r(62),y=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,d()(c()(t),"handleEscape",function(e){27===e.keyCode&&(e.preventDefault(),t.props.handleClose())}),t}u()(t,e);var r=t.prototype;return r.componentDidMount=function(){this.initialBodyOverflowY=document.body.style.overflowY,document.body.style.overflowY="hidden",window.addEventListener("keydown",this.handleEscape)},r.componentWillUnmount=function(){document.body.style.overflowY=this.initialBodyOverflowY,window.removeEventListener("keydown",this.handleEscape)},r.render=function(){var e=this.props,t=e.children,r=e.enableCloseButton,n=e.enableBackgroundClose,i=e.localizations,s=e.handleClose,c=e.isCard,l=e.className,u=o()(e,["children","enableCloseButton","enableBackgroundClose","localizations","handleClose","isCard","className"]),p=c?m.a.createElement("div",{className:v()("pr-modal-visible pr-modal",l)},m.a.createElement("div",{className:"pr-modal-content"},t)):t;return m.a.createElement(g.a,null,m.a.createElement("div",a()({},u,{"aria-modal":"true",className:"pr-media-modal"}),m.a.createElement("section",{className:"modal__body"},r&&m.a.createElement("button",{type:"button","aria-label":(i["review_display.4.0.modal.close_button_text"]||"").replace("< ","")||"Close",className:"button__close button__close--dark",onClick:s},m.a.createElement(b.a,{lineStrokeSize:"1"})),p),m.a.createElement("div",{"aria-hidden":"true",className:"overlay overlay--dark",onClick:n?s:null})))},t}(f.Component);d()(y,"defaultProps",{handleClose:function(){return null},enableCloseButton:!0,enableBackgroundClose:!0}),t.a=y},function(e,t,r){"use strict";function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.pwrBind(r)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e){for(var t,r=new Set,a=n(e);!(t=a()).done;){var i=t.value;r.add(i)}return r}r.d(t,"a",function(){return i})},function(e,t,r){"use strict";r.d(t,"c",function(){return o}),r.d(t,"b",function(){return s}),r.d(t,"d",function(){return c}),r.d(t,"a",function(){return l});var n=r(1),a=r(5),i=r(4),o=function(e,t,r){var i=t.ALLOW_CUSTOMER_IMAGES||t.ALLOW_CUSTOMER_VIDEOS,o=Object(n.a)("review_display.4.0.sorting.most_recent_label",e),s=Object(n.a)("review_display.4.0.sorting.oldest_label",e),c=Object(n.a)("review_display.4.0.sorting.highest_rated_label",e),l=Object(n.a)("review_display.4.0.sorting.lowest_rated_label",e),u=Object(n.a)("review_display.4.0.sorting.most_helpful_label",e),p=Object(n.a)("review_display.4.0.sorting.sort_by_images_label",e),d=Object(a.a)(t,r).DEFAULT_REVIEW_SORT_ORDER;d=d?d.toLowerCase():"newest";var f=[{label:o,value:"newest"},{label:u,value:"mosthelpful"},{label:l,value:"lowestrating"},{label:c,value:"highestrating"},{label:s,value:"oldest"}];i&&f.push({label:p,value:"mediasort"});var m=f.filter(function(e){return e.value===d}),h=f.filter(function(e){return e.value!==d});return[].concat(m,h)},s=function(e,t){var r=Object(i.o)(new Date(e)),a="";if("number"==typeof r)if(r<=1)a+=" "+Object(n.a)("review_display.4.0.common.day_ago",t).replace("{0}",1);else if(r>1&&r<30)a+=1===r?" "+Object(n.a)("review_display.4.0.common.day_ago",t).replace("{0}",r):" "+Object(n.a)("review_display.4.0.common.days_ago",t).replace("{0}",r);else if(r>=30&&r<335){var o=Math.round(r/30);a+=1===o?" "+Object(n.a)("review_display.4.0.common.month_ago",t).replace("{0}",o):" "+Object(n.a)("review_display.4.0.common.months_ago",t).replace("{0}",o)}else if(r>=335){var s=Math.round(r/365);a+=1===s?" "+Object(n.a)("review_display.4.0.common.year_ago",t).replace("{0}",s):" "+Object(n.a)("review_display.4.0.common.years_ago",t).replace("{0}",s)}return a};function c(e,t){try{var r=new URL(e);return r.searchParams.set("pr_rd_page",t),r.toString()}catch(t){return e}}function l(e){var t=e.pageSize,r=e.currentPage;return"/m/"+e.MERCHANT_ID+"/l/"+e.LOCALE+"/product/"+e.PAGE_ID+"/reviews?paging.from="+(r-2)*t+"&paging.size="+t}},function(e,t,r){var n=r(71),a=r(80),i=r(134);e.exports=n?function(e,t,r){return a.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n,a,i,o=r(279),s=r(45),c=r(56),l=r(100),u=r(57),p=r(182),d=r(159),f=s.WeakMap;if(o){var m=new f,h=m.get,v=m.has,g=m.set;n=function(e,t){return g.call(m,e,t),t},a=function(e){return h.call(m,e)||{}},i=function(e){return v.call(m,e)}}else{var b=p("state");d[b]=!0,n=function(e,t){return l(e,b,t),t},a=function(e){return u(e,b)?e[b]:{}},i=function(e){return u(e,b)}}e.exports={set:n,get:a,has:i,enforce:function(e){return i(e)?a(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},function(e,t,r){var n=r(73),a=r(45),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e])||i(a[e]):n[e]&&n[e][t]||a[e]&&a[e][t]}},function(e,t,r){var n=r(93);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,a){return e.call(t,r,n,a)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){var n=r(103),a=r(135),i=r(63),o=r(58),s=r(140),c=[].push,l=function(e){var t=1==e,r=2==e,l=3==e,u=4==e,p=6==e,d=5==e||p;return function(f,m,h,v){for(var g,b,y=i(f),_=a(y),w=n(m,h,3),E=o(_.length),O=0,S=v||s,C=t?S(f,E):r?S(f,0):void 0;E>O;O++)if((d||O in _)&&(b=w(g=_[O],O,y),e))if(t)C[O]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return O;case 2:c.call(C,g)}else if(u)return!1;return p?-1:l||u?u:C}};e.exports={forEach:l(0),pwrMap:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},function(e,t,r){"use strict";var n=r(7),a=r.n(n),i=r(0),o=r.n(i),s=function(e){function t(){return e.apply(this,arguments)||this}return a()(t,e),t.prototype.render=function(){return o.a.createElement("span",{className:"pr-checkbox-icon"},o.a.createElement("svg",{viewBox:"0 0 176 176",focusable:"false","aria-hidden":"true"},o.a.createElement("circle",{fill:this.props.invert?"#0A8900":"transparent",stroke:this.props.invert?"white":"#0A8900",strokeWidth:"8",cx:"88",cy:"88",r:"81.2"}),o.a.createElement("path",{fill:this.props.invert?"white":"#0A8900",stroke:this.props.invert?"white":"#0A8900",strokeWidth:this.props.invert?5:1,d:"M77.2 121.3L43 87.2l5.5-5.6 28.7 28.6 50.3-50.3 5.5 5.6"})))},t}(r(83).a);t.a=s},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(16),o=r.n(i),s=r(0),c=r.n(s),l=(r(9),r(10)),u=r.n(l),p=function(e){var t=e.showWhite,r=e.className,n=o()(e,["showWhite","className"]);return c.a.createElement("svg",a()({viewBox:"0 0 256 256",focusable:"false"},n,{className:u()("pr-icon pr-icon-instagram pr-instagram-icon",r)}),c.a.createElement("g",null,c.a.createElement("path",{fill:t?"white":"#0A0A08",d:"M128,23.1c34.2,0,38.2,0.1,51.7,0.7c12.5,0.6,19.3,2.7,23.8,4.4c6,2.3,10.2,5.1,14.7,9.6s7.3,8.7,9.6,14.7   c1.8,4.5,3.8,11.3,4.4,23.8c0.6,13.5,0.7,17.5,0.7,51.7s-0.1,38.2-0.7,51.7c-0.6,12.5-2.7,19.3-4.4,23.8c-2.3,6-5.1,10.2-9.6,14.7   c-4.5,4.5-8.7,7.3-14.7,9.6c-4.5,1.8-11.3,3.8-23.8,4.4c-13.5,0.6-17.5,0.7-51.7,0.7s-38.2-0.1-51.7-0.7   c-12.5-0.6-19.3-2.7-23.8-4.4c-6-2.3-10.2-5.1-14.7-9.6c-4.5-4.5-7.3-8.7-9.6-14.7c-1.8-4.5-3.8-11.3-4.4-23.8   c-0.6-13.5-0.7-17.5-0.7-51.7s0.1-38.2,0.7-51.7c0.6-12.5,2.7-19.3,4.4-23.8c2.3-6,5.1-10.2,9.6-14.7s8.7-7.3,14.7-9.6   c4.5-1.8,11.3-3.8,23.8-4.4C89.8,23.2,93.8,23.1,128,23.1 M128,0C93.2,0,88.9,0.1,75.2,0.8C61.6,1.4,52.3,3.6,44.2,6.7   c-8.4,3.3-15.6,7.6-22.7,14.8S10,35.7,6.7,44.2c-3.2,8.1-5.3,17.4-5.9,31.1C0.1,88.9,0,93.2,0,128s0.1,39.1,0.8,52.8   c0.6,13.6,2.8,22.9,5.9,31.1c3.3,8.4,7.6,15.6,14.8,22.7c7.1,7.1,14.3,11.5,22.7,14.8c8.1,3.2,17.4,5.3,31.1,5.9   c13.7,0.6,18,0.8,52.8,0.8s39.1-0.1,52.8-0.8c13.6-0.6,22.9-2.8,31.1-5.9c8.4-3.3,15.6-7.6,22.7-14.8c7.1-7.1,11.5-14.3,14.8-22.7   c3.2-8.1,5.3-17.4,5.9-31.1c0.6-13.7,0.8-18,0.8-52.8s-0.1-39.1-0.8-52.8c-0.6-13.6-2.8-22.9-5.9-31.1c-3.3-8.4-7.6-15.6-14.8-22.7   S220.3,10,211.8,6.7c-8.1-3.2-17.4-5.3-31.1-5.9C167.1,0.1,162.8,0,128,0z M128,62.3c-36.3,0-65.7,29.4-65.7,65.7   s29.4,65.7,65.7,65.7s65.7-29.4,65.7-65.7S164.3,62.3,128,62.3z M128,170.7c-23.6,0-42.7-19.1-42.7-42.7s19.1-42.7,42.7-42.7   s42.7,19.1,42.7,42.7S151.6,170.7,128,170.7z M211.7,59.7c0,8.5-6.9,15.4-15.4,15.4S181,68.2,181,59.7s6.9-15.4,15.4-15.4   S211.7,51.2,211.7,59.7z"})))};p.defaultProps={showWhite:!1},t.a=p},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(3),o=r.n(i),s=r(7),c=r.n(s),l=r(2),u=r.n(l),p=r(0),d=r.n(p),f=(r(9),r(17)),m=r(97),h=r(10),v=r.n(h),g=r(16),b=r.n(g),y=r(216);function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach(function(t){u()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var E=d.a.forwardRef(function(e,t){var r=e.isFlagging,n=e.media,i=e.readReviewID,o=b()(e,["isFlagging","media","readReviewID"]);return n?d.a.createElement(y.a,a()({},w(w({},o),{},{media:n,readReviewID:i}),{className:i||r?"pr-media-card-out":"pr-media-card-in",forwardedRef:t,"aria-label":e["aria-label"]})):null}),O=r(1),S=d.a.forwardRef(function(e,t){var r=e.media,n=e.localizations;if(!r)return null;var a,i=r.type,o=r.image,s=r.headline,c=r.disclosure_code,l=r.youtubeID;return"image"===i&&(a=d.a.createElement("img",{className:"slide__img",src:o,alt:r.caption||Object(O.a)("collect_display.collect.media.media_caption",n),ref:t,tabIndex:"-1"})),"yt"===i&&(a=d.a.createElement("section",{className:"pr-rid-tile pr-video-tile",ref:t,tabIndex:"-1"},d.a.createElement("iframe",{title:"YouTube video "+l,height:"100%",width:"100%",src:"//youtube.com/embed/"+l}),s)),"cvideo"===i&&(a=d.a.createElement("section",{className:"pr-rid-tile pr-video-tile",ref:t,tabIndex:"-1"},d.a.createElement("video",{height:"85%",width:"auto",controls:!0,preload:"metadata"},d.a.createElement("source",{src:o,type:"video/mp4"})),s)),d.a.createElement(p.Fragment,null,a,c&&d.a.createElement("p",null,Object(O.a)("review_display.4.0.disclosure."+c,n)))}),C=r(78),j=r(123),x=r(77),k=function(e){var t=e.ratingMaxValue,r=e.ratingValue,n=e.containerClassName,a=[],i=t-r;if(e.isAbbreviated)a.push(d.a.createElement(x.a,{key:"full-star"+r,filledPercent:100,size:24}));else{for(var o=0,s=r;o<s;o++)a.push(d.a.createElement(x.a,{key:"full-star"+o,filledPercent:100,size:24}));for(var c=0,l=i;c<l;c++)a.push(d.a.createElement(x.a,{key:"empty-star"+c,filledPercent:0,size:24}))}return d.a.createElement("div",{"aria-hidden":"true",className:"pr-rid-star-rating "+n},d.a.createElement("div",{"aria-hidden":"true",className:"pr-rid-stars"},a),d.a.createElement("div",{"aria-hidden":"true",className:"pr-rid-rating"},r))};k.defaultProps={size:"normal",ratingValue:0,ratingMaxValue:5,containerClassName:"pr-white-stars",isAbbreviated:!1};var I=k,P=r(32),T=function(e){var t=e.localizations,r=e.onHelpfulVoting,n=e.flaggedContent,a=e.helpfulContent,i=e.unhelpfulContent,o=e.media,s=e.enableFlaggingAndVoting,c=e.openFlaggingForm,l=o.type,u=o.id,p=o.helpful_votes,f=o.not_helpful_votes,m=o.rating,h=o.headline,g=n.indexOf(u)>-1,b=a.indexOf(u)>-1,y=i.indexOf(u)>-1,_=b||y,w=v()("pr-helpful-btn pr-helpful-yes",{"pr-helpful-active":b}),E=v()("pr-helpful-btn pr-helpful-no",{"pr-helpful-active":y}),O=b?p+1:p,S=y?f+1:f;return d.a.createElement("footer",{className:"carousel__footer theme--dark"},d.a.createElement("div",{className:"pr-rid-star-container"},m&&d.a.createElement(I,{containerClassName:"pr-white-stars",ratingValue:m,fullStarType:"starFillWhite",emptyStarType:"starStrokeWhite",localizations:t})),d.a.createElement("span",null,h),s&&"image"===l&&d.a.createElement("div",{className:"carousel__footer--flagging"},d.a.createElement("div",{className:"pr-rd-helpful-action"},d.a.createElement("span",{className:"pr-rd-helpful-text pr-rd-bold"},"Helpful?"),d.a.createElement("button",{type:"button",title:_?"already voted":"click for helpful vote","aria-label":_?"already voted":"click for helpful vote",className:w,tabIndex:"0",onClick:function(){return r(u,P.d)},disabled:_},d.a.createElement(C.a,{thumbDirection:"up"}),d.a.createElement("span",{className:"pr-helpful-count"},O)),d.a.createElement("button",{type:"button",title:_?"already voted":"click for unhelpful vote","aria-label":_?"already voted":"click for unhelpful vote",className:E,tabIndex:"0",onClick:function(){return r(u,P.i)},disabled:_},d.a.createElement(C.a,{thumbDirection:"down"}),d.a.createElement("span",{className:"pr-helpful-count"},S))),d.a.createElement("aside",{className:"pr-rd-flag-image-container"},g?d.a.createElement("div",null,d.a.createElement(j.a,null),d.a.createElement("p",{className:"pr-flag-image-thankyou"},"image flagged")):d.a.createElement("a",{href:"#","aria-label":"Flag",tabIndex:"0",role:"button",onClick:function(e){return c(e,u)},onKeyDown:function(){}},"flag this image"))))},R=r(61),N=r(5),A=r(12),D=r(14),L=r(148);r(380);var M=function(e){var t=Object(D.e)(e.config.page_id,e.type||A.e),r=Object(p.useState)(e.startingIndex||0),n=r[0],i=r[1],o=Object(p.useState)(null),s=o[0],c=o[1],l=d.a.createRef();Object(p.useEffect)(function(){var e;null===(e=l.current)||void 0===e||e.focus()},[l]);var u=function(r){void 0===r&&(r="right");var a=e.handleCarouselChange;if(!s){t("right"===r?D.a.IMAGES_CLICK_NEXT:D.a.IMAGES_CLICK_PREV);var o="right"===r?1:-1;a&&a(n+o),c(r),setTimeout(function(){c(null),i(function(e){return e+o})},500)}},f=Object(L.useSwipeable)({onSwipedLeft:function(){n+1<h.length&&u("right")},onSwipedRight:function(){n>0&&u("left")},preventDefaultTouchmoveEvent:!0}),m=function(t){var r=e.localizations,n="prev"===t?Object(O.a)("review_display.4.0.modal.button.previous",r):Object(O.a)("review_display.4.0.modal.button.next",r),a="prev"===t?"left":"right";return d.a.createElement("button",{type:"button","aria-label":n,className:"button button--dark button__"+t,onClick:function(){return u(a)}},d.a.createElement("span",{className:"icon icon--dark icon__"+t},d.a.createElement(R.a,{circleOutline:!0})))},h=e.media,g=e.theme,b=e.merchantProperties,y=e.localizations,_=e.flaggedContent,w=e.helpfulContent,C=e.unhelpfulContent,j=e.isFlagging,x=e.openFlaggingForm,k=e.onHelpfulVoting,I=e.readReviewID;if(!h[n])return null;var P="Legacy"!==Object(N.b)("PUFFERFISH_KILLER_STATUS",b),M=n>0&&!j&&!I,F=n+1<h.length&&!j&&!I;return d.a.createElement("section",{className:"dark"===g?"pr-media-carousel":"pr-media-carousel--light",onKeyDown:function(t){var r=e.media;37===t.keyCode&&n>0?u("left"):39===t.keyCode&&n+1<r.length&&u("right")}},M&&m("prev"),d.a.createElement("section",{className:"carousel__body carousel__body--"+g},function(t){var r,i=e.theme,o=e.media,c=e.flaggedContent,u=e.helpfulContent,m=e.unhelpfulContent,h=e.localizations,g=e.config,b=e.merchantProperties,y=e.openFlaggingForm,_=e.isFlagging,w=e.onHelpfulVoting,O=e.allowHelpfulVoting,C=e.showShoppableLink,j=e.onReadReviewFromGallery,x=e.readReviewID,k=e.allowReadReview,I=v()("slide slide__left slide--dark",{"slide__left--active":"left"===s}),P=v()("slide slide__center slide--dark",((r={})["slide__center-"+s+"--active"]=s,r)),T=v()("slide slide__right slide--dark",{"slide__right--active":"right"===s}),R={flaggedContent:c,helpfulContent:u,unhelpfulContent:m,localizations:h,config:g,merchantProperties:b,enableFlaggingAndVoting:t,allowHelpfulVoting:O,showShoppableLink:C,allowReadReview:k};return d.a.createElement(p.Fragment,null,d.a.createElement("div",{className:I,"aria-hidden":"true"},"light"===i?d.a.createElement(E,a()({media:o[n-1]},R)):d.a.createElement(S,a()({media:o[n-1]},R))),d.a.createElement("div",a()({className:P},f),"light"===i?d.a.createElement(E,a()({primarySlide:!0,media:o[n],ref:l,"aria-label":n+1+" of "+o.length},R,{isFlagging:_,openFlaggingForm:y,onHelpfulVoting:w,onReadReviewFromGallery:j,readReviewID:x})):d.a.createElement(S,a()({media:o[n],ref:l},R))),d.a.createElement("div",{className:T,"aria-hidden":"true"},"light"===i?d.a.createElement(E,a()({media:o[n+1]},R)):d.a.createElement(S,a()({media:o[n+1]},R))))}(P)),F&&m("next"),"dark"===g&&d.a.createElement(T,a()({enableFlaggingAndVoting:P,localizations:y,flaggedContent:_,helpfulContent:w,unhelpfulContent:C,onHelpfulVoting:k,openFlaggingForm:x},{media:h[n]})))},F=r(132),z=r(74),V=r(21),U=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,u()(o()(t),"sendBeacon",function(e){t.context(t.props.config.page_id,t.props.type||A.e,e)}),u()(o()(t),"state",{isFlagging:!1,flaggingID:null,reviewFlagging:!1,readReviewID:null}),u()(o()(t),"openFlaggingForm",function(e,r,n){void 0===n&&(n=!1),e&&e.preventDefault(),t.setState({isFlagging:!0,flaggingID:r,reviewFlagging:n})}),u()(o()(t),"readReviewFromGallery",function(e){t.setState({readReviewID:e})}),u()(o()(t),"closeReview",function(e){e&&e.preventDefault(),t.setState({readReviewID:null})}),u()(o()(t),"onFlaggingFormSubmit",function(e){e.preventDefault();for(var r=t.props,n=r.flagContent,a=r.config,i=r.merchantProperties,o=Object(N.a)(i).PUFFERFISH_KILLER_STATUS,s={},c=0,l=e.target.elements.length;c<l;c++){var u=e.target.elements[c].type,p=e.target.elements[c].value;"text"===u&&(s.contact_email=p),e.target.elements[c].checked&&(s.flag_type=p.toLowerCase()),"textarea"===u&&(s.flag_comment=p)}n(t.state.flaggingID,a,s,o),t.setState({isFlagging:!1,flaggingID:null})}),u()(o()(t),"onHelpfulVoting",function(e,r){var n=t.props,a=n.voteContent,i=n.config,o=n.merchantProperties;a(e,i,r,Object(N.a)(o).PUFFERFISH_KILLER_STATUS)}),u()(o()(t),"renderFlaggingModal",function(e,r){var n=t.props,a=n.localizations,i=n.merchantProperties,o=n.config,s=n.flagContent,c=t.state,l=c.isFlagging,u=c.reviewFlagging;if(!l&&!e)return null;var p=Object(N.a)(i).PUFFERFISH_KILLER_STATUS;return d.a.createElement("div",{role:"dialog","aria-modal":"true","aria-label":"Flag image dialog",className:"pr-modal-flagging-form pr-modal-flagging-form--"+r+" pr-modal-flagging-form--"+r+"-"+(l?"in":"out")},d.a.createElement("div",{className:"pr-inner-flagging-form-container"},d.a.createElement(z.a,{localizations:a,onSubmit:function(e){return s(t.state.flaggingID,o,e,p)},onClose:function(){return t.setState({isFlagging:!1,flaggingID:null})},isImageForm:!u})))}),t}c()(t,e);var r=t.prototype;return r.componentDidMount=function(){this.sendBeacon(D.a.IMAGES_CLICK_IMAGE_TO_OPEN)},r.render=function(){var e=this.props,t=e.handleClose,r=e.localizations,n=e.config,i=e.type,o=e.merchantProperties,s=e.media,c=e.startingIndex,l=e.flaggedContent,u=e.helpfulContent,p=e.unhelpfulContent,f=e.handleCarouselChange,h=e.allowHelpfulVoting,v=e.showShoppableLink,g=e.allowReadReview,b=this.state,y=b.isFlagging,_=b.readReviewID,w="CARD"===Object(N.a)(o,n).REVIEW_MEDIA_MODAL_STYLE,E=w?"light":"dark";return d.a.createElement("section",null,d.a.createElement(m.a,a()({localizations:r,handleClose:t},{enableCloseButton:!y,enableBackgroundClose:!0,"aria-roledescription":"carousel","aria-label":Object(O.a)("review_display.4.0.image_display.consumer_photos",r)}),d.a.createElement(M,a()({localizations:r,config:n,type:i,merchantProperties:o,media:s,startingIndex:c,flaggedContent:l,helpfulContent:u,unhelpfulContent:p,theme:E,isFlagging:y,handleCarouselChange:f,allowHelpfulVoting:h,showShoppableLink:v,readReviewID:_,allowReadReview:g},{openFlaggingForm:this.openFlaggingForm,onHelpfulVoting:this.onHelpfulVoting,onReadReviewFromGallery:this.readReviewFromGallery})),this.renderFlaggingModal(w,E),d.a.createElement(F.a,a()({config:n,type:i,isFlagging:y},{singleReviewID:_,openFlaggingForm:this.openFlaggingForm,showMedia:!1,topContent:d.a.createElement("button",{className:"pr-back-to-media",type:"button",onClick:this.closeReview},Object(O.a)("review_display.4.0.modal.back_to_media",r))}))))},t}(p.Component);u()(U,"defaultProps",{allowHelpfulVoting:!0,allowReadReview:!0}),u()(U,"contextType",D.c);var q={flagContent:V.o,voteContent:V.w};t.a=Object(f.b)(function(e){return{flaggedContent:e.Reviews.flaggedContent,helpfulContent:e.Reviews.helpfulContent,unhelpfulContent:e.Reviews.unhelpfulContent}},q)(U)},function(e,t,r){"use strict";r.d(t,"e",function(){return s}),r.d(t,"c",function(){return l}),r.d(t,"b",function(){return p}),r.d(t,"a",function(){return m}),r.d(t,"d",function(){return f});var n=r(219),a=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function o(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function s(e,t,r){var a;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function");if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(s)(e,t)}if("function"!=typeof e)throw new Error("Expected the pwrReducer to be a function.");var c=e,l=t,u=[],p=u,d=!1;function f(){p===u&&(p=u.slice())}function m(){if(d)throw new Error("You may not call store.getState() while the pwrReducer is executing. The pwrReducer has already received the state as an argument. Pass it down from the top pwrReducer instead of reading it from the store.");return l}function h(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the pwrReducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return f(),p.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the pwrReducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,f();var r=p.indexOf(e);p.splice(r,1)}}}function v(e){if(!o(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,l=c(l,e)}finally{d=!1}for(var t=u=p,r=0;r<t.length;r++){(0,t[r])()}return e}return v({type:i.INIT}),(a={dispatch:v,subscribe:h,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");c=e,v({type:i.REPLACE})}})[n.a]=function(){var e,t=h;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function r(){e.next&&e.next(m())}return r(),{unsubscribe:t(r)}}})[n.a]=function(){return this},e},a}function c(e,t){var r=t&&t.type;return"Given "+(r&&'action "'+String(r)+'"'||"an action")+', pwrReducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this pwrReducer to hold no value, you can return null instead of undefined.'}function l(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var a=t[n];0,"function"==typeof e[a]&&(r[a]=e[a])}var o,s=Object.keys(r);try{!function(e){Object.keys(e).forEach(function(t){var r=e[t];if(void 0===r(void 0,{type:i.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the pwrReducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this pwrReducer, you can use null instead of undefined.");if(void 0===r(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+i.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}(r)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var n=!1,a={},i=0;i<s.length;i++){var l=s[i],u=r[l],p=e[l],d=u(p,t);if(void 0===d){var f=c(l,t);throw new Error(f)}a[l]=d,n=n||d!==p}return n?a:e}}function u(e,t){return function(){return t(e.apply(this,arguments))}}function p(e,t){if("function"==typeof e)return u(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var r=Object.keys(e),n={},a=0;a<r.length;a++){var i=r[a],o=e[i];"function"==typeof o&&(n[i]=u(o,t))}return n}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.pwrReduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function m(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},a={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},i=t.pwrMap(function(e){return e(a)});return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){d(e,t,r[t])})}return e}({},r,{dispatch:n=f.apply(void 0,i)(r.dispatch)})}}}},function(e,t,r){"use strict";r.d(t,"a",function(){return i}),r.d(t,"b",function(){return o});var n=r(173),a=r.n(n);function i(e,t,r){var n;return function(){var a=this,i=arguments,o=r&&!n;clearTimeout(n),n=setTimeout(function(){n=null,r||e.apply(a,i)},t),o&&e.apply(a,i)}}function o(e,t,r){var n=[];return function(){for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];for(var l=0;l<n.length;++l){var u=n[l],p=u[0],d=u[1];if(a()(s,p))return d.apply(void 0,s)}var f=i(e,t,r);return n.push([s,f]),f.apply(void 0,s)}}},function(e,t,r){"use strict";function n(e,t){var r=t.ENABLE_CONTENT_TRANSLATION,n=void 0!==r&&r,a=t.CONTENT_TRANSLATION_LANGUAGES,i=void 0===a?"":a;return!0===n&&("string"==typeof i&&""!==i&&i.split(",").some(function(t){return t.trim()===e}))}r.d(t,"a",function(){return n})},function(e,t,r){"use strict";r.d(t,"b",function(){return g}),r.d(t,"a",function(){return y});var n=r(2),a=r.n(n),i=r(4),o=r(5),s=r(35);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){a()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var u="NO_COOKIES",p="DISABLED",d={uidCookiePrefix:"__pr.",uidLength:10,uidCookieExpiration:63072e3,userTrackingDomain:"",trackingPixelUrl:"//t.powerreviews.com/t/v1.gif"},f={event:"e",eventType:"et",userId:"uid",time:"t",locale:"l",merchantGroupId:"mgid",merchantId:"mid",pageId:"pid",pageIdVariant:"pidv",siteId:"sid",pageUrl:"p",referrerUrl:"r",reviewCount:"rc",starRating:"s",inlineSEO:"i",engineVersion:"v",questionCount:"qc",answerCount:"ac",visible:"vis",synMerchantId:"symid",synSharedReviewIds:"sysrids",synReviewsOnPageCount:"syropc",compact:"c",profileId:"prid",displayVersion:"v",eventFlow:"ef",orderId:"oid",orderSubtotal:"os",orderNumberOfItems:"on",orderItems:"oi",merchantUserId:"muid",userEmail:"ue",userFirstName:"uf",userLastName:"ul",userFullName:"un",marketingOptIn:"mo",productBrandName:"bn",productName:"n",productDescription:"d",productUrl:"pu",productImageUrl:"iu",productPrice:"pri",productCategoryName:"cn",productInStock:"is",productManufacturerId:"mi",productUpc:"upc",productAddToCartUrl:"atcu",testGroup:"tg",rypSort:"sort",rypPageIds:"pids",rypCompletedStep:"step",asin:"asn",bestBuySku:"stbb",coolBlueSku:"stcb"},m=function(e,t){var r=d.uidCookiePrefix+parseInt(e,10).toString(36);if(t)return"no_cookie";var n=Object(i.n)(r);return n||(n=Object(i.m)(d.uidLength)),Object(i.E)(r,n,d.uidCookieExpiration,function(){var e=d.userTrackingDomain;return(e=e&&e.replace(/^\s+|\s+$/g,""))?("."!==e.charAt(0)&&(e="."+e),e):null}()),n},h=function(e){var t=[];return Object.keys(e).forEach(function(r){var n=e[r];Object(i.y)(n)&&t.push(encodeURIComponent(f[r]||r)+"="+function e(t,r){void 0===r&&(r=0);var n=[],a=[";",","];if(Object(i.A)(t,"array")&&r<a.length){for(var o=0;o<t.length;o++)n.push(e(t[o],r+1));return n.join(a[r])}return Object(i.A)(t,"boolean")?t?"y":"n":Object(i.y)(t)?encodeURIComponent(t):""}(n))}),t.join("&")},v=function(e,t,r){void 0===r&&(r=!1);var n=Object(o.a)(window.POWERREVIEWS.config,t).SM_DATA;if(n===p&&"fp"!==e)return!1;var a=t.merchantGroupId||window.POWERREVIEWS.config&&window.POWERREVIEWS.config.merchant_group_id,s=!1;n!==u&&n!==p||(s=!0);var c=m(a,s),l={event:e,id:Object(i.m)(d.uidLength),time:(Date.now&&"number"==typeof Date.now()?Date.now():+new Date).toString(36),userId:c,merchantGroupId:a};return l=Object(i.B)(l,t),t,function(e,t){if(void 0===t&&(t=!1),Object(o.b)("pr_disable_sm"))return!1;if("undefined"!=typeof Image){var r=h(e);if(t){var n=Object(i.f)(decodeURIComponent(r));r="rwp_xe="+encodeURIComponent(n)}return(new Image).src=d.trackingPixelUrl+"?"+r}}(l,r)},g=function(e,t,r){void 0===r&&(r=!1);var n=Object(i.B)({pageUrl:window.document.location.href,referrerUrl:window.document.referrer},t);return v(e,n,r)},b=function(e,t){var r=Object(o.b)("pr_product",t),n=null;return r&&(n=r[e]),void 0!==n&&null!==n||(n=Object(o.b)("pr_product_"+e,t)),n},y=function(e,t){if(void 0===t&&(t=!1),Object(o.b)("sm_data",e)!==p){t||_(e);var r=Object(o.a)(e),n=r.PAGE_ID,a=r.PAGE_ID_VARIANT,i=r.LOCALE,c=r.SITE_ID,u=r.MERCHANT_ID,d={pageId:n,pageIdVariant:a,locale:i,productBrandName:b("brand_name",e),productName:b("name",e),productDescription:b("description",e)?b("description",e).substr(0,300):null,productUrl:b("url",e),productImageUrl:b("image_url",e),productPrice:b("price",e),productCategoryName:b("category_name",e),productInStock:b("in_stock",e),productManufacturerId:b("manufacturer_id",e),productUpc:b("upc",e),productAddToCartUrl:b("add_to_cart_url",e),asin:b("asin",e),bestBuySku:b("best_buy_sku",e),coolBlueSku:b("cool_blue_sku",e)};if(c?d.sid=c:d.mid=u,window.sessionStorage&&!t){var f=Object(o.a)(e),m=f.MERCHANT_ID,h=f.MERCHANT_GROUP_ID,v=f.SITE_ID,y=f.PAGE_ID,w=f.PAGE_ID_VARIANT;try{var E=s.a.parse(window.sessionStorage.getItem("powerreviews"));E={currentProductInformation:{merchant_id:m,merchant_group_id:h,site_id:v,page_id:y,page_id_variant:w,pr_product_brand_name:b("brand_name",e),pr_product_name:b("name",e),pr_product_description:b("description",e),pr_product_url:b("url",e),pr_product_image_url:b("image_url",e),pr_product_price:b("price",e),pr_product_category_name:b("category_name",e),pr_product_in_stock:b("in_stock",e),pr_product_manufacturer_id:b("manufacturer_id",e),pr_product_upc:b("upc",e),pr_product_add_to_cart_url:b("add_to_cart_url",e),asin:b("asin",e),best_buy_sku:b("best_buy_sku",e),cool_blue_sku:b("cool_blue_sku",e)}},window.sessionStorage.setItem("powerreviews",s.a.stringify(E))}catch(e){}}var O=function(e){var t=Object(o.b)("merchant_group_id",e),r=["13822","14243","17259","13669","13841","47680","13842","13863","47414","13784","13785","47739","47741","47745","17293","13823"].some(function(e){return t&&e===t.toString()});return!(!e.pr_ox&&!r)}(e);return g("fp",l(l({},d),{},{sm_data:Object(o.b)("sm_data",window.POWERREVIEWS.config,e)}),O)}},_=function(e){var t=[];return e.product&&e.product.variants&&e.product.variants.length>0&&e.product.variants.sort(function(){return.5-Math.random()}).slice(0,3).forEach(function(r){var n=l(l({},e),{},{pr_page_id_variant:r.page_id_variant,product:l(l({},e.product),r)});t.push(y(n,!0))}),t}},function(e,t,r){for(var n=self.crypto||self.msCrypto,a="-_",i=36;i--;)a+=i.toString(36);for(i=36;i---10;)a+=i.toString(36).toUpperCase();e.exports=function(e){var t="",r=n.getRandomValues(new Uint8Array(e||21));for(i=e||21;i--;)t+=a[63&r[i]];return t}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=!1},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(80).f,a=r(57),i=r(39)("toStringTag");e.exports=function(e,t,r){e&&!a(e=r?e:e.prototype,i)&&n(e,i,{configurable:!0,value:t})}},function(e,t,r){var n=r(113);e.exports=Array.isArray||function(e){return"Array"==n(e)}},,function(e,t,r){"use strict";var n=r(3),a=r.n(n),i=r(7),o=r.n(i),s=r(2),c=r.n(s),l=r(0),u=r.n(l),p=(r(9),r(11)),d=r(1),f=r(120),m=r(4),h=r(5),v=r(28),g=r(121),b=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=e.call.apply(e,[this].concat(n))||this,c()(a()(t),"showDefaultProductImage",function(){t.productImage&&(t.productImage.src=v.b.DEFAULT_PRODUCT_IMAGE,t.productImage.alt=Object(d.a)("collect_display.media.product_unavailable",t.props.localizations))}),t}o()(t,e);var r=t.prototype;return r.findMerchantImagePath=function(){var e=this.props.merchant;if(window.POWERREVIEWS.display&&window.POWERREVIEWS.display.standalone)return e.small_logo_image_url&&"//qaimages.powerreviews.com"!==e.small_logo_image_url?e.small_logo_image_url:e.large_logo_image_url&&"//qaimages.powerreviews.com"!==e.large_logo_image_url?e.large_logo_image_url:null},r.render=function(){var e,t,r=this.props,n=r.product,a=r.config,i=r.merchant,o=void 0===i?{}:i,s=r.localizations,c=Object(h.a)(o.configuration,a).DISABLE_CD4_HEADING_STRUCTURES,l=m.k(n),v=this.findMerchantImagePath(),b=!!Object(h.b)("enable_enhanced_content_security",o.configuration,a,!0);return n.name&&(e=n.full_product_url&&!b?u.a.createElement(p.a,{importance:5,shouldUseSpan:c,className:"pr-header-product-name"},u.a.createElement("a",{className:"pr-underline",href:n.full_product_url},n.name)):u.a.createElement(p.a,{importance:5,shouldUseSpan:c,className:"pr-header-product-name"},n.name)),v&&(t=u.a.createElement("div",{className:"pr-header-merchant-img pr-logo-merchant-group-"+(a.merchant_group_id||"")+" pr-logo-merchant-"+(a.merchant_id||"")},u.a.createElement(f.a,{alt:o.name||Object(d.a)("collect_display.media.merchant_logo",s),src:v}))),u.a.createElement("div",{className:"pr-header"},t,u.a.createElement("div",{className:"pr-table pr-header-table"},u.a.createElement("div",{className:"pr-table-cell pr-header-product-img"},u.a.createElement(g.a,{src:l,alt:Object(d.a)("collect_display.media.product_image",s),errorAlt:Object(d.a)("collect_display.media.product_unavailable",s)})),u.a.createElement("div",{className:"pr-table-cell"},u.a.createElement(p.a,{importance:3,shouldUseSpan:c,className:"pr-header-title"},Object(d.a)("page_header.headline",s.write_a_review||{"page_header.headline":""})),u.a.createElement(p.b,null,e))))},t}(u.a.Component);t.a=b},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(3),o=r.n(i),s=r(7),c=r.n(s),l=r(2),u=r.n(l),p=r(0),d=r.n(p),f=(r(9),r(26)),m=r.n(f),h=function(e){function t(t){var r;return r=e.call(this,t)||this,u()(o()(r),"imageError",function(){r.setState({error:!0})}),r.state={error:null},r}c()(t,e);var r=t.prototype;return r.componentDidMount=function(){window.addEventListener?m.a.findDOMNode(this).addEventListener("error",this.imageError,!1):m.a.findDOMNode(this).attachEvent("error",this.imageError)},r.componentWillUnmount=function(){window.removeEventListener?m.a.findDOMNode(this).removeEventListener("error",this.imageError,!1):m.a.findDOMNode(this).detachEvent("error",this.imageError)},r.render=function(){return this.state.error?d.a.createElement("div",{className:"pr-hidden"}):d.a.createElement("img",a()({alt:this.props.alt,src:this.props.src},this.props))},t}(d.a.Component);t.a=h},function(e,t,r){"use strict";r.d(t,"a",function(){return p});var n=r(8),a=r.n(n),i=r(16),o=r.n(i),s=r(0),c=r.n(s),l=r(28);function u(e){return(e=e||"")?l.b.removeDefaultImageParameter(e):l.b.DEFAULT_PRODUCT_IMAGE}function p(e){var t=e.alt,r=e.errorAlt,n=e.src,i=o()(e,["alt","errorAlt","src"]),p=Object(s.useState)(u(n)),d=p[0],f=p[1],m=l.b.isDefaultImage(d);return Object(s.useEffect)(function(){f(u(n))},[n]),c.a.createElement("img",a()({alt:m?r:t,src:d,onError:function(){f(l.b.DEFAULT_PRODUCT_IMAGE)}},i))}},function(e,t,r){"use strict";var n=r(3),a=r.n(n),i=r(7),o=r.n(i),s=r(2),c=r.n(s),l=r(1),u=r(0),p=r.n(u),d=(r(9),r(20)),f=r(18),m=r(10),h=r.n(m),v=r(13);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){c()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var y=function(e){function t(t){var r;return r=e.call(this,t)||this,c()(a()(r),"radioBtnId",Object(v.f)()),c()(a()(r),"focus",function(){r.button0&&r.button0.focus()}),r.state={value:null,selectedOption:"",hasSelection:t.choices&&t.choices.some(function(e){return e.checked})},r}o()(t,e);var r=t.prototype;return r.clearSelection=function(){var e=this.props.choices.pwrMap(function(e){return b(b({},e),{},{checked:!1})});this.selectedButton&&this.selectedButton.focus(),this.setState({hasSelection:!1}),this.updateCollection(this.props.fieldIndex,"",e)},r.handleClickItem=function(e,t){this.selectedButton=t.currentTarget||t.target;var r=this.props.choices[e],n=this.props.choices.slice(0),a=[];a=a.slice(0);for(var i=0;i<n.length;i++)n[i].checked=!1;n[e].checked=!0,a.push({id:r.id,value:r.value}),this.setState({hasSelection:!0}),this.updateCollection(this.props.fieldIndex,a,n),this.forceUpdate()},r.handleChange=function(e){var t=this.props.choices[e];this.setState({selectedOption:t.checked})},r.getInputTypeClassName=function(){switch(this.props.inputType){case"AgeDisclosure":case"RadioVertical":return"pr-btn-group--radio-vertical btn-group-radio-vertical";case"RadioHorizontal":return"pr-btn-group--radio-horizontal btn-group-radio-horizontal";case"RadioHorizontalLinked":return"pr-btn-group--radio-horizontal-linked btn-group-radio-horizontal-linked";default:return""}},r.keyDown=function(e,t){var r=t.keyCode;32!==r&&13!==r||this.handleClickItem(e,t)},r.render=function(){var e=this,t=this.getID(),r=(this.getLabel(),this.getHelperText()),n="pr-btn-group btn-group btn-toggle btn-group-"+this.props.choices.length+"-count "+this.getInputTypeClassName();return p.a.createElement("fieldset",{className:h()("pr-form-group form-group "+t+"-form-group",{"pr-has-error":!this.props.isValid}),id:t},p.a.createElement("legend",{className:d.a.getLabelClass(this.props)},p.a.createElement(f.b,null,p.a.createElement("span",null,this.props.label,d.a.getRequiredIndicator(this.props)),this.props.isValid?null:p.a.createElement(f.a,null)),r),p.a.createElement("div",{className:n,role:"radiogroup"},this.props.choices.pwrMap(function(r,n){var a="btn-group-btn-"+n,i=r.value,o=h()("pr-btn pr-btn-default",{active:r.checked,"pr-invalid-field":!e.props.isValid&&0===n});return p.a.createElement(p.a.Fragment,{key:a},p.a.createElement("input",{id:""+e.radioBtnId+n,name:t,className:"sr-only",checked:e.state.selectedOption===r.checked,"aria-checked":e.state.selectedOption===r.checked,onChange:e.handleChange.pwrBind(e,n),onKeyDown:e.keyDown.pwrBind(e,n),onClick:e.handleClickItem.pwrBind(e,n),type:"radio"}),p.a.createElement("label",{htmlFor:""+e.radioBtnId+n,ref:function(t){return e["button"+n]=t},className:o,"aria-invalid":!e.props.isValid||void 0,dangerouslySetInnerHTML:{__html:i}}))})),this.state.hasSelection&&p.a.createElement("button",{type:"button",className:"pr-clear-all-radios",onClick:this.clearSelection.pwrBind(this)},Object(l.a)("clear_selection",this.props.localizations.write_a_review)))},t}(d.a);t.a=y},function(e,t,r){"use strict";var n=r(0),a=r.n(n);t.a=function(){return a.a.createElement("span",{className:"pr-flag-icon",dangerouslySetInnerHTML:{__html:'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 216 146" enable-background="new 0 0 216 146" focusable="false" xml:space="preserve"><g><path fill="#E0562A" d="M55.4,13.5c-2-2-4.5-3.1-7.4-3.1c-2.9,0-5.3,1-7.4,3.1c-2,2-3.1,4.5-3.1,7.4c0,3.9,1.7,6.9,5.2,9V133c0,0.7,0.3,1.3,0.8,1.8c0.5,0.5,1.1,0.8,1.8,0.8h5.2c0.7,0,1.3-0.3,1.8-0.8c0.5-0.5,0.8-1.1,0.8-1.8V29.8c3.5-2.1,5.2-5.1,5.2-9C58.5,18,57.4,15.5,55.4,13.5z"/><path fill="#E0562A" d="M176.8,22.4c-1-1-2.3-1.5-3.7-1.5c-0.7,0-2.2,0.6-4.4,1.7s-4.6,2.4-7.2,3.8c-2.5,1.4-5.5,2.7-9,3.8c-3.4,1.1-6.6,1.7-9.6,1.7c-2.7,0-5.1-0.5-7.2-1.5c-6.8-3.2-12.8-5.6-17.8-7.2c-5.1-1.6-10.5-2.4-16.3-2.4c-10,0-21.5,3.3-34.3,9.8c-3.2,1.6-5.3,2.7-6.4,3.5c-1.7,1.2-2.5,2.7-2.5,4.5v60.5c0,1.4,0.5,2.6,1.5,3.7c1,1,2.3,1.5,3.7,1.5c0.9,0,1.8-0.2,2.7-0.7c14.8-7.9,27.4-11.9,37.8-11.9c4,0,7.8,0.6,11.6,1.8c3.8,1.2,6.9,2.5,9.4,3.9c2.5,1.4,5.4,2.7,8.8,3.9c3.4,1.2,6.8,1.8,10.1,1.8c8.4,0,18.4-3.1,30.1-9.4c1.5-0.8,2.5-1.5,3.2-2.2s1-1.8,1-3.1V26.1C178.4,24.7,177.9,23.4,176.8,22.4z"/></g></svg>'}})}},function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r(5),a=function(e,t){var r=t.product_information,a=t.progressive_info;if(a&&a.is_progressive_type&&a.current_step>0)return!1;var i=Object(n.a)(),o=i.AUTOSUBMIT,s=void 0===o?"":o,c=i.RATING,l=i.HEADLINE,u=i.COMMENTS;if(!(s&&c&&l&&u))return!1;var p=decodeURIComponent(s).split(":"),d=p[0],f=p[1];return d===r.page_id&&f===(r.variant||"")}},function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r(1),a=function(e){return{carouselLabel:Object(n.a)("review_display.4.0.image_display.consumer_photos",e),prevBtn:Object(n.a)("review_display.4.0.modal.button.previous",e),slideLabel:Object(n.a)("review_display.4.0.modal.media_carousel.slide_label",e),nextBtn:Object(n.a)("review_display.4.0.modal.button.next",e),viewMore:Object(n.a)("review_display.4.0.modal.media_carousel.button.expand_review",e),viewLess:Object(n.a)("review_display.4.0.modal.media_carousel.button.condense_review",e),flagged:Object(n.a)("review_display.4.0.modal.is_flagged",e),flagImage:Object(n.a)("review_display.4.0.modal.flag_image",e),poweredBy:Object(n.a)("review_display.4.0.modal.media_carousel.powered_by",e),shopProducts:Object(n.a)("review_display.4.0.modal.shop_all",e)}}},function(e,t,r){"use strict";r.d(t,"a",function(){return m});var n=r(8),a=r.n(n),i=r(16),o=r.n(i),s=r(0),c=r.n(s),l=r(26),u=r(150),p=r(10),d=r.n(p),f=r(54);function m(e){var t=e.children,r=e.closeBtnText,n=e.handleClose,i=e.isFlagMediaOpen,p=o()(e,["children","closeBtnText","handleClose","isFlagMediaOpen"]),m=Object(s.useRef)(document.createElement("div"));return Object(s.useEffect)(function(){if(null!=m.current){var e=m.current;return e.className="p-w-r",document.body&&document.body.appendChild(e),function(){return e.remove()}}},[]),Object(s.useEffect)(function(){var e=document.body.style.overflowY;return document.body.style.overflowY="hidden",function(){document.body.style.overflowY=e}},[]),Object(l.createPortal)(c.a.createElement(u.a,null,c.a.createElement("div",{className:"p-w-r_future"},c.a.createElement("div",{className:"pr-fixed pr-h-full pr-w-full pr-top-0 pr-left-0 pr-bg-black pr-bg-opacity-90 pr-flex pr-justify-center pr-items-center pr-z-max",onKeyDown:function(e){"Escape"===e.key&&n()}},c.a.createElement("div",{"aria-hidden":"true",className:"pr-modal__backdrop pr-left-0 pr-right-0 pr-bottom-0 pr-top-0 pr-absolute pr-overflow-hidden pr-z-10",onClick:n}),c.a.createElement("button",{type:"button","aria-label":r,className:"pr-modal__close-button pr-absolute pr-top-3 pr-right-3 pr-w-8 pr-h-8 pr-z-30",onClick:n},c.a.createElement(f.e,{className:d()("pr-modal__close-button__icon",{"pr-text-white":!0===i,"pr-text-gray-400 md-modal:pr-text-white":!1===i})})),c.a.createElement("div",a()({"aria-modal":"true",className:"pr-z-20"},p),t)))),m.current)}},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(0),o=r.n(i),s=r(10),c=r.n(s),l=r(54),u=o.a.forwardRef(function(e,t){var r=e.arrowDirection,n=e.labelText,a=e.handleCarouselChange;return o.a.createElement("button",{type:"button",className:c()("pr-media-carousel__nav-button","sm:pr-h-16 sm:pr-w-16 pr-h-10 pr-w-10 pr-absolute pr-top-1/4 pr-z-10 pr-p-2 sm:pr-p-4 pr-bg-white pr-rounded-full md-modal:pr-bg-transparent md-modal:pr-rounded-none md-modal:pr-top-auto",{"pr-media-carousel__nav-button--left sm:pr-left-7 md-modal:pr-left-3 lg:pr-left-10 xl:pr-left-32 pr-left-3 pr-shadow-md md-modal:pr-shadow-none":"left"===r,"pr-media-carousel__nav-button--right sm:pr-right-7 md-modal:pr-right-3 lg:pr-right-10 xl:pr-right-32 pr-right-3 pr-transform pr-rotate-180 pr-shadow-md-rotate md-modal:pr-shadow-none":"right"===r}),ref:t,"aria-label":n,onClick:a},o.a.createElement(l.a,{className:"pr-text-gray-400 md-modal:pr-text-white"}))});function p(e){var t=e.caption,r=e.author,n=e.expandReviewText,a=e.condenseReviewText,s=Object(i.useState)(),l=s[0],u=s[1],p=Object(i.useState)(),d=p[0],f=p[1];return Object(i.useEffect)(function(){null==r&&null==t||(f((null===r||void 0===r?void 0:r.length)+(null===t||void 0===t?void 0:t.length)>115?t.substring(0,115-(null===r||void 0===r?void 0:r.length))+"...":null),u(null!=d))},[r,t,d]),o.a.createElement("div",{className:"pr-media-carousel__caption pr-text-base pr-mt-4 pr-mb-8 pr-break-all"},o.a.createElement("span",{className:"pr-media-carousel__caption__author pr-font-bold pr-text-black pr-pr-2"},r),o.a.createElement("span",{className:"pr-media-carousel__caption__text pr-text-gray-400"},l?d:t),d&&o.a.createElement("button",{className:c()("pr-media-carousel__caption__toggle","pr-underline pr-text-gray-600",{"pr-ml-2 ":!1===l}),onClick:function(){return u(!l)}},l?n:a))}function d(e){var t=e.isFlagged,r=e.flagMediaText,n=e.handleFlagMedia;return t?o.a.createElement("div",{className:"pr-flag-content--flagged pr-flex pr-items-center pr-pr-1 pr-text-red-600"},o.a.createElement(l.b,{className:"pr-w-6 pr-pr-0.5"}),o.a.createElement("div",{className:"pr-flag-content__label pr-font-medium pr-text-xs"},r)):o.a.createElement("div",{className:"pr-flag-content pr-flex pr-items-center pr-pr-1"},o.a.createElement("button",{className:"pr-flag-content__button pr-flex pr-pr-1 pr-text-blue-600",onClick:n},o.a.createElement(l.b,{className:"pr-w-6 pr-pr-0.5"}),o.a.createElement("div",{className:"pr-flag-content__label pr-font-medium pr-text-xs pr-underline pr-text-blue-600 hover:pr-no-underline"},r)))}var f=function(e){var t=e.viewport,r=e.isHelpful,n=e.isUnhelpful,a=e.handleHelpfulVoting,i=e.helpfulVotes,s=e.notHelpfulVotes,u=e.mediaId;return o.a.createElement("div",{className:c()("pr-vote-content","pr-flex pr-border pr-rounded-sm pr-border-gray-300 pr-border-b-2",{"pr-mr-6":"desktop"===t})},o.a.createElement("button",{type:"button",className:c()("pr-vote-content__button pr-vote-content__button--helpful","pr-flex pr-py-1.5 pr-px-2 pr-items-center",{"hover:pr-bg-gray-200 pr-bg-white pr-text-gray-400":!r&&!n,"pr-cursor-default pr-bg-opacity-50":r||n,"pr-text-gray-400":n,"pr-bg-blue-600 pr-text-white":r}),disabled:r||n,onClick:function(){return a(u,"helpful")}},o.a.createElement(l.d,{className:c()("pr-w-8 pr-h-5 pr-pr-1",{"pr-text-white":r,"pr-text-gray-400":!r})}),r?i+1:i||0),o.a.createElement("button",{type:"button",className:c()("pr-vote-content__button pr-vote-content__button--unhelpful","pr-flex pr-border-l pr-border-gray-300 pr-py-1 pr-px-2 pr-items-center",{"hover:pr-bg-gray-200 pr-bg-white pr-text-gray-400":!r&&!n,"pr-cursor-default pr-bg-opacity-50":r||n,"pr-text-gray-400":r,"pr-bg-blue-600 pr-text-white":n}),disabled:r||n,onClick:function(){return a(u,"unhelpful")}},o.a.createElement(l.d,{className:c()("pr-w-8 pr-h-5 pr-pl-1","pr-transform pr-rotate-180 pr-translate-y-0.5",{"pr-text-white":n,"pr-text-gray-400":!n})}),n?s+1:s||0))},m=function(e){var t=e.heading,r=e.isLarge,n=e.shopProductsArray;return!1===Array.isArray(n)?null:o.a.createElement("div",{className:c()("pr-shop-products","pr-flex pr-flex-col pr-items-center pr-mt-12 pr-mb-6 sm:pr-mt-0 sm:pr-mb-0 sm:pr-bg-white md-modal:pr-w-44 sm:pr-overflow-auto",{"pr-shop-products--lg sm:pr-w-40":r})},o.a.createElement("h2",{className:"pr-shop-products__heading pr-font-bold pr-text-base sm:pr-text-lg sm:pr-mb-6"},t),o.a.createElement("ul",{className:c()("pr-shop-products__list",{"pr-h-shopProductsLg pr-overflow-auto":r})},n.pwrMap(function(e,t){return o.a.createElement("li",{key:e.product_url+"-"+t,className:"pr-shop-products__list__item"},o.a.createElement("a",{href:e.product_url,className:"pr-shop-products__list__item__link hover:pr-underline pr-mb-6"},o.a.createElement("div",{className:"pr-h-40 pr-w-40 pr-my-2"},o.a.createElement("img",{src:e.product_image_url,alt:e.product_name,className:"pr-shop-products__list__item__link__image pr-w-full pr-h-full pr-object-contain",width:160,height:160})),o.a.createElement("div",{className:"pr-shop-products__list__item__link__name pr-text-sm pr-w-40"},e.product_name)))})))},h=o.a.forwardRef(function(e,t){var r=e.allowHelpfulVoting,n=e.handleFlagMedia,a=e.handleHelpfulVoting,i=e.index,s=e.isFlagged,c=e.isHelpful,u=e.isUnhelpful,h=e.showShoppableLink,v=e.localizations,g=e.media,b=g.caption,y=g.id,_=g.image,w=g.username,E=g.nickname,O=g.headline,S=g.type,C=g.helpful_votes,j=g.not_helpful_votes,x=g.product_url,k=g.product_image_url,I=g.product_name,P=g.associated_products,T=g.youtubeID,R=e.UserImage,N=e.UserVideo,A=null!=x&&(null!=k||null!=I)&&!0===h?P?[{product_url:x,product_image_url:k,product_name:I}].concat(P):[{product_url:x,product_image_url:k,product_name:I}]:null,D=o.a.createElement(d,{isFlagged:s,flagMediaText:s?v.flagged:v.flagImage,handleFlagMedia:function(){return n(i)}}),L=!0===r?o.a.createElement("div",{className:"pr-border-t pr-border-gray-300"},o.a.createElement("div",{className:"pr-flex pr-flex-col"},o.a.createElement("div",{className:"pr-flex pr-justify-between pr-pt-4"},o.a.createElement(f,{viewport:"mobile",isHelpful:c,isUnhelpful:u,handleHelpfulVoting:a,helpfulVotes:C,notHelpfulVotes:j,mediaId:y}),D),o.a.createElement("div",{className:"pr-content-attribution pr-flex pr-self-center pr-pt-6 pr-text-xs"},v.poweredBy,o.a.createElement(l.c,{className:"pr-w-4 pr-h-4 pr-ml-1"})))):o.a.createElement("div",{className:"pr-border-t pr-border-gray-300 pr-mt-6"},o.a.createElement("div",{className:"pr-flex pr-justify-between pr-pt-6"},D,o.a.createElement("div",{className:"pr-content-attribution pr-flex pr-text-xs"},v.poweredBy,o.a.createElement(l.c,{className:"pr-w-4 pr-h-4 pr-ml-1"}))));return o.a.createElement("div",{className:"pr-media-carousel__card pr-bg-white pr-h-screen pr-w-screen",tabIndex:"-1",ref:t},o.a.createElement("div",{className:"pr-h-1/2 pr-w-screen"},"image"===S&&o.a.createElement(R,{src:_,alt:b,className:"pr-w-full pr-h-full pr-object-contain",width:400,height:400}),"cvideo"===S&&o.a.createElement(N,{src:_,className:"pr-w-full pr-h-full pr-object-contain",controls:!0,preload:"metadata",width:400,height:400}),"yt"===S&&o.a.createElement("iframe",{className:"pr-w-full pr-h-full pr-object-contain",src:"https://youtube.com/embed/"+T,title:"YouTube video "+T,width:400,height:400})),o.a.createElement("div",{className:"pr-p-4 pr-h-1/2 pr-overflow-auto"},o.a.createElement(p,{caption:b||O,author:w||E,expandReviewText:v.viewMore,condenseReviewText:v.viewLess}),o.a.createElement(m,{heading:v.shopProducts,shopProductsArray:A}),L))}),v=o.a.forwardRef(function(e,t){var r=e.allowHelpfulVoting,n=e.handleFlagMedia,a=e.handleHelpfulVoting,i=e.index,s=e.isFlagged,u=e.isHelpful,h=e.isUnhelpful,v=e.showShoppableLink,g=e.localizations,b=e.media,y=b.caption,_=b.id,w=b.image,E=b.username,O=b.nickname,S=b.headline,C=b.type,j=b.helpful_votes,x=b.not_helpful_votes,k=b.product_url,I=b.product_image_url,P=b.product_name,T=b.associated_products,R=b.youtubeID,N=e.UserImage,A=e.UserVideo,D=null!=k&&(null!=I||null!=P)&&!0===v,L=D?T?[{product_url:k,product_image_url:I,product_name:P}].concat(T):[{product_url:k,product_image_url:I,product_name:P}]:null;return o.a.createElement("div",{className:c()("pr-media-carousel__card pr-media-carousel__card--lg","pr-bg-white pr-fixed pr-flex",{"pr-p-8":D,"md:pr-px-28 pr-px-32 pr-py-8":!1===D}),tabIndex:"-1",ref:t},o.a.createElement("div",{className:c()("pr-bg-white pr-overflow-y-auto pr-overflow-x-hidden pr-w-96 md:pr-w-mediaDesktop",{"pr-mr-8":D})},o.a.createElement("div",{className:"md:pr-w-mediaDesktop pr-h-mediaDesktop pr-w-96"},"image"===C&&o.a.createElement(N,{src:w,alt:y,className:"pr-w-full pr-h-full pr-object-contain",width:480,height:480}),"cvideo"===C&&o.a.createElement(A,{src:w,className:"pr-w-full pr-h-full pr-object-contain",controls:!0,preload:"metadata",width:480,height:480}),"yt"===C&&o.a.createElement("iframe",{className:"pr-w-full pr-h-full pr-object-contain",src:"https://youtube.com/embed/"+R,title:"YouTube video "+R,width:480,height:480})),o.a.createElement("div",{className:"pr-flex pr-flex-col pr-justify-between pr-h-40"},o.a.createElement(p,{caption:y||S,author:E||O,expandReviewText:g.viewMore,condenseReviewText:g.viewLess}),o.a.createElement("div",{className:"pr-border-t pr-border-gray-300"},o.a.createElement("div",{className:"pr-flex pr-items-center pr-justify-between pr-pt-6"},o.a.createElement("div",{className:"pr-flex pr-items-center"},!0===r&&o.a.createElement(f,{viewport:"desktop",isHelpful:u,isUnhelpful:h,handleHelpfulVoting:a,helpfulVotes:j,notHelpfulVotes:x,mediaId:_}),o.a.createElement(d,{isFlagged:s,flagMediaText:s?g.flagged:g.flagImage,handleFlagMedia:function(){return n(i)}})),o.a.createElement("div",{className:"pr-content-attribution pr-flex pr-text-xs"},g.poweredBy,o.a.createElement(l.c,{className:"pr-w-4 pr-h-4 pr-ml-1"})))))),o.a.createElement(m,{heading:g.shopProducts,isLarge:!0,shopProductsArray:L}))}),g=r(148);r.d(t,"a",function(){return y});var b=function(e){var t=Object(i.useRef)();return Object(i.useEffect)(function(){t.current=e},[e]),t.current};function y(e){var t=e.media,r=e.startingIndex,n=e.allowHelpfulVoting,s=e.handleCarouselChange,c=e.handleFlagMedia,l=e.handleHelpfulVoting,p=e.localizations,d=e.flaggedContent,f=e.helpfulContent,m=e.unhelpfulContent,y=e.showShoppableLink,_=e.UserImage,w=e.UserVideo,E=Object(i.useRef)(),O=Object(i.useRef)(),S=Object(i.useState)(r),C=S[0],j=S[1],x=Object(i.useState)(),k=x[0],I=x[1],P=Object(i.useRef)(),T=b(C);Object(i.useEffect)(function(){var e=window.matchMedia("(max-width: 870px)");function t(e){e.matches?I(!0):I(!1)}return I(e.matches),e.addEventListener?(e.addEventListener("change",t),function(){return e.removeEventListener("change",t)}):(e.addListener(t),function(){return e.removeListener(t)})},[]),Object(i.useEffect)(function(){setTimeout(function(){var e;null===(e=P.current)||void 0===e||e.focus()},1)},[]),Object(i.useEffect)(function(){var e,r;T<C&&(C===t.length-1&&(null===(e=E.current)||void 0===e||e.focus()));T>C&&(0===C&&(null===(r=O.current)||void 0===r||r.focus()))},[T,C,t.length]);var R=Object(g.useSwipeable)({onSwipedLeft:function(){C+1<t.length&&j(function(e){return e+1})},onSwipedRight:function(){C>0&&j(function(e){return e-1})},preventDefaultTouchmoveEvent:!0});return o.a.createElement("div",null,o.a.createElement("section",{id:"mediaCarousel",className:"pr-media-carousel pr-no-conflict pr-static","aria-roledescription":"carousel","aria-label":p.carouselLabel,onKeyDown:function(e){var r;if(37===e.keyCode&&0!==C)j(function(e){return e-1}),null===(r=E.current)||void 0===r||r.focus();else if(39===e.keyCode&&C+1!==t.length){var n;j(function(e){return e+1}),null===(n=O.current)||void 0===n||n.focus()}}},0!==C&&o.a.createElement(u,{ref:E,labelText:p.prevBtn,handleCarouselChange:function(){j(function(e){return e-1}),s&&s(C)},arrowDirection:"left"}),o.a.createElement("div",{role:"group","aria-live":"polite","aria-roledescription":"slide","aria-label":p.slideLabel.replace("{0}",C+1).replace("{1}",t.length+1)},k?o.a.createElement("div",a()({className:"pr-block"},R),o.a.createElement(h,{index:C,allowHelpfulVoting:n,handleFlagMedia:c,handleHelpfulVoting:l,isFlagged:(null===d||void 0===d?void 0:d.indexOf(Number(t[C].id)))>-1,isHelpful:(null===f||void 0===f?void 0:f.indexOf(Number(t[C].id)))>-1,isUnhelpful:(null===m||void 0===m?void 0:m.indexOf(Number(t[C].id)))>-1,showShoppableLink:y,localizations:p,media:t[C],UserImage:_,UserVideo:w,ref:P})):o.a.createElement("div",{className:"pr-flex pr-justify-center pr-items-center"},o.a.createElement(v,{index:C,allowHelpfulVoting:n,handleFlagMedia:c,handleHelpfulVoting:l,isFlagged:(null===d||void 0===d?void 0:d.indexOf(Number(t[C].id)))>-1,isHelpful:(null===f||void 0===f?void 0:f.indexOf(Number(t[C].id)))>-1,isUnhelpful:(null===m||void 0===m?void 0:m.indexOf(Number(t[C].id)))>-1,showShoppableLink:y,localizations:p,media:t[C],UserImage:_,UserVideo:w,ref:P}))),C+1!==t.length&&o.a.createElement(u,{ref:O,labelText:p.nextBtn,handleCarouselChange:function(){j(function(e){return e+1}),s&&s(C)},arrowDirection:"right"})))}},function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r(35);function a(){try{var e=n.a.parse(sessionStorage.getItem("powerreviews"));if("object"==typeof e&&"Object"===e.constructor.name)return e}catch(e){}return{}}var i={getItem:function(e){return a()[e]},setItem:function(e,t){try{var r=a();r[e]=t,sessionStorage.setItem("powerreviews",n.a.stringify(r))}catch(e){}}}},function(e,t,r){"use strict";e.exports=function(e,t,r,n,a,i,o,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,n,a,i,o,s],u=0;(c=new Error(t.replace(/%s/g,function(){return l[u++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=function(e){return e.toLowerCase()};function a(e,t){return void 0===t&&(t=n),"string"==typeof e?e.split(",").pwrMap(function(e){return t(e.trim())}):[]}},function(e,t,r){"use strict";var n=r(38);t.a={newest:{sm:n.REVIEW_DISPLAY_SORT_MOST_RECENT,sort:{type:"created_date",order:"desc"},apiText:"Newest"},oldest:{sm:n.REVIEW_DISPLAY_SORT_OLDEST,sort:{type:"created_date",order:"asc"},apiText:"Oldest"},highestrating:{sm:n.REVIEW_DISPLAY_SORT_HIGHEST,sort:{type:"rating",order:"desc"},apiText:"HighestRating"},lowestrating:{sm:n.REVIEW_DISPLAY_SORT_LOWEST,sort:{type:"rating",order:"asc"},apiText:"LowestRating"},mosthelpful:{sm:n.REVIEW_DISPLAY_SORT_MOST_HELPFUL,sort:{type:"helpful_votes",order:"desc"},apiText:"MostHelpful"},mediasort:{sm:n.REVIEW_DISPLAY_SORT_IMAGES,sort:{type:"mediasort",order:"desc"},apiText:"MediaSort"}}},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(3),o=r.n(i),s=r(7),c=r.n(s),l=r(2),u=r.n(l),p=r(0),d=r.n(p),f=(r(9),r(10)),m=r.n(f),h=r(17),v=r(43),g=r(21),b=r(4),y=r(29),_=r(60),w=r(47),E=r(48),O=r(214),S=r(211),C=r(212);r(384),r(143);function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach(function(t){u()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var k=[{name:"pr-rd-display-tablet",width:780}],I=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,u()(o()(t),"state",{review:null}),u()(o()(t),"fetchSingleReview",function(){var e=t.props,r=e.singleReviewID,n=e.displayApi;r&&Object(_.d)(n,{review_id:r}).then(function(e){t.setState({review:e})})}),u()(o()(t),"handleFlagging",function(e,r){t.props.openFlaggingForm(e,r,!0)}),u()(o()(t),"getReview",function(){return null!=t.props.review?t.props.review:t.state.review}),t}c()(t,e);var r=t.prototype;return r.componentDidMount=function(){null==this.props.review&&this.fetchSingleReview()},r.componentDidUpdate=function(e){var t=this.props,r=t.review,n=t.singleReviewID;null==r&&e.singleReviewID!==n&&this.fetchSingleReview()},r.render=function(){var e,t,r=this.props,n=r.config,i=r.localizations,o=r.merchantProperties,s=r.flaggedContent,c=r.helpfulContent,l=r.unhelpfulContent,u=r.voteContent,f=r.flagContent,h=r.productKey,v=r.singleReviewID,g=r.isFlagging,b=r.showMedia,_=r.showFlaggingAndHelpfulVoting,j=r.topContent,x=r.openOriginalReview,I=r.openMediaCard;if(!i)return null;var P=m()("pr-read-review",{"pr-read-review-in":v,"pr-read-review-out":!v,"pr-read-review-flagging-in":v&&!g,"pr-read-review-flagging-out":v&&g}),T=this.getReview(),R=T&&Object(w.b)(T.details.locale);return d.a.createElement(y.c,{sizes:k},d.a.createElement("div",{className:P,ref:this.props.forwardedRef,tabIndex:"-1"},!!v&&d.a.createElement(p.Fragment,null,j,T?d.a.createElement(O.a,a()({headline:d.a.createElement(S.a,{headline:T.details.headline,rating:T.metrics.rating,reviewId:T.review_id,localizations:i,lang:R}),comments:d.a.createElement(C.a,{comments:(null===(e=T.highlights)||void 0===e?void 0:null===(t=e.details)||void 0===t?void 0:t.text)||T.details.comments,lang:R})},{review:T,config:n,localizations:i,merchantProperties:o,flaggedContent:s,helpfulContent:c,unhelpfulContent:l,voteContent:u,productKey:h,flagContent:f,showMedia:b,showFlaggingAndHelpfulVoting:_,openOriginalReview:x,openMediaCard:I,propertiesByKey:{}},{onFlag:this.handleFlagging})):d.a.createElement(E.a,{isVisible:!0}))))},t}(p.Component),P={getSingleReview:g.q,voteContent:g.w,flagContent:g.o};t.a=Object(h.b)(function(e,t){var r=Object(b.s)(t.config);return x(x({},e.Reviews[t.singleReviewID]||{}),{},{productKey:r,flaggedContent:e.Reviews.flaggedContent.concat(t.flaggedContent),helpfulContent:e.Reviews.helpfulContent,unhelpfulContent:e.Reviews.unhelpfulContent})},P)(function(e){var t=Object(p.useContext)(v.a),r=t.localizations,n=t.merchantProperties,i=t.displayApi;return d.a.createElement(I,a()({},e,{localizations:r,merchantProperties:n,displayApi:i}))})},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(46),a=r(113),i="".split;e.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==a(e)?i.call(e,""):Object(e)}:Object},function(e,t,r){var n=r(115),a=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?a(r+t,0):i(r,t)}},function(e,t,r){"use strict";var n=r(227).charAt,a=r(101),i=r(187),o=a.set,s=a.getterFor("String Iterator");i(String,"String",function(e){o(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=s(this),r=t.string,a=t.index;return a>=r.length?{value:void 0,done:!0}:(e=n(r,a),t.index+=e.length,{value:e,done:!1})})},function(e,t){e.exports={}},function(e,t,r){"use strict";var n=r(178),a=r(80),i=r(134);e.exports=function(e,t,r){var o=n(t);o in e?a.f(e,o,i(0,r)):e[o]=r}},function(e,t,r){var n=r(56),a=r(117),i=r(39)("species");e.exports=function(e,t){var r;return a(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!a(r.prototype)?n(r)&&null===(r=r[i])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},function(e,t,r){var n=r(46),a=r(39),i=r(191),o=a("species");e.exports=function(e){return i>=51||!n(function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},function(e,t,r){"use strict";r.d(t,"a",function(){return d});var n=r(2),a=r.n(n),i=r(145),o=r.n(i),s=r(33),c=r(41),l=r(47);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var p=r(49),d=function(){function e(e,t){var r=t.nocache,n=t.api_authorization,a=t.api_key,i=t.merchant_id,o=t.locale;if(null==e)throw new Error("stage is required");this.stage=e,this.config={nocache:"boolean"==typeof noache?r:Boolean(r&&JSON.parse(r)),api_authorization:"boolean"==typeof n?n:Boolean(n&&JSON.parse(n)),merchant_id:i,api_key:a,locale:Object(l.a)(o)?o:"en_US"}}var t=e.prototype;return t.toString=function(){return Object(s.a)("[DisplayApi][m:{merchant_id},l:{locale}]",this.config)},t._init=function(e,t,r,n){t=function(e){return function(e){return e.replace(/^\//,"")}(f(e))}(t);var i=this.config,o=i.api_authorization,c=i.api_key,l=i.nocache,p=i.merchant_id,d=i.locale,m=f(e)+"/"+Object(s.a)(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){a()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({merchant_id:p,locale:d},r)),h=new URL(m),v={};if(!0===l&&h.searchParams.set("_nocache","true"),!0===o?v.Authorization=c:h.searchParams.set("apikey",c),null!=n)for(var g=0,b=Object.keys(n);g<b.length;g++){var y=b[g],_="string"==typeof n[y]?Object(s.a)(n[y],this.config):n[y];null!=_&&h.searchParams.append(y,_)}return{url:h.toString().replace(/\+/g,"%20"),headers:v}},t.init=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this._init.apply(this,[this.baseUrl].concat(t))},t.initProxy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this._init.apply(this,[this.baseProxyUrl.replace(/\/{1}$/,"")].concat(t))},t.fetch=function(e){function t(t,r){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(t,r){var n=this.init(t,null,{_noconfig:!0}),a=n.url,i=n.headers;return fetch(a,{method:"GET",headers:i}).then(e.checkResponseStatus).then(function(e){return e.json()})}),e.checkResponseStatus=function(e){if(e.status>=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t},e.checkNetworkError=function(e){if(e instanceof TypeError)throw new Error("Network Error");throw e},o()(e,[{key:"baseUrl",get:function(){var e=p[this.stage],t=e.b2cReadOrigin,r=e.b2cReadBase;return Object(c.a)(this.config.nocache?t:r)}},{key:"baseProxyUrl",get:function(){var e=p[this.stage],t=e.b2cReadOrigin,r=e.b2cReadProxy;return Object(c.a)(this.config.nocache?t:r)}}]),e}();function f(e){return e.replace(/\/$/,"")}},function(e,t,r){"use strict";t.a=function(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n&&n.push(r)||e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&n.splice(n.indexOf(r)>>>0,1)},emit:function(t,r){(e.get(t)||[]).slice().pwrMap(function(e){e(r)}),(e.get("*")||[]).slice().pwrMap(function(e){e(t,r)})}}}},function(e,t){function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(0),o=r.n(i);t.a=function(e){return o.a.createElement("svg",a()({version:"1.1",viewBox:"0 0 432 432",xmlSpace:"preserve",focusable:"false"},e),o.a.createElement("g",null,o.a.createElement("circle",{fill:"#EAEAE9",cx:"216",cy:"216",r:"216"}),o.a.createElement("polygon",{fill:"#FFFFFF",points:"87.8,256.6 169.8,256.6 169.8,274 256.8,274 256.8,254.2 336.4,254.2 336.4,326.2 92.8,326.2  "}),o.a.createElement("g",null,o.a.createElement("path",{fill:"#767676",d:"M350.2,243.4H249.6v22.4h-67.2v-22.4H81.8v89.4h268.4V243.4z M334,316.6H98v-57.2h68.4v22.4h99.4v-22.4    H334V316.6z"}),o.a.createElement("polygon",{fill:"#767676",points:"227.2,232.2 227.2,129 269.2,171 285,155.2 216.6,86.8 148.2,155.2 164,171 204.8,130.2     204.8,232.2   "}))))}},function(e,t,r){"use strict";var n=r(3),a=r.n(n),i=r(7),o=r.n(i),s=r(2),c=r.n(s),l=r(0),u=r.n(l),p=(r(9),r(81)),d=r(4),f=r(23),m=r(12),h=r(51),v=r(64),g=r(1),b=r(152),y=(r(262),r(66));function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach(function(t){c()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var E=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=e.call.apply(e,[this].concat(n))||this,c()(a()(t),"state",{fields:Object(b.a)(t.props)}),c()(a()(t),"onSubmit",function(){var e=t.props,r=e.config,n=e.isSubmitting,a=e.localizations,i=e.question_data,o=e.iovationRequired,s=e.type,c=t.state.fields;if(!n){var l={},u=window.ioGetBlackbox?window.ioGetBlackbox().blackbox:null;if(u||!o)if(u&&(l.iovation_black_box=window.ioGetBlackbox().blackbox),t.validateRequiredFields(c)){if(l.answer_text=c[0].value,l.author_name=c[1].value||"",l.author_location=c[2].value||"",l.author_email=t.props.config.merchant_user_email||t.props.config.userEmail||"",l.merchant_user_id=t.props.config.merchant_user_id||"",l.answer_source=t.props.config.source||"",t.props.authorName&&(l.author_name=t.props.authorName),t.props.config.merchant_question_id?l.merchant_question_id=t.props.config.merchant_question_id:l.question_id=t.props.config.question_id,t.props.category&&(l.question_category=t.props.category),t.resetFieldLabels(),t.props.submitWAAData(t.props.config,t.props.type,l,t.props.question_id).then(function(e){e&&e.body&&e.body.answer_data&&d.j("WAA_"+h.a.COMPLETE,{question:i,answer:e.body.answer_data})}),document.getElementById("pr-waqwaa")){var p=document.getElementById("pr-waqwaa");p&&p.scrollIntoView&&(d.x()?p.scrollIntoView():p.scrollIntoView({block:"end",behavior:"smooth"}),document.body.scrollTop-=170)}}else setTimeout(function(){var e=document.getElementsByClassName("pr-invalid-field")[0];e&&e.focus()},0);else t.props.setSubmitErrorMessage(r,s,Object(g.a)("error.adblock_interference",a.powerreviews),!0)}}),c()(a()(t),"resetFieldLabels",function(){var e=t.state.fields.pwrMap(function(e){return e.labelChanged&&(e.label=e.originalLabel),e.exampleChanged&&(e.example=e.originalExample),e.helperTextChanged&&(e.helper_text=e.originalHelperText),e});t.setState({fields:e})}),c()(a()(t),"validateRequiredFields",function(e){var r=!0,n=[].concat(e);return n.pwrMap(function(e){return(!e.isValid||e.required&&!e.value)&&(e.isValid=!1,r=!1),e}),t.setState({fields:n}),r}),c()(a()(t),"_handleScrollErrorIntoView",function(e){window.pwrPromise?d.F(e,500):(e.scrollIntoView&&(d.x()?e.scrollIntoView():e.scrollIntoView({block:"end",behavior:"smooth"})),window.scrollBy(0,-30))}),c()(a()(t),"handleSubmissionError",function(e){var r=[].concat(t.state.fields);e.forEach(function(e){if(e.error_code===f.a.REQUIRED_FIELD&&(r=r.pwrMap(function(t){return e.fields.indexOf(t.id)>-1&&(t.isValid=!1),t})),e.error_code===f.a.RESTRICTED_WORD){var t=Object.keys(e.fields[0]);r=r.pwrMap(function(r){if(t.indexOf(r.id)>-1){var n=e.fields[0][r.id][0];r.isValid=!1,r.error_message={detail:{invalid:e.message.replace(/\.$/,":")+" "+n}}}return r})}}),t.setState({fields:r},function(){return setTimeout(function(){var e=document.getElementsByClassName("pr-invalid-field")[0];e&&(e.focus(),t._handleScrollErrorIntoView(e))},0)})}),c()(a()(t),"handleFieldUpdate",function(e,r){var n=e.value,a=e.values,i=e.isValid,o=[].concat(t.state.fields);o[r]=w(w({},o[r]),{},{value:n,values:a,isValid:i}),t.setState({fields:o})}),t}o()(t,e);var r=t.prototype;return r.componentDidUpdate=function(e){!e.errors&&this.props.errors&&this.handleSubmissionError(this.props.errors)},r.renderWYBForm=function(){var e=this,t=this.props.localizations,r=this.state.fields;return u.a.createElement("form",{className:"pr-answer-form",onSubmit:function(e){e.preventDefault()}},r.slice(0,1).pwrMap(function(r,n){var a=w(w({},r),{},{label:t.label,helper_text:t.why_did_you_buy.question_placeholder,rows:2,maxCharacters:130});return u.a.createElement(p.a,{key:a.id,field:a,fieldIndex:n,handleFieldUpdate:e.handleFieldUpdate,localizations:t,prependID:!1,requiredText:Object(g.a)("required_label",t.why_did_you_buy)})}),u.a.createElement(v.a,{onClick:this.onSubmit,showLogo:!0,showLegal:!0,logoText:t.why_did_you_buy.powerred_by,legalText:t.why_did_you_buy.legal_text,localizations:t},Object(g.a)("submit_button",t.why_did_you_buy)))},r.renderWAAForm=function(){var e=this,t=this.props.localizations,r=this.state.fields,n=Object(g.a)("answer_wizard.edit.required_label",t.product_answers);return u.a.createElement("form",{className:"pr-answer-form",onSubmit:function(e){e.preventDefault()},"data-testid":"answer-form"},u.a.createElement("p",{className:"pr-header-required",tabIndex:"0"},u.a.createElement("abbr",{className:"pr-required-indicator",title:n},"*"),u.a.createElement("span",{className:"pr-required-text"},Object(g.a)("qa_display.required_indicator",t.product_answers))),r.pwrMap(function(r,a){return u.a.createElement(p.a,{key:r.id,field:r,fieldIndex:a,handleFieldUpdate:e.handleFieldUpdate,localizations:t,prependID:!1,requiredText:n})}),u.a.createElement(v.a,{onClick:this.onSubmit,localizations:t},Object(g.a)("answer_wizard.preview.submit_button_label",t.product_answers)))},r.render=function(){return this.props.type===m.i.WYB?this.renderWYBForm():this.renderWAAForm()},t}(l.Component);t.a=Object(y.a)(E)},function(e,t,r){!function(e,t){function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var n="Left",a="Right",i="Up",o="Down",s={delta:10,preventDefaultTouchmoveEvent:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0},c={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},l="mousemove",u="mouseup",p="touchend",d="touchmove",f="touchstart";function m(e,t){if(0===t)return e;var r=Math.PI/180*t,n=e[0]*Math.cos(r)+e[1]*Math.sin(r),a=e[1]*Math.cos(r)-e[0]*Math.sin(r);return[n,a]}function h(e,t){var s=function(t){t&&"touches"in t&&t.touches.length>1||e(function(e,n){n.trackMouse&&(document.addEventListener(l,h),document.addEventListener(u,b));var a="touches"in t?t.touches[0]:t,i=a.clientX,o=a.clientY,s=m([i,o],n.rotationAngle);return r({},e,c,{initial:[].concat(s),xy:s,start:t.timeStamp||0})})},h=function(t){e(function(e,s){if("touches"in t&&t.touches.length>1)return e;var c="touches"in t?t.touches[0]:t,l=c.clientX,u=c.clientY,p=m([l,u],s.rotationAngle),d=p[0],f=p[1],h=d-e.xy[0],v=f-e.xy[1],g=Math.abs(h),b=Math.abs(v),y=(t.timeStamp||0)-e.start,_=Math.sqrt(g*g+b*b)/(y||1),w=[h/(y||1),v/(y||1)];if(g<s.delta&&b<s.delta&&!e.swiping)return e;var E=function(e,t,r,s){return e>t?r>0?a:n:s>0?o:i}(g,b,h,v),O={absX:g,absY:b,deltaX:h,deltaY:v,dir:E,event:t,first:e.first,initial:e.initial,velocity:_,vxvy:w};O.first&&s.onSwipeStart&&s.onSwipeStart(O),s.onSwiping&&s.onSwiping(O);var S=!1;return(s.onSwiping||s.onSwiped||"onSwiped"+E in s)&&(S=!0),S&&s.preventDefaultTouchmoveEvent&&s.trackTouch&&t.cancelable&&t.preventDefault(),r({},e,{first:!1,eventData:O,swiping:!0})})},v=function(t){e(function(e,n){var a;if(e.swiping&&e.eventData){a=r({},e.eventData,{event:t}),n.onSwiped&&n.onSwiped(a);var i="onSwiped"+a.dir;i in n&&n[i](a)}else n.onTap&&n.onTap({event:t});return r({},e,c,{eventData:a})})},g=function(){document.removeEventListener(l,h),document.removeEventListener(u,b)},b=function(e){g(),v(e)},y=function(e,t){var r=function(){};if(e&&e.addEventListener){var n=[[f,s],[d,h],[p,v]];n.forEach(function(r){var n=r[0],a=r[1];return e.addEventListener(n,a,{passive:t})}),r=function(){return n.forEach(function(t){var r=t[0],n=t[1];return e.removeEventListener(r,n)})}}return r},_={ref:function(t){null!==t&&e(function(e,n){if(e.el===t)return e;var a={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),a.cleanUpTouch=void 0),n.trackTouch&&t&&(a.cleanUpTouch=y(t,!n.preventDefaultTouchmoveEvent)),r({},e,{el:t},a)})}};return t.trackMouse&&(_.onMouseDown=s),[_,y]}e.DOWN=o,e.LEFT=n,e.RIGHT=a,e.UP=i,e.useSwipeable=function(e){var n=e.trackMouse,a=t.useRef(r({},c)),i=t.useRef(r({},s));i.current=r({},s,e);var o=t.useMemo(function(){return h(function(e){return a.current=e(a.current,i.current)},{trackMouse:n})},[n]),l=o[0],u=o[1];return a.current=function(e,t,n){var a={};return!t.trackTouch&&e.cleanUpTouch?(e.cleanUpTouch(),a.cleanUpTouch=void 0):t.trackTouch&&!e.cleanUpTouch&&e.el&&(a.cleanUpTouch=n(e.el,!t.preventDefaultTouchmoveEvent)),r({},e,a)}(a.current,i.current,u),l}}(t,r(0))},function(e,t,r){"use strict";r.d(t,"c",function(){return n}),r.d(t,"a",function(){return a}),r.d(t,"b",function(){return i});var n=function(e,t,r){return{empty:{root:{},ratingValue:{},reviewCount:{}},root:{itemScope:!0,itemType:"http://schema.org/AggregateRating",itemRef:"pr-"+r},ratingValue:{itemProp:"ratingValue",content:e},reviewCount:{itemProp:"reviewCount",content:t}}},a=function(e){return{empty:{root:{},text:{},dateCreated:{},answerCount:{},answer:{root:{},text:{},author:{},name:{}}},root:{itemScope:!0,itemType:"http://schema.org/Question"},text:{itemProp:"text"},dateCreated:{itemProp:"dateCreated"},answerCount:{itemProp:"answerCount",content:e},answer:{root:{itemScope:!0,itemType:"http://schema.org/Answer",itemProp:"suggestedAnswer"},text:{itemProp:"text"},author:{itemScope:!0,itemType:"http://schema.org/Person",itemProp:"author"},name:{itemProp:"name"}}}},i=function(e,t){return{empty:{root:{},title:{},body:{},datePublished:{},authorRoot:{},authorName:{},locationRoot:{},locationName:{},ratingRoot:{},ratingValue:{}},root:{itemScope:!0,itemType:"http://schema.org/Review",itemRef:"pr-"+t},title:{itemProp:"name"},body:{itemProp:"reviewBody"},datePublished:{itemProp:"datePublished"},authorRoot:{itemScope:!0,itemType:"http://schema.org/Person",itemProp:"author"},authorName:{itemProp:"name"},locationRoot:{itemScope:!0,itemType:"http://schema.org/AdministrativeArea",itemProp:"locationCreated"},locationName:{itemProp:"name"},ratingRoot:{itemScope:!0,itemType:"http://schema.org/Rating",itemProp:"reviewRating"},ratingValue:{itemProp:"ratingValue",content:e.metrics.rating}}}},function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var a=r(0),i=r.n(a);r(198);function o(e,t){return function(e,t){var r=Object(a.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}})[0];return r.callback=t,r.facade}(t,function(t){return e.forEach(function(e){return function(e,t){return"function"==typeof e?e(t):null!=e&&(e.current=t),e}(e,t)})})}var s={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},c=function(e){var t=e.children;return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:s}),t,t&&i.a.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:s}))};c.propTypes={},c.defaultProps={children:null};var l=function(){return(l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function u(e){return e}function p(e,t){void 0===t&&(t=u);var r=[],n=!1;return{read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var a=t(e,n);return r.push(a),function(){r=r.filter(function(e){return e!==a})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var a=r;r=[],a.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},o=function(){return pwrPromise.resolve().then(i)};o(),r={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),r}}}}}function d(e,t){return void 0===t&&(t=u),p(e,t)}var f=d({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),m=d(),h=d(),v=function(e){void 0===e&&(e={});var t=p(null);return t.options=l({async:!0,ssr:!1},e),t}({async:!0}),g=[],b=i.a.forwardRef(function(e,t){var r,c=Object(a.useState)(),l=c[0],u=c[1],p=Object(a.useRef)(),d=Object(a.useRef)(!1),h=Object(a.useRef)(null),b=e.children,y=e.disabled,_=e.noFocusGuards,w=e.persistentFocus,E=e.autoFocus,O=(e.allowTextSelection,e.group),S=e.className,C=e.whiteList,j=e.shards,x=void 0===j?g:j,k=e.as,I=void 0===k?"div":k,P=e.lockProps,T=void 0===P?{}:P,R=e.sideCar,N=e.returnFocus,A=e.onActivation,D=e.onDeactivation,L=Object(a.useState)({})[0],M=Object(a.useCallback)(function(){h.current=h.current||document&&document.activeElement,p.current&&A&&A(p.current),d.current=!0},[A]),F=Object(a.useCallback)(function(){d.current=!1,D&&D(p.current)},[D]),z=Object(a.useCallback)(function(e){var t=h.current;if(Boolean(N)&&t&&t.focus){var r="object"==typeof N?N:void 0;h.current=null,e?pwrPromise.resolve().then(function(){return t.focus(r)}):t.focus(r)}},[N]),V=Object(a.useCallback)(function(e){d.current&&f.useMedium(e)},[]),U=m.useMedium,q=Object(a.useCallback)(function(e){p.current!==e&&(p.current=e,u(e))},[]);var W=n(((r={})["data-focus-lock-disabled"]=y&&"disabled",r["data-focus-lock"]=O,r),T),B=!0!==_,H=B&&"tail"!==_,K=o([t,q]);return i.a.createElement(i.a.Fragment,null,B&&[i.a.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:y?-1:0,style:s}),i.a.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:y?-1:1,style:s})],!y&&i.a.createElement(R,{id:L,sideCar:v,observed:l,disabled:y,persistentFocus:w,autoFocus:E,whiteList:C,shards:x,onActivation:M,onDeactivation:F,returnFocus:z}),i.a.createElement(I,n({ref:K},W,{className:S,onBlur:U,onFocus:V}),b),H&&i.a.createElement("div",{"data-focus-guard":!0,tabIndex:y?-1:0,style:s}))});b.propTypes={},b.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var y=b;var _=function(e,t){return function(r){var n,o=[];function s(){n=e(o.pwrMap(function(e){return e.props})),t(n)}var c=function(e){function t(){return e.apply(this,arguments)||this}!function(e,t){e.prototype=Object.pwrCreate(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e),t.peek=function(){return n};var a=t.prototype;return a.componentDidMount=function(){o.push(this),s()},a.componentDidUpdate=function(){s()},a.componentWillUnmount=function(){var e=o.indexOf(this);o.splice(e,1),s()},a.render=function(){return i.a.createElement(r,this.props)},t}(a.PureComponent);return function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(c,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),c}},w=function(e){for(var t=Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t},E=function(e){return Array.isArray(e)?e:[e]},O=function(){return document&&w(document.querySelectorAll("[data-no-focus-lock]")).some(function(e){return e.contains(document.activeElement)})},S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C=function(e){return E(e).filter(Boolean).pwrReduce(function(e,t){var r=t.getAttribute("data-focus-lock");return e.push.apply(e,r?function e(t){for(var r=t.length,n=0;n<r;n+=1)for(var a=function(r){if(n!==r&&t[n].contains(t[r]))return{v:e(t.filter(function(e){return e!==t[r]}))}},i=0;i<r;i+=1){var o=a(i);if("object"===(void 0===o?"undefined":S(o)))return o.v}return t}(w(function e(t){return t.parentNode?e(t.parentNode):t}(t).querySelectorAll('[data-focus-lock="'+r+'"]:not([data-focus-lock-disabled="disabled"])'))):[t]),e},[])},j=function(e){return e===document.activeElement},x=function(e){var t=document&&document.activeElement;return!(!t||t.dataset&&t.dataset.focusGuard)&&C(e).pwrReduce(function(e,r){return e||r.contains(t)||function(e){return!!function(e,t){return e.filter(function(e){return e===t})[0]}(w(e.querySelectorAll("iframe")),j)}(r)},!1)},k=function(e,t){var r=e.tabIndex-t.tabIndex,n=e.index-t.index;if(r){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return r||n},I=function(e,t,r){return w(e).pwrMap(function(e,t){return{node:e,index:t,tabIndex:r&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}}).filter(function(e){return!t||e.tabIndex>=0}).sort(k)},P=["button:enabled:not([readonly])","select:enabled:not([readonly])","textarea:enabled:not([readonly])","input:enabled:not([readonly])","a[href]","area[href]","iframe","object","embed","[tabindex]","[contenteditable]","[autofocus]"],T=P.join(","),R=T+", [data-focus-guard]",N=function(e,t){return e.pwrReduce(function(e,r){return e.concat(w(r.querySelectorAll(t?R:T)),r.parentNode?w(r.parentNode.querySelectorAll(P.join(","))).filter(function(e){return e===r}):[])},[])},A=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return r.push(t),t.parentNode&&e(t.parentNode,r),r},D=function(e,t){for(var r=A(e),n=A(t),a=0;a<r.length;a+=1){var i=r[a];if(n.indexOf(i)>=0)return i}return!1},L=function(e){return w(e).filter(function(e){return function e(t){return!t||t===document||t.nodeType===Node.DOCUMENT_NODE||!function(e){return!(!e||!e.getPropertyValue||"none"!==e.getPropertyValue("display")&&"hidden"!==e.getPropertyValue("visibility"))}(window.getComputedStyle(t,null))&&e(t.parentNode)}(e)}).filter(function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)})},M=function(e,t){return I(L(N(e,t)),!0,t)},F=function(e){return L(function(e){var t=e.querySelectorAll("[data-autofocus-inside]");return w(t).pwrMap(function(e){return N([e])}).pwrReduce(function(e,t){return e.concat(t)},[])}(e))},z=function(e){return"INPUT"===e.tagName&&"radio"===e.type},V=function(e){return e[0]&&e.length>1&&z(e[0])&&e[0].name?function(e,t){return t.filter(z).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e}(e[0],e):e[0]},U=function(e){return e.dataset&&e.dataset.focusGuard},q=function(e){return!U(e)},W=function(e,t,r){var n=E(e),a=E(t),i=n[0],o=null;return a.filter(Boolean).forEach(function(e){o=D(o||e,e)||o,r.filter(Boolean).forEach(function(e){var t=D(i,e);t&&(o=!o||t.contains(o)?t:D(t,o))})}),o},B=function(e,t){var r=document&&document.activeElement,n=C(e).filter(q),a=W(r||e,e,n),i=M(n).filter(function(e){var t=e.node;return q(t)});if(i[0]||(i=function(e){return I(L(N(e)),!1)}(n).filter(function(e){var t=e.node;return q(t)}))[0]){var o=M([a]).pwrMap(function(e){return e.node}),s=function(e,t){var r=new Map;return t.forEach(function(e){return r.set(e.node,e)}),e.pwrMap(function(e){return r.get(e)}).filter(Boolean)}(o,i),c=s.pwrMap(function(e){return e.node}),l=function(e,t,r,n,a){var i=e.length,o=e[0],s=e[i-1];if(!(e.indexOf(r)>=0)){var c=t.indexOf(r),l=t.indexOf(n||c),u=e.indexOf(n),p=c-l,d=t.indexOf(o),f=t.indexOf(s);return-1===c||-1===u?e.indexOf(a.length?V(a):V(e)):!p&&u>=0?u:c<=d&&U(r)&&Math.abs(p)>1?0:p&&Math.abs(p)>1?u:c<=d?i-1:c>f?0:p?Math.abs(p)>1?u:(i+u+p)%i:void 0}}(c,o,r,t,c.filter(function(e){return function(t){return!!t.autofocus||t.dataset&&!!t.dataset.autofocus||e.indexOf(t)>=0}}(function(e){return e.pwrReduce(function(e,t){return e.concat(F(t))},[])}(n))));return void 0===l?l:s[l]}},H=0,K=!1,G=function(e,t){var r=B(e,t);if(!K&&r){if(H>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),K=!0,void setTimeout(function(){K=!1},1);H++,function(e){e.focus(),e.contentWindow&&e.contentWindow.focus()}(r.node),H--}};function Q(e){var t=window.setImmediate;void 0!==t?t(e):setTimeout(e,1)}var Y=function(){return document&&document.activeElement===document.body||O()},$=null,J=null,X=null,Z=!1;function ee(e,t,r,n){var a=null,i=e;do{var o=n[i];if(o.guard)o.node.dataset.focusAutoGuard&&(a=o);else{if(!o.lockItem)break;if(i!==e)return;a=null}}while((i+=r)!==t);a&&(a.node.tabIndex=0)}var te=function(e){return e&&"current"in e?e.current:e},re=function(){var e=!1;if($){var t=$,r=t.observed,n=t.persistentFocus,a=t.autoFocus,i=t.shards,o=r||X&&X.portaledElement,s=document&&document.activeElement;if(o){var c=[o].concat(i.pwrMap(te).filter(Boolean));if(s&&!function(e){return($.whiteList||function(){return!0})(e)}(s)||(n||Z||!Y()||!J&&a)&&(!o||x(c)||function(e){return X&&X.portaledElement===e}(s)||(document&&!J&&s&&!a?(s.blur(),document.body.focus()):(e=G(c,J),X={})),Z=!1,J=document&&document.activeElement),document){var l=document&&document.activeElement,u=function(e){var t=C(e).filter(q),r=W(e,e,t),n=M([r],!0),a=M(t).filter(function(e){var t=e.node;return q(t)}).pwrMap(function(e){return e.node});return n.pwrMap(function(e){var t=e.node;return{node:t,index:e.index,lockItem:a.indexOf(t)>=0,guard:U(t)}})}(c),p=u.find(function(e){return e.node===l});if(p){u.filter(function(e){var t=e.guard,r=e.node;return t&&r.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute("tabIndex")});var d=u.indexOf(p);ee(d,u.length,1,u),ee(d,-1,-1,u)}}}}return e},ne=function(e){re()&&e&&(e.stopPropagation(),e.preventDefault())},ae=function(){return Q(re)},ie=function(e){var t=e.target,r=e.currentTarget;r.contains(t)||function(e,t){X={observerNode:e,portaledElement:t}}(r,t)},oe=function(){Z=!0},se=function(){document.addEventListener("focusin",ne,!0),document.addEventListener("focusout",ae),window.addEventListener("blur",oe)},ce=function(){document.removeEventListener("focusin",ne,!0),document.removeEventListener("focusout",ae),window.removeEventListener("blur",oe)};f.assignSyncMedium(ie),m.assignMedium(ae),h.assignMedium(function(e){return e({moveFocusInside:G,focusInside:x})});var le=_(function(e){return e.filter(function(e){return!e.disabled})},function(e){var t=e.slice(-1)[0];t&&!$&&se();var r=$,n=r&&t&&t.id===r.id;$=t,r&&!n&&(r.onDeactivation(),e.filter(function(e){return e.id===r.id}).length||r.returnFocus(!t)),t?(J=null,n&&r.observed===t.observed||t.onActivation(),re(!0),Q(re)):(ce(),J=null)})(function(){return null}),ue=i.a.forwardRef(function(e,t){return i.a.createElement(y,n({sideCar:le,ref:t},e))}),pe=y.propTypes||{},de=(pe.sideCar,function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(pe,["sideCar"]));ue.propTypes=de;var fe=ue;t.a=fe},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(3),o=r.n(i),s=r(7),c=r.n(s),l=r(2),u=r.n(l),p=r(0),d=r.n(p),f=(r(9),r(17)),m=r(119),h=r(165),v=r(4),g=r(84),b=r(1),y=r(25),_=r(6),w=r(11),E=r(5),O=(r(365),function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,u()(o()(t),"sendBeacon",function(e){return t.props.sendBeacon({eventType:e,eventFlow:e})}),t}return c()(t,e),t.prototype.render=function(){var e=this,t=Object(E.a)(this.props.merchantProperties,this.props.config,!0).ENABLE_ENHANCED_CONTENT_SECURITY,r=function(){if(t)return null;var r=e.props.product.full_product_url,n=e.props.merchant.return_url,a=r||function(){if(t)return null;var r=null;if(Object(E.b)("pr_return_url",e.props.config)){var n=v.u(Object(E.b)("pr_return_url",e.props.config,!1));r=n.match(/^http/g)?n:"http:"+n}return r}()||n||null;return a?"http"===a.substr(0,4)?a:"http:"+a:null},n=[];if(r()){if(this.props.social.allow_facebook_connect&&(this.sendBeacon("Facebook-view"),n.push(d.a.createElement("button",{id:"pwr-fb-share",type:"button",key:"pwr-fb-share",className:"pr-share-btn pr-share-btn-facebook",onClick:function(t){t.preventDefault(),e.sendBeacon("Facebook-click"),window.open("https://www.facebook.com/sharer/sharer.php?u="+r(),"facebook-share-dialog","width=800,height=600")}},"Share to Facebook"))),this.props.social.allow_post_to_twitter){this.sendBeacon("Twitter-view");var a=this.props.fields.filter(function(e){return"headline"===e.key})[0].value+" - "+this.props.fields.filter(function(e){return"comments"===e.key})[0].value;n.push(d.a.createElement("button",{className:"pr-share-btn pr-share-btn-twitter",type:"button",key:"pwr-twitter-share",onClick:function(t){t.preventDefault(),e.sendBeacon("Twitter-click"),window.open("https://twitter.com/intent/tweet?text="+a+"&url="+r(),"facebook-share-dialog","width=800,height=600")}},"Share to Twitter"))}if(this.props.social.allow_post_to_pinterest_war||Object(E.b)("ALLOW_POST_TO_PINTEREST",this.props.merchantProperties,this.props.config,!0)){var i=this.props.merchant.large_logo_image_url,o=null;if(v.k(this.props.product)&&-1===decodeURIComponent(v.k(this.props.product)).indexOf("h_100/noimage.jpg")&&(o=v.k(this.props.product)),o||i){var s=o||i,c=this.props.fields.filter(function(e){return"headline"===e.key})[0].value+" - "+this.props.fields.filter(function(e){return"comments"===e.key})[0].value,l="url="+r()+"&description="+c+"&media="+s;this.sendBeacon("Pinterest-view"),n.push(d.a.createElement("button",{key:"pwr-pinterest-share",type:"button",onClick:function(t){t.preventDefault(),e.sendBeacon("Pinterest-click"),window.open("https://www.pinterest.com/pin/create/button/?"+l,"facebook-share-dialog","width=800,height=600")},className:"pr-share-btn pr-share-btn-pinterest"},"Share to Pinterest"))}}}return d.a.createElement("div",null,n.length>0&&d.a.createElement("section",{className:"pr-social-sharing"},d.a.createElement("div",{className:"pr-social-sharing-left"},d.a.createElement("img",{width:"100",src:v.k(this.props.product),alt:this.props.product.name||Object(b.a)("collect_display.media.product_image",this.props.localizations)})),d.a.createElement("div",{className:"pr-social-sharing-right"},d.a.createElement(w.a,{importance:1,shouldUseSpan:Object(E.b)("DISABLE_CD4_HEADING_STRUCTURES",this.props.merchantProperties,this.props.config)},"Share your experience"),d.a.createElement("p",null,"Your opinion matters! Share your experience with your social networks."),d.a.createElement("div",{className:"pr-share-btns"},n))))},t}(d.a.Component)),S=r(13),C=r(37),j=r(120),x=r(26),k=r.n(x),I=r(266),P=r.n(I),T=function(e){function t(t){var r;return(r=e.call(this,t)||this).state={clicked:!1,tooltip:!1,fallback:!1},r.attachClipboardListener=r.attachClipboardListener.pwrBind(o()(r)),r.removeClipboardListener=r.removeClipboardListener.pwrBind(o()(r)),r.activateTooltip=r.activateTooltip.pwrBind(o()(r)),r.deactivateTooltip=r.deactivateTooltip.pwrBind(o()(r)),r}c()(t,e);var r=t.prototype;return r.componentDidMount=function(){this.attachClipboardListener()},r.componentDidUpdate=function(){this.removeClipboardListener(),this.attachClipboardListener()},r.componentWillUnmount=function(){this.removeClipboardListener()},r.getTooltipText=function(){if(!this.props.localizations)return"";if(!this.state.fallback)return this.props.localizations.success;var e=Object(v.q)();return"MAC"===e?this.props.localizations.mac:"WIN"===e?this.props.localizations.win:this.props.localizations.mobile},r.activateTooltip=function(){this.setState({tooltip:!0}),setTimeout(this.deactivateTooltip,3e3)},r.deactivateTooltip=function(){this.setState({tooltip:!1})},r.attachClipboardListener=function(){var e=this,t=new P.a(k.a.findDOMNode(this));t.on("error",function(){e.setState({fallback:!0},e.activateTooltip),e.props.onError&&e.props.onError()}),this.props.onCopy&&t.on("success",this.props.onCopy),this.clipboard=t},r.removeClipboardListener=function(){this.clipboard&&this.clipboard.destroy()},r.render=function(){var e,t,r=this;this.state.tooltip&&(e="pr-tooltip pr-tooltip-under",t=this.getTooltipText());var n=this.props.onClick?this.state.clicked&&this.props.disabled:this.props.disabled;return d.a.createElement("button",{type:"button",className:(this.props.className||"pr-btn")+" "+(e||""),"data-clipboard-text":this.props.targetId?void 0:this.props.copyText,"data-clipboard-target":this.props.targetId,"aria-label":t,onMouseLeave:this.deactivateTooltip,onClick:function(){r.props.onClick&&(r.props.onClick(),r.setState({clicked:!0}))},disabled:n},this.props.children)},t}(d.a.Component);u()(T,"defaultProps",{localizations:{mac:"Press cmnd-c to copy",win:"Press ctrl-c to copy",mobile:"Copy the highlighted text",sucesss:"Copied!"}});var R=T,N=function(e){function t(t){var r;return(r=e.call(this,t)||this).state={},r}c()(t,e);var r=t.prototype;return r.componentDidMount=function(){this.setState({scrollHeight:k.a.findDOMNode(this).scrollHeight})},r.render=function(){return d.a.createElement("textarea",a()({style:{minHeight:this.state.scrollHeight}},this.props))},t}(d.a.Component),A=r(64),D=(r(370),r(38)),L=function(e){var t=e.config,r=e.merchantProperties,n=e.copyError,a=e.links,i=e.retailer,o=e.localizations,s=e.product,c=e.reviewText,l=e.reviewRating,u=e.sendBeacon,f=e.tooltipLocalizations,m=Object(E.a)(r,t).DISABLE_CD4_HEADING_STRUCTURES,h=Object(v.k)(s),g=Object(p.useState)(!1),y=g[0],_=g[1],O=Object(p.useState)(!1),S=O[0],C=O[1],x=Object(p.useState)(n||!1),k=x[0],I=x[1],P=Object(p.useState)(!1),T=P[0],L=P[1],F=Array.isArray(a)&&a.length>0,z=function(){F&&u(D.WAR.share_to_retailer_clicked(M(a[0],i)))},V=function(){C(!0),"Amazon"===i?setTimeout(function(){return window.open(a[0]+":"+l)},3e3):setTimeout(function(){return window.open(""+a[0])},3e3)},U=function(){_(!0),setTimeout(V,1e3)};return Object(p.useEffect)(function(){F&&u(D.WAR.share_to_retailer_present(M(a[0],i)))},[F,a,i,u]),F?d.a.createElement("div",{className:"pr-retail-share pr-callout"+(n?" pr-retail-share-fallback":"")+(S?" pr-retail-share-redirect":"")},d.a.createElement("div",{className:"pr-retail-share-header-image"},d.a.createElement(j.a,{src:h,alt:s.name})),d.a.createElement("div",{className:"pr-retail-share-header-text"},d.a.createElement(w.a,{className:"pr-retail-share-header",importance:1,shouldUseSpan:m},Object(b.a)("write_a_review.share_to_retailer.header",o).replace("{0}",i)),d.a.createElement("p",{className:"pr-retail-share-subheader"},Object(b.a)("write_a_review.share_to_retailer.subheader",o)),n?d.a.createElement("div",{className:"pr-retail-share-fallback"},d.a.createElement("div",{className:"pr-retail-share-fallback-buttons"},d.a.createElement(R,{className:"pr-btn-copy-fallback",copyText:c,onCopy:U,localizations:f,targetId:"#pr-retail-share-copy-fallback",onClick:function(){z(),T||L(!0)}},Object(b.a)("write_a_review.share_to_retailer.fallback.copy_button",o)),d.a.createElement("span",null,Object(b.a)("write_a_review.share_to_retailer.fallback.italic_text",o)),d.a.createElement(A.a,{onClick:U,className:"pr-btn pr-btn-default pr-btn-review "+(T?"":"pr-btn-amzn-uncopied")},Object(b.a)("write_a_review.share_to_retailer.fallback.share_button",o).replace("{0}",i))),d.a.createElement(N,{id:"pr-retail-share-copy-fallback",ref:"fallback",value:c})):S?d.a.createElement("div",{className:"pr-redirect-message"},d.a.createElement(w.a,{className:"pr-redirect-message-header",importance:2,shouldUseSpan:m},Object(b.a)("write_a_review.share_to_retailer.normal.redirect_message",o).replace("{0}",i),d.a.createElement("span",{className:"pr-elipsis--loading"})),d.a.createElement("a",{href:""+a[0],target:"_blank",rel:"noopener noreferrer"},Object(b.a)("write_a_review.share_to_retailer.normal.click_to_redirect",o))):d.a.createElement(R,{disabled:y,onClick:z,className:y?"pr-accessible-btn pr-accessible-btn--copied":"pr-accessible-btn",copyText:c,onCopy:U,onError:function(){k||I(!0)},localizations:f},y&&!S?Object(b.a)("write_a_review.share_to_retailer.tooltip.success",o):Object(b.a)("write_a_review.share_to_retailer.normal.button",o).replace("{0}",i)))):null};function M(e,t){return"Amazon"===t?new URL(e).hostname.replace(/\./g,"_"):t.toLowerCase().replace(/ /g,"_")}var F=function(e){var t=e.shareToRetailerData;if(!t)return null;var r=Object.keys(t).pwrMap(function(r){var n;switch(r){case"share_to_bestbuy_link":n="Best Buy";break;case"share_to_coolblue_link":n="Coolblue";break;default:n="Amazon"}return d.a.createElement(L,a()({key:r,retailer:n,links:[].concat(t[r])},e))});return d.a.createElement(d.a.Fragment,null,r)},z=r(10),V=r.n(z),U=(r(371),r(29)),q="ontouchstart"in window||Boolean(navigator.msMaxTouchPoints),W=function(e){var t,r,n=e.localizations,a=e.merchantProperties,i=e.reviewRating,o=e.reviewText,s=e.sendBeacon,c=e.shareToRetailerData,l=e.tooltipLocalizations,u=Object(p.useState)(!1),f=u[0],m=u[1],h=Object(p.useState)(!1),v=h[0],g=h[1],y=Object(p.useState)(!1),_=y[0],O=y[1],S=Object(p.useState)(!1),C=S[0],j=S[1],x=Object(p.useState)(!1),k=x[0],I=x[1],P=Object(U.e)()<500,T=function(e){return Object(b.a)("share_to_retailer."+e,n.write_a_review)||Object(b.a)("write_a_review.share_to_retailer."+e,n)};Object(E.b)("pr_asin")?(r=c.share_to_amazon_links[0]+":"+i,t="Amazon"):Object(E.b)("pr_bestbuy_sku")?(r=c.share_to_bestbuy_link,t="Best Buy"):Object(E.b)("pr_coolblue_sku")?(r=c.share_to_coolblue_link,t="Coolblue"):!0===a.enable_share_to_amazon?(r=c.share_to_amazon_links[0]+":"+i,t="Amazon"):!0===a.enable_share_to_bestbuy?(r=c.share_to_bestbuy_link,t="Best Buy"):!0===a.enable_share_to_coolblue&&(r=c.share_to_coolblue_link,t="Coolblue");var A=function(e,t){if("Amazon"===t)return new URL(e).hostname.replace(/\./g,"_");return t.toLowerCase().replace(/ /g,"_")}(r,t);!k&&A&&(s(D.WAR.share_to_retailer_present(A)),I(!0));var L=function(){g(!0),setTimeout(function(){return window.open(r)},3e3)},M=function(){m(!0),setTimeout(L,2500)},F=V()("pr-retail-share-focus pr-callout",{"pr-retail-share-fallback":_,"pr-retail-share-focus-notification-visible":f}),z=V()("pr-retail-share-focus pr-callout",{"pr-retail-share-focus-redirect":!P});return v?v?d.a.createElement("div",{className:V()("pr-retail-share-focus-container",{"pr-war-phone":P,"pr-war-tablet":!P})},d.a.createElement("div",{className:z},d.a.createElement("div",{className:"pr-retail-share-focus-header-text"},d.a.createElement(w.a,{className:"pr-retail-share-focus-header",importance:1},T("focus.redirect_header").replace("{0}",t)),d.a.createElement(B,null),d.a.createElement(H,{steps:[T("focus.share_step1").replace("{0}",t),T(q?"focus.share_step2_touch_device":"focus.share_step2"),T("focus.share_step3")]}),d.a.createElement("div",{className:"pr-retail-share-focus-redirect-link"},d.a.createElement("a",{href:r,target:"_blank",rel:"noopener noreferrer"},T("normal.click_to_redirect")))))):void 0:d.a.createElement("div",{className:"pr-retail-share-focus-container"},d.a.createElement("div",{className:F},d.a.createElement("div",{className:"pr-retail-share-focus_notification",role:"alert",style:{visibility:f?"visible":"hidden"}},T("focus.copy_success")),d.a.createElement("div",{className:"pr-retail-share-focus-header-text"},d.a.createElement(w.a,{className:"pr-retail-share-focus-header",importance:1},T("focus.header").replace("{0}",t)),d.a.createElement("p",null,T("focus.subheader")),d.a.createElement("p",null,T("focus.copy_instruction").replace("{0}",t)),_?d.a.createElement("div",{className:"pr-retail-share-focus-fallback"},d.a.createElement("div",{className:"pr-retail-share-focus-fallback-buttons"},d.a.createElement(R,{className:"pr-btn-copy-fallback",copyText:o,onCopy:M,localizations:n,targetId:"#pr-retail-share-focus-copy-fallback",onClick:function(){s(D.WAR.share_to_retailer_clicked(A)),C||j(!0)}},T("fallback.copy_button")),d.a.createElement("span",null,T("fallback.italic_text")),d.a.createElement("button",{className:"pr-accessible-btn pr-accessible-btn--fallback",onClick:M},T("fallback.share_button").replace("{0}",t))),d.a.createElement(N,{id:"pr-retail-share-focus-copy-fallback",value:o})):d.a.createElement(R,{disabled:f,onClick:function(){return s(D.WAR.share_to_retailer_clicked(A))},className:"pr-accessible-btn",copyText:o,onCopy:M,onError:function(){_||O(!0)},localizations:l},f?T("tooltip.success"):T("normal.button").replace("{0}",t)))))};function B(){return d.a.createElement("div",{className:"pr-retail-share-focus-loader","aria-hidden":"true"},d.a.createElement("div",null),d.a.createElement("div",null),d.a.createElement("div",null))}function H(e){var t=e.steps;return d.a.createElement("ul",{className:"pr-retail-share-focus_steps"},t.pwrMap(function(e,t){return d.a.createElement("li",{className:"pr-retail-share-focus_step"},d.a.createElement("div",{className:"pr-retail-share-focus_step_number"},t+1),e)}))}function K(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?K(Object(r),!0).forEach(function(t){u()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Q=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,u()(o()(t),"iconInputId",Object(S.f)()),t}c()(t,e);var r=t.prototype;return r.componentDidMount=function(){if(this.props.config.on_submit){var e=this.props.fields.filter(function(e){return(e.value||e.values)&&!e.composite_type}).pwrMap(function(e){var t={};return e.value?t.value=e.value:e.values&&(t.values=e.values),G(G({},t),{},{key:e.key})});y.a.onWriteComponentSubmit(_.u.WriteAReview,this.props,{fields:e})}this.refs.title&&this.refs.title.focus()},r.render=function(){for(var e,t,r,n,a=this,i=Object(E.a)(this.props.merchantProperties,this.props.config).DISABLE_CD4_HEADING_STRUCTURES,o={rating:null,date:null,headline:null,pros:null,cons:null,bestuses:null,comments:null,bottomline:null,name:null,location:null},s=[],c=[],l={values:[]},u={values:[]},p=0;p<this.props.fields.length;p++){var f=this.props.fields[p];if(o.hasOwnProperty(f.key))switch(o[f.key]=f.values||f.value,f.key){case"pros":e=f.label;break;case"cons":t=f.label;break;case"bestuses":r=f.label;break;case"bottomline":n=f.label}else if("composite"!==f.field_type||"Image"!==f.composite_type&&"Video"!==f.composite_type&&"NativeVideo"!==f.composite_type)if("composite"===f.field_type&&"Simple"===f.composite_type)switch(f.id){case"recommended_products":l.label||(l.label=f.label),f.values&&f.values.forEach(function(e){e&&e.value&&l.values.push(e.value)});break;case"similar_products":u.label||(u.label=f.label),f.values&&f.values.forEach(function(e){e&&e.value&&u.values.push(e.value)})}else s.push({key:f.key,label:f.label,value:f.values||f.value,inputType:f.input_type});else c=c.concat(f.values)}var m=["pros","cons","bestuses"],h=!1;for(var y in m){var _=m[y],S=o[_]||[];o[_+"markup"]=[];for(var C=0;C<S.length;C++){h=!0;var j=S[C];o[_+"markup"].push(d.a.createElement("li",{key:C,className:"pr-attribute"},j.value))}}var x="";h&&(x=d.a.createElement("div",null,d.a.createElement("div",{id:"war-ty-pros",className:"col-sm-4"},d.a.createElement("div",{className:"pr-attribute-header"},e),d.a.createElement("ul",{className:"pr-attribute-list"},o.prosmarkup)),d.a.createElement("div",{id:"war-ty-cons",className:"col-sm-4"},d.a.createElement("div",{className:"pr-attribute-header"},t),d.a.createElement("ul",{className:"pr-attribute-list"},o.consmarkup)),d.a.createElement("div",{id:"war-ty-best-uses",className:"col-sm-4"},d.a.createElement("div",{className:"pr-attribute-header"},r),d.a.createElement("ul",{className:"pr-attribute-list"},o.bestusesmarkup))));var k=[];o.bottomline&&(k=d.a.createElement("p",{className:"pr-text"},d.a.createElement("b",{className:"pr-dark",dangerouslySetInnerHTML:{__html:n+":&nbsp;"}}),d.a.createElement("span",null,o.bottomline[0].value)));for(var I,P,T=[],R=0;R<s.length;R++){var N=s[R];if(N){var A="";if(N.value instanceof Array&&N.value.length>0){for(var D=0;D<N.value.length;D++)N.value[D]&&(A+=N.value[D].value+", ");A=A.substring(0,A.length-2)}else A=N.value;A&&("Stars"===N.inputType?T.push(d.a.createElement("div",{key:R,id:N.key,className:"pr-subrating-wrapper"},d.a.createElement("p",{className:"pr-subrating-text pr-pull-left"},d.a.createElement("b",{className:"pr-dark",dangerouslySetInnerHTML:{__html:N.label+":&nbsp;"}})),d.a.createElement("div",{"aria-hidden":"true"},d.a.createElement(g.a,{starStyles:this.props.starStyles,isInteractive:!1,preset:N.value,iconInputId:this.iconInputId,toggledClassName:"pr-star-selected pr-subrating pr-pull-left",untoggledClassName:"pr-star pr-subrating pr-pull-left"})),d.a.createElement("span",{className:"pr-accessible-text"},N.value+" "+(1===N.value?"star":"stars")),d.a.createElement("div",{className:"pr-clearfix"}))):T.push(d.a.createElement("p",{key:R,id:N.key,className:"pr-text"},d.a.createElement("b",{className:"pr-dark"},N.label+" "),d.a.createElement("span",null,A))))}}l.values.length>0&&(I=d.a.createElement("p",{className:"pr-text"},d.a.createElement("b",{className:"pr-dark",dangerouslySetInnerHTML:{__html:l.label+":&nbsp;"}}),d.a.createElement("span",{dangerouslySetInnerHTML:{__html:l.values.join(",&nbsp;")}}))),u.values.length>0&&(P=d.a.createElement("p",{className:"pr-text"},d.a.createElement("b",{className:"pr-dark",dangerouslySetInnerHTML:{__html:u.label+":&nbsp;"}}),d.a.createElement("span",{dangerouslySetInnerHTML:{__html:u.values.join(",&nbsp;")}})));for(var L=[],M=0;M<c.length;M++){var F=c[M]&&c[M].value||c[M],z=void 0,V=void 0;if(F&&"Image"===F.composite_type)z=F.composite_data.raw.url.replace("upload/","upload/f_auto,w_100,c_pad,a_"+(F.rotation||0)+"/"),V=F.caption;else{if(!F||"Video"!==F.composite_type&&"NativeVideo"!==F.composite_type)continue;z=F.video_thumbnail_url.replace("/upload/","/upload/a_"+(F.rotation||0)+"/"),V=F.caption}L.push(d.a.createElement("div",{className:"col-sm-12",key:M},d.a.createElement("img",{alt:V||Object(b.a)("collect_display.collect.media.customer_media",this.props.localizations),className:"pr-media-preview",src:z}),d.a.createElement("p",{className:"text"},V)))}var U,q=Object(E.a)(this.props.merchantProperties,this.props.config,!0).ENABLE_ENHANCED_CONTENT_SECURITY,W=function(){if(q)return null;var e=null;if(Object(E.b)("pr_return_url",a.props.config)){var t=v.u(Object(E.b)("pr_return_url",a.props.config,!1));e=t.match(/^http/g)?t:"http:"+t}return e};if(!q)if(W())U=d.a.createElement(w.a,{importance:5,shouldUseSpan:i},d.a.createElement("a",{href:W()},Object(b.a)("thank_you_page.return_text",this.props.localizations.write_a_review)));else if(this.props.product.full_product_url)U=d.a.createElement(w.a,{importance:5,shouldUseSpan:i},d.a.createElement("a",{href:this.props.product.full_product_url},Object(b.a)("thank_you_page.return_text",this.props.localizations.write_a_review)));else if(window.POWERREVIEWS&&window.POWERREVIEWS.display&&!window.POWERREVIEWS.display.standalone){var B=window.location.origin?window.location.origin+"/":window.location.protocol+"/"+window.location.host;U=d.a.createElement(w.a,{importance:5,shouldUseSpan:i},d.a.createElement("a",{href:B},Object(b.a)("thank_you_page.return_text",this.props.localizations.write_a_review)))}return"FOCUS"===this.props.shareToRetailerType&&this.props.shareToRetailerData?d.a.createElement("div",{className:"thank-you-page"},this.props.children):d.a.createElement("div",{className:"thank-you-page"},d.a.createElement("div",{id:"fb-root"}),d.a.createElement("div",{className:"pr-row"},d.a.createElement("a",{ref:"title",name:"pr-thank-you"}),d.a.createElement("div",{className:"header col-sm-12"},d.a.createElement(w.a,{importance:1,shouldUseSpan:i,className:"title"},Object(b.a)("thank_you_page.headline",this.props.localizations.write_a_review)),d.a.createElement(w.a,{importance:3,shouldUseSpan:i,className:"subtitle",dangerouslySetInnerHTML:{__html:Object(b.a)("thank_you_page.subheadline",this.props.localizations.write_a_review)}}),this.props.promo&&d.a.createElement("div",{className:"pr-promo-code-markup",dangerouslySetInnerHTML:{__html:this.props.promo}}),this.props.shareToRetailerData&&this.props.children,d.a.createElement(O,{type:this.props.type,social:this.props.social,config:this.props.config,contextInfo:this.props.contextInfo,merchantProperties:this.props.merchantProperties,product:this.props.product,merchant:this.props.merchant,fields:this.props.fields,localizations:this.props.localizations,sendBeacon:this.props.sendBeacon,tooltipLocalizations:this.props.tooltipLocalizations}),U),d.a.createElement("div",{className:"pr-clearfix"})),d.a.createElement("div",{className:"review-preview pr-row"},d.a.createElement("div",{className:"col-sm-12"},d.a.createElement("div",{className:"pr-custom-star-image"}),d.a.createElement("div",{className:"pr-custom-star-image-hover"}),d.a.createElement("div",{"aria-hidden":"true"},d.a.createElement(g.a,{starStyles:this.props.starStyles,isInteractive:!1,preset:o.rating,iconInputId:this.iconInputId,toggledClassName:"pr-star-selected",untoggledClassName:"pr-star"})),d.a.createElement("span",{className:"pr-accessible-text"},o.rating+" "+(1===o.rating?"star":"stars")),d.a.createElement("div",{"aria-hidden":"true",className:"pr-rating-number"},d.a.createElement("span",null,o.rating),d.a.createElement("span",null,".0")),d.a.createElement("div",{"aria-hidden":"true",className:"pr-pull-right pr-rating-date"},v.p(Object(b.a)("date_format",this.props.localizations.powerreviews))),d.a.createElement("div",{className:"pr-clearfix"})),d.a.createElement("div",{className:"col-sm-12"},d.a.createElement(w.a,{importance:2,shouldUseSpan:i,className:"headline"},o.headline)),x,d.a.createElement("div",{className:"col-sm-12"},d.a.createElement("p",{className:"pr-text"},o.comments),T,I,P,k,d.a.createElement("div",{className:"pr-row"},L))))},t}(d.a.Component);function Y(e){var t=e.config,r=e.social,n=e.product,i=e.merchantProperties,o=e.localizations,s=function(e){var t=e.config,r=e.social,n=e.product,a=e.merchantProperties,i=e.localizations,o=Object(E.a)(t,n,!1,!0),s=o.asin,c=o.coolblue_sku,l=o.bestbuy_sku,u=o.disclosure_code;s||a.enable_share_to_amazon||(o.lookup_asin="false");var d=Object(p.useState)(!1),f=d[0],m=d[1],h=Object(p.useState)(),v=h[0],g=h[1],y={mac:Object(b.a)("write_a_review.share_to_retailer.tooltip.mac",i),win:Object(b.a)("write_a_review.share_to_retailer.tooltip.win",i),mobile:Object(b.a)("write_a_review.share_to_retailer.tooltip.mobile",i),success:Object(b.a)("write_a_review.share_to_retailer.tooltip.success",i)},_=r.share_to_retailer_display||o.share_to_retailer_display||"DEFAULT",w=!!(s||c||l||r.enable_share_to_amazon||r.enable_share_to_coolblue||r.enable_share_to_bestbuy);return"sampling"!==u&&"communitycontent"!==u&&"sweepstakes"!==u||(w=!1),Object(p.useEffect)(function(){!1!==w?!0!==f&&Object(C.c)(o,function(e){var t=e.error,r=e.data,n=void 0===r?{}:r;m(!0),t||0===Object.keys(n).length?g(null):g(n)}):m(!0)},[o,w,f]),{shareToRetailerLoaded:f,shareToRetailerData:v,shareToRetailerType:_,tooltipLocalizations:y}}({config:t,social:r,product:n,merchantProperties:i,localizations:o}),c=s.shareToRetailerLoaded,l=s.shareToRetailerData,u=s.shareToRetailerType,f=s.tooltipLocalizations;if(!1===c)return null;var m="FOCUS"===u?W:F;return d.a.createElement(Q,a()({shareToRetailerData:l,shareToRetailerType:u},e),d.a.createElement(m,{config:t,localizations:o,merchantProperties:i,product:n,reviewRating:e.fields.find(function(e){return"rating"===e.key}).value,reviewText:e.fields.find(function(e){return"comments"===e.key}).value,sendBeacon:e.sendBeacon,shareToRetailerData:l,tooltipLocalizations:f}))}var $=r(48),J=r(52),X=r(51),Z=r(23),ee=r(75),te=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,u()(o()(t),"state",{display:!0}),t}c()(t,e);var r=t.prototype;return r.componentDidMount=function(){if(window.self!==window.top)return window.top.location=window.self.location;var e=this.props.clipUrlParams.filter(function(e){return Object(E.b)(e)});if(e.length){var t=window.location.href;return e.forEach(function(e){return t=t.replace(Object(E.b)(e),"")}),window.location.href=t}this.setState({display:!1})},r.render=function(){return this.state.display?d.a.createElement("style",{ref:"antiClickJack",dangerouslySetInnerHTML:{__html:"body {\n              display:none !important;\n            }"}}):null},t}(p.Component);u()(te,"defaultProps",{clipUrlParams:[]});var re=te,ne=r(14),ae=r(15),ie=r(81),oe=r(66);function se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ce(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?se(Object(r),!0).forEach(function(t){u()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):se(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var le=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,u()(o()(t),"tracker",new ne.b(Object(E.a)(t.props.config))),u()(o()(t),"sendBeacon",function(e){t.tracker.sendBeacon(t.props.config.page_id,t.props.type,e)}),u()(o()(t),"errorAlert",d.a.createRef()),u()(o()(t),"state",{preSubmitErrorList:[]}),u()(o()(t),"onLoadSuccess",function(){var e=t.props,r=e.type,n=e.config.source;!0===Object(E.b)("pr_autosubmit")&&(t.interval=10,t.intervalID=setInterval(t.waitForIovationAndSubmit,300)),t.sendBeacon({eventFlow:"sms"===n?ee.a[r].smsStart:ee.a[r].start})}),u()(o()(t),"setField",function(e,r){for(var n,a=[].concat(t.props.fields),i=0;i<a.length;i++)if(e===a[i].key){n=i;break}null!==n&&(a[n]=ce(ce({},a[n]),{},{preset:r,value:r,id:n,reactKey:n+Date.now()}),t.props.updateFields(t.props.config,a))}),u()(o()(t),"updateFieldValidity",function(e){void 0===e&&(e=[]);var r=t.props.merchant,n=(r=void 0===r?{}:r).configuration,a=e.pwrMap(function(e){var t=ce({},e),r=t.values||t.value;return t.hasOwnProperty("is_required")?t.isValid=v.w(r,t.is_required,t.validationType):e.hasOwnProperty("required")&&(t.isValid=v.w(r,t.required,t.validationType)),n&&n.war_minimum_required_characters&&"number"==typeof n.war_minimum_required_characters&&"comments"===e.key&&(t.isValid=t.isValid&&e.value.length>=n.war_minimum_required_characters),t});t.props.updateFields(t.props.config,a)}),u()(o()(t),"waitForIovationAndSubmit",function(){window.ioGetBlackbox||0===t.interval?(t.intervalID&&window.clearInterval(t.intervalID),t.handleSubmit()):t.interval=t.interval-1}),u()(o()(t),"handleSubmit",function(){t.updateFieldValidity(t.props.fields),setTimeout(function(){var e=t.props,r=e.config,n=(e.merchant,e.feedlessProductInfo),a=e.contextInformation,i=e.submitWAR,o=e.cancelSubmit,s=e.fields,c=e.isMediaOnlyFollowUp,l=e.localizations;if(!!s.some(function(e){return!e.isValid}))return o(r),void t.setState({preSubmitErrorList:s.filter(function(e){return!e.isValid&&e.required}).pwrMap(function(e){return{label:e.label,id:Object(ie.b)(e.key,!0)}})});t.setState({preSubmitErrorList:[]});var u=s.filter(function(e){return e.value||e.values&&Array.isArray(e.values)&&e.values.length}),p=window.ioGetBlackbox?window.ioGetBlackbox().blackbox:null;if(!p&&t.props.iovationRequired)return t.props.setSubmitErrorMessage(r,Object(b.a)("error.adblock_interference",l.powerreviews));document.getElementById("pr-war")&&document.getElementById("pr-war").scrollIntoView(),i(r,u,n,a,p,c).then(function(){t.props.submitError&&v.j(X.a.SUBMISSION_ERROR,{fields:t.props.fields,error:{hasError:t.props.submitError,message:t.props.submitErrorMessage}}),t.props.isReviewSubmitted&&v.j(X.a.COMPLETE,{fields:t.props.fields,error:{hasError:t.props.submitError,message:t.props.submitErrorMessage}})})})}),u()(o()(t),"handleFieldChange",function(e,r){var n=[].concat(t.props.fields);n[r]=ce(ce({},n[r]),e),t.props.updateFields(t.props.config,n)}),t}c()(t,e);var r=t.prototype;return r.componentDidMount=function(){var e=this,t=this.props,r=t.getWARTemplate,n=t.config;t.isMediaOnlyFollowUp||r(n).then(function(){e.props.fetchError||(window.POWERREVIEWS.submission=window.POWERREVIEWS.submission||{},window.POWERREVIEWS.submission.set=e.setField,e.onLoadSuccess()),v.j(X.a.LOADED),n.on_render&&y.a.onWriteComponentRender(_.u.WriteAReview,e.props)})},r.componentDidUpdate=function(e,t){var r=this.props,n=r.fetchError,a=r.submitError,i=this.state.preSubmitErrorList.length>0&&this.state.preSubmitErrorList!==t.preSubmitErrorList;if(!e.fetchError&&n||!e.submitError&&a||i){var o=this.errorAlert.current;o&&o.scrollIntoView&&(v.x()?o.scrollIntoView():o.scrollIntoView({block:"end",behavior:"smooth"}),document.body.scrollTop-=170)}if(!e.merchant&&this.props.merchant&&this.tracker.setMode(this.props.merchant.configuration.social_measurement_data),e.isReviewSubmitted!==this.props.isReviewSubmitted&&!0===this.props.isReviewSubmitted){var s=this.props,c=s.type,l=s.config.source;this.sendBeacon({eventFlow:"sms"===l?ee.a[c].smsComplete:ee.a[c].complete})}},r.componentWillUnmount=function(){this.intervalID&&window.clearInterval(this.intervalID)},r.renderThankYouPage=function(e,t){var r=this.props,n=r.type,a=r.config,i=r.merchant,o=void 0===i?{}:i,s=r.product,c=void 0===s?{}:s,l=r.contextInformation,u=void 0===l?{}:l,p=r.localizations,f=void 0===p?{}:p,m=r.fields,h=void 0===m?[]:m;return d.a.createElement("div",{className:e,key:"pr-thank-you-page"},d.a.createElement("div",null),d.a.createElement(Y,{id:"thanks-iframe",type:n,frameBorder:"0",fields:h,config:a,merchant:o,product:c,social:o.configuration,contextInfo:u,promo:o.promo_markup,starStyles:t,localizations:f,merchantProperties:o.configuration,sendBeacon:this.sendBeacon}))},r.render=function(){var e=this,t=this.props,r=t.config,n=t.merchant,i=void 0===n?{}:n,o=t.product,s=void 0===o?{}:o,c=t.localizations,l=void 0===c?{}:c,u=t.isLoading,p=t.isSubmitting,f=t.isReviewSubmitted,g=t.type,y=t.fetchError,_=t.fetchErrorType,O=t.fetchErrorMessage,S=t.submitError,C=t.submitErrorType,j=t.submitErrorMessage,x=t.fields,k=void 0===x?[]:x,I=t.isMediaOnlyFollowUp,P=this.state.preSubmitErrorList,T="";Object(E.b)("pr_star_styles")?T=Object(E.b)("pr_star_styles"):i.configuration&&i.configuration.star_styles&&(T=i.configuration.star_styles);var R=r.ugc_id&&r.passcode,N=y||S||P.length>0,A=i.configuration&&!i.configuration.is_live&&!u&&!p,D=!!k.filter(function(e){return"IN_PROGRESS"===e.syncStatus}).length,L=u||p,M=L||y,F="p-w-r";if(F+=v.x()?" pr-ie8":"",F+=r.page_id?" pr-page-id-"+r.page_id.toString().replace(/[^\w\s]/gi,""):"",F+=r.merchant_id?" pr-merchant-id-"+this.props.config.merchant_id:"",F+=r.merchant_group_id?" pr-merchant-group-"+this.props.config.merchant_group_id:"",_===Z.a.FATAL_ERROR||_===Z.a.DUPLICATE_REVIEW||_===Z.a.INVALID_PARAMETER||C===Z.a.FATAL_SUBMIT_REVIEW_FAILURE){var z=_===Z.a.DUPLICATE_REVIEW?"info":"danger",V="We're sorry, the Write a Review service is temporarily unavailable. Please try again later.";return r.locale&&(-1!==r.locale.indexOf("de_")?V="Es tut uns leid, dass der Review-Service vorübergehend nicht verfügbar ist. Bitte versuchen Sie es später noch einmal.":-1!==r.locale.indexOf("fr_")?V="Nous sommes désolés, le service Rédiger un commentaire est momentanément indisponible. Veuillez réessayer plus tard.":-1!==r.locale.indexOf("pt_")&&(V="Lamentamos, mas o serviço Write a Review está temporariamente indisponível. Por favor, tente novamente mais tarde.")),d.a.createElement("div",{className:F+" pr-template-load-alert"},d.a.createElement(J.a,{message:O||j||V,type:z,isVisible:N}))}if(f)return this.renderThankYouPage(F,T);var U=null;if(P.length){var q=1===P.length?Object(b.a)("error_alert.heading_singular",l.write_a_review):Object(b.a)("error_alert.heading_plural",l.write_a_review).replace("{}",P.length),W=Object(b.a)("error_alert.required_field",l.write_a_review);U=d.a.createElement("div",null,d.a.createElement(w.b,null,d.a.createElement(w.a,{importance:2,className:"pr-alert_heading"},q)),d.a.createElement("ul",{className:"pr-alert_list"},P.pwrMap(function(e){var t=e.label,r=e.id,n=W.replace("{}",t);return d.a.createElement("li",{key:r},n)})))}var B=Object(b.a)("write_a_review.required_label",l.write_a_review);return d.a.createElement("div",{className:F},i.configuration&&i.configuration.enable_enhanced_content_security&&d.a.createElement(re,{clipUrlParams:["pr_style_sheet"]}),d.a.createElement("div",null),d.a.createElement($.a,{isVisible:L}),d.a.createElement(J.a,{message:O||j||U,type:"danger",isVisible:N,ref:this.errorAlert}),R&&!L&&d.a.createElement(J.a,{message:"<h4>"+Object(b.a)("review_editing.notification_title",l.write_a_review)+'</h4><p style="line-height:1.25em;">'+Object(b.a)("review_editing.notification_description",l.write_a_review)+"</p>",type:"warning",isVisible:!0,isWarning:!0}),d.a.createElement(J.a,{message:"This is a TEST review",type:"warning",isVisible:A,isWarning:!0}),d.a.createElement("div",{role:"form",className:"pr-war"+(M?" pr-hide":""),"data-testid":"war-form"},!I&&d.a.createElement(m.a,{localizations:l,config:r,product:s,merchant:i}),d.a.createElement("div",{id:"pr-war-form"},d.a.createElement("p",{className:"pr-header-required",tabIndex:"0"},d.a.createElement("abbr",{className:"pr-required-indicator",title:B},"*"),d.a.createElement("span",null,Object(b.a)("page_header.required_text",l.write_a_review||{"page_header.required_text":""}))),k.pwrMap(function(t,n){var o=Object(E.b)("WAR_MINIMUM_RECOMMENDED_CHARACTERS"),s={field:t,fieldIndex:n,handleFieldUpdate:e.handleFieldChange,type:g,starStyles:T,localizations:l,config:r,merchantProperties:i.configuration,videoCollectionType:Object(E.b)("pr_video_collection_type",i.configuration,r)};return"comments"===t.key&&(i.configuration&&i.configuration.war_minimum_required_characters&&"number"==typeof i.configuration.war_minimum_required_characters?s.minCharacters=i.configuration.war_minimum_required_characters:o?s.minRecommendedChars=o:i.configuration&&i.configuration.war_minimum_recommended_characters&&(s.minRecommendedChars=i.configuration.war_minimum_recommended_characters)),d.a.createElement(ie.a,a()({key:t.id||t.key,requiredText:B},s))})),d.a.createElement(h.a,{localizations:l,onSubmit:this.handleSubmit,merchant:i,config:r,disabled:D})))},t}(p.Component),ue={getWARTemplate:ae.A,submitWAR:ae.G,updateFields:ae.H,setSubmitErrorMessage:ae.E,cancelSubmit:ae.y};t.a=Object(f.b)(function(e,t){var r=v.s(t.config);return ce(ce({},e.WriteAReview[r]),{},{isMediaOnlyFollowUp:"WARMO"===t.type})},ue)(Object(oe.a)(le))},function(e,t,r){"use strict";r.d(t,"c",function(){return o}),r.d(t,"b",function(){return s}),r.d(t,"a",function(){return c});var n=r(35),a=r(1),i=r(40),o=function(e){for(var t=n.a.parse(e.product_answers["question_wizard.edit.type_of_question_options_json"]),r={},a=0;a<t.length;a++){var i=t[a];r[i.value]?r[i.value].choices=r[i.value].choices.concat(i.choices):r[i.value]=i}var o=[];for(var s in r)o.push(r[s]);return o},s=function(e){var t=e.config,r=e.merchant,n=e.localizations,s=o(n);return[{id:"questionTypeCategory",key:"questionTypeCategory",input_type:"TextBox",isValid:!0,required:!0,values:s.length>0?null:{category:null,type:"product"},typeLabel:n.product_answers["question_wizard.edit.type_of_question"],categoryLabel:n.product_answers["question_wizard.edit.choose_one"],choices:s},{id:"question_text",key:"questionText",input_type:"TextArea",label:n.product_answers["question_wizard.edit.question_label"],helper_text:n.product_answers["question_wizard.edit.question_example"],isValid:!0,required:!0},{id:"author_email",key:"authorEmail",input_type:"TextBox",label:n.product_answers["question_wizard.edit.email_label"],helper_text:n.product_answers["question_wizard.edit.email_example"],example:Object(a.a)("please_provide_email",n.product_answers),value:t.merchant_user_email||null,isValid:!0,validationType:i.a.EMAIL,required:r.configuration.answerbox_required_email},{id:"author_name",key:"authorName",input_type:"TextBox",label:n.product_answers["question_wizard.edit.nickname_label"],helper_text:n.product_answers["question_wizard.edit.nickname_example"],isValid:!0,required:r.configuration.answerbox_nickname_is_required},{id:"author_location",key:"authorLocation",input_type:"TextBox",label:n.product_answers["question_wizard.edit.location_label"],helper_text:n.product_answers["question_wizard.edit.location_example"],isValid:!0,required:!1}]},c=function(e){var t=e.localizations,r=(t=void 0===t?{}:t).product_answers,n=void 0===r?{}:r;return[{id:"answer_text",key:"answerText",input_type:"TextArea",label:n["answer_wizard.edit.answer_label"],helper_text:n["answer_wizard.edit.answer_example"],isValid:!0,required:!0},{id:"author_name",key:"authorName",input_type:"TextBox",label:n["answer_wizard.edit.nickname_label"],helper_text:n["answer_wizard.edit.nickname_example"],isValid:!0},{id:"author_location",key:"authorLocation",input_type:"TextBox",label:n["answer_wizard.edit.location_label"],helper_text:n["answer_wizard.edit.location_example"],isValid:!0}]}},function(e,t,r){"use strict";var n=r(2),a=r.n(n),i=r(5),o=r(4),s="QUESTIONS",c=r(53),l=r(145),u=r.n(l);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){a()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var f=function(){function e(e){this.data=e}return e.prototype.toJSON=function(){return{id:this.id,identifiers:this.identifiers,details:this.details,metrics:this.metrics}},u()(e,[{key:"id",get:function(){return this.data.id||this.data.answer_id}},{key:"identifiers",get:function(){return{created_date:this.data.details.created_date}}},{key:"details",get:function(){var e=null;return e=this.data.details.brand_base_url&&this.data.details.brand_name?"Brand":"EXPERT"===this.data.details.author_type?"Expert":"APO"===this.data.details.author_type?"Ask Product Owner":"Community",d(d({},this.data.details),{},{author_location:this.data.details.location,author_nickname:this.data.details.author_nickname||this.data.details.nickname,author_type:e,text:this.data.details.text})}},{key:"highlights",get:function(){return this.data.answer_highlights}},{key:"metrics",get:function(){return this.data.metrics}}]),e}();function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){a()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}r.d(t,"a",function(){return S}),r.d(t,"c",function(){return C}),r.d(t,"e",function(){return j}),r.d(t,"d",function(){return x}),r.d(t,"b",function(){return k});var v="ANSWERS_FETCH_INITIAL_DATA",g="ANSWERS_FETCH_NEXT_PAGE",b="ANSWERS_IS_QUERYING",y="ANSWERS_GET_CURRENT_CONTAINER_CLASS",_="ANSWERS_GET_PREVIOUS_ANSWERS",w="ANSWERS_GET_NEXT_ANSWERS",E="answers",O={currentIndex:0};function S(e,t){var r,n,a;switch(void 0===e&&(e=O),t.type){case b:return h(h({},e),{},((r={})[t.productKey]=h(h({},e[t.productKey]),{},{isQuerying:!0}),r));case v:var i=t.data.results;if(!i)return e;var o=e.localizations||(t.data.results.configuration?t.data.results.configuration.localizations:{}),s=e.merchant_properties||(t.data.results.configuration?t.data.results.configuration.properties:{});return h(h({},e),{},((n={localizations:o,merchant_properties:s})[t.data.productKey]={paging:i.paging,total:i.results[0].answer_count,results:i.results[0].answer.pwrMap(function(e){return new f(e)}),isQuerying:!1},n));case g:var c=t.data.results;return h(h({},e),{},((a={})[t.data.productKey]=h(h({},e[t.data.productKey]),{},{results:[].concat(e[t.data.productKey].results,c.results),paging:h({},c.paging),isQuerying:!1}),a.currentIndex=e.currentIndex+1,a));case y:return h(h({},e),{},{currentContainerClass:t.currentClass});case _:case w:return h(h({},e),{},{currentIndex:t.currentIndex});default:return e}}function C(e){return{type:y,currentClass:e}}function j(e){return{type:_,currentIndex:e}}function x(e){return{type:w,currentIndex:e}}function k(e,t,r){void 0===r&&(r=null);var n=Object(i.b)("pr_read_services_base_url",e);return function(a){var i=Object(o.s)(e),l=h(h(h({},e),t),{},{read_services_base_url:n,page_id:e.page_id,queryType:E,wdyb:!0});return r?c.get(r,l).then(function(e){a({type:g,data:{productKey:i,results:e}})}):(a({type:b,productKey:i}),c.getContent(s,l,!0).then(function(e){a({type:v,data:{productKey:i,results:e}})}))}}},function(e,t,r){"use strict";r.d(t,"b",function(){return u});var n=r(24),a=r(65),i=r.n(a),o=(r(82),r(23),r(12),r(35)),s=document.location.protocol&&document.location.protocol.indexOf("http")>-1?document.location.protocol:"http:",c=function(e,t){return Object(n.c)(e)?s+Object(n.c)(e).writeBase:t},l=s+"//writeservices.powerreviews.com",u=function(e,t,r,n){if(t){var a;if(t.body)a=t.body;else if(t.text)try{a=o.a.parse(t.text)}catch(e){a=t.text}!e||t?t.statusCode&&200!==t.statusCode||t.status&&200!==t.status?n({error:e,statusCode:t.statusCode||t.status,data:a,details:r}):n({error:!1,statusCode:t.statusCode||t.status,data:a,details:r}):n({error:e,statusCode:null,data:a,details:r})}else n({error:e,statusCode:null,data:null,details:r})};t.a={getShareToAmazonData:function(e,t){var r={};e.include_sta_links=!0,["page_id","page_id_variant","locale","merchant_id","merchant_group_id","site_id","include_sta_links","asin"].forEach(function(t){r[t]=e[t]});var n=c(e.api,l)+"/api/asin";i.a.get(n).query(r).end(function(e,r){u(e,r,{endpoint:n},t)})},getShareToRetailerData:function(e,t){var r={};e.include_sta_links=!0,["page_id","page_id_variant","locale","merchant_id","merchant_group_id","site_id","include_sta_links","asin","gtin","lookup_asin","bestbuy_sku","coolblue_sku"].forEach(function(t){r[t]=e[t]});var n=c(e.api,l)+"/share-to";i.a.get(n).query(r).end(function(e,r){u(e,r,{endpoint:n},t)})},submitFlaggingAndHelpfulVoting:function(e,t){var r=c(e.api,l)+"/"+e.command,n={};["ugc_id","answer_id","review_id","vote_type","flag_type","flag_comment","merchant_user_id","contact_email","merchant_id"].forEach(function(t){e[t]&&(n[t]=e[t])}),i.a.post(r).set("Content-Type","application/json").send(n).end(function(e,n){u(e,n,{endpoint:r},t)})}}},function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r(0),a=function(e){var t=Object(n.useRef)();return Object(n.useEffect)(function(){t.current=e},[e]),t.current}},function(e,t,r){"use strict";var n=r(2),a=r.n(n),i=r(8),o=r.n(i),s=r(7),c=r.n(s),l=r(0),u=r.n(l),p=(r(9),r(17)),d=r(27),f=r(206),m=r(217),h=r(52),v=r(147),g=r(207),b=r(208),y=r(48),_=r(4),w=r(25),E=r(6),O=r(51);function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach(function(t){a()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var j=function(e){function t(){return e.apply(this,arguments)||this}c()(t,e);var r=t.prototype;return r.componentDidMount=function(){var e=this,t=this.props,r=t.config,n=t.fetchWAAData,a=t.fetchWAQData,i=t.WAQWAAType;"WAQ"===i?a(r).then(function(){_.j("WAQ_"+O.a.LOADED),r.on_render&&w.a.onWriteComponentRender(E.u.WriteAQuestion,e.props)}):n(r,i).then(function(){_.j("WAA_"+O.a.LOADED),r.on_render&&w.a.onWriteComponentRender(E.u.WriteAnAnswer,e.props)})},r.renderForm=function(){var e={config:this.props.config,merchant:this.props.merchant_information,localizations:this.props.form_localizations,errors:this.props.field_errors,type:this.props.WAQWAAType,isSubmitting:this.props.isSubmitting,setSubmitErrorMessage:this.props.setSubmitErrorMessage};return"WAQ"===this.props.WAQWAAType?u.a.createElement(m.a,o()({},e,{submitWAQData:this.props.submitWAQData})):u.a.createElement(v.a,o()({},e,{question_data:this.props.question_data,submitWAAData:this.props.submitWAAData}))},r.renderThankYouPage=function(){var e=this.props,t=e.config,r=e.form_localizations,n=e.question_data,a=e.answer_data,i=e.product_information,o=e.WAQWAAType;return u.a.createElement("div",{className:"p-w-r"},u.a.createElement("div",{className:"pr-waqwaa"},u.a.createElement(g.a,{config:t,localizations:r.product_answers,question:n,answer:a,product:i,type:o})))},r.render=function(){var e,t=this.props,r=t.WAQWAAType,n=t.config,a=t.product_information,i=t.merchant_information,o=t.isComplete,s=t.form_localizations,c=t.question_data,l=t.days_since_asked,p=t.errorMessage,d=t.field_errors,m=t.fetchError,v=t.fatalSubmitError;return p&&(e=u.a.createElement("div",{className:"p-w-r pr-template-load-alert"},u.a.createElement(h.a,{message:p,type:"danger",isVisible:!0}))),p&&!d?u.a.createElement("div",{className:"p-w-r"},u.a.createElement("div",{className:"pr-waqwaa"},e)):o?this.renderThankYouPage():s&&a?u.a.createElement("div",{className:"p-w-r"},u.a.createElement("section",{className:"pr-waqwaa"},u.a.createElement("div",null,e),u.a.createElement(f.a,{product:a,merchant:i,config:n,isTest:i&&!i.configuration.is_live,localizations:s,question:c,daysAgo:l}),this.renderForm())):v||m?u.a.createElement("div",{className:"p-w-r"},u.a.createElement("div",{className:"pr-waqwaa"},u.a.createElement(b.a,{type:r}))):u.a.createElement("div",{className:"p-w-r"},u.a.createElement(y.a,{isVisible:!0}))},t}(l.Component),x={fetchWAQData:d.o,fetchWAAData:d.n,submitWAQData:d.r,submitWAAData:d.q,setSubmitErrorMessage:d.p};t.a=Object(p.b)(function(e,t){var r=_.s(t.config),n=t.config.question_id?"WAA":"WAQ";return r+="_"+("WAQ"===n?"question":"answer"),C(C({},e.WAQWAA[r]||{}),{},{WAQWAAType:n})},x)(j)},function(e,t,r){"use strict";r.r(t);var n=r(7),a=r.n(n),i=r(0),o=r.n(i),s=(r(9),r(151)),c=r(3),l=r.n(c),u=r(2),p=r.n(u),d=r(17),f=r(15),m=r(31),h=r(34),v=r(52),g=(r(376),r(4)),b=r(1),y=function(e){var t=e.rotation,r=void 0===t?0:t,n=e.meta,a=(n=void 0===n?{}:n).composite_data,i=(a=void 0===a?{}:a).raw,o=(i=void 0===i?{}:i).url;return(void 0===o?"":o).replace("upload/","upload/f_auto,w_150,h_150,q_90,c_pad,a_"+r+"/")},_=r(11),w=r(5),E=function(e){function t(){return e.apply(this,arguments)||this}return a()(t,e),t.prototype.render=function(){var e=this.props,t=e.media,r=e.localizations,n=e.isReviewSubmitted,a=e.merchant_information,i=e.config,c=e.type,l=Object(w.a)(a.configuration,i).DISABLE_CD4_HEADING_STRUCTURES;return o.a.createElement("div",{className:"pr-war-mo-form"},o.a.createElement(_.a,{importance:1,shouldUseSpan:l,className:"pr-war-mo-form-title"},Object(b.a)("media_only.thank_you_headline",r.write_a_review)),o.a.createElement("p",{className:"pr-war-mo-form-subtitle"},Object(b.a)("media_only.thank_you_subhead",r.write_a_review)),o.a.createElement("div",{className:"pr-war-mo-form-thankyou-list"},t.pwrMap(function(e,t){return o.a.createElement("div",{className:"pr-war-mo-form-thankyou-list-item",key:e.id},o.a.createElement("img",{width:"150",alt:e.caption||""+(Object(b.a)("collect_display.collect.media.uploaded_media_item",r)+t),src:y(e)}))})),o.a.createElement("div",{className:"pr-war-mo-form-add-review"},!n&&o.a.createElement("div",null,o.a.createElement(_.a,{importance:1,shouldUseSpan:l,className:"pr-war-mo-form-title"},Object(b.a)("media_only.add_review_headline",r.write_a_review)),o.a.createElement("p",{className:"pr-war-mo-form-subtitle"},Object(b.a)("media_only.add_review_subhead",r.write_a_review))),o.a.createElement(s.a,{config:i,type:c})))},t}(i.Component),O=r(267),S=r.n(O),C=r(90),j=function(e){function t(){return e.apply(this,arguments)||this}return a()(t,e),t.prototype.render=function(){var e=this.props,t=e.localizations,r=e.addMedia,n=e.isComplete,a=e.media,i=e.merchant_information,s=e.config;return n||!t||a.length>0?null:o.a.createElement("div",{className:"pr-war-mo-form pr-war-mo-form-empty"},o.a.createElement(_.a,{importance:1,shouldUseSpan:Object(w.b)("DISABLE_CD4_HEADING_STRUCTURES",i.configuration,s),className:"pr-war-mo-form-title"},Object(b.a)("media_only.headline",t.write_a_review)),o.a.createElement("p",{className:"pr-war-mo-form-subtitle"},Object(b.a)("media_only.subhead",t.write_a_review)),o.a.createElement("div",{className:"pr-war-mo-form-share-media"},o.a.createElement("img",{alt:"",src:S.a})),o.a.createElement(C.a,{localizations:t,id:"pr-war-mo-input",isRequired:!0,label:"",handleFieldUpdate:function(e){return r(null,e)},mediaType:"All",count:10,values:[],parentComponent:"WARMO",config:s,merchantProperties:i.configuration}))},t}(i.Component),x=r(64),k=r(48),I=r(169),P=function(e){function t(){return e.apply(this,arguments)||this}return a()(t,e),t.prototype.render=function(){var e=this.props,t=e.isComplete,r=e.media,n=e.merchant_information,a=e.localizations,i=e.removeMedia,s=e.rotateMedia,c=e.updateCaption,l=e.isLoading,u=e.addMedia,p=e.config,d=e.onSubmit,f=e.disabled;if(t||r.length<1)return null;var m="";"undefined"!=typeof window&&(m="By submitting, you represent that you have read and agree to our Terms and our Privacy Policy.",m=Object(b.a)("legal",a?a.write_a_review:{legal:""}).replace(/\{0\}/g,n?n.name:""));var h=n&&n.configuration&&n.configuration.services_must_agree_with_terms;return o.a.createElement("div",{className:"pr-war-mo-form pr-war-mo-form-filled"},o.a.createElement(_.a,{importance:1,shouldUseSpan:Object(w.b)("DISABLE_CD4_HEADING_STRUCTURES",n.configuration,p),className:"pr-war-mo-form-title"},Object(b.a)("media_only.add_caption_headline",a.write_a_review)),o.a.createElement("p",{className:"pr-war-mo-form-subtitle"},Object(b.a)("media_only.add_caption_subhead",a.write_a_review)),r.pwrMap(function(e,t){return o.a.createElement(I.a,{key:e.id,source:y(e),onRemove:i,onRotate:s,onCaptionChange:c,localizations:a,caption:e.caption,isUploaded:e.isUploaded,mediaIndex:t,hasError:e.hasError,isLoading:l})}),r.length<10&&o.a.createElement("div",{className:"pr-war-mo-input-group"},o.a.createElement("label",{className:"pr-war-mo-input-label"},Object(b.a)("media_only.add_more_photos_button_label",a.write_a_review)),o.a.createElement(C.a,{localizations:a,id:"pr-war-mo-input",isRequired:!0,label:"",handleFieldUpdate:function(e){return u(null,e)},mediaType:"All",count:10,values:[],parentComponent:"WARMO",config:p,merchantProperties:n.configuration})),o.a.createElement(x.a,{localizations:{submit_review_button_label:"Submit"},config:p,mustAcceptTerms:h,onClick:d,showLegal:!0,legalText:m,disabled:f},l?o.a.createElement(k.a,{isVisible:!0}):Object(b.a)("media_only.submit_button_label",a.write_a_review)))},t}(i.Component),T=r(66),R=r(14),N=r(121),A=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,p()(l()(t),"tracker",new R.b(Object(w.a)(t.props.config))),p()(l()(t),"sendBeacon",function(e){var r=t.props,n=r.config,a=r.type;t.tracker.sendBeacon(n.page_id,a,{eventFlow:e})}),p()(l()(t),"addMedia",function(e,r){e&&e.preventDefault();var n=r?r.values:Array.from(e.currentTarget.files);if(n.length+t.props.media.length>10)return setTimeout(function(){return alert(Object(b.a)("media_only.upload_limit_warning",t.props.form_localizations.write_a_review))});n=n.pwrMap(function(e){var t=e.id?e.file.file:e,r=t.type.indexOf("video")>-1?h.b:h.a,n={id:t.lastModified+"-"+(t.size||t.name)+"-"+Date.now(),file:t,type:r};return e.caption&&(n.caption=e.caption),n}),t.props.addMedia(t.props.config,n)}),p()(l()(t),"removeMedia",function(e){var r=t.props,n=r.config,a=r.media;t.props.removeMedia(n,e),Object(m.a)(a[e].meta.composite_data.raw)}),p()(l()(t),"updateCaption",function(e,r){t.props.updateMediaCaption(t.props.config,e,r.currentTarget.value,h.a)}),p()(l()(t),"rotateMedia",function(e){t.props.rotateMedia(t.props.config,e)}),p()(l()(t),"handleSubmit",function(){if(!t.props.isSubmitting){var e=window.ioGetBlackbox?window.ioGetBlackbox().blackbox:null;e||!t.props.iovationRequired?t.props.submitMediaOnly(t.props.config,t.props.media,t.props.feedlessProductInfo,t.props.contextInformation,e):t.props.setMessage(t.props.config,Object(b.a)("error.adblock_interference",t.props.form_localizations.write_a_review))}}),t}a()(t,e);var r=t.prototype;return r.componentDidMount=function(){this.props.getTemplate(this.props.config),this.sendBeacon(R.a.WARMO.start)},r.componentDidUpdate=function(e){var t,r;(this.props.message&&document.getElementById("pr-war-mo-focus-target")&&document.getElementById("pr-war-mo-focus-target").focus(),0===e.media.length&&this.props.media.length>0&&this.sendBeacon(R.a.WARMO.caption),e.merchant!==this.props.merchant)&&this.tracker.setMode(null===(t=this.props.merchant)||void 0===t?void 0:null===(r=t.configuration)||void 0===r?void 0:r.social_measurement_data);e.isComplete!==this.props.isComplete&&!0===this.props.isComplete&&this.sendBeacon(R.a.WARMO.complete)},r.render=function(){var e=this.props,t=e.productInformation,r=e.merchant,n=e.config,a=e.isLoading,i=e.form_localizations;return a&&!t?null:o.a.createElement("section",{className:"p-w-r pr-war-mo","data-testid":"media-only-form"},(null===t||void 0===t?void 0:t.name)?o.a.createElement("header",{className:"pr-war-mo-header"},o.a.createElement("div",{className:"pr-war-mo-header-inner"},o.a.createElement(N.a,{className:"pr-war-mo-header-inner-product-img",src:g.k(t),alt:Object(b.a)("cd.common.media.product_image",i),errorAlt:Object(b.a)("cd.common.media.product_unavailable",i)}),o.a.createElement(_.a,{importance:1,shouldUseSpan:Object(w.b)("DISABLE_CD4_HEADING_STRUCTURES",r.configuration,n),className:"pr-war-mo-header-inner-product-name"},t.name))):o.a.createElement("div",{className:"pr-war-mo-header-empty"}),!this.props.isComplete&&this.props.message&&o.a.createElement("div",{tabIndex:"-1",className:"pr-accessible-focus-element",id:"pr-war-mo-focus-target","aria-hidden":"true"},o.a.createElement(v.a,{isVisible:!0,message:this.props.message})),o.a.createElement(j,{addMedia:this.addMedia,isComplete:this.props.isComplete,media:this.props.media,localizations:this.props.form_localizations,merchant_information:r,config:n}),o.a.createElement(P,{isComplete:this.props.isComplete,media:this.props.media,merchant_information:r,localizations:this.props.form_localizations,removeMedia:this.removeMedia,rotateMedia:this.rotateMedia,updateCaption:this.updateCaption,isLoading:this.props.isLoading,addMedia:this.addMedia,config:this.props.config,onSubmit:this.handleSubmit,disabled:this.props.isSubmitting||this.props.media.filter(function(e){return!e.isUploaded}).length>0}),this.props.isComplete&&o.a.createElement(E,{config:this.props.config,merchant_information:r,type:this.props.type,media:this.props.media,isReviewSubmitted:this.props.isReviewSubmitted,localizations:this.props.form_localizations}))},t}(i.Component);p()(A,"defaultProps",{media:[],merchant:{}});var D={getTemplate:f.z,addMedia:f.x,removeMedia:f.B,updateMediaCaption:f.I,rotateMedia:f.C,submitMediaOnly:f.F,setMessage:f.D},L=Object(d.b)(function(e,t){var r=e.WriteAReview[g.s(t.config)];return r?{isSubmitting:r.isSubmitting,isLoading:r.isLoading,media:r.media,contextInformation:r.context_information,productInformation:r.product_information,feedlessProductInfo:r.feedlessProductInfo,isComplete:r.isComplete,isReviewSubmitted:r.isReviewSubmitted,form_localizations:r.form_localizations,merchant:r.merchant_information,message:r.message}:{}},D)(Object(T.a)(A)),M=r(12),F=function(e){function t(t){var r,n;return(n=e.call(this,t)||this)._useMediaOnly=(r=n)._useMediaOnly.pwrBind(r),n}a()(t,e);var r=t.prototype;return r._useMediaOnly=function(){var e=Object(w.a)(this.props.config),t=e.EMUID,r=e.MERCHANT_USER_ID;return"mo"===e.WAR_VARIANT&&(t||r&&g.w(r,!0))},r.render=function(){return this._useMediaOnly()?o.a.createElement(L,{config:this.props.config,type:M.i.WARMO}):o.a.createElement(s.a,{config:this.props.config,type:M.i.WAR})},t}(o.a.Component);t.default=F},function(e,t,r){e.exports=r(373)},function(e,t){e.exports={}},function(e,t,r){var n=r(223),a=r(185);e.exports=Object.keys||function(e){return n(e,a)}},function(e,t,r){var n,a=r(72),i=r(232),o=r(185),s=r(159),c=r(233),l=r(179),u=r(182)("IE_PROTO"),p=function(){},d=function(e){return"<script>"+e+"<\/script>"},f=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}f=n?function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t}(n):function(){var e,t=l("iframe");return t.style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F}();for(var e=o.length;e--;)delete f.prototype[o[e]];return f()};s[u]=!0,e.exports=Object.pwrCreate||function(e,t){var r;return null!==e?(p.prototype=a(e),r=new p,p.prototype=null,r[u]=e):r=f(),void 0===t?r:i(r,t)}},function(e,t,r){var n=r(188),a=r(138),i=r(39)("iterator");e.exports=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||a[n(e)]}},function(e,t,r){"use strict";var n=r(92),a=r(94),i=r(138),o=r(101),s=r(187),c=o.set,l=o.getterFor("Array Iterator");e.exports=s(Array,"Array",function(e,t){c(this,{type:"Array Iterator",target:n(e),index:0,kind:t})},function(){var e=l(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),i.Arguments=i.Array,a("keys"),a("values"),a("entries")},function(e,t,r){var n=r(72),a=r(237),i=r(58),o=r(103),s=r(162),c=r(236),l=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,r,u,p){var d,f,m,h,v,g,b,y=o(t,r,u?2:1);if(p)d=e;else{if("function"!=typeof(f=s(e)))throw TypeError("Target is not iterable");if(a(f)){for(m=0,h=i(e.length);h>m;m++)if((v=u?y(n(b=e[m])[0],b[1]):y(e[m]))&&v instanceof l)return v;return new l(!1)}d=f.call(e)}for(g=d.next;!(b=g.call(d)).done;)if("object"==typeof(v=c(d,y,b.value,u))&&v&&v instanceof l)return v;return new l(!1)}).stop=function(e){return new l(!0,e)}},function(e,t,r){"use strict";var n=r(7),a=r.n(n),i=r(2),o=r.n(i),s=r(0),c=r.n(s),l=(r(9),r(1)),u=r(64),p=function(e){function t(){return e.apply(this,arguments)||this}return a()(t,e),t.prototype.render=function(){var e=this.props,t=e.localizations,r=e.config,n=e.merchant,a=e.onSubmit,i=e.disabled,o="";"undefined"!=typeof window&&(o=Object(l.a)("legal",t.write_a_review||{legal:""}).replace(/\{0\}/g,r.merchant_name));var s=!!n.configuration&&n.configuration.services_must_agree_with_terms;return c.a.createElement(u.a,{localizations:t,config:r,mustAcceptTerms:s,showLogo:!0,logoText:Object(l.a)("powerred_by",t.powerreviews||{powerred_by:""}),onClick:a,showLegal:!0,legalText:o,usePRFooterClass:!0,disabled:i},Object(l.a)("submit_review_button_label",t.write_a_review||{submit_review_button_label:""}))},t}(s.Component);o()(p,"defaultProps",{disabled:!1}),t.a=p},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(3),o=r.n(i),s=r(7),c=r.n(s),l=r(2),u=r.n(l),p=r(0),d=r.n(p),f=r(84),m=r(20),h=r(18),v=r(13),g=r(10),b=r.n(g),y=r(1),_=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,u()(o()(t),"iconInputId",Object(v.f)()),u()(o()(t),"state",{rating:null}),u()(o()(t),"setValue",function(e,r){r&&t.update(t.props.fieldIndex,e),t.setState({rating:e})}),t}return c()(t,e),t.prototype.render=function(){var e=this.getID(),t="pr-star-selected",r="pr-star";return this.props.isSubrating&&(t+=" pr-subrating",r+=" pr-subrating"),d.a.createElement("fieldset",{className:b()("pr-form-group form-group "+e+"-form-group",{"pr-has-error":!this.props.isValid})},d.a.createElement("legend",{className:m.a.getLabelClass(this.props)},d.a.createElement(h.b,null,d.a.createElement("span",null,this.props.label,m.a.getRequiredIndicator(this.props)),this.props.isValid?null:d.a.createElement(h.a,null))),d.a.createElement("div",{id:e},d.a.createElement(f.a,{imageAlt:Object(y.a)("collect_display.collect.rating_label",this.props.localizations),iconInputId:this.iconInputId,starStyles:this.props.starStyles,isValid:this.props.isValid,isRequired:this.props.isRequired,label:this.props.label,preset:this.props.preset,setValue:this.setValue,toggledClassName:t,untoggledClassName:r,ref:this.props.forwardedRef})))},t}(m.a);t.a=d.a.forwardRef(function(e,t){return d.a.createElement(_,a()({},e,{forwardedRef:t}))})},function(e,t,r){"use strict";var n=r(3),a=r.n(n),i=r(7),o=r.n(i),s=r(2),c=r.n(s),l=r(0),u=r.n(l),p=(r(9),r(1)),d=r(20),f=r(18),m=r(96),h=r(76),v=function(e){function t(t){var r;return r=e.call(this,t)||this,c()(a()(r),"focus",function(){r.tagItem0&&r.tagItem0.focus()}),r.state={isAddingTag:!1,needsToFocus:!1,currentValue:""},r.handleAddItemButtonClick=r.handleAddItemButtonClick.pwrBind(a()(r)),r.handleAddItemInputChange=r.handleAddItemInputChange.pwrBind(a()(r)),r.handleAddItem=r.handleAddItem.pwrBind(a()(r)),r.handleCheckItem=r.handleCheckItem.pwrBind(a()(r)),r.handleFinalizeAdd=r.handleFinalizeAdd.pwrBind(a()(r)),r.handleAddKeyDown=r.handleAddKeyDown.pwrBind(a()(r)),r.keyDown=r.keyDown.pwrBind(a()(r)),r}o()(t,e);var r=t.prototype;return r.handleAddItemButtonClick=function(){var e=this;this.setState({isAddingTag:!0,needsToFocus:!0},function(){e.refs.input.focus()})},r.handleAddItemInputChange=function(e){e.target.value=e.target.value.replace(/[|]/g,""),this.checkCharacterLimit(e,function(){})},r.handleAddItem=function(e){var t=this;e.preventDefault();var r=this.refs.input.value,n={target:{}};if(n.target.value="",this.handleAddItemInputChange(n),""!==r.trim()){var a=this.props.choices.slice(0),i=this.props.values||[];a.push({value:r,isUserAdded:!0,checked:!0,id:Object(h.a)()}),i.push({value:r}),this.updateCollection(this.props.fieldIndex,i,a),this.setState({isAddingTag:!1},function(){t.refs.button.focus()})}else this.setState({isAddingTag:!1},function(){t.refs.button.focus()})},r.handleCheckItem=function(e){var t=this.props.choices[e],r=!t.checked,n=this.props.choices.slice(0),a=this.props.values||[];if(a=a.slice(0),n[e].checked=r,r){if(r){var i={value:t.value};t.id&&(i.id=t.id),a.push(i)}}else{for(var o=0;o<a.length;o++){a[o].value===t.value&&a.splice(o,1)}t.isUserAdded&&(n.splice(e,1),this.refs.button.focus())}this.updateCollection(this.props.fieldIndex,a,n)},r.keyDown=function(e,t){13===t.keyCode&&this.handleCheckItem(e)},r.handleAddKeyDown=function(e){13===e.keyCode&&this.handleAddItemButtonClick()},r.handleFinalizeAdd=function(e){13===e.keyCode&&this.handleAddItem(e)},r.render=function(){var e=this,t=this.getID(),r=(this.getLabel(),!1);this.props.choices.forEach(function(e){e.isUserAdded||(r=!0)});for(var n=r?this.getHelperText():"",a=this.props.isValid?"tag-group":"tag-group pr-has-error",i=this.getFieldError(10),o=[],s=function(r){var n=e.props.choices[r],a=n.checked?"pr-label-control checked":"pr-label-control",i=n.isUserAdded?"pr-cb-tag-container tag-custom":"pr-cb-tag-container tag-builtin";e.props.isValid||0!==r||(a+=" pr-invalid-field"),o.push(u.a.createElement("div",{className:i,key:r,ref:"CBitem"+r},u.a.createElement("div",{className:"checkbox"},u.a.createElement("input",{id:n.id,name:t,type:"checkbox",className:"sr-only",style:{position:"absolute"},defaultChecked:n.checked,onClick:e.handleCheckItem.pwrBind(e,r),onKeyDown:e.keyDown.pwrBind(e,r)}),u.a.createElement("label",{htmlFor:n.id,ref:function(t){return e["tagItem"+r]=t},className:a},u.a.createElement("span",{"aria-hidden":"true"},n.value),u.a.createElement("span",{className:"pr-accessible-text"},e.props.label+" "+n.value)))))},c=0;c<this.props.choices.length;c++)s(c);this.state.isAddingTag?o.push(u.a.createElement("div",{key:"add-tag-input"},u.a.createElement("div",{className:"input-group input-add-tag"},u.a.createElement("input",{"aria-label":this.props.label,className:"pr-form-control form-control input-add-tag-field",onChange:this.handleAddItemInputChange,onKeyDown:this.handleFinalizeAdd,placeholder:"",ref:"input",tabIndex:"0",type:"text"}),u.a.createElement("span",{className:"input-group-btn"},u.a.createElement("div",{className:"pr-btn pr-btn-default pr-btn-add-tag-submit",onClick:this.handleAddItem,onKeyDown:this.handleFinalizeAdd,tabIndex:"0",type:"button"},u.a.createElement("div",null,Object(p.a)("add_custom_choice.add_button_label",this.props.localizations.write_a_review))))))):this.props.allowCustomTags&&o.push(u.a.createElement("div",{className:"pr-btn-add-tag",key:"add-tag-button"},u.a.createElement("a",{role:"button","aria-label":Object(p.a)("add_custom_choice.add_choice_button_label",this.props.localizations.write_a_review)+" "+this.props.label,onClick:this.handleAddItemButtonClick,onKeyDown:this.handleAddKeyDown,onTouchEnd:this.handleAddItemButtonClick,ref:"button",tabIndex:"0"},Object(p.a)("add_custom_choice.add_choice_button_label",this.props.localizations.write_a_review))));var l=t+"-group";return u.a.createElement("div",{className:"pr-form-group form-group "+t+"-form-group"},u.a.createElement(m.a,{isValid:this.props.isValid,fieldError:i},function(r){var i=r.describedBy,s=r.fieldError;return u.a.createElement("fieldset",{className:a,id:t},u.a.createElement("legend",{className:d.a.getLabelClass(e.props)},u.a.createElement(f.b,null,u.a.createElement("span",null,e.props.label,d.a.getRequiredIndicator(e.props)),e.props.isValid?null:u.a.createElement(f.a,null)),e.props.isValid?n:s),u.a.createElement("div",{className:"tag-container",id:l,role:"group","aria-describedby":i},o))}))},t}(d.a);v.defaultProps={maxCharacters:48,isVisible:!0,showLabel:!0,isValid:!0,allowCustomTags:!0},t.a=v},function(e,t,r){"use strict";var n=r(3),a=r.n(n),i=r(7),o=r.n(i),s=r(2),c=r.n(s),l=r(0),u=r.n(l),p=(r(9),r(10)),d=r.n(p),f=r(20),m=r(1),h=r(4),v=r(18),g=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=e.call.apply(e,[this].concat(n))||this,c()(a()(t),"handleChange",function(){var e=t.refs.select.selectedIndex-1,r=[];r.push({id:t.props.tags[e].id,value:h.i(t.props.tags[e].value)}),t.updateCollection(t.props.fieldIndex,r,t.props.choices)}),t}return o()(t,e),t.prototype.render=function(){var e=this.getID(),t=this.getLabel(),r=[],n=Object(m.a)("dropdown.text",this.props.localizations.write_a_review);r.push(u.a.createElement("option",{key:"pr-option-selectone",value:"-1",disabled:!0},n));for(var a=0;a<this.props.tags.length;a++){var i=this.props.tags[a],o="pr-option-"+a;r.push(u.a.createElement("option",{key:o,value:a,dangerouslySetInnerHTML:{__html:i.value}}))}return u.a.createElement("div",{className:d()("pr-form-group form-group "+e+"-form-group",{"pr-has-error":!this.props.isValid})},u.a.createElement("div",{id:e},u.a.createElement(v.b,null,t,this.props.isValid?null:u.a.createElement(v.a,null)),u.a.createElement("select",{id:e+"-input","aria-invalid":!this.props.isValid||void 0,ref:"select",className:d()("pr-form-control form-control",{"pr-invalid-field":!this.props.isValid}),onChange:this.handleChange,defaultValue:"-1"},r)))},t}(f.a);t.a=g},function(e,t,r){"use strict";var n=r(3),a=r.n(n),i=r(7),o=r.n(i),s=r(2),c=r.n(s),l=r(0),u=r.n(l),p=(r(9),r(48)),d=r(1),f=r(202),m=r(203),h=r(13),v=r(10),g=r.n(v),b=r(18),y=(r(374),function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=e.call.apply(e,[this].concat(n))||this,c()(a()(t),"mediaInputId",Object(h.f)()),c()(a()(t),"mediaInputErrorMessageId",t.mediaInputId+"-caption"),t}return o()(t,e),t.prototype.render=function(){var e=this.props,t=e.isUploaded,r=e.caption,n=e.mediaIndex,a=e.source,i=e.error,o=e.localizations,s=e.isLoading,c=e.onCaptionChange,l=e.onRemove,h=e.onRotate,v="string"==typeof i&&i.length;return u.a.createElement("div",{className:"pr-media-input-display"},u.a.createElement("div",{className:"pr-media-input-display-thumbnail"},t&&u.a.createElement("div",{className:"pr-media-input-display-thumbnail-wrapper"},u.a.createElement("img",{alt:r||Object(d.a)("collect_display.collect.media.uploaded_media_item")+" "+n,src:a})),!t&&u.a.createElement(p.a,{isVisible:!0})),u.a.createElement("div",{className:g()("pr-media-input-display-captionGroup",{"pr-has-error":v})},u.a.createElement("label",{htmlFor:this.mediaInputId},Object(d.a)("media_only.caption_input_label",o.write_a_review)),u.a.createElement(b.b,null,u.a.createElement("input",{id:this.mediaInputId,disabled:s,defaultValue:r||"",className:"pr-form-control form-control pr-textinput",onChange:function(e){return c(n,e)},type:"text","aria-describedby":v?this.mediaInputErrorMessageId:void 0}),v?u.a.createElement(b.a,null):null),u.a.createElement("div",{id:this.mediaInputErrorMessageId,className:g()({"pr-field-alert pr-text-danger":v})},i),t&&u.a.createElement("div",{className:"pr-media-input-display-captionGroup-buttons"},u.a.createElement("button",{type:"button",className:"pr-media-input-display-captionGroup-button","aria-label":Object(d.a)("media_only.remove_media_button_aria_label",o.write_a_review),onClick:function(){return l(n)}},u.a.createElement(m.a,{"aria-hidden":"true",focusable:"false"})),h&&u.a.createElement("button",{type:"button",className:"pr-media-input-display-captionGroup-button",onClick:function(){return h(n)},"aria-label":Object(d.a)("media_only.rotate_media_button_aria_label",o.write_a_review)},u.a.createElement(f.a,{"aria-hidden":"true",focusable:"false"})))))},t}(u.a.Component));t.a=y},function(e,t,r){"use strict";var n=r(3),a=r.n(n),i=r(7),o=r.n(i),s=r(2),c=r.n(s),l=r(0),u=r.n(l),p=r(20),d=r(10),f=r.n(d),m=r(18),h=r(96);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach(function(t){c()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var b=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=e.call.apply(e,[this].concat(n))||this,c()(a()(t),"setValue",function(e){e.preventDefault(),t.state.currentValue!==e.currentTarget.value&&t.checkCharacterLimit(e,function(){t.update(t.props.fieldIndex,t.state.currentValue)})}),t}return o()(t,e),t.prototype.render=function(){var e=this,t=this.getID(),r=this.getLabel(),n=this.getFieldError(25),a=this.getHelperText(),i=this.getMinCharacterMessage(),o=this.props.isValid,s=f()("pr-form-group form-group "+t+"-form-group",{"pr-has-error":!o,"no-label":!this.props.showLabel});return u.a.createElement(h.a,{valid:o,helperText:a,fieldError:n},function(n){var a=n.helperText,c=n.fieldError,l=n.describedBy;return u.a.createElement("div",{className:s},r,o?a:c,u.a.createElement(m.b,null,u.a.createElement("textarea",{key:!!e.props.reactKey&&e.props.reactKey,id:t+"-input",className:f()("pr-form-control form-control pr-textarea",{"pr-invalid-field":!e.props.isValid}),rows:e.props.rows,defaultValue:e.props.preset,onChange:e.setValue,placeholder:e.props.placeholder,required:!!e.props.isRequired||void 0,"aria-invalid":!o||void 0,"aria-describedby":l}),o?null:u.a.createElement(m.a,null)),i)})},t}(p.a);b.defaultProps=g(g({},p.a.defaultProps),{},{maxCharacters:2e3,rows:5}),t.a=b},function(e,t,r){"use strict";var n=r(3),a=r.n(n),i=r(7),o=r.n(i),s=r(0),c=r.n(s),l=r(11),u=function(e){function t(t){var r;return(r=e.call(this,t)||this).calculateSubheader=r.calculateSubheader.pwrBind(a()(r)),r}o()(t,e);var r=t.prototype;return r.calculateSubheader=function(){var e;return this.props.nickname&&(e=this.props.localizations["qa_display.author.answered_by"].replace("{0}",this.props.nickname),this.props.location&&(e+=" "+this.props.localizations["nickname_and_location.from_label"]+" "+this.props.location)),c.a.createElement("div",{className:"pr-question-subheader"},c.a.createElement("span",null,e))},r.render=function(){var e=this.calculateSubheader();return c.a.createElement("div",{className:"pr-qa-display-item"},c.a.createElement("div",{className:"pr-qa-answer-bubble"}),c.a.createElement("div",{className:"pr-qa-display-text-content"},c.a.createElement(l.a,{importance:2,className:"pr-question-text"},this.props.answerText),e))},t}(c.a.Component),p=function(e){function t(t){var r;return(r=e.call(this,t)||this).calculateSubheader=r.calculateSubheader.pwrBind(a()(r)),r}o()(t,e);var r=t.prototype;return r.calculateSubheader=function(){if(this.props.nickname){var e=this.props.localizations["qa_display.author.asked_by"].replace("{0}",this.props.nickname);if("number"==typeof this.props.daysAgo)if(this.props.daysAgo>1&&this.props.daysAgo<30)e+=" "+this.props.localizations["qa_display.relative_time.days_ago"].replace("{0}",this.props.daysAgo);else if(this.props.daysAgo>=30&&this.props.daysAgo<335){var t=this.props.daysAgo/30;e+=" "+this.props.localizations["qa_display.relative_time.months_ago"].replace("{0}",Math.round(t))}else if(this.props.daysAgo>=335){var r=this.props.daysAgo/365;e+=" "+this.props.localizations["qa_display.relative_time.years_ago"].replace("{0}",Math.round(r))}return c.a.createElement("div",{className:"pr-question-subheader"},c.a.createElement("span",null,e))}},r.render=function(){var e,t,r=this.calculateSubheader();return this.props.answer&&(t=c.a.createElement("div",{className:"pr-qa-connecting-line"}),e=c.a.createElement(u,{localizations:this.props.localizations,answerText:this.props.answer.answer_text,nickname:this.props.answer.author_name,daysAgo:this.props.daysAgo,location:this.props.answer.author_location})),c.a.createElement("div",{className:"pr-header"},c.a.createElement("div",{className:"pr-qa-display-item"},c.a.createElement("div",{className:"pr-qa-question-bubble"},c.a.createElement("div",null,this.props.localizations["qa_display.question_first_letter"])),c.a.createElement("div",{className:"pr-qa-display-text-content"},c.a.createElement(l.a,{importance:2,className:"pr-question-text"},this.props.questionText),r),t),c.a.createElement(l.b,null,e))},t}(c.a.Component);t.a=p},function(e){e.exports={"counter.text":"",agree_with_terms:"I agree with the terms and privacy policy",clear_selection:"Clear Selection","dropdown.text":"Select One","image.upload_button_label":"Upload","upload.caption":"Add a caption","image_first.incentive_text":"","add_custom_choice.add_choice_button_label":"Add your own","video.placeholder":"Enter a YouTube url","qa_display.required_indicator":"Required field","min_characters.requirement_met":"You hit the minimum review length!","min_characters.characters_remaining_plural":"{0} more characters needed","min_characters.characters_remaining_singular":"{0} more character needed","review_editing.notification_title":"Update your Review","review_editing.notification_description":"Please update your review below based on your recent experience. Your original review will still be available along with this updated review.","review_display.4.0.image_display.gallery_image.alt_text":"View Gallery Image {0}","write_a_review.required_label":"required",required_label:"required","media_only.rotate_media_button_aria_label":"Rotate thumbnail image","media_only.caption_input_label":"Caption","collect_display.media.product_image":"Product Image","collect_display.media.play_video":"Play Video","collect_display.media.merchant_logo":"Merchant Logo","collect_display.collect.media.customer_media":"Customer Media","collect_display.collect.media.media_caption":"Media Caption","collect_display.collect.media.uploaded_media_item":"Uploaded Media item","collect_display.collect.rating_label":"Give","review_display.4.0.snapshot.msqs.apply_filter":"{0} Reviews tagged with {1}. Show only reviews tagged with {1}","review_display.4.0.snapshot.msqs.remove_filter":"{0} Reviews tagged with {1}. Filtering by reviews tagged with {1}, Clear applied filter","review_display.4.0.common.remove_star_filter":"Filtering by {0} star reviews, remove filter","write_a_review.share_to_retailer.fallback.share_button":"Paste in {0}'s form","write_a_review.share_to_retailer.fallback.copy_button":"Copy","write_a_review.share_to_retailer.fallback.italic_text":"and then","write_a_review.share_to_retailer.header":"Share your review on {0}","write_a_review.share_to_retailer.normal.button":"Copy Review to clipboard and go to {0}'s form","write_a_review.share_to_retailer.subheader":"Your opinion is valuable to other shoppers.","write_a_review.share_to_retailer.tooltip.mac":"Press cmnd-c to copy","write_a_review.share_to_retailer.tooltip.mobile":"Copy the highlighted text","write_a_review.share_to_retailer.tooltip.success":"Copied!","write_a_review.share_to_retailer.tooltip.win":"Press ctrl-c to copy","write_a_review.share_to_retailer.normal.click_to_redirect":"If you are not redirected please click here","write_a_review.share_to_retailer.normal.redirect_message":"Taking you to {0} now","review_display.4.0.filtering.dropdown.apply_filter":"Filter reviews by {}","review_display.4.0.filtering.dropdown.active_filters_label_singular":"1 filter selected","review_display.4.0.search.results_heading":"{0} results","collect_display.media.product_unavailable":"Product Image Unavailable","review_display.4.0.snapshot.brand_score.description_brand_level":"There are no reviews on this product, but here is how {0} is rated overall."}},function(e,t,r){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,a,i;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(a=n;0!=a--;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(a=n;0!=a--;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=n;0!=a--;){var o=i[a];if(!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r}},function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r(0),a=r.n(n),i=/(?:(?:https?):\/\/|www\.|ftp\.)(?:\([-A-Z0-9+&@#/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#/%=~_|$?!:,.]*\)|[A-Z0-9+&@#/%=~_|$])/gi,o=function(e,t){if(!t)return[e];for(var r=0,n=i.exec(e),o=n?[e.slice(r,n.index)]:[e];n;){var s=n[0];0!==s.indexOf("http")&&0!==s.indexOf("//")&&(s="//"+s),r=n.index+n[0].length,o.push(a.a.createElement("a",{key:r,href:s,target:"_blank",rel:"noopener noreferrer"},n[0])),n=i.exec(e),o.push(n?e.slice(r,n.index):e.slice(r))}return o}},function(e,t,r){var n=r(71),a=r(176),i=r(134),o=r(92),s=r(178),c=r(57),l=r(220),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=o(e),t=s(t,!0),l)try{return u(e,t)}catch(e){}if(c(e,t))return i(!a.f.call(e,t),e[t])}},function(e,t,r){"use strict";var n={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,i=a&&!n.call({1:2},1);t.f=i?function(e){var t=a(this,e);return!!t&&t.enumerable}:n},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(56);e.exports=function(e,t){if(!n(e))return e;var r,a;if(t&&"function"==typeof(r=e.toString)&&!n(a=r.call(e)))return a;if("function"==typeof(r=e.valueOf)&&!n(a=r.call(e)))return a;if(!t&&"function"==typeof(r=e.toString)&&!n(a=r.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(45),a=r(56),i=n.document,o=a(i)&&a(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,r){var n=r(45),a=r(100);e.exports=function(e,t){try{a(n,e,t)}catch(r){n[e]=t}return t}},function(e,t,r){var n=r(221),a=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return a.call(e)}),e.exports=n.inspectSource},function(e,t,r){var n=r(222),a=r(183),i=n("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},function(e,t,r){var n=r(92),a=r(58),i=r(136),o=function(e){return function(t,r,o){var s,c=n(t),l=a(c.length),u=i(o,l);if(e&&r!=r){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,r){var n=r(46),a=/#|\.prototype\./,i=function(e,t){var r=s[o(e)];return r==l||r!=c&&("function"==typeof t?n(t):!!t)},o=i.normalize=function(e){return String(e).replace(a,".").toLowerCase()},s=i.data={},c=i.NATIVE="N",l=i.POLYFILL="P";e.exports=i},function(e,t,r){"use strict";var n=r(19),a=r(228),i=r(230),o=r(234),s=r(116),c=r(100),l=r(86),u=r(39),p=r(114),d=r(138),f=r(229),m=f.IteratorPrototype,h=f.BUGGY_SAFARI_ITERATORS,v=u("iterator"),g=function(){return this};e.exports=function(e,t,r,u,f,b,y){a(r,t,u);var _,w,E,O=function(e){if(e===f&&k)return k;if(!h&&e in j)return j[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},S=t+" Iterator",C=!1,j=e.prototype,x=j[v]||j["@@iterator"]||f&&j[f],k=!h&&x||O(f),I="Array"==t&&j.entries||x;if(I&&(_=i(I.call(new e)),m!==Object.prototype&&_.next&&(p||i(_)===m||(o?o(_,m):"function"!=typeof _[v]&&c(_,v,g)),s(_,S,!0,!0),p&&(d[S]=g))),"values"==f&&x&&"values"!==x.name&&(C=!0,k=function(){return x.call(this)}),p&&!y||j[v]===k||c(j,v,k),d[t]=k,f)if(w={values:O("values"),keys:b?k:O("keys"),entries:O("entries")},y)for(E in w)!h&&!C&&E in j||l(j,E,w[E]);else n({target:t,proto:!0,forced:h||C},w);return w}},function(e,t,r){var n=r(189),a=r(113),i=r(39)("toStringTag"),o="Arguments"==a(function(){return arguments}());e.exports=n?a:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:o?a(t):"Object"==(n=a(t))&&"function"==typeof t.callee?"Arguments":n}},function(e,t,r){var n={};n[r(39)("toStringTag")]="z",e.exports="[object z]"===String(n)},function(e,t,r){var n=r(39)("iterator"),a=!1;try{var i=0,o={next:function(){return{done:!!i++}},return:function(){a=!0}};o[n]=function(){return this},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},function(e,t,r){var n,a,i=r(45),o=r(238),s=i.process,c=s&&s.versions,l=c&&c.v8;l?a=(n=l.split("."))[0]+n[1]:o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(a=n[1]),e.exports=a&&+a},function(e,t,r){"use strict";var n=r(102),a=r(80),i=r(39),o=r(71),s=i("species");e.exports=function(e){var t=n(e),r=a.f;o&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,r){var n=r(86);e.exports=function(e,t,r){for(var a in t)n(e,a,t[a],r);return e}},function(e,t,r){var n=r(189),a=r(86),i=r(334);n||a(Object.prototype,"toString",i,{unsafe:!0})},function(e,t,r){var n=r(45),a=r(335),i=r(163),o=r(100),s=r(39),c=s("iterator"),l=s("toStringTag"),u=i.values;for(var p in a){var d=n[p],f=d&&d.prototype;if(f){if(f[c]!==u)try{o(f,c,u)}catch(e){f[c]=u}if(f[l]||o(f,l,p),a[p])for(var m in i)if(f[m]!==i[m])try{o(f,m,i[m])}catch(e){f[m]=i[m]}}}},function(e,t,r){"use strict";var n=r(93);e.exports.f=function(e){return new function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad pwrPromise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)}(e)}},function(e,t,r){"use strict";r(163);var n=r(19),a=r(102),i=r(251),o=r(86),s=r(193),c=r(116),l=r(228),u=r(101),p=r(142),d=r(57),f=r(103),m=r(188),h=r(72),v=r(56),g=r(161),b=r(134),y=r(351),_=r(162),w=r(39),E=a("fetch"),O=a("Headers"),S=w("iterator"),C=u.set,j=u.getterFor("URLSearchParams"),x=u.getterFor("URLSearchParamsIterator"),k=/\+/g,I=Array(4),P=function(e){return I[e-1]||(I[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},T=function(e){try{return decodeURIComponent(e)}catch(t){return e}},R=function(e){var t=e.replace(k," "),r=4;try{return decodeURIComponent(t)}catch(e){for(;r;)t=t.replace(P(r--),T);return t}},N=/[!'()~]|%20/g,A={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},D=function(e){return A[e]},L=function(e){return encodeURIComponent(e).replace(N,D)},M=function(e,t){if(t)for(var r,n,a=t.split("&"),i=0;i<a.length;)(r=a[i++]).length&&(n=r.split("="),e.push({key:R(n.shift()),value:R(n.join("="))}))},F=function(e){this.entries.length=0,M(this.entries,e)},z=function(e,t){if(e<t)throw TypeError("Not enough arguments")},V=l(function(e,t){C(this,{type:"URLSearchParamsIterator",iterator:y(j(e).entries),kind:t})},"Iterator",function(){var e=x(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),U=function(){p(this,U,"URLSearchParams");var e,t,r,n,a,i,o,s,c,l=arguments.length>0?arguments[0]:void 0,u=[];if(C(this,{type:"URLSearchParams",entries:u,updateURL:function(){},updateSearchParams:F}),void 0!==l)if(v(l))if("function"==typeof(e=_(l)))for(r=(t=e.call(l)).next;!(n=r.call(t)).done;){if((o=(i=(a=y(h(n.value))).next).call(a)).done||(s=i.call(a)).done||!i.call(a).done)throw TypeError("Expected sequence with length 2");u.push({key:o.value+"",value:s.value+""})}else for(c in l)d(l,c)&&u.push({key:c,value:l[c]+""});else M(u,"string"==typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")},q=U.prototype;s(q,{append:function(e,t){z(arguments.length,2);var r=j(this);r.entries.push({key:e+"",value:t+""}),r.updateURL()},delete:function(e){z(arguments.length,1);for(var t=j(this),r=t.entries,n=e+"",a=0;a<r.length;)r[a].key===n?r.splice(a,1):a++;t.updateURL()},get:function(e){z(arguments.length,1);for(var t=j(this).entries,r=e+"",n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){z(arguments.length,1);for(var t=j(this).entries,r=e+"",n=[],a=0;a<t.length;a++)t[a].key===r&&n.push(t[a].value);return n},has:function(e){z(arguments.length,1);for(var t=j(this).entries,r=e+"",n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){z(arguments.length,1);for(var r,n=j(this),a=n.entries,i=!1,o=e+"",s=t+"",c=0;c<a.length;c++)(r=a[c]).key===o&&(i?a.splice(c--,1):(i=!0,r.value=s));i||a.push({key:o,value:s}),n.updateURL()},sort:function(){var e,t,r,n=j(this),a=n.entries,i=a.slice();for(a.length=0,r=0;r<i.length;r++){for(e=i[r],t=0;t<r;t++)if(a[t].key>e.key){a.splice(t,0,e);break}t===r&&a.push(e)}n.updateURL()},forEach:function(e){for(var t,r=j(this).entries,n=f(e,arguments.length>1?arguments[1]:void 0,3),a=0;a<r.length;)n((t=r[a++]).value,t.key,this)},keys:function(){return new V(this,"keys")},values:function(){return new V(this,"values")},entries:function(){return new V(this,"entries")}},{enumerable:!0}),o(q,S,q.entries),o(q,"toString",function(){for(var e,t=j(this).entries,r=[],n=0;n<t.length;)e=t[n++],r.push(L(e.key)+"="+L(e.value));return r.join("&")},{enumerable:!0}),c(U,"URLSearchParams"),n({global:!0,forced:!i},{URLSearchParams:U}),i||"function"!=typeof E||"function"!=typeof O||n({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,r,n,a=[e];return arguments.length>1&&(t=arguments[1],v(t)&&(r=t.body,"URLSearchParams"===m(r)&&((n=t.headers?new O(t.headers):new O).has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=g(t,{body:b(0,String(r)),headers:b(0,n)}))),a.push(t)),E.apply(this,a)}}),e.exports={URLSearchParams:U,getState:j}},function(e,t,r){e.exports=r(377)()},function(e,t,r){"use strict";var n=r(0),a=r.n(n),i=r(2),o=r.n(i),s=(r(9),r(381),r(22)),c=r(10),l=r.n(c);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var d=function(e){var t=e.size,r=e.msqData,n=r.display_values.pwrMap(function(e,t){var n=r.values.filter(function(t){return t.label===e})[0];return n?p(p({},n),{},{position:t}):{label:e,count:0,position:t}}),i=[0,0,0,0,0].slice(0,t).pwrMap(function(e,t){var r=l()("pr-size-fit_slider_node",{"pr-size-fit_slider_node--active":Math.round(Object(s.b)(n))===t});return a.a.createElement("div",{key:t,className:r})});return a.a.createElement("div",{className:"pr-size-fit_slider",role:"img","aria-label":Object(s.a)(n)},a.a.createElement("div",{className:"pr-size-fit_slider_node-group"},i),a.a.createElement("div",{className:"pr-size-fit_slider_line"}))};r(382);function f(e){var t,r=e.labelPosition,n=e.msqData,i=e.msqData.display_values;return t="sides"===r?v:"top"===r?m:h,a.a.createElement(t,{labels:[i[0],i[i.length-1]]},a.a.createElement(d,{msqData:n}))}function m(e){var t=e.labels,r=e.children;return a.a.createElement("div",{className:"pr-size-fit pr-size-fit--labels-top"},a.a.createElement("div",{className:"pr-size-fit_labels","aria-hidden":"true"},a.a.createElement("div",{className:"pr-size-fit_label"},t[0]),a.a.createElement("div",{className:"pr-size-fit_label"},t[1])),r)}function h(e){var t=e.labels,r=e.children;return a.a.createElement("div",{className:"pr-size-fit pr-size-fit--labels-bottom"},r,a.a.createElement("div",{className:"pr-size-fit_labels","aria-hidden":"true"},a.a.createElement("div",{className:"pr-size-fit_label"},t[0]),a.a.createElement("div",{className:"pr-size-fit_label"},t[1])))}function v(e){var t=e.labels,r=e.children;return a.a.createElement("div",{className:"pr-size-fit pr-size-fit--labels-sides"},a.a.createElement("div",{className:"pr-size-fit_label","aria-hidden":"true"},t[0]),a.a.createElement("div",{className:"pr-size-fit_slider-container"},r),a.a.createElement("div",{className:"pr-size-fit_label","aria-hidden":"true"},t[1]))}function g(e,t){return{display_values:e.display_values,values:e.values.pwrMap(function(e){return{label:e.label,count:e.label===t?1:0}})}}r.d(t,"a",function(){return f}),r.d(t,"b",function(){return g})},function(e,t,r){"use strict";r.d(t,"a",function(){return l});var n=r(8),a=r.n(n),i=r(16),o=r.n(i),s=r(0),c=r.n(s),l=(r(9),c.a.forwardRef(function(e,t){var r=e.importance,n=e.shouldUseSpan,i=e.className,s=o()(e,["importance","shouldUseSpan","className"]),l=r?" pr-h"+r:"";if(n)return c.a.createElement("span",a()({className:""+(i||"")+l},s,{ref:t}));var u="h"+r;return c.a.createElement(u,a()({className:i},s,{ref:t}))}));t.b=l},function(e,t){function r(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):pwrPromise.resolve(c).then(n,a)}e.exports=function(e){return function(){var t=this,n=arguments;return new pwrPromise(function(a,i){var o=e.apply(t,n);function s(e){r(o,a,i,s,c,"next",e)}function c(e){r(o,a,i,s,c,"throw",e)}s(void 0)})}}},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(0),o=r.n(i);t.a=function(e){return o.a.createElement("svg",a()({viewBox:"0 0 34 30"},e),o.a.createElement("g",{fill:"none"},o.a.createElement("rect",{width:"34",height:"30",rx:"2"}),o.a.createElement("path",{d:"M16.53 8C12.93 8 10 10.928 10 14.528c0 3.6 2.93 6.53 6.53 6.53 1.677 0 3.27-.636 4.486-1.787.26-.244.5-.511.715-.793l-1.037-.787c-.17.224-.362.437-.572.634a5.2 5.2 0 0 1-3.592 1.431 5.234 5.234 0 0 1-5.229-5.228A5.233 5.233 0 0 1 16.53 9.3c2.662 0 4.862 2 5.183 4.577h-1.33l2.016 2.6 2.017-2.6h-1.39A6.537 6.537 0 0 0 16.53 8"})))}},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(0),o=r.n(i);t.a=function(e){return o.a.createElement("svg",a()({viewBox:"0 0 34 30"},e),o.a.createElement("g",{fill:"none"},o.a.createElement("rect",{width:"34",height:"30",rx:"2"}),o.a.createElement("g",null,o.a.createElement("path",{d:"M22.88 9.722l-.601-.602a.38.38 0 0 0-.553 0L17 13.847 12.275 9.12a.38.38 0 0 0-.554 0l-.6.602a.38.38 0 0 0 0 .553l5.602 5.605a.38.38 0 0 0 .554 0l5.603-5.605a.38.38 0 0 0 0-.553z"}),o.a.createElement("path",{d:"M11.12 20.278l.601.602a.38.38 0 0 0 .553 0L17 16.153l4.725 4.727a.38.38 0 0 0 .554 0l.6-.602a.38.38 0 0 0 0-.553l-5.602-5.605a.38.38 0 0 0-.554 0l-5.603 5.605a.38.38 0 0 0 0 .553z"}))))}},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(0),o=r.n(i);t.a=function(e){return o.a.createElement("svg",a()({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 432 432",focusable:"false"},e),o.a.createElement("circle",{fill:"#EAEAE8",cx:"215",cy:"216",r:"216"}),o.a.createElement("defs",null,o.a.createElement("path",{id:"pr-fba",d:"M215.2 109.9c-26.9 0-30.3.1-40.9.6-10.5.5-17.7 2.2-24 4.6-6.5 2.6-12.1 5.9-17.6 11.5-5.5 5.6-8.9 11-11.5 17.6-2.5 6.3-4.1 13.5-4.6 24.1-.5 10.5-.6 13.9-.6 40.8s.1 30.3.6 40.9c.5 10.5 2.2 17.7 4.6 24.1 2.6 6.5 5.9 12.1 11.5 17.6 5.5 5.5 11.1 8.9 17.6 11.5 6.3 2.5 13.5 4.1 24.1 4.6 10.6.5 13.9.6 40.9.6 26.9 0 30.3-.1 40.9-.6 10.5-.5 17.7-2.2 24.1-4.6 6.5-2.6 12.1-5.9 17.6-11.5 5.5-5.5 8.9-11.1 11.5-17.6 2.5-6.3 4.1-13.5 4.6-24.1.5-10.6.6-13.9.6-40.9 0-26.9-.1-30.3-.6-40.9-.5-10.5-2.2-17.7-4.6-24.1-2.6-6.5-5.9-12.1-11.5-17.6-5.6-5.5-11.1-8.8-17.7-11.4-6.3-2.5-13.5-4.1-24.1-4.6-10.6-.5-13.9-.6-40.9-.6"})),o.a.createElement("clipPath",{id:"pr-fbb"},o.a.createElement("use",{xlinkHref:"#pr-fba",overflow:"visible"})),o.a.createElement("path",{clipPath:"url(#pr-fbb)",fill:"#FFF",d:"M80.1 73.9h270.3v270.3H80.1z"}),o.a.createElement("g",null,o.a.createElement("defs",null,o.a.createElement("path",{id:"pr-fbc",d:"M215 120.4c28.9 0 32.3.1 43.7.6 10.6.5 16.3 2.3 20.1 3.7 5.1 1.9 8.6 4.3 12.4 8.1 3.8 3.8 6.2 7.3 8.1 12.4 1.5 3.8 3.2 9.5 3.7 20.1.5 11.4.6 14.8.6 43.7 0 28.9-.1 32.3-.6 43.7-.5 10.6-2.3 16.3-3.7 20.1-1.9 5.1-4.3 8.6-8.1 12.4-3.8 3.8-7.3 6.2-12.4 8.1-3.8 1.5-9.5 3.2-20.1 3.7-11.4.5-14.8.6-43.7.6s-32.3-.1-43.7-.6c-10.6-.5-16.3-2.3-20.1-3.7-5.1-1.9-8.6-4.3-12.4-8.1-3.8-3.8-6.2-7.3-8.1-12.4-1.5-3.8-3.2-9.5-3.7-20.1-.5-11.4-.6-14.8-.6-43.7 0-28.9.1-32.3.6-43.7.5-10.6 2.3-16.3 3.7-20.1 1.9-5.1 4.3-8.6 8.1-12.4 3.8-3.8 7.3-6.2 12.4-8.1 3.8-1.5 9.5-3.2 20.1-3.7 11.4-.5 14.8-.6 43.7-.6m0-19.5c-29.4 0-33 .1-44.6.7-11.5.5-19.3 2.4-26.2 5-7.1 2.8-13.2 6.4-19.2 12.5s-9.7 12-12.5 19.2c-2.7 6.8-4.5 14.7-5 26.3-.6 11.5-.7 15.1-.7 44.5s.1 33 .7 44.6c.5 11.5 2.4 19.3 5 26.3 2.8 7.1 6.4 13.2 12.5 19.2 6 6 12.1 9.7 19.2 12.5 6.8 2.7 14.7 4.5 26.3 5 11.6.5 15.2.7 44.6.7 29.4 0 33-.1 44.6-.7 11.5-.5 19.3-2.4 26.3-5 7.1-2.8 13.2-6.4 19.2-12.5 6-6 9.7-12.1 12.5-19.2 2.7-6.8 4.5-14.7 5-26.3.5-11.6.7-15.2.7-44.6 0-29.4-.1-33-.7-44.6-.5-11.5-2.4-19.3-5-26.3-2.8-7.1-6.4-13.2-12.5-19.2s-12.2-9.6-19.3-12.4c-6.8-2.7-14.7-4.5-26.3-5-11.6-.6-15.3-.7-44.6-.7"})),o.a.createElement("clipPath",{id:"pr-fbd"},o.a.createElement("use",{xlinkHref:"#pr-fbc",overflow:"visible"})),o.a.createElement("path",{clipPath:"url(#pr-fbd)",fill:"#767677",d:"M70.9 64.9h288.3v288.3H70.9z"})),o.a.createElement("g",null,o.a.createElement("defs",null,o.a.createElement("path",{id:"pr-fbe",d:"M225.8 186v-11.3c0-5.4 3.7-6.7 6.3-6.7h15.8v-24.2H226c-24.2 0-29.7 18-29.7 29.6V186h-14.1v28.2h14.2v70.6h28.3v-70.6h20.9l.9-11.1 1.7-17.1h-22.4z"})),o.a.createElement("clipPath",{id:"pr-fbf"},o.a.createElement("use",{xlinkHref:"#pr-fbe",overflow:"visible"})),o.a.createElement("path",{clipPath:"url(#pr-fbf)",fill:"#767677",d:"M146.3 107.7h138v213.1h-138z"})))}},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(0),o=r.n(i);t.a=function(e){return o.a.createElement("svg",a()({version:"1.1",viewBox:"0 0 432 432",xmlSpace:"preserve",focusable:"false"},e),o.a.createElement("circle",{fill:"#EAEAE8",cx:"216",cy:"216",r:"216"}),o.a.createElement("path",{fill:"#FFFFFF",d:"M214.1,115c-26.9,0-30.3,0.1-40.9,0.6c-10.5,0.5-17.7,2.2-24,4.6c-6.5,2.6-12.1,5.9-17.6,11.5  c-5.5,5.6-8.9,11-11.5,17.6c-2.5,6.3-4.1,13.5-4.6,24.1c-0.5,10.5-0.6,13.9-0.6,40.8s0.1,30.3,0.6,40.9c0.5,10.5,2.2,17.7,4.6,24.1  c2.6,6.5,5.9,12.1,11.5,17.6c5.5,5.5,11.1,8.9,17.6,11.5c6.3,2.5,13.5,4.1,24.1,4.6s13.9,0.6,40.9,0.6s30.3-0.1,40.9-0.6  c10.5-0.5,17.7-2.2,24.1-4.6c6.5-2.6,12.1-5.9,17.6-11.5c5.5-5.5,8.9-11.1,11.5-17.6c2.5-6.3,4.1-13.5,4.6-24.1s0.6-13.9,0.6-40.9  s-0.1-30.3-0.6-40.9c-0.5-10.5-2.2-17.7-4.6-24.1c-2.6-6.5-5.9-12.1-11.5-17.6s-11.1-8.8-17.7-11.4c-6.3-2.5-13.5-4.1-24.1-4.6  C244.4,115,241,115,214.1,115z"}),o.a.createElement("path",{fill:"#767677",d:"M214.1,125.5c28.9,0,32.3,0.1,43.7,0.6c10.6,0.5,16.3,2.3,20.1,3.7c5.1,1.9,8.6,4.3,12.4,8.1  s6.2,7.3,8.1,12.4c1.5,3.8,3.2,9.5,3.7,20.1c0.5,11.4,0.6,14.8,0.6,43.7s-0.1,32.3-0.6,43.7c-0.5,10.6-2.3,16.3-3.7,20.1  c-1.9,5.1-4.3,8.6-8.1,12.4s-7.3,6.2-12.4,8.1c-3.8,1.5-9.5,3.2-20.1,3.7c-11.4,0.5-14.8,0.6-43.7,0.6s-32.3-0.1-43.7-0.6  c-10.6-0.5-16.3-2.3-20.1-3.7c-5.1-1.9-8.6-4.3-12.4-8.1c-3.8-3.8-6.2-7.3-8.1-12.4c-1.5-3.8-3.2-9.5-3.7-20.1  c-0.5-11.4-0.6-14.8-0.6-43.7s0.1-32.3,0.6-43.7c0.5-10.6,2.3-16.3,3.7-20.1c1.9-5.1,4.3-8.6,8.1-12.4c3.8-3.8,7.3-6.2,12.4-8.1  c3.8-1.5,9.5-3.2,20.1-3.7C181.8,125.5,185.2,125.5,214.1,125.5 M214.1,106c-29.4,0-33,0.1-44.6,0.7c-11.5,0.5-19.3,2.4-26.2,5  c-7.1,2.8-13.2,6.4-19.2,12.5c-6,6.1-9.7,12-12.5,19.2c-2.7,6.8-4.5,14.7-5,26.3c-0.6,11.5-0.7,15.1-0.7,44.5s0.1,33,0.7,44.6  c0.5,11.5,2.4,19.3,5,26.3c2.8,7.1,6.4,13.2,12.5,19.2c6,6,12.1,9.7,19.2,12.5c6.8,2.7,14.7,4.5,26.3,5s15.2,0.7,44.6,0.7  s33-0.1,44.6-0.7c11.5-0.5,19.3-2.4,26.3-5c7.1-2.8,13.2-6.4,19.2-12.5c6-6,9.7-12.1,12.5-19.2c2.7-6.8,4.5-14.7,5-26.3  c0.5-11.6,0.7-15.2,0.7-44.6s-0.1-33-0.7-44.6c-0.5-11.5-2.4-19.3-5-26.3c-2.8-7.1-6.4-13.2-12.5-19.2s-12.2-9.6-19.3-12.4  c-6.8-2.7-14.7-4.5-26.3-5C247.1,106,243.5,106,214.1,106z M214.1,158.6c-30.7,0-55.5,24.8-55.5,55.5s24.8,55.5,55.5,55.5  s55.5-24.8,55.5-55.5S244.7,158.6,214.1,158.6z M214.1,250.1c-19.9,0-36.1-16.1-36.1-36.1s16.1-36.1,36.1-36.1s36.1,16.1,36.1,36.1  S234,250.1,214.1,250.1z M284.8,156.4c0,7.2-5.8,13-13,13s-12.9-5.8-12.9-13s5.8-13,13-13C279,143.4,284.8,149.2,284.8,156.4z"}))}},function(e,t,r){"use strict";var n=r(7),a=r.n(n),i=r(0),o=r.n(i),s=r(119),c=r(171),l=r(11),u=r(4),p=r(52),d=r(1),f=r(5),m=r(121),h=function(e){function t(){return e.apply(this,arguments)||this}return a()(t,e),t.prototype.render=function(){var e,t,r,n;this.props.product&&(e=u.k(this.props.product),t=this.props.product.name),this.props.question&&this.props.question.question_text&&(r=o.a.createElement(c.a,{questionText:this.props.question.question_text,nickname:this.props.question.author_name,daysAgo:this.props.daysAgo,localizations:this.props.localizations.product_answers}));var a=!!Object(f.b)("enable_enhanced_content_security",this.props.merchant.configuration,this.props.config,!0);return n=this.props.product.full_product_url&&!1===a?o.a.createElement("a",{className:"pr-underline",href:this.props.product.full_product_url},t):o.a.createElement("p",{className:"pr-waqwaa-product-name"},t),o.a.createElement("div",null,o.a.createElement("div",{className:"pr-header"},o.a.createElement(p.a,{message:"This is a TEST Q/A",type:"warning",isVisible:this.props.isTest}),o.a.createElement("div",{className:"pr-header-table"},o.a.createElement("div",{className:"table-cell pr-header-product-img"},o.a.createElement(m.a,{src:e,alt:Object(d.a)("collect_display.media.product_image",this.props.localizations),errorAlt:Object(d.a)("collect_display.media.product_unavailable",this.props.localizations)})),o.a.createElement("div",{className:"table-cell"},o.a.createElement(l.a,{importance:1,className:"pr-header-title",id:"pr-waqwaa-header"},r?Object(d.a)("answer_wizard.edit.page_headline_general",this.props.localizations.product_answers):Object(d.a)("question_wizard.edit.page_headline_general",this.props.localizations.product_answers)),n))),o.a.createElement(l.b,null,r))},t}(s.a);t.a=h},function(e,t,r){"use strict";var n=r(7),a=r.n(n),i=r(0),o=r.n(i),s=(r(9),r(171)),c=r(11),l=r(4),u=r(25),p=r(6),d=r(1),f=r(5),m=function(e){function t(t){var r;return(r=e.call(this,t)||this).state={type:r.props.config.question_id?"answer":"question"},r}a()(t,e);var r=t.prototype;return r.componentDidMount=function(){var e=this;if(this.props.config.on_submit){var t,r=[];if("WAQ"===this.props.type){t=p.u.WriteAQuestion;r=["author_email","author_location","author_name","merch","merchant_question_category","question_text","question_type"].pwrMap(function(t){return{key:t,value:e.props.question[t]}}).filter(function(e){return e.value})}else if("WAA"===this.props.type){t=p.u.WriteAnAnswer;r=["answer_text","author_location","author_name"].pwrMap(function(t){return{key:t,value:e.props.answer[t]}}).filter(function(e){return e.value})}u.a.onWriteComponentSubmit(t,this.props,{fields:r})}},r.render=function(){var e,t,r=this,n=function(){var e,t="";Object(f.b)("pr_return_url",r.props.config)&&((e=Object(f.b)("pr_return_url",r.props.config,!0)?l.u(Object(f.b)("pr_return_url",r.props.config,!0)):l.u(Object(f.b)("pr_return_url",r.props.config,!1)))&&(t=e.match(/^http/g)?e:"http:"+e));return t};return Object(f.b)("enable_enhanced_content_security",this.props.config,!0)||(t=n()?n():this.props.product.full_product_url?this.props.product.full_product_url:window.location.origin?window.location.origin+"/":window.location.protocol+"/"+window.location.host),this.props.question&&(e=o.a.createElement(s.a,{localizations:this.props.localizations,questionText:this.props.question.question_text,nickname:this.props.question.author_name,daysAgo:this.props.question.days_since_asked,answer:this.props.answer})),o.a.createElement("div",null,o.a.createElement("div",{className:"pr-header"},o.a.createElement("div",{className:"pr-header-table"},o.a.createElement("div",{className:"table-cell"},o.a.createElement(c.a,{importance:1,className:"pr-header-title"},Object(d.a)(this.state.type+"_wizard.confirmation.page_headline",this.props.localizations)),o.a.createElement("span",null,Object(d.a)(this.state.type+"_wizard.confirmation.under_headline_text",this.props.localizations))))),e,t&&o.a.createElement("p",null,o.a.createElement("a",{href:t},Object(d.a)(this.state.type+"_wizard.confirmation.merchant_base_link_label",this.props.localizations)+" >>")))},t}(o.a.Component);t.a=m},function(e,t,r){"use strict";var n=r(7),a=r.n(n),i=r(0),o=r.n(i),s=(r(9),r(11)),c=function(e){function t(){return e.apply(this,arguments)||this}return a()(t,e),t.prototype.render=function(){var e="WAQ"===this.props.type?"question":"answer";return o.a.createElement("div",{className:"pr-waqwaa-error-message"},o.a.createElement(s.a,{importance:1},"We're sorry this ",e," form is not curently availble"),o.a.createElement("p",null,"We apologize for this inconvenience. Please bookmark this page and try adding your ",e," at another time."))},t}(o.a.Component);t.a=c},function(e,t,r){"use strict";r.d(t,"a",function(){return i}),r.d(t,"b",function(){return o});var n="REDRAW",a={redrawKey:1};function i(e,t){switch(void 0===e&&(e=a),t.type){case n:return{redrawKey:e.redrawKey+1};default:return e}}function o(){return{type:n}}},function(e,t,r){"use strict";var n=r(0),a=r.n(n),i=(r(9),function(e){var t=e.badgeType,r=e.size,n=null;switch(t){case"staff_expert":n="small"===r?a.a.createElement("svg",{viewBox:"0 0 500 500",focusable:"false","aria-hidden":"true"},a.a.createElement("circle",{fill:"#54C7E6",cx:"250",cy:"250",r:"250"}),a.a.createElement("path",{fill:"#FFF",d:"M334.9 179.3H217.3v47.2h108v38.6h-108v57.2h123.1v40H171.9V140h163v39.3z"})):a.a.createElement("svg",{viewBox:"0 0 500 500",focusable:"false","aria-hidden":"true"},a.a.createElement("circle",{fill:"#54C7E6",cx:"250",cy:"250",r:"250"}),a.a.createElement("g",{fill:"#FFF"},a.a.createElement("path",{d:"M161.9 191.3c10.8 0 20-3.8 27.7-11.5 7.6-7.6 11.5-16.9 11.5-27.7s-3.8-20-11.5-27.7c-7.6-7.6-16.9-11.5-27.7-11.5s-20 3.8-27.7 11.5c-7.6 7.6-11.5 16.9-11.5 27.7s3.8 20 11.5 27.7c7.7 7.7 16.9 11.5 27.7 11.5zM208.5 252.4c11.5 11.5 25.3 17.2 41.5 17.2s30-5.7 41.5-17.2 17.2-25.3 17.2-41.5-5.7-30-17.2-41.5-25.3-17.2-41.5-17.2-30 5.7-41.5 17.2-17.2 25.3-17.2 41.5 5.7 30 17.2 41.5zM338.1 191.3c10.8 0 20-3.8 27.7-11.5 7.6-7.6 11.5-16.9 11.5-27.7s-3.8-20-11.5-27.7c-7.6-7.6-16.9-11.5-27.7-11.5s-20 3.8-27.7 11.5c-7.6 7.6-11.5 16.9-11.5 27.7s3.8 20 11.5 27.7c7.6 7.7 16.9 11.5 27.7 11.5zM377.8 191.3c-.6 0-2.8 1.1-6.6 3.2s-8.8 4.3-14.9 6.5-12.2 3.3-18.2 3.3c-6.8 0-13.6-1.2-20.3-3.5.5 3.8.8 7.1.8 10.1 0 14.2-4.1 27.2-12.4 39.1 16.5.5 30 7 40.5 19.6h20.5c8.4 0 15.4-2.1 21.1-6.2 5.7-4.1 8.6-10.2 8.6-18.1-.1-36-6.4-54-19.1-54z"}),a.a.createElement("path",{d:"M355 314.9c-1.1-6-2.4-11.5-4.1-16.6-1.6-5.1-3.8-10.1-6.6-14.9-2.8-4.8-5.9-9-9.5-12.4-3.6-3.4-7.9-6.1-13.1-8.2-5.1-2-10.8-3.1-17-3.1-1 0-3.2 1.1-6.6 3.3-3.4 2.2-7.1 4.6-11.2 7.3s-9.5 5.1-16.4 7.3c-6.8 2.2-13.7 3.3-20.6 3.3-6.9 0-13.8-1.1-20.6-3.3-6.8-2.2-12.3-4.6-16.4-7.3-4.1-2.7-7.8-5.1-11.2-7.3-3.4-2.2-5.6-3.3-6.6-3.3-6.2 0-11.9 1-17 3.1-5.1 2-9.5 4.8-13.1 8.2-3.6 3.4-6.7 7.5-9.5 12.4-2.8 4.8-4.9 9.8-6.6 14.9-1.6 5.1-3 10.6-4.1 16.6-1.1 6-1.8 11.5-2.1 16.7-.4 5.1-.5 10.4-.5 15.8 0 12.2 3.7 21.9 11.2 29 7.4 7.1 17.3 10.6 29.7 10.6h133.6c12.3 0 22.2-3.5 29.7-10.6 7.4-7.1 11.2-16.7 11.2-29 0-5.4-.2-10.7-.5-15.8-.3-5.2-1.1-10.7-2.1-16.7zM193.9 250c-8.3-11.9-12.4-25-12.4-39.1 0-3 .3-6.3.8-10.1-6.7 2.3-13.5 3.5-20.3 3.5-6 0-12.1-1.1-18.2-3.3-6.1-2.2-11.1-4.4-14.9-6.5-3.8-2.1-6-3.2-6.7-3.2-12.6 0-19 18-19 54 0 7.9 2.9 14 8.6 18.1 5.7 4.1 12.7 6.2 21.1 6.2h20.5c10.5-12.6 24-19.1 40.5-19.6z"})));break;case"staff_reviewer":n="small"===r?a.a.createElement("svg",{viewBox:"0 0 500 500",focusable:"false","aria-hidden":"true"},a.a.createElement("circle",{fill:"#FAB718",cx:"250",cy:"250",r:"250"}),a.a.createElement("path",{fill:"#FFF",d:"M204 293.6c1.4 10.2 4.3 17.7 8.5 22.8 7.7 9.1 20.9 13.7 39.6 13.7 11.2 0 20.3-1.2 27.3-3.6 13.2-4.6 19.9-13.2 19.9-25.8 0-7.3-3.2-13-9.7-17-6.5-3.9-16.8-7.4-30.9-10.4l-24.1-5.3c-23.7-5.2-39.9-10.9-48.7-17-15-10.3-22.5-26.3-22.5-48.1 0-19.9 7.3-36.4 22-49.6 14.7-13.2 36.2-19.8 64.6-19.8 23.7 0 43.9 6.2 60.7 18.6 16.7 12.4 25.5 30.4 26.3 54.1h-44.6c-.8-13.4-6.8-22.9-17.9-28.5-7.4-3.7-16.6-5.6-27.7-5.6-12.3 0-22.1 2.4-29.4 7.2-7.3 4.8-11 11.6-11 20.2 0 7.9 3.6 13.9 10.8 17.8 4.6 2.6 14.5 5.7 29.5 9.2l39 9.2c17.1 4 29.9 9.4 38.4 16.1 13.2 10.5 19.9 25.6 19.9 45.4 0 20.3-7.9 37.2-23.5 50.6-15.7 13.4-37.9 20.1-66.5 20.1-29.3 0-52.3-6.6-69-19.8-16.8-13.2-25.1-31.4-25.1-54.5H204z"})):a.a.createElement("svg",{viewBox:"0 0 500 500",focusable:"false","aria-hidden":"true"},a.a.createElement("circle",{fill:"#FAB718",cx:"250",cy:"250",r:"250"}),a.a.createElement("path",{fill:"#FFF",d:"M250 247c20.8 0 38.5-7.4 53.2-22 14.7-14.7 22-32.4 22-53.2 0-20.8-7.3-38.5-22-53.2-14.7-14.7-32.4-22-53.2-22s-38.5 7.3-53.2 22c-14.7 14.7-22 32.4-22 53.2 0 20.8 7.3 38.5 22 53.2 14.7 14.7 32.4 22 53.2 22z"}),a.a.createElement("path",{fill:"#FFF",d:"M387.3 326.5c-.5-6.6-1.4-13.7-2.7-21.4-1.4-7.6-3.1-14.7-5.2-21.3-2.1-6.5-4.9-12.9-8.4-19.1-3.5-6.2-7.6-11.5-12.2-15.9s-10.2-7.9-16.8-10.5c-6.6-2.6-13.9-3.9-21.9-3.9-1.2 0-3.9 1.4-8.2 4.2-4.3 2.8-9.2 5.9-14.6 9.4s-12.5 6.6-21.2 9.4c-8.7 2.8-17.4 4.2-26.2 4.2s-17.5-1.4-26.2-4.2c-8.7-2.8-15.7-5.9-21.2-9.4-5.4-3.5-10.3-6.6-14.6-9.4-4.3-2.8-7.1-4.2-8.2-4.2-8 0-15.3 1.3-21.8 3.9-6.6 2.6-12.2 6.1-16.8 10.5-4.6 4.4-8.6 9.7-12.1 15.9-3.5 6.2-6.3 12.6-8.4 19.1-2.1 6.5-3.8 13.6-5.2 21.3-1.4 7.6-2.3 14.8-2.7 21.4-.5 6.6-.7 13.4-.7 20.3 0 15.7 4.8 28.1 14.3 37.1 9.5 9.1 22.2 13.6 38 13.6h171.3c15.8 0 28.5-4.5 38-13.6s14.3-21.5 14.3-37.1c.1-7-.2-13.7-.6-20.3zm-49.6-29.1h-33.3v-14.8h33.3v14.8z"}));break;case"verified_buyer":case"verified_reviewer":n=a.a.createElement("svg",{viewBox:"0 0 19 19",focusable:"false","aria-hidden":"true"},a.a.createElement("title",null,"Verified Buyer"),a.a.createElement("g",{transform:"translate(-76 -467) translate(76 467)",fill:"none"},a.a.createElement("circle",{fill:"#88D633",cx:9.5,cy:9.5,r:9.5}),a.a.createElement("g",{stroke:"#FFF"},a.a.createElement("path",{d:"M0 3l2.5 2.5M7.461.539l-4.58 4.58",transform:"translate(6 7)"}))));break;case"qa_verified_reply":n=a.a.createElement("svg",{width:"17px",height:"20px",viewBox:"0 0 17 20",focusable:"false","aria-hidden":"true"},a.a.createElement("title",null,"Verified Reply"),a.a.createElement("g",{transform:"translate(-384 -430) translate(363 423) translate(21 7)",fill:"none"},a.a.createElement("path",{d:"M8.648 19.306C11.78 18.342 17 15.175 17 11.869V2.78L8.648.301.295 2.781v9.088c0 3.306 5.22 6.473 8.353 7.437z",fill:"#056BC5"}),a.a.createElement("path",{fill:"#FFF",d:"M8.5 4.43333333L10.0003175 7.60260119 13.2222222 8.05249405 10.8611111 10.5404762 11.5050198 13.9333333 8.5 12.3498869 5.49498016 13.9333333 6.13888889 10.5404762 3.77777778 8.05249405 6.99968254 7.60260119z"})));break;case"community":n=a.a.createElement("svg",{width:"19px",height:"16px",viewBox:"0 0 19 16",focusable:"false","aria-hidden":"true"},a.a.createElement("title",null,"Community"),a.a.createElement("g",{fill:"none"},a.a.createElement("path",{stroke:"#9B9B9B",fill:"#9B9B9B",transform:"translate(-363 -616) translate(364 617)",d:"M0.283333333 0.267857143L0.283333333 10.9821429 5.9993 10.9821429 8.5 14.7321429 11.0007 10.9821429 16.7166667 10.9821429 16.7166667 0.267857143z"}),a.a.createElement("g",{stroke:"#FFF"},a.a.createElement("path",{d:"M.5 1.75h10.003M.5 3.75h10.028M.5 5.75h8",transform:"translate(-363 -616) translate(364 617) translate(3 1)"}))))}return n?a.a.createElement("span",{className:"pr-badging-icon","aria-hidden":"true"},n):null});i.defaultProps={badgeType:"verified_buyer",size:"large"},t.a=i},function(e,t,r){"use strict";r.d(t,"a",function(){return d});var n=r(8),a=r.n(n),i=r(0),o=r.n(i),s=(r(9),r(1)),c=r(43),l=r(70),u=r(11),p=r(33),d=function(e,t){var r=e.localizations,n=e.microdata,i=e.headline,d=void 0===i?"":i,f=e.rating,m=e.reviewId,h=e.lang,v=Object(c.c)(),g=v.DISABLE_CD4_HEADING_STRUCTURES,b=v.STAR_STYLES;return null==d?null:o.a.createElement("header",{className:"pr-rd-header pr-rd-content-block"},o.a.createElement("div",a()({},n.ratingRoot,{className:"pr-rd-star-rating"}),o.a.createElement("div",a()({},n.ratingValue,{"aria-hidden":"true"}),o.a.createElement(l.a,{isInteractive:!1,preset:f,ratingValue:f,starStyles:b}))),o.a.createElement(u.a,a()({importance:2},n.title,{shouldUseSpan:g,className:"pr-rd-review-headline",ref:t,tabIndex:-1,"data-testid":"headline-"+m,id:"pr-rd-review-headline-"+m,lang:h}),d),o.a.createElement("span",{className:"pr-accessible-text"},Object(p.a)(Object(s.a)("review_display.4.0.common.rated_x_out_of_y",r),f)))};d=o.a.forwardRef(d)},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(0),o=r.n(i);r(9);t.a=function(e){var t=e.merchantProperties.REVIEW_DISPLAY_DESCRIPTION_CHARACTER_COUNT,r=e.isCondensed,n=e.comments,s=e.microdata,c=e.lang,l=Object(i.useState)(!1),u=l[0],p=l[1],d=parseInt(t,10)>0?parseInt(t,10):0;return r&&d>0&&n.length>d?o.a.createElement("p",{className:"pr-rd-description-text",lang:c},o.a.createElement("span",s.body,u?n:n.substring(0,d)+"..."),o.a.createElement("button",{type:"button",className:"pr-rd-show-more-description-btn",onClick:function(){p(function(e){return!e})}},u?"[ - ]":"[ + ]")):o.a.createElement("p",a()({},s.body,{className:"pr-rd-description-text",lang:c,dangerouslySetInnerHTML:{__html:n}}))}},function(e,t,r){"use strict";var n=r(0),a=r.n(n),i=(r(9),function(e){return a.a.createElement("span",{"aria-hidden":"true",className:"pr-ellipsis-icon"},a.a.createElement("svg",{viewBox:"-10 -18 42 42",focusable:"false"},a.a.createElement("g",null,a.a.createElement("circle",{className:"pr-ellipsis-icon__circle pr-ellipsis-icon__circle__inner",cx:"2",cy:"3",r:"3",fill:e.innerCirclefillColor,stroke:e.innerCircleStrokeColor,strokeWidth:e.innerCircleStrokeSize}),a.a.createElement("circle",{className:"pr-ellipsis-icon__circle pr-ellipsis-icon__circle__inner",cx:"11",cy:"3",r:"3",fill:e.innerCirclefillColor,stroke:e.innerCircleStrokeColor,strokeWidth:e.innerCircleStrokeSize}),a.a.createElement("circle",{className:"pr-ellipsis-icon__circle pr-ellipsis-icon__circle__inner",cx:"20",cy:"3",r:"3",fill:e.innerCirclefillColor,stroke:e.innerCircleStrokeColor,strokeWidth:e.innerCircleStrokeSize}),e.circleOutline&&a.a.createElement("circle",{className:"pr-ellipsis-icon__circle pr-ellipsis-icon__circle__outer",cx:"11",cy:"3.5",r:"20",stroke:e.outerCircleStrokeColor,strokeWidth:e.outerCircleStrokeSize,fill:e.outerCirclefillColor}))))});i.defaultProps={circleOutline:!0,innerCirclefillColor:"none",outerCirclefillColor:"none",innerCircleStrokeColor:"#333",outerCircleStrokeColor:"#333",innerCircleStrokeSize:"1",outerCircleStrokeSize:"1"},t.a=i},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(0),o=r.n(i),s=(r(9),r(10)),c=r.n(s),l=r(5),u=r(13),p=r(4),d=r(149),f=r(22),m=r(14),h=r(12),v=r(1),g=/http:\/\/|https:\/\/|www./g,b=function(e){var t=e.localizations,r=e.merchantProperties,n=e.review,a=r.REVIEW_DISPLAY_ATTRIBUTION_TYPE,i=r.IS_ATTRIBUTION_URL_DISABLED,s=n.details,c=s.brand_logo_uri,l=s.brand_base_url,u=s.source,p=s.brand_name;if("brand"===u||!l&&!c)return null;var d="TEXT"===a?o.a.createElement("span",null,l.replace(g,"")):o.a.createElement("img",{src:"//images.powerreviews.com"+c,alt:p});return o.a.createElement("div",{className:"pr-rd-details pr-rd-reviewed-at"},o.a.createElement("p",{className:"pr-rd-bold"},Object(v.a)("review_display.4.0.common.reviewed_at",t)),i?d:o.a.createElement("a",{href:l,target:"blank",title:p},d))},y=function(e){var t=e.microdata,r=e.localizations,n=e.review;return o.a.createElement("p",a()({},t.authorRoot,{className:"pr-rd-details pr-rd-author-nickname"}),o.a.createElement("span",null,o.a.createElement("span",{className:"pr-rd-bold"},""+Object(v.a)("review_display.4.0.common.by",r)," "),o.a.createElement("span",t.authorName,n.details.nickname)))},_=r(210),w=function(e){var t=e.badges,r=void 0===t?{}:t,n=e.localizations,a=["is_staff_reviewer","is_verified_buyer","is_verified_reviewer"].filter(function(e){return r[e]})[0];if(!(a=a&&a.replace(/is_/,"")))return null;var s=Object(v.a)("review_display.4.0.badging."+a+"_asset",n),c=Object(v.a)("review_display.4.0.badging."+a+"_text",n)||Object(p.e)(a.replace("_"," "));return o.a.createElement("p",{className:"pr-rd-reviewer-type pr-rd-inner-side-content-block pr-"+a},s?o.a.createElement("span",{className:"pr-rd-badging-asset"},o.a.createElement("img",{src:s,alt:c})):o.a.createElement(i.Fragment,null,o.a.createElement(_.a,{badgeType:a}),o.a.createElement("span",{className:"pr-rd-badging-text"},c)))},E=r(55),O=r.n(E),S=r(99),C=function(e){var t=e.localizations,r=e.microdata,n=e.review,i=Object(v.a)("review_display.4.0.common.date_format",t),s=""===i?Object(S.b)(n.details.created_date,t):O()(function(e){var t=new Date(e);return new Date(t.getTime()-60*t.getTimezoneOffset()*1e3)}(n.details.created_date),i.toLowerCase());return o.a.createElement("p",{className:"pr-rd-details pr-rd-author-submission-date"},o.a.createElement("span",{className:"pr-rd-bold"},Object(v.a)("review_display.4.0.common.submitted",t)+" "),o.a.createElement("time",a()({},r.datePublished,{dateTime:new Date(n.details.created_date).toISOString()}),s))},j=function(e){var t=e.microdata,r=e.localizations,n=e.review.details.location,i=c()("pr-rd-details pr-rd-author-location",{"pr-rd-author-location-undisclosed":n&&"undisclosed"===n.toLowerCase()});return o.a.createElement("p",a()({},t.locationRoot,{className:i}),o.a.createElement("span",null,o.a.createElement("span",{className:"pr-rd-bold"},""+Object(v.a)("review_display.4.0.common.from",r)," "),o.a.createElement("span",t.locationName,n)))},x=function(e){var t=e.review,r=e.localizations,n=e.merchantProperties,a=e.demographicProperties,s=e.microdata,c=e.className,l=void 0===c?"pr-rd-description pr-rd-content-block":c,u=e.children;return o.a.createElement(i.Fragment,null,o.a.createElement("div",{className:l},o.a.createElement("div",{className:"pr-rd-reviewer-details pr-rd-inner-side-content-block"},o.a.createElement(C,{review:t,microdata:s,localizations:r}),o.a.createElement(y,{review:t,microdata:s,localizations:r}),o.a.createElement(j,{review:t,microdata:s,localizations:r}),a.pwrMap(function(e){return o.a.createElement("p",{key:e.key,className:"pr-rd-details pr-rd-demographic"},o.a.createElement("span",{className:"pr-rd-bold"},e.label+" "),o.a.createElement("span",null,e.value.join(", ")))})),o.a.createElement(w,{badges:t.badges,localizations:r}),t.details.disclosure_code&&o.a.createElement("p",{className:"pr-rd-review-disclosure pr-rd-inner-side-content-block"},Object(v.a)("review_display.4.0.disclosure."+t.details.disclosure_code,r)),o.a.createElement(b,{localizations:r,merchantProperties:n,review:t})),u)},k=function(e){var t=e.localizations,r=e.review,n=e.productName,a=e.merchantProperties,i=r.details.product_name,s=i||n||"Product",c=a.PUBLISH_SERVICE_COMMENTS&&r.details.service_comments;if(i||c&&!i){var l=Object(v.a)("review_display.4.0.description.comments_for",t);return o.a.createElement("p",{className:"pr-rd-review-product pr-rd-bold"},l+" "+s)}return null},I=r(7),P=r.n(I),T=r(61),R=function(e){function t(t){var r;return(r=e.call(this,t)||this).state={isExpanded:!1},r}P()(t,e);var r=t.prototype;return r._toggleAccordion=function(e){e&&e.preventDefault(),this.props.toggleCallback&&this.props.toggleCallback(!this.state.isExpanded),this.state.isExpanded?this.setState({isExpanded:!1}):this.setState({isExpanded:!0})},r.render=function(){if(!this.props.children)return null;var e=this.state.isExpanded?"pr-accordion pr-accordion-exapanded":"pr-accordion pr-accordion-collapsed";this.props.className&&(e=this.state.isExpanded?this.props.className+" pr-accordion pr-accordion-exapanded":this.props.className+" pr-accordion pr-accordion-collapsed");var t=this.state.isExpanded?this.props.buttonLabelCollapsed:this.props.buttonLabelExpanded;return o.a.createElement("section",{className:e},o.a.createElement("button",{type:"button",className:"pr-accordion-btn",onClick:this._toggleAccordion.pwrBind(this),id:this.props.id+"-link","aria-expanded":this.state.isExpanded,"aria-controls":this.props.id+"-content"},o.a.createElement("span",null,t),o.a.createElement(T.a,{circleOutline:!1,lineStrokeSize:"4"})),o.a.createElement("div",{"aria-hidden":!this.state.isExpanded,"aria-labelledby":this.props.id+"-link",className:"pr-accordion-content",id:this.props.id+"-content",role:"region"},this.props.children))},t}(o.a.Component);R.defaultProps={buttonLabelExpanded:"More Details",buttonLabelCollapsed:"Less Details",toggleCallback:function(){return!1}};var N=R,A=function(e){var t=e.review,r=e.localizations;return o.a.createElement("section",{className:"pr-rd-brand-response pr-rd-content-block"},t.details.brand_logo_uri&&o.a.createElement("img",{className:"pr-rd-brand-response-logo",src:"//images.powerreviews.com"+t.details.brand_logo_uri,alt:t.details.brand_name,width:"25"}),o.a.createElement("div",null,o.a.createElement("p",{className:"pr-rd-brand-response-headline"},o.a.createElement("strong",null,Object(v.a)("review_display.4.0.description.official_response_by_brand",r).replace("{0}",t.details.brand_name))),t.details.brand_response_datexxx&&o.a.createElement("p",{className:"pr-rd-brand-response-headline"},Object(v.a)("review_display.4.0.description.responded",r),Object(S.b)(new Date(t.details.brand_response_datexxx),r)),o.a.createElement("p",{className:"pr-rd-description-text pr-rd-left"},"brand"===t.details.source?t.details.brand_response:t.details.merchant_response)))},D=r(174),L=function(e){var t=e.review,r=e.localizations;return o.a.createElement("section",{className:"pr-rd-merchant-response pr-rd-content-block"},o.a.createElement("p",{className:"pr-rd-merchant-response-headline"},o.a.createElement("strong",null,Object(v.a)("review_display.4.0.merchant_response.merchant_response",r))),o.a.createElement("p",{className:"pr-rd-description-text pr-rd-left"},Object(D.a)(t.details.merchant_response,!0)))},M=function(e){var t=e.localizations,r=e.review;return o.a.createElement("section",{className:"pr-rd-review-service pr-rd-content-block"},o.a.createElement("p",{className:"pr-rd-bold"},Object(v.a)("review_display.4.0.description.service_comments",t)),o.a.createElement("p",{className:"pr-rd-description-text"},r.details.service_comments))},F=function(e){var t=e.review,r=e.localizations,n=e.merchantProperties;return o.a.createElement(i.Fragment,null,n.PUBLISH_SERVICE_COMMENTS&&t.details.service_comments&&o.a.createElement(M,{review:t,localizations:r}),"syndicated"===t.details.source&&t.details.merchant_response&&o.a.createElement(A,{review:t,localizations:r}),"syndicated"!==t.details.source&&t.details.merchant_response&&o.a.createElement(L,{review:t,localizations:r}),t.details.brand_response&&o.a.createElement(A,{review:t,localizations:r}))},z=function(e){var t=e.tag,r=e.localization,n=t.value.pwrMap(function(e,r){return o.a.createElement("dd",{key:"tag-"+t.key+"-"+r},""+e)});return o.a.createElement("dl",{key:"tag-"+t.key,className:"pr-rd-review-tag"},o.a.createElement("dt",null,r||t.label),n)},V=r(70),U=function(e){var t=e.tag,r=e.localizations,n=e.merchantProperties;if(!t.value||t.value.length<=0)return o.a.createElement("div",null);switch(t.type){case"subrating":var a=Object(v.a)("review_display.4.0.common.rated_x_out_of_y",r).replace("{0}",t.value[0]);return o.a.createElement("dl",{key:"subrating-"+t.key,className:"pr-rd-def-list"},o.a.createElement("dt",null,t.label),o.a.createElement("dd",null,o.a.createElement("div",null,o.a.createElement("div",{tabIndex:"-1","aria-hidden":"true"},o.a.createElement(V.a,{isInteractive:!1,preset:Number(t.value[0]),ratingValue:Number(t.value[0]),starStyles:Object(l.b)("pr_star_styles")||n.STAR_STYLES}),o.a.createElement("span",{className:"pr-accessible-text"},a)))));case"tag":return o.a.createElement("dl",{key:"tag-"+t.key,className:"pr-rd-def-list"},o.a.createElement("dt",null,t.label),o.a.createElement("dd",null,t.value.pwrReduce(function(e,t){return e+", "+t})));case"textbox":return o.a.createElement("dl",{key:"textbox-"+t.key,className:"pr-rd-def-list"},o.a.createElement("dt",null,t.label),o.a.createElement("dd",null,t.value));default:console.error("Unhandled MSQ type!!")}},q=r(199),W=r(130),B=r(98);function H(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return K(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return K(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.pwrBind(r)}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var G={pros:-4,cons:-3,bestuses:-2};var Q=function(e){for(var t,r=e.localizations,n=e.config,a=e.merchantProperties,s=e.properties,c=e.propertiesByKey,u=Object(l.a)(a,n).CD4_ENABLED_HISTOGRAM_SLIDER_KEYS,p=void 0===u?"":u,d=Object(B.a)(Object(W.a)(p)),f=[],m=[],h=[],v=H(function(e){return e.sort(function(e,t){return(G[e.key]||0)-(G[t.key]||0)})}(s));!(t=v()).done;){var g=t.value;if(c.hasOwnProperty(g.key)&&"histogram"===c[g.key].display_type&&d.has(g.key)){var b=Object(q.b)(c[g.key],g.value[0]);h.push(o.a.createElement("div",{key:g.key,className:"pr-rd-sliders_slider"},o.a.createElement("span",{className:"pr-rd-sliders_title"},g.label),o.a.createElement(q.a,{msqData:b})))}else if("pros"===g.key||"cons"===g.key||"bestuses"===g.key){var y=void 0;y="bestuses"===g.key?r["review_display.4.0.review_tag_groups.best_uses"]:r["review_display.4.0.review_tag_groups."+g.key],f.push(o.a.createElement(z,{key:"tag-groups-"+g.key,tag:g,localization:y}))}else m.push(o.a.createElement(U,{key:"msq-"+g.key,tag:g,localizations:r,merchantProperties:a}))}return o.a.createElement(i.Fragment,null,h.length>0?o.a.createElement("div",{className:"pr-rd-sliders"},h):null,!!f.length&&o.a.createElement("section",{className:"pr-rd-tags pr-rd-content-block"},f),!!m.length&&o.a.createElement("section",{className:"pr-rd-subratings pr-rd-content-block"},m))},Y=function(e){var t=e.isCondensed,r=e.localizations,n=e.merchantProperties,s=e.msqProperties,c=e.propertiesByKey,l=e.review,u=e.sendBeacon,p=e.children;return t?o.a.createElement(N,{id:l.review_id,className:"pr-rd-content-block",buttonLabelExpanded:Object(v.a)("review_display.4.0.common.more_details",r),buttonLabelCollapsed:Object(v.a)("review_display.4.0.common.less_details",r),toggleCallback:function(e){return e&&u(m.a.REVIEW_DISPLAY_MORE_DETAILS)}},o.a.createElement(F,{localizations:r,review:l,merchantProperties:n}),!!s.length&&o.a.createElement(Q,a()({properties:s,propertiesByKey:c},{localizations:r,review:l,merchantProperties:n})),p):o.a.createElement(i.Fragment,null,o.a.createElement(F,{localizations:r,review:l,merchantProperties:n}),o.a.createElement(N,{id:l.review_id,className:"pr-rd-content-block",buttonLabelExpanded:Object(v.a)("review_display.4.0.common.more_details",r),buttonLabelCollapsed:Object(v.a)("review_display.4.0.common.less_details",r),toggleCallback:function(e){return e&&u(m.a.REVIEW_DISPLAY_MORE_DETAILS)}},!!s.length&&o.a.createElement(Q,a()({properties:s,propertiesByKey:c},{localizations:r,review:l,merchantProperties:n}))),p)},$=r(2),J=r.n($),X=r(107),Z=r(88),ee=r.n(Z),te=r(37),re=r(44),ne=r(28),ae=r(74),ie=r(125),oe=r(126),se=r(127);function ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(r),!0).forEach(function(t){J()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ce(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var ue={format:null,width:150,height:150,crop:"thumb",quality:"auto"},pe=function(e){var t=e.config,r=e.review,n=e.localizations,a=e.merchantProperties,s=e.openMediaCard,c=Object(i.useState)(!1),u=c[0],p=c[1],d=Object(i.useState)(null),m=d[0],h=d[1],g=Object(i.useState)(),b=g[0],y=g[1],_=Object(i.useState)([]),w=_[0],E=_[1],O=Object(i.useState)([]),S=O[0],C=O[1],j=Object(i.useState)([]),x=j[0],k=j[1],I=Object(l.a)(a,t).REVIEW_MEDIA_MODAL_STYLE,P=function(e){p(!0),h(e)},T=function(){p(!1),h(null)},R=r.media.sort(function(e,t){return e.type===t.type?0:"image"===e.type?-1:1}).filter(function(e){return!Object(f.f)(e)}).pwrMap(function(e){if("image"===e.type)return e;if("video"===e.type){var t=Object(ne.c)(e.uri),r=null==t?"cvideo":"yt";return le(le({},e),{},{youtubeID:t,type:r})}}).filter(Boolean),N=R.pwrMap(function(e){return{id:e.id,rating:r.metrics.rating,headline:r.details.headline,image:e.uri,type:e.type,disclosure_code:e.disclosure_code,caption:e.caption,helpful_votes:e.helpful_votes,not_helpful_votes:e.not_helpful_votes,comments:r.details.comments,youtubeID:e.youtubeID}}),A=R.pwrMap(function(e,t){var a,c="pr-rd-image-container pr-rd-left pr-rd-no-caption",l=null;if("image"===e.type){var u=ne.b.libraryUrl(e.uri,ue);e.caption&&(c="pr-rd-image-container pr-rd-left",l=o.a.createElement("figcaption",{"aria-label":e.caption},e.caption)),a=o.a.createElement(i.Fragment,null,o.a.createElement(re.a,{alt:r.details.headline,className:"pr-rd-image",src:u}),l)}else{if("yt"!==e.type&&"cvideo"!==e.type)return null;a=o.a.createElement(i.Fragment,null,o.a.createElement("img",{"aria-hidden":"true",src:ee.a,alt:Object(v.a)("collect_display.media.play_video",n),className:"pr-rd-play-icon"}),"yt"===e.type?o.a.createElement("img",{"aria-hidden":"true",src:"//img.youtube.com/vi/"+e.youtubeID+"/0.jpg",alt:Object(v.a)("collect_display.media.play_video",n),className:"pr-rd-image"}):null,"cvideo"===e.type?o.a.createElement(re.a,{"aria-hidden":"true",src:ne.b.libraryVideoUrl(e.uri,ue),alt:Object(v.a)("collect_display.media.play_video",n),className:"pr-rd-image"}):null)}return o.a.createElement("figure",{role:"button",onClick:s?function(){return s(N,t)}:function(){return P(t)},onKeyDown:function(e){return function(e,t){13!==e.keyCode&&32!==e.keyCode||P(t)}(e,t)},tabIndex:"0",key:"image-"+t,className:c},a)}),D=o.a.createElement(X.a,{localizations:n,merchantProperties:a,config:t,media:N,startingIndex:m,handleClose:T});return"CARDV2"===I&&(D=o.a.createElement(oe.a,{handleClose:T,closeBtnText:Object(v.a)("review_display.4.0.modal.close_button_text",n),role:"dialog","aria-labelledby":"mediaCarousel"},null!=b?o.a.createElement("div",{className:"pr-media-carousel"},o.a.createElement(ae.a,{localizations:n,onClose:function(){h(b),y(null)},onSubmit:function(e){return Object(te.a)(le(le(le({},e),t),{},{merchant_id:t.merchant_id,command:"flagugc",ugc_id:N[b].id})).then(function(){E(w.concat(Number(N[b].id))),h(b),y(null)})}})):o.a.createElement(se.a,{media:N,startingIndex:m,showShoppableLink:!1,handleFlagMedia:function(e){y(e)},handleHelpfulVoting:function(e,r){return Object(te.a)(le(le({},t),{},{vote_type:r.toLowerCase(),command:"voteugc",ugc_id:e})).then(function(){"helpful"===r.toLowerCase()?C(S.concat(Number(e))):"unhelpful"===r.toLowerCase()&&k(x.concat(Number(e)))})},flaggedContent:w,helpfulContent:S,unhelpfulContent:x,localizations:Object(ie.a)(n),UserImage:re.a,UserVideo:re.b}))),o.a.createElement("section",{className:"pr-rd-images pr-rd-content-block"},A,u&&D)},de=function(e){var t=e.review,r=e.localizations,n="Yes"===t.details.bottom_line?Object(v.a)("review_display.4.0.bottom_line.recommended",r):Object(v.a)("review_display.4.0.bottom_line.not_recommended",r);return o.a.createElement("p",{className:"pr-rd-bottomline pr-rd-inner-content-block"},o.a.createElement("span",{className:"pr-rd-bold"},Object(v.a)("review_display.4.0.bottom_line.bottom_line",r)),o.a.createElement("span",null," "+n))},fe=r(32),me=r(78),he=function(e){var t=e.config,r=e.review,n=e.localizations,a=e.helpfulContent,s=e.unhelpfulContent,l=e.voteContent,p=r.review_id,d=-1!==a.indexOf(p),f=-1!==s.indexOf(p),m=d||f,h=d?r.metrics.helpful_votes+1:r.metrics.helpful_votes,g=f?r.metrics.not_helpful_votes+1:r.metrics.not_helpful_votes,b=Object(v.a)("review_display.4.0.helpful.helpful_vote_label",n).replace("{0}",h),y=Object(v.a)("review_display.4.0.helpful.unhelpful_vote_label",n).replace("{0}",g),_=Object(u.h)(m),w=Object(i.useRef)(Object(u.f)()),E=m?w.current+" "+e["aria-describedby"]:e["aria-describedby"];return Object(i.useEffect)(function(){!1===_&&m&&Object(u.g)(Object(v.a)("review_display.4.0.helpful.thank_you",n))},[_,m,n]),o.a.createElement(o.a.Fragment,null,m?o.a.createElement("span",{className:"pr-accessible-text",id:w.current},Object(v.a)("review_display.4.0.helpful.already_voted",n)):null,o.a.createElement("button",{type:"button","aria-label":b,"aria-pressed":d,"aria-describedby":E,className:c()("pr-helpful-btn pr-helpful-yes",{"pr-helpful-active":d}),onClick:function(e){m||l(p,t,fe.d)},"aria-disabled":!!m||void 0},o.a.createElement(me.a,{thumbDirection:"up"}),o.a.createElement("span",{className:"pr-helpful-count"},h)),o.a.createElement("button",{type:"button","aria-label":y,"aria-pressed":f,"aria-describedby":E,className:c()("pr-helpful-btn pr-helpful-no",{"pr-helpful-active":f}),onClick:function(e){m||l(p,t,fe.i)},"aria-disabled":!!m||void 0},o.a.createElement(me.a,{thumbDirection:"down"}),o.a.createElement("span",{className:"pr-helpful-count"},g)))},ve=r(123),ge=r(97),be=function(e){var t=e.flaggedContent,r=e.flagContent,n=e.config,a=e.localizations,s=e.onFlag,c=e.review,l=Object(i.useState)(!1),u=l[0],p=l[1],d=Object(m.e)(n.page_id,h.e),f=function(e){e&&e.preventDefault(),p(!0),d(m.a.REVIEW_DISPLAY_FLAG)},g=function(e){e&&e.preventDefault(),p(!1)},b=-1!==t.indexOf(c.review_id),y=Object(v.a)("review_display.4.0.flagging.flag_this_review",a);return o.a.createElement("div",{className:"pr-rd-flag-review-container"},b?o.a.createElement("div",null,o.a.createElement(ve.a,null),o.a.createElement("p",{className:"pr-flag-review-thankyou"},Object(v.a)("review_display.4.0.flagging_form.already_flagged_text",a))):o.a.createElement("button",{"aria-describedby":e["aria-describedby"],className:"pr-rd-flag-review-btn",onClick:s?function(e){return s(e,c.review_id)}:f,onKeyDown:function(e){13===e.keyCode&&f(e)}},y),u&&o.a.createElement(ge.a,{isCard:!0,"aria-label":"Flag review dialog",role:"dialog",localizations:a,handleClose:g},o.a.createElement(ae.a,{localizations:a,onSubmit:function(e){return r(c.review_id,n,e)},onClose:g})))},ye=r(132),_e=function(e){var t=e.localizations,r=e.config,n=e.review,s=e.openOriginalReview,c=Object(i.useState)(!1),l=c[0],u=c[1],p=function(){u(function(e){return!e})};return o.a.createElement("div",{className:"pr-updated-review"},Object(v.a)("review_display.4.0.updated_review.description_text",t),o.a.createElement("button",{type:"button",className:"pr-updated-review-link",onClick:s||p},Object(v.a)("review_display.4.0.updated_review.original_review_link_text",t)),l&&o.a.createElement(ge.a,a()({localizations:t},{handleClose:p,enableCloseButton:!0,enableBackgroundClose:!0,role:"dialog"}),o.a.createElement(ye.a,a()({config:r},{showMedia:!1,showFlaggingAndHelpfulVoting:!1,singleReviewID:n.details.old_ugc_id}))))},we=(r(383),function(e){var t=e.config,r=e.localizations,n=e.review,s=e.flagContent,c=e.showFlaggingAndHelpfulVoting,l=e.helpfulContent,p=e.unhelpfulContent,d=e.flaggedContent,f=e.voteContent,m=e.onFlag,h=e.reviewHeadlineId,g=e.openOriginalReview,b=Object(i.useRef)(Object(u.f)());return o.a.createElement("footer",{className:"pr-rd-footer pr-rd-content-block"},n.details.bottom_line&&o.a.createElement(de,{review:n,localizations:r}),c&&o.a.createElement("div",{className:"pr-rd-helpful-action"},o.a.createElement("div",{className:"pr-rd-helpful-action-group"},o.a.createElement("div",{className:"pr-rd-helpful-action-legend"},o.a.createElement("span",{className:"pr-rd-helpful-text pr-rd-bold",id:b.current},""+Object(v.a)("review_display.4.0.helpful.helpful_question",r))),o.a.createElement("div",{className:"pr-rd-helpful-action-btn-group",role:"group","aria-labelledby":b.current},o.a.createElement(he,a()({config:t,review:n,localizations:r,helpfulContent:l,unhelpfulContent:p,voteContent:f},{"aria-describedby":h}))),o.a.createElement(be,a()({config:t,review:n,localizations:r,flaggedContent:d,onFlag:m,flagContent:s},{"aria-describedby":h})))),n.details.old_ugc_id&&o.a.createElement(_e,{config:t,localizations:r,review:n,openOriginalReview:g}))});we.defaultProps={showFlaggingAndHelpfulVoting:!0};var Ee=we,Oe=r(29),Se=function(e,t){var r=e.config,n=e.merchantProperties,s=e.localizations,v=e.productKey,g=e.review,b=e.showMedia,y=e.flaggedContent,_=e.helpfulContent,w=e.unhelpfulContent,E=e.voteContent,O=e.flagContent,S=e.onFlag,C=e.showFlaggingAndHelpfulVoting,j=e.propertiesByKey,I=e.openOriginalReview,P=e.openMediaCard,T=e.headline,R=e.comments,N=e.reviewTranslation,A=Object(l.a)(n,r),D=A.REVIEW_DISPLAY_LIST_TYPE,L=A.ENABLE_DEMOGRAPHIC_DISPLAY,M=A.CD4_DEMOGRAPHIC_DISPLAY_KEYS,F=A.PAGE_ID,z=A.CD4_REVIEW_DETAILS_LAYOUT,V=Object(m.e)(F,h.e),U="CONDENSED"===D,q="pr-rd-review-headline-"+g.review_id,W=function(e,t,r){var n=e.filter(function(e){return t&&r.indexOf(e.key)>-1}).sort(function(e,t){return r.indexOf(e.key)-r.indexOf(t.key)}).slice(0,3),a=e.filter(function(e){return-1===n.indexOf(e)});return{demographicProperties:n,msqProperties:a}}(g.details.properties||[],L,Object(u.b)(M)),B=W.demographicProperties,H=W.msqProperties,K=Object(d.b)(g,r.structured_data_product_id||v);K=Object(f.h)(r,n).showMicrodata?K:K.empty;var G=Object(i.useRef)(),Q=Object(i.useRef)();if(Object(i.useImperativeHandle)(t,function(){return{focus:function(){Object(p.F)(G.current,500),Q.current.focus()},get domNode(){return Q.current}}}),!g.isVisible)return null;var $=b?o.a.createElement(pe,{config:r,review:g,localizations:s,merchantProperties:n,openMediaCard:P}):null,J=o.a.createElement(Ee,{config:r,merchantProperties:n,review:g,localizations:s,flaggedContent:y,helpfulContent:_,unhelpfulContent:w,voteContent:E,flagContent:O,onFlag:S,showFlaggingAndHelpfulVoting:C,reviewHeadlineId:q,openOriginalReview:I}),X=o.a.cloneElement(R,{merchantProperties:n,isCondensed:U,microdata:K}),Z=o.a.createElement(k,{localizations:s,review:g,merchantProperties:n,productName:r.product_name}),ee=o.a.cloneElement(T,{microdata:K,ref:Q}),te=o.a.createElement(Y,{localizations:s,review:g,merchantProperties:n,isCondensed:U,msqProperties:H,sendBeacon:V,propertiesByKey:j},$,J);return"FLEX"===z&&!0!==U?o.a.createElement(Ce,{headline:ee,description:o.a.createElement(x,{className:"pr-rd-side-content-block-flex",localizations:s,merchantProperties:n,review:g,microdata:K,demographicProperties:B,config:r}),comments:X,commentsFor:Z,reviewPieces:te}):o.a.createElement("div",a()({},K.root,{className:c()("pr-review",{"pr-review-condensed":U}),ref:G}),ee,o.a.createElement("section",{className:"pr-rd-description pr-rd-content-block"},o.a.createElement(x,{className:"pr-rd-side-content-block pr-rd-right",localizations:s,merchantProperties:n,review:g,microdata:K,demographicProperties:B},Z,X,N)),te)};function Ce(e){var t=e.headline,r=e.reviewPieces,n=e.comments,a=e.commentsFor,i=e.description;return Object(Oe.e)()<980?o.a.createElement("div",{className:"pr-review-flex-mobile"},t,i,o.a.createElement("section",{className:"pr-rd-description pr-rd-content-block"},n,a),r):o.a.createElement("div",{className:"pr-review-flex"},o.a.createElement("div",{className:"pr-rd-flex"},t,o.a.createElement("section",{className:"pr-rd-description pr-rd-content-block"},n,a),r),i)}(Se=o.a.forwardRef(Se)).defaultProps={showMedia:!0,showFlaggingAndHelpfulVoting:!0};var je=Se;r.d(t,"a",function(){return je})},function(e,t,r){"use strict";var n=r(2),a=r.n(n),i=r(7),o=r.n(i),s=r(0),c=r.n(s),l=(r(9),r(17)),u=r(3),p=r.n(u),d=r(105),f=r(119),m=r(4),h=r(62),v=r(124),g=r(11),b=r(1),y=r(13),_=r(10),w=r.n(_),E=function(e){function t(t){var r;return r=e.call(this,t)||this,a()(p()(r),"elementToFocusRef",c.a.createRef(null)),a()(p()(r),"handleClose",function(e,t){r.setState({closed:!0}),r.props.onClose(e,t)}),r.state={isAutoSubmitting:Object(v.a)(r.props.config,r.props.purchase),closed:!1},r}o()(t,e);var r=t.prototype;return r.componentDidUpdate=function(e,t){!1===e.isComplete&&!0===this.props.isComplete&&(Object(y.g)(Object(b.a)("ryp.thank_you.header",this.props.localizations.write_a_review)),this.elementToFocusRef.current&&this.elementToFocusRef.current.focus()),!0===this.state.isAutoSubmitting&&!0===this.props.isComplete&&(this.elementToFocusRef.current&&this.elementToFocusRef.current.focus(),Object(y.g)(Object(b.a)("ryp.thank_you.header",this.props.localizations.write_a_review)),this.setState({isAutoSubmitting:!1}))},r.render=function(){var e,t=this,r=this.props,n=r.id,a=r.isComplete,i=r.localizations,o=r.product,s=r.progressiveInfo,l=r.order,u=m.k(o),p=Object(b.a)("ryp.purchase.dismiss_button_label",i.write_a_review),f=s&&!1!==s.is_progressive_type&&"false"!==s.is_progressive_type&&Number(s.current_step)>0;return u&&(e=c.a.createElement("img",{className:a?"ryp-product-img_complete":"ryp-product-img",src:u,alt:Object(b.a)("collect_display.media.product_image",i)})),a?c.a.createElement("div",{className:w()("ryp-purchase ryp-purchase--complete",{"ryp-purchase--closed":this.state.closed})},e,c.a.createElement("div",{className:"ryp-purchase_thank-you-text"},Object(b.a)("ryp.thank_you.header",i.write_a_review)),c.a.createElement("button",{type:"button",className:"ryp-purchase_close-btn","aria-label":p,ref:this.elementToFocusRef,onClick:function(){return t.handleClose(o,n)}},c.a.createElement(h.a,{lineStrokeSize:"2",circleOutline:!1}))):c.a.createElement("div",{className:w()("ryp-purchase col-sm-12",{"ryp-purchase--closed":this.state.closed})},f&&c.a.createElement("button",{type:"button",className:"ryp-purchase--close","aria-label":Object(b.a)("ryp.purchase.close_button_label",i.write_a_review),onClick:function(){return t.handleClose(o,n)}},c.a.createElement(h.a,{lineStrokeSize:"1",circleOutline:!1})),c.a.createElement("div",{className:"col-sm-3"},e),c.a.createElement("div",{className:"col-sm-9"},c.a.createElement(g.a,{importance:1,className:"ryp-product-title"},o.name),null!=l&&c.a.createElement("div",{className:"ryp-order-text"},c.a.createElement(d.a,null),c.a.createElement("span",{className:"ryp-purchased-date"},i.write_a_review["ryp.purchase.purchased_date"].replace("{0}",m.p(i.powerreviews.date_format||"mm/dd/yyyy",new Date(l.order_date).toString()))),c.a.createElement("div",{className:"pr-break"}))),this.props.children)},t}(f.a),O=r(8),S=r.n(O),C=r(64),j=r(5),x=r(95),k=r(166),I=r(170),P=r(90),T=r(122),R=r(167),N=r(168),A=r(111),D=r(75),L=function(e){return e.pwrMap(function(e){var t=(void 0===e?{}:e).product_information,r=(t=void 0===t?{}:t).page_id;return void 0===r?"":r}).join(",")};function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function F(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach(function(t){a()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var z=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=e.call.apply(e,[this].concat(n))||this,a()(p()(t),"state",{errorRefocusEligible:!1,currentTextFieldValues:{}}),a()(p()(t),"firstFieldRef",c.a.createRef()),a()(p()(t),"focus",function(){var e;null===(e=t.firstFieldRef.current)||void 0===e||e.focus()}),a()(p()(t),"waitForIovationAndSubmit",function(){window.ioGetBlackbox||0===t.interval?(t.intervalID&&window.clearInterval(t.intervalID),t.onSubmit()):t.interval=t.interval-1}),t}o()(t,e);var r=t.prototype;return r.componentDidMount=function(){var e=this.props,t=e.config,r=e.purchase;Object(v.a)(t,r)&&(this.interval=10,this.intervalID=setInterval(this.waitForIovationAndSubmit,300))},r.componentDidUpdate=function(e){this.state.errorRefocusEligible&&!m.c(this.props.fields)&&this.errorRefocus()},r.componentWillUnmount=function(){this.intervalID&&window.clearInterval(this.intervalID)},r.onSubmit=function(e){var t=this;e&&e.preventDefault();var r=this.props,n=r.requestInProgress,a=r.isLoading,i=r.progressiveInfo,o=r.config,s=r.product,c=r.merchant,l=r.fields,u=r.purchaser,p=r.submit,d=r.purchases,f=r.id,h=r.validateForm;if(this.setState({errorRefocusEligible:!0}),!n&&!a){var v=i&&i.is_progressive_type,g=i&&i.is_last_step,b=F(F({},o),{},{page_id:s.page_id,review_type:"ryp"});s.variant?b.page_id_variant=s.variant:b.page_id_variant=null;var y=l.pwrMap(function(e){return t.state.currentTextFieldValues[e.id]?F(F({},e),{},{value:t.state.currentTextFieldValues[e.id].value}):e});if(m.c(y)){if(y=y.filter(function(e){return!!e.value||!!e.values}).pwrMap(function(e){return F(F({field_type:e.field_type,id:e.id,key:e.key,label:e.label},e.value&&{value:e.value}),e.values&&{values:e.values})}),!i||i.is_progressive_type&&0===Number(i.current_step)||!i.is_progressive_type){var _=o.nickname||Object(j.b)("pr_name");_?y.push({field_type:"simple",key:"name",value:decodeURI(_)}):u.name&&"string"==typeof u.name&&y.push({field_type:"simple",key:"name",value:u.name.split(" ")[0]})}!function(e,t,r,n,a){void 0===a&&(a={});var i=a,o=i.is_progressive_type,s=i.current_step;A.b(D.a.RYP.social_measurement_id,{locale:e.locale,pageId:n,merchantId:e.merchant_id,merchantGroupId:e.merchant_group_id,siteId:e.site_id,displayVersion:parseInt(window.POWERREVIEWS.UI_VERSION,0),eventFlow:D.a.RYP.complete,rypSort:t.configuration.ryp_sort_order,rypPageIds:L(r),step:o?s:void 0})}(o,c,d,s.page_id,i),p(F(F({},o),{},{review_type:"ryp",page_id:s.page_id,page_id_variant:s.variant,purchase_merchant_id:this.props.merchantID}),y,i,window.ioGetBlackbox?window.ioGetBlackbox().blackbox:null,f).then(function(){t.firstFieldRef.current&&v&&!g&&t.firstFieldRef.current.focus()})}else h(o,f)}},r.onKeyDown=function(e){13===e.keyCode&&this.onSubmit()},r.errorRefocus=function(){var e=document.getElementsByClassName("pr-invalid-field")[0];e&&e.focus(),this.setState({errorRefocusEligible:!1})},r.pwrMapFieldsToComponents=function(e,t){var r=this,n=["rating","comments","headline","media_image"],a=n.pwrMap(function(t){return e.filter(function(e){return e.key===t})[0]}).filter(function(e){return void 0!==e}),i=e.filter(function(e){return n.pwrMap(function(t){return e.key!==t}).pwrReduce(function(e,t){return e&&t})}),o=Number(t)>0?i:a;return[].concat(o).pwrMap(function(e,t){var n=function(e){0===t&&(r.firstFieldRef.current=e)},a=function(t){var n;"TextBox"!==e.input_type&&"TextArea"!==e.input_type?r.props.updateField(e.id,t):r.setState({currentTextFieldValues:F(F({},r.state.currentTextFieldValues),{},(n={},n[e.id]=t,n))})};if("TextBox"===e.input_type)return c.a.createElement(x.a,{ref:n,error:e.error_message,fieldIndex:t,id:"pr-"+e.key+"-"+r.props.id,isRequired:e.required,requiredText:Object(b.a)("write_a_review.required_label",r.props.localizations.write_a_review),isValid:e.isValid,key:e.id,label:e.label,maxCharacters:e.max_length,placeholder:e.helper_text,preset:e.value,value:e.value,handleFieldUpdate:a,localizations:r.props.localizations});if("TextArea"===e.input_type)return c.a.createElement(I.a,{ref:n,count:e.count,error:e.error_message,fieldIndex:t,id:"pr-"+e.key+"-"+r.props.id,isRequired:e.required,requiredText:Object(b.a)("write_a_review.required_label",r.props.localizations.write_a_review),preset:e.value,isValid:e.isValid,key:e.id,label:e.label,placeholder:e.helper_text,localizations:r.props.localizations,handleFieldUpdate:a});if("Stars"===e.input_type)return c.a.createElement(k.a,{ref:n,key:e.id,id:"pr-"+e.key+"-"+r.props.id,label:r.props.product.name,preset:e.value,isRequired:e.required,requiredText:Object(b.a)("write_a_review.required_label",r.props.localizations.write_a_review),isValid:e.isValid,isVisible:e.isVisible,error:e.error_message,handleFieldUpdate:a,localizations:r.props.localizations});if("composite"===e.field_type&&"Image"===e.composite_type)return c.a.createElement(P.a,{ref:n,mediaType:e.composite_type,count:e.count,error:e.error_message,fieldIndex:t,files:e.files,id:"pr-"+e.key+"-"+r.props.id,isRequired:e.required,requiredText:Object(b.a)("write_a_review.required_label",r.props.localizations.write_a_review),isValid:e.isValid,isVisible:e.isVisible,key:e.id,label:e.prompt||e.label,subfields:e.fields,validationType:e.validationType,values:e.values,autoSubmit:!0,localizations:r.props.localizations,config:r.props.config,merchantProperties:r.props.merchant.configuration,handleFieldUpdate:a});if("AgeDisclosure"===e.input_type||"RadioVertical"===e.input_type||"RadioHorizontal"===e.input_type||"RadioHorizontalLinked"===e.input_type){var i=e.choices||[];return c.a.createElement(T.a,{ref:n,choices:i,error:e.error_message,id:"pr-"+e.key+"-"+r.props.id,isRequired:e.required,requiredText:Object(b.a)("write_a_review.required_label",r.props.localizations.write_a_review),isValid:e.isValid,isVisible:e.isVisible,key:e.id,label:e.label,inputType:e.input_type,handleFieldUpdate:a,localizations:r.props.localizations})}if("CheckboxVertical"===e.input_type){var o=e.choices||[];return c.a.createElement(R.a,{ref:n,choices:o,error:e.error_message,id:"pr-"+e.key+"-"+r.props.id,isRequired:e.required,requiredText:Object(b.a)("write_a_review.required_label",r.props.localizations.write_a_review),isValid:e.isValid,isVisible:e.isVisible,key:e.id,label:e.label,values:e.values,allowCustomTags:!1,handleFieldUpdate:a,localizations:r.props.localizations})}if("Dropdown"===e.input_type){var s=e.choices||[];return c.a.createElement(N.a,{ref:n,tags:s,error:e.error_message,id:"pr-"+e.key+"-"+r.props.id,isRequired:e.required,requiredText:Object(b.a)("write_a_review.required_label",r.props.localizations.write_a_review),isValid:e.isValid,isVisible:e.isVisible,key:e.id,label:e.label,preset:e.value,allowCustomTags:!1,handleFieldUpdate:a,localizations:r.props.localizations})}return null})},r.render=function(){var e=Object(b.a)("submit_review_button_label",this.props.localizations.write_a_review),t=this.props.progressiveInfo&&this.props.progressiveInfo.is_progressive_type;t&&!this.props.progressiveInfo.is_last_step&&(e=Object(b.a)("continue",this.props.localizations.write_a_review));var r=t&&0===Number(this.props.progressiveInfo.current_step)||!t?"ryp-stars":"ryp-progressive-field",n=this.props.localizations?Object(b.a)("legal",this.props.localizations.write_a_review):"",a=this.pwrMapFieldsToComponents(this.props.fields,t?this.props.progressiveInfo.current_step:0),i=this.props.fields.filter(function(e){return!!e.value}).length>0||this.props.progressiveInfo&&this.props.progressiveInfo.is_progressive_type&&Number(this.props.progressiveInfo.current_step)>0;return c.a.createElement("div",null,c.a.createElement("div",{className:"col-sm-9 ryp-first-q "+r},a[0]),c.a.createElement("div",{className:"col-sm-12 "+(i?"":"pr-hide")},a.slice(1),c.a.createElement("div",{className:"ryp-footer"},c.a.createElement(C.a,{showLegal:!0,legalText:n,disabled:this.props.requestInProgress||this.props.isLoading,onClick:this.onSubmit.pwrBind(this),onKeyDown:this.onKeyDown.pwrBind(this)},e))))},t}(c.a.Component),V=c.a.forwardRef(function(e,t){return c.a.createElement(z,S()({},e,{ref:t}))}),U=r(91),q=r(67),W=r(66),B=function(e){function t(t){var r;return r=e.call(this,t)||this,a()(p()(r),"closeTimeout",null),a()(p()(r),"activateFormRef",c.a.createRef()),r.state={done:!1,indexToFocus:null},r.completedPurchases=r.completedPurchases.pwrBind(p()(r)),r}o()(t,e);var r=t.prototype;return r.componentDidMount=function(){!function(e,t,r){A.b(D.a.RYP.social_measurement_id,{locale:e.locale,merchantId:e.merchant_id,merchantGroupId:e.merchant_group_id,siteId:e.site_id,displayVersion:parseInt(window.POWERREVIEWS.UI_VERSION,0),eventFlow:D.a.RYP.start,rypSort:t.configuration.ryp_sort_order,rypPageIds:L(r)})}(this.props.config,this.props.merchant,this.props.purchases)},r.componentDidUpdate=function(e,t){var r,n,a=this;(this.completedPurchases().length===this.props.purchases.length&&setTimeout(function(){return a.setState({done:!0})},3e3),t.indexToFocus!==this.state.indexToFocus||0===t.indexToFocus&&0===this.state.indexToFocus&&e.purchases.length!==this.props.purchases.length)&&(null===(r=this.activateFormRef)||void 0===r||null===(n=r.current)||void 0===n||n.focus())},r.componentWillUnmount=function(){this.closeTimeout&&clearTimeout(this.closeTimeout)},r.completedPurchases=function(e){return void 0===e&&(e=this.props.purchases),e?e.filter(function(e){return e.isComplete}):[]},r.onClose=function(e,t){var r=this;this.closeTimeout=setTimeout(function(){r.props.close(r.props.config,e.page_id,e.variant,t).then(function(){r.setState({indexToFocus:r.props.purchases.length===t?0:t})})},300)},r.render=function(){var e=this,t=this.props,r=t.config,n=t.localizations,a=t.merchant,i=t.purchases,o=t.validateForm,s=t.updateField,l=t.submit,u=a.return_url||(window.location.origin?window.location.origin+"/":window.location.protocol+"/"+window.location.host),p=!!Object(j.b)("enable_enhanced_content_security",a.configuration,r,!0),d=0===i.length?Object(b.a)("ryp.no_purchases.header",n.write_a_review):Object(b.a)("ryp.complete.header",n.write_a_review),f=0===i.length?Object(b.a)("ryp.no_purchases.call_to_action",n.write_a_review):Object(b.a)("ryp.complete.call_to_action",n.write_a_review);if(0===i.length||this.state.done)return c.a.createElement("div",{className:"ryp-purchase text-center"},c.a.createElement("p",null,c.a.createElement("strong",null,d)),!p&&c.a.createElement("a",{role:"button",className:"pr-btn pr-btn-default pr-btn-review pr-accessible-btn",href:u},f));var m=i.pwrMap(function(t,u){var p=t.product_information.page_id+"-"+(t.product_information.variant||"");return c.a.createElement("li",{key:p},c.a.createElement(E,{id:u,config:r,localizations:n,progressiveInfo:t.progressive_info,product:t.product_information,order:t.order_information||null,isComplete:t.isComplete,purchase:t,onClose:function(t,r){return e.onClose(t,r)}},c.a.createElement(V,{id:u,isLoading:e.props.isLoading,fields:t.review_template,config:r,merchant:a,merchantID:t.merchant_id,localizations:n,purchaser:e.props.purchaser,progressiveInfo:t.progressive_info,product:t.product_information,purchase:t,purchases:i,requestInProgress:t.review_template.filter(function(e){return e.syncStatus===q.c.IN_PROGRESS}).length>0||t.isLoading,onClose:function(t,r){return e.onClose(t,r)},validateForm:o,submit:l,updateField:function(e,t){s(r,u,e,t)},ref:function(t){u===e.state.indexToFocus&&(e.activateFormRef.current=t)}})))});return c.a.createElement("div",{className:"pr-ryp-list"+(this.props.isAutoSubmitting?" pr-hide":"")},c.a.createElement("ul",null,m))},t}(c.a.Component),H={validateForm:U.f,updateField:U.e,submit:U.d,close:U.a},K=Object(l.b)(null,H)(Object(W.a)(B)),G=r(48),Q=r(157),Y=r(6),$=r(25),J=r(52);function X(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?X(Object(r),!0).forEach(function(t){a()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var ee=function(e){function t(){return e.apply(this,arguments)||this}o()(t,e);var r=t.prototype;return r.componentDidMount=function(){this.props.getTemplate(this.props.config)},r.componentDidUpdate=function(e){this.props.config.on_render&&!e.purchases&&this.props.purchases&&$.a.onWriteComponentRender(Y.u.ReviewYourPurchases,this.props)},r.render=function(){return this.props.purchases||this.props.error?this.props.config.page_id&&(this.props.error||this.props.purchases&&0===this.props.purchases.length)?c.a.createElement(Q.default,{config:this.props.config}):this.props.error?c.a.createElement("div",{className:"p-w-r"},c.a.createElement(J.a,{isVisible:!0,message:this.props.error.detail||this.props.error.message})):c.a.createElement("div",{className:"p-w-r","data-testid":"ryp"},this.props.isAutoSubmitting&&c.a.createElement(G.a,{isVisible:!0}),c.a.createElement(g.a,{importance:1,className:this.props.isAutoSubmitting?"pr-hide":""},Object(b.a)("ryp.header",this.props.localizations.write_a_review)),c.a.createElement(g.b,null,c.a.createElement(K,{merchant:this.props.merchant_information,purchaser:this.props.purchaser_information,purchases:this.props.purchases,localizations:this.props.localizations,config:this.props.config,isLoading:this.props.isLoading,isAutoSubmitting:this.props.isAutoSubmitting}))):c.a.createElement("div",{className:"p-w-r"},c.a.createElement(G.a,{isVisible:!0}))},t}(c.a.Component);t.a=Object(l.b)(function(e){return e},function(e){return{getTemplate:function(t){return e(Object(U.c)(t))}}},function(e,t,r){var n=m.t(r.config),a=e.ReviewYourPurchases[n];return Z(Z(Z({},t),r),{},{purchases:a?a.purchases:null,error:a?a.error:null,localizations:a?a.localizations:null,merchant_information:a?a.merchant_information:null,purchaser_information:a?a.purchaser_information:null,isLoading:a?a.isLoading:null,isAutoSubmitting:a?a.isAutoSubmitting:null,rypKey:n})})(ee)},function(e,t,r){"use strict";var n=r(8),a=r.n(n),i=r(3),o=r.n(i),s=r(7),c=r.n(s),l=r(2),u=r.n(l),p=r(0),d=r.n(p),f=(r(9),r(10)),m=r.n(f),h=r(70),v=r(4),g=r(1),b=r(78),y=r(123),_=r(106),w=function(e){function t(){return e.apply(this,arguments)||this}return c()(t,e),t.prototype.render=function(){return d.a.createElement("svg",a()({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"17",focusable:"false"},this.props),d.a.createElement("g",{fill:"#767676",fillRule:"evenodd"},d.a.createElement("path",{d:"M17.022 0L2.68 4.246 0 12.005 6.659 17 21 12.77 17.022 0zM2.015 11.422l2.014-5.827L15.88 2.08l2.987 9.574L7.017 15.17l-5.002-3.747z"}),d.a.createElement("path",{d:"M3.889 10.045c.43 0 .778.346.778.773a.775.775 0 0 1-.778.773.775.775 0 0 1-.778-.773c0-.427.348-.773.778-.773"})))},t}(d.a.Component),E=r(11),O=r(76),S=function(e){var t=e.productImageUrl,r=e.productName,n=e.productUrl,a=e.localizations,i=r?r+" "+Object(g.a)("collect_display.media.product_image",a):Object(g.a)("collect_display.media.product_image",a);return d.a.createElement("li",{className:"pr-shoppable__list-item"},d.a.createElement("a",{className:"pr-shoppable pr-shoppable__anchor",href:n},t?d.a.createElement("img",{className:"pr-shoppable__image",alt:i,src:Object(v.h)(t,"d_common:shopping-tag-grey-background.svg,c_fit,w_40,h_40")}):null,r&&d.a.createElement("span",{className:"pr-shoppable__text"},r)))},C=function(e){var t=e.showShoppableLink,r=e.media,n=e.localizations,a=r.product_image_url,i=r.product_name,o=r.product_url,s=Object(p.useRef)(Object(O.a)()).current;return null==i&&null==a?null:o&&t?d.a.createElement("section",{"aria-labelledby":s},d.a.createElement(E.a,{id:s,className:"pr-shop-all",importance:1},d.a.createElement(w,{"aria-hidden":"true"}),Object(g.a)("review_display.4.0.modal.shop_all",n)),d.a.createElement("ul",{className:"pr-shoppable__list"},d.a.createElement(S,{productImageUrl:a,productName:i,localizations:n,productUrl:o}),r.associated_products?r.associated_products.pwrMap(function(e,t){return d.a.createElement(S,{key:e.product_url+"-"+t,productImageUrl:e.product_image_url,productName:e.product_name,localizations:n,productUrl:e.product_url})}):null)):null},j=r(32),x=r(44),k=(r(28),r(379),function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=e.call.apply(e,[this].concat(n))||this,u()(o()(t),"renderFooter",function(){var e=t.props,r=e.localizations,n=e.flaggedContent,i=e.helpfulContent,o=e.unhelpfulContent,s=e.media,c=e.onHelpfulVoting,l=e.openFlaggingForm,u=e.allowHelpfulVoting,p=e.primarySlide,f=e.enableFlaggingAndVoting,h=s.id,v=s.helpful_votes,_=s.not_helpful_votes,w=s.type,E=f&&"image"===w,O=n.indexOf(h)>-1,S=i.indexOf(h)>-1,x=o.indexOf(h)>-1,k=S||x,I=m()("pr-helpful-btn pr-helpful-yes",{"pr-helpful-active":S}),P=m()("pr-helpful-btn pr-helpful-no",{"pr-helpful-active":x}),T=S?v+1:v,R=x?_+1:_;return d.a.createElement("footer",{className:"pr-media-card-footer"},d.a.createElement("div",{className:"pr-media-card-footer-sect1"},d.a.createElement(C,a()({},t.props,{footer:!0})),E&&u&&d.a.createElement("div",{className:"pr-media-card-footer-helpful-action"},d.a.createElement("button",{type:"button",title:k?"already voted":"click for helpful vote","aria-label":k?"already voted":"click for helpful vote",className:I,tabIndex:p?"0":"-1",onClick:function(){return c(h,j.d)},disabled:k},d.a.createElement(b.a,{thumbDirection:"up"}),d.a.createElement("span",{className:"pr-helpful-count"},T)),d.a.createElement("button",{type:"button",title:k?"already voted":"click for unhelpful vote","aria-label":k?"already voted":"click for unhelpful vote",className:P,tabIndex:p?"0":"-1",onClick:function(){return c(h,j.i)},disabled:k},d.a.createElement(b.a,{thumbDirection:"down"}),d.a.createElement("span",{className:"pr-helpful-count"},R)))),d.a.createElement("div",{className:"pr-media-card-footer-sect2"},E&&d.a.createElement("div",{className:"pr-media-card-footer-flagging"},O?d.a.createElement("div",{className:"pr-media-card-footer-flagging-isflagged"},d.a.createElement(y.a,null),d.a.createElement("p",{className:"pr-flag-image-thankyou"},Object(g.a)("review_display.4.0.modal.is_flagged",r))):d.a.createElement("a",{href:"#",tabIndex:p?"0":"-1",role:"button",onClick:function(e){return l(e,h)}},Object(g.a)("review_display.4.0.modal.flag_image",r)))))}),t}c()(t,e);var r=t.prototype;return r.renderCardContent=function(e,t){var r=this;return d.a.createElement("div",{className:"pr-media-card-content-text"},e.rating&&d.a.createElement("div",{className:"pr-media-card-content-text-stars"},d.a.createElement(h.a,{ratingValue:e.rating,fullStarType:"starFillOrange",emptyStarType:"starStrokeOrange",localizations:{}})),e.headline&&d.a.createElement("p",{className:"pr-media-card-content-text-headline"},e.headline),this.props.allowReadReview&&e.review_id&&d.a.createElement("button",{className:"pr-media-card-content-text-readreview",type:"button",onClick:function(){return r.props.onReadReviewFromGallery(e.review_id)},disabled:!this.props.primarySlide},Object(g.a)("review_display.4.0.modal.read_review",t)),(e.comments||e.caption)&&d.a.createElement("p",{className:"pr-media-card-content-text-comments"},'"',e.comments||e.caption,'"'),e.created_date&&d.a.createElement("p",{className:"pr-media-card-content-text-date"},Object(v.v)(e.created_date,{day_ago:Object(g.a)("review_display.4.0.common.day_ago",t),days_ago:Object(g.a)("review_display.4.0.common.days_ago",t),month_ago:Object(g.a)("review_display.4.0.common.month_ago",t),months_ago:Object(g.a)("review_display.4.0.common.months_ago",t),year_ago:Object(g.a)("review_display.4.0.common.year_ago",t),years_ago:Object(g.a)("review_display.4.0.common.years_ago",t)})),e.disclosure_code&&d.a.createElement("p",{className:"pr-media-card-content-text-disclosure"},Object(g.a)("review_display.4.0.disclosure."+e.disclosure_code,t)),d.a.createElement(C,this.props))},r.renderInstagramContent=function(e,t){return d.a.createElement("div",{className:"pr-media-card-content-instagram"},d.a.createElement("div",{className:"pr-media-card-content-instagram-profile"},d.a.createElement("div",{className:"pr-media-card-content-instagram-profile-info"},d.a.createElement("span",{className:"pr-media-card-content-instagram-profile-info-name"},d.a.createElement("a",{className:this.props.primarySlide?void 0:"pr-hide",href:e.profile_url,target:"_"},e.username))),d.a.createElement(_.a,{className:"pr-media-card-content-instagram-profile-icon"})),d.a.createElement("div",{className:"pr-media-card-content-instagram-caption"},d.a.createElement("span",null,e.caption)),e.created_date&&d.a.createElement("span",{className:"pr-media-card-content-instagram-date"},Object(v.v)(e.created_date,{day_ago:Object(g.a)("review_display.4.0.common.day_ago",t),days_ago:Object(g.a)("review_display.4.0.common.days_ago",t),month_ago:Object(g.a)("review_display.4.0.common.month_ago",t),months_ago:Object(g.a)("review_display.4.0.common.months_ago",t),year_ago:Object(g.a)("review_display.4.0.common.year_ago",t),years_ago:Object(g.a)("review_display.4.0.common.years_ago",t)})),d.a.createElement(C,this.props))},r.render=function(){var e=this.props,t=e.media,r=e.media,n=r.type,a=r.image,i=r.caption,o=r.youtubeID,s=e.localizations,c=e.className,l=e.primarySlide,u=e.forwardedRef,p="social_instagram"===t.source?this.renderInstagramContent(t,s):this.renderCardContent(t,s),f=i||Object(g.a)("collect_display.collect.media.media_caption",s);return d.a.createElement("section",{className:m()("pr-media-card",c),role:"group","aria-roledescription":"slide","aria-label":this.props["aria-label"],ref:u,tabIndex:"-1"},d.a.createElement("div",{"aria-live":l?"polite":"off","aria-label":l?f:void 0,className:"pr-media-card-media"},"image"===n?d.a.createElement(x.a,{src:a,alt:f}):null,"yt"===n?d.a.createElement("iframe",{height:"400",width:"100%",src:"https://youtube.com/embed/"+o,title:"YouTube video "+o}):null,"cvideo"===n?d.a.createElement(x.b,{src:a,className:this.props.primarySlide?void 0:"pr-hide",height:"100%",width:"auto",controls:!0,preload:"metadata"}):null),d.a.createElement("div",{className:"pr-media-card-content"},p,this.renderFooter()))},t}(p.Component));u()(k,"defaultProps",{className:"",allowReadReview:!0});t.a=k},function(e,t,r){"use strict";var n=r(3),a=r.n(n),i=r(7),o=r.n(i),s=r(2),c=r.n(s),l=r(0),u=r.n(l),p=(r(9),r(81)),d=r(10),f=r.n(d),m=r(122),h=r(20),v=r(18),g=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=e.call.apply(e,[this].concat(n))||this,c()(a()(t),"state",{selectedOption:""}),c()(a()(t),"_handleClickItem",function(e){for(var r=t.props.choices[e],n=t.props.choices.slice(0),a=[],i=0;i<n.length;i++)n[i].checked=!1;n[e].checked=!0,a.push({id:r.id,value:r.value}),t.props.handleChange(a,n),t.forceUpdate()}),c()(a()(t),"_handleKeyDown",function(e,r){32!==r.keyCode&&13!==r.keyCode||t._handleClickItem(e)}),t}o()(t,e);var r=t.prototype;return r.handleChange=function(e){var t=this.props.choices[e];this.setState({selectedOption:t.checked})},r.render=function(){if(0===this.props.choices.length)return u.a.createElement("div",null);var e=this.getID(),t=this.getHelperText(),r="pr-btn-group btn-group btn-toggle";r+=" btn-group-"+this.props.choices.length+"-count",r+=" "+this.getInputTypeClassName();for(var n=[],a=0;a<this.props.choices.length;a++){var i=this.props.choices[a],o="btn-group-btn-"+a,s=i.id,c=i.value,l=i.checked?"pr-btn pr-btn-default active":"pr-btn pr-btn-default";this.props.isValid||0!==a||(l+=" pr-invalid-field"),n.push(u.a.createElement(u.a.Fragment,{key:o},u.a.createElement("input",{id:s,name:e,className:"sr-only",checked:this.state.selectedOption===i.checked,type:"radio","aria-invalid":!this.props.isValid,onChange:this.handleChange.pwrBind(this,a),onKeyDown:this._handleKeyDown.pwrBind(this,a),onClick:this._handleClickItem.pwrBind(this,a)}),u.a.createElement("label",{htmlFor:s,className:l,dangerouslySetInnerHTML:{__html:c}})))}return u.a.createElement("div",{className:f()("pr-form-group form-group",{"pr-has-error":!this.props.isValid})},u.a.createElement("fieldset",{id:e},u.a.createElement(v.b,null,u.a.createElement("legend",{className:h.a.getLabelClass(this.props)},u.a.createElement("span",null,this.props.label,h.a.getRequiredIndicator(this.props))),this.props.isValid?null:u.a.createElement(v.a,null)),t,u.a.createElement("div",{className:r,role:"radiogroup"},n)))},t}(m.a),b=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=e.call.apply(e,[this].concat(n))||this,c()(a()(t),"state",{defaultQuestionType:t.props.choices.length>0?t.props.choices[0].value:"product",questionType:null,category:null}),c()(a()(t),"handleTypeChange",function(e){t.setState({questionType:e[0].id},t.updateStore)}),c()(a()(t),"handleCategoryChange",function(e){t.setState({category:e[0].id},t.updateStore)}),c()(a()(t),"updateStore",function(){var e={type:t.state.questionType,category:t.state.category},r={type:t.state.questionType,category:t.calculateCategoryChoices()};t.updateCollection(t.props.fieldIndex,e,r)}),c()(a()(t),"calculateTypeChoices",function(){return t.props.choices.pwrMap(function(e){return{value:e.label,id:e.value,checked:e.value===t.state.questionType}})}),c()(a()(t),"calculateCategoryChoices",function(){var e=t.state.questionType||t.state.defaultQuestionType;return t.props.choices.length<1?[]:t.props.choices.filter(function(t){return t.value===e})[0].choices.pwrMap(function(e){return{id:e.value,value:e.label,checked:e.value===t.state.category}})}),t}return o()(t,e),t.prototype.render=function(){var e,t=this.props.choices.length<=1;return e=!t&&this.state.questionType&&this.props.showCategories?[u.a.createElement(g,{key:"etgb-1",id:"questionType",fieldIndex:"questionType",inputType:"RadioHorizontal",label:this.props.typeLabel,choices:this.calculateTypeChoices(),handleChange:this.handleTypeChange,isValid:this.props.isValid,isVisible:!0,isRequired:this.props.isRequired,requiredText:this.props.requiredText}),u.a.createElement(g,{key:"etgb-2",id:"questionCategory",fieldIndex:"questionCategory",inputType:"RadioVertical",label:this.props.categoryLabel,choices:this.calculateCategoryChoices(),handleChange:this.handleCategoryChange,isValid:this.props.isValid,isVisible:!0,requiredText:this.props.requiredText})]:t&&this.props.showCategories?[u.a.createElement(g,{key:"etgb-1",id:"questionCategory",fieldIndex:"questionCategory",inputType:"RadioVertical",label:this.props.categoryLabel,choices:this.calculateCategoryChoices(),handleChange:this.handleCategoryChange,isValid:this.props.isValid,isVisible:!0,requiredText:this.props.requiredText})]:[u.a.createElement(g,{key:"etgb-1",id:"questionType",fieldIndex:"questionType",inputType:"RadioHorizontal",label:this.props.typeLabel,choices:this.calculateTypeChoices(),handleChange:this.handleTypeChange,isValid:this.props.isValid,isVisible:!0,isRequired:this.props.isRequired,requiredText:this.props.requiredText})],u.a.createElement("div",null,e)},t}(h.a),y=r(4),_=r(23),w=r(51),E=r(64),O=r(1),S=r(152),C=(r(262),r(66));function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach(function(t){c()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var k=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=e.call.apply(e,[this].concat(n))||this,c()(a()(t),"state",{fields:Object(S.b)(t.props)}),c()(a()(t),"onSubmit",function(){var e=t.props,r=e.config,n=(e.merchant,e.iovationRequired),a=e.type,i=e.isSubmitting,o=e.localizations,s=t.state.fields;if(!i){var c={},l=window.ioGetBlackbox?window.ioGetBlackbox().blackbox:null;if(l||!n)if(l&&(c.iovation_black_box=window.ioGetBlackbox().blackbox),t.validateRequiredFields(s)){if(c.question_type=s[0].values.type||s[0].choices[0].value||"",c.merchant_question_category=s[0].values.category||"",c.question_text=s[1].value||"",c.author_email=s[2].value||"",c.author_name=s[3].value||"",c.author_location=s[4].value||"",c.merchant_user_id=r.merchant_user_id||"",r.merchant_question_id&&(c.merchant_question_id=r.merchant_question_id),t.resetFieldLabels(),t.props.submitWAQData(r,c).then(function(e){e&&e.body&&e.body.question_data&&y.j("WAQ_"+w.a.COMPLETE,{question:e.body.question_data})}),document.getElementById("pr-waqwaa")){var u=document.getElementById("pr-waqwaa");u&&u.scrollIntoView&&(y.x()?u.scrollIntoView():u.scrollIntoView({block:"end",behavior:"smooth"}),document.body.scrollTop-=170)}}else setTimeout(function(){var e=document.getElementsByClassName("pr-invalid-field")[0];e&&e.focus()},0);else t.props.setSubmitErrorMessage(r,a,Object(O.a)("error.adblock_interference",o.powerreviews),!0)}}),c()(a()(t),"resetFieldLabels",function(){var e=t.state.fields.pwrMap(function(e){return e.labelChanged&&(e.label=e.originalLabel),e.exampleChanged&&(e.example=e.originalExample),e.helperTextChanged&&(e.helper_text=e.originalHelperText),e});t.setState({fields:e})}),c()(a()(t),"validateRequiredFields",function(e){var r=!0,n=[].concat(e);return n.pwrMap(function(e){return"questionTypeCategory"===e.key?e.isValid&&e.values||(e.isValid=!1,r=!1):(!e.isValid||e.required&&!e.value)&&(e.isValid=!1,r=!1),e}),t.setState({fields:n}),r}),c()(a()(t),"_handleScrollErrorIntoView",function(e){window.pwrPromise?y.F(e,500):(e.scrollIntoView&&(y.x()?e.scrollIntoView():e.scrollIntoView({block:"end",behavior:"smooth"})),window.scrollBy(0,-30))}),c()(a()(t),"handleSubmissionError",function(e){var r=[].concat(t.state.fields);e.forEach(function(e){if(e.error_code===_.a.REQUIRED_FIELD&&(r=r.pwrMap(function(t){return e.fields.indexOf(t.id)>-1&&(t.isValid=!1),t})),e.error_code===_.a.INVALID_VALUE&&(r=r.pwrMap(function(r){return"author_email"===r.id&&e.fields&&e.fields[0]&&"author_email"===e.fields[0][0]&&(r.isValid=!1,r.labelChanged=!0,r.originalLabel=r.label,r.label=t.props.localizations.product_answers.notValidEmail,r.exampleChanged=!0,r.originalExample=r.example,r.example=void 0),r})),e.error_code===_.a.RESTRICTED_WORD){var n=Object.keys(e.fields[0]);r=r.pwrMap(function(t){if(n.indexOf(t.id)>-1){var r=e.fields[0][t.id][0];t.isValid=!1,t.error_message={detail:{invalid:e.message.replace(/\.$/,":")+" "+r}}}return t})}}),t.setState({fields:r},function(){return setTimeout(function(){var e=document.getElementsByClassName("pr-invalid-field")[0];e&&(e.focus(),t._handleScrollErrorIntoView(e))},0)})}),c()(a()(t),"handleFieldUpdate",function(e,r){var n=e.value,a=e.values,i=e.isValid,o=[].concat(t.state.fields);o[r]=x(x({},o[r]),{},{value:n,values:a,isValid:i}),t.setState({fields:o})}),t}o()(t,e);var r=t.prototype;return r.componentDidUpdate=function(e){!e.errors&&this.props.errors&&this.handleSubmissionError(this.props.errors)},r.render=function(){var e,t,r=this,n=this.props,a=n.merchant,i=n.localizations,o=this.state.fields,s=!0;if(a&&a.configuration.answerbox_enable_pre_question&&o[0].values&&"service"===o[0].values.type){s=!1;var c=i.product_answers["question_wizard.pre.instruction_html"].replace(/\$\{baseUrl\}/g,"");e=u.a.createElement("div",{className:"pr-form-group form-group pr-waq-prequestion-message"},u.a.createElement("p",{className:"pr-prequestion-size",dangerouslySetInnerHTML:{__html:c}}))}else t=u.a.createElement("div",null,o.pwrMap(function(e,t){return t>0?u.a.createElement(p.a,{key:e.id,field:e,fieldIndex:t,handleFieldUpdate:r.handleFieldUpdate,localizations:i,prependID:!1,requiredText:i.product_answers["question_wizard.edit.required_label"]}):null}),u.a.createElement("p",{className:"pr-form-group form-group pr-waq-legal-text"},u.a.createElement("span",{dangerouslySetInnerHTML:{__html:Object(O.a)("question_wizard.legal",i.product_answers)||""}})),u.a.createElement(E.a,{onClick:this.onSubmit,localizations:i},Object(O.a)("question_wizard.preview.submit_button_label",i.product_answers)));var l=Object(O.a)("question_wizard.edit.required_label",i.product_answers);return u.a.createElement("form",{className:"pr-question-form",onSubmit:function(e){e.preventDefault()},"data-testid":"question-form"},u.a.createElement("p",{className:"pr-header-required",tabIndex:"0"},u.a.createElement("abbr",{className:"pr-required-indicator",title:l},"*"),u.a.createElement("span",{className:"pr-required-text"},Object(O.a)("qa_display.required_indicator",i.product_answers))),u.a.createElement(b,{showCategories:s,id:"questionTypeCategory",fieldIndex:0,typeLabel:i.product_answers["question_wizard.edit.type_of_question"],categoryLabel:i.product_answers["question_wizard.edit.choose_one"],choices:Object(S.c)(i),isRequired:!0,requiredText:l,isValid:o[0].isValid,localizations:i,handleFieldUpdate:this.handleFieldUpdate}),e,t)},t}(l.Component);t.a=Object(C.a)(k)},function(e,t,r){"use strict";var n=r(360),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?o:s[e.$$typeof]||a}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var l=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(m){var a=f(r);a&&a!==m&&e(t,a,n)}var o=u(r);p&&(o=o.concat(p(r)));for(var s=c(t),h=c(r),v=0;v<o.length;++v){var g=o[v];if(!(i[g]||n&&n[g]||h&&h[g]||s&&s[g])){var b=d(r,g);try{l(t,g,b)}catch(e){}}}return t}return t}},function(e,t,r){"use strict";(function(e,n){var a,i=r(265);a="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var o=Object(i.a)(a);t.a=o}).call(this,r(133),r(363)(e))},function(e,t,r){var n=r(71),a=r(46),i=r(179);e.exports=!n&&!a(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},function(e,t,r){var n=r(45),a=r(180),i=n["__core-js_shared__"]||a("__core-js_shared__",{});e.exports=i},function(e,t,r){var n=r(114),a=r(221);(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(57),a=r(92),i=r(184).indexOf,o=r(159);e.exports=function(e,t){var r,s=a(e),c=0,l=[];for(r in s)!n(o,r)&&n(s,r)&&l.push(r);for(;t.length>c;)n(s,r=t[c++])&&(~i(l,r)||l.push(r));return l}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(71),a=r(160),i=r(92),o=r(176).f,s=function(e){return function(t){for(var r,s=i(t),c=a(s),l=c.length,u=0,p=[];l>u;)r=c[u++],n&&!o.call(s,r)||p.push(e?[r,s[r]]:s[r]);return p}};e.exports={entries:s(!0),values:s(!1)}},function(e,t,r){"use strict";var n=r(71),a=r(46),i=r(160),o=r(224),s=r(176),c=r(63),l=r(135),u=Object.assign,p=Object.defineProperty;e.exports=!u||a(function(){if(n&&1!==u({b:1},u(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol();return e[r]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=u({},e)[r]||"abcdefghijklmnopqrst"!=i(u({},t)).join("")})?function(e,t){for(var r=c(e),a=arguments.length,u=1,p=o.f,d=s.f;a>u;)for(var f,m=l(arguments[u++]),h=p?i(m).concat(p(m)):i(m),v=h.length,g=0;v>g;)f=h[g++],n&&!d.call(m,f)||(r[f]=m[f]);return r}:u},function(e,t,r){var n=r(115),a=r(177),i=function(e){return function(t,r){var i,o,s=String(a(t)),c=n(r),l=s.length;return c<0||c>=l?e?"":void 0:(i=s.charCodeAt(c))<55296||i>56319||c+1===l||(o=s.charCodeAt(c+1))<56320||o>57343?e?s.charAt(c):i:e?s.slice(c,c+2):o-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},function(e,t,r){"use strict";var n=r(229).IteratorPrototype,a=r(161),i=r(134),o=r(116),s=r(138),c=function(){return this};e.exports=function(e,t,r){var l=t+" Iterator";return e.prototype=a(n,{next:i(1,r)}),o(e,l,!1,!0),s[l]=c,e}},function(e,t,r){"use strict";var n,a,i,o=r(230),s=r(100),c=r(57),l=r(39),u=r(114),p=l("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(a=o(o(i)))!==Object.prototype&&(n=a):d=!0),void 0==n&&(n={}),u||c(n,p)||s(n,p,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},function(e,t,r){var n=r(57),a=r(63),i=r(182),o=r(293),s=i("IE_PROTO"),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=a(e),n(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},function(e,t,r){var n=r(46);e.exports=!!Object.getOwnPropertySymbols&&!n(function(){return!String(Symbol())})},function(e,t,r){var n=r(71),a=r(80),i=r(72),o=r(160);e.exports=n?Object.defineProperties:function(e,t){i(e);for(var r,n=o(t),s=n.length,c=0;s>c;)a.f(e,r=n[c++],t[r]);return e}},function(e,t,r){var n=r(102);e.exports=n("document","documentElement")},function(e,t,r){var n=r(72),a=r(295);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,i){return n(r),a(i),t?e.call(r,i):r.__proto__=i,r}}():void 0)},function(e,t,r){"use strict";var n=r(103),a=r(63),i=r(236),o=r(237),s=r(58),c=r(139),l=r(162);e.exports=function(e){var t,r,u,p,d,f,m=a(e),h="function"==typeof this?this:Array,v=arguments.length,g=v>1?arguments[1]:void 0,b=void 0!==g,y=l(m),_=0;if(b&&(g=n(g,v>2?arguments[2]:void 0,2)),void 0==y||h==Array&&o(y))for(r=new h(t=s(m.length));t>_;_++)f=b?g(m[_],_):m[_],c(r,_,f);else for(d=(p=y.call(m)).next,r=new h;!(u=d.call(p)).done;_++)f=b?i(p,g,[u.value,_],!0):u.value,c(r,_,f);return r.length=_,r}},function(e,t,r){var n=r(72);e.exports=function(e,t,r,a){try{return a?t(n(r)[0],r[1]):t(r)}catch(t){var i=e.return;throw void 0!==i&&n(i.call(e)),t}}},function(e,t,r){var n=r(39),a=r(138),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||o[i]===e)}},function(e,t,r){var n=r(102);e.exports=n("navigator","userAgent")||""},function(e,t,r){"use strict";var n=r(117),a=r(58),i=r(103),o=function(e,t,r,s,c,l,u,p){for(var d,f=c,m=0,h=!!u&&i(u,p,3);m<s;){if(m in r){if(d=h?h(r[m],m,t):r[m],l>0&&n(d))f=o(e,t,d,a(d.length),f,l-1)-1;else{if(f>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[f]=d}f++}m++}return f};e.exports=o},function(e,t,r){var n=r(93),a=r(63),i=r(135),o=r(58),s=function(e){return function(t,r,s,c){n(r);var l=a(t),u=i(l),p=o(l.length),d=e?p-1:0,f=e?-1:1;if(s<2)for(;;){if(d in u){c=u[d],d+=f;break}if(d+=f,e?d<0:p<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:p>d;d+=f)d in u&&(c=r(c,u[d],d,l));return c}};e.exports={left:s(!1),right:s(!0)}},function(e,t,r){var n=r(159),a=r(56),i=r(57),o=r(80).f,s=r(183),c=r(331),l=s("meta"),u=0,p=Object.isExtensible||function(){return!0},d=function(e){o(e,l,{value:{objectID:"O"+ ++u,weakData:{}}})},f=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,l)){if(!p(e))return"F";if(!t)return"E";d(e)}return e[l].objectID},getWeakData:function(e,t){if(!i(e,l)){if(!p(e))return!0;if(!t)return!1;d(e)}return e[l].weakData},onFreeze:function(e){return c&&f.REQUIRED&&p(e)&&!i(e,l)&&d(e),e}};n[l]=!0},function(e,t,r){var n=r(39);t.f=n},function(e,t,r){var n=r(45);e.exports=n.pwrPromise},function(e,t,r){var n=r(72),a=r(93),i=r(39)("species");e.exports=function(e,t){var r,o=n(e).constructor;return void 0===o||void 0==(r=n(o)[i])?t:a(r)}},function(e,t,r){var n,a,i,o=r(45),s=r(46),c=r(113),l=r(103),u=r(233),p=r(179),d=r(246),f=o.location,m=o.setImmediate,h=o.clearImmediate,v=o.process,g=o.MessageChannel,b=o.Dispatch,y=0,_={},w=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},E=function(e){return function(){w(e)}},O=function(e){w(e.data)},S=function(e){o.postMessage(e+"",f.protocol+"//"+f.host)};m&&h||(m=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return _[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(y),y},h=function(e){delete _[e]},"process"==c(v)?n=function(e){v.nextTick(E(e))}:b&&b.now?n=function(e){b.now(E(e))}:g&&!d?(i=(a=new g).port2,a.port1.onmessage=O,n=l(i.postMessage,i,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||s(S)||"file:"===f.protocol?n="onreadystatechange"in p("script")?function(e){u.appendChild(p("script")).onreadystatechange=function(){u.removeChild(this),w(e)}}:function(e){setTimeout(E(e),0)}:(n=S,o.addEventListener("message",O,!1))),e.exports={set:m,clear:h}},function(e,t,r){var n=r(238);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(e,t,r){var n=r(72),a=r(56),i=r(196);e.exports=function(e,t){if(n(e),a(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,r){var n,a;!function(i,o){"use strict";void 0===(a="function"==typeof(n=function(){var e,t,r=Array.prototype,n=Object.prototype,a=Function.prototype,i=String.prototype,o=Number.prototype,s=r.slice,c=r.splice,l=r.push,u=r.unshift,p=a.call,d=n.toString,f=Array.isArray||function(e){return"[object Array]"===d.call(e)},m="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,h=Function.prototype.toString;e=function(e){if("function"!=typeof e)return!1;if(m)return function(e){try{return h.call(e),!0}catch(e){return!1}}(e);var t=d.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t};var v,g=RegExp.prototype.exec;t=function(e){return"object"==typeof e&&(m?function(e){try{return g.call(e),!0}catch(e){return!1}}(e):"[object RegExp]"===d.call(e))};var b=String.prototype.valueOf;v=function(e){return"string"==typeof e||"object"==typeof e&&(m?function(e){try{return b.call(e),!0}catch(e){return!1}}(e):"[object String]"===d.call(e))};var y=function(t){var r=d.call(t),n="[object Arguments]"===r;return n||(n=!f(t)&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&e(t.callee)),n},_=function(e){var t,r=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}();return t=r?function(e,t,r,n){!n&&t in e||Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:r})}:function(e,t,r,n){!n&&t in e||(e[t]=r)},function(r,n,a){for(var i in n)e.call(n,i)&&t(r,i,n[i],a)}}(n.hasOwnProperty);function w(e){var t=typeof e;return null===e||"undefined"===t||"boolean"===t||"number"===t||"string"===t}var E={ToInteger:function(e){var t=+e;return t!=t?t=0:0!==t&&t!==1/0&&t!==-1/0&&(t=(t>0||-1)*Math.floor(Math.abs(t))),t},ToPrimitive:function(t){var r,n,a;if(w(t))return t;if(n=t.valueOf,e(n)&&w(r=n.call(t)))return r;if(a=t.toString,e(a)&&w(r=a.call(t)))return r;throw new TypeError},ToObject:function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)},ToUint32:function(e){return e>>>0}},O=function(){};_(a,{pwrBind:function(t){var r=this;if(!e(r))throw new TypeError("Function.prototype.pwrBind called on incompatible "+r);for(var n,a=s.call(arguments,1),i=Math.max(0,r.length-a.length),o=[],c=0;c<i;c++)o.push("$"+c);return n=Function("binder","return function ("+o.join(",")+"){ return binder.apply(this, arguments); }")(function(){if(this instanceof n){var e=r.apply(this,a.concat(s.call(arguments)));return Object(e)===e?e:this}return r.apply(t,a.concat(s.call(arguments)))}),r.prototype&&(O.prototype=r.prototype,n.prototype=new O,O.prototype=null),n}});var S=p.pwrBind(n.hasOwnProperty),C=function(){var e=[1,2],t=e.splice();return 2===e.length&&f(t)&&0===t.length}();_(r,{splice:function(e,t){return 0===arguments.length?[]:c.apply(this,arguments)}},!C);var j=function(){var e={};return r.splice.call(e,0,0,1),1===e.length}();_(r,{splice:function(e,t){if(0===arguments.length)return[];var r=arguments;return this.length=Math.max(E.ToInteger(this.length),0),arguments.length>0&&"number"!=typeof t&&((r=s.call(arguments)).length<2?r.push(this.length-e):r[1]=E.ToInteger(t)),c.apply(this,r)}},!j);var x=1!==[].unshift(0);_(r,{unshift:function(){return u.apply(this,arguments),this.length}},x),_(Array,{isArray:f});var k=Object("a"),I="a"!==k[0]||!(0 in k),P=function(e){var t=!0,r=!0;if(e){try{e.call("foo",function(e,r,n){"object"!=typeof n&&(t=!1)})}catch(e){t=!1}e.call([1],function(){r="string"==typeof this},"x")}return!!e&&t&&r};_(r,{forEach:function(t){var r=E.ToObject(this),n=I&&v(this)?this.split(""):r,a=arguments[1],i=-1,o=n.length>>>0;if(!e(t))throw new TypeError;for(;++i<o;)i in n&&t.call(a,n[i],i,r)}},!P(r.forEach)),_(r,{pwrMap:function(t){var r=E.ToObject(this),n=I&&v(this)?this.split(""):r,a=n.length>>>0,i=Array(a),o=arguments[1];if(!e(t))throw new TypeError(t+" is not a function");for(var s=0;s<a;s++)s in n&&(i[s]=t.call(o,n[s],s,r));return i}},!P(r.pwrMap)),_(r,{filter:function(t){var r,n=E.ToObject(this),a=I&&v(this)?this.split(""):n,i=a.length>>>0,o=[],s=arguments[1];if(!e(t))throw new TypeError(t+" is not a function");for(var c=0;c<i;c++)c in a&&(r=a[c],t.call(s,r,c,n)&&o.push(r));return o}},!P(r.filter)),_(r,{every:function(t){var r=E.ToObject(this),n=I&&v(this)?this.split(""):r,a=n.length>>>0,i=arguments[1];if(!e(t))throw new TypeError(t+" is not a function");for(var o=0;o<a;o++)if(o in n&&!t.call(i,n[o],o,r))return!1;return!0}},!P(r.every)),_(r,{some:function(t){var r=E.ToObject(this),n=I&&v(this)?this.split(""):r,a=n.length>>>0,i=arguments[1];if(!e(t))throw new TypeError(t+" is not a function");for(var o=0;o<a;o++)if(o in n&&t.call(i,n[o],o,r))return!0;return!1}},!P(r.some));var T=!1;r.pwrReduce&&(T="object"==typeof r.pwrReduce.call("es5",function(e,t,r,n){return n}));_(r,{pwrReduce:function(t){var r=E.ToObject(this),n=I&&v(this)?this.split(""):r,a=n.length>>>0;if(!e(t))throw new TypeError(t+" is not a function");if(!a&&1===arguments.length)throw new TypeError("pwrReduce of empty array with no initial value");var i,o=0;if(arguments.length>=2)i=arguments[1];else for(;;){if(o in n){i=n[o++];break}if(++o>=a)throw new TypeError("pwrReduce of empty array with no initial value")}for(;o<a;o++)o in n&&(i=t.call(void 0,i,n[o],o,r));return i}},!T);var R=!1;r.pwrReduceRight&&(R="object"==typeof r.pwrReduceRight.call("es5",function(e,t,r,n){return n}));_(r,{pwrReduceRight:function(t){var r=E.ToObject(this),n=I&&v(this)?this.split(""):r,a=n.length>>>0;if(!e(t))throw new TypeError(t+" is not a function");if(!a&&1===arguments.length)throw new TypeError("pwrReduceRight of empty array with no initial value");var i,o=a-1;if(arguments.length>=2)i=arguments[1];else for(;;){if(o in n){i=n[o--];break}if(--o<0)throw new TypeError("pwrReduceRight of empty array with no initial value")}if(o<0)return i;do{o in n&&(i=t.call(void 0,i,n[o],o,r))}while(o--);return i}},!R);var N=Array.prototype.indexOf&&-1!==[0,1].indexOf(1,2);_(r,{indexOf:function(e){var t=I&&v(this)?this.split(""):E.ToObject(this),r=t.length>>>0;if(!r)return-1;var n=0;for(arguments.length>1&&(n=E.ToInteger(arguments[1])),n=n>=0?n:Math.max(0,r+n);n<r;n++)if(n in t&&t[n]===e)return n;return-1}},N);var A=Array.prototype.lastIndexOf&&-1!==[0,1].lastIndexOf(0,-3);_(r,{lastIndexOf:function(e){var t=I&&v(this)?this.split(""):E.ToObject(this),r=t.length>>>0;if(!r)return-1;var n=r-1;for(arguments.length>1&&(n=Math.min(n,E.ToInteger(arguments[1]))),n=n>=0?n:r-Math.abs(n);n>=0;n--)if(n in t&&e===t[n])return n;return-1}},A);var D=!{toString:null}.propertyIsEnumerable("toString"),L=function(){}.propertyIsEnumerable("prototype"),M=!S("x","0"),F=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],z=F.length;_(Object,{keys:function(t){var r=e(t),n=y(t),a=null!==t&&"object"==typeof t,i=a&&v(t);if(!a&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var o=[],s=L&&r;if(i&&M||n)for(var c=0;c<t.length;++c)o.push(String(c));if(!n)for(var l in t)s&&"prototype"===l||!S(t,l)||o.push(String(l));if(D)for(var u=t.constructor,p=u&&u.prototype===t,d=0;d<z;d++){var f=F[d];p&&"constructor"===f||!S(t,f)||o.push(f)}return o}});var V=Object.keys&&function(){return 2===Object.keys(arguments).length}(1,2),U=Object.keys;_(Object,{keys:function(e){return y(e)?U(r.slice.call(e)):U(e)}},!V);var q=Date.prototype.toISOString&&-1===new Date(-621987552e5).toISOString().indexOf("-000001");_(Date.prototype,{toISOString:function(){var e,t,r,n,a;if(!isFinite(this))throw new RangeError("Date.prototype.toISOString called on non-finite value.");for(n=this.getUTCFullYear(),a=this.getUTCMonth(),n+=Math.floor(a/12),e=[(a=(a%12+12)%12)+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()],n=(n<0?"-":n>9999?"+":"")+("00000"+Math.abs(n)).slice(0<=n&&n<=9999?-4:-6),t=e.length;t--;)(r=e[t])<10&&(e[t]="0"+r);return n+"-"+e.slice(0,2).join("-")+"T"+e.slice(2).join(":")+"."+("000"+this.getUTCMilliseconds()).slice(-3)+"Z"}},q);var W=!1;try{W=Date.prototype.toJSON&&null===new Date(NaN).toJSON()&&-1!==new Date(-621987552e5).toJSON().indexOf("-000001")&&Date.prototype.toJSON.call({toISOString:function(){return!0}})}catch(e){}W||(Date.prototype.toJSON=function(e){var t,r=Object(this),n=E.ToPrimitive(r);if("number"==typeof n&&!isFinite(n))return null;if("function"!=typeof(t=r.toISOString))throw new TypeError("toISOString property is not callable");return t.call(r)});var B=1e15===Date.parse("+033658-09-27T01:46:40.000Z"),H=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z")),K=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));Date.parse&&!K&&!H&&B||(Date=function(e){function t(r,n,a,i,o,s,c){var l=arguments.length;if(this instanceof e){var u=1===l&&String(r)===r?new e(t.parse(r)):l>=7?new e(r,n,a,i,o,s,c):l>=6?new e(r,n,a,i,o,s):l>=5?new e(r,n,a,i,o):l>=4?new e(r,n,a,i):l>=3?new e(r,n,a):l>=2?new e(r,n):l>=1?new e(r):new e;return u.constructor=t,u}return e.apply(this,arguments)}var r=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),n=[0,31,59,90,120,151,181,212,243,273,304,334,365];function a(e,t){var r=t>1?1:0;return n[t]+Math.floor((e-1969+r)/4)-Math.floor((e-1901+r)/100)+Math.floor((e-1601+r)/400)+365*(e-1970)}for(var i in e)t[i]=e[i];return t.now=e.now,t.UTC=e.UTC,t.prototype=e.prototype,t.prototype.constructor=t,t.parse=function(t){var n=r.exec(t);if(n){var i,o=Number(n[1]),s=Number(n[2]||1)-1,c=Number(n[3]||1)-1,l=Number(n[4]||0),u=Number(n[5]||0),p=Number(n[6]||0),d=Math.floor(1e3*Number(n[7]||0)),f=Boolean(n[4]&&!n[8]),m="-"===n[9]?1:-1,h=Number(n[10]||0),v=Number(n[11]||0);return l<(u>0||p>0||d>0?24:25)&&u<60&&p<60&&d<1e3&&s>-1&&s<12&&h<24&&v<60&&c>-1&&c<a(o,s+1)-a(o,s)&&(i=1e3*(60*((i=60*(24*(a(o,s)+c)+l+h*m))+u+v*m)+p)+d,f&&(i=function(t){return Number(new e(1970,0,1,0,0,0,t))}(i)),-864e13<=i&&i<=864e13)?i:NaN}return e.parse.apply(this,arguments)},t}(Date));Date.now||(Date.now=function(){return(new Date).getTime()});var G=o.toFixed&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0)),Q={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function(e,t){for(var r=-1;++r<Q.size;)t+=e*Q.data[r],Q.data[r]=t%Q.base,t=Math.floor(t/Q.base)},divide:function(e){for(var t=Q.size,r=0;--t>=0;)r+=Q.data[t],Q.data[t]=Math.floor(r/e),r=r%e*Q.base},numToString:function(){for(var e=Q.size,t="";--e>=0;)if(""!==t||0===e||0!==Q.data[e]){var r=String(Q.data[e]);""===t?t=r:t+="0000000".slice(0,7-r.length)+r}return t},pow:function e(t,r,n){return 0===r?n:r%2==1?e(t,r-1,n*t):e(t*t,r/2,n)},log:function(e){for(var t=0;e>=4096;)t+=12,e/=4096;for(;e>=2;)t+=1,e/=2;return t}};_(o,{toFixed:function(e){var t,r,n,a,i,o,s,c;if((t=(t=Number(e))!=t?0:Math.floor(t))<0||t>20)throw new RangeError("Number.toFixed called with invalid number of decimals");if((r=Number(this))!=r)return"NaN";if(r<=-1e21||r>=1e21)return String(r);if(n="",r<0&&(n="-",r=-r),a="0",r>1e-21)if(i=Q.log(r*Q.pow(2,69,1))-69,o=i<0?r*Q.pow(2,-i,1):r/Q.pow(2,i,1),o*=4503599627370496,(i=52-i)>0){for(Q.multiply(0,o),s=t;s>=7;)Q.multiply(1e7,0),s-=7;for(Q.multiply(Q.pow(10,s,1),0),s=i-1;s>=23;)Q.divide(1<<23),s-=23;Q.divide(1<<s),Q.multiply(1,1),Q.divide(2),a=Q.numToString()}else Q.multiply(0,o),Q.multiply(1<<-i,0),a=Q.numToString()+"0.00000000000000000000".slice(2,2+t);return t>0?(c=a.length,a=c<=t?n+"0.0000000000000000000".slice(0,t-c+2)+a:n+a.slice(0,c-t)+"."+a.slice(c-t)):a=n+a,a}},G);var Y=i.split;2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||".".split(/()()/).length>1?function(){var e=void 0===/()??/.exec("")[1];i.split=function(r,n){var a=this;if(void 0===r&&0===n)return[];if(!t(r))return Y.call(this,r,n);var i,o,s,c,u=[],p=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.extended?"x":"")+(r.sticky?"y":""),d=0;for(r=new RegExp(r.source,p+"g"),a+="",e||(i=new RegExp("^"+r.source+"$(?!\\s)",p)),n=void 0===n?-1>>>0:E.ToUint32(n),o=r.exec(a);o&&!((s=o.index+o[0].length)>d&&(u.push(a.slice(d,o.index)),!e&&o.length>1&&o[0].replace(i,function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(o[e]=void 0)}),o.length>1&&o.index<a.length&&l.apply(u,o.slice(1)),c=o[0].length,d=s,u.length>=n));)r.lastIndex===o.index&&r.lastIndex++,o=r.exec(a);return d===a.length?!c&&r.test("")||u.push(""):u.push(a.slice(d)),u.length>n?u.slice(0,n):u}}():"0".split(void 0,0).length&&(i.split=function(e,t){return void 0===e&&0===t?[]:Y.call(this,e,t)});var $=i.replace;(function(){var e=[];return"x".replace(/x(.)?/g,function(t,r){e.push(r)}),1===e.length&&void 0===e[0]})()||(i.replace=function(r,n){var a=e(n),i=t(r)&&/\)[*?]/.test(r.source);if(a&&i){return $.call(this,r,function(e){var t=arguments.length,a=r.lastIndex;r.lastIndex=0;var i=r.exec(e)||[];return r.lastIndex=a,i.push(arguments[t-2],arguments[t-1]),n.apply(this,i)})}return $.call(this,r,n)});var J=i.substr,X="".substr&&"b"!=="0b".substr(-1);_(i,{substr:function(e,t){return J.call(this,e<0&&(e=this.length+e)<0?0:e,t)}},X);var Z="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",ee="["+Z+"]",te=new RegExp("^"+ee+ee+"*"),re=new RegExp(ee+ee+"*$"),ne=i.trim&&(Z.trim()||!"​".trim());_(i,{trim:function(){if(void 0===this||null===this)throw new TypeError("can't convert "+this+" to object");return String(this).replace(te,"").replace(re,"")}},ne),(8!==parseInt(Z+"08")||22!==parseInt(Z+"0x16"))&&(parseInt=function(e){var t=/^0[xX]/;return function(r,n){return r=String(r).trim(),Number(n)||(n=t.test(r)?16:10),e(r,n)}}(parseInt))})?n.call(t,r,t,e):n)||(e.exports=a)}()},function(e,t,r){var n,a;!function(i,o){"use strict";void 0===(a="function"==typeof(n=function(){var e,t,r,n,a=Function.call,i=Object.prototype,o=a.pwrBind(i.hasOwnProperty),s=a.pwrBind(i.propertyIsEnumerable),c=a.pwrBind(i.toString),l=o(i,"__defineGetter__");l&&(e=a.pwrBind(i.__defineGetter__),t=a.pwrBind(i.__defineSetter__),r=a.pwrBind(i.__lookupGetter__),n=a.pwrBind(i.__lookupSetter__));var u=function(e){return null==e||"object"!=typeof e&&"function"!=typeof e};Object.getPrototypeOf||(Object.getPrototypeOf=function(e){var t=e.__proto__;return t||null===t?t:"[object Function]"===c(e.constructor)?e.constructor.prototype:e instanceof Object?i:null});var p=function(e){try{return e.sentinel=0,0===Object.getOwnPropertyDescriptor(e,"sentinel").value}catch(e){return!1}};if(Object.defineProperty){var d=p({}),f="undefined"==typeof document||p(document.createElement("div"));if(!f||!d)var m=Object.getOwnPropertyDescriptor}if(!Object.getOwnPropertyDescriptor||m){Object.getOwnPropertyDescriptor=function(e,t){if(u(e))throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object: "+e);if(m)try{return m.call(Object,e,t)}catch(e){}var a;if(!o(e,t))return a;if(a={enumerable:s(e,t),configurable:!0},l){var c=e.__proto__,p=e!==i;p&&(e.__proto__=i);var d=r(e,t),f=n(e,t);if(p&&(e.__proto__=c),d||f)return d&&(a.get=d),f&&(a.set=f),a}return a.value=e[t],a.writable=!0,a}}Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){return Object.keys(e)});if(!Object.pwrCreate){var h,v=!({__proto__:null}instanceof Object);h=v||"undefined"==typeof document?function(){return{__proto__:null}}:function(){var e=function(){if(!document.domain)return!1;try{return!!new ActiveXObject("htmlfile")}catch(e){return!1}}()?function(){var e,t;return(t=new ActiveXObject("htmlfile")).write("<script><\/script>"),t.close(),e=t.parentWindow.Object.prototype,t=null,e}():function(){var e,t=document.createElement("iframe"),r=document.body||document.documentElement;return t.style.display="none",r.appendChild(t),t.src="javascript:",e=t.contentWindow.Object.prototype,r.removeChild(t),t=null,e}();delete e.constructor,delete e.hasOwnProperty,delete e.propertyIsEnumerable,delete e.isPrototypeOf,delete e.toLocaleString,delete e.toString,delete e.valueOf;var t=function(){};return t.prototype=e,h=function(){return new t},new t},Object.pwrCreate=function(e,t){var r,n=function(){};if(null===e)r=h();else{if(null!==e&&u(e))throw new TypeError("Object prototype may only be an Object or null");n.prototype=e,(r=new n).__proto__=e}return void 0!==t&&Object.defineProperties(r,t),r}}var g=function(e){try{return Object.defineProperty(e,"sentinel",{}),"sentinel"in e}catch(e){return!1}};if(Object.defineProperty){var b=g({}),y="undefined"==typeof document||g(document.createElement("div"));if(!b||!y)var _=Object.defineProperty,w=Object.defineProperties}if(!Object.defineProperty||_){Object.defineProperty=function(a,o,s){if(u(a))throw new TypeError("Object.defineProperty called on non-object: "+a);if(u(s))throw new TypeError("Property description must be an object: "+s);if(_)try{return _.call(Object,a,o,s)}catch(e){}if("value"in s)if(l&&(r(a,o)||n(a,o))){var c=a.__proto__;a.__proto__=i,delete a[o],a[o]=s.value,a.__proto__=c}else a[o]=s.value;else{var p="get"in s,d="set"in s;if(!l&&(p||d))throw new TypeError("getters & setters can not be defined on this javascript engine");p&&e(a,o,s.get),d&&t(a,o,s.set)}return a}}Object.defineProperties&&!w||(Object.defineProperties=function(e,t){if(w)try{return w.call(Object,e,t)}catch(e){}return Object.keys(t).forEach(function(r){"__proto__"!==r&&Object.defineProperty(e,r,t[r])}),e});Object.seal||(Object.seal=function(e){if(Object(e)!==e)throw new TypeError("Object.seal can only be called on Objects.");return e});Object.freeze||(Object.freeze=function(e){if(Object(e)!==e)throw new TypeError("Object.freeze can only be called on Objects.");return e});try{Object.freeze(function(){})}catch(e){Object.freeze=function(e){return function(t){return"function"==typeof t?t:e(t)}}(Object.freeze)}Object.preventExtensions||(Object.preventExtensions=function(e){if(Object(e)!==e)throw new TypeError("Object.preventExtensions can only be called on Objects.");return e});Object.isSealed||(Object.isSealed=function(e){if(Object(e)!==e)throw new TypeError("Object.isSealed can only be called on Objects.");return!1});Object.isFrozen||(Object.isFrozen=function(e){if(Object(e)!==e)throw new TypeError("Object.isFrozen can only be called on Objects.");return!1});Object.isExtensible||(Object.isExtensible=function(e){if(Object(e)!==e)throw new TypeError("Object.isExtensible can only be called on Objects.");for(var t="";o(e,t);)t+="?";e[t]=!0;var r=o(e,t);return delete e[t],r})})?n.call(t,r,t,e):n)||(e.exports=a)}()},function(e,t,r){var n=r(46),a=r(39),i=r(114),o=a("iterator");e.exports=!n(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach(function(e,n){t.delete("b"),r+=n+e}),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.pwrMap(function(t){var r=function(e,t){var r=e[1]||"",n=e[3];if(!n)return r;if(t&&"function"==typeof btoa){var a=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(n),i=n.sources.pwrMap(function(e){return"/*# sourceURL="+n.sourceRoot+e+" */"});return[r].concat(i).concat([a]).join("\n")}return[r].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,r){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},a=0;a<this.length;a++){var i=this[a][0];"number"==typeof i&&(n[i]=!0)}for(a=0;a<e.length;a++){var o=e[a];"number"==typeof o[0]&&n[o[0]]||(r&&!o[2]?o[2]=r:r&&(o[2]="("+o[2]+") and ("+r+")"),t.push(o))}},t}},function(e,t,r){var n={},a=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),i=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var r=function(e){return document.querySelector(e)}.call(this,e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),o=null,s=0,c=[],l=r(254);function u(e,t){for(var r=0;r<e.length;r++){var a=e[r],i=n[a.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](a.parts[o]);for(;o<a.parts.length;o++)i.parts.push(v(a.parts[o],t))}else{var s=[];for(o=0;o<a.parts.length;o++)s.push(v(a.parts[o],t));n[a.id]={id:a.id,refs:1,parts:s}}}}function p(e,t){for(var r=[],n={},a=0;a<e.length;a++){var i=e[a],o=t.base?i[0]+t.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};n[o]?n[o].parts.push(s):r.push(n[o]={id:o,parts:[s]})}return r}function d(e,t){var r=i(e.insertInto);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var n=c[c.length-1];if("top"===e.insertAt)n?n.nextSibling?r.insertBefore(t,n.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),c.push(t);else if("bottom"===e.insertAt)r.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var a=i(e.insertInto+" "+e.insertAt.before);r.insertBefore(t,a)}}function f(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=c.indexOf(e);t>=0&&c.splice(t,1)}function m(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),h(t,e.attrs),d(e,t),t}function h(e,t){Object.keys(t).forEach(function(r){e.setAttribute(r,t[r])})}function v(e,t){var r,n,a,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var c=s++;r=o||(o=m(t)),n=b.pwrBind(null,r,c,!1),a=b.pwrBind(null,r,c,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",h(t,e.attrs),d(e,t),t}(t),n=function(e,t,r){var n=r.css,a=r.sourceMap,i=void 0===t.convertToAbsoluteUrls&&a;(t.convertToAbsoluteUrls||i)&&(n=l(n));a&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");var o=new Blob([n],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(o),s&&URL.revokeObjectURL(s)}.pwrBind(null,r,t),a=function(){f(r),r.href&&URL.revokeObjectURL(r.href)}):(r=m(t),n=function(e,t){var r=t.css,n=t.media;n&&e.setAttribute("media",n);if(e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}.pwrBind(null,r),a=function(){f(r)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else a()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var r=p(e,t);return u(r,t),function(e){for(var a=[],i=0;i<r.length;i++){var o=r[i];(s=n[o.id]).refs--,a.push(s)}e&&u(p(e,t),t);for(i=0;i<a.length;i++){var s;if(0===(s=a[i]).refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete n[s.id]}}}};var g=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}();function b(e,t,r,n){var a=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=g(t,a);else{var i=document.createTextNode(a),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(i,o[t]):e.appendChild(i)}}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var r=t.protocol+"//"+t.host,n=r+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var a,i=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(a=0===i.indexOf("//")?i:0===i.indexOf("/")?r+i:n+i.replace(/^\.\//,""),"url("+JSON.stringify(a)+")")})}},function(e,t,r){"use strict";var n=r(36),a="function"==typeof Symbol&&Symbol.for,i=a?Symbol.for("react.element"):60103,o=a?Symbol.for("react.portal"):60106,s=a?Symbol.for("react.fragment"):60107,c=a?Symbol.for("react.strict_mode"):60108,l=a?Symbol.for("react.profiler"):60114,u=a?Symbol.for("react.provider"):60109,p=a?Symbol.for("react.context"):60110,d=a?Symbol.for("react.concurrent_mode"):60111,f=a?Symbol.for("react.forward_ref"):60112,m=a?Symbol.for("react.suspense"):60113,h=a?Symbol.for("react.memo"):60115,v=a?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function b(e){for(var t=arguments.length-1,r="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=0;n<t;n++)r+="&args[]="+encodeURIComponent(arguments[n+1]);!function(e,t,r,n,a,i,o,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,a,i,o,s],l=0;(e=Error(t.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",r)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_={};function w(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||y}function E(){}function O(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||y}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&b("85"),this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=w.prototype;var S=O.prototype=new E;S.constructor=O,n(S,w.prototype),S.isPureReactComponent=!0;var C={current:null},j={current:null},x=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function I(e,t,r){var n=void 0,a={},o=null,s=null;if(null!=t)for(n in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)x.call(t,n)&&!k.hasOwnProperty(n)&&(a[n]=t[n]);var c=arguments.length-2;if(1===c)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(n in c=e.defaultProps)void 0===a[n]&&(a[n]=c[n]);return{$$typeof:i,type:e,key:o,ref:s,props:a,_owner:j.current}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var T=/\/+/g,R=[];function N(e,t,r,n){if(R.length){var a=R.pop();return a.result=e,a.keyPrefix=t,a.func=r,a.context=n,a.count=0,a}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function A(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>R.length&&R.push(e)}function D(e,t,r){return null==e?0:function e(t,r,n,a){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var c=!1;if(null===t)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case i:case o:c=!0}}if(c)return n(a,t,""===r?"."+L(t,0):r),1;if(c=0,r=""===r?".":r+":",Array.isArray(t))for(var l=0;l<t.length;l++){var u=r+L(s=t[l],l);c+=e(s,u,n,a)}else if(u=null===t||"object"!=typeof t?null:"function"==typeof(u=g&&t[g]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),l=0;!(s=t.next()).done;)c+=e(s=s.value,u=r+L(s,l++),n,a);else"object"===s&&b("31","[object Object]"==(n=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":n,"");return c}(e,"",t,r)}function L(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function M(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,r){var n=e.result,a=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?z(e,n,r,function(e){return e}):null!=e&&(P(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,a+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(T,"$&/")+"/")+r)),n.push(e))}function z(e,t,r,n,a){var i="";null!=r&&(i=(""+r).replace(T,"$&/")+"/"),D(e,F,t=N(t,i,n,a)),A(t)}function V(){var e=C.current;return null===e&&b("321"),e}var U={Children:{pwrMap:function(e,t,r){if(null==e)return e;var n=[];return z(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;D(e,M,t=N(null,null,t,r)),A(t)},count:function(e){return D(e,function(){return null},null)},toArray:function(e){var t=[];return z(e,t,null,function(e){return e}),t},only:function(e){return P(e)||b("143"),e}},createRef:function(){return{current:null}},Component:w,PureComponent:O,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:f,render:e}},lazy:function(e){return{$$typeof:v,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return V().useCallback(e,t)},useContext:function(e,t){return V().useContext(e,t)},useEffect:function(e,t){return V().useEffect(e,t)},useImperativeHandle:function(e,t,r){return V().useImperativeHandle(e,t,r)},useDebugValue:function(){},useLayoutEffect:function(e,t){return V().useLayoutEffect(e,t)},useMemo:function(e,t){return V().useMemo(e,t)},useReducer:function(e,t,r){return V().useReducer(e,t,r)},useRef:function(e){return V().useRef(e)},useState:function(e){return V().useState(e)},Fragment:s,StrictMode:c,Suspense:m,createElement:I,cloneElement:function(e,t,r){(null===e||void 0===e)&&b("267",e);var a=void 0,o=n({},e.props),s=e.key,c=e.ref,l=e._owner;if(null!=t){void 0!==t.ref&&(c=t.ref,l=j.current),void 0!==t.key&&(s=""+t.key);var u=void 0;for(a in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)x.call(t,a)&&!k.hasOwnProperty(a)&&(o[a]=void 0===t[a]&&void 0!==u?u[a]:t[a])}if(1===(a=arguments.length-2))o.children=r;else if(1<a){u=Array(a);for(var p=0;p<a;p++)u[p]=arguments[p+2];o.children=u}return{$$typeof:i,type:e.type,key:s,ref:c,props:o,_owner:l}},createFactory:function(e){var t=I.pwrBind(null,e);return t.type=e,t},isValidElement:P,version:"16.8.6",unstable_ConcurrentMode:d,unstable_Profiler:l,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:C,ReactCurrentOwner:j,assign:n}},q={default:U},W=q&&U||q;e.exports=W.default||W},function(e,t,r){"use strict";var n=r(0),a=r(36),i=r(257);function o(e){for(var t=arguments.length-1,r="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=0;n<t;n++)r+="&args[]="+encodeURIComponent(arguments[n+1]);!function(e,t,r,n,a,i,o,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,a,i,o,s],l=0;(e=Error(t.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",r)}n||o("227");var s=!1,c=null,l=!1,u=null,p={onError:function(e){s=!0,c=e}};function d(e,t,r,n,a,i,o,l,u){s=!1,c=null,function(e,t,r,n,a,i,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(r,l)}catch(e){this.onError(e)}}.apply(p,arguments)}var f=null,m={};function h(){if(f)for(var e in m){var t=m[e],r=f.indexOf(e);if(-1<r||o("96",e),!g[r])for(var n in t.extractEvents||o("97",e),g[r]=t,r=t.eventTypes){var a=void 0,i=r[n],s=t,c=n;b.hasOwnProperty(c)&&o("99",c),b[c]=i;var l=i.phasedRegistrationNames;if(l){for(a in l)l.hasOwnProperty(a)&&v(l[a],s,c);a=!0}else i.registrationName?(v(i.registrationName,s,c),a=!0):a=!1;a||o("98",n,e)}}}function v(e,t,r){y[e]&&o("100",e),y[e]=t,_[e]=t.eventTypes[r].dependencies}var g=[],b={},y={},_={},w=null,E=null,O=null;function S(e,t,r){var n=e.type||"unknown-event";e.currentTarget=O(r),function(e,t,r,n,a,i,p,f,m){if(d.apply(this,arguments),s){if(s){var h=c;s=!1,c=null}else o("198"),h=void 0;l||(l=!0,u=h)}}(n,t,void 0,e),e.currentTarget=null}function C(e,t){return null==t&&o("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function j(e,t,r){Array.isArray(e)?e.forEach(t,r):e&&t.call(r,e)}var x=null;function k(e){if(e){var t=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(t))for(var n=0;n<t.length&&!e.isPropagationStopped();n++)S(e,t[n],r[n]);else t&&S(e,t,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var I={injectEventPluginOrder:function(e){f&&o("101"),f=Array.prototype.slice.call(e),h()},injectEventPluginsByName:function(e){var t,r=!1;for(t in e)if(e.hasOwnProperty(t)){var n=e[t];m.hasOwnProperty(t)&&m[t]===n||(m[t]&&o("102",t),m[t]=n,r=!0)}r&&h()}};function P(e,t){var r=e.stateNode;if(!r)return null;var n=w(r);if(!n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}return e?null:(r&&"function"!=typeof r&&o("231",t,typeof r),r)}function T(e){if(null!==e&&(x=C(x,e)),e=x,x=null,e&&(j(e,k),x&&o("95"),l))throw e=u,l=!1,u=null,e}var R=Math.random().toString(36).slice(2),N="__reactInternalInstance$"+R,A="__reactEventHandlers$"+R;function D(e){if(e[N])return e[N];for(;!e[N];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[N]).tag||6===e.tag?e:null}function L(e){return!(e=e[N])||5!==e.tag&&6!==e.tag?null:e}function M(e){if(5===e.tag||6===e.tag)return e.stateNode;o("33")}function F(e){return e[A]||null}function z(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function V(e,t,r){(t=P(e,r.dispatchConfig.phasedRegistrationNames[t]))&&(r._dispatchListeners=C(r._dispatchListeners,t),r._dispatchInstances=C(r._dispatchInstances,e))}function U(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,r=[];t;)r.push(t),t=z(t);for(t=r.length;0<t--;)V(r[t],"captured",e);for(t=0;t<r.length;t++)V(r[t],"bubbled",e)}}function q(e,t,r){e&&r&&r.dispatchConfig.registrationName&&(t=P(e,r.dispatchConfig.registrationName))&&(r._dispatchListeners=C(r._dispatchListeners,t),r._dispatchInstances=C(r._dispatchInstances,e))}function W(e){e&&e.dispatchConfig.registrationName&&q(e._targetInst,null,e)}function B(e){j(e,U)}var H=!("undefined"==typeof window||!window.document||!window.document.createElement);function K(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var G={animationend:K("Animation","AnimationEnd"),animationiteration:K("Animation","AnimationIteration"),animationstart:K("Animation","AnimationStart"),transitionend:K("Transition","TransitionEnd")},Q={},Y={};function $(e){if(Q[e])return Q[e];if(!G[e])return e;var t,r=G[e];for(t in r)if(r.hasOwnProperty(t)&&t in Y)return Q[e]=r[t];return e}H&&(Y=document.createElement("div").style,"AnimationEvent"in window||(delete G.animationend.animation,delete G.animationiteration.animation,delete G.animationstart.animation),"TransitionEvent"in window||delete G.transitionend.transition);var J=$("animationend"),X=$("animationiteration"),Z=$("animationstart"),ee=$("transitionend"),te="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),re=null,ne=null,ae=null;function ie(){if(ae)return ae;var e,t,r=ne,n=r.length,a="value"in re?re.value:re.textContent,i=a.length;for(e=0;e<n&&r[e]===a[e];e++);var o=n-e;for(t=1;t<=o&&r[n-t]===a[i-t];t++);return ae=a.slice(e,1<t?1-t:void 0)}function oe(){return!0}function se(){return!1}function ce(e,t,r,n){for(var a in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=r,e=this.constructor.Interface)e.hasOwnProperty(a)&&((t=e[a])?this[a]=t(r):"target"===a?this.target=n:this[a]=r[a]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?oe:se,this.isPropagationStopped=se,this}function le(e,t,r,n){if(this.eventPool.length){var a=this.eventPool.pop();return this.call(a,e,t,r,n),a}return new this(e,t,r,n)}function ue(e){e instanceof this||o("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function pe(e){e.eventPool=[],e.getPooled=le,e.release=ue}a(ce.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=oe)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=oe)},persist:function(){this.isPersistent=oe},isPersistent:se,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=se,this._dispatchInstances=this._dispatchListeners=null}}),ce.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ce.extend=function(e){function t(){}function r(){return n.apply(this,arguments)}var n=this;t.prototype=n.prototype;var i=new t;return a(i,r.prototype),r.prototype=i,r.prototype.constructor=r,r.Interface=a({},n.Interface,e),r.extend=n.extend,pe(r),r},pe(ce);var de=ce.extend({data:null}),fe=ce.extend({data:null}),me=[9,13,27,32],he=H&&"CompositionEvent"in window,ve=null;H&&"documentMode"in document&&(ve=document.documentMode);var ge=H&&"TextEvent"in window&&!ve,be=H&&(!he||ve&&8<ve&&11>=ve),ye=String.fromCharCode(32),_e={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},we=!1;function Ee(e,t){switch(e){case"keyup":return-1!==me.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Oe(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Se=!1;var Ce={eventTypes:_e,extractEvents:function(e,t,r,n){var a=void 0,i=void 0;if(he)e:{switch(e){case"compositionstart":a=_e.compositionStart;break e;case"compositionend":a=_e.compositionEnd;break e;case"compositionupdate":a=_e.compositionUpdate;break e}a=void 0}else Se?Ee(e,r)&&(a=_e.compositionEnd):"keydown"===e&&229===r.keyCode&&(a=_e.compositionStart);return a?(be&&"ko"!==r.locale&&(Se||a!==_e.compositionStart?a===_e.compositionEnd&&Se&&(i=ie()):(ne="value"in(re=n)?re.value:re.textContent,Se=!0)),a=de.getPooled(a,t,r,n),i?a.data=i:null!==(i=Oe(r))&&(a.data=i),B(a),i=a):i=null,(e=ge?function(e,t){switch(e){case"compositionend":return Oe(t);case"keypress":return 32!==t.which?null:(we=!0,ye);case"textInput":return(e=t.data)===ye&&we?null:e;default:return null}}(e,r):function(e,t){if(Se)return"compositionend"===e||!he&&Ee(e,t)?(e=ie(),ae=ne=re=null,Se=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return be&&"ko"!==t.locale?null:t.data;default:return null}}(e,r))?((t=fe.getPooled(_e.beforeInput,t,r,n)).data=e,B(t)):t=null,null===i?t:null===t?i:[i,t]}},je=null,xe=null,ke=null;function Ie(e){if(e=E(e)){"function"!=typeof je&&o("280");var t=w(e.stateNode);je(e.stateNode,e.type,t)}}function Pe(e){xe?ke?ke.push(e):ke=[e]:xe=e}function Te(){if(xe){var e=xe,t=ke;if(ke=xe=null,Ie(e),t)for(e=0;e<t.length;e++)Ie(t[e])}}function Re(e,t){return e(t)}function Ne(e,t,r){return e(t,r)}function Ae(){}var De=!1;function Le(e,t){if(De)return e(t);De=!0;try{return Re(e,t)}finally{De=!1,(null!==xe||null!==ke)&&(Ae(),Te())}}var Me={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fe(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Me[e.type]:"textarea"===t}function ze(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Ve(e){if(!H)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function Ue(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function qe(e){e._valueTracker||(e._valueTracker=function(e){var t=Ue(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function We(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Ue(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}var Be=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Be.hasOwnProperty("ReactCurrentDispatcher")||(Be.ReactCurrentDispatcher={current:null});var He=/^(.*)[\\\/]/,Ke="function"==typeof Symbol&&Symbol.for,Ge=Ke?Symbol.for("react.element"):60103,Qe=Ke?Symbol.for("react.portal"):60106,Ye=Ke?Symbol.for("react.fragment"):60107,$e=Ke?Symbol.for("react.strict_mode"):60108,Je=Ke?Symbol.for("react.profiler"):60114,Xe=Ke?Symbol.for("react.provider"):60109,Ze=Ke?Symbol.for("react.context"):60110,et=Ke?Symbol.for("react.concurrent_mode"):60111,tt=Ke?Symbol.for("react.forward_ref"):60112,rt=Ke?Symbol.for("react.suspense"):60113,nt=Ke?Symbol.for("react.memo"):60115,at=Ke?Symbol.for("react.lazy"):60116,it="function"==typeof Symbol&&Symbol.iterator;function ot(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=it&&e[it]||e["@@iterator"])?e:null}function st(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case et:return"ConcurrentMode";case Ye:return"Fragment";case Qe:return"Portal";case Je:return"Profiler";case $e:return"StrictMode";case rt:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case Ze:return"Context.Consumer";case Xe:return"Context.Provider";case tt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case nt:return st(e.type);case at:if(e=1===e._status?e._result:null)return st(e)}return null}function ct(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var r="";break e;default:var n=e._debugOwner,a=e._debugSource,i=st(e.type);r=null,n&&(r=st(n.type)),n=i,i="",a?i=" (at "+a.fileName.replace(He,"")+":"+a.lineNumber+")":r&&(i=" (created by "+r+")"),r="\n    in "+(n||"Unknown")+i}t+=r,e=e.return}while(e);return t}var lt=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ut=Object.prototype.hasOwnProperty,pt={},dt={};function ft(e,t,r,n,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t}var mt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){mt[e]=new ft(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];mt[t]=new ft(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){mt[e]=new ft(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){mt[e]=new ft(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){mt[e]=new ft(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){mt[e]=new ft(e,3,!0,e,null)}),["capture","download"].forEach(function(e){mt[e]=new ft(e,4,!1,e,null)}),["cols","rows","size","span"].forEach(function(e){mt[e]=new ft(e,6,!1,e,null)}),["rowSpan","start"].forEach(function(e){mt[e]=new ft(e,5,!1,e.toLowerCase(),null)});var ht=/[\-:]([a-z])/g;function vt(e){return e[1].toUpperCase()}function gt(e,t,r,n){var a=mt.hasOwnProperty(t)?mt[t]:null;(null!==a?0===a.type:!n&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,r,n){if(null===t||void 0===t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,a,n)&&(r=null),n||null===a?function(e){return!!ut.call(dt,e)||!ut.call(pt,e)&&(lt.test(e)?dt[e]=!0:(pt[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=null===r?3!==a.type&&"":r:(t=a.attributeName,n=a.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(a=a.type)||4===a&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}function bt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function yt(e,t){var r=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function _t(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=bt(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function wt(e,t){null!=(t=t.checked)&&gt(e,"checked",t,!1)}function Et(e,t){wt(e,t);var r=bt(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?St(e,t.type,r):t.hasOwnProperty("defaultValue")&&St(e,t.type,bt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ot(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function St(e,t,r){"number"===t&&e.ownerDocument.activeElement===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ht,vt);mt[t]=new ft(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ht,vt);mt[t]=new ft(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ht,vt);mt[t]=new ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),["tabIndex","crossOrigin"].forEach(function(e){mt[e]=new ft(e,1,!1,e.toLowerCase(),null)});var Ct={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function jt(e,t,r){return(e=ce.getPooled(Ct.change,e,t,r)).type="change",Pe(r),B(e),e}var xt=null,kt=null;function It(e){T(e)}function Pt(e){if(We(M(e)))return e}function Tt(e,t){if("change"===e)return t}var Rt=!1;function Nt(){xt&&(xt.detachEvent("onpropertychange",At),kt=xt=null)}function At(e){"value"===e.propertyName&&Pt(kt)&&Le(It,e=jt(kt,e,ze(e)))}function Dt(e,t,r){"focus"===e?(Nt(),kt=r,(xt=t).attachEvent("onpropertychange",At)):"blur"===e&&Nt()}function Lt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Pt(kt)}function Mt(e,t){if("click"===e)return Pt(t)}function Ft(e,t){if("input"===e||"change"===e)return Pt(t)}H&&(Rt=Ve("input")&&(!document.documentMode||9<document.documentMode));var zt={eventTypes:Ct,_isInputEventSupported:Rt,extractEvents:function(e,t,r,n){var a=t?M(t):window,i=void 0,o=void 0,s=a.nodeName&&a.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===a.type?i=Tt:Fe(a)?Rt?i=Ft:(i=Lt,o=Dt):(s=a.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(i=Mt),i&&(i=i(e,t)))return jt(i,r,n);o&&o(e,a,t),"blur"===e&&(e=a._wrapperState)&&e.controlled&&"number"===a.type&&St(a,"number",a.value)}},Vt=ce.extend({view:null,detail:null}),Ut={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ut[e])&&!!t[e]}function Wt(){return qt}var Bt=0,Ht=0,Kt=!1,Gt=!1,Qt=Vt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Wt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Bt;return Bt=e.screenX,Kt?"mousemove"===e.type?e.screenX-t:0:(Kt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Ht;return Ht=e.screenY,Gt?"mousemove"===e.type?e.screenY-t:0:(Gt=!0,0)}}),Yt=Qt.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),$t={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Jt={eventTypes:$t,extractEvents:function(e,t,r,n){var a="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(a&&(r.relatedTarget||r.fromElement)||!i&&!a)return null;if(a=n.window===n?n:(a=n.ownerDocument)?a.defaultView||a.parentWindow:window,i?(i=t,t=(t=r.relatedTarget||r.toElement)?D(t):null):i=null,i===t)return null;var o=void 0,s=void 0,c=void 0,l=void 0;"mouseout"===e||"mouseover"===e?(o=Qt,s=$t.mouseLeave,c=$t.mouseEnter,l="mouse"):"pointerout"!==e&&"pointerover"!==e||(o=Yt,s=$t.pointerLeave,c=$t.pointerEnter,l="pointer");var u=null==i?a:M(i);if(a=null==t?a:M(t),(e=o.getPooled(s,i,r,n)).type=l+"leave",e.target=u,e.relatedTarget=a,(r=o.getPooled(c,t,r,n)).type=l+"enter",r.target=a,r.relatedTarget=u,n=t,i&&n)e:{for(a=n,l=0,o=t=i;o;o=z(o))l++;for(o=0,c=a;c;c=z(c))o++;for(;0<l-o;)t=z(t),l--;for(;0<o-l;)a=z(a),o--;for(;l--;){if(t===a||t===a.alternate)break e;t=z(t),a=z(a)}t=null}else t=null;for(a=t,t=[];i&&i!==a&&(null===(l=i.alternate)||l!==a);)t.push(i),i=z(i);for(i=[];n&&n!==a&&(null===(l=n.alternate)||l!==a);)i.push(n),n=z(n);for(n=0;n<t.length;n++)q(t[n],"bubbled",e);for(n=i.length;0<n--;)q(i[n],"captured",r);return[e,r]}};function Xt(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var Zt=Object.prototype.hasOwnProperty;function er(e,t){if(Xt(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!Zt.call(t,r[n])||!Xt(e[r[n]],t[r[n]]))return!1;return!0}function tr(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function rr(e){2!==tr(e)&&o("188")}function nr(e){if(!(e=function(e){var t=e.alternate;if(!t)return 3===(t=tr(e))&&o("188"),1===t?null:e;for(var r=e,n=t;;){var a=r.return,i=a?a.alternate:null;if(!a||!i)break;if(a.child===i.child){for(var s=a.child;s;){if(s===r)return rr(a),e;if(s===n)return rr(a),t;s=s.sibling}o("188")}if(r.return!==n.return)r=a,n=i;else{s=!1;for(var c=a.child;c;){if(c===r){s=!0,r=a,n=i;break}if(c===n){s=!0,n=a,r=i;break}c=c.sibling}if(!s){for(c=i.child;c;){if(c===r){s=!0,r=i,n=a;break}if(c===n){s=!0,n=i,r=a;break}c=c.sibling}s||o("189")}}r.alternate!==n&&o("190")}return 3!==r.tag&&o("188"),r.stateNode.current===r?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var ar=ce.extend({animationName:null,elapsedTime:null,pseudoElement:null}),ir=ce.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),or=Vt.extend({relatedTarget:null});function sr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var cr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ur=Vt.extend({key:function(e){if(e.key){var t=cr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=sr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?lr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Wt,charCode:function(e){return"keypress"===e.type?sr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?sr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),pr=Qt.extend({dataTransfer:null}),dr=Vt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Wt}),fr=ce.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),mr=Qt.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),hr=[["abort","abort"],[J,"animationEnd"],[X,"animationIteration"],[Z,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[ee,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],vr={},gr={};function br(e,t){var r=e[0],n="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[r],isInteractive:t},vr[e]=t,gr[r]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach(function(e){br(e,!0)}),hr.forEach(function(e){br(e,!1)});var yr={eventTypes:vr,isInteractiveTopLevelEventType:function(e){return void 0!==(e=gr[e])&&!0===e.isInteractive},extractEvents:function(e,t,r,n){var a=gr[e];if(!a)return null;switch(e){case"keypress":if(0===sr(r))return null;case"keydown":case"keyup":e=ur;break;case"blur":case"focus":e=or;break;case"click":if(2===r.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Qt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=pr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=dr;break;case J:case X:case Z:e=ar;break;case ee:e=fr;break;case"scroll":e=Vt;break;case"wheel":e=mr;break;case"copy":case"cut":case"paste":e=ir;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Yt;break;default:e=ce}return B(t=e.getPooled(a,t,r,n)),t}},_r=yr.isInteractiveTopLevelEventType,wr=[];function Er(e){var t=e.targetInst,r=t;do{if(!r){e.ancestors.push(r);break}var n;for(n=r;n.return;)n=n.return;if(!(n=3!==n.tag?null:n.stateNode.containerInfo))break;e.ancestors.push(r),r=D(n)}while(r);for(r=0;r<e.ancestors.length;r++){t=e.ancestors[r];var a=ze(e.nativeEvent);n=e.topLevelType;for(var i=e.nativeEvent,o=null,s=0;s<g.length;s++){var c=g[s];c&&(c=c.extractEvents(n,t,i,a))&&(o=C(o,c))}T(o)}}var Or=!0;function Sr(e,t){if(!t)return null;var r=(_r(e)?jr:xr).pwrBind(null,e);t.addEventListener(e,r,!1)}function Cr(e,t){if(!t)return null;var r=(_r(e)?jr:xr).pwrBind(null,e);t.addEventListener(e,r,!0)}function jr(e,t){Ne(xr,e,t)}function xr(e,t){if(Or){var r=ze(t);if(null===(r=D(r))||"number"!=typeof r.tag||2===tr(r)||(r=null),wr.length){var n=wr.pop();n.topLevelType=e,n.nativeEvent=t,n.targetInst=r,e=n}else e={topLevelType:e,nativeEvent:t,targetInst:r,ancestors:[]};try{Le(Er,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>wr.length&&wr.push(e)}}}var kr={},Ir=0,Pr="_reactListenersID"+(""+Math.random()).slice(2);function Tr(e){return Object.prototype.hasOwnProperty.call(e,Pr)||(e[Pr]=Ir++,kr[e[Pr]]={}),kr[e[Pr]]}function Rr(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Nr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ar(e,t){var r,n=Nr(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Nr(n)}}function Dr(){for(var e=window,t=Rr();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=Rr((e=t.contentWindow).document)}return t}function Lr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Mr(e){var t=Dr(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&function e(t,r){return!(!t||!r)&&(t===r||(!t||3!==t.nodeType)&&(r&&3===r.nodeType?e(t,r.parentNode):"contains"in t?t.contains(r):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(r))))}(r.ownerDocument.documentElement,r)){if(null!==n&&Lr(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=r.textContent.length,i=Math.min(n.start,a);n=void 0===n.end?i:Math.min(n.end,a),!e.extend&&i>n&&(a=n,n=i,i=a),a=Ar(r,i);var o=Ar(r,n);a&&o&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Fr=H&&"documentMode"in document&&11>=document.documentMode,zr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Vr=null,Ur=null,qr=null,Wr=!1;function Br(e,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Wr||null==Vr||Vr!==Rr(r)?null:("selectionStart"in(r=Vr)&&Lr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},qr&&er(qr,r)?null:(qr=r,(e=ce.getPooled(zr.select,Ur,e,t)).type="select",e.target=Vr,B(e),e))}var Hr={eventTypes:zr,extractEvents:function(e,t,r,n){var a,i=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;if(!(a=!i)){e:{i=Tr(i),a=_.onSelect;for(var o=0;o<a.length;o++){var s=a[o];if(!i.hasOwnProperty(s)||!i[s]){i=!1;break e}}i=!0}a=!i}if(a)return null;switch(i=t?M(t):window,e){case"focus":(Fe(i)||"true"===i.contentEditable)&&(Vr=i,Ur=t,qr=null);break;case"blur":qr=Ur=Vr=null;break;case"mousedown":Wr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Wr=!1,Br(r,n);case"selectionchange":if(Fr)break;case"keydown":case"keyup":return Br(r,n)}return null}};function Kr(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return n.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function Gr(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+bt(r),t=null,a=0;a<e.length;a++){if(e[a].value===r)return e[a].selected=!0,void(n&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function Qr(e,t){return null!=t.dangerouslySetInnerHTML&&o("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Yr(e,t){var r=t.value;null==r&&(r=t.defaultValue,null!=(t=t.children)&&(null!=r&&o("92"),Array.isArray(t)&&(1>=t.length||o("93"),t=t[0]),r=t),null==r&&(r="")),e._wrapperState={initialValue:bt(r)}}function $r(e,t){var r=bt(t.value),n=bt(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function Jr(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}I.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w=F,E=L,O=M,I.injectEventPluginsByName({SimpleEventPlugin:yr,EnterLeaveEventPlugin:Jt,ChangeEventPlugin:zt,SelectEventPlugin:Hr,BeforeInputEventPlugin:Ce});var Xr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Zr(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function en(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Zr(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var tn=void 0,rn=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,r,n,a){MSApp.execUnsafeLocalFunction(function(){return e(t,r)})}:e}(function(e,t){if(e.namespaceURI!==Xr.svg||"innerHTML"in e)e.innerHTML=t;else{for((tn=tn||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=tn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nn(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var an={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},on=["Webkit","ms","Moz","O"];function sn(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||an.hasOwnProperty(e)&&an[e]?(""+t).trim():t+"px"}function cn(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),a=sn(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}Object.keys(an).forEach(function(e){on.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),an[t]=an[e]})});var ln=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function un(e,t){t&&(ln[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&o("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&o("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||o("61")),null!=t.style&&"object"!=typeof t.style&&o("62",""))}function pn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function dn(e,t){var r=Tr(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=_[t];for(var n=0;n<t.length;n++){var a=t[n];if(!r.hasOwnProperty(a)||!r[a]){switch(a){case"scroll":Cr("scroll",e);break;case"focus":case"blur":Cr("focus",e),Cr("blur",e),r.blur=!0,r.focus=!0;break;case"cancel":case"close":Ve(a)&&Cr(a,e);break;case"invalid":case"submit":case"reset":break;default:-1===te.indexOf(a)&&Sr(a,e)}r[a]=!0}}}function fn(){}var mn=null,hn=null;function vn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function gn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var bn="function"==typeof setTimeout?setTimeout:void 0,yn="function"==typeof clearTimeout?clearTimeout:void 0,_n=i.unstable_scheduleCallback,wn=i.unstable_cancelCallback;function En(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function On(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var Sn=[],Cn=-1;function jn(e){0>Cn||(e.current=Sn[Cn],Sn[Cn]=null,Cn--)}function xn(e,t){Sn[++Cn]=e.current,e.current=t}var kn={},In={current:kn},Pn={current:!1},Tn=kn;function Rn(e,t){var r=e.type.contextTypes;if(!r)return kn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in r)i[a]=t[a];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Nn(e){return null!==(e=e.childContextTypes)&&void 0!==e}function An(e){jn(Pn),jn(In)}function Dn(e){jn(Pn),jn(In)}function Ln(e,t,r){In.current!==kn&&o("168"),xn(In,t),xn(Pn,r)}function Mn(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var i in n=n.getChildContext())i in e||o("108",st(t)||"Unknown",i);return a({},r,n)}function Fn(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||kn,Tn=In.current,xn(In,t),xn(Pn,Pn.current),!0}function zn(e,t,r){var n=e.stateNode;n||o("169"),r?(t=Mn(e,t,Tn),n.__reactInternalMemoizedMergedChildContext=t,jn(Pn),jn(In),xn(In,t)):jn(Pn),xn(Pn,r)}var Vn=null,Un=null;function qn(e){return function(t){try{return e(t)}catch(e){}}}function Wn(e,t,r,n){return new function(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.contextDependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}(e,t,r,n)}function Bn(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Hn(e,t){var r=e.alternate;return null===r?((r=Wn(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childExpirationTime=e.childExpirationTime,r.expirationTime=e.expirationTime,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,r.contextDependencies=e.contextDependencies,r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Kn(e,t,r,n,a,i){var s=2;if(n=e,"function"==typeof e)Bn(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case Ye:return Gn(r.children,a,i,t);case et:return Qn(r,3|a,i,t);case $e:return Qn(r,2|a,i,t);case Je:return(e=Wn(12,r,t,4|a)).elementType=Je,e.type=Je,e.expirationTime=i,e;case rt:return(e=Wn(13,r,t,a)).elementType=rt,e.type=rt,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Xe:s=10;break e;case Ze:s=9;break e;case tt:s=11;break e;case nt:s=14;break e;case at:s=16,n=null;break e}o("130",null==e?e:typeof e,"")}return(t=Wn(s,r,t,a)).elementType=e,t.type=n,t.expirationTime=i,t}function Gn(e,t,r,n){return(e=Wn(7,e,n,t)).expirationTime=r,e}function Qn(e,t,r,n){return e=Wn(8,e,n,t),t=0==(1&t)?$e:et,e.elementType=t,e.type=t,e.expirationTime=r,e}function Yn(e,t,r){return(e=Wn(6,e,null,t)).expirationTime=r,e}function $n(e,t,r){return(t=Wn(4,null!==e.children?e.children:[],e.key,t)).expirationTime=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jn(e,t){e.didError=!1;var r=e.earliestPendingTime;0===r?e.earliestPendingTime=e.latestPendingTime=t:r<t?e.earliestPendingTime=t:e.latestPendingTime>t&&(e.latestPendingTime=t),ea(t,e)}function Xn(e,t){e.didError=!1,e.latestPingedTime>=t&&(e.latestPingedTime=0);var r=e.earliestPendingTime,n=e.latestPendingTime;r===t?e.earliestPendingTime=n===t?e.latestPendingTime=0:n:n===t&&(e.latestPendingTime=r),r=e.earliestSuspendedTime,n=e.latestSuspendedTime,0===r?e.earliestSuspendedTime=e.latestSuspendedTime=t:r<t?e.earliestSuspendedTime=t:n>t&&(e.latestSuspendedTime=t),ea(t,e)}function Zn(e,t){var r=e.earliestPendingTime;return e=e.earliestSuspendedTime,r>t&&(t=r),e>t&&(t=e),t}function ea(e,t){var r=t.earliestSuspendedTime,n=t.latestSuspendedTime,a=t.earliestPendingTime,i=t.latestPingedTime;0===(a=0!==a?a:i)&&(0===e||n<e)&&(a=n),0!==(e=a)&&r>e&&(e=r),t.nextExpirationTimeToWorkOn=a,t.expirationTime=e}function ta(e,t){if(e&&e.defaultProps)for(var r in t=a({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}var ra=(new n.Component).refs;function na(e,t,r,n){r=null===(r=r(n,t=e.memoizedState))||void 0===r?t:a({},t,r),e.memoizedState=r,null!==(n=e.updateQueue)&&0===e.expirationTime&&(n.baseState=r)}var aa={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===tr(e)},enqueueSetState:function(e,t,r){e=e._reactInternalFiber;var n=_s(),a=Gi(n=Go(n,e));a.payload=t,void 0!==r&&null!==r&&(a.callback=r),Uo(),Yi(e,a),$o(e,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternalFiber;var n=_s(),a=Gi(n=Go(n,e));a.tag=Ui,a.payload=t,void 0!==r&&null!==r&&(a.callback=r),Uo(),Yi(e,a),$o(e,n)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var r=_s(),n=Gi(r=Go(r,e));n.tag=qi,void 0!==t&&null!==t&&(n.callback=t),Uo(),Yi(e,n),$o(e,r)}};function ia(e,t,r,n,a,i,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,i,o):!t.prototype||!t.prototype.isPureReactComponent||(!er(r,n)||!er(a,i))}function oa(e,t,r){var n=!1,a=kn,i=t.contextType;return"object"==typeof i&&null!==i?i=zi(i):(a=Nn(t)?Tn:In.current,i=(n=null!==(n=t.contextTypes)&&void 0!==n)?Rn(e,a):kn),t=new t(r,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=aa,e.stateNode=t,t._reactInternalFiber=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function sa(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&aa.enqueueReplaceState(t,t.state,null)}function ca(e,t,r,n){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs=ra;var i=t.contextType;"object"==typeof i&&null!==i?a.context=zi(i):(i=Nn(t)?Tn:In.current,a.context=Rn(e,i)),null!==(i=e.updateQueue)&&(Zi(e,i,r,a,n),a.state=e.memoizedState),"function"==typeof(i=t.getDerivedStateFromProps)&&(na(e,t,i,r),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&aa.enqueueReplaceState(a,a.state,null),null!==(i=e.updateQueue)&&(Zi(e,i,r,a,n),a.state=e.memoizedState)),"function"==typeof a.componentDidMount&&(e.effectTag|=4)}var la=Array.isArray;function ua(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){var n=void 0;(r=r._owner)&&(1!==r.tag&&o("309"),n=r.stateNode),n||o("147",e);var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=n.refs;t===ra&&(t=n.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}"string"!=typeof e&&o("284"),r._owner||o("290",e)}return e}function pa(e,t){"textarea"!==e.type&&o("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function da(e){function t(t,r){if(e){var n=t.lastEffect;null!==n?(n.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r,r.nextEffect=null,r.effectTag=8}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t,r){return(e=Hn(e,t)).index=0,e.sibling=null,e}function i(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.effectTag=2,r):n:(t.effectTag=2,r):r}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function c(e,t,r,n){return null===t||6!==t.tag?((t=Yn(r,e.mode,n)).return=e,t):((t=a(t,r)).return=e,t)}function l(e,t,r,n){return null!==t&&t.elementType===r.type?((n=a(t,r.props)).ref=ua(e,t,r),n.return=e,n):((n=Kn(r.type,r.key,r.props,null,e.mode,n)).ref=ua(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=$n(r,e.mode,n)).return=e,t):((t=a(t,r.children||[])).return=e,t)}function p(e,t,r,n,i){return null===t||7!==t.tag?((t=Gn(r,e.mode,n,i)).return=e,t):((t=a(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t||"number"==typeof t)return(t=Yn(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Ge:return(r=Kn(t.type,t.key,t.props,null,e.mode,r)).ref=ua(e,null,t),r.return=e,r;case Qe:return(t=$n(t,e.mode,r)).return=e,t}if(la(t)||ot(t))return(t=Gn(t,e.mode,r,null)).return=e,t;pa(e,t)}return null}function f(e,t,r,n){var a=null!==t?t.key:null;if("string"==typeof r||"number"==typeof r)return null!==a?null:c(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Ge:return r.key===a?r.type===Ye?p(e,t,r.props.children,n,a):l(e,t,r,n):null;case Qe:return r.key===a?u(e,t,r,n):null}if(la(r)||ot(r))return null!==a?null:p(e,t,r,n,null);pa(e,r)}return null}function m(e,t,r,n,a){if("string"==typeof n||"number"==typeof n)return c(t,e=e.get(r)||null,""+n,a);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Ge:return e=e.get(null===n.key?r:n.key)||null,n.type===Ye?p(t,e,n.props.children,a,n.key):l(t,e,n,a);case Qe:return u(t,e=e.get(null===n.key?r:n.key)||null,n,a)}if(la(n)||ot(n))return p(t,e=e.get(r)||null,n,a,null);pa(t,n)}return null}function h(a,o,s,c){for(var l=null,u=null,p=o,h=o=0,v=null;null!==p&&h<s.length;h++){p.index>h?(v=p,p=null):v=p.sibling;var g=f(a,p,s[h],c);if(null===g){null===p&&(p=v);break}e&&p&&null===g.alternate&&t(a,p),o=i(g,o,h),null===u?l=g:u.sibling=g,u=g,p=v}if(h===s.length)return r(a,p),l;if(null===p){for(;h<s.length;h++)(p=d(a,s[h],c))&&(o=i(p,o,h),null===u?l=p:u.sibling=p,u=p);return l}for(p=n(a,p);h<s.length;h++)(v=m(p,a,h,s[h],c))&&(e&&null!==v.alternate&&p.delete(null===v.key?h:v.key),o=i(v,o,h),null===u?l=v:u.sibling=v,u=v);return e&&p.forEach(function(e){return t(a,e)}),l}function v(a,s,c,l){var u=ot(c);"function"!=typeof u&&o("150"),null==(c=u.call(c))&&o("151");for(var p=u=null,h=s,v=s=0,g=null,b=c.next();null!==h&&!b.done;v++,b=c.next()){h.index>v?(g=h,h=null):g=h.sibling;var y=f(a,h,b.value,l);if(null===y){h||(h=g);break}e&&h&&null===y.alternate&&t(a,h),s=i(y,s,v),null===p?u=y:p.sibling=y,p=y,h=g}if(b.done)return r(a,h),u;if(null===h){for(;!b.done;v++,b=c.next())null!==(b=d(a,b.value,l))&&(s=i(b,s,v),null===p?u=b:p.sibling=b,p=b);return u}for(h=n(a,h);!b.done;v++,b=c.next())null!==(b=m(h,a,v,b.value,l))&&(e&&null!==b.alternate&&h.delete(null===b.key?v:b.key),s=i(b,s,v),null===p?u=b:p.sibling=b,p=b);return e&&h.forEach(function(e){return t(a,e)}),u}return function(e,n,i,c){var l="object"==typeof i&&null!==i&&i.type===Ye&&null===i.key;l&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case Ge:e:{for(u=i.key,l=n;null!==l;){if(l.key===u){if(7===l.tag?i.type===Ye:l.elementType===i.type){r(e,l.sibling),(n=a(l,i.type===Ye?i.props.children:i.props)).ref=ua(e,l,i),n.return=e,e=n;break e}r(e,l);break}t(e,l),l=l.sibling}i.type===Ye?((n=Gn(i.props.children,e.mode,c,i.key)).return=e,e=n):((c=Kn(i.type,i.key,i.props,null,e.mode,c)).ref=ua(e,n,i),c.return=e,e=c)}return s(e);case Qe:e:{for(l=i.key;null!==n;){if(n.key===l){if(4===n.tag&&n.stateNode.containerInfo===i.containerInfo&&n.stateNode.implementation===i.implementation){r(e,n.sibling),(n=a(n,i.children||[])).return=e,e=n;break e}r(e,n);break}t(e,n),n=n.sibling}(n=$n(i,e.mode,c)).return=e,e=n}return s(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==n&&6===n.tag?(r(e,n.sibling),(n=a(n,i)).return=e,e=n):(r(e,n),(n=Yn(i,e.mode,c)).return=e,e=n),s(e);if(la(i))return h(e,n,i,c);if(ot(i))return v(e,n,i,c);if(u&&pa(e,i),void 0===i&&!l)switch(e.tag){case 1:case 0:o("152",(c=e.type).displayName||c.name||"Component")}return r(e,n)}}var fa=da(!0),ma=da(!1),ha={},va={current:ha},ga={current:ha},ba={current:ha};function ya(e){return e===ha&&o("174"),e}function _a(e,t){xn(ba,t),xn(ga,e),xn(va,ha);var r=t.nodeType;switch(r){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:en(null,"");break;default:t=en(t=(r=8===r?t.parentNode:t).namespaceURI||null,r=r.tagName)}jn(va),xn(va,t)}function wa(e){jn(va),jn(ga),jn(ba)}function Ea(e){ya(ba.current);var t=ya(va.current),r=en(t,e.type);t!==r&&(xn(ga,e),xn(va,r))}function Oa(e){ga.current===e&&(jn(va),jn(ga))}var Sa=0,Ca=2,ja=4,xa=8,ka=16,Ia=32,Pa=64,Ta=128,Ra=Be.ReactCurrentDispatcher,Na=0,Aa=null,Da=null,La=null,Ma=null,Fa=null,za=null,Va=0,Ua=null,qa=0,Wa=!1,Ba=null,Ha=0;function Ka(){o("321")}function Ga(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Xt(e[r],t[r]))return!1;return!0}function Qa(e,t,r,n,a,i){if(Na=i,Aa=t,La=null!==e?e.memoizedState:null,Ra.current=null===La?si:ci,t=r(n,a),Wa){do{Wa=!1,Ha+=1,La=null!==e?e.memoizedState:null,za=Ma,Ua=Fa=Da=null,Ra.current=ci,t=r(n,a)}while(Wa);Ba=null,Ha=0}return Ra.current=oi,(e=Aa).memoizedState=Ma,e.expirationTime=Va,e.updateQueue=Ua,e.effectTag|=qa,e=null!==Da&&null!==Da.next,Na=0,za=Fa=Ma=La=Da=Aa=null,Va=0,Ua=null,qa=0,e&&o("300"),t}function Ya(){Ra.current=oi,Na=0,za=Fa=Ma=La=Da=Aa=null,Va=0,Ua=null,qa=0,Wa=!1,Ba=null,Ha=0}function $a(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===Fa?Ma=Fa=e:Fa=Fa.next=e,Fa}function Ja(){if(null!==za)za=(Fa=za).next,La=null!==(Da=La)?Da.next:null;else{null===La&&o("310");var e={memoizedState:(Da=La).memoizedState,baseState:Da.baseState,queue:Da.queue,baseUpdate:Da.baseUpdate,next:null};Fa=null===Fa?Ma=e:Fa.next=e,La=Da.next}return Fa}function Xa(e,t){return"function"==typeof t?t(e):t}function Za(e){var t=Ja(),r=t.queue;if(null===r&&o("311"),r.lastRenderedReducer=e,0<Ha){var n=r.dispatch;if(null!==Ba){var a=Ba.get(r);if(void 0!==a){Ba.delete(r);var i=t.memoizedState;do{i=e(i,a.action),a=a.next}while(null!==a);return Xt(i,t.memoizedState)||(yi=!0),t.memoizedState=i,t.baseUpdate===r.last&&(t.baseState=i),r.lastRenderedState=i,[i,n]}}return[t.memoizedState,n]}n=r.last;var s=t.baseUpdate;if(i=t.baseState,null!==s?(null!==n&&(n.next=null),n=s.next):n=null!==n?n.next:null,null!==n){var c=a=null,l=n,u=!1;do{var p=l.expirationTime;p<Na?(u||(u=!0,c=s,a=i),p>Va&&(Va=p)):i=l.eagerReducer===e?l.eagerState:e(i,l.action),s=l,l=l.next}while(null!==l&&l!==n);u||(c=s,a=i),Xt(i,t.memoizedState)||(yi=!0),t.memoizedState=i,t.baseUpdate=c,t.baseState=a,r.lastRenderedState=i}return[t.memoizedState,r.dispatch]}function ei(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===Ua?(Ua={lastEffect:null}).lastEffect=e.next=e:null===(t=Ua.lastEffect)?Ua.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,Ua.lastEffect=e),e}function ti(e,t,r,n){var a=$a();qa|=e,a.memoizedState=ei(t,r,void 0,void 0===n?null:n)}function ri(e,t,r,n){var a=Ja();n=void 0===n?null:n;var i=void 0;if(null!==Da){var o=Da.memoizedState;if(i=o.destroy,null!==n&&Ga(n,o.deps))return void ei(Sa,r,i,n)}qa|=e,a.memoizedState=ei(t,r,i,n)}function ni(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ai(){}function ii(e,t,r){25>Ha||o("301");var n=e.alternate;if(e===Aa||null!==n&&n===Aa)if(Wa=!0,e={expirationTime:Na,action:r,eagerReducer:null,eagerState:null,next:null},null===Ba&&(Ba=new Map),void 0===(r=Ba.get(t)))Ba.set(t,e);else{for(t=r;null!==t.next;)t=t.next;t.next=e}else{Uo();var a=_s(),i={expirationTime:a=Go(a,e),action:r,eagerReducer:null,eagerState:null,next:null},s=t.last;if(null===s)i.next=i;else{var c=s.next;null!==c&&(i.next=c),s.next=i}if(t.last=i,0===e.expirationTime&&(null===n||0===n.expirationTime)&&null!==(n=t.lastRenderedReducer))try{var l=t.lastRenderedState,u=n(l,r);if(i.eagerReducer=n,i.eagerState=u,Xt(u,l))return}catch(e){}$o(e,a)}}var oi={readContext:zi,useCallback:Ka,useContext:Ka,useEffect:Ka,useImperativeHandle:Ka,useLayoutEffect:Ka,useMemo:Ka,useReducer:Ka,useRef:Ka,useState:Ka,useDebugValue:Ka},si={readContext:zi,useCallback:function(e,t){return $a().memoizedState=[e,void 0===t?null:t],e},useContext:zi,useEffect:function(e,t){return ti(516,Ta|Pa,e,t)},useImperativeHandle:function(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,ti(4,ja|Ia,ni.pwrBind(null,t,e),r)},useLayoutEffect:function(e,t){return ti(4,ja|Ia,e,t)},useMemo:function(e,t){var r=$a();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=$a();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e=(e=n.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ii.pwrBind(null,Aa,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},$a().memoizedState=e},useState:function(e){var t=$a();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:Xa,lastRenderedState:e}).dispatch=ii.pwrBind(null,Aa,e),[t.memoizedState,e]},useDebugValue:ai},ci={readContext:zi,useCallback:function(e,t){var r=Ja();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Ga(t,n[1])?n[0]:(r.memoizedState=[e,t],e)},useContext:zi,useEffect:function(e,t){return ri(516,Ta|Pa,e,t)},useImperativeHandle:function(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,ri(4,ja|Ia,ni.pwrBind(null,t,e),r)},useLayoutEffect:function(e,t){return ri(4,ja|Ia,e,t)},useMemo:function(e,t){var r=Ja();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Ga(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)},useReducer:Za,useRef:function(){return Ja().memoizedState},useState:function(e){return Za(Xa)},useDebugValue:ai},li=null,ui=null,pi=!1;function di(e,t){var r=Wn(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function fi(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function mi(e){if(pi){var t=ui;if(t){var r=t;if(!fi(e,t)){if(!(t=En(r))||!fi(e,t))return e.effectTag|=2,pi=!1,void(li=e);di(li,r)}li=e,ui=On(t)}else e.effectTag|=2,pi=!1,li=e}}function hi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;li=e}function vi(e){if(e!==li)return!1;if(!pi)return hi(e),pi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!gn(t,e.memoizedProps))for(t=ui;t;)di(e,t),t=En(t);return hi(e),ui=li?En(e.stateNode):null,!0}function gi(){ui=li=null,pi=!1}var bi=Be.ReactCurrentOwner,yi=!1;function _i(e,t,r,n){t.child=null===e?ma(t,null,r,n):fa(t,e.child,r,n)}function wi(e,t,r,n,a){r=r.render;var i=t.ref;return Fi(t,a),n=Qa(e,t,r,n,i,a),null===e||yi?(t.effectTag|=1,_i(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Pi(e,t,a))}function Ei(e,t,r,n,a,i){if(null===e){var o=r.type;return"function"!=typeof o||Bn(o)||void 0!==o.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Kn(r.type,null,n,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Oi(e,t,o,n,a,i))}return o=e.child,a<i&&(a=o.memoizedProps,(r=null!==(r=r.compare)?r:er)(a,n)&&e.ref===t.ref)?Pi(e,t,i):(t.effectTag|=1,(e=Hn(o,n)).ref=t.ref,e.return=t,t.child=e)}function Oi(e,t,r,n,a,i){return null!==e&&er(e.memoizedProps,n)&&e.ref===t.ref&&(yi=!1,a<i)?Pi(e,t,i):Ci(e,t,r,n,i)}function Si(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.effectTag|=128)}function Ci(e,t,r,n,a){var i=Nn(r)?Tn:In.current;return i=Rn(t,i),Fi(t,a),r=Qa(e,t,r,n,i,a),null===e||yi?(t.effectTag|=1,_i(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Pi(e,t,a))}function ji(e,t,r,n,a){if(Nn(r)){var i=!0;Fn(t)}else i=!1;if(Fi(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),oa(t,r,n),ca(t,r,n,a),n=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=r.contextType;"object"==typeof l&&null!==l?l=zi(l):l=Rn(t,l=Nn(r)?Tn:In.current);var u=r.getDerivedStateFromProps,p="function"==typeof u||"function"==typeof o.getSnapshotBeforeUpdate;p||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==n||c!==l)&&sa(t,o,n,l),Bi=!1;var d=t.memoizedState;c=o.state=d;var f=t.updateQueue;null!==f&&(Zi(t,f,n,o,a),c=t.memoizedState),s!==n||d!==c||Pn.current||Bi?("function"==typeof u&&(na(t,r,u,n),c=t.memoizedState),(s=Bi||ia(t,r,s,n,d,c,l))?(p||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.effectTag|=4)):("function"==typeof o.componentDidMount&&(t.effectTag|=4),t.memoizedProps=n,t.memoizedState=c),o.props=n,o.state=c,o.context=l,n=s):("function"==typeof o.componentDidMount&&(t.effectTag|=4),n=!1)}else o=t.stateNode,s=t.memoizedProps,o.props=t.type===t.elementType?s:ta(t.type,s),c=o.context,"object"==typeof(l=r.contextType)&&null!==l?l=zi(l):l=Rn(t,l=Nn(r)?Tn:In.current),(p="function"==typeof(u=r.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==n||c!==l)&&sa(t,o,n,l),Bi=!1,c=t.memoizedState,d=o.state=c,null!==(f=t.updateQueue)&&(Zi(t,f,n,o,a),d=t.memoizedState),s!==n||c!==d||Pn.current||Bi?("function"==typeof u&&(na(t,r,u,n),d=t.memoizedState),(u=Bi||ia(t,r,s,n,c,d,l))?(p||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(n,d,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(n,d,l)),"function"==typeof o.componentDidUpdate&&(t.effectTag|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=n,t.memoizedState=d),o.props=n,o.state=d,o.context=l,n=u):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),n=!1);return xi(e,t,r,n,i,a)}function xi(e,t,r,n,a,i){Si(e,t);var o=0!=(64&t.effectTag);if(!n&&!o)return a&&zn(t,r,!1),Pi(e,t,i);n=t.stateNode,bi.current=t;var s=o&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.effectTag|=1,null!==e&&o?(t.child=fa(t,e.child,null,i),t.child=fa(t,null,s,i)):_i(e,t,s,i),t.memoizedState=n.state,a&&zn(t,r,!0),t.child}function ki(e){var t=e.stateNode;t.pendingContext?Ln(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ln(0,t.context,!1),_a(e,t.containerInfo)}function Ii(e,t,r){var n=t.mode,a=t.pendingProps,i=t.memoizedState;if(0==(64&t.effectTag)){i=null;var o=!1}else i={timedOutAt:null!==i?i.timedOutAt:0},o=!0,t.effectTag&=-65;if(null===e)if(o){var s=a.fallback;e=Gn(null,n,0,null),0==(1&t.mode)&&(e.child=null!==t.memoizedState?t.child.child:t.child),n=Gn(s,n,r,null),e.sibling=n,(r=e).return=n.return=t}else r=n=ma(t,null,a.children,r);else null!==e.memoizedState?(s=(n=e.child).sibling,o?(r=a.fallback,a=Hn(n,n.pendingProps),0==(1&t.mode)&&((o=null!==t.memoizedState?t.child.child:t.child)!==n.child&&(a.child=o)),n=a.sibling=Hn(s,r,s.expirationTime),r=a,a.childExpirationTime=0,r.return=n.return=t):r=n=fa(t,n.child,a.children,r)):(s=e.child,o?(o=a.fallback,(a=Gn(null,n,0,null)).child=s,0==(1&t.mode)&&(a.child=null!==t.memoizedState?t.child.child:t.child),(n=a.sibling=Gn(o,n,r,null)).effectTag|=2,r=a,a.childExpirationTime=0,r.return=n.return=t):n=r=fa(t,s,a.children,r)),t.stateNode=e.stateNode;return t.memoizedState=i,t.child=r,n}function Pi(e,t,r){if(null!==e&&(t.contextDependencies=e.contextDependencies),t.childExpirationTime<r)return null;if(null!==e&&t.child!==e.child&&o("153"),null!==t.child){for(r=Hn(e=t.child,e.pendingProps,e.expirationTime),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Hn(e,e.pendingProps,e.expirationTime)).return=t;r.sibling=null}return t.child}function Ti(e,t,r){var n=t.expirationTime;if(null!==e){if(e.memoizedProps!==t.pendingProps||Pn.current)yi=!0;else if(n<r){switch(yi=!1,t.tag){case 3:ki(t),gi();break;case 5:Ea(t);break;case 1:Nn(t.type)&&Fn(t);break;case 4:_a(t,t.stateNode.containerInfo);break;case 10:Li(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(n=t.child.childExpirationTime)&&n>=r?Ii(e,t,r):null!==(t=Pi(e,t,r))?t.sibling:null}return Pi(e,t,r)}}else yi=!1;switch(t.expirationTime=0,t.tag){case 2:n=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var a=Rn(t,In.current);if(Fi(t,r),a=Qa(null,t,n,e,a,r),t.effectTag|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,Ya(),Nn(n)){var i=!0;Fn(t)}else i=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null;var s=n.getDerivedStateFromProps;"function"==typeof s&&na(t,n,s,e),a.updater=aa,t.stateNode=a,a._reactInternalFiber=t,ca(t,n,e,r),t=xi(null,t,n,!0,i,r)}else t.tag=0,_i(null,t,a,r),t=t.child;return t;case 16:switch(a=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),i=t.pendingProps,e=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)}),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(a),t.type=e,a=t.tag=function(e){if("function"==typeof e)return Bn(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===tt)return 11;if(e===nt)return 14}return 2}(e),i=ta(e,i),s=void 0,a){case 0:s=Ci(null,t,e,i,r);break;case 1:s=ji(null,t,e,i,r);break;case 11:s=wi(null,t,e,i,r);break;case 14:s=Ei(null,t,e,ta(e.type,i),n,r);break;default:o("306",e,"")}return s;case 0:return n=t.type,a=t.pendingProps,Ci(e,t,n,a=t.elementType===n?a:ta(n,a),r);case 1:return n=t.type,a=t.pendingProps,ji(e,t,n,a=t.elementType===n?a:ta(n,a),r);case 3:return ki(t),null===(n=t.updateQueue)&&o("282"),a=null!==(a=t.memoizedState)?a.element:null,Zi(t,n,t.pendingProps,null,r),(n=t.memoizedState.element)===a?(gi(),t=Pi(e,t,r)):(a=t.stateNode,(a=(null===e||null===e.child)&&a.hydrate)&&(ui=On(t.stateNode.containerInfo),li=t,a=pi=!0),a?(t.effectTag|=2,t.child=ma(t,null,n,r)):(_i(e,t,n,r),gi()),t=t.child),t;case 5:return Ea(t),null===e&&mi(t),n=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,s=a.children,gn(n,a)?s=null:null!==i&&gn(n,i)&&(t.effectTag|=16),Si(e,t),1!==r&&1&t.mode&&a.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(_i(e,t,s,r),t=t.child),t;case 6:return null===e&&mi(t),null;case 13:return Ii(e,t,r);case 4:return _a(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=fa(t,null,n,r):_i(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,wi(e,t,n,a=t.elementType===n?a:ta(n,a),r);case 7:return _i(e,t,t.pendingProps,r),t.child;case 8:case 12:return _i(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,s=t.memoizedProps,Li(t,i=a.value),null!==s){var c=s.value;if(0===(i=Xt(c,i)?0:0|("function"==typeof n._calculateChangedBits?n._calculateChangedBits(c,i):1073741823))){if(s.children===a.children&&!Pn.current){t=Pi(e,t,r);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var l=c.contextDependencies;if(null!==l){s=c.child;for(var u=l.first;null!==u;){if(u.context===n&&0!=(u.observedBits&i)){1===c.tag&&((u=Gi(r)).tag=qi,Yi(c,u)),c.expirationTime<r&&(c.expirationTime=r),null!==(u=c.alternate)&&u.expirationTime<r&&(u.expirationTime=r),u=r;for(var p=c.return;null!==p;){var d=p.alternate;if(p.childExpirationTime<u)p.childExpirationTime=u,null!==d&&d.childExpirationTime<u&&(d.childExpirationTime=u);else{if(!(null!==d&&d.childExpirationTime<u))break;d.childExpirationTime=u}p=p.return}l.expirationTime<r&&(l.expirationTime=r);break}u=u.next}}else s=10===c.tag&&c.type===t.type?null:c.child;if(null!==s)s.return=c;else for(s=c;null!==s;){if(s===t){s=null;break}if(null!==(c=s.sibling)){c.return=s.return,s=c;break}s=s.return}c=s}}_i(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=(i=t.pendingProps).children,Fi(t,r),n=n(a=zi(a,i.unstable_observedBits)),t.effectTag|=1,_i(e,t,n,r),t.child;case 14:return i=ta(a=t.type,t.pendingProps),Ei(e,t,a,i=ta(a.type,i),n,r);case 15:return Oi(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:ta(n,a),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Nn(n)?(e=!0,Fn(t)):e=!1,Fi(t,r),oa(t,n,a),ca(t,n,a,r),xi(null,t,n,!0,e,r)}o("156")}var Ri={current:null},Ni=null,Ai=null,Di=null;function Li(e,t){var r=e.type._context;xn(Ri,r._currentValue),r._currentValue=t}function Mi(e){var t=Ri.current;jn(Ri),e.type._context._currentValue=t}function Fi(e,t){Ni=e,Di=Ai=null;var r=e.contextDependencies;null!==r&&r.expirationTime>=t&&(yi=!0),e.contextDependencies=null}function zi(e,t){return Di!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(Di=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ai?(null===Ni&&o("308"),Ai=t,Ni.contextDependencies={first:t,expirationTime:0}):Ai=Ai.next=t),e._currentValue}var Vi=0,Ui=1,qi=2,Wi=3,Bi=!1;function Hi(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Ki(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Gi(e){return{expirationTime:e,tag:Vi,payload:null,callback:null,next:null,nextEffect:null}}function Qi(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Yi(e,t){var r=e.alternate;if(null===r){var n=e.updateQueue,a=null;null===n&&(n=e.updateQueue=Hi(e.memoizedState))}else n=e.updateQueue,a=r.updateQueue,null===n?null===a?(n=e.updateQueue=Hi(e.memoizedState),a=r.updateQueue=Hi(r.memoizedState)):n=e.updateQueue=Ki(a):null===a&&(a=r.updateQueue=Ki(n));null===a||n===a?Qi(n,t):null===n.lastUpdate||null===a.lastUpdate?(Qi(n,t),Qi(a,t)):(Qi(n,t),a.lastUpdate=t)}function $i(e,t){var r=e.updateQueue;null===(r=null===r?e.updateQueue=Hi(e.memoizedState):Ji(e,r)).lastCapturedUpdate?r.firstCapturedUpdate=r.lastCapturedUpdate=t:(r.lastCapturedUpdate.next=t,r.lastCapturedUpdate=t)}function Ji(e,t){var r=e.alternate;return null!==r&&t===r.updateQueue&&(t=e.updateQueue=Ki(t)),t}function Xi(e,t,r,n,i,o){switch(r.tag){case Ui:return"function"==typeof(e=r.payload)?e.call(o,n,i):e;case Wi:e.effectTag=-2049&e.effectTag|64;case Vi:if(null===(i="function"==typeof(e=r.payload)?e.call(o,n,i):e)||void 0===i)break;return a({},n,i);case qi:Bi=!0}return n}function Zi(e,t,r,n,a){Bi=!1;for(var i=(t=Ji(e,t)).baseState,o=null,s=0,c=t.firstUpdate,l=i;null!==c;){var u=c.expirationTime;u<a?(null===o&&(o=c,i=l),s<u&&(s=u)):(l=Xi(e,0,c,l,r,n),null!==c.callback&&(e.effectTag|=32,c.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=c:(t.lastEffect.nextEffect=c,t.lastEffect=c))),c=c.next}for(u=null,c=t.firstCapturedUpdate;null!==c;){var p=c.expirationTime;p<a?(null===u&&(u=c,null===o&&(i=l)),s<p&&(s=p)):(l=Xi(e,0,c,l,r,n),null!==c.callback&&(e.effectTag|=32,c.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=c:(t.lastCapturedEffect.nextEffect=c,t.lastCapturedEffect=c))),c=c.next}null===o&&(t.lastUpdate=null),null===u?t.lastCapturedUpdate=null:e.effectTag|=32,null===o&&null===u&&(i=l),t.baseState=i,t.firstUpdate=o,t.firstCapturedUpdate=u,e.expirationTime=s,e.memoizedState=l}function eo(e,t,r){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),to(t.firstEffect,r),t.firstEffect=t.lastEffect=null,to(t.firstCapturedEffect,r),t.firstCapturedEffect=t.lastCapturedEffect=null}function to(e,t){for(;null!==e;){var r=e.callback;if(null!==r){e.callback=null;var n=t;"function"!=typeof r&&o("191",r),r.call(n)}e=e.nextEffect}}function ro(e,t){return{value:e,source:t,stack:ct(t)}}function no(e){e.effectTag|=4}var ao=void 0,io=void 0,oo=void 0,so=void 0;ao=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},io=function(){},oo=function(e,t,r,n,i){var o=e.memoizedProps;if(o!==n){var s=t.stateNode;switch(ya(va.current),e=null,r){case"input":o=yt(s,o),n=yt(s,n),e=[];break;case"option":o=Kr(s,o),n=Kr(s,n),e=[];break;case"select":o=a({},o,{value:void 0}),n=a({},n,{value:void 0}),e=[];break;case"textarea":o=Qr(s,o),n=Qr(s,n),e=[];break;default:"function"!=typeof o.onClick&&"function"==typeof n.onClick&&(s.onclick=fn)}un(r,n),s=r=void 0;var c=null;for(r in o)if(!n.hasOwnProperty(r)&&o.hasOwnProperty(r)&&null!=o[r])if("style"===r){var l=o[r];for(s in l)l.hasOwnProperty(s)&&(c||(c={}),c[s]="")}else"dangerouslySetInnerHTML"!==r&&"children"!==r&&"suppressContentEditableWarning"!==r&&"suppressHydrationWarning"!==r&&"autoFocus"!==r&&(y.hasOwnProperty(r)?e||(e=[]):(e=e||[]).push(r,null));for(r in n){var u=n[r];if(l=null!=o?o[r]:void 0,n.hasOwnProperty(r)&&u!==l&&(null!=u||null!=l))if("style"===r)if(l){for(s in l)!l.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(c||(c={}),c[s]="");for(s in u)u.hasOwnProperty(s)&&l[s]!==u[s]&&(c||(c={}),c[s]=u[s])}else c||(e||(e=[]),e.push(r,c)),c=u;else"dangerouslySetInnerHTML"===r?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(e=e||[]).push(r,""+u)):"children"===r?l===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(r,""+u):"suppressContentEditableWarning"!==r&&"suppressHydrationWarning"!==r&&(y.hasOwnProperty(r)?(null!=u&&dn(i,r),e||l===u||(e=[])):(e=e||[]).push(r,u))}c&&(e=e||[]).push("style",c),i=e,(t.updateQueue=i)&&no(t)}},so=function(e,t,r,n){r!==n&&no(t)};var co="function"==typeof WeakSet?WeakSet:Set;function lo(e,t){var r=t.source,n=t.stack;null===n&&null!==r&&(n=ct(r)),null!==r&&st(r.type),t=t.value,null!==e&&1===e.tag&&st(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function uo(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ko(e,t)}else t.current=null}function po(e,t,r){if(null!==(r=null!==(r=r.updateQueue)?r.lastEffect:null)){var n=r=r.next;do{if((n.tag&e)!==Sa){var a=n.destroy;n.destroy=void 0,void 0!==a&&a()}(n.tag&t)!==Sa&&(a=n.create,n.destroy=a()),n=n.next}while(n!==r)}}function fo(e){switch("function"==typeof Un&&Un(e),e.tag){case 0:case 11:case 14:case 15:var t=e.updateQueue;if(null!==t&&null!==(t=t.lastEffect)){var r=t=t.next;do{var n=r.destroy;if(void 0!==n){var a=e;try{n()}catch(e){Ko(a,e)}}r=r.next}while(r!==t)}break;case 1:if(uo(e),"function"==typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Ko(e,t)}break;case 5:uo(e);break;case 4:vo(e)}}function mo(e){return 5===e.tag||3===e.tag||4===e.tag}function ho(e){e:{for(var t=e.return;null!==t;){if(mo(t)){var r=t;break e}t=t.return}o("160"),r=void 0}var n=t=void 0;switch(r.tag){case 5:t=r.stateNode,n=!1;break;case 3:case 4:t=r.stateNode.containerInfo,n=!0;break;default:o("161")}16&r.effectTag&&(nn(t,""),r.effectTag&=-17);e:t:for(r=e;;){for(;null===r.sibling;){if(null===r.return||mo(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag&&18!==r.tag;){if(2&r.effectTag)continue t;if(null===r.child||4===r.tag)continue t;r.child.return=r,r=r.child}if(!(2&r.effectTag)){r=r.stateNode;break e}}for(var a=e;;){if(5===a.tag||6===a.tag)if(r)if(n){var i=t,s=a.stateNode,c=r;8===i.nodeType?i.parentNode.insertBefore(s,c):i.insertBefore(s,c)}else t.insertBefore(a.stateNode,r);else n?(s=t,c=a.stateNode,8===s.nodeType?(i=s.parentNode).insertBefore(c,s):(i=s).appendChild(c),null!==(s=s._reactRootContainer)&&void 0!==s||null!==i.onclick||(i.onclick=fn)):t.appendChild(a.stateNode);else if(4!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===e)break;for(;null===a.sibling;){if(null===a.return||a.return===e)return;a=a.return}a.sibling.return=a.return,a=a.sibling}}function vo(e){for(var t=e,r=!1,n=void 0,a=void 0;;){if(!r){r=t.return;e:for(;;){switch(null===r&&o("160"),r.tag){case 5:n=r.stateNode,a=!1;break e;case 3:case 4:n=r.stateNode.containerInfo,a=!0;break e}r=r.return}r=!0}if(5===t.tag||6===t.tag){e:for(var i=t,s=i;;)if(fo(s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===i)break;for(;null===s.sibling;){if(null===s.return||s.return===i)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}a?(i=n,s=t.stateNode,8===i.nodeType?i.parentNode.removeChild(s):i.removeChild(s)):n.removeChild(t.stateNode)}else if(4===t.tag){if(null!==t.child){n=t.stateNode.containerInfo,a=!0,t.child.return=t,t=t.child;continue}}else if(fo(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;4===(t=t.return).tag&&(r=!1)}t.sibling.return=t.return,t=t.sibling}}function go(e,t){switch(t.tag){case 0:case 11:case 14:case 15:po(ja,xa,t);break;case 1:break;case 5:var r=t.stateNode;if(null!=r){var n=t.memoizedProps;e=null!==e?e.memoizedProps:n;var a=t.type,i=t.updateQueue;t.updateQueue=null,null!==i&&function(e,t,r,n,a){e[A]=a,"input"===r&&"radio"===a.type&&null!=a.name&&wt(e,a),pn(r,n),n=pn(r,a);for(var i=0;i<t.length;i+=2){var o=t[i],s=t[i+1];"style"===o?cn(e,s):"dangerouslySetInnerHTML"===o?rn(e,s):"children"===o?nn(e,s):gt(e,o,s,n)}switch(r){case"input":Et(e,a);break;case"textarea":$r(e,a);break;case"select":t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!a.multiple,null!=(r=a.value)?Gr(e,!!a.multiple,r,!1):t!==!!a.multiple&&(null!=a.defaultValue?Gr(e,!!a.multiple,a.defaultValue,!0):Gr(e,!!a.multiple,a.multiple?[]:"",!1))}}(r,i,a,e,n)}break;case 6:null===t.stateNode&&o("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(r=t.memoizedState,n=void 0,e=t,null===r?n=!1:(n=!0,e=t.child,0===r.timedOutAt&&(r.timedOutAt=_s())),null!==e&&function(e,t){for(var r=e;;){if(5===r.tag){var n=r.stateNode;if(t)n.style.display="none";else{n=r.stateNode;var a=r.memoizedProps.style;a=void 0!==a&&null!==a&&a.hasOwnProperty("display")?a.display:null,n.style.display=sn("display",a)}}else if(6===r.tag)r.stateNode.nodeValue=t?"":r.memoizedProps;else{if(13===r.tag&&null!==r.memoizedState){(n=r.child.sibling).return=r,r=n;continue}if(null!==r.child){r.child.return=r,r=r.child;continue}}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}(e,n),null!==(r=t.updateQueue)){t.updateQueue=null;var s=t.stateNode;null===s&&(s=t.stateNode=new co),r.forEach(function(e){var r=function(e,t){var r=e.stateNode;null!==r&&r.delete(t),t=Go(t=_s(),e),null!==(e=Yo(e,t))&&(Jn(e,t),0!==(t=e.expirationTime)&&ws(e,t))}.pwrBind(null,t,e);s.has(e)||(s.add(e),e.then(r,r))})}break;case 17:break;default:o("163")}}var bo="function"==typeof WeakMap?WeakMap:Map;function yo(e,t,r){(r=Gi(r)).tag=Wi,r.payload={element:null};var n=t.value;return r.callback=function(){Ps(n),lo(e,t)},r}function _o(e,t,r){(r=Gi(r)).tag=Wi;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var a=t.value;r.payload=function(){return n(a)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(r.callback=function(){"function"!=typeof n&&(null===Lo?Lo=new Set([this]):Lo.add(this));var r=t.value,a=t.stack;lo(e,t),this.componentDidCatch(r,{componentStack:null!==a?a:""})}),r}function wo(e){switch(e.tag){case 1:Nn(e.type)&&An();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return wa(),Dn(),0!=(64&(t=e.effectTag))&&o("285"),e.effectTag=-2049&t|64,e;case 5:return Oa(e),null;case 13:return 2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:return null;case 4:return wa(),null;case 10:return Mi(e),null;default:return null}}var Eo=Be.ReactCurrentDispatcher,Oo=Be.ReactCurrentOwner,So=1073741822,Co=!1,jo=null,xo=null,ko=0,Io=-1,Po=!1,To=null,Ro=!1,No=null,Ao=null,Do=null,Lo=null;function Mo(){if(null!==jo)for(var e=jo.return;null!==e;){var t=e;switch(t.tag){case 1:var r=t.type.childContextTypes;null!==r&&void 0!==r&&An();break;case 3:wa(),Dn();break;case 5:Oa(t);break;case 4:wa();break;case 10:Mi(t)}e=e.return}xo=null,ko=0,Io=-1,Po=!1,jo=null}function Fo(){for(;null!==To;){var e=To.effectTag;if(16&e&&nn(To.stateNode,""),128&e){var t=To.alternate;null!==t&&(null!==(t=t.ref)&&("function"==typeof t?t(null):t.current=null))}switch(14&e){case 2:ho(To),To.effectTag&=-3;break;case 6:ho(To),To.effectTag&=-3,go(To.alternate,To);break;case 4:go(To.alternate,To);break;case 8:vo(e=To),e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,null!==(e=e.alternate)&&(e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null)}To=To.nextEffect}}function zo(){for(;null!==To;){if(256&To.effectTag)e:{var e=To.alternate,t=To;switch(t.tag){case 0:case 11:case 15:po(Ca,Sa,t);break e;case 1:if(256&t.effectTag&&null!==e){var r=e.memoizedProps,n=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?r:ta(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}break e;case 3:case 5:case 6:case 4:case 17:break e;default:o("163")}}To=To.nextEffect}}function Vo(e,t){for(;null!==To;){var r=To.effectTag;if(36&r){var n=To.alternate,a=To,i=t;switch(a.tag){case 0:case 11:case 15:po(ka,Ia,a);break;case 1:var s=a.stateNode;if(4&a.effectTag)if(null===n)s.componentDidMount();else{var c=a.elementType===a.type?n.memoizedProps:ta(a.type,n.memoizedProps);s.componentDidUpdate(c,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}null!==(n=a.updateQueue)&&eo(0,n,s);break;case 3:if(null!==(n=a.updateQueue)){if(s=null,null!==a.child)switch(a.child.tag){case 5:s=a.child.stateNode;break;case 1:s=a.child.stateNode}eo(0,n,s)}break;case 5:i=a.stateNode,null===n&&4&a.effectTag&&vn(a.type,a.memoizedProps)&&i.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:o("163")}}128&r&&(null!==(a=To.ref)&&(i=To.stateNode,"function"==typeof a?a(i):a.current=i)),512&r&&(No=e),To=To.nextEffect}}function Uo(){null!==Ao&&wn(Ao),null!==Do&&Do()}function qo(e,t){Ro=Co=!0,e.current===t&&o("177");var r=e.pendingCommitExpirationTime;0===r&&o("261"),e.pendingCommitExpirationTime=0;var n=t.expirationTime,a=t.childExpirationTime;for(function(e,t){if(e.didError=!1,0===t)e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0;else{t<e.latestPingedTime&&(e.latestPingedTime=0);var r=e.latestPendingTime;0!==r&&(r>t?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>t&&(e.earliestPendingTime=e.latestPendingTime)),0===(r=e.earliestSuspendedTime)?Jn(e,t):t<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,Jn(e,t)):t>r&&Jn(e,t)}ea(0,e)}(e,a>n?a:n),Oo.current=null,n=void 0,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,n=t.firstEffect):n=t:n=t.firstEffect,mn=Or,hn=function(){var e=Dr();if(Lr(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(r&&0!==r.rangeCount){t=r.anchorNode;var n=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{t.nodeType,a.nodeType}catch(e){t=null;break e}var i=0,o=-1,s=-1,c=0,l=0,u=e,p=null;t:for(;;){for(var d;u!==t||0!==n&&3!==u.nodeType||(o=i+n),u!==a||0!==r&&3!==u.nodeType||(s=i+r),3===u.nodeType&&(i+=u.nodeValue.length),null!==(d=u.firstChild);)p=u,u=d;for(;;){if(u===e)break t;if(p===t&&++c===n&&(o=i),p===a&&++l===r&&(s=i),null!==(d=u.nextSibling))break;p=(u=p).parentNode}u=d}t=-1===o||-1===s?null:{start:o,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;return{focusedElem:e,selectionRange:t}}(),Or=!1,To=n;null!==To;){a=!1;var s=void 0;try{zo()}catch(e){a=!0,s=e}a&&(null===To&&o("178"),Ko(To,s),null!==To&&(To=To.nextEffect))}for(To=n;null!==To;){a=!1,s=void 0;try{Fo()}catch(e){a=!0,s=e}a&&(null===To&&o("178"),Ko(To,s),null!==To&&(To=To.nextEffect))}for(Mr(hn),hn=null,Or=!!mn,mn=null,e.current=t,To=n;null!==To;){a=!1,s=void 0;try{Vo(e,r)}catch(e){a=!0,s=e}a&&(null===To&&o("178"),Ko(To,s),null!==To&&(To=To.nextEffect))}if(null!==n&&null!==No){var c=function(e,t){Do=Ao=No=null;var r=rs;rs=!0;do{if(512&t.effectTag){var n=!1,a=void 0;try{var i=t;po(Ta,Sa,i),po(Sa,Pa,i)}catch(e){n=!0,a=e}n&&Ko(t,a)}t=t.nextEffect}while(null!==t);rs=r,0!==(r=e.expirationTime)&&ws(e,r),cs||rs||js(1073741823,!1)}.pwrBind(null,e,n);Ao=i.unstable_runWithPriority(i.unstable_NormalPriority,function(){return _n(c)}),Do=c}Co=Ro=!1,"function"==typeof Vn&&Vn(t.stateNode),r=t.expirationTime,0===(t=(t=t.childExpirationTime)>r?t:r)&&(Lo=null),function(e,t){e.expirationTime=t,e.finishedWork=null}(e,t)}function Wo(e){for(;;){var t=e.alternate,r=e.return,n=e.sibling;if(0==(1024&e.effectTag)){jo=e;e:{var i=t,s=ko,c=(t=e).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:Nn(t.type)&&An();break;case 3:wa(),Dn(),(c=t.stateNode).pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),null!==i&&null!==i.child||(vi(t),t.effectTag&=-3),io(t);break;case 5:Oa(t);var l=ya(ba.current);if(s=t.type,null!==i&&null!=t.stateNode)oo(i,t,s,c,l),i.ref!==t.ref&&(t.effectTag|=128);else if(c){var u=ya(va.current);if(vi(t)){i=(c=t).stateNode;var p=c.type,d=c.memoizedProps,f=l;switch(i[N]=c,i[A]=d,s=void 0,l=p){case"iframe":case"object":Sr("load",i);break;case"video":case"audio":for(p=0;p<te.length;p++)Sr(te[p],i);break;case"source":Sr("error",i);break;case"img":case"image":case"link":Sr("error",i),Sr("load",i);break;case"form":Sr("reset",i),Sr("submit",i);break;case"details":Sr("toggle",i);break;case"input":_t(i,d),Sr("invalid",i),dn(f,"onChange");break;case"select":i._wrapperState={wasMultiple:!!d.multiple},Sr("invalid",i),dn(f,"onChange");break;case"textarea":Yr(i,d),Sr("invalid",i),dn(f,"onChange")}for(s in un(l,d),p=null,d)d.hasOwnProperty(s)&&(u=d[s],"children"===s?"string"==typeof u?i.textContent!==u&&(p=["children",u]):"number"==typeof u&&i.textContent!==""+u&&(p=["children",""+u]):y.hasOwnProperty(s)&&null!=u&&dn(f,s));switch(l){case"input":qe(i),Ot(i,d,!0);break;case"textarea":qe(i),Jr(i);break;case"select":case"option":break;default:"function"==typeof d.onClick&&(i.onclick=fn)}s=p,c.updateQueue=s,(c=null!==s)&&no(t)}else{d=t,f=s,i=c,p=9===l.nodeType?l:l.ownerDocument,u===Xr.html&&(u=Zr(f)),u===Xr.html?"script"===f?((i=p.createElement("div")).innerHTML="<script><\/script>",p=i.removeChild(i.firstChild)):"string"==typeof i.is?p=p.createElement(f,{is:i.is}):(p=p.createElement(f),"select"===f&&(f=p,i.multiple?f.multiple=!0:i.size&&(f.size=i.size))):p=p.createElementNS(u,f),(i=p)[N]=d,i[A]=c,ao(i,t,!1,!1),f=i;var m=l,h=pn(p=s,d=c);switch(p){case"iframe":case"object":Sr("load",f),l=d;break;case"video":case"audio":for(l=0;l<te.length;l++)Sr(te[l],f);l=d;break;case"source":Sr("error",f),l=d;break;case"img":case"image":case"link":Sr("error",f),Sr("load",f),l=d;break;case"form":Sr("reset",f),Sr("submit",f),l=d;break;case"details":Sr("toggle",f),l=d;break;case"input":_t(f,d),l=yt(f,d),Sr("invalid",f),dn(m,"onChange");break;case"option":l=Kr(f,d);break;case"select":f._wrapperState={wasMultiple:!!d.multiple},l=a({},d,{value:void 0}),Sr("invalid",f),dn(m,"onChange");break;case"textarea":Yr(f,d),l=Qr(f,d),Sr("invalid",f),dn(m,"onChange");break;default:l=d}un(p,l),u=void 0;var v=p,g=f,b=l;for(u in b)if(b.hasOwnProperty(u)){var _=b[u];"style"===u?cn(g,_):"dangerouslySetInnerHTML"===u?null!=(_=_?_.__html:void 0)&&rn(g,_):"children"===u?"string"==typeof _?("textarea"!==v||""!==_)&&nn(g,_):"number"==typeof _&&nn(g,""+_):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(y.hasOwnProperty(u)?null!=_&&dn(m,u):null!=_&&gt(g,u,_,h))}switch(p){case"input":qe(f),Ot(f,d,!1);break;case"textarea":qe(f),Jr(f);break;case"option":null!=d.value&&f.setAttribute("value",""+bt(d.value));break;case"select":(l=f).multiple=!!d.multiple,null!=(f=d.value)?Gr(l,!!d.multiple,f,!1):null!=d.defaultValue&&Gr(l,!!d.multiple,d.defaultValue,!0);break;default:"function"==typeof l.onClick&&(f.onclick=fn)}(c=vn(s,c))&&no(t),t.stateNode=i}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&o("166");break;case 6:i&&null!=t.stateNode?so(i,t,i.memoizedProps,c):("string"!=typeof c&&(null===t.stateNode&&o("166")),i=ya(ba.current),ya(va.current),vi(t)?(s=(c=t).stateNode,i=c.memoizedProps,s[N]=c,(c=s.nodeValue!==i)&&no(t)):(s=t,(c=(9===i.nodeType?i:i.ownerDocument).createTextNode(c))[N]=t,s.stateNode=c));break;case 11:break;case 13:if(c=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=s,jo=t;break e}c=null!==c,s=null!==i&&null!==i.memoizedState,null!==i&&!c&&s&&(null!==(i=i.child.sibling)&&(null!==(l=t.firstEffect)?(t.firstEffect=i,i.nextEffect=l):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),(c||s)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:wa(),io(t);break;case 10:Mi(t);break;case 9:case 14:break;case 17:Nn(t.type)&&An();break;case 18:break;default:o("156")}jo=null}if(t=e,1===ko||1!==t.childExpirationTime){for(c=0,s=t.child;null!==s;)i=s.expirationTime,l=s.childExpirationTime,i>c&&(c=i),l>c&&(c=l),s=s.sibling;t.childExpirationTime=c}if(null!==jo)return jo;null!==r&&0==(1024&r.effectTag)&&(null===r.firstEffect&&(r.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==r.lastEffect&&(r.lastEffect.nextEffect=e.firstEffect),r.lastEffect=e.lastEffect),1<e.effectTag&&(null!==r.lastEffect?r.lastEffect.nextEffect=e:r.firstEffect=e,r.lastEffect=e))}else{if(null!==(e=wo(e)))return e.effectTag&=1023,e;null!==r&&(r.firstEffect=r.lastEffect=null,r.effectTag|=1024)}if(null!==n)return n;if(null===r)break;e=r}return null}function Bo(e){var t=Ti(e.alternate,e,ko);return e.memoizedProps=e.pendingProps,null===t&&(t=Wo(e)),Oo.current=null,t}function Ho(e,t){Co&&o("243"),Uo(),Co=!0;var r=Eo.current;Eo.current=oi;var n=e.nextExpirationTimeToWorkOn;n===ko&&e===xo&&null!==jo||(Mo(),ko=n,jo=Hn((xo=e).current,null),e.pendingCommitExpirationTime=0);for(var a=!1;;){try{if(t)for(;null!==jo&&!Ss();)jo=Bo(jo);else for(;null!==jo;)jo=Bo(jo)}catch(t){if(Di=Ai=Ni=null,Ya(),null===jo)a=!0,Ps(t);else{null===jo&&o("271");var i=jo,s=i.return;if(null!==s){e:{var c=e,l=s,u=i,p=t;if(s=ko,u.effectTag|=1024,u.firstEffect=u.lastEffect=null,null!==p&&"object"==typeof p&&"function"==typeof p.then){var d=p;p=l;var f=-1,m=-1;do{if(13===p.tag){var h=p.alternate;if(null!==h&&null!==(h=h.memoizedState)){m=10*(1073741822-h.timedOutAt);break}"number"==typeof(h=p.pendingProps.maxDuration)&&(0>=h?f=0:(-1===f||h<f)&&(f=h))}p=p.return}while(null!==p);p=l;do{if((h=13===p.tag)&&(h=void 0!==p.memoizedProps.fallback&&null===p.memoizedState),h){if(null===(l=p.updateQueue)?((l=new Set).add(d),p.updateQueue=l):l.add(d),0==(1&p.mode)){p.effectTag|=64,u.effectTag&=-1957,1===u.tag&&(null===u.alternate?u.tag=17:((s=Gi(1073741823)).tag=qi,Yi(u,s))),u.expirationTime=1073741823;break e}l=s;var v=(u=c).pingCache;null===v?(v=u.pingCache=new bo,h=new Set,v.set(d,h)):void 0===(h=v.get(d))&&(h=new Set,v.set(d,h)),h.has(l)||(h.add(l),u=Qo.pwrBind(null,u,d,l),d.then(u,u)),-1===f?c=1073741823:(-1===m&&(m=10*(1073741822-Zn(c,s))-5e3),c=m+f),0<=c&&Io<c&&(Io=c),p.effectTag|=2048,p.expirationTime=s;break e}p=p.return}while(null!==p);p=Error((st(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ct(u))}Po=!0,p=ro(p,u),c=l;do{switch(c.tag){case 3:c.effectTag|=2048,c.expirationTime=s,$i(c,s=yo(c,p,s));break e;case 1:if(f=p,m=c.type,u=c.stateNode,0==(64&c.effectTag)&&("function"==typeof m.getDerivedStateFromError||null!==u&&"function"==typeof u.componentDidCatch&&(null===Lo||!Lo.has(u)))){c.effectTag|=2048,c.expirationTime=s,$i(c,s=_o(c,f,s));break e}}c=c.return}while(null!==c)}jo=Wo(i);continue}a=!0,Ps(t)}}break}if(Co=!1,Eo.current=r,Di=Ai=Ni=null,Ya(),a)xo=null,e.finishedWork=null;else if(null!==jo)e.finishedWork=null;else{if(null===(r=e.current.alternate)&&o("281"),xo=null,Po){if(a=e.latestPendingTime,i=e.latestSuspendedTime,s=e.latestPingedTime,0!==a&&a<n||0!==i&&i<n||0!==s&&s<n)return Xn(e,n),void ys(e,r,n,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,n=e.nextExpirationTimeToWorkOn=n,t=e.expirationTime=1073741823,void ys(e,r,n,t,-1)}t&&-1!==Io?(Xn(e,n),(t=10*(1073741822-Zn(e,n)))<Io&&(Io=t),t=10*(1073741822-_s()),t=Io-t,ys(e,r,n,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=n,e.finishedWork=r)}}function Ko(e,t){for(var r=e.return;null!==r;){switch(r.tag){case 1:var n=r.stateNode;if("function"==typeof r.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Lo||!Lo.has(n)))return Yi(r,e=_o(r,e=ro(t,e),1073741823)),void $o(r,1073741823);break;case 3:return Yi(r,e=yo(r,e=ro(t,e),1073741823)),void $o(r,1073741823)}r=r.return}3===e.tag&&(Yi(e,r=yo(e,r=ro(t,e),1073741823)),$o(e,1073741823))}function Go(e,t){var r=i.unstable_getCurrentPriorityLevel(),n=void 0;if(0==(1&t.mode))n=1073741823;else if(Co&&!Ro)n=ko;else{switch(r){case i.unstable_ImmediatePriority:n=1073741823;break;case i.unstable_UserBlockingPriority:n=1073741822-10*(1+((1073741822-e+15)/10|0));break;case i.unstable_NormalPriority:n=1073741822-25*(1+((1073741822-e+500)/25|0));break;case i.unstable_LowPriority:case i.unstable_IdlePriority:n=1;break;default:o("313")}null!==xo&&n===ko&&--n}return r===i.unstable_UserBlockingPriority&&(0===is||n<is)&&(is=n),n}function Qo(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),null!==xo&&ko===r?xo=null:(t=e.earliestSuspendedTime,n=e.latestSuspendedTime,0!==t&&r<=t&&r>=n&&(e.didError=!1,(0===(t=e.latestPingedTime)||t>r)&&(e.latestPingedTime=r),ea(r,e),0!==(r=e.expirationTime)&&ws(e,r)))}function Yo(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;null!==r&&r.expirationTime<t&&(r.expirationTime=t);var n=e.return,a=null;if(null===n&&3===e.tag)a=e.stateNode;else for(;null!==n;){if(r=n.alternate,n.childExpirationTime<t&&(n.childExpirationTime=t),null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t),null===n.return&&3===n.tag){a=n.stateNode;break}n=n.return}return a}function $o(e,t){null!==(e=Yo(e,t))&&(!Co&&0!==ko&&t>ko&&Mo(),Jn(e,t),Co&&!Ro&&xo===e||ws(e,e.expirationTime),hs>ms&&(hs=0,o("185")))}function Jo(e,t,r,n,a){return i.unstable_runWithPriority(i.unstable_ImmediatePriority,function(){return e(t,r,n,a)})}var Xo=null,Zo=null,es=0,ts=void 0,rs=!1,ns=null,as=0,is=0,os=!1,ss=null,cs=!1,ls=!1,us=null,ps=i.unstable_now(),ds=1073741822-(ps/10|0),fs=ds,ms=50,hs=0,vs=null;function gs(){ds=1073741822-((i.unstable_now()-ps)/10|0)}function bs(e,t){if(0!==es){if(t<es)return;null!==ts&&i.unstable_cancelCallback(ts)}es=t,e=i.unstable_now()-ps,ts=i.unstable_scheduleCallback(Cs,{timeout:10*(1073741822-t)-e})}function ys(e,t,r,n,a){e.expirationTime=n,0!==a||Ss()?0<a&&(e.timeoutHandle=bn(function(e,t,r){e.pendingCommitExpirationTime=r,e.finishedWork=t,gs(),fs=ds,xs(e,r)}.pwrBind(null,e,t,r),a)):(e.pendingCommitExpirationTime=r,e.finishedWork=t)}function _s(){return rs?fs:(Es(),0!==as&&1!==as||(gs(),fs=ds),fs)}function ws(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===Zo?(Xo=Zo=e,e.nextScheduledRoot=e):(Zo=Zo.nextScheduledRoot=e).nextScheduledRoot=Xo):t>e.expirationTime&&(e.expirationTime=t),rs||(cs?ls&&(ns=e,as=1073741823,ks(e,1073741823,!1)):1073741823===t?js(1073741823,!1):bs(e,t))}function Es(){var e=0,t=null;if(null!==Zo)for(var r=Zo,n=Xo;null!==n;){var a=n.expirationTime;if(0===a){if((null===r||null===Zo)&&o("244"),n===n.nextScheduledRoot){Xo=Zo=n.nextScheduledRoot=null;break}if(n===Xo)Xo=a=n.nextScheduledRoot,Zo.nextScheduledRoot=a,n.nextScheduledRoot=null;else{if(n===Zo){(Zo=r).nextScheduledRoot=Xo,n.nextScheduledRoot=null;break}r.nextScheduledRoot=n.nextScheduledRoot,n.nextScheduledRoot=null}n=r.nextScheduledRoot}else{if(a>e&&(e=a,t=n),n===Zo)break;if(1073741823===e)break;r=n,n=n.nextScheduledRoot}}ns=t,as=e}var Os=!1;function Ss(){return!!Os||!!i.unstable_shouldYield()&&(Os=!0)}function Cs(){try{if(!Ss()&&null!==Xo){gs();var e=Xo;do{var t=e.expirationTime;0!==t&&ds<=t&&(e.nextExpirationTimeToWorkOn=ds),e=e.nextScheduledRoot}while(e!==Xo)}js(0,!0)}finally{Os=!1}}function js(e,t){if(Es(),t)for(gs(),fs=ds;null!==ns&&0!==as&&e<=as&&!(Os&&ds>as);)ks(ns,as,ds>as),Es(),gs(),fs=ds;else for(;null!==ns&&0!==as&&e<=as;)ks(ns,as,!1),Es();if(t&&(es=0,ts=null),0!==as&&bs(ns,as),hs=0,vs=null,null!==us)for(e=us,us=null,t=0;t<e.length;t++){var r=e[t];try{r._onComplete()}catch(e){os||(os=!0,ss=e)}}if(os)throw e=ss,ss=null,os=!1,e}function xs(e,t){rs&&o("253"),ns=e,as=t,ks(e,t,!1),js(1073741823,!1)}function ks(e,t,r){if(rs&&o("245"),rs=!0,r){var n=e.finishedWork;null!==n?Is(e,n,t):(e.finishedWork=null,-1!==(n=e.timeoutHandle)&&(e.timeoutHandle=-1,yn(n)),Ho(e,r),null!==(n=e.finishedWork)&&(Ss()?e.finishedWork=n:Is(e,n,t)))}else null!==(n=e.finishedWork)?Is(e,n,t):(e.finishedWork=null,-1!==(n=e.timeoutHandle)&&(e.timeoutHandle=-1,yn(n)),Ho(e,r),null!==(n=e.finishedWork)&&Is(e,n,t));rs=!1}function Is(e,t,r){var n=e.firstBatch;if(null!==n&&n._expirationTime>=r&&(null===us?us=[n]:us.push(n),n._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===vs?hs++:(vs=e,hs=0),i.unstable_runWithPriority(i.unstable_ImmediatePriority,function(){qo(e,t)})}function Ps(e){null===ns&&o("246"),ns.expirationTime=0,os||(os=!0,ss=e)}function Ts(e,t){var r=cs;cs=!0;try{return e(t)}finally{(cs=r)||rs||js(1073741823,!1)}}function Rs(e,t){if(cs&&!ls){ls=!0;try{return e(t)}finally{ls=!1}}return e(t)}function Ns(e,t,r){cs||rs||0===is||(js(is,!1),is=0);var n=cs;cs=!0;try{return i.unstable_runWithPriority(i.unstable_UserBlockingPriority,function(){return e(t,r)})}finally{(cs=n)||rs||js(1073741823,!1)}}function As(e,t,r,n,a){var i=t.current;e:if(r){r=r._reactInternalFiber;t:{2===tr(r)&&1===r.tag||o("170");var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(Nn(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);o("171"),s=void 0}if(1===r.tag){var c=r.type;if(Nn(c)){r=Mn(r,c,s);break e}}r=s}else r=kn;return null===t.context?t.context=r:t.pendingContext=r,t=a,(a=Gi(n)).payload={element:e},null!==(t=void 0===t?null:t)&&(a.callback=t),Uo(),Yi(i,a),$o(i,n),n}function Ds(e,t,r,n){var a=t.current;return As(e,t,r,a=Go(_s(),a),n)}function Ls(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ms(e){var t=1073741822-25*(1+((1073741822-_s()+500)/25|0));t>=So&&(t=So-1),this._expirationTime=So=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Fs(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.pwrBind(this)}function zs(e,t,r){e={current:t=Wn(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,pingCache:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:r,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function Vs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Us(e,t,r,n,a){var i=r._reactRootContainer;if(i){if("function"==typeof a){var o=a;a=function(){var e=Ls(i._internalRoot);o.call(e)}}null!=e?i.legacy_renderSubtreeIntoContainer(e,t,a):i.render(t,a)}else{if(i=r._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new zs(e,!1,t)}(r,n),"function"==typeof a){var s=a;a=function(){var e=Ls(i._internalRoot);s.call(e)}}Rs(function(){null!=e?i.legacy_renderSubtreeIntoContainer(e,t,a):i.render(t,a)})}return Ls(i._internalRoot)}function qs(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Vs(t)||o("200"),function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Qe,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)}je=function(e,t,r){switch(t){case"input":if(Et(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=F(n);a||o("90"),We(n),Et(n,a)}}}break;case"textarea":$r(e,r);break;case"select":null!=(t=r.value)&&Gr(e,!!r.multiple,t,!1)}},Ms.prototype.render=function(e){this._defer||o("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,r=this._expirationTime,n=new Fs;return As(e,t,null,r,n._onCommit),n},Ms.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Ms.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||o("251"),this._hasChildren){var r=this._expirationTime;if(t!==this){this._hasChildren&&(r=this._expirationTime=t._expirationTime,this.render(this._children));for(var n=null,a=t;a!==this;)n=a,a=a._next;null===n&&o("251"),n._next=a._next,this._next=t,e.firstBatch=this}this._defer=!1,xs(e,r),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},Ms.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},Fs.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Fs.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var r=e[t];"function"!=typeof r&&o("191",r),r()}}},zs.prototype.render=function(e,t){var r=this._internalRoot,n=new Fs;return null!==(t=void 0===t?null:t)&&n.then(t),Ds(e,r,null,n._onCommit),n},zs.prototype.unmount=function(e){var t=this._internalRoot,r=new Fs;return null!==(e=void 0===e?null:e)&&r.then(e),Ds(null,t,null,r._onCommit),r},zs.prototype.legacy_renderSubtreeIntoContainer=function(e,t,r){var n=this._internalRoot,a=new Fs;return null!==(r=void 0===r?null:r)&&a.then(r),Ds(t,n,e,a._onCommit),a},zs.prototype.createBatch=function(){var e=new Ms(this),t=e._expirationTime,r=this._internalRoot,n=r.firstBatch;if(null===n)r.firstBatch=e,e._next=null;else{for(r=null;null!==n&&n._expirationTime>=t;)r=n,n=n._next;e._next=n,null!==r&&(r._next=e)}return e},Re=Ts,Ne=Ns,Ae=function(){rs||0===is||(js(is,!1),is=0)};var Ws={createPortal:qs,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?o("188"):o("268",Object.keys(e))),e=null===(e=nr(t))?null:e.stateNode},hydrate:function(e,t,r){return Vs(t)||o("200"),Us(null,e,t,!0,r)},render:function(e,t,r){return Vs(t)||o("200"),Us(null,e,t,!1,r)},unstable_renderSubtreeIntoContainer:function(e,t,r,n){return Vs(r)||o("200"),(null==e||void 0===e._reactInternalFiber)&&o("38"),Us(e,t,r,!1,n)},unmountComponentAtNode:function(e){return Vs(e)||o("40"),!!e._reactRootContainer&&(Rs(function(){Us(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return qs.apply(void 0,arguments)},unstable_batchedUpdates:Ts,unstable_interactiveUpdates:Ns,flushSync:function(e,t){rs&&o("187");var r=cs;cs=!0;try{return Jo(e,t)}finally{cs=r,js(1073741823,!1)}},unstable_createRoot:function(e,t){return Vs(e)||o("299","unstable_createRoot"),new zs(e,!0,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=cs;cs=!0;try{Jo(e)}finally{(cs=t)||rs||js(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[L,M,F,I.injectEventPluginsByName,b,B,function(e){j(e,W)},Pe,Te,xr,T]}};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var r=t.inject(e);Vn=qn(function(e){return t.onCommitFiberRoot(r,e)}),Un=qn(function(e){return t.onCommitFiberUnmount(r,e)})}catch(e){}})(a({},e,{overrideProps:null,currentDispatcherRef:Be.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nr(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:D,bundleType:0,version:"16.8.6",rendererPackageName:"react-dom"});var Bs={default:Ws},Hs=Bs&&Ws||Bs;e.exports=Hs.default||Hs},function(e,t,r){"use strict";e.exports=r(258)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=null,n=!1,a=3,i=-1,o=-1,s=!1,c=!1;function l(){if(!s){var e=r.expirationTime;c?O():c=!0,E(d,e)}}function u(){var e=r,t=r.next;if(r===t)r=null;else{var n=r.previous;r=n.next=t,t.previous=n}e.next=e.previous=null,n=e.callback,t=e.expirationTime,e=e.priorityLevel;var i=a,s=o;a=e,o=t;try{var c=n()}finally{a=i,o=s}if("function"==typeof c)if(c={callback:c,priorityLevel:e,expirationTime:t,next:null,previous:null},null===r)r=c.next=c.previous=c;else{n=null,e=r;do{if(e.expirationTime>=t){n=e;break}e=e.next}while(e!==r);null===n?n=r:n===r&&(r=c,l()),(t=n.previous).next=n.previous=c,c.next=n,c.previous=t}}function p(){if(-1===i&&null!==r&&1===r.priorityLevel){s=!0;try{do{u()}while(null!==r&&1===r.priorityLevel)}finally{s=!1,null!==r?l():c=!1}}}function d(e){s=!0;var a=n;n=e;try{if(e)for(;null!==r;){var i=t.unstable_now();if(!(r.expirationTime<=i))break;do{u()}while(null!==r&&r.expirationTime<=i)}else if(null!==r)do{u()}while(null!==r&&!S())}finally{s=!1,n=a,null!==r?l():c=!1,p()}}var f,m,h=Date,v="function"==typeof setTimeout?setTimeout:void 0,g="function"==typeof clearTimeout?clearTimeout:void 0,b="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,y="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function _(e){f=b(function(t){g(m),e(t)}),m=v(function(){y(f),e(t.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var w=performance;t.unstable_now=function(){return w.now()}}else t.unstable_now=function(){return h.now()};var E,O,S,C=null;if("undefined"!=typeof window?C=window:void 0!==e&&(C=e),C&&C._schedMock){var j=C._schedMock;E=j[0],O=j[1],S=j[2],t.unstable_now=j[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var x=null,k=function(e){if(null!==x)try{x(e)}finally{x=null}};E=function(e){null!==x?setTimeout(E,0,e):(x=e,setTimeout(k,0,!1))},O=function(){x=null},S=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof b&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof y&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var I=null,P=!1,T=-1,R=!1,N=!1,A=0,D=33,L=33;S=function(){return A<=t.unstable_now()};var M=new MessageChannel,F=M.port2;M.port1.onmessage=function(){P=!1;var e=I,r=T;I=null,T=-1;var n=t.unstable_now(),a=!1;if(0>=A-n){if(!(-1!==r&&r<=n))return R||(R=!0,_(z)),I=e,void(T=r);a=!0}if(null!==e){N=!0;try{e(a)}finally{N=!1}}};var z=function(e){if(null!==I){_(z);var t=e-A+L;t<L&&D<L?(8>t&&(t=8),L=t<D?D:t):D=t,A=e+L,P||(P=!0,F.postMessage(void 0))}else R=!1};E=function(e,t){I=e,T=t,N||0>t?F.postMessage(void 0):R||(R=!0,_(z))},O=function(){I=null,P=!1,T=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,r){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=a,o=i;a=e,i=t.unstable_now();try{return r()}finally{a=n,i=o,p()}},t.unstable_next=function(e){switch(a){case 1:case 2:case 3:var r=3;break;default:r=a}var n=a,o=i;a=r,i=t.unstable_now();try{return e()}finally{a=n,i=o,p()}},t.unstable_scheduleCallback=function(e,n){var o=-1!==i?i:t.unstable_now();if("object"==typeof n&&null!==n&&"number"==typeof n.timeout)n=o+n.timeout;else switch(a){case 1:n=o+-1;break;case 2:n=o+250;break;case 5:n=o+1073741823;break;case 4:n=o+1e4;break;default:n=o+5e3}if(e={callback:e,priorityLevel:a,expirationTime:n,next:null,previous:null},null===r)r=e.next=e.previous=e,l();else{o=null;var s=r;do{if(s.expirationTime>n){o=s;break}s=s.next}while(s!==r);null===o?o=r:o===r&&(r=e,l()),(n=o.previous).next=o.previous=e,e.next=o,e.previous=n}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)r=null;else{e===r&&(r=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var r=a;return function(){var n=a,o=i;a=r,i=t.unstable_now();try{return e.apply(this,arguments)}finally{a=n,i=o,p()}}},t.unstable_getCurrentPriorityLevel=function(){return a},t.unstable_shouldYield=function(){return!n&&(null!==r&&r.expirationTime<o||S())},t.unstable_continueExecution=function(){null!==r&&l()},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return r}}).call(this,r(133))},function(e,t,r){"use strict";var n=r(260);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,i,o){if(o!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:a};return r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){},function(e,t,r){},function(e,t,r){"use strict";(function(e){var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var r=-1;return e.some(function(e,n){return e[0]===t&&(r=n,!0)}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=e(this.__entries__,t),n=this.__entries__[r];return n&&n[1]},t.prototype.set=function(t,r){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,n=e(r,t);~n&&r.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var r=0,n=this.__entries__;r<n.length;r++){var a=n[r];e.call(t,a[1],a[0])}},t}()}(),n="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,a=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.pwrBind(a):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},o=2;var s=20,c=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.pwrBind(this),this.refresh=function(e,t){var r=!1,n=!1,a=0;function s(){r&&(r=!1,e()),n&&l()}function c(){i(s)}function l(){var e=Date.now();if(r){if(e-a<o)return;n=!0}else r=!0,n=!1,setTimeout(c,t);a=e}return l}(this.refresh.pwrBind(this),s)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,r=t.indexOf(e);~r&&t.splice(r,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){n&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){n&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=void 0===t?"":t;c.some(function(e){return!!~r.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),p=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||a},f=y(0,0,0,0);function m(e){return parseFloat(e)||0}function h(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.pwrReduce(function(t,r){return t+m(e["border-"+r+"-width"])},0)}function v(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return f;var n=d(e).getComputedStyle(e),a=function(e){for(var t={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var a=n[r],i=e["padding-"+a];t[a]=m(i)}return t}(n),i=a.left+a.right,o=a.top+a.bottom,s=m(n.width),c=m(n.height);if("border-box"===n.boxSizing&&(Math.round(s+i)!==t&&(s-=h(n,"left","right")+i),Math.round(c+o)!==r&&(c-=h(n,"top","bottom")+o)),!function(e){return e===d(e).document.documentElement}(e)){var l=Math.round(s+i)-t,u=Math.round(c+o)-r;1!==Math.abs(l)&&(s-=l),1!==Math.abs(u)&&(c-=u)}return y(a.left,a.top,s,c)}var g="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function b(e){return n?g(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):v(e):f}function y(e,t,r,n){return{x:e,y:t,width:r,height:n}}var _=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=b(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),w=function(){return function(e,t){var r=function(e){var t=e.x,r=e.y,n=e.width,a=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.pwrCreate(i.prototype);return p(o,{x:t,y:r,width:n,height:a,top:r,right:t+n,bottom:a+r,left:t}),o}(t);p(this,{target:e,contentRect:r})}}(),E=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.pwrMap(function(e){return new w(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),O="undefined"!=typeof WeakMap?new WeakMap:new r,S=function(){return function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=u.getInstance(),n=new E(t,r,this);O.set(this,n)}}();["observe","unobserve","disconnect"].forEach(function(e){S.prototype[e]=function(){var t;return(t=O.get(this))[e].apply(t,arguments)}});var C=void 0!==a.ResizeObserver?a.ResizeObserver:S;t.a=C}).call(this,r(133))},function(e,t,r){"use strict";e.exports=r(362)},function(e,t,r){"use strict";function n(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}r.d(t,"a",function(){return n})},function(e,t,r){!function(t,r){e.exports=r()}(0,function(){return function(){var e={134:function(e,t,r){"use strict";r.d(t,{default:function(){return b}});var n=r(279),a=r.n(n),i=r(370),o=r.n(i),s=r(817),c=r.n(s);function l(e){"@babel/helpers - typeof";return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var p=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return function(e,t,r){t&&u(e.prototype,t),r&&u(e,r)}(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var e="rtl"===document.documentElement.getAttribute("dir");this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var t=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(t,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var e=this,t=this.createFakeElement();this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(t),this.selectedText=c()(t),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=c()(this.target),this.copyText()}},{key:"copyText",value:function(){var e;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.pwrBind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==l(e)||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();function d(e){"@babel/helpers - typeof";return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var a=v(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){var r="data-clipboard-".concat(e);if(t.hasAttribute(r))return t.getAttribute(r)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.pwrCreate(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(r,a());var t=h(r);function r(e,n){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(a=t.call(this)).resolveOptions(n),a.listenClick(e),a}return function(e,t,r){t&&f(e.prototype,t),r&&f(e,r)}(r,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=o()(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new p({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return g("action",e)}},{key:"defaultTarget",value:function(e){var t=g("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return g("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,r=!!document.queryCommandSupported;return t.forEach(function(e){r=r&&!!document.queryCommandSupported(e)}),r}}]),r}()},828:function(e){var t=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}e.exports=function(e,r){for(;e&&e.nodeType!==t;){if("function"==typeof e.matches&&e.matches(r))return e;e=e.parentNode}}},438:function(e,t,r){var n=r(828);function a(e,t,r,a,i){var o=function(e,t,r,a){return function(r){r.delegateTarget=n(r.target,t),r.delegateTarget&&a.call(e,r)}}.apply(this,arguments);return e.addEventListener(r,o,i),{destroy:function(){e.removeEventListener(r,o,i)}}}e.exports=function(e,t,r,n,i){return"function"==typeof e.addEventListener?a.apply(null,arguments):"function"==typeof r?a.pwrBind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.pwrMap.call(e,function(e){return a(e,t,r,n,i)}))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var r=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===r||"[object HTMLCollection]"===r)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,r){var n=r(879),a=r(438);e.exports=function(e,t,r){if(!e&&!t&&!r)throw new Error("Missing required arguments");if(!n.string(t))throw new TypeError("Second argument must be a String");if(!n.fn(r))throw new TypeError("Third argument must be a Function");if(n.node(e))return function(e,t,r){return e.addEventListener(t,r),{destroy:function(){e.removeEventListener(t,r)}}}(e,t,r);if(n.nodeList(e))return function(e,t,r){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,r)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,r)})}}}(e,t,r);if(n.string(e))return function(e,t,r){return a(document.body,e,t,r)}(e,t,r);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var r=e.hasAttribute("readonly");r||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),r||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var n=window.getSelection(),a=document.createRange();a.selectNodeContents(e),n.removeAllRanges(),n.addRange(a),t=n.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function a(){n.off(e,a),t.apply(r,arguments)}return a._=t,this.on(e,a,r)},emit:function(e){for(var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,a=r.length;n<a;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],a=[];if(n&&t)for(var i=0,o=n.length;i<o;i++)n[i].fn!==t&&n[i].fn._!==t&&a.push(n[i]);return a.length?r[e]=a:delete r[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}return r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r(134)}().default})},function(e,t){e.exports="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8' standalone='no'?%3E %3Csvg width='180' height='180' focusable='false' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3Cdefs%3E %3Crect id='pr-ip-a' width='180' height='180' rx='2'/%3E %3Cmask id='pr-ip-b' x='0' y='0' width='180' height='180' fill='%23fff'%3E %3Cuse xlink:href='%23pr-ip-a'/%3E %3C/mask%3E %3C/defs%3E %3Cg fill='none'%3E %3Cuse stroke='%23CCC' mask='url(%23pr-ip-b)' stroke-width='2' stroke-dasharray='3,3,3,3' xlink:href='%23pr-ip-a'/%3E %3Cg opacity='.4' transform='translate(33 51)'%3E %3Cpath d='M6.54 79.536c-.612 0-1.14-.488-1.14-1.115V11.223c0-.6.5-1.115 1.14-1.115h100.962c.613 0 1.14.488 1.14 1.115v67.17c0 .6-.499 1.115-1.14 1.115H6.541v.028z' fill='%23CCC'/%3E %3Cpath d='M107.203 11.53v66.626H6.797V11.53h100.406zm.256-2.789H6.541c-1.397 0-2.551 1.116-2.551 2.496v67.17c0 1.366 1.14 2.495 2.55 2.495h100.962c1.397 0 2.55-1.115 2.55-2.495v-67.17a2.587 2.587 0 0 0-2.593-2.496z' fill='%23CCC'/%3E %3Cpath d='M1.211 77.375C.527 77.375 0 76.845 0 76.19V3.081c0-.67.541-1.185 1.211-1.185H109.74c.684 0 1.212.53 1.212 1.185v73.095c0 .67-.542 1.185-1.212 1.185H1.211v.014z' fill='%23FFF'/%3E %3Cpath d='M110.965 3.011v72.496H3.035V3.011h107.93zm.299-2.97H2.736C1.211.042 0 1.228 0 2.72v73.095c0 1.492 1.211 2.677 2.736 2.677h108.528c1.525 0 2.736-1.185 2.736-2.677V2.719c0-1.492-1.211-2.677-2.736-2.677z' fill='%23808283'/%3E %3Cpath fill='%23E7E7E7' d='M6.854 44.696v26.768h99.821V61.426L66.064 26.503 36.352 53.689z'/%3E %3Cellipse fill='%23E7E7E7' cx='29.939' cy='22.948' rx='7.795' ry='7.626'/%3E %3C/g%3E %3C/g%3E %3C/svg%3E"},function(e,t,r){"use strict";var n=r(7),a=r.n(n),i=r(0),o=r.n(i),s=function(e){function t(){return e.apply(this,arguments)||this}return a()(t,e),t.prototype.render=function(){return o.a.createElement("span",{"aria-hidden":"true",className:"pr-quotation-mark",dangerouslySetInnerHTML:{__html:'<svg width="62" height="47" focusable="false" xmlns="http://www.w3.org/2000/svg"><g fill="#F5F5F5" class="shape"><path d="m6.814648,11.991703c4.543104,-5.496211 9.610363,-9.493484 15.201897,-11.991703l1.810879,3.747395c-4.447809,2.498219 -8.244272,5.605429 -11.389503,9.321608c-3.145248,3.71618 -4.717835,7.479239 -4.717835,11.289065c0,0.749517 0.238292,1.311611 0.714834,1.686367c0.476542,0.374645 1.096042,0.56209 1.858541,0.56209c4.130124,-0.437208 6.353963,-0.65587 6.671691,-0.65587c2.096809,0 4.368353,0.749517 6.814623,2.248459c2.446297,1.498938 3.669441,4.059717 3.669441,7.682234c0,3.06031 -1.016644,5.652302 -3.049932,7.775776c-2.033274,2.123573 -4.924299,3.185299 -8.673172,3.185299c-4.384254,0 -8.1013,-1.6707 -11.151217,-5.012119c-3.049935,-3.341423 -4.574893,-7.57291 -4.574893,-12.694342c0,-5.933418 2.271525,-11.648048 6.814629,-17.144258l0,0l0.000019,0zm34.282482,-0.234213c4.60667,-5.402545 9.642136,-9.321721 15.10659,-11.75749l1.810871,3.747395c-4.447815,2.498219 -8.24427,5.574213 -11.389523,9.227942c-3.145203,3.653729 -4.717812,7.385463 -4.717812,11.195418c0,0.686974 0.190601,1.264729 0.571857,1.733152c0.381248,0.468422 1.048431,0.702637 2.001476,0.702637c4.066605,-0.437212 6.290459,-0.65587 6.671692,-0.65587c2.350975,0 4.686069,0.827633 7.005272,2.482668c2.319229,1.655149 3.478806,4.106491 3.478806,7.354244c0,2.560783 -0.905434,5.043453 -2.716328,7.448021c-1.810913,2.404572 -4.844894,3.606853 -9.10207,3.606853c-4.57489,0 -8.323708,-1.73315 -11.246555,-5.199547c-2.922832,-3.466309 -4.384254,-7.38546 -4.384254,-11.757381c0,-6.682936 2.303295,-12.725569 6.909954,-18.128004l0,0l0.000023,-0.000038z"/></g></svg>'}})},t}(r(83).a);t.a=s},function(e,t,r){"use strict";var n=r(3),a=r.n(n),i=r(7),o=r.n(i),s=r(0),c=r.n(s),l=r(26),u=r.n(l),p=r(4),d=function(e){function t(t){var r;return(r=e.call(this,t)||this).state={currSlides:[],currIndex:r.props.startingIndex,userHasInteracted:!1,isTransitioning:!1},r._setCurrentIndex=r._setCurrentIndex.pwrBind(a()(r)),r}o()(t,e);var r=t.prototype;return r.componentDidMount=function(){var e=this,t=this.props.slides.pwrMap(function(t,r){if(e.props.startingIndex+r<e.props.slideMax+e.props.startingIndex)return e.props.slides[e.props.startingIndex+r]});this.setState({currSlides:t}),this._setCurrentIndex(this.props.startingIndex)},r._setDimensions=function(){var e,t,r,n;return this.props.slideFullWidth&&1===this.props.slideMax?(t="100%",r=(e=this.props.slideWidth)*this.props.slideMax,n=e):this.props.slides.length<=1?(t=e=this.props.slideWidth,r=e,n=e):this.props.slides.length<this.props.slideMax?(t=(e=this.props.slideWidth)*this.props.slides.length+2*this.props.slidePadding,r=e*this.props.slides.length,n=e):(t=(e=this.props.slideWidth)*this.props.slideMax+2*this.props.slidePadding,r=e*this.props.slideMax,n=e),{sliderContainerWidth:t,sliderWidth:r,slideWidth:e,sliderHeight:n}},r._prev=function(e){if(!this.state.isTransitioning){this.setState({userHasInteracted:!0}),"click"===e.type&&e.target.blur();var t=0===this.state.currIndex?0:this.state.currIndex-this.props.slideTraversalAmount;return this._setCurrentIndex(t,"left"),this.props.clickPreviousCallback?this.props.clickPreviousCallback(t):void 0}},r._next=function(e){if(!this.state.isTransitioning){this.setState({userHasInteracted:!0}),"click"===e.type&&e.target.blur();var t=this.state.currIndex===this.props.slides.length-this.props.slideMax?this.state.currIndex:this.state.currIndex+this.props.slideTraversalAmount;return this._setCurrentIndex(t,"right"),this.props.clickNextCallback?this.props.clickNextCallback(t):void 0}},r._setCurrentIndex=function(e,t){if(e!==this.state.currIndex){this.setState({isTransitioning:!0});var r=u.a.findDOMNode(this.refs.slider);this.state.currSlides;t||(t=e<this.state.currIndex?"left":"right");var n=[],a="left"===t?"left":"right";if(e<this.props.slides.length){for(var i=0,o=this.props.slideMax;i<o;i++)n.push(this.props.slides[e+i]);this._cssAnimate(r,e,a,n)}this.setState({currIndex:e})}},r._cssAnimate=function(e,t,r,n){var a=this,i=this._setDimensions().slideWidth;if(this.props.cssTransition){p.a(e,"pr-slide-active"),e.style.opacity="0",e.style.marginLeft="right"===r?"-"+i*this.props.slideTraversalAmount+"px":i*this.props.slideTraversalAmount+"px",setTimeout(function(){e.style.opacity="1",e.style.marginLeft="0px",p.D(e,"pr-slide-active"),a.setState({currSlides:n,isTransitioning:!1})},this.props.transitionDuration)}else this.setState({currSlides:n})},r._onKeyDown=function(e){13===e.keyCode||32===e.keyCode?(-1!==e.target.className.indexOf("pr-carousel-prev")&&this._prev(e),-1!==e.target.className.indexOf("pr-carousel-next")&&this._next(e)):37===e.keyCode?this._prev(e):39===e.keyCode&&this._next(e)},r.render=function(){var e=this,t=0===this.state.currIndex||this.props.slides.length<=1||this.props.slides.length<this.props.slideMax?"pr-carousel-control pr-carousel-prev pr-disabled":"pr-carousel-control pr-carousel-prev",r=this.state.currIndex===this.props.slides.length-this.props.slideMax||this.props.slides.length<=1||this.props.slides.length<this.props.slideMax?"pr-carousel-control pr-carousel-next pr-disabled":"pr-carousel-control pr-carousel-next",n=this.state.currIndex===this.props.slides.length-this.props.slideMax||this.props.slides.length<=this.props.slideMax?"pr-carousel-container pr-carousel-container--no-fade":"pr-carousel-container",a=this._setDimensions(),i=this.state.currSlides.pwrMap(function(t,r){if(t)return c.a.createElement("div",{className:"pr-carousel-slide",key:"slide-"+(r+e.state.currIndex),ref:"slide-"+(r+e.state.currIndex)},t)});return c.a.createElement("div",{style:{width:a.sliderContainerWidth},ref:"sliderContainer",className:n,tabIndex:"0",onKeyDown:this._onKeyDown.pwrBind(this)},c.a.createElement("div",{role:"button","aria-label":this.props.localizations["review_display.4.0.modal.button.previous"]||"Previous",className:t,onClick:this._prev.pwrBind(this),onKeyDown:this._onKeyDown.pwrBind(this),tabIndex:"0"},c.a.createElement("button",{type:"button",title:this.props.localizations["review_display.4.0.modal.button.previous"]||"Previous",tabIndex:"-1",className:"pr-carousel-prev-icon"})),c.a.createElement("div",{ref:"slider",className:"pr-carousel-slider"},i),c.a.createElement("div",{role:"button","aria-label":this.props.localizations["review_display.4.0.modal.button.next"]||"Next",className:r,onClick:this._next.pwrBind(this),onKeyDown:this._onKeyDown.pwrBind(this),tabIndex:"0"},c.a.createElement("button",{type:"button",title:this.props.localizations["review_display.4.0.modal.button.next"]||"Next",tabIndex:"-1",className:"pr-carousel-next-icon"})))},t}(c.a.Component);d.defaultProps={slides:[],slideMax:3,slideTraversalAmount:1,slideWidth:400,slidePadding:30,slideFullWidth:!1,cssTransition:!0,transitionDelay:400,transitionDuration:300,startingIndex:0,clickNextCallback:null,clickPreviousCallback:null},t.a=d},function(e,t){e.exports=function(e,t){function r(){e.Request.apply(this,arguments)}r.prototype=Object.pwrCreate(e.Request.prototype),r.prototype.end=function(r){var n=e.Request.prototype.end,a=this;return new t(function(e,t){n.call(a,function(n,a){r&&r(n,a),n?(n.response=a,t(n)):e(a)})})},r.prototype.then=function(r,n){var a=e.Request.prototype.end,i=this;return new t(function(e,t){a.call(i,function(r,n){r?(r.response=n,t(r)):e(n)})}).then(r,n)};var n=function(e,t){return new r(e,t)};return n.options=function(e){return n("OPTIONS",e)},n.head=function(e,t){var r=n("HEAD",e);return t&&r.send(t),r},n.get=function(e,t){var r=n("GET",e);return t&&r.query(t),r},n.post=function(e,t){var r=n("POST",e);return t&&r.send(t),r},n.put=function(e,t){var r=n("PUT",e);return t&&r.send(t),r},n.patch=function(e,t){var r=n("PATCH",e);return t&&r.send(t),r},n.del=function(e){return n("DELETE",e)},n}},function(e,t,r){"use strict";function n(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(a){return"function"==typeof a?a(r,n,e):t(a)}}}}t.__esModule=!0;var a=n();a.withExtraArgument=n,t.default=a},function(e,t,r){"use strict";var n=r(3),a=r.n(n),i=r(7),o=r.n(i),s=r(2),c=r.n(s),l=r(0),u=r.n(l),p=(r(9),r(17)),d=(r(156),r(147)),f=r(105),m=(r(75),r(12)),h=r(4),v=r(25),g=r(6),b=r(11),y=function(e){function t(t){return e.call(this,t)||this}o()(t,e);var r=t.prototype;return r.componentDidMount=function(){var e=this;if(this.props.config.on_submit){var t=["answer_text","author_location","author_name"].pwrMap(function(t){return{key:t,value:e.props.answer[t]}}).filter(function(e){return e.value});v.a.onWriteComponentSubmit(g.u.WhydYouBuy,this.props,{fields:t})}var r=document.getElementById("pr-wyb-container");this._fadeOut(r)},r._fadeOut=function(e,t){void 0===t&&(t={startDelay:2500,duration:1e3,easeType:"ease"});var r=["-moz-transition","-webkit-transition","-ms-transition","-o-transition"],n=r[0],a=r[1],i=r[2],o=r[3];setTimeout(function(){e.style.cssText+="opacity: 0;\n        "+n+": opacity "+t.duration+"ms "+t.easeType+";\n        "+a+": opacity "+t.duration+"ms "+t.easeType+";\n        "+i+": opacity "+t.duration+"ms "+t.easeType+";\n        "+o+": opacity "+t.duration+"ms "+t.easeType+";\n        transition: opacity "+t.duration+"ms "+t.easeType+";",setTimeout(function(){e.style.cssText="display:none;"},t.duration)},t.startDelay)},r.render=function(){return u.a.createElement("div",{className:"pr-wyb-thank-you pr-wyb-success"},u.a.createElement(f.a,null),u.a.createElement(b.a,{importance:1},this.props.localizations?this.props.localizations.why_did_you_buy.thank_you_text:"Thank You"))},t}(u.a.Component),_=r(1),w=r(27);function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach(function(t){c()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var S=function(e){function t(){return e.apply(this,arguments)||this}o()(t,e);var r=t.prototype;return r.componentDidMount=function(){var e=this,t=this.props,r=t.config,n=t.fetchWAAData,a=t.onLoad;n(r,m.i.WYB).then(function(){a&&a(),r.on_render&&v.a.onWriteComponentRender(g.u.WhydYouBuy,e.props)})},r.render=function(){var e=this.props,t=e.product_information,r=e.form_localizations,n=e.merchant_information,a=e.isComplete,i=e.config,o=e.question_data,s=e.answer_data,c=e.field_errors,l=e.isSubmitting,p=e.setSubmitErrorMessage,f=e.submitWAAData,v="";if(t){var g=h.k(t);v=u.a.createElement("div",{className:"pr-wyb-product-image"},u.a.createElement("img",{src:g}))}if(a)return u.a.createElement(b.b,null,u.a.createElement(y,{config:i,localizations:r,question:o,answer:s,product:t,ref:"thankYou"}));var w="",E="",S="Why did you buy?",C="";if(r&&t){var j=r.why_did_you_buy.question_text.match(/\{(\w+)\}/g);j&&i.userFirstName?S=Object(_.a)("question_text",r.why_did_you_buy).replace(/\{(\w+)\}/g,i.userFirstName):j&&!i.userFirstName&&(S=Object(_.a)("question_text",r.why_did_you_buy).replace(/\{(\w+)\}+(,)+(\s)/g,"")),C=r.why_did_you_buy.question_text,t.name&&(E=u.a.createElement(b.a,{importance:2,className:"pr-header-product-name",dangerouslySetInnerHTML:{__html:t.name}}),C+=" : "+t.name);var x={config:i,merchant:n,localizations:O(O({},r),{},{label:C}),errors:c,type:m.i.WYB,isSubmitting:l,setSubmitErrorMessage:p,question_data:o,submitWAAData:f,authorName:i.userFirstName};w=u.a.createElement(d.a,x)}return u.a.createElement(b.b,null,u.a.createElement("div",{className:"pr-wyb-form-container"},u.a.createElement(b.a,{importance:1,className:"pr-wyb-headline",dangerouslySetInnerHTML:{__html:h.e(S)}}),v,u.a.createElement("div",{className:"pr-wyb-form"},u.a.createElement(b.b,null,E,w))))},t}(l.Component),C={fetchWAAData:w.n,submitWAAData:w.q,setSubmitErrorMessage:w.p},j=Object(p.b)(function(e,t){var r=h.s(t.config);return r+="_answer",O({},e.WAQWAA[r]||{})},C)(S);function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach(function(t){c()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var I=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=e.call.apply(e,[this].concat(n))||this,c()(a()(t),"state",{isOpen:!1,config:k(k({},t.props.config),{},{question_id:t.props.question_id})}),c()(a()(t),"_handleOpenWidget",function(){t.setState({isOpen:!0})}),c()(a()(t),"_handleCloseWidget",function(){t.setState({isOpen:!1})}),t}return o()(t,e),t.prototype.render=function(){var e=this.state.isOpen?"pr-wyb":"pr-wyb pr-hide";return u.a.createElement("div",{id:"pr-wyb-container",className:e},u.a.createElement("div",{className:"pr-wyb-wrapper"},u.a.createElement("button",{"aria-label":"Close",className:"pr-close-btn",onClick:this._handleCloseWidget}),u.a.createElement(j,{type:this.props.type,config:this.state.config,onLoad:this._handleOpenWidget})))},t}(u.a.Component);t.a=I},function(e,t,r){"use strict";var n=r(3),a=r.n(n),i=r(7),o=r.n(i),s=r(2),c=r.n(s),l=r(0),u=r.n(l),p=(r(9),r(95),r(17)),d=r(165),f=r(4),m=r(5),h=r(25),v=r(23),g=r(48),b=r(52),y=r(81),_=r(51),w=r(6),E=(r(84),r(105)),O=r(1),S=r(11);function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach(function(t){c()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var x=function(e){function t(t){return e.call(this,t)||this}o()(t,e);var r=t.prototype;return r.componentDidMount=function(){if(this.props.config.on_submit){var e=this.props.fields.filter(function(e){return(e.value||e.values)&&!e.composite_type}).pwrMap(function(e){var t={};return e.value?t.value=e.value:e.values&&(t.values=e.values),j(j({},t),{},{key:e.key})});h.a.onWriteComponentSubmit(w.u.SellerRatings,this.props,{fields:e})}var t=document.getElementById("pr-srw");this._fadeOut(t)},r._fadeOut=function(e,t){void 0===t&&(t={startDelay:2500,duration:1e3,easeType:"ease"}),e&&setTimeout(function(){e.style.cssText+="opacity: 0;-moz-transition: opacity "+t.duration+"ms "+t.easeType+";-webkit-transition: opacity "+t.duration+"ms "+t.easeType+";-ms-transition: opacity "+t.duration+"ms "+t.easeType+";-o-transition: opacity "+t.duration+"ms "+t.easeType+";transition: opacity "+t.duration+"ms "+t.easeType+";",setTimeout(function(){e.style.cssText="display:none;"},t.duration)},t.startDelay)},r.render=function(){return u.a.createElement("div",{className:"pr-srw-thank-you pr-srw-success"},u.a.createElement(E.a,null),u.a.createElement(S.a,{importance:3},Object(O.a)("sellerRatings.thankyou.text",this.props.localizations)))},t}(u.a.Component),k=r(14),I=r(15),P=r(66);function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?T(Object(r),!0).forEach(function(t){c()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var N=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=e.call.apply(e,[this].concat(n))||this,c()(a()(t),"tracker",new k.b(Object(m.a)(t.props.config))),c()(a()(t),"sendBeacon",function(e){return t.tracker.sendBeacon(t.props.config.page_id,t.props.type,e)}),c()(a()(t),"onLoadSuccess",function(){var e=t.props,r=e.fields,n=e.config,a=e.onFormLoad,i=e.localizations,o=e.merchant;switch(t._setHeadlineValue(r),n.srwVariant){case"mini":case"short":t._showHideFormFields(["rating","comments"]),t._setHiddenRequiredFieldValue();break;case"long":t._showHideFormFields(["rating","comments","name","location"])}a(i,o),t.tracker.setMode(o.configuration.social_measurement_data),t.sendBeacon({eventFlow:k.a[t.props.type].start})}),c()(a()(t),"_showHideFormFields",function(e){var r=t.props,n=r.config,a=r.fields;(0,r.updateFields)(n,a.pwrMap(function(t){return R(R({},t),{},{isVisible:-1!==e.indexOf(t.key)})}))}),c()(a()(t),"_setHiddenRequiredFieldValue",function(){var e=t.props,r=e.config,n=e.fields,a=e.updateFields,i=n.pwrMap(function(e){var t=R({},e);if(t.required)switch(t.key){case"name":var n=f.m(3).replace(/\d/g,"a"),a=f.l(5e4,1).toString();t.value=n+a;break;case"location":var i;i=r.locale?r.locale.split("_")[1].toString():"US",t.value=i}return t});a(r,i)}),c()(a()(t),"_setHeadlineValue",function(e){void 0===e&&(e=[]);var r=t.props,n=r.updateFields,a=r.config,i=[].concat(e),o=i.pwrMap(function(e){return e.key}).indexOf("headline"),s=i.pwrMap(function(e){return e.key}).indexOf("comments");if(-1!==o&&-1!==s){if(i[o].value||(i[o].value="TBD"),i[s].hasOwnProperty("value")){var c,l=i[s].value,u=l.substring(0,57),p=u.match(/[.!?]/);if(-1!==u.indexOf(p)){var d=u.indexOf(p);c=u.slice(0,d+1)}else c=l.length>57?u+"...":u;i[o].value=c}n(a,i)}}),c()(a()(t),"handleFieldChange",function(e,r){var n=[].concat(t.props.fields);n[r]=R(R({},n[r]),e),t.props.onFieldChange(n),t._setHeadlineValue(n)}),c()(a()(t),"updateFieldValidity",function(e){void 0===e&&(e=[]);var r=e.pwrMap(function(e){var t=R({},e),r=t.values||t.value;return t.hasOwnProperty("is_required")?t.isValid=f.w(r,t.is_required,t.validationType):e.hasOwnProperty("required")&&(t.isValid=f.w(r,t.required,t.validationType)),t});t.props.updateFields(t.props.config,r)}),c()(a()(t),"handleSubmit",function(e){e&&e.preventDefault();var r=t.props,n=r.config,a=(r.merchant,r.product),i=r.contextInformation,o=r.submitWAR,s=r.setSubmitErrorMessage,c=r.localizations;t.updateFieldValidity(t.props.fields),setTimeout(function(){var e=t.props,r=e.fields,l=e.iovationRequired;if(!!r.some(function(e){return!e.isValid}))return setTimeout(function(){var e=document.getElementsByClassName("pr-invalid-field")[0];e&&e.focus()},0);var u=r.filter(function(e){return e.value||e.values&&Array.isArray(e.values)&&e.values.length}),p=window.ioGetBlackbox?window.ioGetBlackbox().blackbox:null;if(!p&&l)return s(n,Object(O.a)("error.adblock_interference",c.powerreviews));document.getElementById("pr-war")&&document.getElementById("pr-war").scrollIntoView(),o(n,u,a,i,p).then(function(){t.props.submitError&&f.j(_.a.SUBMISSION_ERROR,{fields:t.props.fields,error:{hasError:t.props.submitError,message:t.props.submitErrorMessage}}),t.props.isReviewSubmitted&&(f.j(_.a.COMPLETE,{fields:t.props.fields,error:{hasError:t.props.submitError,message:t.props.submitErrorMessage}}),t.sendBeacon({eventFlow:k.a[t.props.type].complete}))})})}),t}o()(t,e);var r=t.prototype;return r.componentDidMount=function(){var e=this,t=this.props,r=t.getWARTemplate,n=t.config;r(n).then(function(){e.props.fetchError||(window.POWERREVIEWS.submission=window.POWERREVIEWS.submission||{},window.POWERREVIEWS.submission.set=e.setField,e.onLoadSuccess()),f.j(_.a.LOADED),n.on_render&&h.a.onWriteComponentRender(w.u.SellerRatings,e.props)})},r.render=function(){var e=this,t=this.props,r=t.fields,n=void 0===r?[]:r,a=t.isLoading,i=t.isSubmitting,o=t.fetchError,s=t.fetchErrorType,c=t.fetchErrorMessage,l=t.submitErrorMessage,p=t.isReviewSubmitted,m=t.type,h=t.merchant,_=void 0===h?{}:h,w=t.config,E=t.localizations,S=void 0===E?{}:E,C=a||i,j=C||o,k=c||l,I="p-w-r";I+=f.x()?" pr-ie8":"";var P="pr-war";return P+=j?" pr-hide":"",P+=s===v.a.MISSING_PARAMETER?" pr-hide":"",s===v.a.DUPLICATE_REVIEW?u.a.createElement("div",{className:I},u.a.createElement("div",{role:"alert",className:"pr-alert pr-alert-info"},u.a.createElement("h4",null,"Sorry!"),u.a.createElement("p",null,"According to our records, youve already written a review for this product."))):p?u.a.createElement("div",{className:I},u.a.createElement("div",null),u.a.createElement(x,{id:"thanks-iframe",frameBorder:"0",type:m,fields:n,config:w,localizations:S.write_a_review,reviewComplete:!0})):u.a.createElement("div",null,u.a.createElement("div",null),u.a.createElement("div",{className:I},u.a.createElement(g.a,{isVisible:C}),u.a.createElement(b.a,{message:k,type:"danger",isVisible:!!k}),u.a.createElement("div",{role:"form",className:P},u.a.createElement("div",{id:"pr-war-form"},u.a.createElement("fieldset",null,n.pwrMap(function(t,r){return u.a.createElement(y.a,{key:t.id,field:t,fieldIndex:r,handleFieldUpdate:e.handleFieldChange,localizations:S,requiredText:Object(O.a)("write_a_review.required_label",S.write_a_review)})}))),u.a.createElement(d.a,{localizations:S,usePRFooterClass:!0,merchant:_,config:w,onSubmit:this.handleSubmit}))))},t}(l.Component),A={getWARTemplate:I.A,submitWAR:I.G,updateFields:I.H,setSubmitErrorMessage:I.E},D=Object(p.b)(function(e,t){var r=f.s(t.config);return R({},e.WriteAReview[r])},A)(Object(P.a)(N)),L=function(e){function t(t){var r;return r=e.call(this,t)||this,c()(a()(r),"RootNode",u.a.createRef()),c()(a()(r),"handleFormLoad",function(e,t){r.setState({isInitialized:!0,localizations:e,merchant:t},function(){"long"!==r.props.config.srwVariant&&"short"!==r.props.config.srwVariant||!0!==f.z()&&(r._expandTimer=setTimeout(function(){r.setState({isOpen:!0})},3e3))})}),c()(a()(r),"handleFieldChange",function(e){"mini"===r.props.config.srwVariant&&!1===r.state.isOpen&&e.length>0&&e.forEach(function(e){"rating"===e.key&&e.value&&r.setState({isOpen:!0})})}),r.state={isOpen:!1,isInitialized:!1,localizations:{}},r._onClick=r._onClick.pwrBind(a()(r)),r._expandTimer=null,r}o()(t,e);var r=t.prototype;return r.componentWillUnmount=function(){clearTimeout(this._expandTimer)},r._onClick=function(e){var t;e.preventDefault(),t=!0!==this.state.isOpen,this.setState({isOpen:t})},r._handleCloseWidget=function(e){var t=this.RootNode.current;e&&e.preventDefault(),t&&(t.style.cssText+="display:none;")},r.render=function(){var e,t,r,n=this.state.isOpen?"pr-srw-body pr-srw-open":"pr-srw-body",a=this.state.isOpen?"pr-srw-header":"pr-srw-header pr-pulse pr-srw-header-open",i="pr-srw";if(this.state.isInitialized)switch(this.props.config.srwVariant){case"short":i+=" pr-srw-short",r=Object(O.a)("sellerRatings.short.headline.text",this.state.localizations.write_a_review);break;case"long":i+=" pr-srw-long",r=Object(O.a)("sellerRatings.long.headline.text",this.state.localizations.write_a_review);break;case"mini":i+=" pr-srw-mini",r=Object(O.a)("sellerRatings.mini.headline.text",this.state.localizations.write_a_review)}else i+=" hidden";return"mini"===this.props.config.srwVariant?(e=u.a.createElement("button",{type:"button","aria-label":"Close",className:"pr-close-btn js-pr-close-btn",onClick:this._handleCloseWidget.pwrBind(this)}),t=u.a.createElement("div",{role:"document","aria-label":r,className:n,"aria-expanded":this.state.isOpen},u.a.createElement(S.a,{importance:1,className:"pr-srw-mini-headline"},r),u.a.createElement(S.b,null,u.a.createElement(D,{onFieldChange:this.handleFieldChange,onFormLoad:this.handleFormLoad,type:this.props.type,config:this.props.config})))):(e=u.a.createElement("div",{role:"button",className:a,onClick:this._onClick},u.a.createElement(S.a,{importance:1},r),u.a.createElement("div",{"aria-hidden":"true",className:"pr-srw-arrow-icon pr-arrow-icon"})),t=u.a.createElement("div",{role:"document","aria-label":r,className:n,"aria-expanded":this.state.isOpen},u.a.createElement(S.b,null,u.a.createElement(D,{onFieldChange:this.handleFieldChange,onFormLoad:this.handleFormLoad,type:this.props.type,config:this.props.config})))),u.a.createElement("div",{ref:this.RootNode,role:"dialog",id:"pr-srw",className:i},u.a.createElement("div",{className:"pr-srw-wrapper"},e,t))},t}(u.a.Component);t.a=L},,,function(e,t,r){var n=r(277);e.exports=n},function(e,t,r){r(278);var n=r(73);e.exports=n.Object.keys},function(e,t,r){var n=r(19),a=r(63),i=r(160);n({target:"Object",stat:!0,forced:r(46)(function(){i(1)})},{keys:function(e){return i(a(e))}})},function(e,t,r){var n=r(45),a=r(181),i=n.WeakMap;e.exports="function"==typeof i&&/native code/.test(a(i))},function(e,t,r){var n=r(57),a=r(281),i=r(175),o=r(80);e.exports=function(e,t){for(var r=a(t),s=o.f,c=i.f,l=0;l<r.length;l++){var u=r[l];n(e,u)||s(e,u,c(t,u))}}},function(e,t,r){var n=r(102),a=r(282),i=r(224),o=r(72);e.exports=n("Reflect","ownKeys")||function(e){var t=a.f(o(e)),r=i.f;return r?t.concat(r(e)):t}},function(e,t,r){var n=r(223),a=r(185).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,a)}},function(e,t,r){var n=r(284);e.exports=n},function(e,t,r){r(285);var n=r(73);e.exports=n.Object.values},function(e,t,r){var n=r(19),a=r(225).values;n({target:"Object",stat:!0},{values:function(e){return a(e)}})},function(e,t,r){var n=r(287);e.exports=n},function(e,t,r){r(288);var n=r(73);e.exports=n.Object.entries},function(e,t,r){var n=r(19),a=r(225).entries;n({target:"Object",stat:!0},{entries:function(e){return a(e)}})},function(e,t,r){var n=r(290);e.exports=n},function(e,t,r){r(291);var n=r(73);e.exports=n.Object.assign},function(e,t,r){var n=r(19),a=r(226);n({target:"Object",stat:!0,forced:Object.assign!==a},{assign:a})},function(e,t,r){r(137),r(296),r(297),r(298),r(299),r(300),r(302),r(303),r(305),r(306),r(307),r(308),r(309),r(310),r(312),r(313),r(163),r(314),r(315),r(317),r(318),r(319),r(320),r(321),r(322),r(323),r(324),r(325),r(326),r(327);var n=r(73);e.exports=n.Array},function(e,t,r){var n=r(46);e.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,r){var n=r(231);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,r){var n=r(56);e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,r){var n=r(19),a=r(235);n({target:"Array",stat:!0,forced:!r(190)(function(e){Array.from(e)})},{from:a})},function(e,t,r){r(19)({target:"Array",stat:!0},{isArray:r(117)})},function(e,t,r){"use strict";var n=r(19),a=r(46),i=r(139);n({target:"Array",stat:!0,forced:a(function(){function e(){}return!(Array.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new("function"==typeof this?this:Array)(t);t>e;)i(r,e,arguments[e++]);return r.length=t,r}})},function(e,t,r){"use strict";var n=r(19),a=r(46),i=r(117),o=r(56),s=r(63),c=r(58),l=r(139),u=r(140),p=r(141),d=r(39),f=r(191),m=d("isConcatSpreadable"),h=f>=51||!a(function(){var e=[];return e[m]=!1,e.concat()[0]!==e}),v=p("concat"),g=function(e){if(!o(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,forced:!h||!v},{concat:function(e){var t,r,n,a,i,o=s(this),p=u(o,0),d=0;for(t=-1,n=arguments.length;t<n;t++)if(i=-1===t?o:arguments[t],g(i)){if(d+(a=c(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<a;r++,d++)r in i&&l(p,d,i[r])}else{if(d>=9007199254740991)throw TypeError("Maximum allowed index exceeded");l(p,d++,i)}return p.length=d,p}})},function(e,t,r){var n=r(19),a=r(301),i=r(94);n({target:"Array",proto:!0},{copyWithin:a}),i("copyWithin")},function(e,t,r){"use strict";var n=r(63),a=r(136),i=r(58),o=Math.min;e.exports=[].copyWithin||function(e,t){var r=n(this),s=i(r.length),c=a(e,s),l=a(t,s),u=arguments.length>2?arguments[2]:void 0,p=o((void 0===u?s:a(u,s))-l,s-c),d=1;for(l<c&&c<l+p&&(d=-1,l+=p-1,c+=p-1);p-- >0;)l in r?r[c]=r[l]:delete r[c],c+=d,l+=d;return r}},function(e,t,r){"use strict";var n=r(19),a=r(104).every,i=r(87),o=r(59),s=i("every"),c=o("every");n({target:"Array",proto:!0,forced:!s||!c},{every:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var n=r(19),a=r(304),i=r(94);n({target:"Array",proto:!0},{fill:a}),i("fill")},function(e,t,r){"use strict";var n=r(63),a=r(136),i=r(58);e.exports=function(e){for(var t=n(this),r=i(t.length),o=arguments.length,s=a(o>1?arguments[1]:void 0,r),c=o>2?arguments[2]:void 0,l=void 0===c?r:a(c,r);l>s;)t[s++]=e;return t}},function(e,t,r){"use strict";var n=r(19),a=r(104).filter,i=r(141),o=r(59),s=i("filter"),c=o("filter");n({target:"Array",proto:!0,forced:!s||!c},{filter:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(19),a=r(104).find,i=r(94),o=!0,s=r(59)("find");"find"in[]&&Array(1).find(function(){o=!1}),n({target:"Array",proto:!0,forced:o||!s},{find:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},function(e,t,r){"use strict";var n=r(19),a=r(104).findIndex,i=r(94),o=!0,s=r(59)("findIndex");"findIndex"in[]&&Array(1).findIndex(function(){o=!1}),n({target:"Array",proto:!0,forced:o||!s},{findIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},function(e,t,r){"use strict";var n=r(19),a=r(239),i=r(63),o=r(58),s=r(115),c=r(140);n({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=i(this),r=o(t.length),n=c(t,0);return n.length=a(n,t,t,r,0,void 0===e?1:s(e)),n}})},function(e,t,r){"use strict";var n=r(19),a=r(239),i=r(63),o=r(58),s=r(93),c=r(140);n({target:"Array",proto:!0},{flatMap:function(e){var t,r=i(this),n=o(r.length);return s(e),(t=c(r,0)).length=a(t,r,r,n,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},function(e,t,r){"use strict";var n=r(19),a=r(311);n({target:"Array",proto:!0,forced:[].forEach!=a},{forEach:a})},function(e,t,r){"use strict";var n=r(104).forEach,a=r(87),i=r(59),o=a("forEach"),s=i("forEach");e.exports=o&&s?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,r){"use strict";var n=r(19),a=r(184).includes,i=r(94);n({target:"Array",proto:!0,forced:!r(59)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(e,t,r){"use strict";var n=r(19),a=r(184).indexOf,i=r(87),o=r(59),s=[].indexOf,c=!!s&&1/[1].indexOf(1,-0)<0,l=i("indexOf"),u=o("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:c||!l||!u},{indexOf:function(e){return c?s.apply(this,arguments)||0:a(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(19),a=r(135),i=r(92),o=r(87),s=[].join,c=a!=Object,l=o("join",",");n({target:"Array",proto:!0,forced:c||!l},{join:function(e){return s.call(i(this),void 0===e?",":e)}})},function(e,t,r){var n=r(19),a=r(316);n({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},function(e,t,r){"use strict";var n=r(92),a=r(115),i=r(58),o=r(87),s=r(59),c=Math.min,l=[].lastIndexOf,u=!!l&&1/[1].lastIndexOf(1,-0)<0,p=o("lastIndexOf"),d=s("indexOf",{ACCESSORS:!0,1:0}),f=u||!p||!d;e.exports=f?function(e){if(u)return l.apply(this,arguments)||0;var t=n(this),r=i(t.length),o=r-1;for(arguments.length>1&&(o=c(o,a(arguments[1]))),o<0&&(o=r+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1}:l},function(e,t,r){"use strict";var n=r(19),a=r(104).pwrMap,i=r(141),o=r(59),s=i("pwrMap"),c=o("pwrMap");n({target:"Array",proto:!0,forced:!s||!c},{pwrMap:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(19),a=r(240).left,i=r(87),o=r(59),s=i("pwrReduce"),c=o("pwrReduce",{1:0});n({target:"Array",proto:!0,forced:!s||!c},{pwrReduce:function(e){return a(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(19),a=r(240).right,i=r(87),o=r(59),s=i("pwrReduceRight"),c=o("pwrReduce",{1:0});n({target:"Array",proto:!0,forced:!s||!c},{pwrReduceRight:function(e){return a(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(19),a=r(117),i=[].reverse,o=[1,2];n({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),i.call(this)}})},function(e,t,r){"use strict";var n=r(19),a=r(56),i=r(117),o=r(136),s=r(58),c=r(92),l=r(139),u=r(39),p=r(141),d=r(59),f=p("slice"),m=d("slice",{ACCESSORS:!0,0:0,1:2}),h=u("species"),v=[].slice,g=Math.max;n({target:"Array",proto:!0,forced:!f||!m},{slice:function(e,t){var r,n,u,p=c(this),d=s(p.length),f=o(e,d),m=o(void 0===t?d:t,d);if(i(p)&&("function"!=typeof(r=p.constructor)||r!==Array&&!i(r.prototype)?a(r)&&null===(r=r[h])&&(r=void 0):r=void 0,r===Array||void 0===r))return v.call(p,f,m);for(n=new(void 0===r?Array:r)(g(m-f,0)),u=0;f<m;f++,u++)f in p&&l(n,u,p[f]);return n.length=u,n}})},function(e,t,r){"use strict";var n=r(19),a=r(104).some,i=r(87),o=r(59),s=i("some"),c=o("some");n({target:"Array",proto:!0,forced:!s||!c},{some:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(19),a=r(93),i=r(63),o=r(46),s=r(87),c=[],l=c.sort,u=o(function(){c.sort(void 0)}),p=o(function(){c.sort(null)}),d=s("sort");n({target:"Array",proto:!0,forced:u||!p||!d},{sort:function(e){return void 0===e?l.call(i(this)):l.call(i(this),a(e))}})},function(e,t,r){r(192)("Array")},function(e,t,r){"use strict";var n=r(19),a=r(136),i=r(115),o=r(58),s=r(63),c=r(140),l=r(139),u=r(141),p=r(59),d=u("splice"),f=p("splice",{ACCESSORS:!0,0:0,1:2}),m=Math.max,h=Math.min;n({target:"Array",proto:!0,forced:!d||!f},{splice:function(e,t){var r,n,u,p,d,f,v=s(this),g=o(v.length),b=a(e,g),y=arguments.length;if(0===y?r=n=0:1===y?(r=0,n=g-b):(r=y-2,n=h(m(i(t),0),g-b)),g+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(u=c(v,n),p=0;p<n;p++)(d=b+p)in v&&l(u,p,v[d]);if(u.length=n,r<n){for(p=b;p<g-n;p++)f=p+r,(d=p+n)in v?v[f]=v[d]:delete v[f];for(p=g;p>g-n+r;p--)delete v[p-1]}else if(r>n)for(p=g-n;p>b;p--)f=p+r-1,(d=p+n-1)in v?v[f]=v[d]:delete v[f];for(p=0;p<r;p++)v[p+b]=arguments[p+2];return v.length=g-n+r,u}})},function(e,t,r){r(94)("flat")},function(e,t,r){r(94)("flatMap")},function(e,t,r){r(329),r(194),r(137),r(195);var n=r(73);e.exports=n.Set},function(e,t,r){"use strict";var n=r(330),a=r(333);e.exports=n("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},a)},function(e,t,r){"use strict";var n=r(19),a=r(45),i=r(186),o=r(86),s=r(241),c=r(164),l=r(142),u=r(56),p=r(46),d=r(190),f=r(116),m=r(332);e.exports=function(e,t,r){var h=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),g=h?"set":"add",b=a[e],y=b&&b.prototype,_=b,w={},E=function(e){var t=y[e];o(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:function(e,r){return t.call(this,0===e?0:e,r),this})};if(i(e,"function"!=typeof b||!(v||y.forEach&&!p(function(){(new b).entries().next()}))))_=r.getConstructor(t,e,h,g),s.REQUIRED=!0;else if(i(e,!0)){var O=new _,S=O[g](v?{}:-0,1)!=O,C=p(function(){O.has(1)}),j=d(function(e){new b(e)}),x=!v&&p(function(){for(var e=new b,t=5;t--;)e[g](t,t);return!e.has(-0)});j||((_=t(function(t,r){l(t,_,e);var n=m(new b,t,_);return void 0!=r&&c(r,n[g],n,h),n})).prototype=y,y.constructor=_),(C||x)&&(E("delete"),E("has"),h&&E("get")),(x||S)&&E(g),v&&y.clear&&delete y.clear}return w[e]=_,n({global:!0,forced:_!=b},w),f(_,e),v||r.setStrong(_,e,h),_}},function(e,t,r){var n=r(46);e.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,r){var n=r(56),a=r(234);e.exports=function(e,t,r){var i,o;return a&&"function"==typeof(i=t.constructor)&&i!==r&&n(o=i.prototype)&&o!==r.prototype&&a(e,o),e}},function(e,t,r){"use strict";var n=r(80).f,a=r(161),i=r(193),o=r(103),s=r(142),c=r(164),l=r(187),u=r(192),p=r(71),d=r(241).fastKey,f=r(101),m=f.set,h=f.getterFor;e.exports={getConstructor:function(e,t,r,l){var u=e(function(e,n){s(e,u,t),m(e,{type:t,index:a(null),first:void 0,last:void 0,size:0}),p||(e.size=0),void 0!=n&&c(n,e[l],e,r)}),f=h(t),v=function(e,t,r){var n,a,i=f(e),o=g(e,t);return o?o.value=r:(i.last=o={index:a=d(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=o),n&&(n.next=o),p?i.size++:e.size++,"F"!==a&&(i.index[a]=o)),e},g=function(e,t){var r,n=f(e),a=d(t);if("F"!==a)return n.index[a];for(r=n.first;r;r=r.next)if(r.key==t)return r};return i(u.prototype,{clear:function(){for(var e=f(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,p?e.size=0:this.size=0},delete:function(e){var t=f(this),r=g(this,e);if(r){var n=r.next,a=r.previous;delete t.index[r.index],r.removed=!0,a&&(a.next=n),n&&(n.previous=a),t.first==r&&(t.first=n),t.last==r&&(t.last=a),p?t.size--:this.size--}return!!r},forEach:function(e){for(var t,r=f(this),n=o(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),i(u.prototype,r?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),p&&n(u.prototype,"size",{get:function(){return f(this).size}}),u},setStrong:function(e,t,r){var n=t+" Iterator",a=h(t),i=h(n);l(e,t,function(e,t){m(this,{type:n,target:e,state:a(e),kind:t,last:void 0})},function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),u(t)}}},function(e,t,r){"use strict";var n=r(189),a=r(188);e.exports=n?{}.toString:function(){return"[object "+a(this)+"]"}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,r){var n=r(337);e.exports=n},function(e,t,r){r(338),r(137),r(195);var n=r(242);e.exports=n.f("iterator")},function(e,t,r){r(339)("iterator")},function(e,t,r){var n=r(73),a=r(57),i=r(242),o=r(80).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});a(t,e)||o(t,e,{value:i.f(e)})}},function(e,t,r){r(194),r(137),r(195),r(341),r(344),r(345);var n=r(73);e.exports=n.pwrPromise},function(e,t,r){"use strict";var n,a,i,o,s=r(19),c=r(114),l=r(45),u=r(102),p=r(243),d=r(86),f=r(193),m=r(116),h=r(192),v=r(56),g=r(93),b=r(142),y=r(113),_=r(181),w=r(164),E=r(190),O=r(244),S=r(245).set,C=r(342),j=r(247),x=r(343),k=r(196),I=r(248),P=r(101),T=r(186),R=r(39),N=r(191),A=R("species"),D="pwrPromise",L=P.get,M=P.set,F=P.getterFor(D),z=p,V=l.TypeError,U=l.document,q=l.process,W=u("fetch"),B=k.f,H=B,K="process"==y(q),G=!!(U&&U.createEvent&&l.dispatchEvent),Q=T(D,function(){if(!(_(z)!==String(z))){if(66===N)return!0;if(!K&&"function"!=typeof pwrPromiseRejectionEvent)return!0}if(c&&!z.prototype.finally)return!0;if(N>=51&&/native code/.test(z))return!1;var e=z.resolve(1),t=function(e){e(function(){},function(){})};return(e.constructor={})[A]=t,!(e.then(function(){})instanceof t)}),Y=Q||!E(function(e){z.all(e).catch(function(){})}),$=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},J=function(e,t,r){if(!t.notified){t.notified=!0;var n=t.reactions;C(function(){for(var a=t.value,i=1==t.state,o=0;n.length>o;){var s,c,l,u=n[o++],p=i?u.ok:u.fail,d=u.resolve,f=u.reject,m=u.domain;try{p?(i||(2===t.rejection&&te(e,t),t.rejection=1),!0===p?s=a:(m&&m.enter(),s=p(a),m&&(m.exit(),l=!0)),s===u.promise?f(V("pwrPromise-chain cycle")):(c=$(s))?c.call(s,d,f):d(s)):f(a)}catch(e){m&&!l&&m.exit(),f(e)}}t.reactions=[],t.notified=!1,r&&!t.rejection&&Z(e,t)})}},X=function(e,t,r){var n,a;G?((n=U.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),l.dispatchEvent(n)):n={promise:t,reason:r},(a=l["on"+e])?a(n):"unhandledrejection"===e&&x("Unhandled promise rejection",r)},Z=function(e,t){S.call(l,function(){var r,n=t.value;if(ee(t)&&(r=I(function(){K?q.emit("unhandledRejection",n,e):X("unhandledrejection",e,n)}),t.rejection=K||ee(t)?2:1,r.error))throw r.value})},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e,t){S.call(l,function(){K?q.emit("rejectionHandled",e):X("rejectionhandled",e,t.value)})},re=function(e,t,r,n){return function(a){e(t,r,a,n)}},ne=function(e,t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=2,J(e,t,!0))},ae=function(e,t,r,n){if(!t.done){t.done=!0,n&&(t=n);try{if(e===r)throw V("pwrPromise can't be resolved itself");var a=$(r);a?C(function(){var n={done:!1};try{a.call(r,re(ae,e,n,t),re(ne,e,n,t))}catch(r){ne(e,n,r,t)}}):(t.value=r,t.state=1,J(e,t,!1))}catch(r){ne(e,{done:!1},r,t)}}};Q&&(z=function(e){b(this,z,D),g(e),n.call(this);var t=L(this);try{e(re(ae,this,t),re(ne,this,t))}catch(e){ne(this,t,e)}},(n=function(e){M(this,{type:D,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=f(z.prototype,{then:function(e,t){var r=F(this),n=B(O(this,z));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=K?q.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&J(this,r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new n,t=L(e);this.promise=e,this.resolve=re(ae,e,t),this.reject=re(ne,e,t)},k.f=B=function(e){return e===z||e===i?new a(e):H(e)},c||"function"!=typeof p||(o=p.prototype.then,d(p.prototype,"then",function(e,t){var r=this;return new z(function(e,t){o.call(r,e,t)}).then(e,t)},{unsafe:!0}),"function"==typeof W&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return j(z,W.apply(l,arguments))}}))),s({global:!0,wrap:!0,forced:Q},{pwrPromise:z}),m(z,D,!1,!0),h(D),i=u(D),s({target:D,stat:!0,forced:Q},{reject:function(e){var t=B(this);return t.reject.call(void 0,e),t.promise}}),s({target:D,stat:!0,forced:c||Q},{resolve:function(e){return j(c&&this===i?z:this,e)}}),s({target:D,stat:!0,forced:Y},{all:function(e){var t=this,r=B(t),n=r.resolve,a=r.reject,i=I(function(){var r=g(t.resolve),i=[],o=0,s=1;w(e,function(e){var c=o++,l=!1;i.push(void 0),s++,r.call(t,e).then(function(e){l||(l=!0,i[c]=e,--s||n(i))},a)}),--s||n(i)});return i.error&&a(i.value),r.promise},race:function(e){var t=this,r=B(t),n=r.reject,a=I(function(){var a=g(t.resolve);w(e,function(e){a.call(t,e).then(r.resolve,n)})});return a.error&&n(a.value),r.promise}})},function(e,t,r){var n,a,i,o,s,c,l,u,p=r(45),d=r(175).f,f=r(113),m=r(245).set,h=r(246),v=p.MutationObserver||p.WebKitMutationObserver,g=p.process,b=p.pwrPromise,y="process"==f(g),_=d(p,"queueMicrotask"),w=_&&_.value;w||(n=function(){var e,t;for(y&&(e=g.domain)&&e.exit();a;){t=a.fn,a=a.next;try{t()}catch(e){throw a?o():i=void 0,e}}i=void 0,e&&e.enter()},y?o=function(){g.nextTick(n)}:v&&!h?(s=!0,c=document.createTextNode(""),new v(n).observe(c,{characterData:!0}),o=function(){c.data=s=!s}):b&&b.resolve?(l=b.resolve(void 0),u=l.then,o=function(){u.call(l,n)}):o=function(){m.call(p,n)}),e.exports=w||function(e){var t={fn:e,next:void 0};i&&(i.next=t),a||(a=t,o()),i=t}},function(e,t,r){var n=r(45);e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},function(e,t,r){"use strict";var n=r(19),a=r(93),i=r(196),o=r(248),s=r(164);n({target:"pwrPromise",stat:!0},{allSettled:function(e){var t=this,r=i.f(t),n=r.resolve,c=r.reject,l=o(function(){var r=a(t.resolve),i=[],o=0,c=1;s(e,function(e){var a=o++,s=!1;i.push(void 0),c++,r.call(t,e).then(function(e){s||(s=!0,i[a]={status:"fulfilled",value:e},--c||n(i))},function(e){s||(s=!0,i[a]={status:"rejected",reason:e},--c||n(i))})}),--c||n(i)});return l.error&&c(l.value),r.promise}})},function(e,t,r){"use strict";var n=r(19),a=r(114),i=r(243),o=r(46),s=r(102),c=r(244),l=r(247),u=r(86);n({target:"pwrPromise",proto:!0,real:!0,forced:!!i&&o(function(){i.prototype.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=c(this,s("pwrPromise")),r="function"==typeof e;return this.then(r?function(r){return l(t,e()).then(function(){return r})}:e,r?function(r){return l(t,e()).then(function(){throw r})}:e)}}),a||"function"!=typeof i||i.prototype.finally||u(i.prototype,"finally",s("pwrPromise").prototype.finally)},function(e,t,r){var n=r(347);e.exports=n},function(e,t,r){var n=r(348);e.exports=n},function(e,t,r){r(349),r(352),r(197);var n=r(73);e.exports=n.URL},function(e,t,r){"use strict";r(137);var n,a=r(19),i=r(71),o=r(251),s=r(45),c=r(232),l=r(86),u=r(142),p=r(57),d=r(226),f=r(235),m=r(227).codeAt,h=r(350),v=r(116),g=r(197),b=r(101),y=s.URL,_=g.URLSearchParams,w=g.getState,E=b.set,O=b.getterFor("URL"),S=Math.floor,C=Math.pow,j=/[A-Za-z]/,x=/[\d+-.A-Za-z]/,k=/\d/,I=/^(0x|0X)/,P=/^[0-7]+$/,T=/^\d+$/,R=/^[\dA-Fa-f]+$/,N=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,A=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,D=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,L=/[\u0009\u000A\u000D]/g,M=function(e,t){var r,n,a;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(r=z(t.slice(1,-1))))return"Invalid host";e.host=r}else if(G(e)){if(t=h(t),N.test(t))return"Invalid host";if(null===(r=F(t)))return"Invalid host";e.host=r}else{if(A.test(t))return"Invalid host";for(r="",n=f(t),a=0;a<n.length;a++)r+=H(n[a],U);e.host=r}},F=function(e){var t,r,n,a,i,o,s,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(a=c[n]))return e;if(i=10,a.length>1&&"0"==a.charAt(0)&&(i=I.test(a)?16:8,a=a.slice(8==i?1:2)),""===a)o=0;else{if(!(10==i?T:8==i?P:R).test(a))return e;o=parseInt(a,i)}r.push(o)}for(n=0;n<t;n++)if(o=r[n],n==t-1){if(o>=C(256,5-t))return null}else if(o>255)return null;for(s=r.pop(),n=0;n<r.length;n++)s+=r[n]*C(256,3-n);return s},z=function(e){var t,r,n,a,i,o,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,p=0,d=function(){return e.charAt(p)};if(":"==d()){if(":"!=e.charAt(1))return;p+=2,u=++l}for(;d();){if(8==l)return;if(":"!=d()){for(t=r=0;r<4&&R.test(d());)t=16*t+parseInt(d(),16),p++,r++;if("."==d()){if(0==r)return;if(p-=r,l>6)return;for(n=0;d();){if(a=null,n>0){if(!("."==d()&&n<4))return;p++}if(!k.test(d()))return;for(;k.test(d());){if(i=parseInt(d(),10),null===a)a=i;else{if(0==a)return;a=10*a+i}if(a>255)return;p++}c[l]=256*c[l]+a,2!=++n&&4!=n||l++}if(4!=n)return;break}if(":"==d()){if(p++,!d())return}else if(d())return;c[l++]=t}else{if(null!==u)return;p++,u=++l}}if(null!==u)for(o=l-u,l=7;0!=l&&o>0;)s=c[l],c[l--]=c[u+o-1],c[u+--o]=s;else if(8!=l)return;return c},V=function(e){var t,r,n,a;if("number"==typeof e){for(t=[],r=0;r<4;r++)t.unshift(e%256),e=S(e/256);return t.join(".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,a=0,i=0;i<8;i++)0!==e[i]?(a>r&&(t=n,r=a),n=null,a=0):(null===n&&(n=i),++a);return a>r&&(t=n,r=a),t}(e),r=0;r<8;r++)a&&0===e[r]||(a&&(a=!1),n===r?(t+=r?":":"::",a=!0):(t+=e[r].toString(16),r<7&&(t+=":")));return"["+t+"]"}return e},U={},q=d({},U,{" ":1,'"':1,"<":1,">":1,"`":1}),W=d({},q,{"#":1,"?":1,"{":1,"}":1}),B=d({},W,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),H=function(e,t){var r=m(e,0);return r>32&&r<127&&!p(t,e)?e:encodeURIComponent(e)},K={ftp:21,file:null,http:80,https:443,ws:80,wss:443},G=function(e){return p(K,e.scheme)},Q=function(e){return""!=e.username||""!=e.password},Y=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},$=function(e,t){var r;return 2==e.length&&j.test(e.charAt(0))&&(":"==(r=e.charAt(1))||!t&&"|"==r)},J=function(e){var t;return e.length>1&&$(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},X=function(e){var t=e.path,r=t.length;!r||"file"==e.scheme&&1==r&&$(t[0],!0)||t.pop()},Z=function(e){return"."===e||"%2e"===e.toLowerCase()},ee=function(e){return".."===(e=e.toLowerCase())||"%2e."===e||".%2e"===e||"%2e%2e"===e},te={},re={},ne={},ae={},ie={},oe={},se={},ce={},le={},ue={},pe={},de={},fe={},me={},he={},ve={},ge={},be={},ye={},_e={},we={},Ee=function(e,t,r,a){var i,o,s,c,l=r||te,u=0,d="",m=!1,h=!1,v=!1;for(r||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(D,"")),t=t.replace(L,""),i=f(t);u<=i.length;){switch(o=i[u],l){case te:if(!o||!j.test(o)){if(r)return"Invalid scheme";l=ne;continue}d+=o.toLowerCase(),l=re;break;case re:if(o&&(x.test(o)||"+"==o||"-"==o||"."==o))d+=o.toLowerCase();else{if(":"!=o){if(r)return"Invalid scheme";d="",l=ne,u=0;continue}if(r&&(G(e)!=p(K,d)||"file"==d&&(Q(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=d,r)return void(G(e)&&K[e.scheme]==e.port&&(e.port=null));d="","file"==e.scheme?l=me:G(e)&&a&&a.scheme==e.scheme?l=ae:G(e)?l=ce:"/"==i[u+1]?(l=ie,u++):(e.cannotBeABaseURL=!0,e.path.push(""),l=ye)}break;case ne:if(!a||a.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(a.cannotBeABaseURL&&"#"==o){e.scheme=a.scheme,e.path=a.path.slice(),e.query=a.query,e.fragment="",e.cannotBeABaseURL=!0,l=we;break}l="file"==a.scheme?me:oe;continue;case ae:if("/"!=o||"/"!=i[u+1]){l=oe;continue}l=le,u++;break;case ie:if("/"==o){l=ue;break}l=be;continue;case oe:if(e.scheme=a.scheme,o==n)e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query=a.query;else if("/"==o||"\\"==o&&G(e))l=se;else if("?"==o)e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query="",l=_e;else{if("#"!=o){e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.path.pop(),l=be;continue}e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query=a.query,e.fragment="",l=we}break;case se:if(!G(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,l=be;continue}l=ue}else l=le;break;case ce:if(l=le,"/"!=o||"/"!=d.charAt(u+1))continue;u++;break;case le:if("/"!=o&&"\\"!=o){l=ue;continue}break;case ue:if("@"==o){m&&(d="%40"+d),m=!0,s=f(d);for(var g=0;g<s.length;g++){var b=s[g];if(":"!=b||v){var y=H(b,B);v?e.password+=y:e.username+=y}else v=!0}d=""}else if(o==n||"/"==o||"?"==o||"#"==o||"\\"==o&&G(e)){if(m&&""==d)return"Invalid authority";u-=f(d).length+1,d="",l=pe}else d+=o;break;case pe:case de:if(r&&"file"==e.scheme){l=ve;continue}if(":"!=o||h){if(o==n||"/"==o||"?"==o||"#"==o||"\\"==o&&G(e)){if(G(e)&&""==d)return"Invalid host";if(r&&""==d&&(Q(e)||null!==e.port))return;if(c=M(e,d))return c;if(d="",l=ge,r)return;continue}"["==o?h=!0:"]"==o&&(h=!1),d+=o}else{if(""==d)return"Invalid host";if(c=M(e,d))return c;if(d="",l=fe,r==de)return}break;case fe:if(!k.test(o)){if(o==n||"/"==o||"?"==o||"#"==o||"\\"==o&&G(e)||r){if(""!=d){var _=parseInt(d,10);if(_>65535)return"Invalid port";e.port=G(e)&&_===K[e.scheme]?null:_,d=""}if(r)return;l=ge;continue}return"Invalid port"}d+=o;break;case me:if(e.scheme="file","/"==o||"\\"==o)l=he;else{if(!a||"file"!=a.scheme){l=be;continue}if(o==n)e.host=a.host,e.path=a.path.slice(),e.query=a.query;else if("?"==o)e.host=a.host,e.path=a.path.slice(),e.query="",l=_e;else{if("#"!=o){J(i.slice(u).join(""))||(e.host=a.host,e.path=a.path.slice(),X(e)),l=be;continue}e.host=a.host,e.path=a.path.slice(),e.query=a.query,e.fragment="",l=we}}break;case he:if("/"==o||"\\"==o){l=ve;break}a&&"file"==a.scheme&&!J(i.slice(u).join(""))&&($(a.path[0],!0)?e.path.push(a.path[0]):e.host=a.host),l=be;continue;case ve:if(o==n||"/"==o||"\\"==o||"?"==o||"#"==o){if(!r&&$(d))l=be;else if(""==d){if(e.host="",r)return;l=ge}else{if(c=M(e,d))return c;if("localhost"==e.host&&(e.host=""),r)return;d="",l=ge}continue}d+=o;break;case ge:if(G(e)){if(l=be,"/"!=o&&"\\"!=o)continue}else if(r||"?"!=o)if(r||"#"!=o){if(o!=n&&(l=be,"/"!=o))continue}else e.fragment="",l=we;else e.query="",l=_e;break;case be:if(o==n||"/"==o||"\\"==o&&G(e)||!r&&("?"==o||"#"==o)){if(ee(d)?(X(e),"/"==o||"\\"==o&&G(e)||e.path.push("")):Z(d)?"/"==o||"\\"==o&&G(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&$(d)&&(e.host&&(e.host=""),d=d.charAt(0)+":"),e.path.push(d)),d="","file"==e.scheme&&(o==n||"?"==o||"#"==o))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==o?(e.query="",l=_e):"#"==o&&(e.fragment="",l=we)}else d+=H(o,W);break;case ye:"?"==o?(e.query="",l=_e):"#"==o?(e.fragment="",l=we):o!=n&&(e.path[0]+=H(o,U));break;case _e:r||"#"!=o?o!=n&&("'"==o&&G(e)?e.query+="%27":e.query+="#"==o?"%23":H(o,U)):(e.fragment="",l=we);break;case we:o!=n&&(e.fragment+=H(o,q))}u++}},Oe=function(e){var t,r,n=u(this,Oe,"URL"),a=arguments.length>1?arguments[1]:void 0,o=String(e),s=E(n,{type:"URL"});if(void 0!==a)if(a instanceof Oe)t=O(a);else if(r=Ee(t={},String(a)))throw TypeError(r);if(r=Ee(s,o,null,t))throw TypeError(r);var c=s.searchParams=new _,l=w(c);l.updateSearchParams(s.query),l.updateURL=function(){s.query=String(c)||null},i||(n.href=Ce.call(n),n.origin=je.call(n),n.protocol=xe.call(n),n.username=ke.call(n),n.password=Ie.call(n),n.host=Pe.call(n),n.hostname=Te.call(n),n.port=Re.call(n),n.pathname=Ne.call(n),n.search=Ae.call(n),n.searchParams=De.call(n),n.hash=Le.call(n))},Se=Oe.prototype,Ce=function(){var e=O(this),t=e.scheme,r=e.username,n=e.password,a=e.host,i=e.port,o=e.path,s=e.query,c=e.fragment,l=t+":";return null!==a?(l+="//",Q(e)&&(l+=r+(n?":"+n:"")+"@"),l+=V(a),null!==i&&(l+=":"+i)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?o[0]:o.length?"/"+o.join("/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},je=function(){var e=O(this),t=e.scheme,r=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&G(e)?t+"://"+V(e.host)+(null!==r?":"+r:""):"null"},xe=function(){return O(this).scheme+":"},ke=function(){return O(this).username},Ie=function(){return O(this).password},Pe=function(){var e=O(this),t=e.host,r=e.port;return null===t?"":null===r?V(t):V(t)+":"+r},Te=function(){var e=O(this).host;return null===e?"":V(e)},Re=function(){var e=O(this).port;return null===e?"":String(e)},Ne=function(){var e=O(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ae=function(){var e=O(this).query;return e?"?"+e:""},De=function(){return O(this).searchParams},Le=function(){var e=O(this).fragment;return e?"#"+e:""},Me=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&c(Se,{href:Me(Ce,function(e){var t=O(this),r=String(e),n=Ee(t,r);if(n)throw TypeError(n);w(t.searchParams).updateSearchParams(t.query)}),origin:Me(je),protocol:Me(xe,function(e){var t=O(this);Ee(t,String(e)+":",te)}),username:Me(ke,function(e){var t=O(this),r=f(String(e));if(!Y(t)){t.username="";for(var n=0;n<r.length;n++)t.username+=H(r[n],B)}}),password:Me(Ie,function(e){var t=O(this),r=f(String(e));if(!Y(t)){t.password="";for(var n=0;n<r.length;n++)t.password+=H(r[n],B)}}),host:Me(Pe,function(e){var t=O(this);t.cannotBeABaseURL||Ee(t,String(e),pe)}),hostname:Me(Te,function(e){var t=O(this);t.cannotBeABaseURL||Ee(t,String(e),de)}),port:Me(Re,function(e){var t=O(this);Y(t)||(""==(e=String(e))?t.port=null:Ee(t,e,fe))}),pathname:Me(Ne,function(e){var t=O(this);t.cannotBeABaseURL||(t.path=[],Ee(t,e+"",ge))}),search:Me(Ae,function(e){var t=O(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Ee(t,e,_e)),w(t.searchParams).updateSearchParams(t.query)}),searchParams:Me(De),hash:Me(Le,function(e){var t=O(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Ee(t,e,we)):t.fragment=null})}),l(Se,"toJSON",function(){return Ce.call(this)},{enumerable:!0}),l(Se,"toString",function(){return Ce.call(this)},{enumerable:!0}),y){var Fe=y.createObjectURL,ze=y.revokeObjectURL;Fe&&l(Oe,"createObjectURL",function(e){return Fe.apply(y,arguments)}),ze&&l(Oe,"revokeObjectURL",function(e){return ze.apply(y,arguments)})}v(Oe,"URL"),a({global:!0,forced:!o,sham:!i},{URL:Oe})},function(e,t,r){"use strict";var n=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",o=Math.floor,s=String.fromCharCode,c=function(e){return e+22+75*(e<26)},l=function(e,t,r){var n=0;for(e=r?o(e/700):e>>1,e+=o(e/t);e>455;n+=36)e=o(e/35);return o(n+36*e/(e+38))},u=function(e){var t,r,n=[],a=(e=function(e){for(var t=[],r=0,n=e.length;r<n;){var a=e.charCodeAt(r++);if(a>=55296&&a<=56319&&r<n){var i=e.charCodeAt(r++);56320==(64512&i)?t.push(((1023&a)<<10)+(1023&i)+65536):(t.push(a),r--)}else t.push(a)}return t}(e)).length,u=128,p=0,d=72;for(t=0;t<e.length;t++)(r=e[t])<128&&n.push(s(r));var f=n.length,m=f;for(f&&n.push("-");m<a;){var h=2147483647;for(t=0;t<e.length;t++)(r=e[t])>=u&&r<h&&(h=r);var v=m+1;if(h-u>o((2147483647-p)/v))throw RangeError(i);for(p+=(h-u)*v,u=h,t=0;t<e.length;t++){if((r=e[t])<u&&++p>2147483647)throw RangeError(i);if(r==u){for(var g=p,b=36;;b+=36){var y=b<=d?1:b>=d+26?26:b-d;if(g<y)break;var _=g-y,w=36-y;n.push(s(c(y+_%w))),g=o(_/w)}n.push(s(c(g))),d=l(p,v,m==f),p=0,++m}}++p,++u}return n.join("")};e.exports=function(e){var t,r,i=[],o=e.toLowerCase().replace(a,".").split(".");for(t=0;t<o.length;t++)r=o[t],i.push(n.test(r)?"xn--"+u(r):r);return i.join(".")}},function(e,t,r){var n=r(72),a=r(162);e.exports=function(e){var t=a(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return n(t.call(e))}},function(e,t,r){"use strict";r(19)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(e,t,r){var n=r(354);e.exports=n},function(e,t,r){var n=r(355);e.exports=n},function(e,t,r){r(197);var n=r(73);e.exports=n.URLSearchParams},function(e,t){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(e){for(var t=window.document,r=a(t);r;)r=a(t=r.ownerDocument);return t}(),t=[],r=null,n=null;o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return r||(r=function(e,r){n=e&&r?d(e,r):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach(function(e){e._checkForIntersections()})}),r},o._resetCrossOriginUpdater=function(){r=null,n=null},o.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},o.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,r){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==r[t-1]})},o.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).pwrMap(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},o.prototype._monitorIntersections=function(t){var r=t.defaultView;if(r&&-1==this._monitoringDocuments.indexOf(t)){var n=this._checkForIntersections,i=null,o=null;this.POLL_INTERVAL?i=r.setInterval(n,this.POLL_INTERVAL):(s(r,"resize",n,!0),s(t,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in r&&(o=new r.MutationObserver(n)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push(function(){var e=t.defaultView;e&&(i&&e.clearInterval(i),c(e,"resize",n,!0)),c(t,"scroll",n,!0),o&&o.disconnect()});var l=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=l){var u=a(t);u&&this._monitorIntersections(u.ownerDocument)}}},o.prototype._unmonitorIntersections=function(t){var r=this._monitoringDocuments.indexOf(t);if(-1!=r){var n=this.root&&(this.root.ownerDocument||this.root)||e;if(!this._observationTargets.some(function(e){var r=e.element.ownerDocument;if(r==t)return!0;for(;r&&r!=n;){var i=a(r);if((r=i&&i.ownerDocument)==t)return!0}return!1})){var i=this._monitoringUnsubscribes[r];if(this._monitoringDocuments.splice(r,1),this._monitoringUnsubscribes.splice(r,1),i(),t!=n){var o=a(t);o&&this._unmonitorIntersections(o.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},o.prototype._checkForIntersections=function(){if(this.root||!r||n){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(n){var a=n.element,o=u(a),s=this._rootContainsTarget(a),c=n.entry,l=e&&s&&this._computeTargetAndRootIntersection(a,o,t),p=null;this._rootContainsTarget(a)?r&&!this.root||(p=t):p={top:0,bottom:0,left:0,right:0,width:0,height:0};var d=n.entry=new i({time:window.performance&&performance.now&&performance.now(),target:a,boundingClientRect:o,rootBounds:p,intersectionRect:l});c?e&&s?this._hasCrossedThreshold(c,d)&&this._queuedEntries.push(d):c&&c.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},o.prototype._computeTargetAndRootIntersection=function(t,a,i){if("none"!=window.getComputedStyle(t).display){for(var o=a,s=m(t),c=!1;!c&&s;){var p=null,f=1==s.nodeType?window.getComputedStyle(s):{};if("none"==f.display)return null;if(s==this.root||9==s.nodeType)if(c=!0,s==this.root||s==e)r&&!this.root?!n||0==n.width&&0==n.height?(s=null,p=null,o=null):p=n:p=i;else{var h=m(s),v=h&&u(h),g=h&&this._computeTargetAndRootIntersection(h,v,i);v&&g?(s=h,p=d(v,g)):(s=null,o=null)}else{var b=s.ownerDocument;s!=b.body&&s!=b.documentElement&&"visible"!=f.overflow&&(p=u(s))}if(p&&(o=l(p,o)),!o)break;s=s&&m(s)}return o}},o.prototype._getRootRect=function(){var t;if(this.root&&!h(this.root))t=u(this.root);else{var r=h(this.root)?this.root:e,n=r.documentElement,a=r.body;t={top:0,left:0,right:n.clientWidth||a.clientWidth,width:n.clientWidth||a.clientWidth,bottom:n.clientHeight||a.clientHeight,height:n.clientHeight||a.clientHeight}}return this._expandRectByRootMargin(t)},o.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.pwrMap(function(t,r){return"px"==t.unit?t.value:t.value*(r%2?e.width:e.height)/100}),r={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return r.width=r.right-r.left,r.height=r.bottom-r.top,r},o.prototype._hasCrossedThreshold=function(e,t){var r=e&&e.isIntersecting?e.intersectionRatio||0:-1,n=t.isIntersecting?t.intersectionRatio||0:-1;if(r!==n)for(var a=0;a<this.thresholds.length;a++){var i=this.thresholds[a];if(i==r||i==n||i<r!=i<n)return!0}},o.prototype._rootIsInDom=function(){return!this.root||f(e,this.root)},o.prototype._rootContainsTarget=function(t){var r=this.root&&(this.root.ownerDocument||this.root)||e;return f(r,t)&&(!this.root||r==t.ownerDocument)},o.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},o.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=o,window.IntersectionObserverEntry=i}function a(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}function i(e){this.time=e.time,this.target=e.target,this.rootBounds=p(e.rootBounds),this.boundingClientRect=p(e.boundingClientRect),this.intersectionRect=p(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,r=t.width*t.height,n=this.intersectionRect,a=n.width*n.height;this.intersectionRatio=r?Number((a/r).toFixed(4)):this.isIntersecting?1:0}function o(e,t){var r=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType&&9!=r.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=function(e,t){var r=null;return function(){r||(r=setTimeout(function(){e(),r=null},t))}}(this._checkForIntersections.pwrBind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.pwrMap(function(e){return e.value+e.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(e,t,r,n){"function"==typeof e.addEventListener?e.addEventListener(t,r,n||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,r)}function c(e,t,r,n){"function"==typeof e.removeEventListener?e.removeEventListener(t,r,n||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,r)}function l(e,t){var r=Math.max(e.top,t.top),n=Math.min(e.bottom,t.bottom),a=Math.max(e.left,t.left),i=Math.min(e.right,t.right),o=i-a,s=n-r;return o>=0&&s>=0&&{top:r,bottom:n,left:a,right:i,width:o,height:s}||null}function u(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function p(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function d(e,t){var r=t.top-e.top,n=t.left-e.left;return{top:r,left:n,height:t.height,width:t.width,bottom:r+t.height,right:n+t.width}}function f(e,t){for(var r=t;r;){if(r==e)return!0;r=m(r)}return!1}function m(t){var r=t.parentNode;return 9==t.nodeType&&t!=e?a(t):(r&&r.assignedSlot&&(r=r.assignedSlot.parentNode),r&&11==r.nodeType&&r.host?r.host:r)}function h(e){return e&&9===e.nodeType}}()},,,,function(e,t,r){"use strict";e.exports=r(361)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&Symbol.for,a=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,p=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116;function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case p:case d:case o:case c:case s:case m:return e;default:switch(e=e&&e.$$typeof){case u:case f:case l:return e;default:return t}}case v:case h:case i:return t}}}function b(e){return g(e)===d}t.typeOf=g,t.AsyncMode=p,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=a,t.ForwardRef=f,t.Fragment=o,t.Lazy=v,t.Memo=h,t.Portal=i,t.Profiler=c,t.StrictMode=s,t.Suspense=m,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===c||e===s||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f)},t.isAsyncMode=function(e){return b(e)||g(e)===p},t.isConcurrentMode=b,t.isContextConsumer=function(e){return g(e)===u},t.isContextProvider=function(e){return g(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return g(e)===f},t.isFragment=function(e){return g(e)===o},t.isLazy=function(e){return g(e)===v},t.isMemo=function(e){return g(e)===h},t.isPortal=function(e){return g(e)===i},t.isProfiler=function(e){return g(e)===c},t.isStrictMode=function(e){return g(e)===s},t.isSuspense=function(e){return g(e)===m}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&Symbol.for,a=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,p=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116;function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case p:case d:case o:case c:case s:case m:return e;default:switch(e=e&&e.$$typeof){case u:case f:case l:return e;default:return t}}case v:case h:case i:return t}}}function b(e){return g(e)===d}t.typeOf=g,t.AsyncMode=p,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=a,t.ForwardRef=f,t.Fragment=o,t.Lazy=v,t.Memo=h,t.Portal=i,t.Profiler=c,t.StrictMode=s,t.Suspense=m,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===c||e===s||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f)},t.isAsyncMode=function(e){return b(e)||g(e)===p},t.isConcurrentMode=b,t.isContextConsumer=function(e){return g(e)===u},t.isContextProvider=function(e){return g(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return g(e)===f},t.isFragment=function(e){return g(e)===o},t.isLazy=function(e){return g(e)===v},t.isMemo=function(e){return g(e)===h},t.isPortal=function(e){return g(e)===i},t.isProfiler=function(e){return g(e)===c},t.isStrictMode=function(e){return g(e)===s},t.isSuspense=function(e){return g(e)===m}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.pwrCreate(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,r){},function(e,t,r){},function(e,t){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[e]=this._callbacks[e]||[]).push(t),this},r.prototype.once=function(e,t){var r=this;function n(){r.off(e,n),t.apply(this,arguments)}return this._callbacks=this._callbacks||{},n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks[e];if(!n)return this;if(1==arguments.length)return delete this._callbacks[e],this;for(var a=0;a<n.length;a++)if((r=n[a])===t||r.fn===t){n.splice(a,1);break}return this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),r=this._callbacks[e];if(r)for(var n=0,a=(r=r.slice(0)).length;n<a;++n)r[n].apply(this,t);return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t){e.exports=function(e,t,r){for(var n=0,a=e.length,i=3==arguments.length?r:e[n++];n<a;)i=t.call(null,i,e[n],++n,e);return i}},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,i){t=t||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var s=/\+/g;e=e.split(t);var c=1e3;i&&"number"==typeof i.maxKeys&&(c=i.maxKeys);var l=e.length;c>0&&l>c&&(l=c);for(var u=0;u<l;++u){var p,d,f,m,h=e[u].replace(s,"%20"),v=h.indexOf(r);v>=0?(p=h.substr(0,v),d=h.substr(v+1)):(p=h,d=""),f=decodeURIComponent(p),m=decodeURIComponent(d),n(o,f)?a(o[f])?o[f].push(m):o[f]=[o[f],m]:o[f]=m}return o};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";var n=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,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?i(o(e),function(o){var s=encodeURIComponent(n(o))+r;return a(e[o])?i(e[o],function(e){return s+encodeURIComponent(n(e))}).join(t):s+encodeURIComponent(n(e[o]))}).join(t):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(e)):""};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.pwrMap)return e.pwrMap(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var o=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){var n=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,r,n){var a=t&&t.prototype instanceof h?t:h,i=Object.pwrCreate(a.prototype),o=new x(n||[]);return i._invoke=function(e,t,r){var n=u;return function(a,i){if(n===d)throw new Error("Generator is already running");if(n===f){if("throw"===a)throw i;return I()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var s=S(o,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===u)throw n=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var c=l(e,t,r);if("normal"===c.type){if(n=r.done?f:p,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=f,r.method="throw",r.arg=c.arg)}}}(e,r,o),i}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u="suspendedStart",p="suspendedYield",d="executing",f="completed",m={};function h(){}function v(){}function g(){}var b={};b[i]=function(){return this};var y=Object.getPrototypeOf,_=y&&y(y(k([])));_&&_!==r&&n.call(_,i)&&(b=_);var w=g.prototype=h.prototype=Object.pwrCreate(b);function E(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function O(e,t){var r;this._invoke=function(a,i){function o(){return new t(function(r,o){!function r(a,i,o,s){var c=l(e[a],e,i);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then(function(e){r("next",e,o,s)},function(e){r("throw",e,o,s)}):t.resolve(p).then(function(e){u.value=e,o(u)},function(e){return r("throw",e,o,s)})}s(c.arg)}(a,i,r,o)})}return r=r?r.then(o,o):o()}}function S(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method))return m;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var a=l(n,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function k(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}return{next:I}}function I(){return{value:t,done:!0}}return v.prototype=w.constructor=g,g.constructor=v,g[s]=v.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.pwrCreate(w),e},e.awrap=function(e){return{__await:e}},E(O.prototype),O.prototype[o]=function(){return this},e.AsyncIterator=O,e.async=function(t,r,n,a,i){void 0===i&&(i=pwrPromise);var o=new O(c(t,r,n,a),i);return e.isGeneratorFunction(r)?o:o.next().then(function(e){return e.done?e.value:o.next()})},E(w),w[s]="Generator",w[i]=function(){return this},w.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=k,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return s.type="throw",s.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;j(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:k(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){"use strict";var n=r(378);function a(){}e.exports=function(){function e(e,t,r,a,i,o){if(o!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return r.checkPropTypes=a,r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},,function(e,t,r){"use strict";r(276),r(283),r(286),r(289),r(292),r(328),r(163),r(194),r(336),r(340),r(249),r(250),r(346),r(353);var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n&&n,a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};if(a.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return a.iterable&&(t[Symbol.iterator]=function(){return t}),t}function u(e){this.pwrMap={},e instanceof u?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function p(e){if(e.bodyUsed)return pwrPromise.reject(new TypeError("Already read"));e.bodyUsed=!0}function d(e){return new pwrPromise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function f(e){var t=new FileReader,r=d(t);return t.readAsArrayBuffer(e),r}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:a.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a.arrayBuffer&&a.blob&&function(e){return e&&DataView.prototype.isPrototypeOf(e)}(e)?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return pwrPromise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return pwrPromise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return pwrPromise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=p(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?pwrPromise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):pwrPromise.resolve(this._bodyArrayBuffer))}return this.blob().then(f)}),this.text=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,r=d(t);return t.readAsText(e),r}(this._bodyBlob);if(this._bodyArrayBuffer)return pwrPromise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return pwrPromise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}u.prototype.append=function(e,t){e=s(e),t=c(t);var r=this.pwrMap[e];this.pwrMap[e]=r?r+", "+t:t},u.prototype.delete=function(e){delete this.pwrMap[s(e)]},u.prototype.get=function(e){return e=s(e),this.has(e)?this.pwrMap[e]:null},u.prototype.has=function(e){return this.pwrMap.hasOwnProperty(s(e))},u.prototype.set=function(e,t){this.pwrMap[s(e)]=c(t)},u.prototype.forEach=function(e,t){for(var r in this.pwrMap)this.pwrMap.hasOwnProperty(r)&&e.call(t,this.pwrMap[r],r,this)},u.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),l(e)},u.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),l(e)},u.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),l(e)},a.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(e,t){if(!(this instanceof g))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r=(t=t||{}).body;if(e instanceof g){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new u(t.headers)),this.method=function(e){var t=e.toUpperCase();return v.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var n=/([?&])_=[^&]*/;if(n.test(this.url))this.url=this.url.replace(n,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function b(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),a=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(a))}}),t}function y(e,t){if(!(this instanceof y))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},h.call(g.prototype),h.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var _=[301,302,303,307,308];y.redirect=function(e,t){if(-1===_.indexOf(t))throw new RangeError("Invalid status code");return new y(null,{status:t,headers:{location:e}})};var w=n.DOMException;try{new w}catch(e){(w=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.pwrCreate(Error.prototype),w.prototype.constructor=w}function E(e,t){return new pwrPromise(function(r,i){var o=new g(e,t);if(o.signal&&o.signal.aborted)return i(new w("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:function(e){var t=new u;return e.replace(/\r?\n[\t ]+/g," ").split("\r").pwrMap(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var a=r.join(":").trim();t.append(n,a)}}),t}(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;setTimeout(function(){r(new y(t,e))},0)},s.onerror=function(){setTimeout(function(){i(new TypeError("Network request failed"))},0)},s.ontimeout=function(){setTimeout(function(){i(new TypeError("Network request failed"))},0)},s.onabort=function(){setTimeout(function(){i(new w("Aborted","AbortError"))},0)},s.open(o.method,function(e){try{return""===e&&n.location.href?n.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&(a.blob?s.responseType="blob":a.arrayBuffer&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof u?o.headers.forEach(function(e,t){s.setRequestHeader(t,e)}):Object.getOwnPropertyNames(t.headers).forEach(function(e){s.setRequestHeader(e,c(t.headers[e]))}),o.signal&&(o.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",l)}),s.send(void 0===o._bodyInit?null:o._bodyInit)})}E.polyfill=!0,n.fetch||(n.fetch=E,n.Headers=u,n.Request=g,n.Response=y);var O=r(263);r(356);window.ResizeObserver=window.ResizeObserver||O.a},function(e,t,r){},function(e,t,r){},,,,,,function(e,t,r){},function(e,t,r){var n=r(396);"string"==typeof n&&(n=[[e.i,n,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};r(253)(n,a);n.locals&&(e.exports=n.locals)},function(e,t,r){(e.exports=r(252)(!1)).push([e.i,".p-w-r .p-w-r_future {\n  /**\n  * Use the configured 'mono' font family for elements that\n  * are expected to be rendered with a monospace font, falling\n  * back to the system monospace stack if there is no configured\n  * 'mono' font family.\n  */\n  /* pre,\n  code,\n  kbd,\n  samp {\n    font-family: theme(\n      'fontFamily.mono',\n      ui-monospace,\n      SFMono-Regular,\n      Menlo,\n      Monaco,\n      Consolas,\n      'Liberation Mono',\n      'Courier New',\n      monospace\n    );\n  } */\n}\n/* imported from https://github.com/tailwindlabs/tailwindcss/blob/master/src/plugins/css/preflight.css */\n.p-w-r .p-w-r_future blockquote,\n.p-w-r .p-w-r_future dl,\n.p-w-r .p-w-r_future dd,\n.p-w-r .p-w-r_future h1,\n.p-w-r .p-w-r_future h2,\n.p-w-r .p-w-r_future h3,\n.p-w-r .p-w-r_future h4,\n.p-w-r .p-w-r_future h5,\n.p-w-r .p-w-r_future h6,\n.p-w-r .p-w-r_future hr,\n.p-w-r .p-w-r_future figure,\n.p-w-r .p-w-r_future p,\n.p-w-r .p-w-r_future pre {\n  margin: 0;\n}\n.p-w-r .p-w-r_future button {\n  background-color: transparent;\n  background-image: none;\n}\n/**\n  * Work around a Firefox/IE bug where the transparent `button` background\n  * results in a loss of the default `button` focus styles.\n  */\n.p-w-r .p-w-r_future button:focus {\n  outline: 1px dotted;\n  outline: 5px auto -webkit-focus-ring-color;\n}\n.p-w-r .p-w-r_future fieldset {\n  margin: 0;\n  padding: 0;\n}\n.p-w-r .p-w-r_future ol,\n.p-w-r .p-w-r_future ul {\n  list-style: none;\n  margin: 0;\n  padding: 0;\n}\n.p-w-r .p-w-r_future * {\n  font-family: inherit;\n  line-height: inherit;\n}\n/**\n  * 1. Prevent padding and border from affecting element width.\n  *\n  *    We used to set this in the html element and inherit from\n  *    the parent element for everything else. This caused issues\n  *    in shadow-dom-enhanced elements like <details> where the content\n  *    is wrapped by a div with box-sizing set to `content-box`.\n  *\n  *    https://github.com/mozdevs/cssremedy/issues/4\n  *\n  *\n  * 2. Allow adding a border to an element by just adding a border-width.\n  *\n  *    By default, the way the browser specifies that an element should have no\n  *    border is by setting it's border-style to `none` in the user-agent\n  *    stylesheet.\n  *\n  *    In order to easily add borders to elements by just setting the `border-width`\n  *    property, we change the default border-style for all elements to `solid`, and\n  *    use border-width to hide them instead. This way our `border` utilities only\n  *    need to set the `border-width` property instead of the entire `border`\n  *    shorthand, making our border utilities much more straightforward to compose.\n  *\n  *    https://github.com/tailwindcss/tailwindcss/pull/116\n  */\n.p-w-r .p-w-r_future *,\n.p-w-r .p-w-r_future ::before,\n.p-w-r .p-w-r_future ::after {\n  box-sizing: border-box; /* 1 */\n  border-width: 0; /* 2 */\n  border-style: solid; /* 2 */\n  border-color: #e5e7eb; /* 2 */\n}\n/*\n  * Ensure horizontal rules are visible by default\n  */\n.p-w-r .p-w-r_future hr {\n  border-top-width: 1px;\n}\n/**\n  * Undo the `border-style: none` reset that Normalize applies to images so that\n  * our `border-{width}` utilities have the expected effect.\n  *\n  * The Normalize reset is unnecessary for us since we default the border-width\n  * to 0 on all elements.\n  *\n  * https://github.com/tailwindcss/tailwindcss/issues/362\n  */\n.p-w-r .p-w-r_future img {\n  border-style: solid;\n}\n.p-w-r .p-w-r_future textarea {\n  resize: vertical;\n}\n.p-w-r .p-w-r_future input::-webkit-input-placeholder,\n.p-w-r .p-w-r_future textarea::-webkit-input-placeholder {\n  opacity: 1;\n  color: #707070;\n}\n.p-w-r .p-w-r_future input:-ms-input-placeholder,\n.p-w-r .p-w-r_future textarea:-ms-input-placeholder {\n  opacity: 1;\n  color: #707070;\n}\n.p-w-r .p-w-r_future input::placeholder,\n.p-w-r .p-w-r_future textarea::placeholder {\n  opacity: 1;\n  color: #707070;\n}\n.p-w-r .p-w-r_future button,\n.p-w-r .p-w-r_future [role='button'] {\n  cursor: pointer;\n}\n.p-w-r .p-w-r_future table {\n  border-collapse: collapse;\n}\n.p-w-r .p-w-r_future h1,\n.p-w-r .p-w-r_future h2,\n.p-w-r .p-w-r_future h3,\n.p-w-r .p-w-r_future h4,\n.p-w-r .p-w-r_future h5,\n.p-w-r .p-w-r_future h6 {\n  font-size: inherit;\n  font-weight: inherit;\n}\n/**\n  * Reset links to optimize for opt-in styling instead of\n  * opt-out.\n  */\n.p-w-r .p-w-r_future a {\n  color: inherit;\n  text-decoration: inherit;\n}\n/**\n  * Reset form element properties that are easy to forget to\n  * style explicitly so you don't inadvertently introduce\n  * styles that deviate from your design system. These styles\n  * supplement a partial reset that is already applied by\n  * normalize.css.\n  */\n.p-w-r .p-w-r_future button,\n.p-w-r .p-w-r_future input,\n.p-w-r .p-w-r_future optgroup,\n.p-w-r .p-w-r_future select,\n.p-w-r .p-w-r_future textarea {\n  padding: 0;\n  line-height: inherit;\n  color: inherit;\n}\n/**\n  * Make replaced elements `display: block` by default as that's\n  * the behavior you want almost all of the time. Inspired by\n  * CSS Remedy, with `svg` added as well.\n  *\n  * https://github.com/mozdevs/cssremedy/issues/14\n  */\n.p-w-r .p-w-r_future img,\n.p-w-r .p-w-r_future svg,\n.p-w-r .p-w-r_future video,\n.p-w-r .p-w-r_future canvas,\n.p-w-r .p-w-r_future audio,\n.p-w-r .p-w-r_future iframe,\n.p-w-r .p-w-r_future embed,\n.p-w-r .p-w-r_future object {\n  display: block;\n  vertical-align: middle;\n}\n/**\n  * Constrain images and videos to the parent width and preserve\n  * their intrinsic aspect ratio.\n  *\n  * https://github.com/mozdevs/cssremedy/issues/14\n  */\n.p-w-r .p-w-r_future img,\n.p-w-r .p-w-r_future video {\n  max-width: 100%;\n  height: auto;\n}\n\n.p-w-r .p-w-r_future .pr-bg-black {\n  --tw-bg-opacity: 1;\n  background-color: rgba(0, 0, 0, var(--tw-bg-opacity));\n}\n\n.p-w-r .p-w-r_future .pr-bg-white {\n  --tw-bg-opacity: 1;\n  background-color: rgba(255, 255, 255, var(--tw-bg-opacity));\n}\n\n.p-w-r .p-w-r_future .pr-bg-blue-600 {\n  --tw-bg-opacity: 1;\n  background-color: rgba(37, 99, 235, var(--tw-bg-opacity));\n}\n\n.p-w-r .p-w-r_future .hover\\:pr-bg-gray-200:hover {\n  --tw-bg-opacity: 1;\n  background-color: rgba(229, 231, 235, var(--tw-bg-opacity));\n}\n\n.p-w-r .p-w-r_future .pr-bg-opacity-50 {\n  --tw-bg-opacity: 0.5;\n}\n\n.p-w-r .p-w-r_future .pr-bg-opacity-90 {\n  --tw-bg-opacity: 0.9;\n}\n\n.p-w-r .p-w-r_future .pr-border-gray-300 {\n  --tw-border-opacity: 1;\n  border-color: rgba(209, 213, 219, var(--tw-border-opacity));\n}\n\n.p-w-r .p-w-r_future .pr-rounded-sm {\n  border-radius: 0.125rem;\n}\n\n.p-w-r .p-w-r_future .pr-rounded-full {\n  border-radius: 9999px;\n}\n\n.p-w-r .p-w-r_future .pr-border {\n  border-width: 1px;\n}\n\n.p-w-r .p-w-r_future .pr-border-b-2 {\n  border-bottom-width: 2px;\n}\n\n.p-w-r .p-w-r_future .pr-border-t {\n  border-top-width: 1px;\n}\n\n.p-w-r .p-w-r_future .pr-border-l {\n  border-left-width: 1px;\n}\n\n.p-w-r .p-w-r_future .pr-cursor-default {\n  cursor: default;\n}\n\n.p-w-r .p-w-r_future .pr-block {\n  display: block;\n}\n\n.p-w-r .p-w-r_future .pr-flex {\n  display: -webkit-flex;\n  display: flex;\n}\n\n.p-w-r .p-w-r_future .pr-flex-col {\n  -webkit-flex-direction: column;\n  flex-direction: column;\n}\n\n.p-w-r .p-w-r_future .pr-items-center {\n  -webkit-align-items: center;\n  align-items: center;\n}\n\n.p-w-r .p-w-r_future .pr-self-center {\n  -webkit-align-self: center;\n  align-self: center;\n}\n\n.p-w-r .p-w-r_future .pr-justify-center {\n  -webkit-justify-content: center;\n  justify-content: center;\n}\n\n.p-w-r .p-w-r_future .pr-justify-between {\n  -webkit-justify-content: space-between;\n  justify-content: space-between;\n}\n\n.p-w-r .p-w-r_future .pr-font-medium {\n  font-weight: 500;\n}\n\n.p-w-r .p-w-r_future .pr-font-bold {\n  font-weight: 700;\n}\n\n.p-w-r .p-w-r_future .pr-h-4 {\n  height: 1rem;\n}\n\n.p-w-r .p-w-r_future .pr-h-5 {\n  height: 1.25rem;\n}\n\n.p-w-r .p-w-r_future .pr-h-8 {\n  height: 2rem;\n}\n\n.p-w-r .p-w-r_future .pr-h-10 {\n  height: 2.5rem;\n}\n\n.p-w-r .p-w-r_future .pr-h-40 {\n  height: 10rem;\n}\n\n.p-w-r .p-w-r_future .pr-h-1\\/2 {\n  height: 50%;\n}\n\n.p-w-r .p-w-r_future .pr-h-full {\n  height: 100%;\n}\n\n.p-w-r .p-w-r_future .pr-h-screen {\n  height: 100vh;\n}\n\n@supports (-webkit-touch-callout: none) {\n  .p-w-r .p-w-r_future .pr-h-screen {\n    height: -webkit-fill-available;\n  }\n}\n\n.p-w-r .p-w-r_future .pr-h-mediaDesktop {\n  height: 31rem;\n}\n\n.p-w-r .p-w-r_future .pr-h-shopProductsLg {\n  height: 37.75rem;\n}\n\n.p-w-r .p-w-r_future .pr-text-xs {\n  font-size: 12px;\n  line-height: 16px;\n}\n\n.p-w-r .p-w-r_future .pr-text-sm {\n  font-size: 14px;\n  line-height: 20px;\n}\n\n.p-w-r .p-w-r_future .pr-text-base {\n  font-size: 16px;\n  line-height: 24px;\n}\n\n.p-w-r .p-w-r_future .pr-my-2 {\n  margin-top: 0.5rem;\n  margin-bottom: 0.5rem;\n}\n\n.p-w-r .p-w-r_future .pr-ml-1 {\n  margin-left: 0.25rem;\n}\n\n.p-w-r .p-w-r_future .pr-ml-2 {\n  margin-left: 0.5rem;\n}\n\n.p-w-r .p-w-r_future .pr-mt-4 {\n  margin-top: 1rem;\n}\n\n.p-w-r .p-w-r_future .pr-mt-6 {\n  margin-top: 1.5rem;\n}\n\n.p-w-r .p-w-r_future .pr-mr-6 {\n  margin-right: 1.5rem;\n}\n\n.p-w-r .p-w-r_future .pr-mb-6 {\n  margin-bottom: 1.5rem;\n}\n\n.p-w-r .p-w-r_future .pr-mr-8 {\n  margin-right: 2rem;\n}\n\n.p-w-r .p-w-r_future .pr-mb-8 {\n  margin-bottom: 2rem;\n}\n\n.p-w-r .p-w-r_future .pr-mt-12 {\n  margin-top: 3rem;\n}\n\n.p-w-r .p-w-r_future .pr-object-contain {\n  -o-object-fit: contain;\n  object-fit: contain;\n}\n\n.p-w-r .p-w-r_future .pr-overflow-auto {\n  overflow: auto;\n}\n\n.p-w-r .p-w-r_future .pr-overflow-hidden {\n  overflow: hidden;\n}\n\n.p-w-r .p-w-r_future .pr-overflow-y-auto {\n  overflow-y: auto;\n}\n\n.p-w-r .p-w-r_future .pr-overflow-x-hidden {\n  overflow-x: hidden;\n}\n\n.p-w-r .p-w-r_future .pr-p-2 {\n  padding: 0.5rem;\n}\n\n.p-w-r .p-w-r_future .pr-p-4 {\n  padding: 1rem;\n}\n\n.p-w-r .p-w-r_future .pr-p-8 {\n  padding: 2rem;\n}\n\n.p-w-r .p-w-r_future .pr-py-1 {\n  padding-top: 0.25rem;\n  padding-bottom: 0.25rem;\n}\n\n.p-w-r .p-w-r_future .pr-px-2 {\n  padding-left: 0.5rem;\n  padding-right: 0.5rem;\n}\n\n.p-w-r .p-w-r_future .pr-py-8 {\n  padding-top: 2rem;\n  padding-bottom: 2rem;\n}\n\n.p-w-r .p-w-r_future .pr-px-32 {\n  padding-left: 8rem;\n  padding-right: 8rem;\n}\n\n.p-w-r .p-w-r_future .pr-py-1\\.5 {\n  padding-top: 0.375rem;\n  padding-bottom: 0.375rem;\n}\n\n.p-w-r .p-w-r_future .pr-pr-0 {\n  padding-right: 0px;\n}\n\n.p-w-r .p-w-r_future .pr-pr-1 {\n  padding-right: 0.25rem;\n}\n\n.p-w-r .p-w-r_future .pr-pl-1 {\n  padding-left: 0.25rem;\n}\n\n.p-w-r .p-w-r_future .pr-pr-2 {\n  padding-right: 0.5rem;\n}\n\n.p-w-r .p-w-r_future .pr-pt-4 {\n  padding-top: 1rem;\n}\n\n.p-w-r .p-w-r_future .pr-pt-6 {\n  padding-top: 1.5rem;\n}\n\n.p-w-r .p-w-r_future .pr-pr-0\\.5 {\n  padding-right: 0.125rem;\n}\n\n.p-w-r .p-w-r_future .pr-static {\n  position: static;\n}\n\n.p-w-r .p-w-r_future .pr-fixed {\n  position: fixed;\n}\n\n.p-w-r .p-w-r_future .pr-absolute {\n  position: absolute;\n}\n\n.p-w-r .p-w-r_future .pr-top-0 {\n  top: 0px;\n}\n\n.p-w-r .p-w-r_future .pr-right-0 {\n  right: 0px;\n}\n\n.p-w-r .p-w-r_future .pr-bottom-0 {\n  bottom: 0px;\n}\n\n.p-w-r .p-w-r_future .pr-left-0 {\n  left: 0px;\n}\n\n.p-w-r .p-w-r_future .pr-top-3 {\n  top: 0.75rem;\n}\n\n.p-w-r .p-w-r_future .pr-right-3 {\n  right: 0.75rem;\n}\n\n.p-w-r .p-w-r_future .pr-left-3 {\n  left: 0.75rem;\n}\n\n.p-w-r .p-w-r_future .pr-top-1\\/4 {\n  top: 25%;\n}\n\n* {\n  --tw-shadow: 0 0 rgba(0, 0, 0, 0);\n}\n\n.p-w-r .p-w-r_future .pr-shadow-md {\n  --tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),\n    0 2px 4px -1px rgba(0, 0, 0, 0.06);\n  box-shadow: 0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), var(--tw-shadow);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),\n    var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow);\n}\n\n.p-w-r .p-w-r_future .pr-shadow-md-rotate {\n  --tw-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1),\n    0 2px 4px -1px rgba(0, 0, 0, 0.06);\n  box-shadow: 0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), var(--tw-shadow);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),\n    var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow);\n}\n\n* {\n  --tw-ring-inset: var(--tw-empty, /*!*/ /*!*/);\n  --tw-ring-offset-width: 0px;\n  --tw-ring-offset-color: #fff;\n  --tw-ring-color: rgba(59, 130, 246, 0.5);\n  --tw-ring-offset-shadow: 0 0 rgba(0, 0, 0, 0);\n  --tw-ring-shadow: 0 0 rgba(0, 0, 0, 0);\n}\n\n.p-w-r .p-w-r_future .pr-text-black {\n  --tw-text-opacity: 1;\n  color: rgba(0, 0, 0, var(--tw-text-opacity));\n}\n\n.p-w-r .p-w-r_future .pr-text-white {\n  --tw-text-opacity: 1;\n  color: rgba(255, 255, 255, var(--tw-text-opacity));\n}\n\n.p-w-r .p-w-r_future .pr-text-gray-400 {\n  --tw-text-opacity: 1;\n  color: rgba(112, 112, 112, var(--tw-text-opacity));\n}\n\n.p-w-r .p-w-r_future .pr-text-gray-600 {\n  --tw-text-opacity: 1;\n  color: rgba(88, 88, 88, var(--tw-text-opacity));\n}\n\n.p-w-r .p-w-r_future .pr-text-red-600 {\n  --tw-text-opacity: 1;\n  color: rgba(220, 38, 38, var(--tw-text-opacity));\n}\n\n.p-w-r .p-w-r_future .pr-text-blue-600 {\n  --tw-text-opacity: 1;\n  color: rgba(37, 99, 235, var(--tw-text-opacity));\n}\n\n.p-w-r .p-w-r_future .pr-underline {\n  text-decoration: underline;\n}\n\n.p-w-r .p-w-r_future .hover\\:pr-underline:hover {\n  text-decoration: underline;\n}\n\n.p-w-r .p-w-r_future .hover\\:pr-no-underline:hover {\n  text-decoration: none;\n}\n\n.p-w-r .p-w-r_future .pr-break-all {\n  word-break: break-all;\n}\n\n.p-w-r .p-w-r_future .pr-w-4 {\n  width: 1rem;\n}\n\n.p-w-r .p-w-r_future .pr-w-6 {\n  width: 1.5rem;\n}\n\n.p-w-r .p-w-r_future .pr-w-8 {\n  width: 2rem;\n}\n\n.p-w-r .p-w-r_future .pr-w-10 {\n  width: 2.5rem;\n}\n\n.p-w-r .p-w-r_future .pr-w-40 {\n  width: 10rem;\n}\n\n.p-w-r .p-w-r_future .pr-w-96 {\n  width: 24rem;\n}\n\n.p-w-r .p-w-r_future .pr-w-full {\n  width: 100%;\n}\n\n.p-w-r .p-w-r_future .pr-w-screen {\n  width: 100vw;\n}\n\n.p-w-r .p-w-r_future .pr-z-10 {\n  z-index: 10;\n}\n\n.p-w-r .p-w-r_future .pr-z-20 {\n  z-index: 20;\n}\n\n.p-w-r .p-w-r_future .pr-z-30 {\n  z-index: 30;\n}\n\n.p-w-r .p-w-r_future .pr-z-max {\n  z-index: 10000;\n}\n\n.p-w-r .p-w-r_future .pr-transform {\n  --tw-translate-x: 0;\n  --tw-translate-y: 0;\n  --tw-rotate: 0;\n  --tw-skew-x: 0;\n  --tw-skew-y: 0;\n  --tw-scale-x: 1;\n  --tw-scale-y: 1;\n  -webkit-transform: translateX(var(--tw-translate-x))\n    translateY(var(--tw-translate-y)) rotate(var(--tw-rotate))\n    skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x))\n    scaleY(var(--tw-scale-y));\n  transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))\n    rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))\n    scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.p-w-r .p-w-r_future .pr-rotate-180 {\n  --tw-rotate: 180deg;\n}\n\n.p-w-r .p-w-r_future .pr-translate-y-0 {\n  --tw-translate-y: 0px;\n}\n\n.p-w-r .p-w-r_future .pr-translate-y-0\\.5 {\n  --tw-translate-y: 0.125rem;\n}\n\n@-webkit-keyframes pr-spin {\n  to {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n\n@keyframes pr-spin {\n  to {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n\n@-webkit-keyframes pr-ping {\n  75%,\n  100% {\n    -webkit-transform: scale(2);\n    transform: scale(2);\n    opacity: 0;\n  }\n}\n\n@keyframes pr-ping {\n  75%,\n  100% {\n    -webkit-transform: scale(2);\n    transform: scale(2);\n    opacity: 0;\n  }\n}\n\n@-webkit-keyframes pr-pulse {\n  50% {\n    opacity: 0.5;\n  }\n}\n\n@keyframes pr-pulse {\n  50% {\n    opacity: 0.5;\n  }\n}\n\n@-webkit-keyframes pr-bounce {\n  0%,\n  100% {\n    -webkit-transform: translateY(-25%);\n    transform: translateY(-25%);\n    -webkit-animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n  }\n\n  50% {\n    -webkit-transform: none;\n    transform: none;\n    -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n  }\n}\n\n@keyframes pr-bounce {\n  0%,\n  100% {\n    -webkit-transform: translateY(-25%);\n    transform: translateY(-25%);\n    -webkit-animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n  }\n\n  50% {\n    -webkit-transform: none;\n    transform: none;\n    -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n  }\n}\n\n.pr-icon {\n  fill: currentColor;\n  stroke: currentColor;\n}\n\n/* Reset legacy global modal style */\n\n.pr-modal {\n  width: auto;\n  margin: 0;\n  border: none;\n  position: absolute;\n  top: 0;\n  -webkit-transform: none;\n  transform: none;\n  height: auto;\n  background: none;\n  border-radius: 0;\n  border-radius: initial;\n  padding: 0;\n  overflow: visible;\n  box-shadow: none;\n}\n\n@media (min-width: 640px) {\n  .p-w-r .p-w-r_future .sm\\:pr-bg-white {\n    --tw-bg-opacity: 1;\n    background-color: rgba(255, 255, 255, var(--tw-bg-opacity));\n  }\n\n  .p-w-r .p-w-r_future .sm\\:pr-h-16 {\n    height: 4rem;\n  }\n\n  .p-w-r .p-w-r_future .sm\\:pr-text-lg {\n    font-size: 18px;\n    line-height: 28px;\n  }\n\n  .p-w-r .p-w-r_future .sm\\:pr-mt-0 {\n    margin-top: 0px;\n  }\n\n  .p-w-r .p-w-r_future .sm\\:pr-mb-0 {\n    margin-bottom: 0px;\n  }\n\n  .p-w-r .p-w-r_future .sm\\:pr-mb-6 {\n    margin-bottom: 1.5rem;\n  }\n\n  .p-w-r .p-w-r_future .sm\\:pr-overflow-auto {\n    overflow: auto;\n  }\n\n  .p-w-r .p-w-r_future .sm\\:pr-p-4 {\n    padding: 1rem;\n  }\n\n  .p-w-r .p-w-r_future .sm\\:pr-right-7 {\n    right: 1.75rem;\n  }\n\n  .p-w-r .p-w-r_future .sm\\:pr-left-7 {\n    left: 1.75rem;\n  }\n\n  .p-w-r .p-w-r_future .sm\\:pr-w-16 {\n    width: 4rem;\n  }\n\n  .p-w-r .p-w-r_future .sm\\:pr-w-40 {\n    width: 10rem;\n  }\n}\n\n@media (min-width: 768px) {\n  .p-w-r .p-w-r_future .md\\:pr-px-28 {\n    padding-left: 7rem;\n    padding-right: 7rem;\n  }\n\n  .p-w-r .p-w-r_future .md\\:pr-w-mediaDesktop {\n    width: 31rem;\n  }\n}\n\n@media (min-width: 1024px) {\n  .p-w-r .p-w-r_future .lg\\:pr-right-10 {\n    right: 2.5rem;\n  }\n\n  .p-w-r .p-w-r_future .lg\\:pr-left-10 {\n    left: 2.5rem;\n  }\n}\n\n@media (min-width: 1280px) {\n  .p-w-r .p-w-r_future .xl\\:pr-right-32 {\n    right: 8rem;\n  }\n\n  .p-w-r .p-w-r_future .xl\\:pr-left-32 {\n    left: 8rem;\n  }\n}\n\n@media (min-width: 1536px) {\n}\n\n@media (min-width: 870px) {\n  .p-w-r .p-w-r_future .md-modal\\:pr-bg-transparent {\n    background-color: transparent;\n  }\n\n  .p-w-r .p-w-r_future .md-modal\\:pr-rounded-none {\n    border-radius: 0px;\n  }\n\n  .p-w-r .p-w-r_future .md-modal\\:pr-right-3 {\n    right: 0.75rem;\n  }\n\n  .p-w-r .p-w-r_future .md-modal\\:pr-left-3 {\n    left: 0.75rem;\n  }\n\n  .p-w-r .p-w-r_future .md-modal\\:pr-top-auto {\n    top: auto;\n  }\n\n  .p-w-r .p-w-r_future .md-modal\\:pr-shadow-none {\n    --tw-shadow: 0 0 rgba(0, 0, 0, 0);\n    box-shadow: 0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), var(--tw-shadow);\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),\n      var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow);\n  }\n\n  .p-w-r .p-w-r_future .md-modal\\:pr-text-white {\n    --tw-text-opacity: 1;\n    color: rgba(255, 255, 255, var(--tw-text-opacity));\n  }\n\n  .p-w-r .p-w-r_future .md-modal\\:pr-w-44 {\n    width: 11rem;\n  }\n}\n",""])},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},,,,function(e,t,r){"use strict";r.r(t);var n=r(16),a=r.n(n),i=r(2),o=r.n(i),s=(r(386),r(0)),c=r.n(s),l=r(26),u=r.n(l),p=r(5),d=r(6),f={Aggregate:"Aggregate",AggregateAndDetails:"AggregateAndDetails"};function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var v=r(12),g=r(4),b={api_key:"ec8f9acb-be0e-489b-a6ff-3eed3811025e",locale:"en_US",merchant_group_id:"49047",merchant_id:"512774",page_id:"7822949451"},y=r(68),_=r(22),w=r(209),E=r(7),O=r.n(E),S=(r(9),r(17));function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var x=function(e){function t(){return e.apply(this,arguments)||this}return O()(t,e),t.prototype.render=function(){var e=this.props,t=e.config,r=e.merchantProperties,n=void 0===r?{}:r,a=e.productKey,i=e.rollup,o=void 0===i?{}:i,s=Object(_.h)(t,n),l=s.showJSONLD,u=s.showMicrodata;return o.review_count?l?null:t.structured_data_product_id?null:u?c.a.createElement("div",{itemScope:!0,itemProp:"itemReviewed",id:"pr-"+a,itemType:"http://schema.org/Product"},c.a.createElement("meta",{itemProp:"name",content:o.productName||a})):null:null},t}(c.a.Component),k=Object(S.b)(function(e,t){var r=Object(g.s)(t.config);return j(j({},e.Reviews[r]),{},{productKey:r})})(x),I=r(14);function P(e){var t=e.pageId,r=e.targetElement,n=Object(I.e)(t,"ADD_TO_CART");return Object(s.useEffect)(function(){if(r){var e=function(){return n("add-to-cart")};return r.addEventListener("click",e),function(){r.removeEventListener("click",e)}}}),null}var T,R=r(128),N=r(30);function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var L=null!=(T=N.a.getItem("feedless-product"))?T:{},M=L.pids,F=L.pidvs;null==M&&(M=new Set,F=new Set,N.a.setItem("feedless-product",{pids:M,pidvs:F}));var z="[Powerreviews] Feedless Product Catalog:";function V(e){var t=Object(p.a)(e.config,!0,!0),r=Object(s.useState)(!1),n=r[0],a=r[1],i=Object(I.e)();return Object(s.useEffect)(function(){if(!0!==n&&U(t)){var e=function(e){var t,r,n=[];(null===e||void 0===e?void 0:e.product)&&n.push(e);(null===e||void 0===e?void 0:null===(t=e.product)||void 0===t?void 0:null===(r=t.variants)||void 0===r?void 0:r.length)>0&&e.product.variants.sort(function(){return.5-Math.random()}).slice(0,3).forEach(function(t){n.push(D(D({},e),{},{page_id_variant:t.page_id_variant,product:D(D({},e.product),t)}))});return n}(t).pwrMap(W);e.forEach(function(e){var r;if(null!=e.pageIdVariant)F.has(e.pageIdVariant)?r="Duplicated Product variant: "+e.pageIdVariant:F.add(e.pageIdVariant);else if(M.has(e.pageId)?r="Duplicated Product: "+e.pageId:M.add(e.pageId),M.size>1){var n=Array.from(M.values()).join(",");console.warn(z,"Multiple Product definitions found on a single page: "+n+". For best practices visit https://help.powerreviews.com/Content/Implementation/Feedless.htm?tocpath=Implementation%7CAdd%20Product%20Data%7C_____1. ")}r?console.warn(z,r):i(t.page_id,"FEEDLESS_PRODUCT_CATALOG",e)}),function(e,t){var r={merchant_id:e.merchant_id,merchant_group_id:e.merchant_group_id,site_id:e.site_id,page_id:e.page_id,page_id_variant:e.page_id_variant,product_brand_name:t.productBrandName,product_name:t.productName,product_description:t.productDescription,product_url:t.productUrl,product_image_url:t.productImageUrl,product_price:t.productPrice,product_category_name:t.productCategoryName,product_in_stock:t.productInStock,product_manufacturer_id:t.productManufacturerId,product_upc:t.productUpc,product_add_to_cart_url:t.productAddToCartUrl,asin:t.asin,best_buy_sku:t.bestBuySku,cool_blue_sku:t.coolBlueSku};R.a.setItem("currentProductInformation",r)}(t,e[0]),a(!0)}},[n,t,i]),null}function U(e){return["name","image_url","category_name","description"].pwrMap(function(t){return q(e,t)}).every(Boolean)}function q(e,t){var r=e.product,n=null;return r&&(n=r[t]),void 0!==n&&null!==n||(n=e["product_"+t]||e[("product_"+t).toUpperCase()]),n}function W(e){var t=function(t){return q(e,t)},r={pageId:e.page_id,pageIdVariant:e.page_id_variant,locale:e.locale,productBrandName:t("brand_name"),productName:t("name"),productDescription:t("description")?t("description").substr(0,300):null,productUrl:t("url"),productImageUrl:t("image_url"),productPrice:t("price"),productCategoryName:t("category_name"),productInStock:t("in_stock"),productManufacturerId:t("manufacturer_id"),productUpc:t("upc"),productAddToCartUrl:t("add_to_cart_url"),asin:t("asin"),bestBuySku:t("best_buy_sku"),coolBlueSku:t("cool_blue_sku")};return Boolean(e.site_id)?r.sid=e.site_id:r.mid=e.merchant_id,r}V.configHasProductData=U;var B=r(89),H=r(43),K=r(11),G=function(e){var t=Object(H.c)().CD4_ADA_HEADING_LEVEL,r=void 0===t?"OFF":t,n=/^h[0-6]$/i.test(r)?parseInt(r[1],10):-1;return c.a.createElement(K.b,{initialLevel:n},e.children)},Q=function(e){var t=e.store,r=e.config,n=e.children;return c.a.createElement($,null,c.a.createElement(S.a,{store:t},c.a.createElement(H.b,{config:r},function(){return c.a.createElement(I.d,null,c.a.createElement(G,null,n))})))},Y=function(e){var t=e.store,r=(e.config,e.children);return c.a.createElement($,null,c.a.createElement(S.a,{store:t},r))},$=function(e){function t(t){var r;return(r=e.call(this,t)||this).state={hasError:!1},r}O()(t,e),t.getDerivedStateFromError=function(e){return{hasError:!0}};var r=t.prototype;return r.componentDidCatch=function(e,t){},r.render=function(){return this.state.hasError?null:this.props.children},t}(c.a.Component),J=r(144),X=r(29),Z=(r(394),r(395),r(98)),ee=r(109);function te(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return re(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return re(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.pwrBind(r)}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ae(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ne(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ie(e){var t=e||document.body,r=document.createElement("div");return r.className="p-w-r",t.appendChild(r),r}var oe=new Z.a(["Write","WriteAReview","WriteAQuestion","WriteAnAnswer","SellerRatings","ReviewYourPurchases","WhydYouBuy"]);function se(e){return oe.has(e)}var ce=function(e,t){var r=[];if(function(e){if(t===v.i.RYP)return[];if(t===v.i.IRL_SNIPPET)return["api_key","merchant_id"];if(se(e.__componentKey))return["page_id","merchant_group_id","merchant_id"];if(e.ugc_id&&e.passcode)return[];var r=["api_key","merchant_group_id","merchant_id","page_id"];return t===v.i.SRW&&r.push("srwVariant"),r}(e).forEach(function(t){Object(p.b)(t,e)||r.push(t)}),r.length>0)throw new Error("PowerReviews - the following required parameters are missing: "+r);if(e.product&&e.product.variants&&e.product.variants.length){var n=e.product.variants.pwrMap(function(e){if(!e.page_id_variant)throw new Error("PowerReviews - product variant does not contain page_id_variant property",e);return""+e.page_id_variant});if(n.push(""+e.product.page_id_variant),n.filter(function(e,t,r){return r.indexOf(e)===t}).length!==e.product.variants.length+1)throw new Error("PowerReviews - product variants defined in your configuration are not unique")}},le=function(e){if(e&&!document.getElementById("pr-style-override")){var t=document.createElement("link");t.setAttribute("href",e),t.setAttribute("id","pr-style-override"),t.setAttribute("type","text/css"),t.setAttribute("rel","stylesheet"),g.b(t)}},ue=function(e){return!0===Object(p.b)("pr_enable_content_display_test_mode",e)?ae(ae({},e),b):e};function pe(e){return e.pwrMap(function(e){return e.__componentKey}).filter(Boolean).join(", ")}var de=function(e){var t,r;if(g.g(),window.showSmallPopup=function(e,t,r,n){var a={toolbar:"no",directories:"no",status:"no",menubar:"no",scrollbars:"yes",resizable:"yes",location:"yes",top:"200",left:"200"},i=[];for(var o in a)i.push(o+"="+(n&&n[o]||a[o]));i.join(",");var s=window.open(e,"_blank");window.focus&&s.focus()},window.POWERREVIEWS=ae(ae({},window.POWERREVIEWS),{},{UI_VERSION:"4.0",config:{},data:{get:function(e){return Object(_.c)(y.b,e)}},display:ae(ae({emitter:(null===(t=window.POWERREVIEWS)||void 0===t?void 0:null===(r=t.display)||void 0===r?void 0:r.emitter)||new J.a},window.POWERREVIEWS.display),{},{unmount:function(e){window.POWERREVIEWS.display.emitter.emit("unmount",e)},redraw:function(){y.b.dispatch(Object(w.b)())}}),common:{gCallbacks:{},getCallbacks:function(){return this.gCallbacks}},attachEvent:{WAR:{onLoad:function(e){window.POWERREVIEWS.common.getCallbacks().LOADED=e},onComplete:function(e){window.POWERREVIEWS.common.getCallbacks().COMPLETE=e},onError:function(e){window.POWERREVIEWS.common.getCallbacks().SUBMISSION_ERROR=e}},WAQ:{onLoad:function(e){window.POWERREVIEWS.common.getCallbacks().WAQ_LOADED=e},onComplete:function(e){window.POWERREVIEWS.common.getCallbacks().WAQ_COMPLETE=e},onError:function(e){window.POWERREVIEWS.common.getCallbacks().WAQ_SUBMISSION_ERROR=e}},WAA:{onLoad:function(e){window.POWERREVIEWS.common.getCallbacks().WAA_LOADED=e},onComplete:function(e){window.POWERREVIEWS.common.getCallbacks().WAA_COMPLETE=e},onError:function(e){window.POWERREVIEWS.common.getCallbacks().WAA_SUBMISSION_ERROR=e}}}}),!window.POWERREVIEWS.stylesLoaded){var n=document.createElement("style");n.setAttribute("type","text/css");var i=document.createTextNode(".p-w-r {display: none;}");n.appendChild(i),g.b(n);var o=document.createElement("link"),l="//ui.powerreviews.com/4.0/styles.css";window.POWERREVIEWS.display.build&&(l="//ui.powerreviews.com/tag-builds/"+window.POWERREVIEWS.display.build+"/4.0/styles.css"),o.setAttribute("href",l),o.setAttribute("type","text/css"),o.setAttribute("rel","stylesheet"),g.b(o)}window.POWERREVIEWS.display.render=function(t){var r=Object(B.a)(t).keys;if("ui.engine.js"!==window.POWERREVIEWS.display.engine&&!r.every(function(t){return e.filter(function(e){return e.key===t})[0]}))return window.POWERREVIEWS.display.renderQueue=t,window.POWERREVIEWS.display.engine="ui.engine.js",Object(B.b)({v:window.POWERREVIEWS.display.build},"4.0/ui.engine.js");if(!Array.isArray(t)&&0===Object.keys(t.components||{}).length&&V.configHasProductData(t)){var n=ie(),i="pr-root-"+t.merchant_id+"-"+t.locale;return n.setAttribute("data-pr-root","fp"),n.id=i,void u.a.render(c.a.createElement(Q,{store:y.b,config:t},c.a.createElement(V,{config:t})),n)}var o=function(e){for(var t,r=[],n=function(){var e=t.value,n=Object.keys(e.components||{});1===n.length?r.push(ae(ae({},e),{},{__componentKey:n[0]})):n.length>1&&n.forEach(function(t){var n;r.push(ae(ae({},e),{},{components:(n={},n[t]=e.components[t],n),__componentKey:t}))})},a=te(e);!(t=a()).done;)n();return r}(Array.isArray(t)?function(e,t){var r=t.filter(function(e){return e.dataRequirements===f.AggregateAndDetails}).pwrMap(function(e){return e.key}),n=function(t){return e.filter(function(e){var n=Object.keys(e.components).filter(function(e){return r.indexOf(e)>-1}).length;return t?n>0:0===n})},a=n(!0),i=n(!1),o=i.filter(function(e){return e.components.hasOwnProperty(d.u.ReviewSnippet)||e.components.hasOwnProperty(d.u.CategorySnippet)}),s=i.filter(function(e){return e.components.hasOwnProperty(d.u.QuestionSnippet)}),c=function(e){for(var t=[],r=function(){var r=e.splice(0,10),n=r.pwrMap(function(e){return e.page_id}).filter(function(e){return a.pwrMap(function(e){return e.page_id}).indexOf(e)<0});n.length>0&&(r=r.pwrMap(function(e){return h(h({},e),{},{batched_page_ids:n})})),t.push.apply(t,r)};e.length>0;)r();return t},l=[].concat(c(o),c(s));return[].concat(a,l)}(t,e):[t]).pwrMap(_.g),l=function(e){return e.pwrReduce(function(e,t){t.components;var r,n=t.__componentKey,i=a()(t,["components","__componentKey"]);return ae(ae(ae({},e),i),{},{__componentKeys:ae(ae({},e.__componentKeys),{},(r={},r[n]=n,r))})},{})}(o),m=[],g=[],b=Object(p.b)("pr_style_sheet",l,!0);if(b&&le(b),o.forEach(function(e){se(e.__componentKey)?m.push(e):g.push(e)}),m.length>1){var w=pe(m);throw new Error("[PowerReviews] the component(s) "+w+" cannot be rendered simultaneously.")}if(m.length>0&&g.length>0){var E=pe(g),O=pe(m);throw new Error('[Powerreviews] the components(s): "'+E+'" cannot be rendered simultaneously with "'+O+'"')}var S=e.pwrReduce(function(e,t){return e.set(t.key,t),e},new Map),C=g.length?function(e,t,r){if(0===t.length)return null;for(var n,a=!1,i=[],o={},l=te(t);!(n=l()).done;){var p=n.value;p=ue(p);var d=e.get(p.__componentKey)||{},f=d.type,m=d.component;if(null!=f){var h=p.components[p.__componentKey],g=document.getElementById(h);if(null!=g)if(ce(p,f),a=a||f===v.i.REVIEW_DISPLAY||f===v.i.REVIEW_SNIPPET||f===v.i.CATEGORY_SNIPPET||f===v.i.REVIEW_LIST||f===v.i.REVIEW_SNAPSHOT,"ADD_TO_CART"!==f){if(!m)throw new Error("[Powerreviews] Unknown component: "+p.__componentKey+".");i.push({Component:m,props:{config:p,type:f},targetNode:g}),V.configHasProductData(p)&&(o[p.page_id]=p)}else i.push({Component:P,props:{pageId:p.page_id,targetElement:g},targetNode:ie()});else console.warn('[Powerreviews] It looks like an invalid element was specified: "'+h+'". Check your render config and make sure "'+h+'" exists on the page')}else console.warn('[Powerreviews] Invalid component detected: "'+p.__componentKey+'"')}return function(e){var t=e.config,r=e.emitter,n=Object(s.useState)({}),l=n[0],p=n[1];return Object(s.useEffect)(function(){var e=function(e){p(function(t){var r;return ae(ae({},t),{},((r={})[e]=e,r))})};return r.on("unmount",e),function(){return r.off("unmount",e)}}),c.a.createElement(Q,{store:y.b,config:t},i.filter(function(e){return!(e.targetNode.id in l)}).pwrMap(function(e){var t=e.Component,r=e.props,n=e.targetNode;return c.a.createElement(X.a,{key:n.id,targetNode:n},c.a.createElement(t,r))}),u.a.createPortal(c.a.createElement("div",{className:"p-w-r"},a?c.a.createElement(k,{config:t}):null,Object.values(o).pwrMap(function(e){return c.a.createElement(V,{config:e,key:e.page_id})})),ie()))}}(S,g):function(e,t,r){for(var n,a=[],i=te(t);!(n=i()).done;){var o=n.value,l=e.get(o.__componentKey)||{},u=l.type,p=l.component;if(null!=u){var d=o.components[o.__componentKey],f=document.getElementById(d);if(null!=f){if(ce(o,u),!p)throw new Error("[Powerreviews] Unknown component: "+o.__componentKey+".");a.push({Component:p,props:{config:o,type:u},targetNode:f})}else console.warn('[Powerreviews] It looks like an invalid element was specified: "'+d+'". Check your render config and make sure "'+d+'" exists on the page')}else console.warn('[Powerreviews] Invalid component detected: "'+o.__componentKey+'"')}return function(e){var t=e.config,r=e.emitter,n=Object(s.useState)({}),i=n[0],o=n[1];return Object(s.useEffect)(function(){var e=function(e){o(function(t){var r;return ae(ae({},t),{},((r={})[e]=e,r))})};return r.on("unmount",e),function(){return r.off("unmount",e)}}),c.a.createElement(Y,{store:y.b,config:t},a.filter(function(e){return!(e.targetNode.id in i)}).pwrMap(function(e){var t=e.Component,r=e.props,n=e.targetNode;return c.a.createElement(X.a,{targetNode:n,key:n.id},c.a.createElement(t,r))}))}}(S,m),j=ie();j.setAttribute("data-pr-root",""),u.a.render(c.a.createElement(s.Suspense,{fallback:c.a.createElement("div",{"data-pr-state":"loading"})},c.a.createElement(C,{config:l,emitter:window.POWERREVIEWS.display.emitter})),j)},window.POWERREVIEWS.display.render=Object(ee.b)(window.POWERREVIEWS.display.render,250,!0);var m=window.POWERREVIEWS.display.renderQueue;m&&(window.POWERREVIEWS.display.render(m),window.POWERREVIEWS.display.renderQueue=null)},fe={key:d.u.AddToCart,type:"ADD_TO_CART",component:!1},me=r(8),he=r.n(me),ve=r(3),ge=r.n(ve),be=r(21),ye=r(1),_e=r(149),we=r(70),Ee=r(36),Oe=r.n(Ee);function Se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Se(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var je=function(e){function t(){return e.apply(this,arguments)||this}O()(t,e);var r=t.prototype;return r.getChildJSON=function(e,t){var r,n=e.type,i=e.props,o=(i.children,i.type),s=i.id,c=i.parentID,l=a()(i,["children","type","id","parentID"]);c&&(l={"@id":c}),s&&(l=Ce(Ce({},l),{},{"@id":s}));var u=new n(e.props).getJSON(!!o||t,l);return o?Oe()(((r={})[o]=u,r)):u},r.parseChildren=function(e){var t=this;return void 0===e&&(e=!1),this.props.children?this.props.children.length>0?this.props.children.pwrMap(function(r){return t.getChildJSON(r,e)}):[this.getChildJSON(this.props.children,e)]:{}},r.render=function(){return null},t}(c.a.Component);function xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var ke=function(e){function t(){return e.apply(this,arguments)||this}return O()(t,e),t.prototype.getJSON=function(t,r){void 0===t&&(t=!1);var n=e.prototype.parseChildren.call(this),a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xe(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({"@type":"AggregateRating"},r);return t?Oe.a.apply(void 0,[a].concat(n)):Oe.a.apply(void 0,[{aggregateRating:a}].concat(n))},t}(je);function Ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var Pe=function(e){function t(){return e.apply(this,arguments)||this}return O()(t,e),t.prototype.getJSON=function(t,r){void 0===t&&(t=!1);var n=e.prototype.parseChildren.call(this),a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({"@type":"Person"},r);return t?Oe.a.apply(void 0,[a].concat(n)):Oe.a.apply(void 0,[{author:a}].concat(n))},t}(je),Te=function(e){function t(){return e.apply(this,arguments)||this}return O()(t,e),t.prototype.getJSON=function(){if(this.props.children)return e.prototype.parseChildren.call(this,!0)},t}(je);function Re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var Ne=function(e){function t(){return e.apply(this,arguments)||this}return O()(t,e),t.prototype.getJSON=function(t,r){void 0===t&&(t=!1);var n=e.prototype.parseChildren.call(this),a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Re(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({"@type":"AdministrativeArea"},r);return t?Oe.a.apply(void 0,[a].concat(n)):Oe.a.apply(void 0,[{locationCreated:a}].concat(n))},t}(je);function Ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var De=function(e){function t(){return e.apply(this,arguments)||this}return O()(t,e),t.prototype.getJSON=function(t,r){void 0===t&&(t=!1);var n=e.prototype.parseChildren.call(this),a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ae(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({"@type":"Product"},r);return t?Oe.a.apply(void 0,[a].concat(n)):Oe.a.apply(void 0,[{product:a}].concat(n))},t}(je);function Le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var Me=function(e){function t(){return e.apply(this,arguments)||this}return O()(t,e),t.prototype.getJSON=function(t,r){void 0===t&&(t=!1);var n=e.prototype.parseChildren.call(this),a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({"@type":"Rating"},r);return t?Oe.a.apply(void 0,[a].concat(n)):Oe.a.apply(void 0,[{reviewRating:a}].concat(n))},t}(je);function Fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var ze=function(e){function t(){return e.apply(this,arguments)||this}return O()(t,e),t.prototype.getJSON=function(t,r){void 0===t&&(t=!1);var n=e.prototype.parseChildren.call(this),a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fe(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({"@type":"Review"},r);return Oe.a.apply(void 0,[a].concat(n))},t}(je);function Ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ve(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var qe=function(e){function t(){return e.apply(this,arguments)||this}return O()(t,e),t.prototype.getJSON=function(t,r){void 0===t&&(t=!1);var n=e.prototype.parseChildren.call(this,!0);if(n.length>1)throw new Error("The <ItemReviewed /> component can only contain a single child.");var a=Ue(Ue({},n[0]),r);return t?Oe()(a):Oe()({itemReviewed:a})},t}(je);function We(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var Be=function(e){function t(){return e.apply(this,arguments)||this}return O()(t,e),t.prototype.getJSON=function(t,r){void 0===t&&(t=!1);var n=e.prototype.parseChildren.call(this),a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?We(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):We(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({"@type":"Question"},r);return t?Oe.a.apply(void 0,[a].concat(n)):Oe.a.apply(void 0,[{question:a}].concat(n))},t}(je);function He(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var Ke=function(e){function t(){return e.apply(this,arguments)||this}return O()(t,e),t.prototype.getJSON=function(t,r){void 0===t&&(t=!1);var n=e.prototype.parseChildren.call(this),a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?He(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):He(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({"@type":"Answer"},r);return t?Oe.a.apply(void 0,[a].concat(n)):Oe.a.apply(void 0,[{suggestedAnswer:a}].concat(n))},t}(je),Ge=function(e){function t(){return e.apply(this,arguments)||this}return O()(t,e),t.prototype.getJSON=function(t,r){void 0===t&&(t=!1);var n=e.prototype.parseChildren.call(this,!0);return Oe()({"@graph":n})},t}(je),Qe=r(35),Ye=function(e){function t(){return e.apply(this,arguments)||this}return O()(t,e),t.prototype.render=function(){var e=null;if(this.props.children){var t,r=this.props.children.type,n=this.props.children.props,i=(n.children,n.type),o=a()(n,["children","type"]),s=new r(this.props.children.props).getJSON(!0,o);e="JSONLDNodeCollection"===r.name?Oe()({"@context":"http://schema.org/"},((t={})[i]=s,t)):Oe()({"@context":"http://schema.org/"},s)}return c.a.createElement("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:Qe.a.stringify(e)}})},t}(c.a.Component),$e=r(13);function Je(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Je(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Ze=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,o()(ge()(t),"ratedLabelTextId",Object($e.f)()),t}O()(t,e);var r=t.prototype;return r.componentDidMount=function(){var e,t,r=this.props,n=r.isLoading,a=r.config,i=r.getSnippets,o=r.getReviews,s=r.rollup,c=r.displayApi;("boolean"!=typeof n&&(a.batched_page_ids?i(c,a):o(c,a)),null!=s)&&(null===(e=(t=this.props).onLoad)||void 0===e||e.call(t))},r.componentDidUpdate=function(e,t){var r,n;null==e.rollup&&null!=this.props.rollup&&(null===(r=(n=this.props).onLoad)||void 0===r||r.call(n))},r.render=function(){var e=this.props,t=e.config,r=e.localizations,n=e.merchantProperties,a=e.productKey,i=e.rollup;if(!(null!=i))return c.a.createElement("div",null);var o=i.review_count,s=void 0===o?0:o,l=i.average_rating,u=void 0===l?0:l,d=i.productName,f=Object(_.h)(t,n),m=f.showJSONLD,h=f.showMicrodata,v=f.useNestedJSONLD,g=Object(_e.c)(u,s,t.structured_data_product_id||a);g=h&&s?g:g.empty;var b=Object(ye.a)("review_display.4.0.no_reviews",r);1===s?b=Object(ye.a)("review_display.4.0.common.review_count_singular",r):s>1&&(b=Object(ye.a)("review_display.4.0.common.review_count_plural",r).replace("{0}",s));var y=Object(ye.a)("review_display.4.0.common.rated_x_out_of_y",r).replace("{0}",u),w=m&&0!==s?!0===v?c.a.createElement(Ye,null,c.a.createElement(De,{name:d||a,id:t.structured_data_product_id||a},c.a.createElement(ke,{ratingValue:u,reviewCount:s}))):c.a.createElement(Ye,null,c.a.createElement(ke,{ratingValue:u,reviewCount:s},c.a.createElement(qe,null,c.a.createElement(De,{name:d,parentID:t.structured_data_product_id||a})))):null;return c.a.createElement("section",{id:"pr-category-snippets-"+t.page_id,className:s?"":"pr-no-reviews","aria-labelledby":this.ratedLabelTextId,"data-testid":"category-snippet"},c.a.createElement("div",he()({},g.root,{className:"pr-snippet pr-category-snippet"}),c.a.createElement("div",he()({},g.ratingValue,{className:"pr-category-snippet__rating pr-category-snippet__item"}),c.a.createElement(we.a,{isInteractive:!1,preset:u,ratingValue:u,useQuarterStars:!0,starStyles:Object(p.b)("pr_star_styles",n,t)}),c.a.createElement("span",{id:this.ratedLabelTextId,className:"pr-accessible-text"},y)),c.a.createElement("div",he()({},g.reviewCount,{className:"pr-category-snippet__total pr-category-snippet__item"}),b),w))},t}(s.Component),et={getSnippets:be.r,getReviews:be.p},tt=Object(S.b)(function(e,t){var r=Object(g.s)(t.config),n=e.Reviews[r]||{};n.localizations,n.merchantProperties,n.features;return Xe(Xe({},a()(n,["localizations","merchantProperties","features"])),{},{productKey:r})},et)(function(e){var t=Object(s.useContext)(H.a),r=t.merchantProperties,n=t.localizations,a=t.displayApi;return c.a.createElement(Ze,he()({displayApi:a,merchantProperties:r,localizations:n},e))}),rt={key:d.u.CategorySnippet,dataRequirements:f.Aggregate,type:v.i.CATEGORY_SNIPPET,component:tt},nt=r(107),at=r(37),it=r(88),ot=r.n(it),st=r(28),ct=r(44),lt=r(74),ut=r(125),pt=(r(397),r(126)),dt=r(127);function ft(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ft(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var ht=function(e){var t=e.media,r=e.config,n=e.type,a=e.localizations,i=e.merchantProperties,o=Object(p.a)(i,r).REVIEW_MEDIA_MODAL_STYLE,l=Object(s.useState)(0),u=l[0],d=l[1],f=Object(s.useState)(),m=f[0],h=f[1],v=Object(s.useState)([]),g=v[0],b=v[1],y=Object(s.useState)([]),_=y[0],w=y[1],E=Object(s.useState)([]),O=E[0],S=E[1],C="CARD"===o||"CARDV2"===o,j=Object(s.useState)(!1),x=j[0],k=j[1];if(!t||!t.length||!C)return c.a.createElement("div",{testid:"image-snippet"});var I=c.a.createElement(nt.a,he()({localizations:a,merchantProperties:i,config:r,type:n,media:t},{startingIndex:0,handleClose:function(){return k(!1)}}));"CARDV2"===o&&(I=c.a.createElement(pt.a,{handleClose:function(){return k(!1)},closeBtnText:Object(ye.a)("review_display.4.0.modal.close_button_text",a),role:"dialog","aria-labelledby":"mediaCarousel"},null!=m?c.a.createElement("div",{className:"pr-media-carousel"},c.a.createElement(lt.a,{localizations:a,onClose:function(){d(m),h(null)},onSubmit:function(e){return Object(at.a)(mt(mt(mt({},e),r),{},{merchant_id:r.merchant_id,command:"flagugc",ugc_id:t[m].id})).then(function(){b(g.concat(Number(t[m].id))),d(m),h(null)})}})):c.a.createElement(dt.a,{media:t,startingIndex:u,allowHelpfulVoting:!0,showShoppableLink:!1,handleFlagMedia:function(e){h(e)},handleHelpfulVoting:function(e,t){return Object(at.a)(mt(mt({},r),{},{vote_type:t.toLowerCase(),command:"voteugc",ugc_id:e})).then(function(){"helpful"===t.toLowerCase()?w(_.concat(Number(e))):"unhelpful"===t.toLowerCase()&&S(O.concat(Number(e)))})},flaggedContent:g,helpfulContent:_,unhelpfulContent:O,localizations:Object(ut.a)(a),UserImage:ct.a,UserVideo:ct.b})));var P=t[0],T={gravity:"face:auto",crop:"fill",zoom:.5,height:100,width:"auto",quality:"auto:best",format:null},R="cvideo"===P.type,N=R?st.b.libraryVideoUrl(P.image,T):st.b.libraryUrl(P.image,T),A=Object(ye.a)("review_display.4.0.image_display.consumer_photos",a),D=(Object(ye.a)("review_display.4.0.image_display.click_to_view",a)||"Click to view")+" "+t.length+" "+A;return c.a.createElement("div",{className:"pr-image-snippet","data-testid":"image-snippet"},c.a.createElement("button",{type:"button",className:"pr-image-snippet-button",onClick:function(e){e.preventDefault(),k(!0)}},c.a.createElement(ct.a,{src:N,alt:D,width:"auto",height:"100%"}),R&&c.a.createElement("img",{className:"pr-image-snippet-play-btn",src:ot.a,alt:"","aria-hidden":"true"})),c.a.createElement("span",{className:"pr-image-snippet-text","aria-hidden":"true"},A),c.a.createElement("span",{className:"pr-image-snippet-badge","aria-hidden":"true"},t.length<=1e3?t.length:"1,000+"),x&&I)},vt=r(25);function gt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var bt=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,o()(ge()(t),"onRender",function(){var e,r,n=t.props,a=n.config,i=n.media;a.on_render&&vt.a.onImageComponentRender(d.u.ReviewImageSnippet,t.props,{review_image_count:Array.isArray(i)?i.length:0}),null===(e=(r=t.props).onLoad)||void 0===e||e.call(r)}),t}O()(t,e);var r=t.prototype;return r.componentDidMount=function(){var e=this.props,t=e.isLoading,r=e.config,n=e.getReviews,a=e.sendBeacon,i=e.reviewsLoaded,o=e.displayApi;"boolean"!=typeof t&&n(o,r),a(I.a.IMAGE_SNIPPET_VISIBLE),i&&this.onRender()},r.componentDidUpdate=function(e){var t=this.props.reviewsLoaded;e.reviewsLoaded!==t&&!0===t&&this.onRender()},r.render=function(){var e=this.props,t=e.media,r=e.merchantProperties,n=e.config,a=e.type,i=e.localizations;return e.reviewsLoaded?c.a.createElement(ht,{merchantProperties:r,config:n,type:a,media:t,localizations:i}):null},t}(c.a.Component),yt={getReviews:be.p},_t=Object(S.b)(function(e,t){var r=Object(g.s)(t.config),n=e.Reviews[r]||{};n.merchantProperties,n.localizations,n.features;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},a()(n,["merchantProperties","localizations","features"]))},yt)(function(e){var t=Object(s.useContext)(H.a),r=t.merchantProperties,n=t.localizations,a=t.displayApi,i=Object(I.e)(e.config.page_id,e.type||v.a);return c.a.createElement(bt,he()({},e,{displayApi:a,sendBeacon:i,merchantProperties:r,localizations:n}))}),wt={key:d.u.ReviewImageSnippet,dataRequirements:f.AggregateAndDetails,type:v.i.IMAGE_SNIPPET,component:_t},Et=r(145),Ot=r.n(Et),St=r(61),Ct=r(106),jt=r(33),xt=(r(398),{gravity:"auto",crop:"fill",zoom:.5,quality:"auto:best"});function kt(e){var t=Object(s.useState)(!0),r=t[0],n=t[1],a=Object(s.useState)(!1),i=a[0],o=a[1],l=Object(s.useRef)(),u=Object(s.useState)(!1),p=u[0],d=u[1],f=Object(X.d)(d).ref,m=e.media,h=e.localizations,v=e.onClick,g=e.onShowMore,b=e.isLoading,y=e.totalMedia,_=e.pageSize,w=e.thumbnailSize,E=e.modal;var O=function(e){if(l){var t=l.current.clientWidth,r="right"===e?t-50:50-t;l.current.scrollLeft+=r}};return c.a.createElement("div",{className:"pr-irlsnippet",style:{height:w},ref:f},c.a.createElement(It,{direction:"left",disabled:r,onClick:O}),c.a.createElement("div",{onScroll:function(e){var t=e.currentTarget,r=t.scrollLeft,a=t.scrollWidth,i=t.clientWidth;a-i<r+i+100&&g(m.length),n(r<=0),o(r>=a-i)},ref:l,className:"pr-irlsnippet-images",style:{height:w}},function(){if(!p)return c.a.createElement(Pt,{count:y-m.length>0?Math.min(y-m.length,_):_,size:w});var e=Object(ye.a)("review_display.4.0.image_display.gallery_image.alt_text",h),t=Object(ye.a)("collect_display.media.play_video",h);return c.a.createElement(c.a.Fragment,null,m.pwrMap(function(r,n){return c.a.createElement("button",{key:""+r.id+n,className:"pr-irlsnippet-image-container pr-btn-reset",onClick:function(e){return v(n,e.currentTarget)}},c.a.createElement(ct.a,{alt:Object(jt.a)(e,"#"+(n+1)),className:"pr-irlsnippet-image",src:ct.a.urlFromMedia(r,w,xt),style:{width:w,height:w}}),"cvideo"===r.type&&c.a.createElement("img",{className:"pr-irlsnippet-play-btn",src:ot.a,alt:t}),"social_instagram"===r.source&&c.a.createElement(Ct.a,{className:"pr-irlsnippet-instagram-icon",showWhite:!0}))}),b?c.a.createElement(Pt,{count:y-m.length>0?Math.min(y-m.length,_):_,size:w}):null)}()),c.a.createElement(It,{direction:"right",disabled:i,onClick:O}),E)}function It(e){var t=e.direction,r=e.disabled,n=e.onClick;return c.a.createElement("button",{type:"button","aria-label":"scroll media "+t,disabled:r,className:"left"===t?"pr-irlsnippet-leftbtn":"pr-irlsnippet-rightbtn",onClick:function(){return n(t)}},c.a.createElement(St.a,{circleOutline:!1,lineStrokeSize:"6",strokeColor:r?"grey":"#333"}))}function Pt(e){for(var t=e.count,r=e.size,n=[],a=0;a<t;++a)n.push(c.a.createElement("div",{key:a,className:"pr-irlsnippet-image-container"},c.a.createElement("div",{className:"pr-irlsnippet-loading-box",style:{width:r,height:r}})));return n}r(399);var Tt=r(148),Rt=290,Nt=2,At=50;function Dt(e){var t=e.media,r=e.onShowMore,n=e.onClick,a=e.modal,i=e.localizations,o=e.pageSize,l=e.isLoading,u=Object(s.useRef)(),p=Object(s.useState)(0),d=p[0],f=p[1],m=Object($e.h)(d),h=Rt+2*Nt,v=Object(X.e)(),g=Math.max(~~((v-2*At)/h),1),b=Object(s.useState)(!1),y=b[0],_=b[1],w=Object(X.d)(_).ref;Object(s.useEffect)(function(){f(0)},[g]),Object(s.useEffect)(function(){var e=d>m;t.length%o==0&&e&&d===Math.floor(t.length-.75*o)&&r(t.length)});var E=Object(Tt.useSwipeable)({onSwipedLeft:function(){d+1<=t.length-g&&f(function(e){return e+1})},onSwipedRight:function(){d>0&&f(function(e){return e-1})},preventDefaultTouchmoveEvent:!0});var O=Object($e.e)("review_display.4.0.image_display.gallery_image.alt_text",i),S=Object($e.e)("collect_display.media.play_video",i);return c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"pr-sgl",onKeyDown:function(e){39===e.keyCode?f(function(e){return e+1}):37===e.keyCode&&f(function(e){return e-1})},tabIndex:"0","data-testid":"scroll-gallery--large",ref:w},c.a.createElement("button",{type:"button",className:"pr-sgl_pagination-btn pr-sgl_pagination-btn--prev","aria-label":"Previous",disabled:0===d,style:{width:At},onClick:function(){f(function(e){return e-1})}},c.a.createElement(St.a,{circleOutline:!1,lineStrokeSize:"3",strokeColor:"#333"})),y?c.a.createElement("div",he()({className:"pr-sgl_window",ref:u,style:{width:g*h}},E),c.a.createElement("ul",{className:"pr-sgl_list",style:{transform:"translate3d("+d*-h+"px,0,0)"}},function(){var e=t.pwrMap(function(e,t){var r=Object($e.d)(O,"#"+(t+1));return c.a.createElement("li",{key:e.id+"-"+t,className:"pr-sgl_list_item",style:{borderLeftWidth:Nt,borderRightWidth:Nt}},c.a.createElement("button",{type:"button",className:"pr-sgl_modal-btn",onClick:function(e){return n(t,e.currentTarget)},tabIndex:-1},c.a.createElement(ct.a,{alt:r,className:"pr-sgl_thumbnail",src:function(e,t){return"cvideo"===t?$e.a.libraryVideoUrlSet(e).thumb_high_res:$e.a.libraryUrlSet(e).thumb_high_res}(e.uri,e.type),style:{width:Rt,height:Rt}}),"cvideo"===e.type&&c.a.createElement("img",{className:"pr-sgl_play-icon",src:ot.a,alt:S}),"social_instagram"===e.source&&c.a.createElement(Ct.a,{className:"pr-sgl-instagram-icon",showWhite:!0})))});return l&&(e=c.a.createElement(Lt,{visibleImagesCount:g})),e}())):c.a.createElement("ul",{className:"pr-sgl_list"},c.a.createElement(Lt,{visibleImagesCount:g})),c.a.createElement("button",{type:"button",className:"pr-sgl_pagination-btn pr-sgl_pagination-btn--next","aria-label":"Next",style:{width:At},disabled:d>=t.length-g,onClick:function(){f(function(e){return e+1})}},c.a.createElement(St.a,{circleOutline:!1,lineStrokeSize:"3",strokeColor:"#333"}))),a)}function Lt(e){for(var t=e.visibleImagesCount,r=[],n=0;n<t;++n)r.push(c.a.createElement("li",{key:"placeholder-"+n,className:"pr-sgl_list_item",style:{borderLeftWidth:Nt,borderRightWidth:Nt}},c.a.createElement("img",{className:"pr-sgl_thumbnail",style:{width:Rt,height:Rt},src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mO89R8AArkB2ygWfsQAAAAASUVORK5CYII=",alt:""})));return r}r(400);var Mt=r(213),Ft=275,zt=16;function Vt(e){var t=Object(X.e)(),r=Math.round(t/Ft)<2?2:Math.round(t/Ft),n=Object(s.useState)((t-4*r)/r),a=n[0],i=n[1];return Object(s.useEffect)(function(){i((t-4*r)/r)},[t,r]),"GRID"===e?{gridImageSize:t>=710?(t-32)/8:(t-16)/4,gridImageGroupSize:zt}:{gridImageSize:a,gridImageGroupSize:2*r}}function Ut(e){var t=e.imageSize,r=e.imageGroupSize,n=e.media,a=e.openModal,i=e.modal,o=e.localizations,l=e.onFetchMoreMedia,u=e.totalMedia,p=e.galleryType,d=Object(s.useState)(),f=d[0],m=d[1],h=Object(s.useRef)(null),v=Object(s.useState)(1),g=v[0],b=v[1],y=Object($e.h)(g),_=Object(s.useState)(!1),w=_[0],E=_[1],O=Object(X.d)(E).ref;Object(s.useEffect)(function(){y<g?m((g-1)*r):y>g&&m(0)},[g,y,r]),Object(s.useEffect)(function(){h.current&&h.current.focus()},[f]);var S=u>g*r?Object($e.e)("review_display.4.0.image_display.show_more",o):Object($e.e)("review_display.4.0.image_display.collapse",o),C=Object($e.e)("review_display.4.0.image_display.gallery_image.alt_text",o),j="GRID"===p?{width:t,height:t,objectFit:"cover",objectPosition:"center top"}:{width:t,height:t};return c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"pr-ggl",ref:O},n.slice(0,g*r).pwrMap(function(e,r){var n=Object($e.d)(C,"#"+(r+1));return!1===w?c.a.createElement("div",{key:r,className:"pr-ggl_placeholder",style:{width:t,height:t}}):c.a.createElement("button",{key:r,className:"pr-ggl_image-btn",onClick:function(e){return a(Number(r),e.currentTarget)},type:"button",ref:f===r?h:null},c.a.createElement(ct.a,{alt:n,src:function(e,t,r){if("GRID"===r){var n={gravity:"auto",crop:"fill",zoom:.5,height:400,format:null};return"cvideo"===t?$e.a.libraryVideoUrlSet(e,n).full:$e.a.libraryUrlSet(e,n).full}return"cvideo"===t?$e.a.libraryVideoUrlSet(e,{format:null}).thumb_high_res:$e.a.libraryUrlSet(e,{format:null}).thumb_high_res}(e.uri,e.type,p),style:j}),"cvideo"===e.type&&c.a.createElement("img",{src:ot.a,className:"pr-ggl_image-btn-play-icon",alt:Object($e.e)("collect_display.media.play_video",o)}),"social_instagram"===e.source&&c.a.createElement("div",{className:"pr-ggl_image-btn-instagram-icon",style:{width:t/8,height:t/8}},c.a.createElement(Ct.a,{showWhite:!0})))})),u>r&&c.a.createElement("button",{type:"button",className:"pr-ggl_show-more-btn-container",onClick:u>g*r?function(){n.length===u?b(function(e){return e+1}):l(g*r).then(function(){b(function(e){return e+1})})}:function(){return b(1)}},c.a.createElement("div",{className:"pr-ggl_show-more-icon"},c.a.createElement(Mt.a,null)),S),i)}var qt=r(10),Wt=r.n(qt),Bt=[{xCoord:0,yCoord:0,width:1,height:1},{xCoord:1,yCoord:0,width:1,height:1},{xCoord:2,yCoord:0,width:1,height:1},{xCoord:3,yCoord:0,width:1,height:1},{xCoord:4,yCoord:0,width:2,height:2},{xCoord:0,yCoord:1,width:2,height:1},{xCoord:2,yCoord:1,width:1,height:1},{xCoord:3,yCoord:1,width:1,height:1}],Ht=[{xCoord:0,yCoord:0,width:2,height:2},{xCoord:2,yCoord:0,width:1,height:1},{xCoord:3,yCoord:0,width:1,height:1},{xCoord:4,yCoord:0,width:1,height:1},{xCoord:5,yCoord:0,width:1,height:1},{xCoord:2,yCoord:1,width:1,height:1},{xCoord:3,yCoord:1,width:1,height:1},{xCoord:4,yCoord:1,width:2,height:1}],Kt=[{xCoord:0,yCoord:0,width:1,height:1},{xCoord:1,yCoord:0,width:1,height:1},{xCoord:2,yCoord:0,width:1,height:1},{xCoord:3,yCoord:0,width:1,height:1},{xCoord:0,yCoord:1,width:1,height:1},{xCoord:1,yCoord:1,width:1,height:1},{xCoord:2,yCoord:1,width:1,height:1},{xCoord:3,yCoord:1,width:1,height:1}],Gt=[{xCoord:0,yCoord:0,width:1,height:1},{xCoord:1,yCoord:0,width:1,height:1},{xCoord:2,yCoord:0,width:2,height:2},{xCoord:4,yCoord:0,width:2,height:1},{xCoord:0,yCoord:1,width:2,height:1},{xCoord:4,yCoord:1,width:1,height:1},{xCoord:5,yCoord:1,width:1,height:1}],Qt=[{xCoord:0,yCoord:0,width:1,height:1},{xCoord:1,yCoord:0,width:1,height:1},{xCoord:2,yCoord:0,width:1,height:1},{xCoord:3,yCoord:0,width:1,height:1},{xCoord:0,yCoord:1,width:1,height:1},{xCoord:1,yCoord:1,width:1,height:1},{xCoord:2,yCoord:1,width:1,height:1}],Yt=[{xCoord:0,yCoord:0,width:2,height:1},{xCoord:2,yCoord:0,width:1,height:1},{xCoord:3,yCoord:0,width:2,height:1},{xCoord:5,yCoord:0,width:1,height:1},{xCoord:0,yCoord:1,width:1,height:1},{xCoord:1,yCoord:1,width:2,height:1}],$t=[{xCoord:0,yCoord:0,width:2,height:1},{xCoord:2,yCoord:0,width:1,height:1},{xCoord:0,yCoord:1,width:1,height:1},{xCoord:2,yCoord:1,width:2,height:1},{xCoord:0,yCoord:2,width:2,height:1},{xCoord:2,yCoord:2,width:1,height:1}],Jt=[{xCoord:0,yCoord:0,width:1,height:1},{xCoord:1,yCoord:0,width:1,height:1},{xCoord:2,yCoord:0,width:1,height:1},{xCoord:3,yCoord:0,width:1,height:1},{xCoord:0,yCoord:1,width:1,height:1},{xCoord:1,yCoord:1,width:1,height:1}],Xt=[{xCoord:0,yCoord:0,width:1,height:1},{xCoord:1,yCoord:0,width:1,height:1},{xCoord:2,yCoord:0,width:2,height:1},{xCoord:4,yCoord:0,width:1,height:1},{xCoord:5,yCoord:0,width:1,height:1}],Zt=[{xCoord:0,yCoord:0,width:2,height:1},{xCoord:2,yCoord:0,width:1,height:1},{xCoord:0,yCoord:1,width:1,height:1},{xCoord:2,yCoord:1,width:2,height:1},{xCoord:0,yCoord:2,width:1,height:1}],er=[{xCoord:0,yCoord:0,width:1,height:1},{xCoord:1,yCoord:0,width:1,height:1},{xCoord:2,yCoord:0,width:1,height:1},{xCoord:3,yCoord:0,width:1,height:1},{xCoord:0,yCoord:1,width:1,height:1}],tr=[{xCoord:0,yCoord:0,width:2,height:1},{xCoord:2,yCoord:0,width:1,height:1},{xCoord:3,yCoord:0,width:2,height:1},{xCoord:5,yCoord:0,width:1,height:1}],rr=[{xCoord:0,yCoord:0,width:2,height:1},{xCoord:2,yCoord:0,width:1,height:1},{xCoord:0,yCoord:1,width:1,height:1},{xCoord:2,yCoord:1,width:2,height:1}],nr=[{xCoord:0,yCoord:0,width:1,height:1},{xCoord:1,yCoord:0,width:1,height:1},{xCoord:2,yCoord:0,width:1,height:1},{xCoord:3,yCoord:0,width:1,height:1}],ar=[{xCoord:0,yCoord:0,width:1,height:1},{xCoord:1,yCoord:0,width:1,height:1},{xCoord:2,yCoord:0,width:1,height:1}],ir=[{xCoord:0,yCoord:0,width:1,height:1},{xCoord:1,yCoord:0,width:1,height:1}],or=[{xCoord:0,yCoord:0,width:2,height:1},{xCoord:2,yCoord:0,width:1,height:1}],sr=[{xCoord:0,yCoord:0,width:1,height:1},{xCoord:1,yCoord:0,width:2,height:1}],cr=[{xCoord:0,yCoord:0,width:1,height:1}],lr={gravity:"auto",crop:"fill",zoom:.5,height:400,format:null},ur=["#BBE4DE","#F8AF91","#C6E3A0","#FFDC8A","#d1d1e1","#C6E3A0","#BBE4DE","#F8AF91"],pr=function(e){var t=e.gridContainerWidth,r=e.maxColumns,n=e.margin,a=e.elHeight,i=e.mediaGroup,o=e.onOpenModal,l=e.localizations,u=e.rowIndex,p=e.maxMediaPerFrame,d=!1,f=Object(s.useState)(!1),m=f[0],h=f[1],v=function(e){var t=e.mediaGroup,r=e.rowIndex,n=e.maxColumns,a=!(r%2);switch(t.length){case 8:return 4===n?Kt:a?Bt:Ht;case 7:return 4===n?Qt:Gt;case 6:return 4===n?Jt:3===n?$t:Yt;case 5:return 4===n?er:3===n?Zt:Xt;case 4:return 4===n?nr:3===n?rr:tr;case 3:return ar;case 2:return 3!==n?ir:a?sr:or;default:return cr}}(e).pwrMap(function(e,s){var f=e.width*(t/r)-n,h=e.height*a-n,v=e.xCoord*(t/r),g=e.yCoord*a,b=i[s],y="cvideo"===b.type?st.b.libraryVideoUrlSet(b.image,lr).full:st.b.libraryUrlSet(b.image,lr).full;(e.yCoord>0||h>a)&&(d=!0);var _={height:h,width:f,left:v,top:g,position:"absolute",overflow:"hidden"},w=Object(jt.a)(Object(ye.a)("review_display.4.0.image_display.gallery_image.alt_text",l),"#"+(u*p+s+1));return!1===m?c.a.createElement("div",{key:"coord-"+s,className:"pr-rid-placeholder",style:_}):c.a.createElement("button",{style:_,className:"pr-rid-tile pr-rid-tile-overlay pr-btn-reset",key:"coord-"+s,onClick:function(e){return o(b.id,e.currentTarget)}},c.a.createElement("div",{style:{backgroundColor:ur[s],display:"flex"},className:"pr-rid-tile-image"},c.a.createElement(ct.a,{alt:w,style:{minWidth:"100%",minHeight:"100%",objectFit:"cover",objectPosition:"center top"},src:y}),"cvideo"===b.type&&c.a.createElement("img",{height:h/2+"px",src:ot.a,alt:Object(ye.a)("collect_display.media.play_video",l),className:"pr-rd-play-icon"}),"social_instagram"===b.source&&c.a.createElement("div",{className:"pr-rid-tile-image-instagram"},c.a.createElement(Ct.a,{showWhite:!0}))),c.a.createElement("div",{className:"pr-rid-tile-image-title"},b.headline))}),g=d?2*a:a;return c.a.createElement(X.b,{as:"section",onChange:h,style:{position:"relative",width:"100%",height:g+"px"}},v)},dr=5,fr=8,mr=[{name:"pr-rid-large",width:980},{name:"pr-rid-medium",width:780},{name:"pr-rid-small",width:1}],hr=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,o()(ge()(t),"state",{mediaShowing:fr,currentClass:null,gridContainerWidth:780,maxColumns:6,margin:3,elHeight:150,maxImages:8}),o()(ge()(t),"onContainerClassChange",function(e){var r=t.gridContainer.clientWidth||0;if(r<=0){for(var n=t.gridContainer.parentNode;n&&n.parentNode&&n.clientWidth<=0;)n=n.parentNode;r=n.clientWidth-2*dr}var a=t.state.maxColumns,i=t.state.margin,o=t.state.elHeight,s=t.state.maxImages;e!==t.state.currentClass&&(r>=980?(a=6,i=3,o=150,s=8):r>780?(a=4,i=3,o=125,s=4):(a=3,i=2,o=100,s=2)),t.setState({currentClass:e,gridContainerWidth:r,maxColumns:a,margin:i,elHeight:o,maxImages:s})}),o()(ge()(t),"openModal",function(e,r){for(var n=0,a=0;a<t.props.media.length;++a)if(e===t.props.media[a].id){n=a;break}t.props.onClick(n,r)}),o()(ge()(t),"showMore",function(){t.props.onShowMore(t.state.mediaShowing).then(function(){t.setState({mediaShowing:t.state.mediaShowing+fr},function(){var e=document.getElementsByClassName("pr-rid-tile")[t.state.mediaShowing-fr];e&&e.focus()})})}),o()(ge()(t),"collapse",function(){t.setState({mediaShowing:fr},function(){var e=document.getElementsByClassName("pr-rid-tile")[0];e&&e.focus()})}),o()(ge()(t),"renderGridRows",function(){var e=t.props,r=e.localizations,n=e.merchantProperties,a=e.config,i=e.media,o=t.state,s=o.mediaShowing,l=o.maxColumns,u=o.elHeight,p=o.maxImages,d=o.margin,f=o.gridContainerWidth;return i.slice(0,s).pwrReduce(function(e,t){return e[e.length-1].length===p?e.push([t]):e[e.length-1].push(t),e},[[]]).pwrMap(function(e,i){return c.a.createElement(pr,he()({key:i},{config:a,merchantProperties:n,localizations:r,maxColumns:l,elHeight:u,margin:d,gridContainerWidth:f,mediaGroup:e},{rowIndex:i,onOpenModal:t.openModal,maxMediaPerFrame:p}))})}),t}return O()(t,e),t.prototype.render=function(){var e=this,t=this.props,r=t.localizations,n=t.totalMedia,a=t.modal,i=n>this.state.mediaShowing,o=i?Object(ye.a)("review_display.4.0.image_display.show_more",r):Object(ye.a)("review_display.4.0.image_display.collapse",r),s=Wt()("pr-rid-btn-container",{"pr-hide":n<=fr});return c.a.createElement(X.c,{sizes:mr,callback:this.onContainerClassChange},c.a.createElement("section",{id:"pr-image-display",className:"pr-rid",ref:function(t){e.gridContainer=t}},this.renderGridRows(),c.a.createElement("button",{type:"button",className:s,onClick:i?this.showMore:this.collapse},c.a.createElement("div",{className:"pr-rid-btn"},c.a.createElement(Mt.a,null),c.a.createElement("span",{className:"pr-rid-btn-text"},o))),a))},t}(c.a.Component);o()(hr,"defaultProps",{onShowMore:function(){return pwrPromise.resolve()},allowHelpfulVoting:!0,allowReadReview:!0});var vr=hr,gr=r(53);function br(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function yr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?br(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):br(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var _r=function(e){var t=e.config,r=e.pwrPageSize,n=e.category,a=e.hashtags,i=e.nextPage,o=e.shownative,s=yr(yr({},t),{},{page_id:null,pwrPageSize:r,category:"string"==typeof n?encodeURIComponent(n):n,hashtags:a,noConfig:!0});return!0!==o&&(s.filter="Social"),(i?Object(gr.get)(i,s):Object(gr.getContent)("media",s)).then(function(e){var r,n;if(e.error||e.status_code&&200!==e.status_code)throw new Error(e.error||"Error fetching media");(null===(r=t.hooks)||void 0===r?void 0:r.shoppableLink)&&(e=wr(null===(n=t.hooks)||void 0===n?void 0:n.shoppableLink,e,t));return e})},wr=function(e,t,r){var n,a=null===(n=t.results)||void 0===n?void 0:n.pwrMap(function(t){var n;return Array.isArray(t.associated_products)?(n=t.associated_products.pwrMap(function(t){return yr(yr({},t),e(t,r))}),yr(yr(yr({},t),e({product_image_url:t.product_image_url,product_name:t.product_name,product_url:t.product_url},r)),{},{associated_products:n})):yr(yr({},t),e({product_image_url:t.product_image_url,product_name:t.product_name,product_url:t.product_url},r))});return yr(yr({},t),{},{results:a})},Er=r(85),Or=(r(401),r(50)),Sr=r.n(Or),Cr=r(150),jr=r(62),xr=r(202),kr=r(203),Ir=r(48),Pr=r(76),Tr=(r(387),r(146)),Rr=r(204),Nr=r(205),Ar=function(e){var t=e.label,r=e.onChange,n=c.a.createRef();return c.a.createElement("div",{className:"pr-file-input-btn"},c.a.createElement("input",{ref:n,id:"pr-syp-modal",onChange:r,accept:"image/*",type:"file",style:{display:"none"}}),c.a.createElement("button",{className:"pr-btn pr-btn-default pr-btn-fileinput",onClick:function(){return n.current.click()}},c.a.createElement(Tr.a,{"aria-hidden":!0})," ",t))},Dr=function(e){var t=e.onClick;return c.a.createElement("div",{className:"pr-file-input-btn"},c.a.createElement("button",{type:"button",onClick:t,className:"pr-btn pr-btn-default pr-btn-fileinput pr-file-input-btn pr-facebook-btn"},c.a.createElement(Rr.a,{focusable:"false","aria-hidden":!0})," Facebook"))},Lr=function(e){var t=e.onClick;return c.a.createElement("div",{className:"pr-file-input-btn"},c.a.createElement("button",{type:"button",onClick:t,className:"pr-btn pr-btn-default pr-btn-fileinput pr-file-input-btn pr-instagram-btn"},c.a.createElement(Nr.a,{focusable:"false","aria-hidden":!0})," Instagram"))},Mr=r(31),Fr=r(65),zr=r.n(Fr),Vr=r(24),Ur=r(154),qr=r(18),Wr=function(e){var t=e.label,r=e.required,n=e.isValid,a=e.fieldType,i=e.maxLength,o=e.onChange,s=e.value;return c.a.createElement(c.a.Fragment,null,c.a.createElement("label",{htmlFor:"pr-"+t+"-input",className:Wt()("pr-syp_field-group-label",{"pr-syp_field-group-label-invalid":!1===n})},t,r&&c.a.createElement("abbr",{className:"pr-required-indicator",title:"required"},"*")),c.a.createElement(qr.b,null,c.a.createElement("input",{id:"pr-"+t+"-input",name:t,className:Wt()("pr-syp_textinput pr-textinput pr-form-control form-control",{"pr-syp_has-error":!1===n}),type:a,maxLength:i,required:r,value:s,onChange:o}),!1===n?c.a.createElement(qr.a,null):null))};function Br(e){var t=Object(s.useState)(function(){return window.matchMedia(e).matches}),r=t[0],n=t[1];return Object(s.useEffect)(function(){var t=window.matchMedia(e),r=function(e){n(e.matches)};return"addEventListener"in t?(t.addEventListener("change",r),function(){t.removeEventListener("change",r)}):(t.addListener(r),function(){t.removeListener(r)})},[e]),r}function Hr(){var e=Sr()(["review_display.4.0.share_your_photo.dialog.close.button_label"]);return Hr=function(){return e},e}function Kr(){var e=Sr()(["review_display.4.0.share_your_photo.dialog.close.button_label"]);return Kr=function(){return e},e}function Gr(){var e=Sr()(["review_display.4.0.share_your_photo.confirmation.message"]);return Gr=function(){return e},e}function Qr(){var e=Sr()(["review_display.4.0.share_your_photo.confirmation.heading"]);return Qr=function(){return e},e}function Yr(){var e=Sr()(["review_display.4.0.share_your_photo.manage.submit.button_label"]);return Yr=function(){return e},e}function $r(){var e=Sr()(["review_display.4.0.share_your_photo.manage.legal"]);return $r=function(){return e},e}function Jr(){var e=Sr()(["review_display.4.0.share_your_photo.manege.rotate.button_label"]);return Jr=function(){return e},e}function Xr(){var e=Sr()(["review_display.4.0.share_your_photo.manage.remove.button_label"]);return Xr=function(){return e},e}function Zr(){var e=Sr()(["review_display.4.0.share_your_photo.manage.image_alt_tag"]);return Zr=function(){return e},e}function en(){var e=Sr()(["review_display.4.0.share_your_photo.manage.subheading"]);return en=function(){return e},e}function tn(){var e=Sr()(["review_display.4.0.share_your_photo.manage.heading"]);return tn=function(){return e},e}function rn(){var e=Sr()(["review_display.4.0.share_your_photo.upload.button_label"]);return rn=function(){return e},e}function nn(){var e=Sr()(["review_display.4.0.share_your_photo.upload.subheading"]);return nn=function(){return e},e}function an(){var e=Sr()(["review_display.4.0.share_your_photo.upload.heading"]);return an=function(){return e},e}function on(){var e=Sr()(["review_display.4.0.share_your_photo.manage.fields.error_required"]);return on=function(){return e},e}function sn(){var e=Sr()(["review_display.4.0.share_your_photo.manage.fields.error_invalid"]);return sn=function(){return e},e}function cn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ln(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cn(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function un(){var e=Sr()(["review_display.4.0.share_your_photo.manage.fields.location"]);return un=function(){return e},e}function pn(){var e=Sr()(["review_display.4.0.share_your_photo.manage.fields.email"]);return pn=function(){return e},e}function dn(){var e=Sr()(["review_display.4.0.share_your_photo.manage.fields.name"]);return dn=function(){return e},e}function fn(){var e=Sr()(["review_display.4.0.share_your_photo.manage.fields.caption"]);return fn=function(){return e},e}var mn=function(e){var t=e.localizations,r=e.handleClose,n=e.config,a=function(e){return Object(ye.a)(""+e[0],t)};var i,o=Object(s.useState)(),l=o[0],u=o[1],p=Object(s.useState)("uploadMedia"),d=p[0],f=p[1],m=Object(s.useState)(function(){return{caption:{label:a(fn()),type:"text",isValid:void 0,value:""},name:{label:a(dn()),type:"text",isValid:void 0,value:"",required:!0,maxLength:40},email:{label:a(pn()),type:"email",isValid:void 0,value:""},location:{label:a(un()),type:"text",isValid:void 0,value:"",maxLength:40}}}),h=m[0],v=m[1],b=Object(s.useRef)(null),y=Object(s.useRef)(Object(Pr.a)()).current,_=Object(s.useState)(!1),w=_[0],E=_[1],O=Br("(max-width: 600px)"),S=function(e){var t=e.target,r=t.name,n=t.value;v(function(e){var t=ln({},e);return t[r].value=n,t[r].isValid=!0,t})},C=function(e){b.current=window.open(function(e){if("facebook"!==e&&"instagram"!==e)throw new Error("Unsupported app: "+e);return"facebook"===e?"//ui.powerreviews.com/stable/social/facebookshare.html":"instagram"===e?"//ui.powerreviews.com/stable/social/instagramshare.html":void 0}(e),"_blank")},j=Object(s.useCallback)(function(e){if(e.data.media){var t=e.data.media[0],r={source:t.imageSrc,caption:t.caption,name:t.imageSrc,lastModified:(new Date).toISOString(),type:""};v(function(e){var r=ln({},e);return r.caption.value=t.caption,r}),f("addMediaInformation"),Object(Mr.j)(r,"IMAGE").then(function(e){u({rawUrl:e.raw.url,thumbnailUrl:e.raw.url.replace("upload/","upload/f_auto,w_150,h_150,q_90,c_pad,a_0/")})}),b.current&&b.current.close()}},[]);if(Object(s.useEffect)(function(){return window.addEventListener("message",j),function(){window.removeEventListener("message",j)}},[j]),"uploadMedia"===d)i=c.a.createElement(c.a.Fragment,null,c.a.createElement("section",{"aria-describedby":y},c.a.createElement(K.b,null,c.a.createElement(K.a,{importance:1,className:"pr-syp_header"},a(an()))),c.a.createElement("div",{id:y,className:"pr-syp_subheader"},a(nn()))),c.a.createElement("div",{className:"pr-syp_media-inputs"},c.a.createElement("div",{className:"pr-file-input-btn-group"},c.a.createElement(Ar,{label:a(rn()),onChange:function(e){var t=e.target.files[0];f("addMediaInformation"),Object(Mr.j)(t,"IMAGE").then(function(e){var t=e.raw,r=t.url,n=t.publicId,a=t.deleteToken;u({rawUrl:r,thumbnailUrl:r.replace("upload/","upload/f_auto,w_150,h_150,q_90,c_pad,a_0/"),publicId:n,deleteToken:a})})}}),c.a.createElement(Dr,{onClick:function(){return C("facebook")}}),c.a.createElement(Lr,{onClick:function(){return C("instagram")}}))));else if("addMediaInformation"===d)i=c.a.createElement(c.a.Fragment,null,c.a.createElement("section",{"aria-describedby":y},c.a.createElement(K.b,null,c.a.createElement(K.a,{importance:1,className:"pr-syp_header"},a(tn()))),c.a.createElement("div",{id:y,className:"pr-syp_subheader"},a(en()))),l?c.a.createElement("div",{className:"pr-syp_image"},c.a.createElement("div",{className:"pr-syp_image-thumbnail-wrapper"},c.a.createElement("img",{src:l.thumbnailUrl,alt:a(Zr())})),c.a.createElement("div",{className:"pr-syp_image-controls"},c.a.createElement("button",{className:"pr-syp_image-controls-btn",onClick:function(){u(""),f("uploadMedia"),Object(Mr.a)(l)},"aria-label":a(Xr())},c.a.createElement(kr.a,{"aria-hidden":"true",focusable:"false"})),c.a.createElement("button",{className:"pr-syp_image-controls-btn",onClick:function(){var e=(l.rotation||0)+90;360===e&&(e=0),u(ln(ln({},l),{},{thumbnailUrl:l.thumbnailUrl.replace("a_"+(l.rotation||0)+"/","a_"+e+"/"),rotation:e}))},"aria-label":a(Jr())},c.a.createElement(xr.a,{"aria-hidden":"true",focusable:"false"})))):c.a.createElement(Ir.a,{className:"pr-syp_loading-indicator",isVisible:!0}),c.a.createElement("div",{className:Wt()("pr-syp_field-group",{"pr-syp_field-group-mobile":O})},Object.keys(h).pwrMap(function(e){return c.a.createElement(Wr,he()({key:e},h[e],{onChange:S}))})),c.a.createElement("div",{className:Wt()("pr-syp_submit",{"pr-syp_submit-mobile":O})},c.a.createElement("p",{className:"pr-subscript"},a($r())),c.a.createElement("button",{type:"submit",className:"pr-syp_submit-btn pr-btn pr-btn-default pr-accessible-btn",onClick:function(e){for(var t={},r=[],i=function(){var e=s[o],n=h[e],i=n.isValid,c=n.required,l=n.value,u=n.type;!1===i&&r.push(e+" is invalid"),"email"!==u||Object(g.w)(l,!1,"EMAIL")||(r.push(Object(jt.a)(a(sn()),e)),v(function(t){var r=ln({},t);return r[e].isValid=!1,r})),!0===c&&""===l.trim()&&(r.push(Object(jt.a)(a(on()),e)),v(function(t){var r=ln({},t);return r[e].isValid=!1,r})),t[e]=l},o=0,s=Object.keys(h);o<s.length;o++)i();0===r.length&&(E(!0),function(e,t){var r=Object(Vr.c)(e.api)?"https:"+Object(Vr.c)(e.api).writeBase+"/api/social_collection/upload":"https://writeservices.powerreviews.com/api/social_collection/upload";zr.a.post(r).query(e.api_key).send(e).end(function(e,n){Object(Ur.b)(e,n,{endpoint:r},t)})}(ln(ln({},t),{},{merchant_id:n.merchant_id,media_url:l.rawUrl,api_key:n.api_key}),function(e){202===e.statusCode&&f("mediaSubmitted")}))},disabled:w},a(Yr()))));else{var x=Object(jt.a)(a(Qr()),h.name.value);i=c.a.createElement(c.a.Fragment,null,c.a.createElement("section",{"aria-describedby":y},c.a.createElement(K.b,null,c.a.createElement(K.a,{importance:1,className:"pr-syp_header"},x)),c.a.createElement("div",{id:y,className:"pr-syp_subheader"},a(Gr()))),c.a.createElement("div",{className:"pr-syp_close"},c.a.createElement("button",{className:"pr-syp_close-btn pr-accessible-btn",onClick:r},a(Kr()))))}var k=Wt()("pr-syp-modal_content",{"pr-syp-modal_content-upload-media":"uploadMedia"===d,"pr-syp-modal_content-add-information":"uploadMedia"!==d,"pr-syp-modal_content-mobile":O});return c.a.createElement(Cr.a,null,c.a.createElement("div",{role:"dialog","aria-modal":"true",className:"pr-syp-modal"},c.a.createElement("section",{className:"pr-syp-modal_body"},c.a.createElement("div",{className:k},c.a.createElement("button",{type:"button","aria-label":a(Hr()),className:"pr-syp-modal_button-close",onClick:r},c.a.createElement(jr.a,{lineStrokeSize:"1"})),i)),c.a.createElement("div",{"aria-hidden":"true",className:"pr-syp-modal_overlay",onClick:r})))};r(402);function hn(e){var t=e.label,r=e.onClick;return c.a.createElement("div",{className:"pr-syp_upload-btn-container"},c.a.createElement("button",{type:"button",className:"pr-syp_upload-btn",onClick:r},t))}function vn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function gn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vn(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var bn=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,o()(ge()(t),"state",{leftBtnDisabled:!0,rightBtnDisabled:!1,modalStartingIndex:-1,mediaFirstModalOpen:!1,media:null,nextPage:"",totalMedia:null,pageSize:null,isLoading:void 0,currentFlaggingIndex:void 0,flaggedContent:void 0}),o()(ge()(t),"elementToRecieveFocus",c.a.createRef(null)),o()(ge()(t),"imageGroupSize",function(){var e=Object(p.a)(t.props.merchantProperties,t.props.config).CD4_IRL_IMAGE_GALLERY_STYLE;return"GRID_LARGE"===e||"XL"===t.props.config.irlSubtype||"GRID"===e?t.props.gridImageGroupSize:"SCROLL_LARGE"===e?8:"DYNAMIC"===e?fr:15}()),o()(ge()(t),"fetchNextPage",function(){var e=t.props,r=e.config,n=e.elementConfig,a=(n=void 0===n?{}:n).category,i=n.hashtags,o=t.state,s=o.nextPage;if(!o.isLoading&&s)return t.setState({isLoading:!0}),_r({config:r,pwrPageSize:t.imageGroupSize,category:a,hashtags:i,nextPage:s,shownative:t.shownative}).then(function(e){var r=e.paging;t.setState(function(t){return{media:t.media.concat(Object(Er.a)(e.results)),nextPage:r.next_page_url,isLoading:!1}})}).catch(function(e){console.log(e),t.setState({isLoading:!1})})}),o()(ge()(t),"openModal",function(e,r){t.setState({modalStartingIndex:e}),t.elementToRecieveFocus.current=r}),o()(ge()(t),"closeModal",function(){t.setState({modalStartingIndex:-1,currentFlaggingIndex:null})}),o()(ge()(t),"openMediaFirstModal",function(){t.setState({mediaFirstModalOpen:!0})}),o()(ge()(t),"closeMediaFirstModal",function(){t.setState({mediaFirstModalOpen:!1})}),o()(ge()(t),"onCarouselChange",function(e){t.state.media.length-e<5&&t.fetchNextPage()}),o()(ge()(t),"handleFlagMedia",function(e){t.setState({currentFlaggingIndex:e})}),o()(ge()(t),"submitFlagReview",function(e){var r=t.state,n=r.currentFlaggingIndex,a=r.media;return Object(at.a)(gn(gn(gn({},e),t.props.config),{},{merchant_id:t.props.config.merchant_id,command:"flagugc",ugc_id:a[n].id})).then(function(){t.setState({flaggedContent:[Number(a[n].id)],modalStartingIndex:n,currentFlaggingIndex:null})})}),o()(ge()(t),"handleShowMore",function(e){return t.props.sendBeacon(I.a.IRL_SNIPPET_NEXT),e===t.state.media.length?t.fetchNextPage():pwrPromise.resolve()}),t}O()(t,e);var r=t.prototype;return r.componentDidMount=function(){var e=this,t=this.props,r=t.config,n=t.elementConfig,a=(n=void 0===n?{}:n).category,i=n.hashtags;this.setState({isLoading:!0}),_r({config:r,pwrPageSize:this.imageGroupSize,category:a,hashtags:i,shownative:this.shownative}).then(function(t){var r=t.paging;e.setState({media:Object(Er.a)(t.results),totalMedia:r.total_results,nextPage:r.next_page_url,pageSize:r.page_size,isLoading:!1})}).catch(function(t){console.log(t),e.setState({isLoading:!1})}),this.props.sendBeacon(I.a.IRL_SNIPPET_VISIBLE)},r.componentDidUpdate=function(e,t){var r,n,a=this.state.totalMedia;(t.modalStartingIndex>=-1&&-1===this.state.modalStartingIndex&&this.elementToRecieveFocus.current&&(this.elementToRecieveFocus.current.focus(),this.elementToRecieveFocus.current=null),null==t.totalMedia&&"number"==typeof a)&&(null===(r=(n=this.props.config).on_render)||void 0===r||r.call(n,{component:d.u.IRLSnippet},{media_count:a}))},r.render=function(){var e,t,r,n=this,a=this.props,i=a.config,o=a.localizations,s=a.merchantProperties,l=a.elementConfig,u=(l=void 0===l?{}:l).category,d=l.hashtags,f=a.elementConfig,m=a.type,h=a.gridImageGroupSize,v=a.gridImageSize,g=this.state,b=g.media,y=g.totalMedia,_=g.pageSize,w=g.modalStartingIndex,E=g.mediaFirstModalOpen,O=g.isLoading,S=g.currentFlaggingIndex,C=g.flaggedContent,j=Object(p.a)(s,i,f),x=j.REVIEW_MEDIA_MODAL_STYLE,k=j.SHOPPABLE_CAROUSEL_ENABLED,I=j.CD4_IRL_IMAGE_GALLERY_STYLE,P=j.SOCIAL_IRL_MEDIA_UPLOAD,T=j.IRL_ADD_PHOTO_BUTTON_POSITION;if("DARK"===x)return null;if(!Array.isArray(b))return null;if(0===b.length)return c.a.createElement("div",{"data-testid":"irl-snippet"});w>=0&&(e="CARDV2"===x?c.a.createElement(pt.a,{isFlagMediaOpen:null!=S,handleClose:this.closeModal,closeBtnText:Object(ye.a)("review_display.4.0.modal.close_button_text",o),role:"dialog","aria-labelledby":"mediaCarousel"},null!=S?c.a.createElement("div",{className:"pr-media-carousel"},c.a.createElement(lt.a,{localizations:o,onClose:function(){n.setState({modalStartingIndex:S,currentFlaggingIndex:null})},onSubmit:this.submitFlagReview})):c.a.createElement(dt.a,{media:b,startingIndex:w,allowHelpfulVoting:!1,showShoppableLink:k,handleCarouselChange:this.onCarouselChange,handleFlagMedia:this.handleFlagMedia,flaggedContent:C,localizations:Object(ut.a)(o),UserImage:ct.a,UserVideo:ct.b})):c.a.createElement(nt.a,he()({localizations:o,merchantProperties:s,config:i,type:m,media:b,startingIndex:w},{handleClose:this.closeModal,handleCarouselChange:this.onCarouselChange,allowHelpfulVoting:!1,allowReadReview:!1,showShoppableLink:k})));var R=E?c.a.createElement(mn,{localizations:o,handleClose:this.closeMediaFirstModal,config:i}):null;t="GRID_LARGE"===I||"XL"===i.irlSubtype||"GRID"===I?c.a.createElement(Ut,{imageGroupSize:h,imageSize:v,media:b,openModal:this.openModal,modal:e,localizations:o,totalMedia:y,onFetchMoreMedia:this.handleShowMore,galleryType:"XL"===i.irlSubtype?"GRID":I}):"DYNAMIC"===I?c.a.createElement(hr,{media:b,localizations:o,totalMedia:y,onClick:this.openModal,modal:e,onShowMore:this.handleShowMore}):"SCROLL_LARGE"===I?c.a.createElement(Dt,{localizations:o,media:b,isLoading:O,pageSize:_,onClick:this.openModal,onShowMore:this.handleShowMore,modal:e}):c.a.createElement(kt,{media:b,totalMedia:y,isLoading:O,pageSize:_,localizations:o,thumbnailSize:150,onClick:this.openModal,onShowMore:this.handleShowMore,modal:e}),(u||d)&&(r=c.a.createElement(K.b,null,c.a.createElement(K.a,{importance:1,className:"pr-irlsnippet-header"},u?function(e){return e?e.split(/\|{2}|¶/).pwrMap(function(e){return e.split(">").pop().trim()}).join(", "):null}(u):null," ",d?"#"+d.replace(","," #"):null)));var N=c.a.createElement(hn,{onClick:this.openMediaFirstModal,label:Object(ye.a)("review_display.4.0.share_your_photo.cta.button_label",o)});return P?c.a.createElement("div",{className:"pr-irl-gallery","data-testid":"irl-snippet"},R,r,"top"===(null===T||void 0===T?void 0:T.toLowerCase())?c.a.createElement(c.a.Fragment,null,N,t):c.a.createElement(c.a.Fragment,null,t,N)):c.a.createElement("div",{className:"pr-irl-gallery","data-testid":"irl-snippet"},r,t)},Ot()(t,[{key:"shownative",get:function(){var e;return Object(p.a)(this.props.config).IRL_SHOWNATIVE||!0===(null===(e=this.props.elementConfig)||void 0===e?void 0:e.shownative)}}]),t}(s.Component);var yn={key:d.u.IRLSnippet,dataRequirements:f.AggregateAndDetails,type:v.i.IRL_SNIPPET,component:function(e){var t=Object(s.useContext)(H.a),r=t.merchantProperties,n=t.localizations,a=Object(I.e)(e.config.page_id,v.b),i=Object(p.a)(r,e.config).CD4_IRL_IMAGE_GALLERY_STYLE,o=Vt("XL"===e.config.irlSubtype?"GRID":i),l=o.gridImageSize,u=o.gridImageGroupSize;return c.a.createElement(bn,he()({merchantProperties:r,localizations:n,sendBeacon:a,gridImageSize:l,gridImageGroupSize:u},e))}},_n=r(79),wn=c.a.createContext();function En(e){var t=e.config,r=e.localizations,n=e.merchantProperties,a=e.children,i=Object(s.useMemo)(function(){return{config:t,localizations:r,merchantProperties:n}},[t,r,n]);return c.a.createElement(wn.Provider,{value:i},a)}function On(){var e=Object(s.useContext)(wn);if(void 0===e)throw new Error("useQuestionContext must be used within a QAProvider");return e}var Sn=r(38),Cn="pr-qa-display-desktop",jn="pr-qa-display-tablet",xn={newest:{sortKey:"Newest",socialMeasurement:Sn.QA_DISPLAY_SORT_MOST_RECENT},oldest:{sortKey:"Oldest",socialMeasurement:Sn.QA_DISPLAY_SORT_OLDEST},mostAnswers:{sortKey:"MostAnswers",socialMeasurement:Sn.QA_DISPLAY_SORT_MOST_ANSWERS}},kn=r(97),In=function(e){function t(){return e.apply(this,arguments)||this}return O()(t,e),t.prototype.render=function(){var e=this.props,t=e.modalEnabled,r=a()(e,["modalEnabled"]);return t?c.a.createElement(kn.a,he()({role:"dialog"},r)):this.props.children},t}(s.Component),Pn=r(206),Tn=r(217),Rn=r(52),Nn=r(147),An=r(207),Dn=r(208),Ln=r(51),Mn=r(27);function Fn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function zn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fn(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Vn=function(e){function t(){return e.apply(this,arguments)||this}O()(t,e);var r=t.prototype;return r.componentDidMount=function(){var e=this.props,t=e.config,r=e.fetchWAAData,n=e.fetchWAQData,a=e.type;"WAQ"===a?n(t).then(function(){g.j("WAQ_"+Ln.a.LOADED)}):r(t,a,t.question_id).then(function(){g.j("WAA_"+Ln.a.LOADED)})},r.componentDidUpdate=function(e){!e.isComplete&&this.props.isComplete&&("WAA"===e.type?e.onAnswerSubmit(zn(zn({},this.props.answer_data),{},{questionIndex:this.props.questionIndex})):e.onQuestionSubmit())},r.render=function(){var e,t=this.props,r=t.product_information,n=t.merchant_information,a=t.form_localizations,i=t.config,o=t.type,s=t.errorMessage,l=t.isComplete,u=t.question_data,p=t.answer_data,d=t.days_since_asked,f=t.fetchError;if(s&&(e=c.a.createElement("div",{className:"p-w-r pr-template-load-alert"},c.a.createElement(Rn.a,{message:s,type:"danger",isVisible:!0}))),s&&!r)return c.a.createElement("div",{className:"p-w-r"},c.a.createElement("div",{className:"pr-waqwaa"},e));if(l&&"WAQ"===o)return c.a.createElement("div",{className:"p-w-r"},c.a.createElement("div",{className:"pr-waqwaa"},c.a.createElement(An.a,{config:i,localizations:a.product_answers,question:u,answer:p,product:r,type:o,ref:"thankYou"})));if(a&&r){var m,h={config:this.props.config,merchant:this.props.merchant_information,localizations:this.props.form_localizations,errors:this.props.field_errors,type:this.props.type,isSubmitting:this.props.isSubmitting,setSubmitErrorMessage:this.props.setSubmitErrorMessage};m="WAQ"===o?c.a.createElement(Tn.a,he()({},h,{submitWAQData:this.props.submitWAQData})):c.a.createElement(Nn.a,he()({},h,{question_id:i.question_id,question_data:this.props.question_data,submitWAAData:this.props.submitWAAData}));var v=this.props.isAccordion?{id:this.props.accordionId,role:"region","aria-labelledby":this.props.accordionLabelledBy}:{};return c.a.createElement("div",he()({className:"p-w-r"},v),c.a.createElement("div",{className:"pr-waqwaa"},c.a.createElement("div",null,e),c.a.createElement(Pn.a,{config:i,merchant:n,product:r,localizations:a,question:u,daysAgo:d}),m))}return f?c.a.createElement("div",{className:"p-w-r"},c.a.createElement("div",{className:"pr-waqwaa"},c.a.createElement(Dn.a,{type:o,ref:"errorPage"}))):c.a.createElement("div",{className:"p-w-r"},c.a.createElement(Ir.a,{isVisible:!0}))},t}(s.Component),Un={fetchWAQData:Mn.o,fetchWAAData:Mn.n,submitWAQData:Mn.r,submitWAAData:Mn.q,setSubmitErrorMessage:Mn.p},qn=Object(S.b)(function(e,t){var r=g.s(t.config);return r+="_"+("WAQ"===t.type?"question":"answer"),r+=t.config.question_id?"_"+t.config.question_id:"",zn({},e.WAQWAA[r]||{})},Un)(Vn),Wn=function(e){function t(){return e.apply(this,arguments)||this}return O()(t,e),t.prototype.render=function(){var e=this.props,t=e.config,r=e.merchantProperties,n=e.localizations,a=e.toggleQuestionForm,i=e.onQuestionSubmit,o=Object(p.a)(r,t).ENABLE_CONTENT_COLLECTION_MODAL,s=c.a.createElement(In,{modalEnabled:o,handleClose:a,localizations:n},c.a.createElement(qn,{config:t,type:"WAQ",isAccordion:!0,accordionId:"pr-question-form-content",accordionLabelledBy:"pr-question-form-link",onQuestionSubmit:i}));return o?c.a.createElement("section",{className:"pr-content-collection-form"},s):s},t}(s.Component),Bn=r(83),Hn=function(e){function t(){return e.apply(this,arguments)||this}return O()(t,e),t.prototype.render=function(){return c.a.createElement("span",{className:"pr-search-icon"},c.a.createElement("svg",{viewBox:"-323.088 -91.768 148.57 148.57",focusable:"false"},c.a.createElement("path",{fill:this.props.invert?"#fff":"#000",d:"M -220.233 -28.913 C -220.233 -39.925 -224.147 -49.343 -231.971 -57.171 C -239.799 -64.999 -249.221 -68.913 -260.233 -68.913 C -271.243 -68.913 -280.663 -64.999 -288.49 -57.171 C -296.32 -49.343 -300.233 -39.925 -300.233 -28.913 C -300.233 -17.901 -296.319 -8.479 -288.491 -0.655 C -280.661 7.173 -271.244 11.087 -260.233 11.087 C -249.221 11.087 -239.799 7.173 -231.971 -0.655 C -224.147 -8.479 -220.233 -17.901 -220.233 -28.913 Z M -174.518 45.372 C -174.518 48.47 -175.648 51.146 -177.908 53.407 C -180.17 55.669 -182.85 56.802 -185.948 56.802 C -189.158 56.802 -191.838 55.669 -193.983 53.407 L -224.608 22.872 C -235.26 30.255 -247.135 33.947 -260.233 33.947 C -268.743 33.947 -276.885 32.294 -284.651 28.989 C -292.421 25.685 -299.116 21.219 -304.741 15.595 C -310.366 9.97 -314.831 3.275 -318.135 -4.491 C -321.435 -12.261 -323.088 -20.401 -323.088 -28.913 C -323.088 -37.425 -321.436 -45.565 -318.135 -53.331 C -314.83 -61.101 -310.365 -67.796 -304.74 -73.421 C -299.115 -79.046 -292.42 -83.511 -284.65 -86.815 C -276.885 -90.115 -268.744 -91.768 -260.233 -91.768 C -251.721 -91.768 -243.58 -90.116 -235.811 -86.815 C -228.045 -83.51 -221.346 -79.045 -215.721 -73.421 C -210.096 -67.796 -205.635 -61.101 -202.331 -53.331 C -199.026 -45.565 -197.373 -37.425 -197.373 -28.913 C -197.373 -15.815 -201.065 -3.94 -208.448 6.712 L -177.823 37.337 C -175.619 39.54 -174.518 42.22 -174.518 45.372 Z M -174.518 45.372",transform:"matrix(1, 0, 0, 1, 2.842170943040401e-14, 0)"})))},t}(Bn.a),Kn=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,o()(ge()(t),"state",{query:"",isQuerying:!1}),o()(ge()(t),"handleClearQueryResults",function(e){e&&e.preventDefault(),t.setState({isQuerying:!0}),t.props.onSearchChange("").then(function(){t.setState({query:"",isQuerying:!1})})}),o()(ge()(t),"handleQuerySubmit",function(e){e&&e.preventDefault(),t.setState({isQuerying:!0}),t.props.onSearchChange(t.state.query).then(function(){t.setState({isQuerying:!1})})}),o()(ge()(t),"handleChange",function(e){t.setState({query:e.target.value})}),t}O()(t,e);var r=t.prototype;return r.componentDidUpdate=function(e){var t=e.filters.filter(function(e){return"search"===e.attribute})[0],r=this.props.filters.filter(function(e){return"search"===e.attribute})[0];t&&!r&&this.setState({query:""})},r.render=function(){var e=this.props,t=e.containerClass,r=e.localizations,n=e.questions,a=e.disableHeadingStructures,i=e.filters;return c.a.createElement("section",{className:"pr-qa-display-search"},c.a.createElement("form",{onSubmit:this.handleQuerySubmit},c.a.createElement("label",{htmlFor:"pr-query"},t===Cn?Object(ye.a)("qa_display.4.0.search.label.long",r):Object(ye.a)("qa_display.4.0.search.label.short",r)),c.a.createElement("div",{className:"pr-qa-display-searchbar pr-input-group"},c.a.createElement("input",{id:"pr-query",name:"pr-query",className:"pr-qa-display-searchbar-input pr-form-control",value:this.state.query,onChange:this.handleChange,type:"search",placeholder:Object(ye.a)("qa_display.4.0.search.input.placeholder",r)}),c.a.createElement("button",{className:"pr-qa-search-btn pr-qa-search-"+(this.state.query?"filled":"empty")+" pr-input-group-addon",title:"Submit search",type:"submit","aria-label":Object(ye.a)("qa_display.4.0.search.button.aria_label",r)},c.a.createElement(Hn,{invert:!0})))),i.length>0&&c.a.createElement("a",{className:"pr-qa-display-clear-search-button",href:"",role:"button",onClick:this.handleClearQueryResults},Object(ye.a)("qa_display.4.0.search.clear_search",r)),i.length>0&&0===n.length&&c.a.createElement("div",{className:"pr-qa-display-search-no-results"},c.a.createElement(K.a,{importance:2,shouldUseSpan:a},Object(ye.a)("qa_display.4.0.search.no_results.header",r)),c.a.createElement("p",null,Object(ye.a)("qa_display.4.0.search.no_results.ask_question_text",r)),c.a.createElement("p",null,Object(ye.a)("qa_display.4.0.search.no_results.ask_question_delay_text",r))))},t}(s.Component),Gn=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,o()(ge()(t),"renderAskQuestionButton",function(e,r){var n=t.props,a=n.config,i=n.merchantProperties,o=n.localizations,s=n.isQuestionSubmitted,l=n.questionFormOpen,u=n.toggleQuestionForm,p=n.containerClass,d=n.onQuestionSubmit;return p!==Cn&&p!==jn?null:s?c.a.createElement(K.a,{importance:2,shouldUseSpan:e,className:"pr-qa-display-thankyou-headline"},Object(ye.a)("qa_display.4.0.common.thank_you_text",o)+" "):c.a.createElement("section",{className:"pr-qa-display-ask-question"},c.a.createElement("button",{id:"pr-question-form-link",className:"pr-btn pr-btn-default pr-btn-review pr-accessible-btn pr-qa-display-btn",type:"button","aria-expanded":l,"aria-controls":"pr-question-form-content-container",onClick:u},l&&!r?Object(ye.a)("qa_display.4.0.button.cancel",o):Object(ye.a)("qa_display.4.0.button.ask_question",o)),c.a.createElement("div",{id:"pr-question-form-content-container"},l&&c.a.createElement(Wn,{config:a,localizations:o,merchantProperties:i,toggleQuestionForm:u,onQuestionSubmit:d})))}),o()(ge()(t),"renderSearch",function(e){var r=t.props,n=r.config,a=r.localizations,i=r.questions,o=r.filters,s=r.features,l=r.onSearchChange,u=r.containerClass,d=r.overallTotalQuestions,f=Object(p.b)("locale",n);return s&&s.search_supported_locales&&s.search_supported_locales.some(function(e){return e===f})&&d?c.a.createElement(Kn,he()({config:n,localizations:a,onSearchChange:l,containerClass:u,filters:o,questions:i},{disableHeadingStructures:e})):null}),o()(ge()(t),"renderSorts",function(e){var r=t.props,n=r.questions,a=r.totalQuestions,i=r.localizations,o=r.onSortChange;if(!n.length)return null;var s=Object(ye.a)("qa_display.4.0.sorting.dropdown_field_label",i),l=Object(ye.a)("qa_display.4.0.sorting.dropdown_aria_label",i),u=Object(ye.a)("qa_display.4.0.sorting.most_recent_label",i),p=Object(ye.a)("qa_display.4.0.sorting.oldest_label",i),d=Object(ye.a)("qa_display.4.0.sorting.most_answers_label",i),f="";return n.length&&(f=Object(ye.a)("qa_display.4.0.sorting.questions_showing_amount",i))&&(f=f.match(/(\{1\})/g)?f.replace("{0}",n.length).replace("{1}",a):f.replace("{0}",n.length)),c.a.createElement("section",{className:"pr-qa-display-sort"},c.a.createElement(K.a,{importance:2,shouldUseSpan:e,className:"pr-qa-sort-headline"},f),c.a.createElement("div",{className:"pr-qa-sort-group"},c.a.createElement("label",{htmlFor:"pr-qa-sort-by"},s+" "),c.a.createElement("select",{id:"pr-qa-sort-by",className:"pr-qa-sort","aria-label":l,onChange:o},c.a.createElement("optgroup",{label:l},c.a.createElement("option",{value:"newest"},u),c.a.createElement("option",{value:"oldest"},p),c.a.createElement("option",{value:"mostAnswers"},d)))))}),t}return O()(t,e),t.prototype.render=function(){var e=this.props,t=e.localizations,r=e.config,n=e.merchantProperties,a=e.totalQuestions,i=Object(p.a)(n,r),o=i.DISABLE_CD4_HEADING_STRUCTURES,s=i.ENABLE_CONTENT_COLLECTION_MODAL,l=a?Object(ye.a)("qa_display.4.0.common.headline",t):Object(ye.a)("qa_display.4.0.want_to_know",t);return c.a.createElement("header",{className:"pr-qa-display-headline"},c.a.createElement(K.a,{importance:1,shouldUseSpan:o},c.a.createElement("abbr",{title:Object(ye.a)("qa_display.4.0.common.text",t)},l)),c.a.createElement(K.b,null,this.renderAskQuestionButton(o,s),this.renderSearch(o),this.renderSorts(o)))},t}(s.Component),Qn=function(e){var t=e.question;return c.a.createElement(Ye,null,c.a.createElement(Be,{text:t.details.text,dateCreated:new Date(t.details.created_date).toISOString(),answerCount:t.answer_count},c.a.createElement(Te,{type:"suggestedAnswer"},!!t.answer.length&&t.answer.pwrMap(function(e){return c.a.createElement(Ke,{key:e.answer_id,text:e.details.text},c.a.createElement(Pe,{type:"author",name:e.details.nickname}))}))))},Yn=r(32),$n=r(174),Jn=r(210),Xn=r(78);function Zn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ea(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zn(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ta(e){var t=e.media,r=Object(s.useState)(!1),n=r[0],a=r[1],i=Object(s.useState)(0),o=i[0],l=i[1],u=Object(s.useState)(),d=u[0],f=u[1],m=Object(s.useState)([]),h=m[0],v=m[1],g=On(),b=g.localizations,y=g.config,_=g.merchantProperties,w=function(){var e=On(),t=e.merchantProperties,r=e.config;return Object(p.a)(t,r)}().REVIEW_MEDIA_MODAL_STYLE;if("CARD"!==w&&"CARDV2"!==w)return null;if(!t||!Array.isArray(t)||t.length<1)return null;var E=t.pwrMap(ra);function O(e){a(!0),l(e)}function S(){a(!1),l(0)}var C=c.a.createElement(nt.a,{media:E,startingIndex:o,localizations:b,merchantProperties:_,config:y,allowHelpfulVoting:!1,allowReadReview:!1,showShoppableLink:!1,handleClose:S});return"CARDV2"===w&&(C=c.a.createElement(pt.a,{handleClose:S,closeBtnText:Object(ye.a)("review_display.4.0.modal.close_button_text",b),role:"dialog","aria-labelledby":"mediaCarousel"},null!=d?c.a.createElement("div",{className:"pr-media-carousel"},c.a.createElement(lt.a,{localizations:b,onClose:function(){l(d),f(null)},onSubmit:function(e){return Object(at.a)(ea(ea(ea({},e),y),{},{merchant_id:y.merchant_id,command:"flagugc",ugc_id:E[d].id})).then(function(){v(h.concat(Number(E[d].id))),l(d),f(null)})}})):c.a.createElement(dt.a,{media:E,startingIndex:o,allowHelpfulVoting:!1,showShoppableLink:!1,handleFlagMedia:function(e){f(e)},flaggedContent:h,localizations:Object(ut.a)(b),UserImage:ct.a,UserVideo:ct.b}))),c.a.createElement("div",{className:"pr-qa-images pr-qa-content-block"},E.pwrMap(function(e,t){return c.a.createElement("figure",{className:"pr-qa-image-container",role:"button",tabIndex:"0",key:e.id,onClick:function(){return O(t)},onKeyDown:function(e){return function(e,t){13!==e.keyCode&&32!==e.keyCode||O(t)}(e,t)}},"video"===e.resourceType?c.a.createElement("img",{"aria-hidden":"true",src:ot.a,alt:"Play",className:"pr-qa-play-icon"}):null,c.a.createElement(ct.a,{alt:e.caption||"Image "+(t+1)+" for answer",src:function(e){var t=e.uri,r=e.resourceType,n=e.type,a=e.youtubeID;if("yt"===n)return"//img.youtube.com/vi/"+a+"/0.jpg";var i=t.split(/(https?:)?\/\/(res.cloudinary.com\/powerreviews|media.powerreviews.com)\/(image|video)\/upload\/(v[0-9]{10,}\/){0,1}/g).pop().replace(/\.(jpg|jpe|jpeg|jpc|jp2|j2k|wdp|jxr|hdp|png|gif|webp|bmp|tif|tiff)$/g,"").replace(/\.(mp4|webm|flv|mov|ogv|3gp|3g2|wmv|mpeg|flv|mkv|avi)$/g,"");return"//res.cloudinary.com/powerreviews/"+r+"/upload/c_thumb,h_150,w_150,f_auto/"+i}(e),width:"150",className:"pr-left"}),e.caption&&c.a.createElement("figcaption",null,e.caption))}),n&&C)}function ra(e){var t={};if("video"===e.type){var r=/(youtube.com\/(v\/|watch\?v=)|(youtu\.be\/))/;t=r.test(e.uri)?{type:"yt",youtubeID:e.uri.split(r).pop()}:{type:"cvideo"}}return ea(ea(ea({},e),t),{},{image:e.uri,ugc_id:e.id,resourceType:e.type})}var na=I.a.QA_DISPLAY_HELPFUL,aa=I.a.QA_DISPLAY_UNHELPFUL,ia=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,o()(ge()(t),"sendBeacon",function(e){t.context(t.props.page_id,v.c,e)}),o()(ge()(t),"handleVoteSubmit",function(e,r){var n=t.props,a=n.config,i=n.voteAnswer;r===Yn.d?t.sendBeacon(na):r===Yn.i&&t.sendBeacon(aa),i(e,a,r)}),o()(ge()(t),"renderAnswerText",function(e){for(var t="EXPERT"===e.details.author_type,r=(e.answer_highlights?e.answer_highlights.details.text:e.details.text).split(/(<em>|<\/em>)/g),n=[],a=0;a<r.length;a++)"<em>"===r[a]&&"</em>"===r[a+2]?(n.push(c.a.createElement("em",{key:a},Object($n.a)(r[a+1],t))),a+=2):n.push.apply(n,Object($n.a)(r[a],t));return n}),t}return O()(t,e),t.prototype.render=function(){var e=this,t=this.props,r=t.microdata,n=t.answer,a=t.localizations,i=t.helpfulVotes,o=t.unhelpfulVotes,s=function(e,t){var r,n,a,i="pr-answer-by",o="pr-qa-display-answer-by-container pr-qa-display-answer-by-container-";return e.details.brand_base_url&&e.details.brand_name?(r="Brand",i+="-brand",o+="brand",a=Object(ye.a)("qa_display.4.0.badging.author_type_text.verified_reply",t),e.details.brand_image_url&&(n=e.details.brand_image_url)):"EXPERT"===e.details.author_type?(r="Expert",n="qa_verified_reply",i+="-expert",o+="expert",a=Object(ye.a)("qa_display.4.0.badging.author_type_text.verified_reply",t)):"APO"===e.details.author_type?(r="Ask Product Owner",n="verified_buyer",i+="-verified",o+="verified",a=Object(ye.a)("qa_display.4.0.badging.author_type_text.product_owner",t)):(r="Community",n="community",o+="unverified",a=Object(ye.a)("qa_display.4.0.badging.author_type_text.community",t)),{type:r,iconType:n,className:i,containerClass:o,authorTypeLocalization:a}}(n,a),l=s.type,u=s.iconType,p=s.className,d=s.containerClass,f=s.authorTypeLocalization,m=-1!==i.indexOf(""+n.ugc_id),h=-1!==o.indexOf(""+n.ugc_id),v=m||h;return c.a.createElement("div",he()({},this.props.microdata.root,{className:d}),c.a.createElement("div",{className:"pr-qa-display-answer-details"},u&&c.a.createElement("span",{"aria-hidden":"true",className:"pr-qa-display-answer-icon"},c.a.createElement(Jn.a,{badgeType:u})),"Brand"===l?c.a.createElement("span",{className:p+" pr-qa-display-answer-by"},n.details.brand_image_url&&c.a.createElement("img",{src:"//images.powerreviews.com"+n.details.brand_image_url,alt:n.details.brand_name,width:"25",className:p+"-logo"}),c.a.createElement("div",{className:p+"-text"},Object(ye.a)("qa_display.4.0.common.brand_answer_highlight",a).replace("{0}",n.details.brand_name))):c.a.createElement("span",he()({},r.author,{className:p+" pr-qa-display-answer-by pr-subscript"}),c.a.createElement("span",null,f),!!n.details.nickname&&c.a.createElement("span",null,c.a.createElement("span",null," - "),c.a.createElement("span",r.name,n.details.nickname))),c.a.createElement("span",he()({},r.text,{className:"pr-qa-display-answer-text"}),this.renderAnswerText(n)),c.a.createElement(ta,{media:n.media}),n.metrics&&c.a.createElement("div",{className:"pr-helpful-voting"},c.a.createElement("button",{type:"button",className:Wt()("pr-helpful-btn pr-helpful-yes",{"pr-helpful-active":m}),tabIndex:"0","aria-label":v?"already voted":"click for helpful vote",onClick:function(){return e.handleVoteSubmit(""+n.ugc_id,Yn.d)},disabled:v},c.a.createElement(Xn.a,{thumbDirection:"up"}),c.a.createElement("span",{className:"pr-helpful-count"},n.metrics.helpful_votes+(m?1:0))),c.a.createElement("button",{type:"button",className:Wt()("pr-helpful-btn pr-helpful-no",{"pr-helpful-active":h}),tabIndex:"0","aria-label":v?"already voted":"click for unhelpful vote",onClick:function(){return e.handleVoteSubmit(""+n.ugc_id,Yn.i)},disabled:v},c.a.createElement(Xn.a,{thumbDirection:"down"}),c.a.createElement("span",{className:"pr-helpful-count"},n.metrics.not_helpful_votes+(h?1:0))))))},t}(s.Component);o()(ia,"contextType",I.c);var oa={voteAnswer:_n.i},sa=Object(S.b)(function(e){return{helpfulVotes:e.Questions.helpfulVotes,unhelpfulVotes:e.Questions.unhelpfulVotes}},oa)(ia);function ca(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function la(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ca(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ca(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var ua=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,o()(ge()(t),"sendBeacon",function(e){t.context(t.props.config.page_id,v.c,e)}),o()(ge()(t),"state",{answerSubmitted:!1,answerFormOpen:!1,showAllAnswers:!1,newAnswer:[]}),o()(ge()(t),"handleAnswerSubmit",function(e){t.setState({answerSubmitted:!0,showAllAnswers:!0,newAnswer:[{answer_id:e.question_id+"-answer",details:{location:e.author_location,nickname:e.author_name,text:e.answer_text},metrics:null}]})}),o()(ge()(t),"handleShowAnswerForm",function(){var e=t.props.question;t.state.answerFormOpen||t.sendBeacon(I.a.QA_DISPLAY_WRITE_ANSWER.replace("{questionId}",e.question_id)),t.setState({answerFormOpen:!t.state.answerFormOpen})}),o()(ge()(t),"handleShowMoreAnswers",function(){var e=t.props.question;t.setState({showAllAnswers:!0}),t.sendBeacon(I.a.QA_DISPLAY_MORE_ANSWERS.replace("{questionId}",e.question_id))}),t}return O()(t,e),t.prototype.render=function(){var e=this.props,t=e.config,r=e.question,n=e.localizations,a=e.microdata,i=this.state,o=i.answerSubmitted,l=i.answerFormOpen,u=i.showAllAnswers,p=i.newAnswer,d=[].concat(r.answer||[],p);u||(d=d.slice(0,1));var f=Object(ye.a)("qa_display.4.0.button.show_more_answers_singular",n);return r.answer.length-1>1&&(f=Object(ye.a)("qa_display.4.0.button.show_more_answers_plural",n)),f=f.replace("{0}",r.answer.length-1),c.a.createElement(s.Fragment,null,!o&&c.a.createElement("dd",{className:"pr-qa-display-answer-link-container"},c.a.createElement("button",{type:"button",id:r.question_id+"-link","aria-expanded":l,"aria-controls":r.question_id+"-content-container",className:l?"pr-btn-answer pr-answer-form-open":"pr-btn-answer",onClick:this.handleShowAnswerForm},c.a.createElement(jr.a,null),c.a.createElement("span",{className:"pr-qa-display-text"},l?Object(ye.a)("qa_display.4.0.button.cancel",n):Object(ye.a)("qa_display.4.0.button.add_answer",n)))),c.a.createElement("div",{id:r.question_id+"-content-container"},!o&&l&&c.a.createElement("dd",{id:r.question_id+"-content","aria-labelledby":r.question_id+"-link",role:"region",className:"pr-qa-display-add-answer"},c.a.createElement("div",{className:"pr-qa-display-form"},c.a.createElement(qn,{config:la(la({},t),{},{question_id:r.question_id}),type:"WAA",onAnswerSubmit:this.handleAnswerSubmit})))),d.pwrMap(function(e){return c.a.createElement("dd",{className:"pr-qa-display-answer",key:e.answer_id},c.a.createElement("span",{tabIndex:"-1","aria-hidden":"true",style:{outline:"none"}}),c.a.createElement(sa,he()({microdata:a.answer},{answer:e,config:t,localizations:n})))}),!u&&r.answer.length>1&&c.a.createElement("dd",{className:"pr-qa-display-show-more-answers"},c.a.createElement("button",{className:"pr-btn-show-more pr-qa-display-link",type:"button","aria-label":f,onClick:this.handleShowMoreAnswers},c.a.createElement(St.a,{circleOutline:!1,lineStrokeSize:"4"}),c.a.createElement("span",{className:"pr-qa-display-text"},f))))},t}(s.Component);o()(ua,"contextType",I.c);var pa=ua,da=function(e){function t(){return e.apply(this,arguments)||this}return O()(t,e),t.prototype.render=function(){var e=this.props,t=e.config,r=e.merchantProperties,n=e.localizations,a=e.question,i=Object(_.h)(t,r),o=i.showJSONLD,s=i.showMicrodata,l=Object(_e.a)(a.answer_count);l=s?l:l.empty;var u=Object(ye.a)("qa_display.4.0.q_icon.label",n),d=a.details.is_seeded?Object(ye.a)("qa_display.4.0.description.added_by",n)+" "+a.details.brand_name+" "+Object(ye.a)("qa_display.4.0.description.common_question",n):Object(ye.a)("qa_display.4.0.description.asked_by",n)+" "+a.details.nickname;return c.a.createElement(K.b,null,c.a.createElement("div",he()({},l.root,{className:"pr-qa-display-questionlist"}),c.a.createElement("dt",{alt:"question",className:"pr-qa-display-item"},c.a.createElement("span",{tabIndex:"-1",className:"pr-accessible-focus-element qa-display-focus-target","aria-hidden":"true",style:{outline:"none"}}),c.a.createElement("abbr",{className:"pr-qa-display-item-icon",title:u,"aria-label":u},Object(ye.a)("qa_display.4.0.q_icon.icon",n)),c.a.createElement(K.a,he()({},l.text,{importance:2,shouldUseSpan:Object(p.b)("DISABLE_CD4_HEADING_STRUCTURES",r,t),className:"pr-qa-display-item-text",dangerouslySetInnerHTML:{__html:a.highlights?a.highlights.details.text:a.details.text}})),c.a.createElement("meta",l.answerCount)),c.a.createElement("dt",{className:"pr-qa-display-item-details"},c.a.createElement("sub",{className:"pr-subscript"},d),!a.details.is_seeded&&c.a.createElement("time",he()({},l.dateCreated,{dateTime:new Date(a.details.created_date).toISOString()}),function(e,t){var r=Object(g.o)(new Date(e)),n="";if("number"==typeof r)if(r<=1)n+=" "+Object(ye.a)("qa_display.4.0.common.day_ago",t).replace("{0}",1);else if(r>1&&r<30)n+=1===r?" "+Object(ye.a)("qa_display.4.0.common.day_ago",t).replace("{0}",r):" "+Object(ye.a)("qa_display.4.0.common.days_ago",t).replace("{0}",r);else if(r>=30&&r<335){var a=Math.round(r/30);n+=1===a?" "+Object(ye.a)("qa_display.4.0.common.month_ago",t).replace("{0}",a):" "+Object(ye.a)("qa_display.4.0.common.months_ago",t).replace("{0}",a)}else if(r>=335){var i=Math.round(r/365);n+=1===i?" "+Object(ye.a)("qa_display.4.0.common.year_ago",t).replace("{0}",i):" "+Object(ye.a)("qa_display.4.0.common.years_ago",t).replace("{0}",i)}return n}(a.details.created_date,n))),c.a.createElement(pa,{question:a,config:t,localizations:n,microdata:l}),o&&c.a.createElement("dd",{"aria-hidden":"true"},c.a.createElement(Qn,{question:a,config:t,merchantProperties:r}))))},t}(s.Component),fa=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,o()(ge()(t),"state",{questionFormOpen:!1,isVisible:!1}),o()(ge()(t),"sendBeacon",function(e){t.context(t.props.config.page_id,v.c,e)}),o()(ge()(t),"toggleQuestionForm",function(){t.state.questionFormOpen||t.sendBeacon(I.a.QA_DISPLAY_ASK_QUESTION),t.setState({questionFormOpen:!t.state.questionFormOpen})}),o()(ge()(t),"handleQuestionSubmit",function(){t.props.questionSubmitted(t.props.config)}),o()(ge()(t),"handleSearchChange",function(e){var r=t.props,n=r.getQuestions,a=r.config,i=r.sorts;return e&&t.sendBeacon(I.a.QA_DISPLAY_SEARCH_ANSWERS),n(a,i,""===e?[]:[{attribute:"search",value:e}])}),o()(ge()(t),"handleSortChange",function(e){var r=t.props,n=r.getQuestions,a=r.config,i=r.filters,o=e.target.value;return t.sendBeacon(xn[o].socialMeasurement),n(a,"newest"===o?[]:[xn[o].sortKey],i)}),o()(ge()(t),"handleShowMoreQuestions",function(){var e=t.props,r=e.getMoreQuestions,n=e.config,a=e.nextPage,i=e.questions.length;a&&r(n,a).then(function(){var e=document.getElementsByClassName("pr-accessible-focus-element")[i];e&&e.focus()})}),o()(ge()(t),"handleVisibilityChange",function(e){var r=t.props.questions;e&&!t.state.isVisible&&r.length&&(t.sendBeacon(I.a.QA_DISPLAY_VISIBLE),t.setState({isVisible:!0}))}),o()(ge()(t),"renderMobileWAQ",function(){var e=t.props,r=e.isQuestionSubmitted,n=e.localizations,a=e.config,i=e.merchantProperties,o=e.containerClass,s=t.state.questionFormOpen;return o?null:r?c.a.createElement("section",{className:"pr-qa-display-ask-question pr-question-submitted"},c.a.createElement(K.a,{importance:2,shouldUseSpan:Object(p.b)("DISABLE_CD4_HEADING_STRUCTURES",i,a),className:"pr-qa-display-thankyou-headline"},Object(ye.a)("qa_display.4.0.common.thank_you_text",n))):c.a.createElement("section",{className:"pr-qa-display-ask-question"},c.a.createElement("button",{type:"button",id:"pr-question-form-link","aria-expanded":s,"aria-controls":"pr-question-form-content-container",className:s?"pr-btn-ask-question pr-answer-form-open":"pr-btn-ask-question",onClick:t.toggleQuestionForm},c.a.createElement(jr.a,null),c.a.createElement("span",{className:"pr-qa-display-text pr-qa-display-link"},s?Object(ye.a)("qa_display.4.0.button.cancel",n):Object(ye.a)("qa_display.4.0.button.ask_question",n))),c.a.createElement("div",{id:"pr-question-form-content-container"},s&&c.a.createElement(Wn,he()({config:a,localizations:n,merchantProperties:i},{toggleQuestionForm:t.toggleQuestionForm,onQuestionSubmit:t.handleQuestionSubmit}))))}),o()(ge()(t),"renderQuestions",function(){var e=t.props,r=e.questions,n=e.config,a=e.merchantProperties,i=e.localizations;return r.length?c.a.createElement("section",{className:"pr-qa-display-question"},c.a.createElement("dl",null,r.pwrMap(function(e){return c.a.createElement(da,he()({key:e.question_id},{question:e,config:n,merchantProperties:a,localizations:i}))}))):null}),o()(ge()(t),"renderShowMore",function(){var e=t.props,r=e.localizations;if(!e.nextPage)return null;var n=Object(ye.a)("qa_display.4.0.button.show_more",r);return c.a.createElement("button",{type:"button",className:"pr-btn pr-btn-default pr-qa-display-show-more-questions pr-qa-display-btn","aria-label":n,onClick:t.handleShowMoreQuestions},c.a.createElement(St.a,{circleOutline:!1,lineStrokeSize:"5"}),c.a.createElement("span",{className:"pr-qa-display-btn-text"},c.a.createElement("span",null,n+" "),c.a.createElement("abbr",{title:Object(ye.a)("qa_display.4.0.common.text",r)},Object(ye.a)("qa_display.4.0.common.headline",r))))}),t}O()(t,e);var r=t.prototype;return r.componentDidMount=function(){this.sendBeacon(I.a.QA_DISPLAY_LOAD)},r.render=function(){var e=this,t=this.props,r=t.config,n=t.merchantProperties,a=t.localizations,i=t.questions,o=t.isQuestionSubmitted,s=t.isLoading,l=t.totalQuestions,u=t.overallTotalQuestions,d=t.features,f=t.filters,m=t.containerClass,h=this.state,v=h.questionFormOpen,g=h.isVisible;return"boolean"!=typeof s||s?null:c.a.createElement(X.b,{as:"section",id:"pr-qa-display-"+this.props.config.page_id,className:Wt()("pr-qa-display",m),"data-testid":"qa-display",onChange:this.handleVisibilityChange},function(){var t=c.a.createElement(Gn,he()({config:r,merchantProperties:n,localizations:a,questions:i,isQuestionSubmitted:o,containerClass:m,questionFormOpen:v,totalQuestions:l,overallTotalQuestions:u,features:d,filters:f},{toggleQuestionForm:e.toggleQuestionForm,onQuestionSubmit:e.handleQuestionSubmit,onSearchChange:e.handleSearchChange,onSortChange:e.handleSortChange}));return!!Object(p.b)("EXPERIMENTAL_RENDER_DEFER",r)&&!g?t:c.a.createElement(c.a.Fragment,null,t,c.a.createElement(K.b,null,e.renderQuestions(),e.renderMobileWAQ(),e.renderShowMore()))}())},t}(s.Component);function ma(e){var t=Object(X.e)(),r=t>=980?Cn:t<980&&t>780?jn:null;return c.a.createElement(fa,he()({containerClass:r},e))}function ha(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function va(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ha(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ha(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}o()(fa,"contextType",I.c);var ga=function(e){function t(){return e.apply(this,arguments)||this}O()(t,e);var r=t.prototype;return r.componentDidMount=function(){var e=this.props,t=e.isLoading,r=e.config,n=e.getQuestions;"boolean"!=typeof t&&n(r)},r.componentDidUpdate=function(e){this.props.config.on_render&&null==e.totalQuestions&&"number"==typeof this.props.totalQuestions&&vt.a.onQuestionsComponentRender(d.u.QuestionDisplay,this.props,{total:this.props.totalQuestions})},r.render=function(){return c.a.createElement(En,{config:this.props.config,localizations:this.props.localizations,merchantProperties:this.props.merchantProperties},c.a.createElement(ma,he()({key:this.props.redrawKey},this.props)))},t}(s.Component),ba={getQuestions:_n.g,getMoreQuestions:_n.f,questionSubmitted:_n.h},ya=Object(S.b)(function(e,t){var r=Object(g.s)(t.config);return va(va({},e.Questions[r]||{}),{},{redrawKey:e.Redraw.redrawKey})},ba)(function(e){var t=Object(s.useContext)(H.a),r=t.merchantProperties,n=t.localizations,a=t.features;return c.a.createElement(ga,he()({},e,{merchantProperties:r,localizations:n,features:a}))}),_a={key:d.u.QuestionDisplay,dataRequirements:f.AggregateAndDetails,type:v.i.QA_DISPLAY,component:ya},wa=[{name:"pr-snippet-minimal",width:1},{name:"pr-snippet-compact",width:410},{name:"pr-snippet-standard",width:650}],Ea=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,o()(ge()(t),"state",{showWAQForm:!1}),o()(ge()(t),"sendBeacon",function(e){t.props.sendBeacon(t.props.config.page_id,v.d,e)}),o()(ge()(t),"onViewAnswersClick",function(e){e&&e.preventDefault();var r=t.props.config;t.sendBeacon(I.a.QA_SNIPPET_READ_QUESTIONS);var n=Object(p.b)("on_view_answers_click",r);if(n&&"function"==typeof n)return n();var a=document.getElementById("pr-qa-display-"+r.page_id);a&&Object(g.F)(a,0),document.getElementsByClassName("qa-display-focus-target")[0].focus()}),o()(ge()(t),"onAskQuestionClick",function(e){e&&e.preventDefault();var r=t.props,n=r.config,a=r.merchantProperties;t.sendBeacon(I.a.QA_SNIPPET_ASK_A_QUESTION);var i=Object(p.b)("on_ask_question_click",n);return i&&"function"==typeof i?i():Object(p.a)(a,n).ENABLE_CONTENT_COLLECTION_MODAL?t.toggleQuestionForm():void(document.location=Object(_.d)(n,a)+"&appName=askQuestion")}),o()(ge()(t),"toggleQuestionForm",function(){t.setState({showWAQForm:!t.state.showWAQForm})}),o()(ge()(t),"handleQuestionSubmit",function(){t.props.questionSubmitted(t.props.config)}),t}return O()(t,e),t.prototype.render=function(){var e,t=this.props,r=t.config,n=t.merchantProperties,a=t.overallTotalQuestions,i=t.localizations,o=this.state.showWAQForm?c.a.createElement(Wn,he()({config:r,localizations:i,merchantProperties:n},{toggleQuestionForm:this.toggleQuestionForm,onQuestionSubmit:this.handleQuestionSubmit})):null;if(1===a)e=Object(ye.a)("qa_display.4.0.snippet.answered_question_count_singular",i);else{if(!(a>1))return c.a.createElement("div",{className:"pr-snippet-qa pr-snippet-qa-empty","data-testid":"qa-snippet"},c.a.createElement("p",{className:"pr-ask-question-cta pr-qa-large"},Object(ye.a)("qa_display.4.0.want_to_know",i)),c.a.createElement("a",{className:"pr-ask-question-link",rel:"nofollow",href:Object(_.d)(r,n)+"&appName=askQuestion",onClick:this.onAskQuestionClick},Object(ye.a)("qa_display.4.0.button.ask_question",i)),c.a.createElement("p",{className:"pr-ask-question-subtext"},Object(ye.a)("qa_display.4.0.ask_question_delay_text",i)),o);e=Object(ye.a)("qa_display.4.0.snippet.answered_question_count_plural",i)}var s=e.replace("{0}",a),l=e.replace("{0}","").trim();return c.a.createElement(X.c,{sizes:wa},c.a.createElement("section",{className:"pr-snippet-qa","data-testid":"qa-snippet"},c.a.createElement("div",{className:"pr-snippet-qa-metrics"},c.a.createElement("abbr",{className:"pr-qa-large",title:Object(ye.a)("qa_display.4.0.common.text",i)},Object(ye.a)("qa_display.4.0.common.headline",i)),c.a.createElement("div",{"aria-hidden":"true",className:"pr-answered-question-circle"},a),c.a.createElement("a",{className:"pr-snippet-qa-answer-link","aria-label":s,href:"#",onClick:this.onViewAnswersClick},l)),c.a.createElement("a",{className:"pr-ask-question-link",rel:"nofollow",href:Object(_.d)(r,n)+"&appName=askQuestion",onClick:this.onAskQuestionClick},Object(ye.a)("qa_display.4.0.button.ask_question",i)),o))},t}(s.Component);function Oa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var Sa=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,o()(ge()(t),"state",{isVisible:!1}),o()(ge()(t),"sendBeacon",function(e){t.context(t.props.config.page_id,t.props.type,e)}),o()(ge()(t),"onReady",function(){var e,r;t.props.config.on_render&&vt.a.onQuestionsComponentRender(d.u.QuestionSnippet,t.props,{total:t.props.overallTotalQuestions}),null===(e=(r=t.props).onLoad)||void 0===e||e.call(r)}),o()(ge()(t),"onVisibilityChange",function(e){e&&!t.state.isVisible&&(t.sendBeacon(I.a.QA_SNIPPET_VISIBLE),t.setState({isVisible:!0}))}),t}O()(t,e);var r=t.prototype;return r.componentDidMount=function(){var e=this.props,t=e.isLoading,r=e.config,n=e.getQuestions,a=e.questionsLoaded;"boolean"!=typeof t&&n(r),a&&this.onReady()},r.componentDidUpdate=function(e){this.props.questionsLoaded&&e.questionsLoaded!==this.props.questionsLoaded&&this.onReady()},r.render=function(){var e=this.props,t=e.config,r=e.merchantProperties,n=e.localizations,a=e.overallTotalQuestions,i=e.questionSubmitted;return e.questionsLoaded?c.a.createElement(X.b,{as:"section",onChange:this.onVisibilityChange,className:Wt()("pr-qa-snippet-container",{"pr-no-qa":!a})},c.a.createElement(Ea,{overallTotalQuestions:a,config:t,merchantProperties:r,localizations:n,sendBeacon:this.context,questionSubmitted:i})):c.a.createElement("div",null)},t}(c.a.Component);o()(Sa,"contextType",I.c);var Ca={getQuestions:_n.g,questionSubmitted:_n.h},ja=Object(S.b)(function(e,t){var r=Object(g.s)(t.config);return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oa(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oa(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e.Questions[r]||{})},Ca)(function(e){var t=Object(s.useContext)(H.a),r=t.merchantProperties,n=t.localizations;return c.a.createElement(Sa,he()({},e,{merchantProperties:r,localizations:n}))}),xa={key:d.u.QuestionSnippet,dataRequirements:f.Aggregate,type:v.i.QA_SNIPPET,component:ja},ka=r(47),Ia=r(155);function Pa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ta(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pa(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pa(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Ra,Na={getReviews:be.p},Aa=Object(S.b)(function(e,t){var r=Object(g.s)(t.config,e.Reviews.localeOverride,e.Reviews.merchantOverride);return Ta(Ta({},e.Reviews[r]||{}),{},{localeOverride:e.Reviews.localeOverride})},Na)(function(e){var t=e.config,r=e.type,n=e.localeOverride,a=e.isLoading,i=e.media,o=e.getReviews,l=Object(s.useState)(-1),u=l[0],f=l[1],m=Object(s.useState)(-1),h=m[0],g=m[1],b=Object(s.useState)([]),y=b[0],_=b[1],w=Object(s.useState)([]),E=w[0],O=w[1],S=Object(s.useState)([]),C=S[0],j=S[1],x=Object(s.useRef)(null),k=Object(I.e)(t.page_id,r||v.h),P=Object(s.useContext)(H.a),T=P.localizations,R=P.merchantProperties,N=P.displayApi;e.merchantOverride&&e.localizations&&(T=e.localizations);var A=Array.isArray(i),D=Object(s.useState)(!1),L=D[0],M=D[1],F=Object(p.a)(R,t),z=F.CD4_REVIEW_IMAGE_GALLERY_STYLE,V=F.ENABLE_REVIEW_IMAGE_DISPLAY,U=F.REVIEW_MEDIA_MODAL_STYLE,q=-1!==u,W=Object(Ia.a)(q),B=Vt(z),K=B.gridImageSize,G=B.gridImageGroupSize;Object(s.useEffect)(function(){k(I.a.REVIEW_IMAGE_DISPLAY_VISIBLE)},[]),Object(s.useEffect)(function(){A||"boolean"!=typeof a&&o(N,t)}),Object(s.useEffect)(function(){t.on_render&&A&&(L||(vt.a.onImageComponentRender(d.u.ReviewImageDisplay,{config:{page_id:t.page_id,on_render:t.on_render}},{review_image_count:i.length}),M(!0)))},[A,t.on_render,t.page_id,L,i]),Object(s.useEffect)(function(){!0===W&&!1===q&&x.current&&(x.current.focus(),x.current=null)});var Q=function(){switch(z){case"SCROLL":return 15;case"SCROLL_LARGE":return 8;case"GRID":case"GRID_LARGE":return G;case"DYNAMIC":default:return 8}}(),Y=function(e,t){void 0===e&&(e=[]);var r=Object(s.useState)(t),n=r[0],a=r[1];return Object(s.useEffect)(function(){a(t)},[t]),{mediaSlice:e.filter(function(e,t){return t<n}),onNextPage:function(){a(function(e){return e+t})}}}(i,Q),$=Y.mediaSlice,J=Y.onNextPage;if(!1===A||!1===V)return null;var X,Z,ee=function(e,t){x.current=t,f(e)},te=function(){f(-1),g(-1)};return 0===i.length?null:(u>=0&&(Z="CARDV2"===U?c.a.createElement(pt.a,{handleClose:te,closeBtnText:Object(ye.a)("review_display.4.0.modal.close_button_text",T),role:"dialog","aria-labelledby":"mediaCarousel",isFlagMediaOpen:h>=0},h>=0?c.a.createElement("div",{className:"pr-media-carousel"},c.a.createElement(lt.a,{localizations:T,onClose:function(){f(h),g(-1)},onSubmit:function(e){return Object(at.a)(Ta(Ta(Ta({},e),t),{},{merchant_id:t.merchant_id,command:"flagugc",ugc_id:i[h].id})).then(function(){_(y.concat(Number(i[h].id))),f(h),g(-1)})}})):c.a.createElement(dt.a,{media:i,startingIndex:u,allowHelpfulVoting:!0,showShoppableLink:!1,handleFlagMedia:function(e){g(e)},handleHelpfulVoting:function(e,r){return Object(at.a)(Ta(Ta({},t),{},{vote_type:r.toLowerCase(),command:"voteugc",ugc_id:e})).then(function(){"helpful"===r.toLowerCase()?O(E.concat(Number(e))):"unhelpful"===r.toLowerCase()&&j(C.concat(Number(e)))})},flaggedContent:y,helpfulContent:E,unhelpfulContent:C,localizations:Object(ut.a)(T),UserImage:ct.a,UserVideo:ct.b})):c.a.createElement(nt.a,{localizations:T,merchantProperties:R,config:t,type:r,media:i,startingIndex:u,handleClose:te,allowHelpfulVoting:!0,allowReadReview:!0,showShoppableLink:!1})),X="SCROLL"===z?c.a.createElement(kt,{media:$,totalMedia:i.length,isLoading:a,pageSize:Q,localizations:T,thumbnailSize:150,onClick:ee,onShowMore:J,modal:Z}):"SCROLL_LARGE"===z?c.a.createElement(Dt,{media:$,totalMedia:i.length,localizations:T,isLoading:a,pageSize:Q,onClick:ee,onShowMore:J,modal:Z}):"GRID_LARGE"===z||"GRID"===z?c.a.createElement(Ut,{localizations:T,media:i,totalMedia:i.length,openModal:ee,modal:Z,imageSize:K,imageGroupSize:G,galleryType:z}):c.a.createElement(vr,{media:i,localizations:T,totalMedia:i.length,onClick:ee,modal:Z}),c.a.createElement("div",{"data-testid":"review-image-display",lang:Object(ka.b)(n)},X))});Ra=r(157).default;var Da=function(e){function t(){return e.apply(this,arguments)||this}return O()(t,e),t.prototype.render=function(){var e=this.props,t=e.config,r=e.localizations,n=e.onClose;return c.a.createElement("section",{className:"pr-content-collection-form"},c.a.createElement(In,{modalEnabled:!0,handleClose:n,localizations:r},c.a.createElement(Ra,{config:t})))},t}(s.Component),La=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,o()(ge()(t),"state",{showWARModal:!1}),o()(ge()(t),"sendBeacon",function(e){t.context(t.props.config.page_id,t.props.embeddedComponent,e)}),o()(ge()(t),"onReadReviewsClick",function(e){e.preventDefault();var r=t.props.config;t.sendBeacon(I.a.REVIEW_SNIPPET_READ_REVIEWS);var n=Object(p.b)("on_read_reviews_click",r);if(n&&"function"==typeof n)return n();var a=document.getElementById("pr-review-snapshot"),i=document.getElementById("pr-review-display");a?(g.F(a,0),document.getElementById("review-snapshot-focus-target").focus()):i&&(g.F(i,0),document.getElementById("review-list-focus-target").focus())}),o()(ge()(t),"toggleWARModal",function(){t.setState({showWARModal:!t.state.showWARModal})}),o()(ge()(t),"onWriteReviewClick",function(e){e.preventDefault();var r=t.props,n=r.embeddedComponent,a=r.config,i=r.merchant_properties,o=r.localeOverride,s=r.merchantOverride,c=t.getBatchedPageIds(a),l=Object(p.a)(i,a).ENABLE_CONTENT_COLLECTION_MODAL;t.sendBeacon(n===v.f?I.a.REVIEW_SNAPSHOT_WRITE_REVIEW:I.a.REVIEW_SNIPPET_WRITE_REVIEW);var u=Object(p.b)("on_write_review_click",a);return u&&"function"==typeof u?u():l&&!c?t.toggleWARModal():void(document.location=Object(_.d)(a,i,o,s))}),t}O()(t,e);var r=t.prototype;return r.getBatchedPageIds=function(e){var t=Object(p.b)("batched_page_ids",e);return t=Array.isArray(t)&&0===t.length?null:t},r.render=function(){var e=this.props,t=e.localizations,r=e.config,n=e.ratingValue,a=e.reviewCount,i=e.merchant_properties,o=e.productKey,s=e.isCountLinkEnabled,l=e.localeOverride,u=e.merchantOverride;if(!t)return c.a.createElement("div",null);var d,f=Object(ye.a)("review_display.4.0.common.rated_x_out_of_y",t).replace("{0}",n),m=this.getBatchedPageIds(r),h=Object(p.b)("on_read_reviews_click",r);d=1===a?Object(ye.a)("review_display.4.0.common.review_count_singular",t):a>1?Object(ye.a)("review_display.4.0.common.review_count_plural",t).replace("{0}",a):Object(ye.a)("review_display.4.0.no_reviews",t);var v=Object(_.h)(r,i).showMicrodata,g=Object(_e.c)(n,a,r.structured_data_product_id||o);return g=v&&a?g:g.empty,c.a.createElement("div",he()({},g.root,{className:"pr-snippet"}),c.a.createElement("div",{className:"pr-snippet-stars-container"},c.a.createElement(we.a,he()({},this.props,{useQuarterStars:!0,starSize:28})),c.a.createElement("span",he()({},g.ratingValue,{className:"pr-accessible-text"}),f)),c.a.createElement("div",he()({},g.reviewCount,{className:"pr-snippet-read-and-write"}),(s&&!m||!!h&&!!m)&&c.a.createElement("a",{href:"#",className:"pr-snippet-review-count",onClick:this.onReadReviewsClick},d),(!h&&!!m||!s)&&c.a.createElement("span",{className:"pr-snippet-review-count"},d),c.a.createElement("a",{href:i?Object(_.d)(r,i,l,u):"#",className:"pr-snippet-write-review-link pr-underline",rel:"nofollow",onClick:this.onWriteReviewClick},a?Object(ye.a)("review_display.4.0.write_a_review",t):Object(ye.a)("review_display.4.0.write_the_first_review",t))),this.state.showWARModal&&c.a.createElement(Da,he()({config:r,localizations:t},{onClose:this.toggleWARModal})))},t}(s.Component);o()(La,"contextType",I.c),La.defaultProps={embeddedComponent:v.g,isCountLinkEnabled:!0,starStyles:"GOLD_NON_ACCESSIBILITY_COMPLIANT"};var Ma=La,Fa=function(e){function t(){return e.apply(this,arguments)||this}O()(t,e);var r=t.prototype;return r.getColorClass=function(){return this.props.recommendedPercent>=75?"pr-reco-green":this.props.recommendedPercent>=50?"pr-reco-yellow":"pr-reco-red"},r.render=function(){var e=(this.props.className||"pr-reco")+" "+this.getColorClass();return c.a.createElement("div",{className:e},c.a.createElement("span",{className:"pr-reco-value"},parseFloat(this.props.recommendedPercent).toFixed(0)+"% "),this.props.text?"Recommended":null)},t}(c.a.Component),za=r(105),Va=function(e){function t(){return e.apply(this,arguments)||this}return O()(t,e),t.prototype.render=function(){return c.a.createElement("svg",he()({width:"47px",height:"47px",viewBox:"0 0 47 47",focusable:"false","aria-hidden":"true"},this.props),c.a.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none"},c.a.createElement("g",{transform:"translate(2.000000, 2.000000)"},c.a.createElement("circle",{stroke:"#757575",strokeWidth:"3",cx:"21.5",cy:"21.5",r:"21.5"}),c.a.createElement("polygon",{fill:"#0A8900",points:"18.5829657 24.193701 14.1898693 19.8006046 11 22.9599101 18.4326062 30.392165 32.7856127 16.0391585 29.7464542 13"}))))},t}(c.a.Component),Ua=(r(403),function(e){if(!e.localizations)return c.a.createElement("div",null);var t=e.showEnhancedStyles?c.a.createElement(Va,null):c.a.createElement(za.a,{invert:!0}),r=Object(ye.a)("review_display.4.0.snippet.recommended_text",e.localizations).replace("{0}","").trim();return c.a.createElement("div",{className:"pr-snippet-reco-to-friend"},c.a.createElement("div",{className:"pr-snippet-reco-to-friend-percent "+function(e){return(e>=75?"pr-snippet-reco-to-friend-green":e>=50&&"pr-snippet-reco-to-friend-yellow")||e>=1&&"pr-snippet-reco-to-friend-red"||"pr-snippet-reco-to-friend-gray"}(e.recommendedPercent)},e.recommendedPercent>75?c.a.createElement("span",{"aria-hidden":"true"},t):null,c.a.createElement(Fa,{recommendedPercent:e.recommendedPercent})),c.a.createElement("span",{className:"pr-reco-to-friend-message"},r))}),qa=(r(404),function(e){var t=Object(X.e)();return c.a.createElement("div",{className:Wt()("pr-snippet-stars-reco-inline",{"pr-snippet-minimal":t<350,"pr-snippet-compact":t>=350&&t<650,"pr-snippet-standard":t>=650})},c.a.createElement("div",{className:"pr-snippet-stars-reco-stars"},c.a.createElement(Ma,e)),e.recommendedPercent>60&&c.a.createElement("div",{className:"pr-snippet-stars-reco-reco"},c.a.createElement(Ua,e)),c.a.createElement("div",{style:{clear:"both"}}))});qa.defaultProps={isCountLinkEnabled:!0};var Wa=Object(S.b)(function(e){return e})(qa),Ba=function(e){var t,r,n=e.productName,a=e.productKey,i=e.averageRating,o=e.reviewCount,s=Object(H.c)(),l=Object(_.h)(s),u=l.showJSONLD,p=l.useNestedJSONLD,d=(null===s||void 0===s?void 0:null===(t=s.__COMPONENTKEYS)||void 0===t?void 0:t.CategorySnippet)||(null===s||void 0===s?void 0:null===(r=s.__COMPONENTKEYS)||void 0===r?void 0:r.ReviewSnippet);return u&&!p&&!d&&i&&o?c.a.createElement(Ye,null,c.a.createElement(ke,{ratingValue:i,reviewCount:o},c.a.createElement(qe,null,c.a.createElement(De,{name:n,parentID:s.structured_data_product_id||a})))):null},Ha=function(e){var t=e.config,r=e.merchantProperties,n=e.localizations,a=e.reviewCount,i=e.averageRating,o=e.recommendedRatio,s=e.productName,l=e.productKey,u=e.localeOverride,d=e.merchantOverride,f=e.apiKeyOverride,m=Object(p.a)(r,t),h=m.ENABLE_ENHANCED_SNAPSHOT_STYLES,g=m.STAR_STYLES;return c.a.createElement("section",{className:"pr-review-snapshot-snippets"},c.a.createElement(Wa,{reviewCount:a,ratingValue:i,recommendedPercent:100*o,localizations:n,embeddedComponent:v.f,config:t,useQuarterStars:!0,isCountLinkEnabled:!1,starStyles:g,merchant_properties:r,productKey:l,localeOverride:u,merchantOverride:d,apiKeyOverride:f,showEnhancedStyles:h}),c.a.createElement(Ba,{config:t,merchantProperties:r,averageRating:i,reviewCount:a,productName:s,productKey:l}))},Ka=function(e){function t(){return e.apply(this,arguments)||this}return O()(t,e),t.prototype.render=function(){return c.a.createElement("svg",he()({viewBox:"0 0 84 85",focusable:"false"},this.props),c.a.createElement("g",{fill:"none"},c.a.createElement("path",{d:"M44.378 25.846h-9.384v14.256h9.384c4.51 0 7.577-2.587 7.577-7.098 0-4.51-3.066-7.158-7.577-7.158zm.36 20.15h-9.744v16.839H28.5V23.25c0-1.677 1.59-3.237 3.332-3.237h12.906c8.362 0 13.715 5.534 13.715 12.991 0 7.459-5.353 12.993-13.715 12.993z",fill:"#888787"}),c.a.createElement("path",{d:"M59.328 62.839l-9.852-14.175s-1.098.529-4.42.529h-3.201l9.39 13.655 8.083-.01",fill:"#888787"}),c.a.createElement("path",{d:"M6.263 42.286c-.023-8.942 2.839-16.655 8.688-23.419l-4.737-4.097C3.338 22.72-.026 31.79 0 42.3c.06 23.154 18.878 41.877 42.03 41.818l-.015-6.255c-19.695.046-35.702-15.88-35.752-35.577",fill:"#75C6B8"}),c.a.createElement("path",{d:"M77.261 47.07C74.814 64.809 59.924 77.818 42.02 77.864h-.005l.015 6.255c21.047-.054 38.549-15.346 41.425-36.194l-6.194-.855",fill:"#FBB817"}),c.a.createElement("path",{d:"M64.05 6.584L60.748 11.9l.005.002C72.916 19.46 79.217 32.883 77.26 47.07l6.194.855c2.3-16.675-5.107-32.456-19.405-41.34",fill:"#53C7E6"}),c.a.createElement("path",{d:"M60.748 11.899l3.302-5.315c-10.719-6.66-22.427-8.17-34.485-4.452l1.846 5.984.004-.001C41.67 4.95 51.63 6.235 60.748 11.899",fill:"#8AC734"}),c.a.createElement("path",{d:"M31.411 8.116l-1.846-5.984c-8.03 2.479-13.853 6.28-19.35 12.638l4.736 4.097.002-.001c4.676-5.409 9.628-8.642 16.458-10.75",fill:"#F05E24"})))},t}(c.a.Component),Ga=(r(388),function(e){var t=e.config,r=e.merchantProperties,n=e.localizations;return r.IS_COBRANDED?Object(p.b)("ENABLE_ENHANCED_SNAPSHOT_STYLES",r,t)?c.a.createElement("a",{className:"pr-subheadline",href:"http://www.powerreviews.com",target:"_blank",rel:"noopener noreferrer"},c.a.createElement(Bn.a,{className:"pr-snapshot-logo"}),c.a.createElement(Ka,{className:"pr-snapshot-logo-mobile"})):c.a.createElement("p",{className:"pr-subheadline"},c.a.createElement("span",null,Object(ye.a)("review_display.4.0.snapshot.by",n)+" "),c.a.createElement("a",{href:"http://www.powerreviews.com",target:"_blank",rel:"noopener noreferrer"},"PowerReviews")):null}),Qa=function(e){var t=e.config,r=e.merchantProperties,n=e.localizations;return c.a.createElement(K.a,{importance:1,shouldUseSpan:Object(p.b)("DISABLE_CD4_HEADING_STRUCTURES",r,t),className:"pr-headline"},Object(ye.a)("review_display.4.0.snapshot.header",n))},Ya=function(e){var t=e.config,r=e.merchantProperties,n=e.localizations;return c.a.createElement("div",{className:"pr-review-snapshot-header-intro"},c.a.createElement(Qa,{config:t,merchantProperties:r,localizations:n}),c.a.createElement(Ga,{config:t,merchantProperties:r,localizations:n}))},$a=(r(405),function(e){for(var t=e.languages,r=e.overrideMerchantAndLocale,n=e.localeOverride,a=e.merchantOverride,i=e.localizations,o=0,s=0;s<t.length;s++)t[s].locale===n&&t[s].merchant_id===a&&(o=s);return c.a.createElement("div",{className:"pr-language-toggle"},c.a.createElement("label",{className:"pr-language-toggle-title",htmlFor:"pr-language-dropdown"},Object(ye.a)("review_display.4.0.language_toggle.label",i)),c.a.createElement("div",{className:"pr-language-toggle-picker"},c.a.createElement("select",{id:"pr-language-dropdown",value:o||"",onChange:function(e){return r(t[e.target.value])}},t.pwrMap(function(e,t){return c.a.createElement("option",{key:e.locale,value:t},e.name)}))))}),Ja=function(e){var t=e.config,r=e.merchantProperties,n=e.localizations,a=e.overrideMerchantAndLocale,i=e.localeOverride,o=e.merchantOverride;return c.a.createElement("div",{className:"pr-review-snapshot-header-intro"},c.a.createElement("div",{className:"pr-header-wrapper"},c.a.createElement(Qa,{config:t,merchantProperties:r,localizations:n}),c.a.createElement(Ga,{config:t,merchantProperties:r,localizations:n})),c.a.createElement($a,he()({languages:t.languages},{overrideMerchantAndLocale:a,localeOverride:i,merchantOverride:o,localizations:n})))},Xa=function(e){var t=e.config,r=e.merchantProperties,n=e.localizations,a=e.productName,i=e.productKey,o=e.simpleSnapshot,s=e.reviewCount,l=e.averageRating,u=e.recommendedRatio,p=e.showFullSnapshot,d=e.overrideMerchantAndLocale,f=e.localeOverride,m=e.merchantOverride;return c.a.createElement("header",{className:"pr-review-snapshot-header pr-review-snapshot-content-block"},r.ENABLE_LANGUAGE_TOGGLE&&t.languages?c.a.createElement(Ja,{config:t,merchantProperties:r,localizations:n,overrideMerchantAndLocale:d,localeOverride:f,merchantOverride:m}):c.a.createElement(Ya,{config:t,merchantProperties:r,localizations:n}),!o&&p&&c.a.createElement(Ha,{config:t,merchantProperties:r,localizations:n,reviewCount:s,averageRating:l,recommendedRatio:u,productName:a,productKey:i,localeOverride:f,merchantOverride:m}))},Za=(r(406),function(e){var t=e.filters&&e.filters.filter(function(e){return"rating"===e.attribute});t=t&&t.length&&t[0].value;var r=[],n=e.reviewRatings.pwrReduce(function(e,t){return e+t}),a=Object(ye.a)("review_display.4.0.common.review_count_plural",e.localizations),i=Object(ye.a)("review_display.4.0.common.remove_star_filter",e.localizations);return e.reviewRatings.forEach(function(o,s){var l,u;if(0===o?u="pr-zero-ratings":l=c.a.createElement("div",{className:"pr-ratings-histogram-barValue",style:{width:o/n*100+"%"}}),"msq"===e.type)r.unshift(c.a.createElement("li",{"aria-label":e.labels[s]+" – "+o,key:s,className:(u||"")+" pr-histogram-msqs"},c.a.createElement("p",{className:"pr-histogram-label"},e.labels[s]),c.a.createElement("div",{className:"pr-ratings-histogram-bar"},l),c.a.createElement("div",{className:"pr-ratings-histogram-percent"},n>0?Math.round(o/n*100):0,"%")));else{var p=function(t,r){return a?Object(jt.a)(a,r)+" "+e.labels[t]+". "+Object(jt.a)(e.tooltipText,t+1):""+Object(jt.a)(e.tooltipText,t+1)}(s,o),d=function(e,t){return a?Object(jt.a)(a,t)+". "+Object(jt.a)(i,e+1):""+Object(jt.a)(i,e+1)}(s,o);r.unshift(c.a.createElement("li",{className:"pr-ratings-histogram-list-item",key:s},c.a.createElement("div",{role:"button",tabIndex:o>0?"0":"-1","aria-label":t&&s+1===t?d:p,className:"pr-histogram-"+[s+1]+"Stars "+(u||"")+" pr-histogram-stars"+(s+1===t?" pr-hist-filter-"+t:""),onClick:"pr-zero-ratings"===u?null:e.callback.pwrBind(void 0,s+1,e.type),onKeyDown:"pr-zero-ratings"===u?null:function(e,t,r){13!==r.keyCode&&32!==r.keyCode||e.callback(t,e.type,r)}.pwrBind(void 0,e,s+1),"aria-disabled":0===o},c.a.createElement("p",{className:"pr-histogram-label","aria-hidden":"true"},e.labels[s]),c.a.createElement("div",{"data-tooltip":""+e.tooltipText.replace("{0}",s+1),className:"pr-ratings-histogram-bar-container","aria-hidden":"true"},c.a.createElement("div",{className:"pr-ratings-histogram-bar"},l)),c.a.createElement("p",{className:"pr-histogram-count","aria-hidden":"true"},""+(0===o?"0":o)),c.a.createElement("div",{className:"pr-histogram-cross","aria-hidden":"true"},t&&s+1===t?c.a.createElement(jr.a,null):null))))}}),c.a.createElement("ul",{className:"pr-ratings-histogram pr-histogram-list"},r)});Za.defaultProps={divIdKey:"",type:"rating",reviewRatings:[0,0,0,0,0],tooltipText:"Show only {0} star reviews",localizations:{},labels:["1 Star","2 Stars","3 Stars","4 Stars","5 Stars"]};var ei=Za,ti=function(e){var t=e.config,r=e.merchantProperties,n=e.localizations,a=e.activeFilters,i=e.onRatingFilter,o=e.histogramValues,l=e.onHistogramVisible,u=Object(ye.a)("review_display.4.0.snapshot.ratings_distribution",n),d=Object(s.useRef)(Object($e.f)()).current,f=Object(X.d)(l).ref;return c.a.createElement("section",{className:"pr-review-snapshot-block pr-review-snapshot-block-histogram","aria-labelledby":d},c.a.createElement("div",{className:"pr-review-snapshot-histogram",ref:f},c.a.createElement(K.b,null,c.a.createElement(K.a,{importance:1,id:d,shouldUseSpan:Object(p.b)("DISABLE_CD4_HEADING_STRUCTURES",r,t),className:"pr-review-snapshot-block-headline"},u)),c.a.createElement(ei,{type:"rating",filters:a,reviewRatings:o,callback:i,tooltipText:Object(ye.a)("review_display.4.0.snapshot.filter_star_text",n),localizations:n,labels:[Object(ye.a)("review_display.4.0.snapshot.histogram_star_label_one",n),Object(ye.a)("review_display.4.0.snapshot.histogram_star_label_two",n),Object(ye.a)("review_display.4.0.snapshot.histogram_star_label_three",n),Object(ye.a)("review_display.4.0.snapshot.histogram_star_label_four",n),Object(ye.a)("review_display.4.0.snapshot.histogram_star_label_five",n)]})))},ri=function(e){var t=e.config,r=e.merchantProperties,n=e.localizations,a=e.averageRating,i=e.reviewCount,o=e.productName,s=e.productKey,l=Object(p.a)(r,t),u=l.DISABLE_CD4_HEADING_STRUCTURES,d=l.STAR_STYLES;return c.a.createElement("section",{className:"pr-review-snapshot-block pr-review-snapshot-block-snippet"},c.a.createElement("section",{key:"snippet",className:"pr-review-snapshot-snippets"},c.a.createElement(K.b,null,c.a.createElement(K.a,{importance:1,shouldUseSpan:u,className:"pr-review-snapshot-snippets-headline"},Math.round(10*a)/10)),c.a.createElement(Ma,{reviewCount:i,ratingValue:a,localizations:n,embeddedComponent:v.f,config:t,useQuarterStars:!0,isCountLinkEnabled:!1,starStyles:d,merchant_properties:r,productKey:s}),c.a.createElement(Ba,{config:t,merchantProperties:r,averageRating:a,reviewCount:i,productName:o,productKey:s})))},ni=function(e){var t=e.merchantProperties,r=e.localizations,n=e.recommendedRatio,a=Wt()("pr-review-snapshot-block","pr-review-snapshot-block-recommend",{"pr-hide":!n});return c.a.createElement("section",{className:a},c.a.createElement("section",{key:"recommend",className:"pr-review-snapshot-recomend"},c.a.createElement(Ua,{recommendedPercent:100*n,localizations:r,merchant_properties:t})))},ai=function(e){var t=e.config,r=e.merchantProperties,n=e.localizations,a=e.activeFilters,i=e.onRatingFilter,o=e.histogramValues,l=e.averageRating,u=e.reviewCount,p=e.productName,d=e.productKey,f=e.recommendedRatio,m=e.onHistogramVisible;return c.a.createElement(s.Fragment,null,c.a.createElement(ri,{config:t,merchantProperties:r,localizations:n,averageRating:l,reviewCount:u,productName:p,productKey:d}),c.a.createElement(ni,{merchantProperties:r,localizations:n,recommendedRatio:f}),c.a.createElement(ti,{config:t,merchantProperties:r,localizations:n,activeFilters:a,onRatingFilter:i,histogramValues:o,onHistogramVisible:m}))},ii=c.a.forwardRef(function(e,t){var r=e.theme,n=e.className,a=e.buttonKey,i=e.ariaLabel,o=e.children,s=e.type,l=e.dataTooltip,u=e.toolTipText,p=e.onClick;return c.a.createElement("button",{type:"button","aria-label":i,"data-tooltip":l,"data-filter-tooltip":u,ref:t,onClick:function(e){e.preventDefault(),p(a,s,e)},className:r?"pr-filter-btn pr-filter-btn--"+r+" "+(n||""):"pr-filter-btn pr-snapshot-tag-def "+(n||"")},!!o&&[].concat(o).pwrMap(function(e){return e}))}),oi=function(e,t,r){return!(1!==Number(Object(p.b)("ENABLE_REVIEW_FILTERING",t))&&!r.ENABLE_REVIEW_FILTERING)},si=function(e){var t,r=e.config,n=e.merchantProperties,a=e.msq,i=e.type,o=e.localizations,l=e.activeFilters,u=e.onFilter,d=oi(r.merchant_id,r,n),f=l.filter(function(e){return e.attribute===i}),m=Object(ye.a)("review_display.4.0.review_tag_groups."+i,o);if(a)t=a.values.pwrMap(function(e){return{tagName:e.label,tagValue:e.count}}).sort(function(e,t){return t.tagValue-e.tagValue}).slice(0,5).pwrMap(function(e){var t=e.tagName,r=e.tagValue,n=!!f.filter(function(e){return e.value===t}).length,a=Wt()("pr-snapshot-tag-def",{"pr-snapshot-tag-def-filtering--active":n,"pr-snapshot-tag-def-filtering":d});return d?c.a.createElement("dd",{className:a,key:t},c.a.createElement(ii,{dataTooltip:""+Object(ye.a)("review_display.4.0.snapshot.msqs.filter_tooltip",o),ariaLabel:n?Object($e.d)(Object(ye.a)("review_display.4.0.snapshot.msqs.remove_filter",o),r,t):Object($e.d)(Object(ye.a)("review_display.4.0.snapshot.msqs.apply_filter",o),r,t),className:n?"pr-filter-btn--active":"",onClick:u,type:i,theme:"default",buttonKey:t},c.a.createElement("span",{"aria-hidden":"true",className:"pr-filter-btn__child pr-snapshot-highlight pr-filter-btn__voteCount"},r),c.a.createElement("span",{"aria-hidden":"true",className:"pr-filter-btn__child pr-filter-btn__buttonText"},t.charAt(0).toUpperCase()+t.slice(1)),n&&c.a.createElement(jr.a,{className:"pr-filter-btn__child pr-filter-btn__icon"}))):c.a.createElement("dd",{key:t,className:"pr-snapshot-tag-def"},c.a.createElement("span",{className:"pr-snapshot-highlight"},r),c.a.createElement("span",null,t.charAt(0).toUpperCase()+t.slice(1)))});else{var h=Object($e.d)(Object(ye.a)("review_display.4.0.snapshot.no_tags",o),m);t=c.a.createElement("dd",{key:"no-"+i,className:"pr-snapshot-tag-def"},h)}var v=Object(s.useRef)(Object($e.f)()).current;return c.a.createElement("section",{"aria-labelledby":v,className:"pr-review-snapshot-block pr-review-snapshot-block-"+i,"data-pr-no-data":!a||void 0},c.a.createElement("dl",{className:"pr-review-snapshot-tags"},c.a.createElement("dt",null,c.a.createElement(K.b,null,c.a.createElement(K.a,{importance:1,id:v,shouldUseSpan:Object(p.b)("DISABLE_CD4_HEADING_STRUCTURES",n,r),className:"pr-review-snapshot-block-headline"},m))),t))},ci=function(e){var t=e.config,r=e.merchantProperties,n=e.localizations,a=e.activeFilters,i=e.prosMSQ,o=e.consMSQ,l=e.onFilter,u=e.onRatingFilter,p=e.histogramValues,d=e.onHistogramVisible;return c.a.createElement(s.Fragment,null,c.a.createElement(ti,{config:t,merchantProperties:r,localizations:n,activeFilters:a,onRatingFilter:u,histogramValues:p,onHistogramVisible:d}),c.a.createElement(si,he()({config:t,merchantProperties:r,localizations:n,activeFilters:a,onFilter:l},{type:"pros",msq:i})),c.a.createElement(si,he()({config:t,merchantProperties:r,localizations:n,activeFilters:a,onFilter:l},{type:"cons",msq:o})))},li=(r(407),r(408),function(e){var t=e.merchantProperties,r=e.localizations,n=e.config,a=e.brandScore,i=a.brand_name,o=a.category_name,l=a.average_rating,u=void 0===l?0:l,d=a.score_type,f=Object(jt.a)(Object(ye.a)("review_display.4.0.snapshot.brand_score.title",r),i),m="Brand"!==d?Object(jt.a)(Object(ye.a)("review_display.4.0.snapshot.brand_score.description",r),i,o):Object(jt.a)(Object(ye.a)("review_display.4.0.snapshot.brand_score.description_brand_level",r),i),h=Object(jt.a)(Object(ye.a)("review_display.4.0.snapshot.brand_score.accessible_rating_text",r),u),v=100*u/5+"%",g=Object(s.useRef)(Object($e.f)());return c.a.createElement("section",{"aria-labelledby":g.current,className:"pr-review-snapshot-block pr-review-snapshot-block-brandscore"},c.a.createElement("div",{className:"pr-review-snapshot-brandscore"},c.a.createElement(K.b,null,c.a.createElement(K.a,{importance:1,id:g.current,shouldUseSpan:Object(p.b)("DISABLE_CD4_HEADING_STRUCTURES",t,n),className:"pr-brandscore-headline"},f)),c.a.createElement("p",{className:"pr-brandscore-description"},m),c.a.createElement("div",{className:"pr-brandscore-bargraph"},c.a.createElement("div",{className:"pr-brandscore-bargraph-barcontainer","aria-hidden":!0},c.a.createElement("div",{className:"pr-brandscore-bargraph-fullbar"}),c.a.createElement("div",{className:"pr-brandscore-bargraph-colorbar",style:{width:v}})),c.a.createElement("span",{className:"pr-brandscore-score","aria-hidden":!0},c.a.createElement("b",null,u)," / 5"),c.a.createElement("span",{className:"pr-accessible-text"},h))))}),ui=function(e){var t,r=e.config,n=e.merchantProperties,a=e.localizations,i=e.brandScore,o=e.productName,l=e.productKey,u=e.simpleSnapshot,p=e.showBrandScore,d=Wt()("pr-review-snapshot-block-container",{"pr-review-snapshot-simple":u||p,"pr-review-snapshot-simple--brandscore":p});return t=p?c.a.createElement(s.Fragment,null,c.a.createElement(ri,he()({config:r,merchantProperties:n,localizations:a,productName:o,productKey:l},{averageRating:0,reviewCount:0})),c.a.createElement(li,{config:r,merchantProperties:n,localizations:a,brandScore:i})):u?c.a.createElement(ai,e):c.a.createElement(ci,e),c.a.createElement("div",{key:"block",className:d},t)},pi=(r(409),function(e){var t=e.size,r=e.selected,n=e.minText,a=e.maxText,i=e.className,o=e.textStyle,s=e.selectedLabel,l=[0,0,0,0,0].slice(0,t).pwrMap(function(e,t){return c.a.createElement("div",{key:t,className:"pr-slider-node"+(Math.round(r)===t?" pr-active":"")})}),u="above"===o,p=c.a.createElement("div",{className:"pr-min-text","aria-hidden":"true"},n),d=c.a.createElement("div",{className:"pr-max-text","aria-hidden":"true"},a);return c.a.createElement("div",{className:"pr-slider-root "+i+" "+(u?"pr-text-above-root":"")},u&&c.a.createElement("div",{className:"pr-slider-text-above"},p,d),!u&&p,c.a.createElement("div",{className:"pr-slider"+(u?" pr-text-above":""),role:"img","aria-label":s},c.a.createElement("div",{className:"pr-slider-node-group"},l),c.a.createElement("div",{className:"pr-slider-line"})),!u&&d)});pi.defaultProps={size:5,selected:2,minText:"Runs Small",maxText:"Runs Large",className:"",textStyle:"sides"};var di=pi;r(410);function fi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function mi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fi(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fi(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var hi=function(e){var t=e.config,r=e.merchantProperties,n=e.histogramMSQs,a=e.simpleSnapshot;if(!n.length)return null;var i=Wt()("pr-review-snapshot-msq-container","pr-review-snapshot-histogram-msq-container",{"pr-review-snapshot-histogram-msq-simple":a});return c.a.createElement("section",{className:i},n.pwrMap(function(e){var n=e.display_values,a=e.values,i=e.name,o=e.key;if(!n||!a)return c.a.createElement("div",{key:o});var s=n.pwrMap(function(t,r){var n=e.values.filter(function(e){return e.label===t})[0];return n?mi(mi({},n),{},{position:r}):{label:t,count:0,position:r}}),l=s.pwrMap(function(e){return e.count});return l.every(function(e){return 0===e})?c.a.createElement("div",{key:o}):c.a.createElement("section",{id:"msq-histogram-"+o,"data-testid":"msq-histogram-"+o,key:o,className:"pr-review-snapshot-msq pr-review-snapshot-msq-histogram"},c.a.createElement(K.b,null,c.a.createElement(K.a,{importance:2,className:"pr-histogram-msq-headline"},i)),Object(p.b)("ENABLE_ENHANCED_SNAPSHOT_STYLES",r,t)?c.a.createElement(di,{className:"pr-histogram-msq-slider",textStyle:"above",selected:Object(_.b)(s),selectedLabel:Object(_.a)(s),minText:n[0],maxText:n[n.length-1]}):c.a.createElement(ei,{type:"msq",reviewRatings:l,labels:n}))}))},vi=function(e){var t=e.config,r=e.merchantProperties,n=e.localizations,a=e.subratingMSQs;return a.length?c.a.createElement("section",{className:"pr-review-snapshot-msq-container pr-review-snapshot-subratings"},a.pwrMap(function(e){var a=e.key,i=e.name,o=e.value,s=Object(ye.a)("review_display.4.0.common.rated_x_out_of_y",n).replace("{0}",o);return c.a.createElement("dl",{key:"subrating-"+a,className:"pr-rd-def-list pr-msq-list pr-review-snapshot-msq-"+a},c.a.createElement("dt",null,i.charAt(0).toUpperCase()+i.slice(1)),c.a.createElement("dd",null,c.a.createElement("div",null,c.a.createElement("div",null,c.a.createElement(we.a,{isInteractive:!1,preset:o,ratingValue:o,useQuarterStars:!0,starStyles:Object(p.b)("pr_star_styles",r,t)})),c.a.createElement("span",{className:"pr-accessible-text"},s))))})):null},gi=5,bi=5,yi="+",_i=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,o()(ge()(t),"state",{visibleMSQTagCount:gi,nextFocus:void 0}),o()(ge()(t),"highestFilterCount",0),o()(ge()(t),"activeElementRef",c.a.createRef()),o()(ge()(t),"handleLessClick",function(e){e.preventDefault(),t.highestFilterCount=0,t.setState({visibleMSQTagCount:gi}),t.setState({nextFocus:yi})}),o()(ge()(t),"handleMoreClick",function(e,r){e.preventDefault(),t.setState({visibleMSQTagCount:r+bi}),t.setState({nextFocus:r})}),o()(ge()(t),"renderMoreLessButtons",function(e,r,n){var a=t.props,i=a.isFilteringEnabled,o=a.localizations;if(!i)return null;var l=e>r,u=r>gi&&r!==n;return c.a.createElement(s.Fragment,null,u&&c.a.createElement("dd",null,c.a.createElement("button",{className:"pr-less-button","aria-label":Object(ye.a)("review_display.4.0.snapshot.msqs.less",o),onClick:function(e){return t.handleLessClick(e)}},c.a.createElement("span",{"aria-hidden":!0},"[-"),c.a.createElement("span",null,Object(ye.a)("review_display.4.0.snapshot.msqs.less",o)),c.a.createElement("span",{"aria-hidden":!0},"]"))),l&&c.a.createElement("dd",null,c.a.createElement("button",{ref:function(e){t.state.nextFocus===yi&&(t.activeElementRef.current=e)},className:"pr-more-button",onClick:function(e){return t.handleMoreClick(e,r)}},c.a.createElement("span",{"aria-hidden":!0},"[+"),c.a.createElement("span",null,Object(ye.a)("review_display.4.0.snapshot.msqs.more",o)),c.a.createElement("span",{"aria-hidden":!0},"]"))))}),t}O()(t,e);var r=t.prototype;return r.componentDidUpdate=function(e){e.nextFocus!==this.state.nextFocus&&this.activeElementRef.current&&this.activeElementRef.current.focus()},r.render=function(){var e=this,t=this.props,r=t.msq,n=t.filters,a=t.isFilteringEnabled,i=t.onFilter,o=t.localizations,l=this.state.visibleMSQTagCount,u=r.values;if("textbox"===r.type&&Array.isArray(r.values)){var p=r.values.pwrReduce(function(e,t){return e[t]=e[t]?e[t]+1:1,e},{});u=Object.keys(p).pwrMap(function(e){return{label:e,count:p[e]}})}u.sort(function(e,t){return t.count-e.count});var d=u.pwrReduce(function(e,t,r){return n&&n.filter(function(e){return e.value===t.label})[0]?r+1:e},0),f=Math.max(l,d,this.highestFilterCount);return this.highestFilterCount=f,c.a.createElement("dl",{key:""+r.name,className:"pr-msq-list pr-review-snapshot-msq pr-review-snapshot-msq-"+r.key},c.a.createElement("dt",null,r.name.charAt(0).toUpperCase()+r.name.slice(1)),u.slice(0,f).pwrMap(function(t,l){var u=t.label,p=t.count,d=n&&n.filter(function(e){return e.value===u})[0];return c.a.createElement("dd",{key:u},a?c.a.createElement(ii,{className:d?"pr-filter-btn--active":"",key:u,type:r.key,onClick:i,buttonKey:u,theme:"button-separated",ariaLabel:d?Object(jt.a)(Object(ye.a)("review_display.4.0.snapshot.msqs.remove_filter",o),p,u):Object(jt.a)(Object(ye.a)("review_display.4.0.snapshot.msqs.apply_filter",o),p,u),toolTipText:Object(ye.a)("review_display.4.0.snapshot.msqs.filter_tooltip",o),ref:function(t){l===e.state.nextFocus&&(e.activeElementRef.current=t)}},c.a.createElement("span",{className:"pr-filter-btn__child pr-filter-btn__buttonText"},u.charAt(0).toUpperCase()+u.slice(1)),c.a.createElement("span",{className:"pr-filter-btn__child pr-filter-btn__voteCount"},p)):c.a.createElement(s.Fragment,null,c.a.createElement("span",{className:"pr-snapshot-highlight"},p),u.charAt(0).toUpperCase()+u.slice(1)))}),this.renderMoreLessButtons(u.length,f,d))},t}(s.Component),wi=function(e){var t=e.config,r=e.merchantProperties,n=e.localizations,a=e.simpleSnapshot,i=e.otherMSQs,o=e.activeFilters,s=e.onFilter,l=oi(t.merchant_id,t,r);return!i.length||a||"DROPDOWNS"===Object(p.b)("REVIEW_FILTERING_TYPE",r,t)?null:c.a.createElement("section",{className:"pr-review-snapshot-msq-container pr-review-snapshot-msqs"},i.pwrMap(function(e){var t=o.filter(function(t){return t.attribute===e.key});return c.a.createElement(_i,he()({key:e.key},{msq:e,isFilteringEnabled:l,filters:t,onFilter:s,localizations:n}))}))},Ei=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,o()(ge()(t),"commentBelowFoldId",Object(Pr.a)()),o()(ge()(t),"state",{expanded:!1}),o()(ge()(t),"toggleExpand",function(e){e&&e.preventDefault(),t.state.expanded||t.props.onExpand(),t.setState({expanded:!t.state.expanded})}),t}return O()(t,e),t.prototype.render=function(){var e=this.props,t=e.config,r=e.merchantProperties,n=e.localizations,a=e.faceoffData,i=e.label,o=e.className,s=this.state.expanded,l=a.comments,u=void 0===l?"":l,d=a.headline,f=a.rating,m=Object(p.a)(r,t),h=m.DISABLE_CD4_HEADING_STRUCTURES,v=m.STAR_STYLES,g=Wt()(o,{"pr-faceoff-active":s}),b=s?Object(ye.a)("review_display.4.0.common.read_less_review",n):Object(ye.a)("review_display.4.0.common.read_complete_review",n),y=s?"pr-faceoff-readcomplete-expanded":"pr-faceoff-readcomplete",_=[u.substring(0,300),u.substring(300)],w=_[0],E=_[1],O=E.length>0;return c.a.createElement("section",{className:g},c.a.createElement(K.b,null,c.a.createElement(K.a,{importance:1,shouldUseSpan:h,className:"pr-faceoff-label"},i),c.a.createElement("div",null,c.a.createElement(we.a,{isInteractive:!1,preset:f,ratingValue:f,starStyles:v}),c.a.createElement("span",{className:"pr-accessible-text"},Object(ye.a)("review_display.4.0.common.rated_x_out_of_y",n).replace("{0}",f))),c.a.createElement(K.b,null,c.a.createElement(K.a,{importance:2,shouldUseSpan:h,className:"pr-faceoff-title"},d)),c.a.createElement("p",{className:"pr-faceoff-review"},w,!0===O&&!1===s?"...":null,O?c.a.createElement("span",{id:this.commentBelowFoldId,style:{display:s?"inline":"none"}},E):null),O?c.a.createElement("button",{type:"button",className:y,onClick:this.toggleExpand,"aria-controls":this.commentBelowFoldId,"aria-expanded":s},b,c.a.createElement(St.a,{circleOutline:!1,lineStrokeSize:"4"})):null))},t}(s.Component),Oi=function(e){var t=e.config,r=e.merchantProperties,n=e.localizations,a=e.faceoffNegative,i=e.faceoffPositive,o=Object(I.e)(t.page_id,v.f);if(!r.FACE_OFF_ENABLED)return null;if(!a||!i)return c.a.createElement("div",{className:"pr-faceoff-empty"});var s={config:t,merchantProperties:r,localizations:n};return c.a.createElement("section",{className:"pr-review-snapshot-faceoff"},c.a.createElement(Ei,he()({faceoffData:i,label:Object(ye.a)("review_display.4.0.snapshot.most_liked_positive_review",n),className:"pr-faceoff-positive",onExpand:function(){return o(I.a.REVIEW_SNAPSHOT_FACEOFF_POSITIVE)}},s)),c.a.createElement("div",{className:"pr-faceoff-img"},c.a.createElement("span",{className:"pr-accessible-text"},Object(ye.a)("review_display.4.0.snapshot.versus",n)),c.a.createElement("span",{className:"pr-faceoff-img-txt","aria-hidden":"true"},"VS")),c.a.createElement(Ei,he()({faceoffData:a,label:Object(ye.a)("review_display.4.0.snapshot.most_liked_negative_review",n),className:"pr-faceoff-negative",onExpand:function(){return o(I.a.REVIEW_SNAPSHOT_FACEOFF_NEGATIVE)}},s)))},Si=r(69),Ci=function(e){return e.Reviews||{}},ji=function(e,t){return t.config||{}},xi=Object(Si.createSelector)(Ci,ji,function(e,t){return Object(g.s)(t,e.localeOverride,e.merchantOverride)}),ki=Object(Si.createSelector)(Ci,xi,function(e,t){return e[t]||{}}),Ii=Object(Si.createSelector)(ki,function(e){return e.rollup||{}}),Pi=Object(Si.createSelector)(ki,function(e){return e&&e.localizations}),Ti=(Object(Si.createSelector)(ki,function(e){return e&&e.merchantProperties}),Object(Si.createSelector)(Ii,function(e){return e.name})),Ri=Object(Si.createSelector)(Ii,function(e){return e.average_rating}),Ni=Object(Si.createSelector)(Ii,function(e){return e.review_count}),Ai=Object(Si.createSelector)(ki,function(e){return e.filters||[]}),Di=Object(Si.createSelector)(ki,function(e){return e.sorts||[]}),Li=(Object(Si.createSelector)(ki,function(e){return e.reviews||[]}),Object(Si.createSelector)(ki,function(e){return e.isLoading})),Mi=Object(Si.createSelector)(ki,function(e){return e.reviewsLoaded}),Fi=Object(Si.createSelector)(Ii,function(e){return e.rating_histogram}),zi=Object(Si.createSelector)(Ii,function(e){return e.recommended_ratio||0}),Vi=Object(Si.createSelector)(Ii,function(e){return e.faceoff_negative}),Ui=Object(Si.createSelector)(Ii,function(e){return e.faceoff_positive}),qi=Object(Si.createSelector)(Ii,function(e){return e.properties||[]}),Wi=Object(Si.createSelector)(qi,function(e){return e.filter(function(e){return"pros"===e.key})[0]}),Bi=Object(Si.createSelector)(qi,function(e){return e.filter(function(e){return"cons"===e.key})[0]}),Hi=Object(Si.createSelector)(qi,function(e){return e.filter(function(e){return"subrating"===e.type})}),Ki=Object(Si.createSelector)(qi,function(e){return e.filter(function(e){return"histogram"===e.display_type})}),Gi=Object(Si.createSelector)(qi,function(e){return e.filter(function(e){return"histogram"!==e.display_type&&"subrating"!==e.type&&"pros"!==e.key&&"cons"!==e.key})}),Qi=Object(Si.createSelector)(Ii,function(e){return e.page_brand_score}),Yi=[{name:"pr-snapshot-desktop",width:980},{name:"pr-snapshot-tablet",width:780},{name:"pr-snapshot-mobile",width:1}],$i=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,o()(ge()(t),"state",{histogramVisibilityBeaconFired:!1}),o()(ge()(t),"onRender",function(){t.props.config.on_render&&vt.a.onReviewComponentRender(d.u.ReviewSnapshot,t.props,{review_count:t.props.reviewCount,average_rating:t.props.averageRating})}),o()(ge()(t),"scrollToReviewDisplay",function(){if(Object(p.a)(t.props.merchantProperties,t.props.config).FILTER_SCROLLING_ENABLED){var e=document.getElementById("pr-review-display");e&&Object(g.F)(e,500)}}),o()(ge()(t),"handleFilter",function(e,r){var n=t.props,a=n.config,i=n.activeFilters,o=n.activeSorts,s=n.sortAndFilter,c=n.sendBeacon,l=i.filter(function(t){return t.attribute!==r||t.value!==e});return l.length===i.length?(c(I.a.REVIEW_DISPLAY_TAG_FILTER_APPLIED.replace("{type}",r).replace("{value}",e)),l.push({attribute:r,value:e}),t.scrollToReviewDisplay()):c(I.a.REVIEW_DISPLAY_TAG_FILTER_REMOVED.replace("{type}",r).replace("{value}",e)),s(a,o,l)}),o()(ge()(t),"handleRatingFilter",function(e){var r=t.props,n=r.config,a=r.activeFilters,i=r.activeSorts,o=r.sortAndFilter,s=r.sendBeacon,c=a.filter(function(e){return"rating"===e.attribute}),l=a.filter(function(e){return"rating"!==e.attribute});return c.length&&c[0].value===e?s(I.a.REVIEW_DISPLAY_RATING_FILTER_REMOVED.replace("{rating}",e)):(s(I.a.REVIEW_DISPLAY_RATING_FILTER_APPLIED.replace("{rating}",e)),l.push({attribute:"rating",value:e}),t.scrollToReviewDisplay()),o(n,i,l)}),o()(ge()(t),"handleHistogramVisibilityChange",function(e){var r=t.state.histogramVisibilityBeaconFired;e&&!r&&(t.props.sendBeacon(I.a.REVIEW_HISTOGRAM_VISIBLE),t.setState({histogramVisibilityBeaconFired:!0}))}),t}O()(t,e);var r=t.prototype;return r.componentDidMount=function(){var e=this.props,t=e.isLoading,r=e.config,n=e.getReviews,a=e.reviewsLoaded,i=e.displayApi;"boolean"!=typeof t&&n(i,r),a&&this.onRender()},r.componentDidUpdate=function(e){var t=this.props,r=t.localeOverride,n=t.reviewsLoaded,a=t.isLoading,i=t.config,o=t.getReviews,s=t.displayApi;r!==e.localeOverride&&"boolean"!=typeof a&&o(s,i,r),e.reviewsLoaded!==n&&!0===n&&this.onRender()},r.render=function(){var e=this.props,t=e.config,r=e.merchantProperties,n=e.localizations,a=e.productName,i=e.productKey,o=e.averageRating,l=e.reviewCount,u=e.activeFilters,d=e.histogramValues,f=e.recommendedRatio,m=e.prosMSQ,h=e.consMSQ,v=e.histogramMSQs,g=e.subratingMSQs,b=e.otherMSQs,y=e.faceoffNegative,_=e.faceoffPositive,w=e.brandScore,E=e.overrideMerchantAndLocale,O=e.localeOverride,S=e.merchantOverride,C=e.apiKeyOverride,j=e.sendBeacon,x=e.reviewsLoaded,k=!!l&&!!d,I=!l&&!!w;if(!x)return null;if(!k&&!t.languages&&!I||!n)return c.a.createElement("div",{"data-testid":"review-snapshot"});var P=Object(p.a)(r,t),T=P.ENABLE_ENHANCED_SNAPSHOT_STYLES,R=P.REVIEW_DISPLAY_SNAPSHOT_TYPE,N=P.STAR_STYLES,A="SIMPLE"===R,D=Wt()("pr-review-snapshot",{"pr-review-accessible":"ORANGE_ACCESSIBILITY_COMPLIANT"===N,"pr-review-enhanced":T});return c.a.createElement(X.c,{sizes:Yi},c.a.createElement("section",{id:"pr-review-snapshot","data-testid":"review-snapshot",className:D,lang:Object(ka.b)(O)},c.a.createElement("span",{tabIndex:"-1",className:"pr-accessible-focus-element",id:"review-snapshot-focus-target","aria-hidden":"true"}),c.a.createElement(Xa,{config:t,merchantProperties:r,localizations:n,productName:a,productKey:i,simpleSnapshot:A,reviewCount:l,averageRating:o,recommendedRatio:f,overrideMerchantAndLocale:E,showFullSnapshot:k,localeOverride:O,merchantOverride:S,apiKeyOverride:C}),(k||I)&&c.a.createElement(s.Fragment,null,c.a.createElement(ui,he()({config:t,merchantProperties:r,localizations:n,simpleSnapshot:A,activeFilters:u,prosMSQ:m,consMSQ:h,histogramValues:d,averageRating:o,reviewCount:l,productName:a,productKey:i,recommendedRatio:f,brandScore:w,showBrandScore:I},{onFilter:this.handleFilter,onRatingFilter:this.handleRatingFilter,onHistogramVisible:this.handleHistogramVisibilityChange})),c.a.createElement(hi,{config:t,merchantProperties:r,localizations:n,histogramMSQs:v,simpleSnapshot:A}),c.a.createElement(vi,{config:t,merchantProperties:r,localizations:n,subratingMSQs:g}),c.a.createElement(wi,he()({config:t,merchantProperties:r,localizations:n,otherMSQs:b,simpleSnapshot:A,activeFilters:u},{onFilter:this.handleFilter})),c.a.createElement(Oi,{config:t,merchantProperties:r,localizations:n,faceoffNegative:y,faceoffPositive:_,sendBeacon:j}))))},t}(s.Component),Ji={getReviews:be.p,sortAndFilter:be.v,overrideMerchantAndLocale:be.u},Xi=Object(S.b)(function(e,t){var r=Ai(e,t),n=r.filter(function(e){return"rating"===e.attribute})[0]?r.filter(function(e){return"rating"===e.attribute})[0].value[0]:0,a=r.pwrReduce(function(e,t){return e+(t.value&&t.value.length)||0},0);return{localeOverride:e.Reviews.localeOverride,merchantOverride:e.Reviews.merchantOverride,apiKeyOverride:e.Reviews.apiKeyOverride,config:ji(0,t),localizations:Pi(e,t),productName:Ti(e,t),productKey:xi(e,t),averageRating:Ri(e,t),reviewCount:Ni(e,t),histogramValues:Fi(e,t),recommendedRatio:zi(e,t),prosMSQ:Wi(e,t),consMSQ:Bi(e,t),histogramMSQs:Ki(e,t),subratingMSQs:Hi(e,t),otherMSQs:Gi(e,t),isLoading:Li(e,t),activeSorts:Di(e,t),faceoffNegative:Vi(e,t),faceoffPositive:Ui(e,t),brandScore:Qi(e,t),activeFilters:r,filterCount:a,ratingFilter:n,reviewsLoaded:Mi(e,t)}},Ji)(function(e){var t=Object(s.useContext)(H.a),r=t.localizations,n=t.merchantProperties,a=t.displayApi;e.merchantOverride&&e.localizations&&(r=e.localizations);var i=Object(I.e)(e.config.page_id,v.f);return c.a.createElement($i,he()({},e,{sendBeacon:i,localizations:r,merchantProperties:n,displayApi:a}))}),Zi=function(e){function t(t){var r,n;return(n=e.call(this,t)||this).showWARForm=(r=n).showWARForm.pwrBind(r),n.onWriteReviewClick=(r=n).onWriteReviewClick.pwrBind(r),n}O()(t,e);var r=t.prototype;return r.onWriteReviewClick=function(e){return e.preventDefault(),this.props.writeReviewCallback&&"function"==typeof this.props.writeReviewCallback?this.props.writeReviewCallback():this.props.isModalEnabled?this.showWARForm():void(document.location=this.props.wrapperUrl)},r.showWARForm=function(){if(this.props.showFormCallback)return this.props.showFormCallback()},r.render=function(){return c.a.createElement("a",{href:this.props.wrapperUrl?this.props.wrapperUrl:"#",className:"pr-snippet-write-review-link",onClick:this.onWriteReviewClick,rel:"nofollow"},this.props.children)},t}(s.Component);o()(Zi,"defaultProps",{wrapperUrl:"",writeReviewCallback:function(){return null},showFormCallback:function(){return null},isModalEnabled:!1});var eo=Zi,to=function(e){var t=e.className,r=e.config,n=e.merchantProperties,a=e.localizations,i=e.localeOverride,o=e.merchantOverride,l=Object(p.a)(n,r),u=l.ENABLE_CONTENT_COLLECTION_MODAL,d=l.BATCHED_PAGE_IDS,f=l.ON_WRITE_REVIEW_CLICK,m=Object(s.useState)(!1),h=m[0],v=m[1],g=Object(_.d)(r,n,i,o),b=u&&!d;return c.a.createElement("section",{id:"pr-review-display",className:t},c.a.createElement("div",{className:"pr-rd-no-reviews"},c.a.createElement(eo,{wrapperUrl:g,writeReviewCallback:f||null,showFormCallback:u?function(){return v(!0)}:null,isModalEnabled:b},Object(ye.a)("review_display.4.0.write_the_first_review",a))),u&&h&&c.a.createElement(Da,he()({config:r,localizations:a},{onClose:function(){return v(!1)}})))},ro=r(131),no=r(99),ao=function(e){return c.a.createElement("div",{className:e.className},!!e.fieldGroupLabel&&c.a.createElement("label",{htmlFor:e.id},e.fieldGroupLabel),c.a.createElement("select",{id:e.id,className:"pr-rd-sort",onChange:function(t){var r=t.target;return e.onSortChange(r.value)},"aria-label":e.accessibleLabel?e.accessibleLabel:void 0},c.a.createElement("optgroup",{label:e.optionsLabel},e.defaultOption&&c.a.createElement("option",{value:e.defaultOption.value},e.defaultOption.label),e.sortOptions&&e.sortOptions.pwrMap(function(e,t){return c.a.createElement("option",{key:e.label+"-"+t,value:e.value},e.label)}))),e.showCaretIcon&&c.a.createElement(St.a,{circleStrokeSize:"0"}))};ao.defaultProps={className:"pr-rd-sort-group",id:"pr-rd-sort-by",optionsLabel:"Sort Reviews By",showCaretIcon:!1};var io=ao,oo=function(e){var t=e.localizations,r=e.onSortChange,n=e.reviewedByText,a=e.sortOptions,i=e.disableHeadings,o=e.nativeFilter,s=Object(ye.a)("review_display.4.0.sorting.dropdown_aria_label",t);return c.a.createElement("header",{id:"pr-rd-main-header",className:"pr-rd-main-header"},c.a.createElement(K.a,{importance:1,shouldUseSpan:i,className:"pr-rd-review-total"},n),c.a.createElement("div",{className:"pr-rd-right"},c.a.createElement(io,{id:"pr-rd-sort-by",className:"pr-rd-sort-group",optionsLabel:s,accessibleLabel:s,onSortChange:r,sortOptions:a,showCaretIcon:!1}),o))},so=function(e){var t=e.reviewedByText,r=e.disableHeadings,n=e.search,a=e.sortAndVariant,i=e.activeFilters,o=e.noResults;return c.a.createElement("header",{id:"pr-rd-main-header",className:"pr-rd-main-header pr-rd-main-header-with-filters"},c.a.createElement("div",{className:"pr-rd-review-header-contents"},c.a.createElement(K.a,{importance:1,shouldUseSpan:r,className:"pr-rd-review-total"},t),n),a,i,o)};function co(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function lo(e,t){return(!t||"hidden"!==e)&&("visible"!==e&&"clip"!==e)}function uo(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return lo(r.overflowY,t)||lo(r.overflowX,t)||function(e){var t=function(e){return e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.frameElement:null}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function po(e,t,r,n,a,i,o,s){return i<e&&o>t||i>e&&o<t?0:i<=e&&s<=r||o>=t&&s>=r?i-e-n:o>t&&s<r||i<e&&s>r?o-t+a:0}var fo=function(e,t){var r=t.scrollMode,n=t.block,a=t.inline,i=t.boundary,o=t.skipOverflowHiddenElements,s="function"==typeof i?i:function(e){return e!==i};if(!co(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,l=[],u=e;co(u)&&s(u);){if((u=u.parentNode)===c){l.push(u);break}u===document.body&&uo(u)&&!uo(document.documentElement)||uo(u,o)&&l.push(u)}for(var p=window.visualViewport?visualViewport.width:innerWidth,d=window.visualViewport?visualViewport.height:innerHeight,f=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,h=e.getBoundingClientRect(),v=h.height,g=h.width,b=h.top,y=h.right,_=h.bottom,w=h.left,E="start"===n||"nearest"===n?b:"end"===n?_:b+v/2,O="center"===a?w+g/2:"end"===a?y:w,S=[],C=0;C<l.length;C++){var j=l[C],x=j.getBoundingClientRect(),k=x.height,I=x.width,P=x.top,T=x.right,R=x.bottom,N=x.left;if("if-needed"===r&&b>=0&&w>=0&&_<=d&&y<=p&&b>=P&&_<=R&&w>=N&&y<=T)return S;var A=getComputedStyle(j),D=parseInt(A.borderLeftWidth,10),L=parseInt(A.borderTopWidth,10),M=parseInt(A.borderRightWidth,10),F=parseInt(A.borderBottomWidth,10),z=0,V=0,U="offsetWidth"in j?j.offsetWidth-j.clientWidth-D-M:0,q="offsetHeight"in j?j.offsetHeight-j.clientHeight-L-F:0;if(c===j)z="start"===n?E:"end"===n?E-d:"nearest"===n?po(m,m+d,d,L,F,m+E,m+E+v,v):E-d/2,V="start"===a?O:"center"===a?O-p/2:"end"===a?O-p:po(f,f+p,p,D,M,f+O,f+O+g,g),z=Math.max(0,z+m),V=Math.max(0,V+f);else{z="start"===n?E-P-L:"end"===n?E-R+F+q:"nearest"===n?po(P,R,k,L,F+q,E,E+v,v):E-(P+k/2)+q/2,V="start"===a?O-N-D:"center"===a?O-(N+I/2)+U/2:"end"===a?O-T+M+U:po(N,T,I,D,M+U,O,O+g,g);var W=j.scrollLeft,B=j.scrollTop;E+=B-(z=Math.max(0,Math.min(B+z,j.scrollHeight-k+q))),O+=W-(V=Math.max(0,Math.min(W+V,j.scrollWidth-I+U)))}S.push({el:j,top:z,left:V})}return S},mo=(r(411),function(e,t){return t.split(".").pwrReduce(function(e,t){return function(e,t){return!!e&&t in e}(e,t)?e[t]:null},e)}),ho=(r(412),c.a.forwardRef(function(e,t){var r=e.config,n=e.merchantProperties,a=e.localizations,i=e.msqs,o=e.onFilterChange,l=e.search,u=e.sortAndVariant,d=e.noResults,f=e.reviewedByText,m=e.activeFilters,h=e.filters,v=e.onResetFilters,g=e.totalReviews,b=Object(s.useRef)(),y=Object(s.useState)(!1),_=y[0],w=y[1],E=Br("(max-width: 680px)"),O=Object(s.useRef)(Object(Pr.a)()),S=Object(s.useState)(h),C=S[0],j=S[1],x="SIMPLE"===Object(p.b)("REVIEW_DISPLAY_SNAPSHOT_TYPE",n,r),k=i.filter(function(e){return"tag"===e.type}).filter(function(e){return x||"pros"!==e.key&&"cons"!==e.key}).pwrMap(function(e){var t=e.values.pwrMap(function(e){var t=e.label;return{id:t,label:t+" ("+e.count+")"}}),n=h.filter(function(t){return t.attribute===e.key});return c.a.createElement(wo,{key:e.key+"-"+O.current,id:e.key,label:e.name,options:t,icons:mo(r,"customizations.msq_icons."+[e.key]),buttonAriaLabel:Object(jt.a)(Object(ye.a)("review_display.4.0.filtering.dropdown.apply_filter",a),e.name),handleSelect:function(e,t){return o(e,t)},itemsSelected:n,localizations:a})});return c.a.createElement("header",{ref:b,id:"pr-rd-main-header",className:Wt()("pr-rd-main-header",{"pr-rd-main-header-with-filters":!0,"pr-header-filters":!0,"pr-header-filters--mobile":E})},c.a.createElement(K.a,{importance:2,className:"pr-rd-review-total pr-headers-filters__reviews-headline"},f),c.a.createElement("div",{className:"pr-rd-main-header__utility-bar pr-header-filters__utility-bar"},c.a.createElement("div",{className:"pr-rd-main-header__search pr-header-filters__search"},l),c.a.createElement("div",{className:"pr-rd-review-header"},!!k.length&&c.a.createElement("div",{className:"pr-rd-review-header__accordion"},c.a.createElement("div",{className:"pr-rd-review-header__accordion-title",onClick:function(){return w(function(e){return!e})},"data-testid":"filters-dropdown"},h.length>0&&c.a.createElement("span",{className:"pr-rd-review-header__accordion-title__count","aria-label":vo(h.length,a)},h.length),c.a.createElement("span",{className:"pr-rd-review-header__accordion-title__text"},Object(ye.a)("review_display.4.0.filtering.dropdown_v2.dropdown.label",a)),c.a.createElement(St.a,{circleOutline:!1}))),c.a.createElement("div",{className:"pr-rd-main-header__sort"},u))),!!k.length&&c.a.createElement("div",{className:"pr-rd-review-header-contents pr-rd-review-header-contents__content "+(_?"pr-rd-review-header-contents--opened":"")},E&&c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"pr-filters__fixed-header"},c.a.createElement(K.b,null,c.a.createElement(K.a,{importance:3,className:"pr-filters__title"},Object(ye.a)("review_display.4.0.filtering.dropdown_v2.dropdown.label",a)),c.a.createElement("div",{className:"pr-filter-total"},Object(jt.a)(Object(ye.a)("review_display.4.0.search.results_heading",a),g))),c.a.createElement("button",{onClick:function(){o("clearFilters","clearFilters")},className:"pr-filters__clear-button"},Object(ye.a)("review_display.4.0.filtering.dropdown_v2.mobile_modal.clear_filters",a))),c.a.createElement("div",{className:"pr-filters__menu"},c.a.createElement("button",{onClick:function(){return v(C),void w(!1)},className:"pr-filters__back-btn pr-accessible-btn"},Object(ye.a)("review_display.4.0.filtering.dropdown_v2.mobile_modal.cancel_filters",a)),c.a.createElement("button",{onClick:function(){return j(h),void w(!1)},className:"pr-filters__apply-btn pr-accessible-btn"},Object(ye.a)("review_display.4.0.filtering.dropdown_v2.mobile_modal.submit_filters",a)))),c.a.createElement("div",{className:"pr-multiselect-wrapper"},k)),m,d)}));function vo(e,t){return 1===e?Object(ye.a)("review_display.4.0.filtering.dropdown.active_filters_label_singular",t):e>1?Object(jt.a)(Object(ye.a)("review_display.4.0.filtering.dropdown.active_filters_label_plural",t),e):""}var go=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,o()(ge()(t),"state",{itemsSelected:[],isOpen:!1,highlightedIndex:-1}),o()(ge()(t),"shouldScroll",!0),o()(ge()(t),"mouseAndTouchTrackers",{isMouseDown:!1,isTouchMove:!1}),o()(ge()(t),"toggleButtonRef",c.a.createRef()),o()(ge()(t),"menuRef",c.a.createRef()),o()(ge()(t),"highlightedItemRef",c.a.createRef()),o()(ge()(t),"itemId",Object($e.f)()),o()(ge()(t),"getItemsSelected",function(){return t.isControlled()?t.props.itemsSelected:t.state.itemsSelected}),o()(ge()(t),"targetWithinComponent",function(e,r){return void 0===r&&(r=!0),[t.menuRef.current,t.toggleButtonRef.current].some(function(t){return t&&(_o(t,e)||r&&_o(t,document.activeElement))})}),o()(ge()(t),"onMouseDown",function(){t.mouseAndTouchTrackers.isMouseDown=!0}),o()(ge()(t),"onMouseUp",function(e){t.mouseAndTouchTrackers.isMouseDown=!1,t.state.isOpen&&!t.targetWithinComponent(e.target)&&t.setState({isOpen:!1})}),o()(ge()(t),"onTouchStart",function(){t.mouseAndTouchTrackers.isTouchMove=!1}),o()(ge()(t),"onTouchMove",function(){t.mouseAndTouchTrackers.isTouchMove=!0}),o()(ge()(t),"onTouchEnd",function(e){t.state.isOpen&&t.mouseAndTouchTrackers.isTouchMove&&!t.targetWithinComponent(e.target,!1)&&t.setState({isOpen:!1})}),o()(ge()(t),"_handleButtonClick",function(e){e.preventDefault(),t.setState({isOpen:!t.state.isOpen})}),o()(ge()(t),"toggleMenu",function(){return t.setState(function(e){return{isOpen:!e.isOpen}})}),o()(ge()(t),"closeMenu",function(){return t.setState({isOpen:!1,highlightedIndex:!0})}),o()(ge()(t),"onToggleButtonKeyDown",function(e){t.state.isOpen||"ArrowDown"!==e.key&&"ArrowUp"!==e.key&&"Up"!==e.key&&"Down"!==e.key||(e.preventDefault(),t.setState({isOpen:!0}))}),o()(ge()(t),"onMenuKeyDown",function(e){var r=t.state,n=r.isOpen,a=r.highlightedIndex,i=t.props.options;if(n){var o,s;switch(e.key){case"Esc":case"Escape":case"Tab":o={isOpen:!1},s=t.toggleButtonRef.current.focus();break;case"Down":case"ArrowDown":o=function(e){var t=e.highlightedIndex;return{highlightedIndex:t===i.length-1?0:t+1}};break;case"Up":case"ArrowUp":o=function(e){var t=e.highlightedIndex;return{highlightedIndex:0===t?i.length-1:t-1}};break;case"Home":o={highlightedIndex:0};break;case"End":o={highlightedIndex:i.length-1};break;default:32!==e.keyCode&&"Space"!==e.code&&" "!==e.key&&"Enter"!==e.key||a>-1&&(s=function(){return t.onOptionClick(i[a])})}(o||s)&&(e.preventDefault(),o&&t.setState(o),s&&s())}}),o()(ge()(t),"onOptionMousemove",function(e){t.shouldScroll=!1,t.setState({highlightedIndex:e})}),o()(ge()(t),"onOptionClick",function(e){if(!1===t.isControlled()){var r,n=t.state.itemsSelected,a=n.find(function(t){return t.value===e.id});r=a?n.filter(function(e){return e!==a}):[].concat(n,[{attribute:t.props.id,value:e.id}]),t.setState({itemsSelected:r})}t.props.handleSelect&&t.props.handleSelect(t.props.id,e.id)}),t}O()(t,e);var r=t.prototype;return r.componentDidMount=function(){document.addEventListener("mousedown",this.onMouseDown),document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("touchstart",this.onTouchStart),document.addEventListener("touchmove",this.onTouchMove),document.addEventListener("touchend",this.onTouchEnd)},r.componentDidUpdate=function(e,t){!1===t.isOpen&&!0===this.state.isOpen&&(this.menuRef.current&&this.menuRef.current.focus(),this.setState({highlightedIndex:0})),t.highlightedIndex!==this.state.highlightedIndex&&this.state.isOpen&&this.state.highlightedIndex>=0&&(!1===this.shouldScroll?this.shouldScroll=!0:function(e,t){if(null===e)return;fo(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach(function(e){var t=e.el,r=e.top,n=e.left;t.scrollTop=r,t.scrollLeft=n})}(this.highlightedItemRef,this.menuRef));var r=this.isControlled()?[e.itemsSelected,this.props.itemsSelected]:[t.itemsSelected,this.state.itemsSelected],n=r[1];r[0].lenght>0&&0===n.length&&this.setState({isOpen:!1})},r.componentWillUnmount=function(){document.removeEventListener("mousedown",this.onMouseDown),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd)},r.isControlled=function(){return void 0!==this.props.itemsSelected},r.render=function(){var e=this,t=this.state,r=t.isOpen,n=t.highlightedIndex,a=this.props,i=a.localizations,o=a.icons,s=this.getItemsSelected(),l=s.length,u=this.itemId+"-label",p=this.itemId+"-selected-count",d=s.pwrReduce(function(e,t){return e.add(t.value),e},new Set);return c.a.createElement("div",{className:"pr-multiselect pr-multiselect-button-"+this.props.id},c.a.createElement("button",{type:"button",onClick:this.toggleMenu,className:"pr-multiselect-button","aria-expanded":r?"true":void 0,"aria-labelledby":u+" "+p,"aria-haspopup":"listbox",ref:this.toggleButtonRef,onKeyDown:this.onToggleButtonKeyDown},l>0&&c.a.createElement("span",{className:"pr-multiselect-count","aria-hidden":"true"},l),c.a.createElement("span",{className:"pr-multiselect-button-label","aria-hidden":"true"},this.props.label),c.a.createElement("span",{className:"pr-accessible-text",id:u},this.props.buttonAriaLabel),c.a.createElement("span",{className:"pr-accessible-text",id:p},vo(l,i)),c.a.createElement(St.a,{circleOutline:!1,lineStrokeSize:"4"})),c.a.createElement("ul",{className:"pr-multiselect-options",style:{display:this.state.isOpen?"block":"none"},ref:this.menuRef,tabIndex:"-1",role:"listbox",onMouseLeave:function(t){e.setState({highlightedIndex:-1})},onKeyDown:this.onMenuKeyDown,"aria-activedescendant":n>-1?this.itemId+"-"+n:void 0,"aria-labelledby":u},this.props.options.pwrMap(function(t,r){var a=d.has(t.id),i=r===n,s=e.itemId+"-"+r,l={id:s,key:s,isSelected:a,label:t.label,isHighlighted:i,ref:function(t){i&&(e.highlightedItemRef=t)},onMouseMove:function(){e.onOptionMousemove(r)},onClick:function(){e.onOptionClick(t)}},u=bo;return o&&o.hasOwnProperty(t.id)&&(u=yo,l.icon=o[t.id]),c.a.createElement(u,l)})))},t}(c.a.Component),bo=c.a.forwardRef(function(e,t){var r=e.id,n=e.label,a=e.isHighlighted,i=e.isSelected,o=e.onMouseMove,s=e.onClick;return c.a.createElement("li",{id:r,className:Wt()({"pr-multiselect-item":!0,"pr-multiselect-item--highlight":a}),ref:t,onMouseMove:o,onClick:function(e){e.preventDefault(),e.stopPropagation(),s()},role:"option","aria-selected":i},c.a.createElement("input",{id:r+"-input",checked:i,readOnly:!0,type:"checkbox","aria-hidden":"true",tabIndex:"-1"}),c.a.createElement("label",{htmlFor:r+"-input",className:"pr-multiselect-item-label"},n))}),yo=c.a.forwardRef(function(e,t){var r=e.id,n=e.label,a=e.isHighlighted,i=e.isSelected,o=e.onMouseMove,s=e.onClick,l=e.icon;return c.a.createElement("li",{id:r,className:Wt()({"pr-multiselect-item":!0,"pr-multiselect-item--w-icon":!0,"pr-multiselect-item--highlight":a}),ref:t,onMouseMove:o,onClick:function(e){e.preventDefault(),e.stopPropagation(),s()},role:"option","aria-selected":i},c.a.createElement("input",{id:r+"-input",checked:i,readOnly:!0,type:"checkbox","aria-hidden":"true",tabIndex:"-1",className:"pr-multiselect-item-with-icon-input"}),c.a.createElement("img",{alt:"",src:l,"aria-hidden":"true",className:"pr-multiselect-item-icon"}),c.a.createElement("label",{htmlFor:r+"-input",className:"pr-multiselect-item-label"},n))});function _o(e,t){return e===t||e.contains&&e.contains(t)}var wo=go,Eo=r(200),Oo=function(e){var t=e.config,r=e.merchantProperties,n=e.localizations,a=e.msqs,i=e.onFilterChange,o=e.search,s=e.sortAndVariant,l=e.noResults,u=e.reviewedByText,d="SIMPLE"===Object(p.b)("REVIEW_DISPLAY_SNAPSHOT_TYPE",r,t),f=a.filter(function(e){return"tag"===e.type}).filter(function(e){return d||"pros"!==e.key&&"cons"!==e.key}).pwrMap(function(e){var t=e.values.pwrMap(function(e){var t=e.label;return{id:t,label:t+" ("+e.count+")"}});return c.a.createElement(wo,{key:e.key,id:e.key,label:e.name,options:t,buttonAriaLabel:Object(jt.a)(Object(ye.a)("review_display.4.0.filtering.dropdown.apply_filter",n),e.name),selectedFiltersAriaLabel:function(e){return 1===e?Object(ye.a)("review_display.4.0.filtering.dropdown.active_filters_label_singular",n):e>1?Object(ye.a)("review_display.4.0.filtering.dropdown.active_filters_label_plural",n).replace("{}",e):""},handleSelect:function(e,t){return i(e,t)},localizations:n})});return c.a.createElement("header",{id:"pr-rd-main-header",className:"pr-rd-main-header pr-rd-main-header-with-filters"},!!f.length&&c.a.createElement("div",{className:"pr-rd-review-header-contents"},f),c.a.createElement("div",{className:"pr-clearfix"}),c.a.createElement("div",{className:"pr-rd-main-header-search-sort"},c.a.createElement("div",{className:"pr-rd-main-header-search"},o),s),c.a.createElement(Eo.b,{importance:2,className:"pr-rd-review-total"},u),l)};r(413);function So(){var e=Object(s.useState)(!0),t=e[0],r=e[1];return Object(s.useEffect)(function(){var e=setTimeout(function(){r(!1)},500);return function(){return clearTimeout(e)}}),t?c.a.createElement("span",{className:"sr-only"}," "):null}var Co=function(e){for(var t=e.filters,r=e.localizations,n=e.onFilterChange,a=e.disableHeadings,i=e.merchantProperties,o=e.config,l=c.a.useRef(null),u=[],d=[],f=t.filter(function(e){return"variant"!==e.attribute&&"native_only"!==e.attribute}),m=function(e){var a=t[e],i=a.attribute,o=a.value,s="rating"===i?Object(ye.a)(0===o?"review_display.4.0.stars_singular":"review_display.4.0.stars_plural",r).replace("{0}",o):o,p=i+"-"+o;d.push(p),u.push(c.a.createElement(ii,{className:"pr-filter-btn__close",ariaLabel:"Remove "+s+" filter",onClick:function(){return n(i,o)},key:p,buttonKey:"number"==typeof o?Object(ye.a)("review_display.4.0.stars_plural",r).replace("{0}",o):o,theme:"button",ref:function(t){e+1===f.length&&(l.current=t)}},c.a.createElement("span",{className:"pr-filter-btn__child pr-filter-btn__icon"},c.a.createElement(jr.a,null)),c.a.createElement("span",{className:"pr-filter-btn__child pr-filter-btn__buttonText"},s)))},h=0;h<f.length;++h)m(h);d.sort();var v=Object($e.h)(d)||[],g=v.length!==d.length||v.join(",")!==d.join(","),b=d.length>0,y=Object(p.a)(i,o),_=y.FILTER_SCROLLING_ENABLED,w=y.REVIEW_FILTERING_TYPE,E=d.length<v.length;return Object(s.useEffect)(function(){var e;_&&g&&(null===(e=l.current)||void 0===e||e.focus())},[_,g]),c.a.createElement("section",{id:"pr-review-filter-section",className:"pr-review-filter-info-bar","aria-live":"polite","aria-atomic":!0,"aria-relevant":"all"},b?c.a.createElement(s.Fragment,null,c.a.createElement(K.b,null,c.a.createElement(K.a,{importance:1,shouldUseSpan:a,className:"pr-review-filter-headline"},Object(ye.a)("review_display.4.0.snapshot.active_filters",r),":")),u,"DROPDOWNS_V2"===w?c.a.createElement("button",{className:"pr-review-filter-clear-all",onClick:function(){return n("clearFilters","clearFilters")}},"Clear All"):null):null,E?c.a.createElement(So,null):null)};function jo(){var e=Sr()(["clear_button.text"]);return jo=function(){return e},e}function xo(){var e=Sr()(["button.text"]);return xo=function(){return e},e}function ko(){var e=Sr()(["button.text"]);return ko=function(){return e},e}function Io(){var e=Sr()(["button.text"]);return Io=function(){return e},e}function Po(){var e=Sr()(["clear_button.text"]);return Po=function(){return e},e}function To(){var e=Sr()(["input.placeholder"]);return To=function(){return e},e}function Ro(){var e=Sr()(["label"]);return Ro=function(){return e},e}function No(){var e=Sr()(["label.disabled"]);return No=function(){return e},e}var Ao=function(e){var t=e.config,r=e.merchantProperties,n=e.hasSearchFilter,a=e.localizations,i=e.onSearchChange,o=e.onClearSearch,l=Object(s.useState)(!1),u=l[0],d=l[1],f=Object(s.useState)(""),m=f[0],h=f[1],v=Object(s.useRef)(Object($e.f)()).current,g=c.a.createRef(),b=Object(X.e)(),y=Object(p.a)(r,t).CD4_REVIEW_LIST_VERSION;Object(s.useEffect)(function(){n||h("")},[n]);var _,w=function(){o(),i("").then(function(){h("")}),g.current&&g.current.focus()};function E(e){return Object(ye.a)("review_display.4.0.search."+e[0],a)}var O=c.a.createElement("input",{id:v,readOnly:n,onChange:function(e){h(e.target.value)},onKeyDown:function(e){13===e.keyCode&&i(m)},value:m,type:"search","aria-label":E(n?No():Ro()),placeholder:E(To()),ref:g});return _=y>=1.2?c.a.createElement("div",{className:Wt()("pr-rd-search-reviews-input-flex",{"pr-rd-search-reviews-input--mobile":b<=350})},c.a.createElement("div",{className:"pr-rd-search-reviews-input-field"},c.a.createElement(Hn,{"aria-hidden":"true"}),O,n&&!!m.length&&c.a.createElement("button",{type:"button",onClick:w,className:"pr-rd-search-reviews-clear-button","aria-label":E(Po())},c.a.createElement(jr.a,{"aria-hidden":"true",circleOutline:!1}))),c.a.createElement("button",{type:"button","aria-label":E(Io()),onClick:function(){return i(m)},className:Wt()("pr-rd-search-reviews-icon-button",{"pr-rd-search-filled":m.length,"pr-rd-search-reviews-icon-button--mobile":b<=350}),disabled:n},E(ko()))):c.a.createElement("div",{className:"pr-rd-search-reviews-input"},O,c.a.createElement("button",{type:"button","aria-label":E(xo()),disabled:n,onClick:function(){d(!0),i(m).then(function(){d(!1)})},className:Wt()("pr-rd-search-reviews-icon-button",{"pr-rd-search-filled":m.length})},u?c.a.createElement(Ir.a,{"aria-hidden":"true",isVisible:!0}):c.a.createElement(Hn,{"aria-hidden":"true",invert:!0})),n&&!!m.length&&c.a.createElement("button",{type:"button",onClick:w,className:"pr-rd-search-reviews-clear-button","aria-label":E(jo())},c.a.createElement(jr.a,{"aria-hidden":"true",circleOutline:!1}))),c.a.createElement("section",{className:"pr-rd-search-container"},_)},Do=function(e){var t=e.config,r=e.merchantProperties,n=e.localizations,a=e.totalReviews,i=e.rollup,o=e.sorts,l=e.sortAndFilter,u=e.initialNativeFilter,d=e.features,f=e.reviews,m=e.onClearSearch,h=Object(p.a)(r,t),g=h.PAGE_ID,b=h.ENABLE_REVIEW_FILTERING,y=h.REVIEW_FILTERING_TYPE,_=h.DISABLE_CD4_HEADING_STRUCTURES,w=h.B2C_NATIVE_CONTENT_FILTER,E=Object(I.e)(g,v.e),O=Object(s.useState)(e.filters),S=O[0],C=O[1];Object(s.useEffect)(function(){C(e.filters)},[e.filters]),Object(s.useEffect)(function(){w&&C(function(e){return[].concat(e,[{attribute:"native_only",value:u?"true":"false"}])})},[u,w]);var j="string"==typeof b?"1"===b:b,x=j?"DROPDOWNS"===y?Oo:so:oo;"DROPDOWNS_V2"===y&&(x=ho);var k="DROPDOWNS_V2"===y?0!==S.length?1===a?Object(ye.a)("review_display.4.0.filtering.reviews_relevant_to_filters_singular",n):0===a?Object(ye.a)("review_display.4.0.filtering.no_reviews_relevant_to_filters",n):Object(ye.a)("review_display.4.0.filtering.reviews_relevant_to_filters_plural",n):Object(ye.a)("review_display.4.0.common.read_all_reviews",n):0===S.length?1===a?Object(ye.a)("review_display.4.0.common.reviewed_by_singular",n):Object(ye.a)("review_display.4.0.common.reviewed_by_plural",n):Object(ye.a)("review_display.4.0.search.results_heading",n),P=Object($e.d)(k,a),T=Object($e.h)(P);Object(s.useEffect)(function(){T!==P&&Object($e.g)(P)});var R=Object(no.c)(n,r,t),N=function(e){return E(ro.a[e].sm),l(t,[ro.a[e].apiText],S)},A=function(e,r){var n=S.filter(function(t){return t.attribute!==e||t.value!==r});return"clearFilters"===e&&"clearFilters"===r?l(t,o,[]):(n.length===S.length?(E(I.a.REVIEW_DISPLAY_MSQ_FILTER_APPLIED.replace("{value}",r)),n.push({attribute:e,value:r})):E(I.a.REVIEW_DISPLAY_MSQ_FILTER_REMOVED.replace("{value}",r)),l(t,o,n))},D=c.a.useCallback(function(e){var r=S.filter(function(e){return"search"!==e.attribute});return e.length&&(r.push({attribute:"search",value:e}),E(I.a.REVIEW_DISPLAY_SEARCH_ANSWERS(e))),l(t,o,r)},[t,S,E,l,o]),L=function(e){var r=S.filter(function(e){return"variant"!==e.attribute});return"clearVariantFilters"!==e&&r.push({attribute:"variant",value:e}),l(t,o,r)},M=function(e){var r=S.filter(function(e){return"native_only"!==e.attribute});return r.push({attribute:"native_only",value:e}),l(t,o,r)},F=function(){if(!r.B2C_NATIVE_CONTENT_FILTER)return null;var e=Object(ye.a)("review_display.4.0.filtering.filter_by_source.label",n),t=[{label:Object(ye.a)("review_display.4.0.filtering.filter_by_source.all_reviews",n),value:"false"},{label:Object(ye.a)("review_display.4.0.filtering.filter_by_source.native_reviews",n),value:"true"}];return u&&t.reverse(),c.a.createElement(io,{id:"pr-rd-native-sort",className:"pr-rd-sort-group",optionsLabel:e,accessibleLabel:e,onSortChange:M,sortOptions:t})};return c.a.createElement(x,he()({},e,{msqs:i.properties,onFilterChange:A,onResetFilters:function(e){l(t,o,e)},onSortChange:N,sortOptions:R,reviewedByText:P,disableHeadings:_,search:function(){var e=Object(p.b)("locale",t);if(!(d&&d.search_supported_locales&&d.search_supported_locales.some(function(t){return t===e})))return null;var a=!!S.filter(function(e){return"search"===e.attribute})[0];return c.a.createElement(Ao,he()({config:t,localizations:n,merchantProperties:r,hasSearchFilter:a},{onSearchChange:D,onClearSearch:m}))}(),sortAndVariant:function(){var e=Object(ye.a)("review_display.4.0.sorting.dropdown_aria_label",n),t=Object(ye.a)("review_display.4.0.filtering.all_variants",n),r=Object(ye.a)("review_display.4.0.filtering.filter_by_variant",n),a=Wt()("pr-rd-review-header-sorts",{"pr-rd-main-header-sorts-w-search":"DROPDOWNS"===y});return j?c.a.createElement("div",{className:a},F(),c.a.createElement(io,{id:"pr-rd-sort-by",className:"pr-rd-sort-group",optionsLabel:e,accessibleLabel:e,onSortChange:N,sortOptions:R,showCaretIcon:"DROPDOWNS_V2"===y}),i.variant_names&&c.a.createElement(io,{id:"pr-rd-filter-variant-by",className:"pr-rd-sort-group",optionsLabel:r,accessibleLabel:r,onSortChange:L,defaultOption:{label:t,value:"clearVariantFilters"},sortOptions:i.variant_names.pwrMap(function(e){return{label:e,value:e}})})):null}(),nativeFilter:F(),activeFilters:c.a.createElement(Co,he()({filters:S,config:t,localizations:n,merchantProperties:r},{disableHeadings:_,onFilterChange:A})),noResults:c.a.createElement(c.a.Fragment,null,c.a.createElement("span",{"aria-live":"polite","aria-atomic":"true",className:"pr-accessible-text"},f.length?"":Object(ye.a)("review_display.4.0.search.no_results.header",n)),f.length?null:c.a.createElement("div",null,c.a.createElement("div",{className:"pr-clearfix"}),c.a.createElement("div",{className:"pr-rd-display-search-no-results"},c.a.createElement(K.b,null,c.a.createElement(K.a,{importance:2,shouldUseSpan:_,className:"pr-rd-review-total pr-rd-no-results-msg"},Object(ye.a)("review_display.4.0.search.no_results.header",n))))))}))},Lo=r(214),Mo=function(e){var t=e.config,r=e.merchantProperties,n=e.localizations,a=e.currentPage,i=e.totalPages,o=e.pageSize,s=e.totalReviews,l=e.onShowNext,u=e.onShowPrevious,d=e.onBackToTop,f=Object(p.a)(r,t).REVIEW_DISPLAY_PAGINATION_TYPE,m=1===a,h=a===i,v=Object(ye.a)("review_display.4.0.pagination.back_to_top",n);if("VERTICAL"===f){var g=Object(ye.a)("review_display.4.0.pagination.show_more_reviews",n);return c.a.createElement("footer",{className:"pr-rd-main-footer pr-rd-main-footer-vertical-pagination"},c.a.createElement("div",{className:"pr-rd-content-block"},c.a.createElement("aside",{className:"pr-rd-pagination"},!h&&c.a.createElement("button",{type:"button",className:"pr-rd-show-more pr-btn pr-btn-default","aria-label":g,onClick:l},c.a.createElement(jr.a,{circleOutline:!1,lineStrokeSize:"3"}),g)),c.a.createElement("button",{type:"button",className:"pr-rd-to-top pr-btn pr-btn-default","aria-label":v,onClick:d,onKeyDown:d},v,c.a.createElement(St.a,{circleOutline:!1,lineStrokeSize:"4"}))))}var b=o>1&&s>1?Object(ye.a)("review_display.4.0.pagination.displaying_reviews_plural",n):Object(ye.a)("review_display.4.0.pagination.displaying_review_singular",n),y=Object(ye.a)("review_display.4.0.pagination.previous",n),_=Object(ye.a)("review_display.4.0.pagination.next",n),w=(a-1)*o+1+"-"+Math.min(a*o,s);return c.a.createElement("footer",{className:"pr-rd-main-footer"},c.a.createElement("div",{className:"pr-rd-content-block"},c.a.createElement("p",{className:"pr-rd-review-position"},c.a.createElement("span",null,b+" "),c.a.createElement("span",{className:"pr-rd-bold"},w)),c.a.createElement("a",{href:"#",className:"pr-rd-to-top pr-underline","aria-label":v,onClick:d,onKeyDown:d},v),c.a.createElement("div",{className:"pr-rd-pagination"},!m&&c.a.createElement("a",{href:Object(no.d)(window.location.href,a-1),className:"pr-rd-pagination-btn","aria-label":y,onClick:u},"« ",y),!m&&!h&&c.a.createElement("span",{"aria-hidden":"true"},"|"),!h&&c.a.createElement("a",{href:Object(no.d)(window.location.href,a+1),className:"pr-rd-pagination-btn","aria-label":_,onClick:l},_," »"))))},Fo=function(e){var t=e.config,r=e.merchantProperties,n=e.reviews,a=e.productKey,i=e.productName,o=e.averageRating,u=e.reviewCount,d=Object(_.h)(t,r),f=d.showJSONLD,m=d.useNestedJSONLD,h=Object(s.useState)(function(){var e=document.createElement("div");return e.className="p-w-r",e.setAttribute("data-pr-component","json+ld"),e})[0];Object(s.useEffect)(function(){return document.body&&document.body.appendChild(h),function(){return h.remove()}},[h]);var v=function(e){return Object(l.createPortal)(e,h)};if(!f)return null;var g,b=Object(p.a)(t).SUBJECT;return!0===m?(b=b&&"Product"===(null===(g=b)||void 0===g?void 0:g["@type"])?b:void 0,0===n.length&&null==b?null:0===n.length?v(c.a.createElement(Ye,null,c.a.createElement(De,he()({name:i||a,id:a},b)))):v(c.a.createElement(Ye,null,c.a.createElement(De,he()({name:i||a,id:a},b),c.a.createElement(ke,{ratingValue:o,reviewCount:u}),c.a.createElement(Te,{type:"review"},n.pwrMap(function(e){return c.a.createElement(ze,{key:e.review_id,name:e.details.headline,reviewBody:e.details.comments,datePublished:new Date(e.details.created_date).toISOString()},c.a.createElement(Pe,{name:e.details.nickname}),c.a.createElement(Ne,{name:e.details.location}),c.a.createElement(Me,{ratingValue:e.metrics.rating}))})))))):0===n.length?null:v(c.a.createElement(Ye,null,c.a.createElement(Ge,null,n.pwrMap(function(e){return c.a.createElement(ze,{key:e.review_id,name:e.details.headline,reviewBody:e.details.comments,datePublished:new Date(e.details.created_date).toISOString()},c.a.createElement(Pe,{name:e.details.nickname}),c.a.createElement(Ne,{name:e.details.location}),c.a.createElement(Me,{ratingValue:e.metrics.rating}),c.a.createElement(qe,null,c.a.createElement(De,{name:i,parentID:t.structured_data_product_id||a})))}))))},zo=Fo=c.a.memo(Fo),Vo=r(132),Uo=r(216);r(414);function qo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Wo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qo(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qo(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Bo=function(e){var t=e.config,r=e.localizations,n=e.reviewId,a=e.handleClose,i=e.review,o=e.merchantProperties,l=e.fetchSingleReview,u=Object(ye.a)("review_display.4.0.spotlight_review.heading",r),p=Object(s.useState)(i),d=p[0],f=p[1],m=Object(s.useState)(!1),h=m[0],v=m[1],g=Object(s.useState)(),b=g[0],y=g[1],_=Object(s.useState)(!1),w=_[0],E=_[1],O=Object(s.useState)(),S=O[0],C=O[1],j=Object(s.useState)(),x=j[0],k=j[1],I=Object(s.useState)(),P=I[0],T=I[1],R=Object($e.h)(P),N=Object(s.useRef)();Object(s.useEffect)(function(){var e;null!=i&&(f(i),null===(e=N.current)||void 0===e||e.focus())},[i]),Object(s.useEffect)(function(){var e;R!==P&&(Object($e.g)(P),null===(e=N.current)||void 0===e||e.focus())},[R,P]);var A=c.a.createElement(Vo.a,{config:t,review:d,localizations:r,merchantProperties:o,singleReviewID:Number(n),openFlaggingForm:function(){T(Object(ye.a)("review_display.4.0.flagging_form.heading",r)),v(!0)},isFlagging:h,flaggedContent:b,openOriginalReview:function(){var e=Object(ye.a)("review_display.4.0.spotlight_review.original_review.heading",r);if(Array.isArray(S)&&0!==S.length)return T(e),void E(!0);l(d.details.old_ugc_id).then(function(t){Array.isArray(t.results)&&0!==t.results.length&&(C(Wo(Wo({},t.results[0]),{},{isVisible:!0})),T(e),E(!0))})},openMediaCard:function(e,t){k(Wo(Wo({},e[t]),{},{review_id:n})),T(Object(ye.a)("review_display.4.0.media_card.heading",r))},forwardedRef:N,topContent:c.a.createElement("div",{className:"pr-spotlight-review_heading"},c.a.createElement(K.b,null,c.a.createElement(K.a,{importance:1,className:"pr-spotlight-review_headline",id:"SpotlightReview"},u)),c.a.createElement("div",{className:"pr-spotlight-review_subscript"},"By PowerReviews"))});return w&&(A=c.a.createElement(Vo.a,{config:t,review:S,localizations:r,merchantProperties:o,singleReviewID:d.details.old_ugc_id,showMedia:!1,showFlaggingAndHelpfulVoting:!1,forwardedRef:N,topContent:c.a.createElement("button",{className:"pr-back-to-media",type:"button",onClick:function(){T(u),E(!1)}},Object(ye.a)("review_display.4.0.spotlight_review.back_to_updated_review.button_label",r))})),h&&(A=c.a.createElement(lt.a,{localizations:r,onClose:function(){T(u),v(!1)},onSubmit:function(e){return Object(at.a)(Wo(Wo(Wo({},e),t),{},{merchant_id:t.merchant_id,command:"flagugc",ugc_id:n})).then(function(){v(!1),y([Number(n)])})}})),x&&(A=c.a.createElement("div",{className:"pr-media-carousel--light"},c.a.createElement("div",{className:"carousel__body carousel__body--light"},c.a.createElement("div",{className:"slide slide__center slide--dark"},c.a.createElement(Uo.a,{className:"pr-media-card-in",media:x,readReviewId:n,localizations:r,config:t,merchantProperties:o,enableFlaggingAndVoting:!1,flaggedContent:b||[],helpfulContent:[],unhelpfulContent:[],primarySlide:!0,onReadReviewFromGallery:function(){T(u),k(null)},forwardedRef:N}))))),c.a.createElement("div",{className:"pr-spotlight-review"},c.a.createElement(kn.a,{localizations:r,handleClose:a,isCard:!!h,role:"dialog","aria-labelledby":"SpotlightReview"},A))},Ho=r(60),Ko=r(211),Go=r(212);function Qo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Yo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qo(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qo(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var $o=new Map;var Jo=r(158),Xo=r.n(Jo),Zo=r(201),es=r.n(Zo);function ts(){return(ts=es()(Xo.a.mark(function e(t,r,n){var a,i,o;return Xo.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.init("/m/{merchant_id}/u/{ugc_id}/lang/{targetLanguage}/translate",{ugc_id:r,targetLanguage:n},{_noconfig:!0}),i=a.url,o=a.headers,e.next=3,fetch(i,{method:"POST",headers:o}).then(t.checkStatus).then(function(e){return e.json()});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}r(415);function rs(){var e=Sr()(["review_display.4.0.translation.revert_button"]);return rs=function(){return e},e}function ns(){var e=Sr()(["review_display.4.0.translation.translate_retry"]);return ns=function(){return e},e}function as(){var e=Sr()(["review_display.4.0.translation.error_text"]);return as=function(){return e},e}function is(){var e=Sr()(["review_display.4.0.translation.loading_aria_text"]);return is=function(){return e},e}function os(){var e=Sr()(["review_display.4.0.translation.loading_text"]);return os=function(){return e},e}function ss(){var e=Sr()(["review_display.4.0.translation.translate_button"]);return ss=function(){return e},e}function cs(e){var t=e.onClick,r=e.l,n=e.record,a=e.onLangChange,i=Object(s.useRef)(),o=Object($e.h)(n);return Object(s.useEffect)(function(){if(o!==n&&null!=n){var e,t;if("fulfilled"===n.status)a(),null===(e=i.current)||void 0===e||e.focus();if("error"===n.status)null===(t=i.current)||void 0===t||t.focus()}var r;null!=o&&null==n&&(a(),null===(r=i.current)||void 0===r||r.focus())},[o,n,a]),c.a.createElement("div",{"aria-live":"polite"},c.a.createElement("div",{className:"pr-review-translation"},null==n?c.a.createElement("button",{className:"pr-review-translation__btn",onClick:t,ref:i},r(ss())):"pending"===n.status?c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"pr-review-translation__loading-text","aria-hidden":"true"},r(os())),c.a.createElement("div",{className:"pr-accessible-text"},r(is()))):"rejected"===n.status?c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"pr-review-translation__error-text"},r(as())),c.a.createElement("button",{className:"pr-review-translation__btn",onClick:t,ref:i},r(ns()))):"fulfilled"===n.status?c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"pr-review-translation__arrow"},c.a.createElement(ls,null)),c.a.createElement("button",{className:"pr-review-translation__btn",onClick:t,ref:i},r(rs()))):void 0))}function ls(){return c.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},c.a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M7 16l-4-4m0 0l4-4m-4 4h18"}))}var us=r(110);function ps(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ds(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ps(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ps(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var fs={getReviews:be.p,sortAndFilter:be.v,voteContent:be.w,flagContent:be.o,gotoNextPage:be.s,gotoPreviousPage:be.t},ms=Object(S.b)(function(e,t){var r,n=Object(g.s)(t.config,e.Reviews.localeOverride,e.Reviews.merchantOverride),a=e.Reviews[n]||{},i=Array.isArray(a.reviews)?a.reviews:[];return a&&Object(p.b)("RD_PAGE",t.config)&&(r=a.pagesLoaded,i=a.pagesLoaded===a.totalPages?Array.isArray(a.reviews)?a.reviews.slice(a.reviews.length-(a.totalReviews-a.pageSize*(a.totalPages-1)),a.reviews.length):[]:Array.isArray(a.reviews)?a.reviews.slice(a.reviews.length-a.pageSize,a.reviews.length):[]),ds(ds({},a),{},{productKey:n,flaggedContent:e.Reviews.flaggedContent,helpfulContent:e.Reviews.helpfulContent,unhelpfulContent:e.Reviews.unhelpfulContent,currentPage:r||a.currentPage,allReviews:i,localeOverride:e.Reviews.localeOverride,merchantOverride:e.Reviews.merchantOverride,apiKeyOverride:e.Reviews.apiKeyOverride})},fs)(function(e){var t=e.config,r=e.allReviews,n=e.rollup,a=void 0===n?{}:n,i=e.productKey,o=e.flaggedContent,l=e.helpfulContent,u=e.unhelpfulContent,f=e.voteContent,m=e.flagContent,h=e.currentPage,g=e.totalPages,b=e.totalReviews,y=e.pagesLoaded,w=e.nextPage,E=e.pageSize,O=e.gotoPreviousPage,S=e.gotoNextPage,C=e.localeOverride,j=e.merchantOverride,x=e.isLoading,k=e.reviewsLoaded,P=e.getReviews,T=e.filters,R=Object(s.useContext)(H.a),N=R.merchantProperties,A=R.localizations,D=R.features,L=R.displayApi;j&&A&&(A=e.localizations);var M=Object(s.useState)(!1),F=M[0],z=M[1],V=Object(s.useState)(!1),U=V[0],q=V[1],W=Object(s.useRef)(new Set),B=Object(s.useRef)(new Set),G=Object(p.a)(N,t),Q=G.STAR_STYLES,Y=G.REVIEW_DISPLAY_PAGINATION_TYPE,$=G.EXPERIMENTAL_RENDER_DEFER,J=G.MERCHANT_ID,Z=G.LOCALE,ee=G.PAGE_ID,te=G.RD_PAGE,re=G.SPOTLIGHT_REVIEW_ID,ne=function(e){return Object($e.e)(""+e[0],A)},ae=Array.isArray(T)?T.length:0,ie=Object($e.h)(ae),oe=Object(s.useRef)(!1),se=Object(s.useRef)(!1),ce=Object(s.useCallback)(function(){oe.current=!0},[]),le=Object(I.e)(),ue=Object(s.useMemo)(function(){return"VERTICAL"===Y||Number(te)?r:r.slice((h-1)*E,h*E)},[r,h,E,Y,te]),pe=c.a.useCallback(function(e){return Object(Ho.d)(L,{review_id:e}).then(function(e){return{name:"review",results:null!==e?[].concat(e):[]}})},[L]),de=function(e){var t=e.reviewsLoaded,r=e.reviewId,n=e.reviews,a=e.fetchSingleReview,i=Object(s.useState)(!0),o=i[0],c=i[1],l=Object(s.useState)(function(){return t&&Array.isArray(n)?n.find(function(e){return e.review_id===Number(r)}):null}),u=l[0],p=l[1];return Object(s.useEffect)(function(){if(null!=r&&t&&null==u){var e=!0,i=n.find(function(e){return e.review_id===Number(r)});return i?p(i):a(r).then(function(t){Array.isArray(t.results)&&0!==t.results.length&&e&&p(Wo(Wo({},t.results[0]),{},{isVisible:!0}))}),function(){e=!1}}},[a,r,u,t,n]),{spotlightReviewId:r,spotlightReviewData:u,spotlightReviewShown:!!u&&o,closeSpotlightReview:function(){return c(!1)}}}({reviewId:re,reviewsLoaded:k,reviews:ue,fetchSingleReview:pe}),fe=de.spotlightReviewId,me=de.spotlightReviewData,ve=de.spotlightReviewShown,ge=de.closeSpotlightReview,be=function(e){return function(e,t,r){return ts.apply(this,arguments)}(L,e,Object(ka.b)(t.locale))},ye=function(e){var t=Object(s.useState)({}),r=t[0],n=t[1],a=Object(s.useCallback)(function(t){r[t]&&"fulfilled"===r[t].status?n(function(e){var r=Yo({},e);return delete r[t],r}):$o.has(t)?n(function(e){var r;return Yo(Yo({},e),{},((r={})[t]=$o.get(t),r))}):(n(function(e){var r;return Yo(Yo({},e),{},((r={})[t]={status:"pending"},r))}),e(t).then(function(e){var r=e.results[0].translation_document,a={status:"fulfilled",payload:{translated_headline:r.translated_headline,translated_comments:r.translated_comments}};$o.set(t,a),n(function(e){var r;return Yo(Yo({},e),{},((r={})[t]=a,r))})}).catch(function(e){n(function(r){var n;return Yo(Yo({},r),{},((n={})[t]={status:"rejected",payload:e},n))})}))},[e,r]);return{translations:r,onTranslate:a}}(be=c.a.useCallback(be,[t.locale,L])),_e=ye.translations,we=ye.onTranslate;Object(s.useEffect)(function(){!0===x||k||P(L,t)}),Object(s.useEffect)(function(){if(te&&w){var e=w.replace("paging.from="+E,"paging.from="+(Number(te)-1)*E);S(t,e)}},[E]),Object(s.useEffect)(function(){k&&(le(ee,v.e,I.a.REVIEW_DISPLAY_LOAD),t.on_render&&vt.a.onReviewComponentRender(d.u.ReviewList,e,{review_count:a.review_count,average_rating:a.average_rating}))},[k]);var Ee=a.review_count,Oe=a.average_rating,Se=t.on_change,Ce=t.page_id;Object(s.useEffect)(function(){Se&&k&&vt.a.onReviewComponentChange(d.u.ReviewList,{config:{on_change:Se,page_id:Ce}},{review_count:Ee,average_rating:Oe,reviews:ue})},[ue,Se,Ce,Ee,Oe,k]);var je=Object(s.useRef)(),xe=Object(s.useRef)();Object(s.useEffect)(function(){if(h&&(1!==h||1!==y||Number(te))&&se.current&&(se.current=!1,xe.current)){q(!0),xe.current.focus();var e=setTimeout(function(){q(!1),clearTimeout(e)},500)}},[h,y,te]);var ke=Object(X.e)();if(Object(s.useEffect)(function(){var e=ie!==ae,t=ie>0&&0===ae;!0===oe.current&&e?oe.current=!1:je.current&&t&&je.current.domNode.focus()},[ie,ae]),!k)return c.a.createElement("div",null);var Ie=function(e){e&&e.preventDefault(),le(ee,v.e,I.a.REVIEW_DISPLAY_NEXT_PAGE),se.current=!0,S(t,h===y&&w)},Pe=function(e){if(e&&e.preventDefault(),le(ee,v.e,I.a.REVIEW_DISPLAY_PREV_PAGE),se.current=!0,te){var r=Object(no.a)({pageSize:E,currentPage:h,MERCHANT_ID:J,LOCALE:Z,PAGE_ID:ee});S(t,r)}else O(t)},Te=function(e){if(13===e.keyCode||32===e.keyCode||"click"===e.type){e.preventDefault(),le(ee,v.e,I.a.REVIEW_DISPLAY_BACK_TO_TOP);var r=Object(p.b)("on_back_to_top_click",t);if("function"==typeof r)return r();je.current&&je.current.focus()}},Re=Wt()("pr-review-display",{"pr-review-accessible":"ORANGE_ACCESSIBILITY_COMPLIANT"===Q,"pr-rd-display-desktop":ke>980,"pr-rd-display-tablet":ke<=980&&ke>780});if(!a.review_count&&!ue.length)return a.page_brand_score?null:c.a.createElement(c.a.Fragment,null,c.a.createElement(to,he()({config:t,merchantProperties:N,localizations:A,localeOverride:C,merchantOverride:j},{className:Re})),c.a.createElement(zo,he()({config:t,merchantProperties:N,productKey:i,reviews:ue},{productName:a.name})));var Ne=Object(us.a)(t.locale,N),Ae=Object(ka.b)(t.locale),De=!!$&&!F;return Object(_.h)(t,N).showJSONLD||(De=!1),c.a.createElement(c.a.Fragment,null,ve&&c.a.createElement(Bo,{config:t,reviewId:fe,localizations:A,handleClose:ge,review:me,merchantProperties:N,fetchSingleReview:pe}),c.a.createElement(X.b,{as:"section",id:"pr-review-display","data-testid":"review-list",className:Re,lang:Object(ka.b)(C),onChange:function(e){!F&&e&&ue.length&&(z(!0),le(ee,v.e,I.a.REVIEW_DISPLAY_VISIBLE))}},function(){var r=c.a.createElement(zo,he()({config:t,merchantProperties:N,productKey:i,reviews:ue},{productName:a.name,averageRating:a.average_rating,reviewCount:a.review_count})),n=c.a.createElement(Do,he()({},e,{localizations:A,merchantProperties:N,features:D,reviews:ue,onClearSearch:ce}));return De?c.a.createElement(c.a.Fragment,null,n,r):c.a.createElement(c.a.Fragment,null,n,c.a.createElement(K.b,null,ue.pwrMap(function(e,r){var n,s,p=e.ugc_id,d=Object(ka.b)(e.details.locale),g=_e[p],b="fulfilled"===(null===g||void 0===g?void 0:g.status),y=b?g.payload.translated_comments:(null===e||void 0===e?void 0:null===(n=e.highlights)||void 0===n?void 0:null===(s=n.details)||void 0===s?void 0:s.text)||e.details.comments,_=b?g.payload.translated_headline:e.details.headline,w=Ne&&Ae!==d,O=function(e,t){e.current.has(p)||(e.current.add(p),le(ee,v.e,t))};return c.a.createElement(X.b,{onChange:function(e){e&&(O(W,I.a.REVIEW_DISPLAY_VISIBLE_INDIVIDUAL(p)),w&&O(B,I.a.REVIEW_TRANSLATE_VIEWED(p)))},disabled:U,key:e.ugc_id},function(n){var s;return c.a.createElement(Lo.a,he()({ref:function(e){0===r&&(je.current=e),"VERTICAL"===Y?r===(h-1)*E&&(xe.current=e):0===r&&(xe.current=e),n.current=null===e||void 0===e?void 0:e.domNode},headline:c.a.createElement(Ko.a,{headline:_,rating:e.metrics.rating,reviewId:e.review_id,localizations:A,lang:d}),comments:c.a.createElement(Go.a,{comments:y,lang:d}),key:e.review_id,reviewTranslation:w?c.a.createElement(cs,{onClick:function(){we(p),le(ee,v.e,b?I.a.REVIEW_TRANSLATE_ORIGINAL(p):I.a.REVIEW_TRANSLATE(p))},record:g,l:ne,onLangChange:function(){return Object($e.g)(_,y)}}):null},{review:e,config:t,localizations:A,merchantProperties:N,sendBeacon:le,flaggedContent:o,helpfulContent:l,unhelpfulContent:u,voteContent:f,productKey:i,flagContent:m,propertiesByKey:(null===(s=a.properties)||void 0===s?void 0:s.pwrReduce(function(e,t){return e[t.key]=t,e},{}))||{}}))})})),!!ue.length&&c.a.createElement(Mo,he()({config:t,merchantProperties:N,localizations:A,features:D,currentPage:h,totalPages:g,totalReviews:b,pageSize:E},{onShowNext:Ie,onShowPrevious:Pe,onBackToTop:Te})),r)}()))});function hs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function vs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hs(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hs(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var gs=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,o()(ge()(t),"onRender",function(){t.props.config.on_render&&vt.a.onReviewComponentRender(d.u.ReviewDisplay,t.props,{review_count:t.props.rollup.review_count,average_rating:t.props.rollup.average_rating})}),t}O()(t,e);var r=t.prototype;return r.componentDidMount=function(){var e=this.props,t=e.isLoading,r=e.config,n=e.getReviews,a=e.reviewsLoaded,i=e.displayApi;"boolean"!=typeof t&&n(i,r),a&&this.onRender()},r.componentDidUpdate=function(e){var t=this.props.reviewsLoaded;e.reviewsLoaded!==t&&!0===t&&this.onRender()},r.render=function(){return c.a.createElement("section",{key:this.props.redrawKey,id:"pr-review-display-"+this.props.config.page_id,"data-testid":"review-display"},c.a.createElement("span",{tabIndex:"-1",className:"pr-accessible-focus-element",id:"review-display-focus-target","aria-hidden":"true"}),c.a.createElement(Aa,{config:this.props.config,type:this.props.type}),c.a.createElement(Xi,{config:this.props.config,type:this.props.type}),c.a.createElement(ms,{config:this.props.config,type:this.props.type}))},t}(c.a.Component),bs={getReviews:be.p},ys=Object(S.b)(function(e,t){var r=Object(g.s)(t.config),n=e.Reviews[r]||{};n.merchantProperties,n.localizations,n.features;return vs(vs({},a()(n,["merchantProperties","localizations","features"])),{},{redrawKey:e.Redraw.redrawKey})},bs)(function(e){var t=Object(s.useContext)(H.a),r=t.merchantProperties,n=t.localizations,a=t.displayApi;return c.a.createElement(gs,he()({},e,{displayApi:a,merchantProperties:r,localizations:n}))}),_s={key:d.u.ReviewDisplay,dataRequirements:f.AggregateAndDetails,type:v.i.REVIEW_DISPLAY,component:ys},ws={key:d.u.ReviewImageDisplay,dataRequirements:f.AggregateAndDetails,type:v.i.RID,component:Aa},Es={key:d.u.ReviewList,dataRequirements:f.AggregateAndDetails,type:v.i.REVIEW_LIST,component:ms},Os={key:d.u.ReviewSnapshot,dataRequirements:f.AggregateAndDetails,type:v.i.REVIEW_SNAPSHOT,component:Xi};r(416);function Ss(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Cs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ss(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ss(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var js,xs,ks=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=e.call.apply(e,[this].concat(n))||this,o()(ge()(t),"state",{wasVisible:!1}),o()(ge()(t),"onRender",function(){t.props.config.on_render&&vt.a.onReviewComponentRender(d.u.ReviewSnippet,t.props,{review_count:t.props.rollup.review_count,average_rating:t.props.rollup.average_rating})}),o()(ge()(t),"onVisibilityChange",function(e){e&&!t.state.wasVisible&&t.props.sendBeacon(t.props.config.page_id,v.g,I.a.REVIEW_SNIPPET_VISIBLE)}),t}O()(t,e);var r=t.prototype;return r.componentDidMount=function(){var e,t,r=this.props,n=r.isLoading,a=r.config,i=r.getReviews,o=r.getSnippets,s=r.snippetLoaded,c=r.displayApi;("boolean"!=typeof n&&(a.batched_page_ids?o(c,a):i(c,a)),s)&&(null===(e=(t=this.props).onLoad)||void 0===e||e.call(t),this.onRender())},r.componentDidUpdate=function(e){var t,r,n=this.props.snippetLoaded;e.snippetLoaded!==n&&!0===n&&(null===(t=(r=this.props).onLoad)||void 0===t||t.call(r),this.onRender())},r.render=function(){var e=this.props,t=e.snippetLoaded,r=e.rollup,n=(r=void 0===r?{}:r).productName,a=r.properties,i=void 0===a?[]:a,o=r.recommended_ratio,s=r.review_count,l=r.average_rating,u=e.merchantProperties,d=void 0===u?{}:u,f=e.config,m=void 0===f?{}:f,h=e.localizations,v=e.productKey,g=e.localeOverride,b=e.merchantOverride;if(!t)return c.a.createElement("div",null);var y,w=Object(_.h)(m,d),E=w.showJSONLD,O=w.useNestedJSONLD,S=Object(p.a)(d,m),C=S.ENABLE_REVIEW_SNIPPET_SLIDER,j=S.STAR_STYLES,x=i.filter(function(e){return"histogram"===e.display_type&&("sizing"===e.key||"size"===e.key||"fit"===e.key)})[0];x&&(y=x.display_values.pwrMap(function(e,t){var r=x.values.filter(function(t){return t.label===e})[0];return r?Cs(Cs({},r),{},{position:t}):{label:e,count:0,position:t}}));var k=E&&0!==s?O?null:c.a.createElement(Ye,null,c.a.createElement(ke,{ratingValue:l,reviewCount:s},c.a.createElement(qe,null,c.a.createElement(De,{name:n||v,parentID:m.structured_data_product_id})))):null;return c.a.createElement(X.b,{as:"section",onChange:this.onVisibilityChange,"data-testid":"review-snippet",className:"pr-review-snippet-container "+(s?"":"pr-no-reviews"),lang:Object(ka.b)(g)},c.a.createElement(Wa,{ratingValue:l||0,recommendedPercent:o?100*o:0,reviewCount:s,localizations:h,merchant_properties:d,config:m,productKey:v,isCountLinkEnabled:s>0,starStyles:j,localeOverride:g,merchantOverride:b}),C&&x&&c.a.createElement("div",{className:"pr-snippet-slider-root"},c.a.createElement("div",{className:"pr-snippet-title"},x.name||"Size"),c.a.createElement(di,{className:"pr-snippet-slider",minText:x.display_values[0],maxText:x.display_values[x.display_values.length-1],selected:Object(_.b)(y),selectedLabel:Object(_.a)(y)})),k)},t}(s.Component),Is={getReviews:be.p,getSnippets:be.r},Ps=Object(S.b)(function(e,t){var r=Object(g.s)(t.config,e.Reviews.localeOverride,e.Reviews.merchantOverride);return Cs(Cs({},e.Reviews[r]||{}),{},{productKey:r,localeOverride:e.Reviews.localeOverride,merchantOverride:e.Reviews.merchantOverride})},Is)(function(e){var t=Object(s.useContext)(H.a),r=t.merchantProperties,n=t.localizations,a=t.features,i=t.displayApi;e.merchantOverride&&e.localizations&&(n=e.localizations);var o=Object(I.e)();return c.a.createElement(ks,he()({},e,{displayApi:i,sendBeacon:o,merchantProperties:r,localizations:n,features:a}))}),Ts={key:d.u.ReviewSnippet,dataRequirements:f.Aggregate,type:v.i.REVIEW_SNIPPET,component:Ps},Rs=r(215),Ns={key:d.u.ReviewYourPurchases,type:v.i.RYP,component:Rs.a},As=r(273),Ds={key:d.u.SellerRatings,type:v.i.SRW,component:As.a},Ls=r(156),Ms=[{key:d.u.WriteAQuestion,type:v.i.WAQWAA,component:Ls.a},{key:d.u.WriteAnAnswer,type:v.i.WAQWAA,component:Ls.a}],Fs=r(151),zs={key:d.u.WriteAReview,type:v.i.WAR,component:Fs.a},Vs=r(157);switch(Object(g.r)().appName){case"askQuestion":case"answerQuestion":js=v.i.WAQWAA,xs=Ls.a;break;case"ryp":js=v.i.RYP,xs=Rs.a;break;default:js=v.i.WAR,xs=Vs.default}var Us={key:d.u.Write,type:js,component:xs},qs=r(272),Ws={key:d.u.WhydYouBuy,type:v.i.WYB,component:qs.a},Bs=r(153),Hs=r(269),Ks=r(268),Gs=function(e){var t=e.answer,r=e.localizations,n="";if(t.identifiers.created_date){var a={day_ago:Object(ye.a)("review_display.4.0.common.day_ago",r),days_ago:Object(ye.a)("review_display.4.0.common.days_ago",r),months_ago:Object(ye.a)("review_display.4.0.common.months_ago",r),years_ago:Object(ye.a)("review_display.4.0.common.years_ago",r)};n=Object(g.v)(t.identifiers.created_date,a)}var i=t.details.author_nickname?c.a.createElement("p",{className:"pr-wyb-answer-name"},t.details.author_nickname):null;return c.a.createElement("article",{className:"pr-wyb-col"},c.a.createElement(Ks.a,null),c.a.createElement("div",{className:"pr-wyb-answer-container"},c.a.createElement("p",{className:"pr-wyb-answer"},""+t.details.text),c.a.createElement("div",{className:"pr-wyb-answer-info"},i,t.identifiers.created_date&&c.a.createElement("p",{className:"pr-wyb-answer-date"},n))))};function Qs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ys(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qs(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qs(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var $s=Object(S.b)(function(e){return e},null,function(e,t,r){var n=Object(g.s)(r.config),a=e.Answers[n];return Ys(Ys(Ys(Ys({},t),r),e),{},{data:a,currentContainerClass:e.Answers.currentContainerClass,currentIndex:e.Answers.currentIndex,localizations:e.Answers.localizations})})(function(e){if(!e.data||!e.data.results||e.data.isQuerying)return c.a.createElement("div",{className:"pr-wyb-empty"});for(var t=[],r=0,n=e.data.results.length;r<n;r++)t.push(c.a.createElement(Gs,{config:e.config,type:e.type,answer:e.data.results[r],localizations:e.localizations}));return c.a.createElement(X.c,{sizes:[{name:"pr-wyb-slider-large",width:980},{name:"pr-wyb-slider-medium",width:780},{name:"pr-wyb-slider-small",width:1}],callback:function(t){return e.dispatch(Object(Bs.c)(t))}},c.a.createElement("section",{key:e.currentContainerClass,className:"pr-wyb-display"},c.a.createElement(K.a,{importance:1,className:"pr-wyb-headline"},"Why did you buy?"),c.a.createElement("div",{className:"pr-wyb-display-wrapper row"},c.a.createElement(Hs.a,{localizations:{},key:"slider-3",slides:t,slideMax:function(e){var t=3;return"pr-wyb-slider-medium"===e&&(t=2),"pr-wyb-slider-small"===e&&(t=1),t}(e.currentContainerClass),slideTraversalAmount:1,slideWidth:300,cssTransition:!0,clickNextCallback:function(t){return function(t){return e.dispatch(Object(Bs.d)(t))}(t)},clickPreviousCallback:function(t){return e.dispatch(Object(Bs.e)(t))}}))))});function Js(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Xs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Js(Object(r),!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Js(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Zs=function(e){function t(){return e.apply(this,arguments)||this}O()(t,e);var r=t.prototype;return r.componentDidMount=function(){var e=Object(g.s)(this.props.config);this.props.Answers[e]&&this.props.Answers[e].isQuerying||this.props.dispatch(Object(Bs.b)(this.props.config,{current_page:1,sorts:[{type:"created_date",order:"desc"}]}))},r.render=function(){return c.a.createElement($s,{config:this.props.config,type:this.props.type})},t}(c.a.Component),ec=Object(S.b)(function(e){return e},null,function(e,t,r){return Xs(Xs(Xs({},t),r),e)})(Zs),tc={key:d.u.WhydYouBuyDisplay,dataRequirements:f.AggregateAndDetails,type:v.i.WYB_DISPLAY,component:ec},rc=r(199);var nc={getReviews:be.p},ac=Object(S.b)(function(e,t){var r=Object(g.s)(t.config);if(e.Reviews[r]){var n=e.Reviews[r];return{isLoading:n.isLoading,rollup:n.rollup}}return{}},nc)(function(e){var t=e.config,r=e.isLoading,n=e.rollup,a=Object(s.useContext)(H.a).displayApi;if(Object(s.useEffect)(function(){"boolean"!=typeof r&&Object(be.p)(a,t)}),!Array.isArray(null===n||void 0===n?void 0:n.properties))return null;var i=n.properties.find(function(e){var t=e.display_type,r=e.key;return"histogram"===t&&("sizing"===r||"size"===r||"fit"===r)});return i?c.a.createElement("div",{"data-testid":"size-fit-snippet"},c.a.createElement(rc.a,{msqData:i,labelPosition:"bottom"})):null}),ic={key:d.u.SizeFitSnippet,dataRequirements:f.Aggregate,type:v.i.SIZEFIT_SNIPPET,component:ac};de([_s,Es,Os,Ts,_a,xa,zs].concat(Ms,[Us,Ns,Ds,Ws,tc,ws,wt,fe,rt,yn,ic]))}]);