????

Your IP : 18.217.150.104


Current Path : C:/inetpub/vhost/qlhncn.gdtsolutions.vn/www/assets/
Upload File :
Current File : C:/inetpub/vhost/qlhncn.gdtsolutions.vn/www/assets/Notify-088c3978.js

import{j as p,R as ue,E as ci,G as Hl,H as je,J as Qe,K as S,M as x,N as Kt,O as te,T as Ee,l as et,h as en,u as We,Q as hi,r as pt,U as ti,L as fi,k as ql}from"./index-63f91612.js";import{P as Ul,p as Bl,B as $l,q as Gl,l as zl}from"./reactstrap.modern-db56c8a4.js";import{F as vt}from"./FontAwesome4-d45b4e7a.js";import{c as di}from"./_commonjs-dynamic-modules-302442b1.js";import{E as Kl}from"./Empty-452d350a.js";import{C as Jl}from"./DialogCustomize-5c5d912b.js";import"./InputNumber-bbb3e938.js";import"./InputTime-7fc0744c.js";import{T as Zl}from"./TextArea-ca01d8ce.js";import{H as W,T as Yn}from"./const-0478bc07.js";import{checkLinkURL as Xl}from"./DefaultMenu-459746c8.js";const Gh=[{field:"Id",dataID:!0,type:"guid",hidden:!0},{title:"Ngày tạo",field:"Created_Date",type:"datetime",defaultSort:"desc",cellStyle:{width:200}},{title:"Nội dung thông báo",field:"NoiDung",type:"string",dataCheck:!0,searchable:!0,render:r=>p.jsxDEV(Bn,{item:r},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:25,columnNumber:23},globalThis)},{title:"Đã xem báo cáo",field:"DaXemThongBao",type:"boolean",hidden:!0},{title:"Target Id",field:"Target_Id",type:"boolean",hidden:!0},{title:"Targer Module",field:"Targer_Module",type:"boolean",hidden:!0},{title:"Hành động",field:"HanhDong",type:"boolean",hidden:!0},{title:"Đã xem thông báo",field:"DaXemThongBao",type:"boolean",hidden:!0},{title:"Đơn vị gửi",field:"SYS_DonVi.*",dataRef:["DonViGui_Id"],type:"boolean",hidden:!0},{title:"Đơn vị nhận",field:"SYS_DonVi1.*",dataRef:["DonViNhan_Id"],type:"boolean",hidden:!0}],Bn=({item:r})=>{var u,c,f,d,g,y,w,C,T,b;let n="",s="",o="";switch(r.HanhDong){case W.TinNhanTuDonVi:s=p.jsxDEV("b",{className:"text-primary",children:"gửi"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:79,columnNumber:19},globalThis),n=(u=r==null?void 0:r.SYS_DonVi)==null?void 0:u.TenDonVi,o=p.jsxDEV(ue.Fragment,{children:["đã ",s," 1 tin nhắn thông báo."]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:81,columnNumber:17},globalThis);break;case W.DaTrinhKy:s=p.jsxDEV("b",{className:"text-primary",children:"trình ký"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:84,columnNumber:19},globalThis),n=(c=r.SYS_DonVi1)==null?void 0:c.TenDonVi,o=p.jsxDEV(ue.Fragment,{children:["đã ",s,' "',p.jsxDEV("b",{children:r.NoiDung},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:88,columnNumber:27},globalThis),'".']},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:87,columnNumber:9},globalThis);break;case W.TuChoiTrinhKy:s=p.jsxDEV("b",{className:"text-danger",children:"từ chối trình ký"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:93,columnNumber:19},globalThis),n=(f=r.SYS_DonVi1)==null?void 0:f.TenDonVi,o=p.jsxDEV(ue.Fragment,{children:["đã ",s,' "',p.jsxDEV("b",{children:r.NoiDung},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:97,columnNumber:27},globalThis),'".']},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:96,columnNumber:9},globalThis);break;case W.TiepNhanTrinhKy:s=p.jsxDEV("b",{className:"text-success",children:"tiếp nhận trình ký"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:102,columnNumber:19},globalThis),n=(d=r.SYS_DonVi1)==null?void 0:d.TenDonVi,o=p.jsxDEV(ue.Fragment,{children:["đã ",s,' "',p.jsxDEV("b",{children:r.NoiDung},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:106,columnNumber:27},globalThis),'".']},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:105,columnNumber:9},globalThis);break;case W.DaKySo:s=p.jsxDEV("b",{className:"text-primary",children:"ký số"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:111,columnNumber:19},globalThis),n=(g=r.SYS_DonVi)==null?void 0:g.TenDonVi,o=p.jsxDEV(ue.Fragment,{children:["đã ",s,' "',p.jsxDEV("b",{children:r.NoiDung},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:115,columnNumber:27},globalThis),'".']},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:114,columnNumber:9},globalThis);break;case W.GuiBaoCao:s=p.jsxDEV("b",{className:"text-primary",children:"gửi"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:120,columnNumber:19},globalThis),n=(y=r==null?void 0:r.SYS_DonVi)==null?void 0:y.TenDonVi,o=p.jsxDEV(ue.Fragment,{children:["đã ",s,' "',p.jsxDEV("b",{children:r.NoiDung},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:124,columnNumber:27},globalThis),'".']},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:123,columnNumber:9},globalThis);break;case W.DuyetBaoCao:s=p.jsxDEV("b",{className:"text-success",children:"tiếp nhận"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:129,columnNumber:19},globalThis),n=(w=r==null?void 0:r.SYS_DonVi)==null?void 0:w.TenDonVi,o=p.jsxDEV(ue.Fragment,{children:["đã ",s,' "',p.jsxDEV("b",{children:r.NoiDung},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:133,columnNumber:27},globalThis),'".']},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:132,columnNumber:9},globalThis);break;case W.TuChoiBaoCao:s=p.jsxDEV("b",{className:"text-danger",children:"từ chối"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:138,columnNumber:19},globalThis),n=(C=r==null?void 0:r.SYS_DonVi)==null?void 0:C.TenDonVi,o=p.jsxDEV(ue.Fragment,{children:["đã ",s,' "',p.jsxDEV("b",{children:r.NoiDung},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:142,columnNumber:27},globalThis),'"']},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:141,columnNumber:9},globalThis);break;case W.ChinhSuaBaoCao:s=p.jsxDEV("b",{className:"text-info",children:"yêu cầu chỉnh sửa"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:147,columnNumber:19},globalThis),n=(T=r.SYS_DonVi1)==null?void 0:T.TenDonVi,o=p.jsxDEV(ue.Fragment,{children:["đã ",s,' "',p.jsxDEV("b",{children:r.NoiDung},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:151,columnNumber:27},globalThis),'".']},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:150,columnNumber:9},globalThis);break;case W.HuyKySo:s=p.jsxDEV("b",{className:"text-danger",children:"hủy ký số"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:156,columnNumber:19},globalThis),n=(b=r.SYS_DonVi)==null?void 0:b.TenDonVi,o=p.jsxDEV(ue.Fragment,{children:["đã ",s,' "',p.jsxDEV("b",{children:r.NoiDung},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:160,columnNumber:27},globalThis),'".']},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:159,columnNumber:9},globalThis);break;case W.TinNhanTuHeThong:n="Hệ thống",o=p.jsxDEV(ue.Fragment,{children:['thông báo sắp đến hạn "',p.jsxDEV("b",{children:r.NoiDung},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:168,columnNumber:34},globalThis),'".']},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:167,columnNumber:9},globalThis);break}return p.jsxDEV("span",{children:[p.jsxDEV("b",{children:n},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:177,columnNumber:7},globalThis)," ",o]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:176,columnNumber:5},globalThis)};var Pn={exports:{}},ni;function Ql(){return ni||(ni=1,function(r,n){(function(s,o){r.exports=o()})(ci,function(){var s;function o(){return s.apply(null,arguments)}function u(e){s=e}function c(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function f(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function g(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(d(e,t))return!1;return!0}function y(e){return e===void 0}function w(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function C(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function T(e,t){var i=[],a,l=e.length;for(a=0;a<l;++a)i.push(t(e[a],a));return i}function b(e,t){for(var i in t)d(t,i)&&(e[i]=t[i]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function O(e,t,i,a){return Cr(e,t,i,a,!0).utc()}function B(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function k(e){return e._pf==null&&(e._pf=B()),e._pf}var ne;Array.prototype.some?ne=Array.prototype.some:ne=function(e){var t=Object(this),i=t.length>>>0,a;for(a=0;a<i;a++)if(a in t&&e.call(this,t[a],a,t))return!0;return!1};function J(e){if(e._isValid==null){var t=k(e),i=ne.call(t.parsedDateParts,function(l){return l!=null}),a=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i);if(e._strict&&(a=a&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=a;else return a}return e._isValid}function X(e){var t=O(NaN);return e!=null?b(k(t),e):k(t).userInvalidated=!0,t}var Tt=o.momentProperties=[],an=!1;function on(e,t){var i,a,l,h=Tt.length;if(y(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),y(t._i)||(e._i=t._i),y(t._f)||(e._f=t._f),y(t._l)||(e._l=t._l),y(t._strict)||(e._strict=t._strict),y(t._tzm)||(e._tzm=t._tzm),y(t._isUTC)||(e._isUTC=t._isUTC),y(t._offset)||(e._offset=t._offset),y(t._pf)||(e._pf=k(t)),y(t._locale)||(e._locale=t._locale),h>0)for(i=0;i<h;i++)a=Tt[i],l=t[a],y(l)||(e[a]=l);return e}function st(e){on(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),an===!1&&(an=!0,o.updateOffset(this),an=!1)}function ae(e){return e instanceof st||e!=null&&e._isAMomentObject!=null}function lr(e){o.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function re(e,t){var i=!0;return b(function(){if(o.deprecationHandler!=null&&o.deprecationHandler(null,e),i){var a=[],l,h,m,D=arguments.length;for(h=0;h<D;h++){if(l="",typeof arguments[h]=="object"){l+=`
[`+h+"] ";for(m in arguments[0])d(arguments[0],m)&&(l+=m+": "+arguments[0][m]+", ");l=l.slice(0,-2)}else l=arguments[h];a.push(l)}lr(e+`
Arguments: `+Array.prototype.slice.call(a).join("")+`
`+new Error().stack),i=!1}return t.apply(this,arguments)},t)}var ur={};function cr(e,t){o.deprecationHandler!=null&&o.deprecationHandler(e,t),ur[e]||(lr(t),ur[e]=!0)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null;function he(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function qi(e){var t,i;for(i in e)d(e,i)&&(t=e[i],he(t)?this[i]=t:this["_"+i]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function ln(e,t){var i=b({},e),a;for(a in t)d(t,a)&&(f(e[a])&&f(t[a])?(i[a]={},b(i[a],e[a]),b(i[a],t[a])):t[a]!=null?i[a]=t[a]:delete i[a]);for(a in e)d(e,a)&&!d(t,a)&&f(e[a])&&(i[a]=b({},i[a]));return i}function un(e){e!=null&&this.set(e)}var cn;Object.keys?cn=Object.keys:cn=function(e){var t,i=[];for(t in e)d(e,t)&&i.push(t);return i};var Ui={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Bi(e,t,i){var a=this._calendar[e]||this._calendar.sameElse;return he(a)?a.call(t,i):a}function fe(e,t,i){var a=""+Math.abs(e),l=t-a.length,h=e>=0;return(h?i?"+":"":"-")+Math.pow(10,Math.max(0,l)).toString().substr(1)+a}var hn=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,St=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,fn={},Ue={};function _(e,t,i,a){var l=a;typeof a=="string"&&(l=function(){return this[a]()}),e&&(Ue[e]=l),t&&(Ue[t[0]]=function(){return fe(l.apply(this,arguments),t[1],t[2])}),i&&(Ue[i]=function(){return this.localeData().ordinal(l.apply(this,arguments),e)})}function $i(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Gi(e){var t=e.match(hn),i,a;for(i=0,a=t.length;i<a;i++)Ue[t[i]]?t[i]=Ue[t[i]]:t[i]=$i(t[i]);return function(l){var h="",m;for(m=0;m<a;m++)h+=he(t[m])?t[m].call(l,e):t[m];return h}}function xt(e,t){return e.isValid()?(t=hr(t,e.localeData()),fn[t]=fn[t]||Gi(t),fn[t](e)):e.localeData().invalidDate()}function hr(e,t){var i=5;function a(l){return t.longDateFormat(l)||l}for(St.lastIndex=0;i>=0&&St.test(e);)e=e.replace(St,a),St.lastIndex=0,i-=1;return e}var zi={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Ki(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.match(hn).map(function(a){return a==="MMMM"||a==="MM"||a==="DD"||a==="dddd"?a.slice(1):a}).join(""),this._longDateFormat[e])}var Ji="Invalid date";function Zi(){return this._invalidDate}var Xi="%d",Qi=/\d{1,2}/;function es(e){return this._ordinal.replace("%d",e)}var ts={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ns(e,t,i,a){var l=this._relativeTime[i];return he(l)?l(e,t,i,a):l.replace(/%d/i,e)}function rs(e,t){var i=this._relativeTime[e>0?"future":"past"];return he(i)?i(t):i.replace(/%s/i,t)}var at={};function $(e,t){var i=e.toLowerCase();at[i]=at[i+"s"]=at[t]=e}function ie(e){return typeof e=="string"?at[e]||at[e.toLowerCase()]:void 0}function dn(e){var t={},i,a;for(a in e)d(e,a)&&(i=ie(a),i&&(t[i]=e[a]));return t}var fr={};function G(e,t){fr[e]=t}function is(e){var t=[],i;for(i in e)d(e,i)&&t.push({unit:i,priority:fr[i]});return t.sort(function(a,l){return a.priority-l.priority}),t}function Mt(e){return e%4===0&&e%100!==0||e%400===0}function se(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function j(e){var t=+e,i=0;return t!==0&&isFinite(t)&&(i=se(t)),i}function Be(e,t){return function(i){return i!=null?(dr(this,e,i),o.updateOffset(this,t),this):Ot(this,e)}}function Ot(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function dr(e,t,i){e.isValid()&&!isNaN(i)&&(t==="FullYear"&&Mt(e.year())&&e.month()===1&&e.date()===29?(i=j(i),e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),Rt(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](i))}function ss(e){return e=ie(e),he(this[e])?this[e]():this}function as(e,t){if(typeof e=="object"){e=dn(e);var i=is(e),a,l=i.length;for(a=0;a<l;a++)this[i[a].unit](e[i[a].unit])}else if(e=ie(e),he(this[e]))return this[e](t);return this}var mr=/\d/,Q=/\d\d/,pr=/\d{3}/,mn=/\d{4}/,jt=/[+-]?\d{6}/,A=/\d\d?/,gr=/\d\d\d\d?/,vr=/\d\d\d\d\d\d?/,Et=/\d{1,3}/,pn=/\d{1,4}/,It=/[+-]?\d{1,6}/,$e=/\d+/,Ct=/[+-]?\d+/,os=/Z|[+-]\d\d:?\d\d/gi,Yt=/Z|[+-]\d\d(?::?\d\d)?/gi,ls=/[+-]?\d+(\.\d{1,3})?/,ot=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Pt;Pt={};function N(e,t,i){Pt[e]=he(t)?t:function(a,l){return a&&i?i:t}}function us(e,t){return d(Pt,e)?Pt[e](t._strict,t._locale):new RegExp(cs(e))}function cs(e){return ee(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,i,a,l,h){return i||a||l||h}))}function ee(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var gn={};function P(e,t){var i,a=t,l;for(typeof e=="string"&&(e=[e]),w(t)&&(a=function(h,m){m[t]=j(h)}),l=e.length,i=0;i<l;i++)gn[e[i]]=a}function lt(e,t){P(e,function(i,a,l,h){l._w=l._w||{},t(i,l._w,l,h)})}function hs(e,t,i){t!=null&&d(gn,e)&&gn[e](t,i._a,i,e)}var z=0,pe=1,de=2,q=3,oe=4,ge=5,Ie=6,fs=7,ds=8;function ms(e,t){return(e%t+t)%t}var H;Array.prototype.indexOf?H=Array.prototype.indexOf:H=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Rt(e,t){if(isNaN(e)||isNaN(t))return NaN;var i=ms(t,12);return e+=(t-i)/12,i===1?Mt(e)?29:28:31-i%7%2}_("M",["MM",2],"Mo",function(){return this.month()+1}),_("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),_("MMMM",0,0,function(e){return this.localeData().months(this,e)}),$("month","M"),G("month",8),N("M",A),N("MM",A,Q),N("MMM",function(e,t){return t.monthsShortRegex(e)}),N("MMMM",function(e,t){return t.monthsRegex(e)}),P(["M","MM"],function(e,t){t[pe]=j(e)-1}),P(["MMM","MMMM"],function(e,t,i,a){var l=i._locale.monthsParse(e,a,i._strict);l!=null?t[pe]=l:k(i).invalidMonth=e});var ps="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),yr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),br=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,gs=ot,vs=ot;function ys(e,t){return e?c(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||br).test(t)?"format":"standalone"][e.month()]:c(this._months)?this._months:this._months.standalone}function bs(e,t){return e?c(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[br.test(t)?"format":"standalone"][e.month()]:c(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ws(e,t,i){var a,l,h,m=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)h=O([2e3,a]),this._shortMonthsParse[a]=this.monthsShort(h,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(h,"").toLocaleLowerCase();return i?t==="MMM"?(l=H.call(this._shortMonthsParse,m),l!==-1?l:null):(l=H.call(this._longMonthsParse,m),l!==-1?l:null):t==="MMM"?(l=H.call(this._shortMonthsParse,m),l!==-1?l:(l=H.call(this._longMonthsParse,m),l!==-1?l:null)):(l=H.call(this._longMonthsParse,m),l!==-1?l:(l=H.call(this._shortMonthsParse,m),l!==-1?l:null))}function Ns(e,t,i){var a,l,h;if(this._monthsParseExact)return ws.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(l=O([2e3,a]),i&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(l,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(l,"").replace(".","")+"$","i")),!i&&!this._monthsParse[a]&&(h="^"+this.months(l,"")+"|^"+this.monthsShort(l,""),this._monthsParse[a]=new RegExp(h.replace(".",""),"i")),i&&t==="MMMM"&&this._longMonthsParse[a].test(e))return a;if(i&&t==="MMM"&&this._shortMonthsParse[a].test(e))return a;if(!i&&this._monthsParse[a].test(e))return a}}function wr(e,t){var i;if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=j(t);else if(t=e.localeData().monthsParse(t),!w(t))return e}return i=Math.min(e.date(),Rt(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i),e}function Nr(e){return e!=null?(wr(this,e),o.updateOffset(this,!0),this):Ot(this,"Month")}function ks(){return Rt(this.year(),this.month())}function _s(e){return this._monthsParseExact?(d(this,"_monthsRegex")||kr.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=gs),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Ds(e){return this._monthsParseExact?(d(this,"_monthsRegex")||kr.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=vs),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function kr(){function e(m,D){return D.length-m.length}var t=[],i=[],a=[],l,h;for(l=0;l<12;l++)h=O([2e3,l]),t.push(this.monthsShort(h,"")),i.push(this.months(h,"")),a.push(this.months(h,"")),a.push(this.monthsShort(h,""));for(t.sort(e),i.sort(e),a.sort(e),l=0;l<12;l++)t[l]=ee(t[l]),i[l]=ee(i[l]);for(l=0;l<24;l++)a[l]=ee(a[l]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}_("Y",0,0,function(){var e=this.year();return e<=9999?fe(e,4):"+"+e}),_(0,["YY",2],0,function(){return this.year()%100}),_(0,["YYYY",4],0,"year"),_(0,["YYYYY",5],0,"year"),_(0,["YYYYYY",6,!0],0,"year"),$("year","y"),G("year",1),N("Y",Ct),N("YY",A,Q),N("YYYY",pn,mn),N("YYYYY",It,jt),N("YYYYYY",It,jt),P(["YYYYY","YYYYYY"],z),P("YYYY",function(e,t){t[z]=e.length===2?o.parseTwoDigitYear(e):j(e)}),P("YY",function(e,t){t[z]=o.parseTwoDigitYear(e)}),P("Y",function(e,t){t[z]=parseInt(e,10)});function ut(e){return Mt(e)?366:365}o.parseTwoDigitYear=function(e){return j(e)+(j(e)>68?1900:2e3)};var _r=Be("FullYear",!0);function Ts(){return Mt(this.year())}function Ss(e,t,i,a,l,h,m){var D;return e<100&&e>=0?(D=new Date(e+400,t,i,a,l,h,m),isFinite(D.getFullYear())&&D.setFullYear(e)):D=new Date(e,t,i,a,l,h,m),D}function ct(e){var t,i;return e<100&&e>=0?(i=Array.prototype.slice.call(arguments),i[0]=e+400,t=new Date(Date.UTC.apply(null,i)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Vt(e,t,i){var a=7+t-i,l=(7+ct(e,0,a).getUTCDay()-t)%7;return-l+a-1}function Dr(e,t,i,a,l){var h=(7+i-a)%7,m=Vt(e,a,l),D=1+7*(t-1)+h+m,M,R;return D<=0?(M=e-1,R=ut(M)+D):D>ut(e)?(M=e+1,R=D-ut(e)):(M=e,R=D),{year:M,dayOfYear:R}}function ht(e,t,i){var a=Vt(e.year(),t,i),l=Math.floor((e.dayOfYear()-a-1)/7)+1,h,m;return l<1?(m=e.year()-1,h=l+ve(m,t,i)):l>ve(e.year(),t,i)?(h=l-ve(e.year(),t,i),m=e.year()+1):(m=e.year(),h=l),{week:h,year:m}}function ve(e,t,i){var a=Vt(e,t,i),l=Vt(e+1,t,i);return(ut(e)-a+l)/7}_("w",["ww",2],"wo","week"),_("W",["WW",2],"Wo","isoWeek"),$("week","w"),$("isoWeek","W"),G("week",5),G("isoWeek",5),N("w",A),N("ww",A,Q),N("W",A),N("WW",A,Q),lt(["w","ww","W","WW"],function(e,t,i,a){t[a.substr(0,1)]=j(e)});function xs(e){return ht(e,this._week.dow,this._week.doy).week}var Ms={dow:0,doy:6};function Os(){return this._week.dow}function js(){return this._week.doy}function Es(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Is(e){var t=ht(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}_("d",0,"do","day"),_("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),_("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),_("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),_("e",0,0,"weekday"),_("E",0,0,"isoWeekday"),$("day","d"),$("weekday","e"),$("isoWeekday","E"),G("day",11),G("weekday",11),G("isoWeekday",11),N("d",A),N("e",A),N("E",A),N("dd",function(e,t){return t.weekdaysMinRegex(e)}),N("ddd",function(e,t){return t.weekdaysShortRegex(e)}),N("dddd",function(e,t){return t.weekdaysRegex(e)}),lt(["dd","ddd","dddd"],function(e,t,i,a){var l=i._locale.weekdaysParse(e,a,i._strict);l!=null?t.d=l:k(i).invalidWeekday=e}),lt(["d","e","E"],function(e,t,i,a){t[a]=j(e)});function Cs(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Ys(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function vn(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Ps="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Tr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rs="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Vs=ot,As=ot,Fs=ot;function Ls(e,t){var i=c(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?vn(i,this._week.dow):e?i[e.day()]:i}function Ws(e){return e===!0?vn(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Hs(e){return e===!0?vn(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function qs(e,t,i){var a,l,h,m=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)h=O([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(h,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(h,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(h,"").toLocaleLowerCase();return i?t==="dddd"?(l=H.call(this._weekdaysParse,m),l!==-1?l:null):t==="ddd"?(l=H.call(this._shortWeekdaysParse,m),l!==-1?l:null):(l=H.call(this._minWeekdaysParse,m),l!==-1?l:null):t==="dddd"?(l=H.call(this._weekdaysParse,m),l!==-1||(l=H.call(this._shortWeekdaysParse,m),l!==-1)?l:(l=H.call(this._minWeekdaysParse,m),l!==-1?l:null)):t==="ddd"?(l=H.call(this._shortWeekdaysParse,m),l!==-1||(l=H.call(this._weekdaysParse,m),l!==-1)?l:(l=H.call(this._minWeekdaysParse,m),l!==-1?l:null)):(l=H.call(this._minWeekdaysParse,m),l!==-1||(l=H.call(this._weekdaysParse,m),l!==-1)?l:(l=H.call(this._shortWeekdaysParse,m),l!==-1?l:null))}function Us(e,t,i){var a,l,h;if(this._weekdaysParseExact)return qs.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(l=O([2e3,1]).day(a),i&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(l,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(l,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(l,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||(h="^"+this.weekdays(l,"")+"|^"+this.weekdaysShort(l,"")+"|^"+this.weekdaysMin(l,""),this._weekdaysParse[a]=new RegExp(h.replace(".",""),"i")),i&&t==="dddd"&&this._fullWeekdaysParse[a].test(e))return a;if(i&&t==="ddd"&&this._shortWeekdaysParse[a].test(e))return a;if(i&&t==="dd"&&this._minWeekdaysParse[a].test(e))return a;if(!i&&this._weekdaysParse[a].test(e))return a}}function Bs(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=Cs(e,this.localeData()),this.add(e-t,"d")):t}function $s(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Gs(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Ys(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function zs(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||yn.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Vs),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ks(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||yn.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=As),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Js(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||yn.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Fs),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function yn(){function e(Z,ke){return ke.length-Z.length}var t=[],i=[],a=[],l=[],h,m,D,M,R;for(h=0;h<7;h++)m=O([2e3,1]).day(h),D=ee(this.weekdaysMin(m,"")),M=ee(this.weekdaysShort(m,"")),R=ee(this.weekdays(m,"")),t.push(D),i.push(M),a.push(R),l.push(D),l.push(M),l.push(R);t.sort(e),i.sort(e),a.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function bn(){return this.hours()%12||12}function Zs(){return this.hours()||24}_("H",["HH",2],0,"hour"),_("h",["hh",2],0,bn),_("k",["kk",2],0,Zs),_("hmm",0,0,function(){return""+bn.apply(this)+fe(this.minutes(),2)}),_("hmmss",0,0,function(){return""+bn.apply(this)+fe(this.minutes(),2)+fe(this.seconds(),2)}),_("Hmm",0,0,function(){return""+this.hours()+fe(this.minutes(),2)}),_("Hmmss",0,0,function(){return""+this.hours()+fe(this.minutes(),2)+fe(this.seconds(),2)});function Sr(e,t){_(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Sr("a",!0),Sr("A",!1),$("hour","h"),G("hour",13);function xr(e,t){return t._meridiemParse}N("a",xr),N("A",xr),N("H",A),N("h",A),N("k",A),N("HH",A,Q),N("hh",A,Q),N("kk",A,Q),N("hmm",gr),N("hmmss",vr),N("Hmm",gr),N("Hmmss",vr),P(["H","HH"],q),P(["k","kk"],function(e,t,i){var a=j(e);t[q]=a===24?0:a}),P(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),P(["h","hh"],function(e,t,i){t[q]=j(e),k(i).bigHour=!0}),P("hmm",function(e,t,i){var a=e.length-2;t[q]=j(e.substr(0,a)),t[oe]=j(e.substr(a)),k(i).bigHour=!0}),P("hmmss",function(e,t,i){var a=e.length-4,l=e.length-2;t[q]=j(e.substr(0,a)),t[oe]=j(e.substr(a,2)),t[ge]=j(e.substr(l)),k(i).bigHour=!0}),P("Hmm",function(e,t,i){var a=e.length-2;t[q]=j(e.substr(0,a)),t[oe]=j(e.substr(a))}),P("Hmmss",function(e,t,i){var a=e.length-4,l=e.length-2;t[q]=j(e.substr(0,a)),t[oe]=j(e.substr(a,2)),t[ge]=j(e.substr(l))});function Xs(e){return(e+"").toLowerCase().charAt(0)==="p"}var Qs=/[ap]\.?m?\.?/i,ea=Be("Hours",!0);function ta(e,t,i){return e>11?i?"pm":"PM":i?"am":"AM"}var Mr={calendar:Ui,longDateFormat:zi,invalidDate:Ji,ordinal:Xi,dayOfMonthOrdinalParse:Qi,relativeTime:ts,months:ps,monthsShort:yr,week:Ms,weekdays:Ps,weekdaysMin:Rs,weekdaysShort:Tr,meridiemParse:Qs},L={},ft={},dt;function na(e,t){var i,a=Math.min(e.length,t.length);for(i=0;i<a;i+=1)if(e[i]!==t[i])return i;return a}function Or(e){return e&&e.toLowerCase().replace("_","-")}function ra(e){for(var t=0,i,a,l,h;t<e.length;){for(h=Or(e[t]).split("-"),i=h.length,a=Or(e[t+1]),a=a?a.split("-"):null;i>0;){if(l=At(h.slice(0,i).join("-")),l)return l;if(a&&a.length>=i&&na(h,a)>=i-1)break;i--}t++}return dt}function ia(e){return e.match("^[^/\\\\]*$")!=null}function At(e){var t=null,i;if(L[e]===void 0&&r&&r.exports&&ia(e))try{t=dt._abbr,i=di,i("./locale/"+e),Te(t)}catch{L[e]=null}return L[e]}function Te(e,t){var i;return e&&(y(t)?i=ye(e):i=wn(e,t),i?dt=i:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),dt._abbr}function wn(e,t){if(t!==null){var i,a=Mr;if(t.abbr=e,L[e]!=null)cr("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),a=L[e]._config;else if(t.parentLocale!=null)if(L[t.parentLocale]!=null)a=L[t.parentLocale]._config;else if(i=At(t.parentLocale),i!=null)a=i._config;else return ft[t.parentLocale]||(ft[t.parentLocale]=[]),ft[t.parentLocale].push({name:e,config:t}),null;return L[e]=new un(ln(a,t)),ft[e]&&ft[e].forEach(function(l){wn(l.name,l.config)}),Te(e),L[e]}else return delete L[e],null}function sa(e,t){if(t!=null){var i,a,l=Mr;L[e]!=null&&L[e].parentLocale!=null?L[e].set(ln(L[e]._config,t)):(a=At(e),a!=null&&(l=a._config),t=ln(l,t),a==null&&(t.abbr=e),i=new un(t),i.parentLocale=L[e],L[e]=i),Te(e)}else L[e]!=null&&(L[e].parentLocale!=null?(L[e]=L[e].parentLocale,e===Te()&&Te(e)):L[e]!=null&&delete L[e]);return L[e]}function ye(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return dt;if(!c(e)){if(t=At(e),t)return t;e=[e]}return ra(e)}function aa(){return cn(L)}function Nn(e){var t,i=e._a;return i&&k(e).overflow===-2&&(t=i[pe]<0||i[pe]>11?pe:i[de]<1||i[de]>Rt(i[z],i[pe])?de:i[q]<0||i[q]>24||i[q]===24&&(i[oe]!==0||i[ge]!==0||i[Ie]!==0)?q:i[oe]<0||i[oe]>59?oe:i[ge]<0||i[ge]>59?ge:i[Ie]<0||i[Ie]>999?Ie:-1,k(e)._overflowDayOfYear&&(t<z||t>de)&&(t=de),k(e)._overflowWeeks&&t===-1&&(t=fs),k(e)._overflowWeekday&&t===-1&&(t=ds),k(e).overflow=t),e}var oa=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,la=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ua=/Z|[+-]\d\d(?::?\d\d)?/,Ft=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],kn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ca=/^\/?Date\((-?\d+)/i,ha=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,fa={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function jr(e){var t,i,a=e._i,l=oa.exec(a)||la.exec(a),h,m,D,M,R=Ft.length,Z=kn.length;if(l){for(k(e).iso=!0,t=0,i=R;t<i;t++)if(Ft[t][1].exec(l[1])){m=Ft[t][0],h=Ft[t][2]!==!1;break}if(m==null){e._isValid=!1;return}if(l[3]){for(t=0,i=Z;t<i;t++)if(kn[t][1].exec(l[3])){D=(l[2]||" ")+kn[t][0];break}if(D==null){e._isValid=!1;return}}if(!h&&D!=null){e._isValid=!1;return}if(l[4])if(ua.exec(l[4]))M="Z";else{e._isValid=!1;return}e._f=m+(D||"")+(M||""),Dn(e)}else e._isValid=!1}function da(e,t,i,a,l,h){var m=[ma(e),yr.indexOf(t),parseInt(i,10),parseInt(a,10),parseInt(l,10)];return h&&m.push(parseInt(h,10)),m}function ma(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function pa(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ga(e,t,i){if(e){var a=Tr.indexOf(e),l=new Date(t[0],t[1],t[2]).getDay();if(a!==l)return k(i).weekdayMismatch=!0,i._isValid=!1,!1}return!0}function va(e,t,i){if(e)return fa[e];if(t)return 0;var a=parseInt(i,10),l=a%100,h=(a-l)/100;return h*60+l}function Er(e){var t=ha.exec(pa(e._i)),i;if(t){if(i=da(t[4],t[3],t[2],t[5],t[6],t[7]),!ga(t[1],i,e))return;e._a=i,e._tzm=va(t[8],t[9],t[10]),e._d=ct.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),k(e).rfc2822=!0}else e._isValid=!1}function ya(e){var t=ca.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(jr(e),e._isValid===!1)delete e._isValid;else return;if(Er(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:o.createFromInputFallback(e)}o.createFromInputFallback=re("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Ge(e,t,i){return e??t??i}function ba(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function _n(e){var t,i,a=[],l,h,m;if(!e._d){for(l=ba(e),e._w&&e._a[de]==null&&e._a[pe]==null&&wa(e),e._dayOfYear!=null&&(m=Ge(e._a[z],l[z]),(e._dayOfYear>ut(m)||e._dayOfYear===0)&&(k(e)._overflowDayOfYear=!0),i=ct(m,0,e._dayOfYear),e._a[pe]=i.getUTCMonth(),e._a[de]=i.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=a[t]=l[t];for(;t<7;t++)e._a[t]=a[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[q]===24&&e._a[oe]===0&&e._a[ge]===0&&e._a[Ie]===0&&(e._nextDay=!0,e._a[q]=0),e._d=(e._useUTC?ct:Ss).apply(null,a),h=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[q]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==h&&(k(e).weekdayMismatch=!0)}}function wa(e){var t,i,a,l,h,m,D,M,R;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(h=1,m=4,i=Ge(t.GG,e._a[z],ht(F(),1,4).year),a=Ge(t.W,1),l=Ge(t.E,1),(l<1||l>7)&&(M=!0)):(h=e._locale._week.dow,m=e._locale._week.doy,R=ht(F(),h,m),i=Ge(t.gg,e._a[z],R.year),a=Ge(t.w,R.week),t.d!=null?(l=t.d,(l<0||l>6)&&(M=!0)):t.e!=null?(l=t.e+h,(t.e<0||t.e>6)&&(M=!0)):l=h),a<1||a>ve(i,h,m)?k(e)._overflowWeeks=!0:M!=null?k(e)._overflowWeekday=!0:(D=Dr(i,a,l,h,m),e._a[z]=D.year,e._dayOfYear=D.dayOfYear)}o.ISO_8601=function(){},o.RFC_2822=function(){};function Dn(e){if(e._f===o.ISO_8601){jr(e);return}if(e._f===o.RFC_2822){Er(e);return}e._a=[],k(e).empty=!0;var t=""+e._i,i,a,l,h,m,D=t.length,M=0,R,Z;for(l=hr(e._f,e._locale).match(hn)||[],Z=l.length,i=0;i<Z;i++)h=l[i],a=(t.match(us(h,e))||[])[0],a&&(m=t.substr(0,t.indexOf(a)),m.length>0&&k(e).unusedInput.push(m),t=t.slice(t.indexOf(a)+a.length),M+=a.length),Ue[h]?(a?k(e).empty=!1:k(e).unusedTokens.push(h),hs(h,a,e)):e._strict&&!a&&k(e).unusedTokens.push(h);k(e).charsLeftOver=D-M,t.length>0&&k(e).unusedInput.push(t),e._a[q]<=12&&k(e).bigHour===!0&&e._a[q]>0&&(k(e).bigHour=void 0),k(e).parsedDateParts=e._a.slice(0),k(e).meridiem=e._meridiem,e._a[q]=Na(e._locale,e._a[q],e._meridiem),R=k(e).era,R!==null&&(e._a[z]=e._locale.erasConvertYear(R,e._a[z])),_n(e),Nn(e)}function Na(e,t,i){var a;return i==null?t:e.meridiemHour!=null?e.meridiemHour(t,i):(e.isPM!=null&&(a=e.isPM(i),a&&t<12&&(t+=12),!a&&t===12&&(t=0)),t)}function ka(e){var t,i,a,l,h,m,D=!1,M=e._f.length;if(M===0){k(e).invalidFormat=!0,e._d=new Date(NaN);return}for(l=0;l<M;l++)h=0,m=!1,t=on({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[l],Dn(t),J(t)&&(m=!0),h+=k(t).charsLeftOver,h+=k(t).unusedTokens.length*10,k(t).score=h,D?h<a&&(a=h,i=t):(a==null||h<a||m)&&(a=h,i=t,m&&(D=!0));b(e,i||t)}function _a(e){if(!e._d){var t=dn(e._i),i=t.day===void 0?t.date:t.day;e._a=T([t.year,t.month,i,t.hour,t.minute,t.second,t.millisecond],function(a){return a&&parseInt(a,10)}),_n(e)}}function Da(e){var t=new st(Nn(Ir(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ir(e){var t=e._i,i=e._f;return e._locale=e._locale||ye(e._l),t===null||i===void 0&&t===""?X({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),ae(t)?new st(Nn(t)):(C(t)?e._d=t:c(i)?ka(e):i?Dn(e):Ta(e),J(e)||(e._d=null),e))}function Ta(e){var t=e._i;y(t)?e._d=new Date(o.now()):C(t)?e._d=new Date(t.valueOf()):typeof t=="string"?ya(e):c(t)?(e._a=T(t.slice(0),function(i){return parseInt(i,10)}),_n(e)):f(t)?_a(e):w(t)?e._d=new Date(t):o.createFromInputFallback(e)}function Cr(e,t,i,a,l){var h={};return(t===!0||t===!1)&&(a=t,t=void 0),(i===!0||i===!1)&&(a=i,i=void 0),(f(e)&&g(e)||c(e)&&e.length===0)&&(e=void 0),h._isAMomentObject=!0,h._useUTC=h._isUTC=l,h._l=i,h._i=e,h._f=t,h._strict=a,Da(h)}function F(e,t,i,a){return Cr(e,t,i,a,!1)}var Sa=re("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=F.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:X()}),xa=re("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=F.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:X()});function Yr(e,t){var i,a;if(t.length===1&&c(t[0])&&(t=t[0]),!t.length)return F();for(i=t[0],a=1;a<t.length;++a)(!t[a].isValid()||t[a][e](i))&&(i=t[a]);return i}function Ma(){var e=[].slice.call(arguments,0);return Yr("isBefore",e)}function Oa(){var e=[].slice.call(arguments,0);return Yr("isAfter",e)}var ja=function(){return Date.now?Date.now():+new Date},mt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ea(e){var t,i=!1,a,l=mt.length;for(t in e)if(d(e,t)&&!(H.call(mt,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(a=0;a<l;++a)if(e[mt[a]]){if(i)return!1;parseFloat(e[mt[a]])!==j(e[mt[a]])&&(i=!0)}return!0}function Ia(){return this._isValid}function Ca(){return le(NaN)}function Lt(e){var t=dn(e),i=t.year||0,a=t.quarter||0,l=t.month||0,h=t.week||t.isoWeek||0,m=t.day||0,D=t.hour||0,M=t.minute||0,R=t.second||0,Z=t.millisecond||0;this._isValid=Ea(t),this._milliseconds=+Z+R*1e3+M*6e4+D*1e3*60*60,this._days=+m+h*7,this._months=+l+a*3+i*12,this._data={},this._locale=ye(),this._bubble()}function Wt(e){return e instanceof Lt}function Tn(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Ya(e,t,i){var a=Math.min(e.length,t.length),l=Math.abs(e.length-t.length),h=0,m;for(m=0;m<a;m++)(i&&e[m]!==t[m]||!i&&j(e[m])!==j(t[m]))&&h++;return h+l}function Pr(e,t){_(e,0,0,function(){var i=this.utcOffset(),a="+";return i<0&&(i=-i,a="-"),a+fe(~~(i/60),2)+t+fe(~~i%60,2)})}Pr("Z",":"),Pr("ZZ",""),N("Z",Yt),N("ZZ",Yt),P(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=Sn(Yt,e)});var Pa=/([\+\-]|\d\d)/gi;function Sn(e,t){var i=(t||"").match(e),a,l,h;return i===null?null:(a=i[i.length-1]||[],l=(a+"").match(Pa)||["-",0,0],h=+(l[1]*60)+j(l[2]),h===0?0:l[0]==="+"?h:-h)}function xn(e,t){var i,a;return t._isUTC?(i=t.clone(),a=(ae(e)||C(e)?e.valueOf():F(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+a),o.updateOffset(i,!1),i):F(e).local()}function Mn(e){return-Math.round(e._d.getTimezoneOffset())}o.updateOffset=function(){};function Ra(e,t,i){var a=this._offset||0,l;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Sn(Yt,e),e===null)return this}else Math.abs(e)<16&&!i&&(e=e*60);return!this._isUTC&&t&&(l=Mn(this)),this._offset=e,this._isUTC=!0,l!=null&&this.add(l,"m"),a!==e&&(!t||this._changeInProgress?Fr(this,le(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?a:Mn(this)}function Va(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Aa(e){return this.utcOffset(0,e)}function Fa(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Mn(this),"m")),this}function La(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Sn(os,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Wa(e){return this.isValid()?(e=e?F(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Ha(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function qa(){if(!y(this._isDSTShifted))return this._isDSTShifted;var e={},t;return on(e,this),e=Ir(e),e._a?(t=e._isUTC?O(e._a):F(e._a),this._isDSTShifted=this.isValid()&&Ya(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ua(){return this.isValid()?!this._isUTC:!1}function Ba(){return this.isValid()?this._isUTC:!1}function Rr(){return this.isValid()?this._isUTC&&this._offset===0:!1}var $a=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ga=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function le(e,t){var i=e,a=null,l,h,m;return Wt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:w(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(a=$a.exec(e))?(l=a[1]==="-"?-1:1,i={y:0,d:j(a[de])*l,h:j(a[q])*l,m:j(a[oe])*l,s:j(a[ge])*l,ms:j(Tn(a[Ie]*1e3))*l}):(a=Ga.exec(e))?(l=a[1]==="-"?-1:1,i={y:Ce(a[2],l),M:Ce(a[3],l),w:Ce(a[4],l),d:Ce(a[5],l),h:Ce(a[6],l),m:Ce(a[7],l),s:Ce(a[8],l)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(m=za(F(i.from),F(i.to)),i={},i.ms=m.milliseconds,i.M=m.months),h=new Lt(i),Wt(e)&&d(e,"_locale")&&(h._locale=e._locale),Wt(e)&&d(e,"_isValid")&&(h._isValid=e._isValid),h}le.fn=Lt.prototype,le.invalid=Ca;function Ce(e,t){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*t}function Vr(e,t){var i={};return i.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function za(e,t){var i;return e.isValid()&&t.isValid()?(t=xn(t,e),e.isBefore(t)?i=Vr(e,t):(i=Vr(t,e),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function Ar(e,t){return function(i,a){var l,h;return a!==null&&!isNaN(+a)&&(cr(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),h=i,i=a,a=h),l=le(i,a),Fr(this,l,e),this}}function Fr(e,t,i,a){var l=t._milliseconds,h=Tn(t._days),m=Tn(t._months);e.isValid()&&(a=a??!0,m&&wr(e,Ot(e,"Month")+m*i),h&&dr(e,"Date",Ot(e,"Date")+h*i),l&&e._d.setTime(e._d.valueOf()+l*i),a&&o.updateOffset(e,h||m))}var Ka=Ar(1,"add"),Ja=Ar(-1,"subtract");function Lr(e){return typeof e=="string"||e instanceof String}function Za(e){return ae(e)||C(e)||Lr(e)||w(e)||Qa(e)||Xa(e)||e===null||e===void 0}function Xa(e){var t=f(e)&&!g(e),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l,h,m=a.length;for(l=0;l<m;l+=1)h=a[l],i=i||d(e,h);return t&&i}function Qa(e){var t=c(e),i=!1;return t&&(i=e.filter(function(a){return!w(a)&&Lr(e)}).length===0),t&&i}function eo(e){var t=f(e)&&!g(e),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],l,h;for(l=0;l<a.length;l+=1)h=a[l],i=i||d(e,h);return t&&i}function to(e,t){var i=e.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function no(e,t){arguments.length===1&&(arguments[0]?Za(arguments[0])?(e=arguments[0],t=void 0):eo(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var i=e||F(),a=xn(i,this).startOf("day"),l=o.calendarFormat(this,a)||"sameElse",h=t&&(he(t[l])?t[l].call(this,i):t[l]);return this.format(h||this.localeData().calendar(l,this,F(i)))}function ro(){return new st(this)}function io(e,t){var i=ae(e)?e:F(e);return this.isValid()&&i.isValid()?(t=ie(t)||"millisecond",t==="millisecond"?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf()):!1}function so(e,t){var i=ae(e)?e:F(e);return this.isValid()&&i.isValid()?(t=ie(t)||"millisecond",t==="millisecond"?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf()):!1}function ao(e,t,i,a){var l=ae(e)?e:F(e),h=ae(t)?t:F(t);return this.isValid()&&l.isValid()&&h.isValid()?(a=a||"()",(a[0]==="("?this.isAfter(l,i):!this.isBefore(l,i))&&(a[1]===")"?this.isBefore(h,i):!this.isAfter(h,i))):!1}function oo(e,t){var i=ae(e)?e:F(e),a;return this.isValid()&&i.isValid()?(t=ie(t)||"millisecond",t==="millisecond"?this.valueOf()===i.valueOf():(a=i.valueOf(),this.clone().startOf(t).valueOf()<=a&&a<=this.clone().endOf(t).valueOf())):!1}function lo(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function uo(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function co(e,t,i){var a,l,h;if(!this.isValid())return NaN;if(a=xn(e,this),!a.isValid())return NaN;switch(l=(a.utcOffset()-this.utcOffset())*6e4,t=ie(t),t){case"year":h=Ht(this,a)/12;break;case"month":h=Ht(this,a);break;case"quarter":h=Ht(this,a)/3;break;case"second":h=(this-a)/1e3;break;case"minute":h=(this-a)/6e4;break;case"hour":h=(this-a)/36e5;break;case"day":h=(this-a-l)/864e5;break;case"week":h=(this-a-l)/6048e5;break;default:h=this-a}return i?h:se(h)}function Ht(e,t){if(e.date()<t.date())return-Ht(t,e);var i=(t.year()-e.year())*12+(t.month()-e.month()),a=e.clone().add(i,"months"),l,h;return t-a<0?(l=e.clone().add(i-1,"months"),h=(t-a)/(a-l)):(l=e.clone().add(i+1,"months"),h=(t-a)/(l-a)),-(i+h)||0}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function ho(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function fo(e){if(!this.isValid())return null;var t=e!==!0,i=t?this.clone().utc():this;return i.year()<0||i.year()>9999?xt(i,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):he(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",xt(i,"Z")):xt(i,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function mo(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",i,a,l,h;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),i="["+e+'("]',a=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",l="-MM-DD[T]HH:mm:ss.SSS",h=t+'[")]',this.format(i+a+l+h)}function po(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=xt(this,e);return this.localeData().postformat(t)}function go(e,t){return this.isValid()&&(ae(e)&&e.isValid()||F(e).isValid())?le({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vo(e){return this.from(F(),e)}function yo(e,t){return this.isValid()&&(ae(e)&&e.isValid()||F(e).isValid())?le({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function bo(e){return this.to(F(),e)}function Wr(e){var t;return e===void 0?this._locale._abbr:(t=ye(e),t!=null&&(this._locale=t),this)}var Hr=re("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function qr(){return this._locale}var qt=1e3,ze=60*qt,Ut=60*ze,Ur=(365*400+97)*24*Ut;function Ke(e,t){return(e%t+t)%t}function Br(e,t,i){return e<100&&e>=0?new Date(e+400,t,i)-Ur:new Date(e,t,i).valueOf()}function $r(e,t,i){return e<100&&e>=0?Date.UTC(e+400,t,i)-Ur:Date.UTC(e,t,i)}function wo(e){var t,i;if(e=ie(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(i=this._isUTC?$r:Br,e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Ke(t+(this._isUTC?0:this.utcOffset()*ze),Ut);break;case"minute":t=this._d.valueOf(),t-=Ke(t,ze);break;case"second":t=this._d.valueOf(),t-=Ke(t,qt);break}return this._d.setTime(t),o.updateOffset(this,!0),this}function No(e){var t,i;if(e=ie(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(i=this._isUTC?$r:Br,e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ut-Ke(t+(this._isUTC?0:this.utcOffset()*ze),Ut)-1;break;case"minute":t=this._d.valueOf(),t+=ze-Ke(t,ze)-1;break;case"second":t=this._d.valueOf(),t+=qt-Ke(t,qt)-1;break}return this._d.setTime(t),o.updateOffset(this,!0),this}function ko(){return this._d.valueOf()-(this._offset||0)*6e4}function _o(){return Math.floor(this.valueOf()/1e3)}function Do(){return new Date(this.valueOf())}function To(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function So(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function xo(){return this.isValid()?this.toISOString():null}function Mo(){return J(this)}function Oo(){return b({},k(this))}function jo(){return k(this).overflow}function Eo(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}_("N",0,0,"eraAbbr"),_("NN",0,0,"eraAbbr"),_("NNN",0,0,"eraAbbr"),_("NNNN",0,0,"eraName"),_("NNNNN",0,0,"eraNarrow"),_("y",["y",1],"yo","eraYear"),_("y",["yy",2],0,"eraYear"),_("y",["yyy",3],0,"eraYear"),_("y",["yyyy",4],0,"eraYear"),N("N",On),N("NN",On),N("NNN",On),N("NNNN",Ho),N("NNNNN",qo),P(["N","NN","NNN","NNNN","NNNNN"],function(e,t,i,a){var l=i._locale.erasParse(e,a,i._strict);l?k(i).era=l:k(i).invalidEra=e}),N("y",$e),N("yy",$e),N("yyy",$e),N("yyyy",$e),N("yo",Uo),P(["y","yy","yyy","yyyy"],z),P(["yo"],function(e,t,i,a){var l;i._locale._eraYearOrdinalRegex&&(l=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[z]=i._locale.eraYearOrdinalParse(e,l):t[z]=parseInt(e,10)});function Io(e,t){var i,a,l,h=this._eras||ye("en")._eras;for(i=0,a=h.length;i<a;++i){switch(typeof h[i].since){case"string":l=o(h[i].since).startOf("day"),h[i].since=l.valueOf();break}switch(typeof h[i].until){case"undefined":h[i].until=1/0;break;case"string":l=o(h[i].until).startOf("day").valueOf(),h[i].until=l.valueOf();break}}return h}function Co(e,t,i){var a,l,h=this.eras(),m,D,M;for(e=e.toUpperCase(),a=0,l=h.length;a<l;++a)if(m=h[a].name.toUpperCase(),D=h[a].abbr.toUpperCase(),M=h[a].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(D===e)return h[a];break;case"NNNN":if(m===e)return h[a];break;case"NNNNN":if(M===e)return h[a];break}else if([m,D,M].indexOf(e)>=0)return h[a]}function Yo(e,t){var i=e.since<=e.until?1:-1;return t===void 0?o(e.since).year():o(e.since).year()+(t-e.offset)*i}function Po(){var e,t,i,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(i=this.clone().startOf("day").valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return a[e].name;return""}function Ro(){var e,t,i,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(i=this.clone().startOf("day").valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return a[e].narrow;return""}function Vo(){var e,t,i,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(i=this.clone().startOf("day").valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return a[e].abbr;return""}function Ao(){var e,t,i,a,l=this.localeData().eras();for(e=0,t=l.length;e<t;++e)if(i=l[e].since<=l[e].until?1:-1,a=this.clone().startOf("day").valueOf(),l[e].since<=a&&a<=l[e].until||l[e].until<=a&&a<=l[e].since)return(this.year()-o(l[e].since).year())*i+l[e].offset;return this.year()}function Fo(e){return d(this,"_erasNameRegex")||jn.call(this),e?this._erasNameRegex:this._erasRegex}function Lo(e){return d(this,"_erasAbbrRegex")||jn.call(this),e?this._erasAbbrRegex:this._erasRegex}function Wo(e){return d(this,"_erasNarrowRegex")||jn.call(this),e?this._erasNarrowRegex:this._erasRegex}function On(e,t){return t.erasAbbrRegex(e)}function Ho(e,t){return t.erasNameRegex(e)}function qo(e,t){return t.erasNarrowRegex(e)}function Uo(e,t){return t._eraYearOrdinalRegex||$e}function jn(){var e=[],t=[],i=[],a=[],l,h,m=this.eras();for(l=0,h=m.length;l<h;++l)t.push(ee(m[l].name)),e.push(ee(m[l].abbr)),i.push(ee(m[l].narrow)),a.push(ee(m[l].name)),a.push(ee(m[l].abbr)),a.push(ee(m[l].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}_(0,["gg",2],0,function(){return this.weekYear()%100}),_(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Bt(e,t){_(0,[e,e.length],0,t)}Bt("gggg","weekYear"),Bt("ggggg","weekYear"),Bt("GGGG","isoWeekYear"),Bt("GGGGG","isoWeekYear"),$("weekYear","gg"),$("isoWeekYear","GG"),G("weekYear",1),G("isoWeekYear",1),N("G",Ct),N("g",Ct),N("GG",A,Q),N("gg",A,Q),N("GGGG",pn,mn),N("gggg",pn,mn),N("GGGGG",It,jt),N("ggggg",It,jt),lt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,a){t[a.substr(0,2)]=j(e)}),lt(["gg","GG"],function(e,t,i,a){t[a]=o.parseTwoDigitYear(e)});function Bo(e){return Gr.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function $o(e){return Gr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Go(){return ve(this.year(),1,4)}function zo(){return ve(this.isoWeekYear(),1,4)}function Ko(){var e=this.localeData()._week;return ve(this.year(),e.dow,e.doy)}function Jo(){var e=this.localeData()._week;return ve(this.weekYear(),e.dow,e.doy)}function Gr(e,t,i,a,l){var h;return e==null?ht(this,a,l).year:(h=ve(e,a,l),t>h&&(t=h),Zo.call(this,e,t,i,a,l))}function Zo(e,t,i,a,l){var h=Dr(e,t,i,a,l),m=ct(h.year,0,h.dayOfYear);return this.year(m.getUTCFullYear()),this.month(m.getUTCMonth()),this.date(m.getUTCDate()),this}_("Q",0,"Qo","quarter"),$("quarter","Q"),G("quarter",7),N("Q",mr),P("Q",function(e,t){t[pe]=(j(e)-1)*3});function Xo(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}_("D",["DD",2],"Do","date"),$("date","D"),G("date",9),N("D",A),N("DD",A,Q),N("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),P(["D","DD"],de),P("Do",function(e,t){t[de]=j(e.match(A)[0])});var zr=Be("Date",!0);_("DDD",["DDDD",3],"DDDo","dayOfYear"),$("dayOfYear","DDD"),G("dayOfYear",4),N("DDD",Et),N("DDDD",pr),P(["DDD","DDDD"],function(e,t,i){i._dayOfYear=j(e)});function Qo(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}_("m",["mm",2],0,"minute"),$("minute","m"),G("minute",14),N("m",A),N("mm",A,Q),P(["m","mm"],oe);var el=Be("Minutes",!1);_("s",["ss",2],0,"second"),$("second","s"),G("second",15),N("s",A),N("ss",A,Q),P(["s","ss"],ge);var tl=Be("Seconds",!1);_("S",0,0,function(){return~~(this.millisecond()/100)}),_(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),_(0,["SSS",3],0,"millisecond"),_(0,["SSSS",4],0,function(){return this.millisecond()*10}),_(0,["SSSSS",5],0,function(){return this.millisecond()*100}),_(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),_(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),_(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),_(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),$("millisecond","ms"),G("millisecond",16),N("S",Et,mr),N("SS",Et,Q),N("SSS",Et,pr);var Se,Kr;for(Se="SSSS";Se.length<=9;Se+="S")N(Se,$e);function nl(e,t){t[Ie]=j(("0."+e)*1e3)}for(Se="S";Se.length<=9;Se+="S")P(Se,nl);Kr=Be("Milliseconds",!1),_("z",0,0,"zoneAbbr"),_("zz",0,0,"zoneName");function rl(){return this._isUTC?"UTC":""}function il(){return this._isUTC?"Coordinated Universal Time":""}var v=st.prototype;v.add=Ka,v.calendar=no,v.clone=ro,v.diff=co,v.endOf=No,v.format=po,v.from=go,v.fromNow=vo,v.to=yo,v.toNow=bo,v.get=ss,v.invalidAt=jo,v.isAfter=io,v.isBefore=so,v.isBetween=ao,v.isSame=oo,v.isSameOrAfter=lo,v.isSameOrBefore=uo,v.isValid=Mo,v.lang=Hr,v.locale=Wr,v.localeData=qr,v.max=xa,v.min=Sa,v.parsingFlags=Oo,v.set=as,v.startOf=wo,v.subtract=Ja,v.toArray=To,v.toObject=So,v.toDate=Do,v.toISOString=fo,v.inspect=mo,typeof Symbol<"u"&&Symbol.for!=null&&(v[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),v.toJSON=xo,v.toString=ho,v.unix=_o,v.valueOf=ko,v.creationData=Eo,v.eraName=Po,v.eraNarrow=Ro,v.eraAbbr=Vo,v.eraYear=Ao,v.year=_r,v.isLeapYear=Ts,v.weekYear=Bo,v.isoWeekYear=$o,v.quarter=v.quarters=Xo,v.month=Nr,v.daysInMonth=ks,v.week=v.weeks=Es,v.isoWeek=v.isoWeeks=Is,v.weeksInYear=Ko,v.weeksInWeekYear=Jo,v.isoWeeksInYear=Go,v.isoWeeksInISOWeekYear=zo,v.date=zr,v.day=v.days=Bs,v.weekday=$s,v.isoWeekday=Gs,v.dayOfYear=Qo,v.hour=v.hours=ea,v.minute=v.minutes=el,v.second=v.seconds=tl,v.millisecond=v.milliseconds=Kr,v.utcOffset=Ra,v.utc=Aa,v.local=Fa,v.parseZone=La,v.hasAlignedHourOffset=Wa,v.isDST=Ha,v.isLocal=Ua,v.isUtcOffset=Ba,v.isUtc=Rr,v.isUTC=Rr,v.zoneAbbr=rl,v.zoneName=il,v.dates=re("dates accessor is deprecated. Use date instead.",zr),v.months=re("months accessor is deprecated. Use month instead",Nr),v.years=re("years accessor is deprecated. Use year instead",_r),v.zone=re("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Va),v.isDSTShifted=re("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",qa);function sl(e){return F(e*1e3)}function al(){return F.apply(null,arguments).parseZone()}function Jr(e){return e}var I=un.prototype;I.calendar=Bi,I.longDateFormat=Ki,I.invalidDate=Zi,I.ordinal=es,I.preparse=Jr,I.postformat=Jr,I.relativeTime=ns,I.pastFuture=rs,I.set=qi,I.eras=Io,I.erasParse=Co,I.erasConvertYear=Yo,I.erasAbbrRegex=Lo,I.erasNameRegex=Fo,I.erasNarrowRegex=Wo,I.months=ys,I.monthsShort=bs,I.monthsParse=Ns,I.monthsRegex=Ds,I.monthsShortRegex=_s,I.week=xs,I.firstDayOfYear=js,I.firstDayOfWeek=Os,I.weekdays=Ls,I.weekdaysMin=Hs,I.weekdaysShort=Ws,I.weekdaysParse=Us,I.weekdaysRegex=zs,I.weekdaysShortRegex=Ks,I.weekdaysMinRegex=Js,I.isPM=Xs,I.meridiem=ta;function $t(e,t,i,a){var l=ye(),h=O().set(a,t);return l[i](h,e)}function Zr(e,t,i){if(w(e)&&(t=e,e=void 0),e=e||"",t!=null)return $t(e,t,i,"month");var a,l=[];for(a=0;a<12;a++)l[a]=$t(e,a,i,"month");return l}function En(e,t,i,a){typeof e=="boolean"?(w(t)&&(i=t,t=void 0),t=t||""):(t=e,i=t,e=!1,w(t)&&(i=t,t=void 0),t=t||"");var l=ye(),h=e?l._week.dow:0,m,D=[];if(i!=null)return $t(t,(i+h)%7,a,"day");for(m=0;m<7;m++)D[m]=$t(t,(m+h)%7,a,"day");return D}function ol(e,t){return Zr(e,t,"months")}function ll(e,t){return Zr(e,t,"monthsShort")}function ul(e,t,i){return En(e,t,i,"weekdays")}function cl(e,t,i){return En(e,t,i,"weekdaysShort")}function hl(e,t,i){return En(e,t,i,"weekdaysMin")}Te("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,i=j(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+i}}),o.lang=re("moment.lang is deprecated. Use moment.locale instead.",Te),o.langData=re("moment.langData is deprecated. Use moment.localeData instead.",ye);var be=Math.abs;function fl(){var e=this._data;return this._milliseconds=be(this._milliseconds),this._days=be(this._days),this._months=be(this._months),e.milliseconds=be(e.milliseconds),e.seconds=be(e.seconds),e.minutes=be(e.minutes),e.hours=be(e.hours),e.months=be(e.months),e.years=be(e.years),this}function Xr(e,t,i,a){var l=le(t,i);return e._milliseconds+=a*l._milliseconds,e._days+=a*l._days,e._months+=a*l._months,e._bubble()}function dl(e,t){return Xr(this,e,t,1)}function ml(e,t){return Xr(this,e,t,-1)}function Qr(e){return e<0?Math.floor(e):Math.ceil(e)}function pl(){var e=this._milliseconds,t=this._days,i=this._months,a=this._data,l,h,m,D,M;return e>=0&&t>=0&&i>=0||e<=0&&t<=0&&i<=0||(e+=Qr(In(i)+t)*864e5,t=0,i=0),a.milliseconds=e%1e3,l=se(e/1e3),a.seconds=l%60,h=se(l/60),a.minutes=h%60,m=se(h/60),a.hours=m%24,t+=se(m/24),M=se(ei(t)),i+=M,t-=Qr(In(M)),D=se(i/12),i%=12,a.days=t,a.months=i,a.years=D,this}function ei(e){return e*4800/146097}function In(e){return e*146097/4800}function gl(e){if(!this.isValid())return NaN;var t,i,a=this._milliseconds;if(e=ie(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+a/864e5,i=this._months+ei(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(In(this._months)),e){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return t*24+a/36e5;case"minute":return t*1440+a/6e4;case"second":return t*86400+a/1e3;case"millisecond":return Math.floor(t*864e5)+a;default:throw new Error("Unknown unit "+e)}}function vl(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+j(this._months/12)*31536e6:NaN}function we(e){return function(){return this.as(e)}}var yl=we("ms"),bl=we("s"),wl=we("m"),Nl=we("h"),kl=we("d"),_l=we("w"),Dl=we("M"),Tl=we("Q"),Sl=we("y");function xl(){return le(this)}function Ml(e){return e=ie(e),this.isValid()?this[e+"s"]():NaN}function Ye(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ol=Ye("milliseconds"),jl=Ye("seconds"),El=Ye("minutes"),Il=Ye("hours"),Cl=Ye("days"),Yl=Ye("months"),Pl=Ye("years");function Rl(){return se(this.days()/7)}var Ne=Math.round,Je={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Vl(e,t,i,a,l){return l.relativeTime(t||1,!!i,e,a)}function Al(e,t,i,a){var l=le(e).abs(),h=Ne(l.as("s")),m=Ne(l.as("m")),D=Ne(l.as("h")),M=Ne(l.as("d")),R=Ne(l.as("M")),Z=Ne(l.as("w")),ke=Ne(l.as("y")),xe=h<=i.ss&&["s",h]||h<i.s&&["ss",h]||m<=1&&["m"]||m<i.m&&["mm",m]||D<=1&&["h"]||D<i.h&&["hh",D]||M<=1&&["d"]||M<i.d&&["dd",M];return i.w!=null&&(xe=xe||Z<=1&&["w"]||Z<i.w&&["ww",Z]),xe=xe||R<=1&&["M"]||R<i.M&&["MM",R]||ke<=1&&["y"]||["yy",ke],xe[2]=t,xe[3]=+e>0,xe[4]=a,Vl.apply(null,xe)}function Fl(e){return e===void 0?Ne:typeof e=="function"?(Ne=e,!0):!1}function Ll(e,t){return Je[e]===void 0?!1:t===void 0?Je[e]:(Je[e]=t,e==="s"&&(Je.ss=t-1),!0)}function Wl(e,t){if(!this.isValid())return this.localeData().invalidDate();var i=!1,a=Je,l,h;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(i=e),typeof t=="object"&&(a=Object.assign({},Je,t),t.s!=null&&t.ss==null&&(a.ss=t.s-1)),l=this.localeData(),h=Al(this,!i,a,l),i&&(h=l.pastFuture(+this,h)),l.postformat(h)}var Cn=Math.abs;function Ze(e){return(e>0)-(e<0)||+e}function Gt(){if(!this.isValid())return this.localeData().invalidDate();var e=Cn(this._milliseconds)/1e3,t=Cn(this._days),i=Cn(this._months),a,l,h,m,D=this.asSeconds(),M,R,Z,ke;return D?(a=se(e/60),l=se(a/60),e%=60,a%=60,h=se(i/12),i%=12,m=e?e.toFixed(3).replace(/\.?0+$/,""):"",M=D<0?"-":"",R=Ze(this._months)!==Ze(D)?"-":"",Z=Ze(this._days)!==Ze(D)?"-":"",ke=Ze(this._milliseconds)!==Ze(D)?"-":"",M+"P"+(h?R+h+"Y":"")+(i?R+i+"M":"")+(t?Z+t+"D":"")+(l||a||e?"T":"")+(l?ke+l+"H":"")+(a?ke+a+"M":"")+(e?ke+m+"S":"")):"P0D"}var E=Lt.prototype;E.isValid=Ia,E.abs=fl,E.add=dl,E.subtract=ml,E.as=gl,E.asMilliseconds=yl,E.asSeconds=bl,E.asMinutes=wl,E.asHours=Nl,E.asDays=kl,E.asWeeks=_l,E.asMonths=Dl,E.asQuarters=Tl,E.asYears=Sl,E.valueOf=vl,E._bubble=pl,E.clone=xl,E.get=Ml,E.milliseconds=Ol,E.seconds=jl,E.minutes=El,E.hours=Il,E.days=Cl,E.weeks=Rl,E.months=Yl,E.years=Pl,E.humanize=Wl,E.toISOString=Gt,E.toString=Gt,E.toJSON=Gt,E.locale=Wr,E.localeData=qr,E.toIsoString=re("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Gt),E.lang=Hr,_("X",0,0,"unix"),_("x",0,0,"valueOf"),N("x",Ct),N("X",ls),P("X",function(e,t,i){i._d=new Date(parseFloat(e)*1e3)}),P("x",function(e,t,i){i._d=new Date(j(e))});//! moment.js
return o.version="2.29.2",u(F),o.fn=v,o.min=Ma,o.max=Oa,o.now=ja,o.utc=O,o.unix=sl,o.months=ol,o.isDate=C,o.locale=Te,o.invalid=X,o.duration=le,o.isMoment=ae,o.weekdays=ul,o.parseZone=al,o.localeData=ye,o.isDuration=Wt,o.monthsShort=ll,o.weekdaysMin=hl,o.defineLocale=wn,o.updateLocale=sa,o.locales=aa,o.weekdaysShort=cl,o.normalizeUnits=ie,o.relativeTimeRounding=Fl,o.relativeTimeThreshold=Ll,o.calendarFormat=to,o.prototype=v,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o})}(Pn)),Pn.exports}(function(r,n){(function(s,o){o(typeof di=="function"?Ql():s.moment)})(ci,function(s){//! moment.js locale configuration
var o=s.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(u){return/^ch$/i.test(u)},meridiem:function(u,c,f){return u<12?f?"sa":"SA":f?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(u){return u},week:{dow:1,doy:4}});return o})})();/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function eu(r){return yt(void 0,r)}function yt(r,n){if(!(n instanceof Object))return n;switch(n.constructor){case Date:var s=n;return new Date(s.getTime());case Object:r===void 0&&(r={});break;case Array:r=[];break;default:return n}for(var o in n)!n.hasOwnProperty(o)||!tu(o)||(r[o]=yt(r[o],n[o]));return r}function tu(r){return r!=="__proto__"}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var nu=function(){function r(){var n=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise(function(s,o){n.resolve=s,n.reject=o})}return r.prototype.wrapCallback=function(n){var s=this;return function(o,u){o?s.reject(o):s.resolve(u),typeof n=="function"&&(s.promise.catch(function(){}),n.length===1?n(o):n(o,u))}},r}();function ru(){try{return Object.prototype.toString.call(global.process)==="[object process]"}catch{return!1}}function iu(){return typeof self=="object"&&self.self===self}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var su="FirebaseError",mi=function(r){Hl(n,r);function n(s,o,u){var c=r.call(this,o)||this;return c.code=s,c.customData=u,c.name=su,Object.setPrototypeOf(c,n.prototype),Error.captureStackTrace&&Error.captureStackTrace(c,Nt.prototype.create),c}return n}(Error),Nt=function(){function r(n,s,o){this.service=n,this.serviceName=s,this.errors=o}return r.prototype.create=function(n){for(var s=[],o=1;o<arguments.length;o++)s[o-1]=arguments[o];var u=s[0]||{},c=this.service+"/"+n,f=this.errors[n],d=f?au(f,u):"Error",g=this.serviceName+": "+d+" ("+c+").",y=new mi(c,g,u);return y},r}();function au(r,n){return r.replace(ou,function(s,o){var u=n[o];return u!=null?String(u):"<"+o+"?>"})}var ou=/\{\$([^}]+)}/g;/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function ri(r,n){return Object.prototype.hasOwnProperty.call(r,n)}function lu(r,n){var s=new uu(r,n);return s.subscribe.bind(s)}var uu=function(){function r(n,s){var o=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=s,this.task.then(function(){n(o)}).catch(function(u){o.error(u)})}return r.prototype.next=function(n){this.forEachObserver(function(s){s.next(n)})},r.prototype.error=function(n){this.forEachObserver(function(s){s.error(n)}),this.close(n)},r.prototype.complete=function(){this.forEachObserver(function(n){n.complete()}),this.close()},r.prototype.subscribe=function(n,s,o){var u=this,c;if(n===void 0&&s===void 0&&o===void 0)throw new Error("Missing Observer.");cu(n,["next","error","complete"])?c=n:c={next:n,error:s,complete:o},c.next===void 0&&(c.next=Rn),c.error===void 0&&(c.error=Rn),c.complete===void 0&&(c.complete=Rn);var f=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{u.finalError?c.error(u.finalError):c.complete()}catch{}}),this.observers.push(c),f},r.prototype.unsubscribeOne=function(n){this.observers===void 0||this.observers[n]===void 0||(delete this.observers[n],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))},r.prototype.forEachObserver=function(n){if(!this.finalized)for(var s=0;s<this.observers.length;s++)this.sendOne(s,n)},r.prototype.sendOne=function(n,s){var o=this;this.task.then(function(){if(o.observers!==void 0&&o.observers[n]!==void 0)try{s(o.observers[n])}catch(u){typeof console<"u"&&console.error&&console.error(u)}})},r.prototype.close=function(n){var s=this;this.finalized||(this.finalized=!0,n!==void 0&&(this.finalError=n),this.task.then(function(){s.observers=void 0,s.onNoObservers=void 0}))},r}();function cu(r,n){if(typeof r!="object"||r===null)return!1;for(var s=0,o=n;s<o.length;s++){var u=o[s];if(u in r&&typeof r[u]=="function")return!0}return!1}function Rn(){}var kt=function(){function r(n,s,o){this.name=n,this.instanceFactory=s,this.type=o,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return r.prototype.setInstantiationMode=function(n){return this.instantiationMode=n,this},r.prototype.setMultipleInstances=function(n){return this.multipleInstances=n,this},r.prototype.setServiceProps=function(n){return this.serviceProps=n,this},r.prototype.setInstanceCreatedCallback=function(n){return this.onInstanceCreated=n,this},r}();/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Re="[DEFAULT]";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var hu=function(){function r(n,s){this.name=n,this.container=s,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}return r.prototype.get=function(n){var s=this.normalizeInstanceIdentifier(n);if(!this.instancesDeferred.has(s)){var o=new nu;if(this.instancesDeferred.set(s,o),this.isInitialized(s)||this.shouldAutoInitialize())try{var u=this.getOrInitializeService({instanceIdentifier:s});u&&o.resolve(u)}catch{}}return this.instancesDeferred.get(s).promise},r.prototype.getImmediate=function(n){var s,o=this.normalizeInstanceIdentifier(n==null?void 0:n.identifier),u=(s=n==null?void 0:n.optional)!==null&&s!==void 0?s:!1;if(this.isInitialized(o)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:o})}catch(c){if(u)return null;throw c}else{if(u)return null;throw Error("Service "+this.name+" is not available")}},r.prototype.getComponent=function(){return this.component},r.prototype.setComponent=function(n){var s,o;if(n.name!==this.name)throw Error("Mismatching Component "+n.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=n,!!this.shouldAutoInitialize()){if(du(n))try{this.getOrInitializeService({instanceIdentifier:Re})}catch{}try{for(var u=je(this.instancesDeferred.entries()),c=u.next();!c.done;c=u.next()){var f=Qe(c.value,2),d=f[0],g=f[1],y=this.normalizeInstanceIdentifier(d);try{var w=this.getOrInitializeService({instanceIdentifier:y});g.resolve(w)}catch{}}}catch(C){s={error:C}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(s)throw s.error}}}},r.prototype.clearInstance=function(n){n===void 0&&(n=Re),this.instancesDeferred.delete(n),this.instancesOptions.delete(n),this.instances.delete(n)},r.prototype.delete=function(){return S(this,void 0,void 0,function(){var n;return x(this,function(s){switch(s.label){case 0:return n=Array.from(this.instances.values()),[4,Promise.all(Kt(Kt([],Qe(n.filter(function(o){return"INTERNAL"in o}).map(function(o){return o.INTERNAL.delete()}))),Qe(n.filter(function(o){return"_delete"in o}).map(function(o){return o._delete()}))))];case 1:return s.sent(),[2]}})})},r.prototype.isComponentSet=function(){return this.component!=null},r.prototype.isInitialized=function(n){return n===void 0&&(n=Re),this.instances.has(n)},r.prototype.getOptions=function(n){return n===void 0&&(n=Re),this.instancesOptions.get(n)||{}},r.prototype.initialize=function(n){var s,o;n===void 0&&(n={});var u=n.options,c=u===void 0?{}:u,f=this.normalizeInstanceIdentifier(n.instanceIdentifier);if(this.isInitialized(f))throw Error(this.name+"("+f+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var d=this.getOrInitializeService({instanceIdentifier:f,options:c});try{for(var g=je(this.instancesDeferred.entries()),y=g.next();!y.done;y=g.next()){var w=Qe(y.value,2),C=w[0],T=w[1],b=this.normalizeInstanceIdentifier(C);f===b&&T.resolve(d)}}catch(O){s={error:O}}finally{try{y&&!y.done&&(o=g.return)&&o.call(g)}finally{if(s)throw s.error}}return d},r.prototype.onInit=function(n,s){var o,u=this.normalizeInstanceIdentifier(s),c=(o=this.onInitCallbacks.get(u))!==null&&o!==void 0?o:new Set;c.add(n),this.onInitCallbacks.set(u,c);var f=this.instances.get(u);return f&&n(f,u),function(){c.delete(n)}},r.prototype.invokeOnInitCallbacks=function(n,s){var o,u,c=this.onInitCallbacks.get(s);if(c)try{for(var f=je(c),d=f.next();!d.done;d=f.next()){var g=d.value;try{g(n,s)}catch{}}}catch(y){o={error:y}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(o)throw o.error}}},r.prototype.getOrInitializeService=function(n){var s=n.instanceIdentifier,o=n.options,u=o===void 0?{}:o,c=this.instances.get(s);if(!c&&this.component&&(c=this.component.instanceFactory(this.container,{instanceIdentifier:fu(s),options:u}),this.instances.set(s,c),this.instancesOptions.set(s,u),this.invokeOnInitCallbacks(c,s),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,s,c)}catch{}return c||null},r.prototype.normalizeInstanceIdentifier=function(n){return n===void 0&&(n=Re),this.component?this.component.multipleInstances?n:Re:n},r.prototype.shouldAutoInitialize=function(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"},r}();function fu(r){return r===Re?void 0:r}function du(r){return r.instantiationMode==="EAGER"}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var mu=function(){function r(n){this.name=n,this.providers=new Map}return r.prototype.addComponent=function(n){var s=this.getProvider(n.name);if(s.isComponentSet())throw new Error("Component "+n.name+" has already been registered with "+this.name);s.setComponent(n)},r.prototype.addOrOverwriteComponent=function(n){var s=this.getProvider(n.name);s.isComponentSet()&&this.providers.delete(n.name),this.addComponent(n)},r.prototype.getProvider=function(n){if(this.providers.has(n))return this.providers.get(n);var s=new hu(n,this);return this.providers.set(n,s),s},r.prototype.getProviders=function(){return Array.from(this.providers.values())},r}();/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */function ce(){for(var r=0,n=0,s=arguments.length;n<s;n++)r+=arguments[n].length;for(var o=Array(r),u=0,n=0;n<s;n++)for(var c=arguments[n],f=0,d=c.length;f<d;f++,u++)o[u]=c[f];return o}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Pe,$n=[],V;(function(r){r[r.DEBUG=0]="DEBUG",r[r.VERBOSE=1]="VERBOSE",r[r.INFO=2]="INFO",r[r.WARN=3]="WARN",r[r.ERROR=4]="ERROR",r[r.SILENT=5]="SILENT"})(V||(V={}));var pi={debug:V.DEBUG,verbose:V.VERBOSE,info:V.INFO,warn:V.WARN,error:V.ERROR,silent:V.SILENT},pu=V.INFO,gu=(Pe={},Pe[V.DEBUG]="log",Pe[V.VERBOSE]="log",Pe[V.INFO]="info",Pe[V.WARN]="warn",Pe[V.ERROR]="error",Pe),vu=function(r,n){for(var s=[],o=2;o<arguments.length;o++)s[o-2]=arguments[o];if(!(n<r.logLevel)){var u=new Date().toISOString(),c=gu[n];if(c)console[c].apply(console,ce(["["+u+"]  "+r.name+":"],s));else throw new Error("Attempted to log a message with an invalid logType (value: "+n+")")}},yu=function(){function r(n){this.name=n,this._logLevel=pu,this._logHandler=vu,this._userLogHandler=null,$n.push(this)}return Object.defineProperty(r.prototype,"logLevel",{get:function(){return this._logLevel},set:function(n){if(!(n in V))throw new TypeError('Invalid value "'+n+'" assigned to `logLevel`');this._logLevel=n},enumerable:!1,configurable:!0}),r.prototype.setLogLevel=function(n){this._logLevel=typeof n=="string"?pi[n]:n},Object.defineProperty(r.prototype,"logHandler",{get:function(){return this._logHandler},set:function(n){if(typeof n!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=n},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(n){this._userLogHandler=n},enumerable:!1,configurable:!0}),r.prototype.debug=function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];this._userLogHandler&&this._userLogHandler.apply(this,ce([this,V.DEBUG],n)),this._logHandler.apply(this,ce([this,V.DEBUG],n))},r.prototype.log=function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];this._userLogHandler&&this._userLogHandler.apply(this,ce([this,V.VERBOSE],n)),this._logHandler.apply(this,ce([this,V.VERBOSE],n))},r.prototype.info=function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];this._userLogHandler&&this._userLogHandler.apply(this,ce([this,V.INFO],n)),this._logHandler.apply(this,ce([this,V.INFO],n))},r.prototype.warn=function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];this._userLogHandler&&this._userLogHandler.apply(this,ce([this,V.WARN],n)),this._logHandler.apply(this,ce([this,V.WARN],n))},r.prototype.error=function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];this._userLogHandler&&this._userLogHandler.apply(this,ce([this,V.ERROR],n)),this._logHandler.apply(this,ce([this,V.ERROR],n))},r}();function bu(r){$n.forEach(function(n){n.setLogLevel(r)})}function wu(r,n){for(var s=function(f){var d=null;n&&n.level&&(d=pi[n.level]),r===null?f.userLogHandler=null:f.userLogHandler=function(g,y){for(var w=[],C=2;C<arguments.length;C++)w[C-2]=arguments[C];var T=w.map(function(b){if(b==null)return null;if(typeof b=="string")return b;if(typeof b=="number"||typeof b=="boolean")return b.toString();if(b instanceof Error)return b.message;try{return JSON.stringify(b)}catch{return null}}).filter(function(b){return b}).join(" ");y>=(d??g.logLevel)&&r({level:V[y].toLowerCase(),message:T,args:w,type:g.name})}},o=0,u=$n;o<u.length;o++){var c=u[o];s(c)}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Me,Nu=(Me={},Me["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",Me["bad-app-name"]="Illegal App name: '{$appName}",Me["duplicate-app"]="Firebase App named '{$appName}' already exists",Me["app-deleted"]="Firebase App named '{$appName}' already deleted",Me["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",Me["invalid-log-argument"]="First argument to `onLog` must be null or a function.",Me),Xe=new Nt("app","Firebase",Nu),gi="@firebase/app",ku="0.6.30",_u="@firebase/analytics",Du="@firebase/app-check",Tu="@firebase/auth",Su="@firebase/database",xu="@firebase/functions",Mu="@firebase/installations",Ou="@firebase/messaging",ju="@firebase/performance",Eu="@firebase/remote-config",Iu="@firebase/storage",Cu="@firebase/firestore",Yu="firebase-wrapper";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var K,Jt="[DEFAULT]",Pu=(K={},K[gi]="fire-core",K[_u]="fire-analytics",K[Du]="fire-app-check",K[Tu]="fire-auth",K[Su]="fire-rtdb",K[xu]="fire-fn",K[Mu]="fire-iid",K[Ou]="fire-fcm",K[ju]="fire-perf",K[Eu]="fire-rc",K[Iu]="fire-gcs",K[Cu]="fire-fst",K["fire-js"]="fire-js",K[Yu]="fire-js-all",K);/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var tt=new yu("@firebase/app");/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var zt=function(){function r(n,s,o){var u=this;this.firebase_=o,this.isDeleted_=!1,this.name_=s.name,this.automaticDataCollectionEnabled_=s.automaticDataCollectionEnabled||!1,this.options_=eu(n),this.container=new mu(s.name),this._addComponent(new kt("app",function(){return u},"PUBLIC")),this.firebase_.INTERNAL.components.forEach(function(c){return u._addComponent(c)})}return Object.defineProperty(r.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(n){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=n},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),r.prototype.delete=function(){var n=this;return new Promise(function(s){n.checkDestroyed_(),s()}).then(function(){return n.firebase_.INTERNAL.removeApp(n.name_),Promise.all(n.container.getProviders().map(function(s){return s.delete()}))}).then(function(){n.isDeleted_=!0})},r.prototype._getService=function(n,s){var o;s===void 0&&(s=Jt),this.checkDestroyed_();var u=this.container.getProvider(n);return!u.isInitialized()&&((o=u.getComponent())===null||o===void 0?void 0:o.instantiationMode)==="EXPLICIT"&&u.initialize(),u.getImmediate({identifier:s})},r.prototype._removeServiceInstance=function(n,s){s===void 0&&(s=Jt),this.container.getProvider(n).clearInstance(s)},r.prototype._addComponent=function(n){try{this.container.addComponent(n)}catch(s){tt.debug("Component "+n.name+" failed to register with FirebaseApp "+this.name,s)}},r.prototype._addOrOverwriteComponent=function(n){this.container.addOrOverwriteComponent(n)},r.prototype.toJSON=function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}},r.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw Xe.create("app-deleted",{appName:this.name_})},r}();zt.prototype.name&&zt.prototype.options||zt.prototype.delete||console.log("dc");var Ru="8.10.0";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Vu(r){var n={},s=new Map,o={__esModule:!0,initializeApp:f,app:c,registerVersion:y,setLogLevel:bu,onLog:w,apps:null,SDK_VERSION:Ru,INTERNAL:{registerComponent:g,removeApp:u,components:s,useAsService:C}};o.default=o,Object.defineProperty(o,"apps",{get:d});function u(T){delete n[T]}function c(T){if(T=T||Jt,!ri(n,T))throw Xe.create("no-app",{appName:T});return n[T]}c.App=r;function f(T,b){if(b===void 0&&(b={}),typeof b!="object"||b===null){var O=b;b={name:O}}var B=b;B.name===void 0&&(B.name=Jt);var k=B.name;if(typeof k!="string"||!k)throw Xe.create("bad-app-name",{appName:String(k)});if(ri(n,k))throw Xe.create("duplicate-app",{appName:k});var ne=new r(T,B,o);return n[k]=ne,ne}function d(){return Object.keys(n).map(function(T){return n[T]})}function g(T){var b=T.name;if(s.has(b))return tt.debug("There were multiple attempts to register component "+b+"."),T.type==="PUBLIC"?o[b]:null;if(s.set(b,T),T.type==="PUBLIC"){var O=function(J){if(J===void 0&&(J=c()),typeof J[b]!="function")throw Xe.create("invalid-app-argument",{appName:b});return J[b]()};T.serviceProps!==void 0&&yt(O,T.serviceProps),o[b]=O,r.prototype[b]=function(){for(var J=[],X=0;X<arguments.length;X++)J[X]=arguments[X];var Tt=this._getService.bind(this,b);return Tt.apply(this,T.multipleInstances?J:[])}}for(var B=0,k=Object.keys(n);B<k.length;B++){var ne=k[B];n[ne]._addComponent(T)}return T.type==="PUBLIC"?o[b]:null}function y(T,b,O){var B,k=(B=Pu[T])!==null&&B!==void 0?B:T;O&&(k+="-"+O);var ne=k.match(/\s|\//),J=b.match(/\s|\//);if(ne||J){var X=['Unable to register library "'+k+'" with version "'+b+'":'];ne&&X.push('library name "'+k+'" contains illegal characters (whitespace or "/")'),ne&&J&&X.push("and"),J&&X.push('version name "'+b+'" contains illegal characters (whitespace or "/")'),tt.warn(X.join(" "));return}g(new kt(k+"-version",function(){return{library:k,version:b}},"VERSION"))}function w(T,b){if(T!==null&&typeof T!="function")throw Xe.create("invalid-log-argument");wu(T,b)}function C(T,b){if(b==="serverAuth")return null;var O=b;return O}return o}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function vi(){var r=Vu(zt);r.INTERNAL=te(te({},r.INTERNAL),{createFirebaseNamespace:vi,extendNamespace:n,createSubscribe:lu,ErrorFactory:Nt,deepExtend:yt});function n(s){yt(r,s)}return r}var Gn=vi();/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Au=function(){function r(n){this.container=n}return r.prototype.getPlatformInfoString=function(){var n=this.container.getProviders();return n.map(function(s){if(Fu(s)){var o=s.getImmediate();return o.library+"/"+o.version}else return null}).filter(function(s){return s}).join(" ")},r}();function Fu(r){var n=r.getComponent();return(n==null?void 0:n.type)==="VERSION"}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Lu(r,n){r.INTERNAL.registerComponent(new kt("platform-logger",function(s){return new Au(s)},"PRIVATE")),r.registerVersion(gi,ku,n),r.registerVersion("fire-js","")}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */if(iu()&&self.firebase!==void 0){tt.warn(`
    Warning: Firebase is already defined in the global scope. Please make sure
    Firebase library is only loaded once.
  `);var ii=self.firebase.SDK_VERSION;ii&&ii.indexOf("LITE")>=0&&tt.warn(`
    Warning: You are trying to load Firebase while using Firebase Performance standalone script.
    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.
    `)}var Wu=Gn.initializeApp;Gn.initializeApp=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return ru()&&tt.warn(`
      Warning: This is a browser-targeted Firebase bundle but it appears it is being
      run in a Node environment.  If running in a Node environment, make sure you
      are using the bundle specified by the "main" field in package.json.
      
      If you are using Webpack, you can specify "main" as the first item in
      "resolve.mainFields":
      https://webpack.js.org/configuration/resolve/#resolvemainfields
      
      If using Rollup, use the @rollup/plugin-node-resolve plugin and specify "main"
      as the first item in "mainFields", e.g. ['main', 'module'].
      https://github.com/rollup/@rollup/plugin-node-resolve
      `),Wu.apply(void 0,r)};var He=Gn;Lu(He);var Hu="firebase",yi="8.10.1";/**
 * @license
 * Copyright 2018 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */He.registerVersion(Hu,yi,"app");He.SDK_VERSION=yi;function qu(r){return Array.prototype.slice.call(r)}function bi(r){return new Promise(function(n,s){r.onsuccess=function(){n(r.result)},r.onerror=function(){s(r.error)}})}function tn(r,n,s){var o,u=new Promise(function(c,f){o=r[n].apply(r,s),bi(o).then(c,f)});return u.request=o,u}function Uu(r,n,s){var o=tn(r,n,s);return o.then(function(u){if(u)return new bt(u,o.request)})}function rt(r,n,s){s.forEach(function(o){Object.defineProperty(r.prototype,o,{get:function(){return this[n][o]},set:function(u){this[n][o]=u}})})}function zn(r,n,s,o){o.forEach(function(u){u in s.prototype&&(r.prototype[u]=function(){return tn(this[n],u,arguments)})})}function nn(r,n,s,o){o.forEach(function(u){u in s.prototype&&(r.prototype[u]=function(){return this[n][u].apply(this[n],arguments)})})}function wi(r,n,s,o){o.forEach(function(u){u in s.prototype&&(r.prototype[u]=function(){return Uu(this[n],u,arguments)})})}function qe(r){this._index=r}rt(qe,"_index",["name","keyPath","multiEntry","unique"]);zn(qe,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]);wi(qe,"_index",IDBIndex,["openCursor","openKeyCursor"]);function bt(r,n){this._cursor=r,this._request=n}rt(bt,"_cursor",["direction","key","primaryKey","value"]);zn(bt,"_cursor",IDBCursor,["update","delete"]);["advance","continue","continuePrimaryKey"].forEach(function(r){r in IDBCursor.prototype&&(bt.prototype[r]=function(){var n=this,s=arguments;return Promise.resolve().then(function(){return n._cursor[r].apply(n._cursor,s),bi(n._request).then(function(o){if(o)return new bt(o,n._request)})})})});function me(r){this._store=r}me.prototype.createIndex=function(){return new qe(this._store.createIndex.apply(this._store,arguments))};me.prototype.index=function(){return new qe(this._store.index.apply(this._store,arguments))};rt(me,"_store",["name","keyPath","indexNames","autoIncrement"]);zn(me,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]);wi(me,"_store",IDBObjectStore,["openCursor","openKeyCursor"]);nn(me,"_store",IDBObjectStore,["deleteIndex"]);function _t(r){this._tx=r,this.complete=new Promise(function(n,s){r.oncomplete=function(){n()},r.onerror=function(){s(r.error)},r.onabort=function(){s(r.error)}})}_t.prototype.objectStore=function(){return new me(this._tx.objectStore.apply(this._tx,arguments))};rt(_t,"_tx",["objectStoreNames","mode"]);nn(_t,"_tx",IDBTransaction,["abort"]);function rn(r,n,s){this._db=r,this.oldVersion=n,this.transaction=new _t(s)}rn.prototype.createObjectStore=function(){return new me(this._db.createObjectStore.apply(this._db,arguments))};rt(rn,"_db",["name","version","objectStoreNames"]);nn(rn,"_db",IDBDatabase,["deleteObjectStore","close"]);function sn(r){this._db=r}sn.prototype.transaction=function(){return new _t(this._db.transaction.apply(this._db,arguments))};rt(sn,"_db",["name","version","objectStoreNames"]);nn(sn,"_db",IDBDatabase,["close"]);["openCursor","openKeyCursor"].forEach(function(r){[me,qe].forEach(function(n){r in n.prototype&&(n.prototype[r.replace("open","iterate")]=function(){var s=qu(arguments),o=s[s.length-1],u=this._store||this._index,c=u[r].apply(u,s.slice(0,-1));c.onsuccess=function(){o(c.result)}})})});[qe,me].forEach(function(r){r.prototype.getAll||(r.prototype.getAll=function(n,s){var o=this,u=[];return new Promise(function(c){o.iterateCursor(n,function(f){if(!f){c(u);return}if(u.push(f.value),s!==void 0&&u.length==s){c(u);return}f.continue()})})})});function Kn(r,n,s){var o=tn(indexedDB,"open",[r,n]),u=o.request;return u&&(u.onupgradeneeded=function(c){s&&s(new rn(u.result,c.oldVersion,u.transaction))}),o.then(function(c){return new sn(c)})}function Vn(r){return tn(indexedDB,"deleteDatabase",[r])}var Bu="@firebase/installations",Ni="0.4.32";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var ki=1e4,_i="w:"+Ni,Di="FIS_v2",$u="https://firebaseinstallations.googleapis.com/v1",Gu=60*60*1e3,zu="installations",Ku="Installations";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Oe,Ju=(Oe={},Oe["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',Oe["not-registered"]="Firebase Installation is not registered.",Oe["installation-not-found"]="Firebase Installation not found.",Oe["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',Oe["app-offline"]="Could not process request. Application offline.",Oe["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",Oe),De=new Nt(zu,Ku,Ju);function Ti(r){return r instanceof mi&&r.code.includes("request-failed")}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Jn(r){var n=r.projectId;return $u+"/projects/"+n+"/installations"}function Si(r){return{token:r.token,requestStatus:2,expiresIn:Zu(r.expiresIn),creationTime:Date.now()}}function Zn(r,n){return S(this,void 0,void 0,function(){var s,o;return x(this,function(u){switch(u.label){case 0:return[4,n.json()];case 1:return s=u.sent(),o=s.error,[2,De.create("request-failed",{requestName:r,serverCode:o.code,serverMessage:o.message,serverStatus:o.status})]}})})}function xi(r){var n=r.apiKey;return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":n})}function Mi(r,n){var s=n.refreshToken,o=xi(r);return o.append("Authorization",Xu(s)),o}function Xn(r){return S(this,void 0,void 0,function(){var n;return x(this,function(s){switch(s.label){case 0:return[4,r()];case 1:return n=s.sent(),n.status>=500&&n.status<600?[2,r()]:[2,n]}})})}function Zu(r){return Number(r.replace("s","000"))}function Xu(r){return Di+" "+r}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Qu(r,n){var s=n.fid;return S(this,void 0,void 0,function(){var o,u,c,f,d,g,y;return x(this,function(w){switch(w.label){case 0:return o=Jn(r),u=xi(r),c={fid:s,authVersion:Di,appId:r.appId,sdkVersion:_i},f={method:"POST",headers:u,body:JSON.stringify(c)},[4,Xn(function(){return fetch(o,f)})];case 1:return d=w.sent(),d.ok?[4,d.json()]:[3,3];case 2:return g=w.sent(),y={fid:g.fid||s,registrationStatus:2,refreshToken:g.refreshToken,authToken:Si(g.authToken)},[2,y];case 3:return[4,Zn("Create Installation",d)];case 4:throw w.sent()}})})}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Oi(r){return new Promise(function(n){setTimeout(n,r)})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function ec(r){var n=btoa(String.fromCharCode.apply(String,Kt([],Qe(r))));return n.replace(/\+/g,"-").replace(/\//g,"_")}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var tc=/^[cdef][\w-]{21}$/,qn="";function nc(){try{var r=new Uint8Array(17),n=self.crypto||self.msCrypto;n.getRandomValues(r),r[0]=112+r[0]%16;var s=rc(r);return tc.test(s)?s:qn}catch{return qn}}function rc(r){var n=ec(r);return n.substr(0,22)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function it(r){return r.appName+"!"+r.appId}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var nt=new Map;function ji(r,n){var s=it(r);Ei(s,n),ac(s,n)}function ic(r,n){Ii();var s=it(r),o=nt.get(s);o||(o=new Set,nt.set(s,o)),o.add(n)}function sc(r,n){var s=it(r),o=nt.get(s);o&&(o.delete(n),o.size===0&&nt.delete(s),Ci())}function Ei(r,n){var s,o,u=nt.get(r);if(u)try{for(var c=je(u),f=c.next();!f.done;f=c.next()){var d=f.value;d(n)}}catch(g){s={error:g}}finally{try{f&&!f.done&&(o=c.return)&&o.call(c)}finally{if(s)throw s.error}}}function ac(r,n){var s=Ii();s&&s.postMessage({key:r,fid:n}),Ci()}var Ve=null;function Ii(){return!Ve&&"BroadcastChannel"in self&&(Ve=new BroadcastChannel("[Firebase] FID Change"),Ve.onmessage=function(r){Ei(r.data.key,r.data.fid)}),Ve}function Ci(){nt.size===0&&Ve&&(Ve.close(),Ve=null)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var oc="firebase-installations-database",lc=1,Ae="firebase-installations-store",An=null;function Qn(){return An||(An=Kn(oc,lc,function(r){switch(r.oldVersion){case 0:r.createObjectStore(Ae)}})),An}function Zt(r,n){return S(this,void 0,void 0,function(){var s,o,u,c,f;return x(this,function(d){switch(d.label){case 0:return s=it(r),[4,Qn()];case 1:return o=d.sent(),u=o.transaction(Ae,"readwrite"),c=u.objectStore(Ae),[4,c.get(s)];case 2:return f=d.sent(),[4,c.put(n,s)];case 3:return d.sent(),[4,u.complete];case 4:return d.sent(),(!f||f.fid!==n.fid)&&ji(r,n.fid),[2,n]}})})}function er(r){return S(this,void 0,void 0,function(){var n,s,o;return x(this,function(u){switch(u.label){case 0:return n=it(r),[4,Qn()];case 1:return s=u.sent(),o=s.transaction(Ae,"readwrite"),[4,o.objectStore(Ae).delete(n)];case 2:return u.sent(),[4,o.complete];case 3:return u.sent(),[2]}})})}function Dt(r,n){return S(this,void 0,void 0,function(){var s,o,u,c,f,d;return x(this,function(g){switch(g.label){case 0:return s=it(r),[4,Qn()];case 1:return o=g.sent(),u=o.transaction(Ae,"readwrite"),c=u.objectStore(Ae),[4,c.get(s)];case 2:return f=g.sent(),d=n(f),d!==void 0?[3,4]:[4,c.delete(s)];case 3:return g.sent(),[3,6];case 4:return[4,c.put(d,s)];case 5:g.sent(),g.label=6;case 6:return[4,u.complete];case 7:return g.sent(),d&&(!f||f.fid!==d.fid)&&ji(r,d.fid),[2,d]}})})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function tr(r){return S(this,void 0,void 0,function(){var n,s,o;return x(this,function(u){switch(u.label){case 0:return[4,Dt(r,function(c){var f=uc(c),d=cc(r,f);return n=d.registrationPromise,d.installationEntry})];case 1:return s=u.sent(),s.fid!==qn?[3,3]:(o={},[4,n]);case 2:return[2,(o.installationEntry=u.sent(),o)];case 3:return[2,{installationEntry:s,registrationPromise:n}]}})})}function uc(r){var n=r||{fid:nc(),registrationStatus:0};return Yi(n)}function cc(r,n){if(n.registrationStatus===0){if(!navigator.onLine){var s=Promise.reject(De.create("app-offline"));return{installationEntry:n,registrationPromise:s}}var o={fid:n.fid,registrationStatus:1,registrationTime:Date.now()},u=hc(r,o);return{installationEntry:o,registrationPromise:u}}else return n.registrationStatus===1?{installationEntry:n,registrationPromise:fc(r)}:{installationEntry:n}}function hc(r,n){return S(this,void 0,void 0,function(){var s,o;return x(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,7]),[4,Qu(r,n)];case 1:return s=u.sent(),[2,Zt(r,s)];case 2:return o=u.sent(),Ti(o)&&o.customData.serverCode===409?[4,er(r)]:[3,4];case 3:return u.sent(),[3,6];case 4:return[4,Zt(r,{fid:n.fid,registrationStatus:0})];case 5:u.sent(),u.label=6;case 6:throw o;case 7:return[2]}})})}function fc(r){return S(this,void 0,void 0,function(){var n,s,o,u;return x(this,function(c){switch(c.label){case 0:return[4,si(r)];case 1:n=c.sent(),c.label=2;case 2:return n.registrationStatus!==1?[3,5]:[4,Oi(100)];case 3:return c.sent(),[4,si(r)];case 4:return n=c.sent(),[3,2];case 5:return n.registrationStatus!==0?[3,7]:[4,tr(r)];case 6:return s=c.sent(),o=s.installationEntry,u=s.registrationPromise,u?[2,u]:[2,o];case 7:return[2,n]}})})}function si(r){return Dt(r,function(n){if(!n)throw De.create("installation-not-found");return Yi(n)})}function Yi(r){return dc(r)?{fid:r.fid,registrationStatus:0}:r}function dc(r){return r.registrationStatus===1&&r.registrationTime+ki<Date.now()}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function mc(r,n){var s=r.appConfig,o=r.platformLoggerProvider;return S(this,void 0,void 0,function(){var u,c,f,d,g,y,w,C;return x(this,function(T){switch(T.label){case 0:return u=pc(s,n),c=Mi(s,n),f=o.getImmediate({optional:!0}),f&&c.append("x-firebase-client",f.getPlatformInfoString()),d={installation:{sdkVersion:_i}},g={method:"POST",headers:c,body:JSON.stringify(d)},[4,Xn(function(){return fetch(u,g)})];case 1:return y=T.sent(),y.ok?[4,y.json()]:[3,3];case 2:return w=T.sent(),C=Si(w),[2,C];case 3:return[4,Zn("Generate Auth Token",y)];case 4:throw T.sent()}})})}function pc(r,n){var s=n.fid;return Jn(r)+"/"+s+"/authTokens:generate"}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function nr(r,n){return n===void 0&&(n=!1),S(this,void 0,void 0,function(){var s,o,u,c;return x(this,function(f){switch(f.label){case 0:return[4,Dt(r.appConfig,function(d){if(!Pi(d))throw De.create("not-registered");var g=d.authToken;if(!n&&yc(g))return d;if(g.requestStatus===1)return s=gc(r,n),d;if(!navigator.onLine)throw De.create("app-offline");var y=wc(d);return s=vc(r,y),y})];case 1:return o=f.sent(),s?[4,s]:[3,3];case 2:return c=f.sent(),[3,4];case 3:c=o.authToken,f.label=4;case 4:return u=c,[2,u]}})})}function gc(r,n){return S(this,void 0,void 0,function(){var s,o;return x(this,function(u){switch(u.label){case 0:return[4,ai(r.appConfig)];case 1:s=u.sent(),u.label=2;case 2:return s.authToken.requestStatus!==1?[3,5]:[4,Oi(100)];case 3:return u.sent(),[4,ai(r.appConfig)];case 4:return s=u.sent(),[3,2];case 5:return o=s.authToken,o.requestStatus===0?[2,nr(r,n)]:[2,o]}})})}function ai(r){return Dt(r,function(n){if(!Pi(n))throw De.create("not-registered");var s=n.authToken;return Nc(s)?te(te({},n),{authToken:{requestStatus:0}}):n})}function vc(r,n){return S(this,void 0,void 0,function(){var s,u,o,u;return x(this,function(c){switch(c.label){case 0:return c.trys.push([0,3,,8]),[4,mc(r,n)];case 1:return s=c.sent(),u=te(te({},n),{authToken:s}),[4,Zt(r.appConfig,u)];case 2:return c.sent(),[2,s];case 3:return o=c.sent(),Ti(o)&&(o.customData.serverCode===401||o.customData.serverCode===404)?[4,er(r.appConfig)]:[3,5];case 4:return c.sent(),[3,7];case 5:return u=te(te({},n),{authToken:{requestStatus:0}}),[4,Zt(r.appConfig,u)];case 6:c.sent(),c.label=7;case 7:throw o;case 8:return[2]}})})}function Pi(r){return r!==void 0&&r.registrationStatus===2}function yc(r){return r.requestStatus===2&&!bc(r)}function bc(r){var n=Date.now();return n<r.creationTime||r.creationTime+r.expiresIn<n+Gu}function wc(r){var n={requestStatus:1,requestTime:Date.now()};return te(te({},r),{authToken:n})}function Nc(r){return r.requestStatus===1&&r.requestTime+ki<Date.now()}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function kc(r){return S(this,void 0,void 0,function(){var n,s,o;return x(this,function(u){switch(u.label){case 0:return[4,tr(r.appConfig)];case 1:return n=u.sent(),s=n.installationEntry,o=n.registrationPromise,o?o.catch(console.error):nr(r).catch(console.error),[2,s.fid]}})})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function _c(r,n){return n===void 0&&(n=!1),S(this,void 0,void 0,function(){var s;return x(this,function(o){switch(o.label){case 0:return[4,Dc(r.appConfig)];case 1:return o.sent(),[4,nr(r,n)];case 2:return s=o.sent(),[2,s.token]}})})}function Dc(r){return S(this,void 0,void 0,function(){var n;return x(this,function(s){switch(s.label){case 0:return[4,tr(r)];case 1:return n=s.sent().registrationPromise,n?[4,n]:[3,3];case 2:s.sent(),s.label=3;case 3:return[2]}})})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Tc(r,n){return S(this,void 0,void 0,function(){var s,o,u,c;return x(this,function(f){switch(f.label){case 0:return s=Sc(r,n),o=Mi(r,n),u={method:"DELETE",headers:o},[4,Xn(function(){return fetch(s,u)})];case 1:return c=f.sent(),c.ok?[3,3]:[4,Zn("Delete Installation",c)];case 2:throw f.sent();case 3:return[2]}})})}function Sc(r,n){var s=n.fid;return Jn(r)+"/"+s}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function xc(r){return S(this,void 0,void 0,function(){var n,s;return x(this,function(o){switch(o.label){case 0:return n=r.appConfig,[4,Dt(n,function(u){if(!(u&&u.registrationStatus===0))return u})];case 1:if(s=o.sent(),!s)return[3,6];if(s.registrationStatus!==1)return[3,2];throw De.create("delete-pending-registration");case 2:if(s.registrationStatus!==2)return[3,6];if(navigator.onLine)return[3,3];throw De.create("app-offline");case 3:return[4,Tc(n,s)];case 4:return o.sent(),[4,er(n)];case 5:o.sent(),o.label=6;case 6:return[2]}})})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Mc(r,n){var s=r.appConfig;return ic(s,n),function(){sc(s,n)}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Oc(r){var n,s;if(!r||!r.options)throw Fn("App Configuration");if(!r.name)throw Fn("App Name");var o=["projectId","apiKey","appId"];try{for(var u=je(o),c=u.next();!c.done;c=u.next()){var f=c.value;if(!r.options[f])throw Fn(f)}}catch(d){n={error:d}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(n)throw n.error}}return{appName:r.name,projectId:r.options.projectId,apiKey:r.options.apiKey,appId:r.options.appId}}function Fn(r){return De.create("missing-app-config-values",{valueName:r})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function jc(r){var n="installations";r.INTERNAL.registerComponent(new kt(n,function(s){var o=s.getProvider("app").getImmediate(),u=Oc(o),c=s.getProvider("platform-logger"),f={appConfig:u,platformLoggerProvider:c},d={app:o,getId:function(){return kc(f)},getToken:function(g){return _c(f,g)},delete:function(){return xc(f)},onIdChange:function(g){return Mc(f,g)}};return d},"PUBLIC")),r.registerVersion(Bu,Ni)}jc(He);/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var U,Ec=(U={},U["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',U["only-available-in-window"]="This method is available in a Window context.",U["only-available-in-sw"]="This method is available in a service worker context.",U["permission-default"]="The notification permission was not granted and dismissed instead.",U["permission-blocked"]="The notification permission was not granted and blocked instead.",U["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",U["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",U["token-subscribe-failed"]="A problem occurred while subscribing the user to FCM: {$errorInfo}",U["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",U["token-unsubscribe-failed"]="A problem occurred while unsubscribing the user from FCM: {$errorInfo}",U["token-update-failed"]="A problem occurred while updating the user from FCM: {$errorInfo}",U["token-update-no-token"]="FCM returned no token when updating the user to push.",U["use-sw-after-get-token"]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",U["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",U["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",U["invalid-vapid-key"]="The public VAPID key must be a string.",U["use-vapid-key-after-get-token"]="The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used.",U),Y=new Nt("messaging","Messaging",Ec);/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Ic="/firebase-messaging-sw.js",Cc="/firebase-cloud-messaging-push-scope",Xt="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",Yc="https://fcmregistrations.googleapis.com/v1",Ri="FCM_MSG",Pc="FirebaseMessaging: ",Rc="google.c.a.e",Vi="google.c.a.c_id",Vc="google.c.a.ts",Ac="google.c.a.c_l",Fc=1e3,Lc=3e3;/**
 * @license
 * Copyright 2018 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */var Fe;(function(r){r.PUSH_RECEIVED="push-received",r.NOTIFICATION_CLICKED="notification-clicked"})(Fe||(Fe={}));/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function _e(r){var n=new Uint8Array(r),s=btoa(String.fromCharCode.apply(String,Kt([],Qe(n))));return s.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Wc(r){for(var n="=".repeat((4-r.length%4)%4),s=(r+n).replace(/\-/g,"+").replace(/_/g,"/"),o=atob(s),u=new Uint8Array(o.length),c=0;c<o.length;++c)u[c]=o.charCodeAt(c);return u}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Ln="fcm_token_details_db",Hc=5,oi="fcm_token_object_Store";function qc(r){return S(this,void 0,void 0,function(){var n,s,o,u,c=this;return x(this,function(f){switch(f.label){case 0:return"databases"in indexedDB?[4,indexedDB.databases()]:[3,2];case 1:if(n=f.sent(),s=n.map(function(d){return d.name}),!s.includes(Ln))return[2,null];f.label=2;case 2:return o=null,[4,Kn(Ln,Hc,function(d){return S(c,void 0,void 0,function(){var g,y,w,w,w,C;return x(this,function(T){switch(T.label){case 0:return d.oldVersion<2?[2]:d.objectStoreNames.contains(oi)?(g=d.transaction.objectStore(oi),[4,g.index("fcmSenderId").get(r)]):[2];case 1:return y=T.sent(),[4,g.clear()];case 2:if(T.sent(),!y)return[2];if(d.oldVersion===2){if(w=y,!w.auth||!w.p256dh||!w.endpoint)return[2];o={token:w.fcmToken,createTime:(C=w.createTime)!==null&&C!==void 0?C:Date.now(),subscriptionOptions:{auth:w.auth,p256dh:w.p256dh,endpoint:w.endpoint,swScope:w.swScope,vapidKey:typeof w.vapidKey=="string"?w.vapidKey:_e(w.vapidKey)}}}else d.oldVersion===3?(w=y,o={token:w.fcmToken,createTime:w.createTime,subscriptionOptions:{auth:_e(w.auth),p256dh:_e(w.p256dh),endpoint:w.endpoint,swScope:w.swScope,vapidKey:_e(w.vapidKey)}}):d.oldVersion===4&&(w=y,o={token:w.fcmToken,createTime:w.createTime,subscriptionOptions:{auth:_e(w.auth),p256dh:_e(w.p256dh),endpoint:w.endpoint,swScope:w.swScope,vapidKey:_e(w.vapidKey)}});return[2]}})})})];case 3:return u=f.sent(),u.close(),[4,Vn(Ln)];case 4:return f.sent(),[4,Vn("fcm_vapid_details_db")];case 5:return f.sent(),[4,Vn("undefined")];case 6:return f.sent(),[2,Uc(o)?o:null]}})})}function Uc(r){if(!r||!r.subscriptionOptions)return!1;var n=r.subscriptionOptions;return typeof r.createTime=="number"&&r.createTime>0&&typeof r.token=="string"&&r.token.length>0&&typeof n.auth=="string"&&n.auth.length>0&&typeof n.p256dh=="string"&&n.p256dh.length>0&&typeof n.endpoint=="string"&&n.endpoint.length>0&&typeof n.swScope=="string"&&n.swScope.length>0&&typeof n.vapidKey=="string"&&n.vapidKey.length>0}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Bc="firebase-messaging-database",$c=1,Le="firebase-messaging-store",Wn=null;function rr(){return Wn||(Wn=Kn(Bc,$c,function(r){switch(r.oldVersion){case 0:r.createObjectStore(Le)}})),Wn}function Qt(r){return S(this,void 0,void 0,function(){var n,s,o,u;return x(this,function(c){switch(c.label){case 0:return n=sr(r),[4,rr()];case 1:return s=c.sent(),[4,s.transaction(Le).objectStore(Le).get(n)];case 2:return o=c.sent(),o?[2,o]:[3,3];case 3:return[4,qc(r.appConfig.senderId)];case 4:return u=c.sent(),u?[4,ir(r,u)]:[3,6];case 5:return c.sent(),[2,u];case 6:return[2]}})})}function ir(r,n){return S(this,void 0,void 0,function(){var s,o,u;return x(this,function(c){switch(c.label){case 0:return s=sr(r),[4,rr()];case 1:return o=c.sent(),u=o.transaction(Le,"readwrite"),[4,u.objectStore(Le).put(n,s)];case 2:return c.sent(),[4,u.complete];case 3:return c.sent(),[2,n]}})})}function Gc(r){return S(this,void 0,void 0,function(){var n,s,o;return x(this,function(u){switch(u.label){case 0:return n=sr(r),[4,rr()];case 1:return s=u.sent(),o=s.transaction(Le,"readwrite"),[4,o.objectStore(Le).delete(n)];case 2:return u.sent(),[4,o.complete];case 3:return u.sent(),[2]}})})}function sr(r){var n=r.appConfig;return n.appId}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function zc(r,n){return S(this,void 0,void 0,function(){var s,o,u,c,f,d,g;return x(this,function(y){switch(y.label){case 0:return[4,or(r)];case 1:s=y.sent(),o=Fi(n),u={method:"POST",headers:s,body:JSON.stringify(o)},y.label=2;case 2:return y.trys.push([2,5,,6]),[4,fetch(ar(r.appConfig),u)];case 3:return f=y.sent(),[4,f.json()];case 4:return c=y.sent(),[3,6];case 5:throw d=y.sent(),Y.create("token-subscribe-failed",{errorInfo:d});case 6:if(c.error)throw g=c.error.message,Y.create("token-subscribe-failed",{errorInfo:g});if(!c.token)throw Y.create("token-subscribe-no-token");return[2,c.token]}})})}function Kc(r,n){return S(this,void 0,void 0,function(){var s,o,u,c,f,d,g;return x(this,function(y){switch(y.label){case 0:return[4,or(r)];case 1:s=y.sent(),o=Fi(n.subscriptionOptions),u={method:"PATCH",headers:s,body:JSON.stringify(o)},y.label=2;case 2:return y.trys.push([2,5,,6]),[4,fetch(ar(r.appConfig)+"/"+n.token,u)];case 3:return f=y.sent(),[4,f.json()];case 4:return c=y.sent(),[3,6];case 5:throw d=y.sent(),Y.create("token-update-failed",{errorInfo:d});case 6:if(c.error)throw g=c.error.message,Y.create("token-update-failed",{errorInfo:g});if(!c.token)throw Y.create("token-update-no-token");return[2,c.token]}})})}function Ai(r,n){return S(this,void 0,void 0,function(){var s,o,u,c,f,d;return x(this,function(g){switch(g.label){case 0:return[4,or(r)];case 1:s=g.sent(),o={method:"DELETE",headers:s},g.label=2;case 2:return g.trys.push([2,5,,6]),[4,fetch(ar(r.appConfig)+"/"+n,o)];case 3:return u=g.sent(),[4,u.json()];case 4:if(c=g.sent(),c.error)throw f=c.error.message,Y.create("token-unsubscribe-failed",{errorInfo:f});return[3,6];case 5:throw d=g.sent(),Y.create("token-unsubscribe-failed",{errorInfo:d});case 6:return[2]}})})}function ar(r){var n=r.projectId;return Yc+"/projects/"+n+"/registrations"}function or(r){var n=r.appConfig,s=r.installations;return S(this,void 0,void 0,function(){var o;return x(this,function(u){switch(u.label){case 0:return[4,s.getToken()];case 1:return o=u.sent(),[2,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":n.apiKey,"x-goog-firebase-installations-auth":"FIS "+o})]}})})}function Fi(r){var n=r.p256dh,s=r.auth,o=r.endpoint,u=r.vapidKey,c={web:{endpoint:o,auth:s,p256dh:n}};return u!==Xt&&(c.web.applicationPubKey=u),c}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Jc=7*24*60*60*1e3;function Un(r,n,s){return S(this,void 0,void 0,function(){var o,u,c,f;return x(this,function(d){switch(d.label){case 0:if(Notification.permission!=="granted")throw Y.create("permission-blocked");return[4,Xc(n,s)];case 1:return o=d.sent(),[4,Qt(r)];case 2:return u=d.sent(),c={vapidKey:s,swScope:n.scope,endpoint:o.endpoint,auth:_e(o.getKey("auth")),p256dh:_e(o.getKey("p256dh"))},u?[3,3]:[2,li(r,c)];case 3:if(Qc(u.subscriptionOptions,c))return[3,8];d.label=4;case 4:return d.trys.push([4,6,,7]),[4,Ai(r,u.token)];case 5:return d.sent(),[3,7];case 6:return f=d.sent(),console.warn(f),[3,7];case 7:return[2,li(r,c)];case 8:return Date.now()>=u.createTime+Jc?[2,Zc({token:u.token,createTime:Date.now(),subscriptionOptions:c},r,n)]:[2,u.token];case 9:return[2]}})})}function gt(r,n){return S(this,void 0,void 0,function(){var s,o;return x(this,function(u){switch(u.label){case 0:return[4,Qt(r)];case 1:return s=u.sent(),s?[4,Ai(r,s.token)]:[3,4];case 2:return u.sent(),[4,Gc(r)];case 3:u.sent(),u.label=4;case 4:return[4,n.pushManager.getSubscription()];case 5:return o=u.sent(),o?[2,o.unsubscribe()]:[2,!0]}})})}function Zc(r,n,s){return S(this,void 0,void 0,function(){var o,u,c;return x(this,function(f){switch(f.label){case 0:return f.trys.push([0,3,,5]),[4,Kc(n,r)];case 1:return o=f.sent(),u=te(te({},r),{token:o,createTime:Date.now()}),[4,ir(n,u)];case 2:return f.sent(),[2,o];case 3:return c=f.sent(),[4,gt(n,s)];case 4:throw f.sent(),c;case 5:return[2]}})})}function li(r,n){return S(this,void 0,void 0,function(){var s,o;return x(this,function(u){switch(u.label){case 0:return[4,zc(r,n)];case 1:return s=u.sent(),o={token:s,createTime:Date.now(),subscriptionOptions:n},[4,ir(r,o)];case 2:return u.sent(),[2,o.token]}})})}function Xc(r,n){return S(this,void 0,void 0,function(){var s;return x(this,function(o){switch(o.label){case 0:return[4,r.pushManager.getSubscription()];case 1:return s=o.sent(),s?[2,s]:[2,r.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Wc(n)})]}})})}function Qc(r,n){var s=n.vapidKey===r.vapidKey,o=n.endpoint===r.endpoint,u=n.auth===r.auth,c=n.p256dh===r.p256dh;return s&&o&&u&&c}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function eh(r){var n={from:r.from,collapseKey:r.collapse_key,messageId:r.fcm_message_id};return th(n,r),nh(n,r),rh(n,r),n}function th(r,n){if(n.notification){r.notification={};var s=n.notification.title;s&&(r.notification.title=s);var o=n.notification.body;o&&(r.notification.body=o);var u=n.notification.image;u&&(r.notification.image=u)}}function nh(r,n){n.data&&(r.data=n.data)}function rh(r,n){if(n.fcmOptions){r.fcmOptions={};var s=n.fcmOptions.link;s&&(r.fcmOptions.link=s);var o=n.fcmOptions.analytics_label;o&&(r.fcmOptions.analyticsLabel=o)}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Li(r){return typeof r=="object"&&!!r&&Vi in r}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function ui(r){return new Promise(function(n){setTimeout(n,r)})}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var ih=function(){function r(n){var s=this;this.firebaseDependencies=n,this.isOnBackgroundMessageUsed=null,this.vapidKey=null,this.bgMessageHandler=null,self.addEventListener("push",function(o){o.waitUntil(s.onPush(o))}),self.addEventListener("pushsubscriptionchange",function(o){o.waitUntil(s.onSubChange(o))}),self.addEventListener("notificationclick",function(o){o.waitUntil(s.onNotificationClick(o))})}return Object.defineProperty(r.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),r.prototype.setBackgroundMessageHandler=function(n){if(this.isOnBackgroundMessageUsed=!1,!n||typeof n!="function")throw Y.create("invalid-bg-handler");this.bgMessageHandler=n},r.prototype.onBackgroundMessage=function(n){var s=this;return this.isOnBackgroundMessageUsed=!0,this.bgMessageHandler=n,function(){s.bgMessageHandler=null}},r.prototype.getToken=function(){var n,s;return S(this,void 0,void 0,function(){var o;return x(this,function(u){switch(u.label){case 0:return this.vapidKey?[3,2]:[4,Qt(this.firebaseDependencies)];case 1:o=u.sent(),this.vapidKey=(s=(n=o==null?void 0:o.subscriptionOptions)===null||n===void 0?void 0:n.vapidKey)!==null&&s!==void 0?s:Xt,u.label=2;case 2:return[2,Un(this.firebaseDependencies,self.registration,this.vapidKey)]}})})},r.prototype.deleteToken=function(){return gt(this.firebaseDependencies,self.registration)},r.prototype.requestPermission=function(){throw Y.create("only-available-in-window")},r.prototype.usePublicVapidKey=function(n){if(this.vapidKey!==null)throw Y.create("use-vapid-key-after-get-token");if(typeof n!="string"||n.length===0)throw Y.create("invalid-vapid-key");this.vapidKey=n},r.prototype.useServiceWorker=function(){throw Y.create("only-available-in-window")},r.prototype.onMessage=function(){throw Y.create("only-available-in-window")},r.prototype.onTokenRefresh=function(){throw Y.create("only-available-in-window")},r.prototype.onPush=function(n){return S(this,void 0,void 0,function(){var s,o,u,c;return x(this,function(f){switch(f.label){case 0:return s=ah(n),s?[4,Wi()]:(console.debug(Pc+"failed to get parsed MessagePayload from the PushEvent. Skip handling the push."),[2]);case 1:return o=f.sent(),lh(o)?[2,uh(o,s)]:(u=!1,s.notification?[4,ch(sh(s))]:[3,3]);case 2:f.sent(),u=!0,f.label=3;case 3:return u===!0&&this.isOnBackgroundMessageUsed===!1?[2]:(this.bgMessageHandler&&(c=eh(s),typeof this.bgMessageHandler=="function"?this.bgMessageHandler(c):this.bgMessageHandler.next(c)),[4,ui(Fc)]);case 4:return f.sent(),[2]}})})},r.prototype.onSubChange=function(n){var s,o;return S(this,void 0,void 0,function(){var u,c;return x(this,function(f){switch(f.label){case 0:return u=n.newSubscription,u?[3,2]:[4,gt(this.firebaseDependencies,self.registration)];case 1:return f.sent(),[2];case 2:return[4,Qt(this.firebaseDependencies)];case 3:return c=f.sent(),[4,gt(this.firebaseDependencies,self.registration)];case 4:return f.sent(),[4,Un(this.firebaseDependencies,self.registration,(o=(s=c==null?void 0:c.subscriptionOptions)===null||s===void 0?void 0:s.vapidKey)!==null&&o!==void 0?o:Xt)];case 5:return f.sent(),[2]}})})},r.prototype.onNotificationClick=function(n){var s,o;return S(this,void 0,void 0,function(){var u,c,f,d,g;return x(this,function(y){switch(y.label){case 0:if(u=(o=(s=n.notification)===null||s===void 0?void 0:s.data)===null||o===void 0?void 0:o[Ri],u){if(n.action)return[2]}else return[2];return n.stopImmediatePropagation(),n.notification.close(),c=hh(u),c?(f=new URL(c,self.location.href),d=new URL(self.location.origin),f.host!==d.host?[2]:[4,oh(f)]):[2];case 1:return g=y.sent(),g?[3,4]:[4,self.clients.openWindow(c)];case 2:return g=y.sent(),[4,ui(Lc)];case 3:return y.sent(),[3,6];case 4:return[4,g.focus()];case 5:g=y.sent(),y.label=6;case 6:return g?(u.messageType=Fe.NOTIFICATION_CLICKED,u.isFirebaseMessaging=!0,[2,g.postMessage(u)]):[2]}})})},r}();function sh(r){var n,s=te({},r.notification);return s.data=(n={},n[Ri]=r,n),s}function ah(r){var n=r.data;if(!n)return null;try{return n.json()}catch{return null}}function oh(r){return S(this,void 0,void 0,function(){var n,s,o,u,c,f,d;return x(this,function(g){switch(g.label){case 0:return[4,Wi()];case 1:n=g.sent();try{for(s=je(n),o=s.next();!o.done;o=s.next())if(u=o.value,c=new URL(u.url,self.location.href),r.host===c.host)return[2,u]}catch(y){f={error:y}}finally{try{o&&!o.done&&(d=s.return)&&d.call(s)}finally{if(f)throw f.error}}return[2,null]}})})}function lh(r){return r.some(function(n){return n.visibilityState==="visible"&&!n.url.startsWith("chrome-extension://")})}function uh(r,n){var s,o;n.isFirebaseMessaging=!0,n.messageType=Fe.PUSH_RECEIVED;try{for(var u=je(r),c=u.next();!c.done;c=u.next()){var f=c.value;f.postMessage(n)}}catch(d){s={error:d}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(s)throw s.error}}}function Wi(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function ch(r){var n,s=r.actions,o=Notification.maxActions;return s&&o&&s.length>o&&console.warn("This browser only supports "+o+" actions. The remaining actions will not be displayed."),self.registration.showNotification((n=r.title)!==null&&n!==void 0?n:"",r)}function hh(r){var n,s,o,u=(s=(n=r.fcmOptions)===null||n===void 0?void 0:n.link)!==null&&s!==void 0?s:(o=r.notification)===null||o===void 0?void 0:o.click_action;return u||(Li(r.data)?self.location.origin:null)}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var fh=function(){function r(n){var s=this;this.firebaseDependencies=n,this.vapidKey=null,this.onMessageCallback=null,navigator.serviceWorker.addEventListener("message",function(o){return s.messageEventListener(o)})}return Object.defineProperty(r.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),r.prototype.messageEventListener=function(n){return S(this,void 0,void 0,function(){var s,o;return x(this,function(u){switch(u.label){case 0:return s=n.data,s.isFirebaseMessaging?(this.onMessageCallback&&s.messageType===Fe.PUSH_RECEIVED&&(typeof this.onMessageCallback=="function"?this.onMessageCallback(mh(Object.assign({},s))):this.onMessageCallback.next(Object.assign({},s))),o=s.data,Li(o)&&o[Rc]==="1"?[4,this.logEvent(s.messageType,o)]:[3,2]):[2];case 1:u.sent(),u.label=2;case 2:return[2]}})})},r.prototype.getVapidKey=function(){return this.vapidKey},r.prototype.getSwReg=function(){return this.swRegistration},r.prototype.getToken=function(n){return S(this,void 0,void 0,function(){return x(this,function(s){switch(s.label){case 0:return Notification.permission!=="default"?[3,2]:[4,Notification.requestPermission()];case 1:s.sent(),s.label=2;case 2:if(Notification.permission!=="granted")throw Y.create("permission-blocked");return[4,this.updateVapidKey(n==null?void 0:n.vapidKey)];case 3:return s.sent(),[4,this.updateSwReg(n==null?void 0:n.serviceWorkerRegistration)];case 4:return s.sent(),[2,Un(this.firebaseDependencies,this.swRegistration,this.vapidKey)]}})})},r.prototype.updateVapidKey=function(n){return S(this,void 0,void 0,function(){return x(this,function(s){return n?this.vapidKey=n:this.vapidKey||(this.vapidKey=Xt),[2]})})},r.prototype.updateSwReg=function(n){return S(this,void 0,void 0,function(){return x(this,function(s){switch(s.label){case 0:return!n&&!this.swRegistration?[4,this.registerDefaultSw()]:[3,2];case 1:s.sent(),s.label=2;case 2:if(!n&&this.swRegistration)return[2];if(!(n instanceof ServiceWorkerRegistration))throw Y.create("invalid-sw-registration");return this.swRegistration=n,[2]}})})},r.prototype.registerDefaultSw=function(){return S(this,void 0,void 0,function(){var n,s;return x(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),n=this,[4,navigator.serviceWorker.register(Ic,{scope:Cc})];case 1:return n.swRegistration=o.sent(),this.swRegistration.update().catch(function(){}),[3,3];case 2:throw s=o.sent(),Y.create("failed-service-worker-registration",{browserErrorMessage:s.message});case 3:return[2]}})})},r.prototype.deleteToken=function(){return S(this,void 0,void 0,function(){return x(this,function(n){switch(n.label){case 0:return this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:n.sent(),n.label=2;case 2:return[2,gt(this.firebaseDependencies,this.swRegistration)]}})})},r.prototype.requestPermission=function(){return S(this,void 0,void 0,function(){var n;return x(this,function(s){switch(s.label){case 0:return Notification.permission==="granted"?[2]:[4,Notification.requestPermission()];case 1:if(n=s.sent(),n==="granted")return[2];throw n==="denied"?Y.create("permission-blocked"):Y.create("permission-default")}})})},r.prototype.usePublicVapidKey=function(n){if(this.vapidKey!==null)throw Y.create("use-vapid-key-after-get-token");if(typeof n!="string"||n.length===0)throw Y.create("invalid-vapid-key");this.vapidKey=n},r.prototype.useServiceWorker=function(n){if(!(n instanceof ServiceWorkerRegistration))throw Y.create("invalid-sw-registration");if(this.swRegistration)throw Y.create("use-sw-after-get-token");this.swRegistration=n},r.prototype.onMessage=function(n){var s=this;return this.onMessageCallback=n,function(){s.onMessageCallback=null}},r.prototype.setBackgroundMessageHandler=function(){throw Y.create("only-available-in-sw")},r.prototype.onBackgroundMessage=function(){throw Y.create("only-available-in-sw")},r.prototype.onTokenRefresh=function(){return function(){}},r.prototype.logEvent=function(n,s){return S(this,void 0,void 0,function(){var o,u;return x(this,function(c){switch(c.label){case 0:return o=dh(n),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return u=c.sent(),u.logEvent(o,{message_id:s[Vi],message_name:s[Ac],message_time:s[Vc],message_device_time:Math.floor(Date.now()/1e3)}),[2]}})})},r}();function dh(r){switch(r){case Fe.NOTIFICATION_CLICKED:return"notification_open";case Fe.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}function mh(r){return delete r.messageType,delete r.isFirebaseMessaging,r}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function ph(r){var n,s;if(!r||!r.options)throw Hn("App Configuration Object");if(!r.name)throw Hn("App Name");var o=["projectId","apiKey","appId","messagingSenderId"],u=r.options;try{for(var c=je(o),f=c.next();!f.done;f=c.next()){var d=f.value;if(!u[d])throw Hn(d)}}catch(g){n={error:g}}finally{try{f&&!f.done&&(s=c.return)&&s.call(c)}finally{if(n)throw n.error}}return{appName:r.name,projectId:u.projectId,apiKey:u.apiKey,appId:u.appId,senderId:u.messagingSenderId}}function Hn(r){return Y.create("missing-app-config-values",{valueName:r})}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var gh="messaging";function vh(r){var n=r.getProvider("app").getImmediate(),s=ph(n),o=r.getProvider("installations").getImmediate(),u=r.getProvider("analytics-internal"),c={app:n,appConfig:s,installations:o,analyticsProvider:u};if(!Hi())throw Y.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new ih(c):new fh(c)}var yh={isSupported:Hi};He.INTERNAL.registerComponent(new kt(gh,vh,"PUBLIC").setServiceProps(yh));function Hi(){return self&&"ServiceWorkerGlobalScope"in self?wh():bh()}function bh(){return"indexedDB"in window&&indexedDB!==null&&navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}function wh(){return"indexedDB"in self&&indexedDB!==null&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}const Nh={apiKey:"AIzaSyBIkPvq7qh-WRG_mza5yjSwh-ASoQ48QNQ",authDomain:"webpushnotify-a9d99.firebaseapp.com",projectId:"webpushnotify-a9d99",storageBucket:"webpushnotify-a9d99.appspot.com",messagingSenderId:"530665672512",appId:"1:530665672512:web:f6a5ce9d93869837d634a5",measurementId:"G-JL0YEXZMG3"};He.initializeApp(Nh);const wt=He.messaging();function kh(){wt.requestPermission().then(function(){return console.log("Notification Permission"),wt.getToken()}).then(function(r){console.log("Token : "+r),localStorage.setItem("fcm_token",JSON.stringify(r)),Ee.IDDonVi&&Ee.IDDonVi&&_h(r).then(n=>{n?n.DonVi_Id!==Ee.IDDonVi&&Th(n.Id):Sh().then(s=>Dh(r,s))}).catch(n=>et("Xảy ra lỗi check token exists","Thông báo"))}).catch(function(r){console.log(r)})}wt.onMessage(function(r){console.log(r);const n={body:r.data.body,icon:"https://baocaostc.gdtsolutions.vn/logo.png"};if(Notification.permission==="granted"){var s=new Notification(r.data.title,n);s.onclick=function(o){o.preventDefault(),window.open(r.data.click_action,"_blank"),s.close()}}});wt.onTokenRefresh(function(){wt.getToken().then(function(r){console.log("New Token : "+r)}).catch(function(r){console.log(r)})});kh();function _h(r){return new Promise((n,s)=>{en(`SYS_ThietBi?$filter=FCM_Token eq '${r}'`,"GET",null).then(o=>{o.value.length>0?n(o.value[0]):n(!1)}).catch(o=>s(!0))})}function Dh(r,n=null){en("SYS_ThietBi","POST",JSON.stringify({Name:"Máy tính cá nhân",Loai:"Web",IP:n,FCM_Token:r,MaTaiKhoan:Ee.MaTaiKhoan,DonVi_Id:Ee.IDDonVi})).then(s=>{}).catch(s=>et("Không thể lưu thiết bị","Thông báo"))}function Th(r){en(`SYS_ThietBi(guid'${r}')`,"PATCH",JSON.stringify({DonVi_Id:Ee.IDDonVi})).then(n=>{}).catch(n=>et("Không thể cập nhật đơn vị cho thiết bị","Thông báo"))}function Sh(){return new Promise((r,n)=>{fetch("https://api.ipify.org/?format=json").then(s=>s.json()).then(s=>r(s.ip)).catch(s=>n(null))})}const xh=({style:r})=>p.jsxDEV(p.Fragment,{children:p.jsxDEV("span",{style:r,className:"pulse"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:25,columnNumber:7},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:24,columnNumber:5},globalThis),Mh=We.div`
  position: relative;
`,Oh=We(fi)`
  cursor: pointer;
  min-height: '3rem';
`;We.div`
  background: #cdcdcd;
  border-radius: 50%;
  img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    border: 1px solid #cdcdcd;
    border-radius: 50%;
  }
`;const jh=We.div`
  position: relative;
  flex-grow: 1;
  margin-left: 0.3rem;
  padding: 0 1rem 0 0.5rem;
`,Eh=We.span``,Ih=We.span`
  height: 10px;
  width: 10px;
  background: rgb(24, 118, 242);
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-radius: 50%;
`,Ch=We.span`
  position: absolute;
  top: -0.35rem;
  right: 0;
  z-index: 999;
  font-size: 13px;
`;function zh(){const[r,n]=pt.useState([]),[s,o]=pt.useState(!1),[,u]=pt.useState(null),[c,f]=pt.useState(null),d=()=>{o(!s)};pt.useEffect(()=>{g()},[s]);const g=()=>{ti(`SYS_ThongBao?$orderby=Created_Date desc&$expand=SYS_TaiKhoan,SYS_DonVi,SYS_DonVi1
        &$filter=(DonViGui_Id eq '${Ee.IDDonVi}' and 
        (HanhDong eq '${W.TinNhanTuHeThong}' or HanhDong eq '${W.DaKySo}'
        or HanhDong eq '${W.HuyKySo}' or HanhDong eq '${W.ChinhSuaBaoCao}')) 
        or (DonViNhan_Id eq '${Ee.IDDonVi}' and (HanhDong eq '${W.GuiBaoCao}' 
        or HanhDong eq '${W.TinNhanTuDonVi}' or HanhDong eq '${W.DuyetBaoCao}' 
        or HanhDong eq '${W.TuChoiBaoCao}' or HanhDong eq '${W.DaTrinhKy}' 
        or HanhDong eq '${W.TiepNhanTrinhKy}' or HanhDong eq '${W.TuChoiTrinhKy}'))&$top=4`).then(b=>{b.value.filter(O=>!O.DaXemThongBao).length?document.title=` Có ${b.value.filter(O=>!O.DaXemThongBao).length} thông báo mới chưa đọc`:document.title="Hệ Thống Quản Lý Hộ Nghèo & Cận Nghèo - Bình Định",n(b.value)}).catch(b=>et("Không thể tài dữ liệu thông báo","Thông báo"))},y=()=>{let b=r.filter(O=>!O.DaXemThongBao).map(O=>O.Id);en("ThongBaos/DanhDauDaXem","POST",JSON.stringify({Ids:b}),{odata:!1}).then(O=>{g()}).catch(O=>et("Không thể đánh dấu xem tất cả","Thông báo"))},w=(b,O)=>{b&&ti(`SYS_ThongBao(guid'${b}')`,"PATCH",JSON.stringify({DaXemThongBao:O})).then(B=>{g()}).catch(B=>et("Không thể cập nhật trạng thái đã xem của báo cáo","Thông báo"))},C=b=>{switch(b.Targer_Module){case Yn.BaoCao:u({ID:b.Target_Id,BaoCaoDi:b.HanhDong!==W.GuiBaoCao});break;case Yn.LinhVuc:break;case Yn.TinNhan:f(b.NoiDung);break}w(b.Id,!0)},T=()=>{let b=r.filter(O=>!O.DaXemThongBao).length;return b&&b!==0?p.jsxDEV(Ch,{children:p.jsxDEV(zl,{style:{borderRadius:"50%"},color:"danger",children:b},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:151,columnNumber:9},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:150,columnNumber:7},this):""};return p.jsxDEV(Mh,{className:"d-flex align-items-center",id:"popover-notify",children:[T(),p.jsxDEV("div",{className:"form-icon-header-custom",children:[p.jsxDEV(Eh,{children:p.jsxDEV("img",{src:"../../assets/iconNotication.png",className:"img-avatar-custom rounded-circle",alt:"gdtvietnam"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:164,columnNumber:11},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:163,columnNumber:9},this),p.jsxDEV(Ul,{className:"popover-notify",placement:"bottom",isOpen:s,target:"popover-notify",toggle:d,trigger:"legacy",children:[p.jsxDEV(Bl,{className:"d-flex justify-content-between align-items-center bg-white pt-1 pb-1",children:[p.jsxDEV("span",{className:"fw-bold",children:"Thông báo"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:175,columnNumber:13},this),p.jsxDEV("div",{className:"pull-right d-flex gap-2",children:[p.jsxDEV($l,{className:"btn-check-all-notication",onClick:y,children:["Đánh dấu đã xem",p.jsxDEV(vt,{fa:"check"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:179,columnNumber:17},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:177,columnNumber:15},this),p.jsxDEV(fi,{to:"/thong-bao",className:"btn-check-all-notication",children:"Xem tất cả"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:181,columnNumber:15},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:176,columnNumber:13},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:174,columnNumber:11},this),p.jsxDEV(Gl,{children:r.length?r.slice(0,10).map((b,O)=>p.jsxDEV(Yh,{onClick:C,data:b,close:d},O,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:190,columnNumber:39},this)):p.jsxDEV(Kl,{size:"sm",text:"Không có thông báo"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:192,columnNumber:15},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:186,columnNumber:11},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:166,columnNumber:9},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:162,columnNumber:7},this),c&&p.jsxDEV(Jl,{title:"Nội dung thông báo",open:!!c,handleClose:()=>f(null),maxWidth:"sm",children:p.jsxDEV(Zl,{id:"noiDung",placeholder:"Nhập nội dung thông báo...",value:c},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:204,columnNumber:11},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:198,columnNumber:9},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:160,columnNumber:5},this)}const Yh=({onClick:r,key:n,data:s,close:o})=>{const u=g=>{var y,w;return(y=g.SYS_TaiKhoan)!=null&&y.HinhAnh?p.jsxDEV("img",{className:"img-user-item-notify",src:`${ql}${(w=g.SYS_TaiKhoan)==null?void 0:w.HinhAnh}`,alt:""},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:214,columnNumber:7},globalThis):p.jsxDEV("img",{className:"img-user-item-notify",src:"/assets/profile-w.jpg",alt:""},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:216,columnNumber:7},globalThis)},c=g=>{let y=g.SYS_DonVi.TenDonVi,w=g.TieuDe;return p.jsxDEV("span",{children:[p.jsxDEV("b",{children:y},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:224,columnNumber:9},globalThis)," đã nhắc bạn về việc ",w]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:223,columnNumber:7},globalThis)},f=g=>{let y={color:"#1876f2",fontSize:11,fontWeight:500,marginTop:"0.5rem"},w=hi(g.Created_Date).fromNow();return g.Created_Date?p.jsxDEV("div",{style:y,children:w},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:236,columnNumber:32},globalThis):""},d=g=>g.DaXemThongBao?"":p.jsxDEV(Ih,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:239,columnNumber:34},globalThis);return p.jsxDEV(p.Fragment,{children:p.jsxDEV(Oh,{to:Xl("/thong-bao"),onClick:()=>{r(s),o()},className:"item-notify-header",children:[p.jsxDEV("div",{className:"outline-form-info-item-notify-header",children:p.jsxDEV("div",{className:"form-info-item-notify-header",children:[p.jsxDEV("div",{style:{fontSize:"16px",color:"#717171"},className:"d-flex justify-content-between mb-3",children:[p.jsxDEV(vt,{fa:"chevron-left"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:255,columnNumber:15},globalThis),p.jsxDEV(vt,{fa:"bell-o"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:256,columnNumber:15},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:254,columnNumber:13},globalThis),p.jsxDEV("div",{className:"d-flex align-items-center gap-3",children:[p.jsxDEV(xh,{style:{height:"10px",width:"10px"}},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:259,columnNumber:15},globalThis)," ",p.jsxDEV("h5",{children:"Xem chi tiết"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:259,columnNumber:69},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:258,columnNumber:13},globalThis),p.jsxDEV(Ph,{data:s},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:261,columnNumber:13},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:253,columnNumber:11},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:252,columnNumber:9},globalThis),p.jsxDEV("div",{children:u(s)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:264,columnNumber:9},globalThis),p.jsxDEV(jh,{children:[(s==null?void 0:s.Targer_Module)==="TinNhan"?c(s):p.jsxDEV(Bn,{item:s},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:266,columnNumber:67},globalThis),f(s),d(s)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:265,columnNumber:9},globalThis)]},n,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:243,columnNumber:7},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:242,columnNumber:5},globalThis)},Ph=({data:r,detail:n})=>{var s;return p.jsxDEV(p.Fragment,{children:[p.jsxDEV("div",{className:"form-body-info-item-notify-header",children:[p.jsxDEV("img",{style:{height:"max-content"},src:"/assets/imgPlan.jpg",alt:""},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:279,columnNumber:9},globalThis),p.jsxDEV("div",{style:n?{fontSize:"17px",padding:"1rem"}:{},children:[r.TieuDe&&p.jsxDEV("h6",{className:"mb-3",children:[r.TieuDe,"."]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:281,columnNumber:27},globalThis),p.jsxDEV("div",{children:[(r==null?void 0:r.Targer_Module)==="TinNhan"?p.jsxDEV(p.Fragment,{children:[" ",p.jsxDEV("div",{className:"d-flex align-items-center gap-2 mb-1",children:p.jsxDEV("p",{className:"mb-0",children:[p.jsxDEV("strong",{children:p.jsxDEV(vt,{style:{marginTop:"0.1rem",marginRight:"0.5rem"},fa:"ioxhost"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:289,columnNumber:23},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:288,columnNumber:21},globalThis)," ",r.NoiDung||"Không có nội dung","."]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:287,columnNumber:19},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:286,columnNumber:17},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:284,columnNumber:15},globalThis):p.jsxDEV(Bn,{item:r},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:296,columnNumber:15},globalThis),p.jsxDEV("div",{className:`d-flex align-items-center gap-2 mb-1 ${n?"mt-3":""}`,children:p.jsxDEV("p",{className:"mb-0",children:[p.jsxDEV("strong",{children:p.jsxDEV(vt,{style:{marginTop:"0.1rem",marginRight:"0.5rem"},fa:"telegram"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:301,columnNumber:19},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:300,columnNumber:17},globalThis)," ",r.SYS_DonVi.TenDonVi,"."]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:299,columnNumber:15},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:298,columnNumber:13},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:282,columnNumber:11},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:280,columnNumber:9},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:278,columnNumber:7},globalThis),p.jsxDEV("div",{style:{fontSize:n?"15px":"12px"},className:"d-flex justify-content-between border-top border-bottom p-3 mt-4 footer-info-item-notify",children:[p.jsxDEV("div",{className:"text-center",children:[p.jsxDEV("h6",{className:`mb-0 ${n?"h4":""}`,children:r!=null&&r.DaXemThongBao?"Đã Xem":"Mới"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:314,columnNumber:11},globalThis),p.jsxDEV("p",{className:"mb-0",children:"Trạng thái"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:315,columnNumber:11},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:313,columnNumber:9},globalThis),p.jsxDEV("div",{className:"text-center",children:[p.jsxDEV("h6",{className:`mb-0 ${n?"h4":""}`,children:(s=r==null?void 0:r.SYS_DonVi1)==null?void 0:s.MaDonVi},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:318,columnNumber:11},globalThis),p.jsxDEV("p",{className:"mb-0",children:"Tài khoản nhận"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:319,columnNumber:11},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:317,columnNumber:9},globalThis),p.jsxDEV("div",{className:"text-center",children:[p.jsxDEV("h6",{className:`mb-0 ${n?"h4":""}`,children:hi(r==null?void 0:r.Created_Date).format("DD.MM")},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:322,columnNumber:11},globalThis),p.jsxDEV("p",{className:"mb-0",children:"Ngày gửi"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:323,columnNumber:11},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:321,columnNumber:9},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:309,columnNumber:7},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:277,columnNumber:5},globalThis)};export{Ph as D,zh as N,Gh as c};