!function(){var e,t,n,r,i={94626:function(e,t){"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.StructError=void 0;var r=["message","explanation"];function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,r),d=e.path,f=0===d.length?s:"At path: ".concat(d.join(".")," -- ").concat(s);return o=c(this,t,[null!=u?u:f]),null!=u&&(o.cause=f),Object.assign(o,l),o.name=o.constructor.name,o.failures=function(){var t;return null!==(t=a)&&void 0!==t?t:a=[e].concat(i(n()))},o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),n=t,o&&a(n.prototype,o),s&&a(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,s}(u(TypeError))},39344:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(94626);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var i=n(94055);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=n(68180);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=n(34671);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=n(8064);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var c=n(47049);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}))},94055:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Struct=void 0,t.assert=d,t.create=f,t.is=p,t.mask=h,t.validate=m;var r=n(84713),i=n(94626);function o(e){return o="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},o(e)}function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),_}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),_}},t}function u(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{})}}],t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function d(e,t,n){var r=m(e,t,{message:n});if(r[0])throw r[0]}function f(e,t,n){var r=m(e,t,{coerce:!0,message:n});if(r[0])throw r[0];return r[1]}function h(e,t,n){var r=m(e,t,{coerce:!0,mask:!0,message:n});if(r[0])throw r[0];return r[1]}function p(e,t){return!m(e,t)[0]}function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,r.run)(e,t,n),s=(0,r.shiftIterator)(o);return s[0]?[new i.StructError(s[0],c().mark((function e(){var t,n,r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=a(o),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=10;break}if(!(r=n.value)[0]){e.next=8;break}return e.next=8,r[0];case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),t.e(e.t0);case 15:return e.prev=15,t.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[1,12,15,18]])}))),void 0]:[void 0,s[1]]}},68180:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.coerce=l,t.defaulted=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return l(e,(0,o.unknown)(),(function(e){var r="function"==typeof t?t():t;if(void 0===e)return r;if(!n.strict&&(0,i.isPlainObject)(e)&&(0,i.isPlainObject)(r)){var o=c({},e),a=!1;for(var s in r)void 0===o[s]&&(o[s]=r[s],a=!0);if(a)return o}return e}))},t.trimmed=function(e){return l(e,(0,o.string)(),(function(e){return e.trim()}))};var r=n(94055),i=n(84713),o=n(8064);function a(e){return a="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},a(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},r=n.exclusive;return h(e,"max",(function(n){return r?n2&&void 0!==arguments[2]?arguments[2]:{},r=n.exclusive;return h(e,"min",(function(n){return r?n>t:n>=t||"Expected a ".concat(e.type," greater than ").concat(r?"":"or equal to ").concat(t," but received `").concat(n,"`")}))},t.nonempty=function(e){return h(e,"nonempty",(function(t){return f(t)>0||"Expected a nonempty ".concat(e.type," but received an empty one")}))},t.pattern=function(e,t){return h(e,"pattern",(function(n){return t.test(n)||"Expected a ".concat(e.type," matching `/").concat(t.source,'/` but received "').concat(n,'"')}))},t.refine=h,t.size=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r="Expected a ".concat(e.type),i=t===n?"of `".concat(t,"`"):"between `".concat(t,"` and `").concat(n,"`");return h(e,"size",(function(e){if("number"==typeof e||e instanceof Date)return t<=e&&e<=n||"".concat(r," ").concat(i," but received `").concat(e,"`");if(e instanceof Map||e instanceof Set){var o=e.size;return t<=o&&o<=n||"".concat(r," with a size ").concat(i," but received one with a size of `").concat(o,"`")}var a=e.length;return t<=a&&a<=n||"".concat(r," with a length ").concat(i," but received one with a length of `").concat(a,"`")}))};var r=n(94055),i=n(84713);function o(e){return o="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},o(e)}function a(){a=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new O(r||[]);return i(a,"_invoke",{value:M(e,n,s)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var p="suspendedStart",m="suspendedYield",v="executing",g="completed",_={};function b(){}function y(){}function A(){}var S={};d(S,c,(function(){return this}));var E=Object.getPrototypeOf,w=E&&E(E(P([])));w&&w!==n&&r.call(w,c)&&(S=w);var C=A.prototype=b.prototype=Object.create(S);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(i,a,s,c){var u=h(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==o(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function M(t,n,r){var i=p;return function(o,a){if(i===v)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=k(s,r);if(c){if(c===_)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var u=h(t,n,r);if("normal"===u.type){if(i=r.done?g:m,u.arg===_)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function k(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),_;var o=h(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,_;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,_):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,_)}function N(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 I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),_}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),_}},t}function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),_}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),_}},t}function d(e,t){return h(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||m(e,t)||f()}function f(){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 h(e){if(Array.isArray(e))return e}function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=m(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function m(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function s(){s=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),s=new O(r||[]);return o(a,"_invoke",{value:M(e,n,s)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var p="suspendedStart",m="suspendedYield",v="executing",g="completed",_={};function b(){}function y(){}function A(){}var S={};d(S,c,(function(){return this}));var E=Object.getPrototypeOf,w=E&&E(E(P([])));w&&w!==n&&i.call(w,c)&&(S=w);var C=A.prototype=b.prototype=Object.create(S);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,a,s,c){var u=h(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function M(t,n,r){var i=p;return function(o,a){if(i===v)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=k(s,r);if(c){if(c===_)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var u=h(t,n,r);if("normal"===u.type){if(i=r.done?g:m,u.arg===_)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function k(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),_;var o=h(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,_;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,_):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,_)}function N(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 I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),_}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),_}},t}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),_}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),_}},t}Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=f,t.isPlainObject=function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype},t.print=h,t.run=function e(t,i){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r().mark((function c(){var u,l,d,h,p,m,v,g,_,b,y,A,S,E,w,C,T,L,M,k,N,I,O,P,R,D,j;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(u=s.path,l=void 0===u?[]:u,d=s.branch,h=void 0===d?[t]:d,p=s.coerce,m=void 0!==p&&p,v=s.mask,g=void 0!==v&&v,_={path:l,branch:h},m&&(t=i.coercer(t,_),g&&"type"!==i.type&&f(i.schema)&&f(t)&&!Array.isArray(t)))for(b in t)void 0===i.schema[b]&&delete t[b];y="valid",A=o(i.validator(t,_)),r.prev=5,A.s();case 7:if((S=A.n()).done){r.next=15;break}return(E=S.value).explanation=s.message,y="not_valid",r.next=13,[E,void 0];case 13:r.next=7;break;case 15:r.next=20;break;case 17:r.prev=17,r.t0=r.catch(5),A.e(r.t0);case 20:return r.prev=20,A.f(),r.finish(20);case 23:w=o(i.entries(t,_)),r.prev=24,w.s();case 26:if((C=w.n()).done){r.next=53;break}c=C.value,x=3,T=function(e){if(Array.isArray(e))return e}(c)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(c,x)||a(c,x)||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.")}(),L=T[0],M=T[1],k=T[2],N=e(M,k,{path:void 0===L?l:[].concat(n(l),[L]),branch:void 0===L?h:[].concat(n(h),[M]),coerce:m,mask:g,message:s.message}),I=o(N),r.prev=30,I.s();case 32:if((O=I.n()).done){r.next=43;break}if(!(P=O.value)[0]){r.next=40;break}return y=null!=P[0].refinement?"not_refined":"not_valid",r.next=38,[P[0],void 0];case 38:r.next=41;break;case 40:m&&(M=P[1],void 0===L?t=M:t instanceof Map?t.set(L,M):t instanceof Set?t.add(M):f(t)&&(void 0!==M||L in t)&&(t[L]=M));case 41:r.next=32;break;case 43:r.next=48;break;case 45:r.prev=45,r.t1=r.catch(30),I.e(r.t1);case 48:return r.prev=48,I.f(),r.finish(48);case 51:r.next=26;break;case 53:r.next=58;break;case 55:r.prev=55,r.t2=r.catch(24),w.e(r.t2);case 58:return r.prev=58,w.f(),r.finish(58);case 61:if("not_valid"===y){r.next=81;break}R=o(i.refiner(t,_)),r.prev=63,R.s();case 65:if((D=R.n()).done){r.next=73;break}return(j=D.value).explanation=s.message,y="not_refined",r.next=71,[j,void 0];case 71:r.next=65;break;case 73:r.next=78;break;case 75:r.prev=75,r.t3=r.catch(63),R.e(r.t3);case 78:return r.prev=78,R.f(),r.finish(78);case 81:if("valid"!==y){r.next=84;break}return r.next=84,[void 0,t];case 84:case"end":return r.stop()}var c,x}),c,null,[[5,17,20,23],[24,55,58,61],[30,45,48,51],[63,75,78,81]])}))()},t.shiftIterator=function(e){var t=e.next(),n=t.done,r=t.value;return n?void 0:r},t.toFailure=p,t.toFailures=m;var i=r().mark(m);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}function a(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function h(e,t,n,a){void 0===a&&(a={});let{window:c=document.defaultView,v5Compat:f=!1}=a,h=c.history,p=i.Pop,m=null,v=g();function g(){return(h.state||{idx:null}).idx}function _(){p=i.Pop;let e=g(),t=null==e?null:e-v;v=e,m&&m({action:p,location:y.location,delta:t})}function b(e){let t="null"!==c.location.origin?c.location.origin:c.location.href,n="string"==typeof e?e:d(e);return n=n.replace(/ $/,"%20"),s(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==v&&(v=0,h.replaceState(r({},h.state,{idx:v}),""));let y={get action(){return p},get location(){return e(c,h)},listen(e){if(m)throw new Error("A history only accepts one active listener");return c.addEventListener(o,_),m=e,()=>{c.removeEventListener(o,_),m=null}},createHref(e){return t(c,e)},createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){p=i.Push;let r=l(y.location,e,t);n&&n(r,e),v=g()+1;let o=u(r,v),a=y.createHref(r);try{h.pushState(o,"",a)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;c.location.assign(a)}f&&m&&m({action:p,location:y.location,delta:1})},replace:function(e,t){p=i.Replace;let r=l(y.location,e,t);n&&n(r,e),v=g();let o=u(r,v),a=y.createHref(r);h.replaceState(o,"",a),f&&m&&m({action:p,location:y.location,delta:0})},go(e){return h.go(e)}};return y}var p;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(p||(p={}));const m=new Set(["lazy","caseSensitive","path","id","index","children"]);function v(e,t,n,i){return void 0===n&&(n=[]),void 0===i&&(i={}),e.map(((e,o)=>{let a=[...n,String(o)],c="string"==typeof e.id?e.id:a.join("-");if(s(!0!==e.index||!e.children,"Cannot specify children on an index route"),s(!i[c],'Found a route id collision on id "'+c+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let n=r({},e,t(e),{id:c});return i[c]=n,n}{let n=r({},e,t(e),{id:c,children:void 0});return i[c]=n,e.children&&(n.children=v(e.children,t,a,i)),n}}))}function g(e,t,n){return void 0===n&&(n="/"),_(e,t,n,!1)}function _(e,t,n,r){let i=P(("string"==typeof t?f(t):t).pathname||"/",n);if(null==i)return null;let o=y(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let a=null;for(let e=0;null==a&&e{let a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(s(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let c=U([r,a.relativePath]),u=n.concat(a);e.children&&e.children.length>0&&(s(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+c+'".'),y(e.children,t,u,c)),(null!=e.path||e.index)&&t.push({path:c,score:k(c,e.index),routesMeta:u})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of A(e.path))i(e,t,n);else i(e,t)})),t}function A(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let a=A(r.join("/")),s=[];return s.push(...a.map((e=>""===e?o:[o,e].join("/")))),i&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const S=/^:[\w-]+$/,E=3,w=2,C=1,T=10,L=-2,M=e=>"*"===e;function k(e,t){let n=e.split("/"),r=n.length;return n.some(M)&&(r+=L),t&&(r+=w),n.filter((e=>!M(e))).reduce(((e,t)=>e+(S.test(t)?E:""===t?C:T)),r)}function N(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,i={},o="/",a=[];for(let e=0;e(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=s[n]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const c=s[n];return e[r]=i&&!c?void 0:(c||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:a,pattern:e}}function O(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return c(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function P(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function R(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function D(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function j(e,t){let n=D(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function x(e,t,n,i){let o;void 0===i&&(i=!1),"string"==typeof e?o=f(e):(o=r({},e),s(!o.pathname||!o.pathname.includes("?"),R("?","pathname","search",o)),s(!o.pathname||!o.pathname.includes("#"),R("#","pathname","hash",o)),s(!o.search||!o.search.includes("#"),R("#","search","hash",o)));let a,c=""===e||""===o.pathname,u=c?"/":o.pathname;if(null==u)a=n;else{let e=t.length-1;if(!i&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"==typeof e?f(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:B(r),hash:H(i)}}(o,a),d=u&&"/"!==u&&u.endsWith("/"),h=(c||"."===u)&&n.endsWith("/");return l.pathname.endsWith("/")||!d&&!h||(l.pathname+="/"),l}const U=e=>e.join("/").replace(/\/\/+/g,"/"),F=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),B=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",H=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class G extends Error{}const V=function(e,t){void 0===t&&(t=302);let n=t;"number"==typeof n?n={status:n}:void 0===n.status&&(n.status=302);let i=new Headers(n.headers);return i.set("Location",e),new Response(null,r({},n,{headers:i}))},W=(e,t)=>{let n=V(e,t);return n.headers.set("X-Remix-Replace","true"),n};class q{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Y(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const z=["post","put","patch","delete"],X=new Set(z),K=["get",...z],J=new Set(K),$=new Set([301,302,303,307,308]),Q=new Set([307,308]),Z={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ee={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},te={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ne=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,re=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ie="remix-router-transitions";function oe(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,o=!n;let a;if(s(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;a=e=>({hasErrorBoundary:t(e)})}else a=re;let u,d,f,h={},m=v(e.routes,a,void 0,h),y=e.basename||"/",A=e.dataStrategy||me,S=e.patchRoutesOnNavigation,E=r({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),w=null,C=new Set,T=null,L=null,M=null,k=null!=e.hydrationData,N=g(m,e.history.location,y),I=null;if(null==N&&!S){let t=ke(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Me(m);N=n,I={[r.id]:t}}if(N&&!e.hydrationData){ut(N,m,e.history.location.pathname).active&&(N=null)}if(N)if(N.some((e=>e.route.lazy)))d=!1;else if(N.some((e=>e.route.loader)))if(E.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=N.findIndex((e=>void 0!==n[e.route.id]));d=N.slice(0,e+1).every((e=>!le(e.route,t,n)))}else d=N.every((e=>!le(e.route,t,n)))}else d=null!=e.hydrationData;else d=!0;else if(d=!1,N=[],E.v7_partialHydration){let t=ut(null,m,e.history.location.pathname);t.active&&t.matches&&(N=t.matches)}let O,R,D={historyAction:e.history.action,location:e.history.location,matches:N,initialized:d,navigation:Z,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||I,fetchers:new Map,blockers:new Map},j=i.Pop,x=!1,U=!1,F=new Map,B=null,H=!1,G=!1,V=[],W=new Set,q=new Map,z=0,X=-1,K=new Map,J=new Set,$=new Map,oe=new Map,ce=new Set,de=new Map,fe=new Map;function pe(e,t){void 0===t&&(t={}),D=r({},D,e);let n=[],i=[];E.v7_fetcherPersist&&D.fetchers.forEach(((e,t)=>{"idle"===e.state&&(ce.has(t)?i.push(t):n.push(t))})),[...C].forEach((e=>e(D,{deletedFetchers:i,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),E.v7_fetcherPersist&&(n.forEach((e=>D.fetchers.delete(e))),i.forEach((e=>$e(e))))}function Ae(t,n,o){var a,s;let c,{flushSync:l}=void 0===o?{}:o,d=null!=D.actionData&&null!=D.navigation.formMethod&&Fe(D.navigation.formMethod)&&"loading"===D.navigation.state&&!0!==(null==(a=t.state)?void 0:a._isRedirect);c=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:d?D.actionData:null;let f=n.loaderData?Ce(D.loaderData,n.loaderData,n.matches||[],n.errors):D.loaderData,h=D.blockers;h.size>0&&(h=new Map(h),h.forEach(((e,t)=>h.set(t,te))));let p,v=!0===x||null!=D.navigation.formMethod&&Fe(D.navigation.formMethod)&&!0!==(null==(s=t.state)?void 0:s._isRedirect);if(u&&(m=u,u=void 0),H||j===i.Pop||(j===i.Push?e.history.push(t,t.state):j===i.Replace&&e.history.replace(t,t.state)),j===i.Pop){let e=F.get(D.location.pathname);e&&e.has(t.pathname)?p={currentLocation:D.location,nextLocation:t}:F.has(t.pathname)&&(p={currentLocation:t,nextLocation:D.location})}else if(U){let e=F.get(D.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),F.set(D.location.pathname,e)),p={currentLocation:D.location,nextLocation:t}}pe(r({},n,{actionData:c,loaderData:f,historyAction:j,location:t,initialized:!0,navigation:Z,revalidation:"idle",restoreScrollPosition:ct(t,n.matches||D.matches),preventScrollReset:v,blockers:h}),{viewTransitionOpts:p,flushSync:!0===l}),j=i.Pop,x=!1,U=!1,H=!1,G=!1,V=[]}async function Se(t,n,o){O&&O.abort(),O=null,j=t,H=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(T&&M){let n=st(e,t);T[n]=M()}}(D.location,D.matches),x=!0===(o&&o.preventScrollReset),U=!0===(o&&o.enableViewTransition);let a=u||m,s=o&&o.overrideNavigation,c=g(a,n,y),l=!0===(o&&o.flushSync),d=ut(c,a,n.pathname);if(d.active&&d.matches&&(c=d.matches),!c){let{error:e,notFoundMatches:t,route:r}=ot(n.pathname);return void Ae(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:l})}if(D.initialized&&!G&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(D.location,n)&&!(o&&o.submission&&Fe(o.submission.formMethod)))return void Ae(n,{matches:c},{flushSync:l});O=new AbortController;let f,h=ye(e.history,n,O.signal,o&&o.submission);if(o&&o.pendingError)f=[Le(c).route.id,{type:p.error,error:o.pendingError}];else if(o&&o.submission&&Fe(o.submission.formMethod)){let t=await async function(e,t,n,r,o,a){void 0===a&&(a={});Ue();let s,c=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(t,n);if(pe({navigation:c},{flushSync:!0===a.flushSync}),o){let n=await lt(r,t.pathname,e.signal);if("aborted"===n.type)return{shortCircuited:!0};if("error"===n.type){let e=Le(n.partialMatches).route.id;return{matches:n.partialMatches,pendingActionResult:[e,{type:p.error,error:n.error}]}}if(!n.matches){let{notFoundMatches:e,error:n,route:r}=ot(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:p.error,error:n}]}}r=n.matches}let u=We(r,t);if(u.route.action||u.route.lazy){if(s=(await je("action",D,e,[u],r,null))[u.route.id],e.signal.aborted)return{shortCircuited:!0}}else s={type:p.error,error:ke(405,{method:e.method,pathname:t.pathname,routeId:u.route.id})};if(De(s)){let t;if(a&&null!=a.replace)t=a.replace;else{t=be(s.response.headers.get("Location"),new URL(e.url),y)===D.location.pathname+D.location.search}return await Ie(e,s,!0,{submission:n,replace:t}),{shortCircuited:!0}}if(Pe(s))throw ke(400,{type:"defer-action"});if(Re(s)){let e=Le(r,u.route.id);return!0!==(a&&a.replace)&&(j=i.Push),{matches:r,pendingActionResult:[e.route.id,s]}}return{matches:r,pendingActionResult:[u.route.id,s]}}(h,n,o.submission,c,d.active,{replace:o.replace,flushSync:l});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(Re(r)&&Y(r.error)&&404===r.error.status)return O=null,void Ae(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}c=t.matches||c,f=t.pendingActionResult,s=Ye(n,o.submission),l=!1,d.active=!1,h=ye(e.history,h.url,h.signal)}let{shortCircuited:v,matches:_,loaderData:b,errors:A}=await async function(t,n,i,o,a,s,c,l,d,f,h){let p=a||Ye(n,s),v=s||c||qe(p),g=!(H||E.v7_partialHydration&&d);if(o){if(g){let e=Ee(h);pe(r({navigation:p},void 0!==e?{actionData:e}:{}),{flushSync:f})}let e=await lt(i,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Le(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=ot(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}i=e.matches}let _=u||m,[b,A]=ue(e.history,D,i,v,n,E.v7_partialHydration&&!0===d,E.v7_skipActionErrorRevalidation,G,V,W,ce,$,J,_,y,h);if(at((e=>!(i&&i.some((t=>t.route.id===e)))||b&&b.some((t=>t.route.id===e)))),X=++z,0===b.length&&0===A.length){let e=et();return Ae(n,r({matches:i,loaderData:{},errors:h&&Re(h[1])?{[h[0]]:h[1].error}:null},Te(h),e?{fetchers:new Map(D.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(g){let e={};if(!o){e.navigation=p;let t=Ee(h);void 0!==t&&(e.actionData=t)}A.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=D.fetchers.get(e.key),n=ze(void 0,t?t.data:void 0);D.fetchers.set(e.key,n)})),new Map(D.fetchers)}(A)),pe(e,{flushSync:f})}A.forEach((e=>{Qe(e.key),e.controller&&q.set(e.key,e.controller)}));let S=()=>A.forEach((e=>Qe(e.key)));O&&O.signal.addEventListener("abort",S);let{loaderResults:w,fetcherResults:C}=await xe(D,i,b,A,t);if(t.signal.aborted)return{shortCircuited:!0};O&&O.signal.removeEventListener("abort",S);A.forEach((e=>q.delete(e.key)));let T=Ne(w);if(T)return await Ie(t,T.result,!0,{replace:l}),{shortCircuited:!0};if(T=Ne(C),T)return J.add(T.key),await Ie(t,T.result,!0,{replace:l}),{shortCircuited:!0};let{loaderData:L,errors:M}=we(D,i,w,h,A,C,de);de.forEach(((e,t)=>{e.subscribe((n=>{(n||e.done)&&de.delete(t)}))})),E.v7_partialHydration&&d&&D.errors&&(M=r({},D.errors,M));let k=et(),N=tt(X),I=k||N||A.length>0;return r({matches:i,loaderData:L,errors:M},I?{fetchers:new Map(D.fetchers)}:{})}(h,n,c,d.active,s,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,l,f);v||(O=null,Ae(n,r({matches:_||c},Te(f),{loaderData:b,errors:A})))}function Ee(e){return e&&!Re(e[1])?{[e[0]]:e[1].data}:D.actionData?0===Object.keys(D.actionData).length?null:D.actionData:void 0}async function Ie(o,a,c,u){let{submission:d,fetcherSubmission:f,preventScrollReset:h,replace:p}=void 0===u?{}:u;a.response.headers.has("X-Remix-Revalidate")&&(G=!0);let m=a.response.headers.get("Location");s(m,"Expected a Location header on the redirect Response"),m=be(m,new URL(o.url),y);let v=l(D.location,m,{_isRedirect:!0});if(n){let n=!1;if(a.response.headers.has("X-Remix-Reload-Document"))n=!0;else if(ne.test(m)){const r=e.history.createURL(m);n=r.origin!==t.location.origin||null==P(r.pathname,y)}if(n)return void(p?t.location.replace(m):t.location.assign(m))}O=null;let g=!0===p||a.response.headers.has("X-Remix-Replace")?i.Replace:i.Push,{formMethod:_,formAction:b,formEncType:A}=D.navigation;!d&&!f&&_&&b&&A&&(d=qe(D.navigation));let S=d||f;if(Q.has(a.response.status)&&S&&Fe(S.formMethod))await Se(g,v,{submission:r({},S,{formAction:m}),preventScrollReset:h||x,enableViewTransition:c?U:void 0});else{let e=Ye(v,d);await Se(g,v,{overrideNavigation:e,fetcherSubmission:f,preventScrollReset:h||x,enableViewTransition:c?U:void 0})}}async function je(e,t,n,r,i,o){let s,c={};try{s=await ve(A,e,t,n,r,i,o,h,a)}catch(e){return r.forEach((t=>{c[t.route.id]={type:p.error,error:e}})),c}for(let[e,t]of Object.entries(s))if(Oe(t)){let r=t.result;c[e]={type:p.redirect,response:_e(r,n,e,i,y,E.v7_relativeSplatPath)}}else c[e]=await ge(t);return c}async function xe(t,n,r,i,o){let a=t.matches,s=je("loader",t,o,r,n,null),c=Promise.all(i.map((async n=>{if(n.matches&&n.match&&n.controller){let r=(await je("loader",t,ye(e.history,n.path,n.controller.signal),[n.match],n.matches,n.key))[n.match.route.id];return{[n.key]:r}}return Promise.resolve({[n.key]:{type:p.error,error:ke(404,{pathname:n.path})}})}))),u=await s,l=(await c).reduce(((e,t)=>Object.assign(e,t)),{});return await Promise.all([Be(n,u,o.signal,a,t.loaderData),He(n,l,i)]),{loaderResults:u,fetcherResults:l}}function Ue(){G=!0,V.push(...at()),$.forEach(((e,t)=>{q.has(t)&&W.add(t),Qe(t)}))}function Ve(e,t,n){void 0===n&&(n={}),D.fetchers.set(e,t),pe({fetchers:new Map(D.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Ke(e,t,n,r){void 0===r&&(r={});let i=Le(D.matches,t);$e(e),pe({errors:{[i.route.id]:n},fetchers:new Map(D.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Je(e){return E.v7_fetcherPersist&&(oe.set(e,(oe.get(e)||0)+1),ce.has(e)&&ce.delete(e)),D.fetchers.get(e)||ee}function $e(e){let t=D.fetchers.get(e);!q.has(e)||t&&"loading"===t.state&&K.has(e)||Qe(e),$.delete(e),K.delete(e),J.delete(e),ce.delete(e),W.delete(e),D.fetchers.delete(e)}function Qe(e){let t=q.get(e);t&&(t.abort(),q.delete(e))}function Ze(e){for(let t of e){let e=Xe(Je(t).data);D.fetchers.set(t,e)}}function et(){let e=[],t=!1;for(let n of J){let r=D.fetchers.get(n);s(r,"Expected fetcher: "+n),"loading"===r.state&&(J.delete(n),e.push(n),t=!0)}return Ze(e),t}function tt(e){let t=[];for(let[n,r]of K)if(r0}function nt(e){D.blockers.delete(e),fe.delete(e)}function rt(e,t){let n=D.blockers.get(e)||te;s("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state);let r=new Map(D.blockers);r.set(e,t),pe({blockers:r})}function it(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===fe.size)return;fe.size>1&&c(!1,"A router only supports one blocker at a time");let i=Array.from(fe.entries()),[o,a]=i[i.length-1],s=D.blockers.get(o);return s&&"proceeding"===s.state?void 0:a({currentLocation:t,nextLocation:n,historyAction:r})?o:void 0}function ot(e){let t=ke(404,{pathname:e}),n=u||m,{matches:r,route:i}=Me(n);return at(),{notFoundMatches:r,route:i,error:t}}function at(e){let t=[];return de.forEach(((n,r)=>{e&&!e(r)||(n.cancel(),t.push(r),de.delete(r))})),t}function st(e,t){if(L){return L(e,t.map((e=>b(e,D.loaderData))))||e.key}return e.key}function ct(e,t){if(T){let n=st(e,t),r=T[n];if("number"==typeof r)return r}return null}function ut(e,t,n){if(S){if(!e){return{active:!0,matches:_(t,n,y,!0)||[]}}if(Object.keys(e[0].params).length>0){return{active:!0,matches:_(t,n,y,!0)}}}return{active:!1,matches:null}}async function lt(e,t,n){if(!S)return{type:"success",matches:e};let r=e;for(;;){let e=null==u,i=u||m,o=h;try{await S({path:t,matches:r,patch:(e,t)=>{n.aborted||he(e,t,i,o,a)}})}catch(e){return{type:"error",error:e,partialMatches:r}}finally{e&&!n.aborted&&(m=[...m])}if(n.aborted)return{type:"aborted"};let s=g(i,t,y);if(s)return{type:"success",matches:s};let c=_(i,t,y,!0);if(!c||r.length===c.length&&r.every(((e,t)=>e.route.id===c[t].route.id)))return{type:"success",matches:null};r=c}}return f={get basename(){return y},get future(){return E},get state(){return D},get routes(){return m},get window(){return t},initialize:function(){if(w=e.history.listen((t=>{let{action:n,location:r,delta:i}=t;if(R)return R(),void(R=void 0);c(0===fe.size||null!=i,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=it({currentLocation:D.location,nextLocation:r,historyAction:n});if(o&&null!=i){let t=new Promise((e=>{R=e}));return e.history.go(-1*i),void rt(o,{state:"blocked",location:r,proceed(){rt(o,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.then((()=>e.history.go(i)))},reset(){let e=new Map(D.blockers);e.set(o,te),pe({blockers:e})}})}return Se(n,r)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(ie);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,F);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(ie,JSON.stringify(n))}catch(e){c(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,F);t.addEventListener("pagehide",e),B=()=>t.removeEventListener("pagehide",e)}return D.initialized||Se(i.Pop,D.location,{initialHydration:!0}),f},subscribe:function(e){return C.add(e),()=>C.delete(e)},enableScrollRestoration:function(e,t,n){if(T=e,M=t,L=n||null,!k&&D.navigation===Z){k=!0;let e=ct(D.location,D.matches);null!=e&&pe({restoreScrollPosition:e})}return()=>{T=null,M=null,L=null}},navigate:async function t(n,o){if("number"==typeof n)return void e.history.go(n);let a=ae(D.location,D.matches,y,E.v7_prependBasename,n,E.v7_relativeSplatPath,null==o?void 0:o.fromRouteId,null==o?void 0:o.relative),{path:s,submission:c,error:u}=se(E.v7_normalizeFormMethod,!1,a,o),d=D.location,f=l(D.location,s,o&&o.state);f=r({},f,e.history.encodeLocation(f));let h=o&&null!=o.replace?o.replace:void 0,p=i.Push;!0===h?p=i.Replace:!1===h||null!=c&&Fe(c.formMethod)&&c.formAction===D.location.pathname+D.location.search&&(p=i.Replace);let m=o&&"preventScrollReset"in o?!0===o.preventScrollReset:void 0,v=!0===(o&&o.flushSync),g=it({currentLocation:d,nextLocation:f,historyAction:p});if(!g)return await Se(p,f,{submission:c,pendingError:u,preventScrollReset:m,replace:o&&o.replace,enableViewTransition:o&&o.viewTransition,flushSync:v});rt(g,{state:"blocked",location:f,proceed(){rt(g,{state:"proceeding",proceed:void 0,reset:void 0,location:f}),t(n,o)},reset(){let e=new Map(D.blockers);e.set(g,te),pe({blockers:e})}})},fetch:function(t,n,r,i){if(o)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Qe(t);let a=!0===(i&&i.flushSync),c=u||m,l=ae(D.location,D.matches,y,E.v7_prependBasename,r,E.v7_relativeSplatPath,n,null==i?void 0:i.relative),d=g(c,l,y),f=ut(d,c,l);if(f.active&&f.matches&&(d=f.matches),!d)return void Ke(t,n,ke(404,{pathname:l}),{flushSync:a});let{path:h,submission:p,error:v}=se(E.v7_normalizeFormMethod,!0,l,i);if(v)return void Ke(t,n,v,{flushSync:a});let _=We(d,h),b=!0===(i&&i.preventScrollReset);p&&Fe(p.formMethod)?async function(t,n,r,i,o,a,c,l,d){function f(e){if(!e.route.action&&!e.route.lazy){let e=ke(405,{method:d.formMethod,pathname:r,routeId:n});return Ke(t,n,e,{flushSync:c}),!0}return!1}if(Ue(),$.delete(t),!a&&f(i))return;let h=D.fetchers.get(t);Ve(t,function(e,t){let n={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return n}(d,h),{flushSync:c});let p=new AbortController,v=ye(e.history,r,p.signal,d);if(a){let e=await lt(o,r,v.signal);if("aborted"===e.type)return;if("error"===e.type)return void Ke(t,n,e.error,{flushSync:c});if(!e.matches)return void Ke(t,n,ke(404,{pathname:r}),{flushSync:c});if(f(i=We(o=e.matches,r)))return}q.set(t,p);let _=z,b=await je("action",D,v,[i],o,t),A=b[i.route.id];if(v.signal.aborted)return void(q.get(t)===p&&q.delete(t));if(E.v7_fetcherPersist&&ce.has(t)){if(De(A)||Re(A))return void Ve(t,Xe(void 0))}else{if(De(A))return q.delete(t),X>_?void Ve(t,Xe(void 0)):(J.add(t),Ve(t,ze(d)),Ie(v,A,!1,{fetcherSubmission:d,preventScrollReset:l}));if(Re(A))return void Ke(t,n,A.error)}if(Pe(A))throw ke(400,{type:"defer-action"});let S=D.navigation.location||D.location,w=ye(e.history,S,p.signal),C=u||m,T="idle"!==D.navigation.state?g(C,D.navigation.location,y):D.matches;s(T,"Didn't find any matches after fetcher action");let L=++z;K.set(t,L);let M=ze(d,A.data);D.fetchers.set(t,M);let[k,N]=ue(e.history,D,T,d,S,!1,E.v7_skipActionErrorRevalidation,G,V,W,ce,$,J,C,y,[i.route.id,A]);N.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=D.fetchers.get(t),r=ze(void 0,n?n.data:void 0);D.fetchers.set(t,r),Qe(t),e.controller&&q.set(t,e.controller)})),pe({fetchers:new Map(D.fetchers)});let I=()=>N.forEach((e=>Qe(e.key)));p.signal.addEventListener("abort",I);let{loaderResults:P,fetcherResults:R}=await xe(D,T,k,N,w);if(p.signal.aborted)return;p.signal.removeEventListener("abort",I),K.delete(t),q.delete(t),N.forEach((e=>q.delete(e.key)));let x=Ne(P);if(x)return Ie(w,x.result,!1,{preventScrollReset:l});if(x=Ne(R),x)return J.add(x.key),Ie(w,x.result,!1,{preventScrollReset:l});let{loaderData:U,errors:F}=we(D,T,P,void 0,N,R,de);if(D.fetchers.has(t)){let e=Xe(A.data);D.fetchers.set(t,e)}tt(L),"loading"===D.navigation.state&&L>X?(s(j,"Expected pending action"),O&&O.abort(),Ae(D.navigation.location,{matches:T,loaderData:U,errors:F,fetchers:new Map(D.fetchers)})):(pe({errors:F,loaderData:Ce(D.loaderData,U,T,F),fetchers:new Map(D.fetchers)}),G=!1)}(t,n,h,_,d,f.active,a,b,p):($.set(t,{routeId:n,path:h}),async function(t,n,r,i,o,a,c,u,l){let d=D.fetchers.get(t);Ve(t,ze(l,d?d.data:void 0),{flushSync:c});let f=new AbortController,h=ye(e.history,r,f.signal);if(a){let e=await lt(o,r,h.signal);if("aborted"===e.type)return;if("error"===e.type)return void Ke(t,n,e.error,{flushSync:c});if(!e.matches)return void Ke(t,n,ke(404,{pathname:r}),{flushSync:c});i=We(o=e.matches,r)}q.set(t,f);let p=z,m=await je("loader",D,h,[i],o,t),v=m[i.route.id];Pe(v)&&(v=await Ge(v,h.signal,!0)||v);q.get(t)===f&&q.delete(t);if(h.signal.aborted)return;if(ce.has(t))return void Ve(t,Xe(void 0));if(De(v))return X>p?void Ve(t,Xe(void 0)):(J.add(t),void await Ie(h,v,!1,{preventScrollReset:u}));if(Re(v))return void Ke(t,n,v.error);s(!Pe(v),"Unhandled fetcher deferred data"),Ve(t,Xe(v.data))}(t,n,h,_,d,f.active,a,b,p))},revalidate:function(){Ue(),pe({revalidation:"loading"}),"submitting"!==D.navigation.state&&("idle"!==D.navigation.state?Se(j||D.historyAction,D.navigation.location,{overrideNavigation:D.navigation,enableViewTransition:!0===U}):Se(D.historyAction,D.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Je,deleteFetcher:function(e){if(E.v7_fetcherPersist){let t=(oe.get(e)||0)-1;t<=0?(oe.delete(e),ce.add(e)):oe.set(e,t)}else $e(e);pe({fetchers:new Map(D.fetchers)})},dispose:function(){w&&w(),B&&B(),C.clear(),O&&O.abort(),D.fetchers.forEach(((e,t)=>$e(t))),D.blockers.forEach(((e,t)=>nt(t)))},getBlocker:function(e,t){let n=D.blockers.get(e)||te;return fe.get(e)!==t&&fe.set(e,t),n},deleteBlocker:nt,patchRoutes:function(e,t){let n=null==u;he(e,t,u||m,h,a),n&&(m=[...m],pe({}))},_internalFetchControllers:q,_internalActiveDeferreds:de,_internalSetRoutes:function(e){h={},u=v(e,a,void 0,h)}},f}Symbol("deferred");function ae(e,t,n,r,i,o,a,s){let c,u;if(a){c=[];for(let e of t)if(c.push(e),e.route.id===a){u=e;break}}else c=t,u=t[t.length-1];let l=x(i||".",j(c,o),P(e.pathname,n)||e.pathname,"path"===s);if(null==i&&(l.search=e.search,l.hash=e.hash),(null==i||""===i||"."===i)&&u){let e=Ve(l.search);if(u.route.index&&!e)l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&e){let e=new URLSearchParams(l.search),t=e.getAll("index");e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();l.search=n?"?"+n:""}}return r&&"/"!==n&&(l.pathname="/"===l.pathname?n:U([n,l.pathname])),d(l)}function se(e,t,n,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:n};if(r.formMethod&&!Ue(r.formMethod))return{path:n,error:ke(405,{method:r.formMethod})};let i,o,a=()=>({path:n,error:ke(400,{type:"invalid-body"})}),c=r.formMethod||"get",u=e?c.toUpperCase():c.toLowerCase(),l=Ie(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!Fe(u))return a();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce(((e,t)=>{let[n,r]=t;return""+e+n+"="+r+"\n"}),""):String(r.body);return{path:n,submission:{formMethod:u,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!Fe(u))return a();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:u,formAction:l,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return a()}}}if(s("function"==typeof FormData,"FormData is not available in this environment"),r.formData)i=Ae(r.formData),o=r.formData;else if(r.body instanceof FormData)i=Ae(r.body),o=r.body;else if(r.body instanceof URLSearchParams)i=r.body,o=Se(i);else if(null==r.body)i=new URLSearchParams,o=new FormData;else try{i=new URLSearchParams(r.body),o=Se(i)}catch(e){return a()}let h={formMethod:u,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(Fe(h.formMethod))return{path:n,submission:h};let p=f(n);return t&&p.search&&Ve(p.search)&&i.append("index",""),p.search="?"+i,{path:d(p),submission:h}}function ce(e,t,n){void 0===n&&(n=!1);let r=e.findIndex((e=>e.route.id===t));return r>=0?e.slice(0,n?r+1:r):e}function ue(e,t,n,i,o,a,s,c,u,l,d,f,h,p,m,v){let _=v?Re(v[1])?v[1].error:v[1].data:void 0,b=e.createURL(t.location),y=e.createURL(o),A=n;a&&t.errors?A=ce(n,Object.keys(t.errors)[0],!0):v&&Re(v[1])&&(A=ce(n,v[0]));let S=v?v[1].statusCode:void 0,E=s&&S&&S>=400,w=A.filter(((e,n)=>{let{route:o}=e;if(o.lazy)return!0;if(null==o.loader)return!1;if(a)return le(o,t.loaderData,t.errors);if(function(e,t,n){let r=!t||n.route.id!==t.route.id,i=void 0===e[n.route.id];return r||i}(t.loaderData,t.matches[n],e)||u.some((t=>t===e.route.id)))return!0;let s=t.matches[n],l=e;return fe(e,r({currentUrl:b,currentParams:s.params,nextUrl:y,nextParams:l.params},i,{actionResult:_,actionStatus:S,defaultShouldRevalidate:!E&&(c||b.pathname+b.search===y.pathname+y.search||b.search!==y.search||de(s,l))}))})),C=[];return f.forEach(((e,o)=>{if(a||!n.some((t=>t.route.id===e.routeId))||d.has(o))return;let s=g(p,e.path,m);if(!s)return void C.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(o),f=We(s,e.path),v=!1;h.has(o)?v=!1:l.has(o)?(l.delete(o),v=!0):v=u&&"idle"!==u.state&&void 0===u.data?c:fe(f,r({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},i,{actionResult:_,actionStatus:S,defaultShouldRevalidate:!E&&c})),v&&C.push({key:o,routeId:e.routeId,path:e.path,matches:s,match:f,controller:new AbortController})})),[w,C]}function le(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=null!=t&&void 0!==t[e.id],i=null!=n&&void 0!==n[e.id];return!(!r&&i)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!i)}function de(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function fe(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function he(e,t,n,r,i){var o;let a;if(e){let t=r[e];s(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),a=t.children}else a=n;let c=v(t.filter((e=>!a.some((t=>pe(e,t))))),i,[e||"_","patch",String((null==(o=a)?void 0:o.length)||"0")],r);a.push(...c)}function pe(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every(((e,n)=>{var r;return null==(r=t.children)?void 0:r.some((t=>pe(e,t)))})))}async function me(e){let{matches:t}=e,n=t.filter((e=>e.shouldLoad));return(await Promise.all(n.map((e=>e.resolve())))).reduce(((e,t,r)=>Object.assign(e,{[n[r].route.id]:t})),{})}async function ve(e,t,n,i,o,a,u,l,d,f){let h=a.map((e=>e.route.lazy?async function(e,t,n){if(!e.lazy)return;let i=await e.lazy();if(!e.lazy)return;let o=n[e.id];s(o,"No route found in manifest");let a={};for(let e in i){let t=void 0!==o[e]&&"hasErrorBoundary"!==e;c(!t,'Route "'+o.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||m.has(e)||(a[e]=i[e])}Object.assign(o,a),Object.assign(o,r({},t(o),{lazy:void 0}))}(e.route,d,l):void 0)),v=a.map(((e,n)=>{let a=h[n],c=o.some((t=>t.route.id===e.route.id));return r({},e,{shouldLoad:c,resolve:async n=>(n&&"GET"===i.method&&(e.route.lazy||e.route.loader)&&(c=!0),c?async function(e,t,n,r,i,o){let a,c,u=r=>{let a,s=new Promise(((e,t)=>a=t));c=()=>a(),t.signal.addEventListener("abort",c);let u=i=>"function"!=typeof r?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+n.route.id+"]")):r({request:t,params:n.params,context:o},...void 0!==i?[i]:[]),l=(async()=>{try{return{type:"data",result:await(i?i((e=>u(e))):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([l,s])};try{let i=n.route[e];if(r)if(i){let e,[t]=await Promise.all([u(i).catch((t=>{e=t})),r]);if(void 0!==e)throw e;a=t}else{if(await r,i=n.route[e],!i){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw ke(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:p.data,result:void 0}}a=await u(i)}else{if(!i){let e=new URL(t.url);throw ke(404,{pathname:e.pathname+e.search})}a=await u(i)}s(void 0!==a.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+n.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:p.error,result:e}}finally{c&&t.signal.removeEventListener("abort",c)}return a}(t,i,e,a,n,f):Promise.resolve({type:p.data,result:void 0}))})})),g=await e({matches:v,request:i,params:a[0].params,fetcherKey:u,context:f});try{await Promise.all(h)}catch(e){}return g}async function ge(e){let{result:t,type:n}=e;if(xe(t)){let e;try{let n=t.headers.get("Content-Type");e=n&&/\bapplication\/json\b/.test(n)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:p.error,error:e}}return n===p.error?{type:p.error,error:new q(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:p.data,data:e,statusCode:t.status,headers:t.headers}}if(n===p.error){if(je(t)){var r,i;if(t.data instanceof Error)return{type:p.error,error:t.data,statusCode:null==(i=t.init)?void 0:i.status};t=new q((null==(r=t.init)?void 0:r.status)||500,void 0,t.data)}return{type:p.error,error:t,statusCode:Y(t)?t.status:void 0}}var o,a,s,c;return function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:p.deferred,deferredData:t,statusCode:null==(o=t.init)?void 0:o.status,headers:(null==(a=t.init)?void 0:a.headers)&&new Headers(t.init.headers)}:je(t)?{type:p.data,data:t.data,statusCode:null==(s=t.init)?void 0:s.status,headers:null!=(c=t.init)&&c.headers?new Headers(t.init.headers):void 0}:{type:p.data,data:t}}function _e(e,t,n,r,i,o){let a=e.headers.get("Location");if(s(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!ne.test(a)){let s=r.slice(0,r.findIndex((e=>e.route.id===n))+1);a=ae(new URL(t.url),s,i,!0,a,o),e.headers.set("Location",a)}return e}function be(e,t,n){if(ne.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=null!=P(i.pathname,n);if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function ye(e,t,n,r){let i=e.createURL(Ie(t)).toString(),o={signal:n};if(r&&Fe(r.formMethod)){let{formMethod:e,formEncType:t}=r;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(r.json)):"text/plain"===t?o.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?o.body=Ae(r.formData):o.body=r.formData}return new Request(i,o)}function Ae(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Se(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Ee(e,t,n,r,i){let o,a={},c=null,u=!1,l={},d=n&&Re(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let f=n.route.id,h=t[f];if(s(!De(h),"Cannot handle redirect results in processLoaderData"),Re(h)){let t=h.error;if(void 0!==d&&(t=d,d=void 0),c=c||{},i)c[f]=t;else{let n=Le(e,f);null==c[n.route.id]&&(c[n.route.id]=t)}a[f]=void 0,u||(u=!0,o=Y(h.error)?h.error.status:500),h.headers&&(l[f]=h.headers)}else Pe(h)?(r.set(f,h.deferredData),a[f]=h.deferredData.data,null==h.statusCode||200===h.statusCode||u||(o=h.statusCode),h.headers&&(l[f]=h.headers)):(a[f]=h.data,h.statusCode&&200!==h.statusCode&&!u&&(o=h.statusCode),h.headers&&(l[f]=h.headers))})),void 0!==d&&n&&(c={[n[0]]:d},a[n[0]]=void 0),{loaderData:a,errors:c,statusCode:o||200,loaderHeaders:l}}function we(e,t,n,i,o,a,c){let{loaderData:u,errors:l}=Ee(t,n,i,c,!1);return o.forEach((t=>{let{key:n,match:i,controller:o}=t,c=a[n];if(s(c,"Did not find corresponding fetcher result"),!o||!o.signal.aborted)if(Re(c)){let t=Le(e.matches,null==i?void 0:i.route.id);l&&l[t.route.id]||(l=r({},l,{[t.route.id]:c.error})),e.fetchers.delete(n)}else if(De(c))s(!1,"Unhandled fetcher revalidation redirect");else if(Pe(c))s(!1,"Unhandled fetcher deferred data");else{let t=Xe(c.data);e.fetchers.set(n,t)}})),{loaderData:u,errors:l}}function Ce(e,t,n,i){let o=r({},t);for(let r of n){let n=r.route.id;if(t.hasOwnProperty(n)?void 0!==t[n]&&(o[n]=t[n]):void 0!==e[n]&&r.route.loader&&(o[n]=e[n]),i&&i.hasOwnProperty(n))break}return o}function Te(e){return e?Re(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Le(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function Me(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ke(e,t){let{pathname:n,routeId:r,method:i,type:o,message:a}=void 0===t?{}:t,s="Unknown Server Error",c="Unknown @remix-run/router error";return 400===e?(s="Bad Request",i&&n&&r?c="You made a "+i+' request to "'+n+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===o?c="defer() is not supported in actions":"invalid-body"===o&&(c="Unable to encode submission body")):403===e?(s="Forbidden",c='Route "'+r+'" does not match URL "'+n+'"'):404===e?(s="Not Found",c='No route matches URL "'+n+'"'):405===e&&(s="Method Not Allowed",i&&n&&r?c="You made a "+i.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':i&&(c='Invalid request method "'+i.toUpperCase()+'"')),new q(e||500,s,new Error(c),!0)}function Ne(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(De(r))return{key:n,result:r}}}function Ie(e){return d(r({},"string"==typeof e?f(e):e,{hash:""}))}function Oe(e){return xe(e.result)&&$.has(e.result.status)}function Pe(e){return e.type===p.deferred}function Re(e){return e.type===p.error}function De(e){return(e&&e.type)===p.redirect}function je(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function xe(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Ue(e){return J.has(e.toLowerCase())}function Fe(e){return X.has(e.toLowerCase())}async function Be(e,t,n,r,i){let o=Object.entries(t);for(let a=0;a(null==e?void 0:e.route.id)===s));if(!u)continue;let l=r.find((e=>e.route.id===u.route.id)),d=null!=l&&!de(l,u)&&void 0!==(i&&i[u.route.id]);Pe(c)&&d&&await Ge(c,n,!1).then((e=>{e&&(t[s]=e)}))}}async function He(e,t,n){for(let r=0;r(null==e?void 0:e.route.id)===o))&&(Pe(c)&&(s(a,"Expected an AbortController for revalidating fetcher deferred result"),await Ge(c,a.signal,!0).then((e=>{e&&(t[i]=e)}))))}}async function Ge(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:p.data,data:e.deferredData.unwrappedData}}catch(e){return{type:p.error,error:e}}return{type:p.data,data:e.deferredData.data}}}function Ve(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function We(e,t){let n="string"==typeof t?f(t).search:t.search;if(e[e.length-1].route.index&&Ve(n||""))return e[e.length-1];let r=D(e);return r[r.length-1]}function qe(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:a}=e;if(t&&n&&r)return null!=i?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i}:null!=o?{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0}:void 0!==a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}:void 0}function Ye(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function ze(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Xe(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}},16409:function(e,t,n){"use strict";n.d(t,{EO:function(){return R},FM:function(){return P},Lg:function(){return f}});var r=n(26616),i=n(39344),o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}"function"==typeof SuppressedError&&SuppressedError;var l=function(e){var t=e.name,n=e.logger,r=e.url,i=e.callback,o=e.isWithLogs;try{i(),n.completeStep(t)}catch(e){o&&console.error("apiRequest(".concat(r,").").concat(t," callback"),e)}},d=function(e){function t(n,r){var i=void 0===r?{}:r,o=i.cause,a=i.detail,s=i.type,c=e.call(this,n,{cause:o})||this;return c.detail=a,c.type=s,Object.setPrototypeOf(c,t.prototype),c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error),f={UNEXPECTED:"unexpected"},h=(0,i.object)({og:(0,i.optional)((0,i.nullable)((0,i.type)({}))),title:(0,i.optional)((0,i.nullable)((0,i.string)())),description:(0,i.optional)((0,i.nullable)((0,i.string)()))}),p="success",m="error",v=function(){return(0,i.union)([(0,i.array)(),(0,i.object)()])},g=function(){return(0,i.nonempty)((0,i.string)())},_=function(){return(0,i.refine)((0,i.unknown)(),"required",(function(e){return null!=e}))},b=(0,i.object)({status:(0,i.literal)(200),body:(0,i.object)({data:v(),meta:(0,i.optional)(h),status:(0,i.optional)((0,i.literal)(p))})}),y=(0,i.object)({status:(0,i.union)([(0,i.literal)(200),(0,i.literal)(301),(0,i.literal)(302)]),body:(0,i.object)({status:(0,i.optional)((0,i.literal)("redirect")),data:(0,i.object)({location:(0,i.string)(),debug:(0,i.optional)(g())})})}),A=(0,i.object)({status:(0,i.literal)(400),body:(0,i.object)({errors:v(),status:(0,i.optional)((0,i.literal)(m)),data:(0,i.optional)(v())})}),S=(0,i.object)({status:(0,i.literal)(500),body:(0,i.object)({errors:v(),status:(0,i.optional)((0,i.literal)(m)),data:(0,i.optional)((0,i.object)({debug:g()}))})}),E=(0,i.object)({status:(0,i.literal)(404),body:(0,i.object)({errors:v(),status:(0,i.optional)((0,i.literal)(m)),data:(0,i.optional)((0,i.object)({debug:g()}))})}),w=(0,i.union)([A,S,E]),C=(0,i.object)({status:(0,i.literal)(403),body:(0,i.object)({status:(0,i.optional)((0,i.literal)("forbidden")),data:(0,i.optional)((0,i.object)({debug:g()}))})}),T=(0,i.object)({status:(0,i.literal)(503),body:(0,i.object)({status:(0,i.optional)((0,i.literal)("unavailable"))})}),L=(0,i.object)({status:(0,i.literal)(401),body:(0,i.object)({status:(0,i.optional)((0,i.literal)("unauthorized")),data:(0,i.object)({location:(0,i.string)(),debug:(0,i.optional)(g())})})}),M=(0,i.object)({status:(0,i.literal)(200),body:(0,i.union)([(0,i.type)({data:v()}),(0,i.type)({result:v()}),(0,i.object)({status:(0,i.literal)(p)})])}),k=(0,i.object)({status:(0,i.literal)(200),body:(0,i.union)([(0,i.type)({error:_()}),(0,i.type)({errors:_()}),(0,i.type)({result:_(),status:(0,i.literal)(m)})])}),N=(0,i.union)([b,y,w,T,C,L,M,k]),I=function(e,t){return void 0===t&&(t=!0),s(void 0,void 0,void 0,(function(){var n;return c(this,(function(r){switch(r.label){case 0:return t?[2,e.json()]:[4,e.text()];case 1:n=r.sent();try{return[2,JSON.parse(n)]}catch(e){return[2,n]}return[2]}}))}))},O=function(e){return s(void 0,void 0,void 0,(function(){var t,n,r,o,a,s,u,l,f,p;return c(this,(function(c){switch(c.label){case 0:return t=e.response,n=e.logger,r=e.expect,o=e.isOurApi,a=e.isWithLogs,[4,I(t,o)];case 1:return s=c.sent(),n.completeStep("parsing json() or text() response"),u=o?function(e,t){if(void 0===t&&(t=!1),(0,i.is)(e,y))throw location.assign(String(e.body.data.location)),new d("Redirect response");if((0,i.is)(e,C))throw new d("Forbidden");if((0,i.is)(e,T))throw new d("Unavailable");if((0,i.is)(e,L))throw new d("Unauthorized");if((0,i.is)(e,w))throw new d(String(e.body.errors),{detail:e.body.errors});if((0,i.is)(e,k)){if(t&&console.warn("> LegacyErrorResponse is deprecated ",e),"errors"in e.body)throw new d(String(e.body.errors),{detail:e.body.errors});if("error"in e.body)throw new d(String(e.body.error),{detail:{global:[String(e.body.error)]}});throw new d(String(e.body.result))}if((0,i.is)(e,b))return e.body.data;if((0,i.is)(e,M))return t&&console.warn("> LegacySuccessResponse is deprecated ",e),"result"in e.body?e.body.result:null;throw new d(String(e))}(N.create({status:t.status,body:s}),a):s,n.completeStep("validating response format"),l=function(e,t){return t?t.create(e):e}(u,r),n.completeStep("validating data type"),f=null==s?void 0:s.meta,p=function(e){return e?h.create(e):null}(f),n.completeStep("validating metadata"),[2,{response:t,data:l,meta:p,isFetched:!0,isError:!1,isSuccess:!0}]}}))}))},P=function(e,t){return s(void 0,void 0,void 0,(function(){var n,i,o,h,p,m,v,g,_,b,y,A,S,E;return c(this,(function(w){switch(w.label){case 0:n=function(e){var t={"building params":!1,fetching:!1,"parsing json() or text() response":!1,"validating response format":!1,"validating data type":!1,"validating metadata":!1,onSuccess:null,onError:null,onComplete:!1};return{completeStep:function(e){t[e]=!0},isWithErrors:function(){return Object.values(t).some((function(e){return!1===e}))},getStatus:function(){return Object.entries(t).reduce((function(e,t){var n=u(t,2),r=n[0],i=n[1];return e+"".concat(r," ").concat(function(e){return null===e?"❔":e?"✔":"❌"}(i),"\n")}),e?"Request status (".concat(e,"):\n"):"Request status:\n")}}}(e),i=function(e){var t=e.body,n=e.headers,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i User aborted the request ",n),[2,{response:null}]):e instanceof d?[2,{response:t,error:e,isFetched:!0,isError:!0,isSuccess:!1}]:(o=new d("Unexpected error",a({type:f.UNEXPECTED,detail:{global:[String(e)]}},e instanceof Error&&{cause:e})),[2,{response:t,error:o,isFetched:!0,isError:!0,isSuccess:!1}])}))})))];case 5:return(E=w.sent()).error&&l({url:e,logger:n,name:"onError",callback:function(){return v(E.error,b)}}),y=E,[3,6];case 6:return l({url:e,logger:n,name:"onComplete",callback:function(){return _(b)}}),m&&n.isWithErrors()&&console.log(n.getStatus()),[2,y]}var C}))}))},R=((0,i.empty)((0,i.array)()),function(e){return Object.entries(e).reduce((function(e,t){var n,r=u(t,2),i=r[0],o=r[1];return a(a({},e),!!(null==o?void 0:o[0])&&((n={})[i]=o[0],n))}),{})})},31179:function(e,t){"use strict";function n(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i1),o=!1,a=!1;if("undefined"!=typeof window){var s={get passive(){o=!0}};window.addEventListener("testPassive",r,s),window.removeEventListener("testPassive",r),window.CSS&&CSS.supports("color","var(--color)")&&(a=!0)}var c,u,l,d=[],f=!1,h=-1,p=function(e){return d.some((function(t){return!!(t.options&&t.options.allowTouchMove&&t.options.allowTouchMove(e))}))},m=function(e){var t=e||window.event;return!!p(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},v=function(){void 0!==l&&(document.body.style.paddingRight=l,l=void 0),void 0!==c&&(document.body.style.overflow=c,c=void 0)},g=function(e){return void 0===e&&(e={}),window.requestAnimationFrame((function(){if(void 0===u){u={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var t=window.scrollY,n=window.scrollX,r=window.innerHeight;document.documentElement.style.height=e.disableIOSScrollReactionStatusBar?"calc(100vh - 1px)":"100vh",document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.top=0!==t?-t+"px":"0",document.body.style.right=a?"var(--safe-area-inset-right, 0px)":"0",document.body.style.bottom="0",document.body.style.left=0!==(i=n)?a?"calc(var(--safe-area-inset-left, 0px) + "+-i+"px)":"0":a?"var(--safe-area-inset-left, 0px)":"0",e.disableIOSScrollCompensation||setTimeout((function(){return window.requestAnimationFrame((function(){var e=r-window.innerHeight;e&&t>=r&&t+e!==0&&(document.body.style.top=-(t+e)+"px")}))}),300)}var i}))},_=function(){if(void 0!==u){var e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);document.documentElement.style.height="",document.body.style.overflow="",document.body.style.position=u.position,document.body.style.top=u.top?u.top:"",document.body.style.right="",document.body.style.bottom="",document.body.style.left=u.left?u.left:"",window.scrollTo(t,e),u=void 0}};t.mh=function(e,t){if(e){if(!d.some((function(t){return t.targetElement===e}))){var r={targetElement:e,options:t||{}};d=n(n([],d),[r]),i?g(t):function(e){if(void 0===l){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;if(t&&n>0){var r=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);l=document.body.style.paddingRight,document.body.style.paddingRight=r+n+"px"}}void 0===c&&(c=document.body.style.overflow,document.body.style.overflow="hidden")}(t),i&&(e.ontouchstart=function(e){1===e.targetTouches.length&&(h=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-h;!p(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?m(e):e.stopPropagation())}(t,e)},f||(document.addEventListener("touchmove",m,o?{passive:!1}:void 0),f=!0))}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},t.fY=function(e){e?(d=d.filter((function(t){return t.targetElement!==e})),i&&(e.ontouchstart=null,e.ontouchmove=null,f&&0===d.length&&(document.removeEventListener("touchmove",m),f=!1)),i?_():v()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}},46517:function(e,t,n){"use strict";n.d(t,{Kq:function(){return p},Ng:function(){return y},d4:function(){return g},wA:function(){return A},y$:function(){return l}});var r=n(17402),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n>=1}else{for(a=1,o=0;o>=1}0==--p&&(p=Math[i(140)](2,v),v++),delete l[h]}else for(a=u[h],o=0;o>=1;0==--p&&(p=Math[i(140)](2,v),v++),u[c]=m++,h=String(s)}if(""!==h){if(Object.prototype[i(148)][i(147)](l,h)){if(d(h,0)<256){for(o=0;o>=1}else{for(a=1,o=0;o>=1}0==--p&&(p=Math[i(140)](2,v),v++),delete l[h]}else for(a=u[h],o=0;o>=1;0==--p&&(p=Math.pow(2,v),v++)}for(a=2,o=0;o>=1;for(;;){if(g<<=1,_===t-1){f.push(n(g));break}_++}return f[i(165)]("")}(e,6,(function(e){return o[S(164)](e)})))+((e=e[t(149)]%4)?t(154).substring(e):"")}function h(e,t){for(var n=r,i=e[n(155)](""),o=e.length,a=o;0<=--a;){var s=(t%(a+1)+a)%o,c=[i[s],i[a]];i[a]=c[0],i[s]=c[1]}return i[n(165)]("")}var p=function(e,t){return e<>>32-t},m=function(e){for(var t=r,n="",i=7;0<=i;i--)n+=(e>>>4*i&15)[t(137)](16);return n};function v(e){for(var t,n,i,o,a,s,c,u,l=r,f=new Array(80),h=1732584193,v=4023233417,g=2562383102,_=271733878,b=3285377520,y=(e=unescape(encodeURIComponent(e)))[l(149)],A=[],S=0;S>>29),A[l(153)](y<<3&4294967295),t=0;t>>29),q[s(153)](W<<3&4294967295),L%1==0&&(C[C[s(149)]-1]=T),N=0;N>H,N[p+1]=g*B>>H,N[p+2]=_*B>>H,v-=b,g-=y,_-=A,b-=U.r,y-=U.g,A-=U.b,f=m+((f=u+c+1)>H,N[f+1]=g*B>>H,N[f+2]=_*B>>H,v-=b,g-=y,_-=A,b-=U.r,y-=U.g,A-=U.b,f=u+((f=l+R)>q,0!==I?(I=255/I,R[p]=(v*W>>q)*I,R[p+1]=(g*W>>q)*I,R[p+2]=(_*W>>q)*I):R[p]=R[p+1]=R[p+2]=0,v-=y,g-=A,_-=S,b-=E,y-=G.r,A-=G.g,S-=G.b,E-=G.a,f=m+((f=u+c+1)>q,I>0?(I=255/I,R[f]=(v*W>>q)*I,R[f+1]=(g*W>>q)*I,R[f+2]=(_*W>>q)*I):R[f]=R[f+1]=R[f+2]=0,v-=y,g-=A,_-=S,b-=E,y-=G.r,A-=G.g,S-=G.b,E-=G.a,f=u+((f=l+U)1?t[1]:"";return"ms"===n?"ms":n&&n.length?n[0].toUpperCase()+n.substr(1):""}(),v=function(e,t){e&&(e.style["".concat(m,"Transform")]="translate(".concat(t.x,"px,").concat(t.y,"px)"))},g=function(e){return Math.random()<.5?-e:e},_=function(e,t){return e/16.666666666666668*t};t.Hs=function(){var e,t=c,i=function(){var e=t.options.pattern!==n.Chaotic;t=o(o({},t),{bounds:o(o({},t.bounds),l(t.targets.container,t.targets.el,e))})},a=function(){t=o(o({},t),{dimensions:o(o({},t.dimensions),u(t.targets.el)),containerDimensions:o(o({},t.containerDimensions),u(t.targets.container))})},s=function(){var e=t.options,i=e.pattern,a=e.velocity,s=e.direction,c=Math.PI/180*45,u=a*Math.cos(c),l=a*Math.sin(c);i===n.DiagonalAscending&&s===r.Left&&(t=o(o({},t),{velocityX:-u,velocityY:-l})),i===n.DiagonalAscending&&s===r.Right&&(t=o(o({},t),{velocityX:u,velocityY:-l})),i===n.DiagonalDescending&&s===r.Left&&(t=o(o({},t),{velocityX:-u,velocityY:l})),i===n.DiagonalDescending&&s===r.Right&&(t=o(o({},t),{velocityX:u,velocityY:l}))},m=function(){var e=t.options,i=e.pattern,a=e.velocity,c=e.direction;t=o(o({},t),{velocityX:a,velocityY:a}),i===n.Chaotic&&(t=o(o({},t),{velocityX:g(a),velocityY:g(a)})),h(i)&&s(),[n.Vertical,n.Horizontal].includes(i)&&[r.Up,r.Left].includes(c)&&(t=o(o({},t),{velocityX:-a,velocityY:-a}))},b=function(e){var n=e-t.lastFrame,r=_(t.velocityX,n),i=_(t.velocityY,n);return t.lastFrame=e,{velocityX:r,velocityY:i}},y=function(e){return et.bounds.bottom},S=function(e){return et.bounds.right},w=function(e,i){void 0===e&&(e=t.velocityX),void 0===i&&(i=t.velocityY);var a=t.options,s=a.pattern,c=a.direction,u=t.bounds,l=t.dimensions,d=t.containerDimensions,f=d.width/4,h=d.height/4;switch(s){case n.Vertical:var p=t.position.x+f,m=p+l.width-u.right;t=o(o({},t),{position:o(o({},t.position),{x:p+l.width/2>u.right?t.bounds.left+m:p})}),c===r.Down&&(t=o(o({},t),{position:o(o({},t.position),{y:u.top})})),c===r.Up&&(t=o(o({},t),{position:o(o({},t.position),{y:u.bottom})}));break;case n.Horizontal:var v=t.position.y+h,g=v+l.height-u.bottom;t=o(o({},t),{position:o(o({},t.position),{y:v+l.height/2>u.bottom?t.bounds.top+g:v})}),c===r.Left&&(t=o(o({},t),{position:o(o({},t.position),{x:u.right})})),c===r.Right&&(t=o(o({},t),{position:o(o({},t.position),{x:u.left})}));break;case n.DiagonalAscending:var _=t.position.x+e,b=t.position.y+i;c===r.Left&&(t=o(o({},t),{position:o(o(o({},t.position),S(_)&&{x:t.bounds.right}),y(b)&&{y:t.bounds.bottom})})),c===r.Right&&(t=o(o({},t),{position:o(o(o({},t.position),E(_)&&{x:t.bounds.left}),y(b)&&{y:t.bounds.bottom})}));break;case n.DiagonalDescending:_=t.position.x+e,b=t.position.y+i,c===r.Left&&(t=o(o({},t),{position:o(o(o({},t.position),S(_)&&{x:t.bounds.right}),A(b)&&{y:t.bounds.top})})),c===r.Right&&(t=o(o({},t),{position:o(o(o({},t.position),E(_)&&{x:t.bounds.left}),A(b)&&{y:t.bounds.top})}));break;case n.Chaotic:_=Math.min(Math.max(t.position.x+e,t.bounds.left),t.bounds.right),b=Math.min(Math.max(t.position.y+i,t.bounds.top),t.bounds.bottom),t=o(o({},t),{position:{x:_,y:b}})}},C=function(e,i){void 0===e&&(e=t.velocityX),void 0===i&&(i=t.velocityY);var o=t.options,a=o.pattern,s=o.direction,c=t.position,u=c.x+e,l=c.y+i;switch(a){case n.Vertical:return s===r.Up&&y(l)||s===r.Down&&A(l);case n.Horizontal:return s===r.Left&&S(u)||s===r.Right&&E(u);case n.DiagonalAscending:return s===r.Left&&(y(l)||S(u))||s===r.Right&&(y(l)||E(u));case n.DiagonalDescending:return s===r.Left&&(A(l)||S(u))||s===r.Right&&(A(l)||E(u));case n.Chaotic:return y(l)||S(u)||A(l)||E(u);default:return!1}},T=function(e){var n;void 0===e&&(e=Number(null===(n=document.timeline)||void 0===n?void 0:n.currentTime)),function(){var e=t.position,n=t.bounds,r=t.velocityX,i=t.velocityY;(e.x+r>n.right||e.x+rn.bottom||e.y+i0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var u=c.length,l=p(c,u);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},78381:function(e,t,n){!function(){"use strict";function e(e,t){void 0===t&&(t=window);var n=null;return"getOwnPropertyDescriptor"in Object&&(n=Object.getOwnPropertyDescriptor(t,e)),!n||n.configurable}if(String.prototype.endsWith&&"nodejs"!==window.name||!e("endsWith",String.prototype)||Object.defineProperty(String.prototype,"endsWith",{configurable:!0,value:function(e,t){var n=this.toString();if(e instanceof RegExp)throw new TypeError("First argument to String.prototype.endsWith must not be a regular expression");if(""===(e=String(e)))return!0;(void 0===t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}}),!String.prototype.startsWith&&e("startsWith",String.prototype)&&Object.defineProperty(String.prototype,"startsWith",{enumerable:!1,configurable:!0,writable:!1,value:function(e,t){return t=t||0,this.indexOf(e,t)===t}}),String.prototype.includes||(String.prototype.includes=function(e,t){return"number"!=typeof t&&(t=0),!(void 0===e||t+e.length>this.length)&&-1!==this.indexOf(e,t)}),!String.prototype.padStart||!String.prototype.padEnd){var t=function(e,t,n,r){if(n=Math.floor(n||0),e.length>n)return e;for(r=r||" ";r.length>>0;if(0===r)return!1;var i=0|t,o=Math.max(i>=0?i:r-Math.abs(i),0);function a(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}for(;o0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),o)},function(e){var t,n,r=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(arguments.length>1&&(t=arguments[1]),void 0!==t){if(!i(t))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(n=arguments[2])}for(var o,s=a(r.length),c=i(this)?Object(new this(s)):new Array(s),u=0;u>>0,i=arguments[1],o=0;o>>0,o=0;o-1},e.prototype.get=function(e){var t=c.call(this._keys,e);return t>-1?this._values[t]:void 0},e.prototype.set=function(e,t){var n=c.call(this._keys,e);n>-1?(this._items[n][1]=t,this._values[n]=t):(this._items.push([e,t]),this._keys.push(e),this._values.push(t))},Object.defineProperty(e.prototype,"size",{get:function(){return this._items.length},enumerable:!1,configurable:!0}),e.prototype.clear=function(){this._keys.length=this._values.length=this._items.length=0},e.prototype.delete=function(e){var t=c.call(this._keys,e);return t>-1&&(this._keys.splice(t,1),this._values.splice(t,1),this._items.splice(t,1),!0)},e.prototype.forEach=function(e){if("function"!=typeof e)throw new TypeError("Invalid callback function given to forEach");var t=this.iterator();function n(){try{return t.next()}catch(e){return}}for(var r=n(),i=n();void 0!==r;)e.apply(arguments[1],[r[1],r[0],this]),r=i,i=n()},e.prototype.iterator=function(){return new u(this,"keys+values")},e.prototype.toString=function(){return"[Object Map]"},e}();window.Map=l}if(void 0===window.Set||"function"!=typeof window.Set.prototype.keys)var d=window.Set=function(){var t={"[object Array]":!0,"[object Arguments]":!0,"[object HTMLCollection]":!0,"[object NodeList]":!0},n=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function i(e,t){return n.call(e,t)}var o=Object.defineProperty&&Object.defineProperties;function a(t,n,r,i,a){o&&e(n,t)?Object.defineProperty(t,n,{enumerable:i,configurable:!0,writable:a,value:r}):t[n]=r}var s=!1;function c(e,t){s=!0,e.size=t,s=!1}function u(n){var i,c,u=0;if(a(this,"baseType","Set",!1,!1),a(this,"_data",{},!1,!0),o&&e("size",this)?Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,get:function(){return u},set:function(e){if(!s)throw new Error("Can't set size property on Set object.");u=e}}):this.size=0,null!=n)if("object"==typeof(i=n)&&(c=r.call(i),!0===t[c]||"number"==typeof i.length&&i.length>=0&&(0===i.length||"object"==typeof i[0]&&i[0].nodeType>0)))for(var l=0;l=1e4?n=6:e<1e4&&(n=4),e=(e<0?"-":e>=1e4?"+":"")+p(t,n),isFinite(this.valueOf())?"".concat(e,"-").concat(h(this.getUTCMonth()+1),"-").concat(h(this.getUTCDate()),"T").concat(h(this.getUTCHours()),":").concat(h(this.getUTCMinutes()),":").concat(h(this.getUTCSeconds()),".").concat(p(this.getUTCMilliseconds(),3),"Z"):null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var m,v,g,_=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,b=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,y={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},A=function(e){return b.lastIndex=0,b.test(e)?'"'.concat(e.replace(b,(function(e){var t=y[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),'"'):'"'.concat(e,'"')},S=function(e,t){var n,r,i,o,a,s=m,c=t[e];switch(c&&"object"==typeof c&&"function"==typeof c.toJSON&&(c=c.toJSON(e)),"function"==typeof g&&(c=g.call(t,e,c)),typeof c){case"string":return A(c);case"number":return isFinite(c)?String(c):"null";case"boolean":case"null":return String(c);case"object":if(!c)return"null";if(m+=v,a=[],"[object Array]"===Object.prototype.toString.apply(c)){for(o=c.length,n=0;n-1?r.documentElement.innerHTML=e:r.body.innerHTML=e,r}return n.apply(this,arguments)}}(DOMParser),Element.prototype.closest||((X=Element.prototype).matches=X.matches||X.mozMatchesSelector||X.msMatchesSelector||X.oMatchesSelector||X.webkitMatchesSelector,X.closest=X.closest||function(e){return this?this.matches(e)?this:this.parentElement?this.parentElement.closest(e):null:null}),window.DOMTokenList&&!DOMTokenList.prototype.forEach&&(DOMTokenList.prototype.forEach=function(e,t){t=t||window;for(var n=0;n0))for(var e=0,t=Array.from(document.getElementsByTagName("use"));e1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},a.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((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},a.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1===this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,o=null,a=null;if(this.POLL_INTERVAL?o=n.setInterval(r,this.POLL_INTERVAL):(s(n,"resize",r,!0),s(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(a=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(o&&e.clearInterval(o),c(e,"resize",r,!0)),c(t,"scroll",r,!0),a&&a.disconnect()})),t!==(this.root&&this.root.ownerDocument||e)){var u=i(t);u&&this._monitorIntersections(u.ownerDocument)}}},a.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!==n){var r=this.root&&this.root.ownerDocument||e;if(!this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n===t)return!0;for(;n&&n!==r;){var o=i(n);if((n=o&&o.ownerDocument)===t)return!0}return!1}))){var o=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),o(),t!==r){var a=i(t);a&&this._unmonitorIntersections(a.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t=0&&v>=0&&{top:c,bottom:l,left:f,right:p,width:m,height:v}||null),!g)break;_=_&&h(_)}return g}},a.prototype._getRootRect=function(){var t;if(this.root)t=u(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},a.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"===t.unit?t.value:t.value*(n%2?e.width:e.height)/100}));return{top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3],width:e.right+t[1]-(e.left-t[3]),height:e.bottom+t[2]-(e.top-t[0])}},a.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var i=0;i0}})}function i(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}function o(e){this.time=e.time,this.target=e.target,this.rootBounds=l(e.rootBounds),this.boundingClientRect=l(e.boundingClientRect),this.intersectionRect=l(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,i=r.width*r.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function a(e,t){var n,r,i,o=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(o.root&&1!==o.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,i=0,function(){i||(i=window.setTimeout((function(){n(),i=null}),r))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(o.rootMargin),this.thresholds=this._initThresholds(o.threshold),this.root=o.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function c(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}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 l(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 n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function f(e,t){for(var n=t;n;){if(n===e)return!0;n=h(n)}return!1}function h(t){var n=t.parentNode;return 9===t.nodeType&&t!==e?i(t):n&&11===n.nodeType&&n.host?n.host:n&&n.assignedSlot?n.assignedSlot.parentNode:n}}();window.IntersectionObserver=ue.IntersectionObserver,window.IntersectionObserverEntry=ue.IntersectionObserverEntry}var le="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,de=["top","right","bottom","left","width","height","size","weight"],fe="undefined"!=typeof MutationObserver,he=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,r=0;function i(){t&&(t=!1,e()),n&&a()}function o(){window.requestAnimationFrame(i)}function a(){var e=Date.now();if(t){if(e-r<2)return;n=!0}else t=!0,n=!1,setTimeout(o,20);r=e}return a}(this.refresh.bind(this))}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_,n=t.indexOf(e);~n&&t.splice(n,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(){le&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),fe?(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(){le&&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,n=void 0===t?"":t;de.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),pe=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),Ce="undefined"!=typeof WeakMap?new WeakMap:new Map,Te=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 n=he.getInstance(),r=new we(t,n,this);Ce.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Te.prototype[e]=function(){var t;return(t=Ce.get(this))[e].apply(t,arguments)}})),void 0!==window.ResizeObserver?window.ResizeObserver=window.ResizeObserver:window.ResizeObserver=Te,[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(t){!t.hasOwnProperty("append")&&e("append",t)&&Object.defineProperty(t,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Array.prototype.slice.call(arguments),t=document.createDocumentFragment();e.forEach((function(e){e instanceof Node?t.appendChild(e):t.appendChild(document.createTextNode(String(e)))})),this.appendChild(t)}})}));var Le=function(){function e(){this.listeners={}}return e.prototype.addEventListener=function(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n})},e.prototype.dispatchEvent=function(e){var t;if(e.type in this.listeners){for(var n=this.listeners[e.type].slice(),r=0,i=n.length;rt.length?null:t[e]||null},e.prototype.toString=function(){return"[object Storage]"},e}(),Oe=!function(){try{var e=window.localStorage,t="__storage_test__";return e.setItem(t,t),e.getItem(t),e.removeItem(t),!0}catch(e){return!1}}();Oe&&Object.defineProperty(window,"localStorage",{value:new Ie})}()},17402:function(e,t,n){"use strict";n.r(t),n.d(t,{Children:function(){return h},Component:function(){return i.uA},Fragment:function(){return i.FK},PureComponent:function(){return s},StrictMode:function(){return z},Suspense:function(){return v},SuspenseList:function(){return b},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:function(){return U},cloneElement:function(){return G},createContext:function(){return i.q6},createElement:function(){return i.n},createFactory:function(){return B},createPortal:function(){return E},createRef:function(){return i._3},findDOMNode:function(){return W},flushSync:function(){return Y},forwardRef:function(){return d},hydrate:function(){return k},isValidElement:function(){return H},lazy:function(){return _},memo:function(){return c},render:function(){return M},startTransition:function(){return X},unmountComponentAtNode:function(){return V},unstable_batchedUpdates:function(){return q},useCallback:function(){return r.hb},useContext:function(){return r.NT},useDebugValue:function(){return r.MN},useDeferredValue:function(){return K},useEffect:function(){return r.vJ},useErrorBoundary:function(){return r.Md},useImperativeHandle:function(){return r.Yn},useInsertionEffect:function(){return $},useLayoutEffect:function(){return r.Nf},useMemo:function(){return r.Kr},useReducer:function(){return r.WO},useRef:function(){return r.li},useState:function(){return r.J0},useSyncExternalStore:function(){return Q},useTransition:function(){return J},version:function(){return F}});var r=n(45994),i=n(50172);function o(e,t){for(var n in t)e[n]=t[n];return e}function a(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function s(e){this.props=e}function c(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:a(this.props,e)}function r(t){return this.shouldComponentUpdate=n,(0,i.n)(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(s.prototype=new i.uA).isPureReactComponent=!0,s.prototype.shouldComponentUpdate=function(e,t){return a(this.props,e)||a(this.state,t)};var u=i.fF.__b;i.fF.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),u&&u(e)};var l="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function d(e){function t(t){var n=o({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=l,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var f=function(e,t){return null==e?null:(0,i.v2)((0,i.v2)(e).map(t))},h={map:f,forEach:f,count:function(e){return e?(0,i.v2)(e).length:0},only:function(e){var t=(0,i.v2)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:i.v2},p=i.fF.__e;i.fF.__e=function(e,t,n,r){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);p(e,t,n,r)};var m=i.fF.unmount;function v(){this.__u=0,this.t=null,this.__b=null}function g(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function _(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return(0,i.n)(n,o)}return o.displayName="Lazy",o.__f=!0,o}function b(){this.u=null,this.o=null}i.fF.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),m&&m(e)},(v.prototype=new i.uA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=g(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(s):s())};n.__R=a;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},v.prototype.componentWillUnmount=function(){this.t=[]},v.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=o({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var a=t.__a&&(0,i.n)(i.FK,null,e.fallback);return a&&(a.__h=null),[(0,i.n)(i.FK,null,t.__a?null:e.children),a]};var y=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),(0,i.XX)((0,i.n)(A,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function E(e,t){var n=(0,i.n)(S,{__v:e,i:t});return n.containerInfo=t,n}(b.prototype=new i.uA).__a=function(e){var t=this,n=g(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),y(t,e,r)):i()};n?n(o):o()}},b.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,i.v2)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},b.prototype.componentDidUpdate=b.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){y(e,n,t)}))};var w="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,C=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|shape|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,T="undefined"!=typeof document,L=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function M(e,t,n){return null==t.__k&&(t.textContent=""),(0,i.XX)(e,t),"function"==typeof n&&n(),e?e.__c:null}function k(e,t,n){return(0,i.Qv)(e,t),"function"==typeof n&&n(),e?e.__c:null}i.uA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(i.uA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var N=i.fF.event;function I(){}function O(){return this.cancelBubble}function P(){return this.defaultPrevented}i.fF.event=function(e){return N&&(e=N(e)),e.persist=I,e.isPropagationStopped=O,e.isDefaultPrevented=P,e.nativeEvent=e};var R,D={configurable:!0,get:function(){return this.class}},j=i.fF.vnode;i.fF.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var o=-1===t.indexOf("-");for(var a in r={},n){var s=n[a];T&&"children"===a&&"noscript"===t||"value"===a&&"defaultValue"in n&&null==s||("defaultValue"===a&&"value"in n&&null==n.value?a="value":"download"===a&&!0===s?s="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+t)&&!L(n.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():o&&C.test(a)?a=a.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),/^oninput$/i.test(a)&&(a=a.toLowerCase(),r[a]&&(a="oninputCapture")),r[a]=s)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=(0,i.v2)(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=(0,i.v2)(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(D.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",D))}e.$$typeof=w,j&&j(e)};var x=i.fF.__r;i.fF.__r=function(e){x&&x(e),R=e.__c};var U={ReactCurrentDispatcher:{current:{readContext:function(e){return R.__n[e.__c].props.value}}}},F="17.0.2";function B(e){return i.n.bind(null,e)}function H(e){return!!e&&e.$$typeof===w}function G(e){return H(e)?i.Ob.apply(null,arguments):e}function V(e){return!!e.__k&&((0,i.XX)(null,e),!0)}function W(e){return e&&(e.base||1===e.nodeType&&e)||null}var q=function(e,t){return e(t)},Y=function(e,t){return e(t)},z=i.FK;function X(e){e()}function K(e){return e}function J(){return[!1,X]}var $=r.Nf;function Q(e,t){var n=(0,r.J0)(t),i=n[0],o=n[1];return(0,r.vJ)((function(){return e((function(){o(t())}))}),[e,t]),i}t.default={useState:r.J0,useReducer:r.WO,useEffect:r.vJ,useLayoutEffect:r.Nf,useInsertionEffect:r.Nf,useTransition:J,useDeferredValue:K,useSyncExternalStore:Q,startTransition:X,useRef:r.li,useImperativeHandle:r.Yn,useMemo:r.Kr,useCallback:r.hb,useContext:r.NT,useDebugValue:r.MN,version:"17.0.2",Children:h,render:M,hydrate:k,unmountComponentAtNode:V,createPortal:E,createElement:i.n,createContext:i.q6,createFactory:B,cloneElement:G,createRef:i._3,Fragment:i.FK,isValidElement:H,findDOMNode:W,Component:i.uA,PureComponent:s,memo:c,forwardRef:d,flushSync:Y,unstable_batchedUpdates:q,StrictMode:i.FK,Suspense:v,SuspenseList:b,lazy:_,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:U}},50172:function(e,t,n){"use strict";n.d(t,{FK:function(){return _},Ob:function(){return B},Qv:function(){return F},XX:function(){return U},_3:function(){return g},fF:function(){return i},h:function(){return m},n:function(){return m},q6:function(){return H},uA:function(){return b},v2:function(){return T},zO:function(){return a}});var r,i,o,a,s,c,u,l={},d=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(e,t){for(var n in t)e[n]=t[n];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function m(e,t,n){var i,o,a,s={};for(a in t)"key"==a?i=t[a]:"ref"==a?o=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return v(e,s,i,o,null)}function v(e,t,n,r,a){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=i.vnode&&i.vnode(s),s}function g(){return{current:null}}function _(e){return e.children}function b(e,t){this.props=e,this.context=t}function y(e,t){if(null==t)return e.__?y(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?v(m.type,m.props,m.key,null,m.__v):m)){if(m.__=n,m.__b=n.__b+1,null===(p=S[f])||p&&m.key==p.key&&m.type===p.type)S[f]=void 0;else for(h=0;h2&&(s.children=arguments.length>3?r.call(arguments,2):n),v(e.type,s,i||e.key,o||e.ref,null)}function H(e,t){var n={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(S)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=d.slice,i={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},o=0,a=function(e){return null!=e&&void 0===e.constructor},b.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(h({},n),this.props)),e&&h(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),S(this))},b.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),S(this))},b.prototype.render=_,s=[],E.__r=0,u=0},45994:function(e,t,n){"use strict";n.d(t,{J0:function(){return g},Kr:function(){return E},MN:function(){return T},Md:function(){return L},NT:function(){return C},Nf:function(){return y},WO:function(){return _},Yn:function(){return S},hb:function(){return w},li:function(){return A},vJ:function(){return b}});var r,i,o,a,s=n(50172),c=0,u=[],l=[],d=s.fF.__b,f=s.fF.__r,h=s.fF.diffed,p=s.fF.__c,m=s.fF.unmount;function v(e,t){s.fF.__h&&s.fF.__h(i,e,c||t),c=0;var n=i.__H||(i.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:l}),n.__[e]}function g(e){return c=1,_(P,e)}function _(e,t,n){var o=v(r++,2);return o.t=e,o.__c||(o.__=[n?n(t):P(void 0,t),function(e){var t=o.t(o.__[0],e);o.__[0]!==t&&(o.__=[t,o.__[1]],o.__c.setState({}))}],o.__c=i),o.__}function b(e,t){var n=v(r++,3);!s.fF.__s&&O(n.__H,t)&&(n.__=e,n.u=t,i.__H.__h.push(n))}function y(e,t){var n=v(r++,4);!s.fF.__s&&O(n.__H,t)&&(n.__=e,n.u=t,i.__h.push(n))}function A(e){return c=5,E((function(){return{current:e}}),[])}function S(e,t,n){c=6,y((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function E(e,t){var n=v(r++,7);return O(n.__H,t)?(n.__V=e(),n.u=t,n.__h=e,n.__V):n.__}function w(e,t){return c=8,E((function(){return e}),t)}function C(e){var t=i.context[e.__c],n=v(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(i)),t.props.value):e.__}function T(e,t){s.fF.useDebugValue&&s.fF.useDebugValue(t?t(e):e)}function L(e){var t=v(r++,10),n=g();return t.__=e,i.componentDidCatch||(i.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}function M(){for(var e;e=u.shift();)if(e.__P)try{e.__H.__h.forEach(N),e.__H.__h.forEach(I),e.__H.__h=[]}catch(t){e.__H.__h=[],s.fF.__e(t,e.__v)}}s.fF.__b=function(e){i=null,d&&d(e)},s.fF.__r=function(e){f&&f(e),r=0;var t=(i=e.__c).__H;t&&(o===i?(t.__h=[],i.__h=[],t.__.forEach((function(e){e.__V=l,e.u=void 0}))):(t.__h.forEach(N),t.__h.forEach(I),t.__h=[])),o=i},s.fF.diffed=function(e){h&&h(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==u.push(t)&&a===s.fF.requestAnimationFrame||((a=s.fF.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),k&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);k&&(t=requestAnimationFrame(n))})(M)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.__V!==l&&(e.__=e.__V),e.u=void 0,e.__V=l}))),o=i=null},s.fF.__c=function(e,t){t.some((function(e){try{e.__h.forEach(N),e.__h=e.__h.filter((function(e){return!e.__||I(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],s.fF.__e(n,e.__v)}})),p&&p(e,t)},s.fF.unmount=function(e){m&&m(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{N(e)}catch(e){t=e}})),t&&s.fF.__e(t,n.__v))};var k="function"==typeof requestAnimationFrame;function N(e){var t=i,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),i=t}function I(e){var t=i;e.__c=e.__(),i=t}function O(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function P(e,t){return"function"==typeof t?t(e):t}},23126:function(e){e.exports='function elapsedTime(a,b){var c=0,d=0,e=0,f=Math.round(a/1e3);c=Math.floor(f/3600),f-=3600*c,d=Math.floor(f/60),f-=60*d,e=f;var g="";return b?g=(10>c?"0":"")+c+":"+(10>d?"0":"")+d+":"+(10>e?"0":"")+e:(c>0&&(g+=c+" "+__("hour(s)")+" "),d>0&&(g+=d+" "+__("minute(s)")+" "),g+=e+" "+__("second(s)")),g}Date.prototype.format=function(a){for(var b="",c=Date.replaceChars,d=0;d=0&&"\\\\"==a.charAt(d-1)?b+=e:c[e]?b+=c[e].call(this):"\\\\"!=e&&(b+=e)}return b},Date.replaceChars={shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longMonths:["January","February","March","April","May","June","July","August","September","October","November","December"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longDays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d:function(){return(this.getDate()<10?"0":"")+this.getDate()},D:function(){return Date.replaceChars.shortDays[this.getDay()]},j:function(){return this.getDate()},l:function(){return Date.replaceChars.longDays[this.getDay()]},N:function(){return this.getDay()+1},S:function(){return this.getDate()%10==1&&11!=this.getDate()?"st":this.getDate()%10==2&&12!=this.getDate()?"nd":this.getDate()%10==3&&13!=this.getDate()?"rd":"th"},w:function(){return this.getDay()},z:function(){var a=new Date(this.getFullYear(),0,1);return Math.ceil((this-a)/864e5)},W:function(){var a=new Date(this.getFullYear(),0,1);return Math.ceil(((this-a)/864e5+a.getDay()+1)/7)},F:function(){return Date.replaceChars.longMonths[this.getMonth()]},m:function(){return(this.getMonth()<9?"0":"")+(this.getMonth()+1)},M:function(){return Date.replaceChars.shortMonths[this.getMonth()]},n:function(){return this.getMonth()+1},t:function(){var a=new Date;return new Date(a.getFullYear(),a.getMonth(),0).getDate()},L:function(){var a=this.getFullYear();return a%400==0||a%100!=0&&a%4==0},o:function(){var a=new Date(this.valueOf());return a.setDate(a.getDate()-(this.getDay()+6)%7+3),a.getFullYear()},Y:function(){return this.getFullYear()},y:function(){return(""+this.getFullYear()).substr(2)},a:function(){return this.getHours()<12?"am":"pm"},A:function(){return this.getHours()<12?"AM":"PM"},B:function(){return Math.floor(1e3*((this.getUTCHours()+1)%24+this.getUTCMinutes()/60+this.getUTCSeconds()/3600)/24)},g:function(){return this.getHours()%12||12},G:function(){return this.getHours()},h:function(){return((this.getHours()%12||12)<10?"0":"")+(this.getHours()%12||12)},H:function(){return(this.getHours()<10?"0":"")+this.getHours()},i:function(){return(this.getMinutes()<10?"0":"")+this.getMinutes()},s:function(){return(this.getSeconds()<10?"0":"")+this.getSeconds()},u:function(){var a=this.getMilliseconds();return(10>a?"00":100>a?"0":"")+a},e:function(){return"Not Yet Supported"},I:function(){return"Not Yet Supported"},O:function(){return(-this.getTimezoneOffset()<0?"-":"+")+(Math.abs(this.getTimezoneOffset()/60)<10?"0":"")+Math.abs(this.getTimezoneOffset()/60)+"00"},P:function(){return(-this.getTimezoneOffset()<0?"-":"+")+(Math.abs(this.getTimezoneOffset()/60)<10?"0":"")+Math.abs(this.getTimezoneOffset()/60)+":00"},T:function(){var a=this.getMonth();this.setMonth(0);var b=this.toTimeString().replace(/^.+ \\(?([^\\)]+)\\)?$/,"$1");return this.setMonth(a),b},Z:function(){return 60*-this.getTimezoneOffset()},c:function(){return this.format("Y-m-d\\\\TH:i:sP")},r:function(){return this.toString()},U:function(){return this.getTime()/1e3}};'},41636:function(e){e.exports='(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:+d+""===d?+d:H.test(d)?p.parseJSON(d):d}catch(f){}p.data(a,c,d)}else d=b}return d}function K(a){var b;for(b in a){if(b==="data"&&p.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function ba(){return!1}function bb(){return!0}function bh(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function bi(a,b){do a=a[b];while(a&&a.nodeType!==1);return a}function bj(a,b,c){b=b||0;if(p.isFunction(b))return p.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return p.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=p.grep(a,function(a){return a.nodeType===1});if(be.test(b))return p.filter(b,d,!c);b=p.filter(b,d)}return p.grep(a,function(a,d){return p.inArray(a,b)>=0===c})}function bk(a){var b=bl.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function bC(a,b){return a.getElementsByTagName(b)[0]||a.appendChild(a.ownerDocument.createElement(b))}function bD(a,b){if(b.nodeType!==1||!p.hasData(a))return;var c,d,e,f=p._data(a),g=p._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;d").appendTo(e.body),c=b.css("display");b.remove();if(c==="none"||c===""){bI=e.body.appendChild(bI||p.extend(e.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!bJ||!bI.createElement)bJ=(bI.contentWindow||bI.contentDocument).document,bJ.write(""),bJ.close();b=bJ.body.appendChild(bJ.createElement(a)),c=bH(b,"display"),e.body.removeChild(bI)}return bS[a]=c,c}function ci(a,b,c,d){var e;if(p.isArray(b))p.each(b,function(b,e){c||ce.test(a)?d(a,e):ci(a+"["+(typeof e=="object"?b:"")+"]",e,c,d)});else if(!c&&p.type(b)==="object")for(e in b)ci(a+"["+e+"]",b[e],c,d);else d(a,b)}function cz(a){return function(b,c){typeof b!="string"&&(c=b,b="*");var d,e,f,g=b.toLowerCase().split(s),h=0,i=g.length;if(p.isFunction(c))for(;h)[^>]*$|#([\\w\\-]*)$)/,v=/^<(\\w+)\\s*\\/?>(?:<\\/\\1>|)$/,w=/^[\\],:{}\\s]*$/,x=/(?:^|:|,)(?:\\s*\\[)+/g,y=/\\\\(?:["\\\\\\/bfnrt]|u[\\da-fA-F]{4})/g,z=/"[^"\\\\\\r\\n]*"|true|false|null|-?(?:\\d\\d*\\.|)\\d+(?:[eE][\\-+]?\\d+|)/g,A=/^-ms-/,B=/-([\\da-z])/gi,C=function(a,b){return(b+"").toUpperCase()},D=function(){e.addEventListener?(e.removeEventListener("DOMContentLoaded",D,!1),p.ready()):e.readyState==="complete"&&(e.detachEvent("onreadystatechange",D),p.ready())},E={};p.fn=p.prototype={constructor:p,init:function(a,c,d){var f,g,h,i;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(typeof a=="string"){a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3?f=[null,a,null]:f=u.exec(a);if(f&&(f[1]||!c)){if(f[1])return c=c instanceof p?c[0]:c,i=c&&c.nodeType?c.ownerDocument||c:e,a=p.parseHTML(f[1],i,!0),v.test(f[1])&&p.isPlainObject(c)&&this.attr.call(a,c,!0),p.merge(this,a);g=e.getElementById(f[2]);if(g&&g.parentNode){if(g.id!==f[2])return d.find(a);this.length=1,this[0]=g}return this.context=e,this.selector=a,this}return!c||c.jquery?(c||d).find(a):this.constructor(c).find(a)}return p.isFunction(a)?d.ready(a):(a.selector!==b&&(this.selector=a.selector,this.context=a.context),p.makeArray(a,this))},selector:"",jquery:"3.5.1",length:0,size:function(){return this.length},toArray:function(){return k.call(this)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=p.merge(this.constructor(),a);return d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")"),d},each:function(a,b){return p.each(this,a,b)},ready:function(a){return p.ready.promise().done(a),this},eq:function(a){return a=+a,a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(k.apply(this,arguments),"slice",k.call(arguments).join(","))},map:function(a){return this.pushStack(p.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:j,sort:[].sort,splice:[].splice},p.fn.init.prototype=p.fn,p.extend=p.fn.extend=function(){var a,c,d,e,f,g,h=arguments[0]||{},i=1,j=arguments.length,k=!1;typeof h=="boolean"&&(k=h,h=arguments[1]||{},i=2),typeof h!="object"&&!p.isFunction(h)&&(h={}),j===i&&(h=this,--i);for(;i0)return;d.resolveWith(e,[p]),p.fn.trigger&&p(e).trigger("ready").off("ready")},isFunction:function(a){return p.type(a)==="function"},isArray:Array.isArray||function(a){return p.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):E[m.call(a)]||"object"},isPlainObject:function(a){if(!a||p.type(a)!=="object"||a.nodeType||p.isWindow(a))return!1;try{if(a.constructor&&!n.call(a,"constructor")&&!n.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||n.call(a,d)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},error:function(a){throw new Error(a)},parseHTML:function(a,b,c){var d;return!a||typeof a!="string"?null:(typeof b=="boolean"&&(c=b,b=0),b=b||e,(d=v.exec(a))?[b.createElement(d[1])]:(d=p.buildFragment([a],b,c?null:[]),p.merge([],(d.cacheable?p.clone(d.fragment):d.fragment).childNodes)))},parseJSON:function(b){if(!b||typeof b!="string")return null;b=p.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(w.test(b.replace(y,"@").replace(z,"]").replace(x,"")))return(new Function("return "+b))();p.error("Invalid JSON: "+b)},parseXML:function(c){var d,e;if(!c||typeof c!="string")return null;try{a.DOMParser?(e=new DOMParser,d=e.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(f){d=b}return(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&p.error("Invalid XML: "+c),d},noop:function(){},globalEval:function(b){b&&r.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(A,"ms-").replace(B,C)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,c,d){var e,f=0,g=a.length,h=g===b||p.isFunction(a);if(d){if(h){for(e in a)if(c.apply(a[e],d)===!1)break}else for(;f0&&a[0]&&a[i-1]||i===0||p.isArray(a));if(j)for(;h-1)i.splice(c,1),e&&(c<=g&&g--,c<=h&&h--)}),this},has:function(a){return p.inArray(a,i)>-1},empty:function(){return i=[],this},disable:function(){return i=j=c=b,this},disabled:function(){return!i},lock:function(){return j=b,c||l.disable(),this},locked:function(){return!j},fireWith:function(a,b){return b=b||[],b=[a,b.slice?b.slice():b],i&&(!d||j)&&(e?j.push(b):k(b)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!d}};return l},p.extend({Deferred:function(a){var b=[["resolve","done",p.Callbacks("once memory"),"resolved"],["reject","fail",p.Callbacks("once memory"),"rejected"],["notify","progress",p.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return p.Deferred(function(c){p.each(b,function(b,d){var f=d[0],g=a[b];e[d[1]](p.isFunction(g)?function(){var a=g.apply(this,arguments);a&&p.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f+"With"](this===e?c:this,[a])}:c[f])}),a=null}).promise()},promise:function(a){return a!=null?p.extend(a,d):d}},e={};return d.pipe=d.then,p.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[a^1][2].disable,b[2][2].lock),e[f[0]]=g.fire,e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=k.call(arguments),d=c.length,e=d!==1||a&&p.isFunction(a.promise)?d:0,f=e===1?a:p.Deferred(),g=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?k.call(arguments):d,c===h?f.notifyWith(b,c):--e||f.resolveWith(b,c)}},h,i,j;if(d>1){h=new Array(d),i=new Array(d),j=new Array(d);for(;b
a",c=n.getElementsByTagName("*"),d=n.getElementsByTagName("a")[0],d.style.cssText="top:1px;float:left;opacity:.5";if(!c||!c.length)return{};f=e.createElement("select"),g=f.appendChild(e.createElement("option")),h=n.getElementsByTagName("input")[0],b={leadingWhitespace:n.firstChild.nodeType===3,tbody:!n.getElementsByTagName("tbody").length,htmlSerialize:!!n.getElementsByTagName("link").length,style:/top/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:/^0.5/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:h.value==="on",optSelected:g.selected,getSetAttribute:n.className!=="t",enctype:!!e.createElement("form").enctype,html5Clone:e.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",boxModel:e.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},h.checked=!0,b.noCloneChecked=h.cloneNode(!0).checked,f.disabled=!0,b.optDisabled=!g.disabled;try{delete n.test}catch(o){b.deleteExpando=!1}!n.addEventListener&&n.attachEvent&&n.fireEvent&&(n.attachEvent("onclick",m=function(){b.noCloneEvent=!1}),n.cloneNode(!0).fireEvent("onclick"),n.detachEvent("onclick",m)),h=e.createElement("input"),h.value="t",h.setAttribute("type","radio"),b.radioValue=h.value==="t",h.setAttribute("checked","checked"),h.setAttribute("name","t"),n.appendChild(h),i=e.createDocumentFragment(),i.appendChild(n.lastChild),b.checkClone=i.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=h.checked,i.removeChild(h),i.appendChild(n);if(n.attachEvent)for(k in{submit:!0,change:!0,focusin:!0})j="on"+k,l=j in n,l||(n.setAttribute(j,"return;"),l=typeof n[j]=="function"),b[k+"Bubbles"]=l;return p(function(){var c,d,f,g,h="padding:0;margin:0;border:0;display:block;overflow:hidden;",i=e.getElementsByTagName("body")[0];if(!i)return;c=e.createElement("div"),c.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",i.insertBefore(c,i.firstChild),d=e.createElement("div"),c.appendChild(d),d.innerHTML="
t
",f=d.getElementsByTagName("td"),f[0].style.cssText="padding:0;margin:0;border:0;display:none",l=f[0].offsetHeight===0,f[0].style.display="",f[1].style.display="none",b.reliableHiddenOffsets=l&&f[0].offsetHeight===0,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",b.boxSizing=d.offsetWidth===4,b.doesNotIncludeMarginInBodyOffset=i.offsetTop!==1,a.getComputedStyle&&(b.pixelPosition=(a.getComputedStyle(d,null)||{}).top!=="1%",b.boxSizingReliable=(a.getComputedStyle(d,null)||{width:"4px"}).width==="4px",g=e.createElement("div"),g.style.cssText=d.style.cssText=h,g.style.marginRight=g.style.width="0",d.style.width="1px",d.appendChild(g),b.reliableMarginRight=!parseFloat((a.getComputedStyle(g,null)||{}).marginRight)),typeof d.style.zoom!="undefined"&&(d.innerHTML="",d.style.cssText=h+"width:1px;padding:1px;display:inline;zoom:1",b.inlineBlockNeedsLayout=d.offsetWidth===3,d.style.display="block",d.style.overflow="visible",d.innerHTML="
",d.firstChild.style.width="5px",b.shrinkWrapBlocks=d.offsetWidth!==3,c.style.zoom=1),i.removeChild(c),c=d=f=g=null}),i.removeChild(n),c=d=f=g=h=i=n=null,b}();var H=/(?:\\{[\\s\\S]*\\}|\\[[\\s\\S]*\\])$/,I=/([A-Z])/g;p.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(p.fn.jquery+Math.random()).replace(/\\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){return a=a.nodeType?p.cache[a[p.expando]]:a[p.expando],!!a&&!K(a)},data:function(a,c,d,e){if(!p.acceptData(a))return;var f,g,h=p.expando,i=typeof c=="string",j=a.nodeType,k=j?p.cache:a,l=j?a[h]:a[h]&&h;if((!l||!k[l]||!e&&!k[l].data)&&i&&d===b)return;l||(j?a[h]=l=p.deletedIds.pop()||p.guid++:l=h),k[l]||(k[l]={},j||(k[l].toJSON=p.noop));if(typeof c=="object"||typeof c=="function")e?k[l]=p.extend(k[l],c):k[l].data=p.extend(k[l].data,c);return f=k[l],e||(f.data||(f.data={}),f=f.data),d!==b&&(f[p.camelCase(c)]=d),i?(g=f[c],g==null&&(g=f[p.camelCase(c)])):g=f,g},removeData:function(a,b,c){if(!p.acceptData(a))return;var d,e,f,g=a.nodeType,h=g?p.cache:a,i=g?a[p.expando]:p.expando;if(!h[i])return;if(b){d=c?h[i]:h[i].data;if(d){p.isArray(b)||(b in d?b=[b]:(b=p.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,f=b.length;e1,null,!1))},removeData:function(a){return this.each(function(){p.removeData(this,a)})}}),p.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=p._data(a,b),c&&(!d||p.isArray(c)?d=p._data(a,b,p.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=p.queue(a,b),d=c.length,e=c.shift(),f=p._queueHooks(a,b),g=function(){p.dequeue(a,b)};e==="inprogress"&&(e=c.shift(),d--),e&&(b==="fx"&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return p._data(a,c)||p._data(a,c,{empty:p.Callbacks("once memory").add(function(){p.removeData(a,b+"queue",!0),p.removeData(a,c,!0)})})}}),p.fn.extend({queue:function(a,c){var d=2;return typeof a!="string"&&(c=a,a="fx",d--),arguments.length1)},removeAttr:function(a){return this.each(function(){p.removeAttr(this,a)})},prop:function(a,b){return p.access(this,p.prop,a,b,arguments.length>1)},removeProp:function(a){return a=p.propFix[a]||a,this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,f,g,h;if(p.isFunction(a))return this.each(function(b){p(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(s);for(c=0,d=this.length;c=0)d=d.replace(" "+c[f]+" "," ");e.className=a?p.trim(d):""}}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";return p.isFunction(a)?this.each(function(c){p(this).toggleClass(a.call(this,c,this.className,b),b)}):this.each(function(){if(c==="string"){var e,f=0,g=p(this),h=b,i=a.split(s);while(e=i[f++])h=d?h:!g.hasClass(e),g[h?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&p._data(this,"__className__",this.className),this.className=this.className||a===!1?"":p._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c=0)return!0;return!1},val:function(a){var c,d,e,f=this[0];if(!arguments.length){if(f)return c=p.valHooks[f.type]||p.valHooks[f.nodeName.toLowerCase()],c&&"get"in c&&(d=c.get(f,"value"))!==b?d:(d=f.value,typeof d=="string"?d.replace(P,""):d==null?"":d);return}return e=p.isFunction(a),this.each(function(d){var f,g=p(this);if(this.nodeType!==1)return;e?f=a.call(this,d,g.val()):f=a,f==null?f="":typeof f=="number"?f+="":p.isArray(f)&&(f=p.map(f,function(a){return a==null?"":a+""})),c=p.valHooks[this.type]||p.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,f,"value")===b)this.value=f})}}),p.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,f=a.selectedIndex,g=[],h=a.options,i=a.type==="select-one";if(f<0)return null;c=i?f:0,d=i?f+1:h.length;for(;c=0}),c.length||(a.selectedIndex=-1),c}}},attrFn:{},attr:function(a,c,d,e){var f,g,h,i=a.nodeType;if(!a||i===3||i===8||i===2)return;if(e&&p.isFunction(p.fn[c]))return p(a)[c](d);if(typeof a.getAttribute=="undefined")return p.prop(a,c,d);h=i!==1||!p.isXMLDoc(a),h&&(c=c.toLowerCase(),g=p.attrHooks[c]||(T.test(c)?M:L));if(d!==b){if(d===null){p.removeAttr(a,c);return}return g&&"set"in g&&h&&(f=g.set(a,d,c))!==b?f:(a.setAttribute(c,d+""),d)}return g&&"get"in g&&h&&(f=g.get(a,c))!==null?f:(f=a.getAttribute(c),f===null?b:f)},removeAttr:function(a,b){var c,d,e,f,g=0;if(b&&a.nodeType===1){d=b.split(s);for(;g=0}})});var V=/^(?:textarea|input|select)$/i,W=/^([^\\.]*|)(?:\\.(.+)|)$/,X=/(?:^|\\s)hover(\\.\\S+|)\\b/,Y=/^key/,Z=/^(?:mouse|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=function(a){return p.event.special.hover?a:a.replace(X,"mouseenter$1 mouseleave$1")};p.event={add:function(a,c,d,e,f){var g,h,i,j,k,l,m,n,o,q,r;if(a.nodeType===3||a.nodeType===8||!c||!d||!(g=p._data(a)))return;d.handler&&(o=d,d=o.handler,f=o.selector),d.guid||(d.guid=p.guid++),i=g.events,i||(g.events=i={}),h=g.handle,h||(g.handle=h=function(a){return typeof p!="undefined"&&(!a||p.event.triggered!==a.type)?p.event.dispatch.apply(h.elem,arguments):b},h.elem=a),c=p.trim(_(c)).split(" ");for(j=0;j=0&&(s=s.slice(0,-1),i=!0),s.indexOf(".")>=0&&(t=s.split("."),s=t.shift(),t.sort());if((!f||p.event.customEvent[s])&&!p.event.global[s])return;c=typeof c=="object"?c[p.expando]?c:new p.Event(s,c):new p.Event(s),c.type=s,c.isTrigger=!0,c.exclusive=i,c.namespace=t.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\\\.)"+t.join("\\\\.(?:.*\\\\.|)")+"(\\\\.|$)"):null,m=s.indexOf(":")<0?"on"+s:"";if(!f){h=p.cache;for(j in h)h[j].events&&h[j].events[s]&&p.event.trigger(c,d,h[j].handle.elem,!0);return}c.result=b,c.target||(c.target=f),d=d!=null?p.makeArray(d):[],d.unshift(c),n=p.event.special[s]||{};if(n.trigger&&n.trigger.apply(f,d)===!1)return;q=[[f,n.bindType||s]];if(!g&&!n.noBubble&&!p.isWindow(f)){r=n.delegateType||s,k=$.test(r+s)?f:f.parentNode;for(l=f;k;k=k.parentNode)q.push([k,r]),l=k;l===(f.ownerDocument||e)&&q.push([l.defaultView||l.parentWindow||a,r])}for(j=0;j=0:p.find(m,this,null,[f]).length),h[m]&&j.push(l);j.length&&u.push({elem:f,matches:j})}o.length>q&&u.push({elem:this,matches:o.slice(q)});for(d=0;d0?this.on(b,null,a,c):this.trigger(b)},Y.test(b)&&(p.event.fixHooks[b]=p.event.keyHooks),Z.test(b)&&(p.event.fixHooks[b]=p.event.mouseHooks)}),function(a,b){function bc(a,b,c,d){c=c||[],b=b||r;var e,f,i,j,k=b.nodeType;if(!a||typeof a!="string")return c;if(k!==1&&k!==9)return[];i=g(b);if(!i&&!d)if(e=P.exec(a))if(j=e[1]){if(k===9){f=b.getElementById(j);if(!f||!f.parentNode)return c;if(f.id===j)return c.push(f),c}else if(b.ownerDocument&&(f=b.ownerDocument.getElementById(j))&&h(b,f)&&f.id===j)return c.push(f),c}else{if(e[2])return w.apply(c,x.call(b.getElementsByTagName(a),0)),c;if((j=e[3])&&_&&b.getElementsByClassName)return w.apply(c,x.call(b.getElementsByClassName(j),0)),c}return bp(a.replace(L,"$1"),b,c,d,i)}function bd(a){return function(b){var c=b.nodeName.toLowerCase();return c==="input"&&b.type===a}}function be(a){return function(b){var c=b.nodeName.toLowerCase();return(c==="input"||c==="button")&&b.type===a}}function bf(a){return z(function(b){return b=+b,z(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function bg(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}function bh(a,b){var c,d,f,g,h,i,j,k=C[o][a];if(k)return b?0:k.slice(0);h=a,i=[],j=e.preFilter;while(h){if(!c||(d=M.exec(h)))d&&(h=h.slice(d[0].length)),i.push(f=[]);c=!1;if(d=N.exec(h))f.push(c=new q(d.shift())),h=h.slice(c.length),c.type=d[0].replace(L," ");for(g in e.filter)(d=W[g].exec(h))&&(!j[g]||(d=j[g](d,r,!0)))&&(f.push(c=new q(d.shift())),h=h.slice(c.length),c.type=g,c.matches=d);if(!c)break}return b?h.length:h?bc.error(a):C(a,i).slice(0)}function bi(a,b,d){var e=b.dir,f=d&&b.dir==="parentNode",g=u++;return b.first?function(b,c,d){while(b=b[e])if(f||b.nodeType===1)return a(b,c,d)}:function(b,d,h){if(!h){var i,j=t+" "+g+" ",k=j+c;while(b=b[e])if(f||b.nodeType===1){if((i=b[o])===k)return b.sizset;if(typeof i=="string"&&i.indexOf(j)===0){if(b.sizset)return b}else{b[o]=k;if(a(b,d,h))return b.sizset=!0,b;b.sizset=!1}}}else while(b=b[e])if(f||b.nodeType===1)if(a(b,d,h))return b}}function bj(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function bk(a,b,c,d,e){var f,g=[],h=0,i=a.length,j=b!=null;for(;h-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==l)||((b=c).nodeType?j(a,c,d):k(a,c,d))}];for(;i1&&bj(m),i>1&&a.slice(0,i-1).join("").replace(L,"$1"),c,i0,f=a.length>0,g=function(h,i,j,k,m){var n,o,p,q=[],s=0,u="0",x=h&&[],y=m!=null,z=l,A=h||f&&e.find.TAG("*",m&&i.parentNode||i),B=t+=z==null?1:Math.E;y&&(l=i!==r&&i,c=g.el);for(;(n=A[u])!=null;u++){if(f&&n){for(o=0;p=a[o];o++)if(p(n,i,j)){k.push(n);break}y&&(t=B,c=++g.el)}d&&((n=!p&&n)&&s--,h&&x.push(n))}s+=u;if(d&&u!==s){for(o=0;p=b[o];o++)p(x,q,i,j);if(h){if(s>0)while(u--)!x[u]&&!q[u]&&(q[u]=v.call(k));q=bk(q)}w.apply(k,q),y&&!h&&q.length>0&&s+b.length>1&&bc.uniqueSort(k)}return y&&(t=B,l=z),x};return g.el=0,d?z(g):g}function bo(a,b,c,d){var e=0,f=b.length;for(;e2&&(j=h[0]).type==="ID"&&b.nodeType===9&&!f&&e.relative[h[1].type]){b=e.find.ID(j.matches[0].replace(V,""),b,f)[0];if(!b)return c;a=a.slice(h.shift().length)}for(g=W.POS.test(a)?-1:h.length-1;g>=0;g--){j=h[g];if(e.relative[k=j.type])break;if(l=e.find[k])if(d=l(j.matches[0].replace(V,""),R.test(h[0].type)&&b.parentNode||b,f)){h.splice(g,1),a=d.length&&h.join("");if(!a)return w.apply(c,x.call(d,0)),c;break}}}return i(a,m)(d,b,f,c,R.test(a)),c}function bq(){}var c,d,e,f,g,h,i,j,k,l,m=!0,n="undefined",o=("sizcache"+Math.random()).replace(".",""),q=String,r=a.document,s=r.documentElement,t=0,u=0,v=[].pop,w=[].push,x=[].slice,y=[].indexOf||function(a){var b=0,c=this.length;for(;be.cacheLength&&delete a[b.shift()],a[c]=d},a)},B=A(),C=A(),D=A(),E="[\\\\x20\\\\t\\\\r\\\\n\\\\f]",F="(?:\\\\\\\\.|[-\\\\w]|[^\\\\x00-\\\\xa0])+",G=F.replace("w","w#"),H="([*^$|!~]?=)",I="\\\\["+E+"*("+F+")"+E+"*(?:"+H+E+"*(?:([\'\\"])((?:\\\\\\\\.|[^\\\\\\\\])*?)\\\\3|("+G+")|)|)"+E+"*\\\\]",J=":("+F+")(?:\\\\((?:([\'\\"])((?:\\\\\\\\.|[^\\\\\\\\])*?)\\\\2|([^()[\\\\]]*|(?:(?:"+I+")|[^:]|\\\\\\\\.)*|.*))\\\\)|)",K=":(even|odd|eq|gt|lt|nth|first|last)(?:\\\\("+E+"*((?:-\\\\d)?\\\\d*)"+E+"*\\\\)|)(?=[^-]|$)",L=new RegExp("^"+E+"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)"+E+"+$","g"),M=new RegExp("^"+E+"*,"+E+"*"),N=new RegExp("^"+E+"*([\\\\x20\\\\t\\\\r\\\\n\\\\f>+~])"+E+"*"),O=new RegExp(J),P=/^(?:#([\\w\\-]+)|(\\w+)|\\.([\\w\\-]+))$/,Q=/^:not/,R=/[\\x20\\t\\r\\n\\f]*[+~]/,S=/:not\\($/,T=/h\\d/i,U=/input|select|textarea|button/i,V=/\\\\(?!\\\\)/g,W={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\\\.("+F+")"),NAME:new RegExp("^\\\\[name=[\'\\"]?("+F+")[\'\\"]?\\\\]"),TAG:new RegExp("^("+F.replace("w","w*")+")"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+J),POS:new RegExp(K,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\\\("+E+"*(even|odd|(([+-]|)(\\\\d*)n|)"+E+"*(?:([+-]|)"+E+"*(\\\\d+)|))"+E+"*\\\\)|)","i"),needsContext:new RegExp("^"+E+"*[>+~]|"+K,"i")},X=function(a){var b=r.createElement("div");try{return a(b)}catch(c){return!1}finally{b=null}},Y=X(function(a){return a.appendChild(r.createComment("")),!a.getElementsByTagName("*").length}),Z=X(function(a){return a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!==n&&a.firstChild.getAttribute("href")==="#"}),$=X(function(a){a.innerHTML="";var b=typeof a.lastChild.getAttribute("multiple");return b!=="boolean"&&b!=="string"}),_=X(function(a){return a.innerHTML="
",!a.getElementsByClassName||!a.getElementsByClassName("e").length?!1:(a.lastChild.className="e",a.getElementsByClassName("e").length===2)}),ba=X(function(a){a.id=o+0,a.innerHTML="
",s.insertBefore(a,s.firstChild);var b=r.getElementsByName&&r.getElementsByName(o).length===2+r.getElementsByName(o+0).length;return d=!r.getElementById(o),s.removeChild(a),b});try{x.call(s.childNodes,0)[0].nodeType}catch(bb){x=function(a){var b,c=[];for(;b=this[a];a++)c.push(b);return c}}bc.matches=function(a,b){return bc(a,null,null,b)},bc.matchesSelector=function(a,b){return bc(b,null,null,[a]).length>0},f=bc.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(e===1||e===9||e===11){if(typeof a.textContent=="string")return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=f(a)}else if(e===3||e===4)return a.nodeValue}else for(;b=a[d];d++)c+=f(b);return c},g=bc.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?b.nodeName!=="HTML":!1},h=bc.contains=s.contains?function(a,b){var c=a.nodeType===9?a.documentElement:a,d=b&&b.parentNode;return a===d||!!(d&&d.nodeType===1&&c.contains&&c.contains(d))}:s.compareDocumentPosition?function(a,b){return b&&!!(a.compareDocumentPosition(b)&16)}:function(a,b){while(b=b.parentNode)if(b===a)return!0;return!1},bc.attr=function(a,b){var c,d=g(a);return d||(b=b.toLowerCase()),(c=e.attrHandle[b])?c(a):d||$?a.getAttribute(b):(c=a.getAttributeNode(b),c?typeof a[b]=="boolean"?a[b]?b:null:c.specified?c.value:null:null)},e=bc.selectors={cacheLength:50,createPseudo:z,match:W,attrHandle:Z?{}:{href:function(a){return a.getAttribute("href",2)},type:function(a){return a.getAttribute("type")}},find:{ID:d?function(a,b,c){if(typeof b.getElementById!==n&&!c){var d=b.getElementById(a);return d&&d.parentNode?[d]:[]}}:function(a,c,d){if(typeof c.getElementById!==n&&!d){var e=c.getElementById(a);return e?e.id===a||typeof e.getAttributeNode!==n&&e.getAttributeNode("id").value===a?[e]:b:[]}},TAG:Y?function(a,b){if(typeof b.getElementsByTagName!==n)return b.getElementsByTagName(a)}:function(a,b){var c=b.getElementsByTagName(a);if(a==="*"){var d,e=[],f=0;for(;d=c[f];f++)d.nodeType===1&&e.push(d);return e}return c},NAME:ba&&function(a,b){if(typeof b.getElementsByName!==n)return b.getElementsByName(name)},CLASS:_&&function(a,b,c){if(typeof b.getElementsByClassName!==n&&!c)return b.getElementsByClassName(a)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(V,""),a[3]=(a[4]||a[5]||"").replace(V,""),a[2]==="~="&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),a[1]==="nth"?(a[2]||bc.error(a[0]),a[3]=+(a[3]?a[4]+(a[5]||1):2*(a[2]==="even"||a[2]==="odd")),a[4]=+(a[6]+a[7]||a[2]==="odd")):a[2]&&bc.error(a[0]),a},PSEUDO:function(a){var b,c;if(W.CHILD.test(a[0]))return null;if(a[3])a[2]=a[3];else if(b=a[4])O.test(b)&&(c=bh(b,!0))&&(c=b.indexOf(")",b.length-c)-b.length)&&(b=b.slice(0,c),a[0]=a[0].slice(0,c)),a[2]=b;return a.slice(0,3)}},filter:{ID:d?function(a){return a=a.replace(V,""),function(b){return b.getAttribute("id")===a}}:function(a){return a=a.replace(V,""),function(b){var c=typeof b.getAttributeNode!==n&&b.getAttributeNode("id");return c&&c.value===a}},TAG:function(a){return a==="*"?function(){return!0}:(a=a.replace(V,"").toLowerCase(),function(b){return b.nodeName&&b.nodeName.toLowerCase()===a})},CLASS:function(a){var b=B[o][a];return b||(b=B(a,new RegExp("(^|"+E+")"+a+"("+E+"|$)"))),function(a){return b.test(a.className||typeof a.getAttribute!==n&&a.getAttribute("class")||"")}},ATTR:function(a,b,c){return function(d,e){var f=bc.attr(d,a);return f==null?b==="!=":b?(f+="",b==="="?f===c:b==="!="?f!==c:b==="^="?c&&f.indexOf(c)===0:b==="*="?c&&f.indexOf(c)>-1:b==="$="?c&&f.substr(f.length-c.length)===c:b==="~="?(" "+f+" ").indexOf(c)>-1:b==="|="?f===c||f.substr(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d){return a==="nth"?function(a){var b,e,f=a.parentNode;if(c===1&&d===0)return!0;if(f){e=0;for(b=f.firstChild;b;b=b.nextSibling)if(b.nodeType===1){e++;if(a===b)break}}return e-=d,e===c||e%c===0&&e/c>=0}:function(b){var c=b;switch(a){case"only":case"first":while(c=c.previousSibling)if(c.nodeType===1)return!1;if(a==="first")return!0;c=b;case"last":while(c=c.nextSibling)if(c.nodeType===1)return!1;return!0}}},PSEUDO:function(a,b){var c,d=e.pseudos[a]||e.setFilters[a.toLowerCase()]||bc.error("unsupported pseudo: "+a);return d[o]?d(b):d.length>1?(c=[a,a,"",b],e.setFilters.hasOwnProperty(a.toLowerCase())?z(function(a,c){var e,f=d(a,b),g=f.length;while(g--)e=y.call(a,f[g]),a[e]=!(c[e]=f[g])}):function(a){return d(a,0,c)}):d}},pseudos:{not:z(function(a){var b=[],c=[],d=i(a.replace(L,"$1"));return d[o]?z(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)if(f=g[h])a[h]=!(b[h]=f)}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:z(function(a){return function(b){return bc(a,b).length>0}}),contains:z(function(a){return function(b){return(b.textContent||b.innerText||f(b)).indexOf(a)>-1}}),enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&!!a.checked||b==="option"&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},parent:function(a){return!e.pseudos.empty(a)},empty:function(a){var b;a=a.firstChild;while(a){if(a.nodeName>"@"||(b=a.nodeType)===3||b===4)return!1;a=a.nextSibling}return!0},header:function(a){return T.test(a.nodeName)},text:function(a){var b,c;return a.nodeName.toLowerCase()==="input"&&(b=a.type)==="text"&&((c=a.getAttribute("type"))==null||c.toLowerCase()===b)},radio:bd("radio"),checkbox:bd("checkbox"),file:bd("file"),password:bd("password"),image:bd("image"),submit:be("submit"),reset:be("reset"),button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&a.type==="button"||b==="button"},input:function(a){return U.test(a.nodeName)},focus:function(a){var b=a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())&&(!!a.type||!!a.href)},active:function(a){return a===a.ownerDocument.activeElement},first:bf(function(a,b,c){return[0]}),last:bf(function(a,b,c){return[b-1]}),eq:bf(function(a,b,c){return[c<0?c+b:c]}),even:bf(function(a,b,c){for(var d=0;d=0;)a.push(d);return a}),gt:bf(function(a,b,c){for(var d=c<0?c+b:c;++d",a.querySelectorAll("[selected]").length||e.push("\\\\["+E+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),a.querySelectorAll(":checked").length||e.push(":checked")}),X(function(a){a.innerHTML="

",a.querySelectorAll("[test^=\'\']").length&&e.push("[*^$]="+E+"*(?:\\"\\"|\'\')"),a.innerHTML="",a.querySelectorAll(":enabled").length||e.push(":enabled",":disabled")}),e=new RegExp(e.join("|")),bp=function(a,d,f,g,h){if(!g&&!h&&(!e||!e.test(a))){var i,j,k=!0,l=o,m=d,n=d.nodeType===9&&a;if(d.nodeType===1&&d.nodeName.toLowerCase()!=="object"){i=bh(a),(k=d.getAttribute("id"))?l=k.replace(c,"\\\\$&"):d.setAttribute("id",l),l="[id=\'"+l+"\'] ",j=i.length;while(j--)i[j]=l+i[j].join("");m=R.test(a)&&d.parentNode||d,n=i.join(",")}if(n)try{return w.apply(f,x.call(m.querySelectorAll(n),0)),f}catch(p){}finally{k||d.removeAttribute("id")}}return b(a,d,f,g,h)},h&&(X(function(b){a=h.call(b,"div");try{h.call(b,"[test!=\'\']:sizzle"),f.push("!=",J)}catch(c){}}),f=new RegExp(f.join("|")),bc.matchesSelector=function(b,c){c=c.replace(d,"=\'$1\']");if(!g(b)&&!f.test(c)&&(!e||!e.test(c)))try{var i=h.call(b,c);if(i||a||b.document&&b.document.nodeType!==11)return i}catch(j){}return bc(c,null,null,[b]).length>0})}(),e.pseudos.nth=e.pseudos.eq,e.filters=bq.prototype=e.pseudos,e.setFilters=new bq,bc.attr=p.attr,p.find=bc,p.expr=bc.selectors,p.expr[":"]=p.expr.pseudos,p.unique=bc.uniqueSort,p.text=bc.getText,p.isXMLDoc=bc.isXML,p.contains=bc.contains}(a);var bc=/Until$/,bd=/^(?:parents|prev(?:Until|All))/,be=/^.[^:#\\[\\.,]*$/,bf=p.expr.match.needsContext,bg={children:!0,contents:!0,next:!0,prev:!0};p.fn.extend({find:function(a){var b,c,d,e,f,g,h=this;if(typeof a!="string")return p(a).filter(function(){for(b=0,c=h.length;b0)for(e=d;e=0:p.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c,d=0,e=this.length,f=[],g=bf.test(a)||typeof a!="string"?p(a,b||this.context):0;for(;d-1:p.find.matchesSelector(c,a)){f.push(c);break}c=c.parentNode}}return f=f.length>1?p.unique(f):f,this.pushStack(f,"closest",a)},index:function(a){return a?typeof a=="string"?p.inArray(this[0],p(a)):p.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(a,b){var c=typeof a=="string"?p(a,b):p.makeArray(a&&a.nodeType?[a]:a),d=p.merge(this.get(),c);return this.pushStack(bh(c[0])||bh(d[0])?d:p.unique(d))},addBack:function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}}),p.fn.andSelf=p.fn.addBack,p.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return p.dir(a,"parentNode")},parentsUntil:function(a,b,c){return p.dir(a,"parentNode",c)},next:function(a){return bi(a,"nextSibling")},prev:function(a){return bi(a,"previousSibling")},nextAll:function(a){return p.dir(a,"nextSibling")},prevAll:function(a){return p.dir(a,"previousSibling")},nextUntil:function(a,b,c){return p.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return p.dir(a,"previousSibling",c)},siblings:function(a){return p.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return p.sibling(a.firstChild)},contents:function(a){return p.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:p.merge([],a.childNodes)}},function(a,b){p.fn[a]=function(c,d){var e=p.map(this,b,c);return bc.test(a)||(d=c),d&&typeof d=="string"&&(e=p.filter(d,e)),e=this.length>1&&!bg[a]?p.unique(e):e,this.length>1&&bd.test(a)&&(e=e.reverse()),this.pushStack(e,a,k.call(arguments).join(","))}}),p.extend({filter:function(a,b,c){return c&&(a=":not("+a+")"),b.length===1?p.find.matchesSelector(b[0],a)?[b[0]]:[]:p.find.matches(a,b)},dir:function(a,c,d){var e=[],f=a[c];while(f&&f.nodeType!==9&&(d===b||f.nodeType!==1||!p(f).is(d)))f.nodeType===1&&e.push(f),f=f[c];return e},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var bl="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",bm=/ jQuery\\d+="(?:null|\\d+)"/g,bn=/^\\s+/,bo=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:]+)[^>]*)\\/>/gi,bp=/<([\\w:]+)/,bq=/]","i"),bv=/^(?:checkbox|radio)$/,bw=/checked\\s*(?:[^=]|=\\s*.checked.)/i,bx=/\\/(java|ecma)script/i,by=/^\\s*\\s*$/g,bz={option:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},bA=bk(e),bB=bA.appendChild(e.createElement("div"));bz.optgroup=bz.option,bz.tbody=bz.tfoot=bz.colgroup=bz.caption=bz.thead,bz.th=bz.td,p.support.htmlSerialize||(bz._default=[1,"X
","
"]),p.fn.extend({text:function(a){return p.access(this,function(a){return a===b?p.text(this):this.empty().append((this[0]&&this[0].ownerDocument||e).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(p.isFunction(a))return this.each(function(b){p(this).wrapAll(a.call(this,b))});if(this[0]){var b=p(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return p.isFunction(a)?this.each(function(b){p(this).wrapInner(a.call(this,b))}):this.each(function(){var b=p(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=p.isFunction(a);return this.each(function(c){p(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){p.nodeName(this,"body")||p(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(a,this.firstChild)})},before:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(a,this),"before",this.selector)}},after:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(this,a),"after",this.selector)}},remove:function(a,b){var c,d=0;for(;(c=this[d])!=null;d++)if(!a||p.filter(a,[c]).length)!b&&c.nodeType===1&&(p.cleanData(c.getElementsByTagName("*")),p.cleanData([c])),c.parentNode&&c.parentNode.removeChild(c);return this},empty:function(){var a,b=0;for(;(a=this[b])!=null;b++){a.nodeType===1&&p.cleanData(a.getElementsByTagName("*"));while(a.firstChild)a.removeChild(a.firstChild)}return this},clone:function(a,b){return a=a==null?!1:a,b=b==null?a:b,this.map(function(){return p.clone(this,a,b)})},html:function(a){return p.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(bm,""):b;if(typeof a=="string"&&!bs.test(a)&&(p.support.htmlSerialize||!bu.test(a))&&(p.support.leadingWhitespace||!bn.test(a))&&!bz[(bp.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(bo,"<$1>");try{for(;d1&&typeof j=="string"&&bw.test(j))return this.each(function(){p(this).domManip(a,c,d)});if(p.isFunction(j))return this.each(function(e){var f=p(this);a[0]=j.call(this,e,c?f.html():b),f.domManip(a,c,d)});if(this[0]){e=p.buildFragment(a,this,k),g=e.fragment,f=g.firstChild,g.childNodes.length===1&&(g=f);if(f){c=c&&p.nodeName(f,"tr");for(h=e.cacheable||l-1;i0?this.clone(!0):this).get(),p(g[e])[b](d),f=f.concat(d);return this.pushStack(f,a,g.selector)}}),p.extend({clone:function(a,b,c){var d,e,f,g;p.support.html5Clone||p.isXMLDoc(a)||!bu.test("<"+a.nodeName+">")?g=a.cloneNode(!0):(bB.innerHTML=a.outerHTML,bB.removeChild(g=bB.firstChild));if((!p.support.noCloneEvent||!p.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!p.isXMLDoc(a)){bE(a,g),d=bF(a),e=bF(g);for(f=0;d[f];++f)e[f]&&bE(d[f],e[f])}if(b){bD(a,g);if(c){d=bF(a),e=bF(g);for(f=0;d[f];++f)bD(d[f],e[f])}}return d=e=null,g},clean:function(a,b,c,d){var f,g,h,i,j,k,l,m,n,o,q,r,s=b===e&&bA,t=[];if(!b||typeof b.createDocumentFragment=="undefined")b=e;for(f=0;(h=a[f])!=null;f++){typeof h=="number"&&(h+="");if(!h)continue;if(typeof h=="string")if(!br.test(h))h=b.createTextNode(h);else{s=s||bk(b),l=b.createElement("div"),s.appendChild(l),h=h.replace(bo,"<$1>"),i=(bp.exec(h)||["",""])[1].toLowerCase(),j=bz[i]||bz._default,k=j[0],l.innerHTML=j[1]+h+j[2];while(k--)l=l.lastChild;if(!p.support.tbody){m=bq.test(h),n=i==="table"&&!m?l.firstChild&&l.firstChild.childNodes:j[1]===""&&!m?l.childNodes:[];for(g=n.length-1;g>=0;--g)p.nodeName(n[g],"tbody")&&!n[g].childNodes.length&&n[g].parentNode.removeChild(n[g])}!p.support.leadingWhitespace&&bn.test(h)&&l.insertBefore(b.createTextNode(bn.exec(h)[0]),l.firstChild),h=l.childNodes,l.parentNode.removeChild(l)}h.nodeType?t.push(h):p.merge(t,h)}l&&(h=l=s=null);if(!p.support.appendChecked)for(f=0;(h=t[f])!=null;f++)p.nodeName(h,"input")?bG(h):typeof h.getElementsByTagName!="undefined"&&p.grep(h.getElementsByTagName("input"),bG);if(c){q=function(a){if(!a.type||bx.test(a.type))return d?d.push(a.parentNode?a.parentNode.removeChild(a):a):c.appendChild(a)};for(f=0;(h=t[f])!=null;f++)if(!p.nodeName(h,"script")||!q(h))c.appendChild(h),typeof h.getElementsByTagName!="undefined"&&(r=p.grep(p.merge([],h.getElementsByTagName("script")),q),t.splice.apply(t,[f+1,0].concat(r)),f+=r.length)}return t},cleanData:function(a,b){var c,d,e,f,g=0,h=p.expando,i=p.cache,j=p.support.deleteExpando,k=p.event.special;for(;(e=a[g])!=null;g++)if(b||p.acceptData(e)){d=e[h],c=d&&i[d];if(c){if(c.events)for(f in c.events)k[f]?p.event.remove(e,f):p.removeEvent(e,f,c.handle);i[d]&&(delete i[d],j?delete e[h]:e.removeAttribute?e.removeAttribute(h):e[h]=null,p.deletedIds.push(d))}}}}),function(){var a,b;p.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \\/]([\\w.]+)/.exec(a)||/(webkit)[ \\/]([\\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \\/]([\\w.]+)/.exec(a)||/(msie) ([\\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a=p.uaMatch(g.userAgent),b={},a.browser&&(b[a.browser]=!0,b.version=a.version),b.chrome?b.webkit=!0:b.webkit&&(b.safari=!0),p.browser=b,p.sub=function(){function a(b,c){return new a.fn.init(b,c)}p.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function c(c,d){return d&&d instanceof p&&!(d instanceof a)&&(d=a(d)),p.fn.init.call(this,c,d,b)},a.fn.init.prototype=a.fn;var b=a(e);return a}}();var bH,bI,bJ,bK=/alpha\\([^)]*\\)/i,bL=/opacity=([^)]*)/,bM=/^(top|right|bottom|left)$/,bN=/^(none|table(?!-c[ea]).+)/,bO=/^margin/,bP=new RegExp("^("+q+")(.*)$","i"),bQ=new RegExp("^("+q+")(?!px)[a-z%]+$","i"),bR=new RegExp("^([-+])=("+q+")","i"),bS={},bT={position:"absolute",visibility:"hidden",display:"block"},bU={letterSpacing:0,fontWeight:400},bV=["Top","Right","Bottom","Left"],bW=["Webkit","O","Moz","ms"],bX=p.fn.toggle;p.fn.extend({css:function(a,c){return p.access(this,function(a,c,d){return d!==b?p.style(a,c,d):p.css(a,c)},a,c,arguments.length>1)},show:function(){return b$(this,!0)},hide:function(){return b$(this)},toggle:function(a,b){var c=typeof a=="boolean";return p.isFunction(a)&&p.isFunction(b)?bX.apply(this,arguments):this.each(function(){(c?a:bZ(this))?p(this).show():p(this).hide()})}}),p.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bH(a,"opacity");return c===""?"1":c}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":p.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!a||a.nodeType===3||a.nodeType===8||!a.style)return;var f,g,h,i=p.camelCase(c),j=a.style;c=p.cssProps[i]||(p.cssProps[i]=bY(j,i)),h=p.cssHooks[c]||p.cssHooks[i];if(d===b)return h&&"get"in h&&(f=h.get(a,!1,e))!==b?f:j[c];g=typeof d,g==="string"&&(f=bR.exec(d))&&(d=(f[1]+1)*f[2]+parseFloat(p.css(a,c)),g="number");if(d==null||g==="number"&&isNaN(d))return;g==="number"&&!p.cssNumber[i]&&(d+="px");if(!h||!("set"in h)||(d=h.set(a,d,e))!==b)try{j[c]=d}catch(k){}},css:function(a,c,d,e){var f,g,h,i=p.camelCase(c);return c=p.cssProps[i]||(p.cssProps[i]=bY(a.style,i)),h=p.cssHooks[c]||p.cssHooks[i],h&&"get"in h&&(f=h.get(a,!0,e)),f===b&&(f=bH(a,c)),f==="normal"&&c in bU&&(f=bU[c]),d||e!==b?(g=parseFloat(f),d||p.isNumeric(g)?g||0:f):f},swap:function(a,b,c){var d,e,f={};for(e in b)f[e]=a.style[e],a.style[e]=b[e];d=c.call(a);for(e in b)a.style[e]=f[e];return d}}),a.getComputedStyle?bH=function(b,c){var d,e,f,g,h=a.getComputedStyle(b,null),i=b.style;return h&&(d=h[c],d===""&&!p.contains(b.ownerDocument,b)&&(d=p.style(b,c)),bQ.test(d)&&bO.test(c)&&(e=i.width,f=i.minWidth,g=i.maxWidth,i.minWidth=i.maxWidth=i.width=d,d=h.width,i.width=e,i.minWidth=f,i.maxWidth=g)),d}:e.documentElement.currentStyle&&(bH=function(a,b){var c,d,e=a.currentStyle&&a.currentStyle[b],f=a.style;return e==null&&f&&f[b]&&(e=f[b]),bQ.test(e)&&!bM.test(b)&&(c=f.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":e,e=f.pixelLeft+"px",f.left=c,d&&(a.runtimeStyle.left=d)),e===""?"auto":e}),p.each(["height","width"],function(a,b){p.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth===0&&bN.test(bH(a,"display"))?p.swap(a,bT,function(){return cb(a,b,d)}):cb(a,b,d)},set:function(a,c,d){return b_(a,c,d?ca(a,b,d,p.support.boxSizing&&p.css(a,"boxSizing")==="border-box"):0)}}}),p.support.opacity||(p.cssHooks.opacity={get:function(a,b){return bL.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=p.isNumeric(b)?"alpha(opacity="+b*100+")":"",f=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&p.trim(f.replace(bK,""))===""&&c.removeAttribute){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bK.test(f)?f.replace(bK,e):f+" "+e}}),p(function(){p.support.reliableMarginRight||(p.cssHooks.marginRight={get:function(a,b){return p.swap(a,{display:"inline-block"},function(){if(b)return bH(a,"marginRight")})}}),!p.support.pixelPosition&&p.fn.position&&p.each(["top","left"],function(a,b){p.cssHooks[b]={get:function(a,c){if(c){var d=bH(a,b);return bQ.test(d)?p(a).position()[b]+"px":d}}}})}),p.expr&&p.expr.filters&&(p.expr.filters.hidden=function(a){return a.offsetWidth===0&&a.offsetHeight===0||!p.support.reliableHiddenOffsets&&(a.style&&a.style.display||bH(a,"display"))==="none"},p.expr.filters.visible=function(a){return!p.expr.filters.hidden(a)}),p.each({margin:"",padding:"",border:"Width"},function(a,b){p.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bV[d]+b]=e[d]||e[d-2]||e[0];return f}},bO.test(a)||(p.cssHooks[a+b].set=b_)});var cd=/%20/g,ce=/\\[\\]$/,cf=/\\r?\\n/g,cg=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,ch=/^(?:select|textarea)/i;p.fn.extend({serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?p.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ch.test(this.nodeName)||cg.test(this.type))}).map(function(a,b){var c=p(this).val();return c==null?null:p.isArray(c)?p.map(c,function(a,c){return{name:b.name,value:a.replace(cf,"\\r\\n")}}):{name:b.name,value:c.replace(cf,"\\r\\n")}}).get()}}),p.param=function(a,c){var d,e=[],f=function(a,b){b=p.isFunction(b)?b():b==null?"":b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=p.ajaxSettings&&p.ajaxSettings.traditional);if(p.isArray(a)||a.jquery&&!p.isPlainObject(a))p.each(a,function(){f(this.name,this.value)});else for(d in a)ci(d,a[d],c,f);return e.join("&").replace(cd,"+")};var cj,ck,cl=/#.*$/,cm=/^(.*?):[ \\t]*([^\\r\\n]*)\\r?$/mg,cn=/^(?:about|app|app\\-storage|.+\\-extension|file|res|widget):$/,co=/^(?:GET|HEAD)$/,cp=/^\\/\\//,cq=/\\?/,cr=/)<[^<]*)*<\\/script>/gi,cs=/([?&])_=[^&]*/,ct=/^([\\w\\+\\.\\-]+:)(?:\\/\\/([^\\/?#:]*)(?::(\\d+)|)|)/,cu=p.fn.load,cv={},cw={},cx=["*/"]+["*"];try{ck=f.href}catch(cy){ck=e.createElement("a"),ck.href="",ck=ck.href}cj=ct.exec(ck.toLowerCase())||[],p.fn.load=function(a,c,d){if(typeof a!="string"&&cu)return cu.apply(this,arguments);if(!this.length)return this;var e,f,g,h=this,i=a.indexOf(" ");return i>=0&&(e=a.slice(i,a.length),a=a.slice(0,i)),p.isFunction(c)?(d=c,c=b):c&&typeof c=="object"&&(f="POST"),p.ajax({url:a,type:f,dataType:"html",data:c,complete:function(a,b){d&&h.each(d,g||[a.responseText,b,a])}}).done(function(a){g=arguments,h.html(e?p("
").append(a.replace(cr,"")).find(e):a)}),this},p.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){p.fn[b]=function(a){return this.on(b,a)}}),p.each(["get","post"],function(a,c){p[c]=function(a,d,e,f){return p.isFunction(d)&&(f=f||e,e=d,d=b),p.ajax({type:c,url:a,data:d,success:e,dataType:f})}}),p.extend({getScript:function(a,c){return p.get(a,b,c,"script")},getJSON:function(a,b,c){return p.get(a,b,c,"json")},ajaxSetup:function(a,b){return b?cB(a,p.ajaxSettings):(b=a,a=p.ajaxSettings),cB(a,b),a},ajaxSettings:{url:ck,isLocal:cn.test(cj[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":cx},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":p.parseJSON,"text xml":p.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:cz(cv),ajaxTransport:cz(cw),ajax:function(a,c){function y(a,c,f,i){var k,s,t,u,w,y=c;if(v===2)return;v=2,h&&clearTimeout(h),g=b,e=i||"",x.readyState=a>0?4:0,f&&(u=cC(l,x,f));if(a>=200&&a<300||a===304)l.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(p.lastModified[d]=w),w=x.getResponseHeader("Etag"),w&&(p.etag[d]=w)),a===304?(y="notmodified",k=!0):(k=cD(l,u),y=k.state,s=k.data,t=k.error,k=!t);else{t=y;if(!y||a)y="error",a<0&&(a=0)}x.status=a,x.statusText=(c||y)+"",k?o.resolveWith(m,[s,y,x]):o.rejectWith(m,[x,y,t]),x.statusCode(r),r=b,j&&n.trigger("ajax"+(k?"Success":"Error"),[x,l,k?s:t]),q.fireWith(m,[x,y]),j&&(n.trigger("ajaxComplete",[x,l]),--p.active||p.event.trigger("ajaxStop"))}typeof a=="object"&&(c=a,a=b),c=c||{};var d,e,f,g,h,i,j,k,l=p.ajaxSetup({},c),m=l.context||l,n=m!==l&&(m.nodeType||m instanceof p)?p(m):p.event,o=p.Deferred(),q=p.Callbacks("once memory"),r=l.statusCode||{},t={},u={},v=0,w="canceled",x={readyState:0,setRequestHeader:function(a,b){if(!v){var c=a.toLowerCase();a=u[c]=u[c]||a,t[a]=b}return this},getAllResponseHeaders:function(){return v===2?e:null},getResponseHeader:function(a){var c;if(v===2){if(!f){f={};while(c=cm.exec(e))f[c[1].toLowerCase()]=c[2]}c=f[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){return v||(l.mimeType=a),this},abort:function(a){return a=a||w,g&&g.abort(a),y(0,a),this}};o.promise(x),x.success=x.done,x.error=x.fail,x.complete=q.add,x.statusCode=function(a){if(a){var b;if(v<2)for(b in a)r[b]=[r[b],a[b]];else b=a[x.status],x.always(b)}return this},l.url=((a||l.url)+"").replace(cl,"").replace(cp,cj[1]+"//"),l.dataTypes=p.trim(l.dataType||"*").toLowerCase().split(s),l.crossDomain==null&&(i=ct.exec(l.url.toLowerCase())||!1,l.crossDomain=i&&i.join(":")+(i[3]?"":i[1]==="http:"?80:443)!==cj.join(":")+(cj[3]?"":cj[1]==="http:"?80:443)),l.data&&l.processData&&typeof l.data!="string"&&(l.data=p.param(l.data,l.traditional)),cA(cv,l,c,x);if(v===2)return x;j=l.global,l.type=l.type.toUpperCase(),l.hasContent=!co.test(l.type),j&&p.active++===0&&p.event.trigger("ajaxStart");if(!l.hasContent){l.data&&(l.url+=(cq.test(l.url)?"&":"?")+l.data,delete l.data),d=l.url;if(l.cache===!1){var z=p.now(),A=l.url.replace(cs,"$1_="+z);l.url=A+(A===l.url?(cq.test(l.url)?"&":"?")+"_="+z:"")}}(l.data&&l.hasContent&&l.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",l.contentType),l.ifModified&&(d=d||l.url,p.lastModified[d]&&x.setRequestHeader("If-Modified-Since",p.lastModified[d]),p.etag[d]&&x.setRequestHeader("If-None-Match",p.etag[d])),x.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+(l.dataTypes[0]!=="*"?", "+cx+"; q=0.01":""):l.accepts["*"]);for(k in l.headers)x.setRequestHeader(k,l.headers[k]);if(!l.beforeSend||l.beforeSend.call(m,x,l)!==!1&&v!==2){w="abort";for(k in{success:1,error:1,complete:1})x[k](l[k]);g=cA(cw,l,c,x);if(!g)y(-1,"No Transport");else{x.readyState=1,j&&n.trigger("ajaxSend",[x,l]),l.async&&l.timeout>0&&(h=setTimeout(function(){x.abort("timeout")},l.timeout));try{v=1,g.send(t,y)}catch(B){if(v<2)y(-1,B);else throw B}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var cE=[],cF=/\\?/,cG=/(=)\\?(?=&|$)|\\?\\?/,cH=p.now();p.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=cE.pop()||p.expando+"_"+cH++;return this[a]=!0,a}}),p.ajaxPrefilter("json jsonp",function(c,d,e){var f,g,h,i=c.data,j=c.url,k=c.jsonp!==!1,l=k&&cG.test(j),m=k&&!l&&typeof i=="string"&&!(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&cG.test(i);if(c.dataTypes[0]==="jsonp"||l||m)return f=c.jsonpCallback=p.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,g=a[f],l?c.url=j.replace(cG,"$1"+f):m?c.data=i.replace(cG,"$1"+f):k&&(c.url+=(cF.test(j)?"&":"?")+c.jsonp+"="+f),c.converters["script json"]=function(){return h||p.error(f+" was not called"),h[0]},c.dataTypes[0]="json",a[f]=function(){h=arguments},e.always(function(){a[f]=g,c[f]&&(c.jsonpCallback=d.jsonpCallback,cE.push(f)),h&&p.isFunction(g)&&g(h[0]),h=g=b}),"script"}),p.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){return p.globalEval(a),a}}}),p.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),p.ajaxTransport("script",function(a){if(a.crossDomain){var c,d=e.head||e.getElementsByTagName("head")[0]||e.documentElement;return{send:function(f,g){c=e.createElement("script"),c.async="async",a.scriptCharset&&(c.charset=a.scriptCharset),c.src=a.url,c.onload=c.onreadystatechange=function(a,e){if(e||!c.readyState||/loaded|complete/.test(c.readyState))c.onload=c.onreadystatechange=null,d&&c.parentNode&&d.removeChild(c),c=b,e||g(200,"success")},d.insertBefore(c,d.firstChild)},abort:function(){c&&c.onload(0,1)}}}});var cI,cJ=a.ActiveXObject?function(){for(var a in cI)cI[a](0,1)}:!1,cK=0;p.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&cL()||cM()}:cL,function(a){p.extend(p.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(p.ajaxSettings.xhr()),p.support.ajax&&p.ajaxTransport(function(c){if(!c.crossDomain||p.support.cors){var d;return{send:function(e,f){var g,h,i=c.xhr();c.username?i.open(c.type,c.url,c.async,c.username,c.password):i.open(c.type,c.url,c.async);if(c.xhrFields)for(h in c.xhrFields)i[h]=c.xhrFields[h];c.mimeType&&i.overrideMimeType&&i.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(h in e)i.setRequestHeader(h,e[h])}catch(j){}i.send(c.hasContent&&c.data||null),d=function(a,e){var h,j,k,l,m;try{if(d&&(e||i.readyState===4)){d=b,g&&(i.onreadystatechange=p.noop,cJ&&delete cI[g]);if(e)i.readyState!==4&&i.abort();else{h=i.status,k=i.getAllResponseHeaders(),l={},m=i.responseXML,m&&m.documentElement&&(l.xml=m);try{l.text=i.responseText}catch(a){}try{j=i.statusText}catch(n){j=""}!h&&c.isLocal&&!c.crossDomain?h=l.text?200:404:h===1223&&(h=204)}}}catch(o){e||f(-1,o)}l&&f(h,j,l,k)},c.async?i.readyState===4?setTimeout(d,0):(g=++cK,cJ&&(cI||(cI={},p(a).unload(cJ)),cI[g]=d),i.onreadystatechange=d):d()},abort:function(){d&&d(0,1)}}}});var cN,cO,cP=/^(?:toggle|show|hide)$/,cQ=new RegExp("^(?:([-+])=|)("+q+")([a-z%]*)$","i"),cR=/queueHooks$/,cS=[cY],cT={"*":[function(a,b){var c,d,e=this.createTween(a,b),f=cQ.exec(b),g=e.cur(),h=+g||0,i=1,j=20;if(f){c=+f[2],d=f[3]||(p.cssNumber[a]?"":"px");if(d!=="px"&&h){h=p.css(e.elem,a,!0)||c||1;do i=i||".5",h=h/i,p.style(e.elem,a,h+d);while(i!==(i=e.cur()/g)&&i!==1&&--j)}e.unit=d,e.start=h,e.end=f[1]?h+(f[1]+1)*c:c}return e}]};p.Animation=p.extend(cW,{tweener:function(a,b){p.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");var c,d=0,e=a.length;for(;d-1,j={},k={},l,m;i?(k=e.position(),l=k.top,m=k.left):(l=parseFloat(g)||0,m=parseFloat(h)||0),p.isFunction(b)&&(b=b.call(a,c,f)),b.top!=null&&(j.top=b.top-f.top+l),b.left!=null&&(j.left=b.left-f.left+m),"using"in b?b.using.call(a,j):e.css(j)}},p.fn.extend({position:function(){if(!this[0])return;var a=this[0],b=this.offsetParent(),c=this.offset(),d=c_.test(b[0].nodeName)?{top:0,left:0}:b.offset();return c.top-=parseFloat(p.css(a,"marginTop"))||0,c.left-=parseFloat(p.css(a,"marginLeft"))||0,d.top+=parseFloat(p.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(p.css(b[0],"borderLeftWidth"))||0,{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||e.body;while(a&&!c_.test(a.nodeName)&&p.css(a,"position")==="static")a=a.offsetParent;return a||e.body})}}),p.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);p.fn[a]=function(e){return p.access(this,function(a,e,f){var g=da(a);if(f===b)return g?c in g?g[c]:g.document.documentElement[e]:a[e];g?g.scrollTo(d?p(g).scrollLeft():f,d?f:p(g).scrollTop()):a[e]=f},a,e,arguments.length,null)}}),p.each({Height:"height",Width:"width"},function(a,c){p.each({padding:"inner"+a,content:c,"":"outer"+a},function(d,e){p.fn[e]=function(e,f){var g=arguments.length&&(d||typeof e!="boolean"),h=d||(e===!0||f===!0?"margin":"border");return p.access(this,function(c,d,e){var f;return p.isWindow(c)?c.document.documentElement["client"+a]:c.nodeType===9?(f=c.documentElement,Math.max(c.body["scroll"+a],f["scroll"+a],c.body["offset"+a],f["offset"+a],f["client"+a])):e===b?p.css(c,d,e,h):p.style(c,d,e,h)},c,g?e:b,g,null)}})}),a.jQuery=a.$=p,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return p})})(window);\n'},95321:function(e){e.exports='!function(t,s,i,e){"use strict";if(t.ion=t.ion||{},!ion.sound){var o=function(s){if(s||(s="undefined"),t.console){console.warn&&"function"==typeof console.warn?console.warn(s):console.log&&"function"==typeof console.log&&console.log(s);var e=i&&i("#debug");if(e&&e.length){var o=e.html();e.html(o+s+"
")}}},n=function(t,s){var i;for(i in s=s||{},t)t.hasOwnProperty(i)&&(s[i]=t[i]);return s};if("function"!=typeof Audio&&"object"!=typeof Audio){var h=function(){o("HTML5 Audio is not supported in this browser")};return ion.sound=h,ion.sound.play=h,ion.sound.stop=h,ion.sound.pause=h,ion.sound.preload=h,ion.sound.destroy=h,void h()}var a,p=/iPad|iPhone|iPod/.test(s.appVersion),r=0,u={},l={};!u.supported&&p?u.supported=["mp3"]:u.supported||(u.supported=["mp3","ogg","wav"]);ion.sound=function(t){var s,i;if(n(t,u),u.path=u.path||"",u.volume=u.volume||1,u.preload=u.preload||!1,u.multiplay=u.multiplay||!1,u.loop=u.loop||!1,u.sprite=u.sprite||null,u.scope=u.scope||null,u.ready_callback=u.ready_callback||null,u.ended_callback=u.ended_callback||null,r=u.sounds.length)for(a=0;a=this.end||this.end-this.time_offset<.015)&&(this._ended(),this.clear(),this.loop&&(this.loop--,this.play()))},_ended:function(){var t={name:this.name,alias:this.alias,part:this.sprite_part,start:this.start,duration:this.end};this.ended_callback&&"function"==typeof this.ended_callback&&this.ended_callback.call(this.scope,t)},clear:function(){this.time_played=0,this.time_offset=0,this.paused=!1,this.playing=!1},setVolume:function(t){this.volume=t.volume,this.gain&&(this.gain.gain.value=this.volume)}},!d){!function(){var t,s,i=new Audio,e=i.canPlayType("audio/mpeg"),o=i.canPlayType("audio/ogg");for(s=0;s=this.end&&this.playing&&(this.stop(),this._ended())}},ended:function(){this.playing&&(this.stop(),this._ended())},_ended:function(){this.playing=!1;var t={name:this.name,alias:this.alias,part:this.sprite_part,start:this.start,duration:this.end};this.ended_callback&&"function"==typeof this.ended_callback&&this.ended_callback.call(this.scope,t),this.loop&&setTimeout(this.looper.bind(this),15)},looper:function(){this.loop--,this.play()},clear:function(){this.start_time=0,this.played_time=0,this.paused_time=0},setVolume:function(t){this.volume=t.volume,this.sound&&(this.sound.volume=this.volume)}}}}}(window,navigator,window.jQuery||window.$);\n'},68944:function(e){e.exports='!function(a){function c(b,c){var d=a(c);return d.length<2?d:b.parent().find(c)}function e(b,e){var f=this,g=b.add(f),h=b.children(),i=0,j=e.vertical;if(d||(d=f),h.length>1&&(h=a(e.items,b)),e.size>1&&(e.circular=!1),a.extend(f,{getConf:function(){return e},getIndex:function(){return i},getSize:function(){return f.getItems().size()},getNaviButtons:function(){return n.add(o)},getRoot:function(){return b},getItemWrap:function(){return h},getItems:function(){return h.find(e.item).not("."+e.clonedClass)},move:function(a,b){return f.seekTo(i+a,b)},next:function(a){return f.move(e.size,a)},prev:function(a){return f.move(-e.size,a)},begin:function(a){return f.seekTo(0,a)},end:function(a){return f.seekTo(f.getSize()-1,a)},focus:function(){return d=f,f},addItem:function(b){return b=a(b),e.circular?(h.children().last().before(b),h.children().first().replaceWith(b.clone().addClass(e.clonedClass))):(h.append(b),o.removeClass("disabled")),g.trigger("onAddItem",[b]),f},seekTo:function(b,c,k){if(b.jquery||(b*=1),e.circular&&0===b&&-1==i&&0!==c)return f;if(!e.circular&&0>b||b>f.getSize()||-1>b)return f;var l=b;b.jquery?b=f.getItems().index(b):l=f.getItems().eq(b);var m=a.Event("onBeforeSeek");if(!k&&(g.trigger(m,[b,c]),m.isDefaultPrevented()||!l.length))return f;var n=j?{top:-l.position().top}:{left:-l.position().left};return i=b,d=f,void 0===c&&(c=e.speed),h.animate(n,c,e.easing,k||function(){g.trigger("onSeek",[b])}),f}}),a.each(["onBeforeSeek","onSeek","onAddItem"],function(b,c){a.isFunction(e[c])&&a(f).on(c,e[c]),f[c]=function(b){return b&&a(f).on(c,b),f}}),e.circular){var k=f.getItems().slice(-1).clone().prependTo(h),l=f.getItems().eq(1).clone().appendTo(h);k.add(l).addClass(e.clonedClass),f.onBeforeSeek(function(a,b,c){return a.isDefaultPrevented()?void 0:-1==b?(f.seekTo(k,c,function(){f.end(0)}),a.preventDefault()):void(b==f.getSize()&&f.seekTo(l,c,function(){f.begin(0)}))});var m=b.parents().add(b).filter(function(){return"none"===a(this).css("display")?!0:void 0});m.length?(m.show(),f.seekTo(0,0,function(){}),m.hide()):f.seekTo(0,0,function(){})}var n=c(b,e.prev).click(function(a){a.stopPropagation(),f.prev()}),o=c(b,e.next).click(function(a){a.stopPropagation(),f.next()});if(e.circular||(f.onBeforeSeek(function(a,b){setTimeout(function(){a.isDefaultPrevented()||(n.toggleClass(e.disabledClass,0>=b),o.toggleClass(e.disabledClass,b>=f.getSize()-1))},1)}),e.initialIndex||n.addClass(e.disabledClass)),f.getSize()<2&&n.add(o).addClass(e.disabledClass),e.mousewheel&&a.fn.mousewheel&&b.mousewheel(function(a,b){return e.mousewheel?(f.move(0>b?1:-1,e.wheelSpeed||50),!1):void 0}),e.touch){var p={};h[0].ontouchstart=function(a){var b=a.touches[0];p.x=b.clientX,p.y=b.clientY},h[0].ontouchmove=function(a){if(1==a.touches.length&&!h.is(":animated")){var b=a.touches[0],c=p.x-b.clientX,d=p.y-b.clientY;f[j&&d>0||!j&&c>0?"next":"prev"](),a.preventDefault()}}}e.keyboard&&a(document).on("keydown.scrollable",function(b){if(!(!e.keyboard||b.altKey||b.ctrlKey||b.metaKey||a(b.target).is(":input")||"static"!=e.keyboard&&d!=f)){var c=b.keyCode;return!j||38!=c&&40!=c?j||37!=c&&39!=c?void 0:(f.move(37==c?-1:1),b.preventDefault()):(f.move(38==c?-1:1),b.preventDefault())}}),e.initialIndex&&f.seekTo(e.initialIndex,0,function(){})}a.tools=a.tools||{version:"@VERSION"},a.tools.scrollable={conf:{activeClass:"active",circular:!1,clonedClass:"cloned",disabledClass:"disabled",easing:"swing",initialIndex:0,item:"> *",items:".items",keyboard:!0,mousewheel:!1,next:".next",prev:".prev",size:1,speed:400,vertical:!1,touch:!0,wheelSpeed:0}};var d;a.fn.scrollable=function(b){var c=this.data("scrollable");return c?c:(b=a.extend({},a.tools.scrollable.conf,b),this.each(function(){c=new e(a(this),b),a(this).data("scrollable",c)}),b.api?c:this)}}(jQuery),function(a){var b=a.tools.scrollable;b.autoscroll={conf:{autoplay:!0,interval:3e3,autopause:!0}},a.fn.autoscroll=function(c){"number"==typeof c&&(c={interval:c});var e,d=a.extend({},b.autoscroll.conf,c);return this.each(function(){function h(){f&&clearTimeout(f),f=setTimeout(function(){b.next()},d.interval)}var f,b=a(this).data("scrollable"),c=b.getRoot(),g=!1;b&&(e=b),b.play=function(){f||(g=!1,c.on("onSeek",h),h())},b.pause=function(){f=clearTimeout(f),c.off("onSeek",h)},b.resume=function(){g||b.play()},b.stop=function(){g=!0,b.pause()},d.autopause&&c.add(b.getNaviButtons()).hover(b.pause,b.resume),d.autoplay&&b.play()}),d.api?e:this}}(jQuery),function(a){function c(b,c){var d=a(c);return d.length<2?d:b.parent().find(c)}var b=a.tools.scrollable;b.navigator={conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:!1,idPrefix:null,history:!1}},a.fn.navigator=function(d){"string"==typeof d&&(d={navi:d}),d=a.extend({},b.navigator.conf,d);var e;return this.each(function(){function k(a,c,d){b.seekTo(c),d.preventDefault(),i&&history.pushState({i:c},"")}function l(){return f.find(d.naviItem||"> *")}function m(b){var c=a("<"+(d.naviItem||"a")+"/>").click(function(c){k(a(this),b,c)});return 0===b&&c.addClass(h),d.indexed&&c.text(b+1),d.idPrefix&&c.attr("id",d.idPrefix+b),c.appendTo(f)}var b=a(this).data("scrollable"),f=d.navi.jquery?d.navi:c(b.getRoot(),d.navi),g=b.getNaviButtons(),h=d.activeClass,i=d.history&&!!history.pushState,j=b.getConf().size;b&&(e=b),b.getNaviButtons=function(){return g.add(f)},i&&(history.pushState({i:0},""),a(window).on("popstate",function(a){var c=a.originalEvent.state;c&&b.seekTo(c.i)})),l().length?l().each(function(b){a(this).click(function(c){k(a(this),b,c)})}):a.each(b.getItems(),function(a){a%j==0&&m(a)}),b.onBeforeSeek(function(a,b){setTimeout(function(){if(!a.isDefaultPrevented()){var c=b/j,d=l().eq(c);d.length&&l().removeClass(h).eq(c).addClass(h)}},1)}),b.onAddItem(function(a,c){var d=b.getItems().index(c);d%j==0&&m(d)})}),d.api?e:this}}(jQuery),function(a){function e(c,d,e){var j,f=this,g=c.add(this),h=c.find(e.tabs),i=d.jquery?d:c.children(d);h.length||(h=c.children()),i.length||(i=c.parent().find(d)),i.length||(i=a(d)),a.extend(this,{click:function(d,i){var k=h.eq(d),l=!c.data("tabs");if("string"==typeof d&&d.replace("#","")&&(k=h.filter(\'[href*="\'+d.replace("#","")+\'"]\'),d=Math.max(h.index(k),0)),e.rotate){var m=h.length-1;if(0>d)return f.click(m,i);if(d>m)return f.click(0,i)}if(!k.length){if(j>=0)return f;d=e.initialIndex,k=h.eq(d)}if(d===j)return f;if(i=i||a.Event(),i.type="onBeforeClick",g.trigger(i,[d]),!i.isDefaultPrevented()){var n=l?e.initialEffect&&e.effect||"default":e.effect;return b[n].call(f,d,function(){j=d,i.type="onClick",g.trigger(i,[d])}),h.removeClass(e.current),k.addClass(e.current),f}},getConf:function(){return e},getTabs:function(){return h},getPanes:function(){return i},getCurrentPane:function(){return i.eq(j)},getCurrentTab:function(){return h.eq(j)},getIndex:function(){return j},next:function(){return f.click(j+1)},prev:function(){return f.click(j-1)},destroy:function(){return h.off(e.event).removeClass(e.current),i.find(\'a[href^="#"]\').off("click.T"),f}}),a.each("onBeforeClick,onClick".split(","),function(b,c){a.isFunction(e[c])&&a(f).on(c,e[c]),f[c]=function(b){return b&&a(f).on(c,b),f}}),e.history&&a.fn.history&&(a.tools.history.init(h),e.event="history"),h.each(function(b){a(this).on(e.event,function(a){return f.click(b,a),a.preventDefault()})}),i.find(\'a[href^="#"]\').on("click.T",function(b){f.click(a(this).attr("href"),b)}),location.hash&&"a"==e.tabs&&c.find(\'[href="\'+location.hash+\'"]\').length?f.click(location.hash):(0===e.initialIndex||e.initialIndex>0)&&f.click(e.initialIndex)}a.tools=a.tools||{version:"@VERSION"},a.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialEffect:!1,initialIndex:0,event:"click",rotate:!1,slideUpSpeed:400,slideDownSpeed:400,history:!1},addEffect:function(a,c){b[a]=c}};var c,d,b={"default":function(a,b){this.getPanes().hide().eq(a).show(),b.call()},fade:function(a,b){var c=this.getConf(),d=c.fadeOutSpeed,e=this.getPanes();d?e.fadeOut(d):e.hide(),e.eq(a).fadeIn(c.fadeInSpeed,b)},slide:function(a,b){var c=this.getConf();this.getPanes().slideUp(c.slideUpSpeed),this.getPanes().eq(a).slideDown(c.slideDownSpeed,b)},ajax:function(a,b){this.getPanes().eq(0).load(this.getTabs().eq(a).attr("href"),b)}};a.tools.tabs.addEffect("horizontal",function(b,e){if(!c){var f=this.getPanes().eq(b),g=this.getCurrentPane();d||(d=this.getPanes().eq(0).width()),c=!0,f.show(),g.animate({width:0},{step:function(a){f.css("width",d-a)},complete:function(){a(this).hide(),e.call(),c=!1}}),g.length||(e.call(),c=!1)}}),a.fn.tabs=function(b,c){var d=this.data("tabs");return d&&(d.destroy(),this.removeData("tabs")),a.isFunction(c)&&(c={onBeforeClick:c}),c=a.extend({},a.tools.tabs.conf,c),this.each(function(){d=new e(a(this),b,c),a(this).data("tabs",d)}),c.api?d:this}}(jQuery),function(a){function c(b,c){function i(c){var d=a(c);return d.length<2?d:b.parent().find(c)}function l(){g=setTimeout(function(){f.next()},c.interval)}var g,d=this,e=b.add(this),f=b.data("tabs"),h=!0,j=i(c.next).click(function(){f.next()}),k=i(c.prev).click(function(){f.prev()});if(a.extend(d,{getTabs:function(){return f},getConf:function(){return c},play:function(){if(g)return d;var b=a.Event("onBeforePlay");return e.trigger(b),b.isDefaultPrevented()?d:(h=!1,e.trigger("onPlay"),e.on("onClick",l),l(),d)},pause:function(){if(!g)return d;var b=a.Event("onBeforePause");return e.trigger(b),b.isDefaultPrevented()?d:(g=clearTimeout(g),e.trigger("onPause"),e.off("onClick",l),d)},resume:function(){h||d.play()},stop:function(){d.pause(),h=!0}}),a.each("onBeforePlay,onPlay,onBeforePause,onPause".split(","),function(b,e){a.isFunction(c[e])&&a(d).on(e,c[e]),d[e]=function(b){return a(d).on(e,b)}}),c.autopause&&f.getTabs().add(j).add(k).add(f.getPanes()).hover(d.pause,d.resume),c.autoplay&&d.play(),c.clickable&&f.getPanes().click(function(){f.next()}),!f.getConf().rotate){var m=c.disabledClass;f.getIndex()||k.addClass(m),f.onBeforeClick(function(a,b){k.toggleClass(m,!b),j.toggleClass(m,b==f.getTabs().length-1)})}}var b;b=a.tools.tabs.slideshow={conf:{next:".forward",prev:".backward",disabledClass:"disabled",autoplay:!1,autopause:!0,interval:3e3,clickable:!0,api:!1}},a.fn.slideshow=function(d){var e=this.data("slideshow");return e?e:(d=a.extend({},b.conf,d),this.each(function(){e=new c(a(this),d),a(this).data("slideshow",e)}),d.api?e:this)}}(jQuery),function(){function f(a,b){if(b)for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}function g(a,b){var c=[];for(var d in a)a.hasOwnProperty(d)&&(c[d]=b(a[d]));return c}function j(c,d,e){if(h.isSupported(d.version))c.innerHTML=h.getHTML(d,e);else if(d.expressInstall&&h.isSupported([6,65]))c.innerHTML=h.getHTML(f(d,{src:d.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title});else if(c.innerHTML.replace(/\\s/g,"")||(c.innerHTML="

Flash version "+d.version+" or greater is required

"+(i[0]>0?"Your version is "+i:"You have no flash plugin installed")+"

"+("A"==c.tagName?"

Click here to download latest version

":"

Download latest version from here

"),"A"==c.tagName&&(c.onclick=function(){location.href=b})),d.onFail){var g=d.onFail.call(this);"string"==typeof g&&(c.innerHTML=g)}a&&(window[d.id]=document.getElementById(d.id)),f(this,{getRoot:function(){return c},getOptions:function(){return d},getConf:function(){return e},getApi:function(){return c.firstChild}})}var a=document.all,b="http://www.adobe.com/go/getflashplayer",c="function"==typeof jQuery,d=/(\\d+)[^\\d]+(\\d+)[^\\d]*(\\d*)/,e={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:!0,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:!1,cachebusting:!1};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){},__flash_savedUnloadHandler=function(){}}),window.flashembed=function(a,b,c){return"string"==typeof a&&(a=document.getElementById(a.replace("#",""))),a?("string"==typeof b&&(b={src:b}),new j(a,f(f({},e),b),c)):void 0};var h=f(window.flashembed,{conf:e,getVersion:function(){var a,b;try{b=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(c){try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),b=a&&a.GetVariable("$version")}catch(e){try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),b=a&&a.GetVariable("$version")}catch(f){}}}return b=d.exec(b),b?[b[1],b[3]]:[0,0]},asString:function(a){if(null===a||void 0===a)return null;var b=typeof a;switch("object"==b&&a.push&&(b="array"),b){case"string":return a=a.replace(new RegExp(\'(["\\\\\\\\])\',"g"),"\\\\$1"),a=a.replace(/^\\s?(\\d+\\.?\\d*)%/,"$1pct"),\'"\'+a+\'"\';case"array":return"["+g(a,function(a){return h.asString(a)}).join(",")+"]";case"function":return\'"function()"\';case"object":var c=[];for(var d in a)a.hasOwnProperty(d)&&c.push(\'"\'+d+\'":\'+h.asString(a[d]));return"{"+c.join(",")+"}"}return String(a).replace(/\\s/g," ").replace(/\\\'/g,\'"\')},getHTML:function(b,c){b=f({},b);var d=\'\'),b.width=b.height=b.id=b.w3c=b.src=null,b.onFail=b.version=b.expressInstall=null;for(var e in b)b[e]&&(d+=\'\');var g="";if(c){for(var i in c)if(c[i]){var j=c[i];g+=i+"="+encodeURIComponent(/function|object/.test(typeof j)?h.asString(j):j)+"&"}g=g.slice(0,-1),d+=\'"}return d+=""},isSupported:function(a){return i[0]>a[0]||i[0]==a[0]&&i[1]>=a[1]}}),i=h.getVersion();c&&(jQuery.tools=jQuery.tools||{version:"@VERSION"},jQuery.tools.flashembed={conf:e},jQuery.fn.flashembed=function(a,b){return this.each(function(){jQuery(this).data("flashembed",flashembed(this,a,b))})})}(),function(a){function c(b,c,d){var e=d.relative?b.position().top:b.offset().top,f=d.relative?b.position().left:b.offset().left,g=d.position[0];e-=c.outerHeight()-d.offset[0],f+=b.outerWidth()+d.offset[1],/iPad/i.test(navigator.userAgent)&&(e-=a(window).scrollTop());var h=c.outerHeight()+b.outerHeight();"center"==g&&(e+=h/2),"bottom"==g&&(e+=h),g=d.position[1];var i=c.outerWidth()+b.outerWidth();return"center"==g&&(f-=i/2),"left"==g&&(f-=i),{top:e,left:f}}function d(d,e){var h,n,f=this,g=d.add(f),i=0,j=0,k=d.attr("title"),l=d.attr("data-tooltip"),m=b[e.effect],o=d.is(":input"),p=o&&d.is(":checkbox, :radio, select, :button, :submit"),q=d.attr("type"),r=e.events[q]||e.events[o?p?"widget":"input":"def"];if(!m)throw\'Nonexistent effect "\'+e.effect+\'"\';if(r=r.split(/,\\s*/),2!=r.length)throw"Tooltip: bad events configuration for "+q;d.on(r[0],function(a){clearTimeout(i),e.predelay?j=setTimeout(function(){f.show(a)},e.predelay):f.show(a)}).on(r[1],function(a){clearTimeout(j),e.delay?i=setTimeout(function(){f.hide(a)},e.delay):f.hide(a)}),k&&e.cancelDefault&&(d.removeAttr("title"),d.data("title",k)),a.extend(f,{show:function(b){if(!h&&(l?h=a(l):e.tip?h=a(e.tip).eq(0):k?h=a(e.layout).addClass(e.tipClass).appendTo(document.body).hide().append(k):(h=d.next(),h.length||(h=d.parent().next())),!h.length))throw"Cannot find tooltip for "+d;if(f.isShown())return f;h.stop(!0,!0);var o=c(d,h,e);if(e.tip&&h.html(d.data("title")),b=a.Event(),b.type="onBeforeShow",g.trigger(b,[o]),b.isDefaultPrevented())return f;o=c(d,h,e),h.css({position:"absolute",top:o.top,left:o.left}),n=!0,m[0].call(f,function(){b.type="onShow",n="full",g.trigger(b)});var p=e.events.tooltip.split(/,\\s*/);return h.data("__set")||(h.off(p[0]).on(p[0],function(){clearTimeout(i),clearTimeout(j)}),p[1]&&!d.is("input:not(:checkbox, :radio), textarea")&&h.off(p[1]).on(p[1],function(a){a.relatedTarget!=d[0]&&d.trigger(r[1].split(" ")[0])}),e.tip||h.data("__set",!0)),f},hide:function(c){return h&&f.isShown()?(c=a.Event(),c.type="onBeforeHide",g.trigger(c),c.isDefaultPrevented()?void 0:(n=!1,b[e.effect][1].call(f,function(){c.type="onHide",g.trigger(c)}),f)):f},isShown:function(a){return a?"full"==n:n},getConf:function(){return e},getTip:function(){return h},getTrigger:function(){return d}}),a.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(b,c){a.isFunction(e[c])&&a(f).on(c,e[c]),f[c]=function(b){return b&&a(f).on(c,b),f}})}a.tools=a.tools||{version:"@VERSION"},a.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,fadeIE:!1,position:["top","center"],offset:[0,0],relative:!1,cancelDefault:!0,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"
",tipClass:"tooltip"},addEffect:function(a,c,d){b[a]=[c,d]}};var b={toggle:[function(a){var b=this.getConf(),c=this.getTip(),d=b.opacity;1>d&&c.css({opacity:d}),c.show(),a.call()},function(a){this.getTip().hide(),a.call()}],fade:[function(b){var c=this.getConf();!a.browser.msie||c.fadeIE?this.getTip().fadeTo(c.fadeInSpeed,c.opacity,b):(this.getTip().show(),b())},function(b){var c=this.getConf();!a.browser.msie||c.fadeIE?this.getTip().fadeOut(c.fadeOutSpeed,b):(this.getTip().hide(),b())}]};a.fn.tooltip=function(b){var c=this.data("tooltip");return c?c:(b=a.extend(!0,{},a.tools.tooltip.conf,b),"string"==typeof b.position&&(b.position=b.position.split(/,?\\s/)),this.each(function(){c=new d(a(this),b),a(this).data("tooltip",c)}),b.api?c:this)}}(jQuery),function(a){function h(b,c,d){c=a(c).first()||c;var e=b.offset().top,f=b.offset().left,g=d.position.split(/,?\\s+/),h=g[0],i=g[1];e-=c.outerHeight()-d.offset[0],f+=b.outerWidth()+d.offset[1],/iPad/i.test(navigator.userAgent)&&(e-=a(window).scrollTop());var j=c.outerHeight()+b.outerHeight();"center"==h&&(e+=j/2),"bottom"==h&&(e+=j);var k=b.outerWidth();return"center"==i&&(f-=(k+c.outerWidth())/2),"left"==i&&(f-=k),{top:e,left:f}}function i(a){function b(){return this.getAttribute("type")==a}return b.key=\'[type="\'+a+\'"]\',b}function l(b,c,e){function l(b,c,d){if(e.grouped||!b.length){var f;if(d===!1||a.isArray(d)){f=g.messages[c.key||c]||g.messages["*"],f=f[e.lang]||g.messages["*"].en;var h=f.match(/\\$\\d/g);h&&a.isArray(d)&&a.each(h,function(a){f=f.replace(this,d[a])})}else f=d[e.lang]||d;b.push(f)}}var f=this,i=c.add(f);b=b.not(":button, :image, :reset, :submit"),c.attr("novalidate","novalidate"),a.extend(f,{getConf:function(){return e},getForm:function(){return c},getInputs:function(){return b},reflow:function(){return b.each(function(){var b=a(this),c=b.data("msg.el");if(c){var d=h(b,c,e);c.css({top:d.top,left:d.left})}}),f},invalidate:function(c,d){if(!d){var g=[];a.each(c,function(a,c){var d=b.filter("[name=\'"+a+"\']");d.length&&(d.trigger("OI",[c]),g.push({input:d,messages:[c]}))}),c=g,d=a.Event()}return d.type="onFail",i.trigger(d,[c]),d.isDefaultPrevented()||k[e.effect][0].call(f,c,d),f},reset:function(c){return c=c||b,c.removeClass(e.errorClass).each(function(){var b=a(this).data("msg.el");b&&(b.remove(),a(this).data("msg.el",null))}).off(e.errorInputEvent+".v"||""),f},destroy:function(){return c.off(e.formEvent+".V reset.V"),b.off(e.inputEvent+".V change.V"),f.reset()},checkValidity:function(c,g){c=c||b,c=c.not(":disabled");var h={};if(c=c.filter(function(){var b=a(this).attr("name");return h[b]?void 0:(h[b]=!0,a(this))}),!c.length)return!0;if(g=g||a.Event(),g.type="onBeforeValidate",i.trigger(g,[c]),g.isDefaultPrevented())return g.result;var m=[];c.each(function(){var b=[],c=a(this).data("messages",b),h=d&&c.is(":date")?"onHide.v":e.errorInputEvent+".v";return c.off(h),a.each(j,function(){var a=this,d=a[0];if(c.filter(d).length){var h=a[1].call(f,c,c.val());if(h!==!0){if(g.type="onBeforeFail",i.trigger(g,[c,d]),g.isDefaultPrevented())return!1;var j=c.attr(e.messageAttr);if(j)return b=[j],!1;l(b,d,h)}}}),b.length&&(m.push({input:c,messages:b}),c.trigger("OI",[b]),e.errorInputEvent&&c.on(h,function(a){f.checkValidity(c,a)})),e.singleError&&m.length?!1:void 0});var n=k[e.effect];if(!n)throw\'Validator: cannot find effect "\'+e.effect+\'"\';return m.length?(f.invalidate(m,g),!1):(n[1].call(f,c,g),g.type="onSuccess",i.trigger(g,[c]),c.off(e.errorInputEvent+".v"),!0)}}),a.each("onBeforeValidate,onBeforeFail,onFail,onSuccess".split(","),function(b,c){a.isFunction(e[c])&&a(f).on(c,e[c]),f[c]=function(b){return b&&a(f).on(c,b),f}}),e.formEvent&&c.on(e.formEvent+".V",function(a){return f.checkValidity(null,a)?(a.target=c,void(a.type=e.formEvent)):a.preventDefault()}),c.on("reset.V",function(){f.reset()}),b[0]&&b[0].validity&&b.each(function(){this.oninvalid=function(){return!1}}),c[0]&&(c[0].checkValidity=f.checkValidity),e.inputEvent&&b.on(e.inputEvent+".V",function(b){f.checkValidity(a(this),b)}),b.filter(":checkbox, select").filter("[required]").on("change.V",function(b){var c=a(this);(this.checked||c.is("select")&&a(this).val())&&k[e.effect][1].call(f,c,b)}),b.filter(":radio[required]").on("change.V",function(b){var c=a("[name=\'"+a(b.srcElement).attr("name")+"\']");null!=c&&0!=c.length&&f.checkValidity(c,b)}),a(window).resize(function(){f.reflow()})}a.tools=a.tools||{version:"@VERSION"};var g,b=/\\[type=([a-z]+)\\]/,c=/^-?[0-9]*(\\.[0-9]+)?$/,d=a.tools.dateinput,e=/^([a-z0-9_\\.\\-\\+]+)@([\\da-z\\.\\-]+)\\.([a-z\\.]{2,6})$/i,f=/^(https?:\\/\\/)?[\\da-z\\.\\-]+\\.[a-z\\.]{2,6}[#&+_\\?\\/\\w \\.\\-=]*$/i;g=a.tools.validator={conf:{grouped:!1,effect:"default",errorClass:"invalid",inputEvent:null,errorInputEvent:"keyup",formEvent:"submit",lang:"en",message:"
",messageAttr:"data-message",messageClass:"error",offset:[0,0],position:"center right",singleError:!1,speed:"normal"},messages:{"*":{en:"Please correct this value"}},localize:function(b,c){a.each(c,function(a,c){g.messages[a]=g.messages[a]||{},g.messages[a][b]=c})},localizeFn:function(b,c){g.messages[b]=g.messages[b]||{},a.extend(g.messages[b],c)},fn:function(c,d,e){a.isFunction(d)?e=d:("string"==typeof d&&(d={en:d}),this.messages[c.key||c]=d);var f=b.exec(c);f&&(c=i(f[1])),j.push([c,e])},addEffect:function(a,b,c){k[a]=[b,c]}};var j=[],k={"default":[function(b){var c=this.getConf();a.each(b,function(b,d){var e=d.input;e.addClass(c.errorClass);var f=e.data("msg.el");f||(f=a(c.message).addClass(c.messageClass).appendTo(document.body),e.data("msg.el",f)),f.css({visibility:"hidden"}).find("p").remove(),a.each(d.messages,function(b,c){a("

").html(c).appendTo(f)}),f.outerWidth()==f.parent().width()&&f.add(f.find("p")).css({display:"inline"});var g=h(e,f,c);f.css({visibility:"visible",position:"absolute",top:g.top,left:g.left}).fadeIn(c.speed)})},function(b){var c=this.getConf();b.removeClass(c.errorClass).each(function(){var b=a(this).data("msg.el");b&&b.css({visibility:"hidden"})})}]};a.each("email,url,number".split(","),function(b,c){a.expr[":"][c]=function(a){return a.getAttribute("type")===c}}),a.fn.oninvalid=function(a){return this[a?"on":"trigger"]("OI",a)},g.fn(":email","Please enter a valid email address",function(a,b){return!b||e.test(b)}),g.fn(":url","Please enter a valid URL",function(a,b){return!b||f.test(b)}),g.fn(":number","Please enter a numeric value.",function(a,b){return c.test(b)}),g.fn("[max]","Please enter a value no larger than $1",function(a,b){if(""===b||d&&a.is(":date"))return!0;var c=a.attr("max");return parseFloat(b)<=parseFloat(c)?!0:[c]}),g.fn("[min]","Please enter a value of at least $1",function(a,b){if(""===b||d&&a.is(":date"))return!0;var c=a.attr("min");return parseFloat(b)>=parseFloat(c)?!0:[c]}),g.fn("[required]","Please complete this mandatory field.",function(a,b){return a.is(":checkbox")?a.is(":checked"):!!b}),g.fn("[pattern]",function(a,b){return""===b||new RegExp("^"+a.attr("pattern")+"$").test(b)}),g.fn(":radio","Please select an option.",function(b){var c=!1;a("[name=\'"+b.attr("name")+"\']").each(function(b,d){a(d).is(":checked")&&(c=!0)});return c?!0:!1}),a.fn.validator=function(b){var c=this.data("validator");return c&&(c.destroy(),this.removeData("validator")),b=a.extend(!0,{},g.conf,b),this.is("form")?this.each(function(){var d=a(this);c=new l(d.find(":input"),d,b),d.data("validator",c)}):(c=new l(this,this.eq(0).closest("form"),b),this.data("validator",c))}}(jQuery);\n'},4977:function(e){e.exports='!function(a){function b(a){return!isNaN(parseFloat(a))&&isFinite(a)}function c(a,b,d,e,f,g,h){var i,j,k;return h?(i=0===d?"":b.slice(-d),j=b.slice(-e)):(i=b.slice(0,d),j=b.slice(0,e)),f.html(j+g).width()a?e=k-1:d=k+1,c(a,b,d,e,f,g,h)))}a.fn.truncate=function(d){var e={width:"auto",token:"…",center:!1,addclass:!1,addtitle:!1};return d=a.extend(e,d),this.each(function(){var k,e=a(this),f={fontFamily:e.css("fontFamily"),fontSize:e.css("fontSize"),fontStyle:e.css("fontStyle"),fontWeight:e.css("fontWeight"),"font-variant":e.css("font-variant"),"text-indent":e.css("text-indent"),"text-transform":e.css("text-transform"),"letter-spacing":e.css("letter-spacing"),"word-spacing":e.css("word-spacing"),display:"none"},g=e.html(),h=a("").css(f).html(g).appendTo("body"),i=h.width(),j=b(d.width)?d.width:e.width();i>j&&(h.text(""),d.center?(j=parseInt(j/2,10)+1,k=g.slice(0,c(j,g,0,g.length,h,d.token,!1))+d.token+g.slice(-1*c(j,g,0,g.length,h,"",!0))):k=g.slice(0,c(j,g,0,g.length,h,d.token,!1))+d.token,d.addclass&&e.addClass(d.addclass),d.addtitle&&e.attr("title",g),e.html(k)),h.remove()})}}(jQuery);'},71227:function(e,t,n){"use strict";n.d(t,{j:function(){return a}});var r=n(16409),i=n(17402),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=0||(i[n]=e[n]);return i}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const c=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],u=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"];try{window.__reactRouterVersion="6"}catch(e){}function l(e,t){return(0,o.aE)({basename:null==t?void 0:t.basename,future:a({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,o.zR)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||d(),routes:e,mapRouteProperties:i.wE,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function d(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=a({},t,{errors:f(t.errors)})),t}function f(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new o.VV(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let i=new t(r.message);i.stack="",n[e]=i}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}const h=r.createContext({isTransitioning:!1});const p=r.createContext(new Map);const m=r.startTransition,v=r.flushSync;r.useId;function g(e){v?v(e):e()}class _{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}}function b(e){let{fallbackElement:t,router:n,future:o}=e,[a,s]=r.useState(n.state),[c,u]=r.useState(),[l,d]=r.useState({isTransitioning:!1}),[f,v]=r.useState(),[b,A]=r.useState(),[S,E]=r.useState(),w=r.useRef(new Map),{v7_startTransition:C}=o||{},T=r.useCallback((e=>{C?function(e){m?m(e):e()}(e):e()}),[C]),L=r.useCallback(((e,t)=>{let{deletedFetchers:r,flushSync:i,viewTransitionOpts:o}=t;r.forEach((e=>w.current.delete(e))),e.fetchers.forEach(((e,t)=>{void 0!==e.data&&w.current.set(t,e.data)}));let a=null==n.window||null==n.window.document||"function"!=typeof n.window.document.startViewTransition;if(o&&!a){if(i){g((()=>{b&&(f&&f.resolve(),b.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:o.currentLocation,nextLocation:o.nextLocation})}));let t=n.window.document.startViewTransition((()=>{g((()=>s(e)))}));return t.finished.finally((()=>{g((()=>{v(void 0),A(void 0),u(void 0),d({isTransitioning:!1})}))})),void g((()=>A(t)))}b?(f&&f.resolve(),b.skipTransition(),E({state:e,currentLocation:o.currentLocation,nextLocation:o.nextLocation})):(u(e),d({isTransitioning:!0,flushSync:!1,currentLocation:o.currentLocation,nextLocation:o.nextLocation}))}else i?g((()=>s(e))):T((()=>s(e)))}),[n.window,b,f,w,T]);r.useLayoutEffect((()=>n.subscribe(L)),[n,L]),r.useEffect((()=>{l.isTransitioning&&!l.flushSync&&v(new _)}),[l]),r.useEffect((()=>{if(f&&c&&n.window){let e=c,t=f.promise,r=n.window.document.startViewTransition((async()=>{T((()=>s(e))),await t}));r.finished.finally((()=>{v(void 0),A(void 0),u(void 0),d({isTransitioning:!1})})),A(r)}}),[T,c,f,n.window]),r.useEffect((()=>{f&&c&&a.location.key===c.location.key&&f.resolve()}),[f,b,a.location,c]),r.useEffect((()=>{!l.isTransitioning&&S&&(u(S.state),d({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}),E(void 0))}),[l.isTransitioning,S]),r.useEffect((()=>{}),[]);let M=r.useMemo((()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})})),[n]),k=n.basename||"/",N=r.useMemo((()=>({router:n,navigator:M,static:!1,basename:k})),[n,M,k]),I=r.useMemo((()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath})),[n.future.v7_relativeSplatPath]);return r.createElement(r.Fragment,null,r.createElement(i.sp.Provider,{value:N},r.createElement(i.Rq.Provider,{value:a},r.createElement(p.Provider,{value:w.current},r.createElement(h.Provider,{value:l},r.createElement(i.Ix,{basename:k,location:a.location,navigationType:a.historyAction,navigator:M,future:I},a.initialized||n.future.v7_partialHydration?r.createElement(y,{routes:n.routes,future:n.future,state:a}):t))))),null)}const y=r.memo(A);function A(e){let{routes:t,future:n,state:r}=e;return(0,i.ph)(t,void 0,r,n)}function S(e){let{basename:t,children:n,future:a,window:s}=e,c=r.useRef();null==c.current&&(c.current=(0,o.zR)({window:s,v5Compat:!0}));let u=c.current,[l,d]=r.useState({action:u.action,location:u.location}),{v7_startTransition:f}=a||{},h=r.useCallback((e=>{f&&m?m((()=>d(e))):d(e)}),[d,f]);return r.useLayoutEffect((()=>u.listen(h)),[u,h]),r.createElement(i.Ix,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:u,future:a})}const E="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,w=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,C=r.forwardRef((function(e,t){let n,{onClick:u,relative:l,reloadDocument:d,replace:f,state:h,target:p,to:m,preventScrollReset:v,viewTransition:g}=e,_=s(e,c),{basename:b}=r.useContext(i.jb),y=!1;if("string"==typeof m&&w.test(m)&&(n=m,E))try{let e=new URL(window.location.href),t=m.startsWith("//")?new URL(e.protocol+m):new URL(m),n=(0,o.pb)(t.pathname,b);t.origin===e.origin&&null!=n?m=n+t.search+t.hash:y=!0}catch(e){}let A=(0,i.$P)(m,{relative:l}),S=function(e,t){let{target:n,replace:a,state:s,preventScrollReset:c,relative:u,viewTransition:l}=void 0===t?{}:t,d=(0,i.Zp)(),f=(0,i.zy)(),h=(0,i.x$)(e,{relative:u});return r.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==a?a:(0,o.AO)(f)===(0,o.AO)(h);d(e,{replace:n,state:s,preventScrollReset:c,relative:u,viewTransition:l})}}),[f,d,h,a,s,n,e,c,u,l])}(m,{replace:f,state:h,target:p,preventScrollReset:v,relative:l,viewTransition:g});return r.createElement("a",a({},_,{href:n||A,onClick:y||d?u:function(e){u&&u(e),e.defaultPrevented||S(e)},ref:t,target:p}))}));const T=r.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:c=!1,className:l="",end:d=!1,style:f,to:p,viewTransition:m,children:v}=e,g=s(e,u),_=(0,i.x$)(p,{relative:g.relative}),b=(0,i.zy)(),y=r.useContext(i.Rq),{navigator:A,basename:S}=r.useContext(i.jb),E=null!=y&&function(e,t){void 0===t&&(t={});let n=r.useContext(h);null==n&&(0,o.Oi)(!1);let{basename:a}=N(M.useViewTransitionState),s=(0,i.x$)(e,{relative:t.relative});if(!n.isTransitioning)return!1;let c=(0,o.pb)(n.currentLocation.pathname,a)||n.currentLocation.pathname,u=(0,o.pb)(n.nextLocation.pathname,a)||n.nextLocation.pathname;return null!=(0,o.B6)(s.pathname,u)||null!=(0,o.B6)(s.pathname,c)}(_)&&!0===m,w=A.encodeLocation?A.encodeLocation(_).pathname:_.pathname,T=b.pathname,L=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;c||(T=T.toLowerCase(),L=L?L.toLowerCase():null,w=w.toLowerCase()),L&&S&&(L=(0,o.pb)(L,S)||L);const k="/"!==w&&w.endsWith("/")?w.length-1:w.length;let I,O=T===w||!d&&T.startsWith(w)&&"/"===T.charAt(k),P=null!=L&&(L===w||!d&&L.startsWith(w)&&"/"===L.charAt(w.length)),R={isActive:O,isPending:P,isTransitioning:E},D=O?n:void 0;I="function"==typeof l?l(R):[l,O?"active":null,P?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof f?f(R):f;return r.createElement(C,a({},g,{"aria-current":D,className:I,ref:t,style:j,to:p,viewTransition:m}),"function"==typeof v?v(R):v)}));function L(e){let{getKey:t,storageKey:n}=e;return function(e){let{getKey:t,storageKey:n}=void 0===e?{}:e,{router:s}=N(M.UseScrollRestoration),{restoreScrollPosition:c,preventScrollReset:u}=I(k.UseScrollRestoration),{basename:l}=r.useContext(i.jb),d=(0,i.zy)(),f=(0,i.FE)(),h=(0,i.cq)();r.useEffect((()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"})),[]),function(e,t){let{capture:n}=t||{};r.useEffect((()=>{let t=null!=n?{capture:n}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}}),[e,n])}(r.useCallback((()=>{if("idle"===h.state){let e=(t?t(d,f):null)||d.key;P[e]=window.scrollY}try{sessionStorage.setItem(n||O,JSON.stringify(P))}catch(e){}window.history.scrollRestoration="auto"}),[n,t,h.state,d,f])),"undefined"!=typeof document&&(r.useLayoutEffect((()=>{try{let e=sessionStorage.getItem(n||O);e&&(P=JSON.parse(e))}catch(e){}}),[n]),r.useLayoutEffect((()=>{let e=t&&"/"!==l?(e,n)=>t(a({},e,{pathname:(0,o.pb)(e.pathname,l)||e.pathname}),n):t,n=null==s?void 0:s.enableScrollRestoration(P,(()=>window.scrollY),e);return()=>n&&n()}),[s,l,t]),r.useLayoutEffect((()=>{if(!1!==c)if("number"!=typeof c){if(d.hash){let e=document.getElementById(decodeURIComponent(d.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==u&&window.scrollTo(0,0)}else window.scrollTo(0,c)}),[d,c,u]))}({getKey:t,storageKey:n}),null}var M,k;function N(e){let t=r.useContext(i.sp);return t||(0,o.Oi)(!1),t}function I(e){let t=r.useContext(i.Rq);return t||(0,o.Oi)(!1),t}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(M||(M={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(k||(k={}));const O="react-router-scroll-positions";let P={}},47767:function(e,t,n){"use strict";n.d(t,{$P:function(){return f},FE:function(){return O},Ix:function(){return x},LG:function(){return P},Rq:function(){return s},Zp:function(){return v},cq:function(){return I},g:function(){return _},jb:function(){return c},ph:function(){return y},r5:function(){return R},sp:function(){return a},sv:function(){return j},wE:function(){return U},x$:function(){return b},zy:function(){return p}});var r=n(17402),i=n(45588);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.current=!0})),r.useCallback((function(r,i){void 0===i&&(i={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,o({fromRouteId:t},i)))}),[e,t])}():function(){h()||(0,i.Oi)(!1);let e=r.useContext(a),{basename:t,future:n,navigator:o}=r.useContext(c),{matches:s}=r.useContext(l),{pathname:u}=p(),d=JSON.stringify((0,i.yD)(s,n.v7_relativeSplatPath)),f=r.useRef(!1);return m((()=>{f.current=!0})),r.useCallback((function(n,r){if(void 0===r&&(r={}),!f.current)return;if("number"==typeof n)return void o.go(n);let a=(0,i.Gh)(n,JSON.parse(d),u,"path"===r.relative);null==e&&"/"!==t&&(a.pathname="/"===a.pathname?t:(0,i.HS)([t,a.pathname])),(r.replace?o.replace:o.push)(a,r.state,r)}),[t,o,d,u,e])}()}const g=r.createContext(null);function _(){let{matches:e}=r.useContext(l),t=e[e.length-1];return t?t.params:{}}function b(e,t){let{relative:n}=void 0===t?{}:t,{future:o}=r.useContext(c),{matches:a}=r.useContext(l),{pathname:s}=p(),u=JSON.stringify((0,i.yD)(a,o.v7_relativeSplatPath));return r.useMemo((()=>(0,i.Gh)(e,JSON.parse(u),s,"path"===n)),[e,u,s,n])}function y(e,t,n,a){h()||(0,i.Oi)(!1);let{navigator:s}=r.useContext(c),{matches:d}=r.useContext(l),f=d[d.length-1],m=f?f.params:{},v=(f&&f.pathname,f?f.pathnameBase:"/");f&&f.route;let g,_=p();if(t){var b;let e="string"==typeof t?(0,i.Rr)(t):t;"/"===v||(null==(b=e.pathname)?void 0:b.startsWith(v))||(0,i.Oi)(!1),g=e}else g=_;let y=g.pathname||"/",A=y;if("/"!==v){let e=v.replace(/^\//,"").split("/");A="/"+y.replace(/^\//,"").split("/").slice(e.length).join("/")}let S=(0,i.ue)(e,{pathname:A});let E=C(S&&S.map((e=>Object.assign({},e,{params:Object.assign({},m,e.params),pathname:(0,i.HS)([v,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?v:(0,i.HS)([v,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),d,n,a);return t&&E?r.createElement(u.Provider,{value:{location:o({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:i.rc.Pop}},E):E}function A(){let e=R(),t=(0,i.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:o};return r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:a},n):null,null)}const S=r.createElement(A,null);class E extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?r.createElement(l.Provider,{value:this.props.routeContext},r.createElement(d.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function w(e){let{routeContext:t,match:n,children:i}=e,o=r.useContext(a);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(l.Provider,{value:t},i)}function C(e,t,n,o){var a;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===o&&(o=null),null==e){var s;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(s=o)&&s.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let c=e,u=null==(a=n)?void 0:a.errors;if(null!=u){let e=c.findIndex((e=>e.route.id&&void 0!==(null==u?void 0:u[e.route.id])));e>=0||(0,i.Oi)(!1),c=c.slice(0,Math.min(c.length,e+1))}let l=!1,d=-1;if(n&&o&&o.v7_partialHydration)for(let e=0;e=0?c.slice(0,d+1):[c[0]];break}}}return c.reduceRight(((e,i,o)=>{let a,s=!1,f=null,h=null;var p;n&&(a=u&&i.route.id?u[i.route.id]:void 0,f=i.route.errorElement||S,l&&(d<0&&0===o?(p="route-fallback",!1||D[p]||(D[p]=!0),s=!0,h=null):d===o&&(s=!0,h=i.route.hydrateFallbackElement||null)));let m=t.concat(c.slice(0,o+1)),v=()=>{let t;return t=a?f:s?h:i.route.Component?r.createElement(i.route.Component,null):i.route.element?i.route.element:e,r.createElement(w,{match:i,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===o)?r.createElement(E,{location:n.location,revalidation:n.revalidation,component:f,error:a,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()}),null)}var T=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(T||{}),L=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(L||{});function M(e){let t=r.useContext(a);return t||(0,i.Oi)(!1),t}function k(e){let t=r.useContext(s);return t||(0,i.Oi)(!1),t}function N(e){let t=function(){let e=r.useContext(l);return e||(0,i.Oi)(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||(0,i.Oi)(!1),n.route.id}function I(){return k(L.UseNavigation).navigation}function O(){let{matches:e,loaderData:t}=k(L.UseMatches);return r.useMemo((()=>e.map((e=>(0,i.ro)(e,t)))),[e,t])}function P(){let e=k(L.UseLoaderData),t=N(L.UseLoaderData);if(!e.errors||null==e.errors[t])return e.loaderData[t];console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")")}function R(){var e;let t=r.useContext(d),n=k(L.UseRouteError),i=N(L.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[i]}const D={};r.startTransition;function j(e){return function(e){let t=r.useContext(l).outlet;return t?r.createElement(g.Provider,{value:e},t):t}(e.context)}function x(e){let{basename:t="/",children:n=null,location:a,navigationType:s=i.rc.Pop,navigator:l,static:d=!1,future:f}=e;h()&&(0,i.Oi)(!1);let p=t.replace(/^\/*/,"/"),m=r.useMemo((()=>({basename:p,navigator:l,static:d,future:o({v7_relativeSplatPath:!1},f)})),[p,f,l,d]);"string"==typeof a&&(a=(0,i.Rr)(a));let{pathname:v="/",search:g="",hash:_="",state:b=null,key:y="default"}=a,A=r.useMemo((()=>{let e=(0,i.pb)(v,p);return null==e?null:{location:{pathname:e,search:g,hash:_,state:b,key:y},navigationType:s}}),[p,v,g,_,b,y,s]);return null==A?null:r.createElement(c.Provider,{value:m},r.createElement(u.Provider,{children:n,value:A}))}new Promise((()=>{}));r.Component;function U(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:r.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:r.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:r.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}},94642:function(e){e.exports=function(e){function t(e){"undefined"!=typeof console&&(console.error||console.log)("[Script Loader]",e)}try{"undefined"!=typeof execScript&&"undefined"!=typeof attachEvent&&"undefined"==typeof addEventListener?execScript(e):"undefined"!=typeof eval?eval.call(null,e):t("EvalError: No eval function available")}catch(e){t(e)}}},98061:function(e,t,n){n(94642)(n(23126))},69335:function(e,t,n){n(94642)(n(41636))},90108:function(e,t,n){n(94642)(n(95321))},91299:function(e,t,n){n(94642)(n(68944))},31472:function(e,t,n){n(94642)(n(4977))},9826:function(e,t,n){var r={"./emoji_ar.json":[74986,40],"./emoji_cs.json":[30367,40],"./emoji_da.json":[58126,40],"./emoji_de.json":[10610,40],"./emoji_en.json":[27578,40],"./emoji_es.json":[66921,40],"./emoji_et.json":[67168,40],"./emoji_fi.json":[68252,40],"./emoji_fr.json":[53969,40],"./emoji_hi.json":[78346,40],"./emoji_hu.json":[44798,40],"./emoji_it.json":[88764,40],"./emoji_ja.json":[62616,40],"./emoji_jw.json":[83606,40],"./emoji_ko.json":[60531,40],"./emoji_lv.json":[2203,40],"./emoji_mk.json":[70697,40],"./emoji_nl.json":[50811,40],"./emoji_no.json":[13098,40],"./emoji_pl.json":[35865,40],"./emoji_pt.json":[15649,40],"./emoji_ru.json":[36908,40],"./emoji_sk.json":[59351,40],"./emoji_sl.json":[9530,40],"./emoji_sr.json":[51260,40],"./emoji_sv.json":[24032,40],"./emoji_tr.json":[80655,40],"./emoji_uk.json":[6241,40],"./emoji_zh.json":[54067,40]};function i(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return n.e(t[1]).then((function(){return n.t(i,19)}))}i.keys=function(){return Object.keys(r)},i.id=9826,e.exports=i},14513:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r,i=function(){var e=!1;try{"undefined"!=typeof localStorage&&(localStorage.setItem("test","1"),e="1"===localStorage.getItem("test"),localStorage.removeItem("test"))}catch(t){e=!1}return function(){return e}}(),o={people:["😀","😃","😄","😁","😆","😅","🤣","😂","🙂","🙃","😉","😊","😇","🥰","😍","🤩","😘","😗","😚","😙","😋","😛","😜","🤪","😝","🤑","🤗","🤭","🤫","🤔","🤐","🤨","😐","😑","😶","😏","😒","🙄","😬","🤥","😌","😔","😪","🤤","😴","😷","🤒","🤕","🤢","🤮","🤧","🥵","🥶","🥴","😵","🤯","🤠","🥳","😎","🤓","🧐","😕","😟","🙁","😮","😯","😲","😳","🥺","😦","😧","😨","😰","😥","😢","😭","😱","😖","😣","😞","😓","😩","😫","😤","😡","😠","🤬","😈","👿","💀","☠","💩","🤡","👹","👺","👻","👽","👾","🤖","😺","😸","😹","😻","😼","😽","🙀","😿","😾","👋","🤚","🖐","✋","🖖","👌","✌","🤞","🤟","🤘","🤙","👈","👉","👆","🖕","👇","☝","👍","👎","✊","👊","🤛","🤜","👏","🙌","👐","🤲","🤝","🙏","✍","💅","🤳","💪","🦵","🦶","👂","👃","🧠","🦷","🦴","👀","👁","👅","👄","👶","🧒","👦","👧","🧑","👱","👨","🧔","👩","👱‍♀️","👱‍♂️","🧓","👴","👵","🙍","🙍‍♂️","🙍‍♀️","🙎","🙎‍♂️","🙎‍♀️","🙅","🙅‍♂️","🙅‍♀️","🙆","🙆‍♂️","🙆‍♀️","💁","💁‍♂️","💁‍♀️","🙋","🙋‍♂️","🙋‍♀️","🙇","🙇‍♂️","🙇‍♀️","🤦","🤦‍♂️","🤦‍♀️","🤷","🤷‍♂️","🤷‍♀️","👨‍⚕️","👩‍⚕️","👨‍🎓","👩‍🎓","👨‍🏫","👩‍🏫","👨‍⚖️","👩‍⚖️","👨‍🌾","👩‍🌾","👨‍🍳","👩‍🍳","👨‍🔧","👩‍🔧","👨‍🏭","👩‍🏭","👨‍💼","👩‍💼","👨‍🔬","👩‍🔬","👨‍💻","👩‍💻","👨‍🎤","👩‍🎤","👨‍🎨","👩‍🎨","👨‍✈️","👩‍✈️","👨‍🚀","👩‍🚀","👨‍🚒","👩‍🚒","👮","👮‍♂️","👮‍♀️","🕵","🕵️‍♂️","🕵️‍♀️","💂","💂‍♂️","💂‍♀️","👷","👷‍♂️","👷‍♀️","🤴","👸","👳","👳‍♂️","👳‍♀️","👲","🧕","🤵","👰","🤰","🤱","👼","🎅","🤶","🦸","🦹","🧙","🧙‍♂️","🧙‍♀️","🧚","🧚‍♂️","🧚‍♀️","🧛","🧛‍♂️","🧛‍♀️","🧜","🧜‍♂️","🧜‍♀️","🧝","🧝‍♂️","🧝‍♀️","🧞","🧞‍♂️","🧞‍♀️","🧟","🧟‍♂️","🧟‍♀️","💆","💆‍♂️","💆‍♀️","💇","💇‍♂️","💇‍♀️","🚶","🚶‍♂️","🚶‍♀️","🏃","🏃‍♂️","🏃‍♀️","💃","🕺","🕴","👯","👯‍♂️","👯‍♀️","🧖","🧖‍♂️","🧖‍♀️","🧗","🧗‍♂️","🧗‍♀️","🛀","🛌","👭","👫","👬","💏","💑","👩‍❤️‍👨","👨‍❤️‍👨","👩‍❤️‍👩","👪","👨‍👩‍👦","👨‍👩‍👧","👨‍👩‍👧‍👦","👨‍👩‍👦‍👦","👨‍👩‍👧‍👧","👨‍👨‍👦","👨‍👨‍👧","👨‍👨‍👧‍👦","👨‍👨‍👦‍👦","👨‍👨‍👧‍👧","👩‍👩‍👦","👩‍👩‍👧","👩‍👩‍👧‍👦","👩‍👩‍👦‍👦","👩‍👩‍👧‍👧","👨‍👦","👨‍👦‍👦","👨‍👧","👨‍👧‍👦","👨‍👧‍👧","👩‍👦","👩‍👦‍👦","👩‍👧","👩‍👧‍👦","👩‍👧‍👧","🗣","👤","👥","👣"],nature:["🐶","🐺","🦊","🦝","🐱","🦍","🦁","🐯","🐷","🐽","🙈","🙉","🙊","🐵","🐻","🐨","🐼","🦌","🐮","🐸","🦛","🐭","🐹","🐰","🦡","🐴","🦄","🦓","🐗","🐒","🐕","🐩","🐈","🐅","🐆","🐎","🐂","🐃","🐄","🐖","🐏","🐑","🐐","🐪","🐫","🦙","🦒","🐘","🦏","🐇","🐿","🦘","🦔","🦃","🐔","🐓","🐤","🐥","🐦","🐧","🕊","🦅","🦆","🦢","🐁","🐀","🐣","🦇","🦉","🦚","🦜","🐊","🐢","🦎","🐍","🐲","🐉","🦕","🦖","🐳","🐋","🐬","🐟","🐠","🐡","🦈","🐙","🐾","🐚","🐌","🦋","🐛","🐜","🐝","🐞","🦗","🕷","🕸","🦂","🦟","🦠","💐","🌸","💮","🏵","🌹","🥀","🌺","🌻","🌼","🌷","🌱","🌲","🌳","🌴","🌵","🌾","🌿","☘","🍀","🍁","🍂","🍃","🌞","🌝","🌛","🌜","🌚","🌕","🌖","🌗","🌘","🌑","🌙","🌍","🌎","🌏","💥","⭐","🌟","🌠","⚡","💫","🔥","🌪","🌈","💦","💧","🌊","☄","💨","🌬","❄","☃","⛄","🌫","☁","⛅","⛈","🌤","🌥","🌦","🌧","🌨","🌩","🌂","☂","☔","🗾"],food:["🍎","🍏","🍇","🍈","🍉","🍊","🍋","🍌","🍍","🥭","🍐","🍑","🍒","🍓","🥝","🍅","🥥","🥑","🍆","🥔","🥕","🌽","🌶","🥒","🥬","🥦","🍄","🥜","🌰","🍞","🥐","🥖","🥨","🥯","🥞","🧀","🍖","🍗","🥩","🥓","🍔","🍟","🍕","🌭","🥪","🌮","🌯","🥙","🥚","🍳","🥘","🍲","🥣","🥗","🍿","🧂","🥫","🍱","🍘","🍙","🍚","🍛","🍜","🍝","🍠","🍢","🍣","🍤","🍥","🥮","🍡","🥟","🥠","🥡","🦀","🦞","🦐","🦑","🍦","🍧","🍨","🍩","🍪","🎂","🍰","🧁","🥧","🍫","🍬","🍭","🍮","🍯","🍼","🥛","☕","🍵","🍶","🍾","🍷","🍸","🍹","🍺","🍻","🥂","🥃","🥤","🥢","🍽","🍴","🥄","🔪"],activity:["🎖","🏆","🏅","🥇","🥈","🥉","⚽","⚾","🥎","🏀","🏐","🏈","🏉","🎾","🥏","🎳","🏏","🏑","🏒","🥍","🏓","🏸","🥊","🥋","🥅","⛳","⛸","🎣","🎽","🎿","🛷","🥌","🎯","🤺","🏇","⛷","🏂","🏌","🏌️‍♂️","🏌️‍♀️","🏄","🏄‍♂️","🏄‍♀️","🚣","🚣‍♂️","🚣‍♀️","🏊","🏊‍♂️","🏊‍♀️","⛹","⛹️‍♂️","⛹️‍♀️","🏋","🏋️‍♂️","🏋️‍♀️","🚴","🚴‍♂️","🚴‍♀️","🚵","🚵‍♂️","🚵‍♀️","🤸","🤸‍♂️","🤸‍♀️","🤼","🤼‍♂️","🤼‍♀️","🤽","🤽‍♂️","🤽‍♀️","🤾","🤾‍♂️","🤾‍♀️","🤹","🤹‍♂️","🤹‍♀️","🧘","🧘‍♂️","🧘‍♀️"],travel:["🌐","🗺","🗾","🧭","🏔","⛰","🌋","🗻","🏕","🏖","🏜","🏝","🏞","🏟","🏛","🏗","🧱","🏘","🏚","🏠","🏡","🏢","🏣","🏤","🏥","🏦","🏨","🏩","🏪","🏫","🏬","🏭","🏯","🏰","💒","🗼","🗽","⛪","🕌","🕍","⛩","🕋","⛲","⛺","🌁","🌃","🏙","🌄","🌅","🌆","🌇","🌉","♨","🎠","🎡","🎢","💈","🎪","🚂","🚃","🚄","🚅","🚆","🚇","🚈","🚉","🚊","🚝","🚞","🚋","🚌","🚍","🚎","🚐","🚑","🚒","🚓","🚔","🚕","🚖","🚗","🚘","🚙","🚚","🚛","🚜","🏎","🏍","🛵","🚲","🛴","🛹","🚏","🛣","🛤","🛢","⛽","🚨","🚥","🚦","🛑","🚧","⚓","⛵","🛶","🚤","🛳","⛴","🛥","🚢","✈","🛩","🛫","🛬","🪂","💺","🚁","🚟","🚠","🚡","🛰","🚀","🛸"],objects:["🎱","🔮","🧿","🎮","🕹","🎰","🎲","🧩","🧸","✏","✒","🖋","🖊","🖌","🖍","📝","💼","✉","📧","📨","📩","📤","📥","📦","📫","📪","📬","📭","📮","🗳","📁","📂","🗂","📅","📆","🗒","🗓","📈","📉","🗃","🗄","🗑","📊","📌","📍","📎","🖇","📏","📐","✂","🔒","🔓","🔐","🔑","🗝","🔨","⛏","⚒","🛠","🗡","⚔","🔫","🏹","🛡","🔧","🔩","⚙","🗜","⚖","🔗","⛓","🧰","🧲","📡","💉","💊","🛏","🛋","🚿","🧴","🧷","🧹","🧺","🛒","🧯","🚬","💰","💴","💵","💶","💷","💸","💳","📱","📲","☎","📞","📟","📠","🔋","🔌","💻","🖥","🖨","⌨","🖱","🖲","💽","💾","💿","📀","🎥","🎞","📽","🎬","📺","📷","📸","📹","📼","🔍","🕯","💡","🔦","📔","📕","📖","📚","🗞","🔖"],symbols:["❤","💙","💚","💛","💜","💓","💔","💕","💖","💗","💘","💝","💋","💌","♈","♉","♊","♋","♌","♍","♎","♏","♐","♑","♒","♓","⛎","🔀","🔁","🔂","▶","⏩","⏭","⏯","◀","⏪","⏮","🔼","⏫","🔽","⏬","⏸","⏹","⏺","⏏","🎦","🔅","🔆","📶","📳","📴","♀","♂","✖","➕","➖","➗","♾","‼","⁉","❓","❔","❕","❗","〰","💱","💲","⚕","♻","⚜","🔱","📛","🔰","⭕","✅","☑","✔","❌","❎","➰","➿","〽","✳","✴","❇","©","®","™","🔠","🔡","🔢","🔣","🔤","🅰","🆎","🅱","🆑","🆒","🆓","ℹ","🆔","Ⓜ","🆕","🆖","🅾","🆗","🅿","🆘","🆙","🆚","🈁","🈂","🈷","🈶","🈯","🉐","🈹","🈚","🈲","🉑","🈸","🈴","🈳","㊗","㊙","🈺","🈵","🔴","🟠","🟡","🟢","🔵","🟣","🟤","⚫","⚪","🟥","🟧","🟨","🟩","🟦","🟪","🟫","⬛","⬜","◼","◻","◾","◽","▪","▫","🔶","🔷","🔸","🔹","🔺","🔻","💠","🔘","🔳","🔲"],flags:["🏁","🚩","🎌","🏴","🏳","🏳️‍🌈","🏴‍☠️","🇦🇨","🇦🇩","🇦🇪","🇦🇫","🇦🇬","🇦🇮","🇦🇱","🇦🇲","🇦🇴","🇦🇶","🇦🇷","🇦🇸","🇦🇹","🇦🇺","🇦🇼","🇦🇽","🇦🇿","🇧🇦","🇧🇧","🇧🇩","🇧🇪","🇧🇫","🇧🇬","🇧🇭","🇧🇮","🇧🇯","🇧🇱","🇧🇲","🇧🇳","🇧🇴","🇧🇶","🇧🇷","🇧🇸","🇧🇹","🇧🇻","🇧🇼","🇧🇾","🇧🇿","🇨🇦","🇨🇨","🇨🇩","🇨🇫","🇨🇬","🇨🇭","🇨🇮","🇨🇰","🇨🇱","🇨🇲","🇨🇳","🇨🇴","🇨🇵","🇨🇷","🇨🇺","🇨🇻","🇨🇼","🇨🇽","🇨🇾","🇨🇿","🇩🇪","🇩🇬","🇩🇯","🇩🇰","🇩🇲","🇩🇴","🇩🇿","🇪🇦","🇪🇨","🇪🇪","🇪🇬","🇪🇭","🇪🇷","🇪🇸","🇪🇹","🇪🇺","🇫🇮","🇫🇯","🇫🇰","🇫🇲","🇫🇴","🇫🇷","🇬🇦","🇬🇧","🇬🇩","🇬🇪","🇬🇫","🇬🇬","🇬🇭","🇬🇮","🇬🇱","🇬🇲","🇬🇳","🇬🇵","🇬🇶","🇬🇷","🇬🇸","🇬🇹","🇬🇺","🇬🇼","🇬🇾","🇭🇰","🇭🇲","🇭🇳","🇭🇷","🇭🇹","🇭🇺","🇮🇨","🇮🇩","🇮🇪","🇮🇱","🇮🇲","🇮🇳","🇮🇴","🇮🇶","🇮🇷","🇮🇸","🇮🇹","🇯🇪","🇯🇲","🇯🇴","🇯🇵","🇰🇪","🇰🇬","🇰🇭","🇰🇮","🇰🇲","🇰🇳","🇰🇵","🇰🇷","🇰🇼","🇰🇾","🇰🇿","🇱🇦","🇱🇧","🇱🇨","🇱🇮","🇱🇰","🇱🇷","🇱🇸","🇱🇹","🇱🇺","🇱🇻","🇱🇾","🇲🇦","🇲🇨","🇲🇩","🇲🇪","🇲🇫","🇲🇬","🇲🇭","🇲🇰","🇲🇱","🇲🇲","🇲🇳","🇲🇴","🇲🇵","🇲🇶","🇲🇷","🇲🇸","🇲🇹","🇲🇺","🇲🇻","🇲🇼","🇲🇽","🇲🇾","🇲🇿","🇳🇦","🇳🇨","🇳🇪","🇳🇫","🇳🇬","🇳🇮","🇳🇱","🇳🇴","🇳🇵","🇳🇷","🇳🇺","🇳🇿","🇴🇲","🇵🇦","🇵🇪","🇵🇫","🇵🇬","🇵🇭","🇵🇰","🇵🇱","🇵🇲","🇵🇳","🇵🇷","🇵🇸","🇵🇹","🇵🇼","🇵🇾","🇶🇦","🇷🇪","🇷🇴","🇷🇸","🇷🇺","🇷🇼","🇸🇦","🇸🇧","🇸🇨","🇸🇩","🇸🇪","🇸🇬","🇸🇭","🇸🇮","🇸🇯","🇸🇰","🇸🇱","🇸🇲","🇸🇳","🇸🇴","🇸🇷","🇸🇸","🇸🇹","🇸🇻","🇸🇽","🇸🇾","🇸🇿","🇹🇦","🇹🇨","🇹🇩","🇹🇫","🇹🇬","🇹🇭","🇹🇯","🇹🇰","🇹🇱","🇹🇲","🇹🇳","🇹🇴","🇹🇷","🇹🇹","🇹🇻","🇹🇼","🇹🇿","🇺🇦","🇺🇬","🇺🇲","🇺🇳","🇺🇸","🇺🇾","🇺🇿","🇻🇦","🇻🇨","🇻🇪","🇻🇬","🇻🇮","🇻🇳","🇻🇺","🇼🇫","🇼🇸","🇽🇰","🇾🇪","🇾🇹","🏴󠁧󠁢󠁥󠁮󠁧󠁿","🏴󠁧󠁢󠁳󠁣󠁴󠁿","🏴󠁧󠁢󠁷󠁬󠁳󠁿","🇿🇦","🇿🇲","🇿🇼"],unsuggested:["🫠","☺","🥲","🫢","🫣","🫡","🫥","😶‍🌫️","😮‍💨","😵‍💫","🥸","🫤","☹","🥹","🥱","💞","💟","❣","❤️‍🔥","❤️‍🩹","🧡","🤎","🖤","🤍","💯","💢","🕳","💣","💬","👁️‍🗨️","🗨","🗯","💭","💤","🫱","🫲","🫳","🫴","🤌","🤏","🫰","🫵","🫶","🦾","🦿","🦻","🫀","🫁","🫦","🧔‍♂️","🧔‍♀️","👨‍🦰","👨‍🦱","👨‍🦳","👨‍🦲","👩‍🦰","🧑‍🦰","👩‍🦱","🧑‍🦱","👩‍🦳","🧑‍🦳","👩‍🦲","🧑‍🦲","🧏","🧏‍♂️","🧏‍♀️","🧑‍⚕️","🧑‍🎓","🧑‍🏫","🧑‍⚖️","🧑‍🌾","🧑‍🍳","🧑‍🔧","🧑‍🏭","🧑‍💼","🧑‍🔬","🧑‍💻","🧑‍🎤","🧑‍🎨","🧑‍✈️","🧑‍🚀","🧑‍🚒","🥷","🫅","🤵‍♂️","🤵‍♀️","👰‍♂️","👰‍♀️","🫃","🫄","👩‍🍼","👨‍🍼","🧑‍🍼","🧑‍🎄","🦸‍♂️","🦸‍♀️","🦹‍♂️","🦹‍♀️","🧌","🧍","🧍‍♂️","🧍‍♀️","🧎","🧎‍♂️","🧎‍♀️","🧑‍🦯","👨‍🦯","👩‍🦯","🧑‍🦼","👨‍🦼","👩‍🦼","🧑‍🦽","👨‍🦽","👩‍🦽","🧑‍🤝‍🧑","👩‍❤️‍💋‍👨","👨‍❤️‍💋‍👨","👩‍❤️‍💋‍👩","🫂","🦰","🦱","🦳","🦲","🦧","🦮","🐕‍🦺","🐈‍⬛","🦬","🦣","🦫","🐻‍❄️","🦥","🦦","🦨","🦤","🪶","🦩","🦭","🪸","🪲","🪳","🪰","🪱","🪷","🪴","🪹","🪺","🫐","🫒","🫑","🧄","🧅","🫘","🫓","🧇","🫔","🧆","🫕","🧈","🦪","🫖","🫗","🧋","🧃","🧉","🧊","🫙","🏺","🪨","🪵","🛖","🛕","🛝","🛻","🦽","🦼","🛺","🛼","🛞","🛟","🛎","🧳","⌛","⏳","⌚","⏰","⏱","⏲","🕰","🕛","🕧","🕐","🕜","🕑","🕝","🕒","🕞","🕓","🕟","🕔","🕠","🕕","🕡","🕖","🕢","🕗","🕣","🕘","🕤","🕙","🕥","🕚","🕦","🌒","🌓","🌔","🌡","☀","🪐","🌌","🌀","⛱","🎃","🎄","🎆","🎇","🧨","✨","🎈","🎉","🎊","🎋","🎍","🎎","🎏","🎐","🎑","🧧","🎀","🎁","🎗","🎟","🎫","🤿","🪀","🪁","🪄","🪬","🪅","🪩","🪆","♠","♥","♦","♣","♟","🃏","🀄","🎴","🎭","🖼","🎨","🧵","🪡","🧶","🪢","👓","🕶","🥽","🥼","🦺","👔","👕","👖","🧣","🧤","🧥","🧦","👗","👘","🥻","🩱","🩲","🩳","👙","👚","👛","👜","👝","🛍","🎒","🩴","👞","👟","🥾","🥿","👠","👡","🩰","👢","👑","👒","🎩","🎓","🧢","🪖","⛑","📿","💄","💍","💎","🔇","🔈","🔉","🔊","📢","📣","📯","🔔","🔕","🎼","🎵","🎶","🎙","🎚","🎛","🎤","🎧","📻","🎷","🪗","🎸","🎹","🎺","🎻","🪕","🥁","🪘","🪫","🧮","🔎","🏮","🪔","📗","📘","📙","📓","📒","📃","📜","📄","📰","📑","🏷","🪙","🧾","💹","📇","📋","🔏","🪓","🪃","🪚","🪛","🦯","🪝","🪜","⚗","🧪","🧫","🧬","🔬","🔭","🩸","🩹","🩼","🩺","🩻","🚪","🛗","🪞","🪟","🪑","🚽","🪠","🛁","🪤","🪒","🧻","🪣","🧼","🫧","🪥","🧽","⚰","🪦","⚱","🗿","🪧","🪪","🏧","🚮","🚰","♿","🚹","🚺","🚻","🚼","🚾","🛂","🛃","🛄","🛅","⚠","🚸","⛔","🚫","🚳","🚭","🚯","🚱","🚷","📵","🔞","☢","☣","⬆","↗","➡","↘","⬇","↙","⬅","↖","↕","↔","↩","↪","⤴","⤵","🔃","🔄","🔙","🔚","🔛","🔜","🔝","🛐","⚛","🕉","✡","☸","☯","✝","☦","☪","☮","🕎","🔯","⚧","🟰","#️⃣","0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣","🔟","🏳️‍⚧️","🫨","🩷","🩵","🩶","🫷","🫸","🫎","🫏","🪽","🐦‍⬛","🪿","🪼","🪻","🫚","🫛","🪭","🪮","🪇","🪯","🪈"]},a="‍";function s(){if(!r)for(var e in r=[],o){var t=o[e];r=r.concat(t)}return r}t.ZWJ=a,t.checkSmilesSupport=function(){var e=i(),t="smiles_supported";if(e){var n=localStorage.getItem(t);if("1"===n)return!0;if("0"===n)return!1}var r=document.createElement("canvas").getContext("2d");if(!r)return!0;r.fillText("🥺",-2,4);var o=r.getImageData(0,0,1,1).data,a=o[3]>0&&o[0]>0;return e&&localStorage.setItem(t,a?"1":"0"),a},t.default=o,t.getAllUnicodeSmileys=s,t.getUnicodeSmileysPattern=function(){return n||(n=new RegExp(s().map((function(e,t){return{index:t,element:e}})).sort((function(e,t){return-1!==e.element.indexOf(a)&&-1!==t.element.indexOf(a)?e.index>t.index?-1:1:-1!==e.element.indexOf(a)&&-1===t.element.indexOf(a)?-1:-1!==t.element.indexOf(a)&&-1===e.element.indexOf(a)?1:0})).map((function(e){return e.element})).join("|"),"g")),n}},92284:function(e,t,n){"use strict";n.d(t,{Bx:function(){return m},FV:function(){return C},GI:function(){return D},Ih:function(){return R},Ju:function(){return I},S6:function(){return L},aT:function(){return w},a_:function(){return M},am:function(){return p},cM:function(){return T},d1:function(){return P},d4:function(){return y},gA:function(){return a},gB:function(){return b},g_:function(){return i},jt:function(){return O},lH:function(){return h},le:function(){return o},ns:function(){return g},sA:function(){return r},vr:function(){return k},yc:function(){return S}});var r,i="҂",o="҂",a=new RegExp("҂|҂s*","gi"),s=new RegExp("(҂|҂)\\s*","gi");!function(e){e.RECENT="recent_smileys",e.LITTLE="little_smileys",e.CUSTOM="custom_smileys",e.BIG="big_smileys",e.TEXT="text_smileys",e.GRAPHICS="user_submitted",e.UNICODE="unicode"}(r||(r={}));var c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]"):"")}function v(e){return e.includes(")")||e.includes("(")||e.includes("@")||e.includes("#")?new RegExp(e.replace(/([()[\]{}.?^$|-])/g,"\\$1"),"g"):new RegExp("".concat(e.replace(/([()[\]{}.?^$|-])/g,"\\$1"),"(?!-)\\b"),"g")}function g(e){var t=e.replace(/([()[\]{}.?^$|-])/g,"\\$1");return"".concat(t,"\\b")}function _(e){return new RegExp(e.replace(/([()[\]{}.?^$|-])/g,"\\$1"),"g")}function b(e,t,n){void 0===t&&(t={});var r=d([],n,!0);return e.forEach((function(e){e.tokens.forEach((function(n){r.push(c(c(c({},e),t),{token:n,pattern:v(n)}))}))})),r}function y(e,t,n){void 0===t&&(t={});var r=d([],n,!0);return e.forEach((function(e){r.push(c(c({token:e},t),{pattern:_(e)}))})),r}"undefined"!=typeof window&&(window.apng=p,window.errorImage=function(e){var t;e.dataset&&(null===(t=e.dataset)||void 0===t?void 0:t.token)&&e.replaceWith(":"+e.dataset.token)});var A,S=function(e,t){return e.map((function(e){if((null==e?void 0:e.hasDarkSkinVersion)&&t&&e.src){var n="-b".concat(e.hasDarkSkinVersion);e.src=e.src.replace(e.hasDarkSkinVersion,n)}return e}))},E={};function w(e){var t,n=new DOMParser;if(!E[e]){var r=n.parseFromString(e,"text/html"),i=null===(t=null==r?void 0:r.body)||void 0===t?void 0:t.childNodes;E[e]=i&&1===i.length&&["img","span"].includes(i[0].nodeName.toLowerCase())}return E[e]}!function(e){e.GIF=".gif",e.PNG=".png",e.JPG=".jpg"}(A||(A={}));var C=[{src:"big/40814fb3.gif",tokens:[":big19"],w:34,h:32},{src:"big/f6caa6b0.gif",tokens:[":big01"],w:32,h:32},{src:"big/d147daff.gif",tokens:[":big09"],w:171,h:32},{src:"big/20150122_63.gif",tokens:[":big_144"],w:171,h:32,hasDarkSkinVersion:A.GIF},{src:"big/de4f412c.gif",tokens:[":big06"],w:72,h:32},{src:"big/3ebe996a.gif",tokens:[":big42"],w:52,h:32},{src:"big/7267e299.gif",tokens:[":big21"],w:42,h:32},{src:"big/887ca0f4.gif",tokens:[":big23"],w:78,h:32},{src:"big/24f8835d.gif",tokens:[":big32"],w:85,h:32},{src:"big/7dcdd6a7.gif",tokens:[":big37"],w:58,h:32},{src:"big/ef3b5f83.gif",tokens:[":big02"],w:46,h:32},{src:"big/1de7adee.gif",tokens:[":big46"],w:67,h:35},{src:"big/OsBTiFK92Izi.gif",tokens:[":big79"],w:50,h:38,hasDarkSkinVersion:A.GIF},{src:"big/cqgrqxBVbf2O.gif",tokens:[":big63"],w:40,h:40},{src:"big/01lqBI7fr52fE8kgH.gif",tokens:[":big51"],w:43,h:42,hasDarkSkinVersion:A.GIF},{src:"big/yZeBKfSIkk9NEiPiE.gif",tokens:[":big58"],w:70,h:42,hasDarkSkinVersion:A.GIF},{src:"big/620f24ae.gif",tokens:[":big28"],w:80,h:44},{src:"big/72gkGNYwQpMP8.gif",tokens:[":big73"],w:60,h:47},{src:"big/e94de355.gif",tokens:[":big05"],w:48,h:48,hasDarkSkinVersion:A.GIF},{src:"big/QJc2OdQuL0Rw.gif",tokens:[":big71"],w:49,h:49},{src:"big/dd20ffb9.gif",tokens:[":big08"],w:86,h:49,hasDarkSkinVersion:A.GIF},{src:"big/20150122_61.gif",tokens:[":big_142"],w:50,h:50,hasDarkSkinVersion:A.GIF},{src:"big/20150122_15.gif",tokens:[":big96"],w:60,h:50},{src:"big/20150122_68.gif",tokens:[":big_149"],w:110,h:50},{src:"big/20150122_48.gif",tokens:[":big_129"],w:50,h:50,hasDarkSkinVersion:A.GIF},{src:"big/e046353b.gif",tokens:[":big04"],w:82,h:50,hasDarkSkinVersion:A.GIF},{src:"big/N82FQYVRBtFQ.gif",tokens:[":big81"],w:67,h:50},{src:"big/kw4EMtqRNvEFSI.gif",tokens:[":big80"],w:50,h:50,hasDarkSkinVersion:A.GIF},{src:"big/20150122_47.gif",tokens:[":big_128"],w:60,h:50},{src:"big/20150122_41.gif",tokens:[":big_122"],w:50,h:50,hasDarkSkinVersion:A.GIF},{src:"big/4bj3EU5NaXSZMpzrT.gif",tokens:[":big76"],w:50,h:50,hasDarkSkinVersion:A.GIF},{src:"big/5c0f6a8e.gif",tokens:[":big39"],w:50,h:50,hasDarkSkinVersion:A.GIF},{src:"big/S9DIgkiVhA99Z.gif",tokens:[":big75"],w:50,h:50,hasDarkSkinVersion:A.GIF},{src:"big/iTGXUqCflDak.gif",tokens:[":big74"],w:50,h:50,hasDarkSkinVersion:A.GIF},{src:"big/oHTXAtJFSwKHuIj6.gif",tokens:[":big77"],w:50,h:50,hasDarkSkinVersion:A.GIF},{src:"big/20150122_40.gif",tokens:[":big_121"],w:50,h:50,hasDarkSkinVersion:A.GIF},{src:"big/VJVqzGfYHiSK8wE.gif",tokens:[":big68"],w:50,h:50,hasDarkSkinVersion:A.GIF},{src:"big/20150122_66.gif",tokens:[":big_147"],w:50,h:50,hasDarkSkinVersion:A.GIF},{src:"big/20150122_39.gif",tokens:[":big_120"],w:29,h:29,hasDarkSkinVersion:A.GIF},{src:"big/LNwBPBsrueru6nF.gif",tokens:[":big50"],w:50,h:50},{src:"big/20150122_70.gif",tokens:[":big_151"],w:50,h:50,hasDarkSkinVersion:A.GIF},{src:"big/EJdxbdDZoywR5oz.gif",tokens:[":big66"],w:50,h:50,hasDarkSkinVersion:A.GIF},{src:"big/emp56wHqqpWk.gif",tokens:[":big53"],w:43,h:50,hasDarkSkinVersion:A.GIF},{src:"big/6E98inxuW1ukHqeP.gif",tokens:[":big54"],w:50,h:50,hasDarkSkinVersion:A.GIF},{src:"big/20150122_38.gif",tokens:[":big_119"],w:74,h:50},{src:"big/32PynRTOa1IdTQ.gif",tokens:[":big56"],w:81,h:50,hasDarkSkinVersion:A.GIF},{src:"big/JpoY1skrdCGdx.gif",tokens:[":big57"],w:50,h:50,hasDarkSkinVersion:A.GIF},{src:"big/20150122_62.gif",tokens:[":big_143"],w:50,h:50,hasDarkSkinVersion:A.GIF},{src:"big/yyHLoHtdu2f8.gif",tokens:[":bi59"],w:50,h:50},{src:"big/20150122_29.gif",tokens:[":big_110"],w:50,h:50},{src:"big/20150122_16.gif",tokens:[":big97"],w:50,h:50,hasDarkSkinVersion:A.GIF},{src:"big/CGK2EnLKH86zC.gif",tokens:[":big62"],w:50,h:50,hasDarkSkinVersion:A.GIF},{src:"big/20150122_49.gif",tokens:[":big_130"],w:74,h:53,hasDarkSkinVersion:A.GIF},{src:"big/25613c93.gif",tokens:[":big20"],w:52,h:53,hasDarkSkinVersion:A.GIF},{src:"big/20150122_53.gif",tokens:[":big_134"],w:61,h:55,hasDarkSkinVersion:A.GIF},{src:"big/20150122_28.gif",tokens:[":big_109"],w:68,h:56,hasDarkSkinVersion:A.GIF},{src:"big/20150122_5.gif",tokens:[":big86"],w:71,h:54},{src:"big/Uk5rUoR1i3au0ZgHo.gif",tokens:[":big72"],w:68,h:59},{src:"big/1de1837a.gif",tokens:[":big45"],w:83,h:59,hasDarkSkinVersion:A.GIF},{src:"big/8c67eb0e.gif",tokens:[":big36"],w:61,h:60,hasDarkSkinVersion:A.GIF},{src:"big/20150122_2.gif",tokens:[":big83"],w:105,h:60},{src:"big/fFOIxfDtz5ZV2.gif",tokens:[":big69"],w:50,h:60,hasDarkSkinVersion:A.GIF},{src:"big/w4elxbCpB60Loort.gif",tokens:[":big65"],w:60,h:60,hasDarkSkinVersion:A.GIF},{src:"big/20150122_60.gif",tokens:[":big_141"],w:60,h:60,hasDarkSkinVersion:A.GIF},{src:"big/hdf7kjSWdFJn4kgg.gif",tokens:[":big78"],w:60,h:60,hasDarkSkinVersion:A.GIF},{src:"big/24dd51b5.gif",tokens:[":big33"],w:76,h:62,hasDarkSkinVersion:A.GIF},{src:"big/2416cf5a.gif",tokens:[":big22"],w:63,h:63,hasDarkSkinVersion:A.GIF},{src:"big/20150122_33.gif",tokens:[":big_114"],w:66,h:63,hasDarkSkinVersion:A.GIF},{src:"big/IBg3SM128S8K0.gif",tokens:[":big70"],w:64,h:64,hasDarkSkinVersion:A.GIF},{src:"big/20150122_31.gif",tokens:[":big_112"],w:64,h:64,hasDarkSkinVersion:A.GIF},{src:"big/m7h1ZLu4lDvl1.gif",tokens:[":big67"],w:35,h:31},{src:"big/8XJLedxcf8vMUd.gif",tokens:[":big55"],w:100,h:24,hasDarkSkinVersion:A.GIF},{src:"big/McSCcezbwaib.gif",tokens:[":big60"],w:100,h:25,hasDarkSkinVersion:A.GIF},{src:"big/20150122_14.gif",tokens:[":big95"],w:278,h:32},{src:"big/20150122_12.gif",tokens:[":big93"],w:197,h:42,hasDarkSkinVersion:A.GIF},{src:"big/20150122_32.gif",tokens:[":big_113"],w:208,h:42,hasDarkSkinVersion:A.GIF},{src:"big/20150122_52.gif",tokens:[":big_133"],w:197,h:42,hasDarkSkinVersion:A.GIF},{src:"big/b4b95c16.gif",tokens:[":big16"],w:320,h:32},{src:"big/20150122_36.gif",tokens:[":big_117"],w:88,h:66,hasDarkSkinVersion:A.GIF},{src:"big/20150122_13.gif",tokens:[":big94"],w:93,h:68},{src:"big/YKHPbvZ3PUw4XpCrHn.gif",tokens:[":big61"],w:65,h:69},{src:"big/20150122_59.gif",tokens:[":big_140"],w:90,h:70,hasDarkSkinVersion:A.GIF},{src:"big/20150122_23.gif",tokens:[":big_104"],w:70,h:70,hasDarkSkinVersion:A.GIF},{src:"big/20150122_42.gif",tokens:[":big_123"],w:110,h:70,hasDarkSkinVersion:A.GIF},{src:"big/9c78fd70.gif",tokens:[":big34"],w:70,h:70},{src:"big/1cUNWJ5lIXFcVE7RtV.gif",tokens:[":big52"],w:62,h:72,hasDarkSkinVersion:A.GIF},{src:"big/20150122_10.gif",tokens:[":big91"],w:155,h:74,hasDarkSkinVersion:A.GIF},{src:"big/60e6f22e.gif",tokens:[":big31"],w:110,h:74,hasDarkSkinVersion:A.GIF},{src:"big/ca03f624.gif",tokens:[":big11"],w:100,h:74,hasDarkSkinVersion:A.GIF},{src:"big/17eca1b1.gif",tokens:[":big25"],w:75,h:75,hasDarkSkinVersion:A.GIF},{src:"big/c420fb68.gif",tokens:[":big12"],w:110,h:75,hasDarkSkinVersion:A.GIF},{src:"big/20150122_44.gif",tokens:[":big_125"],w:99,h:75,hasDarkSkinVersion:A.GIF},{src:"big/687d4e74.gif",tokens:[":big24"],w:100,h:76,hasDarkSkinVersion:A.GIF},{src:"big/20150122_7.gif",tokens:[":big88"],w:65,h:78},{src:"big/4cd8fb92.gif",tokens:[":big41"],w:89,h:80,hasDarkSkinVersion:A.GIF},{src:"big/20150122_69.gif",tokens:[":big_150"],w:120,h:80,hasDarkSkinVersion:A.GIF},{src:"big/eeb3be2a.gif",tokens:[":big03"],w:80,h:80,hasDarkSkinVersion:A.GIF},{src:"big/asvbqpYtNoVXaF8E.gif",tokens:[":big64"],w:80,h:80,hasDarkSkinVersion:A.GIF},{src:"big/bb655dd2.gif",tokens:[":big15"],w:80,h:80,hasDarkSkinVersion:A.GIF},{src:"big/20150122_21.gif",tokens:[":big_102"],w:101,h:80},{src:"big/20150122_9.gif",tokens:[":big90"],w:87,h:81,hasDarkSkinVersion:A.GIF},{src:"big/20150122_43.gif",tokens:[":big_124"],w:119,h:82,hasDarkSkinVersion:A.GIF},{src:"big/20150122_57.gif",tokens:[":big_138"],w:83,h:83,hasDarkSkinVersion:A.GIF},{src:"big/20150122_35.gif",tokens:[":big_116"],w:83,h:83,hasDarkSkinVersion:A.GIF},{src:"big/20150122_54.gif",tokens:[":big_135"],w:83,h:83,hasDarkSkinVersion:A.GIF},{src:"big/20150122_25.gif",tokens:[":big_106"],w:83,h:83,hasDarkSkinVersion:A.GIF},{src:"big/20150122_75.gif",tokens:[":big_156"],w:83,h:83,hasDarkSkinVersion:A.GIF},{src:"big/1d1bca51.gif",tokens:[":big47"],w:83,h:83,hasDarkSkinVersion:A.GIF},{src:"big/3e9696aa.gif",tokens:[":big43"],w:88,h:84,hasDarkSkinVersion:A.GIF},{src:"big/20150122_18.gif",tokens:[":big99"],w:88,h:84,hasDarkSkinVersion:A.GIF},{src:"big/20150122_46.gif",tokens:[":big_127"],w:88,h:84,hasDarkSkinVersion:A.GIF},{src:"big/8ca92a4a.gif",tokens:[":big35"],w:88,h:84,hasDarkSkinVersion:A.GIF},{src:"big/20150122_4.gif",tokens:[":big85"],w:88,h:84,hasDarkSkinVersion:A.GIF},{src:"big/20150122_3.gif",tokens:[":big84"],w:110,h:85,hasDarkSkinVersion:A.GIF},{src:"big/20150122_65.gif",tokens:[":big_146"],w:94,h:88,hasDarkSkinVersion:A.GIF},{src:"big/5bab2aed.gif",tokens:[":big40"],w:107,h:88,hasDarkSkinVersion:A.GIF},{src:"big/20150122_55.gif",tokens:[":big_136"],w:95,h:89,hasDarkSkinVersion:A.GIF},{src:"big/20150122_26.gif",tokens:[":big_107"],w:94,h:90,hasDarkSkinVersion:A.GIF},{src:"big/20150122_64.gif",tokens:[":big_145"],w:90,h:90,hasDarkSkinVersion:A.GIF},{src:"big/20150122_24.gif",tokens:[":big_105"],w:90,h:90,hasDarkSkinVersion:A.GIF},{src:"big/20150122_22.gif",tokens:[":big_103"],w:120,h:90,hasDarkSkinVersion:A.GIF},{src:"big/1fab9fc9.gif",tokens:[":big44"],w:110,h:90,hasDarkSkinVersion:A.GIF},{src:"big/20150122_1.gif",tokens:[":big82"],w:90,h:90,hasDarkSkinVersion:A.GIF},{src:"big/20150122_30.gif",tokens:[":big_111"],w:100,h:90,hasDarkSkinVersion:A.GIF},{src:"big/20150122_72.gif",tokens:[":big_153"],w:90,h:90,hasDarkSkinVersion:A.GIF},{src:"big/2yb9a8a2.gif",tokens:[":big27"],w:95,h:91,hasDarkSkinVersion:A.GIF},{src:"big/a3b16f17.gif",tokens:[":big17"],w:83,h:92,hasDarkSkinVersion:A.GIF},{src:"big/20150122_6.gif",tokens:[":big87"],w:98,h:92},{src:"big/20150122_71.gif",tokens:[":big_152"],w:110,h:94,hasDarkSkinVersion:A.GIF},{src:"big/dddceead.gif",tokens:[":big07"],w:97,h:97,hasDarkSkinVersion:A.GIF},{src:"big/345sxcww.gif",tokens:[":big26"],w:98,h:98},{src:"big/20150122_56.gif",tokens:[":big_137"],w:109,h:100,hasDarkSkinVersion:A.GIF},{src:"big/20150122_51.gif",tokens:[":big_132"],w:100,h:100,hasDarkSkinVersion:A.GIF},{src:"big/533a1ddb.gif",tokens:[":big29"],w:81,h:100,hasDarkSkinVersion:A.GIF},{src:"big/c0e66790.gif",tokens:[":big13"],w:100,h:100,hasDarkSkinVersion:A.GIF},{src:"big/197f9ff1.gif",tokens:[":big30"],w:117,h:100,hasDarkSkinVersion:A.GIF},{src:"big/20150122_34.gif",tokens:[":big_115"],w:141,h:107,hasDarkSkinVersion:A.GIF},{src:"big/20150122_58.gif",tokens:[":big_139"],w:110,h:110,hasDarkSkinVersion:A.GIF},{src:"big/20150122_50.gif",tokens:[":big_131"],w:110,h:110,hasDarkSkinVersion:A.GIF},{src:"big/20150122_73.gif",tokens:[":big_154"],w:143,h:110,hasDarkSkinVersion:A.GIF},{src:"big/20150122_74.gif",tokens:[":big_155"],w:110,h:110,hasDarkSkinVersion:A.GIF},{src:"big/7d3e9002.gif",tokens:[":big38"],w:156,h:120,hasDarkSkinVersion:A.GIF},{src:"big/bd04046c.gif",tokens:[":big14"],w:218,h:120,hasDarkSkinVersion:A.GIF},{src:"big/20150122_45.gif",tokens:[":big_126"],w:114,h:121,hasDarkSkinVersion:A.GIF},{src:"big/d2d6f6e0.gif",tokens:[":big10"],w:179,h:123,hasDarkSkinVersion:A.GIF},{src:"big/76311567.gif",tokens:[":big18"],w:142,h:127,hasDarkSkinVersion:A.GIF},{src:"big/20150122_20.gif",tokens:[":big_101"],w:220,h:150,hasDarkSkinVersion:A.GIF}],T=[{src:"v2/sad.gif",tokens:[":sad",":("],h:24},{src:"v2/smile.gif",tokens:[":smile_2"],h:24},{src:"v2/wink.gif",tokens:[":wink"],h:24},{src:"v2/shok.gif",tokens:[":surprised",":O",":0"],h:20},{src:"v2/wacko.gif",tokens:[":confused_2"],h:25,hasDarkSkinVersion:A.GIF},{src:"v2/biggrin.gif",tokens:[":D"],h:25},{src:"v2/acute.gif",tokens:[":laugh",";D"],h:24},{src:"v2/dirol.gif",tokens:[":cool_2"],h:21},{src:"v2/secret.gif",tokens:[":secret_2",":#"],h:25},{src:"v2/blum3.gif",tokens:[":P"],h:24},{src:"v2/angel.gif",tokens:[":angel"],h:26},{src:"v2/blush.gif",tokens:[":blushing",":["],h:25},{src:"v2/cry.gif",tokens:[":crying",":~("],h:22},{src:"v2/beee.gif",tokens:[":cheeky"],h:28},{src:"v2/mosking.gif",tokens:[":giggle"],h:25},{src:"v2/air_kiss.gif",tokens:[":airkiss"],h:26},{src:"v2/bad.gif",tokens:[":puke",":!"],h:20},{src:"v2/kiss3.gif",tokens:[":kisscheek"],h:24},{src:"v2/give_rose.gif",tokens:[":rose"],h:26},{src:"v2/give_heart2.gif",tokens:[":inlove"],h:25},{src:"v2/boredom.gif",tokens:[":tired"],h:22},{src:"v2/good.gif",tokens:[":good"],h:23},{src:"v2/drinks.gif",tokens:[":drink"],h:28},{src:"v2/man_in_love.gif",tokens:[":love_2"],h:26},{src:"v2/aggressive.gif",tokens:[":punch",":@"],h:27},{src:"v2/clapping.gif",tokens:[":bravo"],h:24},{src:"v2/rofl.gif",tokens:[":rofl"],h:23},{src:"v2/pardon.gif",tokens:[":pardon"],h:23},{src:"v2/ok.gif",tokens:[":ok"],h:26},{src:"v2/crazy.gif",tokens:[":crazy_2"],h:27},{src:"v2/unknw.gif",tokens:[":unknw"],h:20},{src:"v2/sorry.gif",tokens:[":sorry"],h:22},{src:"v2/dance4.gif",tokens:[":dance"],h:26},{src:"v2/new_russian.gif",tokens:[":showoff"],h:26},{src:"v2/yess.gif",tokens:[":yess"],h:30},{src:"v2/yes3.gif",tokens:[":yes"],h:24},{src:"v2/nea.gif",tokens:[":no"],h:26},{src:"v2/hi.gif",tokens:[":hi_2"],h:28},{src:"v2/preved.gif",tokens:[":hello"],h:28},{src:"v2/bye.gif",tokens:[":bye"],h:18},{src:"v2/bb.gif",tokens:[":bb"],h:25},{src:"v2/mail1.gif",tokens:[":mail"],h:26},{src:"v2/dash1.gif",tokens:[":wall"],h:26},{src:"v2/i-m_so_happy.gif",tokens:[":happy"],h:24},{src:"v2/pleasantry.gif",tokens:[":db"],h:26},{src:"v2/ireful1.gif",tokens:[":ireful"],h:24},{src:"v2/sarcastic.gif",tokens:[":sarcastic"],h:23},{src:"v2/king.gif",tokens:[":king"],h:28},{src:"v2/lazy.gif",tokens:[":lazy"],h:29},{src:"v2/prankster2.gif",tokens:[":hoho"],h:24},{src:"v2/mega_shok.gif",tokens:[":megashok"],h:28},{src:"v2/paint2.gif",tokens:[":paint"],h:28},{src:"v2/party2.gif",tokens:[":party"],h:26},{src:"v2/help.gif",tokens:[":help",":sos"],h:33},{src:"v2/hang2.gif",tokens:[":hang"],h:35},{src:"v2/vampire.gif",tokens:[":vampire"],h:36},{src:"v2/hunter.gif",tokens:[":hunter"],h:38},{src:"v2/moil.gif",tokens:[":moil"],h:37},{src:"v2/popcorm1.gif",tokens:[":popcorn"],h:28},{src:"v2/punish.gif",tokens:[":punish"],h:30},{src:"v2/scare.gif",tokens:[":scare"],h:34},{src:"v2/scratch_one-s_head.gif",tokens:[":scratch"],h:24},{src:"v2/search.gif",tokens:[":search"],h:25},{src:"v2/shout.gif",tokens:[":shout"],h:20},{src:"v2/smoke.gif",tokens:[":smoke"],h:30},{src:"v2/spiteful.gif",tokens:[":spiteful"],h:20},{src:"v2/spruce_up.gif",tokens:[":spruce_up"],h:25},{src:"v2/stop.gif",tokens:[":stop"],h:23},{src:"v2/tease.gif",tokens:[":tease_2"],h:40},{src:"v2/tender.gif",tokens:[":tender"],h:23},{src:"v2/thank_you2.gif",tokens:[":thank"],h:29},{src:"v2/this.gif",tokens:[":this"],h:25},{src:"v2/training1.gif",tokens:[":training"],h:21},{src:"v2/vava.gif",tokens:[":vava"],h:20},{src:"v2/victory.gif",tokens:[":victory"],h:23},{src:"v2/wizard.gif",tokens:[":wizard"],h:31},{src:"v2/ohyeah.gif",tokens:[":ohyeah"],h:27},{src:"v2/beach.gif",tokens:[":beach"],h:33},{src:"v2/big_boss.gif",tokens:[":boss"],h:30},{src:"v2/boast.gif",tokens:[":boast"],h:25},{src:"v2/curtsey.gif",tokens:[":curtsey"],h:24},{src:"v2/flirt.gif",tokens:[":flirt"],h:24},{src:"v2/fool.gif",tokens:[":fool",":stupid",":|"],h:23},{src:"v2/friends.gif",tokens:[":friends"],h:28},{src:"v2/gamer4.gif",tokens:[":gamer"],h:33},{src:"v2/diablo.gif",tokens:[":diablo"],h:31},{src:"v2/girl_kiss.gif",tokens:[":girl_kiss"],h:23},{src:"v2/girl_cray2.gif",tokens:[":girl_cry"],h:24},{src:"v2/girl_crazy.gif",tokens:[":girl_crazy"],h:25},{src:"v2/girl_hysteric.gif",tokens:[":girl_hysteric"],h:25},{src:"v2/girl_drink1.gif",tokens:[":girl_drink"],h:25},{src:"v2/girl_haha.gif",tokens:[":girl_haha"],h:22},{src:"v2/girl_hospital.gif",tokens:[":girl_doctor"],h:25},{src:"v2/girl_in_love.gif",tokens:[":girl_in_love"],h:27},{src:"v2/girl_pinkglassesf.gif",tokens:[":girl_pinkglasses"],h:37},{src:"v2/girl_sigh.gif",tokens:[":girl_sigh"],h:24}],L=[{src:"text/ff1b0901.gif",tokens:[":text01"],w:476,h:120,hasDarkSkinVersion:A.GIF},{src:"text/fbaecdbe.gif",tokens:[":text02"],w:396,h:62,hasDarkSkinVersion:A.GIF},{src:"text/a98fd272.gif",tokens:[":text11"],w:694,h:143,hasDarkSkinVersion:A.GIF},{src:"text/e895b57c.png",tokens:[":text03"],w:300,h:75,hasDarkSkinVersion:A.GIF},{src:"text/e3dead2b.gif",tokens:[":text04"],w:186,h:66,hasDarkSkinVersion:A.GIF},{src:"text/d217f3d1.jpg",tokens:[":text05"],w:283,h:120,hasDarkSkinVersion:A.JPG},{src:"text/d19c20d5.jpg",tokens:[":text06"],w:175,h:120,hasDarkSkinVersion:A.JPG},{src:"text/d11b51d6.jpg",tokens:[":text07"],w:193,h:81,hasDarkSkinVersion:A.JPG},{src:"text/bc6831ac.gif",tokens:[":text08"],w:276,h:120,hasDarkSkinVersion:A.GIF},{src:"text/b959bf11.gif",tokens:[":text09"],w:185,h:66,hasDarkSkinVersion:A.GIF},{src:"text/b6b83221.png",tokens:[":text10"],w:193,h:57,hasDarkSkinVersion:A.PNG},{src:"text/06fcab55.gif",tokens:[":text30"],w:400,h:150,hasDarkSkinVersion:A.GIF},{src:"text/31240cd6.gif",tokens:[":text12"],w:728,h:90,hasDarkSkinVersion:A.GIF},{src:"text/6436ca7f.gif",tokens:[":text13"],w:388,h:120,hasDarkSkinVersion:A.GIF},{src:"text/3844d773.gif",tokens:[":text14"],w:286,h:92,hasDarkSkinVersion:A.GIF},{src:"text/2640dd4d.jpg",tokens:[":text15"],w:728,h:90},{src:"text/582d5f97.gif",tokens:[":text16"],w:185,h:66,hasDarkSkinVersion:A.GIF},{src:"text/419fec20.gif",tokens:[":text17"],w:159,h:52,hasDarkSkinVersion:A.GIF},{src:"text/0106d031.gif",tokens:[":text18"],w:420,h:51,hasDarkSkinVersion:A.GIF},{src:"text/67d119a1.png",tokens:[":text19"],w:400,h:50},{src:"text/49bc795f.png",tokens:[":text20"],w:228,h:50},{src:"text/042de6cd.gif",tokens:[":text21"],w:116,h:45,hasDarkSkinVersion:A.GIF},{src:"text/27a11486.gif",tokens:[":text22"],w:220,h:84,hasDarkSkinVersion:A.GIF},{src:"text/11df7ac4.gif",tokens:[":text23"],w:160,h:29,hasDarkSkinVersion:A.GIF},{src:"text/8f2bbd68.gif",tokens:[":text24"],w:728,h:90},{src:"text/8ea9a80f.gif",tokens:[":text25"],w:209,h:66,hasDarkSkinVersion:A.GIF},{src:"text/8bfd58b5.gif",tokens:[":text26"],w:468,h:60},{src:"text/7ff39218.gif",tokens:[":text27"],w:300,h:76,hasDarkSkinVersion:A.GIF},{src:"text/7f2bdb08.gif",tokens:[":text28"],w:164,h:120},{src:"text/07d8d1dc.gif",tokens:[":text29"],w:186,h:66,hasDarkSkinVersion:A.GIF},{src:"text/6efcf2f4.gif",tokens:[":text31"],w:344,h:78,hasDarkSkinVersion:A.GIF},{src:"text/6d32215c.gif",tokens:[":text32"],w:190,h:120,hasDarkSkinVersion:A.GIF},{src:"text/06adc5d5.jpg",tokens:[":text33"],w:127,h:42,hasDarkSkinVersion:A.JPG},{src:"text/3c1605a9.gif",tokens:[":text34"],w:290,h:120,hasDarkSkinVersion:A.GIF},{src:"text/2e2d5ffe.jpg",tokens:[":text35"],w:372,h:79,hasDarkSkinVersion:A.JPG},{src:"text/0a555655.gif",tokens:[":text36"],w:400,h:101,hasDarkSkinVersion:A.GIF},{src:"text/20150122_8.gif",tokens:[":text37"],w:95,h:61,hasDarkSkinVersion:A.GIF},{src:"text/20150122_17.gif",tokens:[":text39"],w:186,h:66,hasDarkSkinVersion:A.GIF},{src:"text/20150122_11.gif",tokens:[":text38"],w:145,h:65,hasDarkSkinVersion:A.GIF},{src:"text/20150122_19.gif",tokens:[":text40"],w:355,h:58,hasDarkSkinVersion:A.GIF},{src:"text/20150122_37.gif",tokens:[":text41"],w:141,h:50,hasDarkSkinVersion:A.GIF}],M=[{src:"v3/smile.gif",staticSrc:"v3/smile.st.png",tokens:[":smile",":)"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/hi.gif",staticSrc:"v3/hi.st.png",tokens:[":hi"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/wow.gif",staticSrc:"v3/wow.st.png",tokens:[":wow"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/horny.gif",staticSrc:"v3/horny.st.png",tokens:[":horny"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/smirking.gif",staticSrc:"v3/smirking.st.png",tokens:[":smirking"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/jerking.gif",staticSrc:"v3/jerking.st.png",tokens:[":jerking"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/love.gif",staticSrc:"v3/love.st.png",tokens:[":love"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/tease.gif",staticSrc:"v3/tease.st.png",tokens:[":tease"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/big_cock.gif",staticSrc:"v3/big_cock.st.png",tokens:[":big_cock"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/bj.gif",staticSrc:"v3/bj.st.png",tokens:[":bj"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/eat_cum.gif",staticSrc:"v3/eat_cum.st.png",tokens:[":eat_cum"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/flirting.gif",staticSrc:"v3/flirting.st.png",tokens:[":flirting"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/sex_toy.gif",staticSrc:"v3/sex_toy.st.png",tokens:[":sex_toy"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/sweating.gif",staticSrc:"v3/sweating.st.png",tokens:[":sweating"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/fuck_tits.gif",staticSrc:"v3/fuck_tits.st.png",tokens:[":fuck_tits"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/money.gif",staticSrc:"v3/money.st.png",tokens:[":money"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/sugar_daddy.gif",staticSrc:"v3/sugar_daddy.st.png",tokens:[":sugar_daddy"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/money_flow.gif",staticSrc:"v3/money_flow.st.png",tokens:[":money_flow"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/masturbating.gif",staticSrc:"v3/masturbating.st.png",tokens:[":masturbating"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/flashlight.gif",staticSrc:"v3/flashlight.st.png",tokens:[":flashlight"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/shy.gif",staticSrc:"v3/shy.st.png",tokens:[":shy"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/send_kiss.gif",staticSrc:"v3/send_kiss.st.png",tokens:[":send_kiss"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/stareyes.gif",staticSrc:"v3/stareyes.st.png",tokens:[":stareyes"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/like.gif",staticSrc:"v3/like.st.png",tokens:[":like"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/mmm.gif",staticSrc:"v3/mmm.st.png",tokens:[":mmm"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/strip.gif",staticSrc:"v3/strip.st.png",tokens:[":strip"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/oops.gif",staticSrc:"v3/oops.st.png",tokens:[":oops"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/hot.gif",staticSrc:"v3/hot.st.png",tokens:[":hot"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/big_tits.gif",staticSrc:"v3/big_tits.st.png",tokens:[":big_tits"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/touch_tits.gif",staticSrc:"v3/touch_tits.st.png",tokens:[":touch_tits"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/selfplay.gif",staticSrc:"v3/selfplay.st.png",tokens:[":selfplay"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/wet.gif",staticSrc:"v3/wet.st.png",tokens:[":wet"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/lick_pussy.gif",staticSrc:"v3/lick_pussy.st.png",tokens:[":lick_pussy"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/fingering.gif",staticSrc:"v3/fingering.st.png",tokens:[":fingering"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/squirt.gif",staticSrc:"v3/squirt.st.png",tokens:[":squirt"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/jerk_off.gif",staticSrc:"v3/jerk_off.st.png",tokens:[":jerk_off"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/wet_dreams.gif",staticSrc:"v3/wet_dreams.st.png",tokens:[":wet_dreams"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/anal.gif",staticSrc:"v3/anal.st.png",tokens:[":anal"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/stocking.gif",staticSrc:"v3/stocking.st.png",tokens:[":stocking"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/foot_fetish.gif",staticSrc:"v3/foot_fetish.st.png",tokens:[":foot_fetish"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/slap.gif",staticSrc:"v3/slap.st.png",tokens:[":slap"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/anal_plug.gif",staticSrc:"v3/anal_plug.st.png",tokens:[":anal_plug"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/condom.gif",staticSrc:"v3/condom.st.png",tokens:[":condom"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/lollipop.gif",staticSrc:"v3/lollipop.st.png",tokens:[":lollipop"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/bored.gif",staticSrc:"v3/bored.st.png",tokens:[":bored"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/ttm.gif",staticSrc:"v3/ttm.st.png",tokens:[":ttm"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/cock_slap.gif",staticSrc:"v3/cock_slap.st.png",tokens:[":cock_slap"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/vibra_control.gif",staticSrc:"v3/vibra_control.st.png",tokens:[":vibra_control"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/x.gif",staticSrc:"v3/x.st.png",tokens:[":x"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/ud_face.gif",staticSrc:"v3/ud_face.st.png",tokens:[":ud_face"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/cool.gif",staticSrc:"v3/cool.st.png",tokens:[":cool"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/nope.gif",staticSrc:"v3/nope.st.png",tokens:[":nope"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/show_size.gif",staticSrc:"v3/show_size.st.png",tokens:[":show_size"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/shyness.gif",staticSrc:"v3/shyness.st.png",tokens:[":shyness"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/pleasure.gif",staticSrc:"v3/pleasure.st.png",tokens:[":pleasure"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/lol.gif",staticSrc:"v3/lol.st.png",tokens:[":lol"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/sad_face.gif",staticSrc:"v3/sad_face.st.png",tokens:[":sad_face"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/evil_boy.gif",staticSrc:"v3/evil_boy.st.png",tokens:[":evil_boy"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/deepthroat.gif",staticSrc:"v3/deepthroat.st.png",tokens:[":deepthroat"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/swallow.gif",staticSrc:"v3/swallow.st.png",tokens:[":swallow"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/open_ass.gif",staticSrc:"v3/open_ass.st.png",tokens:[":open_ass"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/dp.gif",staticSrc:"v3/dp.st.png",tokens:[":dp"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/happycock.gif",staticSrc:"v3/happycock.st.png",tokens:[":happycock"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/licking.gif",staticSrc:"v3/licking.st.png",tokens:[":licking"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/lick_tits.gif",staticSrc:"v3/lick_tits.st.png",tokens:[":lick_tits"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/saint.gif",staticSrc:"v3/saint.st.png",tokens:[":saint"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/sexy_devil.gif",staticSrc:"v3/sexy_devil.st.png",tokens:[":sexy_devil"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/orgy.gif",staticSrc:"v3/orgy.st.png",tokens:[":orgy"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/nurse.gif",staticSrc:"v3/nurse.st.png",tokens:[":nurse"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/scissors.gif",staticSrc:"v3/scissors.st.png",tokens:[":scissors"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/lipstick.gif",staticSrc:"v3/lipstick.st.png",tokens:[":lipstick"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/handcuff.gif",staticSrc:"v3/handcuff.st.png",tokens:[":handcuff"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/dominate.gif",staticSrc:"v3/dominate.st.png",tokens:[":dominate"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/kinky.gif",staticSrc:"v3/kinky.st.png",tokens:[":kinky"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/harness.gif",staticSrc:"v3/harness.st.png",tokens:[":harness"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/bunny.gif",staticSrc:"v3/bunny.st.png",tokens:[":bunny"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/eye_band.gif",staticSrc:"v3/eye_band.st.png",tokens:[":eye_band"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/leash.gif",staticSrc:"v3/leash.st.png",tokens:[":leash"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/drill.gif",staticSrc:"v3/drill.st.png",tokens:[":drill"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/strip_man.gif",staticSrc:"v3/strip_man.st.png",tokens:[":strip_man"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/facepalm.gif",staticSrc:"v3/facepalm.st.png",tokens:[":facepalm"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/spank.gif",staticSrc:"v3/spank.st.png",tokens:[":spank"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/face_tits.gif",staticSrc:"v3/face_tits.st.png",tokens:[":face_tits"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/cucumber.gif",staticSrc:"v3/cucumber.st.png",tokens:[":cucumber"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/come_here.gif",staticSrc:"v3/come_here.st.png",tokens:[":come_here"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/strapon.gif",staticSrc:"v3/strapon.st.png",tokens:[":strapon"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/banana.gif",staticSrc:"v3/banana.st.png",tokens:[":banana"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/small_cock.gif",staticSrc:"v3/small_cock.st.png",tokens:[":small_cock"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/sad_cock.gif",staticSrc:"v3/sad_cock.st.png",tokens:[":sad_cock"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/bbc.gif",staticSrc:"v3/bbc.st.png",tokens:[":bbc"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/facial.gif",staticSrc:"v3/facial.st.png",tokens:[":facial"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/cock_pump.gif",staticSrc:"v3/cock_pump.st.png",tokens:[":cock_pump"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/find_cock.gif",staticSrc:"v3/find_cock.st.png",tokens:[":find_cock"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/hot_selfie.gif",staticSrc:"v3/hot_selfie.st.png",tokens:[":hot_selfie"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/tits_cream.gif",staticSrc:"v3/tits_cream.st.png",tokens:[":tits_cream"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/piercing.gif",staticSrc:"v3/piercing.st.png",tokens:[":piercing"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/crazy.gif",staticSrc:"v3/crazy.st.png",tokens:[":crazy"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/small_tits.gif",staticSrc:"v3/small_tits.st.png",tokens:[":small_tits"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/lick_lips.gif",staticSrc:"v3/lick_lips.st.png",tokens:[":lick_lips"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/curvy.gif",staticSrc:"v3/curvy.st.png",tokens:[":curvy"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/big_ass.gif",staticSrc:"v3/big_ass.st.png",tokens:[":big_ass"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/bite.gif",staticSrc:"v3/bite.st.png",tokens:[":bite"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/bite_lips.gif",staticSrc:"v3/bite_lips.st.png",tokens:[":bite_lips"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/holy_pussy.gif",staticSrc:"v3/holy_pussy.st.png",tokens:[":holy_pussy"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/show_cash.gif",staticSrc:"v3/show_cash.st.png",tokens:[":show_cash"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/lubricant.gif",staticSrc:"v3/lubricant.st.png",tokens:[":lubricant"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/fisting.gif",staticSrc:"v3/fisting.st.png",tokens:[":fisting"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/creampie.gif",staticSrc:"v3/creampie.st.png",tokens:[":creampie"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/penetration.gif",staticSrc:"v3/penetration.st.png",tokens:[":penetration"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/bw_balls.gif",staticSrc:"v3/bw_balls.st.png",tokens:[":bw_balls"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/fuckmachine.gif",staticSrc:"v3/fuckmachine.st.png",tokens:[":fuckmachine"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/dripping.gif",staticSrc:"v3/dripping.st.png",tokens:[":dripping"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/tattoo.gif",staticSrc:"v3/tattoo.st.png",tokens:[":tattoo"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/twerk.gif",staticSrc:"v3/twerk.st.png",tokens:[":twerk"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/anal_boy.gif",staticSrc:"v3/anal_boy.st.png",tokens:[":anal_boy"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/facesitting.gif",staticSrc:"v3/facesitting.st.png",tokens:[":facesitting"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/bisexual.gif",staticSrc:"v3/bisexual.st.png",tokens:[":bisexual"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/idea.gif",staticSrc:"v3/idea.st.png",tokens:[":idea"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/sex_doll.gif",staticSrc:"v3/sex_doll.st.png",tokens:[":sex_doll"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/trans.gif",staticSrc:"v3/trans.st.png",tokens:[":trans"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/confused.gif",staticSrc:"v3/confused.st.png",tokens:[":confused"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/secret.gif",staticSrc:"v3/secret.st.png",tokens:[":secret"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/bath.gif",staticSrc:"v3/bath.st.png",tokens:[":bath"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/costume.gif",staticSrc:"v3/costume.st.png",tokens:[":costume"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/long_tongue.gif",staticSrc:"v3/long_tongue.st.png",tokens:[":long_tongue"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/t_piercing.gif",staticSrc:"v3/t_piercing.st.png",tokens:[":t_piercing"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/worry.gif",staticSrc:"v3/worry.st.png",tokens:[":worry"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/flushed.gif",staticSrc:"v3/flushed.st.png",tokens:[":flushed"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/poker_face.gif",staticSrc:"v3/poker_face.st.png",tokens:[":poker_face"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/weary.gif",staticSrc:"v3/weary.st.png",tokens:[":weary"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/scream.gif",staticSrc:"v3/scream.st.png",tokens:[":scream"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/sleep.gif",staticSrc:"v3/sleep.st.png",tokens:[":sleep"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/angryface.gif",staticSrc:"v3/angryface.st.png",tokens:[":angryface"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/cry.gif",staticSrc:"v3/cry.st.png",tokens:[":cry"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/give_rose.gif",staticSrc:"v3/give_rose.st.png",tokens:[":give_rose"],h:50,w:50,version:3,hasAPNG:!0},{src:"v3/pole_dance.gif",staticSrc:"v3/pole_dance.st.png",tokens:[":pole_dance"],h:50,w:65,version:3,hasAPNG:!0}],k=function(e){return T.find((function(t){return t.tokens.includes(e)}))?r.LITTLE:M.find((function(t){return t.tokens.includes(e)}))?r.CUSTOM:L.find((function(t){return t.tokens.includes(e)}))?r.TEXT:C.find((function(t){return t.tokens.includes(e)}))?r.BIG:""};function N(e){var t,n=Array.from(e.childNodes),r=n.map((function(e){return t=(t||0)+((null==e?void 0:e.length)||1)}));return{lengthResults:n.map((function(e){return(null==e?void 0:e.length)||1})),allLengthResults:r}}var I=function(e,t){return void 0===t&&(t=!1),e.replace(t?/<\s*span class="smiley_wrp"[^>]*>([\s\S]*?)<\/span>/g:/<\s*img([^>]*)>/g,(function(t){var n,r=null===t.match(/data-token="([^"\\])*"/g),i=null!==(n=t.match(/data-token="([^"\\])*"/g))&&void 0!==n?n:[];return r?e:i.length&&i[0].replace(/data-token=/g,":").replace(/"/g,"").replace(" ","")}))},O=function(e,t){return void 0===t&&(t=!1),e.replace(a,t?"":" ").replace(/

|<\/div>/g,"\n")},P=function(e){return e.replace(s," ").replace(/
|<\/div>/g,"\n")},R=function(e,t,n){void 0===n&&(n=!1);var r=t,i=N(e).allLengthResults;return(n||r>i[i.length-1])&&(r=i[i.length-1]),i.findIndex((function(e){return e>=r}))},D=function(e){var t=e.el,n=e.caretPos,r=e.token,i=void 0===r?"":r,o=e.replaceSmileysListPattern,a=e.withoutSpaces,s=void 0!==a&&a,c=1,u=N(t),l=u.lengthResults,d=u.allLengthResults,f=i.match(o)||null,h=i&&(!i.includes(":")||!f),p=h?n+i.length+2:n+3;s&&h&&(p-=2),p>=d[d.length-1]&&(p=d[d.length-1]);var m=d.findIndex((function(e){return e>=p}));if(h){var v=n-(d[m]-l[m])+i.length;s||(v+=2),c=v>=l[m]?l[m]:v}return{pos:m,offset:c}}},6376:function(e,t){"use strict";var n;t.OnTabFocus=function(e){clearTimeout(n),n=window.setTimeout((function(){try{e.send("")}catch(e){console.error("[SocketAdapter] Tab focus send error: ".concat(e))}}),100)}},31313:function(e,t,n){"use strict";var r,i,o,a=n(37007),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;ni.retries?0:(t=Math.round((Math.random()+1)*i.minDelay*Math.pow(i.factor,o)),n=i.minDelay,r=i.maxDelay,Math.min(Math.max(n,t),r))}(e);r?setTimeout((function(){t()}),r):n("Limit of attempts reached")},u={reconnect:!1,maxDelay:3e4,minDelay:1e3,sendTimeout:6e5,retries:5,factor:2,plugins:[],prepareMessage:function(e){return JSON.stringify(e)},reconnectCallback:function(e,t,n){return c(e,t,n)}};t.oR=void 0,(r=t.oR||(t.oR={}))[r.ON_OPEN=0]="ON_OPEN",r[r.ON_CLOSE=1]="ON_CLOSE",r[r.ON_ERROR=2]="ON_ERROR",r[r.ON_MESSAGE=3]="ON_MESSAGE",r[r.ON_RECONNECT=4]="ON_RECONNECT",r[r.ON_FAIL_RECONNECT=5]="ON_FAIL_RECONNECT",r[r.ON_MESSAGE_DROPPED=6]="ON_MESSAGE_DROPPED",r[r.ON_CHANGE_STATUS_CODE=7]="ON_CHANGE_STATUS_CODE",r[r.ON_SEND=8]="ON_SEND",t.rQ=void 0,(i=t.rQ||(t.rQ={})).CONNECTING="CONNECTING",i.OPEN="OPEN",i.RECONNECTING="RECONNECTING",i.RECONNECT_FAILED="RECONNECT_FAILED",i.CLOSING="CLOSING",i.CLOSED="CLOSED",t.LQ=void 0,(o=t.LQ||(t.LQ={})).AUTHORIZED="AUTHORIZED",o.UNAUTHORIZED="UNAUTHORIZED";var l=function(){function e(e,n){var r=this;this.url=e,this.options={},this.messages=[],this.currentAttempt=0,this.activatedPlugins=[],this.statusCode=t.rQ.CLOSED,this.getOptions=function(){return r.options},this.on=function(e,t){r.eventEmitter.on(e,t)},this.off=function(e,t){r.eventEmitter.removeListener(e,t)},this.attachPlugins=function(){r.activatedPlugins=r.options.plugins.map((function(e){var t=e(r);return"function"==typeof t?t:null})).filter((function(e){return"function"==typeof e}))},this.detachPlugins=function(){r.activatedPlugins=r.activatedPlugins.filter((function(e){return e(),null}))},this.collectMessages=function(e){r.messages.push({time:Date.now(),data:r.prepareMessage(e)})},this.handleOpen=function(){r.resetCurrentAttempt(),r.sendQueueMessage()},this.onOpen=function(){r.setStatusCode(t.rQ.OPEN),r.eventEmitter.emit(t.oR.ON_OPEN,r)},this.handleMessage=function(e){"close"===e.type&&r.close()},this.onMessage=function(e){var n=function(e){var t=null;try{t=JSON.parse(e)}catch(e){t=null}return t}(e.data);r.eventEmitter.emit(t.oR.ON_MESSAGE,n)},this.handleClose=function(){r.isNeedReconnect&&r.tryReconnect()},this.onClose=function(e){r.setStatusCode(t.rQ.CLOSED),r.eventEmitter.emit(t.oR.ON_CLOSE,r,e)},this.onError=function(e){r.eventEmitter.emit(t.oR.ON_ERROR,r,e)},this.init=function(){var e=r.socket=new WebSocket(r.url);e.onerror=r.onError,e.onmessage=r.onMessage,e.onclose=r.onClose,e.onopen=r.onOpen},this.attachDefaultHandlers=function(){r.on(t.oR.ON_OPEN,r.handleOpen),r.on(t.oR.ON_MESSAGE,r.handleMessage),r.on(t.oR.ON_CLOSE,r.handleClose),r.on(t.oR.ON_SEND,r.sendHandler)},this.sendHandler=function(e){r.socket.send(r.prepareMessage(e))},this.send=function(e){r.statusCode===t.rQ.OPEN?r.eventEmitter.emit(t.oR.ON_SEND,e):r.collectMessages(e)},this.reconnect=function(){r.init(),r.eventEmitter.emit(t.oR.ON_RECONNECT)},this.reconnectFail=function(e){r.setStatusCode(t.rQ.RECONNECT_FAILED),r.eventEmitter.emit(t.oR.ON_FAIL_RECONNECT,e)};var i=n||{},o=i.reconnect,c=i.prepareMessage,l=i.reconnectCallback,d=u.prepareMessage,f=u.reconnectCallback;this.options=s(s({},u),n),this.isNeedReconnect=o,this.eventEmitter=new a.EventEmitter,this.prepareMessage=c||d,this.reconnectCallback=l||f,this.setStatusCode(t.rQ.CONNECTING),this.attachDefaultHandlers(),this.attachPlugins(),this.init()}return e.prototype.getIsNeedReconnect=function(){return this.isNeedReconnect},e.prototype.getCurrentAttempt=function(){return this.currentAttempt},e.prototype.getStatusCode=function(){return this.statusCode},e.prototype.setStatusCode=function(e){this.statusCode=e,this.eventEmitter.emit(t.oR.ON_CHANGE_STATUS_CODE,this.statusCode)},e.prototype.setCurrentAttempt=function(e){this.currentAttempt=e},e.prototype.resetCurrentAttempt=function(){this.currentAttempt=0},e.prototype.sendQueueMessage=function(){for(var e=Date.now();this.messages.length>0;){var n=this.messages.pop();e-n.time0&&window.ion.sound.play(e,{volume:r}),document.dispatchEvent(new CustomEvent(i.R.CHAT_SOUND_PLAY,{detail:{soundName:e,soundVolume:r}}))},e.prototype.stop=function(e){window.ion&&e&&window.ion.sound.stop(e),document.dispatchEvent(new CustomEvent(i.R.CHAT_SOUND_STOP,{detail:e}))},e.prototype.add=function(e,t){var n=[];(t=t||"")[0]&&"/"===t[0]&&(t=t.substr(1));for(var r=0;r",a_tokens:''),s_accent:'',s_end:"",s_status:''.concat(o.A.PLATINUM,"")},{click:i.Z}))))}},99131:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(50172),i=n(2597),o=n(13907),a=function(e){var t=e.isMobile,n=void 0!==t&&t;return(0,r.h)("span",{className:"bc_membership_error __with_bg"},(0,r.h)("span",{className:"me_message"},(0,r.h)("span",{className:"me_paragraph"},trans("To set up translator settings, you must have %s_accent%%s_status% status or higher.%s_end% %a_tokens%Buy Tokens%a_end% at least once to get %s_status% status forever!",{a_end:"",a_tokens:''),s_accent:'',s_end:"",s_status:''.concat(i.A.GOLD,"")}))))}},11442:function(e,t,n){"use strict";n.d(t,{q:function(){return r}});var r={DEFAULT:"chat_control_panel",PRIVATE:"private_chat_control_panel",PUBLIC:"public_chat_control_panel"}},85730:function(e,t,n){"use strict";n.d(t,{c:function(){return z}});var r=n(50172),i=n(17402),o=n(46517),a=n(22078),s=n(38588),c=n(11442),u=n(15215),l=n(98614),d=n(73163),f=n(51889),h=n(26580),p=n(47885),m=n(2597),v=n(21035),g=n(40172),_=n(49635),b=n(96575),y=n(62614),A=n(8546),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,u.C6)(t,e),t.prototype.render=function(){var e=this.props.isHide;return(0,r.h)("span",{className:(0,A.n)({chat_btn_badge:!0,__hide:e})},__("New"))},t.defaultProps={isHide:!1},t}(r.uA),E=S,w=n(13907),C=function(){return(0,r.h)("span",{className:"bc_membership_error __with_bg"},(0,r.h)("span",{className:"me_message"},(0,r.h)("span",{className:"me_paragraph"},trans("To set up auto messages from a model, you must have %s_accent%%s_status% status or higher.%s_end% %a_tokens%Get %s_status%%a_end% to have more privileges!",{a_end:"",a_tokens:''),s_accent:'',s_end:"",s_status:''.concat(m.A.PLATINUM,"")},{click:d.Z}))))},T=function(e){return{memberChatNotificationSettingsOptions:e.memberChatNotificationSettingsOptions,membership:(0,_.EV)(e),isUserAuthenticated:(0,g.UQ)(e)}},L=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOpenPopup=function(){n.setState({isOpenPopup:!0})},n.handleClosePopup=function(){n.setState({isOpenPopup:!1})},n.handleClick=function(e){var t=n.props,i=t.memberChatNotificationSettingsOptions,o=t.membership,s=t.isUserAuthenticated,c=(0,a.j)(i);if(e.preventDefault(),s){if(!c){var u=y.w.renderToString((0,r.h)(C,null));return u&&chat.addServiceMessage(u,v.X.CUSTOM_ALERT),void(o===m.A.FREE&&(0,d.Z)())}(0,b.R)("@@ChatEvent/openChatSettings",{options:{reference:".js-chat-settings-btn"}})}else(0,f.R)(!0)},n.state={isOpenPopup:!1},n}return(0,u.C6)(t,e),t.prototype.componentDidMount=function(){document.addEventListener("@@chatSettingsPopup/open",this.handleOpenPopup),document.addEventListener("@@chatSettingsPopup/close",this.handleClosePopup)},t.prototype.componentWillUnmount=function(){document.removeEventListener("@@chatSettingsPopup/open",this.handleOpenPopup),document.removeEventListener("@@chatSettingsPopup/close",this.handleClosePopup)},t.prototype.render=function(){var e=this.state.isOpenPopup,t=this.props.memberChatNotificationSettingsOptions,n=e||!(null==t?void 0:t.isBadgeNewAvailable);return(0,r.h)("div",{className:"bc_d_contents"},(0,r.h)("button",{className:"ccp_button __icon __gear js-chat-settings-btn",type:"button",onClick:this.handleClick},(0,r.h)(h.A,{group:"ccp_b_icon",icon:"#svg_ch_cp_gear",url:p.g5})),!n&&(0,r.h)(E,null))},t=(0,u.Cg)([(0,l.Ng)(T)],t)}(r.uA),M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,u.C6)(t,e),t.prototype.render=function(){return(0,r.h)("div",{className:"chat_settings_popup js-chat_settings_modal_holder"})},t}(r.uA),k=M,N=n(54469),I=n(9534),O=n(19118),P=n(18697),R=n(41042),D=n(9445),j=n(80554),x=n(5787),U=(0,i.memo)((function(e){var t=e.isNewChatControlPanel,n=(0,o.d4)(g.UQ),i=(0,o.d4)(_.EV),a=m.A.isHigherThanGold(i);return(0,P.vs)("Chat JSX Controls","FontPickerButton"),(0,r.h)("div",{className:t?"bc_d_contents":"ic_place __font_settings"},(0,r.h)("button",{className:(0,A.n)({"ccp_button __icon __font_style":t,"imageButton fontButton bc_flex bc_flex_full_center":!t,"js-chat_font_btn":!0}),type:"button",onClick:function(){if(n){if(!a){var e=y.w.renderToString((0,r.h)(x.K,null));return e&&chat.addServiceMessage(e,v.X.CUSTOM_ALERT),void(i===m.A.FREE&&(0,d.Z)())}document.dispatchEvent(new CustomEvent(j.R.FONT_PICKER_OPEN))}else(0,f.R)(!0)}},t&&(0,r.h)(h.A,{group:"ccp_b_icon",icon:"#svg_ch_cp_font_style",url:p.g5}),!t&&(0,r.h)(h.A,{group:"fb_icon",icon:"#svg_ch_text_a",url:p.g5})))})),F=n(13839),B=n(22706),H=(0,i.memo)((function(e){var t=e.id,n=e.isNewChatControlPanel,i=(0,o.d4)((function(e){return e.isAuthenticated})),a=(0,o.d4)((function(e){return e.chatInputDisabled})),s=!i||B.BrowserDetect.isIE11(),c=__("Enter message here…"),u=(0,A.n)({ccp_input:n,"hot_word_remindable js-chat_msg_input":!0,sendInput:!n,disabled:!s&&a,__disabled:n&&!s&&a});return(0,P.vs)("Chat JSX Controls","MessageField"),s?(0,r.h)("div",{className:"ccp_input_space_holder"},(0,r.h)("input",{className:u,disabled:a,maxLength:255,placeholder:c,tabIndex:a?-1:void 0,type:"text"})):(0,r.h)(F.X,{id:t,className:u,maxLength:255,placeholder:c,tabIndex:a?-1:void 0,isPreventNewLine:!0})})),G=(0,i.memo)((function(e){var t=e.isNewChatControlPanel,n=e.isTipMenuButtonEnabled,i=(0,o.d4)((function(e){return e.chatInputDisabled}));return(0,P.vs)("Chat JSX Controls","SendIMButton"),(0,r.h)("div",{className:(0,A.n)({bc_d_contents:t,ccp_button_wrp:n,"ic_place __private_msg":!t})},(0,r.h)("button",{className:(0,A.n)({"ccp_button __text __pm":t,"js-chat_pm_send":!0,"pmButton chatBtn":!t}),disabled:i,onClick:function(){return chat.sendPM()}},t&&(0,r.h)(h.A,{group:"ccp_b_icon",icon:"#svg_ch_cp_private_message",url:p.g5}),__("Private Message")))})),V=(0,i.memo)((function(e){var t=e.isNewChatControlPanel,n=(0,o.d4)(R.LD);return(0,P.vs)("Chat JSX Controls","SendPMButton"),(0,r.h)("div",{className:t?"bc_d_contents":"ic_place __chat_msg"},(0,r.h)("button",{className:(0,A.n)({"ccp_button __text __send":t,"js-chat_msg_send":!0,"sendButton chatBtn":!t}),disabled:n},__("Send")))})),W=(0,i.memo)((function(e){var t=e.isNewChatControlPanel;return(0,P.vs)("Chat JSX Controls","SmilesButton"),(0,r.h)("div",{className:t?"bc_d_contents":"ic_place __smile_btn"},(0,r.h)("button",{className:(0,A.n)({"ccp_button __icon __smile":t,"imageButton smileButton bc_flex bc_flex_full_center":!t,"js-smile_btn":!0})},t&&(0,r.h)(h.A,{group:"ccp_b_icon",icon:"#svg_ch_cp_smile",url:p.g5}),!t&&(0,r.h)(r.FK,null,(0,r.h)(h.A,{group:"sb_icon",icon:"#svg_ch_smile",url:p.g5}),(0,r.h)(h.A,{group:"sb_icon __fs",icon:"#svg_ch_fs_smile",url:p.g5}))))})),q=n(99131),Y=(0,i.memo)((function(e){var t=e.isNewChatControlPanel;(0,P.vs)("Chat JSX Controls","TranslatorButton");var n,a,s=(n=(0,o.d4)(g.UQ),a=(0,o.d4)(_.EV)===m.A.FREE,{isChatTranslatorEnabled:(0,o.d4)((function(e){var t;return null===(t=e.chatTranslatorSettings)||void 0===t?void 0:t.chatTranslatorEnabled})),handleButtonClick:(0,i.useCallback)((function(){if(n){if(a){var e=y.w.renderToString((0,r.h)(q.Z,null));e&&chat.addServiceMessage(e,v.X.CUSTOM_ALERT),(0,d.Z)()}}else(0,f.R)(!0)}),[a,n])}),c=s.isChatTranslatorEnabled,u=s.handleButtonClick;return(0,r.h)("div",{className:t?"bc_d_contents":"ic_place __translator"},(0,r.h)("button",{className:(0,A.n)({"ccp_button __icon __translate":t,"chat_translator_btn bc_flex bc_flex_full_center":!t,"js-tr_settings_btn":!0,__active:c}),"data-tr-role":"chat",type:"button",onClick:u},t&&(0,r.h)(h.A,{group:"ccp_b_icon",icon:"#svg_ch_cp_translate",url:p.g5}),!t&&(0,r.h)(h.A,{group:"ctb_icon",icon:"#svg_tr_translator_empty",url:"sprite/bc/translator.svg"})))})),z=(0,i.memo)((function(e){var t,n=e.inputId,u=void 0===n?N.a.CHAT:n,l=e.panelId,d=void 0===l?c.q.DEFAULT:l,f=(0,o.d4)(D.Z4),h=(0,o.d4)(g.U7),p=(0,o.d4)(g.ey),m=(0,o.d4)(R.BH),v=(0,o.d4)(g.OD),_=(0,o.d4)((function(e){return e.chatTranslatorSettings})),b=(0,o.d4)((function(e){return e.chatInputDisabled})),y=(0,i.useMemo)((function(){return"".concat(u,"_wrap")}),[u]),S=(0,a.j)(v),E=null==_?void 0:_.available,w=!!window.chat.initSmileysForLegacyChat;return(0,P.vs)("Chat JSX Controls","Root"),(0,i.useEffect)((function(){var e=".".concat(y);return w&&window.chat.initSmileysForLegacyChat(e,u),function(){window.chat.destroySmileysForLegacyChat&&window.chat.destroySmileysForLegacyChat(e),(0,I.closeHotWordsHint)(!0)}}),[f,y,u,m,w]),(0,s.A)((function(){(0,O.U1)()}),[h]),(0,r.h)("div",{className:(0,A.n)((t={chat_control_panel:m,cf_control_panel:h},t[y]=y,t))},(0,r.h)("div",{id:d,className:m?"ccp_inner":""},(0,r.h)("div",{className:"modelGamesOutput"}),(0,r.h)("div",{className:(0,A.n)({ccp_wrapper:m,"inputContainer fs-chat-divider js-chat_msg_input_container":!m,__disabled:b})},(0,r.h)("div",{className:(0,A.n)({"ccp_input_wrapper js-chat_msg_input_container ":m,"ic_place tdSendInput":!m,__disabled:b})},(0,r.h)("div",{className:(0,A.n)({bc_d_contents:m,ic_input_holder:!m,__short:!m&&E})},(0,r.h)(H,{id:u,isNewChatControlPanel:m}),m&&(0,r.h)(W,{isNewChatControlPanel:!0}),m&&(0,r.h)(V,{isNewChatControlPanel:!0}))),m?(0,r.h)("div",{className:"ccp_buttons_wrapper"},!p&&(0,r.h)(U,{isNewChatControlPanel:!0}),(0,r.h)(Y,{isNewChatControlPanel:!0}),!p&&(0,r.h)(L,null),(0,r.h)(G,{isNewChatControlPanel:!0,isTipMenuButtonEnabled:!0})):(0,r.h)("div",{className:"bc_d_contents"},E&&(0,r.h)(Y,null),S&&(0,r.h)(U,null),(0,r.h)(W,null),(0,r.h)(V,null),(0,r.h)(G,null)))),(0,r.h)(k,null))}))},96758:function(e,t,n){"use strict";n.d(t,{G:function(){return i},I:function(){return r}});var r=function(e){return e.isPublicChat?__("is in a Public Chat"):e.isPrivateChat?__("is in a Private Chat"):e.isFullPrivateChat?__("is in a Full-Private Chat"):e.isGroupChat?__("is in a Group Chat"):__("is offline")},i=function(e){return e.isPublicChat?"__public":e.isPrivateChat?"__private":e.isFullPrivateChat?"__full_private":e.isGroupChat?"__group":"__offline"}},25638:function(e,t,n){"use strict";n.d(t,{Q:function(){return r}});var r=400},80877:function(e,t,n){"use strict";n.d(t,{D:function(){return v}});var r=n(50172),i=n(17402),o=n(26580),a=n(47885),s=n(8546),c=function(e){var t=e.onClick;return(0,r.h)("span",{className:(0,s.n)({"bc_history_scroll bc_flex bc_flex_full_center js-bc_history_scroll":!0,__hidden:!0}),onClick:t},__("New Messages"),(0,r.h)(o.A,{group:"hs_arrow",icon:"#svg_ch_scroll_arrow",url:a.g5}))},u=n(65771),l=n(46517),d=n(41042),f=n(80554),h=n(45070),p=n(21110),m=n(88035),v=(0,i.memo)((function(){var e={isNewChatControlPanel:(0,l.d4)(d.BH),isStyleConsistent:p.q.isEnabled(h.i.CONSISTENT_CHAT_MESSAGE_STYLE),handleClickScrollTop:(0,i.useCallback)((function(){(0,m.w)(f.R.CHAT_SCROLL_BOTTOM)}),[])},t=e.isNewChatControlPanel,n=e.isStyleConsistent,o=e.handleClickScrollTop;return(0,r.h)(i.Fragment,null,(0,r.h)(u.M,{className:(0,s.n)({chat_tabs_scroll:!t,__chat_control_panel_bng18409:t,__new_chat_design_bng21116:n}),contentClassName:(0,s.n)({chat_tabs_scroll_content:!t}),wrapperClassName:(0,s.n)({chat_tabs_scroll_wrapper:!t}),name:"chat_tabs_scroll",withScrollPanel:!0,isHideBarOutside:!0,isKeepScrollEnd:!0,isNativeScroll:!t,isOutWrapBar:!0},(0,r.h)("div",{className:"historyContainer"},(0,r.h)("div",{className:"history chat_history pt_box js-chat_tab_content"}))),(0,r.h)(c,{onClick:o}))}))},80072:function(e,t,n){"use strict";function r(e,t,n){var r=Math.floor(.5*t);if(n){var i=e.closest(".msg_wrp");if(!i.length)return;i.removeClass("__vrt");var o=i.find("dfn");if(!o.length)return;var a=i.find(".icons");if(!a.length)return;var s=i.find(".icon_avatar");if(!s.length)return;var c=o.outerWidth(!0)+a.outerWidth(!0)+s.outerWidth(!0),u=i.find(".multi_msg").length?i.find(".multi_msg"):i.find(".msg_box");c>=r&&u.outerWidth(!0)>=t-c&&i.addClass("__vrt")}if(e.parent().hasClass("mb_color")){e.removeClass("__vrt");var l=e.find(".author_area");if(l.length){var d=l.outerWidth(!0);d>=r&&e.find(".message_area").outerWidth(!0)>=t-d&&e.addClass("__vrt")}}}n.d(t,{S:function(){return r}})},28329:function(e,t,n){"use strict";n.d(t,{P:function(){return a}});var r=n(63361),i=n(19826),o=n(41669);function a(){o("#bChat .js-chat_msg_input_container, #bChatInputContainer").addClass("__disabled"),o("#bChat .js-chat_msg_input, #bChatInputContainer .js-chat_msg_input").addClass("disabled"),o("#bChat .js-chat_msg_input, #bChat .js-chat_msg_send, #bChat .js-chat_pm_send, #bChatInputContainer .js-chat_msg_input, #bChatInputContainer .js-chat_msg_send, #bChatInputContainer .js-chat_pm_send").attr("disabled","disabled"),i.A.action(r.L)(!0)}},73163:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(15563),i=n(42338),o=n(41669),a=function(){chat.userData.isLogged?"member"===chat.userData.role?o.mobile?(0,r.F)():(0,i.q)({isBuyTokens:!0}):chat.addServiceMessage(__("Only members can buy tokens"),"alert"):chat.signupPopup()}},51889:function(e,t,n){"use strict";n.d(t,{R:function(){return s}});var r=n(28534),i=n(52276),o=n(6987),a=n(41669),s=function(e){if(a("#login_or_join_popup").length&&"function"==typeof a.openLoJPopup)a.openLoJPopup();else{var t=a("#bSignup");if(t.length&&"signup"!==t.attr("rel"))window.open(t.attr("href"));else if(a("#member_join_popup").length)(0,r.y)(i.L.JOIN_POPUP);else{if(a.signupEvent)return document.querySelector("body").classList.contains("chat_visible")||o.A.instance.hideAlert("giveAwayAlert"),void a.signupEvent.call(undefined,{isClick:e});t.click()}}}},42338:function(e,t,n){"use strict";n.d(t,{q:function(){return v}});var r=n(80554),i=n(83966),o=n(52276),a=n(23385),s=n(92340),c=n(73467),u=n(19826),l=n(35172),d=(n(79959),n(28534)),f=n(7243),h=n(13907),p=n(14811),m=n(41669);function v(e){var t=u.A.getState(),n=t.pageNumber,v=t.buyTokensRel,g=t.isBuyTokensInPopup;s.A.isAllowedEvent(i.A.BUY_TOKENS_RUSSIAN_CARDS_POPUP)&&document.dispatchEvent(new CustomEvent(r.R.OPEN_TOKENS_PAGE));var _,b=(0,p.Z)((0,h.ip)("@member_buy_tokens")),y=e.url;if(e.isBuyTokens?_=v||"buy_tokens":e.isBuyVip?_="buy_vip":e.isBuyInvisibility&&(_="buy_invisibility"),y||(e.isBuyTokens?y=b||(0,h.ip)("@member_buy_tokens"):e.isBuyVip?y=(0,h.ip)("@member_buy_vip"):e.isBuyInvisibility&&(y=(0,h.ip)("@member_buy_invisibility"))),void 0!==window.chat&&chat.userData&&chat.userData.chathost&&(y=(0,l.K)(y,"performer",chat.userData.chathost)),e.isBuyTokens){var A=(0,l.Zy)("ntpop");!A||(0,l.Zy)("ntpop",y)||e.forStatusPopups||(y=(0,l.K)(y,"ntpop",A))}var S=n||null;S&&e.isBuyTokens&&!(0,l.Zy)("page",y)&&(y=(0,l.K)(y,"page",String(S)));var E,w=null,C=function(e){void 0===e&&(e=!0)},T=function(){C=function(t){void 0===t&&(t=!0);var n=u.A.getState().loyaltyDiscountEnabled;(0,c.e9)(),window.removeEventListener("message",e,!1),clearTimeout(E),"function"==typeof w&&setTimeout((function(){w(y,"buy_tokens_frame",{loyaltyDiscountEnabled:n,userClose:t})}),1e3)};var e=function(e){e.data.closeBuyTokens&&(E=window.setTimeout((function(){return C(!1)}),100))};window.addEventListener("message",e,!1)};e.isBuyTokens&&e.showNoLoyaltyDiscountPopup&&(w=function(e,t,n){localStorage.getItem("in_game")&&localStorage.removeItem("in_game");var r=u.A.getState().loyaltyDiscountEnabled;n.loyaltyDiscountEnabled&&a.X.instance&&r&&(T(),(0,d.y)(o.L.LOYALTY_DISCOUNT,{force:!0,customData:{href:(0,l.K)(e,"loyalty","1"),isIframe:!0,width:"1000px",height:"".concat(window.innerHeight-100,"px"),onClose:C}}))});var L=1e3,M=window.screenX+(window.innerWidth-L)/2,k=screen.height-100;e.isBuyTokens&&(y=(0,l.K)(y,"btip",g?"1":"0")),e.isBuyTokens&&g&&!e.isChatPopup?(T(),(0,d.y)(o.L.BUY_TOKENS_FRAME,{force:!0,customData:{href:y,isIframe:!0,width:"".concat(L,"px"),height:"".concat(m(window).height()-100,"px"),options:{onClose:C}}})):(0,f.z)(y,{windowName:_,width:L,height:k,left:M,top:0,onClose:w},{})}},64772:function(e,t,n){"use strict";var r;n.d(t,{a:function(){return r}}),function(e){e.CHAT="send-input-container",e.COMMENTS="comments-input-container",e.COMMENTS_GIFT="comments-gift-input-container",e.COMMENTS_PHOTO="comments-photo-input-container",e.IM="im-send-input-container",e.PRIVATE_CHAT="private-send-input-container",e.PUBLIC_CHAT="public-send-input-container"}(r||(r={}))},54469:function(e,t,n){"use strict";n.d(t,{a:function(){return r.a}});var r=n(64772)},13839:function(e,t,n){"use strict";n.d(t,{X:function(){return F}});var r=n(15215),i=n(50172),o=n(17402),a=n(80554),s=n(22706),c=n(80494),u=n(73424),l=n(93594),d=function(e){function t(t){var n=e.call(this,t)||this;return n.lastHtml=n.props.html,n.el="function"==typeof n.props.innerRef?{current:null}:(0,i._3)(),n.getEl=function(){var e=n.props.innerRef;return(e&&"function"!=typeof e?e:n.el).current},n.emitChange=function(e){var t=n.getEl();if(t){var i=t.innerHTML;if(n.props.onChange&&i!==n.lastHtml){var o=(0,r.Cl)((0,r.Cl)({},e),{target:{value:i}});n.props.onChange(o)}n.lastHtml=i}},n.isFirefox=Boolean(s.BrowserDetect.isFirefox()),n}return(0,r.C6)(t,e),t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=this.getEl();return!n||((0,l.No)(e.html)!==(0,l.No)(n.innerHTML)||(t.disabled!==e.disabled||t.tagName!==e.tagName||t.className!==e.className||t.innerRef!==e.innerRef||t.placeholder!==e.placeholder||!(0,u.b)(t.style,e.style)))},t.prototype.componentDidUpdate=function(){var e=this.getEl();e&&(this.props.html!==e.innerHTML&&(e.innerHTML=this.props.html),this.lastHtml=this.props.html,(0,c.US)(e),clearTimeout(this.replaceCaretTimerRef),this.replaceCaretTimerRef=window.setTimeout((function(){e.dispatchEvent(new CustomEvent(a.R.SMILEYS_TEXTAREA_UPDATE_CARET))}),1))},t.prototype.render=function(){var e=this,t=this.props,n=t.innerRef,i=t.html,a=t.tagName,s=(0,r.Tt)(t,["innerRef","html","tagName"]);return(0,o.createElement)(a||"div",(0,r.Cl)((0,r.Cl)({},s),{ref:"function"==typeof n?function(t){n(t),e.el.current=t}:n||this.el,contentEditable:!!this.isFirefox||"plaintext-only",dangerouslySetInnerHTML:{__html:i},onBlur:this.props.onBlur||this.emitChange,onInput:this.emitChange,onKeyDown:this.props.onKeyDown||this.emitChange,onKeyUp:this.props.onKeyUp||this.emitChange}))},t}(i.uA),f=n(8546),h=n(17515),p=n(9534),m=n(45697),v=n(56575),g=n(93657),_=n(26616),b=n(92284),y=/(
\s*)+$/,A=n(54469),S=function(e){var t=e.caretPosition,n=e.token,r=e.value,i=e.withoutSpace,o=void 0!==i&&i,a=e.isMultilineSupported,s=v.t.getInstance(),c=s.getOnlyImageOutputText,u=s.replaceChatSmileysListPattern,d=r.match(u)||[],f=r.replace(u,b.g_),h=(0,l.bc)(f,n,t,o);d.length&&d.forEach((function(e){h=h.replace(b.g_,e)}));var p=c(h).text;return{newInputValue:a?p:p.replace(/|<\/br>/g," "),sendValue:(0,l.No)((0,b.Ju)(p,!0)).replace(b.gA,"")}},E=function(e,t){var n=e.id,r=e.maxLength,i=e.dontSendMessageByEnter,u=void 0!==i&&i,d=e.isMobile,f=void 0!==d&&d,E=e.isPreventNewLine,w=void 0!==E&&E,C=e.onBlur,T=void 0===C?_.noop:C,L=e.onChange,M=void 0===L?_.noop:L,k=e.onClick,N=void 0===k?_.noop:k,I=e.onFocus,O=void 0===I?_.noop:I,P=(0,o.useState)(""),R=P[0],D=P[1],j=(0,o.useState)(!0),x=j[0],U=j[1],F=(0,o.useRef)(0),B=(0,o.useRef)(""),H=(0,o.useRef)(!1),G=(0,o.useRef)(null),V=(0,o.useRef)([""]),W=(0,o.useRef)(0),q=(0,o.useRef)(0),Y=(0,o.useRef)(0),z=(0,o.useRef)(0),X=(0,o.useRef)(!0),K=(0,o.useRef)(null);(0,o.useImperativeHandle)(t,(function(){return K.current}));var J=[A.a.IM,A.a.COMMENTS,A.a.COMMENTS_PHOTO].includes(n),$=(0,o.useMemo)((function(){return s.BrowserDetect.isFirefox()}),[]),Q=(0,o.useMemo)((function(){return s.BrowserDetect.isIOS()}),[]),Z=(0,o.useCallback)((function(){document.dispatchEvent(new CustomEvent(a.R.SMILEYS_CLOSE))}),[]),ee=function(){F.current=(0,c.JC)()},te=(0,o.useCallback)((function(){ee(),N()}),[N]),ne=function(){K.current&&V.current.push(K.current.innerHTML)},re=(0,o.useCallback)((function(){setTimeout((function(){return ee()}),1)}),[]),ie=function(e){void 0===e&&(e="");var t="";D((function(n){return"".concat(t=e||n," ")})),setTimeout((function(){D(t),ee()}),1)},oe=function(e,t){var n=(0,c.oz)();q.current=window.setTimeout((function(){q.current=null;var r=Math.abs(K.current.scrollWidth-t);K.current.scrollWidth>K.current.clientWidth&&(K.current.scrollLeft=n?K.current.scrollWidth-K.current.clientWidth:e+r+10)}),$?300:50)},ae=function(e,t){void 0===t&&(t=""),U(!1);var n=e?e.nativeEvent.target.innerHTML:t,i=n.replace(/
/g,"").replace(/ /g," ");i=w?i.replace(/\n/g," ").replace(/
/g," ").replace(/<\/div>/g," "):i.replace(/<\/div>/g,"").replace(/
/g," "),4===n.length&&(i=i.replace(y,"")),i=i.replace(/<\/span>/g,""),$&&(i=i.replace(y,"
")),n.includes('href="')&&(i=(0,l.No)(i).replace(/(<\/?(a)[^>]*>)/g,""));var o=!!e&&"insertFromPaste"===e.nativeEvent.inputType,s=!!e&&"insertFromDrop"===e.nativeEvent.inputType;if(Z(),$&&s)return i=i.replace(/<[^>]*>/g,"").trim(),B.current=i,K.current.setAttribute("data-send-message",i),ie(i),e.nativeEvent.preventDefault(),!1;var u=function(){var t=function(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r=!1);var i="",o="";if(n){var a=v.t.getInstance().getOnlyImageOutputText(e);i=a.text,o=a.token}else i=e;var s=(0,l.No)(i)||"";s=s.replace(/
/g,"").replace(/<\/div><\/div>/g,"");var c=(0,l.No)((0,b.Ju)(i,!0))||"";c=c.replace(b.gA,"").replace(/ /g," ").replace(/
/g,"").replace(/<\/div><\/div>/g,"").replace(/
|<\/div>/g,"\n"),r||(c=c.replace(/\n/g," "));var u=(0,l.Bi)(t,s);return{clearInputValue:s,clearSendValue:c,token:o,isPrintedSmile:u.includes(b.le)||u.includes(b.g_)}}(i,R,!X.current,J),s=t.isPrintedSmile,u=t.clearSendValue,d=t.clearInputValue;B.current=u;var f=K.current.scrollLeft,h=K.current.scrollWidth;if(w&&B.current.length>r){var p=B.current.slice(0,r),m=v.t.getInstance().getOnlyImageOutputText(p).text;return B.current=p,K.current.setAttribute("data-send-message",p),ie((0,b.jt)(m,!0)),oe(f,h),e.nativeEvent.preventDefault(),!1}o&&(n.includes("\n")||n.includes("
"))&&setTimeout((function(){return ie()}),100),K.current.setAttribute("data-send-message",B.current),D(d),ee();var g=F.current;if(s){var _=(0,c.oz)();_&&Q?setTimeout((function(){return D((function(e){return(0,b.jt)(e)}))}),1):D(o?function(e){return(0,b.d1)(e)}:function(e){return(0,b.jt)(e)});var y=function(){var e=(0,b.Ih)(K.current,g,_&&Q);(0,c.I_)(K.current,1,e),ee(),oe(f,h),Y.current=window.setTimeout((function(){Y.current=null,K.current.removeEventListener(a.R.SMILEYS_TEXTAREA_UPDATE_CARET,y)}),300)};K.current.addEventListener(a.R.SMILEYS_TEXTAREA_UPDATE_CARET,y)}M(B.current)},d=(0,l.Bi)(R,i);clearTimeout(z.current),d.startsWith(" ")?X.current=!1:(X.current=!0,z.current=window.setTimeout((function(){X.current=!1,u()}),f?3e3:2e3)),u()},se=function(e){var t=e.detail,i=t.inputId,o=t.token;if(i!==n||!o||B.current.length>r)return!1;var s=(0,c.cS)(),u=(0,b.Ju)(s,!0).replace(/ /g," "),l=B.current;if(u){var d=B.current.indexOf(u);l=l.slice(0,d)+l.slice(d+u.length)}K.current&&document.activeElement!==K.current&&K.current.focus(),U(!1);var f=S({caretPosition:F.current,token:o,value:l,isMultilineSupported:J}),h=f.newInputValue,p=f.sendValue,m=K.current.scrollLeft,g=K.current.scrollWidth;D((0,b.jt)(h,!0));var _=F.current;setTimeout((function(){var e=function(){var t=(0,b.GI)({el:K.current,caretPos:_,token:o,replaceSmileysListPattern:v.t.getInstance().replaceChatSmileysListPattern}),n=t.pos,r=t.offset;(0,c.I_)(K.current,r,n),setTimeout((function(){return ee()}),1),oe(m,g),K.current.removeEventListener(a.R.SMILEYS_TEXTAREA_UPDATE_CARET,e)};K.current.addEventListener(a.R.SMILEYS_TEXTAREA_UPDATE_CARET,e)}),1),B.current=p,K.current.setAttribute("data-send-message",p),M(p,!0),clearTimeout(W.current),W.current=window.setTimeout((function(){ne()}),1),clearTimeout(z.current),X.current=!0},ce=function(e){var t=e.detail,r=t.inputId,i=t.value,o=t.options,a=void 0===o?{}:o;if(clearTimeout(z.current),r===n){var s=v.t.getInstance().getOnlyImageOutputText(i).text;B.current=i,U(!1),D(s.trim().replace(b.gA,"")),K.current.setAttribute("data-send-message",i),(null==a?void 0:a.endCaretPosition)&&(D((function(e){return"".concat(e," ")})),K.current.focus(),(0,c.US)(K.current),setTimeout((function(){return ee()}),1))}},ue=function(e){var t=e.detail,r=t.inputId,i=t.options;clearTimeout(z.current),X.current=!0;var o=!(document.activeElement===K.current||!(null==i?void 0:i.isDontShowPlaceholder))||!(null==i?void 0:i.isDontShowPlaceholder);r===n&&(K.current&&(K.current.setAttribute("data-send-message",""),K.current.scrollLeft=0),B.current="",D(""),U(o),n===A.a.CHAT&&(0,p.closeHotWordsHint)())};return(0,o.useEffect)((function(){return document.addEventListener(a.R.SMILEYS_TEXTAREA_CLEAR,ue),document.addEventListener(a.R.SMILEYS_TEXTAREA_INSERT_TEXT,ce),document.addEventListener(a.R.SMILEYS_TEXTAREA_INSERT_SMILE,se),function(){clearTimeout(z.current),clearTimeout(Y.current),clearTimeout(W.current),document.removeEventListener(a.R.SMILEYS_TEXTAREA_CLEAR,ue),document.removeEventListener(a.R.SMILEYS_TEXTAREA_INSERT_TEXT,ce),document.removeEventListener(a.R.SMILEYS_TEXTAREA_INSERT_SMILE,se)}}),[]),{textareaRef:K,inputValue:R,isShowPlaceholder:x,isFirefox:$,focusRef:H,sendInputValueRef:B,handleClick:te,handleFocus:function(){H.current=!0,setTimeout((function(){return ee()}),1),x&&U(!1),f&&(G.current=window.setInterval((function(){ee()}),600)),O()},handleBlur:function(e){H.current=!1,0===B.current.trim().length&&U(!0),f&&clearInterval(G.current),T(e)},handleChange:ae,handleKeyDown:function(e){if(B.current.length>=r&&(0===document.getSelection().toString().length&&!e.metaKey&&!e.ctrlKey&&!["Home","End","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Backspace","Delete","Enter"].includes(e.key)))return e.nativeEvent.preventDefault(),!1;var t="Enter"===e.key;if((w?t:t&&!e.shiftKey&&!e.metaKey)&&!u){e.nativeEvent.preventDefault(),Z(),U(!1);var n=(0,m.j)(B.current);if((0,h.q)((function(){D("")})),K.current.setAttribute("data-send-message",""),B.current="",n)return window.chat&&window.chat.sendMessage(n,"key","",!1),(0,p.closeHotWordsHint)(),clearTimeout(z.current),X.current=!0,setTimeout((function(){(0,g.c)()}),10),!1}["Home","End","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(e.key)?(setTimeout((function(){return ee()}),1),e.nativeEvent.stopPropagation()):(e.metaKey||e.ctrlKey)&&"z"===e.key?(clearTimeout(W.current),V.current.length>0&&(V.current.pop(),ae(null,V.current[V.current.length-1]),setTimeout((function(){return(0,c.US)(K.current)}),1))):e.ctrlKey||e.metaKey||(clearTimeout(W.current),W.current=window.setTimeout((function(){ne()}),600))},handleCopy:function(e){var t=(0,c.cS)(),n=(0,l.No)((0,b.Ju)(t,t.includes("0){var u=B.current.indexOf(o);s=s.slice(0,u)+s.slice(u+o.length)}(t=(t=t.replace(/<\/span>/g,"")).replace(/(
\s*)+$/,"
")).includes('href="')&&(t=t.replace(/(<\/?(a)[^>]*>)/g,""));var l=t.split(" ").filter(Boolean),d=l.length>0&&l[l.length-1].includes(":"),f=S({caretPosition:F.current,token:t,value:s,withoutSpace:!d,isMultilineSupported:J}),h=f.newInputValue,p=f.sendValue;J||(p=p.replace(/\n/g," "));var m=K.current.scrollLeft,g=K.current.scrollWidth;if(B.current=p,w&&B.current.length>r){var _=B.current.slice(0,r),y=v.t.getInstance().getOnlyImageOutputText(_).text;return B.current=_,K.current.setAttribute("data-send-message",_),ie(y),oe(m,g),e.nativeEvent.preventDefault(),!1}D((0,b.d1)(h)),ee();var A=F.current;setTimeout((function(){var e=function(){var n=(0,b.GI)({el:K.current,caretPos:A,token:t,withoutSpaces:!d,replaceSmileysListPattern:v.t.getInstance().replaceChatSmileysListPattern}),r=n.pos,o=n.offset,s=r;d&&i&&(s+=2),(0,c.I_)(K.current,o,s),setTimeout((function(){return ee()}),300),K.current.removeEventListener(a.R.SMILEYS_TEXTAREA_UPDATE_CARET,e)};K.current.addEventListener(a.R.SMILEYS_TEXTAREA_UPDATE_CARET,e)}),1),oe(m,g);var E=(0,b.Ju)(B.current,p.includes("=.5?trans("%modelName% is waiting for you to chat!",{modelName:''.concat(s,"")}):trans("Message %modelName% first to start chatting!",{modelName:''.concat(s,"")}):null,skin:"blue",isActive:!0,controlledMode:!0,clickable:!0,isShowCloseBtn:!0,isStylePosition:!0,closeOnMouseLeave:!1,onCloseBtn:d,setRef:c},n)),!l&&(0,i.h)(o.Fragment,null,n))},U=function(e){var t=e.value,n=e.maxLength,r=e.isFocused,a=n?n-String(t).length:null,s=(0,o.useMemo)((function(){return null==a?"":a>=0?"".concat(a," ").concat(__("characters left")):"".concat(-a," ").concat(__("characters exceeded"))}),[a]);return!n||"boolean"==typeof r&&!r?null:(0,i.h)("span",{className:(0,f.n)({notifier:!0,too_long:null==a||a<0})},s)},F=(0,o.memo)((0,o.forwardRef)((function(e,t){var n,r,o=e.id,a=e.className,s=e.classNameWrp,c=e.placeholder,u=e.maxLength,l=e.tabIndex,h=e.style,p=e.isRemainCharTextEnabled,m=e.isMobile,v=E(e,t),g=v.textareaRef,_=v.focusRef,b=v.inputValue,y=v.isShowPlaceholder,A=v.isFirefox,S=v.handleClick,w=v.handleFocus,C=v.handleBlur,T=v.handleChange,L=v.handleKeyDown,M=v.handleCopy,k=v.handlePaste,N=v.handleCut,I=v.handleThrottleUpdate,O=v.sendInputValueRef;return(0,i.h)("div",{className:(0,f.n)((n={ccp_input_space_holder:!m,sendInputSpaceHolder:m},n[s]=Boolean(s),n))},(0,i.h)(x,{textAreaId:o},(0,i.h)(d,{innerRef:g,id:o,className:(0,f.n)((r={notranslate:!0,__firefox:A,__placeholder:y},r[a]=Boolean(a),r)),"data-placeholder":c,html:b,tabIndex:l,onClick:S,onFocus:w,onBlur:C,onChange:T,onKeyDown:L,onTouchStart:I,onTouchMove:I,onTouchEnd:I,onCopy:M,onCut:N,onPaste:k,style:h}),p&&(0,i.h)(U,{value:O.current,maxLength:u,isFocused:_.current})))})))},57321:function(e,t,n){"use strict";n.d(t,{q:function(){return r}});var r=function(e){return" (".concat(e,") ")}},64080:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(41669);function i(e,t){void 0===t&&(t=!1),r(t?"#bTopicForm .input_topic_ru":"#bTopicForm .input_topic_en").val(e).change()}},39682:function(e,t,n){"use strict";n.d(t,{e:function(){return we},N:function(){return Me}});var r,i,o=n(50172),a=n(17402),s=n(26580),c=n(15215),u=n(71799),l=n(42481),d=n(47077),f=n(26616),h=n(8546),p=function(e){var t=e.url,n=e.code,r=e.icon,i=e.label,a=e.liveCount,c=e.isNew,u=e.isActive,p=e.isOpenedInNewPage,m=void 0!==p&&p,v=e.onCategoryClick,g=void 0===v?f.noop:v;return(0,o.h)("li",{className:"cdm_item"},(0,o.h)("a",{href:t,className:(0,h.n)({cdm_link:!0,"js-dd_link":!m,__current:u}),target:m?"_blank":void 0,rel:m?"category noreferrer":void 0,"data-name":n,onClick:g},r&&(0,o.h)(s.A,{group:"cdm_icon",icon:"#svg_ctg_".concat(r),url:"sprite/bc/category.svg"}),trans("%categories% %s1%(%live% Live)%s2%",{categories:i,s1:'',live:a||0,s2:""}),c&&(0,o.h)(d.E,{classModifier:"cdm_item_badge",icon:l.S.NEW})))},m=n(23110),v=n(94968),g=((r={})[m.n.MALE]="/male/",r[m.n.TRANSSEXUAL]="/trans/",r),_=(0,a.memo)((function(e){var t=e.listingActiveCategory,n=e.categories,r=e.liveTab,i=e.isOpenedInNewPage,s=e.onCategoryClick,l=(0,a.useMemo)((function(){return n&&n.length?(0,c.fX)([],n,!0).sort((function(e,t){return e.label>t.label?1:-1})):[]}),[n]);return l.length?(0,o.h)("div",{className:"bc_category_dropdown"},(0,o.h)("ul",{className:"cdm_list js-spa_categories"},l.map((function(e){var n=v.A.getCategoriesIcon(e.code),a=function(e,t){return(g[e]||"/")+t}(r,e.slug),l=(0,u.F)(e.code);return(0,o.h)(p,(0,c.Cl)({key:e.code,url:a,icon:n,isNew:l,isOpenedInNewPage:i,isActive:t&&e.code===t,onCategoryClick:s},e))})))):null})),b=n(47885),y=n(46517),A=n(65362),S=n(18289),E=n(7819),w=n(82200),C=n(9445),T=n(28577),L=function(){var e=function(){var e=(0,a.useState)(!1),t=e[0],n=e[1],r=(0,a.useRef)(null),i=(0,y.d4)(E.Z),o=(0,y.d4)(T.em),s=(0,y.d4)(C.i4),c=!!s&&w.Q[s]||m.n.FEMALE,u=(0,y.d4)(E.t),l=(0,S.H)(c,u),d=l.loadCounters,f=l.isLoading,h=t&&!f,p=(0,a.useCallback)((function(){n(!1)}),[]);return(0,A.j)({ref:r,callback:p}),{wrapperRef:r,headerCategories:i,listingActiveCategory:o,liveTab:c,isVisible:h,handleClick:function(){n((function(e){return!e||f}))},handleClose:p,handleMouseEnter:function(){d()}}}(),t=e.wrapperRef,n=e.headerCategories,r=e.listingActiveCategory,i=e.liveTab,c=e.isVisible,u=e.handleClick,l=e.handleClose,d=e.handleMouseEnter;return(null==n?void 0:n.length)?(0,o.h)("div",{ref:t,className:(0,h.n)({bc_category_dropdown_wrap:!0,__open:c})},(0,o.h)("span",{className:"bc_chat_button",role:"button",onClick:u,onMouseEnter:d},(0,o.h)(s.A,{group:"cb_icon",icon:"#svg_ch_btn_categories",url:b.g5}),__("Categories")),c&&(0,o.h)(_,{categories:n,listingActiveCategory:r,liveTab:i,isOpenedInNewPage:!0,onCategoryClick:l})):null},M=n(87276),k=n(21492),N=n(43674),I=n(13907),O=n(32502),P=function(){return(0,y.d4)(O.x9)?(0,o.h)("div",{className:"ch_h_winner_badge bc_chat_tooltip_wrap __bottom __start"},(0,o.h)("img",{className:"ch_h_wb_icon",alt:"",src:(0,I.oF)("svg/bc/chat/ch_win_qoq.svg")}),(0,o.h)("span",{className:"bc_chat_tooltip",role:"tooltip"},(0,o.h)("span",{className:"ct_inner"},(0,N.p)("Last week’s %s1%winner%s1_end% of the Queen of Queens contest!",{s1:'',s1_end:""})))):null},R=function(){return(0,y.d4)(O.Df)?null:(0,o.h)(d.E,{className:"ch_h_badge_live",classModifier:"__live",icon:l.S.LIVE})},D=n(22078),j=n(35626),x=n(42940),U=n(40172),F=function(){var e=function(){var e=(0,y.d4)(x.C),t=(0,y.d4)(j.S),n=(0,y.d4)(U.U7),r=e||{},i=r.displayName,o=r.profileImage50,s=(0,a.useMemo)((function(){return o?(0,I.oF)(o,!0):""}),[o]),c=(0,D.j)(e);return{displayName:i,profileImageUrl:s,isBadgeNewShown:c&&(null==t?void 0:t.isNewModel),isTitleShown:c&&!n}}(),t=e.displayName,r=e.profileImageUrl,i=e.isBadgeNewShown,s=e.isTitleShown;return(0,o.h)("div",{className:"ch_host"},(0,o.h)("div",{className:"ch_h_picture_wrap"},(0,o.h)(k.h,{className:"ch_h_picture __round",image:{alt:t,src:r}}),(0,o.h)(R,null)),s&&(0,o.h)("span",{className:"ch_h_name",title:t},t),i&&(0,o.h)(d.E,{className:"ch_h_badge_new",classModifier:"__secondary",icon:l.S.NEW_LARGE}),(0,o.h)(P,null),(0,o.h)(M.N,{getComponent:function(){return Promise.all([n.e(32),n.e(97),n.e(147),n.e(157),n.e(77),n.e(113),n.e(163),n.e(63),n.e(67)]).then(n.bind(n,99127))}}))},B=n(7635),H=n(72763),G=n(63658),V=n(6086),W=n(50445),q=function(e){var t=e.isFading,n=e.isLover,r=e.onFadeOut;return n?(0,o.h)("span",{className:"cb_icon_wrap"},(0,o.h)(s.A,{group:(0,h.n)({cb_icon:!0,__love:n}),icon:"#svg_ch_count_love",url:b.g5})):(0,o.h)("span",{className:(0,h.n)({cb_icon_wrap:!0,__hide:t}),onAnimationEnd:r},(0,o.h)(s.A,{group:"cb_icon",icon:"#svg_ch_count_love_add",url:b.g5}))},Y=n(18697),z=n(98768),X=(0,a.memo)((function(e){var t=e.children,n=e.isPlaying,r=function(e){var t=e.isPlaying,n=e.onAnimationEnd,r=e.onAnimationReady,i=(0,a.useRef)(null),o=(0,z.eT)({path:(0,I.oF)("svg_json/lovers_button/lb_icon.json",!0)}),s=o.animInstance,c=o.loadAnimation,u=o.isInitialized,l=o.isLoaded;return(0,a.useEffect)((function(){u&&((0,Y._b)("Chat Lovers Anim loadAnimation").log(i.current),c({container:i.current,loop:!1}))}),[c,u]),(0,a.useEffect)((function(){l&&r()}),[l,r]),(0,a.useEffect)((function(){t&&s&&s.addEventListener("complete",n)}),[s,t,n]),(0,a.useMemo)((function(){t&&s&&((0,Y._b)("Chat Lovers Anim play").log(),s.goToAndPlay(0,!0))}),[s,t]),{svgAnimationRef:i}}(e).svgAnimationRef;return(0,o.h)(o.FK,null,(0,o.h)("span",{className:(0,h.n)({cb_icon_wrap:!0,bc_hide:!n})},(0,o.h)("span",{ref:r,className:"cb_icon"})),!n&&t)})),K=n(38588),J=n(45070),$=n(21110);!function(e){e[e.STOP=0]="STOP",e[e.PENDING=1]="PENDING",e[e.RESIZE=2]="RESIZE",e[e.PLAY=3]="PLAY",e[e.DONE=4]="DONE"}(i||(i={}));var Q=n(8269),Z=n(25551),ee=n(80554),te=n(18325),ne=n(21755),re=n(41669),ie=function(){var e=(0,y.d4)(H.Tg),t=function(e){var t=e||{},n=t.username,r=t.isAuthenticated,o=t.isFreeMember,s=t.isLover,c=$.q.isEnabled(J.i.CHAT_LOVERS_ANIMATION),u=(0,a.useState)(i.STOP),l=u[0],d=u[1],f=(0,a.useState)(!1),h=f[0],p=f[1],m=(0,a.useRef)(!1),v=(0,a.useRef)(!1),g=[i.PLAY,i.DONE].includes(l),_=v.current&&l===i.RESIZE,b=[i.RESIZE,i.PENDING].includes(l),y=c&&(g||b),A=!y&&!s&&r&&!o,S=(0,a.useCallback)((function(){(0,Y._b)("Chat Lovers Anim prepareAnimation").log(),d((function(e){return e===i.STOP?i.PENDING:e}))}),[]),E=(0,a.useCallback)((function(){p(!0),m.current=!0,v.current=!0,(0,Y._b)("Chat Lovers Anim startAnimation").log(),d((function(e){return e===i.STOP?i.PENDING:e}))}),[]),w=(0,a.useCallback)((function(){(0,Y._b)("Chat Lovers Anim onAnimationReady").log(),d((function(e){return e===i.PENDING?i.RESIZE:e}))}),[]),C=(0,a.useCallback)((function(){(0,Y._b)("Chat Lovers Anim onResizeEnd").log(),d((function(e){return e===i.RESIZE?i.PLAY:e}))}),[]),T=(0,a.useCallback)((function(){(0,Y._b)("Chat Lovers Anim onAnimationEnd").log(),d((function(e){return e===i.PLAY?m.current?i.DONE:i.STOP:e}))}),[]),L=(0,a.useCallback)((function(){p(!1),m.current=!1,(0,Y._b)("Chat Lovers Anim onRequestEnd").log(),d((function(e){return e===i.DONE?i.STOP:e}))}),[]);return(0,K.A)((function(){d(i.STOP)}),[n]),(0,K.A)((function(){d((function(e){return e===i.DONE?i.STOP:e}))}),[s,h]),(0,a.useEffect)((function(){l===i.STOP&&(v.current=!1)}),[l]),{isAnimating:y,isAnimatingAvailable:A,isAnimPlay:g,isAnimResize:_,prepareAnimation:S,startAnimation:E,onAnimationEnd:T,onAnimationReady:w,onRequestEnd:L,onResizeEnd:C}}(e),n=t.isAnimating,r=t.isAnimatingAvailable,s=t.isAnimPlay,c=t.isAnimResize,u=t.prepareAnimation,l=t.startAnimation,d=t.onAnimationEnd,f=t.onAnimationReady,p=t.onRequestEnd,m=t.onResizeEnd,v=function(e,t,n){var r=e.apiUrl,i=e.loversCount,o=e.isAuthenticated,s=e.isFreeMember,c=e.isLover,u=(0,a.useState)(c),l=u[0],d=u[1],f=(0,y.d4)(C.i4)||te.A.FEMALE,h=(0,y.d4)(U.ey),p=(0,y.d4)(U.d1),m=(0,a.useMemo)((function(){var e=Q.O[f];return Z.g[e]}),[f]),v=(0,a.useCallback)((function(e){p?chat.signupPopup():re.signupEvent.call({e:e})}),[p]),g=(0,ne.J)({apiUrl:r,isAuthenticated:o,isFreeMember:s,isLover:c,onBeforeRequest:t,onIsNeedBuyToken:function(){if(s){var e=__('Only members with Gold status or higher can send "Love" to a model. %a1%Buy Tokens!%a2%',{a1:'
'),a2:""});return chat.addServiceMessage(e,"alert")}},onNotIsAuthenticated:v,onSuccess:function(e){var t=e.loversCount,r=e.message;t&&r&&!c?(chat.addServiceMessage(r,"service"),d(!1)):chat.addServiceMessage(r,"alert"),n()}}).handleLoversClick;return(0,a.useEffect)((function(){return document.addEventListener(ee.R.LOVERS_CLICK,g),function(){document.removeEventListener(ee.R.LOVERS_CLICK,g)}}),[g]),{loversCount:i,tooltipText:m,isAddedLoverHintVisible:l,isLover:c,isModerator:h,handleLoversClick:g,onMouseLeaveHandler:function(){c&&!l&&d(!0)}}}(e,l,p),g=v.loversCount,_=v.tooltipText,b=v.isAddedLoverHintVisible,A=v.isLover,S=v.isModerator,E=v.handleLoversClick,w=v.onMouseLeaveHandler,T=(0,B.n)(g,n),L=(0,B.n)(A,n);return S?null:(0,o.h)("div",{className:(0,h.n)({"bc_chat_tooltip_wrap __bottom __center":L&&b||!L}),onMouseEnter:(0,W.s)(u,r),onMouseLeave:w},(0,o.h)("span",{className:(0,h.n)({"bc_chat_button ch_button __lovers":!0,__disabled:L}),role:"button",onClick:E},n&&(0,o.h)(X,{isPlaying:s,onAnimationEnd:d,onAnimationReady:f},(0,o.h)(q,{isFading:c,isLover:!1,onFadeOut:m})),!n&&(0,o.h)(q,{isLover:L}),G.K.SPACE,(0,o.h)("span",{key:Date.now()},__("%count% lovers%_lowercase_%",{count:(0,V.Z)(T,{thousandSeparator:","})}))),L&&b&&(0,o.h)("span",{className:"bc_chat_tooltip",role:"tooltip"},__("You already sent love!")),!L&&(0,o.h)("span",{className:"bc_chat_tooltip",role:"tooltip"},_))},oe=(n(33954),n(62271),n(37733)),ae=n(84078),se=n(63065),ce=n(1887),ue=function(){var e=function(){var e=(0,ae.v)("chatPopupBody"),t=(0,ae.v)("embed_chat"),n=(0,y.d4)(x.C),r=(0,y.d4)(C.b5),i=(0,y.d4)(U.VF),o=n||{},a=o.profileLink,s=void 0===a?"#":a,c=o.profileLinkPrefix,u=e&&t?c+encodeURIComponent("".concat(window.location.protocol,"://").concat(window.location.host,"/profile/").concat((0,se.o)(null==r?void 0:r.username))):s,l=(0,oe.U)(u),d=__("Profile");return{prefix:c,profileLinkURL:l,title:d,isBadgeNewAvailable:i,handleButtonClick:function(n){e&&t||(n.preventDefault(),(0,ce.o)(l))}}}(),t=e.prefix,n=e.profileLinkURL,r=e.title,i=e.isBadgeNewAvailable,a=e.handleButtonClick;return(0,o.h)("a",{className:"bc_chat_button ch_button __profile","data-url_prefix":t,href:n,rel:"profile noreferrer",target:"_blank",onClick:a},(0,o.h)(s.A,{group:"cb_icon",icon:"#svg_ch_btn_profile",url:b.g5}),i&&(0,o.h)(d.E,{classModifier:"cb_icon_badge",icon:l.S.NEW}),r)},le=n(96758),de=function(e){var t,n=e.className,r=function(){var e=(0,y.d4)(O.ad),t=(0,a.useMemo)((function(){return(0,le.I)(e)}),[e]);return{classModifier:(0,le.G)(e),text:t}}(),i=r.classModifier,s=r.text;return(0,o.h)("span",{className:(0,h.n)((t={bc_chat_status:!0},t[String(n)]=n,t[i]=i,t))},s)},fe=n(20983),he=function(){var e,t,n,r=(e=(0,y.d4)(C.i4),t=!!e&&w.Q[e]||m.n.FEMALE,{link:(n=(0,fe.Y)(t))===m.n.ALL?"/tags":"/".concat(n,"/tags"),title:__("Tags")}),i=r.link,a=r.title;return(0,o.h)("a",{className:"bc_chat_button ch_button __tags",href:i,rel:"tags noreferrer",target:"_blank"},(0,o.h)(s.A,{group:"cb_icon",icon:"#svg_ch_btn_tags",url:b.g5}),a)},pe=n(2268),me=n(41042),ve=function(){var e=function(){var e=(0,y.d4)(me.xq),t=null==e?void 0:e.dn,n=null==e?void 0:e.au;return{kingAvatarUrl:(0,a.useMemo)((function(){return n?(0,I.oF)(n,!0):""}),[n]),kingDisplayName:t}}(),t=e.kingAvatarUrl,n=e.kingDisplayName;return t?(0,o.h)(k.h,{className:"ctk_avatar __round",image:{alt:n,src:t}}):null},ge=n(49635),_e=n(99353),be=n(25638),ye=n(41669),Ae=function(){var e=function(){var e=(0,y.d4)(me.xq)||{},t=e.amount,n=void 0===t?0:t,r=e.dn,i=void 0===r?"":r,o=e.enabled,s=e.un,c=void 0===s?"":s,u=(0,y.d4)(ge.cP),l=(0,y.d4)(U.ey),d=(0,y.d4)(C.oC),f=(0,a.useRef)(null),h=(0,a.useRef)(null),p=(0,a.useState)(null),m=p[0],v=p[1],g=(0,a.useState)(null),_=g[0],b=g[1],A=(0,a.useState)(!1),S=A[0],E=A[1],w=(0,a.useState)(!1),T=w[0],L=w[1],M=(0,a.useState)(!0),k=M[0],N=M[1],I=(0,a.useState)(!0),O=I[0],P=I[1],R=Boolean(o&&n)&&!(d&&S),D=c===u,j=(0,a.useMemo)((function(){return(0,_e.s)((function(){return L(!0)}),be.Q)}),[]),x=(0,a.useCallback)((function(e){e&&v(e)}),[]),F=(0,a.useCallback)((function(e){e&&b(e)}),[]),B=(0,a.useCallback)((function(e){e.preventDefault(),l||chat.tipPopup(!1,!0)}),[l]),H=(0,a.useCallback)((function(){if(m&&_&&R)try{var e=f.current;h.current||(h.current=new IntersectionObserver((function(e){e.forEach((function(e){var t=e.intersectionRatio,n=e.intersectionRect,r=e.target,i=e.isIntersecting&&1!==t&&Boolean(n.width);r===_?N(i):r===m&&P(i)})),j()}),{root:e,threshold:[0,1]}),h.current.observe(m),h.current.observe(_))}catch(e){}}),[m,_,R,j]),G=(0,a.useCallback)((function(){var e;L(!1),null===(e=h.current)||void 0===e||e.disconnect(),h.current=null}),[]);return(0,a.useLayoutEffect)((function(){return m&&R?H():G(),function(){G()}}),[m,R,G,H]),(0,a.useLayoutEffect)((function(){return ye(document).on("chat:close",G),function(){ye(document).off("chat:close",G)}}),[G]),(0,a.useLayoutEffect)((function(){return ye(document).on("chat:open",H),function(){ye(document).off("chat:open",H)}}),[H]),(0,a.useLayoutEffect)((function(){var e=function(){var e,t=(null===(e=chat.chatSettings)||void 0===e?void 0:e.disableChatBotsInPrivate)||!1;E(t)};return ye(document).on("chat:settings",e),function(){ye(document).off("chat:settings",e)}}),[]),(0,a.useLayoutEffect)((function(){var e=function(){G(),H()};return ye(document).on(ee.R.ON_CURRENT_CHATHOST_CHANGE,e),function(){ye(document).off(ee.R.ON_CURRENT_CHATHOST_CHANGE,e)}}),[G,H]),{parentRef:f,setContentElRef:x,setLongContentElRef:F,kingDisplayName:i,tipSum:n,isDisplayed:T,isEnabled:R,isMemberTipKing:D,isShortVersion:k,isWithFading:O,handleBeatItClick:B}}(),t=e.parentRef,n=e.setContentElRef,r=e.setLongContentElRef,i=e.kingDisplayName,s=e.tipSum,c=e.isDisplayed,u=e.isEnabled,l=e.isMemberTipKing,d=e.isShortVersion,f=e.isWithFading,p=e.handleBeatItClick;if(!u)return null;var m=function(e){var t=e.setRef,n=e.isShort,r=void 0!==n&&n,a=e.isWithTooltip,u=void 0!==a&&a;return(0,o.h)("div",{ref:t,className:(0,h.n)({ctk_content:!0,__hidden:!c,__long:!r,__short:r,__with_tooltip:u})},(0,o.h)("img",{className:"ctk_crown",alt:"",src:(0,I.oF)("svg/bc/icon/icon_king_crown.svg")}),(0,o.h)("div",{className:"ctk_info_wrap"},(0,o.h)("div",{className:(0,h.n)({ctk_info:!0,"bc_chat_tooltip_wrap __bottom __center":u})},(0,o.h)("span",{className:"ctk_info_inner"},(0,o.h)("span",{className:"ctk_title"},r?__("Tip King:"):__("Tip King of the Day:")),(0,o.h)(ve,null),(0,o.h)("span",{className:"ctk_desc"},__("%name% spent %tokens% %tokens_plural%!",{name:i,tokens:s,tokens_plural:pe.kX.pluralise("tokens",s)}))),u&&(0,o.h)("div",{className:"bc_chat_tooltip",role:"tooltip"},(0,o.h)("div",{className:"bc_chat_tip_king_tooltip"},(0,o.h)("img",{className:"ctkt_crown",alt:"",src:(0,I.oF)("svg/bc/icon/icon_king_crown.svg")}),(0,o.h)("p",null,(0,o.h)("span",{className:"ctkt_title"},__("Tip King of the Day:")),G.K.SPACE,trans("%s1%%avatar% %name%%s1_end% spent %tokens% %tokens_plural%!",{avatar:"",name:i,s1:'',s1_end:"",tokens:s,tokens_plural:pe.kX.pluralise("tokens",s)},{"object.avatar":ve}),G.K.SPACE,!l&&(0,o.h)("span",{className:"ctkt_link",role:"link",onClick:p},__("Beat it!")))))),!l&&(0,o.h)("span",{className:"ctk_link",role:"link",onClick:p},__("Beat it!"))))};return(0,o.h)("div",{ref:t,className:(0,h.n)({bc_chat_tip_king:!0,__hidden:!c,__short:d,__with_fade:f})},m({setRef:r}),m({setRef:n,isShort:!0,isWithTooltip:f}))},Se=(0,a.lazy)((function(){return n.e(98).then(n.bind(n,8418))})),Ee=(0,a.lazy)((function(){return n.e(145).then(n.bind(n,29522))})),we=function(){var e=(0,y.d4)(U.ey);return(0,o.h)("div",{className:"bc_chat_header"},(0,o.h)("div",{className:"ch_cell __host"},(0,o.h)(F,null),(0,o.h)(de,{className:"ch_status"}),e&&(0,o.h)(a.Suspense,{fallback:null},(0,o.h)(Se,null))),(0,o.h)("div",{className:"ch_cell"},(0,o.h)(ue,null),(0,o.h)(ie,null)),(0,o.h)("div",{className:"ch_cell __tip_king"},!e&&(0,o.h)(Ae,null)),(0,o.h)("div",{className:"ch_cell"},e&&(0,o.h)(a.Suspense,{fallback:null},(0,o.h)(Ee,null)),(0,o.h)(he,null),(0,o.h)(L,null)))},Ce=n(22847),Te=n(22641),Le=n(32330),Me=function(e){var t=function(e){var t=e.isInChat,n=(0,y.d4)(me.e6)||{},r=(0,y.d4)(x.C)||{},i=r.displayName,o=r.profileImage50,s=(0,a.useMemo)((function(){return o?(0,I.oF)(o,!0):""}),[o]),c=(0,a.useState)(!0),u=c[0],l=c[1],d=(0,a.useState)(!1),f=d[0],h=d[1],p=n.currentTopic||__("%modelname%'s chat",{modelname:n.displayName}),m=(0,Le.gL)((0,Te.CN)(p,!0),"",16),v=(0,D.j)(n);return(0,a.useEffect)((function(){if(t){var e=function(e){var t=e.detail;h(Boolean(t))};return document.addEventListener(ee.R.CHAT_NOTIFICATIONS_RERENDER,e),function(){document.removeEventListener(ee.R.CHAT_NOTIFICATIONS_RERENDER,e)}}}),[t]),(0,a.useEffect)((function(){t&&l(Boolean(n.currentTopic||n.displayName))}),[n.currentTopic,n.displayName,t]),{modelDisplayName:i,modelImageUrl:s,topic:m,isAvailable:v,isHidden:f,isInChat:t,isLoaded:u}}(e),n=t.modelDisplayName,r=t.modelImageUrl,i=t.topic,s=t.isAvailable,c=t.isHidden,u=t.isInChat,l=t.isLoaded;return c||!l?null:u?(0,o.h)("div",{className:"bc_chat_topic"},(0,o.h)("div",{className:"ct_inner"},(0,o.h)(k.h,{className:"ct_avatar __round",image:{alt:n,src:r}}),(0,o.h)("div",{className:"ct_content"},(0,o.h)("div",null,(0,o.h)("span",{className:"ct_title"},__("Topic:"))," ",(0,o.h)(Ce.E,{className:"ct_text",html:i}))))):(0,o.h)("div",{className:"column-header-topic"},(0,o.h)("span",{className:"topic-label"},__("Topic:")," "),s&&(0,o.h)(Ce.E,{className:"bChatTopic",html:i}))}},16080:function(e,t,n){"use strict";n.d(t,{U:function(){return y}});var r=n(252),i=n(12530),o=n(86757),a=n(19826),s=a.A.action((function(e,t){return{isFloatingPlayer:t}})),c=n(81363),u=n(23826),l=n(80573),d=n(19118),f=n(1579),h=n(22706),p=n(9613),m=n(72418),v=n(80375),g=n(56738),_=n(80554),b=n(41669),y=function(){function e(){var e=this;this.isAttached=!1,this.playerWidthSizes=[{minWidth:0,width:270},{minWidth:1282,width:320}].sort((function(e,t){return e.minWidth-t.minWidth})),this.playerWidth=320,this.enabled=!1,this.timerZMAX=0,this.resizeTimer=0,this.scrollingEnabled=!0,this.initViewPortHeight=Math.max(document.documentElement.clientHeight,window.innerHeight||0),this.getViewPortHeight=function(){return Math.max(document.documentElement.clientHeight,window.innerHeight||0)},this.handleChangeSettings=function(t){var n=t.name,i=t.value;"mini_player"===n&&(i?e.enabled=!0:e.closeFloatingPlayer(),a.A.action(r.C)(i))},this.refreshState=function(){if(!a.A.getState().isAuthenticated){var e="1"===(0,p.Ri)("twc");a.A.action(r.C)(e)}},this.windowHeightChange=function(t){clearTimeout(e.resizeTimer),e.resizeTimer=window.setTimeout((function(){e.initViewPortHeight!==e.getViewPortHeight()&&(e.initViewPortHeight=e.getViewPortHeight(),null==t||t.disconnect())}),1)},this.onChangeOrientation=function(){var t=["MutationObserver","WebkitMutationObserver"].map((function(e){return window[e]})).filter(Boolean).shift();if(t){new t((function(t,n){e.windowHeightChange(n)})).observe(document.documentElement,{attributes:!0,subtree:!0})}else e.windowHeightChange()},this.closeFloatingPlayer=function(){var t,n;b("#mls_chatconsole").is(":visible")&&!b("body").hasClass("chat_collapsed")?(0,v.pI)(!1):((0,v.Kk)(!1),null===(n=null===(t=window.chat)||void 0===t?void 0:t.closeRoom)||void 0===n||n.call(t,!1,!0),b(".bChatUsersCount").html("(0)").removeClass("__show")),e.stopScrolling(),e.disable(),h.BrowserDetect.isTouchDevice()&&b(window).off("orientationchange",e.onChangeOrientation)},this.onScroll=(0,g.n)((function(){var t;e.refreshState();var n=a.A.getState(),r=n.floatingPlayer,i=n.isFullScreen,o=n.layover;if(!r.disabled&&("visible"===(window.chat&&window.chat.visibility)&&r.inited&&!i&&"visible"===(null===(t=window.chat)||void 0===t?void 0:t.visibility))){if(o&&!o.wait&&o.visible&&["away","private","fullprivate","group","limit","offline"].indexOf(o.type)>=0)return e.stopScrolling(),void e.disable();var s=document.getElementById("ResizablePane");if(s){var c=b(s),u=c.offset().top+.85*c.height(),l=b(window).scrollTop()>u;!e.scrollingEnabled&&l||(e.scrollingEnabled=!0,e.toggle(l))}}}),80),this.stopScrolling=function(){e.scrollingEnabled=!1},this.getAspectRatio=function(e){return Math.max(1,e.width)/Math.max(1,e.height)},this.onResize=function(){if(e.enabled){var t=document.querySelector("#ResizablePane");if(null!==t){var n=document.querySelector("#stream-layer"),r=document.querySelector(".js-float-player-controls");if(null!==n&&null!==r&&e.updatePlayerWidth()){var i=t.getBoundingClientRect(),o=e.playerWidth;window.requestAnimationFrame((function(){var t=e.getAspectRatio(i);b(r).css({width:o,height:o/t}),b(n).css({width:o,height:o/t})}))}}}},this.handleCloseClick=function(){e.closeFloatingPlayer(),a.A.getState().isAuthenticated||(0,p.Hk)("twc","1",{domain:(0,m.getRealDomain)(),path:"/",expires:1,expiresType:"hour"})},this.refreshState();var t=a.A.getState().isAuthenticated;b(document).on("click",".js-hover_block",(function(){var t,n;if(!a.A.getState().isSPAProcessing&&!u.z.isShow){var r="visible"===(null===(t=window.chat)||void 0===t?void 0:t.visibility);(null===(n=window.chat)||void 0===n?void 0:n.currentChathost)&&chat.updateHistoryState(r),document.body.classList.contains("page_index")?(r||c.k.activateBlocks(!0),(0,v.pI)(),e.disable(),window.scroll(0,0),i.A.restore(),(0,d.co)()):window.location.reload()}})),b(document).on("click",".js-player_caption_close",this.handleCloseClick),h.BrowserDetect.isTouchDevice()&&(b(window).on("resize",this.onChangeOrientation),b(window).on("orientationchange",this.onChangeOrientation)),b(document).on("chat:changeVideoHeight",this.onResize),b(window).on("scroll",this.onScroll),b(window).on("resize.fp",this.onResize),f.c.on("layover.type",(function(t,n){var r,i;(null===(r=n.layover)||void 0===r?void 0:r.type)!==(null===(i=t.layover)||void 0===i?void 0:i.type)&&e.onScroll()})),t&&l.B.instance.setHandler(this.handleChangeSettings),this.onScroll()}return Object.defineProperty(e,"instance",{get:function(){return this._instance||(this._instance=new this),this._instance},enumerable:!1,configurable:!0}),e.prototype.updatePlayerWidth=function(){for(var e=window.innerWidth,t=this.playerWidthSizes[0].width,n=this.playerWidthSizes.length;--n>=1;){var r=this.playerWidthSizes[n];if(e>=r.minWidth){t=r.width;break}}var i=this.playerWidth!==t;return this.playerWidth&&(this.playerWidth=t),i},e.prototype.enable=function(){if(a.A.getState().isModerator||this.enabled)return this;this.enabled=!0,this.scrollingEnabled=!0,this.updatePlayerWidth();var e=document.querySelector(".js-float-player-controls"),t=document.querySelector("#stream-layer");if(null===t||null===e)return this;var n=t.getBoundingClientRect();b("#layover-logo").hide(),o.A.instance.hideDMCAContainer(),o.A.instance.toggleVisibilitySocials(!1),clearTimeout(this.timerZMAX),this.timerZMAX=0,s(!0),b(t).addClass("zmax");var r=this.getAspectRatio(n),i=Math.floor(this.playerWidth),c=Math.floor(i/r);return b(e).css({position:"fixed",left:10,bottom:10,top:"auto",width:i,height:c}),b(t).css({position:"fixed",width:i,height:c,backgroundColor:"#fff"}),b(t).data("trstyle",b(t).attr("style")),b(e).addClass("player_gui"),b(t).css({top:"auto",left:15,bottom:15}),this},e.prototype.disable=function(){if(!this.enabled)return this;this.enabled=!1,b("body").removeClass("chat_collapsed");var e=document.querySelector(".js-float-player-controls"),t=document.querySelector("#stream-layer");if(null===t||null===e)return this;if(b(t).find("#stream-container").hasClass("__overlay")&&0===b("#bongacams_popup").find(".js-tap_popup").length&&b("#stream-container").removeClass("__overlay"),b(e).removeClass("player_gui"),b(t).attr("style",b(t).data("trstyle")),b(e).css({position:"",left:"",bottom:"",top:"",width:"",height:""}),b(t).css({position:"",backgroundColor:"",left:"",top:"",width:"",height:"",bottom:"",zIndex:""}),b(t).removeClass("zmax"),b("#layover-logo").show(),!a.A.getState().layover.visible){o.A.instance.showDMCAContainer();var n=document.getElementById("ResizablePane");n&&n.dispatchEvent(new CustomEvent(_.R.RESIZE_PLAYER)),o.A.instance.toggleVisibilitySocials(!0)}return s(!1),this},e.prototype.toggle=function(e){return e?this.enable():this.disable()},e}()},57733:function(e,t,n){"use strict";var r=n(89348),i=n(80554),o=n(41669),a=function(){function e(){var t=this;this.open=!0,this.setSizes=function(n){if(o("body").hasClass(r.l)){var i=o(".chat-column"),a=o(".memberNavigation");t.$controls.css({bottom:"",height:""}),o("#bModelNavigator").css({height:""}),n<=e.MIN_WIDTH?(i.addClass("min"),a.addClass("min_nav")):(i.removeClass("min"),a.removeClass("min_nav"))}},this.openPanel=function(){t.open=!0,t.togglePanel()},this.closePanel=function(){t.open=!1,t.togglePanel()},this.$panel=o(".chat-column, #bModelNavigator"),this.$chat=o("#bChat"),this.$controls=o(".stream-controls.right-panel"),this._init()}return Object.defineProperty(e,"instance",{get:function(){return this.globalInstance=this.globalInstance||new this},enumerable:!1,configurable:!0}),e.prototype._init=function(){var e=this;o.jlNamespace.$popupBlock&&o.bongacamsPopupClose();var t=window.innerHeight;this.setSizes(t),this.togglePanel(!0),o(window).on("resize.chatFullscreen",(function(){setTimeout((function(){e.setSizes(window.innerHeight)}),100)}))},e.prototype._animationState=function(e){this.$panel.toggleClass("animation",!e)},e.prototype._panelState=function(e){e=!!e,o("body").toggleClass("open-panel",e),this.$panel.on("transitionend.fspanel WebkitTransitionEnd.fspanel oTransitionEnd.fspanel",(function(){o("body").toggleClass("close-panel",!e);var t=document.getElementById("ResizablePane");t&&t.dispatchEvent(new CustomEvent(i.R.RESIZE_PLAYER))}))},e.prototype.togglePanel=function(e){void 0===e&&(e=!1),this._animationState(e),this._panelState(this.open)},e.MIN_WIDTH=700,e}();t.A=a},80375:function(e,t,n){"use strict";n.d(t,{qU:function(){return g},Kk:function(){return v},pI:function(){return m}});var r=n(15215),i=n(19826),o=n(18697),a=n(91651),s=n(52661),c=function(){function e(){var e=this;this._isLoaded=!1,this.inject=function(){return(0,r.sH)(e,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return this._isLoaded?[2]:[4,Promise.all(this._sources.map(this._injectSource))];case 1:return e.sent(),this._isLoaded=!0,[2]}}))}))},this._injectSource=function(t){return(0,r.sH)(e,void 0,void 0,(function(){var e,n,i,s,c,u;return(0,r.YH)(this,(function(r){switch(r.label){case 0:if(e=t.injectSequence,n=t.pathName,i=t.reTryCount,s=void 0===i?3:i,c=0,this._isInjected(n))return[2];r.label=1;case 1:if(++c>s)throw new Error("Load chat styles retries out");(0,o._b)("ChatResourceLoader try").warn("".concat(c,"/").concat(s),t),this._rejectSource(n),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,(0,a.i)("".concat(this._isDebug?"TEST__":"").concat(n),document.head,{"data-exclude":!0},e,void 0,!0)];case 3:return r.sent(),[2];case 4:return u=r.sent(),(0,o._b)("ChatResourceLoader try failed").warn("".concat(c,"/").concat(s),t,u),[3,5];case 5:return[3,1];case 6:return[2]}}))}))},this._isInjected=function(e){return document.head.querySelector("link[href*='".concat(e,"']"))},this._rejectSource=function(e){var t;return null===(t=document.head.querySelector("link[href*='".concat(e,"']")))||void 0===t?void 0:t.remove()}}return Object.defineProperty(e.prototype,"_isDebug",{get:function(){var e;return s.o.isDev&&!!(null===(e=window.localStorage)||void 0===e?void 0:e.getItem("__dev_chat_css"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_sources",{get:function(){return[{injectSequence:['link[rel="stylesheet"][href*="runetki"]','link[rel="stylesheet"][href*="arabic"]','link[rel="stylesheet"][href*="color-scheme"]'],pathName:"extra/chat.css"},i.A.getState().isWL&&{pathName:"extra/watermark_wl.css"}].filter((function(e){return!!e}))},enumerable:!1,configurable:!0}),e}(),u={},l=n(13907),d=function(){var e=this;this._isLoaded=!1,this._svgSources=["/images/sprite/bc/slot_machine_game_field.svg","/images/sprite/bc/layover4.svg","/images/sprite/bc/chat_games2.svg"],this.inject=function(){if(!e._isLoaded){e._isLoaded=!0;var t,n=(0,l.ip)("@cdn_host");t=e._svgSources.map((function(e){return n+e})),(Array.isArray(t)?t:t.split(";")).filter((function(e){return e&&!u[e]})).map((function(e){u[e]=!0;var t=new XMLHttpRequest;t.onload=function(){if(200===t.status){var n=t.responseText.trim();if(n.indexOf("50)console.error("Invalid SVG signature",e);else{var r=document.createElement("div");r.innerHTML=n,r.setAttribute("style","height:0;width:0;position:absolute;top:-9999px;"),r.setAttribute("data-enhance","false"),document.body.appendChild(r)}}else console.error("Failed to load the requested file: ".concat(t.status,": ").concat(t.statusText," ").concat(e))},t.open("GET",e),t.send()}))}}},f=function(){function e(){}var t;return Object.defineProperty(e,"_isAvailable",{get:function(){return!i.A.getState().isMobile&&!chat.options.chatDirect},enumerable:!1,configurable:!0}),t=e,e._styleLoader=new c,e._svgLoader=new d,e.requireAll=function(){return(0,r.sH)(void 0,void 0,void 0,(function(){var e;return(0,r.YH)(t,(function(t){switch(t.label){case 0:return this._isAvailable?this._pending?[2,this._pending]:(n=2e4,r=void 0,e={promise:new Promise((function(e,t){r=setTimeout((function(){return t(new Error("Chat fallback timeout exceeded"))}),n)})),cancel:function(){return clearTimeout(r)}},this._pending=Promise.all([this._styleLoader.inject(),this._svgLoader.inject()]).then(e.cancel),[4,Promise.race([this._pending,e.promise])]):[2];case 1:return t.sent(),[2]}var n,r}))}))},e}(),h=n(41669),p=!1,m=function(){for(var e=[],t=0;t .wrapper").find("h1").not(".online").remove(),(0,u.w)(),l.A.instance.playRequest()}!function(e){var t=m.A.getState(),n=t.chatHost;if(t.isMobile){var r=(0,a.mq)(t);if((!n||n.username!==e)&&r.length){var o=r.find((function(t){return t.username===e}));if(!o)return;(0,g.Lt)(o.f,_.U.AWAY)&&i.A.instance.showLayover("away",o.gender)}}}(e);return(0,f.pI)(!0,n,(function(){chat.currentChathost||chat.updateHistoryState(!1,void 0,e,t),location.reload()})),!0}},51130:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(41669);function i(e){for(var t in e)e.hasOwnProperty(t)&&r("#bw_"+t).html(e[t]||"--");(null==e?void 0:e.is_auto_quality)&&r("#bw_quality").html("auto:"+e.quality)}},41056:function(e,t,n){"use strict";n.d(t,{x:function(){return i}});var r=n(41669);function i(e){r("#bw_camscore").html(e)}},52628:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var r=null,i=function(e){r||(r=document.querySelector("#bw_avg_chat_show_rate")),r&&(r.innerText=e)}},70756:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(41669);function i(e){e&&(r("#bw_camscore_sng").html(e.sng),r("#bw_camscore_north_america").html(e.north_america),r("#bw_camscore_europe").html(e.europe),r("#bw_camscore_rest_of_world").html(e.rest_of_world))}},89938:function(e,t,n){"use strict";n.d(t,{H:function(){return i}});var r=n(41669);function i(e){for(var t in e)e.hasOwnProperty(t)&&("bitrate"===t&&e[t]&&(e[t]+=" kbps"),"fps"===t&&e[t]&&(e[t]+=" fps"),r("#vsi_"+t).html(e[t]||"--"))}},39761:function(e,t,n){"use strict";n.d(t,{c:function(){return v}});var r=n(15215),i=n(62614),o=n(80554),a=n(17402),s=n(19826),c=n(33954),u=n(35321),l=n(81714),d=function(){function e(){}return e.enqueue=function(e){var t=this;return new Promise((function(n,r){t.queue.push({promise:e,resolve:n,reject:r}),t.dequeue()}))},e.dequeue=function(){var e=this;if(this.workingOnPromise)return!1;var t=this.queue.shift();if(!t)return!1;try{this.workingOnPromise=!0,t.promise().then((function(n){e.workingOnPromise=!1,t.resolve(n),e.dequeue()})).catch((function(n){e.workingOnPromise=!1,t.reject(n),e.dequeue()}))}catch(e){this.workingOnPromise=!1,t.reject(e),this.dequeue()}return!0},e.queue=[],e.pendingPromise=!1,e}(),f=n(88035),h=n(41669),p=function(){return n.e(455).then(n.bind(n,37852))},m=function(){return n.e(453).then(n.bind(n,36339))},v=function(){function e(){this.queue=[],this.soundStarted=!1;var e=s.A.getState(),t=e.user,n=e.isMobile,r=e.isMobileApp;this.role=l.A.isModel(t.role)?"model":"member",this._isMobile=n,"moderator"!==t.role&&(this.isMobile&&"model"!==this.role?this.container=h("#chat_prompt_container").get(0):this.container=document.querySelector(".js-notificationMessages")||document.body),r&&(this.container=document.createElement("div"),document.body.append(this.container)),this.rerenderPrompt()}return e.prototype.toggleRequestTick=function(){var e=this;"model"===this.role&&(this.soundStarted&&u.A.instance.stop(u.A.TICK_TACK),setTimeout((function(){e.queue.find((function(e){return"request"===e.request.status&&"model"!==e.request.user.role}))&&(u.A.instance.play(u.A.TICK_TACK),e.soundStarted=!0)}),100))},e.prototype.rerenderPrompt=function(){return(0,r.sH)(this,void 0,void 0,(function(){var e,t,s;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return this.container?((0,f.w)(o.R.CHAT_NOTIFICATIONS_RERENDER,(null===(t=this.queue)||void 0===t?void 0:t.length)||0),[4,d.enqueue((function(){return n.e(454).then(n.bind(n,58131))}))]):[2];case 1:return e=r.sent(),this.rootNode=null===(s=i.w.renderNode((0,a.createElement)(e.default,{requestQueue:this.queue,role:this.role,owner:this}),this.container))||void 0===s?void 0:s.element,this.toggleRequestTick(),this.repositionPrompt(),[2]}}))}))},Object.defineProperty(e,"instance",{get:function(){return this._instance?this._instance:this._instance=new this},enumerable:!1,configurable:!0}),e.prototype.getKey=function(e){return"".concat(e.user.username,"_").concat(e.type)},e.prototype.updateQueue=function(e,t){var n=Date.now(),r=e.type&&"group"!==e.type?this.getKey(e):"group",i=this.queue.indexOf(this.queue.find((function(e){return e.key===r})));-1!==i?this.queue[i]={request:e,key:r,createTs:this.queue[i].createTs,updateTs:n,extra:t}:this.queue.push({request:e,key:r,createTs:n,updateTs:n,extra:t})},e.prototype.unmountJoinChat=function(){this.rootNode&&i.w.unmount(this.rootNode),h("#bChatPrompt").remove()},e.prototype.renderJoinChat=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t,n,o;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return this.unmountJoinChat(),t=function(){return Promise.resolve()},"private"===e?t=m:"group"===e&&(t=p),this.rootNode=null,[4,d.enqueue((function(){return t()}))];case 1:return n=r.sent(),i.w.unmount(this.rootNode),n&&(this.rootNode=null===(o=i.w.renderNode((0,a.createElement)(n.default,null),this.container))||void 0===o?void 0:o.element),[2]}}))}))},e.prototype.showPrompt=function(e,t){this.updateQueue(e,t),"model"===this.role&&this.isMobile&&this.queue.length>1&&this.cancelAllModel2MemberRequests(),"model"!==this.role&&this.isMobile&&this.queue.length>1&&this.cancelMember2ModelRequest(this.queue[0]),this.rerenderPrompt()},e.prototype.hide=function(e){this.queue=this.queue.filter((function(t){return t.key!==e.key})),this.rerenderPrompt().then((function(){document.dispatchEvent(new CustomEvent(o.R.CHAT_INVITE_CHANGE_OPENED))}))},e.prototype.hideModelsPrivateRequests=function(){var e=this;this.queue.filter((function(e){var t=e.request;return"private"===t.type&&"request"===t.status&&"model"===t.user.role})).map((function(t){return e.hide(t)}))},e.prototype.sendModelShowResponse=function(e,t){var n=this;this.hide(e),chat.sendShowResponse(e.request,t),"accept"===t&&(this.queue.filter((function(e){return"request"===e.request.status&&"member"===e.request.user.role})).map((function(e){chat.sendShowResponse(e.request,"decline"),n.hide(e)})),this.hideModelsPrivateRequests())},e.prototype.repositionPrompt=function(){if(this.rootNode&&!("model"!==this.role&&this.isMobile||"model"===this.role&&!this.isMobile)){s.A.getState();var e,t=h("#bChat"),n=t.find(".history:visible");if("model"===this.role){if((e=this.isMobile?t:h("body")).length){var i=e.offset(),o=e.get(0).clientWidth||e.width(),a=e.get(0).offsetWidth||e.width(),u={left:i.left+"px"};c.isRTLCulture&&(u={right:h(window).width()-i.left-a+"px"});var l=h(".main_wrapper").length?h(".main_wrapper")[0].scrollTop:0;h(this.rootNode).css((0,r.Cl)({width:o+"px",top:i.top+l+"px"},u))}}else{var d=h(".chat-tab .chat_tabs_container li.selected").index();if(!(e=n.length?n:h(".chat-tab table tr.js-chat_tabs_content div:eq(".concat(d,") > div"))).length)return;var f=e.get(0).clientWidth||e.width();h(this.rootNode).css({width:f+"px"})}}},Object.defineProperty(e.prototype,"isMobile",{get:function(){return this._isMobile},enumerable:!1,configurable:!0}),e.prototype.cancelAllModel2MemberRequests=function(){var e=this;this.queue.filter((function(e){var t=e.request;return"private"===t.type&&"request"===t.status&&"model"===t.user.role})).map((function(t){return e.sendModelShowResponse(t,"cancel")}))},e.prototype.hidePrompt=function(e){this.hide({key:this.getKey(e)})},e.prototype.cancelMember2ModelRequest=function(e){"model"!==this.role&&this.isMobile&&"group"===e.key&&chat.removeAcceptGroupChat(),chat.cancelShowRequest(e.request),this.hide(e)},e.prototype.cancelAllMember2ModelRequests=function(){var e=this;this.queue.filter((function(e){return"request"===e.request.status&&"member"===e.request.user.role})).map((function(t){return e.cancelMember2ModelRequest(t)}))},e.prototype.hideAllModel2MemberDeclines=function(){var e=this;this.queue.filter((function(e){return"decline"===e.request.status&&"member"===e.request.user.role})).map((function(t){return e.hide(t)}))},e.prototype.rerenderPromptContainer=function(){this.queue.length&&this.rerenderPrompt()},e}()},87276:function(e,t,n){"use strict";n.d(t,{N:function(){return u}});var r=n(15215),i=n(38654),o=n(90136),a=n(50172),s=n(17402),c=n(26616),u=function(e){function t(t){var n=e.call(this,t)||this;n.isSpaRouterEnabled=!1,n.isComponentMounted=!1;var r=t.children;return n.state={component:s.Children.toArray(r)[0]||null},n.isSpaRouterEnabled=i.h.isEnabled("spa_router"),n}return(0,r.C6)(t,e),t.prototype.componentDidMount=function(){this.isComponentMounted=!0,this.loadComponent(this.props)},t.prototype.componentWillUnmount=function(){this.isComponentMounted=!1},t.prototype.loadComponent=function(e){var t=this,n=e.props,r=e.getComponent,i=e.onLoad,o=e.onError;r&&r().then((function(e){t.isComponentMounted&&t.setState({component:(0,s.createElement)(e.default,n||{})},i)})).catch(o)},t.prototype.render=function(){var e=this.state.component;return!e&&this.isSpaRouterEnabled?(0,a.h)(o.o,null):e||null},t.defaultProps={onLoad:c.noop,onError:c.noop},t}(a.uA)},77858:function(e,t,n){"use strict";var r;n.d(t,{L:function(){return r}}),function(e){e.BOTTOM_LEFT="bottomLeft",e.BOTTOM_RIGHT="bottomRight",e.TOP_LEFT="topLeft",e.TOP_RIGHT="topRight"}(r||(r={}))},76122:function(e,t,n){"use strict";n.d(t,{t:function(){return f}});var r=n(50172),i=n(8546),o=n(17402),a=n(80554),s=n(22706),c=n(77858),u=function(e){return[c.L.BOTTOM_LEFT,c.L.BOTTOM_RIGHT].includes(e)},l=function(e){return e?e.getBoundingClientRect():{width:0,left:0,right:window.innerWidth,top:0,bottom:window.innerHeight}},d=function(e){var t=e.elRef,n=e.parent,r=e.viewport,i=e.isMobile,a=void 0!==i&&i,s=e.isCentered,d=void 0!==s&&s,f=e.position,h=void 0===f?c.L.TOP_RIGHT:f,p=(0,o.useCallback)((function(e,n,r,i){t.current.style.top=null===e?"auto":"".concat(e,"px"),t.current.style.bottom=null===r?"auto":"".concat(r,"px"),d&&a?(t.current.style.left="".concat(22,"px"),t.current.style.right="".concat(22,"px")):(t.current.style.left=null===i?"auto":"".concat(i,"px"),t.current.style.right=null===n?"auto":"".concat(n,"px"))}),[t,d]),m=(0,o.useCallback)((function(e,t,n,r,i){var o=r.left,s=r.right,u=r.top,l=r.bottom,f=i.left,h=i.right,m=i.top,v=s-t+f,g=o+h,_=l-n+i.bottom,b=u+m;switch(d&&!a&&(v=Math.max(o+f,5),g=s+h),v+t+10>window.innerWidth&&(v=window.innerWidth-t-20),e){case c.L.BOTTOM_LEFT:p(_,null,null,v);break;case c.L.BOTTOM_RIGHT:p(_,null,null,g);break;case c.L.TOP_LEFT:p(b,null,null,v);break;case c.L.TOP_RIGHT:default:p(b,null,null,g)}}),[d,a,p]),v=(0,o.useCallback)((function(){var e;if(null===(e=t.current)||void 0===e?void 0:e.offsetWidth){var i=t.current.offsetWidth,o=t.current.offsetHeight,s=function(e,t,n,r){var i=l(n),o=i.left,a=i.right,s=i.top,c=i.bottom,u=i.width;return{width:u,left:r?o-(e-u)/2:a-e,right:r?a-(e-u)/2:o+e,top:s-t-5,bottom:c+t+5}}(i,o,n,d&&!a),f=function(e,t){var n=l(t),r=n.left,i=n.right,o=n.top,a=n.bottom,s=n.width,c=e.left,u=e.right,d=e.top,f=e.bottom;return{width:s,left:Math.min(0,i-u),right:Math.max(0,r-c),top:Math.max(0,o-d),bottom:Math.min(0,a-f)}}(s,r),p=f.left,v=f.right,g=f.top,_=f.bottom,b=h;return(v||p)&&(Math.abs(v)o&&l<=o&&(u+=d?d.clientHeight:0)}if(u>0&&!t.getAttribute(e.dataVariableHeight)&&(n.style.height="".concat(u,"px"),n.style.overflowY="scroll"),t.style.width||(t.style.width="".concat(t.getBoundingClientRect().width,"px")),n.offsetWidthwindow.innerHeight){var p=window.innerHeight-(f.top+h);n.style.height="".concat(p,"px"),n.style.overflow="auto"}else n.style.height=null,n.style.overflow=null}else{var m=i.BrowserDetect.isIOS()?(a=t,s=document.body.getBoundingClientRect(),{top:(c=a.getBoundingClientRect()).top-s.top,left:c.left-s.left}):t.getBoundingClientRect(),v=m.left,g=m.top;n.style.top="".concat(g+t.offsetHeight,"px"),n.style.left="".concat(v,"px")}t.dispatchEvent(e.onOpen)},e.select=function(t,n){if(void 0===n&&(n=""),t.getAttribute(e.dataContext)){var r=t.querySelector('input[name="'.concat(t.getAttribute(e.dataContext),'"]'));r&&(r.value=n,e.customChange&&r.dispatchEvent(e.customChange))}e.closeSelect()},e.setViewer=function(t){var n=e.parents(t,e.selector),r=n&&n.querySelector(".".concat(e.viewer));if(n&&r){var i=n.querySelector(".".concat(e.selected)),o=n.querySelector("[".concat(e.dataValue,'="').concat(t.value,'"]'))||n.querySelector(".".concat(e.list)).children[0];r.innerHTML=o.innerHTML,i&&i.classList.remove(e.selected),o&&o.classList.add(e.selected)}},e.onScroll=function(){var t=document.querySelector(".".concat(e.selector,".").concat(e.open));t&&!t.getAttribute(e.dataVariableHeight)&&e.closeSelect()},e.parents=function(t,n){var r=null;if(!t||!t.classList||t===document.body)return r;try{r=t.classList.contains(n)?t:e.parents(t.parentNode,n)}catch(e){}return r},e.closeSelect=function(){var t=document.querySelector(".".concat(e.selector,".").concat(e.open));if(t){var n=t.querySelector(".".concat(e.list));n&&(n.style.width="",n.style.height="",n.style.overflow=""),t.classList.remove(e.open),t.dispatchEvent(e.onClose)}},e.selector="cszb_select",e.viewer="cszb_select_viewer",e.list="cszb_select_options",e.option="cszb_select_option",e.selected="selected",e.open="open",e.customChange=null,e.onClose=null,e.onOpen=null,e.dataCount="data-count",e.dataContext="data-context",e.dataValue="data-value",e.dataBottomOffset="data-bottom-offset",e.dataVariableHeight="data-variable-height",e}(),a=o},21492:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(50172),i=n(17402),o=n(8546),a=(0,i.memo)((function(e){var t,n=e.className,a=e.children,s=e.image,c=e.style,u=e.type,l=e.isDefaultBackgroundEnabled,d=e.onClick,f=function(){var e=(0,i.useState)(!1),t=e[0],n=e[1];return{actions:{handleOnErrorLoading:function(e){e.currentTarget.onerror=null,n(!0)},handleOnLoadSuccess:function(){n(!1)}},states:{isErrorState:t}}}(),h=f.actions,p=h.handleOnErrorLoading,m=h.handleOnLoadSuccess,v=f.states.isErrorState;return s?(0,r.h)("div",{className:(0,o.n)((t={bc_picture_stub:!0,__broken:v,__transparent:!l},t[String(n)]=n,t[String(u)]=u,t)),style:c,onClick:d},Boolean(s.src)&&(0,r.h)("img",{className:"ps_image",alt:null==s?void 0:s.alt,src:s.src,onError:p,onLoad:m}),a):null}))},92276:function(e,t,n){"use strict";n.d(t,{I:function(){return i}});var r=n(15215),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootComponentRef=function(e){return t.rootComponent=e},t}return(0,r.C6)(t,e),t}(n(50172).uA)},30322:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var r=n(15215),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootComponentRef=function(e){return t.rootComponent=e},t}return(0,r.C6)(t,e),t}(n(17402).PureComponent)},26580:function(e,t,n){"use strict";var r=n(15215),i=n(50172),o=(0,n(17402).forwardRef)((function(e,t){var n=e.className,o=e.group,a=e.icon,s=(e.key,e.url),c=(0,r.Tt)(e,["className","group","icon","key","url"]),u=s?"/images/".concat(s).concat(a):a;return(0,i.h)("svg",(0,r.Cl)({xmlns:"http://www.w3.org/2000/svg"},c,{ref:t,className:o}),(0,i.h)("use",{className:n||"",href:u,xlinkHref:u}))}));t.A=o},58491:function(e,t,n){"use strict";n.d(t,{c:function(){return f}});var r=n(17402),i=n(38588),o=function(e){return String(e).padStart(2,"0")},a=n(18697),s=n(13907),c=n(52276),u=n(28534),l=n(41669),d=function(e){var t=Date.now()+window.serverTimeDeltaMs;return e>0?e-~~(t/1e3):0},f=function(e,t,n,f){var h=(0,r.useState)(d(e)),p=h[0],m=h[1],v=(0,r.useRef)(null),g=(0,r.useCallback)((function(){(0,a._b)("Sidebar timer stop").log(),v.current&&clearInterval(v.current)}),[e]);(0,r.useLayoutEffect)((function(){if(g(),e){var t=function(){var t=d(e);return m(t),t},n=t();n&&((0,a._b)("Sidebar timer start").log(n),v.current=window.setInterval(t,1e3))}return(0,a._b)("Sidebar timer mount").log(),function(){(0,a._b)("Sidebar timer unmount").log()}}),[e]),(0,i.A)((function(){p<1&&g()}),[p]);var _=(0,r.useCallback)((function(){n||f?location.assign((0,s.ip)("@cybersale")):t?l("a[rel=buy_tokens]").first().trigger("click"):(0,u.y)(c.L.JOIN_POPUP_MANUAL,{force:!0})}),[t,n,f]);return{hours:o(p>0?Math.floor(p/3600):0),minutes:o(p>0?Math.floor(p/60%60):0),seconds:o(p>0?Math.floor(p%60):0),onBannerClick:_}}},1303:function(e,t,n){"use strict";n.d(t,{G:function(){return a},h:function(){return s}});var r=n(15215),i=n(19826),o={title:"",content:"",contentProps:null,buttons:[],className:"",onClose:null,isHtml:!1},a=i.A.action((function(e,t){return{confirmPopup:(0,r.Cl)((0,r.Cl)((0,r.Cl)({},o),t),{opened:!0})}})),s=i.A.action((function(e){return{confirmPopup:(0,r.Cl)((0,r.Cl)({},o),{opened:!1})}}))},29300:function(e,t,n){"use strict";n.d(t,{e:function(){return f}});var r=n(15215),i=n(62614),o=n(8546),a=n(50172),s=n(98614),c=n(19826),u=n(1303),l=n(22847),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClose=function(e){var n=t.props.onClose;e.preventDefault(),n&&n(),(0,u.h)()},t}return(0,r.C6)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.opened,i=t.title,s=t.buttons,c=t.content,u=t.isHtml,d=t.className,f=t.contentProps,h="function"!=typeof c;return n?(0,a.h)("div",null,(0,a.h)("div",{className:(0,o.n)((e={bc_cmn_confirm_wrp:!0},e[d]=Boolean(d),e))},(0,a.h)("div",{className:"bcc_popup_overlay",onClick:this.handleClose}),(0,a.h)("div",{className:"bc_confirm_popup"},i&&(0,a.h)("div",{className:"bcc_title"},i),(0,a.h)("div",{className:"bcc_content"},!h&&"function"==typeof c&&(0,a.h)(c,(0,r.Cl)({},f)),h&&u&&(0,a.h)(l.E,{tagName:"span",html:c}),h&&!u&&c),(0,a.h)("div",{className:"bcc_actions"},s.map((function(e){var t;return(0,a.h)("button",{key:e.label,style:e.grow||1===s.length?{flexGrow:e.grow||0}:void 0,className:(0,o.n)((t={bcc_button:!0},t[e.className]=Boolean(e.className),t)),onClick:e.onClick},e.label)})))))):null},t=(0,r.Cg)([(0,s.Ng)((function(e){return e.confirmPopup}))],t)}(a.uA);function f(){i.w.append((0,a.h)(s.Kq,{store:c.A},(0,a.h)(d,null)),document.body)}},60969:function(e,t,n){"use strict";n.d(t,{q:function(){return h}});var r,i=n(80554),o=n(15215),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.C6)(t,e),t.STATIC="static",t.MOVING="moving",t.titles=((r={})[t.STATIC]=__("static"),r[t.MOVING]=__("moving"),r),t}(n(53767).A),s=a,c=n(33296),u=n(19826),l=n(41669),d=(0,c.Hs)(),f=!1,h=function(){var e=window.chat;if(e&&e.performerData&&e.performerData.dmcaSecurity&&!e.userData.isPerformer){var t,n,r=e.isMobile?.5:1,o=e.performerData.dmcaSecurity,a=document.querySelector("#dmca_security_container"),u=document.querySelector("#dmca_security"),l=document.getElementById("ResizablePane")||document.getElementById("stream-container");if(!f&&l&&(new ResizeObserver(h).observe(l),l.addEventListener(i.R.RESIZE_PLAYER,(function(){h()})),f=!0),u&&a){if(!a.offsetWidth||!a.offsetHeight)return d.stop(),void p(a);var m=(0,c.Gs)(u,a,o.marginLeft,o.marginTop),v=m.posX,g=m.posY,_=(t={x:v,y:g},n=(0,c.gW)(a,u),{x:Math.max(n.left,Math.min(t.x,n.right)),y:Math.max(n.top,Math.min(t.y,n.bottom))}),b=_.x,y=_.y;if((0,c.yY)(u,{x:b,y:y}),o.mode!==s.MOVING)return;d.stop(),d.start({targets:{el:u,container:a},options:{pattern:o.pattern,direction:o.direction,velocity:(0,c.Ni)(o.speed*r)}})}}},p=function(e){var t=l("#bChat"),n=function(){return t.off("onPerformerStatusChange.DMCA")};n(),t.on("onPerformerStatusChange.DMCA",(function(){var t,r,i,o="public"===(null===(t=null===window||void 0===window?void 0:window.chat)||void 0===t?void 0:t.performerStatus),a="public"===(null===(i=null===(r=u.A.getState())||void 0===r?void 0:r.chatHost)||void 0===i?void 0:i.showType),s=o||a;Boolean(null==e?void 0:e.offsetHeight)&&Boolean(null==e?void 0:e.offsetWidth)&&!d.isRunning()&&s&&(h(),n())}))}},12731:function(e,t,n){"use strict";n.d(t,{x:function(){return i}});var r=n(41669);function i(){if(chat.performerData.dmcaSecurity){var e=chat.isMobile?r("#stream-container"):r("#ResizablePane"),t=chat.isMobile?.5:1,n="\n right: 0;\n bottom: 0;\n direction: ltr;\n opacity: ".concat(Math.min(chat.performerData.dmcaSecurity.opacity/100,1),";"),i="\n background-image: url(".concat(chat.options.baseUrl,"/").concat(chat.performerData.dmcaSecurity.image,");\n width: ").concat(chat.performerData.dmcaSecurity.width*t,"px;\n height: ").concat(chat.performerData.dmcaSecurity.height*t,"px;");e.prepend('
')}}},67780:function(e,t,n){"use strict";n.d(t,{gt:function(){return l},hT:function(){return u},ys:function(){return c}});var r=n(15215),i=n(98614),o=n(19826),a=function(e){return{activateFanBoost:function(e,t,n,i){return(0,r.Cl)((0,r.Cl)({},e),{fanBoost:(0,r.Cl)((0,r.Cl)({},e.fanBoost),{model:t,member:n,time:i})})},deactivateFanBoost:function(e){var t=(0,r.Cl)({},e.fanBoost);return delete t.model,delete t.member,(0,r.Cl)((0,r.Cl)({},e),{fanBoost:t})},updateFanBoost:function(e,t){return(0,r.Cl)((0,r.Cl)({},e),{fanBoost:(0,r.Cl)((0,r.Cl)({},e.fanBoost),t)})}}},s=(0,i.i0)(a,o.A),c=s.activateFanBoost,u=s.deactivateFanBoost,l=s.updateFanBoost},67356:function(e,t,n){"use strict";n.d(t,{K:function(){return i},r:function(){return r}});var r=60,i=500},12530:function(e,t,n){"use strict";var r=n(62614),i=n(19826),o=n(50172),a=n(67780),s=n(98614),c=n(22706),u=n(67356),l=n(92266),d=n(41669),f=function(){function e(){}return e.restore=function(){var t=i.A.getState().fanBoost;if(null==t?void 0:t.model){var n=(e.timeToStop-(new Date).getTime())/1e3;t.model===chat.performerData.username&&n>0?(e.timeToStop=null,e.activate(t.member,n)):e.timeToStop=null}},e.processNotice=function(t,n){if(c.BrowserDetect.isSafari_IOS()){var r=60-(Date.now()-window.serverTimeDeltaMs-n)/1e3;r>0&&e.activate(t,r)}else e.activate(t)},e.onUserData=function(){var t=chat.performerData.boost;if(e.usersQueue=[],void 0!==t){var n=t.memberName,r=t.time;e.activate(n,r)}else i.A.getState().fanBoost.model&&e.deactivate()},e.rootNode=null,e.animationTimer=null,e.animationTime=0,e.timeToStop=null,e.usersQueue=[],e.activate=function(t,n){var c;if(void 0===n&&(n=u.r),!chat||!chat.performerData)return!1;var f=i.A.getState().fanBoost;(null==f?void 0:f.model)&&n===u.r?e.usersQueue.push(((c={})[t]=n,c)):(e.timeToStop=(new Date).getTime()+1e3*n,(0,a.hT)(),setTimeout((function(){(0,a.ys)(chat.performerData.username,t,n)}),200),!e.rootNode&&i.A.getState().isMobile&&(e.rootNode=r.w.appendInstead((0,o.h)(s.Kq,{store:i.A},(0,o.h)(l.A,null)),d("#video-panel-wrap .video-panel").get(0),d(".js-fan_boosted_block").get(0))),e.animationTime=n,clearTimeout(e.animationTimer),e.animationTimer=setTimeout((function(){e.deactivate()}),1e3*e.animationTime))},e.deactivate=function(){if(e.timeToStop=null,e.animationTime=0,(0,a.hT)(),e.usersQueue.length>0){var t=e.usersQueue.shift(),n=Object.keys(t)[0];e.activate(n,t[n])}},e}();t.A=f,d((function(){d(document).on("chat:initialized",(function(){d("#bChat").on("onUserData",(function(){return f.onUserData()}))})),d(document).on("visibilitychange",(function(){"visible"===document.visibilityState&&f.restore()}))}))},92266:function(e,t,n){"use strict";var r=n(15215),i=n(15051),o=n(50172),a=n(98614),s=n(87276),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={model:t.fanBoost.model},n}return(0,r.C6)(t,e),t.prototype.shouldComponentUpdate=function(e,t){return t.model!==this.state.model||!(0,i.a)(e.fanBoost,this.props.fanBoost)},t.prototype.componentWillReceiveProps=function(e){e.fanBoost.model!==this.state.model&&this.setState({model:e.fanBoost.model})},t.prototype.render=function(){return!!this.state.model&&(0,o.h)(s.N,{getComponent:function(){return n.e(143).then(n.bind(n,26263))}})},t=(0,r.Cg)([(0,a.Ng)("fanBoost")],t)}(o.uA);t.A=c},22315:function(e,t,n){"use strict";n.r(t),n.d(t,{initFollowings:function(){return l},setFollowersLoaded:function(){return d},setFollowingsLoaded:function(){return f},updateFollowersCount:function(){return h},updateFollowings:function(){return u}});var r=n(15215),i=n(98614),o=n(1361),a=n(19826),s=function(e){return{init:function(e,t){return(0,r.Cl)((0,r.Cl)({},e),{followings:t})},update:function(e,t){var n,i=t.username,o=t.displayName,a=t.isFollowing,s=t.isFollower,c=t.isNotify,u=t.isFollowRequest,l=t.isFollowingRequest;if(a||s||u||l)return(0,r.Cl)((0,r.Cl)({},e),{followings:(0,r.Cl)((0,r.Cl)({},e.followings),(n={},n[i]={username:i,displayName:o,isFollowing:a,isFollower:s,isNotify:c,isFollowRequest:u,isFollowingRequest:l},n))});var d=(0,r.Cl)({},e.followings);return delete d[i],(0,r.Cl)((0,r.Cl)({},e),{followings:d})},updateFollowersCount:function(e,t){var n=null;return t&&(n=e.followPage.menu.items.map((function(e){return e.type===o.M.FOLLOWERS&&(e.counter=t),e}))),(0,r.Cl)((0,r.Cl)({},e),{user:(0,r.Cl)((0,r.Cl)({},e.user),{newFollowersCount:t}),followPage:(0,r.Cl)((0,r.Cl)({},e.followPage),{menu:(0,r.Cl)((0,r.Cl)({},e.followPage.menu),{items:null!=n?n:e.followPage.menu.items})})})},setFollowersLoaded:function(e){return(0,r.Cl)((0,r.Cl)({},e),{isFollowersLoaded:!0})},setFollowingsLoaded:function(e){return(0,r.Cl)((0,r.Cl)({},e),{isFollowingsLoaded:!0})}}};t.default=14!=n.j?s:null;var c=(0,i.i0)(s,a.A),u=c.update,l=c.init,d=c.setFollowersLoaded,f=c.setFollowingsLoaded,h=c.updateFollowersCount},86938:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});var r=n(13907),i=function(e){var t=e.text,n=e.className,i=e.type,o=void 0===i?"follow":i,a=e.buttons,s="";if(a){var c=[];a.forEach((function(e){return c.push('').concat(e.text,""))})),s=''.concat(c.join(""),"")}return'\n \n \n \n \n \n ').concat(t,"\n \n \n ").concat(s,"\n \n \n ")}},77482:function(e,t,n){"use strict";n.d(t,{E$:function(){return a},qs:function(){return i},tO:function(){return o}});var r=n(19826);function i(e){var t;if(!e)return!1;var n=function(e){try{var t=localStorage.getItem("localFollowings")?JSON.parse(localStorage.getItem("localFollowings")):{};if(t.hasOwnProperty(e))return{mutual:t[e]}}catch(e){}return!1}(e);if(n)return n.mutual;var i=null===(t=r.A.getState().followings)||void 0===t?void 0:t[e];return i&&i.isFollowing&&i.isFollower}function o(e){var t,n=null===(t=r.A.getState().followings)||void 0===t?void 0:t[e];return Boolean(n&&n.isFollowRequest)}function a(e){var t,n=null===(t=r.A.getState().followings)||void 0===t?void 0:t[e];return Boolean(n&&n.isFollowing)}},68811:function(e,t,n){"use strict";n.d(t,{F:function(){return h},n:function(){return f}});var r=n(15215),i=n(19826),o=n(12957),a=n(22315),s=n(13907),c=n(96998),u=n(41669),l=[],d=!1;function f(e){var t=i.A.getState(),n=t.isModerator,r=t.isAuthenticated,o=(0,s.ip)("@api_follower_get_follow_data");o&&!n&&r&&("function"==typeof e&&l.push(e),d||(d=!0,(0,c.mN)(o,{onSuccess:function(e){var t,n={};for(null===(t=null==e?void 0:e.followData)||void 0===t||t.forEach((function(e){var t=e.isFollowRequest,r=e.isFollower,i=e.username,o=e.isMutual;n[i]={username:i,isFollowing:o||!t,isFollower:o||!!r,isFollowRequest:!!t}})),(0,a.initFollowings)(n),(0,a.setFollowingsLoaded)(),d=!1;l.length;)l.pop()();localStorage.removeItem("localFollowings")}})))}function h(e){d||(d=!0,u.get((0,s.ip)("@ajax_get_follower_usernames"),(function(t){var n=(0,r.Cl)({},i.A.getState()).followings;(0,o.loop)(0,t.length,(function(e){var r=t[e];n[r]?n[r].isFollower=!0:n[r]={username:r,isFollower:!0,isFollowing:!1}})),(0,a.initFollowings)(n),(0,a.setFollowersLoaded)(),d=!1,e&&e()})))}},70726:function(e,t,n){"use strict";var r=n(15215),i=n(50172),o=n(12957),a=n(12903),s=n(42169),c=n(68692),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.errorText=__("Error"),t.getFormAlert=function(e){var n=t.getState(),r=n.error,o=n.isValid,a=n.isGlobal;return(0,i.h)(c.A,{isGlobal:a,error:!!e||!!r||!o,errorText:e||r||t.errorText})},t.handleSubmitForm=function(e){e.preventDefault(),e.stopImmediatePropagation(),t.beforeSubmit()},t.getValue=function(e){var t=e.target,n=t.value;if(t.multiple){var r=e.target.options;for(var i in n=[],r)if(r.hasOwnProperty(i)){var o=r[i];o.selected&&n.push(o.value)}}return n},t.handleChangeFieldByName=function(e){var n=e.target;if(n&&n.name){var r=t.findField(n.name),i=r[0],o=r[1];t.setFieldValue(t.getValue(e),i.name,o)}},t}return(0,r.C6)(t,e),t.prototype.generateFieldValue=function(e,t,n,r){var i;void 0===r&&(r=!1);var o=n?"".concat(n,"[").concat(t,"]"):t,a=e;return e instanceof Array&&e[0]&&e[0].file instanceof File&&(a=e.filter((function(e){return!e.error})).map((function(e){return e.file}))),Array.isArray(a)&&!r?this.generateArrayValue(o,a):("string"==typeof a&&(a=a.trim()),(i={})[o]="number"==typeof a?a:a||"",i)},t.prototype.generateArrayValue=function(e,t){var n=this,i={};return(0,o.loopv)(t,(function(t,o){Array.isArray(t)?i=(0,r.Cl)((0,r.Cl)({},i),n.generateArrayValue("".concat(e,"[").concat(o,"]"),t)):i["".concat(e,"[").concat(o,"]")]=t||""})),i},t.prototype.generateData=function(e){var t=this;void 0===e&&(e=[]);var n=this.getState().fields,i={};return(0,o.loopv)(n,(function(n,a){if(Array.isArray(n)){if(-1!==e.indexOf(a))return;(0,o.loopv)(n,(function(n){-1===e.indexOf(n.name)&&(i=(0,r.Cl)((0,r.Cl)({},i),t.generateFieldValue(n.value,n.name,a,n.asArray)))}))}else{if(-1!==e.indexOf(a))return;i=(0,r.Cl)((0,r.Cl)({},i),t.generateFieldValue(n.value,a,null,n.asArray))}})),i},t.prototype.validateField=function(e,t){var n=this,r=this.getState().fields,i=!0;if(t){if(!Array.isArray(r[t]))throw new Error("[".concat(this.constructor.name,"] Field '").concat(e,"' not found in '").concat(t,"' entity"));var s=[];r[t].map((function(t){t.name===e&&((0,a.tf)(t,n.props,n.state)&&(t.error=""));s.push(t)})),r[t]=s}else{(0,a.tf)(r[e],this.props,this.state)&&(r[e].error="")}(0,o.loopv)(r,(function(e){Array.isArray(e)?(0,o.loopv)(e,(function(e){i=i&&!e.error})):i=i&&!e.error})),this.setState({isValid:i,success:!1,fields:r})},t.prototype.setFieldValue=function(e,t,n){return(0,r.sH)(this,void 0,void 0,(function(){var i,o,a;return(0,r.YH)(this,(function(s){switch(s.label){case 0:if(i=this.getState().fields,n){if(!Array.isArray(i[n]))throw new Error("[".concat(this.constructor.name,"] Field '").concat(t,"' not found in '").concat(n,"' entity"));a=[],i[n].map((function(n){n.name===t&&(n.value=e,o=n),a.push(n)})),i[n]=a}else{if(!i.hasOwnProperty(t)||Array.isArray(i[t]))throw new Error("[".concat(this.constructor.name,"] Field '").concat(t,"' not found or it's equal existing entity"));i[t].value=e,o=i[t]}return[4,this.setState((function(e){return(0,r.Cl)((0,r.Cl)({},e),{fields:i})}))];case 1:return s.sent(),[2,o]}}))}))},t.prototype.updateField=function(e,t){var n=this,r=this.getState().fields,i=!1;if(t){if(!Array.isArray(r[t]))throw new Error("[".concat(this.constructor.name,"] Field '").concat(e.name,"' not found in '").concat(t,"' entity"));var o=[];r[t].map((function(t){t.name===e.name&&(t=(0,s.h1)(t,e)),o.push(t),e.value&&(i=!0)})),r[t]=o}else{if(!r.hasOwnProperty(e.name)||Array.isArray(r[e.name]))throw new Error("[".concat(this.constructor.name,"] Field '").concat(e.name,"' not found or it's equal existing entity"));r[e.name]=(0,s.h1)(r[e.name],e),e.value&&(i=!0)}this.setState({fields:r},(function(){i&&n.validateField(e.name,t)}))},t.prototype.validateForm=function(){return this.state.isValid},t.prototype.submit=function(e){this.submitAction(e)},t.prototype.beforeSubmit=function(){this.submit(this.generateData())},t.prototype.getState=function(){return(0,r.Cl)({},this.state)},t.prototype.findField=function(e){var t=this.getState().fields;for(var n in t)if(t.hasOwnProperty(n)){var r=Array.isArray(t[n]);if(n===e){if(r)throw new Error("[".concat(this.constructor.name,"] Field '").concat(e,"'"));return[t[n]]}if(r){var i=t[n].find((function(t){return t.name===e}));if(i)return[i,n]}}throw new Error("[".concat(this.constructor.name,"] Field '").concat(e,"' not found"))},t.prototype.onError=function(e){this.setState(this.parseErrors(e))},t.prototype.parseErrors=function(e){if("string"==typeof e)return(0,r.Cl)((0,r.Cl)({},this.state),{isValid:!1,error:e,isGlobal:!0});var t=(0,r.Cl)((0,r.Cl)({},this.state),{isValid:!1,isGlobal:!!e.global});return"object"!=typeof e||void 0===e.status?t:(0,a.fw)(t,e)},t.prototype.getFirstError=function(e){var t=null;return(0,o.loopv)(e,(function(e){Array.isArray(e)?(0,o.loopv)(e,(function(e){e.error&&!t&&(t=e)})):e.error&&!t&&(t=e)})),t},t.prototype.hasError=function(e){return Boolean(this.getFirstError(e))},t.prototype.getField=function(e,t){var n=this.getState().fields;if(t)return n[t].find((function(t){return t.name===e}));if(n.hasOwnProperty(e)&&!Array.isArray(n[e]))return n[e];throw new Error("[".concat(this.constructor.name,"] Field '").concat(e,"' not found"))},(0,r.Cg)([a.jr],t.prototype,"setFieldValue",null),(0,r.Cg)([a.l],t.prototype,"validateForm",null),(0,r.Cg)([a.l],t.prototype,"submit",null),t}(i.uA);t.A=u},28527:function(e,t,n){"use strict";var r=n(15215),i=n(50172),o=n(17402),a=n(46017),s=n(26616),c=n(8546),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.render=function(){var e,t,n=this.props,a=n.className,s=n.checked,u=n.children,l=n.data,d=n.disabled,f=n.label,h=n.name,p=n.theme,m=n.type,v=n.value,g=n.isUncontrolled,_=n.onChange;return(0,i.h)("label",{className:(0,c.n)((e={bcf_check:!0},e[String(a)]=a,e.__checked=s,e.__disabled=d,e))},(0,i.h)("input",(0,r.Cl)({key:"".concat(h,"_").concat(String(v)),id:"".concat(h,"_").concat(String(v)),className:"bcf_check_input",checked:s,disabled:d,name:h,noValidate:!0,type:m,value:v||"",onChange:_},g?{defaultChecked:s}:{checked:s},l)),u,!u&&(0,i.h)(o.Fragment,null,(0,i.h)("span",{className:(0,c.n)((t={},t["__".concat(p)]=p,t["__".concat(m)]=!0,t.bcf_mark=!0,t))})," ",(0,i.h)("span",{className:"bcf_text"},"function"==typeof f?f():f)))},t.defaultProps={data:{},disabled:!1,name:"",type:a.A.CHECKBOX,onChange:s.noop},t}(i.uA);t.A=u},68692:function(e,t,n){"use strict";var r=n(15215),i=n(50172),o=n(22847),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderErrorList=function(e){return'\n
\n
'.concat(e,"
\n
\n ")},t}return(0,r.C6)(t,e),t.prototype.render=function(){var e=this.props,t=e.isGlobal,n=e.error,r=e.errorText;return n?(0,i.h)(o.E,{tagName:"div",className:"form_errors_row",html:t?r:this.renderErrorList(r)}):null},t.defaultProps={isGlobal:!1,error:!1,errorText:""},t}(i.uA);t.A=a},65589:function(e,t,n){"use strict";var r=n(15215),i=n(50172),o=n(22847),a=n(46017),s=n(12957),c=n(26616),u=n(8546),l=n(11402),d=n(9853),f=n(28527),h=function(e){function t(t){var n=e.call(this,t)||this;return n.renderLabel=function(e){var t,r=n.props,a=r.checkClassName,s=r.checked,c=r.dark,l=r.data,d=r.disabled,h=r.light,p=r.name,m=r.type,v=r.value,g=r.isUncontrolled,_=r.isWithHTML,b=r.onChange,y="".concat(e.label||e.value," ").concat(e.content||"");return(0,i.h)(f.A,{className:(0,u.n)((t={},t[String(a)]=a,t[String(e.labelClassName)]=e.labelClassName,t)),checked:void 0!==s?s:Array.isArray(v)?v.includes(e.value):e.value===v,data:l,disabled:d,label:_?(0,i.h)(o.E,{html:y}):(0,i.h)("span",null,e.label||e.value," ",e.content||""),name:p,theme:(!h?!!c&&"dark":"light")||void 0,type:m,value:e.value,isUncontrolled:g,onChange:b})},n.fieldId=t.id||"".concat((0,l.q2)(t.name),"_").concat(d.o8.rangeInt()),n}return(0,r.C6)(t,e),t.prototype.render=function(){var e,t,n,r=this,o=this.props,c=o.className,l=o.accent,d=o.children,f=o.disableError,h=o.error,p=o.inputWrapClassName,m=o.label,v=o.labelWrapClassName,g=o.name,_=o.options,b=o.required,y=o.success,A=o.type;return A&&!a.A.isCheckType(A)?null:(0,i.h)("div",{className:(0,u.n)((e={bcf_row:!0},e["__".concat(A)]=!0,e[String(c)]=c,e)),"data-anchor":g},Boolean(m)&&(0,i.h)("div",{className:(0,u.n)((t={bcf_label_wrp:!0},t[String(v)]=v,t))},(0,i.h)("label",{className:(0,u.n)({bcf_label:!0,__accent:l,__required:b})},"function"==typeof m?m():m)),(0,i.h)("div",{className:(0,u.n)((n={bcf_input_wrp:!0,__error:!f&&h,__success:!h&&y},n[String(p)]=p,n))},!!_&&(0,s.loopv)(_,(function(e){return e.help?(0,i.h)("div",null,r.renderLabel(e)):r.renderLabel(e)})),d))},t.defaultProps={dark:!1,data:{},light:!1,name:"",type:a.A.RADIO,onChange:c.noop},t}(i.uA);t.A=h},68202:function(e,t,n){"use strict";var r=n(15215),i=n(8546),o=n(50172),a=n(26616),s=n(11402),c=n(9853),u=n(37407),l=function(e){function t(t){var n=e.call(this,t)||this;return n.fieldId=t.id||"".concat((0,s.q2)(t.name),"_").concat(c.o8.rangeInt()),n}return(0,r.C6)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.label,r=t.placeholder,a=(t.help,t.search),s=t.required,c=t.disabled,l=t.options,d=t.multiple,f=t.wizard,h=t.isMobile,p=t.isSelectBoxArrowHidden,m=t.selectArrowTheme,v=t.isCustomScroll,g=this.props,_=g.value,b=g.error,y=g.success,A=g.className,S=this.props,E=S.onChange,w=S.onSelect,C=S.onUnselect,T=S.inputComponent,L=l&&l.find((function(e){return e.value===_}));return(0,o.h)("div",{className:(0,i.n)((e={bcf_row:!0},e[A]=Boolean(A),e))},Boolean(n)&&(0,o.h)("div",{className:"bcf_label_wrp"},(0,o.h)("label",{className:(0,i.n)({bcf_label:!0,__required:s}),htmlFor:this.fieldId},"function"==typeof n?n():n)),(0,o.h)("div",{className:(0,i.n)({bcf_input_wrp:!0,__error:b,__success:!b&&y})},(0,o.h)(u.A,{wizard:f,key:this.fieldId,placeholder:r,value:_,selected:L,options:l,multi:d,disabled:c,onChange:E,onSelect:w,onUnselect:C,inputComponent:T,search:a,isMobile:h,isArrowHidden:p,selectArrowTheme:m,isCustomScroll:v})))},t.defaultProps={wizard:!1,name:"",onChange:a.noop,onSelect:a.noop,onUnselect:a.noop},t}(o.uA);t.A=l},19653:function(e,t,n){"use strict";n.d(t,{E:function(){return l}});var r=n(50172),i=n(17402),o=n(98614),a=n(19826),s=n(80554),c=function(){return n.e(53).then(n.bind(n,21470))},u=null;function l(e){if(e){var t=e.getAttribute("data-place"),n="immediately"===e.getAttribute("data-visible"),l=Boolean(e.getAttribute("data-label-hidden")),d=e.classList.contains("js_captcha_login");n&&(u&&document.dispatchEvent(new CustomEvent(s.R.CAPTCHA_RESET,{detail:t})),c().then((function(n){var s,c=n.default;(s={})[d?"login":"other"]=(0,i.render)((0,r.h)(o.Kq,{store:a.A},(0,r.h)(c,{label:l?"":__("Prove you are human:"),place:t,showImmediately:!0,size:"normal"})),e),u=s})))}}},37407:function(e,t,n){"use strict";n.d(t,{A:function(){return L}});var r=n(15215),i=n(50172),o=n(26616),a=n(26580),s=n(92276),c=n(8546),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClickDelete=function(e){return function(n){n.preventDefault(),n.stopImmediatePropagation(),t.props.onUnselect(e)}},t}return(0,r.C6)(t,e),t.prototype.componentDidMount=function(){this.setInputFocus()},t.prototype.componentDidUpdate=function(){this.setInputFocus()},t.prototype.setInputFocus=function(){var e=this.props.focus,t=this.rootComponent&&this.rootComponent.querySelector("input");e&&t&&t.focus()},t.prototype.render=function(){var e=this.props,t=e.value,n=e.disabled,o=e.multi,a=e.search,s=e.selectOnly,u=e.selected,l=e.onInput,d=e.onKeyDown,f=e.onUnselect,h=e.onFocus,p=e.onBlur,m=e.onClick,v=e.data,g=e.component,_=e.placeholder,b=e.valueAsPlaceholder,y=null;return o&&Array.isArray(u)&&u.length&&(y=(0,i.h)("div",{className:"bcf_selected_wrp",onKeyDown:d,onClick:h},u.filter((function(e){return e.label})).map((function(e){return(0,i.h)(L.MultiItem,{item:e,onRemove:f})})))),o?(0,i.h)("div",{onClick:m},y):s?(0,i.h)("div",{className:"bcsb_selected",onKeyDown:d,onFocus:h,onClick:m},t):g?g({autoComplete:"new-password",placeholder:_,value:t,readOnly:o||!a,onInput:l,onKeyDown:d,onFocus:h,onClick:m,multi:o,selected:u,onClickDelete:this.handleClickDelete,data:v}):(0,i.h)("input",(0,r.Cl)({autoComplete:"new-password",className:(0,c.n)({bcsb_input:!0,__as_placeholder:b,__filled:Boolean(t)}),placeholder:_,value:o?"":t,disabled:n,readOnly:o||!a,onInput:l,onKeyDown:d,onFocus:h,onBlur:p,onClick:m,ref:this.rootComponentRef},v))},t}(s.I),l=u,d=n(80554),f=n(50445),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleGetActiveElement=function(e){var n=t.props,r=n.option,i=n.getActiveRef;e&&i(e,r)},t}return(0,r.C6)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.option,r=t.className,o=t.component,a=t.onClick,s=(0,c.n)(((e={})["".concat(r)]=Boolean(r),e.__disabled=n.disabled,e));return(0,i.h)("li",{className:s,ref:this.handleGetActiveElement,onClick:a(n),"data-value":n.value},n.hasOwnProperty("icon")&&n.icon,o?o(n):n.label)},t.defaultProps={option:{label:"",value:""},onClick:function(){return function(){}},className:"",getActiveRef:o.noop},t}(i.uA),p=h,m=n(30548),v=n(33954),g=n(65771),_=n(22706),b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultProps={searchInputComponent:o.noop,restoreScrollPosition:!1},t.listRef=null,t.activeElementRef=null,t.defaultOffset={x:0,y:2},t.createListRef=function(e){return t.listRef=e},t.attachEvents=function(){t.props.inPortal&&(window.addEventListener("scroll",t.handleScroll,!0),window.addEventListener("resize",t.handleWindowResize)),document.body.addEventListener("mousedown",t.documentClick),document.addEventListener(d.R.SELECT_CLOSE,t.closeList)},t.detachEvents=function(){t.props.inPortal&&(window.removeEventListener("scroll",t.handleScroll,!0),window.removeEventListener("resize",t.handleWindowResize)),document.body.removeEventListener("mousedown",t.documentClick),document.removeEventListener(d.R.SELECT_CLOSE,t.closeList)},t.handleScroll=function(){t.props.closeList()},t.handleWindowResize=function(){t.setDropdownPosition()},t.setDropdownPosition=function(){var e=t.props.baseEl;if(t.rootComponent&&e){var n=e.getBoundingClientRect();t.rootComponent.classList.add("__absolute"),t.rootComponent.style.top=n.top+pageYOffset+e.offsetHeight+t.defaultOffset.y+"px",t.rootComponent.style.left="calc(".concat(t.calcPosX(),"px - var(--safe-area-inset-left)")}},t.calcPosX=function(){var e=t.props.baseEl,n=e.getBoundingClientRect().left+pageXOffset+t.defaultOffset.x;return v.isRTLCulture?n+e.offsetWidth-t.rootComponent.offsetWidth:n},t.scrollToActiveElement=function(){t.getNeedRenderScroll()&&t.activeElementRef&&(_.BrowserDetect.detectIE()?t.activeElementRef.parentNode.parentNode.scrollTop=t.activeElementRef.offsetTop:t.activeElementRef.scrollIntoView({block:"nearest"}))},t.getActiveElementRef=function(e,n){t.getNeedRenderScroll()&&(t.compareSelectedWithValue(n.value)&&(t.activeElementRef=e))},t.getItemCssClass=function(e,n){var r=t.props.cursorPosition;return-1!==r&&r===n||t.compareSelectedWithValue(e)?"bcsb_item __selected":"bcsb_item"},t.compareSelectedWithValue=function(e){var n=t.props,r=n.multi,i=n.selected;if(r&&Array.isArray(i)){for(var o=0;o7},t.prototype.render=function(){var e=this.props,t=e.inPortal,n=e.searchInputComponent;return(0,i.h)("div",{className:(0,c.n)({bcsb_dropdown:!0,__in_portal:t}),ref:this.rootComponentRef},n(),this.renderList())},t}(s.I),y=b,A=n(1251),S=n(12957);function E(e,t){return e.filter((function(e){return"string"==typeof e.label?0===e.label.toLocaleLowerCase().indexOf(t&&t.toLocaleLowerCase()):e.label}))}var w=n(828),C=n(53336),T=n(41669),L=function(e){function t(t){var n=e.call(this,t)||this;return n.arrowEl=null,n.handleInput=function(e){var t=n.props,r=t.itemsPerPage,i=t.onChange,o=t.onLoad,a=e.target.value;(null!==n.state.value&&void 0!==n.state.value||""!==a)&&n.state.value!==a&&(i(a),o({value:a,page:0,itemsPerPage:r}),n.setState({value:a,searchValue:a}))},n.filterOptions=function(e){var t=n.props,r=t.value,i=t.search,o=t.selected;return!i||e.label&&-1!==e.label.toLowerCase().indexOf(r.toLowerCase())&&!(o&&o.some((function(t){return t.value===e.value})))},n.handleKeyDown=function(e){var t=n.props,r=t.options,i=t.onSelect,o=t.onChange,a=t.onKeyDown,s=n.state.cursorPosition;if(!n.props.disabled){if("function"==typeof a)return a(e);switch((0,A.L)(e)){case"ArrowDown":s0&&n.setState({cursorPosition:s-1});break;case"Enter":e.preventDefault(),e.stopImmediatePropagation();var c=r.filter(n.filterOptions);s>-1?i?i(c[s]):o(c[s].label):1===c.length&&(i?i(c[0]):o(c[0].label)),n.handleDropdownClose()}}},n.handleDropdownClose=function(){n.props.isClearSearchAfterCloseDropdown&&n.setState({searchValue:null}),n.setState({isOpened:!1,cursorPosition:-1})},n.handleInputFocus=function(e){n.props.search||n.props.wizard||e.target.blur()},n.handleInputBlur=function(){var e=n.props,t=e.wizard,r=e.value;t&&n.setState({searchValue:null,value:r})},n.handleInputClick=function(e){var t,r,i,o=n.props,a=o.disabled,s=o.wizard,c=o.isClearSearchAfterCloseDropdown,u=o.isDropdownOpenedOnlyOnArrowClick,l=n.state.isOpened;u&&!(null===(t=n.arrowEl)||void 0===t?void 0:t.contains(e.target))||(T(n.mobileSelect).trigger("mousedown"),a||(!l&&s&&(null===(i=null===(r=n.component)||void 0===r?void 0:r.querySelector("input"))||void 0===i||i.focus()),c&&n.setState({searchValue:null}),n.setState({cursorPosition:-1,isOpened:!l})))},n.handleClick=function(e){return function(){var t=n.props,r=t.onChange,i=t.onSelect,o=t.multi;"function"==typeof i?i(e):r(e.label),n.setState({searchValue:null,cursorPosition:-1,isOpened:Boolean(o)})}},n.mobileChangeHandle=function(e){(0,n.props.onChange)(e.target.value)},n.getCurrentValue=function(){var e=n.props,t=e.value,r=e.selected,i=e.multi&&Array.isArray(r),o=r&&r.length;return i&&o?r[0].label:i&&!o?"":r&&!Array.isArray(r)&&r.label?r.label:t},n.refComponent=function(e){return n.component=e},n.refMobileSelect=function(e){return n.mobileSelect=e},n.setArrowRef=function(e){return n.arrowEl=e},n.shouldRenderDropdown=function(){var e=n.state.isOpened,t=n.props,r=t.forceOpen,i=t.disabled,o=t.options,a=t.emptyComponent,s=t.isMobile,c=t.isMobileNativeSelect,u=a&&e&&!o.length&&!i,l=e&&!!o.length&&!i;return(!s||!c)&&(r||l||u)},n.renderDropdown=function(){var e=n.state,t=e.cursorPosition,r=e.searchValue,a=n.getCurrentValue(),s=n.props,c=s.options,u=s.search,l=s.selected,d=s.itemComponent,f=s.emptyComponent,h=s.onLoad,p=s.dropdownInPortal,m=s.isCustomScroll,v=s.isSearchDropDown,g=s.getSearchDropDownFilterOptions,_=u||v?g(c,r):c;return(0,i.h)(y,{value:a,selected:l,options:_,baseEl:n.component,cursorPosition:t,component:d,emptyComponent:f,searchValue:r,inPortal:p,isCustomScroll:m,onLoad:h,onClick:n.handleClick,closeList:n.handleDropdownClose,searchInputComponent:v?n.renderDropdownSearch:o.noop,restoreScrollPosition:n.props.restoreCursorPosition})},n.renderDropdownSearch=function(){var e=n.state.searchValue,t=n.props,r=t.disabled,i=t.selected,o=t.inputSearchComponent,a=t.inputSearchComponentData,s=t.placeholder;return o({value:e,selected:i,valueAsPlaceholder:i&&!Array.isArray(i)&&i.asPlaceholder,onInput:n.handleInput,disabled:r,placeholder:s,inputSearchComponentData:a})},n.state={searchValue:"",value:t.value,isOpened:!!t.autoFocus,cursorPosition:-1,input:null},n}return(0,r.C6)(t,e),t.MultiItem=function(e){var t,n=e.item,r=e.className,o=e.removeAvailable,s=void 0===o||o,u=e.onRemove,l=e.disabled,d=void 0!==l&&l,f="bc_icon_close";return d&&(f+=" __disabled"),(0,i.h)("div",{className:(0,c.n)((t={bcf_selected_item:!0,__disabled:d},t[r]=!!r,t))},s&&(0,i.h)("span",{className:"bcfs_remove_item",onClick:function(){return u(n)}},(0,i.h)(a.A,{group:"bcf_select",className:f,icon:"icon_popup_close"})),(0,i.h)("span",{className:"bcfs_text"},n.label))},t.prototype.render=function(){var e,t=this.state,n=t.isOpened,o=t.searchValue,s=this.props,u=s.className,d=s.options,f=s.search,h=s.disabled,p=s.multi,m=s.selected,v=s.onUnselect,g=s.onChange,_=s.inputComponent,b=s.itemComponent,y=s.isArrowHidden,A=s.inputComponentData,T=s.placeholder,L=s.wizard,M=s.isMobile,k=s.dropdownInPortal,N=s.selectArrowTheme,I=s.isMobileNativeSelect,O=this.props.value,P=n&&!!d.length&&!h,R=!g&&!f,D=f?E(d,o):d;return M&&!I?(0,i.h)("select",(0,r.Cl)({className:"mbc_select",onChange:this.mobileChangeHandle,disabled:h},A),(0,S.loopv)(D,(function(e){if(!e.isSeparator)return(0,i.h)("option",{value:e.value,selected:e.value===O,disabled:e.disabled},e.label)}))):(O=p&&Array.isArray(m)?m&&m.length?m[0].label:"":m&&!Array.isArray(m)&&m.label?m.label:O,(0,i.h)("div",{className:(0,c.n)((e={bcf_selectbox:!0,__multiselect:p,__opened:P,__mobile_native:M&&I},e[u]=!!u,e)),ref:this.refComponent},(0,i.h)("div",{className:(0,c.n)({bcsb_input_wrp:!0,__disabled:h,__empty:m&&!Array.isArray(m)&&""===(null==m?void 0:m.value)}),onClick:this.handleInputClick},!Array.isArray(m)&&(null==m?void 0:m.icon)&&(0,i.h)("div",{className:"bcsb-current-icon"},m.icon),(0,i.h)(l,{value:o||O,selected:m,valueAsPlaceholder:m&&!Array.isArray(m)&&m.asPlaceholder,component:_,data:A,multi:p,search:L||f,selectOnly:R,disabled:h,placeholder:T,onUnselect:v,onInput:this.handleInput,onKeyDown:this.handleKeyDown,onFocus:this.handleInputFocus}),!y&&(0,i.h)("div",{ref:this.setArrowRef,className:"bcsb_arrow_wrp"},"light"===N&&(0,i.h)(a.A,{group:"bcsba_icon",icon:"#svg_select_arrow_light",url:C.ed}),"default"===N&&(0,i.h)(a.A,{group:"bcsba_icon",icon:"#svg_select_arrow",url:C.ed})),this.props.children),M&&I&&(0,i.h)("select",(0,r.Cl)({className:"mbc_select",onChange:this.mobileChangeHandle,disabled:h,ref:this.refMobileSelect},A),(0,S.loopv)(D,(function(e){if(!e.isSeparator)return(0,i.h)("option",{value:e.value,selected:e.value===O,disabled:e.disabled},b?b((0,r.Cl)((0,r.Cl)({},e),{isMobileNativeSelect:!0})):e.label)}))),this.shouldRenderDropdown()&&k&&(0,i.h)(w.A,{root:"body"},this.renderDropdown()),this.shouldRenderDropdown()&&!k&&this.renderDropdown()))},t.defaultProps={options:[],onLoad:o.noop,onChange:o.noop,onUnselect:o.noop,onKeyDown:o.noop,value:"",itemsPerPage:20,className:"",loading:!1,disabled:!1,forceOpen:!1,isMobileNativeSelect:!1,wizard:!1,isClearSearchAfterCloseDropdown:!1,selectArrowTheme:"default",isSearchDropDown:!1,getSearchDropDownFilterOptions:E,inputSearchComponent:o.noop,restoreCursorPosition:!1},t}(i.uA)},68133:function(e,t,n){"use strict";function r(){0}n.d(t,{T:function(){return r}})},69353:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(19826),i=n(86232),o=n(86757),a=n(77655),s=n(33954),c=n(41669),u=function(){function e(){this.minClass="hr_min",this.topElHeaderMinClass="hr_min";var e=r.A.getState(),t=e.isRunetki,n=e.isWL;this.$header=c(".page_header, .header_box"),this.$headerBar=c(".header_bar"),this.$topElHeader=c(".js-top_element_header"),this.$chat=c("#mls_chatconsole"),this.hasSmallHeader=(!n||t)&&this.$header.hasClass("is_chm"),this.scrollTimeout=0,this.initHeaderTop=this.$topElHeader.outerHeight(!0)||0,this.lastScrollTop=c(window).scrollTop(),this.minifyInProcess=!1,this.normalizeInProcess=!1,this.attachHandlers(),this.isChatOpened()&&chat.isInited&&this.minify()}return e.create=function(){e.globalInstance&&e.globalInstance.detachHandlers(),e.globalInstance=new this},e.prototype.updateHeaderElements=function(){this.$topElHeader=c(".js-top_element_header")},e.prototype.attachHandlers=function(){var e=this,t=this;t.hasSmallHeader&&t.$header.hasClass("chm_fixed")&&(c(window).scroll((function(){clearTimeout(t.scrollTimeout),t.fixPosOnScroll(),t.scrollTimeout=window.setTimeout((function(){t.checkScrollPos()}),10),t.lastScrollTop=c(window).scrollTop()})),t.checkScrollPos()),this.transformHeaderHandler=function(){e.isChatOpened()?e.minify():e.normalize()},c(document).on("chat:visibility",this.transformHeaderHandler)},e.prototype.detachHandlers=function(){c(document).off("chat:visibility",this.transformHeaderHandler)},e.prototype.checkScrollPos=function(){var e=this;(c(window).scrollTop()||0)>e.initHeaderTop?e.minify():e.normalize(),0===e.lastScrollTop&&e.minifyInProcess&&!e.normalizeInProcess&&setTimeout((function(){e.checkScrollPos()}),200)},e.prototype.fixPosOnScroll=function(){var e=this,t=c(window).scrollLeft()||0;e.$header.hasClass("chm_fixed_yes")?s.isRTLCulture?e.$header.css("right","".concat(t,"px")):e.$header.css("left","".concat(-1*t,"px")):s.isRTLCulture?e.$header.css("right",""):e.$header.css("left","")},e.prototype.isChatOpened=function(){var e=c("#mls_chatconsole").is(":visible");return void 0!==window.chat?"none"===window.chat.visibility?e:"visible"===window.chat.visibility:e},e.prototype.headerMinifyAnimation=function(){var e=this;e.minifyInProcess=!0,e.$header.addClass(e.minClass),e.$headerBar.addClass(e.minClass)},e.prototype.minify=function(){var e=this,t=this.isChatOpened();e.hasSmallHeader&&!e.$header.hasClass(e.minClass)&&(t||(e.$header.height(0).addClass(e.minClass),e.$headerBar.height(0).addClass("".concat(e.minClass))),e.headerMinifyAnimation(),c(document).trigger("header:change")),e.$topElHeader.length&&t&&(e.$topElHeader.addClass(e.topElHeaderMinClass),(0,i._)(),chat.setChatHeight(),o.A.instance.adjustDMCASecurityIcon(),chat.btnResize()),e.$header.hasClass("chm_fixed")&&(t?e.$header.removeClass("chm_fixed_yes"):(e.$header.addClass("chm_fixed_yes"),e.fixPosOnScroll())),r.A.dispatch(a.kA)(!0)},e.prototype.normalize=function(){var e=this,t=this.isChatOpened();!t&&"def"!==r.A.getState().skinId&&e.$headerBar.hasClass("".concat(e.minClass))&&e.$headerBar.removeClass("".concat(e.minClass)),e.hasSmallHeader&&e.$header.hasClass(e.minClass)&&!t&&(e.$header.removeClass("".concat(e.minClass," chm_fixed_yes")),e.normalizeInProcess=!1,e.fixPosOnScroll(),e.$headerBar.removeClass("".concat(e.minClass)),c(document).trigger("header:change"),e.normalizeInProcess=!0,e.$header.hasClass("chm_fixed_yes")&&e.$topElHeader.length&&e.$header.removeClass("chm_fixed_yes")),!t&&e.$topElHeader.length&&e.$topElHeader.removeClass("".concat(e.topElHeaderMinClass)),r.A.dispatch(a.kA)(!1)},e}()},15612:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var r=n(22706),i=function(){function e(){}return Object.defineProperty(e,"isMS",{get:function(){return this._isMS="boolean"==typeof this._isMS?this._isMS:Boolean(r.BrowserDetect.detectIE())||Boolean(r.BrowserDetect.isEdge_Origin())},enumerable:!1,configurable:!0}),Object.defineProperty(e,"logoElement",{get:function(){return document.getElementById("holidayLogoImg")},enumerable:!1,configurable:!0}),Object.defineProperty(e,"animationBlockElement",{get:function(){return document.querySelector(".js-logo_anim")},enumerable:!1,configurable:!0}),e.runAnimation=function(){var t=this.logoElement,n=this.animationBlockElement;if(t){var r=window.devicePixelRatio>1?t.getAttribute("data-src_2x"):t.getAttribute("data-src");this.isMS&&(r+="?".concat(Date.now())),this.stopAnimation(t),t.src=r,t.classList.add("__showed"),n&&(n.addEventListener("transitionend",e.changeLogo),t.onload=function(){n.classList.add("__animation")})}},e.stopAnimation=function(t,n){void 0===t&&(t=this.logoElement),void 0===n&&(n=this.animationBlockElement),t&&(t.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),n&&(n.classList.remove("__animation"),n.removeEventListener("transitionend",e.changeLogo))},e.changeLogo=function(){var t=e.logoElement,n=e.animationBlockElement,r=window.devicePixelRatio>1?t.getAttribute("data-src-second_2x"):t.getAttribute("data-src-second");t.src="".concat(r).concat(e.isMS?"?".concat((new Date).getTime()):""),n.removeEventListener("transitionend",e.changeLogo)},e}()},6987:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(48923),i=n(13907),o=n(92340),a=n(83966),s=n(15215),c=n(19826),u=c.A.action((function(e,t){var n;return{alerts:(0,s.Cl)((0,s.Cl)({},e.alerts),(n={},n[t]=!1,n))}})),l=n(62614),d=n(9613),f=n(41669),h=function(){function e(){var e=this;this.renderedElements={},this.isAvailableAlert=function(e){var t=c.A.getState(),n=t.alerts,r=void 0===n?{}:n,o=t.user.giveAwayBonus;return!!r[e]&&("giveAwayAlert"===e?!!o&&((!window.chat||!["visible"].includes(chat.visibility))&&!!document.getElementById("btn_signup")):"memberBonus"===e&&location.pathname!==(0,i.ip)("@free_tokens_page"))},this.showAlert=function(t,r){void 0===r&&(r=!1);var i=c.A.getState().user.giveAwayBonus;if(!e.isAvailable)return!1;if(!e.isAvailableAlert(t))return!1;if("giveAwayAlert"===t)return Promise.all([n.e(11),n.e(161)]).then(n.bind(n,43160)).then((function(n){if(e.isAvailableAlert(t)){var o=document.querySelector(".js-bc_popalert_wrp.__give_away");if(!o){var a=document.getElementById("btn_signup");(o=document.createElement("span")).className="js-bc_popalert_wrp bc_popalert_wrp __give_away",a.parentNode.insertBefore(o,a),o.appendChild(a)}e.renderedElements[t]&&(l.w.unmount(e.renderedElements[t]),e.renderedElements[t]=null),e.renderedElements[t]=n.default({tokensAmount:i,isPreload:r,isPinnedX:o.clientWidth<200},o)}})),!0;if("memberBonus"===t){var o=document.querySelector(".js-bc_popalert_wrp.__member_bonus");if(!o){var a=document.querySelectorAll(".js_promo, .js-spa_nav .ft_link"),s=a[a.length-1];(o=document.createElement("div")).className="js-bc_popalert_wrp bc_popalert_wrp __member_bonus",s&&(s.parentNode.insertBefore(o,s),o.appendChild(s))}return e.renderedElements[t]&&(l.w.unmount(e.renderedElements[t]),e.renderedElements[t]=null),n.e(121).then(n.bind(n,15597)).then((function(n){e.renderedElements[t]=n.default(o)})),!0}return!1},this.hideAlert=function(e){if(c.A.getState().alerts[e]){switch(e){case"giveAwayAlert":if(!f(".js-bc_popalert_wrp.__give_away").length)break;f(".js-bc_popalert_wrp").removeClass("__give_away"),(0,d.Hk)("a10t","1",{expires:7,expiresType:"day"});break;case"memberBonus":if(!f(".js-bc_popalert_wrp.__member_bonus").length)return;f(".js-bc_popalert_wrp").removeClass("__member_bonus"),o.A.registerEvent(a.A.MEMBER_BONUS_ALERT);break;default:return}u(e)}}}return Object.defineProperty(e,"instance",{get:function(){return this.globalInstance=this.globalInstance||new this},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAvailable",{get:function(){return!r.T.isVisible()&&(!f(".main_login_form").is(":visible")&&!f(".security_settings").length)},enumerable:!1,configurable:!0}),e}()},71799:function(e,t,n){"use strict";n.d(t,{F:function(){return a}});var r=n(45070),i=n(65361),o=n(21110),a=function(e){return e===i.A.BEST_FOR_PRIVATES&&o.q.isNew(r.i.BEST_FOR_PRIVATES_CATEGORY)}},83816:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var r=n(23110),i=[r.n.FEMALE,r.n.MALE,r.n.TRANSSEXUAL],o=function(e,t){return i.includes(e)?e:i.includes(t)?t:r.n.FEMALE}},18289:function(e,t,n){"use strict";n.d(t,{H:function(){return g}});var r=n(15215),i=n(17402),o=n(19826),a=n(44697),s=n(18697),c=function(e,t){return(0,s._b)("Store Action Header setCategories").log({payload:t}),{headerCategories:t}},u=n(75451),l=n(54022),d=n(13907),f=n(9834),h=n(13005),p=n(35172),m=n(70901),v=new f.A({expire:2,expireBy:"minutes",storageType:"heap"}),g=function(e,t){var n=(0,i.useState)(!0),f=n[0],g=n[1],_=(0,i.useRef)(null),b=(0,i.useCallback)((function(){return(0,r.sH)(void 0,void 0,void 0,(function(){var n,i,a;return(0,r.YH)(this,(function(f){switch(f.label){case 0:return t&&e!==_.current?(g(!0),_.current=e,(0,s._b)("HeaderCategories effect loadCounters req").log(e),[4,(b=e,(0,r.sH)(void 0,void 0,void 0,(function(){var e,t,n,i,a,s,c,f,g,_;return(0,r.YH)(this,(function(r){switch(r.label){case 0:if(!(e=o.A.getState()).flFilterScheme.form_name)return[2];if(t=(0,m.e8)(b),n=v.get(t))return[2,n];for(c in i={gender:b},a=u.A.serializeFilterFormState(e.flFilterScheme.form_name,i),s=(0,d.ip)("@listing"),s=(0,p.K)(s,"_filter","1"),s=(0,p.K)(s,"_category","1"),a)c in a&&(f=a[c])&&(s=(0,p.K)(s,c,f));return[4,(0,l.AT)(s)];case 1:return g=r.sent().data,_=(0,h.c)(g,"status"),v.set(t,_),[2,_]}}))})))]):[2];case 1:return n=f.sent(),g(!1),n?(i=u.A.getCategoriesForGender(t,void 0,e),a=i.map((function(e){var t;return{code:e.k,label:e.v,liveCount:null===(t=null==n?void 0:n.category)||void 0===t?void 0:t[e.k],slug:e.slug}})),(0,s._b)("HeaderCategories effect loadCounters res").log({categories:i,countData:n,newHeaderCategories:a}),o.A.action(c)(a),[2]):[2]}var b}))}))}),[e,t]);return(0,i.useEffect)((function(){t||((0,s._b)("HeaderCategories effect loadScheme").log(),o.A.action(a.U)())}),[t]),{loadCounters:b,isLoading:f}}},7819:function(e,t,n){"use strict";n.d(t,{Z:function(){return r},t:function(){return i}});var r=function(e){return e.headerCategories||[]},i=function(e){var t,n,r;return(null===(r=null===(n=null===(t=e.flFilterScheme)||void 0===t?void 0:t.fields)||void 0===n?void 0:n.category)||void 0===r?void 0:r.choices)||[]}},65400:function(e,t,n){"use strict";n.d(t,{E:function(){return o}});var r=n(15215),i=n(17402),o=function(e){var t=e.className,n=e.html,o=e.tagName,a=(0,r.Tt)(e,["className","html","tagName"]);return(0,i.createElement)(o||"span",(0,r.Cl)({className:t,dangerouslySetInnerHTML:{__html:n}},a))}},22847:function(e,t,n){"use strict";n.d(t,{E:function(){return r.E}});var r=n(65400)},56594:function(e,t,n){"use strict";n.r(t),n.d(t,{init:function(){return v}});var r=n(15215),i=n(19826),o=n(48923),a=n(83966),s=n(38654),c=n(92340),u=n(60108),l=n(9613),d=n(72418),f=n(28812),h=n(35172),p=n(41669),m=function(){function e(){this.showLngClick=function(){var e,t=p("#change_lang").parents(".change_lang_wrap");p("#lang_button").on("click",(function(){e=t.toggle().is(":visible"),p("body").off("click.lng-switcher"),e&&p("body").on("click.lng-switcher",(function(e){p(e.target).closest("#lang_button").length||(t.hide(),p("body").off("click.lng-switcher"))}))}))},this.showLngHover=function(){var e=0;p("#lang_button").hover((function(){clearTimeout(e),o.T.isVisible()||p("#change_lang").parents(".change_lang_wrap").show()}),(function(){clearTimeout(e),o.T.isVisible()||(e=window.setTimeout((function(){p("#change_lang").parents(".change_lang_wrap").hide()}),200))})).click((function(){var e=o.T.getComponent();e&&e.is(":visible")&&(e.hide(),p(this).mouseover())})),p(".change_lang_wrap").hover((function(){clearTimeout(e),p(this).on("click.lang",(function(e){p(e.target).parents(".switch_language").length&&p(".change_lang_wrap").hide()}))}),(function(){clearTimeout(e),p(this).hide(),p("body").off("click.lang")}))},this.switchLanguageEvent=function(t){t.preventDefault();var n={country:this.getAttribute("country"),culture:this.dataset.culture,href:this.href,lang:this.dataset.lang,newSlug:this.dataset.new_slug,oldSlug:this.dataset.old_slug};e.switchLanguage({langData:n,isFooterLang:this.classList.contains("footer_lang"),isSlug:Boolean(p("#change_lang").data("has_slug")),isThirdLevel:Boolean(p("html").attr("data-third_level"))})},i.A.getState().isRunetki?this.showLngClick():this.showLngHover(),s.h.isEnabled("spa_router")||p("body").on("click","a.switch_language",this.switchLanguageEvent),p(document).on("language:switch",(function(e,t){(0,l.Hk)("lc",t.culture,{expires:365,expiresType:"day",path:"/",domain:(0,d.getRealDomain)()});var n=(0,f.json_parse)(localStorage.getItem("ActiveConversation"))||[],r=localStorage.getItem("ActiveConversationUsername")||null;(0,l.Hk)("ActiveConversation",JSON.stringify(n),{expires:15,expiresType:"sec",path:"/",domain:(0,d.getRealDomain)()}),(0,l.Hk)("ActiveConversationUsername",r,{expires:15,expiresType:"sec",path:"/",domain:(0,d.getRealDomain)()})}))}return e.changeUrlIfSlug=function(e){var t=e.country,n=e.href,r=e.lang,i=e.newSlug,o=e.oldSlug,a=n.split("?"),s=a[0];s.endsWith("/")&&(s=s.slice(0,-1));var c=t||null;if(location.pathname.length>1){var u="/tags",l=!1,d=location.pathname,m=d.indexOf(u);-1!==m&&(l=-1!==d.slice(m+5).indexOf("%")||d.slice(m+5).length<=2),l&&(d=d.slice(0,m+5)),s+=d}if(s+=location.search,a.length>1){var v=-1!==s.indexOf("?");s+=(v?"&":"?")+a[1]}s=(0,h.K)(s,"_ga",null),s=(0,h.K)(s,"country",c);var g=document.getElementById("GQL_layoutData");if(g){var _=(0,f.json_parse)(g.innerText);return decodeURIComponent(s).replace(_.languageInfo.currentUrl,_.languageInfo.urls[r])}return p("#change_lang").data("has_slug")&&o&&i&&(s=decodeURIComponent(s).replace(o,i)),s},e.clearThirdLevelDomainCategoryLink=function(){p("html").attr("data-third_level")&&p(".switch_language").each((function(e,t){var n=t.getAttribute("href");n=(0,h.K)(n,"csl",null),n=(0,h.K)(n,"cslt",null),t.setAttribute("href",n)}))},e.handleCloseSwitcherPopup=function(){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return c.A.isAllowedEvent(a.A.BELGIUM_AND_SWITZERLAND_LANGUAGE_SWITCHER_POPUP)?(i.A.action(u.Y)(),[4,c.A.registerEvent(a.A.BELGIUM_AND_SWITZERLAND_LANGUAGE_SWITCHER_POPUP)]):[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.switchLanguage=function(t){return(0,r.sH)(this,void 0,void 0,(function(){var n,o,a,s,c,u,l;return(0,r.YH)(this,(function(d){switch(d.label){case 0:return n=t.langData,o=t.isFooterLang,a=t.isThirdLevel,s=n.culture,c=n.href,u=n.lang,l=function(){if(p(document).trigger("language:switch",{culture:s}),!a){var t=(0,r.Cl)({},n);if(o){var i=document.querySelector("#change_lang a[data-lang=".concat(u,"]"));if(!i)return;t={country:i.getAttribute("country"),culture:i.dataset.culture,href:i.href,lang:i.dataset.lang,newSlug:i.dataset.new_slug,oldSlug:i.dataset.old_slug}}return window.location.href=e.changeUrlIfSlug(t),!1}window.location.href=c},i.A.getState().languageSwitcherPopupComponent?[4,e.handleCloseSwitcherPopup()]:[3,2];case 1:return d.sent(),setTimeout(l,50),[2];case 2:return l(),[2]}}))}))},e.updateSwitchLangCategoryLinks=function(e,t){var n,r=p("html").attr("data-third_level"),o=i.A.getState().lang,a=p(".switch_language"),s=p("#change_lang"),c=null===(n=t[o])||void 0===n?void 0:n.toLocaleLowerCase();s.attr("data-has_slug","1"),a.each((function(n,i){var o;if(c){if(r){var a=i.getAttribute("href"),s=(0,h.K)(a,"csl",e);s=(0,h.K)(s,"cslt",encodeURIComponent(c)),i.setAttribute("href",s)}if(i.classList.contains("fp_flag")){var u=null===(o=i.dataset)||void 0===o?void 0:o.lang;i.setAttribute("data-old_slug",c),i.setAttribute("data-new_slug",t[u].toLocaleLowerCase())}}}))},e}();function v(){return new m}t.default=m},8269:function(e,t,n){"use strict";n.d(t,{O:function(){return s},v:function(){return a}});var r,i,o=n(18325),a=((r={})[o.A.MALE]="gay",r[o.A.COUPLE_M_M]="gay",r[o.A.FEMALE]="female",r[o.A.COUPLE_F_M]="female",r[o.A.COUPLE_F_F]="female",r[o.A.COUPLE_T_T]="trans",r[o.A.TRANSSEXUAL]="trans",r),s=((i={})[o.A.MALE]="male",i[o.A.FEMALE]="female",i[o.A.COUPLE_M_M]="couple",i[o.A.COUPLE_F_M]="couple",i[o.A.COUPLE_F_F]="couple",i[o.A.COUPLE_T_T]="couple",i[o.A.TRANSSEXUAL]="trans",i)},14625:function(e,t,n){"use strict";n.d(t,{p:function(){return g}});var r=n(13907),i=n(51560),o=n(8269),a="default",s="uni",c=["offline","limit","vip","away"],u=["away"],l=["away"],d=["away","limit"],f=n(19826),h=n(2597),p=n(18325),m=n(22706),v=n(33954);function g(e,t,n){var g;void 0===e&&(e=a);var _=f.A.getState(),b=_.lang,y=_.user,A=_.isMobile,S=_.streamOptions,E=_.isAuthenticated,w=(null===(g=null===chat||void 0===chat?void 0:chat.performerData)||void 0===g?void 0:g.sexType)||"",C=t||w||p.A.FEMALE,T=E&&y.membership===h.A.FREE,L=e===a||"show_default"===e,M=(0,r.oF)("chat/layover"),k={device:A?"mobile":"desktop",type:L?a:e,sex:o.v[C]||C,name:l.includes(e)?s:b};L?(k.device="common",k.name=s):A?(k.name=s,d.includes(e)||(k.type="away")):"vip"===e?k.sex=p.A.FEMALE:"limit"===e?(T&&(k.type+="free"),A||E||m.BrowserDetect.isIE11()&&v.isRTLCulture||(k.name=s)):"offline"===e&&(k.type="away",k.name=s);var N=!A&&u.includes(k.type)&&i.A.isWideScreen(),I=!A&&c.includes(k.type)&&i.A.isVideoHD(n||(null==S?void 0:S.quality));return[M,k.device,k.type,k.sex,A||I||N||L?"hd":"","".concat(k.name,".jpg")].filter(Boolean).join("/")}},85747:function(e,t,n){"use strict";n.d(t,{$6:function(){return p},B7:function(){return m},EO:function(){return c},G1:function(){return r},HS:function(){return o},IE:function(){return a},Om:function(){return l},YB:function(){return f},cr:function(){return i},hg:function(){return u},kB:function(){return d},oR:function(){return h},wT:function(){return s}});var r="medium",i="default",o=__("All"),a=72,s=4,c=3,u=12,l=50,d=[20,50,80,100],f=6,h=3e4,p=6e4,m=15e4},99387:function(e,t,n){"use strict";n.d(t,{AV:function(){return i},J7:function(){return r},Lv:function(){return s},dx:function(){return c},eU:function(){return o},uM:function(){return a}});var r="#ls_header_container",i="#ls_sub_header_container",o="#ls_all_models_header_container",a="#mls_models",s="#jsx-ls_footer_container",c="#jsx-ls_seo_custom_text"},44055:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var r=n(23110),i=[r.n.MALE,r.n.TRANSSEXUAL,r.n.FEMALE,r.n.COUPLES]},25738:function(e,t,n){"use strict";var r;n.d(t,{Gs:function(){return r},kU:function(){return s},pW:function(){return a},qb:function(){return i}}),function(e){e.POPULAR="popular",e.LOGGED="logged",e.NEW="new",e.LOVERS="lovers",e.CAM_SCORE="camscore",e.RICH="rich",e.QUALITY="quality"}(r||(r={}));var i=Object.values(r),o=i,a=function(e){return o.includes(e)},s=r.CAM_SCORE},18128:function(e,t,n){"use strict";n.d(t,{t:function(){return o}});var r=n(15215),i=n(85747),o=function(e){return e?(0,r.fX)([],i.kB,!0).sort((function(t,n){return Math.abs(t-e)-Math.abs(n-e)}))[0]:i.Om}},20983:function(e,t,n){"use strict";n.d(t,{Y:function(){return o}});var r=n(23110),i=n(56119),o=function(e){return[r.n.ALL,r.n.SPY,r.n.NEW_MODELS].includes(e)?r.n.ALL:[r.n.FEMALE,r.n.COUPLES,r.n.MALE,r.n.TRANSSEXUAL].includes(e)?(0,i.e)(e):null}},93541:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var r=0,i=function(e,t){if(e&&t){r||(a=t,s=window.getComputedStyle(a),c=[s.marginLeft,s.marginRight].map((function(e){return/\d+px/g.test(e)?+e.replace(/\D/g,""):0})),r=c[0]+c[1]);var n=e.clientWidth,i=t.clientWidth+r,o=Math.round(n/i);if(Number.isFinite(o))return o}var a,s,c;return 0}},53825:function(e,t,n){"use strict";n.d(t,{b:function(){return c},q:function(){return s}});var r=n(15215),i=n(54022),o=n(13907),a=new(n(9834).A)({expire:10,expireBy:"minutes",storageId:"ls_counters_cache",storageType:"local"}),s=function(e){return(0,r.sH)(void 0,void 0,void 0,(function(){var t,n,s;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return t=(0,o.ip)("@ajax_livetab_counters"),(n=a.get("0"))?[2,n]:[4,(0,i.AT)(t,{abortController:e})];case 1:return(s=r.sent().data)?(a.set("0",s),[2,s]):[2]}}))}))},c=function(e){e&&a.set("0",e)}},53520:function(e,t,n){"use strict";n.d(t,{Ne:function(){return m},k4:function(){return v},xJ:function(){return p}});var r=n(15215),i=n(19826),o=n(28577),a=n(89836),s=n(18697),c=n(54022),u=n(13907),l=n(9834),d={},f=new l.A({expire:2,expireBy:"minutes",storageId:"ls_tags_cache_1_".concat(i.A.getState().listingTagsCacheVersion),storageType:"local"}),h=function(e,t){i.A.getState();return l.A.hashSelector(["",e,t].filter((function(e){return!!e})))},p=function(e,t,n){return(0,r.sH)(void 0,void 0,void 0,(function(){var l,p,m,v,g;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return l=i.A.getState(),e||(e=(0,a.Hh)(l)||(0,a.q5)(l)),void 0===t&&(t=(0,o.em)(l)),p=h(e,t),(null==(m=f.get(p))?void 0:m.length)?[2,Promise.resolve(m)]:(v=d[p]||(0,c.gQ)((0,u.ip)("@api_get_tags"),{abortController:n,body:JSON.stringify({category:t,livetab:e}),method:"POST"}).then((function(e){var t=e.data;return null==t?void 0:t.tags})).catch((function(e){return(0,s._b)("Listing loadTags failed").error(e.message),[]})),d[p]=v,[4,v]);case 1:return g=r.sent(),delete d[p],(null==g?void 0:g.length)&&f.set(p,g),[2,g]}}))}))},m=function(e,t){var n=h(e,t);return f.get(n)},v=function(e,t,n){var r=h(e,t);n.length&&f.set(r,n)}},90972:function(e,t,n){"use strict";n.d(t,{l:function(){return V}});var r,i=n(15215),o=n(5037),a=n(19826),s=n(28577),c=n(68572),u=n(93541),l=n(59614),d=n(18697),f=function(e,t){return(0,d._b)("Store Action Listing DisplayTypeForm setThumbTypeFilterAvailable").log(t),{isThumbsTypeFilterAvailable:t}},h=n(3484),p=n(21957),m=n(65683),v=n(52556),g=n(72668),_=n(23110),b=n(62271),y=n(35172),A=n(85747),S=n(25738),E=n(41669),w=n(1579),C=n(81363),T=n(31541),L=n(74214),M=n(64254),k=n(89414),N=n(41350),I=n(89836),O=n(52982),P=n(58369),R=n(99215),D=n(29313),j=n(9613),x=(0,D.o0)(["listingLoader","listingThumbSize","listingThumbType","listingActiveCategory","listingThumbsPerRowCount","listingSelectedThumb","liveTab"]),U=x.join(", "),F=((r={})[_.n.FEMALE]="lsvcf",r[_.n.MALE]="lsvcm",r[_.n.TRANSSEXUAL]="lsvct",r),B=function(){function e(){}var t;return t=e,e.attach=function(){(0,d._b)("ListingStorageSync attach").log(t.isAttached),t.isAttached||(t.isAttached=!0,w.c.on(U,t.handleStorageChange))},e.detach=function(){(0,d._b)("ListingStorageSync detach").log(t.isAttached),t.isAttached&&(t.isAttached=!1,w.c.off(U,t.handleStorageChange))},e.handleStorageChange=function(e,t){var n=(0,O.v1)(e),r=n===L.J.BLOCKS;(0,d._b)("ListingStorageSync change").log(Object.fromEntries(x.map((function(n){return[n.replace(/^listing/,""),{next:e[n],prev:t[n]}]}))));var i=(0,O.Js)(e);i!==(0,O.Js)(t)&&((0,d._b)("ListingStorageSync change sorting").log(i),(0,j.Hk)("sls",null),(0,y.Zy)("sorting")&&(0,M.GC)({},document.title,(0,y.K)(window.location.href,"sorting",i)),C.k.restartLoader(!0));var o=(0,R.Ng)(e);e.isModerator||o===(0,R.Ng)(t)||((0,d._b)("ListingStorageSync change thumbSize").log(o),C.k.restartLoader(!0));var c=(0,R.gX)(e);c!==(0,R.gX)(t)&&((0,d._b)("ListingStorageSync change thumbType").log(c),C.k.restartLoader(!0));var u=(0,R.dn)(e);r&&u!==(0,R.dn)(t)&&((0,d._b)("ListingStorageSync change selectedThumb").log(u),C.k.load({type:k.w.BLOCKS}));var l=(0,I.Hh)(e);if(r&&l!==(0,I.Hh)(t)&&((0,d._b)("ListingStorageSync change liveTab").log(l),C.k.load({type:k.w.BLOCKS})),e.isAuthenticated){var f=(0,s.em)(e);if(f!==(0,s.em)(t)){var h=T.w[f];if((0,d._b)("ListingStorageSync change activeCategory").log(f,"(".concat(h,")")),h){var p=(0,N.o)(l),g=(0,j.Hk)(F[p])||"";(0,j.Hk)(F[p],h+g.replace(h,""),{expires:365,expiresType:"day",path:"/"})}}}if(n===L.J.PAGER){var _=(0,R.Vx)(e),b=(0,O.Mk)(e);if(_&&_!==(0,R.Vx)(t)&&((0,d._b)("ListingStorageSync change thumbsPerRowCount").log(_),a.A.action(m.n9)(b),e.isModerator&&C.k.restartLoader(!0)),b&&b!==(0,O.Mk)(t)){C.k.cookie.set("pager_limit",b);var A=(0,P.mq)(e);(0,d._b)("ListingStorageSync change limit").log(b,A.length),A.length>b&&a.A.action(v.ph)(A.slice(0,b))}}},e}(),H=n(69030),G=n(28812),V=function(){function e(){}var t;return t=e,e.isAttached=!1,e.uiType=null,e.attach=function(){return(0,i.sH)(void 0,void 0,void 0,(function(){var e,n,r,c,w,T;return(0,i.YH)(t,(function(t){switch(t.label){case 0:if(t.trys.push([0,2,,3]),a.A.getState().isChatPopup)throw new Error("Not Available for chat-popup");return this.detach(),e=document.querySelector("#mls_container"),n=(0,G.json_parse)((null===(T=document.getElementById("listingConfiguration"))||void 0===T?void 0:T.innerText)||""),(0,d._b)("Listing attach").log(Boolean(e),n),n&&function(e){if((0,d._b)("Listing Init State").log(e),!e||!e.initData)throw new Error('incorrect "config"');var t=e.initData,n=e.internalLinks,r=e.listingBlocks,s=e.stateBlockData,c=e.stateData,u=e.stateNavData,w=t.block,C=t.categoriesConfig,T=t.categoriesList,L=t.categorySlug,M=t.offset,k=t.rights,N=t.tagTitles,I=t.thumbSize,O=void 0===I?A.G1:I,P=t.isThumbsTypeFilterAvailable,R=t.livetab||_.n.FEMALE,D=t.category||null,j=t.tag||null,x=(null==c?void 0:c.th_type)||t.thumbType||"live",U=(0,y.Zy)("sorting")||t.sorting||S.kU;if(N){var F=Object.entries(N).map((function(e){var t=e[0],n=e[1],r=n.code,i=n.title;return{id:Number(t),code:r,title:i}}));F.length&&a.A.action(l.FA)(F)}a.A.action(p.S_)(R),c&&(a.A.action(v.ph)(c.models),c.total_count&&a.A.action(m.hp)(c.total_count),c.online_count&&a.A.action(m.w$)(c.online_count)),r&&a.A.action(v.Xv)(r),s&&(s.pinned_models&&a.A.action(v.B5)(s.pinned_models),a.A.action(v.VJ)(s)),u&&(b.h.instance.attach((0,i.Cl)((0,i.Cl)({},u),{listingLoaderSettings:{block:w,categoryName:D,liveTab:R,tag:j}})),u.current&&a.A.action(o.Eb)(u.current.username),u.total_count&&(a.A.action(m.hp)(u.total_count),a.A.action(m.w$)(u.total_count))),n&&a.A.action(l.O6)({internalLinks:n}),O&&a.A.action(o.Gn)(O),x&&a.A.action(o.Lg)(x),R&&a.A.action(p.id)(R),D&&a.A.action(h.TM)(D),L&&a.A.action(h.m4)(L),j&&a.A.action(h.Rk)(j),w&&a.A.action(h.e_)(w),C&&a.A.action(h.Xx)(C),(null==C?void 0:C.isActive)&&(null==T?void 0:T.length)&&a.A.action(h.zW)(T),k&&a.A.action(l.h5)(k),M&&a.A.action(m.Ni)(Number(M)||0),a.A.action(m.Uo)(U),a.A.action(f)(P),a.A.action(m.Gq)((0,g.f)(R)),a.A.action(l.he)(E(".js-error404_page_mls").length>0),a.A.action(l.vF)(E(".js-unsubscribe_page_mls").length>0),a.A.action(l.R_)(E(".js-all_models_page_mls").length>0)}(n),e&&(r=e.querySelector(".js-ls_thumb"),(c=(0,u.m)(e,r))&&a.A.action(o.qU)(c)),[4,C.k.attach()];case 1:return t.sent(),H.ModelsFilter.instance.attach(),(null==n?void 0:n.stateNavData)&&(0,s.Ci)(a.A.getState())&&C.k.load({type:k.w.NAV}),B.attach(),this.isAttached=!0,(0,d._b)("Listing attach Success").log(),[3,3];case 2:throw w=t.sent(),(0,d._b)("Listing attach Failed").error(w),new Error(null==w?void 0:w.message);case 3:return[2]}}))}))},e.detach=function(){t.isAttached&&(0,d._b)("Listing detach").log(),t.isAttached=!1,C.k.detach(),B.detach(),c.oc.stop(c.eh)},e}()},956:function(e,t,n){"use strict";n.d(t,{x:function(){return I}});var r=n(15215),i=n(21957),o=n(19826),a=n(15645),s=n(58676),c=n(1579),u=n(28577),l=n(89836),d=n(15839),f=n(9786),h=n(89258),p=n(90762),m=n(302),v=n(81363),g=n(97708),_=n(75451),b=n(23110),y=n(45070),A=n(18325),S=n(65361),E=n(18697),w=n(42080),C=n(13907),T=n(56119),L=n(21110),M=n(6193),k=n(28812),N=n(44055),I=function(){function e(){}var t;return Object.defineProperty(e,"isAvailable",{get:function(){var e=o.A.getState();return!(document.body.classList.contains("page_inner")||(0,d.Sh)(e)||(0,d.ip)(e)||(0,d.yH)(e))},enumerable:!1,configurable:!0}),e.attach=function(){if(!this.isAttached){(0,E._b)("ListingFilter attach").log();var e=this._restoreSubmittedFields();if(this.isAttached=!0,e){this._updateGlobalLiveTab(),!h.v.isChatOpen&&document.body.classList.contains("page_index")&&this._applyListing()}else{sessionStorage.getItem(this._storageFilterKey)&&(0,E._b)("ListingFilter storedFilters clear").log(),sessionStorage.removeItem(this._storageFilterKey);var t=o.A.getState().liveTab;t===b.n.ALL?o.A.action(s.d)(g.$.GENDER,b.n.FEMALE):N.N.includes(t)&&o.A.action(s.d)(g.$.GENDER,t)}c.c.on("flFilterRealListingState",this._handleChangeFilterState)}},e.serializeSearchForm=function(e){if(this.isAttached&&this.isAvailable&&e){for(var t={},n=!!(null==e?void 0:e.display_name),r=_.A.serializeFilterFormStatePairs(this.formName,e)||[],i=n?["".concat(this.formName,"[").concat(g.$.DISPLAY_NAME,"][text]")]:["".concat(this.formName,"[").concat(g.$.HAIR_COLOR,"][]"),"".concat(this.formName,"[").concat(g.$.ETHNICITY,"][]"),"".concat(this.formName,"[").concat(g.$.BODY,"][]"),"".concat(this.formName,"[").concat(g.$.BUST_SIZE,"][]"),"".concat(this.formName,"[").concat(g.$.PENIS_SIZE,"][]"),"".concat(this.formName,"[").concat(g.$.BUTT_SIZE,"][]"),"".concat(this.formName,"[").concat(g.$.LANG,"][]"),"".concat(this.formName,"[").concat(g.$.CATEGORY,"]"),"".concat(this.formName,"[").concat(g.$.AGE,"]"),"".concat(this.formName,"[").concat(g.$.REGION,"][]"),"".concat(this.formName,"[").concat(g.$.GENDER,"][]"),"".concat(this.formName,"[").concat(g.$.PRIVATES_FOR,"][]"),"".concat(this.formName,"[").concat(g.$.FULL_PRIVATES_FOR,"][]"),"".concat(this.formName,"[").concat(g.$.GROUP_CHAT_FOR,"][]")],o=0,a=r;o=0&&s.A.action(a.Ni)(t),void 0!==n&&n>0&&s.A.action(a.n9)(n),s.A.action(a.Gq)(u),(0,c.li)(r)&&q.cookie.set("pager_limit",(0,c.Mk)(s.A.getState()))),N.x.isAttached&&(q.cookie.set("sorting",(0,c.Js)(r)),q.cookie.set("display",(0,f.Ng)(r)),q.cookie.set("th_type",(0,f.gX)(r))),[4,this._prepareRequestParams(e,u)];case 1:return l=i.sent(),[4,M(e,l)];case 2:return d=i.sent(),h=d.data,d.success&&h?(void 0!==h.nav?this._processNavData(h):void 0===h.blocks?this._processMainData(h):this._processBlocksData(h),"total_count"in h&&s.A.action(a.hp)(h.total_count),"online_count"in h&&s.A.action(a.w$)(h.online_count),q.timer.start(e),[2,{data:h,success:!0}]):[2,{success:!1}]}}))}))},e.prototype._prepareRequestParams=function(e){return(0,i.sH)(this,arguments,void 0,(function(e,t){var n,r,o,a;return void 0===t&&(t=!1),(0,i.YH)(this,(function(i){switch(i.label){case 0:return n=s.A.getState(),r=(0,d.yH)(n),o={},e!==I.w.NAV?[3,2]:[4,U(o)];case 1:return i.sent(),[3,3];case 2:!function(e,t){var n=s.A.getState(),r=(0,S.Hh)(n),i=(0,k.yZ)(n),o=(0,k.vM)(n),a=(0,k.em)(n),u=(0,c.Qy)(n),l=(0,c.Mk)(n);if(e.livetab=r,e.offset=u,e.limit=l,a&&(e.category=a),t!==I.w.BLOCKS){if(t===I.w.MAIN&&(i&&(e.tag=i),o&&(e.block=o)),N.x.isAttached){var d=s.A.getState().flFilterRealListingState,f=void 0===d?{}:d,h=f.flFilterCounters,p=f.flFilterState;if(!p||!h||!h.live&&!p.display_name||!h.total&&p.display_name)return;var m=N.x.serializeSearchForm(p);if(m)for(var v in e._online_filter=0,m)v in m&&(e[v]=m[v])}}else e._blocks=1}(o,e),t&&(o.can_pin_models="true"),i.label=3;case 3:return(a=(0,T.Zy)("sorting"))?o["".concat(N.x.formName,"[base_sort]")]=a:r&&(o["".concat(N.x.formName,"[base_sort]")]="popular"),q.cookie.hasStoredCookie||((0,p._b)("ListingLoaderCore DEBUG").error("no cookie"),o["".concat(N.x.formName,"[th_type]")]=q.cookie.get("th_type")||"",o["".concat(N.x.formName,"[sorting]")]=q.cookie.get("sorting")||"",o["".concat(N.x.formName,"[display]")]=q.cookie.get("display")||""),[2,o]}}))}))},e.prototype._processNavData=function(e){var t=(s.A.getState().chatNavigation||{}).current,n=e.nav;!n.current&&t&&(n.current=t),s.A.action(b._7)(n)},e.prototype._processBlocksData=function(e){e.blocks&&(e.blocks.pinned_models&&s.A.action(y.B5)(e.blocks.pinned_models),s.A.action(y.VJ)(e.blocks))},e.prototype._processMainData=function(e){s.A.action(y.ph)(e.models),e.th_type&&s.A.action(A.Lg)(e.th_type)},e}(),H=function(){function e(){var e,t=this;this.timers=((e={})[I.w.BLOCKS]=null,e[I.w.MAIN]=null,e[I.w.NAV]=null,e),this.pausedTimers=[],this.getTimerTTL=function(e){return e===I.w.BLOCKS?u.B7:t.isAuthenticated?u.oR:u.$6},this.handleDocumentVisibilityChange=function(){"visible"===document.visibilityState?t.resume():t.pause()};var n=s.A.getState().isAuthenticated;this.isAuthenticated=n}return e.prototype.attach=function(){document.addEventListener("visibilitychange",this.handleDocumentVisibilityChange)},e.prototype.detach=function(){document.removeEventListener("visibilitychange",this.handleDocumentVisibilityChange),this.stop(I.w.MAIN),this.stop(I.w.NAV),this.stop(I.w.BLOCKS)},e.prototype.start=function(e){(0,p._b)("ListingLoader Timer start").log(e),e&&e!==I.w.NAV&&(this.timers[e]&&this.stop(e),this.timers[e]=window.setTimeout((function(){(0,p._b)("ListingLoader Timer process").log(e),q.load({type:e})}),this.getTimerTTL(e)))},e.prototype.stop=function(e){e&&this.timers[e]&&((0,p._b)("ListingLoader Timer stop").log(e),window.clearTimeout(this.timers[e]),this.timers[e]=null)},e.prototype.pause=function(){var e=this;this.pauseDate=Date.now(),this.pausedTimers=(0,C.loopv)(this.timers,(function(t,n){if(t)return e.stop(n),n})).filter(Boolean)},e.prototype.resume=function(){var e=this;this.pausedTimers.forEach((function(t){e.pauseDate&&e.pauseDate+e.getTimerTTL(t)1?this._loadRequestCount-1:0,this._loadRequestCount||s.A.action(o.xH)(!1),[2,u]}}))}))},e.activatePager=function(){for(var e=[],n=0;n0&&h("html, body").animate({scrollTop:0},"fast"),l.T.isVisible()||d.M.reportEvent(40,"click"),e&&l.T.open(),h(".fancy_popup.__open").length>0&&(0,c.e9)(),!1},e.prototype.init=function(){this.body.on("click",this.getSelector(),this.handleClick)},e.prototype.destroy=function(){this.body.off("click",this.getSelector(),this.handleClick)},e}(),m=n(53992),v=n(85905),g=n(25854),_=n(84040),b=n(27821),y=n(13907),A=n(36629),S=n(79098),E=n(25891),w=n(73458),C=n(78671),T=n(41669),L=function(){function e(){var t=this;this.onFormSuccess=function(e,t,n,r){var i=t.data,o=void 0===i?{}:i;void 0!==o.redirectUrl&&(window.location.href=o.redirectUrl)},this.onFormSubmit=function(e){var n,r,i,o,a=e.parent().find(".redirect_url"),s=e.find('[name="log_in[username]"]').val(),c=e.find('[name="log_in[password]"]'),u=(0,S.G)(null===(r=null===(n=String(s))||void 0===n?void 0:n.trim)||void 0===r?void 0:r.call(n)),l=(0,A.X)(null===(o=null===(i=String(c.val()))||void 0===i?void 0:i.trim)||void 0===o?void 0:o.call(i));if(!u||!l)return t.resetLoadingState(e),c.val(""),t.showErrorMessage(e,v.A.INVALID),!1;a.length&&a.val(a.val()||location.pathname),localStorage.getItem("ActiveConversation")&&localStorage.setItem("ActiveConversation",JSON.stringify([]))};var n=i.A.getState(),r=n.captchaData,o=n.isMobile;o||(new p).init();var a=T(".resend_activation_email");(0,b.qp)(a.find("form")),a.find("a.submit").on("click",(function(){T(this).closest("form").submit()}));var s=T(".main_login_form");r&&r.isCaptchaEnabled&&(o?T(document).on("pageshow",(function(){var e;(null===(e=i.A.getState().captchaData)||void 0===e?void 0:e.isCaptchaVisible)&&t.initCaptcha(s,!0)})):r.isCaptchaVisible&&this.initCaptcha(s,!0));var c=function(e,n,r){s.find(".form_errors_row").remove(),s.find(".form_errors_in_row").html(""),void 0!==e.global&&t.showErrorMessage(s,e.global),void 0!==e.message&&t.showErrorMessage(s,e.message),s.find("#log_in_password").val(""),s.find('input[type="password"]').val(""),void 0===e.redirectUrl||T.mobile||window.location.href===e.redirectUrl||window.location.pathname===e.redirectUrl?(void 0!==e.captchaForce&&e.captchaForce&&t.initCaptcha(s,!0),e.email?(T("#resend_activation_email_username").val(T(".main_login_form").find("#log_in_username").val()),T("#resend_activation_email_email").val(e.email),T(".resend_activation_email").show()):T(".resend_activation_email").hide()):window.location.href=e.redirectUrl},u=function(e,t,n,r){var i=null;"Forbidden"===t?i="The maximum number of login attempts has been reached, please try again later":(i="System is temporarily unavailable, please try again later",t!==E._.ERROR_MESSAGE&&"undefined"!=typeof Sentry&&Sentry.captureMessage("Login: ".concat(t," ").concat(n," ").concat(i))),i&&T(e).find(".form_data").prepend('
'.concat(i,"
")),s.find('input[type="password"]').val("")};s.each((function(n,r){(0,b.qp)(T(r).closest("form"),t.onFormSuccess,c,t.onFormSubmit,u,e.funcSerializer,e.funcDataDecode)}))}return e.funcSerializer=function(t){var n,r;if(!g.E)return t;for(var i=[{name:"request.udi",value:""}],o="",a="",s=Object.values(m.l),c=t.length;--c>=0;){var u=t[c],l=u.name,d=u.value;switch(s.includes(l)&&i.push({name:"captchaResponse",value:d}),l){case"log_in[remember]":i.push({name:"remember",value:"on"===d||"1"===d});break;case"log_in[bfpt]":break;case"log_in[password]":a=null===(n=null==d?void 0:d.trim)||void 0===n?void 0:n.call(d);break;case"log_in[username]":o=null===(r=null==d?void 0:d.trim)||void 0===r?void 0:r.call(d);break;case"redirect_url":i.push({name:"redirectUrl",value:d});break;case"security_log_additional_info":i.push({name:"securityLogAdditionalInfo",value:d});break;default:i.push(t[c])}}i[0].value=o;var f=(0,_.l)(),h=(0,w.zx)(f,o,a,e.FINGERPRINT_HASH,e.FINGERPRINT_FULL);return i.push({name:f,value:h}),i},e.funcDataDecode=function(e,t){if(!g.E)return e;var n=(0,r.Cl)((0,r.Cl)({},e),e.data);return(0,C.v)((0,w.oX)(n,(0,_.l)(),t))},e.requestUDIHash=function(t){return(0,r.sH)(this,void 0,void 0,(function(){var n,i;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,e.requestFingerprint()];case 1:return r.sent(),(n=new FormData).append("u",t),n.append("fp",e.FINGERPRINT_HASH),i=e,[4,fetch((0,y.ip)("@get_device_id_hash"),{body:n,headers:{"X-Requested-With":"XMLHttpRequest"},method:"POST"}).then((function(e){return e.json()})).then((function(e){return"success"===e.status?e.result.gdih.hash:""}))];case 2:return[2,i.UDI_HASH=r.sent()]}}))}))},e.requestFingerprint=function(){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){switch(t.label){case 0:return[4,Promise.all([n.e(18),n.e(170)]).then(n.bind(n,68750)).then((function(t){return t.fingerprintHashes().then((function(t){var n=t.hash,r=t.hashFull;e.FINGERPRINT_HASH=n,e.FINGERPRINT_FULL=r}))}))];case 1:return t.sent(),[2]}}))}))},e.prototype.initCaptcha=function(e,t){if(void 0===t&&(t=!1),e.length){var n=e.get(0).querySelector(".js_captcha_login");n&&(t&&n.setAttribute("data-visible","immediately"),(0,o.E)(n))}},e.prototype.showErrorMessage=function(e,t){var n=v.A.getTitle("".concat(t),null,{br:"
"});e.find(".form_data").prepend('
'.concat(n,"
"))},e.prototype.resetLoadingState=function(e){if(e){var t=T(e);t.find(".spinner").hide(),t.find('button, input[type="submit"], input[type="image"]').removeAttr("disabled")}},e.FINGERPRINT_HASH="",e.FINGERPRINT_FULL="",e.UDI_HASH="",e}();function M(){return i.A.getState().isMobile||T("#ClientInfoSwf").flashembed({height:6,src:"/swf/ClientInfo.swf",width:6},{}),new L}},78671:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var r=n(15215),i=n(85905),o=function(e){if("object"!=typeof e)return e;var t=(0,r.Cl)({},e);if(void 0!==t.global){var n=t.global;t.global=(Array.isArray(n)?n:[n]).map((function(e){return i.A.getTitle(e)}))}return"number"==typeof t.message&&(t.message=i.A.getTitle("".concat(t.message))),t}},48923:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(31179),i=n(90643),o=n(41669),a=function(){function e(){}var t;return e.getHeaderOverlayComponent=function(){return o(i.NW)},e.getComponent=function(){return o(i.Bs)},e.open=function(){this.showPopup(),(0,r.mh)(document.body)},e.hide=function(){this.isVisible()&&(this.hidePopup(),(0,r.fY)(document.body))},e.isVisible=function(){return this.getComponent().hasClass(i.q9)},e.isHide=function(){return!this.isVisible()},t=e,e.isFirstShow=!0,e.showPopup=function(){setTimeout((function(){var e=t.getComponent();t.getHeaderOverlayComponent().addClass(i.q9),t.isFirstShow?setTimeout((function(){e.addClass(i.q9),t.isFirstShow=!1;var n=e[0],r=null==n?void 0:n.querySelector(i.gq);null==r||r.focus()}),10):e.addClass(i.q9);var n=e[0],r=null==n?void 0:n.querySelector(i.gq);null==r||r.focus()}),1)},e.hidePopup=function(){t.getComponent().removeClass(i.q9),t.getHeaderOverlayComponent().removeClass(i.q9)},e}()},25551:function(e,t,n){"use strict";n.d(t,{g:function(){return r}});var r={couple:__("If you like this couple, send them love! It’s free!"),female:__("If you like this model, send her love! It’s free!"),male:__("If you like this model, send him love! It’s free!"),trans:__("If you like this model, send some love! It’s free!")}},96773:function(e,t,n){"use strict";n.d(t,{PE:function(){return i},Wz:function(){return s},n8:function(){return o},pJ:function(){return a}});var r=n(40793);function i(e){var t;return null===(t=(0,r.c)(e))||void 0===t?void 0:t.actions}function o(e){var t;return null===(t=i(e))||void 0===t?void 0:t.followButton}function a(e){var t;return null===(t=i(e))||void 0===t?void 0:t.pinModelButton}function s(e){var t;return null===(t=i(e))||void 0===t?void 0:t.subscribeOnlineNotificationButton}},40793:function(e,t,n){"use strict";n.d(t,{c:function(){return i},r:function(){return o}});var r=n(22078),i=function(e){return e.miniProfile},o=function(e){return(0,r.j)(i(e))}},53763:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});var r={miniProfile:{}}},31702:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(15215),i=n(22078);function o(e,t,n){if(void 0===n&&(n=2e3),(0,i.j)(t)){var o=t.boostTimeLeft,a=t.maxDisableTimeout,s=t.modelDisplayName,c=t.modelUsername,u=t.nextAvailableBoostTimestamp,l=t.serverTime,d=t.isAvailable,f=t.isFreeRiseAvailable,h=t.isModelReadyForBoost,p=Math.max(300,Date.now()-1e3*Number(l)-n),m={boostTimeLeftDate:o>0?Date.now()+o:null,maxDisableTimeout:a,modelDisplayName:s,modelUsername:c,nextAvailableDate:u,serverTimeDelta:p,isAvailable:d,isMemberAvailable:f,isModelAvailable:h};return(0,r.Cl)((0,r.Cl)({},e),m)}return e}},55383:function(e,t,n){"use strict";var r=n(15215),i=n(50172),o=n(92276),a=n(956),s=n(65823),c=n(33954),u=n(75451),l=function(e){function t(t){var n=e.call(this,t)||this;return n.pointersEl=[void 0,void 0],n.barRef=function(e){n.barEl=e},n.pointerLeftRef=function(e){n.pointersEl[0]=e},n.pointerRightRef=function(e){n.pointersEl[1]=e},n.trackRef=function(e){n.trackEl=e},n.handleDragStart=function(e){n.activePointerEl=e.currentTarget,document.addEventListener("mousemove",n.handleDrag),document.addEventListener("touchmove",n.handleDrag,{passive:!1}),document.addEventListener("mouseup",n.handleDragStop),document.addEventListener("touchend",n.handleDragStop)},n.handleDrag=function(e){return(0,r.sH)(n,void 0,void 0,(function(){var t,n;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return e.stopPropagation(),e.preventDefault(),t=this.getX(e),[4,this.updateStateValue((null===(n=this.activePointerEl)||void 0===n?void 0:n.classList.contains("__left"))?c.isRTLCulture?2:1:c.isRTLCulture?1:2,this.getValueByPosition(t))];case 1:return r.sent(),this.updatePosition(),[2]}}))}))},n.handleDragStop=function(e){e.stopPropagation(),e.preventDefault(),document.removeEventListener("mousemove",n.handleDrag),document.removeEventListener("touchmove",n.handleDrag),document.removeEventListener("mouseup",n.handleDragStop),document.removeEventListener("touchend",n.handleDragStop),n.activePointerEl=null,n.sendValue()},n.handleClickBar=function(e){var t,r,i,o,a,s=n,u=s.step,l=void 0===u?0:u,d=s.width,f=void 0===d?0:d,h=n.getX(e),p=n.getValueByPosition(h);h=(p-n.props.minVal)*(l||0);var m=c.isRTLCulture?parseInt((null===(r=n.pointersEl[1])||void 0===r?void 0:r.style.right)||"0",10):parseInt((null===(i=n.pointersEl[0])||void 0===i?void 0:i.style.left)||"0",10),v=f-(c.isRTLCulture?parseInt((null===(o=n.pointersEl[0])||void 0===o?void 0:o.style.left)||"0",10):parseInt((null===(a=n.pointersEl[1])||void 0===a?void 0:a.style.right)||"0",10)),g=Math.abs(m-h)o?o:st){var l=1===e?2:1;n.activePointerEl=c.isRTLCulture?n.pointersEl[e-1]:n.pointersEl[l-1],n.setState(((r={})["val".concat(l)]=t,r))}else n.setState(((i={})["val".concat(e)]=t,i))},n.updatePosition=function(){var e,t=n.step,r=void 0===t?0:t,i=n.props,o=i.maxVal,a=i.minVal,s=n.state,u=s.val1,l=void 0===u?0:u,d=s.val2,f=(l-a)*r,h=(o-(void 0===d?0:d))*r;c.isRTLCulture&&(h=(e=[f,h])[0],f=e[1]),n.trackEl&&(n.trackEl.style.left="".concat(f,"px"),n.trackEl.style.right="".concat(h,"px")),n.pointersEl[0]&&(n.pointersEl[0].style.left="".concat(f,"px")),n.pointersEl[1]&&(n.pointersEl[1].style.right="".concat(h,"px"))},n.state={val1:t.minVal,val2:t.maxVal},n}return(0,r.C6)(t,e),t.prototype.componentDidMount=function(){var e=this;setTimeout((function(){var t;if(e.rootComponent){var n=(null===(t=e.pointersEl[0])||void 0===t?void 0:t.offsetWidth)||0,r=e.props,i=r.maxVal,o=r.minVal;e.width=e.rootComponent.offsetWidth-n,e.step=e.width/(i-o),e.readValue()}}),1)},t.prototype.componentWillReceiveProps=function(e){this.activePointerEl||this.readValue(e)},t.prototype.sendValue=function(){var e=this.props,t=e.maxVal,n=e.minVal,r=e.name,i=e.onChange,o=this.state,a=o.val1,s=o.val2;i((s===t?"+":"")?a===n?"":"".concat(a):"".concat(a,"-").concat(s),r)},t.prototype.readValue=function(e){var t=this;void 0===e&&(e=this.props);var n=(e.value||"").split("-").map(Number),r=n[0],i=n[1];this.setState({val1:r||e.minVal,val2:i||e.maxVal},(function(){t.updatePosition()}))},t.prototype.render=function(){var e=this.props.maxVal,t=this.state,n=t.val1,r=void 0===n?0:n,o=t.val2,s=void 0===o?0:o,c=u.A.formatAgeRange(r,s,e);return(0,i.h)("div",{ref:this.rootComponentRef,className:"flf_range"},(0,i.h)("div",{className:"flf_range_values"},c),(0,i.h)("input",{id:"model_search_age",name:"".concat(a.x.formName,"[age]"),type:"hidden",value:""}),(0,i.h)("div",{ref:this.barRef,className:"bc_rs_bar",onClick:this.handleClickBar},(0,i.h)("div",{ref:this.pointerLeftRef,className:"bc_rs_pointer __left",onDragStart:function(e){return e.preventDefault()},onMouseDown:this.handleDragStart,onTouchStart:this.handleDragStart}),(0,i.h)("div",{ref:this.pointerRightRef,className:"bc_rs_pointer __right",onDragStart:function(e){return e.preventDefault()},onMouseDown:this.handleDragStart,onTouchStart:this.handleDragStart}),(0,i.h)("div",{ref:this.trackRef,className:"bc_rs_range_bar"})))},t}(o.I);t.A=l},65083:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var r,i=n(15215),o=n(50172),a=n(26580),s=n(71799),c=n(53336),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.ENGLISH="english",t.GERMAN="german",t.SPANISH="spanish",t.ITALIAN="italian",t.FRENCH="french",t.RUSSIAN="russian",t.ROMANIAN="romanian",t.CZECH="czech",t.SLOVAKIAN="slovakian",t.BULGARIAN="bulgarian",t.ESTONIAN="estonian",t.LATVIAN="latvian",t.LITHUANIAN="lithuanian",t.POLISH="polish",t.FINNISH="finnish",t.SERBIAN="serbian",t.SLOVENIAN="slovenian",t.DANISH="danish",t.NORWEGIAN="norwegian",t.SWEDISH="swedish",t.GREEK="greek",t.HUNGARIAN="hungarian",t.PORTUGUESE="portuguese",t.CROATIAN="croatian",t.DUTCH="dutch",t.JAPANESE="japanese",t.TURKISH="turkish",t.ARABIC="arabic",t.JEWISH="jewish",t.CHINESE="chinese",t.KOREAN="korean",t.MACEDONIAN="macedonian",t.HINDI="hindi",t.UKRAINIAN="ukrainian",t.AZERBAIJAN="azerbaijan",t.ARMENIAN="armenian",t.KAZAKH="kazakh",t.KIRGHIZ="kirghiz",t.TURKMENIAN="turkmenian",t.UZBEK="uzbek",t.ALBANIAN="albanian",t.BOSNIAN="bosnian",t.GEORGIAN="georgian",t.INDONESIAN="indonesian",t.IRISH="irish",t.ICELANDIC="icelandic",t.titles=((r={})[t.ENGLISH]=__("English"),r[t.GERMAN]=__("German"),r[t.SPANISH]=__("Spanish"),r[t.ITALIAN]=__("Italian"),r[t.FRENCH]=__("French"),r[t.RUSSIAN]=__("Russian"),r[t.ROMANIAN]=__("Romanian"),r[t.CZECH]=__("Czech"),r[t.SLOVAKIAN]=__("Slovakian"),r[t.BULGARIAN]=__("Bulgarian"),r[t.ESTONIAN]=__("Estonian"),r[t.LATVIAN]=__("Latvian"),r[t.LITHUANIAN]=__("Lithuanian"),r[t.POLISH]=__("Polish"),r[t.FINNISH]=__("Finnish"),r[t.SERBIAN]=__("Serbian"),r[t.SLOVENIAN]=__("Slovenian"),r[t.DANISH]=__("Danish"),r[t.NORWEGIAN]=__("Norwegian"),r[t.SWEDISH]=__("Swedish"),r[t.GREEK]=__("Greek"),r[t.HUNGARIAN]=__("Hungarian"),r[t.PORTUGUESE]=__("Portuguese"),r[t.CROATIAN]=__("Croatian"),r[t.DUTCH]=__("Dutch"),r[t.JAPANESE]=__("Japanese"),r[t.TURKISH]=__("Turkish"),r[t.ARABIC]=__("Arabic"),r[t.JEWISH]=__("Hebrew"),r[t.CHINESE]=__("Chinese"),r[t.KOREAN]=__("Korean"),r[t.MACEDONIAN]=__("Macedonian"),r[t.HINDI]=__("Hindi"),r[t.UKRAINIAN]=__("Ukrainian"),r[t.AZERBAIJAN]=__("Azerbaijani"),r[t.ARMENIAN]=__("Armenian"),r[t.KAZAKH]=__("Kazakh"),r[t.KIRGHIZ]=__("Kirghiz"),r[t.TURKMENIAN]=__("Turkmenian"),r[t.UZBEK]=__("Uzbek"),r[t.ALBANIAN]=__("Albanian"),r[t.BOSNIAN]=__("Bosnian"),r[t.GEORGIAN]=__("Georgian"),r[t.INDONESIAN]=__("Indonesian"),r[t.IRISH]=__("Irish"),r[t.ICELANDIC]=__("Icelandic"),r),t}(n(53767).A),l=u,d=n(12957),f=n(26616),h=n(8546),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.uniq=(1e16*Math.random()).toString(36),t.handleChange=function(e){var n=t.props,r=n.name,o=n.single,a=n.value,s=n.onChange,c=(0,i.fX)([],a||[],!0),u=e.currentTarget;o?null==s||s([u.checked?u.value:null],r):(u.checked?c.push(u.value):c=c.filter((function(e){return e!==u.value})),null==s||s(c,r))},t}return(0,i.C6)(t,e),t.prototype.getId=function(e){return"".concat(this.uniq,"_").concat(this.props.name,"_").concat(e)},t.prototype.render=function(){var e,t=this,n=this.props,r=n.className,i=n.choices,u=n.counters,f=n.itemClassModeVal,p=n.showCount,m=n.showLiveLabel,v=n.styled,g=this.props.value||[];return(0,o.h)("ul",{className:(0,h.n)((e={},e[r]=!!r,e))},(0,d.loopv)(i,(function(e){var n,r=e.k,i=e.v,d=u&&u[r],_=(0,s.F)(r);return(0,o.h)("li",{key:r,className:(0,h.n)((n={},n["__".concat(r)]=f&&r===l.PORTUGUESE,n.styled_checkbox=v,n))},(0,o.h)("input",{id:t.getId(r),checked:-1!==g.indexOf(r),type:"checkbox",value:r,onChange:t.handleChange}),(0,o.h)("label",{htmlFor:t.getId(r)},(0,o.h)("span",null),i,!!p&&!!d&&" (".concat(d).concat(m?" Live":"",")"),_&&(0,o.h)("span",{className:"ccp_b_new bc_text_badge"},(0,o.h)(a.A,{group:"tb_icon",icon:"#svg_tb_new",url:c.s8}))))})))},t.defaultProps={onChange:f.noop},t}(o.uA),m=p},34853:function(e,t,n){"use strict";var r=n(15215),i=n(50172),o=n(26580),a=n(71799),s=n(53336),c=n(94968),u=n(12957),l=n(26616),d=n(8546),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.uniq=(1e16*Math.random()).toString(36),t.handleChange=function(e){var n,r,i=t.props,o=i.extraData,a=i.uncheckable,s=i.value,c=e.currentTarget;null===(r=(n=t.props).onChange)||void 0===r||r.call(n,c.value===s&&a?null:c.value,t.props.name,o)},t}return(0,r.C6)(t,e),t.prototype.getId=function(e){return"".concat(this.uniq,"_").concat(this.props.name,"_").concat(e)},t.prototype.render=function(){var e,t=this,n=this.props,r=n.className,l=n.choices,f=n.counters,h=n.extraData,p=n.showCount,m=n.showLiveLabel,v=n.styled,g=this.props.value||"";return(0,i.h)("ul",{className:(0,d.n)((e={},e[r]=!!r,e))},(0,u.loopv)(l,(function(e){var n,r=e.k,u=e.v,l=c.A.getCategoriesIcon(r),_=f&&f[r],b=null!==_&&"object"==typeof _?_[null===(n=h.gender)||void 0===n?void 0:n[0]]:_,y=(0,a.F)(r);return(0,i.h)("li",{key:r,className:(0,d.n)({styled_radio:v})},(0,i.h)("input",{id:t.getId(r),checked:g===r,type:"radio",value:r,onClick:t.handleChange}),(0,i.h)("label",{htmlFor:t.getId(r)},(0,i.h)("span",null),(0,i.h)("p",{className:"flf_lg_text"},l&&v&&(0,i.h)(o.A,{group:"styled_radio_icon",icon:"#svg_ctg_".concat(l),url:"sprite/bc/category.svg"}),u," ",p&&!!b&&(0,i.h)("small",{className:"flf_lg_live"}," ","(",b,m?" Live":"",")"),y&&(0,i.h)("div",{className:"bc_text_badge"},(0,i.h)(o.A,{group:"tb_icon",icon:"#svg_tb_new",url:s.s8})))))})))},t.defaultProps={value:"",onChange:l.noop},t}(i.uA);t.A=f},52032:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var r,i=n(97708),o=((r={})[i.$.AGE]={maxValue:51,minValue:18,multiSelect:!1,sendAsList:!1,showCounter:!1,title:__("Age"),isAppearance:!1},r[i.$.BODY]={multiSelect:!0,sendAsList:!0,showCounter:!1,title:__("Body"),isAppearance:!0},r[i.$.BUST_SIZE]={multiSelect:!0,sendAsList:!0,showCounter:!1,title:__("Breasts"),isAppearance:!0},r[i.$.BUTT_SIZE]={multiSelect:!0,sendAsList:!0,showCounter:!1,title:__("Butt Size"),isAppearance:!0},r[i.$.CATEGORY]={multiSelect:!1,sendAsList:!1,showCounter:!0,title:__("Categories"),isAppearance:!1},r[i.$.DISPLAY_NAME]={multiSelect:!1,sendAsList:!1,showCounter:!1,title:__("Display Name"),isAppearance:!1},r[i.$.ETHNICITY]={multiSelect:!0,sendAsList:!0,showCounter:!1,title:__("Ethnicity"),isAppearance:!0},r[i.$.FULL_PRIVATES_FOR]={multiSelect:!0,sendAsList:!0,showCounter:!0,title:__("Full-Private Chat"),isAppearance:!1},r[i.$.GENDER]={multiSelect:!1,sendAsList:!0,showCounter:!0,title:__("Gender"),isAppearance:!1},r[i.$.GROUP_CHAT_FOR]={multiSelect:!0,sendAsList:!0,showCounter:!1,title:__("Group Chat"),isAppearance:!1},r[i.$.HAIR_COLOR]={multiSelect:!0,sendAsList:!0,showCounter:!1,title:__("Hair"),isAppearance:!0},r[i.$.LANG]={multiSelect:!0,sendAsList:!0,showCounter:!1,title:__("Languages"),isAppearance:!1},r[i.$.PENIS_SIZE]={multiSelect:!0,sendAsList:!0,showCounter:!1,title:__("Penis"),isAppearance:!0},r[i.$.PRIVATES_FOR]={multiSelect:!0,sendAsList:!0,showCounter:!1,title:__("Private Chat"),isAppearance:!1},r[i.$.REGION]={multiSelect:!0,sendAsList:!0,showCounter:!1,title:__("Region"),isAppearance:!1},r[i.$.SORT]={multiSelect:!1,sendAsList:!0,showCounter:!1,title:__("Sort by"),isAppearance:!1},r)},91301:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(97708),i=[r.$.AGE,r.$.BODY,r.$.BUST_SIZE,r.$.BUTT_SIZE,r.$.CATEGORY,r.$.ETHNICITY,r.$.GENDER,r.$.HAIR_COLOR,r.$.LANG,r.$.PENIS_SIZE,r.$.REGION,r.$.PRIVATES_FOR,r.$.GROUP_CHAT_FOR,r.$.FULL_PRIVATES_FOR]},97708:function(e,t,n){"use strict";var r;n.d(t,{$:function(){return r}}),function(e){e.AGE="age",e.BODY="body",e.BUST_SIZE="bust_size",e.BUTT_SIZE="butt_size",e.CATEGORY="category",e.DISPLAY_NAME="display_name",e.ETHNICITY="ethnicity",e.FULL_PRIVATES_FOR="full_privates_for",e.GENDER="gender",e.GROUP_CHAT_FOR="group_chat_for",e.HAIR_COLOR="hair_color",e.LANG="lang",e.PENIS_SIZE="penis_size",e.PRIVATES_FOR="privates_for",e.REGION="region",e.SORT="base_sort"}(r||(r={}))},75451:function(e,t,n){"use strict";var r=n(15215),i=n(19826),o=n(89836),a=n(23110),s=n(10373),c=n(63067),u=n(2268),l=n(52032),d=n(97708),f=function(){function e(){}return e.serializeFilterFormState=function(e,t,n){var r={};return t?(n||(n=Object.keys(t)),(null==n?void 0:n.length)?(n.forEach((function(n){var i=t[n];if(i&&i.length){var o=l.V[n].sendAsList?"[]":"display_name"===n?"[text]":"";r["".concat(e,"[").concat(n,"]").concat(o)]=i}})),r):r):r},e.serializeFilterFormStatePairs=function(t,n){if(!n)return[];var r=e.serializeFilterFormState(t,n);return Object.keys(r).map((function(e){var t=r[e];return{name:e,value:"string"==typeof t?encodeURIComponent(t):t.map((function(e){return encodeURIComponent(e)}))}}))},e.isSelectedGenderMatch=function(e,t){return void 0===t&&(t=""),!t||-1!==e.indexOf(t)},e.sanityState=function(e,t){if(void 0===e&&(e={}),!t||!t.fields)return e;if(e.gender&&(e.gender=[a.n.ALL,a.n.COUPLES,a.n.FEMALE,a.n.MALE,a.n.TRANSSEXUAL].includes(e.gender)?e.gender:a.n.FEMALE),e=Object.keys(e).reduce((function(t,n){var i;return(0,r.Cl)((0,r.Cl)({},t),(0,c.r)(n,e)&&e[n]&&e[n].length?((i={})[n]=e[n],i):{})}),{}),this.isSelectedGenderMatch([a.n.FEMALE,a.n.COUPLES,a.n.TRANSSEXUAL],e.gender)||(delete e.bust_size,delete e.butt_size),this.isSelectedGenderMatch([a.n.MALE,a.n.COUPLES,a.n.TRANSSEXUAL],e.gender)||delete e.penis_size,e.gender&&e.gender.length){var n=this.getChoicesForGender(t.fields.body.choices,e.gender).map((function(e){return e.k}));e.body&&(e.body=e.body.filter((function(e){return n.includes(e)})),e.body.length||delete e.body)}else delete e.category;return e.gender&&this.getCategoriesForGender(t.fields.category.choices,e.gender,void 0).find((function(t){return t.k===e.category}))||delete e.category,e},e.getChoicesForGender=function(e,t){if(void 0===e&&(e=[]),void 0===t&&(t=null),t){var n=(t=t===a.n.ALL?a.n.FEMALE:t)===a.n.COUPLES?"f":t[0];return e.filter((function(e){return!e.g||n in e.g}))}return e},e.getCategoriesForGender=function(t,n,r){void 0===t&&(t=[]),void 0===n&&(n=null);var a=i.A.getState();return r||(r=(0,o.Hh)(a)),r&&!n&&(n=(0,s.n)(r)?r:(0,o.q5)(a)),e.getChoicesForGender(t,n)},e.hasSelected=function(e){var t;return void 0===e&&(e=null===(t=i.A.getState().flFilterRealListingState)||void 0===t?void 0:t.flFilterState),!!e&&!!Object.keys(e).find((function(t){return(0,c.r)(t,e)&&e[t]&&String(e[t]).length}))},e.closestNode=function(t,n,r){if(!t)return null;var i=(t.matches||t.matchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector).bind(t);return r&&i(r)?null:i(n)?t:e.closestNode(t.parentElement,n,r)},e.diffFilterState=function(e,t){function n(e){return Object.keys(e).reduce((function(t,n){var i;return(0,r.Cl)((0,r.Cl)({},t),(0,c.r)(n,e)&&e[n]&&e[n].length?Array.isArray(e[n])?e[n].reduce((function(e,t){var i;return(0,r.Cl)((0,r.Cl)({},e),((i={})["".concat(n,".").concat(t)]=1,i))}),{}):((i={})["".concat(n,".").concat(e[n])]=1,i):{})}),{})}var i=n(e),o=n(t),a={added:[],deleted:[]};return Object.keys((0,r.Cl)((0,r.Cl)({},i),o)).forEach((function(e){i[e]&&!o[e]?a.deleted.push(e):!i[e]&&o[e]&&a.added.push(e)})),a},e.clearByKey=function(e,t){var n,r=t.split("."),i=r[0],o=r[1];if(!e)return e;if(null===(n=l.V[i])||void 0===n?void 0:n.multiSelect){if((0,c.r)(i,e)){var a=e[i];Array.isArray(a)&&(e[i]=a.filter((function(e){return e!==o})))}}else delete e[i];return e},e.orderKeyToLabel=function(e,t){var n,r;try{var i=e.split("."),o=i[0],a=i.slice(1),s=o,c=a.join("."),f=(null===(n=t.fields)||void 0===n?void 0:n[o].choices)?t.fields[o].choices.find((function(e){return e.k===c})):null;switch(s){case"age":var h=(c||"").split("-").map((function(e){return e?Number(e):void 0})),p=h[0],m=void 0===p?l.V[d.$.AGE].minValue||0:p,v=h[1],g=void 0===v?l.V[d.$.AGE].maxValue||0:v;return this.formatAgeRange(m,g);case"display_name":return"".concat(__("Search"),": ").concat(c);case"full_privates_for":var _=f||{},b=_.k,y=_.v,A=(null==b?void 0:b.split(/[+-]/).map((function(e){return parseInt(e,10)})))||[];m=A[0],g=A[1];return Number.isFinite(m)?Number.isFinite(g)?__("Full-Private Chat: %min%-%max% %tokens_plural%",{max:g,min:m,tokens_plural:u.kX.pluralise("tokens",g)}):__("Full-Private Chat: %min%+ %tokens_plural%",{min:m,tokens_plural:u.kX.pluralise("tokens",m)}):"".concat(l.V[s].title,": ").concat(y);case"gender":case"region":return(null==f?void 0:f.v)?f.v:void 0;case"group_chat_for":var S=f||{},E=(b=S.k,y=S.v,(null==b?void 0:b.split(/[+-]/).map((function(e){return parseInt(e,10)})))||[]);m=E[0],g=E[1];return Number.isFinite(m)?Number.isFinite(g)?__("Group Chat: %min%-%max% %tokens_plural%",{max:g,min:m,tokens_plural:u.kX.pluralise("tokens",g)}):__("Group Chat: %min%+ %tokens_plural%",{min:m,tokens_plural:u.kX.pluralise("tokens",m)}):"".concat(l.V[s].title,": ").concat(y);case"privates_for":var w=f||{},C=(b=w.k,y=w.v,(null==b?void 0:b.split(/[+-]/).map((function(e){return parseInt(e,10)})))||[]);m=C[0],g=C[1];return Number.isFinite(m)?Number.isFinite(g)?__("Private Chat: %min%-%max% %tokens_plural%",{max:g,min:m,tokens_plural:u.kX.pluralise("tokens",g)}):__("Private Chat: %min%+ %tokens_plural%",{min:m,tokens_plural:u.kX.pluralise("tokens",m)}):"".concat(l.V[s].title,": ").concat(y);default:if(f)return"".concat(null===(r=l.V[s])||void 0===r?void 0:r.title,": ").concat(f.v)}}catch(e){console.log(e)}},e.formatAgeRange=function(e,t,n){void 0===n&&(n=l.V[d.$.AGE].maxValue||0);var r=t===n?"+":"";return e===t?"".concat(e).concat(r):r?"".concat(e," +"):"".concat(e," - ").concat(t)},e}();t.A=f},42895:function(e,t,n){"use strict";n.d(t,{O:function(){return p}});var r=n(15215),i=n(23110),o=n(18325),a=n(65361),s=n(18697),c=n(13907),u=n(70901),l=n(75451),d=n(77011),f=n(41669),h=(0,d.Q)(5e3,"default"),p=function(e,t,n,d,p,m){var v=(0,c.ip)("@listing"),g=(0,r.Cl)({},e);g.category===a.A.GROUP_SEX&&g.gender===o.A.FEMALE&&(g.gender=i.n.COUPLES);var _=(0,r.Cl)((0,r.Cl)({},l.A.serializeFilterFormState(t,g,d)),{_count:1}),b=JSON.stringify(_),y=(0,u.e8)(b);if(m&&h.clearDelay(y),h.isExpired(y))h.setDelay(y),f.ajax({complete:function(){0},data:_,dataType:"json",error:function(e){(0,s._b)("Stroe Action ModelsFilter loadCountPreview failed").warn(null==e?void 0:e.statusText),p&&p(),h.clearDelay(y)},success:function(e){e&&"success"===e.status?((0,s._b)("Store Action ModelsFilter loadCountPreview success").log(e),n(e.online,e.total,e.suggested_name),h.setCache(e,y)):p&&p()},type:"get",url:v});else{var A=h.getCache(y);A&&n(A.online,A.total,A.suggested_name)}}},77011:function(e,t,n){"use strict";n.d(t,{Q:function(){return r}});var r=function(e,t){var n={},r={};return{setDelay:function(r){return void 0===r&&(r=t),n[r]=Date.now()+e},clearDelay:function(e){return void 0===e&&(e=t),n[e]=0},isExpired:function(e){return void 0===e&&(e=t),n[e]||(n[e]=0),Date.now()>n[e]},setCache:function(e,n){return void 0===n&&(n=t),r[n]=e},getCache:function(e){return void 0===e&&(e=t),r[e]}}}},27686:function(e,t,n){"use strict";n.r(t),n.d(t,{attachQuickFilter:function(){return F},attachQuickFilterSkeleton:function(){return H},detachQuickFilter:function(){return B},detachQuickFilterSkeleton:function(){return G}});var r,i,o=n(62614),a=n(98614),s=n(403),c=n(50172),u=function(){return(0,c.h)("div",{id:"fl_quick_search",className:"fl_quick_search fl_filters"},(0,c.h)("div",{className:"qs_inner"},(0,c.h)("div",{className:"bc_skeleton_quick_search"},(0,c.h)("div",{className:"sqs_fields"},(0,c.h)("div",{className:"bc_skeleton __title"},(0,c.h)("div",{className:"bcs_inner"})),(0,c.h)("div",{className:"bc_skeleton __field"},(0,c.h)("div",{className:"bcs_inner"})),(0,c.h)("div",{className:"bc_skeleton __field"},(0,c.h)("div",{className:"bcs_inner"})),(0,c.h)("div",{className:"bc_skeleton __field"},(0,c.h)("div",{className:"bcs_inner"})),(0,c.h)("div",{className:"bc_skeleton __field"},(0,c.h)("div",{className:"bcs_inner"}))),(0,c.h)("div",{className:"sqs_fields"},(0,c.h)("div",{className:"bc_skeleton __title"},(0,c.h)("div",{className:"bcs_inner"})),(0,c.h)("div",{className:"bc_skeleton __range"},(0,c.h)("div",{className:"bcs_inner"}))),(0,c.h)("div",{className:"sqs_fields"},(0,c.h)("div",{className:"bc_skeleton __title"},(0,c.h)("div",{className:"bcs_inner"})),(0,c.h)("div",{className:"bc_skeleton __field"},(0,c.h)("div",{className:"bcs_inner"})),(0,c.h)("div",{className:"bc_skeleton __field"},(0,c.h)("div",{className:"bcs_inner"}))),(0,c.h)(s.er,null))))},l=n(19826),d=n(15215),f=n(56846),h=n(52293),p=n(62899),m=n(36914),v=n(58676),g=n(18912),_=n(42481),b=n(47077),y=n(92276),A=n(22847),S=n(52032),E=n(91301),w=n(97708),C=n(75451),T=n(43381),L=n(45070),M=n(91651),k=n(21110),N=n(73424),I=n(20397),O=n(8546),P=n(41966),R=n(55383),D=n(65083),j=n(34853),x=n(41669),U=function(e){function t(){var t,n=e.apply(this,arguments)||this;return n.state={loaded:!!(null===(t=n.props.flFilterCounters)||void 0===t?void 0:t.ts)},n.quickSearchButton=".js-quick_search",n.componentDidMount=function(){return(0,d.sH)(n,void 0,void 0,(function(){var e,t,n=this;return(0,d.YH)(this,(function(r){switch(r.label){case 0:return[4,(0,M.i)("extra/dropdowns.css",document.head,void 0,(0,P.j)())];case 1:return r.sent(),setTimeout((function(){n.rootComponent&&(n.popupOuter=C.A.closestNode(n.rootComponent,"#bongacams_popup.bc_quick_search")||n.rootComponent,document.addEventListener("mousedown",n.rememberMouseDownElement),document.addEventListener("click",n.handleOuterClick))}),10),0===(null==(e=this.props.flFilterOrder)?void 0:e.length)&&l.A.action(m.J)(),(null===(t=this.props.flFilterScheme)||void 0===t?void 0:t.form_name)&&this.updateCounters(),this.updateLoadedState(),[2]}}))}))},n.updateCounters=function(e){void 0===e&&(e=n.props);var t=e.flFilterState;l.A.action(m.J)(E.W),C.A.hasSelected((0,I.pick)(t,E.W))||l.A.action(p.y)()},n.rememberMouseDownElement=function(e){n.mouseDownElement=e.target},n.handleOuterClick=function(){var e,t;!n.mouseDownElement||(null===(e=n.popupOuter)||void 0===e?void 0:e.contains(n.mouseDownElement))||(null===(t=document.querySelector(n.quickSearchButton))||void 0===t?void 0:t.contains(n.mouseDownElement))||l.A.action(f.bZ)("quick")},n.handleChange=function(e,t){l.A.action(v.d)(t,e),t!==w.$.GENDER||e||l.A.action(v.d)(w.$.CATEGORY,null),setTimeout((function(){n.updateCounters()}))},n.handleMore=function(e){e.preventDefault(),x(window).scrollTop(0),l.A.action(f.O4)("main")},n.handleReset=function(e){e.preventDefault(),e.stopPropagation(),l.A.action(h.e)(),l.A.action(p.y)()},n.handleSearch=function(e){e.preventDefault(),l.A.action(f.bZ)(),l.A.action(g.T)((0,I.pick)(n.props.flFilterState,E.W))},n}return(0,d.C6)(t,e),t.prototype.componentDidUpdate=function(e){var t,n;(null===(t=e.flFilterScheme)||void 0===t?void 0:t.form_name)!==(null===(n=this.props.flFilterScheme)||void 0===n?void 0:n.form_name)&&this.updateCounters(),this.updateLoadedState()},t.prototype.componentWillUpdate=function(e){var t=this;(0,N.b)(e.flFilterState,this.props.flFilterState)||setTimeout((function(){return t.updateCounters(e)}),1)},t.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.rememberMouseDownElement),document.removeEventListener("click",this.handleOuterClick)},t.prototype.updateLoadedState=function(){var e;(null===(e=this.props.flFilterCounters)||void 0===e?void 0:e.ts)&&!this.state.loaded&&this.setState({loaded:!0})},t.prototype.fieldDescriptionToProps=function(e){var t,n,r,i=this.props,o=i.flFilterCountersScheme,a=void 0===o?{}:o,s=i.flFilterScheme,c=void 0===s?{}:s,u=i.flFilterState,l=void 0===u?{}:u;return{className:null===(t=c.fields)||void 0===t?void 0:t[e].class,choices:(null===(n=c.fields)||void 0===n?void 0:n[e].choices)||[],key:e,name:e,styled:null===(r=c.fields)||void 0===r?void 0:r[e].styled,value:l[e],onChange:this.handleChange,counters:a[e]}},t.prototype.getGenders=function(){var e,t,n,r=(0,d.fX)([],(null===(n=null===(t=this.props.flFilterScheme)||void 0===t?void 0:t.fields)||void 0===n?void 0:n.gender.choices)||[],!0);return r.length>2&&(e=[r[2],r[1]],r[1]=e[0],r[2]=e[1]),r},t.prototype.render=function(){var e,t,n,r,i=this.props,o=i.flFilterCounters,a=i.flFilterScheme,s=i.flFilterState,l=this.state.loaded,f=!(!(null==a?void 0:a.fields)||!l),h=!!o&&!!o.total&&!!o.ts,p=k.q.isEnabled(L.i.LISTING_PAYED_CHAT_FILTERS),m=k.q.isNew(L.i.LISTING_PAYED_CHAT_FILTERS);return(0,c.h)("div",{ref:this.rootComponentRef},!f&&(0,c.h)(u,null),f&&(0,c.h)("div",{id:"fl_quick_search",className:"fl_quick_search fl_filters"},(0,c.h)("div",{className:"qs_inner"},(0,c.h)("div",{className:"flf_fields"},(0,c.h)("div",{className:"flf_title"},S.V[w.$.GENDER].title),(0,c.h)("div",{className:"flf_list_gender"},(0,c.h)(j.A,(0,d.Cl)({},this.fieldDescriptionToProps(w.$.GENDER),{choices:this.getGenders(),showCount:!0,showLiveLabel:!0,uncheckable:!0})))),(0,c.h)("div",{className:"flf_fields"},(0,c.h)("div",{className:"flf_title"},S.V[w.$.AGE].title),(0,c.h)(R.A,{maxVal:S.V[w.$.AGE].maxValue||0,minVal:S.V[w.$.AGE].minValue||0,name:"age",value:null==s?void 0:s[w.$.AGE],onChange:this.handleChange})),(0,c.h)("div",{className:"flf_fields"},(0,c.h)("div",{className:"flf_title"},S.V[w.$.REGION].title),(0,c.h)("div",null,(0,c.h)(D.A,(0,d.Cl)({},this.fieldDescriptionToProps(w.$.REGION),{choices:null===(e=a.fields)||void 0===e?void 0:e[w.$.REGION].choices,showCount:!0,showLiveLabel:!0})))),p&&(0,c.h)("div",{className:"flf_fields"},(0,c.h)("div",{className:"flf_title"},__("Prices for privates"),m&&(0,c.h)(b.E,{icon:_.S.NEW})),(0,c.h)("div",{className:"flf_content"},(0,c.h)("div",{className:"flf_subsection"},(0,c.h)("p",{className:"flf_s_title"},S.V[w.$.PRIVATES_FOR].title),(0,c.h)(D.A,(0,d.Cl)({},this.fieldDescriptionToProps(w.$.PRIVATES_FOR),{choices:null===(t=a.fields)||void 0===t?void 0:t[w.$.PRIVATES_FOR].choices,showCount:!0,showLiveLabel:!0}))),(0,c.h)("div",{className:"flf_subsection"},(0,c.h)("p",{className:"flf_s_title"},S.V[w.$.FULL_PRIVATES_FOR].title),(0,c.h)(D.A,(0,d.Cl)({},this.fieldDescriptionToProps(w.$.FULL_PRIVATES_FOR),{choices:null===(n=a.fields)||void 0===n?void 0:n[w.$.FULL_PRIVATES_FOR].choices,showCount:!0,showLiveLabel:!0}))),(0,c.h)("div",{className:"flf_subsection"},(0,c.h)("p",{className:"flf_s_title"},S.V[w.$.GROUP_CHAT_FOR].title),(0,c.h)(D.A,(0,d.Cl)({},this.fieldDescriptionToProps(w.$.GROUP_CHAT_FOR),{choices:null===(r=a.fields)||void 0===r?void 0:r[w.$.GROUP_CHAT_FOR].choices,showCount:!0,showLiveLabel:!0}))))),(0,c.h)("div",{className:"qs_buttons"},(0,c.h)("button",{className:(0,O.n)({bt30_green:!0,mls_btn:!0,saf_params_btn:!0,__disabled:!h}),type:"button",onClick:this.handleSearch},__("Search")),(0,c.h)("button",{className:"mls_btn saf_reset",type:"button",onClick:this.handleMore},__("More Options")))),(0,c.h)("div",{className:(0,O.n)({qs_result:!0,__active:h})},(null==o?void 0:o.live)?(0,c.h)(c.FK,null,(0,c.h)("div",{className:"qs_count"},(0,c.h)(A.E,{html:__("%s1%Search result:%s2% %live% Live out of %total%",{live:(null==o?void 0:o.live)||0,s1:'',s2:"",total:(null==o?void 0:o.total)||0})})),(0,c.h)("div",{className:"qs_reset",onClick:this.handleReset},__("Reset"))):(0,c.h)("div",null,(0,c.h)("div",{className:"qs_no_results"},__("Your search returned no results.")),(0,c.h)("div",{className:"bc_flex"},(0,c.h)("div",{className:"qs_count"},(0,c.h)(A.E,{html:__("%s1%Search result:%s2% %number% Live",{number:0,s1:'',s2:""})})),(0,c.h)("div",{className:"qs_reset",onClick:this.handleReset},__("Reset")))),h&&(0,c.h)(T.W,null))))},t.defaultProps={flFilterState:{}},t=(0,d.Cg)([(0,a.Ng)("flFilterState, flFilterScheme, flFilterCountersScheme, flFilterCounters, flFilterOrder, liveTab")],t)}(y.I);function F(e){e&&(r||(r=o.w.append((0,c.h)(a.Kq,{store:l.A},(0,c.h)(U,null)),e)))}function B(){r&&(o.w.unmount(r),r=null)}function H(e){e&&(G(),i||(i=o.w.append((0,c.h)(u,null),e)))}function G(){i&&(o.w.unmount(i),i=null)}},69030:function(e,t,n){"use strict";n.r(t),n.d(t,{ModelsFilter:function(){return J}});var r,i,o=n(15215),a=n(2963),s=n(19826),c=n(56846),u=n(44697),l=n(1579),d=n(50172),f=n(46517),h=n(28577),p=n(89836),m=n(18697),v=n(8546),g=n(17402),_=n(23110),b=n(94968),y=n(42481),A=n(47077),S=n(26580),E=function(e){var t=e.code,n=e.icon,r=e.label,i=e.liveCount,o=e.url,a=e.isActive,s=e.isNew;return(0,d.h)("li",{className:"hbd_item"},(0,d.h)("a",{className:(0,v.n)({"hbd_item_link bc_flex bc_flex_items_center js-dd_link":!0,__current:a}),"data-name":t,href:o},(0,d.h)("span",{className:"hbd_item_inner bc_flex bc_flex_items_center"},n&&(0,d.h)(S.A,{group:"hbd_item_icon",icon:"#svg_ctg_".concat(n),url:"sprite/bc/category.svg"}),trans("%categories% %s1%(%live% Live)%s2%",{categories:r,live:i||0,s1:'',s2:""}),s&&(0,d.h)(A.E,{classModifier:"hbd_item_badge",icon:y.S.NEW}))))},w=n(71799),C=((r={})[_.n.MALE]="/male/",r[_.n.TRANSSEXUAL]="/trans/",r),T=(0,g.memo)((function(e){var t=e.categories,n=e.listingActiveCategory,r=e.liveTab,i=(0,g.useMemo)((function(){return t&&t.length?(0,o.fX)([],t,!0).sort((function(e,t){return e.label>t.label?1:-1})):[]}),[t]);return i.length?(0,d.h)("div",{className:"hb_drop_down js-dd_wrp"},(0,d.h)("ul",{className:"hbd_list js-spa_categories"},i.map((function(e){if(!e.slug)return null;var t=b.A.getCategoriesIcon(e.code),i=function(e,t){return(C[e]||"/")+t}(r,e.slug),a=(0,w.F)(e.code);return(0,d.h)(E,(0,o.Cl)({key:e.code,icon:t,url:i,isActive:n&&e.code===n,isNew:a},e))})))):null})),L=n(83816),M=n(18289),k=function(e,t){void 0===t&&(t=!1);var n=(0,g.useState)(!1),r=n[0],i=n[1],o=(0,g.useRef)(0),a=(0,g.useRef)(null),s=(0,g.useRef)(null),c=(0,g.useCallback)((function(){r||t||(e(),i(!0))}),[t,r,e]),u=(0,g.useCallback)((function(){r&&(o.current=0,i(!1))}),[r]),l=function(e){void 0===e&&(e=0),t||("number"==typeof e&&(o.current=Math.max(0,o.current+e)),a.current&&(window.clearTimeout(a.current),a.current=null),s.current&&(window.clearTimeout(s.current),s.current=null),0!==o.current?s.current=setTimeout(c,250):a.current=setTimeout(u,400))};return(0,g.useEffect)((function(){t&&u()}),[t,u]),{hideList:u,isOpen:r,onMouseEnter:function(){return l(1)},onMouseLeave:function(){return l(-1)}}},N=n(7819),I=function(){var e=(0,f.d4)(N.t),t=(0,f.d4)(N.Z),n=(0,f.d4)(h.em),r=(0,f.d4)(p.Hh),i=(0,f.d4)(p.q5),o=(0,f.d4)((function(e){return e.isSPAProcessing})),a=!!document.querySelector(".js-cybersale"),s=(0,L.i)(r,i),c=(0,M.H)(s,e),u=c.loadCounters,l=c.isLoading,g=k(u,o),_=g.isOpen,b=g.onMouseEnter,y=g.onMouseLeave;return(0,m._b)("HeaderCategories render").log({categoriesGender:s,headerCategories:t,isLoading:l}),(0,d.h)("div",{className:(0,v.n)({hb_item:!0,__categories:!0,__open:_&&!l&&!o,__shift:a}),onMouseEnter:b,onMouseLeave:y},(0,d.h)("div",{className:"hb_text"},__("Categories")),!!t&&t.length>0&&(0,d.h)(T,{categories:t,listingActiveCategory:n,liveTab:s}))},O=n(98614),P=n(62614),R=!1,D=n(956);!function(e){e.MAIN_FILTER="mainFilter"}(i||(i={}));var j=n(45070),x=n(42080),U=n(21110),F=n(28812),B=void 0;function H(e){return(0,o.sH)(this,void 0,void 0,(function(){var t;return(0,o.YH)(this,(function(r){switch(r.label){case 0:return e?B?[3,2]:[4,Promise.all([n.e(167),n.e(91)]).then(n.bind(n,24777)).then((function(e){return e.NameFilterForm}))]:[2];case 1:if(t=r.sent(),B)return(0,m._b)("attachNameFilterForm race condition").error(e,B),[2];B=P.w.append((0,d.h)(O.Kq,{store:s.A},(0,d.h)(t,null)),e),r.label=2;case 2:return[2]}}))}))}var G=n(27686),V=n(33954),W=n(53336),q=n(41669),Y=function(){return Promise.resolve().then(n.bind(n,27686))},z=function(){function e(){}return e.close=function(){var e=q("#bongacams_popup.bc_quick_search");e.length>0&&q.bongacamsPopupClose(),V.isRTLCulture&&e.css({right:"auto"}),e.removeClass("bc_quick_search").removeClass("fl_filter_container"),Y().then((function(e){e.detachQuickFilter()}))},e.open=function(){q('
').prependTo(".js-quick_search").openPopup({afterDisplay:function(){var e=q("#bongacams_popup");if(e.addClass("bc_quick_search").addClass("fl_filter_container"),V.isRTLCulture){var t=q(".js-ht_items");e.css({left:"auto",right:q(window).width()-(t.offset().left+t.outerWidth())})}(0,G.attachQuickFilterSkeleton)(q.jlNamespace.$popupContent.get(0)),Y().then((function(e){(0,G.detachQuickFilterSkeleton)(),e.attachQuickFilter(q.jlNamespace.$popupContent.get(0))}))},container:q("
"),title:P.w.renderToString((0,d.h)("div",{className:"qs_title bc_flex bc_flex_items_center"},(0,d.h)(S.A,{group:"qs_icon_search",icon:"#svg_icon_search_flat",url:W.ed}),__("Quick Search"))),v2:!0,onClose:function(){s.A.action(c.bZ)("quick")}}).click().remove()},e}(),X=n(41669),K=function(){return n.e(142).then(n.bind(n,50199))},J=function(){function e(){var e=this;this._storageSchemeKey=(0,x.Y)("flFilterScheme_3",U.q.isEnabled(j.i.LISTING_PAYED_CHAT_FILTERS)?j.i.LISTING_PAYED_CHAT_FILTERS:""),this.filterSelector=".js-filter_wrap",this.sidebarSelector=".js-fl_menu",this.isAttached=!1,this.onChatOpen=function(){e.close()},this.close=function(){(0,m._b)("ModelsFilter close").log(),s.A.action(c.bZ)()},this._attachHandlers=function(){X(document).on("chat:open",e.onChatOpen),X(document).on("click",".js-filter",e.toggleMainFilter),X(document).on("click",".js-quick_search",e.toggleQuickSearch),X(document).on("click",".js-hn_search",e.toggleNameFilter),l.c.on("flActiveFilter",e._handleChangeActiveFilter),l.c.on("flFilterScheme",e._handleChangeSchemeState)},this.toggleQuickSearch=function(){(0,m._b)("ModelsFilter toggleFilter quick").log(),"quick"===s.A.getState().flActiveFilter?s.A.action(c.bZ)():s.A.action(u.U)(!1,!0,(function(){s.A.action(c.fg)("quick")}))},this.toggleMainFilter=function(){(0,m._b)("ModelsFilter toggleFilter main").log(),"main"===s.A.getState().flActiveFilter?s.A.action(c.bZ)():s.A.action(u.U)(!1,!0,(function(){s.A.action(c.fg)("main")}))},this.toggleNameFilter=function(){return(0,o.sH)(e,void 0,void 0,(function(){return(0,o.YH)(this,(function(e){switch(e.label){case 0:return(0,m._b)("ModelsFilter toggleFilter name").log({}),[4,H(X(".js-hns_result_wrp").get(0))];case 1:return e.sent(),s.A.action(c.O4)("name"),[2]}}))}))},this._handleChangeActiveFilter=function(t,n){var r=document.querySelector(e.filterSelector),o=document.querySelector(".js-filter"),u=document.querySelector(e.sidebarSelector),l={main:{hide:"main"===n.flActiveFilter&&"main"!==t.flActiveFilter,show:"main"!==n.flActiveFilter&&"main"===t.flActiveFilter},name:{hide:"name"===n.flActiveFilter&&"name"!==t.flActiveFilter,show:"name"!==n.flActiveFilter&&"name"===t.flActiveFilter},quick:{hide:"quick"===n.flActiveFilter&&"quick"!==t.flActiveFilter,show:"quick"!==n.flActiveFilter&&"quick"===t.flActiveFilter}};(0,m._b)("ModelsFilter handleChangeActiveFilter").log({burgerMenuElement:o,mainFilterElement:r,is:l}),l.main.hide?(document.body.classList.remove("__main_filter_opened"),K().then((function(e){e.detachMainFilter()})),r?(r.classList.remove("__active"),null==u||u.classList.remove("__hidden"),document.body.classList.contains("chat_collapsed")&&X("#EmbedSWFHolder").show()):(0,a.St)(i.MAIN_FILTER),null==o||o.classList.remove("__active")):l.main.show&&(document.body.classList.contains("chat_collapsed")&&X("#EmbedSWFHolder").hide(),null==o||o.classList.add("__active"),r?(document.body.classList.contains("chat_visible")||(r.classList.add("__active"),null==u||u.classList.add("__hidden")),document.body.classList.add("__main_filter_opened"),K().then((function(e){e.attachMainFilter(r)}))):(0,a.QC)({id:i.MAIN_FILTER,asyncImport:function(){return K()},callbacks:{onClose:function(){s.A.action(c.bZ)()}},options:{classes:{content:"fl_filter_container",root:"__listing_filter"},excludeOutsideClickParent:["js-filter"]}})),l.quick.hide?z.close():l.quick.show&&z.open();var d=document.querySelector(".js-search_wrp"),f=document.querySelector(".js-search_box");d&&f&&(l.name.hide?(d.classList.remove("__search"),f.classList.remove("__active")):l.name.show&&(d.classList.add("__search"),f.classList.add("__active")))},this._handleChangeSchemeState=function(t,n){var r=!Object.keys(n.flFilterScheme).length&&!!Object.keys(t.flFilterScheme).length;r&&((0,m._b)("ModelsFilter handleChangeSchemeState").log({prev:n.flFilterScheme,state:t.flFilterScheme,isFilterSchemeLoad:r}),sessionStorage.setItem(e._storageSchemeKey,JSON.stringify(t.flFilterScheme)))}}return Object.defineProperty(e,"instance",{get:function(){return this.globalInstance||(this.globalInstance=new this)},enumerable:!1,configurable:!0}),e.prototype.attach=function(){this.isAttached||(this.isAttached=!0,(0,m._b)("ModelsFilter attach").log(),this._attachHandlers(),this._restoreFilterScheme(),this._loadFlFilterScheme(),function(){if(!R){var e=document.getElementById("header_dd_categories_container");(0,m._b)("HeaderCategories attach").log(!!e),e&&(R=!0,P.w.replaceContainer((0,d.h)(O.Kq,{store:s.A},(0,d.h)(I,null)),e))}}(),D.x.attach())},e.prototype._loadFlFilterScheme=function(){var e=s.A.getState(),t=e.flFilterRealListingState,n=e.flFilterScheme;(0,m._b)("ModelsFilter loadFlFilterScheme").log({flFilterRealListingState:t,flFilterScheme:n}),n.fields||s.A.action(u.U)(!0)},e.prototype._restoreFilterScheme=function(){var e=(0,F.json_parse)(sessionStorage.getItem(this._storageSchemeKey)||"");e&&s.A.setState({flFilterScheme:e})},e}()},94211:function(e,t,n){"use strict";n.d(t,{q:function(){return r}});var r={flFilterState:{},flFilterScheme:{},flActiveFilter:"",flFilterCounters:{},flFilterOrder:[],flFilterCountersScheme:{},flFilterRealListingState:{flFilterState:{},flFilterCounters:{},flFilterOrder:[]}}},92227:function(e,t,n){"use strict";n.d(t,{R:function(){return w}});var r=n(50172),i=n(17402),o=n(65362),a=n(81363),s=n(12307),c=n(15514),u=n(80554),l=n(83966),d=n(92340),f=n(44133),h=n(8546),p=(0,i.memo)((function(e){var t,n=e.hintRef,i=e.className,o=e.direction,a=e.isMobile,s=e.onClose;return a?null:(0,r.h)("div",{className:"popover-light pl-blue popover_pin js-pin_hint ".concat(i),ref:n},(0,r.h)("div",{className:(0,h.n)((t={corner:!0},t[o]=o,t))}),(0,r.h)("div",{className:"inner popover-light-inner"},(0,r.h)("div",{className:"popover_title"},__("Pin model")),(0,r.h)("div",{className:"popover_text"},trans("Pinned models with %s1%online%s2% status are displayed on top of the homepage. You can pin up to %count% models in each category.",{s1:'',s2:"",count:f.$})),(0,r.h)("a",{className:"popover_link",href:"javascript:void(0)",onClick:s},__("Ok, got it%_popover_pin_%"))))})),m=n(54022),v=n(99882),g=n(13907),_=n(88481),b=n(842),y=n(33954),A=function(e){e.stopPropagation()},S=(0,i.memo)((function(e){var t,i,o=e.hintRef,a=e.className,s=e.direction,c=e.isMobile,u=e.onClose,l=(i=(0,_.s7)({loader:function(){return Promise.all([(0,m.AT)((0,g.ip)("@follower_pinned_models_popup")),Promise.all([n.e(89),n.e(149)]).then(n.bind(n,76305)),(0,v.Z)(b.Y.USER_LIST_MOBILE),y.isRTLCulture?(0,v.Z)(b.Y.USER_LIST_MOBILE_RTL):Promise.resolve()])},popupId:"pinned_models",popupOptions:{animationClass:"__show_anim"}}).openLoadPopupMobile,{handleTooManyPinNotificationClick:function(){return i()}}).handleTooManyPinNotificationClick;return c?(0,r.h)("div",{className:"what_view __pin js-pin_hint",ref:o,onClick:l},(0,r.h)("div",{className:"what_view_inner"},(0,r.h)("span",{className:"what_view_close __inner",onClick:u}),(0,r.h)("p",{className:"title wvp_title"},__("You’ve reached the maximum number of pinned models.")),(0,r.h)("p",{dangerouslySetInnerHTML:{__html:__("To pin a new model, you have to %a1%delete one of the previously pinned ones%a2%.",{a1:'',a2:""})}})),(0,r.h)("div",{className:"what_view_corner"})):(0,r.h)("div",{className:"popover-light popover_pin __pp_limit js-pin_hint ".concat(a),ref:o,onClick:function(e){return e.stopPropagation()}},(0,r.h)("div",{className:(0,h.n)((t={corner:!0},t[s]=s,t))}),(0,r.h)("div",{className:"inner popover-light-inner"},(0,r.h)("span",{className:"popover-light-close",onClick:u}),(0,r.h)("div",{className:"popover_title"},__("You’ve reached the maximum number of pinned models.")),(0,r.h)("div",{className:"popover_text"},trans("To pin a new model, you have to %a1%delete one of the previously pinned ones%a2%.",{a1:''),a2:""},{click:A}))))})),E=n(41669),w=(0,i.memo)((function(e){var t=e.pinHintElement,n=e.pinHintType,f=e.placementType,h=e.isMobile,m=void 0!==h&&h,v=e.onClose,g=f===c.p.PROFILE?"top":"bot",_=f===c.p.CHAT?"__chat":"",b=(0,i.useRef)(null),y=(0,i.useCallback)((function(){var e;null===(e=null==t?void 0:t.classList)||void 0===e||e.remove("__no_hint"),v()}),[t,v]),A=(0,i.useCallback)((function(e){e.stopPropagation(),e.preventDefault(),n===s.Y.EXPLANATION&&(d.A.registerEvent(l.A.PIN_USER_HINT),f===c.p.LISTING&&t&&E(t).parents(".js-ls_thumb").removeClass("__lst_visible")),y()}),[t,n]);return(0,o.j)({ref:b,callback:y,condition:n===s.Y.TOO_MANY_PINS}),(0,i.useEffect)((function(){return n!==s.Y.EXPLANATION&&(f===c.p.LISTING?a.k.timer.pause():[c.p.CHAT,c.p.MINI_PROFILE].includes(f)&&E("#bChat").on(u.R.ON_CURRENT_CHATHOST_CHANGE,y),E(document).on("chat:visibility",y)),function(){null==t||t.classList.remove("__no_hint"),n===s.Y.TOO_MANY_PINS&&(f===c.p.LISTING?a.k.timer.resume():f&&[c.p.CHAT,c.p.MINI_PROFILE].includes(f)&&E("#bChat").off(u.R.ON_CURRENT_CHATHOST_CHANGE,y),E(document).off("chat:visibility",y))}}),[n,f,y]),n===s.Y.TOO_MANY_PINS?(0,r.h)(S,{hintRef:b,className:_,direction:g,isMobile:m,onClose:A}):n===s.Y.EXPLANATION?(0,r.h)(p,{hintRef:b,className:_,direction:g,isMobile:m,onClose:A}):null}))},82200:function(e,t,n){"use strict";n.d(t,{Q:function(){return a}});var r,i=n(23110),o=n(18325),a=((r={})[o.A.COUPLE_F_F]=i.n.COUPLES,r[o.A.COUPLE_F_M]=i.n.COUPLES,r[o.A.COUPLE_M_M]=i.n.MALE,r[o.A.COUPLE_T_T]=i.n.TRANSSEXUAL,r[o.A.FEMALE]=i.n.FEMALE,r[o.A.MALE]=i.n.MALE,r[o.A.TRANSSEXUAL]=i.n.TRANSSEXUAL,r[i.n.COUPLES]=i.n.COUPLES,r)},12307:function(e,t,n){"use strict";var r;n.d(t,{Y:function(){return r}}),function(e){e.TOO_MANY_PINS="too_many_pins",e.EXPLANATION="explanation"}(r||(r={}))},61554:function(e,t,n){"use strict";var r;n.d(t,{t:function(){return r}}),function(e){e.ALREADY_PINNED="already_pinned",e.TOO_MANY_PINS="too_many_pins"}(r||(r={}))},15514:function(e,t,n){"use strict";var r;n.d(t,{p:function(){return r}}),function(e){e.CHAT="chat",e.LISTING="listing",e.MINI_PROFILE="mini_profile",e.PROFILE="profile"}(r||(r={}))},72668:function(e,t,n){"use strict";n.d(t,{f:function(){return a}});var r=n(15839),i=n(19826),o=n(22393);function a(e){if(!e||!o.A.getList().includes(e))return!1;var t=i.A.getState(),n=t.isModerator,a=t.isAuthenticated,s=t.flFilterState,c=t.isMobile,u=t.mobileFilter,l=(0,r.Sh)(t),d=(0,r.ip)(t),f=(0,r.yH)(t);if(!a||n||l||d||f||location.pathname.includes("tubechat"))return!1;if(c){var h=u.submittedFields;if(Object.keys(h).some((function(e){return"gender"!==e})))return!1}else if(Object.keys(s).some((function(e){return!["gender","category"].includes(e)})))return!1;return!0}},44307:function(e,t,n){"use strict";n.d(t,{Y:function(){return a}});var r=n(18325),i=n(82200),o=n(23110);function a(e){return[i.Q[e],[r.A.COUPLE_F_F].includes(e)?o.n.FEMALE:null].filter(Boolean)}},30119:function(e,t,n){"use strict";n.d(t,{e:function(){return a}});var r=n(50172),i=n(17402),o=n(8546),a=(0,i.memo)((function(e){var t=e.children,n=e.playerStatus,i=e.onClick;return(0,r.h)("button",{className:(0,o.n)({vpr_btn:!0,__pause:"playing"===n,__play:"playing"!==n}),onClick:i},t)}))},5710:function(e,t,n){"use strict";n.d(t,{e:function(){return r.e}});var r=n(30119)},4071:function(e,t,n){"use strict";n.d(t,{_:function(){return a}});var r=n(50172),i=n(17402),o=n(8546),a=(0,i.memo)((function(e){var t=e.volume,n=e.isMuted,i=e.onButtonMuteClick,a=e.onVolumeUpdate;return(0,r.h)("div",{className:"vpr_volume"},(0,r.h)("button",{className:(0,o.n)({"vpr_btn __volume":!0,__volume_muted:n}),onClick:i}),(0,r.h)("div",{className:"vpr_volume_bar",onClick:function(e){var t=e.target.getBoundingClientRect().width,n=100*e.offsetX/t/100;a(n)}},(0,r.h)("div",{className:"vpr_volume_bar __progress",style:{width:"".concat(100*t,"%")}})))}))},41462:function(e,t,n){"use strict";n.d(t,{_:function(){return r._}});var r=n(4071)},61104:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=n(17402),i=function(e){var t=e.currentTime,n=e.duration,i=e.playerStatus,o=e.videoElement,a=e.onPause,s=e.setCurrentTime,c=e.setDuration,u=(0,r.useMemo)((function(){return"stopped"===i||0===n?0:t/n*100}),[t,n,i]),l=function(e){return n*e/100},d=(0,r.useCallback)((function(e){o.currentTime=e,s(e)}),[s,o]),f=(0,r.useCallback)((function(){d(0),a()}),[a,d]),h=(0,r.useCallback)((function(){n>0&&s(o.currentTime)}),[n,s,o]),p=(0,r.useCallback)((function(){"number"==typeof n&&0!==n||c(o.duration)}),[n,c,o.duration]);return(0,r.useEffect)((function(){return null==o||o.addEventListener("progress",p),function(){null==o||o.removeEventListener("progress",p)}}),[o,p]),(0,r.useEffect)((function(){return null==o||o.addEventListener("timeupdate",h),function(){null==o||o.removeEventListener("timeupdate",h)}}),[o,h]),(0,r.useEffect)((function(){return null==o||o.addEventListener("ended",f),function(){null==o||o.removeEventListener("ended",f)}}),[o,f]),(0,r.useEffect)((function(){n||c(o.duration)}),[n,c,o]),{actions:{seekTimeHandler:function(e){var t=e.offsetX,n=e.target.getBoundingClientRect().width,r=l(100*t/n);d(r)},onDragEndHandler:function(e){var t=l(e);d(t),"playing"===i&&o.play()},onDragHandler:function(e){var t=l(e);d(t)},onDragStartHandler:function(e){"playing"===i&&o.pause();var t=l(e);d(t)}},states:{progressValue:u}}}},82597:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var r=n(50172),i=n(70642),o=n(61104),a=function(e){var t=e.variant,n=(0,o.e)(e),a=n.actions,s=a.seekTimeHandler,c=a.onDragEndHandler,u=a.onDragHandler,l=a.onDragStartHandler,d=n.states.progressValue;return"modern"===t?(0,r.h)(i.z,{progress:d,onDrag:u,onDragEnd:c,onDragStart:l}):(0,r.h)("div",{className:"vpr_progressbar",onClick:s},(0,r.h)("div",{className:"vpr_progress __current",style:{transform:"translateX(".concat(-1*(100-d),"%)")}}))}},9427:function(e,t,n){"use strict";n.d(t,{b:function(){return r.b}});var r=n(82597)},2887:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(50172),i=n(34519),o=function(e){var t=e.currentTime,n=e.duration,o=e.separator,a="".concat((0,i.Y)(t||0)," ").concat(o," ").concat((0,i.Y)(n||0));return(0,r.h)("div",{className:"vpr_timer"},a)}},19009:function(e,t,n){"use strict";n.d(t,{N:function(){return r.N}});var r=n(2887)},60908:function(e,t,n){"use strict";n.d(t,{H:function(){return r}});var r=function(e){var t=e.volume,n=e.isMuted,r=e.onButtonMuteClick,i=e.onVolumeUpdate,o=function(e){return Number((e/100).toFixed(2))};return{actions:{handleOnDrag:function(e){i(o(e))},handleOnDragEnd:function(e){i(o(e))},handleOnDragStart:function(e){n&&r(),i(o(e))}},states:{volumeInPercent:100*t,isMutedByVolume:0===t}}}},16231:function(e,t,n){"use strict";n.d(t,{Y:function(){return l}});var r=n(50172),i=n(17402),o=n(26580),a=n(70642),s=n(47885),c=n(8546),u=n(60908),l=(0,i.memo)((function(e){var t=e.isMuted,n=e.onButtonMuteClick,i=(0,u.H)(e),l=i.actions,d=l.handleOnDrag,f=l.handleOnDragEnd,h=l.handleOnDragStart,p=i.states,m=p.volumeInPercent,v=p.isMutedByVolume;return(0,r.h)("div",{className:"bc_flex bc_flex_items_center"},(0,r.h)("button",{className:(0,c.n)({"vpr_btn __volume":!0,__volume_muted:t||v}),onClick:n},(0,r.h)(o.A,{group:"vpr_btn_icon",icon:t||v?"#svg_pfm_mute":"#svg_pfm_unmute",url:s.YZ})),(0,r.h)("div",{className:"vpr_sound_progress"},(0,r.h)(a.z,{progress:t?0:m,onDrag:d,onDragEnd:f,onDragStart:h})))}))},71198:function(e,t,n){"use strict";n.d(t,{Y:function(){return r.Y}});var r=n(16231)},7391:function(e,t,n){"use strict";n.d(t,{$:function(){return a}});var r=n(15215),i=n(50172),o=n(8546),a=function(e){function t(t){var n=e.call(this,t)||this;return n.timer=0,n.moveForShow=function(){n.props.isFullscreen&&(n.timer&&clearTimeout(n.timer),n.setState({visible:!0}),n.state.controlsHover||(n.timer=window.setTimeout((function(){n.setState({visible:!1})}),1e3)))},n.handleControlsMouseEnter=function(){n.setState({controlsHover:!0})},n.handleControlsMouseLeave=function(){n.setState({controlsHover:!1})},n.state={controlsHover:!1,visible:!t.isFullscreen},n}return(0,r.C6)(t,e),t.prototype.componentDidMount=function(){document.addEventListener("mousemove",this.moveForShow)},t.prototype.componentWillUnmount=function(){document.removeEventListener("mousemove",this.moveForShow)},t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.children,a=t.style;return(0,i.h)("div",{className:(0,o.n)((e={vpr_controls:!0,__visible:this.state.visible},e[String(n)]=Boolean(n),e)),style:a,onMouseEnter:this.handleControlsMouseEnter,onMouseLeave:this.handleControlsMouseLeave},r)},t}(i.uA)},59131:function(e,t,n){"use strict";n.d(t,{$:function(){return r.$}});var r=n(7391)},37126:function(e,t,n){"use strict";n.d(t,{$r:function(){return s.$},Nz:function(){return o.N},YL:function(){return a.Y},bJ:function(){return i.b},eY:function(){return r.e}});var r=n(5710),i=(n(41462),n(9427)),o=n(19009),a=n(71198),s=n(59131)},58258:function(e,t,n){"use strict";n.d(t,{l:function(){return l}});var r=n(50172),i=n(17402),o=n(5710),a=n(41462),s=n(9427),c=n(19009),u=n(59131),l=(0,i.memo)((function(e){var t=e.className,n=e.currentTime,i=e.duration,l=e.playerStatus,d=e.videoElement,f=e.volume,h=e.isFullscreen,p=e.isMuted,m=e.onButtonMuteClick,v=e.onPause,g=e.onPlayClick,_=e.onToggleFullscreenClick,b=e.onVolumeUpdate,y=e.setCurrentTime,A=e.setDuration;return(0,r.h)(u.$,{className:t,isFullscreen:h},(0,r.h)(o.e,{playerStatus:l,onClick:g}),(0,r.h)(s.b,{currentTime:n,duration:i,playerStatus:l,videoElement:d,onPause:v,setCurrentTime:y,setDuration:A}),(0,r.h)(c.N,{currentTime:n,duration:i,separator:"-"}),(0,r.h)(a._,{volume:f,isMuted:p,onButtonMuteClick:m,onVolumeUpdate:b}),(0,r.h)("button",{className:"vpr_btn __fullscreen",onClick:_}))}))},98729:function(e,t,n){"use strict";n.d(t,{l:function(){return r.l}});var r=n(58258)},44324:function(e,t,n){"use strict";n.d(t,{t:function(){return u}});var r=n(50172),i=n(17402),o=n(26580),a=n(47885),s=n(8546),c=n(37126),u=(0,i.memo)((function(e){var t,n=e.className,i=e.currentTime,u=e.duration,l=e.playerStatus,d=e.videoElement,f=e.volume,h=e.isFullscreen,p=e.isMuted,m=e.onButtonMuteClick,v=e.onPause,g=e.onPlayClick,_=e.onToggleFullscreenClick,b=e.onVolumeUpdate,y=e.setCurrentTime,A=e.setDuration;return(0,r.h)(c.$r,{className:(0,s.n)((t={player_panel_wrp:!0},t[String(n)]=n,t)),isFullscreen:h},(0,r.h)(c.bJ,{currentTime:i,duration:u,playerStatus:l,variant:"modern",videoElement:d,onPause:v,setCurrentTime:y,setDuration:A}),(0,r.h)("div",{className:"player_panel_controls bc_flex bc_flex_items_center bc_flex_justify_s_between"},(0,r.h)("div",{className:"bc_flex bc_flex_items_center"},(0,r.h)(c.eY,{playerStatus:l,onClick:g},"playing"!==l&&(0,r.h)(o.A,{group:"vpr_btn_icon",icon:"#svg_pfm_play_bold",url:a.YZ}),"playing"===l&&(0,r.h)(o.A,{group:"vpr_btn_icon",icon:"#svg_pfm_pause",url:a.YZ})),(0,r.h)(c.Nz,{currentTime:i,duration:u,separator:"/"})),(0,r.h)("div",{className:"bc_flex"},(0,r.h)(c.YL,{volume:f,isMuted:p,onButtonMuteClick:m,onVolumeUpdate:b}),(0,r.h)("button",{className:"vpr_btn __fullscreen",onClick:_},(0,r.h)(o.A,{group:"vpr_btn_icon",icon:h?"#svg_pfm_fullscreen_on":"#svg_pfm_fullscreen",url:a.YZ})))))}))},29118:function(e,t,n){"use strict";n.d(t,{t:function(){return r.t}});var r=n(44324)},13613:function(e,t,n){"use strict";n.d(t,{e:function(){return c}});var r=n(15215),i=n(50172),o=n(17402),a=n(98729),s=n(29118),c=(0,o.memo)((function(e){var t=e.variant,n=(0,r.Tt)(e,["variant"]);return"modern"===t?(0,i.h)(s.t,(0,r.Cl)({},n)):(0,i.h)(a.l,(0,r.Cl)({},n))}))},48298:function(e,t,n){"use strict";n.d(t,{e:function(){return r.e}});var r=n(13613)},99451:function(e,t,n){"use strict";n.d(t,{f:function(){return c}});var r=n(15215),i=n(50172),o=n(92276),a=n(13309),s=n(22706),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderSources=function(){var e=t.props,n=e.sources;return e.isHls?null:n.filter((function(e){return e.type!==a.H.StreamType})).map((function(e){return(0,i.h)("source",{key:"".concat(e.src,"_").concat(e.type),src:e.src,type:e.type})}))},t.renderTracks=function(){var e;return null===(e=t.props.tracks)||void 0===e?void 0:e.map((function(e){return(0,i.h)("track",{key:"__TRACK_".concat(e.src),default:e.default,kind:e.type,src:e.src})}))},t}return(0,r.C6)(t,e),t.prototype.componentDidMount=function(){this.rootComponent&&(this.rootComponent.setAttribute("playsinline",""),this.rootComponent.setAttribute("webkit-playsinline",""),this.props.setVideoElement(this.rootComponent))},t.prototype.render=function(){var e=this.props,t=e.currentTime,n=e.playerStatus,r=e.sources,o=e.togglePlaying,c=e.isMuted,u=r.find((function(e){return e.type===a.H.StreamType})),l=!!s.BrowserDetect.isIOS()&&Boolean(u);return(0,i.h)("video",{ref:this.rootComponentRef,className:"playing"===n||t>0?"vpr_video __played":"vpr_video __stopped",muted:c,src:l?u.src:void 0,onClick:o},!l&&this.renderSources(),this.renderTracks())},t}(o.I)},15903:function(e,t,n){"use strict";n.d(t,{f:function(){return r.f}});var r=n(99451)},13309:function(e,t,n){"use strict";var r;n.d(t,{H:function(){return r}}),function(e){e.StreamType="video/m3u8"}(r||(r={}))},65831:function(e,t,n){"use strict";n.d(t,{D:function(){return h}});var r=n(15215),i=n(50172),o=n(92276),a=n(26580),s=n(47885),c=n(22706),u=n(8546),l=n(71998),d=n(48298),f=n(15903),h=function(e){function t(t){var n=e.call(this,t)||this;return n.hls=null,n.attachHandlers=function(){var e=(0,l.OX)();if((0,l.iB)()&&(null==e?void 0:e.fullscreenchange)){var t=e.fullscreenchange;setTimeout((function(){var e;null===(e=n.fullScreenElement)||void 0===e||e.addEventListener(t,n.updateFullscreen,!1)}))}},n.detachHandlers=function(){var e,t=(0,l.OX)();if((0,l.iB)()&&(null==t?void 0:t.fullscreenchange)){var r=t.fullscreenchange;null===(e=n.fullScreenElement)||void 0===e||e.removeEventListener(r,n.updateFullscreen,!1)}},n.setVideoElement=function(e){n.setState({videoElement:e})},n.setCurrentTime=function(e){n.setState({currentTime:e})},n.setDuration=function(e){n.setState({duration:e})},n.updateFullscreen=function(){n.setState({isFullscreen:(0,l.FR)()})},n.changeFullScreenOnIOS=function(){var e=n.state.videoElement;e&&(e.requestFullscreen?e.requestFullscreen():e.webkitEnterFullscreen?e.webkitEnterFullscreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT))},n.handleFullscreen=function(){var e=c.BrowserDetect.isIOS(),t=n.props.isRestoreScrollFullScreen&&!e;e?n.changeFullScreenOnIOS():(t&&!n.state.isFullscreen&&n.setState({lastScroll:window.scrollY}),(0,l.iB)()?(0,l.nv)(!n.state.isFullscreen,n.fullScreenElement).then((function(){t&&n.state.isFullscreen&&window.scrollTo(0,n.state.lastScroll)})).catch((function(e){n.setState({isFullscreen:!n.state.isFullscreen})})):n.setState({isFullscreen:!n.state.isFullscreen}))},n.handleFullscreenButtonClick=function(e){e.stopPropagation(),n.handleFullscreen()},n.play=function(){var e=n.props.isHls;n.state.isClickedPlay||(n.setState({isClickedPlay:!0}),e?n.playHls():n.playDefault())},n.pause=function(){var e=n.state,t=e.playerStatus,r=e.videoElement;if(r&&"playing"===t){var i=n.props.onStatusChange;r.pause(),n.setState({playerStatus:"paused"}),null==i||i("paused")}},n.togglePlaying=function(){"playing"===n.state.playerStatus?n.pause():n.play()},n.toggleMuted=function(){var e=n.state.isMute;n.state.videoElement.muted=!e,n.setState({isMute:!e})},n.setVolume=function(e){n.setState({volume:e},(function(){n.state.videoElement.volume=e}))},n.getPlayerPanelHiddenClassName=function(){var e=n.props,t=e.variant,r=e.isPlayerPanelHidden,i=n.state.playerStatus;return"modern"!==t||"boolean"!=typeof r||"stopped"===i||r?"":"__show"},n.render=function(){var e,t,r=n.props,o=r.className,c=r.poster,l=r.sources,h=r.style,p=r.tracks,m=r.typePlayBtn,v=r.variant,g=void 0===v?"default":v,_=r.waterMark,b=r.onMouseMove,y=n.state,A=y.currentTime,S=y.duration,E=y.playerStatus,w=y.videoElement,C=y.volume,T=y.isClickedPlay,L=y.isFullscreen,M=y.isMute;return(0,i.h)("div",{ref:n.rootComponentRef,className:(0,u.n)((e={bc_video_player:!0,__fullscreen:L},e[String(o)]=o,e["__".concat(g)]=g,e)),style:h,onMouseMove:b},(0,i.h)("div",{className:"vpr_container"},(0,i.h)(f.f,{currentTime:A,playerStatus:E,sources:l,togglePlaying:n.togglePlaying,tracks:p,isHls:Boolean(n.hls),isMuted:M,setVideoElement:n.setVideoElement}),(0,i.h)("div",{className:(0,u.n)({vpr_plugimage:!0,__hidden:!("playing"!==E&&A<=0)}),onClick:n.play},c&&"string"==typeof c&&(0,i.h)("img",{key:c,className:"vpr_poster",alt:"",src:c}),Array.isArray(c)&&(0,i.h)("picture",null,c.filter((function(e){return!e.default})).map((function(e){return(0,i.h)("source",{key:e.src,srcSet:e.src,type:e.type})})),c.filter((function(e){return e.default})).map((function(e){return(0,i.h)("img",{key:e.src,className:"vpr_poster",alt:"",src:e.src})})))),"stopped"===E&&T&&(0,i.h)("div",{className:"vpr_loading"}),"playing"!==E&&!T&&(0,i.h)("div",{className:(0,u.n)({vpr_btn:!0,__modern:"modern"===g,__play_circle:"circle"===m&&"modern"!==g,__play_large:"circle"!==m&&"modern"!==g}),onClick:n.play},"circle"===m&&(0,i.h)(a.A,{group:"vpr_btn_icon",icon:"#svg_pfm_play",url:s.YZ}),"modern"===g&&(0,i.h)(a.A,{group:"vpr_btn_icon",icon:"#svg_pfm_play_bold",url:s.YZ}))),w&&(0,i.h)(d.e,{className:n.getPlayerPanelHiddenClassName(),currentTime:A,duration:S,playerStatus:E,variant:g,videoElement:w,volume:C,isFullscreen:L,isMuted:M,onButtonMuteClick:n.toggleMuted,onPause:n.pause,onPlayClick:n.togglePlaying,onToggleFullscreenClick:n.handleFullscreenButtonClick,onVolumeUpdate:n.setVolume,setCurrentTime:n.setCurrentTime,setDuration:n.setDuration}),_&&(0,i.h)("div",{className:(0,u.n)((t={},t["wm_skin_".concat(_)]=Boolean(_),t["vpr_watermark watermark_skin"]=!0,t))}))},n.callbackCalledCount=0,n.state={currentTime:0,duration:t.duration||0,lastScroll:0,playerStatus:"stopped",progress:0,volume:1,isClickedPlay:!1,isFullscreen:!1,isMute:Boolean(c.BrowserDetect.isSafari())},n}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"fullScreenElement",{get:function(){var e=this.props.fullscreenContainer,t=void 0===e?null:e;return t&&t.contains(this.rootComponent)?t:this.rootComponent},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n,r;t.isFullscreen!==this.state.isFullscreen&&(null===(r=(n=this.props).onFullscreenChange)||void 0===r||r.call(n,this.state.isFullscreen))},t.prototype.componentDidMount=function(){var e=this;this.props.autoplay&&this.setState({isMute:!0},(function(){e.play()})),this.attachHandlers()},t.prototype.componentWillUnmount=function(){this.hls&&this.hls.destroy(),this.detachHandlers()},t.prototype.initHls=function(){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,Promise.all([n.e(38),n.e(176)]).then(n.t.bind(n,6693,23))];case 1:return e.sent(),this.hls=this.props.isHls&&new Hls({startLevel:0}),[2]}}))}))},t.prototype.playHls=function(){return(0,r.sH)(this,void 0,void 0,(function(){var e,t,n,i,o=this;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return e=this.state,t=e.playerStatus,n=e.videoElement,(i=this.props.sources.filter((function(e){return"video/m3u8"===e.type})))[0].src?"stopped"!==t?[3,3]:this.hls?[3,2]:[4,this.initHls()]:[3,4];case 1:r.sent(),r.label=2;case 2:this.hls.loadSource(i[0].src),this.hls.attachMedia(n),this.hls.on(Hls.Events.MANIFEST_PARSED,(function(){return o.playDefault})),r.label=3;case 3:return this.playDefault(),[3,5];case 4:throw Error("Undefined stream src");case 5:return[2]}}))}))},t.prototype.incrementCallbackCount=function(){this.callbackCalledCount+=1},t.prototype.updatePlayerStatusToPlay=function(){var e=this.props,t=e.afterPlayCallback,n=e.onStatusChange;this.setState({playerStatus:"playing",isClickedPlay:!1}),null==n||n("playing"),t&&t(this.callbackCalledCount),this.incrementCallbackCount()},t.prototype.playDefault=function(){var e=this,t=this.state,n=t.playerStatus,r=t.videoElement;r&&"playing"!==n&&(c.BrowserDetect.detectIE()?(r.play(),this.updatePlayerStatusToPlay()):r.play().then((function(){e.updatePlayerStatusToPlay()})).catch((function(e){0})))},t}(o.I)},16711:function(e,t,n){"use strict";n.d(t,{D:function(){return r.D}});var r=n(65831)},4088:function(e,t,n){"use strict";n.d(t,{T:function(){return a},f:function(){return o}});var r,i=n(32461),o=[],a=((r={default:4e3})[i.$.BNG_17440]=null,r)},32461:function(e,t,n){"use strict";var r;n.d(t,{$:function(){return r}}),function(e){e.BNG_11071="bng_11071",e.BNG_17440="bng_17440",e.BT_3600="bt_3600"}(r||(r={}))},58138:function(e,t,n){"use strict";n.d(t,{G:function(){return l},f:function(){return u}});var r,i,o=n(63067),a=n(32461),s=function(){return Promise.all([n.e(110),n.e(394)]).then(n.bind(n,73052))},c=((r={})[a.$.BNG_17440]=((i={})[0]=function(){return Promise.all([n.e(110),n.e(393)]).then(n.bind(n,28513))},i),r),u=function(e){return!!(0,o.r)(e,c)},l=function(e){var t=e.activePoll,n=e.componentKey,r=e.questions,i=void 0===r?{}:r,a=e.isStarted?n:"0";if(!t||!u(t))return null;if(!Object.keys(i).length)return null;var l=c[t];return(0,o.r)(a,l)?l[a]:s}},15648:function(e,t,n){"use strict";n.d(t,{O:function(){return g}});var r=n(15215),i=n(50172),o=n(98614),a=n(19826),s=n(30740),c=n(76316),u=n(85418),l=n(45842),d=n(62614),f=n(4088),h=n(58138),p=n(75209),m=!1,v=document.getElementById("news_im_view"),g=function(){return(0,r.sH)(void 0,void 0,void 0,(function(){var e,t,g,_,b;return(0,r.YH)(this,(function(y){switch(y.label){case 0:return m?[2,!1]:(v||(v=document.getElementById("news_im_view")),v?(e=a.A.getState().user,t=(0,r.Cl)({},e.pollQuestions),(null==(g=t?Object.keys(t):null)?void 0:g.length)&&(_=g.find(h.f))?(b=t[_],delete t[_],(0,c.s)({pollQuestions:t}),(0,h.f)(_)?(m=!0,[4,(0,s.loadNewsImStylesheets)()]):[2,!1]):[2,!1]):[2,!1]);case 1:return y.sent(),(0,u.Oy)(!0),(0,p.q)(b,_),n.e(318).then(n.bind(n,3908)).then((function(e){var t=e.Poll;f.f.includes(_)&&a.A.action(l.d)({isStarted:!0}),d.w.append((0,i.h)(o.Kq,{store:a.A},(0,i.h)(t,{newsImContainer:v})),v)})),[2,!0]}}))}))}},75209:function(e,t,n){"use strict";n.d(t,{q:function(){return c}});var r=n(19826),i=n(96998),o=n(13907),a=n(45842);function s(e,t){return"".concat(e,"[").concat(t.join(":"),"]")}var c=function(e,t){var n=r.A.getState().pollData;if(e){var c=t||n.activePoll,u=(0,o.ip)("@ajax_im_poll_get_questions?poll_key=".concat(c));if(u&&"#"!==u){r.A.action(a.d)({isLoading:!0});var l={};e.questions.forEach((function(e){l[e]=!0})),(0,i.mN)(u,{body:l,method:"POST",onSuccess:function(t){t?r.A.action(a.d)({activePoll:c,componentKey:s(e.currentStep,e.questions),currentStep:e.currentStep,questionKey:e.questions[0],questions:t,totalSteps:e.totalSteps,isLoading:!1,isStarted:e.currentStep>1}):r.A.action(a.d)({isFinished:!0,isLoading:!1})}})}}}},91286:function(e,t,n){"use strict";n.d(t,{e:function(){return r}});var r={profileVideos:{videosList:null}}},45038:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});var r={profileWall:{createAlbumButton:{},followButton:{},followers:{},followRedButton:{},gifts:{},lastBroadcastRecentlyText:"",loversButton:{},pinModelButton:{},profileMedia:{},profileVideos:{},protectedAlbums:{},sharedAlbums:{},snapshotDocuments:{},subscribeOnlineNotificationButton:{},username:""}}},49503:function(e,t,n){"use strict";n.d(t,{E:function(){return o}});var r=n(33954),i=n(17402),o=function(e){var t=e.progress,n=e.onDrag,o=e.onDragEnd,a=e.onDragStart,s=(0,i.useState)(0),c=s[0],u=s[1],l=(0,i.useState)(!1),d=l[0],f=l[1],h=(0,i.useRef)(null),p=(0,i.useRef)(null),m=(0,i.useRef)(null),v=(0,i.useRef)(!1),g=(0,i.useRef)(c),_=(0,i.useCallback)((function(e){m.current=p.current.getBoundingClientRect();var t=(e-m.current.left)/m.current.width,n=t<0?0:t,i=Math.min(n,1),o=Math.max(0,n),a=100*Math.min(o,i);return r.isRTLCulture?100-a:a}),[]),b=(0,i.useCallback)((function(e){g.current=e,u(e)}),[]),y=function(e){var t=_(e.clientX);b(t),null==n||n(t)},A=function(){null==o||o(g.current),f(!1),v.current=!1,document.removeEventListener("mousemove",y,!1),document.removeEventListener("mouseup",A,!1)};return(0,i.useEffect)((function(){if(p.current){return h.current=new ResizeObserver((function(){m.current=p.current.getBoundingClientRect()})),h.current.observe(p.current),function(){var e;null===(e=h.current)||void 0===e||e.disconnect()}}}),[]),(0,i.useEffect)((function(){g.current!==t&&b(t)}),[t,b]),{actions:{handleTrackMouseDown:function(e){e.preventDefault(),function(e){v.current=!0;var t=_(e);f(!0),b(t),null==a||a(t)}(e.clientX),document.addEventListener("mousemove",y,!1),document.addEventListener("mouseup",A,!1)}},refs:{nodeRef:p},states:{progressPercentState:c,isNoTransition:d}}}},74978:function(e,t,n){"use strict";n.d(t,{z:function(){return c}});var r=n(50172),i=n(17402),o=n(8546),a=n(33954),s=n(49503),c=(0,i.memo)((function(e){var t=e.isProgressHandlerVisible,n=void 0===t||t,i=(0,s.E)(e),c=i.actions.handleTrackMouseDown,u=i.refs.nodeRef,l=i.states,d=l.progressPercentState,f=l.isNoTransition,h=a.isRTLCulture?"":"-",p=a.isRTLCulture?"-":"";return(0,r.h)("div",{ref:u,className:(0,o.n)({vpr_progressbar:!0,__no_transition:f}),onMouseDown:c},(0,r.h)("div",{className:"vpr_pb_loaded"},(0,r.h)("div",{className:"vpr_pb_played",style:{transform:"translateX(".concat(h).concat(100-d,"%)")}})),n&&(0,r.h)("div",{className:"vpr_pb_handle_wrp bc_flex bc_flex_items_center",style:{transform:"translateX(".concat(p).concat(d,"%)")}},(0,r.h)("div",{className:"vpr_pb_handle"})))}))},70642:function(e,t,n){"use strict";n.d(t,{z:function(){return r.z}});var r=n(74978)},17658:function(e,t,n){"use strict";var r;n.d(t,{r:function(){return r}}),function(e){e[e.SUMMER_2023=1463]="SUMMER_2023",e[e.JULY_2023=1492]="JULY_2023",e[e.XBIZ_AWARDS_2023=1513]="XBIZ_AWARDS_2023",e[e.THREE_DAYS_OF_DISCOUNTS_2023=1527]="THREE_DAYS_OF_DISCOUNTS_2023",e[e.HALLOWEEN_2023=1543]="HALLOWEEN_2023"}(r||(r={}))},36170:function(e,t,n){"use strict";n.d(t,{C:function(){return y}});var r=n(15215),i=n(50172),o=n(17402),a=n(19826),s=n(16711),c=n(13907),u=n(8546),l=function(e){var t,n=e.avatarUrl,r=e.modelName,l=e.videoUrl,d=e.profileLink,f=e.poster,h=e.vtt,p=e.modBanner,m=a.A.getState().user,v="".concat((0,c.ip)("@member_buy_tokens")),g=m.isPaymentsDisabled?"webcamsupport":"buy_tokens",_=(0,o.useRef)(null);return(0,i.h)("div",{className:(0,u.n)((t={"bcf-popup promo_in_banner_popup":!0},t["__".concat(p)]=p,t))},(0,i.h)("div",{className:"bcf-header pibp_header bc_flex bc_flex_items_center"},__("%s1%%sign%%percent%%%s_end% Discount on Tokens!",{percent:15,s1:"",s_end:"",sign:"-"})),(0,i.h)("div",{className:"pibp_body"},(0,i.h)("div",{className:"pibp_video",ref:_},(0,i.h)(s.D,{afterPlayCallback:function(){},fullscreenContainer:_.current,poster:f,sources:[{type:"video/mp4",src:l}],tracks:[{default:!0,type:"subtitles",src:h}],isHls:!1})),(0,i.h)("div",{className:"pibp_action bc_flex bc_flex_justify_s_between"},(0,i.h)("div",{className:"pibp_name_info bc_flex bc_flex_items_center"},(0,i.h)("a",{href:d,target:"_blank"},(0,i.h)("img",{src:n,alt:"",className:"pibp_avatar"})),(0,i.h)("a",{href:d,target:"_blank",className:"pibp_name"},r)),(0,i.h)("a",{className:"bt35 bt35_green pibp_btn",href:v,rel:g},__("Buy Tokens")))))},d=n(26580),f=n(79276),h=n(80782),p=function(e){var t,n=e.avatarUrl,r=e.modelName,l=e.videoUrl,p=e.profileLink,m=e.poster,v=e.vtt,g=e.modBanner,_=(0,o.useRef)(null),b=a.A.getState().user,y="".concat((0,c.ip)("@member_buy_tokens")),A=b.isPaymentsDisabled?"webcamsupport":"buy_tokens";return(0,i.h)("div",{className:(0,u.n)((t={"bc_confirm_popup __d_header promo_in_banner_popup":!0},t["__".concat(g)]=g,t))},(0,i.h)("div",{className:"bc_cp_header pibp_header"},__("%s1%%sign%%percent%%%s_end% Discount on Tokens!",{percent:15,s1:"",s_end:"",sign:"-"}),(0,i.h)("span",{className:"bc_cp_close",onClick:function(e){e.preventDefault(),(0,f.Jw)()}},(0,i.h)(d.A,{group:"bc_cp_close_icon",icon:"#svg_mob_popup_close"}))),(0,i.h)("div",{className:"bc_cp_body pibp_body"},(0,i.h)("div",{className:"pibp_video",ref:_},(0,i.h)(s.D,{afterPlayCallback:function(){},fullscreenContainer:_.current,poster:m,sources:[{type:"video/mp4",src:l}],tracks:[{default:!0,type:"subtitles",src:v}],isHls:!1})),(0,i.h)("div",{className:"pibp_action bc_flex bc_flex_justify_s_between"},(0,i.h)("div",{className:"pibp_name_info bc_flex bc_flex_items_center"},(0,i.h)("a",{href:p,target:"_blank"},(0,i.h)("img",{src:n,alt:"",className:"pibp_avatar"})),(0,i.h)("a",{href:p,className:"pibp_name",target:"_blank"},r)),(0,i.h)(h.$,{className:"pibp_btn",color:"success",href:y,rel:A,nativeLink:!0},__("Buy Tokens")))))},m=n(17658);var v=n(29388),g=n(99882),_=n(842),b=n(73467),y=function(e){return(0,r.sH)(void 0,void 0,void 0,(function(){var t,n;return(0,r.YH)(this,(function(i){switch(i.label){case 0:return e?(t=a.A.getState(),n=function(e){var t=a.A.getState(),n=t.lang,r="",i="",o="",s="/vtt/promo_inner_banner/",u=t.isWL?"wl":"bc",l="ru"===n?"ru":"en",d="ru"===n?"common":u,f="".concat("ru"===n?"model_ru":"model_en","/").concat(u),h="".concat(l,"/").concat(u);switch(e){case m.r.SUMMER_2023:o="ru"===n?"amgbombaaa":"Miranda-Ray",i="ru"===n?"amgbombaaa":"miranda-ray",s+="".concat(r="summer_2023","/").concat(f,"/").concat(l,".vtt");break;case m.r.JULY_2023:r="july_2023",o="ru"===n?"Dina-Bunny":"Martina-Magni",i="ru"===n?"dina-bunny":"martina-magni",h="".concat(l,"/").concat(d),s+="".concat(r,"/").concat(f,"/").concat(n,".vtt");break;case m.r.XBIZ_AWARDS_2023:i="ru"===n?"-lana-chester-":"HOTbrunette69",o="ru"===n?"-Lana-Chester":"VanessaFox__",s+="".concat(r="xbiz_awards_2023","/").concat(f,"/").concat(n,".vtt");break;case m.r.THREE_DAYS_OF_DISCOUNTS_2023:r="three_days_of_discounts_2023",o="ru"===n?"elisonni":"EvieRose",i="ru"===n?"elisonni":"evierose",h="".concat(l,"/").concat(d),s+="".concat(r,"/").concat(f,"/").concat(n,".vtt");break;case m.r.HALLOWEEN_2023:o="ru"===n?"JuliaDragon":"NicolleBarbie",i="ru"===n?"julia93cherry":"nicollebarbie",s+="".concat(r="halloween_2023","/").concat(f,"/").concat(n,".vtt")}return r?{avatarUrl:(0,c.oF)("frontend/promo_inner_banner/".concat(r,"/").concat(l,"/avatar.jpg")),poster:[{src:(0,c.oF)("frontend/promo_inner_banner/".concat(r,"/").concat(h,"/poster.webp")),type:"image/webp"},{src:(0,c.oF)("frontend/promo_inner_banner/".concat(r,"/").concat(h,"/poster.jpg")),type:"image/jpeg",default:!0}],modelName:o,profileLink:(0,c.ip)("@common_profile?username=".concat(i)),videoUrl:(0,c.WH)("promo_inner_banner/".concat(r,"/").concat(l,"/").concat(u,"/").concat(i,".mp4")),vtt:s,modBanner:r}:null}(e),n?(0,v.A)([_.Y.VIDEO_PLAYER],!0)?[3,2]:[4,(0,g.Z)(_.Y.VIDEO_PLAYER)]:[2]):[2];case 1:i.sent(),i.label=2;case 2:return t.isMobile?((0,f.JX)("promo_inner_banner_popup_mobile",(function(){return(0,o.createElement)(p,(0,r.Cl)({},n))})),[3,6]):[3,3];case 3:return(0,v.A)([_.Y.PROMO_INNER_BANNER_POPUP],!0)?[3,5]:[4,(0,g.Z)(_.Y.PROMO_INNER_BANNER_POPUP)];case 4:i.sent(),i.label=5;case 5:(0,b.Yl)((function(){return(0,o.createElement)(l,(0,r.Cl)({},n))}),{closeEsc:!0,padding:0,wrapClassName:"promo_in_banner_wrp"}),i.label=6;case 6:return[2]}}))}))}},43381:function(e,t,n){"use strict";n.d(t,{W:function(){return d}});var r=n(26580),i=n(13907),o=n(21110),a=n(53336),s=n(45070),c=n(73467),u=n(46517),l=n(50172),d=function(){var e=(0,u.d4)((function(e){return e.isAuthenticated}));if(!o.q.isEnabled(s.i.SAVE_SEARCH))return null;return e?(0,l.h)("div",{className:"saved_search_link",onClick:function(e){e.preventDefault(),e.stopPropagation(),n.e(65).then(n.bind(n,55539)).then((function(e){var t=e.default;(0,c.Yl)((function(){return(0,l.h)(t,null)}),{padding:0,closeBtn:!1,wrapClassName:"fancybox-bonga-wrap",outerCSS:{background:"transparent"}})}))}},(0,l.h)(r.A,{group:"ssl_icon",icon:"#svg_icon_save_search",url:a.ed}),__("Save search")):(0,l.h)("a",{className:"saved_search_link",href:(0,i.ip)("@member_join"),rel:"signup",target:"_self"},(0,l.h)(r.A,{group:"ssl_icon",icon:"#svg_icon_save_search",url:a.ed}),__("Save search"))}},69471:function(e,t,n){"use strict";n.r(t);var r=n(50172),i=n(17402),o=n(98614),a=n(58491),s=n(65805),c=n(8546);t.default=(0,o.Ng)((function(e){return{discountEndTime:(0,s.vw)(e),discountHolidaySubType:(0,s.Aw)(e),discountPercent:(0,s.ns)(e),isAuthenticated:e.isAuthenticated,isComingSoon:(0,s.Zh)(e),isCybersaleHoliday:(0,s.X3)(e),isDiscountTimerVersion:(0,s.LY)(e)}}))((0,i.memo)((function(e){var t,n=e.discountEndTime,i=e.discountHolidaySubType,o=e.discountPercent,s=e.isAuthenticated,u=e.isComingSoon,l=e.isCybersaleHoliday,d=e.isDiscountTimerVersion,f=(0,a.c)(n,s,l,u),h=f.hours,p=f.minutes,m=f.seconds,v=f.onBannerClick;return n||d?(0,r.h)("div",{className:(0,c.n)((t={banner_timer:!0,__start_soon:u},t["__".concat(i)]=i,t)),onClick:v},(0,r.h)("div",{className:"bnt_title"},u&&trans("Coming %s1%soon%s1_end%",{s1:'',s1_end:""}),!u&&trans("%s1%-%perc%%%s2% Discount",{perc:o,s1:'',s2:""})),n&&(0,r.h)("div",{className:"bnt_body bc_flex"},(0,r.h)("div",{className:"bnt_item"},(0,r.h)("div",{className:"bnt_i_title"},h),(0,r.h)("div",{className:"bnt_i_desc"},(0,r.h)("div",{className:"bnt_i_desc_inner"},(0,r.h)("span",{className:"bnt_i_text_wrp","data-text-after":__("seconds%_banner_timer_%"),"data-text-before":__("minutes%_banner_timer_%")},(0,r.h)("span",{className:"bnt_i_text","data-text-before":__("hrs")},__("hours%_banner_timer_%")))))),(0,r.h)("div",{className:"bnt_item"},(0,r.h)("div",{className:"bnt_i_title"},p),(0,r.h)("div",{className:"bnt_i_desc"},(0,r.h)("div",{className:"bnt_i_desc_inner"},(0,r.h)("span",{className:"bnt_i_text_wrp","data-text-after":__("seconds%_banner_timer_%"),"data-text-before":__("hours%_banner_timer_%")},(0,r.h)("span",{className:"bnt_i_text","data-text-before":__("mins")},__("minutes%_banner_timer_%")))))),(0,r.h)("div",{className:"bnt_item"},(0,r.h)("div",{className:"bnt_i_title"},m),(0,r.h)("div",{className:"bnt_i_desc"},(0,r.h)("div",{className:"bnt_i_desc_inner"},(0,r.h)("span",{className:"bnt_i_text_wrp","data-text-after":__("minutes%_banner_timer_%"),"data-text-before":__("hours%_banner_timer_%")},(0,r.h)("span",{className:"bnt_i_text","data-text-before":__("secs")},__("seconds%_banner_timer_%")))))))):null})))},69889:function(e,t,n){"use strict";n.d(t,{_u:function(){return i},Ay:function(){return r.default},bf:function(){return f}});var r=n(69471),i=".js-banner_timer_wrp",o=n(15215),a=n(50172),s=n(98614),c=n(19826),u=n(62614),l=function(){return Promise.resolve().then(n.bind(n,69471))},d=null;function f(e){return(0,o.sH)(this,void 0,void 0,(function(){var t,n;return(0,o.YH)(this,(function(r){switch(r.label){case 0:return d&&(u.w.unmount(d),d=null),e?[4,l().then((function(e){return e.default}))]:(h(),[2]);case 1:return t=r.sent(),h(),n=u.w.renderNode((0,a.h)(s.Kq,{store:c.A},(0,a.h)(t,null)),e),d=n.element,[2,n]}}))}))}function h(e){void 0===e&&(e=document.documentElement);var t=e.querySelector(i);t||u.w.unmount(t)}},403:function(e,t,n){"use strict";n.d(t,{er:function(){return s},p_:function(){return c}});var r=n(63489),i=n(8546),o=n(50172),a=function(e){var t,n=e.className;return(0,o.h)("div",{className:(0,i.n)((t={},t[n]=Boolean(n),t))},(0,o.h)(r.E,null))},s=function(e){var t,n=e.className;return(0,o.h)(a,{className:(0,i.n)((t={bc_btn_skeleton:!0},t[n]=!!n,t))})},c=(n(17402),n(12957),function(){return(0,o.h)("div",{className:"bc_skeleton_settings_row"},(0,o.h)(r.E,{className:"__head"}),(0,o.h)(r.E,null))})},39316:function(e,t,n){"use strict";n.d(t,{E:function(){return o}});var r=n(8546),i=n(50172),o=function(e){var t,n=e.className;return(0,i.h)("div",{className:(0,r.n)((t={bc_skeleton:!0},t[n]=Boolean(n),t))},(0,i.h)("div",{className:"bcs_inner"}))}},63489:function(e,t,n){"use strict";n.d(t,{E:function(){return r.E}});var r=n(39316)},9534:function(e,t,n){"use strict";n.r(t),n.d(t,{closeHotWordsHint:function(){return s},init:function(){return u}});var r=n(15215),i=n(31780),o=n(19826),a=n(41669);function s(e){void 0===e&&(e=!1);var t=a(".popHint"),n=t.find(".close");e&&t.removeClass("fadeInTop"),n.length&&n.click()}function c(e,t){var n=o.A.getState().streamOptions.isMobileStream;a(e).toggleClass("__terms_reminder",t),a(e).toggleClass("__mobile_stream",t&&n)}function u(){var e=o.A.getState(),t=e.user,n=e.isModerator,r=e.isAuthenticated,c=e.isMobile?"input":"keyup";!n&&r&&a("body").on(c,".hot_word_remindable",(function(){var e=a(this).attr("data-send-message")||"";(0,i.F)(e)?a(this).showTermsReminderTooltip("model"===t.role?__("%b1%Terms of Service reminder:%b2% You may not communicate with users directly or provide your email, Skype, or phone number.",{b1:"",b2:""}):__("%b1%Keep your money safe%b2% - never pay Models outside of BongaCams with instant money transfer services, such as Western Union, PayPal, WebMoney. In the past some Models have exploited these payment methods in order to defraud Members, so BongaCams has banned them from the site.",{b1:"",b2:""})):s()}))}a.fn.showTermsReminderTooltip=function(e){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){switch(t.label){case 0:return[4,Promise.all([n.e(38),n.e(155)]).then(n.t.bind(n,37070,23))];case 1:return t.sent(),[2,a(this).each((function(t,n){var r=a(n);r.parents(".ui-dialog-buttonpane").length?r.parents(".ui-dialog-buttonpane").popHint({html:e,placement:"rightBottom"}):r.parents("#bChat").length||r.parents("#chat_bar_v2_container").length?r.parents("#bChat").hasClass("bChatModel")||a.mobile?(r.parents(".input_wrapper").popHint({html:e,placement:"topRight",onClose:function(){c(".chat-panel",!1)}}),c(".chat-panel",!0)):r.parents(".js-chat_msg_input_container").popHint({html:e,placement:"topLeft"}):r.parent().popHint({html:e,placement:"topLeft"})}))]}}))}))}},19118:function(e,t,n){"use strict";n.d(t,{Ek:function(){return b},co:function(){return l},tJ:function(){return d},U1:function(){return p},ZN:function(){return f}});var r=n(92340),i=n(83966),o=n(46517),a=n(50172),s=n(19826),c=n(62614),u=null,l=function(){var e=s.A.getState().chatTranslatorSettings;!u&&r.A.isAllowedEvent(i.A.CHAT_TRANSLATOR_HINT)&&e.isHintAvailable&&n.e(71).then(n.bind(n,56744)).then((function(e){var t=e.InstructionHints;u=c.w.append((0,a.h)(o.Kq,{store:s.A},(0,a.h)(t,null)),document.body)}))};function d(){c.w.unmount(u),u=null}var f={getOption:function(e){var t=e[0],n=e[1];return"separator"!==t?'"):""},isLanguageRTL:function(e){return["ar","iw","yi","fa","ps","ur"].includes(e)}},h=n(41669),p=function(){var e=s.A.getState().chatTranslatorSettings,t=h(".js-tr_settings_btn");(null==e?void 0:e.available)&&(null==t?void 0:t.length)&&n.e(70).then(n.bind(n,49985)).then((function(e){e.TranslatorSettings.attachButtons(t)}))},m=n(15215),v=n(4645),g=n(36852),_=n(41669),b=function(e){function t(){var n=e.call(this)||this;return _(document).on("onNoticeSocketMessage",(function(e,t){if(t&&"chtsch"===t.type){var r=t.imTranslatorEnabled,i=t.chatTranslatorEnabled,o=t.targetLang;s.A.action((function(e,t){return{chatTranslatorSettings:(0,m.Cl)((0,m.Cl)({},e.chatTranslatorSettings),t)}}))({imTranslatorEnabled:r,chatTranslatorEnabled:i,targetLang:o}),n.eventDispatch({type:"change",details:{imTranslatorEnabled:r,chatTranslatorEnabled:i,targetLang:o}})}})),t.setUrl="Bongamodels"===s.A.getState().skinName?"/api/chat-translator/save-settings":"/chat-translator/save-settings",n}return(0,m.C6)(t,e),Object.defineProperty(t,"instance",{get:function(){return this._instance=this._instance||new this},enumerable:!1,configurable:!0}),Object.defineProperty(t,"isAvailable",{get:function(){var e;return null===(e=s.A.getState().chatTranslatorSettings)||void 0===e?void 0:e.available},enumerable:!1,configurable:!0}),t.prototype.saveData=function(e,n,r,i){void 0===i&&(i=function(){return null});var o=s.A.getState().chatTranslatorSettings,a=o.chatTranslatorEnabled,c=o.imTranslatorEnabled;_.post(t.setUrl,(0,v.Z)({chatTranslatorSettings:{chat_translator_enabled:Number("chat"===e?r:a),im_translator_enabled:Number("im"===e?r:c),target_lang:n}}),i)},t.prototype.getData=function(e){var t=s.A.getState().chatTranslatorSettings,n=t.chatTranslatorEnabled,r=t.imTranslatorEnabled,i=t.targetLang,o=t.languages;return{targetLang:i||(o.length?o[0][0]:""),enabled:"im"===e?r:n}},t.setUrl="",t}(g.Q)},67960:function(e,t,n){"use strict";n.d(t,{H:function(){return r},s:function(){return i}});var r="visited_rooms",i=9},8242:function(e,t,n){"use strict";n.d(t,{Pc:function(){return l},in:function(){return h},uy:function(){return d},zb:function(){return f}});var r=n(15215),i=n(28812),o=n(56803),a=n(9613),s=n(70901),c=n(67960),u=n(12957),l=function(e,t,n){if(void 0===n&&(n=c.s),Array.isArray(e)){var i=(0,r.fX)((0,r.fX)([],e.filter((function(e){return e!==t})),!0),[t],!1).slice(-n);e.length=0,e.push.apply(e,i)}},d=function(e){var t=(0,s.n7)((0,s.cE)(e)),n=(0,i.json_parse)(((0,o.O)()?localStorage.getItem("__".concat(t))||localStorage.getItem(e):"")||(0,a.Hk)("".concat(t)));return n&&Array.isArray(n)?n=(n=(0,u.loopv)(n,(function(e){return"object"==typeof e?e.username:e}))).filter(Boolean):[]},f=function(e,t){var n=(0,s.n7)((0,s.cE)(e)),r=JSON.stringify(t);(0,o.O)()?localStorage.setItem("__".concat(n),r):(0,a.Hk)("".concat(n),r,{path:"/",expires:7,expiresType:"day"})},h=function(e){var t=d(e);return t[0]&&"object"==typeof t[0]?t.filter((function(e){return e.username})).map((function(e){return e.username})):t}},45635:function(e,t,n){"use strict";n.r(t),n.d(t,{init:function(){return c}});var r=n(13907),i=n(67960),o=n(8242),a=n(41669),s=function(){function e(){var e=this;this.refresh=function(){a("#bChat").off("onUserData",e.onUserData).on("onUserData",e.onUserData)},this.onUserData=function(){if(window.chat.performerData&&!window.chat.performerData.isVipShow){var e=window.chat.performerData;if(e.username&&e.displayName&&e.avatarUrl){e.profileAvatarUrl=(0,r.X8)(e);var t=(0,o.uy)(i.H);(0,o.Pc)(t,e.username,10),(0,o.zb)(i.H,t)}}},a(document).on("chat:initialized",this.refresh)}return Object.defineProperty(e,"instance",{get:function(){return this._instance||(this._instance=new this)},enumerable:!1,configurable:!0}),e}();function c(){s.instance.refresh()}t.default=s},20206:function(e,t,n){"use strict";n.d(t,{Be:function(){return h},Fm:function(){return E},H_:function(){return N},Hi:function(){return _},IO:function(){return i},IQ:function(){return d},NF:function(){return M},R9:function(){return k},UN:function(){return g},U_:function(){return l},W4:function(){return T},WN:function(){return b},Wh:function(){return s},Y8:function(){return u},Yj:function(){return c},dc:function(){return I},dd:function(){return a},ee:function(){return r},h9:function(){return f},iC:function(){return S},kf:function(){return y},ky:function(){return v},lV:function(){return A},m7:function(){return p},mV:function(){return o},m_:function(){return m},oN:function(){return C},pk:function(){return w},r6:function(){return O},tY:function(){return L}});var r=1e9,i=100,o=150,a=.25,s=10,c=20,u="js-chat_msg_input",l="js-smile_btn",d=7,f=6,h=5,p=800,m=356,v=320,g=20,_=1,b=100,y=500,A=1,S=1e3,E=10,w=10,C=5,T=20,L=2,M=":",k=52,N=419,I=54,O=50},8522:function(e,t,n){"use strict";n.d(t,{v:function(){return u}});var r=n(15215),i=n(19826),o=n(71136),a=n(81714),s=n(54022),c=n(13907);function u(){return(0,r.sH)(this,void 0,void 0,(function(){var e,t;return(0,r.YH)(this,(function(n){switch(n.label){case 0:if(e=i.A.getState().user.role,!a.A.isMember(e))return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,s.gQ)((0,c.ip)("api_history_get_recent_smiles"))];case 2:return(t=n.sent().data)&&t.smiles&&o.default.replace({escape:!0,message:t.smiles,replacePremium:!0,saveAsRecent:!0}),[3,4];case 3:return n.sent(),[3,4];case 4:return[2]}}))}))}},75617:function(e,t,n){"use strict";n.d(t,{y:function(){return c}});var r=n(13907),i=n(54022),o=n(9613),a=n(28812),s=function(){return Promise.resolve().then(n.bind(n,20634))};function c(){s().then((function(e){var t=e.default,n=((0,a.json_parse)(localStorage.getItem(t.storageKey)||(0,o.Hk)(t.cookieKey))||[]).map((function(e){return e.shortcut||e.icon})).reverse().join("");try{(0,i.gQ)((0,r.ip)("api_history_save_recent_smiles"),{method:"POST",body:JSON.stringify({smiles:n})})}catch(e){console.log("[### saveRequestRecentSmileys]--error------",e)}}))}},95152:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var r=n(20206),i=n(14513),o=function(e,t){void 0===t&&(t=!0);var n=null==e?void 0:e.trim();if(!n)return"";var o=n.replace((0,i.getUnicodeSmileysPattern)(),"").replace(new RegExp("(:|".concat(r.NF,")\\S+"),"g"),"");return t?o.trim():o}},20634:function(e,t,n){"use strict";n.r(t);var r=n(9613),i=n(92284),o=n(11402),a=n(28812),s=function(){function e(){this.allowedCategories=["custom_smileys"],this.getStoreKey=function(e){var t,n,r,i,a;if(!document.body)return e;var s=document.body.dataset.user||(null===(a=null===(i=null===(r=null===(n=null===(t=null===window||void 0===window?void 0:window.StoreSync)||void 0===t?void 0:t.defaultStore)||void 0===n?void 0:n.getState)||void 0===r?void 0:r.call(n))||void 0===i?void 0:i.user)||void 0===a?void 0:a.username),c=e;if(s){var u=e+"_"+(0,o.c0)(s);c=localStorage.getItem(e)?e:u}return c},e.storageKey=this.getStoreKey(e.storageKey),e.cookieKey=this.getStoreKey(e.cookieKey),e.storageReactionsKey=this.getStoreKey(e.storageReactionsKey)}return e.getInstance=function(){return e._instance||(e._instance=new this),e._instance},e.prototype.getSmileReactions=function(){var t=(0,a.json_parse)(localStorage.getItem(e.storageReactionsKey));return Array.isArray(t)?t.slice(0,e.maxRecentSmileys+1):[]},e.prototype.getAll=function(t){var n=this,o=(0,a.json_parse)(localStorage.getItem(e.storageKey)||(0,r.Hk)(e.cookieKey));return Array.isArray(o)?(t&&(o=o.filter((function(e){return(null==e?void 0:e.icon)||n.allowedCategories.includes(null==e?void 0:e.category)||i.a_.find((function(t){return t.tokens.includes(e.shortcut)}))}))),(o=o.filter((function(e){return"little_smileys"!==(null==e?void 0:e.category)}))).slice(0,e.maxRecentSmileys+1)):[]},e.prototype.setReaction=function(t){var n=this.merge(t,!0);localStorage.setItem(e.storageReactionsKey,JSON.stringify(n.slice(0,e.maxRecentSmileysInStore)))},e.prototype.set=function(t){var n=this.merge(t);localStorage.setItem(e.storageKey,JSON.stringify(n.slice(0,e.maxRecentSmileysInStore)))},e.prototype.merge=function(e,t){void 0===t&&(t=!1);var n=t?this.getSmileReactions():this.getAll(!1);if(!e)return n;if(null==e?void 0:e.icon){var r=-1,o=n.find((function(t,n){if(t.icon&&t.icon===e.icon)return r=n,!0}));return o||n.unshift(e),o&&(n.splice(r,1)[0],n.unshift(o)),n}var a=-1,s=n.find((function(t,n){if(t.shortcut===e.shortcut)return a=n,!0}));if(s){var c,u=n.splice(a,1)[0],l=null==u?void 0:u.category;if(l)return n.unshift(u),n;if(null==e?void 0:e.category)return n.unshift(e),n;if(!l&&!(null==e?void 0:e.category))(c=(0,i.vr)(e.shortcut))&&(e.category=c,n.unshift(e))}s||((c=(0,i.vr)(e.shortcut))&&(e.category=c),n.unshift(e));return n},e.prototype.remove=function(t){if(t){var n=this.getAll(!1).filter((function(e){return(null==e?void 0:e.shortcut)!==t}));localStorage.setItem(e.storageKey,JSON.stringify(n))}},e.storageKey="sm_r",e.storageReactionsKey="sm_rr",e.cookieKey="sm_r",e.maxRecentSmileys=30,e.maxRecentSmileysInStore=100,e}();t.default=s},71136:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _}});var r=n(15215),i=n(92284),o=n(14513),a=n(78005),s=n(20634),c=n(19826),u=function(){function e(){var e=this;this.set=function(t){s.default.getInstance().set(t),e.update()},this.setUnicode=function(t){void 0===t&&(t=""),s.default.getInstance().set({icon:t}),e.update()}}return e.getAll=function(e){void 0===e&&(e=!1);var t=s.default.getInstance().getAll(e);if(t)return t},e.prototype.update=function(){_.getCategory(i.sA.RECENT).collectionIm=s.default.getInstance().getAll(!0),_.getCategory(i.sA.RECENT).collection=s.default.getInstance().getAll(!1)},e.prototype.remove=function(e){if(!e)return!1;s.default.getInstance().remove(e)},e.prototype.setByShortcut=function(t,n,r,o){if(void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===o&&(o=!1),n){for(var a=_.getCategory(i.sA.GRAPHICS).collection||[],s=e.getAll(),u=a.concat(s),l=":"+t,d=0;d').concat(o.value,""))])}))}))}))},e.replace=function(t,n){void 0===n&&(n=!1);var a,s=t.message,c=[],u=[];if(!s)return s;t.escape&&(t.message=(0,d.Zn)(s),s=t.message),e.predefinedCategories.forEach((function(n){var r,u;(t.replacePremium||[i.sA.LITTLE,i.sA.CUSTOM,i.sA.UNICODE].includes(n))&&(null!==(u=null===(r=e.getCategory(n))||void 0===r?void 0:r.patterns)&&void 0!==u?u:[]).forEach((function(r){if(a=e.replaceStandartShortcut(s,r[0],r[1],t.saveAsRecent),s=a.message,t.saveAsRecent){var u=e.getSmileyListForMessage(t.message,n===i.sA.UNICODE?(0,o.getUnicodeSmileysPattern)():e.standardSmileCollectionPattern,c).smileysListForMessage;c=u}}))}));var l=e.getSmileyListForMessage(t.message,(0,o.getUnicodeSmileysPattern)(),c),f=l.smileysListForMessage,h=l.smileysCount;if(c=f,("function"==typeof t.callback||t.saveAsRecent)&&!1!==t.replaceUserSubmitted){var p=new RegExp("(:|".concat(m.NF,")([a-z0-9-_]()?)+"),"g");s=s.replace(p,(function(n){var r=n.replace(/
]/g,"");if(0===r.indexOf(m.NF))return e.removeRestrictedSmiley(r.replace(m.NF,":")),"function"==typeof t.callback&&t.callback(n.replace(":",":")),n;if(!(r=r.replace(":",""))||r.length>e.MAX_SHORTCUT_LENGTH-1)return"function"==typeof t.callback&&t.callback(n.replace(":",":")),n;if(t.saveAsRecent){var i=e.getSmileyListForMessage(t.message,e.getRegexPattern(r),c).smileysListForMessage;c=i,u.push(r)}if("function"==typeof t.callback){var o=v(".smiley-"+r);if(o.length)return o[0].outerHTML;var a=e.getUrlByShortcut(r);v(new Image).on("load",(function(){t.callback(n,this.outerHTML)})).on("error",(function(){t.callback(n),v(this).remove()})).attr("src",a).addClass("smiley smiley-graphic smiley-"+r).attr("data-token","".concat(r))}return n})),t.saveAsRecent&&c.forEach((function(t){var r=(0,o.getAllUnicodeSmileys)().includes(t);e.recent.setByShortcut(t,-1!==u.indexOf(t),n,r)}))}if(t&&t.callbackHasSmile){var g=this.getSmileysAmounts(t.message);t.callbackHasSmile((0,r.Cl)({amountSmiles:n?h:g.graphicsAmount+g.unicodeAmount,hasSmileMessage:c.filter(Boolean).length>0},g))}return t&&t.isMultiline&&(s=s.replace(/\r?\n/g,"
")),s},e.getSmileyListForMessage=function(e,t,n){for(var r,i=0;r=t.exec(e);)n[r.index]||(n[r.index]=r[0]);return n.map((function(e){null!==e&&(i+=1)})),{smileysListForMessage:n,smileysCount:i}},e.getCategory=function(t){return e.categories?e.categories[t]:null},e.getSmileyInfo=function(t,n){e.search.search({q:t,onlyGraphics:!0,complete:function(e){e&&e.length&&"function"==typeof n&&n(e[0])}})},e.getStandardSmiley=function(t){for(var n=0;n0&&(t=t.filter((function(e){return": "!==e}))),{graphicsAmount:t.length,unicodeAmount:n.length}},e.MAX_SHORTCUT_LENGTH=16,e.MAX_HINT_SMILEYS=5,e.predefinedCategories=[i.sA.LITTLE,i.sA.CUSTOM,i.sA.BIG,i.sA.TEXT,i.sA.UNICODE],e.predefinedCategoriesWithoutUnicode=[i.sA.LITTLE,i.sA.CUSTOM,i.sA.BIG,i.sA.TEXT],e.standardSmileCollection=[],e.standardSmileCollectionItems=[],e.getAPngSmileSrc=function(e){return e.hasAPNG?e.src.replace(".gif",".png"):e.src},e}(),_=g;g.initialize(),v((function(){var e=c.A.getState().isAuthenticated;g.urls.base=(0,f.ip)("@cdn_host"),g.urls.base.includes("http")||(g.urls.base="".concat(location.protocol).concat(g.urls.base)),e&&(g.urls.uploadImage=(0,f.ip)("@smile_upload"),g.urls.addSmiley=(0,f.ip)("@smile_add"),g.urls.checkShortcut=(0,f.ip)("@smile_shortcut_check"),g.urls.getList=(0,f.ip)("@smile_list")),g.init()}))},78005:function(e,t,n){"use strict";var r=n(71136),i=n(92284),o=n(41669),a=function(){function e(){this.cache={}}return e.generateCacheKey=function(t){return"".concat(t.q).concat(t.o||0).concat(t.l||e.LIMIT).concat(t.o||0).concat(t.withoutPremium?1:0)},e.prototype.search=function(t){var n=this,i={q:t.q,r:e.includeRu?1:0},a=t.isHint?null:this.getCache(t,t.onlyGraphics);if(a)return t.complete(this.trimSmileys(a)),null;if(a=[],t.onlyGraphics||(a=this.searchLocal(t)),!/^:[a-z0-9-_]+$/g.exec(":"+t.q)&&"function"==typeof t.complete)return a=this.trimSmileys(a),t.isHint||this.setCache(t,a,t.onlyGraphics),t.complete(a),null;var s=this.getCache(t,!0);return s?(t.isHint?(this.sortSmileys(s),a=a.concat(s)):(a=a.concat(s),this.sortSmileys(a)),"function"==typeof t.complete&&t.complete(this.trimSmileys(a)),null):(s=[],t.l&&(i.l=t.l),t.o&&(i.o=t.o),o.ajax({type:"GET",url:r.default.urls.search,data:i,dataType:"json",success:function(e){e&&(e.length?(s=n.convertSmileysSearchResult(e,t),n.setCache(t,s,!0),t.isHint?(n.sortSmileys(s),a=a.concat(s)):(a=a.concat(s),n.sortSmileys(a))):n.setCache(t,[],!0))},complete:function(){a=n.trimSmileys(a),t.onlyGraphics||t.isHint||n.setCache(t,a),"function"==typeof t.complete&&t.complete(a)}}))},e.prototype.convertSmileysSearchResult=function(e,t){var n=[];return e.forEach((function(e){var o=e.ct||i.sA.GRAPHICS;if(!t.isHint||!t.withoutPremium||o!==i.sA.BIG&&o!==i.sA.TEXT){var a={created:e.ca,display_name:e.dn,shortcut:e.sh,url:e.ur,username:e.un,category:o};r.default.updateCategoryCollection(o,[a]),n.push(a)}})),n},e.prototype.searchLocal=function(e){var t=[],n=[],o=[];return r.default.getCategory(i.sA.RECENT).collection.forEach((function(n){if((!e.isHint||!e.withoutPremium||n.category!==i.sA.BIG&&n.category!==i.sA.TEXT)&&n.shortcut){var r=":"===n.shortcut[0]?1:0;e.q&&n.shortcut.indexOf(e.q)!==r||(o.push(n.shortcut),n.sourceCategory=n.sourceCategory||n.category,n.category=i.sA.RECENT,t.push(n))}})),r.default.predefinedCategories.forEach((function(t){if(!e.isHint||!e.withoutPremium||t===i.sA.LITTLE){var a=r.default.getCategory(t);Array.isArray(a.predefinedCollection)&&a.predefinedCollection.forEach((function(r){if(-1===o.indexOf(r.tokens[0]))for(var i=0;it.shortcut?1:0}))},e.prototype.trimSmileys=function(e){var t=[],n=[];return e.forEach((function(e){-1===n.indexOf(e.shortcut)&&(n.push(e.shortcut),t.push(e))})),t},e.prototype.getCache=function(t,n){void 0===n&&(n=!1);var r=e.generateCacheKey(t),i=this.cache[r];return!i||(new Date).getTime()-i.stamp>e.CACHE_EXPIRED?(delete this.cache[r],null):(n?i.xhr:i.all)||null},e.prototype.setCache=function(t,n,r){void 0===r&&(r=!1);var i=e.generateCacheKey(t),o=this.cache[i],a=(new Date).getTime();(!o||!o.stamp||a-o.stamp>e.CACHE_EXPIRED)&&(o={stamp:a}),r?o.xhr=n:o.all=n,this.cache[i]=o},e.prototype.invalidateCache=function(e){var t=this;Object.keys(this.cache).forEach((function(n){-1!==n.indexOf(e)&&delete t.cache[n]}))},e.LIMIT=12,e.CACHE_EXPIRED=3e5,e.includeRu="ru"===document.documentElement.lang,e}();t.A=a},93032:function(e,t,n){"use strict";n.r(t);var r=n(15215),i=n(19826),o=n(91651),a=n(93657),s=n(33954),c=n(41669);c.fn.extend({initSmilePanel:function(e){var t=i.A.getState(),u=t.isMobile,l=t.isMobileApp;l||u||((0,o.i)("extra/smileys.css",document.body),s.isRTLCulture&&(0,o.i)("extra/arabic_smileys.css",document.body)),u&&!l&&((0,o.i)("extra/smileys_mobile.css",document.body),s.isRTLCulture&&(0,o.i)("extra/smileys_mobile_rtl.css",document.body)),this.each((function(){return(0,r.sH)(this,void 0,void 0,(function(){var t,i,o;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return t=c(this),i=null,e.unicode||(0,a.a)()?[4,Promise.all([n.e(277),n.e(349)]).then(n.bind(n,8012))]:[3,2];case 1:return i=r.sent(),[3,4];case 2:return[4,n.e(277).then(n.bind(n,2069))];case 3:i=r.sent(),r.label=4;case 4:return!i||t.data("smileys")||(o=new i.default(t,e)).$button.on("click.smileys",(function(t){o.isPanelOpen?o.hide.bind(o)():(e.onBeforeOpen&&e.onBeforeOpen(),o.open.bind(o)(t))})),[2]}}))}))}))},closeSmilePanel:function(){return this.each((function(){var e=c(this).data("smileys");e&&e.hide()}))},destroySmilePanel:function(){return this.each((function(){var e=c(this),t=e.data("smileys");t&&(t.destroy(),e.find(".js-smile_btn").off("click.smileys"))}))},renderSmileys:function(e,t){var r=this;void 0===e&&(e=!1),void 0===t&&(t=!0),Promise.resolve().then(n.bind(n,71136)).then((function(n){var o=n.default;return r.each((function(){var n,r=c(this),a=r.html().replace(/&/g,"&");if(r.hasClass("item_msg_text"))n=o.replace({message:a,replacePremium:e},!0);else{var s={message:a,replacePremium:e,replaceUserSubmitted:t};e&&(s.callback=function(e,t){if(t){r.html(r.html().replace(e,t));var n=r.closest(".jspScrollable"),o=i.A.getState();if(n.length&&n.data("jsp")){var a=n.data("jsp");a.reinitialise(),o.isMobile?a.scrollToTop():a.scrollToBottom()}else{var s=r.parents('[is_scroll_on_bottom="true"], .messages_list_wrapper');s.length&&s.scrollTop(o.isMobile?0:s.prop("scrollHeight"))}}}),n=o.replace(s)}r.html(n)}))}))}})},85273:function(e,t,n){"use strict";n.d(t,{z:function(){return u}});var r=n(50172),i=n(8546),o=n(17402),a=n(26616),s={showing:"__stage_showing",showed:"__stage_showed",hiding:"__stage_hiding",hided:"__stage_hided"},c={s:"__duration_s",m:"__duration_m",l:"__duration_l"},u=(0,o.forwardRef)((function(e,t){var n,u=e.className,l=e.animationDuration,d=void 0===l?"m":l,f=e.children,h=e.id,p=function(e){var t=e.initialStage,n=void 0===t?"showing":t,r=e.currentStage,i=e.dontAnimation,s=void 0!==i&&i,c=e.isOnlyShowingStage,u=void 0!==c&&c,l=e.handleShowingStage,d=void 0===l?a.noop:l,f=e.handleShowedStage,h=void 0===f?a.noop:f,p=e.handleHiddingStage,m=void 0===p?a.noop:p,v=e.handleHidedStage,g=void 0===v?a.noop:v,_=(0,o.useState)(s?null:n),b=_[0],y=_[1];return(0,o.useEffect)((function(){switch(b){case"showing":d();break;case"showed":h();break;case"hiding":m();break;case"hided":g()}}),[b]),(0,o.useEffect)((function(){r&&!s&&y(r)}),[r]),{stage:b,isOnlyShowingStage:u,handleAnimationEnd:function(){if(!s&&!u)switch(b){case"showing":y("showed");break;case"hiding":y("hided")}}}}(e),m=p.stage,v=p.handleAnimationEnd;return"hided"===m?null:(0,r.h)("div",{ref:t||null,id:h,className:(0,i.n)((n={bc_anim_wrap:!0},n[s[m]]=Boolean(s[m]),n[c[d]]=Boolean(c[d]),n[u]=u,n)),onAnimationEnd:v},f)}))},21458:function(e,t,n){"use strict";n.r(t),n.d(t,{ErrorBoundary:function(){return l},ErrorBoundaryRouter:function(){return f}});var r=n(15215),i=n(50172),o=n(22382),a=n(17402),s=n(91651),c=n(8546),u=function(e){var t,n=e.className,r=e.error,o=(0,a.useState)(!1),u=o[0],l=o[1];return(0,a.useLayoutEffect)((function(){(0,s.i)("extra/error_boundary.css",document.body).then((function(){l(!0)}))}),[]),(0,i.h)("section",{className:(0,c.n)((t={},t[n]=n,t["bc_flex bc_flex_column bc_flex_items_center bc_error_boundary_default_fallback"]=!0,t)),style:{opacity:u?"1":"0"}},(0,i.h)("h1",{className:"ebdf_title"},"Something was wrong!"),r&&(0,i.h)(a.Fragment,null,(0,i.h)("p",{className:"ebdf_message"},r.message),(0,i.h)("p",{className:"ebdf_stack"},r.stack)))},l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isHasError:!1},n}return(0,r.C6)(t,e),t.getDerivedStateFromError=function(e){return{error:e,isHasError:!0}},t.prototype.componentDidCatch=function(e,t){var n=this.props.sentry;this.setState({error:e,errorInfo:t}),console.error(e),(null==n?void 0:n.isEnabled)&&o.e1.instance.sendException(e,n.layout)},t.prototype.render=function(){var e=this.props,t=e.classNameDefaultFallback,n=e.children,r=e.customFallback,o=this.state,a=o.error,s=o.errorInfo,c=o.isHasError;return c&&r?r(a,s):c&&!r?(0,i.h)(u,{className:t,error:a,errorInfo:s}):n},t}(i.uA),d=n(47767),f=(0,a.memo)((function(e){var t=e.classNameDefaultFallback,n=e.customFallback,r=function(e){var t=(0,d.r5)();return(0,a.useEffect)((function(){var n;t&&(null===(n=null==e?void 0:e.sentry)||void 0===n?void 0:n.isEnabled)&&o.e1.instance.sendException(t,e.sentry.layout)}),[t,e]),{states:{error:t}}}(e).states.error;return n?n(r):(0,i.h)(u,{className:t,error:r})}))},828:function(e,t,n){"use strict";var r=n(26616),i=n(17402);t.A=function(e){var t=e.root,n=e.className,o=e.onMount,a=e.children,s=(0,i.useRef)(null),c=(0,i.useState)(!1),u=c[0],l=c[1];if(!s.current){var d=document.createElement("div");n&&(d.className=n),s.current=d}var f=(0,i.useCallback)((function(){var e=document.querySelector(t);if(e){var n=r.noop;return l((function(t){return t||(e.appendChild(s.current),n=function(){return s.current.remove()}),!0})),n}}),[t]);return(0,i.useLayoutEffect)((function(){if(u&&o&&s.current)return o(s.current)}),[u,o]),(0,i.useLayoutEffect)(f,[f]),(0,i.useEffect)(f,[f]),u?(0,i.createPortal)(a,s.current):null}},83883:function(e,t,n){"use strict";n.d(t,{d:function(){return r}});var r={END:"__pos_end",NOT_END:"__pos_not_end",START:"__pos_start",NOT_START:"__pos_not_start"}},37096:function(e,t,n){"use strict";n.d(t,{M:function(){return p}});var r=n(15215),i=n(50172),o=n(92276),a=n(83883),s=n(80554),c=n(18697),u=n(26616),l=n(8546),d=n(65823),f=n(9853),h=(0,c._b)("ScrollPanel"),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollRatio=1,t.scrollPrevPosition=0,t.scrollDirection=0,t.lastPageY=0,t._scrollInfo=null,t._prevScrollInfo=null,t.contentResizeObserver=null,t.keepBottomResizeObserver=null,t.scrollContentRef=function(e){return t.scrollContentEl=e},t.scrollBarRef=function(e){return t.scrollBarEl=e},t.scrollBarWrpRef=function(e){return t.scrollBarWrpEl=e},t.contentResizeRef=function(e){return t.contentResizeEl=e},t.handleDragBegin=function(e){var n,r;if(e.preventDefault(),e.stopPropagation(),t.scrollBarWrpEl===e.currentTarget&&t.scrollContentEl&&t.scrollBarWrpEl){var i=(0,d.N)(t.scrollBarWrpEl);if(i){var o=(null===(n=t.scrollBarEl)||void 0===n?void 0:n.clientHeight)||0,a=e.pageY-i.y1-(o/2||0);t.scrollContentEl.scrollTop=a/t.scrollRatio}}t.lastPageY=e.pageY,null===(r=t.scrollBarEl)||void 0===r||r.classList.add("__grabbed"),document.addEventListener("mousemove",t.handleDrag),document.addEventListener("mouseup",t.handleDragStop)},t.handleDrag=function(e){var n=e.pageY-t.lastPageY;t.lastPageY=e.pageY,window.requestAnimationFrame((function(){t.scrollContentEl&&(t.scrollContentEl.scrollTop+=n/t.scrollRatio)}))},t.handleDragStop=function(){var e;null===(e=t.scrollBarEl)||void 0===e||e.classList.remove("__grabbed"),document.removeEventListener("mousemove",t.handleDrag),document.removeEventListener("mouseup",t.handleDragStop)},t.setClassNameByScrollPosition=function(){if(t.scrollContentEl&&t.rootComponent&&t.props.isScrollPositionClassNameEnabled&&t._scrollInfo){var e=t._scrollInfo,n=e.clientHeight,r=e.scrollHeight,i=e.scrollTop,o=t.props.scrollPositionClassName||{},s=o.bottom,c=void 0===s?a.d.END:s,u=o.notBottom,l=void 0===u?a.d.NOT_END:u,d=o.notTop,f=void 0===d?a.d.NOT_START:d,h=o.top,p=void 0===h?a.d.START:h,m=i<=0,v=r<=i+n;p&&t.rootComponent.classList.toggle(p,m),f&&t.rootComponent.classList.toggle(f,!m),c&&t.rootComponent.classList.toggle(c,v),l&&t.rootComponent.classList.toggle(l,!v)}},t.handleCallbacksCheck=function(){if(t.scrollContentEl&&t._scrollInfo){var e=t._scrollInfo,n=e.offsetHeight,r=e.scrollHeight,i=e.scrollTop,o=t.props,a=o.isScrollPositionClassNameEnabled,s=o.isNativeScroll,c=o.onScroll,u=o.onScrollToBottom,l=o.onScrollToTop;s||(t.scrollDirection=(0,f._S)(i-t.scrollPrevPosition),t.scrollDirection&&(i<=0?null==l||l():n+i>=r&&(null==u||u())),a&&t.setClassNameByScrollPosition(),t.scrollPrevPosition=i,null==c||c())}},t._updateScrollBar=function(){var e=t.props,n=e.classBarHiddenName,r=e.scrollBarMin,i=void 0===r?0:r,o=e.withScrollPanel;if(t.scrollContentEl&&t._scrollInfo){var a=t._scrollInfo,s=a.clientHeight,c=a.scrollHeight,u=a.scrollTop;t.scrollRatio=s/c;var l=100*t.scrollRatio,d=Math.max(i,l),h=100-Math.max(0,i-l),p=(0,f.qE)(h*u/c,0,100-i);window.requestAnimationFrame((function(){var e,r;t.scrollBarEl&&(t.scrollRatio>=1?(t.scrollBarEl.classList.add("__hidden"),o&&(null===(e=t.scrollBarWrpEl)||void 0===e||e.classList.add("__hidden")),n&&t.scrollBarEl.classList.add(n)):(n&&t.scrollBarEl.classList.remove(n),t.scrollBarEl.classList.remove("__hidden"),o&&(null===(r=t.scrollBarWrpEl)||void 0===r||r.classList.remove("__hidden")),t.scrollBarEl.style.cssText="height: ".concat(d,"%; top: ").concat(p,"%;"))),t.handleCallbacksCheck()}))}},t.handleMoveBar=function(){var e=t.scrollContentEl;if(!e)return t._prevScrollInfo=null,void(t._scrollInfo=null);var n=e.clientHeight,r=e.offsetHeight,i=e.scrollHeight,o=e.scrollTop;if(!n)return t._prevScrollInfo=null,void(t._scrollInfo=null);var a=i-n-o;t._prevScrollInfo=t._scrollInfo,t._scrollInfo={clientHeight:n,offsetHeight:r,remainingBottom:a,scrollHeight:i,scrollTop:o},h.log("_handleMoveBar updateInfo",t._scrollInfo),t.props.isNativeScroll||t._updateScrollBar()},t.onScrollBarWheel=function(e){e.ctrlKey||e.shiftKey||e.defaultPrevented||(e.preventDefault(),window.requestAnimationFrame((function(){var n=t.scrollContentEl;n&&(n.scrollTop+=e.deltaY)})))},t._scrollToBottom=function(){var e=t.scrollContentEl;e&&(h.log("_scrollToBottom",t._scrollInfo,e),e.scrollTo({top:e.scrollHeight}))},t._keepScrollEnd=function(){var e=t._scrollInfo,n=t._prevScrollInfo;if(e){var r=t.props.keepScrollEndThreshold,i=void 0===r?10:r,o=e.remainingBottom<=i,a=!!n&&n.remainingBottom<=i;o||a?(h.log("_keepScrollEnd"),t._scrollToBottom()):h.log("_keepScrollEnd skip",{next:e,prev:n})}},t.renderScrollBar=function(){var e=t.props,n=e.name,r=e.withScrollPanel;return e.isNativeScroll?null:r?(0,i.h)("div",{ref:t.scrollBarWrpRef,className:"".concat(n,"_bar_wrp"),onMouseDown:r?t.handleDragBegin:u.noop,onWheel:t.onScrollBarWheel},(0,i.h)("div",{ref:t.scrollBarRef,className:"".concat(n,"_bar"),onMouseDown:t.handleDragBegin})):(0,i.h)("div",{ref:t.scrollBarRef,className:"".concat(n,"_bar"),onMouseDown:t.handleDragBegin})},t}return(0,r.C6)(t,e),t.prototype.componentDidMount=function(){if(this.handleMoveBar(),this.rootComponent){Object.defineProperty(this.rootComponent,"data-scrollbar",{value:"initialized"});var e=window.getComputedStyle(this.rootComponent);"0px"===e.height&&"0px"!==e["max-height"]&&(this.rootComponent.style.height=e["max-height"])}this.props.isRecalculateOnResize&&this.contentResizeEl&&(this.contentResizeObserver=new ResizeObserver(this.handleMoveBar),this.contentResizeObserver.observe(this.contentResizeEl)),"chat_tabs_scroll"===this.props.name&&document.addEventListener(s.R.CHAT_SCROLL_BOTTOM,this._scrollToBottom),this.props.isKeepScrollEnd?this._startKeepBottomObserver():window.addEventListener("resize",this.handleMoveBar)},t.prototype.componentWillUnmount=function(){var e;window.removeEventListener("resize",this.handleMoveBar),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragStop),document.removeEventListener(s.R.CHAT_SCROLL_BOTTOM,this._scrollToBottom),null===(e=this.contentResizeObserver)||void 0===e||e.disconnect(),this._stopKeepBottomObserver()},t.prototype.componentWillReceiveProps=function(e){this.props.isNativeScroll!==e.isNativeScroll&&(this._prevScrollInfo=null,this._scrollInfo=null,this._refreshKeepBottomObserver(e))},t.prototype.componentDidUpdate=function(){this.handleMoveBar()},t.prototype._refreshKeepBottomObserver=function(e){this.props.isKeepScrollEnd&&(h.log("_refreshKeepBottomObserver pause"),this._stopKeepBottomObserver()),e.isKeepScrollEnd?(h.log("_refreshKeepBottomObserver resume"),this._stopKeepBottomObserver(),this._startKeepBottomObserver(e)):h.log("_refreshKeepBottomObserver stop")},t.prototype._stopKeepBottomObserver=function(){var e;h.log("_stopKeepBottomObserver"),null===(e=this.keepBottomResizeObserver)||void 0===e||e.disconnect()},t.prototype._startKeepBottomObserver=function(e){var t;void 0===e&&(e=this.props),h.log("_startKeepBottomObserver",e),null===(t=this.keepBottomResizeObserver)||void 0===t||t.disconnect();var n=this.contentResizeEl;n?(this.keepBottomResizeObserver||(this.keepBottomResizeObserver=new ResizeObserver(this._keepScrollEnd)),this.keepBottomResizeObserver.observe(n),h.log("_startKeepBottomObserver observe",e)):h.warn("_startKeepBottomObserver skip",e)},t.prototype.render=function(){var e,t,n,r=this.props,o=r.className,a=r.contentClassName,s=r.wrapperClassName,c=r.blockedScroll,u=r.children,d=r.directionRTL,f=r.inlineStyles,h=r.name,p=r.withScrollPanel,m=r.isHideBarOutside,v=r.isKeepScrollEnd,g=r.isNativeScroll,_=r.isOutWrapBar,b=r.isRecalculateOnResize||v;return(0,i.h)("div",{ref:this.rootComponentRef,className:(0,l.n)((e={},e[String(o)]=o,e["".concat(h," ").concat(h,"_container")]=!g,e.__bar_next_to_wrap=!g&&_,e.__blocked=c&&!g,e.__hide_bar_outside=!g&&m,e.__rtl=d&&!g,e.__visible_track=!g&&p,e)),style:f},(0,i.h)("div",{className:(0,l.n)((t={},t[String(s)]=s,t["".concat(h,"_wrapper")]=!g,t))},(0,i.h)("div",{ref:this.scrollContentRef,className:(0,l.n)((n={},n[String(a)]=a,n["".concat(h,"_content")]=!g,n["js-sp_content"]=!0,n)),onMouseEnter:this.handleMoveBar,onScroll:this.handleMoveBar},b&&(0,i.h)("div",{ref:this.contentResizeRef},u),!b&&u),!_&&this.renderScrollBar()),_&&this.renderScrollBar())},t.defaultProps={name:"bc_scroll",scrollBarMin:10,onScroll:u.noop,onScrollToBottom:u.noop,onScrollToTop:u.noop},t}(o.I)},65771:function(e,t,n){"use strict";n.d(t,{M:function(){return r.M}});var r=n(37096)},89258:function(e,t,n){"use strict";n.d(t,{v:function(){return u}});var r=n(15215),i=n(19826),o=n(16080),a=n(80375),s=n(53079),c=n(41669),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return(0,r.C6)(t,e),Object.defineProperty(t,"isVideoOpen",{get:function(){return c("#stream-layer").is(":visible")},enumerable:!1,configurable:!0}),Object.defineProperty(t,"isChatOpen",{get:function(){return c("#mls_chatconsole").is(":visible")&&!c("body").hasClass("chat_collapsed")},enumerable:!1,configurable:!0}),Object.defineProperty(t,"hasChatLayover",{get:function(){var e=i.A.getState().layover;return!!e&&!e.wait&&!!e.visible&&["away","private","fullprivate","group","limit","offline"].indexOf(e.type)>=0},enumerable:!1,configurable:!0}),t._collapseChat=function(){var e;o.U.instance.refreshState(),i.A.getState().floatingPlayer.disabled?((0,a.qU)(),null===(e=o.U.instance)||void 0===e||e.closeFloatingPlayer(),c("body").removeClass("chat_collapsed")):(o.U.instance.enable(),(0,a.qU)())},n=t,t.restore=function(){(n.isChatOpen||n.isVideoOpen&&!o.U.instance.enabled)&&(n.hasChatLayover?n.closeChat():n._collapseChat())},t.closeChat=function(){var e,t;o.U.instance.enabled&&o.U.instance.disable(),null===(e=window.chat)||void 0===e||e.closeChat(!0),null===(t=window.chat)||void 0===t||t.closeRoom(!1,!0)},t}(s.Z)},7967:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(15215),i=n(19826),o=n(89836),a=n(38037),s=n(13907),c=function(e){function t(t,n){void 0===t&&(t=(0,a.o)());var r=i.A.getState();return e.call(this,(0,s.ip)("@homepage"),n||{liveTab:(0,o.mk)(r)},t)||this}return(0,r.C6)(t,e),t}(n(86565).N)},86565:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(15215),i=n(38037),o=function(e){function t(t,n,r){void 0===r&&(r=(0,i.o)());var o=e.call(this,t)||this;return o.url=t,o.options=n,o.isAjaxLoad=r,o}return(0,r.C6)(t,e),t}(n(69218).n)},69218:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(15215),i=n(19826),o=function(e){function t(t,n){void 0===n&&(n=!1);var r=e.call(this,t)||this;return r.url=t,r.isCloseChat=n,i.A.setState({isSPAProcessing:!0}),r}return(0,r.C6)(t,e),t}(n(65511).P)},9786:function(e,t,n){"use strict";n.d(t,{c:function(){return Se}});var r=n(71607),i=n(65511),o=n(6532),a=n(2e3),s=n(15215),c=n(60108),u=n(59614),l=n(3484),d=n(21957),f=n(65683),h=n(19826),p=n(15645),m=n(58676),v=n(28577),g=n(89836),_=n(52982),b=n(67435),y=n(41669),A=function(e){if(e){var t=document.querySelector("head");if(t){var n=e.description,r=e.title;if(n){var i=t.querySelector("title");r&&i&&(i.text=r),function(e,t,n){if(t){var r=n.querySelector('meta[name="'.concat(e,'"]'));if(r){var i=document.createElement("meta");i.name=e,i.content=t,y(r).replaceWith(i)}}}("description",n,t)}}}},S=n(56594),E=n(73324),w=n(54022),C=n(13907),T=n(23110);var L=n(53825),M=n(53520),k=n(40172),N=n(96998),I=n(17435),O=n(81363),P=n(97708),R=".js-fl_menu",D={};function j(e,t){void 0===e&&(e=h.A.getState().liveTab);var n=e,r=D[n]||{};if(r.value&&r.date&&Date.now()-r.date<5e3)return Promise.resolve(r.value);if(r.promise)return r.promise;var i=(0,s.Cl)({},e?{livetab:e}:{}),o=(0,C.ip)("@ajax_get_sidebar_options"),a=(0,C.Go)(o,i),c=(0,w.AT)(a,{abortController:t,method:"GET"}).then((function(e){var t=e.data,r=e.status;if(t&&E.A.isSuccess(r))return D[n]={date:Date.now(),value:t},t}));return D[n]={promise:c},c}var x=n(50172),U=n(98614),F=n(35014),B=n(62614);function H(e){return(0,s.sH)(this,void 0,void 0,(function(){var t,r;return(0,s.YH)(this,(function(i){switch(i.label){case 0:return e?[4,j()]:[2];case 1:return t=i.sent(),[4,n.e(173).then(n.bind(n,84069))];case 2:return r=i.sent().Sidebar,o=document.querySelector(R),B.w.unmount(o),B.w.append((0,x.h)(U.Kq,{store:h.A},(0,x.h)(r,{sidebarOptions:t})),e),F.A.instance.refresh(),[2]}var o}))}))}var G=n(18697),V=n(78191),W=n(83482),q=n(89258),Y=n(28812),z=function(e,t){if((0,G._b)("Store mapStateByElement container").info(!!e),e){var n=(e instanceof NodeList?Array.from(e):[e]).map((function(e){return Array.from(e.querySelectorAll("[data-type=initialState]"))})).flat();(0,G._b)("Store mapStateByElement stateEl").info(n),n.forEach((function(e){var n=(0,Y.json_parse)(e.innerText);(0,G._b)("Store mapStateByElement item").info(n),n&&t(n)}))}},X=n(12957);function K(e,t){var n,r=document.querySelector(e);if(!r)return!1;var i=r.cloneNode(!1);return i.innerHTML=t,null===(n=r.parentNode)||void 0===n||n.replaceChild(i,r),!0}var J=n(35172),$=function(){function e(e){this.data=e,this.createdAt=Date.now()}return Object.defineProperty(e.prototype,"isExpired",{get:function(){return Date.now()-this.createdAt>5e3},enumerable:!1,configurable:!0}),e}(),Q=function(){function e(){this.store=new Map}return e.prototype.has=function(e){var t;return!!this.store.has(e)&&(!(null===(t=this.store.get(e))||void 0===t?void 0:t.isExpired)||(this.store.delete(e),!1))},e.prototype.get=function(e){var t;return null===(t=this.store.get(e))||void 0===t?void 0:t.data},e.prototype.set=function(e,t){this.store.set(e,new $(t))},e}(),Z=function(){function e(){this.cache=new Q}return Object.defineProperty(e,"instance",{get:function(){return this._instance||(this._instance=new this)},enumerable:!1,configurable:!0}),e.prototype.load=function(e){this._makeRequest((0,s.Cl)({},e))},e.prototype._makeRequest=function(e){return(0,s.sH)(this,arguments,void 0,(function(e){var t,n,i,o,a=this,c=e.abortController,u=e.url,l=e.isDisableCache,d=e.onError,f=e.onLoad;return(0,s.YH)(this,(function(e){switch(e.label){case 0:if(r.A.assertString("".concat(this.constructor.name,"~makeRequest"),u),r.A.assert("".concat(this.constructor.name,"~makeRequest require string with >= 1 length"),u.length>=1),!l&&this.cache.has(u))return null==f||f(this.cache.get(u)),(0,G._b)("SPA Loader Http").log("cached request"),[2];t=h.A.getState().assetsHashes,n=void 0===t?{bcc:""}:t,e.label=1;case 1:return e.trys.push([1,3,,4]),i=(0,J.K)(u,"isSpa","1"),n.bcc&&(i=(0,J.K)(i,"__hp",n.bcc)),[4,fetch(i,{signal:null==c?void 0:c.signal}).then((function(e){return e.text()})).then((function(e){l||a.cache.set(u,e),null==f||f(e)}))];case 2:return e.sent(),[3,4];case 3:return o=e.sent(),null==d||d("http load - ".concat(null==o?void 0:o.message)),[3,4];case 4:return[2]}}))}))},e}(),ee=function(e,t){return e.map((function(e){return new Promise((function(n){var r=e.getAttribute(t),i=function(t){(0,G._b)("SPA ResourceReplacer load resource done").info((null==t?void 0:t.type)||"fallback",r),window.clearTimeout(o),n(e)},o=window.setTimeout(i,1e4);e.addEventListener("load",i,!1),e.addEventListener("error",i,!1)}))}))},te=n(41669),ne=function(e,t,n,r){return(0,s.sH)(void 0,void 0,void 0,(function(){var i,o,a,c,u,l,d,f,h,p,m,v,g;return(0,s.YH)(this,(function(s){switch(s.label){case 0:for(i="href"===t,o="src"===t,a=new Set(e.keys()),c=[],u=[],l=null,d=null,f=null,n[0]&&n[0].previousElementSibling&&(d=l=r.querySelector(n[0].previousElementSibling.nodeName)),h=0;h0&&"#"!==e.url,"".concat(this.constructor.name,"#prepare: incorrect url")),q.v.isChatOpen?(fe.z.show(!1),[4,(n=20,new Promise((function(e){setTimeout(e,n)})))]):[3,2];case 1:t.sent(),t.label=2;case 2:return(0,he.U)(e,"isCloseChat")&&e.isCloseChat&&q.v.isVideoOpen?q.v.closeChat():q.v.restore(),h.A.setState({isSPAProcessing:!0}),(0,de.w3)(ue.R.SPA_NAVIGATE_START,e),h.A.action(l.Rk)(null),h.A.action(l.TM)(null),h.A.action(l.e_)(null),h.A.action(l.m4)(null),h.A.action(oe.bZ)(),e.isResetFilter&&(h.A.action(ae.e)(),e.isAjaxLoad||(0,se.J)()),[2]}var n}))}))},e.prototype.onSuccess=function(e){e.isPopEvent||(0,C.l2)(e.url)===(0,C.l2)(location.href)||(0,le.GC)({},document.title,e.url,!1),e.isScrollTop&&window.scrollTo(0,0),ce.e.instance.rebind(e),(0,de.w3)(ue.R.SPA_NAVIGATE_SUCCESS,e),(0,G._b)("SPA Process Success").info(e.guid,e)},e.prototype.onComplete=function(e){h.A.setState({isSPAProcessing:!1}),fe.z.hide(),(0,de.w3)(ue.R.SPA_NAVIGATE_COMPLETE,e),(0,G._b)("SPA Process Complete").info(e.guid,e)},e.prototype.onError=function(e){(0,de.w3)(ue.R.SPA_NAVIGATE_FAILED,e),this.isAborted?(0,G._b)("SPA Process Aborted").warn(e.guid,e):(0,G._b)("SPA Process Failed").error(e.guid,e)},e}(),me={listingAvailableLiveTabs:d.wA,listingDisplayTypeForm:function(e,t){return{listingDisplayTypeForm:t}},listingHeaderTagsIds:u.Cp,listingLiveTabCounters:d.Mx,promoBanner:function(e,t){return{promoBanner:t}},sortingThumb:function(e,t){return{sortingThumb:t}}},ve=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._applyHTML=function(e){return(0,s.sH)(t,void 0,void 0,(function(){var t;return(0,s.YH)(this,(function(n){switch(n.label){case 0:return t=this._parseData(e),(0,G._b)("SPA ProcessHTML 1/4 replaceStylesheet...").info(t.resourceNode),t.resourceNode?[4,re.instance.replaceStylesheetResources(t.resourceNode)]:[3,2];case 1:n.sent(),n.label=2;case 2:return(0,G._b)("SPA ProcessHTML 2/4 replaceResources...").info(t),t.resourceNode?[4,re.instance.replaceResources(t.resourceNode)]:[3,4];case 3:n.sent(),n.label=4;case 4:return(0,G._b)("SPA ProcessHTML 3/4 modifyLayout...").info(t),this._modifyLayout(e,t),t.nodeSelector&&t.html?((0,G._b)("SPA ProcessHTML 4/4 modifyDOM...").info(t),this._modifyDOM(t.nodeSelector,t.html)):(0,G._b)("SPA ProcessHTML 4/4 modifyDOM skip").warn(event),this._applyInitialState(),[2]}}))}))},t._applyInitialState=function(){z(document.querySelectorAll(ie.J7),t._parseState),z(document.querySelectorAll(ie.AV),t._parseState),z(document.querySelectorAll(".js-index_banner"),t._parseState)},t._parseState=function(e){(0,G._b)("Store parseState").info(e);for(var t=0,n=Object.keys(e);t0),function(e){var t,n;if(e.indexOf("=0){var r=".wrapper",i=document.createElement("html");i.innerHTML=e;var o=Array.from((null===(t=i.querySelector("body"))||void 0===t?void 0:t.classList)||[]).filter((function(e){return/^page_/.test(e)}));return{html:null===(n=i.querySelector(r))||void 0===n?void 0:n.innerHTML,nodeSelector:r,pageClass:o,resourceNode:i}}return(0,G._b)("SPA parseLoadedData fallback").error({htmlOrig:e}),{nodeSelector:".content_container > .content"}}(e)},t.prototype._modifyDOM=function(e,t){return r.A.assertString("".concat(this.constructor.name,'~modifyDOM "node" arguments'),e),r.A.assertString("".concat(this.constructor.name,'~modifyDOM "html" arguments'),t),K(e,t)},t.prototype._modifyLayout=function(e,t){!function(e,t){var n,r,i,o,a,s,c,u="#bc_logo",l="#popups_wrap",d=".header_online",f="#svg_header",h="#svg_footer",p="#holidayLogoImg",m=document.createElement("html");m.innerHTML=e;var v=(null===(n=m.querySelector(u))||void 0===n?void 0:n.innerHTML)||"",g=(null===(r=m.querySelector(l))||void 0===r?void 0:r.innerHTML)||"",_=(null===(i=m.querySelector(d))||void 0===i?void 0:i.innerHTML)||"",b=(null===(o=m.querySelector("title"))||void 0===o?void 0:o.textContent)||"",y=(null===(a=m.querySelector(f))||void 0===a?void 0:a.innerHTML)||"",A=(null===(s=m.querySelector(h))||void 0===s?void 0:s.innerHTML)||"",S=(null===(c=m.querySelector(p))||void 0===c?void 0:c.innerHTML)||"";document.title=b;var E=Array.from(document.body.classList).filter((function(e){return e.startsWith("page_")}));(0,X.loopv)(E,(function(e,t){document.body.classList.remove(e)})),(0,X.loopv)(t.pageClass||[],(function(e,t){document.body.classList.add(e)})),K(u,v),K(l,g),K(f,y),K(h,A),K(p,S),K(d,_)}(e,t)},t}(pe),ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,s.C6)(t,e),t.prototype.prepare=function(t){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(n){switch(n.label){case 0:return[4,e.prototype.prepare.call(this,t)];case 1:return n.sent(),t.isAjaxLoad?(t.options.tag?h.A.action(l.Rk)(t.options.tag):t.options.category?(h.A.action(l.TM)(t.options.category.k),h.A.action(m.d)(P.$.CATEGORY,t.options.category.k)):t.options.block?h.A.action(l.e_)(t.options.block):t.options.sorting&&h.A.action(f.Uo)(t.options.sorting),q.v.isChatOpen&&t.isPopEvent||(h.A.action(d.id)(t.options.liveTab),h.A.action(d.S_)(t.options.liveTab),h.A.action(m.d)(P.$.GENDER,t.options.liveTab)),[2]):[2]}}))}))},t.prototype.loadData=function(t){return(0,s.sH)(this,void 0,void 0,(function(){var n,r,i,o,a,c,u,l,d,f,m,_,b,y,A,S,P,R,D,x,U,F,B,H,V,W,q,Y;return(0,s.YH)(this,(function(z){switch(z.label){case 0:return t.isAjaxLoad?(n=t.options,r=t.url,i=h.A.getState(),o=i.isAuthenticated,a=(0,g.Hh)(i),c=(0,g.mk)(i),u=(0,v.em)(i),l=(0,v.yZ)(i),d=o&&(n.tag||n.category||n.block),f=(0,G.P0)(j(void 0,this.abortController),"SPA Loader Ajax sidebar"),m=n.tag?Promise.resolve(void 0):(0,G.P0)((0,M.xJ)(a||c,u,this.abortController),"SPA Loader Ajax tags"),_=(0,G.P0)(function(e,t,n){void 0===t&&(t="");var r=h.A.getState(),i=(0,g.Hh)(r),o=(0,v.yZ)(r);if((0,v.vM)(r)||[T.n.MY_FRIENDS,T.n.SPY].includes(i))return Promise.resolve(null);var a={category:t,liveTab:e},s=(0,C.ip)("@ajax_get_categories_options"),c=(0,C.Go)(s,a);return(0,w.gQ)(c,{abortController:n,method:"GET"}).then((function(e){var t=e.data,n=e.status,r={};return t&&E.A.isSuccess(n)?(o||(r.list=t.categoriesList),r.config=t,delete r.config.categoriesList,r):null}))}(a||c,u,this.abortController),"SPA Loader Ajax categories"),b=(0,G.P0)((X={category:u,liveTab:a||c,tag:l,url:r},K=this.abortController,(0,s.sH)(void 0,void 0,void 0,(function(){var e,t,n,r,i,o,a,c,u,l;return(0,s.YH)(this,(function(d){switch(d.label){case 0:return e=h.A.getState(),(0,k.UQ)(e)?[2,[]]:(t=X.category,n=X.liveTab,r=X.tag,i=X.url,o=(null==i?void 0:i.replace("trans",T.n.TRANSSEXUAL))||"",a=(0,s.Cl)((0,s.Cl)((0,s.Cl)({},!!n&&o.includes("/".concat(n))&&{liveTab:n}),!!t&&{category:t}),!!r&&{tag:r}),c=(0,C.ip)("@api_internal_links"),u=(0,C.Go)(c,a),[4,(0,N.mN)(u,{signal:null==K?void 0:K.signal})]);case 1:return[2,(null==(l=d.sent().data)?void 0:l.links)||[]]}}))}))),"SPA Loader Ajax internalLinks"),y=(0,G.P0)(function(e,t){if(!e)return Promise.resolve(null);var n=(0,s.Cl)({},e?{category:e}:{}),r=(0,C.ip)("@ajax_get_category"),i=(0,C.Go)(r,n);return(0,w.AT)(i,{abortController:t,method:"GET"}).then((function(e){var t=e.data,n=e.status;if(t&&E.A.isSuccess(n))return t}))}(u,this.abortController),"SPA Loader Ajax categorySlug"),A=(0,G.P0)((0,L.q)(this.abortController),"SPA Loader Ajax liveTabsCounters"),S=(0,G.P0)(O.k.activateInfiniteScroll(!0,!0),"SPA Loader Ajax listingState"),P=t.isResetFilter?Promise.resolve():new Promise((function(e){h.A.action(p.o)(void 0,e),setTimeout(e,5e3)})),R=d?null:this.loadSeo(t),[4,S]):[2,e.prototype.loadData.call(this,t)];case 1:return(z.sent()||{}).success?(I.A.isRestoring&&(t.isScrollTop=!1),R=(0,G.P0)(R||this.loadSeo(t),"SPA Loader Ajax seo"),[4,Promise.all([R,y,A,f,b,m,P])]):[2,Promise.reject(new Error("listing load abort"))];case 2:return z.sent(),[4,R];case 3:return D=z.sent()||{},x=D.meta,U=D.seo,[4,_];case 4:return F=z.sent()||{},B=F.config,H=F.list,[4,y];case 5:return V=z.sent(),[4,b];case 6:return W=z.sent(),[4,A];case 7:return q=z.sent(),[4,m];case 8:return Y=z.sent(),[2,{categoriesConfig:B,categoriesList:H,categorySlugData:V,internalLinks:W,listingCounters:q,listingTags:Y,meta:x,seo:U}]}var X,K}))}))},t.prototype.processData=function(t,n){return(0,s.sH)(this,void 0,void 0,(function(){var r,i,o,a,f,p,m,v,g;return(0,s.YH)(this,(function(s){switch(s.label){case 0:return"string"!=typeof n&&t.isAjaxLoad?(r=n.categoriesConfig,i=n.categoriesList,o=n.categorySlugData,a=n.internalLinks,f=void 0===a?[]:a,p=n.listingCounters,m=n.listingTags,v=n.meta,g=n.seo,o?(h.A.action(c.t)(o),S.default.updateSwitchLangCategoryLinks(o.name,o.slugs)):(S.default.clearThirdLevelDomainCategoryLink(),h.A.action(c.t)(null)),v&&A(v),g&&function(e){if(e){var t=e.footerSeoText;t&&(0,b.h)({$parent:y(".wrapper .footer_seo"),htmlTemplate:'
\n ".concat(r?"":'"),"\n \n "))}))})),e.listWrp.innerHTML="\n
').concat(n,"").concat(e,"
\n \n \n \n \n \n \n ".concat(t.join(""),"\n
usernamemessage
\n ").replace(/\s+/g," ").trim()}}}return Object.defineProperty(e,"instance",{get:function(){return this._instance||(this._instance=new this)},enumerable:!1,configurable:!0}),e.prototype.init=function(){var e,t;this.deleteAndBanBtn=document.querySelector(".js-multi_selection_ban"),null===(e=this.deleteAndBanBtn)||void 0===e||e.addEventListener("click",this.deleteAndBun),this.clearAllBtn=document.querySelector(".js-multi_selection_clear"),null===(t=this.clearAllBtn)||void 0===t||t.addEventListener("click",this.clearAll),this.listWrp=document.querySelector(".js-adm_msg_selected")},e.prototype.renderControls=function(){var e=!this.selectedMembersMap.size;this.deleteAndBanBtn&&(this.deleteAndBanBtn.disabled=e),this.clearAllBtn&&(this.clearAllBtn.disabled=e)},e.prototype.selectMessage=function(e,t){var n=this.selectedMembersMap.get(e)||new Map,r=(n.get(t)||0)+1;n.set(t,r),this.selectedMembersMap.set(e,n),this.render()},e.prototype.createAndBindCheckbox=function(t,n,a){var s,c=null;(c=document.createElement("input")).type="checkbox",(s=c.classList).add.apply(s,r),o(c).on("click",(function(){c.checked?e.instance.selectMessage(n,a):e.instance.unselectMessage(n,a)})),t.find(".msg_box").first().before(c),i.eq.isInitialized&&t.find(".author_area, .message_area, .system_area").on("click",(function(t){"input"!==t.target.tagName.toLowerCase()&&(c.checked?(c.checked=!1,e.instance.unselectMessage(n,a)):(c.checked=!0,e.instance.selectMessage(n,a)))}))},e.prototype.unselectMessage=function(e,t){var n=this.selectedMembersMap.get(e);if(n){if(void 0===t)n.clear();else{var r=(n.get(t)||0)-1;r>0?n.set(t,r):n.delete(t)}n.size||this.selectedMembersMap.delete(e),this.render()}},Object.defineProperty(e.prototype,"selectedUsers",{get:function(){return Array.from(this.selectedMembersMap.keys())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAnyMessageSelected",{get:function(){return Boolean(this.selectedMembersMap.size)},enumerable:!1,configurable:!0}),e}()},14850:function(e,t,n){"use strict";n.d(t,{ke:function(){return Q},zm:function(){return J.z},ik:function(){return r.ik}});var r=n(54644),i=n(19826),o=n(85505),a=n(41669);function s(e){e.val()?a("#bFirstPlaceButtonSwitch").removeAttr("disabled"):a("#bFirstPlaceButtonSwitch").attr("disabled","disabled")}var c=n(41669),u=function(){function e(){}return e.init=function(){c("#bFirstPlaceButtonSwitch").attr("disabled","disabled").attr("action",c("#bFirstPlaceButtonSwitch").attr("url")+"/"+chat.performerData.username),chat.performerData.isFirstPlaceButtonAvailable?c("#bFirstPlaceButtonSwitch").val("1").removeAttr("disabled"):(c("#bFirstPlaceButtonSwitch").val("-1"),c("#bFirstPlaceButtonReason").removeAttr("disabled")),c("#bFirstPlaceButtonReason").on("change keyup paste",(function(){s(c(this))}))},e}(),l=n(64080),d=n(51130),f=n(41056),h=n(52628),p=n(70756),m=n(41669);var v=n(89938),g=n(80554),_=n(38756),b=n(13907),y=n(7526),A=n(16107),S=n(7195),E=n(33951),w=300,C=n(50172),T=n(17673),L=n(62614),M=n(73424),k=n(13005),N=n(41669),I=function(){var e,t,n,r,o,a,s,c;i.A.setState({chatHistoryLength:w}),e=document.getElementById("admFilterSmiles"),t=document.getElementById("admFilterLength"),n=document.getElementById("admFilterTipCheckbox"),r=document.getElementById("admFilterTipMin"),o=document.getElementById("admFilterTipMax"),a=document.getElementById("admHistoryFlowFilterType"),s=document.getElementById("admFilterPresetDefault"),c=function(){var i=A.eq.instance.getFilters(),c=A.eq.instance.getDefaultFilters();if(e&&(e.value="".concat(i[A.B6.MIN_SMILES_COUNT].count)),t&&(t.value="".concat(i[A.B6.MIN_LENGTH].count)),n&&(n.checked=i[A.B6.TIP].isEnabled),r&&(r.value="".concat(i[A.B6.TIP].min)),o){var u=i[A.B6.TIP].max;o.value=Number.isFinite(u)?"".concat(u):""}if(s){var l=(0,M.b)((0,k.c)(i,A.B6.TYPE),(0,k.c)(c,A.B6.TYPE));s.classList.toggle("__active",l)}a&&i.t.value&&a.querySelectorAll(".js-adm_filters_toggle_type_btn").forEach((function(e){e.classList.toggle("__active",i.t.value===e.dataset.type)}))},e&&(e.removeAttribute("disabled"),e.addEventListener("change",(function(){var t=Number(e.value||0);A.eq.instance.updateFilter(A.B6.MIN_SMILES_COUNT,{count:t}),c()}))),t&&(t.removeAttribute("disabled"),t.addEventListener("change",(function(){var e=Number(t.value||0);A.eq.instance.updateFilter(A.B6.MIN_LENGTH,{count:e}),c()}))),r&&(r.removeAttribute("disabled"),r.addEventListener("change",(function(){var e=Number(r.value||0);A.eq.instance.updateFilter(A.B6.TIP,{min:e}),c()})),r.addEventListener("input",(function(){var e=Number(r.value||0);A.eq.instance.updateFilter(A.B6.TIP,{min:e}),c()}))),o&&(o.removeAttribute("disabled"),o.addEventListener("change",(function(){var e=Number(o.value||0);A.eq.instance.updateFilter(A.B6.TIP,{max:e}),c()})),o.addEventListener("input",(function(){var e=Number(o.value||1/0);A.eq.instance.updateFilter(A.B6.TIP,{max:e}),c()}))),n&&(n.removeAttribute("disabled"),n.addEventListener("change",(function(){var e=n.checked;A.eq.instance.updateFilter(A.B6.TIP,{isEnabled:e}),c()}))),a&&a.addEventListener("click",(function(){var e=A.eq.instance.getFilters().t.value;A.eq.instance.updateFilter(A.B6.TYPE,{value:"or"===e?"and":"or"}),c()})),s&&(s.removeAttribute("disabled"),s.addEventListener("click",(function(){A.eq.instance.resetAll(),c()}))),c(),function(){var e=document.getElementById("admBannedCounterBonus");if(e){var t=e.dataset.url;t&&L.w.replaceContainer((0,C.h)(T.X,{bonusText:e.innerText,refreshUrl:{url:t}}),e)}}();var u=N("#bChat"),l=u.find(".historyContainer .history");if(l.length&&u.length){var d=N("#admHistoryFlowScroll"),f=N("#admHistoryFlowFilterType");d.removeAttr("disabled"),d.on("click",(function(){return(0,E.v)()})),f.on("click",(function(){setTimeout((function(){return(0,E.v)()}),1)}));var h=N("#admHistoryFlowClear");h.removeAttr("disabled"),h.on("click",(function(e){(0,S.kd)()})),A.eq.instance.onChange=function(){l.find(".".concat(A.Qg.MSG_ROOT)).each((function(){var e=N(this),t=A.eq.instance.isMessageVisible(e);e.toggle(t)})),l.find(".".concat(A.Qg.TIP_ROOT)).each((function(){var e=N(this),t=A.eq.instance.isTipVisible(e);e.toggle(t)}))}}},O=n(98614),P=n(39682),R=function(){var e=document.querySelector(".bc_chat_header");e&&L.w.replaceContainer((0,C.h)(O.Kq,{store:i.A},(0,C.h)(P.e,null)),e)},D=n(80786),j=n(46140),x=n(4645),U=n(88035),F=n(57361),B=n(50354),H=n(85730),G=n(11442),V=n(54469),W=function(e,t,n){var r=document.querySelector(e);r&&L.w.replaceContainer((0,C.h)(O.Kq,{store:i.A},(0,C.h)(H.c,{inputId:n,panelId:t})),r)},q=function(){W(".js-public_chat_control_panel",G.q.PUBLIC,V.a.PUBLIC_CHAT),W(".js-private_chat_control_panel",G.q.PRIVATE,V.a.PRIVATE_CHAT)},Y=n(80877),z={FLOW_PAGE:".jsx-chat_history_flow",PRIVATE:".jsx-chat_history_private",PUBLIC:".jsx-chat_history_public"},X=function(e){var t=document.querySelector(e);t&&L.w.replaceContainer((0,C.h)(O.Kq,{store:i.A},(0,C.h)(Y.D,null)),t)},K=n(80853),J=n(18086),$=n(41669);function Q(){var e;$("#bChat").on("onUserData",(function(e){var t,n=(window.chat||{}).performerData;if(n){var o=n.marker,a=n.promoSettings,s=n.username,c=n.isHideInApi;(null===(t=D.A.instance.player)||void 0===t?void 0:t.flashObject)||$("#bEdgeServer option[data-role=origin]").remove(),$(".adminStats span[id^=bw_]").html("--"),$(".adminStats span[id^=vsi_]").html("--"),$("#bPromoSwitch").attr("action","".concat($("#bPromoSwitch").attr("url"),"/").concat(s)),void 0!==a&&$("#bPromoSwitch").val(a).removeAttr("disabled"),u.init(),$("#bApiSwitch").attr("action","".concat($("#bApiSwitch").attr("url"),"/").concat(s)),void 0!==c&&$("#bApiSwitch").val(c).removeAttr("disabled"),(0,K.pT)(),(0,K.yl)();var v=$("#bMarker"),g=v.closest(".cell");v.attr("action","".concat(v.attr("url"),"/").concat(s));var b=i.A.getState().user;(0,j.u)(o)?(g.closest(".row").removeClass("marker_selected").addClass("marker_not_selected"),g.find(".text").html("")):(null==b?void 0:b.isModeratorHasRightChangeMarker)&&o!==_.g.AMAZING?((0,r.pk)(o),v.val(o),v.attr("data-prev_marker_value",o),g.closest(".row").removeClass("marker_selected").addClass("marker_not_selected")):(g.closest(".row").removeClass("marker_not_selected").addClass("marker_selected"),g.find(".text").html(v.find('option[value="'.concat(o,'"]')).html()));var y=$("#bProfileChecked");y.attr("action","".concat(y.attr("url"),"/").concat(chat.performerData.username)),void 0!==chat.performerData.isProfileChecked&&y.val(chat.performerData.isProfileChecked).removeAttr("disabled");var A=$("#bGroup");A.attr("action","".concat(A.attr("url"),"/").concat(chat.performerData.username)),void 0!==chat.performerData.group&&A.val(chat.performerData.group).removeAttr("disabled");var S=chat.performerData.modelTags,E=Object.keys(S);E.length&&E.forEach((function(e){$('#bEventTag[data-tag="'.concat(e,'"]')).val(Number(S[e])).removeAttr("disabled")})),(0,f.x)(chat.performerData.camscore),(0,p.J)(chat.performerData.region_camscore),(0,h.t)(chat.performerData.avgChatShowRate),(0,l.W)(chat.performerData.topic),(0,l.W)(chat.performerData.topicRu,!0),$("#bTopicForm .topic_ru").show();var w,C,T,L=$("#bSaveRestricted");L.attr("action","".concat(L.attr("data-base-url"),"/").concat(chat.performerData.username)),$("#bUsaGeoSortingSwitch").attr("action","".concat($("#bUsaGeoSortingSwitch").attr("url"),"/").concat(chat.performerData.username)),void 0!==chat.performerData.isUsaGeoSortingEnabled&&$("#bUsaGeoSortingSwitch").val(chat.performerData.isUsaGeoSortingEnabled).removeAttr("disabled"),$("#bExternalEncoderDisabled").attr("action","".concat($("#bExternalEncoderDisabled").attr("url"),"/").concat(chat.performerData.username)),void 0!==chat.performerData.isExternalEncoderDisabled&&$("#bExternalEncoderDisabled").val(chat.performerData.isExternalEncoderDisabled).removeAttr("disabled"),$("#bCam2CamPrimeSwitch").attr("action","".concat($("#bCam2CamPrimeSwitch").attr("url"),"/").concat(chat.performerData.username)),void 0!==chat.performerData.isCam2CamPrimeEnabled&&$("#bCam2CamPrimeSwitch").val(chat.performerData.isCam2CamPrimeEnabled).removeAttr("disabled"),(0,B.y)(),$("#bUsaSignupIpProxySwitch").attr("action","".concat($("#bUsaSignupIpProxySwitch").attr("url"),"/").concat(chat.performerData.username)),void 0!==chat.performerData.isUsaSignupIpProxyEnabled&&$("#bUsaSignupIpProxySwitch").val(chat.performerData.isUsaSignupIpProxyEnabled).removeAttr("disabled"),$("#bEdgeServer .active").removeClass("active"),$("#bEdgeServer").removeAttr("disabled").find("[label=origin".concat(chat.localData.vsid,"]")).addClass("active").find("option[value]:first").prop("selected",!0),chat.performerData.isAvailableForRecording&&setTimeout((function(){$("#bStartRecord").attr("ready","true").addClass("mls_btn_green").show(),$("#bStopRecord").hide()}),1e3),$("#restart_stream_trigger").css("visibility","visible"),$(".admin_approve_button:visible").remove(),function e(){var t=$("#bObsDonateRow");chat.performerData.isObs?(t.show(),chat.performerData.obsCamscoreDonatedAt?(t.find(".js-odcsbtn").hide(),t.find(".js-odcslbl").show().find("span").text(new Date(1e3*Number(chat.performerData.obsCamscoreDonatedAt)).toLocaleString()),chat.performerData.obsCamscoreDonatedTo?t.find(".js-odcsusn").show().find("span").text(chat.performerData.obsCamscoreDonatedTo):t.find(".js-odcsusn").hide()):(t.find(".js-odcsbtn").show(),t.find(".js-odcslbl").hide(),t.find(".js-odcsusn").hide())):t.hide(),t.find(".js-odcsbtn").off("click.odcsbtn").on("click.odcsbtn",(function(){return $.post("".concat($(this).data("url"),"/").concat(chat.performerData.username),(0,x.Z)(),(function(){chat.performerData.obsCamscoreDonatedAt=Date.now()/1e3,e()})),!1}))}(),w=chat.performerData.restrictedLanguages,C=m("#bRestrictedLangs_base"),(T=m("#bRestrictedLangs")).find("option").appendTo(C),C.find("option").each((function(){w&&-1!==w.indexOf(m(this).val())&&m(this).appendTo(T)})),(0,d.V)(chat.performerData.bwData),$("#bExternalEncoderDisabled").attr("action","".concat($("#bExternalEncoderDisabled").attr("url"),"/").concat(chat.performerData.username)),void 0!==chat.performerData.isUsaSignupIpProxyEnabled&&$("#bUsaSignupIpProxySwitch").val(chat.performerData.isUsaSignupIpProxyEnabled).removeAttr("disabled")}})).on("onPerformerStatusChange",(function(e){"away"===chat.performerStatus&&!0===chat.performerData.setPerformerAway&&(chat.performerData.setPerformerAway=!1,chat.onPerformerAway())})).on("onPaidShowAccepted",(function(e){chat.setChatType("private-chat")}));var t=0;y.I.on("VideoPlayerEvent:init",(function(e){var n=0,r=0,i=0;clearInterval(t),t=window.setInterval((function(){var t=e&&e.getHTMLVideoElement();if(t&&"webkitDecodedFrameCount"in t&&t.videoWidth>0){var o=t.webkitDecodedFrameCount-n,a=8*(t.webkitVideoDecodedByteCount-r)/1e3,s=8*(t.webkitAudioDecodedByteCount-i)/1e3;n=t.webkitDecodedFrameCount,r=t.webkitVideoDecodedByteCount,i=t.webkitAudioDecodedByteCount,(0,v.H)({bitrate:Math.round(a+s),fps:o,res:"".concat(t.videoWidth,"x").concat(t.videoHeight)})}}),1e3)})),$("#restart_stream_trigger").click((function(e){if(e.preventDefault(),confirm("Are you sure?")){$(this).css("visibility","hidden");$.ajax({dataType:"json",method:"get",success:function(e){e&&e.message&&alert(e.message)},url:"".concat($(this).data("url"),"/").concat(chat.performerData.username)})}})),$("#bEdgeServer").change((function(){chat.videoServerUrl="//".concat(this.value),D.A.instance.player&&D.A.instance.player._streamName&&(D.A.instance.player._streamName=null),D.A.instance.playStream()})),$("#bStartRecord").click((function(){"true"===$(this).attr("ready")&&($(this).add("#bStopRecord").toggle().attr("ready","false").removeClass("mls_btn_red").removeClass("mls_btn_green"),chat.startRecord(),$("#bStopRecord").attr("ready","true").addClass("mls_btn_red"))})),$("#bStopRecord").click((function(){"true"===$(this).attr("ready")&&($(this).add("#bStartRecord").toggle(),chat.stopRecord(),$("#bStartRecord").attr("ready","true").addClass("mls_btn_green"))})),$("#bFirstPlaceButtonSwitch, #bPromoSwitch, #bApiSwitch, #bQualityImprovement, #bUsaGeoSortingSwitch, #bUsaSignupIpProxySwitch, #bGroup, #bEventTag, #bProfileChecked, #bCam2CamPrimeSwitch, #bExternalEncoderDisabled").change((function(){var e=$(this).closest(".cell");0===e.find(".admin_approve_button").length&&$(".admin_approve_button:hidden").clone(!0).appendTo(e).show();"bQualityImprovement"===$(this).attr("id")&&(0,K.an)()})),null===(e=document.querySelector(".js-admin_chat"))||void 0===e||e.addEventListener("click",chat.startAdminChat.bind(chat)),$(".admin_send_ajax").on("click",(function(){var e,t=$(this).closest(".admin_approve_button").siblings("select"),n=t.val(),r=$("#bFirstPlaceButtonReason"),i={value:n},o=t.attr("id"),a="bQualityImprovement"===o,c="bCam2CamPrimeSwitch"===o;if("bFirstPlaceButtonSwitch"===t.attr("id")){if(e=r.val(),"1"===n&&!e)return!1;"1"===n?r.attr("disabled","disabled"):(s(r),r.removeAttr("disabled"))}else if(a){var u=$("#quality_improvement_reason");if($.inArray(n,["-1","0"])>=0){if(!(e=u.val()).length)return void u.addClass("error");u.removeClass("error")}else u.removeClass("error");i={username:chat.performerData.username,value:n}}else"bEventTag"===t.attr("id")&&(i={enable:t.val(),tag:t.data("tag"),username:chat.performerData.username});e&&(i.reason=e),i=a?JSON.stringify(i):(0,x.Z)(i),$.ajax({contentType:a?"application/json; charset=utf-8":void 0,context:t,data:i,dataType:"json",headers:{"X-CSRF-TOKEN":(0,x.m)()._csrf_token},success:function(){c&&(0,U.w)(g.R.CAM_2_CAM_SWITCH,n)},type:"post",url:t.attr("action")}),$(this).closest(".admin_approve_button").remove()})),$("#bSaveRestricted").click((function(){var e=$("#bRestrictedLangs").find("option").map((function(){return this.value})).get();return $.ajax({context:this,data:(0,x.Z)({list:e}),dataType:"json",success:function(e){var t=$(".addl_controls").find(".message");e&&e.status&&e.message?(t.length?t.show().attr("class","message ".concat(e.status)).html(e.message):t=$('
').concat(e.message,"
")).prependTo(".addl_controls"),setTimeout((function(){t.hide(500)}),2e3)):t.hide()},type:"post",url:$(this).attr("action")}),!1})),$(document).on("click","#bWorkList",(function(e){e.preventDefault();var t=this;confirm("Are you sure?")&&$.ajax({data:(0,x.Z)(),dataType:"json",success:function(){for(;!t.classList.contains("row");)t=t.parentElement;t.remove()},type:"post",url:(0,b.ip)("@ajax_add_to_supporting_new_models?username=".concat(chat.performerData.username))})})),$(document).on("onNoticeSocketMessage",(function(e,t){if(t&&(0,o.b)(t,"mad")){var n=t.data.username;if(n){var r=$('#bChat .msg_wrp[data-author="'.concat(n,'"], #bChat .msg_row[data-author="').concat(n,'"]'));r.length&&(chat.permanentlyDeleteMessage(r,!1),J.z.instance.unselectMessage(n))}}})),(0,r.C1)()?(X(z.FLOW_PAGE),I()):(R(),(0,F.c)(),q(),X(z.PRIVATE),X(z.PUBLIC)),J.z.instance.init()}},15709:function(e,t,n){"use strict";n.d(t,{M:function(){return r}});var r="js-chat_msg_"},52990:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var r=n(15709),i=function(e,t){return void 0===t&&(t=!1),"".concat(t?".":"").concat(r.M).concat(e)}},873:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var r=function(e){return e.find(".msg_wrp").first().width()}},99222:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(15709),i=function(e){return e.get(0).className.split(" ").find((function(e){return e.startsWith(r.M)})).substring(r.M.length)}},7195:function(e,t,n){"use strict";n.d(t,{kd:function(){return a},mc:function(){return r.m},Gu:function(){return i.G}});var r=n(52990),i=n(99222),o=n(41669),a=function(e){var t=o("#bChat");if(e){var n=t.find("#".concat(e));n.length&&(t=n)}!e||"private-chat"!==e&&(null===chat||void 0===chat?void 0:chat.userData.isPerformer)?t.find(".history").html(""):t.find(".history > *").not(".msg_tip_success, .tip_success").remove()}},878:function(e,t,n){"use strict";n.d(t,{Y:function(){return f}});var r=n(19826),i=n(57321),o=n(81714),a=n(18697),s=n(7526),c=n(2268),u=n(41669),l="invisible_member_count",d="guest_count",f=function(e,t,n,f){var h,p=u("#".concat(e," .users")),m=t||p.data("userList");if(m){(0,a._b)("Chat Users update").log(f,m);var v=m.totalGuests,g=void 0===v?0:v,_=m.totalUsers,b=void 0===_?0:_,y=b+g;if(null===(h=m.users)||void 0===h?void 0:h.length){if(m.ti&&m.ti>0&&!m.users.find((function(e){return e.username===l}))){var A={displayName:__("%amount% invisible %member_plural%",{amount:m.ti,member_plural:c.kX.pluralise("members",m.ti)}),username:l,isInvisible:!0,isLogged:!1},S=m.users.findIndex((function(e){return!e.isLogged}));S>=0?m.users.splice(S,0,A):m.users.push(A)}m.guestListLimit&&!m.users.find((function(e){return e.username===d}))&&m.users.push({displayName:__("%amount% %guests_plural%",{amount:g,guests_plural:c.kX.pluralise("guests",g)}),username:d,isLogged:!1});var E=r.A.getState().tipKing;m.users.forEach((function(e){e.tipKingAmount=E&&E.enabled&&e.username===E.un?E.amount:null}))}m.users&&chat.createUserListItem&&(p.html("").data("userList",m),m.users.forEach((function(e){return p.append(chat.createUserListItem(e))})),n&&(n.isPerformer||"moderator"===n.role||"member"===n.role)&&m.userListLimit&&m.userListLimit>0&&(m.userListLimit').concat(__("Show more"),""))),n&&o.A.isModerator(n.role)&&u("#".concat(e," .bChatUsersCount")).html((0,i.q)(y)).addClass("__show"),s.I.dispatch("syncUserList",e,m,f),u("#bChat").triggerHandler("onUsersCount",[e,y])}}},53344:function(e,t,n){"use strict";n.d(t,{Y:function(){return r.Y}});var r=n(878)},27514:function(e,t,n){"use strict";var r;n.d(t,{U:function(){return r}}),function(e){e.STREAM_OVERLAY="ChatBotEvent:STREAM_OVERLAY"}(r||(r={}))},93156:function(e,t,n){"use strict";n.d(t,{n:function(){return r}});var r=/(?!\[)([\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|[\ud83c[\ude01\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|[\ud83c[\ude32\ude02]|\ud83c[\ude32-\ude3a]|[\ud83c[\ude50\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g},89348:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var r="chat_fullscreen"},21035:function(e,t,n){"use strict";var r;n.d(t,{H:function(){return i},X:function(){return r}}),function(e){e.ALERT="alert",e.CUSTOM_ALERT="custom_alert",e.TIP_SUCCESS="tip_success"}(r||(r={}));var i=function(e){return!!e&&e.split(" ").some((function(e){return[r.ALERT,r.CUSTOM_ALERT].includes(e)}))}},99823:function(e,t,n){"use strict";n.d(t,{Y:function(){return r}});var r={afe:"allowFreeMemberChat",mtfc:"minTokensForChat",ipe:"allowPrivateChat",ifpe:"allowFullPrivateChat",mtifp:"minPrivateDuration",mtiffp:"minFullPrivateDuration",mtofp:"minTokensForPrivate",mtoffp:"minTokensForFullPrivate",ige:"allowGroupChat",gcmm:"groupChatMinMembers",pms:"privateMessageSettings",pmmt:"privateMessageMinTokens",ifpre:"allowFullPrivateRecording",icbdp:"disableChatBotsInPrivate",ptpm:"privateChatTokensPerMinute",fptpm:"fullPrivateChatTokensPerMinute",vtpm:"voyeurChatTokensPerMinute",gtpm:"groupChatTokensPerMinute"}},23039:function(e,t,n){"use strict";n.d(t,{Es:function(){return u},Yh:function(){return r},jz:function(){return s},nT:function(){return o},sH:function(){return a},ui:function(){return c},xu:function(){return i}});var r=520,i=624,o=1.333333333333,a=1.77777777777,s=1920,c=1440,u=1080},5652:function(e,t,n){"use strict";n.d(t,{u:function(){return s}});var r,i=n(21035),o=n(8546),a=((r={})[i.X.ALERT]="msg_alert",r[i.X.CUSTOM_ALERT]="msg_custom_alert",r[i.X.TIP_SUCCESS]="msg_tip_success",r),s=function(e,t){var n;void 0===t&&(t="");var r=!Object.values(i.X).includes(e)?"msg_".concat(e):a[e];return(0,o.n)(((n={"system_msg msg_wrp js-chat_msg":!0})[r]=r,n[t]=t,n))}},45697:function(e,t,n){"use strict";n.d(t,{j:function(){return r}});var r=function(e){var t="number"==typeof e?"".concat(e):e;return t?t.replace(/\\/g," ").trim():""}},52210:function(e,t,n){"use strict";n.d(t,{c:function(){return l}});var r=n(15215),i=n(19826),o=n(41042),a=n(40172),s=n(40580),c=n(2089),u=n(33475),l=function(e){var t=e.messageStyle||e.fontStyle;if(!t)return{};var n=i.A.getState(),l=(0,a.oI)(n),d=(0,o.u3)(n),f=(0,u.p)(),h=t.color||"";(l||d)&&(0,c.Z)(e)&&h&&!(0,s.c)(h)&&(h=(0,s.u)(h,!0));var p=(0,r.Cl)({color:h||"","font-family":!f&&t.fontFamily?"'".concat(t.fontFamily,"'"):""},(!l||d)&&!f&&{"font-size":t.fontSize||""});return f||"Impact"!==t.fontFamily||(p["font-weight"]="normal"),p}},99736:function(e,t,n){"use strict";n.d(t,{y:function(){return s}});var r=n(40580),i=n(47443),o=n(52210),a=n(33475),s=function(e){var t=(0,a.p)(),n="",s=(0,o.c)(e);for(var c in(0,i.T)(e)&&s.color&&!(0,r.c)(s.color)&&!t&&(s.color=(0,r.u)(s.color,!0)),s)s.hasOwnProperty(c)&&s[c]&&(n+="".concat(c,":").concat(s[c],";"));return n}},33951:function(e,t,n){"use strict";n.d(t,{v:function(){return c}});var r=n(19826),i=n(49741),o=n(42209),a=n(62146),s=n(92059),c=function(e){var t=r.A.getState(),n=t.isFullScreen,c=t.isMobile,u=t.isPromo,l=e||document.getElementById("bChat");if(l&&(!c||a.default.swipeState===o.t.CHAT)){var d=(0,s.S)({bChat:l,isFullScreen:n,isMobile:c,isPromo:u});if(c&&d)(0,i.u)(d);else{var f=null==l?void 0:l.querySelector(".history");f&&d&&d.scrollTo(0,f.scrollHeight)}}}},34446:function(e,t,n){"use strict";n.d(t,{a:function(){return a}});var r=n(15215),i=n(62779),o=function(e,t){return{"roll-dice":{get items(){var n=[e.result.info.value].flat().reduce((function(e,t){return e+t}));return"d2"===e.subType?t.d2_prizes[n-2]:t.d1_prizes[n-1]}},"spin-wheel":{get items(){return t.prizes[e.result.info.value-1]}},"token-keno":{get items(){return t.prizes[chat.isMobileApp?e.amount:e.result.info.value]}}}[e.type]},a=function(e){return(0,r.sH)(void 0,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(n){switch(n.label){case 0:return"ServerMessageEvent:PLAY_GAME_NOTICE"!==e.type||"info"in e.body.game.result?[3,2]:[4,i.A.instance.getSettings(chat.performerData.username||chat.userData.username,e.body.game.type,e.body.game.sv)];case 1:t=n.sent(),e.body.game.dn=e.body.dn,e.body.game.un=e.body.un,e.body.game.result=(0,r.Cl)((0,r.Cl)({},e.body.game.result),{info:{value:(a=e.body,{"roll-dice":function(){return a.value},"spin-wheel":function(){return a.value[0]},"token-keno":function(){return a.value},"slot-machine":function(){return a.value}}[a.game.type]()),prize:o(e.body.game,t),state:e.body.game.result.state,prizes:e.body.game.result.prizes}}),n.label=2;case 2:return[2,e]}var a}))}))}},4527:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=n(19826),i=n(54469),o=n(40172),a=function(){var e=r.A.getState();return(0,o.ey)(e)?"public-chat"===window.chat.currentChatType?i.a.PUBLIC_CHAT:i.a.PRIVATE_CHAT:i.a.CHAT}},1633:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(19826),i=n(11442),o=n(40172),a=function(){var e=r.A.getState();return(0,o.ey)(e)?"public-chat"===window.chat.currentChatType?i.q.PUBLIC:i.q.PRIVATE:i.q.DEFAULT}},59996:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var r=n(19826),i=n(40172),o=function(){var e=r.A.getState();return e.dailyLimitExceeded?1.33:(0,i.Hz)(e).aspectRatio}},28724:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=n(23039),i=n(19826),o=n(41042),a=function(){var e=i.A.getState();return(0,o.BH)(e)?r.xu:r.Yh}},31180:function(e,t,n){"use strict";n.d(t,{w:function(){return r}});var r=function(e){var t=document.querySelector(".js-sp_content");if(!t)return!1;var n=t.clientHeight;return t.scrollHeight-n-t.scrollTop-1)}},2089:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(28327),i=function(e){return((0,r.e)(e)||e.isVip)&&e.messageStyle&&e.messageStyle.bg}},33475:function(e,t,n){"use strict";n.d(t,{p:function(){return o}});var r=n(45070),i=n(21110),o=function(){return!chat.userData.isPerformer&&i.q.isEnabled(r.i.CONSISTENT_CHAT_MESSAGE_STYLE)}},51360:function(e,t,n){"use strict";n.d(t,{Y:function(){return c}});var r=n(19826),i=n(45936),o=n(82310),a=n(92059),s=n(62614),c=function(e,t){var n,c,u=r.A.getState(),l=u.isFullScreen,d=u.isPromo,f=(0,a.S)({bChat:t,isFullScreen:l,isPromo:d}),h=e||(null===(n=t||document.getElementById("bChat"))||void 0===n?void 0:n.querySelector(".history")),p=null==h?void 0:h.lastElementChild;if(f&&h&&p){var m=(null==p?void 0:p.tagName)===s.L?null===(c=null==p?void 0:p.children)||void 0===c?void 0:c[0]:p,v=(0,i.P)({element:m})+o.Q;f.scrollTop+f.clientHeight+v>=h.scrollHeight&&f.scrollTo(0,h.scrollHeight)}}},17266:function(e,t,n){"use strict";n.d(t,{S:function(){return o}});var r=n(59996),i=n(28724),o=function(e){void 0===e&&(e=(0,r.i)());try{var t=(0,i.O)();document.documentElement.style.setProperty("--video-width-min-final","".concat(t,"px")),document.documentElement.style.setProperty("--video-aspect-ratio","".concat(e))}catch(e){0}}},29463:function(e,t,n){"use strict";n.d(t,{O:function(){return d},f:function(){return f}});var r=n(19826),i=n(70901),o=n(9613),a=n(28812),s=n(72418),c=function(e){(0,o.Hk)("banned_kicked",JSON.stringify(e),{path:"/",domain:(0,s.getRealDomain)()})},u=function(){var e=(0,a.json_parse)((0,o.Hk)("banned_kicked"));return e&&Array.isArray(e)?e:[]},l=function(e){return(0,i.n7)((0,i.d5)(e)+e.length)},d=function(e){var t=u();return!!e&&t.includes(l(e))},f=function(e){var t;void 0===e&&(e=!1);try{var n=r.A.getState(),i=n.isAuthenticated;if(n.isMobile)return;var o=l(null===(t=n.chatHost)||void 0===t?void 0:t.username);if(!i)return c([]);var a=u(),s=a.includes(o);if(e||s){if(e&&s){var d=a.findIndex((function(e){return e===o}));a.splice(d,1),c(a)}}else a.push(o),c(a)}catch(e){0}}},2430:function(e,t,n){"use strict";n.d(t,{QD:function(){return c},Vn:function(){return d},bS:function(){return u},pi:function(){return l}});var r=n(15215),i=n(27655),o=n(23039),a=n(51560),s=n(12957);function c(e){void 0===e&&(e=null);var t=null==e?void 0:e.online,n=null==e?void 0:e.showType,o=(null==e?void 0:e.display_name)||(null==e?void 0:e.displayName),a=null==e?void 0:e.realTimeTag,s=null==e?void 0:e.isQoQWinner,c={isAvailable:Boolean(e)};return void 0!==t&&(c=(0,r.Cl)((0,r.Cl)({},c),{isOffline:!t})),void 0!==a&&(c=(0,r.Cl)((0,r.Cl)({},c),{rtAvailable:Boolean(a)})),void 0!==t&&void 0===n&&(c=(0,r.Cl)((0,r.Cl)({},c),{isPublicChat:t})),void 0!==t&&void 0!==n&&(c=(0,r.Cl)((0,r.Cl)({},c),{isPublicChat:t&&(n===i.A.PUBLIC_CHAT||![i.A.PRIVATE_CHAT,i.A.FULL_PRIVATE_CHAT,i.A.GROUP_CHAT,i.A.VIP,i.A.VOYEUR_CHAT].includes(n)),isPrivateChat:t&&n===i.A.PRIVATE_CHAT,isFullPrivateChat:t&&n===i.A.FULL_PRIVATE_CHAT,isGroupChat:t&&n===i.A.GROUP_CHAT,isVipShow:t&&n===i.A.VIP,isVoyeurChat:t&&n===i.A.VOYEUR_CHAT})),void 0!==o&&(c=(0,r.Cl)((0,r.Cl)({},c),{displayName:o})),void 0!==s&&(c=(0,r.Cl)((0,r.Cl)({},c),{isQoQWinner:s})),c}function u(e){void 0===e&&(e="high");var t=a.A.toSize(e).isPortrait,n=a.A.isVideoHD(e),r=t||a.A.isWideScreen(e);return{quality:e,aspectRatio:r?o.sH:o.nT,sizeHolderWidth:o.jz,sizeHolderHeight:r?o.Es:o.ui,isVideoHd:n,isMobileStream:t}}function l(e){return void 0===e&&(e=null),{private_chat:{isAvailable:e.allowPrivateChat,privateChatTokensPerMinute:e.privateChatTokensPerMinute},full_private_chat:{isAvailable:e.allowFullPrivateChat,privateChatTokensPerMinute:e.fullPrivateChatTokensPerMinute},group_chat:{isAvailable:e.allowGroupChat,privateChatTokensPerMinute:e.groupChatTokensPerMinute},voyeur_chat:{privateChatTokensPerMinute:e.voyeurChatTokensPerMinute}}}function d(e){var t={};return(0,s.loopv)(e,(function(e,n){(0,s.loopv)(e,(function(e,r){e.isStreamIconEnabled&&(t[r]={iconUrl:e.iconUrl,streamIconUrl:e.streamIconUrl,type:n})}))})),t}},58014:function(e,t,n){"use strict";n.d(t,{F:function(){return a},S:function(){return o}});var r=n(15215),i=n(31702);function o(e,t){var n=(0,r.Cl)((0,r.Cl)((0,r.Cl)({},e||{}),t),{private_chat:(0,r.Cl)((0,r.Cl)({},(null==e?void 0:e.private_chat)?null==e?void 0:e.private_chat:{}),t.private_chat?t.private_chat:{}),full_private_chat:(0,r.Cl)((0,r.Cl)({},(null==e?void 0:e.full_private_chat)?null==e?void 0:e.full_private_chat:{}),t.full_private_chat?t.full_private_chat:{}),group_chat:(0,r.Cl)((0,r.Cl)({},(null==e?void 0:e.group_chat)?null==e?void 0:e.group_chat:{}),t.group_chat?t.group_chat:{}),voyeur_chat:(0,r.Cl)((0,r.Cl)({},(null==e?void 0:e.voyeur_chat)?null==e?void 0:e.voyeur_chat:{}),t.voyeur_chat?t.voyeur_chat:{})});return["private_chat","full_private_chat","group_chat","voyeur_chat"].forEach((function(e){var t=n[e];t&&(t.isPrivateChatPriceChanged=t.defaultTokensPerMinute!==t.privateChatTokensPerMinute)})),n}function a(e,t){return(0,i.W)(e,t)}},47443:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var r=n(28327),i=function(e){return(0,r.e)(e)||e.isVip}},95655:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var r=function(e){return e.message?"".concat(__("Message deleted by %display_name%",{display_name:e.deletedBy}),'. ').concat(__("View deleted message"),""):'['.concat(__("Message deleted"),"]")}},24496:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});var r=n(15215),i=n(99823);function o(e){e.mtoffp=e.mtofp;var t=Object.keys(e).reduce((function(t,n){var o;return i.Y[n]?(0,r.Cl)((0,r.Cl)({},t),((o={})[i.Y[n]]=e[n],o)):t}),{});return(0,r.Cl)((0,r.Cl)({},chat.chatSettings),t)}},27326:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var r=n(32330);function i(e,t){return(0,r.gL)(e,"",t||10)}},65252:function(e,t,n){"use strict";n.d(t,{E:function(){return s},n:function(){return c}});var r=n(15215),i=n(4645),o=n(35172),a=n(41669);function s(e,t){for(var n=[],r=2;r=200&&n<500&&(window.clearInterval(e.intervalID),r.A.dispatch(i)("connected"),setTimeout((function(){r.A.dispatch(i)("online"),document.body.classList.remove("__no_connect"),window.location.reload()}),e.defaultTimer))})).catch((function(t){e.connectionAttempt+=1,5===e.connectionAttempt&&(window.clearInterval(e.intervalID),e.checkConnection(2*e.defaultTimer))}))}}return Object.defineProperty(e,"instance",{get:function(){return this.globalInstance||(this.globalInstance=new this)},enumerable:!1,configurable:!0}),e.prototype.init=function(){window.addEventListener("offline",(function(){r.A.dispatch(i)("offline")}))},Object.defineProperty(e.prototype,"getRandomString",{get:function(){return Math.random().toString(this.radix).substring(2,15)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getStatus",{get:function(){return r.A.getState().ethernetConnection},enumerable:!1,configurable:!0}),e.prototype.checkConnection=function(e){void 0===e&&(e=this.defaultTimer),document.body.classList.add("__no_connect"),this.intervalID=window.setInterval(this._checkConnection,e)},Object.defineProperty(e.prototype,"isOfflineStatus",{get:function(){return"offline"===this.getStatus},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iOSIsInstalled",{get:function(){return Boolean(window.navigator.standalone)},enumerable:!1,configurable:!0}),e.prototype.navigateRequest=function(e){this.isOfflineStatus&&window.location.assign(e)},e}()},1361:function(e,t,n){"use strict";var r,i;n.d(t,{M:function(){return r},z:function(){return i}}),function(e){e.BANNED_USERS="banned_users",e.FOLLOW_REQUESTS="follow_requests",e.FOLLOWERS="followers",e.FOLLOWINGS="followings",e.MODERATED_CHAT_ROOMS="moderated_chat_rooms",e.PINNED_MODELS="pinned_models",e.PINNED_MODELS_MODAL="pinned_models_modal"}(r||(r={})),function(e){e.DEFAULT="default",e.MODERN="modern"}(i||(i={}))},62779:function(e,t,n){"use strict";var r=n(15215),i=n(91414),o=function(){function e(){this.idb=new i.bp("archiveGameSettings"),this.initPromise=null,this.data={}}return e.isOutdated=function(e){var t=e.split("|"),n=(t[0],t[1],t[2]);return!n||(+n||0)«').concat(__("My Clips"),"»");break;case c.A.MEMBER_PAID_QUESTION_REJECTED:"%reason%"===t&&(a.reason=s[e])}}));var l=__(e,a);return n?l:p(l)}},85271:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var r=n(19826),i=n(82267),o=n(41669);function a(e){var t=r.A.getState(),n=t.isMobile;return t.isMobileApp?(chat.im.send(e),!0):n?void i.s.instance.send(e):!!o.noticeSocket&&(o.noticeSocket.send(e),!0)}},64900:function(e,t,n){"use strict";var r;n.d(t,{U:function(){return r}}),function(e){e[e.ONLINE=1]="ONLINE",e[e.NEW=2]="NEW",e[e.AWAY=4]="AWAY",e[e.HD_CAM=8]="HD_CAM",e[e.HD_PLUS=16]="HD_PLUS",e[e.VIBRATOY=32]="VIBRATOY",e[e.BONGA_ONLY=64]="BONGA_ONLY",e[e.FAN_BOOST=128]="FAN_BOOST",e[e.FIRST_PLACE=256]="FIRST_PLACE",e[e.MOBILE=512]="MOBILE",e[e.RUSSIAN_SPEAKING=1024]="RUSSIAN_SPEAKING",e[e.PINNED=2048]="PINNED",e[e.VIBRATOY_EXTENDED=4096]="VIBRATOY_EXTENDED",e[e.FRENCH_SPEAKING=8192]="FRENCH_SPEAKING",e[e.LAST_VIEWED=16384]="LAST_VIEWED",e[e.IS_AWAY_FRESH=32768]="IS_AWAY_FRESH"}(r||(r={}))},89414:function(e,t,n){"use strict";var r;n.d(t,{n:function(){return i},w:function(){return r}}),function(e){e.NAV="nav",e.BLOCKS="blocks",e.MAIN="main"}(r||(r={}));var i=function(e){return Object.values(r).includes(e)}},41350:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});var r=n(23110),i=function(e){return[r.n.MALE,r.n.TRANSSEXUAL].includes(e)?e:r.n.FEMALE}},10373:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var r=n(23110),i=function(e){return[r.n.ALL,r.n.FEMALE,r.n.MALE,r.n.TRANSSEXUAL].includes(e)}},75094:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=n(23110),i=function(e){return Object.values(r.n).includes(e)}},62271:function(e,t,n){"use strict";n.d(t,{h:function(){return m}});var r=n(15215),i=n(22336),o=n(59614),a=n(5037),s=n(19826),c=n(1579),u=n(80554),l=n(81714),d=n(18697),f=n(14850),h=n(56738),p=n(41669),m=function(){function e(){var e=this;this.currentChathostIndex=-1,this.navData=[],this.isAttached=!1,this.isLoading=!1,this.refreshDate=0,this.fetchingChathost=null,this.isManagerLoading=!1,this.nextRoom=(0,h.n)((function(){return(0,r.sH)(e,void 0,void 0,(function(){var e,t;return(0,r.YH)(this,(function(n){switch(n.label){case 0:return this.isAttached?!this.navData.length||this.isLoading||l.A.isModerator(null===(e=chat.userData)||void 0===e?void 0:e.role)&&!(0,f.ik)()?[2]:[4,null===(t=this.manager)||void 0===t?void 0:t.onNextRoom()]:((0,d._b)("ListingChatNavigation Core nextRoom Failed").error("Is not attached"),[2]);case 1:return n.sent(),this.loadChatRoom(),[2]}}))}))}),1e3),this.prevRoom=(0,h.n)((function(){return(0,r.sH)(e,void 0,void 0,(function(){var e,t;return(0,r.YH)(this,(function(n){switch(n.label){case 0:return this.isAttached?!this.navData.length||this.isLoading||l.A.isModerator(null===(e=chat.userData)||void 0===e?void 0:e.role)&&!(0,f.ik)()?[2]:[4,null===(t=this.manager)||void 0===t?void 0:t.onPrevRoom()]:((0,d._b)("ListingChatNavigation Core prevRoom Failed").error("Is not attached"),[2]);case 1:return n.sent(),this.loadChatRoom(),[2]}}))}))}),1e3),this.handleChangeChatNavigation=function(t,n){var i,o,a=t.chatNavigation,s=(n||{}).chatNavigation;if(a){var c=a.current,u=a.next,l=a.prev,f=s||{},h=f.current,p=f.next,m=f.prev;if(!(s&&l===m&&c&&h&&u===p)){if(e.navData=(0,r.fX)((0,r.fX)((0,r.fX)([],(0,r.fX)([],l||[],!0).reverse(),!0),[c],!1),u||[],!0),e.fetchingChathost=null,null==c?void 0:c.username)e.currentChathostIndex=e.navData.findIndex((function(e){return e&&e.username===c.username}));else if(u&&(null===(i=u[0])||void 0===i?void 0:i.username)){var v=u[0].username,g=e.navData.findIndex((function(e){return e&&e.username===v}));e.currentChathostIndex=g-1}else l&&l.length&&(e.currentChathostIndex=-1);e.refreshDate=Date.now(),e.navData.includes(void 0)&&(0,d._b)("ListingChatNavigation Core handleChangeChatNavigation TypeCheck").warn("undefined in navData"),e.navData.includes(null)&&(0,d._b)("ListingChatNavigation Core handleChangeChatNavigation TypeCheck").warn("null in navData"),(0,d._b)("ListingChatNavigation Core handleChangeChatNavigation Success").log({_currentChathostIndex:e.currentChathostIndex,_hasManager:Boolean(e.manager),_navData:e.navData,chatNavigation:a,prevChatNavigation:s}),null===(o=e.manager)||void 0===o||o.onNavChange()}}},this.loadChatRoom=function(){if(e.isAttached){var t=e.navData[e.currentChathostIndex];if(t&&t.username)s.A.getState().isMobile||(s.A.action(o.xH)(!0),s.A.action(a.Eb)(t.username)),t.username===chat.currentChathost&&chat.currentChathost&&!chat.waitRoomConnect&&(0,d._b)("ListingChatNavigation Core loadChatRoom Failed").error("Room is already active"),chat.getRoom(t.username,{title:null==t?void 0:t.display_name}),p("#bChat").triggerHandler("onCurrentChathost"),document.dispatchEvent(new CustomEvent(u.R.ON_CURRENT_CHATHOST_CHANGE)),p(document).triggerHandler(u.R.ON_CURRENT_CHATHOST_CHANGE);else(0,d._b)("ListingChatNavigation Core loadChatRoom Failed").error("Incorrect nav model",{index:e.currentChathostIndex,model:t,navData:e.navData})}else(0,d._b)("ListingChatNavigation Core loadChatRoom Failed").error("Is not attached")}}return Object.defineProperty(e,"instance",{get:function(){return this._instance||(this._instance=new this),this._instance},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isReady",{get:function(){return this.isAttached&&!!this.manager&&!!this.navData.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentChathost",{get:function(){var e;return this.fetchingChathost?this.fetchingChathost:null===(e=this.navData[this.currentChathostIndex])||void 0===e?void 0:e.username},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"navDataExpired",{get:function(){return!!this.refreshDate&&this.refreshDate+15e30?t._hideTimeoutId=setTimeout(r,n):r()}},e.stop=function(){clearTimeout(t._hideTimeoutId),clearTimeout(t._fallbackTimeoutId),t._hideTimeoutId=void 0,t._fallbackTimeoutId=void 0,t._showStartTime=null},e.setVisibility=function(e){(0,a._b)("SPA RoutingAnimationModule setVisibility").log(e),o.A.setState({isSpaRoutingLoader:!!e})},e}()},83482:function(e,t,n){"use strict";n.d(t,{H:function(){return o}});var r=n(15215),i=n(18697),o=function(e,t){return(0,i._b)("Store Action SEO update").log({payload:t}),{seo:(0,r.Cl)((0,r.Cl)({},e.seo||{}),t)}}},67435:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(41669),i=function(e){var t=r(e.selector);return t.length?t.empty():(t=r(e.htmlTemplate),e.insertAfter?t.insertAfter(e.$parent):e.$parent.append(t)),t}},78191:function(e,t,n){"use strict";n.d(t,{$Q:function(){return w},nm:function(){return O},lJ:function(){return E},Mq:function(){return _},y2:function(){return S},X7:function(){return y},YH:function(){return I},aL:function(){return A},nO:function(){return b}});var r=n(15215),i=n(19826),o=function(e,t,n){var o,a=t.config,s=i.A.getState(),c=s.isMobile,u=s.isClassicVersion;return{frontend:(o={},o[e]=[{config:(0,r.Cl)({isClassicVersion:u,isMobileVersion:c},a)},n],o)}},a=n(18697),s=n(23223);var c=function(e){return e.replace(/\r?\n|\r/g,"").replace(/\s+([{()}:,])/g,"$1").replace(/([{()}:,])\s+/g,"$1").replace(",}","}")},u=function(e){return e&&!Array.isArray(e)&&"object"==typeof e},l=function(e){return e&&Array.isArray(e)&&2===e.length&&u(e[0])&&u(e[1])},d=function(e){return(t=e,r=[],i={},JSON.stringify(t,(function(e,t){return e in i||(r.push(e),i[e]=null),t})),r.sort(),JSON.stringify(t,r,n)).replace(/"(\w+)":/g,"$1:").replace(/"(\d+)"/g,"$1").replace(/^{|}$/g,"");var t,n,r,i},f=function(e){if(!e)return"";if(Array.isArray(e)){if(2===e.length){var t=e[0],n=e[1];if(u(t)&&u(n))return"(".concat(d(t),") {").concat(f(n),"}")}return e.filter(Boolean).reduce((function(e,t){if(t&&!e.includes(t)){var n=f(t);e.push(n)}return e}),[]).sort().join(",")}if("object"==typeof e){for(var r="",i=0,o=Object.entries(e);i',s2:""};switch(n){case i.k.ACCOUNT_SETTINGS_ERROR:return(0,a.h)(E,{message:t||"",isError:!0});case i.k.ACCOUNT_SETTINGS_SUCCESS:return(0,a.h)(E,{message:t||__("Changes Saved")});case i.k.BAN:return(0,a.h)(S,{className:"tw_center",message:__("You've banned %displayname%",{displayname:''.concat(r,"")})});case i.k.FAN_BOOST_RECEIVED:return(0,a.h)(S,{className:"fan_boost",imgURL:(0,g.oF)("svg/bc/icon/icon_fan_boost.svg"),message:__("Model received a %s%Fan Boost%s_end%",{s:'',s_end:""})});case i.k.FOLLOW:return(0,a.h)(S,{className:"follow",icon:"follow",message:__("You're following %s1%%modelName%%s2%",e)});case i.k.LOVE_SEND:return(0,a.h)(S,{className:"lovers",icon:"lovers_add",message:__("You've sent a love to %s1%%modelName%%s2%",e)});case i.k.LOVE_WAS_SENDED:return(0,a.h)(S,{className:"lovers",icon:"lovers",message:__("You've already sent love to %s1%%modelName%%s2%",e)});case i.k.NOTIFICATION_DISABLE:return(0,a.h)(S,{className:"notify",icon:"notified",message:__("You've disabled notifications for %s1%%modelName%'s%s2% broadcasts",e)});case i.k.NOTIFICATION_ENABLE:return(0,a.h)(S,{className:"notify",icon:"notify",message:__("You've enabled notifications for %s1%%modelName%'s%s2% broadcasts",e)});case i.k.PIN:return(0,a.h)(S,{className:"pin",icon:"unpin",message:__("You've pinned %s1%%modelName%%s2%",e)});case i.k.PIN_TOO_MANY:return(0,a.h)(S,{className:"pin_pop",icon:"pin",message:trans("To pin a new model, you have to %a1%delete one of the previously pinned ones%a2%.",{a1:'',a2:""},{click:o||b.noop})});case i.k.TIP_WAS_SENDED:return(0,a.h)(S,{className:"tip",message:t});case i.k.UN_BAN:return(0,a.h)(S,{className:"tw_center",message:__("You've unbanned %displayname%",{displayname:''.concat(r,"")})});case i.k.UNFOLLOW:return(0,a.h)(S,{className:"follow",icon:"unfollow",message:__("You've unfollowed %s1%%modelName%%s2%",e)});case i.k.UNPIN:return(0,a.h)(S,{className:"pin",icon:"pin",message:__("You've unpinned %s1%%modelName%%s2%",e)});default:return(0,a.h)(S,{className:"message",message:t})}}())},C=function(e){var t=s.A.dispatch,n=s.A.getState().toastr;if(!(null==n?void 0:n.isLock)){var r=e.map((function(e){var t=e.className,n=e.callback,r=e.displayName,o=e.message,s=e.type,c=e.onClickAction,u=function(e){switch(e){case i.k.ACCOUNT_SETTINGS_ERROR:return"__account_settings __error";case i.k.ACCOUNT_SETTINGS_SUCCESS:return"__account_settings";default:return"__dark_design"}}(s);return{id:s,className:"".concat(t||"").concat(u?" ".concat(u):""),callback:n,content:(0,a.h)(w,{message:o,type:s,username:r,onClickAction:c})}}));t(p.mk)(r)}},T=function(e){return(0,o.sH)(void 0,void 0,void 0,(function(){var t,n;return(0,o.YH)(this,(function(r){switch(r.label){case 0:return[4,(0,d.L)(c.Kx)];case 1:return r.sent(),t=e?u.Y.TOASTR_NOTIFICATION_MOBILE:u.Y.TOASTR_NOTIFICATION,[4,(0,l.i)(t,document.body,null,(0,f.j)())];case 2:return r.sent(),h.isRTLCulture?(n=e?u.Y.TOASTR_NOTIFICATION_MOBILE_RTL:u.Y.TOASTR_NOTIFICATION_RTL,[4,(0,l.i)(n,document.body,null,(0,f.j)())]):[3,4];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))}},56575:function(e,t,n){"use strict";n.d(t,{t:function(){return l}});var r=n(15215),i=n(13907),o=n(8546),a=n(92284),s=n(14513),c=n(22641),u=n(62499),l=function(){function e(){var t=this;this.zwj=s.ZWJ,this.list=[],this.onlyImageList=[],this.allImageList=[],this.getSmileImage=function(e,t,n){var r;void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.src,s=null,c=null;return e.staticSrc&&(c=i,s=e.hasAPNG?(0,a.lH)(e):null,i=e.staticSrc),"".concat((0,a.Bx)({className:"smiley_wrp",class:(0,o.n)((r={sp_smile:!0},r["__".concat(e.type)]=!0,r["__v".concat(e.version)]=e.version,r)),src:i,apngSrc:s,fallbackSrc:c,loading:"eager",alt:t?"":e.token.replace(":",""),"data-token":e.tokens[0].replace(":","")},!1,n)).concat(t?"҂":"")},this.getOnlyImageOutputText=function(e){void 0===e&&(e="");var n="";return e=e.replace(/\n/g,"
"),t.onlyImageList.forEach((function(r){e=e.replace(r.pattern,(function(e,i,o){return t.isExistZWJ(e,i,o)?e:(n=e,r.replacer(e,r,!0,!0))}))})),{text:e,token:n}},this.getOutputText=function(e,n){return void 0===e&&(e=""),void 0===n&&(n=!0),n||(e=(0,c._N)(e)),e=e.replace(/\n/g,"
"),t.list.forEach((function(n){e=e.replace(n.pattern,(function(e,r,i){return t.isExistZWJ(e,r,i)?e:n.replacer(e,n,!1,!0)}))})),e},this.getClearText=function(e){return void 0===e&&(e=""),e=e.replace(/<(br|BR)( )?(\/)?>/g,""),e=(e=(0,c._N)(e)).replace((0,s.getUnicodeSmileysPattern)(),""),t.list.forEach((function(t){e=e.replace(t.pattern,(function(e,t,n){var r=n.substr(t+e.length,1);return r&&!r.replace(/[a-z0-9-_]/g,"")?e:""}))})),e.trim()},e.smilesPath=(0,i.oF)(u.A.SRC),this.list=(0,a.gB)(a.cM,{type:u.A.SMALL,replacer:function(n,r,i,o){return void 0===i&&(i=!1),void 0===o&&(o=!1),t.getSmileImageWithUrl(e.smilesPath,n,r,i,o)}},this.list),this.list=(0,a.gB)(a.a_,{type:u.A.CUSTOM,replacer:function(n,r,i,o){return void 0===i&&(i=!1),void 0===o&&(o=!1),t.getSmileImageWithUrl(e.smilesPath,n,r,i,o)}},this.list),this.onlyImageList=this.list.sort((function(e,t){return String(e.pattern).length-String(t.pattern).length})).reverse();var n=this.onlyImageList.map((function(e){if(e.tokens.length>1){var t="";return e.tokens.forEach((function(e,n){t+=(0===n?"":"|")+(0,a.ns)(e)})),t}return(0,a.ns)(e.tokens[0])})).join("|");this.replaceChatSmileysListPattern=new RegExp(n,"g"),Object.keys(s.default).forEach((function(e){t.list=(0,a.d4)(s.default[e],{type:u.A.UNICODE,replacer:function(e,n){return t.getUnicodeSmileHTML(n)}},t.list)})),this.list.sort((function(e,t){return String(e.pattern).length-String(t.pattern).length})).reverse(),this.allImageList=this.list}return e.getInstance=function(){return this._instance||(this._instance=new this)},e.prototype.isNextZWJ=function(e,t,n){return-1!==[n.substr(t+e.length,this.zwj.length),n.substr(t+e.length+1,this.zwj.length)].indexOf(this.zwj)},e.prototype.isExistZWJ=function(e,t,n){var r=n.substr(t-this.zwj.length,this.zwj.length);return this.isNextZWJ(e,t,n)||-1!==[r].indexOf(this.zwj)},e.prototype.getUnicodeSmileHTML=function(e){return''.concat(e.token,"")},e.prototype.getSmileImageWithUrl=function(e,t,n,i,o){return void 0===e&&(e=""),void 0===i&&(i=!1),void 0===o&&(o=!1),this.getSmileImage((0,r.Cl)((0,r.Cl)({},n),{src:"".concat(e).concat(n.src),staticSrc:n.staticSrc?"".concat(e).concat(n.staticSrc):null}),i,o)},e}()},93657:function(e,t,n){"use strict";n.d(t,{a:function(){return a},c:function(){return s}});var r=n(19826),i=n(41669),o=null,a=function(e){if(void 0===e&&(e=!1),e||null===o){var t=r.A.getState(),n=t.isMobile,i=t.user,a=t.isModerator,s=t.isAuthenticated,c=!(window.__MOBILE__||n);o=!(!a||!c)||c&&s&&Boolean(i.membership)}return o},s=function(){i(".smilePanel").hide(),i(".smileysHintPanel").hide()}},94535:function(e,t,n){"use strict";n.d(t,{Cp:function(){return s},Ih:function(){return c},wx:function(){return a}});var r=n(15215),i=n(12957),o=n(24629);function a(e,t){return{socialLinks:(0,r.Cl)((0,r.Cl)({},e.socialLinks),{isVisibleOnStream:t})}}function s(e,t,n){var o;if(!e.socialLinks)return e;var a=(0,r.fX)([],(null===(o=e.socialLinks)||void 0===o?void 0:o.socialProfiles)||[],!0);return(0,i.loopv)(a,(function(e){(0,i.loopv)(e.items,(function(e){e.id===t&&(e.isPurchased=!0,e.socialProfileLink=n)}))})),{socialLinks:(0,r.Cl)((0,r.Cl)({},e.socialLinks),{socialProfiles:a})}}function c(e,t){var n=e.socialLinks,a=e.user,s=(void 0===a?{}:a).balance,c=e.lang===o.A.RU,u=(0,r.fX)([],n.socialProfiles,!0),l=new Set;return(0,i.loopv)(t,(function(e){(0,i.loopv)(e,(function(e,t){l.add(t)}))})),(0,i.loopv)(u,(function(e,t){var n=e.items,r=[];(0,i.loopv)(n,(function(e){l.has(e.id)&&r.push(e)})),u[t].items=r})),u=u.filter((function(e){return e.items.length})),(0,i.loopv)(t,(function(e,t){(0,i.loopv)(u,(function(n,o){if(n.type===t){var a=[];(0,i.loopv)(n.items,(function(t){(0,i.loopv)(e,(function(e,n){if(t.id===n){var i=e.price,o=e.description,u=e.descriptionRu,l=e.urlHash;a.push((0,r.Cl)((0,r.Cl)({},t),{price:i,urlHash:l,description:c&&u?u:o,isBuyTokenRequired:s1,u[o].items=a}}))})),{socialLinks:(0,r.Cl)((0,r.Cl)({},e.socialLinks),{socialProfiles:u})}}},86757:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var r=n(60969),i=n(12731),o=n(15215),a=n(19826),s=a.A.action((function(e,t){var n=e.layover;return{layover:(0,o.Cl)((0,o.Cl)({},n),{wait:t})}})),c=n(74213),u=n(18697),l=n(17963),d=n(13907),f=n(41669),h=function(){function e(){}return e.report=function(e,t,n){var r;void 0===n&&(n={}),f.get((0,d.ip)("@track_url"),(0,o.Cl)(((r={})[e]=t,r),n))},e}(),p=n(18325),m=n(14625);window["#__test_setMemberDailyLimit"]=function(){return(0,l.jV)({todayFreeTime:2*Date.now(),todayFreeTimeStamp:0})};var v=a.A.action((function(e,t,n,r){var i,a=t,s=e.layover,l=e.dailyLimitExceeded,d=e.isMobile,f=e.isAuthenticated,v=e.sourceType;if(!d&&f&&"limit"===a&&a!==(null==s?void 0:s.type)&&["visible","collapse"].includes(null===(i=window.chat)||void 0===i?void 0:i.visibility)&&c.M.isEnabled(257)){var g=c.M.isNewVersion(257)?9e3:9010;h.report("ntid",g,{source_type:v})}if((0,u._b)("Chat Layover show").log({type:a,sex:n}),"limit"!==a&&l&&["limit","private","fullprivate","group","show_default"].indexOf(a)<0&&(a="limit"),!a)return{layover:(0,o.Cl)((0,o.Cl)({},s),{visible:!1,type:chat.currentShowType})};var _="limit"===a?"high":r,b=n||s.sex||p.A.FEMALE;return{layover:(0,o.Cl)((0,o.Cl)({},s),{visible:!0,type:a,sex:b,url:(0,m.p)(a,b!==p.A.FEMALE&&b||"",_)})}})),g=n(94535),_=n(41669),b=function(){function e(){}return Object.defineProperty(e,"instance",{get:function(){return this._instance=this._instance||new this},enumerable:!1,configurable:!0}),e.prototype.logger=function(){for(var e=[],t=0;t=0){var t=e.split("x").map((function(e){return parseInt(e,10)})),n=t[0];return{height:i=t[1],pixels:n*i,width:n,isPortrait:Boolean(n&&i&&n1e3||i>=737280)},e.isVideoFHD=function(t){var n=e.getQuality(t),r=e.toSize(n).pixels;return!!r&&r>=2073600},e.isWideScreen=function(t){var n=e.getQuality(t),r=e.toSize(n),i=r.height,o=r.width;return Boolean(o&&i/o<.75)},e}()},53162:function(e,t,n){"use strict";n.d(t,{A:function(){return a},o:function(){return s}});var r=n(57610),i=n(13907),o=n(8333),a=function(e,t,n){return void 0===n&&(n=!1),e&&t?"".concat((0,o.f)(e),"/stream_").concat(t,".jpg").concat(n?"?t=".concat((0,r.l)()):""):null},s=function(e,t){return e&&t?"https://".concat(e,".").concat((0,i.ip)("@video_host"),"/hls/stream_").concat(t,"/playlist.m3u8"):null}},8333:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(13907),i=function(e){return e?"//mobile-edge"+e+"."+(0,r.ip)("@video_host"):""}},23736:function(e,t,n){"use strict";function r(){var e=window.chat;return e&&e.performerData?e.paidShowId?e.paidShowId:"stream_"+e.performerData.username:null}n.d(t,{S:function(){return r}})},99996:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var r=n(8333);function i(e){var t=e.type,n=e.streamName,i=e.streamUrl,o=window.chat;if(!o)throw Error("getStreamUrl: Chat is not initialized");var a=o.localData,s=o.performerData,c=o.videoServerUrl;if(!a)throw Error("getStreamUrl: missing LocalData attribute on chat");return function(e){e.streamUrl=e.streamUrl||"",e.isPrivate=e.isPrivate||Boolean(e.privateId);var t=e.isPrivate?function(e){var t=e.type,n=e.privateId,r=e.streamUrl,i=e.streamName;switch(t){case"hls":case"hlsjs":return"".concat(r,"/").concat(n,"/").concat(i,"/playlist.m3u8");case"hlsRoot":return"".concat(r,"/").concat(n,"/").concat(i,"/");case"sldp":return"".concat(r.replace("-rn",""),"/").concat(n,"/").concat(i);case"dash":return"".concat(r,"/").concat(n,"/").concat(i,"/manifest.mpd");case"blurred":return"".concat(r,"/32x/").concat(i,".jpg");case"image":return"".concat(r,"/").concat(n,"/").concat(i,".jpg")}return""}(e):function(e){var t=e.type,n=e.streamUrl,r=e.streamName;switch(t){case"hls":case"hlsjs":return"".concat(n,"/hls/").concat(r,"/playlist.m3u8");case"hlsRoot":return"".concat(n,"/hls/").concat(r,"/");case"sldp":return"".concat(n.replace("-rn",""),"/hls/").concat(r);case"dash":return"".concat(n,"/public/").concat(r,"/manifest.mpd");case"blurred":return"".concat(n,"/32x/").concat(r,".jpg");case"image":return"".concat(n,"/").concat(r,".jpg")}return""}(e);if(!t)throw Error('Type "'.concat(e.type,'" is not supported'));return t}({type:t,streamName:(null==s?void 0:s.username)?"stream_".concat(s.username):n,streamUrl:("image"===t||"blurred"===t||"dash"===t)&&(0,r.f)(a.vsid)||i||c,privateId:o.paidShowId||null})}},22545:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(51560),i=n(19826),o=function(e){return r.A.toSize(function(e){var t,n;return e||(null===(t=null===chat||void 0===chat?void 0:chat.performerData)||void 0===t?void 0:t.videoQuality)||(null===(n=i.A.getState().chatHost)||void 0===n?void 0:n.quality)}(e)).isPortrait}},68753:function(e,t,n){"use strict";n.d(t,{Kr:function(){return a},Nl:function(){return o}});var r=n(39344),i=(0,r.object)({ban_username:(0,r.optional)((0,r.string)()),group_id:(0,r.optional)((0,r.string)()),group_title:(0,r.optional)((0,r.string)()),total_unread_messages_count:(0,r.optional)((0,r.number)()),username:(0,r.string)(),ut:(0,r.string)(),author_link_for_ban_html:(0,r.optional)((0,r.string)()),group_unread_messages_count:(0,r.optional)((0,r.number)())}),o=(0,r.object)({authorLinkForBanHtml:(0,r.optional)((0,r.string)()),closeGroupId:(0,r.optional)((0,r.string)()),it:(0,r.string)(),lt:(0,r.string)(),users:(0,r.array)(i)}),a=(0,r.object)({username:(0,r.string)(),usernames:(0,r.array)((0,r.string)()),ut:(0,r.string)()})},46213:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var r=n(15215),i=n(19826),o=n(96998),a=n(85271),s=n(26616),c=n(68753),u=function(e){var t=e.authorUsername,n=e.mcm,u=e.username,l=e.onFail,d=void 0===l?s.noop:l,f=e.onSuccess,h=void 0===f?s.noop:f,p=(0,r.Cl)((0,r.Cl)({username:u},t&&{authorUsername:t}),(null==n?void 0:n.userId)&&{mcm:{user_id:n.userId}});(0,o.mN)("@im_ban_user",{body:p,expect:c.Nl,method:"POST",onError:function(){d()},onSuccess:function(e){var t=e.authorLinkForBanHtml,n=e.closeGroupId,o=e.it,s=e.lt,c=e.users,u=i.A.getState().user;c.forEach((function(e){var i=e.ban_username,c=e.username,l=e.ut;if(!i||!(null==u?void 0:u.username)||c===u.username){var d=(0,r.Cl)((0,r.Cl)((0,r.Cl)({author:null==u?void 0:u.username,username:c,ut:l},i&&{ban_username:i}),n&&{group_id:n,it:o}),t&&!i&&{author_link_for_ban_html:t,lt:s});(0,a.m)({data:{data:d,type:1},type:"user"})}})),h()}})}},50973:function(e,t,n){"use strict";n.d(t,{X:function(){return r.X},v:function(){return u}});var r=n(46213),i=n(15215),o=n(96998),a=n(85271),s=n(26616),c=n(68753),u=function(e,t,n,r){if(void 0===n&&(n=s.noop),!e.length)return!1;var u=(0,i.Cl)({usernames:e},t&&{author_username:t});(0,o.mN)("@im_unban_users",{body:u,expect:c.Kr,method:"POST",onComplete:function(){null==r||r()},onSuccess:function(e){var t=(0,i.Cl)({},e);(0,a.m)({data:{data:t,type:2},type:"user"}),n()}})}},77655:function(e,t,n){"use strict";n.d(t,{MG:function(){return o},YU:function(){return i},kA:function(){return a}});var r=n(15215),i=function(e,t){return{memberConfirmEmail:{confirm:t}}},o=function(e,t){return{user:(0,r.Cl)((0,r.Cl)({},e.user),{email:t})}},a=function(e,t){var n,i;if(e.memberConfirmEmail){var o=e.memberConfirmEmail.confirm?"confirm":"update";return{memberConfirmEmail:(n={},n[o]=(0,r.Cl)((0,r.Cl)({},e.memberConfirmEmail[o]),{context:(0,r.Cl)((0,r.Cl)({},null===(i=e.memberConfirmEmail[o])||void 0===i?void 0:i.context),{isMinHeader:t})}),n)}}}},76316:function(e,t,n){"use strict";n.d(t,{s:function(){return i}});var r=n(15215),i=n(19826).A.action((function(e,t){return{user:(0,r.Cl)((0,r.Cl)({},e.user),t)}}))},82138:function(e,t,n){"use strict";n.d(t,{E:function(){return a}});var r=n(28534),i=n(52276),o=n(41669),a=function(e,t){void 0===t&&(t=!1);var a=o(".js-tokens"),s=parseInt(a.first().text()),c=Math.max(0,(s||0)-e);!t&&c<.15*parseFloat(a.attr("data-last-purchase"))&&n.e(319).then(n.bind(n,30740)).then((function(e){return e.init(),e})).then((function(e){return e.getFewTokensIm()})),0===c&&e<=s&&(0,r.y)(i.L.NO_TOKENS_MANUAL,{force:!0})}},45008:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(19826),i=function(e){return Boolean(r.A.getState().ignoredUsers[e])}},44705:function(e,t,n){"use strict";n.d(t,{U:function(){return o}});var r=n(15215),i=n(19826).A.action((function(e,t){var n,i=t.key,o=t.value;return{user:(0,r.Cl)((0,r.Cl)({},e.user),{mainBarBubble:(0,r.Cl)((0,r.Cl)({},e.user.mainBarBubble),(n={},n[i]=o,n))})}}));function o(e,t){i({key:e,value:t})}},45667:function(e,t,n){"use strict";n.d(t,{o:function(){return a}});var r=n(26616),i=n(17402),o=n(41669),a=function(e){var t=e.handles;(0,i.useEffect)((function(){var e=function(e,n){if(n&&"user"===n.type){var i=n.data;if(i&&i.type){var o=t[i.type]||r.noop;"function"==typeof o&&o(i)}}};return o(document).on("onNoticeSocketMessage",e),function(){o(document).off("onNoticeSocketMessage",e)}}),[t])}},17963:function(e,t,n){"use strict";n.d(t,{ID:function(){return m},jL:function(){return p},jV:function(){return f}});var r,i=n(15215),o=n(56803),a=n(72418),s=n(28812),c=n(9613),u=n(63366);function l(e,t){localStorage.setItem((0,u.K)(e),t)}function d(e){return localStorage.getItem((0,u.K)(e))}function f(e,t){var n=(0,i.Cl)((0,i.Cl)({},p()),e),r=n.stamp,s=n.todayFreeTime,u=n.todayFreeTimeStamp,d=n.todayMessages,f=n.todayRooms;if(!t&&(0,o.O)())l("ls.s","".concat(r)),l("ls.tfts","".concat(u)),l("ls.tft","".concat(s)),l("ls.tm","".concat(d)),l("ls.tr",JSON.stringify(f));else{var h={s:r,tfts:u,tft:s,tm:d,tr:f},m=(0,a.getRealDomain)();(0,c.Hk)("ls",JSON.stringify(h),{path:"/",expires:1,expiresType:"day",domain:m})}}function h(){var e=JSON.parse((0,c.Hk)("ls")||"{}");return{stamp:parseInt(e.s)||0,todayFreeTimeStamp:parseInt(e.tfts)||0,todayFreeTime:parseInt(e.tft)||0,todayMessages:parseInt(e.tm)||0,todayRooms:e.tr||[]}}function p(){return(0,o.O)()?{stamp:parseInt(d("ls.s"))||0,todayFreeTimeStamp:parseInt(d("ls.tfts"))||0,todayFreeTime:parseInt(d("ls.tft"))||0,todayMessages:parseInt(d("ls.tm"))||0,todayRooms:(0,s.json_parse)(d("ls.tr"))||[]}:h()}function m(){var e=p(),t=e.stamp+864e5,n=new Date;n.setHours(0,0,0,0);var r=0;if(!e.stamp||n.getTime()>=t)return{hours:0,minutes:0,seconds:0};var i=new Date;return r=Math.max(0,(t-i.getTime())/1e3),{hours:Math.floor(r/3600),minutes:Math.floor(r/60%60),seconds:Math.floor(r%60)}}if((0,o.O)()){var v=h();if(0!==v.todayFreeTime){var g=parseInt(d("ls.tft"),10)||0,_=(0,s.json_parse)(d("ls.tr"))||[];(g.5&&(e.noSleepVideo.currentTime=Math.random())}))}))}return e.prototype._addSourceToVideo=function(e,t,n){var r=document.createElement("source");r.src=n,r.type="video/".concat(t),e.appendChild(r)},Object.defineProperty(e.prototype,"isEnabled",{get:function(){return this.enabled},enumerable:!1,configurable:!0}),e.prototype.enable=function(){var e=this;return this.noSleepVideo.play().then((function(t){return e.enabled=!0,t})).catch((function(t){throw e.enabled=!1,t}))},e.prototype.disable=function(){this.noSleepVideo.pause(),this.enabled=!1},e}(),s=n(7526),c=n(89348),u=n(86757),l=n(19826),d=n(22706),f=n(26616),h=n(59057),p=n(52699),m=l.A.action((function(e,t){return{soundVolume:t}})),v=n(48132),g=n(9853),_=function(e,t){void 0===t&&(t=f.noop);var n=this;this.src=e,this.onFrame=t,this.getFrame=function(e){var t=document.createElement("canvas"),r=t.getContext("2d"),i=document.createElement("video");i.autoplay=!1,i.setAttribute("crossorigin","anonymous"),i.onloadedmetadata=function(){t.height=i.videoHeight,t.width=i.videoWidth,i.currentTime=(0,g.qE)(e,0,1)*i.duration},i.onseeked=function(e){r.drawImage(i,0,0,t.width,t.height),n.onFrame(t.toDataURL(),i.currentTime,null)},i.onerror=function(e){n.onFrame("",0,e)};var o=n.src;if(o.indexOf(".m3u8")){var a=new window.Hls({maxBufferLength:1,nudgeMaxRetry:1});a.loadSource(o),a.attachMedia(i)}else i.src=o,i.load();n.getFrame=function(e){i.currentTime=(0,g.qE)(e,0,1)*(Number.isFinite(i.duration)?i.duration:0)}}},b=n(13446),y=n(41669),A=function(){function e(){var e=this;this.noSleep=new a,this.player=null,this.state=v.ce.CLOSED,this._volume=v.z$,this.prevFormats=null,this.nextFormats=null,this.autoPlay=!1,s.I.on("VideoPlayerEvent:init",(function(t){if(e.autoPlay){var n=e.volume;setTimeout((function(){t.setVolume(n),t.play()}),1)}})),y("#bChat").on("onBeforeGetRoom",(function(){y("#stream-container .spinner").show()}))}return Object.defineProperty(e,"instance",{get:function(){return this._instance||(this._instance=new this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._volume},set:function(e){var t;this._volume=Math.min(1,Math.max(0,e)),null===(t=this.player)||void 0===t||t.setVolume(this.volume),m(this._volume),d.BrowserDetect.isIOS()&&this.toggleNoSleep(this.volume<=0)},enumerable:!1,configurable:!0}),e.prototype.setUserClick=function(){this.player&&(this.player.userClick=!0)},e.prototype.toggleNoSleep=function(e){e?this.noSleep.enable():this.noSleep.disable()},e.prototype.init=function(){var t=this;if(!this.player){this.player=(0,b.rV)(),this.player.setVolume(this.volume);var n=l.A.getState(),i=n.isFullMobile,o=n.isMobile;document.addEventListener("visibilitychange",(function(){var t="visible"===document.visibilityState,n=e.instance.player;if(n){(0,h.J)("Visibility Change");var r=y("#videoView"),i=(d.BrowserDetect.isFirefox()||d.BrowserDetect.isIOS()||d.BrowserDetect.isIpadOS())&&o,a=function(){n.play(),i&&(0,p.r)(!1)};if(t&&r.length&&r.is(":visible")&&n.playing)if((0,h.J)("Try to resume playing"),n.videoElement){var s=null==n?void 0:n.videoElement.play();s&&s.then((function(){i&&(0,p.r)(!1)}),(function(){a()})).catch((function(e){a()}))}else a();i&&!t&&n.videoElement&&(n.videoElement.pause(),(0,p.r)(!0))}else(0,h.J)("Visibility Change error: Player not found")})),y(document).on("click","#player-livestatus",(function(){t.player.isTimeShift&&(t.autoPlay=t.player.playing,t.changePlayer(null,(function(){t.player.isTimeShift=!1,t.player.setVolume(t.volume)})))}));var a=i&&d.BrowserDetect.isSafari_IOS()?"touchstart":"click";y(document).on(a,".pl-fullscreen-button",(function(){t.toggleFullscreen(!l.A.getState().isFullScreen)}));var s=y("body");if(s.hasClass(c.l)&&!s.hasClass("stream_only"))r.A.instance}},e.prototype.toggleFullscreen=function(e,t){var n;void 0===t&&(t=!1);var o=y(".fs-chat-divider .js-chat_msg_input");if((null===(n=y("#ResizablePane").get(0))||void 0===n||n.dispatchEvent(new CustomEvent(i.R.RESIZE_PLAYER)),!t)&&!window.chat.toggleFullscreen(e))return;if(u.A.instance.toggleVisibilitySocials(!l.A.getState().isFullScreen),e)r.A.instance;else o.data("placeholder")&&o.attr("placeholder",o.data("placeholder"));y("html").css("overflow-y",e?"hidden":"scroll")},e.prototype.switchPlayer=function(e,t){void 0===t&&(t=!1),this.nextFormats=e,this.nextFormatsOnce=t},e.prototype.playRequest=function(){this.player&&!this.player.userClick&&this.player.videoElement&&!chat.currentChathost&&this.player.playRequest()},e.prototype.playStream=function(){var e,t,n=this;if(this.state=v.ce.PLAYING,s.I.dispatch("VideoPlayerEvent:play"),l.A.getState().dailyLimitExceeded)return(null===(e=this.player)||void 0===e?void 0:e.playing)&&this.closeStream(),null===(t=this.player)||void 0===t||t.destroy(),this.player=null,void chat.onVideoStreamLimit(!1);var r=this.nextFormats;chat.paidShowId&&(0,b.tf)("sldp")&&"sldp"!==r&&"webrtc"!==r&&(r="sldp"),this.nextFormatsOnce&&(this.nextFormatsOnce=!1,this.nextFormats=null),chat.showButtons(!0),chat.hideButtons(),u.A.instance.hideLayover(),u.A.instance.setLayoverWait(["group","fullprivate","private","voyeur"].indexOf(chat.currentShowType)>=0),this.changePlayer(r,(function(){n.playStreamInt()}))},e.prototype.closeStream=function(){var e=this;this.state=v.ce.CLOSED,s.I.dispatch("VideoPlayerEvent:close"),u.A.instance.hideLayover(),o.A.isModerator(chat.userData.role)&&-1===["private","fullprivate","group","vip"].indexOf(chat.performerStatus)&&(chat.paidShowId=null),this.player&&(this.player.isTimeShift||"sldp"===this.player.type?this.changePlayer(null,(function(){e.player.setVolume(e.volume)})):this.player.close(!0)),y("#bChat").triggerHandler("onCloseStream")},e.prototype.seekStream=function(e){var t=this;window.chat.localData.tsvUrl&&!(0,b.tf)("hls")||(this.player.isTimeShift?this.player.seek(e):this.changePlayer("hls",(function(){var n=t.player;n.isTimeShift=!0,y("#EmbedSWF").removeClass("playing"),y("#displaySWF, #videoView").remove(),chat.service.getWmsAuthSign((function(r,i){var o=i.wmsAuthSign,a=l.A.getState().isModerator;if(o||a){n.setAuthToken(o),n.setStartOffset(e),n.setStreamUrl(chat.localData.tsvUrl);var s=y(".time_shift_preview_image").get(0);n.dynamicThumbs=new _(chat.localData.tsvUrl,(function(e,t,n){s.src=e})),t.playStream()}}))})))},e.prototype.playStreamInt=function(){var e=this;this.state=v.ce.PLAYING,this.player?(this.player.videoElement&&!this.player.videoElement.id?s.I.one("VideoPlayerEvent:init",(function(){chat.performerStatus&&e.playStream()})):(this.player.setVolume(this.volume),this.player.play()),chat.videoPlayerType!==this.player.type&&(chat.videoPlayerType=this.player.type,l.A.action((function(e,t){return{currentPlayerType:t}}))(this.player.type),y.get("/tools/metrics.php",{videoplayer:chat.videoPlayerType})),y("#bChat").triggerHandler("onPlayStream")):console.error("[PLAYER] Player is not ready")},e.prototype.changePlayer=function(e,t){var n,r=this;if(void 0===e&&(e=null),void 0===t&&(t=f.noop),"sldp"!==e||this.prevFormats!==e){this.prevFormats=e;var i=null===(n=this.player)||void 0===n?void 0:n.destroy();i?i.then((function(){r.player=e?(0,b.lD)(e):(0,b.rV)(),t()})):(this.player=e?(0,b.lD)(e):(0,b.rV)(),t())}else t()},e}()},98928:function(e,t,n){"use strict";n.d(t,{z:function(){return l}});var r=n(74213),i=n(19826),o=n(9613),a=n(9853),s=n(48132),c=n(80786),u=n(41669),l=function(){function e(){var e=this;this._volume=null,this.isUserEvent=!1,this.saveSoundVolume=function(){return localStorage.setItem(s.ZB,e._volume.toString())}}return Object.defineProperty(e,"instance",{get:function(){return this._instance||(this._instance=new this)},enumerable:!1,configurable:!0}),e.prototype.init=function(){var e=this,t=i.A.getState().chatLocalData.promoAudioMute;if(this.$soundButton=u("#sound-btn"),this.$streamVolume=u(".stream-volume"),this.$soundButton.on("click",(function(){e.toggleSound(),r.M.reportEvent(61,"click",{value:Number(e._volume>0)})})),t)return this.volume=0,void this.$soundButton.addClass("sound-off");this.refreshSound(),this.isSoundMuted()&&this.$soundButton.addClass("sound-off")},e.prototype.isSoundMuted=function(){return this._volume<=0},e.prototype.setDefaultVolume=function(){this.volume=s.z$},e.prototype.refreshSound=function(){var e,t=null!==(e=(0,o.Hk)("pv"))&&void 0!==e?e:localStorage.getItem(s.ZB);null===t?this.setDefaultVolume():this.volume=parseFloat(t)||0,this.saveSoundVolume(),(0,o.Hk)("pv",null)},e.prototype.setSoundVolumeOnly=function(e){return this._volume=(0,a.qE)(e,-1,1),c.A.instance&&(c.A.instance.volume=this.volume),(this.isUserEvent||e>0)&&(this.saveSoundVolume(),this.isUserEvent=!1),this._volume},Object.defineProperty(e.prototype,"volume",{get:function(){return Math.max(0,this._volume)},set:function(e){if(this.$streamVolume){var t=this.setSoundVolumeOnly(e);this.$streamVolume.toggleClass("muted",this.isSoundMuted()).find("input").each((function(){u(this).val(100*t)})),this.$soundButton.toggleClass("sound-off",this.isSoundMuted()).toggleClass("sound-on",!this.isSoundMuted()),u(document).trigger("player:volume",[this._volume])}},enumerable:!1,configurable:!0}),e.prototype.toggleSound=function(e){void 0===e&&(e=!0),e&&this.setUserEvent(),this.volume=0===this._volume?s.z$:-this._volume},e.prototype.setUserEvent=function(){this.isUserEvent=!0,c.A.instance.setUserClick()},e.prototype.restoreSoundVolume=function(){var e=localStorage.getItem(s.ZB),t=e?parseFloat(e):s.z$;t!==this._volume&&(this.volume=t)},e}()},37921:function(e,t,n){"use strict";n.d(t,{$:function(){return r}});var r=function(){var e=document.getElementById("video_player_container");return e&&(e.querySelector("#videoView")||e.querySelector("video"))}},42869:function(e,t,n){"use strict";function r(e,t){void 0===t&&(t="image/png");try{var n=document.createElement("canvas");n.width=e.videoWidth,n.height=e.videoHeight,n.getContext("2d").drawImage(e,0,0);var r=n.toDataURL(t);return r.length>10?r:""}catch(e){console.error(e)}return""}n.d(t,{s:function(){return r}})},45505:function(e,t,n){"use strict";n.d(t,{G:function(){return s},t:function(){return c}});var r=n(13907),i=n(59057),o=n(52699),a=null,s=function(){return a};function c(e,t,n){if(null===a||n){t||(0,i.M)();var s=document.getElementById("videoCheckAutoPlay");s||((s=document.createElement("video")).src="".concat((0,r.ip)("@cdn_host"),"/images/chat/video/video.mp4"),s.autoplay=!0,s.style.position="fixed",s.style.width="320px",s.style.height="240px",s.style.top="-5000px",s.id="videoCheckAutoPlay",s.setAttribute("playsinline",""),s.setAttribute("webkit-playsinline",""),s.setAttribute("x-webkit-airplay","deny"),document.body.appendChild(s));var c=function(t){n||s.remove(),(0,i.J)("status: ".concat(JSON.stringify(t))),e(a=t)};s.onerror=function(){c(!1)},(0,i.J)("load and play video"),s.load();var u=s.play();if(void 0===u)return(0,i.J)("old version play started, is paused: ".concat(JSON.stringify(s.paused))),void c(!s.paused);u.then((function(){(0,i.J)("Resolved: play started, is paused: ".concat(JSON.stringify(s.paused))),c(!s.paused)}),(function(){(0,i.J)("Reject: try muted"),s.pause(),s.muted=!0,s.volume=0;var e=s.play();if(e){var t=setTimeout((function(){(0,i.J)("Muted Play Promise timeout"),(0,o.r)(!0),c(!1)}),6e3);e.then((function(){clearTimeout(t),(0,o.r)(s.paused),(0,i.J)("play muted started, is paused: ".concat(JSON.stringify(s.paused))),c("muted")}),(function(){clearTimeout(t),(0,i.J)("play rejected"),(0,o.r)(!0),c(!1)})).catch((function(e){clearTimeout(t),(0,o.r)(!0),(0,i.J)("play muted error, autoplay disabled"),c(!1)}))}else(0,i.J)("old version play muted started, is paused: ".concat(JSON.stringify(s.paused))),c(!s.paused&&"muted")})).catch((function(e){(0,i.J)("Catch: error: ".concat(JSON.stringify(e))),c(!s.paused)}))}else e(a)}},46445:function(e,t,n){"use strict";var r=n(22706),i=n(11402),o=n(9853),a=n(9127),s=n(80786),c=n(41669),u=window.userClick||!1,l=function(){u=!0,window.removeEventListener("click",l)};window.addEventListener("click",l);var d=new Map,f=function(){function e(){this.GUID=(0,i.fE)(),this.type="unknown",this.playing=!1,this.authToken="",this.streamUrl="",this.startOffset=0,this.renditions=[],this.currentRendition="auto"}return Object.defineProperty(e.prototype,"userClick",{get:function(){return u},set:function(e){u=e},enumerable:!1,configurable:!0}),e.prototype.restart=function(){},e.prototype.play=function(){this.playing=!0},e.prototype.pause=function(){this.playing=!1},e.prototype.close=function(){this.playing=!1},e.prototype.destroy=function(){},e.prototype.cancelVolumeByClickRestoration=function(){},e.prototype.applyVolume=function(e){return Math.max(0,e)},e.prototype.setVolume=function(e){return this.applyVolume(e)},e.prototype.getVolume=function(){return s.A.instance.volume},e.prototype.getHTMLVideoElement=function(){return null},e.prototype.getLastVideoFrame=function(){return""},e.prototype.setAuthToken=function(e){this.authToken=e},e.prototype.setStreamUrl=function(e){this.streamUrl=e},e.prototype.getStreamUrl=function(){return this.streamUrl},Object.defineProperty(e,"available",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.getAuthTokenQuery=function(){return this.authToken?"?wmsAuthSign=".concat(this.authToken):""},e.prototype.setStartOffset=function(e){this.startOffset=(0,o.qE)(e,0,1)},e.prototype.seek=function(e){},e.prototype.setRendition=function(e){},e.prototype.enableGPUResize=function(e,t,n){var r,i,o;if(void 0===t&&(t=e.parentElement),void 0===n&&(n=!1),e&&t&&window.ResizeObserver){var s=!c.mobile,u=(null===(r=a.O.WebKit)||void 0===r?void 0:r.versionAbove(17))||(null===(i=a.O.WebKit)||void 0===i?void 0:i.versionBetween(15.5,16)),l={height:u?1:1024,width:u?1:1024};e.style.position="absolute",e.style.width="".concat(l.width,"px"),e.style.height="".concat(l.height,"px"),e.style.transformOrigin="0 0",e.style.objectFit=u?"contain":"fill";var f=function(r){var i,o=void 0===r?{}:r,a=o.content,c=void 0===a?{height:e.videoHeight,width:e.videoWidth}:a,f=o.container,h=void 0===f?t.getBoundingClientRect():f,p=h.width,m=h.height;if(document.body.contains(e)&&document.body.contains(t)){if(c.width&&c.height){var v={contain:Math.min(p/c.width,m/c.height),cover:Math.max(p/c.width,m/c.height),height:m/c.height},g=c.height>c.width,_=s&&g||!s?v.height:v.cover,b=Number.parseFloat(e.style.getPropertyValue("--pan"))||0,y=c.width/c.height,A=Math.max(m*y-p,0)/2;e.style.setProperty("--pan","".concat(Math.min(Math.max(b,-A),A),"px")),n&&(l={height:c.height,width:c.width},e.style.width="".concat(l.width,"px"),e.style.height="".concat(l.height,"px"));var S=g&&!n&&u?1/y:1,E=g||n||!u?1:y,w=_*c.height/l.height*E,C=_*c.width/l.width*S,T=parseFloat(getComputedStyle(e).borderLeftWidth)*C||0,L=-(parseFloat(getComputedStyle(e).borderTopWidth)*w||0)-(l.height*w-m)/2,M=-T-(l.width*C-p)/2;e.style.transform="translate3d(calc(var(--pan,0) + ".concat(M,"px), ").concat(L,"px, 0) scale3d(").concat(C,", ").concat(w,", 1)")}}else null===(i=d.get(e))||void 0===i||i()},h=function(){return f()};null===(o=d.get(e))||void 0===o||o();var p=new ResizeObserver((function(e){var t=e[0].contentRect;return f({container:t})}));p.observe(t);var m=new MutationObserver(h);m.observe(e.parentElement,{childList:!0}),window.addEventListener("resize",h),e.addEventListener("resize",h),h(),d.set(e,(function(){window.removeEventListener("resize",h),e.removeEventListener("resize",h),d.delete(e),m.disconnect(),p.disconnect()}))}},e.prototype.disablePictureInPicture=function(e){var t,n;if(e&&e.parentElement&&(r.BrowserDetect.isYandex()&&e.addEventListener("enterpictureinpicture",(function(){if(document.pictureInPictureElement===e){var t=e.nextSibling,n=e.parentElement;e.remove(),null==n||n.insertBefore(e,t)}})),r.BrowserDetect.isFirefox())){var i="position: absolute; height: 100%; width: 100%; inset: 0px;",o="data:video/webm;base64,GkXfo0AgQoaBAUL3gQFC8oEEQvOBCEKCQAR3ZWJtQoeBAkKFgQIYU4BnQI0VSalmQCgq17FAAw9CQE2AQAZ3aGFtbXlXQUAGd2hhbW15RIlACED/QAAAAAAAFlSua0AxrkAu14EBY8WBAZyBACK1nEADdW5khkAFVl9WUDglhohAA1ZQOIOBAeBABrCBCLqBCB9DtnVAIueBAKNAHIEAAIAwAQCdASoIAAgAAUAmJaQAA3AA/vz0AAA=";if("hotkeyInterceptor"===(null===(t=e.previousElementSibling)||void 0===t?void 0:t.id)&&e.previousElementSibling instanceof HTMLVideoElement)e.previousElementSibling.src=null,e.previousElementSibling.src=o;else{var a=document.createElement("video");a.id="hotkeyInterceptor",a.style.cssText=i,a.style.zIndex="-1",a.src=o,a.onpause=function(){return document.hidden||a.play()},a.autoplay=!0,a.muted=!0,a.loop=!0,e.parentElement.insertBefore(a,e),addEventListener("click",(function(){return a.play()}),{once:!0})}if("buttonInterceptor"!==(null===(n=e.nextElementSibling)||void 0===n?void 0:n.id)){var s=document.createElement("video");s.id="buttonInterceptor",s.style.cssText=i,e.parentElement.insertBefore(s,e.nextSibling)}}},e}();t.A=f},27297:function(e,t,n){"use strict";n.d(t,{q:function(){return s}});var r=n(50172),i=n(17402),o=n(62318),a=function(){return""},s=function(){return(0,r.h)(i.Fragment,null,(0,r.h)(o.A,{name:"public",type:"hls",url:a}),(0,r.h)(o.A,{name:"public",type:"sldp",url:a}),(0,r.h)(o.A,{name:"public",type:"dash",url:a}),(0,r.h)(o.A,{name:"public",type:"blurred",url:a}),(0,r.h)(o.A,{name:"public",type:"image",url:a}))}},38741:function(e,t,n){"use strict";var r=n(15215),i=n(62614),o=n(13907),a=n(86757),s=n(46445),c=n(98700),u=n(7526),l=n(52699),d=n(37921),f=n(22706),h=n(71998),p=n(26616),m=n(19826),v=n(42869),g=n(41669),_=function(e){function t(){var t=e.call(this)||this;return t.type="flashphoner",t.containerElement=null,t.stream=null,t.session=null,t.isDisconnected=!0,t.isClosing=0,t.isDestroying=0,t.onDisconnect=p.noop,t.getStreamSettings=function(){var e,n=m.A.getState().chatHost,r=(null===(e=chat.performerData)||void 0===e?void 0:e.username)||n.username;return{name:chat.paidShowId?"".concat(chat.paidShowId,"/stream_").concat(r):"stream_".concat(r),display:t.containerElement,remoteVideo:t.videoElement,stripCodecs:-1!==window.navigator.userAgent.indexOf("OPR/")?"H264":"",transport:"TCP"}},t.captureEvent=function(e,t){void 0===t&&(t=null),g.get("/tools/metrics.php",{webrtc_video_player_event:e,webrtc_event_desc:t,webrtc_model:chat.performerData.username})},t.handleSessionEstablished=function(e){t.isDisconnected=!1;var n=e.createStream(t.getStreamSettings());t.session=e;var r=Flashphoner.constants.STREAM_STATUS,i=r.PENDING,o=r.PLAYING,a=r.STOPPED,s=r.FAILED,c=r.NOT_ENOUGH_BANDWIDTH;n.on(i,t.handleStreamPending).on(o,t.handleStreamPlaying).on(a,t.handleStreamStopped).on(s,t.handleStreamFailed).on(c,t.handleStreamPureBandwidth),n.play()},t.handleStreamPending=function(e){},t.checkCurrentTime=function(){var e=t.videoElement.currentTime;t.checkCurrentTimeInterval=setInterval((function(){t.videoElement.currentTime!==e&&(clearInterval(t.checkCurrentTimeInterval),a.A.instance.hideLayover(),a.A.instance.setLayoverWait(!1)),e=t.videoElement.currentTime}),100)},t.handleStreamPlaying=function(e){var n,r,o=i.w.getContainerHTML(document.getElementById("stream-container"));(0,l.r)(!1),null==o||o.classList.add("playing"),null===(n=t.containerElement)||void 0===n||n.classList.remove("js-hidden_player"),t.stream=e,t.setVolume(t.getVolume()),t.captureEvent("play"),t.checkCurrentTime(),t.enableGPUResize(t.videoElement,null===(r=t.containerElement)||void 0===r?void 0:r.parentElement,!0),(0,h.FR)()&&chat.setVideoSize(),t.videoElement.style.setProperty("--pan","0px"),t.videoElement.classList.remove("hidden"),t.videoElement&&f.BrowserDetect.isIOS()&&(t.videoElement.style.border="solid 1px black",t.videoElement.classList.add("ios_fix")),t.videoElement.addEventListener("loadeddata",(function(){u.I.dispatch("VideoPlayerEvent:playing")}))},t.handleStreamStopped=function(e){},t.handleStreamFailed=function(e){console.warn("STREAM_STATUS.FAILED",e),t.stream||(u.I.dispatch("VideoPlayerEvent:fail"),"moderator"!==chat.userData.role&&e&&t.captureEvent("fail",e.info||e.getInfo()||null))},t.handleStreamPureBandwidth=function(e){console.warn("STREAM_STATUS.NOT_ENOUGH_BANDWIDTH",e)},t.handleSessionDisconnected=function(){t.isDisconnected=!0,t.onDisconnect()},t.handleSessionFailed=function(){t.handleStreamFailed()},t.videoElement=(0,d.$)()||document.createElement("video"),t.videoElement.id="videoView",t.videoElement.setAttribute("playsinline",""),t.videoElement.setAttribute("webkit-playsinline",""),t.videoElement.setAttribute("wmode","opaque"),(0,c.y)((function(){t.init()})),t}return(0,r.C6)(t,e),Object.defineProperty(t,"available",{get:function(){return"RTCPeerConnection"in window||"webkitRTCPeerConnection"in window},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){var t,n=this;if(!this.isDestroying++){this.close(),e.prototype.destroy.call(this);var r=f.BrowserDetect.isSafari_MacOS();return r&&this.containerElement.classList.add("js-hidden_player"),(r||f.BrowserDetect.isIOS())&&(null===(t=this.videoElement)||void 0===t?void 0:t.parentElement)&&this.videoElement.parentElement.removeChild(this.videoElement),this.videoElement=null,void 0!==this.checkCurrentTimeInterval&&clearInterval(this.checkCurrentTimeInterval),new Promise((function(e){if(n.isDisconnected)e();else{var t=window.setTimeout((function(){n.onDisconnect=null,e()}),2500);n.onDisconnect=function(){clearTimeout(t),e()}}}))}},t.prototype.close=function(){this.isClosing++||(this.session&&this.session.status()===Flashphoner.constants.SESSION_STATUS.ESTABLISHED&&this.session.disconnect(),g("#EmbedSWF, .performer-video").removeClass("playing"),g("#stream-container .spinner").show(),e.prototype.close.call(this))},t.prototype.play=function(){e.prototype.play.call(this)},t.prototype.setVolume=function(t){var n=e.prototype.setVolume.call(this,t);return this.stream&&(this.stream.setVolume(this.convertVolume(n)),this.videoElement&&(this.userClick||t<=0)&&(this.videoElement.muted=t<=0)),n},t.prototype.init=function(){var e=!1;try{Flashphoner.init({preferredMediaProviders:["WebRTC"],bidirectional:!1,remoteVideo:this.videoElement,mediaProvidersReadyCallback:function(e){}}),e=!0}catch(e){console.warn("[FPH] Your browser does not support WebRTC technology",e)}e&&this.prepare()},t.prototype.prepare=function(){this.containerElement=document.querySelector("#video_player_container"),this.videoElement.parentElement||this.containerElement.appendChild(this.videoElement),this.disablePictureInPicture(this.videoElement);var e=null;e=chat.localData.wrtcHost?"wss://".concat(chat.localData.wrtcHost):"wss://".concat((0,o.ip)("@p2p_video_host"));var t=Flashphoner.constants.SESSION_STATUS,n=t.ESTABLISHED,r=t.DISCONNECTED,i=t.FAILED;Flashphoner.createSession({urlServer:e}).on(n,this.handleSessionEstablished).on(r,this.handleSessionDisconnected).on(i,this.handleSessionFailed)},t.prototype.getLastVideoFrame=function(){return this.videoElement&&"about:blank"!==this.videoElement.src?(0,v.s)(this.videoElement):""},t.prototype.convertVolume=function(e){return 100*Math.sin(e*Math.PI/2)},t}(s.A);t.A=_},13446:function(e,t,n){"use strict";n.d(t,{rV:function(){return Z},lD:function(){return Q},tf:function(){return $}});var r=n(15215),i=n(62614),o=n(46445),a=n(99996),s=n(23736),c=n(19826),u=n(21129),l=function(e){function t(){var t=e.call(this)||this;return t.type="blurred",t.canvasElement=null,t.canvasContext=null,t._src=null,t.loadFrame=function(){if(t.resetTimer(),t.playing){var e=t,n=Date.now(),r=new Image;r.crossOrigin="anonymous",r.onload=function(){if(!e.playing)return;var t=Date.now()-n;e.drawFrame(this),e.requestNextFrame(100-t)},r.onerror=function(){if(!e.playing)return;var t=Date.now()-n;e.requestNextFrame(100-t)},r.src=t.src+"?"+n}},t}return(0,r.C6)(t,e),t.prototype.destroy=function(){this.destroyCanvas(),e.prototype.destroy.call(this)},t.prototype.createCanvas=function(){this.destroyCanvas(),this.offscreenCanvas=document.createElement("canvas"),this.offscreenContext=this.offscreenCanvas.getContext("2d"),this.offscreenCanvas.width=128,this.offscreenCanvas.height=128;var e=document.createElement("canvas");e.id="blurredPlayer",e.style.width="100%",e.style.height="100%",e.width=this.offscreenCanvas.width,e.height=this.offscreenCanvas.height,document.getElementById("video_player_container").append(e),this.canvasContext=e.getContext("2d"),this.canvasElement=e},t.prototype.destroyCanvas=function(){this.canvasElement&&(this.canvasContext=null,this.canvasElement.remove(),this.canvasElement=null)},t.prototype.play=function(){if(this.createCanvas(),e.prototype.play.call(this),this._src=(0,a.N)({type:this.type,streamName:(0,s.S)()}),c.A.getState().isMobile){var t=i.w.getContainerHTML(document.getElementById("stream-container"));null==t||t.classList.add("playing")}this.loadFrame()},t.prototype.close=function(){e.prototype.close.call(this),this._src=null,this.clearFrame()},Object.defineProperty(t.prototype,"src",{get:function(){return this._src},enumerable:!1,configurable:!0}),t.prototype.getLastVideoFrame=function(){return this.src},t.prototype.resetTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=0)},t.prototype.requestNextFrame=function(e){this.resetTimer(),this.timer=window.setTimeout(this.loadFrame,Math.max(5,e))},t.prototype.drawFrame=function(e){var t=this.canvasElement;if(!(!t||!this.canvasContext||!e||e.width<1||e.height<1))try{e.width&&e.height&&(this.offscreenContext.drawImage(e,0,0,e.width,e.height,0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),(0,u.xY)(this.offscreenCanvas,0,0,this.offscreenCanvas.width,this.offscreenCanvas.height,5),this.canvasContext.drawImage(this.offscreenCanvas,0,0,this.offscreenCanvas.width,this.offscreenCanvas.height,0,0,t.width,t.height))}catch(e){0}},t.prototype.clearFrame=function(){this.destroyCanvas()},Object.defineProperty(t,"available",{get:function(){return!0},enumerable:!1,configurable:!0}),t}(o.A),d=n(38741),f=n(22706),h=n(7526),p=n(86757),m=n(48132),v=n(98928),g=n(11402),_=n(35172),b=n(59057),y=n(52699),A=n(37921),S=n(42869),E=n(45505),w=n(13907);var C=n(41669),T=function(){return n.e(144).then(n.bind(n,26889))},L=null,M=[],k=!1,N=!1;function I(e,t){var n={onSuccess:e,onFail:t};return N?(L?e(L):t(),null):(M.push(n),k||(k=!0,function(e,t){fetch("".concat((0,w.ip)("@cdn_host"),"/images/chat/video/video.mp4")).then((function(e){return e.arrayBuffer()})).then((function(n){var r=new Uint8Array(n),i=new Blob([r],{type:"video/mp4"}),o=document.createElement("iframe"),a=window.URL.createObjectURL(i);o.className="bottom-iframe",o.width="0",o.height="0",o.src=a;var s=function(t){var n=t.querySelector("source");n.parentNode&&n.parentNode.removeChild(n),e(t)},c=function(){t()};o.addEventListener("error",(function(){window.URL.revokeObjectURL(a),t()})),o.addEventListener("abort",(function(){window.URL.revokeObjectURL(a),t()})),o.addEventListener("load",(function(){var e;window.URL.revokeObjectURL(a);var t=null===(e=o.contentDocument)||void 0===e?void 0:e.querySelector("video");if(t){var n=t.play(),r=setTimeout((function(){(0,b.J)("IFrame hack timeout"),c()}),3e3);n?n.then((function(){clearTimeout(r),s(t)}),(function(){clearTimeout(r),(0,b.J)("IFrame Reject Play Promise"),c()})).catch((function(e){clearTimeout(r),(0,b.J)("IFrame hack Play Promise fail"),c()})):s(t)}else c()})),document.body.appendChild(o)}))}((function(e){N=!0,L=e,M.forEach((function(t){t.onSuccess(e)})),M.length=0}),(function(){N=!0,M.forEach((function(e){e.onFail()})),M.length=0}))),n)}var O=function(e){function t(){var t=e.call(this)||this;if(t.query=null,t.prevVolume=0,t._playTimerInt=0,t._playTimeout=0,t._playDelay=0,t._streamName=null,t.mux=null,t.onAutoplayResponse=function(n){t.videoElement.parentElement&&t.videoElement.guid||((0,b.J)("Init Video Element ".concat(n)),t._initVideoElement());var r=c.A.getState().isPromo;!1===n&&((0,y.r)(!0),C(document).one("click","#videoPlayButton, #videoView, #stream-container",(function(){(0,y.r)(!1),t.userClick=!0,e.prototype.play.call(t),t.videoElement.play(),r&&(v.z.instance.volume=0)})),C("#stream-container").find(".spinner").hide()),"muted"===n&&((0,b.J)("Autoplay response - muted"),t.prevVolume=Math.abs(c.A.getState().soundVolume),t.userClick?(0,b.J)("User click found"):v.z.instance.volume=0,r||C(document).one("click","#pp_ve_container",t.handleVideoClick))},t.handleVideoClick=function(e){return t.restoreVolumeByClick(e)},t.cancelVolumeByClickRestoration=function(){C(document).off("click","#pp_ve_container")},t.handleAirPlayLoader=function(e){T().then((function(t){t.AirPlay2.attach(e)}))},t.handleLoadStart=function(){chat.debug("[debug] loadstart")},t.handleProgress=function(){t.videoElement.loading=!0},t.handleWaiting=function(){chat.debug("[debug] waiting")},t.handlePlay=function(){chat.debug("[debug] play ".concat(t.type));var e=C("#sound-btn");e.hasClass("sound-off")||e.addClass("sound-on"),((0,E.G)()||t.userClick)&&C("#stream-container .spinner").show(),f.BrowserDetect.isIOS()&&t.videoElement.classList.add("ios_fix")},t.handlePlaying=function(){if(chat.debug("[debug] playing"),h.I.dispatch("VideoPlayerEvent:playing"),requestAnimationFrame((function(){t.videoElement.classList.remove("hidden")})),!t.videoElement.paused){t.videoElement.playStarted=!0,t.videoElement.playing=!0,t.videoElement.loading=!1;var e=C("#stream-container").closest(".performer-video");(0,y.r)(!1),e.addClass("playing")}T().then((function(e){e.AirPlay2.isLayoverSrc||(p.A.instance.hideLayover(),p.A.instance.setLayoverWait(!1))}))},t.handleEnded=function(){t.videoElement.playing=!1,chat.debug("[debug] ended")},t.handleEmptied=function(){t.videoElement.playing=!1,chat.debug("[debug] emptied")},t.handleError=function(){t.videoElement.playing=!1,chat.debug("[debug] error")},t.handleAbort=function(){t.videoElement.playing=!1,chat.debug("[debug] abort")},t.handleTimeUpdate=function(){chat.options.debug;var e=(new Date).getTime();t.videoElement.lastTimeupdate=e,t.videoElement.currentTime>0?(t.videoElement.currentTime!==t.videoElement.lastTime&&(t.videoElement.lastCurrentTimeUpdate=e),t.videoElement.lastTime=t.videoElement.currentTime):t.videoElement.lastTime>0&&chat.debug("[debug] END")},t.handleLoadedData=function(){t.videoElement.dataLoaded=!0,chat.debug("[debug] loadeddata")},t.handleLoadedMetaData=function(){t.startOffset&&Number.isFinite(t.videoElement.duration)&&(t.videoElement.currentTime=t.startOffset*t.videoElement.duration),chat.debug("[debug] onloadedmetadata")},t.playRequestWithTimeout=function(){setTimeout((function(){t.videoElement.play()}))},t.videoElement=(0,A.$)()||document.createElement("video"),t.videoElement.guid)return t._initVideoElement(t.videoElement.autoplay),t;var n=c.A.getState(),r=n.isMobile,i=n.isPromo;return!r&&f.BrowserDetect.isChrome_MinVersion(66)?((0,b.M)(),(0,b.J)("trying IFrame hack"),t.query=I((function(e){(0,b.J)("IFrame hack ok"),t.videoElement=e,t._initVideoElement(!0)}),(function(){(0,b.J)("IFrame hack fail"),(0,E.t)(t.onAutoplayResponse,!0)}))):(0,E.t)(t.onAutoplayResponse),C(document).one("click","#videoView",(function(){if(!i&&t.videoElement.muted&&0===t.videoElement.volume&&void 0!==t.getVolume()){var e=Math.abs(c.A.getState().soundVolume)||t.getVolume()||m.z$;t.applyVolume(e),v.z.instance.volume=e}})),C(document).on("chat:visibility",(function(){"visible"===window.chat.visibility&&t.handleAirPlayLoader(t.videoElement)})),t}return(0,r.C6)(t,e),t.prototype.restoreVolumeByClick=function(e){if("collapse"===(null===chat||void 0===chat?void 0:chat.visibility)||C(e.target).is(".sound-volume, .player-icon"))(0,b.J)("User click - skip volume restore");else{(0,b.J)("User click current volume ".concat(this.getVolume()));var t=this.prevVolume||m.z$;this.applyVolume(t),v.z.instance.volume=t,(0,b.J)("User click - try to restore volume ".concat(t))}},t.prototype.getHTMLVideoElement=function(){return this.videoElement},t.prototype.getLastVideoFrame=function(){return this.videoElement.dataLoaded&&"about:blank"!==this.videoElement.src?(0,S.s)(this.videoElement):""},t.prototype._initVideoElement=function(e){var t=this,n=this.videoElement;if(n.guid||(n.guid=(0,g.fE)()),n.controls=!1,n.preload="none",n.autoplay=null!=e?e:!1!==(0,E.G)(),C("body").hasClass("opr-browser")&&(n.autoplay=!1),n.id="videoView",n.lastTime=0,n.errorCount=0,n.crossOrigin="anonymous",n.setAttribute("playsinline",""),n.setAttribute("webkit-playsinline",""),n.setAttribute("wmode","opaque"),n.setAttribute("disablePictureInPicture","true"),n.style.setProperty("--pan","0px"),n.addEventListener("loadstart",this.handleLoadStart),n.addEventListener("progress",this.handleProgress),n.addEventListener("waiting",this.handleWaiting),n.addEventListener("play",this.handlePlay),n.addEventListener("playing",this.handlePlaying),n.addEventListener("ended",this.handleEnded),n.addEventListener("emptied",this.handleEmptied),n.addEventListener("error",this.handleError),n.addEventListener("abort",this.handleAbort),n.addEventListener("timeupdate",this.handleTimeUpdate),n.addEventListener("loadeddata",this.handleLoadedData),n.addEventListener("loadedmetadata",this.handleLoadedMetaData),n.addEventListener("leavepictureinpicture",this.playRequestWithTimeout),!n.parentElement||"video_player_container"!==n.parentElement.id){var r=C("#video_player_container"),i=!1;r.find("video").each((function(e,t){n!==t&&n.guid!==t.guid||(i=!0)})),i||r.append(n)}this.disablePictureInPicture(n),this.enableGPUResize(n,document.querySelector("#stream-container")),h.I.dispatch("VideoPlayerEvent:init",this),this.mux&&this.mux.monitor("#videoView",{debug:!1,data:{env_key:"c3u7mj40dd836p4ktuug2ch71",player_name:"HTMLVideoPlayer",player_init_time:Date.now()}}),document.querySelector("body").classList.contains("chat_visible")&&setTimeout((function(){t.handleAirPlayLoader(n)}),1e3)},t.prototype.seek=function(e){if(this.videoElement&&this.videoElement.dataLoaded){var t=e*(Number.isFinite(this.videoElement.duration)?this.videoElement.duration:0);t!==this.videoElement.currentTime&&(this.videoElement.currentTime=t)}},t.prototype.play=function(){var t=this,n=this.videoElement;n.lastTimeupdate=0,n.lastCurrentTimeUpdate=0,chat.debug("[debug] Play Method");var r=n.play();void 0!==r&&r.catch((function(e){t.userClick||n.muted||!n.paused||((0,b.J)("HTMLVideoPlayer try to play with muted flag [state ".concat(n.readyState,"]")),v.z.instance.volume=0,n.play()),chat.debug("PLAY E: ".concat(e.message))})),this.startPlayTimer(),!1!==(0,E.G)()||this.userClick?e.prototype.play.call(this):((0,y.r)(!0),C("#stream-container").find(".spinner").hide())},t.prototype.playRequest=function(){chat.debug("[debug] Play Request Method"),this.videoElement.lastTimeupdate=0,this.videoElement.lastCurrentTimeUpdate=0,this.videoElement.play(),("muted"!==(0,E.G)()||this.userClick)&&(this.videoElement.volume=this.getVolume()),this.userClick=!0,(0,y.r)(!1),C("#stream-container").find(".spinner").show()},t.prototype.setVolume=function(t){return e.prototype.setVolume.call(this,t),t>0&&"muted"===(0,E.G)()&&!this.userClick?this.getVolume():this.applyVolume(t)},t.prototype.applyVolume=function(e){var t=Math.max(0,e);return this.videoElement.muted=0===t,this.videoElement.volume=t,t},t.prototype.restart=function(){var t=(0,_.K)(this.videoElement.src,"ts",Math.random().toString(36).slice(2));(0,b.J)("HTMLVideoPlayer restart stream"),(0,b.J)("".concat(t)),this.videoElement.pause(),this.videoElement.currentTime=0,this.videoElement.src="",this.videoElement.load(),this.videoElement.src=t,this.videoElement.load(),this.videoElement.play(),e.prototype.restart.call(this)},t.prototype.startPlayTimer=function(){var e=this;window.clearInterval(this._playTimerInt),this._playTimerInt=window.setInterval((function(){if(chat.options.debug){var t="[debug] =========================\n type: ".concat(e.type,"\n currentTime: ").concat(e.videoElement.currentTime,"\n lastTimeupdate: ").concat(e.videoElement.lastTimeupdate,"\n playing: ").concat(e.playing,"\n V_Playing: ").concat(e.videoElement.playing,"\n V_Paused: ").concat(e.videoElement.paused,"\n V_DataLoaded: ").concat(e.videoElement.dataLoaded,"\n V_NetworkState: ").concat(e.videoElement.networkState,"\n playDelay: ").concat(e._playDelay,"\n autoPlay: ").concat((0,E.G)(),"\n userClick: ").concat(e.userClick);chat.debug(t)}if(!1===(0,E.G)()&&!e.userClick&&!e.videoElement.playStarted&&e.videoElement.paused)return(0,y.r)(!0),void C("#stream-container .spinner").hide();e.videoElement.lastTimeupdate&&e.videoElement.playing||!e.playing||(chat.debug("[debug] re-play: ".concat(e.src)),e.restart(),e._streamName=null,e.play())}),6e3)},t.prototype.close=function(){chat.debug("[debug] Close Method"),this.videoElement.pause(),this.videoElement.errorCount=0,this.videoElement.lastTimeupdate=0,this.videoElement.lastCurrentTimeUpdate=0,this.videoElement.playStarted=!1,window.clearInterval(this._playTimerInt),window.clearTimeout(this._playTimeout),C("#EmbedSWF, .performer-video").removeClass("playing"),C("#stream-container .spinner").show(),e.prototype.close.call(this)},t.prototype.destroy=function(){if(chat.debug("[debug] Destroy Method"),this.query){var t=M.indexOf(this.query);t>=0&&M.splice(t,1)}var n=this.videoElement;n&&(n.pause(),n.removeAttribute("src"),n.classList.add("hidden"),n.removeEventListener("loadstart",this.handleLoadStart),n.removeEventListener("progress",this.handleProgress),n.removeEventListener("waiting",this.handleWaiting),n.removeEventListener("play",this.handlePlay),n.removeEventListener("playing",this.handlePlaying),n.removeEventListener("ended",this.handleEnded),n.removeEventListener("emptied",this.handleEmptied),n.removeEventListener("error",this.handleError),n.removeEventListener("abort",this.handleAbort),n.removeEventListener("timeupdate",this.handleTimeUpdate),n.removeEventListener("loadeddata",this.handleLoadedData),n.removeEventListener("loadedmetadata",this.handleLoadedMetaData),n.removeEventListener("leavepictureinpicture",this.playRequestWithTimeout)),e.prototype.destroy.call(this)},Object.defineProperty(t.prototype,"isPlayNeedsDelay",{get:function(){return(0,s.S)()===this._streamName||chat.isPaidShow()||Boolean(this._streamName)&&-1===this._streamName.indexOf("stream_")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"src",{get:function(){return this.videoElement.src},enumerable:!1,configurable:!0}),Object.defineProperty(t,"available",{get:function(){var e=document.createElement("video");if(e.canPlayType){var t=e.canPlayType("application/x-mpegURL"),n=e.canPlayType("vnd.apple.mpegURL");if("probably"===t||"maybe"===t||"probably"===n||"maybe"===n){var r=C("body");return!C.mobile||r.hasClass("ipad")||r.hasClass("iphone")&&"playsInline"in e||r.hasClass("android")||r.hasClass("blackberry")&&!r.hasClass("opera-browser")}}return!1},enumerable:!1,configurable:!0}),t}(o.A),P={autoplay:!1,adaptive_bitrate:!0,latency_tolerance:3e3,width:640,height:480,pause_timeout:600,reconnects:0,offset:1600,buffering:1e3,controls:!1,muteable:!0},R=function(e){function t(){var t=e.call(this)||this;return t.player=null,t.type="sldp",t.replayTimeout=0,t.replayCount=0,t.replayMax=20,t.replay=function(e){void 0===e&&(e=500),t.playing&&++t.replayCount>>"),e.prototype.play.call(t)}),t._playDelay)},t}return(0,r.C6)(t,e),Object.defineProperty(t,"available",{get:function(){var e=!1;return!f.BrowserDetect.isSafari_MacOS()&&!f.BrowserDetect.isIpad()||"ManagedMediaSource"in window||(e=!0),f.BrowserDetect.isYandex_Android()&&(e=!0),!e&&t.isSupported()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"src",{get:function(){return"wss:".concat((0,a.N)({type:this.type,streamName:(0,s.S)()}))},enumerable:!1,configurable:!0}),t.isSupported=function(){return"MediaSource"in window&&Boolean(window.MediaSource)||"ManagedMediaSource"in window},t.setStatus=function(e){window.SLDP_status=e},t.getStatus=function(){return window.SLDP_status||"none"},t.prototype.initPlayer=function(e){var r=t.getStatus();"ready"!==r?(window.SLDP_queries||(window.SLDP_queries={}),window.SLDP_queries[this.GUID]=e,"loading"!==r&&(t.setStatus("loading"),Promise.all([n.e(38),n.e(165)]).then(n.bind(n,85047)).then((function(){for(var e in t.setStatus("ready"),window.SLDP_queries)window.SLDP_queries.hasOwnProperty(e)&&window.SLDP_queries[e]&&(window.SLDP_queries[e](),delete window.SLDP_queries[e])})))):e()},t.prototype.play=function(){window.clearTimeout(this._playTimeout),window.clearTimeout(this.replayTimeout),this._playDelay=this.isPlayNeedsDelay?3e3:100,this.renditions=[],this.currentRendition="auto",this.initPlayer(this.onSLDPReady)},t.prototype.close=function(){this.player&&this.player.stop(),"object"==typeof window.SLDP_queries&&delete window.SLDP_queries[this.GUID],window.clearTimeout(this._playTimeout),window.clearTimeout(this.replayTimeout),this.replayCount=0,e.prototype.close.call(this)},t.prototype.restart=function(){},t.prototype.destroy=function(){if(this.close(),this.player){var t=this.player.destroy.bind(this.player);setTimeout(t),chat.debug("[SLDPPlayer] destroy")}this.player=null,e.prototype.destroy.call(this)},t.prototype.setVolume=function(t){var n=e.prototype.setVolume.call(this,t);return this.player&&(this.player.setVolume(100*n),chat.debug("[SLDPPlayer] setVolume",n)),n},t.prototype.setStartOffset=function(e){this.startOffset=0},t.prototype.setRendition=function(e){this.player&&(this.player.changeRendition("auto"===e?"Auto":e)||console.log("[PLAYER] can't change rendition to ".concat(e)))},t.initialized=!1,t}(O),D=n(12957),j=n(9613),x=n(71998),U=n(41669),F=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="hls",t.isMuteChecked=!1,t.getPlayLog=function(e){0},t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"src",{get:function(){if(!(f.BrowserDetect.isOperaMini()||chat.videoServerUrl&&chat.performerData&&chat.performerData.username))return"about:blank";if(this.streamUrl)return"".concat(this.streamUrl).concat(this.getAuthTokenQuery());var e=c.A.getState().customPlaylist;return"auto"!==e?this.defaultSrc("hlsRoot")+e:this.defaultSrc()},enumerable:!1,configurable:!0}),t.prototype.defaultSrc=function(e){return void 0===e&&(e=this.type),"https:"+(0,a.N)({type:e,streamName:(0,s.S)()})},t.prototype.play=function(){var t=this,n=this.videoElement;if(!f.BrowserDetect.isIOS()&&f.BrowserDetect.isSafari_MacOS()&&(n.style.display="none"),window.chat&&"hidden"===window.chat.visibility&&n.hasAttribute("src"))return n.load(),n.removeAttribute("src"),void e.prototype.close.call(this);n.src=this.src,f.BrowserDetect.isIOS()&&n.classList.add("ios_fix"),n.load();var r=n.play();r&&r.then((function(){f.BrowserDetect.isSafari_MacOS()&&(n.parentElement.classList.remove("js-hidden_player"),f.BrowserDetect.isIOS()||(n.style.display="block")),f.BrowserDetect.isSafari_IOS()&&(0,x.FR)()&&chat.setVideoSize()}),(function(e){if((0,b.J)("[".concat(t.GUID,"/HLS] Play rejected! (").concat(e,")")),t.isMuteChecked||!f.BrowserDetect.isSafari()&&t.userClick)return(0,b.J)("[".concat(t.GUID,"/HLS] Skip mute detection.")),void t.getPlayLog("HLS - reject / Skip");["NotSupportedError","AbortError"].some((function(t){return String(e).includes(t)}))?(0,b.J)("[".concat(t.GUID,"/HLS] Non sound error, don't mute.")):(t.isMuteChecked=!0,n.pause(),v.z.instance.volume=0,t.getPlayLog("VideoPlayerVolumeController - set 0"));var r=n.play();null==r||r.then((function(){(0,b.J)("[".concat(t.GUID,"/HLS] Started after retry (muted: ").concat(n.muted,").")),!f.BrowserDetect.isIOS()&&f.BrowserDetect.isSafari_MacOS()&&(n.style.display="block"),t.getPlayLog("HLS - muted - started")}),(function(e){(0,b.J)("[".concat(t.GUID,"/HLS] Rejected after retry (").concat(e,").")),t.getPlayLog("HLS - muted - rejected")})).catch((function(e){(0,b.J)("[".concat(t.GUID,"/HLS] Failed to start (").concat(e,").")),t.getPlayLog("HLS - failed")}))})).catch((function(e){U("#EmbedSWF, .performer-video").removeClass("playing"),!t.userClick&&!n.muted&&n.paused&&n.readyState>=3&&((0,b.J)("[".concat(t.GUID,"/HLS] Try to play with muted flag (state: ").concat(n.readyState,")")),n.pause(),v.z.instance.volume=0,n.play()),chat.debug("HLS Player Error:",e),t.getPlayLog("HLS - catch")})),e.prototype.play.call(this)},t.prototype.setRendition=function(e){this.videoElement.pause();var t="auto"===e?"auto":c.A.getState().streamCollection.filter((function(t){return t.resolution===e.replace("p","")}))[0].item;c.A.setState({customPlaylist:t,currentRendition:e}),this.play()},t}(O),B=F,H=n(41669),G=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.player=null,t.type="hlsjs",t.isClosing=!1,t.playAttempts=0,t.maxPlayAttempts=10,t.isMobile=c.A.getState().isMobile,t.logStreamClose=function(e){0},t.logStreamReplayAttempts=function(){0},t}return(0,r.C6)(t,e),t.getMediaSource=function(){return window.MediaSource||window.WebKitMediaSource},t.isSupported=function(){var e=t.getMediaSource();if(!e)return!1;var n=window.SourceBuffer||window.WebKitSourceBuffer,r=e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),i=!n||n.prototype&&"function"==typeof n.prototype.appendBuffer&&"function"==typeof n.prototype.remove;return r&&i},t.prototype.initPlayer=function(e){var t=this;Promise.all([n.e(38),n.e(176)]).then(n.t.bind(n,6693,23)).then((function(){t.isClosing||e()}))},t.prototype.play=function(){var t=this;!this.videoElement.paused&&this.videoElement.playing&&this.src===this.lastSrc||(this.lastSrc=this.src,this.player&&this.player.destroy(),this.isClosing=!1,this.renditions=[],this.currentRendition="auto",window.clearTimeout(this._playTimeout),this._playDelay=this.isPlayNeedsDelay?5e3:0,this._playTimeout=window.setTimeout((function(){t.initPlayer((function(){t.player=new Hls({debug:!1,liveSyncDuration:f.BrowserDetect.isEdge_Origin()||f.BrowserDetect.isIE11()?5:4,liveSyncDurationCount:void 0,liveDurationInfinity:1/0,liveMaxLatencyDuration:9,liveMaxLatencyDurationCount:void 0,liveBackBufferLength:30}),t.player.on(Hls.Events.MANIFEST_LOADED,(function(e,n){var r=n.levels;if(r){t.renditions=r.filter((function(e){return e&&e.height})).map((function(e){return"".concat(e.height,"p")}));var i=c.A.getState().selectedRendition,o=parseFloat(i),a=r.findIndex((function(e){return e.height===o}));"auto"!==i&&(-1!==a?(t.player.currentLevel=a,t.currentRendition=c.A.getState().selectedRendition):H(document).triggerHandler("setStateQualityAuto")),t.playAttempts=0,c.A.setState({renditions:t.renditions,currentRendition:t.currentRendition})}})),t.player.on(Hls.Events.LEVEL_SWITCHED,(function(e,n){var r=n.level;c.A.setState({currentRendition:"".concat(t.player.levels[r].height,"p")})})),t.player.on(Hls.Events.ERROR,(function(n,r){var i,o=r&&"manifestLoadError"===r.details,a=r&&404===(null===(i=r.response)||void 0===i?void 0:i.code),s=o&&a,u=c.A.getState().chatHost.showType;if(s&&(["group","private","fullprivate"].includes(u)||function(e){return"away"===e}(u)))return e.prototype.close.call(t),p.A.instance.showLayover(u),t.logStreamClose(u),!1;s&&(t.playAttempts=3&&((0,b.J)("HLSJSPlayer try to play with muted flag [state ".concat(n.readyState,"]")),n.pause(),v.z.instance.volume=0,n.play()),t.getPlayLog("HLSJS - catch")}))}))}),this._playDelay))},t.prototype.close=function(t){this._playTimeout&&t&&(this.isClosing=!0),e.prototype.close.call(this),this.player&&this.player.destroy(),this.mux&&!this.isClosing&&this.mux.removeHLSJS("#videoView")},t.prototype.destroy=function(){this.close(),this.player=null,e.prototype.destroy.call(this)},t.prototype.restart=function(){},t.prototype.setRendition=function(e){if(this.player)if("auto"!==e){var t=parseInt(e),n=this.player.levels;if(n)for(var r=n.length;--r>=0;)if(n[r].height===t)return void(this.player.nextLevel=r)}else this.player.nextLevel=-1},Object.defineProperty(t,"available",{get:function(){var e=!1;return(f.BrowserDetect.isSafari_MacOS()||f.BrowserDetect.isIOS())&&(e=!0),f.BrowserDetect.isChrome_Android()&&!f.BrowserDetect.isChrome_MinVersion(56)&&(e=!0),f.BrowserDetect.isOldWindows()&&(e=!0),!e&&t.isSupported()},enumerable:!1,configurable:!0}),t}(B),V=G,W=n(22545),q=function(e){function t(){var t=e.call(this)||this;return t.type="image",t.canvasElement=null,t.canvasContext=null,t._src=null,t.loadFrame=function(){if(t.resetTimer(),t.playing){var e=t,n=Date.now(),r=new Image;r.onload=function(){if(!e.playing)return;var t=Date.now()-n;e.drawFrame(this),e.requestNextFrame(100-t)},r.onerror=function(){if(!e.playing)return;var t=Date.now()-n;e.requestNextFrame(100-t)},r.src=t.src+"?"+n}},t}return(0,r.C6)(t,e),t.prototype.destroy=function(){this.destroyCanvas(),e.prototype.destroy.call(this)},t.prototype.createCanvas=function(){this.destroyCanvas();var e=c.A.getState().isMobile,t=(0,W.P)(),n=document.createElement("canvas");n.id="imagePlayer",n.style.width="100%",n.style.height="100%",n.style.objectFit=t&&!e?"contain":"cover",n.style.borderRadius="1px",document.getElementById("video_player_container").append(n),this.canvasContext=n.getContext("2d"),this.canvasElement=n},t.prototype.destroyCanvas=function(){this.canvasElement&&(this.canvasContext=null,this.canvasElement.remove(),this.canvasElement=null)},t.prototype.play=function(){if(this.createCanvas(),e.prototype.play.call(this),this._src=(0,a.N)({type:this.type,streamName:(0,s.S)()}),c.A.getState().isMobile){var t=i.w.getContainerHTML(document.getElementById("stream-container"));null==t||t.classList.add("playing")}p.A.instance.hideLayover(),p.A.instance.setLayoverWait(!1),this.loadFrame()},t.prototype.close=function(){e.prototype.close.call(this),this._src=null,this.clearFrame()},Object.defineProperty(t.prototype,"src",{get:function(){return this._src},enumerable:!1,configurable:!0}),t.prototype.getLastVideoFrame=function(){return this.src},t.prototype.resetTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=0)},t.prototype.requestNextFrame=function(e){this.resetTimer(),this.timer=window.setTimeout(this.loadFrame,Math.max(5,e))},t.prototype.drawFrame=function(e){var t=this.canvasElement;if(!(!t||!this.canvasContext||!e||e.width<1||e.height<1)){var n=e.width||t.offsetWidth,r=e.height||t.offsetHeight;try{n&&r&&(t.width!==n||t.height!==r)&&(t.width=n,t.height=r),this.canvasContext.drawImage(e,0,0,e.width,e.height,0,0,n,r)}catch(e){}}},t.prototype.clearFrame=function(){this.destroyCanvas()},Object.defineProperty(t,"available",{get:function(){return!0},enumerable:!1,configurable:!0}),t}(o.A),Y=n(1086),z={sldp:[R],hls:[V,B],hls_only:[B],blurred:[l],image:[q],webrtc:[d.A]},X=function(){(0,Y.kz)("Force Player Type",Object.fromEntries(Object.keys(z).concat(["auto"]).map((function(e){return[e.toUpperCase().replace(/_/g," "),function(){var t=new URL(location.href);return"auto"===e?t.searchParams.delete("force_player"):t.searchParams.set("force_player",e),location.replace(t.href),"Reloading with '".concat(e.toUpperCase().replace(/_/g," "),"' format...")}]}))));var e=window.location.search.match("[?&]force_player=([^&]+)");return e&&e[1]||(0,j.Ri)("force_player")||!1}(),K=null,J=function(){K||(K={},(0,D.loopv)(z,(function(e,t){K[t]=function(e){for(var t=0,n=e;t'),[3,5]):[3,2];case 2:return[4,fetch(a,{credentials:"include",headers:(0,r.Cl)({"X-fancyBox":"true","X-Requested-With":"XMLHttpRequest"},null===(M=null==t?void 0:t.ajax)||void 0===M?void 0:M.headers),mode:/^(http|\/\/)/g.test(a)&&!a.includes(location.origin)?"no-cors":"cors"})];case 3:return[4,N.sent().text()];case 4:s=N.sent(),N.label=5;case 5:return[3,7];case 6:return N.sent(),[3,7];case 7:return v[e]?(v[e]=!1,s||(null===(k=null==t?void 0:t.customData)||void 0===k?void 0:k.isIframe)?(g=(0,i.h)(h.E,{html:s,tagName:"div"}),(null==t?void 0:t.customData)&&(b=null==t?void 0:t.customData,A=b.height,S=b.maxWidth,E=b.width,w=b.isIframe,g=w?(0,i.h)("iframe",{src:a,style:{width:E,height:A,maxWidth:S,border:"none"}}):(0,i.h)("div",{style:{width:E,height:A,maxWidth:S,overflow:"auto"}},(0,i.h)(h.E,{html:s,tagName:"div"}))),C({loading:!1,options:t,render:function(){var e,n;return(null===(n=null===(e=null==t?void 0:t.ajax)||void 0===e?void 0:e.data)||void 0===n?void 0:n.pop)&&setTimeout((function(){var e,n;document.dispatchEvent(new CustomEvent(p.R.UPDATE_JOIN_POPUPS,{detail:null===(n=null===(e=null==t?void 0:t.ajax)||void 0===e?void 0:e.data)||void 0===n?void 0:n.pop}))}),10),g},subId:n,type:o.P.UPDATE}),[2]):[2,C({loading:!1,options:d,render:function(){return(0,i.h)(f,null)},subId:n,type:o.P.UPDATE})]):[2]}}))}))}function C(e){document.dispatchEvent(new CustomEvent(o.Y,{detail:e}))}},60108:function(e,t,n){"use strict";n.d(t,{Y:function(){return a},t:function(){return o}});var r=n(15215),i=n(41669),o=function(e,t){var n,o=i("html").attr("data-third_level"),a=e.lang,s=e.languageSwitcherPopupComponent;if(!s)return e;var c=s.languages;if(!c)return e;var u=t||{},l=u.name,d=u.slugs,f=d?null===(n=d[a])||void 0===n?void 0:n.toLocaleLowerCase():null,h=l&&d&&f&&o,p=null==c?void 0:c.map((function(e){var t,n,i,o,a="object"==typeof(null===(t=e.link)||void 0===t?void 0:t.url)?null===(i=null===(n=e.link)||void 0===n?void 0:n.url)||void 0===i?void 0:i.query:null;return(0,r.Cl)((0,r.Cl)({},e),{link:(0,r.Cl)((0,r.Cl)({},e.link),{url:(0,r.Cl)((0,r.Cl)({},"object"==typeof e.link.url&&e.link.url),{query:(0,r.Cl)((0,r.Cl)({},a),{csl:h?l:null,cslt:h?encodeURIComponent(f):null})})}),newSlug:d?null===(o=d[e.flag])||void 0===o?void 0:o.toLocaleLowerCase():null,oldSlug:f})}));return{languageSwitcherPopupComponent:(0,r.Cl)((0,r.Cl)({},e.languageSwitcherPopupComponent),{languages:p})}},a=function(){return{languageSwitcherPopupComponent:null}}},59614:function(e,t,n){"use strict";n.d(t,{Cp:function(){return f},FA:function(){return d},O6:function(){return o},R_:function(){return u},h5:function(){return a},he:function(){return s},vF:function(){return c},xH:function(){return l}});var r=n(15215),i=n(18697),o=function(e,t){return(0,r.Cl)((0,r.Cl)({},e),{listing:(0,r.Cl)((0,r.Cl)({},e.listing),t)})},a=function(e,t){return(0,i._b)("Store Action Listing Common updateListingRights").log(t),{listingRights:(0,r.Cl)((0,r.Cl)({},e.listingRights),t)}},s=function(e,t){return(0,i._b)("Store Action Listing Common setIsNotFoundPage").log(t),{listingIsNotFoundPage:t}},c=function(e,t){return(0,i._b)("Store Action Listing Common setIsUnsubscribePage").log(t),{listingIsUnsubscribePage:t}},u=function(e,t){return(0,i._b)("Store Action Listing Common setIsAllModelsPage").log(t),{listingIsAllModelsPage:t}},l=function(e,t){return(0,i._b)("Store Action Listing Common setIsLoading").log(t),{listingIsLoading:t}},d=function(e,t){return(0,i._b)("Store Action Listing Common setAvailableTags").log({payload:t}),{listingAvailableTags:t}},f=function(e,t){return(0,i._b)("Store Action Listing Common setTagsIds").log({payload:t}),{listingHeaderTagsIds:t}}},3484:function(e,t,n){"use strict";n.d(t,{Rk:function(){return i},TM:function(){return a},Xx:function(){return c},e_:function(){return o},m4:function(){return s},zW:function(){return u}});var r=n(18697),i=function(e,t){return(0,r._b)("Store Action Listing Filter setTag").log(t),{listingActiveTag:t}},o=function(e,t){return(0,r._b)("Store Action Listing Filter setBlock").log(t),{listingActiveBlock:t}},a=function(e,t){return(0,r._b)("Store Action Listing Filter setCategory").log(t),{listingActiveCategory:t}},s=function(e,t){return(0,r._b)("Store Action Listing Filter setCategorySlug").log(t),{listingActiveCategorySlug:t}},c=function(e,t){return(0,r._b)("Store Action Listing Filter setCategoriesRowConfig").log({payload:t}),{listingCategoriesRowConfig:t}},u=function(e,t){return(0,r._b)("Store Action Listing Filter setCategoriesRowList").log({payload:t}),{listingCategoriesRowList:t}}},21957:function(e,t,n){"use strict";n.d(t,{K0:function(){return a},Mx:function(){return c},S_:function(){return s},id:function(){return o},wA:function(){return u}});var r=n(15215),i=n(18697),o=function(e,t){return(0,i._b)("Store Action Listing LiveTab setLiveTab").log(t),{liveTab:t}},a=function(e,t){return(0,i._b)("Store Action Listing LiveTab setPinnedLiveTab").log(t),{pinnedLiveTab:t}},s=function(e,t){return(0,i._b)("Store Action Listing LiveTab setInitialLiveTab").log(t),{listingInitialLiveTab:t}},c=function(e,t){return(0,i._b)("Store Action Listing LiveTab updateLiveTabCounters").log({payload:t}),t?{listingLiveTabCounters:(0,r.Cl)((0,r.Cl)({},e.listingLiveTabCounters||{}),t)}:e},u=function(e,t){return(0,i._b)("Store Action Listing LiveTab setAvailableLiveTabs").log({payload:t}),{listingAvailableLiveTabs:t}}},65683:function(e,t,n){"use strict";n.d(t,{Gq:function(){return _},Ni:function(){return m},Uo:function(){return f},_h:function(){return h},hp:function(){return v},n9:function(){return p},w$:function(){return g}});var r=n(15215),i=n(18697),o=n(85747),a=n(25738),s=n(18128),c=n(52982),u=n(15839),l=n(99215),d=n(74214),f=function(e,t){var n=a.qb.indexOf(t)>-1?t:a.kU;return(0,i._b)("Store Action Listing Loader setSortingType").log({payload:t,sorting:n}),{listingLoader:(0,r.Cl)((0,r.Cl)({},e.listingLoader),{sorting:n})}},h=function(e,t){return(0,i._b)("Store Action Listing Loader setType").log(t),{listingLoader:(0,r.Cl)((0,r.Cl)({},e.listingLoader),{type:t})}},p=function(e,t){var n=t;if((0,c.v1)(e)===d.J.PAGER){var a=(0,l.Vx)(e);if(a)if((0,u.Sh)(e))n=o.Om;else{var f=(0,s.t)(t||o.Om),h=Math.ceil(f/a);Number.isFinite(h)&&(n=a*h)}}return(0,i._b)("Store Action Listing Loader setLimit").log({payload:t,limit:n}),{listingLoader:(0,r.Cl)((0,r.Cl)({},e.listingLoader),{limit:n})}},m=function(e,t){return(0,i._b)("Store Action Listing Loader setOffset").log(t),{listingLoader:(0,r.Cl)((0,r.Cl)({},e.listingLoader),{offset:t})}},v=function(e,t){return(0,i._b)("Store Action Listing Loader setTotalCount").log(t),{listingLoader:(0,r.Cl)((0,r.Cl)({},e.listingLoader),{totalCount:t})}},g=function(e,t){return(0,i._b)("Store Action Listing Loader setOnlineCount").log(t),{listingLoader:(0,r.Cl)((0,r.Cl)({},e.listingLoader),{onlineCount:t})}},_=function(e,t){return(0,i._b)("Store Action Listing Loader setIsPinSorting").log(t),{listingLoader:(0,r.Cl)((0,r.Cl)({},e.listingLoader),{isPinSorting:t})}}},52556:function(e,t,n){"use strict";n.d(t,{B5:function(){return c},VJ:function(){return a},Xv:function(){return s},ph:function(){return o}});var r=n(18697),i=n(13005),o=function(e,t){return(0,r._b)("Store Action Listing ModelsData setModels").log({payload:t}),{listingModels:(null==t?void 0:t.length)?t:null}},a=function(e,t){return(0,r._b)("Store Action Listing ModelsData setBlocks").log({payload:t}),{listingBlocks:(0,i.c)(t,["pinned_models"])}},s=function(e,t){return(0,r._b)("Store Action Listing ModelsData setInitialBlocks").log({payload:t}),{listingInitialBlocks:t}},c=function(e,t){return(0,r._b)("Store Action Listing ModelsData setBlocksPinnedModels").log({payload:t}),{listingBlocksPinnedModels:t}}},5037:function(e,t,n){"use strict";n.d(t,{Eb:function(){return a},Gn:function(){return i},Lg:function(){return o},qU:function(){return s}});var r=n(18697),i=function(e,t){return(0,r._b)("Store Action Listing Thumb setSize").log(t),{listingThumbSize:t}},o=function(e,t){return(0,r._b)("Store Action Listing Thumb setType").log(t),{listingThumbType:t}},a=function(e,t){return(0,r._b)("Store Action Listing Thumb setSelectedThumb").log(t),{listingSelectedThumb:t}},s=function(e,t){return(0,r._b)("Store Action Listing Thumb setThumbsPerRowCount").log(t),{listingThumbsPerRowCount:t}}},45842:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(15215),i=function(e,t){return{pollData:(0,r.Cl)((0,r.Cl)({},e.pollData),t)}}},37851:function(e,t,n){"use strict";n.d(t,{J:function(){return i},g:function(){return o}});var r=n(15215);function i(e,t){return{chatBeforeOfflineNotificationOptions:(0,r.Cl)((0,r.Cl)({},e.chatBeforeOfflineNotificationOptions),t)}}function o(e){return{chatBeforeOfflineNotificationOptions:(0,r.Cl)((0,r.Cl)({},e.chatBeforeOfflineNotificationOptions),{modelOfflineNotificationTtl:0,modelNextTimeOnline:0})}}},64347:function(e,t,n){"use strict";n.d(t,{U:function(){return i}});var r=n(15215);function i(e,t){return{chatHeaderOptions:(0,r.Cl)({},t)}}},88739:function(e,t,n){"use strict";n.d(t,{A:function(){return i},x:function(){return o}});var r=n(15215);function i(e,t){return{chatShowStatusOptions:(0,r.Cl)({},t)}}function o(e,t){return{chatShowStatusOptions:(0,r.Cl)((0,r.Cl)({},e.chatShowStatusOptions),t)}}},41251:function(e,t,n){"use strict";n.d(t,{D:function(){return o},U:function(){return a}});var r=n(15215),i=n(17266);function o(e,t){return{streamOptions:(0,r.Cl)({},t)}}function a(e,t){return(0,i.S)(t.aspectRatio),{streamOptions:(0,r.Cl)((0,r.Cl)({},e.streamOptions),t)}}},1627:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});var r=n(15215),i=n(19826),o=(i.A.action((function(e,t){return{stylePanelOptions:(0,r.Cl)({},t)}})),i.A.action((function(e,t){return{stylePanelOptions:(0,r.Cl)((0,r.Cl)({},e.stylePanelOptions),t)}})))},63361:function(e,t,n){"use strict";n.d(t,{L:function(){return r},Z:function(){return i}});var r=function(e,t){return{chatInputDisabled:t}},i=function(e,t){return{isControlsShow:t}}},22336:function(e,t,n){"use strict";n.d(t,{$W:function(){return s},_7:function(){return a},oy:function(){return u},uz:function(){return c}});var r=n(15215),i=n(19826),o=n(18697);function a(e,t){return(0,o._b)("Store Action ChatNavigation update").log({data:t,prev:e.chatNavigation}),{chatNavigation:(0,r.Cl)((0,r.Cl)({},e.chatNavigation),t)}}function s(e,t){return{chatHost:(0,r.Cl)((0,r.Cl)({},e.chatHost),t)}}function c(){i.A.action(l)()}var u=function(e,t){var n=e.chatNavigation,i=n||{},o=i.current,a=i.total_count;if(o){var s=t;if(t){var c=Math.max(0,a-1);s=n.current.position,(s+=t)<0?s=c+s+1:s>c&&(s=s-c-1),s=Math.max(0,Math.min(s,c))}return{chatNavigation:(0,r.Cl)((0,r.Cl)({},n),{current:(0,r.Cl)((0,r.Cl)({},n.current),{position:s})})}}};function l(e){return{chatHost:null,initialVideoPoster:null}}},85418:function(e,t,n){"use strict";n.d(t,{$A:function(){return c},Dw:function(){return l},OR:function(){return m},Oy:function(){return _},R4:function(){return h},Y2:function(){return S},Y3:function(){return b},_M:function(){return y},ay:function(){return d},iD:function(){return p},jV:function(){return f},nY:function(){return u},o:function(){return v},ok:function(){return A},t7:function(){return g}});var r=n(15215),i=n(18697),o=n(46140),a=n(19826),s=n(13005);function c(e,t){return{tipKing:t}}var u=a.A.action((function(e){var t=document.getElementById("ResizablePane");if(t)return{resizablePaneSize:{height:t.offsetHeight,width:t.offsetWidth}}})),l=a.A.action((function(e,t,n){var i;return{chatInternalState:(0,r.Cl)((0,r.Cl)({},e.chatInternalState),{connectedUsersStatus:n?(0,r.Cl)((0,r.Cl)({},e.chatInternalState.connectedUsersStatus),(i={},i[t]=n,i)):(0,s.c)(e.chatInternalState.connectedUsersStatus,t)})}}));var d=a.A.action((function(e,t,n){var r=(0,o.u)(n)?e.newVideoCount+(t?1:-1):n;return sessionStorage.setItem("newVideoCount",r.toString()),{newVideoCount:r}})),f=(a.A.action((function(e,t){return{isSkipsChatBotGamesResult:t}})),a.A.action((function(e,t){return{countdownBot:(0,r.Cl)((0,r.Cl)({},e.countdownBot),t)}}))),h=a.A.action((function(e,t){return{isMemberBanned:t}})),p=a.A.action((function(e,t){return{isModelBannedMobile:t}})),m=a.A.action((function(e,t){return{isMemberKicked:t}})),v=a.A.action((function(e,t){return{memberKicked:t}})),g=a.A.action((function(e,t){return{privateInitiatorUsername:t}})),_=a.A.action((function(e,t){return{newsIm:(0,r.Cl)((0,r.Cl)({},e.newsIm),{disabled:t})}})),b=a.A.action((function(e,t){return{minPrivateDuration:t.minPrivateDuration,minFullPrivateDuration:t.minFullPrivateDuration}})),y=a.A.action((function(e,t){void 0===t&&(t=!1);var n=e.chatAutoInit,r=e.isModerator,o=e.isMobile,a=e.isMobileApp,s=e.chatLegacy;return(0,i._b)("Store Action Chat chatLegacy").info({forceChatLegacy:t}),{chatLegacy:t||s||!n||r||o||a}})),A=a.A.action((function(){return{disableAutoLogout:!0}}));var S=a.A.action((function(e,t){return void 0===t&&(t=!1),{isMemberPhotoGalleryOpened:t}}))},60544:function(e,t,n){"use strict";n.d(t,{ly:function(){return v},cB:function(){return A},Gt:function(){return h},NW:function(){return m},vA:function(){return _},IX:function(){return g},v8:function(){return S},fG:function(){return E},np:function(){return y},nz:function(){return p},SJ:function(){return f},By:function(){return C},BW:function(){return b}});var r=n(15215),i=n(93122),o=n(88026),a=n(37370),s=n(19826),c=n(14585),u=n(56896),l=n(91287),d=n(12957),f=function(e,t){var n,o=s.A.getState(),c=(0,l.lS)(o),d=(0,l.QL)(o,e);if(t.vars){var f=function(e){var t={};return[u.A.MEMBER_MEMBERSHIP_UPGRADED_NEW,u.A.MEMBER_MEMBERSHIP_DOWNGRADED].includes(e.type)&&(t.s1='',t.send=""),t}(t);t.vars=(0,r.Cl)((0,r.Cl)((0,r.Cl)({},t.vars),(0,a.v7)(o)),f)}s.A.action(i.E)({conversationsData:(0,r.Cl)((0,r.Cl)({},c),(n={},n[e]=(0,r.Cl)((0,r.Cl)({},d),{rawData:(0,r.Cl)((0,r.Cl)({},d.rawData),{last_message:t})}),n))})},h=function(e,t,n){var o;void 0===t&&(t=0),void 0===n&&(n=!1);var u=s.A.getState(),d=u.user,f=(0,l.lS)(u),h=f[e]||{},p=h&&h.messages||[],m=[];p.map((function(e){m.push((0,r.Cl)((0,r.Cl)({},e),n&&e.username===(0,c.y)(d.username)?{}:{unread:!1}))})),s.A.action(i.E)({conversationsData:(0,r.Cl)((0,r.Cl)({},f),(o={},o[e]=(0,r.Cl)((0,r.Cl)({},h),{unreadCount:t}),o))}),s.A.action(a.XG)({groupId:e,messages:m})},p=function(e,t){void 0===t&&(t=!1);var n=s.A.getState(),o=(0,l.lS)(n),a={};t||((0,d.loopv)(e,(function(e){a[e]=(0,r.Cl)((0,r.Cl)({},o[e]),{firstNewMessageId:null,unreadCount:1})})),s.A.action(i.E)({conversationsData:a}))},m=function(e){var t=s.A.getState(),n=t.user,i=(0,l.lS)(t)[e]||{},o=i&&i.messages||[],u=[];(0,d.loop)(0,o.length,(function(e){u.push((0,r.Cl)((0,r.Cl)({},o[e]),o[e].username!==(0,c.y)(n.username)||o[e].isLocalMessage?{}:{unread:!1}))})),s.A.action(a.XG)({groupId:e,messages:u})},v=function(e,t){var n=(0,l.lS)(e),i={};return n&&(0,d.loopv)(n,(function(e,n){n!==t.groupId&&(i[n]=e)})),{instantMessages:(0,r.Cl)((0,r.Cl)({},e.instantMessages),{conversations:(0,r.Cl)({},i)})}},g=function(e){var t=(0,l.lS)(e);t&&(0,d.loopv)(t,(function(e,n){(null==e?void 0:e.isFake)&&delete t[n]})),s.A.action(o.xm)({instantMessages:{conversations:t}})},_=function(e,t){var n=(0,l.lS)(e);delete n[t],s.A.action(o.xm)({instantMessages:{conversations:n}})},b=function(e,t){var n,i=(0,l.hn)(e);return{instantMessages:(0,r.Cl)((0,r.Cl)({},e.instantMessages),{users:(0,r.Cl)((0,r.Cl)({},i),(n={},n[t.username]=(0,r.Cl)((0,r.Cl)({},i[t.username]),{online:t.online}),n))})}},y=function(e,t){var n;s.A.action(i.E)({conversationsData:(n={},n[e]={hotWordsWarning:t},n)})},A=function(e,t){var n,r;s.A.action(i.E)({conversationsData:(n={},n[e]={hiddenAlerts:(r={},r[t]=!0,r)},n)})},S=function(e,t){var n,r;s.A.action(i.E)({conversationsData:(n={},n[e]={hiddenAlerts:(r={},r[t]=!1,r)},n)})},E=function(e,t){var n,i;return{instantMessages:(0,r.Cl)((0,r.Cl)({},e.instantMessages),{conversations:(0,r.Cl)((0,r.Cl)({},e.instantMessages.conversations),(null===(i=e.instantMessages.conversations[t.groupId])||void 0===i?void 0:i.rawData)&&(n={},n[t.groupId]=(0,r.Cl)((0,r.Cl)({},e.instantMessages.conversations[t.groupId]),{rawData:(0,r.Cl)((0,r.Cl)({},e.instantMessages.conversations[t.groupId].rawData),{muted:t.muted})}),n))})}},w=function(e,t){return e.map((function(e){return e.username===t.username?(0,r.Cl)((0,r.Cl)({},e),t):e}))},C=function(e,t){var n,i,o,a=function(e,t){return Object.keys(e).reduce((function(n,i){var o,a=e[i]||{},s=a.rawData||{};return(0,r.Cl)((0,r.Cl)({},n),((o={})[i]=(0,r.Cl)((0,r.Cl)({},a),{rawData:(0,r.Cl)((0,r.Cl)({},s),{users:w(s.users||[],t)})}),o))}),{})}((null===(i=e.instantMessages)||void 0===i?void 0:i.conversations)||{},t),s=(null===(o=e.instantMessages)||void 0===o?void 0:o.users)||{};return{instantMessages:(0,r.Cl)((0,r.Cl)({},e.instantMessages),{conversations:a,users:(0,r.Cl)((0,r.Cl)({},s),s[t.username]&&(n={},n[t.username]=(0,r.Cl)((0,r.Cl)({},s[t.username]),t),n))})}}},93122:function(e,t,n){"use strict";n.d(t,{E:function(){return a}});var r=n(15215),i=n(91287),o=n(45456),a=function(e,t){var n=(0,i.lS)(e);return{instantMessages:(0,r.Cl)((0,r.Cl)({},e.instantMessages),{conversations:(0,o.r)(n,t.conversationsData)})}}},29490:function(e,t,n){"use strict";n.d(t,{H:function(){return i}});var r=n(15215),i=(n(91287),n(45456),function(e){return{instantMessages:(0,r.Cl)((0,r.Cl)({},e.instantMessages),{groupIds:{}})}})},88026:function(e,t,n){"use strict";n.d(t,{J5:function(){return s},T9:function(){return u},Zc:function(){return c},xm:function(){return a}});var r=n(15215),i=n(45456),o=n(19826),a=function(e,t){return{instantMessages:(0,i.r)(e.instantMessages,t.instantMessages)}},s=function(e){return{instantMessages:(0,r.Cl)((0,r.Cl)({},e.instantMessages),{conversations:{},users:{}})}},c=function(e){o.A.action(a)({instantMessages:{totalUnread:e}})},u=function(e){return{btAlertAvailable:!1}}},37370:function(e,t,n){"use strict";n.d(t,{v7:function(){return S},lf:function(){return M},O2:function(){return L},KF:function(){return T},XG:function(){return C}});var r=n(15215),i=n(19826),o=n(56896),a=n(13907),s=n(14585),c=n(16998),u=n(42209),l=n(33954),d=function(e,t){var n=i.A.getState(),r=n.isRunetki,o=n.lang,s=r?"skins/runetki/popups/gift_cards/":"frontend/popups/gift_cards/",c="exclusive"===e.giftCardType?"exclusive":t?"vip":"gc_value_card";return(0,a.oF)("".concat(s).concat(c,"/card_amount/").concat(e.currency,"/").concat(o,".jpg"))},f=n(2597),h=n(1123),p=function(e){var t,n="/"===(null===(t=e.avatar)||void 0===t?void 0:t[0])?e.avatar.replace("/",""):e.avatar,r=(0,h.$)(e["%username%"]),i='');return{chat_lnk:''.concat(i,''),chat_lnk_end:""}},m=n(35321),v=n(62146),g=n(91287),_=n(60544),b=n(93122),y=n(45456),A=n(41669);function S(e){return{displayname:e.user.displayName,skin:e.skinName}}var E=function(e,t,n){n.vars.advantagesList=e,i.A.action(T)({groupId:t,messageData:n,messageId:n.id})},w=function(e,t){var n,i,o=(0,g.Ni)(e);return{instantMessages:(0,r.Cl)((0,r.Cl)({},e.instantMessages),{membershipAdvantages:(0,r.Cl)((0,r.Cl)({},o),(n={},n[t.oldMembershipType]=(0,r.Cl)((0,r.Cl)({},o[t.oldMembershipType]),(i={},i[t.newMembershipType]=t.advantages,i)),n))})}},C=function(e,t){var n,c=e.user,u=(0,g.lS)(e),h=(0,r.Cl)({},(u||{})[t.groupId]||{}),m=[],v=Array.from(new Map(t.messages.map((function(e){return[e.id,e]}))).values()),_=null,b=0;if(v.forEach((function(e){if(!e.ts){var n=new Date(e.created_at).getTime();_!==e.created_at&&(_=e.created_at,b=0),e.ts=n+b++}switch(e.type){case o.A.MEMBER_MEMBERSHIP_UPGRADED:case o.A.MEMBER_MEMBERSHIP_UPGRADED_NEW:var s=e.type===o.A.MEMBER_MEMBERSHIP_UPGRADED,c=function(e,t){var n,r,o=(0,a.ip)("@member_account_membership"),s="def"===i.A.getState().skinId?"":"__wl";switch(n=e.membership===f.A.EXCLUSIVE?t?__("The %membership% users have full access to the website and all available features. In addition, the models in the chat rooms of your choice will be fully aware of your %membership% status, paying more attention to you!",{membership:''.concat(e.membership,"")}):__("The %membership% users have full access to the website and %s1%all available features%s2%.",{membership:''.concat(e.membership,""),s1:'',s2:""}):t?__("The %membership% status unlocks a range of new exciting possibilities for you! In addition, the models in the chat rooms of your choice will be fully aware of your %membership% status, paying more attention to you!",{membership:''.concat(e.membership,"")}):__("The %membership% status unlocks a range of %s1%new exciting possibilities%s2% for you!",{membership:''.concat(e.membership,""),s1:'',s2:""}),e.membership){case f.A.GOLD:case f.A.PLATINUM:r=__("Your daily spending limit is %limit%, or %s1%%transactions% transactions%s2%, whichever comes first.",{limit:''.concat(e.limit,""),transactions:e.transactions,s1:'',s2:""});break;case f.A.UNLIMITED:r=__("Your daily spending limit is %limit%.",{limit:''.concat(e.limit,"")});break;case f.A.SAPPHIRE:case f.A.TITAN:case f.A.DIAMOND:case f.A.EXCLUSIVE:r=__("You can make purchases for %s1%any amount without limitation.%s2%",{s1:'',s2:""})}return{btnURL:o,isWL:s,description:n,limitAndTransactions:r}}(e.vars,s),u=c.btnURL,h=c.description,v=c.limitAndTransactions,y=c.isWL;e.vars.btnURL=u,e.vars.isWL=y,e.vars.description=h,e.vars.limitAndTransactions=v,e.vars.class="__".concat(e.vars.membership);break;case o.A.MEMBER_MEMBERSHIP_DOWNGRADED:e.vars.advantagesList="",function(e,t,n,r){var o,s,c=null===(s=null===(o=(0,g.Ni)(i.A.getState()))||void 0===o?void 0:o[t])||void 0===s?void 0:s[e];void 0===c?A.ajax({success:function(o){i.A.action(w)({advantages:o,newMembershipType:e,oldMembershipType:t}),E(o,n,r)},url:(0,a.ip)("@ajax_membership_downgrade_list?newMembership=".concat(e,"&oldMembership=").concat(t))}):E(c,n,r)}(e.vars.newMembership,e.vars.oldMembership,t.groupId,e),e.vars.phrase=__("from %oldMembership% to %newMembership%!",{newMembership:e.vars.newMembership,oldMembership:e.vars.oldMembership}),e.vars.isWl="def"===i.A.getState().skinId?"":"__wl";break;case o.A.MEMBER_GIFT_CARD:e.vars.giftCardPath=d(e.vars),e.vars.purchaseTokensUrl="".concat((0,a.ip)("@member_buy_tokens"),"?gcnum=").concat(e.vars.giftCardHash);break;case o.A.MEMBER_VIP_GIFT_CARD:e.vars.giftCardPath=d(e.vars,!0),e.vars.purchaseTokensUrl="".concat((0,a.ip)("@member_buy_tokens"),"?gcnum=").concat(e.vars.giftCardHash);break;case o.A.MEMBER_MODEL_MADE_A_MODERATOR:case o.A.MEMBER_MODEL_MADE_A_MODERATOR_NEW:var S=p(e.vars),C=S.chat_lnk,T=S.chat_lnk_end;e.vars.chat_lnk=C,e.vars.chat_lnk_end=T;break;case o.A.MEMBER_CONFIRM_EMAIL_NO_TOKENS:var L=(k=i.A.getState().isWL?"wl":"bonga",N=l.isRTLCulture?"header_rtl":"header",I="frontend/promo_messages/confirm_email/no_tokens/".concat(k,"/desktop/").concat(N),O="frontend/promo_messages/confirm_email/no_tokens/".concat(k,"/tablet/").concat(N),P="frontend/promo_messages/confirm_email/no_tokens/".concat(k,"/mobile/").concat(N),{desktopHeaderImagePathPng:(0,a.oF)("".concat(I,"/1x/img.png")),desktopHeaderImagePath2xPng:(0,a.oF)("".concat(I,"/2x/img.png")),desktopHeaderImagePathWebp:(0,a.oF)("".concat(I,"/1x/img.webp")),desktopHeaderImagePath2xWebp:(0,a.oF)("".concat(I,"/2x/img.webp")),desktopHeaderImagePathAvif:(0,a.oF)("".concat(I,"/1x/img.avif")),desktopHeaderImagePath2xAvif:(0,a.oF)("".concat(I,"/2x/img.avif")),tabletHeaderImagePathPng:(0,a.oF)("".concat(O,"/1x/img.jpg")),tabletHeaderImagePath2xPng:(0,a.oF)("".concat(O,"/2x/img.jpg")),tabletHeaderImagePathWebp:(0,a.oF)("".concat(O,"/1x/img.webp")),tabletHeaderImagePath2xWebp:(0,a.oF)("".concat(O,"/2x/img.webp")),tabletHeaderImagePathAvif:(0,a.oF)("".concat(O,"/1x/img.avif")),tabletHeaderImagePath2xAvif:(0,a.oF)("".concat(O,"/2x/img.avif")),mobileHeaderImagePathPng:(0,a.oF)("".concat(P,"/1x/img.jpg")),mobileHeaderImagePath2xPng:(0,a.oF)("".concat(P,"/2x/img.jpg")),mobileHeaderImagePathWebp:(0,a.oF)("".concat(P,"/1x/img.webp")),mobileHeaderImagePath2xWebp:(0,a.oF)("".concat(P,"/2x/img.webp")),mobileHeaderImagePathAvif:(0,a.oF)("".concat(P,"/1x/img.avif")),mobileHeaderImagePath2xAvif:(0,a.oF)("".concat(P,"/2x/img.avif")),isWL:"def"===i.A.getState().skinId?"":"__wl"});Object.keys(L).forEach((function(t){return e.vars[t]=L[t]}));break;case o.A.MEMBER_CONFIRM_EMAIL_WITH_TOKENS:var M=function(e){var t=i.A.getState().lang,n="frontend/promo_messages/confirm_email/".concat(e,"/desktop/").concat(t),r="frontend/promo_messages/confirm_email/".concat(e,"/tablet/").concat(t),o="frontend/promo_messages/confirm_email/".concat(e,"/mobile/").concat(t);return{desktopHeaderImagePathPng:(0,a.oF)("".concat(n,"/1x/img.png")),desktopHeaderImagePath2xPng:(0,a.oF)("".concat(n,"/2x/img.png")),desktopHeaderImagePathWebp:(0,a.oF)("".concat(n,"/1x/img.webp")),desktopHeaderImagePath2xWebp:(0,a.oF)("".concat(n,"/2x/img.webp")),desktopHeaderImagePathAvif:(0,a.oF)("".concat(n,"/1x/img.avif")),desktopHeaderImagePath2xAvif:(0,a.oF)("".concat(n,"/2x/img.avif")),tabletHeaderImagePathPng:(0,a.oF)("".concat(r,"/1x/img.jpg")),tabletHeaderImagePath2xPng:(0,a.oF)("".concat(r,"/2x/img.jpg")),tabletHeaderImagePathWebp:(0,a.oF)("".concat(r,"/1x/img.webp")),tabletHeaderImagePath2xWebp:(0,a.oF)("".concat(r,"/2x/img.webp")),tabletHeaderImagePathAvif:(0,a.oF)("".concat(r,"/1x/img.avif")),tabletHeaderImagePath2xAvif:(0,a.oF)("".concat(r,"/2x/img.avif")),mobileHeaderImagePathPng:(0,a.oF)("".concat(o,"/1x/img.jpg")),mobileHeaderImagePath2xPng:(0,a.oF)("".concat(o,"/2x/img.jpg")),mobileHeaderImagePathWebp:(0,a.oF)("".concat(o,"/1x/img.webp")),mobileHeaderImagePath2xWebp:(0,a.oF)("".concat(o,"/2x/img.webp")),mobileHeaderImagePathAvif:(0,a.oF)("".concat(o,"/1x/img.avif")),mobileHeaderImagePath2xAvif:(0,a.oF)("".concat(o,"/2x/img.avif")),isWL:"def"===i.A.getState().skinId?"":"__wl"}}(e.vars.tokens);Object.keys(M).forEach((function(t){return e.vars[t]=M[t]}));break;case o.A.MEMBER_MODEL_RELIEVED_MODERATOR:e.vars.model_name=function(e){var t=p(e),n=t.chat_lnk,r=t.chat_lnk_end;return"".concat(n).concat(e["%model_name%"]).concat(r)}(e.vars)}var k,N,I,O,P;e.vars&&t.defaultVars&&(e.vars=(0,r.Cl)((0,r.Cl)({},e.vars),t.defaultVars)),m.push(e)})),m.sort((function(e,t){return t.ts-e.ts})),!h.firstNewMessageId&&h.unreadCount&&m.length>h.unreadCount){var y=[];m.filter((function(e){return e.username!==(0,s.y)(c.username)})).slice(0,h.unreadCount).map((function(e){y.push(e.id)})),h.firstNewMessageId=y[y.length-1]}return{instantMessages:(0,r.Cl)((0,r.Cl)({},e.instantMessages),{conversations:(0,r.Cl)((0,r.Cl)({},u),(n={},n[t.groupId]=(0,r.Cl)((0,r.Cl)({},h),{messages:m,more:"boolean"==typeof(null==t?void 0:t.more)?null==t?void 0:t.more:null==h?void 0:h.more}),n))})}},T=function(e,t){var n,i=(0,g.lS)(e),o=i[t.groupId],a=((null==o?void 0:o.messages)||[]).map((function(e){return e.id===t.messageId?(0,y.r)(e,t.messageData):e})).sort((function(e,t){return t.ts-e.ts}));return{instantMessages:(0,r.Cl)((0,r.Cl)({},e.instantMessages),{conversations:(0,r.Cl)((0,r.Cl)({},i),(n={},n[t.groupId]=(0,r.Cl)((0,r.Cl)({},o),{messages:a}),n))})}},L=function(e,t,n){i.A.action(T)({groupId:e,messageData:{status:n},messageId:t})},M=function(e,t){for(var n=[],o=2;o0?{instantMessages:(0,r.Cl)((0,r.Cl)({},e.instantMessages),{conversations:(0,r.Cl)((0,r.Cl)({},e.instantMessages.conversations),(n={},n[t.groupId||t.username]=(0,r.Cl)((0,r.Cl)({},i),{tip:t.tokens}),n))})}:e},l=function(e,t){var n,i=(0,a.QL)(e,t.groupId);return Object.keys(i).length>0?(delete i.tip,{instantMessages:(0,r.Cl)((0,r.Cl)({},e.instantMessages),{conversations:(0,r.Cl)((0,r.Cl)({},e.instantMessages.conversations),(n={},n[t.groupId]=(0,r.Cl)({},i),n))})}):e},d=function(e,t){var n,r=e.isMobile,a=t.groupId,u=t.text,l=t.tokens,d=t.username,f=t.onError,h=t.onFinally,p=t.onSuccess,m=t.layout||e.layout||102,v=t.source;v||(v=r?e.source:e.sourceType);var g={data:{first_visit:(0,c.Ri)("fv",""),layout:m,source:v||"regular",split_group:(0,c.Ri)("sg",""),sub_type:t.sub_type||i.A.MESSAGE,text:u,tokens:l,user_hash:(0,c.Ri)("uh","")},type:5};if(a?g.data.group_id=a:d&&(g.data.users=[d]),!a&&!d)return null==f||f(o.Rb),null==h||h(),e;var _={data:g,type:"im"};return n=window.setTimeout((function(){null==f||f(o.Rb),null==h||h()}),1e4),(0,s.BT)(e,_,(function(e){var t;clearTimeout(n);var r=(null===(t=e.data)||void 0===t?void 0:t.error)||null;r?(null==f||f(r),null==h||h()):(null==p||p(e),null==h||h())}))}},66877:function(e,t,n){"use strict";n.d(t,{G:function(){return c},f:function(){return s}});var r=n(15215),i=n(91287),o=n(19826),a=n(93122),s=function(e,t){var n,o=t.groupId,a=(0,i.QL)(e,o);return Object.keys(a).length>0?(delete a.typing,{instantMessages:(0,r.Cl)((0,r.Cl)({},e.instantMessages),{conversations:(0,r.Cl)((0,r.Cl)({},e.instantMessages.conversations),(n={},n[o]=(0,r.Cl)({},a),n))})}):e},c=function(e,t){var n,s,c=o.A.getState(),u=(0,i.lS)(c),l=u[e];if(l){var d=(0,r.Cl)((0,r.Cl)({},u),((n={})[e]=(0,r.Cl)((0,r.Cl)({},l),{typing:(0,r.Cl)((0,r.Cl)({},l.typing||{}),(s={},s[t]=Date.now(),s))}),n));o.A.action(a.E)({conversationsData:d})}}},80438:function(e,t,n){"use strict";n.d(t,{BT:function(){return o},gg:function(){return u},lN:function(){return c},p:function(){return s},t4:function(){return a}});var r=n(15215),i=n(82267);function o(e,t,n){return i.s.instance.send(t,n),{socket:(0,r.Cl)((0,r.Cl)({},e.socket),{message:{}})}}function a(e){return{socket:(0,r.Cl)((0,r.Cl)({},e.socket),{connected:!0,message:""})}}function s(e){return{socket:(0,r.Cl)((0,r.Cl)({},e.socket),{connected:!1,message:""})}}function c(e){return{socket:(0,r.Cl)((0,r.Cl)({},e.socket),{connected:!1,message:""})}}function u(e,t){return{socket:(0,r.Cl)((0,r.Cl)({},e.socket),{message:t})}}},32101:function(e,t,n){"use strict";n.d(t,{r:function(){return r}});var r=function(e){return e.memberChatNotificationSettingsOptions}},42169:function(e,t,n){"use strict";n.d(t,{Uf:function(){return o},h1:function(){return i}});var r=n(15215);function i(e,t){return void 0===t?e:Array.isArray(e)&&Array.isArray(t)?function(e,t){if(!t)return e;return t}(e,t):"object"==typeof e&&"object"==typeof t?o(e,t):t}function o(e,t){if(!t)return e;var n=(0,r.Cl)({},e)||{};for(var o in t)t.hasOwnProperty(o)&&(n[o]=e?i(e[o],t[o]):t[o]);return n}},56846:function(e,t,n){"use strict";n.d(t,{O4:function(){return r},bZ:function(){return o},fg:function(){return i}});var r=function(e,t){return{flActiveFilter:t}},i=function(e,t){return{flActiveFilter:e.flActiveFilter===t?"":t}},o=function(e,t){return{flActiveFilter:t&&e.flActiveFilter!==t?e.flActiveFilter:""}}},52293:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=n(18697),i=function(e){var t=e.flFilterOrder,n=e.flFilterRealListingState,i=e.flFilterState;return(0,r._b)("Store Action ModelsFilter clearFilter").warn({flFilterOrder:t,flFilterRealListingState:n,flFilterState:i}),{flFilterOrder:[],flFilterRealListingState:{flFilterCounters:{live:0,total:0},flFilterOrder:[],flFilterState:{}},flFilterState:{},flSavedSearches:null}}},62899:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});var r=function(){return{flFilterCounters:{live:0,total:0,ts:Date.now()}}}},36914:function(e,t,n){"use strict";n.d(t,{J:function(){return c}});var r=n(19826),i=n(956),o=n(75451),a=n(42895),s=n(21319),c=function(e,t){setTimeout((function(){var e=r.A.getState();r.A.action(s.U)(),o.A.hasSelected(e.flFilterState)&&(0,a.O)(e.flFilterState,i.x.formName,(function(e,t){r.A.setState({flFilterCounters:{live:e,total:t,ts:Date.now()}})}),t)}),1)}},21319:function(e,t,n){"use strict";n.d(t,{U:function(){return h}});var r=n(15215),i=n(19826),o=n(956),a=n(75451),s=n(77011),c=n(13907),u=n(70901),l=n(13005),d=n(41669),f=(0,s.Q)(5e3,"default"),h=function(e,t,n,s){void 0===t&&(t=!0),void 0===n&&(n=null);var h=(0,r.Cl)((0,r.Cl)({},a.A.serializeFilterFormState(o.x.formName,n||e.flFilterState)),{_filter:1}),p=JSON.stringify(h),m=(0,u.e8)(p),v=function(e){t&&i.A.setState({flFilterCountersScheme:(0,l.c)(e,"status")}),s&&s(e)};f.isExpired(m)?(f.setDelay(m),d.ajax({data:h,dataType:"json",error:function(){f.clearDelay(m)},success:function(e){"success"===e.status&&(v(e),f.setCache(e,m))},type:"get",url:(0,c.ip)("@listing")})):f.getCache(m)&&v(f.getCache(m))}},15645:function(e,t,n){"use strict";n.d(t,{o:function(){return c}});var r=n(15215),i=n(19826),o=n(956),a=n(75451),s=n(42895),c=function(e,t,n){setTimeout((function(){var e=i.A.getState();a.A.hasSelected()?(0,s.O)(e.flFilterRealListingState.flFilterState,o.x.formName,(function(e,t,o){i.A.setState({flFilterRealListingState:(0,r.Cl)((0,r.Cl)({},i.A.getState().flFilterRealListingState),{flFilterCounters:{live:e,total:t,ts:Date.now()},suggestedName:o})}),n&&n()}),t,(function(){n&&n()}),!0):(i.A.setState({flFilterRealListingState:(0,r.Cl)((0,r.Cl)({},i.A.getState().flFilterRealListingState),{flFilterCounters:{live:0,total:0}})}),n&&n())}),1)}},58676:function(e,t,n){"use strict";n.d(t,{d:function(){return o}});var r=n(15215),i=n(75451),o=function(e,t,n){var o,a=i.A.sanityState((0,r.Cl)((0,r.Cl)({},e.flFilterState),((o={})[t]=n,o)),e.flFilterScheme),s=i.A.diffFilterState(e.flFilterState,a);return{flFilterOrder:(0,r.fX)([],e.flFilterOrder,!0).filter((function(e){return-1===s.deleted.indexOf(e)})).concat(s.added),flFilterState:a}}},44697:function(e,t,n){"use strict";n.d(t,{J:function(){return u},U:function(){return l}});var r=n(19826),i=n(13907),o=n(21319),a=n(41669),s=0,c=!1,u=function(){c&&(s=0)},l=function(e,t,n,u){n||(n=["main","quick"].includes(e.flActiveFilter));var l=!n,d=!1,f=function(e){void 0===e&&(e=!1),!d&&u&&(e||c&&l)&&(d=!0,u())};if(n&&r.A.action(o.U)(!0,null,(function(){l=!0,f()})),t||Date.now()-s>5e5){if(document.querySelector(".js-filter_wrap")||!t){s=Date.now();var h=(0,i.ip)("@ajax_filter");c=!1,a.ajax({dataType:"json",error:function(){s=0,f(!0)},success:function(e){c=!0,r.A.setState({flFilterScheme:e}),f()},url:h})}}else f(!0)}},18912:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(15215),i=n(75451),o=n(13005),a=function(e,t,n){var a=i.A.sanityState(t,e.flFilterScheme),s=i.A.diffFilterState(e.flFilterState,a),c=(0,r.fX)([],e.flFilterOrder,!0).filter((function(e){return-1===s.deleted.indexOf(e)})).concat(s.added);return{flFilterOrder:c,flFilterRealListingState:{flFilterCounters:(0,r.Cl)((0,r.Cl)({},e.flFilterRealListingState.flFilterCounters),"name"===e.flActiveFilter?{}:(0,o.c)(e.flFilterCounters,"ts")),flFilterOrder:c,flFilterState:a},flFilterState:a,flSavedSearches:(null==n?void 0:n.flSavedSearches)||null}}},16494:function(e,t,n){"use strict";n.d(t,{c:function(){return a}});var r=n(15215),i=n(19826),o=n(12957),a=function(){function e(){}return e.subscribe=function(){var t=this;this.subscribed||(this.prevState=i.A.getState(),i.A.subscribe((function(n){var i=(0,r.Cl)({},t.prevState);t.prevState=n,e.onChange(n,i)})),this.subscribed=!0)},e.deepFind=function(e,t){for(var n=t.split("."),r=e,i=0;i=0;)if(a.hasOwnProperty(u)){var d=a[u];n="1"===d.getAttribute("data-version")?l(n=(0,o.r)(n,c(d.innerText,"01ET1PP19TM3JR0EYMEG4SNX1H")||{})):(0,o.r)(n,(0,s.json_parse)(d.innerText)||{})}return n}))},35626:function(e,t,n){"use strict";n.d(t,{L:function(){return s},S:function(){return a}});var r=n(45070),i=n(21110),o=n(40172),a=function(e){return e.chatHeader},s=function(e){return!(0,o.uD)(e)&&!(0,o.Iz)(e)&&!(0,o.d1)(e)&&!(0,o.P3)(e)&&i.q.isEnabled(r.i.CHAT_HEADER)}},42940:function(e,t,n){"use strict";n.d(t,{C:function(){return r}});var r=function(e){return e.chatHeaderOptions}},9445:function(e,t,n){"use strict";n.d(t,{Z4:function(){return o},b5:function(){return r},i4:function(){return i},oC:function(){return a}});var r=function(e){return e.chatHost},i=function(e){var t;return(null===(t=r(e))||void 0===t?void 0:t.gender)||""},o=function(e){var t;return(null===(t=r(e))||void 0===t?void 0:t.username)||""},a=function(e){return"private-chat"===function(e){var t;return null===(t=r(e))||void 0===t?void 0:t.chatType}(e)}},32502:function(e,t,n){"use strict";n.d(t,{Df:function(){return i},ad:function(){return r},x9:function(){return o}});var r=function(e){return e.chatShowStatusOptions},i=function(e){var t,n;return null===(n=null===(t=r(e))||void 0===t?void 0:t.isOffline)||void 0===n||n},o=function(e){var t;return(null===(t=r(e))||void 0===t?void 0:t.isQoQWinner)||!1}},28577:function(e,t,n){"use strict";n.d(t,{$k:function(){return d},A4:function(){return h},Ci:function(){return f},Ht:function(){return c},K2:function(){return l},_$:function(){return a},em:function(){return r},vM:function(){return o},xl:function(){return u},yI:function(){return s},yZ:function(){return i}});var r=function(e){return e.listingActiveCategory},i=function(e){return e.listingActiveTag},o=function(e){return e.listingActiveBlock},a=function(e){return e.listingCategoriesRowConfig},s=function(e){return e.listingCategoriesRowList},c=function(e){var t;return a(e)&&(null===(t=s(e))||void 0===t?void 0:t.some((function(e){return!e.isHidden})))},u=function(e){var t,n,i,o,a=r(e);if(!a)return null;var s=e.listingActiveCategorySlug;return s||(null===(o=null===(i=null===(n=null===(t=e.flFilterScheme.fields)||void 0===t?void 0:t.category)||void 0===n?void 0:n.choices)||void 0===i?void 0:i.find((function(e){return e.k===a})))||void 0===o?void 0:o.slug)},l=function(e){var t;return null===(t=function(e){return e.flFilterRealListingState}(e))||void 0===t?void 0:t.flFilterState},d=function(e){var t;return null===(t=l(e))||void 0===t?void 0:t.category},f=function(e){var t=(e.flFilterRealListingState||{}).flFilterState;return t&&Object.keys(t).length>0},h=function(e,t){void 0===t&&(t=!0);var n=e.isMobile?function(e){var t=(e.mobileFilter||{}).submittedFields;return t&&Object.keys(t).length>0}(e):f(e);return!(!t||!n)||(!!r(e)||!!i(e)||!!o(e))}},89836:function(e,t,n){"use strict";n.d(t,{FC:function(){return l},Hh:function(){return o},Ux:function(){return u},jI:function(){return a},l1:function(){return h},mk:function(){return d},nE:function(){return c},oL:function(){return f},pc:function(){return p},q5:function(){return s}});var r=n(23110),i=n(10373),o=function(e){return e.liveTab},a=function(e){return e.pinnedLiveTab},s=function(e){return e.skinLiveTab},c=function(e){return e.listingInitialLiveTab},u=function(e){return e.listingLiveTabCounters},l=function(e){return e.listingAvailableLiveTabs},d=function(e){return a(e)||s(e)},f=function(e){var t=o(e);return t&&t===d(e)},h=function(e){var t=o(e);return t&&t===s(e)},p=function(e){var t=o(e);return(0,i.n)(t)?t:function(e){var t=d(e);return(0,i.n)(t)?t:r.n.FEMALE}(e)}},52982:function(e,t,n){"use strict";n.d(t,{B0:function(){return h},Js:function(){return f},Km:function(){return v},Mk:function(){return c},Qy:function(){return s},RX:function(){return l},Ws:function(){return d},Ze:function(){return p},li:function(){return m},v1:function(){return a},wH:function(){return u}});var r=n(15839),i=n(74214),o=function(e){return e.listingLoader},a=function(e){return o(e).type},s=function(e){return o(e).offset},c=function(e){return o(e).limit},u=function(e){return o(e).totalCount},l=function(e){return o(e).onlineCount},d=function(e){return o(e).isPinSorting},f=function(e){return o(e).sorting},h=function(e){var t=s(e),n=c(e);return(Math.floor(t/n)||0)+1},p=function(e){var t=u(e),n=c(e);return Math.ceil(t/n)},m=function(e){return a(e)===i.J.PAGER},v=function(e){return!e.isModerator&&(0,r.TD)(e)}},58369:function(e,t,n){"use strict";n.d(t,{Cd:function(){return o},_n:function(){return s},gt:function(){return a},mq:function(){return r},sr:function(){return i}});var r=function(e){return e.listingModels||[]},i=function(e){return e.listingBlocks},o=function(e){return e.listingInitialBlocks},a=function(e){return e.listingBlocksPinnedModels},s=function(e){return r(e).length||0}},15839:function(e,t,n){"use strict";n.d(t,{$E:function(){return i},E2:function(){return r},J:function(){return l},Q:function(){return u},Sh:function(){return a},TD:function(){return f},ip:function(){return s},ls:function(){return o},sd:function(){return d},yH:function(){return c}});var r=function(e){var t;return null===(t=function(e){return e.listing}(e))||void 0===t?void 0:t.internalLinks},i=function(e){var t;return Boolean(null===(t=r(e))||void 0===t?void 0:t.length)},o=function(e){return e.listingRights},a=function(e){return e.listingIsNotFoundPage},s=function(e){return e.listingIsUnsubscribePage},c=function(e){return e.listingIsAllModelsPage},u=function(e){return e.listingAvailableTags||[]},l=function(e){return e.listingHeaderTagsIds||[]},d=function(e){return e.listingIsLoading||e.isSPAProcessing},f=function(e){return!a(e)&&!c(e)}},99215:function(e,t,n){"use strict";n.d(t,{A:function(){return u},Ng:function(){return o},Vx:function(){return c},dn:function(){return s},g6:function(){return l},gX:function(){return a}});var r=n(52982),i=n(58369),o=function(e){return e.listingThumbSize},a=function(e){return e.listingThumbType},s=function(e){return e.listingSelectedThumb},c=function(e){return e.listingThumbsPerRowCount},u=function(e){var t=(0,i._n)(e),n=c(e);return t&&n?Math.round(t/n):0},l=function(e){var t=(0,r.wH)(e),n=c(e);return t&&n?Math.ceil(t/n):0}},65805:function(e,t,n){"use strict";n.d(t,{Aw:function(){return i},LY:function(){return c},X3:function(){return o},Zh:function(){return s},ns:function(){return a},vw:function(){return r}});var r=function(e){var t;return null===(t=e.promoBanner)||void 0===t?void 0:t.discountEndTime},i=function(e){var t;return null===(t=e.promoBanner)||void 0===t?void 0:t.discountHolidaySubType},o=function(e){var t;return null===(t=e.promoBanner)||void 0===t?void 0:t.isCybersaleHoliday},a=function(e){var t;return null===(t=e.promoBanner)||void 0===t?void 0:t.discountPercent},s=function(e){var t;return null===(t=e.promoBanner)||void 0===t?void 0:t.isComingSoon},c=function(e){var t;return null===(t=e.promoBanner)||void 0===t?void 0:t.isDiscountTimerVersion}},49635:function(e,t,n){"use strict";n.d(t,{EV:function(){return a},R1:function(){return i},cP:function(){return o},dt:function(){return r}});var r=function(e){return e.user},i=function(e){var t;return(null===(t=r(e))||void 0===t?void 0:t.balance)||0},o=function(e){var t;return null===(t=r(e))||void 0===t?void 0:t.username},a=function(e){var t;return null===(t=r(e))||void 0===t?void 0:t.membership}},41042:function(e,t,n){"use strict";n.d(t,{BH:function(){return s},Bl:function(){return c},LD:function(){return u},Ml:function(){return i},e6:function(){return r},u3:function(){return o},vm:function(){return l},xq:function(){return a}});var r=function(e){return e.chatTopicOptions},i=function(e){return e.isChatPage},o=function(e){return e.isMobileApp},a=function(e){return e.tipKing},s=function(e){return!e.isFullScreen&&e.isNewChatControlPanelAvailable},c=function(e){return e.isLiveStreamPromo},u=function(e){return e.chatInputDisabled},l=function(e){return e.chatExtra}},40172:function(e,t,n){"use strict";n.d(t,{Hz:function(){return _},Iz:function(){return l},K5:function(){return c},OD:function(){return v},Oz:function(){return g},P3:function(){return h},SX:function(){return A},U7:function(){return s},UQ:function(){return r},VF:function(){return S},_G:function(){return y},_T:function(){return m},d1:function(){return f},ey:function(){return i},i1:function(){return d},oI:function(){return o},pU:function(){return p},uD:function(){return u},uq:function(){return b},zr:function(){return a}});var r=function(e){return e.isAuthenticated},i=function(e){return e.isModerator},o=function(e){return e.isMobile},a=function(e){return e.isMobileApp},s=function(e){return e.isFullScreen},c=function(e){return e.isFullMobile},u=function(e){return Boolean(e.isEmbed)},l=function(e){return e.isPromo},d=function(e){return e.isBCM},f=function(e){return Boolean(e.isChatPopup)},h=function(e){return e.chatPopup},p=function(e){return e.memberBalanceOptions},m=function(e){return e.modelNavigationOptions},v=function(e){return e.stylePanelOptions},g=function(e){return e.posterOptions},_=function(e){return e.streamOptions},b=function(e){return e.geoCountryId},y=function(e){return e.lang},A=function(e){return e.isWL},S=function(e){return e.isBadgeNewProfile}},25109:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});var r={chatBoost:{timers:[],isBoostAvailable:!1,isBoostReady:!1}}},20821:function(e,t,n){"use strict";n.d(t,{n:function(){return r}});var r={appSeed:(0,n(41785).E)(),culture:"",lang:"",currency:"usd",config:{notificationsMutePeriod:864e5},application:{state:0},ABTests:{},urls:{},userEvents:{confirm_email_popup:!1},onlineNotifications:[],onlineNotificationSettings:{},isBuyTokensJsLoaded:!1,socket:{connected:!1},features:[],notificationToken:"",assetsHashes:{js:"",css:"",php:"",bcc:""},specialAvatarsDir:null,isEmbed:!1,sentrySampleRate:0,geoCountryId:""}},39477:function(e,t,n){"use strict";n.d(t,{F:function(){return r}});var r={cam2cam:{isActive:!1}}},40145:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var r={isMobile:!1,isTablet:!1,isMobileApp:!1,isFullMobile:!1,isClassicVersion:!1,chromeCastAvailable:!1,chromeCastDevice:"",hasFullScreenAccess:!1,isAirPlay2Available:!1}},1206:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});var r={instantMessages:{totalUnread:0,conversations:{},users:{},imNotificationVolume:.5}}},99087:function(e,t,n){"use strict";n.d(t,{r:function(){return r}});var r={listingActiveBlock:null,listingActiveCategory:null,listingActiveCategorySlug:null,listingActiveTag:null,listingAvailableLiveTabs:[],listingAvailableTags:null,listingBlocks:null,listingBlocksPinnedModels:null,listingCategoriesRowConfig:null,listingCategoriesRowList:[],listingCommonTags:[],listingDisplayTypeForm:{display:[],per_page:[],th_type:[]},listingFooterTags:{},listingHeaderTagsIds:[],listingInitialBlocks:null,listingInitialLiveTab:null,listingIsAllModelsPage:!1,listingIsLoading:!1,listingIsNotFoundPage:!1,listingIsUnsubscribePage:!1,listingLiveTabCounters:{},listingLoader:{limit:null,offset:null,sorting:null,totalCount:null,type:null,isPinSorting:!1,onlineCount:null},listingModels:null,listingRights:{},listingSelectedThumb:null,listingTagsCacheVersion:"",listingThumbSize:null,listingThumbsPerRowCount:0,listingThumbType:null,liveTab:null,pinnedLiveTab:null,sortingThumb:[],isThumbsTypeFilterAvailable:!0}},33415:function(e,t,n){"use strict";n.d(t,{H:function(){return r}});var r={nftTokenLink:null,nftWallet:null}},37048:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});var r={popup:{},confirmPopup:{title:"",content:"",contentProps:null,buttons:[],className:"",onClose:null,isHtml:!1},alerts:{},fancyPopup:{},popupData:{render:null,options:{}},drawer:{id:null},showRegistrationPopups:!1,isPromoCodeSignupPopupsOnly:!1,isSignupPromoCodeEnabled:!1,isCaptchaSignup:!1}},28514:function(e,t,n){"use strict";n.d(t,{C:function(){return r}});var r={tipPopupOptions:{lastTip:0,tips:[]}}},26548:function(e,t,n){"use strict";n.d(t,{o:function(){return r}});var r={spoofIm:{avatarUrl:"",username:"",displayName:"",spoofVersionId:null,time:180},pollData:{},newsIm:{disabled:!1}}},96575:function(e,t,n){"use strict";n.d(t,{R:function(){return i}});var r=n(18697);function i(e,t){(0,r._b)("BCC bcAppDispatch").warn(e,{payload:t}),"function"==typeof window.bcAppDispatch&&window.bcAppDispatch(e,t)}Object.prototype.hasOwnProperty.call(window,"legacyAppDispatch")||(window.legacyAppDispatch=function(e,t){(0,r._b)("BCC legacyAppDispatch").warn(e,{payload:t}),document.dispatchEvent(new CustomEvent(e,{detail:t}))})},24663:function(e,t,n){"use strict";var r=n(15215),i=function(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)},o=function(){function e(e){var t=e.defaultStore,n=e.updateDefaultStore;this.defaultStore=t,this.updateDefaultStore=n}return e.prototype.updateOldState=function(e,t){var n={};for(var r in t)e[r]&&(n[r]=t[r]);return n},e.prototype.addReduxStore=function(e,t){var n=this;t((0,r.Cl)((0,r.Cl)({},this.defaultStore.getState()),e.getState().legacyStore)),this.updateDefaultStore((0,r.Cl)((0,r.Cl)({},this.defaultStore.getState()),e.getState().legacyStore)),this.storeConnect({direction:"update_redux",updateStoreCallback:t,trackedStore:this.defaultStore,getState:function(){return n.defaultStore.getState()}}),this.storeConnect({direction:"update_defaultStore",updateStoreCallback:this.updateDefaultStore,trackedStore:e,getState:function(){return e.getState().legacyStore}})},e.prototype.storeConnect=function(e){var t=e.trackedStore,n=e.updateStoreCallback,o=e.getState,a=e.direction,s=o();t.subscribe((function(){var e,t=o();if((null===(e=t.direction)||void 0===e?void 0:e.type)===a||t.direction===s.direction){var c=function(e,t){if(!i(e)||!i(t))return null;var n=new Set((0,r.fX)((0,r.fX)([],Object.keys(e),!0),Object.keys(t),!0)),o={},a=!1;return n.forEach((function(n){Object.hasOwnProperty.call(e,n)&&e[n]===t[n]||(o[n]=t[n],a=!0)})),a?o:null}(s,t);c&&n((0,r.Cl)((0,r.Cl)({},c),{direction:{type:a,timestamp:Date.now()}})),s=t}else s=t}))},e}();t.A=o},19826:function(e,t,n){"use strict";var r,i=n(15215),o=n(24663),a=n(98614),s=n(42893),c=n(91286),u=n(69503),l=n(68416),d=n(45038),f=n(65937),h=n(21480),p=n(62470),m=n(23212),v=n(16892),g=n(94211),_=n(53763),b=n(20821),y=n(40145),A=n(33415),S=n(37048),E=n(1206),w=n(99087),C=n(26548),T=n(28514),L=n(39477),M=n(25109),k=n(69022),N=n(1361),I=n(1872),O=n(44058),P=n(92755),R=n(10733),D=n(52661),j=n(1086),x=(0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)({},b.n),v.C),y.h),S.I),E.y),w.r),g.q),h.n),M.s),f.Q),p.r),u.u),m.H),_.B),C.o),L.F),T.C),A.H),d.W),l.u),c.e),s.g),k.df),I.T),P.j),window.__MOBILE__?(0,i.Cl)((0,i.Cl)((0,i.Cl)({},O.r),R.gA),{isMemberPhotoGalleryOpened:!1}):{}),{pageData:{isPrefetching:!0},followPage:{header:{header:"",subTitle:"",count:0,descriptionHeader:null,description:null,displayName:""},menu:{header:"",items:[]},usersList:{emptyListTitle:"",emptyListDescription:"",items:[],currentPages:(r={},r[N.M.FOLLOWERS]=1,r[N.M.FOLLOWINGS]=1,r[N.M.PINNED_MODELS]=1,r[N.M.FOLLOW_REQUESTS]=1,r[N.M.MODERATED_CHAT_ROOMS]=1,r[N.M.BANNED_USERS]=1,r[N.M.PINNED_MODELS_MODAL]=1,r),currentPage:1,pagesCount:1},context:{isOwnPage:!1,type:N.M.FOLLOWERS,username:""}},pageNumber:0,isHeartLiveBadge:!1,date:"",scheduleTooltip:{currentTooltip:null,tooltips:[],position:{top:0,left:0}},mobileFilter:{scheme:null,selectedFields:{},submittedFields:{},counters:{}},devlogSettings:{options:{enabled:!0},children:{}},isSPAProcessing:!1,captchaData:null,languageStates:{},isNewChatControlPanelAvailable:!1,ethernetConnection:"online",isInvisibleModeEnabled:!1,tagAlert:null});D.o.isDev&&(x.debug_players=[]);var U=window["___#storeage"]||(window["___#storeage"]=(0,a.y$)(x));t.A=U,D.o.isDev&&(window.defaultStorage=U,(0,j.kz)("Get Application State",(function(){return window.s=U.getState(),console.log("s =",window.s),"Current state is aliased with 's'!"}))),window.StoreSync=new o.A({defaultStore:U,updateDefaultStore:function(e){U.setState(e)}})},44133:function(e,t,n){"use strict";n.d(t,{$:function(){return r}});var r=35},47885:function(e,t,n){"use strict";n.d(t,{DE:function(){return c},Sp:function(){return s},YZ:function(){return a},em:function(){return i},g5:function(){return r},sS:function(){return o}});var r="sprite/bc/chat28.svg",i="/images/".concat(r),o="sprite/bc/mini_profile_lg3.svg",a="sprite/bc/profile_media6.svg",s="sprite/bc/layover4.svg",c="sprite/bc/mobile_profile_media2.svg"},53336:function(e,t,n){"use strict";n.d(t,{CA:function(){return o},Fq:function(){return y},Jp:function(){return i},KI:function(){return a},Kx:function(){return p},MQ:function(){return w},Nr:function(){return l},P1:function(){return C},Q9:function(){return m},TM:function(){return u},ed:function(){return r},iA:function(){return S},jq:function(){return A},jy:function(){return T},kl:function(){return h},lH:function(){return _},mB:function(){return d},nz:function(){return g},s8:function(){return b},xp:function(){return E},xs:function(){return v},yX:function(){return f},z1:function(){return s},zm:function(){return c}});var r="sprite/bc/icon41.svg",i="sprite/bc/ui10.svg",o="sprite/bc/context_menu.svg",a="sprite/bc/security_center.svg",s="sprite/bc/membership1.svg",c="sprite/bc/mobile28.svg",u="sprite/bc/listing3.svg",l="sprite/bc/im13.svg",d="sprite/bc/flags_3x2_round_border.svg",f="im_gradient",h="mobile_advantages_auth_popup",p="model_actions",m="rating",v="sprite/bc/arial_numbers.svg",g="sprite/bc/mobile_video_player.svg",_="sprite/bc/membership_default_v2.svg",b="sprite/bc/text_badge1.svg",y="sprite/bc/text_badge_mobile1.svg",A="sprite/bc/fan_boost_popup.svg",S="sprite/bc/mobile_fan_boost_popup.svg",E="sprite/bc/login_popup.svg",w="sprite/bc/btn_action4.svg",C="sprite/bc/online_status.svg",T="sprite/bc/follower3.svg"},5117:function(e,t,n){"use strict";n.d(t,{z:function(){return r}});var r="sprite/bc/layout5.svg"},99341:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var r=n(95152),i=n(74213),o=(n(26616),function(){function e(){}return e.onSend=function(e){var t,n=this;e&&["public","public-chat"].includes(e)&&chat&&chat.userData&&chat.userData.role&&"member"===chat.userData.role&&!chat.userData.isPerformer&&(this.pendingMessages.push(setTimeout((function(){n.pendingMessages.shift()}),2e3)),null===(t=this._debug)||void 0===t||t.onSendSuccess())},e.onReceive=function(e){var t,n,i;if(!(null===(t=null===chat||void 0===chat?void 0:chat.userData)||void 0===t?void 0:t.isPerformer))if(e&&e.body&&e.body.author){if("public-chat"===e.body.type&&"member"===e.body.author.role)if(this.pendingMessages.length){null===(i=this._debug)||void 0===i||i.onReceiveSuccess();var o=this.pendingMessages.shift();clearTimeout(o),!e.body.author.isMuted&&e.body.message&&this.track(e.body.cyr,!(0,r.z)(e.body.message))}else null===(n=this._debug)||void 0===n||n.onReceiveFailed()}else console.error("< [LatinMessageStats] incorrect message data",{msg:e})},e.track=function(e,t){var n;null===(n=this._debug)||void 0===n||n.onTrack(),i.M.reportEvent(53,"click",void 0,void 0,t?[339]:void 0,e?[43]:void 0)},e.pendingMessages=[],e._debug=void 0,e}())},74213:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r,i=n(15215),o=n(19826);!function(e){e[e.DESKTOP=1]="DESKTOP",e[e.MOBILE=2]="MOBILE",e[e.MAPP=3]="MAPP"}(r||(r={}));var a=n(13907),s=n(12957),c=n(4645),u=n(41669),l=function(){function e(){}return Object.defineProperty(e,"_configMap",{get:function(){return o.A.getState().ABTests||{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"_statsSource",{get:function(){var e=o.A.getState(),t=e.isMobile;return e.isMobileApp?r.MAPP:t?r.MOBILE:r.DESKTOP},enumerable:!1,configurable:!0}),e.safeBuildReportData=function(e){for(var t,n,r=Array.isArray(e)?e:[e],i=this._statsSource,o=[],a=0,s=r;a1},e.isCurrentVersion=function(e){return this.getTestVersion(e)<2},e.isEnabled=function(e){return this.getTestVersion(e)>0},e.isSomeEnabled=function(e){var t=this,n=o.A.getState();return e.filter((function(e){var t=e.validation;return!t||t(n)})).some((function(e){var n=e.id;return t.isEnabled(n)}))},e.isVersion=function(e,t){return void 0===t&&(t=[]),t.includes(this.getTestVersion(e))},e.reportEvent=function(e,t,n,r,i,o){if(void 0===t&&(t="click"),t&&e){var a=[],c=this._statsSource;(0,s.loopv)(this._configMap,(function(s,u){if(s&&"number"!=typeof s){var l=+u,d=s.events,f=s.sources;if((!i||!i.includes(l))&&d&&d.includes(e)&&f&&f.includes(c)){var h={eo:e};void 0!==(null==n?void 0:n.value)&&(h.value=n.value),void 0!==(null==n?void 0:n.se)&&(h.se=n.se),a.push({id:l,event:t,extraFields:h,tags:o,once:r})}}})),a.length&&this.report(a)}},e.hasEvent=function(e){if(!e)return!1;var t=this._statsSource;return Object.values(this._configMap).some((function(n){if(!n||"number"==typeof n)return!1;var r=n.events,i=n.sources;return r.includes(e)&&i.includes(t)}))},e.reported={},e}()},91131:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});n(43674);var r=__("Some error occurred. Please try again later.")},97050:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r,i=n(16409),o=n(91131),a=((r={})[i.Lg.UNEXPECTED]=o.R,r)},46059:function(e,t,n){"use strict";n.d(t,{Bz:function(){return c},Rb:function(){return u},u1:function(){return l}});var r=n(15215),i=n(16409),o=n(4645),a=n(91131),s=n(97050),c=function(e){var t;return(0,r.Cl)((0,r.Cl)({isWithCsrf:!0},e),{headers:(0,r.Cl)({},(null===(t=null==e?void 0:e.isWithCsrf)||void 0===t||t)&&{"X-CSRF-TOKEN":(0,o.m)()._csrf_token})})},u=function(e,t){if(e){var n=e.detail,r=e.type;return r&&r in s.h?(i.Lg.UNEXPECTED,{global:[s.h[r]||a.R]}):n||{global:[a.R]}}},l=function(e){var t;if(e){var n=e.detail,r=e.type;return r&&r in s.h?s.h[r]||a.R:(null===(t=null==n?void 0:n.global)||void 0===t?void 0:t[0])||a.R}}},33743:function(e,t,n){"use strict";n.d(t,{g:function(){return c}});var r=n(17402),i=n(71227),o=n(13907),a=n(35172),s=n(46059),c=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n={});var c=(0,r.useMemo)((function(){return(0,a.oW)(e)?e:(0,o.ip)(e)}),[e]),u=(0,r.useMemo)((function(){return(0,s.Bz)(t)}),[t]);return(0,i.j)(c,u,n)}},42399:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var r=n(15215),i=n(13907),o=n(16409),a=n(35172),s=n(46059),c=function(e){for(var t=[],n=1;n>>0;--v>=0;m=(0,c.e8)(Math.random().toString(36)))u[(0,c.e8)(u[v&&m||l]=(0,c.e8)(Math.random().toString(36)))]=(0,c.e8)(Math.random().toString(36))+p()+(0,c.e8)(Math.random().toString(36));var g=function(){return null!=r?r:function(){var e,t=/(?:^|; )([a-z]{1,3}\d{1,4}[a-z]{2,5}\d[a-z])=([^;]*)/g.exec(document.cookie),n=t&&t[1]||"",o=t&&decodeURIComponent(t[2]);if(!o||o.length<5){n=p(),o=Math.abs((0,c.k4)((0,s.c0)(u.navigator.userAgent))).toString();var d=new Date;d.setTime(d.getTime()+31536e6),document.cookie="".concat(n,"=").concat(encodeURIComponent(o),"; domain=").concat((0,a.getRealDomain)(),"; path=/; expires=").concat(d.toUTCString(),";")}return u[(0,c.e8)(u[l]=(0,c.e8)(Math.random().toString(36)))]=(e=(0,c.e8)(n+Math.random().toString(36))+n+(0,c.e8)(n+" "+o),(0,i.Ti)(e,(0,i.bn)(e))),r=(0,s.c0)("".concat(o))}()}},41785:function(e,t,n){"use strict";n.d(t,{E:function(){return r.E}});var r=n(14812)},6532:function(e,t,n){"use strict";function r(e,t){if(void 0===t&&(t="[Assertion]"),!e)throw new Error(t)}n.d(t,{v:function(){return r}})},27259:function(e,t,n){"use strict";function r(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),!!(e&t)}function i(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),r(e,t)?e:e+t}function o(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),r(e,t)?e-t:e}n.d(t,{Cr:function(){return o},Lt:function(){return r},lA:function(){return i}})},3033:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});var r=function(){function e(){}return e.customProperties=function(){return"undefined"!=typeof CSS&&CSS.supports("--color: #fff")},e}()},18392:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r={html5_validation:function(){return"function"==typeof document.createElement("input").checkValidity},pwa_standalone:function(){return Boolean(window.matchMedia("(display-mode: standalone)").matches||navigator.standalone)}},i={},o=function(e){return e in i?i[e]:i[e]=e in r&&r[e]()},a=function(){return o("pwa_standalone")}},25854:function(e,t,n){"use strict";n.d(t,{E:function(){return r},w:function(){return i}});var r=!0,i="32248321b541468ab489b6398ab84e2c"},84040:function(e,t,n){"use strict";n.d(t,{l:function(){return a}});var r=n(70901),i=n(25854),o="";function a(){if(!o){var e=Array.prototype.slice.call(document.querySelectorAll("*[id]")).filter((function(e){return 40===e.id.length&&e.id===(0,r.e8)((0,r.e8)(e.className)+i.w)})).map((function(e){return e.className}));e.length,0,o=e[0]}return o}},52529:function(){"use strict";var e=globalThis.history.replaceState,t=globalThis.history.pushState;globalThis.history.pushState=function(){for(var e=[],n=0;n ".concat(e),{get:function(){var e,n=t()||"Action executed!";return e=Object.keys(r).filter((function(e){return e.startsWith("|")})).map((function(e){var t=[e,r[e]];return delete r[e],t})),r[":"]="=== 👾 Debug Wizard 🧙🏼 ===",console.log(r),r[":"]="Click (...) to cast ✨:",Object.assign(r,Object.fromEntries(e)),n},configurable:!0,enumerable:!0}):(n["| ".concat(e)]=Object.create(null),Object.entries(t).forEach((function(t){i(t[0],t[1],n["| ".concat(e)])})))}},18537:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var r=["log","info","warn","error"]},59914:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var r={color:null,prefix:"<",postfix:"---",name:null}},6814:function(e,t,n){"use strict";n.d(t,{C:function(){return o}});var r=n(15215),i=n(59914),o=function(e,t){void 0===t&&(t={});var n=(0,r.Cl)((0,r.Cl)({},i.V),t),o=n.color,a=n.name,s=n.postfix,c=[n.prefix,a,e.length>0&&s].filter(Boolean).join(" "),u=[o?"color: ".concat(o):null];return u.length?(0,r.fX)(["%c".concat(c),u.join(";")],e,!0):(0,r.fX)([c],e,!0)}},11542:function(e,t,n){"use strict";n.d(t,{M:function(){return u}});var r=n(15215),i=n(18537),o=n(6814),a=n(7351),s=n(22706),c=n(73424),u=function(){function e(){var e=this;this._history=[],this._isColorfulAvailable=Boolean(s.BrowserDetect.isChrome()),this.execute=function(t,n,a){var s;e.isNodeInitialized(n)||e.updateNodeOptions(n,a);var c=n.split(/\s+/g).filter(Boolean),u=e.compileNodeOptions(c),l=(0,r.Cl)((0,r.Cl)({},a),u),d=l.enabled,f=l.force,h=l.level,p=void 0===h?i.v[0]:h;if(e._history.push(((s={})["".concat(n," [").concat(p,"]")]=t,s)),window.console&&(f||!1!==d)){var m=(0,o.C)(t,{color:e.getLogColor(c),name:c.join(" ")});(window.console[p]||window.console.log).apply(window,m)}},this.updateNodeOptions=function(t,n,i){var o;void 0===t&&(t=[]),void 0===n&&(n={}),void 0===i&&(i=!1);var a=null===(o=e.getStoredSettings)||void 0===o?void 0:o.call(e);if(a){var s=Array.isArray(t)?t:t.split(/\s+/g).filter(Boolean),u=i,l=function(t,i,o){void 0===t&&(t=e.defaultDevlogSetting),void 0===o&&(o=0);var a=i[0];if(0===i.length)return u||(u=!(0,c.b)(t.options,n)),t.options=(0,r.Cl)((0,r.Cl)({},t.options),n),void(o<1&&!t.options.enabled&&(t.options.enabled=!1));t.children||(t.children={}),t.children[a]||(t.children[a]=e.defaultDevlogSetting,o<1&&(t.children[a].options.enabled=!1),u=!0),l(t.children[a],i.slice(1),o+1)};l(a,s),u&&e.onSettingsChange&&e.onSettingsChange(a)}},this.removeNode=function(t){var n;void 0===t&&(t=[]);var r=null===(n=e.getStoredSettings)||void 0===n?void 0:n.call(e);if(r){var i=r;e.mapChildren(t,(function(e,t,n){n?(null==i?void 0:i.children)&&delete i.children[e]:i=t})),e.onSettingsChange&&e.onSettingsChange(r)}},this.compileNodeOptions=function(t){var n;void 0===t&&(t=[]);var i=null===(n=e.getStoredSettings)||void 0===n?void 0:n.call(e);if(!i)return{};var o=i.options;return e.mapChildren(t,(function(e,t,n){var i=(t||{}).options,a=void 0===i?{}:i;o=(0,r.Cl)((0,r.Cl)({},a),{enabled:"error"===a.level||"info"===a.level&&a.enabled&&n||!1!==o.enabled&&a.enabled})})),o},this.isNodeInitialized=function(t){return void 0===t&&(t=[]),e.mapChildren(t)},this.getLogColor=function(t){if(e._isColorfulAvailable)return t.slice(1,-1).includes("render")?"#a803ff":t.slice(1,-1).includes("Action")?"#007fff":t.includes("SPA")?"#ff5c7a":t.includes("ListingFilter")?"#ffc319":void 0},this.mapChildren=function(t,n){var r,i;void 0===t&&(t=[]);for(var o=Array.isArray(t)?t:t.split(/\s+/g).filter(Boolean),a=null===(r=e.getStoredSettings)||void 0===r?void 0:r.call(e),s=0,c=o;s=0},e}()},6683:function(e,t,n){"use strict";var r;n.d(t,{O:function(){return r}}),function(e){e.SUCCESS="success",e.ERROR="error",e.FAIL="fail",e.CANCEL="cancel",e.REDIRECT="redirect"}(r||(r={}))},97868:function(e,t,n){"use strict";n(4645),n(41669)},48451:function(e,t,n){"use strict";n.d(t,{g:function(){return a}});var r=n(15215),i=n(54022),o=n(4645);function a(e,t){void 0===t&&(t={});var n=(0,o.m)()._csrf_token;return t.method=t.method||"GET",t.headers=(0,r.Cl)((0,r.Cl)({},t.headers),{"X-CSRF-TOKEN":n,"Content-Type":"application/json"}),(0,i.AT)(e,t)}},46613:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(15215),i=n(96998),o=n(28812),a=n(6683);function s(e){return(0,r.sH)(this,arguments,void 0,(function(e,t){var n,s,c,u,l,d,f;return void 0===t&&(t={}),(0,r.YH)(this,(function(h){switch(h.label){case 0:if(t=(0,r.Cl)({method:"GET",body:null,forceRequest:!1,defaultErrors:{global:[i.Rb]}},t),n=200,s={status:a.O.FAIL},"GET"===t.method.toUpperCase()&&!t.forceRequest&&(l=document.querySelector('[data-api="'.concat(e,'"]'))))return c=(0,o.json_parse)(l.innerText),l.remove(),c||(u=t.defaultErrors),[2,{status:a.O.SUCCESS,data:c,errors:u}];"POST"!==t.method.toUpperCase()&&t.body&&(t.body=null),h.label=1;case 1:return h.trys.push([1,10,,11]),[4,fetch(e,{method:t.method,headers:(0,r.Cl)({"X-Requested-With":"XMLHttpRequest"},null==t?void 0:t.headers),body:t.body,signal:null===(f=t.abortController)||void 0===f?void 0:f.signal}).then((function(e){var t=e.headers.get("content-type");return t&&t.includes("application/json")?(n=e.status,e.json()):e.text()}))];case 2:switch(s=h.sent(),n){case 301:case 302:return[3,3];case 200:case 400:return[3,5];case 404:case 500:return[3,8]}return[3,8];case 3:return[4,new Promise((function(){location.assign(s.data.location)}))];case 4:return h.sent(),[3,9];case 5:return c=s.data||s.result||s,s.status===a.O.REDIRECT&&"location"in(c||{})?[4,new Promise((function(){location.assign(s.data.location)}))]:[3,7];case 6:return h.sent(),[3,9];case 7:return s.status=200===n?a.O.SUCCESS:a.O.ERROR,u=s.errors,s.result,[3,9];case 8:return s.status=a.O.ERROR,u=s.errors||t.defaultErrors,[3,9];case 9:return[3,11];case 10:return"AbortError"===(null==(d=h.sent())?void 0:d.name)&&(s.status=a.O.CANCEL),u=t.defaultErrors,[3,11];case 11:return[2,(0,r.Cl)((0,r.Cl)({},s),{data:c,errors:u})]}}))}))}},54022:function(e,t,n){"use strict";n.d(t,{AT:function(){return r.A},O6:function(){return o.O},gQ:function(){return i.g}});n(97868);var r=n(46613),i=n(48451),o=n(6683)},12903:function(e,t,n){"use strict";n.d(t,{P_:function(){return f},fw:function(){return l},jr:function(){return u},l:function(){return c},tf:function(){return s}});var r=n(15215),i=n(80554),o=n(12957),a={required:function(e){var t=e.value,n=!1;return Array.isArray(t)?t.forEach((function(e){n=!!("string"==typeof e?e.trim():e)||n})):n=!!("string"==typeof t?t.trim():t),n?null:__("Required")},minLength:function(e,t){var n=e.value;return Array.isArray(n)?n.lengtht?__("form.error.values_len_less",{len:t}):null:"string"==typeof n&&n.length>t?__("form.error.symbols_len_less",{len:t}):null},maxValue:function(e,t){var n=e.value;return""===n?null:+n>t?__("form.error.max_value",{max:t}):null},minValue:function(e,t){var n=e.value;return""===n?null:+n"})}return(0,o.loopv)(t,(function(t,n){if(-1===["status","global","message","msg","thresholdName","thresholdValue"].indexOf(n)&&e.fields[n]){var r=Array.isArray(e.fields[n]),i="string"!=typeof t;if(r&&i)e.fields[n]=(0,o.loopv)(e.fields[n],(function(e){return t[e.name]&&(e.error="function"==typeof e.errorParser?e.errorParser(t[e.name]):d(t[e.name]),e.sourceError=t[e.name]),e}));else if(!r&&!i){var a=e.fields[n];e.fields[n].error="function"==typeof a.errorParser?a.errorParser(t):d(t),e.fields[n].sourceError=t}}})),e}function d(e){var t,n="";return Array.isArray(e)?1===e.length?n+="".concat(__(e[0])):e.forEach((function(e){n+="".concat(__(e),"
")})):"string"==typeof e?n=__(e):e.message&&(n=e.thresholdName&&e.hasOwnProperty("thresholdValue")?__(e.message,((t={})[e.thresholdName]=e.thresholdValue,t)):__(e.message)),n}function f(e,t,n){var i;return(0,r.Cl)((0,r.Cl)({},e),((i={})[t]=n||"",i))}},86504:function(e,t,n){"use strict";n(41669).jlNamespace={$popupBlock:null,$popupTitle:null,$popupClose:null,$popupContent:null,$contentContainer:null,popupOptions:null,popupAllOptions:null}},27821:function(e,t,n){"use strict";n.d(t,{dS:function(){return i},qu:function(){return o},KA:function(){return s},qp:function(){return y},pI:function(){return S}});var r=n(41669);function i(e){var t=S(r(e));return t.submit(),t}function o(e,t){if(t){var n=e.attr("form_id");for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if("object"==typeof i)o(e,i);else{var a="#".concat(r).concat(n?", #".concat(r,"_").concat(n):"");e.find(".form_errors_in_row").css("display","block"),e.find(a).closest(".form_row").find(".form_errors_in_row").html(i)}}}}var a=n(41669);function s(e,t,n,r,o){var s=!0;return"function"==typeof t?t(a(e),n,r,o):!1!==t&&(s=!1,i(a(e))),s}var c,u,l=n(15215),d=n(19826),f=n(66022),h=n(89289);!function(e){e.RECAPTCHA="recaptcha",e.HCAPTCHA="hcaptcha"}(c||(c={})),function(e){e.RECAPTCHA="recaptcha",e.HCAPTCHA="h-captcha"}(u||(u={}));var p=function(){switch(window.captchaType){case c.RECAPTCHA:return u.RECAPTCHA;case c.HCAPTCHA:return u.HCAPTCHA;default:return u.RECAPTCHA}},m=n(25891),v=n(73458),g=n(30914),_=n(4645),b=n(41669);function y(e,t,n,r,i,a,c){b(e).each((function(e,u){return function(e,t,n,r,i,a,c){var u=this,y=b(e),A=function(e){e.find('button, input[type="submit"], input[type="image"]').removeAttr("disabled"),e.find(".spinner").hide()},S=function(e,t,n){A(y),"function"==typeof i&&i(y,n,t,e)},E=function(e,r){return(0,l.sH)(u,void 0,void 0,(function(){var a;return(0,l.YH)(this,(function(u){switch(u.label){case 0:return a={context:y,data:e,dataType:"json",type:"post",url:y.attr("action")},Array.isArray(e)&&e.length&&"request.udi"===e[0].name?[4,f.LogicLoginForm.requestUDIHash(e[0].value)]:[3,2];case 1:u.sent(),e[0]={name:"udi",value:f.LogicLoginForm.UDI_HASH},a.headers={"X-CSRF-TOKEN":(0,_.m)()._csrf_token},a.contentType="application/json",a.data=JSON.stringify(Object.fromEntries(e.map((function(e){return[e.name,e.value]})))),u.label=2;case 2:return b.ajax((0,l.Cl)((0,l.Cl)({},a),{error:S,success:function(e,a,u){c&&(e=c(e,r));var l=!0;if(e&&e.status){if("simple_error"===e.status){var d='
',f="
";if(e.status="error",e.global&&(e.global=d+__(e.global)+f),e.fields){var h=function(t){if(e.fields.hasOwnProperty(t)){var n="",r=e.fields[t];r instanceof Array?r.forEach((function(e){n+=__(e)})):n=__(r),e.fields[t]=d+n+f}};for(var p in e.fields)h(p)}}"error"===e.status?(e.global&&y.find(".form_data").prepend('
'.concat(e.global,"
")),e.message&&y.find(".form_data").prepend('
'.concat(e.message,"
")),e.captchaError&&y.hasClass("f_join_form_mobile")&&y.find(".form_data").prepend('
'.concat(e.captchaError,"
")),o(y,e.fields),"function"==typeof n&&n(e,a,u)):"success"===e.status?l=s(y,t,e,a,u):"function"==typeof i&&i(y,"Incorrect status",a,u)}else"function"==typeof i&&i(y,"Incorrect data",a,u);if(l){var m="sign_up"===y.attr("data-form-role"),v="success"===a&&"success"===(null==e?void 0:e.status);if(m&&v)return;A(y)}}})),[2]}}))}))},w=function(){var e=a?a(y.serializeArray()):y.serializeArray(),t=(0,v.Px)();E(e,t)},C=function(){if(y.find(".form_errors_row").remove(),y.find(".form_errors_in_row").html(""),y.find('button, input[type="submit"], input[type="image"]').attr("disabled","disabled"),y.find(".spinner").show(),"function"==typeof r){var e=r(y);if(void 0!==e&&!e)return!1}var t=d.A.getState().captchaData.type,n=y.find(".".concat(p(),'[data-size="invisible"]'));return n.length&&(0,g.m)(window,h.e[t])?m._.initInvisibleCaptcha({captchaElementId:n.attr("id"),sitekey:n.data("sitekey"),type:h.e[t],onClose:function(){A(y)},onError:function(){S(null,"abort",m._.ERROR_MESSAGE)},onSuccess:w}):w(),!1};y.off(".submitToRemote").on("submit.submitToRemote",C).attr("onsubmit","return false;").find('button, input[type="submit"], input[type="image"]').removeAttr("disabled").end().find(".spinner").hide()}(u,t,n,r,i,a,c)}))}var A=n(41669);function S(e){return A(e).removeAttr("onsubmit").off(".submitToRemote")}},55716:function(e,t,n){"use strict";var r=n(41669),i=window.history.pushState;window.history.pushState=function(){for(var e,t=[],n=0;n"};window.__=function(e,t){if((0,i.D)())return e;var n=(0,r.Cl)((0,r.Cl)({},a),t);return(0,o.translateString)(e,n)}},12272:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var r=n(15215),i=n(12957),o=n(50172),a=n(17402);n(16008);function s(e,t){return(0,i.loopv)(Array.from(e),(function(e,n,i){var c=e.nodeName.toUpperCase();if("#TEXT"===c)return e.nodeValue;var u={};e.attributes&&Array.from(e.attributes).map((function(e){var n=t[e.value.toLowerCase()],r=e.name;"function"==typeof n&&0===r.indexOf("on")&&(r="on"+r.charAt(2).toUpperCase()+r.slice(3)),u[r]=n||e.value}));var l=s(e.childNodes,t);if(t[c]){var d=t[c];return(0,o.h)(d,(0,r.Cl)({},u),l)}return(0,a.createElement)(c,(0,r.Cl)((0,r.Cl)({},u),{children:l.length?l:null,key:i}))}))}function c(e,t,n){var r=__(e,t);if(!t||!1===n)return r;var i=(new DOMParser).parseFromString(r,"text/html").body,a={};return n&&Object.keys(n).forEach((function(e){var t,r=e.startsWith("object.");t=r||n[e].prototype instanceof o.uA?r?e.toUpperCase():"OBJECT.".concat(e.toUpperCase()):"fn.".concat(e.toLowerCase()),a[t]=n[e]})),(0,o.h)("span",null,s(i.childNodes,a))}window.__=__,window.trans=c},43674:function(e,t,n){"use strict";n.d(t,{p:function(){return r.p}});n(16008);var r=n(12272)},7351:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(41669),i=function(e,t){return void 0===e&&(e=[]),function(t,n){if("function"==typeof n)return"[Function]";if(n instanceof Element)return"[Element]";if(n instanceof RegExp)return String(n);if(n instanceof Error)return'[Error] "'.concat(n.message,'"');if(n===window)return"[Window]";if(n instanceof r)return"[JQuery]";if(n&&"object"==typeof n&&!Array.isArray(n)){if("$$typeof"in n)return"[ReactNode]";if("__v"in n&&"props"in n)return"[JSX_Component]";if(e.includes(n))return"[Circular reference]";e.push(n)}return n}}},81562:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var r=function(e,t){return e&&"object"==typeof e?Array.isArray(e)?JSON.stringify(e):JSON.stringify(e,(function(e,n){if(n&&"object"==typeof n){var r={};for(var i in n)if(n.hasOwnProperty(i)){var o=t[i];o?r[o]=n[i]:r[i]=n[i]}return r}return n})):null}},43284:function(e,t){"use strict";t.A=function(e){return e.filter((function(e){return!!e})).join(" ")||void 0}},98700:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});var r=n(15215),i=!1,o=function(e){return(0,r.sH)(void 0,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){switch(t.label){case 0:return i||(i=!0,Object.defineProperty(window,"_babelPolyfill",{get:function(){},set:function(){}})),[4,Promise.all([n.e(38),n.e(46)]).then(n.t.bind(n,22125,23))];case 1:return t.sent(),e(),[2]}}))}))}},94140:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var r=function(e,t,n){return!(isNaN(e)||isNaN(t)||isNaN(n))&&Math.abs(e-t)<=n}},63366:function(e,t,n){"use strict";n.d(t,{K:function(){return l}});var r=n(9853),i=n(41785);function o(e,t){for(var n=function(n){var r=e.table_len[n],i=Math.floor(t.random()*r),o=0;for(var a in e[n])if(i<(o+=e[n][a]))return a;return"-"},r=n("parts"),i=[],o=0;o";s('.message[data-author="'+c.username+'"] .icons .follower_space').replaceWith(i),r&&(r.addClass("member_friend"),r.find(".td_last .follower_space").replaceWith(i))}else{var o='';s('.message[data-author="'+c.username+'"] .icons .icon_follower').replaceWith(o),r&&(r.removeClass("member_friend"),r.find(".td_last .icon_follower").replaceWith(o))}}));break;case"rm":window.chat&&window.chat.userData.chathost&&t.member&&t.member_name&&(0,i.B)(!1,t.member);break;case"rmu":window.chat&&window.chat.userData.chathost&&t.member&&(0,i.B)(!0,t.member);break;case"ftbcnt":var u=s(".js-bonus_count");u.length&&(0,r.d)(u,t.count);break;case"al":a.A.getState().disableAutoLogout||window.location.reload();break;case"mcm":window.chat&&window.chat.userData.chathost===t.author&&window.chat.service.update();break;case"mmnscn":window.chat&&window.chat.userData.chathost===t.chathost&&chat.service.updateClient(t.json,t.dataKey);break;case"mon":window.chat&&window.chat.userData.chathost===t.chathost&&a.A.action(o.J)({modelOfflineNotificationTtl:t.ttl,modelNextTimeOnline:t.nextTimeOnline})}}},67374:function(e,t,n){"use strict";n.d(t,{I_:function(){return d},qu:function(){return r},bk:function(){return c},xc:function(){return s}});var r={maxDelay:6e5,retries:1/0},i=n(15215),o=n(41669),a=[],s=function(e){o.noticeSocket&&e&&a.indexOf(e)>=0&&(a=a.filter((function(t){return t!==e})),o.noticeSocket.send({data:{data:{model:e},type:2},type:"cms"}))},c=function(e){(0,i.fX)([],a,!0).map((function(e){return s(e)})),function(e){o.noticeSocket&&e&&a.indexOf(e)<0&&(a.push(e),o.noticeSocket.send({data:{data:{model:e},type:1},type:"cms"}))}(e)},u=n(19826),l=n(91414),d=function(){function e(){var t=u.A.getState().isAuthenticated;this.isAuthenticated=t,this.idb=new l.bp(e.dbName)}return e.getInstance=function(){return e.instance||(e.instance=new this),e.instance},e.prototype.isAvailable=function(){return this.idb.isAvailable()},e.prototype.checkAndSaveAllowing=function(e){return(0,i.sH)(this,void 0,void 0,(function(){var t,n,r,o,a;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return this.isAvailable()?(t=this.getUnmuteKey(),[4,this.getData(t)]):[2,!0];case 1:return n=i.sent()||{},r=n[e],(o=!r||Date.now()>=r)?(a=u.A.getState().config,n[e]=Date.now()+(null==a?void 0:a.notificationsMutePeriod),[4,this.setData(t,n)]):[3,3];case 2:i.sent(),i.label=3;case 3:return[2,o]}}))}))},e.prototype.clearNotificationMuteData=function(){return(0,i.sH)(this,void 0,void 0,(function(){var e;return(0,i.YH)(this,(function(t){switch(t.label){case 0:return this.isAvailable()?(e=this.getUnmuteKey(),[4,this.removeData(e)]):[2];case 1:return t.sent(),[2]}}))}))},e.prototype.checkIsAuth=function(){return(0,i.sH)(this,void 0,void 0,(function(){var e;return(0,i.YH)(this,(function(t){switch(t.label){case 0:return[4,this.getData("isAuth")];case 1:return e=t.sent(),!this.isAuthenticated||e?[3,3]:[4,this.setData("isAuth",!0)];case 2:return t.sent(),[3,5];case 3:return this.isAuthenticated||!e?[3,5]:[4,this.removeData("isAuth")];case 4:t.sent(),t.label=5;case 5:return[2]}}))}))},e.prototype.getToken=function(){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,this.getData("token")];case 1:return[2,e.sent()]}}))}))},e.prototype.saveToken=function(e){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(t){switch(t.label){case 0:return[4,this.setData("token",e)];case 1:return t.sent(),[2]}}))}))},e.prototype.removeToken=function(){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,this.removeData("token")];case 1:return e.sent(),[2]}}))}))},e.prototype.updateConfig=function(){return(0,i.sH)(this,void 0,void 0,(function(){var e;return(0,i.YH)(this,(function(t){switch(t.label){case 0:return this.isAvailable()?(e=u.A.getState().config,[4,this.setData("mutePeriod",null==e?void 0:e.notificationsMutePeriod)]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},e.prototype.getData=function(e){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(t){switch(t.label){case 0:return[4,this.idb.open()];case 1:return t.sent(),[4,this.idb.getItem(e)];case 2:return[2,t.sent()]}}))}))},e.prototype.setData=function(e,t){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(n){switch(n.label){case 0:return[4,this.idb.open()];case 1:return n.sent(),[4,this.idb.setItem(e,t)];case 2:return n.sent(),[2]}}))}))},e.prototype.removeData=function(e){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(t){switch(t.label){case 0:return[4,this.idb.open()];case 1:return t.sent(),[4,this.idb.removeItem(e)];case 2:return t.sent(),[2]}}))}))},e.prototype.getUnmuteKey=function(){var t=u.A.getState().user;return"".concat("um_").concat((null==t?void 0:t.username)||e.guestName)},e.dbName="notificationSettings",e.guestName="guest",e}()},1588:function(e,t,n){"use strict";n.d(t,{F:function(){return r}});var r=function(){var e=window["__#c"];if(!e||!Array.isArray(e))return null;var t=e[0],n=e[1],r=Boolean(4096&n),i=Boolean(8192&n),o=Boolean(16384&n),a=Boolean(32768&n),s=Boolean(65536&n);return{skin:String(t),isAuthenticated:r,isModerator:a,isMobile:o,isPromo:s,isDev:i}}},86778:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var r=n(15215),i=n(1588),o=(0,r.Cl)({},(0,i.F)()||{})},52661:function(e,t,n){"use strict";n.d(t,{o:function(){return r.o}});var r=n(86778)},16892:function(e,t,n){"use strict";n.d(t,{C:function(){return r}});var r={skinId:"def",isRunetki:!1,isTukifSkin:!1,isBCM:!1,isWL:!1,isStreamOnly:!1,isLiveStreamPromo:!1,isThirdLevelDomain:!1,isPromo:!1,lspStyle:"",promoHitUrl:"",skinName:"BongaCams",campaignId:"",skinLiveTab:n(23110).n.FEMALE,skinHost:"bongacams.com"}},82267:function(e,t,n){"use strict";n.d(t,{s:function(){return u}});var r=n(15215),i=n(54022),o=n(13907),a=n(19826),s=n(11402),c=n(31313),u=function(){function e(){var e=this;this.mainWsUrl=(0,o.ip)("@ws_notification"),this.callbacks={},this.triggerCallback=function(t){var n;if(t.rid&&(null===(n=e.callbacks)||void 0===n?void 0:n[t.rid])){e.callbacks[t.rid](t);var r=Object.entries(e.callbacks).filter((function(e){return e[0]!==t.rid}));e.callbacks=Object.fromEntries(r)}},this.isOpened=function(){return e.statusCode===c.rQ.OPEN},this.setStatusCode=function(t){e.statusCode=t},this.send=function(t,n){var i=t.id||(0,s.fE)();e.socket.send((0,r.Cl)((0,r.Cl)({},t),{id:i})),"function"==typeof n&&(e.callbacks[i]=n)},this.sendRaw=function(t){e.socket&&e.socket.send(t)},this.subscribe=function(t,n){var r;null===(r=e.socket)||void 0===r||r.on(t,n)},this.reconnectSocketAdapter=function(t,n,s){return(0,r.sH)(e,void 0,void 0,(function(){var e,t,c,u,l,d;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return e=a.A.getState().noticeData,t=e.token,c={token:t},u={method:"POST",body:JSON.stringify(c)},l=(0,o.ip)("@im_reconnect_session"),[4,(0,i.gQ)(l,u)];case 1:return"success"===(d=r.sent().status)?n():s(d),[2]}}))}))};var t=a.A.getState().noticeData;(null==t?void 0:t.token)&&(this.socket=new c.xd(this.mainWsUrl,{reconnect:!0,retries:1/0,plugins:[(0,c.IW)({type:"identify",data:(0,r.Cl)((0,r.Cl)({},t),{is_mobile:1})},(function(e){return"open"===e.type})),c.vJ],maxDelay:6e5,reconnectCallback:this.reconnectSocketAdapter}),this.socket.on(c.oR.ON_MESSAGE,this.triggerCallback),this.socket.on(c.oR.ON_CHANGE_STATUS_CODE,this.setStatusCode),window.addEventListener("beforeunload",this.handleBeforeUnload))}return Object.defineProperty(e,"instance",{get:function(){return this._instance||(this._instance=new e)},enumerable:!1,configurable:!0}),e.prototype.close=function(){this.socket.close()},e.prototype.handleBeforeUnload=function(){this.close()},e}()},42080:function(e,t,n){"use strict";n.d(t,{Y:function(){return i}});var r=n(19826),i=function(e,t){if(!e)throw new Error("[getSafeStorageKey] storageKey required");var n=r.A.getState(),i=n.isThirdLevelDomain,o=n.lang,a=t?"_".concat(t):"";return i?"".concat(e,"_").concat(o).concat(a):"".concat(e).concat(a)}},94193:function(e,t,n){"use strict";n.d(t,{u:function(){return r}});var r=function(){function e(){}return e.init=function(e){var t=e.element,n=e.endOffset,r=e.startOffset,i=e.maxTime,o=e.inEdge,a=e.callback,s=e.timeBeforeStop||i,c=(new Date).getTime(),u=Math.abs(r-n)/i,l=r+(i-s)*u*(r>n?-1:1),d=function(){if(r>n&&ln)return t.style.strokeDashoffset=n.toString(),!1;t.style.strokeDashoffset=l.toString();var e=(new Date).getTime(),i=(e-c)/1e3;c=e,l+=(r>n?-1:1)*(i*u),a&&a(i),requestAnimationFrame(d)};o&&d()},e}()},57610:function(e,t,n){"use strict";n.d(t,{D:function(){return i},l:function(){return o}});var r={second:1e3,minute:6e4,hour:36e5,day:864e5},i=function(){function e(){}return e.convertByTime=function(e,t){return r[t]*e||0},e}(),o=function(){return~~(Date.now()/1e3)}},65306:function(){"use strict";var e=Element.prototype.insertBefore;Element.prototype.insertBefore=function(t,n){if(!n||"font"!==n.localName)return e.apply(this,arguments);t.innerText=n.innerText}},36162:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(15215),i=n(96998),o=function(){function e(){this.token="",this.cache={},this.tokenPromise=null}return e.prototype.renewToken=function(){var e=this;if(this.token)try{if(1e3*(+JSON.parse(atob(this.token.split(".")[1])).exp-60)>Date.now())return Promise.resolve()}catch(e){}return this.tokenPromise||(this.tokenPromise=new Promise((function(t,n){(0,i.mN)(e.jwtApiUrl).then((function(r){var i=r.data;i?e.parseJwtResponse(i,t,n):n()}))})).then((function(){return e.tokenPromise=null}),(function(){return e.tokenPromise=null}))),this.tokenPromise},e.prototype._translate=function(e,t){var n=this,r=t.targetLanguage;return"jw"===t.targetLanguage&&(r="iw"),new Promise((function(t,i){r&&"".concat(e).trim()?n.ajaxImplementation({url:n.translatorApiUrl,dataType:"json",type:"POST",method:"POST",headers:{Authorization:"Bearer ".concat(n.token)},credentials:"omit",contentType:"text/plain; charset=utf-8",data:JSON.stringify({text:e,to:r}),success:function(e){"text"in e?t(e):i()},error:i}):i()}))},e.prototype.clearEmoji=function(e){return e.replace(/(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g,"").trim()},e.prototype.translate=function(e,t){return(0,r.sH)(this,void 0,void 0,(function(){var n;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return this.cache[t.targetLanguage]||(this.cache[t.targetLanguage]={}),this.cache[t.targetLanguage][e]?[2,this.cache[t.targetLanguage][e]]:[4,this.renewToken()];case 1:return r.sent(),[4,this._translate(this.clearEmoji(e),t)];case 2:return n=r.sent(),this.cache[t.targetLanguage][e]=n.text,[2,n.text]}}))}))},e}(),a=n(13907),s=n(41669),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),Object.defineProperty(t,"instance",{get:function(){return this._instance?this._instance:this._instance=new this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"jwtApiUrl",{get:function(){return(0,a.ip)("@api_chat_translator_authorization_token")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"translatorApiUrl",{get:function(){return(0,a.ip)("@api_translator")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ajaxImplementation",{get:function(){return s.ajax},enumerable:!1,configurable:!0}),t.prototype.parseJwtResponse=function(e,t,n){(null==e?void 0:e.token)?(this.token=e.token,t()):n()},t}(o),u=c},84243:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r=n(13907),i=function(e){return(null==e?void 0:e.avatarUrl)?(0,r.ry)((0,r.ip)("@cdn_host")+e.avatarUrl):"/images/spacer.gif"}},34380:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(12957);function i(e,t,n){var i=[];return(0,r.loopv)(t,(function(e,t){e instanceof Array?(0,r.loopv)(e,(function(e){i.push("".concat(encodeURIComponent(t+"[]"),"=").concat(encodeURIComponent(e)))})):null!==e&&i.push("".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e)))})),i.length?e+(n?"&":"?")+i.join("&"):e}},56119:function(e,t,n){"use strict";n.d(t,{J:function(){return a},e:function(){return o}});var r=n(23110),i=n(13907),o=function(e){var t;return e?((t={})[r.n.MY_FRIENDS]="myfriends",t[r.n.NEW_MODELS]="new-models",t[r.n.SPY]="spy-mode",t[r.n.TRANSSEXUAL]="trans",t)[e]||e:""},a=function(e,t){if(!e)return"";if(t&&t===e)return(0,i.ip)("@homepage");var n=o(e);return(0,i.ip)("@live_tab_route?livetab=".concat(n))}},1123:function(e,t,n){"use strict";n.d(t,{$:function(){return a},l:function(){return s}});var r=n(19826),i=n(4312),o=n(63065);function a(e){var t=r.A.getState().urls.pages["@common_profile"];return(0,i.wm)(t,e)}var s=function(e){return e&&e.hasProfile?"/profile/".concat((0,o.o)(e.username)):"about:blank"}},79042:function(e,t,n){"use strict";n.d(t,{k:function(){return o}});var r=n(19826),i=n(53628),o=function(e){var t=r.A.getState().urls;return-1!==e.indexOf("//")?e:(0,i.I)(t,e)}},66445:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r,i=n(19826);function o(e){return void 0===r&&(r=i.A.getState().specialAvatarsDir||null),e&&r&&!e.includes(r)?e.replace("/avatars/","/avatars/special/".concat(r,"/")):e}},63281:function(e,t,n){"use strict";function r(e){if(void 0!==e){if("function"==typeof URLSearchParams){var t=window.location,n=t.href,r=t.search;if(-1!==n.indexOf("?")&&0===(null==r?void 0:r.length))return;var i=new URLSearchParams(r);return i.has(e)?i.get(e):void 0}var o=window.location.href,a=new RegExp(/\?(.+)/),s=-1!==o.indexOf("?")&&o.split(a).length>1?o.split(a)[1]:"";if(""!==s)for(var c=s.split("&"),u=c.length;--u>=0;){var l=c[u].split("="),d=l[0],f=l[1];if(decodeURI(d)===e||""===d)return f}}}n.d(t,{L:function(){return r}})},53628:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});var r=function(e,t){var n=null,i=t.split("#"),o=i[0],a=i[1],s=o.split("?"),c=s[0],u=s[1];for(var l in e)if(e.hasOwnProperty(l)&&(l===c?n=e[l]:"object"==typeof e[l]&&(n=r(e[l],c)),n))break;n&&u&&u.split("&").forEach((function(e){if(-1!==e.indexOf("=")){var t=e.split("="),r=t[0],i=t[1];n=n.replace(new RegExp(":(".concat(r,")"),"g"),i)}}));return a?"".concat(n,"#").concat(a):n}},94020:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});var r=n(13907),i=function(e,t){return void 0===t&&(t=!1),-1!==e.indexOf("//")?e:"".concat((0,r.ip)("@cdn_host")).concat(t?"/":"/images/").concat(e)}},10694:function(e,t,n){"use strict";n.d(t,{E:function(){return r}});var r=function(e){return window.location.hash===e}},29405:function(e,t,n){"use strict";n.d(t,{X:function(){return i},l:function(){return r}});var r=function(e){return"/"+e.replace(window.location.origin,"").replace("frontend_dev.php","").replace(/\/+/g,"/").replace(/^\/|\/$/g,"")},i=function(e,t){return r(e)===r(t)}},13053:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(64254);function i(e){if(void 0!==e)if("function"!=typeof URLSearchParams){var t=window.location.href,n=new RegExp(/\?(.+)/),i=-1!==t.indexOf("?")&&t.split(n).length>1?t.split(n)[1]:"";if(""!==i){for(var o=t.split("?")[0],a=i.split("&"),s=a.length;--s>=0;){var c=a[s].split("=")[0];decodeURI(c)!==e&&""!==c||a.splice(s,1)}a.length&&(o="".concat(o,"?").concat(a.join("&"))),t!==o&&(0,r.G$)({},document.title,o,!1)}}else{var u=window.location,l=u.href,d=u.search;if(-1!==l.indexOf("?")&&0===(null==d?void 0:d.length))return;var f=new URLSearchParams(d);if(!f.has(e))return;f.delete(e);var h=f.toString(),p=l.split("?")[0]+(h.length?"?".concat(h):"");(0,r.G$)({},document.title,p,!1)}}},4312:function(e,t,n){"use strict";n.d(t,{Rs:function(){return s},S1:function(){return c},Vs:function(){return l},eS:function(){return a},wm:function(){return u}});var r=n(19826),i=n(13907),o=n(12957);function a(e){void 0===e&&(e="");var t=e?e.split("?")[1]:window.location.search.slice(1),n={};if(t)for(var r=(t=t.split("#")[0]).split("&"),i=0;i32)}},79098:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=/^[-\w\d]+$/,i=function(e){var t=e;if("number"==typeof t&&(t=String(t)),"string"!=typeof t)return!1;var n=t.trim();return!(n.length<3||n.length>32)&&r.test(t)}},1887:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});var r=n(7243),i=function(e){var t=Math.min(screen.width-100,1357),n=screen.height-160;(0,r.z)(e,{height:n,width:t,left:0,top:0,windowName:e},{})}},62484:function(e,t,n){"use strict";function r(){var e=window.getSelection();e.isCollapsed||(e.empty?e.empty():e.removeAllRanges&&e.removeAllRanges())}n.d(t,{R:function(){return r}})},7243:function(e,t,n){"use strict";n.d(t,{D:function(){return l},z:function(){return u}});var r=n(15215),i=n(22706),o={width:"800",height:"600",top:"0",left:"0",directories:"no",location:"no",resizable:"yes",menubar:"no",toolbar:"no",scrollbars:"yes",status:"no"},a={autoFocus:!0},s={},c={};function u(e,t,n){t=(0,r.Cl)((0,r.Cl)({},o),t),n=(0,r.Cl)((0,r.Cl)({},a),n);var u=t.windowName||"new"+(new Date).getTime(),l=t.onClose||null,d="";for(var f in t)t.hasOwnProperty(f)&&(d+=""===d?"":",",d+=f+"=",!0===t[f]||!1===t[f]?d+=t[f]?"yes":"no":d+=t[f]);if(!s[u]||s[u].closed){if(s[u]=window.open(e,u,d),"function"==typeof l){var h=function(){var t=!0,n=0,o=function(){t=!1},a=function(){if(!t){var n={};s[u]&&"object"==typeof s[u].window&&!s[u].closed&&s[u].window.hasOwnProperty("$")?n=(0,r.Cl)({},s[u].window.$.windowJsVars):c[u]&&(n=c[u]),setTimeout((function(){var t="";try{t=s[u].location.href}catch(e){}s[u]&&!s[u].closed&&t&&h(),s[u]&&s[u].closed&&l(e,u,n)}),200)}},d=s[u];i.BrowserDetect.isIE11()?(o(),n=window.setInterval((function(){!d&&d.closed||d&&"object"==typeof d.window&&"function"==typeof d.window.hasOwnProperty&&d.window.hasOwnProperty("$")&&!c[u]&&(c[u]=(0,r.Cl)({},s[u].window.$.windowJsVars)),("object"!=typeof d.window||d.closed)&&(window.clearInterval(n),a())}),500)):(d.addEventListener("load",o,!1),d.addEventListener("unload",a,!1))};h()}}else n.autoFocus&&s[u].focus();return s[u]}function l(e){return!!s[e]&&(s[e].close(),!0)}},9834:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(15215),i=function(){function e(){}return e.prototype.getSnapshot=function(){return{}},e.prototype.get=function(e){return this.getSnapshot()[e]},e.prototype.has=function(e){var t=this.getSnapshot();return Boolean(t[e])},e.prototype.set=function(e,t){var n=this.getSnapshot();return n[e]=t,n},e.prototype.delete=function(e){var t=this.getSnapshot();return e&&e in t&&delete t[e],t},e.prototype.clear=function(){var e=this.getSnapshot();for(var t in e)this.delete(t)},e}(),o=n(28812),a=function(e){function t(t){var n=this;if(!t||"string"!=typeof t)throw new Error("BrowserStorage. Invalid storage id");return(n=e.call(this)||this)._storageId=t,n}return(0,r.C6)(t,e),t.prototype.getSnapshot=function(){var e=this.getStorage();return(0,o.json_parse)(e.getItem(this._storageId))||{}},t.prototype.set=function(t,n){var r=e.prototype.set.call(this,t,n);if(r)return this.saveData(r),r},t.prototype.delete=function(t){var n=e.prototype.delete.call(this,t);if(n)return this.saveData(n),n},t.prototype.clear=function(){this.getStorage().removeItem(this._storageId)},t.prototype.getStorage=function(){return null},t.prototype.saveData=function(e){var t=this.getStorage();e&&Object.keys(e).length?t.setItem(this._storageId,JSON.stringify(e)):t.removeItem(this._storageId)},t}(i),s=function(e){function t(t){return e.call(this,t)||this}return(0,r.C6)(t,e),t.prototype.getStorage=function(){return window.localStorage},t}(a),c=n(70980),u=function(e){function t(t){if(!(0,c.isSessionStorageAvailable)())throw new Error("SessionStorage is not available");return e.call(this,t)||this}return(0,r.C6)(t,e),t.prototype.getStorage=function(){return window.sessionStorage},t}(a),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._storage={},t}return(0,r.C6)(t,e),t.prototype.getSnapshot=function(){return this._storage},t}(i),d=n(70901),f={seconds:1e3,minutes:6e4,hours:36e5},h={local:function(e){return new s(e)},session:function(e){return new u(e)},heap:function(){return new l}},p=function(){function e(e){var t;void 0===e&&(e={}),this.isAvailable=!1,e=(0,r.Cl)((0,r.Cl)({expireBy:"hours",storageType:"heap"},e),{expire:Math.max(1,e.expire||0)});try{this.cacheStorage=null===(t=h[e.storageType])||void 0===t?void 0:t.call(this,e.storageId)}catch(t){0,"heap"!==e.storageType&&(this.cacheStorage=new l,e=(0,r.Cl)((0,r.Cl)({},e),{storageType:"heap"}))}this.settings=e,this.cacheStorage&&(this.isAvailable=!0,this.refresh())}return Object.defineProperty(e.prototype,"_storage",{get:function(){return this.cacheStorage},enumerable:!1,configurable:!0}),e.hashSelector=function(e){var t;return"string"==typeof e?t=e:Array.isArray(e)&&(t=e.join("")),(0,d.e8)(t)},e.getExpireTimestamp=function(e,t){return f[t]*e||0},e.prototype.set=function(t,n){if(this.isAvailable){var r=Date.now()+e.getExpireTimestamp(this.settings.expire,this.settings.expireBy);this.cacheStorage.set(t,{data:n,expire:r})}},e.prototype.get=function(e){if(this.isAvailable){var t=this.cacheStorage.get(e)||{},n=t.data,r=t.expire;if(n)return Date.now()>r?(this.cacheStorage.delete(e),null):n}},e.prototype.clear=function(){this.isAvailable&&this.cacheStorage.clear()},e.prototype.refresh=function(){if(this.isAvailable){var e=this.cacheStorage.getSnapshot();for(var t in e){var n=e[t];n&&Date.now()>n.expire&&this.cacheStorage.delete(t)}if(this.settings.initialStorageData)for(var t in this.settings.initialStorageData){var r=this.settings.initialStorageData[t];this.set(t,r)}}},e}()},98768:function(e,t,n){"use strict";var r;n.d(t,{FD:function(){return r},zK:function(){return d},eT:function(){return l},Rf:function(){return h}}),function(e){e[e.IDLE=0]="IDLE",e[e.PENDING=1]="PENDING",e[e.PLAY=2]="PLAY",e[e.DONE=3]="DONE"}(r||(r={}));var i=n(17402),o=n(18697),a=n(26616),s=n(15215),c=null,u={},l=function(e){var t=e||{},r=t.path,o=t.isAutoPlay,l=void 0!==o&&o,d=t.isDataPreloadRequired,f=void 0===d||d,h=(0,i.useState)(window.lottie),p=h[0],m=h[1],v=(0,i.useState)(!1),g=v[0],_=v[1],b=(0,i.useState)(null),y=b[0],A=b[1],S=(0,i.useRef)(null),E=Boolean(p),w=(0,i.useCallback)((function(e){var t;if(p&&e){null===(t=S.current)||void 0===t||t.destroy();var n=p.loadAnimation((0,s.Cl)({path:r,renderer:"svg"},e));n.addEventListener("data_ready",(function(){_(!0)})),n.addEventListener("data_failed ",(function(){0})),S.current=n,A(n)}}),[p,r]);return(0,i.useEffect)((function(){var e=!0;return E||(0,s.sH)(void 0,void 0,void 0,(function(){return(0,s.YH)(this,(function(e){switch(e.label){case 0:return window.lottie?[2]:c?[3,2]:[4,(c=Promise.all([n.e(38),n.e(164)]).then(n.t.bind(n,49354,23)).then(a.noop)).catch((function(e){return!1}))];case 1:return e.sent(),c=null,[3,4];case 2:return[4,c];case 3:e.sent(),e.label=4;case 4:return[2]}}))})).then((function(){e&&m(window.lottie)})),function(){e=!1}}),[E]),(0,i.useEffect)((function(){f&&r&&!u[r]&&(u[r]=!0,fetch(r))}),[f,r]),(0,i.useLayoutEffect)((function(){return g&&l&&y&&y.play(),function(){y&&y.stop()}}),[g,y,l]),{animInstance:y,isInitialized:E,isLoaded:g,loadAnimation:w}},d=function(e){var t=e.path,n=e.isAutoPlay,r=void 0!==n&&n,s=e.isDataPreloadRequired,c=void 0===s||s,u=e.isLoop,d=void 0!==u&&u,f=e.isPlaying,h=e.onAnimationEnd,p=void 0===h?a.noop:h,m=e.onAnimationReady,v=void 0===m?a.noop:m,g=(0,i.useRef)(null),_=l({path:t,isAutoPlay:r,isDataPreloadRequired:c}),b=_.animInstance,y=_.isInitialized,A=_.isLoaded,S=_.loadAnimation;return(0,i.useEffect)((function(){y&&((0,o._b)("LottieAnimation ".concat(t," loadAnimation")).log(g.current),S({container:g.current,loop:d}))}),[t,S,y,d]),(0,i.useEffect)((function(){A&&v()}),[A,v]),(0,i.useEffect)((function(){if(f&&b)return b.addEventListener("complete",p),function(){return b.removeEventListener("complete",p)}}),[b,f,p]),(0,i.useMemo)((function(){f&&b&&((0,o._b)("LottieAnimation ".concat(t," play")).log(),b.goToAndPlay(0,!0))}),[t,b,f]),{animationContainerRef:g}},f=n(38588),h=function(e){var t=e.logGroup,n=void 0===t?"button":t,a=e.isAvailable,s=void 0===a||a,c=(0,i.useState)(r.IDLE),u=c[0],l=c[1],d=(0,i.useState)(!1),h=d[0],p=d[1],m=(0,i.useState)(!1),v=m[0],g=m[1],_=(0,i.useRef)(!1),b=[r.PLAY,r.DONE].includes(u),y=[r.PENDING].includes(u),A=b||y&&v,S=!A&&s,E=(0,i.useCallback)((function(){(0,o._b)("LottieAnimation ".concat(n," prepareAnimation")).log(),l((function(e){return e===r.IDLE?r.PENDING:e}))}),[n]),w=(0,i.useCallback)((function(){g(!0),_.current=!0,(0,o._b)("LottieAnimation ".concat(n," startAnimation")).log(),l((function(e){return h?[r.IDLE,r.PENDING].includes(e)?r.PLAY:e:e===r.IDLE?r.PENDING:e}))}),[h,n]),C=(0,i.useCallback)((function(){g(!1),_.current=!1,(0,o._b)("LottieAnimation ".concat(n," resetAnimation")).log(),l(r.IDLE)}),[n]),T=(0,i.useCallback)((function(){(0,o._b)("LottieAnimation ".concat(n," onAnimationReady")).log(),p(!0),l((function(e){return e===r.PENDING?r.PLAY:e}))}),[n]),L=(0,i.useCallback)((function(){(0,o._b)("LottieAnimation ".concat(n," onAnimationEnd")).log(),l((function(e){return e===r.PLAY?_.current?r.DONE:r.IDLE:e}))}),[n]),M=(0,i.useCallback)((function(e){void 0===e&&(e=!0),e?setTimeout((function(){g(!1),_.current=!1,(0,o._b)("LottieAnimation ".concat(n," onRequestEnd")).log(),l((function(e){return e===r.DONE?r.IDLE:e}))}),300):(g(!1),_.current=!1,(0,o._b)("LottieAnimation ".concat(n," onRequestEnd")).log(),l(r.IDLE))}),[n]);return(0,f.A)((function(){l((function(e){return e===r.DONE?r.IDLE:e}))}),[v]),{isAnimating:A,isAnimatingAvailable:S,isPlaying:b,prepareAnimation:E,resetAnimation:C,startAnimation:w,onAnimationEnd:L,onAnimationReady:T,onRequestEnd:M}}},61021:function(e,t,n){"use strict";n.d(t,{L:function(){return a},w:function(){return s}});var r=n(17402),i=n(18697),o=n(8252),a="JSX",s=function(){function e(){}var t;return t=e,e._isStylesInitialized=!1,e.createRoot=function(e){t._initStyles();var n=document.createElement(a);return{component:(0,r.render)(e,n),element:n}},e.renderNode=function(e,n){var a;if(!n)return{component:void 0,element:void 0,parent:void 0};if(n===document.body){var s=t._append(e,n);return{component:(null==s?void 0:s.component)||void 0,element:null===(a=null==s?void 0:s.element)||void 0===a?void 0:a.firstElementChild,parent:n}}var c=(0,r.render)(e,n)||void 0,u=c&&(0,o.U)(c,"base")?c.base:void 0;return(0,i._b)("JSX renderNode").warn({component:c,element:u}),{component:c,element:u,parent:n}},e.renderToString=function(e){if(e){var n=t.createRoot(e),r=n.element.innerHTML.replace(/NS\d+:href/gi,"xlink:href").replace(/data-native_/gi,"");return t.unmount(n.element),r}},e.unmount=function(e,n){if(void 0===n&&(n=!1),e)if(n)(0,r.unmountComponentAtNode)(e),(0,i._b)("JSX unmount Root").warn(e);else{var o=t.getContainerJSX(e);o&&((0,i._b)("JSX unmount").warn(o),(0,r.unmountComponentAtNode)(o),o.remove())}},e.replaceContainer=function(e,n){if(n){var r=t.insertBefore(e,n);return n.remove(),(0,i._b)("JSX replaceContainer").warn(r),r}},e.insertBefore=function(e,n){if(n){var r=t.createRoot(e),o=t.getContainerJSX(n.parentElement);return o&&o.insertBefore(r.element,n),(0,i._b)("JSX insertBefore").warn(r),r.element}},e.append=function(e,n){var r;return null===(r=t._append(e,n))||void 0===r?void 0:r.element},e.appendInstead=function(e,n,r){return r?t.replaceContainer(e,r):t.append(e,n)},e.getContainerHTML=function(e){if(!e)return null;var t=e.parentElement;return t?t.tagName===a?t.parentElement:t:null},e.getContainerJSX=function(e){if(!e||e.tagName===a)return e;var t=e.parentElement;return t&&t.tagName===a?t:e},e._append=function(e,n){if(n){var r=t.createRoot(e);return n.appendChild(r.element),(0,i._b)("JSX append").warn(r),r}},e._initStyles=function(){if(!t._isStylesInitialized){t._isStylesInitialized=!0;var e=document.createElement("style");e.id="jsxStyles",e.innerText="jsx {display: contents;}",document.head.appendChild(e)}},e}()},62614:function(e,t,n){"use strict";n.d(t,{L:function(){return r.L},w:function(){return r.w}});var r=n(61021)},25891:function(e,t,n){"use strict";n.d(t,{_:function(){return r._}});var r=n(24727)},66147:function(e,t,n){"use strict";n.d(t,{Kq:function(){return o},Ng:function(){return i},d4:function(){return s},y$:function(){return a}});var r=n(46517),i=r.Ng,o=r.Kq,a=function(e){return(0,r.y$)(e,!1)},s=r.d4},24717:function(e,t,n){"use strict";function r(e,t){"function"==typeof e&&(e=e(t));for(var n={},r=0,i=Object.keys(e);r',s2:""})+' ').concat(__("Buy Tokens"),"");case 9:return __("Only mutual followers can send private messages");case 12:return __("Only followers can send private messages");case 10:return a.A.isModel(t)?__("You cannot send messages as you were blocked by this model"):__("You cannot send messages as you were blocked by this member");case 6:return"".concat(__("We are sorry, but your spending has been temporarily suspended."),' ').concat(__("Click to more details"),"");case 11:return __("You can send %modelName% tips, but you won't be able to add a message to them for an hour, as the model has restricted your access to their chat room for %hour% hour.",{modelName:"".concat(n),hour:1});default:return __("You can not send message to selected user(s).")}}},49499:function(e,t,n){"use strict";n.d(t,{E8:function(){return _},Ou:function(){return A},PT:function(){return b},aq:function(){return S},bw:function(){return y},pd:function(){return E}});var r=n(15215),i=n(74213),o=n(19826),a=n(11402),s=n(36194),c=n(31150),u=n(37370),l=n(93122),d=n(91287),f=n(88026),h=n(17059),p=n(60544),m=n(36162),v=n(82267),g=n(56575),_=function(e,t,n,f){return(0,r.sH)(void 0,void 0,void 0,(function(){var p,m,g,_,b,y,A,S,E;return(0,r.YH)(this,(function(w){switch(w.label){case 0:return p=o.A.getState(),m=n||(0,a.fE)(),g=(0,d.QL)(p,t),_=null===(E=null===(S=null===(A=p.instantMessages)||void 0===A?void 0:A.conversations)||void 0===S?void 0:S[t])||void 0===E?void 0:E.tip,b=(0,d.oU)(p),_?(o.A.action(s.ql)({groupId:t}),[4,(0,h.a)((y={},y[g.isFake?"username":"groupId"]=t,y.tokens=_,y.text=e,y.isChatIm=f,y))]):[3,2];case 1:return w.sent(),[2];case 2:return v.s.instance.isOpened()?[3,4]:[4,(0,u.lf)({group_id:t,message_id:m,username:p.user.username,message:e,ts:Date.now(),status:g.isFake?"UNSENT":"PENDING",isLocalMessage:!0},m,!0)];case 3:w.sent(),o.A.action(u.KF)({groupId:t,messageId:m,messageData:{showResend:!0}}),(0,u.O2)(t,m,"UNSENT"),w.label=4;case 4:return g.isFake||!t||(0,c.vE)({id:m,type:8,data:{text:e,group_id:t}},(function(e){var n,a,s,u,d;if((0,c.Y4)(e)||!e.data){var f=document.getElementById("im-send-input-container");f&&f.blur();var h=p.instantMessages.conversations,m=null===(s=h[t])||void 0===s?void 0:s.title,v=null===(d=null===(u=h[t].rawData)||void 0===u?void 0:u.users)||void 0===d?void 0:d.find((function(e){return e.display_name===m})),g=e.data.error,_=e.data.kicked_by?e.data.kicked_by.map((function(e){return e.display_name})).join(", "):null;o.A.action(l.E)({conversationsData:(n={},n[t]={error:[5,4,11].includes(g)?null:(0,c.HL)(g,null==v?void 0:v.role,_),notEnoughTokensWarning:5===g,freeMembershipWarning:4===g},n)})}else{var y=o.A.getState().instantMessages;o.A.action(l.E)({conversationsData:(a={},a[t]=(0,r.Cl)((0,r.Cl)({},y.conversations[t]),{error:null,showAlert:!1,firstNewMessageId:null,notEnoughTokensWarning:!1,freeMembershipWarning:!1}),a)}),b&&i.M.reportEvent(66,"click",{value:b})}})),[2]}}))}))},b=function(e,t){return(0,r.sH)(void 0,void 0,void 0,(function(){var n,i,a,s,u,h,m,v;return(0,r.YH)(this,(function(g){return e.isLocalMessage?(n=o.A.getState(),i=(0,d.lS)(n),a=(0,d.QL)(n,e.groupId),s=(0,d.Ev)(n,e.groupId),1===s.length?t?(delete i[e.groupId],o.A.action(f.xm)({instantMessages:{conversations:i}}),t(!0)):(u=[],h=(0,r.Cl)((0,r.Cl)({},i),((m={})[e.groupId]=(0,r.Cl)((0,r.Cl)({},a),{messages:u,isAllMessagesDelete:!0}),m)),o.A.action(l.E)({conversationsData:h})):(u=s.filter((function(t){return t.id!==e.messageId})),h=(0,r.Cl)((0,r.Cl)({},i),((v={})[e.groupId]=(0,r.Cl)((0,r.Cl)({},a),{messages:u}),v)),o.A.action(l.E)({conversationsData:h})),[2]):((0,c.vE)({type:4,data:{message_id:e.messageId}},(function(n){var i,a;if(!(0,c.Y4)(n)&&n.data){var s=o.A.getState(),u=(0,d.lS)(s);if(n.data&&44===n.data.type){var h=(_=n.data.data).groups[0].group_id;if(t)delete u[h],o.A.action(f.xm)({instantMessages:{conversations:u}}),t(!0);else{var m=(0,d.QL)(s,h),v=[],g=(0,r.Cl)((0,r.Cl)({},u),((i={})[h]=(0,r.Cl)((0,r.Cl)({},m),{unreadCount:0,messages:v,isAllMessagesDelete:!0}),i));o.A.action(l.E)({conversationsData:g})}}else{var _;v=((m=u[h=(_=n.data.data).group.group_id]||{}).messages||[]).filter((function(t){return t.id!==e.messageId})),g=(0,r.Cl)((0,r.Cl)({},u),((a={})[h]=(0,r.Cl)((0,r.Cl)({},m),{unreadCount:_.group.unread_messages_count,messages:v,isAllMessagesDelete:0===v.length}),a));o.A.action(l.E)({conversationsData:g}),_.last_message&&(0,p.SJ)(h,_.last_message)}}})),[2])}))}))},y=function(e){return(0,r.sH)(void 0,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){return(0,c.vE)({type:30,data:{message_id:e}},(function(e){if(!(0,c.Y4)(e)&&e.data){var t=e.data.data,n=t.group_id,r=t.message_id;o.A.action(u.KF)({groupId:n,messageId:r,messageData:{spam:!0}})}})),[2]}))}))},A=function(e){return(0,r.sH)(void 0,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){return(0,c.vE)({type:31,data:{message_id:e}},(function(e){if(!(0,c.Y4)(e)&&e.data){var t=e.data.data,n=t.group_id,r=t.message_id,i={spam:!1,text:t.message};o.A.action(u.KF)({groupId:n,messageId:r,messageData:i})}})),[2]}))}))},S=function(e,t){return(0,r.sH)(void 0,void 0,void 0,(function(){var n,i,a,s,c,l,d,f;return(0,r.YH)(this,(function(h){switch(h.label){case 0:if(n=o.A.getState().chatTranslatorSettings,i=null==n?void 0:n.imTranslatorEnabled,a=null==n?void 0:n.targetLang,s=(0,r.Cl)({},t.translations||{}),c=t.translationErrorCounter,!i||t.translations&&t.translations[a])return[2];h.label=1;case 1:return h.trys.push([1,3,,4]),l=g.t.getInstance().getClearText(t.text),d=s,f=a,[4,m.A.instance.translate(l,{targetLanguage:a})];case 2:return d[f]=h.sent(),c=0,[3,4];case 3:return h.sent(),void 0===t.translationErrorCounter&&(c=0),c++,[3,4];case 4:return o.A.action(u.KF)({groupId:e,messageId:t.id,messageData:{translations:s,translationErrorCounter:c}}),[2]}}))}))},E=function(e,t){return(0,r.sH)(void 0,void 0,void 0,(function(){return(0,r.YH)(this,(function(n){return(0,c.vE)({type:43,data:{username:e}},(function(e){(0,c.Y4)(e)||!e.data?t(!1):e&&e.data.data&&t(!0)})),[2]}))}))}},16998:function(e,t,n){"use strict";n.d(t,{wV:function(){return M},ly:function(){return T},tG:function(){return E},nK:function(){return C},i1:function(){return k},RQ:function(){return L},bY:function(){return S},Rz:function(){return w}});var r=n(15215),i=n(31150),o=n(61407),a=n(19826),s=n(12957),c=n(90712),u=n(91287),l=function(e){var t=[];return(0,s.loopv)(e,(function(e){if(e.tip_amount&&e.text){var n=(0,r.Cl)({},e);delete n.tip_amount,delete n.tip_to_user,t.push(n);var i=(0,r.Cl)({},e);t.push(i)}else t.push(e)})),t},d=n(88026),f=n(29490),h=n(93122),p=n(60544),m=n(37370),v=n(13907),g=n(4312),_=function(e,t){return{pageData:(0,r.Cl)((0,r.Cl)({},e.pageData),t)}},b=n(15704),y=n(81714),A=function(e){var t=e.lang,n=(0,g.eS)();return{lang:t,page:(null==n?void 0:n.page)?parseInt(n.page,10):1}},S=function(e,t){void 0===e&&(e=!0);var n=a.A.getState(),u=t||{},l=u.nextPage,f=u.rerecordConversations,h=u.isOnlineOnly,m=void 0!==h&&h;e&&(0,p.IX)(n);var v=A(n),g=l?Number(l):v.page,y=b.Dx,S=y*(g-1);a.A.action(_)({limit:y,offset:S,page:g,isFetching:!0}),(0,i.vE)({data:(0,r.Cl)({lang:v.lang,limit:y,offset:S},m&&{is_online:!0}),type:18},(function(e){if(!(0,i.Y4)(e)&&e.data&&e.data.data){if(e.data.data.groups){var t={},n={};(0,s.loopv)(e.data.data.groups,(function(e){t[e.group_id]={favorite:e.favorite,firstNewMessageId:null,rawData:e,title:e.title||(0,c.ej)(e.users),unreadCount:e.unread_messages_count},e.users&&e.users.map((function(e){n[e.username]=e})),e.last_message&&((0,p.SJ)(e.group_id,e.last_message),(0,o.S)(e.group_id))}));var r={conversations:t,users:n};f&&a.A.action(d.J5)(),a.A.action(d.xm)({instantMessages:r}),a.A.action(_)({isFetching:!1,total:e.data.data.total,data:t})}}else a.A.action(_)({isFetching:!1})}))},E=function(){for(var e=[],t=0;t1?"__disabled":"")}}(e))})),(0,r.h)(u.A,{className:n,avatarData:p})}},29368:function(e,t,n){"use strict";var r=n(15215),i=n(50172),o=n(70726),a=n(65589),s=n(68202),c=n(80782),u=n(45986),l=n(98614),d=n(4645),f=n(79276),h=n(13907),p=n(41669),m=function(){return(0,i.h)("div",{className:"mbc_a_text"},(0,i.h)("p",{className:"mbc_at_item"},__("Select the language you'd like your messages to be translated to.")),(0,i.h)("p",{className:"mbc_at_item"},__("Tap the message and hit Translate.")))},v=function(e){return{chatTranslatorSettings:e.chatTranslatorSettings,skinName:e.skinName}},g=function(){return{closeMobilePopupDispatcher:function(e){return(0,f.Jw)()}}},_=function(e){function t(t){var n,r,i=e.call(this,t)||this;i.submitAction=function(e){var t=i.props.chatTranslatorSettings,n=t.chatTranslatorEnabled,r=t.imTranslatorEnabled,o=i.props.type,a=i.getField("language").value;"im"===o?r=i.getField("translator_enabled").value:n=i.getField("translator_enabled").value;var s=(0,h.ip)("@save_chat_translator_settings");p.post(s,(0,d.Z)({chatTranslatorSettings:{chat_translator_enabled:+n,im_translator_enabled:+r,target_lang:a}}),(function(){i.props.closeMobilePopupDispatcher()}))},i.handleClose=function(){i.props.closeMobilePopupDispatcher()},i.handleSelectLanguage=function(e){i.setFieldValue(e,"language")},i.handleChangeTranslatorDisplay=function(e){e.target&&i.setFieldValue(i.getValue(e),"translator_enabled")};var o=t.chatTranslatorSettings,a=t.type,s=null===(r=null==t?void 0:t.chatTranslatorSettings)||void 0===r?void 0:r.languages.map((function(e){return{value:e[0],label:e[1],disabled:"separator"===e[0],isSeparator:"separator"===e[0]}}));return i.translatorEnabled="im"===a?null==o?void 0:o.imTranslatorEnabled:null==o?void 0:o.chatTranslatorEnabled,i.currentLanguage=null==o?void 0:o.targetLang,i.state={loading:!1,error:null,isValid:!0,fields:(n={},n.translator_enabled={name:"translator_enabled",value:i.translatorEnabled?"1":"0",options:[{label:__("Don't offer translation"),value:"0"},{label:__("Translate to"),value:"1"}]},n.language={name:"language",placeholder:__("Select your language"),value:i.currentLanguage,options:s},n)},i}return(0,r.C6)(t,e),t.prototype.render=function(){var e=Boolean(+this.getField("translator_enabled").value);return(0,i.h)("form",{onSubmit:this.handleSubmitForm,className:"translator_settings"},(0,i.h)(a.A,(0,r.Cl)({},this.getField("translator_enabled"),{onChange:this.handleChangeTranslatorDisplay})),(0,i.h)(s.A,(0,r.Cl)({},this.getField("language"),{onChange:this.handleSelectLanguage,disabled:!e,isMobile:!0,search:!0})),(0,i.h)(u.A,{message:(0,i.h)(m,null),icon:"mob_alert_info",variant:"info"}),(0,i.h)(c.$,{maxWidth:"fluid",htmlType:"submit",color:"success"},__("Save")),(0,i.h)(c.$,{maxWidth:"fluid",onClick:this.handleClose},__("Close")))},t=(0,r.Cg)([(0,l.Ng)(v,g)],t)}(o.A);t.A=_},65757:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var r=n(50172),i=n(46017),o=n(8546),a=function(e){var t,n=e.id,a=e.className,s=e.label,c=e.value,u=e.isDisabled,l=e.isRestricted,d=e.onClick;return(0,r.h)("div",{className:(0,o.n)((t={bcm_notification_switch_row:!0,__disabled:u,__restricted:l},t[a]=a,t)),onClick:d},(0,r.h)("div",{className:"bcm_notification_switch_cell __field"},s),(0,r.h)("div",{className:"bcm_notification_switch_cell __action"},(0,r.h)("label",{className:"bcm_toggle_switcher_holder"},(0,r.h)("input",{id:n,checked:c,name:n,type:i.A.CHECKBOX}),(0,r.h)("span",{className:"ts_switcher"}))))}},54366:function(e,t,n){"use strict";n.d(t,{f:function(){return r},p:function(){return i}});var r="frontend/concierge/leo_avatar.jpg",i="moderator.svg"},15704:function(e,t,n){"use strict";n.d(t,{Dx:function(){return i},UT:function(){return r},YP:function(){return o}});var r=20,i=15,o=1e4},46941:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=n(71005),i=[{title:__("Text %s1%%modelname%!%s_end%"),subtitle:__("Tip%_im_%"),text:__("Greet the model and write your name %emoji% It'll be more interesting and enjoyable for %s1%%modelname%%s1_end% to chat with you, knowing your name."),emoji:r.A.WAVING_HAND,statsId:1},{title:__("Start a conversation with %s1%%modelname%!%s_end%"),subtitle:__("Tip%_im_%"),text:__("Send tips along with your message %emoji% This way, you will get %s2%%s1%%modelname%%s1_end%'s%s2_end% attention, and she will answer you much faster!"),emoji:r.A.HUGGING_FACE,statsId:2},{title:__("Text %s1%%modelname%!%s_end%"),subtitle:__("Tip%_im_%"),text:__("Models love emoticons %emoji% Add emojis to your messages to make them more colorful and %s2%interesting %emoji_fire%%s2_end%"),emoji:r.A.SMIRKING_FACE,emoji_fire:r.A.FIRE,statsId:3},{title:__("Start a conversation with %s1%%modelname%!%s_end%"),subtitle:__("Tip%_im_%"),text:__("Give %s1%%modelname%%s1_end% a compliment %emoji% This will win the model over, and your chat will be even more pleasurable."),emoji:r.A.GRINNING_FACE_WITH_STAR_EYES,statsId:4}]},42209:function(e,t,n){"use strict";var r;n.d(t,{t:function(){return r}}),function(e){e.CHAT="chat",e.IM="im",e.PROFILE="profile",e.PROFILE_PHOTOS="profile_photos",e.AUTO_MESSAGE="auto_message"}(r||(r={}))},14487:function(e,t,n){"use strict";function r(e){var t=e.users||[];return t.length>0&&"promo"===t[0].role}function i(e){var t=e.users||[];return t.length>0&&"sex-questionnaire"===t[0].role}function o(e){return!r(e)&&!i(e)}function a(e){return!i(e)&&!r(e)}n.d(t,{Es:function(){return o},Wm:function(){return a},zs:function(){return r}})},66691:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var r=n(23110),i=n(20444),o=function(e){return i.A.isTranssexualGender(e)?"trans":i.A.isMaleGender(e)?r.n.MALE:r.n.FEMALE}},42255:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(13907),i=n(66691),o=function(e){return(0,r.oF)("default/avatar1_m_".concat((0,i.h)(e),".png"))}},87409:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(13907),i=n(19826),o=function(e){var t=i.A.getState(),n=t.isRunetki,o=t.isTukifSkin;return e?(0,r.oF)(e,!0):n?(0,r.oF)("skins/runetki/news_avatar_for_member_runetki.png"):o?(0,r.oF)("news_avatar_for_member_tukif.png"):(0,r.oF)("news_avatar_for_member.svg")}},62146:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Te},init:function(){return Le}});var r,i=n(15215),o=n(50172),a=n(17402),s=n(98614),c=n(29490),u=n(19826),l=n(1579),d=n(8522),f=n(53336),h=n(80554),p=n(2597),m=n(83966),v=n(76393),g=n(13907),_=n(70),b=n(60824),y=n(72819),A=n(31150),S=n(49499),E=n(16998),w=n(88775),C=n(84976),T=n(10673),L=n(47767),M=("__".concat(u.A.getState().btAlertAvailable?"bt":"all"),(0,a.memo)((function(){var e=(0,L.zy)(),t=(0,a.useMemo)((function(){return"".concat(e.pathname)!==(0,g.ip)("@homepage")}),[e]);return(0,a.useEffect)((function(){t&&(0,E.bY)()}),[t]),t?(0,o.h)("div",null,(0,o.h)("div",{className:"notfound",id:"not_found_page"},(0,o.h)("div",{className:"close_icon_wr"},(0,o.h)("span",null)),(0,o.h)("h1",null,__("Page not found")),(0,o.h)("p",null,trans("A problem occurred while processing your request.")),(0,o.h)("span",{className:"nt_des"},__("We apologize for the inconvenience.")),(0,o.h)("p",{className:"nf_bottom"},trans("Click %a1%here%a2% to proceed to the home page.",{a1:''),a2:""}))),(0,o.h)(T.ConversationListPage,null)):null}))),k=n(45588),N=n(46517);!function(e){e.NOT_FOUND="0",e.IM_ALL="1",e.IM_ACTIVE="2",e.IM_NEW_MESSAGE="3",e.MEMBER_CHAT="4"}(r||(r={}));var I=function(){var e=(0,L.zy)(),t=(0,N.d4)((function(e){return e.btAlertAvailable})),n=(0,a.useMemo)((function(){var t=e.pathname;return(0,k.B6)((0,g.ip)("@im_conversations?page=all"),t)?r.IM_ALL:(0,k.B6)((0,g.ip)("@im_conversation"),t)?r.IM_ACTIVE:(0,k.B6)((0,g.ip)("@im_conversations?page=new_message"),t)?r.IM_NEW_MESSAGE:(0,k.B6)((0,g.ip)("@im_error404_page"),t)?r.NOT_FOUND:(0,k.B6)((0,g.ip)("@member_chat"),t)?r.MEMBER_CHAT:r.NOT_FOUND}),[e]),i=(0,a.useCallback)((function(){var e,i=[];i.push(n===r.MEMBER_CHAT?"page_im_chat":"page_im"),n===r.IM_ALL||n===r.NOT_FOUND?i.push(t?"__bt":"__all"):n===r.IM_ACTIVE?i.push("__active"):n===r.IM_NEW_MESSAGE&&i.push("__new_msg"),(e=document.body.classList).add.apply(e,i)}),[n,t]);(0,a.useEffect)((function(){Array.from(document.body.classList).filter((function(e){return/^(page_|__)/.test(e)})).forEach((function(e){document.body.classList.remove(e)})),i()}),[i])},O=(0,a.memo)((function(){return I(),(0,o.h)(L.sv,null)})),P=function(){return(0,i.sH)(void 0,void 0,void 0,(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,Promise.resolve().then(n.bind(n,10673))];case 1:return[2,{Component:e.sent().ConversationListPage,loader:function(e){var t=e.request;return new Promise((function(e){var n=new URL(t.url),r=n.searchParams.get("page"),i=Boolean(Number(n.searchParams.get("is_online")));(0,E.bY)(!0,{nextPage:r||"1",isOnlineOnly:i}),e(!0)}))}}]}}))}))},R=function(){return(0,i.sH)(void 0,void 0,void 0,(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,n.e(111).then(n.bind(n,13583))];case 1:return[2,{Component:e.sent().ConversationPageWithRouter}]}}))}))},D=function(){return(0,i.sH)(void 0,void 0,void 0,(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,n.e(152).then(n.bind(n,35152))];case 1:return[2,{Component:e.sent().NewMessagePage}]}}))}))};var j,x=function(){return(0,o.h)(C.pg,{router:(e=[{Component:O,ErrorBoundary:M,children:[{path:(0,g.ip)("@im_conversations?page=all"),lazy:P},{path:(0,g.ip)("@im_conversation"),loader:E.RQ,lazy:R},{path:(0,g.ip)("@im_conversations?page=new_message"),lazy:D},{path:(0,g.ip)("@im_error404_page"),Component:M},{path:(0,g.ip)("@member_chat"),lazy:R}]}],(0,C.Ys)(e))});var e},U=n(26580),F=n(5117),B=n(63658),H=n(80782),G=n(65757),V=n(12957),W=n(50445),q=n(96998),Y=n(42209),z=n(79276),X=function(e,t){var n=e.memberChatNotificationSettingsOptions;return n.is_tip_menu_notifications_enabled!==t.is_tip_menu_notifications_enabled&&chat.toggleChatMemberNotificationElements(t.is_tip_menu_notifications_enabled,"[data-hide-tip-menu]"),n.is_recurring_notifications_enabled!==t.is_recurring_notifications_enabled&&chat.toggleChatMemberNotificationElements(t.is_recurring_notifications_enabled,"[data-hide-recurring]"),{memberChatNotificationSettingsOptions:(0,i.Cl)((0,i.Cl)({},e.memberChatNotificationSettingsOptions),t)}},K=n(32101),J=n(73424);!function(e){e.RECURRING_AUTO_NOTIFICATIONS_ENABLED="isRecurringAutoNotificationsEnabled",e.TIP_MENU_NOTIFICATIONS_ENABLED="isTipMenuNotificationsEnabled"}(j||(j={}));var $,Q=function(e){var t=new FormData;return(0,V.loopv)(e,(function(e,n){void 0!==e.value&&t.append("memberNotificationSettings[".concat(n,"]"),e.value)})),t},Z=function(){var e,t=(0,N.wA)(),r=(0,N.d4)(K.r),o=r.is_recurring_notifications_enabled,s=void 0===o||o,c=r.is_tip_menu_notifications_enabled,u=void 0===c||c,l=r.isAvailable,d=(0,a.useState)(((e={})[j.RECURRING_AUTO_NOTIFICATIONS_ENABLED]={label:__("Repeated auto notices"),name:j.RECURRING_AUTO_NOTIFICATIONS_ENABLED,value:s},e[j.TIP_MENU_NOTIFICATIONS_ENABLED]={label:__("Service list"),name:j.TIP_MENU_NOTIFICATIONS_ENABLED,value:u},e)),f=d[0],p=d[1],m=(0,a.useState)(!1),v=m[0],_=m[1],b=(0,a.useState)(!1),y=b[0],A=b[1],S=(0,a.useRef)(f);(0,a.useEffect)((function(){var e=function(e){e.detail.swipeState!==Y.t.AUTO_MESSAGE&&(p(S.current),A(!1))};return window.addEventListener(h.R.CHAT_SWIPE,e),function(){window.removeEventListener(h.R.CHAT_SWIPE,e)}}),[]);return{fields:f,isAvailable:l,isChanged:y,isLoading:v,handleQuestionClick:function(){n.e(174).then(n.bind(n,93447)).then((function(e){var t=e.AutoMessageChatPopup;(0,z.JX)("modelAutoMessageSettingsChat",(function(){return(0,a.createElement)(t,null)}),{closeByClick:!0})}))},handleSaveClick:function(){(0,i.sH)(void 0,void 0,void 0,(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,3,4]),_(!0),[4,(0,q.mN)((0,g.ip)("@api_chat_save_notifications_settings"),{body:Q(f),method:"POST"})];case 1:return e.sent(),S.current=f,A(!1),t(X)({is_recurring_notifications_enabled:f[j.RECURRING_AUTO_NOTIFICATIONS_ENABLED].value,is_tip_menu_notifications_enabled:f[j.TIP_MENU_NOTIFICATIONS_ENABLED].value}),[3,4];case 2:return e.sent(),[3,4];case 3:return _(!1),[7];case 4:return[2]}}))}))},handleSwitchClick:function(e){var t=e.target;t&&(f[t.name]&&p((function(e){var n,r=(0,i.Cl)((0,i.Cl)({},e),((n={})[t.name]=(0,i.Cl)((0,i.Cl)({},e[t.name]),{value:t.checked}),n));return A(!(0,J.b)(S.current,r)),r})))}}},ee=function(){var e=Z(),t=e.fields,n=e.isAvailable,r=e.isChanged,i=e.isLoading,a=e.handleQuestionClick,s=e.handleSaveClick,c=e.handleSwitchClick;return(0,o.h)("div",{className:"cam_inner"},(0,o.h)("span",{className:"cam_title"},__("Setting up auto messages from a model"),B.K.NON_BREAKING_SPACE,(0,o.h)(U.A,{group:"bcm_a_question_icon",icon:"#svg_icon_help",url:F.z,onClick:a})),(0,V.loopv)(t,(function(e){return(0,o.h)(G.m,{key:e.name,id:e.name,className:"cam_row",label:e.label,value:e.value,isDisabled:i||!n,isRestricted:!n,onClick:c})})),(0,o.h)("div",{className:"cam_lg_btn_wrp"},(0,o.h)(H.$,{className:"cam_lg_btn",color:"success",disabled:!r,loading:i,maxWidth:"fluid",onClick:(0,W.s)(s,!i)},__("Save"))))},te=n(91287),ne=n(55177),re=(0,s.Ng)((function(e,t){return{conversation:t.groupId?(0,te.QL)(e,t.groupId):(0,te.h_)(e,t.username),conversationUsers:(0,te.Y5)(e,t.groupId),groupIds:(0,te.e6)(e),isPrefetching:e.pageData.isPrefetching}}))(ne.A),ie=n(68719),oe=n(75463),ae=n(52804),se=n(48291),ce=n(44705),ue=n(92340),le=n(62614),de=n(31179),fe=n(22706),he=n(26616),pe=n(88035),me=n(99353),ve=n(33954),ge=n(9127),_e=n(8546),be=n(21110),ye=n(45070),Ae=function(e){var t=function(e){var t=e.initialSwipeState,n=e.swipeStatePossibleList,r=(0,a.useState)(t),i=r[0],o=r[1],s=(0,a.useState)(!0),c=s[0],u=s[1];return(0,a.useEffect)((function(){var e=function(e){o(e.detail.swipeState)},t=function(){be.q.isDisabled(ye.i.MOBILE_CHAT_HISTORY_SCROLL)&&u(!1)},n=function(){u(!0)};return window.addEventListener(h.R.CHAT_SWIPE,e),window.addEventListener(h.R.SMILE_PANEL_OPEN,t),window.addEventListener(h.R.SMILE_PANEL_CLOSE,n),function(){window.removeEventListener(h.R.CHAT_SWIPE,e),window.removeEventListener(h.R.SMILE_PANEL_OPEN,t),window.removeEventListener(h.R.SMILE_PANEL_CLOSE,n)}}),[]),{activeSwipeState:i,swipeStatePossibleList:n,isShowed:c}}(e),n=t.activeSwipeState,r=t.swipeStatePossibleList;return t.isShowed?(0,o.h)("ul",{className:"cpn_list"},r.map((function(e){return(0,o.h)("li",{key:e,className:(0,_e.n)({cpnl_item:!0,__active:e===n})})}))):null},Se=(($={})[Y.t.AUTO_MESSAGE]=2,$[Y.t.CHAT]=0,$[Y.t.IM]=1,$[Y.t.PROFILE]=null,$[Y.t.PROFILE_PHOTOS]=null,$),Ee=n(41669),we=240+(u.A.getState().isAuthenticated?40:0),Ce=function(){function e(){var e=this;this.swipePossibleList=[Y.t.CHAT,Y.t.IM,Y.t.AUTO_MESSAGE],this.isNeedLoadImDialog=!1,this.scrollAccessibilitySwitch=function(){setTimeout((function(){var t,n=window.isLandscape(),r=document.body.classList.contains("tablet");(null===(t=ge.O.WebKit)||void 0===t?void 0:t.versionBelow(16))&&!r&&e.swipeState===Y.t.CHAT&&(n?(0,de.fY)(document.body):(0,b.u)())}),200)},this.resizeChatPanel=function(){var t;if(!(Ee("input:focus").length|Ee("textarea:focus").length)){var n=document.querySelector(".js-chat-content"),r=window.isLandscape(),i=document.body.classList.contains("tablet")&&r,o={__am_flexible:!1,__auto_message_visible:!0,__im_flexible:!1,__im_visible:!0};if(n.classList.toggle("__no_shadow",e.swipeState!==Y.t.CHAT),e.swipeState!==Y.t.IM&&e.swipeState!==Y.t.AUTO_MESSAGE||i)(t=n.classList).remove.apply(t,Object.keys(o));else{var a=document.querySelector(".chat-header"),s=document.querySelector("#stream-container"),c=document.getElementById("chat_bar_v2"),u=Math.max((0,ae.MR)(),we)-a.offsetHeight;u-=(null==s?void 0:s.offsetHeight)||0,(u-=(null==c?void 0:c.offsetHeight)||0)>we&&(e.swipeState===Y.t.IM?o.__im_flexible=!0:o.__am_flexible=!0),e.swipeState===Y.t.IM?o.__auto_message_visible=!1:o.__im_visible=!1;var l=[];for(var d in o)o[d]&&l.push(d);var f=function(){var e,t;(e=n.classList).remove.apply(e,Object.keys(o)),(t=n.classList).add.apply(t,l)};fe.BrowserDetect.isIpad()&&window.navigator.maxTouchPoints>2?setTimeout((function(){f()}),1e3):f()}}},this.initModelBanned=function(){l.c.on("isModelBannedMobile",(function(t,n){t.isModelBannedMobile===n.isModelBannedMobile||e.isNeedLoadImDialog||e.loadConversationsOnBan()}))},this.initMemberBanned=function(){l.c.on("isMemberBanned",(function(t,n){t.chatHost;t.isMemberBanned===n.isMemberBanned||e.isNeedLoadImDialog||e.loadConversationsOnBan()}))},this.initMenuMessageCounter=function(){var e=0;l.c.on("instantMessages.totalUnread",(function(t,n){var r=t.instantMessages,i=t.user,o=r.totalUnread,a=n.instantMessages.totalUnread,s=Ee(".js-im_menu_cnt");if(s.length>0&&s.html(o.toString()),s.toggleClass("__hide",0===o),o!==a){var c=i.mainBarBubble,u=document.getElementById("conversations"),l=c&&c.im;u?(clearTimeout(e),e=window.setTimeout((function(){ue.A.onlyRegisterEvent(m.A.MESSAGES_PAGE_VISIT)}),5e3)):!l&&o>0?(0,ce.U)("im",!0):l&&0===o&&(0,ce.U)("im",!1)}}))},this.initChatPanelNavigation=function(){var t=Ee("#js-cp_navigation").get(0);t&&le.w.append((0,o.h)(Ae,{initialSwipeState:e.swipeState,swipeStatePossibleList:e.swipePossibleList}),t)},this.applySwipe=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=Ee(".js-chat_panel"),i=Ee(".chat_alert_container > .imc_alerts");r.toggleClass("smoothly",!n),i.toggleClass("smoothly",!n),t&&(Ee("input:focus").blur(),Ee("textarea:focus").blur()),e.resizeChatPanel();var o=Se[e.swipeState],a=Se[Y.t.IM],s=o===a?0:a-o;r.css("transform","translate(".concat(50*(0!==o&&ve.isRTLCulture?o:-o),"%, 0)")),i.css("transform","translate(".concat(100*(0!==s&&ve.isRTLCulture?-s:s),"%), 0)"))},this.replyFormBlur=function(){document.activeElement&&document.activeElement.classList.contains("__focused")&&(document.activeElement.classList.remove("__focused"),document.activeElement.blur())},this.toggleChatBarButtonsDisableStatus=function(t){var n,r,i,o;void 0===t&&(t=!1),null===(n=e.chatBarChatButton)||void 0===n||n.classList.toggle("__disabled",t),null===(r=e.chatImButton)||void 0===r||r.classList.toggle("__disabled",t),null===(i=e.chatProfileButton)||void 0===i||i.classList.toggle("__disabled",t),null===(o=e.chatProfilePhotosButton)||void 0===o||o.classList.toggle("__disabled",t)},this.updateChatSwipeState=function(t,n){var r,i,o,a,s=[Y.t.PROFILE,Y.t.PROFILE_PHOTOS].includes(e.swipeState);null===(r=e.chatBarChatButton)||void 0===r||r.classList.toggle(oe.zc,t===Y.t.CHAT),null===(i=e.chatImButton)||void 0===i||i.classList.toggle(oe.zc,t===Y.t.IM),null===(o=e.chatProfileButton)||void 0===o||o.classList.toggle(oe.zc,t===Y.t.PROFILE),null===(a=e.chatProfilePhotosButton)||void 0===a||a.classList.toggle(oe.zc,t===Y.t.PROFILE_PHOTOS),s&&_.i.instance.toggleFooter(!1),e.swipeState=t,e.chatSlideIndex=Se[t],Ee(".js-chat_tip").attr("href",t===Y.t.CHAT?"#popupTip":"#"),t===Y.t.IM&&window.dispatchEvent(new CustomEvent("focus")),t===Y.t.CHAT&&e.replyFormBlur(),document.body.classList.toggle("__chat_panel_active",[Y.t.CHAT,Y.t.IM,Y.t.AUTO_MESSAGE].includes(t)),window.dispatchEvent(new CustomEvent(h.R.CHAT_SWIPE,{detail:{profileTabState:n,swipeState:t}})),Ee(document).trigger("chat-drag-resize-update")},this.onUserData=function(){var t,n,r,i,o=u.A.getState(),a=o.chatHost,s=o.user,c=o.isAuthenticated,l=null!==(n=null===(t=null===chat||void 0===chat?void 0:chat.performerData)||void 0===t?void 0:t.username)&&void 0!==n?n:a.username;l!==e.prevUsername&&(e.swipeState!==Y.t.CHAT&&(e.updateChatSwipeState(Y.t.CHAT),e.applySwipe(!1,!0)),e.prevUsername=l,e.swipeLoading=!1,e.isNeedLoadImDialog=!1,Ee("#switch_between_chat").removeClass("__unread"),c&&e.checkRestrictionDisabled(l).then((function(t){if(t)(0,E.nK)(l,(function(e,t){t&&Ee("#switch_between_chat").addClass("__unread")}),(function(e){(0,E.Rz)(l,e)}));else if(e.isNeedLoadImDialog=!0,s.membership===p.A.FREE)return}))),null===(r=e.chatProfilePhotosButton)||void 0===r||r.classList.add("__disabled"),null===(i=e.chatProfileButton)||void 0===i||i.classList.add("__disabled")},this.initTipBtn=function(){Ee(".js-chat_tip").on("click",(function(t){return(0,i.sH)(e,void 0,void 0,(function(){var e,r,o,s,c,l,d=this;return(0,i.YH)(this,(function(f){switch(f.label){case 0:return t.preventDefault(),t.stopPropagation(),this.replyFormBlur(),e=null!==(l=null===(c=null===chat||void 0===chat?void 0:chat.performerData)||void 0===c?void 0:c.username)&&void 0!==l?l:u.A.getState().chatHost.username,r=(0,te.e6)(u.A.getState())[e],Ee(t.currentTarget).removeClass("ui-btn-active"),o=r?{groupId:r}:{username:e},[4,Promise.all([n.e(11),n.e(16),n.e(12),n.e(54),n.e(64),n.e(101)]).then(n.bind(n,92717))];case 1:return s=f.sent(),(0,z.JX)("im_tip",(function(){return(0,a.createElement)(s.default,(0,i.Cl)((0,i.Cl)({},o),{type:d.swipeState}))})),[2]}}))}))}))},this.checkRestrictionDisabled=function(e){return new Promise((function(t){(0,S.pd)(e,(function(e){t(e)}))}))},this.initSwipeBtn=function(){var t=u.A.getState(),n=t.user,r=t.isAuthenticated;Ee("#bChat").on("onUserData",(function(){e.onUserData()})),Ee("#switch_between_chat").on("click",(function(t){return(0,i.sH)(e,void 0,void 0,(function(){var e,o,a,s,c,l,d,f=this;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return e=null!==(l=null===(c=null===chat||void 0===chat?void 0:chat.performerData)||void 0===c?void 0:c.username)&&void 0!==l?l:u.A.getState().chatHost.username,r?(o=Ee(t.currentTarget),(a=o.hasClass("__im"))&&this.swipeState!==Y.t.IM&&this.isNeedLoadImDialog?[4,this.checkRestrictionDisabled(e)]:[3,2]):((0,se._)(),[2]);case 1:if(!i.sent()&&n.membership===p.A.FREE)return null===(d=window.chat)||void 0===d||d.buyTokensPopup(),[2];i.label=2;case 2:if(s=[Y.t.PROFILE,Y.t.PROFILE_PHOTOS].includes(this.swipeState),a){if(!e)return[2];e&&this.isNeedLoadImDialog&&void 0===(0,te.e6)(u.A.getState())[e]&&(0,E.nK)(e,he.noop,(function(t){(0,E.Rz)(e,t),f.isNeedLoadImDialog=!1})),this.updateChatSwipeState(Y.t.IM),Ee("#switch_between_chat").removeClass("__unread")}else this.updateChatSwipeState(Y.t.CHAT);return this.applySwipe(!0,s),[2]}}))}))}))},this.renderChatImComponent=function(){l.c.on("chatHost, isChatPage",(function(t){var n=t.chatHost,r=t.isChatPage,i=(null==n?void 0:n.username)!==e.prevUsernameIm;e.imAppNode&&i&&(le.w.unmount(e.imAppNode),e.prevUsernameIm=null,e.imAppNode=null),e.autoMessageAppNode&&i&&(le.w.unmount(e.autoMessageAppNode),e.autoMessageAppNode=null),r&&(null==n?void 0:n.username)&&i&&(e.prevUsernameIm=n.username,e.imAppNode=le.w.append((0,o.h)(s.Kq,{store:u.A},(0,o.h)(re,{username:n.username})),Ee(".js-im_chat").get(0)),e.autoMessageAppNode=le.w.append((0,o.h)(s.Kq,{store:u.A},(0,o.h)(ee,null)),Ee(".js-chat_auto_message").get(0)))}))},this.debouncedBlurElement=(0,me.s)((function(e){Ee(e).blur()}),20),this.initChatSwipe=function(){var t=null,n=null,r=null,i=null,o=0,a=0,s=!1,l=!1,d=!1,f=!0;e.swipeState=Y.t.CHAT,e.chatSlideIndex=0,document.body.classList.add("__chat_panel_active");var p=Ee(".js-chat_panel"),m=Ee(".chat_alert_container"),v=fe.BrowserDetect.isIOS();e.initSwipeBtn(),e.renderChatImComponent(),e.initTipBtn(),e.resizeChatPanel(),Ee("#bChat").on("onBeforeGetRoom",(function(){p.hasClass("smoothly")&&p.removeClass("smoothly")})).on("onUserData",(function(){e.onUserData(),u.A.action(c.H)}));var g=window.getSelection();p.swipe({allowPageScroll:"vertical",excludedElements:"input, .imc_r_quick_smiles, .js-chat_msg_input, .js_im_reply_textarea, .smilePanelFrame",maxTimeThreshold:2500,swipeStatus:function(c,_){var b,y;if(v&&c.touches&&c.touches.length){var A=Math.round(c.touches[0].clientX);if(A<0||A>window.innerWidth)return e.applySwipe(),!1}switch(_){case"start":if(e.blurEndpoint=Math.floor(document.documentElement.clientWidth/4),Ee(window).one("touchcancel touchend",(function(){l=!1,d=!1,f=!0,e.applySwipe()})),c.touches){var S=p.css("transform");t=Math.round(c.touches[0].clientX),n=Math.round(c.touches[0].clientY),r="none"===S?0:Number(S.split(/[()]/)[1].split(",")[4])}p.removeClass("smoothly"),m.find(".imc_alerts").removeClass("smoothly"),g=window.getSelection();break;case"move":if(!g.isCollapsed)return;if(c.touches&&c.touches.length&&(o=Math.round(c.touches[0].clientX)-t,a=Math.round(c.touches[0].clientY)-n,e.swipeState===Y.t.IM&&f&&((0,pe.w)(h.R.CONTEXTMENU_CLOSE),f=!1)),Math.abs(o)>e.blurEndpoint&&(e.swipeState===Y.t.IM?e.debouncedBlurElement(".chat-content .js_im_reply_textarea"):e.debouncedBlurElement(".chat-content .js-chat_msg_input")),Math.abs(a)>Math.abs(o)&&!l)return d=!0,s=!0,void e.applySwipe();if(!d){if(c.cancelable&&(c.preventDefault(),c.stopPropagation()),l=!0,i=o>0?"right":"left",ve.isRTLCulture){if(e.chatSlideIndex===e.swipePossibleList.length-1&&o>0||0===e.chatSlideIndex&&o<0)return s=!0,void e.applySwipe(!1,!0)}else if(0===e.chatSlideIndex&&o>0||e.chatSlideIndex===e.swipePossibleList.length-1&&o<0)return s=!0,void e.applySwipe(!1,!0);if(i){var w=null!==(y=null===(b=null===chat||void 0===chat?void 0:chat.performerData)||void 0===b?void 0:b.username)&&void 0!==y?y:u.A.getState().chatHost.username;if(!w)return s=!0,void e.applySwipe(!1,!0);s=!1,p.css("transform","translate(".concat(o+r,"px, 0)")),m.find(".imc_alerts").css("transform","translateX(".concat(ve.isRTLCulture?"-100%":"100%",") translate(").concat(o+r,"px, 0)")),(ve.isRTLCulture&&o>50||!ve.isRTLCulture&&o<-50)&&(w&&!(0,te.e6)(u.A.getState())[w]?!e.swipeLoading&&e.isNeedLoadImDialog&&(e.swipeLoading=!0,(0,E.nK)(w,he.noop,(function(e){(0,E.Rz)(w,e)}))):e.swipeLoading=!1)}}break;case"end":if(l=!1,d=!1,f=!0,s)return void e.applySwipe(!1,!0);if(Math.abs(o)<5||!i)return void e.applySwipe(!0);var C=function(){Se[Y.t.CHAT],Ee("input:focus").blur(),Ee("textarea:focus").blur(),e.swipeState!==Y.t.CHAT&&(0,pe.w)("chatChange"),e.updateChatSwipeState(Y.t.CHAT),e.resizeChatPanel()},T=function(){ve.isRTLCulture?Se[Y.t.IM]:-Se[Y.t.IM],Ee("input:focus").blur(),Ee("textarea:focus").blur(),e.swipeState!==Y.t.IM&&(0,pe.w)("chatChange"),e.updateChatSwipeState(Y.t.IM),e.resizeChatPanel(),Ee("#switch_between_chat").removeClass("__unread")},L=function(){ve.isRTLCulture?Se[Y.t.AUTO_MESSAGE]:-Se[Y.t.AUTO_MESSAGE],e.updateChatSwipeState(Y.t.AUTO_MESSAGE),e.resizeChatPanel()},M=function(e){switch(fe.BrowserDetect.isFirefox()&&!fe.BrowserDetect.isIOS()&&function(e){e===Y.t.CHAT?Ee(".js-history_container").css("overflow-y","auto"):Ee(".js-history_container").css("overflow-y","hidden")}(e),e){case Y.t.CHAT:return C;case Y.t.IM:return T;case Y.t.AUTO_MESSAGE:return L;default:return he.noop}};Ee(".chat-content .js-chat_msg_input").trigger("blur");var k=he.noop;"left"===i?k=M(e.swipePossibleList[e.chatSlideIndex+(ve.isRTLCulture?-1:1)]):"right"===i&&(k=M(e.swipePossibleList[e.chatSlideIndex+(ve.isRTLCulture?1:-1)])),k();break;case"cancel":l=!1,d=!1,f=!0,e.applySwipe()}},threshold:5},!0)}}return Object.defineProperty(e,"instance",{get:function(){return this.globalInstance||(this.globalInstance=new this),this.globalInstance},enumerable:!1,configurable:!0}),Object.defineProperty(e,"swipeState",{get:function(){var e;return null===(e=this.globalInstance)||void 0===e?void 0:e.swipeState},enumerable:!1,configurable:!0}),e.prototype.init=function(){return(0,i.sH)(this,void 0,void 0,(function(){var e,t,n,r,a=this;return(0,i.YH)(this,(function(i){return(e=document.querySelector(".js-im_conversations"))&&le.w.renderNode((0,o.h)(s.Kq,{store:u.A},(0,o.h)(x,null)),e),(0,v.L)(f.yX),this.initMenuMessageCounter(),this.initMemberBanned(),this.initModelBanned(),(t=Ee(".js-profile_new_msg")).length>0&&t.on("click",(function(e){e.preventDefault();var t=Ee(e.currentTarget).data("username"),n=Ee(e.currentTarget).data("display_name"),r=Ee(e.currentTarget).data("role");(0,E.nK)(t,(function(e){location.href=(0,g.ip)("@im_conversation?id=".concat(e))}),(function(e){5===e?(0,z.JX)("not_enough_tokens",(function(){return(0,o.h)(w.A,{title:__("New message"),isTip:!1})})):[10,3].includes(e)?(0,z.JX)("profile_confirm_error",(function(){return(0,o.h)(ie.default,{error:(0,A.HL)(e,r,n),onClose:z.Jw})})):(0,z.JX)("error",null,{errorMessage:(0,A.HL)(e,r,n)})}))})),(n=Ee(".js-profile_mute")).length>0&&n.on("click",(function(e){e.preventDefault();var t=Ee(e.currentTarget).data("username"),n=Ee(e.currentTarget).data("muted");(0,y.u$)({muted:!n,username:t,onSuccess:function(t){Ee(e.currentTarget).attr("data-muted",t?"1":""),Ee(e.currentTarget).data("muted",t?"1":"")}})})),Ee(".js-im_chat").length>0?(this.initChatSwipe(),this.initHandlersOnStreamPage(),this.initChatPanelNavigation()):(this.initHandlersOnStreamGuestPage(),this.initSwipeBtn()),this.chatBarChatButton=document.getElementById("chatBarChatButton"),this.chatImButton=document.getElementById("switch_between_chat"),this.chatProfileButton=document.getElementById("chatProfileButton"),this.chatProfilePhotosButton=document.getElementById("bChatProfilePhotosLink"),null===(r=this.chatBarChatButton)||void 0===r||r.addEventListener("click",(function(){var e=[Y.t.PROFILE,Y.t.PROFILE_PHOTOS].includes(a.swipeState);(0,pe.w)(h.R.CHAT_LAST_SCROLL_POSITION,!1),a.updateChatSwipeState(Y.t.CHAT),a.applySwipe(!0,e)})),Ee(".purchase_tokens:visible").length||(0,d.v)(),[2]}))}))},e.prototype.initHandlersOnStreamGuestPage=function(){window.addEventListener("orientationchange",this.scrollAccessibilitySwitch)},e.prototype.initHandlersOnStreamPage=function(){var e=this;window.addEventListener(h.R.RESIZE_CHAT,(function(){e.resizeChatPanel()})),window.addEventListener("resize",(function(){e.resizeChatPanel()})),Ee(document).on("chat-drag-resize-stop",(function(){e.resizeChatPanel()})),window.addEventListener("orientationchange",(function(){e.scrollAccessibilitySwitch(),setTimeout((function(){var t=window.isLandscape();if(document.body.classList.contains("tablet")&&e.swipeState===Y.t.IM){var n=Ee(".mbc_scrollbar.jc-bcm_history_box");if(t){var r=n.get(0).scrollHeight;return void n.scrollTop(r)}n.scrollTop(0)}}),200)}))},e.prototype.loadConversationsOnBan=function(){var e,t,n=u.A.getState().chatHost;if(this.swipeState===Y.t.IM){var r=null!==(t=null===(e=null===chat||void 0===chat?void 0:chat.performerData)||void 0===e?void 0:e.username)&&void 0!==t?t:n.username;(0,E.nK)(r,he.noop,(function(e){(0,E.Rz)(r,e)}))}this.isNeedLoadImDialog=!0},e}(),Te=Ce;function Le(){Ce.instance.init()}},80202:function(e,t,n){"use strict";var r=n(15215),i=n(50172),o=n(6743),a=n(22706),s=n(8546),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.containerElRef=function(e){return t.containerEl=e},t.barElRef=function(e){return t.barEl=e},t.componentDidMount=function(){var e=t.props.stickyBar;t.pageContentEl=document.querySelector(".bc-content.ui-content"),e&&(t.toggleStickyBarPosition(!0),window.addEventListener("scroll",t.handleScroll))},t.UNSAFE_componentWillReceiveProps=function(e){t.props.stickyBar!==e.stickyBar&&(e.stickyBar?(t.toggleStickyBarPosition(!0),window.addEventListener("scroll",t.handleScroll)):(t.toggleStickyBarPosition(!1),window.removeEventListener("scroll",t.handleScroll)))},t.componentWillUnmount=function(){window.removeEventListener("scroll",t.handleScroll)},t.handleScroll=function(){t.toggleStickyBarPosition(!0)},t.toggleStickyBarPosition=function(e){var n=t.containerEl.getBoundingClientRect().top+pageYOffset,r=t.pageContentEl.getBoundingClientRect().top+pageYOffset;n&&r&&(pageYOffset>n&&e?(t.barEl.style.position="fixed",t.barEl.style.top="".concat(r,"px"),t.barEl.style.right="var(--safe-area-inset-right)",t.barEl.style.left="var(--safe-area-inset-left)"):(t.barEl.style.position="absolute",t.barEl.style.top="0",t.barEl.style.right="0",t.barEl.style.left="0"))},t}return(0,r.C6)(t,e),t.prototype.render=function(){var e=this.props,t=e.bar,n=e.children,c=(0,r.Tt)(e,["bar","children"]);return(0,i.h)(o.A,(0,r.Cl)({},c),(0,i.h)("div",{ref:this.containerElRef,className:"imc_container"},t&&(0,i.h)("div",{ref:this.barElRef,className:"imc_action_bar"},t),(0,i.h)("div",{className:(0,s.n)({imc_content:1,__footer_space:a.BrowserDetect.isFirefox()})},n)))},t}(i.uA);t.A=c},10673:function(e,t,n){"use strict";n.r(t),n.d(t,{ConversationListPage:function(){return Z}});var r,i=n(50172),o=n(17402),a=n(46517),s=n(13907),c=n(34551),u=n(15215),l=n(98614),d=n(26580),f=n(28527),h=n(37407),p=n(45070),m=n(21110),v=n(80782),g=n(72819),_=n(15286),b=function(e){var t=e.close,n=e.deleteConversation,r=e.cancel;return(0,i.h)(_.G,{confirmButtonText:__("Yes"),message:{text:__("Delete this conversation?")},title:__("Confirm"),cancelButtonText:__("No"),onCancel:r,onClose:t,onConfirm:n})},y=n(12957),A=n(14487),S=n(79276),E=n(8546);!function(e){e.ALL="all",e.READ="read",e.UNREAD="unread",e.UNSELECT="unselect"}(r||(r={}));var w=function(e){var t,n;return(0,i.h)(f.A,{checked:(null===(t=e.data)||void 0===t?void 0:t.checked)||!1,onChange:null===(n=e.data)||void 0===n?void 0:n.onChange})},C=function(e){return{user:e.user}},T=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={selectedFilter:t.props.selectedConversations&&t.props.selectedConversations.length?[{label:__("Unread"),value:"unread"}]:[],isNewMessageBtnMinimized:!1},t.setContainerRef=function(e){return t.containerEl=e},t.setWidthHolderRef=function(e){return t.widthHolderEl=e},t.handleResize=function(){var e,n,r=null===(e=t.containerEl)||void 0===e?void 0:e.offsetWidth,i=null===(n=t.widthHolderEl)||void 0===n?void 0:n.offsetWidth;t.setState((function(e){return(0,u.Cl)((0,u.Cl)({},e),{isNewMessageBtnMinimized:i>r})}))},t.handleOnlineFilterToggle=function(){var e=t.props,n=e.isOnlineOnly;(0,e.setIsOnlineOnly)(!n)},t.handleSetConversationsAsUnread=function(){var e=t.props,n=e.conversations,r=e.selectedConversations.filter((function(e){var t;return!(null===(t=n[e])||void 0===t?void 0:t.unreadCount)}));r.length&&(0,g.Qi)(r)},t.handleSetConversationsAsRead=function(){var e=t.props,n=e.conversations,r=e.selectedConversations.filter((function(e){var t;return Boolean(null===(t=n[e])||void 0===t?void 0:t.unreadCount)}));r.length&&(0,g.Bm)(r)},t.handleDeleteConversations=function(){var e=t.props,n=e.selectedConversations,r=e.onResetSelectedConversation;(0,S.JX)("delete_im_conversation_confirm_popup",(function(){return(0,i.h)(b,{deleteConversation:function(e){return(0,u.sH)(t,void 0,void 0,(function(){return(0,u.YH)(this,(function(t){return r(),(0,g.ut)(n),e(),[2]}))}))}})}))},t.handleSelect=function(e){(0,t.props.onSelect)(e.value)},t.handleMute=function(){var e=t.props.selectedConversations;(0,g.mN)(e,!0)},t.handleUnmute=function(){var e=t.props.selectedConversations;(0,g.mN)(e,!1)},t.handleChangeFilterCheckbox=function(e){(0,t.props.onSelect)(e.target.checked?t.allOption.value:t.unselectOption.value)},t}return(0,u.C6)(t,e),t.prototype.componentDidMount=function(){"ResizeObserver"in window&&this.containerEl&&this.widthHolderEl&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver&&(this.resizeObserver.observe(this.containerEl),this.resizeObserver.observe(this.widthHolderEl))),this.handleResize(),window.addEventListener("resize",this.handleResize)},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.handleResize)},Object.defineProperty(t.prototype,"allOption",{get:function(){return{label:__("Check all messages"),value:r.ALL}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unreadOption",{get:function(){return{label:__("Unread"),value:r.UNREAD}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOption",{get:function(){return{label:__("Read"),value:r.READ}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unselectOption",{get:function(){return{label:__("Uncheck"),value:r.UNSELECT}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectOptions",{get:function(){var e=this.props.selectedConversations,t=[this.allOption,this.unreadOption,this.readOption];return e.length?(0,u.fX)((0,u.fX)([],t,!0),[this.unselectOption],!1):t},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e,t,n=this.props,r=n.conversations,o=n.getPageLink,a=n.selectedConversations,c=n.user,u=n.isOnlineOnly,l=n.isWithConversations,f=this.state,g=f.selectedFilter,_=f.isNewMessageBtnMinimized,b=a&&a.length,y="free"===c.membership,S=Boolean(a.length),C=!_&&!S,T=(e=a,t=r,Object.keys(t).filter((function(t){return e.includes(t)})).filter((function(e){var n;return!(null===(n=t[e])||void 0===n?void 0:n.unreadCount)})).length>0),L=function(e,t){return Object.keys(t).filter((function(t){return e.includes(t)})).filter((function(e){var n;return!!(null===(n=t[e])||void 0===n?void 0:n.unreadCount)})).length>0}(a,r),M=function(e,t){return Object.keys(t).filter((function(t){return e.includes(t)})).filter((function(e){var n,r=null===(n=t[e])||void 0===n?void 0:n.rawData;return(0,A.Es)(r)&&!(null==r?void 0:r.muted)})).length>0}(a,r),k=function(e,t){return Object.keys(t).filter((function(t){return e.includes(t)})).filter((function(e){var n,r=null===(n=t[e])||void 0===n?void 0:n.rawData;return(0,A.Es)(r)&&(null==r?void 0:r.muted)})).length>0}(a,r),N=m.q.isEnabled(p.i.MOBILE_NEW_MODEL_PROFILE),I=o(1,!u);return(0,i.h)(i.FK,null,(0,i.h)("div",{ref:this.setContainerRef,className:(0,E.n)({imc_actions:!0,__with_scroll:!C})},l&&(0,i.h)(h.A,{dropdownInPortal:!0,inputComponent:w,inputComponentData:{checked:b,onChange:this.handleChangeFilterCheckbox},options:this.selectOptions,selected:g,isDropdownOpenedOnlyOnArrowClick:!0,onSelect:this.handleSelect}),!y&&(0,i.h)(v.$,{className:"bc_flex bc_flex_items_center",href:(0,s.ip)("@im_conversations?page=new_message"),variant:"outline"},(0,i.h)(d.A,{group:"imca_icon",icon:"#svg_mob_im_new_msg"}),C&&(0,i.h)("span",{className:"imca_text __new_msg"},__("New message"))),!S&&(0,i.h)(v.$,{className:"bc_flex bc_flex_items_center",href:I,active:u,variant:"outline",onClick:this.handleOnlineFilterToggle},(0,i.h)("span",{className:"imca_text __online"},__("Online%_filter_%"))),(L||T)&&(0,i.h)(v.$,{variant:"outline",onClick:L?this.handleSetConversationsAsRead:this.handleSetConversationsAsUnread},(0,i.h)(d.A,{group:"imca_icon",icon:L?"#svg_mob_im_msg_read":"#svg_mob_im_msg_unread"})),(M||k)&&(0,i.h)(v.$,{variant:"outline",onClick:k?this.handleUnmute:this.handleMute},N&&(0,i.h)(d.A,{group:"imca_icon",icon:k?"#svg_mob_im_sound_on":"#svg_mob_im_sound_off"}),!N&&(0,i.h)(d.A,{group:"imca_icon",icon:k?"#svg_mob_im_unmute":"#svg_mob_im_mute"})),S&&(0,i.h)(v.$,{variant:"outline",onClick:this.handleDeleteConversations},(0,i.h)(d.A,{group:"imca_icon",icon:"#svg_mob_im_msg_del"}))),(0,i.h)("div",{ref:this.setWidthHolderRef,className:"imc_actions __absolute"},l&&(0,i.h)(h.A,{dropdownInPortal:!0,inputComponent:w}),!y&&(0,i.h)(v.$,{className:"bc_flex bc_flex_items_center",variant:"outline"},(0,i.h)(d.A,{group:"imca_icon",icon:"#svg_mob_im_new_msg"}),(0,i.h)("span",{className:"imca_text __new_msg"},__("New message"))),(0,i.h)(v.$,{className:"bc_flex bc_flex_items_center",active:u,variant:"outline"},(0,i.h)("span",{className:"imca_text __online"},__("Online%_filter_%")))))},t=(0,u.Cg)([(0,l.Ng)(C)],t)}(i.uA),L=T,M=n(64730),k=n(80554),N=function(){return(0,i.h)("div",{className:"imci_answer_badge"},__("Your turn"))},I=n(50151),O=n(95836),P=n(90712),R=n(56575),D=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.touchstartY=0,t.touchstartX=0,t.swipe={},t.pressed=!1,t.minPressTime=251,t.swiped=!1,t.pan={},t.panned=!1,t.panOuted=!1,t.panEntered=!1,t.maxTapPressTime=250,t.tapped=!1,t.componentDidMount=function(){t.setVendorPrefixes(),clearTimeout(t.pressTimeout)},t.componentDidUpdate=function(){clearTimeout(t.pressTimeout)},t.componentWillUnmount=function(){clearTimeout(t.pressTimeout),clearTimeout(t.tapTimeout),t.pressed=!1,t.tapped=!1,t.swiped=!1,t.changeDocumentSelect(""),document.removeEventListener(k.R.CONTEXTMENU,t.handleContextMenu)},t.getVendorPrefix=function(e){var t=null,n=document.head.style;return e.forEach((function(e){void 0!==n[e]&&(t=e)})),t},t.setVendorPrefixes=function(){t.userSelectPrefix=t.getVendorPrefix(["-webkit-user-select","-moz-user-select","-ms-user-select","user-select"]),t.touchCalloutPrefix=t.getVendorPrefix(["-webkit-touch-callout"])},t.changeDocumentSelect=function(e){t.userSelectPrefix&&(document.body.style[t.userSelectPrefix]=e),t.touchCalloutPrefix&&(document.body.style[t.touchCalloutPrefix]=e)},t.handleContextMenu=function(e){e.preventDefault()},t.handleTouchStart=function(e){if(e.cancelable){var n=t.props,r=n.onTouchStart,i=n.onTap;if(e.touches.length>0){var o=e.touches[0];t.touchstartX=o.clientX,t.touchstartY=o.clientY,r&&r(),i&&(t.tapped=!0,t.tapTimeout=window.setTimeout((function(){t.tapped=!1}),t.maxTapPressTime)),t.pressed||(t.pressTimeout=window.setTimeout((function(){t.handlePress(e)}),t.minPressTime))}}},t.handlePress=function(e){var n=t.props.onPress;t.pressed=!0,t.changeDocumentSelect("none"),document.addEventListener(k.R.CONTEXTMENU,t.handleContextMenu),n&&n(e)},t.handleSwipe=function(){(0,t.props.onSwipe)(t.swipe),t.swiped=!1},t.handlePanEnd=function(){(0,t.props.onPanEnd)((0,u.Cl)({},t.pan)),t.panned=!1,t.panOuted=!1,t.panEntered=!1},t.handleTouchEnd=function(e){var n=t.props,r=n.onTouchEnd,i=n.onSwipe,o=n.onPanEnd,a=n.onTap,s=0,c=0;if(e.touches.length>0){var u=e.touches[0].clientX,l=e.touches[0].clientY;s=u-t.touchstartX,c=l-t.touchstartY}r&&r({deltaX:s,deltaY:c}),a&&t.tapped&&(a(),clearTimeout(t.tapTimeout)),clearTimeout(t.pressTimeout),t.pressed=!1,setTimeout((function(){t.changeDocumentSelect("")}),100),document.removeEventListener(k.R.CONTEXTMENU,t.handleContextMenu),t.swiped&&i&&t.handleSwipe(),t.panned&&o&&t.handlePanEnd()},t.handleTouchMove=function(e){if(t.touchstartX&&t.touchstartY&&e.touches.length){var n=t.props,r=n.direction,i=n.threshold,o=n.onSwipe,a=n.onPan,s=n.onPanOut;t.tapped=!1,clearTimeout(t.pressTimeout),t.swiped=!1;var c=e.touches[0].clientX,u=e.touches[0].clientY,l=c-t.touchstartX,d=u-t.touchstartY;if(o&&(Math.abs(l)>i||Math.abs(d)>i)){t.swiped=!0;var f="all";f=Math.abs(l)>i?"horizontal":f,f=Math.abs(d)>i?"vertical":f,t.swipe={deltaX:l,deltaY:d,direction:f}}if(a)switch(r){case"all":t.panned=!0,t.pan={deltaX:l,deltaY:d},a({deltaX:l,deltaY:d});break;case"horizontal":Math.abs(d)>Math.abs(l)&&!t.panEntered?(t.panOuted=!0,t.panned=!0,s&&s()):Math.abs(l)>0&&!t.panOuted&&(e.cancelable&&(e.preventDefault(),e.stopPropagation()),t.panEntered=!0,t.panned=!0,t.pan={deltaX:l},a({deltaX:l}))}}},t}return(0,u.C6)(t,e),Object.defineProperty(t.prototype,"dataAttrs",{get:function(){var e={};return(0,y.loopv)(this.props.data,(function(t,n){return e["data-".concat(n)]=t})),e},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.props,t=e.className,n=e.onTransitionEnd;return(0,i.h)("div",(0,u.Cl)({className:t,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onTouchMove:this.handleTouchMove,onTransitionEnd:n},this.dataAttrs),this.props.children)},t.defaultProps={threshold:50,direction:"all"},t}(i.uA),j=D,x=n(91287),U=n(2268),F=n(2264),B=n(75370),H=n(9810),G=n(22847),V=n(31253),W=n(2e3),q=110,Y=(0,o.memo)((function(e){var t=e.selectMode,n=e.conversation,r=e.selected,c=e.onSelectConversation,l=e.onResetSelectedConversation,d=(0,o.useRef)(),f=(0,o.useRef)(0),h=(0,o.useRef)(!1),v=(0,o.useRef)("tap"===t),_=(0,o.useRef)(0),y=(0,o.useRef)(0),w=(0,a.d4)(x.Kw),C=(0,a.d4)((function(e){return e.user})),T=(0,a.d4)((function(e){return e.isModerator})),L=n.rawData,M=L.users,D=L.last_message,Y=L.group_id,z=n.title,X=n.unreadCount,K=(0,o.useMemo)((function(){var e=[];return(n.rawData.users||[]).forEach((function(t){e.push(w.users[t.username]||t)})),1===e.length&&e[0].online}),[n,w]),J=D||{text:""},$=Boolean(n.typing),Q=Boolean(X),Z=void 0!==J.tip_amount,ee=void 0!==J.gift_name,te=!T&&function(e,t){return!(!(null==t?void 0:t.created_at)||!(null==e?void 0:e.length))&&e.some((function(e){var n=e.is_deleted||e.is_disabled,r="model"===e.role;return e.username===t.username&&r&&!n}))}(M,D),ne=J.type,re=m.q.isEnabled(p.i.MOBILE_NEW_MODEL_PROFILE),ie=(0,o.useCallback)((function(e){void 0===e&&(e=!0),d.current&&(d.current.style.transitionDuration="".concat(_.current,"s"),d.current.style.left="".concat(y.current,"px"),e&&document.dispatchEvent(new CustomEvent(k.R.ON_PAN,{detail:{posX:y.current,group_id:Y}})))}),[Y]),oe=(0,o.useCallback)((function(e){void 0===e&&(e=!0),_.current=.2,y.current=0,f.current=0,v.current=!1,ie(e)}),[ie]),ae=(0,o.useCallback)((function(e){e.detail.group_id!==Y&&0!==y.current&&(_.current=.2,y.current=0,f.current=0,ie(!1))}),[Y,ie]);return(0,o.useEffect)((function(){r&&"tap"===t&&(v.current=!0,_.current=.2,y.current=0,ie(!1),f.current=0),r||"press"!==t||(v.current=!1)}),[r,t,ie]),(0,o.useEffect)((function(){return document.addEventListener(k.R.ON_PAN,ae),function(){oe(!1),document.removeEventListener(k.R.ON_PAN,ae)}}),[ae,oe]),(0,i.h)(j,{direction:"horizontal",onPress:function(){if("tap"!==t){var e=n.rawData.group_id;v.current=!0,c(e)}},onPan:function(e){var n=e.deltaX;if(v.current=!0,!r&&"tap"!==t){h||(h.current=!0,f.current=y.current,document.dispatchEvent(new CustomEvent(k.R.ON_PAN,{detail:{posX:y.current,group_id:Y}})));var i=f.current+n;_.current=0,y.current=Math.abs(i)>q?Math.sign(n)*q:i,ie(!1)}},onPanEnd:function(){r||"tap"===t||(h.current=!1,v.current=!1,f.current===q&&y.currentf.current?oe():y.current>f.current?(_.current=.2,y.current=q,ie(),f.current=q):y.current0,onResetSelectedConversation:g,onSelect:function(e){var t=function(e,t){var n=[];switch(t){case r.ALL:(0,y.loopv)(e,(function(e){n.push(e.rawData.group_id)}));break;case r.UNSELECT:n=[];break;case r.READ:(0,y.loopv)(e,(function(e){e.unreadCount||n.push(e.rawData.group_id)}));break;case r.UNREAD:(0,y.loopv)(e,(function(e){e.unreadCount&&n.push(e.rawData.group_id)}))}return n}(v,e);f(t)},setIsOnlineOnly:m}),showBtAlert:!0,stickyBar:Boolean(d.length>0),title:__("Conversations")},(0,i.h)(K,{conversations:v,selectedConversations:d,isFetching:null==t?void 0:t.isFetching,isOnlineOnly:p,onResetSelectedConversation:g,onSelectConversation:function(e){var t,n,r=(n=e,(t=d).includes(n)?t.filter((function(e){return e!==n})):(0,u.fX)((0,u.fX)([],t,!0),[n],!1));f(r)}}),Boolean(v.length)&&(0,i.h)(c.A,{currentPage:t.page,hrefLinkBuilder:_,totalPagesCount:A,withReactRouter:!0,onPageChange:b}))}))},55177:function(e,t,n){"use strict";n.d(t,{A:function(){return hn}});var r,i=n(15215),o=n(50172),a=n(17402),s=n(81714),c=n(45070),u=n(13907),l=n(21110),d=n(98614),f=n(92276),h=n(828),p=n(64730),m=n(603),v=n(25763),g=n(54469),_=n(13839),b=n(26580),y=n(70726),A=n(75617),S=n(71136),E=n(80554),w=n(74213),C=n(31780),T=n(99430),L=n(45986),M=n(80782),k=n(49499),N=n(31150),I=n(19826),O=n(91287),P=0,R=n(29368),D=n(79276),j=function(e){return(0,i.sH)(void 0,void 0,void 0,(function(){return(0,i.YH)(this,(function(t){switch(t.label){case 0:return[4,n(9826)("./emoji_".concat(e,".json"))];case 1:return[2,t.sent()]}}))}))},x=function(){function e(){}return e.getInstance=function(){return(0,i.sH)(this,void 0,void 0,(function(){var t;return(0,i.YH)(this,(function(r){switch(r.label){case 0:return e._instance?[3,2]:[4,n.e(40).then(n.t.bind(n,75175,19))];case 1:t=r.sent(),e.smileysAutocomplete=t.SmileysAutocomplete,e._instance=new this,r.label=2;case 2:return[2,e._instance]}}))}))},e.init=function(t){return(0,i.sH)(this,arguments,void 0,(function(t,n){var r,o;return void 0===n&&(n=["bg","el","hr","lt","ro"]),(0,i.YH)(this,(function(a){switch(a.label){case 0:return e.smileysAutocomplete?[3,2]:[4,e.getInstance()];case 1:a.sent(),a.label=2;case 2:return[4,j("en")];case 3:return r=a.sent(),n.includes(t)?[3,5]:[4,j(t)];case 4:o=a.sent(),r=(0,i.Cl)((0,i.Cl)({},r),o),a.label=5;case 5:return[2,new e.smileysAutocomplete(r)]}}))}))},e}(),U=n(60544),F=n(22706),B=n(73424),H=n(12957),G=n(8546),V=n(14513),W=function(e){return{chatTranslatorSettings:e.chatTranslatorSettings,lang:e.lang,role:e.user.role,isTablet:e.isTablet}},q=function(){return{openMobilePopupDispatcher:function(e,t,n,r){return(0,D.JX)(t,n,r)},sendMessageDispatcher:function(e,t,n,r){return(0,k.E8)(t,n,void 0,r)},sendTypingNotificationDispatcher:function(e,t){return function(e){var t=I.A.getState(),n=(0,O.QL)(t,e),r=n.freeMembershipWarning,i=n.notEnoughTokensWarning,o=n.error,a=n.isFake;if(!(r||i||o||a)){var s=Date.now();s-P<2e3||(P=s,e&&(0,N.vE)({type:28,data:{group_id:e}}))}}(t)},showConversationAlertDispatcher:function(e,t,n){return(0,U.v8)(t,n)},toggleHotWordsDispatcher:function(e,t,n){return(0,U.np)(t,n)}}},Y=function(e){function t(t){var n,r=e.call(this,t)||this;return r.rootComponentRef=function(e){return r.rootComponent=e},r.messageElRef=function(e){return r.messageEl=e},r.footerRef=function(e){return r.footerEl=e},r.handleSmile=function(e){document.dispatchEvent(new CustomEvent(E.R.SMILEYS_TEXTAREA_INSERT_SMILE,{detail:{inputId:g.a.IM,token:e}}))},r.submitAction=function(e){var t=r.props,n=t.groupId,i=t.isChatIm,o=t.sendMessageDispatcher;r.setFieldValue("","reply"),r.closeSmileAutoCompleteTooltip(),o(e,n,i),document.dispatchEvent(new CustomEvent(E.R.SMILEYS_TEXTAREA_CLEAR,{detail:{inputId:g.a.IM,options:{isDontShowPlaceholder:!0}}})),w.M.reportEvent(37)},r.closeSmileAutoCompleteTooltip=function(){r.setState({smiles:{}})},r.handleOpenTranslatorSettings=function(){var e=r.props.openMobilePopupDispatcher;r.handleBlur(),e("full_screen",(function(){return(0,o.h)(R.A,{type:"im"})}),{title:__("Translator settings")})},r.handleChange=function(e,t){void 0===t&&(t=!1);var n=r.props,i=n.groupId,o=n.sendTypingNotificationDispatcher,a=n.showConversationAlertDispatcher,s=n.toggleHotWordsDispatcher,c=r.state,u=c.forceHideSmiley,l=c.smiles,d=c.isSmileysAutocompleteEnabled;o(i),r.setFieldValue(e,"reply");var f=(0,C.F)(String(e));if(s(i,f),f&&(a(i,"hotWords"),r.setState({showHotWordsAlert:!0})),d&&r.smileysAutocomplete){var h=e.split(" "),p="";(null==h?void 0:h.length)?(0,H.loop)(0,Math.min(3,h.length),(function(e){p=h[h.length-(e+1)]+(p?" ".concat(p):"")})):p=e;var m=r.smileysAutocomplete.getSmilesByPhrase(p);(0,B.b)(l,m)&&""!==p||r.setState({smiles:m})}r.messageEl.classList.contains("__focused")||r.messageEl.classList.add("__focused"),t?r.messageEl.focus():u||t||r.setState({forceHideSmiley:!0})},r.closeHotWordsAlert=function(){r.setState({showHotWordsAlert:!1})},r.handleBlur=function(){r.messageEl.classList.remove("__focused"),r.messageEl.blur()},r.handleFocusClick=function(){r.messageEl.classList.add("__focused"),setTimeout((function(){r.messageEl&&r.messageEl.classList.add("__focused")}),1)},r.handleInputBlur=function(e){var t,n=r.props,i=n.isPortrait,o=n.isTablet,a=e.target,s=document.body.getBoundingClientRect(),c=s.height,u=s.top,l=a instanceof HTMLImageElement,d=null===(t=r.rootComponent)||void 0===t?void 0:t.contains(a),f=document.getElementById("public-chat");if(r.messageEl&&r.messageEl.classList.contains("__focused"))return d&&o&&c<800&&!i&&f?(e.preventDefault(),void r.handleFocusClick()):!a.classList.contains("js_im_send_message_icon")&&!a.classList.contains("js_im_send_message")&&"#svg_mob_smile"!==a.getAttribute("href")||F.BrowserDetect.isIOS()&&0===u?void(d||l?(F.BrowserDetect.isAndroid()&&r.handleFocusClick(),0!==u&&r.handleFocusClick()):r.handleBlur()):(e.preventDefault(),void r.messageEl.focus())},r.handleWordToSmile=function(e,t,n){e.stopPropagation();var i=r.getField("reply").value,o=i.lastIndexOf(t),a="".concat(i.substring(0,o)+n," ");r.closeSmileAutoCompleteTooltip(),r.updateField({name:"reply",value:a}),document.dispatchEvent(new CustomEvent(E.R.SMILEYS_TEXTAREA_INSERT_TEXT,{detail:{inputId:g.a.IM,options:{endCaretPosition:!0},value:a}})),r.messageEl.focus()},r.handleOpenSmiley=function(){r.setState({forceHideSmiley:!1})},r.handleCustomSubmitForm=function(e){var t;e.preventDefault(),e.stopImmediatePropagation();var n=r.props,i=n.groupId,o=n.showConversationAlertDispatcher,a=(null===(t=r.getField("reply"))||void 0===t?void 0:t.value)||"",s=""===a.trim(),c=(null==a?void 0:a.length)<=400;(o(i,"notEnoughTokens"),o(i,"freeMembership"),o(i,"notFollower"),o(i,"error"),c&&!s)&&(r.handleSubmitForm(e),S.default.replace({callbackHasSmile:function(e){var t=e.amountSmiles;e.hasSmileMessage&&((0,A.y)(),t>0&&w.M.reportEvent(45,"click",{value:t}))},escape:!0,message:a,replacePremium:!0,saveAsRecent:!0},!0),r.messageEl.classList.contains("__focused")&&((F.BrowserDetect.isAndroid()||F.BrowserDetect.isFirefox_IOS())&&r.messageEl.focus(),0!==document.body.getBoundingClientRect().top&&r.messageEl.focus()))},r.state={error:"",fields:(n={},n.reply={maxLength:400,name:"reply",placeholder:__("Your private message here...")},n),forceHideSmiley:!1,loading:!1,showHotWordsAlert:!1,smiles:{},isSmileysAutocompleteEnabled:(0,V.checkSmilesSupport)(),isValid:!0},r.props.isChatIm&&(r.resizeObserver=new ResizeObserver((function(e){var t,n,r=e[0];(null===(n=null===(t=null==r?void 0:r.borderBoxSize)||void 0===t?void 0:t[0])||void 0===n?void 0:n.blockSize)&&document.body.style.setProperty("--bcm-chat-im-input-height","".concat(r.borderBoxSize[0].blockSize,"px"))}))),r}return(0,i.C6)(t,e),t.prototype.componentDidMount=function(){document.addEventListener("click",this.handleInputBlur),this.initAutocompleteSmile(),this.props.isChatIm&&this.resizeObserver.observe(this.rootComponent)},t.prototype.componentWillUnmount=function(){this.handleBlur(),document.removeEventListener("click",this.handleInputBlur),this.props.isChatIm&&this.resizeObserver.disconnect()},t.prototype.initAutocompleteSmile=function(){return(0,i.sH)(this,void 0,void 0,(function(){var e,t;return(0,i.YH)(this,(function(n){switch(n.label){case 0:if(e=this.props.lang,!this.state.isSmileysAutocompleteEnabled)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),t=this,[4,x.init(e)];case 2:return t.smileysAutocomplete=n.sent(),[3,4];case 3:return n.sent(),[3,4];case 4:return[2]}}))}))},t.prototype.beforeSubmit=function(){var e=this.getField("reply").value;e&&""!==e.trim()&&this.submit(e.trim())},t.prototype.render=function(){var e=this,t=this.props,n=t.chatTranslatorSettings,r=t.chatTranslatorSettings.imTranslatorEnabled,i=t.role,a=t.isChatIm,u=t.isDisabled,d=t.isHistoryReversed,f=this.state,h=f.forceHideSmiley,p=f.showHotWordsAlert,m=f.smiles,v=null==n?void 0:n.available;return(0,o.h)("div",{ref:this.footerRef,className:(0,G.n)({imc_footer:!0,__disabled:u})},(0,o.h)("form",{ref:this.rootComponentRef,className:(0,G.n)({imc_reply:!0,__alert_visible:p,__is_chat:d}),onSubmit:this.handleSubmitForm},(0,o.h)("div",{className:(0,G.n)({imc_r_form:!0,__translator:v})},v&&(0,o.h)("div",{className:(0,G.n)({"imc_r_button __translate":!0,__active:r}),onClick:this.handleOpenTranslatorSettings},(0,o.h)(b.A,{group:"imc_rb_icon",icon:"#svg_mob_translator"})),(0,o.h)("div",{className:"imc_rf_textarea_wrapper"},(0,o.h)("div",{className:"bcf_row"},(0,o.h)(_.X,{ref:this.messageElRef,id:g.a.IM,className:"bcf_control __textarea js_im_reply_textarea",maxLength:400,placeholder:__("Your private message here..."),dontSendMessageByEnter:!0,isMobile:!0,onBlur:this.handleInputBlur,onChange:this.handleChange,onClick:this.handleFocusClick}))),(0,o.h)(T.b,{className:"imc_r_button __smile",forceHide:h,onOpen:this.handleOpenSmiley,onPick:this.handleSmile})),(0,o.h)(M.$,{className:"imc_r_button __send js_im_send_message",color:"primary",htmlType:"button",isTouchSensitive:!0,onClick:this.handleCustomSubmitForm},(0,o.h)(b.A,{group:"imc_rb_icon js_im_send_message_icon",icon:"#svg_mob_send"})),Object.keys(m).length>0&&(0,o.h)("div",{className:(0,G.n)({imc_r_quick_smiles:!0,__reverted:d})},(0,H.loopv)(m,(function(t,n){return(0,o.h)("div",{key:n,className:"imc_r_qs_item",onClick:function(r){return e.handleWordToSmile(r,t,n)}},n)}))),(l.q.isDisabled(c.i.MOBILE_CHAT_HISTORY_SCROLL)||!a)&&p&&(0,o.h)(L.A,{className:"imc_r_alert",closeIcon:"mob_alert_close_around",shadow:d?"bottom":"top",variant:"warning",onClose:this.closeHotWordsAlert},i===s.A.ROLE_MODEL?trans("%b1%Terms of Service reminder:%b2% You may not communicate with users directly or provide your email, Skype, or phone number.",{b1:"",b2:""}):trans("%b1%Keep your money safe%b2% - never pay Models outside of BongaCams with instant money transfer services, such as Western Union, PayPal, WebMoney. In the past some Models have exploited these payment methods in order to defraud Members, so BongaCams has banned them from the site.",{b1:"",b2:""}))))},t=(0,i.Cg)([(0,d.Ng)(W,q)],t)}(y.A),z=n(14039);!function(e){e.INSTANT_MESSAGE="instantMessage"}(r||(r={}));var X,K,J=(0,a.memo)((function(e){var t;e.log;return t=(0,z.S)({name:"KickedChannel",handler:function(e){e.type===r.INSTANT_MESSAGE&&(0,m.rw)(e.data.username)}}).close,(0,a.useEffect)((function(){return function(){t()}}),[t]),null})),$=n(50151),Q=366e4,Z=function(e){var t;t="number"==typeof e?new Date(e+Q):new Date(Date.parse(e)+Q);var n=parseInt((0,$.i)(t,"P").split(":")[0],10),r=n>0?"+".concat(n):n;return(0,$.i)(t,"H:i d.m.Y")+" (GMT".concat(r,")")},ee=n(52804),te=n(99353),ne=n(33954),re=function(e){var t=e.onClose,n=e.closeIcon,r=e.shadow;return(0,o.h)(L.A,{variant:"warning",message:__("Private chat is for premium members only.")+" "+__("To become a premium (GOLD) member for life and unlock this feature, all you have to do is buy any amount of tokens one time!"),closeIcon:n,shadow:r,onClose:t})},ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.render=function(){var e=this.props.onClose;return(0,o.h)(L.A,{variant:"warning",message:trans("%bc1%Warning!%bc2%You have received a message from a person who you don't follow. %b1%Don't provide any personal information or open any links%b2% from people who you don't know to avoid possible fraud.",{bc1:'',bc2:"",b1:"",b2:""}),closeIcon:"mob_alert_close_around",onClose:e,shadow:"bottom"})},t}(o.uA),oe=ie,ae=function(e){var t=e.conversation,n=e.shadow,r=e.userRole,i=e.isChatIm,a=e.allClosable,u=t.hiddenAlerts||{},d=t.rawData.group_id,f=function(e){return function(){return(0,U.cB)(d,e)}};return(0,o.h)(o.FK,null,t.error&&!u.error&&(0,o.h)(L.A,{variant:"warning",message:t.error,shadow:n,onClose:f("error"),closeIcon:a?"mob_alert_close_around":void 0}),t.showAlert&&!u.notFollower&&(0,o.h)(oe,{onClose:f("notFollower")}),t.notEnoughTokensWarning&&!u.notEnoughTokens&&(0,o.h)(v.A,{isAlert:!0,className:"bc_flex bc_flex_wrap"}),t.freeMembershipWarning&&!u.freeMembership&&(0,o.h)(re,{closeIcon:a?"mob_alert_close_around":void 0,onClose:f("freeMembership"),shadow:n}),t.hotWordsWarning&&!u.hotWords&&l.q.isEnabled(c.i.MOBILE_CHAT_HISTORY_SCROLL)&&i&&(0,o.h)(L.A,{className:"imc_r_alert",variant:"warning",closeIcon:"mob_alert_close_around",shadow:n,onClose:f("hotWords")},r===s.A.ROLE_MODEL?trans("%b1%Terms of Service reminder:%b2% You may not communicate with users directly or provide your email, Skype, or phone number.",{b1:"",b2:""}):trans("%b1%Keep your money safe%b2% - never pay Models outside of BongaCams with instant money transfer services, such as Western Union, PayPal, WebMoney. In the past some Models have exploited these payment methods in order to defraud Members, so BongaCams has banned them from the site.",{b1:"",b2:""})))},se=n(30322),ce=n(14585),ue=n(62484),le=n(85678),de=n(16998),fe=n(75370),he=function(e){var t=e.forwardRef,n=e.date,r=e.lang,i=(0,a.useMemo)((function(){return["ru","en"].includes(r)?"d F Y":"F d, Y"}),[r]),s=(0,a.useMemo)((function(){if(!n)return null;var e=new Date;return n.toLocaleDateString()===e.toLocaleDateString()?__("Today"):n.toLocaleDateString()===new Date(e.setDate(e.getDate()-1)).toLocaleDateString()?__("Yesterday"):(0,$.i)(n,i)}),[n,i]);return(0,o.h)("div",{ref:t,className:"imch_date_wrp bc_flex bc_flex_items_center"},(0,o.h)("span",{className:"imch_date"},s))},pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.render=function(){var e=this.props.user;return(0,o.h)("div",{className:"empty_conversation"},(0,o.h)("div",{className:"ec_inner"},trans("Private messaging with %s1%%displayname%.%s2%",{s1:'',s2:"",displayname:e.display_name})))},t}(o.uA),me=pe,ve=n(61490),ge=n(76122),_e=n(2597),be=n(94398),ye=n(20634),Ae=n(92284),Se=[{name:be.r.RECENT,title:be.r.getTitle(be.r.RECENT),icon:"time",items:[]},{name:be.r.RECENT_REACTIONS,title:be.r.getTitle(be.r.RECENT_REACTIONS),icon:"time",items:[]},{name:be.r.CUSTOM,title:be.r.getTitle(be.r.CUSTOM),icon:"smiles",items:Ae.a_},{name:be.r.SMALL,title:be.r.getTitle(be.r.SMALL),icon:"smiles",items:Ae.cM},{name:be.r.BIG,title:be.r.getTitle(be.r.BIG),icon:"flags",items:Ae.FV},{name:be.r.TEXT,title:be.r.getTitle(be.r.TEXT),icon:"symbols",items:Ae.S6},{name:be.r.GRAPHICS,title:be.r.getTitle(be.r.GRAPHICS),icon:"travel",items:[]}],Ee=n(56803),we=function(){function e(){this.set=function(t){var n=e.convertEnumValueToLocalStorage([t])[0];ye.default.getInstance().set(n)},this.setUnicode=function(e){ye.default.getInstance().set({icon:e})},this.setReaction=function(t){if("string"==typeof t)ye.default.getInstance().setReaction({icon:t});else{var n=e.convertEnumValueToLocalStorage([t])[0];ye.default.getInstance().setReaction(n)}},this.allUnicodeSmileCollectionPattern=(0,V.getUnicodeSmileysPattern)(),this.standardSmileCollectionPattern=new RegExp(e.standardSmileCollectionItems.sort((function(e,t){return e.length-t.length})).reverse().join("|"),"g"),e.initCollections()}return e.initCollections=function(){e.allUnicodeSmileCollection=e.allUnicodeSmileCollection.length?e.allUnicodeSmileCollection:(0,V.getAllUnicodeSmileys)(),e.standardSmileCollection=e.standardSmileCollection.length?e.standardSmileCollection:Se.reduce((function(t,n){var r=n.items.reduce((function(e,t){return e.concat(t.tokens.map((function(e){return(0,Ae.ns)(e)})))}),[]);return e.standardSmileCollectionItems=e.standardSmileCollectionItems.concat(r),t.concat(n.items)}),[])},e.getInstance=function(){return e._instance||(this.initCollections(),e._instance=new this),e._instance},e.getAll=function(){this.initCollections();var t=[];if((0,Ee.O)()){var n=ye.default.getInstance().getAll(!0);t=n?e.convertLocalStorageToEnumValues(n):[]}return t},e.getReactionsAll=function(){this.initCollections();var t=[];if((0,Ee.O)()){var n=ye.default.getInstance().getSmileReactions();t=n?e.convertLocalStorageToEnumValues(n):[]}return t},e.convertEnumValueToLocalStorage=function(e){return e.map((function(e){return"string"==typeof e?{icon:e}:{url:e.src,shortcut:e.tokens[0]}}))},e.convertLocalStorageToEnumValues=function(e){var t=this;return e.map((function(e){if(e.icon)return e.icon;var n=t.standardSmileCollection.filter((function(t){return t.tokens.includes(e.shortcut)}));return n.length?n[0]:void 0}))},e.prototype.setByMessage=function(e){var t=this,n=null,r="",i=0,o=[];return[{pattern:this.allUnicodeSmileCollectionPattern,executeFn:this.setUnicode},{pattern:this.standardSmileCollectionPattern,executeFn:this.setStandardShortcut}].map((function(t){for(;n=t.pattern.exec(e);)o[n.index]={element:n[0],executeFn:t.executeFn}})),o.map((function(e){var n=e.element,o=e.executeFn;null!==n&&(r+=n,i+=1),o.call(t,n)})),{smileysResultsStr:r,smileysCount:i}},e.prototype.setStandardShortcut=function(t){var n=e.standardSmileCollection.filter((function(e){return e.tokens.includes(t)}));if(!n.length)return!1;this.set(n[0])},e.prototype.setStandardReactionShortcut=function(t){var n=(0,i.fX)((0,i.fX)([],e.standardSmileCollection.filter((function(e){return e.tokens.includes(t)})),!0),e.allUnicodeSmileCollection.filter((function(e){return e.includes(t)})),!0);if(!n.length)return!1;this.setReaction(n[0])},e.allUnicodeSmileCollection=[],e.standardSmileCollection=[],e.standardSmileCollectionItems=[],e}(),Ce=function(){function e(){}return e.getUnicodePack=function(e){return void 0===e&&(e=[]),[{name:be.r.RECENT,title:be.r.getTitle(be.r.RECENT),icon:"time",items:we.getAll()},{name:be.r.RECENT_REACTIONS,title:be.r.getTitle(be.r.RECENT_REACTIONS),icon:"time",items:we.getReactionsAll()},{name:be.r.SMALL,title:be.r.getTitle(be.r.SMALL),icon:"smiles",items:Ae.cM},{name:be.r.CUSTOM,title:be.r.getTitle(be.r.CUSTOM),icon:"custom",items:Ae.a_},{name:be.r.UNICODE_PEOPLE,title:be.r.getTitle(be.r.UNICODE_PEOPLE),icon:"smile",items:V.default.people,unicodeType:!0},{name:be.r.UNICODE_NATURE,title:be.r.getTitle(be.r.UNICODE_NATURE),icon:"nature",items:V.default.nature,unicodeType:!0},{name:be.r.UNICODE_FOOD,title:be.r.getTitle(be.r.UNICODE_FOOD),icon:"food",items:V.default.food,unicodeType:!0},{name:be.r.UNICODE_SYMBOLS,title:be.r.getTitle(be.r.UNICODE_SYMBOLS),icon:"symbols",items:V.default.symbols,unicodeType:!0},{name:be.r.UNICODE_FLAGS,title:be.r.getTitle(be.r.UNICODE_FLAGS),icon:"flags",items:V.default.flags,unicodeType:!0}].filter((function(t){return!e.includes(t.name)}))},e}(),Te=n(26616),Le=(0,o.q6)({packs:[],activePack:Ce.getUnicodePack().find((function(e){return e.name===be.r.CUSTOM})),recentType:be.r.RECENT,onSend:Te.noop,handleClose:Te.noop,changeActivePack:Te.noop}),Me={top:0,left:0,width:0,height:0},ke=function(e){var t=function(e){var t=e?e.getBoundingClientRect():Me;return{top:t.top,right:t.left+t.width,bottom:t.top+t.height,left:t.left}}(e),n=t.left,r=t.right,i=document.documentElement.offsetWidth||document.documentElement.clientWidth||window.innerWidth,o=0;return r>i?o=i-r:n<0&&(o=-n),o};!function(e){e.SMILEYS="sprite/bc/smile_3.svg"}(X||(X={})),function(e){e.RECENT="recent",e.SMALL="small",e.UNICODE="unicode"}(K||(K={}));var Ne=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={hide:t.props.hide},t.refSmileyIcon=function(e){t.props.smileyIconRef(e),t.smileyIcon=e},t}return(0,i.C6)(t,e),t.prototype.setVisible=function(){this.smileyIcon&&this.smileyIcon.classList.remove("smile_hidden")},t.prototype.render=function(){var e,t=this.props,n=t.style,r=t.type,i=t.className,a=t.hide,s=t.children,c=t.onClick;return(0,o.h)("div",{className:(0,G.n)((e={smile:!0,smile_small:r===K.SMALL,smile_unicode:r===K.UNICODE,smile_recent:r===K.RECENT,smile_hidden:a},e[i]=Boolean(i),e)),style:n,onClick:c,ref:this.refSmileyIcon},s)},t.defaultProps={hide:!0,type:K.SMALL,onClick:Te.noop,smileyIconRef:Te.noop},t}(o.uA),Ie=Ne,Oe=(0,a.forwardRef)((function(e,t){var n=e.item,r=e.type,i=(0,a.useContext)(Le).onSend,s=n.tokens,c=n.w,l=n.h,d=n.src,f=(0,u.ip)("@cdn_host")+"/images/chat/smiles/",h=(0,a.useRef)(null),p=(0,a.useRef)(null);(0,a.useImperativeHandle)(t,(function(){return p.current}));var m=function(){var e=n.src,t=n.staticSrc,r=n.hasAPNG,i="".concat(f).concat(e);return t&&(i=r?"".concat(f).concat((0,Ae.lH)(n)):"".concat(f).concat(t)),i}();return(0,o.h)(Ie,{ref:p,style:r!==K.RECENT?{width:c?"".concat(c,"px"):"",height:l?"".concat(l,"px"):""}:null,type:r,onClick:function(){return function(e){var t=e.length?e[0]:null;i(t)}(s)}},(0,o.h)("img",{className:"smileImage",key:d,src:m,alt:"",ref:h,onLoad:function(){p&&p.current.setVisible()},loading:"lazy"}))})),Pe=function(e){var t=e.item,n=e.isRecentList,r=(0,a.useContext)(Le).onSend;return(0,o.h)(Ie,{hide:!1,type:n?K.RECENT:K.UNICODE,onClick:function(){return r(t)}},t)},Re=function(e){var t=e.recentType,n=(0,a.useMemo)((function(){return Ce.getUnicodePack().find((function(e){return e.name===t}))}),[t]),r=(0,a.useMemo)((function(){var e=[];return n.items.map((function(t){if("string"==typeof t)e.push((0,o.h)(Pe,{key:t,item:t,isRecentList:!0}));else{var n=(0,i.Tt)(t,[]),r=(0,o.h)(Oe,{key:n.src,item:n,type:K.RECENT});e.push(r)}})),{smilesPackNew:e}}),[n.items]),s=r.smilesPackNew,c=!s.length;return(0,o.h)(le.A,{className:(0,G.n)({__empty_list:c})},(0,o.h)("div",{className:(0,G.n)({smilesRecentList:!0,smilesRecentList_empty:c})},!c&&s,c&&__("Recently used smileys will appear here")))},De=function(){var e=(0,a.useContext)(Le).activePack,t=(0,a.useMemo)((function(){return e.items.map((function(e,t){return(0,o.h)(Oe,{key:t,item:e,type:K.SMALL})}))}),[e.items]);return(0,o.h)(le.A,null,(0,o.h)("div",{className:"smilesDefaultList"},t))},je=function(){var e=(0,a.useContext)(Le).activePack;return e.items.length?(0,o.h)(le.A,{className:"bmsi_scroll"},(0,o.h)("div",{className:"smilesUnicodeList"},e.items.map((function(e){return(0,o.h)(Pe,{key:e,item:e})})))):null},xe=function(e){var t,n,r=e.className,i=(0,a.useContext)(Le),s=i.packs,c=i.activePack,u=i.recentType,l=i.changeActivePack,d=(0,a.useRef)(null);(0,a.useEffect)((function(){return f(),function(){d.current&&(d.current.style.transform="translate(0, 0)")}}),[]);var f=function(){var e=ke(d.current);d.current&&(d.current.style.transform="translate(".concat(e,"px, 0)"))},h=(0,a.useMemo)((function(){return c.name===u?(0,o.h)(Re,{recentType:u}):c.unicodeType?(0,o.h)(je,null):(0,o.h)(De,null)}),[c,u]);return(0,o.h)("div",{ref:d,className:(0,G.n)((t={smileysContainer:!0,smileysContainerBasic:!0},t[r]=Boolean(r),t))},(0,o.h)("div",{className:"smileysTitleWrapper"},(0,o.h)("span",{className:"smileysTitleText",dangerouslySetInnerHTML:{__html:c.title}})),(0,o.h)("div",{className:(0,G.n)((n={smileysIcons:!0},n[c.name]=!0,n))},h),(0,o.h)("div",{className:"smileysPanel"},s.map((function(e){return(0,o.h)("div",{key:e.name,className:(0,G.n)({tab:!0,tab_active:e.name===c.name}),onClick:function(){return l(e.name)}},Boolean(e.icon)&&(0,o.h)(b.A,{url:X.SMILEYS,group:"tabIcon",icon:"#svg_ch_tab_".concat(e.icon)}))}))))},Ue=function(e){var t=e.className,n=(0,a.useContext)(Le).handleClose,r=(0,a.useRef)(null),i=function(e){var t=e.target;r.current&&!r.current.contains(t)&&n()};return(0,a.useEffect)((function(){return document.addEventListener("click",i,!1),document.addEventListener("mousedown",i,!1),document.addEventListener(E.R.SMILEYS_CLOSE,n),function(){document.removeEventListener("click",i,!1),document.removeEventListener("mousedown",i,!1),document.removeEventListener(E.R.SMILEYS_CLOSE,n)}}),[]),(0,o.h)(xe,{className:t})},Fe=n(98166),Be=(0,a.memo)((function(e){var t=function(e){var t=e.icon,n=e.forceHide,r=e.recentType,i=void 0===r?be.r.RECENT:r,o=e.handleSend,s=e.onClose,c=void 0===s?Te.noop:s,u=i===be.r.RECENT?"sm_rt":"sm_rrt",l=(0,Fe.Mj)(u,be.r.CUSTOM),d=l[0],f=l[1],h=(0,a.useMemo)((function(){return Ce.getUnicodePack([be.r.SMALL,i===be.r.RECENT?be.r.RECENT_REACTIONS:be.r.RECENT])}),[i]),p=(0,a.useCallback)((function(e){return h.find((function(t){return t.name===e}))}),[h]),m=(0,a.useState)(!1),v=m[0],g=m[1],_=(0,a.useState)(p(d===be.r.SMALL?be.r.CUSTOM:d)),b=_[0],y=_[1],A=(0,a.useRef)(!1),S=(0,a.useCallback)((function(){g((function(e){return A.current=!e,!e}))}),[]),E=(0,a.useCallback)((function(){A.current&&(g(!1),A.current=!1,c())}),[c]),w=(0,a.useCallback)((function(e){o(e)}),[o]),C=(0,a.useCallback)((function(e){f(e),y(p(e))}),[f,p]);return(0,a.useEffect)((function(){n&&v&&E()}),[n,E,v]),{packs:h,opened:v,icon:t,activePack:b,recentType:i,onSend:w,toggleOpen:S,handleClose:E,changeActivePack:C}}(e);return(0,o.h)(Le.Provider,{value:t},(0,o.h)(Ue,{className:e.className}))})),He=n(65050),Ge=(0,a.memo)((function(e){var t=e.message,n=e.date,r=e.isOwn;return(0,o.h)("div",{className:"imch_msg_info bc_flex bc_flex_justify_f_end"},(0,o.h)("div",{className:"imch_msg_time"},n),t.isLocalMessage&&(0,o.h)("span",{className:"imch_msg_check __status __".concat(t.status?t.status.toLocaleLowerCase():"sent")},(0,o.h)(b.A,{group:"imch_mc_icon",icon:"#svg_mob_im_msg_".concat(t.status?t.status.toLocaleLowerCase():"sent")}))||r&&(0,o.h)("span",{className:(0,G.n)({"imch_msg_check __status":!0,__read:!t.unread,__sent:t.unread})},(0,o.h)(b.A,{group:"imch_mc_icon",icon:"#svg_mob_im_check_read"})))})),Ve=n(46517),We=n(22847),qe=n(56896),Ye=n(90712),ze=n(56575),Xe=n(62614),Ke=n(2268),Je=n(54022),$e=n(38905),Qe=function(){var e=(0,a.useState)(!1),t=e[0],n=e[1],r=(0,a.useState)(""),o=r[0],s=r[1],c=(0,a.useState)(!1),l=c[0],d=c[1],f=(0,a.useRef)(null),h=(0,Ve.d4)((function(e){return e.user.email})),p=(0,u.ip)("api_user_management_update_email"),m=(0,u.ip)("api_main_track_email_confirmation_activity");return(0,a.useEffect)((function(){if(h){f.current.value=h,d(!0);var e=location.href.split("/").pop();localStorage.setItem($e.Z,e)}}),[h]),(0,a.useEffect)((function(){(0,i.sH)(void 0,void 0,void 0,(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,Je.gQ)(m,{body:JSON.stringify({source:"promo_message"}),method:"POST"})];case 1:return e.sent(),[2]}}))}))}),[]),{inputEmailRef:f,formErrors:o,isDisabled:l,handleSendEmail:function(e){return(0,i.sH)(void 0,void 0,void 0,(function(){var r,o,a,c,u,l,h;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return e.preventDefault(),r=null==f?void 0:f.current,t||!r?[2]:(o=r.value.trim())?(n(!0),[4,(0,Je.gQ)(p,{method:"POST",body:JSON.stringify({email:o,source:"promo_message"})})]):(s(__("Required.")),[2]);case 1:return a=i.sent(),c=a.errors,u=a.status,n(!1),"success"===u?(d(!0),s(""),window.dispatchEvent(new CustomEvent(E.R.UPDATE_MEMBER_EMAIL,{bubbles:!0,detail:{email:o}}))):c&&(d(!1),(null===(l=c.email)||void 0===l?void 0:l[0])&&s(c.email[0]),(null===(h=c.global)||void 0===h?void 0:h[0])&&s(c.global[0])),[2]}}))}))}}},Ze=function(){var e=Qe(),t=e.inputEmailRef,n=e.isDisabled,r=e.formErrors,i=e.handleSendEmail;return(0,o.h)("form",{className:"pmc_form",onSubmit:i},(0,o.h)("div",{className:(0,G.n)({bcm_input_row:!0,__error:!!r})},(0,o.h)("label",{className:"bcm_i_label"},(0,o.h)("span",{className:"bcm_i_label_txt"},__("Enter email")),(0,o.h)("input",{ref:t,className:"bcm_form_input",disabled:n,type:"text"})),!!r&&(0,o.h)("div",{className:"bcm_i_error"},r)),(0,o.h)("button",{className:"mbc_btn __primary __fluid __full_round",disabled:n},n?__("Sent!"):__("Send link")))},et="62cd4106fd8a3b66d118e0d4",tt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.formRef=(0,a.createRef)(),t.renderSignature=function(){switch(t.props.message.signature){case"boris_en":return(0,o.h)("div",{className:"imch_msg_signature"},(0,o.h)("p",null,"My contact information:"),(0,o.h)("p",null,"Personal number: (+420) 734 119 961"),(0,o.h)("p",null,"Email: ",(0,o.h)("a",{href:"mailto:boris@bongacams.com"},"boris@bongacams.com")),(0,o.h)("p",null,"Skype: ",(0,o.h)("a",{href:"skype:boris@bongacams.com"},"boris@bongacams.com")),(0,o.h)("p",null,"Best regards,"),(0,o.h)("p",null,"Boris"));case"boris_ru":return(0,o.h)("div",{className:"imch_msg_signature"},(0,o.h)("p",null,"Мои контакты:"),(0,o.h)("p",null,"Личный номер: (+420) 734 119 961"),(0,o.h)("p",null,"Email: ",(0,o.h)("a",{href:"mailto:boris@bongacams.com"},"boris@bongacams.com")),(0,o.h)("p",null,"Skype: ",(0,o.h)("a",{href:"skype:boris@bongacams.com"},"boris@bongacams.com")),(0,o.h)("p",null,"С наилучшими пожеланиями,"),(0,o.h)("p",null,"Борис"))}},t}return(0,i.C6)(t,e),t.prototype.componentDidMount=function(){if(this.formRef.current){var e=this.formRef.current.querySelector(".js-pmc_form_container");Xe.w.renderNode((0,o.h)(Ve.Kq,{store:I.A},(0,o.h)(Ze,null)),e)}},t.prototype.render=function(){var e=this.props,t=e.message,n=e.messageTime,r=e.isGift,i=e.isOnlySmile,s=e.isPromo,c=e.isQuestionnaire,u=e.isTip,l=t.spam?__("This message was marked as spam and got deleted."):(0,Ye.P5)(ze.t.getInstance().getOutputText(t.text)),d=qe.A.getDisableWBRList().concat([et]).includes(t.type),f=l.includes("js-promo_inner_banner");return(0,o.h)("div",{ref:this.formRef,className:(0,G.n)({imch_msg_text_wrp:!0,__inner_banner:s&&f,__promo:s}),"data-time":i||r?null:n},u&&(0,o.h)(a.Fragment,null,trans("You have tipped %amount% %tokens_plural% to %s1%%model_name%!%s2%",{amount:t.tip_amount,model_name:''.concat(t.tip_to_user,""),s1:'',s2:"",tokens_plural:Ke.kX.pluralise("tokens",t.tip_amount)}),t.text&&(0,o.h)("br",null)),c&&(0,o.h)(We.E,{className:"imch_msg_text",html:(0,Ye.Pc)(t.text,t.vars,d,t.type),tagName:"span"}),s&&(0,o.h)(We.E,{className:"imch_msg_text",html:(0,Ye.Pc)(t.text,t.vars,d,t.type).replace(/target="_blank"/gm,""),tagName:"span"}),(t.text||t.spam)&&!s&&!c&&(0,o.h)(We.E,{className:"imch_msg_text",html:l,tagName:"span"}),t.signature&&this.renderSignature(),r&&(0,o.h)("img",{className:"imch_gift",alt:t.gift_name,src:t.gift_image_url}))},t}(a.PureComponent),nt=tt,rt=n(32330),it=n(22641),ot=function(){return{dispatchTranslateMessage:function(e,t,n){return(0,k.aq)(t,n)}}},at=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.translatorErrorMaxCounter=2,t.handleTranslateErrorMessageClick=function(){var e=t.props,n=e.message,r=e.dispatchTranslateMessage,i=e.groupId;n.translationErrorCounterthis.translatorErrorMaxCounter})},(0,o.h)("span",null,trans("Failed to translate message.%br% %a1%Try Again%a2%",{br:"
",a1:'',a2:""},{click:this.handleTranslateErrorMessageClick})))):(0,o.h)("div",{className:"imch_msg_translate","data-time":i},(0,o.h)(b.A,{group:"imch_translate_icon",icon:"#svg_mob_translator"}),(0,o.h)(We.E,{tagName:"span",className:"hit_message",html:(0,it.CN)((0,rt.gL)(a,"",15))}))},t=(0,i.Cg)([(0,d.Ng)(null,ot)],t)}(o.uA),st=at,ct=n(50445),ut=n(77858),lt=n(2601),dt=[lt.A.MEMBER_PAID_QUESTION_EXPIRED,lt.A.MEMBER_PAID_QUESTION_REJECTED,lt.A.MEMBER_PAID_QUESTION_ANSWER_VIOLATIONS,lt.A.MEMBER_PAID_QUESTION_COMPLAINT_REJECTED],ft=(0,a.lazy)((function(){return n.e(138).then(n.bind(n,22239))})),ht=function(e){function t(t){var n=e.call(this,t)||this;n.smileysHelperInstance=ze.t.getInstance(),n.isTablet=document.body.classList.contains("tablet"),n.elRef=function(e){n.el=e},n.buttonsRef=function(e){n.buttonsEl=e},n.handleTap=function(e,t){void 0===t&&(t=!1);var r=n.state,i=r.isContextMenuOpened,o=r.isSmilePanelOpened;n.setState({isContextMenuOpened:!i&&!t,isSmilePanelOpened:!o&&(t||!n.isWithButtons)}),n.viewportEl||(n.viewportEl=document.querySelector(".imc_history_box .mbc_scrollbar")),o&&document.dispatchEvent(new CustomEvent(E.R.REACTIONS_USERS_CLOSE))},n.handleCloseContextMenu=function(){F.BrowserDetect.isIOS()&&n.state.isSmilePanelOpened&&function(e){if(e){var t=e.style.opacity,n=(parseFloat(t)||1)-.01;e.style.opacity=String(n),setTimeout((function(){e.style.opacity=t}),1)}}(n.viewportEl),n.setState({isContextMenuOpened:!1,isSmilePanelOpened:!1})},n.handleResendMessage=function(){var e=n.props,t=e.groupId,r=e.message;(0,e.dispatchResendMessage)(r.text,t,r.id),n.handleCloseContextMenu()},n.handleDeleteMessage=function(){var e=n.props.onDeleteMessageClick;if(e)e();else{var t=n.props,r=t.groupId,i=t.message,o=t.dispatchDeleteConversationMessage,a=confirm(__("Delete this message?"));n.handleCloseContextMenu(),a&&o({groupId:r,messageId:i.id,isLocalMessage:i.isLocalMessage})}},n.handleToggleAsSpamMessage=function(){var e=n.props,t=e.message,r=e.dispatchSetConversationMessageAsSpam,i=e.dispatchUnsetConversationMessageAsSpam;t.spam?i(t.id):r(t.id),n.handleCloseContextMenu()},n.handleTranslateMessage=function(){var e=n.props,t=e.groupId,r=e.message;(0,e.dispatchTranslateMessage)(t,r),n.handleCloseContextMenu()},n.handleSmile=function(e){var t=n.props,r=t.message,i=r.id,o=r.reactions,a=void 0===o?[]:o,s=t.user,c=a.find((function(t){return t.reaction===e}));c&&c.users.includes(s.username)?(0,N.vE)({data:{message_id:i,reaction:e},type:48}):((0,N.vE)({data:{message_id:i,reaction:e},type:47}),we.getInstance().setStandardReactionShortcut(e),w.M.reportEvent(71,"click")),n.handleCloseContextMenu()};var r=t.message,i=t.user,o=t.isOwn;i.signupCountryId&&["US","AU","NZ","PH","CA"].includes(i.signupCountryId)&&(n.date=(0,$.i)(new Date(r.created_at),"g:i A")),n.date=(0,$.i)(new Date(r.created_at),"H:i");var a=s.A.isModerator(i.role);return n.isWithButtons=!o&&!a,n}return(0,i.C6)(t,e),t.prototype.render=function(){var e,t,n,r,i,s=this,c=this.props,u=c.chatTranslatorSettings,l=u.imTranslatorEnabled,d=u.targetLang,f=c.conversationUsers,p=c.groupId,m=c.message,v=c.user,g=c.viewportWidth,_=c.isOwn,y=c.isSexQuestionnaire,A=c.isTipWithMessage,S=this.state,E=S.isContextMenuOpened,w=S.isSmilePanelOpened,C=Boolean(m.tip_amount),T=void 0!==m.gift_name,L=(r=this.isWithButtons,i=_,r?ne.isRTLCulture?ut.L.TOP_LEFT:ut.L.TOP_RIGHT:i===ne.isRTLCulture?ut.L.BOTTOM_LEFT:ut.L.BOTTOM_RIGHT),M=(null==m?void 0:m.reactions)||[],k=M.length>0&&!m.spam&&!(C&&A),N=this.smileysHelperInstance,I=N.getClearText,O=N.getOutputText,P=Boolean(I(m.text).replace(/\r?\n/g,"").trim()),R=(0,Ye.P5)(O(m.text)),D=!m.spam&&(0,Ae.aT)(R),j=!(_||T||m.spam||y||v.membership===_e.A.FREE||10===(null===(e=null==m?void 0:m.reactions)||void 0===e?void 0:e.length)),x=!_&&l&&P&&!m.spam&&!(null===(t=m.translations)||void 0===t?void 0:t[d])&&!m.translationErrorCounter,U=l&&!m.spam&&((null===(n=m.translations)||void 0===n?void 0:n[d])||m.translationErrorCounter>0),F=j&&w&&function(e){return e<768}(g);return(0,o.h)("div",{className:"imch_item_wrp"},(0,o.h)("div",{ref:this.elRef,className:(0,G.n)({imch_item:!0,__action_btns:this.isWithButtons,__error:U&&m.translationErrorCounter>0,__gift:T,__only_gift:T&&!m.text,__only_smile:D,__only_smiles:!P&&!D&&!T,__spam:m.spam,__text_with_smile:P&&!D&&!T,__tip:C,__translate:U}),"data-id":m.id,onClick:(0,ct.s)(this.handleTap,!this.isWithButtons)},(0,o.h)(nt,{message:m,messageTime:this.date,user:v,isGift:T,isOnlySmile:D,isTip:C}),(0,o.h)(Ge,{date:this.date,message:m,isOwn:_}),U&&(0,o.h)(st,{groupId:p,message:m,messageTime:this.date,targetLang:d}),this.isWithButtons&&(0,o.h)("div",{ref:this.buttonsRef,className:"imch_msg_actions"},j&&(0,o.h)("div",{className:(0,G.n)({"imch_action_btn __smiles js-message_add_smile":!0,__active:w}),onClick:function(e){return s.handleTap(e,!0)}},(0,o.h)(b.A,{group:"imch_action_icon",icon:"#svg_mob_im_smiley_thin"})),(0,o.h)("span",{className:(0,G.n)({"imch_action_btn __context_menu js-message_context_menu":!0,__active:E}),onClick:this.handleTap})),(E||w)&&(0,o.h)(h.A,{root:"body"},(0,o.h)(ge.t,{className:(0,G.n)({__reactions:j&&w}),parent:this.isWithButtons?this.buttonsEl:this.el,position:L,viewport:this.viewportEl,isCentered:F,isMobile:!0,onClose:this.handleCloseContextMenu},j&&w&&(0,o.h)(Be,{recentType:be.r.RECENT_REACTIONS,handleSend:this.handleSmile}),E&&(0,o.h)(He.A,null,x&&(0,o.h)(He.A.Item,{onClick:this.handleTranslateMessage},__("Translate")),!_&&(0,o.h)(He.A.Item,{onClick:this.handleToggleAsSpamMessage},m.spam?__("Restore"):__("Spam")),_&&"UNSENT"===m.status&&m.showResend&&(0,o.h)(He.A.Item,{onClick:this.handleResendMessage},__("Resend")),(0,o.h)(He.A.Item,{variant:"delete",onClick:this.handleDeleteMessage},__("Delete")))))),(0,o.h)(a.Suspense,{fallback:null},k&&(0,o.h)(ft,{conversationUsers:f,messageId:m.id,reactions:M,userData:v,isOwn:_})))},t.state={isContextMenuOpened:!0,isSmilePanelOpened:!1},t}(a.PureComponent),pt=(0,d.Ng)((function(e){return{chatTranslatorSettings:e.chatTranslatorSettings}}),(function(){return{dispatchDeleteConversationMessage:function(e,t,n){return(0,i.sH)(void 0,void 0,void 0,(function(){var e,r,o;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return e=t.messageId,r=t.isLocalMessage,o=t.groupId,[4,(0,k.PT)({messageId:e,isLocalMessage:r,groupId:o},n)];case 1:return i.sent(),[2]}}))}))},dispatchSetConversationMessageAsSpam:function(e,t){return(0,k.bw)(t)},dispatchUnsetConversationMessageAsSpam:function(e,t){return(0,k.Ou)(t)},dispatchResendMessage:function(e,t,n,r){return(0,k.E8)(t,n,r)},dispatchTranslateMessage:function(e,t,n){return(0,k.aq)(t,n)}}}))(ht),mt=n(15286),vt=function(e){var t=e.close,n=e.deleteMessage,r=e.cancel;return(0,o.h)(mt.G,{confirmButtonText:__("Yes"),message:{text:__("Delete this message?")},title:__("Confirm"),cancelButtonText:__("No"),onCancel:r,onClose:t,onConfirm:n})},gt=n(47767),_t=function(e){return{chatTranslatorSettings:e.chatTranslatorSettings}},bt=function(){return{dispatchDeleteConversationMessage:function(e,t,n){return(0,i.sH)(void 0,void 0,void 0,(function(){var e,r,o;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return e=t.messageId,r=t.isLocalMessage,o=t.groupId,[4,(0,k.PT)({messageId:e,isLocalMessage:r,groupId:o},n)];case 1:return i.sent(),[2]}}))}))},dispatchSetConversationMessageAsSpam:function(e,t){return(0,k.bw)(t)},dispatchUnsetConversationMessageAsSpam:function(e,t){return(0,k.Ou)(t)},dispatchResendMessage:function(e,t,n,r){return(0,k.E8)(t,n,r)},dispatchTranslateMessage:function(e,t,n){return(0,k.aq)(t,n)},openMobilePopupDispatcher:function(e,t,n,r){return(0,D.JX)(t,n,r)}}},yt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleDeleteMessage=function(){var e=t.props,n=e.message,r=e.groupId,a=e.dispatchDeleteConversationMessage,s=e.onNavigate;t.setState({isContextMenuOpened:!1,isSmilePanelOpened:!1});var c=function(e){return(0,i.sH)(t,void 0,void 0,(function(){return(0,i.YH)(this,(function(t){return a({messageId:n.id,isLocalMessage:n.isLocalMessage,groupId:r},(function(e){e&&s&&s((0,u.ip)("@im_conversations?page=all"))})),e(),[2]}))}))};t.props.openMobilePopupDispatcher("delete_im_conversation_message_confirm_popup",(function(){return(0,o.h)(vt,{deleteMessage:c})}))},t}return(0,i.C6)(t,e),t.prototype.render=function(){return e.prototype.render.call(this)},t=(0,i.Cg)([(0,d.Ng)(_t,bt)],t)}(ht),At=function(e){var t=(0,gt.Zp)();return(0,o.h)(yt,(0,i.Cl)({},e,{onNavigate:function(e){t(e)}}))},St=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.render=function(){var e=this.props,t=e.avatar,n=e.children,r=e.isNotifyMessage,i=e.isOwn,a=e.isPromo;return r?n:(0,o.h)("div",{className:(0,G.n)({"imch_group bc_flex":!0,__own:i})},t,(0,o.h)("div",{className:(0,G.n)({"imch_list bc_flex bc_flex_column":!0,__promo:a})},n))},t}(a.PureComponent),Et=St,wt=n(36170),Ct=n(41669),Tt=(0,a.memo)((function(e){var t=e.message,n=e.user,r=(0,a.useRef)(),i=(0,a.useMemo)((function(){var e=n.signupCountryId&&["US","AU","NZ","PH","CA"].includes(n.signupCountryId);return(0,$.i)(new Date(t.created_at),e?"g:i A":"H:i")}),[t,n]),s=function(e){var t,n,r=null===(n=null===(t=e.target.parentNode)||void 0===t?void 0:t.dataset)||void 0===n?void 0:n.id;r&&(0,wt.C)(+r)};(0,a.useEffect)((function(){Ct(".gift_card_promo_wrapper a[rel=buy_tokens]").off("click").on("click",(function(e){location.href=Ct(e.target).attr("href")}));var e=r.current.querySelector(".js-promo_inner_banner");return e&&e.addEventListener("click",s),function(){Ct(".gift_card_promo_wrapper a[rel=buy_tokens]").off("click"),e&&e.removeEventListener("click",s)}}),[]);var c=[qe.A.MEMBER_SMILE,qe.A.MEMBER_SMILE_REJECT,qe.A.MEMBER_GIFT_CARD_REMINDER],u=[qe.A.MEMBER_MODEL_MADE_A_MODERATOR,qe.A.MEMBER_MODEL_MADE_A_MODERATOR_NEW,qe.A.MEMBER_MODEL_RELIEVED_MODERATOR];return(0,o.h)("div",{className:(0,G.n)({imch_item:!0,__clear:t.type&&!c.includes(t.type),__moderator:u.includes(t.type),__default:!qe.A.getCustomStyleList().includes(t.type),__down_ms:t.type===qe.A.MEMBER_MEMBERSHIP_DOWNGRADED}),ref:r,"data-id":t.id},(0,o.h)(nt,{message:t,user:n,isPromo:!0}),(0,o.h)(Ge,{message:t,isOwn:!1,date:i}))})),Lt=n(41669),Mt=["US","AU","NZ","PH","CA"],kt=(0,a.memo)((function(e){var t=e.message,r=e.user,i=(0,a.useMemo)((function(){var e=r.signupCountryId&&Mt.includes(r.signupCountryId);return(0,$.i)(new Date(t.created_at),e?"g:i A":"H:i")}),[r,t]);return(0,a.useEffect)((function(){return Lt(".gift_card_promo_wrapper a[rel=buy_tokens]").off("click").on("click",(function(e){location.href=Lt(e.target).attr("href")})),function(){Lt(".gift_card_promo_wrapper a[rel=buy_tokens]").off("click")}}),[]),(0,o.h)("div",{className:(0,G.n)({"imch_item __sq":!0,__sq_error:dt.includes(t.type)}),"data-id":t.id,onClick:function(e){"A"===e.target.tagName&&(e.preventDefault(),n.e(103).then(n.bind(n,9837)).then((function(e){var t=e.default;(0,D.JX)("auto_tokens_purchase",(function(){return(0,a.createElement)(t,{})}))})))}},(0,o.h)(nt,{message:t,user:r,isQuestionnaire:!0}),(0,o.h)(Ge,{date:i,message:t,isOwn:!1}))})),Nt=n(9810),It=function(e){var t=e.unreadCount,n=e.forwardRef,r=e.onClick;return(0,o.h)(M.$,{className:"jc-bcm_scroll_bottom",variant:"fab",active:Boolean(t),forwardRef:n,onClick:r},(0,o.h)(b.A,{group:"mbc_b_icon",icon:"#svg_mob_im_bottom"}),(0,o.h)(Nt.A,{invisible:!t},t))},Ot=function(e){var t=e.unreadCount,n=e.forwardRef,r=e.onClick;return(0,o.h)(M.$,{className:"mbc_b_top jc-bcm_scroll_bottom",variant:"fab",active:Boolean(t),forwardRef:n,onClick:r},(0,o.h)(b.A,{group:"mbc_b_icon",icon:"#svg_mob_im_bottom"}),(0,o.h)(Nt.A,{invisible:!t},t))},Pt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.render=function(){return(0,o.h)("div",{ref:this.props.innerRef,className:"imch_badge_unread"},__("Unread messages"))},t}(o.uA),Rt=Pt,Dt=n(15704),jt=n(14487),xt=n(62146),Ut=function(e){return{lang:(0,O.Xo)(e),user:e.user,users:(0,O.hn)(e)}},Ft=(0,a.lazy)((function(){return n.e(115).then(n.bind(n,87608))})),Bt=(0,a.lazy)((function(){return n.e(169).then(n.bind(n,67237))})),Ht=(0,a.lazy)((function(){return n.e(162).then(n.bind(n,46270))})),Gt=(0,a.lazy)((function(){return n.e(95).then(n.bind(n,7407))})),Vt=function(e){function t(t){var n=e.call(this,t)||this;return n.separators=[],n.scrollToBottomBtnRef=(0,a.createRef)(),n.createUnreadDividerInnerRef=(0,a.createRef)(),n.shouldIgnoreReadMessageHandler=!1,n.isResetShowFirstNoteFlag=!1,n.dateDividerRef=function(e,t){n.separators.push({date:t,el:e})},n.refScrollbar=function(e){return n.scrollbar=e},n.getScrollTop=function(){if(n.scrollbar)return n.scrollbar.scrollData.scrollTop},n.getScrollBottom=function(){if(n.scrollbar)return n.scrollbar.scrollData.scrollBottom},n.componentDidMount=function(){var e,t,r=n.props,i=r.conversation,o=r.isHistoryReversed,a=null!==(e=null==i?void 0:i.messages)&&void 0!==e?e:[];if(null==i?void 0:i.rawData){var s=(0,jt.zs)(i.rawData)&&1===a.length,c=null!==(t=i.unreadCount)&&void 0!==t?t:0,u=o?0===n.getScrollBottom():0===n.getScrollTop();if(a.length>=Dt.UT&&u&&n.loadMessages(),n.scrollbar&&i&&i.messages&&c>0){if(n.shouldIgnoreReadMessageHandler=!0,n.createUnreadDividerInnerRef.current){n.scrollbar.autoScroll=!1;var l=o?n.createUnreadDividerInnerRef.current.offsetTop-22-46:n.createUnreadDividerInnerRef.current.offsetTop;n.scrollbar.scrollTo(l),n.checkShowButtonToggleScrollTo()}else o||s?n.scrollbar.scrollTo(0):n.scrollbar.scrollToBottom();n.readVisibleMessages()}window.addEventListener("focus",n.handleFocus),window.addEventListener("resize",n.handleResize)}},n.componentWillUpdate=function(e){var t,r,i,o=n.props,a=o.conversation,s=o.user,c=o.isHistoryReversed;if(a&&a.messages&&e.conversation&&e.conversation.messages&&e.conversation.messages.length!==a.messages.length){var u=e.conversation.messages.length-a.messages.length==1;if(document.hasFocus()&&n.readVisibleMessages(),n.scrollbar){var l=n.scrollbar.scrollData,d=n.props.conversation&&n.props.conversation.messages||[],f=e.conversation&&e.conversation.messages||[],h=0===l.scrollTop,p=l.scrollHeight-(l.scrollTop+l.clientHeight)<=20,v=d[0]&&f[0]&&d[0].id===f[0].id;if(c&&n.createUnreadDividerInnerRef.current){var g=document.querySelector(".js-chat-content");g&&!g.classList.contains("__im_visible")&&n.scrollbar.scrollTo(n.createUnreadDividerInnerRef.current.offsetTop-22-46)}if(n.scrollbar.autoScroll=h||p||v,u&&c)xt.default.swipeState&&"im"===xt.default.swipeState&&h&&(null===(t=f[0])||void 0===t?void 0:t.username)!==(null==s?void 0:s.username)?(0,m.Mb)(null!==(i=null===(r=a.rawData)||void 0===r?void 0:r.group_id)&&void 0!==i?i:""):h||(n.scrollbar.autoScroll=!0,n.scrollbar.saveScrollPosition())}}},n.componentWillUnmount=function(){window.removeEventListener("focus",n.handleFocus),window.removeEventListener("resize",n.handleResize)},n.checkShowButtonToggleScrollTo=function(){var e,t=n.props.isHistoryReversed;if(n.scrollbar){var r=t?n.scrollbar.scrollData.scrollTop>20:n.scrollbar.scrollData.scrollHeight-(n.scrollbar.scrollData.scrollTop+(null===(e=n.scrollbar.scrollbarEl)||void 0===e?void 0:e.offsetHeight))>20;n.toggleShowScrollToBtn(r)}},n.handleResize=function(){var e=window.innerWidth;n.state.viewportWidth!==e&&n.setState({viewportWidth:e})},n.groupMessages=function(e){var t,r,i,c,u=n.props,l=u.lang,d=u.isHistoryReversed,f=null===(r=null===(t=e.rawData)||void 0===t?void 0:t.users)||void 0===r?void 0:r[0],h=null!==(c=null===(i=e.rawData)||void 0===i?void 0:i.group_id)&&void 0!==c?c:"",p=e.rawData&&!(null==e?void 0:e.more)&&(null==f?void 0:f.role)!==s.A.ROLE_MODERATOR&&(null==e?void 0:e.isShowFirstNote)&&!(null==f?void 0:f.follow_status);(null==e?void 0:e.isShowFirstNote)&&!n.isResetShowFirstNoteFlag&&(null==f?void 0:f.follow_status)&&(n.isResetShowFirstNoteFlag=!0,(0,N.vE)({data:{group:h,show_first_note:!1},type:42}));var m=e&&"sex-questionnaire"===(null==f?void 0:f.role),v=e&&e.messages||[],g=v[v.length-1],_=[],b=[],y=[];return v.forEach((function(t,r){var i,s,c=v[r+1],u=v[r+2],A=new Date(t.ts),S=c&&A.toLocaleDateString()!==new Date(c.ts).toLocaleDateString(),E=c&&e.firstNewMessageId===t.id,w=m?(null===(i=null==c?void 0:c.vars)||void 0===i?void 0:i.modelName)!==(null===(s=null==t?void 0:t.vars)||void 0===s?void 0:s.modelName):(null==c?void 0:c.username)!==(null==t?void 0:t.username);y.push(t),(!c||Boolean(t.tip_amount)||Boolean(null==c?void 0:c.tip_amount)&&c.id!==t.id||Boolean(null==u?void 0:u.tip_amount)&&(null==c?void 0:c.id)===(null==u?void 0:u.id)||Boolean(null==t?void 0:t.gift_name)||Boolean(null==c?void 0:c.gift_name)||w||E||S||(t.ts-c.ts)/1e3>120||Boolean(t.notifyData)||Boolean(c.notifyData))&&(b.push(d?y:y.reverse()),y=[],(!c||w||S||E)&&(_.push(d?b:b.reverse()),b=[],g.id===t.id&&p&&_.push((0,o.h)(a.Suspense,{fallback:null},(0,o.h)(Ft,{conversationId:h,userData:f,isHistoryReversed:d}))),!S&&c||_.push((0,o.h)(he,{forwardRef:function(e){return e&&n.dateDividerRef(e,A)},date:A,lang:l})),E&&_.push((0,o.h)(Rt,{innerRef:n.createUnreadDividerInnerRef}))))})),d?_:_.reverse()},n.readVisibleMessages=function(){var e,t=n.props,r=t.conversation,i=t.user,o=t.isChatIm,a=t.isHistoryReversed,s=r.unreadCount||0,c=null===(e=r.rawData)||void 0===e?void 0:e.group_id,u=xt.default.swipeState&&"im"===xt.default.swipeState;if(r&&s&&c&&n.scrollbar&&(!o||u)){var l=n.scrollbar.scrollData,d=[],f=(r.messages||[]).filter((function(e){return e.username!==(0,ce.y)(null==i?void 0:i.username)}));f.slice(0,s).forEach((function(e){var t=n.rootComponent.querySelector('[data-id="'.concat(e.id,'"]'));if(t&&l.clientHeight){var r=!l||l.scrollTop+l.clientHeight-t.offsetHeight>=t.offsetTop;a&&(r=0===l.scrollTop||l.scrollTop<=t.offsetTop+t.offsetHeight),r&&e.ts&&d.push(e.ts)}})),d.length?(0,m.q$)(Math.max.apply(Math,d),d.length,c):f.length||(0,m.Mb)(c)}},n.handleFocus=function(){n.readVisibleMessages(),n.checkShowButtonToggleScrollTo()},n.loadMessages=function(){var e;if(!n.state.isFetching){var t=null===(e=n.props.conversation.rawData)||void 0===e?void 0:e.group_id;t&&(0,de.i1)(t,!1,(function(e){n.setState({isFetching:e})}))}},n.toggleShowScrollToBtn=function(e){n.scrollToBottomBtnRef.current&&(n.scrollToBottomBtnRef.current.style.display=e?"block":"")},n.handleScroll=function(){var e=n.props.isHistoryReversed,t=n.state.isFetching;window.clearTimeout(n.scrollTimeout),xt.default.swipeState&&"im"!==xt.default.swipeState||t||(n.scrollTimeout=window.setTimeout((function(){var t,r=!1;n.scrollbar&&(r=e?n.scrollbar.scrollData.scrollTop>20:n.scrollbar.scrollData.scrollHeight-(n.scrollbar.scrollData.scrollTop+(null===(t=n.scrollbar.scrollbarEl)||void 0===t?void 0:t.offsetHeight))>20),n.toggleShowScrollToBtn(r),n.shouldIgnoreReadMessageHandler||n.readVisibleMessages(),n.shouldIgnoreReadMessageHandler=!1,(0,ue.R)(),document.dispatchEvent(new CustomEvent(E.R.REACTIONS_USERS_CLOSE))}),20))},n.handleScrollToBottom=function(){var e;null===(e=n.scrollbar)||void 0===e||e.scrollToBottom()},n.handleScrollToTop=function(){var e;null===(e=n.scrollbar)||void 0===e||e.scrollTo(0)},n.handleClickScrollbar=function(){(0,ue.R)()},n.state={viewportWidth:window.innerWidth,isFetching:!1},n}return(0,i.C6)(t,e),t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.conversation,r=t.user,i=t.isHistoryReversed,o=e.conversation&&e.conversation.messages||[],a=n&&n.messages||[],s=o[0],c=a[0];this.scrollbar&&s&&c&&s.id!==c.id&&c.username===(0,ce.y)(null==r?void 0:r.username)&&(this.scrollbar.autoScroll=!1,i?this.scrollbar.scrollTo(0):this.scrollbar.scrollToBottom()),e.isHistoryReversed!==i&&this.checkShowButtonToggleScrollTo()},t.prototype.render=function(){var e,t,n,r,i,c,u,l,d,f,h=this.props,m=h.conversation,v=h.kickedData,g=h.user,_=h.users,b=h.isChatIm,y=h.isHistoryReversed,A=h.isMemberBanned,S=h.isModelBanned,w=this.state,C=w.viewportWidth,T=w.isFetching;if(!m)return null;var L=null===(e=m.rawData)||void 0===e?void 0:e.group_id,M=m.unreadCount||0,k=this.groupMessages(m),N=null!==(n=null===(t=null==m?void 0:m.rawData)||void 0===t?void 0:t.users)&&void 0!==n?n:[],I=N.length>0&&N[0],O=Boolean(v),P=O||A||S,R=(0,jt.zs)(null==m?void 0:m.rawData)&&1===(null===(r=null==m?void 0:m.messages)||void 0===r?void 0:r.length),D=1===N.length&&(null===(i=N[0])||void 0===i?void 0:i.role)===s.A.ROLE_MODEL&&0===(null===(c=null==m?void 0:m.messages)||void 0===c?void 0:c.length)&&!(null==m?void 0:m.isAllMessagesDelete),j=!S&&!A;return(0,o.h)("div",{ref:this.rootComponentRef,className:(0,G.n)({imc_history_box:!0,__in_chat:y})},(0,o.h)(le.A,{ref:this.refScrollbar,className:"jc-bcm_history_box",customResizeEvent:b?E.R.RESIZE_CHAT:"",reverse:!y&&!R,onClick:this.handleClickScrollbar,onScroll:this.handleScroll,onScrollToBottom:(0,ct.s)(this.loadMessages,y&&!D),onScrollToTop:(0,ct.s)(this.loadMessages,!y&&!D)},y&&!P&&(0,o.h)(fe.A,{conversation:m}),(0,o.h)(a.Suspense,{fallback:null},y&&O&&(0,o.h)(Bt,{className:"__kicked_in_chat",data:v})),!y&&(0,o.h)(p.y,{className:"imch_spinner",show:T}),!T&&b&&!k.length&&I&&!P&&(0,o.h)(me,{user:I}),(0,o.h)("div",{className:(0,G.n)({imc_history_messages:!0,__in_chat:y})},j&&(0,H.loopv)(k,(function(e){if(!Array.isArray(e))return e;if(e.length){var t=e[e.length-1],n=t[t.length-1],r=n.username===(0,ce.y)(null==g?void 0:g.username),i=_[n.username||L],s=i&&"promo"===i.role,c=i&&"sex-questionnaire"===i.role;return i||r?(0,H.loopv)(e,(function(e){var t,n,u,l,d,f=2===e.length&&e.filter((function(e){return Boolean(e.tip_amount)})).length>0;return(0,o.h)(Et,{key:e[0].id,avatar:(0,o.h)(ve.T,{avatarImg:null===(n=null===(t=e[0])||void 0===t?void 0:t.vars)||void 0===n?void 0:n.avatar,avatarLinkUrl:null===(l=null===(u=e[0])||void 0===u?void 0:u.vars)||void 0===l?void 0:l.url,conversationUser:r?g:i,isOwn:r}),isNotifyMessage:Boolean(null===(d=e[0])||void 0===d?void 0:d.notifyData),isOwn:r,isPromo:s},(0,H.loopv)(e,(function(e){return e.notifyData?(0,o.h)(a.Suspense,{fallback:null},(0,o.h)(Ht,{message:e.notifyData})):s?(0,o.h)(Tt,{message:e,user:g}):c?(0,o.h)(kt,{message:e,user:g}):b?(0,o.h)(pt,{conversationUsers:_,groupId:L,message:e,user:g,viewportWidth:C,isChatIm:!0,isOwn:r,isTipWithMessage:f}):(0,o.h)(At,{conversationUsers:_,groupId:L,message:e,user:g,viewportWidth:C,isChatIm:!1,isOwn:r,isTipWithMessage:f})})))})):null}}))),!y&&!P&&(0,o.h)(fe.A,{conversation:m}),(0,o.h)(a.Suspense,{fallback:null},!y&&O&&(0,o.h)(Bt,{className:"__kicked_im",data:v}),D&&!P&&(0,o.h)(Gt,{className:(0,G.n)({__tips_im:!b,__tips_in_chat:b}),displayName:null!==(l=null===(u=N[0])||void 0===u?void 0:u.display_name)&&void 0!==l?l:"",username:null!==(f=null===(d=N[0])||void 0===d?void 0:d.username)&&void 0!==f?f:""}))),y&&(0,o.h)(p.y,{className:"imch_spinner __bottom",show:T}),y&&(0,o.h)(Ot,{forwardRef:this.scrollToBottomBtnRef,unreadCount:M,onClick:this.handleScrollToTop}),!y&&(0,o.h)(It,{forwardRef:this.scrollToBottomBtnRef,unreadCount:M,onClick:this.handleScrollToBottom}))},t=(0,i.Cg)([(0,d.Ng)(Ut)],t)}(se.i),Wt=n(41669),qt=function(){return(0,a.useEffect)((function(){Wt(document).trigger("chat-drag-resize-update")}),[]),null},Yt=function(e){var t;return{memberKicked:e.memberKicked,modelName:(null===(t=e.chatHost)||void 0===t?void 0:t.username)||null,isMemberBanned:e.isMemberBanned,isModelBanned:e.isModelBannedMobile}},zt=n(36194),Xt=function(){return{dispatchCancelIncludedTip:zt.ql}},Kt=function(e){function t(t){var n=e.call(this,t)||this;return n.handleClose=function(){var e=n.props;(0,e.dispatchCancelIncludedTip)({groupId:e.groupId})},n}return(0,i.C6)(t,e),t.prototype.render=function(){var e=this.props.tip;return(0,o.h)(L.A,{message:__("You have included %tokens%",{tokens:"".concat(e," ").concat(Ke.kX.pluralise("tokens",e))}),closeIcon:"mob_alert_close_around",onClose:this.handleClose,className:"__tip"})},t=(0,i.Cg)([(0,d.Ng)(null,Xt)],t)}(o.uA),Jt=n(41669),$t=function(e){function t(t){var n=e.call(this,t)||this;return n.clearKickedModelsTimer=0,n.startClearTimerKickedData=function(e,t){e&&t&&(clearTimeout(n.clearKickedModelsTimer),n.clearKickedModelsTimer=window.setTimeout((function(){n.setState({kickedData:null}),(0,m.JE)(t)}),e))},n.updateHistoryDirection=function(){var e=n.props.isChatIm,t=!(0,ee.Yg)(),r=document.body.classList.contains("tablet"),i=r&&t;n.setState({isHistoryReversed:e&&(!r||i),isPortrait:t})},n.debouncedUpdateHistoryDirection=(0,te.s)(n.updateHistoryDirection,20),n.renderReplyForm=function(){var e=n.props,t=e.conversation,r=void 0===t?{}:t,i=e.isChatIm,a=n.state,s=a.kickedData,c=a.isHistoryReversed,u=a.isPortrait,l=r.rawData,d=r.isDisableReply;return void 0!==d&&d||!(null==l?void 0:l.group_id)?null:(0,o.h)(Y,{groupId:l.group_id,isChatIm:i,isDisabled:Boolean(s),isHistoryReversed:c,isPortrait:u})},n.repositionAlertContainer=function(e){var t,r=document.getElementById("bChatContent"),i=((null===(t=n.rootComponent)||void 0===t?void 0:t.getBoundingClientRect())||{}).height,o=void 0===i?0:i,a=function(){e.style.top="".concat(o,"px"),e.style.bottom="auto",e.classList.remove("__above");var t=e.getBoundingClientRect().bottom+o>window.innerHeight;t&&(e.style.top="auto",e.style.bottom="0",e.classList.add("__above")),n.state.areAlertsAbove!==t&&n.setState({areAlertsAbove:t}),!r||r.classList.contains("__im_visible")||r.classList.contains("__auto_message_visible")||(e.style.transform="translateX(".concat(100*(ne.isRTLCulture?-1:1),"%)"))},s=new ResizeObserver((function(e){var t=e[0].contentRect;o=t.height,a()}));return globalThis.addEventListener("resize",a),Jt(document).on("chat-drag-resize-move",a),n.rootComponent&&s.observe(n.rootComponent),a(),function(){globalThis.removeEventListener("resize",a),Jt(document).off("chat-drag-resize-move",a),s.disconnect()}},n.state={kickedData:null,areAlertsAbove:!1,isHistoryReversed:!1,isPortrait:!1},n.updateHistoryDirection(),n}return(0,i.C6)(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.debouncedUpdateHistoryDirection),window.addEventListener("orientationchange",this.debouncedUpdateHistoryDirection)},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t,n,r,i=this.props.memberKicked,o=this.state.kickedData,a=e.conversation,c=void 0===a?{}:a,u=e.memberKicked,l=void 0===u?"":u,d=c.kickedBy,f=c.rawData,h=void 0===f?{}:f,p=null===(t=h.users)||void 0===t?void 0:t[0];if((null==p?void 0:p.role)===s.A.ROLE_MODEL&&1===(null===(n=h.users)||void 0===n?void 0:n.length)&&((l!==i?["mcm","model"].includes(l):d)&&!o)){var m,v=(null===(r=null==d?void 0:d[0])||void 0===r?void 0:r.kicked_at)||new Date(Date.now()).toISOString(),g={avatarUrl:p.image_small,date:Z(v),displayName:p.display_name},_=(m=v,new Date(Date.parse(m)+Q).getTime()-(new Date).getTime());this.setState({kickedData:g}),this.startClearTimerKickedData(_,h.group_id)}},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.debouncedUpdateHistoryDirection),window.removeEventListener("orientationchange",this.debouncedUpdateHistoryDirection)},t.prototype.render=function(){var e,t=this.props,n=t.conversation,r=t.conversationUsers,i=t.isChatIm,s=t.isMemberBanned,u=t.isModelBanned,d=t.isPrefetching,f=this.state,m=f.kickedData,g=f.areAlertsAbove,_=f.isHistoryReversed,b=null==n?void 0:n.notEnoughTokensWarning,y=1===(null==r?void 0:r.length)&&"promo"===r[0].role,A=document.body.classList.contains("tablet"),S=l.q.isEnabled(c.i.MOBILE_CHAT_HISTORY_SCROLL)&&i&&!A,E=Boolean(n.error)||n.showAlert||n.freeMembershipWarning||n.hotWordsWarning||b;return!(null===(e=null==n?void 0:n.rawData)||void 0===e?void 0:e.group_id)||!i&&d?(0,o.h)(p.y,{className:"imc_spinner",show:!0}):i&&b?(0,o.h)("div",{className:"imc __full_alert"},(0,o.h)(v.A,{className:"bc_flex bc_flex_wrap bc_flex_full_center",isAlert:!1,isIcon:!1})):(0,o.h)(a.Fragment,null,_&&this.renderReplyForm(),(0,o.h)(qt,null),(0,o.h)("div",{ref:this.rootComponentRef,className:"imc"},S&&E&&(0,o.h)(h.A,{className:"imc_alerts",root:".chat_alert_container",onMount:this.repositionAlertContainer},(0,o.h)(ae,{allClosable:!0,conversation:n,shadow:g?"top":"bottom",isChatIm:i})),!S&&E&&(0,o.h)("div",{className:"imc_alerts"},(0,o.h)(ae,{conversation:n,shadow:g?"top":"bottom",isChatIm:i})),(0,o.h)(Vt,{conversation:n,kickedData:m,isChatIm:i,isHistoryReversed:_,isMemberBanned:s,isModelBanned:u}),!y&&(0,o.h)("div",{className:"imc_footer_alerts"},(null==n?void 0:n.tip)&&(0,o.h)(Kt,{groupId:n.rawData.group_id,tip:n.tip})),!_&&this.renderReplyForm()),(0,o.h)(J,null))},t=(0,i.Cg)([(0,d.Ng)(Yt)],t)}(f.I),Qt=n(11283),Zt=n(96998),en=(0,a.lazy)((function(){return n.e(119).then(n.bind(n,80306))})),tn=function(e){var t=e.conversationUser,n=function(e){var t=(0,a.useState)(!1),n=t[0],r=t[1],i=(0,Zt.gf)("@api_im_context_menu?username=".concat(e),{onSuccess:function(){return r(!0)}}),o=i.data,s=i.send,c=i.isLoading;return{menuData:o,isOpened:n,handleButtonClick:function(){c||n||s()},handleMenuClose:function(){r(!1)}}}(null==t?void 0:t.username),r=n.menuData,s=n.isOpened,u=n.handleButtonClick,d=n.handleMenuClose;return(0,o.h)(o.FK,null,(0,o.h)("button",{className:"hdm_menu_btn",onClick:u},l.q.isNew(c.i.MOBILE_INSTANT_MESSAGE_CONTEXT_MENU)&&(0,o.h)(Qt.j,{icon:Qt.a.NEW_LARGE})),(0,o.h)(a.Suspense,{fallback:null},s&&r&&(0,o.h)(en,(0,i.Cl)({},e,{menuData:r,handleClose:d}))))},nn=n(31253),rn=n(2264),on=n(53336),an=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleOpenTipPopup=function(){return(0,i.sH)(t,void 0,void 0,(function(){var e,t;return(0,i.YH)(this,(function(r){switch(r.label){case 0:return e=this.props.groupId,[4,Promise.all([n.e(11),n.e(16),n.e(12),n.e(54),n.e(64),n.e(101)]).then(n.bind(n,92717))];case 1:return t=r.sent(),(0,D.JX)("im_tip",(function(){return(0,a.createElement)(t.default,{groupId:e,isChatIm:!1})})),[2]}}))}))},t}return(0,i.C6)(t,e),t.prototype.render=function(){return(0,o.h)("span",{className:"mbc_h_btn __tip",onClick:this.handleOpenTipPopup},(0,o.h)(b.A,{group:"mbc_h_icon",icon:"#svg_mob_tip",url:on.zm}),(0,o.h)("span",{className:"mbc_h_text"},__("%_header_%Tip")))},t}(o.uA),sn=an,cn=n(6743),un=n(75463),ln=n(78560),dn=n(63065),fn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderAvatar=function(e){var n=t.props.conversationUsers;return(0,o.h)(rn.H,{className:"mbch_avatar",users:e||n,isShowMembership:!1})},t.renderMuteButton=function(e,t,n){return(0,o.h)(nn.A,{className:"mbch_mute_btn",groupId:e,iconGroup:(0,G.n)({mbch_mute:!0,__mobile_new_profile_bng_17983:l.q.isEnabled(c.i.MOBILE_NEW_MODEL_PROFILE)}),iconShadow:!0,isMuted:t,onlyIcon:n})},t.getPageTitle=function(){var e,n=t.props,r=n.conversation,i=n.conversationUsers,d=1===i.length&&i[0].online,f=(null==r?void 0:r.rawData)||{},h=(0,it.CN)(r.title),p=l.q.isEnabled(c.i.MOBILE_NEW_MODEL_PROFILE);if(!r.title)return null;if(i.length>1)return(0,o.h)(a.Fragment,null,!(0,jt.zs)(f)&&t.renderMuteButton(null==f?void 0:f.group_id,null==f?void 0:f.muted,!p),t.renderAvatar(),(0,o.h)("span",{className:"mhcht_text"},h));var m=null===(e=null==f?void 0:f.users)||void 0===e?void 0:e[0];if(m&&!s.A.isModerator(m.role)){var v=(0,dn.o)(m.username),g=d&&s.A.isModel(m.role)?(0,u.ip)("@member_chat?username=".concat(v)):(0,u.ip)("@common_profile?username=".concat(v));return(0,o.h)(a.Fragment,null,(0,jt.Wm)(f)&&t.renderMuteButton(null==f?void 0:f.group_id,null==f?void 0:f.muted,!p),t.renderAvatar(null==f?void 0:f.users),(0,jt.zs)(f)&&(0,o.h)("span",{className:"mhcht_text"},h),!(0,jt.zs)(f)&&(0,o.h)("a",{className:"mhcht_text",href:g,onClick:function(){null===localStorage||void 0===localStorage||localStorage.setItem(un.c,ln.h.NONE)}},h),d&&(0,o.h)("span",{className:"mh_im_online"}))}return(0,o.h)(a.Fragment,null,!(0,jt.zs)(f)&&t.renderMuteButton(null==f?void 0:f.group_id,null==f?void 0:f.muted,!p),t.renderAvatar(),(0,o.h)("span",{className:"mhcht_text"},h),d&&(0,o.h)("span",{className:"mh_im_online"}))},t.isChatIm=function(){return!t.props.groupId&&Boolean(t.props.username)},t.isTipBtnShown=function(e){var n,r,i,o;return!t.isChatIm()&&1===(null===(r=null===(n=null==e?void 0:e.rawData)||void 0===n?void 0:n.users)||void 0===r?void 0:r.length)&&"model"===(null===(o=null===(i=null==e?void 0:e.rawData)||void 0===i?void 0:i.users[0])||void 0===o?void 0:o.role)},t.getHeaderRightButton=function(){var e=t.props.conversation,n=t.isTipBtnShown(e),r=t.isChatIm&&n&&l.q.isEnabled(c.i.MOBILE_INSTANT_MESSAGE_CONTEXT_MENU);return(0,o.h)(a.Fragment,null,r&&(0,o.h)(tn,{conversationUser:e.rawData.users[0],groupId:e.rawData.group_id}),n&&(0,o.h)(sn,{groupId:e.rawData.group_id}))},t}return(0,i.C6)(t,e),t.prototype.componentWillUnmount=function(){(0,D.Jw)()},t.prototype.render=function(){var e=this.props,t=e.conversation,n=e.conversationUsers,r=e.isPrefetching,i=this.isChatIm(),a=this.isTipBtnShown(t);return i?(0,o.h)($t,{conversation:t,conversationUsers:n,isChatIm:!0}):(0,o.h)(cn.A,{headerClassName:(0,G.n)({__right_btn_static:a}),rightBtn:this.getHeaderRightButton(),showBackLink:!0,title:this.getPageTitle()},(0,o.h)($t,{conversation:t,conversationUsers:n,isChatIm:!1,isPrefetching:r}))},t}(o.uA),hn=fn},91287:function(e,t,n){"use strict";n.d(t,{Ev:function(){return c},Kw:function(){return o},Ni:function(){return u},QL:function(){return s},Xo:function(){return d},Y5:function(){return m},YQ:function(){return p},ah:function(){return g},e6:function(){return f},eH:function(){return v},h_:function(){return h},hn:function(){return l},lS:function(){return a},oU:function(){return _}});var r=n(46941),i=n(12957),o=function(e){return e.instantMessages||{}},a=function(e){return o(e).conversations||{}},s=function(e,t){return a(e)[t]||{}},c=function(e,t){return s(e,t).messages||[]},u=function(e){return o(e).membershipAdvantages||{}},l=function(e){return o(e).users||{}},d=function(e){return e.lang},f=function(e){return o(e).groupIds||{}},h=function(e,t){return a(e)[f(e)[t]]||s(e,t)},p=function(e,t){var n=null;return(0,i.loopv)(a(e),(function(e,r){e.rawData&&e.rawData.users&&1===e.rawData.users.length&&e.rawData.users[0].username===t&&(n=r)})),{groupId:n,conversation:n?s(e,n):{}}},m=function(e,t){var n,r=s(e,t),o=[];return(0,i.loopv)((null===(n=null==r?void 0:r.rawData)||void 0===n?void 0:n.users)||[],(function(t){var n;o.push((null===(n=null==e?void 0:e.instantMessages)||void 0===n?void 0:n.users[t.username])||t)})),o},v=function(e,t){var n,r;return null===(r=null===(n=s(e,t))||void 0===n?void 0:n.rawData)||void 0===r?void 0:r.muted},g=function(e){var t=function(e){var t=o(e).tipBeforeStartIndex;return Number.isFinite(t)?t:null}(e);return r.D[t]||null},_=function(e){var t;return null===(t=g(e))||void 0===t?void 0:t.statsId}},79276:function(e,t,n){"use strict";n.d(t,{JX:function(){return p},Jw:function(){return f},vs:function(){return h}});var r=n(15215),i=n(19826),o=n(80554),a=n(88035),s=n(92308),c=function(e){return s.j.includes(e)},u=function(e){return{mobilePopup:(0,r.Cl)((0,r.Cl)({},e.mobilePopup),{isDisabledScroll:!1})}},l=function(e){var t;return(0,a.w)(o.R.MOBILE_POPUP_CLOSE),{mobilePopup:{options:{isShow:!1},isDisabledScroll:c(null===(t=e.mobilePopup)||void 0===t?void 0:t.type)}}},d=function(e,t,n,i){var o=window.scrollY,a=c(t);return{mobilePopup:(0,r.Cl)({options:(0,r.Cl)((0,r.Cl)({},i),{isShow:!0}),render:n,type:t,isDisabledScroll:a},a?{scrollPos:o}:{})}},f=function(){return i.A.action(l)()},h=function(){return i.A.action(u)()},p=function(e,t,n){return i.A.action(d)(e,t,n)}},12261:function(e,t,n){"use strict";n.r(t),n.d(t,{PopupDefaultWrapper:function(){return c}});var r=n(50172),i=n(17402),o=n(26580),a=n(79276),s=n(8546),c=(0,i.memo)((function(e){var t,n,i,c=e.title,u=e.onClose,l=void 0===u?a.Jw:u,d=e.children,f=e.popupClassNames,h=e.headerClassNames,p=e.bodyClassNames,m=(0,s.n)(((t={bc_confirm_popup:!0,__d_header:!0})[f]=Boolean(f),t)),v=(0,s.n)(((n={bc_cp_header:!0})[h]=Boolean(h),n)),g=(0,s.n)(((i={bc_cp_body:!0})[p]=Boolean(p),i));return(0,r.h)("div",{className:m},c&&(0,r.h)("div",{className:v},c,(0,r.h)("span",{className:"bc_cp_close",onClick:l},(0,r.h)(o.A,{group:"bc_cp_close_icon",icon:"#svg_mob_popup_close"}))),(0,r.h)("div",{className:g},d))}))},17964:function(e,t,n){"use strict";n.d(t,{$:function(){return r.PopupDefaultWrapper}});var r=n(12261)},86900:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});var r=n(8546),i=n(50172),o=n(79276),a=function(e){var t=e.errorMessage;return(0,i.h)("div",{className:(0,r.n)({"bc_confirm_popup __error":!0})},(0,i.h)("div",{className:"bcc_container_wrp"},(0,i.h)("div",{className:"bcc_container_info",dangerouslySetInnerHTML:{__html:t}}),(0,i.h)("div",{className:"bcc_actions"},(0,i.h)("button",{className:"bcc_button mls_btn mls_btn_white",onClick:function(e){e.preventDefault(),(0,o.Jw)()}},__("Close")))))}},10522:function(e,t,n){"use strict";n.d(t,{d:function(){return u},o:function(){return d}});var r=n(50172),i=n(17402),o=n(19223),a=n(43284),s=n(80782),c=n(17964),u=(0,i.memo)((function(e){var t=e.className,n=e.confirmLoading,i=e.popup,u=e.cancelLoading,l=e.onCancel,d=e.onClose,f=e.onConfirm;return(0,r.h)(c.$,{popupClassNames:(0,a.A)(["__dialog __d_header_fluid",t]),title:i.caption,onClose:d},(0,r.h)("p",{className:"dlg_title"},(0,o.Oy)({attributes:i.message.attributes,phrase:i.message,isLastVersion:i.isLastVersionPhraseComponent})),i.subTitle&&(0,r.h)("p",{className:"dlg_subTitle"},trans(i.subTitle,{s1:'',s2:""})),i.confirmButton&&(0,r.h)(s.$,{color:"primary",loading:n,maxWidth:"fluid",onClick:f},i.confirmButton.text),i.cancelButton&&(0,r.h)(s.$,{loading:u,maxWidth:"fluid",onClick:l},i.cancelButton.text))})),l=n(828),d=(0,i.memo)((function(e){var t=e.className,n=e.confirmLoading,i=e.popup,c=e.cancelLoading,u=e.onCancel,d=e.onClose,f=e.onConfirm;return(0,r.h)(l.A,{className:(0,a.A)(["bc_confirm_popup_wrp js-confirm_popup_wrp __show_anim",t]),root:"body"},(0,r.h)("div",{className:"bcc_popup_overlay",onClick:d}),(0,r.h)("div",{className:"bc_confirm_popup __confirmed_light"},(0,r.h)("div",{className:"cl_title"},i.caption),i.subTitle&&(0,r.h)("div",{className:"cl_info",dangerouslySetInnerHTML:{__html:i.subTitle}}),i.message&&(0,r.h)("div",{className:"cl_info"},(0,o.Oy)({attributes:i.message.attributes,phrase:i.message,isLastVersion:i.isLastVersionPhraseComponent})),(i.confirmButton||i.confirmButton)&&(0,r.h)("div",{className:"cl_action"},i.cancelButton&&(0,r.h)(s.$,{className:"cl_btn __decline",loading:c,onClick:u},i.cancelButton.text),i.confirmButton&&(0,r.h)(s.$,{className:"cl_btn",color:"success",loading:n,maxWidth:"fluid",onClick:f},i.confirmButton.text))))}))},67852:function(e,t,n){"use strict";n.r(t),n.d(t,{PopupConfirmationDialog:function(){return u},default:function(){return u}});var r=n(50172),i=n(10522),o=n(15215),a=n(17402),s=n(79276),c=function(e){var t=e.popup,n=e.onCancel,r=e.onConfirm,i=(0,a.useState)(!1),c=i[0],u=i[1],l=(0,a.useState)(!1),d=l[0],f=l[1];return(0,a.useEffect)((function(){t||(0,s.Jw)()}),[t]),{actions:{handleClickCancel:function(){return(0,o.sH)(void 0,void 0,void 0,(function(){return(0,o.YH)(this,(function(e){switch(e.label){case 0:return n?(f(!0),[4,n(s.Jw)]):[3,2];case 1:return e.sent(),f(!1),[3,3];case 2:(0,s.Jw)(),e.label=3;case 3:return[2]}}))}))},handleClickConfirm:function(){return(0,o.sH)(void 0,void 0,void 0,(function(){return(0,o.YH)(this,(function(e){switch(e.label){case 0:return r?c?[2]:(u(!0),[4,r(s.Jw)]):[3,2];case 1:return e.sent(),u(!1),[3,3];case 2:(0,s.Jw)(),e.label=3;case 3:return[2]}}))}))}},states:{isCancelLoadingState:d,isConfirmationLoadingState:c}}};function u(e){var t=e.className,n=e.popup,o=e.version,a=void 0===o?"default":o,s=e.onClose,u=c(e),l=u.actions,d=l.handleClickCancel,f=l.handleClickConfirm,h=u.states,p=h.isCancelLoadingState,m=h.isConfirmationLoadingState;return n?"light"===a?(0,r.h)(i.o,{className:t,confirmLoading:m,popup:n,cancelLoading:p,onCancel:d,onClose:s,onConfirm:f}):(0,r.h)(i.d,{className:t,confirmLoading:m,popup:n,cancelLoading:p,onCancel:d,onClose:s,onConfirm:f}):null}},68719:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(50172),i=n(17402),o=n(80782),a=n(17964),s=function(e){var t=e.error,n=e.onClose;return(0,r.h)(a.$,{popupClassNames:"__profile __prof_error __disabled"},(0,r.h)(i.Fragment,null,(0,r.h)("p",{className:"pc_disabled_text"},t&&trans(t,{"":"","":"","":'',"
":"
","":""})),(0,r.h)(o.$,{maxWidth:"fluid",onClick:n},__("Close"))))}},92308:function(e,t,n){"use strict";n.d(t,{c:function(){return i},j:function(){return r}});var r=["full_screen","categories","filter_popup","social_links","search_popup","advantages_login_join","search_tags_popup","account_sec_check_access","account_sec_info_email_confirm","account_sec_info_email_enter","account_sec_info_email_enter_success","account_sec_info_tfa_help","account_sec_info_tfa_disable","account_tfa_change_device_name","account_error","cashback_nft_help","cashback_nft_help_wallet","cashback_nft_help_max","cybersale_nft_promo_mobile_popup","cancel_account_confirm","appInstruction","account_deleted","album_popup","protected_photo_popup","protected_album_popup","video_popup","comments_add_profile_popup","profile_tag_popup","im_tip","not_enough_tokens","profile_tip_menu","buy_social_popup","profile_fan_boost","profile_fan_boost_what","pinned_models","gifts_purchase_popup","wish_popup","login_join","error","confirm_email_popup","private_show_feedback","ty_for_feedback","im_context_menu_confirm","vertical_orientation_advantages","profile_confirm_error"],i=14!=n.j?["categories","filter_popup","search_popup","search_tags_popup","advantages_login_join"]:null},75463:function(e,t,n){"use strict";n.d(t,{$A:function(){return i},An:function(){return u},a4:function(){return a},be:function(){return r},c:function(){return s},jY:function(){return c},zc:function(){return o}});var r={WRP:"Profile_WRP"},i=".js-profileMobile",o="__selected",a="__hide",s="isChatRootFlagName",c="isProfileRootFlagName",u="scrollTo"},78560:function(e,t,n){"use strict";var r;n.d(t,{h:function(){return r}}),function(e){e.NONE="",e.ACTIVE="1",e.READY_TO_DELETE="2"}(r||(r={}))},70:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var r=n(19826),i=n(99353),o=function(){function e(){var e=this;this.isVisible=!1,this.handleIntersection=function(t){e.isVisible=t.every((function(e){return e.boundingClientRect.top<=0&&e.boundingClientRect.height||e.isIntersecting})),e.isAvailable&&e.toggleFooter(e.isVisible)},this.remeasure=(0,i.s)((function(t){var n;if(document.body.classList.contains("tablet")&&window.isLandscape())e.toggleFooter(!0);else{var r=t.outerHeight()||0;if(r){var i=r-120,o=null===(n=document.getElementById("bChatInputContainer"))||void 0===n?void 0:n.getBoundingClientRect();if(o){var a=o.height,s=ie.pageRangeDisplayed;return t<=1||isNaN(t)?null:(0,a.h)("div",{className:(0,s.n)({bcm_pagination:!0,__animation:!n})},n&&this.renderMoveToStartLink(),this.renderPageLinks(),n&&this.renderNextLink())},t.defaultProps={pageRangeDisplayed:3,withReactRouter:!1,currentPage:1,onPageChange:o.noop,setQueryPage:o.noop,hrefLinkBuilder:o.noop},t}(c.PureComponent),v=m},95836:function(e,t,n){"use strict";n.d(t,{N:function(){return s}});var r=n(15215),i=n(50172),o=n(17402),a=n(84976),s=(0,o.forwardRef)((function(e,t){var n=e.children;return(0,i.h)(a.N_,(0,r.Cl)({ref:t},e),n)}))},99430:function(e,t,n){"use strict";n.d(t,{b:function(){return u}});var r=n(50172),i=n(17402),o=n(26580),a=n(828),s=n(8546),c=(0,i.lazy)((function(){return Promise.all([n.e(11),n.e(96)]).then(n.bind(n,7482))})),u=(0,i.forwardRef)((function(e,t){var n,u=e.className,l=e.forceHide,d=e.packs,f=e.onOpen,h=e.onPick,p=(0,i.useRef)(null),m=(0,i.useRef)(null),v=(0,i.useState)(!1),g=v[0],_=v[1],b=function(){_((function(e){return!e})),f&&f()};return(0,i.useEffect)((function(){var e=m.current;return function(){return clearTimeout(e)}}),[]),(0,i.useEffect)((function(){l&&g&&_(!1)}),[l]),(0,r.h)("div",{ref:function(e){p.current=e,t&&(t.current=e)},className:(0,s.n)((n={smilepicker:!0},n["".concat(u)]=Boolean(u),n))},(0,r.h)("div",{className:(0,s.n)({sp_trigger:!0,__active:g}),onClick:function(){e.isKeyBoardTogglingCompensation?m.current=window.setTimeout((function(){b()}),300):b()}},(0,r.h)(o.A,{group:"spt_icon",icon:"#svg_mob_smile"})),g&&(0,r.h)(a.A,{root:"body"},(0,r.h)(i.Suspense,{fallback:null},(0,r.h)(c,{packs:d,trigger:p.current,onClose:function(){_(!1)},onPick:function(e){var t=e.length?e[0]:null;h(t)}}))))}))},64730:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});var r=n(8546),i=n(50172),o=function(e){var t,n=e.show,o=void 0!==n&&n,a=e.className;return(0,i.h)("div",{className:(0,r.n)((t={mbc_spinner_wrp:!0,"js-mbc_spinner_wrp":!0,__show:o},t[a]=Boolean(a),t))},(0,i.h)("svg",{className:"mbc_spinner",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 66 66"},(0,i.h)("circle",{cx:"33",cy:"6",r:"6"}),(0,i.h)("circle",{cx:"15",cy:"15",r:"6"}),(0,i.h)("circle",{cx:"6",cy:"33",r:"6"}),(0,i.h)("circle",{cx:"15",cy:"51",r:"6"}),(0,i.h)("circle",{cx:"33",cy:"60",r:"6"}),(0,i.h)("circle",{cx:"51",cy:"51",r:"6"}),(0,i.h)("circle",{cx:"60",cy:"33",r:"6"}),(0,i.h)("circle",{cx:"51",cy:"15",r:"6"})))}},45986:function(e,t,n){"use strict";var r=n(15215),i=n(22847),o=n(8546),a=n(50172),s=n(26580),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.variant,r=t.message,c=t.closeIcon,u=t.icon,l=t.children,d=t.onClose,f=t.className,h=t.shadow,p="string"==typeof r,m=((e={mbc_alert:!0})["__".concat(n)]=n,e.__icon=Boolean(u),e["__shadow_".concat(h)]=Boolean(h),e.__closable=Boolean(c),e["".concat(f)]=Boolean(f),e);return(0,a.h)("div",{className:(0,o.n)(m)},Boolean(c)&&(0,a.h)("button",{type:"button",className:"mbc_a_close",onClick:d},(0,a.h)(s.A,{group:"mbc_ac_icon",icon:"#svg_".concat(c)})),(0,a.h)("div",{className:"mbc_a_wrap"},Boolean(u)&&(0,a.h)(s.A,{group:"mbc_a_icon",icon:"#svg_".concat(u)}),p&&(0,a.h)(i.E,{tagName:"span",html:r}),!p&&r),l)},t}(a.uA);t.A=c},9810:function(e,t,n){"use strict";var r=n(15215),i=n(8546),o=n(50172),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.invisible,r=t.className,a=t.children,s=((e={mbc_badge:!0})[r]=Boolean(r),e);return!n&&(0,o.h)("span",{className:(0,i.n)(s)},a)},t}(o.uA);t.A=a},18523:function(e,t,n){"use strict";n.d(t,{$:function(){return l}});var r=n(50172),i=n(95836),o=n(64730),a=n(8546),s=n(26616),c=n(2e3),u=n(17402),l=function(e){var t,n=e.forwardRef,l=e.className,d=e.active,f=e.children,h=e.color,p=e.disabled,m=e.form,v=e.href,g=e.htmlType,_=e.loading,b=e.maxWidth,y=e.rel,A=e.size,S=e.target,E=e.testId,w=e.variant,C=e.isTouchSensitive,T=function(e){var t=e.disabled,n=e.href,r=e.nativeLink,i=e.onClick,o=void 0===i?s.noop:i,a=n&&!r,l=n&&r,d=(0,u.useState)(!1),f=d[0],h=d[1];return{isHrefLink:a,isNativeLink:l,isTouched:f,handleTouchStart:(0,u.useCallback)((function(){h(!0)}),[h]),handleTouchEnd:(0,u.useCallback)((function(){h(!1)}),[h]),handleClick:(0,u.useCallback)((function(e){if(!t)return n?(o(e),void c.x.instance.navigateRequest(window.location.href)):void o(e);e.preventDefault()}),[t,n,o])}}(e),L=T.isHrefLink,M=T.isNativeLink,k=T.isTouched,N=T.handleClick,I=T.handleTouchEnd,O=T.handleTouchStart,P=(0,a.n)(((t={mbc_btn:!0})["__".concat(h)]=h,t["__".concat(b)]=b,t["__".concat(A)]=A,t["__".concat(w)]=w,t.__active=d||C&&k,t.__disabled=p,t.__loading=_,t[l]=Boolean(l),t));return L?(0,r.h)(i.N,{innerRef:n,className:P,"data-testid":E,to:v,onClick:N,onTouchCancel:I,onTouchEnd:I,onTouchStart:O},f):M?(0,r.h)("a",{ref:n,className:P,"data-role":"none","data-testid":E,href:v,rel:y,target:S,onClick:N,onTouchCancel:I,onTouchEnd:I,onTouchStart:O},f):(0,r.h)("button",{ref:n,className:P,"data-role":"none","data-testid":E,disabled:p,form:m,type:g,onClick:N,onTouchCancel:I,onTouchEnd:I,onTouchStart:O},f,_&&(0,r.h)(o.y,{className:"mbc_btn_spinner",show:!0}))}},80782:function(e,t,n){"use strict";n.d(t,{$:function(){return r.$}});var r=n(18523)},65050:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(15215),i=n(50172),o=n(8546),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(){t.props.disabled||t.props.onClick()},t}return(0,r.C6)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.children,r=t.variant,a=t.disabled,s=t.className,c=((e={mbcm_item:!0,__disabled:a})["__".concat(r)]=r,e[s]=Boolean(s),e);return(0,i.h)("div",{className:(0,o.n)(c),onClick:this.handleClick},n)},t.defaultProps={variant:"default",onClick:function(){}},t}(i.uA),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.wrapperRef,r=t.className,a=t.children,s=((e={})[String(r)]=Boolean(r),e.mbc_menu=!0,e);return(0,i.h)("div",{ref:n,className:(0,o.n)(s)},a)},t.Item=a,t}(i.uA),c=s;s.Item=a},85678:function(e,t,n){"use strict";var r=n(15215),i=n(8546),o=n(26616),a=n(50172),s=window.requestAnimationFrame||window.setImmediate||function(e){return setTimeout(e,0)},c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollTop=0,t.scrollHeight=0,t.autoScroll=!0,t.saveSnapshotOnScrollEnabled=!0,t.scrollbarRef=function(e){t.scrollbarEl=e},t.componentDidMount=function(){var e=t.props.reverse;t.saveScrollSnapshot(),t.attachEvents(),e&&t.scrollToBottom()},t.componentDidUpdate=function(){var e=t.props.reverse;t.saveScrollSnapshot(),e&&t.saveScrollPosition()},t.componentWillUnmount=function(){window.removeEventListener("resize",t.handleResize)},t.attachEvents=function(){var e=t.props.customResizeEvent;window.addEventListener("resize",t.handleResize),e&&window.addEventListener(e,t.handleResize)},t.detachEvents=function(){var e=t.props.customResizeEvent;window.removeEventListener("resize",t.handleResize),e&&window.removeEventListener(e,t.handleResize)},t.saveScrollSnapshot=function(){t.scrollbarEl&&(t.scrollSnapshot={offsetHeight:t.scrollbarEl.offsetHeight,scrollTop:t.scrollbarEl.scrollTop,scrollBottom:t.scrollData.scrollBottom})},t.handleResize=function(){t.saveSnapshotOnScrollEnabled=!1,t.autoScroll=!1,t.scrollBottom(t.scrollSnapshot.scrollBottom),t.saveScrollSnapshot(),t.saveSnapshotOnScrollEnabled=!0},t.saveScrollPosition=function(){t.scrollbarEl&&s((function(){t.scrollbarEl&&t.autoScroll&&(t.scrollbarEl.scrollTop=t.lastScrollPosition?t.scrollbarEl.scrollHeight-t.lastScrollPosition:t.scrollbarEl.scrollHeight)}))},t.handleScroll=function(){if(t.scrollbarEl){t.saveSnapshotOnScrollEnabled&&t.saveScrollSnapshot();var e=t.props,n=e.reverse,r=e.onScrollToTop,i=e.onScrollToBottom,o=t.scrollbarEl.scrollTop,a=t.scrollbarEl.scrollHeight,s=t.scrollData.isBottom;t.lastScrollPosition=a-o,r&&n&&0===o&&t.scrollHeight!==a?(r(),t.scrollHeight=a):i&&s&&t.scrollHeight!==a&&(i(),t.scrollHeight=a)}},t.handleOnTouchMoveIOSFix=function(e){t.scrollbarEl&&!t.scrollbarEl.classList.contains("jc-bcm_history_box")&&e.stopPropagation()},t.scrollTo=function(e){t.scrollbarEl&&(t.scrollbarEl.scrollTop=e)},t.scrollBottom=function(e){t.scrollbarEl&&(t.scrollbarEl.scrollTop=t.scrollbarEl.scrollHeight-(t.scrollbarEl.clientHeight+e))},t.scrollToBottom=function(){t.scrollbarEl&&(t.scrollbarEl.scrollTop=t.scrollbarEl.scrollHeight)},t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"scrollData",{get:function(){var e,t,n,r,i,o,a,s=Math.floor((null===(e=this.scrollbarEl)||void 0===e?void 0:e.scrollHeight)-(null===(t=this.scrollbarEl)||void 0===t?void 0:t.scrollTop)-(null===(n=this.scrollbarEl)||void 0===n?void 0:n.clientHeight))||0;return{scrollLeft:(null===(r=this.scrollbarEl)||void 0===r?void 0:r.scrollLeft)||0,scrollTop:(null===(i=this.scrollbarEl)||void 0===i?void 0:i.scrollTop)||0,scrollBottom:s,scrollHeight:(null===(o=this.scrollbarEl)||void 0===o?void 0:o.scrollHeight)||0,clientHeight:(null===(a=this.scrollbarEl)||void 0===a?void 0:a.clientHeight)||0,isBottom:s<1}},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e,t=this,n=this.props,r=n.className,o=n.disable,c=n.onScroll,u=n.onClick,l=n.children;return(0,a.h)("div",{ref:this.scrollbarRef,className:(0,i.n)((e={mbc_scrollbar:!0},e[r]=!!r,e.__disable=o,e)),onScroll:function(){s((function(){return t.handleScroll()})),c&&c()},onTouchMove:this.handleOnTouchMoveIOSFix,onClick:u},l)},t.defaultProps={offsetToTop:0,offsetToBottom:0,onClick:o.noop},t}(a.uA);t.A=c},60824:function(e,t,n){"use strict";n.d(t,{u:function(){return a}});var r=n(31179),i=n(9127),o=["js-history_container","js-im_chat","js-chat_auto_message","js-mainbar"],a=function(){var e,t=document.body.classList.contains("tablet");(null===(e=i.O.WebKit)||void 0===e?void 0:e.versionBelow(16))&&!t&&(0,r.mh)(document.body,{allowTouchMove:function(e){return Boolean(null==o?void 0:o.length)&&o.some((function(t){return e.classList.contains(t)||e.closest(".".concat(t))}))}})}},6743:function(e,t,n){"use strict";var r=n(15215),i=n(50172),o=n(17402),a=n(47767),s=n(13907),c=n(91687),u=(0,o.memo)((function(e){var t=e.children,n=e.leftBtn,u=e.rightBtn,l=e.title,d=e.showBackLink,f=e.showBtAlert,h=e.backLink,p=e.headerClassName,m=(0,a.zy)(),v=(0,o.useMemo)((function(){return m.pathname.includes("/im/")||m.pathname===(0,s.ip)("@im_error404_page")}),[m]),g={leftBtn:n,rightBtn:u,showBackLink:d,showBtAlert:f,backLink:h,className:p};return"string"==typeof l&&(g.title=l),(0,i.h)("div",{className:"mbc_wrapper"},v&&(0,i.h)(c.i,(0,r.Cl)({},g),l),t)}));t.A=u},91687:function(e,t,n){"use strict";n.d(t,{i:function(){return b}});var r=n(50172),i=n(17402),o=n(47767),a=n(46517),s=n(26580),c=n(22847),u=n(13907),l=n(95836),d=n(15215),f=n(98614),h=n(88026),p=n(41669),m=function(e){function t(t){var n=e.call(this,t)||this;return n.handleClose=function(){p(".page_im").removeClass("__bt").addClass("__all"),n.props.closeBtAlert()},n}return(0,d.C6)(t,e),t.prototype.render=function(){var e=this.props.urls.btApp;return(0,r.h)("div",{className:"mbc_bt_alert above_header"},(0,r.h)("div",{className:"bt_alert_cross",onClick:this.handleClose}),(0,r.h)("a",{href:e,className:"bt_alert_logo"},(0,r.h)(s.A,{group:"bt_alert_logo_svg",icon:"#svg_mob_icon_bt_app"})),(0,r.h)("div",{className:"bt_alert_inner"},(0,r.h)("div",{className:"bt_alert_desc"},(0,r.h)("div",{className:"bt_alert_title"},"BC Talk"),(0,r.h)("div",{className:"bt_alert_text"},__("Free Mobile App"))),(0,r.h)("a",{href:e,className:"bt_alert_btn"},__("view"))))},t=(0,d.Cg)([(0,f.Ng)("urls",{closeBtAlert:h.T9})],t)}(r.uA),v=n(57651),g=n(8546),_=n(41669),b=(0,i.memo)((function(e){var t,n=e.className,d=e.backLink,f=e.children,h=e.leftBtn,p=e.rightBtn,b=e.showBackLink,y=e.showBtAlert,A=e.title,S=e.onBackClick,E=(0,o.zy)(),w=(0,o.Zp)(),C=(0,i.useState)(!1),T=C[0],L=C[1],M=(0,a.d4)((function(e){return e.btAlertAvailable})),k=(0,a.d4)((function(e){return e.user})),N=(0,a.d4)((function(e){return e.toastr})),I=(0,a.wA)(),O=(0,i.useMemo)((function(){return y&&M}),[y,M]),P=function(e){var t,n=_(e.currentTarget);n.closest(".ui-panel-content-fixed-toolbar-open").length||n.closest(".ui-panel-content-wrap-open").length?(_.mobile.activePage.find("#mainbar").panel("close"),L(!1)):(window.scrollTo(0,0),0!==(null===(t=null==N?void 0:N.queue)||void 0===t?void 0:t.length)&&I(v.VK)(),_.mobile.activePage.find("#mainbar").panel("open"),L(!0),_.mobile.activePage.find(".ui-header").removeClass("transition").removeClass("hidden"))};return(0,i.useEffect)((function(){O||E.pathname!==(0,u.ip)("@im_conversations?page=all")||_(".page_im").removeClass("__bt").addClass("__all")}),[O,E]),(0,i.useEffect)((function(){return _.mobile.activePage.find("#mainbar").off("panelbeforeclose").on("panelbeforeclose",(function(){L(!1)})),function(){_.mobile.activePage.find("#mainbar").off("panelbeforeclose")}}),[]),(0,r.h)("div",{className:(0,g.n)((t={},t[n]=n,t["mbc_header bc_flex bc_flex_items_center"]=!0,t.__bt=O,t))},O&&(0,r.h)(m,null),function(){if(b){if(d)return(0,r.h)(l.N,{className:"mbc_h_btn __left",to:d},(0,r.h)(s.A,{group:"mbc_h_icon __back",icon:"#svg_mob_left"}));if("function"==typeof S)return(0,r.h)("span",{className:"mbc_h_btn __left",onClick:S},(0,r.h)(s.A,{group:"mbc_h_icon __back",icon:"#svg_mob_left"}));if(""!==document.referrer){return(0,r.h)("span",{className:"mbc_h_btn __left",onClick:function(){w(-1)}},(0,r.h)(s.A,{group:"mbc_h_icon __back",icon:"#svg_mob_left"}))}}return h||(T?(0,r.h)("a",{className:"mbc_h_btn __left",href:"#",onClick:P},(0,r.h)(s.A,{group:"mbc_h_icon __close",icon:"#svg_mob_close"})):(0,r.h)("a",{className:"mbc_h_btn __left",href:"#",onClick:P},(0,r.h)(s.A,{group:(0,g.n)({"mbc_h_icon __open":!0,__followings:k&&k.mainBarBubble&&k.mainBarBubble.follow,__messages:k&&k.mainBarBubble&&k.mainBarBubble.im}),icon:"#svg_mob_mainbar"})))}(),void 0!==A&&(0,r.h)(c.E,{className:"mbc_h_title",html:A,tagName:"h1"}),!A&&(0,r.h)("h1",{className:"mbc_h_title bc_flex bc_flex_items_center bc_flex_justify_center"},f),p||(!1!==p?(0,r.h)("a",{className:"mbc_h_btn __right",href:(0,u.ip)("@homepage")},(0,r.h)(s.A,{group:"mbc_h_icon __home",icon:"#svg_mob_home"})):null))}))},26761:function(e,t,n){"use strict";n.d(t,{Fo:function(){return h},KE:function(){return f},zm:function(){return m}});var r=n(15215),i=n(91651),o=n(76393),a=n(26616),s=n(65143),c=n(41966),u=n(41669),l={GAMES_MOBILE_SVG:"chat_games_mobile2",SSM_GF_SVG:"slot_machine_game_field"};function d(e,t){return Boolean(document.head.querySelectorAll("[".concat(t,'*="').concat(e,'"]')).length)}var f=function(){return d("extra/chat_games_mobile.css","href")&&function(){for(var e in l)if(l.hasOwnProperty(e)&&!document.getElementById("svg_sprite_".concat(l[e])))return!1;return!0}()};function h(){var e;f()||(null===(e=null===chat||void 0===chat?void 0:chat.addSpinner)||void 0===e||e.call(chat),d("extra/chat_games_mobile.css","href")||function(){(0,r.sH)(this,void 0,void 0,(function(){var e;return(0,r.YH)(this,(function(t){switch(t.label){case 0:return[4,(0,i.i)("extra/chat_games_mobile.css",void 0,"games-in-chat",(0,c.j)())];case 1:return t.sent(),f()&&(null===(e=null===chat||void 0===chat?void 0:chat.hideSpinner)||void 0===e||e.call(chat)),[2]}}))}))}(),d(l.GAMES_MOBILE_SVG,"src")&&d(l.SSM_GF_SVG,"src")||function(){(0,r.sH)(this,void 0,void 0,(function(){var e,t,n,i,a,s;return(0,r.YH)(this,(function(r){switch(r.label){case 0:for(n in t=[],e=l)t.push(n);i=0,r.label=1;case 1:return is,u=null,l=window.navigator.userAgent.toLowerCase().indexOf("windows phone 10")>=0||i.BrowserDetect.isIOS(),d=function(){return l?o(window).width():window.innerWidth},f=function(){return l?o(window).height():window.innerHeight},h=function(){var e,t,n=null===(t=null===(e=null===window||void 0===window?void 0:window.screen)||void 0===e?void 0:e.orientation)||void 0===t?void 0:t.type;return void 0===n||window.self!==window.top||i.BrowserDetect.isChrome_IOS()?d()>f():"landscape-primary"===n||"landscape-secondary"===n},p=function(e){var t=d(),n=f();if(e&&(u=null),(0,r.b)(a,t,5)&&s>=n)return u=null===u;var i=!(0,r.b)(t,a,5)||n>s;return a=t,s=n,u=null===u||(i||c!==t>n),c=t>n,u},m=function(){var e=document.activeElement;return e.isContentEditable||["input","textarea"].includes(e.tagName.toLowerCase())},v=function(){var e=document.activeElement;null==e||e.blur(),o("input").blur()}},22706:function(e,t,n){"use strict";n.r(t),n.d(t,{BrowserDetect:function(){return r}});var r=function(){function e(){}return e._setUserAgent=function(e){this.userAgent=e},e._setPlatform=function(e){this.platform=e},e.isChrome=function(){if(-1!==this.userAgent.indexOf("Chrome")){var e=this.userAgent.match(/Chrome\/([\d.]+)/);return!(!e||!e[1])&&e[1]}return!1},e.isYandex=function(){return-1!==this.userAgent.indexOf("YaBrowser")},e.isChrome_MinVersion=function(e){var t=this.isChrome();return t&&parseInt(t)>=e},e.isChrome_MaxVersion=function(e){var t=this.isChrome();return t&&parseInt(t)=e},e.isSafari_MaxVersion=function(e){var t=this.isSafari();return t&&parseInt(t)<=e},e.isSafari_MacOS=function(){return-1!==this.platform.indexOf("Mac")&&this.isSafari()},e.isSamsungBrowser=function(){return-1!==this.userAgent.indexOf("SamsungBrowser")},e.isSamsungBrowserAndroid=function(){return this.isSamsungBrowser()&&this.isAndroid()},e.isMacOS=function(){return this.platform.toLowerCase().indexOf("mac")>=0},e.isIOS=function(){return/iPad|iPhone|iPod/.test(this.platform)},e.isSafari_IOS=function(){return this.isIOS()&&this.isSafari()},e.isIE11=function(){return-1!==this.userAgent.indexOf("Trident/")},e.isIE10_Older=function(){return-1!==this.userAgent.indexOf("MSIE ")},e.isEdge=function(){if(-1!==this.userAgent.indexOf("Edg/")){var e=this.userAgent.match(/Edg\/([\d.]+)/);return!(!e||!e[1])&&e[1]}return!1},e.isEdge_Origin=function(){if(-1!==this.userAgent.indexOf("Edge/")){var e=this.userAgent.match(/Edge\/([\d.]+)/);return!(!e||!e[1])&&e[1]}return!1},e.isFirefox=function(){if(-1!==this.userAgent.indexOf("Firefox")){var e=this.userAgent.match(/Firefox\/([\d.]+)/);return!(!e||!e[1])&&e[1]}return!1},e.isFirefox_IOS=function(){return this.isIOS()&&-1!==this.userAgent.indexOf("FxiOS/")},e.isFirefox_MinVersion=function(e){var t=this.isFirefox();return t&&parseInt(t)>=e},e.isOldWindows=function(){return/Windows (XP|2000|NT 5.0|NT 5.1|NT 5.2)/.test(this.userAgent)},e.isWindows10=function(){return/Windows (10.0|NT 10.0)/.test(this.userAgent)},e.isOperaMiniIos=function(){return/(OPiOS|Opera Mini)/.test(this.userAgent)},e.isOperaMini=function(){return this.isOperaMiniAndroid()||this.isOperaMiniIos()},e.detectIE=function(){var e=this.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}return!1},e.isTouchDevice=function(){return"undefined"!=typeof window&&Boolean("ontouchstart"in window||navigator.maxTouchPoints)},e.isFirefoxIpad=function(){return this.isSafari_MacOS()&&this.platform.toLowerCase().indexOf("ipad")>=0},e.isIpad=function(){return this.platform.toLowerCase().indexOf("ipad")>=0||this.isMacOS()&&this.isTouchDevice()},e.isIpadOS=function(){return navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/MacIntel/.test(this.platform)},e.isOSVersion=function(){if(!this.isIOS())return!1;var e,t=this.userAgent.match(/OS (\d+)_(\d+)_?(\d+)?/);return null!=t&&(e=[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3]||"0",10)],parseFloat(e.join(".")))},e.userAgent="undefined"!=typeof window?window.navigator.userAgent:"",e.platform="undefined"!=typeof window?window.navigator.platform:"",e}()},96831:function(e,t,n){"use strict";n.d(t,{p:function(){return r}});var r=function(){return"undefined"==typeof window?void 0:{history:history,localStorage:localStorage,location:location,navigator:navigator,screen:screen,sessionStorage:sessionStorage,window:window,document:document}}},30914:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var r=n(46140),i=function(e,t){return!(0,r.u)(e)&&Object.prototype.hasOwnProperty.call(e,t)}},63067:function(e,t,n){"use strict";n.d(t,{r:function(){return r}});var r=function(e,t){return null!==t&&e in t}},46140:function(e,t,n){"use strict";function r(e){return null==e}n.d(t,{u:function(){return r}})},8252:function(e,t,n){"use strict";n.d(t,{U:function(){return r}});var r=function(e){for(var t=[],n=1;n0&&c.times--,o[s].callback.apply(this,t))}for(s=i.length;--s>=0;)0===i[s].times&&i.splice(s,1)}}},e.prototype.eventIndex=function(e,t){if(!this._events||!this._events[e])return-1;for(var n=this._events[e],r=0;r=0?"%"+o+"%":o,"gi"),s=void 0;s=a.exec(e);)n.push({children:[],left:s.index,parent:null,right:s.index+s[0].length,value:{match:s,prop:o}});var c=(0,r._)(n),u=(0,i.r)(c,t),l=[],d=0;return c.forEach((function(t,n){var r=n===c.length-1,i=e.slice(d,t.left);l.push(i),l.push(u[n].element),d=t.right,r&&(i=e.slice(d,e.length),l.push(i))})),l}},3237:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(67511),i=function(e){return e.replace(r.kW,(function(e,t){return"%<".concat(t,">%")}))}},25883:function(e,t,n){"use strict";n.d(t,{x:function(){return i}});var r=n(145),i=function(e,t){return e.replace(r.kW,(function(e,n){return"<".concat(n.replace(r.Ug,(function(e,n,r){return"".concat(n).concat(function(e){if(!t)return"";var n,r=t[e]||{};return(n=r,Object.entries(n).map((function(e){var t=e[0],n=e[1];return"".concat(t,'="').concat(n,'"')}))).join(" ")}(r))})),">")}))}},66433:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var r="undefined"!=typeof document?document.documentElement.lang:"",i="ar"===r||"jw"===r},75586:function(e,t,n){"use strict";n.d(t,{g:function(){return s}});var r=n(3237),i=n(25883),o=n(62632),a=function(e,t){return(null==e?void 0:e.indexOf("{{"))>=0&&(null==e?void 0:e.indexOf("}}"))>=0?e.indexOf("key=")>=0?(0,i.x)(e,t):(0,r.V)(e):e};function s(e,t){var n=!1,r="undefined"!=typeof window&&window.i18n||{},i=(r[e]?r[e]:e)||"";for(var s in t){var c=t[s];!c||"object"!=typeof c||Array.isArray(c)?(i=a(i,t),"string"!=typeof c&&"number"!=typeof c||(i=i.replace(new RegExp("%"+s+"%","gi"),c.toString())),"function"==typeof c&&(n=!0)):i=a(i,t)}return i=(i=i.replace(/{(\w*)}/g,(function(e,n){return(null==t?void 0:t.hasOwnProperty(n))?t[n]:""}))).replace(/%_[^%]+_%/g,""),n&&t?(0,o.o)(i,t):i}},83147:function(e,t,n){"use strict";function r(e){if(e){var t=window.i18n;for(var n in e)e.hasOwnProperty(n)&&!(n in t)&&(t[n]=e[n])}}n.d(t,{v:function(){return r}})},78643:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(2744),i=function(e,t){var n=0,i=function(e){n++;var o=e.children,a=e.value,s=a.match,c=s[0],u=s.slice(1),l=a.prop,d={args:u,key:"rc-".concat(n),match:c},f=t[l],h=0===o.length;if(!("function"==typeof f))return{element:f,mask:c};if(h)return{element:f(d),mask:c};var p=o.map((function(e){return i(e)})),m=u[0],v=m.split(r.O),g=m.split(r.K),_=g.length<=v.length?g:v;return p.forEach((function(e){var t=_.indexOf(e.mask);-1!==t&&(_[t]=e.element)})),d.args=[_],{element:f(d),mask:c}};return e.map((function(e){return i(e)}))}},9464:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});var r=function(e){e.sort((function(e,t){return e.left-t.left}));for(var t=function(n,r){void 0===r&&(r=e[0]),n.right<=r.right?(r.children.push(n),n.parent=r):(null==r?void 0:r.parent)&&t(n,r.parent)},n=1;n=e%10&&(10>e%100||20<=e%100)?1:2]}n.d(t,{z:function(){return r}})},2268:function(e,t,n){"use strict";n.d(t,{kX:function(){return l},Vg:function(){return d.V},zM:function(){return f.z}});var r,i=n(15215),o=function(e,t,n,r){return void 0===r&&(r=!1),r?e>=t&&e<=n:e>t&&e=2&&e<=4&&(t=1),["single","few","other"][t]},r.lt_LT=function(e){var t=2;return e%10!=1||o(e%100,11,19,!0)?o(e%10,2,9,!0)&&!o(e%100,11,19,!0)&&(t=1):t=0,["single","few","other"][t]},r.lv_LV=function(e){var t=2;return e%10==0||o(e%100,11,19,!0)?t=0:e%10==1&&e%100!=11&&(t=1),["zero","single","other"][t]},r.pl_PL=function(e){var t=2;return 1===e?t=0:o(e%10,2,4,!0)&&!o(e%100,12,14,!0)&&(t=1),["single","few","other"][t]},r.sr_RS=function(e){var t=2;return e%10==1&&e%100!=100?t=0:o(e%10,2,4,!0)&&!o(e%100,12,14,!0)&&(t=1),["single","few","other"][t]},r.sl_SI=function(e){var t=3;return e%100==1?t=0:e%100==2?t=1:o(e%100,3,4,!0)&&(t=2),["single","two","few","other"][t]},r.sk_SK=function(e){var t=2;return 1===e?t=0:o(e,2,4,!0)&&(t=1),["single","few","other"][t]},r.ro_RO=function(e){var t=2;return 1===e?t=0:(0===e||1!==e&&o(e%100,1,19,!0))&&(t=1),["single","few","other"][t]},r.hr_HR=function(e){var t=2;return e%10==1&&e%100!=11?t=0:o(e%10,2,4,!0)&&!o(e%100,12,14,!0)&&(t=1),["single","few","other"][t]},r.mk_MK=function(e){var t=1;return e%10==1&&e%100!=11&&(t=0),["single","other"][t]},r.ar_AE=function(e){var t=5;return 0===e?t=0:1===e?t=1:2===e?t=2:o(e%100,3,10,!0)?t=3:o(e%100,11,99,!0)&&(t=4),["zero","single","two","few","many","other"][t]},r.jw_IL=function(e){var t=3;return 1===e?t=0:2===e?t=1:e%10!=0||o(e,0,10,!0)||(t=2),["single","two","many","other"][t]},r.uk_UA=function(e){var t=3;return e%10==1&&e%100!=11?t=0:o(e%10,2,4,!0)&&!o(e%100,12,14,!0)?t=1:(e%10==0||o(e%10,5,9,!0)||o(e%100,11,14,!0))&&(t=2),["single","few","many","other"][t]},r),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t}(function(){function e(){}return e.setCulture=function(t){e.culture=t},e.culture="en_GB",e.getPlural=function(){return u},e.getPluralisedString=function(t,n){var r="",i=Math.abs(n);return(r=a.indexOf(e.culture)>-1?u.enType(i):s.indexOf(e.culture)>-1?u.asianType():c.indexOf(e.culture)>-1?u.frType(i):u[e.culture](i))?"".concat(t,"%_").concat(r,"_%"):t},e.pluralise=function(t,n,r){void 0===r&&(r=!1);var i=e.getPluralisedString(t,n),o=__(i,{amount:n});return r?o.toUpperCase():o},e}()),d=n(80517),f=n(25467)},15215:function(e,t,n){"use strict";n.d(t,{AQ:function(){return h},C6:function(){return i},Cg:function(){return s},Cl:function(){return o},N3:function(){return f},Tt:function(){return a},YH:function(){return u},aN:function(){return l},fX:function(){return d},sH:function(){return c}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function u(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof f?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}Object.create},14039:function(e,t,n){"use strict";n.d(t,{S:function(){return s},Z:function(){return a}});var r=n(96831),i=n(17402),o=function(){function e(e){var n=this;this._handlers={},this._handlersCounter=0,this.close=function(){var e;n.isOpen&&(null===(e=n._channel)||void 0===e||e.close(),delete t._channels[n._guid])},this.subscribe=function(e){var t=n._handlersCounter++;return n._handlers[t]=e,function(){delete n._handlers[t]}},this.postMessage=function(e){var t;n.isOpen&&(null===(t=n._channel)||void 0===t||t.postMessage(e))},this._onMessage=function(e){if(n.isOpen)for(var t in n._handlers)if(t in n._handlers){var r=n._handlers[t];if("function"==typeof r)try{r(null==e?void 0:e.data)}catch(e){console.error("[BroadcastChannel] callback catch",n._channelName,e)}}},this._channelName=e,this._guid=t.getChannelGUID(e),t.isSupport&&(this._channel=new BroadcastChannel(this._guid),this._channel.addEventListener("message",this._onMessage),t._channels[this._guid]=this,t.initGlobal())}var t;return Object.defineProperty(e,"isSupport",{get:function(){var e=(0,r.p)();return!!e&&"BroadcastChannel"in e.window},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return!!this._channel},enumerable:!1,configurable:!0}),t=e,e._version="1",e._isAttached=!1,e._channels={},e.getChannelGUID=function(e){return"[".concat(t._version,"]_").concat(e)},e.getChannel=function(e){if(t.isSupport){var n=t.getChannelGUID(e);return t._channels[n]}},e.initGlobal=function(){if(!t._isAttached){var e=(0,r.p)();e&&e.window.addEventListener("beforeunload",(function(){for(var e in t._channels)if(e in t._channels){var n=t._channels[e];null==n||n.close()}}))}},e}(),a=function(e,t){var n=o.getChannel(e);n&&n.isOpen&&n.postMessage(t)},s=function(e){var t=e.name,n=e.handler,r=(0,i.useRef)();r.current||(r.current=new o(t));var a=r.current,s=!!(null==o?void 0:o.isSupport),c=!!(null==a?void 0:a.isOpen),u=(0,i.useRef)();return(0,i.useEffect)((function(){a&&(u.current=a.subscribe(n))}),[a,t,n]),{close:(0,i.useCallback)((function(){"function"==typeof u.current&&u.current()}),[]),isOpen:c,isSupport:s}}},98166:function(e,t,n){"use strict";n.d(t,{Mj:function(){return s}});var r=n(17402),i=n(96831),o=n(28812),a=function(e,t,n){var a,s,c=function(e){console.error("[Error] [useStorage - ".concat(n,"]:"),e)},u=(a=n,null===(s=(0,i.p)())||void 0===s?void 0:s[a]),l=(0,r.useState)((function(){try{return(0,o.json_parse)((null==u?void 0:u.getItem(e))||"")||t}catch(e){return c(e),t}})),d=l[0],f=l[1];return[d,function(t){try{var n=t instanceof Function?t(d):t;f(n),null==u||u.setItem(e,JSON.stringify(n))}catch(t){c(t)}}]},s=function(e,t){return a(e,t,"localStorage")}},41669:function(e){"use strict";e.exports=jQuery},70901:function(e,t){"use strict";function n(e){for(var t=1,n=0,r=e.length;--r>=0;)n=(n+(t=(t+e.charCodeAt(r))%65521))%65521;return t|n<<16}function r(){for(var e=0,t=new Array(256),n=0;n<256;++n)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=n)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}var i=r();function o(e,t){void 0===t&&(t=0);for(var n=~t,r=0,o=e.length,a=void 0,s=void 0;r>>8^i[255&(n^a)]:a<2048?n=(n=n>>>8^i[255&(n^(192|a>>6&31))])>>>8^i[255&(n^(128|63&a))]:a>=55296&&a<57344?(a=64+(1023&a),s=1023&e.charCodeAt(r++),n=(n=(n=(n=n>>>8^i[255&(n^(240|a>>8&7))])>>>8^i[255&(n^(128|a>>2&63))])>>>8^i[255&(n^(128|s>>6&15|(3&a)<<4))])>>>8^i[255&(n^(128|63&s))]):n=(n=(n=n>>>8^i[255&(n^(224|a>>12&15))])>>>8^i[255&(n^(128|a>>6&63))])>>>8^i[255&(n^(128|63&a))];return~n}for(var a=[],s=0;s<64;)a[s]=0|4294967296*Math.sin(++s%Math.PI);var c=function(e,t){return e<>>32-t},u=function(e){var t,n="";for(t=7;t>=0;t--)n+=(e>>>4*t&15).toString(16);return n};t.k4=n,t.cE=function(e){return n(e)>>>0},t.d5=function(e,t){void 0===t&&(t=0);var n=o(e,t);return n>=0?n:4294967296+n},t.e8=function(e){var t,n,r,i,o,a,s,l,d,f=new Array(80),h=1732584193,p=4023233417,m=2562383102,v=271733878,g=3285377520,_=(e=unescape(encodeURIComponent(e))).length,b=[];for(n=0;n<_-3;n+=4)r=e.charCodeAt(n)<<24|e.charCodeAt(n+1)<<16|e.charCodeAt(n+2)<<8|e.charCodeAt(n+3),b.push(r);switch(_%4){case 0:n=2147483648;break;case 1:n=e.charCodeAt(_-1)<<24|8388608;break;case 2:n=e.charCodeAt(_-2)<<24|e.charCodeAt(_-1)<<16|32768;break;case 3:n=e.charCodeAt(_-3)<<24|e.charCodeAt(_-2)<<16|e.charCodeAt(_-1)<<8|128}for(b.push(n);b.length%16!=14;)b.push(0);for(b.push(_>>>29),b.push(_<<3&4294967295),t=0;t=0;e=Math.floor(e/62)||-1)t=String.fromCharCode(((n=e%62)>9?n>35?29:87:48)+n)+t;return t}},83395:function(e,t,n){"use strict";var r=n(49612);t.arrayInsert=function(e,t,n){return n=0;n--)if(t(e[n],n,e))return n;return-1}},99777:function(e,t){"use strict";t.isEqualArrays=function(e,t){return e.length===t.length&&e.every((function(e,n){return e===t[n]}))}},93994:function(e,t){"use strict";t.range=function(e,t){return Array.apply(0,Array(t)).map((function(t,n){return n+e}))}},10185:function(e,t){"use strict";t.shuffleArray=function(e){for(var t,n=e.length-1;n>0;n--){var r=Math.floor(Math.random()*(n+1));t=[e[r],e[n]],e[n]=t[0],e[r]=t[1]}return e}},47447:function(e,t){"use strict";t.transposeArray=function(e){return e[0].map((function(t,n){return e.map((function(e){return e[n]}))}))}},20496:function(e,t){"use strict";t.uniqueList=function(e){return e.reduce((function(e,t){return e.includes(t)||e.push(t),e}),[])}},29313:function(e,t,n){"use strict";var r=n(83395),i=n(24350),o=n(99777),a=n(93994),s=n(10185),c=n(47447),u=n(20496);n(49612),t.nK=r.arrayInsert,t.Kl=i.findLastIndex,o.isEqualArrays,t.y1=a.range,s.shuffleArray,c.transposeArray,t.o0=u.uniqueList},89185:function(e,t,n){"use strict";var r=n(49612),i=function(e){var t;void 0===e&&(e=document.documentElement);var n=e.getAttribute("data-csrf_field"),r=e.getAttribute("data-csrf_value");return n&&r?((t={})[n]=r,t):{}};t.getCSRFData=function(e){return r.__assign(r.__assign({},e),i())},t.getCSRFToken=i},4645:function(e,t,n){"use strict";var r=n(89185);n(49612),t.Z=r.getCSRFData,t.m=r.getCSRFToken},8599:function(e,t,n){"use strict";var r=n(98339),i=n(7999);t.objectOrArrayToCSSClass=function e(){for(var t=[],n=0;n220?"#000":"#".concat(e);var a=(255-n).toString(16),s=(255-i).toString(16),c=(255-o).toString(16),u=function(e,t){return void 0===t&&(t=2),(new Array(t).join("0")+e).slice(-t)};return"#".concat(u(a,2)).concat(u(s,2)).concat(u(c,2))},t.c=function(e){if(!r.isHexColor(e))return e;var t=e.substring(1),n=parseInt(t,16);return(299*(n>>16&255)+587*(n>>8&255)+114*(255&n))/1e3<220}},65909:function(e,t){"use strict";t.convertHex3To6=function(e){if(3===e.length)return"".concat(e[0]).concat(e[0]).concat(e[1]).concat(e[1]).concat(e[2]).concat(e[2])}},20560:function(e,t,n){"use strict";var r=n(15246),i=n(73590);t.hexToHsv=function(e){var t=r.hexToRgb(e);return t?i.rgbToHsv(t[0],t[1],t[2]):null}},15246:function(e,t){"use strict";t.hexToRgb=function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:null}},71158:function(e,t){"use strict";t.hsvToRgb=function(e,t,n){var r,i,o,a,s;i=(n/=100)*(1-(t/=100)),o=n*(1-t*(r=e/60-(s=Math.floor(e/60)))),a=n*(1-(1-r)*t);var c=0,u=0,l=0;switch(s){case 0:c=n,u=a,l=i;break;case 1:c=o,u=n,l=i;break;case 2:c=i,u=n,l=a;break;case 3:c=i,u=o,l=n;break;case 4:c=a,u=i,l=n;break;case 5:c=n,u=i,l=o}return[Math.round(255*c),Math.round(255*u),Math.round(255*l)]}},71663:function(e,t){"use strict";t.isHexColor=function(e){return/^#?([a-f\d]{6})$/i.test(e)}},12541:function(e,t,n){"use strict";var r=n(86430);t.rawRgbToHex=function(e){var t=e.replace(/rgb\s*\(\s*([0-9]+).*,\s*([0-9]+).*,\s*([0-9]+).*\)/gi,"$1,$2,$3").split(",");if(3===t.length){var n=parseInt(t[0]),i=parseInt(t[1]),o=parseInt(t[2]);return r.rgbToHex(n,i,o)}}},86430:function(e,t){"use strict";t.rgbToHex=function(e,t,n){function r(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}return"#"+r(e)+r(t)+r(n)}},73590:function(e,t){"use strict";t.rgbToHsv=function(e,t,n){e/=255,t/=255,n/=255;var r=Math.min(e,t,n),i=Math.max(e,t,n),o=i-r;if(0===o)return[0,0,100*i];var a=e===r?3+(n-t)/o:t===r?5+(e-n)/o:1+(t-e)/o;return[Math.round(60*(6===a?0:a)),Math.round(o/i*100),Math.round(100*i)]}},11103:function(e,t,n){"use strict";var r=n(15246),i=n(86430),o=n(12541),a=n(20560),s=n(71158),c=n(73590),u=n(71663),l=n(65909);r.hexToRgb,t.Ob=i.rgbToHex,o.rawRgbToHex,t.gT=a.hexToHsv,t.Me=s.hsvToRgb,c.rgbToHsv,t.fd=u.isHexColor,l.convertHex3To6},7999:function(e,t){"use strict";function n(e){var t={};for(var n in e)e[n]&&(t[n]=e[n]);return t}function r(e){for(var t=[],n=e.length,r=0;r=0&&"\\"===t.charAt(s-1)?a+=c:void 0!==r[c]?a+=r[c]():"\\"!==c&&(a+=c)}return a}t.i=a},11358:function(e,t,n){"use strict";var r=n(49612),i=[__("Jan%_mon_%"),__("Feb%_mon_%"),__("Mar%_mon_%"),__("Apr%_mon_%"),__("May%_mon_%"),__("Jun%_mon_%"),__("Jul%_mon_%"),__("Aug%_mon_%"),__("Sep%_mon_%"),__("Oct%_mon_%"),__("Nov%_mon_%"),__("Dec%_mon_%")],o=[__("january"),__("february"),__("march"),__("april"),__("may"),__("june"),__("july"),__("august"),__("september"),__("october"),__("november"),__("december")],a=[__("january%_x_%"),__("february%_x_%"),__("march%_x_%"),__("april%_x_%"),__("may%_x_%"),__("june%_x_%"),__("july%_x_%"),__("august%_x_%"),__("september%_x_%"),__("october%_x_%"),__("november%_x_%"),__("december%_x_%")],s=[__("%_mon_%Jan"),__("%_mon_%Feb"),__("%_mon_%Mar"),__("%_mon_%Apr"),__("%_mon_%May"),__("%_mon_%Jun"),__("%_mon_%Jul"),__("%_mon_%Aug"),__("%_mon_%Sep"),__("%_mon_%Oct"),__("%_mon_%Nov"),__("%_mon_%Dec")],c=[__("%_mon_%Jan%_x_%"),__("%_mon_%Feb%_x_%"),__("%_mon_%Mar%_x_%"),__("%_mon_%Apr%_x_%"),__("%_mon_%May%_x_%"),__("%_mon_%Jun%_x_%"),__("%_mon_%Jul%_x_%"),__("%_mon_%Aug%_x_%"),__("%_mon_%Sep%_x_%"),__("%_mon_%Oct%_x_%"),__("%_mon_%Nov%_x_%"),__("%_mon_%Dec%_x_%")],u=[__("Sunday"),__("Monday"),__("Tuesday"),__("Wednesday"),__("Thursday"),__("Friday"),__("Saturday")],l=[__("%_week_%Sun"),__("%_week_%Mon"),__("%_week_%Tue"),__("%_week_%Wed"),__("%_week_%Thu"),__("%_week_%Fri"),__("%_week_%Sat")],d=[__("Su%_week_%"),__("Mo%_week_%"),__("Tu%_week_%"),__("We%_week_%"),__("Th%_week_%"),__("Fr%_week_%"),__("Sa%_week_%")];t.getMiddleNameDays=function(e){void 0===e&&(e=!1);var t=r.__spreadArray([],l,!0);if(e){var n=t.splice(0,1);t=t.concat(n)}return t},t.getShortNameDays=function(e){void 0===e&&(e=!1);var t=r.__spreadArray([],d,!0);if(e){var n=t.splice(0,1);t=t.concat(n)}return t},t.longNameDays=u,t.longNameMonths=o,t.longNameMonthsGenitive=a,t.middleNameDays=l,t.monthsShort=i,t.shortNameDays=d,t.shortNameMonths=s,t.shortNameMonthsGenitive=c},6225:function(e,t){"use strict";t.O=function(e,t,n){void 0===n&&(n=!1);var r=Math.round(e/1e3),i=Math.floor(r/3600);r-=3600*i;var o=Math.floor(r/60),a=r-=60*o;if(t)return"".concat(i<10?"0":"").concat(i,":").concat(o<10?"0":"").concat(o,":").concat(a<10?"0":"").concat(a);var s=[];return i>0&&s.push(i,n?__("hour(s)%_genitive_%"):__("hour(s)")),o>0&&s.push(o,n?__("minute(s)%_genitive_%"):__("minute(s)")),s.push(a,n?__("second(s)%_genitive_%"):__("second(s)")),s.join(" ")}},94743:function(e,t){"use strict";t.Y=function(e,t){var n=Math.round(e/1e3),r=Math.floor(n/3600);n-=3600*r;var i=Math.floor(n/60),o=n-=60*i,a="";return t?a="".concat(r<10?"0":"").concat(r,":").concat(i<10?"0":"").concat(i,":").concat(o<10?"0":"").concat(o):(r>0&&(a+=r+" "+__("hour(s)")+" "),i>0&&(a+=i+" "+__("minute(s)")+" "),a+=o+" "+__("second(s)")),a}},34519:function(e,t){"use strict";t.Y=function(e,t){void 0===t&&(t=!1);var n=e<0?"-":"";e=Math.abs(e);var r=Math.floor(e/3600),i=Math.floor((e-3600*r)/60),o=Math.floor(e-3600*r-60*i),a=i<10?"0".concat(i):i,s=o<10?"0".concat(o):o,c="";return(r||t)&&(c=r<10?"0".concat(r,":"):"".concat(r,":")),"".concat(n).concat(c).concat(a,":").concat(s)}},64144:function(e,t,n){"use strict";var r=n(91187);t.fitTextFontSize=function(e,t,n){void 0===t&&(t=document.body),void 0===n&&(n={});var i=n.important?"important":"";function o(e,t,a){if(t-e<1)return a&&a.style.setProperty("font-size",e+"px",i),e;var s=(t+e)/2;return a&&a.style.setProperty("font-size",s+"px",i),r.isFit(a,n)?o(s,t,a):o(e,s,a)}function a(){var a=1/0,s="string"==typeof e,c=!s&&Array.isArray(e),u=!s&&!Array.isArray(e),l=[];s&&(l=t.querySelectorAll(e)),u&&(l=[e]),c&&(l=e),Array.prototype.map.call(l,(function(e){if(e&&(!e||(null==e?void 0:e.parentElement))){e.style.fontSize="";var t=parseInt(window.getComputedStyle(e)["font-size"],10),i=isNaN(t)?999:t,s=Number(e.dataset.fontSizeMin)||n.minFontSize||1;a=Math.min(a,r.isFit(e,n)?i:o(s,i,e))}})),n.syncSize&&Array.prototype.map.call(l,(function(e){e&&e.style.setProperty("font-size",a+"px",i)}))}if(n.recheckInterval){var s=setInterval(a,100);setTimeout((function(){return clearInterval(s)}),n.recheckInterval)}a()}},16572:function(e,t){"use strict";t.fitTextWrapSvg=function(e,t){void 0===t&&(t=document.body);var n=t.querySelectorAll(e);Array.prototype.map.call(n,(function(e){var t=document.createTextNode(e.innerText);e.innerHTML="";var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("width","100%"),n.setAttribute("height","100%"),n.setAttribute("viewBox","0 0 96 96");var r=document.createElementNS("http://www.w3.org/2000/svg","text");function i(){var e=r.getBBox(),t=Math.floor(e.x),i=Math.floor(e.y),o=Math.floor(e.width),a=Math.floor(e.height);n.setAttribute("viewBox","".concat(t," ").concat(i," ").concat(o," ").concat(a))}r.appendChild(t),n.appendChild(r),e.appendChild(n),i(),i()}))}},91187:function(e,t){"use strict";t.isFit=function(e,t){void 0===t&&(t={});var n=e.dataset.freeHeight;return(t.ignoreWidth||e.scrollWidth<=e.offsetWidth)&&(n||t.ignoreHeight||e.scrollHeight<=e.offsetHeight)}},73568:function(e,t,n){"use strict";var r=n(64144),i=n(16572);n(91187),t.$=r.fitTextFontSize,i.fitTextWrapSvg},6086:function(e,t,n){"use strict";var r=n(49612),i={numberOfDecimals:0,decimalSeparator:".",thousandSeparator:"",symbol:""};t.Z=function(e,t){void 0===t&&(t={});var n=r.__assign(r.__assign({},i),t),o=n.numberOfDecimals,a=n.symbol,s=n.decimalSeparator,c=n.thousandSeparator,u="",l=e.toString(),d=l.indexOf("e");if(d>-1&&(u=l.substring(d),e=parseFloat(l.substring(0,d))),null!=o){var f=Math.pow(10,o);e=Math.round(e*f)/f}var h=e<0?"-":"",p=(e>0?Math.floor(e):Math.abs(Math.ceil(e))).toString(),m=e.toString().substring(p.length+h.length);if(s=null!=s?s:".",m=null!=o&&o>0||m.length>1?s+m.substring(1):"",null!=o&&o>0)for(var v=m.length-1,g=o;v0;v-=3)p=p.substring(0,v)+c+p.substring(v);return""===n.symbol?h+p+m+u:a+" "+h+p+m+u}},20404:function(e,t,n){"use strict";n(6921);var r=n(67042);n(22706);var i=r.detectFullscreenAPIVendor();function o(){return i&&document[null==i?void 0:i.fullscreenEnabled]}t.getFullscreenAPI=function(){return i},t.isFullscreenMode=function(){return Boolean(o()?document[null==i?void 0:i.fullscreenElement]:document.body.classList.contains("fullscreen"))},t.isFullscreenSupported=o,t.setFullscreenMode=function(e,t){return void 0===t&&(t=document.documentElement),i?new Promise((function(n,r){var o=function(){document.addEventListener(i.fullscreenchange,s),document.addEventListener(i.fullscreenerror,c)},a=function(){document.removeEventListener(i.fullscreenchange,s),document.removeEventListener(i.fullscreenerror,c)},s=function(){for(var e=[],t=0;t17.4)return null}for(var t=0,n=i.fullscreenMethodsMap.length;t=a.length&&r.toString(16).length>=n);i++)for(null==a[i]&&(i=0),r*=(a.charCodeAt(i)+i*a.length)*t,r=Number(String(r).replace(/0+$/g,""));r.toString(16).length>n;)r=Math.floor(r/10);return r.toString(16)}var r=function(e){return t=n(e,246,8),r=n(e,1308,11),i=n(e,3450,12),[t,r.substr(0,4),4+r.substr(4,3),(3&Number("0x"+r[7])|8).toString(16)+r.substr(8,3),i].join("-").toUpperCase();var t,r,i},i=function(e,t,n){var r=Math.round(e/t)+t;return r>n?i(r,t,n):r};t.guid128bitFromString=r,t.guid128bitStartCharFromString=function(e){var t=r(e),n=parseInt(t[0],16);return n<10&&(t=i(n,10,16).toString(16).toUpperCase()+t.slice(1)),t}},1718:function(e,t){"use strict";var n=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};t.guid128bitRandom=function(){return n()+n()+"-"+n()+"-"+n()+"-"+n()+"-"+n()+n()+n()}},11402:function(e,t,n){"use strict";var r=n(1718),i=n(72001);t.fE=r.guid128bitRandom,t.q2=i.guid128bitStartCharFromString,t.c0=i.guid128bitFromString},23223:function(e,t,n){"use strict";var r=n(28812),i=function(){function e(e){void 0===e&&(e={}),this.opts={url:e.url||"/graphql",sendModifier:e.sendModifier||null},this.fragments={}}return e.prototype.storeFragment=function(e){var t=/fragment\s*([_A-Za-z][_0-9A-Za-z]*)\s/.exec(e);if(!t)throw new Error("GQLClient.storeFragment() - no fragment name found!");var n=t[1];return this.fragments[n]=e.trim(),n},e.prototype.removeFragment=function(e){delete this.fragments[e]},e.prototype.send=function(e,t){var n=e.query||e.mutation,i=e.variables,a=e.operationName,s=e.sendModifier||this.opts.sendModifier,c=function(e,t,n,r){var i=[];for(var o in r)r.hasOwnProperty(o)&&i.push(r[o]);var a={query:e=[e].concat(i).join("\n")};return t&&(a.variables=t),n&&(a.operationName=n),a}(n,i,a,o(n,this.fragments)),u=function(e,t){var n=function(e){e.name="GQLClientRequestError",t(e,null)},i=new XMLHttpRequest;return i.open("POST",e),i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("Accept","application/json"),i.onload=function(){if(i.status<200||i.status>299)return n(new Error("request status code is ".concat(i.status)));var e="string"==typeof i.response?r.json_parse(i.response):i.response;if(!e||!e.data&&!e.errors)return n(new Error("invalid response ".concat(JSON.stringify(e))));if(e.errors){var o=new Error("the GraphQL response has errors ".concat(JSON.stringify(e.errors)));o.name="GQLClientQueryError",o.raw=e.errors,t(o,null)}else t(null,e.data)},i.onerror=n,i}(this.opts.url,t);if(s){var l=s({xhr:u,body:c});c=l.body,u=l.xhr}u.send(JSON.stringify(c))},e}();function o(e,t,n){void 0===n&&(n={});for(var r,i=/\.\.\.\s*([_A-Za-z][_0-9A-Za-z]*)\s/g;null!==(r=i.exec(e));){var a=r[1];"on"!==a&&!n[a]&&t[a]&&(n[a]=t[a],o(t[a],t,n))}return n}e.exports=i},87952:function(e,t){"use strict";t.htmlDecode=function(e,t){void 0===t&&(t=!1);var n=String(e).replace(/&/g,"&").replace(/"/g,'"').replace(/"/g,'"').replace(/'/g,"'").replace(/'/g,"'").replace(/\/g,"\\");return t||(n=n.replace(/</g,"<").replace(/>/g,">")),n}},19286:function(e,t){"use strict";t.htmlDecodeQuote=function(e){return String(e).replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/'/g,"'")}},59480:function(e,t){"use strict";t.htmlEncode=function(e){return String(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}},22641:function(e,t,n){"use strict";var r=n(59480),i=n(87952),o=n(19286);t._N=r.htmlEncode,t.CN=i.htmlDecode,t.k=o.htmlDecodeQuote},88035:function(e,t){"use strict";t.w=function(e,t){var n=new CustomEvent(e,{detail:t});return{isDispatched:document.dispatchEvent(n),event:n}}},50445:function(e,t){"use strict";t.s=function(e,t){return("function"==typeof t?t():t)?e:void 0}},65143:function(e,t,n){"use strict";var r=n(49612);function i(e){return r.__awaiter(this,void 0,void 0,(function(){var t;return r.__generator(this,(function(n){return(t=document.querySelector("script[src$='".concat(e,"']"))||document.querySelector("link[href$='".concat(e,"']")))&&t.remove(),[2]}))}))}t.W=function(e,t,n,o,a,s){return void 0===t&&(t="js"),void 0===n&&(n=document.head),void 0===s&&(s=!1),r.__awaiter(this,void 0,void 0,(function(){var c,u,l,d;return r.__generator(this,(function(r){switch(r.label){case 0:return c="js"===t?"script":"link",u="js"===t?"src":"href",l="js"===t?"text/javascript":"text/css",d=e.substring(0,-1!==e.indexOf("?")?e.indexOf("?"):e.length),document.querySelector("".concat(c,"[").concat(u,'^="').concat(d,'"]'))?[2]:[4,new Promise((function(r,s){i(e);var d=document.createElement(c);d.type=l,d.onload=r,d.onerror=s,d[u]=e,"css"===t&&(d.rel="stylesheet"),"string"==typeof o?d.setAttribute("data-type",o):o&&"object"==typeof o&&Object.keys(o).map((function(e){d.setAttribute(e,String(o[e]))}));var f=!1;if(a)for(var h=0;h<=a.length-1;h++){var p=n.querySelector(a[h]);if(p){n.insertBefore(d,p),f=!0;break}}f||n.appendChild(d)})).catch((function(){var n=new Error("can't load \"".concat(t,'" ').concat(e));if(console.error("[inject]",n),s)throw n}))];case 1:return[2,r.sent()]}}))}))},t.k=i},41966:function(e,t){"use strict";t.a=function(){return['link[rel="preload"][href*="cr"]']},t.j=function(){return['link[rel="stylesheet"][href*="arabic"]','link[rel="stylesheet"][href*="color-scheme"]']}},35251:function(e,t){"use strict";t.getIndexedDB=function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB||window.shimIndexedDB}},84863:function(e,t,n){"use strict";var r=n(35251),i=null,o="dataStore",a=function(){function e(e){this.dataBase=e,i||(i=r.getIndexedDB())}return e.prototype.isAvailable=function(){return Boolean(i)},e.prototype.open=function(e){var t=this;return void 0===e&&(e=1),new Promise((function(n,r){var a=i.open(t.dataBase,e);a.onupgradeneeded=function(){a.result.createObjectStore(o)},a.onsuccess=function(){a.result.objectStoreNames.contains(o)||(i.deleteDatabase(t.dataBase),r({message:"".concat(o," is undefined"),store:o})),n(a.result)},a.onerror=function(){r(a.error)}}))},e.prototype.query=function(e,t){var n=this;return new Promise((function(r,a){var s=i.open(n.dataBase);s.onupgradeneeded=function(){s.result.createObjectStore(o)},s.onsuccess=function(){var c=s.result.transaction(o,e).objectStore(o),u=t(c);u.onsuccess=function(){r(u.result),s.result.objectStoreNames.contains(o)||i.deleteDatabase(n.dataBase)},u.onerror=function(){a(u.error)}},s.onerror=function(){a(s.error)}}))},e.prototype.setItem=function(e,t){return this.query("readwrite",(function(n){return n.put(t,e)}))},e.prototype.getItem=function(e){return this.query("readonly",(function(t){return t.get(e)}))},e.prototype.removeItem=function(e){return this.query("readwrite",(function(t){return t.delete(e)}))},e.prototype.getKeys=function(){var e=this,t=[];return new Promise((function(n,r){var a=i.open(e.dataBase);a.onsuccess=function(){var e=a.result.transaction(o,"readonly").objectStore(o).openCursor();e.onerror=r,e.onsuccess=function(e){var r=e.target.result;r?(t.push(r.key),r.continue()):n(t)}},a.onerror=function(){r(a.error)}}))},e}();t.IndexedDBStore=a},58754:function(e,t,n){"use strict";var r,i,o=(r=n(35251).getIndexedDB(),i=Boolean(r&&r.open),function(){return i});t.isIndexedDBAvailable=o},91414:function(e,t,n){"use strict";var r=n(35251),i=n(58754),o=n(84863);r.getIndexedDB,i.isIndexedDBAvailable,t.bp=o.IndexedDBStore},52527:function(e,t,n){"use strict";var r=n(22706),i=null;function o(e){var t=e.which||e.keyCode,n=(i=i||function(){for(var e={3:"Cancel",6:"Help",8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",28:"Convert",29:"NonConvert",30:"Accept",31:"ModeChange",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",42:"Print",43:"Execute",44:"PrintScreen",45:"Insert",46:"Delete",48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],91:"Meta",93:"ContextMenu",106:"*",107:"+",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",173:"AudioVolumeMute",174:"AudioVolumeDown",175:"AudioVolumeUp",176:"MediaTrackNext",177:"MediaTrackPrevious",178:"MediaStop",179:"MediaPlayPause",186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"'],224:"Meta",225:"AltGraph",246:"Attn",247:"CrSel",248:"ExSel",249:"EraseEof",250:"Play",251:"ZoomOut"},t=1;t<25;t++)e[111+t]="F"+t;for(t=65;t<91;t++){var n=String.fromCharCode(t);e[t]=[n.toLowerCase(),n.toUpperCase()]}for(t=96;t<106;t++)e[t]=String.fromCharCode(t-48);return e}())[t];return Array.isArray(n)?n[+e.shiftKey]:n}function a(e){return e?!r.BrowserDetect.detectIE()&&(e.key||e.keyIdentifier)||o(e):null}t.getKeyboardEventKey=a,t.isKeyPressed=function(e,t){var n=a(e);return Array.isArray(t)?t.indexOf(n)>=0:n===t}},1251:function(e,t,n){"use strict";var r=n(52527);n(22706),t.L=r.getKeyboardEventKey,r.isKeyPressed},54100:function(e,t){"use strict";t.clamp=function(e,t,n){return Math.min(Math.max(t,e),n)}},89550:function(e,t){"use strict";var n=function(){function e(e){void 0===e&&(e=1),this.seed=e}return e.prototype.seedFromString=function(e){e.length||(this.seed=1);for(var t=0,n=0;n0?t:2147483646-t)%2147483647||1},e.prototype.random=function(){return this.randomLong()/2147483647},e.prototype.randomRange=function(e,t){return e+(t-e)*this.random()},e.prototype.randomLong=function(){return this.seed=16807*this.seed%2147483647},e}();t.PRNG=n},38500:function(e,t){"use strict";var n;!function(e){e[e.MAX_SAFE_INTEGER=9007199254740991]="MAX_SAFE_INTEGER"}(n||(n={}));var r=function(){function e(){}return e.rangeInt=function(e,t){return void 0===e?Math.floor(Math.random()*n.MAX_SAFE_INTEGER):void 0===t?Math.floor(Math.random()*e):Math.floor(e+Math.random()*(t-e))},e.fromArray=function(e){return e&&e.length?e[this.rangeInt(e.length)]:null},e}();t.Random=r},52826:function(e,t){"use strict";var n=Math.sign||function(e){return e>0?1:e<0?-1:0};t.sign=n},9853:function(e,t,n){"use strict";var r=n(54100),i=n(52826),o=n(38500),a=n(89550);t.qE=r.clamp,t._S=i.sign,t.o8=o.Random,t.ch=a.PRNG},62209:function(e,t,n){"use strict";var r=n(48069),i=n(72418);n(49612),n(52818);var o=function(){function e(){this.domain=""}return e.prototype.getDomain=function(){return this.domain||(this.domain=i.getRealDomain()),this.domain},e.prototype.setItem=function(e,t,n){var i={domain:this.getDomain(),path:"/"};n&&(i.expires=n||365,i.expiresType="day"),r.Cookie(e,t,i)},e.prototype.getItem=function(e){return r.Cookie(e)},e.prototype.removeItem=function(e){r.Cookie(e,null,{domain:this.getDomain()})},e.prototype.clear=function(){},e}();e.exports=o},56803:function(e,t){"use strict";var n=function(){var e=!1;try{"undefined"!=typeof localStorage&&(localStorage.setItem("test","1"),e="1"===localStorage.getItem("test"),localStorage.removeItem("test"))}catch(t){e=!1}return function(){return e}}();t.O=n},70980:function(e,t){"use strict";var n=function(){var e=!1;try{"undefined"!=typeof sessionStorage&&(sessionStorage.setItem("test","1"),e="1"===sessionStorage.getItem("test"),sessionStorage.removeItem("test"))}catch(t){e=!1}return function(){return e}}();t.isSessionStorageAvailable=n},57082:function(e,t){"use strict";var n={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},r=function(e){return n[e]};t.escapeHTML=function(e){return String(e||"").replace(/[&<>"'`=\/]/g,r)}},52818:function(e,t){"use strict";t.escapeRegExp=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}},83008:function(e,t){"use strict";t.getStringDifference=function(e,t){for(var n=0,r=0,i="";ri.length?i.length:n,a=i.substring(0,o),s=i.substring(o);return r?"".concat(a).concat(t).concat(s):"".concat(a," ").concat(t," ").concat(s)}},72024:function(e,t){"use strict";t.normalizeHtml=function(e){return e?e.replace(/ |\u202F|\u00A0/g," ").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(//g,"\n").replace(/
/g,"\n"):""}},58958:function(e,t){"use strict";t.renderTemplate=function(e,t){return void 0===e&&(e=""),void 0===t&&(t={}),e.replace(/{(\w*)}/g,(function(e,n){return t.hasOwnProperty(n)?t[n]:""}))}},44093:function(e,t){"use strict";t.romanize=function(e){var t={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1},n="";for(var r in t)if(t.hasOwnProperty(r))for(;e>=t[r];)n+=r,e-=t[r];return n}},29328:function(e,t,n){"use strict";var r=n(52818);t.splitWithReplace=function(e,t,n){return e.split(new RegExp("("+r.escapeRegExp(t)+")","gi")).map((function(e,t){return t%2==1?n(e):e}))}},18487:function(e,t){"use strict";t.stringReplaceValues=function(e,t,n){return void 0===n&&(n="@"),e&&e.length?e.replace(new RegExp("".concat(n,"(\\w+)"),"g"),(function(e,n){return t.hasOwnProperty(n)?t[n]:""})):""}},74267:function(e,t){"use strict";t.stringTruncate=function(e,t,n){void 0===n&&(n="");var r=e.length>t?e.match(new RegExp("^(&[^;&]+;|.){1,"+t+"}")):null;return e.length>t&&r&&r.length?r[0]+n:e}},75551:function(e,t){"use strict";t.toCamelCase=function(e){return e.toLowerCase().replace(/\s?[_-]+(\w)/g,(function(e,t){return t.toUpperCase()}))}},15450:function(e,t){"use strict";t.wideStringToArray=function(e){return void 0===e&&(e=""),e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}},93594:function(e,t,n){"use strict";var r=n(44093),i=n(76154),o=n(75551),a=n(52818),s=n(57082),c=n(72024),u=n(74267),l=n(29328),d=n(83008),f=n(18487),h=n(58958),p=n(15450);t.Mf=r.romanize,t.bc=i.insertText,t.Cb=o.toCamelCase,t.Nt=a.escapeRegExp,t.Zn=s.escapeHTML,t.No=c.normalizeHtml,u.stringTruncate,l.splitWithReplace,t.Bi=d.getStringDifference,t.aR=f.stringReplaceValues,t.Xm=h.renderTemplate,t.ND=p.wideStringToArray},67186:function(e,t,n){"use strict";var r=n(33954);t.flowMarkText=function(e){return r.isRTLCulture?"".concat(e,"‏"):"".concat(e,"‎")}},481:function(e,t,n){"use strict";var r=n(95682);n(22706),t.plainTextWordWrap=function(e,t){return Array.isArray(e)?e.map((function(e){return e?r.stringWordWrapCore(e,"​",t):""})).join(" "):e?r.stringWordWrapCore(e,"​",t):""}},79729:function(e,t,n){"use strict";var r=n(95682);n(22706),t.stringWordWrap=function(e,t,n){var i,o=/<[\/\w]("[^"]*?"|'[^']*?'|[^'">])*>/g,a=[],s=0;for(e="".concat(e);i=o.exec(e);)a.push(r.stringWordWrapCore(e.substr(s,i.index-s),t,n),e.substr(i.index,i[0].length)),s=i.index+i[0].length;return a.push(r.stringWordWrapCore(e.substr(s),t,n)),a.join("")}},95682:function(e,t,n){"use strict";var r=n(22706),i=null;t.stringWordWrapCore=function(e,t,n){if(!i){var o=r.BrowserDetect.detectIE();i=o?"​":""}t=t||i,n=n||50;var a=e.split(" ");if(!a.length)return e;for(var s=new RegExp("(&[^;&]+;|.){1,"+n+"}(\\s|$)|(&[^;&]+;|.){"+n+"}|.+$","g"),c=0;cn){var u=a[c].match(s);u&&(a[c]=u.join(t))}return a.join(" ")}},32330:function(e,t,n){"use strict";var r=n(95682),i=n(79729),o=n(481),a=n(67186);n(22706),n(33954),r.stringWordWrapCore,t.gL=i.stringWordWrap,t.ET=o.plainTextWordWrap,t.JR=a.flowMarkText},17462:function(e,t){"use strict";t.getQueryStringParameterByName=function(e,t){t||(t=window.location.href),t=t.toLowerCase(),e=e.replace(/[\[\]]/g,"\\$&").toLowerCase();var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}},38774:function(e,t){"use strict";t.getUrlParam=function(e,t){var n=e.match("[?&]".concat(t,"=([^&]+)"));return n?n[1]:null}},70953:function(e,t){"use strict";t.isUrlFinal=function(e,t){return(e.startsWith("http")||e.startsWith("/"))&&!function(e,t){return!!t&&Object.keys(t).some((function(t){return e.includes(":(".concat(t,")"))}))}(e,t)}},34143:function(e,t){"use strict";t.updateQueryStringParameter=function(e,t,n){var r=new RegExp("([?|&])"+t+"=.*?(&|#|$)","i");if(e.match(r)){if(null!=n)return e.replace(r,"$1"+t+"="+n+"$2");var i=e.indexOf(t+"=")-1;return r=new RegExp("()\\"+e.charAt(i)+t+"=.*?(&|#|$)","i"),e.replace(r,"$1$2")}if(n){var o="",a=-1!==e.indexOf("?")?"&":"?";return-1!==e.indexOf("#")&&(o=e.replace(/.*#/,"#"),e=e.replace(/#.*/,"")),e+a+t+"="+n+o}return e}},35172:function(e,t,n){"use strict";var r=n(17462),i=n(38774),o=n(70953),a=n(34143);t.Zy=r.getQueryStringParameterByName,t.P3=i.getUrlParam,t.oW=o.isUrlFinal,t.K=a.updateQueryStringParameter},99353:function(e,t){"use strict";t.s=function(e,t,n){var r;return function(){for(var i=[],o=0;o0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e+"../../"}(),function(){var e={21:0,294:0,547:0,366:0,588:0,530:0,134:0,300:0,319:0,359:0,498:0,93:0,140:0,130:0,74:0,79:0,129:0,136:0,467:0,376:0,368:0,354:0,295:0,355:0,356:0,666:0,107:0,127:0,37:0,16:0,12:0,42:0,118:0,3:0,17:0,87:0,38:0,22:0,41:0,27:0,30:0,6:0,13:0,43:0,34:0,35:0,33:0,7:0,5:0,1:0,36:0,110:0,102:0,61:0,48:0,147:0,54:0,267:0,56:0,135:0,106:0,389:0,81:0,64:0,55:0};a.f.j=function(t,n){var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((function(n,i){r=e[t]=[n,i]}));n.push(r[2]=i);var o=a.p+a.u(t),s=new Error;a.l(o,(function(n){if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,r[1](s)}}),"chunk-"+t,t)}};var t=function(t,n){var r,i,o=n[0],s=n[1],c=n[2],u=0;if(o.some((function(t){return 0!==e[t]}))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(c)c(a)}for(t&&t(n);u'),a.insertAdjacentHTML("beforeend",'');var s=document.createElement("div");s.className="popup_content",o.append(a,s),j("body").append(o),(r=j("#bongacams_popup")).find(".popup_close").click((function(){j.bongacamsPopupClose(!0,j.jlNamespace.popupAllOptions.onClose)})),j.jlNamespace.$popupBlock=r,j.jlNamespace.$popupContent=r.find(".popup_content");var c=r.find(".popup_header");j.jlNamespace.$popupTitle=c.find(".popup_title"),j.jlNamespace.$popupClose=c.find(".popup_close")}j(e).attr("onclick","return false;"),j(e).off("click").on("click",(function(){var t,r,i,o,a=this;j.jlNamespace.popupAllOptions&&j.bongacamsPopupClose(!1,j.jlNamespace.popupAllOptions.onClose),j.jlNamespace.popupAllOptions=n,j.jlNamespace.popupOptions=n.options,j("#bongacams_popup").toggleClass("sticky_popup",n.sticky),j.jlNamespace.$contentContainer=n.container,void 0!==n.title&&!1!==n.title?j.jlNamespace.$popupTitle.html(n.title).removeClass("popup_title_empty"):j.jlNamespace.$popupTitle.html("").addClass("popup_title_empty"),n.noCloseButton?(null===(t=j.jlNamespace)||void 0===t||t.$popupClose.html(""),null===(r=j.jlNamespace)||void 0===r||r.$popupClose.addClass("__no_click"),j("#bChat").addClass("__no_click")):(null===(i=j.jlNamespace)||void 0===i||i.$popupClose.removeClass("__no_click"),null===(o=j.jlNamespace)||void 0===o||o.$popupClose.html(void 0!==n.closeButton&&!1!==n.closeButton&&null!==n.closeButton?n.closeButton:'')),j.jlNamespace.$popupContent.html(n.container.children()),"function"==typeof n.onDisplay&&n.onDisplay();var s=j.jlNamespace.$popupBlock,c=j(this).offset().left,u=j(e).width(),l=s.width(),d=D.isRTLCulture?c-l+u:c;return j.jlNamespace.$popupBlock.css({top:(null==n?void 0:n.isTip)?"auto":j(a).offset().top+"px",bottom:"auto",left:d+"px"}).show(),"function"==typeof n.afterDisplay&&n.afterDisplay(),!1}))}},U=x,F=(a(86504),a(41669));F.fn.openPopup=function(e){new U(this,e);return this},F.fn.bongacamsPopup=function(e,t,n,r,i,o,a){return F.fn.openPopup({container:e,onDisplay:t,title:n,afterDisplay:r,closeButton:i,v2:o,onClose:a})},F.bongacamsPopupClose=function(e,t){function n(){null!=F.jlNamespace.$contentContainer&&(F.jlNamespace.$contentContainer.html(F.jlNamespace.$popupContent.children()),F.jlNamespace.$contentContainer=null,"function"==typeof t&&t())}F.jlNamespace.$popupBlock&&(e?F.jlNamespace.$popupBlock.fadeOut(200,n):(F.jlNamespace.$popupBlock.hide(),n()))},F.fn.max_lengthable=function(e){return F(this).unbind(".max_lengthable").bind("keyup.max_lengthable focus.max_lengthable",(function(){var t=F(this).closest(".form_row"),n=t.find(".notifier");n.length||(n=F('
\x3c!-- --\x3e
'),F(this).parent().after(n));var r=e-F(this).val().length;r>=0?(n.removeClass("too_long"),n.html(r+" "+__("characters left"))):(n.addClass("too_long"),n.html(-r+" "+__("characters exceeded"))),t.find(".form_error_list").length&&t.find(".form_errors_in_row").hide()})).bind("blur.max_lengthable",(function(){F(this).closest(".form_data_about_me").length||F(this).closest(".form_row").find(".notifier").remove()})),this},F.fn.unmax_lengthable=function(){F(this).unbind(".max_lengthable"),F(this).closest("form_row").find(".notifier").remove()},F.fn.numbersOnly=function(){return this.each((function(){F(this).on("keydown",(function(e){return 8===e.keyCode||189===e.keyCode||109===e.keyCode||e.keyCode>=48&&e.keyCode<=57||e.keyCode>=96&&e.keyCode<=105}))}))},F.fn.sort=function(){return this.pushStack([].sort.apply(this,arguments),[])};var B=a(9613);var H=a(71431),G=a(19826),V=a(2268);var W=function(){var t=G.A.getState();Object.keys(t).filter((function(e){return 0===e.indexOf("run_")})).map((function(e){return e.substr(4)})).map((function(t){!function(t){(0,e.sH)(this,void 0,void 0,(function(){var n,r,i;return(0,e.YH)(this,(function(e){switch(e.label){case 0:switch(n=G.A.getState(),r=n["init_".concat(t)]||{},t){case"MemberJoin":return[3,1];case"BuyVipCoin":return[3,3]}return[3,5];case 1:return[4,a.e(251).then(a.bind(a,79385))];case 2:case 4:return i=e.sent(),[3,5];case 3:return[4,a.e(252).then(a.bind(a,81214))];case 5:return i&&i.run(r),[2]}}))}))}(t)}))},q=a(85418),Y=a(41669);var z=a(41669);function X(){var e=G.A.getState(),t=e.isAuthenticated,n=e.loyaltyDiscountEnabled,r=e.chatAutoInit,i=e.chatHost,o=e.chatPopup,s=e.isModerator,c=e.isMobile,u=e.user,l=document.body.classList.contains("tablet");if(G.A.setState({isTablet:l}),z.windowJsVars={loyaltyDiscountEnabled:n},V.kX.setCulture(G.A.getState().culture||"en_GB"),(0,q._M)(),c||s||function(){if(!Y("body").hasClass("chatPopupBody")){if("undefined"!=typeof chat&&!Y(".main_wrapper > #spa_wrapper").length){var e=!1,t=Y(".main_wrapper > .wrapper"),n=Y("#spa_wrapper");n.length||(n=Y('
'),e=!0),t.before(n),e&&chat.init()}return document.getElementById("mls_chatconsole")?void 0:((0,R._b)("Chat initSPA failed").info("Wrapper not found"),void(0,q._M)(!0))}(0,q._M)(!0)}(),(0,R._b)("Chat autoInit").info({chatAutoInit:r}),r&&window.chat&&(chat.init(),i&&chat.getRoom(i.username,{title:i.displayName,popup:o})),W(),s&&a.e(222).then(a.bind(a,24526)).then((function(e){return e.init(u.username)})),t){var d=u.GUID;d&&Promise.all([a.e(11),a.e(225)]).then(a.bind(a,8583)).then((function(e){return e.applySafeBalance(d,u.username)}))}}var K=G.A.action((function(t){var n,r,i,o,a=t.user&&(0,e.Cl)((0,e.Cl)({},t.user),{username:null===(n=t.user.username)||void 0===n?void 0:n.toString(),displayName:null===(r=t.user.displayName)||void 0===r?void 0:r.toString()}),s=t.chatBeforeOfflineNotificationOptions&&(0,e.Cl)((0,e.Cl)({},t.chatBeforeOfflineNotificationOptions),{memberUserName:null===(i=t.chatBeforeOfflineNotificationOptions.memberUserName)||void 0===i?void 0:i.toString(),memberDisplayName:null===(o=t.chatBeforeOfflineNotificationOptions.memberDisplayName)||void 0===o?void 0:o.toString()}),c=t.miniProfile&&(0,e.Cl)((0,e.Cl)({},t.miniProfile),{actions:t.miniProfile.actions&&"object"==typeof t.miniProfile.actions&&Object.fromEntries(Object.entries(t.miniProfile.actions).map((function(t){var n=t[0],r=t[1];return[n,r&&"object"==typeof r&&"currentUsername"in r?(0,e.Cl)((0,e.Cl)({},r),{currentUsername:r.currentUsername.toString()}):r]})))});return(0,e.Cl)((0,e.Cl)({},t),{user:a,chatBeforeOfflineNotificationOptions:s,miniProfile:c})})),J=a(41669),$=!1;$||($=!0,J((function(){(0,H.T)(),K(),X()})));var Q=a(80554),Z=a(88159),ee={account:function(){return a.e(245).then(a.bind(a,62353))},accountRestorePage:function(){return a.e(248).then(a.bind(a,67129))},concierge_service:function(){return a.e(210).then(a.bind(a,204))},content_removal_page:function(){return a.e(254).then(a.bind(a,88683))},content_removal_page_mobile:function(){return a.e(246).then(a.bind(a,62948))},ethernet_connection:function(){return a.e(242).then(a.bind(a,60058)).then((function(e){return(0,e.EthernetConnectionAttach)()}))},gift_card:function(){return a.e(224).then(a.bind(a,3999))},"gift_card.mobile":function(){return a.e(239).then(a.bind(a,49330))},invisible_mode_fit_text:function(){return Promise.all([a.e(11),a.e(226)]).then(a.bind(a,11301))},member_dmca_page:function(){return a.e(250).then(a.bind(a,76875))},member_dmca_page_mobile:function(){return Promise.all([a.e(11),a.e(42),a.e(213)]).then(a.bind(a,77623))},moderator_view4cam:function(){return Promise.all([a.e(11),a.e(10),a.e(44),a.e(37),a.e(16),a.e(12),a.e(110),a.e(102),a.e(61),a.e(48),a.e(54),a.e(267),a.e(221)]).then(a.bind(a,66701))},billing_support_page_desktop:function(){return Promise.all([a.e(42),a.e(211)]).then(a.bind(a,87080)).then((function(e){return(0,e.BillingSupportPageAttach)()}))},billing_support_page_mobile:function(){return Promise.all([a.e(42),a.e(211)]).then(a.bind(a,87080)).then((function(e){return(0,e.BillingSupportMobilePageAttach)()}))},forget_password_page:function(){return Promise.all([a.e(42),a.e(212)]).then(a.bind(a,28174)).then((function(e){return(0,e.ForgotPasswordPageAttach)()}))},"forget_password_page.mobile":function(){return Promise.all([a.e(42),a.e(216)]).then(a.bind(a,38720)).then((function(e){return(0,e.ForgotPasswordPageAttach)()}))},membership:function(){return a.e(233).then(a.bind(a,28473)).then((function(e){(new(0,e.Membership)).init()}))},mobile_chat_page:function(){return Promise.all([a.e(11),a.e(10),a.e(44),a.e(37),a.e(16),a.e(12),a.e(110),a.e(102),a.e(61),a.e(48),a.e(54),a.e(267),a.e(220)]).then(a.bind(a,49670)).then((function(e){return(0,e.mobileChatComponentsAttach)()}))},refer_a_friend_page:function(){return(0,Z.F)()?a.e(232).then(a.bind(a,62415)).then((function(e){return(0,e.referAFriendPageAttachMobile)()})):a.e(219).then(a.bind(a,34588)).then((function(e){return(0,e.referAFriendPageAttach)()}))},reset_password:function(){return a.e(229).then(a.bind(a,82077)).then((function(e){return(0,e.ResetPasswordPageAttach)()}))},reset_password_mobile:function(){return a.e(231).then(a.bind(a,44378)).then((function(e){return(0,e.ResetPasswordPageAttach)()}))},SitemapPage:function(){return a.e(253).then(a.bind(a,82861)).then((function(e){(new(0,e.SitemapPage)).init()}))},skin_info_alert:function(){return a.e(223).then(a.bind(a,98948)).then((function(e){e.default.instance.init()}))},cookies_bar:function(){return a.e(244).then(a.bind(a,61497))},forwardToRemotePage:function(){return a.e(240).then(a.bind(a,52645))},free_tokens:function(){return a.e(230).then(a.bind(a,21685))},news_advices:function(){return a.e(234).then(a.bind(a,29263))},nft_cashback:function(){return Promise.all([a.e(237),a.e(249)]).then(a.bind(a,68581))},nft_cashback_mobile:function(){return Promise.all([a.e(237),a.e(247)]).then(a.bind(a,63780))},photo_uploader:function(){return a.e(236).then(a.bind(a,33453))},sell_traffic:function(){return Promise.all([a.e(42),a.e(134),a.e(217)]).then(a.bind(a,53128))},upload_form:function(){return a.e(241).then(a.bind(a,58616))},vip_overview:function(){return a.e(238).then(a.bind(a,40573))},warning_18plus:function(){return a.e(227).then(a.bind(a,11874))}},te=a(7187),ne=a(28812),re=function(e){var t=ee[e];t&&t().catch((function(t){(0,R._b)("ExtraJSLoader attach failed").error(e,t)}))},ie=function(){var e=document.querySelectorAll('[data-type="extraChunk"]'),t=Array.from(e).map((function(e){return(0,ne.json_parse)(e.textContent||"")}));new Set(t).forEach(re)},oe=function(){ie(),(0,te.c5)(Q.R.SPA_LAYOUT_CHANGE,ie)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",oe):oe();var ae,se=a(50172),ce=a(17402),ue=a(84976),le=a(98614);!function(e){e.CONTEST="contest",e.DEFAULT="default",e.FOLLOW="follow",e.PROFILE="profile"}(ae||(ae={}));var de=a(72418),fe=a(38654),he=a(9834),pe=a(62614);window.onload=function(){var t=G.A.getState(),n=t.culture,r=t.isAuthenticated,i=t.isMobile,o=document.getElementById("js-router_page"),s=Boolean(o),c=fe.h.isEnabled("spa_router"),u=!i&&(c||s);!function(e){var t=(0,B.Hk)("ls02");if(t){(0,R._b)("ListingCookie sort").log(t);var n=(0,de.getRealDomain)();(0,B.Hk)("ls02",t,e?{path:"/",domain:n,expires:365,expiresType:"day"}:{path:"/",domain:n})}}(r),u&&a.e(189).then(a.bind(a,6022)).then((function(t){var r,i,s=t.RouterAppLayout,c=(null===(r=null==o?void 0:o.dataset)||void 0===r?void 0:r.layout)||ae.DEFAULT;o&&(i=c,i===ae.CONTEST?Promise.all([a.e(11),a.e(132),a.e(177)]).then(a.bind(a,70383)).then((function(e){return e.contestPageRouterConfig})):i===ae.PROFILE?Promise.all([a.e(157),a.e(198)]).then(a.bind(a,86475)).then((function(e){return e.profilePageConfig})):i===ae.FOLLOW?a.e(196).then(a.bind(a,15309)).then((function(e){var t,n=e.createFollowPageConfig,r=document.getElementById("followersContent"),i=r?(0,ne.json_parse)(r.innerText):null;return(null===(t=null==i?void 0:i.context)||void 0===t?void 0:t.username)?n(i.context.username):[]})):new Promise((function(e){e([])}))).then((function(t){var r=document.getElementById("js-router_initial_data"),i=document.getElementById("js-router_cache_data"),a=(null==i?void 0:i.innerHTML)||!!(null==r?void 0:r.innerHTML),c=new he.A({expire:30,expireBy:"minutes"});a&&c.set(window.location.href,"boolean"==typeof a?a:JSON.parse(a)),null==r||r.remove(),null==i||i.remove();var u=(0,ue.Ys)(t,{dataStrategy:function(t){return(0,e.sH)(this,arguments,void 0,(function(t){var n,r=t.matches;return(0,e.YH)(this,(function(e){switch(e.label){case 0:return n=r.filter((function(e){return e.shouldLoad})),[4,Promise.all(n.map((function(e){return e.resolve((function(e){return e({cache:c})}))})))];case 1:return[2,e.sent().reduce((function(e,t,r){var i;return Object.assign(e,((i={})[n[r].route.id]=t,i))}),{})]}}))}))},future:{v7_fetcherPersist:!0,v7_normalizeFormMethod:!0,v7_partialHydration:!0,v7_relativeSplatPath:!0,v7_skipActionErrorRevalidation:!0}});V.kX.setCulture(n);var l=pe.w.insertBefore((0,ce.createElement)(le.Kq,{store:G.A},(0,se.h)(s,{router:u,wrapperElement:o})),o);l&&(l.style.display="none",l.id="appWrapper")}))}))};var me=a(54022),ve=a(2368),ge=a(13907),_e=a(38905),be=a(41669),ye=function(){return window.location.href=(0,ge.ip)("@homepage")},Ae=function(t){return(0,e.sH)(void 0,void 0,void 0,(function(){var n,r,i,o,a;return(0,e.YH)(this,(function(e){switch(e.label){case 0:return t.preventDefault(),t.stopPropagation(),n="visible"===(null===(a=null===window||void 0===window?void 0:window.chat)||void 0===a?void 0:a.visibility),r=n?ve.T:ye,i=(0,ge.ip)("@logout"),o={method:"POST"},[4,(0,me.gQ)(i,o)];case 1:return"success"===e.sent().status?(G.A.getState().isMobile&&(sessionStorage.removeItem(_e.G),sessionStorage.removeItem("newVideoCount")),r(),[2]):((0,ve.T)(),[2])}}))}))};be((function(){be(document).on("click",".js-control_logout",Ae)}));a(90108),a(76591);var Se=a(8522),Ee=a(35014),we=a(10920),Ce=a(973),Te=a(46517),Le=function(){return a.e(594).then(a.bind(a,7596))},Me=function(){return a.e(595).then(a.bind(a,15787))},ke=function(){return document.getElementById("js-contact_support_form")},Ne=function(t,n){void 0===n&&(n=!1);var r,i,o=t||ke();if(o){var a=(i=document.getElementById("emailSupportFormData"))?(0,ne.json_parse)(i.innerText):null;if(!a)return;r={formElement:o,formData:a,isMobile:n},(0,e.sH)(void 0,void 0,void 0,(function(){var t,n,i,o;return(0,e.YH)(this,(function(e){switch(e.label){case 0:return t=r.formElement,n=r.formData,[4,((i=r.isMobile)?Me:Le)()];case 1:return o=e.sent().ContactSupportForm,pe.w.replaceContainer((0,ce.createElement)(Te.Kq,{store:G.A},[(0,ce.createElement)(o,{formData:n,isMobile:i})]),t),[2]}}))}))}},Ie=a(33574),Oe=a(4645),Pe=a(73568),Re=a(64254),De=a(17963),je=a(27821),xe=a(36170),Ue=a(92276),Fe=a(21492),Be=a(26580),He=a(53336),Ge=a(63065),Ve=a(1887),We=function(e){var t=e.displayName,n=e.profileAvatarUrl,r=e.username,i=e.isOnline;return(0,se.h)("div",{className:"history_item",onClick:function(){location.href=(0,ge.ip)("@member_chat?username=".concat((0,Ge.o)(r)),!0)}},(0,se.h)("div",{className:"history_item_inner"},(0,se.h)(Fe.h,{className:"history_avatar_content",image:{alt:t,src:n}}),i&&(0,se.h)(Be.A,{group:"history_status",icon:"#svg_onst_live",url:He.P1}),(0,se.h)("div",{className:"history_content"},(0,se.h)("div",{className:"history_content_inner"},(0,se.h)("div",{className:"history_info"},(0,se.h)(Be.A,{group:"history_info_icon",icon:"#svg_icon_history_info",url:He.ed}),(0,se.h)("span",{className:"history_info_name"},t)),(0,se.h)("div",{className:"history_open_profile",onClick:function(e){i||(e.stopPropagation(),(0,Ve.o)((0,ge.ip)("@common_profile?username=".concat((0,Ge.o)(r)),!0)))}},(0,se.h)("span",null,i&&__("Watch stream"),!i&&__("View Profile")))))))},qe=function(t){function n(e){var n=t.call(this,e)||this;return n.state={},n}return(0,e.C6)(n,t),n.prototype.render=function(){return(0,se.h)("div",{className:"history_popup_no_items"},(0,se.h)("div",{className:"history_no_items_icon_wrapper"},(0,se.h)(Be.A,{group:"history_no_items_icon",icon:"#svg_icon_history_no_items",url:He.ed})),__("Here will be displayed the models' rooms you have visited!"))},n.defaultProps={},n}(se.uA),Ye=a(65771),ze=a(12957),Xe=function(t){var n=t.items;return n.length?(0,se.h)(Ye.M,{name:"history_scroll",className:"inner ".concat(n.length>5?"__fixed_height":"")},(0,se.h)("div",{className:"history_popup_items"},(0,ze.loopv)(n,(function(t){return(0,se.h)(We,(0,e.Cl)({key:t.displayName},t))})))):(0,se.h)(qe,null)},Ke=a(8242),Je=a(67960),$e=a(73324),Qe=a(8546),Ze=a(41669),et=function(t){function n(e){var n=t.call(this,e)||this;return n.cancelHideTimeoutPopup=function(){n.hideTimeoutPopup&&clearTimeout(n.hideTimeoutPopup)},n.cancelOpenTimeoutPopup=function(){n.openTimeoutPopup&&clearTimeout(n.openTimeoutPopup)},n.handleShow=function(){n.setState({visible:!0}),n.loadItemsData()},n.handleHide=function(){n.setState({visible:!1})},n.handleMouseMoveStage=function(e){n.cancelOpenTimeoutPopup(),n.cancelHideTimeoutPopup(),e?n.hideTimeoutPopup=setTimeout(n.handleHide,400):n.openTimeoutPopup=setTimeout(n.handleShow,250)},n.loadItemsData=function(){if(!n.state.loading&&!n.loadingXHR){var e=(0,ge.ip)("@history_get_models_info");if("#"!==e){var t=(0,Ke.uy)(Je.H).slice(-Je.s).reverse();if(t.length){var r=t.join("");if(!n.lastLoadedRoomsHash||r!==n.lastLoadedRoomsHash){var i=[];n.setState({loading:!0}),n.loadingXHR=Ze.ajax({url:e,type:"POST",data:{usernames:t},success:function(e){var n;if($e.A.isSuccess(e.status)&&(null===(n=e.result)||void 0===n?void 0:n.history)){var r=e.result.history;i=(i=(0,ze.loopv)(t,(function(e){return r.find((function(t){return t.username===e}))}))).filter(Boolean)}},complete:function(){n.loadingXHR=null,n.lastLoadedRoomsHash=r,n.setState({items:i,loading:!1,hasLoadedItems:!0}),n.timeoutUpdatedModels=setTimeout((function(){clearTimeout(n.timeoutUpdatedModels),n.lastLoadedRoomsHash=""}),5e3)}})}}else n.setState({hasLoadedItems:!0})}}},n.onMouseMove=function(){n.rootComponent.removeEventListener("mousemove",n.onMouseMove),n.state.hasLoadedItems||n.loadItemsData()},n.state={visible:!1,loading:!1,hasLoadedItems:!1,items:[]},n}return(0,e.C6)(n,t),n.prototype.componentDidMount=function(){this.rootComponent.addEventListener("mousemove",this.onMouseMove)},n.prototype.render=function(){var e=this,t=this.state,n=t.visible,r=t.items,i=t.loading,o=t.hasLoadedItems;return(0,se.h)("div",{className:(0,Qe.n)({hbi_inner:!0,__loading:i||!o}),onMouseEnter:function(){return e.handleMouseMoveStage(!1)},onMouseLeave:function(){return e.handleMouseMoveStage(!0)},ref:this.rootComponentRef},(0,se.h)("span",null,__("History")),n&&o&&(0,se.h)("div",{className:"history_popup __hp_search"},(0,se.h)("div",{className:"history_popup_inner"},(0,se.h)(Xe,{items:r}))))},n.defaultProps={},n}(Ue.I),tt=et,nt=a(83966),rt=a(76393),it=a(52276),ot=a(28534),at=a(76122),st=a(77858),ct=null,ut=!1,lt={};var dt,ft=function(e){var t;(t=ct)&&(pe.w.unmount(t),t=null),setTimeout((function(){lt[e]=!1}),100)},ht=function(e){var t=e.el,n=e.groupId,r=e.model,i=e.isFreeMember,o="".concat((0,ge.ip)("@api_im_context_menu"),"?username=").concat(r.username);ut||(lt[n]?ft(n):(ut=!0,(0,me.gQ)(o).then((function(e){lt[n]=!0,ut=!1,e.data&&Promise.all([a.e(11),a.e(32),a.e(110),a.e(102),a.e(97),a.e(147),a.e(157),a.e(77),a.e(113),a.e(163),a.e(63),a.e(187),a.e(597)]).then(a.bind(a,50140)).then((function(o){var a=o.default;ct=pe.w.append((0,se.h)(le.Kq,{store:G.A},(0,se.h)(at.t,{className:"__context_menu",parent:t,position:st.L.BOTTOM_LEFT,isCentered:!0,isKeptOnScroll:!0,onClose:function(){return ft(n)}},(0,se.h)(a,{actions:e.data.menu,groupId:n,model:r,isFreeMember:i,onClose:function(){return ft(n)}}))),document.body)}))}))))},pt=a(72374),mt=a(15648),vt=a(21458),gt=a(84078),_t=a(29388),bt=a(91651),yt=function(){return{open:function(t,n){var r=t.newsIm,i=n.detail;if(!r.disabled&&!r.currentNewsIm||(null==i?void 0:i.force)){var o=(0,e.fX)([],r.newsIms,!0)||[],a=(0,e.fX)([],r.showedNewsIms||[],!0),s=o.filter((function(e){return!a.includes(e.newsImId)})),c=null;if(i.newsIm){var u=i.newsIm.newsImId;o.find((function(e){return e.newsImId===u}))?o.forEach((function(e){e.newsImId===u&&(e.translatedPhrases=i.newsIm.translatedPhrases||e.translatedPhrases)})):o.push(i.newsIm)}return i.newsImId?(c=o.find((function(e){return e.newsImId===i.newsImId})))&&(c.forceOpened=!0,c.isDebug=i.debug):s.length>0&&(c=s.shift()),c&&!i.newsImId&&a.push(c.newsImId),(0,e.Cl)((0,e.Cl)({},t),{newsIm:(0,e.Cl)((0,e.Cl)({},t.newsIm),{showedNewsIms:a,currentNewsIm:c})})}},close:function(t){return(0,e.Cl)((0,e.Cl)({},t),{newsIm:(0,e.Cl)((0,e.Cl)({},t.newsIm),{currentNewsIm:null})})}}},At=(0,le.i0)(yt,G.A),St=At.open,Et=At.close;!function(e){e.NEWS_IM="extra/news_im.css",e.ARABIC_NEWS_IM="extra/arabic_news_im.css",e.PROMO_INNER_BANNER="extra/promo_inner_banner.css",e.ARABIC_PROMO_INNER_BANNER="extra/promo_inner_banner_rtl.css"}(dt||(dt={}));var wt=a(41966),Ct=a(49635),Tt=function(t){var n,r,i=t.newsId,o=(0,Te.d4)((function(e){return e.lang})),s=(0,Te.d4)((function(e){return e.isWL})),c=(0,Te.d4)(Ct.dt),u=(0,Te.d4)((function(e){return e.newsIm})),l=(0,Te.d4)((function(e){return e.skinName})),d=(0,ce.useState)(!0),f=d[0],h=d[1],p=(0,ce.useRef)(),m=(0,ce.useRef)(null),v=function(){var t=(0,ce.useCallback)((function(e){if(e.detail){var t=e.detail.newsImEl;t&&t.classList.add("__hide")}setTimeout((function(){Et()}),1500)}),[]);(0,ce.useLayoutEffect)((function(){return document.addEventListener(Q.R.NEWS_IM_OPEN,St),document.addEventListener(Q.R.NEWS_IM_CLOSE,t),function(){document.removeEventListener(Q.R.NEWS_IM_OPEN,St),document.removeEventListener(Q.R.NEWS_IM_CLOSE,t)}}),[t]);var n=(0,ce.useCallback)((function(){return(0,e.sH)(void 0,void 0,void 0,(function(){return(0,e.YH)(this,(function(e){switch(e.label){case 0:return(0,_t.A)([dt.NEWS_IM],!0)?[3,2]:[4,(0,bt.i)(dt.NEWS_IM,document.head,null,(0,wt.j)())];case 1:e.sent(),e.label=2;case 2:return!D.isRTLCulture||(0,_t.A)([dt.ARABIC_NEWS_IM],!0)?[3,4]:[4,(0,bt.i)(dt.ARABIC_NEWS_IM,document.head,null,(0,wt.j)())];case 3:e.sent(),e.label=4;case 4:return(0,_t.A)([dt.PROMO_INNER_BANNER],!0)?[3,6]:[4,(0,bt.i)(dt.PROMO_INNER_BANNER,document.head,null,(0,wt.j)())];case 5:e.sent(),e.label=6;case 6:return!D.isRTLCulture||(0,_t.A)([dt.ARABIC_PROMO_INNER_BANNER],!0)?[3,8]:[4,(0,bt.i)(dt.ARABIC_PROMO_INNER_BANNER,document.head,null,(0,wt.j)())];case 7:e.sent(),e.label=8;case 8:return[2]}}))}))}),[]);return{loadStyle:n}}().loadStyle;(0,ce.useEffect)((function(){u.currentNewsIm&&v().then((function(){clearTimeout(p.current),p.current=window.setTimeout((function(){h(!1)}),2e3)}))}),[u.currentNewsIm,null===(r=u.currentNewsIm)||void 0===r?void 0:r.translatedPhrases]);var g=function(e){var t=e.target,n=e.currentTarget,r=t.hasAttribute("rel"),i=n.hasAttribute("target")&&"_blank"===n.getAttribute("target");r||e.stopPropagation(),m.current.classList.add("__hide"),i?h(!0):(clearTimeout(p.current),p.current=window.setTimeout((function(){h(!0)}),1500)),document.dispatchEvent(new CustomEvent(Q.R.NEWS_IM_CLOSE))},_=u.currentNewsIm,b=_&&(!u.disabled||_.forceOpened),y=Boolean((null==c?void 0:c.pollQuestions)&&!(0,gt.v)("no_popups"));if((0,pt.A)((function(){y&&(0,mt.O)()})),!b&&!y)return null;var A=(0,ce.lazy)((function(){return a(43611)("./NewsIm".concat(i||_.newsImId))}));return(0,se.h)("div",{ref:m,id:"news_im_view",className:(0,Qe.n)((n={bc_scroll_compensation:!0},n["nim_".concat(o)]=!0,n.bc_wl=s,n.__show=!f,n))},b&&!y&&(0,se.h)("div",{className:"news_im"},(0,se.h)("header",{className:"nim_header"},(0,se.h)("div",{className:"nim_ico"}),(0,se.h)("div",{className:"nim_close",onClick:g})),(0,se.h)("div",{className:"nim_body"},_&&(0,se.h)(vt.ErrorBoundary,null,(0,se.h)(ce.Suspense,{fallback:null},(0,se.h)(A,{currentNewsIm:_,lang:o,skinName:l,user:c,isWL:s,onClose:g}))))))},Lt=a(50973),Mt=a(82138),kt=a(92340),Nt=a(41669),It=function(){if(!fe.h.isEnabled("spa_router")){var e=document.querySelector(".js-history_popup");e&&(0,ce.render)((0,se.h)(le.Kq,{store:G.A},(0,se.h)(tt,null)),e);var t=document.querySelector(".js-buy-tokens"),n=kt.A.isAllowedEvent(nt.A.BUY_TOKENS_RUSSIAN_CARDS_POPUP);t&&n&&a.e(641).then(a.bind(a,58708)).then((function(e){var n=e.default;pe.w.append((0,se.h)(le.Kq,{store:G.A},(0,se.h)(n,null)),t)}));var r=document.querySelector(".js-saved_searches_popup");r&&Promise.all([a.e(11),a.e(60),a.e(596)]).then(a.bind(a,27667)).then((function(e){var t=e.default;(0,ce.render)((0,se.h)(le.Kq,{store:G.A},(0,se.h)(t,null)),r)}))}if(G.A.getState().isAuthenticated){(0,rt.L)(He.yX),pe.w.append((0,se.h)(le.Kq,{store:G.A},(0,se.h)(Tt,null)),document.body),a.e(643).then(a.bind(a,67555)).then((function(e){var t=e.default;pe.w.append((0,se.h)(le.Kq,{store:G.A},(0,se.h)(t,null)),document.body)})),"function"==typeof window.BCInitMainLayout&&window.BCInitMainLayout(),document.addEventListener("@@DefaultPopup/showGoldPopup",(function(){(0,ot.y)(it.L.GOLD)})),document.addEventListener("@@ban",(function(e){var t=e.detail.username;t&&(0,Lt.X)({username:t})})),document.addEventListener("@@DefaultPopup/checkNotEnoughTokens",(function(e){var t=e.detail.amount;t&&(0,Mt.E)(t)})),document.addEventListener("@@ContextMenu/im",(function(e){ht(e.detail)})),document.addEventListener("@@PromoInnerBanner/show",(function(e){var t;(0,xe.C)(Number(null===(t=e.detail)||void 0===t?void 0:t.bannerId))}));var i=function(){"function"==typeof window.BCInitOverlayLayout&&window.BCInitOverlayLayout(),"function"==typeof window.BCInstantMessageHeaderInbox&&window.BCInstantMessageHeaderInbox(),"function"==typeof window.BCInitMessageCenter&&window.BCInitMessageCenter(),document.removeEventListener("onNoticeSocketReady",i)};Nt.noticeSocket?i():document.addEventListener("onNoticeSocketReady",i)}var o=new URLSearchParams(window.location.search),s="showConfirmEmailPopup";"1"===o.get(s)&&(G.A.setState({isShowConfirmEmailPopup:!0}),a.e(379).then(a.bind(a,12593)).then((function(e){(0,e.attachPopupConfirmEmail)((function(){var e=new URL(window.location.href);e.searchParams.delete(s),(0,Re.G$)({},"",e.toString(),!1)}))})))},Ot=a(29300),Pt=a(99353),Rt=a(68133),Dt=a(73467),jt=a(73850),xt=a(8567),Ut=a(19653),Ft=a(15612),Bt=a(41669);Bt((function(){var e,t=G.A.getState(),n=t.isAuthenticated,r=t.isMobile,i=t.user,o=document.body.classList.contains("chatPopupBody");G.A.setState({isChatPopup:o}),new xt.A,a.e(599).then(a.bind(a,2518)).then((function(e){return e.bindOpenWindowInit()})),It();var s=ke();s&&Ne(s);var c=document.querySelector(".js_captcha");if((0,Ut.E)(c),n&&a.e(606).then(a.bind(a,99304)).then((function(e){e.initInvisibleModeMenuItemComponent()})),a.e(492).then(a.bind(a,86536)).then((function(e){return e.init()})),Bt(".page_buy_tokens").length||(0,Se.v)(),window._closeFancyPopup=function(){r?Bt.fancybox.close():(0,Dt.e9)()},(0,jt.B)(Bt("#log_in_username")),(0,jt.B)(Bt("#forgot_password_username")),Bt(document).on("click",".js-filter_search_reset",(function(){this.classList.add("__hidden"),Bt(".js-filter_search_submit_btn").addClass("__disabled"),Bt(".js-filter_search_input_wrp").find("input").val("")})).on("input",".js-filter_search_input_wrp input",(function(){var e=0===Bt(this).val().toString().length;this.closest("form").querySelector(".js-filter_search_reset").classList.toggle("__hidden",e),Bt(".js-filter_search_submit_btn").toggleClass("__disabled",e)})),Bt(".data_item_membership, .vip_overview_tip").length){Bt.tools.tooltip.addEffect("myFadeEffect",(function(e){this.getTip().stop().fadeIn((function(){e.call()}))}),(function(e){this.getTip().stop().fadeOut((function(){e.call()}))}));var u=Bt(".data_item_membership");if(u.length){var l={tip:".data_item_membership_tooltip",effect:"myFadeEffect",fadeOutSpeed:100,predelay:200,position:"bottom right",onBeforeShow:function(){var e=this.getTip();e.html()||Bt.get(this.getTrigger().attr("rel"),(function(t){e.html(t).removeClass("spinner"),D.isRTLCulture?e.css({right:-1*e.outerWidth(!0)-8+"px"}):e.css({left:-1*e.outerWidth(!0)-8+"px"})}))}};l.offset=D.isRTLCulture?[0,8]:[0,-8],l.relative=!0,l.position=D.isRTLCulture?"center right":"center left",u.tooltip(l)}}if((0,je.qp)(Bt(".popup").find("form.remote")),(0,je.qp)(Bt(".wrapper").find("form.remote").not("[data-type=login]")),Bt(".js-ma_alert").find(".js-ah_close").attr("onclick","return false;").click((function(){return Bt(this).hide(),Bt.ajax({url:Bt(this).attr("href"),dataType:"json",context:Bt(this),data:(0,Oe.Z)({sf_method:"delete"}),type:"post",success:function(e,t,n){if(e&&"success"===e.status){Bt(this).closest(".js-ma_alert").remove();var r=document.querySelector(".js-bc_member_alerts");r.hasChildNodes()&&r.remove()}else void 0!==window.console&&console.log("[ "+t+" ] "),Bt(this).show()},error:function(e,t,n){void 0!==window.console&&console.log("[ "+t+" ] "+n),Bt(this).show()}}),!1})),Bt("a.submitTheForm").attr("onclick","return false;").click((function(){return Bt(this).closest("form").submit(),!1})),Bt(".security_log_additional_info").length>0){var d={language:navigator.language,dateTime:(new Date).toLocaleString()};Bt(".security_log_additional_info").val(JSON.stringify(d))}var f="";Bt(".b_pos").on({mouseenter:function(){Bt(this).attr("tracking_url")&&(f=Bt(this).attr("tracking_url"))},mouseleave:function(){f=""}},"iframe"),Bt(window).blur((function(){""!==f&&Bt.get(f)})),(0,Ie.G)()||(0,Re.G$)({},document.title,decodeURIComponent(window.location.href)),Bt(".tokens_count").removeClass("tokens_count");var h=Bt("body");h.on("click",'a[href$="/logout"]',(function(){h.css("pointer-events","none"),setTimeout((function(){return h.css("pointer-events","")}),5e3),(0,q.ok)(),(null==i?void 0:i.username)&&localStorage.setItem("ActiveConversationUsername",i.username)})),h.hasClass("from_popunder")&&Bt(".user_already_authenticated").length&&(null===(e=null===window||void 0===window?void 0:window.parent)||void 0===e||e.postMessage("authenticated","*")),Bt('form[action$="/suspect-login"]').on("submit",(function(){var e=Bt(this).find('input[type="submit"]');e.prop("disabled",!0).addClass("btn_disabled"),setTimeout((function(){return e.prop("disabled",!1).removeClass("btn_disabled")}),5e3)})),Ft.i.runAnimation(),(0,Ot.e)(),(0,ge.bR)("ntpop"),Ee.A.instance.refresh(),(Bt("#mls_chatconsole").is(":visible")||Bt("#mls_videoconsole").is(":visible"))&&((0,Ce.l)(),(0,we.w)())})),Bt(document).on("click",".banner_track_link",(function(){return Bt(this).attr("tracking_url")&&Bt.get(Bt(this).attr("tracking_url")),!0})),Bt(document).on("click",".js-alert_revamp_close",(function(e){e.preventDefault(),(0,B.Hk)("revamp_note","1",{expires:365,expiresType:"day",path:"/"}),Bt(".wl_alert_revamp").slideUp()})),Bt(window).resize((function(){(0,Pt.s)((function(){(0,Rt.T)(),Bt(document).trigger("resize:ready"),(0,Pe.$)(".bc_text_fit")}),500)})),Bt(document).on("click",".btn_help_question_holder",(function(){return Bt(this).toggleClass("__active"),!1})),document.addEventListener("click",(function(e){return 0===Bt(e.target).parents(".js-control_popover").length&&Bt(".js-control_popover.always_show").removeClass("always_show"),!0}),!0),Bt(document).on("language:switch",(function(){(0,De.jV)({},!0)}));a(93032);var Ht=a(252),Gt=a(88181),Vt=a(87976),Wt=a(43692),qt=a(39761),Yt=a(67356),zt=a(86938),Xt=a(77482),Kt=a(68811),Jt=a(9534),$t=a(59996),Qt=a(28724),Zt=a(65823),en=a(41669),tn=null,nn=function(){return(tn||(tn=en(".js-video_size_holder"))).width()};var rn=a(41669);function on(){var e=G.A.getState(),t=e.hasFullScreenAccess,n=e.isFullMobile,r=e.isMobile,i=e.isMobileApp,o=e.isModerator;if(!r&&!n&&(o||t)&&!i){var a=rn("#ResizablePane");rn(".modelResizablePane").length?a.resizable({aspectRatio:(0,$t.i)(),helper:"ui-resizable-helper",maxWidth:document.body.offsetWidth-600,minWidth:313,stop:function(){var e,t,n,r,i=new CustomEvent(Q.R.RESIZE_PLAYER);a.get(0).dispatchEvent(i),e="#ResizablePane",t=".adj_popup",n=(0,Zt.N)(e),r=(0,Zt.N)(t),n&&r&&n.x1r.x1&&n.y1r.y1&&rn(".adj_popup").css({top:(0,Zt.N)("#ResizablePane").y2})},zIndex:1001,handles:D.isRTLCulture?"w,s,sw":"e,s,se"}):a.resizable({maxWidth:nn(),minWidth:(0,Qt.O)(),aspectRatio:(0,$t.i)(),zIndex:17,helper:"ui-resizable-helper",handles:D.isRTLCulture?"w":"e",start:function(e,t){var n=t.element,r=nn();n.resizable("option","maxWidth",r);var i=(0,$t.i)();n.resizable("option","aspectRatio",i),n.addClass("js-interacted_with")},resize:function(e,t){var n=t.size,r=nn(),i=(0,$t.i)(),o=Math.min(n.width,r);n.width=o,n.height=o/i},stop:function(e,t){var n=t.size;document.documentElement.style.setProperty("--video-width-set","".concat(n.width,"px")),window.chat.setChatHeight(),(0,Rt.T)()}})}}var an=a(2597),sn=a(63366),cn=a(58014);function un(e,t){return{privatePopupOptions:(0,cn.S)(e.privatePopupOptions,t)}}var ln,dn,fn=a(88739),hn=a(1627),pn=a(22336),mn=a(74166),vn=a(40172),gn=a(96575),_n=G.A.action((function(e,t){return{awayLayoutOptions:t}})),bn=G.A.action((function(e,t){return{chatRoomTitle:t}})),yn=a(79558),An=a(88035),Sn=function(e){var t=function(e){var t=e.data,n=(0,Te.d4)(vn.oI),r=(0,yn.N)(t).handleFollow,i=(0,ce.useCallback)((function(e){n?r(e):(0,An.w)(Q.R.FOLLOW_CLICK)}),[n,r]);return{text:__("Follow"),handleFollow:i}}(e),n=t.text,r=t.handleFollow;return(0,se.h)("span",{className:"ma_link",onClick:r},n)},En=a(15563),wn=a(48291),Cn=a(21755),Tn=function(t){var n=(0,Te.d4)((function(e){return e.isMobile})),r=function(t){return(0,Cn.J)((0,e.Cl)((0,e.Cl)({},t.data),{apiUrl:t.data.apiUrl,onIsNeedBuyToken:(0,En.j)(),onNotIsAuthenticated:(0,wn.L)()}))}(t).handleLoversClick,i=(0,ce.useCallback)((function(e){n?r(e):(0,An.w)(Q.R.LOVERS_CLICK)}),[r,n]);return{text:__("Send love"),handleLove:i}},Ln=function(e){var t=Tn(e),n=t.text,r=t.handleLove;return(0,se.h)("span",{className:"ma_link",onClick:r},n)},Mn=a(92227),kn=a(12307),Nn=a(15514),In=a(19223),On=a(29622),Pn=a(64038),Rn=function(t){var n=(0,Te.d4)(vn.oI),r=(0,ce.useRef)(null),i=(0,ce.useState)(!1),o=i[0],a=i[1],s=function(t){var n=t.data,r=n.pinUrl,i=n.unpinUrl,o=n.username,a=(0,On.co)((0,e.Cl)((0,e.Cl)({},n),{pinUrl:(0,In.FC)(r),unpinUrl:(0,In.FC)(i),useHandlePin:On.EN,useHandleUnPin:On.Pc,onErrorTooManyPins:function(){(0,Pn.s6)([{callback:s,displayName:o,type:Pn.kU.PIN_TOO_MANY}])}})),s=a.handleCloseHintTooMany;return{handlePinModelMobile:a.handlePinModel}}(t).handlePinModelMobile,c=(0,ce.useCallback)((function(){(0,An.w)(Q.R.PIN_CLOSE_HINT),a(!1)}),[]),u=(0,ce.useCallback)((function(e){n?s(e):(0,An.w)(Q.R.PIN_CLICK,r.current)}),[n,s]);return(0,ce.useEffect)((function(){if(!n){var e=function(e){var t=(null==e?void 0:e.detail)||{},n=t.element;t.type===kn.Y.TOO_MANY_PINS&&n===r.current&&a(!0)};return document.addEventListener(Q.R.PIN_ERROR,e),function(){document.removeEventListener(Q.R.PIN_ERROR,e)}}}),[n,a]),{pinButtonRef:r,text:__("Pin"),isTooManyPinsHintShown:o,handleCloseTooManyPinsHint:c,handlePin:u}},Dn=function(e){var t=Rn(e),n=t.pinButtonRef,r=t.text,i=t.isTooManyPinsHintShown,o=t.handleCloseTooManyPinsHint,a=t.handlePin;return(0,se.h)("span",{ref:n,className:"ma_link",onClick:a},r,i&&(0,se.h)(Mn.R,{pinHintType:kn.Y.TOO_MANY_PINS,placementType:Nn.p.CHAT,onClose:o}))},jn=a(20444),xn=a(18325),Un=a(47885),Fn=((ln={}).followers={icon:"#svg_ch_activity_follow",iconUrl:Un.g5,message:__("started following %s2%%modelname%.%s_end%"),message_single:__("%s1%%username%%s_end% started following %s2%%modelname%.%s_end%"),motivation:__("Follow this model, too, to never lose sight of her!"),motivation_couple:__("Follow these models, too, and never lose sight of them!"),motivation_male:__("Follow, too, and never lose sight of him!")},ln.lovers={icon:"#svg_ch_activity_love",iconUrl:Un.g5,message:__("sent love to %s2%%modelname%.%s_end%"),message_single:__("%s1%%username%%s_end% sent love to %s2%%modelname%.%s_end%"),motivation:__("If you also like this model, send her love!"),motivation_couple:__("If you also like these models, send them love!"),motivation_male:__("If you also like him, send a love!")},ln.pins={icon:"#svg_ch_activity_pin",iconUrl:Un.g5,message:__("pinned %s2%%modelname%.%s_end%"),message_single:__("%s1%%username%%s_end% pinned %s2%%modelname%.%s_end%"),motivation:__("Pin this model, too, to always see her among the first on the homepage!"),motivation_couple:__("Pin these models, too, and always see them among the first on the homepage!"),motivation_male:__("Pin him, too, and always see him among the first on the homepage!")},ln),Bn=function(e,t){if(!t)return"";var n=Fn[e],r=t.gender;return r===xn.A.MALE?n.motivation_male:jn.A.isCoupleGender(r)?n.motivation_couple:n.motivation},Hn=function(t){var n=t.btnData,r=n.activity,i=n.data,o=t.count,a=t.displayName,s=t.isBtnShown,c=(0,Te.d4)((function(e){return e.chatHost})),u=1===o?"".concat(a):"",l=(0,ce.useCallback)((function(){if(!s)return null;switch(r){case"followers":return(0,se.h)(Sn,{data:i});case"lovers":return(0,se.h)(Ln,{data:i});default:return(0,se.h)(Dn,{data:i})}}),[r,i,s]);return(0,e.Cl)((0,e.Cl)({},function(t,n,r){var i=Fn[t];return(0,e.Cl)((0,e.Cl)({},i),{message:r>1?i.message:i.message_single,motivation:Bn(t,n)})}(r,c,o)),{countText:"+".concat(o-3),modelName:c?"".concat(c.displayName):null,renderBtn:l,username:u,isCountShown:o>3,isSingleMember:1===o})},Gn=function(e){var t=e.avatars,n=e.btnData.activity,r=Hn(e),i=r.countText,o=r.icon,a=r.iconUrl,s=r.message,c=r.modelName,u=r.motivation,l=r.renderBtn,d=r.username,f=r.isCountShown,h=r.isSingleMember;return c?(0,se.h)("div",{className:"msg_wrp system_msg js-chat_msg msg_activity __".concat(n)},(0,se.h)("div",{className:"msg_box"},(0,se.h)(Be.A,{group:"ma_icon",icon:o,url:a}),(0,se.h)("div",{className:"ma_content"},(0,se.h)("div",{className:"ma_info"},(0,se.h)("div",{className:(0,Qe.n)({ma_member:!0,__multiple:f,__single:h})},t.map((function(e,t){return(0,se.h)("span",{key:t,className:"ma_avatar_wrp"},(0,se.h)("img",{className:"ma_avatar",alt:"",src:e}))})),f&&i),(0,se.h)("div",{className:"ma_title"},trans(s,{modelname:c,s_end:"
",s1:'',s2:'',username:d}))),(0,se.h)("div",{className:"ma_action"},u," ",l())))):null},Vn=function(e){var t=e.activity,n=e.data;switch(t){case"followers":var r=n.isAlreadyFollow,i=n.isAvailable,o=n.isBanned;return!r&&i&&!o;case"lovers":i=n.isAvailable;return!n.isLover&&i;case"pins":i=n.isAvailable,o=n.isBanned;return!n.isPinned&&i&&!o;default:return!1}},Wn=["followers","lovers","pins"],qn=a(72763),Yn=function(){function e(){t.prevActivity=Wn.at(-1)}var t;return t=e,e.isActivityToShow=function(e,n){if(n&&!(e in n))return!1;var r=t.getActivityButtonSelector(e)(G.A.getState());return!!r&&Vn({activity:e,data:r})},e.selectActivity=function(e){for(var n=Wn.indexOf(t.prevActivity),r=0;r",">"),n);e.html(r);var i=e.parents(".history");if(i.length){var o=G.A.getState();i.scrollTop(o.isMobile?0:i.prop("scrollHeight"))}}},$n=function(e){var t=e.isMobile,n=e.tokensAmount,r=e.tipKingName,i=e.isTipKing,o=e.onBeatItClick;return(0,se.h)("div",{className:"system_msg msg_wrp js-chat_msg chat_king_msg"},(0,se.h)("div",{className:"chat_king_alert __msg bc_flex bc_flex_items_center"},(0,se.h)("img",{className:"cka_icon",src:(0,ge.oF)("svg/bc/icon/icon_king_crown.svg"),alt:""}),(0,se.h)("div",{className:"cka_text_wrp"},trans("%s1%New Tip King of the day:%s2% %b1%%s3%%name%%s4% spent %tokens% %tokens_plural%!%b2% %a1%Beat it!%a2%",{s1:'',s2:"",b1:'',b2:"",a1:''),a2:"",s3:'',s4:"",name:''.concat(r,""),tokens:n,tokens_plural:''+V.kX.pluralise("tokens",n)+""},{click:o}))))},Qn=a(22847),Zn=function(e){var t=e.tokensAmount,n=e.tipKingName;return(0,se.h)("div",{className:"system_msg msg_wrp js-chat_msg chat_king_msg"},(0,se.h)("div",{className:"chat_king_alert __msg bc_flex bc_flex_items_center"},(0,se.h)("img",{className:"cka_icon",src:(0,ge.oF)("svg/bc/icon/icon_king_crown.svg"),alt:""}),(0,se.h)(Qn.E,{tagName:"div",className:"cka_text_wrp",html:__("%s1%New Tip King of the day:%s2% %b1%%s3%%name%%s4% spent %tokens% %tokens_plural%!%b2%",{s1:'',s2:"",s3:'',s4:"",b1:'',b2:"",name:''.concat(n,""),tokens:t,tokens_plural:''+V.kX.pluralise("tokens",t)+""})})))},er=a(79276),tr=function(t){var n=t.tipKingName,r=t.modelUsername,i=t.amount,o=t.isMobile,s=t.isPerformer,c=t.isTipKing,u=(0,ce.useCallback)((function(t){if(t.preventDefault(),o){var n={username:r,isChatIm:!1};a.e(693).then(a.bind(a,92717)).then((function(t){(0,er.JX)("im_tip",(function(){return(0,ce.createElement)(t.default,(0,e.Cl)((0,e.Cl)({},n),{type:"chat"}))}))}))}else chat.tipPopup(!1,!0)}),[o,r]);return s?(0,se.h)(Zn,{tokensAmount:i,tipKingName:n}):(0,se.h)($n,{tokensAmount:i,tipKingName:n,isTipKing:c,isMobile:o,onBeatItClick:u})},nr=a(43284),rr=a(7195),ir=function(e){return e.gamesSettings.tipMenu},or=function(e){return e.performerStatus},ar=a(11402),sr=(0,ce.memo)((function(e){var t=e.avatarUrl,n=e.displayName,r=e.modelBadgePath,i=function(){var e=(0,ce.useRef)((0,rr.mc)((0,ar.fE)())),t=(0,Te.d4)(ir),n=(0,Te.d4)(or),r=!(null==t?void 0:t.enabled)||"public"!==n;return{messageId:e.current,isTipMenuDisabled:r,handleOpenTipMenu:function(){r||chat.gameControls.openTipMenuPopup("enabled_notice")}}}(),o=i.messageId,a=i.isTipMenuDisabled,s=i.handleOpenTipMenu;return(0,se.h)("div",{className:(0,nr.A)(["chat_notice __shrink",o])},(0,se.h)("div",{className:"ch_inner"},(0,se.h)(Fe.h,{className:"cn_avatar __round",image:{src:t}}),(0,se.h)("div",{className:"cn_content"},(0,se.h)("div",{className:"cn_author"},(0,se.h)("span",{className:"cna_name"},n),(0,se.h)("img",{className:"cna_badge",alt:"",src:r})),(0,se.h)("div",{className:"cn_msg bc_bold"},trans("%link%Tip Menu%link_end% is available",{link:''),link_end:""},{click:s})))))})),cr=function(e,t){var n=V.kX.pluralise("tokens",t).toLowerCase();return"".concat(e,' -------- ').concat(t||0," ").concat(n,"")},ur=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.C6)(n,t),n.SHOW_BOOBS="Show boobs",n.SHOW_PUSSY="Show pussy",n.SHOW_FEET="Show feet",n.STAND_DOGGY="Stand doggy",n.FINGER_IN_PUSSY="Finger in pussy",n.FINGER_IN_ASS="Finger in ass",n.DILDO_IN_PUSSY="Dildo in pussy",n.DILDO_IN_ASS="Dildo in ass",n.SUCK_DILDO="Suck dildo",n.SPANK_MYSELF="Spank myself",n.GET_TOPLESS="Get topless",n.TAKE_OFF_PANTIES="Take off panties",n.GET_FULLY_NAKED="Get fully naked",n.DANCE="Dance",n.PUT_ON_STOCKINGS="Put on stockings",n.PUT_ON_HEELS="Put on heels",n.VIEW_YOUR_CAM="View your cam",n.titles=((dn={})[n.SHOW_BOOBS]=__("Show boobs"),dn[n.SHOW_PUSSY]=__("Show pussy"),dn[n.SHOW_FEET]=__("Show feet"),dn[n.STAND_DOGGY]=__("Stand doggy"),dn[n.FINGER_IN_PUSSY]=__("Finger in pussy"),dn[n.FINGER_IN_ASS]=__("Finger in ass"),dn[n.DILDO_IN_PUSSY]=__("Dildo in pussy"),dn[n.DILDO_IN_ASS]=__("Dildo in ass"),dn[n.SUCK_DILDO]=__("Suck dildo"),dn[n.SPANK_MYSELF]=__("Spank myself"),dn[n.GET_TOPLESS]=__("Get topless"),dn[n.TAKE_OFF_PANTIES]=__("Take off panties"),dn[n.GET_FULLY_NAKED]=__("Get fully naked"),dn[n.DANCE]=__("Dance"),dn[n.PUT_ON_STOCKINGS]=__("Put on stockings"),dn[n.PUT_ON_HEELS]=__("Put on heels"),dn[n.VIEW_YOUR_CAM]=__("View your cam"),dn),n}(a(53767).A),lr=ur,dr=a(80375),fr=a(27297),hr=a(7526);function pr(){return(0,e.sH)(this,void 0,void 0,(function(){var t,n,r,i,o;return(0,e.YH)(this,(function(e){switch(e.label){case 0:if(G.A.getState().isModerator)return[2];if(!(t=document.getElementById("mls_chatconsole")))return(0,R._b)("Chat InitLayout skip").warn("consoleWrapper not found"),[2];e.label=1;case 1:return e.trys.push([1,8,,9]),(r="function"==typeof window.BCInitChatLayout)?[4,window.BCInitChatLayout(t)]:[3,3];case 2:r=e.sent(),e.label=3;case 3:return n=r,(0,R._b)("Chat InitLayout success").log({isEmbedChat:n}),hr.I.on("VideoPlayerEvent:play",(function(){(0,gn.R)("@@ChatEvent/streamPlay")})),hr.I.on("VideoPlayerEvent:close",(function(){(0,gn.R)("@@ChatEvent/streamClose")})),n?[4,Promise.all([a.e(11),a.e(32),a.e(9),a.e(4),a.e(97),a.e(157),a.e(104),a.e(77),a.e(113),a.e(163),a.e(63),a.e(261),a.e(312),a.e(688)]).then(a.bind(a,75290))]:[3,5];case 4:return i=e.sent().default,pe.w.replaceContainer((0,se.h)(le.Kq,{store:G.A},(0,se.h)(i,null,(0,fr.q)())),document.getElementById("stream-layer")),[3,7];case 5:return[4,Promise.all([a.e(11),a.e(32),a.e(9),a.e(4),a.e(0),a.e(97),a.e(157),a.e(104),a.e(77),a.e(113),a.e(163),a.e(63),a.e(68),a.e(109),a.e(117),a.e(261),a.e(338),a.e(312),a.e(84),a.e(686)]).then(a.bind(a,33840))];case 6:o=e.sent().MemberChatLayout,pe.w.replaceContainer((0,se.h)(le.Kq,{store:G.A},(0,se.h)(o,null)),t),e.label=7;case 7:return[3,9];case 8:return e.sent(),[3,9];case 9:return[2]}}))}))}var mr=a(31702),vr=a(75617),gr=a(93118),_r=a(81714),br=a(78876),yr=a(74213),Ar=function(e,t,n){t=Array.isArray(t)?t:[t],n=n||[],n=Array.isArray(n)?n:[n],e&&e.classList&&(n.forEach((function(t){return e.classList.remove(t)})),t.forEach((function(t){return e.classList.add(t)})))},Sr=a(23799),Er=a(67374),wr=a(80694),Cr=function(e){return"".concat(e).concat(wr.p)},Tr=function(e){return e.includes(wr.o)||function(e){return"-"===e.slice(-1)}(e)?function(e){return e.includes(wr.p)}(e)?e:function(e){var t=e.indexOf(wr.o);if(-1===t)return Cr(e);var n=e.slice(0,t);return Cr(n)}(e):e},Lr=G.A.action((function(t,n){var r=t.chatHost;return{chatHost:(0,e.Cl)((0,e.Cl)({},r),{settings:n})}})),Mr=G.A.action((function(t,n){var r=t.chatLocalData;return{chatLocalData:(0,e.Cl)((0,e.Cl)({},r),n)}})),kr=G.A.action((function(e,t){return{isChatPage:t}})),Nr=a(80330),Ir=a(54644),Or=a(93156),Pr=a(21035),Rr=["none","visible","hidden","collapse"].map((function(e){return"chat_".concat(e)})),Dr={chatDirect:!1,debug:!1,baseUrl:"",scriptName:""},jr=a(33951),xr=a(31180),Ur=a(51360),Fr=a(29463),Br=a(2430),Hr=a(47443),Gr=a(93594),Vr={tip_king_default:function(e,t){return(0,Gr.aR)(__("Today's Tips King @username sent me @tipsum %tokens%!",{tokens:V.kX.pluralise("tokens",Number(e.tipSum))}),e)}},Wr=a(58699),qr=(0,e.Cl)({},Vr);function Yr(t,n){var r=t.text,i=void 0===r?"":r,o=(0,e.Tt)(t,["text"]);return i in qr?"function"==typeof qr[i]?qr[i](o,n):__(qr[i],o):__(i,o)}function zr(t,n){var r,i=(0,Wr.ZW)(t);switch((r=(0,e.Cl)((0,e.Cl)({},i.d),{text:i.m})).type){case"btk":return chat.onTip({username:r.un,displayName:r.dn},+r.tipsum),null;case"tkn1":case"tkn2":var o="tkn1"===r.type?Yr({text:r.text,username:r.dn,tipsum:r.tipsum},n):r.text;return o=(0,Gr.aR)(o,{username:r.dn,tipsum:r.tipsum}),(0,e.Cl)((0,e.Cl)({},r),{text:o})}return Yr(r,n)}var Xr=a(95655),Kr=a(75399),Jr=new Map;function $r(e){if(0===e.length)return!1;var t=Boolean(chat.isInited&&chat.userData.chathost),n=e[0];if(t){var r=Jr.get(n);if(void 0!==r)return r}var i=(0,Kr.V)(chat.userData)&&!n.classList.contains("sp_history");return t&&Jr.set(n,i),i}var Qr=a(27326),Zr=a(65252),ei=a(90833),ti=a(46837);var ni=a(55799),ri=a(37828),ii=a(14039),oi=function(){function e(){}return Object.defineProperty(e,"instance",{get:function(){return this._instance||(this._instance=new e)},enumerable:!1,configurable:!0}),e.updateKickedModels=function(e){(0,ii.Z)("KickedChannel",{type:"instantMessage",data:{username:e}}),(0,gn.R)("@@InstantMessages/kickedModels",{username:e})},e}(),ai=a(86757),si=a(53162),ci=function(){return chat.userData.invisible},ui=function(){var e=(0,De.jL)(),t=60*window.chat.localData.dailyMinutesLimit*1e3,n=new Date;n.setHours(0,0,0,0);var r=n.getTime();return(!e.stamp||e.stamp===r)&&e.todayFreeTime>=t},li=G.A.action((function(e,t){return{dailyLimitExceeded:t}})),di=function(e){var t=(0,De.jL)().todayRooms;return"number"==typeof e&&t.length>=e};function fi(e){return li(ui()||di(e)),ui()||di(e)}var hi,pi=a(45008),mi=a(80786),vi=a(98928),gi=a(22706),_i=a(6225),bi=a(71998),yi=a(22641),Ai=a(32330),Si=a(35172),Ei=a(52990),wi=a(41669),Ci=function(e,t,n,r){var i=(0,Ei.m)(e,!0),o=t?t.find(i):wi(i);return n||r?o.filter((function(e,t){var i=wi(t),o=i.data("user_data")||i.parents(".msg_wrp").data("user_data");return!!o&&!(n&&o.username!==n||r&&o.chathost!==r)})):o},Ti=a(873),Li=a(11103),Mi=a(52210),ki=a(2089),Ni=a(33475),Ii=a(41669),Oi=function(e,t){var n=(0,Ni.p)();if(e.hasClass("__smiley")||n)return e;var r=(0,Mi.c)(t);if((0,ki.Z)(t)&&!Ii.mobile&&!(0,Sr.V)()){var i=t.messageStyle.bg;(0,Li.fd)(i)?r["background-color"]=i:e.addClass("pt_".concat(i));var o=e.find(".msg_corners");o.length&&((0,Li.fd)(i)?o.css("background-color",i):o.addClass("pt_".concat(i)))}return e.css(r)},Pi=function(e,t){return{addlClass:"",content:e.trim(),nodesAmount:t,type:"text"}},Ri=function(t,n,r,i){var o=i||{},a=o.className,s=o.isMultiMsg,c=o.isSingleNode,u=o.isSmileBubble,l="",d={message:!0,__single_node:!u&&c};return a&&(d[a]=!0),n&&(d=(0,e.Cl)((0,e.Cl)({},d),{__multi:s,__smiley:u,__text:!u}),r&&!u&&(l='
')),'
').concat(l,'').concat(t,"
")},Di=function(t,n,r,i){var o=i||{},a=o.className,s=o.isMsgBox,c=void 0===s||s,u=o.isMultiMsg,l=o.isSingleNode,d=o.isSmileBubble,f="",h={msg_box:c,__single_node:!d&&l};return a&&(h[a]=!0),n&&(h=(0,e.Cl)((0,e.Cl)({},h),{colored:!0,__multi:u,__smiley:d,__text:!d}),r&&!d&&(f='')),'').concat(f,'').concat(t,"")},ji=a(28327),xi=a(35733),Ui=a(99736),Fi=a(41669),Bi=a(41669),Hi=function(e,t,n){var r=e.accessLevel,i=e.username,o=e.isMcm,a=e.isPayable,s=e.isVip,c=(0,Ni.p)(),u='',l='';Bi.mobile||(l+=''.concat(__("Mutual following"),"")),l+="";var d=t.isPerformer?u:"",f=1,h=(0,ji.e)(e)?25:21;if(r&&"free"!==r&&a){f+=h;var p=t.isPerformer||"moderator"===t.role?"":" js-open_status_page",m='');if(Bi.mobile||(m+='',r&&(m+=xi.A.membershipTitles[r]),m+=""),d=(m+="")+d,s){var v=t.isPerformer?"":" js-open_vip_page";f+=h,d+=''),Bi.mobile||(d+=''.concat(__("VIP Status"),"")),d+=""}o&&!c&&(f+=(0,ji.e)(e)?25:21,d+='',Bi.mobile||(d+=''.concat(__("Moderator"),"")),d+="")}t.isPerformer||(d+=u),G.A.getState().isFollowingsLoaded?(0,Xt.qs)(i)&&(f+=h,d=d.replace(u,l)):(0,Kt.n)((function(){if((0,Xt.qs)(i)&&!Bi('.message[username="'.concat(i,'"] .icon_follower')).length){var e=Bi('.message[username="'.concat(i,'"] .icons'));if(chat.userData.isPerformer){var t=e.width();"number"==typeof t&&e.css({"min-width":"".concat(t+h,"px"),width:"".concat(t+h,"px")})}e.find(".follower_space").replaceWith(l)}}));var g="";return t.isPerformer&&(g='style="width:'.concat(f,"px;min-width:").concat(f,'px;"')),function(e,t,n,r){var i=e.avatarUrl,o=e.displayName,a=(e.role,e.isMcm),s=(e.isPerformer,(0,Ni.p)()),c=' style="'.concat((0,Ui.y)(e),'"'),u=''.concat(o,""),l="";if(s&&a&&(l+='',Fi.mobile||(l+=''.concat(__("Moderator"),"")),l+=""),r){var d=i?''):"";return'\n
\n ').concat(d,'\n ").concat(n,"\n ").concat(u).concat(l,"\n
\n ")}return'").concat(n,"").concat(u).concat(l,"")}(e,g,d,n)},Gi=a(41669),Vi=function(e,t,n,r,i,o,a,s){var c=null;void 0===a&&(a=$r(i));var u=function(e){var t,n=G.A.getState();if(!(0,vn.oI)(n)||(0,Ni.p)())return"";var r=(null===(t=e.messageStyle)||void 0===t?void 0:t.fontSize)||"",i=parseInt(r,10);return!i||i<120?"":i<130?" __medium":i<135?" __large":i<140?" __larger":" __x_large"}(t);if(a){var l=function(e,t,n,r,i){if(r&&n&&i)return'
').concat(e,"
");var o="",a="";return(0,ki.Z)(t)&&(o=" colored",a=''),'').concat(a,'').concat(e,"")}(e,t,r,i,a);if(null==i?void 0:i.hasClass("history")){var d="msg_wrp js-chat_msg msg_".concat(t.role," ").concat(function(e,t){var n="mb_".concat(e.role);return e.accessLevel&&(n+=" mb_".concat(e.accessLevel),e.isVip&&(n+=" mb_vip"),e.isMcm&&(n+=" mb_mcm")),((0,Hr.T)(e)||t)&&(n+=" mb_color"),n}(t,o));t.accessLevel&&(d+=" ms_".concat(t.accessLevel)),(0,ji.e)(t)&&(d+=" msg_elite"),s&&(d+=" js-chat_tip_menu_msg");var f=Hi(t,n,a),h="model"===t.role?'dir="auto"':"";c=Gi('\n
\n
\n ').concat(f,'\n
").concat(l,"
\n
\n
\n ")),t.username&&c.attr("data-author",t.username)}else c=Gi(l);return c.find(".message").each((function(){Oi(Gi(this),t)})),c.find(".smiley").length&&c.addClass("__smiley"),c}var p=Hi(t,n,a),m=e,v="model"===t.role?'dir="auto"':"";c=Gi('

').concat(p,'").concat(m,"

")),t.username&&c.attr("username",t.username);var g=!Gi.mobile||(0,Ni.p)()&&t.isPerformer;return t.avatarUrl&&g?c.find(".author_area").prepend('')):Gi("body").hasClass("fullscreen")&&c.prepend('')),t.accessLevel&&c.addClass("member_".concat(t.accessLevel)),s&&c.addClass("js-chat_tip_menu_msg"),c.find(".msg_box").each((function(){Oi(Gi(this),t)})),c},Wi=function(e){var t=Ci(e.id);if(t.length){if(t.addClass("deleted"),e.message){var n=e.message;t.attr("data-message",n)}var r=t.hasClass("message")?t:t.find(".message");r.length&&(r.css({backgroundColor:"",color:"",fontFamily:"",fontSize:""}),r[0].className=r[0].className.replace(/\bpt_.*?\b/g,""))}},qi=function(e,t){return{addlClass:t?"__".concat(e.replace(":","")):"",content:e,type:"smiley"}},Yi=function(e,t,n){e||(n&&n.removeClass("__tr_enabled"),t.closest(".system_msg").length?t.closest(".system_msg").removeClass("__tr_done").find(".chat_translator_icon").remove():t.closest(".msg_row").removeClass("__tr_done").find(".chat_translator_icon").remove())},zi=a(53344),Xi=a(46140),Ki=a(70901),Ji=null,$i=function(){var e=JSON.parse(localStorage.getItem("chat_greetings")),t=new Map(e),n=Array.from(t.keys()),r=chat.performerData.username,i=(0,Ki.n7)((0,Ki.d5)(r+r.length)),o=t.get(i),a=t.has(i);return{chatGreetings:t,chatGreetingsKeys:n,chatOwner:i,joinCount:o,isExistOnStorage:a}},Qi=function(e){(0,R._b)("ChatFeature Greeting").log("try add message",!!Ji),Ji&&clearTimeout(Ji),Ji=setTimeout((function(){Ji=null;var t=$i().joinCount;if(0===t||t%4==0){var n=function(e){if(void 0===e&&(e=[]),!e||!e.length)return null;var t=e[e.length-1];if(!t)return null;var n="".concat(t.id,"-1"),r=chat.currentChatType,i=chat.userData.displayName,o=chat.performerData;return{chatType:r,message:__("Hey %username%! Welcome to my chatroom!",{username:i}),from:{avatarUrl:o.avatarUrl,displayName:o.displayName,friendRequestSettings:o.friendRequestSettings,hasProfile:o.hasProfile,isRu:o.isRu,role:o.role,sexType:o.sexType,showType:o.showType,messageStyle:o.messageStyle,username:o.username},id:n,suspicious:"",isDeletedMessage:!1,lang:"",isPreserveMessagesStyles:!0}}(e);n&&chat.incomingMessage(n)}}),3e3)},Zi=function(){(0,R._b)("ChatFeature Greeting").log("init"),hr.I.on("joinRoom",(function(){ci()||function(){var e=$i(),t=e.chatGreetings,n=e.chatGreetingsKeys,r=e.chatOwner,i=e.joinCount,o=e.isExistOnStorage,a=(0,Xi.u)(i)?0:i+1;if(!o&&t.size>=100)for(var s=t.size-100,c=0;c<=s;c++)t.delete(n[c]);t.set(r,a),localStorage.setItem("chat_greetings",JSON.stringify(Array.from(t.entries())))}()}))},eo=a(41669);!function(e){e.GuestChatAlertLink=".guest_chat_alert_link"}(hi||(hi={}));var to=function(e){e.preventDefault(),e.stopPropagation(),chat.signupPopup(!0)},no=a(5652),ro=a(34446),io=a(4527),oo=a(41669),ao=function(){function t(){var e=this;this.service={},this.userData={},this.localData={},this.performerData=null,this.currentShowType="public",this.__currentChatType="public-chat",this.performerStatus=null,this.chatSettings={},this.currentChathost=null,this.waitRoomConnect=!1,this.connectionRoomHostName=null,this.onlineModels=[],this.userIsFriendForPerformer=!1,this.roomData=null,this.visibility="none",this.isInited=!1,this.options={},this.loadRoomCounter=0,this.isIE=gi.BrowserDetect.detectIE(),this.openRoomInWindow=(0,Pt.s)((function(e){void 0===e&&(e=chat.currentChathost);var t=G.A.getState(),n=t.promoHitUrl,r=t.isLiveStreamPromo,i=n;if(e&&i){if(-1!==i.indexOf("_model_name_"))i=i.replace(/_model_name_/g,e);else{var o=(0,Si.Zy)("csurl",i);if(o&&-1===o.indexOf(e)){var a=o.split("/");a[a.length-1]=e,i=(0,Si.K)(i,"csurl",a.join("/"))}}var s=(0,Si.P3)(i,"bcs"),c=document.body.classList.contains("postitial"),u="".concat(window.location.protocol,"//").concat(window.location.host);!c&&r&&s&&(i="".concat(u,"/").concat((0,Ge.o)(e),"?bcs=").concat(s)),window.open(i)}}),100,!0),this.stringReplaceSmiles=function(t){return e.Smileys.replace({message:t.replace(Or.n,' $1')})}}return t.prototype.initLayout=function(){},t.prototype.initService=function(){},t.prototype.initMediator=function(){},t.prototype.setChatHeight=function(){for(var e=[],t=0;t\n
\n
').concat(this.stringReplaceSmiles(f),"
\n
\n \n "),"topicChange"===t&&this.isAuthenticated&&(0,An.w)(Q.R.CHAT_NEW_MESSAGE)):r||"tip_fail"===t?(h='

').concat(f,"

"),r&&(0,Ur.Y)()):h="groupChatWelcome"===t||"service __group"===t?'
').concat(f,"
"):'

').concat(this.stringReplaceSmiles(f),"

"),this.addMessage(i(h),a)}if(!chat.performerData)return;var p=G.A.getState(),m=(0,ge.ry)((0,ge.ip)("@cdn_host")+chat.performerData.avatarUrlMedium),v=(0,vn._G)(p),g=(0,ge.oF)("svg/bc/model_badge/".concat(v,".svg"));d=pe.w.createRoot((0,ce.createElement)(le.Kq,{store:ri.A},[(0,ce.createElement)(sr,{avatarUrl:m,displayName:chat.performerData.displayName,modelBadgePath:g})]));this.addMessage(d.element,a)}else{var _;if(!(_=(0,Wr.ZW)(e)))return!1;var b=_.d,y=this.chatSettings.disableChatBotsInPrivate&&"private-chat"===chat.currentChatType;if(!b||b&&(!b.un||!b.tipsum)||y)return!1;var A=o.chatHost,S=o.user,E=o.isMobile,d=pe.w.createRoot((0,ce.createElement)(tr,{amount:Number(b.tipsum),modelUsername:A.username,tipKingName:b.dn,isMobile:E,isPerformer:this.userData.isPerformer,isTipKing:S&&S.username===b.un}));this.addMessage(d.element,a)}}},t.prototype.messageReplaceSmileys=function(e,t,n,r){var i=(0,ei.q)(n)||"model"===n.role||"moderator"===n.role;return this.Smileys.replace({callback:function(e,i){var o=Ci(t,void 0,n.username,n.chathost);if((0,Hr.T)(n)){if(!(o=o.find(".__".concat(e.replace(":","")))).length)return void r.push(e);i?(o=o.find(".msg"),Jn(o,e,i)):o.addClass("__text").removeClass("__smiley")}else i&&(o=o.find(".msg"),Jn(o,e,i))},message:e,replacePremium:i})},t.prototype.formatMessage=function(e,t,n,r,i,o,a,s){e=e.replace(Or.n,' $1');var c=[];!i&&/\:|(:)|=/g.test(e)&&(e=this.messageReplaceSmileys(e,n,t,c)),void 0===o&&(o=$r(r));for(var u=(new DOMParser).parseFromString(e,"text/html").body.childNodes,l=0,d=0;d-1?i.push(Pi(e,t)):i.push(qi(e,!0)),o=""}})),o+=s||""}else"img"!==a.nodeName.toLowerCase()||a.classList.contains("little_smileys")||a.classList.contains("custom_smileys")?o+=a.outerHTML:(o.trim()&&i.push(Pi(o,t)),o="",i.push(qi(a.outerHTML)))},s=0;s1,isSingleNode:1===g.nodesAmount,isSmileBubble:"smiley"===g.type}))}var _=v.join("");m.length>1&&(_=o?'
'.concat(_,"
"):''.concat(_,""));var b=(0,rr.mc)(n,!1),y=Vi(_,t,this.userData,b,r,i,o,s);return this.setUserDataToMessage(y,t),y},t.prototype.setUserDataToMessage=function(e,t){e.closest(".msg_wrp").data("user_data",t)},t.prototype.setUserDataToItem=function(e,t){e.data("user_data",t)},t.prototype.getUserDataFromItem=function(e){return e.data("user_data")},t.prototype.closeChat=function(e){if((0,R._b)("Chat Flow closeChat").log(this.currentChathost,this.connectionRoomHostName),this.currentChathost&&this.connectionRoomHostName===this.currentChathost&&(0,rr.kd)(),this.resetUsersList(!0),this.performerData&&((0,Er.xc)(this.performerData.username),this.connectionRoomHostName&&this.performerData.username===this.connectionRoomHostName&&(this.connectionRoomHostName=null)),this.performerStatus=null,(0,Gt.E)(!1),(0,Wt.V)(!1),oo("#bSocialButtons").html(""),(0,Kn.P)(),e&&((0,rr.kd)(),(0,pn.uz)(),(0,dr.Kk)(),this.performerData=null,chat.currentChathost=null,chat.userData.chathost=null,oo("#videoView").removeAttr("src")),oo(".popHint").length){var t=oo(".popHint .close");t.length&&t.click()}this.userData.isPerformer||"function"!=typeof chat.cancelGroupShowResponse||chat.cancelGroupShowResponse()},t.prototype.getRoom=function(t,n,r){var i=this;if(void 0===r&&(r=!1),this.isInited){if(r||t&&this.currentChathost!==t&&!this.waitRoomConnect){this.debug("getRoom",t,n,"currentChathost=".concat(this.currentChathost),"waitRoomConnect=".concat(this.waitRoomConnect)),(0,gn.R)("@@ChatEvent/roomLoadStart",{chatHost:t}),(0,gn.R)("@@ClosePopup"),this.userData.chathost=t,this.waitRoomConnect=!0,this.connectionRoomHostName=t;var o=G.A.getState().awayLayoutOptions;_n((0,e.Cl)((0,e.Cl)({},o),{displayName:(null==n?void 0:n.title)||(null==o?void 0:o.displayName)})),bn(n.title);var a=oo("#bChat");if(a.triggerHandler("chat:getRoom",[t,n]),this.isMobile||(0,Sr.V)()||(qt.c.instance.cancelAllMember2ModelRequests(),qt.c.instance.hideAllModel2MemberDeclines()),this.isIE||!this.isAuthenticated||this.isMobileApp)oo(".ic_input_holder").find(".js-chat_msg_input").val("");else{var s=(0,io.L)();document.dispatchEvent(new CustomEvent(Q.R.SMILEYS_TEXTAREA_CLEAR,{detail:{inputId:s}}))}if(oo.mobile){var c=oo("#bChatRoomTitle .chat_title_link");c.length&&(c.attr("href","/profile/".concat(t)),c.html(n.title)),oo(".bottom_banner_container_chat").show(),oo("#popupPrivate .goto-group").show()}if(this.service.connected)this.currentChathost&&this.closeRoom(!0),this.setCurrentChathost(t),!oo.mobile&&this.userData.isPayable&&oo.bongacamsPopupClose(),this.isMobile||(0,Sr.V)()||(oo.bongacamsPopupClose(),oo(".contextMenu").remove(),oo("#bChat .js-smile_panel_input").destroySmilePanel(),oo("#ChangeFontFormTooltip").find(".close").click()),a.triggerHandler("onBeforeGetRoom",[t,n]),this.service.getRoom(t);else if(this.debug("!!! ws is not connected, try to connect"),this.service.connect(this.localData.chatServerUrl),gi.BrowserDetect.isOperaMini()){var u=chat.localData.directServiceUrl;(0,Zr.E)(u,"getRoomData",chat.userData.chathost,!1).done((function(e){var t,n,r,o,a,s;if(!i.service.connected){if(chat.performerData=null==e?void 0:e.performerData,chat.localData=null==e?void 0:e.localData,chat.videoServerUrl=null===(t=null==e?void 0:e.localData)||void 0===t?void 0:t.videoServerUrl,chat.userData=null==e?void 0:e.userData,chat.userData.isLogged=(null===(n=chat.userData)||void 0===n?void 0:n.userId)>0,-1===location.href.indexOf("/".concat(null===(r=null===chat||void 0===chat?void 0:chat.performerData)||void 0===r?void 0:r.username))&&!oo(".no_change_page_url").length){var c="".concat(chat.urlPrefix(),"/").concat(null===(o=null===chat||void 0===chat?void 0:chat.performerData)||void 0===o?void 0:o.username);(0,Re.G$)({},null===(a=null===chat||void 0===chat?void 0:chat.performerData)||void 0===a?void 0:a.displayName,c),oo("base").attr("href",location.origin+c)}(null===(s=null==e?void 0:e.userData)||void 0===s?void 0:s.messageStyle)&&(0,hn.D)(e.userData.messageStyle),mi.A.instance.playStream()}})),window.chat.performerStatus="public"}}}else this.roomData={chathost:t,data:n}},t.prototype.closeRoom=function(e,t){this.debug("closeRoom",e),ai.A.instance.showLayover(!1),this.options.debug&&this.addServiceMessage("[debug] changeRoom: ".concat(e)),this.service.closeRoom(e),e?(this.waitRoomConnect=!0,void 0!==vi.z.instance.volume&&"one"===this.localData.promoAudioMute&&this.onlineModels.includes(this.currentChathost)&&(this.localData.promoAudioMute=null,vi.z.instance.setDefaultVolume())):this.waitRoomConnect=!1,this.closeChat(t);var n=G.A.getState(),r=n.isMemberBanned,i=n.isMemberKicked;r&&(0,q.R4)(!1),i&&(0,q.OR)(!1),chat.dailyLimitExceeded||ai.A.instance.showLayover(!1)},t.prototype.setCurrentChathost=function(e){if(e){var t=e&&this.currentChathost&&this.currentChathost!==e;this.currentChathost=e,oo("#bChat").triggerHandler("onCurrentChathost",e),t&&oo("#bChat").triggerHandler(Q.R.ON_CURRENT_CHATHOST_CHANGE),this.debug("setCurrentChathost",this.currentChathost)}},t.prototype.onChatSettings=function(e){var t;this.debug("--- ChatSettings",e),this.chatSettings=e,Lr(e),Mr(e),t=(0,Br.pi)(e),G.A.action(un)(t),oo(document).trigger("chat:settings")},t.prototype.spamFilterMessage=function(e,t,n,r,i){var o;if(void 0!==t){var a="caps"===e?__("excessive use of capital letters"):__("banned words");o=__(t,{br:"",delay:10,modelMute:(0,_i.O)(1e3*i,!1,!0),mute:12,reason:a})}else o=this.userData.isRu&&r?r:n,o=(0,Gr.Zn)(o);void 0!==o&&""!==o.trim()&&this.incomingServiceMessage(o,"sf")},t.prototype.incomingServiceMessage=function(e,t,n,r,i){var o,s,c;this.debug("incomingServiceMessage",e);var u=G.A.getState(),l=(0,Ni.p)();if(!u.isMemberBanned){void 0!==r&&(this.performerData.messageStyle=r);var d={};switch(t){case"model_raise":return void this.addServiceMessage(e,"model_raise",this.currentChatType);case"new_tip_king":return void this.addServiceMessage(e,"new_tip_king",this.currentChatType);case"notice":var f=(0,Wr.ZW)(e),h=(0,Wr.n5)(f);if(h===gr.A.MEMBER_ACTIVITY)return this.addServiceMessage(e,gr.A.MEMBER_ACTIVITY,this.currentChatType);if(i&&!this.isCyrillic&&!this.userData.isPerformer&&!this.userData.isMcm&&"moderator"!==this.userData.role&&"private-chat"!==this.currentChatType)return;if(0===(null==n?void 0:n.indexOf("enc:"))){n=n.substr(4);var p=this.chatSettings.disableChatBotsInPrivate&&"private-chat"===this.currentChatType,m=[gr.A.TIP_KING,gr.A.COUNTDOWN,gr.A.TBR_NOTIFIER,gr.A.ROT_NOTIFIER];if(p&&h&&m.includes(h))return;var v=null!==(s=null===(o=null==f?void 0:f.d)||void 0===o?void 0:o.allowedStatuses)&&void 0!==s?s:[];if(!this.userData.isPerformer&&[gr.A.ROT_NOTIFIER,gr.A.TBR_NOTIFIER].includes(h)&&!v.includes(this.userData.accessLevel))return;var g=zr(e,n);if(null===g)return;"object"==typeof g?(e=g.text,d=g):e=g}if(n&&!this.userData.isPerformer){if(this.userData.isRu&&"en"===n)return;if(!this.userData.isRu&&"ru"===n)return}var _=["CND_PAUSE","CND_RESUME"].includes(e);if(_){var b=this.userData.isPerformer?this.userData.displayName:null===(c=this.performerData)||void 0===c?void 0:c.displayName;"CND_PAUSE"===e?e=__("%displayname% paused the countdown.",{displayname:b}):"CND_RESUME"===e&&(e=__("%displayname% resumed the countdown.",{displayname:b}))}if(n&&this.userData.isPerformer&&_&&(this.userData.isRu&&"en"===n||!this.userData.isRu&&"ru"===n))return;if(d&&"tkn1"===d.type||"tkn2"===d.type){var y=this.currentChatType?oo("#bChat").find(".history").filter(":visible"):oo("#".concat(this.currentChatType," .history")),A=(y=y.length?y:y.prevObject.eq(0)).find(".msg_tip_success, .tip_success, .msg_wrp.msg_member[data-author]")[oo.mobile?"first":"last"](),S=chat.getUserDataFromItem(A);if((A.hasClass("msg_tip_success")||A.hasClass("tip_success"))&&(null==S?void 0:S.displayName)!==d.dn)return}var E=0===e.indexOf("#LN#");E&&(e=e.replace("#LN#","")).includes("#P-API#")&&(e=e.replace("#P-API#",""));var w=(0,ar.fE)();e=e.replace(/\n/g,"
"),e=this.Smileys.replace({callback:function(e,t){if(t){var n=Ci(w);Jn(n,e,t)}},message:e,replacePremium:!0});var C="en"===n||"ru"===n||E?" ltr":"",T=oo(''.concat(__("Notice:"),' ').concat(e,"")),L=void 0;if(this.performerData&&(this.performerData.messageStyle||this.performerData.fontStyle)?L=this.performerData:this.userData.isPerformer&&(this.userData.messageStyle||this.userData.fontStyle)&&(L=this.userData),L&&!this.userData.isPerformer&&!l){var M=(0,Mi.c)(L);T.css(M)}return this.addServiceMessage(T.prop("outerHTML"),this.userData.isPerformer?"topicChange":"modelNote",this.currentChatType);case"vwm_update":return void Promise.all([a.e(11),a.e(560),a.e(698)]).then(a.bind(a,86723)).then((function(t){var n,r,i=t.LovenseVibeWithMeController;try{var o=(0,Wr.ZW)((0,yi.CN)(e));(null===(n=null==o?void 0:o.d)||void 0===n?void 0:n.forceDisable)?i.forceDisable():(null===(r=null==o?void 0:o.d)||void 0===r?void 0:r.data)&&i.receiveData(atob(o.d.data))}catch(e){console.error(e)}}));case"warning":return void this.addServiceMessage(e,"warning",this.currentChatType);default:return this.addServiceMessage(e,"service",this.currentChatType)}}},t.prototype.isAllowedToShow=function(e,t,n,r,i,o){void 0===n&&(n=!1),void 0===r&&(r=""),void 0===i&&(i=!1),void 0===o&&(o=!1);var a=!i&&"public-chat"===this.currentChatType,s=G.A.getState().isFreeUsersMuted;if((0,R._b)("Chat History isAllowedToShow").log(e.username,a,{botMessageLang:t,from:e,messageText:r,skipCyrillicCheck:i,isBotRu:n,isCyrillicMessage:o}),(0,pi.A)(e.username))return!1;if(s&&!e.isPayable&&"model"!==e.role&&"moderator"!==e.role)return!1;if(this.userData.isPerformer){if(t&&"model"===e.role){if("every"===t)return!0;if("en"===t&&n&&this.localData.isRussian)return!1;if("ru"===t&&!n)return!1}return!0}if("model"===e.role&&t){var c="ru"===t;if(this.performerData.isRu){if(c!==this.userData.isRu)return!1}else if(!this.userData.isRu&&c)return!1}if(e.username===this.userData.username)return!0;if("moderator"===e.role)return!0;if("moderator"===this.userData.role)return!0;if(this.userData.isMcm)return!0;if(e.isMcm&&!a)return!0;if("model"===e.role){if(!a)return!0;if(this.userData.isMcm)return!0;if(!o)return!0}return a?!o||this.isCyrillic:this.performerData.isRu?e.isRu===this.userData.isRu:!e.isRu||this.userData.isRu},t.prototype.showTipMenu=function(t,n,r,i,o){var a=this;if(this.performerData.tipmenu){var s=this.getTipMenuValue(),c=s.lang,u=s.value,l=this.userData.isPerformer?this.userData:(0,e.Cl)((0,e.Cl)({},this.performerData),{isPerformer:!0}),d=[];return null==u||u.split("\n").forEach((function(e,t){var s=a.incomingMessage({id:"tip_menu_".concat(Math.floor(65535*Math.random())),$history:r,chatType:"public-chat",from:l,lang:c,message:e,suspicious:"",isBubbleDesign:i,isDeletedMessage:!1,isMultipleCall:n,isTipMenu:!0},o);s&&s.length>1?d.push.apply(d,s):d.push(s)})),n||this.isMobileApp||(0,mn.Ls)(),d}},t.prototype.getTipMenuValue=function(){var e=this.performerData.tipmenu;if(!(null==e?void 0:e.en))return{};var t=(this.userData.isPerformer?chat.localData.isRussian:this.userData.isRu)&&e.ru?"ru":"en";return{lang:t,value:e[t]}},t.prototype.incomingMessage=function(e,t){var n=e.id,r=e.$history,i=e.chatType,o=e.from,a=e.lang,s=e.message,c=e.suspicious,u=e.isBubbleDesign,l=e.isCyrillicMessage,d=e.isDeletedMessage,f=e.isMultipleCall,h=e.isPreserveMessagesStyles,p=e.isTipMenu;void 0===t&&(t=!1);var m=G.A.getState(),v=m.user,g=m.isMemberBanned,_=m.isModerator;if(!g){var b=r||oo("#".concat(i," .history"));if(u=void 0===u?$r(b):u,a&&0===a.indexOf("enc:")){if("tip_menu"===s)return this.performerData.messageStyle=o.messageStyle,this.showTipMenu(o,f,r,u,t);a=a.substr(4);var y=zr(s);if(null===y)return;s="object"==typeof y?y.text:y}var A=!this.isAuthenticated||_r.A.isMember(this.userData.role);if(a&&a.includes(ni.aV)&&A){var S=a.lastIndexOf(ni.aV),E=a.slice(S+ni.aV.length);if(this.userData.displayName!==E)return}var w=a&&(a.includes(ni.UE)||!a.includes(":ml")),C=null;if(a&&(a.includes(ni.Sf)?C=this.userData.isPerformer?"every":this.userData.isRu?"ru":"en":a.includes(ni.Oj)?C="ru":a.includes(ni.G_)&&(C="en")),"model"!==o.role||h||(this.performerData.messageStyle=o.messageStyle),this.debug("incomingMessage",o.username,i,"!=".concat(c)),this.isAllowedToShow(o,C,w,s,p,l)){var T=this.formatMessage(s,o,n,b,d,u,void 0,p);"updateMessageForAdmin"in this&&"function"==typeof this.updateMessageForAdmin&&this.updateMessageForAdmin(T,o,s||"");var L=!f&&_&&(0,xr.w)(Nr.F.SCROLL_THRESHOLD);this.addMessage(T,b,f,p),this.afterAddMessage(T,b,u,t),t||(0,An.w)(Q.R.CHAT_INCOMING_MEMBER_MESSAGE,o);var M=!f&&!_,k=(null==T?void 0:T.data("author"))&&(null==T?void 0:T.data("author"))===v.username;return(L||M&&k)&&(0,jr.v)(),T}}},t.prototype.afterAddMessage=function(e,t,n,r){if(!r&&n){var i=(0,Ti.v)(t);i&&(e.hasClass("msg_wrp")&&(e=e.find(".msg_box")),(0,Xn.S)(e,i,this.userData.isPerformer))}},t.prototype.onTopicChange=function(e,t,n){if(void 0===n&&(n=!1),e)if(e=(0,Ai.gL)((0,yi.CN)(e,!0),"",16),this.debug("onTopicChange","isRu=".concat(t),e),oo("#bTopicForm").hasClass("topicRu"))t?(this.addServiceMessage(''.concat(__("Topic")," (для России): ").concat(e),"topicChange"),oo(".bChatTopicRu").html(e)):(this.addServiceMessage(''.concat(__("Topic")," (для остальных): ").concat(e),"topicChange"),oo(".bChatTopic").not(".bChatTopicRu").html(e));else{var r=G.A.getState().isMobile,i=n&&!r,o=void 0!==this.userData.isRu&&this.performerData.isRu&&Boolean(t)!==Boolean(this.userData.isRu),a=t&&!this.performerData.isRu;if(this.userData.isPerformer&&t||!this.userData.isPerformer&&(i||o||a))return;this.addServiceMessage(''.concat(__("Topic:")," ").concat(e),"topicChange"),oo(".bChatTopic").html(e)}else this.userData.isPerformer?oo(".bChatTopic".concat(t?"Ru":"")).html(""):oo(".bChatTopic").html(__("%modelname%'s chat",{modelname:this.performerData.displayName}));oo(document).trigger("chat:topic-change",[e,t])},t.prototype.onTipMenuSettingsChange=function(e,t){var n,i;void 0===t&&(t=!1);var o,a,s=G.A.getState().isMobileApp,c=s&&(null===(n=null===chat||void 0===chat?void 0:chat.localData)||void 0===n?void 0:n.isRussian)&&"ru"===document.documentElement.lang,u=e.enabled?(o=e.items,a=c,o.reduce((function(e,t){var n=lr.isCorrect(t.en)&&!a?lr.getTitle(t.en):t.en,r=lr.isCorrect(t.ru)?lr.getTitle(t.ru):t.ru;return n&&e.en.push(cr(n,t.price||0)),r&&e.ru.push(cr(r,t.price||0)),e}),{en:[],ru:[]})):{},l=u.en,d=void 0===l?[]:l,f=u.ru,h=void 0===f?[]:f,p=!t&&(!s||e.notify);this.onTipMenuChange({interval:e.promo_interval,messages:d},!1,p),this.onTipMenuChange({interval:e.promo_interval,messages:h},!0,p),!chat.userData.isPerformer&&r.q.isEnabled(L.i.TIP_MENU_POPUP_GAME)&&(null===(i=chat.gameControls)||void 0===i||i.setTipMenuSettings(e))},t.prototype.onTipMenuChange=function(t,n,r){var i,o,a,s=t.interval,c=t.messages;void 0===r&&(r=!1),this.debug("onTipMenuChange","isRu=".concat(n),c);var u=Boolean(this.userData.isRu)===n,l=c.map((function(e){return(0,Ai.gL)(e,"",16)})).join("\n");if(this.performerData.tipmenu=(0,e.Cl)((0,e.Cl)({},this.performerData.tipmenu||{}),((i={})[n?"ru":"en"]=l,i)),(chat.userData.isPerformer||!(null===(o=this.performerData.tipmenu)||void 0===o?void 0:o.ru)||u)&&(r||0!==s)&&c.length){if(l=l.replace(/\n/g,"
"),this.userData.isPerformer){if(!chat.localData.isRussian&&n||0===s)return;var d=n?__("Tip Menu (for Russia):"):__("Tip Menu (for other countries):"),f=chat.localData.isRussian?d:__("Tip Menu:");return this.addServiceMessage("".concat(f,"
").concat(l),"topicChange")}return u?this.addServiceMessage(l,"topicChange"):!Boolean(this.userData.isRu)||(null===(a=this.performerData.tipmenu)||void 0===a?void 0:a.ru)||n||this.performerData.isRu?void 0:this.addServiceMessage(l,"topicChange")}},t.prototype.performerStatusChange=function(t){this.debug("performerStatusChange",t,"was=".concat(this.performerStatus));var n=G.A.getState().chatHost;if(G.A.setState({chatHost:(0,e.Cl)((0,e.Cl)({},n),{showType:t})}),G.A.action(fn.x)((0,Br.QD)({showType:t,online:"offline"!==t})),t!==this.performerStatus){var r="public"===t&&"away"===this.performerStatus;if(this.performerStatus=t,r)return this.debug("performerStatusChange","need timout"),void setTimeout((function(){oo("#bChat").triggerHandler("onPerformerStatusChange"),(0,An.w)(Q.R.PERFORMER_STATUS_CHANGE)}),1e3);oo("#bChat").triggerHandler("onPerformerStatusChange"),(0,An.w)(Q.R.PERFORMER_STATUS_CHANGE),(0,Fr.f)(!0)}},t.prototype.onShowRaise=function(e){var t=__("%member% raised %model% to the 1st position on the main page for 60 seconds!",{member:''.concat(e,""),model:''.concat(this.userData.displayName,"")});this.addServiceMessage(t,"model_raise")},t.prototype.onUserData=function(e,t,n,r){var i,o=this;this.debug("--- UserData",e),this.debug("--- PerformerData",t),this.debug("--- LocalData",n),(0,R._b)("Chat Event onUserData").log((null==t?void 0:t.username)||(null==e?void 0:e.chathost)||"(unknown chathost)"),(0,gn.R)("@@ChatEvent/roomLoadEnd"),this.userData=e,this.performerData=t,this.performerData&&!this.performerData.role&&(this.performerData.role="model");var a=G.A.getState(),s=a.isFollowingsLoaded,c=a.isModerator;if(t){var u={chatType:chat.currentChathost,displayName:t.displayName,gender:t.gender,loversCount:null==t?void 0:t.loversCount,quality:t.videoQuality,showType:t.showType,username:t.username};c&&Object.assign(u,{isHDCam:null==t?void 0:t.isHDCam}),G.A.setState({chatHost:u,initialVideoPoster:n.vsid?{frame:(0,si.A)(n.vsid,t.username),username:t.username}:null})}s?this.userIsFriendForPerformer=(0,Xt.qs)(null===(i=this.performerData)||void 0===i?void 0:i.username):(0,Kt.n)((function(){var e;o.userIsFriendForPerformer=(0,Xt.qs)(null===(e=o.performerData)||void 0===e?void 0:e.username)})),this.localData=n,r&&this.performerStatusChange(r),this.waitRoomConnect=!1,this.setCurrentChathost(null==t?void 0:t.username);var l=oo("#bChat");l.triggerHandler("onUserData",[t,n]),l.triggerHandler("afterUserData")},t.prototype.onConnect=function(){this.debug("onConnect"),oo("#bChat").triggerHandler("onRoomConnect",this.userData)},t.prototype.resetUsersList=function(e){oo("#bChat .users").html("").removeClass("users_full"),(0,zi.Y)(this.currentChatType,{totalGuests:0,totalUsers:0,users:[]},this.userData,e)},t.prototype.onDisconnect=function(e){var t,n,r,i,o,a=this;(0,R._b)("Chat Flow onDisconnect").log(),this.debug("onDisconnect",e),oo("#bChat").triggerHandler("onRoomClose",e),G.A.action(q.$A)({enabled:!1}),(null==e?void 0:e.code)&&!chat.dailyLimitExceeded&&ai.A.instance.showLayover("show_default");var s=null===(t=this.performerData)||void 0===t?void 0:t.username;if(this.closeChat(),this.userData&&this.userData.isPerformer&&(this.performerStatusChange("offline"),oo("#bCamStatus a").hide()),null==e?void 0:e.code){switch(e.code){case"AUTH_MISS":case"ERROR":case"ONLINE_FAILED":this.addServiceMessage(__("Chat closed"),"alert"),(oo("#mls_chatconsole").length||oo("#video-panel-wrap").length)&&(location.href="/");break;case"CHANGE_GENDER":case"MRLA_REQUIRED":case"CHANGE_GENDER":case"MRLA_REQUIRED":window.chat&&window.chat.encoder&&window.chat.encoder.stopBroadcast&&window.chat.encoder.stopBroadcast(),window.opener?window.close():location.href="/";break;case"CONNECT_MISS":break;case"GHOST_DETECT":this.addServiceMessage("Duplicated user detected, chat session has been closed","alert");var c=G.A.getState().isPromo;window.opener?window.close():c||!oo("#mls_chatconsole").length&&!oo("#video-panel-wrap").length||(location.href="/"),null===(r=null===(n=window.chat)||void 0===n?void 0:n.encoder)||void 0===r||r.stopBroadcast();break;case"PING_TIMEOUT":if((0,P.isSessionStorageAvailable)()){var u=Number(sessionStorage.getItem("reloadCount"));u<2?(sessionStorage.setItem("reloadCount",String(u+1)),window.location.reload()):(sessionStorage.setItem("reloadCount","0"),window.location.href="/")}else window.location.href="/";break;case"ROOM_RELEASE":return void this.performerStatusChange("offline");case"SPAM_DETECT":this.addServiceMessage(__("Your account has been compromised and blocked from sending messages and watching live streams."),"alert"),this.addServiceMessage(__("In case you have any questions, please contact our support team."),"alert");break;case"USER_BAN":(0,q.R4)(!0),"mcm"===e.status?this.addServiceMessage(__("You have been banned from %modelname%'s chat room by moderator %member_moderator% (most likely for inappropriate behavior)",{member_moderator:e.who,modelname:this.performerData.displayName}),"alert"):this.addServiceMessage(__("You have been banned from %modelname%'s chat room (most likely for inappropriate behavior)",{modelname:this.performerData.displayName}),"alert"),G.A.getState().chromeCastAvailable&&window.ChromeCast.getInstance().stopCast(),(0,Fr.f)();break;case"USER_KICK":this.userData.isPerformer?(this.addServiceMessage(__("Your chat session has been closed by the administrator."),"alert"),e.reason&&this.addServiceMessage(__(e.reason),"alert"),this.addServiceMessage(__("In case you have any questions, please contact %i%BongaCams Support%x%.",{i:'',x:""}),"alert")):this.addServiceMessage(__("You have been blocked from %modelname%'s chat room (most likely for inappropriate behavior)",{modelname:this.performerData.displayName}),"alert"),(0,q.OR)(!0),oi.updateKickedModels(s);break;case"USER_KICK_TEMPORARY":(0,q.OR)(!0),(0,q.o)(e.status),["mcm","model"].includes(e.status)&&oi.updateKickedModels(s),setTimeout((function(){"model"===e.status?a.addServiceMessage(__("Model %model% kicked you from the chat for 1 hour (most likely, for inappropriate behavior)",{model:e.who}),"alert"):"mcm"===e.status?a.addServiceMessage(__("Moderator %displayname% kicked you from the chat for 1 hour (most likely, for inappropriate behavior)",{displayname:e.who}),"alert"):a.addServiceMessage(__("%status% user %member% kicked you from the chat for 1 hour (most likely, for inappropriate behavior)",{member:e.who,status:''.concat(e.status,"")}),"alert")}),1),G.A.getState().chromeCastAvailable&&window.ChromeCast.getInstance().stopCast(),(0,Fr.f)();break;default:this.addServiceMessage(e.code,"alert")}null===(o=null===(i=this.gameControls)||void 0===i?void 0:i.onDisconnect)||void 0===o||o.call(i)}},t.prototype.setHistory=function(e,t,n){var i,o,a,s,c;if(this.debug("setHistory",e),!("fullprivate"===this.performerStatus||oo.mobile&&oo("body").hasClass("fullscreen"))){for(var u=t||"public-chat",l=G.A.getState(),d=l.chatHistoryLength,f=(l.user.membership,l.isMobile,null===(i=this.getTipMenuValue().value)||void 0===i?void 0:i.split("\n").length),h=0,p=e.length-1,m=0;p>=0&&!(m>=d);p--){"tip_menu"===(y=e[p]).message&&0===(null===(o=y.l)||void 0===o?void 0:o.indexOf("enc:"))?m+=f:m+=1,h++}var v=oo("#".concat(u," .history")),g=e.slice(e.length-h);g=function(e){var t,n,r=e.filter((function(e){return e&&void 0!==e.ti})),i=e.filter((function(e){return e&&void 0===e.ti})),o={};r.forEach((function(e){o[e.ti]=e}));for(var a=0,s=i;a'),o.remove()}}else e.remove()}},t.prototype.onDeleteMessages=function(e){var t=this,n=this;this.debug("--- onDeleteMessages",e);var r=$r(oo("#bChat").find(".history").filter(":visible")),i=r?"msg_wrp":"msg_row",o=function(e){e.find(".smiley").each((function(){var e=oo(this).attr("data-token");e?(e=-1===e.indexOf(":")?":".concat(e):e,oo(this).replaceWith(" ".concat(e," "))):oo(this).remove()}))};if(e.deletedBy){var a=Ci(e.id),s=a.closest(".".concat(i));if(this.userData.isPerformer&&this.userData.username===e.username||this.userData.isPerformer&&e.deletedByMcm&&s.attr("data-author")!==e.username||this.userData.isMcm&&s.attr("data-author")!==this.userData.username&&(!e.deletedByMcm||s.attr("data-author")!==e.username)){var c={id:e.id};if(this.userData.isPerformer&&!e.deletedByMcm||this.userData.isPerformer&&e.deletedByMcm&&s.attr("data-author")!==e.username||this.userData.isMcm&&e.deletedByMcm){var u="";c.deletedBy=e.deletedBy,r?a.find(".message").each((function(){o(oo(this)),u+=oo(this).find(".msg").html()})):a.find(".multi_msg").length?a.find(".msg_box").each((function(){o(oo(this)),u+=oo(this).find(".msg").html()})):(o(a.find(".msg")),u=a.find(".msg").html()),c.message=u}r?(s.addClass("mb_color"),a.html(Ri((0,Xr.v)(c),!0,!0)),Yi(c.message,a,s)):a.find(".multi_msg").length?a.find(".multi_msg").replaceWith(Di((0,Xr.v)(c),!0,!0)):a.closest(".".concat("js-mapp_tip_success_with_msg")).length?a.find(".msg").html((0,Xr.v)(c)):(a.addClass("colored __text"),a.find(".msg").replaceWith(Di((0,Xr.v)(c),!0,!0,{isMsgBox:!1})),Yi(c.message,a)),Wi(c)}else(s.attr("data-author")!==this.userData.username||this.userData.isMcm&&s.attr("data-author")===this.userData.username&&!e.deletedByModel)&&n.permanentlyDeleteMessage(a,r)}else if(e.id&&e.username){var l=oo("#bChat .".concat(i,'[data-author="').concat(e.username,'"]'));r?n.permanentlyDeleteMessage(Ci(e.id,l),r,!0):n.permanentlyDeleteMessage(l.filter((0,rr.mc)(e.id,!0)),r,!0),this.debug("[onDeleteMessages]---delete itself---")}else if(e.username&&!e.id&&e.ddn)n.permanentlyDeleteMessage(oo("#bChat .".concat(i,'[data-author="').concat(e.username,'"]')),!1),oo("#bChat ".concat(".msg_wrp, .msg_row")).map((function(t,r){var i=oo(r),o=chat.getUserDataFromItem(i);(null==o?void 0:o.username)===e.username&&n.permanentlyDeleteMessage(i,!1)})),this.debug("[onDeleteMessages]---delete all messages (moderator - ban user)---");else if(e.username&&!e.id)n.permanentlyDeleteMessage(oo('#bChat .msg_wrp[data-author="'.concat(e.username,'"]')),!1),n.permanentlyDeleteMessage(oo("#bChat .".concat(i,'[data-author="').concat(e.username,'"]')),!1),this.debug("[onDeleteMessages]---delete all messages (model|moderator - ban user)---");else if(e.id&&!e.username){var d=Ci(e.id);"moderator"===this.userData.role&&e.r&&(0,Ir.C1)()&&(d=d.filter((function(n,r){var i;return(null===(i=t.getUserDataFromItem(oo(r).closest(".msg_wrp")))||void 0===i?void 0:i.chathost)===e.r}))),n.permanentlyDeleteMessage(d,r,!0),this.debug("[onDeleteMessages]---delete one message (moderator/admin)---")}},t.prototype.isSendAllowed=function(e){return this.userData.isLogged?e.length>255?(alert("Message is too long"),!1):"member"!==this.userData.role||("fullprivate"!==this.performerStatus||this.isPaidShow()?"gold"===this.userData.accessLevel&&!chat.userData.isVip&&!chat.userData.isMcm&&"public-chat"===this.currentChatType&&this.chatSettings.minTokensForChat&&chat.userData.balance'.concat(V.kX.pluralise("tokens",this.chatSettings.minTokensForChat),"
")}),' ').concat(__("Buy Tokens!")," "),"alert js-goldbalance_chat_alert"),!1):!this.checkFreeMessageLimit():(this.fullPrivateMessageLimit(),!1)):(this.addServiceMessage(__("We are sorry but guests are not allowed to chat. %a1%Click here to create a 100% %s1%free%sEnd% account%aEnd% and begin chatting with your favorite models!",{a1:'',aEnd:"",s1:'',sEnd:""}),"alert guest_chat_alert"),!1)},t.prototype.sendMessage=function(e,t,n,r){(void 0===r&&(r=!1),this.debug("sendMessage",e,t),this.isSendAllowed(e))&&("member"===this.userData.role&&this.Smileys.replace({callbackHasSmile:function(e){var t=e.amountSmiles;e.hasSmileMessage&&((0,vr.y)(),t&&yr.M.reportEvent(45,"click",{value:t}))},escape:!0,message:e,replacePremium:!0,saveAsRecent:!0}),!(!chat.chatSettings.disableChatBotsInPrivate||"private-chat"!==this.currentChatType)&&r||this.service.sendMessage(e,this.currentChatType,t,n));oo("#bChat").triggerHandler("onSendMessage",t),(this.isIE||!this.isAuthenticated||this.isMobileApp)&&oo(".ic_input_holder").find(".js-chat_msg_input").val("");var i=oo(".js-chat_msg_input_container").data("smileys"),o=i?i.$panel:null;o&&o.is(":visible")&&i.hide()},t.prototype.isPaidShow=function(){return"public"!==this.currentShowType},t.prototype.updateHistoryState=function(e,t,n,r){var i;void 0===t&&(t=!1);var o=n||(null===(i=this.performerData)||void 0===i?void 0:i.username);if(o&&"string"==typeof o)if(this.currentChathost&&this.currentChathost!==o)(0,R._b)("ChatRouting skip").warn("unable",e,t,n);else if(this.currentChathost&&e&&this.currentChathost===o)(0,R._b)("ChatRouting skip").warn("chathost already set",e,t,n);else if(n||!this.waitRoomConnect){if(!this.userData||"moderator"!==this.userData.role||!(0,Ir.C1)()){var a="";this.options.scriptName&&"/index.php"!==this.options.scriptName&&(a=this.options.scriptName);var s=G.A.getState(),c=s.chatNavigation,u=(s.liveTab,oo("body").hasClass("chatPopupBody")),l=Tr(a+(u?"/chat-popup/":"/")+(0,Ge.o)(o));if(t||!(0,ge.XH)(l,location.pathname)){var d=t?Re.G$:Re.GC;t?(0,R._b)("ChatRouting replace").log(e,n,l):(0,R._b)("ChatRouting push").log(e,n,l),d({chathost:o,chatNav:null==c?void 0:c.listingLoaderSettings,title:r||this.performerData.displayName},oo("title").html(),l,!1)}else(0,R._b)("ChatRouting skip").warn("url already set",e,t,n)}}else(0,R._b)("ChatRouting skip").warn("room connecting",e,t,n);else(0,R._b)("ChatRouting skip").warn("incorrect chathost",e,t,n)},t.prototype.dispatchTip=function(e,t){oo(document).trigger("chat:tip",{amount:t,user:e.displayName,username:e.username})},t.prototype.renderMessageForTip=function(e){var t=e.id,n=e.$history,r=e.chatType,i=e.from,o=e.lang,a=e.message,s=e.isBubbleDesign,c=e.isCyrillicMessage,u=e.isDeletedMessage,l=n||oo("#".concat(r," .history"));if(s=void 0===s?$r(l):s,!this.isAllowedToShow(i,o,null,a,!1,c)||this.currentChatType!==r)return"";i&&void 0!==i.messageStyle&&delete i.messageStyle;var d=this.formatMessage(a||"",i,t,l,u,s,!1);return"updateMessageForAdmin"in this&&this.updateMessageForAdmin,d.length&&(d[0].className=d[0].className.replace(/(ms_).*?\b/g,""),d[0].className=d[0].className.replace("mb_color","")),d.length?d:""},t.prototype.debug=function(){for(var t=[],n=0;nr||e._isMemberChat&&e._isRoomConnected&&(chat.userData.accessLevel===an.A.FREE?((0,R._b)("FeatureFreeMemberSyncServer ping").log(chat.userData),chat.service.update()):e._unsubscribe())},this._subscribe()}var t;return Object.defineProperty(e.prototype,"_isRoomConnected",{get:function(){return!(!chat.currentChathost||chat.waitRoomConnect||!chat.userData||!chat.performerData)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_isMemberChat",{get:function(){return!!chat&&!!chat.service&&"function"==typeof chat.service.update},enumerable:!1,configurable:!0}),t=e,e.create=function(){return t._instance||(t._instance=new t)},e}(),po=a(51560),mo=a(41669),vo=(0,Pt.s)((function(e,t,n){mo("#quality-btn").toggleClass("__hd",t||n),0!==e&&G.A.setState({currentRendition:"".concat(e,"p")})}),1500);function go(e){var t=e.target,n=t.videoHeight,r=t.videoWidth,i=po.A.isVideoHD("".concat(r,"x").concat(n)),o=po.A.isVideoFHD("".concat(r,"x").concat(n));vo(n,i,o)}var _o=a(41669),bo=function(e){void 0===e&&(e=""),(e||(e=(0,B.Ri)("lvm","")))&&(0,B.TV)("lvm",e,{domain:(0,de.getRealDomain)(),path:"/",expires:30,expiresType:"min"})},yo=a(41669),Ao=a(41669);function So(){var e,t,n=G.A.getState(),i=n.user,o=n.isAuthenticated,a=n.isMobile;n.isMobileApp||(o&&i.membership===an.A.FREE&&ho.create(),a?(co(document).on("chat:open",(function(){(0,so.Fo)()})).on("chat:close",(function(){(0,so.zm)()})),hr.I.on("connect",(function(){(0,so.Fo)()})),(gi.BrowserDetect.isIOS()||gi.BrowserDetect.isMacOS())&&hr.I.on("joinRoom",(function(){var e=mo("#videoView");e.off("resize",go),e.on("resize",go)}))):(G.A.getState().isAuthenticated&&lo("#bChat").on("onPerformerStatusChange.fanBoost",(function(){var e=["online","public"].indexOf(chat.performerStatus)>=0;(0,uo.gt)({isModelAvailable:e})})),e=!1,Ao(document).on("chat:visibility",(function(t){"collapse"===t.originalEvent.detail?vi.z.instance.isSoundMuted()||(vi.z.instance.toggleSound(!1),e=!0):e&&(vi.z.instance.refreshSound(),e=!1)})).on("chat:close",(function(){e&&(vi.z.instance.refreshSound(),e=!1)})),yo(document).on("chat:open",(function(){yo(window).scrollTop(0)})),yo("#bChat").on("onUserData",(function(){var e;"visible"===(null===(e=window.chat)||void 0===e?void 0:e.visibility)&&yo(window).scrollTop(0)})),r.q.isEnabled(L.i.CHAT_GREETING_MESSAGE)&&Zi()),(t=_o("#bChat")).on("onUserData.LastModelViewed",(function(){return bo()})),t.on("onPerformerStatusChange.LastModelViewed",(function(){return bo()})),hr.I.on("joinRoom",(function(){var e=G.A.getState().chatHost;bo(window.chat.performerData.username||e.username)})),hr.I.on("close",(function(){return bo()})),setInterval((function(){"hidden"!==window.chat.visibility&&bo()}),6e4))}var Eo=function(e){var t=e.currentTarget,n=t.closest(".js-chat_tab_content");if(n){var r=t.querySelector(".js-tooltip_modifiers");if(r){var i=t.getBoundingClientRect(),o=i.top,a=i.height,s=n.getBoundingClientRect(),c=s.top;c+s.height-(o+a)<2*a?r.classList.add("__top_pos"):c+2*a>o?r.classList.add("__bottom_pos"):r.classList.remove("__top_pos","__bottom_pos")}}},wo=a(23359);function Co(){var e=(0,De.jL)().stamp,t=new Date;t.setHours(0,0,0,0),(!e||e+864e5<=t.getTime())&&(0,De.jV)({stamp:t.getTime(),todayFreeTimeStamp:0,todayFreeTime:0,todayMessages:0,todayRooms:[]})}var To=a(94743),Lo=a(41669),Mo=a(45697),ko=a(1633),No=a(41669),Io=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.addToSpamList=function(e){chat.debug("*** addToSpam",e);var t=(0,Oe.m)()._csrf_token;No.ajax({data:JSON.stringify({username:e}),dataType:"json",headers:{"X-CSRF-TOKEN":t},success:function(t){var n=No("#mute_select");No("#bMuteListForm").is(":visible")&&(n.find(".js-no_users").length>0&&n.find(".js-no_users").remove(),n.append('
  • ').concat(t.displayName,'').concat(__("muted by %displayname%",{displayname:__("Spam Filter")}),'
  • ')),n.selectable("refresh").selectable("enable"))},type:"POST",url:(0,ge.ip)("@api_chat_bot_spam_filter_add_to_mute_list")})},e.cleanSpamList=function(e){if(e.length){var t=(0,Oe.m)()._csrf_token;No.ajax({data:JSON.stringify({usernames:e}),dataType:"json",headers:{"X-CSRF-TOKEN":t},success:function(){chat.service.removeFromMute(e),(0,ze.loopv)(e,(function(e){if(No("#bMuteListForm").is(":visible")){var t=No('#mute_select li[username="'.concat(e,'"]'));t.length&&t.remove()}}))},type:"POST",url:(0,ge.ip)("@api_chat_bot_spam_filter_remove_from_mute_list")})}},e}return(0,e.C6)(n,t),n.prototype.init=function(){return(0,e.sH)(this,arguments,void 0,(function(n){var r,i,o,s,c,u,l=this;return void 0===n&&(n={}),(0,e.YH)(this,(function(e){switch(e.label){case 0:return(0,R._b)("Chat CoreInit").info(),this.debug("init..."),r=this.loadJqueryUiLib(),(i=G.A.getState()).isAuthenticated&&this.restoreVideoSize(),[4,t.prototype.init.call(this,n)];case 1:return e.sent(),Lo(".stream-volume").on("click",(function(e){Lo(".stream-volume").is(e.target)&&vi.z.instance.toggleSound()})),Lo(".stream-volume input").on("input change",(function(){vi.z.instance.volume=parseFloat(this.value)/100})),Lo(document).on("player:volume",(function(e,t){Lo(".stream-volume").toggleClass("muted",!t||t<=0),Lo(".stream-volume input").each((function(){Lo(this).val(100*t)}))})),So(),this.userData.isLogged&&!i.isMobileApp||No("#bChat .js-chat_msg_input, #bChatInputContainer .js-chat_msg_input").on("keydown",(function(e){var t=e.currentTarget;if(13===e.keyCode&&"string"==typeof t.value){var n=(0,Mo.j)(t.value);if(n)return chat.sendMessage(n,"key"),t.value="",(0,Jt.closeHotWordsHint)(),!1}})),o=No("#bChat"),s=function(){var e,t=(0,ko.Z)(),n=No(this).parents(".js-chat_msg_input_container, #".concat(t)).find(".js-chat_msg_input");if(!i.isAuthenticated||i.isMobileApp)(e=(0,Mo.j)(n.val()))&&(chat.sendMessage(e,"btn"),n.val(""),(0,Jt.closeHotWordsHint)());else if(e=(0,Mo.j)(n.attr("data-send-message"))){chat.sendMessage(e,"btn");var r=(0,io.L)();document.dispatchEvent(new CustomEvent(Q.R.SMILEYS_TEXTAREA_CLEAR,{detail:{inputId:r}}))}return!1},No("#bChatContent").on("click",".js-chat_msg_send",s),o.on("click",".js-chat_msg_send",s),o.on("click",".msg_row.deleted .view",(function(e){var t=No(this).closest(".msg_row"),n=t.data("message");n&&!No("
    ").append(n).find("wbr").length&&(n=(0,Qr.K)(n)),t.find(".msg").html(n),t.find(".msg").addClass("msg_restored"),G.A.getState().isMobileApp&&e.stopImmediatePropagation()})),chat.gameControls||(c=new Promise((function(e){if("visible"===chat.visibility)return e(chat.visibility);No(document).one("chat:open",(function(t,n){return e(n)}))})),chat.gameControlsLoader=function(){return Promise.all([Promise.all([a.e(11),a.e(32),a.e(691),a.e(679),a.e(689),a.e(670)]).then(a.bind(a,6915)),c]).then((function(e){var t=e[0];chat.gameControls=t.default.instance,(0,An.w)(Q.R.GAME_CONTROLS_LOADED)}))}),No(document).on("chat:open",(function(){l.visibility="visible",document.dispatchEvent(new CustomEvent("chat:visibility",{bubbles:!0,detail:l.visibility}))})).on("chat:close",(function(){l.visibility="hidden",document.dispatchEvent(new CustomEvent("chat:visibility",{bubbles:!0,detail:l.visibility})),G.A.action(Ht.t)(!1)})).on("chat:collapse",(function(){l.visibility="collapse",document.dispatchEvent(new CustomEvent("chat:visibility",{bubbles:!0,detail:l.visibility}))})).on("chat:topic-change",(function(e,t){l.setChatHeight(!0,!1,!1,!0)})),G.A.setState({hasFullScreenAccess:this.localData&&this.localData.canEnlargeVideo}),r.then(on),Co(),this.dailyLimitExceeded=fi(this.localData.dailyRoomsLimit),this.dailyLimitExceeded&&(ai.A.instance.showLayover("limit",null===(u=this.localData)||void 0===u?void 0:u.gender),No.mobile&&No("#bSignup2").show()),this.roomData&&(this.getRoom(this.roomData.chathost,this.roomData.data),this.roomData=null),"hidden"===this.visibility&&No("#mls_chatconsole").is(":visible")&&No(document).trigger("chat:open"),o.on("mouseenter",".js-tooltip_wrp",Eo),No(document).trigger("chat:initialized",[this.visibility]),[2]}}))}))},n.prototype.loadJqueryUiLib=function(){return(0,e.sH)(this,void 0,void 0,(function(){var t,n;return(0,e.YH)(this,(function(e){switch(e.label){case 0:return t=G.A.getState(),n=t.user.membership,t.isMobile||n===an.A.FREE?[3,2]:[4,a.e(531).then(a.t.bind(a,85651,23))];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},n.prototype.loadLayouts=function(){return(0,e.sH)(this,void 0,void 0,(function(){var t,n,r,i;return(0,e.YH)(this,(function(e){switch(e.label){case 0:return t=G.A.getState(),n=t.user,r=t.isMobile,t.isMobileApp?[3,5]:r?[3,2]:[4,Promise.all([a.e(690),a.e(673)]).then(a.bind(a,26347))];case 1:e.sent(),e.label=2;case 2:return[4,Promise.all([a.e(11),a.e(97),a.e(157),a.e(104),a.e(77),a.e(68),a.e(109),a.e(88),a.e(679),a.e(338),a.e(353),a.e(671),a.e(664)]).then(a.bind(a,30331))];case 3:return e.sent(),r?[4,Promise.all([a.e(11),a.e(32),a.e(28),a.e(9),a.e(4),a.e(97),a.e(157),a.e(104),a.e(77),a.e(113),a.e(163),a.e(63),a.e(83),a.e(691),a.e(261),a.e(679),a.e(692),a.e(696),a.e(663)]).then(a.bind(a,59738))]:[3,5];case 4:e.sent(),e.label=5;case 5:return void 0===(i=null==n?void 0:n.role)&&(i="guest"),"moderator"!==i?[3,7]:[4,Promise.all([a.e(11),a.e(42),a.e(97),a.e(157),a.e(104),a.e(77),a.e(68),a.e(134),a.e(109),a.e(88),a.e(679),a.e(338),a.e(353),a.e(671),a.e(681)]).then(a.bind(a,72235))];case 6:e.sent(),e.label=7;case 7:return[2]}}))}))},n.prototype.resizeWindow=function(){window.opener&&(No.browser.msie?window.resizeTo(document.documentElement.clientWidth+20,No("body").outerHeight(!0)+100):window.resizeTo(window.outerWidth,No("body").outerHeight(!0)+(window.outerHeight-window.innerHeight)))},n.prototype.repositionPrompt=function(e){void 0===e&&(e=No("#bChatPrompt")),chat.userData.isLogged&&!["model","member"].includes(chat.userData.role)||qt.c.instance.repositionPrompt()},n.prototype.buildMemberCamUrl=function(e){var t="about:blank";return e.myCamToken&&(t="/chat-view-member-cam/".concat(e.username,"/").concat(e.myCamToken),"wrtc"===e.hasStream&&(t=(0,Si.K)(t,"wrtc","1")),"moderator"===G.A.getState().user.role&&(t=(0,Si.K)(t,"model",this.currentChathost))),t},n.prototype.canSendPM=function(t){return(0,e.sH)(this,void 0,void 0,(function(){var n,r,i,o,a=this;return(0,e.YH)(this,(function(e){switch(e.label){case 0:return n=this.userData,r=n.balance,i=n.role,o=n.isLogged,[4,new Promise((function(e){var n="model"===t.role,s=a.userData.accessLevel===an.A.FREE,c=n?(0,ei.M)(a.userData):(0,ei.q)(a.userData);if(o&&("moderator"===i||t.role&&"moderator"===t.role||c))return e(!0);n&&t.username?(0,gn.R)("@@ChatEvent/getDialogRestriction",{callback:function(t,n){if(void 0===t&&(t=!1),!t&&n)if(a.userData.restrictionDisabled=t,[3,10].includes(n.error))e(!1);else{var i=a.chatSettings,o=i.privateMessageMinTokens,c=i.privateMessageSettings;if("all"===c)e(!s&&r
    '+''.concat(__("%s1%%username% (Balance: %balance% %tokens_plural%)%s2% joined the group chat",{balance:e.balance,s1:'',s2:"",tokens_plural:V.kX.pluralise("tokens",e.balance),username:e.displayName}),"")+''.concat((new Date).format("H:i:s"),"")+"
    ","service_join_group",t):this.addServiceMessage('
    '+''.concat((new Date).format("H:i:s"),"")+''.concat(__("%s1%%username% (Balance: %balance% %tokens_plural%)%s2% joined the group chat",{balance:e.balance,s1:'',s2:"",tokens_plural:V.kX.pluralise("tokens",e.balance),username:e.displayName}),"")+"
    ","service_join_group",t));this.addServiceMessage(''.concat((new Date).format("H:i:s")," ").concat(__("%username% has joined the ".concat(n," chat."),{username:"".concat(e.displayName,"")})),"service",t)}},n.prototype.userDisconnected=function(e,t,n,r){if(this.debug("userDisconnected",e.username),e.userId&&e.hasStream&&!e.isPerformer&&this.closeMemberCam(e),e.username!==this.userData.username&&(e.isPerformer||"private-chat"===t&&"moderator"!==e.role)){var i=chat.performerStatus;if("fullprivate"===i&&(i="full private"),e.isPerformer&&"private-chat"===t)switch(this.performerStatus){case"fullprivate":i="full private";break;case"group":i="group";break;default:i="private"}var o=G.A.getState(),a=o.chatInternalState,s=o.privateInitiatorUsername,c=o.isMobile,u=a.connectedUsersStatus[e.username];if(u&&(0,q.Dw)(e.username,""),"group"===i||"group"===r)return void(c?this.addServiceMessage('
    '+''.concat(__("%username% left the group chat",{username:''.concat(e.displayName,"")}),"")+''.concat((new Date).format("H:i:s"),"")+"
    ","service_left_group",t):this.addServiceMessage('
    '+''.concat((new Date).format("H:i:s"),"")+''.concat(__("%username% left the group chat",{username:''.concat(e.displayName,"")}),"")+"
    ","service_left_group",t));var l=s===e.username;this.addServiceMessage(''.concat((new Date).format("H:i:s")," ").concat(__("%username% has left the ".concat(u||i," chat after %time%"),{time:(0,To.Y)(n),username:"".concat(e.displayName,"")}),"."),"service ".concat("private"===i&&l?"__initiator":""),t),l&&(0,q.t7)(null)}},n.prototype.groupChatInvitation=function(e){var t=this,n=G.A.getState().isGroupChatInitialized;if((0,Vt.j)(e),this.debug("--- GroupChatInvitation",e),!e||e.users&&0===e.users.length)return(0,Wt.V)(!1),n&&(0,Gt.E)(!1),this.chatSettings.allowGroupChat&&No("#groupChatMinMembers").removeAttr("disabled"),No(".startGroupChatNow").remove(),void qt.c.instance.hide({key:"group"});No("#groupChatMinMembers").val(this.chatSettings.groupChatMinMembers),No("#groupChatMinMembers").attr("disabled","disabled"),(0,Gt.E)(!0);var r=void 0!==e.users.find((function(e){return e.u===t.userData.username}));(0,Wt.V)(r);var i=this.userData.isPerformer?this.userData.displayName:this.performerData.displayName;if(__("Group chat (%numready% of %numrequired% is ready)",{numready:e.users.length,numrequired:this.chatSettings.groupChatMinMembers}),this.userData.isPerformer)e.users.length>0&&' '.concat(__("Start group chat right now"),"");else{var o=e.users.length>=this.chatSettings.groupChatMinMembers;if("
    ".concat(o?__("Now that there are enough members, we are waiting for %modelname% to accept or decline the group chat invitation",{modelname:i}):__("Once %numrequired% members have agreed to participate %modelname% will be able to start the group chat",{modelname:i,numrequired:this.chatSettings.groupChatMinMembers}),"!"),"
    ".concat(__("Group show costs each participating member %price% tokens per minute!",{price:this.localData.groupChatTokensPerMinute})),this.userData.isLogged)!G.A.getState().isGroupChatInvited&&this.userData.isPayable?' '.concat(__("Click here")," ").concat(__("to add yourself to the group chat list"),"!"):this.userData.isPayable&&' '.concat(__("Click here")," ").concat(__("to remove yourself from group chat list"),"!")}},n.prototype.onBoost=function(e){window.chat.service.sendRaise(e||"","fb")},n.prototype.onRaise=function(e,t){if(this.service.sendRaise(t,"rm"),(0,wo.B)(!1,e),this.firstPlaceCountdown){var n=Number(No("#bFirstPlaceButton").data("base_fp_time"))||Yt.r;this.startOrIncreaseFirstPlaceCountdown(n)}},n.prototype.followerMutualMessage=function(e){var t=G.A.getState(),n=t.isMobile,r=t.isMobileApp,i=n&&!r,o=i?(0,zt.j)({text:__("Mutual following with %s1%%userName%%s2%",{s1:'',s2:"",userName:e})}):__("Mutual following with %username%.",{username:e}),a=i?"follow_plank":"friendConfirm";(0,jr.v)(),this.addServiceMessage(o,a)},n.prototype.setSize=function(){this.debug("setSize"),this.resizeWindow()},n.prototype.onRebootSecondsLeft=function(e){this.addServiceMessage(__("WARNING: Chat service is going for maintenance after %time%",{time:(0,To.Y)(1e3*e)}),"alert")},n.prototype.addDeferredMessage=function(e,t,n){var r=No("").css({height:1});this.addMessage(r,t),e.then((function(e){var i=No(e);r.replaceWith(i),n&&n(i),t.prepend(r),setTimeout((function(){r.remove()}),20),i.hasClass("msg_chat_game")&&Promise.all([a.e(11),a.e(468),a.e(672)]).then(a.bind(a,33968)).then((function(e){e.attachDoneBtnBlockEvents(i)})),r.remove()})).catch((function(e){return r.remove()}))},n.prototype.restoreVideoSize=function(){var e=G.A.getState(),t=(0,vn.oI)(e),n=(0,vn.zr)(e);if(t&&!n){var i=No(".video-panel"),o=window.isLandscape(),a=document.body.classList.contains("fullscreen"),s=r.q.isEnabled(L.i.MOBILE_EXTENDED_RESIZE);[[!1,!1],[!1,!0],[!0,!1],[!0,!0]].forEach((function(e){var t=e[0],n=e[1],r="height-".concat(t,"-").concat(n),c=parseFloat(localStorage.getItem((0,sn.K)("".concat(s,"-").concat(r))));Number.isFinite(c)&&(i.data(r,c),t===a&&n===o&&i.height(c))}))}},n}(ao);window.chat||(window.chat=new Io);var Oo=G.A.action((function(t,n){var r=t.layover;return{layover:(0,e.Cl)((0,e.Cl)({},r),{sex:n||xn.A.FEMALE})}})),Po=function(e,t){if(void 0===e&&(e=null),void 0===t&&(t=!0),!window.chat)throw Error("checkPrivateWrtc: Chat is not initialized");return t},Ro=a(38741),Do=a(41669),jo=0,xo=function(){var e,t,n=(0,De.jL)(),r=Date.now();if(ui())li(!0),(null===(e=mi.A.instance.player)||void 0===e?void 0:e.playing)&&chat.onVideoStreamLimit(!1),clearInterval(jo);else if(null===(t=mi.A.instance.player)||void 0===t?void 0:t.playing)if(n.todayFreeTimeStamp>0){var i=n.todayFreeTime,o=r-n.todayFreeTimeStamp;(0,De.jV)({todayFreeTime:o>2e3?i:i+o,todayFreeTimeStamp:r})}else(0,De.jV)({todayFreeTime:0,todayFreeTimeStamp:r})},Uo={initMediator:function(){var t=this,n=this,r=Do("#bChat");r.on("onPaidShowStart",(function(e,t){chat.performerData.isPrivateWrtc&&Ro.A.available&&("fullprivate"===t||Po(chat.userData.chathost))&&!G.A.getState().isAirPlay2Active&&(mi.A.instance.switchPlayer("webrtc",!0),hr.I.one("VideoPlayerEvent:fail",(function(){chat.isPaidShow()&&(console.warn("VideoPlayerEvent.FAIL","switch to fallback"),mi.A.instance.closeStream(),mi.A.instance.playStream())}))),mi.A.instance.playStream()})).on("onPaidShowStop",(function(e,t,i){mi.A.instance.closeStream(),i||(n.service.handlePaidShowStop(),Do("#bGotoVoyeur2").hide(),setTimeout((function(){r.triggerHandler("onPerformerStatusChange")}),500))})).on("onRoomClose",(function(e,t){window.chat.debug("[mediator] onRoomClose",t),clearInterval(jo),t.code&&(mi.A.instance.closeStream(),Do("#videoView").length&&Do("#videoView").attr("src","about:blank")),Do(".progressholder .progress").css({width:"100%"})})).on("onPerformerStatusChange",(function(){return(0,e.sH)(t,void 0,void 0,(function(){var t,r,i,o,s,c,u,l,d,f,h;return(0,e.YH)(this,(function(e){switch(e.label){case 0:if(t=n.performerStatus,n.debug("[mediator] onPerformerStatusChange",t),n.isPaidShow()&&(r="","offline"===t||"away"===t||"public"===t||"vip"===t)){switch(n.currentShowType){case"fullprivate":r="Full private chat has been stopped by %modelname%";break;case"private":r="Private chat has been stopped by %modelname%";break;case"group":r="Group chat has been stopped by %modelname%";break;case"voyeur":r="Spy mode has been stopped by %modelname%";break;case"vip":r="VIP Show has been stopped by %modelname%"}r=__(r,{modelname:"".concat(n.performerData.displayName,"")}),n.stopPaidShow(r)}return"moderator"===n.userData.role&&chat.paidShowId&&mi.A.instance.closeStream(),i=!Do.mobile&&-1!==["private","fullprivate","group"].indexOf(t),Do("#stream-container").removeAttr("class").addClass("stream-status-".concat(t)),Oo(n.performerData.sexType),i?[4,a.e(521).then(a.bind(a,54368)).then((function(e){return e.init(),e})).then((function(e){(0,e.isChromeCastStreamActive)()||ai.A.instance.hideLayover()}))]:[3,2];case 1:e.sent(),e.label=2;case 2:switch(Do("#bBuyVip").hide(),o=!0,(s=Do("#bPrivateLinkStart")).length&&(c=s.data("href-restore"))&&s.attr("href",c),t){case"away":mi.A.instance.closeStream(),n.clearButtonsState(),chat.dailyLimitExceeded||ai.A.instance.showLayover(t);break;case"fullprivate":case"private":n.acceptedPaidShow?("flash"===n.videoPlayerType&&"public"!==n.currentShowType||ai.A.instance.showLayover("voyeur"===n.currentShowType?"voyeur":t),o=!1):(mi.A.instance.closeStream(),n.clearButtonsState(),"private"===t&&(u=G.A.getState(),l=u.isAuthenticated,d=u.isMobile,s.data("href-restore",s.attr("href")),s.attr("href","#popupVoyeur").show(),l&&d&&Do("#private_btn_cell").show()),ai.A.instance.showLayover(t));break;case"group":f=G.A.getState().isGroupChatInvited,s.data("href-restore",s.attr("href")),s.attr("href","#popupGroup").show(),f?ai.A.instance.setLayoverWait(!0):(mi.A.instance.closeStream(),n.clearButtonsState()),"flash"===n.videoPlayerType&&"public"!==n.currentShowType||ai.A.instance.showLayover(t),o=!1;break;case"offline":mi.A.instance.closeStream(),n.clearButtonsState(),ai.A.instance.showLayover(t),o=!1;break;case"public":mi.A.instance.playStream();break;case"vip":n.userData.isVip?n.acceptedPaidShow?(ai.A.instance.hideLayover(),o=!1):(mi.A.instance.closeStream(),n.service.gotoVipShow()):(ai.A.instance.showLayover("vip"),Do("#bBuyVip").show(),mi.A.instance.closeStream(),n.clearButtonsState())}return"moderator"===n.userData.role&&"private"===(null===(h=n.performerData)||void 0===h?void 0:h.showId)&&-1!==["private","fullprivate","group","vip"].indexOf(t)?(n.paidShowId=n.performerData.showId,chat.performerData.isPrivateWrtc&&Ro.A.available&&("fullprivate"===t||Po(chat.userData.chathost))&&!G.A.getState().isAirPlay2Active&&(mi.A.instance.switchPlayer("webrtc",!0),hr.I.one("VideoPlayerEvent:fail",(function(){console.warn("VideoPlayerEvent.FAIL","switch to fallback"),mi.A.instance.closeStream(),mi.A.instance.playStream()}))),mi.A.instance.playStream()):i&&o&&ai.A.instance.showLayover(t),[2]}}))}))})).on("onBeforeGetRoom",(function(){ai.A.instance.hideLayover(),ai.A.instance.toggleVisibilitySocials(!1),ai.A.instance.removeDMCAContainer()})).on("onUserData",(function(){n.initLimits()})).on("onVideoStreamLimit",(function(){var e,t;Do.mobile&&Do("#bSignup2").show(),mi.A.instance.closeStream(),ai.A.instance.showLayover("limit",(null===(e=chat.performerData)||void 0===e?void 0:e.gender)||(null===(t=chat.localData)||void 0===t?void 0:t.gender))}))},initLimits:function(){var e;Co(),li(!1),this.localData.dailyRoomsLimit&&((e=(0,De.jL)().todayRooms).length>=chat.localData.dailyRoomsLimit?li(!0):-1===e.indexOf(chat.userData.chathost)&&(e.push(chat.userData.chathost),(0,De.jV)({todayRooms:e}))),this.localData.dailyMinutesLimit&&(clearInterval(jo),jo=window.setInterval(xo,1e3),xo())},checkFreeMessageLimit:function(){if(this.userData.isLogged&&"member"===this.userData.role&&"free"===this.userData.accessLevel)return r.q.isEnabled(L.i.FREE_MEMBER_CHAT)?this.chatSettings.allowFreeMemberChat||this.addServiceMessage("".concat(__("We are sorry but %s1%free%s2% members are temporarily muted by model.",{s1:'',s2:""})," ").concat(__("%a1%Buy some tokens%a2% and begin chatting with your favorite models!",{a1:'',a2:""})),"alert"):this.addServiceMessage("".concat(__("Members with GOLD status and higher can send messages.")," ").concat(__("%a1%Buy Tokens%a2% to get GOLD status and chat with models!",{a1:'',a2:""})),"alert"),!0;if(void 0!==this.localData.dailyMessagesLimit){var e=(0,De.jL)().todayMessages;if(e>=this.localData.dailyMessagesLimit)return this.onFreeChatMessageLimit(),!0;e++,(0,De.jV)({todayMessages:e})}return!1}};Do.extend(window.chat,Uo),I.apply(void 0,(0,e.fX)((0,e.fX)([],["DevCensor","DevServerErrorDetect","Notifications","RuntimeHandlers","ABStats","AccountDeletedPopup","BuyTokens","VolumeCookie"],!1),["Drawer","Popups","SecurityCenter","VisitHistory","MenuResize","LanguageSwitcher","SupportPage","SPA","FollowNotification","TagsPage","ProfileManager","PinModel","TubeChat","HeaderConfirmEmailAlert","CybersaleDiscount","JQMouseWheel","JQScrollPane","SocketAdapter","FollowWidget","TipModel","InstantMessaging","AdminChat","ChatHistoryScrollBtn","NewsIM","SpoofIM","TermsReminder","VideoCounter","FanBoostWidgetMember","FanBoostWidgetGuest","ConfirmEmail","ResetPassword","VipOverview","LoginForm","JoinForm","JoinPopup","RuntimeDebugger","ModeratorRoomHeaderTitle","InvisibleModeContextSwitch"],!1))}()}();