From 133e94966b0a5cf762fa5c71329a3f1cbac408a8 Mon Sep 17 00:00:00 2001
From: yoan <536464346@qq.com>
Date: Fri, 23 Aug 2024 17:25:11 +0800
Subject: [PATCH] add readme file
---
.goreleaser.yml | 2 ++
CHANGELOG.md | 5 ++++
LICENSE.md | 21 ++++++++++++++
README.md | 29 +++++++++++++++++++
.../{index-BvAG2YSh.js => index-FyOtRun2.js} | 2 +-
ui/dist/index.html | 2 +-
ui/src/pages/DashboardLayout.tsx | 2 +-
7 files changed, 60 insertions(+), 3 deletions(-)
create mode 100644 LICENSE.md
create mode 100644 README.md
rename ui/dist/assets/{index-BvAG2YSh.js => index-FyOtRun2.js} (99%)
diff --git a/.goreleaser.yml b/.goreleaser.yml
index 6f40b093..4d53fcdd 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -39,6 +39,8 @@ archives:
format: zip
files:
- CHANGELOG.md
+ - LICENSE.md
+ - README.md
checksum:
name_template: "checksums.txt"
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4cef7704..8798e4d7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+## v0.0.3
+
+- 解决一些 bug
+- 添加 README.md
+
## v0.0.1
- Initial release
diff --git a/LICENSE.md b/LICENSE.md
new file mode 100644
index 00000000..9262263d
--- /dev/null
+++ b/LICENSE.md
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2024 Yoan.Liu
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/README.md b/README.md
new file mode 100644
index 00000000..aebd22b1
--- /dev/null
+++ b/README.md
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+# Certimate
+
+Certimate 是一个开源的 SSL 证书管理工具,具有以下特点:
+
+ 1. 支持私有部署:部署方法简单,只需下载二进制文件并执行即可完成安装。
+ 2. 数据安全:由于是私有部署,所有数据均存储在本地,不会保存在服务商的服务器上,确保数据的安全性。
+ 3. 操作方便:通过简单的配置即可轻松申请 SSL 证书,并且在证书即将过期时自动续期,无需人工干预。
+
+Certimate 旨在为用户提供一个安全、简便的 SSL 证书管理解决方案。
+
+## 安装使用
+
+你可以直接从[Releases 页](https://github.com/usual2970/certimate/releases)下载预先编译好的二进制文件,解压后执行:
+
+```bash
+./certimate serve
+```
+
+然后在浏览器中访问 http://127.0.0.1:8090 即可访问 Certimate 管理页面。
+
+## 许可证
+
+Certimate 采用 MIT 许可证,详情请查看 [LICENSE](LICENSE.md) 文件。
diff --git a/ui/dist/assets/index-BvAG2YSh.js b/ui/dist/assets/index-FyOtRun2.js
similarity index 99%
rename from ui/dist/assets/index-BvAG2YSh.js
rename to ui/dist/assets/index-FyOtRun2.js
index 14cdc5d6..afb24dd3 100644
--- a/ui/dist/assets/index-BvAG2YSh.js
+++ b/ui/dist/assets/index-FyOtRun2.js
@@ -219,7 +219,7 @@ var h1;function te(){return h1.apply(null,arguments)}function VI(e){h1=e}functio
[`+s+"] ";for(i in arguments[0])We(arguments[0],i)&&(o+=i+": "+arguments[0][i]+", ");o=o.slice(0,-2)}else o=arguments[s];r.push(o)}m1(e+`
Arguments: `+Array.prototype.slice.call(r).join("")+`
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var Yx={};function g1(e,t){te.deprecationHandler!=null&&te.deprecationHandler(e,t),Yx[e]||(m1(t),Yx[e]=!0)}te.suppressDeprecationWarnings=!1;te.deprecationHandler=null;function Or(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function WI(e){var t,n;for(n in e)We(e,n)&&(t=e[n],Or(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Tp(e,t){var n=Ao({},e),r;for(r in t)We(t,r)&&(Cs(e[r])&&Cs(t[r])?(n[r]={},Ao(n[r],e[r]),Ao(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)We(e,r)&&!We(t,r)&&Cs(e[r])&&(n[r]=Ao({},n[r]));return n}function Fg(e){e!=null&&this.set(e)}var Rp;Object.keys?Rp=Object.keys:Rp=function(e){var t,n=[];for(t in e)We(e,t)&&n.push(t);return n};var YI={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function HI(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Or(r)?r.call(t,n):r}function Pr(e,t,n){var r=""+Math.abs(e),o=t-r.length,s=e>=0;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var Ug=/(\[[^\[]*\])|(\\)?([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,Yc=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,dh={},Ni={};function he(e,t,n,r){var o=r;typeof r=="string"&&(o=function(){return this[r]()}),e&&(Ni[e]=o),t&&(Ni[t[0]]=function(){return Pr(o.apply(this,arguments),t[1],t[2])}),n&&(Ni[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function BI(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function GI(e){var t=e.match(Ug),n,r;for(n=0,r=t.length;n=0&&Yc.test(e);)e=e.replace(Yc,r),Yc.lastIndex=0,n-=1;return e}var KI={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 ZI(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Ug).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var qI="Invalid date";function XI(){return this._invalidDate}var QI="%d",JI=/\d{1,2}/;function e2(e){return this._ordinal.replace("%d",e)}var t2={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 n2(e,t,n,r){var o=this._relativeTime[n];return Or(o)?o(e,t,n,r):o.replace(/%d/i,e)}function r2(e,t){var n=this._relativeTime[e>0?"future":"past"];return Or(n)?n(t):n.replace(/%s/i,t)}var Hx={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Gn(e){return typeof e=="string"?Hx[e]||Hx[e.toLowerCase()]:void 0}function $g(e){var t={},n,r;for(r in e)We(e,r)&&(n=Gn(r),n&&(t[n]=e[r]));return t}var o2={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function s2(e){var t=[],n;for(n in e)We(e,n)&&t.push({unit:n,priority:o2[n]});return t.sort(function(r,o){return r.priority-o.priority}),t}var y1=/\d/,Ln=/\d\d/,x1=/\d{3}/,Vg=/\d{4}/,Zd=/[+-]?\d{6}/,ft=/\d\d?/,w1=/\d\d\d\d?/,S1=/\d\d\d\d\d\d?/,qd=/\d{1,3}/,zg=/\d{1,4}/,Xd=/[+-]?\d{1,6}/,ra=/\d+/,Qd=/[+-]?\d+/,i2=/Z|[+-]\d\d:?\d\d/gi,Jd=/Z|[+-]\d\d(?::?\d\d)?/gi,a2=/[+-]?\d+(\.\d{1,3})?/,tc=/[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,oa=/^[1-9]\d?/,Wg=/^([1-9]\d|\d)/,qu;qu={};function ie(e,t,n){qu[e]=Or(t)?t:function(r,o){return r&&n?n:t}}function l2(e,t){return We(qu,e)?qu[e](t._strict,t._locale):new RegExp(c2(e))}function c2(e){return Qr(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,o,s){return n||r||o||s}))}function Qr(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function $n(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ae(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=$n(t)),n}var Np={};function nt(e,t){var n,r=t,o;for(typeof e=="string"&&(e=[e]),lo(t)&&(r=function(s,i){i[t]=Ae(s)}),o=e.length,n=0;n68?1900:2e3)};var _1=sa("FullYear",!0);function h2(){return ef(this.year())}function sa(e,t){return function(n){return n!=null?(b1(this,e,n),te.updateOffset(this,t),this):yl(this,e)}}function yl(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function b1(e,t,n){var r,o,s,i,a;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}s=n,i=e.month(),a=e.date(),a=a===29&&i===1&&!ef(s)?28:a,o?r.setUTCFullYear(s,i,a):r.setFullYear(s,i,a)}}function p2(e){return e=Gn(e),Or(this[e])?this[e]():this}function m2(e,t){if(typeof e=="object"){e=$g(e);var n=s2(e),r,o=n.length;for(r=0;r=0?(a=new Date(e+400,t,n,r,o,s,i),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,o,s,i),a}function xl(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Xu(e,t,n){var r=7+t-n,o=(7+xl(e,0,r).getUTCDay()-t)%7;return-o+r-1}function N1(e,t,n,r,o){var s=(7+n-r)%7,i=Xu(e,r,o),a=1+7*(t-1)+s+i,l,u;return a<=0?(l=e-1,u=Wa(l)+a):a>Wa(e)?(l=e+1,u=a-Wa(e)):(l=e,u=a),{year:l,dayOfYear:u}}function wl(e,t,n){var r=Xu(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1,s,i;return o<1?(i=e.year()-1,s=o+Jr(i,t,n)):o>Jr(e.year(),t,n)?(s=o-Jr(e.year(),t,n),i=e.year()+1):(i=e.year(),s=o),{week:s,year:i}}function Jr(e,t,n){var r=Xu(e,t,n),o=Xu(e+1,t,n);return(Wa(e)-r+o)/7}he("w",["ww",2],"wo","week");he("W",["WW",2],"Wo","isoWeek");ie("w",ft,oa);ie("ww",ft,Ln);ie("W",ft,oa);ie("WW",ft,Ln);nc(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Ae(e)});function R2(e){return wl(e,this._week.dow,this._week.doy).week}var N2={dow:0,doy:6};function P2(){return this._week.dow}function j2(){return this._week.doy}function D2(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function M2(e){var t=wl(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}he("d",0,"do","day");he("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});he("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});he("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});he("e",0,0,"weekday");he("E",0,0,"isoWeekday");ie("d",ft);ie("e",ft);ie("E",ft);ie("dd",function(e,t){return t.weekdaysMinRegex(e)});ie("ddd",function(e,t){return t.weekdaysShortRegex(e)});ie("dddd",function(e,t){return t.weekdaysRegex(e)});nc(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);o!=null?t.d=o:Ee(n).invalidWeekday=e});nc(["d","e","E"],function(e,t,n,r){t[r]=Ae(e)});function O2(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function A2(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Hg(e,t){return e.slice(t,7).concat(e.slice(0,t))}var I2="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),P1="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),L2="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),F2=tc,U2=tc,$2=tc;function V2(e,t){var n=dr(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Hg(n,this._week.dow):e?n[e.day()]:n}function z2(e){return e===!0?Hg(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function W2(e){return e===!0?Hg(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Y2(e,t,n){var r,o,s,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=Mr([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return n?t==="dddd"?(o=Rt.call(this._weekdaysParse,i),o!==-1?o:null):t==="ddd"?(o=Rt.call(this._shortWeekdaysParse,i),o!==-1?o:null):(o=Rt.call(this._minWeekdaysParse,i),o!==-1?o:null):t==="dddd"?(o=Rt.call(this._weekdaysParse,i),o!==-1||(o=Rt.call(this._shortWeekdaysParse,i),o!==-1)?o:(o=Rt.call(this._minWeekdaysParse,i),o!==-1?o:null)):t==="ddd"?(o=Rt.call(this._shortWeekdaysParse,i),o!==-1||(o=Rt.call(this._weekdaysParse,i),o!==-1)?o:(o=Rt.call(this._minWeekdaysParse,i),o!==-1?o:null)):(o=Rt.call(this._minWeekdaysParse,i),o!==-1||(o=Rt.call(this._weekdaysParse,i),o!==-1)?o:(o=Rt.call(this._shortWeekdaysParse,i),o!==-1?o:null))}function H2(e,t,n){var r,o,s;if(this._weekdaysParseExact)return Y2.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=Mr([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(s="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(s.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function B2(e){if(!this.isValid())return e!=null?this:NaN;var t=yl(this,"Day");return e!=null?(e=O2(e,this.localeData()),this.add(e-t,"d")):t}function G2(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 K2(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=A2(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Z2(e){return this._weekdaysParseExact?(We(this,"_weekdaysRegex")||Bg.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(We(this,"_weekdaysRegex")||(this._weekdaysRegex=F2),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function q2(e){return this._weekdaysParseExact?(We(this,"_weekdaysRegex")||Bg.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(We(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=U2),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function X2(e){return this._weekdaysParseExact?(We(this,"_weekdaysRegex")||Bg.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(We(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=$2),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Bg(){function e(d,f){return f.length-d.length}var t=[],n=[],r=[],o=[],s,i,a,l,u;for(s=0;s<7;s++)i=Mr([2e3,1]).day(s),a=Qr(this.weekdaysMin(i,"")),l=Qr(this.weekdaysShort(i,"")),u=Qr(this.weekdays(i,"")),t.push(a),n.push(l),r.push(u),o.push(a),o.push(l),o.push(u);t.sort(e),n.sort(e),r.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Gg(){return this.hours()%12||12}function Q2(){return this.hours()||24}he("H",["HH",2],0,"hour");he("h",["hh",2],0,Gg);he("k",["kk",2],0,Q2);he("hmm",0,0,function(){return""+Gg.apply(this)+Pr(this.minutes(),2)});he("hmmss",0,0,function(){return""+Gg.apply(this)+Pr(this.minutes(),2)+Pr(this.seconds(),2)});he("Hmm",0,0,function(){return""+this.hours()+Pr(this.minutes(),2)});he("Hmmss",0,0,function(){return""+this.hours()+Pr(this.minutes(),2)+Pr(this.seconds(),2)});function j1(e,t){he(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}j1("a",!0);j1("A",!1);function D1(e,t){return t._meridiemParse}ie("a",D1);ie("A",D1);ie("H",ft,Wg);ie("h",ft,oa);ie("k",ft,oa);ie("HH",ft,Ln);ie("hh",ft,Ln);ie("kk",ft,Ln);ie("hmm",w1);ie("hmmss",S1);ie("Hmm",w1);ie("Hmmss",S1);nt(["H","HH"],Lt);nt(["k","kk"],function(e,t,n){var r=Ae(e);t[Lt]=r===24?0:r});nt(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});nt(["h","hh"],function(e,t,n){t[Lt]=Ae(e),Ee(n).bigHour=!0});nt("hmm",function(e,t,n){var r=e.length-2;t[Lt]=Ae(e.substr(0,r)),t[rr]=Ae(e.substr(r)),Ee(n).bigHour=!0});nt("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[Lt]=Ae(e.substr(0,r)),t[rr]=Ae(e.substr(r,2)),t[Zr]=Ae(e.substr(o)),Ee(n).bigHour=!0});nt("Hmm",function(e,t,n){var r=e.length-2;t[Lt]=Ae(e.substr(0,r)),t[rr]=Ae(e.substr(r))});nt("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[Lt]=Ae(e.substr(0,r)),t[rr]=Ae(e.substr(r,2)),t[Zr]=Ae(e.substr(o))});function J2(e){return(e+"").toLowerCase().charAt(0)==="p"}var eL=/[ap]\.?m?\.?/i,tL=sa("Hours",!0);function nL(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var M1={calendar:YI,longDateFormat:KI,invalidDate:qI,ordinal:QI,dayOfMonthOrdinalParse:JI,relativeTime:t2,months:v2,monthsShort:C1,week:N2,weekdays:I2,weekdaysMin:L2,weekdaysShort:P1,meridiemParse:eL},pt={},_a={},Sl;function rL(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(o=tf(s.slice(0,n).join("-")),o)return o;if(r&&r.length>=n&&rL(s,r)>=n-1)break;n--}t++}return Sl}function sL(e){return!!(e&&e.match("^[^/\\\\]*$"))}function tf(e){var t=null,n;if(pt[e]===void 0&&typeof gu<"u"&&gu&&gu.exports&&sL(e))try{t=Sl._abbr,n=require,n("./locale/"+e),Bo(t)}catch{pt[e]=null}return pt[e]}function Bo(e,t){var n;return e&&(mn(t)?n=go(e):n=Kg(e,t),n?Sl=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Sl._abbr}function Kg(e,t){if(t!==null){var n,r=M1;if(t.abbr=e,pt[e]!=null)g1("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=pt[e]._config;else if(t.parentLocale!=null)if(pt[t.parentLocale]!=null)r=pt[t.parentLocale]._config;else if(n=tf(t.parentLocale),n!=null)r=n._config;else return _a[t.parentLocale]||(_a[t.parentLocale]=[]),_a[t.parentLocale].push({name:e,config:t}),null;return pt[e]=new Fg(Tp(r,t)),_a[e]&&_a[e].forEach(function(o){Kg(o.name,o.config)}),Bo(e),pt[e]}else return delete pt[e],null}function iL(e,t){if(t!=null){var n,r,o=M1;pt[e]!=null&&pt[e].parentLocale!=null?pt[e].set(Tp(pt[e]._config,t)):(r=tf(e),r!=null&&(o=r._config),t=Tp(o,t),r==null&&(t.abbr=e),n=new Fg(t),n.parentLocale=pt[e],pt[e]=n),Bo(e)}else pt[e]!=null&&(pt[e].parentLocale!=null?(pt[e]=pt[e].parentLocale,e===Bo()&&Bo(e)):pt[e]!=null&&delete pt[e]);return pt[e]}function go(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Sl;if(!dr(e)){if(t=tf(e),t)return t;e=[e]}return oL(e)}function aL(){return Rp(pt)}function Zg(e){var t,n=e._a;return n&&Ee(e).overflow===-2&&(t=n[Kr]<0||n[Kr]>11?Kr:n[Sr]<1||n[Sr]>Yg(n[Jt],n[Kr])?Sr:n[Lt]<0||n[Lt]>24||n[Lt]===24&&(n[rr]!==0||n[Zr]!==0||n[ws]!==0)?Lt:n[rr]<0||n[rr]>59?rr:n[Zr]<0||n[Zr]>59?Zr:n[ws]<0||n[ws]>999?ws:-1,Ee(e)._overflowDayOfYear&&(tSr)&&(t=Sr),Ee(e)._overflowWeeks&&t===-1&&(t=d2),Ee(e)._overflowWeekday&&t===-1&&(t=f2),Ee(e).overflow=t),e}var lL=/^\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)?)?$/,cL=/^\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)?)?$/,uL=/Z|[+-]\d\d(?::?\d\d)?/,Hc=[["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]],fh=[["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/]],dL=/^\/?Date\((-?\d+)/i,fL=/^(?:(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}))$/,hL={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 O1(e){var t,n,r=e._i,o=lL.exec(r)||cL.exec(r),s,i,a,l,u=Hc.length,d=fh.length;if(o){for(Ee(e).iso=!0,t=0,n=u;tWa(i)||e._dayOfYear===0)&&(Ee(e)._overflowDayOfYear=!0),n=xl(i,0,e._dayOfYear),e._a[Kr]=n.getUTCMonth(),e._a[Sr]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=o[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Lt]===24&&e._a[rr]===0&&e._a[Zr]===0&&e._a[ws]===0&&(e._nextDay=!0,e._a[Lt]=0),e._d=(e._useUTC?xl:T2).apply(null,r),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Lt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==s&&(Ee(e).weekdayMismatch=!0)}}function SL(e){var t,n,r,o,s,i,a,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(s=1,i=4,n=ni(t.GG,e._a[Jt],wl(dt(),1,4).year),r=ni(t.W,1),o=ni(t.E,1),(o<1||o>7)&&(l=!0)):(s=e._locale._week.dow,i=e._locale._week.doy,u=wl(dt(),s,i),n=ni(t.gg,e._a[Jt],u.year),r=ni(t.w,u.week),t.d!=null?(o=t.d,(o<0||o>6)&&(l=!0)):t.e!=null?(o=t.e+s,(t.e<0||t.e>6)&&(l=!0)):o=s),r<1||r>Jr(n,s,i)?Ee(e)._overflowWeeks=!0:l!=null?Ee(e)._overflowWeekday=!0:(a=N1(n,r,o,s,i),e._a[Jt]=a.year,e._dayOfYear=a.dayOfYear)}te.ISO_8601=function(){};te.RFC_2822=function(){};function Xg(e){if(e._f===te.ISO_8601){O1(e);return}if(e._f===te.RFC_2822){A1(e);return}e._a=[],Ee(e).empty=!0;var t=""+e._i,n,r,o,s,i,a=t.length,l=0,u,d;for(o=v1(e._f,e._locale).match(Ug)||[],d=o.length,n=0;n0&&Ee(e).unusedInput.push(i),t=t.slice(t.indexOf(r)+r.length),l+=r.length),Ni[s]?(r?Ee(e).empty=!1:Ee(e).unusedTokens.push(s),u2(s,r,e)):e._strict&&!r&&Ee(e).unusedTokens.push(s);Ee(e).charsLeftOver=a-l,t.length>0&&Ee(e).unusedInput.push(t),e._a[Lt]<=12&&Ee(e).bigHour===!0&&e._a[Lt]>0&&(Ee(e).bigHour=void 0),Ee(e).parsedDateParts=e._a.slice(0),Ee(e).meridiem=e._meridiem,e._a[Lt]=_L(e._locale,e._a[Lt],e._meridiem),u=Ee(e).era,u!==null&&(e._a[Jt]=e._locale.erasConvertYear(u,e._a[Jt])),qg(e),Zg(e)}function _L(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function bL(e){var t,n,r,o,s,i,a=!1,l=e._f.length;if(l===0){Ee(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;othis?this:e:Kd()});function F1(e,t){var n,r;if(t.length===1&&dr(t[0])&&(t=t[0]),!t.length)return dt();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function YL(){if(!mn(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Lg(e,this),e=I1(e),e._a?(t=e._isUTC?Mr(e._a):dt(e._a),this._isDSTShifted=this.isValid()&&AL(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function HL(){return this.isValid()?!this._isUTC:!1}function BL(){return this.isValid()?this._isUTC:!1}function $1(){return this.isValid()?this._isUTC&&this._offset===0:!1}var GL=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,KL=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function mr(e,t){var n=e,r=null,o,s,i;return du(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:lo(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=GL.exec(e))?(o=r[1]==="-"?-1:1,n={y:0,d:Ae(r[Sr])*o,h:Ae(r[Lt])*o,m:Ae(r[rr])*o,s:Ae(r[Zr])*o,ms:Ae(Pp(r[ws]*1e3))*o}):(r=KL.exec(e))?(o=r[1]==="-"?-1:1,n={y:us(r[2],o),M:us(r[3],o),w:us(r[4],o),d:us(r[5],o),h:us(r[6],o),m:us(r[7],o),s:us(r[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(i=ZL(dt(n.from),dt(n.to)),n={},n.ms=i.milliseconds,n.M=i.months),s=new nf(n),du(e)&&We(e,"_locale")&&(s._locale=e._locale),du(e)&&We(e,"_isValid")&&(s._isValid=e._isValid),s}mr.fn=nf.prototype;mr.invalid=OL;function us(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Gx(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function ZL(e,t){var n;return e.isValid()&&t.isValid()?(t=Jg(t,e),e.isBefore(t)?n=Gx(e,t):(n=Gx(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function V1(e,t){return function(n,r){var o,s;return r!==null&&!isNaN(+r)&&(g1(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."),s=n,n=r,r=s),o=mr(n,r),z1(this,o,e),this}}function z1(e,t,n,r){var o=t._milliseconds,s=Pp(t._days),i=Pp(t._months);e.isValid()&&(r=r??!0,i&&E1(e,yl(e,"Month")+i*n),s&&b1(e,"Date",yl(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&te.updateOffset(e,s||i))}var qL=V1(1,"add"),XL=V1(-1,"subtract");function W1(e){return typeof e=="string"||e instanceof String}function QL(e){return fr(e)||Jl(e)||W1(e)||lo(e)||eF(e)||JL(e)||e===null||e===void 0}function JL(e){var t=Cs(e)&&!Ag(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,s,i=r.length;for(o=0;on.valueOf():n.valueOf()9999?uu(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Or(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",uu(n,"Z")):uu(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function pF(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,o,s;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",s=t+'[")]',this.format(n+r+o+s)}function mF(e){e||(e=this.isUtc()?te.defaultFormatUtc:te.defaultFormat);var t=uu(this,e);return this.localeData().postformat(t)}function gF(e,t){return this.isValid()&&(fr(e)&&e.isValid()||dt(e).isValid())?mr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vF(e){return this.from(dt(),e)}function yF(e,t){return this.isValid()&&(fr(e)&&e.isValid()||dt(e).isValid())?mr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function xF(e){return this.to(dt(),e)}function Y1(e){var t;return e===void 0?this._locale._abbr:(t=go(e),t!=null&&(this._locale=t),this)}var H1=Bn("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 B1(){return this._locale}var Qu=1e3,Pi=60*Qu,Ju=60*Pi,G1=(365*400+97)*24*Ju;function ji(e,t){return(e%t+t)%t}function K1(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-G1:new Date(e,t,n).valueOf()}function Z1(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-G1:Date.UTC(e,t,n)}function wF(e){var t,n;if(e=Gn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Z1:K1,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ji(t+(this._isUTC?0:this.utcOffset()*Pi),Ju);break;case"minute":t=this._d.valueOf(),t-=ji(t,Pi);break;case"second":t=this._d.valueOf(),t-=ji(t,Qu);break}return this._d.setTime(t),te.updateOffset(this,!0),this}function SF(e){var t,n;if(e=Gn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Z1:K1,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ju-ji(t+(this._isUTC?0:this.utcOffset()*Pi),Ju)-1;break;case"minute":t=this._d.valueOf(),t+=Pi-ji(t,Pi)-1;break;case"second":t=this._d.valueOf(),t+=Qu-ji(t,Qu)-1;break}return this._d.setTime(t),te.updateOffset(this,!0),this}function _F(){return this._d.valueOf()-(this._offset||0)*6e4}function bF(){return Math.floor(this.valueOf()/1e3)}function CF(){return new Date(this.valueOf())}function kF(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function EF(){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 TF(){return this.isValid()?this.toISOString():null}function RF(){return Ig(this)}function NF(){return Ao({},Ee(this))}function PF(){return Ee(this).overflow}function jF(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}he("N",0,0,"eraAbbr");he("NN",0,0,"eraAbbr");he("NNN",0,0,"eraAbbr");he("NNNN",0,0,"eraName");he("NNNNN",0,0,"eraNarrow");he("y",["y",1],"yo","eraYear");he("y",["yy",2],0,"eraYear");he("y",["yyy",3],0,"eraYear");he("y",["yyyy",4],0,"eraYear");ie("N",ev);ie("NN",ev);ie("NNN",ev);ie("NNNN",zF);ie("NNNNN",WF);nt(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?Ee(n).era=o:Ee(n).invalidEra=e});ie("y",ra);ie("yy",ra);ie("yyy",ra);ie("yyyy",ra);ie("yo",YF);nt(["y","yy","yyy","yyyy"],Jt);nt(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Jt]=n._locale.eraYearOrdinalParse(e,o):t[Jt]=parseInt(e,10)});function DF(e,t){var n,r,o,s=this._eras||go("en")._eras;for(n=0,r=s.length;n=0)return s[r]}function OF(e,t){var n=e.since<=e.until?1:-1;return t===void 0?te(e.since).year():te(e.since).year()+(t-e.offset)*n}function AF(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;es&&(t=s),XF.call(this,e,t,n,r,o))}function XF(e,t,n,r,o){var s=N1(e,t,n,r,o),i=xl(s.year,0,s.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}he("Q",0,"Qo","quarter");ie("Q",y1);nt("Q",function(e,t){t[Kr]=(Ae(e)-1)*3});function QF(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}he("D",["DD",2],"Do","date");ie("D",ft,oa);ie("DD",ft,Ln);ie("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});nt(["D","DD"],Sr);nt("Do",function(e,t){t[Sr]=Ae(e.match(ft)[0])});var X1=sa("Date",!0);he("DDD",["DDDD",3],"DDDo","dayOfYear");ie("DDD",qd);ie("DDDD",x1);nt(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Ae(e)});function JF(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}he("m",["mm",2],0,"minute");ie("m",ft,Wg);ie("mm",ft,Ln);nt(["m","mm"],rr);var e4=sa("Minutes",!1);he("s",["ss",2],0,"second");ie("s",ft,Wg);ie("ss",ft,Ln);nt(["s","ss"],Zr);var t4=sa("Seconds",!1);he("S",0,0,function(){return~~(this.millisecond()/100)});he(0,["SS",2],0,function(){return~~(this.millisecond()/10)});he(0,["SSS",3],0,"millisecond");he(0,["SSSS",4],0,function(){return this.millisecond()*10});he(0,["SSSSS",5],0,function(){return this.millisecond()*100});he(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});he(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});he(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});he(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ie("S",qd,y1);ie("SS",qd,Ln);ie("SSS",qd,x1);var Io,Q1;for(Io="SSSS";Io.length<=9;Io+="S")ie(Io,ra);function n4(e,t){t[ws]=Ae(("0."+e)*1e3)}for(Io="S";Io.length<=9;Io+="S")nt(Io,n4);Q1=sa("Milliseconds",!1);he("z",0,0,"zoneAbbr");he("zz",0,0,"zoneName");function r4(){return this._isUTC?"UTC":""}function o4(){return this._isUTC?"Coordinated Universal Time":""}var z=ec.prototype;z.add=qL;z.calendar=rF;z.clone=oF;z.diff=dF;z.endOf=SF;z.format=mF;z.from=gF;z.fromNow=vF;z.to=yF;z.toNow=xF;z.get=p2;z.invalidAt=PF;z.isAfter=sF;z.isBefore=iF;z.isBetween=aF;z.isSame=lF;z.isSameOrAfter=cF;z.isSameOrBefore=uF;z.isValid=RF;z.lang=H1;z.locale=Y1;z.localeData=B1;z.max=RL;z.min=TL;z.parsingFlags=NF;z.set=m2;z.startOf=wF;z.subtract=XL;z.toArray=kF;z.toObject=EF;z.toDate=CF;z.toISOString=hF;z.inspect=pF;typeof Symbol<"u"&&Symbol.for!=null&&(z[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});z.toJSON=TF;z.toString=fF;z.unix=bF;z.valueOf=_F;z.creationData=jF;z.eraName=AF;z.eraNarrow=IF;z.eraAbbr=LF;z.eraYear=FF;z.year=_1;z.isLeapYear=h2;z.weekYear=HF;z.isoWeekYear=BF;z.quarter=z.quarters=QF;z.month=T1;z.daysInMonth=C2;z.week=z.weeks=D2;z.isoWeek=z.isoWeeks=M2;z.weeksInYear=ZF;z.weeksInWeekYear=qF;z.isoWeeksInYear=GF;z.isoWeeksInISOWeekYear=KF;z.date=X1;z.day=z.days=B2;z.weekday=G2;z.isoWeekday=K2;z.dayOfYear=JF;z.hour=z.hours=tL;z.minute=z.minutes=e4;z.second=z.seconds=t4;z.millisecond=z.milliseconds=Q1;z.utcOffset=LL;z.utc=UL;z.local=$L;z.parseZone=VL;z.hasAlignedHourOffset=zL;z.isDST=WL;z.isLocal=HL;z.isUtcOffset=BL;z.isUtc=$1;z.isUTC=$1;z.zoneAbbr=r4;z.zoneName=o4;z.dates=Bn("dates accessor is deprecated. Use date instead.",X1);z.months=Bn("months accessor is deprecated. Use month instead",T1);z.years=Bn("years accessor is deprecated. Use year instead",_1);z.zone=Bn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",FL);z.isDSTShifted=Bn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",YL);function s4(e){return dt(e*1e3)}function i4(){return dt.apply(null,arguments).parseZone()}function J1(e){return e}var Ye=Fg.prototype;Ye.calendar=HI;Ye.longDateFormat=ZI;Ye.invalidDate=XI;Ye.ordinal=e2;Ye.preparse=J1;Ye.postformat=J1;Ye.relativeTime=n2;Ye.pastFuture=r2;Ye.set=WI;Ye.eras=DF;Ye.erasParse=MF;Ye.erasConvertYear=OF;Ye.erasAbbrRegex=$F;Ye.erasNameRegex=UF;Ye.erasNarrowRegex=VF;Ye.months=w2;Ye.monthsShort=S2;Ye.monthsParse=b2;Ye.monthsRegex=E2;Ye.monthsShortRegex=k2;Ye.week=R2;Ye.firstDayOfYear=j2;Ye.firstDayOfWeek=P2;Ye.weekdays=V2;Ye.weekdaysMin=W2;Ye.weekdaysShort=z2;Ye.weekdaysParse=H2;Ye.weekdaysRegex=Z2;Ye.weekdaysShortRegex=q2;Ye.weekdaysMinRegex=X2;Ye.isPM=J2;Ye.meridiem=nL;function ed(e,t,n,r){var o=go(),s=Mr().set(r,t);return o[n](s,e)}function eC(e,t,n){if(lo(e)&&(t=e,e=void 0),e=e||"",t!=null)return ed(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=ed(e,r,n,"month");return o}function nv(e,t,n,r){typeof e=="boolean"?(lo(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,lo(t)&&(n=t,t=void 0),t=t||"");var o=go(),s=e?o._week.dow:0,i,a=[];if(n!=null)return ed(t,(n+s)%7,r,"day");for(i=0;i<7;i++)a[i]=ed(t,(i+s)%7,r,"day");return a}function a4(e,t){return eC(e,t,"months")}function l4(e,t){return eC(e,t,"monthsShort")}function c4(e,t,n){return nv(e,t,n,"weekdays")}function u4(e,t,n){return nv(e,t,n,"weekdaysShort")}function d4(e,t,n){return nv(e,t,n,"weekdaysMin")}Bo("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,n=Ae(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});te.lang=Bn("moment.lang is deprecated. Use moment.locale instead.",Bo);te.langData=Bn("moment.langData is deprecated. Use moment.localeData instead.",go);var Fr=Math.abs;function f4(){var e=this._data;return this._milliseconds=Fr(this._milliseconds),this._days=Fr(this._days),this._months=Fr(this._months),e.milliseconds=Fr(e.milliseconds),e.seconds=Fr(e.seconds),e.minutes=Fr(e.minutes),e.hours=Fr(e.hours),e.months=Fr(e.months),e.years=Fr(e.years),this}function tC(e,t,n,r){var o=mr(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function h4(e,t){return tC(this,e,t,1)}function p4(e,t){return tC(this,e,t,-1)}function Kx(e){return e<0?Math.floor(e):Math.ceil(e)}function m4(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,o,s,i,a,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Kx(Dp(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,o=$n(e/1e3),r.seconds=o%60,s=$n(o/60),r.minutes=s%60,i=$n(s/60),r.hours=i%24,t+=$n(i/24),l=$n(nC(t)),n+=l,t-=Kx(Dp(l)),a=$n(n/12),n%=12,r.days=t,r.months=n,r.years=a,this}function nC(e){return e*4800/146097}function Dp(e){return e*146097/4800}function g4(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Gn(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+nC(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Dp(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function vo(e){return function(){return this.as(e)}}var rC=vo("ms"),v4=vo("s"),y4=vo("m"),x4=vo("h"),w4=vo("d"),S4=vo("w"),_4=vo("M"),b4=vo("Q"),C4=vo("y"),k4=rC;function E4(){return mr(this)}function T4(e){return e=Gn(e),this.isValid()?this[e+"s"]():NaN}function Ys(e){return function(){return this.isValid()?this._data[e]:NaN}}var R4=Ys("milliseconds"),N4=Ys("seconds"),P4=Ys("minutes"),j4=Ys("hours"),D4=Ys("days"),M4=Ys("months"),O4=Ys("years");function A4(){return $n(this.days()/7)}var Wr=Math.round,vi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function I4(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function L4(e,t,n,r){var o=mr(e).abs(),s=Wr(o.as("s")),i=Wr(o.as("m")),a=Wr(o.as("h")),l=Wr(o.as("d")),u=Wr(o.as("M")),d=Wr(o.as("w")),f=Wr(o.as("y")),p=s<=n.ss&&["s",s]||s0,p[4]=r,I4.apply(null,p)}function F4(e){return e===void 0?Wr:typeof e=="function"?(Wr=e,!0):!1}function U4(e,t){return vi[e]===void 0?!1:t===void 0?vi[e]:(vi[e]=t,e==="s"&&(vi.ss=t-1),!0)}function $4(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=vi,o,s;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},vi,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),o=this.localeData(),s=L4(this,!n,r,o),n&&(s=o.pastFuture(+this,s)),o.postformat(s)}var hh=Math.abs;function ei(e){return(e>0)-(e<0)||+e}function of(){if(!this.isValid())return this.localeData().invalidDate();var e=hh(this._milliseconds)/1e3,t=hh(this._days),n=hh(this._months),r,o,s,i,a=this.asSeconds(),l,u,d,f;return a?(r=$n(e/60),o=$n(r/60),e%=60,r%=60,s=$n(n/12),n%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",u=ei(this._months)!==ei(a)?"-":"",d=ei(this._days)!==ei(a)?"-":"",f=ei(this._milliseconds)!==ei(a)?"-":"",l+"P"+(s?u+s+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(o||r||e?"T":"")+(o?f+o+"H":"")+(r?f+r+"M":"")+(e?f+i+"S":"")):"P0D"}var Fe=nf.prototype;Fe.isValid=ML;Fe.abs=f4;Fe.add=h4;Fe.subtract=p4;Fe.as=g4;Fe.asMilliseconds=rC;Fe.asSeconds=v4;Fe.asMinutes=y4;Fe.asHours=x4;Fe.asDays=w4;Fe.asWeeks=S4;Fe.asMonths=_4;Fe.asQuarters=b4;Fe.asYears=C4;Fe.valueOf=k4;Fe._bubble=m4;Fe.clone=E4;Fe.get=T4;Fe.milliseconds=R4;Fe.seconds=N4;Fe.minutes=P4;Fe.hours=j4;Fe.days=D4;Fe.weeks=A4;Fe.months=M4;Fe.years=O4;Fe.humanize=$4;Fe.toISOString=of;Fe.toString=of;Fe.toJSON=of;Fe.locale=Y1;Fe.localeData=B1;Fe.toIsoString=Bn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",of);Fe.lang=H1;he("X",0,0,"unix");he("x",0,0,"valueOf");ie("x",Qd);ie("X",a2);nt("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});nt("x",function(e,t,n){n._d=new Date(Ae(e))});//! moment.js
-te.version="2.30.1";VI(dt);te.fn=z;te.min=NL;te.max=PL;te.now=jL;te.utc=Mr;te.unix=s4;te.months=a4;te.isDate=Jl;te.locale=Bo;te.invalid=Kd;te.duration=mr;te.isMoment=fr;te.weekdays=c4;te.parseZone=i4;te.localeData=go;te.isDuration=du;te.monthsShort=l4;te.weekdaysMin=d4;te.defineLocale=Kg;te.updateLocale=iL;te.locales=aL;te.weekdaysShort=u4;te.normalizeUnits=Gn;te.relativeTimeRounding=F4;te.relativeTimeThreshold=U4;te.calendarFormat=nF;te.prototype=z;te.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"};const V4=async()=>await Vt().collection("access").getFullList({sort:"-created",filter:"deleted = null"}),rv=async e=>e.id?await Vt().collection("access").update(e.id,e):await Vt().collection("access").create(e),z4=async e=>(e.deleted=te.utc().format("YYYY-MM-DD HH:mm:ss"),await Vt().collection("access").update(e.id,e)),W4=(e,t)=>{switch(t.type){case"SET_ACCESSES":return{...e,accesses:t.payload};case"ADD_ACCESS":return{...e,accesses:[t.payload,...e.accesses]};case"DELETE_ACCESS":return{...e,accesses:e.accesses.filter(n=>n.id!==t.payload)};case"UPDATE_ACCESS":return{...e,accesses:e.accesses.map(n=>n.id===t.payload.id?t.payload:n)};default:return e}},oC=h.createContext({}),rc=()=>h.useContext(oC),Y4=({children:e})=>{const[t,n]=h.useReducer(W4,{accesses:[]});h.useEffect(()=>{(async()=>{const a=await V4();n({type:"SET_ACCESSES",payload:a})})()},[]);const r=h.useCallback(i=>{n({type:"DELETE_ACCESS",payload:i})},[]),o=h.useCallback(i=>{n({type:"ADD_ACCESS",payload:i})},[]),s=h.useCallback(i=>{n({type:"UPDATE_ACCESS",payload:i})},[]);return c.jsx(oC.Provider,{value:{config:{accesses:t.accesses},deleteAccess:r,addAccess:o,updateAccess:s},children:e&&e})};function H4(){const e=as(),t=is();if(!Vt().authStore.isValid||!Vt().authStore.isAdmin)return c.jsx(HS,{to:"/login"});const n=t.pathname,r=s=>(console.log(n),s==n?"bg-muted text-primary":"text-muted-foreground"),o=()=>{Vt().authStore.clear(),e("/login")};return c.jsx(c.Fragment,{children:c.jsx(Y4,{children:c.jsxs("div",{className:"grid min-h-screen w-full md:grid-cols-[220px_1fr] lg:grid-cols-[280px_1fr]",children:[c.jsx("div",{className:"hidden border-r bg-muted/40 md:block",children:c.jsxs("div",{className:"flex h-full max-h-screen flex-col gap-2",children:[c.jsx("div",{className:"flex h-14 items-center border-b px-4 lg:h-[60px] lg:px-6",children:c.jsxs($r,{to:"/",className:"flex items-center gap-2 font-semibold",children:[c.jsx("img",{src:"/vite.svg",className:"w-[36px] h-[36px]"}),c.jsx("span",{className:"",children:"Certimate"})]})}),c.jsx("div",{className:"flex-1",children:c.jsxs("nav",{className:"grid items-start px-2 text-sm font-medium lg:px-4",children:[c.jsxs($r,{to:"/",className:se("flex items-center gap-3 rounded-lg px-3 py-2 transition-all hover:text-primary",r("/")),children:[c.jsx(vp,{className:"h-4 w-4"}),"域名列表"]}),c.jsxs($r,{to:"/access",className:se("flex items-center gap-3 rounded-lg px-3 py-2 transition-all hover:text-primary",r("/access")),children:[c.jsx(hx,{className:"h-4 w-4"}),"授权管理"]}),c.jsxs($r,{to:"/history",className:se("flex items-center gap-3 rounded-lg px-3 py-2 transition-all hover:text-primary",r("/history")),children:[c.jsx(dx,{className:"h-4 w-4"}),"部署历史"]})]})})]})}),c.jsxs("div",{className:"flex flex-col",children:[c.jsxs("header",{className:"flex h-14 items-center gap-4 border-b bg-muted/40 px-4 lg:h-[60px] lg:px-6",children:[c.jsxs(o1,{children:[c.jsx(s1,{asChild:!0,children:c.jsxs(Dt,{variant:"outline",size:"icon",className:"shrink-0 md:hidden",children:[c.jsx(Fj,{className:"h-5 w-5"}),c.jsx("span",{className:"sr-only",children:"Toggle navigation menu"})]})}),c.jsx(Mg,{side:"left",className:"flex flex-col",children:c.jsxs("nav",{className:"grid gap-2 text-lg font-medium",children:[c.jsxs($r,{to:"/",className:"flex items-center gap-2 text-lg font-semibold",children:[c.jsx("img",{src:"/vite.svg",className:"w-[36px] h-[36px]"}),c.jsx("span",{className:"",children:"Certimate"}),c.jsx("span",{className:"sr-only",children:"Certimate"})]}),c.jsxs($r,{to:"/",className:se("mx-[-0.65rem] flex items-center gap-4 rounded-xl px-3 py-2 hover:text-foreground",r("/")),children:[c.jsx(vp,{className:"h-5 w-5"}),"域名列表"]}),c.jsxs($r,{to:"/access",className:se("mx-[-0.65rem] flex items-center gap-4 rounded-xl px-3 py-2 hover:text-foreground",r("/dns_provider")),children:[c.jsx(hx,{className:"h-5 w-5"}),"授权管理"]}),c.jsxs($r,{to:"/history",className:se("mx-[-0.65rem] flex items-center gap-4 rounded-xl px-3 py-2 hover:text-foreground",r("/history")),children:[c.jsx(dx,{className:"h-5 w-5"}),"部署历史"]})]})})]}),c.jsx("div",{className:"w-full flex-1"}),c.jsxs(sI,{children:[c.jsx(iI,{asChild:!0,children:c.jsxs(Dt,{variant:"secondary",size:"icon",className:"rounded-full",children:[c.jsx(Ij,{className:"h-5 w-5"}),c.jsx("span",{className:"sr-only",children:"Toggle user menu"})]})}),c.jsxs(Lb,{align:"end",children:[c.jsx(Ub,{children:"My Account"}),c.jsx($b,{}),c.jsx(Fb,{onClick:o,children:"Logout"})]})]})]}),c.jsxs("main",{className:"flex flex-1 flex-col gap-4 p-4 lg:gap-6 lg:p-6 relative",children:[c.jsx(BS,{}),c.jsxs("div",{className:"fixed right-0 bottom-0 w-full flex justify-between p-5",children:[c.jsx("div",{className:""}),c.jsx("div",{className:"text-muted-foreground text-sm hover:text-stone-900",children:c.jsx("a",{href:"https://github.com/usual2970/certimate/releases",target:"_blank",children:"Certimate v0.0.2"})})]})]})]})]})})})}var B4="Separator",Zx="horizontal",G4=["horizontal","vertical"],sC=h.forwardRef((e,t)=>{const{decorative:n,orientation:r=Zx,...o}=e,s=K4(r)?r:Zx,a=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return c.jsx(ve.div,{"data-orientation":s,...a,...o,ref:t})});sC.displayName=B4;function K4(e){return G4.includes(e)}var iC=sC;const Ht=h.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>c.jsx(iC,{ref:o,decorative:n,orientation:t,className:se("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Ht.displayName=iC.displayName;const aC=({phase:e,phaseSuccess:t})=>{let n=c.jsx(c.Fragment,{children:" "});return e==="check"&&(t?n=c.jsxs("div",{className:"flex items-center",children:[c.jsx("div",{className:"text-xs text-nowrap text-green-600",children:"检查 "}),c.jsx(Ht,{className:"h-1 grow"}),c.jsx("div",{className:"text-xs text-nowrap text-muted-foreground",children:"获取"}),c.jsx(Ht,{className:"h-1 grow"}),c.jsx("div",{className:"text-xs text-nowrap text-muted-foreground",children:"部署"})]}):n=c.jsxs("div",{className:"flex items-center",children:[c.jsx("div",{className:"text-xs text-nowrap text-red-600",children:"检查 "}),c.jsx(Ht,{className:"h-1 grow"}),c.jsx("div",{className:"text-xs text-nowrap text-muted-foreground",children:"获取"}),c.jsx(Ht,{className:"h-1 grow"}),c.jsx("div",{className:"text-xs text-nowrap text-muted-foreground",children:"部署"})]})),e==="apply"&&(t?n=c.jsxs("div",{className:"flex items-center",children:[c.jsx("div",{className:"text-xs text-nowrap text-green-600",children:"检查 "}),c.jsx(Ht,{className:"h-1 grow bg-green-600"}),c.jsx("div",{className:"text-xs text-nowrap text-green-600",children:"获取"}),c.jsx(Ht,{className:"h-1 grow"}),c.jsx("div",{className:"text-xs text-nowrap text-muted-foreground",children:"部署"})]}):n=c.jsxs("div",{className:"flex items-center",children:[c.jsx("div",{className:"text-xs text-nowrap text-green-600",children:"检查 "}),c.jsx(Ht,{className:"h-1 grow bg-green-600"}),c.jsx("div",{className:"text-xs text-nowrap text-red-600",children:"获取"}),c.jsx(Ht,{className:"h-1 grow"}),c.jsx("div",{className:"text-xs text-nowrap text-muted-foreground",children:"部署"})]})),e==="deploy"&&(t?n=c.jsxs("div",{className:"flex items-center",children:[c.jsx("div",{className:"text-xs text-nowrap text-green-600",children:"检查 "}),c.jsx(Ht,{className:"h-1 grow bg-green-600"}),c.jsx("div",{className:"text-xs text-nowrap text-green-600",children:"获取"}),c.jsx(Ht,{className:"h-1 grow bg-green-600"}),c.jsx("div",{className:"text-xs text-nowrap text-green-600",children:"部署"})]}):n=c.jsxs("div",{className:"flex items-center",children:[c.jsx("div",{className:"text-xs text-nowrap text-green-600",children:"检查 "}),c.jsx(Ht,{className:"h-1 grow bg-green-600"}),c.jsx("div",{className:"text-xs text-nowrap text-green-600",children:"获取"}),c.jsx(Ht,{className:"h-1 grow bg-green-600"}),c.jsx("div",{className:"text-xs text-nowrap text-red-600",children:"部署"})]})),n},Z4=({when:e,children:t,fallback:n})=>e?t:n;var lC="AlertDialog",[q4,i3]=_n(lC,[zb]),yo=zb(),cC=e=>{const{__scopeAlertDialog:t,...n}=e,r=yo(t);return c.jsx(Pg,{...r,...n,modal:!0})};cC.displayName=lC;var X4="AlertDialogTrigger",uC=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=yo(n);return c.jsx(jg,{...o,...r,ref:t})});uC.displayName=X4;var Q4="AlertDialogPortal",dC=e=>{const{__scopeAlertDialog:t,...n}=e,r=yo(t);return c.jsx(Dg,{...r,...n})};dC.displayName=Q4;var J4="AlertDialogOverlay",fC=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=yo(n);return c.jsx(Zl,{...o,...r,ref:t})});fC.displayName=J4;var Di="AlertDialogContent",[eU,tU]=q4(Di),hC=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,s=yo(n),i=h.useRef(null),a=be(t,i),l=h.useRef(null);return c.jsx(gI,{contentName:Di,titleName:pC,docsSlug:"alert-dialog",children:c.jsx(eU,{scope:n,cancelRef:l,children:c.jsxs(ql,{role:"alertdialog",...s,...o,ref:a,onOpenAutoFocus:G(o.onOpenAutoFocus,u=>{var d;u.preventDefault(),(d=l.current)==null||d.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[c.jsx(Jm,{children:r}),c.jsx(rU,{contentRef:i})]})})})});hC.displayName=Di;var pC="AlertDialogTitle",mC=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=yo(n);return c.jsx(Xl,{...o,...r,ref:t})});mC.displayName=pC;var gC="AlertDialogDescription",vC=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=yo(n);return c.jsx(Ql,{...o,...r,ref:t})});vC.displayName=gC;var nU="AlertDialogAction",yC=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=yo(n);return c.jsx(Gd,{...o,...r,ref:t})});yC.displayName=nU;var xC="AlertDialogCancel",wC=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=tU(xC,n),s=yo(n),i=be(t,o);return c.jsx(Gd,{...s,...r,ref:i})});wC.displayName=xC;var rU=({contentRef:e})=>{const t=`\`${Di}\` requires a description for the component to be accessible for screen reader users.
+te.version="2.30.1";VI(dt);te.fn=z;te.min=NL;te.max=PL;te.now=jL;te.utc=Mr;te.unix=s4;te.months=a4;te.isDate=Jl;te.locale=Bo;te.invalid=Kd;te.duration=mr;te.isMoment=fr;te.weekdays=c4;te.parseZone=i4;te.localeData=go;te.isDuration=du;te.monthsShort=l4;te.weekdaysMin=d4;te.defineLocale=Kg;te.updateLocale=iL;te.locales=aL;te.weekdaysShort=u4;te.normalizeUnits=Gn;te.relativeTimeRounding=F4;te.relativeTimeThreshold=U4;te.calendarFormat=nF;te.prototype=z;te.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"};const V4=async()=>await Vt().collection("access").getFullList({sort:"-created",filter:"deleted = null"}),rv=async e=>e.id?await Vt().collection("access").update(e.id,e):await Vt().collection("access").create(e),z4=async e=>(e.deleted=te.utc().format("YYYY-MM-DD HH:mm:ss"),await Vt().collection("access").update(e.id,e)),W4=(e,t)=>{switch(t.type){case"SET_ACCESSES":return{...e,accesses:t.payload};case"ADD_ACCESS":return{...e,accesses:[t.payload,...e.accesses]};case"DELETE_ACCESS":return{...e,accesses:e.accesses.filter(n=>n.id!==t.payload)};case"UPDATE_ACCESS":return{...e,accesses:e.accesses.map(n=>n.id===t.payload.id?t.payload:n)};default:return e}},oC=h.createContext({}),rc=()=>h.useContext(oC),Y4=({children:e})=>{const[t,n]=h.useReducer(W4,{accesses:[]});h.useEffect(()=>{(async()=>{const a=await V4();n({type:"SET_ACCESSES",payload:a})})()},[]);const r=h.useCallback(i=>{n({type:"DELETE_ACCESS",payload:i})},[]),o=h.useCallback(i=>{n({type:"ADD_ACCESS",payload:i})},[]),s=h.useCallback(i=>{n({type:"UPDATE_ACCESS",payload:i})},[]);return c.jsx(oC.Provider,{value:{config:{accesses:t.accesses},deleteAccess:r,addAccess:o,updateAccess:s},children:e&&e})};function H4(){const e=as(),t=is();if(!Vt().authStore.isValid||!Vt().authStore.isAdmin)return c.jsx(HS,{to:"/login"});const n=t.pathname,r=s=>(console.log(n),s==n?"bg-muted text-primary":"text-muted-foreground"),o=()=>{Vt().authStore.clear(),e("/login")};return c.jsx(c.Fragment,{children:c.jsx(Y4,{children:c.jsxs("div",{className:"grid min-h-screen w-full md:grid-cols-[220px_1fr] lg:grid-cols-[280px_1fr]",children:[c.jsx("div",{className:"hidden border-r bg-muted/40 md:block",children:c.jsxs("div",{className:"flex h-full max-h-screen flex-col gap-2",children:[c.jsx("div",{className:"flex h-14 items-center border-b px-4 lg:h-[60px] lg:px-6",children:c.jsxs($r,{to:"/",className:"flex items-center gap-2 font-semibold",children:[c.jsx("img",{src:"/vite.svg",className:"w-[36px] h-[36px]"}),c.jsx("span",{className:"",children:"Certimate"})]})}),c.jsx("div",{className:"flex-1",children:c.jsxs("nav",{className:"grid items-start px-2 text-sm font-medium lg:px-4",children:[c.jsxs($r,{to:"/",className:se("flex items-center gap-3 rounded-lg px-3 py-2 transition-all hover:text-primary",r("/")),children:[c.jsx(vp,{className:"h-4 w-4"}),"域名列表"]}),c.jsxs($r,{to:"/access",className:se("flex items-center gap-3 rounded-lg px-3 py-2 transition-all hover:text-primary",r("/access")),children:[c.jsx(hx,{className:"h-4 w-4"}),"授权管理"]}),c.jsxs($r,{to:"/history",className:se("flex items-center gap-3 rounded-lg px-3 py-2 transition-all hover:text-primary",r("/history")),children:[c.jsx(dx,{className:"h-4 w-4"}),"部署历史"]})]})})]})}),c.jsxs("div",{className:"flex flex-col",children:[c.jsxs("header",{className:"flex h-14 items-center gap-4 border-b bg-muted/40 px-4 lg:h-[60px] lg:px-6",children:[c.jsxs(o1,{children:[c.jsx(s1,{asChild:!0,children:c.jsxs(Dt,{variant:"outline",size:"icon",className:"shrink-0 md:hidden",children:[c.jsx(Fj,{className:"h-5 w-5"}),c.jsx("span",{className:"sr-only",children:"Toggle navigation menu"})]})}),c.jsx(Mg,{side:"left",className:"flex flex-col",children:c.jsxs("nav",{className:"grid gap-2 text-lg font-medium",children:[c.jsxs($r,{to:"/",className:"flex items-center gap-2 text-lg font-semibold",children:[c.jsx("img",{src:"/vite.svg",className:"w-[36px] h-[36px]"}),c.jsx("span",{className:"",children:"Certimate"}),c.jsx("span",{className:"sr-only",children:"Certimate"})]}),c.jsxs($r,{to:"/",className:se("mx-[-0.65rem] flex items-center gap-4 rounded-xl px-3 py-2 hover:text-foreground",r("/")),children:[c.jsx(vp,{className:"h-5 w-5"}),"域名列表"]}),c.jsxs($r,{to:"/access",className:se("mx-[-0.65rem] flex items-center gap-4 rounded-xl px-3 py-2 hover:text-foreground",r("/dns_provider")),children:[c.jsx(hx,{className:"h-5 w-5"}),"授权管理"]}),c.jsxs($r,{to:"/history",className:se("mx-[-0.65rem] flex items-center gap-4 rounded-xl px-3 py-2 hover:text-foreground",r("/history")),children:[c.jsx(dx,{className:"h-5 w-5"}),"部署历史"]})]})})]}),c.jsx("div",{className:"w-full flex-1"}),c.jsxs(sI,{children:[c.jsx(iI,{asChild:!0,children:c.jsxs(Dt,{variant:"secondary",size:"icon",className:"rounded-full",children:[c.jsx(Ij,{className:"h-5 w-5"}),c.jsx("span",{className:"sr-only",children:"Toggle user menu"})]})}),c.jsxs(Lb,{align:"end",children:[c.jsx(Ub,{children:"My Account"}),c.jsx($b,{}),c.jsx(Fb,{onClick:o,children:"Logout"})]})]})]}),c.jsxs("main",{className:"flex flex-1 flex-col gap-4 p-4 lg:gap-6 lg:p-6 relative",children:[c.jsx(BS,{}),c.jsxs("div",{className:"fixed right-0 bottom-0 w-full flex justify-between p-5",children:[c.jsx("div",{className:""}),c.jsx("div",{className:"text-muted-foreground text-sm hover:text-stone-900",children:c.jsx("a",{href:"https://github.com/usual2970/certimate/releases",target:"_blank",children:"Certimate v0.0.3"})})]})]})]})]})})})}var B4="Separator",Zx="horizontal",G4=["horizontal","vertical"],sC=h.forwardRef((e,t)=>{const{decorative:n,orientation:r=Zx,...o}=e,s=K4(r)?r:Zx,a=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return c.jsx(ve.div,{"data-orientation":s,...a,...o,ref:t})});sC.displayName=B4;function K4(e){return G4.includes(e)}var iC=sC;const Ht=h.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>c.jsx(iC,{ref:o,decorative:n,orientation:t,className:se("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Ht.displayName=iC.displayName;const aC=({phase:e,phaseSuccess:t})=>{let n=c.jsx(c.Fragment,{children:" "});return e==="check"&&(t?n=c.jsxs("div",{className:"flex items-center",children:[c.jsx("div",{className:"text-xs text-nowrap text-green-600",children:"检查 "}),c.jsx(Ht,{className:"h-1 grow"}),c.jsx("div",{className:"text-xs text-nowrap text-muted-foreground",children:"获取"}),c.jsx(Ht,{className:"h-1 grow"}),c.jsx("div",{className:"text-xs text-nowrap text-muted-foreground",children:"部署"})]}):n=c.jsxs("div",{className:"flex items-center",children:[c.jsx("div",{className:"text-xs text-nowrap text-red-600",children:"检查 "}),c.jsx(Ht,{className:"h-1 grow"}),c.jsx("div",{className:"text-xs text-nowrap text-muted-foreground",children:"获取"}),c.jsx(Ht,{className:"h-1 grow"}),c.jsx("div",{className:"text-xs text-nowrap text-muted-foreground",children:"部署"})]})),e==="apply"&&(t?n=c.jsxs("div",{className:"flex items-center",children:[c.jsx("div",{className:"text-xs text-nowrap text-green-600",children:"检查 "}),c.jsx(Ht,{className:"h-1 grow bg-green-600"}),c.jsx("div",{className:"text-xs text-nowrap text-green-600",children:"获取"}),c.jsx(Ht,{className:"h-1 grow"}),c.jsx("div",{className:"text-xs text-nowrap text-muted-foreground",children:"部署"})]}):n=c.jsxs("div",{className:"flex items-center",children:[c.jsx("div",{className:"text-xs text-nowrap text-green-600",children:"检查 "}),c.jsx(Ht,{className:"h-1 grow bg-green-600"}),c.jsx("div",{className:"text-xs text-nowrap text-red-600",children:"获取"}),c.jsx(Ht,{className:"h-1 grow"}),c.jsx("div",{className:"text-xs text-nowrap text-muted-foreground",children:"部署"})]})),e==="deploy"&&(t?n=c.jsxs("div",{className:"flex items-center",children:[c.jsx("div",{className:"text-xs text-nowrap text-green-600",children:"检查 "}),c.jsx(Ht,{className:"h-1 grow bg-green-600"}),c.jsx("div",{className:"text-xs text-nowrap text-green-600",children:"获取"}),c.jsx(Ht,{className:"h-1 grow bg-green-600"}),c.jsx("div",{className:"text-xs text-nowrap text-green-600",children:"部署"})]}):n=c.jsxs("div",{className:"flex items-center",children:[c.jsx("div",{className:"text-xs text-nowrap text-green-600",children:"检查 "}),c.jsx(Ht,{className:"h-1 grow bg-green-600"}),c.jsx("div",{className:"text-xs text-nowrap text-green-600",children:"获取"}),c.jsx(Ht,{className:"h-1 grow bg-green-600"}),c.jsx("div",{className:"text-xs text-nowrap text-red-600",children:"部署"})]})),n},Z4=({when:e,children:t,fallback:n})=>e?t:n;var lC="AlertDialog",[q4,i3]=_n(lC,[zb]),yo=zb(),cC=e=>{const{__scopeAlertDialog:t,...n}=e,r=yo(t);return c.jsx(Pg,{...r,...n,modal:!0})};cC.displayName=lC;var X4="AlertDialogTrigger",uC=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=yo(n);return c.jsx(jg,{...o,...r,ref:t})});uC.displayName=X4;var Q4="AlertDialogPortal",dC=e=>{const{__scopeAlertDialog:t,...n}=e,r=yo(t);return c.jsx(Dg,{...r,...n})};dC.displayName=Q4;var J4="AlertDialogOverlay",fC=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=yo(n);return c.jsx(Zl,{...o,...r,ref:t})});fC.displayName=J4;var Di="AlertDialogContent",[eU,tU]=q4(Di),hC=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,s=yo(n),i=h.useRef(null),a=be(t,i),l=h.useRef(null);return c.jsx(gI,{contentName:Di,titleName:pC,docsSlug:"alert-dialog",children:c.jsx(eU,{scope:n,cancelRef:l,children:c.jsxs(ql,{role:"alertdialog",...s,...o,ref:a,onOpenAutoFocus:G(o.onOpenAutoFocus,u=>{var d;u.preventDefault(),(d=l.current)==null||d.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[c.jsx(Jm,{children:r}),c.jsx(rU,{contentRef:i})]})})})});hC.displayName=Di;var pC="AlertDialogTitle",mC=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=yo(n);return c.jsx(Xl,{...o,...r,ref:t})});mC.displayName=pC;var gC="AlertDialogDescription",vC=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=yo(n);return c.jsx(Ql,{...o,...r,ref:t})});vC.displayName=gC;var nU="AlertDialogAction",yC=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=yo(n);return c.jsx(Gd,{...o,...r,ref:t})});yC.displayName=nU;var xC="AlertDialogCancel",wC=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=tU(xC,n),s=yo(n),i=be(t,o);return c.jsx(Gd,{...s,...r,ref:i})});wC.displayName=xC;var rU=({contentRef:e})=>{const t=`\`${Di}\` requires a description for the component to be accessible for screen reader users.
You can add a description to the \`${Di}\` by passing a \`${gC}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
diff --git a/ui/dist/index.html b/ui/dist/index.html
index 29dc216d..c1707feb 100644
--- a/ui/dist/index.html
+++ b/ui/dist/index.html
@@ -5,7 +5,7 @@
Certimate - Your Trusted SSL Automation Partner
-
+
diff --git a/ui/src/pages/DashboardLayout.tsx b/ui/src/pages/DashboardLayout.tsx
index b7e3740b..fefbc738 100644
--- a/ui/src/pages/DashboardLayout.tsx
+++ b/ui/src/pages/DashboardLayout.tsx
@@ -179,7 +179,7 @@ export default function Dashboard() {
href="https://github.com/usual2970/certimate/releases"
target="_blank"
>
- Certimate v0.0.2
+ Certimate v0.0.3