mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
1 line
82 KiB
JavaScript
1 line
82 KiB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("tile",t):(e=e||self).tile=t()}(this,function(){"use strict";var e=("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}).performance||{};e.now||e.mozNow||e.msNow||e.oNow||e.webkitNow,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function t(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function n(e,t){return e(t={exports:{}},t.exports),t.exports}var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var a=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var l in n=Object(arguments[u]))i.call(n,l)&&(o[l]=n[l]);if(r){a=r(n);for(var c=0;c<a.length;c++)s.call(n,a[c])&&(o[a[c]]=n[a[c]])}}return o};var o={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},u={};function l(e,t,n){this.props=e,this.context=t,this.refs=u,this.updater=n||o}function c(){}function d(e,t,n){this.props=e,this.context=t,this.refs=u,this.updater=n||o}l.prototype.isReactComponent={},l.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw function(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r]);return e.message="Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}(Error(85));this.updater.enqueueSetState(this,e,t,"setState")},l.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},c.prototype=l.prototype;var f=d.prototype=new c;f.constructor=d,a(f,l.prototype),f.isPureReactComponent=!0;var h=function(){},m="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",p={},y=Function.call.bind(Object.prototype.hasOwnProperty);function _(e,t,n,r,i){for(var s in e)if(y(e,s)){var a;try{if("function"!=typeof e[s]){var o=Error((r||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.");throw o.name="Invariant Violation",o}a=e[s](t,s,r,n,null,m)}catch(e){a=e}if(!a||a instanceof Error||h((r||"React class")+": type specification of "+n+" `"+s+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in p)){p[a.message]=!0;var u=i?i():"";h("Failed "+n+" type: "+a.message+(null!=u?u:""))}}}h=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}},_.resetWarningCache=function(){p={}};var g=_,v=n(function(e){!function(){var t=a,n=g,r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,s=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,d=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,_=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,k=r?Symbol.for("react.scope"):60119,S="function"==typeof Symbol&&Symbol.iterator,b="@@iterator";function M(e){if(null===e||"object"!=typeof e)return null;var t=S&&e[S]||e[b];return"function"==typeof t?t:null}function D(e){return e.name="Invariant Violation",e}var O=function(e,t){if(void 0===t)throw new Error("`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,s="Warning: "+e.replace(/%s/g,function(){return n[i++]});"undefined"!=typeof console&&console.warn(s);try{throw new Error(s)}catch(e){}}).apply(void 0,[t].concat(r))}},Y=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(void 0===t)throw new Error("`warningWithoutStack(condition, format, ...args)` requires a warning message argument");if(r.length>8)throw new Error("warningWithoutStack() currently supports at most 8 arguments.");if(!e){if("undefined"!=typeof console){var s=r.map(function(e){return""+e});s.unshift("Warning: "+t),Function.prototype.apply.call(console.error,console,s)}try{var a=0,o="Warning: "+t.replace(/%s/g,function(){return r[a++]});throw new Error(o)}catch(e){}}},T={};function x(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",i=r+"."+t;T[i]||(Y(!1,"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),T[i]=!0)}var P={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){x(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){x(e,"replaceState")},enqueueSetState:function(e,t,n,r){x(e,"setState")}},C={};function R(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||P}Object.freeze(C),R.prototype.isReactComponent={},R.prototype.setState=function(e,t){!function(){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw D(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")},R.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var E={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},W=function(e,t){Object.defineProperty(R.prototype,e,{get:function(){O(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var j in E)E.hasOwnProperty(j)&&W(j,E[j]);function F(){}function U(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||P}F.prototype=R.prototype;var N=U.prototype=new F;N.constructor=U,t(N,R.prototype),N.isPureReactComponent=!0;var H={current:null},I={suspense:null},L={current:null},A=/^(.*)[\\\/]/,V=1;function G(e){if(null==e)return null;if("number"==typeof e.tag&&Y(!1,"Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case s:return"Portal";case l:return"Profiler";case u:return"StrictMode";case m:return"Suspense";case p:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case d:return"Context.Consumer";case c:return"Context.Provider";case h:return r=e,i=e.render,a="ForwardRef",f=i.displayName||i.name||"",r.displayName||(""!==f?a+"("+f+")":a);case y:return G(e.type);case _:var t=(n=e)._status===V?n._result:null;if(t)return G(t)}var n,r,i,a,f;return null}var $={},z=null;function q(e){z=e}$.getCurrentStack=null,$.getStackAddendum=function(){var e="";if(z){var t=G(z.type),n=z._owner;e+=function(e,t,n){var r="";if(t){var i=t.fileName,s=i.replace(A,"");if(/^index\./.test(s)){var a=i.match(A);if(a){var o=a[1];o&&(s=o.replace(A,"")+"/"+s)}}r=" (at "+s+":"+t.lineNumber+")"}else n&&(r=" (created by "+n+")");return"\n in "+(e||"Unknown")+r}(t,z._source,n&&G(n.type))}var r=$.getCurrentStack;return r&&(e+=r()||""),e};var Z={ReactCurrentDispatcher:H,ReactCurrentBatchConfig:I,ReactCurrentOwner:L,IsSomeRendererActing:{current:!1},assign:t};t(Z,{ReactDebugCurrentFrame:$,ReactComponentTreeHook:{}});var B,J,Q=function(e,t){if(!e){for(var n=Z.ReactDebugCurrentFrame.getStackAddendum(),r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];Y.apply(void 0,[!1,t+"%s"].concat(i,[n]))}},X=Object.prototype.hasOwnProperty,K={key:!0,ref:!0,__self:!0,__source:!0};function ee(e){if(X.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function te(e){if(X.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}var ne=function(e,t,n,r,s,a,o){var u={$$typeof:i,type:e,key:t,ref:n,props:o,_owner:a,_store:{}};return Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function re(e,t,n){var r,i={},s=null,a=null,o=null,u=null;if(null!=t)for(r in ee(t)&&(a=t.ref),te(t)&&(s=""+t.key),o=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)X.call(t,r)&&!K.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(l>1){for(var c=Array(l),d=0;d<l;d++)c[d]=arguments[d+2];Object.freeze&&Object.freeze(c),i.children=c}if(e&&e.defaultProps){var f=e.defaultProps;for(r in f)void 0===i[r]&&(i[r]=f[r])}if(s||a){var h="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,t){var n=function(){B||(B=!0,Y(!1,"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(i,h),a&&function(e,t){var n=function(){J||(J=!0,Y(!1,"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(i,h)}return ne(e,s,a,o,u,L.current,i)}function ie(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var se=".",ae=":";var oe=!1,ue=/\/+/g;function le(e){return(""+e).replace(ue,"$&/")}var ce,de=10,fe=[];function he(e,t,n,r){if(fe.length){var i=fe.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function me(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,fe.length<de&&fe.push(e)}function pe(e,t,n){return null==e?0:function e(t,n,r,a){var o=typeof t;"undefined"!==o&&"boolean"!==o||(t=null);var u,l=!1;if(null===t)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case i:case s:l=!0}}if(l)return r(a,t,""===n?se+ye(t,0):n),1;var c=0,d=""===n?se:n+ae;if(Array.isArray(t))for(var f=0;f<t.length;f++)c+=e(u=t[f],d+ye(u,f),r,a);else{var h=M(t);if("function"==typeof h){h===t.entries&&(oe||Q(!1,"Using Maps as children is unsupported and will likely yield unexpected results. Convert it to a sequence/iterable of keyed ReactElements instead."),oe=!0);for(var m,p=h.call(t),y=0;!(m=p.next()).done;)c+=e(u=m.value,d+ye(u,y++),r,a)}else if("object"===o){var _;_=" If you meant to render a collection of children, use an array instead."+$.getStackAddendum();var g=""+t;!function(){throw D(Error("Objects are not valid as a React child (found: "+("[object Object]"===g?"object with keys {"+Object.keys(t).join(", ")+"}":g)+")."+_))}()}}return c}(e,"",t,n)}function ye(e,t){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);var n,r}function _e(e,t,n){var r=e.func,i=e.context;r.call(i,t,e.count++)}function ge(e,t,n){var r,i,s=e.result,a=e.keyPrefix,o=e.func,u=e.context,l=o.call(u,t,e.count++);Array.isArray(l)?ve(l,s,n,function(e){return e}):null!=l&&(ie(l)&&(r=l,i=a+(!l.key||t&&t.key===l.key?"":le(l.key)+"/")+n,l=ne(r.type,i,r.ref,r._self,r._source,r._owner,r.props)),s.push(l))}function ve(e,t,n,r,i){var s="";null!=n&&(s=le(n)+"/");var a=he(t,s,r,i);pe(e,ge,a),me(a)}function we(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===l||e===u||e===m||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===_||e.$$typeof===y||e.$$typeof===c||e.$$typeof===d||e.$$typeof===h||e.$$typeof===v||e.$$typeof===w||e.$$typeof===k)}function ke(){var e=H.current;return function(){if(null===e)throw D(Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem."))}(),e}function Se(){if(L.current){var e=G(L.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ce=!1;var be={};function Me(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=Se();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!be[n]){be[n]=!0;var r="";e&&e._owner&&e._owner!==L.current&&(r=" It was passed a child from "+G(e._owner.type)+"."),q(e),Q(!1,'Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',n,r),q(null)}}}function De(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];ie(r)&&Me(r,t)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var i=M(e);if("function"==typeof i&&i!==e.entries)for(var s,a=i.call(e);!(s=a.next()).done;)ie(s.value)&&Me(s.value,t)}}function Oe(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,i=G(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==h&&t.$$typeof!==y)return;r=t.propTypes}r?(q(e),n(r,e.props,"prop",i,$.getStackAddendum),q(null)):void 0===t.PropTypes||ce||(ce=!0,Y(!1,"Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")),"function"==typeof t.getDefaultProps&&(t.getDefaultProps.isReactClassApproved||Y(!1,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."))}}function Ye(e,t,n){var r,s,a=we(e);if(!a){var u="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var l,c=null!=(r=t)&&void 0!==(s=r.__source)?"\n\nCheck your code at "+s.fileName.replace(/^.*[\\\/]/,"")+":"+s.lineNumber+".":"";u+=c||Se(),null===e?l="null":Array.isArray(e)?l="array":void 0!==e&&e.$$typeof===i?(l="<"+(G(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,Q(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,u)}var d=re.apply(this,arguments);if(null==d)return d;if(a)for(var f=2;f<arguments.length;f++)De(arguments[f],e);return e===o?function(e){q(e);for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){Q(!1,"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r);break}}null!==e.ref&&Q(!1,"Invalid attribute `ref` supplied to `React.Fragment`."),q(null)}(d):Oe(d),d}try{var Te=Object.freeze({}),xe=new Map([[Te,null]]),Pe=new Set([Te]);xe.set(0,0),Pe.add(0)}catch(e){}var Ce={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return ve(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;var r=he(null,null,t,n);pe(e,_e,r),me(r)},count:function(e){return pe(e,function(){return null},null)},toArray:function(e){var t=[];return ve(e,t,null,function(e){return e}),t},only:function(e){return function(){if(!ie(e))throw D(Error("React.Children.only expected to receive a single React element child."))}(),e}},createRef:function(){var e={current:null};return Object.seal(e),e},Component:R,PureComponent:U,createContext:function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&Y(!1,"createContext: Expected the optional second argument to be a function. Instead received: %s",t);var n={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null};n.Provider={$$typeof:c,_context:n};var r=!1,i=!1,s={$$typeof:d,_context:n,_calculateChangedBits:n._calculateChangedBits};return Object.defineProperties(s,{Provider:{get:function(){return i||(i=!0,Q(!1,"Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),n.Provider},set:function(e){n.Provider=e}},_currentValue:{get:function(){return n._currentValue},set:function(e){n._currentValue=e}},_currentValue2:{get:function(){return n._currentValue2},set:function(e){n._currentValue2=e}},_threadCount:{get:function(){return n._threadCount},set:function(e){n._threadCount=e}},Consumer:{get:function(){return r||(r=!0,Q(!1,"Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),n.Consumer}}}),n.Consumer=s,n._currentRenderer=null,n._currentRenderer2=null,n},forwardRef:function(e){return null!=e&&e.$$typeof===y?Y(!1,"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?Y(!1,"forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&Y(!1,"forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null!=e.defaultProps||null!=e.propTypes)&&Y(!1,"forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:h,render:e}},lazy:function(e){var t,n,r={$$typeof:_,_ctor:e,_status:-1,_result:null};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){Q(!1,"React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){Q(!1,"React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},memo:function(e,t){return we(e)||Y(!1,"memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:y,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return ke().useCallback(e,t)},useContext:function(e,t){var n=ke();if(void 0!==t&&Q(!1,"useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==e._context){var r=e._context;r.Consumer===e?Q(!1,"Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&Q(!1,"Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return n.useContext(e,t)},useEffect:function(e,t){return ke().useEffect(e,t)},useImperativeHandle:function(e,t,n){return ke().useImperativeHandle(e,t,n)},useDebugValue:function(e,t){return ke().useDebugValue(e,t)},useLayoutEffect:function(e,t){return ke().useLayoutEffect(e,t)},useMemo:function(e,t){return ke().useMemo(e,t)},useReducer:function(e,t,n){return ke().useReducer(e,t,n)},useRef:function(e){return ke().useRef(e)},useState:function(e){return ke().useState(e)},Fragment:o,Profiler:l,StrictMode:u,Suspense:m,unstable_SuspenseList:p,createElement:Ye,cloneElement:function(e,n,r){for(var i=function(e,n,r){var i;!function(){if(null==e)throw D(Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+"."))}();var s,a=t({},e.props),o=e.key,u=e.ref,l=e._self,c=e._source,d=e._owner;if(null!=n)for(i in ee(n)&&(u=n.ref,d=L.current),te(n)&&(o=""+n.key),e.type&&e.type.defaultProps&&(s=e.type.defaultProps),n)X.call(n,i)&&!K.hasOwnProperty(i)&&(void 0===n[i]&&void 0!==s?a[i]=s[i]:a[i]=n[i]);var f=arguments.length-2;if(1===f)a.children=r;else if(f>1){for(var h=Array(f),m=0;m<f;m++)h[m]=arguments[m+2];a.children=h}return ne(e.type,o,u,l,c,d,a)}.apply(this,arguments),s=2;s<arguments.length;s++)De(arguments[s],i.type);return Oe(i),i},createFactory:function(e){var t=Ye.bind(null,e);return t.type=e,Object.defineProperty(t,"type",{enumerable:!1,get:function(){return O(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},isValidElement:ie,version:"16.10.1",unstable_withSuspenseConfig:function(e,t){var n=I.suspense;I.suspense=void 0===t?null:t;try{e()}finally{I.suspense=n}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Z},Re=Object.freeze({default:Ce}),Ee=Re&&Ce||Re,We=Ee.default||Ee;e.exports=We}()}),w=n(function(e){e.exports=v}),k=w.Component,S=(n(function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var s=typeof i;if("string"===s||"number"===s)e.push(i);else if(Array.isArray(i)&&i.length){var a=n.apply(null,i);a&&e.push(a)}else if("object"===s)for(var o in i)t.call(i,o)&&i[o]&&e.push(o)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}),n(function(e,n){e.exports=function(){var n,r;function i(){return n.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function f(e,t){for(var n in t)d(t,n)&&(e[n]=t[n]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return Pt(e,t,n,r,!0).utc()}function m(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function p(e){if(null==e._isValid){var t=m(e),n=r.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function y(e){var t=h(NaN);return null!=e?f(m(t),e):m(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var _=i.momentProperties=[];function g(e,t){var n,r,i;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=m(t)),o(t._locale)||(e._locale=t._locale),_.length>0)for(n=0;n<_.length;n++)r=_[n],o(i=t[r])||(e[r]=i);return e}var v=!1;function w(e){g(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,i.updateOffset(this),v=!1)}function k(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function S(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function b(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=S(t)),n}function M(e,t,n){var r,i=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&b(e[r])!==b(t[r]))&&a++;return a+s}function D(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function O(e,t){var n=!0;return f(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){for(var r,s=[],a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){for(var o in r+="\n["+a+"] ",arguments[0])r+=o+": "+arguments[0][o]+", ";r=r.slice(0,-2)}else r=arguments[a];s.push(r)}D(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var Y,T={};function x(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),T[e]||(D(t),T[e]=!0)}function P(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function C(e,t){var n,r=f({},e);for(n in t)d(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)d(e,n)&&!d(t,n)&&a(e[n])&&(r[n]=f({},r[n]));return r}function R(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,Y=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)d(e,t)&&n.push(t);return n};var E={};function W(e,t){var n=e.toLowerCase();E[n]=E[n+"s"]=E[t]=e}function j(e){return"string"==typeof e?E[e]||E[e.toLowerCase()]:void 0}function F(e){var t,n,r={};for(n in e)d(e,n)&&(t=j(n))&&(r[t]=e[n]);return r}var U={};function N(e,t){U[e]=t}function H(e,t,n){var r=""+Math.abs(e),i=t-r.length,s=e>=0;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var I=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,A={},V={};function G(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(V[e]=i),t&&(V[t[0]]=function(){return H(i.apply(this,arguments),t[1],t[2])}),n&&(V[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function $(e,t){return e.isValid()?(t=z(t,e.localeData()),A[t]=A[t]||function(e){var t,n,r,i=e.match(I);for(t=0,n=i.length;t<n;t++)V[i[t]]?i[t]=V[i[t]]:i[t]=(r=i[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,s="";for(r=0;r<n;r++)s+=P(i[r])?i[r].call(t,e):i[r];return s}}(t),A[t](e)):e.localeData().invalidDate()}function z(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(L.lastIndex=0;n>=0&&L.test(e);)e=e.replace(L,r),L.lastIndex=0,n-=1;return e}var q=/\d/,Z=/\d\d/,B=/\d{3}/,J=/\d{4}/,Q=/[+-]?\d{6}/,X=/\d\d?/,K=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,ie=/\d+/,se=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,oe=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,le={};function ce(e,t,n){le[e]=P(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return d(le,e)?le[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var he={};function me(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=b(e)}),n=0;n<e.length;n++)he[e[n]]=r}function pe(e,t){me(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function ye(e,t,n){null!=t&&d(he,e)&&he[e](t,n._a,n,e)}var _e=0,ge=1,ve=2,we=3,ke=4,Se=5,be=6,Me=7,De=8;function Oe(e){return Ye(e)?366:365}function Ye(e){return e%4==0&&e%100!=0||e%400==0}G("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),G(0,["YY",2],0,function(){return this.year()%100}),G(0,["YYYY",4],0,"year"),G(0,["YYYYY",5],0,"year"),G(0,["YYYYYY",6,!0],0,"year"),W("year","y"),N("year",1),ce("Y",se),ce("YY",X,Z),ce("YYYY",ne,J),ce("YYYYY",re,Q),ce("YYYYYY",re,Q),me(["YYYYY","YYYYYY"],_e),me("YYYY",function(e,t){t[_e]=2===e.length?i.parseTwoDigitYear(e):b(e)}),me("YY",function(e,t){t[_e]=i.parseTwoDigitYear(e)}),me("Y",function(e,t){t[_e]=parseInt(e,10)}),i.parseTwoDigitYear=function(e){return b(e)+(b(e)>68?1900:2e3)};var Te,xe=Pe("FullYear",!0);function Pe(e,t){return function(n){return null!=n?(Re(this,e,n),i.updateOffset(this,t),this):Ce(this,e)}}function Ce(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Re(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Ye(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ee(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ee(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Ye(e)?29:28:31-r%7%2}Te=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},G("M",["MM",2],"Mo",function(){return this.month()+1}),G("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),G("MMMM",0,0,function(e){return this.localeData().months(this,e)}),W("month","M"),N("month",8),ce("M",X),ce("MM",X,Z),ce("MMM",function(e,t){return t.monthsShortRegex(e)}),ce("MMMM",function(e,t){return t.monthsRegex(e)}),me(["M","MM"],function(e,t){t[ge]=b(e)-1}),me(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[ge]=i:m(n).invalidMonth=e});var We=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,je="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Fe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Ue(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=b(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ee(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ne(e){return null!=e?(Ue(this,e),i.updateOffset(this,!0),this):Ce(this,"Month")}var He=ue,Ie=ue;function Le(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],s=[];for(t=0;t<12;t++)n=h([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),s.push(this.months(n,"")),s.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),s.sort(e),t=0;t<12;t++)r[t]=fe(r[t]),i[t]=fe(i[t]);for(t=0;t<24;t++)s[t]=fe(s[t]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ae(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Ve(e,t,n){var r=7+t-n,i=(7+Ae(e,0,r).getUTCDay()-t)%7;return-i+r-1}function Ge(e,t,n,r,i){var s,a,o=(7+n-r)%7,u=Ve(e,r,i),l=1+7*(t-1)+o+u;return l<=0?a=Oe(s=e-1)+l:l>Oe(e)?(s=e+1,a=l-Oe(e)):(s=e,a=l),{year:s,dayOfYear:a}}function $e(e,t,n){var r,i,s=Ve(e.year(),t,n),a=Math.floor((e.dayOfYear()-s-1)/7)+1;return a<1?(i=e.year()-1,r=a+ze(i,t,n)):a>ze(e.year(),t,n)?(r=a-ze(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function ze(e,t,n){var r=Ve(e,t,n),i=Ve(e+1,t,n);return(Oe(e)-r+i)/7}function qe(e,t){return e.slice(t,7).concat(e.slice(0,t))}G("w",["ww",2],"wo","week"),G("W",["WW",2],"Wo","isoWeek"),W("week","w"),W("isoWeek","W"),N("week",5),N("isoWeek",5),ce("w",X),ce("ww",X,Z),ce("W",X),ce("WW",X,Z),pe(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=b(e)}),G("d",0,"do","day"),G("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),G("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),G("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),G("e",0,0,"weekday"),G("E",0,0,"isoWeekday"),W("day","d"),W("weekday","e"),W("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),ce("d",X),ce("e",X),ce("E",X),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),pe(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:m(n).invalidWeekday=e}),pe(["d","e","E"],function(e,t,n,r){t[r]=b(e)});var Ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Be="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Je="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Qe=ue,Xe=ue,Ke=ue;function et(){function e(e,t){return t.length-e.length}var t,n,r,i,s,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),s=this.weekdays(n,""),a.push(r),o.push(i),u.push(s),l.push(r),l.push(i),l.push(s);for(a.sort(e),o.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)o[t]=fe(o[t]),u[t]=fe(u[t]),l[t]=fe(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function tt(){return this.hours()%12||12}function nt(e,t){G(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function rt(e,t){return t._meridiemParse}G("H",["HH",2],0,"hour"),G("h",["hh",2],0,tt),G("k",["kk",2],0,function(){return this.hours()||24}),G("hmm",0,0,function(){return""+tt.apply(this)+H(this.minutes(),2)}),G("hmmss",0,0,function(){return""+tt.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)}),G("Hmm",0,0,function(){return""+this.hours()+H(this.minutes(),2)}),G("Hmmss",0,0,function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)}),nt("a",!0),nt("A",!1),W("hour","h"),N("hour",13),ce("a",rt),ce("A",rt),ce("H",X),ce("h",X),ce("k",X),ce("HH",X,Z),ce("hh",X,Z),ce("kk",X,Z),ce("hmm",K),ce("hmmss",ee),ce("Hmm",K),ce("Hmmss",ee),me(["H","HH"],we),me(["k","kk"],function(e,t,n){var r=b(e);t[we]=24===r?0:r}),me(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),me(["h","hh"],function(e,t,n){t[we]=b(e),m(n).bigHour=!0}),me("hmm",function(e,t,n){var r=e.length-2;t[we]=b(e.substr(0,r)),t[ke]=b(e.substr(r)),m(n).bigHour=!0}),me("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[we]=b(e.substr(0,r)),t[ke]=b(e.substr(r,2)),t[Se]=b(e.substr(i)),m(n).bigHour=!0}),me("Hmm",function(e,t,n){var r=e.length-2;t[we]=b(e.substr(0,r)),t[ke]=b(e.substr(r))}),me("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[we]=b(e.substr(0,r)),t[ke]=b(e.substr(r,2)),t[Se]=b(e.substr(i))});var it,st=Pe("Hours",!0),at={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:je,monthsShort:Fe,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:Je,weekdaysShort:Be,meridiemParse:/[ap]\.?m?\.?/i},ot={},ut={};function lt(e){return e?e.toLowerCase().replace("_","-"):e}function ct(n){var r=null;if(!ot[n]&&e&&e.exports)try{r=it._abbr;var i=t;i("./locale/"+n),dt(r)}catch(e){}return ot[n]}function dt(e,t){var n;return e&&((n=o(t)?ht(e):ft(e,t))?it=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),it._abbr}function ft(e,t){if(null!==t){var n,r=at;if(t.abbr=e,null!=ot[e])x("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ot[e]._config;else if(null!=t.parentLocale)if(null!=ot[t.parentLocale])r=ot[t.parentLocale]._config;else{if(null==(n=ct(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ot[e]=new R(C(r,t)),ut[e]&&ut[e].forEach(function(e){ft(e.name,e.config)}),dt(e),ot[e]}return delete ot[e],null}function ht(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return it;if(!s(e)){if(t=ct(e))return t;e=[e]}return function(e){for(var t,n,r,i,s=0;s<e.length;){for(i=lt(e[s]).split("-"),t=i.length,n=(n=lt(e[s+1]))?n.split("-"):null;t>0;){if(r=ct(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&M(i,n,!0)>=t-1)break;t--}s++}return it}(e)}function mt(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[ge]<0||n[ge]>11?ge:n[ve]<1||n[ve]>Ee(n[_e],n[ge])?ve:n[we]<0||n[we]>24||24===n[we]&&(0!==n[ke]||0!==n[Se]||0!==n[be])?we:n[ke]<0||n[ke]>59?ke:n[Se]<0||n[Se]>59?Se:n[be]<0||n[be]>999?be:-1,m(e)._overflowDayOfYear&&(t<_e||t>ve)&&(t=ve),m(e)._overflowWeeks&&-1===t&&(t=Me),m(e)._overflowWeekday&&-1===t&&(t=De),m(e).overflow=t),e}function pt(e,t,n){return null!=e?e:null!=t?t:n}function yt(e){var t,n,r,s,a,o=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[ve]&&null==e._a[ge]&&function(e){var t,n,r,i,s,a,o,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)s=1,a=4,n=pt(t.GG,e._a[_e],$e(Ct(),1,4).year),r=pt(t.W,1),((i=pt(t.E,1))<1||i>7)&&(u=!0);else{s=e._locale._week.dow,a=e._locale._week.doy;var l=$e(Ct(),s,a);n=pt(t.gg,e._a[_e],l.year),r=pt(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+s,(t.e<0||t.e>6)&&(u=!0)):i=s}r<1||r>ze(n,s,a)?m(e)._overflowWeeks=!0:null!=u?m(e)._overflowWeekday=!0:(o=Ge(n,r,i,s,a),e._a[_e]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(a=pt(e._a[_e],r[_e]),(e._dayOfYear>Oe(a)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Ae(a,0,e._dayOfYear),e._a[ge]=n.getUTCMonth(),e._a[ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[we]&&0===e._a[ke]&&0===e._a[Se]&&0===e._a[be]&&(e._nextDay=!0,e._a[we]=0),e._d=(e._useUTC?Ae:function(e,t,n,r,i,s,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,r,i,s,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,r,i,s,a),o}).apply(null,o),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[we]=24),e._w&&void 0!==e._w.d&&e._w.d!==s&&(m(e).weekdayMismatch=!0)}}var _t=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],kt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],St=/^\/?Date\((\-?\d+)/i;function bt(e){var t,n,r,i,s,a,o=e._i,u=_t.exec(o)||gt.exec(o);if(u){for(m(e).iso=!0,t=0,n=wt.length;t<n;t++)if(wt[t][1].exec(u[1])){i=wt[t][0],r=!1!==wt[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=kt.length;t<n;t++)if(kt[t][1].exec(u[3])){s=(u[2]||" ")+kt[t][0];break}if(null==s)return void(e._isValid=!1)}if(!r&&null!=s)return void(e._isValid=!1);if(u[4]){if(!vt.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(s||"")+(a||""),Tt(e)}else e._isValid=!1}var Mt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Dt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var Ot={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Yt(e){var t,n,r,i,s,a,o,u=Mt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){var l=(t=u[4],n=u[3],r=u[2],i=u[5],s=u[6],a=u[7],o=[Dt(t),Fe.indexOf(n),parseInt(r,10),parseInt(i,10),parseInt(s,10)],a&&o.push(parseInt(a,10)),o);if(!function(e,t,n){if(e){var r=Be.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return m(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}(u[1],l,e))return;e._a=l,e._tzm=function(e,t,n){if(e)return Ot[e];if(t)return 0;var r=parseInt(n,10),i=r%100,s=(r-i)/100;return 60*s+i}(u[8],u[9],u[10]),e._d=Ae.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function Tt(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],m(e).empty=!0;var t,n,r,s,a,o=""+e._i,u=o.length,l=0;for(r=z(e._f,e._locale).match(I)||[],t=0;t<r.length;t++)s=r[t],(n=(o.match(de(s,e))||[])[0])&&((a=o.substr(0,o.indexOf(n))).length>0&&m(e).unusedInput.push(a),o=o.slice(o.indexOf(n)+n.length),l+=n.length),V[s]?(n?m(e).empty=!1:m(e).unusedTokens.push(s),ye(s,n,e)):e._strict&&!n&&m(e).unusedTokens.push(s);m(e).charsLeftOver=u-l,o.length>0&&m(e).unusedInput.push(o),e._a[we]<=12&&!0===m(e).bigHour&&e._a[we]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[we]=(c=e._locale,d=e._a[we],null==(f=e._meridiem)?d:null!=c.meridiemHour?c.meridiemHour(d,f):null!=c.isPM?((h=c.isPM(f))&&d<12&&(d+=12),h||12!==d||(d=0),d):d),yt(e),mt(e)}else Yt(e);else bt(e);var c,d,f,h}function xt(e){var t=e._i,n=e._f;return e._locale=e._locale||ht(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),k(t)?new w(mt(t)):(l(t)?e._d=t:s(n)?function(e){var t,n,r,i,s;if(0===e._f.length)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)s=0,t=g({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Tt(t),p(t)&&(s+=m(t).charsLeftOver,s+=10*m(t).unusedTokens.length,m(t).score=s,(null==r||s<r)&&(r=s,n=t));f(e,n||t)}(e):n?Tt(e):function(e){var t=e._i;o(t)?e._d=new Date(i.now()):l(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=St.exec(e._i);null===t?(bt(e),!1===e._isValid&&(delete e._isValid,Yt(e),!1===e._isValid&&(delete e._isValid,i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):s(t)?(e._a=c(t.slice(0),function(e){return parseInt(e,10)}),yt(e)):a(t)?function(e){if(!e._d){var t=F(e._i);e._a=c([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),yt(e)}}(e):u(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),p(e)||(e._d=null),e))}function Pt(e,t,n,r,i){var o,u={};return!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||s(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=i,u._l=n,u._i=e,u._f=t,u._strict=r,(o=new w(mt(xt(u))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function Ct(e,t,n,r){return Pt(e,t,n,r,!1)}i.createFromInputFallback=O("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var Rt=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ct.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()}),Et=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ct.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()});function Wt(e,t){var n,r;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return Ct();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var jt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ft(e){var t=F(e),n=t.year||0,r=t.quarter||0,i=t.month||0,s=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,c=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Te.call(jt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<jt.length;++r)if(e[jt[r]]){if(n)return!1;parseFloat(e[jt[r]])!==b(e[jt[r]])&&(n=!0)}return!0}(t),this._milliseconds=+c+1e3*l+6e4*u+1e3*o*60*60,this._days=+a+7*s,this._months=+i+3*r+12*n,this._data={},this._locale=ht(),this._bubble()}function Ut(e){return e instanceof Ft}function Nt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ht(e,t){G(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+H(~~(e/60),2)+t+H(~~e%60,2)})}Ht("Z",":"),Ht("ZZ",""),ce("Z",oe),ce("ZZ",oe),me(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Lt(oe,e)});var It=/([\+\-]|\d\d)/gi;function Lt(e,t){var n=(t||"").match(e);if(null===n)return null;var r=n[n.length-1]||[],i=(r+"").match(It)||["-",0,0],s=60*i[1]+b(i[2]);return 0===s?0:"+"===i[0]?s:-s}function At(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(k(e)||l(e)?e.valueOf():Ct(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Ct(e).local()}function Vt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Gt(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var $t=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,zt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function qt(e,t){var n,r,i,s,a,o,l=e,c=null;return Ut(e)?l={ms:e._milliseconds,d:e._days,M:e._months}:u(e)?(l={},t?l[t]=e:l.milliseconds=e):(c=$t.exec(e))?(n="-"===c[1]?-1:1,l={y:0,d:b(c[ve])*n,h:b(c[we])*n,m:b(c[ke])*n,s:b(c[Se])*n,ms:b(Nt(1e3*c[be]))*n}):(c=zt.exec(e))?(n="-"===c[1]?-1:1,l={y:Zt(c[2],n),M:Zt(c[3],n),w:Zt(c[4],n),d:Zt(c[5],n),h:Zt(c[6],n),m:Zt(c[7],n),s:Zt(c[8],n)}):null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(s=Ct(l.from),a=Ct(l.to),i=s.isValid()&&a.isValid()?(a=At(a,s),s.isBefore(a)?o=Bt(s,a):((o=Bt(a,s)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(l={}).ms=i.milliseconds,l.M=i.months),r=new Ft(l),Ut(e)&&d(e,"_locale")&&(r._locale=e._locale),r}function Zt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Bt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Jt(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(x(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Qt(this,qt(n="string"==typeof n?+n:n,r),e),this}}function Qt(e,t,n,r){var s=t._milliseconds,a=Nt(t._days),o=Nt(t._months);e.isValid()&&(r=null==r||r,o&&Ue(e,Ce(e,"Month")+o*n),a&&Re(e,"Date",Ce(e,"Date")+a*n),s&&e._d.setTime(e._d.valueOf()+s*n),r&&i.updateOffset(e,a||o))}qt.fn=Ft.prototype,qt.invalid=function(){return qt(NaN)};var Xt=Jt(1,"add"),Kt=Jt(-1,"subtract");function en(e,t){var n,r,i=12*(t.year()-e.year())+(t.month()-e.month()),s=e.clone().add(i,"months");return t-s<0?(n=e.clone().add(i-1,"months"),r=(t-s)/(s-n)):(n=e.clone().add(i+1,"months"),r=(t-s)/(n-s)),-(i+r)||0}function tn(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ht(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var nn=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function rn(){return this._locale}var sn=1e3,an=60*sn,on=60*an,un=3506328*on;function ln(e,t){return(e%t+t)%t}function cn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-un:new Date(e,t,n).valueOf()}function dn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-un:Date.UTC(e,t,n)}function fn(e,t){G(0,[e,e.length],0,t)}function hn(e,t,n,r,i){var s;return null==e?$e(this,r,i).year:(s=ze(e,r,i),t>s&&(t=s),function(e,t,n,r,i){var s=Ge(e,t,n,r,i),a=Ae(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,i))}G(0,["gg",2],0,function(){return this.weekYear()%100}),G(0,["GG",2],0,function(){return this.isoWeekYear()%100}),fn("gggg","weekYear"),fn("ggggg","weekYear"),fn("GGGG","isoWeekYear"),fn("GGGGG","isoWeekYear"),W("weekYear","gg"),W("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),ce("G",se),ce("g",se),ce("GG",X,Z),ce("gg",X,Z),ce("GGGG",ne,J),ce("gggg",ne,J),ce("GGGGG",re,Q),ce("ggggg",re,Q),pe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=b(e)}),pe(["gg","GG"],function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)}),G("Q",0,"Qo","quarter"),W("quarter","Q"),N("quarter",7),ce("Q",q),me("Q",function(e,t){t[ge]=3*(b(e)-1)}),G("D",["DD",2],"Do","date"),W("date","D"),N("date",9),ce("D",X),ce("DD",X,Z),ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),me(["D","DD"],ve),me("Do",function(e,t){t[ve]=b(e.match(X)[0])});var mn=Pe("Date",!0);G("DDD",["DDDD",3],"DDDo","dayOfYear"),W("dayOfYear","DDD"),N("dayOfYear",4),ce("DDD",te),ce("DDDD",B),me(["DDD","DDDD"],function(e,t,n){n._dayOfYear=b(e)}),G("m",["mm",2],0,"minute"),W("minute","m"),N("minute",14),ce("m",X),ce("mm",X,Z),me(["m","mm"],ke);var pn=Pe("Minutes",!1);G("s",["ss",2],0,"second"),W("second","s"),N("second",15),ce("s",X),ce("ss",X,Z),me(["s","ss"],Se);var yn,_n=Pe("Seconds",!1);for(G("S",0,0,function(){return~~(this.millisecond()/100)}),G(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),G(0,["SSS",3],0,"millisecond"),G(0,["SSSS",4],0,function(){return 10*this.millisecond()}),G(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),G(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),G(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),G(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),G(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),W("millisecond","ms"),N("millisecond",16),ce("S",te,q),ce("SS",te,Z),ce("SSS",te,B),yn="SSSS";yn.length<=9;yn+="S")ce(yn,ie);function gn(e,t){t[be]=b(1e3*("0."+e))}for(yn="S";yn.length<=9;yn+="S")me(yn,gn);var vn=Pe("Milliseconds",!1);G("z",0,0,"zoneAbbr"),G("zz",0,0,"zoneName");var wn=w.prototype;function kn(e){return e}wn.add=Xt,wn.calendar=function(e,t){var n=e||Ct(),r=At(n,this).startOf("day"),s=i.calendarFormat(this,r)||"sameElse",a=t&&(P(t[s])?t[s].call(this,n):t[s]);return this.format(a||this.localeData().calendar(s,this,Ct(n)))},wn.clone=function(){return new w(this)},wn.diff=function(e,t,n){var r,i,s;if(!this.isValid())return NaN;if(!(r=At(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=j(t)){case"year":s=en(this,r)/12;break;case"month":s=en(this,r);break;case"quarter":s=en(this,r)/3;break;case"second":s=(this-r)/1e3;break;case"minute":s=(this-r)/6e4;break;case"hour":s=(this-r)/36e5;break;case"day":s=(this-r-i)/864e5;break;case"week":s=(this-r-i)/6048e5;break;default:s=this-r}return n?s:S(s)},wn.endOf=function(e){var t;if(void 0===(e=j(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?dn:cn;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=on-ln(t+(this._isUTC?0:this.utcOffset()*an),on)-1;break;case"minute":t=this._d.valueOf(),t+=an-ln(t,an)-1;break;case"second":t=this._d.valueOf(),t+=sn-ln(t,sn)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},wn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=$(this,e);return this.localeData().postformat(t)},wn.from=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||Ct(e).isValid())?qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},wn.fromNow=function(e){return this.from(Ct(),e)},wn.to=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||Ct(e).isValid())?qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},wn.toNow=function(e){return this.to(Ct(),e)},wn.get=function(e){return P(this[e=j(e)])?this[e]():this},wn.invalidAt=function(){return m(this).overflow},wn.isAfter=function(e,t){var n=k(e)?e:Ct(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},wn.isBefore=function(e,t){var n=k(e)?e:Ct(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},wn.isBetween=function(e,t,n,r){var i=k(e)?e:Ct(e),s=k(t)?t:Ct(t);return!!(this.isValid()&&i.isValid()&&s.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(s,n):!this.isAfter(s,n)))},wn.isSame=function(e,t){var n,r=k(e)?e:Ct(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},wn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},wn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},wn.isValid=function(){return p(this)},wn.lang=nn,wn.locale=tn,wn.localeData=rn,wn.max=Et,wn.min=Rt,wn.parsingFlags=function(){return f({},m(this))},wn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:U[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=F(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(P(this[e=j(e)]))return this[e](t);return this},wn.startOf=function(e){var t;if(void 0===(e=j(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?dn:cn;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ln(t+(this._isUTC?0:this.utcOffset()*an),on);break;case"minute":t=this._d.valueOf(),t-=ln(t,an);break;case"second":t=this._d.valueOf(),t-=ln(t,sn)}return this._d.setTime(t),i.updateOffset(this,!0),this},wn.subtract=Kt,wn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},wn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},wn.toDate=function(){return new Date(this.valueOf())},wn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?$(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",$(n,"Z")):$(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},wn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},wn.toJSON=function(){return this.isValid()?this.toISOString():null},wn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},wn.unix=function(){return Math.floor(this.valueOf()/1e3)},wn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},wn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},wn.year=xe,wn.isLeapYear=function(){return Ye(this.year())},wn.weekYear=function(e){return hn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},wn.isoWeekYear=function(e){return hn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},wn.quarter=wn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},wn.month=Ne,wn.daysInMonth=function(){return Ee(this.year(),this.month())},wn.week=wn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},wn.isoWeek=wn.isoWeeks=function(e){var t=$e(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},wn.weeksInYear=function(){var e=this.localeData()._week;return ze(this.year(),e.dow,e.doy)},wn.isoWeeksInYear=function(){return ze(this.year(),1,4)},wn.date=mn,wn.day=wn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},wn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},wn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},wn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},wn.hour=wn.hours=st,wn.minute=wn.minutes=pn,wn.second=wn.seconds=_n,wn.millisecond=wn.milliseconds=vn,wn.utcOffset=function(e,t,n){var r,s=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Lt(oe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Vt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),s!==e&&(!t||this._changeInProgress?Qt(this,qt(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:Vt(this)},wn.utc=function(e){return this.utcOffset(0,e)},wn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Vt(this),"m")),this},wn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Lt(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},wn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ct(e).utcOffset():0,(this.utcOffset()-e)%60==0)},wn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},wn.isLocal=function(){return!!this.isValid()&&!this._isUTC},wn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},wn.isUtc=Gt,wn.isUTC=Gt,wn.zoneAbbr=function(){return this._isUTC?"UTC":""},wn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},wn.dates=O("dates accessor is deprecated. Use date instead.",mn),wn.months=O("months accessor is deprecated. Use month instead",Ne),wn.years=O("years accessor is deprecated. Use year instead",xe),wn.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),wn.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),(e=xt(e))._a){var t=e._isUTC?h(e._a):Ct(e._a);this._isDSTShifted=this.isValid()&&M(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var Sn=R.prototype;function bn(e,t,n,r){var i=ht(),s=h().set(r,t);return i[n](s,e)}function Mn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return bn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=bn(e,r,n,"month");return i}function Dn(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,s=ht(),a=e?s._week.dow:0;if(null!=n)return bn(t,(n+a)%7,r,"day");var o=[];for(i=0;i<7;i++)o[i]=bn(t,(i+a)%7,r,"day");return o}Sn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return P(r)?r.call(t,n):r},Sn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},Sn.invalidDate=function(){return this._invalidDate},Sn.ordinal=function(e){return this._ordinal.replace("%d",e)},Sn.preparse=kn,Sn.postformat=kn,Sn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return P(i)?i(e,t,n,r):i.replace(/%d/i,e)},Sn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return P(n)?n(t):n.replace(/%s/i,t)},Sn.set=function(e){var t,n;for(n in e)P(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Sn.months=function(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||We).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone},Sn.monthsShort=function(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[We.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Sn.monthsParse=function(e,t,n){var r,i,s;if(this._monthsParseExact)return function(e,t,n){var r,i,s,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Te.call(this._shortMonthsParse,a))?i:null:-1!==(i=Te.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Te.call(this._shortMonthsParse,a))?i:-1!==(i=Te.call(this._longMonthsParse,a))?i:null:-1!==(i=Te.call(this._longMonthsParse,a))?i:-1!==(i=Te.call(this._shortMonthsParse,a))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(s="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},Sn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Le.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Ie),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Sn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Le.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=He),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Sn.week=function(e){return $e(e,this._week.dow,this._week.doy).week},Sn.firstDayOfYear=function(){return this._week.doy},Sn.firstDayOfWeek=function(){return this._week.dow},Sn.weekdays=function(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?qe(n,this._week.dow):e?n[e.day()]:n},Sn.weekdaysMin=function(e){return!0===e?qe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Sn.weekdaysShort=function(e){return!0===e?qe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Sn.weekdaysParse=function(e,t,n){var r,i,s;if(this._weekdaysParseExact)return function(e,t,n){var r,i,s,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Te.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Te.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Te.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Te.call(this._weekdaysParse,a))?i:-1!==(i=Te.call(this._shortWeekdaysParse,a))?i:-1!==(i=Te.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Te.call(this._shortWeekdaysParse,a))?i:-1!==(i=Te.call(this._weekdaysParse,a))?i:-1!==(i=Te.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Te.call(this._minWeekdaysParse,a))?i:-1!==(i=Te.call(this._weekdaysParse,a))?i:-1!==(i=Te.call(this._shortWeekdaysParse,a))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(s="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},Sn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Qe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Sn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Xe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Sn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ke),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Sn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Sn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},dt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===b(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),i.lang=O("moment.lang is deprecated. Use moment.locale instead.",dt),i.langData=O("moment.langData is deprecated. Use moment.localeData instead.",ht);var On=Math.abs;function Yn(e,t,n,r){var i=qt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Tn(e){return e<0?Math.floor(e):Math.ceil(e)}function xn(e){return 4800*e/146097}function Pn(e){return 146097*e/4800}function Cn(e){return function(){return this.as(e)}}var Rn=Cn("ms"),En=Cn("s"),Wn=Cn("m"),jn=Cn("h"),Fn=Cn("d"),Un=Cn("w"),Nn=Cn("M"),Hn=Cn("Q"),In=Cn("y");function Ln(e){return function(){return this.isValid()?this._data[e]:NaN}}var An=Ln("milliseconds"),Vn=Ln("seconds"),Gn=Ln("minutes"),$n=Ln("hours"),zn=Ln("days"),qn=Ln("months"),Zn=Ln("years"),Bn=Math.round,Jn={ss:44,s:45,m:45,h:22,d:26,M:11},Qn=Math.abs;function Xn(e){return(e>0)-(e<0)||+e}function Kn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Qn(this._milliseconds)/1e3,r=Qn(this._days),i=Qn(this._months);e=S(n/60),t=S(e/60),n%=60,e%=60;var s=S(i/12),a=i%=12,o=r,u=t,l=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var f=d<0?"-":"",h=Xn(this._months)!==Xn(d)?"-":"",m=Xn(this._days)!==Xn(d)?"-":"",p=Xn(this._milliseconds)!==Xn(d)?"-":"";return f+"P"+(s?h+s+"Y":"")+(a?h+a+"M":"")+(o?m+o+"D":"")+(u||l||c?"T":"")+(u?p+u+"H":"")+(l?p+l+"M":"")+(c?p+c+"S":"")}var er=Ft.prototype;return er.isValid=function(){return this._isValid},er.abs=function(){var e=this._data;return this._milliseconds=On(this._milliseconds),this._days=On(this._days),this._months=On(this._months),e.milliseconds=On(e.milliseconds),e.seconds=On(e.seconds),e.minutes=On(e.minutes),e.hours=On(e.hours),e.months=On(e.months),e.years=On(e.years),this},er.add=function(e,t){return Yn(this,e,t,1)},er.subtract=function(e,t){return Yn(this,e,t,-1)},er.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=j(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+xn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Pn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},er.asMilliseconds=Rn,er.asSeconds=En,er.asMinutes=Wn,er.asHours=jn,er.asDays=Fn,er.asWeeks=Un,er.asMonths=Nn,er.asQuarters=Hn,er.asYears=In,er.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12):NaN},er._bubble=function(){var e,t,n,r,i,s=this._milliseconds,a=this._days,o=this._months,u=this._data;return s>=0&&a>=0&&o>=0||s<=0&&a<=0&&o<=0||(s+=864e5*Tn(Pn(o)+a),a=0,o=0),u.milliseconds=s%1e3,e=S(s/1e3),u.seconds=e%60,t=S(e/60),u.minutes=t%60,n=S(t/60),u.hours=n%24,a+=S(n/24),i=S(xn(a)),o+=i,a-=Tn(Pn(i)),r=S(o/12),o%=12,u.days=a,u.months=o,u.years=r,this},er.clone=function(){return qt(this)},er.get=function(e){return e=j(e),this.isValid()?this[e+"s"]():NaN},er.milliseconds=An,er.seconds=Vn,er.minutes=Gn,er.hours=$n,er.days=zn,er.weeks=function(){return S(this.days()/7)},er.months=qn,er.years=Zn,er.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=qt(e).abs(),i=Bn(r.as("s")),s=Bn(r.as("m")),a=Bn(r.as("h")),o=Bn(r.as("d")),u=Bn(r.as("M")),l=Bn(r.as("y")),c=i<=Jn.ss&&["s",i]||i<Jn.s&&["ss",i]||s<=1&&["m"]||s<Jn.m&&["mm",s]||a<=1&&["h"]||a<Jn.h&&["hh",a]||o<=1&&["d"]||o<Jn.d&&["dd",o]||u<=1&&["M"]||u<Jn.M&&["MM",u]||l<=1&&["y"]||["yy",l];return c[2]=t,c[3]=+e>0,c[4]=n,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},er.toISOString=Kn,er.toString=Kn,er.toJSON=Kn,er.locale=tn,er.localeData=rn,er.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Kn),er.lang=nn,G("X",0,0,"unix"),G("x",0,0,"valueOf"),ce("x",se),ce("X",/[+-]?\d+(\.\d{1,3})?/),me("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),me("x",function(e,t,n){n._d=new Date(b(e))}),i.version="2.24.0",n=Ct,i.fn=wn,i.min=function(){return Wt("isBefore",[].slice.call(arguments,0))},i.max=function(){return Wt("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=h,i.unix=function(e){return Ct(1e3*e)},i.months=function(e,t){return Mn(e,t,"months")},i.isDate=l,i.locale=dt,i.invalid=y,i.duration=qt,i.isMoment=k,i.weekdays=function(e,t,n){return Dn(e,t,n,"weekdays")},i.parseZone=function(){return Ct.apply(null,arguments).parseZone()},i.localeData=ht,i.isDuration=Ut,i.monthsShort=function(e,t){return Mn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return Dn(e,t,n,"weekdaysMin")},i.defineLocale=ft,i.updateLocale=function(e,t){if(null!=t){var n,r,i=at;null!=(r=ct(e))&&(i=r._config),t=C(i,t),(n=new R(t)).parentLocale=ot[e],ot[e]=n,dt(e)}else null!=ot[e]&&(null!=ot[e].parentLocale?ot[e]=ot[e].parentLocale:null!=ot[e]&&delete ot[e]);return ot[e]},i.locales=function(){return Y(ot)},i.weekdaysShort=function(e,t,n){return Dn(e,t,n,"weekdaysShort")},i.normalizeUnits=j,i.relativeTimeRounding=function(e){return void 0===e?Bn:"function"==typeof e&&(Bn=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==Jn[e]&&(void 0===t?Jn[e]:(Jn[e]=t,"s"===e&&(Jn.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=wn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()})),b=n(function(e,t){!function(){var t=Math.PI,n=Math.sin,r=Math.cos,i=Math.tan,s=Math.asin,a=Math.atan2,o=Math.acos,u=t/180,l=864e5,c=2440588,d=2451545;function f(e){return new Date((e+.5-c)*l)}function h(e){return function(e){return e.valueOf()/l-.5+c}(e)-d}var m=23.4397*u;function p(e,t){return a(n(e)*r(m)-i(t)*n(m),r(e))}function y(e,t){return s(n(t)*r(m)+r(t)*n(m)*n(e))}function _(e,t,s){return a(n(e),r(e)*n(t)-i(s)*r(t))}function g(e,t,i){return s(n(t)*n(i)+r(t)*r(i)*r(e))}function v(e,t){return u*(280.16+360.9856235*e)-t}function w(e){return u*(357.5291+.98560028*e)}function k(e){return e+u*(1.9148*n(e)+.02*n(2*e)+3e-4*n(3*e))+102.9372*u+t}function S(e){var t=k(w(e));return{dec:y(t,0),ra:p(t,0)}}var b={getPosition:function(e,t,n){var r=u*-n,i=u*t,s=h(e),a=S(s),o=v(s,r)-a.ra;return{azimuth:_(o,i,a.dec),altitude:g(o,i,a.dec)}}},M=b.times=[[-.833,"sunrise","sunset"],[-.3,"sunriseEnd","sunsetStart"],[-6,"dawn","dusk"],[-12,"nauticalDawn","nauticalDusk"],[-18,"nightEnd","night"],[6,"goldenHourEnd","goldenHour"]];b.addTime=function(e,t,n){M.push([e,t,n])};var D=9e-4;function O(e,n,r){return D+(e+n)/(2*t)+r}function Y(e,t,r){return d+e+.0053*n(t)-.0069*n(2*r)}function T(e,t,i,s,a,u,l){return Y(O(function(e,t,i){return o((n(e)-n(t)*n(i))/(r(t)*r(i)))}(e,i,s),t,a),u,l)}function x(e){var t=u*(134.963+13.064993*e),i=u*(93.272+13.22935*e),s=u*(218.316+13.176396*e)+6.289*u*n(t),a=5.128*u*n(i),o=385001-20905*r(t);return{ra:p(s,a),dec:y(s,a),dist:o}}function P(e,t){return new Date(e.valueOf()+t*l/24)}b.getTimes=function(e,n,r){var i,s,a,o,l,c=u*-r,d=u*n,m=function(e,n){return Math.round(e-D-n/(2*t))}(h(e),c),p=O(0,c,m),_=w(p),g=k(_),v=y(g,0),S=Y(p,_,g),b={solarNoon:f(S),nadir:f(S-.5)};for(i=0,s=M.length;i<s;i+=1)l=S-((o=T((a=M[i])[0]*u,c,d,v,m,_,g))-S),b[a[1]]=f(l),b[a[2]]=f(o);return b},b.getMoonPosition=function(e,t,s){var o=u*-s,l=u*t,c=h(e),d=x(c),f=v(c,o)-d.ra,m=g(f,l,d.dec),p=a(n(f),i(l)*r(d.dec)-n(d.dec)*r(f));return m+=function(e){return e<0&&(e=0),2967e-7/Math.tan(e+.00312536/(e+.08901179))}(m),{azimuth:_(f,l,d.dec),altitude:m,distance:d.dist,parallacticAngle:p}},b.getMoonIllumination=function(e){var t=h(e||new Date),i=S(t),s=x(t),u=o(n(i.dec)*n(s.dec)+r(i.dec)*r(s.dec)*r(i.ra-s.ra)),l=a(149598e3*n(u),s.dist-149598e3*r(u)),c=a(r(i.dec)*n(i.ra-s.ra),n(i.dec)*r(s.dec)-r(i.dec)*n(s.dec)*r(i.ra-s.ra));return{fraction:(1+r(l))/2,phase:.5+.5*l*(c<0?-1:1)/Math.PI,angle:c}},b.getMoonTimes=function(e,t,n,r){var i=new Date(e);r?i.setUTCHours(0,0,0,0):i.setHours(0,0,0,0);for(var s,a,o,l,c,d,f,h,m,p,y,_,g,v=.133*u,w=b.getMoonPosition(i,t,n).altitude-v,k=1;k<=24&&(s=b.getMoonPosition(P(i,k),t,n).altitude-v,h=((c=(w+(a=b.getMoonPosition(P(i,k+1),t,n).altitude-v))/2-s)*(f=-(d=(a-w)/2)/(2*c))+d)*f+s,p=0,(m=d*d-4*c*s)>=0&&(y=f-(g=Math.sqrt(m)/(2*Math.abs(c))),_=f+g,Math.abs(y)<=1&&p++,Math.abs(_)<=1&&p++,y<-1&&(y=_)),1===p?w<0?o=k+y:l=k+y:2===p&&(o=k+(h<0?_:y),l=k+(h<0?y:_)),!o||!l);k+=2)w=a;var S={};return o&&(S.rise=P(i,o)),l&&(S.set=P(i,l)),o||l||(S[h>0?"alwaysUp":"alwaysDown"]=!0),S},e.exports=b}()});const M="/Users/isaac/urbit/urbit/pkg/interface/clock/tile/tile.js",D=124,O=124;let Y="#000000",T="#ffffff",x=window.matchMedia("(prefers-color-scheme: dark)");x.matches&&(Y="#7f7f7f",T="#333"),x.addListener(function(e){e.matches?(Y="#7f7f7f",T="#333"):(Y="#000000",T="#ffffff")});const P=(e,t)=>t+.5*(e-t),C=e=>1==Math.abs(e%2),R=e=>e*(180/Math.PI),E=e=>e*(Math.PI/180),W=(e,t)=>(e=>e/1440*360)(((e,t,n)=>S(e).diff(t,n))(e,t,"minutes")),j=(e,t,n,r,i,s,a)=>{e.beginPath(),e.arc(t,n,r,i,s),e.strokeStyle="rgba(0,0,0,0)",e.fillStyle=a||"rgba(0,0,0,0)",e.fill()},F=(e,t,n,r,i,s,a,o)=>{e.beginPath(),e.arc(t,n,r,i,s),e.fillStyle="rgba(0,0,0,0)",e.lineWidth=o,e.strokeStyle=a||"rgba(0,0,0,0)",e.stroke()},U=(e,t,n,r,i,s,a)=>{e.beginPath(),e.arc(t,n,r,E(i),E(s)),e.fillStyle="rgba(0,0,0,0)",e.lineWidth=2*r,e.strokeStyle=a||"rgba(0,0,0,0)",e.stroke()};class N extends k{constructor(e){super(e),this.animate=this.animate.bind(this),this.canvasRef=w.createRef(),this.canvas=null,this.angle=0,this.referenceTime=S().startOf("day").subtract(6,"hours"),this.state={lat:0,lon:0,geolocationSuccess:!1,sunrise:0,sunsetStart:0,sunset:0,sunriseEnd:0,dusk:0,dawn:0,night:0,nightEnd:0,nauticalDawn:0,nauticalDusk:0}}initGeolocation(){if("string"==typeof this.props.data){const e=this.props.data.split(","),t=e[0],n=e[1],r=b.getTimes(new Date,t,n),i={sunset:W(r.sunset,this.referenceTime),sunrise:W(r.sunrise,this.referenceTime),sunsetStart:W(r.sunsetStart,this.referenceTime),sunriseEnd:W(r.sunriseEnd,this.referenceTime),dusk:W(r.dusk,this.referenceTime),dawn:W(r.dawn,this.referenceTime),night:W(r.night,this.referenceTime),nightEnd:W(r.nightEnd,this.referenceTime),nauticalDawn:W(r.nauticalDawn,this.referenceTime),nauticalDusk:W(r.nauticalDusk,this.referenceTime)};this.setState({lat:t,lon:n,...i,geolocationSuccess:!0})}}componentDidUpdate(e){e!==this.props&&this.initGeolocation()}componentDidMount(){this.canvas=I(this.canvasRef,{x:O,y:O},4),this.initGeolocation(),this.animate()}animate(){window.setTimeout(()=>window.requestAnimationFrame(this.animate),1e3);const{state:e}=this,t=new Date,n=this.canvas.getContext("2d");n.clearRect(0,0,n.width,n.height),n.save();const r=O/2;var i=r,s=r;this.angle=E(W(t,this.referenceTime));var a=i+(r-15)*Math.cos(this.angle),o=s+(r-15)*Math.sin(this.angle);j(n,r,r,r,-1,2*Math.PI,T),U(n,r,r,r/2,e.sunriseEnd,e.sunset,"#6792FF"),U(n,r,r,r/2,e.nightEnd,e.sunriseEnd,"#FCC440"),U(n,r,r,r/2,e.nightEnd,P(e.sunriseEnd,e.nightEnd),"#FF611E"),U(n,r,r,r/2,e.sunset,e.night,"#FCC440"),U(n,r,r,r/2,P(e.sunset,e.night),e.night,"#FF611E"),R(this.angle)>P(e.sunriseEnd,e.nightEnd)&&R(this.angle)<P(e.sunset,e.night)?(j(n,a-.5,o-.5,8,0,2*Math.PI,"#FCC440"),F(n,a-.5,o-.5,8,0,2*Math.PI,"#6792FF",1)):(j(n,a-.5,o-.5,8,0,2*Math.PI,"#FFFFFF"),F(n,a-.5,o-.5,8,0,2*Math.PI,"#000000",1)),U(n,r,r,r/2,e.night,e.nightEnd,"rgb(26, 26, 26)"),F(n,r,r,r-1,-1,2*Math.PI,Y,1),F(n,r,r,r,-1,2*Math.PI,T,1),j(n,r,r,r/1.85,-1,2*Math.PI,T),F(n,r,r,r/1.85,-1,2*Math.PI,Y,1);const u=C(t.getSeconds())?S().format("h mm A"):S().format("h:mm A"),l=S().format("MMM Do");n.textAlign="center",n.fillStyle=Y,n.font="12px Inter",n.fillText(u,r,r+6-7),n.fillStyle=Y,n.font="12px Inter",n.fillText(l,r,r+6+7),n.restore()}render(){return w.createElement("div",{style:{position:"relative"},__self:this,__source:{fileName:M,lineNumber:390}},w.createElement("canvas",{style:{position:"absolute"},ref:e=>this.canvasRef=e,id:"clock-canvas",__self:this,__source:{fileName:M,lineNumber:391}}))}}class H extends k{constructor(e){super(e)}renderWrapper(e){return w.createElement("div",{className:"bg-white bg-gray0-d",style:{width:D,height:D},__self:this,__source:{fileName:M,lineNumber:406}},e)}render(){let e=this.props.data?this.props.data:{};return this.renderWrapper(w.createElement(N,{data:e,__self:this,__source:{fileName:M,lineNumber:418}}))}}const I=(e,t,n)=>{const{x:r,y:i}=t;e.getContext("2d");return e.width=r*n,e.height=i*n,e.style.width=r+"px",e.style.height=i+"px",e.getContext("2d").scale(n,n),e};return window.clockTile=H,H}); |