@campphillip/widgets 3.0.0 → 3.1.0
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.
|
@@ -0,0 +1,502 @@
|
|
|
1
|
+
(()=>{function e(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}var n=globalThis,r={},o={},a=n.parcelRequire0d85;null==a&&((a=function(e){if(e in r)return r[e].exports;if(e in o){var t=o[e];delete o[e];var n={id:e,exports:{}};return r[e]=n,t.call(n.exports,n,n.exports),n.exports}var a=Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}).register=function(e,t){o[e]=t},n.parcelRequire0d85=a);var i=a.register;i("aPJhp",function(e,t){e.exports=a("9Hk4c")}),i("9Hk4c",function(t,n){e(t.exports,"Fragment",()=>r,e=>r=e),e(t.exports,"jsx",()=>o,e=>o=e),e(t.exports,"jsxs",()=>i,e=>i=e);var r,o,i,l=a("85Hg2"),u=Symbol.for("react.element"),s=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,f=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function p(e,t,n){var r,o={},a=null,i=null;for(r in void 0!==n&&(a=""+n),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)c.call(t,r)&&!d.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:u,type:e,key:a,ref:i,props:o,_owner:f.current}}r=s,o=p,i=p}),i("85Hg2",function(e,t){e.exports=a("6tvtz")}),i("6tvtz",function(t,n){e(t.exports,"Children",()=>r,e=>r=e),e(t.exports,"Component",()=>o,e=>o=e),e(t.exports,"Fragment",()=>a,e=>a=e),e(t.exports,"Profiler",()=>i,e=>i=e),e(t.exports,"PureComponent",()=>l,e=>l=e),e(t.exports,"StrictMode",()=>u,e=>u=e),e(t.exports,"Suspense",()=>s,e=>s=e),e(t.exports,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",()=>c,e=>c=e),e(t.exports,"cloneElement",()=>f,e=>f=e),e(t.exports,"createContext",()=>d,e=>d=e),e(t.exports,"createElement",()=>p,e=>p=e),e(t.exports,"createFactory",()=>h,e=>h=e),e(t.exports,"createRef",()=>m,e=>m=e),e(t.exports,"forwardRef",()=>y,e=>y=e),e(t.exports,"isValidElement",()=>g,e=>g=e),e(t.exports,"lazy",()=>v,e=>v=e),e(t.exports,"memo",()=>b,e=>b=e),e(t.exports,"startTransition",()=>w,e=>w=e),e(t.exports,"unstable_act",()=>x,e=>x=e),e(t.exports,"useCallback",()=>k,e=>k=e),e(t.exports,"useContext",()=>S,e=>S=e),e(t.exports,"useDebugValue",()=>_,e=>_=e),e(t.exports,"useDeferredValue",()=>E,e=>E=e),e(t.exports,"useEffect",()=>C,e=>C=e),e(t.exports,"useId",()=>P,e=>P=e),e(t.exports,"useImperativeHandle",()=>O,e=>O=e),e(t.exports,"useInsertionEffect",()=>T,e=>T=e),e(t.exports,"useLayoutEffect",()=>j,e=>j=e),e(t.exports,"useMemo",()=>N,e=>N=e),e(t.exports,"useReducer",()=>D,e=>D=e),e(t.exports,"useRef",()=>M,e=>M=e),e(t.exports,"useState",()=>I,e=>I=e),e(t.exports,"useSyncExternalStore",()=>R,e=>R=e),e(t.exports,"useTransition",()=>z,e=>z=e),e(t.exports,"version",()=>L,e=>L=e);var r,o,a,i,l,u,s,c,f,d,p,h,m,y,g,v,b,w,x,k,S,_,E,C,P,O,T,j,N,D,M,I,R,z,L,U=Symbol.for("react.element"),A=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),W=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),X=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),Q=Symbol.iterator,G={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},K=Object.assign,J={};function Z(e,t,n){this.props=e,this.context=t,this.refs=J,this.updater=n||G}function ee(){}function et(e,t,n){this.props=e,this.context=t,this.refs=J,this.updater=n||G}Z.prototype.isReactComponent={},Z.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},Z.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},ee.prototype=Z.prototype;var en=et.prototype=new ee;en.constructor=et,K(en,Z.prototype),en.isPureReactComponent=!0;var er=Array.isArray,eo=Object.prototype.hasOwnProperty,ea={current:null},ei={key:!0,ref:!0,__self:!0,__source:!0};function el(e,t,n){var r,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)eo.call(t,r)&&!ei.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),s=0;s<l;s++)u[s]=arguments[s+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:U,type:e,key:a,ref:i,props:o,_owner:ea.current}}function eu(e){return"object"==typeof e&&null!==e&&e.$$typeof===U}var es=/\/+/g;function ec(e,t){var n,r;return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36)}function ef(e,t,n){if(null==e)return e;var r=[],o=0;return function e(t,n,r,o,a){var i,l,u,s=typeof t;("undefined"===s||"boolean"===s)&&(t=null);var c=!1;if(null===t)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case U:case A:c=!0}}if(c)return a=a(c=t),t=""===o?"."+ec(c,0):o,er(a)?(r="",null!=t&&(r=t.replace(es,"$&/")+"/"),e(a,n,r,"",function(e){return e})):null!=a&&(eu(a)&&(i=a,l=r+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(es,"$&/")+"/")+t,a={$$typeof:U,type:i.type,key:l,ref:i.ref,props:i.props,_owner:i._owner}),n.push(a)),1;if(c=0,o=""===o?".":o+":",er(t))for(var f=0;f<t.length;f++){var d=o+ec(s=t[f],f);c+=e(s,n,r,d,a)}else if("function"==typeof(d=null===(u=t)||"object"!=typeof u?null:"function"==typeof(u=Q&&u[Q]||u["@@iterator"])?u:null))for(t=d.call(t),f=0;!(s=t.next()).done;)d=o+ec(s=s.value,f++),c+=e(s,n,r,d,a);else if("object"===s)throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(n=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.");return c}(e,r,"","",function(e){return t.call(n,e,o++)}),r}function ed(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var ep={current:null},eh={transition:null};r={map:ef,forEach:function(e,t,n){ef(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ef(e,function(){t++}),t},toArray:function(e){return ef(e,function(e){return e})||[]},only:function(e){if(!eu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},o=Z,a=F,i=B,l=et,u=q,s=V,c={ReactCurrentDispatcher:ep,ReactCurrentBatchConfig:eh,ReactCurrentOwner:ea},f=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=K({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=ea.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)eo.call(t,u)&&!ei.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){l=Array(u);for(var s=0;s<u;s++)l[s]=arguments[s+2];r.children=l}return{$$typeof:U,type:e.type,key:o,ref:a,props:r,_owner:i}},d=function(e){return(e={$$typeof:W,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:H,_context:e},e.Consumer=e},p=el,h=function(e){var t=el.bind(null,e);return t.type=e,t},m=function(){return{current:null}},y=function(e){return{$$typeof:Y,render:e}},g=eu,v=function(e){return{$$typeof:$,_payload:{_status:-1,_result:e},_init:ed}},b=function(e,t){return{$$typeof:X,type:e,compare:void 0===t?null:t}},w=function(e){var t=eh.transition;eh.transition={};try{e()}finally{eh.transition=t}},x=function(){throw Error("act(...) is not supported in production builds of React.")},k=function(e,t){return ep.current.useCallback(e,t)},S=function(e){return ep.current.useContext(e)},_=function(){},E=function(e){return ep.current.useDeferredValue(e)},C=function(e,t){return ep.current.useEffect(e,t)},P=function(){return ep.current.useId()},O=function(e,t,n){return ep.current.useImperativeHandle(e,t,n)},T=function(e,t){return ep.current.useInsertionEffect(e,t)},j=function(e,t){return ep.current.useLayoutEffect(e,t)},N=function(e,t){return ep.current.useMemo(e,t)},D=function(e,t,n){return ep.current.useReducer(e,t,n)},M=function(e){return ep.current.useRef(e)},I=function(e){return ep.current.useState(e)},R=function(e,t,n){return ep.current.useSyncExternalStore(e,t,n)},z=function(){return ep.current.useTransition()},L="18.2.0"}),i("6xKaq",function(t,n){e(t.exports,"createRoot",()=>r,e=>r=e);var r,o=a("2BCLI");r=o.createRoot,o.hydrateRoot}),i("2BCLI",function(e,t){// DCE check should happen before ReactDOM bundle executes so that
|
|
2
|
+
// DevTools can report bad minification during injection.
|
|
3
|
+
(function e(){/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{// Verify that the code above has been dead code eliminated (DCE'd).
|
|
4
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){// DevTools shouldn't crash React, no matter what.
|
|
5
|
+
// We should still report in case we break this code.
|
|
6
|
+
console.error(e)}})(),e.exports=a("bU6y3")}),i("bU6y3",function(t,n){e(t.exports,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",()=>H,e=>H=e),e(t.exports,"createPortal",()=>W,e=>W=e),e(t.exports,"createRoot",()=>Y,e=>Y=e),e(t.exports,"findDOMNode",()=>V,e=>V=e),e(t.exports,"flushSync",()=>X,e=>X=e),e(t.exports,"hydrate",()=>$,e=>$=e),e(t.exports,"hydrateRoot",()=>Q,e=>Q=e),e(t.exports,"render",()=>G,e=>G=e),e(t.exports,"unmountComponentAtNode",()=>K,e=>K=e),e(t.exports,"unstable_batchedUpdates",()=>J,e=>J=e),e(t.exports,"unstable_renderSubtreeIntoContainer",()=>Z,e=>Z=e),e(t.exports,"version",()=>ee,e=>ee=e);var r,o,i,l,u,s,c=a("85Hg2"),f=a("kMsGZ");function d(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p=new Set,h={};function m(e,t){y(e,t),y(e+"Capture",t)}function y(e,t){for(h[e]=t,e=0;e<t.length;e++)p.add(t[e])}var g=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),v=Object.prototype.hasOwnProperty,b=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,w={},x={};function k(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){S[e]=new k(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];S[t]=new k(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){S[e]=new k(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){S[e]=new k(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){S[e]=new k(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){S[e]=new k(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){S[e]=new k(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){S[e]=new k(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){S[e]=new k(e,5,!1,e.toLowerCase(),null,!1,!1)});var _=/[\-:]([a-z])/g;function E(e){return e[1].toUpperCase()}function C(e,t,n,r){var o,a=S.hasOwnProperty(t)?S[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(r)return!1;if(null!==n)return!n.acceptsBooleans;return"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e;default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?(o=t,(!!v.call(x,o)||!v.call(w,o)&&(b.test(o)?x[o]=!0:(w[o]=!0,!1)))&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n))):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_,E);S[t]=new k(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_,E);S[t]=new k(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_,E);S[t]=new k(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){S[e]=new k(e,1,!1,e.toLowerCase(),null,!1,!1)}),S.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){S[e]=new k(e,1,!1,e.toLowerCase(),null,!0,!0)});var P=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,O=Symbol.for("react.element"),T=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),I=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),A=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var F=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var q=Symbol.iterator;function B(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=q&&e[q]||e["@@iterator"])?e:null}var H,W,Y,V,X,$,Q,G,K,J,Z,ee,et,en=Object.assign;function er(e){if(void 0===et)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);et=t&&t[1]||""}return"\n"+et+e}var eo=!1;function ea(e,t){if(!e||eo)return"";eo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t){if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do if(i--,0>--l||o[i]!==a[l]){var u="\n"+o[i].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=i&&0<=l)break}}}finally{eo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?er(e):""}function ei(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function el(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function eu(e){e._valueTracker||(e._valueTracker=function(e){var t=el(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function es(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=el(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ec(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ef(e,t){var n=t.checked;return en({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ed(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ei(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ep(e,t){null!=(t=t.checked)&&C(e,"checked",t,!1)}function eh(e,t){ep(e,t);var n=ei(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r){e.removeAttribute("value");return}t.hasOwnProperty("value")?ey(e,t.type,n):t.hasOwnProperty("defaultValue")&&ey(e,t.type,ei(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function em(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ey(e,t,n){("number"!==t||ec(e.ownerDocument)!==e)&&(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var eg=Array.isArray;function ev(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(o=0,n=""+ei(n),t=null;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function eb(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(d(91));return en({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ew(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(d(92));if(eg(n)){if(1<n.length)throw Error(d(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ei(n)}}function ex(e,t){var n=ei(t.value),r=ei(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ek(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function eS(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function e_(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?eS(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var eE,eC,eP=(eE=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((eC=eC||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=eC.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return eE(e,t,n,r)})}:eE);function eO(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}var eT={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ej=["Webkit","ms","Moz","O"];function eN(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||eT.hasOwnProperty(e)&&eT[e]?(""+t).trim():t+"px"}function eD(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=eN(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(eT).forEach(function(e){ej.forEach(function(t){eT[t=t+e.charAt(0).toUpperCase()+e.substring(1)]=eT[e]})});var eM=en({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function eI(e,t){if(t){if(eM[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(d(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(d(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(d(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(d(62))}}function eR(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ez=null;function eL(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var eU=null,eA=null,eF=null;function eq(e){if(e=rQ(e)){if("function"!=typeof eU)throw Error(d(280));var t=e.stateNode;t&&(t=rK(t),eU(e.stateNode,e.type,t))}}function eB(e){eA?eF?eF.push(e):eF=[e]:eA=e}function eH(){if(eA){var e=eA,t=eF;if(eF=eA=null,eq(e),t)for(e=0;e<t.length;e++)eq(t[e])}}function eW(e,t){return e(t)}function eY(){}var eV=!1;function eX(e,t,n){if(eV)return e(t,n);eV=!0;try{return eW(e,t,n)}finally{eV=!1,(null!==eA||null!==eF)&&(eY(),eH())}}function e$(e,t){var n=e.stateNode;if(null===n)return null;var r=rK(n);if(null===r)return null;switch(n=r[t],t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(d(231,t,typeof n));return n}var eQ=!1;if(g)try{var eG={};Object.defineProperty(eG,"passive",{get:function(){eQ=!0}}),window.addEventListener("test",eG,eG),window.removeEventListener("test",eG,eG)}catch(e){eQ=!1}function eK(e,t,n,r,o,a,i,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var eJ=!1,eZ=null,e0=!1,e1=null,e2={onError:function(e){eJ=!0,eZ=e}};function e4(e,t,n,r,o,a,i,l,u){eJ=!1,eZ=null,eK.apply(e2,arguments)}function e3(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do 0!=(4098&(t=e).flags)&&(n=t.return),e=t.return;while(e)}return 3===t.tag?n:null}function e6(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function e8(e){if(e3(e)!==e)throw Error(d(188))}function e5(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=e3(e)))throw Error(d(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return e8(o),e;if(a===r)return e8(o),t;a=a.sibling}throw Error(d(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i){for(l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i)throw Error(d(189))}}if(n.alternate!==r)throw Error(d(190))}if(3!==n.tag)throw Error(d(188));return n.stateNode.current===n?e:t}(e))?function e(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){var n=e(t);if(null!==n)return n;t=t.sibling}return null}(e):null}var e9=f.unstable_scheduleCallback,e7=f.unstable_cancelCallback,te=f.unstable_shouldYield,tt=f.unstable_requestPaint,tn=f.unstable_now,tr=f.unstable_getCurrentPriorityLevel,to=f.unstable_ImmediatePriority,ta=f.unstable_UserBlockingPriority,ti=f.unstable_NormalPriority,tl=f.unstable_LowPriority,tu=f.unstable_IdlePriority,ts=null,tc=null,tf=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(td(e)/tp|0)|0},td=Math.log,tp=Math.LN2,th=64,tm=4194304;function ty(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function tg(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=ty(l):0!=(a&=i)&&(r=ty(a))}else 0!=(i=n&~o)?r=ty(i):0!==a&&(r=ty(a));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!=(4194240&a)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-tf(t)),r|=e[n],t&=~o;return r}function tv(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function tb(){var e=th;return 0==(4194240&(th<<=1))&&(th=64),e}function tw(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tx(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-tf(t)]=n}function tk(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-tf(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var tS=0;function t_(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var tE,tC,tP,tO,tT,tj=!1,tN=[],tD=null,tM=null,tI=null,tR=new Map,tz=new Map,tL=[],tU="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function tA(e,t){switch(e){case"focusin":case"focusout":tD=null;break;case"dragenter":case"dragleave":tM=null;break;case"mouseover":case"mouseout":tI=null;break;case"pointerover":case"pointerout":tR.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":tz.delete(t.pointerId)}}function tF(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&null!==(t=rQ(t))&&tC(t)):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o)),e}function tq(e){var t=r$(e.target);if(null!==t){var n=e3(t);if(null!==n){if(13===(t=n.tag)){if(null!==(t=e6(n))){e.blockedOn=t,tT(e.priority,function(){tP(n)});return}}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=3===n.tag?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function tB(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=tZ(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=rQ(n))&&tC(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ez=r,n.target.dispatchEvent(r),ez=null,t.shift()}return!0}function tH(e,t,n){tB(e)&&n.delete(t)}function tW(){tj=!1,null!==tD&&tB(tD)&&(tD=null),null!==tM&&tB(tM)&&(tM=null),null!==tI&&tB(tI)&&(tI=null),tR.forEach(tH),tz.forEach(tH)}function tY(e,t){e.blockedOn===t&&(e.blockedOn=null,tj||(tj=!0,f.unstable_scheduleCallback(f.unstable_NormalPriority,tW)))}function tV(e){function t(t){return tY(t,e)}if(0<tN.length){tY(tN[0],e);for(var n=1;n<tN.length;n++){var r=tN[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==tD&&tY(tD,e),null!==tM&&tY(tM,e),null!==tI&&tY(tI,e),tR.forEach(t),tz.forEach(t),n=0;n<tL.length;n++)(r=tL[n]).blockedOn===e&&(r.blockedOn=null);for(;0<tL.length&&null===(n=tL[0]).blockedOn;)tq(n),null===n.blockedOn&&tL.shift()}var tX=P.ReactCurrentBatchConfig,t$=!0;function tQ(e,t,n,r){var o=tS,a=tX.transition;tX.transition=null;try{tS=1,tK(e,t,n,r)}finally{tS=o,tX.transition=a}}function tG(e,t,n,r){var o=tS,a=tX.transition;tX.transition=null;try{tS=4,tK(e,t,n,r)}finally{tS=o,tX.transition=a}}function tK(e,t,n,r){if(t$){var o=tZ(e,t,n,r);if(null===o)rw(e,t,r,tJ,n),tA(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return tD=tF(tD,e,t,n,r,o),!0;case"dragenter":return tM=tF(tM,e,t,n,r,o),!0;case"mouseover":return tI=tF(tI,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return tR.set(a,tF(tR.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,tz.set(a,tF(tz.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(tA(e,r),4&t&&-1<tU.indexOf(e)){for(;null!==o;){var a=rQ(o);if(null!==a&&tE(a),null===(a=tZ(e,t,n,r))&&rw(e,t,r,tJ,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else rw(e,t,r,null,n)}}var tJ=null;function tZ(e,t,n,r){if(tJ=null,null!==(e=r$(e=eL(r)))){if(null===(t=e3(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=e6(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}return tJ=e,null}function t0(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(tr()){case to:return 1;case ta:return 4;case ti:case tl:return 16;case tu:return 536870912;default:return 16}default:return 16}}var t1=null,t2=null,t4=null;function t3(){if(t4)return t4;var e,t,n=t2,r=n.length,o="value"in t1?t1.value:t1.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return t4=o.slice(e,1<t?1-t:void 0)}function t6(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function t8(){return!0}function t5(){return!1}function t9(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?t8:t5,this.isPropagationStopped=t5,this}return en(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=t8)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=t8)},persist:function(){},isPersistent:t8}),t}var t7,ne,nt,nn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nr=t9(nn),no=en({},nn,{view:0,detail:0}),na=t9(no),ni=en({},no,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ng,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==nt&&(nt&&"mousemove"===e.type?(t7=e.screenX-nt.screenX,ne=e.screenY-nt.screenY):ne=t7=0,nt=e),t7)},movementY:function(e){return"movementY"in e?e.movementY:ne}}),nl=t9(ni),nu=t9(en({},ni,{dataTransfer:0})),ns=t9(en({},no,{relatedTarget:0})),nc=t9(en({},nn,{animationName:0,elapsedTime:0,pseudoElement:0})),nf=t9(en({},nn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),nd=t9(en({},nn,{data:0})),np={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nh={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},nm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ny(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=nm[e])&&!!t[e]}function ng(){return ny}var nv=t9(en({},no,{key:function(e){if(e.key){var t=np[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=t6(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?nh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ng,charCode:function(e){return"keypress"===e.type?t6(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?t6(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),nb=t9(en({},ni,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),nw=t9(en({},no,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ng})),nx=t9(en({},nn,{propertyName:0,elapsedTime:0,pseudoElement:0})),nk=t9(en({},ni,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),nS=[9,13,27,32],n_=g&&"CompositionEvent"in window,nE=null;g&&"documentMode"in document&&(nE=document.documentMode);var nC=g&&"TextEvent"in window&&!nE,nP=g&&(!n_||nE&&8<nE&&11>=nE),nO=!1;function nT(e,t){switch(e){case"keyup":return -1!==nS.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nj(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var nN=!1,nD={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function nM(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!nD[e.type]:"textarea"===t}function nI(e,t,n,r){eB(r),0<(t=rk(t,"onChange")).length&&(n=new nr("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nR=null,nz=null;function nL(e){rh(e,0)}function nU(e){if(es(rG(e)))return e}function nA(e,t){if("change"===e)return t}var nF=!1;if(g){if(g){var nq="oninput"in document;if(!nq){var nB=document.createElement("div");nB.setAttribute("oninput","return;"),nq="function"==typeof nB.oninput}r=nq}else r=!1;nF=r&&(!document.documentMode||9<document.documentMode)}function nH(){nR&&(nR.detachEvent("onpropertychange",nW),nz=nR=null)}function nW(e){if("value"===e.propertyName&&nU(nz)){var t=[];nI(t,nz,e,eL(e)),eX(nL,t)}}function nY(e,t,n){"focusin"===e?(nH(),nR=t,nz=n,nR.attachEvent("onpropertychange",nW)):"focusout"===e&&nH()}function nV(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return nU(nz)}function nX(e,t){if("click"===e)return nU(t)}function n$(e,t){if("input"===e||"change"===e)return nU(t)}var nQ="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function nG(e,t){if(nQ(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!v.call(t,o)||!nQ(e[o],t[o]))return!1}return!0}function nK(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nJ(e,t){var n,r=nK(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=nK(r)}}function nZ(){for(var e=window,t=ec();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=ec(e.document)}return t}function n0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var n1=g&&"documentMode"in document&&11>=document.documentMode,n2=null,n4=null,n3=null,n6=!1;function n8(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;n6||null==n2||n2!==ec(r)||(r="selectionStart"in(r=n2)&&n0(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},n3&&nG(n3,r)||(n3=r,0<(r=rk(n4,"onSelect")).length&&(t=new nr("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=n2)))}function n5(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var n9={animationend:n5("Animation","AnimationEnd"),animationiteration:n5("Animation","AnimationIteration"),animationstart:n5("Animation","AnimationStart"),transitionend:n5("Transition","TransitionEnd")},n7={},re={};function rt(e){if(n7[e])return n7[e];if(!n9[e])return e;var t,n=n9[e];for(t in n)if(n.hasOwnProperty(t)&&t in re)return n7[e]=n[t];return e}g&&(re=document.createElement("div").style,"AnimationEvent"in window||(delete n9.animationend.animation,delete n9.animationiteration.animation,delete n9.animationstart.animation),"TransitionEvent"in window||delete n9.transitionend.transition);var rn=rt("animationend"),rr=rt("animationiteration"),ro=rt("animationstart"),ra=rt("transitionend"),ri=new Map,rl="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ru(e,t){ri.set(e,t),m(t,[e])}for(var rs=0;rs<rl.length;rs++){var rc=rl[rs];ru(rc.toLowerCase(),"on"+(rc[0].toUpperCase()+rc.slice(1)))}ru(rn,"onAnimationEnd"),ru(rr,"onAnimationIteration"),ru(ro,"onAnimationStart"),ru("dblclick","onDoubleClick"),ru("focusin","onFocus"),ru("focusout","onBlur"),ru(ra,"onTransitionEnd"),y("onMouseEnter",["mouseout","mouseover"]),y("onMouseLeave",["mouseout","mouseover"]),y("onPointerEnter",["pointerout","pointerover"]),y("onPointerLeave",["pointerout","pointerover"]),m("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),m("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),m("onBeforeInput",["compositionend","keypress","textInput","paste"]),m("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),m("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),m("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rd=new Set("cancel close invalid load scroll toggle".split(" ").concat(rf));function rp(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,i,l,u){if(e4.apply(this,arguments),eJ){if(eJ){var s=eZ;eJ=!1,eZ=null}else throw Error(d(198));e0||(e0=!0,e1=s)}}(r,t,void 0,e),e.currentTarget=null}function rh(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==a&&o.isPropagationStopped())break e;rp(o,l,s),a=u}else for(i=0;i<r.length;i++){if(u=(l=r[i]).instance,s=l.currentTarget,l=l.listener,u!==a&&o.isPropagationStopped())break e;rp(o,l,s),a=u}}}if(e0)throw e=e1,e0=!1,e1=null,e}function rm(e,t){var n=t[rY];void 0===n&&(n=t[rY]=new Set);var r=e+"__bubble";n.has(r)||(rb(t,e,2,!1),n.add(r))}function ry(e,t,n){var r=0;t&&(r|=4),rb(n,e,r,t)}var rg="_reactListening"+Math.random().toString(36).slice(2);function rv(e){if(!e[rg]){e[rg]=!0,p.forEach(function(t){"selectionchange"!==t&&(rd.has(t)||ry(t,!1,e),ry(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[rg]||(t[rg]=!0,ry("selectionchange",!1,t))}}function rb(e,t,n,r){switch(t0(t)){case 1:var o=tQ;break;case 4:o=tG;break;default:o=tK}n=o.bind(null,t,n,e),o=void 0,eQ&&("touchstart"===t||"touchmove"===t||"wheel"===t)&&(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function rw(e,t,n,r,o){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var u=i.tag;if((3===u||4===u)&&((u=i.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=r$(l)))return;if(5===(u=i.tag)||6===u){r=a=i;continue e}l=l.parentNode}}r=r.return}eX(function(){var r=a,o=eL(n),i=[];e:{var l=ri.get(e);if(void 0!==l){var u=nr,s=e;switch(e){case"keypress":if(0===t6(n))break e;case"keydown":case"keyup":u=nv;break;case"focusin":s="focus",u=ns;break;case"focusout":s="blur",u=ns;break;case"beforeblur":case"afterblur":u=ns;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=nl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=nu;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=nw;break;case rn:case rr:case ro:u=nc;break;case ra:u=nx;break;case"scroll":u=na;break;case"wheel":u=nk;break;case"copy":case"cut":case"paste":u=nf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=nb}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&null!=(m=e$(h,d))&&c.push(rx(h,m,p))),f)break;h=h.return}0<c.length&&(l=new u(l,s,null,n,o),i.push({event:l,listeners:c}))}}if(0==(7&t)){if(l="mouseover"===e||"pointerover"===e,u="mouseout"===e||"pointerout"===e,!(l&&n!==ez&&(s=n.relatedTarget||n.fromElement)&&(r$(s)||s[rW]))&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(s=n.relatedTarget||n.toElement,u=r,null!==(s=s?r$(s):null)&&(f=e3(s),s!==f||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=nl,m="onMouseLeave",d="onMouseEnter",h="mouse",("pointerout"===e||"pointerover"===e)&&(c=nb,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?l:rG(u),p=null==s?l:rG(s),(l=new c(m,h+"leave",u,n,o)).target=f,l.relatedTarget=p,m=null,r$(o)===r&&((c=new c(d,h+"enter",s,n,o)).target=p,c.relatedTarget=f,m=c),f=m,u&&s)t:{for(c=u,d=s,h=0,p=c;p;p=rS(p))h++;for(p=0,m=d;m;m=rS(m))p++;for(;0<h-p;)c=rS(c),h--;for(;0<p-h;)d=rS(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break t;c=rS(c),d=rS(d)}c=null}else c=null;null!==u&&r_(i,l,u,c,!1),null!==s&&null!==f&&r_(i,f,s,c,!0)}e:{if("select"===(u=(l=r?rG(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var y,g=nA;else if(nM(l)){if(nF)g=n$;else{g=nV;var v=nY}}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=nX);if(g&&(g=g(e,r))){nI(i,g,n,o);break e}v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&ey(l,"number",l.value)}switch(v=r?rG(r):window,e){case"focusin":(nM(v)||"true"===v.contentEditable)&&(n2=v,n4=r,n3=null);break;case"focusout":n3=n4=n2=null;break;case"mousedown":n6=!0;break;case"contextmenu":case"mouseup":case"dragend":n6=!1,n8(i,n,o);break;case"selectionchange":if(n1)break;case"keydown":case"keyup":n8(i,n,o)}if(n_)t:{switch(e){case"compositionstart":var b="onCompositionStart";break t;case"compositionend":b="onCompositionEnd";break t;case"compositionupdate":b="onCompositionUpdate";break t}b=void 0}else nN?nT(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(nP&&"ko"!==n.locale&&(nN||"onCompositionStart"!==b?"onCompositionEnd"===b&&nN&&(y=t3()):(t2="value"in(t1=o)?t1.value:t1.textContent,nN=!0)),0<(v=rk(r,b)).length&&(b=new nd(b,e,null,n,o),i.push({event:b,listeners:v}),y?b.data=y:null!==(y=nj(n))&&(b.data=y))),(y=nC?function(e,t){switch(e){case"compositionend":return nj(t);case"keypress":if(32!==t.which)return null;return nO=!0," ";case"textInput":return" "===(e=t.data)&&nO?null:e;default:return null}}(e,n):function(e,t){if(nN)return"compositionend"===e||!n_&&nT(e,t)?(e=t3(),t4=t2=t1=null,nN=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return nP&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=rk(r,"onBeforeInput")).length&&(o=new nd("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=y)}rh(i,t)})}function rx(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rk(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=e$(e,n))&&r.unshift(rx(e,a,o)),null!=(a=e$(e,t))&&r.push(rx(e,a,o))),e=e.return}return r}function rS(e){if(null===e)return null;do e=e.return;while(e&&5!==e.tag)return e||null}function r_(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(u=e$(n,a))&&i.unshift(rx(n,u,l)):o||null!=(u=e$(n,a))&&i.push(rx(n,u,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var rE=/\r\n?/g,rC=/\u0000|\uFFFD/g;function rP(e){return("string"==typeof e?e:""+e).replace(rE,"\n").replace(rC,"")}function rO(e,t,n){if(t=rP(t),rP(e)!==t&&n)throw Error(d(425))}function rT(){}var rj=null,rN=null;function rD(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var rM="function"==typeof setTimeout?setTimeout:void 0,rI="function"==typeof clearTimeout?clearTimeout:void 0,rR="function"==typeof Promise?Promise:void 0,rz="function"==typeof queueMicrotask?queueMicrotask:void 0!==rR?function(e){return rR.resolve(null).then(e).catch(rL)}:rM;function rL(e){setTimeout(function(){throw e})}function rU(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType){if("/$"===(n=o.data)){if(0===r){e.removeChild(o),tV(t);return}r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++}n=o}while(n)tV(t)}function rA(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function rF(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var rq=Math.random().toString(36).slice(2),rB="__reactFiber$"+rq,rH="__reactProps$"+rq,rW="__reactContainer$"+rq,rY="__reactEvents$"+rq,rV="__reactListeners$"+rq,rX="__reactHandles$"+rq;function r$(e){var t=e[rB];if(t)return t;for(var n=e.parentNode;n;){if(t=n[rW]||n[rB]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=rF(e);null!==e;){if(n=e[rB])return n;e=rF(e)}return t}n=(e=n).parentNode}return null}function rQ(e){return(e=e[rB]||e[rW])&&(5===e.tag||6===e.tag||13===e.tag||3===e.tag)?e:null}function rG(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(d(33))}function rK(e){return e[rH]||null}var rJ=[],rZ=-1;function r0(e){return{current:e}}function r1(e){0>rZ||(e.current=rJ[rZ],rJ[rZ]=null,rZ--)}function r2(e,t){rJ[++rZ]=e.current,e.current=t}var r4={},r3=r0(r4),r6=r0(!1),r8=r4;function r5(e,t){var n=e.type.contextTypes;if(!n)return r4;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function r9(e){return null!=(e=e.childContextTypes)}function r7(){r1(r6),r1(r3)}function oe(e,t,n){if(r3.current!==r4)throw Error(d(168));r2(r3,t),r2(r6,n)}function ot(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(d(108,function(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return function e(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case j:return"Fragment";case T:return"Portal";case D:return"Profiler";case N:return"StrictMode";case z:return"Suspense";case L:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case I:return(t.displayName||"Context")+".Consumer";case M:return(t._context.displayName||"Context")+".Provider";case R:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case U:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case A:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}return null}(t);case 8:return t===N?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}(e)||"Unknown",o));return en({},n,r)}function on(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||r4,r8=r3.current,r2(r3,e),r2(r6,r6.current),!0}function or(e,t,n){var r=e.stateNode;if(!r)throw Error(d(169));n?(e=ot(e,t,r8),r.__reactInternalMemoizedMergedChildContext=e,r1(r6),r1(r3),r2(r3,e)):r1(r6),r2(r6,n)}var oo=null,oa=!1,oi=!1;function ol(e){null===oo?oo=[e]:oo.push(e)}function ou(){if(!oi&&null!==oo){oi=!0;var e=0,t=tS;try{var n=oo;for(tS=1;e<n.length;e++){var r=n[e];do r=r(!0);while(null!==r)}oo=null,oa=!1}catch(t){throw null!==oo&&(oo=oo.slice(e+1)),e9(to,ou),t}finally{tS=t,oi=!1}}return null}var os=[],oc=0,of=null,od=0,op=[],oh=0,om=null,oy=1,og="";function ov(e,t){os[oc++]=od,os[oc++]=of,of=e,od=t}function ob(e,t,n){op[oh++]=oy,op[oh++]=og,op[oh++]=om,om=e;var r=oy;e=og;var o=32-tf(r)-1;r&=~(1<<o),n+=1;var a=32-tf(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,oy=1<<32-tf(t)+o|n<<o|r,og=a+e}else oy=1<<a|n<<o|r,og=e}function ow(e){null!==e.return&&(ov(e,1),ob(e,1,0))}function ox(e){for(;e===of;)of=os[--oc],os[oc]=null,od=os[--oc],os[oc]=null;for(;e===om;)om=op[--oh],op[oh]=null,og=op[--oh],op[oh]=null,oy=op[--oh],op[oh]=null}var ok=null,oS=null,o_=!1,oE=null;function oC(e,t){var n=l9(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function oP(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ok=e,oS=rA(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ok=e,oS=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==om?{id:oy,overflow:og}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=l9(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ok=e,oS=null,!0);default:return!1}}function oO(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function oT(e){if(o_){var t=oS;if(t){var n=t;if(!oP(e,t)){if(oO(e))throw Error(d(418));t=rA(n.nextSibling);var r=ok;t&&oP(e,t)?oC(r,n):(e.flags=-4097&e.flags|2,o_=!1,ok=e)}}else{if(oO(e))throw Error(d(418));e.flags=-4097&e.flags|2,o_=!1,ok=e}}}function oj(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ok=e}function oN(e){if(e!==ok)return!1;if(!o_)return oj(e),o_=!0,!1;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!rD(e.type,e.memoizedProps)),t&&(t=oS)){if(oO(e))throw oD(),Error(d(418));for(;t;)oC(e,t),t=rA(t.nextSibling)}if(oj(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(d(317));e:{for(t=0,e=e.nextSibling;e;){if(8===e.nodeType){var t,n=e.data;if("/$"===n){if(0===t){oS=rA(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oS=null}}else oS=ok?rA(e.stateNode.nextSibling):null;return!0}function oD(){for(var e=oS;e;)e=rA(e.nextSibling)}function oM(){oS=ok=null,o_=!1}function oI(e){null===oE?oE=[e]:oE.push(e)}var oR=P.ReactCurrentBatchConfig;function oz(e,t){if(e&&e.defaultProps)for(var n in t=en({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var oL=r0(null),oU=null,oA=null,oF=null;function oq(){oF=oA=oU=null}function oB(e){var t=oL.current;r1(oL),e._currentValue=t}function oH(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function oW(e,t){oU=e,oF=oA=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(ix=!0),e.firstContext=null)}function oY(e){var t=e._currentValue;if(oF!==e){if(e={context:e,memoizedValue:t,next:null},null===oA){if(null===oU)throw Error(d(308));oA=e,oU.dependencies={lanes:0,firstContext:e}}else oA=oA.next=e}return t}var oV=null;function oX(e){null===oV?oV=[e]:oV.push(e)}function o$(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,oX(t)):(n.next=o.next,o.next=n),t.interleaved=n,oQ(e,r)}function oQ(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var oG=!1;function oK(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function oJ(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function oZ(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function o0(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&lu)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,oQ(e,n)}return null===(o=r.interleaved)?(t.next=t,oX(r)):(t.next=o.next,o.next=t),r.interleaved=t,oQ(e,n)}function o1(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tk(e,n)}}function o2(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n)null===a?o=a=t:a=a.next=t}else o=a=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function o4(e,t,n,r){var o=e.updateQueue;oG=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,s=u.next;u.next=null,null===i?a=s:i.next=s,i=u;var c=e.alternate;null!==c&&(l=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===l?c.firstBaseUpdate=s:l.next=s,c.lastBaseUpdate=u)}if(null!==a){var f=o.baseState;for(i=0,c=s=u=null,l=a;;){var d=l.lane,p=l.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(d=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(d="function"==typeof(h=m.payload)?h.call(p,f,d):h))break e;f=en({},f,d);break e;case 2:oG=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(s=c=p,u=f):c=c.next=p,i|=d;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(d=l).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(u=f),o.baseState=u,o.firstBaseUpdate=s,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do i|=o.lane,o=o.next;while(o!==t)}else null===a&&(o.shared.lanes=0);ly|=i,e.lanes=i,e.memoizedState=f}}function o3(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(d(191,o));o.call(r)}}}var o6=(new c.Component).refs;function o8(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:en({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var o5={isMounted:function(e){return!!(e=e._reactInternals)&&e3(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=lI(),o=lR(e),a=oZ(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=o0(e,a,o))&&(lz(t,e,o,r),o1(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=lI(),o=lR(e),a=oZ(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=o0(e,a,o))&&(lz(t,e,o,r),o1(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=lI(),r=lR(e),o=oZ(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=o0(e,o,r))&&(lz(t,e,r,n),o1(t,e,r))}};function o9(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||!nG(n,r)||!nG(o,a)}function o7(e,t,n){var r=!1,o=r4,a=t.contextType;return"object"==typeof a&&null!==a?a=oY(a):(o=r9(t)?r8:r3.current,a=(r=null!=(r=t.contextTypes))?r5(e,o):r4),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=o5,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function ae(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&o5.enqueueReplaceState(t,t.state,null)}function at(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=o6,oK(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=oY(a):(a=r9(t)?r8:r3.current,o.context=r5(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(o8(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&o5.enqueueReplaceState(o,o.state,null),o4(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function an(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(d(309));var r=n.stateNode}if(!r)throw Error(d(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=o.refs;t===o6&&(t=o.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(d(284));if(!n._owner)throw Error(d(290,e))}return e}function ar(e,t){throw Error(d(31,"[object Object]"===(e=Object.prototype.toString.call(t))?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ao(e){return(0,e._init)(e._payload)}function aa(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=ue(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return(t.index=r,e)?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?(t=uo(n,e.mode,r)).return=e:(t=o(t,n)).return=e,t}function u(e,t,n,r){var a=n.type;return a===j?c(e,t,n.props.children,r,n.key):(null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===A&&ao(a)===t.type)?(r=o(t,n.props)).ref=an(e,t,n):(r=ut(n.type,n.key,n.props,null,e.mode,r)).ref=an(e,t,n),r.return=e,r)}function s(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=ua(n,e.mode,r)).return=e:(t=o(t,n.children||[])).return=e,t}function c(e,t,n,r,a){return null===t||7!==t.tag?(t=un(n,e.mode,r,a)).return=e:(t=o(t,n)).return=e,t}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=uo(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case O:return(n=ut(t.type,t.key,t.props,null,e.mode,n)).ref=an(e,null,t),n.return=e,n;case T:return(t=ua(t,e.mode,n)).return=e,t;case A:return f(e,(0,t._init)(t._payload),n)}if(eg(t)||B(t))return(t=un(t,e.mode,n,null)).return=e,t;ar(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case O:return n.key===o?u(e,t,n,r):null;case T:return n.key===o?s(e,t,n,r):null;case A:return p(e,t,(o=n._init)(n._payload),r)}if(eg(n)||B(n))return null!==o?null:c(e,t,n,r,null);ar(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case O:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case T:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case A:return h(e,t,n,(0,r._init)(r._payload),o)}if(eg(r)||B(r))return c(t,e=e.get(n)||null,r,o,null);ar(t,r)}return null}return function l(u,s,c,m){if("object"==typeof c&&null!==c&&c.type===j&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case O:e:{for(var y=c.key,g=s;null!==g;){if(g.key===y){if((y=c.type)===j){if(7===g.tag){n(u,g.sibling),(s=o(g,c.props.children)).return=u,u=s;break e}}else if(g.elementType===y||"object"==typeof y&&null!==y&&y.$$typeof===A&&ao(y)===g.type){n(u,g.sibling),(s=o(g,c.props)).ref=an(u,g,c),s.return=u,u=s;break e}n(u,g);break}t(u,g),g=g.sibling}c.type===j?((s=un(c.props.children,u.mode,m,c.key)).return=u,u=s):((m=ut(c.type,c.key,c.props,null,u.mode,m)).ref=an(u,s,c),m.return=u,u=m)}return i(u);case T:e:{for(g=c.key;null!==s;){if(s.key===g){if(4===s.tag&&s.stateNode.containerInfo===c.containerInfo&&s.stateNode.implementation===c.implementation){n(u,s.sibling),(s=o(s,c.children||[])).return=u,u=s;break e}n(u,s);break}t(u,s),s=s.sibling}(s=ua(c,u.mode,m)).return=u,u=s}return i(u);case A:return l(u,s,(g=c._init)(c._payload),m)}if(eg(c))return function(o,i,l,u){for(var s=null,c=null,d=i,m=i=0,y=null;null!==d&&m<l.length;m++){d.index>m?(y=d,d=null):y=d.sibling;var g=p(o,d,l[m],u);if(null===g){null===d&&(d=y);break}e&&d&&null===g.alternate&&t(o,d),i=a(g,i,m),null===c?s=g:c.sibling=g,c=g,d=y}if(m===l.length)return n(o,d),o_&&ov(o,m),s;if(null===d){for(;m<l.length;m++)null!==(d=f(o,l[m],u))&&(i=a(d,i,m),null===c?s=d:c.sibling=d,c=d);return o_&&ov(o,m),s}for(d=r(o,d);m<l.length;m++)null!==(y=h(d,o,m,l[m],u))&&(e&&null!==y.alternate&&d.delete(null===y.key?m:y.key),i=a(y,i,m),null===c?s=y:c.sibling=y,c=y);return e&&d.forEach(function(e){return t(o,e)}),o_&&ov(o,m),s}(u,s,c,m);if(B(c))return function(o,i,l,u){var s=B(l);if("function"!=typeof s)throw Error(d(150));if(null==(l=s.call(l)))throw Error(d(151));for(var c=s=null,m=i,y=i=0,g=null,v=l.next();null!==m&&!v.done;y++,v=l.next()){m.index>y?(g=m,m=null):g=m.sibling;var b=p(o,m,v.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),i=a(b,i,y),null===c?s=b:c.sibling=b,c=b,m=g}if(v.done)return n(o,m),o_&&ov(o,y),s;if(null===m){for(;!v.done;y++,v=l.next())null!==(v=f(o,v.value,u))&&(i=a(v,i,y),null===c?s=v:c.sibling=v,c=v);return o_&&ov(o,y),s}for(m=r(o,m);!v.done;y++,v=l.next())null!==(v=h(m,o,y,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?y:v.key),i=a(v,i,y),null===c?s=v:c.sibling=v,c=v);return e&&m.forEach(function(e){return t(o,e)}),o_&&ov(o,y),s}(u,s,c,m);ar(u,c)}return"string"==typeof c&&""!==c||"number"==typeof c?(c=""+c,null!==s&&6===s.tag?(n(u,s.sibling),(s=o(s,c)).return=u):(n(u,s),(s=uo(c,u.mode,m)).return=u),i(u=s)):n(u,s)}}var ai=aa(!0),al=aa(!1),au={},as=r0(au),ac=r0(au),af=r0(au);function ad(e){if(e===au)throw Error(d(174));return e}function ap(e,t){switch(r2(af,t),r2(ac,e),r2(as,au),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:e_(null,"");break;default:t=e_(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}r1(as),r2(as,t)}function ah(){r1(as),r1(ac),r1(af)}function am(e){ad(af.current);var t=ad(as.current),n=e_(t,e.type);t!==n&&(r2(ac,e),r2(as,n))}function ay(e){ac.current===e&&(r1(as),r1(ac))}var ag=r0(0);function av(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ab=[];function aw(){for(var e=0;e<ab.length;e++)ab[e]._workInProgressVersionPrimary=null;ab.length=0}var ax=P.ReactCurrentDispatcher,ak=P.ReactCurrentBatchConfig,aS=0,a_=null,aE=null,aC=null,aP=!1,aO=!1,aT=0,aj=0;function aN(){throw Error(d(321))}function aD(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nQ(e[n],t[n]))return!1;return!0}function aM(e,t,n,r,o,a){if(aS=a,a_=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ax.current=null===e||null===e.memoizedState?il:iu,e=n(r,o),aO){a=0;do{if(aO=!1,aT=0,25<=a)throw Error(d(301));a+=1,aC=aE=null,t.updateQueue=null,ax.current=is,e=n(r,o)}while(aO)}if(ax.current=ii,t=null!==aE&&null!==aE.next,aS=0,aC=aE=a_=null,aP=!1,t)throw Error(d(300));return e}function aI(){var e=0!==aT;return aT=0,e}function aR(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===aC?a_.memoizedState=aC=e:aC=aC.next=e,aC}function az(){if(null===aE){var e=a_.alternate;e=null!==e?e.memoizedState:null}else e=aE.next;var t=null===aC?a_.memoizedState:aC.next;if(null!==t)aC=t,aE=e;else{if(null===e)throw Error(d(310));e={memoizedState:(aE=e).memoizedState,baseState:aE.baseState,baseQueue:aE.baseQueue,queue:aE.queue,next:null},null===aC?a_.memoizedState=aC=e:aC=aC.next=e}return aC}function aL(e,t){return"function"==typeof t?t(e):t}function aU(e){var t=az(),n=t.queue;if(null===n)throw Error(d(311));n.lastRenderedReducer=e;var r=aE,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=i=null,u=null,s=a;do{var c=s.lane;if((aS&c)===c)null!==u&&(u=u.next={lane:0,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),r=s.hasEagerState?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null};null===u?(l=u=f,i=r):u=u.next=f,a_.lanes|=c,ly|=c}s=s.next}while(null!==s&&s!==a)null===u?i=r:u.next=l,nQ(r,t.memoizedState)||(ix=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do a=o.lane,a_.lanes|=a,ly|=a,o=o.next;while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function aA(e){var t=az(),n=t.queue;if(null===n)throw Error(d(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var i=o=o.next;do a=e(a,i.action),i=i.next;while(i!==o)nQ(a,t.memoizedState)||(ix=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function aF(){}function aq(e,t){var n=a_,r=az(),o=t(),a=!nQ(r.memoizedState,o);if(a&&(r.memoizedState=o,ix=!0),r=r.queue,aZ(aW.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==aC&&1&aC.memoizedState.tag){if(n.flags|=2048,a$(9,aH.bind(null,n,r,o,t),void 0,null),null===ls)throw Error(d(349));0!=(30&aS)||aB(n,t,o)}return o}function aB(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=a_.updateQueue)?(t={lastEffect:null,stores:null},a_.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function aH(e,t,n,r){t.value=n,t.getSnapshot=r,aY(t)&&aV(e)}function aW(e,t,n){return n(function(){aY(t)&&aV(e)})}function aY(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nQ(e,n)}catch(e){return!0}}function aV(e){var t=oQ(e,1);null!==t&&lz(t,e,1,-1)}function aX(e){var t=aR();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:aL,lastRenderedState:e},t.queue=e,e=e.dispatch=it.bind(null,a_,e),[t.memoizedState,e]}function a$(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=a_.updateQueue)?(t={lastEffect:null,stores:null},a_.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function aQ(){return az().memoizedState}function aG(e,t,n,r){var o=aR();a_.flags|=e,o.memoizedState=a$(1|t,n,void 0,void 0===r?null:r)}function aK(e,t,n,r){var o=az();r=void 0===r?null:r;var a=void 0;if(null!==aE){var i=aE.memoizedState;if(a=i.destroy,null!==r&&aD(r,i.deps)){o.memoizedState=a$(t,n,a,r);return}}a_.flags|=e,o.memoizedState=a$(1|t,n,a,r)}function aJ(e,t){return aG(8390656,8,e,t)}function aZ(e,t){return aK(2048,8,e,t)}function a0(e,t){return aK(4,2,e,t)}function a1(e,t){return aK(4,4,e,t)}function a2(e,t){return"function"==typeof t?(t(e=e()),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function a4(e,t,n){return n=null!=n?n.concat([e]):null,aK(4,4,a2.bind(null,t,e),n)}function a3(){}function a6(e,t){var n=az();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aD(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function a8(e,t){var n=az();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aD(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function a5(e,t,n){return 0==(21&aS)?(e.baseState&&(e.baseState=!1,ix=!0),e.memoizedState=n):(nQ(n,t)||(n=tb(),a_.lanes|=n,ly|=n,e.baseState=!0),t)}function a9(e,t){var n=tS;tS=0!==n&&4>n?n:4,e(!0);var r=ak.transition;ak.transition={};try{e(!1),t()}finally{tS=n,ak.transition=r}}function a7(){return az().memoizedState}function ie(e,t,n){var r=lR(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ir(e)?io(t,n):null!==(n=o$(e,t,n,r))&&(lz(n,e,r,lI()),ia(n,t,r))}function it(e,t,n){var r=lR(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ir(e))io(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,nQ(l,i)){var u=t.interleaved;null===u?(o.next=o,oX(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch(e){}finally{}null!==(n=o$(e,t,o,r))&&(lz(n,e,r,o=lI()),ia(n,t,r))}}function ir(e){var t=e.alternate;return e===a_||null!==t&&t===a_}function io(e,t){aO=aP=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ia(e,t,n){if(0!=(4194240&n)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tk(e,n)}}var ii={readContext:oY,useCallback:aN,useContext:aN,useEffect:aN,useImperativeHandle:aN,useInsertionEffect:aN,useLayoutEffect:aN,useMemo:aN,useReducer:aN,useRef:aN,useState:aN,useDebugValue:aN,useDeferredValue:aN,useTransition:aN,useMutableSource:aN,useSyncExternalStore:aN,useId:aN,unstable_isNewReconciler:!1},il={readContext:oY,useCallback:function(e,t){return aR().memoizedState=[e,void 0===t?null:t],e},useContext:oY,useEffect:aJ,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,aG(4194308,4,a2.bind(null,t,e),n)},useLayoutEffect:function(e,t){return aG(4194308,4,e,t)},useInsertionEffect:function(e,t){return aG(4,2,e,t)},useMemo:function(e,t){var n=aR();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=aR();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ie.bind(null,a_,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},aR().memoizedState=e},useState:aX,useDebugValue:a3,useDeferredValue:function(e){return aR().memoizedState=e},useTransition:function(){var e=aX(!1),t=e[0];return e=a9.bind(null,e[1]),aR().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=a_,o=aR();if(o_){if(void 0===n)throw Error(d(407));n=n()}else{if(n=t(),null===ls)throw Error(d(349));0!=(30&aS)||aB(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,aJ(aW.bind(null,r,a,e),[e]),r.flags|=2048,a$(9,aH.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=aR(),t=ls.identifierPrefix;if(o_){var n=og,r=oy;t=":"+t+"R"+(n=(r&~(1<<32-tf(r)-1)).toString(32)+n),0<(n=aT++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=aj++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},iu={readContext:oY,useCallback:a6,useContext:oY,useEffect:aZ,useImperativeHandle:a4,useInsertionEffect:a0,useLayoutEffect:a1,useMemo:a8,useReducer:aU,useRef:aQ,useState:function(){return aU(aL)},useDebugValue:a3,useDeferredValue:function(e){return a5(az(),aE.memoizedState,e)},useTransition:function(){return[aU(aL)[0],az().memoizedState]},useMutableSource:aF,useSyncExternalStore:aq,useId:a7,unstable_isNewReconciler:!1},is={readContext:oY,useCallback:a6,useContext:oY,useEffect:aZ,useImperativeHandle:a4,useInsertionEffect:a0,useLayoutEffect:a1,useMemo:a8,useReducer:aA,useRef:aQ,useState:function(){return aA(aL)},useDebugValue:a3,useDeferredValue:function(e){var t=az();return null===aE?t.memoizedState=e:a5(t,aE.memoizedState,e)},useTransition:function(){return[aA(aL)[0],az().memoizedState]},useMutableSource:aF,useSyncExternalStore:aq,useId:a7,unstable_isNewReconciler:!1};function ic(e,t){try{var n="",r=t;do n+=function(e){switch(e.tag){case 5:return er(e.type);case 16:return er("Lazy");case 13:return er("Suspense");case 19:return er("SuspenseList");case 0:case 2:case 15:return e=ea(e.type,!1);case 11:return e=ea(e.type.render,!1);case 1:return e=ea(e.type,!0);default:return""}}(r),r=r.return;while(r)var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function id(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ip(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var ih="function"==typeof WeakMap?WeakMap:Map;function im(e,t,n){(n=oZ(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){l_||(l_=!0,lE=r),ip(e,t)},n}function iy(e,t,n){(n=oZ(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ip(e,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){ip(e,t),"function"!=typeof r&&(null===lC?lC=new Set([this]):lC.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}function ig(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ih;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=l4.bind(null,e,t,n),t.then(e,e))}function iv(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e)return null}function ib(e,t,n,r,o){return 0==(1&e.mode)?e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=oZ(-1,1)).tag=2,o0(n,t,1))),n.lanes|=1):(e.flags|=65536,e.lanes=o),e}var iw=P.ReactCurrentOwner,ix=!1;function ik(e,t,n,r){t.child=null===e?al(t,null,n,r):ai(t,e.child,n,r)}function iS(e,t,n,r,o){n=n.render;var a=t.ref;return(oW(t,o),r=aM(e,t,n,r,a,o),n=aI(),null===e||ix)?(o_&&n&&ow(t),t.flags|=1,ik(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,iB(e,t,o))}function i_(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||l7(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ut(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,iE(e,t,a,r,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:nG)(i,r)&&e.ref===t.ref)return iB(e,t,o)}return t.flags|=1,(e=ue(a,r)).ref=t.ref,e.return=t,t.child=e}function iE(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(nG(a,r)&&e.ref===t.ref){if(ix=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,iB(e,t,o);0!=(131072&e.flags)&&(ix=!0)}}return iO(e,t,n,r,o)}function iC(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r2(lp,ld),ld|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,r2(lp,ld),ld|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,r2(lp,ld),ld|=r}}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,r2(lp,ld),ld|=r;return ik(e,t,o,n),t.child}function iP(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function iO(e,t,n,r,o){var a=r9(n)?r8:r3.current;return(a=r5(t,a),oW(t,o),n=aM(e,t,n,r,a,o),r=aI(),null===e||ix)?(o_&&r&&ow(t),t.flags|=1,ik(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,iB(e,t,o))}function iT(e,t,n,r,o){if(r9(n)){var a=!0;on(t)}else a=!1;if(oW(t,o),null===t.stateNode)iq(e,t),o7(t,n,r),at(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var u=i.context,s=n.contextType;s="object"==typeof s&&null!==s?oY(s):r5(t,s=r9(n)?r8:r3.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;f||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||u!==s)&&ae(t,i,r,s),oG=!1;var d=t.memoizedState;i.state=d,o4(t,r,i,o),u=t.memoizedState,l!==r||d!==u||r6.current||oG?("function"==typeof c&&(o8(t,n,c,r),u=t.memoizedState),(l=oG||o9(t,n,l,r,d,u,s))?(f||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=s,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,oJ(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:oz(t.type,l),i.props=s,f=t.pendingProps,d=i.context,u="object"==typeof(u=n.contextType)&&null!==u?oY(u):r5(t,u=r9(n)?r8:r3.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==f||d!==u)&&ae(t,i,r,u),oG=!1,d=t.memoizedState,i.state=d,o4(t,r,i,o);var h=t.memoizedState;l!==f||d!==h||r6.current||oG?("function"==typeof p&&(o8(t,n,p,r),h=t.memoizedState),(s=oG||o9(t,n,s,r,d,h,u)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,u),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=u,r=s):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return ij(e,t,n,r,a,o)}function ij(e,t,n,r,o,a){iP(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&or(t,n,!1),iB(e,t,a);r=t.stateNode,iw.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=ai(t,e.child,null,a),t.child=ai(t,null,l,a)):ik(e,t,l,a),t.memoizedState=r.state,o&&or(t,n,!0),t.child}function iN(e){var t=e.stateNode;t.pendingContext?oe(e,t.pendingContext,t.pendingContext!==t.context):t.context&&oe(e,t.context,!1),ap(e,t.containerInfo)}function iD(e,t,n,r,o){return oM(),oI(o),t.flags|=256,ik(e,t,n,r),t.child}var iM={dehydrated:null,treeContext:null,retryLane:0};function iI(e){return{baseLanes:e,cachePool:null,transitions:null}}function iR(e,t,n){var r,o=t.pendingProps,a=ag.current,i=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,t.flags&=-129):(null===e||null!==e.memoizedState)&&(a|=1),r2(ag,1&a),null===e)return(oT(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated))?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,i?(o=t.mode,i=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==i?(i.childLanes=0,i.pendingProps=l):i=ur(l,o,0,null),e=un(e,o,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=iI(n),t.memoizedState=iM,e):iz(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,i){if(n)return 256&t.flags?(t.flags&=-257,iL(e,t,i,r=id(Error(d(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=ur({mode:"visible",children:r.children},o,0,null),a=un(a,o,i,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&ai(t,e.child,null,i),t.child.memoizedState=iI(i),t.memoizedState=iM,a);if(0==(1&t.mode))return iL(e,t,i,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,iL(e,t,i,r=id(a=Error(d(419)),r,void 0))}if(l=0!=(i&e.childLanes),ix||l){if(null!==(r=ls)){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|i))?0:o)&&o!==a.retryLane&&(a.retryLane=o,oQ(e,o),lz(r,e,o,-1))}return lQ(),iL(e,t,i,r=id(Error(d(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=l6.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oS=rA(o.nextSibling),ok=t,o_=!0,oE=null,null!==e&&(op[oh++]=oy,op[oh++]=og,op[oh++]=om,oy=e.id,og=e.overflow,om=t),t=iz(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(i){i=o.fallback,l=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null):(o=ue(a,u)).subtreeFlags=14680064&a.subtreeFlags,null!==r?i=ue(r,i):(i=un(i,l,n,null),i.flags|=2),i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,l=null===(l=e.child.memoizedState)?iI(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=iM,o}return e=(i=e.child).sibling,o=ue(i,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function iz(e,t){return(t=ur({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function iL(e,t,n,r){return null!==r&&oI(r),ai(t,e.child,null,n),e=iz(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function iU(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),oH(e.return,t,n)}function iA(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function iF(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(ik(e,t,r.children,n),0!=(2&(r=ag.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&iU(e,n,t);else if(19===e.tag)iU(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(r2(ag,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(o=null,n=t.child;null!==n;)null!==(e=n.alternate)&&null===av(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),iA(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===av(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}iA(t,!0,n,null,a);break;case"together":iA(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function iq(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function iB(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),ly|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(d(153));if(null!==t.child){for(n=ue(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ue(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function iH(e,t){if(!o_)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function iW(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}o=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},i=function(){},l=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ad(as.current);var a,i=null;switch(n){case"input":o=ef(e,o),r=ef(e,r),i=[];break;case"select":o=en({},o,{value:void 0}),r=en({},r,{value:void 0}),i=[];break;case"textarea":o=eb(e,o),r=eb(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=rT)}for(s in eI(n,r),n=null,o)if(!r.hasOwnProperty(s)&&o.hasOwnProperty(s)&&null!=o[s]){if("style"===s){var l=o[s];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(h.hasOwnProperty(s)?i||(i=[]):(i=i||[]).push(s,null))}for(s in r){var u=r[s];if(l=null!=o?o[s]:void 0,r.hasOwnProperty(s)&&u!==l&&(null!=u||null!=l)){if("style"===s){if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(i||(i=[]),i.push(s,n)),n=u}else"dangerouslySetInnerHTML"===s?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(i=i||[]).push(s,u)):"children"===s?"string"!=typeof u&&"number"!=typeof u||(i=i||[]).push(s,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(h.hasOwnProperty(s)?(null!=u&&"onScroll"===s&&rm("scroll",e),i||l===u||(i=[])):(i=i||[]).push(s,u))}}n&&(i=i||[]).push("style",n);var s=i;(t.updateQueue=s)&&(t.flags|=4)}},u=function(e,t,n,r){n!==r&&(t.flags|=4)};var iY=!1,iV=!1,iX="function"==typeof WeakSet?WeakSet:Set,i$=null;function iQ(e,t){var n=e.ref;if(null!==n){if("function"==typeof n)try{n(null)}catch(n){l2(e,t,n)}else n.current=null}}function iG(e,t,n){try{n()}catch(n){l2(e,t,n)}}var iK=!1;function iJ(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&iG(t,n,a)}o=o.next}while(o!==r)}}function iZ(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function i0(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function i1(e){return 5===e.tag||3===e.tag||4===e.tag}function i2(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||i1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}var i4=null,i3=!1;function i6(e,t,n){for(n=n.child;null!==n;)i8(e,t,n),n=n.sibling}function i8(e,t,n){if(tc&&"function"==typeof tc.onCommitFiberUnmount)try{tc.onCommitFiberUnmount(ts,n)}catch(e){}switch(n.tag){case 5:iV||iQ(n,t);case 6:var r=i4,o=i3;i4=null,i6(e,t,n),i4=r,i3=o,null!==i4&&(i3?(e=i4,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):i4.removeChild(n.stateNode));break;case 18:null!==i4&&(i3?(e=i4,n=n.stateNode,8===e.nodeType?rU(e.parentNode,n):1===e.nodeType&&rU(e,n),tV(e)):rU(i4,n.stateNode));break;case 4:r=i4,o=i3,i4=n.stateNode.containerInfo,i3=!0,i6(e,t,n),i4=r,i3=o;break;case 0:case 11:case 14:case 15:if(!iV&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)?iG(n,t,i):0!=(4&a)&&iG(n,t,i)),o=o.next}while(o!==r)}i6(e,t,n);break;case 1:if(!iV&&(iQ(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){l2(n,t,e)}i6(e,t,n);break;case 21:default:i6(e,t,n);break;case 22:1&n.mode?(iV=(r=iV)||null!==n.memoizedState,i6(e,t,n),iV=r):i6(e,t,n)}}function i5(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new iX),t.forEach(function(t){var r=l8.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function i9(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=t,i=a;e:for(;null!==i;){switch(i.tag){case 5:i4=i.stateNode,i3=!1;break e;case 3:case 4:i4=i.stateNode.containerInfo,i3=!0;break e}i=i.return}if(null===i4)throw Error(d(160));i8(e,a,o),i4=null,i3=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(e){l2(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)i7(t,e),t=t.sibling}function i7(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(i9(t,e),le(e),4&r){try{iJ(3,e,e.return),iZ(3,e)}catch(t){l2(e,e.return,t)}try{iJ(5,e,e.return)}catch(t){l2(e,e.return,t)}}break;case 1:i9(t,e),le(e),512&r&&null!==n&&iQ(n,n.return);break;case 5:if(i9(t,e),le(e),512&r&&null!==n&&iQ(n,n.return),32&e.flags){var o=e.stateNode;try{eO(o,"")}catch(t){l2(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,i=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&ep(o,a),eR(l,i);var s=eR(l,a);for(i=0;i<u.length;i+=2){var c=u[i],f=u[i+1];"style"===c?eD(o,f):"dangerouslySetInnerHTML"===c?eP(o,f):"children"===c?eO(o,f):C(o,c,f,s)}switch(l){case"input":eh(o,a);break;case"textarea":ex(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ev(o,!!a.multiple,h,!1):!!a.multiple!==p&&(null!=a.defaultValue?ev(o,!!a.multiple,a.defaultValue,!0):ev(o,!!a.multiple,a.multiple?[]:"",!1))}o[rH]=a}catch(t){l2(e,e.return,t)}}break;case 6:if(i9(t,e),le(e),4&r){if(null===e.stateNode)throw Error(d(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){l2(e,e.return,t)}}break;case 3:if(i9(t,e),le(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{tV(t.containerInfo)}catch(t){l2(e,e.return,t)}break;case 4:default:i9(t,e),le(e);break;case 13:i9(t,e),le(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,a&&(null===o.alternate||null===o.alternate.memoizedState)&&(lx=tn())),4&r&&i5(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(iV=(s=iV)||c,i9(t,e),iV=s):i9(t,e),le(e),8192&r){if(s=null!==e.memoizedState,(e.stateNode.isHidden=s)&&!c&&0!=(1&e.mode))for(i$=e,c=e.child;null!==c;){for(f=i$=c;null!==i$;){switch(h=(p=i$).child,p.tag){case 0:case 11:case 14:case 15:iJ(4,p,p.return);break;case 1:iQ(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){l2(r,n,e)}}break;case 5:iQ(p,p.return);break;case 22:if(null!==p.memoizedState){ln(f);continue}}null!==h?(h.return=p,i$=h):ln(f)}c=c.sibling}e:for(c=null,f=e;;){if(5===f.tag){if(null===c){c=f;try{o=f.stateNode,s?(a=o.style,"function"==typeof a.setProperty?a.setProperty("display","none","important"):a.display="none"):(l=f.stateNode,i=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=eN("display",i))}catch(t){l2(e,e.return,t)}}}else if(6===f.tag){if(null===c)try{f.stateNode.nodeValue=s?"":f.memoizedProps}catch(t){l2(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:i9(t,e),le(e),4&r&&i5(e);case 21:}}function le(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(i1(n)){var r=n;break e}n=n.return}throw Error(d(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(eO(o,""),r.flags&=-33);var a=i2(e);!function e(t,n,r){var o=t.tag;if(5===o||6===o)t=t.stateNode,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==o&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,a,o);break;case 3:case 4:var i=r.stateNode.containerInfo,l=i2(e);!function e(t,n,r){var o=t.tag;if(5===o||6===o)t=t.stateNode,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!=(r=r._reactRootContainer)||null!==n.onclick||(n.onclick=rT));else if(4!==o&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,l,i);break;default:throw Error(d(161))}}catch(t){l2(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function lt(e){for(;null!==i$;){var t=i$;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:iV||iZ(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!iV){if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:oz(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}}var a=t.updateQueue;null!==a&&o3(t,a,r);break;case 3:var i=t.updateQueue;if(null!==i){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}o3(t,i,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var s=t.alternate;if(null!==s){var c=s.memoizedState;if(null!==c){var f=c.dehydrated;null!==f&&tV(f)}}}break;default:throw Error(d(163))}iV||512&t.flags&&i0(t)}catch(e){l2(t,t.return,e)}}if(t===e){i$=null;break}if(null!==(n=t.sibling)){n.return=t.return,i$=n;break}i$=t.return}}function ln(e){for(;null!==i$;){var t=i$;if(t===e){i$=null;break}var n=t.sibling;if(null!==n){n.return=t.return,i$=n;break}i$=t.return}}function lr(e){for(;null!==i$;){var t=i$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{iZ(4,t)}catch(e){l2(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){l2(t,o,e)}}var a=t.return;try{i0(t)}catch(e){l2(t,a,e)}break;case 5:var i=t.return;try{i0(t)}catch(e){l2(t,i,e)}}}catch(e){l2(t,t.return,e)}if(t===e){i$=null;break}var l=t.sibling;if(null!==l){l.return=t.return,i$=l;break}i$=t.return}}var lo=Math.ceil,la=P.ReactCurrentDispatcher,li=P.ReactCurrentOwner,ll=P.ReactCurrentBatchConfig,lu=0,ls=null,lc=null,lf=0,ld=0,lp=r0(0),lh=0,lm=null,ly=0,lg=0,lv=0,lb=null,lw=null,lx=0,lk=1/0,lS=null,l_=!1,lE=null,lC=null,lP=!1,lO=null,lT=0,lj=0,lN=null,lD=-1,lM=0;function lI(){return 0!=(6&lu)?tn():-1!==lD?lD:lD=tn()}function lR(e){return 0==(1&e.mode)?1:0!=(2&lu)&&0!==lf?lf&-lf:null!==oR.transition?(0===lM&&(lM=tb()),lM):0!==(e=tS)?e:e=void 0===(e=window.event)?16:t0(e.type)}function lz(e,t,n,r){if(50<lj)throw lj=0,lN=null,Error(d(185));tx(e,n,r),(0==(2&lu)||e!==ls)&&(e===ls&&(0==(2&lu)&&(lg|=n),4===lh&&lq(e,lf)),lL(e,r),1===n&&0===lu&&0==(1&t.mode)&&(lk=tn()+500,oa&&ou()))}function lL(e,t){var n,r,o,a=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-tf(a),l=1<<i,u=o[i];-1===u?(0==(l&n)||0!=(l&r))&&(o[i]=function(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return -1}}(l,t)):u<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var i=tg(e,e===ls?lf:0);if(0===i)null!==a&&e7(a),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(null!=a&&e7(a),1===t)0===e.tag?(o=lB.bind(null,e),oa=!0,ol(o)):ol(lB.bind(null,e)),rz(function(){0==(6&lu)&&ou()}),a=null;else{switch(t_(i)){case 1:a=to;break;case 4:a=ta;break;case 16:default:a=ti;break;case 536870912:a=tu}a=e9(a,lU.bind(null,e))}e.callbackPriority=t,e.callbackNode=a}}function lU(e,t){if(lD=-1,lM=0,0!=(6&lu))throw Error(d(327));var n=e.callbackNode;if(l0()&&e.callbackNode!==n)return null;var r=tg(e,e===ls?lf:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=lG(e,r);else{t=r;var o=lu;lu|=2;var a=l$();for((ls!==e||lf!==t)&&(lS=null,lk=tn()+500,lV(e,t));;)try{(function(){for(;null!==lc&&!te();)lK(lc)})();break}catch(t){lX(e,t)}oq(),la.current=a,lu=o,null!==lc?t=0:(ls=null,lf=0,t=lh)}if(0!==t){if(2===t&&0!==(o=tv(e))&&(r=o,t=lA(e,o)),1===t)throw n=lm,lV(e,0),lq(e,r),lL(e,tn()),n;if(6===t)lq(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!nQ(a(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=lG(e,r))&&0!==(a=tv(e))&&(r=a,t=lA(e,a)),1===t))throw n=lm,lV(e,0),lq(e,r),lL(e,tn()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(d(345));case 2:case 5:lZ(e,lw,lS);break;case 3:if(lq(e,r),(130023424&r)===r&&10<(t=lx+500-tn())){if(0!==tg(e,0))break;if(((o=e.suspendedLanes)&r)!==r){lI(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=rM(lZ.bind(null,e,lw,lS),t);break}lZ(e,lw,lS);break;case 4:if(lq(e,r),(4194240&r)===r)break;for(o=-1,t=e.eventTimes;0<r;){var i=31-tf(r);a=1<<i,(i=t[i])>o&&(o=i),r&=~a}if(r=o,10<(r=(120>(r=tn()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*lo(r/1960))-r)){e.timeoutHandle=rM(lZ.bind(null,e,lw,lS),r);break}lZ(e,lw,lS);break;default:throw Error(d(329))}}}return lL(e,tn()),e.callbackNode===n?lU.bind(null,e):null}function lA(e,t){var n=lb;return e.current.memoizedState.isDehydrated&&(lV(e,t).flags|=256),2!==(e=lG(e,t))&&(t=lw,lw=n,null!==t&&lF(t)),e}function lF(e){null===lw?lw=e:lw.push.apply(lw,e)}function lq(e,t){for(t&=~lv,t&=~lg,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-tf(t),r=1<<n;e[n]=-1,t&=~r}}function lB(e){if(0!=(6&lu))throw Error(d(327));l0();var t=tg(e,0);if(0==(1&t))return lL(e,tn()),null;var n=lG(e,t);if(0!==e.tag&&2===n){var r=tv(e);0!==r&&(t=r,n=lA(e,r))}if(1===n)throw n=lm,lV(e,0),lq(e,t),lL(e,tn()),n;if(6===n)throw Error(d(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,lZ(e,lw,lS),lL(e,tn()),null}function lH(e,t){var n=lu;lu|=1;try{return e(t)}finally{0===(lu=n)&&(lk=tn()+500,oa&&ou())}}function lW(e){null!==lO&&0===lO.tag&&0==(6&lu)&&l0();var t=lu;lu|=1;var n=ll.transition,r=tS;try{if(ll.transition=null,tS=1,e)return e()}finally{tS=r,ll.transition=n,0==(6&(lu=t))&&ou()}}function lY(){ld=lp.current,r1(lp)}function lV(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,rI(n)),null!==lc)for(n=lc.return;null!==n;){var r=n;switch(ox(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&r7();break;case 3:ah(),r1(r6),r1(r3),aw();break;case 5:ay(r);break;case 4:ah();break;case 13:case 19:r1(ag);break;case 10:oB(r.type._context);break;case 22:case 23:lY()}n=n.return}if(ls=e,lc=e=ue(e.current,null),lf=ld=t,lh=0,lm=null,lv=lg=ly=0,lw=lb=null,null!==oV){for(t=0;t<oV.length;t++)if(null!==(r=(n=oV[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}oV=null}return e}function lX(e,t){for(;;){var n=lc;try{if(oq(),ax.current=ii,aP){for(var r=a_.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}aP=!1}if(aS=0,aC=aE=a_=null,aO=!1,aT=0,li.current=null,null===n||null===n.return){lh=1,lm=t,lc=null;break}e:{var a=e,i=n.return,l=n,u=t;if(t=lf,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var s=u,c=l,f=c.tag;if(0==(1&c.mode)&&(0===f||11===f||15===f)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=iv(i);if(null!==h){h.flags&=-257,ib(h,i,l,a,t),1&h.mode&&ig(a,s,t),t=h,u=s;var m=t.updateQueue;if(null===m){var y=new Set;y.add(u),t.updateQueue=y}else m.add(u);break e}if(0==(1&t)){ig(a,s,t),lQ();break e}u=Error(d(426))}else if(o_&&1&l.mode){var g=iv(i);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),ib(g,i,l,a,t),oI(ic(u,l));break e}}a=u=ic(u,l),4!==lh&&(lh=2),null===lb?lb=[a]:lb.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var v=im(a,u,t);o2(a,v);break e;case 1:l=u;var b=a.type,w=a.stateNode;if(0==(128&a.flags)&&("function"==typeof b.getDerivedStateFromError||null!==w&&"function"==typeof w.componentDidCatch&&(null===lC||!lC.has(w)))){a.flags|=65536,t&=-t,a.lanes|=t;var x=iy(a,l,t);o2(a,x);break e}}a=a.return}while(null!==a)}lJ(n)}catch(e){t=e,lc===n&&null!==n&&(lc=n=n.return);continue}break}}function l$(){var e=la.current;return la.current=ii,null===e?ii:e}function lQ(){(0===lh||3===lh||2===lh)&&(lh=4),null===ls||0==(268435455&ly)&&0==(268435455&lg)||lq(ls,lf)}function lG(e,t){var n=lu;lu|=2;var r=l$();for((ls!==e||lf!==t)&&(lS=null,lV(e,t));;)try{(function(){for(;null!==lc;)lK(lc)})();break}catch(t){lX(e,t)}if(oq(),lu=n,la.current=r,null!==lc)throw Error(d(261));return ls=null,lf=0,lh}function lK(e){var t=s(e.alternate,e,ld);e.memoizedProps=e.pendingProps,null===t?lJ(e):lc=t,li.current=null}function lJ(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=function(e,t,n){var r=t.pendingProps;switch(ox(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return iW(t),null;case 1:case 17:return r9(t.type)&&r7(),iW(t),null;case 3:return r=t.stateNode,ah(),r1(r6),r1(r3),aw(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(null===e||null===e.child)&&(oN(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==oE&&(lF(oE),oE=null))),i(e,t),iW(t),null;case 5:ay(t);var a=ad(af.current);if(n=t.type,null!==e&&null!=t.stateNode)l(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(d(166));return iW(t),null}if(e=ad(as.current),oN(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[rB]=t,r[rH]=s,e=0!=(1&t.mode),n){case"dialog":rm("cancel",r),rm("close",r);break;case"iframe":case"object":case"embed":rm("load",r);break;case"video":case"audio":for(a=0;a<rf.length;a++)rm(rf[a],r);break;case"source":rm("error",r);break;case"img":case"image":case"link":rm("error",r),rm("load",r);break;case"details":rm("toggle",r);break;case"input":ed(r,s),rm("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},rm("invalid",r);break;case"textarea":ew(r,s),rm("invalid",r)}for(var c in eI(n,s),a=null,s)if(s.hasOwnProperty(c)){var f=s[c];"children"===c?"string"==typeof f?r.textContent!==f&&(!0!==s.suppressHydrationWarning&&rO(r.textContent,f,e),a=["children",f]):"number"==typeof f&&r.textContent!==""+f&&(!0!==s.suppressHydrationWarning&&rO(r.textContent,f,e),a=["children",""+f]):h.hasOwnProperty(c)&&null!=f&&"onScroll"===c&&rm("scroll",r)}switch(n){case"input":eu(r),em(r,s,!0);break;case"textarea":eu(r),ek(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=rT)}r=a,t.updateQueue=r,null!==r&&(t.flags|=4)}else{c=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=eS(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=c.createElement("div")).innerHTML="<script></script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[rB]=t,e[rH]=r,o(e,t,!1,!1),t.stateNode=e;e:{switch(c=eR(n,r),n){case"dialog":rm("cancel",e),rm("close",e),a=r;break;case"iframe":case"object":case"embed":rm("load",e),a=r;break;case"video":case"audio":for(a=0;a<rf.length;a++)rm(rf[a],e);a=r;break;case"source":rm("error",e),a=r;break;case"img":case"image":case"link":rm("error",e),rm("load",e),a=r;break;case"details":rm("toggle",e),a=r;break;case"input":ed(e,r),a=ef(e,r),rm("invalid",e);break;case"option":default:a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=en({},r,{value:void 0}),rm("invalid",e);break;case"textarea":ew(e,r),a=eb(e,r),rm("invalid",e)}for(s in eI(n,a),f=a)if(f.hasOwnProperty(s)){var p=f[s];"style"===s?eD(e,p):"dangerouslySetInnerHTML"===s?null!=(p=p?p.__html:void 0)&&eP(e,p):"children"===s?"string"==typeof p?("textarea"!==n||""!==p)&&eO(e,p):"number"==typeof p&&eO(e,""+p):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(h.hasOwnProperty(s)?null!=p&&"onScroll"===s&&rm("scroll",e):null!=p&&C(e,s,p,c))}switch(n){case"input":eu(e),em(e,r,!1);break;case"textarea":eu(e),ek(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ei(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ev(e,!!r.multiple,s,!1):null!=r.defaultValue&&ev(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=rT)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return iW(t),null;case 6:if(e&&null!=t.stateNode)u(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(d(166));if(n=ad(af.current),ad(as.current),oN(t)){if(r=t.stateNode,n=t.memoizedProps,r[rB]=t,(s=r.nodeValue!==n)&&null!==(e=ok))switch(e.tag){case 3:rO(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&rO(r.nodeValue,n,0!=(1&e.mode))}s&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[rB]=t,t.stateNode=r}return iW(t),null;case 13:if(r1(ag),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o_&&null!==oS&&0!=(1&t.mode)&&0==(128&t.flags))oD(),oM(),t.flags|=98560,s=!1;else if(s=oN(t),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(d(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(d(317));s[rB]=t}else oM(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;iW(t),s=!1}else null!==oE&&(lF(oE),oE=null),s=!0;if(!s)return 65536&t.flags?t:null}if(0!=(128&t.flags))return t.lanes=n,t;return(r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ag.current)?0===lh&&(lh=3):lQ())),null!==t.updateQueue&&(t.flags|=4),iW(t),null;case 4:return ah(),i(e,t),null===e&&rv(t.stateNode.containerInfo),iW(t),null;case 10:return oB(t.type._context),iW(t),null;case 19:if(r1(ag),null===(s=t.memoizedState))return iW(t),null;if(r=0!=(128&t.flags),null===(c=s.rendering)){if(r)iH(s,!1);else{if(0!==lh||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(c=av(e))){for(t.flags|=128,iH(s,!1),null!==(r=c.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)s=n,e=r,s.flags&=14680066,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return r2(ag,1&ag.current|2),t.child}e=e.sibling}null!==s.tail&&tn()>lk&&(t.flags|=128,r=!0,iH(s,!1),t.lanes=4194304)}}else{if(!r){if(null!==(e=av(c))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),iH(s,!0),null===s.tail&&"hidden"===s.tailMode&&!c.alternate&&!o_)return iW(t),null}else 2*tn()-s.renderingStartTime>lk&&1073741824!==n&&(t.flags|=128,r=!0,iH(s,!1),t.lanes=4194304)}s.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=s.last)?n.sibling=c:t.child=c,s.last=c)}if(null!==s.tail)return t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=tn(),t.sibling=null,n=ag.current,r2(ag,r?1&n|2:1&n),t;return iW(t),null;case 22:case 23:return lY(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&ld)&&(iW(t),6&t.subtreeFlags&&(t.flags|=8192)):iW(t),null;case 24:case 25:return null}throw Error(d(156,t.tag))}(n,t,ld))){lc=n;return}}else{if(null!==(n=function(e,t){switch(ox(t),t.tag){case 1:return r9(t.type)&&r7(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ah(),r1(r6),r1(r3),aw(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ay(t),null;case 13:if(r1(ag),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(d(340));oM()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return r1(ag),null;case 4:return ah(),null;case 10:return oB(t.type._context),null;case 22:case 23:return lY(),null;default:return null}}(n,t))){n.flags&=32767,lc=n;return}if(null!==e)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{lh=6,lc=null;return}}if(null!==(t=t.sibling)){lc=t;return}lc=t=e}while(null!==t)0===lh&&(lh=5)}function lZ(e,t,n){var r=tS,o=ll.transition;try{ll.transition=null,tS=1,function(e,t,n,r){do l0();while(null!==lO)if(0!=(6&lu))throw Error(d(327));n=e.finishedWork;var o=e.finishedLanes;if(null!==n){if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(d(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-tf(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,a),e===ls&&(lc=ls=null,lf=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||lP||(lP=!0,i=ti,l=function(){return l0(),null},e9(i,l)),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=ll.transition,ll.transition=null;var i,l,u,s,c,f=tS;tS=1;var p=lu;lu|=4,li.current=null,function(e,t){if(rj=t$,n0(e=nZ())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o,a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var l=0,u=-1,s=-1,c=0,f=0,p=e,h=null;t:for(;;){for(;p!==n||0!==a&&3!==p.nodeType||(u=l+a),p!==i||0!==r&&3!==p.nodeType||(s=l+r),3===p.nodeType&&(l+=p.nodeValue.length),null!==(o=p.firstChild);)h=p,p=o;for(;;){if(p===e)break t;if(h===n&&++c===a&&(u=l),h===i&&++f===r&&(s=l),null!==(o=p.nextSibling))break;h=(p=h).parentNode}p=o}n=-1===u||-1===s?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(rN={focusedElem:e,selectionRange:n},t$=!1,i$=t;null!==i$;)if(e=(t=i$).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,i$=e;else for(;null!==i$;){t=i$;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var y=m.memoizedProps,g=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?y:oz(t.type,y),g);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(d(163))}}catch(e){l2(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,i$=e;break}i$=t.return}m=iK,iK=!1}(e,n),i7(n,e),function(e){var t=nZ(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&function e(t,n){return!!t&&!!n&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(n.ownerDocument.documentElement,n)){if(null!==r&&n0(n)){if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=nJ(n,a);var i=nJ(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}(rN),t$=!!rj,rN=rj=null,e.current=n,u=n,s=e,c=o,i$=u,function e(t,n,r){for(var o=0!=(1&t.mode);null!==i$;){var a=i$,i=a.child;if(22===a.tag&&o){var l=null!==a.memoizedState||iY;if(!l){var u=a.alternate,s=null!==u&&null!==u.memoizedState||iV;u=iY;var c=iV;if(iY=l,(iV=s)&&!c)for(i$=a;null!==i$;)s=(l=i$).child,22===l.tag&&null!==l.memoizedState?lr(a):null!==s?(s.return=l,i$=s):lr(a);for(;null!==i;)i$=i,e(i,n,r),i=i.sibling;i$=a,iY=u,iV=c}lt(t,n,r)}else 0!=(8772&a.subtreeFlags)&&null!==i?(i.return=a,i$=i):lt(t,n,r)}}(u,s,c),tt(),lu=p,tS=f,ll.transition=a}else e.current=n;if(lP&&(lP=!1,lO=e,lT=o),0===(a=e.pendingLanes)&&(lC=null),function(e){if(tc&&"function"==typeof tc.onCommitFiberRoot)try{tc.onCommitFiberRoot(ts,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode,r),lL(e,tn()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(l_)throw l_=!1,e=lE,lE=null,e;0!=(1&lT)&&0!==e.tag&&l0(),0!=(1&(a=e.pendingLanes))?e===lN?lj++:(lj=0,lN=e):lj=0,ou()}}(e,t,n,r)}finally{ll.transition=o,tS=r}return null}function l0(){if(null!==lO){var e=t_(lT),t=ll.transition,n=tS;try{if(ll.transition=null,tS=16>e?16:e,null===lO)var r=!1;else{if(e=lO,lO=null,lT=0,0!=(6&lu))throw Error(d(331));var o=lu;for(lu|=4,i$=e.current;null!==i$;){var a=i$,i=a.child;if(0!=(16&i$.flags)){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var s=l[u];for(i$=s;null!==i$;){var c=i$;switch(c.tag){case 0:case 11:case 15:iJ(8,c,a)}var f=c.child;if(null!==f)f.return=c,i$=f;else for(;null!==i$;){var p=(c=i$).sibling,h=c.return;if(function e(t){var n=t.alternate;null!==n&&(t.alternate=null,e(n)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&null!==(n=t.stateNode)&&(delete n[rB],delete n[rH],delete n[rY],delete n[rV],delete n[rX]),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}(c),c===s){i$=null;break}if(null!==p){p.return=h,i$=p;break}i$=h}}}var m=a.alternate;if(null!==m){var y=m.child;if(null!==y){m.child=null;do{var g=y.sibling;y.sibling=null,y=g}while(null!==y)}}i$=a}}if(0!=(2064&a.subtreeFlags)&&null!==i)i.return=a,i$=i;else for(;null!==i$;){if(a=i$,0!=(2048&a.flags))switch(a.tag){case 0:case 11:case 15:iJ(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,i$=v;break}i$=a.return}}var b=e.current;for(i$=b;null!==i$;){var w=(i=i$).child;if(0!=(2064&i.subtreeFlags)&&null!==w)w.return=i,i$=w;else for(i=b;null!==i$;){if(l=i$,0!=(2048&l.flags))try{switch(l.tag){case 0:case 11:case 15:iZ(9,l)}}catch(e){l2(l,l.return,e)}if(l===i){i$=null;break}var x=l.sibling;if(null!==x){x.return=l.return,i$=x;break}i$=l.return}}if(lu=o,ou(),tc&&"function"==typeof tc.onPostCommitFiberRoot)try{tc.onPostCommitFiberRoot(ts,e)}catch(e){}r=!0}return r}finally{tS=n,ll.transition=t}}return!1}function l1(e,t,n){t=im(e,t=ic(n,t),1),e=o0(e,t,1),t=lI(),null!==e&&(tx(e,1,t),lL(e,t))}function l2(e,t,n){if(3===e.tag)l1(e,e,n);else for(;null!==t;){if(3===t.tag){l1(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===lC||!lC.has(r))){e=iy(t,e=ic(n,e),1),t=o0(t,e,1),e=lI(),null!==t&&(tx(t,1,e),lL(t,e));break}}t=t.return}}function l4(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=lI(),e.pingedLanes|=e.suspendedLanes&n,ls===e&&(lf&n)===n&&(4===lh||3===lh&&(130023424&lf)===lf&&500>tn()-lx?lV(e,0):lv|=n),lL(e,t)}function l3(e,t){0===t&&(0==(1&e.mode)?t=1:(t=tm,0==(130023424&(tm<<=1))&&(tm=4194304)));var n=lI();null!==(e=oQ(e,t))&&(tx(e,t,n),lL(e,n))}function l6(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),l3(e,n)}function l8(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(d(314))}null!==r&&r.delete(t),l3(e,n)}function l5(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function l9(e,t,n,r){return new l5(e,t,n,r)}function l7(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ue(e,t){var n=e.alternate;return null===n?((n=l9(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ut(e,t,n,r,o,a){var i=2;if(r=e,"function"==typeof e)l7(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case j:return un(n.children,o,a,t);case N:i=8,o|=8;break;case D:return(e=l9(12,n,t,2|o)).elementType=D,e.lanes=a,e;case z:return(e=l9(13,n,t,o)).elementType=z,e.lanes=a,e;case L:return(e=l9(19,n,t,o)).elementType=L,e.lanes=a,e;case F:return ur(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case M:i=10;break e;case I:i=9;break e;case R:i=11;break e;case U:i=14;break e;case A:i=16,r=null;break e}throw Error(d(130,null==e?e:typeof e,""))}return(t=l9(i,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function un(e,t,n,r){return(e=l9(7,e,r,t)).lanes=n,e}function ur(e,t,n,r){return(e=l9(22,e,r,t)).elementType=F,e.lanes=n,e.stateNode={isHidden:!1},e}function uo(e,t,n){return(e=l9(6,e,null,t)).lanes=n,e}function ua(e,t,n){return(t=l9(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ui(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=tw(0),this.expirationTimes=tw(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tw(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ul(e,t,n,r,o,a,i,l,u){return e=new ui(e,t,n,l,u),1===t?(t=1,!0===a&&(t|=8)):t=0,a=l9(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},oK(a),e}function uu(e){if(!e)return r4;e=e._reactInternals;e:{if(e3(e)!==e||1!==e.tag)throw Error(d(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(r9(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t)throw Error(d(171))}if(1===e.tag){var n=e.type;if(r9(n))return ot(e,n,t)}return t}function us(e,t,n,r,o,a,i,l,u){return(e=ul(n,r,!0,e,o,a,i,l,u)).context=uu(null),n=e.current,(a=oZ(r=lI(),o=lR(n))).callback=null!=t?t:null,o0(n,a,o),e.current.lanes=o,tx(e,o,r),lL(e,r),e}function uc(e,t,n,r){var o=t.current,a=lI(),i=lR(o);return n=uu(n),null===t.context?t.context=n:t.pendingContext=n,(t=oZ(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=o0(o,t,i))&&(lz(e,o,i,a),o1(e,o,i)),i}function uf(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ud(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function up(e,t){ud(e,t),(e=e.alternate)&&ud(e,t)}s=function(e,t,n){if(null!==e){if(e.memoizedProps!==t.pendingProps||r6.current)ix=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return ix=!1,function(e,t,n){switch(t.tag){case 3:iN(t),oM();break;case 5:am(t);break;case 1:r9(t.type)&&on(t);break;case 4:ap(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;r2(oL,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState)){if(null!==r.dehydrated)return r2(ag,1&ag.current),t.flags|=128,null;if(0!=(n&t.child.childLanes))return iR(e,t,n);return r2(ag,1&ag.current),null!==(e=iB(e,t,n))?e.sibling:null}r2(ag,1&ag.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return iF(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),r2(ag,ag.current),!r)return null;break;case 22:case 23:return t.lanes=0,iC(e,t,n)}return iB(e,t,n)}(e,t,n);ix=0!=(131072&e.flags)}}else ix=!1,o_&&0!=(1048576&t.flags)&&ob(t,od,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;iq(e,t),e=t.pendingProps;var o=r5(t,r3.current);oW(t,n),o=aM(null,t,r,e,o,n);var a=aI();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,r9(r)?(a=!0,on(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,oK(t),o.updater=o5,t.stateNode=o,o._reactInternals=t,at(t,r,e,n),t=ij(null,t,r,!0,a,n)):(t.tag=0,o_&&a&&ow(t),ik(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(iq(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return l7(e)?1:0;if(null!=e){if((e=e.$$typeof)===R)return 11;if(e===U)return 14}return 2}(r),e=oz(r,e),o){case 0:t=iO(null,t,r,e,n);break e;case 1:t=iT(null,t,r,e,n);break e;case 11:t=iS(null,t,r,e,n);break e;case 14:t=i_(null,t,r,oz(r.type,e),n);break e}throw Error(d(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:oz(r,o),iO(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:oz(r,o),iT(e,t,r,o,n);case 3:e:{if(iN(t),null===e)throw Error(d(387));r=t.pendingProps,o=(a=t.memoizedState).element,oJ(e,t),o4(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){o=ic(Error(d(423)),t),t=iD(e,t,r,n,o);break e}if(r!==o){o=ic(Error(d(424)),t),t=iD(e,t,r,n,o);break e}for(oS=rA(t.stateNode.containerInfo.firstChild),ok=t,o_=!0,oE=null,n=al(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(oM(),r===o){t=iB(e,t,n);break e}ik(e,t,r,n)}t=t.child}return t;case 5:return am(t),null===e&&oT(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children,rD(r,o)?i=null:null!==a&&rD(r,a)&&(t.flags|=32),iP(e,t),ik(e,t,i,n),t.child;case 6:return null===e&&oT(t),null;case 13:return iR(e,t,n);case 4:return ap(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ai(t,null,r,n):ik(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:oz(r,o),iS(e,t,r,o,n);case 7:return ik(e,t,t.pendingProps,n),t.child;case 8:case 12:return ik(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,r2(oL,r._currentValue),r._currentValue=i,null!==a){if(nQ(a.value,i)){if(a.children===o.children&&!r6.current){t=iB(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){i=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=oZ(-1,n&-n)).tag=2;var s=a.updateQueue;if(null!==s){var c=(s=s.shared).pending;null===c?u.next=u:(u.next=c.next,c.next=u),s.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),oH(a.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===a.tag)i=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(i=a.return))throw Error(d(341));i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),oH(i,n,t),i=a.sibling}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===t){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}}ik(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,oW(t,n),r=r(o=oY(o)),t.flags|=1,ik(e,t,r,n),t.child;case 14:return o=oz(r=t.type,t.pendingProps),o=oz(r.type,o),i_(e,t,r,o,n);case 15:return iE(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:oz(r,o),iq(e,t),t.tag=1,r9(r)?(e=!0,on(t)):e=!1,oW(t,n),o7(t,r,o),at(t,r,o,n),ij(null,t,r,!0,e,n);case 19:return iF(e,t,n);case 22:return iC(e,t,n)}throw Error(d(156,t.tag))};var uh="function"==typeof reportError?reportError:function(e){console.error(e)};function um(e){this._internalRoot=e}function uy(e){this._internalRoot=e}function ug(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function uv(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ub(){}function uw(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var l=o;o=function(){var e=uf(i);l.call(e)}}uc(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=uf(i);a.call(e)}}var i=us(t,r,e,0,null,!1,!1,"",ub);return e._reactRootContainer=i,e[rW]=i.current,rv(8===e.nodeType?e.parentNode:e),lW(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=uf(u);l.call(e)}}var u=ul(e,0,!1,null,null,!1,!1,"",ub);return e._reactRootContainer=u,e[rW]=u.current,rv(8===e.nodeType?e.parentNode:e),lW(function(){uc(t,u,n,r)}),u}(n,t,e,o,r);return uf(i)}uy.prototype.render=um.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(d(409));uc(e,t,null,null)},uy.prototype.unmount=um.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;lW(function(){uc(null,e,null,null)}),t[rW]=null}},uy.prototype.unstable_scheduleHydration=function(e){if(e){var t=tO();e={blockedOn:null,target:e,priority:t};for(var n=0;n<tL.length&&0!==t&&t<tL[n].priority;n++);tL.splice(n,0,e),0===n&&tq(e)}},tE=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ty(t.pendingLanes);0!==n&&(tk(t,1|n),lL(t,tn()),0==(6&lu)&&(lk=tn()+500,ou()))}break;case 13:lW(function(){var t=oQ(e,1);null!==t&&lz(t,e,1,lI())}),up(e,1)}},tC=function(e){if(13===e.tag){var t=oQ(e,134217728);null!==t&&lz(t,e,134217728,lI()),up(e,134217728)}},tP=function(e){if(13===e.tag){var t=lR(e),n=oQ(e,t);null!==n&&lz(n,e,t,lI()),up(e,t)}},tO=function(){return tS},tT=function(e,t){var n=tS;try{return tS=e,t()}finally{tS=n}},eU=function(e,t,n){switch(t){case"input":if(eh(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=rK(r);if(!o)throw Error(d(90));es(r),eh(r,o)}}}break;case"textarea":ex(e,n);break;case"select":null!=(t=n.value)&&ev(e,!!n.multiple,t,!1)}},eW=lH,eY=lW;var ux={findFiberByHostInstance:r$,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},uk={bundleType:ux.bundleType,version:ux.version,rendererPackageName:ux.rendererPackageName,rendererConfig:ux.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:P.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=e5(e))?null:e.stateNode},findFiberByHostInstance:ux.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var uS=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uS.isDisabled&&uS.supportsFiber)try{ts=uS.inject(uk),tc=uS}catch(e){}}H={usingClientEntryPoint:!1,Events:[rQ,rG,rK,eB,eH,lH]},W=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ug(t))throw Error(d(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:T,key:null==r?null:""+r,children:e,containerInfo:t,implementation:null}}(e,t,null,n)},Y=function(e,t){if(!ug(e))throw Error(d(299));var n=!1,r="",o=uh;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=ul(e,1,!1,null,null,n,!1,r,o),e[rW]=t.current,rv(8===e.nodeType?e.parentNode:e),new um(t)},V=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(d(188));throw Error(d(268,e=Object.keys(e).join(",")))}return e=null===(e=e5(t))?null:e.stateNode},X=function(e){return lW(e)},$=function(e,t,n){if(!uv(t))throw Error(d(200));return uw(null,e,t,!0,n)},Q=function(e,t,n){if(!ug(e))throw Error(d(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",i=uh;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(i=n.onRecoverableError)),t=us(t,null,e,1,null!=n?n:null,o,!1,a,i),e[rW]=t.current,rv(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new uy(t)},G=function(e,t,n){if(!uv(t))throw Error(d(200));return uw(null,e,t,!1,n)},K=function(e){if(!uv(e))throw Error(d(40));return!!e._reactRootContainer&&(lW(function(){uw(null,null,e,!1,function(){e._reactRootContainer=null,e[rW]=null})}),!0)},J=lH,Z=function(e,t,n,r){if(!uv(n))throw Error(d(200));if(null==e||void 0===e._reactInternals)throw Error(d(38));return uw(e,t,n,!1,r)},ee="18.2.0-next-9e3b772b8-20220608"}),i("kMsGZ",function(e,t){e.exports=a("ibDWe")}),i("ibDWe",function(t,n){function r(e,t){var n=e.length;for(e.push(t);0<n;){var r=n-1>>>1,o=e[r];if(0<i(o,t))e[r]=t,e[n]=o,n=r;else break}}function o(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,u=e[l],s=l+1,c=e[s];if(0>i(u,n))s<o&&0>i(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[l]=n,r=l);else if(s<o&&0>i(c,n))e[r]=c,e[s]=n,r=s;else break}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e(t.exports,"unstable_now",()=>l,e=>l=e),e(t.exports,"unstable_IdlePriority",()=>u,e=>u=e),e(t.exports,"unstable_ImmediatePriority",()=>s,e=>s=e),e(t.exports,"unstable_LowPriority",()=>c,e=>c=e),e(t.exports,"unstable_NormalPriority",()=>f,e=>f=e),e(t.exports,"unstable_Profiling",()=>d,e=>d=e),e(t.exports,"unstable_UserBlockingPriority",()=>p,e=>p=e),e(t.exports,"unstable_cancelCallback",()=>h,e=>h=e),e(t.exports,"unstable_continueExecution",()=>m,e=>m=e),e(t.exports,"unstable_forceFrameRate",()=>y,e=>y=e),e(t.exports,"unstable_getCurrentPriorityLevel",()=>g,e=>g=e),e(t.exports,"unstable_getFirstCallbackNode",()=>v,e=>v=e),e(t.exports,"unstable_next",()=>b,e=>b=e),e(t.exports,"unstable_pauseExecution",()=>w,e=>w=e),e(t.exports,"unstable_requestPaint",()=>x,e=>x=e),e(t.exports,"unstable_runWithPriority",()=>k,e=>k=e),e(t.exports,"unstable_scheduleCallback",()=>S,e=>S=e),e(t.exports,"unstable_shouldYield",()=>_,e=>_=e),e(t.exports,"unstable_wrapCallback",()=>E,e=>E=e),"object"==typeof performance&&"function"==typeof performance.now){var l,u,s,c,f,d,p,h,m,y,g,v,b,w,x,k,S,_,E,C,P=performance;l=function(){return P.now()}}else{var O=Date,T=O.now();l=function(){return O.now()-T}}var j=[],N=[],D=1,M=null,I=3,R=!1,z=!1,L=!1,U="function"==typeof setTimeout?setTimeout:null,A="function"==typeof clearTimeout?clearTimeout:null,F="undefined"!=typeof setImmediate?setImmediate:null;function q(e){for(var t=o(N);null!==t;){if(null===t.callback)a(N);else if(t.startTime<=e)a(N),t.sortIndex=t.expirationTime,r(j,t);else break;t=o(N)}}function B(e){if(L=!1,q(e),!z){if(null!==o(j))z=!0,Z(H);else{var t=o(N);null!==t&&ee(B,t.startTime-e)}}}function H(e,t){z=!1,L&&(L=!1,A(V),V=-1),R=!0;var n=I;try{for(q(t),M=o(j);null!==M&&(!(M.expirationTime>t)||e&&!Q());){var r=M.callback;if("function"==typeof r){M.callback=null,I=M.priorityLevel;var i=r(M.expirationTime<=t);t=l(),"function"==typeof i?M.callback=i:M===o(j)&&a(j),q(t)}else a(j);M=o(j)}if(null!==M)var u=!0;else{var s=o(N);null!==s&&ee(B,s.startTime-t),u=!1}return u}finally{M=null,I=n,R=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var W=!1,Y=null,V=-1,X=5,$=-1;function Q(){return!(l()-$<X)}function G(){if(null!==Y){var e=l();$=e;var t=!0;try{t=Y(!0,e)}finally{t?C():(W=!1,Y=null)}}else W=!1}if("function"==typeof F)C=function(){F(G)};else if("undefined"!=typeof MessageChannel){var K=new MessageChannel,J=K.port2;K.port1.onmessage=G,C=function(){J.postMessage(null)}}else C=function(){U(G,0)};function Z(e){Y=e,W||(W=!0,C())}function ee(e,t){V=U(function(){e(l())},t)}u=5,s=1,c=4,f=3,d=null,p=2,h=function(e){e.callback=null},m=function(){z||R||(z=!0,Z(H))},y=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<e?Math.floor(1e3/e):5},g=function(){return I},v=function(){return o(j)},b=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},w=function(){},x=function(){},k=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},S=function(e,t,n){var a=l();switch(n="object"==typeof n&&null!==n&&"number"==typeof(n=n.delay)&&0<n?a+n:a,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=n+i,e={id:D++,callback:t,priorityLevel:e,startTime:n,expirationTime:i,sortIndex:-1},n>a?(e.sortIndex=n,r(N,e),null===o(j)&&e===o(N)&&(L?(A(V),V=-1):L=!0,ee(B,n-a))):(e.sortIndex=i,r(j,e),z||R||(z=!0,Z(H))),e},_=Q,E=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}}}),i("9lBIB",function(t,n){e(t.exports,"EventApiContainer",()=>s);var r=a("aPJhp");a("es0kx");var o=a("zDlfa");a("8Nfb8");var i=a("iCpfk"),l=a("85Hg2"),u=a("4kvsU");let s=({type:e})=>{let[t,n]=(0,l.useState)([null,null,null]),[a,s]=(0,l.useState)(!0);return(0,l.useEffect)(()=>{(async function(){let t="events"===e?o.fetchEvents:o.fetchBoardEvents;t().then(e=>n(e)).catch(e=>console.log(e)).finally(()=>s(!1))})()},[e]),/*#__PURE__*/(0,r.jsx)("div",{className:u.appContainer,children:/*#__PURE__*/(0,r.jsx)(i.EventContainer,{events:t,loading:a,showCalendar:"events"===e,title:"events"===e?"What's going on at Camp?":"Upcoming Board Events"})})}}),i("es0kx",function(t,n){e(t.exports,"fetchBanners",()=>a("e7cNO").fetchBanners),e(t.exports,"fetchBoardEvents",()=>a("zDlfa").fetchBoardEvents),e(t.exports,"fetchEvents",()=>a("zDlfa").fetchEvents),e(t.exports,"urlFor",()=>a("3mBFY").urlFor),a("bMTON")}),i("bMTON",function(t,n){e(t.exports,"urlFor",()=>a("3mBFY").urlFor),e(t.exports,"fetchBanners",()=>a("e7cNO").fetchBanners),e(t.exports,"fetchBoardEvents",()=>a("zDlfa").fetchBoardEvents),e(t.exports,"fetchEvents",()=>a("zDlfa").fetchEvents),a("3mBFY"),a("e7cNO"),a("zDlfa"),a("4GvL9"),a("d6gIt")}),i("3mBFY",function(n,r){e(n.exports,"sanityClient",()=>l),e(n.exports,"urlFor",()=>s);var o=a("04mt4"),i=a("buHTW");let l=/*@__PURE__*/t(o)({projectId:"m5ik5me8",dataset:"production",apiVersion:"2021-10-26",token:"",useCdn:!0}),u=/*@__PURE__*/t(i)(l),s=e=>u.image(e)}),i("04mt4",function(e,t){function n(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 r=a("kyWRD"),o=a("aiKnb").filter,i=a("l4Rsy").map,l=a("43TKF"),u=a("aWf8g"),s=a("hKHmG"),c=a("ctI6B"),f=a("ggojs"),d=a("9uMG3"),p=a("cWIk5"),h=a("6J3BK"),m=a("g7oao"),y=a("32Eny"),g=a("2y8T0"),v=g.defaultConfig,b=g.initConfig,w=a("19TJa");function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;if(!(this instanceof x))return new x(e);if(this.config(e),this.assets=new d(this),this.datasets=new c(this),this.projects=new f(this),this.users=new p(this),this.auth=new h(this),this.clientConfig.isPromiseAPI){var t=r({},this.clientConfig,{isPromiseAPI:!1});this.observable=new x(t)}}r(x.prototype,s),r(x.prototype,{clone:function(){return new x(this.config())},config:function(e){if(void 0===e)return r({},this.clientConfig);if(this.observable){var t=r({},e,{isPromiseAPI:!1});this.observable.config(t)}return this.clientConfig=b(e,this.clientConfig||{}),this},withConfig:function(e){return this.clone().config(e)},getUrl:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t?this.clientConfig.cdnUrl:this.clientConfig.url;return"".concat(n,"/").concat(e.replace(/^\//,""))},isPromiseAPI:function(){return this.clientConfig.isPromiseAPI},_requestObservable:function(e){var t=e.url||e.uri,o=void 0===e.canUseCdn?["GET","HEAD"].indexOf(e.method||"GET")>=0&&0===t.indexOf("/data/"):e.canUseCdn,a=this.clientConfig.useCdn&&o,i=e.tag&&this.clientConfig.requestTagPrefix?[this.clientConfig.requestTagPrefix,e.tag].join("."):e.tag||this.clientConfig.requestTagPrefix;// If the `canUseCdn`-option is not set we detect it automatically based on the method + URL.
|
|
7
|
+
return i&&(e.query=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({tag:w.requestTag(i)},e.query)),m(y(this.clientConfig,r({},e,{url:this.getUrl(t,a)})),this.clientConfig.requester)},request:function(e){var t=this._requestObservable(e).pipe(o(function(e){return"response"===e.type}),i(function(e){return e.body}));return this.isPromiseAPI()?t.toPromise():t}}),x.Patch=l,x.Transaction=u,x.ClientError=m.ClientError,x.ServerError=m.ServerError,x.requester=m.defaultRequester,e.exports=x}),i("kyWRD",function(e,t){/* eslint-disable no-unused-vars */var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=!function(){try{if(!Object.assign)return!1;// Detect buggy property enumeration order in older V8 versions.
|
|
8
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
9
|
+
var e=new String("abc");// eslint-disable-line no-new-wrappers
|
|
10
|
+
if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
11
|
+
var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
12
|
+
var o={};if("abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},o)).join(""))return!1;return!0}catch(e){// We don't expect any of the above to throw, but better to be safe.
|
|
13
|
+
return!1}}()?function(e,t){for(var a,i,l=function(e){if(null==e)throw TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var s in a=Object(arguments[u]))r.call(a,s)&&(l[s]=a[s]);if(n){i=n(a);for(var c=0;c<i.length;c++)o.call(a,i[c])&&(l[i[c]]=a[i[c]])}}return l}:Object.assign}),i("aiKnb",function(t,n){var r;e(t.exports,"filter",()=>r,e=>r=e),r=a("5EgDY").filter}),i("5EgDY",function(e,t){var n,r=e.exports&&e.exports.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(e.exports,"__esModule",{value:!0});var o=a("htxoS");e.exports.filter=function(e,t){return function(n){return n.lift(new i(e,t))}};var i=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.predicate,this.thisArg))},e}(),l=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return r(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){this.destination.error(e);return}t&&this.destination.next(e)},t}(o.Subscriber)}),i("htxoS",function(e,t){var n,r=e.exports&&e.exports.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(e.exports,"__esModule",{value:!0});var o=a("eo4wJ"),i=a("dXOrn"),l=a("684mH"),u=a("hoKRX"),s=a("1SUGI"),c=a("lrS9P"),f=function(e){function t(n,r,o){var a=e.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=i.empty;break;case 1:if(!n){a.destination=i.empty;break}if("object"==typeof n){n instanceof t?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new d(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new d(a,n,r,o)}return a}return r(t,e),t.prototype[u.rxSubscriber]=function(){return this},t.create=function(e,n,r){var o=new t(e,n,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(l.Subscription);e.exports.Subscriber=f;var d=function(e){function t(t,n,r,a){var l,u=e.call(this)||this;u._parentSubscriber=t;var s=u;return o.isFunction(n)?l=n:n&&(l=n.next,r=n.error,a=n.complete,n!==i.empty&&(s=Object.create(n),o.isFunction(s.unsubscribe)&&u.add(s.unsubscribe.bind(s)),s.unsubscribe=u.unsubscribe.bind(u))),u._context=s,u._next=l,u._error=r,u._complete=a,u}return r(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;s.config.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=s.config.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?this.__tryOrSetError(t,this._error,e):this.__tryOrUnsub(this._error,e),this.unsubscribe();else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):c.hostReportError(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;c.hostReportError(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};s.config.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,n):this.__tryOrUnsub(n),this.unsubscribe()}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),s.config.useDeprecatedSynchronousErrorHandling)throw e;c.hostReportError(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!s.config.useDeprecatedSynchronousErrorHandling)throw Error("bad call");try{t.call(this._context,n)}catch(t){if(s.config.useDeprecatedSynchronousErrorHandling)return e.syncErrorValue=t,e.syncErrorThrown=!0,!0;return c.hostReportError(t),!0}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(f);e.exports.SafeSubscriber=d}),i("eo4wJ",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.isFunction=function(e){return"function"==typeof e}}),i("dXOrn",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0});var n=a("1SUGI"),r=a("lrS9P");e.exports.empty={closed:!0,next:function(e){},error:function(e){if(n.config.useDeprecatedSynchronousErrorHandling)throw e;r.hostReportError(e)},complete:function(){}}}),i("1SUGI",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0});var n=!1;e.exports.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value?console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+Error().stack):n&&console.log("RxJS: Back to a better error behavior. Thank you. <3"),n=value},get useDeprecatedSynchronousErrorHandling(){return n}}}),i("lrS9P",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.hostReportError=function(e){setTimeout(function(){throw e},0)}}),i("684mH",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0});var n=a("goEo3"),r=a("8aLzC"),o=a("eo4wJ"),i=a("kYq89"),l=function(){var e;function t(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return t.prototype.unsubscribe=function(){if(!this.closed){var e,a=this._parentOrParents,l=this._ctorUnsubscribe,s=this._unsubscribe,c=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,a instanceof t)a.remove(this);else if(null!==a)for(var f=0;f<a.length;++f)a[f].remove(this);if(o.isFunction(s)){l&&(this._unsubscribe=void 0);try{s.call(this)}catch(t){e=t instanceof i.UnsubscriptionError?u(t.errors):[t]}}if(n.isArray(c))for(var f=-1,d=c.length;++f<d;){var p=c[f];if(r.isObject(p))try{p.unsubscribe()}catch(t){e=e||[],t instanceof i.UnsubscriptionError?e=e.concat(u(t.errors)):e.push(t)}}if(e)throw new i.UnsubscriptionError(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw Error("unrecognized teardown "+e+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof t){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var a=this._subscriptions;return null===a?this._subscriptions=[n]:a.push(n),n},t.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function u(e){return e.reduce(function(e,t){return e.concat(t instanceof i.UnsubscriptionError?t.errors:t)},[])}e.exports.Subscription=l}),i("goEo3",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.isArray=Array.isArray||function(e){return e&&"number"==typeof e.length}}),i("8aLzC",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.isObject=function(e){return null!==e&&"object"==typeof e}}),i("kYq89",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0});var n=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}();e.exports.UnsubscriptionError=n}),i("hoKRX",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.rxSubscriber="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),e.exports.$$rxSubscriber=e.exports.rxSubscriber}),i("l4Rsy",function(t,n){var r;e(t.exports,"map",()=>r,e=>r=e),r=a("7hWz4").map}),i("7hWz4",function(e,t){var n,r=e.exports&&e.exports.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(e.exports,"__esModule",{value:!0});var o=a("htxoS");e.exports.map=function(e,t){return function(n){if("function"!=typeof e)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new i(e,t))}};var i=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.project,this.thisArg))},e}();e.exports.MapOperator=i;var l=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return r(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){this.destination.error(e);return}this.destination.next(t)},t}(o.Subscriber)}),i("43TKF",function(e,t){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=a("40b2E"),o=a("kyWRD"),i=a("cpIUs"),l=a("19TJa"),u=l.validateObject,s=l.validateInsert;function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.selection=e,this.operations=o({},t),this.client=n}o(c.prototype,{clone:function(){return new c(this.selection,o({},this.operations),this.client)},merge:function(e){u("merge",e);var t=Error().stack.toString().split("\n").filter(function(e){return e.trim()}).slice(2);return console.warn('The "merge" patch has been deprecated and will be removed in the future\n'.concat(t.join("\n"))),this._assign("merge",r(this.operations.merge||{},e))},set:function(e){return this._assign("set",e)},diffMatchPatch:function(e){return u("diffMatchPatch",e),this._assign("diffMatchPatch",e)},unset:function(e){if(!Array.isArray(e))throw Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=o({},this.operations,{unset:e}),this},setIfMissing:function(e){return this._assign("setIfMissing",e)},replace:function(e){return u("replace",e),this._set("set",{$:e});// eslint-disable-line id-length
|
|
14
|
+
},inc:function(e){return this._assign("inc",e)},dec:function(e){return this._assign("dec",e)},insert:function(e,t,r){var o;return s(e,t,r),this._assign("insert",(n(o={},e,t),n(o,"items",r),o))},append:function(e,t){return this.insert("after","".concat(e,"[-1]"),t)},prepend:function(e,t){return this.insert("before","".concat(e,"[0]"),t)},splice:function(e,t,n,r){var o=t<0?t-1:t,a=void 0===n||-1===n?-1:Math.max(0,t+n),i=o<0&&a>=0?"":a,l="".concat(e,"[").concat(o,":").concat(i,"]");return this.insert("replace",l,r||[])},ifRevisionId:function(e){return this.operations.ifRevisionID=e,this},serialize:function(){return o(i(this.selection),this.operations)},toJSON:function(){return this.serialize()},commit:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.client)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");var t=o({returnFirst:"string"==typeof this.selection,returnDocuments:!0},e);return this.client.mutate({patch:this.serialize()},t)},reset:function(){return this.operations={},this},_set:function(e,t){return this._assign(e,t,!1)},_assign:function(e,t){var r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return u(e,t),this.operations=o({},this.operations,n({},e,o({},r&&this.operations[e]||{},t))),this}}),e.exports=c}),i("40b2E",function(e,t){var n=a("iFF5R"),r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(e,t,o){var a=t[o];if(null!=a){if(r.call(e,o)&&(void 0===e[o]||null===e[o]))throw TypeError("Cannot convert undefined or null to object ("+o+")");r.call(e,o)&&n(a)?e[o]=l(Object(e[o]),t[o]):e[o]=a}}function l(e,t){if(e===t)return e;for(var n in t=Object(t))r.call(t,n)&&i(e,t,n);if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(t),l=0;l<a.length;l++)o.call(t,a[l])&&i(e,t,a[l]);return e}e.exports=function(e){e=function(e){if(null==e)throw TypeError("Sources cannot be null or undefined");return Object(e)}(e);for(var t=1;t<arguments.length;t++)l(e,arguments[t]);return e}}),i("iFF5R",function(e,t){e.exports=function(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}}),i("cpIUs",function(e,t){e.exports=function(e){if("string"==typeof e||Array.isArray(e))return{id:e};if(e&&e.query)return"params"in e?{query:e.query,params:e.params}:{query:e.query};throw Error("Unknown selection - must be one of:\n\n".concat("* Document ID (<docId>)\n* Array of document IDs\n* Object containing `query`"))}}),i("19TJa",function(t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e(t.exports,"dataset",()=>o,e=>o=e),e(t.exports,"projectId",()=>a,e=>a=e),e(t.exports,"validateAssetType",()=>i,e=>i=e),e(t.exports,"validateObject",()=>l,e=>l=e),e(t.exports,"requireDocumentId",()=>u,e=>u=e),e(t.exports,"validateDocumentId",()=>s,e=>s=e),e(t.exports,"validateInsert",()=>c,e=>c=e),e(t.exports,"hasDataset",()=>f,e=>f=e),e(t.exports,"requestTag",()=>d,e=>d=e);var o,a,i,l,u,s,c,f,d,p=["image","file"],h=["before","after","replace"];o=function(e){if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(e))throw Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},a=function(e){if(!/^[-a-z0-9]+$/i.test(e))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")},i=function(e){if(-1===p.indexOf(e))throw Error("Invalid asset type: ".concat(e,". Must be one of ").concat(p.join(", ")))},l=function(e,t){if(null===t||"object"!==r(t)||Array.isArray(t))throw Error("".concat(e,"() takes an object of properties"))},u=function(e,t){if(!t._id)throw Error("".concat(e,'() requires that the document contains an ID ("_id" property)'));s(e,t._id)},s=function(e,t){if("string"!=typeof t||!/^[a-z0-9_.-]+$/i.test(t))throw Error("".concat(e,'(): "').concat(t,'" is not a valid document ID'))},c=function(e,t,n){var r="insert(at, selector, items)";if(-1===h.indexOf(e)){var o=h.map(function(e){return'"'.concat(e,'"')}).join(", ");throw Error("".concat(r,' takes an "at"-argument which is one of: ').concat(o))}if("string"!=typeof t)throw Error("".concat(r,' takes a "selector"-argument which must be a string'));if(!Array.isArray(n))throw Error("".concat(r,' takes an "items"-argument which must be an array'))},f=function(e){if(!e.gradientMode&&!e.dataset)throw Error("`dataset` must be provided to perform queries");return e.dataset||""},d=function(e){if("string"!=typeof e||!/^[a-z0-9._-]{1,75}$/i.test(e))throw Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return e}}),i("aWf8g",function(e,t){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=a("kyWRD"),o=a("19TJa"),i=a("43TKF"),l={returnDocuments:!1};function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;this.trxId=n,this.operations=e,this.client=t}r(u.prototype,{clone:function(){return new u(this.operations.slice(0),this.client,this.trxId)},create:function(e){return o.validateObject("create",e),this._add({create:e})},createIfNotExists:function(e){var t="createIfNotExists";return o.validateObject(t,e),o.requireDocumentId(t,e),this._add(n({},t,e))},createOrReplace:function(e){var t="createOrReplace";return o.validateObject(t,e),o.requireDocumentId(t,e),this._add(n({},t,e))},delete:function(e){return o.validateDocumentId("delete",e),this._add({delete:{id:e}})},patch:function(e,t){var n="function"==typeof t;if(e instanceof i)return this._add({patch:e.serialize()});// patch => patch.inc({visits: 1}).set({foo: 'bar'})
|
|
15
|
+
if(n){var o=t(new i(e,{},this.client));if(!(o instanceof i))throw Error("function passed to `patch()` must return the patch");return this._add({patch:o.serialize()})}return this._add({patch:r({id:e},t)})},transactionId:function(e){return e?(this.trxId=e,this):this.trxId},serialize:function(){return this.operations.slice()},toJSON:function(){return this.serialize()},commit:function(e){if(!this.client)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.client.mutate(this.serialize(),r({transactionId:this.trxId},l,e||{}))},reset:function(){return this.operations=[],this},_add:function(e){return this.operations.push(e),this}}),e.exports=u}),i("hKHmG",function(e,t){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=a("kyWRD"),o=a("aiKnb").filter,i=a("l4Rsy").map,l=a("19TJa"),u=a("cpIUs"),s=a("4biX2"),c=a("aWf8g"),f=a("43TKF"),d=a("2Y2xK"),p=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{returnIds:!0,returnDocuments:!1===(e=t.returnDocuments)?void 0:void 0===e||e,visibility:t.visibility||"sync"}},h=function(e){return"response"===e.type},m=function(e){return e.body},y=function(e){return e.toPromise()};e.exports={listen:d,getDataUrl:function(e,t){var n=this.clientConfig,r=n.gradientMode?n.namespace:l.hasDataset(n),o="/".concat(e,"/").concat(r),a=t?"".concat(o,"/").concat(t):o;return(this.clientConfig.gradientMode?a:"/data".concat(a)).replace(/\/($|\?)/,"$1")},fetch:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!1===n.filterResponse?function(e){return e}:function(e){return e.result},o=this._dataRequest("query",{query:e,params:t},n).pipe(i(r));return this.isPromiseAPI()?y(o):o},getDocument:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={uri:this.getDataUrl("doc",e),json:!0,tag:t.tag},r=this._requestObservable(n).pipe(o(h),i(function(e){return e.body.documents&&e.body.documents[0]}));return this.isPromiseAPI()?y(r):r},getDocuments:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={uri:this.getDataUrl("doc",e.join(",")),json:!0,tag:t.tag},r=this._requestObservable(n).pipe(o(h),i(function(t){var n=(t.body.documents||[]).reduce(function(e,t){return e[t._id]=t,e},Object.create(null));return e.map(function(e){return n[e]||null})}));return this.isPromiseAPI()?y(r):r},create:function(e,t){return this._create(e,"create",t)},createIfNotExists:function(e,t){return l.requireDocumentId("createIfNotExists",e),this._create(e,"createIfNotExists",t)},createOrReplace:function(e,t){return l.requireDocumentId("createOrReplace",e),this._create(e,"createOrReplace",t)},patch:function(e,t){return new f(e,t,this)},delete:function(e,t){return this.dataRequest("mutate",{mutations:[{delete:u(e)}]},t)},mutate:function(e,t){var n=e instanceof f||e instanceof c?e.serialize():e,r=Array.isArray(n)?n:[n],o=t&&t.transactionId;return this.dataRequest("mutate",{mutations:r,transactionId:o},t)},transaction:function(e){return new c(e,this)},dataRequest:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._dataRequest(e,t,n);return this.isPromiseAPI()?y(r):r},_dataRequest:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a="mutate"===e,l="query"===e,u=!a&&s(t),c=!a&&u.length<11264,f=r.returnFirst,d=r.timeout,y=r.token,g=r.tag,v={method:c?"GET":"POST",uri:this.getDataUrl(e,c?u:""),json:!0,body:c?void 0:t,query:a&&p(r),timeout:d,token:y,tag:g,canUseCdn:l};return this._requestObservable(v).pipe(o(h),i(m),i(function(e){if(!a)return e;// Should we return documents?
|
|
16
|
+
var t=e.results||[];if(r.returnDocuments)return f?t[0]&&t[0].document:t.map(function(e){return e.document});var o=f?t[0]&&t[0].id:t.map(function(e){return e.id});return n({transactionId:e.transactionId,results:t},f?"documentId":"documentIds",o)}))},_create:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n({},t,e),i=r({returnFirst:!0,returnDocuments:!0},o);return this.dataRequest("mutate",{mutations:[a]},i)}}}),i("4biX2",function(e,t){var n=["tag"],r=encodeURIComponent;e.exports=function(e){var t=e.query,o=e.params,a=void 0===o?{}:o,i=e.options,l=void 0===i?{}:i,u=l.tag,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(l,n),c="query=".concat(r(t)),f=u?"?tag=".concat(r(u),"&").concat(c):"?".concat(c),d=Object.keys(a).reduce(function(e,t){return"".concat(e,"&").concat(r("$".concat(t)),"=").concat(r(JSON.stringify(a[t])))},f);return Object.keys(s).reduce(function(e,t){// Only include the option if it is truthy
|
|
17
|
+
return l[t]?"".concat(e,"&").concat(r(t),"=").concat(r(l[t])):e},d)}}),i("2Y2xK",function(e,t){function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var o=a("kyWRD"),i=a("bUAP4"),l=a("eYqgT"),u=a("g1Zrh"),s=a("d1Bvu"),c=a("4yABd"),f=a("k0cyf"),d=a("4biX2"),p=["Using token with listeners is not supported in browsers. ","For more info, see ".concat(u("js-client-listener-tokens-browser"),".")],h=c(function(){return console.warn(p.join(" "))}),m=!!("undefined"!=typeof window&&window.EventSource),y=m?window.EventSource// Native browser EventSource
|
|
18
|
+
:l,g=["includePreviousRevision","includeResult","visibility","effectFormat","tag"],v={includeResult:!0};function b(e){try{var t=e.data&&JSON.parse(e.data)||{};return o({type:e.type},t)}catch(e){return e}}e.exports=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this.clientConfig,a=o.url,l=o.token,u=o.withCredentials,c=o.requestTagPrefix,p=n.tag&&c?[c,n.tag].join("."):n.tag,w=r(r({},f(n,v)),{},{tag:p}),x=d({query:e,params:t,options:s(w,g),tag:p}),k="".concat(a).concat(this.getDataUrl("listen",x));if(k.length>14800)return new i(function(e){return e.error(Error("Query too large for listener"))});var S=w.events?w.events:["mutation"],_=-1!==S.indexOf("reconnect");l&&m&&h();var E={};return(l||u)&&(E.withCredentials=!0),l&&(E.headers={Authorization:"Bearer ".concat(l)}),new i(function(e){var t,n=s(),r=!1;function o(){!r&&(_&&e.next({type:"reconnect"}),r||n.readyState!==y.CLOSED||(u(),clearTimeout(t),t=setTimeout(c,100)))}function a(t){e.error(function(e){if(e instanceof Error)return e;var t=b(e);return t instanceof Error?t:Error(t.error?t.error.description?t.error.description:"string"==typeof t.error?t.error:JSON.stringify(t.error,null,2):t.message||"Unknown listener error")}(t))}function i(t){var n=b(t);return n instanceof Error?e.error(n):e.next(n)}function l(t){r=!0,u(),e.complete()}function u(){n.removeEventListener("error",o,!1),n.removeEventListener("channelError",a,!1),n.removeEventListener("disconnect",l,!1),S.forEach(function(e){return n.removeEventListener(e,i,!1)}),n.close()}function s(){var e=new y(k,E);return e.addEventListener("error",o,!1),e.addEventListener("channelError",a,!1),e.addEventListener("disconnect",l,!1),S.forEach(function(t){return e.addEventListener(t,i,!1)}),e}function c(){n=s()}return function(){r=!0,u()}})}}),i("bUAP4",function(e,t){e.exports=a("hpqFD")}),i("hpqFD",function(e,t){var n=a("a7poi").Observable,r=a("kyWRD"),o=a("l4Rsy").map,i=a("aiKnb").filter,l=a("S0h4y").reduce;/*
|
|
19
|
+
A minimal rxjs based observable that align as closely as possible with the current es-observable spec,
|
|
20
|
+
without the static factory methods
|
|
21
|
+
*/function u(){n.apply(this,arguments);// eslint-disable-line prefer-rest-params
|
|
22
|
+
}function s(e,t){var n=!1;return function(){return n||(n=!0,console.warn(Error("Calling observable.".concat(e,"(...) is deprecated. Please use observable.pipe(").concat(e,"(...)) instead")))),this.pipe(t.apply(this,arguments))}}u.prototype=Object.create(r(Object.create(null),n.prototype)),Object.defineProperty(u.prototype,"constructor",{value:u,enumerable:!1,writable:!0,configurable:!0}),u.prototype.lift=function(e){var t=new u;return t.source=this,t.operator=e,t},u.prototype.map=s("map",o),u.prototype.filter=s("filter",i),u.prototype.reduce=s("filter",l),e.exports=u}),i("a7poi",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0});var n=a("fnhuE"),r=a("iQNxG"),o=a("kGW57"),i=a("77YfA"),l=a("1SUGI"),u=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var o=this.operator,a=r.toSubscriber(e,t,n);if(o?a.add(o.call(a,this.source)):a.add(this.source||l.config.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.config.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){l.config.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),n.canReportError(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=s(t))(function(t,r){var o;o=n.subscribe(function(t){try{e(t)}catch(e){r(e),o&&o.unsubscribe()}},r,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[o.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:i.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=s(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function s(e){if(e||(e=l.config.Promise||Promise),!e)throw Error("no Promise impl found");return e}e.exports.Observable=u}),i("fnhuE",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0});var n=a("htxoS");e.exports.canReportError=function(e){for(;e;){var t=e,r=t.closed,o=t.destination,a=t.isStopped;if(r||a)return!1;e=o&&o instanceof n.Subscriber?o:null}return!0}}),i("iQNxG",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0});var n=a("htxoS"),r=a("hoKRX"),o=a("dXOrn");e.exports.toSubscriber=function(e,t,a){if(e){if(e instanceof n.Subscriber)return e;if(e[r.rxSubscriber])return e[r.rxSubscriber]()}return e||t||a?new n.Subscriber(e,t,a):new n.Subscriber(o.empty)}}),i("kGW57",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"}),i("77YfA",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0});var n=a("695Pt");function r(e){return 0===e.length?n.identity:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}e.exports.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(e)},e.exports.pipeFromArray=r}),i("695Pt",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.identity=function(e){return e}}),i("S0h4y",function(t,n){var r;e(t.exports,"reduce",()=>r,e=>r=e),r=a("bRQuE").reduce}),i("bRQuE",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0});var n=a("43BmO"),r=a("3nPUO"),o=a("arq4z"),i=a("77YfA");e.exports.reduce=function(e,t){return arguments.length>=2?function(a){return i.pipe(n.scan(e,t),r.takeLast(1),o.defaultIfEmpty(t))(a)}:function(t){return i.pipe(n.scan(function(t,n,r){return e(t,n,r+1)}),r.takeLast(1))(t)}}}),i("43BmO",function(e,t){var n,r=e.exports&&e.exports.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(e.exports,"__esModule",{value:!0});var o=a("htxoS");e.exports.scan=function(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new i(e,t,n))}};var i=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.accumulator,this.seed,this.hasSeed))},e}(),l=function(e){function t(t,n,r,o){var a=e.call(this,t)||this;return a.accumulator=n,a._seed=r,a.hasSeed=o,a.index=0,a}return r(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(o.Subscriber)}),i("3nPUO",function(e,t){var n,r=e.exports&&e.exports.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(e.exports,"__esModule",{value:!0});var o=a("htxoS"),i=a("gKr39"),l=a("9yQPo");e.exports.takeLast=function(e){return function(t){return 0===e?l.empty():t.lift(new u(e))}};var u=function(){function e(e){if(this.total=e,this.total<0)throw new i.ArgumentOutOfRangeError}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.total))},e}(),s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.ring=[],r.count=0,r}return r(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e},t.prototype._complete=function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o<n;o++){var a=t++%n;e.next(r[a])}e.complete()},t}(o.Subscriber)}),i("gKr39",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0});var n=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}();e.exports.ArgumentOutOfRangeError=n}),i("9yQPo",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0});var n=a("a7poi");e.exports.EMPTY=new n.Observable(function(e){return e.complete()}),e.exports.empty=function(t){return t?new n.Observable(function(e){return t.schedule(function(){return e.complete()})}):e.exports.EMPTY}}),i("arq4z",function(e,t){var n,r=e.exports&&e.exports.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(e.exports,"__esModule",{value:!0});var o=a("htxoS");e.exports.defaultIfEmpty=function(e){return void 0===e&&(e=null),function(t){return t.lift(new i(e))}};var i=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.defaultValue))},e}(),l=function(e){function t(t,n){var r=e.call(this,t)||this;return r.defaultValue=n,r.isEmpty=!0,r}return r(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(o.Subscriber)}),i("eYqgT",function(e,t){/* eslint-disable no-var */var n=a("dn59A");e.exports="undefined"!=typeof window&&window.EventSource?window.EventSource:n.EventSource}),i("dn59A",function(e,t){!function(t,r){/* global define */if("function"==typeof define&&define.amd)define([],r);else if(e.exports)e.exports=r();else{// Browser globals (root is window)
|
|
23
|
+
if(n.EventSource&&!n._eventSourceImportPrefix)return;var o=(t._eventSourceImportPrefix||"")+"EventSource";t[o]=r()}}("undefined"==typeof self?e.exports:self,function(){var e=function(e,t){if(!e||"string"!=typeof e)throw SyntaxError("Not enough arguments");this.URL=e,this.setOptions(t);var n=this;setTimeout(function(){n.poll()},0)};if(e.prototype={CONNECTING:0,OPEN:1,CLOSED:2,defaultOptions:{loggingEnabled:!1,loggingPrefix:"eventsource",interval:500,bufferSizeLimit:262144,silentTimeout:3e5,getArgs:{evs_buffer_size_limit:262144},xhrHeaders:{Accept:"text/event-stream","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"}},setOptions:function(e){var t,n=this.defaultOptions;// set all default options...
|
|
24
|
+
for(t in n)n.hasOwnProperty(t)&&(this[t]=n[t]);// override with what is in options
|
|
25
|
+
for(t in e)t in n&&e.hasOwnProperty(t)&&(this[t]=e[t]);this.getArgs&&this.bufferSizeLimit&&(this.getArgs.evs_buffer_size_limit=this.bufferSizeLimit),("undefined"==typeof console||void 0===console.log)&&(this.loggingEnabled=!1)},log:function(e){this.loggingEnabled&&console.log("["+this.loggingPrefix+"]:"+e)},poll:function(){try{if(this.readyState==this.CLOSED)return;this.cleanup(),this.readyState=this.CONNECTING,this.cursor=0,this.cache="",this._xhr=new this.XHR(this),this.resetNoActivityTimer()}catch(e){// in an attempt to silence the errors
|
|
26
|
+
this.log("There were errors inside the pool try-catch"),this.dispatchEvent("error",{type:"error",data:e.message})}},pollAgain:function(e){// schedule poll to be called after interval milliseconds
|
|
27
|
+
var t=this;t.readyState=t.CONNECTING,t.dispatchEvent("error",{type:"error",data:"Reconnecting "}),this._pollTimer=setTimeout(function(){t.poll()},e||0)},cleanup:function(){this.log("evs cleaning up"),this._pollTimer&&(clearInterval(this._pollTimer),this._pollTimer=null),this._noActivityTimer&&(clearInterval(this._noActivityTimer),this._noActivityTimer=null),this._xhr&&(this._xhr.abort(),this._xhr=null)},resetNoActivityTimer:function(){if(this.silentTimeout){this._noActivityTimer&&clearInterval(this._noActivityTimer);var e=this;this._noActivityTimer=setTimeout(function(){e.log("Timeout! silentTImeout:"+e.silentTimeout),e.pollAgain()},this.silentTimeout)}},close:function(){this.readyState=this.CLOSED,this.log("Closing connection. readyState: "+this.readyState),this.cleanup()},_onxhrdata:function(){var e=this._xhr;if(e.isReady()&&!e.hasError()){// reset the timer, as we have activity
|
|
28
|
+
this.resetNoActivityTimer(),this.readyState==this.CONNECTING&&(this.readyState=this.OPEN,this.dispatchEvent("open",{type:"open"}));var t=e.getBuffer();t.length>this.bufferSizeLimit&&(this.log("buffer.length > this.bufferSizeLimit"),this.pollAgain()),0==this.cursor&&t.length>0&&"\uFEFF"==t.substring(0,1)&&(this.cursor=1);var n=this.lastMessageIndex(t);if(n[0]>=this.cursor){var r=n[1],o=t.substring(this.cursor,r);this.parseStream(o),this.cursor=r}e.isDone()&&(this.log("request.isDone(). reopening the connection"),this.pollAgain(this.interval))}else this.readyState!==this.CLOSED&&(this.log("this.readyState !== this.CLOSED"),this.pollAgain(this.interval))},parseStream:function(e){var t,r,o,a,i,l,u=// normalize line separators (\r\n,\r,\n) to \n
|
|
29
|
+
// remove white spaces that may precede \n
|
|
30
|
+
(e=this.cache+this.normalizeToLF(e)).split("\n\n");for(t=0;t<u.length-1;t++){o="message",a=[];var s=u[t].split("\n");for(r=0;r<s.length;r++)0==(i=this.trimWhiteSpace(s[r])).indexOf("event")?o=i.replace(/event:?\s*/,""):0==i.indexOf("retry")?isNaN(l=parseInt(i.replace(/retry:?\s*/,""),10))||(this.interval=l):0==i.indexOf("data")?a.push(i.replace(/data:?\s*/,"")):0==i.indexOf("id:")?this.lastEventId=i.replace(/id:?\s*/,""):0==i.indexOf("id")&&(this.lastEventId=null);if(a.length&&this.readyState!=this.CLOSED){// dispatch a new event
|
|
31
|
+
var c=new n(o,a.join("\n"),"undefined"!=typeof window&&void 0!==window.location?window.location.origin:null,this.lastEventId);this.dispatchEvent(o,c)}}this.cache=u[u.length-1]},dispatchEvent:function(e,t){var n=this["_"+e+"Handlers"];if(n)for(var r=0;r<n.length;r++)n[r].call(this,t);this["on"+e]&&this["on"+e].call(this,t)},addEventListener:function(e,t){this["_"+e+"Handlers"]||(this["_"+e+"Handlers"]=[]),this["_"+e+"Handlers"].push(t)},removeEventListener:function(e,t){var n=this["_"+e+"Handlers"];if(n){for(var r=n.length-1;r>=0;--r)if(n[r]===t){n.splice(r,1);break}}},_pollTimer:null,_noactivityTimer:null,_xhr:null,lastEventId:null,cache:"",cursor:0,onerror:null,onmessage:null,onopen:null,readyState:0,// ===================================================================
|
|
32
|
+
// helpers functions
|
|
33
|
+
// those are attached to prototype to ease reuse and testing...
|
|
34
|
+
urlWithParams:function(e,t){var n=[];if(t){var r,o,a=encodeURIComponent;for(r in t)t.hasOwnProperty(r)&&(o=a(r)+"="+a(t[r]),n.push(o))}return n.length>0?-1==e.indexOf("?")?e+"?"+n.join("&"):e+"&"+n.join("&"):e},lastMessageIndex:function(e){var t=e.lastIndexOf("\n\n"),n=e.lastIndexOf("\r\r"),r=e.lastIndexOf("\r\n\r\n");return r>Math.max(t,n)?[r,r+4]:[Math.max(t,n),Math.max(t,n)+2]},trimWhiteSpace:function(e){return e.replace(/^(\s|\u00A0)+|(\s|\u00A0)+$/g,"")},normalizeToLF:function(e){// replace \r and \r\n with \n
|
|
35
|
+
return e.replace(/\r\n|\r/g,"\n")}},"undefined"!=typeof window&&window.XDomainRequest&&window.XMLHttpRequest&&void 0===new XMLHttpRequest().responseType){e.isPolyfill="IE_8-9";// patch EventSource defaultOptions
|
|
36
|
+
var t=e.prototype.defaultOptions;t.xhrHeaders=null// no headers will be sent
|
|
37
|
+
,t.getArgs.evs_preamble=2056,// EventSource will send request using Internet Explorer XDomainRequest
|
|
38
|
+
e.prototype.XHR=function(e){/* global XDomainRequest */var t=new XDomainRequest;this._request=t,// set handlers
|
|
39
|
+
t.onprogress=function(){t._ready=!0,e._onxhrdata()},t.onload=function(){this._loaded=!0,e._onxhrdata()},t.onerror=function(){this._failed=!0,e.readyState=e.CLOSED,e.dispatchEvent("error",{type:"error",data:"XDomainRequest error"})},t.ontimeout=function(){this._failed=!0,e.readyState=e.CLOSED,e.dispatchEvent("error",{type:"error",data:"XDomainRequest timed out"})};// XDomainRequest does not allow setting custom headers
|
|
40
|
+
// If EventSource has enabled the use of GET arguments
|
|
41
|
+
// we add parameters to URL so that server can adapt the stream...
|
|
42
|
+
var n={};if(e.getArgs){// copy evs.getArgs in reqGetArgs
|
|
43
|
+
var r=e.getArgs;for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o]);e.lastEventId&&(n.evs_last_event_id=e.lastEventId)}// send the request
|
|
44
|
+
t.open("GET",e.urlWithParams(e.URL,n)),t.send()},e.prototype.XHR.prototype={useXDomainRequest:!0,_request:null,_ready:!1,_loaded:!1,_failed:!1,isReady:function(){return this._request._ready},isDone:function(){return this._request._loaded},hasError:function(){return this._request._failed},getBuffer:function(){var e="";try{e=this._request.responseText||""}catch(e){// intentional noop
|
|
45
|
+
}return e},abort:function(){this._request&&this._request.abort()}}}else e.isPolyfill="XHR",// EventSource will send request using XMLHttpRequest
|
|
46
|
+
e.prototype.XHR=function(e){var t=new XMLHttpRequest;this._request=t,e._xhr=this,// set handlers
|
|
47
|
+
t.onreadystatechange=function(){t.readyState>1&&e.readyState!=e.CLOSED&&(200==t.status||t.status>=300&&t.status<400?e._onxhrdata():(t._failed=!0,e.readyState=e.CLOSED,e.dispatchEvent("error",{type:"error",data:"The server responded with "+t.status}),e.close()))},t.onprogress=function(){// intentional noop
|
|
48
|
+
},t.open("GET",e.urlWithParams(e.URL,e.getArgs),!0);var n=e.xhrHeaders// maybe null
|
|
49
|
+
;for(var r in n)n.hasOwnProperty(r)&&t.setRequestHeader(r,n[r]);e.lastEventId&&t.setRequestHeader("Last-Event-Id",e.lastEventId),t.send()},e.prototype.XHR.prototype={useXDomainRequest:!1,_request:null,_failed:!1,isReady:function(){return this._request.readyState>=2},isDone:function(){return 4==this._request.readyState},hasError:function(){return this._failed||this._request.status>=400},getBuffer:function(){var e="";try{e=this._request.responseText||""}catch(e){// intentional noop
|
|
50
|
+
}return e},abort:function(){this._request&&this._request.abort()}};function n(e,t,n,r){this.bubbles=!1,this.cancelBubble=!1,this.cancelable=!1,this.data=t||null,this.origin=n||"",this.lastEventId=r||"",this.type=e||"message"}return e})}),i("g1Zrh",function(e,t){e.exports=function(e){return"https://docs.sanity.io/help/"+e}}),i("d1Bvu",function(e,t){e.exports=function(e,t){return t.reduce(function(t,n){return void 0===e[n]||(t[n]=e[n]),t},{})}}),i("4yABd",function(e,t){e.exports=function(e){var t,n=!1;return function(){return n||(t=e.apply(void 0,arguments),n=!0),t}}}),i("k0cyf",function(e,t){e.exports=function(e,t){return Object.keys(t).concat(Object.keys(e)).reduce(function(n,r){return n[r]=void 0===e[r]?t[r]:e[r],n},{})}}),i("ctI6B",function(e,t){var n=a("kyWRD"),r=a("19TJa");function o(e){this.request=e.request.bind(e)}n(o.prototype,{create:function(e,t){return this._modify("PUT",e,t)},edit:function(e,t){return this._modify("PATCH",e,t)},delete:function(e){return this._modify("DELETE",e)},list:function(){return this.request({uri:"/datasets"})},_modify:function(e,t,n){return r.dataset(t),this.request({method:e,uri:"/datasets/".concat(t),body:n})}}),e.exports=o}),i("ggojs",function(e,t){function n(e){this.client=e}a("kyWRD")(n.prototype,{list:function(){return this.client.request({uri:"/projects"})},getById:function(e){return this.client.request({uri:"/projects/".concat(e)})}}),e.exports=n}),i("9uMG3",function(e,t){function n(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}var r=a("kyWRD"),o=a("l4Rsy").map,i=a("aiKnb").filter,l=a("lhaQZ"),u=a("19TJa");function s(e){this.client=e}r(s.prototype,{/**
|
|
51
|
+
* Upload an asset
|
|
52
|
+
*
|
|
53
|
+
* @param {String} assetType `image` or `file`
|
|
54
|
+
* @param {File|Blob|Buffer|ReadableStream} body File to upload
|
|
55
|
+
* @param {Object} opts Options for the upload
|
|
56
|
+
* @param {Boolean} opts.preserveFilename Whether or not to preserve the original filename (default: true)
|
|
57
|
+
* @param {String} opts.filename Filename for this file (optional)
|
|
58
|
+
* @param {Number} opts.timeout Milliseconds to wait before timing the request out (default: 0)
|
|
59
|
+
* @param {String} opts.contentType Mime type of the file
|
|
60
|
+
* @param {Array} opts.extract Array of metadata parts to extract from image.
|
|
61
|
+
* Possible values: `location`, `exif`, `image`, `palette`
|
|
62
|
+
* @param {String} opts.label Label
|
|
63
|
+
* @param {String} opts.title Title
|
|
64
|
+
* @param {String} opts.description Description
|
|
65
|
+
* @param {String} opts.creditLine The credit to person(s) and/or organization(s) required by the supplier of the image to be used when published
|
|
66
|
+
* @param {Object} opts.source Source data (when the asset is from an external service)
|
|
67
|
+
* @param {String} opts.source.id The (u)id of the asset within the source, i.e. 'i-f323r1E'
|
|
68
|
+
* Required if source is defined
|
|
69
|
+
* @param {String} opts.source.name The name of the source, i.e. 'unsplash'
|
|
70
|
+
* Required if source is defined
|
|
71
|
+
* @param {String} opts.source.url A url to where to find the asset, or get more info about it in the source
|
|
72
|
+
* Optional
|
|
73
|
+
* @return {Promise} Resolves with the created asset document
|
|
74
|
+
*/upload:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u.validateAssetType(e);// If an empty array is given, explicitly set `none` to override API defaults
|
|
75
|
+
var a=n.extract||void 0;a&&!a.length&&(a=["none"]);var l=u.hasDataset(this.client.clientConfig),s="image"===e?"images":"files",c="undefined"!=typeof window&&t instanceof window.File?r({filename:!1===n.preserveFilename?void 0:t.name,contentType:t.type},n):n,f=c.tag,d=c.label,p=c.title,h=c.description,m=c.creditLine,y=c.filename,g=c.source,v={label:d,title:p,description:h,filename:y,meta:a,creditLine:m};g&&(v.sourceId=g.id,v.sourceName=g.name,v.sourceUrl=g.url);var b=this.client._requestObservable({tag:f,method:"POST",timeout:c.timeout||0,uri:"/assets/".concat(s,"/").concat(l),headers:c.contentType?{"Content-Type":c.contentType}:{},query:v,body:t});return this.client.isPromiseAPI()?b.pipe(i(function(e){return"response"===e.type}),o(function(e){// todo: rewrite to just return body.document in a while
|
|
76
|
+
var t;return Object.defineProperty(t=e.body.document,"document",{enumerable:!1,get:function(){return(// eslint-disable-next-line no-console
|
|
77
|
+
console.warn("The promise returned from client.asset.upload(...) now resolves with the asset document"),t)}}),t})).toPromise():b},delete:function(e,t){// eslint-disable-next-line no-console
|
|
78
|
+
console.warn("client.assets.delete() is deprecated, please use client.delete(<document-id>)");var n=t||"";return/^(image|file)-/.test(n)?e._id&&(n=e._id):n="".concat(e,"-").concat(n),u.hasDataset(this.client.clientConfig),this.client.delete(n)},getImageUrl:function(e,t){var r,o=e._ref||e;if("string"!=typeof o)throw Error("getImageUrl() needs either an object with a _ref, or a string with an asset document ID");if(!/^image-[A-Za-z0-9_]+-\d+x\d+-[a-z]{1,5}$/.test(o))throw Error('Unsupported asset ID "'.concat(o,'". URL generation only works for auto-generated IDs.'));var a=function(e){if(Array.isArray(e))return e}(r=o.split("-"))||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,l=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(l)throw r}}return a}}(r,4)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}}(r,4)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=a[1],s=a[2],c=a[3];u.hasDataset(this.client.clientConfig);var f=this.client.clientConfig,d=f.projectId,p=f.dataset,h=t?l(t):"";return"https://cdn.sanity.io/images/".concat(d,"/").concat(p,"/").concat(i,"-").concat(s,".").concat(c).concat(h)}}),e.exports=s}),i("lhaQZ",function(e,t){e.exports=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(e[n])));return t.length>0?"?".concat(t.join("&")):""}}),i("cWIk5",function(e,t){function n(e){this.client=e}a("kyWRD")(n.prototype,{getById:function(e){return this.client.request({uri:"/users/".concat(e)})}}),e.exports=n}),i("6J3BK",function(e,t){function n(e){this.client=e}a("kyWRD")(n.prototype,{getLoginProviders:function(){return this.client.request({uri:"/auth/providers"})},logout:function(){return this.client.request({uri:"/auth/logout",method:"POST"})}}),e.exports=n}),i("g7oao",function(e,t){var n=a("7sPjv"),r=a("kyWRD"),o=a("gllOt"),i=a("4Y7XA"),l=a("60oPS"),u=a("g5NOF"),s=a("bUAP4"),c=a("kyTNc"),f=c.ClientError,d=c.ServerError,p=n(a("hmf9A").concat([{onResponse:function(e){var t=e.headers["x-sanity-warning"];return(Array.isArray(t)?t:[t]).filter(Boolean).forEach(function(e){return console.warn(e)}),e}},i(),l(),u(),{onResponse:function(e){if(e.statusCode>=500)throw new d(e);if(e.statusCode>=400)throw new f(e);return e}},o({implementation:s})]));function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;return t(r({maxRedirects:0},e))}h.defaultRequester=p,h.ClientError=f,h.ServerError=d,e.exports=h}),i("7sPjv",function(e,t){e.exports=a("bxuy9")}),i("bxuy9",function(e,t){var n=a("aXjOX"),r=a("fQ4kr"),o=a("ebOAp"),i=a("60waW"),l=a("hrS92"),u=["request","response","progress","error","abort"],s=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];e.exports=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,c=[],f=s.reduce(function(e,t){return e[t]=e[t]||[],e},{processOptions:[o],validateOptions:[i]});function d(e){var t=u.reduce(function(e,t){return e[t]=n(),e},{}),o=r(f),i=o("processOptions",e);// Validate the options
|
|
79
|
+
o("validateOptions",i);// Build a context object we can pass to child handlers
|
|
80
|
+
var l={options:i,channels:t,applyMiddleware:o},s=null,c=t.request.subscribe(function(e){// Let request adapters (node/browser) perform the actual request
|
|
81
|
+
s=a(e,function(n,r){return function(e,n,r){var a=e,i=n;// We're processing non-errors first, in case a middleware converts the
|
|
82
|
+
// response into an error (for instance, status >= 400 == HttpError)
|
|
83
|
+
if(!a)try{i=o("onResponse",n,r)}catch(e){i=null,a=e}// Figure out if we should publish on error/response channels
|
|
84
|
+
// Apply error middleware - if middleware return the same (or a different) error,
|
|
85
|
+
// publish as an error event. If we *don't* return an error, assume it has been handled
|
|
86
|
+
(a=a&&o("onError",a,r))?t.error.publish(a):i&&t.response.publish(i)}(n,r,e)})});// If we abort the request, prevent further requests from happening,
|
|
87
|
+
// and be sure to cancel any ongoing request (obviously)
|
|
88
|
+
t.abort.subscribe(function(){c(),s&&s.abort()});// See if any middleware wants to modify the return value - for instance
|
|
89
|
+
// the promise or observable middlewares
|
|
90
|
+
var d=o("onReturn",t,l);return d===t&&t.request.publish(l),d}return d.use=function(e){if(!e)throw Error("Tried to add middleware that resolved to falsey value");if("function"==typeof e)throw Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(e.onReturn&&f.onReturn.length>0)throw Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return s.forEach(function(t){e[t]&&f[t].push(e[t])}),c.push(e),d},d.clone=function(){return e(c)},t.forEach(d.use),d}}),i("aXjOX",function(e,t){e.exports=function(){var e=[];return{subscribe:function(t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}},publish:function(){for(var t=0;t<e.length;t++)e[t].apply(null,arguments)}}}}),i("fQ4kr",function(e,t){e.exports=function(e){return function(t,n){for(var r=arguments.length,o=Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];for(var i="onError"===t,l=n,u=0;u<e[t].length&&(l=e[t][u].apply(void 0,[l].concat(o)),!i||l);u++);return l}}}),i("ebOAp",function(e,t){var n=a("kyWRD"),r=a("1rDYB"),o="undefined"!=typeof navigator&&"ReactNative"===navigator.product,i=Object.prototype.hasOwnProperty,l={timeout:o?6e4:12e4};function u(e){var t=[];for(var n in e)i.call(e,n)&&function e(n,r){Array.isArray(r)?r.forEach(function(t){return e(n,t)}):t.push([n,r].map(encodeURIComponent).join("="))}(n,e[n]);return t.length?t.join("&"):""}e.exports=function(e){var t="string"==typeof e?n({url:e},l):n({},l,e),o=r(t.url,{},!0// Parse query strings
|
|
91
|
+
);return(// Normalize timeouts
|
|
92
|
+
t.timeout=function e(t){if(!1===t||0===t)return!1;if(t.connect||t.socket)return t;var n=Number(t);return isNaN(n)?e(l.timeout):{connect:n,socket:n}}(t.timeout),t.query&&(o.query=n({},o.query,function(e){var t={};for(var n in e)void 0!==e[n]&&(t[n]=e[n]);return t}(t.query))),// Implicit POST if we have not specified a method but have a body
|
|
93
|
+
t.method=t.body&&!t.method?"POST":(t.method||"GET").toUpperCase(),// Stringify URL
|
|
94
|
+
t.url=o.toString(u),t)}}),i("1rDYB",function(e,t){var r=a("h9jot"),o=a("023vx"),i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,u=/^[a-zA-Z]:/,s=RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+");/**
|
|
95
|
+
* Trim a given string.
|
|
96
|
+
*
|
|
97
|
+
* @param {String} str String to trim.
|
|
98
|
+
* @public
|
|
99
|
+
*/function c(e){return(e||"").toString().replace(s,"")}/**
|
|
100
|
+
* These are the parse rules for the URL parser, it informs the parser
|
|
101
|
+
* about:
|
|
102
|
+
*
|
|
103
|
+
* 0. The char it Needs to parse, if it's a string it should be done using
|
|
104
|
+
* indexOf, RegExp using exec and NaN means set as current value.
|
|
105
|
+
* 1. The property we should set when parsing this value.
|
|
106
|
+
* 2. Indication if it's backwards or forward parsing, when set as number it's
|
|
107
|
+
* the value of extra chars that should be split off.
|
|
108
|
+
* 3. Inherit from location if non existing in the parser.
|
|
109
|
+
* 4. `toLowerCase` the resulting value.
|
|
110
|
+
*/var f=[["#","hash"],["?","query"],function(e,t){return h(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]// Set left over.
|
|
111
|
+
],d={hash:1,query:1};/**
|
|
112
|
+
* The location object differs when your code is loaded through a normal page,
|
|
113
|
+
* Worker or through a worker using a blob. And with the blobble begins the
|
|
114
|
+
* trouble as the location object will contain the URL of the blob, not the
|
|
115
|
+
* location of the page where our code is loaded in. The actual origin is
|
|
116
|
+
* encoded in the `pathname` so we can thankfully generate a good "default"
|
|
117
|
+
* location from it so we can generate proper relative URL's again.
|
|
118
|
+
*
|
|
119
|
+
* @param {Object|String} loc Optional default location object.
|
|
120
|
+
* @returns {Object} lolcation object.
|
|
121
|
+
* @public
|
|
122
|
+
*/function p(e){var t,r=("undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:{}).location||{},o={},a=typeof(e=e||r);if("blob:"===e.protocol)o=new y(unescape(e.pathname),{});else if("string"===a)for(t in o=new y(e,{}),d)delete o[t];else if("object"===a){for(t in e)t in d||(o[t]=e[t]);void 0===o.slashes&&(o.slashes=i.test(e.href))}return o}/**
|
|
123
|
+
* Check whether a protocol scheme is special.
|
|
124
|
+
*
|
|
125
|
+
* @param {String} The protocol scheme of the URL
|
|
126
|
+
* @return {Boolean} `true` if the protocol scheme is special, else `false`
|
|
127
|
+
* @private
|
|
128
|
+
*/function h(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}/**
|
|
129
|
+
* @typedef ProtocolExtract
|
|
130
|
+
* @type Object
|
|
131
|
+
* @property {String} protocol Protocol matched in the URL, in lowercase.
|
|
132
|
+
* @property {Boolean} slashes `true` if protocol is followed by "//", else `false`.
|
|
133
|
+
* @property {String} rest Rest of the URL that is not part of the protocol.
|
|
134
|
+
*//**
|
|
135
|
+
* Extract protocol information from a URL with/without double slash ("//").
|
|
136
|
+
*
|
|
137
|
+
* @param {String} address URL we want to extract from.
|
|
138
|
+
* @param {Object} location
|
|
139
|
+
* @return {ProtocolExtract} Extracted information.
|
|
140
|
+
* @private
|
|
141
|
+
*/function m(e,t){e=c(e),t=t||{};var n,r=l.exec(e),o=r[1]?r[1].toLowerCase():"",a=!!r[2],i=!!r[3],u=0;return a?i?(n=r[2]+r[3]+r[4],u=r[2].length+r[3].length):(n=r[2]+r[4],u=r[2].length):i?(n=r[3]+r[4],u=r[3].length):n=r[4],"file:"===o?u>=2&&(n=n.slice(2)):h(o)?n=r[4]:o?a&&(n=n.slice(2)):u>=2&&h(t.protocol)&&(n=r[4]),{protocol:o,slashes:a||h(o),slashesCount:u,rest:n}}/**
|
|
142
|
+
* The actual URL instance. Instead of returning an object we've opted-in to
|
|
143
|
+
* create an actual constructor as it's much more memory efficient and
|
|
144
|
+
* faster and it pleases my OCD.
|
|
145
|
+
*
|
|
146
|
+
* It is worth noting that we should not use `URL` as class name to prevent
|
|
147
|
+
* clashes with the global URL instance that got introduced in browsers.
|
|
148
|
+
*
|
|
149
|
+
* @constructor
|
|
150
|
+
* @param {String} address URL we want to parse.
|
|
151
|
+
* @param {Object|String} [location] Location defaults for relative paths.
|
|
152
|
+
* @param {Boolean|Function} [parser] Parser for the query string.
|
|
153
|
+
* @private
|
|
154
|
+
*/function y(e,t,n){if(e=c(e),!(this instanceof y))return new y(e,t,n);var a,i,l,s,d,g,v=f.slice(),b=typeof t,w=0;for("object"!==b&&"string"!==b&&(n=t,t=null),n&&"function"!=typeof n&&(n=o.parse),a=!//
|
|
155
|
+
// Extract protocol information before running the instructions.
|
|
156
|
+
//
|
|
157
|
+
(i=m(e||"",t=p(t))).protocol&&!i.slashes,this.slashes=i.slashes||a&&t.slashes,this.protocol=i.protocol||t.protocol||"",e=i.rest,("file:"===i.protocol&&(2!==i.slashesCount||u.test(e))||!i.slashes&&(i.protocol||i.slashesCount<2||!h(this.protocol)))&&(v[3]=[/(.*)/,"pathname"]);w<v.length;w++){if("function"==typeof(s=v[w])){e=s(e,this);continue}l=s[0],g=s[1],l!=l?this[g]=e:"string"==typeof l?~(d=e.indexOf(l))&&("number"==typeof s[2]?(this[g]=e.slice(0,d),e=e.slice(d+s[2])):(this[g]=e.slice(d),e=e.slice(0,d))):(d=l.exec(e))&&(this[g]=d[1],e=e.slice(0,d.index)),this[g]=this[g]||a&&s[3]&&t[g]||"",s[4]&&(this[g]=this[g].toLowerCase())}n&&(this.query=n(this.query)),a&&t.slashes&&"/"!==this.pathname.charAt(0)&&(""!==this.pathname||""!==t.pathname)&&(this.pathname=/**
|
|
158
|
+
* Resolve a relative URL pathname against a base URL pathname.
|
|
159
|
+
*
|
|
160
|
+
* @param {String} relative Pathname of the relative URL.
|
|
161
|
+
* @param {String} base Pathname of the base URL.
|
|
162
|
+
* @return {String} Resolved pathname.
|
|
163
|
+
* @private
|
|
164
|
+
*/function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,o=n[r-1],a=!1,i=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),i++):i&&(0===r&&(a=!0),n.splice(r,1),i--);return a&&n.unshift(""),("."===o||".."===o)&&n.push(""),n.join("/")}(this.pathname,t.pathname)),"/"!==this.pathname.charAt(0)&&h(this.protocol)&&(this.pathname="/"+this.pathname),r(this.port,this.protocol)||(this.host=this.hostname,this.port=""),//
|
|
165
|
+
// Parse down the `auth` for the username and password.
|
|
166
|
+
//
|
|
167
|
+
this.username=this.password="",this.auth&&(s=this.auth.split(":"),this.username=s[0],this.password=s[1]||""),this.origin="file:"!==this.protocol&&h(this.protocol)&&this.host?this.protocol+"//"+this.host:"null",//
|
|
168
|
+
// The href is just the compiled result.
|
|
169
|
+
//
|
|
170
|
+
this.href=this.toString()}y.prototype={set:/**
|
|
171
|
+
* This is convenience method for changing properties in the URL instance to
|
|
172
|
+
* insure that they all propagate correctly.
|
|
173
|
+
*
|
|
174
|
+
* @param {String} part Property we need to adjust.
|
|
175
|
+
* @param {Mixed} value The newly assigned value.
|
|
176
|
+
* @param {Boolean|Function} fn When setting the query, it will be the function
|
|
177
|
+
* used to parse the query.
|
|
178
|
+
* When setting the protocol, double slash will be
|
|
179
|
+
* removed from the final url if it is true.
|
|
180
|
+
* @returns {URL} URL instance for chaining.
|
|
181
|
+
* @public
|
|
182
|
+
*/function(e,t,n){switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||o.parse)(t)),this[e]=t;break;case"port":this[e]=t,r(t,this.protocol)?t&&(this.host=this.hostname+":"+t):(this.host=this.hostname,this[e]="");break;case"hostname":this[e]=t,this.port&&(t+=":"+this.port),this.host=t;break;case"host":this[e]=t,/:\d+$/.test(t)?(t=t.split(":"),this.port=t.pop(),this.hostname=t.join(":")):(this.hostname=t,this.port="");break;case"protocol":this.protocol=t.toLowerCase(),this.slashes=!n;break;case"pathname":case"hash":if(t){var a="pathname"===e?"/":"#";this[e]=t.charAt(0)!==a?a+t:t}else this[e]=t;break;case"username":case"password":this[e]=encodeURIComponent(t);break;case"auth":var i=t.split(":");this.username=i[0],this.password=2===i.length?i[1]:""}for(var l=0;l<f.length;l++){var u=f[l];u[4]&&(this[u[1]]=this[u[1]].toLowerCase())}return this.auth=this.password?this.username+":"+this.password:this.username,this.origin="file:"!==this.protocol&&h(this.protocol)&&this.host?this.protocol+"//"+this.host:"null",this.href=this.toString(),this},toString:/**
|
|
183
|
+
* Transform the properties back in to a valid and full URL string.
|
|
184
|
+
*
|
|
185
|
+
* @param {Function} stringify Optional query stringify function.
|
|
186
|
+
* @returns {String} Compiled version of the URL.
|
|
187
|
+
* @public
|
|
188
|
+
*/function(e){e&&"function"==typeof e||(e=o.stringify);var t,n=this.protocol;n&&":"!==n.charAt(n.length-1)&&(n+=":");var r=n+(this.protocol&&this.slashes||h(this.protocol)?"//":"");return this.username?(r+=this.username,this.password&&(r+=":"+this.password),r+="@"):this.password&&(r+=":"+this.password+"@"),r+=this.host+this.pathname,(t="object"==typeof this.query?e(this.query):this.query)&&(r+="?"!==t.charAt(0)?"?"+t:t),this.hash&&(r+=this.hash),r}},//
|
|
189
|
+
// Expose the URL parser and some additional properties that might be useful for
|
|
190
|
+
// others or testing.
|
|
191
|
+
//
|
|
192
|
+
y.extractProtocol=m,y.location=p,y.trimLeft=c,y.qs=o,e.exports=y}),i("h9jot",function(e,t){/**
|
|
193
|
+
* Check if we're required to add a port number.
|
|
194
|
+
*
|
|
195
|
+
* @see https://url.spec.whatwg.org/#default-port
|
|
196
|
+
* @param {Number|String} port Port number we need to check
|
|
197
|
+
* @param {String} protocol Protocol we need to check against.
|
|
198
|
+
* @returns {Boolean} Is it a default port for the given protocol
|
|
199
|
+
* @api private
|
|
200
|
+
*/e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}}),i("023vx",function(t,n){e(t.exports,"stringify",()=>r,e=>r=e),e(t.exports,"parse",()=>o,e=>o=e);var r,o,a,i=Object.prototype.hasOwnProperty;/**
|
|
201
|
+
* Decode a URI encoded string.
|
|
202
|
+
*
|
|
203
|
+
* @param {String} input The URI encoded string.
|
|
204
|
+
* @returns {String|Null} The decoded string.
|
|
205
|
+
* @api private
|
|
206
|
+
*/function l(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}/**
|
|
207
|
+
* Attempts to encode a given input.
|
|
208
|
+
*
|
|
209
|
+
* @param {String} input The string that needs to be encoded.
|
|
210
|
+
* @returns {String|Null} The encoded string.
|
|
211
|
+
* @api private
|
|
212
|
+
*/function u(e){try{return encodeURIComponent(e)}catch(e){return null}}r=/**
|
|
213
|
+
* Transform a query string to an object.
|
|
214
|
+
*
|
|
215
|
+
* @param {Object} obj Object that should be transformed.
|
|
216
|
+
* @param {String} prefix Optional prefix.
|
|
217
|
+
* @returns {String}
|
|
218
|
+
* @api public
|
|
219
|
+
*/function(e,t){var n,r,o=[];for(r in"string"!=typeof(t=t||"")&&(t="?"),e)if(i.call(e,r)){//
|
|
220
|
+
// If we failed to encode the strings, we should bail out as we don't
|
|
221
|
+
// want to add invalid strings to the query.
|
|
222
|
+
//
|
|
223
|
+
if(!(n=e[r])&&(null===n||n===a||isNaN(n))&&(n=""),r=u(r),n=u(n),null===r||null===n)continue;o.push(r+"="+n)}return o.length?t+o.join("&"):""},o=/**
|
|
224
|
+
* Simple query string parser.
|
|
225
|
+
*
|
|
226
|
+
* @param {String} query The query string that needs to be parsed.
|
|
227
|
+
* @returns {Object}
|
|
228
|
+
* @api public
|
|
229
|
+
*/function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,r={};t=n.exec(e);){var o=l(t[1]),a=l(t[2]);//
|
|
230
|
+
// Prevent overriding of existing properties. This ensures that build-in
|
|
231
|
+
// methods like `toString` or __proto__ are not overriden by malicious
|
|
232
|
+
// querystrings.
|
|
233
|
+
//
|
|
234
|
+
// In the case if failed decoding, we want to omit the key/value pairs
|
|
235
|
+
// from the result.
|
|
236
|
+
//
|
|
237
|
+
null===o||null===a||o in r||(r[o]=a)}return r}}),i("60waW",function(e,t){var n=/^https?:\/\//i;e.exports=function(e){if(!n.test(e.url))throw Error('"'+e.url+'" is not a valid URL')}}),i("hrS92",function(e,t){e.exports=a("ez7bW")}),i("ez7bW",function(e,t){var n=a("epfjL"),r=a("1OgzI"),o=a("6V94K"),i="undefined"==typeof window?void 0:window,l=i?"xhr":"fetch",u="function"==typeof XMLHttpRequest?XMLHttpRequest:function(){/* intentional noop */},s="withCredentials"in new u,c="undefined"==typeof XDomainRequest?void 0:XDomainRequest,f=s?u:c;i||(u=o,f=o),e.exports=function(e,t){var o=e.options,a=e.applyMiddleware("finalizeOptions",o),s={},c=i&&i.location&&!n(i.location.href,a.url),d=e.applyMiddleware("interceptRequest",void 0,{adapter:l,context:e});// If middleware injected a response, treat it as we normally would and return it
|
|
238
|
+
// Do note that the injected response has to be reduced to a cross-environment friendly response
|
|
239
|
+
if(d){var p=setTimeout(t,0,null,d);return{abort:function(){return clearTimeout(p)}}}// We'll want to null out the request on success/failure
|
|
240
|
+
var h=c?new f:new u,m=i&&i.XDomainRequest&&h instanceof i.XDomainRequest,y=a.headers,g=a.timeout,v=!1,b=!1,w=!1;// Set headers
|
|
241
|
+
if(// Apply event handlers
|
|
242
|
+
h.onerror=_,h.ontimeout=_,h.onabort=function(){v=!0},// IE9 must have onprogress be set to a unique function
|
|
243
|
+
h.onprogress=function(){/* intentional noop */},h[m?"onload":"onreadystatechange"]=function(){g&&(S(),s.socket=setTimeout(function(){return k("ESOCKETTIMEDOUT")},g.socket)),!v&&(4===h.readyState||m)&&0!==h.status&&function(){if(!v&&!b&&!w){if(0===h.status){_(Error("Unknown XHR error"));return}// Prevent being called twice
|
|
244
|
+
S(),b=!0,t(null,function(){var e=h.status,t=h.statusText;if(m&&void 0===e)e=200;else{if(e>12e3&&e<12156)// https://support.microsoft.com/en-us/kb/193625
|
|
245
|
+
return _();// Another IE bug where HTTP 204 somehow ends up as 1223
|
|
246
|
+
e=1223===h.status?204:h.status,t=1223===h.status?"No Content":t}return{body:h.response||h.responseText,url:a.url,method:a.method,headers:m?{}:r(h.getAllResponseHeaders()),statusCode:e,statusMessage:t}}())}}()},// @todo two last options to open() is username/password
|
|
247
|
+
h.open(a.method,a.url,!0// Always async
|
|
248
|
+
),// Some options need to be applied after open
|
|
249
|
+
h.withCredentials=!!a.withCredentials,y&&h.setRequestHeader)for(var x in y)y.hasOwnProperty(x)&&h.setRequestHeader(x,y[x]);else if(y&&m)throw Error("Headers cannot be set on an XDomainRequest object");return a.rawBody&&(h.responseType="arraybuffer"),// Let middleware know we're about to do a request
|
|
250
|
+
e.applyMiddleware("onRequest",{options:a,adapter:l,request:h,context:e}),h.send(a.body||null),g&&(s.connect=setTimeout(function(){return k("ETIMEDOUT")},g.connect)),{abort:function(){v=!0,h&&h.abort()}};function k(t){w=!0,h.abort();var n=Error("ESOCKETTIMEDOUT"===t?"Socket timed out on request to "+a.url:"Connection timed out on request to "+a.url);n.code=t,e.channels.error.publish(n)}function S(){(v||h.readyState>=2&&s.connect)&&clearTimeout(s.connect),s.socket&&clearTimeout(s.socket)}function _(e){if(!b){// Clean up
|
|
251
|
+
S(),b=!0,h=null;// Annoyingly, details are extremely scarce and hidden from us.
|
|
252
|
+
// We only really know that it is a network error
|
|
253
|
+
var n=e||Error("Network error while attempting to reach "+a.url);n.isNetworkError=!0,n.request=a,t(n)}}}}),i("epfjL",function(e,t){var n=a("CjRyS");e.exports=function(e,t,r){if(e===t)return!0;var o=n.parse(e,!1,!0),a=n.parse(t,!1,!0),i=0|o.port||("https"===o.protocol?443:80),l=0|a.port||("https"===a.protocol?443:80),u={proto:o.protocol===a.protocol,hostname:o.hostname===a.hostname,port:i===l};return u.proto&&u.hostname&&(u.port||r)}}),i("CjRyS",function(e,t){var n=/^(?:(?:(?:([^:\/#\?]+:)?(?:(?:\/\/)((?:((?:[^:@\/#\?]+)(?:\:(?:[^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((?:\/?(?:[^\/\?#]+\/+)*)(?:[^\?#]*)))?(\?[^#]+)?)(#.*)?/;e.exports={regex:n,parse:function(e){var t=n.exec(e);return t?{protocol:(t[1]||"").toLowerCase()||void 0,hostname:(t[5]||"").toLowerCase()||void 0,port:t[6]||void 0}:{}}}}),i("1OgzI",function(e,t){var n=function(e){return e.replace(/^\s+|\s+$/g,"")};e.exports=function(e){if(!e)return{};for(var t={},r=n(e).split("\n"),o=0;o<r.length;o++){var a,i=r[o],l=i.indexOf(":"),u=n(i.slice(0,l)).toLowerCase(),s=n(i.slice(l+1));void 0===t[u]?t[u]=s:(a=t[u],"[object Array]"===Object.prototype.toString.call(a))?t[u].push(s):t[u]=[t[u],s]}return t}}),i("6V94K",function(e,t){/**
|
|
254
|
+
* Mimicks the XMLHttpRequest API with only the parts needed for get-it's XHR adapter
|
|
255
|
+
*/function n(){this.readyState=0;// Unsent
|
|
256
|
+
}n.prototype.open=function(e,t){this._method=e,this._url=t,this._resHeaders="",this.readyState=1,this.onreadystatechange()},n.prototype.abort=function(){this._controller&&this._controller.abort()},n.prototype.getAllResponseHeaders=function(){return this._resHeaders},n.prototype.setRequestHeader=function(e,t){this._headers=this._headers||{},this._headers[e]=t},n.prototype.send=function(e){var t=this,n=this._controller="function"==typeof AbortController&&new AbortController,r="arraybuffer"!==this.responseType,o={method:this._method,headers:this._headers,signal:n&&n.signal,body:e};"undefined"!=typeof window&&(o.credentials=this.withCredentials?"include":"omit"),fetch(this._url,o).then(function(e){return e.headers.forEach(function(e,n){t._resHeaders+=n+": "+e+"\r\n"}),t.status=e.status,t.statusText=e.statusText,t.readyState=3,r?e.text():e.arrayBuffer()}).then(function(e){r?t.responseText=e:t.response=e,t.readyState=4,t.onreadystatechange()}).catch(function(e){if("AbortError"===e.name){t.onabort();return}t.onerror(e)})},e.exports=n}),i("gllOt",function(e,t){var n=a("7DEw3"),r=a("kyWRD");e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.implementation||n.Observable;if(!t)throw Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:function(e,n){return new t(function(t){return e.error.subscribe(function(e){return t.error(e)}),e.progress.subscribe(function(e){return t.next(r({type:"progress"},e))}),e.response.subscribe(function(e){t.next(r({type:"response"},e)),t.complete()}),e.request.publish(n),function(){return e.abort.publish()}})}}}}),i("7DEw3",function(e,t){/* eslint-disable no-negated-condition */"undefined"!=typeof window?e.exports=window:void 0!==n?e.exports=n:"undefined"!=typeof self?e.exports=self:e.exports={}}),i("4Y7XA",function(e,t){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=a("kyWRD"),o=a("dBUz9"),i=["boolean","string","number"];e.exports=function(){return{processOptions:function(e){var t=e.body;return t&&"function"!=typeof t.pipe&&!(t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))&&(-1!==i.indexOf(void 0===t?"undefined":n(t))||Array.isArray(t)||o(t))?r({},e,{body:JSON.stringify(e.body),headers:r({},e.headers,{"Content-Type":"application/json"})}):e}}}}),i("dBUz9",function(e,t){var n=a("jnkn1");function r(e){return!0===n(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,n;return!1!==r(e)&&"function"==typeof// If has modified constructor
|
|
257
|
+
(t=e.constructor)&&!1!==r(// If has modified prototype
|
|
258
|
+
n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}}),i("jnkn1",function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}}),i("60oPS",function(e,t){var n=a("kyWRD");e.exports=function(e){return{onResponse:function(t){var r=t.headers["content-type"]||"",o=e&&e.force||-1!==r.indexOf("application/json");return t.body&&r&&o?n({},t,{body:function(e){try{return JSON.parse(e)}catch(e){throw e.message="Failed to parsed response body as JSON: "+e.message,e}}(t.body)}):t},processOptions:function(e){return n({},e,{headers:n({Accept:"application/json"},e.headers)})}}}}),i("g5NOF",function(e,t){e.exports=a("dtx43")}),i("dtx43",function(e,t){e.exports=function(){return{onRequest:function(e){if("xhr"===e.adapter){var t=e.request,n=e.context;"upload"in t&&"onprogress"in t.upload&&(t.upload.onprogress=r("upload")),"onprogress"in t&&(t.onprogress=r("download"))}function r(e){return function(t){var r=t.lengthComputable?t.loaded/t.total*100:-1;n.channels.progress.publish({stage:e,percent:r,total:t.total,loaded:t.loaded,lengthComputable:t.lengthComputable})}}}}}}),i("kyTNc",function(t,n){e(t.exports,"ClientError",()=>r,e=>r=e),e(t.exports,"ServerError",()=>o,e=>o=e);var r,o,i=a("ajfLV"),l=a("kyWRD");function u(e){var t=c(e);u.super.call(this,t.message),l(this,t)}function s(e){var t=c(e);s.super.call(this,t.message),l(this,t)}function c(e){var t,n=e.body,r={response:e,statusCode:e.statusCode,responseBody:-1!==(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(n,null,2):n};return n.error&&n.message?r.message="".concat(n.error," - ").concat(n.message):n.error&&n.error.description?(r.message=n.error.description,r.details=n.error):r.message=n.error||n.message||(t=e.statusMessage?" ".concat(e.statusMessage):"","".concat(e.method,"-request to ").concat(e.url," resulted in HTTP ").concat(e.statusCode).concat(t)),r}i(u),i(s),r=u,o=s}),i("ajfLV",function(e,t){// ===================================================================
|
|
259
|
+
var n="undefined"!=typeof Reflect?Reflect.construct:void 0,r=Object.defineProperty,o=Error.captureStackTrace;// -------------------------------------------------------------------
|
|
260
|
+
function a(e){void 0!==e&&r(this,"message",{configurable:!0,value:e,writable:!0});var t=this.constructor.name;void 0!==t&&t!==this.name&&r(this,"name",{configurable:!0,value:t,writable:!0}),o(this,this.constructor)}void 0===o&&(o=function(e){var t=Error();r(e,"stack",{configurable:!0,get:function(){var e=t.stack;return(// Replace property with value for faster future accesses.
|
|
261
|
+
r(this,"stack",{configurable:!0,value:e,writable:!0}),e)},set:function(t){r(e,"stack",{configurable:!0,value:t,writable:!0})}})}),a.prototype=Object.create(Error.prototype,{// See: https://github.com/JsCommunity/make-error/issues/4
|
|
262
|
+
constructor:{configurable:!0,value:a,writable:!0}});// -------------------------------------------------------------------
|
|
263
|
+
// Sets the name of a function if possible (depends of the JS engine).
|
|
264
|
+
var i=function(){function e(e,t){return r(e,"name",{configurable:!0,value:t})}try{var t=function(){};if(e(t,"foo"),"foo"===t.name)return e}catch(e){}}();(e.exports=// -------------------------------------------------------------------
|
|
265
|
+
function(e,t){if(null==t||t===Error)t=a;else if("function"!=typeof t)throw TypeError("super_ should be a function");if("string"==typeof e)r=e,e=void 0!==n?function(){return n(t,arguments,this.constructor)}:function(){t.apply(this,arguments)},void 0!==i&&(i(e,r),r=void 0);else if("function"!=typeof e)throw TypeError("constructor should be either a string or a function");// Also register the super constructor also as `constructor.super_` just
|
|
266
|
+
// like Node's `util.inherits()`.
|
|
267
|
+
//
|
|
268
|
+
// eslint-disable-next-line dot-notation
|
|
269
|
+
e.super_=e.super=t;var r,o={constructor:{configurable:!0,value:e,writable:!0}};return void 0!==r&&(o.name={configurable:!0,value:r,writable:!0}),e.prototype=Object.create(t.prototype,o),e}).BaseError=a}),i("hmf9A",function(e,t){e.exports=[]}),i("32Eny",function(e,t){var n=a("kyWRD");e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},o=t.token||e.token;o&&(r.Authorization="Bearer ".concat(o)),t.useGlobalApi||e.useProjectHostname||!e.projectId||(r["X-Sanity-Project-ID"]=e.projectId);var a=!!(void 0===t.withCredentials?e.token||e.withCredentials:t.withCredentials),i=void 0===t.timeout?e.timeout:t.timeout;return n({},t,{headers:n({},r,t.headers||{}),timeout:void 0===i?3e5:i,proxy:t.proxy||e.proxy,json:!0,withCredentials:a})}}),i("2y8T0",function(t,n){e(t.exports,"defaultConfig",()=>r,e=>r=e),e(t.exports,"initConfig",()=>o,e=>o=e),e(t.exports,"validateApiVersion",()=>i,e=>i=e);var r,o,i,l=a("g1Zrh"),u=a("kyWRD"),s=a("19TJa"),c=a("jqoka"),f={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,gradientMode:!1,isPromiseAPI:!0},d=["localhost","127.0.0.1","0.0.0.0"];r=f,o=function(e,t){var n,r=u({},t,e);r.apiVersion||c.printNoApiVersionSpecifiedWarning();var o=u({},f,r),a=o.gradientMode,p=!a&&o.useProjectHostname;if("undefined"==typeof Promise){var h=l("js-client-promise-polyfill");throw Error("No native Promise-implementation found, polyfill needed - see ".concat(h))}if(a&&!o.namespace)throw Error("Configuration must contain `namespace` when running in gradient mode");if(p&&!o.projectId)throw Error("Configuration must contain `projectId`");var m="undefined"!=typeof window&&window.location&&window.location.hostname,y=m&&(n=window.location.hostname,-1!==d.indexOf(n));if(m&&y&&o.token&&!0!==o.ignoreBrowserTokenWarning?c.printBrowserTokenWarning():(!m||y)&&o.useCdn&&o.token?c.printCdnTokenWarning():void 0===o.useCdn&&c.printCdnWarning(),p&&s.projectId(o.projectId),!a&&o.dataset&&s.dataset(o.dataset,o.gradientMode),"requestTagPrefix"in o&&(o.requestTagPrefix=o.requestTagPrefix?s.requestTag(o.requestTagPrefix).replace(/\.+$/,""):void 0),o.apiVersion="".concat(o.apiVersion).replace(/^v/,""),o.isDefaultApi=o.apiHost===f.apiHost,o.useCdn=!!o.useCdn&&!o.token&&!o.withCredentials,i(o.apiVersion),o.gradientMode)o.url=o.apiHost,o.cdnUrl=o.apiHost;else{var g=o.apiHost.split("://",2),v=g[0],b=g[1],w=o.isDefaultApi?"apicdn.sanity.io":b;o.useProjectHostname?(o.url="".concat(v,"://").concat(o.projectId,".").concat(b,"/v").concat(o.apiVersion),o.cdnUrl="".concat(v,"://").concat(o.projectId,".").concat(w,"/v").concat(o.apiVersion)):(o.url="".concat(o.apiHost,"/v").concat(o.apiVersion),o.cdnUrl=o.url)}return o},i=function(e){if("1"!==e&&"X"!==e){var t=new Date(e);if(!(/^\d{4}-\d{2}-\d{2}$/.test(e)&&t instanceof Date&&t.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}}}),i("jqoka",function(t,n){e(t.exports,"printCdnWarning",()=>r,e=>r=e),e(t.exports,"printBrowserTokenWarning",()=>o,e=>o=e),e(t.exports,"printCdnTokenWarning",()=>i,e=>i=e),e(t.exports,"printNoApiVersionSpecifiedWarning",()=>l,e=>l=e);var r,o,i,l,u=a("g1Zrh"),s=a("4yABd"),c=function(e){return s(function(){for(var t,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=console).warn.apply(t,[e.join(" ")].concat(r))})};r=c(["You are not using the Sanity CDN. That means your data is always fresh, but the CDN is faster and","cheaper. Think about it! For more info, see ".concat(u("js-client-cdn-configuration"),"."),"To hide this warning, please set the `useCdn` option to either `true` or `false` when creating","the client."]),o=c(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.","See ".concat(u("js-client-browser-token")," for more information and how to hide this warning.")]),i=c(["You have set `useCdn` to `true` while also specifying a token. This is usually not what you","want. The CDN cannot be used with an authorization token, since private data cannot be cached.","See ".concat(u("js-client-usecdn-token")," for more information.")]),l=c(["Using the Sanity client without specifying an API version is deprecated.","See ".concat(u("js-client-api-version"))])}),i("buHTW",function(e,t){e.exports,e.exports=function(){function e(){return(e=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 t(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}var n="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function r(e){return("image-"+e.split("/").slice(-1)[0]).replace(/\.([a-z]+)$/,"-$1")}// Mock crop and hotspot if image lacks it
|
|
270
|
+
var o=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"]],a=["clip","crop","fill","fillmax","max","scale","min"],i=["top","bottom","left","right","center","focalpoint","entropy"],l=["format"],u=/*#__PURE__*/function(){function u(t,n){this.options=void 0,this.options=t?e({},t.options||{},n||{})// Merge parent options
|
|
271
|
+
:e({},n||{})}var s=u.prototype;return s.withOptions=function(n){var r=n.baseUrl||this.options.baseUrl,a={baseUrl:r};for(var i in n)n.hasOwnProperty(i)&&(a[function(e){for(var n,r=function(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}}(e))){r&&(e=r);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(o);!(n=r()).done;){var a=n.value,i=a[0],l=a[1];if(e===i||e===l)return i}return e}(i)]=n[i]);return new u(this,e({baseUrl:r},a))}// The image to be represented. Accepts a Sanity 'image'-document, 'asset'-document or
|
|
272
|
+
,s.image=function(e){return this.withOptions({source:e})}// Specify the dataset
|
|
273
|
+
,s.dataset=function(e){return this.withOptions({dataset:e})}// Specify the projectId
|
|
274
|
+
,s.projectId=function(e){return this.withOptions({projectId:e})}// Specify background color
|
|
275
|
+
,s.bg=function(e){return this.withOptions({bg:e})}// Set DPR scaling factor
|
|
276
|
+
,s.dpr=function(e){// A DPR of 1 is the default - so only include it if we have a different value
|
|
277
|
+
return this.withOptions(e&&1!==e?{dpr:e}:{})}// Specify the width of the image in pixels
|
|
278
|
+
,s.width=function(e){return this.withOptions({width:e})}// Specify the height of the image in pixels
|
|
279
|
+
,s.height=function(e){return this.withOptions({height:e})}// Specify focal point in fraction of image dimensions. Each component 0.0-1.0
|
|
280
|
+
,s.focalPoint=function(e,t){return this.withOptions({focalPoint:{x:e,y:t}})},s.maxWidth=function(e){return this.withOptions({maxWidth:e})},s.minWidth=function(e){return this.withOptions({minWidth:e})},s.maxHeight=function(e){return this.withOptions({maxHeight:e})},s.minHeight=function(e){return this.withOptions({minHeight:e})}// Specify width and height in pixels
|
|
281
|
+
,s.size=function(e,t){return this.withOptions({width:e,height:t})}// Specify blur between 0 and 100
|
|
282
|
+
,s.blur=function(e){return this.withOptions({blur:e})},s.sharpen=function(e){return this.withOptions({sharpen:e})}// Specify the desired rectangle of the image
|
|
283
|
+
,s.rect=function(e,t,n,r){return this.withOptions({rect:{left:e,top:t,width:n,height:r}})}// Specify the image format of the image. 'jpg', 'pjpg', 'png', 'webp'
|
|
284
|
+
,s.format=function(e){return this.withOptions({format:e})},s.invert=function(e){return this.withOptions({invert:e})}// Rotation in degrees 0, 90, 180, 270
|
|
285
|
+
,s.orientation=function(e){return this.withOptions({orientation:e})}// Compression quality 0-100
|
|
286
|
+
,s.quality=function(e){return this.withOptions({quality:e})}// Make it a download link. Parameter is default filename.
|
|
287
|
+
,s.forceDownload=function(e){return this.withOptions({download:e})}// Flip image horizontally
|
|
288
|
+
,s.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})}// Flip image vertically
|
|
289
|
+
,s.flipVertical=function(){return this.withOptions({flipVertical:!0})}// Ignore crop/hotspot from image record, even when present
|
|
290
|
+
,s.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},s.fit=function(e){if(-1===a.indexOf(e))throw Error('Invalid fit mode "'+e+'"');return this.withOptions({fit:e})},s.crop=function(e){if(-1===i.indexOf(e))throw Error('Invalid crop mode "'+e+'"');return this.withOptions({crop:e})}// Saturation
|
|
291
|
+
,s.saturation=function(e){return this.withOptions({saturation:e})},s.auto=function(e){if(-1===l.indexOf(e))throw Error('Invalid auto mode "'+e+'"');return this.withOptions({auto:e})}// Specify the number of pixels to pad the image
|
|
292
|
+
,s.pad=function(e){return this.withOptions({pad:e})}// Gets the url based on the submitted parameters
|
|
293
|
+
,s.url=function(){return function(t){var a=e({},t||{}),i=a.source;delete a.source;var l=// eslint-disable-next-line complexity
|
|
294
|
+
function(t){var n;if(!t)return null;if("string"==typeof t&&/^https?:\/\//.test(""+t))n={asset:{_ref:r(t)}};else if("string"==typeof t)n={asset:{_ref:t}};else if(t&&"string"==typeof t._ref)n={asset:t};else if(t&&"string"==typeof t._id)n={asset:{_ref:t._id||""}};else if(t&&t.asset&&"string"==typeof t.asset.url)n={asset:{_ref:r(t.asset.url)}};else{if("object"!=typeof t.asset)// that currently isn't sporting an asset.
|
|
295
|
+
return null;n=e({},t)}return t.crop&&(n.crop=t.crop),t.hotspot&&(n.hotspot=t.hotspot),function(t){if(t.crop&&t.hotspot)return t;// We need to pad in default values for crop or hotspot
|
|
296
|
+
var n=e({},t);return n.crop||(n.crop={left:0,top:0,bottom:0,right:0}),n.hotspot||(n.hotspot={x:.5,y:.5,height:1,width:1}),n}(n)}(i);if(!l)throw Error("Unable to resolve image URL from source ("+JSON.stringify(i)+")");var u=function(e){var t=e.split("-"),r=t[1],o=t[2],a=t[3];if(!r||!o||!a)throw Error("Malformed asset _ref '"+e+"'. Expected an id like \""+n+'".');var i=o.split("x"),l=i[0],u=i[1],s=+l,c=+u;if(!(isFinite(s)&&isFinite(c)))throw Error("Malformed asset _ref '"+e+"'. Expected an id like \""+n+'".');return{id:r,width:s,height:c,format:a}}(l.asset._ref||l.asset._id||""),s=Math.round(l.crop.left*u.width),c=Math.round(l.crop.top*u.height),f={left:s,top:c,width:Math.round(u.width-l.crop.right*u.width-s),height:Math.round(u.height-l.crop.bottom*u.height-c)},d=l.hotspot.height*u.height/2,p=l.hotspot.width*u.width/2,h=l.hotspot.x*u.width,m=l.hotspot.y*u.height;// Compute crop rect in terms of pixel coordinates in the raw source image
|
|
297
|
+
return a.rect||a.focalPoint||a.ignoreImageParams||a.crop||(a=e({},a,function(e,t){var n,r=t.width,o=t.height;if(!(r&&o))return{width:r,height:o,rect:e.crop};var a=e.crop,i=e.hotspot,l=r/o;if(a.width/a.height>l){// The crop is wider than the desired aspect ratio. That means we are cutting from the sides
|
|
298
|
+
var u=Math.round(a.height),s=Math.round(u*l),c=Math.max(0,Math.round(a.top)),f=Math.max(0,Math.round(Math.round((i.right-i.left)/2+i.left)-s/2));f<a.left?f=a.left:f+s>a.left+a.width&&(f=a.left+a.width-s),n={left:f,top:c,width:s,height:u}}else{// The crop is taller than the desired ratio, we are cutting from top and bottom
|
|
299
|
+
var d=a.width,p=Math.round(d/l),h=Math.max(0,Math.round(a.left)),m=Math.max(0,Math.round(Math.round((i.bottom-i.top)/2+i.top)-p/2));m<a.top?m=a.top:m+p>a.top+a.height&&(m=a.top+a.height-p),n={left:h,top:m,width:d,height:p}}return{width:r,height:o,rect:n}}// For backwards-compatibility
|
|
300
|
+
({crop:f,hotspot:{left:h-p,top:m-d,right:h+p,bottom:m+d}},a))),function(e){var t=(e.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),n=e.asset.id+"-"+e.asset.width+"x"+e.asset.height+"."+e.asset.format,r=t+"/images/"+e.projectId+"/"+e.dataset+"/"+n,a=[];if(e.rect){// Only bother url with a crop if it actually crops anything
|
|
301
|
+
var i=e.rect,l=i.left,u=i.top,s=i.width,c=i.height;(0!==l||0!==u||c!==e.asset.height||s!==e.asset.width)&&a.push("rect="+l+","+u+","+s+","+c)}e.bg&&a.push("bg="+e.bg),e.focalPoint&&(a.push("fp-x="+e.focalPoint.x),a.push("fp-y="+e.focalPoint.y));var f=[e.flipHorizontal&&"h",e.flipVertical&&"v"].filter(Boolean).join("");return(f&&a.push("flip="+f),// Map from spec name to url param name, and allow using the actual param name as an alternative
|
|
302
|
+
o.forEach(function(t){var n=t[0],r=t[1];void 0!==e[n]?a.push(r+"="+encodeURIComponent(e[n])):void 0!==e[r]&&a.push(r+"="+encodeURIComponent(e[r]))}),0===a.length)?r:r+"?"+a.join("&")}(e({},a,{asset:u}))}// eslint-disable-next-line complexity
|
|
303
|
+
(this.options)}// Alias for url()
|
|
304
|
+
,s.toString=function(){return this.url()},u}();return function(e){// Did we get a modernish client?
|
|
305
|
+
if(e&&"config"in e&&"function"==typeof e.config){// Inherit config from client
|
|
306
|
+
var t=e.config(),n=t.apiHost,r=t.projectId,o=t.dataset;return new u(null,{baseUrl:(n||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:r,dataset:o})}// Did we get a SanityClient?
|
|
307
|
+
if(e&&"clientConfig"in e&&"object"==typeof e.clientConfig){// Inherit config from client
|
|
308
|
+
var a=e.clientConfig,i=a.apiHost,l=a.projectId,s=a.dataset;return new u(null,{baseUrl:(i||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:l,dataset:s})}// Or just accept the options as given
|
|
309
|
+
return new u(null,e)}}()}),i("e7cNO",function(t,n){e(t.exports,"fetchBanners",()=>o);var r=a("3mBFY");let o=async()=>await (0,r.sanityClient).fetch("*[_type == 'banner']")}),i("zDlfa",function(t,n){e(t.exports,"fetchEvents",()=>o),e(t.exports,"fetchBoardEvents",()=>i);var r=a("3mBFY");let o=async()=>{let e=`*[_type == 'event'] | order(startDate asc)
|
|
310
|
+
{
|
|
311
|
+
name,
|
|
312
|
+
image,
|
|
313
|
+
startDate,
|
|
314
|
+
endDate,
|
|
315
|
+
shortDescription,
|
|
316
|
+
buttons
|
|
317
|
+
}`;return await (0,r.sanityClient).fetch(e)},i=async()=>{let e=`*[_type == 'board-event'] | order(startDate asc)
|
|
318
|
+
{
|
|
319
|
+
name,
|
|
320
|
+
image,
|
|
321
|
+
startDate,
|
|
322
|
+
endDate,
|
|
323
|
+
shortDescription,
|
|
324
|
+
buttons
|
|
325
|
+
}`;return await (0,r.sanityClient).fetch(e)}}),i("4GvL9",function(e,t){a("3mBFY")}),i("d6gIt",function(e,t){a("3mBFY")}),i("8Nfb8",function(t,n){e(t.exports,"Banner",()=>a("ahBKe").Banner),e(t.exports,"BannerContainer",()=>a("6ubLY").BannerContainer),e(t.exports,"EventContainer",()=>a("iCpfk").EventContainer),a("7UsDp"),a("2Rpvx"),a("2zjYi"),a("fsxwa")}),i("7UsDp",function(t,n){e(t.exports,"Banner",()=>a("ahBKe").Banner),e(t.exports,"BannerContainer",()=>a("6ubLY").BannerContainer),a("ahBKe"),a("6ubLY")}),i("ahBKe",function(t,n){e(t.exports,"Banner",()=>c);var r=a("aPJhp");a("es0kx");var o=a("3mBFY"),i=a("jYpDP"),l=a("l2wYk"),u=a("7umXK");let s={marks:{color:({value:e,children:t})=>/*#__PURE__*/(0,r.jsx)("span",{style:{color:e.hex},children:t})}},c=({image:e,text:t,url:n,loading:a})=>a?/*#__PURE__*/(0,r.jsx)(r.Fragment,{children:/*#__PURE__*/(0,r.jsx)("div",{className:u.banner,style:{display:"block"},children:/*#__PURE__*/(0,r.jsx)(l.default,{height:"100%",width:"100%"})})}):/*#__PURE__*/(0,r.jsx)("span",{onClick:()=>{n&&(window.location.href=n)},style:{cursor:n?"pointer":"",backgroundImage:`linear-gradient(
|
|
326
|
+
rgba(0, 0, 0, 0.2),
|
|
327
|
+
rgba(0, 0, 0, 0.2)
|
|
328
|
+
), url("${(0,o.urlFor)(e).width(1440).url()}")`},className:u.banner,children:/*#__PURE__*/(0,r.jsx)(i.PortableText,{value:t,components:s})})}),i("jYpDP",function(t,n){e(t.exports,"PortableText",()=>_);var r=a("9LprB"),o=a("aPJhp"),i=a("85Hg2");let l=["block","list","listItem","marks","types"],u=["listItem"],s=["_key"];function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){var r,o;r=t,o=n[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t,n){let r=t[n],o=e[n];return"function"==typeof r||r&&"function"==typeof o?r:r?f(f({},o),r):o}let h={textDecoration:"underline"},m=(e,t)=>"[@portabletext/react] Unknown ".concat(e,", specify a component for it in the `components.").concat(t,"` prop"),y=e=>m('block type "'.concat(e,'"'),"types"),g=e=>m('mark type "'.concat(e,'"'),"marks"),v=e=>m('block style "'.concat(e,'"'),"block"),b=e=>m('list style "'.concat(e,'"'),"list"),w=e=>m('list item style "'.concat(e,'"'),"listItem");function x(e){console.warn(e)}let k={display:"none"},S={types:{},block:{normal:e=>{let{children:t}=e;return/* @__PURE__ */(0,o.jsx)("p",{children:t})},blockquote:e=>{let{children:t}=e;return/* @__PURE__ */(0,o.jsx)("blockquote",{children:t})},h1:e=>{let{children:t}=e;return/* @__PURE__ */(0,o.jsx)("h1",{children:t})},h2:e=>{let{children:t}=e;return/* @__PURE__ */(0,o.jsx)("h2",{children:t})},h3:e=>{let{children:t}=e;return/* @__PURE__ */(0,o.jsx)("h3",{children:t})},h4:e=>{let{children:t}=e;return/* @__PURE__ */(0,o.jsx)("h4",{children:t})},h5:e=>{let{children:t}=e;return/* @__PURE__ */(0,o.jsx)("h5",{children:t})},h6:e=>{let{children:t}=e;return/* @__PURE__ */(0,o.jsx)("h6",{children:t})}},marks:{em:e=>{let{children:t}=e;return/* @__PURE__ */(0,o.jsx)("em",{children:t})},strong:e=>{let{children:t}=e;return/* @__PURE__ */(0,o.jsx)("strong",{children:t})},code:e=>{let{children:t}=e;return/* @__PURE__ */(0,o.jsx)("code",{children:t})},underline:e=>{let{children:t}=e;return/* @__PURE__ */(0,o.jsx)("span",{style:h,children:t})},"strike-through":e=>{let{children:t}=e;return/* @__PURE__ */(0,o.jsx)("del",{children:t})},link:e=>{let{children:t,value:n}=e;return/* @__PURE__ */(0,o.jsx)("a",{href:null==n?void 0:n.href,children:t})}},list:{number:e=>{let{children:t}=e;return/* @__PURE__ */(0,o.jsx)("ol",{children:t})},bullet:e=>{let{children:t}=e;return/* @__PURE__ */(0,o.jsx)("ul",{children:t})}},listItem:e=>{let{children:t}=e;return/* @__PURE__ */(0,o.jsx)("li",{children:t})},hardBreak:()=>/* @__PURE__ */(0,o.jsx)("br",{}),unknownType:e=>{let{value:t,isInline:n}=e,r=y(t._type);return n?/* @__PURE__ */(0,o.jsx)("span",{style:k,children:r}):/* @__PURE__ */(0,o.jsx)("div",{style:k,children:r})},unknownMark:e=>{let{markType:t,children:n}=e;return/* @__PURE__ */(0,o.jsx)("span",{className:"unknown__pt__mark__".concat(t),children:n})},unknownList:e=>{let{children:t}=e;return/* @__PURE__ */(0,o.jsx)("ul",{children:t})},unknownListItem:e=>{let{children:t}=e;return/* @__PURE__ */(0,o.jsx)("li",{children:t})},unknownBlockStyle:e=>{let{children:t}=e;return/* @__PURE__ */(0,o.jsx)("p",{children:t})}};function _(e){let{value:t,components:n,listNestingMode:a,onMissingComponent:u=x}=e,s=u||P,c=Array.isArray(t)?t:[t],h=(0,r.nestLists)(c,a||r.LIST_NEST_MODE_HTML),m=(0,i.useMemo)(()=>n?function(e,t){let{block:n,list:r,listItem:o,marks:a,types:i}=t,u=d(t,l);return f(f({},e),{},{block:p(e,t,"block"),list:p(e,t,"list"),listItem:p(e,t,"listItem"),marks:p(e,t,"marks"),types:p(e,t,"types")},u)}(S,n):S,[n]),y=(0,i.useMemo)(()=>E(m,s),[m,s]),g=h.map((e,t)=>y({node:e,index:t,isInline:!1,renderNode:y}));return/* @__PURE__ */(0,o.jsx)(o.Fragment,{children:g})}let E=(e,t)=>function n(a){let{node:i,index:l,isInline:c}=a,p=i._key||"node-".concat(l);return(0,r.isPortableTextToolkitList)(i)?function(r,a,i){let l=r.children.map((e,t)=>n({node:e._key?e:f(f({},e),{},{_key:"li-".concat(a,"-").concat(t)}),index:t,isInline:!1,renderNode:n})),u=e.list,s="function"==typeof u?u:u[r.listItem],c=s||e.unknownList;if(c===e.unknownList){let e=r.listItem||"bullet";t(b(e),{nodeType:"listStyle",type:e})}return/* @__PURE__ */(0,o.jsx)(c,{value:r,index:a,isInline:!1,renderNode:n,children:l},i)}(i,l,p):(0,r.isPortableTextListItemBlock)(i)?function(r,a,i){let l=C({node:r,index:a,isInline:!1,renderNode:n}),s=e.listItem,c="function"==typeof s?s:s[r.listItem],f=c||e.unknownListItem;if(f===e.unknownListItem){let e=r.listItem||"bullet";t(w(e),{type:e,nodeType:"listItemStyle"})}let p=l.children;if(r.style&&"normal"!==r.style){let{listItem:e}=r,t=d(r,u);p=n({node:t,index:a,isInline:!1,renderNode:n})}return/* @__PURE__ */(0,o.jsx)(f,{value:r,index:a,isInline:!1,renderNode:n,children:p},i)}(i,l,p):(0,r.isPortableTextToolkitSpan)(i)?function(a,i,l){let{markDef:u,markType:s,markKey:c}=a,f=e.marks[s]||e.unknownMark,d=a.children.map((e,t)=>n({node:e,index:t,isInline:!0,renderNode:n}));return f===e.unknownMark&&t(g(s),{nodeType:"mark",type:s}),/* @__PURE__ */(0,o.jsx)(f,{text:(0,r.spanToPlainText)(a),value:u,markType:s,markKey:c,renderNode:n,children:d},l)}(i,0,p):i._type in e.types?function(t,r,a,i){let l=e.types[t._type];return l?/* @__PURE__ */(0,o.jsx)(l,f({},{value:t,isInline:i,index:r,renderNode:n}),a):null}(i,l,p,c):(0,r.isPortableTextBlock)(i)?function(r,a,i,l){let u=C({node:r,index:a,isInline:l,renderNode:n}),{_key:c}=u,p=d(u,s),h=p.node.style||"normal",m="function"==typeof e.block?e.block:e.block[h],y=m||e.unknownBlockStyle;return y===e.unknownBlockStyle&&t(v(h),{nodeType:"blockStyle",type:h}),/* @__PURE__ */(0,o.jsx)(y,f(f({},p),{},{value:p.node,renderNode:n}),i)}(i,l,p,c):(0,r.isPortableTextToolkitTextNode)(i)?function(t,n){if("\n"===t.text){let t=e.hardBreak;return t?/* @__PURE__ */(0,o.jsx)(t,{},n):"\n"}return t.text}(i,p):function(r,a,i,l){t(y(r._type),{nodeType:"block",type:r._type});let u=e.unknownType;return/* @__PURE__ */(0,o.jsx)(u,f({},{value:r,isInline:l,index:a,renderNode:n}),i)}(i,l,p,c)};function C(e){let{node:t,index:n,isInline:o,renderNode:a}=e,i=(0,r.buildMarksTree)(t),l=i.map((e,t)=>a({node:e,isInline:!0,index:t,renderNode:a}));return{_key:t._key||"block-".concat(n),children:l,index:n,isInline:o,node:t}}function P(){}}),i("9LprB",function(t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){var r,o;r=t,o=n[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e){return"span"===e._type&&"text"in e&&"string"==typeof e.text&&(void 0===e.marks||Array.isArray(e.marks)&&e.marks.every(e=>"string"==typeof e))}function i(e){return(// allowed child types and marks, one might name them differently
|
|
329
|
+
"string"==typeof e._type&&// Toolkit-types like nested spans are @-prefixed
|
|
330
|
+
"@"!==e._type[0]&&// `markDefs` isn't _required_ per say, but if it's there, it needs to be an array
|
|
331
|
+
(!("markDefs"in e)||!e.markDefs||Array.isArray(e.markDefs)&&// Every mark definition needs to have an `_key` to be mappable in child spans
|
|
332
|
+
e.markDefs.every(e=>"string"==typeof e._key))&&// `children` is required and needs to be an array
|
|
333
|
+
"children"in e&&Array.isArray(e.children)&&// All children are objects with `_type` (usually spans, but can contain other stuff)
|
|
334
|
+
e.children.every(e=>"object"==typeof e&&"_type"in e))}function l(e){return i(e)&&"listItem"in e&&"string"==typeof e.listItem&&(void 0===e.level||"number"==typeof e.level)}function u(e){return"@list"===e._type}function s(e){return"@span"===e._type}function c(e){return"@text"===e._type}e(t.exports,"isPortableTextBlock",()=>i),e(t.exports,"isPortableTextListItemBlock",()=>l),e(t.exports,"isPortableTextToolkitList",()=>u),e(t.exports,"isPortableTextToolkitSpan",()=>s),e(t.exports,"isPortableTextToolkitTextNode",()=>c),e(t.exports,"buildMarksTree",()=>p),e(t.exports,"nestLists",()=>h),e(t.exports,"spanToPlainText",()=>function e(t){let n="";return t.children.forEach(t=>{c(t)?n+=t.text:s(t)&&(n+=e(t))}),n}),e(t.exports,"LIST_NEST_MODE_HTML",()=>g);let f=["strong","em","code","underline","strike-through"];function d(e,t,n){if(!a(e)||!e.marks||!e.marks.length)return[];let r=e.marks.slice(),o={};return r.forEach(e=>{o[e]=1;for(let r=t+1;r<n.length;r++){let t=n[r];if(t&&a(t)&&Array.isArray(t.marks)&&-1!==t.marks.indexOf(e))o[e]++;else break}}),r.sort((e,t)=>(function(e,t,n){let r=e[t],o=e[n];if(r!==o)return o-r;let a=f.indexOf(t),i=f.indexOf(n);return a!==i?a-i:t.localeCompare(n)})(o,e,t))}function p(e){var t;let{children:n,markDefs:r=[]}=e;if(!n||!n.length)return[];let o=n.map(d),i={_type:"@span",children:[],markType:"<unknown>"},l=[i];for(let e=0;e<n.length;e++){let i=n[e];if(!i)continue;let u=o[e]||[],s=1;if(l.length>1)for(;s<l.length;s++){let e=(null==(t=l[s])?void 0:t.markKey)||"",n=u.indexOf(e);if(-1===n)break;u.splice(n,1)}let c=(l=l.slice(0,s))[l.length-1];if(c){for(let e of u){let t=r.find(t=>t._key===e),n=t?t._type:e,o={_type:"@span",_key:i._key,children:[],markDef:t,markType:n,markKey:e};c.children.push(o),l.push(o),c=o}if(a(i)){let e=i.text.split("\n");for(let t=e.length;t-- >1;)e.splice(t,0,"\n");c.children=c.children.concat(e.map(e=>({_type:"@text",text:e})))}else c.children=c.children.concat(i)}}return i.children}function h(e,t){let n;let r=[];for(let i=0;i<e.length;i++){let u=e[i];if(u){var a;if(!l(u)){r.push(u),n=void 0;continue}if(!n){n=m(u,i,t),r.push(n);continue}if(a=n,(u.level||1)===a.level&&u.listItem===a.listItem){n.children.push(u);continue}if((u.level||1)>n.level){let e=m(u,i,t);if("html"===t){let t=n.children[n.children.length-1],r=o(o({},t),{},{children:[...t.children,e]});n.children[n.children.length-1]=r}else n.children.push(e);n=e;continue}if((u.level||1)<n.level){let e=r[r.length-1],o=e&&y(e,u);if(o){(n=o).children.push(u);continue}n=m(u,i,t),r.push(n);continue}if(u.listItem!==n.listItem){let e=r[r.length-1],o=e&&y(e,{level:u.level||1});if(o&&o.listItem===u.listItem){(n=o).children.push(u);continue}n=m(u,i,t),r.push(n);continue}console.warn("Unknown state encountered for block",u),r.push(u)}}return r}function m(e,t,n){return{_type:"@list",_key:"".concat(e._key||"".concat(t),"-parent"),mode:n,level:e.level||1,listItem:e.listItem,children:[e]}}function y(e,t){let n=t.level||1,r=t.listItem||"normal",o="string"==typeof t.listItem;if(u(e)&&(e.level||1)===n&&o&&(e.listItem||"normal")===r)return e;if(!("children"in e))return;let i=e.children[e.children.length-1];return i&&!a(i)?y(i,t):void 0}let g="html"}),i("l2wYk",function(n,r){e(n.exports,"default",()=>l),e(n.exports,"SkeletonTheme",()=>u);var o=a("85Hg2");/**
|
|
335
|
+
* @internal
|
|
336
|
+
*/let i=/*@__PURE__*/t(o).createContext({});function l({count:e=1,wrapper:n,className:r,containerClassName:a,containerTestId:l,circle:u=!1,style:s,...c}){var f,d,p;let h=/*@__PURE__*/t(o).useContext(i),m={...c};// DO NOT overwrite style options from the context if `propsStyleOptions`
|
|
337
|
+
// has properties explicity set to undefined
|
|
338
|
+
for(let[e,t]of Object.entries(c))void 0===t&&delete m[e];// Props take priority over context
|
|
339
|
+
let y={...h,...m,circle:u},g={...s,...// For performance & cleanliness, don't add any inline styles unless we have to
|
|
340
|
+
function({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:o,circle:a,direction:i,duration:l,enableAnimation:u=!0}){let s={};return"rtl"===i&&(s["--animation-direction"]="reverse"),"number"==typeof l&&(s["--animation-duration"]=`${l}s`),u||(s["--pseudo-element-display"]="none"),("string"==typeof n||"number"==typeof n)&&(s.width=n),("string"==typeof r||"number"==typeof r)&&(s.height=r),("string"==typeof o||"number"==typeof o)&&(s.borderRadius=o),a&&(s.borderRadius="50%"),void 0!==e&&(s["--base-color"]=e),void 0!==t&&(s["--highlight-color"]=t),s}(y)},v="react-loading-skeleton";r&&(v+=` ${r}`);let b=null!==(f=y.inline)&&void 0!==f&&f,w=[],x=Math.ceil(e);for(let n=0;n<x;n++){let r=g;if(x>e&&n===x-1){// count is not an integer and we've reached the last iteration of
|
|
341
|
+
// the loop, so add a "fractional" skeleton.
|
|
342
|
+
//
|
|
343
|
+
// For example, if count is 3.5, we've already added 3 full
|
|
344
|
+
// skeletons, so now we add one more skeleton that is 0.5 times the
|
|
345
|
+
// original width.
|
|
346
|
+
let t=null!==(d=r.width)&&void 0!==d?d:"100%",n=e%1,o="number"==typeof t?t*n:`calc(${t} * ${n})`;// 100% is the default since that's what's in the CSS
|
|
347
|
+
r={...r,width:o}}let a=/*@__PURE__*/t(o).createElement("span",{className:v,style:r,key:n},"");b?w.push(a):// `width` is specified
|
|
348
|
+
w.push(/*@__PURE__*/t(o).createElement(/*@__PURE__*/t(o).Fragment,{key:n},a,/*@__PURE__*/t(o).createElement("br",null)))}return /*@__PURE__*/t(o).createElement("span",{className:a,"data-testid":l,"aria-live":"polite","aria-busy":null===(p=y.enableAnimation)||void 0===p||p},n?w.map((e,r)=>/*@__PURE__*/t(o).createElement(n,{key:r},e)):w)}function u({children:e,...n}){return /*@__PURE__*/t(o).createElement(i.Provider,{value:n},e)}}),i("7umXK",function(t,n){var r;e(t.exports,"banner",()=>r,e=>r=e),r="PsGD3q_banner"}),i("6ubLY",function(t,n){e(t.exports,"BannerContainer",()=>i);var r=a("aPJhp"),o=a("522Ty");let i=({children:e})=>/*#__PURE__*/(0,r.jsx)("div",{className:o.bannerContainer,children:/*#__PURE__*/(0,r.jsx)("div",{className:o.bannerApp,children:e})})}),i("522Ty",function(t,n){var r,o;e(t.exports,"bannerApp",()=>r,e=>r=e),e(t.exports,"bannerContainer",()=>o,e=>o=e),r="BtxFyq_bannerApp",o="BtxFyq_bannerContainer"}),i("2Rpvx",function(t,n){e(t.exports,"EventContainer",()=>a("iCpfk").EventContainer),a("hVxmv"),a("iCpfk")}),i("hVxmv",function(t,n){e(t.exports,"EventCard",()=>d);// @ts-ignore
|
|
349
|
+
var r=a("aPJhp");a("es0kx");var o=a("3mBFY"),i=a("jYpDP"),l=a("bPTyO"),u=a("56yyH"),s=a("NQ3dA"),c=a("l2wYk"),f=a("3E9Yt");let d=({name:e,image:t,startDate:n,endDate:a,shortDescription:d,buttons:p,loading:h,containerStyle:m})=>{let y=function(e,t){if(!e||!t)return null;let n=new Date(e),r=new Date(t);return(0,u.default)(n,r)?(0,l.default)(n,"MMMM d"):(0,s.default)(n,r)?(0,l.default)(n,"MMMM d")+" – "+(0,l.default)(r,"d"):(0,l.default)(n,"MMMM d")+" – "+(0,l.default)(r,"MMMM d")}(n,a);return/*#__PURE__*/(0,r.jsx)(c.SkeletonTheme,{baseColor:"#dcdcdc",children:/*#__PURE__*/(0,r.jsxs)("div",{className:f.eventCard,style:{...m},children:[t?/*#__PURE__*/(0,r.jsx)("img",{src:(0,o.urlFor)(t).height(400).url(),className:f.image,crossOrigin:"anonymous",alt:""}):/*#__PURE__*/(0,r.jsx)("div",{className:f.image,children:/*#__PURE__*/(0,r.jsx)(c.default,{height:400})}),/*#__PURE__*/(0,r.jsxs)("div",{className:f.eventCardBody,children:[/*#__PURE__*/(0,r.jsxs)("div",{children:[/*#__PURE__*/(0,r.jsx)("h3",{className:f.eventCardTitle,children:e||/*#__PURE__*/(0,r.jsx)(c.default,{})}),/*#__PURE__*/(0,r.jsx)("div",{className:f.eventCardDate,children:y||/*#__PURE__*/(0,r.jsx)(c.default,{})})]}),/*#__PURE__*/(0,r.jsx)("div",{className:f.eventCardDescription,children:d?/*#__PURE__*/(0,r.jsx)(i.PortableText,{value:d}):/*#__PURE__*/(0,r.jsx)(c.default,{count:7})}),/*#__PURE__*/(0,r.jsx)("div",{className:f.eventButtons,children:p?p.map(({url:e,text:t,_key:n})=>/*#__PURE__*/(0,r.jsx)("a",{href:e,className:f.eventButton,children:/*#__PURE__*/(0,r.jsx)("div",{children:t})},n)):h&&/*#__PURE__*/(0,r.jsx)(c.default,{className:f.eventButton})})]})]})})}}),i("bPTyO",function(t,n){e(t.exports,"default",()=>b);var r=a("aeDkr"),o=a("aydH8"),i=a("ftxlF"),l=a("dPYX2"),u=a("jd94M"),s=a("3hV62"),c=a("fsyRn"),f=a("gf9z4"),d=a("aGHX8"),p=a("9i6he"),h=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,m=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,y=/^'([^]*?)'?$/,g=/''/g,v=/[a-zA-Z]/;function b(e,t,n){(0,p.default)(2,arguments);var a=String(t),b=n||{},w=b.locale||o.default,x=w.options&&w.options.firstWeekContainsDate,k=null==x?1:(0,d.default)(x),S=null==b.firstWeekContainsDate?k:(0,d.default)(b.firstWeekContainsDate);if(!(S>=1&&S<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=w.options&&w.options.weekStartsOn,E=null==_?0:(0,d.default)(_),C=null==b.weekStartsOn?E:(0,d.default)(b.weekStartsOn);if(!(C>=0&&C<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!w.localize)throw RangeError("locale must contain localize property");if(!w.formatLong)throw RangeError("locale must contain formatLong property");var P=(0,l.default)(e);if(!(0,r.default)(P))throw RangeError("Invalid time value");// Convert the date in system timezone to the same date in UTC+00:00 timezone.
|
|
350
|
+
// This ensures that when UTC functions will be implemented, locales will be compatible with them.
|
|
351
|
+
// See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376
|
|
352
|
+
var O=(0,c.default)(P),T=(0,i.default)(P,O),j={firstWeekContainsDate:S,weekStartsOn:C,locale:w,_originalDate:P};return a.match(m).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,s.default[t])(e,w.formatLong,j):e}).join("").match(h).map(function(n){// Replace two single quote characters with one single quote character
|
|
353
|
+
if("''"===n)return"'";var r=n[0];if("'"===r)return n.match(y)[1].replace(g,"'");var o=u.default[r];if(o)return!b.useAdditionalWeekYearTokens&&(0,f.isProtectedWeekYearToken)(n)&&(0,f.throwProtectedError)(n,t,e),!b.useAdditionalDayOfYearTokens&&(0,f.isProtectedDayOfYearToken)(n)&&(0,f.throwProtectedError)(n,t,e),o(T,n,w.localize,j);if(r.match(v))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n}).join("")}}),i("aeDkr",function(t,n){e(t.exports,"default",()=>l);var r=a("94ZPH"),o=a("dPYX2"),i=a("9i6he");function l(e){return(0,i.default)(1,arguments),(!!(0,r.default)(e)||"number"==typeof e)&&!isNaN(Number((0,o.default)(e)))}}),i("94ZPH",function(t,n){e(t.exports,"default",()=>o);var r=a("9i6he");function o(e){return(0,r.default)(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}}),i("9i6he",function(t,n){e(t.exports,"default",()=>r);function r(e,t){if(t.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}}),i("dPYX2",function(t,n){e(t.exports,"default",()=>o);var r=a("9i6he");function o(e){(0,r.default)(1,arguments);var t=Object.prototype.toString.call(e);// Clone the date
|
|
354
|
+
return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(// eslint-disable-next-line no-console
|
|
355
|
+
console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(Error().stack)),new Date(NaN))}}),i("aydH8",function(t,n){e(t.exports,"default",()=>s);var r=a("9xjkL"),o=a("1yE7H"),i=a("a3kdc"),l=a("fGtH2"),u=a("3OosW"),s={code:"en-US",formatDistance:r.default,formatLong:o.default,formatRelative:i.default,localize:l.default,match:u.default,options:{weekStartsOn:0,firstWeekContainsDate:1}}}),i("9xjkL",function(t,n){e(t.exports,"default",()=>o);var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},o=function(e,t,n){var o,a=r[e];return(o="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"in "+o:o+" ago":o}}),i("1yE7H",function(t,n){e(t.exports,"default",()=>o);var r=a("7WFqV"),o={date:(0,r.default)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,r.default)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,r.default)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})}}),i("7WFqV",function(t,n){e(t.exports,"default",()=>r);function r(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}}),i("a3kdc",function(t,n){e(t.exports,"default",()=>o);var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},o=function(e,t,n,o){return r[e]}}),i("fGtH2",function(t,n){e(t.exports,"default",()=>o);var r=a("5NRSr"),o={ordinalNumber:function(e,t){var n=Number(e),r=n%100;// If ordinal numbers depend on context, for example,
|
|
356
|
+
if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,r.default)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,r.default)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,r.default)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,r.default)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})}}),i("5NRSr",function(t,n){e(t.exports,"default",()=>r);function r(e){return function(t,n){var r,o=n||{};if("formatting"===(o.context?String(o.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,i=o.width?String(o.width):a;r=e.formattingValues[i]||e.formattingValues[a]}else{var l=e.defaultWidth,u=o.width?String(o.width):e.defaultWidth;r=e.values[u]||e.values[l]}return r[e.argumentCallback?e.argumentCallback(t):t]}}}),i("3OosW",function(t,n){e(t.exports,"default",()=>o);var r=a("kNbB1"),o={ordinalNumber:(0,a("hUyfo").default)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,r.default)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,r.default)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})}}),i("kNbB1",function(t,n){function r(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.width,a=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var l=i[0],u=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(u)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(u,function(e){return e.test(l)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(u,function(e){return e.test(l)});return n=e.valueCallback?e.valueCallback(s):s,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(l.length)}}}e(t.exports,"default",()=>r)}),i("hUyfo",function(t,n){e(t.exports,"default",()=>r);function r(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],a=t.match(e.parsePattern);if(!a)return null;var i=e.valueCallback?e.valueCallback(a[0]):a[0];return{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(o.length)}}}}),i("ftxlF",function(t,n){e(t.exports,"default",()=>l);var r=a("aGHX8"),o=a("6ctuJ"),i=a("9i6he");function l(e,t){(0,i.default)(2,arguments);var n=(0,r.default)(t);return(0,o.default)(e,-n)}}),i("aGHX8",function(t,n){e(t.exports,"default",()=>r);function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}}),i("6ctuJ",function(t,n){e(t.exports,"default",()=>l);var r=a("aGHX8"),o=a("dPYX2"),i=a("9i6he");function l(e,t){(0,i.default)(2,arguments);var n=(0,o.default)(e).getTime(),a=(0,r.default)(t);return new Date(n+a)}}),i("jd94M",function(t,n){e(t.exports,"default",()=>m);var r=a("c7J6M"),o=a("frJ4N"),i=a("k7JDS"),l=a("cN7jJ"),u=a("3GiyP"),s=a("1N4Pl"),c=a("kIyIj"),f={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function d(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+(t||"")+(0,s.default)(a,2)}function p(e,t){return e%60==0?(e>0?"-":"+")+(0,s.default)(Math.abs(e)/60,2):h(e,t)}function h(e,t){var n=e>0?"-":"+",r=Math.abs(e);return n+(0,s.default)(Math.floor(r/60),2)+(t||"")+(0,s.default)(r%60,2)}var m={// Era
|
|
357
|
+
G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){// AD, BC
|
|
358
|
+
case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});// A, B
|
|
359
|
+
case"GGGGG":return n.era(r,{width:"narrow"});// Anno Domini, Before Christ
|
|
360
|
+
default:return n.era(r,{width:"wide"})}},// Year
|
|
361
|
+
y:function(e,t,n){// Ordinal number
|
|
362
|
+
if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;// Returns 1 for 1 BC (which is year 0 in JavaScript)
|
|
363
|
+
return n.ordinalNumber(o,{unit:"year"})}return(0,c.default).y(e,t)},// Local week-numbering year
|
|
364
|
+
Y:function(e,t,n,r){var o=(0,u.default)(e,r),a=o>0?o:1-o;// Returns 1 for 1 BC (which is year 0 in JavaScript)
|
|
365
|
+
if("YY"===t){var i=a%100;return(0,s.default)(i,2)}// Ordinal number
|
|
366
|
+
return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):(0,s.default)(a,t.length)},// ISO week-numbering year
|
|
367
|
+
R:function(e,t){var n=(0,i.default)(e);// Padding
|
|
368
|
+
return(0,s.default)(n,t.length)},// Extended year. This is a single number designating the year of this calendar system.
|
|
369
|
+
// The main difference between `y` and `u` localizers are B.C. years:
|
|
370
|
+
// | Year | `y` | `u` |
|
|
371
|
+
// |------|-----|-----|
|
|
372
|
+
// | AC 1 | 1 | 1 |
|
|
373
|
+
// | BC 1 | 1 | 0 |
|
|
374
|
+
// | BC 2 | 2 | -1 |
|
|
375
|
+
// Also `yy` always returns the last two digits of a year,
|
|
376
|
+
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
377
|
+
u:function(e,t){var n=e.getUTCFullYear();return(0,s.default)(n,t.length)},// Quarter
|
|
378
|
+
Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){// 1, 2, 3, 4
|
|
379
|
+
case"Q":return String(r);// 01, 02, 03, 04
|
|
380
|
+
case"QQ":return(0,s.default)(r,2);// 1st, 2nd, 3rd, 4th
|
|
381
|
+
case"Qo":return n.ordinalNumber(r,{unit:"quarter"});// Q1, Q2, Q3, Q4
|
|
382
|
+
case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
383
|
+
case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});// 1st quarter, 2nd quarter, ...
|
|
384
|
+
default:return n.quarter(r,{width:"wide",context:"formatting"})}},// Stand-alone quarter
|
|
385
|
+
q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){// 1, 2, 3, 4
|
|
386
|
+
case"q":return String(r);// 01, 02, 03, 04
|
|
387
|
+
case"qq":return(0,s.default)(r,2);// 1st, 2nd, 3rd, 4th
|
|
388
|
+
case"qo":return n.ordinalNumber(r,{unit:"quarter"});// Q1, Q2, Q3, Q4
|
|
389
|
+
case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
390
|
+
case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});// 1st quarter, 2nd quarter, ...
|
|
391
|
+
default:return n.quarter(r,{width:"wide",context:"standalone"})}},// Month
|
|
392
|
+
M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return(0,c.default).M(e,t);// 1st, 2nd, ..., 12th
|
|
393
|
+
case"Mo":return n.ordinalNumber(r+1,{unit:"month"});// Jan, Feb, ..., Dec
|
|
394
|
+
case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});// J, F, ..., D
|
|
395
|
+
case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});// January, February, ..., December
|
|
396
|
+
default:return n.month(r,{width:"wide",context:"formatting"})}},// Stand-alone month
|
|
397
|
+
L:function(e,t,n){var r=e.getUTCMonth();switch(t){// 1, 2, ..., 12
|
|
398
|
+
case"L":return String(r+1);// 01, 02, ..., 12
|
|
399
|
+
case"LL":return(0,s.default)(r+1,2);// 1st, 2nd, ..., 12th
|
|
400
|
+
case"Lo":return n.ordinalNumber(r+1,{unit:"month"});// Jan, Feb, ..., Dec
|
|
401
|
+
case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});// J, F, ..., D
|
|
402
|
+
case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});// January, February, ..., December
|
|
403
|
+
default:return n.month(r,{width:"wide",context:"standalone"})}},// Local week of year
|
|
404
|
+
w:function(e,t,n,r){var o=(0,l.default)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):(0,s.default)(o,t.length)},// ISO week of year
|
|
405
|
+
I:function(e,t,n){var r=(0,o.default)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,s.default)(r,t.length)},// Day of the month
|
|
406
|
+
d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):(0,c.default).d(e,t)},// Day of year
|
|
407
|
+
D:function(e,t,n){var o=(0,r.default)(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):(0,s.default)(o,t.length)},// Day of week
|
|
408
|
+
E:function(e,t,n){var r=e.getUTCDay();switch(t){// Tue
|
|
409
|
+
case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});// T
|
|
410
|
+
case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});// Tu
|
|
411
|
+
case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});// Tuesday
|
|
412
|
+
default:return n.day(r,{width:"wide",context:"formatting"})}},// Local day of week
|
|
413
|
+
e:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
414
|
+
case"e":return String(a);// Padded numerical value
|
|
415
|
+
case"ee":return(0,s.default)(a,2);// 1st, 2nd, ..., 7th
|
|
416
|
+
case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});// T
|
|
417
|
+
case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});// Tu
|
|
418
|
+
case"eeeeee":return n.day(o,{width:"short",context:"formatting"});// Tuesday
|
|
419
|
+
default:return n.day(o,{width:"wide",context:"formatting"})}},// Stand-alone local day of week
|
|
420
|
+
c:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){// Numerical value (same as in `e`)
|
|
421
|
+
case"c":return String(a);// Padded numerical value
|
|
422
|
+
case"cc":return(0,s.default)(a,t.length);// 1st, 2nd, ..., 7th
|
|
423
|
+
case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});// T
|
|
424
|
+
case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});// Tu
|
|
425
|
+
case"cccccc":return n.day(o,{width:"short",context:"standalone"});// Tuesday
|
|
426
|
+
default:return n.day(o,{width:"wide",context:"standalone"})}},// ISO day of week
|
|
427
|
+
i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){// 2
|
|
428
|
+
case"i":return String(o);// 02
|
|
429
|
+
case"ii":return(0,s.default)(o,t.length);// 2nd
|
|
430
|
+
case"io":return n.ordinalNumber(o,{unit:"day"});// Tue
|
|
431
|
+
case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});// T
|
|
432
|
+
case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});// Tu
|
|
433
|
+
case"iiiiii":return n.day(r,{width:"short",context:"formatting"});// Tuesday
|
|
434
|
+
default:return n.day(r,{width:"wide",context:"formatting"})}},// AM or PM
|
|
435
|
+
a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},// AM, PM, midnight, noon
|
|
436
|
+
b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?f.noon:0===o?f.midnight:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},// in the morning, in the afternoon, in the evening, at night
|
|
437
|
+
B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?f.evening:o>=12?f.afternoon:o>=4?f.morning:f.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},// Hour [1-12]
|
|
438
|
+
h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return(0,c.default).h(e,t)},// Hour [0-23]
|
|
439
|
+
H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):(0,c.default).H(e,t)},// Hour [0-11]
|
|
440
|
+
K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,s.default)(r,t.length)},// Hour [1-24]
|
|
441
|
+
k:function(e,t,n){var r=e.getUTCHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):(0,s.default)(r,t.length)},// Minute
|
|
442
|
+
m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):(0,c.default).m(e,t)},// Second
|
|
443
|
+
s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):(0,c.default).s(e,t)},// Fraction of second
|
|
444
|
+
S:function(e,t){return(0,c.default).S(e,t)},// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
445
|
+
X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){// Hours and optional minutes
|
|
446
|
+
case"X":return p(o);// Hours, minutes and optional seconds without `:` delimiter
|
|
447
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
448
|
+
// so this token always has the same output as `XX`
|
|
449
|
+
case"XXXX":case"XX":// Hours and minutes without `:` delimiter
|
|
450
|
+
return h(o);// Hours, minutes and optional seconds with `:` delimiter
|
|
451
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
452
|
+
// so this token always has the same output as `XXX`
|
|
453
|
+
default:return h(o,":")}},// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
454
|
+
x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){// Hours and optional minutes
|
|
455
|
+
case"x":return p(o);// Hours, minutes and optional seconds without `:` delimiter
|
|
456
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
457
|
+
// so this token always has the same output as `xx`
|
|
458
|
+
case"xxxx":case"xx":// Hours and minutes without `:` delimiter
|
|
459
|
+
return h(o);// Hours, minutes and optional seconds with `:` delimiter
|
|
460
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
461
|
+
// so this token always has the same output as `xxx`
|
|
462
|
+
default:return h(o,":")}},// Timezone (GMT)
|
|
463
|
+
O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){// Short
|
|
464
|
+
case"O":case"OO":case"OOO":return"GMT"+d(o,":");// Long
|
|
465
|
+
default:return"GMT"+h(o,":")}},// Timezone (specific non-location)
|
|
466
|
+
z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){// Short
|
|
467
|
+
case"z":case"zz":case"zzz":return"GMT"+d(o,":");// Long
|
|
468
|
+
default:return"GMT"+h(o,":")}},// Seconds timestamp
|
|
469
|
+
t:function(e,t,n,r){var o=Math.floor((r._originalDate||e).getTime()/1e3);return(0,s.default)(o,t.length)},// Milliseconds timestamp
|
|
470
|
+
T:function(e,t,n,r){var o=(r._originalDate||e).getTime();return(0,s.default)(o,t.length)}}}),i("c7J6M",function(t,n){e(t.exports,"default",()=>i);var r=a("dPYX2"),o=a("9i6he");function i(e){(0,o.default)(1,arguments);var t=(0,r.default)(e),n=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((n-t.getTime())/864e5)+1}}),i("frJ4N",function(t,n){e(t.exports,"default",()=>u);var r=a("dPYX2"),o=a("gv4Xh"),i=a("d4eXu"),l=a("9i6he");function u(e){(0,l.default)(1,arguments);var t=(0,r.default)(e);// because the number of milliseconds in a week is not constant
|
|
471
|
+
// (e.g. it's different in the week of the daylight saving time clock shift)
|
|
472
|
+
return Math.round(((0,o.default)(t).getTime()-(0,i.default)(t).getTime())/6048e5)+1}}),i("gv4Xh",function(t,n){e(t.exports,"default",()=>i);var r=a("dPYX2"),o=a("9i6he");function i(e){(0,o.default)(1,arguments);var t=(0,r.default)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((n<1?7:0)+n-1)),t.setUTCHours(0,0,0,0),t}}),i("d4eXu",function(t,n){e(t.exports,"default",()=>l);var r=a("k7JDS"),o=a("gv4Xh"),i=a("9i6he");function l(e){(0,i.default)(1,arguments);var t=(0,r.default)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,o.default)(n)}}),i("k7JDS",function(t,n){e(t.exports,"default",()=>l);var r=a("dPYX2"),o=a("9i6he"),i=a("gv4Xh");function l(e){(0,o.default)(1,arguments);var t=(0,r.default)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var l=(0,i.default)(a),u=new Date(0);u.setUTCFullYear(n,0,4),u.setUTCHours(0,0,0,0);var s=(0,i.default)(u);return t.getTime()>=l.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}}),i("cN7jJ",function(t,n){e(t.exports,"default",()=>u);var r=a("dPYX2"),o=a("ac8Z6"),i=a("lf9Ss"),l=a("9i6he");function u(e,t){(0,l.default)(1,arguments);var n=(0,r.default)(e);// because the number of milliseconds in a week is not constant
|
|
473
|
+
// (e.g. it's different in the week of the daylight saving time clock shift)
|
|
474
|
+
return Math.round(((0,o.default)(n,t).getTime()-(0,i.default)(n,t).getTime())/6048e5)+1}}),i("ac8Z6",function(t,n){e(t.exports,"default",()=>l);var r=a("dPYX2"),o=a("9i6he"),i=a("aGHX8");function l(e,t){(0,o.default)(1,arguments);var n=t||{},a=n.locale,l=a&&a.options&&a.options.weekStartsOn,u=null==l?0:(0,i.default)(l),s=null==n.weekStartsOn?u:(0,i.default)(n.weekStartsOn);if(!(s>=0&&s<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,r.default)(e),f=c.getUTCDay();return c.setUTCDate(c.getUTCDate()-((f<s?7:0)+f-s)),c.setUTCHours(0,0,0,0),c}}),i("lf9Ss",function(t,n){e(t.exports,"default",()=>u);var r=a("3GiyP"),o=a("9i6he"),i=a("ac8Z6"),l=a("aGHX8");function u(e,t){(0,o.default)(1,arguments);var n=t||{},a=n.locale,u=a&&a.options&&a.options.firstWeekContainsDate,s=null==u?1:(0,l.default)(u),c=null==n.firstWeekContainsDate?s:(0,l.default)(n.firstWeekContainsDate),f=(0,r.default)(e,t),d=new Date(0);return d.setUTCFullYear(f,0,c),d.setUTCHours(0,0,0,0),(0,i.default)(d,t)}}),i("3GiyP",function(t,n){e(t.exports,"default",()=>u);var r=a("dPYX2"),o=a("9i6he"),i=a("ac8Z6"),l=a("aGHX8");function u(e,t){(0,o.default)(1,arguments);var n=(0,r.default)(e),a=n.getUTCFullYear(),u=t||{},s=u.locale,c=s&&s.options&&s.options.firstWeekContainsDate,f=null==c?1:(0,l.default)(c),d=null==u.firstWeekContainsDate?f:(0,l.default)(u.firstWeekContainsDate);if(!(d>=1&&d<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(a+1,0,d),p.setUTCHours(0,0,0,0);var h=(0,i.default)(p,t),m=new Date(0);m.setUTCFullYear(a,0,d),m.setUTCHours(0,0,0,0);var y=(0,i.default)(m,t);return n.getTime()>=h.getTime()?a+1:n.getTime()>=y.getTime()?a:a-1}}),i("1N4Pl",function(t,n){e(t.exports,"default",()=>r);function r(e,t){for(var n=Math.abs(e).toString();n.length<t;)n="0"+n;return(e<0?"-":"")+n}}),i("kIyIj",function(t,n){e(t.exports,"default",()=>o);var r=a("1N4Pl"),o={// Year
|
|
475
|
+
y:function(e,t){// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
|
|
476
|
+
// | Year | y | yy | yyy | yyyy | yyyyy |
|
|
477
|
+
// |----------|-------|----|-------|-------|-------|
|
|
478
|
+
// | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
|
|
479
|
+
// | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
|
|
480
|
+
// | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
|
|
481
|
+
// | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
|
|
482
|
+
// | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
|
|
483
|
+
var n=e.getUTCFullYear(),o=n>0?n:1-n;// Returns 1 for 1 BC (which is year 0 in JavaScript)
|
|
484
|
+
return(0,r.default)("yy"===t?o%100:o,t.length)},// Month
|
|
485
|
+
M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):(0,r.default)(n+1,2)},// Day of the month
|
|
486
|
+
d:function(e,t){return(0,r.default)(e.getUTCDate(),t.length)},// AM or PM
|
|
487
|
+
a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},// Hour [1-12]
|
|
488
|
+
h:function(e,t){return(0,r.default)(e.getUTCHours()%12||12,t.length)},// Hour [0-23]
|
|
489
|
+
H:function(e,t){return(0,r.default)(e.getUTCHours(),t.length)},// Minute
|
|
490
|
+
m:function(e,t){return(0,r.default)(e.getUTCMinutes(),t.length)},// Second
|
|
491
|
+
s:function(e,t){return(0,r.default)(e.getUTCSeconds(),t.length)},// Fraction of second
|
|
492
|
+
S:function(e,t){var n=t.length,o=e.getUTCMilliseconds();return(0,r.default)(Math.floor(o*Math.pow(10,n-3)),t.length)}}}),i("3hV62",function(t,n){function r(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function o(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}e(t.exports,"default",()=>a);var a={p:o,P:function(e,t){var n,a=e.match(/(P+)(p+)?/)||[],i=a[1],l=a[2];if(!l)return r(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",r(i,t)).replace("{{time}}",o(l,t))}}}),i("fsyRn",function(t,n){e(t.exports,"default",()=>r);/**
|
|
493
|
+
* Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
|
|
494
|
+
* They usually appear for dates that denote time before the timezones were introduced
|
|
495
|
+
* (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
|
|
496
|
+
* and GMT+01:00:00 after that date)
|
|
497
|
+
*
|
|
498
|
+
* Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
|
|
499
|
+
* which would lead to incorrect calculations.
|
|
500
|
+
*
|
|
501
|
+
* This function returns the timezone offset in milliseconds that takes seconds in account.
|
|
502
|
+
*/function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}}),i("gf9z4",function(t,n){e(t.exports,"isProtectedDayOfYearToken",()=>a),e(t.exports,"isProtectedWeekYearToken",()=>i),e(t.exports,"throwProtectedError",()=>l);var r=["D","DD"],o=["YY","YYYY"];function a(e){return -1!==r.indexOf(e)}function i(e){return -1!==o.indexOf(e)}function l(e,t,n){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}}),i("56yyH",function(t,n){e(t.exports,"default",()=>i);var r=a("7TY16"),o=a("9i6he");function i(e,t){(0,o.default)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return n.getTime()===a.getTime()}}),i("7TY16",function(t,n){e(t.exports,"default",()=>i);var r=a("dPYX2"),o=a("9i6he");function i(e){(0,o.default)(1,arguments);var t=(0,r.default)(e);return t.setHours(0,0,0,0),t}}),i("NQ3dA",function(t,n){e(t.exports,"default",()=>i);var r=a("dPYX2"),o=a("9i6he");function i(e,t){(0,o.default)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return n.getFullYear()===a.getFullYear()&&n.getMonth()===a.getMonth()}}),i("3E9Yt",function(t,n){var r,o,a,i,l,u,s,c;e(t.exports,"eventButton",()=>r,e=>r=e),e(t.exports,"eventButtons",()=>o,e=>o=e),e(t.exports,"eventCard",()=>a,e=>a=e),e(t.exports,"eventCardBody",()=>i,e=>i=e),e(t.exports,"eventCardDate",()=>l,e=>l=e),e(t.exports,"eventCardDescription",()=>u,e=>u=e),e(t.exports,"eventCardTitle",()=>s,e=>s=e),e(t.exports,"image",()=>c,e=>c=e),r="FMgBQa_eventButton",o="FMgBQa_eventButtons",a="FMgBQa_eventCard",i="FMgBQa_eventCardBody",l="FMgBQa_eventCardDate",u="FMgBQa_eventCardDescription",s="FMgBQa_eventCardTitle",c="FMgBQa_image"}),i("iCpfk",function(t,n){e(t.exports,"EventContainer",()=>s);var r=a("aPJhp"),o=a("85Hg2"),i=a("hjDDZ"),l=a("hVxmv"),u=a("8Scab");let s=({events:e,loading:t,title:n="What's going on at Camp?",showCalendar:a=!0})=>/*#__PURE__*/(0,r.jsxs)("div",{className:u.campEventsApp,children:[/*#__PURE__*/(0,r.jsxs)("div",{className:u.eventsHeader,children:[/*#__PURE__*/(0,r.jsx)("h1",{children:n}),a&&/*#__PURE__*/(0,r.jsxs)("a",{className:u.calendarButton,href:"/calendar",children:["Check out our calendar",/*#__PURE__*/(0,r.jsx)(i.CalendarIcon,{})]})]}),/*#__PURE__*/(0,r.jsx)("div",{className:u.eventsContainer,children:e.map((e,n)=>/*#__PURE__*/(0,o.createElement)(l.EventCard,{...e,key:n,loading:t}))})]})}),i("hjDDZ",function(t,n){e(t.exports,"CalendarIcon",()=>o);var r=a("aPJhp");let o=()=>/*#__PURE__*/(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-calendar",children:[/*#__PURE__*/(0,r.jsx)("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),/*#__PURE__*/(0,r.jsx)("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),/*#__PURE__*/(0,r.jsx)("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),/*#__PURE__*/(0,r.jsx)("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]})}),i("8Scab",function(t,n){var r,o,a,i;e(t.exports,"calendarButton",()=>r,e=>r=e),e(t.exports,"campEventsApp",()=>o,e=>o=e),e(t.exports,"eventsContainer",()=>a,e=>a=e),e(t.exports,"eventsHeader",()=>i,e=>i=e),r="EI9BMW_calendarButton",o="EI9BMW_campEventsApp",a="EI9BMW_eventsContainer",i="EI9BMW_eventsHeader"}),i("2zjYi",function(e,t){a("hxAaX"),a("5pL6k"),a("2y4NX")}),i("hxAaX",function(e,t){a("aPJhp"),a("5pL6k"),a("DHMQv")}),i("5pL6k",function(t,n){e(t.exports,"CategoryLink",()=>i);var r=a("aPJhp"),o=a("1wj1V");let i=({title:e,subtitle:t,url:n,imageUrl:a})=>/*#__PURE__*/(0,r.jsxs)("a",{href:n,className:o.contentButton,children:[/*#__PURE__*/(0,r.jsx)("img",{src:a,alt:e,className:o["category-image"]}),/*#__PURE__*/(0,r.jsxs)("div",{className:o.overlay,children:[/*#__PURE__*/(0,r.jsx)("div",{className:o.buttonTitle,children:e}),/*#__PURE__*/(0,r.jsx)("div",{className:o.buttonSubtitle,children:t})]})]})}),i("1wj1V",function(t,n){var r,o,a,i,l;e(t.exports,"buttonSubtitle",()=>r,e=>r=e),e(t.exports,"buttonTitle",()=>o,e=>o=e),e(t.exports,"category-image",()=>a,e=>a=e),e(t.exports,"contentButton",()=>i,e=>i=e),e(t.exports,"overlay",()=>l,e=>l=e),r="_9_elmW_buttonSubtitle",o="_9_elmW_buttonTitle",a="_9_elmW_category-image",i="_9_elmW_contentButton",l="_9_elmW_overlay"}),i("DHMQv",function(t,n){var r;e(t.exports,"categoryContainer",()=>r,e=>r=e),r="NPifxq_categoryContainer"}),i("2y4NX",function(e,t){a("es0kx"),a("3mBFY")}),i("fsxwa",function(e,t){a("5uPFX"),a("2h0Wa"),a("lEb2U"),a("kkv2R"),a("6ASPB")}),i("5uPFX",function(e,t){a("7gznQ")}),i("7gznQ",function(e,t){a("aPJhp"),a("2h0Wa"),a("iNk6Y"),a("kkv2R"),a("dscR0"),a("gZi7M")}),i("2h0Wa",function(t,n){e(t.exports,"RateDescription",()=>a("iNk6Y").RateDescription),a("iNk6Y")}),i("iNk6Y",function(t,n){e(t.exports,"RateDescription",()=>i);var r=a("aPJhp"),o=a("8rpim");let i=({rateDescription:e})=>{let{title:t,text:n}=e||{};return/*#__PURE__*/(0,r.jsxs)("div",{className:o.description,children:[t&&/*#__PURE__*/(0,r.jsx)("h4",{children:t}),n&&/*#__PURE__*/(0,r.jsx)("span",{children:n})]})}}),i("8rpim",function(t,n){var r;e(t.exports,"description",()=>r,e=>r=e),r="TzhWqa_description"}),i("kkv2R",function(t,n){e(t.exports,"RateTable",()=>a("dscR0").RateTable),a("dscR0")}),i("dscR0",function(t,n){e(t.exports,"RateTable",()=>u);var r=a("aPJhp");a("lEb2U");var o=a("kgIgi"),i=a("6ASPB"),l=a("8kCI5");let u=e=>{let{rateTable:t}=e,n=t.some(e=>"rateGroup"===e._type),a=t.some(e=>"rate"===e._type&&e.detail),u=t.map(e=>"rate"===e._type?(a&&(e={detail:e.detail??" ",...e}),/*#__PURE__*/(0,r.jsx)(i.RateRow,{name:e.name,detail:e.detail,value:e.cost,className:n?l["group-title"]:""},e.name)):"rateGroup"===e._type?/*#__PURE__*/(0,r.jsx)(o.RateGroup,{rateGroup:e},e.name):void 0);return/*#__PURE__*/(0,r.jsx)("table",{className:l["rate-table"],children:/*#__PURE__*/(0,r.jsx)("tbody",{children:u})})}}),i("lEb2U",function(t,n){e(t.exports,"RateGroup",()=>a("kgIgi").RateGroup),a("kgIgi")}),i("kgIgi",function(t,n){e(t.exports,"RateGroup",()=>l);var r=a("aPJhp"),o=a("6ASPB"),i=a("0zdLu");let l=({rateGroup:e})=>/*#__PURE__*/(0,r.jsxs)(r.Fragment,{children:[/*#__PURE__*/(0,r.jsx)(o.RateRow,{name:e.name,className:i["group-title"]}),e.childRates.map(e=>/*#__PURE__*/(0,r.jsx)(o.RateRow,{name:e.name,value:e.cost,className:i["rate-group-child"]},e.name))]})}),i("6ASPB",function(t,n){e(t.exports,"RateRow",()=>o);var r=a("aPJhp");let o=({name:e,detail:t,value:n,className:o})=>/*#__PURE__*/(0,r.jsxs)("tr",{className:o,children:[/*#__PURE__*/(0,r.jsx)("td",{children:e}),t&&/*#__PURE__*/(0,r.jsx)("td",{children:t}),/*#__PURE__*/(0,r.jsx)("td",{children:n})]})}),i("0zdLu",function(t,n){var r,o;e(t.exports,"group-title",()=>r,e=>r=e),e(t.exports,"rate-group-child",()=>o,e=>o=e),r="WfELIa_group-title",o="WfELIa_rate-group-child"}),i("8kCI5",function(t,n){var r,o;e(t.exports,"group-title",()=>r,e=>r=e),e(t.exports,"rate-table",()=>o,e=>o=e),r="t-UrjG_group-title",o="t-UrjG_rate-table"}),i("gZi7M",function(t,n){var r,o;e(t.exports,"rate-card",()=>r,e=>r=e),e(t.exports,"rate-card-heading",()=>o,e=>o=e),r="_35BnAa_rate-card",o="_35BnAa_rate-card-heading"}),i("4kvsU",function(t,n){var r;e(t.exports,"appContainer",()=>r,e=>r=e),r="WtdYHa_appContainer"});var l=a("aPJhp"),u=a("85Hg2"),s=a("6xKaq"),c=a("9lBIB");let f=document.getElementById("camp-events"),d=(0,s.createRoot)(f);d.render(/*#__PURE__*/(0,l.jsx)(/*@__PURE__*/t(u).StrictMode,{children:/*#__PURE__*/(0,l.jsx)(c.EventApiContainer,{type:"events"})}))})();
|