From ed1943f53b12f2728adcde1370aeda454f805a2a Mon Sep 17 00:00:00 2001 From: zhiweio Date: Sun, 24 Nov 2024 19:03:07 +0800 Subject: [PATCH] Updates --- assets/{index-aGOQUj_a.js => index-DMbliaoZ.js} | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename assets/{index-aGOQUj_a.js => index-DMbliaoZ.js} (99%) diff --git a/assets/index-aGOQUj_a.js b/assets/index-DMbliaoZ.js similarity index 99% rename from assets/index-aGOQUj_a.js rename to assets/index-DMbliaoZ.js index 5979984..8b226bb 100644 --- a/assets/index-aGOQUj_a.js +++ b/assets/index-DMbliaoZ.js @@ -322,7 +322,7 @@ var k2;function Pe(){return k2.apply(null,arguments)}function pA(e){k2=e}functio [`+i+"] ";for(a in arguments[0])xt(arguments[0],a)&&(o+=a+": "+arguments[0][a]+", ");o=o.slice(0,-2)}else o=arguments[i];r.push(o)}j2(e+` Arguments: `+Array.prototype.slice.call(r).join("")+` `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var Qb={};function A2(e,t){Pe.deprecationHandler!=null&&Pe.deprecationHandler(e,t),Qb[e]||(j2(t),Qb[e]=!0)}Pe.suppressDeprecationWarnings=!1;Pe.deprecationHandler=null;function Mo(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function bA(e){var t,n;for(n in e)xt(e,n)&&(t=e[n],Mo(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 ig(e,t){var n=$i({},e),r;for(r in t)xt(t,r)&&(ua(e[r])&&ua(t[r])?(n[r]={},$i(n[r],e[r]),$i(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)xt(e,r)&&!xt(t,r)&&ua(e[r])&&(n[r]=$i({},n[r]));return n}function Jp(e){e!=null&&this.set(e)}var ag;Object.keys?ag=Object.keys:ag=function(e){var t,n=[];for(t in e)xt(e,t)&&n.push(t);return n};var SA={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function wA(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Mo(r)?r.call(t,n):r}function Oo(e,t,n){var r=""+Math.abs(e),o=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var e0=/(\[[^\[]*\])|(\\)?([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,mu=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,oh={},cl={};function Xe(e,t,n,r){var o=r;typeof r=="string"&&(o=function(){return this[r]()}),e&&(cl[e]=o),t&&(cl[t[0]]=function(){return Oo(o.apply(this,arguments),t[1],t[2])}),n&&(cl[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function CA(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function xA(e){var t=e.match(e0),n,r;for(n=0,r=t.length;n=0&&mu.test(e);)e=e.replace(mu,r),mu.lastIndex=0,n-=1;return e}var EA={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 $A(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(e0).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var OA="Invalid date";function _A(){return this._invalidDate}var RA="%d",PA=/\d{1,2}/;function MA(e){return this._ordinal.replace("%d",e)}var IA={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 TA(e,t,n,r){var o=this._relativeTime[n];return Mo(o)?o(e,t,n,r):o.replace(/%d/i,e)}function NA(e,t){var n=this._relativeTime[e>0?"future":"past"];return Mo(n)?n(t):n.replace(/%s/i,t)}var Zb={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 Gr(e){return typeof e=="string"?Zb[e]||Zb[e.toLowerCase()]:void 0}function t0(e){var t={},n,r;for(r in e)xt(e,r)&&(n=Gr(r),n&&(t[n]=e[r]));return t}var FA={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 DA(e){var t=[],n;for(n in e)xt(e,n)&&t.push({unit:n,priority:FA[n]});return t.sort(function(r,o){return r.priority-o.priority}),t}var H2=/\d/,Er=/\d\d/,B2=/\d{3}/,n0=/\d{4}/,Of=/[+-]?\d{6}/,Bt=/\d\d?/,V2=/\d\d\d\d?/,W2=/\d\d\d\d\d\d?/,_f=/\d{1,3}/,r0=/\d{1,4}/,Rf=/[+-]?\d{1,6}/,Dl=/\d+/,Pf=/[+-]?\d+/,kA=/Z|[+-]\d\d:?\d\d/gi,Mf=/Z|[+-]\d\d(?::?\d\d)?/gi,LA=/[+-]?\d+(\.\d{1,3})?/,Oc=/[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,kl=/^[1-9]\d?/,o0=/^([1-9]\d|\d)/,Od;Od={};function Ae(e,t,n){Od[e]=Mo(t)?t:function(r,o){return r&&n?n:t}}function jA(e,t){return xt(Od,e)?Od[e](t._strict,t._locale):new RegExp(AA(e))}function AA(e){return Uo(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,o,i){return n||r||o||i}))}function Uo(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Fr(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ht(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Fr(t)),n}var lg={};function Nt(e,t){var n,r=t,o;for(typeof e=="string"&&(e=[e]),Jo(t)&&(r=function(i,a){a[t]=ht(i)}),o=e.length,n=0;n68?1900:2e3)};var U2=Ll("FullYear",!0);function VA(){return If(this.year())}function Ll(e,t){return function(n){return n!=null?(Y2(this,e,n),Pe.updateOffset(this,t),this):sc(this,e)}}function sc(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 Y2(e,t,n){var r,o,i,a,l;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}i=n,a=e.month(),l=e.date(),l=l===29&&a===1&&!If(i)?28:l,o?r.setUTCFullYear(i,a,l):r.setFullYear(i,a,l)}}function WA(e){return e=Gr(e),Mo(this[e])?this[e]():this}function UA(e,t){if(typeof e=="object"){e=t0(e);var n=DA(e),r,o=n.length;for(r=0;r=0?(l=new Date(e+400,t,n,r,o,i,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,o,i,a),l}function cc(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 _d(e,t,n){var r=7+t-n,o=(7+cc(e,0,r).getUTCDay()-t)%7;return-o+r-1}function Z2(e,t,n,r,o){var i=(7+n-r)%7,a=_d(e,r,o),l=1+7*(t-1)+i+a,c,u;return l<=0?(c=e-1,u=$s(c)+l):l>$s(e)?(c=e+1,u=l-$s(e)):(c=e,u=l),{year:c,dayOfYear:u}}function uc(e,t,n){var r=_d(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1,i,a;return o<1?(a=e.year()-1,i=o+Yo(a,t,n)):o>Yo(e.year(),t,n)?(i=o-Yo(e.year(),t,n),a=e.year()+1):(a=e.year(),i=o),{week:i,year:a}}function Yo(e,t,n){var r=_d(e,t,n),o=_d(e+1,t,n);return($s(e)-r+o)/7}Xe("w",["ww",2],"wo","week");Xe("W",["WW",2],"Wo","isoWeek");Ae("w",Bt,kl);Ae("ww",Bt,Er);Ae("W",Bt,kl);Ae("WW",Bt,Er);_c(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=ht(e)});function o8(e){return uc(e,this._week.dow,this._week.doy).week}var i8={dow:0,doy:6};function a8(){return this._week.dow}function l8(){return this._week.doy}function s8(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function c8(e){var t=uc(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Xe("d",0,"do","day");Xe("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Xe("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Xe("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Xe("e",0,0,"weekday");Xe("E",0,0,"isoWeekday");Ae("d",Bt);Ae("e",Bt);Ae("E",Bt);Ae("dd",function(e,t){return t.weekdaysMinRegex(e)});Ae("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ae("dddd",function(e,t){return t.weekdaysRegex(e)});_c(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);o!=null?t.d=o:ot(n).invalidWeekday=e});_c(["d","e","E"],function(e,t,n,r){t[r]=ht(e)});function u8(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function d8(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function a0(e,t){return e.slice(t,7).concat(e.slice(0,t))}var f8="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),J2="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),m8="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),h8=Oc,v8=Oc,g8=Oc;function p8(e,t){var n=mo(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?a0(n,this._week.dow):e?n[e.day()]:n}function y8(e){return e===!0?a0(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function b8(e){return e===!0?a0(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function S8(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=Po([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(o=un.call(this._weekdaysParse,a),o!==-1?o:null):t==="ddd"?(o=un.call(this._shortWeekdaysParse,a),o!==-1?o:null):(o=un.call(this._minWeekdaysParse,a),o!==-1?o:null):t==="dddd"?(o=un.call(this._weekdaysParse,a),o!==-1||(o=un.call(this._shortWeekdaysParse,a),o!==-1)?o:(o=un.call(this._minWeekdaysParse,a),o!==-1?o:null)):t==="ddd"?(o=un.call(this._shortWeekdaysParse,a),o!==-1||(o=un.call(this._weekdaysParse,a),o!==-1)?o:(o=un.call(this._minWeekdaysParse,a),o!==-1?o:null)):(o=un.call(this._minWeekdaysParse,a),o!==-1||(o=un.call(this._weekdaysParse,a),o!==-1)?o:(o=un.call(this._shortWeekdaysParse,a),o!==-1?o:null))}function w8(e,t,n){var r,o,i;if(this._weekdaysParseExact)return S8.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=Po([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]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.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 C8(e){if(!this.isValid())return e!=null?this:NaN;var t=sc(this,"Day");return e!=null?(e=u8(e,this.localeData()),this.add(e-t,"d")):t}function x8(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 E8(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=d8(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function $8(e){return this._weekdaysParseExact?(xt(this,"_weekdaysRegex")||l0.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(xt(this,"_weekdaysRegex")||(this._weekdaysRegex=h8),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function O8(e){return this._weekdaysParseExact?(xt(this,"_weekdaysRegex")||l0.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(xt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=v8),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function _8(e){return this._weekdaysParseExact?(xt(this,"_weekdaysRegex")||l0.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(xt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=g8),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function l0(){function e(d,f){return f.length-d.length}var t=[],n=[],r=[],o=[],i,a,l,c,u;for(i=0;i<7;i++)a=Po([2e3,1]).day(i),l=Uo(this.weekdaysMin(a,"")),c=Uo(this.weekdaysShort(a,"")),u=Uo(this.weekdays(a,"")),t.push(l),n.push(c),r.push(u),o.push(l),o.push(c),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 s0(){return this.hours()%12||12}function R8(){return this.hours()||24}Xe("H",["HH",2],0,"hour");Xe("h",["hh",2],0,s0);Xe("k",["kk",2],0,R8);Xe("hmm",0,0,function(){return""+s0.apply(this)+Oo(this.minutes(),2)});Xe("hmmss",0,0,function(){return""+s0.apply(this)+Oo(this.minutes(),2)+Oo(this.seconds(),2)});Xe("Hmm",0,0,function(){return""+this.hours()+Oo(this.minutes(),2)});Xe("Hmmss",0,0,function(){return""+this.hours()+Oo(this.minutes(),2)+Oo(this.seconds(),2)});function e$(e,t){Xe(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}e$("a",!0);e$("A",!1);function t$(e,t){return t._meridiemParse}Ae("a",t$);Ae("A",t$);Ae("H",Bt,o0);Ae("h",Bt,kl);Ae("k",Bt,kl);Ae("HH",Bt,Er);Ae("hh",Bt,Er);Ae("kk",Bt,Er);Ae("hmm",V2);Ae("hmmss",W2);Ae("Hmm",V2);Ae("Hmmss",W2);Nt(["H","HH"],xn);Nt(["k","kk"],function(e,t,n){var r=ht(e);t[xn]=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[xn]=ht(e),ot(n).bigHour=!0});Nt("hmm",function(e,t,n){var r=e.length-2;t[xn]=ht(e.substr(0,r)),t[oo]=ht(e.substr(r)),ot(n).bigHour=!0});Nt("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[xn]=ht(e.substr(0,r)),t[oo]=ht(e.substr(r,2)),t[Bo]=ht(e.substr(o)),ot(n).bigHour=!0});Nt("Hmm",function(e,t,n){var r=e.length-2;t[xn]=ht(e.substr(0,r)),t[oo]=ht(e.substr(r))});Nt("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[xn]=ht(e.substr(0,r)),t[oo]=ht(e.substr(r,2)),t[Bo]=ht(e.substr(o))});function P8(e){return(e+"").toLowerCase().charAt(0)==="p"}var M8=/[ap]\.?m?\.?/i,I8=Ll("Hours",!0);function T8(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var n$={calendar:SA,longDateFormat:EA,invalidDate:OA,ordinal:RA,dayOfMonthOrdinalParse:PA,relativeTime:IA,months:GA,monthsShort:G2,week:i8,weekdays:f8,weekdaysMin:m8,weekdaysShort:J2,meridiemParse:M8},Ut={},Zl={},dc;function N8(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(o=Tf(i.slice(0,n).join("-")),o)return o;if(r&&r.length>=n&&N8(i,r)>=n-1)break;n--}t++}return dc}function D8(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Tf(e){var t=null,n;if(Ut[e]===void 0&&typeof module<"u"&&module&&module.exports&&D8(e))try{t=dc._abbr,n=require,n("./locale/"+e),ki(t)}catch{Ut[e]=null}return Ut[e]}function ki(e,t){var n;return e&&(tr(t)?n=ri(e):n=c0(e,t),n?dc=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),dc._abbr}function c0(e,t){if(t!==null){var n,r=n$;if(t.abbr=e,Ut[e]!=null)A2("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=Ut[e]._config;else if(t.parentLocale!=null)if(Ut[t.parentLocale]!=null)r=Ut[t.parentLocale]._config;else if(n=Tf(t.parentLocale),n!=null)r=n._config;else return Zl[t.parentLocale]||(Zl[t.parentLocale]=[]),Zl[t.parentLocale].push({name:e,config:t}),null;return Ut[e]=new Jp(ig(r,t)),Zl[e]&&Zl[e].forEach(function(o){c0(o.name,o.config)}),ki(e),Ut[e]}else return delete Ut[e],null}function k8(e,t){if(t!=null){var n,r,o=n$;Ut[e]!=null&&Ut[e].parentLocale!=null?Ut[e].set(ig(Ut[e]._config,t)):(r=Tf(e),r!=null&&(o=r._config),t=ig(o,t),r==null&&(t.abbr=e),n=new Jp(t),n.parentLocale=Ut[e],Ut[e]=n),ki(e)}else Ut[e]!=null&&(Ut[e].parentLocale!=null?(Ut[e]=Ut[e].parentLocale,e===ki()&&ki(e)):Ut[e]!=null&&delete Ut[e]);return Ut[e]}function ri(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return dc;if(!mo(e)){if(t=Tf(e),t)return t;e=[e]}return F8(e)}function L8(){return ag(Ut)}function u0(e){var t,n=e._a;return n&&ot(e).overflow===-2&&(t=n[Ho]<0||n[Ho]>11?Ho:n[Co]<1||n[Co]>i0(n[Vn],n[Ho])?Co:n[xn]<0||n[xn]>24||n[xn]===24&&(n[oo]!==0||n[Bo]!==0||n[ia]!==0)?xn:n[oo]<0||n[oo]>59?oo:n[Bo]<0||n[Bo]>59?Bo:n[ia]<0||n[ia]>999?ia:-1,ot(e)._overflowDayOfYear&&(tCo)&&(t=Co),ot(e)._overflowWeeks&&t===-1&&(t=HA),ot(e)._overflowWeekday&&t===-1&&(t=BA),ot(e).overflow=t),e}var j8=/^\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)?)?$/,A8=/^\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)?)?$/,z8=/Z|[+-]\d\d(?::?\d\d)?/,hu=[["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]],ih=[["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/]],H8=/^\/?Date\((-?\d+)/i,B8=/^(?:(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}))$/,V8={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 r$(e){var t,n,r=e._i,o=j8.exec(r)||A8.exec(r),i,a,l,c,u=hu.length,d=ih.length;if(o){for(ot(e).iso=!0,t=0,n=u;t$s(a)||e._dayOfYear===0)&&(ot(e)._overflowDayOfYear=!0),n=cc(a,0,e._dayOfYear),e._a[Ho]=n.getUTCMonth(),e._a[Co]=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[xn]===24&&e._a[oo]===0&&e._a[Bo]===0&&e._a[ia]===0&&(e._nextDay=!0,e._a[xn]=0),e._d=(e._useUTC?cc:r8).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[xn]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(ot(e).weekdayMismatch=!0)}}function Q8(e){var t,n,r,o,i,a,l,c,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,n=ka(t.GG,e._a[Vn],uc(Ht(),1,4).year),r=ka(t.W,1),o=ka(t.E,1),(o<1||o>7)&&(c=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=uc(Ht(),i,a),n=ka(t.gg,e._a[Vn],u.year),r=ka(t.w,u.week),t.d!=null?(o=t.d,(o<0||o>6)&&(c=!0)):t.e!=null?(o=t.e+i,(t.e<0||t.e>6)&&(c=!0)):o=i),r<1||r>Yo(n,i,a)?ot(e)._overflowWeeks=!0:c!=null?ot(e)._overflowWeekday=!0:(l=Z2(n,r,o,i,a),e._a[Vn]=l.year,e._dayOfYear=l.dayOfYear)}Pe.ISO_8601=function(){};Pe.RFC_2822=function(){};function f0(e){if(e._f===Pe.ISO_8601){r$(e);return}if(e._f===Pe.RFC_2822){o$(e);return}e._a=[],ot(e).empty=!0;var t=""+e._i,n,r,o,i,a,l=t.length,c=0,u,d;for(o=z2(e._f,e._locale).match(e0)||[],d=o.length,n=0;n0&&ot(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),c+=r.length),cl[i]?(r?ot(e).empty=!1:ot(e).unusedTokens.push(i),zA(i,r,e)):e._strict&&!r&&ot(e).unusedTokens.push(i);ot(e).charsLeftOver=l-c,t.length>0&&ot(e).unusedInput.push(t),e._a[xn]<=12&&ot(e).bigHour===!0&&e._a[xn]>0&&(ot(e).bigHour=void 0),ot(e).parsedDateParts=e._a.slice(0),ot(e).meridiem=e._meridiem,e._a[xn]=Z8(e._locale,e._a[xn],e._meridiem),u=ot(e).era,u!==null&&(e._a[Vn]=e._locale.erasConvertYear(u,e._a[Vn])),d0(e),u0(e)}function Z8(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 J8(e){var t,n,r,o,i,a,l=!1,c=e._f.length;if(c===0){ot(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;othis?this:e:$f()});function l$(e,t){var n,r;if(t.length===1&&mo(t[0])&&(t=t[0]),!t.length)return Ht();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Sz(){if(!tr(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Zp(e,this),e=i$(e),e._a?(t=e._isUTC?Po(e._a):Ht(e._a),this._isDSTShifted=this.isValid()&&dz(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function wz(){return this.isValid()?!this._isUTC:!1}function Cz(){return this.isValid()?this._isUTC:!1}function c$(){return this.isValid()?this._isUTC&&this._offset===0:!1}var xz=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ez=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function vo(e,t){var n=e,r=null,o,i,a;return ku(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Jo(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=xz.exec(e))?(o=r[1]==="-"?-1:1,n={y:0,d:ht(r[Co])*o,h:ht(r[xn])*o,m:ht(r[oo])*o,s:ht(r[Bo])*o,ms:ht(sg(r[ia]*1e3))*o}):(r=Ez.exec(e))?(o=r[1]==="-"?-1:1,n={y:Gi(r[2],o),M:Gi(r[3],o),w:Gi(r[4],o),d:Gi(r[5],o),h:Gi(r[6],o),m:Gi(r[7],o),s:Gi(r[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=$z(Ht(n.from),Ht(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new Nf(n),ku(e)&&xt(e,"_locale")&&(i._locale=e._locale),ku(e)&&xt(e,"_isValid")&&(i._isValid=e._isValid),i}vo.fn=Nf.prototype;vo.invalid=uz;function Gi(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function eS(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 $z(e,t){var n;return e.isValid()&&t.isValid()?(t=h0(t,e),e.isBefore(t)?n=eS(e,t):(n=eS(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function u$(e,t){return function(n,r){var o,i;return r!==null&&!isNaN(+r)&&(A2(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),o=vo(n,r),d$(this,o,e),this}}function d$(e,t,n,r){var o=t._milliseconds,i=sg(t._days),a=sg(t._months);e.isValid()&&(r=r??!0,a&&K2(e,sc(e,"Month")+a*n),i&&Y2(e,"Date",sc(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&Pe.updateOffset(e,i||a))}var Oz=u$(1,"add"),_z=u$(-1,"subtract");function f$(e){return typeof e=="string"||e instanceof String}function Rz(e){return ho(e)||Ec(e)||f$(e)||Jo(e)||Mz(e)||Pz(e)||e===null||e===void 0}function Pz(e){var t=ua(e)&&!Xp(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,i,a=r.length;for(o=0;on.valueOf():n.valueOf()9999?Du(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Mo(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Du(n,"Z")):Du(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Wz(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,o,i;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",i=t+'[")]',this.format(n+r+o+i)}function Uz(e){e||(e=this.isUtc()?Pe.defaultFormatUtc:Pe.defaultFormat);var t=Du(this,e);return this.localeData().postformat(t)}function Yz(e,t){return this.isValid()&&(ho(e)&&e.isValid()||Ht(e).isValid())?vo({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Gz(e){return this.from(Ht(),e)}function qz(e,t){return this.isValid()&&(ho(e)&&e.isValid()||Ht(e).isValid())?vo({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Kz(e){return this.to(Ht(),e)}function m$(e){var t;return e===void 0?this._locale._abbr:(t=ri(e),t!=null&&(this._locale=t),this)}var h$=Yr("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 v$(){return this._locale}var Rd=1e3,ul=60*Rd,Pd=60*ul,g$=(365*400+97)*24*Pd;function dl(e,t){return(e%t+t)%t}function p$(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-g$:new Date(e,t,n).valueOf()}function y$(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-g$:Date.UTC(e,t,n)}function Xz(e){var t,n;if(e=Gr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?y$:p$,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-=dl(t+(this._isUTC?0:this.utcOffset()*ul),Pd);break;case"minute":t=this._d.valueOf(),t-=dl(t,ul);break;case"second":t=this._d.valueOf(),t-=dl(t,Rd);break}return this._d.setTime(t),Pe.updateOffset(this,!0),this}function Qz(e){var t,n;if(e=Gr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?y$:p$,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+=Pd-dl(t+(this._isUTC?0:this.utcOffset()*ul),Pd)-1;break;case"minute":t=this._d.valueOf(),t+=ul-dl(t,ul)-1;break;case"second":t=this._d.valueOf(),t+=Rd-dl(t,Rd)-1;break}return this._d.setTime(t),Pe.updateOffset(this,!0),this}function Zz(){return this._d.valueOf()-(this._offset||0)*6e4}function Jz(){return Math.floor(this.valueOf()/1e3)}function eH(){return new Date(this.valueOf())}function tH(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function nH(){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 rH(){return this.isValid()?this.toISOString():null}function oH(){return Qp(this)}function iH(){return $i({},ot(this))}function aH(){return ot(this).overflow}function lH(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Xe("N",0,0,"eraAbbr");Xe("NN",0,0,"eraAbbr");Xe("NNN",0,0,"eraAbbr");Xe("NNNN",0,0,"eraName");Xe("NNNNN",0,0,"eraNarrow");Xe("y",["y",1],"yo","eraYear");Xe("y",["yy",2],0,"eraYear");Xe("y",["yyy",3],0,"eraYear");Xe("y",["yyyy",4],0,"eraYear");Ae("N",v0);Ae("NN",v0);Ae("NNN",v0);Ae("NNNN",yH);Ae("NNNNN",bH);Nt(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?ot(n).era=o:ot(n).invalidEra=e});Ae("y",Dl);Ae("yy",Dl);Ae("yyy",Dl);Ae("yyyy",Dl);Ae("yo",SH);Nt(["y","yy","yyy","yyyy"],Vn);Nt(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Vn]=n._locale.eraYearOrdinalParse(e,o):t[Vn]=parseInt(e,10)});function sH(e,t){var n,r,o,i=this._eras||ri("en")._eras;for(n=0,r=i.length;n=0)return i[r]}function uH(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Pe(e.since).year():Pe(e.since).year()+(t-e.offset)*n}function dH(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ei&&(t=i),_H.call(this,e,t,n,r,o))}function _H(e,t,n,r,o){var i=Z2(e,t,n,r,o),a=cc(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}Xe("Q",0,"Qo","quarter");Ae("Q",H2);Nt("Q",function(e,t){t[Ho]=(ht(e)-1)*3});function RH(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Xe("D",["DD",2],"Do","date");Ae("D",Bt,kl);Ae("DD",Bt,Er);Ae("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Nt(["D","DD"],Co);Nt("Do",function(e,t){t[Co]=ht(e.match(Bt)[0])});var S$=Ll("Date",!0);Xe("DDD",["DDDD",3],"DDDo","dayOfYear");Ae("DDD",_f);Ae("DDDD",B2);Nt(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ht(e)});function PH(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Xe("m",["mm",2],0,"minute");Ae("m",Bt,o0);Ae("mm",Bt,Er);Nt(["m","mm"],oo);var MH=Ll("Minutes",!1);Xe("s",["ss",2],0,"second");Ae("s",Bt,o0);Ae("ss",Bt,Er);Nt(["s","ss"],Bo);var IH=Ll("Seconds",!1);Xe("S",0,0,function(){return~~(this.millisecond()/100)});Xe(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Xe(0,["SSS",3],0,"millisecond");Xe(0,["SSSS",4],0,function(){return this.millisecond()*10});Xe(0,["SSSSS",5],0,function(){return this.millisecond()*100});Xe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Xe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Xe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Xe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Ae("S",_f,H2);Ae("SS",_f,Er);Ae("SSS",_f,B2);var Oi,w$;for(Oi="SSSS";Oi.length<=9;Oi+="S")Ae(Oi,Dl);function TH(e,t){t[ia]=ht(("0."+e)*1e3)}for(Oi="S";Oi.length<=9;Oi+="S")Nt(Oi,TH);w$=Ll("Milliseconds",!1);Xe("z",0,0,"zoneAbbr");Xe("zz",0,0,"zoneName");function NH(){return this._isUTC?"UTC":""}function FH(){return this._isUTC?"Coordinated Universal Time":""}var ye=$c.prototype;ye.add=Oz;ye.calendar=Nz;ye.clone=Fz;ye.diff=Hz;ye.endOf=Qz;ye.format=Uz;ye.from=Yz;ye.fromNow=Gz;ye.to=qz;ye.toNow=Kz;ye.get=WA;ye.invalidAt=aH;ye.isAfter=Dz;ye.isBefore=kz;ye.isBetween=Lz;ye.isSame=jz;ye.isSameOrAfter=Az;ye.isSameOrBefore=zz;ye.isValid=oH;ye.lang=h$;ye.locale=m$;ye.localeData=v$;ye.max=oz;ye.min=rz;ye.parsingFlags=iH;ye.set=UA;ye.startOf=Xz;ye.subtract=_z;ye.toArray=tH;ye.toObject=nH;ye.toDate=eH;ye.toISOString=Vz;ye.inspect=Wz;typeof Symbol<"u"&&Symbol.for!=null&&(ye[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ye.toJSON=rH;ye.toString=Bz;ye.unix=Jz;ye.valueOf=Zz;ye.creationData=lH;ye.eraName=dH;ye.eraNarrow=fH;ye.eraAbbr=mH;ye.eraYear=hH;ye.year=U2;ye.isLeapYear=VA;ye.weekYear=wH;ye.isoWeekYear=CH;ye.quarter=ye.quarters=RH;ye.month=X2;ye.daysInMonth=e8;ye.week=ye.weeks=s8;ye.isoWeek=ye.isoWeeks=c8;ye.weeksInYear=$H;ye.weeksInWeekYear=OH;ye.isoWeeksInYear=xH;ye.isoWeeksInISOWeekYear=EH;ye.date=S$;ye.day=ye.days=C8;ye.weekday=x8;ye.isoWeekday=E8;ye.dayOfYear=PH;ye.hour=ye.hours=I8;ye.minute=ye.minutes=MH;ye.second=ye.seconds=IH;ye.millisecond=ye.milliseconds=w$;ye.utcOffset=mz;ye.utc=vz;ye.local=gz;ye.parseZone=pz;ye.hasAlignedHourOffset=yz;ye.isDST=bz;ye.isLocal=wz;ye.isUtcOffset=Cz;ye.isUtc=c$;ye.isUTC=c$;ye.zoneAbbr=NH;ye.zoneName=FH;ye.dates=Yr("dates accessor is deprecated. Use date instead.",S$);ye.months=Yr("months accessor is deprecated. Use month instead",X2);ye.years=Yr("years accessor is deprecated. Use year instead",U2);ye.zone=Yr("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",hz);ye.isDSTShifted=Yr("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sz);function DH(e){return Ht(e*1e3)}function kH(){return Ht.apply(null,arguments).parseZone()}function C$(e){return e}var Et=Jp.prototype;Et.calendar=wA;Et.longDateFormat=$A;Et.invalidDate=_A;Et.ordinal=MA;Et.preparse=C$;Et.postformat=C$;Et.relativeTime=TA;Et.pastFuture=NA;Et.set=bA;Et.eras=sH;Et.erasParse=cH;Et.erasConvertYear=uH;Et.erasAbbrRegex=gH;Et.erasNameRegex=vH;Et.erasNarrowRegex=pH;Et.months=XA;Et.monthsShort=QA;Et.monthsParse=JA;Et.monthsRegex=n8;Et.monthsShortRegex=t8;Et.week=o8;Et.firstDayOfYear=l8;Et.firstDayOfWeek=a8;Et.weekdays=p8;Et.weekdaysMin=b8;Et.weekdaysShort=y8;Et.weekdaysParse=w8;Et.weekdaysRegex=$8;Et.weekdaysShortRegex=O8;Et.weekdaysMinRegex=_8;Et.isPM=P8;Et.meridiem=T8;function Md(e,t,n,r){var o=ri(),i=Po().set(r,t);return o[n](i,e)}function x$(e,t,n){if(Jo(e)&&(t=e,e=void 0),e=e||"",t!=null)return Md(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=Md(e,r,n,"month");return o}function p0(e,t,n,r){typeof e=="boolean"?(Jo(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Jo(t)&&(n=t,t=void 0),t=t||"");var o=ri(),i=e?o._week.dow:0,a,l=[];if(n!=null)return Md(t,(n+i)%7,r,"day");for(a=0;a<7;a++)l[a]=Md(t,(a+i)%7,r,"day");return l}function LH(e,t){return x$(e,t,"months")}function jH(e,t){return x$(e,t,"monthsShort")}function AH(e,t,n){return p0(e,t,n,"weekdays")}function zH(e,t,n){return p0(e,t,n,"weekdaysShort")}function HH(e,t,n){return p0(e,t,n,"weekdaysMin")}ki("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=ht(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});Pe.lang=Yr("moment.lang is deprecated. Use moment.locale instead.",ki);Pe.langData=Yr("moment.langData is deprecated. Use moment.localeData instead.",ri);var To=Math.abs;function BH(){var e=this._data;return this._milliseconds=To(this._milliseconds),this._days=To(this._days),this._months=To(this._months),e.milliseconds=To(e.milliseconds),e.seconds=To(e.seconds),e.minutes=To(e.minutes),e.hours=To(e.hours),e.months=To(e.months),e.years=To(e.years),this}function E$(e,t,n,r){var o=vo(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function VH(e,t){return E$(this,e,t,1)}function WH(e,t){return E$(this,e,t,-1)}function tS(e){return e<0?Math.floor(e):Math.ceil(e)}function UH(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,o,i,a,l,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=tS(ug(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,o=Fr(e/1e3),r.seconds=o%60,i=Fr(o/60),r.minutes=i%60,a=Fr(i/60),r.hours=a%24,t+=Fr(a/24),c=Fr($$(t)),n+=c,t-=tS(ug(c)),l=Fr(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function $$(e){return e*4800/146097}function ug(e){return e*146097/4800}function YH(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Gr(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+$$(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(ug(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 oi(e){return function(){return this.as(e)}}var O$=oi("ms"),GH=oi("s"),qH=oi("m"),KH=oi("h"),XH=oi("d"),QH=oi("w"),ZH=oi("M"),JH=oi("Q"),e9=oi("y"),t9=O$;function n9(){return vo(this)}function r9(e){return e=Gr(e),this.isValid()?this[e+"s"]():NaN}function Ea(e){return function(){return this.isValid()?this._data[e]:NaN}}var o9=Ea("milliseconds"),i9=Ea("seconds"),a9=Ea("minutes"),l9=Ea("hours"),s9=Ea("days"),c9=Ea("months"),u9=Ea("years");function d9(){return Fr(this.days()/7)}var Do=Math.round,el={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function f9(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function m9(e,t,n,r){var o=vo(e).abs(),i=Do(o.as("s")),a=Do(o.as("m")),l=Do(o.as("h")),c=Do(o.as("d")),u=Do(o.as("M")),d=Do(o.as("w")),f=Do(o.as("y")),m=i<=n.ss&&["s",i]||i0,m[4]=r,f9.apply(null,m)}function h9(e){return e===void 0?Do:typeof e=="function"?(Do=e,!0):!1}function v9(e,t){return el[e]===void 0?!1:t===void 0?el[e]:(el[e]=t,e==="s"&&(el.ss=t-1),!0)}function g9(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=el,o,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},el,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),o=this.localeData(),i=m9(this,!n,r,o),n&&(i=o.pastFuture(+this,i)),o.postformat(i)}var ah=Math.abs;function Fa(e){return(e>0)-(e<0)||+e}function Df(){if(!this.isValid())return this.localeData().invalidDate();var e=ah(this._milliseconds)/1e3,t=ah(this._days),n=ah(this._months),r,o,i,a,l=this.asSeconds(),c,u,d,f;return l?(r=Fr(e/60),o=Fr(r/60),e%=60,r%=60,i=Fr(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",u=Fa(this._months)!==Fa(l)?"-":"",d=Fa(this._days)!==Fa(l)?"-":"",f=Fa(this._milliseconds)!==Fa(l)?"-":"",c+"P"+(i?u+i+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(o||r||e?"T":"")+(o?f+o+"H":"")+(r?f+r+"M":"")+(e?f+a+"S":"")):"P0D"}var yt=Nf.prototype;yt.isValid=cz;yt.abs=BH;yt.add=VH;yt.subtract=WH;yt.as=YH;yt.asMilliseconds=O$;yt.asSeconds=GH;yt.asMinutes=qH;yt.asHours=KH;yt.asDays=XH;yt.asWeeks=QH;yt.asMonths=ZH;yt.asQuarters=JH;yt.asYears=e9;yt.valueOf=t9;yt._bubble=UH;yt.clone=n9;yt.get=r9;yt.milliseconds=o9;yt.seconds=i9;yt.minutes=a9;yt.hours=l9;yt.days=s9;yt.weeks=d9;yt.months=c9;yt.years=u9;yt.humanize=g9;yt.toISOString=Df;yt.toString=Df;yt.toJSON=Df;yt.locale=m$;yt.localeData=v$;yt.toIsoString=Yr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Df);yt.lang=h$;Xe("X",0,0,"unix");Xe("x",0,0,"valueOf");Ae("x",Pf);Ae("X",LA);Nt("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Nt("x",function(e,t,n){n._d=new Date(ht(e))});//! moment.js -Pe.version="2.30.1";pA(Ht);Pe.fn=ye;Pe.min=iz;Pe.max=az;Pe.now=lz;Pe.utc=Po;Pe.unix=DH;Pe.months=LH;Pe.isDate=Ec;Pe.locale=ki;Pe.invalid=$f;Pe.duration=vo;Pe.isMoment=ho;Pe.weekdays=AH;Pe.parseZone=kH;Pe.localeData=ri;Pe.isDuration=ku;Pe.monthsShort=jH;Pe.weekdaysMin=HH;Pe.defineLocale=c0;Pe.updateLocale=k8;Pe.locales=L8;Pe.weekdaysShort=zH;Pe.normalizeUnits=Gr;Pe.relativeTimeRounding=h9;Pe.relativeTimeThreshold=v9;Pe.calendarFormat=Tz;Pe.prototype=ye;Pe.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"};let lr;const Lo=new Array(128).fill(void 0);Lo.push(void 0,null,!0,!1);function ls(e){return Lo[e]}let Os=Lo.length;function p9(e){e<132||(Lo[e]=Os,Os=e)}function _$(e){const t=ls(e);return p9(e),t}function La(e){Os===Lo.length&&Lo.push(Lo.length+1);const t=Os;return Os=Lo[t],Lo[t]=e,t}const R$=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&R$.decode();let ss=null;function _s(){return(ss===null||ss.byteLength===0)&&(ss=new Uint8Array(lr.memory.buffer)),ss}function lh(e,t){return e=e>>>0,R$.decode(_s().subarray(e,e+t))}let fc=0;function y9(e,t){const n=t(e.length*1,1)>>>0;return _s().set(e,n/1),fc=e.length,n}function nS(e){const t=y9(e,lr.__wbindgen_malloc),n=fc,r=lr.get_exif(t,n);return _$(r)}const ju=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},b9=typeof ju.encodeInto=="function"?function(e,t){return ju.encodeInto(e,t)}:function(e,t){const n=ju.encode(e);return t.set(n),{read:e.length,written:n.length}};function S9(e,t,n){if(n===void 0){const l=ju.encode(e),c=t(l.length,1)>>>0;return _s().subarray(c,c+l.length).set(l),fc=l.length,c}let r=e.length,o=t(r,1)>>>0;const i=_s();let a=0;for(;a127)break;i[o+a]=l}if(a!==r){a!==0&&(e=e.slice(a)),o=n(o,r,r=a+e.length*3,1)>>>0;const l=_s().subarray(o+a,o+r),c=b9(e,l);a+=c.written,o=n(o,r,a,1)>>>0}return fc=a,o}let Xi=null;function rS(){return(Xi===null||Xi.buffer.detached===!0||Xi.buffer.detached===void 0&&Xi.buffer!==lr.memory.buffer)&&(Xi=new DataView(lr.memory.buffer)),Xi}function w9(e,t){try{return e.apply(this,t)}catch(n){lr.__wbindgen_exn_store(La(n))}}async function C9(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(r){if(e.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function x9(){const e={};return e.wbg={},e.wbg.__wbg_new_abda76e883ba8a5f=function(){const t=new Error;return La(t)},e.wbg.__wbg_stack_658279fe44541cf6=function(t,n){const r=ls(n).stack,o=S9(r,lr.__wbindgen_malloc,lr.__wbindgen_realloc),i=fc;rS().setInt32(t+4*1,i,!0),rS().setInt32(t+4*0,o,!0)},e.wbg.__wbg_error_f851667af71bcfc6=function(t,n){let r,o;try{r=t,o=n,console.error(lh(t,n))}finally{lr.__wbindgen_free(r,o,1)}},e.wbg.__wbindgen_object_drop_ref=function(t){_$(t)},e.wbg.__wbindgen_number_new=function(t){return La(t)},e.wbg.__wbg_getTime_41225036a0393d63=function(t){return ls(t).getTime()},e.wbg.__wbg_getTimezoneOffset_93f7d384c8ade3be=function(t){return ls(t).getTimezoneOffset()},e.wbg.__wbg_new_6fb55f037293191b=function(t){const n=new Date(ls(t));return La(n)},e.wbg.__wbg_new0_218ada33b570be35=function(){return La(new Date)},e.wbg.__wbg_parse_51ee5409072379d3=function(){return w9(function(t,n){const r=JSON.parse(lh(t,n));return La(r)},arguments)},e.wbg.__wbindgen_throw=function(t,n){throw new Error(lh(t,n))},e}function E9(e,t){return lr=e.exports,P$.__wbindgen_wasm_module=t,Xi=null,ss=null,lr.__wbindgen_start(),lr}async function P$(e){if(lr!==void 0)return lr;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof e>"u"&&(e=new URL("https://zhiweio.github.io/picseal/assets/gen_brand_photo_pictrue_bg-BWP2XARl.wasm",import.meta.url));const t=x9();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));const{instance:n,module:r}=await C9(await e,t);return E9(n,r)}const No=YP({scriptUrl:["//at.alicdn.com/t/c/font_4757469_u2nszgglli.js"]}),oS=["Apple","Canon","Dji","Fujifilm","Huawei","Leica","Xiaomi","Nikon Corporation","Sony","未收录"],$9={model:"XIAOMI 13 ULTRA",date:Pe().format("YYYY.MM.DD HH:mm:ss"),gps:`41°12'47"N 124°00'16"W`,device:"75mm f/1.8 1/33s ISO800",brand:"leica",brand_url:"./brand/leica.svg",scale:.8,fontSize:"normal",fontWeight:"bold",fontFamily:"misans"},iS=["./exhibition/apple.jpg","./exhibition/canon.jpg","./exhibition/dji.jpg","./exhibition/fujifilm.jpg","./exhibition/huawei.jpg","./exhibition/leica.jpg","./exhibition/xiaomi.jpg","./exhibition/nikon.jpg","./exhibition/sony.jpg"];function O9(){const e=Math.floor(Math.random()*iS.length);return iS[e]}function _9(){const[e,t]=s.useState(!1),[n,r]=s.useState($9),[o,i]=s.useState(O9()),a=s.useRef();if(s.useEffect(()=>{(async()=>{await P$(),t(!0)})()},[]),!e)return pe.jsx("div",{children:"Loading WASM..."});const l=(C,w)=>{if(!C)return"";const[E,x,$,O]=C.match(/(\d+\.?\d*)|([NSWE]$)/gim).map(_=>Number.isNaN(Number(_))?_:`${~~_}`.padStart(2,"0"));return w?`${E}°${x}'${$}"${w}`:O?`${E}°${x}'${$}"${O}`:`${E}°${x}'${$}"`},c=C=>{const w=(C||"").toLowerCase();for(const E of oS.map(x=>x.toLowerCase()))if(w.includes(E))return E;return w},u=C=>{if(!C)return"";const[w,E]=C.split("/").filter(Boolean).map(x=>Math.floor(Number(x)));return[w,E].join("/")},d=C=>{const w={GPSLatitude:"",GPSLatitudeRef:"",GPSLongitude:"",GPSLongitudeRef:"",FocalLengthIn35mmFilm:"",FocalLength:"",FNumber:"",ExposureTime:"",PhotographicSensitivity:"",Model:"",Make:"",DateTimeOriginal:""},E=new Map(C.map(_=>[_.tag,_.value])),x=new Map(C.map(_=>[_.tag,_.value_with_unit]));w.GPSLatitude=E.get("GPSLatitude")||"",w.GPSLatitudeRef=E.get("GPSLatitudeRef")||"",w.GPSLongitude=E.get("GPSLongitude")||"",w.GPSLongitudeRef=E.get("GPSLongitudeRef")||"",w.FocalLengthIn35mmFilm=x.get("FocalLengthIn35mmFilm")||"",w.FocalLength=x.get("FocalLength")||"",w.FNumber=x.get("FNumber")||"",w.ExposureTime=E.get("ExposureTime")||"",w.PhotographicSensitivity=E.get("PhotographicSensitivity")||"",w.Model=E.get("Model")||"",w.Make=E.get("Make")||"",w.DateTimeOriginal=E.get("DateTimeOriginal")||"";const $=`${l(w.GPSLatitude,w.GPSLatitudeRef)} ${l(w.GPSLongitude,w.GPSLongitudeRef)}`,O=[`${(w.FocalLengthIn35mmFilm||w.FocalLength).replace(/\s+/g,"")}`,w.FNumber?.split("/")?.map((_,M)=>M?(+_).toFixed(1):_).join("/"),w.ExposureTime?`${u(w.ExposureTime)}s`:"",w.PhotographicSensitivity?`ISO${w.PhotographicSensitivity}`:""].filter(Boolean).join(" ");return{model:w.Model||"Unknown Model",date:w.DateTimeOriginal||Pe().format("YYYY.MM.DD HH:mm:ss"),gps:$,device:O,brand:`${c(w.Make)}`}},f=C=>`./brand/${C==="未收录"?"unknow.svg":`${C}.svg`}`,m=C=>{const w=new FileReader;return w.onloadend=async E=>{try{const x=nS(new Uint8Array(E.target.result)),$=d(x),O={...n,...$,brand_url:f($.brand)};console.log("original EXIF data: ",x),console.log("parsed EXIF data: ",$),a.current.setFieldsValue(O),r(O),i(URL.createObjectURL(new Blob([C],{type:C.type})))}catch(x){console.error("Error parsing EXIF data:",x),ng.error("无法识别照片特定数据,请换一张照片")}},w.readAsArrayBuffer(C),!1},b=()=>{const C=document.getElementById("preview"),w=4;gA.toJpeg(C,{quality:1,width:C.clientWidth*w,height:C.clientHeight*w,style:{transform:`scale(${w})`,transformOrigin:"top left"}}).then(E=>{const x=document.createElement("a");x.download=`${Date.now()}.jpg`,x.href=E,document.body.appendChild(x),x.click(),x.remove()}).catch(E=>{console.error("Export Error:",E),ng.error("导出失败,请重试")})},y=(C,w)=>{r({...w,brand_url:f(w.brand)})},p=C=>{document.documentElement.style.setProperty("--banner-scale",C),r(w=>({...w,scale:C}))},S=C=>{const w={small:"var(--font-size-small)",normal:"var(--font-size-normal)",large:"var(--font-size-large)"};document.documentElement.style.setProperty("--current-font-size",w[C]),r(E=>({...E,fontSize:C}))},g=C=>{const w={normal:"var(--font-weight-normal)",bold:"var(--font-weight-bold)",black:"var(--font-weight-black)"};document.documentElement.style.setProperty("--current-font-weight",w[C]),r(E=>({...E,fontWeight:C}))},h=C=>{const w={default:"var(--font-family-default)",caveat:"var(--font-family-caveat)",misans:"var(--font-family-misans)",helvetica:"var(--font-family-helvetica)",futura:"var(--font-family-futura)",avenir:"var(--font-family-avenir)",didot:"var(--font-family-didot)"};document.documentElement.style.setProperty("--current-font-family",w[C]),r(E=>({...E,fontFamily:C}))},v=async C=>{const w=`/exhibition/${C.toLowerCase()}.jpg`;i(w);const $=await(await(await fetch(w)).blob()).arrayBuffer(),O=nS(new Uint8Array($)),_=d(O),M={...n,..._,brand_url:f(_.brand)};a.current.setFieldsValue(M),r(M)};return pe.jsxs(pe.Fragment,{children:[pe.jsx(ca.Title,{level:2,children:"水印照片生成器"}),pe.jsx($6,{}),pe.jsxs("div",{className:"preview-box",children:[pe.jsx(ca.Title,{level:4,children:"预览"}),pe.jsxs("div",{className:"preview",id:"preview",children:[pe.jsx("img",{className:"preview-picture",src:o,alt:"Preview"}),pe.jsxs("div",{className:"preview-info",children:[pe.jsxs("div",{className:"preview-info-left",children:[pe.jsx("div",{className:"preview-info-model",children:n.model}),pe.jsx("div",{className:"preview-info-date",children:n.date}),pe.jsx("div",{className:"preview-info-brand",children:pe.jsx("img",{src:n.brand_url,alt:"Brand"})})]}),pe.jsx("div",{className:"preview-info-split"}),pe.jsxs("div",{className:"preview-info-right",children:[pe.jsx("div",{className:"preview-info-device",children:n.device}),pe.jsx("div",{className:"preview-info-gps",children:n.gps})]})]})]})]}),pe.jsx("div",{className:"exhibition",children:pe.jsxs(zL,{wrap:!0,gap:"middle",horizontal:"true",justify:"center",align:"center",children:[pe.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>v("apple"),children:[pe.jsx(No,{type:"icon-apple",style:{fontSize:"16px"}}),"Apple"]}),pe.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>v("canon"),children:[pe.jsx(No,{type:"icon-jianeng",style:{fontSize:"28px"}}),"Cannon"]}),pe.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>v("dji"),children:[pe.jsx(No,{type:"icon-DJI",style:{fontSize:"28px"}}),"Dji"]}),pe.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>v("fujifilm"),children:[pe.jsx(No,{type:"icon-fushi",style:{fontSize:"28px"}}),"Fuji"]}),pe.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>v("huawei"),children:[pe.jsx(No,{type:"icon-huawei1",style:{fontSize:"16px"}}),"Huawei"]}),pe.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>v("leica"),children:[pe.jsx(No,{type:"icon-laika",style:{fontSize:"16px"}}),"Leica"]}),pe.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>v("xiaomi"),children:[pe.jsx(No,{type:"icon-icon-xiaomiguishu",style:{fontSize:"16px"}}),"Xiaomi"]}),pe.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>v("nikon"),children:[pe.jsx(No,{type:"icon-nikon",style:{fontSize:"16px"}}),"Nikon"]}),pe.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>v("sony"),children:[pe.jsx(No,{type:"icon-sony",style:{fontSize:"28px"}}),"Sony"]})]})}),pe.jsx("div",{className:"op",children:pe.jsxs(p2,{size:"large",children:[pe.jsx(Kp,{accept:"image/*",beforeUpload:C=>(m(C),!1),fileList:[],children:pe.jsx(Hn,{type:"primary",shape:"round",icon:pe.jsx(DP,{}),ghost:!0,children:"新建照片"})}),pe.jsx(Hn,{type:"primary",shape:"round",icon:pe.jsx(DC,{}),onClick:b,children:"导出照片"})]})}),pe.jsxs("div",{className:"props",children:[pe.jsx("div",{className:"props-title",children:pe.jsx(ca.Title,{level:4,children:"参数"})}),pe.jsx("div",{className:"props-option",children:pe.jsxs(_n,{ref:a,labelCol:{span:4},wrapperCol:{span:14},layout:"horizontal",size:"small",style:{maxWidth:800},initialValues:n,onValuesChange:y,children:[pe.jsx(_n.Item,{label:"型号",name:"model",children:pe.jsx(zo,{})}),pe.jsx(_n.Item,{label:"品牌",name:"brand",children:pe.jsx(Jt,{style:{width:170},children:oS.map(C=>pe.jsx(Jt.Option,{value:C.toLowerCase(),children:C},C))})}),pe.jsx(_n.Item,{label:"参数",name:"device",children:pe.jsx(zo,{})}),pe.jsx(_n.Item,{label:"时间",name:"date",children:pe.jsx(zo,{})}),pe.jsx(_n.Item,{label:"经纬",name:"gps",children:pe.jsx(zo,{})}),pe.jsx(_n.Item,{label:"字体大小",name:"fontSize",children:pe.jsxs(Jt,{style:{width:170},onChange:S,children:[pe.jsx(Jt.Option,{value:"small",children:"小"}),pe.jsx(Jt.Option,{value:"normal",children:"正常"}),pe.jsx(Jt.Option,{value:"large",children:"大"})]})}),pe.jsx(_n.Item,{label:"字体粗细",name:"fontWeight",children:pe.jsxs(Jt,{style:{width:170},onChange:g,children:[pe.jsx(Jt.Option,{value:"normal",children:"正常"}),pe.jsx(Jt.Option,{value:"bold",children:"加粗"}),pe.jsx(Jt.Option,{value:"black",children:"黑体"})]})}),pe.jsx(_n.Item,{label:"字体",name:"fontFamily",children:pe.jsxs(Jt,{style:{width:170},onChange:h,children:[pe.jsx(Jt.Option,{value:"default",children:"Default"}),pe.jsx(Jt.Option,{value:"misans",children:"MiSans"}),pe.jsx(Jt.Option,{value:"caveat",children:"Caveat"}),pe.jsx(Jt.Option,{value:"helvetica",children:"Helvetica Neue"}),pe.jsx(Jt.Option,{value:"futura",children:"Futura"}),pe.jsx(Jt.Option,{value:"avenir",children:"Avenir"}),pe.jsx(Jt.Option,{value:"didot",children:"Didot"})]})}),pe.jsx(_n.Item,{label:"横幅缩放",name:"scale",children:pe.jsx(xL,{min:.5,max:1.2,step:.1,onChange:p})})]})})]})]})}function R9(){return pe.jsxs("a",{href:"https://github.com/zhiweio/picseal",className:"github-corner","aria-label":"View source on GitHub",children:[pe.jsxs("svg",{width:"80",height:"80",viewBox:"0 0 250 250",style:{fill:"#70B7FD",color:"#fff",position:"absolute",top:0,border:0,right:0},"aria-hidden":"true",children:[pe.jsx("path",{d:"M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"}),pe.jsx("path",{d:"M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2",fill:"currentColor",style:{transformOrigin:"130px 106px"},className:"octo-arm"}),pe.jsx("path",{d:"M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z",fill:"currentColor",className:"octo-body"})]}),pe.jsx("style",{children:` +Pe.version="2.30.1";pA(Ht);Pe.fn=ye;Pe.min=iz;Pe.max=az;Pe.now=lz;Pe.utc=Po;Pe.unix=DH;Pe.months=LH;Pe.isDate=Ec;Pe.locale=ki;Pe.invalid=$f;Pe.duration=vo;Pe.isMoment=ho;Pe.weekdays=AH;Pe.parseZone=kH;Pe.localeData=ri;Pe.isDuration=ku;Pe.monthsShort=jH;Pe.weekdaysMin=HH;Pe.defineLocale=c0;Pe.updateLocale=k8;Pe.locales=L8;Pe.weekdaysShort=zH;Pe.normalizeUnits=Gr;Pe.relativeTimeRounding=h9;Pe.relativeTimeThreshold=v9;Pe.calendarFormat=Tz;Pe.prototype=ye;Pe.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"};let lr;const Lo=new Array(128).fill(void 0);Lo.push(void 0,null,!0,!1);function ls(e){return Lo[e]}let Os=Lo.length;function p9(e){e<132||(Lo[e]=Os,Os=e)}function _$(e){const t=ls(e);return p9(e),t}function La(e){Os===Lo.length&&Lo.push(Lo.length+1);const t=Os;return Os=Lo[t],Lo[t]=e,t}const R$=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&R$.decode();let ss=null;function _s(){return(ss===null||ss.byteLength===0)&&(ss=new Uint8Array(lr.memory.buffer)),ss}function lh(e,t){return e=e>>>0,R$.decode(_s().subarray(e,e+t))}let fc=0;function y9(e,t){const n=t(e.length*1,1)>>>0;return _s().set(e,n/1),fc=e.length,n}function nS(e){const t=y9(e,lr.__wbindgen_malloc),n=fc,r=lr.get_exif(t,n);return _$(r)}const ju=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},b9=typeof ju.encodeInto=="function"?function(e,t){return ju.encodeInto(e,t)}:function(e,t){const n=ju.encode(e);return t.set(n),{read:e.length,written:n.length}};function S9(e,t,n){if(n===void 0){const l=ju.encode(e),c=t(l.length,1)>>>0;return _s().subarray(c,c+l.length).set(l),fc=l.length,c}let r=e.length,o=t(r,1)>>>0;const i=_s();let a=0;for(;a127)break;i[o+a]=l}if(a!==r){a!==0&&(e=e.slice(a)),o=n(o,r,r=a+e.length*3,1)>>>0;const l=_s().subarray(o+a,o+r),c=b9(e,l);a+=c.written,o=n(o,r,a,1)>>>0}return fc=a,o}let Xi=null;function rS(){return(Xi===null||Xi.buffer.detached===!0||Xi.buffer.detached===void 0&&Xi.buffer!==lr.memory.buffer)&&(Xi=new DataView(lr.memory.buffer)),Xi}function w9(e,t){try{return e.apply(this,t)}catch(n){lr.__wbindgen_exn_store(La(n))}}async function C9(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(r){if(e.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function x9(){const e={};return e.wbg={},e.wbg.__wbg_new_abda76e883ba8a5f=function(){const t=new Error;return La(t)},e.wbg.__wbg_stack_658279fe44541cf6=function(t,n){const r=ls(n).stack,o=S9(r,lr.__wbindgen_malloc,lr.__wbindgen_realloc),i=fc;rS().setInt32(t+4*1,i,!0),rS().setInt32(t+4*0,o,!0)},e.wbg.__wbg_error_f851667af71bcfc6=function(t,n){let r,o;try{r=t,o=n,console.error(lh(t,n))}finally{lr.__wbindgen_free(r,o,1)}},e.wbg.__wbindgen_object_drop_ref=function(t){_$(t)},e.wbg.__wbindgen_number_new=function(t){return La(t)},e.wbg.__wbg_getTime_41225036a0393d63=function(t){return ls(t).getTime()},e.wbg.__wbg_getTimezoneOffset_93f7d384c8ade3be=function(t){return ls(t).getTimezoneOffset()},e.wbg.__wbg_new_6fb55f037293191b=function(t){const n=new Date(ls(t));return La(n)},e.wbg.__wbg_new0_218ada33b570be35=function(){return La(new Date)},e.wbg.__wbg_parse_51ee5409072379d3=function(){return w9(function(t,n){const r=JSON.parse(lh(t,n));return La(r)},arguments)},e.wbg.__wbindgen_throw=function(t,n){throw new Error(lh(t,n))},e}function E9(e,t){return lr=e.exports,P$.__wbindgen_wasm_module=t,Xi=null,ss=null,lr.__wbindgen_start(),lr}async function P$(e){if(lr!==void 0)return lr;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof e>"u"&&(e=new URL("https://zhiweio.github.io/picseal/assets/gen_brand_photo_pictrue_bg-BWP2XARl.wasm",import.meta.url));const t=x9();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));const{instance:n,module:r}=await C9(await e,t);return E9(n,r)}const No=YP({scriptUrl:["//at.alicdn.com/t/c/font_4757469_u2nszgglli.js"]}),oS=["Apple","Canon","Dji","Fujifilm","Huawei","Leica","Xiaomi","Nikon Corporation","Sony","未收录"],$9={model:"XIAOMI 13 ULTRA",date:Pe().format("YYYY.MM.DD HH:mm:ss"),gps:`41°12'47"N 124°00'16"W`,device:"75mm f/1.8 1/33s ISO800",brand:"leica",brand_url:"./brand/leica.svg",scale:.8,fontSize:"normal",fontWeight:"bold",fontFamily:"misans"},iS=["./exhibition/apple.jpg","./exhibition/canon.jpg","./exhibition/dji.jpg","./exhibition/fujifilm.jpg","./exhibition/huawei.jpg","./exhibition/leica.jpg","./exhibition/xiaomi.jpg","./exhibition/nikon.jpg","./exhibition/sony.jpg"];function O9(){const e=Math.floor(Math.random()*iS.length);return iS[e]}function _9(){const[e,t]=s.useState(!1),[n,r]=s.useState($9),[o,i]=s.useState(O9()),a=s.useRef();if(s.useEffect(()=>{(async()=>{await P$(),t(!0)})()},[]),!e)return pe.jsx("div",{children:"Loading WASM..."});const l=(C,w)=>{if(!C)return"";const[E,x,$,O]=C.match(/(\d+\.?\d*)|([NSWE]$)/gim).map(_=>Number.isNaN(Number(_))?_:`${~~_}`.padStart(2,"0"));return w?`${E}°${x}'${$}"${w}`:O?`${E}°${x}'${$}"${O}`:`${E}°${x}'${$}"`},c=C=>{const w=(C||"").toLowerCase();for(const E of oS.map(x=>x.toLowerCase()))if(w.includes(E))return E;return w},u=C=>{if(!C)return"";const[w,E]=C.split("/").filter(Boolean).map(x=>Math.floor(Number(x)));return[w,E].join("/")},d=C=>{const w={GPSLatitude:"",GPSLatitudeRef:"",GPSLongitude:"",GPSLongitudeRef:"",FocalLengthIn35mmFilm:"",FocalLength:"",FNumber:"",ExposureTime:"",PhotographicSensitivity:"",Model:"",Make:"",DateTimeOriginal:""},E=new Map(C.map(_=>[_.tag,_.value])),x=new Map(C.map(_=>[_.tag,_.value_with_unit]));w.GPSLatitude=E.get("GPSLatitude")||"",w.GPSLatitudeRef=E.get("GPSLatitudeRef")||"",w.GPSLongitude=E.get("GPSLongitude")||"",w.GPSLongitudeRef=E.get("GPSLongitudeRef")||"",w.FocalLengthIn35mmFilm=x.get("FocalLengthIn35mmFilm")||"",w.FocalLength=x.get("FocalLength")||"",w.FNumber=x.get("FNumber")||"",w.ExposureTime=E.get("ExposureTime")||"",w.PhotographicSensitivity=E.get("PhotographicSensitivity")||"",w.Model=E.get("Model")||"",w.Make=E.get("Make")||"",w.DateTimeOriginal=E.get("DateTimeOriginal")||"";const $=`${l(w.GPSLatitude,w.GPSLatitudeRef)} ${l(w.GPSLongitude,w.GPSLongitudeRef)}`,O=[`${(w.FocalLengthIn35mmFilm||w.FocalLength).replace(/\s+/g,"")}`,w.FNumber?.split("/")?.map((_,M)=>M?(+_).toFixed(1):_).join("/"),w.ExposureTime?`${u(w.ExposureTime)}s`:"",w.PhotographicSensitivity?`ISO${w.PhotographicSensitivity}`:""].filter(Boolean).join(" ");return{model:w.Model||"Unknown Model",date:w.DateTimeOriginal||Pe().format("YYYY.MM.DD HH:mm:ss"),gps:$,device:O,brand:`${c(w.Make)}`}},f=C=>`./brand/${C==="未收录"?"unknow.svg":`${C}.svg`}`,m=C=>{const w=new FileReader;return w.onloadend=async E=>{try{const x=nS(new Uint8Array(E.target.result)),$=d(x),O={...n,...$,brand_url:f($.brand)};console.log("original EXIF data: ",x),console.log("parsed EXIF data: ",$),a.current.setFieldsValue(O),r(O),i(URL.createObjectURL(new Blob([C],{type:C.type})))}catch(x){console.error("Error parsing EXIF data:",x),ng.error("无法识别照片特定数据,请换一张照片")}},w.readAsArrayBuffer(C),!1},b=()=>{const C=document.getElementById("preview"),w=4;gA.toJpeg(C,{quality:1,width:C.clientWidth*w,height:C.clientHeight*w,style:{transform:`scale(${w})`,transformOrigin:"top left"}}).then(E=>{const x=document.createElement("a");x.download=`${Date.now()}.jpg`,x.href=E,document.body.appendChild(x),x.click(),x.remove()}).catch(E=>{console.error("Export Error:",E),ng.error("导出失败,请重试")})},y=(C,w)=>{r({...w,brand_url:f(w.brand)})},p=C=>{document.documentElement.style.setProperty("--banner-scale",C),r(w=>({...w,scale:C}))},S=C=>{const w={small:"var(--font-size-small)",normal:"var(--font-size-normal)",large:"var(--font-size-large)"};document.documentElement.style.setProperty("--current-font-size",w[C]),r(E=>({...E,fontSize:C}))},g=C=>{const w={normal:"var(--font-weight-normal)",bold:"var(--font-weight-bold)",black:"var(--font-weight-black)"};document.documentElement.style.setProperty("--current-font-weight",w[C]),r(E=>({...E,fontWeight:C}))},h=C=>{const w={default:"var(--font-family-default)",caveat:"var(--font-family-caveat)",misans:"var(--font-family-misans)",helvetica:"var(--font-family-helvetica)",futura:"var(--font-family-futura)",avenir:"var(--font-family-avenir)",didot:"var(--font-family-didot)"};document.documentElement.style.setProperty("--current-font-family",w[C]),r(E=>({...E,fontFamily:C}))},v=async C=>{const w=`./exhibition/${C.toLowerCase()}.jpg`;i(w);const $=await(await(await fetch(w)).blob()).arrayBuffer(),O=nS(new Uint8Array($)),_=d(O),M={...n,..._,brand_url:f(_.brand)};a.current.setFieldsValue(M),r(M)};return pe.jsxs(pe.Fragment,{children:[pe.jsx(ca.Title,{level:2,children:"水印照片生成器"}),pe.jsx($6,{}),pe.jsxs("div",{className:"preview-box",children:[pe.jsx(ca.Title,{level:4,children:"预览"}),pe.jsxs("div",{className:"preview",id:"preview",children:[pe.jsx("img",{className:"preview-picture",src:o,alt:"Preview"}),pe.jsxs("div",{className:"preview-info",children:[pe.jsxs("div",{className:"preview-info-left",children:[pe.jsx("div",{className:"preview-info-model",children:n.model}),pe.jsx("div",{className:"preview-info-date",children:n.date}),pe.jsx("div",{className:"preview-info-brand",children:pe.jsx("img",{src:n.brand_url,alt:"Brand"})})]}),pe.jsx("div",{className:"preview-info-split"}),pe.jsxs("div",{className:"preview-info-right",children:[pe.jsx("div",{className:"preview-info-device",children:n.device}),pe.jsx("div",{className:"preview-info-gps",children:n.gps})]})]})]})]}),pe.jsx("div",{className:"exhibition",children:pe.jsxs(zL,{wrap:!0,gap:"middle",horizontal:"true",justify:"center",align:"center",children:[pe.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>v("apple"),children:[pe.jsx(No,{type:"icon-apple",style:{fontSize:"16px"}}),"Apple"]}),pe.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>v("canon"),children:[pe.jsx(No,{type:"icon-jianeng",style:{fontSize:"28px"}}),"Cannon"]}),pe.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>v("dji"),children:[pe.jsx(No,{type:"icon-DJI",style:{fontSize:"28px"}}),"Dji"]}),pe.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>v("fujifilm"),children:[pe.jsx(No,{type:"icon-fushi",style:{fontSize:"28px"}}),"Fuji"]}),pe.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>v("huawei"),children:[pe.jsx(No,{type:"icon-huawei1",style:{fontSize:"16px"}}),"Huawei"]}),pe.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>v("leica"),children:[pe.jsx(No,{type:"icon-laika",style:{fontSize:"16px"}}),"Leica"]}),pe.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>v("xiaomi"),children:[pe.jsx(No,{type:"icon-icon-xiaomiguishu",style:{fontSize:"16px"}}),"Xiaomi"]}),pe.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>v("nikon"),children:[pe.jsx(No,{type:"icon-nikon",style:{fontSize:"16px"}}),"Nikon"]}),pe.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>v("sony"),children:[pe.jsx(No,{type:"icon-sony",style:{fontSize:"28px"}}),"Sony"]})]})}),pe.jsx("div",{className:"op",children:pe.jsxs(p2,{size:"large",children:[pe.jsx(Kp,{accept:"image/*",beforeUpload:C=>(m(C),!1),fileList:[],children:pe.jsx(Hn,{type:"primary",shape:"round",icon:pe.jsx(DP,{}),ghost:!0,children:"新建照片"})}),pe.jsx(Hn,{type:"primary",shape:"round",icon:pe.jsx(DC,{}),onClick:b,children:"导出照片"})]})}),pe.jsxs("div",{className:"props",children:[pe.jsx("div",{className:"props-title",children:pe.jsx(ca.Title,{level:4,children:"参数"})}),pe.jsx("div",{className:"props-option",children:pe.jsxs(_n,{ref:a,labelCol:{span:4},wrapperCol:{span:14},layout:"horizontal",size:"small",style:{maxWidth:800},initialValues:n,onValuesChange:y,children:[pe.jsx(_n.Item,{label:"型号",name:"model",children:pe.jsx(zo,{})}),pe.jsx(_n.Item,{label:"品牌",name:"brand",children:pe.jsx(Jt,{style:{width:170},children:oS.map(C=>pe.jsx(Jt.Option,{value:C.toLowerCase(),children:C},C))})}),pe.jsx(_n.Item,{label:"参数",name:"device",children:pe.jsx(zo,{})}),pe.jsx(_n.Item,{label:"时间",name:"date",children:pe.jsx(zo,{})}),pe.jsx(_n.Item,{label:"经纬",name:"gps",children:pe.jsx(zo,{})}),pe.jsx(_n.Item,{label:"字体大小",name:"fontSize",children:pe.jsxs(Jt,{style:{width:170},onChange:S,children:[pe.jsx(Jt.Option,{value:"small",children:"小"}),pe.jsx(Jt.Option,{value:"normal",children:"正常"}),pe.jsx(Jt.Option,{value:"large",children:"大"})]})}),pe.jsx(_n.Item,{label:"字体粗细",name:"fontWeight",children:pe.jsxs(Jt,{style:{width:170},onChange:g,children:[pe.jsx(Jt.Option,{value:"normal",children:"正常"}),pe.jsx(Jt.Option,{value:"bold",children:"加粗"}),pe.jsx(Jt.Option,{value:"black",children:"黑体"})]})}),pe.jsx(_n.Item,{label:"字体",name:"fontFamily",children:pe.jsxs(Jt,{style:{width:170},onChange:h,children:[pe.jsx(Jt.Option,{value:"default",children:"Default"}),pe.jsx(Jt.Option,{value:"misans",children:"MiSans"}),pe.jsx(Jt.Option,{value:"caveat",children:"Caveat"}),pe.jsx(Jt.Option,{value:"helvetica",children:"Helvetica Neue"}),pe.jsx(Jt.Option,{value:"futura",children:"Futura"}),pe.jsx(Jt.Option,{value:"avenir",children:"Avenir"}),pe.jsx(Jt.Option,{value:"didot",children:"Didot"})]})}),pe.jsx(_n.Item,{label:"横幅缩放",name:"scale",children:pe.jsx(xL,{min:.5,max:1.2,step:.1,onChange:p})})]})})]})]})}function R9(){return pe.jsxs("a",{href:"https://github.com/zhiweio/picseal",className:"github-corner","aria-label":"View source on GitHub",children:[pe.jsxs("svg",{width:"80",height:"80",viewBox:"0 0 250 250",style:{fill:"#70B7FD",color:"#fff",position:"absolute",top:0,border:0,right:0},"aria-hidden":"true",children:[pe.jsx("path",{d:"M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"}),pe.jsx("path",{d:"M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2",fill:"currentColor",style:{transformOrigin:"130px 106px"},className:"octo-arm"}),pe.jsx("path",{d:"M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z",fill:"currentColor",className:"octo-body"})]}),pe.jsx("style",{children:` .github-corner:hover .octo-arm { animation: octocat-wave 560ms ease-in-out; } diff --git a/index.html b/index.html index 2e4dc24..41eb6bd 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,6 @@ - +