@articles-media/articles-dev-box 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/package.json +5 -1
  2. package/dist/Ad.cjs +0 -1
  3. package/dist/Ad.js +0 -600
  4. package/dist/AdConfirmExitModal-CKkMAvBK.js +0 -72
  5. package/dist/AdConfirmExitModal-CcSxmXKT.cjs +0 -1
  6. package/dist/AdDetailsModal-Bp5hZm9N.js +0 -83
  7. package/dist/AdDetailsModal-k840vrS2.cjs +0 -1
  8. package/dist/ArticlesAd.cjs +0 -1
  9. package/dist/ArticlesAd.js +0 -16
  10. package/dist/Button-0ZK0NKiK.cjs +0 -1
  11. package/dist/Button-_Quon8UV.js +0 -54
  12. package/dist/GameScoreboard.cjs +0 -1
  13. package/dist/GameScoreboard.js +0 -182
  14. package/dist/GlobalBody-BQ2qC81K.cjs +0 -33
  15. package/dist/GlobalBody-tmIC_GWn.js +0 -123
  16. package/dist/GlobalBody.cjs +0 -1
  17. package/dist/GlobalBody.js +0 -7
  18. package/dist/GlobalHead.cjs +0 -1
  19. package/dist/GlobalHead.js +0 -13
  20. package/dist/Modal-C9oYRgI1.js +0 -2073
  21. package/dist/Modal-Wmqy9fOm.cjs +0 -2
  22. package/dist/ReturnToLauncherButton.cjs +0 -1
  23. package/dist/ReturnToLauncherButton.js +0 -50
  24. package/dist/StatusModal-BlwaI-2B.cjs +0 -1
  25. package/dist/StatusModal-CAVxWCUq.js +0 -71
  26. package/dist/ViewUserModal.cjs +0 -1
  27. package/dist/ViewUserModal.js +0 -3189
  28. package/dist/articles-dev-box.css +0 -1
  29. package/dist/index-BlP2-uOi.cjs +0 -1
  30. package/dist/index-DLYx67wi.js +0 -2394
  31. package/dist/index-Ddv_TnxK.cjs +0 -6
  32. package/dist/index-YnD2EP-S.js +0 -43
  33. package/dist/index.cjs +0 -1
  34. package/dist/index.js +0 -20
  35. package/dist/jsx-runtime-nZSsnGb7.cjs +0 -6
  36. package/dist/jsx-runtime-tc70JA_2.js +0 -264
  37. package/dist/numberWithCommas-CRgrb58X.cjs +0 -1
  38. package/dist/numberWithCommas-DnAkiOFL.js +0 -1256
  39. package/dist/useUserDetails.cjs +0 -1
  40. package/dist/useUserDetails.js +0 -33
  41. package/dist/useUserToken.cjs +0 -1
  42. package/dist/useUserToken.js +0 -22
@@ -1,2 +0,0 @@
1
- "use strict";const K=require("./index-BlP2-uOi.cjs"),c=require("react"),he=require("react-dom"),k=require("./jsx-runtime-nZSsnGb7.cjs");function Zt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const z=Zt(c),ye=!!(typeof window<"u"&&window.document&&window.document.createElement);var Ue=!1,Ye=!1;try{var Pe={get passive(){return Ue=!0},get once(){return Ye=Ue=!0}};ye&&(window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,!0))}catch{}function Tt(e,t,n,r){if(r&&typeof r!="boolean"&&!Ye){var i=r.once,o=r.capture,a=n;!Ye&&i&&(a=n.__once||function u(p){this.removeEventListener(t,u,o),n.call(this,p)},n.__once=a),e.addEventListener(t,a,Ue?r:o)}e.addEventListener(t,n,r)}function Re(e){return e&&e.ownerDocument||document}function ze(e,t,n,r){var i=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}var Oe;function it(e){if((!Oe&&Oe!==0||e)&&ye){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Oe=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Oe}function Qt(){return c.useState(null)}function en(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e},[e]),t}function _e(e){const t=en(e);return c.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const st=e=>!e||typeof e=="function"?e:t=>{e.current=t};function tn(e,t){const n=st(e),r=st(t);return i=>{n&&n(i),r&&r(i)}}function Xe(e,t){return c.useMemo(()=>tn(e,t),[e,t])}function nn(e){const t=c.useRef(e);return t.current=e,t}function Ct(e){const t=nn(e);c.useEffect(()=>()=>t.current(),[])}function rn(e){var t=Re(e);return t&&t.defaultView||window}function on(e,t){return rn(e).getComputedStyle(e,t)}var sn=/([A-Z])/g;function an(e){return e.replace(sn,"-$1").toLowerCase()}var un=/^ms-/;function Se(e){return an(e).replace(un,"-ms-")}var cn=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function ln(e){return!!(e&&cn.test(e))}function fe(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(Se(t))||on(e).getPropertyValue(Se(t));Object.keys(t).forEach(function(i){var o=t[i];!o&&o!==0?e.style.removeProperty(Se(i)):ln(i)?r+=i+"("+o+") ":n+=Se(i)+": "+o+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}function be(e,t,n,r){return Tt(e,t,n,r),function(){ze(e,t,n,r)}}function fn(e,t,n,r){if(r===void 0&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}function dn(e){var t=fe(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function pn(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||fn(e,"transitionend",!0)},t+n),o=be(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),o()}}function Ot(e,t,n,r){n==null&&(n=dn(e)||0);var i=pn(e,n,r),o=be(e,"transitionend",t);return function(){i(),o()}}function Ae(e){e===void 0&&(e=Re());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function He(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}function St(){const e=c.useRef(!0),t=c.useRef(()=>e.current);return c.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function mn(e){const t=c.useRef(e);return t.current=e,t}function vn(e){const t=mn(e);c.useEffect(()=>()=>t.current(),[])}function En(e){const t=c.useRef(null);return c.useEffect(()=>{t.current=e}),t.current}function hn(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e},[e]),t}function ie(e){const t=hn(e);return c.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const yn="data-rr-ui-";function gn(e){return`${yn}${e}`}function xn(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const at=gn("modal-open");class Je{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return xn(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[r]:i.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(fe(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(at,""),fe(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(at),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const wt=c.createContext(ye?window:void 0);wt.Provider;function Ze(){return c.useContext(wt)}const ke=(e,t)=>ye?e==null?(t||Re()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function jt(e,t){const n=Ze(),[r,i]=c.useState(()=>ke(e,n?.document));if(!r){const o=ke(e);o&&i(o)}return c.useEffect(()=>{},[t,r]),c.useEffect(()=>{const o=ke(e);o!==r&&i(o)},[e,r]),r}const ut=e=>!e||typeof e=="function"?e:t=>{e.current=t};function bn(e,t){const n=ut(e),r=ut(t);return i=>{n&&n(i),r&&r(i)}}function Me(e,t){return c.useMemo(()=>bn(e,t),[e,t])}const Rn=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Tn=typeof document<"u",ct=Tn||Rn?c.useLayoutEffect:c.useEffect;function _t(e){return e.code==="Escape"||e.keyCode===27}function Cn(){const e=z.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function Te(e){if(!e||typeof e=="function")return null;const{major:t}=Cn();return t>=19?e.props.ref:e.ref}function On({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const o=c.useRef(null),a=c.useRef(t),u=ie(n);c.useEffect(()=>{t?a.current=!0:u(o.current)},[t,u]);const p=Me(o,Te(e)),m=c.cloneElement(e,{ref:p});return t?m:i||!a.current&&r?null:m}const Sn=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function wn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function jn(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:o,onExited:a,addEndListener:u,children:p}=e,m=wn(e,Sn);const v=c.useRef(null),y=Me(v,Te(p)),T=A=>l=>{A&&v.current&&A(v.current,l)},_=c.useCallback(T(t),[t]),D=c.useCallback(T(n),[n]),j=c.useCallback(T(r),[r]),$=c.useCallback(T(i),[i]),F=c.useCallback(T(o),[o]),V=c.useCallback(T(a),[a]),L=c.useCallback(T(u),[u]);return Object.assign({},m,{nodeRef:v},t&&{onEnter:_},n&&{onEntering:D},r&&{onEntered:j},i&&{onExit:$},o&&{onExiting:F},a&&{onExited:V},u&&{addEndListener:L},{children:typeof p=="function"?(A,l)=>p(A,Object.assign({},l,{ref:y})):c.cloneElement(p,{ref:y})})}const _n=["component"];function Mn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const Nn=z.forwardRef((e,t)=>{let{component:n}=e,r=Mn(e,_n);const i=jn(r);return k.jsxRuntimeExports.jsx(n,Object.assign({ref:t},i))});function Pn({in:e,onTransition:t}){const n=c.useRef(null),r=c.useRef(!0),i=ie(t);return ct(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),ct(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function An({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,a]=c.useState(!t);t&&o&&a(!1);const u=Pn({in:!!t,onTransition:m=>{const v=()=>{m.isStale()||(m.in?r?.(m.element,m.initial):(a(!0),n?.(m.element)))};Promise.resolve(i(m)).then(v,y=>{throw m.in||a(!0),y})}}),p=Me(u,Te(e));return o&&!t?null:c.cloneElement(e,{ref:p})}function Ve(e,t,n){return e?k.jsxRuntimeExports.jsx(Nn,Object.assign({},n,{component:e})):t?k.jsxRuntimeExports.jsx(An,Object.assign({},n,{transition:t})):k.jsxRuntimeExports.jsx(On,Object.assign({},n))}const kn=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function Dn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}let De;function In(e){return De||(De=new Je({ownerDocument:e?.document})),De}function Ln(e){const t=Ze(),n=e||In(t),r=c.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:c.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:c.useCallback(i=>{r.current.backdrop=i},[])})}const Mt=c.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:o,children:a,backdrop:u=!0,keyboard:p=!0,onBackdropClick:m,onEscapeKeyDown:v,transition:y,runTransition:T,backdropTransition:_,runBackdropTransition:D,autoFocus:j=!0,enforceFocus:$=!0,restoreFocus:F=!0,restoreFocusOptions:V,renderDialog:L,renderBackdrop:A=I=>k.jsxRuntimeExports.jsx("div",Object.assign({},I)),manager:l,container:U,onShow:G,onHide:Z=()=>{},onExit:se,onExited:Q,onExiting:ee,onEnter:ne,onEntering:re,onEntered:X}=e,ae=Dn(e,kn);const B=Ze(),H=jt(U),W=Ln(l),ue=St(),s=En(n),[d,g]=c.useState(!n),h=c.useRef(null);c.useImperativeHandle(t,()=>W,[W]),ye&&!s&&n&&(h.current=Ae(B?.document)),n&&d&&g(!1);const E=ie(()=>{if(W.add(),C.current=be(document,"keydown",S),w.current=be(document,"focus",()=>setTimeout(b),!0),G&&G(),j){var I,Ce;const ge=Ae((I=(Ce=W.dialog)==null?void 0:Ce.ownerDocument)!=null?I:B?.document);W.dialog&&ge&&!He(W.dialog,ge)&&(h.current=ge,W.dialog.focus())}}),O=ie(()=>{if(W.remove(),C.current==null||C.current(),w.current==null||w.current(),F){var I;(I=h.current)==null||I.focus==null||I.focus(V),h.current=null}});c.useEffect(()=>{!n||!H||E()},[n,H,E]),c.useEffect(()=>{d&&O()},[d,O]),vn(()=>{O()});const b=ie(()=>{if(!$||!ue()||!W.isTopModal())return;const I=Ae(B?.document);W.dialog&&I&&!He(W.dialog,I)&&W.dialog.focus()}),R=ie(I=>{I.target===I.currentTarget&&(m?.(I),u===!0&&Z())}),S=ie(I=>{p&&_t(I)&&W.isTopModal()&&(v?.(I),I.defaultPrevented||Z())}),w=c.useRef(),C=c.useRef(),q=(...I)=>{g(!0),Q?.(...I)};if(!H)return null;const f=Object.assign({role:r,ref:W.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},ae,{style:o,className:i,tabIndex:-1});let Y=L?L(f):k.jsxRuntimeExports.jsx("div",Object.assign({},f,{children:z.cloneElement(a,{role:"document"})}));Y=Ve(y,T,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:se,onExiting:ee,onExited:q,onEnter:ne,onEntering:re,onEntered:X,children:Y});let J=null;return u&&(J=A({ref:W.setBackdropRef,onClick:R}),J=Ve(_,D,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:J})),k.jsxRuntimeExports.jsx(k.jsxRuntimeExports.Fragment,{children:he.createPortal(k.jsxRuntimeExports.jsxs(k.jsxRuntimeExports.Fragment,{children:[J,Y]}),H)})});Mt.displayName="Modal";const $n=Object.assign(Mt,{Manager:Je});function Nt(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Fn(e,t){e.classList?e.classList.add(t):Nt(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}var Wn=Function.prototype.bind.call(Function.prototype.call,[].slice);function me(e,t){return Wn(e.querySelectorAll(t))}function lt(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Bn(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=lt(e.className,t):e.setAttribute("class",lt(e.className&&e.className.baseVal||"",t))}const ve={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class qn extends Je{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,fe(n,{[t]:`${parseFloat(fe(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],fe(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(Fn(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";me(n,ve.FIXED_CONTENT).forEach(o=>this.adjustAndStore(r,o,t.scrollBarWidth)),me(n,ve.STICKY_CONTENT).forEach(o=>this.adjustAndStore(i,o,-t.scrollBarWidth)),me(n,ve.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(i,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();Bn(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";me(n,ve.FIXED_CONTENT).forEach(o=>this.restore(r,o)),me(n,ve.STICKY_CONTENT).forEach(o=>this.restore(i,o)),me(n,ve.NAVBAR_TOGGLER).forEach(o=>this.restore(i,o))}}let Ie;function Un(e){return Ie||(Ie=new qn(e)),Ie}function Yn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ge(e,t){return Ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ge(e,t)}function zn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ge(e,t)}var we={exports:{}},je={exports:{}},N={};var ft;function Hn(){if(ft)return N;ft=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,D=e?Symbol.for("react.lazy"):60116,j=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,F=e?Symbol.for("react.responder"):60118,V=e?Symbol.for("react.scope"):60119;function L(l){if(typeof l=="object"&&l!==null){var U=l.$$typeof;switch(U){case t:switch(l=l.type,l){case p:case m:case r:case o:case i:case y:return l;default:switch(l=l&&l.$$typeof,l){case u:case v:case D:case _:case a:return l;default:return U}}case n:return U}}}function A(l){return L(l)===m}return N.AsyncMode=p,N.ConcurrentMode=m,N.ContextConsumer=u,N.ContextProvider=a,N.Element=t,N.ForwardRef=v,N.Fragment=r,N.Lazy=D,N.Memo=_,N.Portal=n,N.Profiler=o,N.StrictMode=i,N.Suspense=y,N.isAsyncMode=function(l){return A(l)||L(l)===p},N.isConcurrentMode=A,N.isContextConsumer=function(l){return L(l)===u},N.isContextProvider=function(l){return L(l)===a},N.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===t},N.isForwardRef=function(l){return L(l)===v},N.isFragment=function(l){return L(l)===r},N.isLazy=function(l){return L(l)===D},N.isMemo=function(l){return L(l)===_},N.isPortal=function(l){return L(l)===n},N.isProfiler=function(l){return L(l)===o},N.isStrictMode=function(l){return L(l)===i},N.isSuspense=function(l){return L(l)===y},N.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===r||l===m||l===o||l===i||l===y||l===T||typeof l=="object"&&l!==null&&(l.$$typeof===D||l.$$typeof===_||l.$$typeof===a||l.$$typeof===u||l.$$typeof===v||l.$$typeof===$||l.$$typeof===F||l.$$typeof===V||l.$$typeof===j)},N.typeOf=L,N}var P={};var dt;function Vn(){return dt||(dt=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,D=e?Symbol.for("react.lazy"):60116,j=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,F=e?Symbol.for("react.responder"):60118,V=e?Symbol.for("react.scope"):60119;function L(f){return typeof f=="string"||typeof f=="function"||f===r||f===m||f===o||f===i||f===y||f===T||typeof f=="object"&&f!==null&&(f.$$typeof===D||f.$$typeof===_||f.$$typeof===a||f.$$typeof===u||f.$$typeof===v||f.$$typeof===$||f.$$typeof===F||f.$$typeof===V||f.$$typeof===j)}function A(f){if(typeof f=="object"&&f!==null){var Y=f.$$typeof;switch(Y){case t:var J=f.type;switch(J){case p:case m:case r:case o:case i:case y:return J;default:var I=J&&J.$$typeof;switch(I){case u:case v:case D:case _:case a:return I;default:return Y}}case n:return Y}}}var l=p,U=m,G=u,Z=a,se=t,Q=v,ee=r,ne=D,re=_,X=n,ae=o,B=i,H=y,W=!1;function ue(f){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),s(f)||A(f)===p}function s(f){return A(f)===m}function d(f){return A(f)===u}function g(f){return A(f)===a}function h(f){return typeof f=="object"&&f!==null&&f.$$typeof===t}function E(f){return A(f)===v}function O(f){return A(f)===r}function b(f){return A(f)===D}function R(f){return A(f)===_}function S(f){return A(f)===n}function w(f){return A(f)===o}function C(f){return A(f)===i}function q(f){return A(f)===y}P.AsyncMode=l,P.ConcurrentMode=U,P.ContextConsumer=G,P.ContextProvider=Z,P.Element=se,P.ForwardRef=Q,P.Fragment=ee,P.Lazy=ne,P.Memo=re,P.Portal=X,P.Profiler=ae,P.StrictMode=B,P.Suspense=H,P.isAsyncMode=ue,P.isConcurrentMode=s,P.isContextConsumer=d,P.isContextProvider=g,P.isElement=h,P.isForwardRef=E,P.isFragment=O,P.isLazy=b,P.isMemo=R,P.isPortal=S,P.isProfiler=w,P.isStrictMode=C,P.isSuspense=q,P.isValidElementType=L,P.typeOf=A})()),P}var pt;function Pt(){return pt||(pt=1,process.env.NODE_ENV==="production"?je.exports=Hn():je.exports=Vn()),je.exports}var Le,mt;function Gn(){if(mt)return Le;mt=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},u=0;u<10;u++)a["_"+String.fromCharCode(u)]=u;var p=Object.getOwnPropertyNames(a).map(function(v){return a[v]});if(p.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(v){m[v]=v}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Le=i()?Object.assign:function(o,a){for(var u,p=r(o),m,v=1;v<arguments.length;v++){u=Object(arguments[v]);for(var y in u)t.call(u,y)&&(p[y]=u[y]);if(e){m=e(u);for(var T=0;T<m.length;T++)n.call(u,m[T])&&(p[m[T]]=u[m[T]])}}return p},Le}var $e,vt;function Qe(){if(vt)return $e;vt=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return $e=e,$e}var Fe,Et;function At(){return Et||(Et=1,Fe=Function.call.bind(Object.prototype.hasOwnProperty)),Fe}var We,ht;function Kn(){if(ht)return We;ht=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Qe(),n={},r=At();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,u,p,m){if(process.env.NODE_ENV!=="production"){for(var v in o)if(r(o,v)){var y;try{if(typeof o[v]!="function"){var T=Error((p||"React class")+": "+u+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}y=o[v](a,v,p,u,null,t)}catch(D){y=D}if(y&&!(y instanceof Error)&&e((p||"React class")+": type specification of "+u+" `"+v+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof y+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),y instanceof Error&&!(y.message in n)){n[y.message]=!0;var _=m?m():"";e("Failed "+u+" type: "+y.message+(_??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},We=i,We}var Be,yt;function Xn(){if(yt)return Be;yt=1;var e=Pt(),t=Gn(),n=Qe(),r=At(),i=Kn(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var p="Warning: "+u;typeof console<"u"&&console.error(p);try{throw new Error(p)}catch{}});function a(){return null}return Be=function(u,p){var m=typeof Symbol=="function"&&Symbol.iterator,v="@@iterator";function y(s){var d=s&&(m&&s[m]||s[v]);if(typeof d=="function")return d}var T="<<anonymous>>",_={array:F("array"),bigint:F("bigint"),bool:F("boolean"),func:F("function"),number:F("number"),object:F("object"),string:F("string"),symbol:F("symbol"),any:V(),arrayOf:L,element:A(),elementType:l(),instanceOf:U,node:Q(),objectOf:Z,oneOf:G,oneOfType:se,shape:ne,exact:re};function D(s,d){return s===d?s!==0||1/s===1/d:s!==s&&d!==d}function j(s,d){this.message=s,this.data=d&&typeof d=="object"?d:{},this.stack=""}j.prototype=Error.prototype;function $(s){if(process.env.NODE_ENV!=="production")var d={},g=0;function h(O,b,R,S,w,C,q){if(S=S||T,C=C||R,q!==n){if(p){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Y=S+":"+R;!d[Y]&&g<3&&(o("You are manually calling a React.PropTypes validation function for the `"+C+"` prop on `"+S+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),d[Y]=!0,g++)}}return b[R]==null?O?b[R]===null?new j("The "+w+" `"+C+"` is marked as required "+("in `"+S+"`, but its value is `null`.")):new j("The "+w+" `"+C+"` is marked as required in "+("`"+S+"`, but its value is `undefined`.")):null:s(b,R,S,w,C)}var E=h.bind(null,!1);return E.isRequired=h.bind(null,!0),E}function F(s){function d(g,h,E,O,b,R){var S=g[h],w=B(S);if(w!==s){var C=H(S);return new j("Invalid "+O+" `"+b+"` of type "+("`"+C+"` supplied to `"+E+"`, expected ")+("`"+s+"`."),{expectedType:s})}return null}return $(d)}function V(){return $(a)}function L(s){function d(g,h,E,O,b){if(typeof s!="function")return new j("Property `"+b+"` of component `"+E+"` has invalid PropType notation inside arrayOf.");var R=g[h];if(!Array.isArray(R)){var S=B(R);return new j("Invalid "+O+" `"+b+"` of type "+("`"+S+"` supplied to `"+E+"`, expected an array."))}for(var w=0;w<R.length;w++){var C=s(R,w,E,O,b+"["+w+"]",n);if(C instanceof Error)return C}return null}return $(d)}function A(){function s(d,g,h,E,O){var b=d[g];if(!u(b)){var R=B(b);return new j("Invalid "+E+" `"+O+"` of type "+("`"+R+"` supplied to `"+h+"`, expected a single ReactElement."))}return null}return $(s)}function l(){function s(d,g,h,E,O){var b=d[g];if(!e.isValidElementType(b)){var R=B(b);return new j("Invalid "+E+" `"+O+"` of type "+("`"+R+"` supplied to `"+h+"`, expected a single ReactElement type."))}return null}return $(s)}function U(s){function d(g,h,E,O,b){if(!(g[h]instanceof s)){var R=s.name||T,S=ue(g[h]);return new j("Invalid "+O+" `"+b+"` of type "+("`"+S+"` supplied to `"+E+"`, expected ")+("instance of `"+R+"`."))}return null}return $(d)}function G(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function d(g,h,E,O,b){for(var R=g[h],S=0;S<s.length;S++)if(D(R,s[S]))return null;var w=JSON.stringify(s,function(q,f){var Y=H(f);return Y==="symbol"?String(f):f});return new j("Invalid "+O+" `"+b+"` of value `"+String(R)+"` "+("supplied to `"+E+"`, expected one of "+w+"."))}return $(d)}function Z(s){function d(g,h,E,O,b){if(typeof s!="function")return new j("Property `"+b+"` of component `"+E+"` has invalid PropType notation inside objectOf.");var R=g[h],S=B(R);if(S!=="object")return new j("Invalid "+O+" `"+b+"` of type "+("`"+S+"` supplied to `"+E+"`, expected an object."));for(var w in R)if(r(R,w)){var C=s(R,w,E,O,b+"."+w,n);if(C instanceof Error)return C}return null}return $(d)}function se(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var d=0;d<s.length;d++){var g=s[d];if(typeof g!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(g)+" at index "+d+"."),a}function h(E,O,b,R,S){for(var w=[],C=0;C<s.length;C++){var q=s[C],f=q(E,O,b,R,S,n);if(f==null)return null;f.data&&r(f.data,"expectedType")&&w.push(f.data.expectedType)}var Y=w.length>0?", expected one of type ["+w.join(", ")+"]":"";return new j("Invalid "+R+" `"+S+"` supplied to "+("`"+b+"`"+Y+"."))}return $(h)}function Q(){function s(d,g,h,E,O){return X(d[g])?null:new j("Invalid "+E+" `"+O+"` supplied to "+("`"+h+"`, expected a ReactNode."))}return $(s)}function ee(s,d,g,h,E){return new j((s||"React class")+": "+d+" type `"+g+"."+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+E+"`.")}function ne(s){function d(g,h,E,O,b){var R=g[h],S=B(R);if(S!=="object")return new j("Invalid "+O+" `"+b+"` of type `"+S+"` "+("supplied to `"+E+"`, expected `object`."));for(var w in s){var C=s[w];if(typeof C!="function")return ee(E,O,b,w,H(C));var q=C(R,w,E,O,b+"."+w,n);if(q)return q}return null}return $(d)}function re(s){function d(g,h,E,O,b){var R=g[h],S=B(R);if(S!=="object")return new j("Invalid "+O+" `"+b+"` of type `"+S+"` "+("supplied to `"+E+"`, expected `object`."));var w=t({},g[h],s);for(var C in w){var q=s[C];if(r(s,C)&&typeof q!="function")return ee(E,O,b,C,H(q));if(!q)return new j("Invalid "+O+" `"+b+"` key `"+C+"` supplied to `"+E+"`.\nBad object: "+JSON.stringify(g[h],null," ")+`
2
- Valid keys: `+JSON.stringify(Object.keys(s),null," "));var f=q(R,C,E,O,b+"."+C,n);if(f)return f}return null}return $(d)}function X(s){switch(typeof s){case"number":case"string":case"undefined":return!0;case"boolean":return!s;case"object":if(Array.isArray(s))return s.every(X);if(s===null||u(s))return!0;var d=y(s);if(d){var g=d.call(s),h;if(d!==s.entries){for(;!(h=g.next()).done;)if(!X(h.value))return!1}else for(;!(h=g.next()).done;){var E=h.value;if(E&&!X(E[1]))return!1}}else return!1;return!0;default:return!1}}function ae(s,d){return s==="symbol"?!0:d?d["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&d instanceof Symbol:!1}function B(s){var d=typeof s;return Array.isArray(s)?"array":s instanceof RegExp?"object":ae(d,s)?"symbol":d}function H(s){if(typeof s>"u"||s===null)return""+s;var d=B(s);if(d==="object"){if(s instanceof Date)return"date";if(s instanceof RegExp)return"regexp"}return d}function W(s){var d=H(s);switch(d){case"array":case"object":return"an "+d;case"boolean":case"date":case"regexp":return"a "+d;default:return d}}function ue(s){return!s.constructor||!s.constructor.name?T:s.constructor.name}return _.checkPropTypes=i,_.resetWarningCache=i.resetWarningCache,_.PropTypes=_,_},Be}var qe,gt;function Jn(){if(gt)return qe;gt=1;var e=Qe();function t(){}function n(){}return n.resetWarningCache=t,qe=function(){function r(a,u,p,m,v,y){if(y!==e){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},qe}var xt;function Zn(){if(xt)return we.exports;if(xt=1,process.env.NODE_ENV!=="production"){var e=Pt(),t=!0;we.exports=Xn()(e.isElement,t)}else we.exports=Jn()();return we.exports}var Qn=Zn();const x=K.getDefaultExportFromCjs(Qn),bt={disabled:!1};var er=process.env.NODE_ENV!=="production"?x.oneOfType([x.number,x.shape({enter:x.number,exit:x.number,appear:x.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&x.oneOfType([x.string,x.shape({enter:x.string,exit:x.string,active:x.string}),x.shape({enter:x.string,enterDone:x.string,enterActive:x.string,exit:x.string,exitDone:x.string,exitActive:x.string})]);const kt=c.createContext(null);var tr=function(t){return t.scrollTop},xe="unmounted",ce="exited",oe="entering",le="entered",Ke="exiting",te=(function(e){zn(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,u=a&&!a.isMounting?r.enter:r.appear,p;return o.appearStatus=null,r.in?u?(p=ce,o.appearStatus=oe):p=le:r.unmountOnExit||r.mountOnEnter?p=xe:p=ce,o.state={status:p},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===xe?{status:ce}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==oe&&a!==le&&(o=oe):(a===oe||a===le)&&(o=Ke)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,u;return o=a=u=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,u=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:u}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===oe){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:he.findDOMNode(this);a&&tr(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ce&&this.setState({status:xe})},n.performEnter=function(i){var o=this,a=this.props.enter,u=this.context?this.context.isMounting:i,p=this.props.nodeRef?[u]:[he.findDOMNode(this),u],m=p[0],v=p[1],y=this.getTimeouts(),T=u?y.appear:y.enter;if(!i&&!a||bt.disabled){this.safeSetState({status:le},function(){o.props.onEntered(m)});return}this.props.onEnter(m,v),this.safeSetState({status:oe},function(){o.props.onEntering(m,v),o.onTransitionEnd(T,function(){o.safeSetState({status:le},function(){o.props.onEntered(m,v)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),u=this.props.nodeRef?void 0:he.findDOMNode(this);if(!o||bt.disabled){this.safeSetState({status:ce},function(){i.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:Ke},function(){i.props.onExiting(u),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:ce},function(){i.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(u){a&&(a=!1,o.nextCallback=null,i(u))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:he.findDOMNode(this),u=i==null&&!this.props.addEndListener;if(!a||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],m=p[0],v=p[1];this.props.addEndListener(m,v)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===xe)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var u=Yn(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return c.createElement(kt.Provider,{value:null},typeof a=="function"?a(i,u):c.cloneElement(c.Children.only(a),u))},t})(c.Component);te.contextType=kt;te.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:x.shape({current:typeof Element>"u"?x.any:function(e,t,n,r,i,o){var a=e[t];return x.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:x.oneOfType([x.func.isRequired,x.element.isRequired]).isRequired,in:x.bool,mountOnEnter:x.bool,unmountOnExit:x.bool,appear:x.bool,enter:x.bool,exit:x.bool,timeout:function(t){var n=er;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n.apply(void 0,[t].concat(i))},addEndListener:x.func,onEnter:x.func,onEntering:x.func,onEntered:x.func,onExit:x.func,onExiting:x.func,onExited:x.func}:{};function Ee(){}te.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ee,onEntering:Ee,onEntered:Ee,onExit:Ee,onExiting:Ee,onExited:Ee};te.UNMOUNTED=xe;te.EXITED=ce;te.ENTERING=oe;te.ENTERED=le;te.EXITING=Ke;function Rt(e,t){const n=fe(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function nr(e,t){const n=Rt(e,"transitionDuration"),r=Rt(e,"transitionDelay"),i=Ot(e,o=>{o.target===e&&(i(),t(o))},n+r)}function rr(e){e.offsetHeight}function Dt(e){return e&&"setState"in e?he.findDOMNode(e):e??null}const It=c.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:o,addEndListener:a,children:u,childRef:p,...m},v)=>{const y=c.useRef(null),T=Xe(y,p),_=U=>{T(Dt(U))},D=U=>G=>{U&&y.current&&U(y.current,G)},j=c.useCallback(D(e),[e]),$=c.useCallback(D(t),[t]),F=c.useCallback(D(n),[n]),V=c.useCallback(D(r),[r]),L=c.useCallback(D(i),[i]),A=c.useCallback(D(o),[o]),l=c.useCallback(D(a),[a]);return k.jsxRuntimeExports.jsx(te,{ref:v,...m,onEnter:j,onEntered:F,onEntering:$,onExit:V,onExited:A,onExiting:L,addEndListener:l,nodeRef:y,children:typeof u=="function"?(U,G)=>u(U,{...G,ref:_}):c.cloneElement(u,{ref:_})})});It.displayName="TransitionWrapper";const or={[oe]:"show",[le]:"show"},Ne=z.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},o)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},u=c.useCallback((p,m)=>{rr(p),r?.(p,m)},[r]);return k.jsxRuntimeExports.jsx(It,{ref:o,addEndListener:nr,...a,onEnter:u,childRef:Te(t),children:(p,m)=>z.cloneElement(t,{...m,className:K.classNames("fade",e,t.props.className,or[p],n[p])})})});Ne.displayName="Fade";const ir=["xxl","xl","lg","md","sm","xs"],sr="xs",et=z.createContext({prefixes:{},breakpoints:ir,minBreakpoint:sr}),{Consumer:pr,Provider:mr}=et;function de(e,t){const{prefixes:n}=c.useContext(et);return e||n[t]||t}function Lt(){const{dir:e}=c.useContext(et);return e==="rtl"}const $t=z.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=de(t,"modal-body"),k.jsxRuntimeExports.jsx(n,{ref:i,className:K.classNames(e,t),...r})));$t.displayName="ModalBody";const Ft=z.createContext({onHide(){}}),tt=z.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:o,children:a,scrollable:u,...p},m)=>{e=de(e,"modal");const v=`${e}-dialog`,y=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return k.jsxRuntimeExports.jsx("div",{...p,ref:m,className:K.classNames(v,t,i&&`${e}-${i}`,r&&`${v}-centered`,u&&`${v}-scrollable`,o&&y),children:k.jsxRuntimeExports.jsx("div",{className:K.classNames(`${e}-content`,n),children:a})})});tt.displayName="ModalDialog";const Wt=z.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=de(t,"modal-footer"),k.jsxRuntimeExports.jsx(n,{ref:i,className:K.classNames(e,t),...r})));Wt.displayName="ModalFooter";const ar={"aria-label":x.string,onClick:x.func,variant:x.oneOf(["white"])},nt=z.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>k.jsxRuntimeExports.jsx("button",{ref:i,type:"button",className:K.classNames("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));nt.displayName="CloseButton";nt.propTypes=ar;const Bt=z.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...o},a)=>{const u=c.useContext(Ft),p=_e(()=>{u?.onHide(),r?.()});return k.jsxRuntimeExports.jsxs("div",{ref:a,...o,children:[i,n&&k.jsxRuntimeExports.jsx(nt,{"aria-label":e,variant:t,onClick:p})]})});Bt.displayName="AbstractModalHeader";const qt=z.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},o)=>(e=de(e,"modal-header"),k.jsxRuntimeExports.jsx(Bt,{ref:o,...i,className:K.classNames(t,e),closeLabel:n,closeButton:r})));qt.displayName="ModalHeader";const ur=(e=>z.forwardRef((t,n)=>k.jsxRuntimeExports.jsx("div",{...t,ref:n,className:K.classNames(t.className,e)}))),cr=ur("h4"),Ut=z.forwardRef(({className:e,bsPrefix:t,as:n=cr,...r},i)=>(t=de(t,"modal-title"),k.jsxRuntimeExports.jsx(n,{ref:i,className:K.classNames(e,t),...r})));Ut.displayName="ModalTitle";function lr(e){return k.jsxRuntimeExports.jsx(Ne,{...e,timeout:null})}function fr(e){return k.jsxRuntimeExports.jsx(Ne,{...e,timeout:null})}const Yt=z.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:o,dialogAs:a=tt,"data-bs-theme":u,"aria-labelledby":p,"aria-describedby":m,"aria-label":v,show:y=!1,animation:T=!0,backdrop:_=!0,keyboard:D=!0,onEscapeKeyDown:j,onShow:$,onHide:F,container:V,autoFocus:L=!0,enforceFocus:A=!0,restoreFocus:l=!0,restoreFocusOptions:U,onEntered:G,onExit:Z,onExiting:se,onEnter:Q,onEntering:ee,onExited:ne,backdropClassName:re,manager:X,...ae},B)=>{const[H,W]=c.useState({}),[ue,s]=c.useState(!1),d=c.useRef(!1),g=c.useRef(!1),h=c.useRef(null),[E,O]=Qt(),b=Xe(B,O),R=_e(F),S=Lt();e=de(e,"modal");const w=c.useMemo(()=>({onHide:R}),[R]);function C(){return X||Un({isRTL:S})}function q(M){if(!ye)return;const pe=C().getScrollbarWidth()>0,ot=M.scrollHeight>Re(M).documentElement.clientHeight;W({paddingRight:pe&&!ot?it():void 0,paddingLeft:!pe&&ot?it():void 0})}const f=_e(()=>{E&&q(E.dialog)});Ct(()=>{ze(window,"resize",f),h.current==null||h.current()});const Y=()=>{d.current=!0},J=M=>{d.current&&E&&M.target===E.dialog&&(g.current=!0),d.current=!1},I=()=>{s(!0),h.current=Ot(E.dialog,()=>{s(!1)})},Ce=M=>{M.target===M.currentTarget&&I()},ge=M=>{if(_==="static"){Ce(M);return}if(g.current||M.target!==M.currentTarget){g.current=!1;return}F?.()},zt=M=>{D?j?.(M):(M.preventDefault(),_==="static"&&I())},Ht=(M,pe)=>{M&&q(M),Q?.(M,pe)},Vt=M=>{h.current==null||h.current(),Z?.(M)},Gt=(M,pe)=>{ee?.(M,pe),Tt(window,"resize",f)},Kt=M=>{M&&(M.style.display=""),ne?.(M),ze(window,"resize",f)},Xt=c.useCallback(M=>k.jsxRuntimeExports.jsx("div",{...M,className:K.classNames(`${e}-backdrop`,re,!T&&"show")}),[T,re,e]),rt={...n,...H};rt.display="block";const Jt=M=>k.jsxRuntimeExports.jsx("div",{role:"dialog",...M,style:rt,className:K.classNames(t,e,ue&&`${e}-static`,!T&&"show"),onClick:_?ge:void 0,onMouseUp:J,"data-bs-theme":u,"aria-label":v,"aria-labelledby":p,"aria-describedby":m,children:k.jsxRuntimeExports.jsx(a,{...ae,onMouseDown:Y,className:r,contentClassName:i,children:o})});return k.jsxRuntimeExports.jsx(Ft.Provider,{value:w,children:k.jsxRuntimeExports.jsx($n,{show:y,ref:b,backdrop:_,container:V,keyboard:!0,autoFocus:L,enforceFocus:A,restoreFocus:l,restoreFocusOptions:U,onEscapeKeyDown:zt,onShow:$,onHide:F,onEnter:Ht,onEntering:Gt,onEntered:G,onExit:Vt,onExiting:se,onExited:Kt,manager:C(),transition:T?lr:void 0,backdropTransition:T?fr:void 0,renderBackdrop:Xt,renderDialog:Jt})})});Yt.displayName="Modal";const dr=Object.assign(Yt,{Body:$t,Header:qt,Title:Ut,Footer:Wt,Dialog:tt,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});exports.Fade=Ne;exports.Modal=dr;exports.PropTypes=x;exports.contains=He;exports.getChildRef=Te;exports.hasClass=Nt;exports.isEscKey=_t;exports.listen=be;exports.ownerDocument=Re;exports.renderTransition=Ve;exports.safeFindDOMNode=Dt;exports.useBootstrapPrefix=de;exports.useEventCallback=ie;exports.useEventCallback$1=_e;exports.useIsRTL=Lt;exports.useMergedRefs=Me;exports.useMergedRefs$1=Xe;exports.useMounted=St;exports.useWaitForDOMRef=jt;exports.useWillUnmount=Ct;
@@ -1 +0,0 @@
1
- "use strict";const e=require("./jsx-runtime-nZSsnGb7.cjs"),s=require("./Button-0ZK0NKiK.cjs"),r=require("react");function u(){const[a,n]=r.useState(!1);if(r.useEffect(()=>{n(!0)},[]),!a)return null;const i=new URLSearchParams(window.location.search),o=Object.fromEntries(i);let{launcher_mode:t}=o;return t=t==="1",t?e.jsxRuntimeExports.jsxs(s.ArticlesButton,{className:"w-100",small:!0,style:{zIndex:10,position:"relative"},onClick:()=>{window.location.href="https://games.articles.media"},children:[e.jsxRuntimeExports.jsx("i",{className:"fad fa-gamepad"}),"Return to Games"]}):e.jsxRuntimeExports.jsxs(s.ArticlesButton,{className:"w-100",small:!0,style:{zIndex:10,position:"relative"},onClick:()=>{window.location.href="https://games.articles.media"},children:[e.jsxRuntimeExports.jsx("i",{className:"fad fa-gamepad"}),"View our other games"]})}module.exports=u;
@@ -1,50 +0,0 @@
1
- import { j as e } from "./jsx-runtime-tc70JA_2.js";
2
- import { A as s } from "./Button-_Quon8UV.js";
3
- import { useState as i, useEffect as l } from "react";
4
- function f() {
5
- const [a, r] = i(!1);
6
- if (l(() => {
7
- r(!0);
8
- }, []), !a)
9
- return null;
10
- const o = new URLSearchParams(window.location.search), n = Object.fromEntries(o);
11
- let { launcher_mode: t } = n;
12
- return t = t === "1", t ? /* @__PURE__ */ e.jsxs(
13
- s,
14
- {
15
- className: "w-100",
16
- small: !0,
17
- style: {
18
- zIndex: 10,
19
- position: "relative"
20
- },
21
- onClick: () => {
22
- window.location.href = "https://games.articles.media";
23
- },
24
- children: [
25
- /* @__PURE__ */ e.jsx("i", { className: "fad fa-gamepad" }),
26
- "Return to Games"
27
- ]
28
- }
29
- ) : /* @__PURE__ */ e.jsxs(
30
- s,
31
- {
32
- className: "w-100",
33
- small: !0,
34
- style: {
35
- zIndex: 10,
36
- position: "relative"
37
- },
38
- onClick: () => {
39
- window.location.href = "https://games.articles.media";
40
- },
41
- children: [
42
- /* @__PURE__ */ e.jsx("i", { className: "fad fa-gamepad" }),
43
- "View our other games"
44
- ]
45
- }
46
- );
47
- }
48
- export {
49
- f as default
50
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-nZSsnGb7.cjs"),j=require("react"),l=require("./Button-0ZK0NKiK.cjs"),S=require("./GlobalBody-BQ2qC81K.cjs"),t=require("./Modal-Wmqy9fOm.cjs");function g({show:h,setShow:u}){const[s,p]=j.useState(!1),[i,E]=j.useState(!1),c=(R,m,f)=>f?"...":m?m.response?.status||"Error":R?"200":"-",{data:r,error:n,isLoading:d}=S.useMainSiteStatus({disable:process.env.NODE_ENV!=="development"}),{data:a,error:o,isLoading:x}=S.useAuthSiteStatus({disable:process.env.NODE_ENV!=="development"});return e.jsxRuntimeExports.jsxs(t.Modal,{show:h,size:"md",className:"articles-modal",centered:!0,onHide:()=>u(!1),children:[e.jsxRuntimeExports.jsx(t.Modal.Header,{children:e.jsxRuntimeExports.jsx(t.Modal.Title,{children:"Status Details"})}),e.jsxRuntimeExports.jsxs(t.Modal.Body,{children:[e.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center mb-2",children:[e.jsxRuntimeExports.jsxs("h5",{className:"mb-0 me-2",children:["Main Site Status: ",c(r,n,d)]}),e.jsxRuntimeExports.jsxs(l.ArticlesButton,{variant:"link",size:"sm",className:"p-0",onClick:()=>p(!s),children:[s?"Hide":"View"," More"]})]}),s&&e.jsxRuntimeExports.jsxs("pre",{children:[d&&"Loading...",n&&`Error: ${n.message}`,r&&JSON.stringify(r,null,2)]}),e.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center mb-2",children:[e.jsxRuntimeExports.jsxs("h5",{className:"mb-0 me-2",children:["Auth Site Status: ",c(a,o,x)]}),e.jsxRuntimeExports.jsxs(l.ArticlesButton,{variant:"link",size:"sm",className:"p-0",onClick:()=>E(!i),children:[i?"Hide":"View"," More"]})]}),i&&e.jsxRuntimeExports.jsxs("pre",{children:[x&&"Loading...",o&&`Error: ${o.message}`,a&&JSON.stringify(a,null,2)]})]}),e.jsxRuntimeExports.jsx(t.Modal.Footer,{className:"justify-content-between",children:e.jsxRuntimeExports.jsx(l.ArticlesButton,{variant:"articles",onClick:()=>{u(!1)},children:"Close"})})]})}exports.default=g;
@@ -1,71 +0,0 @@
1
- import { j as e } from "./jsx-runtime-tc70JA_2.js";
2
- import { useState as h } from "react";
3
- import { A as o } from "./Button-_Quon8UV.js";
4
- import { u as g, a as E } from "./GlobalBody-tmIC_GWn.js";
5
- import { M as s } from "./Modal-C9oYRgI1.js";
6
- function A({
7
- show: f,
8
- setShow: d
9
- }) {
10
- const [t, x] = h(!1), [i, j] = h(!1), c = (p, S, N) => N ? "..." : S ? S.response?.status || "Error" : p ? "200" : "-", {
11
- data: a,
12
- error: r,
13
- isLoading: m
14
- } = g({
15
- disable: process.env.NODE_ENV !== "development"
16
- }), {
17
- data: n,
18
- error: l,
19
- isLoading: u
20
- } = E({
21
- disable: process.env.NODE_ENV !== "development"
22
- });
23
- return /* @__PURE__ */ e.jsxs(s, { show: f, size: "md", className: "articles-modal", centered: !0, onHide: () => d(!1), children: [
24
- /* @__PURE__ */ e.jsx(s.Header, { children: /* @__PURE__ */ e.jsx(s.Title, { children: "Status Details" }) }),
25
- /* @__PURE__ */ e.jsxs(s.Body, { children: [
26
- /* @__PURE__ */ e.jsxs("div", { className: "d-flex align-items-center mb-2", children: [
27
- /* @__PURE__ */ e.jsxs("h5", { className: "mb-0 me-2", children: [
28
- "Main Site Status: ",
29
- c(a, r, m)
30
- ] }),
31
- /* @__PURE__ */ e.jsxs(o, { variant: "link", size: "sm", className: "p-0", onClick: () => x(!t), children: [
32
- t ? "Hide" : "View",
33
- " More"
34
- ] })
35
- ] }),
36
- t && /* @__PURE__ */ e.jsxs("pre", { children: [
37
- m && "Loading...",
38
- r && `Error: ${r.message}`,
39
- a && JSON.stringify(a, null, 2)
40
- ] }),
41
- /* @__PURE__ */ e.jsxs("div", { className: "d-flex align-items-center mb-2", children: [
42
- /* @__PURE__ */ e.jsxs("h5", { className: "mb-0 me-2", children: [
43
- "Auth Site Status: ",
44
- c(n, l, u)
45
- ] }),
46
- /* @__PURE__ */ e.jsxs(o, { variant: "link", size: "sm", className: "p-0", onClick: () => j(!i), children: [
47
- i ? "Hide" : "View",
48
- " More"
49
- ] })
50
- ] }),
51
- i && /* @__PURE__ */ e.jsxs("pre", { children: [
52
- u && "Loading...",
53
- l && `Error: ${l.message}`,
54
- n && JSON.stringify(n, null, 2)
55
- ] })
56
- ] }),
57
- /* @__PURE__ */ e.jsx(s.Footer, { className: "justify-content-between", children: /* @__PURE__ */ e.jsx(
58
- o,
59
- {
60
- variant: "articles",
61
- onClick: () => {
62
- d(!1);
63
- },
64
- children: "Close"
65
- }
66
- ) })
67
- ] });
68
- }
69
- export {
70
- A as default
71
- };
@@ -1 +0,0 @@
1
- "use strict";const s=require("./jsx-runtime-nZSsnGb7.cjs"),x=require("react"),D=require("./numberWithCommas-CRgrb58X.cjs"),y=require("./Modal-Wmqy9fOm.cjs"),ne=require("./index-BlP2-uOi.cjs"),Qt=require("react-dom"),De=require("./index-Ddv_TnxK.cjs"),P=require("./Button-0ZK0NKiK.cjs");function Zt(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const Q=Zt(x);function ze(t,e){const r=+D.toDate(t)-+D.toDate(e);return r<0?-1:r>0?1:r}function es(t,e,r){const[n,i]=D.normalizeDates(r?.in,t,e),l=n.getFullYear()-i.getFullYear(),a=n.getMonth()-i.getMonth();return l*12+a}function ts(t,e){const r=D.toDate(t,e?.in);return r.setHours(23,59,59,999),r}function ss(t,e){const r=D.toDate(t,e?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function rs(t,e){const r=D.toDate(t,e?.in);return+ts(r,e)==+ss(r,e)}function ns(t,e,r){const[n,i,l]=D.normalizeDates(r?.in,t,t,e),a=ze(i,l),o=Math.abs(es(i,l));if(o<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-a*o);let c=ze(i,l)===-a;rs(n)&&o===1&&ze(n,l)===1&&(c=!1);const p=a*(o-+c);return p===0?0:p}function is(){const t=x.useRef(!0),e=x.useRef(()=>t.current);return x.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),e.current}const Ye=2**31-1;function kt(t,e,r){const n=r-Date.now();t.current=n<=Ye?setTimeout(e,n):setTimeout(()=>kt(t,e,r),Ye)}function as(){const t=is(),e=x.useRef();return y.useWillUnmount(()=>clearTimeout(e.current)),x.useMemo(()=>{const r=()=>clearTimeout(e.current);function n(i,l=0){t()&&(r(),l<=Ye?e.current=setTimeout(i,l):kt(e,i,Date.now()+l))}return{set:n,clear:r,handleRef:e}},[])}var qe,pt;function os(){if(pt)return qe;pt=1;var t=process.env.NODE_ENV!=="production",e=function(){};if(t){var r=function(i,l){var a=arguments.length;l=new Array(a>1?a-1:0);for(var o=1;o<a;o++)l[o-1]=arguments[o];var c=0,p="Warning: "+i.replace(/%s/g,function(){return l[c++]});typeof console<"u"&&console.error(p);try{throw new Error(p)}catch{}};e=function(n,i,l){var a=arguments.length;l=new Array(a>2?a-2:0);for(var o=2;o<a;o++)l[o-2]=arguments[o];if(i===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");n||r.apply(null,[i].concat(l))}}return qe=e,qe}var ls=os();const Mt=ne.getDefaultExportFromCjs(ls);function cs(t,e,r){var n=x.useRef(t!==void 0),i=x.useState(e),l=i[0],a=i[1],o=t!==void 0,c=n.current;return n.current=o,!o&&c&&l!==e&&a(e),[o?t:l,x.useCallback(function(p){for(var u=arguments.length,f=new Array(u>1?u-1:0),h=1;h<u;h++)f[h-1]=arguments[h];r&&r.apply(void 0,[p].concat(f)),a(p)},[r])]}function mt(){return x.useState(null)}var xt=Object.prototype.hasOwnProperty;function ft(t,e,r){for(r of t.keys())if(_e(r,e))return r}function _e(t,e){var r,n,i;if(t===e)return!0;if(t&&e&&(r=t.constructor)===e.constructor){if(r===Date)return t.getTime()===e.getTime();if(r===RegExp)return t.toString()===e.toString();if(r===Array){if((n=t.length)===e.length)for(;n--&&_e(t[n],e[n]););return n===-1}if(r===Set){if(t.size!==e.size)return!1;for(n of t)if(i=n,i&&typeof i=="object"&&(i=ft(e,i),!i)||!e.has(i))return!1;return!0}if(r===Map){if(t.size!==e.size)return!1;for(n of t)if(i=n[0],i&&typeof i=="object"&&(i=ft(e,i),!i)||!_e(n[1],e.get(i)))return!1;return!0}if(r===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(r===DataView){if((n=t.byteLength)===e.byteLength)for(;n--&&t.getInt8(n)===e.getInt8(n););return n===-1}if(ArrayBuffer.isView(t)){if((n=t.byteLength)===e.byteLength)for(;n--&&t[n]===e[n];);return n===-1}if(!r||typeof t=="object"){n=0;for(r in t)if(xt.call(t,r)&&++n&&!xt.call(e,r)||!(r in e)||!_e(t[r],e[r]))return!1;return Object.keys(e).length===n}}return t!==t&&e!==e}function ds(t){const e=y.useMounted();return[t[0],x.useCallback(r=>{if(e())return t[1](r)},[e,t[1]])]}var I="top",X="bottom",Y="right",V="left",Je="auto",Ce=[I,X,Y,V],je="start",Ae="end",us="clippingParents",$t="viewport",Ne="popper",ps="reference",ht=Ce.reduce(function(t,e){return t.concat([e+"-"+je,e+"-"+Ae])},[]),Bt=[].concat(Ce,[Je]).reduce(function(t,e){return t.concat([e,e+"-"+je,e+"-"+Ae])},[]),ms="beforeRead",xs="read",fs="afterRead",hs="beforeMain",vs="main",js="afterMain",gs="beforeWrite",Es="write",Rs="afterWrite",bs=[ms,xs,fs,hs,vs,js,gs,Es,Rs];function te(t){return t.split("-")[0]}function z(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function xe(t){var e=z(t).Element;return t instanceof e||t instanceof Element}function se(t){var e=z(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Qe(t){if(typeof ShadowRoot>"u")return!1;var e=z(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var me=Math.max,Le=Math.min,ge=Math.round;function Ke(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Lt(){return!/^((?!chrome|android).)*safari/i.test(Ke())}function Ee(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),i=1,l=1;e&&se(t)&&(i=t.offsetWidth>0&&ge(n.width)/t.offsetWidth||1,l=t.offsetHeight>0&&ge(n.height)/t.offsetHeight||1);var a=xe(t)?z(t):window,o=a.visualViewport,c=!Lt()&&r,p=(n.left+(c&&o?o.offsetLeft:0))/i,u=(n.top+(c&&o?o.offsetTop:0))/l,f=n.width/i,h=n.height/l;return{width:f,height:h,top:u,right:p+f,bottom:u+h,left:p,x:p,y:u}}function Ze(t){var e=Ee(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function Tt(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Qe(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ue(t){return t?(t.nodeName||"").toLowerCase():null}function ce(t){return z(t).getComputedStyle(t)}function ys(t){return["table","td","th"].indexOf(ue(t))>=0}function pe(t){return((xe(t)?t.ownerDocument:t.document)||window.document).documentElement}function Te(t){return ue(t)==="html"?t:t.assignedSlot||t.parentNode||(Qe(t)?t.host:null)||pe(t)}function vt(t){return!se(t)||ce(t).position==="fixed"?null:t.offsetParent}function ws(t){var e=/firefox/i.test(Ke()),r=/Trident/i.test(Ke());if(r&&se(t)){var n=ce(t);if(n.position==="fixed")return null}var i=Te(t);for(Qe(i)&&(i=i.host);se(i)&&["html","body"].indexOf(ue(i))<0;){var l=ce(i);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||e&&l.willChange==="filter"||e&&l.filter&&l.filter!=="none")return i;i=i.parentNode}return null}function ke(t){for(var e=z(t),r=vt(t);r&&ys(r)&&ce(r).position==="static";)r=vt(r);return r&&(ue(r)==="html"||ue(r)==="body"&&ce(r).position==="static")?e:r||ws(t)||e}function et(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Oe(t,e,r){return me(t,Le(e,r))}function Ns(t,e,r){var n=Oe(t,e,r);return n>r?r:n}function Ft(){return{top:0,right:0,bottom:0,left:0}}function Ut(t){return Object.assign({},Ft(),t)}function It(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var _s=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,Ut(typeof e!="number"?e:It(e,Ce))};function Os(t){var e,r=t.state,n=t.name,i=t.options,l=r.elements.arrow,a=r.modifiersData.popperOffsets,o=te(r.placement),c=et(o),p=[V,Y].indexOf(o)>=0,u=p?"height":"width";if(!(!l||!a)){var f=_s(i.padding,r),h=Ze(l),d=c==="y"?I:V,v=c==="y"?X:Y,j=r.rects.reference[u]+r.rects.reference[c]-a[c]-r.rects.popper[u],m=a[c]-r.rects.reference[c],R=ke(l),g=R?c==="y"?R.clientHeight||0:R.clientWidth||0:0,N=j/2-m/2,E=f[d],_=g-h[u]-f[v],w=g/2-h[u]/2+N,O=Oe(E,w,_),M=c;r.modifiersData[n]=(e={},e[M]=O,e.centerOffset=O-w,e)}}function Ss(t){var e=t.state,r=t.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||Tt(e.elements.popper,i)&&(e.elements.arrow=i))}const Ds={name:"arrow",enabled:!0,phase:"main",fn:Os,effect:Ss,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Re(t){return t.split("-")[1]}var As={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ps(t,e){var r=t.x,n=t.y,i=e.devicePixelRatio||1;return{x:ge(r*i)/i||0,y:ge(n*i)/i||0}}function jt(t){var e,r=t.popper,n=t.popperRect,i=t.placement,l=t.variation,a=t.offsets,o=t.position,c=t.gpuAcceleration,p=t.adaptive,u=t.roundOffsets,f=t.isFixed,h=a.x,d=h===void 0?0:h,v=a.y,j=v===void 0?0:v,m=typeof u=="function"?u({x:d,y:j}):{x:d,y:j};d=m.x,j=m.y;var R=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),N=V,E=I,_=window;if(p){var w=ke(r),O="clientHeight",M="clientWidth";if(w===z(r)&&(w=pe(r),ce(w).position!=="static"&&o==="absolute"&&(O="scrollHeight",M="scrollWidth")),w=w,i===I||(i===V||i===Y)&&l===Ae){E=X;var $=f&&w===_&&_.visualViewport?_.visualViewport.height:w[O];j-=$-n.height,j*=c?1:-1}if(i===V||(i===I||i===X)&&l===Ae){N=Y;var C=f&&w===_&&_.visualViewport?_.visualViewport.width:w[M];d-=C-n.width,d*=c?1:-1}}var k=Object.assign({position:o},p&&As),L=u===!0?Ps({x:d,y:j},z(r)):{x:d,y:j};if(d=L.x,j=L.y,c){var S;return Object.assign({},k,(S={},S[E]=g?"0":"",S[N]=R?"0":"",S.transform=(_.devicePixelRatio||1)<=1?"translate("+d+"px, "+j+"px)":"translate3d("+d+"px, "+j+"px, 0)",S))}return Object.assign({},k,(e={},e[E]=g?j+"px":"",e[N]=R?d+"px":"",e.transform="",e))}function Cs(t){var e=t.state,r=t.options,n=r.gpuAcceleration,i=n===void 0?!0:n,l=r.adaptive,a=l===void 0?!0:l,o=r.roundOffsets,c=o===void 0?!0:o,p={placement:te(e.placement),variation:Re(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,jt(Object.assign({},p,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,jt(Object.assign({},p,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const ks={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Cs,data:{}};var Me={passive:!0};function Ms(t){var e=t.state,r=t.instance,n=t.options,i=n.scroll,l=i===void 0?!0:i,a=n.resize,o=a===void 0?!0:a,c=z(e.elements.popper),p=[].concat(e.scrollParents.reference,e.scrollParents.popper);return l&&p.forEach(function(u){u.addEventListener("scroll",r.update,Me)}),o&&c.addEventListener("resize",r.update,Me),function(){l&&p.forEach(function(u){u.removeEventListener("scroll",r.update,Me)}),o&&c.removeEventListener("resize",r.update,Me)}}const $s={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ms,data:{}};var Bs={left:"right",right:"left",bottom:"top",top:"bottom"};function $e(t){return t.replace(/left|right|bottom|top/g,function(e){return Bs[e]})}var Ls={start:"end",end:"start"};function gt(t){return t.replace(/start|end/g,function(e){return Ls[e]})}function tt(t){var e=z(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function st(t){return Ee(pe(t)).left+tt(t).scrollLeft}function Ts(t,e){var r=z(t),n=pe(t),i=r.visualViewport,l=n.clientWidth,a=n.clientHeight,o=0,c=0;if(i){l=i.width,a=i.height;var p=Lt();(p||!p&&e==="fixed")&&(o=i.offsetLeft,c=i.offsetTop)}return{width:l,height:a,x:o+st(t),y:c}}function Fs(t){var e,r=pe(t),n=tt(t),i=(e=t.ownerDocument)==null?void 0:e.body,l=me(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=me(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-n.scrollLeft+st(t),c=-n.scrollTop;return ce(i||r).direction==="rtl"&&(o+=me(r.clientWidth,i?i.clientWidth:0)-l),{width:l,height:a,x:o,y:c}}function rt(t){var e=ce(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Vt(t){return["html","body","#document"].indexOf(ue(t))>=0?t.ownerDocument.body:se(t)&&rt(t)?t:Vt(Te(t))}function Se(t,e){var r;e===void 0&&(e=[]);var n=Vt(t),i=n===((r=t.ownerDocument)==null?void 0:r.body),l=z(n),a=i?[l].concat(l.visualViewport||[],rt(n)?n:[]):n,o=e.concat(a);return i?o:o.concat(Se(Te(a)))}function Ge(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Us(t,e){var r=Ee(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Et(t,e,r){return e===$t?Ge(Ts(t,r)):xe(e)?Us(e,r):Ge(Fs(pe(t)))}function Is(t){var e=Se(Te(t)),r=["absolute","fixed"].indexOf(ce(t).position)>=0,n=r&&se(t)?ke(t):t;return xe(n)?e.filter(function(i){return xe(i)&&Tt(i,n)&&ue(i)!=="body"}):[]}function Vs(t,e,r,n){var i=e==="clippingParents"?Is(t):[].concat(e),l=[].concat(i,[r]),a=l[0],o=l.reduce(function(c,p){var u=Et(t,p,n);return c.top=me(u.top,c.top),c.right=Le(u.right,c.right),c.bottom=Le(u.bottom,c.bottom),c.left=me(u.left,c.left),c},Et(t,a,n));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Wt(t){var e=t.reference,r=t.element,n=t.placement,i=n?te(n):null,l=n?Re(n):null,a=e.x+e.width/2-r.width/2,o=e.y+e.height/2-r.height/2,c;switch(i){case I:c={x:a,y:e.y-r.height};break;case X:c={x:a,y:e.y+e.height};break;case Y:c={x:e.x+e.width,y:o};break;case V:c={x:e.x-r.width,y:o};break;default:c={x:e.x,y:e.y}}var p=i?et(i):null;if(p!=null){var u=p==="y"?"height":"width";switch(l){case je:c[p]=c[p]-(e[u]/2-r[u]/2);break;case Ae:c[p]=c[p]+(e[u]/2-r[u]/2);break}}return c}function Pe(t,e){e===void 0&&(e={});var r=e,n=r.placement,i=n===void 0?t.placement:n,l=r.strategy,a=l===void 0?t.strategy:l,o=r.boundary,c=o===void 0?us:o,p=r.rootBoundary,u=p===void 0?$t:p,f=r.elementContext,h=f===void 0?Ne:f,d=r.altBoundary,v=d===void 0?!1:d,j=r.padding,m=j===void 0?0:j,R=Ut(typeof m!="number"?m:It(m,Ce)),g=h===Ne?ps:Ne,N=t.rects.popper,E=t.elements[v?g:h],_=Vs(xe(E)?E:E.contextElement||pe(t.elements.popper),c,u,a),w=Ee(t.elements.reference),O=Wt({reference:w,element:N,placement:i}),M=Ge(Object.assign({},N,O)),$=h===Ne?M:w,C={top:_.top-$.top+R.top,bottom:$.bottom-_.bottom+R.bottom,left:_.left-$.left+R.left,right:$.right-_.right+R.right},k=t.modifiersData.offset;if(h===Ne&&k){var L=k[i];Object.keys(C).forEach(function(S){var T=[Y,X].indexOf(S)>=0?1:-1,B=[I,X].indexOf(S)>=0?"y":"x";C[S]+=L[B]*T})}return C}function Ws(t,e){e===void 0&&(e={});var r=e,n=r.placement,i=r.boundary,l=r.rootBoundary,a=r.padding,o=r.flipVariations,c=r.allowedAutoPlacements,p=c===void 0?Bt:c,u=Re(n),f=u?o?ht:ht.filter(function(v){return Re(v)===u}):Ce,h=f.filter(function(v){return p.indexOf(v)>=0});h.length===0&&(h=f);var d=h.reduce(function(v,j){return v[j]=Pe(t,{placement:j,boundary:i,rootBoundary:l,padding:a})[te(j)],v},{});return Object.keys(d).sort(function(v,j){return d[v]-d[j]})}function Hs(t){if(te(t)===Je)return[];var e=$e(t);return[gt(t),e,gt(e)]}function zs(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var i=r.mainAxis,l=i===void 0?!0:i,a=r.altAxis,o=a===void 0?!0:a,c=r.fallbackPlacements,p=r.padding,u=r.boundary,f=r.rootBoundary,h=r.altBoundary,d=r.flipVariations,v=d===void 0?!0:d,j=r.allowedAutoPlacements,m=e.options.placement,R=te(m),g=R===m,N=c||(g||!v?[$e(m)]:Hs(m)),E=[m].concat(N).reduce(function(q,Z){return q.concat(te(Z)===Je?Ws(e,{placement:Z,boundary:u,rootBoundary:f,padding:p,flipVariations:v,allowedAutoPlacements:j}):Z)},[]),_=e.rects.reference,w=e.rects.popper,O=new Map,M=!0,$=E[0],C=0;C<E.length;C++){var k=E[C],L=te(k),S=Re(k)===je,T=[I,X].indexOf(L)>=0,B=T?"width":"height",U=Pe(e,{placement:k,boundary:u,rootBoundary:f,altBoundary:h,padding:p}),W=T?S?Y:V:S?X:I;_[B]>w[B]&&(W=$e(W));var de=$e(W),ie=[];if(l&&ie.push(U[L]<=0),o&&ie.push(U[W]<=0,U[de]<=0),ie.every(function(q){return q})){$=k,M=!1;break}O.set(k,ie)}if(M)for(var ae=v?3:1,be=function(Z){var oe=E.find(function(he){var K=O.get(he);if(K)return K.slice(0,Z).every(function(ye){return ye})});if(oe)return $=oe,"break"},A=ae;A>0;A--){var fe=be(A);if(fe==="break")break}e.placement!==$&&(e.modifiersData[n]._skip=!0,e.placement=$,e.reset=!0)}}const qs={name:"flip",enabled:!0,phase:"main",fn:zs,requiresIfExists:["offset"],data:{_skip:!1}};function Rt(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function bt(t){return[I,Y,X,V].some(function(e){return t[e]>=0})}function Xs(t){var e=t.state,r=t.name,n=e.rects.reference,i=e.rects.popper,l=e.modifiersData.preventOverflow,a=Pe(e,{elementContext:"reference"}),o=Pe(e,{altBoundary:!0}),c=Rt(a,n),p=Rt(o,i,l),u=bt(c),f=bt(p);e.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Ys={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Xs};function Ks(t,e,r){var n=te(t),i=[V,I].indexOf(n)>=0?-1:1,l=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,a=l[0],o=l[1];return a=a||0,o=(o||0)*i,[V,Y].indexOf(n)>=0?{x:o,y:a}:{x:a,y:o}}function Gs(t){var e=t.state,r=t.options,n=t.name,i=r.offset,l=i===void 0?[0,0]:i,a=Bt.reduce(function(u,f){return u[f]=Ks(f,e.rects,l),u},{}),o=a[e.placement],c=o.x,p=o.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=p),e.modifiersData[n]=a}const Js={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Gs};function Qs(t){var e=t.state,r=t.name;e.modifiersData[r]=Wt({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Zs={name:"popperOffsets",enabled:!0,phase:"read",fn:Qs,data:{}};function er(t){return t==="x"?"y":"x"}function tr(t){var e=t.state,r=t.options,n=t.name,i=r.mainAxis,l=i===void 0?!0:i,a=r.altAxis,o=a===void 0?!1:a,c=r.boundary,p=r.rootBoundary,u=r.altBoundary,f=r.padding,h=r.tether,d=h===void 0?!0:h,v=r.tetherOffset,j=v===void 0?0:v,m=Pe(e,{boundary:c,rootBoundary:p,padding:f,altBoundary:u}),R=te(e.placement),g=Re(e.placement),N=!g,E=et(R),_=er(E),w=e.modifiersData.popperOffsets,O=e.rects.reference,M=e.rects.popper,$=typeof j=="function"?j(Object.assign({},e.rects,{placement:e.placement})):j,C=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),k=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(w){if(l){var S,T=E==="y"?I:V,B=E==="y"?X:Y,U=E==="y"?"height":"width",W=w[E],de=W+m[T],ie=W-m[B],ae=d?-M[U]/2:0,be=g===je?O[U]:M[U],A=g===je?-M[U]:-O[U],fe=e.elements.arrow,q=d&&fe?Ze(fe):{width:0,height:0},Z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Ft(),oe=Z[T],he=Z[B],K=Oe(0,O[U],q[U]),ye=N?O[U]/2-ae-K-oe-C.mainAxis:be-K-oe-C.mainAxis,Fe=N?-O[U]/2+ae+K+he+C.mainAxis:A+K+he+C.mainAxis,F=e.elements.arrow&&ke(e.elements.arrow),ve=F?E==="y"?F.clientTop||0:F.clientLeft||0:0,we=(S=k?.[E])!=null?S:0,it=W+ye-we-ve,at=W+Fe-we,Ue=Oe(d?Le(de,it):de,W,d?me(ie,at):ie);w[E]=Ue,L[E]=Ue-W}if(o){var Ie,Ve=E==="x"?I:V,We=E==="x"?X:Y,ee=w[_],b=_==="y"?"height":"width",H=ee+m[Ve],ot=ee-m[We],He=[I,V].indexOf(R)!==-1,lt=(Ie=k?.[_])!=null?Ie:0,ct=He?H:ee-O[b]-M[b]-lt+C.altAxis,dt=He?ee+O[b]+M[b]-lt-C.altAxis:ot,ut=d&&He?Ns(ct,ee,dt):Oe(d?ct:H,ee,d?dt:ot);w[_]=ut,L[_]=ut-ee}e.modifiersData[n]=L}}const sr={name:"preventOverflow",enabled:!0,phase:"main",fn:tr,requiresIfExists:["offset"]};function rr(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function nr(t){return t===z(t)||!se(t)?tt(t):rr(t)}function ir(t){var e=t.getBoundingClientRect(),r=ge(e.width)/t.offsetWidth||1,n=ge(e.height)/t.offsetHeight||1;return r!==1||n!==1}function ar(t,e,r){r===void 0&&(r=!1);var n=se(e),i=se(e)&&ir(e),l=pe(e),a=Ee(t,i,r),o={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((ue(e)!=="body"||rt(l))&&(o=nr(e)),se(e)?(c=Ee(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):l&&(c.x=st(l))),{x:a.left+o.scrollLeft-c.x,y:a.top+o.scrollTop-c.y,width:a.width,height:a.height}}function or(t){var e=new Map,r=new Set,n=[];t.forEach(function(l){e.set(l.name,l)});function i(l){r.add(l.name);var a=[].concat(l.requires||[],l.requiresIfExists||[]);a.forEach(function(o){if(!r.has(o)){var c=e.get(o);c&&i(c)}}),n.push(l)}return t.forEach(function(l){r.has(l.name)||i(l)}),n}function lr(t){var e=or(t);return bs.reduce(function(r,n){return r.concat(e.filter(function(i){return i.phase===n}))},[])}function cr(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function dr(t){var e=t.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var yt={placement:"bottom",modifiers:[],strategy:"absolute"};function wt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function ur(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,i=e.defaultOptions,l=i===void 0?yt:i;return function(o,c,p){p===void 0&&(p=l);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},yt,l),modifiersData:{},elements:{reference:o,popper:c},attributes:{},styles:{}},f=[],h=!1,d={state:u,setOptions:function(R){var g=typeof R=="function"?R(u.options):R;j(),u.options=Object.assign({},l,u.options,g),u.scrollParents={reference:xe(o)?Se(o):o.contextElement?Se(o.contextElement):[],popper:Se(c)};var N=lr(dr([].concat(n,u.options.modifiers)));return u.orderedModifiers=N.filter(function(E){return E.enabled}),v(),d.update()},forceUpdate:function(){if(!h){var R=u.elements,g=R.reference,N=R.popper;if(wt(g,N)){u.rects={reference:ar(g,ke(N),u.options.strategy==="fixed"),popper:Ze(N)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(C){return u.modifiersData[C.name]=Object.assign({},C.data)});for(var E=0;E<u.orderedModifiers.length;E++){if(u.reset===!0){u.reset=!1,E=-1;continue}var _=u.orderedModifiers[E],w=_.fn,O=_.options,M=O===void 0?{}:O,$=_.name;typeof w=="function"&&(u=w({state:u,options:M,name:$,instance:d})||u)}}}},update:cr(function(){return new Promise(function(m){d.forceUpdate(),m(u)})}),destroy:function(){j(),h=!0}};if(!wt(o,c))return d;d.setOptions(p).then(function(m){!h&&p.onFirstUpdate&&p.onFirstUpdate(m)});function v(){u.orderedModifiers.forEach(function(m){var R=m.name,g=m.options,N=g===void 0?{}:g,E=m.effect;if(typeof E=="function"){var _=E({state:u,name:R,instance:d,options:N}),w=function(){};f.push(_||w)}})}function j(){f.forEach(function(m){return m()}),f=[]}return d}}const pr=ur({defaultModifiers:[Ys,Zs,ks,$s,Js,qs,sr,Ds]}),mr=["enabled","placement","strategy","modifiers"];function xr(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}const fr={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},hr={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:t})=>()=>{const{reference:e,popper:r}=t.elements;if("removeAttribute"in e){const n=(e.getAttribute("aria-describedby")||"").split(",").filter(i=>i.trim()!==r.id);n.length?e.setAttribute("aria-describedby",n.join(",")):e.removeAttribute("aria-describedby")}},fn:({state:t})=>{var e;const{popper:r,reference:n}=t.elements,i=(e=r.getAttribute("role"))==null?void 0:e.toLowerCase();if(r.id&&i==="tooltip"&&"setAttribute"in n){const l=n.getAttribute("aria-describedby");if(l&&l.split(",").indexOf(r.id)!==-1)return;n.setAttribute("aria-describedby",l?`${l},${r.id}`:r.id)}}},vr=[];function jr(t,e,r={}){let{enabled:n=!0,placement:i="bottom",strategy:l="absolute",modifiers:a=vr}=r,o=xr(r,mr);const c=x.useRef(a),p=x.useRef(),u=x.useCallback(()=>{var m;(m=p.current)==null||m.update()},[]),f=x.useCallback(()=>{var m;(m=p.current)==null||m.forceUpdate()},[]),[h,d]=ds(x.useState({placement:i,update:u,forceUpdate:f,attributes:{},styles:{popper:{},arrow:{}}})),v=x.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:m})=>{const R={},g={};Object.keys(m.elements).forEach(N=>{R[N]=m.styles[N],g[N]=m.attributes[N]}),d({state:m,styles:R,attributes:g,update:u,forceUpdate:f,placement:m.placement})}}),[u,f,d]),j=x.useMemo(()=>(_e(c.current,a)||(c.current=a),c.current),[a]);return x.useEffect(()=>{!p.current||!n||p.current.setOptions({placement:i,strategy:l,modifiers:[...j,v,fr]})},[l,i,v,n,j]),x.useEffect(()=>{if(!(!n||t==null||e==null))return p.current=pr(t,e,Object.assign({},o,{placement:i,strategy:l,modifiers:[...j,hr,v]})),()=>{p.current!=null&&(p.current.destroy(),p.current=void 0,d(m=>Object.assign({},m,{attributes:{},styles:{popper:{}}})))}},[n,t,e]),h}const Nt=()=>{};function gr(t){return t.button===0}function Er(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}const Be=t=>t&&("current"in t?t.current:t),_t={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Rr(t,e=Nt,{disabled:r,clickTrigger:n="click"}={}){const i=x.useRef(!1),l=x.useRef(!1),a=x.useCallback(p=>{const u=Be(t);Mt(!!u,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!u||Er(p)||!gr(p)||!!y.contains(u,p.target)||l.current,l.current=!1},[t]),o=y.useEventCallback(p=>{const u=Be(t);u&&y.contains(u,p.target)?l.current=!0:l.current=!1}),c=y.useEventCallback(p=>{i.current||e(p)});x.useEffect(()=>{var p,u;if(r||t==null)return;const f=y.ownerDocument(Be(t)),h=f.defaultView||window;let d=(p=h.event)!=null?p:(u=h.parent)==null?void 0:u.event,v=null;_t[n]&&(v=y.listen(f,_t[n],o,!0));const j=y.listen(f,n,a,!0),m=y.listen(f,n,g=>{if(g===d){d=void 0;return}c(g)});let R=[];return"ontouchstart"in f.documentElement&&(R=[].slice.call(f.body.children).map(g=>y.listen(g,"mousemove",Nt))),()=>{v?.(),j(),m(),R.forEach(g=>g())}},[t,r,n,a,o,c])}const br=()=>{};function yr(t,e,{disabled:r,clickTrigger:n}={}){const i=e||br;Rr(t,i,{disabled:r,clickTrigger:n});const l=y.useEventCallback(a=>{y.isEscKey(a)&&i(a)});x.useEffect(()=>{if(r||t==null)return;const a=y.ownerDocument(Be(t));let o=(a.defaultView||window).event;const c=y.listen(a,"keyup",p=>{if(p===o){o=void 0;return}l(p)});return()=>{c()}},[t,r,l])}function wr(t){const e={};return Array.isArray(t)?(t?.forEach(r=>{e[r.name]=r}),e):t||e}function Nr(t={}){return Array.isArray(t)?t:Object.keys(t).map(e=>(t[e].name=e,t[e]))}function _r({enabled:t,enableEvents:e,placement:r,flip:n,offset:i,fixed:l,containerPadding:a,arrowElement:o,popperConfig:c={}}){var p,u,f,h;const d=wr(c.modifiers);return Object.assign({},c,{placement:r,enabled:t,strategy:l?"fixed":c.strategy,modifiers:Nr(Object.assign({},d,{eventListeners:{enabled:e,options:(p=d.eventListeners)==null?void 0:p.options},preventOverflow:Object.assign({},d.preventOverflow,{options:Object.assign({padding:a},(u=d.preventOverflow)==null?void 0:u.options)}),offset:{options:Object.assign({offset:i},(f=d.offset)==null?void 0:f.options)},arrow:Object.assign({},d.arrow,{enabled:!!o,options:Object.assign({},(h=d.arrow)==null?void 0:h.options,{element:o})}),flip:Object.assign({enabled:!!n},d.flip)}))})}const Ht=Q.forwardRef((t,e)=>{const{flip:r,offset:n,placement:i,containerPadding:l,popperConfig:a={},transition:o,runTransition:c}=t,[p,u]=mt(),[f,h]=mt(),d=y.useMergedRefs(u,e),v=y.useWaitForDOMRef(t.container),j=y.useWaitForDOMRef(t.target),[m,R]=x.useState(!t.show),g=jr(j,p,_r({placement:i,enableEvents:!!t.show,containerPadding:l||5,flip:r,offset:n,arrowElement:f,popperConfig:a}));t.show&&m&&R(!1);const N=(...k)=>{R(!0),t.onExited&&t.onExited(...k)},E=t.show||!m;if(yr(p,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!E)return null;const{onExit:_,onExiting:w,onEnter:O,onEntering:M,onEntered:$}=t;let C=t.children(Object.assign({},g.attributes.popper,{style:g.styles.popper,ref:d}),{popper:g,placement:i,show:!!t.show,arrowProps:Object.assign({},g.attributes.arrow,{style:g.styles.arrow,ref:h})});return C=y.renderTransition(o,c,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:C,onExit:_,onExiting:w,onExited:N,onEnter:O,onEntering:M,onEntered:$}),v?Qt.createPortal(C,v):null});Ht.displayName="Overlay";const Or=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Sr=typeof document<"u",Dr=Sr||Or?x.useLayoutEffect:x.useEffect,zt=Q.forwardRef(({className:t,bsPrefix:e,as:r="div",...n},i)=>(e=y.useBootstrapPrefix(e,"popover-header"),s.jsxRuntimeExports.jsx(r,{ref:i,className:ne.classNames(t,e),...n})));zt.displayName="PopoverHeader";const nt=Q.forwardRef(({className:t,bsPrefix:e,as:r="div",...n},i)=>(e=y.useBootstrapPrefix(e,"popover-body"),s.jsxRuntimeExports.jsx(r,{ref:i,className:ne.classNames(t,e),...n})));nt.displayName="PopoverBody";function qt(t,e){let r=t;return t==="left"?r=e?"end":"start":t==="right"&&(r=e?"start":"end"),r}function Xt(t="absolute"){return{position:t,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const Yt=Q.forwardRef(({bsPrefix:t,placement:e="right",className:r,style:n,children:i,body:l,arrowProps:a,hasDoneInitialMeasure:o,popper:c,show:p,...u},f)=>{const h=y.useBootstrapPrefix(t,"popover"),d=y.useIsRTL(),[v]=e?.split("-")||[],j=qt(v,d);let m=n;return p&&!o&&(m={...n,...Xt(c?.strategy)}),s.jsxRuntimeExports.jsxs("div",{ref:f,role:"tooltip",style:m,"x-placement":v,className:ne.classNames(r,h,v&&`bs-popover-${j}`),...u,children:[s.jsxRuntimeExports.jsx("div",{className:"popover-arrow",...a}),l?s.jsxRuntimeExports.jsx(nt,{children:i}):i]})});Yt.displayName="Popover";const Ar=Object.assign(Yt,{Header:zt,Body:nt,POPPER_OFFSET:[0,8]}),Kt=Q.forwardRef(({bsPrefix:t,placement:e="right",className:r,style:n,children:i,arrowProps:l,hasDoneInitialMeasure:a,popper:o,show:c,...p},u)=>{t=y.useBootstrapPrefix(t,"tooltip");const f=y.useIsRTL(),[h]=e?.split("-")||[],d=qt(h,f);let v=n;return c&&!a&&(v={...n,...Xt(o?.strategy)}),s.jsxRuntimeExports.jsxs("div",{ref:u,style:v,role:"tooltip","x-placement":h,className:ne.classNames(r,t,`bs-tooltip-${d}`),...p,children:[s.jsxRuntimeExports.jsx("div",{className:"tooltip-arrow",...l}),s.jsxRuntimeExports.jsx("div",{className:`${t}-inner`,children:i})]})});Kt.displayName="Tooltip";const G=Object.assign(Kt,{TOOLTIP_OFFSET:[0,6]});function Pr(t){const e=x.useRef(null),r=y.useBootstrapPrefix(void 0,"popover"),n=y.useBootstrapPrefix(void 0,"tooltip"),i=x.useMemo(()=>({name:"offset",options:{offset:()=>{if(t)return t;if(e.current){if(y.hasClass(e.current,r))return Ar.POPPER_OFFSET;if(y.hasClass(e.current,n))return G.TOOLTIP_OFFSET}return[0,0]}}}),[t,r,n]);return[e,[i]]}function Cr(t,e){const{ref:r}=t,{ref:n}=e;t.ref=r.__wrapped||(r.__wrapped=i=>r(y.safeFindDOMNode(i))),e.ref=n.__wrapped||(n.__wrapped=i=>n(y.safeFindDOMNode(i)))}const Gt=Q.forwardRef(({children:t,transition:e=y.Fade,popperConfig:r={},rootClose:n=!1,placement:i="top",show:l=!1,...a},o)=>{const c=x.useRef({}),[p,u]=x.useState(null),[f,h]=Pr(a.offset),d=y.useMergedRefs$1(o,f),v=e===!0?y.Fade:e||void 0,j=y.useEventCallback$1(m=>{u(m),r==null||r.onFirstUpdate==null||r.onFirstUpdate(m)});return Dr(()=>{p&&a.target&&(c.current.scheduleUpdate==null||c.current.scheduleUpdate())},[p,a.target]),x.useEffect(()=>{l||u(null)},[l]),s.jsxRuntimeExports.jsx(Ht,{...a,ref:d,popperConfig:{...r,modifiers:h.concat(r.modifiers||[]),onFirstUpdate:j},transition:v,rootClose:n,placement:i,show:l,children:(m,{arrowProps:R,popper:g,show:N})=>{var E;Cr(m,R);const _=g?.placement,w=Object.assign(c.current,{state:g?.state,scheduleUpdate:g?.update,placement:_,outOfBoundaries:(g==null||(E=g.state)==null||(E=E.modifiersData.hide)==null?void 0:E.isReferenceHidden)||!1,strategy:r.strategy}),O=!!p;return typeof t=="function"?t({...m,placement:_,show:N,...!e&&N&&{className:"show"},popper:w,arrowProps:R,hasDoneInitialMeasure:O}):Q.cloneElement(t,{...m,placement:_,arrowProps:R,popper:w,hasDoneInitialMeasure:O,className:ne.classNames(t.props.className,!e&&N&&"show"),style:{...t.props.style,...m.style}})}})});Gt.displayName="Overlay";function kr(t){return t&&typeof t=="object"?t:{show:t,hide:t}}function Ot(t,e,r){const[n]=e,i=n.currentTarget,l=n.relatedTarget||n.nativeEvent[r];(!l||l!==i)&&!y.contains(i,l)&&t(...e)}y.PropTypes.oneOf(["click","hover","focus"]);const le=({trigger:t=["hover","focus"],overlay:e,children:r,popperConfig:n={},show:i,defaultShow:l=!1,onToggle:a,delay:o,placement:c,flip:p=c&&c.indexOf("auto")!==-1,...u})=>{const f=x.useRef(null),h=y.useMergedRefs$1(f,y.getChildRef(r)),d=as(),v=x.useRef(""),[j,m]=cs(i,l,a),R=kr(o),{onFocus:g,onBlur:N,onClick:E}=typeof r!="function"?Q.Children.only(r).props:{},_=B=>{h(y.safeFindDOMNode(B))},w=x.useCallback(()=>{if(d.clear(),v.current="show",!R.show){m(!0);return}d.set(()=>{v.current==="show"&&m(!0)},R.show)},[R.show,m,d]),O=x.useCallback(()=>{if(d.clear(),v.current="hide",!R.hide){m(!1);return}d.set(()=>{v.current==="hide"&&m(!1)},R.hide)},[R.hide,m,d]),M=x.useCallback((...B)=>{w(),g?.(...B)},[w,g]),$=x.useCallback((...B)=>{O(),N?.(...B)},[O,N]),C=x.useCallback((...B)=>{m(!j),E?.(...B)},[E,m,j]),k=x.useCallback((...B)=>{Ot(w,B,"fromElement")},[w]),L=x.useCallback((...B)=>{Ot(O,B,"toElement")},[O]),S=t==null?[]:[].concat(t),T={ref:_};return S.indexOf("click")!==-1&&(T.onClick=C),S.indexOf("focus")!==-1&&(T.onFocus=M,T.onBlur=$),S.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&Mt(S.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),T.onMouseOver=k,T.onMouseOut=L),s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[typeof r=="function"?r(T):x.cloneElement(r,T),s.jsxRuntimeExports.jsx(Gt,{...u,show:j,onHide:O,flip:p,placement:c,popperConfig:n,target:f.current,children:e})]})};function St(t){const{profile_photo:e,width:r,alt:n,hideDefault:i,activityStatus:l,user_id:a}=t;return e?.key?s.jsxRuntimeExports.jsxs("div",{"data-using-react-profile-photo":"true",className:`profile-photo-wrap ${r?"":"w-100 h-100"}`,style:{...r&&{width:r,height:r}},children:[s.jsxRuntimeExports.jsx(Dt,{activityStatus:l,user_id:a}),s.jsxRuntimeExports.jsx("img",{className:"w-100 h-100",src:`${process.env.NEXT_PUBLIC_CDN}${e.key}`,style:{objectFit:"contain"},alt:n||"Profile photo of a user"})]}):s.jsxRuntimeExports.jsxs("div",{"data-using-react-profile-photo":"true",className:ne.classNames("profile-photo-wrap",{"w-100 h-100":!r,"d-none":i}),style:{...r&&{width:r,height:r}},children:[s.jsxRuntimeExports.jsx(Dt,{activityStatus:l,user_id:a}),s.jsxRuntimeExports.jsx("img",{className:"w-100 h-100",src:`${process.env.NEXT_PUBLIC_CDN}profile_photos/starter/articles.jpg`,style:{objectFit:"contain"},alt:n||"Profile photo of a user"})]})}function Dt({activityStatus:t,user_id:e}){if(!(!t||!e))return s.jsxRuntimeExports.jsx("div",{"data-user_id":e,className:ne.classNames("online-status",{"status-online":t?.status=="Online"||e=="630f0b337c52851e754b03f7","status-offline":t?.status=="Offline","status-away":t?.status=="Away","activity-active":!1})})}const Mr=t=>(e,r,n)=>(n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,t(e,r,n)),$r=De.withMiddleware(De.useSWR,Mr),Br=t=>De.axios.get(t.url,{params:{user_id:t.user_id}}).then(e=>e.data),Lr={dedupingInterval:1e3*60*1,focusThrottleInterval:1e3*60*1},At=t=>{const{data:e,error:r,isLoading:n,isValidating:i,mutate:l}=$r(t?.user_id?{url:process.env.NODE_ENV==="development"?"http://localhost:3001/api/user-public/getUserDetails":"https://articles.media/api/user-public/getUserDetails",user_id:t.user_id}:null,Br,Lr);return{data:e,error:r,isLoading:n,isValidating:i,mutate:l}};function Xe({className:t,noOutline:e,children:r,inline:n}){const[l,a]=x.useState();if(x.useEffect(()=>{a(!0)},[]),r&&(!1)?.roles?.isDev&&l)return s.jsxRuntimeExports.jsx("div",{className:`is-dev-content ${e&&"no-outline"} ${t} ${n&&"d-inline-block"}`,children:r})}function Tr(t,e){let r=0;return Q.Children.map(t,n=>Q.isValidElement(n)?e(n,r++):n)}const Pt=1e3;function Fr(t,e,r){const n=(t-e)/(r-e)*100;return Math.round(n*Pt)/Pt}function Ct({min:t,now:e,max:r,label:n,visuallyHidden:i,striped:l,animated:a,className:o,style:c,variant:p,bsPrefix:u,...f},h){return s.jsxRuntimeExports.jsx("div",{ref:h,...f,role:"progressbar",className:ne.classNames(o,`${u}-bar`,{[`bg-${p}`]:p,[`${u}-bar-animated`]:a,[`${u}-bar-striped`]:a||l}),style:{width:`${Fr(e,t,r)}%`,...c},"aria-valuenow":e,"aria-valuemin":t,"aria-valuemax":r,children:i?s.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:n}):n})}const J=Q.forwardRef(({isChild:t=!1,...e},r)=>{const n={min:0,max:100,animated:!1,visuallyHidden:!1,striped:!1,...e};if(n.bsPrefix=y.useBootstrapPrefix(n.bsPrefix,"progress"),t)return Ct(n,r);const{min:i,now:l,max:a,label:o,visuallyHidden:c,striped:p,animated:u,bsPrefix:f,variant:h,className:d,children:v,...j}=n;return s.jsxRuntimeExports.jsx("div",{ref:r,...j,className:ne.classNames(d,f),children:v?Tr(v,m=>x.cloneElement(m,{isChild:!0})):Ct({min:i,now:l,max:a,label:o,visuallyHidden:c,striped:p,animated:u,bsPrefix:f,variant:h},r)})});J.displayName="ProgressBar";const re={SIGN_IN:"/login",SIGN_UP:"/signup",HOME:"/",PROPOSALS:"/politics/proposals",PROPOSALS_SUBMISSIONS_ALL:"/politics/proposals/submissions",STORIES:"/news/stories",ISSUES:"/news/issues",MYTHS:"/news/myths"};function Ur({activeLayoutProposalSentiments:t,populated_user:e,usersProposalSentiments:r,setShowFullStanceDetails:n,showFullStanceDetails:i,userData:l}){return s.jsxRuntimeExports.jsx("div",{className:"row mx-0 mb-2",children:[{name:`${e?.display_name||l.display_name}`,data:t||{}},{name:"You",data:r||{}}].map(a=>a.name=="You"?s.jsxRuntimeExports.jsx("div",{className:"col-lg-6 px-1",children:s.jsxRuntimeExports.jsxs("div",{className:"card card-articles card-sm h-100",children:[s.jsxRuntimeExports.jsx("div",{className:"card-header",children:s.jsxRuntimeExports.jsx("b",{children:a.name})}),s.jsxRuntimeExports.jsx("div",{className:"card-body p-2",children:s.jsxRuntimeExports.jsx("small",{children:"Login or create an account to compare your political stance with this user!"})}),s.jsxRuntimeExports.jsxs("div",{className:"card-footer",children:[s.jsxRuntimeExports.jsx(D.Link,{href:re.SIGN_IN,children:s.jsxRuntimeExports.jsx(P.ArticlesButton,{small:!0,className:"",children:"Sign In"})}),s.jsxRuntimeExports.jsx(D.Link,{href:re.SIGN_UP,children:s.jsxRuntimeExports.jsx(P.ArticlesButton,{small:!0,className:"",children:"Sign Up"})})]})]})},a.name):s.jsxRuntimeExports.jsx("div",{className:"col-lg-6 px-1",children:s.jsxRuntimeExports.jsxs("div",{className:"card card-articles card-sm",children:[s.jsxRuntimeExports.jsx("div",{className:"card-header",onClick:()=>{console.log(a.data)},children:s.jsxRuntimeExports.jsx("b",{children:a.name})}),s.jsxRuntimeExports.jsxs("div",{className:"card-body py-2 px-2 small",children:[s.jsxRuntimeExports.jsxs("div",{className:"",children:[s.jsxRuntimeExports.jsxs("div",{className:"small",children:["Fundamental: ",a?.data?.fundamental?.filter(o=>a.data?.user_sentiments?.find(c=>c.proposal_id==o._id)?o:null).length,"/",a?.data?.fundamental?.length]}),s.jsxRuntimeExports.jsx(J,{striped:!0,variant:"dark",className:"shadow-articles mb-2",now:(a.data?.fundamental?.filter(o=>a.data?.user_sentiments?.find(c=>c.proposal_id==o._id)?o:null).length/a.data?.fundamental?.length*100).toFixed(2),label:`${(a.data?.fundamental?.filter(o=>a.data?.user_sentiments?.find(c=>c.proposal_id==o._id)?o:null).length/a.data?.fundamental?.length*100).toFixed(2)}%`}),s.jsxRuntimeExports.jsxs(J,{className:"shadow-articles mb-2",style:{height:"10px"},children:[s.jsxRuntimeExports.jsx(J,{striped:!0,variant:"danger",now:(a.data?.user_sentiments?.filter(o=>o.sentiment_status=="Disagree"&&o.populated_proposal.fundamental)?.length/a.data?.fundamental?.length*100).toFixed(2)}),s.jsxRuntimeExports.jsx(J,{striped:!0,variant:"warning",now:(a.data?.user_sentiments?.filter(o=>o.sentiment_status=="Needs Work"&&o.populated_proposal.fundamental)?.length/a.data?.fundamental?.length*100).toFixed(2)}),s.jsxRuntimeExports.jsx(J,{striped:!0,variant:"success",now:(a.data?.user_sentiments?.filter(o=>o.sentiment_status=="Agree"&&o.populated_proposal.fundamental)?.length/a.data?.fundamental?.length*100).toFixed(2)})]}),s.jsxRuntimeExports.jsxs("div",{className:"",children:["Disagree: ",a.data?.user_sentiments?.filter(o=>{let c=a.data?.fundamental.find(p=>p._id==o.proposal_id);return o.sentiment_status=="Disagree"&&c})?.length||0]}),s.jsxRuntimeExports.jsxs("div",{className:"",children:["Needs Work: ",a.data?.user_sentiments?.filter(o=>{let c=a.data?.fundamental.find(p=>p._id==o.proposal_id);return o.sentiment_status=="Needs Work"&&c})?.length||0]}),s.jsxRuntimeExports.jsxs("div",{className:"mb-2",children:["Agree: ",a.data?.user_sentiments?.filter(o=>{let c=a.data?.fundamental.find(p=>p._id==o.proposal_id);return o.sentiment_status=="Agree"&&c})?.length||0]})]}),!i&&s.jsxRuntimeExports.jsx("span",{onClick:()=>n(!0),className:"badge bg-articles-secondary shadow-articles badge-hover",children:"View More"}),i&&s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx("hr",{}),s.jsxRuntimeExports.jsxs("div",{className:"mb-2",children:[s.jsxRuntimeExports.jsxs("div",{className:"small",children:["All: ",a.data?.user_sentiments?.length,"/",a.data?.total]}),s.jsxRuntimeExports.jsx(J,{striped:!0,animated:!0,variant:"dark",className:"shadow-articles mb-1",now:(a.data?.user_sentiments?.length/a.data?.total*100).toFixed(2),label:`${(a.data?.user_sentiments?.length/a.data?.total*100).toFixed(2)}%`}),s.jsxRuntimeExports.jsxs(J,{className:"shadow-articles mb-2",style:{height:"10px"},children:[s.jsxRuntimeExports.jsx(J,{striped:!0,animated:!0,variant:"danger",now:(a.data?.user_sentiments?.filter(o=>o.sentiment_status=="Disagree")?.length/a.data?.total*100).toFixed(2)}),s.jsxRuntimeExports.jsx(J,{striped:!0,animated:!0,variant:"warning",now:(a.data?.user_sentiments?.filter(o=>o.sentiment_status=="Needs Work")?.length/a.data?.total*100).toFixed(2)}),s.jsxRuntimeExports.jsx(J,{striped:!0,animated:!0,variant:"success",now:(a.data?.user_sentiments?.filter(o=>o.sentiment_status=="Agree")?.length/a.data?.total*100).toFixed(2)})]}),s.jsxRuntimeExports.jsxs("div",{className:"",children:["Disagree: ",a.data?.user_sentiments?.filter(o=>o.sentiment_status=="Disagree")?.length||0]}),s.jsxRuntimeExports.jsxs("div",{className:"",children:["Needs Work: ",a.data?.user_sentiments?.filter(o=>o.sentiment_status=="Needs Work")?.length||0]}),s.jsxRuntimeExports.jsxs("div",{className:"mb-2",children:["Agree: ",a.data?.user_sentiments?.filter(o=>o.sentiment_status=="Agree")?.length||0]})]}),s.jsxRuntimeExports.jsx("hr",{}),s.jsxRuntimeExports.jsx("p",{className:"mb-0",children:s.jsxRuntimeExports.jsxs("div",{className:"row",children:[s.jsxRuntimeExports.jsx("div",{className:"col-9",children:"Comments"}),s.jsxRuntimeExports.jsx("div",{className:"col-3",children:s.jsxRuntimeExports.jsx("b",{children:a.data?.user_comments?.length||0})}),s.jsxRuntimeExports.jsx("div",{className:"col-9",children:"Submissions"}),s.jsxRuntimeExports.jsx("div",{className:"col-3",children:s.jsxRuntimeExports.jsx("b",{children:a.data?.user_submissions})})]})})]})]})]})},a.name))})}function Ir({activeLayoutProposalSentiments:t}){return s.jsxRuntimeExports.jsx("div",{children:t.user_comments?.filter(e=>!e.parent_id).map(e=>s.jsxRuntimeExports.jsxs("div",{className:"card card-articles card-sm border mb-2",children:[s.jsxRuntimeExports.jsxs("div",{className:"card-header small",children:["Commented on ",s.jsxRuntimeExports.jsx("b",{children:e.populated_proposal.title})]}),s.jsxRuntimeExports.jsx("div",{className:"card-body small p-2",children:s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsx("span",{className:"small",children:D.format(new Date(e.date),"M/dd/yy")}),s.jsxRuntimeExports.jsx("div",{children:e.comment})]})}),s.jsxRuntimeExports.jsx("div",{className:"card-footer",children:s.jsxRuntimeExports.jsx(D.Link,{prefetch:!1,href:`${re.PROPOSALS}/${e.populated_proposal.url}?interaction_id=${e._id}`,children:s.jsxRuntimeExports.jsx(P.ArticlesButton,{small:!0,children:"View"})})})]},e._id))})}function Vr({activeLayoutProposalSentiments:t}){return s.jsxRuntimeExports.jsx("div",{children:t.user_sentiments?.map(e=>s.jsxRuntimeExports.jsxs("div",{className:"card card-articles card-sm border mb-2",children:[s.jsxRuntimeExports.jsxs("div",{className:"card-header small",children:["Gave their sentiment on ",s.jsxRuntimeExports.jsx("b",{children:e.populated_proposal.title})]}),s.jsxRuntimeExports.jsxs("div",{className:"card-body small p-2",children:[s.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center border-bottom pb-1",children:[e.sentiment_status=="Agree"&&s.jsxRuntimeExports.jsx("div",{className:"badge shadow-articles bg-success",children:"Agree"}),e.sentiment_status=="Needs Work"&&s.jsxRuntimeExports.jsx("div",{className:"badge shadow-articles bg-warning text-dark",children:"Needs Work"}),e.sentiment_status=="Disagree"&&s.jsxRuntimeExports.jsx("div",{className:"badge shadow-articles bg-danger",children:"Disagree"}),s.jsxRuntimeExports.jsx("span",{className:"small ms-2",children:D.format(new Date(e.date),"M/dd/yy")})]}),s.jsxRuntimeExports.jsx("div",{className:"mt-1",children:e.comment})]}),s.jsxRuntimeExports.jsx("div",{className:"card-footer",children:s.jsxRuntimeExports.jsx(D.Link,{prefetch:!1,href:`https://articles.media/politics/proposals/${e.populated_proposal.url}?interaction_id=${e._id}`,children:s.jsxRuntimeExports.jsx(P.ArticlesButton,{small:!0,children:"View"})})})]},e._id))})}function Wr({activeLayoutProposalSentiments:t,userProposalsSubmitted:e}){const[r,n]=x.useState(!1);return s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsx("div",{className:"mb-2",children:e?.slice(0,r?100:1).map(i=>s.jsxRuntimeExports.jsxs("div",{className:"card card-articles card-sm shadow-articles",children:[s.jsxRuntimeExports.jsx("div",{className:"card-body p-2 lh-sm d-flex align-items-center",children:s.jsxRuntimeExports.jsxs("div",{className:"ms-2",children:[s.jsxRuntimeExports.jsx("div",{children:i.title}),s.jsxRuntimeExports.jsxs("div",{className:"small",children:[i.type,i.fundamental&&" - Fundamental"]})]})}),s.jsxRuntimeExports.jsx("div",{className:"card-footer d-flex",children:s.jsxRuntimeExports.jsx(D.Link,{href:`${re.PROPOSALS_SUBMISSIONS_ALL}/${i._id}`,className:"",children:s.jsxRuntimeExports.jsx(P.ArticlesButton,{small:!0,children:s.jsxRuntimeExports.jsxs("span",{children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-eye me-1"}),"View"]})})})})]},i._id))}),e?.length>1&&s.jsxRuntimeExports.jsx(P.ArticlesButton,{onClick:()=>n(!r),className:"w-100",children:r?"View Less":"View All"}),e?.length==0&&s.jsxRuntimeExports.jsx("span",{className:"small",children:"User has no proposal submissions"})]})}function Hr(t){const{featured_image:e,thumbnail_size:r}=t;return s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[(e?.image_type=="S3 File System"||e?.thumbnails?.length>0)&&s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:e?.thumbnails?.length>0?s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:r&&e?.thumbnails?.find(n=>n.width==r)?s.jsxRuntimeExports.jsx("img",{style:{width:"100%",height:"100%",objectFit:"cover"},src:process.env.NEXT_PUBLIC_CDN+e?.thumbnails?.find(n=>n.width==r).key,loading:"lazy",alt:"",className:"flex-shrink-0"}):s.jsxRuntimeExports.jsx("img",{style:{width:"100%",height:"100%",objectFit:"cover"},src:process.env.NEXT_PUBLIC_CDN+[...e?.thumbnails].sort((n,i)=>n.width-i.width)[0].key,loading:"lazy",alt:"",className:"flex-shrink-0"})}):s.jsxRuntimeExports.jsx("img",{style:{width:"100%",height:"100%",objectFit:"cover"},src:process.env.NEXT_PUBLIC_CDN+e?.key,loading:"lazy",alt:"",className:"flex-shrink-0"})}),e?.location&&!e?.image_type&&(e?.thumbnails?.length||0)<1&&s.jsxRuntimeExports.jsx("img",{style:{objectFit:"cover",width:"100%",height:"100%"},src:`${process.env.NEXT_PUBLIC_CDN}${e?.key}`,alt:"",loading:"lazy"})]})}function zr(t){switch(t){case"story":return re.STORIES;case"issue":return re.ISSUES;case"myth":return re.MYTHS}}function qr({publicUserData:t}){return s.jsxRuntimeExports.jsx("div",{children:t?.populated_news_comments?.filter(e=>!e.parent_id).map(e=>s.jsxRuntimeExports.jsxs("div",{className:"card card-articles card-sm border mb-2",children:[s.jsxRuntimeExports.jsxs("div",{className:"card-header small",children:["Commented on ",s.jsxRuntimeExports.jsx("b",{children:e.populated_news?.news_title})]}),s.jsxRuntimeExports.jsxs("div",{className:"card-body small p-2 d-flex",children:[s.jsxRuntimeExports.jsx("div",{style:{width:"100px",height:"100px"},className:"me-2 flex-shrink-0",children:s.jsxRuntimeExports.jsx(Hr,{featured_image:e?.populated_news?.featured_image,thumbnail_size:100})}),s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsx("span",{className:"small",children:D.format(new Date(e.date),"M/dd/yy")}),s.jsxRuntimeExports.jsx("div",{children:e.comment})]})]}),s.jsxRuntimeExports.jsx("div",{className:"card-footer",children:s.jsxRuntimeExports.jsx(D.Link,{prefetch:!1,href:`${zr(e.populated_news?.news_type)}/${e.populated_news?.url}?interaction_id=${e._id}`,children:s.jsxRuntimeExports.jsx(P.ArticlesButton,{small:!0,children:"View"})})})]},e._id))})}function Xr({userNewsSubmitted:t}){const[e,r]=x.useState(!1);return s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsxs("div",{className:"mb-1 d-flex justify-content-between align-items-center",children:[s.jsxRuntimeExports.jsxs("span",{children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-newspaper me-1"}),s.jsxRuntimeExports.jsxs("span",{children:[s.jsxRuntimeExports.jsx("span",{children:"News Submissions: "}),s.jsxRuntimeExports.jsx("span",{className:"badge bg-dark",children:t?.length||0})]})]}),s.jsxRuntimeExports.jsxs("span",{className:"badge bg-articles-secondary",children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-info me-1"}),s.jsxRuntimeExports.jsx("span",{children:"Info"})]})]}),s.jsxRuntimeExports.jsx("div",{className:"mb-1",children:t?.slice(0,e?100:1).map(n=>s.jsxRuntimeExports.jsxs("div",{className:"card card-articles shadow-articles",children:[s.jsxRuntimeExports.jsxs("div",{className:"card-body py-1 px-2 lh-sm d-flex align-items-center",children:[s.jsxRuntimeExports.jsx("img",{className:"",src:n?.featured_image?.location,width:"40px",height:"40px",style:{objectFit:"cover"},alt:""}),s.jsxRuntimeExports.jsx("div",{className:"ms-2",children:s.jsxRuntimeExports.jsx("div",{children:n.news_title})})]}),s.jsxRuntimeExports.jsx("div",{className:"card-footer d-flex p-1",children:s.jsxRuntimeExports.jsx(D.Link,{href:`${re.HOME}/${n.url}`,children:s.jsxRuntimeExports.jsxs(P.ArticlesButton,{small:!0,className:"",children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-eye me-1"}),"View"]})})})]},n._id))}),t?.length>1?s.jsxRuntimeExports.jsx(P.ArticlesButton,{onClick:()=>r(!e),small:!0,className:"",children:e?"View Less":"View All"}):s.jsxRuntimeExports.jsx("span",{className:"small",children:"User has no news submissions"})]})}function Yr({activeLayoutProposalSentiments:t,userDonations:e,lifetimeContribution:r}){const[n,i]=x.useState(!1);return s.jsxRuntimeExports.jsxs("div",{className:"card card-articles ",children:[s.jsxRuntimeExports.jsxs("div",{className:"card-header d-flex justify-content-between align-items-center p-1",children:[s.jsxRuntimeExports.jsx("span",{children:"Donations: "}),s.jsxRuntimeExports.jsxs("span",{className:"badge bg-dark",children:[e.count," - ",`$${D.numberWithCommas((r/100||0).toFixed(2))}`]})]}),s.jsxRuntimeExports.jsxs("div",{className:"card-body p-2",children:[e?.list?.length==0&&s.jsxRuntimeExports.jsx("span",{className:"small",children:"User has no donations"}),s.jsxRuntimeExports.jsx("div",{className:"donations-wrap",children:e?.list?.slice(0,n?100:3).map(l=>s.jsxRuntimeExports.jsxs("div",{className:"border",children:[s.jsxRuntimeExports.jsxs("div",{className:"card-body py-1 px-2 lh-sm d-flex align-items-center",children:[s.jsxRuntimeExports.jsx("div",{className:"small",children:"Most Recent"}),s.jsxRuntimeExports.jsxs("div",{className:"ms-2 d-flex align-items-center",children:[s.jsxRuntimeExports.jsx("div",{className:"h4 mb-0 me-2",children:`$${D.numberWithCommas((l.amount/100).toFixed(2))}`}),s.jsxRuntimeExports.jsx("div",{className:"small",children:D.format(new Date(l.date),"M/dd/yy")})]})]}),s.jsxRuntimeExports.jsx("div",{className:"card-footer d-flex p-1",children:s.jsxRuntimeExports.jsx(D.Link,{href:`${re.HOME}/${l.url}`,children:s.jsxRuntimeExports.jsxs(P.ArticlesButton,{className:"",small:!0,children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-eye me-1"}),"View"]})})})]},l._id))})]}),s.jsxRuntimeExports.jsx("div",{className:"card-footer p-1 d-flex justify-content-center",children:e.count>1&&s.jsxRuntimeExports.jsx(P.ArticlesButton,{onClick:()=>{i(!n)},className:"w-100",children:n?"View Less":"View All"})})]})}function Kr({userLayoutsData:t,handleClose:e}){return s.jsxRuntimeExports.jsx("div",{children:t?.map(n=>s.jsxRuntimeExports.jsxs("div",{className:"card card-articles shadow-articles",children:[s.jsxRuntimeExports.jsx("div",{className:"card-body py-1 px-2 lh-sm d-flex align-items-center",children:s.jsxRuntimeExports.jsxs("div",{className:"ms-2",children:[s.jsxRuntimeExports.jsx("div",{children:n.name}),s.jsxRuntimeExports.jsx("div",{className:"small",children:"Last Viewed: Never"})]})}),s.jsxRuntimeExports.jsxs("div",{className:"card-footer d-flex p-1",children:[(!1)._id!==n.user_id&&s.jsxRuntimeExports.jsxs(P.ArticlesButton,{className:"",small:!0,children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-plus me-1"}),"Follow"]}),s.jsxRuntimeExports.jsx(D.Link,{href:`${re.HOME}/${n.url}`,children:s.jsxRuntimeExports.jsxs(P.ArticlesButton,{className:"",small:!0,children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-eye me-1"}),"View"]})})]})]},n._id))})}function Gr({activeLayoutProposalSentiments:t,userData:e}){return s.jsxRuntimeExports.jsx("div",{children:s.jsxRuntimeExports.jsx("div",{className:"",children:e?.verified?.verified_methods?.map((r,n)=>Object.keys(r)?.length>0?s.jsxRuntimeExports.jsxs("div",{className:"card card-articles card-sm object mb-2",children:[s.jsxRuntimeExports.jsx("div",{className:"card-header",children:r?.method_name}),s.jsxRuntimeExports.jsx("div",{className:"card-body p-2",children:s.jsxRuntimeExports.jsxs("div",{className:"small",children:[s.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center",children:[s.jsxRuntimeExports.jsx("span",{className:"me-2",children:"Approved On: "}),s.jsxRuntimeExports.jsx(D.ArticlesDate,{date:r.approved_date})]}),s.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center",children:[s.jsxRuntimeExports.jsx("span",{className:"me-2",children:"Approved By: "}),s.jsxRuntimeExports.jsx(Jt,{user_id:r.approved_by,dangerousPopulate:!0})]})]})})]},n):s.jsxRuntimeExports.jsx("div",{className:"single",children:r},n))})})}const Jr=[];function Qr({activeLayoutProposalSentiments:t}){return s.jsxRuntimeExports.jsx("div",{children:s.jsxRuntimeExports.jsx("div",{className:"achievements card card-articles",children:s.jsxRuntimeExports.jsx("div",{className:"card-body p-0",children:Jr.map(e=>s.jsxRuntimeExports.jsx("div",{children:s.jsxRuntimeExports.jsxs("div",{className:"achievement w-100 d-flex align-items-center",children:[s.jsxRuntimeExports.jsx("div",{className:"icon",style:{width:"50px"},children:s.jsxRuntimeExports.jsx("i",{className:`fad ${e.icon} fa-lg`})}),s.jsxRuntimeExports.jsxs("div",{className:"details small me-auto",children:[s.jsxRuntimeExports.jsx("b",{className:"name",children:e.name}),s.jsxRuntimeExports.jsx("div",{className:"description mb-1",children:e.description}),s.jsxRuntimeExports.jsx("div",{className:"small",children:e.tags?.map(r=>s.jsxRuntimeExports.jsx("span",{className:"badge bg-dark border",children:r},r))})]}),s.jsxRuntimeExports.jsx("div",{className:"icon border-end-0 border-start border-dark",children:s.jsxRuntimeExports.jsx("div",{className:"text-center px-3",children:s.jsxRuntimeExports.jsx("i",{className:"fad fa-square fa-lg me-0"})})})]})},e.name))})})})}const Zr=t=>De.axios.get(t).then(e=>e.data),en=t=>{const{data:e,error:r,isLoading:n,mutate:i}=De.useSWR(process.env.NODE_ENV==="development"?"http://localhost:3001/api/news/resources/political-parties":"https://articles.media/api/news/resources/political-parties",Zr,{dedupingInterval:6e5});return{data:e,error:r,isLoading:n,mutate:i}};function Jt(t){const{populated_user:e,hidePhoto:r,visibleItems:n,size:i,className:l,dangerousPopulate:a,user_id:o,buttonType:c,children:p,fakeMembership:u}=t,[f,h]=x.useState(!1),[d,v]=x.useState({}),[j,m]=x.useState([]),[R,g]=x.useState([]),[N,E]=x.useState(null),[_,w]=x.useState([]),[O,M]=x.useState([]),[$,C]=x.useState(!1),k=!1,{data:L}=en(),[S,T]=x.useState("Proposals Stance"),B=()=>{h(!1)};x.useEffect(()=>{e&&v({...e})},[]);const[U,W]=x.useState(!1),[de,ie]=x.useState([]),[ae,be]=x.useState([]),{data:A,mutate:fe}=At((o||e?._id)&&(f||a)?{user_id:o||e?._id}:null),{data:q,mutate:Z}=At(k?._id&&(f||a)?{user_id:k?._id}:null);x.useEffect(()=>{A&&(console.log("publicUserData",A),v(A),m(A?.populated_public_layouts),g(A?.populated_public_donations),E(A?.populated_public_donations.total),M(A?.populated_public_proposals),ie(A?.populated_public_proposals_stance),w(A?.populated_public_news_submissions||[]))},[A]),x.useEffect(()=>{q&&(console.log("personalUserData",q),be(q?.populated_public_proposals_stance))},[q]);let oe=(e||d)?.articles_membership?.plan.replace(" ","-").toLowerCase(),he=u?.replace(" ","-").toLowerCase();const K="https://articles.media/images/store/memberships/",ye=()=>{let b=(e||d)?.articles_membership?.status=="Active";return s.jsxRuntimeExports.jsxs("div",{style:{position:"relative",cursor:"pointer"}&&(i=="lg"?{fontSize:"1.5rem"}:{}),className:`view-user-modal-badge-wrap ${i=="lg"&&"large"} ${l&&l}`,children:[s.jsxRuntimeExports.jsxs("span",{onClick:()=>{h(!0)},className:"position-relative view-user-modal-badge d-flex justify-content-between align-items-center badge bg-articles badge-hover ",children:[(b||u)&&s.jsxRuntimeExports.jsx("i",{className:`fad membership-badge ${he||oe} fa-badge-check`,style:{position:"absolute",top:"-2px",left:"-2px",fontSize:"0.9rem",zIndex:1}}),s.jsxRuntimeExports.jsxs("div",{className:`d-flex align-items-center ${b&&""}`,children:[!r&&s.jsxRuntimeExports.jsx("div",{className:i=="lg"?"me-0":"me-1",children:s.jsxRuntimeExports.jsx(St,{width:"15px",profile_photo:d.profile_photo})}),d.display_name||e?.display_name]}),s.jsxRuntimeExports.jsx("i",{className:"fad fa-plus-square me-0 ms-2"})]}),n?.includes("Not Verified")&&e?.verified?.status!=="Verified"&&s.jsxRuntimeExports.jsx(le,{placement:"bottom",overlay:s.jsxRuntimeExports.jsx(G,{style:{pointerEvents:"none"},id:"button-tooltip",children:s.jsxRuntimeExports.jsx("div",{className:"",children:"User is not verified"})}),children:s.jsxRuntimeExports.jsxs("span",{className:"verification-user-badge badge bg-danger d-flex align-items-center",children:[s.jsxRuntimeExports.jsx("i",{style:{paddingBottom:"2px"},className:"fas fa-robot me-1"}),s.jsxRuntimeExports.jsx("span",{className:"",children:"Unverified"})]})}),!1,n?.includes("Verification Status")&&s.jsxRuntimeExports.jsx(le,{placement:"bottom",overlay:s.jsxRuntimeExports.jsx(G,{id:"button-tooltip",style:{pointerEvents:"none",transformX:"-20px"},children:e?.verified?.status=="Verified"?"Verified":" Not Verified"}),children:e?.verified?.status=="Verified"?s.jsxRuntimeExports.jsx("span",{className:"verification-user-badge badge bg-success cursor-pointer",children:s.jsxRuntimeExports.jsx("i",{className:"fas fa-check me-0"})}):s.jsxRuntimeExports.jsxs("span",{className:"verification-user-badge badge bg-danger cursor-pointer",children:[s.jsxRuntimeExports.jsx("i",{className:"fas fa-robot me-1"}),s.jsxRuntimeExports.jsx("span",{children:"?"})]})}),n?.includes("Political Party")&&s.jsxRuntimeExports.jsx("div",{className:"d-flex",children:(e||d)?.political?.party_id&&s.jsxRuntimeExports.jsx(le,{placement:"bottom",overlay:s.jsxRuntimeExports.jsxs(G,{id:"tooltip-bottom",style:{position:"fixed"},children:[s.jsxRuntimeExports.jsx("img",{width:"40px",height:"40px",style:{objectFit:"contain",padding:"0px",zIndex:"10",position:"relative"},loading:"lazy",src:`${process.env.NEXT_PUBLIC_CDN}`+L?.find(H=>H._id==(e||d)?.political?.party_id)?.logo,alt:""}),s.jsxRuntimeExports.jsx("span",{className:"ms-2",children:L?.find(H=>H._id==(e||d)?.political?.party_id)?.name})]}),children:s.jsxRuntimeExports.jsx("div",{className:"badge bg-light text-capitalize ms-0 h-100 d-flex justify-content-center align-items-center",style:{padding:"0 0.15rem",cursor:"pointer"},children:(e||d)?.political?.party_id&&((e||d)?.political?.party_id=="62a830440593acbd4061c48c"?s.jsxRuntimeExports.jsx("i",{className:"fad fa-unlink unaffiliated-icon fa-lg me-0"}):s.jsxRuntimeExports.jsx("img",{width:"15px",height:"15px",style:{objectFit:"contain",padding:"0px"},loading:"lazy",src:`${process.env.NEXT_PUBLIC_CDN}`+L?.find(H=>H._id==(e||d)?.political?.party_id)?.logo,alt:""}))})})})]})};function Fe(b){return b==="Link"?s.jsxRuntimeExports.jsx("span",{type:"button",onClick:()=>{h(!0)},children:p}):s.jsxRuntimeExports.jsx(ye,{})}const[F,ve]=x.useState(!1),[we,it]=x.useState({}),[at,Ue]=x.useState({});x.useEffect(()=>{F&&Object.keys(we).length==0&&console.log("adminUserData",q)},[F]);const[Ie,Ve]=x.useState(null);function We(){alert("TODO")}const ee=x.useMemo(()=>j?.filter(b=>b.user_layout)?.[0]?.url,[j]);return s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[Fe(c),s.jsxRuntimeExports.jsxs(y.Modal,{show:f,size:"lg",id:"view-users-modal",className:"view-users-modal articles-modal",scrollable:!0,onHide:B,children:[s.jsxRuntimeExports.jsx(y.Modal.Header,{closeButton:!0,children:s.jsxRuntimeExports.jsx("div",{className:"w-100 d-flex justify-content-between align-items-center",children:s.jsxRuntimeExports.jsx("h3",{className:"mb-0",children:"User Info"})})}),s.jsxRuntimeExports.jsx(y.Modal.Body,{children:s.jsxRuntimeExports.jsxs("div",{className:"main-panel",children:[s.jsxRuntimeExports.jsxs("div",{className:"d-flex",children:[s.jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column align-items-center",style:{width:"100px"},children:[s.jsxRuntimeExports.jsx("div",{type:"button",onClick:()=>{Ve(`${process.env.NEXT_PUBLIC_CDN}${d?.profile_photo?.key}`)},children:s.jsxRuntimeExports.jsx(St,{width:"100px",profile_photo:d?.profile_photo})}),s.jsxRuntimeExports.jsx(le,{placement:"bottom",overlay:s.jsxRuntimeExports.jsx(G,{id:"tooltip-bottom",children:"Joined Articles Media"}),children:s.jsxRuntimeExports.jsxs("div",{className:"badge bg-black border border-white shadow-sm rounded-0",children:["Joined ",d?.sign_up_date&&D.format(new Date(d?.sign_up_date),"M/dd/yy")]})}),ee&&s.jsxRuntimeExports.jsx(D.Link,{href:`https://articles.media/layouts/${ee}`,className:"mt-2 w-100",children:s.jsxRuntimeExports.jsxs(P.ArticlesButton,{className:"w-100",style:{},children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-home"}),s.jsxRuntimeExports.jsx("span",{children:"Layout"})]})}),s.jsxRuntimeExports.jsx(Xe,{className:"w-100",children:s.jsxRuntimeExports.jsx(D.Link,{href:{pathname:"https://articles.media/messages",query:{startMsg:d?._id}},className:"mt-2 w-100",children:s.jsxRuntimeExports.jsxs(P.ArticlesButton,{className:"w-100",style:{fontSize:"0.88rem"},children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-envelope"}),s.jsxRuntimeExports.jsx("span",{children:"Message"})]})})}),F&&s.jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column w-100 mt-2",style:{maxWidth:"100px"},children:[s.jsxRuntimeExports.jsx(P.ArticlesButton,{variant:"warning",small:!0,className:"",children:s.jsxRuntimeExports.jsx(Textfit,{max:14,mode:"single",children:"Remove Photo"})}),we?.user?.profile_photo?.banned_uploads?s.jsxRuntimeExports.jsx(P.ArticlesButton,{variant:"warning",small:!0,className:"",onClick:()=>{toggleBanCustomPhotoUpload()},children:s.jsxRuntimeExports.jsx(Textfit,{max:14,mode:"single",children:"Unban Uploads"})}):s.jsxRuntimeExports.jsx(P.ArticlesButton,{variant:"danger",small:!0,className:"",onClick:()=>{toggleBanCustomPhotoUpload()},children:s.jsxRuntimeExports.jsx(Textfit,{max:14,mode:"single",children:"Ban Uploads"})})]})]}),s.jsxRuntimeExports.jsxs("div",{className:"mx-2",children:[s.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center mb-1",children:[s.jsxRuntimeExports.jsx("h5",{className:"mb-0",children:e?.display_name||d.display_name}),s.jsxRuntimeExports.jsxs("span",{className:"ms-2",children:[" @",d?.username]})]}),d?.articles_membership?.status=="Active"&&s.jsxRuntimeExports.jsx(le,{placement:"bottom",overlay:s.jsxRuntimeExports.jsx(G,{id:"tooltip-bottom",children:s.jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column py-1",children:[s.jsxRuntimeExports.jsxs("div",{className:"position-relative",children:[d?.articles_membership?.plan=="Supporter"&&s.jsxRuntimeExports.jsx("img",{src:`${K}supporter.jpg`,width:50,height:50,alt:"Membership plan level"}),d?.articles_membership?.plan=="Premium Supporter"&&s.jsxRuntimeExports.jsx("img",{src:`${K}premiumSupporter.jpg`,width:50,height:50,alt:"Membership plan level"}),d?.articles_membership?.plan=="Advocate"&&s.jsxRuntimeExports.jsx("img",{src:`${K}advocate.jpg`,width:50,height:50,alt:"Membership plan level"}),s.jsxRuntimeExports.jsx("i",{className:`fad membership-badge ${oe} fa-badge-check me-1`,style:{position:"absolute",top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%)",fontSize:"1.5rem"}})]}),s.jsxRuntimeExports.jsxs("span",{className:"lh-sm",children:[s.jsxRuntimeExports.jsx("div",{children:d?.articles_membership?.plan}),s.jsxRuntimeExports.jsxs("div",{className:"small",children:["Since ",s.jsxRuntimeExports.jsx(D.ArticlesDate,{format:"MM/dd/yy",date:d?.articles_membership?.membership_started})]})]})]})}),children:s.jsxRuntimeExports.jsxs("div",{className:"badge bg-articles border me-1 mb-1",style:{cursor:"pointer"},children:[s.jsxRuntimeExports.jsx("i",{className:`fad membership-badge ${oe} fa-badge-check me-1`,style:{}}),s.jsxRuntimeExports.jsx("span",{children:d?.articles_membership?.plan}),s.jsxRuntimeExports.jsx("span",{className:"px-1",children:"|"}),s.jsxRuntimeExports.jsx("span",{className:"months fw-bold",children:ns(new Date,new Date(d?.articles_membership?.membership_started))||0})]})}),d?.address?.state&&s.jsxRuntimeExports.jsx(le,{placement:"bottom",overlay:d.address?.state?.length==2?s.jsxRuntimeExports.jsxs(G,{id:"tooltip-bottom",children:["From the state of ",convertRegion(d.address?.state,"name")?convertRegion(d.address?.state,"name")[0]:""]}):s.jsxRuntimeExports.jsxs(G,{id:"tooltip-bottom",children:["From the state of ",d.address?.state]}),children:s.jsxRuntimeExports.jsxs("div",{className:"badge bg-articles border me-1 mb-1",children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-map-pin me-1"}),d.address?.state]})}),d.verified?.status!=="Verified"&&s.jsxRuntimeExports.jsx(le,{placement:"bottom",overlay:s.jsxRuntimeExports.jsx(G,{id:"tooltip-bottom",children:"User is not verified"}),children:s.jsxRuntimeExports.jsxs("div",{className:"badge bg-danger me-1 mb-1",children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-robot me-1"}),"Unverified"]})}),d.verified?.status=="Verified"&&s.jsxRuntimeExports.jsx(le,{placement:"bottom",overlay:s.jsxRuntimeExports.jsxs(G,{id:"tooltip-bottom",className:"",children:[s.jsxRuntimeExports.jsxs("div",{children:["Verified by ",d.verified?.verified_methods?.length," method",d.verified?.verified_methods?.length>1&&"s"]}),s.jsxRuntimeExports.jsx("hr",{}),s.jsxRuntimeExports.jsx("div",{className:"pb-2",children:d.verified?.verified_methods?.map((b,H)=>Object.keys(b)?.length>0?s.jsxRuntimeExports.jsx("div",{className:"object",children:b?.method_name},H):s.jsxRuntimeExports.jsx("div",{className:"single",children:b},H))})]}),children:s.jsxRuntimeExports.jsxs("div",{className:"badge bg-articles border me-1 mb-1",children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-star me-1"}),d.verified?.status]})}),d.political?.party_id&&s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:s.jsxRuntimeExports.jsx(le,{placement:"bottom",overlay:s.jsxRuntimeExports.jsx(G,{id:"tooltip-bottom",children:s.jsxRuntimeExports.jsx("div",{children:"Users political party"})}),children:s.jsxRuntimeExports.jsx(D.Link,{href:`https://articles.media/politics/parties/${(e||d)?.political?.party_id}`,children:s.jsxRuntimeExports.jsx("div",{className:"badge bg-articles border text-capitalize me-1",children:s.jsxRuntimeExports.jsxs("div",{className:"",children:[(e||d)?.political?.party_id=="62a830440593acbd4061c48c"?s.jsxRuntimeExports.jsx("i",{className:"fad fa-unlink unaffiliated-icon fa-lg me-0"}):s.jsxRuntimeExports.jsx("img",{width:"14px",height:"14px",style:{objectFit:"contain",padding:"0px"},loading:"lazy",src:`${process.env.NEXT_PUBLIC_CDN}`+L?.find(b=>b._id==d?.political?.party_id)?.logo,alt:""}),s.jsxRuntimeExports.jsx("span",{className:"ms-1",children:L?.find(b=>b._id==d.political?.party_id)?.name})]})})})})}),s.jsxRuntimeExports.jsx("hr",{}),s.jsxRuntimeExports.jsx("div",{className:"small",children:d?._id=="5e90cc96579a17440c5d7d52"&&s.jsxRuntimeExports.jsx("span",{children:"Founder of Articles Media, thank you for using the site, feel free to message me with any questions, concerns or anything else."})})]})]}),s.jsxRuntimeExports.jsx("hr",{}),F&&s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsx("div",{className:"d-flex align-items-center justify-content-between",children:s.jsxRuntimeExports.jsx("div",{className:"small",children:"Admin Mode Toolbar"})}),s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsxs("div",{className:"d-flex mb-2",children:[s.jsxRuntimeExports.jsx(P.ArticlesButton,{small:!0,variant:"warning",className:"",onClick:()=>{loadAdminUserData()},children:s.jsxRuntimeExports.jsx("i",{className:"fad fa-redo me-0"})}),s.jsxRuntimeExports.jsx(P.ArticlesButton,{active:F?.edit,small:!0,className:"",onClick:()=>{ve({...F,edit:!F?.edit})},children:"Edit Mode"}),F?.edit&&s.jsxRuntimeExports.jsx(P.ArticlesButton,{small:!0,variant:"success",className:"me-0",onClick:()=>{We()},children:s.jsxRuntimeExports.jsx("i",{className:"fad fa-save me-0"})})]}),["User Details","Verification","Moderation","Bans","Stripe","Layouts","Reset Password","Sessions"].map(b=>s.jsxRuntimeExports.jsx(P.ArticlesButton,{active:b==F?.tab,small:!0,onClick:()=>{ve({...F,tab:b})},children:b},b))]}),s.jsxRuntimeExports.jsx("hr",{})]}),s.jsxRuntimeExports.jsxs("div",{className:"pe-3 pb-3",children:[s.jsxRuntimeExports.jsx("div",{className:"mb-2 me-2",children:[{name:"Proposals Stance",badge:s.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:s.jsxRuntimeExports.jsxs("div",{className:"small",children:[s.jsxRuntimeExports.jsx("span",{children:ae?.fundamental?.filter(b=>ae?.user_sentiments?.find(H=>H.proposal_id==b._id)?b:null).length}),s.jsxRuntimeExports.jsx("span",{className:"px-1",children:"/"}),s.jsxRuntimeExports.jsx("span",{children:ae?.fundamental?.length})]})})},{name:"Proposal Sentiments",badge:s.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:d?.populated_public_proposals_stance?.user_sentiments_count||0})},{name:"Proposal Comments",badge:s.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:d?.populated_public_proposals_stance?.user_comments_count||0})},{name:"Proposal Submissions",badge:s.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:O?.length||0})},{name:"News Comments",badge:s.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:d?.populated_news_comments_count||0})},{name:"News Submissions",badge:s.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:_?.length||0})},{name:"Verifications",badge:s.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:d.verified?.verified_methods?.length||0})},{name:"Layouts",badge:s.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:j?.length||0})},{name:"Donations",badge:s.jsxRuntimeExports.jsxs("span",{children:[s.jsxRuntimeExports.jsx("span",{className:"badge bg-primary ms-1",children:A?.populated_public_donations?.count||0}),s.jsxRuntimeExports.jsxs("span",{className:"badge bg-black",children:["$",D.numberWithCommas((A?.populated_public_donations.total/100).toFixed(2))]})]})},{name:"Orders",badge:s.jsxRuntimeExports.jsxs("span",{children:[s.jsxRuntimeExports.jsx("span",{className:"badge bg-primary ms-1",children:"0"}),s.jsxRuntimeExports.jsx("span",{className:"badge bg-black",children:"0"})]})},{name:"Achievements",dev:!0,badge:s.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:"0"})}].map(b=>(P.ArticlesButton,b.name==S,b.name,b.badge,b.name,b.dev?s.jsxRuntimeExports.jsx(Xe,{inline:!0,children:s.jsxRuntimeExports.jsxs(P.ArticlesButton,{onClick:()=>T(b.name),active:b.name==S,small:!0,children:[b.name,b.badge]},b.name)},b.name):s.jsxRuntimeExports.jsxs(P.ArticlesButton,{onClick:()=>T(b.name),active:b.name==S,small:!0,children:[b.name,b.badge]},b.name)))}),S=="Proposals Stance"&&s.jsxRuntimeExports.jsx(Ur,{activeLayoutProposalSentiments:de,populated_user:e,usersProposalSentiments:ae,setShowFullStanceDetails:W,showFullStanceDetails:U,userData:d}),S=="Proposal Comments"&&s.jsxRuntimeExports.jsx(Ir,{activeLayoutProposalSentiments:de}),S=="Proposal Sentiments"&&s.jsxRuntimeExports.jsx(Vr,{activeLayoutProposalSentiments:de}),S=="Proposal Submissions"&&s.jsxRuntimeExports.jsx(Wr,{userProposalsSubmitted:A?.populated_public_proposals}),S=="News Comments"&&s.jsxRuntimeExports.jsx(qr,{publicUserData:A}),S=="News Submissions"&&s.jsxRuntimeExports.jsx(Xr,{publicUserData:A,userNewsSubmitted:A?.populated_public_news_submissions}),S=="Donations"&&s.jsxRuntimeExports.jsx(Yr,{publicUserData:A,userDonations:A?.populated_public_donations,lifetimeContribution:N}),S=="Layouts"&&s.jsxRuntimeExports.jsx(Kr,{publicUserData:A,userLayoutsData:A?.populated_public_layouts}),S=="Verifications"&&s.jsxRuntimeExports.jsx(Gr,{publicUserData:A,userData:d}),S=="Achievements"&&s.jsxRuntimeExports.jsx(Qr,{publicUserData:A})]})]})}),s.jsxRuntimeExports.jsxs(y.Modal.Footer,{className:"justify-content-between",children:[k?._id=="5e90cc96579a17440c5d7d52"?s.jsxRuntimeExports.jsxs("span",{children:[s.jsxRuntimeExports.jsxs(Xe,{inline:!0,className:"me-2",children:[s.jsxRuntimeExports.jsxs(P.ArticlesButton,{onClick:()=>{ve(F?!1:{tab:""})},small:!0,active:F,variant:"",className:"me-1",children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-pen"}),s.jsxRuntimeExports.jsx("span",{children:"Admin Mode"})]}),s.jsxRuntimeExports.jsx(P.ArticlesButton,{onClick:()=>{fe(),Z()},small:!0,variant:"warning",className:"",children:s.jsxRuntimeExports.jsx("i",{className:"fad fa-redo me-0"})})]}),s.jsxRuntimeExports.jsx("span",{style:{fontSize:"0.8rem"},children:d?._id})]}):s.jsxRuntimeExports.jsx("span",{}),s.jsxRuntimeExports.jsx("div",{className:"justify-content-",children:s.jsxRuntimeExports.jsx(P.ArticlesButton,{variant:"articles",onClick:B,children:"Close"})})]})]})]})}module.exports=Jt;