427 lines
141 KiB
JavaScript
427 lines
141 KiB
JavaScript
function e(e){return e&&e.__esModule?e.default:e}/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/const t=globalThis,n=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),i=new WeakMap;class a{constructor(e,t,n){if(this._$cssResult$=!0,n!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(n&&void 0===e){let n=void 0!==t&&1===t.length;n&&(e=i.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&i.set(t,e))}return e}toString(){return this.cssText}}const s=e=>new a("string"==typeof e?e:e+"",void 0,r),o=(e,r)=>{if(n)e.adoptedStyleSheets=r.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let n of r){let r=document.createElement("style"),i=t.litNonce;void 0!==i&&r.setAttribute("nonce",i),r.textContent=n.cssText,e.appendChild(r)}},u=n?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let n of e.cssRules)t+=n.cssText;return s(t)})(e):e,{is:l,defineProperty:c,getOwnPropertyDescriptor:d,getOwnPropertyNames:h,getOwnPropertySymbols:f,getPrototypeOf:m}=Object,y=globalThis,v=y.trustedTypes,g=v?v.emptyScript:"",p=y.reactiveElementPolyfillSupport,A=(e,t)=>e,w={toAttribute(e,t){switch(t){case Boolean:e=e?g:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},F=(e,t)=>!l(e,t),k={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:F};Symbol.metadata??=Symbol("metadata"),y.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=k){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);void 0!==r&&c(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=d(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return r?.call(this)},set(t){let a=r?.call(this);i.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??k}static _$Ei(){if(this.hasOwnProperty(A("elementProperties")))return;let e=m(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(A("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(A("properties"))){let e=this.properties;for(let t of[...h(e),...f(e)])this.createProperty(t,e[t])}let e=this[Symbol.metadata];if(null!==e){let t=litPropertyMetadata.get(e);if(void 0!==t)for(let[e,n]of t)this.elementProperties.set(e,n)}for(let[e,t]of(this._$Eh=new Map,this.elementProperties)){let n=this._$Eu(e,t);void 0!==n&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e))for(let n of new Set(e.flat(1/0).reverse()))t.unshift(u(n));else void 0!==e&&t.push(u(e));return t}static _$Eu(e,t){let n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map;for(let t of this.constructor.elementProperties.keys())this.hasOwnProperty(t)&&(e.set(t,this[t]),delete this[t]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return o(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EC(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(void 0!==r&&!0===n.reflect){let i=(void 0!==n.converter?.toAttribute?n.converter:w).toAttribute(t,n.type);this._$Em=e,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(void 0!==r&&this._$Em!==r){let e=n.getPropertyOptions(r),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:w;this._$Em=r,this[r]=i.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,n){if(void 0!==e){if(!((n??=this.constructor.getPropertyOptions(e)).hasChanged??F)(this[e],t))return;this.P(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,n){this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e)!0!==n.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],n)}let e=!1,t=this._$AL;try{(e=this.shouldUpdate(t))?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(e=>this._$EC(e,this[e])),this._$EU()}updated(e){}firstUpdated(e){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[A("elementProperties")]=new Map,b[A("finalized")]=new Map,p?.({ReactiveElement:b}),(y.reactiveElementVersions??=[]).push("2.0.4");/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/const D=globalThis,B=D.trustedTypes,S=B?B.createPolicy("lit-html",{createHTML:e=>e}):void 0,E="$lit$",C=`lit$${Math.random().toFixed(9).slice(2)}$`,T="?"+C,O=`<${T}>`,_=document,M=()=>_.createComment(""),N=e=>null===e||"object"!=typeof e&&"function"!=typeof e,x=Array.isArray,I=e=>x(e)||"function"==typeof e?.[Symbol.iterator],L="[ \n\f\r]",V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,P=/>/g,z=RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^
|
||
\f\r"'\`<>=]|("|')|))|$)`,"g"),H=/'/g,j=/"/g,R=/^(?:script|style|textarea|title)$/i,W=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),Q=W(1),Z=(W(2),W(3),Symbol.for("lit-noChange")),$=Symbol.for("lit-nothing"),Y=new WeakMap,J=_.createTreeWalker(_,129);function G(e,t){if(!x(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==S?S.createHTML(t):t}const q=(e,t)=>{let n=e.length-1,r=[],i,a=2===t?"<svg>":3===t?"<math>":"",s=V;for(let t=0;t<n;t++){let n=e[t],o,u,l=-1,c=0;for(;c<n.length&&(s.lastIndex=c,null!==(u=s.exec(n)));)c=s.lastIndex,s===V?"!--"===u[1]?s=U:void 0!==u[1]?s=P:void 0!==u[2]?(R.test(u[2])&&(i=RegExp("</"+u[2],"g")),s=z):void 0!==u[3]&&(s=z):s===z?">"===u[0]?(s=i??V,l=-1):void 0===u[1]?l=-2:(l=s.lastIndex-u[2].length,o=u[1],s=void 0===u[3]?z:'"'===u[3]?j:H):s===j||s===H?s=z:s===U||s===P?s=V:(s=z,i=void 0);let d=s===z&&e[t+1].startsWith("/>")?" ":"";a+=s===V?n+O:l>=0?(r.push(o),n.slice(0,l)+E+n.slice(l)+C+d):n+C+(-2===l?t:d)}return[G(e,a+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),r]};class K{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let i=0,a=0,s=e.length-1,o=this.parts,[u,l]=q(e,t);if(this.el=K.createElement(u,n),J.currentNode=this.el.content,2===t||3===t){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(r=J.nextNode())&&o.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(let e of r.getAttributeNames())if(e.endsWith(E)){let t=l[a++],n=r.getAttribute(e).split(C),s=/([.?@])?(.*)/.exec(t);o.push({type:1,index:i,name:s[2],strings:n,ctor:"."===s[1]?er:"?"===s[1]?ei:"@"===s[1]?ea:en}),r.removeAttribute(e)}else e.startsWith(C)&&(o.push({type:6,index:i}),r.removeAttribute(e));if(R.test(r.tagName)){let e=r.textContent.split(C),t=e.length-1;if(t>0){r.textContent=B?B.emptyScript:"";for(let n=0;n<t;n++)r.append(e[n],M()),J.nextNode(),o.push({type:2,index:++i});r.append(e[t],M())}}}else if(8===r.nodeType){if(r.data===T)o.push({type:2,index:i});else{let e=-1;for(;-1!==(e=r.data.indexOf(C,e+1));)o.push({type:7,index:i}),e+=C.length-1}}i++}}static createElement(e,t){let n=_.createElement("template");return n.innerHTML=e,n}}function X(e,t,n=e,r){if(t===Z)return t;let i=void 0!==r?n._$Co?.[r]:n._$Cl,a=N(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),void 0===a?i=void 0:(i=new a(e))._$AT(e,n,r),void 0!==r?(n._$Co??=[])[r]=i:n._$Cl=i),void 0!==i&&(t=X(e,i._$AS(e,t.values),i,r)),t}class ee{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??_).importNode(t,!0);J.currentNode=r;let i=J.nextNode(),a=0,s=0,o=n[0];for(;void 0!==o;){if(a===o.index){let t;2===o.type?t=new et(i,i.nextSibling,this,e):1===o.type?t=new o.ctor(i,o.name,o.strings,this,e):6===o.type&&(t=new es(i,this,e)),this._$AV.push(t),o=n[++s]}a!==o?.index&&(i=J.nextNode(),a++)}return J.currentNode=_,r}p(e){let t=0;for(let n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class et{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){N(e=X(this,e,t))?e===$||null==e||""===e?(this._$AH!==$&&this._$AR(),this._$AH=$):e!==this._$AH&&e!==Z&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):I(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==$&&N(this._$AH)?this._$AA.nextSibling.data=e:this.T(_.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=K.createElement(G(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new ee(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=Y.get(e.strings);return void 0===t&&Y.set(e.strings,t=new K(e)),t}k(e){x(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,n,r=0;for(let i of e)r===t.length?t.push(n=new et(this.O(M()),this.O(M()),this,this.options)):n=t[r],n._$AI(i),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class en{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=$,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=$}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(void 0===i)(a=!N(e=X(this,e,t,0))||e!==this._$AH&&e!==Z)&&(this._$AH=e);else{let r,s;let o=e;for(e=i[0],r=0;r<i.length-1;r++)(s=X(this,o[n+r],t,r))===Z&&(s=this._$AH[r]),a||=!N(s)||s!==this._$AH[r],s===$?e=$:e!==$&&(e+=(s??"")+i[r+1]),this._$AH[r]=s}a&&!r&&this.j(e)}j(e){e===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class er extends en{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===$?void 0:e}}class ei extends en{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==$)}}class ea extends en{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=X(this,e,t,0)??$)===Z)return;let n=this._$AH,r=e===$&&n!==$||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==$&&(n===$||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class es{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){X(this,e)}}const eo=D.litHtmlPolyfillSupport;eo?.(K,et),(D.litHtmlVersions??=[]).push("3.2.1");const eu=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(void 0===i){let e=n?.renderBefore??null;r._$litPart$=i=new et(t.insertBefore(M(),e),e,void 0,n??{})}return i._$AI(e),i};/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/class el extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=eu(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Z}}el._$litElement$=!0,el.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:el});const ec=globalThis.litElementPolyfillSupport;ec?.({LitElement:el}),(globalThis.litElementVersions??=[]).push("4.1.1");class ed{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/class eh extends ed{constructor(e){if(super(e),this.it=$,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===$||null==e)return this._t=void 0,this.it=e;if(e===Z)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}eh.directiveName="unsafeHTML",eh.resultType=1;const ef=(...e)=>({_$litDirective$:eh,values:e});var em,ey={};function ev(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,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.key),r)}}function eg(e,t,n){return t&&ev(e.prototype,t),n&&ev(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ep(){return(ep=Object.assign?Object.assign.bind():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 eA(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,eF(e,t)}function ew(e){return(ew=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eF(e,t){return(eF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ek(e,t,n){return(ek=!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&eF(i,n.prototype),i}:Reflect.construct.bind()).apply(null,arguments)}function eb(e){var t="function"==typeof Map?new Map:void 0;return(eb=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return ek(e,arguments,ew(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),eF(n,e)})(e)}function eD(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function eB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eS(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return eB(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eB(e,void 0)}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(ey,"__esModule",{value:!0});var eE=/*#__PURE__*/function(e){function t(){return e.apply(this,arguments)||this}return eA(t,e),t}(/*#__PURE__*/eb(Error)),eC=/*#__PURE__*/function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return eA(t,e),t}(eE),eT=/*#__PURE__*/function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return eA(t,e),t}(eE),eO=/*#__PURE__*/function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return eA(t,e),t}(eE),e_=/*#__PURE__*/function(e){function t(){return e.apply(this,arguments)||this}return eA(t,e),t}(eE),eM=/*#__PURE__*/function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return eA(t,e),t}(eE),eN=/*#__PURE__*/function(e){function t(){return e.apply(this,arguments)||this}return eA(t,e),t}(eE),ex=/*#__PURE__*/function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return eA(t,e),t}(eE),eI="numeric",eL="short",eV="long",eU={year:eI,month:eI,day:eI},eP={year:eI,month:eL,day:eI},ez={year:eI,month:eL,day:eI,weekday:eL},eH={year:eI,month:eV,day:eI},ej={year:eI,month:eV,day:eI,weekday:eV},eR={hour:eI,minute:eI},eW={hour:eI,minute:eI,second:eI},eQ={hour:eI,minute:eI,second:eI,timeZoneName:eL},eZ={hour:eI,minute:eI,second:eI,timeZoneName:eV},e$={hour:eI,minute:eI,hourCycle:"h23"},eY={hour:eI,minute:eI,second:eI,hourCycle:"h23"},eJ={hour:eI,minute:eI,second:eI,hourCycle:"h23",timeZoneName:eL},eG={hour:eI,minute:eI,second:eI,hourCycle:"h23",timeZoneName:eV},eq={year:eI,month:eI,day:eI,hour:eI,minute:eI},eK={year:eI,month:eI,day:eI,hour:eI,minute:eI,second:eI},eX={year:eI,month:eL,day:eI,hour:eI,minute:eI},e2={year:eI,month:eL,day:eI,hour:eI,minute:eI,second:eI},e0={year:eI,month:eL,day:eI,weekday:eL,hour:eI,minute:eI},e1={year:eI,month:eV,day:eI,hour:eI,minute:eI,timeZoneName:eL},e3={year:eI,month:eV,day:eI,hour:eI,minute:eI,second:eI,timeZoneName:eL},e4={year:eI,month:eV,day:eI,weekday:eV,hour:eI,minute:eI,timeZoneName:eV},e6={year:eI,month:eV,day:eI,weekday:eV,hour:eI,minute:eI,second:eI,timeZoneName:eV},e5=/*#__PURE__*/function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new ex},t.formatOffset=function(e,t){throw new ex},t.offset=function(e){throw new ex},t.equals=function(e){throw new ex},eg(e,[{key:"type",get:function(){throw new ex}},{key:"name",get:function(){throw new ex}},{key:"ianaName",get:function(){return this.name}},{key:"isUniversal",get:function(){throw new ex}},{key:"isValid",get:function(){throw new ex}}]),e}(),e8=null,e7=/*#__PURE__*/function(e){function t(){return e.apply(this,arguments)||this}eA(t,e);var n=t.prototype;return n.offsetName=function(e,t){return no(e,t.format,t.locale)},n.formatOffset=function(e,t){return nd(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return"system"===e.type},eg(t,[{key:"type",get:function(){return"system"}},{key:"name",get:function(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===e8&&(e8=new t),e8}}]),t}(e5),e9={},te={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},tt={},tn=/*#__PURE__*/function(e){function t(n){var r;return(r=e.call(this)||this).zoneName=n,r.valid=t.isValidZone(n),r}eA(t,e),t.create=function(e){return tt[e]||(tt[e]=new t(e)),tt[e]},t.resetCache=function(){tt={},e9={}},t.isValidSpecifier=function(e){return this.isValidZone(e)},t.isValidZone=function(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}};var n=t.prototype;return n.offsetName=function(e,t){return no(e,t.format,t.locale,this.name)},n.formatOffset=function(e,t){return nd(this.offset(e),t)},n.offset=function(e){var t,n,r,i,a,s=new Date(e);if(isNaN(s))return NaN;var o=(e9[t=this.name]||(e9[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),e9[t]),u=o.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=[],i=0;i<n.length;i++){var a=n[i],s=a.type,o=a.value,u=te[s];"era"===s?r[u]=o:tG(u)||(r[u]=parseInt(o,10))}return r}(o,s):(n=o.format(s).replace(/\u200E/g,""),i=(r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n))[1],a=r[2],[r[3],i,a,r[4],r[5],r[6],r[7]]),l=u[0],c=u[1],d=u[2],h=u[3],f=u[4],m=u[5],y=u[6];"BC"===h&&(l=-Math.abs(l)+1);var v=nr({year:l,month:c,day:d,hour:24===f?0:f,minute:m,second:y,millisecond:0}),g=+s,p=g%1e3;return(v-(g-=p>=0?p:1e3+p))/6e4},n.equals=function(e){return"iana"===e.type&&e.name===this.name},eg(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(e5),tr=["base"],ti=["padTo","floor"],ta={},ts={};function to(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=ts[n];return r||(r=new Intl.DateTimeFormat(e,t),ts[n]=r),r}var tu={},tl={},tc=null,td={};function th(e,t,n,r){var i=e.listingMode();return"error"===i?null:"en"===i?n(t):r(t)}var tf=/*#__PURE__*/function(){function e(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1,n.padTo,n.floor;var r=eD(n,ti);if(!t||Object.keys(r).length>0){var i,a,s,o=ep({useGrouping:!1},n);n.padTo>0&&(o.minimumIntegerDigits=n.padTo),this.inf=(void 0===(i=o)&&(i={}),(s=tu[a=JSON.stringify([e,i])])||(s=new Intl.NumberFormat(e,i),tu[a]=s),s)}}return e.prototype.format=function(e){if(!this.inf)return t6(this.floor?Math.floor(e):t9(e,3),this.padTo);var t=this.floor?Math.floor(e):e;return this.inf.format(t)},e}(),tm=/*#__PURE__*/function(){function e(e,t,n){this.opts=n,this.originalZone=void 0;var r=void 0;if(this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){var i=-1*(e.offset/60),a=i>=0?"Etc/GMT+"+i:"Etc/GMT"+i;0!==e.offset&&tn.create(a).valid?(r=a,this.dt=e):(r="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);var s=ep({},this.opts);s.timeZone=s.timeZone||r,this.dtf=to(t,s)}var t=e.prototype;return t.format=function(){return this.originalZone?this.formatToParts().map(function(e){return e.value}).join(""):this.dtf.format(this.dt.toJSDate())},t.formatToParts=function(){var e=this,t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(function(t){if("timeZoneName"!==t.type)return t;var n=e.originalZone.offsetName(e.dt.ts,{locale:e.dt.locale,format:e.opts.timeZoneName});return ep({},t,{value:n})}):t},t.resolvedOptions=function(){return this.dtf.resolvedOptions()},e}(),ty=/*#__PURE__*/function(){function e(e,t,n){if(this.opts=ep({style:"long"},n),!t&&tX()){var r,i,a,s;this.rtf=(void 0===(r=n)&&(r={}),(i=r).base,(s=tl[a=JSON.stringify([e,eD(i,tr)])])||(s=new Intl.RelativeTimeFormat(e,r),tl[a]=s),s)}}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n,r){void 0===n&&(n="always"),void 0===r&&(r=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&a){var s="days"===e;switch(t){case 1:return s?"tomorrow":"next "+i[e][0];case -1:return s?"yesterday":"last "+i[e][0];case 0:return s?"today":"this "+i[e][0]}}var o=Object.is(t,-0)||t<0,u=Math.abs(t),l=1===u,c=i[e],d=r?l?c[1]:c[2]||c[1]:l?i[e][0]:e;return o?u+" "+d+" ago":"in "+u+" "+d}(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),tv={firstDay:1,minimalDays:4,weekend:[6,7]},tg=/*#__PURE__*/function(){function e(e,t,n,r,i){var a,s,o,u=function(e){var t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));var n=e.indexOf("-u-");if(-1===n)return[e];try{r=to(e).resolvedOptions(),i=e}catch(t){var r,i,a=e.substring(0,n);r=to(a).resolvedOptions(),i=a}var s=r;return[i,s.numberingSystem,s.calendar]}(e),l=u[0],c=u[1],d=u[2];this.locale=l,this.numberingSystem=t||c||null,this.outputCalendar=n||d||null,this.weekSettings=r,this.intl=(a=this.locale,s=this.numberingSystem,((o=this.outputCalendar)||s)&&(a.includes("-u-")||(a+="-u"),o&&(a+="-ca-"+o),s&&(a+="-nu-"+s)),a),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)},e.create=function(t,n,r,i,a){void 0===a&&(a=!1);var s=t||tI.defaultLocale;return new e(s||(a?"en-US":tc||(tc=new Intl.DateTimeFormat().resolvedOptions().locale)),n||tI.defaultNumberingSystem,r||tI.defaultOutputCalendar,t3(i)||tI.defaultWeekSettings,s)},e.resetCache=function(){tc=null,ts={},tu={},tl={}},e.fromObject=function(t){var n=void 0===t?{}:t,r=n.locale,i=n.numberingSystem,a=n.outputCalendar,s=n.weekSettings;return e.create(r,i,a,s)};var t=e.prototype;return t.listingMode=function(){var e=this.isEnglish(),t=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return e&&t?"en":"intl"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t3(t.weekSettings)||this.weekSettings,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(ep({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(ep({},e,{defaultToEN:!1}))},t.months=function(e,t){var n=this;return void 0===t&&(t=!1),th(this,e,nv,function(){var r=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return n.monthsCache[i][e]||(n.monthsCache[i][e]=function(e){for(var t=[],n=1;n<=12;n++){var r=r3.utc(2009,n,1);t.push(e(r))}return t}(function(e){return n.extract(e,r,"month")})),n.monthsCache[i][e]})},t.weekdays=function(e,t){var n=this;return void 0===t&&(t=!1),th(this,e,nw,function(){var r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return n.weekdaysCache[i][e]||(n.weekdaysCache[i][e]=function(e){for(var t=[],n=1;n<=7;n++){var r=r3.utc(2016,11,13+n);t.push(e(r))}return t}(function(e){return n.extract(e,r,"weekday")})),n.weekdaysCache[i][e]})},t.meridiems=function(){var e=this;return th(this,void 0,function(){return nF},function(){if(!e.meridiemCache){var t={hour:"numeric",hourCycle:"h12"};e.meridiemCache=[r3.utc(2016,11,13,9),r3.utc(2016,11,13,19)].map(function(n){return e.extract(n,t,"dayperiod")})}return e.meridiemCache})},t.eras=function(e){var t=this;return th(this,e,nB,function(){var n={era:e};return t.eraCache[e]||(t.eraCache[e]=[r3.utc(-40,1,1),r3.utc(2017,1,1)].map(function(e){return t.extract(e,n,"era")})),t.eraCache[e]})},t.extract=function(e,t,n){var r=this.dtFormatter(e,t).formatToParts().find(function(e){return e.type.toLowerCase()===n});return r?r.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new tf(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new tm(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new ty(this.intl,this.isEnglish(),e)},t.listFormatter=function(e){var t,n,r,i;return void 0===e&&(e={}),t=this.intl,void 0===(n=e)&&(n={}),(i=ta[r=JSON.stringify([t,n])])||(i=new Intl.ListFormat(t,n),ta[r]=i),i},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.getWeekSettings=function(){return this.weekSettings?this.weekSettings:t2()?function(e){var t=td[e];if(!t){var n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,td[e]=t}return t}(this.locale):tv},t.getStartOfWeek=function(){return this.getWeekSettings().firstDay},t.getMinDaysInFirstWeek=function(){return this.getWeekSettings().minimalDays},t.getWeekendDays=function(){return this.getWeekSettings().weekend},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},t.toString=function(){return"Locale("+this.locale+", "+this.numberingSystem+", "+this.outputCalendar+")"},eg(e,[{key:"fastNumbers",get:function(){return null==this.fastNumbersCached&&(this.fastNumbersCached=(!this.numberingSystem||"latn"===this.numberingSystem)&&("latn"===this.numberingSystem||!this.locale||this.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(this.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}(),tp=null,tA=/*#__PURE__*/function(e){function t(t){var n;return(n=e.call(this)||this).fixed=t,n}eA(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new t(nu(n[1],n[2]))}return null};var n=t.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(e,t){return nd(this.fixed,t)},n.offset=function(){return this.fixed},n.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},eg(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+nd(this.fixed,"narrow")}},{key:"ianaName",get:function(){return 0===this.fixed?"Etc/UTC":"Etc/GMT"+nd(-this.fixed,"narrow")}},{key:"isUniversal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}],[{key:"utcInstance",get:function(){return null===tp&&(tp=new t(0)),tp}}]),t}(e5),tw=/*#__PURE__*/function(e){function t(t){var n;return(n=e.call(this)||this).zoneName=t,n}eA(t,e);var n=t.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return""},n.offset=function(){return NaN},n.equals=function(){return!1},eg(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(e5);function tF(e,t){if(tG(e)||null===e)return t;if(e instanceof e5)return e;if("string"==typeof e){var n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?e7.instance:"utc"===n||"gmt"===n?tA.utcInstance:tA.parseSpecifier(n)||tn.create(e)}return tq(e)?tA.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new tw(e)}var tk={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},tb={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},tD=tk.hanidec.replace(/[\[|\]]/g,"").split(""),tB={};function tS(e,t){var n=e.numberingSystem;void 0===t&&(t="");var r=n||"latn";return tB[r]||(tB[r]={}),tB[r][t]||(tB[r][t]=RegExp(""+tk[r]+t)),tB[r][t]}var tE,tC=function(){return Date.now()},tT="system",tO=null,t_=null,tM=null,tN=60,tx=null,tI=/*#__PURE__*/function(){function e(){}return e.resetCaches=function(){tg.resetCache(),tn.resetCache(),r3.resetCache(),tB={}},eg(e,null,[{key:"now",get:function(){return tC},set:function(e){tC=e}},{key:"defaultZone",get:function(){return tF(tT,e7.instance)},set:function(e){tT=e}},{key:"defaultLocale",get:function(){return tO},set:function(e){tO=e}},{key:"defaultNumberingSystem",get:function(){return t_},set:function(e){t_=e}},{key:"defaultOutputCalendar",get:function(){return tM},set:function(e){tM=e}},{key:"defaultWeekSettings",get:function(){return tx},set:function(e){tx=t3(e)}},{key:"twoDigitCutoffYear",get:function(){return tN},set:function(e){tN=e%100}},{key:"throwOnInvalid",get:function(){return tE},set:function(e){tE=e}}]),e}(),tL=/*#__PURE__*/function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),tV=[0,31,59,90,120,151,181,212,243,273,304,334],tU=[0,31,60,91,121,152,182,213,244,274,305,335];function tP(e,t){return new tL("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function tz(e,t,n){var r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);var i=r.getUTCDay();return 0===i?7:i}function tH(e,t){var n=ne(e)?tU:tV,r=n.findIndex(function(e){return e<t}),i=t-n[r];return{month:r+1,day:i}}function tj(e,t){return(e-t+7)%7+1}function tR(e,t,n){void 0===t&&(t=4),void 0===n&&(n=1);var r,i=e.year,a=e.month,s=e.day,o=s+(ne(i)?tU:tV)[a-1],u=tj(tz(i,a,s),n),l=Math.floor((o-u+14-t)/7);return l<1?l=na(r=i-1,t,n):l>na(i,t,n)?(r=i+1,l=1):r=i,ep({weekYear:r,weekNumber:l,weekday:u},nh(e))}function tW(e,t,n){void 0===t&&(t=4),void 0===n&&(n=1);var r,i=e.weekYear,a=e.weekNumber,s=e.weekday,o=tj(tz(i,1,t),n),u=nt(i),l=7*a+s-o-7+t;l<1?l+=nt(r=i-1):l>u?(r=i+1,l-=nt(i)):r=i;var c=tH(r,l),d=c.month,h=c.day;return ep({year:r,month:d,day:h},nh(e))}function tQ(e){var t=e.year,n=e.month,r=e.day+(ne(t)?tU:tV)[n-1];return ep({year:t,ordinal:r},nh(e))}function tZ(e){var t=e.year,n=tH(t,e.ordinal),r=n.month,i=n.day;return ep({year:t,month:r,day:i},nh(e))}function t$(e,t){if(!(!tG(e.localWeekday)||!tG(e.localWeekNumber)||!tG(e.localWeekYear)))return{minDaysInFirstWeek:4,startOfWeek:1};if(!tG(e.weekday)||!tG(e.weekNumber)||!tG(e.weekYear))throw new e_("Cannot mix locale-based week fields with ISO-based week fields");return tG(e.localWeekday)||(e.weekday=e.localWeekday),tG(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),tG(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}function tY(e){var t=tK(e.year),n=t4(e.month,1,12),r=t4(e.day,1,nn(e.year,e.month));return t?n?!r&&tP("day",e.day):tP("month",e.month):tP("year",e.year)}function tJ(e){var t=e.hour,n=e.minute,r=e.second,i=e.millisecond,a=t4(t,0,23)||24===t&&0===n&&0===r&&0===i,s=t4(n,0,59),o=t4(r,0,59),u=t4(i,0,999);return a?s?o?!u&&tP("millisecond",i):tP("second",r):tP("minute",n):tP("hour",t)}function tG(e){return void 0===e}function tq(e){return"number"==typeof e}function tK(e){return"number"==typeof e&&e%1==0}function tX(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function t2(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function t0(e,t,n){if(0!==e.length)return e.reduce(function(e,r){var i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i},null)[1]}function t1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function t3(e){if(null==e)return null;if("object"!=typeof e)throw new eN("Week settings must be an object");if(!t4(e.firstDay,1,7)||!t4(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(function(e){return!t4(e,1,7)}))throw new eN("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function t4(e,t,n){return tK(e)&&e>=t&&e<=n}function t6(e,t){return void 0===t&&(t=2),e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0")}function t5(e){if(!tG(e)&&null!==e&&""!==e)return parseInt(e,10)}function t8(e){if(!tG(e)&&null!==e&&""!==e)return parseFloat(e)}function t7(e){if(!tG(e)&&null!==e&&""!==e)return Math.floor(1e3*parseFloat("0."+e))}function t9(e,t,n){void 0===n&&(n=!1);var r=Math.pow(10,t);return(n?Math.trunc:Math.round)(e*r)/r}function ne(e){return e%4==0&&(e%100!=0||e%400==0)}function nt(e){return ne(e)?366:365}function nn(e,t){var n,r=(n=t-1)-12*Math.floor(n/12)+1;return 2===r?ne(e+(t-r)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function nr(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(e.year,e.month-1,e.day),+t}function ni(e,t,n){return-tj(tz(e,1,t),n)+t-1}function na(e,t,n){void 0===t&&(t=4),void 0===n&&(n=1);var r=ni(e,t,n),i=ni(e+1,t,n);return(nt(e)-r+i)/7}function ns(e){return e>99?e:e>tI.twoDigitCutoffYear?1900+e:2e3+e}function no(e,t,n,r){void 0===r&&(r=null);var i=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(a.timeZone=r);var s=ep({timeZoneName:t},a),o=new Intl.DateTimeFormat(n,s).formatToParts(i).find(function(e){return"timezonename"===e.type.toLowerCase()});return o?o.value:null}function nu(e,t){var n=parseInt(e,10);Number.isNaN(n)&&(n=0);var r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return 60*n+i}function nl(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new eN("Invalid unit value "+e);return t}function nc(e,t){var n={};for(var r in e)if(t1(e,r)){var i=e[r];if(null==i)continue;n[t(r)]=nl(i)}return n}function nd(e,t){var n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return""+i+t6(n,2)+":"+t6(r,2);case"narrow":return""+i+n+(r>0?":"+r:"");case"techie":return""+i+t6(n,2)+t6(r,2);default:throw RangeError("Value format "+t+" is out of range for property format")}}function nh(e){return["hour","minute","second","millisecond"].reduce(function(t,n){return t[n]=e[n],t},{})}var nf=["January","February","March","April","May","June","July","August","September","October","November","December"],nm=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ny=["J","F","M","A","M","J","J","A","S","O","N","D"];function nv(e){switch(e){case"narrow":return[].concat(ny);case"short":return[].concat(nm);case"long":return[].concat(nf);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var ng=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],np=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],nA=["M","T","W","T","F","S","S"];function nw(e){switch(e){case"narrow":return[].concat(nA);case"short":return[].concat(np);case"long":return[].concat(ng);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var nF=["AM","PM"],nk=["Before Christ","Anno Domini"],nb=["BC","AD"],nD=["B","A"];function nB(e){switch(e){case"narrow":return[].concat(nD);case"short":return[].concat(nb);case"long":return[].concat(nk);default:return null}}function nS(e,t){for(var n,r="",i=eS(e);!(n=i()).done;){var a=n.value;a.literal?r+=a.val:r+=t(a.val)}return r}var nE={D:eU,DD:eP,DDD:eH,DDDD:ej,t:eR,tt:eW,ttt:eQ,tttt:eZ,T:e$,TT:eY,TTT:eJ,TTTT:eG,f:eq,ff:eX,fff:e1,ffff:e4,F:eK,FF:e2,FFF:e3,FFFF:e6},nC=/*#__PURE__*/function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,n){return void 0===n&&(n={}),new e(t,n)},e.parseFormat=function(e){for(var t=null,n="",r=!1,i=[],a=0;a<e.length;a++){var s=e.charAt(a);"'"===s?(n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),t=null,n="",r=!r):r?n+=s:s===t?n+=s:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=s,t=s)}return n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),i},e.macroTokenToFormatOpts=function(e){return nE[e]};var t=e.prototype;return t.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,ep({},this.opts,t)).format()},t.dtFormatter=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,ep({},this.opts,t))},t.formatDateTime=function(e,t){return this.dtFormatter(e,t).format()},t.formatDateTimeParts=function(e,t){return this.dtFormatter(e,t).formatToParts()},t.formatInterval=function(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())},t.resolvedOptions=function(e,t){return this.dtFormatter(e,t).resolvedOptions()},t.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return t6(e,t);var n=ep({},this.opts);return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)},t.formatDateTimeFromString=function(t,n){var r=this,i="en"===this.loc.listingMode(),a=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=function(e,n){return r.loc.extract(t,e,n)},o=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):""},u=function(e,n){return i?nv(e)[t.month-1]:s(n?{month:e}:{month:e,day:"numeric"},"month")},l=function(e,n){return i?nw(e)[t.weekday-1]:s(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},c=function(n){var i=e.macroTokenToFormatOpts(n);return i?r.formatWithSystemDefault(t,i):n},d=function(e){return i?nB(e)[t.year<0?0:1]:s({era:e},"era")};return nS(e.parseFormat(n),function(e){switch(e){case"S":return r.num(t.millisecond);case"u":case"SSS":return r.num(t.millisecond,3);case"s":return r.num(t.second);case"ss":return r.num(t.second,2);case"uu":return r.num(Math.floor(t.millisecond/10),2);case"uuu":return r.num(Math.floor(t.millisecond/100));case"m":return r.num(t.minute);case"mm":return r.num(t.minute,2);case"h":return r.num(t.hour%12==0?12:t.hour%12);case"hh":return r.num(t.hour%12==0?12:t.hour%12,2);case"H":return r.num(t.hour);case"HH":return r.num(t.hour,2);case"Z":return o({format:"narrow",allowZ:r.opts.allowZ});case"ZZ":return o({format:"short",allowZ:r.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:r.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:r.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:r.loc.locale});case"z":return t.zoneName;case"a":return i?nF[t.hour<12?0:1]:s({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return a?s({day:"numeric"},"day"):r.num(t.day);case"dd":return a?s({day:"2-digit"},"day"):r.num(t.day,2);case"c":case"E":return r.num(t.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return a?s({month:"numeric",day:"numeric"},"month"):r.num(t.month);case"LL":return a?s({month:"2-digit",day:"numeric"},"month"):r.num(t.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return a?s({month:"numeric"},"month"):r.num(t.month);case"MM":return a?s({month:"2-digit"},"month"):r.num(t.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return a?s({year:"numeric"},"year"):r.num(t.year);case"yy":return a?s({year:"2-digit"},"year"):r.num(t.year.toString().slice(-2),2);case"yyyy":return a?s({year:"numeric"},"year"):r.num(t.year,4);case"yyyyyy":return a?s({year:"numeric"},"year"):r.num(t.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return r.num(t.weekYear.toString().slice(-2),2);case"kkkk":return r.num(t.weekYear,4);case"W":return r.num(t.weekNumber);case"WW":return r.num(t.weekNumber,2);case"n":return r.num(t.localWeekNumber);case"nn":return r.num(t.localWeekNumber,2);case"ii":return r.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return r.num(t.localWeekYear,4);case"o":return r.num(t.ordinal);case"ooo":return r.num(t.ordinal,3);case"q":return r.num(t.quarter);case"qq":return r.num(t.quarter,2);case"X":return r.num(Math.floor(t.ts/1e3));case"x":return r.num(t.ts);default:return c(e)}})},t.formatDurationFromString=function(t,n){var r,i=this,a=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=e.parseFormat(n),o=s.reduce(function(e,t){var n=t.literal,r=t.val;return n?e:e.concat(r)},[]);return nS(s,(r=t.shiftTo.apply(t,o.map(a).filter(function(e){return e})),function(e){var t=a(e);return t?i.num(r.get(t),e.length):e}))},e}(),nT=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function nO(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return RegExp("^"+t.reduce(function(e,t){return e+t.source},"")+"$")}function n_(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce(function(t,n){var r=t[0],i=t[1],a=n(e,t[2]),s=a[0],o=a[1],u=a[2];return[ep({},r,s),o||i,u]},[{},null,1]).slice(0,2)}}function nM(e){if(null==e)return[null,null];for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0;i<n.length;i++){var a=n[i],s=a[0],o=a[1],u=s.exec(e);if(u)return o(u)}return[null,null]}function nN(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n){var r,i={};for(r=0;r<t.length;r++)i[t[r]]=t5(e[n+r]);return[i,null,n+r]}}var nx=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,nI=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,nL=RegExp(""+nI.source+("(?:"+nx.source+"?(?:\\[(")+nT.source+")\\])?)?"),nV=RegExp("(?:T"+nL.source+")?"),nU=nN("weekYear","weekNumber","weekDay"),nP=nN("year","ordinal"),nz=RegExp(nI.source+" ?(?:"+nx.source+"|("+nT.source+"))?"),nH=RegExp("(?: "+nz.source+")?");function nj(e,t,n){var r=e[t];return tG(r)?n:t5(r)}function nR(e,t){return[{hours:nj(e,t,0),minutes:nj(e,t+1,0),seconds:nj(e,t+2,0),milliseconds:t7(e[t+3])},null,t+4]}function nW(e,t){var n=!e[t]&&!e[t+1],r=nu(e[t+1],e[t+2]);return[{},n?null:tA.instance(r),t+3]}function nQ(e,t){return[{},e[t]?tn.create(e[t]):null,t+1]}var nZ=RegExp("^T?"+nI.source+"$"),n$=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function nY(e){var t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],s=e[5],o=e[6],u=e[7],l=e[8],c="-"===t[0],d=u&&"-"===u[0],h=function(e,t){return void 0===t&&(t=!1),void 0!==e&&(t||e&&c)?-e:e};return[{years:h(t8(n)),months:h(t8(r)),weeks:h(t8(i)),days:h(t8(a)),hours:h(t8(s)),minutes:h(t8(o)),seconds:h(t8(u),"-0"===u),milliseconds:h(t7(l),d)}]}var nJ={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function nG(e,t,n,r,i,a,s){var o={year:2===t.length?ns(t5(t)):t5(t),month:nm.indexOf(n)+1,day:t5(r),hour:t5(i),minute:t5(a)};return s&&(o.second=t5(s)),e&&(o.weekday=e.length>3?ng.indexOf(e)+1:np.indexOf(e)+1),o}var nq=/^(?:(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\d)(\d\d)))$/;function nK(e){var t=e[1],n=e[2],r=e[3],i=e[4],a=e[5],s=e[6],o=e[7],u=e[8],l=e[9],c=e[10],d=e[11];return[nG(t,i,r,n,a,s,o),new tA(u?nJ[u]:l?0:nu(c,d))]}var nX=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,n2=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,n0=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function n1(e){var t=e[1],n=e[2],r=e[3];return[nG(t,e[4],r,n,e[5],e[6],e[7]),tA.utcInstance]}function n3(e){var t=e[1],n=e[2],r=e[3],i=e[4],a=e[5],s=e[6];return[nG(t,e[7],n,r,i,a,s),tA.utcInstance]}var n4=nO(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,nV),n6=nO(/(\d{4})-?W(\d\d)(?:-?(\d))?/,nV),n5=nO(/(\d{4})-?(\d{3})/,nV),n8=nO(nL),n7=n_(function(e,t){return[{year:nj(e,t),month:nj(e,t+1,1),day:nj(e,t+2,1)},null,t+3]},nR,nW,nQ),n9=n_(nU,nR,nW,nQ),re=n_(nP,nR,nW,nQ),rt=n_(nR,nW,nQ),rn=n_(nR),rr=nO(/(\d{4})-(\d\d)-(\d\d)/,nH),ri=nO(nz),ra=n_(nR,nW,nQ),rs="Invalid Duration",ro={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},ru=ep({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},ro),rl=ep({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:0x1e18558,milliseconds:31556952e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:7889238,milliseconds:7889238e3},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},ro),rc=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],rd=rc.slice(0).reverse();function rh(e,t,n){return void 0===n&&(n=!1),new ry({values:n?t.values:ep({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix})}function rf(e,t){for(var n,r,i=null!=(n=t.milliseconds)?n:0,a=eS(rd.slice(1));!(r=a()).done;){var s=r.value;t[s]&&(i+=t[s]*e[s].milliseconds)}return i}function rm(e,t){var n=0>rf(e,t)?-1:1;rc.reduceRight(function(r,i){if(tG(t[i]))return r;if(r){var a=t[r]*n,s=e[i][r],o=Math.floor(a/s);t[i]+=o*n,t[r]-=o*s*n}return i},null),rc.reduce(function(n,r){if(tG(t[r]))return n;if(n){var i=t[n]%1;t[n]-=i,t[r]+=i*e[n][r]}return r},null)}var ry=/*#__PURE__*/function(e){function t(e){var t="longterm"===e.conversionAccuracy,n=t?rl:ru;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||tg.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}t.fromMillis=function(e,n){return t.fromObject({milliseconds:e},n)},t.fromObject=function(e,n){if(void 0===n&&(n={}),null==e||"object"!=typeof e)throw new eN("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new t({values:nc(e,t.normalizeUnit),loc:tg.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})},t.fromDurationLike=function(e){if(tq(e))return t.fromMillis(e);if(t.isDuration(e))return e;if("object"==typeof e)return t.fromObject(e);throw new eN("Unknown duration argument "+e+" of type "+typeof e)},t.fromISO=function(e,n){var r=nM(e,[n$,nY])[0];return r?t.fromObject(r,n):t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.fromISOTime=function(e,n){var r=nM(e,[nZ,rn])[0];return r?t.fromObject(r,n):t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.invalid=function(e,n){if(void 0===n&&(n=null),!e)throw new eN("need to specify a reason the Duration is invalid");var r=e instanceof tL?e:new tL(e,n);if(!tI.throwOnInvalid)return new t({invalid:r});throw new eO(r)},t.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new eM(e);return t},t.isDuration=function(e){return e&&e.isLuxonDuration||!1};var n=t.prototype;return n.toFormat=function(e,t){void 0===t&&(t={});var n=ep({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?nC.create(this.loc,n).formatDurationFromString(this,e):rs},n.toHuman=function(e){var t=this;if(void 0===e&&(e={}),!this.isValid)return rs;var n=rc.map(function(n){var r=t.values[n];return tG(r)?null:t.loc.numberFormatter(ep({style:"unit",unitDisplay:"long"},e,{unit:n.slice(0,-1)})).format(r)}).filter(function(e){return e});return this.loc.listFormatter(ep({type:"conjunction",style:e.listStyle||"narrow"},e)).format(n)},n.toObject=function(){return this.isValid?ep({},this.values):{}},n.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(e+=t9(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},n.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();return t<0||t>=864e5?null:(e=ep({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e,{includeOffset:!1}),r3.fromMillis(t,{zone:"UTC"}).toISOTime(e))},n.toJSON=function(){return this.toISO()},n.toString=function(){return this.toISO()},n[e]=function(){return this.isValid?"Duration { values: "+JSON.stringify(this.values)+" }":"Duration { Invalid, reason: "+this.invalidReason+" }"},n.toMillis=function(){return this.isValid?rf(this.matrix,this.values):NaN},n.valueOf=function(){return this.toMillis()},n.plus=function(e){if(!this.isValid)return this;for(var n=t.fromDurationLike(e),r={},i=0;i<rc.length;i++){var a=rc[i];(t1(n.values,a)||t1(this.values,a))&&(r[a]=n.get(a)+this.get(a))}return rh(this,{values:r},!0)},n.minus=function(e){if(!this.isValid)return this;var n=t.fromDurationLike(e);return this.plus(n.negate())},n.mapUnits=function(e){if(!this.isValid)return this;for(var t={},n=0,r=Object.keys(this.values);n<r.length;n++){var i=r[n];t[i]=nl(e(this.values[i],i))}return rh(this,{values:t},!0)},n.get=function(e){return this[t.normalizeUnit(e)]},n.set=function(e){return this.isValid?rh(this,{values:ep({},this.values,nc(e,t.normalizeUnit))}):this},n.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.conversionAccuracy,a=t.matrix;return rh(this,{loc:this.loc.clone({locale:n,numberingSystem:r}),matrix:a,conversionAccuracy:i})},n.as=function(e){return this.isValid?this.shiftTo(e).get(e):NaN},n.normalize=function(){if(!this.isValid)return this;var e=this.toObject();return rm(this.matrix,e),rh(this,{values:e},!0)},n.rescale=function(){return this.isValid?rh(this,{values:function(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=r[n],a=i[0],s=i[1];0!==s&&(t[a]=s)}return t}(this.normalize().shiftToAll().toObject())},!0):this},n.shiftTo=function(){for(var e,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];if(!this.isValid||0===r.length)return this;r=r.map(function(e){return t.normalizeUnit(e)});for(var a={},s={},o=this.toObject(),u=0;u<rc.length;u++){var l=rc[u];if(r.indexOf(l)>=0){e=l;var c=0;for(var d in s)c+=this.matrix[d][l]*s[d],s[d]=0;tq(o[l])&&(c+=o[l]);var h=Math.trunc(c);a[l]=h,s[l]=(1e3*c-1e3*h)/1e3}else tq(o[l])&&(s[l]=o[l])}for(var f in s)0!==s[f]&&(a[e]+=f===e?s[f]:s[f]/this.matrix[e][f]);return rm(this.matrix,a),rh(this,{values:a},!0)},n.shiftToAll=function(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this},n.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);t<n.length;t++){var r=n[t];e[r]=0===this.values[r]?0:-this.values[r]}return rh(this,{values:e},!0)},n.equals=function(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;for(var t=0;t<rc.length;t++){var n,r,i=rc[t];if(n=this.values[i],r=e.values[i],void 0===n||0===n?void 0!==r&&0!==r:n!==r)return!1}return!0},eg(t,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),t}(Symbol.for("nodejs.util.inspect.custom")),rv="Invalid Interval",rg=/*#__PURE__*/function(e){function t(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}t.invalid=function(e,n){if(void 0===n&&(n=null),!e)throw new eN("need to specify a reason the Interval is invalid");var r=e instanceof tL?e:new tL(e,n);if(!tI.throwOnInvalid)return new t({invalid:r});throw new eT(r)},t.fromDateTimes=function(e,n){var r=r4(e),i=r4(n),a=r&&r.isValid?i&&i.isValid?i<r?rg.invalid("end before start","The end of an interval must be after its start, but you had start="+r.toISO()+" and end="+i.toISO()):null:rg.invalid("missing or invalid end"):rg.invalid("missing or invalid start");return null==a?new t({start:r,end:i}):a},t.after=function(e,n){var r=ry.fromDurationLike(n),i=r4(e);return t.fromDateTimes(i,i.plus(r))},t.before=function(e,n){var r=ry.fromDurationLike(n),i=r4(e);return t.fromDateTimes(i.minus(r),i)},t.fromISO=function(e,n){var r=(e||"").split("/",2),i=r[0],a=r[1];if(i&&a){try{o=(s=r3.fromISO(i,n)).isValid}catch(e){o=!1}try{l=(u=r3.fromISO(a,n)).isValid}catch(e){l=!1}if(o&&l)return t.fromDateTimes(s,u);if(o){var s,o,u,l,c=ry.fromISO(a,n);if(c.isValid)return t.after(s,c)}else if(l){var d=ry.fromISO(i,n);if(d.isValid)return t.before(u,d)}}return t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.isInterval=function(e){return e&&e.isLuxonInterval||!1};var n=t.prototype;return n.length=function(e){return void 0===e&&(e="milliseconds"),this.isValid?this.toDuration.apply(this,[e]).get(e):NaN},n.count=function(e,t){if(void 0===e&&(e="milliseconds"),!this.isValid)return NaN;var n,r=this.start.startOf(e,t);return Math.floor((n=(n=null!=t&&t.useLocaleWeeks?this.end.reconfigure({locale:r.locale}):this.end).startOf(e,t)).diff(r,e).get(e))+(n.valueOf()!==this.end.valueOf())},n.hasSame=function(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))},n.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},n.isAfter=function(e){return!!this.isValid&&this.s>e},n.isBefore=function(e){return!!this.isValid&&this.e<=e},n.contains=function(e){return!!this.isValid&&this.s<=e&&this.e>e},n.set=function(e){var n=void 0===e?{}:e,r=n.start,i=n.end;return this.isValid?t.fromDateTimes(r||this.s,i||this.e):this},n.splitAt=function(){var e=this;if(!this.isValid)return[];for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var a=r.map(r4).filter(function(t){return e.contains(t)}).sort(function(e,t){return e.toMillis()-t.toMillis()}),s=[],o=this.s,u=0;o<this.e;){var l=a[u]||this.e,c=+l>+this.e?this.e:l;s.push(t.fromDateTimes(o,c)),o=c,u+=1}return s},n.splitBy=function(e){var n=ry.fromDurationLike(e);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];for(var r,i=this.s,a=1,s=[];i<this.e;){var o=this.start.plus(n.mapUnits(function(e){return e*a}));r=+o>+this.e?this.e:o,s.push(t.fromDateTimes(i,r)),i=r,a+=1}return s},n.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},n.overlaps=function(e){return this.e>e.s&&this.s<e.e},n.abutsStart=function(e){return!!this.isValid&&+this.e==+e.s},n.abutsEnd=function(e){return!!this.isValid&&+e.e==+this.s},n.engulfs=function(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e},n.equals=function(e){return!!this.isValid&&!!e.isValid&&this.s.equals(e.s)&&this.e.equals(e.e)},n.intersection=function(e){if(!this.isValid)return this;var n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:t.fromDateTimes(n,r)},n.union=function(e){if(!this.isValid)return this;var n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return t.fromDateTimes(n,r)},t.merge=function(e){var t=e.sort(function(e,t){return e.s-t.s}).reduce(function(e,t){var n=e[0],r=e[1];return r?r.overlaps(t)||r.abutsStart(t)?[n,r.union(t)]:[n.concat([r]),t]:[n,t]},[[],null]),n=t[0],r=t[1];return r&&n.push(r),n},t.xor=function(e){for(var n,r,i=null,a=0,s=[],o=e.map(function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]}),u=(n=Array.prototype).concat.apply(n,o).sort(function(e,t){return e.time-t.time}),l=eS(u);!(r=l()).done;){var c=r.value;1===(a+="s"===c.type?1:-1)?i=c.time:(i&&+i!=+c.time&&s.push(t.fromDateTimes(i,c.time)),i=null)}return t.merge(s)},n.difference=function(){for(var e=this,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.xor([this].concat(r)).map(function(t){return e.intersection(t)}).filter(function(e){return e&&!e.isEmpty()})},n.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":rv},n[e]=function(){return this.isValid?"Interval { start: "+this.s.toISO()+", end: "+this.e.toISO()+" }":"Interval { Invalid, reason: "+this.invalidReason+" }"},n.toLocaleString=function(e,t){return void 0===e&&(e=eU),void 0===t&&(t={}),this.isValid?nC.create(this.s.loc.clone(t),e).formatInterval(this):rv},n.toISO=function(e){return this.isValid?this.s.toISO(e)+"/"+this.e.toISO(e):rv},n.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():rv},n.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+"/"+this.e.toISOTime(e):rv},n.toFormat=function(e,t){var n=(void 0===t?{}:t).separator;return this.isValid?""+this.s.toFormat(e)+(void 0===n?" – ":n)+this.e.toFormat(e):rv},n.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):ry.invalid(this.invalidReason)},n.mapEndpoints=function(e){return t.fromDateTimes(e(this.s),e(this.e))},eg(t,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),t}(Symbol.for("nodejs.util.inspect.custom")),rp=/*#__PURE__*/function(){function e(){}return e.hasDST=function(e){void 0===e&&(e=tI.defaultZone);var t=r3.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset},e.isValidIANAZone=function(e){return tn.isValidZone(e)},e.normalizeZone=function(e){return tF(e,tI.defaultZone)},e.getStartOfWeek=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.locObj;return((void 0===r?null:r)||tg.create(void 0===n?null:n)).getStartOfWeek()},e.getMinimumDaysInFirstWeek=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.locObj;return((void 0===r?null:r)||tg.create(void 0===n?null:n)).getMinDaysInFirstWeek()},e.getWeekendWeekdays=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.locObj;return((void 0===r?null:r)||tg.create(void 0===n?null:n)).getWeekendDays().slice()},e.months=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=n.numberingSystem,a=n.locObj,s=n.outputCalendar;return((void 0===a?null:a)||tg.create(void 0===r?null:r,void 0===i?null:i,void 0===s?"gregory":s)).months(e)},e.monthsFormat=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=n.numberingSystem,a=n.locObj,s=n.outputCalendar;return((void 0===a?null:a)||tg.create(void 0===r?null:r,void 0===i?null:i,void 0===s?"gregory":s)).months(e,!0)},e.weekdays=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=n.numberingSystem,a=n.locObj;return((void 0===a?null:a)||tg.create(void 0===r?null:r,void 0===i?null:i,null)).weekdays(e)},e.weekdaysFormat=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=n.numberingSystem,a=n.locObj;return((void 0===a?null:a)||tg.create(void 0===r?null:r,void 0===i?null:i,null)).weekdays(e,!0)},e.meridiems=function(e){var t=(void 0===e?{}:e).locale;return tg.create(void 0===t?null:t).meridiems()},e.eras=function(e,t){void 0===e&&(e="short");var n=(void 0===t?{}:t).locale;return tg.create(void 0===n?null:n,null,"gregory").eras(e)},e.features=function(){return{relative:tX(),localeWeek:t2()}},e}();function rA(e,t){var n=function(e){return e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},r=n(t)-n(e);return Math.floor(ry.fromMillis(r).as("days"))}function rw(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){var n=e[0];return t(function(e){var t=parseInt(e,10);if(!isNaN(t))return t;t="";for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(-1!==e[n].search(tk.hanidec))t+=tD.indexOf(e[n]);else for(var i in tb){var a=tb[i],s=a[0],o=a[1];r>=s&&r<=o&&(t+=r-s)}}return parseInt(t,10)}(n))}}}var rF="[ "+String.fromCharCode(160)+"]",rk=RegExp(rF,"g");function rb(e){return e.replace(/\./g,"\\.?").replace(rk,rF)}function rD(e){return e.replace(/\./g,"").replace(rk," ").toLowerCase()}function rB(e,t){return null===e?null:{regex:RegExp(e.map(rb).join("|")),deser:function(n){var r=n[0];return e.findIndex(function(e){return rD(r)===rD(e)})+t}}}function rS(e,t){return{regex:e,deser:function(e){return nu(e[1],e[2])},groups:t}}function rE(e){return{regex:e,deser:function(e){return e[0]}}}var rC={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}},rT=null;function rO(e,t){var n;return(n=Array.prototype).concat.apply(n,e.map(function(e){return function(e,t){if(e.literal)return e;var n=rN(nC.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t)}))}var r_=/*#__PURE__*/function(){function e(e,t){if(this.locale=e,this.format=t,this.tokens=rO(nC.parseFormat(t),e),this.units=this.tokens.map(function(t){var n,r,i,a,s,o,u,l,c,d,h,f,m;return n=tS(e),r=tS(e,"{2}"),i=tS(e,"{3}"),a=tS(e,"{4}"),s=tS(e,"{6}"),o=tS(e,"{1,2}"),u=tS(e,"{1,3}"),l=tS(e,"{1,6}"),c=tS(e,"{1,9}"),d=tS(e,"{2,4}"),h=tS(e,"{4,6}"),f=function(e){return{regex:RegExp(e.val.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")),deser:function(e){return e[0]},literal:!0}},(m=function(m){if(t.literal)return f(m);switch(m.val){case"G":return rB(e.eras("short"),0);case"GG":return rB(e.eras("long"),0);case"y":return rw(l);case"yy":case"kk":return rw(d,ns);case"yyyy":case"kkkk":return rw(a);case"yyyyy":return rw(h);case"yyyyyy":return rw(s);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return rw(o);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return rw(r);case"MMM":return rB(e.months("short",!0),1);case"MMMM":return rB(e.months("long",!0),1);case"LLL":return rB(e.months("short",!1),1);case"LLLL":return rB(e.months("long",!1),1);case"o":case"S":return rw(u);case"ooo":case"SSS":return rw(i);case"u":return rE(c);case"uu":return rE(o);case"uuu":case"E":case"c":return rw(n);case"a":return rB(e.meridiems(),0);case"EEE":return rB(e.weekdays("short",!1),1);case"EEEE":return rB(e.weekdays("long",!1),1);case"ccc":return rB(e.weekdays("short",!0),1);case"cccc":return rB(e.weekdays("long",!0),1);case"Z":case"ZZ":return rS(RegExp("([+-]"+o.source+")(?::("+r.source+"))?"),2);case"ZZZ":return rS(RegExp("([+-]"+o.source+")("+r.source+")?"),2);case"z":return rE(/[a-z_+-/]{1,256}?/i);case" ":return rE(/[^\S\n\r]/);default:return f(m)}}(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"}).token=t,m}),this.disqualifyingUnit=this.units.find(function(e){return e.invalidReason}),!this.disqualifyingUnit){var n,r=["^"+(n=this.units).map(function(e){return e.regex}).reduce(function(e,t){return e+"("+t.source+")"},"")+"$",n],i=r[0],a=r[1];this.regex=RegExp(i,"i"),this.handlers=a}}return e.prototype.explainFromTokens=function(e){if(!this.isValid)return{input:e,tokens:this.tokens,invalidReason:this.invalidReason};var t,n,r,i=function(e,t,n){var r=e.match(t);if(!r)return[r,{}];var i={},a=1;for(var s in n)if(t1(n,s)){var o=n[s],u=o.groups?o.groups+1:1;!o.literal&&o.token&&(i[o.token.val[0]]=o.deser(r.slice(a,a+u))),a+=u}return[r,i]}(e,this.regex,this.handlers),a=i[0],s=i[1],o=s?(n=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,tG(s.z)||(r=tn.create(s.z)),tG(s.Z)||(r||(r=new tA(s.Z)),t=s.Z),tG(s.q)||(s.M=(s.q-1)*3+1),tG(s.h)||(s.h<12&&1===s.a?s.h+=12:12!==s.h||0!==s.a||(s.h=0)),0===s.G&&s.y&&(s.y=-s.y),tG(s.u)||(s.S=t7(s.u)),[Object.keys(s).reduce(function(e,t){var r=n(t);return r&&(e[r]=s[t]),e},{}),r,t]):[null,null,void 0],u=o[0],l=o[1],c=o[2];if(t1(s,"a")&&t1(s,"H"))throw new e_("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:a,matches:s,result:u,zone:l,specificOffset:c}},eg(e,[{key:"isValid",get:function(){return!this.disqualifyingUnit}},{key:"invalidReason",get:function(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}]),e}();function rM(e,t,n){return new r_(e,n).explainFromTokens(t)}function rN(e,t){if(!e)return null;var n=nC.create(t,e).dtFormatter((rT||(rT=r3.fromMillis(0x16a2e5618e3)),rT)),r=n.formatToParts(),i=n.resolvedOptions();return r.map(function(t){return function(e,t,n){var r=e.type,i=e.value;if("literal"===r){var a=/^\s+$/.test(i);return{literal:!a,val:a?" ":i}}var s=t[r],o=r;"hour"===r&&(o=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");var u=rC[o];if("object"==typeof u&&(u=u[s]),u)return{literal:!1,val:u}}(t,e,i)})}var rx="Invalid DateTime";function rI(e){return new tL("unsupported zone",'the zone "'+e.name+'" is not supported')}function rL(e){return null===e.weekData&&(e.weekData=tR(e.c)),e.weekData}function rV(e){return null===e.localWeekData&&(e.localWeekData=tR(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function rU(e,t){var n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new r3(ep({},n,t,{old:n}))}function rP(e,t,n){var r=e-6e4*t,i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*6e4;var a=n.offset(r);return i===a?[r,i]:[e-6e4*Math.min(i,a),Math.max(i,a)]}function rz(e,t){var n=new Date(e+=6e4*t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function rH(e,t){var n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),a=ep({},e.c,{year:r,month:i,day:Math.min(e.c.day,nn(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),s=ry.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),o=rP(nr(a),n,e.zone),u=o[0],l=o[1];return 0!==s&&(u+=s,l=e.zone.offset(u)),{ts:u,o:l}}function rj(e,t,n,r,i,a){var s=n.setZone,o=n.zone;if((!e||0===Object.keys(e).length)&&!t)return r3.invalid(new tL("unparsable",'the input "'+i+"\" can't be parsed as "+r));var u=r3.fromObject(e,ep({},n,{zone:t||o,specificOffset:a}));return s?u:u.setZone(o)}function rR(e,t,n){return void 0===n&&(n=!0),e.isValid?nC.create(tg.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function rW(e,t){var n=e.c.year>9999||e.c.year<0,r="";return n&&e.c.year>=0&&(r+="+"),r+=t6(e.c.year,n?6:4),t?(r+="-",r+=t6(e.c.month),r+="-"):r+=t6(e.c.month),r+=t6(e.c.day)}function rQ(e,t,n,r,i,a){var s=t6(e.c.hour);return t?(s+=":",s+=t6(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(s+=":")):s+=t6(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(s+=t6(e.c.second),0===e.c.millisecond&&r||(s+=".",s+=t6(e.c.millisecond,3))),i&&(e.isOffsetFixed&&0===e.offset&&!a?s+="Z":e.o<0?(s+="-",s+=t6(Math.trunc(-e.o/60)),s+=":",s+=t6(Math.trunc(-e.o%60))):(s+="+",s+=t6(Math.trunc(e.o/60)),s+=":",s+=t6(Math.trunc(e.o%60)))),a&&(s+="["+e.zone.ianaName+"]"),s}var rZ={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},r$={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},rY={ordinal:1,hour:0,minute:0,second:0,millisecond:0},rJ=["year","month","day","hour","minute","second","millisecond"],rG=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],rq=["year","ordinal","hour","minute","second","millisecond"];function rK(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new eM(e);return t}(e)}}function rX(e,t){var n,r,i=tF(t.zone,tI.defaultZone);if(!i.isValid)return r3.invalid(rI(i));var a=tg.fromObject(t);if(tG(e.year))n=tI.now();else{for(var s=0;s<rJ.length;s++){var o=rJ[s];tG(e[o])&&(e[o]=rZ[o])}var u=tY(e)||tJ(e);if(u)return r3.invalid(u);var l=(r1[i]||(void 0===em&&(em=tI.now()),r1[i]=i.offset(em)),r1[i]),c=rP(nr(e),l,i);n=c[0],r=c[1]}return new r3({ts:n,zone:i,loc:a,o:r})}function r2(e,t,n){var r=!!tG(n.round)||n.round,i=function(e,i){return e=t9(e,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(e,i)},a=function(r){return n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r)};if(n.unit)return i(a(n.unit),n.unit);for(var s,o=eS(n.units);!(s=o()).done;){var u=s.value,l=a(u);if(Math.abs(l)>=1)return i(l,u)}return i(e>t?-0:0,n.units[n.units.length-1])}function r0(e){var t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}var r1={},r3=/*#__PURE__*/function(e){function t(e){var t=e.zone||tI.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new tL("invalid input"):null)||(t.isValid?null:rI(t));this.ts=tG(e.ts)?tI.now():e.ts;var r=null,i=null;if(!n){if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var a=[e.old.c,e.old.o];r=a[0],i=a[1]}else{var s=tq(e.o)&&!e.old?e.o:t.offset(this.ts);r=(n=Number.isNaN((r=rz(this.ts,s)).year)?new tL("invalid input"):null)?null:r,i=n?null:s}}this._zone=t,this.loc=e.loc||tg.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}t.now=function(){return new t({})},t.local=function(){var e=r0(arguments),t=e[0],n=e[1];return rX({year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]},t)},t.utc=function(){var e=r0(arguments),t=e[0],n=e[1],r=n[0],i=n[1],a=n[2],s=n[3],o=n[4],u=n[5],l=n[6];return t.zone=tA.utcInstance,rX({year:r,month:i,day:a,hour:s,minute:o,second:u,millisecond:l},t)},t.fromJSDate=function(e,n){void 0===n&&(n={});var r="[object Date]"===Object.prototype.toString.call(e)?e.valueOf():NaN;if(Number.isNaN(r))return t.invalid("invalid input");var i=tF(n.zone,tI.defaultZone);return i.isValid?new t({ts:r,zone:i,loc:tg.fromObject(n)}):t.invalid(rI(i))},t.fromMillis=function(e,n){if(void 0===n&&(n={}),tq(e))return e<-864e13||e>864e13?t.invalid("Timestamp out of range"):new t({ts:e,zone:tF(n.zone,tI.defaultZone),loc:tg.fromObject(n)});throw new eN("fromMillis requires a numerical input, but received a "+typeof e+" with value "+e)},t.fromSeconds=function(e,n){if(void 0===n&&(n={}),tq(e))return new t({ts:1e3*e,zone:tF(n.zone,tI.defaultZone),loc:tg.fromObject(n)});throw new eN("fromSeconds requires a numerical input")},t.fromObject=function(e,n){void 0===n&&(n={}),e=e||{};var r,i,a,s,o,u,l,c=tF(n.zone,tI.defaultZone);if(!c.isValid)return t.invalid(rI(c));var d=tg.fromObject(n),h=nc(e,rK),f=t$(h,d),m=f.minDaysInFirstWeek,y=f.startOfWeek,v=tI.now(),g=tG(n.specificOffset)?c.offset(v):n.specificOffset,p=!tG(h.ordinal),A=!tG(h.year),w=!tG(h.month)||!tG(h.day),F=A||w,k=h.weekYear||h.weekNumber;if((F||p)&&k)throw new e_("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(w&&p)throw new e_("Can't mix ordinal dates with month/day");var b,D,B=k||h.weekday&&!F,S=rz(v,g);B?(b=rG,D=r$,S=tR(S,m,y)):p?(b=rq,D=rY,S=tQ(S)):(b=rJ,D=rZ);for(var E,C=!1,T=eS(b);!(E=T()).done;){var O=E.value;tG(h[O])?C?h[O]=D[O]:h[O]=S[O]:C=!0}var _=(B?(void 0===(r=m)&&(r=4),void 0===(i=y)&&(i=1),a=tK(h.weekYear),s=t4(h.weekNumber,1,na(h.weekYear,r,i)),o=t4(h.weekday,1,7),a?s?!o&&tP("weekday",h.weekday):tP("week",h.weekNumber):tP("weekYear",h.weekYear)):p?(u=tK(h.year),l=t4(h.ordinal,1,nt(h.year)),u?!l&&tP("ordinal",h.ordinal):tP("year",h.year)):tY(h))||tJ(h);if(_)return t.invalid(_);var M=rP(nr(B?tW(h,m,y):p?tZ(h):h),g,c),N=new t({ts:M[0],zone:c,o:M[1],loc:d});return h.weekday&&F&&e.weekday!==N.weekday?t.invalid("mismatched weekday","you can't specify both a weekday of "+h.weekday+" and a date of "+N.toISO()):N.isValid?N:t.invalid(N.invalid)},t.fromISO=function(e,t){void 0===t&&(t={});var n=nM(e,[n4,n7],[n6,n9],[n5,re],[n8,rt]);return rj(n[0],n[1],t,"ISO 8601",e)},t.fromRFC2822=function(e,t){void 0===t&&(t={});var n=nM(e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim(),[nq,nK]);return rj(n[0],n[1],t,"RFC 2822",e)},t.fromHTTP=function(e,t){void 0===t&&(t={});var n=nM(e,[nX,n1],[n2,n1],[n0,n3]);return rj(n[0],n[1],t,"HTTP",t)},t.fromFormat=function(e,n,r){if(void 0===r&&(r={}),tG(e)||tG(n))throw new eN("fromFormat requires an input string and a format");var i,a=r,s=a.locale,o=a.numberingSystem,u=[(i=rM(tg.fromOpts({locale:void 0===s?null:s,numberingSystem:void 0===o?null:o,defaultToEN:!0}),e,n)).result,i.zone,i.specificOffset,i.invalidReason],l=u[0],c=u[1],d=u[2],h=u[3];return h?t.invalid(h):rj(l,c,r,"format "+n,e,d)},t.fromString=function(e,n,r){return void 0===r&&(r={}),t.fromFormat(e,n,r)},t.fromSQL=function(e,t){void 0===t&&(t={});var n=nM(e,[rr,n7],[ri,ra]);return rj(n[0],n[1],t,"SQL",e)},t.invalid=function(e,n){if(void 0===n&&(n=null),!e)throw new eN("need to specify a reason the DateTime is invalid");var r=e instanceof tL?e:new tL(e,n);if(!tI.throwOnInvalid)return new t({invalid:r});throw new eC(r)},t.isDateTime=function(e){return e&&e.isLuxonDateTime||!1},t.parseFormatForOpts=function(e,t){void 0===t&&(t={});var n=rN(e,tg.fromObject(t));return n?n.map(function(e){return e?e.val:null}).join(""):null},t.expandFormat=function(e,t){return void 0===t&&(t={}),rO(nC.parseFormat(e),tg.fromObject(t)).map(function(e){return e.val}).join("")},t.resetCache=function(){em=void 0,r1={}};var n=t.prototype;return n.get=function(e){return this[e]},n.getPossibleOffsets=function(){if(!this.isValid||this.isOffsetFixed)return[this];var e=nr(this.c),t=this.zone.offset(e-864e5),n=this.zone.offset(e+864e5),r=this.zone.offset(e-6e4*t),i=this.zone.offset(e-6e4*n);if(r===i)return[this];var a=e-6e4*r,s=e-6e4*i,o=rz(a,r),u=rz(s,i);return o.hour===u.hour&&o.minute===u.minute&&o.second===u.second&&o.millisecond===u.millisecond?[rU(this,{ts:a}),rU(this,{ts:s})]:[this]},n.resolvedLocaleOptions=function(e){void 0===e&&(e={});var t=nC.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},n.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(tA.instance(e),t)},n.toLocal=function(){return this.setZone(tI.defaultZone)},n.setZone=function(e,n){var r=void 0===n?{}:n,i=r.keepLocalTime,a=r.keepCalendarTime;if((e=tF(e,tI.defaultZone)).equals(this.zone))return this;if(!e.isValid)return t.invalid(rI(e));var s=this.ts;if(void 0!==i&&i||void 0!==a&&a){var o,u,l=e.offset(this.ts);s=(o=this.toObject(),u=e,rP(nr(o),l,u))[0]}return rU(this,{ts:s,zone:e})},n.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.outputCalendar;return rU(this,{loc:this.loc.clone({locale:n,numberingSystem:r,outputCalendar:i})})},n.setLocale=function(e){return this.reconfigure({locale:e})},n.set=function(e){if(!this.isValid)return this;var t,n,r,i,a=nc(e,rK),s=t$(a,this.loc),o=s.minDaysInFirstWeek,u=s.startOfWeek,l=!tG(a.weekYear)||!tG(a.weekNumber)||!tG(a.weekday),c=!tG(a.ordinal),d=!tG(a.year),h=!tG(a.month)||!tG(a.day),f=a.weekYear||a.weekNumber;if((d||h||c)&&f)throw new e_("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&c)throw new e_("Can't mix ordinal dates with month/day");l?i=tW(ep({},tR(this.c,o,u),a),o,u):tG(a.ordinal)?(i=ep({},this.toObject(),a),tG(a.day)&&(i.day=Math.min(nn(i.year,i.month),i.day))):i=tZ(ep({},tQ(this.c),a));var m=(t=i,n=this.o,r=this.zone,rP(nr(t),n,r));return rU(this,{ts:m[0],o:m[1]})},n.plus=function(e){return this.isValid?rU(this,rH(this,ry.fromDurationLike(e))):this},n.minus=function(e){return this.isValid?rU(this,rH(this,ry.fromDurationLike(e).negate())):this},n.startOf=function(e,t){var n=(void 0===t?{}:t).useLocaleWeeks;if(!this.isValid)return this;var r={},i=ry.normalizeUnit(e);switch(i){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0}if("weeks"===i){if(void 0!==n&&n){var a=this.loc.getStartOfWeek();this.weekday<a&&(r.weekNumber=this.weekNumber-1),r.weekday=a}else r.weekday=1}if("quarters"===i){var s=Math.ceil(this.month/3);r.month=(s-1)*3+1}return this.set(r)},n.endOf=function(e,t){var n;return this.isValid?this.plus(((n={})[e]=1,n)).startOf(e,t).minus(1):this},n.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?nC.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):rx},n.toLocaleString=function(e,t){return void 0===e&&(e=eU),void 0===t&&(t={}),this.isValid?nC.create(this.loc.clone(t),e).formatDateTime(this):rx},n.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?nC.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},n.toISO=function(e){var t=void 0===e?{}:e,n=t.format,r=t.suppressSeconds,i=t.suppressMilliseconds,a=t.includeOffset,s=t.extendedZone;if(!this.isValid)return null;var o="extended"===(void 0===n?"extended":n),u=rW(this,o);return u+="T",u+=rQ(this,o,void 0!==r&&r,void 0!==i&&i,void 0===a||a,void 0!==s&&s)},n.toISODate=function(e){var t=(void 0===e?{}:e).format;return this.isValid?rW(this,"extended"===(void 0===t?"extended":t)):null},n.toISOWeekDate=function(){return rR(this,"kkkk-'W'WW-c")},n.toISOTime=function(e){var t=void 0===e?{}:e,n=t.suppressMilliseconds,r=t.suppressSeconds,i=t.includeOffset,a=t.includePrefix,s=t.extendedZone,o=t.format;return this.isValid?(void 0!==a&&a?"T":"")+rQ(this,"extended"===(void 0===o?"extended":o),void 0!==r&&r,void 0!==n&&n,void 0===i||i,void 0!==s&&s):null},n.toRFC2822=function(){return rR(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},n.toHTTP=function(){return rR(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},n.toSQLDate=function(){return this.isValid?rW(this,!0):null},n.toSQLTime=function(e){var t=void 0===e?{}:e,n=t.includeOffset,r=void 0===n||n,i=t.includeZone,a=void 0!==i&&i,s=t.includeOffsetSpace,o="HH:mm:ss.SSS";return(a||r)&&((void 0===s||s)&&(o+=" "),a?o+="z":r&&(o+="ZZ")),rR(this,o,!0)},n.toSQL=function(e){return(void 0===e&&(e={}),this.isValid)?this.toSQLDate()+" "+this.toSQLTime(e):null},n.toString=function(){return this.isValid?this.toISO():rx},n[e]=function(){return this.isValid?"DateTime { ts: "+this.toISO()+", zone: "+this.zone.name+", locale: "+this.locale+" }":"DateTime { Invalid, reason: "+this.invalidReason+" }"},n.valueOf=function(){return this.toMillis()},n.toMillis=function(){return this.isValid?this.ts:NaN},n.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},n.toUnixInteger=function(){return this.isValid?Math.floor(this.ts/1e3):NaN},n.toJSON=function(){return this.toISO()},n.toBSON=function(){return this.toJSDate()},n.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=ep({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},n.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},n.diff=function(e,t,n){if(void 0===t&&(t="milliseconds"),void 0===n&&(n={}),!this.isValid||!e.isValid)return ry.invalid("created by diffing an invalid DateTime");var r,i,a,s,o,u,l,c,d,h,f,m=ep({locale:this.locale,numberingSystem:this.numberingSystem},n),y=(Array.isArray(r=t)?r:[r]).map(ry.normalizeUnit),v=e.valueOf()>this.valueOf(),g=v?this:e,p=v?e:this,A=(o=(s=function(e,t,n){for(var r,i,a=[["years",function(e,t){return t.year-e.year}],["quarters",function(e,t){return t.quarter-e.quarter+(t.year-e.year)*4}],["months",function(e,t){return t.month-e.month+(t.year-e.year)*12}],["weeks",function(e,t){var n=rA(e,t);return(n-n%7)/7}],["days",rA]],s={},o=e,u=0;u<a.length;u++){var l=a[u],c=l[0],d=l[1];n.indexOf(c)>=0&&(r=c,s[c]=d(e,t),(i=o.plus(s))>t?(s[c]--,(e=o.plus(s))>t&&(i=e,s[c]--,e=o.plus(s))):e=i)}return[e,s,i,r]}(g,p,y))[0],u=s[1],l=s[2],c=s[3],d=p-o,0===(h=y.filter(function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0})).length&&(l<p&&(l=o.plus(((i={})[c]=1,i))),l!==o&&(u[c]=(u[c]||0)+d/(l-o))),f=ry.fromObject(u,m),h.length>0?(a=ry.fromMillis(d,m)).shiftTo.apply(a,h).plus(f):f);return v?A.negate():A},n.diffNow=function(e,n){return void 0===e&&(e="milliseconds"),void 0===n&&(n={}),this.diff(t.now(),e,n)},n.until=function(e){return this.isValid?rg.fromDateTimes(this,e):this},n.hasSame=function(e,t,n){if(!this.isValid)return!1;var r=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t,n)<=r&&r<=i.endOf(t,n)},n.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},n.toRelative=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var n=e.base||t.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0,i=["years","months","days","hours","minutes","seconds"],a=e.unit;return Array.isArray(e.unit)&&(i=e.unit,a=void 0),r2(n,this.plus(r),ep({},e,{numeric:"always",units:i,unit:a}))},n.toRelativeCalendar=function(e){return(void 0===e&&(e={}),this.isValid)?r2(e.base||t.fromObject({},{zone:this.zone}),this,ep({},e,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},t.min=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];if(!n.every(t.isDateTime))throw new eN("min requires all arguments be DateTimes");return t0(n,function(e){return e.valueOf()},Math.min)},t.max=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];if(!n.every(t.isDateTime))throw new eN("max requires all arguments be DateTimes");return t0(n,function(e){return e.valueOf()},Math.max)},t.fromFormatExplain=function(e,t,n){void 0===n&&(n={});var r=n,i=r.locale,a=r.numberingSystem;return rM(tg.fromOpts({locale:void 0===i?null:i,numberingSystem:void 0===a?null:a,defaultToEN:!0}),e,t)},t.fromStringExplain=function(e,n,r){return void 0===r&&(r={}),t.fromFormatExplain(e,n,r)},t.buildFormatParser=function(e,t){void 0===t&&(t={});var n=t,r=n.locale,i=n.numberingSystem;return new r_(tg.fromOpts({locale:void 0===r?null:r,numberingSystem:void 0===i?null:i,defaultToEN:!0}),e)},t.fromFormatParser=function(e,n,r){if(void 0===r&&(r={}),tG(e)||tG(n))throw new eN("fromFormatParser requires an input string and a format parser");var i=r,a=i.locale,s=i.numberingSystem,o=tg.fromOpts({locale:void 0===a?null:a,numberingSystem:void 0===s?null:s,defaultToEN:!0});if(!o.equals(n.locale))throw new eN("fromFormatParser called with a locale of "+o+", but the format parser was created for "+n.locale);var u=n.explainFromTokens(e),l=u.result,c=u.zone,d=u.specificOffset,h=u.invalidReason;return h?t.invalid(h):rj(l,c,r,"format "+n.format,e,d)},eg(t,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?rL(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?rL(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?rL(this).weekday:NaN}},{key:"isWeekend",get:function(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}},{key:"localWeekday",get:function(){return this.isValid?rV(this).weekday:NaN}},{key:"localWeekNumber",get:function(){return this.isValid?rV(this).weekNumber:NaN}},{key:"localWeekYear",get:function(){return this.isValid?rV(this).weekYear:NaN}},{key:"ordinal",get:function(){return this.isValid?tQ(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?rp.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?rp.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?rp.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?rp.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.isUniversal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return ne(this.year)}},{key:"daysInMonth",get:function(){return nn(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?nt(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?na(this.weekYear):NaN}},{key:"weeksInLocalWeekYear",get:function(){return this.isValid?na(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}}],[{key:"DATE_SHORT",get:function(){return eU}},{key:"DATE_MED",get:function(){return eP}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return ez}},{key:"DATE_FULL",get:function(){return eH}},{key:"DATE_HUGE",get:function(){return ej}},{key:"TIME_SIMPLE",get:function(){return eR}},{key:"TIME_WITH_SECONDS",get:function(){return eW}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return eQ}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return eZ}},{key:"TIME_24_SIMPLE",get:function(){return e$}},{key:"TIME_24_WITH_SECONDS",get:function(){return eY}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return eJ}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return eG}},{key:"DATETIME_SHORT",get:function(){return eq}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return eK}},{key:"DATETIME_MED",get:function(){return eX}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return e2}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return e0}},{key:"DATETIME_FULL",get:function(){return e1}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return e3}},{key:"DATETIME_HUGE",get:function(){return e4}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return e6}}]),t}(Symbol.for("nodejs.util.inspect.custom"));function r4(e){if(r3.isDateTime(e))return e;if(e&&e.valueOf&&tq(e.valueOf()))return r3.fromJSDate(e);if(e&&"object"==typeof e)return r3.fromObject(e);throw new eN("Unknown datetime argument: "+e+", of type "+typeof e)}ey.DateTime=r3,ey.Duration=ry,ey.FixedOffsetZone=tA,ey.IANAZone=tn,ey.Info=rp,ey.Interval=rg,ey.InvalidZone=tw,ey.Settings=tI,ey.SystemZone=e7,ey.VERSION="3.5.0",ey.Zone=e5;var r6=((e,...t)=>new a(1===e.length?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[r+1],e[0]),e,r))`
|
||
ha-card {
|
||
--legend-spacing: 15px;
|
||
--legend-dot-size: 10px;
|
||
--days-spacing: 15px;
|
||
--day-date-number-font-size: 3.5em;
|
||
--day-date-number-line-height: 1.2em;
|
||
--day-date-text-font-size: 1.25em;
|
||
--events-margin-top: 10px;
|
||
--event-spacing: 5px;
|
||
--event-padding: 10px;
|
||
--event-border-width: 5px;
|
||
--event-border-radius: 5px;
|
||
--event-font-size: 1em;
|
||
--event-line-height: 1.2em;
|
||
--event-icon-size: 18px;
|
||
--weather-icon-size: 30px;
|
||
--weather-temperature-separator: ' / ';
|
||
--weather-temperature-font-size: 1em;
|
||
}
|
||
|
||
ha-card.nobackground {
|
||
border: none !important;
|
||
background-color: transparent !important;
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
ha-card.compact {
|
||
--days-spacing: 5px;
|
||
--day-date-number-font-size: 1.5em;
|
||
--day-date-text-font-size: 1em;
|
||
--events-margin-top: 5px;
|
||
--event-spacing: 2px;
|
||
--event-padding: 2px 5px;
|
||
--event-border-width: 2px;
|
||
--event-font-size: .9em;
|
||
--event-line-height: 1.1em;
|
||
--weather-icon-size: 20px;
|
||
--weather-temperature-font-size: 0.8em;
|
||
}
|
||
|
||
.container {
|
||
container-name: weekplanner;
|
||
container-type: inline-size;
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: var(--days-spacing);
|
||
}
|
||
|
||
.container.hasActions {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.container .legend {
|
||
width: 100%;
|
||
}
|
||
|
||
.container .legend ul {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: var(--legend-spacing);
|
||
margin: 0;
|
||
padding: 0;
|
||
list-style: none;
|
||
}
|
||
|
||
.container .legend ul li {
|
||
display: block;
|
||
}
|
||
|
||
.container .legend ul li:before {
|
||
content: '';
|
||
display: inline-block;
|
||
width: var(--legend-dot-size);
|
||
height: var(--legend-dot-size);
|
||
background-color: var(--legend-calendar-color, var(--divider-color, #ffffff));
|
||
border-radius: 50%;
|
||
margin: 0 5px 0 0;
|
||
vertical-align: middle;
|
||
}
|
||
|
||
.container .day {
|
||
position: relative;
|
||
width: calc((100% - 6 * var(--days-spacing)) / 7);
|
||
margin: 0 0 var(--days-spacing) 0;
|
||
}
|
||
|
||
.container .day .date {
|
||
position: relative;
|
||
z-index: 1;
|
||
}
|
||
|
||
.container .day .date .number {
|
||
font-size: var(--day-date-number-font-size);
|
||
line-height: var(--day-date-number-line-height);
|
||
}
|
||
|
||
.container .day .date .text {
|
||
font-size: var(--day-date-text-font-size);
|
||
}
|
||
|
||
.container .day .weather {
|
||
position: absolute;
|
||
top: 0;
|
||
right: 0;
|
||
z-index: 2;
|
||
font-size: var(--weather-temperature-font-size);
|
||
cursor: pointer;
|
||
}
|
||
|
||
.container .day .weather .icon {
|
||
display: inline-block;
|
||
vertical-align: middle;
|
||
}
|
||
|
||
.container .day .weather .icon img {
|
||
max-width: var(--weather-icon-size);
|
||
max-height: var(--weather-icon-size);
|
||
}
|
||
|
||
.container .day .weather div.temperature {
|
||
display: inline-block;
|
||
margin: 0 5px 0 0;
|
||
vertical-align: middle;
|
||
}
|
||
|
||
.container .day .weather .temperature:has(.high) .low:before {
|
||
content: var(--weather-temperature-separator);
|
||
}
|
||
|
||
.container .day .events {
|
||
margin-top: var(--events-margin-top);
|
||
}
|
||
|
||
.container .day .events .none,
|
||
.container .day .events .event {
|
||
margin-bottom: var(--event-spacing);
|
||
background-color: var(--event-background-color);
|
||
border-radius: 0 var(--event-border-radius) var(--event-border-radius) 0;
|
||
font-size: var(--event-font-size);
|
||
line-height: var(--event-line-height);
|
||
}
|
||
|
||
.container .day .events .none {
|
||
padding: var(--event-padding);
|
||
border-radius: var(--event-border-radius);
|
||
}
|
||
|
||
.container .day .events .event {
|
||
display: flex;
|
||
border-left: var(--event-border-width) solid var(--border-color, var(--divider-color, #ffffff));
|
||
cursor: pointer;
|
||
}
|
||
|
||
.container .day .events .event .additionalColor {
|
||
width: var(--event-border-width);
|
||
background-color: var(--event-additional-color);
|
||
}
|
||
|
||
.container .day .events .event .inner {
|
||
flex-grow: 1;
|
||
padding: var(--event-padding);
|
||
}
|
||
|
||
.container .day .events .event .time {
|
||
color: var(--secondary-text-color, #aaaaaa);
|
||
margin: 0 0 3px 0;
|
||
}
|
||
|
||
.container .day .events .event .location {
|
||
margin: 3px 0 0 0;
|
||
--mdc-icon-size: var(--event-icon-size);
|
||
}
|
||
|
||
.loader {
|
||
position: absolute;
|
||
top: 16px;
|
||
right: 16px;
|
||
width: 40px;
|
||
height: 40px;
|
||
}
|
||
|
||
.loader:after {
|
||
content: " ";
|
||
display: block;
|
||
width: 24px;
|
||
height: 24px;
|
||
margin: 4px;
|
||
border-radius: 50%;
|
||
border: 3px solid var(--primary-text-color);
|
||
border-color: var(--primary-text-color) transparent var(--primary-text-color) transparent;
|
||
animation: loader 1.2s linear infinite;
|
||
}
|
||
|
||
ha-dialog .calendar,
|
||
ha-dialog .datetime,
|
||
ha-dialog .location {
|
||
display: flex;
|
||
align-items: center;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
ha-dialog .calendar ha-icon,
|
||
ha-dialog .datetime ha-icon,
|
||
ha-dialog .location ha-icon {
|
||
margin-right: 8px;
|
||
}
|
||
|
||
ha-dialog .location .info a {
|
||
color: var(--primary-text-color);
|
||
}
|
||
|
||
ha-dialog .description {
|
||
border-top: 1px solid var(--primary-text-color);
|
||
margin-top: 16px;
|
||
padding-top: 16px;
|
||
}
|
||
|
||
@keyframes loader {
|
||
0% {
|
||
transform: rotate(0deg);
|
||
}
|
||
100% {
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
|
||
@container weekplanner (width <= 1280px) {
|
||
.container .day {
|
||
width: calc((100% - 4 * var(--days-spacing)) / 5);
|
||
}
|
||
|
||
ha-card.compact .container .day {
|
||
width: calc((100% - 6 * var(--days-spacing)) / 7);
|
||
}
|
||
}
|
||
|
||
@container weekplanner (width <= 1024px) {
|
||
.container .day {
|
||
width: calc((100% - 2 * var(--days-spacing)) / 3);
|
||
}
|
||
|
||
ha-card.compact .container .day {
|
||
width: calc((100% - 3 * var(--days-spacing)) / 4);
|
||
}
|
||
}
|
||
|
||
@container weekplanner (width <= 640px) {
|
||
.container .day {
|
||
width: 100%;
|
||
}
|
||
|
||
ha-card.compact .container .day {
|
||
width: calc((100% - var(--days-spacing)) / 2);
|
||
}
|
||
}
|
||
`,r5={};r5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAMAAADVRocKAAAAHlBMVEUAAADL2%2FvK2%2FrH2fnI2vrG2PrJ2%2FvL3fzI3PzG2vz01DCXAAAAB3RSTlMAFzNfjrze%2FOgtNAAAAZBJREFUeNrt2UtuwzAMBFBR%2FN%2F%2Fwm2KFkSbOlJMz84PWQ8tUowDZNxut300WdQIFM7qXwSTbv4tx%2FWmemFQPOwApF4ABxD%2FLWhcicz%2F0HEl9icT0B7YiNWfCSAfdYfMSyHs83tg5lsUcD8hIyA%2FMDEDLoQZQAE0CFFAwQWmgwsYuMB0cAEFFyAHF2B%2FhTAjLhPcIWdwh1wwd6jY6PIF8Aj6U56%2BIP0ZY4cgDu6R%2BkIItEB8Qn5RxAOPjlzmh6EKxA%2BGtCiKjQaNw%2FQirQKf%2Fg8vndeOxA4dp3Fs6GzbjC0%2Bx0kUm2iclLHHqHGNthhoysWwQ8jTXbLYloTpUXEG9ago6B6VnKBlLkrII%2BTjIwQ8Qj6ETtQR8lsY09hGuZ9f3HhevAv5V7gJT7pqnfNAhLv1m5Qv0Vjg7MQnjyXp5Evv90WuaGsbckkb%2B5bZyF92KUsvv0gehDfnWzgj38LjTWT5Bq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NbhrQYDq8AgvG5gleYEBJXP%2BxpEdUfcAFbLJXzaRfVgMoi0QA2VL9oHqlQViHMnRMKQERlGBlrclHeEuSSBFAYkCOhFiWNueRZIFZMj%2BgCgGlChguxyG6wqk89kUfgK5LV%2F6roBxUIBivn7Dy4%2B4lOefyvddDYGz148k8yVUH4Zwej5CqXzuNcc5TJf5X8BlPgfTaTDBsUCaQ%2FoYhjtHasG7sYjz4aO9OtlyEASiMHwrO6xNBolYiL7%2FWzYcbKtP5tBmzpdxVb8zC4Ovh2HGTZnVyuB2eL2J1vinOsJBcf4cBRvhENqM6EaB7W9ge5vAejNZ3yTQaKDB9cgcChjaOULlx8jVjnYD5KzDpNVAi6tVcWot%2FDfAUsd%2F1UyHyNukqzRQdTbxM51klpDnmRwwuRiED5zlBiXI5USfv5LgCAo8FhpGGeNjQgVvsGPdtG2zRiE97no%2BZsdiR8K4Be7tqL9JYFHrGagXmFvlp%2BmJ9QfOAhFKkcuz%2BxD1OeF2xxFzYYFlujRDlC7ZZOdcSxcJSuR56dLMgXTJhsRD9TZHUcCEEAZhaAAsQ%2FxnMJE4v7zgBkeABhJywWFCXRh1VL7gaGB3wSHWABOKaWAHQwPgGwTAGmDcIgAJI8FtApBZ5mOIoEputHKc3jfFjOf29QPQe5BuJum%2B4AAAAABJRU5ErkJggg%3D%3D";var il={},ic={};ic="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2219%22%20height%3D%2220%22%3E%3Cpath%20fill%3D%22%23D8D8D8%22%20d%3D%22M1%208a1%201%200%200%201%200-2h8a2%202%200%201%200-1.414-3.414%201%201%200%200%201-1.414-1.414A4%204%200%201%201%209%208zm15%202a1%201%200%201%200-.707-1.707%201%201%200%200%201-1.414-1.414A3%203%200%201%201%2016%2012H2a1%201%200%200%201%200-2zm-1%206H1a1%201%200%200%201%200-2h14a3%203%200%201%201-2.121%205.121%201%201%200%201%201%201.414-1.414A1%201%200%201%200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LCrORTpObHqw%2FNoSCRwePD8mVsf72mzSsv0lpfGpv5WcvS3Uh8LI08rpX9Xjd%2B%2FDwcJU%2FkH3TfyEXazkAAAAASUVORK5CYII%3D"),"clear-night":/*@__PURE__*/e(r5),cloudy:/*@__PURE__*/e(r8),overcast:/*@__PURE__*/e(r8),fog:/*@__PURE__*/e(r7),hail:/*@__PURE__*/e(iu),lightning:/*@__PURE__*/e(r9),"lightning-rainy":/*@__PURE__*/e(ie),"partly-cloudy-day":/*@__PURE__*/e(ir),"partly-cloudy-night":/*@__PURE__*/e(ii),partlycloudy:/*@__PURE__*/e(ir),pouring:/*@__PURE__*/e(ia),rain:/*@__PURE__*/e(is),rainy:/*@__PURE__*/e(is),sleet:/*@__PURE__*/e(iu),snow:/*@__PURE__*/e(io),snowy:/*@__PURE__*/e(io),"snowy-rainy":/*@__PURE__*/e(iu),sunny:/*@__PURE__*/e(il),wind:/*@__PURE__*/e(ic),windy:/*@__PURE__*/e(ic),"windy-variant":/*@__PURE__*/e(ic)};({...id,sunny:/*@__PURE__*/e(r5),partlycloudy:/*@__PURE__*/e(ii),"lightning-rainy":/*@__PURE__*/e(it)});var ih={};ih=JSON.parse('{"name":"week-planner-card_2","version":"1.9.1","description":"Custom Home Assistant card to display events for a number of days from one or several calendars.","source":"src/index.js","module":"dist/week-planner-card_2.js","targets":{"module":{"includeNodeModules":true,"optimize":true}},"scripts":{"watch":"parcel watch","build":"parcel build"},"repository":{"type":"git","url":"git+https://github.com/FamousWolf/week-planner-card.git"},"keywords":["lovelace"],"author":"Rudy Gnodde","licence":"MIT","bugs":{"url":"https://github.com/FamousWolf/week-planner-card/issues"},"homepage":"https://github.com/FamousWolf/week-planner-card","devDependencies":{"@parcel/optimizer-data-url":"^2.12.0","@parcel/transformer-inline-string":"^2.11.0","parcel":"^2.11.0","svgo":"^3.3.2"},"dependencies":{"lit":"^3.1.2","luxon":"^3.4.4"}}'),customElements.define("week-planner-card",class extends el{static styles=r6;_initialized=!1;_loading=0;_events={};_calendarEvents={};_jsonDays="";_calendars;_numberOfDays;_updateInterval;_noCardBackground;_eventBackground;_compact;_language;_weather;_dateFormat;_timeFormat;_locationLink;_startDate;_hideWeekend;_startingDay;_startingDayOffset;_weatherForecast=null;_showLocation;_hidePastEvents;_hideDaysWithoutEvents;_hideTodayWithoutEvents;_filter;_combineSimilarEvents;_showLegend;_actions;static get properties(){return{_days:{type:Array},_config:{type:Object},_isLoading:{type:Boolean},_error:{type:String},_currentEventDetails:{type:Object}}}setConfig(e){if(this._config=e,!e.calendars)throw Error("No calendars are configured");this._title=e.title??null,this._calendars=e.calendars,this._weather=this._getWeatherConfig(e.weather),this._numberOfDays=this._getNumberOfDays(e.days??7),this._hideWeekend=e.hideWeekend??!1,this._startingDay=e.startingDay??"today",this._startingDayOffset=e.startingDayOffset??0,this._startDate=this._getStartDate(),this._updateInterval=e.updateInterval??60,this._noCardBackground=e.noCardBackground??!1,this._eventBackground=e.eventBackground??"var(--card-background-color, inherit)",this._compact=e.compact??!1,this._dayFormat=e.dayFormat??null,this._dateFormat=e.dateFormat??"cccc d LLLL yyyy",this._timeFormat=e.timeFormat??"HH:mm",this._locationLink=e.locationLink??"https://www.google.com/maps/search/?api=1&query=",this._showLocation=e.showLocation??!1,this._hidePastEvents=e.hidePastEvents??!1,this._hideDaysWithoutEvents=e.hideDaysWithoutEvents??!1,this._hideTodayWithoutEvents=e.hideTodayWithoutEvents??!1,this._filter=e.filter??!1,this._combineSimilarEvents=e.combineSimilarEvents??!1,this._showLegend=e.showLegend??!1,this._actions=e.actions??!1,e.locale&&(ey.Settings.defaultLocale=e.locale),this._language=Object.assign({},{fullDay:"Entire day",noEvents:"No events",today:"Today",tomorrow:"Tomorrow",yesterday:"Yesterday",sunday:(0,ey.Info).weekdays("long")[6],monday:(0,ey.Info).weekdays("long")[0],tuesday:(0,ey.Info).weekdays("long")[1],wednesday:(0,ey.Info).weekdays("long")[2],thursday:(0,ey.Info).weekdays("long")[3],friday:(0,ey.Info).weekdays("long")[4],saturday:(0,ey.Info).weekdays("long")[5]},e.texts??{})}_getWeatherConfig(e){if(!e||"string"!=typeof e&&"object"!=typeof e)return null;let t={entity:null,showCondition:!0,showTemperature:!1,showLowTemperature:!1};return"string"==typeof e?t.entity=e:Object.assign(t,e),t}render(){this._initialized||(this._initialized=!0,this._waitForHassAndConfig());let e=[];return this._noCardBackground&&e.push("nobackground"),this._compact&&e.push("compact"),Q`
|
||
<ha-card class="${e.join(" ")}" style="--event-background-color: ${this._eventBackground}">
|
||
<div class="card-content">
|
||
${this._error?Q`<ha-alert alert-type="error">${this._error}</ha-alert>`:""}
|
||
${this._title?Q`<h1 class="card-title">${this._title}</h1>`:""}
|
||
<div class="container${this._actions?" hasActions":""}" @click="${this._handleContainerClick}">
|
||
${this._renderLegend()}
|
||
${this._renderDays()}
|
||
</div>
|
||
${this._renderEventDetailsDialog()}
|
||
${this._isLoading?Q`<div class="loader"></div>`:""}
|
||
</div>
|
||
</ha-card>
|
||
`}_renderLegend(){return this._showLegend?Q`
|
||
<div class="legend">
|
||
<ul>
|
||
${this._calendars.map(e=>{if(!e.hideInLegend)return Q`
|
||
<li style="--legend-calendar-color: ${e.color}">
|
||
${e.name??e.entity}
|
||
</li>
|
||
`})}
|
||
</ul>
|
||
</div>
|
||
`:Q``}_renderDays(){return this._days?Q`
|
||
${this._days.map(e=>this._hideDaysWithoutEvents&&0===e.events.length&&(this._hideTodayWithoutEvents||!this._isToday(e.date))?Q``:Q`
|
||
<div class="day ${e.class}" data-date="${e.date.day}" data-weekday="${e.date.weekday}" data-month="${e.date.month}" data-year="${e.date.year}" data-week="${e.date.weekNumber}">
|
||
<div class="date">
|
||
${this._dayFormat?ef(e.date.toFormat(this._dayFormat)):Q`
|
||
<span class="number">${e.date.day}</span>
|
||
<span class="text">${this._getWeekDayText(e.date)}</span>
|
||
`}
|
||
</div>
|
||
${e.weather?Q`
|
||
<div class="weather" @click="${this._handleWeatherClick}">
|
||
${this._weather?.showTemperature||this._weather?.showLowTemperature?Q`
|
||
<div class="temperature">
|
||
${this._weather?.showTemperature?Q`
|
||
<span class="high">${e.weather.temperature}</span>
|
||
`:""}
|
||
${this._weather?.showLowTemperature?Q`
|
||
<span class="low">${e.weather.templow}</span>
|
||
`:""}
|
||
</div>
|
||
`:""}
|
||
${this._weather?.showCondition?Q`
|
||
<div class="icon">
|
||
<img src="${e.weather.icon}" alt="${e.weather.condition}">
|
||
</div>
|
||
`:""}
|
||
</div>
|
||
`:""}
|
||
<div class="events">
|
||
${0===e.events.length?Q`
|
||
<div class="none">
|
||
${this._language.noEvents}
|
||
</div>
|
||
`:Q`
|
||
${e.events.map(e=>{let t=this._calendarEvents[e];return t?Q`
|
||
<div
|
||
class="event ${t.class}"
|
||
data-entity="${t.calendar}"
|
||
data-additional-entities="${t.otherCalendars.join(",")}"
|
||
data-summary="${t.summary}"
|
||
data-location="${t.location??""}"
|
||
data-start-hour="${t.start.toFormat("H")}"
|
||
data-start-minute="${t.start.toFormat("mm")}"
|
||
data-end-hour="${t.end.toFormat("H")}"
|
||
data-end-minute="${t.end.toFormat("mm")}"
|
||
style="--border-color: ${t.color}"
|
||
@click="${()=>{this._handleEventClick(t)}}"
|
||
>
|
||
${t.otherColors.map(e=>Q`
|
||
<div class="additionalColor"
|
||
style="--event-additional-color: ${e}"></div>
|
||
`)}
|
||
<div class="inner">
|
||
<div class="time">
|
||
${t.fullDay?Q`${this._language.fullDay}`:Q`
|
||
${t.start.toFormat(this._timeFormat)}
|
||
${t.end?" - "+t.end.toFormat(this._timeFormat):""}
|
||
`}
|
||
</div>
|
||
<div class="title">
|
||
${t.summary}
|
||
</div>
|
||
${this._showLocation&&t.location?Q`
|
||
<div class="location">
|
||
<ha-icon icon="mdi:map-marker"></ha-icon>
|
||
${t.location}
|
||
</div>
|
||
`:""}
|
||
</div>
|
||
</div>
|
||
`:Q``})}
|
||
`}
|
||
</div>
|
||
</div>
|
||
`)}
|
||
`:Q``}_renderEventDetailsDialog(){return this._currentEventDetails?Q`
|
||
<ha-dialog
|
||
open
|
||
@closed="${this._closeDialog}"
|
||
.heading="${this._renderEventDetailsDialogHeading()}"
|
||
>
|
||
<div class="content">
|
||
<div class="calendar">
|
||
<ha-icon icon="mdi:calendar-account"></ha-icon>
|
||
<div class="info">
|
||
${this._currentEventDetails.calendarNames.join(", ")}
|
||
</div>
|
||
</div>
|
||
<div class="datetime">
|
||
<ha-icon icon="mdi:calendar-clock"></ha-icon>
|
||
<div class="info">
|
||
${this._renderEventDetailsDate()}
|
||
</div>
|
||
</div>
|
||
${this._currentEventDetails.location?Q`
|
||
<div class="location">
|
||
<ha-icon icon="mdi:map-marker"></ha-icon>
|
||
<div class="info">
|
||
<a href="${this._locationLink}${encodeURI(this._currentEventDetails.location)}" target="_blank">${this._currentEventDetails.location}</a>
|
||
</div>
|
||
</div>
|
||
`:""}
|
||
${this._currentEventDetails.description?Q`
|
||
<div class="description">
|
||
${ef(this._currentEventDetails.description)}
|
||
</div>
|
||
`:""}
|
||
</div>
|
||
</ha-dialog>
|
||
`:Q``}_renderEventDetailsDialogHeading(){return Q`
|
||
<div class="header_title">
|
||
<span>${this._currentEventDetails.summary}</span>
|
||
<ha-icon-button
|
||
.label="${this.hass?.localize("ui.dialogs.generic.close")??"Close"}"
|
||
dialogAction="close"
|
||
class="header_button"
|
||
><ha-icon icon="mdi:close"></ha-icon></ha-icon-button>
|
||
</div>
|
||
`}_renderEventDetailsDate(){let e=this._currentEventDetails.originalStart,t=this._currentEventDetails.originalEnd??null;if(null===t)return Q`
|
||
${e.toFormat(this._dateFormat+" "+this._timeFormat)}
|
||
`;if(this._isFullDay(e,t,!0)){if(24>=Math.abs(e.diff(t,"hours").toObject().hours))return Q`
|
||
${e.toFormat(this._dateFormat)}
|
||
`;{let n=t.minus({seconds:1});return Q`
|
||
${e.toFormat(this._dateFormat)} - ${n.toFormat(this._dateFormat)}
|
||
`}}return this._isSameDay(e,t)?Q`
|
||
${e.toFormat(this._dateFormat+" "+this._timeFormat)+" - "+t.toFormat(this._timeFormat)}
|
||
`:Q`
|
||
${e.toFormat(this._dateFormat+" "+this._timeFormat)} - ${t.toFormat(this._dateFormat+" "+this._timeFormat)}
|
||
`}_getWeatherIcon(e){let t=e?.condition;return t?id[t.toLowerCase()]:null}_waitForHassAndConfig(){if(!this.hass||!this._calendars){window.setTimeout(()=>{this._waitForHassAndConfig()},50);return}this._updateEvents()}_subscribeToWeatherForecast(){this._loading++;let e=!0;this.hass.connection.subscribeMessage(t=>{this._weatherForecast=t.forecast??[],e&&(this._loading--,e=!1)},{type:"weather/subscribe_forecast",forecast_type:this._weather.useTwiceDaily?"twice_daily":"daily",entity_id:this._weather.entity})}_updateEvents(){if(this._loading>0)return;this._loading++,this._isLoading=!0,this._error="",this._events={},this._calendarEvents={},this._startDate=this._getStartDate();let e=this._startDate,t=this._startDate.plus({days:this._numberOfDays}),n=(0,ey.DateTime).now();this._weather&&null===this._weatherForecast&&this._subscribeToWeatherForecast();let r=0;this._calendars.forEach(i=>{i.name||(i={...i,name:this.hass.formatEntityAttributeValue(this.hass.states[i.entity],"friendly_name")});let a=r;this._loading++,this.hass.callApi("get","calendars/"+i.entity+"?start="+encodeURIComponent(e.toISO())+"&end="+encodeURIComponent(t.toISO())).then(e=>{e.forEach(e=>{if(this._isFilterEvent(e,i.filter??""))return;let t=this._convertApiDate(e.start),r=this._convertApiDate(e.end);if(this._hidePastEvents&&r<n)return;let s=this._isFullDay(t,r);s||this._isSameDay(t,r)?this._addEvent(e,t,r,s,i,a):this._handleMultiDayEvent(e,t,r,i,a)}),this._loading--}).catch(e=>{throw e.error||console.log(e),this._error="Error while fetching calendar: "+e.error,this._loading=0,Error(this._error)}),r++});let i=window.setInterval(()=>{0===this._loading&&(clearInterval(i),this._error||this._updateCard(),this._isLoading=!1,window.setTimeout(()=>{this._updateEvents()},1e3*this._updateInterval))},50);this._loading--}_isFilterEvent(e,t){return this._filter&&e.summary.match(this._filter)||t&&e.summary.match(t)}_addEvent(e,t,n,r,i,a){if(this._hideWeekend&&t.weekday>=6)return;let s=t.toISODate();this._events.hasOwnProperty(s)||(this._events[s]=[]);let o=t.toISO()+"-"+n.toISO()+"-"+e.summary;this._combineSimilarEvents||(o=t.toISO()+"-"+n.toISO()+"-"+e.summary+"-"+i.entity),this._calendarEvents.hasOwnProperty(o)?(this._calendarEvents[o].otherCalendars.push(i.entity),i.color&&-1===this._calendarEvents[o].otherColors.indexOf(i.color)&&this._calendarEvents[o].otherColors.push(i.color),i.name&&-1===this._calendarEvents[o].calendarNames.indexOf(i.name)&&this._calendarEvents[o].calendarNames.push(i.name),a<this._calendarEvents[o].calendarSorting&&(this._calendarEvents[o].calendarSorting=a)):(this._calendarEvents[o]={summary:e.summary??null,description:e.description??null,location:e.location??null,start:t,originalStart:this._convertApiDate(e.start),end:n,originalEnd:this._convertApiDate(e.end),fullDay:r,color:i.color??"inherit",otherColors:[],calendar:i.entity,otherCalendars:[],calendarSorting:a,calendarNames:[i.name],class:this._getEventClass(t,n,r)},this._events[s].push(o))}_getEventClass(e,t,n){let r=[],i=(0,ey.DateTime).now();return n&&r.push("fullday"),t<i?r.push("past"):e<=i&&t>i?r.push("ongoing"):r.push("future"),r.join(" ")}_getDayClass(e){let t=[];return this._isToday(e)?t.push("today"):this._isTomorrow(e)?(t.push("tomorrow"),t.push("future")):this._isYesterday(e)?(t.push("yesterday"),t.push("past")):e>(0,ey.DateTime).now()?t.push("future"):t.push("past"),t.push(["sunday","monday","tuesday","wednesday","thursday","friday","saturday","sunday"][e.weekday]),t.join(" ")}_handleMultiDayEvent(e,t,n,r,i){for(;t<n;){let a=t,s=(t=t.plus({days:1}).startOf("day"))<n?t:n;this._addEvent(e,a,s,this._isFullDay(a,s),r,i)}}_updateCard(){let e=[],t=this._weather?this.hass.states[this._weather.entity]:null,n={};this._weatherForecast?.forEach(e=>{e.hasOwnProperty("is_daytime")&&!1===e.is_daytime||(n[ey.DateTime.fromISO(e.datetime).toISODate()]={icon:this._getWeatherIcon(e),condition:this.hass.formatEntityState(t,e.condition),temperature:this.hass.formatEntityAttributeValue(t,"temperature",e.temperature),templow:this.hass.formatEntityAttributeValue(t,"templow",e.templow)})});let r=this._startDate,i=this._startDate.plus({days:this._numberOfDays});for(;r<i;){if(!this._hideWeekend||r.weekday<6){let t=[],i=r.toISODate();this._events.hasOwnProperty(i)&&(t=this._events[i].sort((e,t)=>this._calendarEvents[e].start===this._calendarEvents[t].start?this._calendarEvents[e].calendarSorting<this._calendarEvents[t].calendarSorting?1:this._calendarEvents[e].calendarSorting>this._calendarEvents[t].calendarSorting?-1:0:this._calendarEvents[e].start>this._calendarEvents[t].start?1:-1)),e.push({date:r,events:t,weather:n[i]??null,class:this._getDayClass(r)})}r=r.plus({days:1})}let a=JSON.stringify(e);a!==this._jsonDays&&(this._days=e,this._jsonDays=a)}_getWeekDayText(e){return this._language.today&&this._isToday(e)?this._language.today:this._language.tomorrow&&this._isTomorrow(e)?this._language.tomorrow:this._language.yesterday&&this._isYesterday(e)?this._language.yesterday:[this._language.sunday,this._language.monday,this._language.tuesday,this._language.wednesday,this._language.thursday,this._language.friday,this._language.saturday,this._language.sunday][e.weekday]}_handleContainerClick(e){if(!this._actions)return;let t=new Event("hass-action",{bubbles:!0,composed:!0});t.detail={config:this._actions,action:"tap"},this.dispatchEvent(t),e.stopImmediatePropagation()}_handleEventClick(e){this._actions||(this._currentEventDetails=e)}_closeDialog(){this._currentEventDetails=null}_handleWeatherClick(e){let t=new Event("hass-more-info",{bubbles:!0,composed:!0});t.detail={entityId:this._weather.entity},this.dispatchEvent(t),e.stopImmediatePropagation()}_getNumberOfDays(e){return"month"===e&&(e=(0,ey.DateTime).now().daysInMonth),e}_getStartDate(e){let t=(0,ey.DateTime).now();switch(e??this._startingDay){case"yesterday":t=t.minus({days:1});break;case"tomorrow":t=t.plus({days:1});break;case"sunday":t=this._getWeekDayDate(t,7);break;case"monday":t=this._getWeekDayDate(t,1);break;case"tuesday":t=this._getWeekDayDate(t,2);break;case"wednesday":t=this._getWeekDayDate(t,3);break;case"thursday":t=this._getWeekDayDate(t,4);break;case"friday":t=this._getWeekDayDate(t,5);break;case"saturday":t=this._getWeekDayDate(t,6);break;case"month":t=t.startOf("month")}return 0!==this._startingDayOffset&&(t=t.plus({days:this._startingDayOffset})),this._hideWeekend&&t.weekday>=6&&(t=this._getStartDate("monday")),t.startOf("day")}_getWeekDayDate(e,t){let n=e.weekday;return n>t?e.minus({days:n-t}):n<t?e.minus({days:7-t+n}):e}_convertApiDate(e){let t=null;return e&&(e.dateTime?t=(0,ey.DateTime).fromISO(e.dateTime):e.date&&(t=(0,ey.DateTime).fromISO(e.date))),t}_isFullDay(e,t,n){return null!==e&&null!==t&&!(e.hour>0)&&!(e.minute>0)&&!(e.second>0)&&!(t.hour>0)&&!(t.minute>0)&&!(t.second>0)&&(n||1===Math.abs(e.diff(t,"days").toObject().days))}_isSameDay(e,t){return null===e&&null===t||null!==e&&null!==t&&e.day===t.day&&e.month===t.month&&e.year===t.year}_isToday(e){let t=(0,ey.DateTime).now().startOf("day");return this._isSameDay(e,t)}_isTomorrow(e){let t=(0,ey.DateTime).now().startOf("day").plus({days:1});return this._isSameDay(e,t)}_isYesterday(e){let t=(0,ey.DateTime).now().startOf("day").minus({days:1});return this._isSameDay(e,t)}}),window.customCards=window.customCards||[],window.customCards.push({type:"week-planner-card_2",name:"Week Planner Card 2",description:"Card to display events for a number of days from one or several calendars."}),console.info(`%c WEEK-PLANNER-CARD-2 %c v${ih.version} `,"color: white; background: black; font-weight: 700;","color: black; background: white; font-weight: 700;");
|
||
//# sourceMappingURL=week-planner-card_2.js.map
|