1"use strict";(self.webpackChunkbackroom_gatsby_starter=self.webpackChunkbackroom_gatsby_starter||[]).push([[7833],{5164:function(t,e,n){n.d(e,{N:function(){return b}});var r=n(4848),o=n(6540),s=n(9473),i=n(8601),c=n(675),u=n(6719),f=n(6995),l=n(5446);function a(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}function p(...t){return o.useCallback(function(...t){return e=>{let n=!1;const r=t.map(t=>{const r=a(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<r.length;e++){const n=r[e];"function"==typeof n?n():a(t[e],null)}}}}(...t),t)}class d extends o.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if((0,f.s)(e)&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){const t=e.offsetParent,n=(0,f.s)(t)&&t.offsetWidth||0,r=(0,f.s)(t)&&t.offsetHeight||0,o=getComputedStyle(e),s=this.props.sizeRef.current;s.height=parseFloat(o.height),s.width=parseFloat(o.width),s.top=e.offsetTop,s.left=e.offsetLeft,s.right=n-s.width-s.left,s.bottom=r-s.height-s.top,s.direction=o.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function h({children:t,isPresent:e,anchorX:n,anchorY:s,root:i,pop:c}){const u=(0,o.useId)(),f=(0,o.useRef)(null),a=(0,o.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:h}=(0,o.useContext)(l.Q),m=t.props?.ref??t?.ref,g=p(f,m);return(0,o.useInsertionEffect)(()=>{const{width:t,height:r,top:o,left:l,right:p,bottom:d,direction:m}=a.current;if(e||!1===c||!f.current||!t||!r)return;const g="rtl"===m,x="left"===n?g?`right: ${p}`:`left: ${l}`:g?`left: ${l}`:`right: ${p}`,C="bottom"===s?`bottom: ${d}`:`top: ${o}`;f.current.dataset.motionPopId=u;const E=document.createElement("style");h&&(E.nonce=h);const b=i??document.head;return b.appendChild(E),E.sheet&&E.sheet.insertRule(`\n [data-motion-pop-id="${u}"] {\n position: absolute !important;\n width: ${t}px !important;\n height: ${r}px !important;\n ${x}px !important;\n ${C}px !important;\n }\n `),()=>{f.current?.removeAttribute("data-motion-pop-id"),b.contains(E)&&b.removeChild(E)}},[e]),(0,r.jsx)(d,{isPresent:e,childRef:f,sizeRef:a,pop:c,children:!1===c?t:o.cloneElement(t,{ref:g})})}const m=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:f,presenceAffectsLayout:l,mode:a,anchorX:p,anchorY:d,root:m})=>{const x=(0,i.M)(g),C=(0,o.useId)(),E=(0,o.useRef)(n),b=(0,o.useRef)(s);(0,c.E)(()=>{E.current=n,b.current=s});let y=!0,w=(0,o.useMemo)(()=>(y=!1,{id:C,initial:e,isPresent:n,custom:f,onExitComplete:t=>{x.set(t,!0);for(const e of x.values())if(!e)return;s&&s()},register:t=>(x.set(t,!1),()=>{x.delete(t),!E.current&&!x.size&&b.current?.()})}),[n,x,s]);return l&&y&&(w={...w}),(0,o.useMemo)(()=>{x.forEach((t,e)=>x.set(e,!1))},[n]),o.useEffect(()=>{!n&&!x.size&&s&&s()},[n]),t=(0,r.jsx)(h,{pop:"popLayout"===a,isPresent:n,anchorX:p,anchorY:d,root:m,children:t}),(0,r.jsx)(u.t.Provider,{value:w,children:t})};function g(){return new Map}var x=n(9120);const C=t=>t.key||"";function E(t){const e=[];return o.Children.forEach(t,t=>{(0,o.isValidElement)(t)&&e.push(t)}),e}const b=({children:t,custom:e,initial:n=!0,onExitComplete:u,presenceAffectsLayout:f=!0,mode:l="sync",propagate:a=!1,anchorX:p="left",anchorY:d="top",root:h})=>{const[g,b]=(0,x.xQ)(a),y=(0,o.useMemo)(()=>E(t),[t]),w=a&&!g?[]:y.map(C),v=(0,o.useRef)(!0),P=(0,o.useRef)(y),R=(0,i.M)(()=>new Map),$=(0,o.useRef)(new Set),[k,M]=(0,o.useState)(y),[L,j]=(0,o.useState)(y);(0,c.E)(()=>{v.current=!1,P.current=y;for(let t=0;t<L.length;t++){const e=C(L[t]);w.includes(e)?(R.delete(e),$.current.delete(e)):!0!==R.get(e)&&R.set(e,!1)}},[L,w.length,w.join("-")]);const S=[];if(y!==k){let t=[...y];for(let e=0;e<L.length;e++){const n=L[e],r=C(n);w.includes(r)||(t.splice(e,0,n),S.push(n))}return"wait"===l&&S.length&&(t=S),j(E(t)),M(y),null}const{forceRender:I}=(0,o.useContext)(s.L);return(0,r.jsx)(r.Fragment,{children:L.map(t=>{const o=C(t),s=!(a&&!g)&&(y===L||w.includes(o));return(0,r.jsx)(m,{isPresent:s,initial:!(v.current&&!n)&&void 0,custom:e,presenceAffectsLayout:f,mode:l,root:h,onExitComplete:s?void 0:()=>
1{if($.current.has(o))return;if(!R.has(o))return;$.current.add(o),R.set(o,!0);let t=!0;R.forEach(e=>{e||(t=!1)}),t&&(I?.(),j(P.current),a&&b?.(),u&&u())},anchorX:p,anchorY:d,children:t},o)})})}},9120:function(t,e,n){n.d(e,{xQ:function(){return s}});var r=n(6540),o=n(6719);function s(t=!0){const e=(0,r.useContext)(o.t);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,c=(0,r.useId)();(0,r.useEffect)(()=>{if(t)return i(c)},[t]);const u=(0,r.useCallback)(()=>t&&s&&s(c),[c,s,t]);return!n&&s?[!1,u]:[!0]}},9473:function(t,e,n){n.d(e,{L:function(){return r}});const r=(0,n(6540).createContext)({})},5446:function(t,e,n){n.d(e,{Q:function(){return r}});const r=(0,n(6540).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},6719:function(t,e,n){n.d(e,{t:function(){return r}});const r=(0,n(6540).createContext)(null)},8601:function(t,e,n){n.d(e,{M:function(){return o}});var r=n(6540);function o(t){const e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},675:function(t,e,n){n.d(e,{E:function(){return o}});var r=n(6540);const o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},6995:function(t,e,n){n.d(e,{s:function(){return o}});var r=n(9359);function o(t){return(0,r.G)(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}},9359:function(t,e,n){n.d(e,{G:function(){return r}});const r=t=>"object"==typeof t&&null!==t}}]); 2//# sourceMappingURL=3119a1c97cde957e53072d86e7da2326bd6924dc-abbfd0284e7d233ab8d1.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.