"use strict";(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[44],{14039:function(n,e,t){t.d(e,{S:function(){return c},Z:function(){return i}});var r=t(96831),o=t(17402),u=function(){function n(n){var t=this;this._handlers={},this._handlersCounter=0,this.close=function(){var n;t.isOpen&&(null===(n=t._channel)||void 0===n||n.close(),delete e._channels[t._guid])},this.subscribe=function(n){var e=t._handlersCounter++;return t._handlers[e]=n,function(){delete t._handlers[e]}},this.postMessage=function(n){var e;t.isOpen&&(null===(e=t._channel)||void 0===e||e.postMessage(n))},this._onMessage=function(n){if(t.isOpen)for(var e in t._handlers)if(e in t._handlers){var r=t._handlers[e];if("function"==typeof r)try{r(null==n?void 0:n.data)}catch(n){console.error("[BroadcastChannel] callback catch",t._channelName,n)}}},this._channelName=n,this._guid=e.getChannelGUID(n),e.isSupport&&(this._channel=new BroadcastChannel(this._guid),this._channel.addEventListener("message",this._onMessage),e._channels[this._guid]=this,e.initGlobal())}var e;return Object.defineProperty(n,"isSupport",{get:function(){var n=(0,r.p)();return!!n&&"BroadcastChannel"in n.window},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isOpen",{get:function(){return!!this._channel},enumerable:!1,configurable:!0}),e=n,n._version="1",n._isAttached=!1,n._channels={},n.getChannelGUID=function(n){return"[".concat(e._version,"]_").concat(n)},n.getChannel=function(n){if(e.isSupport){var t=e.getChannelGUID(n);return e._channels[t]}},n.initGlobal=function(){if(!e._isAttached){var n=(0,r.p)();n&&n.window.addEventListener("beforeunload",(function(){for(var n in e._channels)if(n in e._channels){var t=e._channels[n];null==t||t.close()}}))}},n}(),i=function(n,e){var t=u.getChannel(n);t&&t.isOpen&&t.postMessage(e)},c=function(n){var e=n.name,t=n.handler,r=(0,o.useRef)();r.current||(r.current=new u(e));var i=r.current,c=!!(null==u?void 0:u.isSupport),a=!!(null==i?void 0:i.isOpen),f=(0,o.useRef)();return(0,o.useEffect)((function(){i&&(f.current=i.subscribe(t))}),[i,e,t]),{close:(0,o.useCallback)((function(){"function"==typeof f.current&&f.current()}),[]),isOpen:a,isSupport:c}}},26397:function(n,e,t){t.d(e,{A:function(){return f}});var r=t(93951),o=t(17402);if(14!=t.j)var u=t(96831);if(14!=t.j)var i=t(63067);var c=t(99353),a=t(56738),f=function(n,e){void 0===e&&(e=[]);var t=n.targetRef,f=n.debounceDelay,s=n.throttleDelay,l=void 0===s?30:s,v=n.isEnabled,d=void 0===v||v,h=(0,o.useRef)(n);h.current=(0,r._)({throttleDelay:l,isEnabled:d},n),(0,o.useEffect)((function(){var n=(0,u.p)();if(n&&d){var e=t?t.current:n.window;if(e){var r=!1,o=function(n,e){if(!r&&e.isEnabled){var t=e.handlerMap;if(t&&(0,i.r)(n.type,t)){var o=(t[n.type]||{}).handler;"function"==typeof o&&o(n,e)}}},s=o;f?s=(0,c.s)(o,f):l&&(s=(0,a.n)(o,l));var v=function(n){var e=h.current;if(!r&&e.isEnabled){var t=e.isStopPropagation,o=e.handlerMap;if(o&&(0,i.r)(n.type,o)){t&&n.stopPropagation();var u=(o[n.type]||{}).invokeHandler;if("function"==typeof u){var c=!1;if(u(n,e,(function(){return c=!0})),!c)return}s(n,e)}}},p=h.current.handlerMap;if(p){var m=Object.entries(p);return m.forEach((function(n){var t=n[0],r=n[1].eventOptions;e.addEventListener(t,v,r)})),function(){r=!0,m.forEach((function(n){var t=n[0];e.removeEventListener(t,v)}))}}}}}),(0,r.a)([f,d,t,l],e,!0))}},45709:function(n,e,t){t.d(e,{f:function(){return a}});var r=t(93951),o=t(17402),u=(t(9853),t(98442),t(15051),t(26397),t(80876)),i=(t(35363),t(95768),t(72140)),c=(t(99353),t(56738),function(n,e,t,r,o){return void 0===r&&(r=!0),void 0===o&&(o=1),(r?Math.abs(e-n):e-n)*o>=t}),a=function(n){var e=n.direction,t=n.distance,a=n.oppositeThreshold,f=void 0===a?50:a,s=n.time,l=n.isEnabled,v=void 0===l||l,d=n.onMove,h=Number.isFinite(t)?Math.abs(t):0,p=(0,o.useRef)([]),m=(0,o.useRef)(!1),y=(0,o.useRef)(!1),b=(0,o.useCallback)((function(){var n;p.current=(null===(n=p.current)||void 0===n?void 0:n.length)?[]:p.current}),[]),g=(0,o.useCallback)((function(){var n=p.current,t=m.current,r=y.current;if(!(t||r||n.length<2||"function"!=typeof d)){var o=n[0].position,u=n[n.length-1].position,i=c(o.y,u.y,h,"y"===e||"any"===e,"bottom-to-top"===e?-1:1),a=c(o.x,u.x,h,"x"===e||"any"===e,"right-to-left"===e?-1:1);switch(e){case"bottom-to-top":case"top-to-bottom":case"y":if(!i)return void(c(o.x,u.x,f)&&(m.current=!0));break;case"left-to-right":case"right-to-left":case"x":if(!a)return void(c(o.y,u.y,f)&&(m.current=!0));break;default:if(!a&&!i)return}y.current=!0,b(),d()}}),[e,h,d,f,b]),_=(0,o.useCallback)((function(n){void 0===n&&(n=Date.now());var e=m.current,t=y.current;if(e||t)b();else{var r=p.current,o=r.findIndex((function(e){var t=e.ts;return n-t<=s}));o>0?p.current=r.slice(-(r.length-o)):o<0&&b()}}),[b,s]);return(0,i.$)((0,r._)((0,r._)({throttleDelay:50},n.touchOptions),{isEnabled:v&&!!h,handleMove:function(n,e,t){var r=m.current,o=y.current;if(r||o)b();else{var u=Date.now();p.current.push({position:t,ts:u}),_(u),g()}},handler:function(n){((0,u.a)(n.type)||(0,u.b)(n.type))&&(b(),m.current=!1,y.current=!1)}})),{checkpointsRef:p,refreshPoints:_,detectMove:g}}},35363:function(n,e,t){t.d(e,{E:function(){return o}});var r=t(17402),o=globalThis.window?r.useLayoutEffect:r.useEffect},46025:function(n,e,t){t.d(e,{u:function(){return u}});var r=t(17402),o=t(35363),u=function(n){var e=(0,r.useRef)(n);e.current=n,(0,o.E)((function(){"function"==typeof e.current&&e.current()}),[])}},39992:function(n,e,t){t.d(e,{j:function(){return i}});var r=t(17402),o=t(96831);function u(n,e){if(!n)return null;var t=(0,o.p)();if(!t)return null;var r="string"==typeof e?[e]:e;if(!n||!n.classList||n===t.document.body)return null;try{for(var i=0,c=r;i