1"use strict";(self.webpackChunksocialUX=self.webpackChunksocialUX||[]).push([[1671],{8216:function(t,e,r){function n(){return Promise.all([r.e(6955),r.e(4431)]).then(r.bind(r,4431)).then((function(t){return t.default}))}function o(t){return Promise.all([r.e(6955),r.e(4431)]).then(r.bind(r,4431)).then((function(e){return e.default(t||{})}))}r.d(e,{A:function(){return o},C:function(){return n}})},6471:function(t,e,r){function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o=(0,r(2452).A)((function(t,e){if("object"===n(e))return(Array.isArray(t)?t:[t]).reduce((function(t,e){return t&&t[e]?t[e]:void 0}),e)}));e.A=o},8358:function(t,e,r){r.d(e,{F:function(){return u},O:function(){return i}});var n=r(5874),o="/core/feeds/avatar/";function i(t){return(0,n.af)(o,"POST",{logo:t})}function u(t){var e=new FormData;return e.append("logo",t),(0,n.MF)(o,"POST",e)}},8196:function(t,e,r){r.d(e,{a:function(){return c},v:function(){return l}});var n=r(5874);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t){return"/core/feeds/site/".concat(t)}function c(t){return(0,n.mQ)(a(t),"GET")}function l(t,e){return(0,n.af)(a(t),"PUT",function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({id:t},e))}},3912:function(t,e,r){r.d(e,{U5:function(){return a},Vy:function(){return u},h1:function(){return i}});var n=r(5874);function o(t){return t?"?voter_id=".concat(t):""}function i(t,e,r){return(0,n.mQ)(function(t,e,r){return r=o(r),"/core/v1.1/sites/".concat(t,"/posts/").concat(e,"/poll").concat(r)}(t,e,r))}function u(t,e,r,i){return(0,n.af)(function(t,e,r){return r=o(r),"/core/v1.1/sites/".concat(t,"/posts/").concat(e,"/poll/votes").concat(r)}(t,e,r),"POST",i)}function a(t){return(0,n.mQ)("/core/v1/polls/post:".concat(t,":comments:reviews"))}},115:function(t,e,r){function n(t,e){var r,n=null;return function(){for(var o=!0,i=arguments.length,u=new Array(i),a=0;a<i;a++)u[a]=arguments[a];null!=n&&(o=t.apply(null,n.concat(u))),n=u,o&&(r&&(r(),r=null),r=e.apply(null,u))}}r.d(e,{A:function(){return n}})},5520:function(t,e,r){r.d(e,{A:function(){return i}});var n=r(3990),o=(0,r(2452).A)((function(t,e,r,n,o){return n().then((function(e){return e(t)})).then((function(t){return t(e,r,o)}))}));function i(t,e,r,i){var u=t in window.RM_OVERRIDES?window.RM_OVERRIDES[t]:null,a=u||i;return(0,n.A)().then((function(t){var n=o(t,e,r),c=u?function(){return n(i,null)}:null;return n(a,c).then((function(e){return[t,e]}))}))}},1580:function(t,e,r){r.d(e,{U:function(){return o}});var n=r(2452),o=(0,n.A)((function(t,e,r,n,o){r.classList.add("loaded","rm-preact");var i=t.preact.h(e,n);return t.preact.render(i,r,o)}));e.A=(0,n.A)((function(t,e,r,n){return o(t,e,r,n,null)}))},4587:function(t,e,r){r.d(e,{p:function(){return o},x:function(){return u}});var n=r(6471);function o(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=[];return Object.keys(e).forEach((function(u){var a=t[u],c=(0,n.A)("message")(e[u])||e[u];((0,n.A)("validation")(e[u])||i(r))(a)||o.push(c)})),o}var i=function(t){return function(e){return!(t&&!e||null==e)}},u=function(t){return t&&/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())}},1671:function(t,e,r){r.r(e),r.d(e,{default:function(){return Ue}});var n=r(115),o=r(2175),i=r(8359),u=r(406),a=r(5520),c=function(t){var e=l(t);document.body.appendChild(e);var r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):"";s(e),document.body.removeChild(e),r&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r))},l=function(t){var e=document.createElement("textarea");return e.value=t,e.setAttribute("readonly",""),e.style.position="absolute",e.style.left="-9999px",e},s=function(t){t.select(),document.execCommand("copy")},f=r(2104),m=function(){return r.e(2210).then(r.bind(r,2210)).then((function(t){return t.default}))},d=r(2452),p=r(1580),y=r(8216);function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var b=(0,d.A)((function(t,e,r){var n,o,i=(o=2,function(t){if(Array.isArray(t))return t}(n=t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){l=!0,o=t}
1finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(n,o)||function(t,e){if(t){if("string"==typeof t)return v(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(t,e):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=i[0],a=i[1];(0,p.U)(u,a,e,r,e.children[0])})),h=function(){return r.e(2059).then(r.bind(r,2059)).then((function(t){return t.default}))};function g(t,e,r,n){return(0,a.A)("NativeTalkCommentBox",t,{layoutStatus:e,showRating:r,editorLoader:y.A,Review:n},h)}function O(t){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(t)}function S(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function A(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=O(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==O(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var j=(0,d.A)((function(t,e,r,n,o){var i,u,a=(u=2,function(t){if(Array.isArray(t))return t}(i=t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(i,u)||function(t,e){if(t){if("string"==typeof t)return w(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(t,e):void 0}}(i,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=a[0],l=a[1];n&&(r.textContent=""),(0,p.A)(c,l,r,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?S(Object(r),!0).forEach((function(e){A(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({comments:o,shouldDisable:!1},e))})),C=function(){return r.e(9543).then(r.bind(r,9543)).then((function(t){return t.default}))};function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var k=(0,d.A)((function(t,e,r){var n,o,i=(o=2,function(t){if(Array.isArray(t))return t}(n=t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(n,o)||function(t,e){if(t){if("string"==typeof t)return P(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(t,e):void 0}}
1(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=i[0],a=i[1];(0,p.A)(u,a,e,r)})),I=function(){return r.e(9912).then(r.bind(r,9912)).then((function(t){return t.default}))};function _(t){return(0,a.A)("NativeTalkLoadMore",t,{},I)}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var L=(0,d.A)((function(t,e,r){var n,o,i=(o=2,function(t){if(Array.isArray(t))return t}(n=t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(n,o)||function(t,e){if(t){if("string"==typeof t)return E(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(t,e):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=i[0],a=i[1];(0,p.A)(u,a,e,r)})),R=function(){return r.e(7755).then(r.bind(r,7755)).then((function(t){return t.default}))};function T(t){return(0,a.A)("NativeTalkReorder",t,{},R)}var x=function(){return r.e(3869).then(r.bind(r,3869)).then((function(t){return t.default}))};function D(t){return(0,a.A)("NativeTalkReview",t,{},x)}function U(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var M=(0,d.A)((function(t,e,r){var n,o,i=(o=2,function(t){if(Array.isArray(t))return t}(n=t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(n,o)||function(t,e){if(t){if("string"==typeof t)return U(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?U(t,e):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=i[0],a=i[1];e&&(e.classList.remove("hidden"),(0,p.A)(u,a,e,r))})),N=function(){return r.e(7151).then(r.bind(r,7151)).then((function(t){return t.default}))};function B(t,e){return(0,a.A)("NativeTalkPostReview",t,{Review:e},N)}function q(t,e){t.children.length||t.appendChild(e.cloneNode(!0))}var F=r(6471),$=r(5874),Q=r(4587);function J(t){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},J(t)}function V(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function z(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?V(Object(r),!0).forEach((function(e){G(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function G(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=J(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=J(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==J(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var X={order:"oldest",limit:10,offset:0,mode:"public"}
1,Z=function(t){var e=z(z({},X),t),r=e.siteId,n=e.postId,o=e.messageId,i=e.order,u=e.offset,a=e.limit,c=e.excludedIds,l=e.mode,s=o?"/".concat(o,"/replies"):"",f="order=".concat(i,"&limit=").concat(a,"&offset=").concat(u,"&mode=").concat(l);return f+=c?"&excluded_ids=".concat(c):"","/core/v1/sites/".concat(r,"/talks/post:").concat(n,":comments/messages")+"".concat(s,"?").concat(f)};function K(t){var e=t.siteId,r=t.postId,n=t.messageId;return"/core/v1/sites/".concat(e,"/talks/post:").concat(r,":comments/messages/").concat(n,"/reactions")}function H(t){var e=(0,Q.p)(t,{siteId:"missing siteId",postId:"missing postId"});if(e.length>0)return Promise.reject(e);var r=Z(t);return(0,$.mQ)(r).then((function(e){var r=t.limit||X.limit;return[e,{offset:(t.offset||0)+r,limit:r}]}))}function W(t,e,r,n){return(0,$.mQ)(function(t,e,r,n){return"/core/v1/sites/".concat(t,"/talks/post:").concat(e,":comments?include=featured-messages,authors,reactions,replies,poll,bans&order=").concat(r,"&limit=").concat(n)}(t,e,r,n),"GET")}var Y=r(3912),tt=r(8358),et=r(8196),rt=r(7107),nt=r(6044);function ot(t){return ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot(t)}var it=["author_id"],ut=["author_id"],at=["authors","disabled","review","replies"];function ct(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(t,e)||dt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function st(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lt(Object(r),!0).forEach((function(e){ft(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ft(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=ot(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=ot(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ot(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mt(t){return function(t){if(Array.isArray(t))return pt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||dt(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dt(t,e){if(t){if("string"==typeof t)return pt(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pt(t,e):void 0}}function pt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function yt(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var vt={featuredComments:[],forcedComments:[],topLevelComments:[],disabled:!1,review:{poll:{reactions:{rating:{stars:{count:0,total:0}}}},vote:{reactions:{rating:{stars:!1}}}}};function bt(t,e){return t.reduce((function(t,r){return t[r[e]]=r,t}),{})}function ht(t){var e=t.parents;return e&&e.length?Array.isArray(e)?e:e.split(","):[]}function gt(t,e,r,n,o,i){var u=function(t,e){return e.forEach((function(e){e.author_id in t&&(t[e.author_id].isBanned=!0)})),t}(r,i),a=bt(o,"message_id");return n.map((function(r){var n=r.author_id,o=yt(r,it),i=[].concat(mt(ht(o)),[o.id]).join(","),c="".concat(t,"?messageid=").concat(e,":").concat(i,"#comment-").concat(o.id),l=encodeURIComponent(c),s=a[o.id]?a[o.id].reaction:null;return st(st({},o),{},{author_id:n,shareUrl:c,encodedUrl:l,reaction:s,replies:[],author:u[n]||o.author})}))}function Ot(t,e){var r=Object.assign({},(function(t){if(null==t)throw new TypeError("Cannot destructure "+t)}(e),e)),n=ft({},t.owner_id,t);return Object.entries(r).reduce((function(t,e){var r=ct(e,2),o=r[0],i=r[1];return t[o]=function(t,e){return e.map((function(e){var r=e.author_id,n=yt(e,ut);return st(st({},n),{},{author_id:r,author:t[r]||n.author})}))}(n,i),t}),{})}function St(t){var e=bt(t,"id"),r=[];return t.forEach((function(t){if(e[t.id]===t){var n=ht(t);if(n.length){var o=e[n[0]];o&&o.replies.push(t)}else r.push(t)}})),r}var At=(0,d.A)((function(t,e){var r=t.querySelector('script[type="rm-preact-state"]');r&&(r.textContent=JSON.stringify(e))}));function wt(t,e,r,n,o,i){return gt(e,t,bt(r,"owner_id"),n,o,i)}function jt(t,e,r){var n=r.authors,o=r.messages,i=r.replies,u=r.reactions||[],a=r.bans||[],c=wt(t,e,n,o,u,a),l=wt(t,e,n,i,u,a);return St([].concat(mt(c),mt(l)))}function Ct(t,e,r){return wt(t,e,r.authors,[r.message],r.reactions,r.bans||[])}function Pt(t,e,r){return r.map((function(r){return r.replies.length&&(r.replies=Pt(t,e,r.replies)),r.author_id===e?st(st({},r),{},{status:t}):st({},r)}))}function kt(t,e,r){return["featuredComments","forcedComments","topLevelComments"].reduce((function(r,n){return r[n]=Pt(t,e,r[n]),r}),st({},r))}var It=["talk"],_t=["talk"];function Et(t){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(t)}function Lt(t){return Bt(t)||xt(t)||Mt(t)||Ut()}function Rt(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Tt(t){return function(t){if(Array.isArray(t))return Nt(t)}(t)||xt(t)||Mt(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xt(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Dt(t,e){return Bt(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){l=!0,o=t}
1finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(t,e)||Mt(t,e)||Ut()}function Ut(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Mt(t,e){if(t){if("string"==typeof t)return Nt(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Nt(t,e):void 0}}function Nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Bt(t){if(Array.isArray(t))return t}function qt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ft(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qt(Object(r),!0).forEach((function(e){$t(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function $t(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=Et(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=Et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Et(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Qt={onFeatureClick:rt.A,onApproveClick:rt.A,onRejectClick:rt.A,onAuthorRate:rt.A},Jt={onToggleBan:rt.A},Vt={onReplyClick:rt.A,onPublishClick:rt.A,onCommentBoxClick:rt.A,onDislikeClick:rt.A,onLikeClick:rt.A,onNewAvatar:rt.A};function zt(t,e,r){return H(Ft(Ft({},t),{},{order:e,offset:r||0}))}function Gt(t,e){var r,n,o,i,u;return t.find((function(t,a){if(t.id===e)return r=t,o=a,!0;if(t.replies.length){var c=Gt(t.replies,e);if(c){i=!0,n=t,u=a;var l=Dt(c,2);return r=l[0],o=l[1],!0}}}))?[r,o,i,n,u]:null}function Xt(t,e,r,n,o,i){var u=t,a=r;if(n){var c=o.replies.slice(0,a),l=o.replies.slice(a+1);o.replies=[].concat(Tt(c),[u],Tt(l)),a=i,u=Ft({},o)}var s=e.slice(0,a),f=e.slice(a+1);return[].concat(Tt(s),[u],Tt(f))}function Zt(t,e,r){return function(n,o,i,u){var a=o[i],c=Gt(a,u);if(!c)return Promise.resolve(o);var l=Dt(c,1)[0];return!r&&l.replies.length>=10?Promise.resolve(o):function(t,e,r){return n=Ft(Ft({},t),{},{messageId:e,offset:r||0}),(o=(0,Q.p)(n,{messageId:"missing messageId"})).length>0?Promise.reject(o):H(n);var n,o}(n,u,l.replies.length).then((function(r){var n=Dt(r,1)[0];return function(t,e,r){return wt(t,e,r.authors,r.replies,r.reactions||[],r.bans||[])}(t,e,n)})).then((function(t){!function(t,e){var r=Dt(t,4),n=r[0],o=r[1],i=r[2],u=r[3];if(i){var a=u.replies.slice(0,o),c=u.replies.slice(o);return u.replies=[].concat(Tt(a),Tt(e),Tt(c)),u}n.replies=[].concat(Tt(n.replies),Tt(e))}(c,t)})).then((function(){return Ft(Ft({},o),{},$t({},i,Tt(a)))}))}}function Kt(t,e){return function(r,n,o,i){return zt(r,i,0).then((function(r){var i=Dt(r,1)[0],u=i.talk,a=Rt(i,It),c=jt(t,e,a);return[Ft(Ft({},n),{},$t({},o,c)),u.counts]}))}}function Ht(t,e){return function(r,n,o,i){var u=n[o];return zt(r,i,u.length).then((function(r){var i=Dt(r,1)[0],a=i.talk,c=Rt(i,_t),l=jt(t,e,c),s=[].concat(Tt(u),Tt(l));return[Ft(Ft({},n),{},$t({},o,s)),a.counts]}))}}function Wt(t,e,r){return function(n,o,i,u){var a=o[i],c=Gt(a,u);if(!c)return Promise.resolve(o);var l,s,f,m=Lt(c),d=m[0],p=m.slice(1),y=Ft(Ft({},n),{},{messageId:u});return d.reaction===r?(s=y,l=(f=(0,Q.p)(s,{siteId:"missing siteId",postId:"missing postId",messageId:"missing messageId"})).length>0?Promise.reject(f):(0,$.mQ)(K(s),"DELETE")):l=function(t,e){var r=(0,Q.p)(t,{siteId:"missing siteId",postId:"missing postId",messageId:"missing messageId"});return r.length>0?Promise.reject(r):(0,$.af)(K(t),"POST",z(z({},t),{},{reaction:e}))}(y,r),l.then((function(r){return Ct(t,e,r)})).then((function(t){var e=t[0],r=Xt.apply(void 0,[e,a].concat(Tt(p)));return Ft(Ft({},o),{},$t({},i,r))}))}}function Yt(t){return function(e,r,n,o){var i=r[n],u=Gt(i,o);if(!u)return Promise.resolve(r);var a=Lt(u),c=a[0],l=a.slice(1);return c.status===t?Promise.resolve(r):function(t,e){var r,n,o,i=(0,Q.p)(t,{siteId:"missing siteId",messageId:"missing messageId"});return i.length>0?Promise.reject(i):(0,$.af)((n=(r=t).siteId,o=r.messageId,"/core/v1/sites/".concat(n,"/talks/dashboard/messages?ids=").concat(o)),"POST",{ids:t.messageId,changes:[{status:e}]})}(Ft(Ft({},e),{},{messageId:o}),t).then((function(){var e=Xt.apply(void 0,[Ft(Ft({},c),{},{status:t}),i].concat(Tt(l)));return Ft(Ft({},r),{},$t({},n,e))}))}}function te(t,e,r,n){var o=Gt(t[e],r);if(!o)return Promise.resolve(t);var i,u,a=Dt(o,1)[0].author;return(i=a.id,u=n,(0,$.af)("/core/feeds/rating/".concat(i),"PUT",{id:i,rating:u})).then((function(e){var r=e.rating,n=t.topLevelComments,o=t.featuredComments,i=t.forcedComments;return Ft(Ft({},t),Ot(Ft(Ft({},a),{},{rating:r}),{topLevelComments:n,featuredComments:o,forcedComments:i}))}))}function ee(t){return function(e,r,n,o){var i=Gt(r[n],o);if(!i)return Promise.resolve(r);var u=Dt(i,1)[0].author,a=u.owner_id;return new Promise((function(n){(0,nt.A)(t,{title:"User Actions",body:"Are you sure you want to ".concat(u.isBanned?"unban":"ban"," the user?"),negativeAction:{label:"Cancel",callback:function(){return n(r)}},possitiveAction:{label:"OK",callback:function(){return t=n,(l=u.isBanned)?(i=e.siteId,c=a,o=(0,$.af)(function(t,e){return"/core/v1/sites/".concat(t,"/talks/bans/").concat(e)}
1(i,c),"DELETE",{author_id:c})):o=function(t,e,r){return(0,$.af)(function(t){return"/core/v1/sites/".concat(t,"/talks/bans")}(t),"POST",{author_id:e,messages:"hide"})}(e.siteId,a),void o.then((function(){var t=r.topLevelComments,e=r.featuredComments,n=r.forcedComments;return Ft(Ft({},r),Ot(Ft(Ft({},u),{},{isBanned:!l}),{topLevelComments:t,featuredComments:e,forcedComments:n}))})).then((function(t){return l?t:kt("rejected",u.owner_id,t)})).then(t);var t,o,i,c,l}}})}))}}function re(t,e){return{onOrderChange:Kt(t,e),loadMoreComments:Ht(t,e),onShowMore:Zt(t,e,!0),onShowReplies:Zt(t,e,!1)}}function ne(t,e){return Ft(Ft(Ft(Ft({},re(t,e)),Vt),Qt),Jt)}function oe(t,e){return function(r,n,o,i){var u=n.topLevelComments,a=n.review.vote,c=n.review.poll,l="reactions"in a&&"rating"in a.reactions&&a.reactions.rating.stars,s=l?null:o;return function(t,e,r,n){var o,i={site_id:t,talk_id:e,text:r,prepend:!0,messageId:0};return n&&(i.payload={review_score:n}),(0,$.af)((o=e,"/core/v1/sites/".concat(t,"/talks/").concat(o,"/messages")),"POST",i)}(r.siteId,t,i,s).then((function(r){return Ct(t,e,r)})).then((function(t){var e=[].concat(Tt(t),Tt(u));return!l&&o&&(a={reactions:{rating:{stars:o}}},c.reactions.rating.stars.count||(c={reactions:{rating:{stars:{count:1,total:o}}}})),Ft(Ft({},n),{},{review:{poll:c,vote:a},topLevelComments:e})})).catch((function(t){var e=t.message;return Ft(Ft({},n),{},{error:e})}))}}function ie(t,e){return function(r,n,o,i){var u,a,c;return["topLevelComments","forcedComments","featuredComments"].find((function(t){return c=n[a=t],u=Gt(c,i)})),u?function(t,e,r,n){var o={site_id:t,talk_id:e,text:r,messageId:n,prepend:!0};return(0,$.af)(function(t,e,r){return"/core/v1/sites/".concat(t,"/talks/").concat(e,"/messages/").concat(r,"/replies")}(t,e,n),"POST",o)}(r.siteId,t,o,i).then((function(r){return Ct(t,e,r)})).then((function(t){return function(t,e){var r=Dt(t,4),n=r[0],o=r[1],i=r[2],u=r[3];if(i){var a=u.replies.slice(0,o),c=u.replies.slice(o+1),l=u.replies[o];return u.replies=[].concat(Tt(a),[l],Tt(e),Tt(c)),u}return n.replies=[].concat(Tt(e),Tt(n.replies)),n}(u,t)})).then((function(t){return t.counts.replies.public.total+=1,t.counts.replies.total+=1,Ft(Ft({},n),{},$t({},a,c))})).catch((function(t){var e=t.message;return Ft(Ft({},n),{},{error:e})})):Promise.resolve(n)}}function ue(t,e,r){return function(n,o){return(0,tt.F)(o).then((function(t){var r=t.logo,n=t.image_id;return(0,et.v)(e.id,{logo:r,storage:n})})).then((function(o){var i,u,a=o.display_logo;if(["topLevelComments","forcedComments","featuredComments"].find((function(t){return n[t].find((function(t){var r=t.author;r.id!==e.id||(i=r)}))})),i){var c=Ft(Ft({},i),{},{image:a}),l=n.topLevelComments,s=n.forcedComments,f=n.featuredComments;u=Ft(Ft(Ft({},n),Ot(c,{topLevelComments:l,forcedComments:s,featuredComments:f})),{},{authors:n.authors||{}})}else u=Ft(Ft({},n),{},{authors:n.authors||{},uploadingAvatar:!1});return r(u),t.refreshUserInfo(),u}))}}function ae(t){return ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ae(t)}var ce=["forcedComments"],le=["onPublishClick","onNewAvatar"],se=["onShowMore","onShowReplies","onDislikeClick","onLikeClick","onFeatureClick","onApproveClick","onRejectClick","onAuthorRate","onToggleBan","onReplyClick"];function fe(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function me(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function de(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?me(Object(r),!0).forEach((function(e){pe(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function pe(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=ae(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=ae(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ae(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ye(t){return function(t){if(Array.isArray(t))return he(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||be(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ve(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(t,e)||be(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function be(t,e){if(t){if("string"==typeof t)return he(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?he(t,e):void 0}}function he(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var ge=(0,F.A)("id"),Oe={max:null,min:0},Se=(0,d.A)((function(t,e,r,n,o,i,u,a,c){var l=ve(t,5),s=l[0],f=l[1],m=l[2],p=l[3],y=l[4],v=!a,b=v&&c.runnerSite.permissions.manage_post_comments,h=v&&c.runnerSite.permissions.manage_users,g=parseInt(e.dataset.limit,10),O={wordsLimit:e.dataset.wordsPerMessage?JSON.parse(e.dataset.wordsPerMessage):Oe,expandReplies:"true"===(e.dataset.expand_replies||"").toLowerCase()},S=v?function(t,e){return function(r,n,o,i,u){var a=t?{onFeatureClick:Yt("featured"),onApproveClick:Yt("approved"),onRejectClick:Yt("rejected"),onAuthorRate:te}:Qt,c=e?{onToggleBan:ee(o)}:Jt;return Ft(Ft(Ft(Ft({},re(r,n)),a),c),{},{onCommentBoxClick:rt.A,onReplyClick:ie(r,n),onPublishClick:oe(r,n),onDislikeClick:Wt(r,n,"dislike"),onLikeClick:Wt(r,n,"like"),onNewAvatar:ue(o,i,u)})}}(b,h):function(t){return function(){var e=ne.apply(void 0,arguments);return function(t,e){var r=function(t){var e=t.querySelector("template");if(e)return e.content?e.content:e.children[0];var r=document.createElement("div");return r.classList.add("login-signup-wrapper"),r}(t);function n(t){q(t.target.closest(".comment--item-text").querySelector(".comment-login-wrp"),r)}function o(t){q(t.target.closest(".comment--item-text-input").parentNode.querySelector(".comment-login-wrp"),r)}return de(de({},e),{},{onCommentBoxClick:o,onPublishClick:o,onReplyClick:n,onDislikeClick:n,onLikeClick:n})}(t,e)}}(e),A=c?c.profileSite:{},w=S(i,u,r,A,At(e)),j=e.querySelector(".comment-header"),C=e.querySelector(".talk--load_more-wrp"),P=e.querySelector(".talk--messages__featured"),k=e.querySelector(".talk-linked-comment"),I=e.querySelector(".talk--messages__top_level"),_=e.querySelector(".talk__review"),E=e.querySelector(".add-comment"),L=Re(m,_,v),R=Ie(C,p,w),T=_e(j,y,w),x=[f,w,v,b,h,A,O],D=Le.apply(void 0,x.concat([P,"featuredComments"])),U=Le.apply(void 0,x.concat([k,"forcedComments"])),M=Le.apply(void 0,x.concat([I,"topLevelComments"])),N=Pe(E,s,v,A,w,O),B=(0,d.A)((function(t,e,r,i){var u={siteId:n,postId:o,limit:g,mode:b||h?"manage":"public",order:e,excludedIds:[].concat(ye(i.featuredComments||[]),ye(i.forcedComments||[])).map(ge)},a=B(!1),c=B(!1,e,r);
1[D,U,M].forEach((function(e){return e(t,u,i,c)})),[R,T].forEach((function(t){return t(u,i,a,e,r)})),N(u,i,c),L(i)})),F=function(t,e,r){var n=st({},vt),o=t.querySelector('script[type="rm-preact-state"]');if(!o)return n;try{return function(t,e,r){var n=r.authors,o=r.disabled,i=r.review,u=r.replies,a=void 0===u?[]:u,c=yt(r,at);function l(r){return gt(t,e,n,r,[],[])}return Object.entries(c).reduce((function(t,e){var r=ct(e,2),n=r[0],o=r[1];return t[n]=St([].concat(mt(l(o)),mt(l(a)))),t}),{disabled:o,review:i})}(r,e,n=st(st({},n),JSON.parse(o.textContent)))}catch(t){return console.error("Error parsing state",t),n}}(e,i,u),$=e.dataset.order||"best",Q="true"===(e.dataset.show_rating||"").toLowerCase();B(e.dataset.contentRendered,$,C&&C.classList.contains("has_load_more"),F),e.dataset.contentRendered=1,v&&!e.dataset.didLoggedInRefresh?(e.dataset.didLoggedInRefresh=1,function(t,e,r,n,o,i,u,a,c,l){var s=t.forcedComments,f=fe(t,ce),m=[W(e,r,i,u).then((function(t){var e=de(de({},t),{},{messages:t.messages.featured});return jt(n,o,e)})).then((function(t){var l=[].concat(ye(t),ye(s)).map(ge);return H({siteId:e,postId:r,order:i,limit:u,excludedIds:l,mode:a||c?"manage":"public"}).then((function(t){var e=ve(t,1)[0];return jt(n,o,e)})).then((function(e){return{topLevelComments:e,featuredComments:t,forcedComments:s}}))})).catch((function(t){return console.error(t),{topLevelComments:f.topLevelComments,featuredComments:f.featuredComments,forcedComments:f.forcedComments}}))];return!0===l?(m.unshift(Ae(f,r)),Promise.all(m).then((function(t){var e=ve(t,2),r=e[0],n=e[1];return de(de({},f),{},{review:r},n)}))):Promise.all(m).then((function(t){var e=ve(t,1)[0];return de(de({},f),e)}))}(F,n,o,i,u,$,g,b,h,Q).then(B(!1,e.dataset.order||"best",C&&C.classList.contains("has_load_more")))):e.dataset.didLoggedOutRefresh||(e.dataset.didLoggedOutRefresh=1,!0===Q&&function(t,e){return Ae(t,e).then((function(e){return de(de({},t),{},{review:e})}))}(F,o).then(B(!1,e.dataset.order||"best",C&&C.classList.contains("has_load_more"))))}));function Ae(t,e){return(0,Y.U5)(e).catch((function(e){return console.error(e),t.review}))}var we=(0,i.A)((function(t){return de(de({},t),{},{error:null})}),(function(t){return de(de({},t),{},{disabled:!0})}));function je(t){return de(de({},t),{},{disabled:!1})}var Ce=(0,d.A)((function(t,e,r,n){e(de(de({},t),{},{uploadingAvatar:!0})),r(t,n).then(e)})),Pe=(0,d.A)((function(t,e,r,n,o,u,a,c,l){var s,f=o.onPublishClick,m=o.onNewAvatar,d=fe(o,le);s=r?{onPublishClick:function(t,e){l(we(c)),f(a,c,t,e).then((0,i.A)(je,l))},onNewAvatar:Ce(c,l,m)}:{onPublishClick:f,onNewAvatar:m},b(e,t,de(de({isLoggedIn:r,userInfo:n,error:c.error,disabled:c.disabled,uploadingAvatar:c.uploadingAvatar,vote:c.review.vote,settings:u},d),s))}));function ke(t,e,r,n){return r[t].length>e[t].length&&n.messages.public>r[t].length}var Ie=(0,d.A)((function(t,e,r,n,o,i,u,a){t&&k(e,t,{hasMore:a,loadMoreComments:function(){r.loadMoreComments(n,o,"topLevelComments",u).then((function(t){var e=ve(t,2),r=e[0],n=e[1];i(u,ke("topLevelComments",o,r,n),r)}))}})})),_e=(0,d.A)((function(t,e,r,n,o,i,u){function a(t){var e=t.target.value;c(e),r.onOrderChange(n,o,"topLevelComments",e).then((function(t){var r=ve(t,2),n=r[0],u=r[1];i(e,ke("topLevelComments",o,n,u),n)}))}function c(r){L(e,t,{selectedOrder:r,onOrderChange:a})}t&&c(u)})),Ee=(0,d.A)((function(t,e,r,n,o){return function(i){var u=i.target.closest("[data-message_id]").dataset.message_id;return o(t,e,r,u).then(n)}})),Le=(0,d.A)((function(t,e,r,n,o,u,a,c,l,s,f,m,d){var p=e.onShowMore,y=e.onShowReplies,v=e.onDislikeClick,b=e.onLikeClick,h=e.onFeatureClick,g=e.onApproveClick,O=e.onRejectClick,S=e.onAuthorRate,A=e.onToggleBan,w=e.onReplyClick,C=fe(e,se);if(c){var P=Ee(f,m,l,d),k=r?{onDislikeClick:P(v),onLikeClick:P(b),onReplyClick:function(t,e){d(we(m)),w(f,m,t,e).then((0,i.A)(je,d))}}:{onDislikeClick:v,onLikeClick:b,onReplyClick:w},I=n?{onFeatureClick:P(h),onApproveClick:P(g),onRejectClick:P(O),onAuthorRate:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return S.apply(void 0,[m,l].concat(e)).then(d)}}:{onFeatureClick:h,onApproveClick:g,onRejectClick:O,onAuthorRate:S,onToggleBan:A},_=o?{onToggleBan:P(A)}:{onToggleBan:A},E=de(de(de(de(de({}
1,C),k),I),_),{},{isLoggedIn:r,userInfo:u,canManage:n,canBan:o,settings:a,error:m.error,disabled:m.disabled,vote:m.review.vote,uploadingAvatar:m.uploadingAvatar,onShowMore:P(p),onShowReplies:P(y)});j(t,E,c,s,m[l])}})),Re=(0,d.A)((function(t,e,r,n){M(t,e,{poll:n.review.poll,isLoggedIn:r})}));function Te(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return xe(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xe(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function De(t,e,r,n){return t!=r||n.profileSite.id!==e.profileSite.id||n.profileSite.display_logo!==e.profileSite.display_logo}function Ue(t,e){var r=t.settings.site.id,l=t.settings.post.id,s=e.dataset.talk_id,d=decodeURIComponent(t.settings.post.shareUrl),p=function(t){return t.dataset.all_element_order?t.dataset.all_element_order.split(","):[]}(e),y=function(t){var e=[],r=[],n={};return t.dataset.inactive_layout_attributes&&(e=t.dataset.inactive_layout_attributes.split(",")),t.dataset.active_layout_attributes&&(r=t.dataset.active_layout_attributes.split(",")),e.forEach((function(t){n[t]="inactive"})),r.forEach((function(t){n[t]="active"})),n}(e),v="true"===(e.dataset.show_rating||"").toLowerCase();(function(t,e,r,n){return Promise.all([D(t),_(t),T(t)]).then((function(l){var s=Te(l,3),d=s[0],p=s[1],y=s[2],v=d[1];return Promise.all([g(t,r,n,v),B(t,v)]).then((function(n){var l=Te(n,2),s=l[0],d=l[1],b=s[1];return function(t,e,r,n,l){return(0,a.A)("NativeTalkComment",t,{formatDate:o.A,layoutOrder:e,layoutStatus:r,CommentBox:n,Review:l,copyToClipboard:(0,i.A)(c,(0,u.A)(f.A,"copied to clipboard","success"))},m)}(t,e,r,b,v).then((function(e){var r=Te(e,2),n=(r[0],r[1]);return function(t,e){return(0,a.A)("NativeTalkCommentList",t,{Comment:e},C)}(t,n).then((function(t){return[s,t,d,p,y]}))}))}))}))})(t,p,y,v).then((function(o){t.listenForUserInfo((0,n.A)(De,Se(o,e,t,r,l,s,d)))}))}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.