1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6423],{82863:function(e,t,n){"use strict";n.d(t,{Nq:function(){return c},rg:function(){return i}});var r=n(2784);let o=(0,r.createContext)(null);function i({clientId:e,nonce:t,onScriptLoadSuccess:n,onScriptLoadError:i,children:c}){let a=function(e={}){let{nonce:t,onScriptLoadSuccess:n,onScriptLoadError:o}=e,[i,c]=(0,r.useState)(!1),a=(0,r.useRef)(n);a.current=n;let u=(0,r.useRef)(o);return u.current=o,(0,r.useEffect)(()=>{let e=document.createElement("script");return e.src="https://accounts.google.com/gsi/client",e.async=!0,e.defer=!0,e.nonce=t,e.onload=()=>{var e;c(!0),null===(e=a.current)||void 0===e||e.call(a)},e.onerror=()=>{var e;c(!1),null===(e=u.current)||void 0===e||e.call(u)},document.body.appendChild(e),()=>{document.body.removeChild(e)}},[t]),i}({nonce:t,onScriptLoadSuccess:n,onScriptLoadError:i}),u=(0,r.useMemo)(()=>({clientId:e,scriptLoadedSuccessfully:a}),[e,a]);return r.createElement(o.Provider,{value:u},c)}function c({flow:e="implicit",scope:t="",onSuccess:n,onError:i,onNonOAuthError:c,overrideScope:a,state:u,...l}){let{clientId:s,scriptLoadedSuccessfully:d}=function(){let e=(0,r.useContext)(o);if(!e)throw Error("Google OAuth components must be used within GoogleOAuthProvider");return e}(),f=(0,r.useRef)(),p=(0,r.useRef)(n);p.current=n;let g=(0,r.useRef)(i);g.current=i;let y=(0,r.useRef)(c);y.current=c,(0,r.useEffect)(()=>{var n;if(!d)return;let r="implicit"===e?"initTokenClient":"initCodeClient",o=null===(n=null==window?void 0:window.google)||void 0===n?void 0:n.accounts.oauth2[r]({client_id:s,scope:a?t:`openid profile email ${t}`,callback:e=>{var t,n;if(e.error)return null===(t=g.current)||void 0===t?void 0:t.call(g,e);null===(n=p.current)||void 0===n||n.call(p,e)},error_callback:e=>{var t;null===(t=y.current)||void 0===t||t.call(y,e)},state:u,...l});f.current=o},[s,d,e,t,u]);let b=(0,r.useCallback)(e=>{var t;return null===(t=f.current)||void 0===t?void 0:t.requestAccessToken(e)},[]),h=(0,r.useCallback)(()=>{var e;return null===(e=f.current)||void 0===e?void 0:e.requestCode()},[]);return"implicit"===e?b:h}},72231:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(2784)),o=a(n(11042)),i=a(n(39033)),c=["onSuccess","onError","skipScript","authOptions","iconProps","render","uiType","className","noDefaultStyle","buttonExtraChildren"];function a(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var s="\n.react-apple-signin-auth-btn {\n background-color: transparent;\n border: none;\n padding: 0;\n cursor: pointer;\n border-radius: 4px;\n padding: 0 8px 0 2px;\n font-size: 14px;\n font-size: 1em;\n line-height: 1;\n border: 1px solid #000;\n overflow: hidden;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}\n.react-apple-signin-auth-btn-light {\n background-color: #FFF;\n color: #000;\n border-color: #000;\n}\n.react-apple-signin-auth-btn-dark {\n background-color: #000;\n color: #FFF;\n border-color: #FFF;\n}".replace(/ {2}|\n/g,"");t.default=function(e){var t=e.onSuccess,n=e.onError,a=e.skipScript,d=e.authOptions,f=e.iconProps,p=e.render,g=e.uiType,y=void 0===g?"dark":g,b=e.className,h=e.noDefaultStyle,m=void 0!==h&&h,v=e.buttonExtraChildren,S=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,c);(0,o.default)(void 0!==a&&a?null:i.default.APPLE_SCRIPT_SRC);var O=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?l(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({children:r.default.createElement(r.default.Fragment,null,r.default.createElement("svg",u({width:"24px",height:"44px",viewBox:"0 0 24 44"},f),r.default.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},r.default.createElement("rect",{fill:"light"===y?"#FFF":"#000",x:"0",y:"0",width:"24",height:"44"}),r.default.createElement("path",{d:"M12.2337427,16.9879688 C12.8896607,16.9879688 13.7118677,16.5445313 14.2014966,15.9532812 C14.6449341,15.4174609 14.968274,14.6691602 14.968274,13.9208594 C14.968274,13.8192383 14.9590357,13.7176172 14.9405591,13.6344727 C14.2107349,13.6621875 13.3330982,14.1241016 12.8065162,14.7430664 C12.3907935,15.2142188 12.012024,15.9532812 12.012024,16.7108203 C12.012024,16.8216797 12.0305005,16.9325391 12.0397388,16.9694922 C12.0859302,16.9787305 12.1598365,16.9879688 12.2337427,16.9879688 Z M9.92417241,28.1662891 C10.8202857,28.1662891 11.2175318,27.5658008 12.3353638,27.5658008 C13.4716724,27.5658008 13.721106,28.1478125 14.7188404,28.1478125 C15.6980982,28.1478125 16.3540162,27.2424609 16.972981,26.3555859 C17.6658521,25.339375 17.9522388,24.3416406 17.9707154,24.2954492 C17.9060474,24.2769727 16.0306763,23.5101953 16.0306763,21.3576758 C16.0306763,19.491543 17.5088013,18.6508594 17.5919459,18.5861914 C16.612688,17.1819727 15.1253248,17.1450195 14.7188404,17.1450195 C13.6194849,17.1450195 12.7233716,17.8101758 12.1598365,17.8101758 C11.5501099,17.8101758 10.7463794,17.1819727 9.79483648,17.1819727 C7.98413335,17.1819727 6.14571538,18.6785742 6.14571538,21.5054883 C6.14571538,23.2607617 6.8293482,25.1176563 7.67003179,26.3186328 C8.39061773,27.3348438 9.01882085,28.1662891 9.92417241,28.1662891 Z",fill:"light"===y?"#000":"#FFF",fillRule:"nonzero"}))),void 0===v?"Continue with Apple":v),onClick:function(e){e&&(e.preventDefault(),e.stopPropagation()),i.default.signIn({authOptions:d,onSuccess:t,onError:n})}},S);return p?p(O):r.default.createElement(r.default.Fragment,null,r.default.createElement("button",u({className:"".concat(m?"":"react-apple-signin-auth-btn react-apple-signin-auth-btn-".concat(y)).concat(b?" ".concat(b):""),type:"button","aria-label":"Signin with apple ID"},O)),m?null:r.default.createElement("style",null,s))}},39033:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(73646))&&r.__esModule?r:{default:r};t.default={APPLE_SCRIPT_SRC:"https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",signIn:function(e){var t=e.authOptions,n=e.onSuccess,r=e.onError;return(0,o.default)("AppleID").then(function(){return window.AppleID||console.error(Error("Error loading apple script")),window.AppleID.auth.init(t),window.AppleID.auth.signIn().then(function(e){return n&&n(e),e}).catch(function(e){return r?r(e):console.error(e),null})}).catch(function(e){return r?r(e):console.error(e),null})}}},11042:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(2784);t.default=function(e){(0,r.useEffect)(function(){if(e){var t=document.querySelectorAll('script[src="'.concat(e,'"]'))[0];t||((t=document.createElement("script")).src=e,t.async=!0,document.body.appendChild(t))}},[e])}},38807:function(e,t,n){"use strict";Object.defineProperty(t,"ap",{enumerable:!0,get:function(){return o.default}});var r=i(n(72231)),o=i(n(39033));function i(e){return e&&e.__esModule?e:{default:e}}i(n(11042)),r.default},73646:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{pollFrequency:1e3,retries:100,parent:window},r=n.pollFrequency,o=void 0===r?1e3:r,i=n.retries,c=void 0===i?100:i,a=n.parent,u=void 0===a?window:a;if(u&&u.hasOwnProperty(t))return Promise.resolve(u[t]);if(!c)return Promise.resolve(void 0);var l=c-1;return new Promise(function(e){return setTimeout(e,"function"==typeof o?o({retries:l}):o)}).then(function(){return e(t,{pollFrequency:o,parent:u,retries:l})})}},60133:function(e,t,n){var r;"undefined"!=typeof self&&self,r=function(e){var t,n;return n={},r.m=t=[function(t){t.exports=e},function(e,t,n){e.exports=n(2)()},function(e,t,n){"use strict";function r(){}function o(){}var i=n(3);o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,c){if(c!==i){var a=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 a.name="Invariant Violation",a}}function t(){return e}var n={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol
1:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n}},function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(e,t){null!=t&&t<=e.length||(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){null!=t&&t<=e.length||(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){null!=t&&t<=e.length||(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){null!=t&&t<=e.length||(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t,n,r,o,i){var c=e.getElementsByTagName(t)[0],a=c;(a=e.createElement(t)).id=n,a.src=r,c&&c.parentNode?c.parentNode.insertBefore(a,c):e.head.appendChild(a),a.onerror=i,a.onload=o}function s(e,t){var n=e.getElementById(t);n&&n.parentNode.removeChild(n)}function d(e){return y.a.createElement("span",{style:{paddingRight:10,fontWeight:500,paddingLeft:e.icon?0:10,paddingTop:10,paddingBottom:10}},e.children)}function f(e){return y.a.createElement("div",{style:{marginRight:10,background:e.active?"#eee":"#fff",padding:10,borderRadius:2}},y.a.createElement("svg",{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg"},y.a.createElement("g",{fill:"#000",fillRule:"evenodd"},y.a.createElement("path",{d:"M9 3.48c1.69 0 2.83.73 3.48 1.34l2.54-2.48C13.46.89 11.43 0 9 0 5.48 0 2.44 2.02.96 4.96l2.91 2.26C4.6 5.05 6.62 3.48 9 3.48z",fill:"#EA4335"}),y.a.createElement("path",{d:"M17.64 9.2c0-.74-.06-1.28-.19-1.84H9v3.34h4.96c-.1.83-.64 2.08-1.84 2.92l2.84 2.2c1.7-1.57 2.68-3.88 2.68-6.62z",fill:"#4285F4"}),y.a.createElement("path",{d:"M3.88 10.78A5.54 5.54 0 0 1 3.58 9c0-.62.11-1.22.29-1.78L.96 4.96A9.008 9.008 0 0 0 0 9c0 1.45.35 2.82.96 4.04l2.92-2.26z",fill:"#FBBC05"}),y.a.createElement("path",{d:"M9 18c2.43 0 4.47-.8 5.96-2.18l-2.84-2.2c-.76.53-1.78.9-3.12.9-2.38 0-4.4-1.57-5.12-3.74L.97 13.04C2.45 15.98 5.48 18 9 18z",fill:"#34A853"}),y.a.createElement("path",{fill:"none",d:"M0 0h18v18H0z"}))))}function p(e){var t=o(Object(g.useState)(!1),2),n=t[0],r=t[1],i=o(Object(g.useState)(!1),2),c=i[0],a=i[1],u=e.tag,l=e.type,s=e.className,p=e.disabledStyle,h=e.buttonText,m=e.children,v=e.render,S=e.theme,O=e.icon,j=e.disabled,w=b({onSuccess:e.onSuccess,onAutoLoadFinished:e.onAutoLoadFinished,onRequest:e.onRequest,onFailure:e.onFailure,onScriptLoadFailure:e.onScriptLoadFailure,clientId:e.clientId,cookiePolicy:e.cookiePolicy,loginHint:e.loginHint,hostedDomain:e.hostedDomain,autoLoad:e.autoLoad,isSignedIn:e.isSignedIn,fetchBasicProfile:e.fetchBasicProfile,redirectUri:e.redirectUri,discoveryDocs:e.discoveryDocs,uxMode:e.uxMode,scope:e.scope,accessType:e.accessType,responseType:e.responseType,jsSrc:e.jsSrc,prompt:e.prompt}),E=w.signIn,C=j||!w.loaded;if(v)return v({onClick:E,disabled:C});var _={backgroundColor:"dark"===S?"rgb(66, 133, 244)":"#fff",display:"inline-flex",alignItems:"center",color:"dark"===S?"#fff":"rgba(0, 0, 0, .54)",boxShadow:"0 2px 2px 0 rgba(0, 0, 0, .24), 0 0 1px 0 rgba(0, 0, 0, .24)",padding:0,borderRadius:2,border:"1px solid transparent",fontSize:14,fontWeight:"500",fontFamily:"Roboto, sans-serif"},k=C?Object.assign({},_,p):c?Object.assign({},_,{cursor:"pointer",backgroundColor:"dark"===S?"#3367D6":"#eee",color:"dark"===S?"#fff":"rgba(0, 0, 0, .54)",opacity:1}):n?Object.assign({},_,{cursor:"pointer",opacity:.9}):_;return y.a.createElement(u,{onMouseEnter:function(){return r(!0)},onMouseLeave:function(){r(!1),a(!1)},onMouseDown:function(){return a(!0)},onMouseUp:function(){return a(!1)},onClick:E,style:k,type:l,disabled:C,className:s},[O&&y.a.createElement(f,{key:1,active:c}
1),y.a.createElement(d,{icon:O,key:2},m||h)])}n.r(t),n.d(t,"default",function(){return m}),n.d(t,"GoogleLogin",function(){return m}),n.d(t,"GoogleLogout",function(){return S}),n.d(t,"useGoogleLogin",function(){return b}),n.d(t,"useGoogleLogout",function(){return v});var g=n(0),y=n.n(g),b=(n(1),function(e){function t(e){var t=e.getBasicProfile(),n=e.getAuthResponse(!0);e.googleId=t.getId(),e.tokenObj=n,e.tokenId=n.id_token,e.accessToken=n.access_token,e.profileObj={googleId:t.getId(),imageUrl:t.getImageUrl(),email:t.getEmail(),name:t.getName(),givenName:t.getGivenName(),familyName:t.getFamilyName()},c(e)}function n(e){if(e&&e.preventDefault(),M){var n=window.gapi.auth2.getAuthInstance(),r={prompt:F};y(),"code"===x?n.grantOfflineAccess(r).then(function(e){return c(e)},function(e){return f(e)}):n.signIn(r).then(function(e){return t(e)},function(e){return f(e)})}}var o,i=e.onSuccess,c=void 0===i?function(){}:i,a=e.onAutoLoadFinished,u=void 0===a?function(){}:a,d=e.onFailure,f=void 0===d?function(){}:d,p=e.onRequest,y=void 0===p?function(){}:p,b=e.onScriptLoadFailure,h=e.clientId,m=e.cookiePolicy,v=e.loginHint,S=e.hostedDomain,O=e.autoLoad,j=e.isSignedIn,w=e.fetchBasicProfile,E=e.redirectUri,C=e.discoveryDocs,_=e.uxMode,k=e.scope,P=e.accessType,x=e.responseType,I=e.jsSrc,A=void 0===I?"https://apis.google.com/js/api.js":I,F=e.prompt,T=function(e){if(Array.isArray(e))return e}(o=Object(g.useState)(!1))||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),2!==n.length);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}}(o,2)||function(e,t){if(e){if("string"==typeof e)return r(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,2):void 0}}(o,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),M=T[0],D=T[1];return Object(g.useEffect)(function(){var e=!1,n=b||f;return l(document,"script","google-login",A,function(){var r={client_id:h,cookie_policy:m,login_hint:v,hosted_domain:S,fetch_basic_profile:w,discoveryDocs:C,ux_mode:_,redirect_uri:E,scope:k,access_type:P};"code"===x&&(r.access_type="offline"),window.gapi.load("auth2",function(){var o=window.gapi.auth2.getAuthInstance();o?o.then(function(){e||(j&&o.isSignedIn.get()?(D(!0),u(!0),t(o.currentUser.get())):(D(!0),u(!1)))},function(e){f(e)}):window.gapi.auth2.init(r).then(function(n){if(!e){D(!0);var r=j&&n.isSignedIn.get();u(r),r&&t(n.currentUser.get())}},function(e){D(!0),u(!1),n(e)})})},function(e){n(e)}),function(){e=!0,s(document,"google-login")}},[]),Object(g.useEffect)(function(){O&&n()},[M]),{signIn:n,loaded:M}});function h(e){var t=a(Object(g.useState)(!1),2),n=t[0],r=t[1],o=a(Object(g.useState)(!1),2),i=o[0],c=o[1],u=e.tag,l=e.type,s=e.className,p=e.disabledStyle,b=e.buttonText,h=e.children,m=e.render,S=e.theme,O=e.icon,j=e.disabled,w=v({jsSrc:e.jsSrc,onF
1ailure:e.onFailure,onScriptLoadFailure:e.onScriptLoadFailure,clientId:e.clientId,cookiePolicy:e.cookiePolicy,loginHint:e.loginHint,hostedDomain:e.hostedDomain,fetchBasicProfile:e.fetchBasicProfile,discoveryDocs:e.discoveryDocs,uxMode:e.uxMode,redirectUri:e.redirectUri,scope:e.scope,accessType:e.accessType,onLogoutSuccess:e.onLogoutSuccess}),E=w.signOut,C=j||!w.loaded;if(m)return m({onClick:E,disabled:C});var _={backgroundColor:"dark"===S?"rgb(66, 133, 244)":"#fff",display:"inline-flex",alignItems:"center",color:"dark"===S?"#fff":"rgba(0, 0, 0, .54)",boxShadow:"0 2px 2px 0 rgba(0, 0, 0, .24), 0 0 1px 0 rgba(0, 0, 0, .24)",padding:0,borderRadius:2,border:"1px solid transparent",fontSize:14,fontWeight:"500",fontFamily:"Roboto, sans-serif"},k=C?Object.assign({},_,p):i?Object.assign({},_,{cursor:"pointer",backgroundColor:"dark"===S?"#3367D6":"#eee",color:"dark"===S?"#fff":"rgba(0, 0, 0, .54)",opacity:1}):n?Object.assign({},_,{cursor:"pointer",opacity:.9}):_;return y.a.createElement(u,{onMouseEnter:function(){return r(!0)},onMouseLeave:function(){r(!1),c(!1)},onMouseDown:function(){return c(!0)},onMouseUp:function(){return c(!1)},onClick:E,style:k,type:l,disabled:C,className:s},[O&&y.a.createElement(f,{key:1,active:i}),y.a.createElement(d,{icon:O,key:2},h||b)])}p.defaultProps={type:"button",tag:"button",buttonText:"Sign in with Google",scope:"profile email",accessType:"online",prompt:"",cookiePolicy:"single_host_origin",fetchBasicProfile:!0,isSignedIn:!1,uxMode:"popup",disabledStyle:{opacity:.6},icon:!0,theme:"light",onRequest:function(){}};var m=p,v=function(e){var t,n=e.jsSrc,r=void 0===n?"https://apis.google.com/js/api.js":n,o=e.onFailure,i=e.onScriptLoadFailure,a=e.clientId,u=e.cookiePolicy,d=e.loginHint,f=e.hostedDomain,p=e.fetchBasicProfile,y=e.discoveryDocs,b=e.uxMode,h=e.redirectUri,m=e.scope,v=e.accessType,S=e.onLogoutSuccess,O=function(e){if(Array.isArray(e))return e}(t=Object(g.useState)(!1))||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),2!==n.length);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}}(t,2)||function(e,t){if(e){if("string"==typeof e)return c(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,2):void 0}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),j=O[0],w=O[1],E=Object(g.useCallback)(function(){if(window.gapi){var e=window.gapi.auth2.getAuthInstance();null!=e&&e.then(function(){e.signOut().then(function(){e.disconnect(),S()})},function(e){return o(e)})}},[S]);return Object(g.useEffect)(function(){var e=i||o;return l(document,"script","google-login",r,function(){var t={client_id:a,cookie_policy:u,login_hint:d,hosted_domain:f,fetch_basic_profile:p,discoveryDocs:y,ux_mode:b,redirect_uri:h,scope:m,access_type:v};window.gapi.load("auth2",function(){window.gapi.auth2.getAuthInstance()?w(!0):window.gapi.auth2.init(t).then(function(){return w(!0)},function(t){return e(t)})})},function(t){e(t)}),function(){s(document,"google-login")}},[]),{signOut:E,loaded:j}};h.defaultProps={type:"button",tag:"button",buttonText:"Logout of Google",disabledStyle:{opacity:.6},icon:!0,theme:"light",jsSrc:"https://apis.google.com/js/api.js"};var S=h}],r.c=n,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,(function(t){return e[t]}).bind(null,o));return n}
1,r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=4);function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}},e.exports=r(n(2784))}}]); 2//# sourceMappingURL=6423-5cb6a48de621ef03.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.