@baosight/erm 1.0.57 → 1.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.common.js +32 -38
- package/lib/index.common.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.esm.css +61 -61
- package/lib/index.esm.js +1 -1
- package/lib/index.umd.js +32 -38
- package/lib/index.umd.js.map +1 -1
- package/lib/index.umd.min.js +1 -1
- package/lib/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/lib/index.umd.min.js
CHANGED
|
@@ -294,7 +294,7 @@ var t=e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_
|
|
|
294
294
|
//! moment.js locale configuration
|
|
295
295
|
var t=e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},6700:(e,t,n)=>{var r={"./af":2786,"./af.js":2786,"./ar":867,"./ar-dz":4130,"./ar-dz.js":4130,"./ar-kw":6135,"./ar-kw.js":6135,"./ar-ly":6440,"./ar-ly.js":6440,"./ar-ma":7702,"./ar-ma.js":7702,"./ar-sa":6040,"./ar-sa.js":6040,"./ar-tn":7100,"./ar-tn.js":7100,"./ar.js":867,"./az":1083,"./az.js":1083,"./be":9808,"./be.js":9808,"./bg":8338,"./bg.js":8338,"./bm":7438,"./bm.js":7438,"./bn":8905,"./bn-bd":6225,"./bn-bd.js":6225,"./bn.js":8905,"./bo":1560,"./bo.js":1560,"./br":1278,"./br.js":1278,"./bs":622,"./bs.js":622,"./ca":2468,"./ca.js":2468,"./cs":5822,"./cs.js":5822,"./cv":877,"./cv.js":877,"./cy":7373,"./cy.js":7373,"./da":4780,"./da.js":4780,"./de":9740,"./de-at":217,"./de-at.js":217,"./de-ch":894,"./de-ch.js":894,"./de.js":9740,"./dv":5300,"./dv.js":5300,"./el":837,"./el.js":837,"./en-au":8348,"./en-au.js":8348,"./en-ca":7925,"./en-ca.js":7925,"./en-gb":2243,"./en-gb.js":2243,"./en-ie":6436,"./en-ie.js":6436,"./en-il":7207,"./en-il.js":7207,"./en-in":4175,"./en-in.js":4175,"./en-nz":6319,"./en-nz.js":6319,"./en-sg":1662,"./en-sg.js":1662,"./eo":2915,"./eo.js":2915,"./es":5655,"./es-do":5251,"./es-do.js":5251,"./es-mx":6112,"./es-mx.js":6112,"./es-us":1146,"./es-us.js":1146,"./es.js":5655,"./et":5603,"./et.js":5603,"./eu":7763,"./eu.js":7763,"./fa":6959,"./fa.js":6959,"./fi":1897,"./fi.js":1897,"./fil":2549,"./fil.js":2549,"./fo":4694,"./fo.js":4694,"./fr":4470,"./fr-ca":3049,"./fr-ca.js":3049,"./fr-ch":2330,"./fr-ch.js":2330,"./fr.js":4470,"./fy":5044,"./fy.js":5044,"./ga":9295,"./ga.js":9295,"./gd":2101,"./gd.js":2101,"./gl":8794,"./gl.js":8794,"./gom-deva":7884,"./gom-deva.js":7884,"./gom-latn":3168,"./gom-latn.js":3168,"./gu":5349,"./gu.js":5349,"./he":4206,"./he.js":4206,"./hi":94,"./hi.js":94,"./hr":316,"./hr.js":316,"./hu":2138,"./hu.js":2138,"./hy-am":1423,"./hy-am.js":1423,"./id":9218,"./id.js":9218,"./is":135,"./is.js":135,"./it":626,"./it-ch":150,"./it-ch.js":150,"./it.js":626,"./ja":9183,"./ja.js":9183,"./jv":4286,"./jv.js":4286,"./ka":2105,"./ka.js":2105,"./kk":7772,"./kk.js":7772,"./km":8758,"./km.js":8758,"./kn":9282,"./kn.js":9282,"./ko":3730,"./ko.js":3730,"./ku":1408,"./ku.js":1408,"./ky":3291,"./ky.js":3291,"./lb":6841,"./lb.js":6841,"./lo":5466,"./lo.js":5466,"./lt":7010,"./lt.js":7010,"./lv":7595,"./lv.js":7595,"./me":9861,"./me.js":9861,"./mi":5493,"./mi.js":5493,"./mk":5966,"./mk.js":5966,"./ml":7341,"./ml.js":7341,"./mn":5115,"./mn.js":5115,"./mr":370,"./mr.js":370,"./ms":9847,"./ms-my":1237,"./ms-my.js":1237,"./ms.js":9847,"./mt":2126,"./mt.js":2126,"./my":6165,"./my.js":6165,"./nb":4924,"./nb.js":4924,"./ne":6744,"./ne.js":6744,"./nl":3901,"./nl-be":9814,"./nl-be.js":9814,"./nl.js":3901,"./nn":3877,"./nn.js":3877,"./oc-lnc":2135,"./oc-lnc.js":2135,"./pa-in":5858,"./pa-in.js":5858,"./pl":4495,"./pl.js":4495,"./pt":9520,"./pt-br":7971,"./pt-br.js":7971,"./pt.js":9520,"./ro":6459,"./ro.js":6459,"./ru":238,"./ru.js":238,"./sd":950,"./sd.js":950,"./se":490,"./se.js":490,"./si":124,"./si.js":124,"./sk":4249,"./sk.js":4249,"./sl":4985,"./sl.js":4985,"./sq":1104,"./sq.js":1104,"./sr":9131,"./sr-cyrl":9915,"./sr-cyrl.js":9915,"./sr.js":9131,"./ss":5893,"./ss.js":5893,"./sv":8760,"./sv.js":8760,"./sw":1172,"./sw.js":1172,"./ta":7333,"./ta.js":7333,"./te":3110,"./te.js":3110,"./tet":2095,"./tet.js":2095,"./tg":7321,"./tg.js":7321,"./th":9041,"./th.js":9041,"./tk":9005,"./tk.js":9005,"./tl-ph":5768,"./tl-ph.js":5768,"./tlh":9444,"./tlh.js":9444,"./tr":2397,"./tr.js":2397,"./tzl":8254,"./tzl.js":8254,"./tzm":1106,"./tzm-latn":699,"./tzm-latn.js":699,"./tzm.js":1106,"./ug-cn":9288,"./ug-cn.js":9288,"./uk":7691,"./uk.js":7691,"./ur":3795,"./ur.js":3795,"./uz":6791,"./uz-latn":588,"./uz-latn.js":588,"./uz.js":6791,"./vi":5666,"./vi.js":5666,"./x-pseudo":4378,"./x-pseudo.js":4378,"./yo":5805,"./yo.js":5805,"./zh-cn":3839,"./zh-cn.js":3839,"./zh-hk":5726,"./zh-hk.js":5726,"./zh-mo":9807,"./zh-mo.js":9807,"./zh-tw":4152,"./zh-tw.js":4152};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id=6700},381:function(e,t,n){e=n.nmd(e),function(t,n){e.exports=n()}(0,(function(){"use strict";var t,r;function a(){return t.apply(null,arguments)}function o(e){t=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(u(e,t))return!1;return!0}function d(e){return void 0===e}function c(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function m(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,r=[],a=e.length;for(n=0;n<a;++n)r.push(t(e[n],n));return r}function f(e,t){for(var n in t)u(t,n)&&(e[n]=t[n]);return u(t,"toString")&&(e.toString=t.toString),u(t,"valueOf")&&(e.valueOf=t.valueOf),e}function _(e,t,n,r){return $n(e,t,n,r,!0).utc()}function p(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function y(e){return null==e._pf&&(e._pf=p()),e._pf}function g(e){if(null==e._isValid){var t=y(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),a=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function M(e){var t=_(NaN);return null!=e?f(y(t),e):y(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=a.momentProperties=[],L=!1;function w(e,t){var n,r,a,o=v.length;if(d(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),d(t._i)||(e._i=t._i),d(t._f)||(e._f=t._f),d(t._l)||(e._l=t._l),d(t._strict)||(e._strict=t._strict),d(t._tzm)||(e._tzm=t._tzm),d(t._isUTC)||(e._isUTC=t._isUTC),d(t._offset)||(e._offset=t._offset),d(t._pf)||(e._pf=y(t)),d(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)r=v[n],a=t[r],d(a)||(e[r]=a);return e}function k(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===L&&(L=!0,a.updateOffset(this),L=!1)}function Y(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function b(e){!1===a.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function D(e,t){var n=!0;return f((function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,e),n){var r,o,s,i=[],l=arguments.length;for(o=0;o<l;o++){if(r="","object"===typeof arguments[o]){for(s in r+="\n["+o+"] ",arguments[0])u(arguments[0],s)&&(r+=s+": "+arguments[0][s]+", ");r=r.slice(0,-2)}else r=arguments[o];i.push(r)}b(e+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var T,S={};function A(e,t){null!=a.deprecationHandler&&a.deprecationHandler(e,t),S[e]||(b(t),S[e]=!0)}function x(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function C(e){var t,n;for(n in e)u(e,n)&&(t=e[n],x(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 E(e,t){var n,r=f({},e);for(n in t)u(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)u(e,n)&&!u(t,n)&&i(e[n])&&(r[n]=f({},r[n]));return r}function j(e){null!=e&&this.set(e)}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)u(e,t)&&n.push(t);return n};var O={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function H(e,t,n){var r=this._calendar[e]||this._calendar["sameElse"];return x(r)?r.call(t,n):r}function N(e,t,n){var r=""+Math.abs(e),a=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var P=/(\[[^\[]*\])|(\\)?([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,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},F={};function B(e,t,n,r){var a=r;"string"===typeof r&&(a=function(){return this[r]()}),e&&(F[e]=a),t&&(F[t[0]]=function(){return N(a.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function W(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function V(e){var t,n,r=e.match(P);for(t=0,n=r.length;t<n;t++)F[r[t]]?r[t]=F[r[t]]:r[t]=W(r[t]);return function(t){var a,o="";for(a=0;a<n;a++)o+=x(r[a])?r[a].call(t,e):r[a];return o}}function z(e,t){return e.isValid()?(t=U(t,e.localeData()),R[t]=R[t]||V(t),R[t](e)):e.localeData().invalidDate()}function U(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}I.lastIndex=0;while(n>=0&&I.test(e))e=e.replace(I,r),I.lastIndex=0,n-=1;return e}var q={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 J(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(P).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var G="Invalid date";function $(){return this._invalidDate}var K="%d",Z=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var Q={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 ee(e,t,n,r){var a=this._relativeTime[n];return x(a)?a(e,t,n,r):a.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return x(n)?n(t):n.replace(/%s/i,t)}var ne={};function re(e,t){var n=e.toLowerCase();ne[n]=ne[n+"s"]=ne[t]=e}function ae(e){return"string"===typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function oe(e){var t,n,r={};for(n in e)u(e,n)&&(t=ae(n),t&&(r[t]=e[n]));return r}var se={};function ie(e,t){se[e]=t}function ue(e){var t,n=[];for(t in e)u(e,t)&&n.push({unit:t,priority:se[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function le(e){return e%4===0&&e%100!==0||e%400===0}function de(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ce(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=de(t)),n}function me(e,t){return function(n){return null!=n?(fe(this,e,n),a.updateOffset(this,t),this):he(this,e)}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function fe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&le(e.year())&&1===e.month()&&29===e.date()?(n=ce(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),et(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function _e(e){return e=ae(e),x(this[e])?this[e]():this}function pe(e,t){if("object"===typeof e){e=oe(e);var n,r=ue(e),a=r.length;for(n=0;n<a;n++)this[r[n].unit](e[r[n].unit])}else if(e=ae(e),x(this[e]))return this[e](t);return this}var ye,ge=/\d/,Me=/\d\d/,ve=/\d{3}/,Le=/\d{4}/,we=/[+-]?\d{6}/,ke=/\d\d?/,Ye=/\d\d\d\d?/,be=/\d\d\d\d\d\d?/,De=/\d{1,3}/,Te=/\d{1,4}/,Se=/[+-]?\d{1,6}/,Ae=/\d+/,xe=/[+-]?\d+/,Ce=/Z|[+-]\d\d:?\d\d/gi,Ee=/Z|[+-]\d\d(?::?\d\d)?/gi,je=/[+-]?\d+(\.\d{1,3})?/,Oe=/[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;function He(e,t,n){ye[e]=x(t)?t:function(e,r){return e&&n?n:t}}function Ne(e,t){return u(ye,e)?ye[e](t._strict,t._locale):new RegExp(Pe(e))}function Pe(e){return Ie(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,a){return t||n||r||a})))}function Ie(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ye={};var Re={};function Fe(e,t){var n,r,a=t;for("string"===typeof e&&(e=[e]),c(t)&&(a=function(e,n){n[t]=ce(e)}),r=e.length,n=0;n<r;n++)Re[e[n]]=a}function Be(e,t){Fe(e,(function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)}))}function We(e,t,n){null!=t&&u(Re,e)&&Re[e](t,n._a,n,e)}var Ve,ze=0,Ue=1,qe=2,Je=3,Ge=4,$e=5,Ke=6,Ze=7,Xe=8;function Qe(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Qe(t,12);return e+=(t-n)/12,1===n?le(e)?29:28:31-n%7%2}Ve=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},B("M",["MM",2],"Mo",(function(){return this.month()+1})),B("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),B("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),re("month","M"),ie("month",8),He("M",ke),He("MM",ke,Me),He("MMM",(function(e,t){return t.monthsShortRegex(e)})),He("MMMM",(function(e,t){return t.monthsRegex(e)})),Fe(["M","MM"],(function(e,t){t[Ue]=ce(e)-1})),Fe(["MMM","MMMM"],(function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);null!=a?t[Ue]=a:y(n).invalidMonth=e}));var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,at=Oe,ot=Oe;function st(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months["standalone"]}function it(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort["standalone"]}function ut(e,t,n){var r,a,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=_([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?(a=Ve.call(this._shortMonthsParse,s),-1!==a?a:null):(a=Ve.call(this._longMonthsParse,s),-1!==a?a:null):"MMM"===t?(a=Ve.call(this._shortMonthsParse,s),-1!==a?a:(a=Ve.call(this._longMonthsParse,s),-1!==a?a:null)):(a=Ve.call(this._longMonthsParse,s),-1!==a?a:(a=Ve.call(this._shortMonthsParse,s),-1!==a?a:null))}function lt(e,t,n){var r,a,o;if(this._monthsParseExact)return ut.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=_([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function dt(e,t){var n;if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=ce(t);else if(t=e.localeData().monthsParse(t),!c(t))return e;return n=Math.min(e.date(),et(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ct(e){return null!=e?(dt(this,e),a.updateOffset(this,!0),this):he(this,"Month")}function mt(){return et(this.year(),this.month())}function ht(e){return this._monthsParseExact?(u(this,"_monthsRegex")||_t.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=at),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ft(e){return this._monthsParseExact?(u(this,"_monthsRegex")||_t.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=ot),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function _t(){function e(e,t){return t.length-e.length}var t,n,r=[],a=[],o=[];for(t=0;t<12;t++)n=_([2e3,t]),r.push(this.monthsShort(n,"")),a.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),a.sort(e),o.sort(e),t=0;t<12;t++)r[t]=Ie(r[t]),a[t]=Ie(a[t]);for(t=0;t<24;t++)o[t]=Ie(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function pt(e){return le(e)?366:365}B("Y",0,0,(function(){var e=this.year();return e<=9999?N(e,4):"+"+e})),B(0,["YY",2],0,(function(){return this.year()%100})),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),re("year","y"),ie("year",1),He("Y",xe),He("YY",ke,Me),He("YYYY",Te,Le),He("YYYYY",Se,we),He("YYYYYY",Se,we),Fe(["YYYYY","YYYYYY"],ze),Fe("YYYY",(function(e,t){t[ze]=2===e.length?a.parseTwoDigitYear(e):ce(e)})),Fe("YY",(function(e,t){t[ze]=a.parseTwoDigitYear(e)})),Fe("Y",(function(e,t){t[ze]=parseInt(e,10)})),a.parseTwoDigitYear=function(e){return ce(e)+(ce(e)>68?1900:2e3)};var yt=me("FullYear",!0);function gt(){return le(this.year())}function Mt(e,t,n,r,a,o,s){var i;return e<100&&e>=0?(i=new Date(e+400,t,n,r,a,o,s),isFinite(i.getFullYear())&&i.setFullYear(e)):i=new Date(e,t,n,r,a,o,s),i}function vt(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 Lt(e,t,n){var r=7+t-n,a=(7+vt(e,0,r).getUTCDay()-t)%7;return-a+r-1}function wt(e,t,n,r,a){var o,s,i=(7+n-r)%7,u=Lt(e,r,a),l=1+7*(t-1)+i+u;return l<=0?(o=e-1,s=pt(o)+l):l>pt(e)?(o=e+1,s=l-pt(e)):(o=e,s=l),{year:o,dayOfYear:s}}function kt(e,t,n){var r,a,o=Lt(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?(a=e.year()-1,r=s+Yt(a,t,n)):s>Yt(e.year(),t,n)?(r=s-Yt(e.year(),t,n),a=e.year()+1):(a=e.year(),r=s),{week:r,year:a}}function Yt(e,t,n){var r=Lt(e,t,n),a=Lt(e+1,t,n);return(pt(e)-r+a)/7}function bt(e){return kt(e,this._week.dow,this._week.doy).week}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),re("week","w"),re("isoWeek","W"),ie("week",5),ie("isoWeek",5),He("w",ke),He("ww",ke,Me),He("W",ke),He("WW",ke,Me),Be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ce(e)}));var Dt={dow:0,doy:6};function Tt(){return this._week.dow}function St(){return this._week.doy}function At(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function xt(e){var t=kt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Ct(e,t){return"string"!==typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"===typeof e?e:null):parseInt(e,10)}function Et(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function jt(e,t){return e.slice(t,7).concat(e.slice(0,t))}B("d",0,"do","day"),B("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),B("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),B("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),re("day","d"),re("weekday","e"),re("isoWeekday","E"),ie("day",11),ie("weekday",11),ie("isoWeekday",11),He("d",ke),He("e",ke),He("E",ke),He("dd",(function(e,t){return t.weekdaysMinRegex(e)})),He("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),He("dddd",(function(e,t){return t.weekdaysRegex(e)})),Be(["dd","ddd","dddd"],(function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:y(n).invalidWeekday=e})),Be(["d","e","E"],(function(e,t,n,r){t[r]=ce(e)}));var Ot="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ht="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Nt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Pt=Oe,It=Oe,Rt=Oe;function Ft(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?jt(n,this._week.dow):e?n[e.day()]:n}function Bt(e){return!0===e?jt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Wt(e){return!0===e?jt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Vt(e,t,n){var r,a,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=_([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(a=Ve.call(this._weekdaysParse,s),-1!==a?a:null):"ddd"===t?(a=Ve.call(this._shortWeekdaysParse,s),-1!==a?a:null):(a=Ve.call(this._minWeekdaysParse,s),-1!==a?a:null):"dddd"===t?(a=Ve.call(this._weekdaysParse,s),-1!==a?a:(a=Ve.call(this._shortWeekdaysParse,s),-1!==a?a:(a=Ve.call(this._minWeekdaysParse,s),-1!==a?a:null))):"ddd"===t?(a=Ve.call(this._shortWeekdaysParse,s),-1!==a?a:(a=Ve.call(this._weekdaysParse,s),-1!==a?a:(a=Ve.call(this._minWeekdaysParse,s),-1!==a?a:null))):(a=Ve.call(this._minWeekdaysParse,s),-1!==a?a:(a=Ve.call(this._weekdaysParse,s),-1!==a?a:(a=Ve.call(this._shortWeekdaysParse,s),-1!==a?a:null)))}function zt(e,t,n){var r,a,o;if(this._weekdaysParseExact)return Vt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=_([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ut(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ct(e,this.localeData()),this.add(e-t,"d")):t}function qt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Jt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Et(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Gt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Pt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function $t(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=It),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Rt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Zt(){function e(e,t){return t.length-e.length}var t,n,r,a,o,s=[],i=[],u=[],l=[];for(t=0;t<7;t++)n=_([2e3,1]).day(t),r=Ie(this.weekdaysMin(n,"")),a=Ie(this.weekdaysShort(n,"")),o=Ie(this.weekdays(n,"")),s.push(r),i.push(a),u.push(o),l.push(r),l.push(a),l.push(o);s.sort(e),i.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function en(e,t){B(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,Xt),B("k",["kk",2],0,Qt),B("hmm",0,0,(function(){return""+Xt.apply(this)+N(this.minutes(),2)})),B("hmmss",0,0,(function(){return""+Xt.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)})),B("Hmm",0,0,(function(){return""+this.hours()+N(this.minutes(),2)})),B("Hmmss",0,0,(function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)})),en("a",!0),en("A",!1),re("hour","h"),ie("hour",13),He("a",tn),He("A",tn),He("H",ke),He("h",ke),He("k",ke),He("HH",ke,Me),He("hh",ke,Me),He("kk",ke,Me),He("hmm",Ye),He("hmmss",be),He("Hmm",Ye),He("Hmmss",be),Fe(["H","HH"],Je),Fe(["k","kk"],(function(e,t,n){var r=ce(e);t[Je]=24===r?0:r})),Fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Fe(["h","hh"],(function(e,t,n){t[Je]=ce(e),y(n).bigHour=!0})),Fe("hmm",(function(e,t,n){var r=e.length-2;t[Je]=ce(e.substr(0,r)),t[Ge]=ce(e.substr(r)),y(n).bigHour=!0})),Fe("hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[Je]=ce(e.substr(0,r)),t[Ge]=ce(e.substr(r,2)),t[$e]=ce(e.substr(a)),y(n).bigHour=!0})),Fe("Hmm",(function(e,t,n){var r=e.length-2;t[Je]=ce(e.substr(0,r)),t[Ge]=ce(e.substr(r))})),Fe("Hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[Je]=ce(e.substr(0,r)),t[Ge]=ce(e.substr(r,2)),t[$e]=ce(e.substr(a))}));var rn=/[ap]\.?m?\.?/i,an=me("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var sn,un={calendar:O,longDateFormat:q,invalidDate:G,ordinal:K,dayOfMonthOrdinalParse:Z,relativeTime:Q,months:tt,monthsShort:nt,week:Dt,weekdays:Ot,weekdaysMin:Nt,weekdaysShort:Ht,meridiemParse:rn},ln={},dn={};function cn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function mn(e){return e?e.toLowerCase().replace("_","-"):e}function hn(e){var t,n,r,a,o=0;while(o<e.length){a=mn(e[o]).split("-"),t=a.length,n=mn(e[o+1]),n=n?n.split("-"):null;while(t>0){if(r=_n(a.slice(0,t).join("-")),r)return r;if(n&&n.length>=t&&cn(a,n)>=t-1)break;t--}o++}return sn}function fn(e){return null!=e.match("^[^/\\\\]*$")}function _n(t){var r=null;if(void 0===ln[t]&&e&&e.exports&&fn(t))try{r=sn._abbr,void 0,n(6700)("./"+t),pn(r)}catch(a){ln[t]=null}return ln[t]}function pn(e,t){var n;return e&&(n=d(t)?Mn(e):yn(e,t),n?sn=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),sn._abbr}function yn(e,t){if(null!==t){var n,r=un;if(t.abbr=e,null!=ln[e])A("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=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])r=ln[t.parentLocale]._config;else{if(n=_n(t.parentLocale),null==n)return dn[t.parentLocale]||(dn[t.parentLocale]=[]),dn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ln[e]=new j(E(r,t)),dn[e]&&dn[e].forEach((function(e){yn(e.name,e.config)})),pn(e),ln[e]}return delete ln[e],null}function gn(e,t){if(null!=t){var n,r,a=un;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(E(ln[e]._config,t)):(r=_n(e),null!=r&&(a=r._config),t=E(a,t),null==r&&(t.abbr=e),n=new j(t),n.parentLocale=ln[e],ln[e]=n),pn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===pn()&&pn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}function Mn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return sn;if(!s(e)){if(t=_n(e),t)return t;e=[e]}return hn(e)}function vn(){return T(ln)}function Ln(e){var t,n=e._a;return n&&-2===y(e).overflow&&(t=n[Ue]<0||n[Ue]>11?Ue:n[qe]<1||n[qe]>et(n[ze],n[Ue])?qe:n[Je]<0||n[Je]>24||24===n[Je]&&(0!==n[Ge]||0!==n[$e]||0!==n[Ke])?Je:n[Ge]<0||n[Ge]>59?Ge:n[$e]<0||n[$e]>59?$e:n[Ke]<0||n[Ke]>999?Ke:-1,y(e)._overflowDayOfYear&&(t<ze||t>qe)&&(t=qe),y(e)._overflowWeeks&&-1===t&&(t=Ze),y(e)._overflowWeekday&&-1===t&&(t=Xe),y(e).overflow=t),e}var wn=/^\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)?)?$/,kn=/^\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)?)?$/,Yn=/Z|[+-]\d\d(?::?\d\d)?/,bn=[["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]],Dn=[["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/]],Tn=/^\/?Date\((-?\d+)/i,Sn=/^(?:(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}))$/,An={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xn(e){var t,n,r,a,o,s,i=e._i,u=wn.exec(i)||kn.exec(i),l=bn.length,d=Dn.length;if(u){for(y(e).iso=!0,t=0,n=l;t<n;t++)if(bn[t][1].exec(u[1])){a=bn[t][0],r=!1!==bn[t][2];break}if(null==a)return void(e._isValid=!1);if(u[3]){for(t=0,n=d;t<n;t++)if(Dn[t][1].exec(u[3])){o=(u[2]||" ")+Dn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!Yn.exec(u[4]))return void(e._isValid=!1);s="Z"}e._f=a+(o||"")+(s||""),Wn(e)}else e._isValid=!1}function Cn(e,t,n,r,a,o){var s=[En(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return o&&s.push(parseInt(o,10)),s}function En(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function jn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function On(e,t,n){if(e){var r=Ht.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(r!==a)return y(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Hn(e,t,n){if(e)return An[e];if(t)return 0;var r=parseInt(n,10),a=r%100,o=(r-a)/100;return 60*o+a}function Nn(e){var t,n=Sn.exec(jn(e._i));if(n){if(t=Cn(n[4],n[3],n[2],n[5],n[6],n[7]),!On(n[1],t,e))return;e._a=t,e._tzm=Hn(n[8],n[9],n[10]),e._d=vt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}function Pn(e){var t=Tn.exec(e._i);null===t?(xn(e),!1===e._isValid&&(delete e._isValid,Nn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:a.createFromInputFallback(e)))):e._d=new Date(+t[1])}function In(e,t,n){return null!=e?e:null!=t?t:n}function Rn(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Fn(e){var t,n,r,a,o,s=[];if(!e._d){for(r=Rn(e),e._w&&null==e._a[qe]&&null==e._a[Ue]&&Bn(e),null!=e._dayOfYear&&(o=In(e._a[ze],r[ze]),(e._dayOfYear>pt(o)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),n=vt(o,0,e._dayOfYear),e._a[Ue]=n.getUTCMonth(),e._a[qe]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Je]&&0===e._a[Ge]&&0===e._a[$e]&&0===e._a[Ke]&&(e._nextDay=!0,e._a[Je]=0),e._d=(e._useUTC?vt:Mt).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Je]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==a&&(y(e).weekdayMismatch=!0)}}function Bn(e){var t,n,r,a,o,s,i,u,l;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(o=1,s=4,n=In(t.GG,e._a[ze],kt(Kn(),1,4).year),r=In(t.W,1),a=In(t.E,1),(a<1||a>7)&&(u=!0)):(o=e._locale._week.dow,s=e._locale._week.doy,l=kt(Kn(),o,s),n=In(t.gg,e._a[ze],l.year),r=In(t.w,l.week),null!=t.d?(a=t.d,(a<0||a>6)&&(u=!0)):null!=t.e?(a=t.e+o,(t.e<0||t.e>6)&&(u=!0)):a=o),r<1||r>Yt(n,o,s)?y(e)._overflowWeeks=!0:null!=u?y(e)._overflowWeekday=!0:(i=wt(n,r,a,o,s),e._a[ze]=i.year,e._dayOfYear=i.dayOfYear)}function Wn(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],y(e).empty=!0;var t,n,r,o,s,i,u,l=""+e._i,d=l.length,c=0;for(r=U(e._f,e._locale).match(P)||[],u=r.length,t=0;t<u;t++)o=r[t],n=(l.match(Ne(o,e))||[])[0],n&&(s=l.substr(0,l.indexOf(n)),s.length>0&&y(e).unusedInput.push(s),l=l.slice(l.indexOf(n)+n.length),c+=n.length),F[o]?(n?y(e).empty=!1:y(e).unusedTokens.push(o),We(o,n,e)):e._strict&&!n&&y(e).unusedTokens.push(o);y(e).charsLeftOver=d-c,l.length>0&&y(e).unusedInput.push(l),e._a[Je]<=12&&!0===y(e).bigHour&&e._a[Je]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[Je]=Vn(e._locale,e._a[Je],e._meridiem),i=y(e).era,null!==i&&(e._a[ze]=e._locale.erasConvertYear(i,e._a[ze])),Fn(e),Ln(e)}else Nn(e);else xn(e)}function Vn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function zn(e){var t,n,r,a,o,s,i=!1,u=e._f.length;if(0===u)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<u;a++)o=0,s=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],Wn(t),g(t)&&(s=!0),o+=y(t).charsLeftOver,o+=10*y(t).unusedTokens.length,y(t).score=o,i?o<r&&(r=o,n=t):(null==r||o<r||s)&&(r=o,n=t,s&&(i=!0));f(e,n||t)}function Un(e){if(!e._d){var t=oe(e._i),n=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Fn(e)}}function qn(e){var t=new k(Ln(Jn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Jn(e){var t=e._i,n=e._f;return e._locale=e._locale||Mn(e._l),null===t||void 0===n&&""===t?M({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),Y(t)?new k(Ln(t)):(m(t)?e._d=t:s(n)?zn(e):n?Wn(e):Gn(e),g(e)||(e._d=null),e))}function Gn(e){var t=e._i;d(t)?e._d=new Date(a.now()):m(t)?e._d=new Date(t.valueOf()):"string"===typeof t?Pn(e):s(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),Fn(e)):i(t)?Un(e):c(t)?e._d=new Date(t):a.createFromInputFallback(e)}function $n(e,t,n,r,a){var o={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&l(e)||s(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=a,o._l=n,o._i=e,o._f=t,o._strict=r,qn(o)}function Kn(e,t,n,r){return $n(e,t,n,r,!1)}a.createFromInputFallback=D("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),a.ISO_8601=function(){},a.RFC_2822=function(){};var Zn=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:M()})),Xn=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:M()}));function Qn(e,t){var n,r;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return Kn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function er(){var e=[].slice.call(arguments,0);return Qn("isBefore",e)}function tr(){var e=[].slice.call(arguments,0);return Qn("isAfter",e)}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ar(e){var t,n,r=!1,a=rr.length;for(t in e)if(u(e,t)&&(-1===Ve.call(rr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<a;++n)if(e[rr[n]]){if(r)return!1;parseFloat(e[rr[n]])!==ce(e[rr[n]])&&(r=!0)}return!0}function or(){return this._isValid}function sr(){return Ar(NaN)}function ir(e){var t=oe(e),n=t.year||0,r=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,i=t.hour||0,u=t.minute||0,l=t.second||0,d=t.millisecond||0;this._isValid=ar(t),this._milliseconds=+d+1e3*l+6e4*u+1e3*i*60*60,this._days=+s+7*o,this._months=+a+3*r+12*n,this._data={},this._locale=Mn(),this._bubble()}function ur(e){return e instanceof ir}function lr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function dr(e,t,n){var r,a=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&ce(e[r])!==ce(t[r]))&&s++;return s+o}function cr(e,t){B(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+N(~~(e/60),2)+t+N(~~e%60,2)}))}cr("Z",":"),cr("ZZ",""),He("Z",Ee),He("ZZ",Ee),Fe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=hr(Ee,e)}));var mr=/([\+\-]|\d\d)/gi;function hr(e,t){var n,r,a,o=(t||"").match(e);return null===o?null:(n=o[o.length-1]||[],r=(n+"").match(mr)||["-",0,0],a=60*r[1]+ce(r[2]),0===a?0:"+"===r[0]?a:-a)}function fr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Y(e)||m(e)?e.valueOf():Kn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),a.updateOffset(n,!1),n):Kn(e).local()}function _r(e){return-Math.round(e._d.getTimezoneOffset())}function pr(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(e=hr(Ee,e),null===e)return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=_r(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Or(this,Ar(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:_r(this)}function yr(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function gr(e){return this.utcOffset(0,e)}function Mr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(_r(this),"m")),this}function vr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=hr(Ce,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Lr(e){return!!this.isValid()&&(e=e?Kn(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function wr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function kr(){if(!d(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),t=Jn(t),t._a?(e=t._isUTC?_(t._a):Kn(t._a),this._isDSTShifted=this.isValid()&&dr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Yr(){return!!this.isValid()&&!this._isUTC}function br(){return!!this.isValid()&&this._isUTC}function Dr(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}a.updateOffset=function(){};var Tr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Sr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ar(e,t){var n,r,a,o=e,s=null;return ur(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(s=Tr.exec(e))?(n="-"===s[1]?-1:1,o={y:0,d:ce(s[qe])*n,h:ce(s[Je])*n,m:ce(s[Ge])*n,s:ce(s[$e])*n,ms:ce(lr(1e3*s[Ke]))*n}):(s=Sr.exec(e))?(n="-"===s[1]?-1:1,o={y:xr(s[2],n),M:xr(s[3],n),w:xr(s[4],n),d:xr(s[5],n),h:xr(s[6],n),m:xr(s[7],n),s:xr(s[8],n)}):null==o?o={}:"object"===typeof o&&("from"in o||"to"in o)&&(a=Er(Kn(o.from),Kn(o.to)),o={},o.ms=a.milliseconds,o.M=a.months),r=new ir(o),ur(e)&&u(e,"_locale")&&(r._locale=e._locale),ur(e)&&u(e,"_isValid")&&(r._isValid=e._isValid),r}function xr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Cr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Er(e,t){var n;return e.isValid()&&t.isValid()?(t=fr(t,e),e.isBefore(t)?n=Cr(e,t):(n=Cr(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function jr(e,t){return function(n,r){var a,o;return null===r||isNaN(+r)||(A(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."),o=n,n=r,r=o),a=Ar(n,r),Or(this,a,e),this}}function Or(e,t,n,r){var o=t._milliseconds,s=lr(t._days),i=lr(t._months);e.isValid()&&(r=null==r||r,i&&dt(e,he(e,"Month")+i*n),s&&fe(e,"Date",he(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&a.updateOffset(e,s||i))}Ar.fn=ir.prototype,Ar.invalid=sr;var Hr=jr(1,"add"),Nr=jr(-1,"subtract");function Pr(e){return"string"===typeof e||e instanceof String}function Ir(e){return Y(e)||m(e)||Pr(e)||c(e)||Fr(e)||Rr(e)||null===e||void 0===e}function Rr(e){var t,n,r=i(e)&&!l(e),a=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=o.length;for(t=0;t<s;t+=1)n=o[t],a=a||u(e,n);return r&&a}function Fr(e){var t=s(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&Pr(e)})).length),t&&n}function Br(e){var t,n,r=i(e)&&!l(e),a=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],a=a||u(e,n);return r&&a}function Wr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Vr(e,t){1===arguments.length&&(arguments[0]?Ir(arguments[0])?(e=arguments[0],t=void 0):Br(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Kn(),r=fr(n,this).startOf("day"),o=a.calendarFormat(this,r)||"sameElse",s=t&&(x(t[o])?t[o].call(this,n):t[o]);return this.format(s||this.localeData().calendar(o,this,Kn(n)))}function zr(){return new k(this)}function Ur(e,t){var n=Y(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&(t=ae(t)||"millisecond","millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function qr(e,t){var n=Y(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&(t=ae(t)||"millisecond","millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Jr(e,t,n,r){var a=Y(e)?e:Kn(e),o=Y(t)?t:Kn(t);return!!(this.isValid()&&a.isValid()&&o.isValid())&&(r=r||"()",("("===r[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n)))}function Gr(e,t){var n,r=Y(e)?e:Kn(e);return!(!this.isValid()||!r.isValid())&&(t=ae(t)||"millisecond","millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function $r(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Kr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Zr(e,t,n){var r,a,o;if(!this.isValid())return NaN;if(r=fr(e,this),!r.isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=ae(t),t){case"year":o=Xr(this,r)/12;break;case"month":o=Xr(this,r);break;case"quarter":o=Xr(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-a)/864e5;break;case"week":o=(this-r-a)/6048e5;break;default:o=this-r}return n?o:de(o)}function Xr(e,t){if(e.date()<t.date())return-Xr(t,e);var n,r,a=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(a,"months");return t-o<0?(n=e.clone().add(a-1,"months"),r=(t-o)/(o-n)):(n=e.clone().add(a+1,"months"),r=(t-o)/(n-o)),-(a+r)||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ea(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):x(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ta(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,a="moment",o="";return this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+a+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function na(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=z(this,e);return this.localeData().postformat(t)}function ra(e,t){return this.isValid()&&(Y(e)&&e.isValid()||Kn(e).isValid())?Ar({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function aa(e){return this.from(Kn(),e)}function oa(e,t){return this.isValid()&&(Y(e)&&e.isValid()||Kn(e).isValid())?Ar({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function sa(e){return this.to(Kn(),e)}function ia(e){var t;return void 0===e?this._locale._abbr:(t=Mn(e),null!=t&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ua=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function la(){return this._locale}var da=1e3,ca=60*da,ma=60*ca,ha=3506328*ma;function fa(e,t){return(e%t+t)%t}function _a(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-ha:new Date(e,t,n).valueOf()}function pa(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-ha:Date.UTC(e,t,n)}function ya(e){var t,n;if(e=ae(e),void 0===e||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?pa:_a,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-=fa(t+(this._isUTC?0:this.utcOffset()*ca),ma);break;case"minute":t=this._d.valueOf(),t-=fa(t,ca);break;case"second":t=this._d.valueOf(),t-=fa(t,da);break}return this._d.setTime(t),a.updateOffset(this,!0),this}function ga(e){var t,n;if(e=ae(e),void 0===e||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?pa:_a,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+=ma-fa(t+(this._isUTC?0:this.utcOffset()*ca),ma)-1;break;case"minute":t=this._d.valueOf(),t+=ca-fa(t,ca)-1;break;case"second":t=this._d.valueOf(),t+=da-fa(t,da)-1;break}return this._d.setTime(t),a.updateOffset(this,!0),this}function Ma(){return this._d.valueOf()-6e4*(this._offset||0)}function va(){return Math.floor(this.valueOf()/1e3)}function La(){return new Date(this.valueOf())}function wa(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ka(){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 Ya(){return this.isValid()?this.toISOString():null}function ba(){return g(this)}function Da(){return f({},y(this))}function Ta(){return y(this).overflow}function Sa(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Aa(e,t){var n,r,o,s=this._eras||Mn("en")._eras;for(n=0,r=s.length;n<r;++n){switch(typeof s[n].since){case"string":o=a(s[n].since).startOf("day"),s[n].since=o.valueOf();break}switch(typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":o=a(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf();break}}return s}function xa(e,t,n){var r,a,o,s,i,u=this.eras();for(e=e.toUpperCase(),r=0,a=u.length;r<a;++r)if(o=u[r].name.toUpperCase(),s=u[r].abbr.toUpperCase(),i=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return u[r];break;case"NNNN":if(o===e)return u[r];break;case"NNNNN":if(i===e)return u[r];break}else if([o,s,i].indexOf(e)>=0)return u[r]}function Ca(e,t){var n=e.since<=e.until?1:-1;return void 0===t?a(e.since).year():a(e.since).year()+(t-e.offset)*n}function Ea(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function ja(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Oa(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Ha(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-a(o[e].since).year())*n+o[e].offset;return this.year()}function Na(e){return u(this,"_erasNameRegex")||Va.call(this),e?this._erasNameRegex:this._erasRegex}function Pa(e){return u(this,"_erasAbbrRegex")||Va.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ia(e){return u(this,"_erasNarrowRegex")||Va.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ra(e,t){return t.erasAbbrRegex(e)}function Fa(e,t){return t.erasNameRegex(e)}function Ba(e,t){return t.erasNarrowRegex(e)}function Wa(e,t){return t._eraYearOrdinalRegex||Ae}function Va(){var e,t,n=[],r=[],a=[],o=[],s=this.eras();for(e=0,t=s.length;e<t;++e)r.push(Ie(s[e].name)),n.push(Ie(s[e].abbr)),a.push(Ie(s[e].narrow)),o.push(Ie(s[e].name)),o.push(Ie(s[e].abbr)),o.push(Ie(s[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function za(e,t){B(0,[e,e.length],0,t)}function Ua(e){return Za.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function qa(e){return Za.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ja(){return Yt(this.year(),1,4)}function Ga(){return Yt(this.isoWeekYear(),1,4)}function $a(){var e=this.localeData()._week;return Yt(this.year(),e.dow,e.doy)}function Ka(){var e=this.localeData()._week;return Yt(this.weekYear(),e.dow,e.doy)}function Za(e,t,n,r,a){var o;return null==e?kt(this,r,a).year:(o=Yt(e,r,a),t>o&&(t=o),Xa.call(this,e,t,n,r,a))}function Xa(e,t,n,r,a){var o=wt(e,t,n,r,a),s=vt(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Qa(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}B("N",0,0,"eraAbbr"),B("NN",0,0,"eraAbbr"),B("NNN",0,0,"eraAbbr"),B("NNNN",0,0,"eraName"),B("NNNNN",0,0,"eraNarrow"),B("y",["y",1],"yo","eraYear"),B("y",["yy",2],0,"eraYear"),B("y",["yyy",3],0,"eraYear"),B("y",["yyyy",4],0,"eraYear"),He("N",Ra),He("NN",Ra),He("NNN",Ra),He("NNNN",Fa),He("NNNNN",Ba),Fe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?y(n).era=a:y(n).invalidEra=e})),He("y",Ae),He("yy",Ae),He("yyy",Ae),He("yyyy",Ae),He("yo",Wa),Fe(["y","yy","yyy","yyyy"],ze),Fe(["yo"],(function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ze]=n._locale.eraYearOrdinalParse(e,a):t[ze]=parseInt(e,10)})),B(0,["gg",2],0,(function(){return this.weekYear()%100})),B(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),za("gggg","weekYear"),za("ggggg","weekYear"),za("GGGG","isoWeekYear"),za("GGGGG","isoWeekYear"),re("weekYear","gg"),re("isoWeekYear","GG"),ie("weekYear",1),ie("isoWeekYear",1),He("G",xe),He("g",xe),He("GG",ke,Me),He("gg",ke,Me),He("GGGG",Te,Le),He("gggg",Te,Le),He("GGGGG",Se,we),He("ggggg",Se,we),Be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=ce(e)})),Be(["gg","GG"],(function(e,t,n,r){t[r]=a.parseTwoDigitYear(e)})),B("Q",0,"Qo","quarter"),re("quarter","Q"),ie("quarter",7),He("Q",ge),Fe("Q",(function(e,t){t[Ue]=3*(ce(e)-1)})),B("D",["DD",2],"Do","date"),re("date","D"),ie("date",9),He("D",ke),He("DD",ke,Me),He("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Fe(["D","DD"],qe),Fe("Do",(function(e,t){t[qe]=ce(e.match(ke)[0])}));var eo=me("Date",!0);function to(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}B("DDD",["DDDD",3],"DDDo","dayOfYear"),re("dayOfYear","DDD"),ie("dayOfYear",4),He("DDD",De),He("DDDD",ve),Fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ce(e)})),B("m",["mm",2],0,"minute"),re("minute","m"),ie("minute",14),He("m",ke),He("mm",ke,Me),Fe(["m","mm"],Ge);var no=me("Minutes",!1);B("s",["ss",2],0,"second"),re("second","s"),ie("second",15),He("s",ke),He("ss",ke,Me),Fe(["s","ss"],$e);var ro,ao,oo=me("Seconds",!1);for(B("S",0,0,(function(){return~~(this.millisecond()/100)})),B(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),B(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),B(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),B(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),B(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),B(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),re("millisecond","ms"),ie("millisecond",16),He("S",De,ge),He("SS",De,Me),He("SSS",De,ve),ro="SSSS";ro.length<=9;ro+="S")He(ro,Ae);function so(e,t){t[Ke]=ce(1e3*("0."+e))}for(ro="S";ro.length<=9;ro+="S")Fe(ro,so);function io(){return this._isUTC?"UTC":""}function uo(){return this._isUTC?"Coordinated Universal Time":""}ao=me("Milliseconds",!1),B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var lo=k.prototype;function co(e){return Kn(1e3*e)}function mo(){return Kn.apply(null,arguments).parseZone()}function ho(e){return e}lo.add=Hr,lo.calendar=Vr,lo.clone=zr,lo.diff=Zr,lo.endOf=ga,lo.format=na,lo.from=ra,lo.fromNow=aa,lo.to=oa,lo.toNow=sa,lo.get=_e,lo.invalidAt=Ta,lo.isAfter=Ur,lo.isBefore=qr,lo.isBetween=Jr,lo.isSame=Gr,lo.isSameOrAfter=$r,lo.isSameOrBefore=Kr,lo.isValid=ba,lo.lang=ua,lo.locale=ia,lo.localeData=la,lo.max=Xn,lo.min=Zn,lo.parsingFlags=Da,lo.set=pe,lo.startOf=ya,lo.subtract=Nr,lo.toArray=wa,lo.toObject=ka,lo.toDate=La,lo.toISOString=ea,lo.inspect=ta,"undefined"!==typeof Symbol&&null!=Symbol.for&&(lo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),lo.toJSON=Ya,lo.toString=Qr,lo.unix=va,lo.valueOf=Ma,lo.creationData=Sa,lo.eraName=Ea,lo.eraNarrow=ja,lo.eraAbbr=Oa,lo.eraYear=Ha,lo.year=yt,lo.isLeapYear=gt,lo.weekYear=Ua,lo.isoWeekYear=qa,lo.quarter=lo.quarters=Qa,lo.month=ct,lo.daysInMonth=mt,lo.week=lo.weeks=At,lo.isoWeek=lo.isoWeeks=xt,lo.weeksInYear=$a,lo.weeksInWeekYear=Ka,lo.isoWeeksInYear=Ja,lo.isoWeeksInISOWeekYear=Ga,lo.date=eo,lo.day=lo.days=Ut,lo.weekday=qt,lo.isoWeekday=Jt,lo.dayOfYear=to,lo.hour=lo.hours=an,lo.minute=lo.minutes=no,lo.second=lo.seconds=oo,lo.millisecond=lo.milliseconds=ao,lo.utcOffset=pr,lo.utc=gr,lo.local=Mr,lo.parseZone=vr,lo.hasAlignedHourOffset=Lr,lo.isDST=wr,lo.isLocal=Yr,lo.isUtcOffset=br,lo.isUtc=Dr,lo.isUTC=Dr,lo.zoneAbbr=io,lo.zoneName=uo,lo.dates=D("dates accessor is deprecated. Use date instead.",eo),lo.months=D("months accessor is deprecated. Use month instead",ct),lo.years=D("years accessor is deprecated. Use year instead",yt),lo.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yr),lo.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",kr);var fo=j.prototype;function _o(e,t,n,r){var a=Mn(),o=_().set(r,t);return a[n](o,e)}function po(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return _o(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=_o(e,r,n,"month");return a}function yo(e,t,n,r){"boolean"===typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var a,o=Mn(),s=e?o._week.dow:0,i=[];if(null!=n)return _o(t,(n+s)%7,r,"day");for(a=0;a<7;a++)i[a]=_o(t,(a+s)%7,r,"day");return i}function go(e,t){return po(e,t,"months")}function Mo(e,t){return po(e,t,"monthsShort")}function vo(e,t,n){return yo(e,t,n,"weekdays")}function Lo(e,t,n){return yo(e,t,n,"weekdaysShort")}function wo(e,t,n){return yo(e,t,n,"weekdaysMin")}fo.calendar=H,fo.longDateFormat=J,fo.invalidDate=$,fo.ordinal=X,fo.preparse=ho,fo.postformat=ho,fo.relativeTime=ee,fo.pastFuture=te,fo.set=C,fo.eras=Aa,fo.erasParse=xa,fo.erasConvertYear=Ca,fo.erasAbbrRegex=Pa,fo.erasNameRegex=Na,fo.erasNarrowRegex=Ia,fo.months=st,fo.monthsShort=it,fo.monthsParse=lt,fo.monthsRegex=ft,fo.monthsShortRegex=ht,fo.week=bt,fo.firstDayOfYear=St,fo.firstDayOfWeek=Tt,fo.weekdays=Ft,fo.weekdaysMin=Wt,fo.weekdaysShort=Bt,fo.weekdaysParse=zt,fo.weekdaysRegex=Gt,fo.weekdaysShortRegex=$t,fo.weekdaysMinRegex=Kt,fo.isPM=nn,fo.meridiem=on,pn("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=1===ce(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),a.lang=D("moment.lang is deprecated. Use moment.locale instead.",pn),a.langData=D("moment.langData is deprecated. Use moment.localeData instead.",Mn);var ko=Math.abs;function Yo(){var e=this._data;return this._milliseconds=ko(this._milliseconds),this._days=ko(this._days),this._months=ko(this._months),e.milliseconds=ko(e.milliseconds),e.seconds=ko(e.seconds),e.minutes=ko(e.minutes),e.hours=ko(e.hours),e.months=ko(e.months),e.years=ko(e.years),this}function bo(e,t,n,r){var a=Ar(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Do(e,t){return bo(this,e,t,1)}function To(e,t){return bo(this,e,t,-1)}function So(e){return e<0?Math.floor(e):Math.ceil(e)}function Ao(){var e,t,n,r,a,o=this._milliseconds,s=this._days,i=this._months,u=this._data;return o>=0&&s>=0&&i>=0||o<=0&&s<=0&&i<=0||(o+=864e5*So(Co(i)+s),s=0,i=0),u.milliseconds=o%1e3,e=de(o/1e3),u.seconds=e%60,t=de(e/60),u.minutes=t%60,n=de(t/60),u.hours=n%24,s+=de(n/24),a=de(xo(s)),i+=a,s-=So(Co(a)),r=de(i/12),i%=12,u.days=s,u.months=i,u.years=r,this}function xo(e){return 4800*e/146097}function Co(e){return 146097*e/4800}function Eo(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=ae(e),"month"===e||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+xo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Co(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function jo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function Oo(e){return function(){return this.as(e)}}var Ho=Oo("ms"),No=Oo("s"),Po=Oo("m"),Io=Oo("h"),Ro=Oo("d"),Fo=Oo("w"),Bo=Oo("M"),Wo=Oo("Q"),Vo=Oo("y");function zo(){return Ar(this)}function Uo(e){return e=ae(e),this.isValid()?this[e+"s"]():NaN}function qo(e){return function(){return this.isValid()?this._data[e]:NaN}}var Jo=qo("milliseconds"),Go=qo("seconds"),$o=qo("minutes"),Ko=qo("hours"),Zo=qo("days"),Xo=qo("months"),Qo=qo("years");function es(){return de(this.days()/7)}var ts=Math.round,ns={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function rs(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function as(e,t,n,r){var a=Ar(e).abs(),o=ts(a.as("s")),s=ts(a.as("m")),i=ts(a.as("h")),u=ts(a.as("d")),l=ts(a.as("M")),d=ts(a.as("w")),c=ts(a.as("y")),m=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||s<=1&&["m"]||s<n.m&&["mm",s]||i<=1&&["h"]||i<n.h&&["hh",i]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(m=m||d<=1&&["w"]||d<n.w&&["ww",d]),m=m||l<=1&&["M"]||l<n.M&&["MM",l]||c<=1&&["y"]||["yy",c],m[2]=t,m[3]=+e>0,m[4]=r,rs.apply(null,m)}function os(e){return void 0===e?ts:"function"===typeof e&&(ts=e,!0)}function ss(e,t){return void 0!==ns[e]&&(void 0===t?ns[e]:(ns[e]=t,"s"===e&&(ns.ss=t-1),!0))}function is(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,a=!1,o=ns;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(a=e),"object"===typeof t&&(o=Object.assign({},ns,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=this.localeData(),r=as(this,!a,o,n),a&&(r=n.pastFuture(+this,r)),n.postformat(r)}var us=Math.abs;function ls(e){return(e>0)-(e<0)||+e}function ds(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,o,s,i,u=us(this._milliseconds)/1e3,l=us(this._days),d=us(this._months),c=this.asSeconds();return c?(e=de(u/60),t=de(e/60),u%=60,e%=60,n=de(d/12),d%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",a=c<0?"-":"",o=ls(this._months)!==ls(c)?"-":"",s=ls(this._days)!==ls(c)?"-":"",i=ls(this._milliseconds)!==ls(c)?"-":"",a+"P"+(n?o+n+"Y":"")+(d?o+d+"M":"")+(l?s+l+"D":"")+(t||e||u?"T":"")+(t?i+t+"H":"")+(e?i+e+"M":"")+(u?i+r+"S":"")):"P0D"}var cs=ir.prototype;return cs.isValid=or,cs.abs=Yo,cs.add=Do,cs.subtract=To,cs.as=Eo,cs.asMilliseconds=Ho,cs.asSeconds=No,cs.asMinutes=Po,cs.asHours=Io,cs.asDays=Ro,cs.asWeeks=Fo,cs.asMonths=Bo,cs.asQuarters=Wo,cs.asYears=Vo,cs.valueOf=jo,cs._bubble=Ao,cs.clone=zo,cs.get=Uo,cs.milliseconds=Jo,cs.seconds=Go,cs.minutes=$o,cs.hours=Ko,cs.days=Zo,cs.weeks=es,cs.months=Xo,cs.years=Qo,cs.humanize=is,cs.toISOString=ds,cs.toString=ds,cs.toJSON=ds,cs.locale=ia,cs.localeData=la,cs.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ds),cs.lang=ua,B("X",0,0,"unix"),B("x",0,0,"valueOf"),He("x",xe),He("X",je),Fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Fe("x",(function(e,t,n){n._d=new Date(ce(e))})),
|
|
296
296
|
//! moment.js
|
|
297
|
-
a.version="2.29.4",o(Kn),a.fn=lo,a.min=er,a.max=tr,a.now=nr,a.utc=_,a.unix=co,a.months=go,a.isDate=m,a.locale=pn,a.invalid=M,a.duration=Ar,a.isMoment=Y,a.weekdays=vo,a.parseZone=mo,a.localeData=Mn,a.isDuration=ur,a.monthsShort=Mo,a.weekdaysMin=wo,a.defineLocale=yn,a.updateLocale=gn,a.locales=vn,a.weekdaysShort=Lo,a.normalizeUnits=ae,a.relativeTimeRounding=os,a.relativeTimeThreshold=ss,a.calendarFormat=Wr,a.prototype=lo,a.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"},a}))},631:(e,t,n)=>{var r="function"===typeof Map&&Map.prototype,a=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&a&&"function"===typeof a.get?a.get:null,s=r&&Map.prototype.forEach,i="function"===typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=i&&u&&"function"===typeof u.get?u.get:null,d=i&&Set.prototype.forEach,c="function"===typeof WeakMap&&WeakMap.prototype,m=c?WeakMap.prototype.has:null,h="function"===typeof WeakSet&&WeakSet.prototype,f=h?WeakSet.prototype.has:null,_="function"===typeof WeakRef&&WeakRef.prototype,p=_?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,g=Object.prototype.toString,M=Function.prototype.toString,v=String.prototype.match,L=String.prototype.slice,w=String.prototype.replace,k=String.prototype.toUpperCase,Y=String.prototype.toLowerCase,b=RegExp.prototype.test,D=Array.prototype.concat,T=Array.prototype.join,S=Array.prototype.slice,A=Math.floor,x="function"===typeof BigInt?BigInt.prototype.valueOf:null,C=Object.getOwnPropertySymbols,E="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,j="function"===typeof Symbol&&"object"===typeof Symbol.iterator,O="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===j||"symbol")?Symbol.toStringTag:null,H=Object.prototype.propertyIsEnumerable,N=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function P(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||b.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-A(-e):A(e);if(r!==e){var a=String(r),o=L.call(t,a.length+1);return w.call(a,n,"$&_")+"."+w.call(w.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(t,n,"$&_")}var I=n(4654),R=I.custom,F=K(R)?R:null;function B(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function W(e){return w.call(String(e),/"/g,""")}function V(e){return"[object Array]"===ee(e)&&(!O||!("object"===typeof e&&O in e))}function z(e){return"[object Date]"===ee(e)&&(!O||!("object"===typeof e&&O in e))}function U(e){return"[object RegExp]"===ee(e)&&(!O||!("object"===typeof e&&O in e))}function q(e){return"[object Error]"===ee(e)&&(!O||!("object"===typeof e&&O in e))}function J(e){return"[object String]"===ee(e)&&(!O||!("object"===typeof e&&O in e))}function G(e){return"[object Number]"===ee(e)&&(!O||!("object"===typeof e&&O in e))}function $(e){return"[object Boolean]"===ee(e)&&(!O||!("object"===typeof e&&O in e))}function K(e){if(j)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!E)return!1;try{return E.call(e),!0}catch(t){}return!1}function Z(e){if(!e||"object"!==typeof e||!x)return!1;try{return x.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,a,i){var u=r||{};if(Q(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Q(u,"maxStringLength")&&("number"===typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!Q(u,"customInspect")||u.customInspect;if("boolean"!==typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Q(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Q(u,"numericSeparator")&&"boolean"!==typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=u.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return le(t,u);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var h=String(t);return m?P(t,h):h}if("bigint"===typeof t){var f=String(t)+"n";return m?P(t,f):f}var _="undefined"===typeof u.depth?5:u.depth;if("undefined"===typeof a&&(a=0),a>=_&&_>0&&"object"===typeof t)return V(t)?"[Array]":"[Object]";var p=_e(u,a);if("undefined"===typeof i)i=[];else if(ne(i,t)>=0)return"[Circular]";function g(t,n,r){if(n&&(i=S.call(i),i.push(n)),r){var o={depth:u.depth};return Q(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),e(t,o,a+1,i)}return e(t,u,a+1,i)}if("function"===typeof t&&!U(t)){var M=te(t),v=ye(t,g);return"[Function"+(M?": "+M:" (anonymous)")+"]"+(v.length>0?" { "+T.call(v,", ")+" }":"")}if(K(t)){var k=j?w.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):E.call(t);return"object"!==typeof t||j?k:ce(k)}if(ue(t)){for(var b="<"+Y.call(String(t.nodeName)),A=t.attributes||[],C=0;C<A.length;C++)b+=" "+A[C].name+"="+B(W(A[C].value),"double",u);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+="</"+Y.call(String(t.nodeName))+">",b}if(V(t)){if(0===t.length)return"[]";var R=ye(t,g);return p&&!fe(R)?"["+pe(R,p)+"]":"[ "+T.call(R,", ")+" ]"}if(q(t)){var X=ye(t,g);return"cause"in Error.prototype||!("cause"in t)||H.call(t,"cause")?0===X.length?"["+String(t)+"]":"{ ["+String(t)+"] "+T.call(X,", ")+" }":"{ ["+String(t)+"] "+T.call(D.call("[cause]: "+g(t.cause),X),", ")+" }"}if("object"===typeof t&&c){if(F&&"function"===typeof t[F]&&I)return I(t,{depth:_-a});if("symbol"!==c&&"function"===typeof t.inspect)return t.inspect()}if(re(t)){var de=[];return s&&s.call(t,(function(e,n){de.push(g(n,t,!0)+" => "+g(e,t))})),he("Map",o.call(t),de,p)}if(se(t)){var ge=[];return d&&d.call(t,(function(e){ge.push(g(e,t))})),he("Set",l.call(t),ge,p)}if(ae(t))return me("WeakMap");if(ie(t))return me("WeakSet");if(oe(t))return me("WeakRef");if(G(t))return ce(g(Number(t)));if(Z(t))return ce(g(x.call(t)));if($(t))return ce(y.call(t));if(J(t))return ce(g(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if(t===n.g)return"{ [object globalThis] }";if(!z(t)&&!U(t)){var Me=ye(t,g),ve=N?N(t)===Object.prototype:t instanceof Object||t.constructor===Object,Le=t instanceof Object?"":"null prototype",we=!ve&&O&&Object(t)===t&&O in t?L.call(ee(t),8,-1):Le?"Object":"",ke=ve||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"",Ye=ke+(we||Le?"["+T.call(D.call([],we||[],Le||[]),": ")+"] ":"");return 0===Me.length?Ye+"{}":p?Ye+"{"+pe(Me,p)+"}":Ye+"{ "+T.call(Me,", ")+" }"}return String(t)};var X=Object.prototype.hasOwnProperty||function(e){return e in this};function Q(e,t){return X.call(e,t)}function ee(e){return g.call(e)}function te(e){if(e.name)return e.name;var t=v.call(M.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ne(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function re(e){if(!o||!e||"object"!==typeof e)return!1;try{o.call(e);try{l.call(e)}catch(t){return!0}return e instanceof Map}catch(n){}return!1}function ae(e){if(!m||!e||"object"!==typeof e)return!1;try{m.call(e,m);try{f.call(e,f)}catch(t){return!0}return e instanceof WeakMap}catch(n){}return!1}function oe(e){if(!p||!e||"object"!==typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}function se(e){if(!l||!e||"object"!==typeof e)return!1;try{l.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}function ie(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{m.call(e,m)}catch(t){return!0}return e instanceof WeakSet}catch(n){}return!1}function ue(e){return!(!e||"object"!==typeof e)&&("undefined"!==typeof HTMLElement&&e instanceof HTMLElement||"string"===typeof e.nodeName&&"function"===typeof e.getAttribute)}function le(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return le(L.call(e,0,t.maxStringLength),t)+r}var a=w.call(w.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,de);return B(a,"single",t)}function de(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+k.call(t.toString(16))}function ce(e){return"Object("+e+")"}function me(e){return e+" { ? }"}function he(e,t,n,r){var a=r?pe(n,r):T.call(n,", ");return e+" ("+t+") {"+a+"}"}function fe(e){for(var t=0;t<e.length;t++)if(ne(e[t],"\n")>=0)return!1;return!0}function _e(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=T.call(Array(e.indent+1)," ")}return{base:n,prev:T.call(Array(t+1),n)}}function pe(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+T.call(e,","+n)+"\n"+t.prev}function ye(e,t){var n=V(e),r=[];if(n){r.length=e.length;for(var a=0;a<e.length;a++)r[a]=Q(e,a)?t(e[a],e):""}var o,s="function"===typeof C?C(e):[];if(j){o={};for(var i=0;i<s.length;i++)o["$"+s[i]]=s[i]}for(var u in e)Q(e,u)&&(n&&String(Number(u))===u&&u<e.length||j&&o["$"+u]instanceof Symbol||(b.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if("function"===typeof C)for(var l=0;l<s.length;l++)H.call(e,s[l])&&r.push("["+t(s[l])+"]: "+t(e[s[l]],e));return r}},7771:(e,t,n)=>{"use strict";var r=n(210),a=n(2296),o=n(1044)(),s=n(7296),i=r("%TypeError%"),u=r("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new i("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||u(t)!==t)throw new i("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,l=!0;if("length"in e&&s){var d=s(e,"length");d&&!d.configurable&&(r=!1),d&&!d.writable&&(l=!1)}return(r||l||!n)&&(o?a(e,"length",t,!0,!0):a(e,"length",t)),e}},7478:(e,t,n)=>{"use strict";var r=n(210),a=n(1924),o=n(631),s=r("%TypeError%"),i=r("%WeakMap%",!0),u=r("%Map%",!0),l=a("WeakMap.prototype.get",!0),d=a("WeakMap.prototype.set",!0),c=a("WeakMap.prototype.has",!0),m=a("Map.prototype.get",!0),h=a("Map.prototype.set",!0),f=a("Map.prototype.has",!0),_=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},p=function(e,t){var n=_(e,t);return n&&n.value},y=function(e,t,n){var r=_(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},g=function(e,t){return!!_(e,t)};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+o(e))},get:function(r){if(i&&r&&("object"===typeof r||"function"===typeof r)){if(e)return l(e,r)}else if(u){if(t)return m(t,r)}else if(n)return p(n,r)},has:function(r){if(i&&r&&("object"===typeof r||"function"===typeof r)){if(e)return c(e,r)}else if(u){if(t)return f(t,r)}else if(n)return g(n,r);return!1},set:function(r,a){i&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new i),d(e,r,a)):u?(t||(t=new u),h(t,r,a)):(n||(n={key:{},next:null}),y(n,r,a))}};return r}},7466:(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{NIL:()=>G,parse:()=>v,stringify:()=>m,v1:()=>g,v3:()=>R,v4:()=>B,v5:()=>J,validate:()=>u,version:()=>K});var a=new Uint8Array(16);function o(){if(!r&&(r="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(a)}const s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function i(e){return"string"===typeof e&&s.test(e)}const u=i;for(var l=[],d=0;d<256;++d)l.push((d+256).toString(16).substr(1));function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase();if(!u(n))throw TypeError("Stringified UUID is invalid");return n}const m=c;var h,f,_=0,p=0;function y(e,t,n){var r=t&&n||0,a=t||new Array(16);e=e||{};var s=e.node||h,i=void 0!==e.clockseq?e.clockseq:f;if(null==s||null==i){var u=e.random||(e.rng||o)();null==s&&(s=h=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==i&&(i=f=16383&(u[6]<<8|u[7]))}var l=void 0!==e.msecs?e.msecs:Date.now(),d=void 0!==e.nsecs?e.nsecs:p+1,c=l-_+(d-p)/1e4;if(c<0&&void 0===e.clockseq&&(i=i+1&16383),(c<0||l>_)&&void 0===e.nsecs&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_=l,p=d,f=i,l+=122192928e5;var y=(1e4*(268435455&l)+d)%4294967296;a[r++]=y>>>24&255,a[r++]=y>>>16&255,a[r++]=y>>>8&255,a[r++]=255&y;var g=l/4294967296*1e4&268435455;a[r++]=g>>>8&255,a[r++]=255&g,a[r++]=g>>>24&15|16,a[r++]=g>>>16&255,a[r++]=i>>>8|128,a[r++]=255&i;for(var M=0;M<6;++M)a[r+M]=s[M];return t||m(a)}const g=y;function M(e){if(!u(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}const v=M;function L(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var w="6ba7b810-9dad-11d1-80b4-00c04fd430c8",k="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Y(e,t,n){function r(e,r,a,o){if("string"===typeof e&&(e=L(e)),"string"===typeof r&&(r=v(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),s=n(s),s[6]=15&s[6]|t,s[8]=63&s[8]|128,a){o=o||0;for(var i=0;i<16;++i)a[o+i]=s[i];return a}return m(s)}try{r.name=e}catch(a){}return r.DNS=w,r.URL=k,r}function b(e){if("string"===typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return D(S(A(e),8*e.length))}function D(e){for(var t=[],n=32*e.length,r="0123456789abcdef",a=0;a<n;a+=8){var o=e[a>>5]>>>a%32&255,s=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(s)}return t}function T(e){return 14+(e+64>>>9<<4)+1}function S(e,t){e[t>>5]|=128<<t%32,e[T(t)-1]=t;for(var n=1732584193,r=-271733879,a=-1732584194,o=271733878,s=0;s<e.length;s+=16){var i=n,u=r,l=a,d=o;n=j(n,r,a,o,e[s],7,-680876936),o=j(o,n,r,a,e[s+1],12,-389564586),a=j(a,o,n,r,e[s+2],17,606105819),r=j(r,a,o,n,e[s+3],22,-1044525330),n=j(n,r,a,o,e[s+4],7,-176418897),o=j(o,n,r,a,e[s+5],12,1200080426),a=j(a,o,n,r,e[s+6],17,-1473231341),r=j(r,a,o,n,e[s+7],22,-45705983),n=j(n,r,a,o,e[s+8],7,1770035416),o=j(o,n,r,a,e[s+9],12,-1958414417),a=j(a,o,n,r,e[s+10],17,-42063),r=j(r,a,o,n,e[s+11],22,-1990404162),n=j(n,r,a,o,e[s+12],7,1804603682),o=j(o,n,r,a,e[s+13],12,-40341101),a=j(a,o,n,r,e[s+14],17,-1502002290),r=j(r,a,o,n,e[s+15],22,1236535329),n=O(n,r,a,o,e[s+1],5,-165796510),o=O(o,n,r,a,e[s+6],9,-1069501632),a=O(a,o,n,r,e[s+11],14,643717713),r=O(r,a,o,n,e[s],20,-373897302),n=O(n,r,a,o,e[s+5],5,-701558691),o=O(o,n,r,a,e[s+10],9,38016083),a=O(a,o,n,r,e[s+15],14,-660478335),r=O(r,a,o,n,e[s+4],20,-405537848),n=O(n,r,a,o,e[s+9],5,568446438),o=O(o,n,r,a,e[s+14],9,-1019803690),a=O(a,o,n,r,e[s+3],14,-187363961),r=O(r,a,o,n,e[s+8],20,1163531501),n=O(n,r,a,o,e[s+13],5,-1444681467),o=O(o,n,r,a,e[s+2],9,-51403784),a=O(a,o,n,r,e[s+7],14,1735328473),r=O(r,a,o,n,e[s+12],20,-1926607734),n=H(n,r,a,o,e[s+5],4,-378558),o=H(o,n,r,a,e[s+8],11,-2022574463),a=H(a,o,n,r,e[s+11],16,1839030562),r=H(r,a,o,n,e[s+14],23,-35309556),n=H(n,r,a,o,e[s+1],4,-1530992060),o=H(o,n,r,a,e[s+4],11,1272893353),a=H(a,o,n,r,e[s+7],16,-155497632),r=H(r,a,o,n,e[s+10],23,-1094730640),n=H(n,r,a,o,e[s+13],4,681279174),o=H(o,n,r,a,e[s],11,-358537222),a=H(a,o,n,r,e[s+3],16,-722521979),r=H(r,a,o,n,e[s+6],23,76029189),n=H(n,r,a,o,e[s+9],4,-640364487),o=H(o,n,r,a,e[s+12],11,-421815835),a=H(a,o,n,r,e[s+15],16,530742520),r=H(r,a,o,n,e[s+2],23,-995338651),n=N(n,r,a,o,e[s],6,-198630844),o=N(o,n,r,a,e[s+7],10,1126891415),a=N(a,o,n,r,e[s+14],15,-1416354905),r=N(r,a,o,n,e[s+5],21,-57434055),n=N(n,r,a,o,e[s+12],6,1700485571),o=N(o,n,r,a,e[s+3],10,-1894986606),a=N(a,o,n,r,e[s+10],15,-1051523),r=N(r,a,o,n,e[s+1],21,-2054922799),n=N(n,r,a,o,e[s+8],6,1873313359),o=N(o,n,r,a,e[s+15],10,-30611744),a=N(a,o,n,r,e[s+6],15,-1560198380),r=N(r,a,o,n,e[s+13],21,1309151649),n=N(n,r,a,o,e[s+4],6,-145523070),o=N(o,n,r,a,e[s+11],10,-1120210379),a=N(a,o,n,r,e[s+2],15,718787259),r=N(r,a,o,n,e[s+9],21,-343485551),n=x(n,i),r=x(r,u),a=x(a,l),o=x(o,d)}return[n,r,a,o]}function A(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(T(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}function x(e,t){var n=(65535&e)+(65535&t),r=(e>>16)+(t>>16)+(n>>16);return r<<16|65535&n}function C(e,t){return e<<t|e>>>32-t}function E(e,t,n,r,a,o){return x(C(x(x(t,e),x(r,o)),a),n)}function j(e,t,n,r,a,o,s){return E(t&n|~t&r,e,t,a,o,s)}function O(e,t,n,r,a,o,s){return E(t&r|n&~r,e,t,a,o,s)}function H(e,t,n,r,a,o,s){return E(t^n^r,e,t,a,o,s)}function N(e,t,n,r,a,o,s){return E(n^(t|~r),e,t,a,o,s)}const P=b;var I=Y("v3",48,P);const R=I;function F(e,t,n){e=e||{};var r=e.random||(e.rng||o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=r[a];return t}return m(r)}const B=F;function W(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function V(e,t){return e<<t|e>>>32-t}function z(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"===typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var a=0;a<r.length;++a)e.push(r.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,s=Math.ceil(o/16),i=new Array(s),u=0;u<s;++u){for(var l=new Uint32Array(16),d=0;d<16;++d)l[d]=e[64*u+4*d]<<24|e[64*u+4*d+1]<<16|e[64*u+4*d+2]<<8|e[64*u+4*d+3];i[u]=l}i[s-1][14]=8*(e.length-1)/Math.pow(2,32),i[s-1][14]=Math.floor(i[s-1][14]),i[s-1][15]=8*(e.length-1)&4294967295;for(var c=0;c<s;++c){for(var m=new Uint32Array(80),h=0;h<16;++h)m[h]=i[c][h];for(var f=16;f<80;++f)m[f]=V(m[f-3]^m[f-8]^m[f-14]^m[f-16],1);for(var _=n[0],p=n[1],y=n[2],g=n[3],M=n[4],v=0;v<80;++v){var L=Math.floor(v/20),w=V(_,5)+W(L,p,y,g)+M+t[L]+m[v]>>>0;M=g,g=y,y=V(p,30)>>>0,p=_,_=w}n[0]=n[0]+_>>>0,n[1]=n[1]+p>>>0,n[2]=n[2]+y>>>0,n[3]=n[3]+g>>>0,n[4]=n[4]+M>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}const U=z;var q=Y("v5",80,U);const J=q,G="00000000-0000-0000-0000-000000000000";function $(e){if(!u(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const K=$},3744:(e,t)=>{"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n}},7203:t=>{"use strict";t.exports=e},4654:()=>{}},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e)})(),(()=>{r.p=""})();var a={};return(()=>{"use strict";if(r.r(a),r.d(a,{default:()=>Os,ermAttach:()=>xs,ermForm:()=>ce,ermList:()=>H}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(r.p=t[1])}var n=r(7203),o=r(8222);const s="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wgARCAGXAcsDASIAAhEBAxEB/8QAGgABAQADAQEAAAAAAAAAAAAAAAUCAwQBBv/EABQBAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhADEAAAAfuwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADw89w9M3noAAAA80YHW5+gAAAAAAAAAAAAAAAAAAAAY5DTll6eZAAAABo19Y0bwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE46vNGwzYDNgM2AzYDNgM2AzYDNgM2AzYDNgM9mjgLQAAAAAAAAAAAAABNO+Xt9KGU0Uk0Uk0Uk0Uk0Uk0Uk0Uk0Uk0Uk0Uk0UspeguSK8gpgAAAAAAAAAAAAASa0ktAAAAAAAAAAAAR7EcsSK8gpgAAAAAAAAAAAAASa0ktAAPJxSxm5HfnNxKiXTPQAAAAAI9iOWJFeQUwAADhMt8XaWmncAAAAAAc+GzA8ejydSnF70Hnssw7fOUe0RO8q+HNxbOg6cpNYAAAAAR7EcsSK8gpgAAAn9TMzAAAAAAAAAk1pJaBjO3+nJS4fTHu2cxtcQ7pnViY9mnSUQAAAAI9iOWJFeQUwAAAAAAAAAAAAAJNaSWgcGzPUY+a+828XbxHIBo78Dk11/DjWBzdIAAAI9iOWJFeQUwADWbHPuMgAAAADSe7OLM63noAAk1pJaAk1uM0d3LoKzh7T15xnTO86DRT4u8AAAAAR7EcsSK8gpgAeejTuAAAAAB56Ofd76AAGOBtk1pJaABw6qes087E96Ob0c9bafPXueKfSubWdoAAAEexHLEivIKYAAAAAAAAAAAAMMNwSa0ktAAAAAAato+U5ezjKf0HxnWfVNG8AAR7EQtyMRVAAAAAAAAAAAAAAkV+EpI3pYRxYRxYRxYRxYRxYRxV+f6xCdnIbPofmvT7N871FhHFiO5C+kislCq4ewyShVStx3gAAAAAAAAAAAAAAAAAAcPcPk9f1ME0fVcvYAAAAAAAeegAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAT6AAAAAAAAAAA5+jkPOnTkbwAAAAAAAAAAAAAAa5tX0+dpaawAAAAAAAAAA89GvP0AAAAAAAAAAAAAAAAc3SAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH//EACoQAAEEAQMDAwUBAQEAAAAAAAMAAQIEFBESEzA0QBAgMyEiIzFQcIAy/9oACAEBAAEFAv8At530/tSf6M/06RJaLhZDk7/y9NU7aNtZaadIkdW5foOLs38t/wBf5fzDZc4lziXOJc4lziXOJc4lziXOJc4lziXOJc4lziXOJc4lziXOJc4lziXOJc4lziXOJRnGX8C3J4ijTHtwwrDCsMKwwrDCsMKwwrDCsMKwwrDCsMKwwrDCsMKwwrDCsMKwwrDCsMKwwrDCsMKKPGJ526KuOzwacdN8Vvit8Vvit8Vvit8Vvit8Vvit8Vvit8Vvit8Vvit8Vvit8Vvit8VvitdfS951qbsmoxWCNYI1gjWCNYI1gjWCNYI1gjWCNYI1gjWCNYI1gjWCNYI1gjWCNYI1gjWCNYI1gjTM9awr3nWvl8mz3Sveda+XybPdK951r5ffuZluj4Nnule6NibjFB9w/DtfL7P0pWdZcJiLCGsIa4CwUbLwdn1bq2e6V7oGNMcjGmQcLBYwHJ5w6sjDg+SJZIlkiWSJHJGZfV30Z3lal+MEOYpVwGkuAzLlOJM4zw+6rKMmk3Us90r3RufAL4etII5PjiWOJY4ljiVgcYE9Tu5SSlCuIYnNL6RaMmk3oUDxcZInGLUBupZ7pXuiQbFhFtsfDtfL6SfbGq2qf89qUmhGMHOtYQXJBckE04yUm4LNqOoxy3j6dnule8618vpafQA/sr02/Ef7yooIGWEJYQkOtAUrbagb769N9QdOz3Sveda+X0t9v+61Pt371GFMixCrFKsUqLXJAca5HGAEyQxCrEKgjkOPQs90r3nWvl9Dx3Bry316v2SeDPJGLMayjLKMhHJOdt/oR+OvWjtB07PdK97pPozx0Zvq3UnLa3QtfL6i/DYsReMhzYkfZKTQiFnKU78hW6lnule9z/VbOrLcp79G5E3691r5fU4uSADcjSFMMh2oTWvpOzCC452JFLEMK4trdSz3SveKX/y3699r5fYYG942Xg7jEZYbLDZ1EIgqdnV5VJyiGzITxk0m6dnule8t30Zpelr5fbKEZs9TRcdllx2nTVNVEcYehQRKzOSrMZoki1oTz6Nnule8uTato7urXy9WcIziWPERV7TwUZNJvfZ7pXvOtfL1jikOfoI8hOMsSx91zXn3W1EJSE8218vWlFpMeq4/WE3g4LMS+6z3Pn2BcjMeyzZFhZFhZFhZFhZFhZFhZFhZFhZFhZFhZFhZFhZFhZFhc9hTGScv16fpRukZsiwsiwsiwsiwpc8i89hc9hc9hc9hCIWUn/XNYXPYXPYQiFlP+OauxFODwkhwck2bRv6xBxJGdacZADxR/wA0nN2fQkVCW6P8ARZTP40/tm5Y6CbbDzpvthlFQyyiUZyTn42yLfwq/df2YCaE/wDoP//EABQRAQAAAAAAAAAAAAAAAAAAAJD/2gAIAQMBAT8BPL//xAAUEQEAAAAAAAAAAAAAAAAAAACQ/9oACAECAQE/ATy//8QAMxAAAgAEAQsDBAICAwAAAAAAAAECAxEyMRASITAzQEFRcZGhICJhEyNQgUJwgrFigJD/2gAIAQEABj8C/wDCRJYsxdeY08V+YTWKLHUbeL/ty9F6L0XovRei9F6L0XovRei9F6L0XovRei9F6L0XovRei9Gh1/AaOIq1bMH3MH3MH3MH3MH3MH3MH3MH3MH3MH3MH3MH3MH3MH3MH3MH3MH3MH3MH3MH3MH3MH3MH3MH3IYoOO/4oho+Ivci5FyLkXIuRci5FyLkXIuRci5FyLkXIuRci5FyLkXLLL679DAtGcaYoi6IuiLoi6IuiLoi6IuiLoi6IuiLoi6IuiLoi6IuiLoi6IuiLoi6IuiLoiGFOsMWSX136VvUnJL679K3qTkl9d+lajEx3GTkl9dTWEhfNbpK9WbKhzme+ZT4RpqcT7cz9MzZ0NPkqtdJyS+uopDLqUil0QkpXAq1TXUcWkuLi4uJea8PRVlFolo5H2oKLmz3TqHtnH3Iarmjmc5ZVa2Tkl9dT+yDpr6uHSWFhYWEvNWL9Ckw/wCR8I+pN/SOSKrL9SVofI/2hyna8NbJyS+upzWJct0lZWyKa8Yin8YBt4Iz5lvCEpVIvh7l8PcookxRK2Iz1jCKLnrJOSX136VliF0HFzZBL4YvIs6p/Lufy7mdDWo/jSdVrZOSX136VlZ/iIXTIs2PNNszbM2zHE5tRP6tEVhmUNszbMpFFnamTkl9d+lZYkLsRynwYouKyLNgzjYmxKRS6LmQy1jEx/CIdZJyS+vrrx3eV6Ipbwi0oU6HhiVXpqxzosOBDJX71snJL6+vHRrfae7UyvRouWBmxXGfKw4wmn2v5y41fwVmaIORRY8EZ8V0Wtk5JfXdlqJXpzoHmxmbOVHzK6H8o9scSPdHEyv+zNlLOZnOL3mZHgVWGsk5JfXfMMkr1e5HsjcJomJm0R9yY4j2qmT55mnAqjNrqpOSX13zTkla6kSHDDFkzY9KKrUSckvrv0rXuuHPLow5FYfXLzceBghRTuG/StfRmdDphy1hZR6IvVK/AJw3Ip9Kv6Nj4Nj4Nj4Nj4Nj4Nj4Nj4Nj4Nj4Nj4Nj4Nj4Nj4Nj4Nj4K/Sa6L0UombHwbHwbHwbHwKY5b0fBsTYmxNiUjl0RoNj4Nj4Nj4KRy6L8RXCIo1kzUJfl6MolU/5P+tVDDiyudUr+BmQvBbuo+BodfwDaVTYsjiUFW+BRy6Ld8PwU381FGuP/AGE//8QALBAAAgEACAYDAAIDAAAAAAAAAAERECExQaGx8PEwQFFhccEgUJGB0XCA4f/aAAgBAQABPyH/AHegSKtcSV1+slIQEQrJ4TltTCZ/cQorbY+rasLkQmJMVxwnWxpQnqemWyNL+sWYCqSX+L21Dl8m5m5m5m5m5m5m5m5m5m5m5m5m5m5m5m5m5m5m5m5m5m5m5m5lg/h9AsprUMqt6ieZIQhCEIQhCEIQhCEIQhCEma0ms5+L+4WyH5HaT1N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1Elhp0Zr1zypmTWjKtxqUahGoRqEahGoRqEahGoRqEahGoRqEahGoRqEahGoRqEahGoRqEahGpQ7rcnRmvXPY/2uaxSzozXPY/2uaxSzozXPY/2uA7UiE6xf3kcUs6M1wZ5Q5SHsbUPlMf7XxbSS3CK+3UuLdEYK9N/I7mH8ltewkof8CJhNdVxsUs6M1wJIF6ksk1sMYZaSJOHWLk/041WcOzOzOzOzH7Kmr/ROaUOZCQytnVvqTc0X6ydAEskEW1jfdF0zLvL0dpE5S/AQ3ynxcUs6M1wbXwMJ48DT6jtv07b9O2/Ttv0R8KrBKKXnVWwJDFRCXUt5/ih22EEhZXWhpNVlg9raXjhK7A7BvX4uKWdGa4MwXE3CUNiRymP9qnsipHraCrwJXf+5VFIG9YiQUyd0uDbhtgYSLsztU2RNoTJ2acTFLOjNc9j/ap8uqP4KZWG1zZK8zBKFAwuHR05n6UmSq+oIrkYxdG6Z4OKWdGa57H+18K7gNPnZVlvq0PZMDRM1zNUxptFdWLazFMVjo4s9zTM0THJluvBxSzozXPY/wBqnwERG9Vhr2SLwP8ALouh7Lkd7+M738ZM75hL/UARXrhEc618TFLOjNfKySpbYeF8V06FWk+Bj/apalDWQcFrzY9hNfV8Xx8JC8KlSnejJRJJJVLiYpZ0Zr5JCGdE+wiKlxFeJCWioqVDqJQm354/2vhXFSsYklwlTTvGetcKifshI1KZK6lVeAFW8qzrP4xQY6srn24uKWdGa5Wx8mG4GP8Aa+NiQvMoSMWSQELoHKgqJdxWn6tyHKe1xB1wd9whvTbiYpZ0Zrm0TMlcOHSjH+18owhiGl0Z4C8I8EiexWCuE0K8qLoj8nhZNryuhWinrcTPBxSzozXN/wANWhLnVijH+1xmqYmS8R2ogfI9BDbKfAxSzozHPY/2uO6JNnVSvmvCYHldPnC//qk1iGYKLnPY/wBrjt6ZTHD/AKSmo8YgXgOvyx6z+gbbhqEJpFfI0mNJjSY0mNJjSY0mNJjSY0mNJjSY0mNJhvVa/oZE7Vg02aahqhNtKcNXinO9WazGsxrMazDPEdhDSTNJM0EzQTPLxQM07SXFSNZjSY0mPLhR9QraeQZozoQA7SKPt4U+GVXF2NC5Wup/jVQEk0oeEQpPoXBVtX7y9fq4Q+wrORckPSna6+fbIhXGiZf4B0Cg+6/lmJiUs+BfQ4l5/dS8Tb/2E//aAAwDAQACAAMAAAAQCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC2CCCCCeKCCCCCCCCCCCCCCCCCCCCCiiCCCCWOCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCGKCCCCCCCCCCCSCCCCCCCCCCCCCCCCoAAAAAAAAAAEoCCCCCCCCCCCCCCCG88888888888cMCCCCCCCCCCCCCCC884Aoc88888888CCCC+CCCCCCCCCW0oa+sCU8888888CCCCuCCCCCCCCCS8GeiE6+w088888CCCCiCCCCCCCCCC8yGGCWiMc88888CCCKCCCCCGGCCCC8cGY8yc8888888CCCiCCCCCS6CCGC88MMEq24088888CCCCCCCCCCCCCSu8888884Cq0888qCCCCCCCCCCCCCCWc88888se+y4wiOGCCGCCCCCCCCCCCCCCCCCCCSOiCCCCCCCiCCCCCCCCCCCCCCCCCCSCCCCCCCCCCCCCCCCCCCCCCKCCCCCCCCCCWuqCCCCCCCCCCCCCCKGCCCCCCCCCCSyiCCCCCCCCCCCCCCCuqCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC//xAAUEQEAAAAAAAAAAAAAAAAAAACQ/9oACAEDAQE/EDy//8QAFBEBAAAAAAAAAAAAAAAAAAAAkP/aAAgBAgEBPxA8v//EACwQAQACAAQEBAcBAQEAAAAAAAEAESExQfFRYdHwMEBxkRAgUIGhscHhYID/2gAIAQEAAT8Q/wDb1jS+UVDx8TEql+v0xZSg+sRURb0ZkZdGsA5YnhPbXKCLi/2EbDEDxPpdwbuY8LvWY5MSEKyeFxIEaxdoPCqxPrKUPsj6Y9Q1h5IeISvpl+Ncv/prCOBxmPmT3ve973ve973ve973ve/4SnHFf0B8gYdnUvjAFtPxNwzcM3DNwzcM3DNwzcM3DNwzcM3DNwzcM3DNwzcM3DNwzcM3DNwzcM3DATiC3PLP388oFrRFlN3ojSa90GsIEnAGmbBmwZsGbBmwZsGbBmwZsGbBmwZsGbBmwZsGbBmwZsGbBmwZsGbBhVkcRv4ZfPAqugTnWX9gdTrpM/ab10Te+ib30Te+ib30Te+ib30Te+ib30Te+ib30Te+ib30Te+ib30Te+ib30Te+ib30Te+ib30Te+ib30R/wBroj3dAXK2v38Mvnw0CiHl2KJCiZexl578/wCcJcnYy89+f+csNY978xmkvKBEwblnkZcnYy8FrnGVeEa0smGqeU/P/KORBmrQRHA8E5PvLCvXf70hDE9VpEmN+NmOHMauEOPbQTF7QIlliWPkJcnYy8ATSYpF/UaVEbhjwxIIjwtQM8COzdS/i6RQIsyptTNqZtTNqYe7GVZYIBsy4/E4ALV0jbqjVkGFy6CiLtcJiSclx/Ij5FVH9gk0U6MRGIMcpEtU6RzcCyKxPHlydjLwe9c53/h46p6zSzcHWbg6zcHWbg6wYmEBW8TjAFGBVB8aYdrNBw74ygAUFmoIvDjlhFjn2gIGG+QcH4IACOjHF/Bl9sobtLWjFaK3tOXjy5Oxl4LwhhvNhMhcC+AeXkBbJoEW02eCYI3jI5I/2L3iDCSWc7M4so8ZgAVO9v7O/v7HvBg1jYIwUyGcMujhDC0V9fGlydjLwbn3fLyIs0H5Q8v+RjL/AOhhUqN90hpCMFAUBHLGwmFDjex0nM9jpDiICZx+oNXinqXX9jpFlP4iIt1vzLJZxlPDlydjL6DIVQ0RYEzE1MPSZwy/Yx3ciluPwdz84WX7Tduub11zfOuApstuLHmzl88o4ZyxmxQ4ueDN66pvnVFvpsV4H3h4UuTsZfPZdX5qTia3Ptj/ACBYWKPB2SOqRVusZ2e5VwhUaLUFr2nb/wDJ2/8AyYWeuwNOZGx4IQ7coQ00TVlyYJ/PHxpcnYy+Zlcy1fCA1MLu84qeaW+KZz1pjVNQfDkBBxGLm8HS2A/blGur8S38jE4MqHxrl+1lCLGXDj3xj41C0ad/2VsAoOHjS5Oxl8wrlMHdkHBAAyDLxGqZxGpT1N8KrOB1pTDLKZhumPr4cnLtj9QhQdP9zL3sZme0Awrg4WPKHgI8GJFoD1l+TlCW3BhqWeD6oKEsVoI42aHRwhh40uTsZeV/G/pg9p4slJpCcL9ZceGFSGOgmYX7kWkR0G5YwTgyuXGt/WAiG1QhmAJbKuAxG/QoY/5h4UwR8aXJ2MvKoJSCc5l8rj7RxiC5vu8CRMV5k1hlWZMiMa4Zdw/vwiHxjkQiI5GcrCNsowNJQRDiaHJlfZRaZwzBWq5ifW4ACIjqeHLk7GXm8LvFHqSo7RqVWHj6Fi98ekvjUpVT6MFMpahyTV1kCLlk8KFHc4ecPIaJhBjXOg/AwhZVuY4MPFX7i+dAAkEOuRMTP784ARlFG/sYTLDz2g34rAa54YeCuhn8Z9B8Mn1lDBmNsFy+a+HDqw889FXL6ygCKXiezOT7ec5Pt5zk+3nOT7ec5Pt5zk+3nOT7ec5Pt5zk+3nOT7ec5Pt5zk+3nOT7ecOD7ecQCB0epLRri0H5ilkUjp8DqmWDBJTJMKG32YMCXHsznb6k7fUnb6kdzeeogHr7s4d2/s7fWnb60yMe8Yx+8q8KU1ZU5OznOz1Z2epMrHvGMfv9Hq5TiJhpfWLiL2eYzSHbiuLwOMe8ur2SpUqVKleDX0YiYxwVdDMlkKv9Eq6QtunKGH1U+Jhp/wB4SDJXkHGNSIxWVhBeodOH0E4VgNGFU8vcw4iD3SmhDULBppGnC/PvqPYdZsHREqraRcTehM9zFXD3PLAREEeMqk8RGDz9fHky+sqY3WzgW3D6zpK/8k//2Q==",i=e=>((0,n.pushScopeId)("data-v-160fcaec"),e=e(),(0,n.popScopeId)(),e),u={class:"myClass"},l=i((()=>(0,n.createElementVNode)("img",{src:s,style:{width:"150px",height:"150px","border-radius":"50%"}},null,-1))),d=i((()=>(0,n.createElementVNode)("h4",{style:{color:"darkgray","margin-top":"0px"}},"暂无数据",-1))),c=[l,d];function m(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("div",u,c)}var h=r(3744);const f={},_=(0,h.Z)(f,[["render",m],["__scopeId","data-v-160fcaec"]]),p=_,y={key:0,class:"mainTitle"},g=["onClick"],M={key:0,class:"leftArea"},v=["src","onClick","onMousedown","onMouseup","onTouchstart","onTouchend"],L=["onClick"],w={key:1,class:"rightArea"},k=["src","onClick","onMousedown","onMouseup","onTouchstart","onTouchend"],Y=["onClick"],b={key:0,class:"leftArea"},D=["src","onClick","onMousedown","onMouseup","onTouchstart","onTouchend"],T=["onClick"],S={key:1,class:"rightArea"},A=["src","onClick","onMousedown","onMouseup","onTouchstart","onTouchend"],x=(0,n.defineComponent)({__name:"ermList",props:{data:[],maxHeight:{type:String,default:"auto"},initSvc:{type:String,require:!0},formName:{type:String,require:!0},functionId:{type:String,require:!0},showLeft:{type:Boolean,default:!1},showRight:{type:Boolean,default:!1},mainTitle:{type:String,default:!1},leftIconUrl:{type:String,default:"lg.png"},rightIconUrl:{type:String,default:"xiangyou.png"},leftIconSize:{type:Array,default:["35px","35px"]},rightIconSize:{type:Array,default:["35px","35px"]},showSelect:{type:Boolean,default:!1},selectMode:{type:String,default:"multiRow"},pullDisabled:{type:Boolean,default:!1},pullDownDisabled:{type:Boolean,default:!1},leftSwiperSelect:{type:Boolean,default:!1},rightSwiperDelete:{type:Boolean,default:!1},viewType:{type:String,default:"list"}},emits:["leftIconClick","mainClick","rightIconClick","leftIconHold","rightIconHold","pullRefresh","pullUpdate"],setup(e,{expose:t,emit:r}){const a=(0,n.ref)(["1"]),s=e,i=r;t({endLoad:P,selectAll:W,selectNone:V,getSelectedRows:z,getTableName:X});s.maxHeight&&s.maxHeight;var u=(0,n.ref)("0%"),l=(0,n.ref)("100%"),d=(0,n.ref)("0%");function c(){s.showLeft&&s.showRight?(u.value="15%",d.value="15%",l.value="70%"):s.showLeft?(u.value="15%",l.value="85%"):s.showRight&&(d.value="15%",l.value="85%"),console.log(u,d,l)}(0,n.watch)((()=>[s.showLeft,s.showRight]),(([e,t],[n,r])=>{c()}));const m=(0,n.ref)([]);var h={},f=[];async function _(){console.log("erm初始化---formName ",s.formName),console.log("erm初始化---functionId ",s.functionId),console.log("erm初始化---initSvc ",s.initSvc),h={};const e=new o.EI.EIInfo,t=e.addBlock(new o.EI.EiBlock,"");t.pushData({DEFAULT_COMPANY_CODE:"BS",FORM_NAME:s.formName,TYPE_CODE:"Web",FUNCTION_IDS:s.functionId,DATASET_NAME:"#",TABLE_NAMES:""},!0),console.log("eiblk",t),await o.EIManager.callService("",s.initSvc,e).then((e=>{if(0!==e.sys.status)return void console.log(e.sys.msg);h=e.blocks,console.log("ret",h);var t=h["TSI00GRIDCOLUMN"].data;const n=h["TSI00GRIDVIEW"].data,r=h["TSI00DATATABLE"].data,a=n[0].DATASET_NAME,o=n[0].TABLE_NAME;t.forEach((e=>{if(""!==e.HEAD_TEXTCOLOR.trim()||"16777215"!==e.HEAD_TEXTCOLOR.trim()){var t=e.HEAD_TEXTCOLOR.trim();t="#"+(Number(t)+16777216).toString(16).padStart(6,"0"),e.HEAD_TEXTCOLOR=t}else e.HEAD_TEXTCOLOR="#000000";if(""!==e.CELL_TEXTCOLOR.trim()||"16777215"!==e.CELL_TEXTCOLOR.trim()){t=e.CELL_TEXTCOLOR.trim();t="#"+(Number(t)+16777216).toString(16).padStart(6,"0"),e.CELL_TEXTCOLOR=t}else e.CELL_TEXTCOLOR="#000000";e.DATASET_NAME=a,e.TABLE_NAME=o,e.DATA_TYPE="",r.forEach((t=>{e.FIELD_NAME===t.COL_NAME&&(e.DATA_TYPE=t.DATA_TYPE)}))})),m.value=t,f=n[0].MERGE_COLUMN.split(",").filter((e=>" "!=e&&""!=e)),console.log("mergeCols",f),console.log("yon",f.includes("AGEa"))}))}var x=null;function C(e){x=setTimeout((()=>{x=null,i("leftIconHold",e)}),1e3)}function E(e){clearTimeout(x),x=null}function j(e){x=setTimeout((()=>{x=null,i("rightIconHold",e)}),1e3)}function O(e){clearTimeout(x),x=null}const H=(0,n.ref)(!1),N=(0,n.ref)(!1);function P(){H.value=!1,N.value=!1}var I=(0,n.ref)(!1);function R(e,t){I.value&&(B.value.indexOf(e)<0?("singleRow"===s.selectMode&&(B.value=[]),B.value.push(e)):B.value.splice(B.value.indexOf(e),1))}(0,n.watch)((()=>s.showSelect),(()=>{I.value=s.showSelect}),{immediate:!0});const F=(0,n.ref)(null),B=(0,n.ref)([]);function W(){"multiRow"===s.selectMode&&F.value.toggleAll(!0)}function V(){F.value.toggleAll(!1)}function z(){for(let e=B.value.length-1;e>=0;e--){const t=B.value[e];s.data.includes(t)||B.value.splice(e,1)}return(0,n.toRaw)(B.value)}(0,n.watch)((()=>s.showSelect),(()=>{s.data.forEach((e=>{B.value.splice(B.value.indexOf(e),1)}))}));var U=(0,n.ref)(!0);function q(){I.value=!0}function J(){V(),I.value=!1}(0,n.watch)((()=>s.leftSwiperSelect),(()=>{s.leftSwiperSelect?U.value=!0:U.value=!1}),{deep:!0,immediate:!0});var G=(0,n.ref)(!0);function $(e){s.data.splice(e,1)}function K(){var e=document.getElementsByClassName("colDesc");for(let t=0;t<e.length;t++){const n=e[t];n.innerHTML=n.innerHTML.replaceAll("<br>","<br>")}}function Z(e){return new URL(`/src/assets/img/${e}`,"file:///C:/Users/Raymo/Desktop/%E5%B7%A5%E4%BD%9C%E6%96%87%E6%A1%A3/%E9%A1%B9%E7%9B%AE/%E7%A7%BB%E5%8A%A8%E5%BA%94%E7%94%A8/%E7%A7%BB%E5%8A%A8%E5%BA%94%E7%94%A8%E4%BA%A7%E5%93%81%E5%8C%96/GIT/erm/packages/ermList/ermList.vue%3Fvue&type=script&lang=ts&setup=true").href}function X(){return h["TSI00GRIDVIEW"].data[0].TABLE_NAME}return(0,n.watch)((()=>s.rightSwiperDelete),(()=>{s.rightSwiperDelete?G.value=!0:G.value=!1}),{deep:!0,immediate:!0}),(0,n.watch)((()=>s.data),(()=>{(0,n.nextTick)((()=>{K()}))}),{immediate:!0,deep:!0}),(0,n.watch)((()=>m.value),(()=>{(0,n.nextTick)((()=>{K()}))}),{immediate:!0,deep:!0}),(0,n.watch)((()=>s.pullDownDisabled),(()=>{!0===s.pullDownDisabled&&(N.value=!1)}),{immediate:!0}),(0,n.onMounted)((()=>{c(),_()})),(t,r)=>{const o=(0,n.resolveComponent)("van-button"),i=(0,n.resolveComponent)("van-checkbox"),u=(0,n.resolveComponent)("van-col"),l=(0,n.resolveComponent)("van-row"),d=(0,n.resolveComponent)("van-swipe-cell"),c=(0,n.resolveComponent)("van-checkbox-group"),h=(0,n.resolveComponent)("van-list"),_=(0,n.resolveComponent)("van-collapse-item"),x=(0,n.resolveComponent)("van-collapse"),P=(0,n.resolveComponent)("van-pull-refresh");return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[e.mainTitle&&""!==e.mainTitle?((0,n.openBlock)(),(0,n.createElementBlock)("div",y,(0,n.toDisplayString)(e.mainTitle),1)):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(P,{class:"pullRefresh",modelValue:H.value,"onUpdate:modelValue":r[7]||(r[7]=e=>H.value=e),disabled:e.pullDisabled,onRefresh:r[8]||(r[8]=e=>t.$emit("pullRefresh"))},{default:(0,n.withCtx)((()=>[m.value.length>0&&e.data.length>0&&0===(0,n.unref)(f).length?((0,n.openBlock)(),(0,n.createBlock)(h,{key:0,loading:N.value,"onUpdate:loading":r[1]||(r[1]=e=>N.value=e),style:{"min-height":"200px"},onLoad:r[2]||(r[2]=e=>t.$emit("pullUpdate")),"immediate-check":!0,finished:e.pullDownDisabled},{default:(0,n.withCtx)((()=>[(0,n.createVNode)(c,{modelValue:B.value,"onUpdate:modelValue":r[0]||(r[0]=e=>B.value=e),ref_key:"checkBoxGroup",ref:F},{default:(0,n.withCtx)((()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.data,((r,a)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)({selected:B.value.indexOf(r)>=0}),onClick:e=>R(r,a)},[(0,n.createVNode)(d,null,{left:(0,n.withCtx)((()=>[(0,n.renderSlot)(t.$slots,"leftButton",{data:{item:r,index:a}},(()=>[(0,n.unref)(U)&&!(0,n.unref)(I)?((0,n.openBlock)(),(0,n.createBlock)(o,{key:0,square:"",type:"primary",text:"开启多选",class:"swiperButton",onClick:q})):(0,n.createCommentVNode)("",!0),(0,n.unref)(U)&&(0,n.unref)(I)?((0,n.openBlock)(),(0,n.createBlock)(o,{key:1,square:"",type:"primary",text:"取消多选",class:"swiperButton",onClick:J})):(0,n.createCommentVNode)("",!0)]))])),right:(0,n.withCtx)((()=>[(0,n.renderSlot)(t.$slots,"rightButton",{data:{item:r,index:a}},(()=>[(0,n.unref)(G)?((0,n.openBlock)(),(0,n.createBlock)(o,{key:0,square:"",type:"danger",text:"删除",class:"swiperButton",onClick:e=>$(a)},null,8,["onClick"])):(0,n.createCommentVNode)("",!0)]))])),default:(0,n.withCtx)((()=>[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)({rowContent:"list"===s.viewType,rowContentCard:"card"===s.viewType})},[e.showLeft||(0,n.unref)(I)?((0,n.openBlock)(),(0,n.createElementBlock)("div",M,[(0,n.unref)(I)?((0,n.openBlock)(),(0,n.createBlock)(i,{key:1,onClick:e=>R(r,a),name:r},null,8,["onClick","name"])):(0,n.renderSlot)(t.$slots,"leftArea",{key:0,data:{item:r,index:a}},(()=>[(0,n.createElementVNode)("img",{src:Z(e.leftIconUrl),style:(0,n.normalizeStyle)("height:"+e.leftIconSize[1]+";width:"+e.leftIconSize[0]),onClick:e=>t.$emit("leftIconClick",r),onMousedown:e=>C(r),onMouseup:e=>E(r),onTouchstart:e=>C(r),onTouchend:e=>E(r)},null,44,v)]))])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",{class:"mainContent",onClick:e=>t.$emit("mainClick",r)},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(m.value,((t,r)=>((0,n.openBlock)(),(0,n.createBlock)(l,null,{default:(0,n.withCtx)((()=>[(0,n.createVNode)(u,{class:"singleRow colDesc",style:(0,n.normalizeStyle)("color:"+t.HEAD_TEXTCOLOR),span:"8"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(t.COL_CAPTION)+":",1)])),_:2},1032,["style"]),(0,n.createVNode)(u,{class:"singleRow colData",style:(0,n.normalizeStyle)("color:"+t.CELL_TEXTCOLOR),offset:"0",span:"16"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.data[a][t.ITEM_CODE]),1)])),_:2},1032,["style"])])),_:2},1024)))),256))],8,L),e.showRight?((0,n.openBlock)(),(0,n.createElementBlock)("div",w,[(0,n.renderSlot)(t.$slots,"rightArea",{data:{item:r,index:a}},(()=>[(0,n.createElementVNode)("img",{class:"rightIcon",src:Z(e.rightIconUrl),style:(0,n.normalizeStyle)("height:"+e.rightIconSize[1]+";width:"+e.rightIconSize[0]),onClick:e=>t.$emit("rightIconClick",r),onMousedown:e=>j(r),onMouseup:e=>O(r),onTouchstart:e=>j(r),onTouchend:e=>O(r)},null,44,k)]))])):(0,n.createCommentVNode)("",!0)],2)])),_:2},1024)],10,g)))),256))])),_:3},8,["modelValue"])])),_:3},8,["loading","finished"])):(0,n.createCommentVNode)("",!0),m.value.length>0&&e.data.length>0&&(0,n.unref)(f).length>0?((0,n.openBlock)(),(0,n.createBlock)(h,{key:1,loading:N.value,"onUpdate:loading":r[5]||(r[5]=e=>N.value=e),style:{"min-height":"200px"},onLoad:r[6]||(r[6]=e=>t.$emit("pullUpdate")),"immediate-check":!0,finished:e.pullDownDisabled},{default:(0,n.withCtx)((()=>[(0,n.createVNode)(c,{modelValue:B.value,"onUpdate:modelValue":r[4]||(r[4]=e=>B.value=e),ref_key:"checkBoxGroup",ref:F},{default:(0,n.withCtx)((()=>[(0,n.createVNode)(x,{modelValue:a.value,"onUpdate:modelValue":r[3]||(r[3]=e=>a.value=e),"lazy-render":"false"},{default:(0,n.withCtx)((()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.data,((r,a)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)({selected:B.value.indexOf(r)>=0}),onClick:e=>R(r,a)},[(0,n.createVNode)(d,null,{left:(0,n.withCtx)((()=>[(0,n.renderSlot)(t.$slots,"leftButton",{data:{item:r,index:a}},(()=>[(0,n.unref)(U)&&!(0,n.unref)(I)?((0,n.openBlock)(),(0,n.createBlock)(o,{key:0,square:"",type:"primary",text:"开启多选",class:"swiperButton",onClick:q})):(0,n.createCommentVNode)("",!0),(0,n.unref)(U)&&(0,n.unref)(I)?((0,n.openBlock)(),(0,n.createBlock)(o,{key:1,square:"",type:"primary",text:"取消多选",class:"swiperButton",onClick:J})):(0,n.createCommentVNode)("",!0)]))])),right:(0,n.withCtx)((()=>[(0,n.renderSlot)(t.$slots,"rightButton",{data:{item:r,index:a}},(()=>[(0,n.unref)(G)?((0,n.openBlock)(),(0,n.createBlock)(o,{key:0,square:"",type:"danger",text:"删除",class:"swiperButton",onClick:e=>$(a)},null,8,["onClick"])):(0,n.createCommentVNode)("",!0)]))])),default:(0,n.withCtx)((()=>[(0,n.createElementVNode)("div",{id:"列表",class:(0,n.normalizeClass)({rowContent:"list"===s.viewType,rowContentCard:"card"===s.viewType})},[e.showLeft||(0,n.unref)(I)?((0,n.openBlock)(),(0,n.createElementBlock)("div",b,[(0,n.unref)(I)?((0,n.openBlock)(),(0,n.createBlock)(i,{key:1,onClick:e=>R(r,a),name:r},null,8,["onClick","name"])):(0,n.renderSlot)(t.$slots,"leftArea",{key:0,data:{item:r,index:a}},(()=>[(0,n.createElementVNode)("img",{src:Z(e.leftIconUrl),style:(0,n.normalizeStyle)("height:"+e.leftIconSize[1]+";width:"+e.leftIconSize[0]),onClick:e=>t.$emit("leftIconClick",r),onMousedown:e=>C(r),onMouseup:e=>E(r),onTouchstart:e=>C(r),onTouchend:e=>E(r)},null,44,D)]))])):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(_,{name:a,style:{width:"100%"},onClick:e=>{console.log("van-collapse-itemccc"),R(r,a)}},{title:(0,n.withCtx)((()=>[(0,n.createElementVNode)("div",null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(m.value,((t,r)=>((0,n.openBlock)(),(0,n.createBlock)(l,null,{default:(0,n.withCtx)((()=>[(0,n.unref)(f).includes(t.ITEM_CODE)?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createVNode)(u,{class:"singleRow colDesc",style:(0,n.normalizeStyle)("color:"+t.HEAD_TEXTCOLOR),span:"8"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(t.COL_CAPTION)+":",1)])),_:2},1032,["style"]),(0,n.createVNode)(u,{class:"singleRow colData",style:(0,n.normalizeStyle)("color:"+t.CELL_TEXTCOLOR),offset:"0",span:"16"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.data[a][t.ITEM_CODE]),1)])),_:2},1032,["style"])],64)):(0,n.createCommentVNode)("",!0)])),_:2},1024)))),256))])])),default:(0,n.withCtx)((()=>[(0,n.createElementVNode)("div",{class:"mainContent",onClick:e=>{t.$emit("mainClick",r),R(r,a)}},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(m.value,((t,r)=>((0,n.openBlock)(),(0,n.createBlock)(l,null,{default:(0,n.withCtx)((()=>[(0,n.unref)(f).includes(t.ITEM_CODE)?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createVNode)(u,{class:"singleRow colDesc",style:(0,n.normalizeStyle)("color:"+t.HEAD_TEXTCOLOR),span:"8"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(t.COL_CAPTION)+":",1)])),_:2},1032,["style"]),(0,n.createVNode)(u,{class:"singleRow colData",style:(0,n.normalizeStyle)("color:"+t.CELL_TEXTCOLOR),offset:"0",span:"16"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.data[a][t.ITEM_CODE]),1)])),_:2},1032,["style"])],64))])),_:2},1024)))),256))],8,T)])),_:2},1032,["name","onClick"]),e.showRight?((0,n.openBlock)(),(0,n.createElementBlock)("div",S,[(0,n.renderSlot)(t.$slots,"rightArea",{data:{item:r,index:a}},(()=>[(0,n.createElementVNode)("img",{class:"rightIcon",src:Z(e.rightIconUrl),style:(0,n.normalizeStyle)("height:"+e.rightIconSize[1]+";width:"+e.rightIconSize[0]),onClick:e=>t.$emit("rightIconClick",r),onMousedown:e=>j(r),onMouseup:e=>O(r),onTouchstart:e=>j(r),onTouchend:e=>O(r)},null,44,A)]))])):(0,n.createCommentVNode)("",!0)],2)])),_:2},1024)],10,Y)))),256))])),_:3},8,["modelValue"])])),_:3},8,["modelValue"])])),_:3},8,["loading","finished"])):(0,n.createCommentVNode)("",!0),0===m.value.length||0===e.data.length?((0,n.openBlock)(),(0,n.createBlock)(p,{key:2})):(0,n.createCommentVNode)("",!0)])),_:3},8,["modelValue","disabled"])],64)}}}),C=(0,h.Z)(x,[["__scopeId","data-v-99b5b5a0"]]),E=C,j=e=>(e.install=t=>{const n=e.name||e.__name;t.component(n,e)},e),O=j(E),H=O;var N=r(381),P=r.n(N);const I=(0,n.defineComponent)({__name:"MobileLookUp",props:{data:{type:String},value:{type:String},title:{type:String,default:""},codeSet:{type:o.EI.EiBlock},valueCol:{type:String},displayCol:{type:String},showSearch:{type:Boolean,default:!0},checkFlag:{default:!1},readOnly:{type:Boolean,default:!1}},emits:["input","cancel"],setup(e,{expose:t,emit:r}){const a=e,o=r;t({}),(0,n.watch)((()=>a.data),(()=>{if(a.codeSet){for(let e=0;e<a.codeSet.data.length;e++)if(a.codeSet.data[e][l.value]===a.data)return s.value=Object.assign({},a.codeSet.data[e]),void(u.value=e);s.value[l.text]="",s.value[l.value]=""}o("input",s.value[l.value])}));const s=(0,n.ref)({}),i=(0,n.ref)(!1),u=(0,n.ref)(0);var l={text:"CODE_DESC_1_CONTENT",value:"CODE"};const d=(0,n.ref)([]),c=(0,n.ref)([]);(0,n.watch)((()=>a.valueCol),(()=>{""!==a.displayCol.trim()&&""!==a.valueCol.trim()&&(l.text=a.displayCol,l.value=a.valueCol)}),{immediate:!0,deep:!0}),(0,n.watch)((()=>a.codeSet),(()=>{if(d.value=[],a.codeSet)for(let e=0;e<a.codeSet.data.length;e++){const t=a.codeSet.data[e];!1!==t.showFlag&&d.value.push(t)}c.value=d.value}),{immediate:!0,deep:!0});const m=e=>{e&&(s.value=e,o("input",s.value[l.value])),i.value=!1,y()},h=e=>{},f=()=>{s.value[l.text]="",s.value[l.value]="",console.log(s.value),i.value=!1,o("input",s.value[l.value]),y()},_=(0,n.ref)(""),p=e=>{console.log("keyword",e),console.log("handleSearch1",d);const t=[];c.value.forEach((n=>{n[l.text].indexOf(e)>-1&&t.push(n)})),d.value=t},y=()=>{_.value="",d.value=c.value};return(0,n.onMounted)((()=>{})),(t,r)=>{const a=(0,n.resolveComponent)("van-field"),o=(0,n.resolveComponent)("van-picker"),c=(0,n.resolveComponent)("van-popup");return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.createVNode)(a,{class:(0,n.normalizeClass)({vanField:!0,checkError:e.checkFlag}),modelValue:s.value[(0,n.unref)(l).text],"onUpdate:modelValue":r[0]||(r[0]=e=>s.value[(0,n.unref)(l).text]=e),"is-link":!e.readOnly,placeholder:"点击选择",onClick:r[1]||(r[1]=()=>{e.readOnly||(i.value=!0)}),readonly:!0},null,8,["class","modelValue","is-link"]),(0,n.createVNode)(c,{show:i.value,"onUpdate:show":r[4]||(r[4]=e=>i.value=e),round:"",position:"bottom"},{default:(0,n.withCtx)((()=>[e.showSearch?((0,n.openBlock)(),(0,n.createBlock)(a,{key:0,placeholder:"查询选项",modelValue:_.value,"onUpdate:modelValue":[r[2]||(r[2]=e=>_.value=e),r[3]||(r[3]=e=>p(_.value))],"left-icon":"search",autocomplete:"off",clearable:!0},null,8,["modelValue"])):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(o,{columns:d.value,onCancel:f,onConfirm:m,onChange:h,"default-index":u.value,"cancel-button-text":"清空","columns-field-names":(0,n.unref)(l)},null,8,["columns","default-index","columns-field-names"])])),_:1},8,["show"])],64)}}}),R=I,F=R,B=(0,n.defineComponent)({__name:"MobileSpin",props:{data:{type:Number},scale:{type:String},checkFlag:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1}},emits:["input"],setup(e,{expose:t,emit:r}){const a=e,o=r;var s;function i(e){var t;"-1"===a.scale?"."===e.data&&(e.target.value=e.target.value.replace(".","")):t=a.scale;let r=new RegExp(`^(\\-)*(\\d+)\\.(\\d{0,${t}}).*$`),i="$1$2.$3";e.target.value=e.target.value.replace(r,i),"-"===e.data&&(isNaN(e.target.value)||(e.target.value=-e.target.value)),(0,n.nextTick)((()=>{s=Number(e.target.value),o("input",s)}))}return t({}),(0,n.watch)((()=>a.data),(()=>{s=a.data})),(0,n.onMounted)((()=>{s=a.data})),(t,r)=>{const a=(0,n.resolveComponent)("van-field");return(0,n.openBlock)(),(0,n.createBlock)(a,{class:(0,n.normalizeClass)({vanField:!0,checkError:e.checkFlag}),modelValue:(0,n.unref)(s),"onUpdate:modelValue":r[0]||(r[0]=e=>(0,n.isRef)(s)?s.value=e:s=e),type:"number",onInput:i,placeholder:"请输入",autocomplete:"off",readonly:e.readOnly},null,8,["class","modelValue","readonly"])}}}),W=B,V=W,z=(0,n.defineComponent)({__name:"MobileText",props:{data:{type:String},height:{type:Number,default:1},checkFlag:{default:!1},readOnly:{type:Boolean,default:!1}},emits:["input"],setup(e,{expose:t,emit:r}){const a=e,o=r;t({});var s=(0,n.ref)("");function i(){o("input",s.value)}return(0,n.watch)((()=>a.data),(()=>{s.value=a.data})),(0,n.onMounted)((()=>{s.value=a.data})),(t,r)=>{const a=(0,n.resolveComponent)("van-field");return e.height>1?((0,n.openBlock)(),(0,n.createBlock)(a,{key:0,class:(0,n.normalizeClass)({vanField:!0,checkError:e.checkFlag}),modelValue:(0,n.unref)(s),"onUpdate:modelValue":[r[0]||(r[0]=e=>(0,n.isRef)(s)?s.value=e:s=e),i],type:"textarea",autocomplete:"off",placeholder:"请输入",rows:e.height,clearable:!0,spellcheck:"false",readonly:e.readOnly},null,8,["class","modelValue","rows","readonly"])):((0,n.openBlock)(),(0,n.createBlock)(a,{key:1,class:(0,n.normalizeClass)({vanField:!0,checkError:e.checkFlag}),modelValue:(0,n.unref)(s),"onUpdate:modelValue":[r[1]||(r[1]=e=>(0,n.isRef)(s)?s.value=e:s=e),i],placeholder:"请输入",autocomplete:"off",readonly:e.readOnly,clearable:!0,spellcheck:"false"},null,8,["class","modelValue","readonly"]))}}}),U=z,q=U,J=(0,n.defineComponent)({__name:"DateTimePicker",props:{showPicker:{type:Boolean},type:{type:String,default:"yyyy-MM-dd HH:mm:ss"},title:{type:String,default:" "}},emits:["confirm","cancel","changeValue"],setup(e,{emit:t}){const r=(0,n.reactive)({isPicker:!1,columns:[],Mdays:"",Dindex:null,selectedValues:[]}),a=(0,n.ref)();var o="";const s=e,i=t;function u(){r.columns=[];let e=new Date,t=e.getFullYear(),n=e.getMonth(),a=e.getDate(),i=e.getHours(),u=e.getMinutes(),l=e.getSeconds(),c=[],m=(new Date).getFullYear();for(let r=m-20;r<m+20;r++)c.push(r.toString());t.toString();const h=n+1<10?`0${n+1}`:(n+1).toString(),f=a<10?`0${a}`:a.toString(),_=i<10?`0${i}`:i.toString(),p=u<10?`0${u}`:u.toString(),y=l<10?`0${l}`:l.toString();let g,M=[];M=Object.keys(Array.apply(null,{length:13})).map((function(e){return+e+1<=10?"0"+e:+e+1==11?(+e).toString():(+e+0).toString()})),M.splice(0,1),g=o.length>=6?d(o.substring(0,4),o.substring(4,6)):d(t.toString(),n.toString());let v=[];v=Object.keys(Array.apply(null,{length:g+1})).map((function(e){return+e+1<=10?"0"+e:+e+1==11?(+e).toString():(+e+0).toString()})),v.splice(0,1);let L=[];L=Object.keys(Array.apply(null,{length:24})).map((function(e){return+e+1<=10?"0"+e:+e+1==11?(+e).toString():(+e+0).toString()}));let w=[];w=Object.keys(Array.apply(null,{length:60})).map((function(e){return+e+1<=10?"0"+e:+e+1==11?(+e).toString():(+e+0).toString()}));let k=[];k=Object.keys(Array.apply(null,{length:60})).map((function(e){return+e+1<=10?"0"+e:+e+1==11?(+e).toString():(+e+0).toString()})),r.columns.push({values:c,defaultIndex:c.indexOf(t.toString())}),r.columns.push({values:M,defaultIndex:M.indexOf(h)}),r.columns.push({values:v,defaultIndex:v.indexOf(f)}),r.columns.push({values:L,defaultIndex:L.indexOf(_)}),r.columns.push({values:w,defaultIndex:w.indexOf(p)}),r.columns.push({values:k,defaultIndex:k.indexOf(y)}),"yyyy-mm-dd"===s.type.trim().toLowerCase()&&r.columns.splice(3,3),console.log("columns",r.columns)}function l(){const e=a.value.getValues();o="",e.forEach((e=>{o+=e})),u()}function d(e,t){let n=new Date(e,t,0);return n.getDate()}function c(){i("changeValue")}function m(){r.isPicker=!1,i("cancel")}function h(){const e=a.value.getValues();var t="";e.forEach((e=>{t+=e})),i("confirm",t)}return(0,n.watch)((()=>r.isPicker),(e=>{r.columns=[],u()})),(0,n.watch)((()=>s.showPicker),(e=>{r.isPicker=e})),(e,t)=>{const o=(0,n.resolveComponent)("van-picker"),i=(0,n.resolveComponent)("van-popup");return(0,n.openBlock)(),(0,n.createBlock)(i,{show:r.isPicker,"onUpdate:show":t[1]||(t[1]=e=>r.isPicker=e),position:"bottom",round:"",onClose:c},{default:(0,n.withCtx)((()=>[(0,n.createVNode)(o,{ref_key:"picker",ref:a,columns:r.columns,onChange:l,onCancel:m,onConfirm:h,modelValue:r.selectedValues,"onUpdate:modelValue":t[0]||(t[0]=e=>r.selectedValues=e),"cancel-button-text":"清空",title:s.title},null,8,["columns","modelValue","title"])])),_:1},8,["show"])}}}),G=J,$=G,K=(0,n.defineComponent)({__name:"MobileDate",props:{data:{type:String},type:{type:String},title:{type:String},checkFlag:{default:!1},readOnly:{type:Boolean,default:!1}},emits:["input"],setup(e,{expose:t,emit:r}){const a=e,o=r;t({});var s="";const i=(0,n.ref)(!1);function u(e){return 14===e.length?P()(e,"YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss"):8===e.length?P()(e,"YYYYMMDD").format("YYYY-MM-DD"):e}const l=e=>{i.value=!1,s=e,o("input",s)},d=e=>{i.value=!1,s="",o("input",s)};return(0,n.watch)((()=>a.data),(()=>{s=a.data})),(0,n.onMounted)((()=>{})),(t,r)=>{const o=(0,n.resolveComponent)("van-field");return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.createVNode)(o,{class:(0,n.normalizeClass)({vanField:!0,checkError:e.checkFlag}),modelValue:(0,n.unref)(s),"onUpdate:modelValue":r[0]||(r[0]=e=>(0,n.isRef)(s)?s.value=e:s=e),"is-link":!e.readOnly,name:"datetimePicker",formatter:u,placeholder:"点击选择时间",onClick:r[1]||(r[1]=()=>{e.readOnly||(i.value=!0)}),readonly:!0,autocomplete:"off"},null,8,["class","modelValue","is-link"]),(0,n.createVNode)($,{onChangeValue:r[2]||(r[2]=e=>i.value=!1),showPicker:i.value,type:a.type,onConfirm:l,title:a.title,onCancel:d},null,8,["showPicker","type","title"])],64)}}}),Z=K,X=Z,Q=(0,n.defineComponent)({__name:"MobileButtonEdit",props:{data:{type:String},readOnly:{type:Boolean,default:!1}},emits:["input","btnClick"],setup(e,{expose:t,emit:r}){const a=e,o=r;var s;function i(){o("input",s)}function u(){a.readOnly||o("btnClick")}return t({}),(0,n.watch)((()=>a.data),(()=>{s=a.data})),(0,n.onMounted)((()=>{s=a.data})),(t,r)=>{const a=(0,n.resolveComponent)("van-field");return(0,n.openBlock)(),(0,n.createBlock)(a,{class:"vanField",modelValue:(0,n.unref)(s),"onUpdate:modelValue":r[0]||(r[0]=e=>(0,n.isRef)(s)?s.value=e:s=e),"is-link":!e.readOnly,placeholder:"点击选择",onClick:u,readonly:!0,onInput:i,autocomplete:"false"},null,8,["modelValue","is-link"])}}}),ee=Q,te=ee,ne={key:0,class:"mainTitle"},re={key:1},ae={class:"rowContent"},oe={class:"mainContent"},se={key:0,class:"required"},ie=(0,n.defineComponent)({__name:"ermForm",props:{maxHeight:{type:String,default:"auto"},initSvc:{type:String,require:!0},formName:{type:String,require:!0},functionId:{type:String,require:!0},mainTitle:{type:String,default:!1}},emits:["dataChange","cellValueChange","btnClick"],setup(e,{expose:t,emit:r}){const a=e,s=r;t({getGridData:f,setGridData:_,addRow:h,checkRequireInput:w,resetData:k,getGridCellData:p,mergeDataRow:Y,getTableName:b});a.maxHeight&&a.maxHeight;const i=(0,n.ref)([]);var u=(0,n.reactive)([]);const l=(0,n.ref)({}),d=(0,n.computed)((()=>JSON.parse(JSON.stringify(u))));(0,n.watch)((()=>d.value),((e,t)=>{if(0!==Object.keys(e[0]).length&&s("dataChange",e),null!==l.value&&void 0!==l.value&&0!==Object.keys(l.value).length&&(v(),e.length===t.length))for(let n=0;n<u.length;n++)for(let r=0;r<i.value.length;r++){const a=i.value[r].ITEM_CODE;e[n][a]!==t[n][a]&&void 0!==t[n][a]&&(L.length>0&&(L[n][a]=!1),s("cellValueChange",{ITEM_CODE:a,ROW_NO:n,OLD_VALUE:t[n][a],NEW_VALUE:e[n][a]}))}}),{deep:!0});var c={};async function m(){console.log("erm初始化---formName ",a.formName),console.log("erm初始化---functionId ",a.functionId),console.log("erm初始化---initSvc ",a.initSvc),c={};const e=new o.EI.EIInfo,t=e.addBlock(new o.EI.EiBlock,"");t.pushData({DEFAULT_COMPANY_CODE:o.EP.Environment.companyCode,FORM_NAME:a.formName,TYPE_CODE:"Web",FUNCTION_IDS:a.functionId,DATASET_NAME:"#",TABLE_NAMES:""},!0),console.log("eiblk",t),await o.EIManager.callService("",a.initSvc,e).then((e=>{if(0!==e.sys.status)return void console.log(e.sys.msg);c=e.blocks,console.log("ret",c),l.value=c;var t=c["TSI00GRIDCOLUMN"].data;const n=c["TSI00GRIDVIEW"].data,r=c["TSI00DATATABLE"].data,a=n[0].DATASET_NAME,o=n[0].TABLE_NAME;t.forEach((e=>{if(""!==e.HEAD_TEXTCOLOR.trim()||"16777215"!==e.HEAD_TEXTCOLOR.trim()){var t=e.HEAD_TEXTCOLOR.trim();t="#"+(Number(t)+16777216).toString(16).padStart(6,"0"),e.HEAD_TEXTCOLOR=t}else e.HEAD_TEXTCOLOR="#000000";if(""!==e.CELL_TEXTCOLOR.trim()||"16777215"!==e.CELL_TEXTCOLOR.trim()){t=e.CELL_TEXTCOLOR.trim();t="#"+(Number(t)+16777216).toString(16).padStart(6,"0"),e.CELL_TEXTCOLOR=t}else e.CELL_TEXTCOLOR="#000000";e.DATASET_NAME=a,e.TABLE_NAME=o,e.DATA_TYPE="",r.forEach((t=>{e.FIELD_NAME===t.COL_NAME&&(e.DATA_TYPE=t.DATA_TYPE)})),"7"===e.COLUMN_EDIT&&(e.CODE_TABLE_NAME=e.SVC_NAME,"5"===e.ORIGIN_CODE&&(e.CODE_TABLE_NAME="SI->"+e.CODE_TABLE_NAME),"6"===e.ORIGIN_CODE&&(e.CODE_TABLE_NAME="EP->"+e.CODE_TABLE_NAME),"4"===e.ORIGIN_CODE&&(e.CODE_TABLE_NAME=e.FORM_NAME+e.CODE_TABLE_NAME),""!==e.DISPLAY_MEMBER.trim()&&""!==e.VALUE_MEMBER.trim()||(e.VALUE_MEMBER=l.value[e.CODE_TABLE_NAME].columns[0].name,e.DISPLAY_MEMBER=l.value[e.CODE_TABLE_NAME].columns[1].name)),console.log("DISPLAY_MEMBER",e.DISPLAY_MEMBER),console.log("VALUE_MEMBER",e.VALUE_MEMBER)})),i.value=t}))}function h(){u.push({}),(0,n.nextTick)((()=>{setTimeout((()=>{y(u[u.length-1]),M()}),500)}))}function f(){return u}function _(e,t,n){u[e][t]=n}function p(e,t){return u[e][t]}function y(e){i.value.forEach((t=>{e[t.ITEM_CODE]=g(t.DEFAULT_VALUE.trim(),t.DATA_TYPE)}))}function g(e,t){var n=e.trim();e.trim().indexOf("yyyy")>0&&(n=e.trim().replace("yyyy","YYYY")),e.trim().indexOf("MMdd")>0&&(n=e.trim().replace("dd","DD"));var r=new Date;if("$USER_ID$"===n)return(0,o.getCurrentUser)().userId;if("$COMPANY_CODE$"===n)return(0,o.getCurrentEnvironment)().companyCode;if("$USER_NAME$"===n)return(0,o.getCurrentUser)().userName;if(n.toUpperCase().indexOf("YYYY")>=0&&n.toUpperCase().indexOf(",ADD")<0){var a=P()(r).format(n);return a}if(n.toUpperCase().indexOf(",ADDDAYS")>0){var s=n.toUpperCase().indexOf(",ADDDAYS"),i=n.substring(0,s),u=n.substring(n.indexOf("(")+1,n.indexOf(")")),l=g(i),d="YYYYMMDDHHmmss";return 14===l.length?d="YYYYMMDDHHmmss":8===l.length&&(d="YYYYMMdd"),P()(l,d).add(Number(u),"days").format("YYYYMMDDHHmmss")}if(n.toUpperCase().indexOf(",ADDMONTHS")>0){s=n.toUpperCase().indexOf(",ADDMONTHS"),i=n.substring(0,s),u=n.substring(n.indexOf("(")+1,n.indexOf(")")),l=g(i),d="YYYYMMDDHHmmss";return 14===l.length?d="YYYYMMDDHHmmss":8===l.length&&(d="YYYYMMdd"),P()(l,d).add(Number(u),"M").format("YYYYMMDDHHmmss")}return"2"===t?Number(e):e}function M(){var e=document.getElementsByClassName("colDesc");for(let t=0;t<e.length;t++){const n=e[t];n.innerHTML=n.innerHTML.replaceAll("<br>","<br>")}}function v(){i.value.forEach((e=>{if(""!==e.FORM_FILTER.trim()&&""!==e.FATHER_FIELD.trim()){var t=e.FORM_FILTER.substring(0,e.FORM_FILTER.indexOf("=")).trim();console.log(t);for(let n=0;n<l.value[e.CODE_TABLE_NAME].data.length;n++){const r=l.value[e.CODE_TABLE_NAME].data[n];l.value[e.CODE_TABLE_NAME].data[n].showFlag=!0,""!==u[0][e.FATHER_FIELD]&&" "!==u[0][e.FATHER_FIELD]&&r[t]!==u[0][e.FATHER_FIELD]?r.showFlag=!1:r.showFlag=!0}}}))}const L=(0,n.reactive)([]);function w(){L.splice(0,L.length),setTimeout((()=>{for(let e=0;e<u.length;e++){L.push({});for(let t=0;t<i.value.length;t++)L[e][i.value[t].ITEM_CODE]=!1}u.forEach(((e,t)=>{i.value.forEach((n=>{"1"===n.ITEM_MUST_FLAG&&("2"===n.DATA_TYPE?0===Number(e[n.ITEM_CODE])&&(L[t][n.ITEM_CODE]=!0):""!==e[n.ITEM_CODE]&&" "!==e[n.ITEM_CODE]||(L[t][n.ITEM_CODE]=!0))}))}))}),300);let e=!1;return u.forEach(((t,n)=>{i.value.forEach((n=>{"1"===n.ITEM_MUST_FLAG&&("2"===n.DATA_TYPE?0===Number(t[n.ITEM_CODE])&&(e=!0):""!==t[n.ITEM_CODE]&&" "!==t[n.ITEM_CODE]||(e=!0))}))})),!e}function k(){u.forEach((e=>{y(e)}))}function Y(e,t){if(u.length<=e)console.log("data中不存在第"+e+"行数据");else for(const n in t)t.hasOwnProperty(n)&&(console.log(`属性名: ${n}, 属性值: ${t[n]}`),u[e].hasOwnProperty(n)&&(u[e][n]=t[n]))}function b(){return c["TSI00GRIDVIEW"].data[0].TABLE_NAME}return(0,n.onMounted)((()=>{m(),h()})),(0,n.watch)((()=>i.value),(()=>{(0,n.nextTick)((()=>{M(),setTimeout((()=>{console.log("codesets--------",l.value)}),1e3)}))}),{deep:!0}),(t,r)=>{const a=(0,n.resolveComponent)("van-col"),o=(0,n.resolveComponent)("van-row"),d=(0,n.resolveComponent)("NoData");return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[e.mainTitle&&""!==e.mainTitle?((0,n.openBlock)(),(0,n.createElementBlock)("div",ne,(0,n.toDisplayString)(e.mainTitle),1)):(0,n.createCommentVNode)("",!0),i.value.length>0&&(0,n.unref)(u).length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",re,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(u),((e,t)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",ae,[(0,n.createElementVNode)("div",oe,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(i.value,((e,r)=>((0,n.openBlock)(),(0,n.createBlock)(o,{justify:"center"},{default:(0,n.withCtx)((()=>[(0,n.createVNode)(a,{class:"singleRow colDesc",style:(0,n.normalizeStyle)("color:"+e.HEAD_TEXTCOLOR),span:"6"},{default:(0,n.withCtx)((()=>["1"===e.ITEM_MUST_FLAG?((0,n.openBlock)(),(0,n.createElementBlock)("div",se,"*")):(0,n.createCommentVNode)("",!0),(0,n.createTextVNode)(" "+(0,n.toDisplayString)(e.COL_CAPTION)+": ",1)])),_:2},1032,["style"]),(0,n.createVNode)(a,{class:"singleRow colData",style:(0,n.normalizeStyle)("color:"+e.CELL_TEXTCOLOR),span:"16"},{default:(0,n.withCtx)((()=>["0"===e.COLUMN_EDIT?((0,n.openBlock)(),(0,n.createBlock)(q,{key:0,height:e.ROWHIGH,data:(0,n.unref)(u)[t][e.ITEM_CODE],onInput:r=>{(0,n.unref)(u)[t][e.ITEM_CODE]=r},checkFlag:L.length>0&&L[t][e.ITEM_CODE],readOnly:"0"!==e.READ_ONLY},null,8,["height","data","onInput","checkFlag","readOnly"])):(0,n.createCommentVNode)("",!0),"1"===e.COLUMN_EDIT?((0,n.openBlock)(),(0,n.createBlock)(te,{key:1,data:(0,n.unref)(u)[t][e.ITEM_CODE],onInput:r=>{(0,n.unref)(u)[t][e.ITEM_CODE]=r},onBtnClick:n=>s("btnClick",{ITEM_CODE:e.ITEM_CODE,INDEX:t}),checkFlag:L.length>0&&L[t][e.ITEM_CODE],readOnly:"0"!==e.READ_ONLY},null,8,["data","onInput","onBtnClick","checkFlag","readOnly"])):(0,n.createCommentVNode)("",!0),"9"===e.COLUMN_EDIT?((0,n.openBlock)(),(0,n.createBlock)(V,{key:2,data:(0,n.unref)(u)[t][e.ITEM_CODE],scale:e.DATA_ACCU,onInput:r=>{(0,n.unref)(u)[t][e.ITEM_CODE]=r},checkFlag:L.length>0&&L[t][e.ITEM_CODE],readOnly:"0"!==e.READ_ONLY},null,8,["data","scale","onInput","checkFlag","readOnly"])):(0,n.createCommentVNode)("",!0),"5"===e.COLUMN_EDIT?((0,n.openBlock)(),(0,n.createBlock)(X,{key:3,data:(0,n.unref)(u)[t][e.ITEM_CODE],type:e.FORMAT_STRING,onInput:r=>{(0,n.unref)(u)[t][e.ITEM_CODE]=r},title:e.COL_CAPTION,checkFlag:L.length>0&&L[t][e.ITEM_CODE],readOnly:"0"!==e.READ_ONLY},null,8,["data","type","onInput","title","checkFlag","readOnly"])):(0,n.createCommentVNode)("",!0),"7"===e.COLUMN_EDIT?((0,n.openBlock)(),(0,n.createBlock)(F,{key:4,data:(0,n.unref)(u)[t][e.ITEM_CODE],"code-set":l.value[e.CODE_TABLE_NAME],type:e.FORMAT_STRING,onInput:r=>{(0,n.unref)(u)[t][e.ITEM_CODE]=r},title:e.COL_CAPTION,"value-col":e.VALUE_MEMBER,"display-col":e.DISPLAY_MEMBER,"show-search":!0,checkFlag:L.length>0&&L[t][e.ITEM_CODE],readOnly:"0"!==e.READ_ONLY},null,8,["data","code-set","type","onInput","title","value-col","display-col","checkFlag","readOnly"])):(0,n.createCommentVNode)("",!0)])),_:2},1032,["style"])])),_:2},1024)))),256))])])))),256))])):(0,n.createCommentVNode)("",!0),0===i.value.length||0===(0,n.unref)(u).length?((0,n.openBlock)(),(0,n.createBlock)(d,{key:2})):(0,n.createCommentVNode)("",!0)],64)}}}),ue=(0,h.Z)(ie,[["__scopeId","data-v-5af4bea8"]]),le=ue,de=j(le),ce=de;Object.assign;const me=()=>{},he=Array.isArray;function fe(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function _e(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!pe(e[n],t[n]))return!1;return!0}function pe(e,t){return he(e)?ye(e,t):he(t)?ye(t,e):e===t}function ye(e,t){return he(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var ge,Me;(function(e){e["pop"]="pop",e["push"]="push"})(ge||(ge={})),function(e){e["back"]="back",e["forward"]="forward",e["unknown"]=""}(Me||(Me={}));new Map;Symbol("");var ve;(function(e){e[e["aborted"]=4]="aborted",e[e["cancelled"]=8]="cancelled",e[e["duplicated"]=16]="duplicated"})(ve||(ve={}));Symbol(""),Symbol("");const Le=Symbol(""),we=Symbol("");Symbol("");function ke(e){const t=(0,n.inject)(Le),r=(0,n.inject)(we),a=(0,n.computed)((()=>t.resolve((0,n.unref)(e.to)))),o=(0,n.computed)((()=>{const{matched:e}=a.value,{length:t}=e,n=e[t-1],o=r.matched;if(!n||!o.length)return-1;const s=o.findIndex(fe.bind(null,n));if(s>-1)return s;const i=De(e[t-2]);return t>1&&De(n)===i&&o[o.length-1].path!==i?o.findIndex(fe.bind(null,e[t-2])):s})),s=(0,n.computed)((()=>o.value>-1&&be(r.params,a.value.params))),i=(0,n.computed)((()=>o.value>-1&&o.value===r.matched.length-1&&_e(r.params,a.value.params)));function u(r={}){return Ye(r)?t[(0,n.unref)(e.replace)?"replace":"push"]((0,n.unref)(e.to)).catch(me):Promise.resolve()}return{route:a,href:(0,n.computed)((()=>a.value.href)),isActive:s,isExactActive:i,navigate:u}}Boolean,Boolean;function Ye(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function be(e,t){for(const n in t){const r=t[n],a=e[n];if("string"===typeof r){if(r!==a)return!1}else if(!he(a)||a.length!==r.length||r.some(((e,t)=>e!==a[t])))return!1}return!0}function De(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Te=(e,t,n)=>null!=e?e:null!=t?t:n;function Se(){return(0,n.inject)(Le)}const Ae=e=>void 0!==e&&null!==e,xe=e=>"function"===typeof e,Ce=e=>null!==e&&"object"===typeof e,Ee=e=>Ce(e)&&xe(e.then)&&xe(e.catch);const je=e=>"number"===typeof e||/^\d+(\.\d+)?$/.test(e),Oe=()=>!!Pe&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());function He(){}const Ne=Object.assign,Pe="undefined"!==typeof window;function Ie(e,t){const n=t.split(".");let r=e;return n.forEach((e=>{var t;r=Ce(r)&&null!=(t=r[e])?t:""})),r}function Re(e,t,n){return t.reduce(((t,r)=>(n&&void 0===e[r]||(t[r]=e[r]),t)),{})}function Fe(e){if(Ae(e))return je(e)?`${e}px`:String(e)}function Be(e){if(Ae(e)){if(Array.isArray(e))return{width:Fe(e[0]),height:Fe(e[1])};const t=Fe(e);return{width:t,height:t}}}function We(e){const t={};return void 0!==e&&(t.zIndex=+e),t}const Ve=/-(\w)/g,ze=e=>e.replace(Ve,((e,t)=>t.toUpperCase())),Ue=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");const qe=(e,t,n)=>Math.min(Math.max(e,t),n);function Je(e){return e.install=t=>{const{name:n}=e;n&&(t.component(n,e),t.component(ze(`-${n}`),e))},e}function Ge(e){const t=(0,n.getCurrentInstance)();t&&Ne(t.proxy,e)}function $e(){const e=(0,n.reactive)({show:!1}),t=t=>{e.show=t},r=n=>{Ne(e,n,{transitionAppear:!0}),t(!0)},a=()=>t(!1);return Ge({open:r,close:a,toggle:t}),{open:r,close:a,state:e,toggle:t}}function Ke(e){const t=(0,n.createApp)(e),r=document.createElement("div");return document.body.appendChild(r),{instance:t.mount(r),unmount(){t.unmount(),document.body.removeChild(r)}}}const{hasOwnProperty:Ze}=Object.prototype;function Xe(e,t,n){const r=t[n];Ae(r)&&(Ze.call(e,n)&&Ce(r)?e[n]=Qe(Object(e[n]),r):e[n]=r)}function Qe(e,t){return Object.keys(t).forEach((n=>{Xe(e,t,n)})),e}var et={name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,t)=>`${e}年${t}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码不正确",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const tt=(0,n.ref)("zh-CN"),nt=(0,n.reactive)({"zh-CN":et}),rt={messages(){return nt[tt.value]},use(e,t){tt.value=e,this.add({[e]:t})},add(e={}){Qe(nt,e)}};var at=rt;function ot(e){const t=ze(e)+".";return(e,...n)=>{const r=at.messages(),a=Ie(r,t+e)||Ie(r,e);return xe(a)?a(...n):a}}function st(e,t){return t?"string"===typeof t?` ${e}--${t}`:Array.isArray(t)?t.reduce(((t,n)=>t+st(e,n)),""):Object.keys(t).reduce(((n,r)=>n+(t[r]?st(e,r):"")),""):""}function it(e){return(t,n)=>(t&&"string"!==typeof t&&(n=t,t=""),t=t?`${e}__${t}`:e,`${t}${st(t,n)}`)}function ut(e){const t=`van-${e}`;return[t,it(t),ot(t)]}const lt=null,dt=[Number,String],ct={type:Boolean,default:!0},mt=e=>({type:e,required:!0}),ht=()=>({type:Array,default:()=>[]}),ft=e=>({type:Number,default:e}),_t=e=>({type:dt,default:e}),pt=e=>({type:String,default:e});let yt=0;function gt(e){e?(yt||document.body.classList.add("van-toast--unclickable"),yt++):yt&&(yt--,yt||document.body.classList.remove("van-toast--unclickable"))}const[Mt,vt]=ut("badge"),Lt={dot:Boolean,max:dt,tag:pt("div"),color:String,offset:Array,content:dt,showZero:ct,position:pt("top-right")};var wt=(0,n.defineComponent)({name:Mt,props:Lt,setup(e,{slots:t}){const r=()=>{if(t.content)return!0;const{content:n,showZero:r}=e;return Ae(n)&&""!==n&&(r||0!==n&&"0"!==n)},a=()=>{const{dot:n,max:a,content:o}=e;if(!n&&r())return t.content?t.content():Ae(a)&&je(o)&&+o>a?`${a}+`:o},o=(0,n.computed)((()=>{const n={background:e.color};if(e.offset){const[r,a]=e.offset;t.default?(n.top=Fe(a),n.right="number"===typeof r?Fe(-r):r.startsWith("-")?r.replace("-",""):`-${r}`):(n.marginTop=Fe(a),n.marginLeft=Fe(r))}return n})),s=()=>{if(r()||e.dot)return(0,n.createVNode)("div",{class:vt([e.position,{dot:e.dot,fixed:!!t.default}]),style:o.value},[a()])};return()=>{if(t.default){const{tag:r}=e;return(0,n.createVNode)(r,{class:vt("wrapper")},{default:()=>[t.default(),s()]})}return s()}}});const kt=Je(wt);let Yt=2e3;const bt=()=>++Yt,Dt=e=>{Yt=e},[Tt,St]=ut("config-provider"),At=Symbol(Tt),xt={tag:pt("div"),zIndex:Number,themeVars:Object,iconPrefix:String};function Ct(e){const t={};return Object.keys(e).forEach((n=>{t[`--van-${Ue(n)}`]=e[n]})),t}(0,n.defineComponent)({name:Tt,props:xt,setup(e,{slots:t}){const r=(0,n.computed)((()=>{if(e.themeVars)return Ct(e.themeVars)}));return(0,n.provide)(At,e),(0,n.watchEffect)((()=>{void 0!==e.zIndex&&Dt(e.zIndex)})),()=>(0,n.createVNode)(e.tag,{class:St(),style:r.value},{default:()=>{var e;return[null==(e=t.default)?void 0:e.call(t)]}})}});const[Et,jt]=ut("icon"),Ot=e=>null==e?void 0:e.includes("/"),Ht={dot:Boolean,tag:pt("i"),name:String,size:dt,badge:dt,color:String,badgeProps:Object,classPrefix:String};var Nt=(0,n.defineComponent)({name:Et,props:Ht,setup(e,{slots:t}){const r=(0,n.inject)(At,null),a=(0,n.computed)((()=>e.classPrefix||(null==r?void 0:r.iconPrefix)||jt()));return()=>{const{tag:r,dot:o,name:s,size:i,badge:u,color:l}=e,d=Ot(s);return(0,n.createVNode)(kt,(0,n.mergeProps)({dot:o,tag:r,class:[a.value,d?"":`${a.value}-${s}`],style:{color:l,fontSize:Fe(i)},content:u},e.badgeProps),{default:()=>{var e;return[null==(e=t.default)?void 0:e.call(t),d&&(0,n.createVNode)("img",{class:jt("image"),src:s},null)]}})}}});const Pt=Je(Nt);const It={show:Boolean,zIndex:dt,overlay:ct,duration:dt,teleport:[String,Object],lockScroll:ct,lazyRender:ct,beforeClose:Function,overlayStyle:Object,overlayClass:lt,transitionAppear:Boolean,closeOnClickOverlay:ct};Object.keys(It);function Rt(e,{args:t=[],done:n,canceled:r}){if(e){const a=e.apply(null,t);Ee(a)?a.then((e=>{e?n():r&&r()})).catch(He):a?n():r&&r()}else n()}const Ft="van-hairline",Bt=`${Ft}--bottom`,Wt=`${Ft}--surround`,Vt="van-haptics-feedback";Symbol("van-form");var zt="undefined"!==typeof window;function Ut(e){return zt?requestAnimationFrame(e):-1}function qt(e){Ut((()=>Ut(e)))}var Jt=e=>e===window,Gt=(e,t)=>({top:0,left:0,right:e,bottom:t,width:e,height:t}),$t=e=>{const t=(0,n.unref)(e);if(Jt(t)){const e=t.innerWidth,n=t.innerHeight;return Gt(e,n)}return(null==t?void 0:t.getBoundingClientRect)?t.getBoundingClientRect():Gt(0,0)};function Kt(e){const t=(0,n.inject)(e,null);if(t){const e=(0,n.getCurrentInstance)(),{link:r,unlink:a,internalChildren:o}=t;r(e),(0,n.onUnmounted)((()=>a(e)));const s=(0,n.computed)((()=>o.indexOf(e)));return{parent:t,index:s}}return{parent:null,index:(0,n.ref)(-1)}}function Zt(e){const t=[],r=e=>{Array.isArray(e)&&e.forEach((e=>{var a;(0,n.isVNode)(e)&&(t.push(e),(null==(a=e.component)?void 0:a.subTree)&&(t.push(e.component.subTree),r(e.component.subTree.children)),e.children&&r(e.children))}))};return r(e),t}var Xt=(e,t)=>{const n=e.indexOf(t);return-1===n?e.findIndex((e=>void 0!==t.key&&null!==t.key&&e.type===t.type&&e.key===t.key)):n};function Qt(e,t,n){const r=Zt(e.subTree.children);n.sort(((e,t)=>Xt(r,e.vnode)-Xt(r,t.vnode)));const a=n.map((e=>e.proxy));t.sort(((e,t)=>{const n=a.indexOf(e),r=a.indexOf(t);return n-r}))}function en(e){const t=(0,n.reactive)([]),r=(0,n.reactive)([]),a=(0,n.getCurrentInstance)(),o=o=>{const s=e=>{e.proxy&&(r.push(e),t.push(e.proxy),Qt(a,t,r))},i=e=>{const n=r.indexOf(e);t.splice(n,1),r.splice(n,1)};(0,n.provide)(e,Object.assign({link:s,unlink:i,children:t,internalChildren:r},o))};return{children:t,linkChildren:o}}var tn,nn;function rn(e){let t;(0,n.onMounted)((()=>{e(),(0,n.nextTick)((()=>{t=!0}))})),(0,n.onActivated)((()=>{t&&e()}))}function an(e,t,r={}){if(!zt)return;const{target:a=window,passive:o=!1,capture:s=!1}=r;let i,u=!1;const l=r=>{if(u)return;const a=(0,n.unref)(r);a&&!i&&(a.addEventListener(e,t,{capture:s,passive:o}),i=!0)},d=r=>{if(u)return;const a=(0,n.unref)(r);a&&i&&(a.removeEventListener(e,t,s),i=!1)};let c;return(0,n.onUnmounted)((()=>d(a))),(0,n.onDeactivated)((()=>d(a))),rn((()=>l(a))),(0,n.isRef)(a)&&(c=(0,n.watch)(a,((e,t)=>{d(t),l(e)}))),()=>{null==c||c(),d(a),u=!0}}function on(){if(!tn&&(tn=(0,n.ref)(0),nn=(0,n.ref)(0),zt)){const e=()=>{tn.value=window.innerWidth,nn.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:tn,height:nn}}var sn,un=/scroll|auto|overlay/i,ln=zt?window:void 0;function dn(e){const t=1;return"HTML"!==e.tagName&&"BODY"!==e.tagName&&e.nodeType===t}function cn(e,t=ln){let n=e;while(n&&n!==t&&dn(n)){const{overflowY:e}=window.getComputedStyle(n);if(un.test(e))return n;n=n.parentNode}return t}function mn(){if(!sn&&(sn=(0,n.ref)("visible"),zt)){const e=()=>{sn.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return sn}Symbol("van-field");function hn(e,t){return e>t?"horizontal":t>e?"vertical":""}function fn(){const e=(0,n.ref)(0),t=(0,n.ref)(0),r=(0,n.ref)(0),a=(0,n.ref)(0),o=(0,n.ref)(0),s=(0,n.ref)(0),i=(0,n.ref)(""),u=()=>"vertical"===i.value,l=()=>"horizontal"===i.value,d=()=>{r.value=0,a.value=0,o.value=0,s.value=0,i.value=""},c=n=>{d(),e.value=n.touches[0].clientX,t.value=n.touches[0].clientY},m=n=>{const u=n.touches[0];r.value=(u.clientX<0?0:u.clientX)-e.value,a.value=u.clientY-t.value,o.value=Math.abs(r.value),s.value=Math.abs(a.value);const l=10;(!i.value||o.value<l&&s.value<l)&&(i.value=hn(o.value,s.value))};return{move:m,start:c,reset:d,startX:e,startY:t,deltaX:r,deltaY:a,offsetX:o,offsetY:s,direction:i,isVertical:u,isHorizontal:l}}Oe();const _n=e=>e.stopPropagation();function pn(e,t){("boolean"!==typeof e.cancelable||e.cancelable)&&e.preventDefault(),t&&_n(e)}function yn(e){const t=(0,n.unref)(e);if(!t)return!1;const r=window.getComputedStyle(t),a="none"===r.display,o=null===t.offsetParent&&"fixed"!==r.position;return a||o}const{width:gn,height:Mn}=on();let vn=0;const Ln="van-overflow-hidden";function wn(e,t){const r=fn(),a="01",o="10",s=t=>{r.move(t);const n=r.deltaY.value>0?o:a,s=cn(t.target,e.value),{scrollHeight:i,offsetHeight:u,scrollTop:l}=s;let d="11";0===l?d=u>=i?"00":"01":l+u>=i&&(d="10"),"11"===d||!r.isVertical()||parseInt(d,2)&parseInt(n,2)||pn(t,!0)},i=()=>{document.addEventListener("touchstart",r.start),document.addEventListener("touchmove",s,{passive:!1}),vn||document.body.classList.add(Ln),vn++},u=()=>{vn&&(document.removeEventListener("touchstart",r.start),document.removeEventListener("touchmove",s),vn--,vn||document.body.classList.remove(Ln))},l=()=>t()&&i(),d=()=>t()&&u();rn(l),(0,n.onDeactivated)(d),(0,n.onBeforeUnmount)(d),(0,n.watch)(t,(e=>{e?i():u()}))}function kn(e){const t=(0,n.ref)(!1);return(0,n.watch)(e,(e=>{e&&(t.value=e)}),{immediate:!0}),e=>()=>t.value?e():null}const Yn=Symbol();function bn(e){const t=(0,n.inject)(Yn,null);t&&(0,n.watch)(t,(t=>{t&&e()}))}const[Dn,Tn]=ut("overlay"),Sn={show:Boolean,zIndex:dt,duration:dt,className:lt,lockScroll:ct,lazyRender:ct,customStyle:Object};var An=(0,n.defineComponent)({name:Dn,props:Sn,setup(e,{slots:t}){const r=(0,n.ref)(),a=kn((()=>e.show||!e.lazyRender)),o=t=>{e.lockScroll&&pn(t,!0)},s=a((()=>{var a;const o=Ne(We(e.zIndex),e.customStyle);return Ae(e.duration)&&(o.animationDuration=`${e.duration}s`),(0,n.withDirectives)((0,n.createVNode)("div",{ref:r,style:o,class:[Tn(),e.className]},[null==(a=t.default)?void 0:a.call(t)]),[[n.vShow,e.show]])}));return an("touchmove",o,{target:r}),()=>(0,n.createVNode)(n.Transition,{name:"van-fade",appear:!0},{default:s})}});const xn=Je(An);const Cn=Ne({},It,{round:Boolean,position:pt("center"),closeIcon:pt("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:pt("top-right"),safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[En,jn]=ut("popup");var On=(0,n.defineComponent)({name:En,inheritAttrs:!1,props:Cn,emits:["open","close","opened","closed","keydown","update:show","click-overlay","click-close-icon"],setup(e,{emit:t,attrs:r,slots:a}){let o,s;const i=(0,n.ref)(),u=(0,n.ref)(),l=kn((()=>e.show||!e.lazyRender)),d=(0,n.computed)((()=>{const t={zIndex:i.value};if(Ae(e.duration)){const n="center"===e.position?"animationDuration":"transitionDuration";t[n]=`${e.duration}s`}return t})),c=()=>{o||(o=!0,i.value=void 0!==e.zIndex?+e.zIndex:bt(),t("open"))},m=()=>{o&&Rt(e.beforeClose,{done(){o=!1,t("close"),t("update:show",!1)}})},h=n=>{t("click-overlay",n),e.closeOnClickOverlay&&m()},f=()=>{if(e.overlay)return(0,n.createVNode)(xn,{show:e.show,class:e.overlayClass,zIndex:i.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0,onClick:h},{default:a["overlay-content"]})},_=e=>{t("click-close-icon",e),m()},p=()=>{if(e.closeable)return(0,n.createVNode)(Pt,{role:"button",tabindex:0,name:e.closeIcon,class:[jn("close-icon",e.closeIconPosition),Vt],classPrefix:e.iconPrefix,onClick:_},null)},y=()=>t("opened"),g=()=>t("closed"),M=e=>t("keydown",e),v=l((()=>{var t;const{round:o,position:s,safeAreaInsetTop:i,safeAreaInsetBottom:l}=e;return(0,n.withDirectives)((0,n.createVNode)("div",(0,n.mergeProps)({ref:u,style:d.value,role:"dialog",tabindex:0,class:[jn({round:o,[s]:s}),{"van-safe-area-top":i,"van-safe-area-bottom":l}],onKeydown:M},r),[null==(t=a.default)?void 0:t.call(a),p()]),[[n.vShow,e.show]])})),L=()=>{const{position:t,transition:r,transitionAppear:a}=e,o="center"===t?"van-fade":`van-popup-slide-${t}`;return(0,n.createVNode)(n.Transition,{name:r||o,appear:a,onAfterEnter:y,onAfterLeave:g},{default:v})};return(0,n.watch)((()=>e.show),(e=>{e&&!o&&(c(),0===r.tabindex&&(0,n.nextTick)((()=>{var e;null==(e=u.value)||e.focus()}))),!e&&o&&(o=!1,t("close"))})),Ge({popupRef:u}),wn(u,(()=>e.show&&e.lockScroll)),an("popstate",(()=>{e.closeOnPopstate&&(m(),s=!1)})),(0,n.onMounted)((()=>{e.show&&c()})),(0,n.onActivated)((()=>{s&&(t("update:show",!0),s=!1)})),(0,n.onDeactivated)((()=>{e.show&&e.teleport&&(m(),s=!0)})),(0,n.provide)(Yn,(()=>e.show)),()=>e.teleport?(0,n.createVNode)(n.Teleport,{to:e.teleport},{default:()=>[f(),L()]}):(0,n.createVNode)(n.Fragment,null,[f(),L()])}});const Hn=Je(On);const[Nn,Pn]=ut("loading"),In=Array(12).fill(null).map(((e,t)=>(0,n.createVNode)("i",{class:Pn("line",String(t+1))},null))),Rn=(0,n.createVNode)("svg",{class:Pn("circular"),viewBox:"25 25 50 50"},[(0,n.createVNode)("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),Fn={size:dt,type:pt("circular"),color:String,vertical:Boolean,textSize:dt,textColor:String};var Bn=(0,n.defineComponent)({name:Nn,props:Fn,setup(e,{slots:t}){const r=(0,n.computed)((()=>Ne({color:e.color},Be(e.size)))),a=()=>{var r;if(t.default)return(0,n.createVNode)("span",{class:Pn("text"),style:{fontSize:Fe(e.textSize),color:null!=(r=e.textColor)?r:e.color}},[t.default()])};return()=>{const{type:t,vertical:o}=e;return(0,n.createVNode)("div",{class:Pn([t,{vertical:o}]),"aria-live":"polite","aria-busy":!0},[(0,n.createVNode)("span",{class:Pn("spinner",t),style:r.value},["spinner"===t?In:Rn]),a()])}}});const Wn=Je(Bn);const[Vn,zn]=ut("toast"),Un=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay"],qn={icon:String,show:Boolean,type:pt("text"),overlay:Boolean,message:dt,iconSize:dt,duration:ft(2e3),position:pt("middle"),teleport:[String,Object],className:lt,iconPrefix:String,transition:pt("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:lt,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean};var Jn=(0,n.defineComponent)({name:Vn,props:qn,emits:["update:show"],setup(e,{emit:t}){let r,a=!1;const o=()=>{const t=e.show&&e.forbidClick;a!==t&&(a=t,gt(a))},s=e=>t("update:show",e),i=()=>{e.closeOnClick&&s(!1)},u=()=>clearTimeout(r),l=()=>{const{icon:t,type:r,iconSize:a,iconPrefix:o,loadingType:s}=e,i=t||"success"===r||"fail"===r;return i?(0,n.createVNode)(Pt,{name:t||r,size:a,class:zn("icon"),classPrefix:o},null):"loading"===r?(0,n.createVNode)(Wn,{class:zn("loading"),size:a,type:s},null):void 0},d=()=>{const{type:t,message:r}=e;if(Ae(r)&&""!==r)return"html"===t?(0,n.createVNode)("div",{key:0,class:zn("text"),innerHTML:String(r)},null):(0,n.createVNode)("div",{class:zn("text")},[r])};return(0,n.watch)((()=>[e.show,e.forbidClick]),o),(0,n.watch)((()=>[e.show,e.type,e.message,e.duration]),(()=>{u(),e.show&&e.duration>0&&(r=setTimeout((()=>{s(!1)}),e.duration))})),(0,n.onMounted)(o),(0,n.onUnmounted)(o),()=>(0,n.createVNode)(Hn,(0,n.mergeProps)({class:[zn([e.position,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:i,onClosed:u,"onUpdate:show":s},Re(e,Un)),{default:()=>[l(),d()]})}});const Gn={icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1};let $n=[],Kn=!1,Zn=Ne({},Gn);const Xn=new Map;function Qn(e){return Ce(e)?e:{message:e}}function er(){const{instance:e,unmount:t}=Ke({setup(){const r=(0,n.ref)(""),{open:a,state:o,close:s,toggle:i}=$e(),u=()=>{Kn&&($n=$n.filter((t=>t!==e)),t())},l=()=>{const e={onClosed:u,"onUpdate:show":i};return(0,n.createVNode)(Jn,(0,n.mergeProps)(o,e),null)};return(0,n.watch)(r,(e=>{o.message=e})),(0,n.getCurrentInstance)().render=l,{open:a,clear:s,message:r}}});return e}function tr(){if(!$n.length||Kn){const e=er();$n.push(e)}return $n[$n.length-1]}function nr(e={}){if(!Pe)return{};const t=tr(),n=Qn(e);return t.open(Ne({},Zn,Xn.get(n.type||Zn.type),n)),t}const rr=e=>t=>nr(Ne({type:e},Qn(t)));function ar(e,t){"string"===typeof e?Xn.set(e,t):Ne(Zn,e)}nr.loading=rr("loading"),nr.success=rr("success"),nr.fail=rr("fail"),nr.clear=e=>{var t;$n.length&&(e?($n.forEach((e=>{e.clear()})),$n=[]):Kn?null==(t=$n.shift())||t.clear():$n[0].clear())},nr.setDefaultOptions=ar,nr.resetDefaultOptions=e=>{"string"===typeof e?Xn.delete(e):(Zn=Ne({},Gn),Xn.clear())},nr.allowMultiple=(e=!0)=>{Kn=e},nr.install=e=>{e.use(Je(Jn)),e.config.globalProperties.$toast=nr};const or={to:[String,Object],url:String,replace:Boolean};function sr({to:e,url:t,replace:n,$router:r}){e&&r?r[n?"replace":"push"](e):t&&(n?location.replace(t):location.href=t)}function ir(){const e=(0,n.getCurrentInstance)().proxy;return()=>sr(e)}const[ur,lr]=ut("button"),dr=Ne({},or,{tag:pt("button"),text:String,icon:String,type:pt("default"),size:pt("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:pt("button"),loadingSize:dt,loadingText:String,loadingType:String,iconPosition:pt("left")});var cr=(0,n.defineComponent)({name:ur,props:dr,emits:["click"],setup(e,{emit:t,slots:r}){const a=ir(),o=()=>r.loading?r.loading():(0,n.createVNode)(Wn,{size:e.loadingSize,type:e.loadingType,class:lr("loading")},null),s=()=>e.loading?o():r.icon?(0,n.createVNode)("div",{class:lr("icon")},[r.icon()]):e.icon?(0,n.createVNode)(Pt,{name:e.icon,class:lr("icon"),classPrefix:e.iconPrefix},null):void 0,i=()=>{let t;if(t=e.loading?e.loadingText:r.default?r.default():e.text,t)return(0,n.createVNode)("span",{class:lr("text")},[t])},u=()=>{const{color:t,plain:n}=e;if(t){const e={color:n?t:"white"};return n||(e.background=t),t.includes("gradient")?e.border=0:e.borderColor=t,e}},l=n=>{e.loading?pn(n):e.disabled||(t("click",n),a())};return()=>{const{tag:t,type:r,size:a,block:o,round:d,plain:c,square:m,loading:h,disabled:f,hairline:_,nativeType:p,iconPosition:y}=e,g=[lr([r,a,{plain:c,block:o,round:d,square:m,loading:h,disabled:f,hairline:_}]),{[Wt]:_}];return(0,n.createVNode)(t,{type:p,class:g,style:u(),disabled:f,onClick:l},{default:()=>[(0,n.createVNode)("div",{class:lr("content")},["left"===y&&s(),i(),"right"===y&&s()])]})}}});const mr=Je(cr);let hr=0;function fr(){const e=(0,n.getCurrentInstance)(),{name:t="unknown"}=(null==e?void 0:e.type)||{};return`${t}-${++hr}`}const[_r,pr]=ut("empty"),yr={image:pt("default"),imageSize:[Number,String,Array],description:String};var gr=(0,n.defineComponent)({name:_r,props:yr,setup(e,{slots:t}){const r=()=>{const r=t.description?t.description():e.description;if(r)return(0,n.createVNode)("p",{class:pr("description")},[r])},a=()=>{if(t.default)return(0,n.createVNode)("div",{class:pr("bottom")},[t.default()])},o=fr(),s=e=>`${o}-${e}`,i=e=>`url(#${s(e)})`,u=(e,t,r)=>(0,n.createVNode)("stop",{"stop-color":e,offset:`${t}%`,"stop-opacity":r},null),l=(e,t)=>[u(e,0),u(t,100)],d=e=>[(0,n.createVNode)("defs",null,[(0,n.createVNode)("radialGradient",{id:s(e),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[u("#EBEDF0",0),u("#F2F3F5",100,.3)])]),(0,n.createVNode)("ellipse",{fill:i(e),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],c=()=>[(0,n.createVNode)("defs",null,[(0,n.createVNode)("linearGradient",{id:s("a"),x1:"64%",y1:"100%",x2:"64%"},[u("#FFF",0,.5),u("#F2F3F5",100)])]),(0,n.createVNode)("g",{opacity:".8"},[(0,n.createVNode)("path",{d:"M36 131V53H16v20H2v58h34z",fill:i("a")},null),(0,n.createVNode)("path",{d:"M123 15h22v14h9v77h-31V15z",fill:i("a")},null)])],m=()=>[(0,n.createVNode)("defs",null,[(0,n.createVNode)("linearGradient",{id:s("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[u("#F2F3F5",0,.3),u("#F2F3F5",100)])]),(0,n.createVNode)("g",{opacity:".8"},[(0,n.createVNode)("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:i("b")},null),(0,n.createVNode)("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:i("b")},null)])],h=()=>(0,n.createVNode)("svg",{viewBox:"0 0 160 160"},[(0,n.createVNode)("defs",null,[(0,n.createVNode)("linearGradient",{id:s(1),x1:"64%",y1:"100%",x2:"64%"},[u("#FFF",0,.5),u("#F2F3F5",100)]),(0,n.createVNode)("linearGradient",{id:s(2),x1:"50%",x2:"50%",y2:"84%"},[u("#EBEDF0",0),u("#DCDEE0",100,0)]),(0,n.createVNode)("linearGradient",{id:s(3),x1:"100%",x2:"100%",y2:"100%"},[l("#EAEDF0","#DCDEE0")]),(0,n.createVNode)("radialGradient",{id:s(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[u("#EBEDF0",0),u("#FFF",100,0)])]),(0,n.createVNode)("g",{fill:"none"},[c(),(0,n.createVNode)("path",{fill:i(4),d:"M0 139h160v21H0z"},null),(0,n.createVNode)("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:i(2)},null),(0,n.createVNode)("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7"},[(0,n.createVNode)("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:i(3)},null),(0,n.createVNode)("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:i(3)},null),(0,n.createVNode)("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:i(3)},null),(0,n.createVNode)("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:i(3)},null)]),(0,n.createVNode)("g",{transform:"translate(31 105)"},[(0,n.createVNode)("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),(0,n.createVNode)("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),(0,n.createVNode)("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),f=()=>(0,n.createVNode)("svg",{viewBox:"0 0 160 160"},[(0,n.createVNode)("defs",null,[(0,n.createVNode)("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:s(5)},[l("#F2F3F5","#DCDEE0")]),(0,n.createVNode)("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:s(6)},[l("#EAEDF1","#DCDEE0")]),(0,n.createVNode)("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:s(7)},[l("#EAEDF1","#DCDEE0")])]),c(),m(),(0,n.createVNode)("g",{transform:"translate(36 50)",fill:"none"},[(0,n.createVNode)("g",{transform:"translate(8)"},[(0,n.createVNode)("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),(0,n.createVNode)("rect",{fill:i(5),width:"64",height:"66",rx:"2"},null),(0,n.createVNode)("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),(0,n.createVNode)("g",{transform:"translate(15 17)",fill:i(6)},[(0,n.createVNode)("rect",{width:"34",height:"6",rx:"1"},null),(0,n.createVNode)("path",{d:"M0 14h34v6H0z"},null),(0,n.createVNode)("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),(0,n.createVNode)("rect",{fill:i(7),y:"61",width:"88",height:"28",rx:"1"},null),(0,n.createVNode)("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),_=()=>(0,n.createVNode)("svg",{viewBox:"0 0 160 160"},[(0,n.createVNode)("defs",null,[(0,n.createVNode)("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:s(8)},[l("#EAEDF1","#DCDEE0")])]),c(),m(),d("c"),(0,n.createVNode)("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:i(8)},null)]),p=()=>(0,n.createVNode)("svg",{viewBox:"0 0 160 160"},[(0,n.createVNode)("defs",null,[(0,n.createVNode)("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:s(9)},[l("#EEE","#D8D8D8")]),(0,n.createVNode)("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:s(10)},[l("#F2F3F5","#DCDEE0")]),(0,n.createVNode)("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:s(11)},[l("#F2F3F5","#DCDEE0")]),(0,n.createVNode)("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:s(12)},[l("#FFF","#F7F8FA")])]),c(),m(),d("d"),(0,n.createVNode)("g",{transform:"rotate(-45 113 -4)",fill:"none"},[(0,n.createVNode)("rect",{fill:i(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),(0,n.createVNode)("rect",{fill:i(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),(0,n.createVNode)("circle",{stroke:i(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),(0,n.createVNode)("circle",{fill:i(12),cx:"27",cy:"27",r:"16"},null),(0,n.createVNode)("path",{d:"M37 7c-8 0-15 5-16 12",stroke:i(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),y=()=>{var r;if(t.image)return t.image();const a={error:_,search:p,network:h,default:f};return(null==(r=a[e.image])?void 0:r.call(a))||(0,n.createVNode)("img",{src:e.image},null)};return()=>(0,n.createVNode)("div",{class:pr()},[(0,n.createVNode)("div",{class:pr("image"),style:Be(e.imageSize)},[y()]),r(),a()])}});const Mr=Je(gr);const vr=(e,t)=>{const r=(0,n.ref)(),a=()=>{r.value=$t(e).height};return(0,n.onMounted)((()=>{if((0,n.nextTick)(a),t)for(let e=1;e<=3;e++)setTimeout(a,100*e)})),bn((()=>(0,n.nextTick)(a))),r};function Lr(e,t){const r=vr(e,!0);return e=>(0,n.createVNode)("div",{class:t("placeholder"),style:{height:r.value?`${r.value}px`:void 0}},[e()])}const[wr,kr]=ut("nav-bar"),Yr={title:String,fixed:Boolean,zIndex:dt,border:ct,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean};var br=(0,n.defineComponent)({name:wr,props:Yr,emits:["click-left","click-right"],setup(e,{emit:t,slots:r}){const a=(0,n.ref)(),o=Lr(a,kr),s=e=>t("click-left",e),i=e=>t("click-right",e),u=()=>r.left?r.left():[e.leftArrow&&(0,n.createVNode)(Pt,{class:kr("arrow"),name:"arrow-left"},null),e.leftText&&(0,n.createVNode)("span",{class:kr("text")},[e.leftText])],l=()=>r.right?r.right():(0,n.createVNode)("span",{class:kr("text")},[e.rightText]),d=()=>{const{title:t,fixed:o,border:d,zIndex:c}=e,m=We(c),h=e.leftArrow||e.leftText||r.left,f=e.rightText||r.right;return(0,n.createVNode)("div",{ref:a,style:m,class:[kr({fixed:o}),{[Bt]:d,"van-safe-area-top":e.safeAreaInsetTop}]},[(0,n.createVNode)("div",{class:kr("content")},[h&&(0,n.createVNode)("div",{class:[kr("left"),Vt],onClick:s},[u()]),(0,n.createVNode)("div",{class:[kr("title"),"van-ellipsis"]},[r.title?r.title():t]),f&&(0,n.createVNode)("div",{class:[kr("right"),Vt],onClick:i},[l()])])])};return()=>e.fixed&&e.placeholder?o(d):d()}});const Dr=Je(br);var Tr="0123456789abcdefghijklmnopqrstuvwxyz";function Sr(e){return Tr.charAt(e)}function Ar(e,t){return e&t}function xr(e,t){return e|t}function Cr(e,t){return e^t}function Er(e,t){return e&~t}function jr(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function Or(e){var t=0;while(0!=e)e&=e-1,++t;return t}var Hr,Nr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pr="=";function Ir(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=Nr.charAt(n>>6)+Nr.charAt(63&n);t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=Nr.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=Nr.charAt(n>>2)+Nr.charAt((3&n)<<4));while((3&r.length)>0)r+=Pr;return r}function Rr(e){var t,n="",r=0,a=0;for(t=0;t<e.length;++t){if(e.charAt(t)==Pr)break;var o=Nr.indexOf(e.charAt(t));o<0||(0==r?(n+=Sr(o>>2),a=3&o,r=1):1==r?(n+=Sr(a<<2|o>>4),a=15&o,r=2):2==r?(n+=Sr(a),n+=Sr(o>>2),a=3&o,r=3):(n+=Sr(a<<2|o>>4),n+=Sr(15&o),r=0))}return 1==r&&(n+=Sr(a<<2)),n}var Fr,Br={decode:function(e){var t;if(void 0===Hr){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(Hr={},t=0;t<16;++t)Hr[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)Hr[n.charAt(t)]=t;for(t=0;t<r.length;++t)Hr[r.charAt(t)]=-1}var a=[],o=0,s=0;for(t=0;t<e.length;++t){var i=e.charAt(t);if("="==i)break;if(i=Hr[i],-1!=i){if(void 0===i)throw new Error("Illegal character at offset "+t);o|=i,++s>=2?(a[a.length]=o,o=0,s=0):o<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return a}},Wr={decode:function(e){var t;if(void 0===Fr){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="= \f\n\r\t \u2028\u2029";for(Fr=Object.create(null),t=0;t<64;++t)Fr[n.charAt(t)]=t;for(Fr["-"]=62,Fr["_"]=63,t=0;t<r.length;++t)Fr[r.charAt(t)]=-1}var a=[],o=0,s=0;for(t=0;t<e.length;++t){var i=e.charAt(t);if("="==i)break;if(i=Fr[i],-1!=i){if(void 0===i)throw new Error("Illegal character at offset "+t);o|=i,++s>=4?(a[a.length]=o>>16,a[a.length]=o>>8&255,a[a.length]=255&o,o=0,s=0):o<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:a[a.length]=o>>10;break;case 3:a[a.length]=o>>16,a[a.length]=o>>8&255;break}return a},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=Wr.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return Wr.decode(e)}},Vr=1e13,zr=function(){function e(e){this.buf=[+e||0]}return e.prototype.mulAdd=function(e,t){var n,r,a=this.buf,o=a.length;for(n=0;n<o;++n)r=a[n]*e+t,r<Vr?t=0:(t=0|r/Vr,r-=t*Vr),a[n]=r;t>0&&(a[n]=t)},e.prototype.sub=function(e){var t,n,r=this.buf,a=r.length;for(t=0;t<a;++t)n=r[t]-e,n<0?(n+=Vr,e=1):e=0,r[t]=n;while(0===r[r.length-1])r.pop()},e.prototype.toString=function(e){if(10!=(e||10))throw new Error("only base 10 is supported");for(var t=this.buf,n=t[t.length-1].toString(),r=t.length-2;r>=0;--r)n+=(Vr+t[r]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var e=this.buf,t=0,n=e.length-1;n>=0;--n)t=t*Vr+e[n];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),Ur="…",qr=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,Jr=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function Gr(e,t){return e.length>t&&(e=e.substring(0,t)+Ur),e}var $r,Kr=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}return e.prototype.get=function(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return"string"===typeof this.enc?this.enc.charCodeAt(e):this.enc[e]},e.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)},e.prototype.hexDump=function(e,t,n){for(var r="",a=e;a<t;++a)if(r+=this.hexByte(this.get(a)),!0!==n)switch(15&a){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},e.prototype.isASCII=function(e,t){for(var n=e;n<t;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(e,t){for(var n="",r=e;r<t;++r)n+=String.fromCharCode(this.get(r));return n},e.prototype.parseStringUTF=function(e,t){for(var n="",r=e;r<t;){var a=this.get(r++);n+=a<128?String.fromCharCode(a):a>191&&a<224?String.fromCharCode((31&a)<<6|63&this.get(r++)):String.fromCharCode((15&a)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},e.prototype.parseStringBMP=function(e,t){for(var n,r,a="",o=e;o<t;)n=this.get(o++),r=this.get(o++),a+=String.fromCharCode(n<<8|r);return a},e.prototype.parseTime=function(e,t,n){var r=this.parseStringISO(e,t),a=(n?qr:Jr).exec(r);return a?(n&&(a[1]=+a[1],a[1]+=+a[1]<70?2e3:1900),r=a[1]+"-"+a[2]+"-"+a[3]+" "+a[4],a[5]&&(r+=":"+a[5],a[6]&&(r+=":"+a[6],a[7]&&(r+="."+a[7]))),a[8]&&(r+=" UTC","Z"!=a[8]&&(r+=a[8],a[9]&&(r+=":"+a[9]))),r):"Unrecognized time: "+r},e.prototype.parseInteger=function(e,t){var n,r=this.get(e),a=r>127,o=a?255:0,s="";while(r==o&&++e<t)r=this.get(e);if(n=t-e,0===n)return a?-1:0;if(n>4){s=r,n<<=3;while(0==(128&(+s^o)))s=+s<<1,--n;s="("+n+" bit)\n"}a&&(r-=256);for(var i=new zr(r),u=e+1;u<t;++u)i.mulAdd(256,this.get(u));return s+i.toString()},e.prototype.parseBitString=function(e,t,n){for(var r=this.get(e),a=(t-e-1<<3)-r,o="("+a+" bit)\n",s="",i=e+1;i<t;++i){for(var u=this.get(i),l=i==t-1?r:0,d=7;d>=l;--d)s+=u>>d&1?"1":"0";if(s.length>n)return o+Gr(s,n)}return o+s},e.prototype.parseOctetString=function(e,t,n){if(this.isASCII(e,t))return Gr(this.parseStringISO(e,t),n);var r=t-e,a="("+r+" byte)\n";n/=2,r>n&&(t=e+n);for(var o=e;o<t;++o)a+=this.hexByte(this.get(o));return r>n&&(a+=Ur),a},e.prototype.parseOID=function(e,t,n){for(var r="",a=new zr,o=0,s=e;s<t;++s){var i=this.get(s);if(a.mulAdd(128,127&i),o+=7,!(128&i)){if(""===r)if(a=a.simplify(),a instanceof zr)a.sub(80),r="2."+a.toString();else{var u=a<80?a<40?0:1:2;r=u+"."+(a-40*u)}else r+="."+a.toString();if(r.length>n)return Gr(r,n);a=new zr,o=0}}return o>0&&(r+=".incomplete"),r},e}(),Zr=function(){function e(e,t,n,r,a){if(!(r instanceof Xr))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=n,this.tag=r,this.sub=a}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(e){if(void 0===this.tag)return null;void 0===e&&(e=1/0);var t=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);case 6:return this.stream.parseOID(t,t+n,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return Gr(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return Gr(this.stream.parseStringISO(t,t+n),e);case 30:return Gr(this.stream.parseStringBMP(t,t+n),e);case 23:case 24:return this.stream.parseTime(t,t+n,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(e){void 0===e&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+=" ";for(var n=0,r=this.sub.length;n<r;++n)t+=this.sub[n].toPrettyString(e)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(e){var t=e.get(),n=127&t;if(n==t)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===n)return null;t=0;for(var r=0;r<n;++r)t=256*t+e.get();return t},e.prototype.getHexStringValue=function(){var e=this.toHexString(),t=2*this.header,n=2*this.length;return e.substr(t,n)},e.decode=function(t){var n;n=t instanceof Kr?t:new Kr(t,0);var r=new Kr(n),a=new Xr(n),o=e.decodeLength(n),s=n.pos,i=s-r.pos,u=null,l=function(){var t=[];if(null!==o){var r=s+o;while(n.pos<r)t[t.length]=e.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var a=e.decode(n);if(a.tag.isEOC())break;t[t.length]=a}o=s-n.pos}catch(i){throw new Error("Exception while decoding undefined length content: "+i)}return t};if(a.tagConstructed)u=l();else if(a.isUniversal()&&(3==a.tagNumber||4==a.tagNumber))try{if(3==a.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=l();for(var d=0;d<u.length;++d)if(u[d].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(c){u=null}if(null===u){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);n.pos=s+Math.abs(o)}return new e(r,i,o,a,u)},e}(),Xr=function(){function e(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=0!==(32&t),this.tagNumber=31&t,31==this.tagNumber){var n=new zr;do{t=e.get(),n.mulAdd(128,127&t)}while(128&t);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),Qr=0xdeadbeefcafe,ea=15715070==(16777215&Qr),ta=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],na=(1<<26)/ta[ta.length-1],ra=function(){function e(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}return e.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,a=!1,o="",s=this.t,i=this.DB-s*this.DB%t;if(s-- >0){i<this.DB&&(n=this[s]>>i)>0&&(a=!0,o=Sr(n));while(s>=0)i<t?(n=(this[s]&(1<<i)-1)<<t-i,n|=this[--s]>>(i+=this.DB-t)):(n=this[s]>>(i-=t)&r,i<=0&&(i+=this.DB,--s)),n>0&&(a=!0),a&&(o+=Sr(n))}return a?o:"0"},e.prototype.negate=function(){var t=ua();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(t=n-e.t,0!=t)return this.s<0?-t:t;while(--n>=0)if(0!=(t=this[n]-e[n]))return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+ya(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=ua();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new oa(t):new sa(t),this.exp(e,n)},e.prototype.clone=function(){var e=ua();return this.copyTo(e),e},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var n,r=this.DB-e*this.DB%8,a=0;if(e-- >0){r<this.DB&&(n=this[e]>>r)!=(this.s&this.DM)>>r&&(t[a++]=n|this.s<<this.DB-r);while(e>=0)r<8?(n=(this[e]&(1<<r)-1)<<8-r,n|=this[--e]>>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==a&&(128&this.s)!=(128&n)&&++a,(a>0||n!=this.s)&&(t[a++]=n)}return t},e.prototype.equals=function(e){return 0==this.compareTo(e)},e.prototype.min=function(e){return this.compareTo(e)<0?this:e},e.prototype.max=function(e){return this.compareTo(e)>0?this:e},e.prototype.and=function(e){var t=ua();return this.bitwiseTo(e,Ar,t),t},e.prototype.or=function(e){var t=ua();return this.bitwiseTo(e,xr,t),t},e.prototype.xor=function(e){var t=ua();return this.bitwiseTo(e,Cr,t),t},e.prototype.andNot=function(e){var t=ua();return this.bitwiseTo(e,Er,t),t},e.prototype.not=function(){for(var e=ua(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},e.prototype.shiftLeft=function(e){var t=ua();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},e.prototype.shiftRight=function(e){var t=ua();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},e.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+jr(this[e]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=Or(this[n]^t);return e},e.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},e.prototype.setBit=function(e){return this.changeBit(e,xr)},e.prototype.clearBit=function(e){return this.changeBit(e,Er)},e.prototype.flipBit=function(e){return this.changeBit(e,Cr)},e.prototype.add=function(e){var t=ua();return this.addTo(e,t),t},e.prototype.subtract=function(e){var t=ua();return this.subTo(e,t),t},e.prototype.multiply=function(e){var t=ua();return this.multiplyTo(e,t),t},e.prototype.divide=function(e){var t=ua();return this.divRemTo(e,t,null),t},e.prototype.remainder=function(e){var t=ua();return this.divRemTo(e,null,t),t},e.prototype.divideAndRemainder=function(e){var t=ua(),n=ua();return this.divRemTo(e,t,n),[t,n]},e.prototype.modPow=function(e,t){var n,r,a=e.bitLength(),o=pa(1);if(a<=0)return o;n=a<18?1:a<48?3:a<144?4:a<768?5:6,r=a<8?new oa(t):t.isEven()?new ia(t):new sa(t);var s=[],i=3,u=n-1,l=(1<<n)-1;if(s[1]=r.convert(this),n>1){var d=ua();r.sqrTo(s[1],d);while(i<=l)s[i]=ua(),r.mulTo(d,s[i-2],s[i]),i+=2}var c,m,h=e.t-1,f=!0,_=ua();a=ya(e[h])-1;while(h>=0){a>=u?c=e[h]>>a-u&l:(c=(e[h]&(1<<a+1)-1)<<u-a,h>0&&(c|=e[h-1]>>this.DB+a-u)),i=n;while(0==(1&c))c>>=1,--i;if((a-=i)<0&&(a+=this.DB,--h),f)s[c].copyTo(o),f=!1;else{while(i>1)r.sqrTo(o,_),r.sqrTo(_,o),i-=2;i>0?r.sqrTo(o,_):(m=o,o=_,_=m),r.mulTo(_,s[c],o)}while(h>=0&&0==(e[h]&1<<a))r.sqrTo(o,_),m=o,o=_,_=m,--a<0&&(a=this.DB-1,--h)}return r.revert(o)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||0==t.signum())return e.ZERO;var r=t.clone(),a=this.clone(),o=pa(1),s=pa(0),i=pa(0),u=pa(1);while(0!=r.signum()){while(r.isEven())r.rShiftTo(1,r),n?(o.isEven()&&s.isEven()||(o.addTo(this,o),s.subTo(t,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);while(a.isEven())a.rShiftTo(1,a),n?(i.isEven()&&u.isEven()||(i.addTo(this,i),u.subTo(t,u)),i.rShiftTo(1,i)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);r.compareTo(a)>=0?(r.subTo(a,r),n&&o.subTo(i,o),s.subTo(u,s)):(a.subTo(r,a),n&&i.subTo(o,i),u.subTo(s,u))}return 0!=a.compareTo(e.ONE)?e.ZERO:u.compareTo(t)>=0?u.subtract(t):u.signum()<0?(u.addTo(t,u),u.signum()<0?u.add(t):u):u},e.prototype.pow=function(e){return this.exp(e,new aa)},e.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var a=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;a<o&&(o=a),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));while(t.signum()>0)(a=t.getLowestSetBit())>0&&t.rShiftTo(a,t),(a=n.getLowestSetBit())>0&&n.rShiftTo(a,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},e.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=ta[ta.length-1]){for(t=0;t<ta.length;++t)if(n[0]==ta[t])return!0;return!1}if(n.isEven())return!1;t=1;while(t<ta.length){var r=ta[t],a=t+1;while(a<ta.length&&r<na)r*=ta[a++];r=n.modInt(r);while(t<a)if(r%ta[t++]==0)return!1}return n.millerRabin(e)},e.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},e.prototype.fromString=function(t,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(t,n);r=2}this.t=0,this.s=0;var a=t.length,o=!1,s=0;while(--a>=0){var i=8==r?255&+t[a]:_a(t,a);i<0?"-"==t.charAt(a)&&(o=!0):(o=!1,0==s?this[this.t++]=i:s+r>this.DB?(this[this.t-1]|=(i&(1<<this.DB-s)-1)<<s,this[this.t++]=i>>this.DB-s):this[this.t-1]|=i<<s,s+=r,s>=this.DB&&(s-=this.DB))}8==r&&0!=(128&+t[0])&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),o&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){var e=this.s&this.DM;while(this.t>0&&this[this.t-1]==e)--this.t},e.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},e.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},e.prototype.lShiftTo=function(e,t){for(var n=e%this.DB,r=this.DB-n,a=(1<<r)-1,o=Math.floor(e/this.DB),s=this.s<<n&this.DM,i=this.t-1;i>=0;--i)t[i+o+1]=this[i]>>r|s,s=(this[i]&a)<<n;for(i=o-1;i>=0;--i)t[i]=0;t[o]=s,t.t=this.t+o+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,a=this.DB-r,o=(1<<r)-1;t[0]=this[n]>>r;for(var s=n+1;s<this.t;++s)t[s-n-1]|=(this[s]&o)<<a,t[s-n]=this[s]>>r;r>0&&(t[this.t-n-1]|=(this.s&o)<<a),t.t=this.t-n,t.clamp()}},e.prototype.subTo=function(e,t){var n=0,r=0,a=Math.min(e.t,this.t);while(n<a)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){r-=e.s;while(n<this.t)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{r+=this.s;while(n<e.t)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},e.prototype.multiplyTo=function(t,n){var r=this.abs(),a=t.abs(),o=r.t;n.t=o+a.t;while(--o>=0)n[o]=0;for(o=0;o<a.t;++o)n[o+r.t]=r.am(0,a[o],n,o,0,r.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(e){var t=this.abs(),n=e.t=2*t.t;while(--n>=0)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},e.prototype.divRemTo=function(t,n,r){var a=t.abs();if(!(a.t<=0)){var o=this.abs();if(o.t<a.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=ua());var s=ua(),i=this.s,u=t.s,l=this.DB-ya(a[a.t-1]);l>0?(a.lShiftTo(l,s),o.lShiftTo(l,r)):(a.copyTo(s),o.copyTo(r));var d=s.t,c=s[d-1];if(0!=c){var m=c*(1<<this.F1)+(d>1?s[d-2]>>this.F2:0),h=this.FV/m,f=(1<<this.F1)/m,_=1<<this.F2,p=r.t,y=p-d,g=null==n?ua():n;s.dlShiftTo(y,g),r.compareTo(g)>=0&&(r[r.t++]=1,r.subTo(g,r)),e.ONE.dlShiftTo(d,g),g.subTo(s,s);while(s.t<d)s[s.t++]=0;while(--y>=0){var M=r[--p]==c?this.DM:Math.floor(r[p]*h+(r[p-1]+_)*f);if((r[p]+=s.am(0,M,r,y,0,d))<M){s.dlShiftTo(y,g),r.subTo(g,r);while(r[p]<--M)r.subTo(g,r)}}null!=n&&(r.drShiftTo(d,n),i!=u&&e.ZERO.subTo(n,n)),r.t=d,r.clamp(),l>0&&r.rShiftTo(l,r),i<0&&e.ZERO.subTo(r,r)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return t=t*(2-(15&e)*t)&15,t=t*(2-(255&e)*t)&255,t=t*(2-((65535&e)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var r=ua(),a=ua(),o=n.convert(this),s=ya(t)-1;o.copyTo(r);while(--s>=0)if(n.sqrTo(r,a),(t&1<<s)>0)n.mulTo(a,o,r);else{var i=r;r=a,a=i}return n.revert(r)},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),r=pa(n),a=ua(),o=ua(),s="";this.divRemTo(r,a,o);while(a.signum()>0)s=(n+o.intValue()).toString(e).substr(1)+s,a.divRemTo(r,a,o);return o.intValue().toString(e)+s},e.prototype.fromRadix=function(t,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),a=Math.pow(n,r),o=!1,s=0,i=0,u=0;u<t.length;++u){var l=_a(t,u);l<0?"-"==t.charAt(u)&&0==this.signum()&&(o=!0):(i=n*i+l,++s>=r&&(this.dMultiply(a),this.dAddOffset(i,0),s=0,i=0))}s>0&&(this.dMultiply(Math.pow(n,s)),this.dAddOffset(i,0)),o&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,r){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),xr,this),this.isEven()&&this.dAddOffset(1,0);while(!this.isProbablePrime(n))this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this)}else{var a=[],o=7&t;a.length=1+(t>>3),n.nextBytes(a),o>0?a[0]&=(1<<o)-1:a[0]=0,this.fromString(a,256)}},e.prototype.bitwiseTo=function(e,t,n){var r,a,o=Math.min(e.t,this.t);for(r=0;r<o;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(a=e.s&this.DM,r=o;r<this.t;++r)n[r]=t(this[r],a);n.t=this.t}else{for(a=this.s&this.DM,r=o;r<e.t;++r)n[r]=t(a,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},e.prototype.changeBit=function(t,n){var r=e.ONE.shiftLeft(t);return this.bitwiseTo(r,n,r),r},e.prototype.addTo=function(e,t){var n=0,r=0,a=Math.min(e.t,this.t);while(n<a)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){r+=e.s;while(n<this.t)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{r+=this.s;while(n<e.t)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},e.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(e,t){if(0!=e){while(this.t<=t)this[this.t++]=0;this[t]+=e;while(this[t]>=this.DV)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(e,t,n){var r=Math.min(this.t+e.t,t);n.s=0,n.t=r;while(r>0)n[--r]=0;for(var a=n.t-this.t;r<a;++r)n[r+this.t]=this.am(0,e[r],n,r,0,this.t);for(a=Math.min(e.t,t);r<a;++r)this.am(0,e[r],n,r,0,t-r);n.clamp()},e.prototype.multiplyUpperTo=function(e,t,n){--t;var r=n.t=this.t+e.t-t;n.s=0;while(--r>=0)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var a=n.shiftRight(r);t=t+1>>1,t>ta.length&&(t=ta.length);for(var o=ua(),s=0;s<t;++s){o.fromInt(ta[Math.floor(Math.random()*ta.length)]);var i=o.modPow(a,this);if(0!=i.compareTo(e.ONE)&&0!=i.compareTo(n)){var u=1;while(u++<r&&0!=i.compareTo(n))if(i=i.modPowInt(2,this),0==i.compareTo(e.ONE))return!1;if(0!=i.compareTo(n))return!1}}return!0},e.prototype.square=function(){var e=ua();return this.squareTo(e),e},e.prototype.gcda=function(e,t){var n=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(n.compareTo(r)<0){var a=n;n=r,r=a}var o=n.getLowestSetBit(),s=r.getLowestSetBit();if(s<0)t(n);else{o<s&&(s=o),s>0&&(n.rShiftTo(s,n),r.rShiftTo(s,r));var i=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(i,0):(s>0&&r.lShiftTo(s,r),setTimeout((function(){t(r)}),0))};setTimeout(i,10)}},e.prototype.fromNumberAsync=function(t,n,r,a){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),xr,this),this.isEven()&&this.dAddOffset(1,0);var o=this,s=function(){o.dAddOffset(2,0),o.bitLength()>t&&o.subTo(e.ONE.shiftLeft(t-1),o),o.isProbablePrime(n)?setTimeout((function(){a()}),0):setTimeout(s,0)};setTimeout(s,0)}else{var i=[],u=7&t;i.length=1+(t>>3),n.nextBytes(i),u>0?i[0]&=(1<<u)-1:i[0]=0,this.fromString(i,256)}},e}(),aa=function(){function e(){}return e.prototype.convert=function(e){return e},e.prototype.revert=function(e){return e},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},e.prototype.sqrTo=function(e,t){e.squareTo(t)},e}(),oa=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),sa=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return e.prototype.convert=function(e){var t=ua();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(ra.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=ua();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){while(e.t<=this.mt2)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;n=t+this.m.t,e[n]+=this.m.am(0,r,e,t,0,this.m.t);while(e[n]>=e.DV)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),ia=function(){function e(e){this.m=e,this.r2=ua(),this.q3=ua(),ra.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=ua();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(e.compareTo(this.r2)<0)e.dAddOffset(1,this.m.t+1);e.subTo(this.r2,e);while(e.compareTo(this.m)>=0)e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function ua(){return new ra(null)}function la(e,t){return new ra(e,t)}var da="undefined"!==typeof navigator;da&&ea&&"Microsoft Internet Explorer"==navigator.appName?(ra.prototype.am=function(e,t,n,r,a,o){var s=32767&t,i=t>>15;while(--o>=0){var u=32767&this[e],l=this[e++]>>15,d=i*u+l*s;u=s*u+((32767&d)<<15)+n[r]+(1073741823&a),a=(u>>>30)+(d>>>15)+i*l+(a>>>30),n[r++]=1073741823&u}return a},$r=30):da&&ea&&"Netscape"!=navigator.appName?(ra.prototype.am=function(e,t,n,r,a,o){while(--o>=0){var s=t*this[e++]+n[r]+a;a=Math.floor(s/67108864),n[r++]=67108863&s}return a},$r=26):(ra.prototype.am=function(e,t,n,r,a,o){var s=16383&t,i=t>>14;while(--o>=0){var u=16383&this[e],l=this[e++]>>14,d=i*u+l*s;u=s*u+((16383&d)<<14)+n[r]+a,a=(u>>28)+(d>>14)+i*l,n[r++]=268435455&u}return a},$r=28),ra.prototype.DB=$r,ra.prototype.DM=(1<<$r)-1,ra.prototype.DV=1<<$r;var ca=52;ra.prototype.FV=Math.pow(2,ca),ra.prototype.F1=ca-$r,ra.prototype.F2=2*$r-ca;var ma,ha,fa=[];for(ma="0".charCodeAt(0),ha=0;ha<=9;++ha)fa[ma++]=ha;for(ma="a".charCodeAt(0),ha=10;ha<36;++ha)fa[ma++]=ha;for(ma="A".charCodeAt(0),ha=10;ha<36;++ha)fa[ma++]=ha;function _a(e,t){var n=fa[e.charCodeAt(t)];return null==n?-1:n}function pa(e){var t=ua();return t.fromInt(e),t}function ya(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}ra.ZERO=pa(0),ra.ONE=pa(1);var ga=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(e){var t,n,r;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,r=this.S[t],this.S[t]=this.S[n],this.S[n]=r;this.i=0,this.j=0},e.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},e}();function Ma(){return new ga}var va,La,wa=256,ka=null;if(null==ka){ka=[],La=0;var Ya=void 0;if("undefined"!==typeof window&&window.crypto&&window.crypto.getRandomValues){var ba=new Uint32Array(256);for(window.crypto.getRandomValues(ba),Ya=0;Ya<ba.length;++Ya)ka[La++]=255&ba[Ya]}var Da=0,Ta=function(e){if(Da=Da||0,Da>=256||La>=wa)window.removeEventListener?window.removeEventListener("mousemove",Ta,!1):window.detachEvent&&window.detachEvent("onmousemove",Ta);else try{var t=e.x+e.y;ka[La++]=255&t,Da+=1}catch(n){}};"undefined"!==typeof window&&(window.addEventListener?window.addEventListener("mousemove",Ta,!1):window.attachEvent&&window.attachEvent("onmousemove",Ta))}function Sa(){if(null==va){va=Ma();while(La<wa){var e=Math.floor(65536*Math.random());ka[La++]=255&e}for(va.init(ka),La=0;La<ka.length;++La)ka[La]=0;La=0}return va.next()}var Aa=function(){function e(){}return e.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=Sa()},e}();function xa(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var n=t-e.length-6,r="",a=0;a<n;a+=2)r+="ff";var o="0001"+r+"00"+e;return la(o,16)}function Ca(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;var n=[],r=e.length-1;while(r>=0&&t>0){var a=e.charCodeAt(r--);a<128?n[--t]=a:a>127&&a<2048?(n[--t]=63&a|128,n[--t]=a>>6|192):(n[--t]=63&a|128,n[--t]=a>>6&63|128,n[--t]=a>>12|224)}n[--t]=0;var o=new Aa,s=[];while(t>2){s[0]=0;while(0==s[0])o.nextBytes(s);n[--t]=s[0]}return n[--t]=2,n[--t]=0,new ra(n)}var Ea=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);while(t.compareTo(n)<0)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(e,t){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=la(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(e){var t=this.n.bitLength()+7>>3,n=Ca(e,t);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var a=r.toString(16),o=a.length,s=0;s<2*t-o;s++)a="0"+a;return a},e.prototype.setPrivate=function(e,t,n){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=la(e,16),this.e=parseInt(t,16),this.d=la(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(e,t,n,r,a,o,s,i){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=la(e,16),this.e=parseInt(t,16),this.d=la(n,16),this.p=la(r,16),this.q=la(a,16),this.dmp1=la(o,16),this.dmq1=la(s,16),this.coeff=la(i,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(e,t){var n=new Aa,r=e>>1;this.e=parseInt(t,16);for(var a=new ra(t,16);;){for(;;)if(this.p=new ra(e-r,1,n),0==this.p.subtract(ra.ONE).gcd(a).compareTo(ra.ONE)&&this.p.isProbablePrime(10))break;for(;;)if(this.q=new ra(r,1,n),0==this.q.subtract(ra.ONE).gcd(a).compareTo(ra.ONE)&&this.q.isProbablePrime(10))break;if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var s=this.p.subtract(ra.ONE),i=this.q.subtract(ra.ONE),u=s.multiply(i);if(0==u.gcd(a).compareTo(ra.ONE)){this.n=this.p.multiply(this.q),this.d=a.modInverse(u),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(i),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=la(e,16),n=this.doPrivate(t);return null==n?null:ja(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,n){var r=new Aa,a=e>>1;this.e=parseInt(t,16);var o=new ra(t,16),s=this,i=function(){var t=function(){if(s.p.compareTo(s.q)<=0){var e=s.p;s.p=s.q,s.q=e}var t=s.p.subtract(ra.ONE),r=s.q.subtract(ra.ONE),a=t.multiply(r);0==a.gcd(o).compareTo(ra.ONE)?(s.n=s.p.multiply(s.q),s.d=o.modInverse(a),s.dmp1=s.d.mod(t),s.dmq1=s.d.mod(r),s.coeff=s.q.modInverse(s.p),setTimeout((function(){n()}),0)):setTimeout(i,0)},u=function(){s.q=ua(),s.q.fromNumberAsync(a,1,r,(function(){s.q.subtract(ra.ONE).gcda(o,(function(e){0==e.compareTo(ra.ONE)&&s.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(u,0)}))}))},l=function(){s.p=ua(),s.p.fromNumberAsync(e-a,1,r,(function(){s.p.subtract(ra.ONE).gcda(o,(function(e){0==e.compareTo(ra.ONE)&&s.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(l,0)}))}))};setTimeout(l,0)};setTimeout(i,0)},e.prototype.sign=function(e,t,n){var r=Ha(n),a=r+t(e).toString(),o=xa(a,this.n.bitLength()/4);if(null==o)return null;var s=this.doPrivate(o);if(null==s)return null;var i=s.toString(16);return 0==(1&i.length)?i:"0"+i},e.prototype.verify=function(e,t,n){var r=la(t,16),a=this.doPublic(r);if(null==a)return null;var o=a.toString(16).replace(/^1f+00/,""),s=Na(o);return s==n(e).toString()},e}();function ja(e,t){var n=e.toByteArray(),r=0;while(r<n.length&&0==n[r])++r;if(n.length-r!=t-1||2!=n[r])return null;++r;while(0!=n[r])if(++r>=n.length)return null;var a="";while(++r<n.length){var o=255&n[r];o<128?a+=String.fromCharCode(o):o>191&&o<224?(a+=String.fromCharCode((31&o)<<6|63&n[r+1]),++r):(a+=String.fromCharCode((15&o)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return a}var Oa={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Ha(e){return Oa[e]||""}function Na(e){for(var t in Oa)if(Oa.hasOwnProperty(t)){var n=Oa[t],r=n.length;if(e.substr(0,r)==n)return e.substr(r)}return e}
|
|
297
|
+
a.version="2.29.4",o(Kn),a.fn=lo,a.min=er,a.max=tr,a.now=nr,a.utc=_,a.unix=co,a.months=go,a.isDate=m,a.locale=pn,a.invalid=M,a.duration=Ar,a.isMoment=Y,a.weekdays=vo,a.parseZone=mo,a.localeData=Mn,a.isDuration=ur,a.monthsShort=Mo,a.weekdaysMin=wo,a.defineLocale=yn,a.updateLocale=gn,a.locales=vn,a.weekdaysShort=Lo,a.normalizeUnits=ae,a.relativeTimeRounding=os,a.relativeTimeThreshold=ss,a.calendarFormat=Wr,a.prototype=lo,a.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"},a}))},631:(e,t,n)=>{var r="function"===typeof Map&&Map.prototype,a=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&a&&"function"===typeof a.get?a.get:null,s=r&&Map.prototype.forEach,i="function"===typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=i&&u&&"function"===typeof u.get?u.get:null,d=i&&Set.prototype.forEach,c="function"===typeof WeakMap&&WeakMap.prototype,m=c?WeakMap.prototype.has:null,h="function"===typeof WeakSet&&WeakSet.prototype,f=h?WeakSet.prototype.has:null,_="function"===typeof WeakRef&&WeakRef.prototype,p=_?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,g=Object.prototype.toString,M=Function.prototype.toString,v=String.prototype.match,L=String.prototype.slice,w=String.prototype.replace,k=String.prototype.toUpperCase,Y=String.prototype.toLowerCase,b=RegExp.prototype.test,D=Array.prototype.concat,T=Array.prototype.join,S=Array.prototype.slice,A=Math.floor,x="function"===typeof BigInt?BigInt.prototype.valueOf:null,C=Object.getOwnPropertySymbols,E="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,j="function"===typeof Symbol&&"object"===typeof Symbol.iterator,O="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===j||"symbol")?Symbol.toStringTag:null,H=Object.prototype.propertyIsEnumerable,N=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function P(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||b.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-A(-e):A(e);if(r!==e){var a=String(r),o=L.call(t,a.length+1);return w.call(a,n,"$&_")+"."+w.call(w.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(t,n,"$&_")}var I=n(4654),R=I.custom,F=K(R)?R:null;function B(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function W(e){return w.call(String(e),/"/g,""")}function V(e){return"[object Array]"===ee(e)&&(!O||!("object"===typeof e&&O in e))}function z(e){return"[object Date]"===ee(e)&&(!O||!("object"===typeof e&&O in e))}function U(e){return"[object RegExp]"===ee(e)&&(!O||!("object"===typeof e&&O in e))}function q(e){return"[object Error]"===ee(e)&&(!O||!("object"===typeof e&&O in e))}function J(e){return"[object String]"===ee(e)&&(!O||!("object"===typeof e&&O in e))}function G(e){return"[object Number]"===ee(e)&&(!O||!("object"===typeof e&&O in e))}function $(e){return"[object Boolean]"===ee(e)&&(!O||!("object"===typeof e&&O in e))}function K(e){if(j)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!E)return!1;try{return E.call(e),!0}catch(t){}return!1}function Z(e){if(!e||"object"!==typeof e||!x)return!1;try{return x.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,a,i){var u=r||{};if(Q(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Q(u,"maxStringLength")&&("number"===typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!Q(u,"customInspect")||u.customInspect;if("boolean"!==typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Q(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Q(u,"numericSeparator")&&"boolean"!==typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=u.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return le(t,u);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var h=String(t);return m?P(t,h):h}if("bigint"===typeof t){var f=String(t)+"n";return m?P(t,f):f}var _="undefined"===typeof u.depth?5:u.depth;if("undefined"===typeof a&&(a=0),a>=_&&_>0&&"object"===typeof t)return V(t)?"[Array]":"[Object]";var p=_e(u,a);if("undefined"===typeof i)i=[];else if(ne(i,t)>=0)return"[Circular]";function g(t,n,r){if(n&&(i=S.call(i),i.push(n)),r){var o={depth:u.depth};return Q(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),e(t,o,a+1,i)}return e(t,u,a+1,i)}if("function"===typeof t&&!U(t)){var M=te(t),v=ye(t,g);return"[Function"+(M?": "+M:" (anonymous)")+"]"+(v.length>0?" { "+T.call(v,", ")+" }":"")}if(K(t)){var k=j?w.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):E.call(t);return"object"!==typeof t||j?k:ce(k)}if(ue(t)){for(var b="<"+Y.call(String(t.nodeName)),A=t.attributes||[],C=0;C<A.length;C++)b+=" "+A[C].name+"="+B(W(A[C].value),"double",u);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+="</"+Y.call(String(t.nodeName))+">",b}if(V(t)){if(0===t.length)return"[]";var R=ye(t,g);return p&&!fe(R)?"["+pe(R,p)+"]":"[ "+T.call(R,", ")+" ]"}if(q(t)){var X=ye(t,g);return"cause"in Error.prototype||!("cause"in t)||H.call(t,"cause")?0===X.length?"["+String(t)+"]":"{ ["+String(t)+"] "+T.call(X,", ")+" }":"{ ["+String(t)+"] "+T.call(D.call("[cause]: "+g(t.cause),X),", ")+" }"}if("object"===typeof t&&c){if(F&&"function"===typeof t[F]&&I)return I(t,{depth:_-a});if("symbol"!==c&&"function"===typeof t.inspect)return t.inspect()}if(re(t)){var de=[];return s&&s.call(t,(function(e,n){de.push(g(n,t,!0)+" => "+g(e,t))})),he("Map",o.call(t),de,p)}if(se(t)){var ge=[];return d&&d.call(t,(function(e){ge.push(g(e,t))})),he("Set",l.call(t),ge,p)}if(ae(t))return me("WeakMap");if(ie(t))return me("WeakSet");if(oe(t))return me("WeakRef");if(G(t))return ce(g(Number(t)));if(Z(t))return ce(g(x.call(t)));if($(t))return ce(y.call(t));if(J(t))return ce(g(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if(t===n.g)return"{ [object globalThis] }";if(!z(t)&&!U(t)){var Me=ye(t,g),ve=N?N(t)===Object.prototype:t instanceof Object||t.constructor===Object,Le=t instanceof Object?"":"null prototype",we=!ve&&O&&Object(t)===t&&O in t?L.call(ee(t),8,-1):Le?"Object":"",ke=ve||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"",Ye=ke+(we||Le?"["+T.call(D.call([],we||[],Le||[]),": ")+"] ":"");return 0===Me.length?Ye+"{}":p?Ye+"{"+pe(Me,p)+"}":Ye+"{ "+T.call(Me,", ")+" }"}return String(t)};var X=Object.prototype.hasOwnProperty||function(e){return e in this};function Q(e,t){return X.call(e,t)}function ee(e){return g.call(e)}function te(e){if(e.name)return e.name;var t=v.call(M.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ne(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function re(e){if(!o||!e||"object"!==typeof e)return!1;try{o.call(e);try{l.call(e)}catch(t){return!0}return e instanceof Map}catch(n){}return!1}function ae(e){if(!m||!e||"object"!==typeof e)return!1;try{m.call(e,m);try{f.call(e,f)}catch(t){return!0}return e instanceof WeakMap}catch(n){}return!1}function oe(e){if(!p||!e||"object"!==typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}function se(e){if(!l||!e||"object"!==typeof e)return!1;try{l.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}function ie(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{m.call(e,m)}catch(t){return!0}return e instanceof WeakSet}catch(n){}return!1}function ue(e){return!(!e||"object"!==typeof e)&&("undefined"!==typeof HTMLElement&&e instanceof HTMLElement||"string"===typeof e.nodeName&&"function"===typeof e.getAttribute)}function le(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return le(L.call(e,0,t.maxStringLength),t)+r}var a=w.call(w.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,de);return B(a,"single",t)}function de(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+k.call(t.toString(16))}function ce(e){return"Object("+e+")"}function me(e){return e+" { ? }"}function he(e,t,n,r){var a=r?pe(n,r):T.call(n,", ");return e+" ("+t+") {"+a+"}"}function fe(e){for(var t=0;t<e.length;t++)if(ne(e[t],"\n")>=0)return!1;return!0}function _e(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=T.call(Array(e.indent+1)," ")}return{base:n,prev:T.call(Array(t+1),n)}}function pe(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+T.call(e,","+n)+"\n"+t.prev}function ye(e,t){var n=V(e),r=[];if(n){r.length=e.length;for(var a=0;a<e.length;a++)r[a]=Q(e,a)?t(e[a],e):""}var o,s="function"===typeof C?C(e):[];if(j){o={};for(var i=0;i<s.length;i++)o["$"+s[i]]=s[i]}for(var u in e)Q(e,u)&&(n&&String(Number(u))===u&&u<e.length||j&&o["$"+u]instanceof Symbol||(b.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if("function"===typeof C)for(var l=0;l<s.length;l++)H.call(e,s[l])&&r.push("["+t(s[l])+"]: "+t(e[s[l]],e));return r}},7771:(e,t,n)=>{"use strict";var r=n(210),a=n(2296),o=n(1044)(),s=n(7296),i=r("%TypeError%"),u=r("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new i("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||u(t)!==t)throw new i("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,l=!0;if("length"in e&&s){var d=s(e,"length");d&&!d.configurable&&(r=!1),d&&!d.writable&&(l=!1)}return(r||l||!n)&&(o?a(e,"length",t,!0,!0):a(e,"length",t)),e}},7478:(e,t,n)=>{"use strict";var r=n(210),a=n(1924),o=n(631),s=r("%TypeError%"),i=r("%WeakMap%",!0),u=r("%Map%",!0),l=a("WeakMap.prototype.get",!0),d=a("WeakMap.prototype.set",!0),c=a("WeakMap.prototype.has",!0),m=a("Map.prototype.get",!0),h=a("Map.prototype.set",!0),f=a("Map.prototype.has",!0),_=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},p=function(e,t){var n=_(e,t);return n&&n.value},y=function(e,t,n){var r=_(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},g=function(e,t){return!!_(e,t)};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+o(e))},get:function(r){if(i&&r&&("object"===typeof r||"function"===typeof r)){if(e)return l(e,r)}else if(u){if(t)return m(t,r)}else if(n)return p(n,r)},has:function(r){if(i&&r&&("object"===typeof r||"function"===typeof r)){if(e)return c(e,r)}else if(u){if(t)return f(t,r)}else if(n)return g(n,r);return!1},set:function(r,a){i&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new i),d(e,r,a)):u?(t||(t=new u),h(t,r,a)):(n||(n={key:{},next:null}),y(n,r,a))}};return r}},7466:(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{NIL:()=>G,parse:()=>v,stringify:()=>m,v1:()=>g,v3:()=>R,v4:()=>B,v5:()=>J,validate:()=>u,version:()=>K});var a=new Uint8Array(16);function o(){if(!r&&(r="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(a)}const s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function i(e){return"string"===typeof e&&s.test(e)}const u=i;for(var l=[],d=0;d<256;++d)l.push((d+256).toString(16).substr(1));function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase();if(!u(n))throw TypeError("Stringified UUID is invalid");return n}const m=c;var h,f,_=0,p=0;function y(e,t,n){var r=t&&n||0,a=t||new Array(16);e=e||{};var s=e.node||h,i=void 0!==e.clockseq?e.clockseq:f;if(null==s||null==i){var u=e.random||(e.rng||o)();null==s&&(s=h=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==i&&(i=f=16383&(u[6]<<8|u[7]))}var l=void 0!==e.msecs?e.msecs:Date.now(),d=void 0!==e.nsecs?e.nsecs:p+1,c=l-_+(d-p)/1e4;if(c<0&&void 0===e.clockseq&&(i=i+1&16383),(c<0||l>_)&&void 0===e.nsecs&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_=l,p=d,f=i,l+=122192928e5;var y=(1e4*(268435455&l)+d)%4294967296;a[r++]=y>>>24&255,a[r++]=y>>>16&255,a[r++]=y>>>8&255,a[r++]=255&y;var g=l/4294967296*1e4&268435455;a[r++]=g>>>8&255,a[r++]=255&g,a[r++]=g>>>24&15|16,a[r++]=g>>>16&255,a[r++]=i>>>8|128,a[r++]=255&i;for(var M=0;M<6;++M)a[r+M]=s[M];return t||m(a)}const g=y;function M(e){if(!u(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}const v=M;function L(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var w="6ba7b810-9dad-11d1-80b4-00c04fd430c8",k="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Y(e,t,n){function r(e,r,a,o){if("string"===typeof e&&(e=L(e)),"string"===typeof r&&(r=v(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),s=n(s),s[6]=15&s[6]|t,s[8]=63&s[8]|128,a){o=o||0;for(var i=0;i<16;++i)a[o+i]=s[i];return a}return m(s)}try{r.name=e}catch(a){}return r.DNS=w,r.URL=k,r}function b(e){if("string"===typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return D(S(A(e),8*e.length))}function D(e){for(var t=[],n=32*e.length,r="0123456789abcdef",a=0;a<n;a+=8){var o=e[a>>5]>>>a%32&255,s=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(s)}return t}function T(e){return 14+(e+64>>>9<<4)+1}function S(e,t){e[t>>5]|=128<<t%32,e[T(t)-1]=t;for(var n=1732584193,r=-271733879,a=-1732584194,o=271733878,s=0;s<e.length;s+=16){var i=n,u=r,l=a,d=o;n=j(n,r,a,o,e[s],7,-680876936),o=j(o,n,r,a,e[s+1],12,-389564586),a=j(a,o,n,r,e[s+2],17,606105819),r=j(r,a,o,n,e[s+3],22,-1044525330),n=j(n,r,a,o,e[s+4],7,-176418897),o=j(o,n,r,a,e[s+5],12,1200080426),a=j(a,o,n,r,e[s+6],17,-1473231341),r=j(r,a,o,n,e[s+7],22,-45705983),n=j(n,r,a,o,e[s+8],7,1770035416),o=j(o,n,r,a,e[s+9],12,-1958414417),a=j(a,o,n,r,e[s+10],17,-42063),r=j(r,a,o,n,e[s+11],22,-1990404162),n=j(n,r,a,o,e[s+12],7,1804603682),o=j(o,n,r,a,e[s+13],12,-40341101),a=j(a,o,n,r,e[s+14],17,-1502002290),r=j(r,a,o,n,e[s+15],22,1236535329),n=O(n,r,a,o,e[s+1],5,-165796510),o=O(o,n,r,a,e[s+6],9,-1069501632),a=O(a,o,n,r,e[s+11],14,643717713),r=O(r,a,o,n,e[s],20,-373897302),n=O(n,r,a,o,e[s+5],5,-701558691),o=O(o,n,r,a,e[s+10],9,38016083),a=O(a,o,n,r,e[s+15],14,-660478335),r=O(r,a,o,n,e[s+4],20,-405537848),n=O(n,r,a,o,e[s+9],5,568446438),o=O(o,n,r,a,e[s+14],9,-1019803690),a=O(a,o,n,r,e[s+3],14,-187363961),r=O(r,a,o,n,e[s+8],20,1163531501),n=O(n,r,a,o,e[s+13],5,-1444681467),o=O(o,n,r,a,e[s+2],9,-51403784),a=O(a,o,n,r,e[s+7],14,1735328473),r=O(r,a,o,n,e[s+12],20,-1926607734),n=H(n,r,a,o,e[s+5],4,-378558),o=H(o,n,r,a,e[s+8],11,-2022574463),a=H(a,o,n,r,e[s+11],16,1839030562),r=H(r,a,o,n,e[s+14],23,-35309556),n=H(n,r,a,o,e[s+1],4,-1530992060),o=H(o,n,r,a,e[s+4],11,1272893353),a=H(a,o,n,r,e[s+7],16,-155497632),r=H(r,a,o,n,e[s+10],23,-1094730640),n=H(n,r,a,o,e[s+13],4,681279174),o=H(o,n,r,a,e[s],11,-358537222),a=H(a,o,n,r,e[s+3],16,-722521979),r=H(r,a,o,n,e[s+6],23,76029189),n=H(n,r,a,o,e[s+9],4,-640364487),o=H(o,n,r,a,e[s+12],11,-421815835),a=H(a,o,n,r,e[s+15],16,530742520),r=H(r,a,o,n,e[s+2],23,-995338651),n=N(n,r,a,o,e[s],6,-198630844),o=N(o,n,r,a,e[s+7],10,1126891415),a=N(a,o,n,r,e[s+14],15,-1416354905),r=N(r,a,o,n,e[s+5],21,-57434055),n=N(n,r,a,o,e[s+12],6,1700485571),o=N(o,n,r,a,e[s+3],10,-1894986606),a=N(a,o,n,r,e[s+10],15,-1051523),r=N(r,a,o,n,e[s+1],21,-2054922799),n=N(n,r,a,o,e[s+8],6,1873313359),o=N(o,n,r,a,e[s+15],10,-30611744),a=N(a,o,n,r,e[s+6],15,-1560198380),r=N(r,a,o,n,e[s+13],21,1309151649),n=N(n,r,a,o,e[s+4],6,-145523070),o=N(o,n,r,a,e[s+11],10,-1120210379),a=N(a,o,n,r,e[s+2],15,718787259),r=N(r,a,o,n,e[s+9],21,-343485551),n=x(n,i),r=x(r,u),a=x(a,l),o=x(o,d)}return[n,r,a,o]}function A(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(T(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}function x(e,t){var n=(65535&e)+(65535&t),r=(e>>16)+(t>>16)+(n>>16);return r<<16|65535&n}function C(e,t){return e<<t|e>>>32-t}function E(e,t,n,r,a,o){return x(C(x(x(t,e),x(r,o)),a),n)}function j(e,t,n,r,a,o,s){return E(t&n|~t&r,e,t,a,o,s)}function O(e,t,n,r,a,o,s){return E(t&r|n&~r,e,t,a,o,s)}function H(e,t,n,r,a,o,s){return E(t^n^r,e,t,a,o,s)}function N(e,t,n,r,a,o,s){return E(n^(t|~r),e,t,a,o,s)}const P=b;var I=Y("v3",48,P);const R=I;function F(e,t,n){e=e||{};var r=e.random||(e.rng||o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=r[a];return t}return m(r)}const B=F;function W(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function V(e,t){return e<<t|e>>>32-t}function z(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"===typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var a=0;a<r.length;++a)e.push(r.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,s=Math.ceil(o/16),i=new Array(s),u=0;u<s;++u){for(var l=new Uint32Array(16),d=0;d<16;++d)l[d]=e[64*u+4*d]<<24|e[64*u+4*d+1]<<16|e[64*u+4*d+2]<<8|e[64*u+4*d+3];i[u]=l}i[s-1][14]=8*(e.length-1)/Math.pow(2,32),i[s-1][14]=Math.floor(i[s-1][14]),i[s-1][15]=8*(e.length-1)&4294967295;for(var c=0;c<s;++c){for(var m=new Uint32Array(80),h=0;h<16;++h)m[h]=i[c][h];for(var f=16;f<80;++f)m[f]=V(m[f-3]^m[f-8]^m[f-14]^m[f-16],1);for(var _=n[0],p=n[1],y=n[2],g=n[3],M=n[4],v=0;v<80;++v){var L=Math.floor(v/20),w=V(_,5)+W(L,p,y,g)+M+t[L]+m[v]>>>0;M=g,g=y,y=V(p,30)>>>0,p=_,_=w}n[0]=n[0]+_>>>0,n[1]=n[1]+p>>>0,n[2]=n[2]+y>>>0,n[3]=n[3]+g>>>0,n[4]=n[4]+M>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}const U=z;var q=Y("v5",80,U);const J=q,G="00000000-0000-0000-0000-000000000000";function $(e){if(!u(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const K=$},3744:(e,t)=>{"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n}},7203:t=>{"use strict";t.exports=e},4654:()=>{}},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e)})(),(()=>{r.p=""})();var a={};return(()=>{"use strict";if(r.r(a),r.d(a,{default:()=>Os,ermAttach:()=>xs,ermForm:()=>ce,ermList:()=>H}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(r.p=t[1])}var n=r(7203),o=r(8222);const s="data:image/jpeg;base64,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",i=e=>((0,n.pushScopeId)("data-v-160fcaec"),e=e(),(0,n.popScopeId)(),e),u={class:"myClass"},l=i((()=>(0,n.createElementVNode)("img",{src:s,style:{width:"150px",height:"150px","border-radius":"50%"}},null,-1))),d=i((()=>(0,n.createElementVNode)("h4",{style:{color:"darkgray","margin-top":"0px"}},"暂无数据",-1))),c=[l,d];function m(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("div",u,c)}var h=r(3744);const f={},_=(0,h.Z)(f,[["render",m],["__scopeId","data-v-160fcaec"]]),p=_,y={key:0,class:"mainTitle"},g=["onClick"],M={key:0,class:"leftArea"},v=["src","onClick","onMousedown","onMouseup","onTouchstart","onTouchend"],L=["onClick"],w={key:1,class:"rightArea"},k=["src","onClick","onMousedown","onMouseup","onTouchstart","onTouchend"],Y=["onClick"],b={key:0,class:"leftArea"},D=["src","onClick","onMousedown","onMouseup","onTouchstart","onTouchend"],T=["onClick"],S={key:1,class:"rightArea"},A=["src","onClick","onMousedown","onMouseup","onTouchstart","onTouchend"],x=(0,n.defineComponent)({__name:"ermList",props:{data:[],maxHeight:{type:String,default:"auto"},initSvc:{type:String,require:!0},formName:{type:String,require:!0},functionId:{type:String,require:!0},showLeft:{type:Boolean,default:!1},showRight:{type:Boolean,default:!1},mainTitle:{type:String,default:!1},leftIconUrl:{type:String,default:"lg.png"},rightIconUrl:{type:String,default:"xiangyou.png"},leftIconSize:{type:Array,default:["35px","35px"]},rightIconSize:{type:Array,default:["35px","35px"]},showSelect:{type:Boolean,default:!1},selectMode:{type:String,default:"multiRow"},pullDisabled:{type:Boolean,default:!1},pullDownDisabled:{type:Boolean,default:!1},leftSwiperSelect:{type:Boolean,default:!1},rightSwiperDelete:{type:Boolean,default:!1},viewType:{type:String,default:"list"}},emits:["leftIconClick","mainClick","rightIconClick","leftIconHold","rightIconHold","pullRefresh","pullUpdate"],setup(e,{expose:t,emit:r}){const a=(0,n.ref)(["1"]),s=e,i=r;t({endLoad:P,selectAll:W,selectNone:V,getSelectedRows:z,getTableName:X});s.maxHeight&&s.maxHeight;var u=(0,n.ref)("0%"),l=(0,n.ref)("100%"),d=(0,n.ref)("0%");function c(){s.showLeft&&s.showRight?(u.value="15%",d.value="15%",l.value="70%"):s.showLeft?(u.value="15%",l.value="85%"):s.showRight&&(d.value="15%",l.value="85%"),console.log(u,d,l)}(0,n.watch)((()=>[s.showLeft,s.showRight]),(([e,t],[n,r])=>{c()}));const m=(0,n.ref)([]);var h={},f=[];async function _(){console.log("erm初始化---formName ",s.formName),console.log("erm初始化---functionId ",s.functionId),console.log("erm初始化---initSvc ",s.initSvc),h={};const e=new o.EI.EIInfo,t=e.addBlock(new o.EI.EiBlock,"");t.pushData({DEFAULT_COMPANY_CODE:"",FORM_NAME:s.formName,TYPE_CODE:"Web",FUNCTION_IDS:s.functionId,DATASET_NAME:"#",TABLE_NAMES:""},!0),console.log("eiblk",t),await o.EIManager.callService("",s.initSvc,e).then((e=>{if(0!==e.sys.status)return void console.log(e.sys.msg);h=e.blocks,console.log("ret",h);var t=h["TSI00GRIDCOLUMN"].data;const n=h["TSI00GRIDVIEW"].data;t.forEach((e=>{if(""!==e.HEAD_TEXTCOLOR.trim()||"16777215"!==e.HEAD_TEXTCOLOR.trim()){var t=e.HEAD_TEXTCOLOR.trim();t="#"+(Number(t)+16777216).toString(16).padStart(6,"0"),e.HEAD_TEXTCOLOR=t}else e.HEAD_TEXTCOLOR="#000000";if(""!==e.CELL_TEXTCOLOR.trim()||"16777215"!==e.CELL_TEXTCOLOR.trim()){t=e.CELL_TEXTCOLOR.trim();t="#"+(Number(t)+16777216).toString(16).padStart(6,"0"),e.CELL_TEXTCOLOR=t}else e.CELL_TEXTCOLOR="#000000";e.DATASET_NAME=n[0]?.DATASET_NAME,e.TABLE_NAME=n[0]?.TABLE_NAME})),m.value=t,f=n[0].MERGE_COLUMN.split(",").filter((e=>" "!=e&&""!=e))}))}var x=null;function C(e){x=setTimeout((()=>{x=null,i("leftIconHold",e)}),1e3)}function E(e){clearTimeout(x),x=null}function j(e){x=setTimeout((()=>{x=null,i("rightIconHold",e)}),1e3)}function O(e){clearTimeout(x),x=null}const H=(0,n.ref)(!1),N=(0,n.ref)(!1);function P(){H.value=!1,N.value=!1}var I=(0,n.ref)(!1);function R(e,t){I.value&&(B.value.indexOf(e)<0?("singleRow"===s.selectMode&&(B.value=[]),B.value.push(e)):B.value.splice(B.value.indexOf(e),1))}(0,n.watch)((()=>s.showSelect),(()=>{I.value=s.showSelect}),{immediate:!0});const F=(0,n.ref)(null),B=(0,n.ref)([]);function W(){"multiRow"===s.selectMode&&F.value.toggleAll(!0)}function V(){F.value.toggleAll(!1)}function z(){for(let e=B.value.length-1;e>=0;e--){const t=B.value[e];s.data.includes(t)||B.value.splice(e,1)}return(0,n.toRaw)(B.value)}(0,n.watch)((()=>s.showSelect),(()=>{s.data.forEach((e=>{B.value.splice(B.value.indexOf(e),1)}))}));var U=(0,n.ref)(!0);function q(){I.value=!0}function J(){V(),I.value=!1}(0,n.watch)((()=>s.leftSwiperSelect),(()=>{s.leftSwiperSelect?U.value=!0:U.value=!1}),{deep:!0,immediate:!0});var G=(0,n.ref)(!0);function $(e){s.data.splice(e,1)}function K(){var e=document.getElementsByClassName("colDesc");for(let t=0;t<e.length;t++){const n=e[t];n.innerHTML=n.innerHTML.replaceAll("<br>","<br>")}}function Z(e){return new URL(`/src/assets/img/${e}`,"file:///C:/Users/Raymo/Desktop/%E5%B7%A5%E4%BD%9C%E6%96%87%E6%A1%A3/%E9%A1%B9%E7%9B%AE/%E7%A7%BB%E5%8A%A8%E5%BA%94%E7%94%A8/%E7%A7%BB%E5%8A%A8%E5%BA%94%E7%94%A8%E4%BA%A7%E5%93%81%E5%8C%96/GIT/erm/packages/ermList/ermList.vue%3Fvue&type=script&lang=ts&setup=true").href}function X(){return h["TSI00GRIDVIEW"].data[0].TABLE_NAME}return(0,n.watch)((()=>s.rightSwiperDelete),(()=>{s.rightSwiperDelete?G.value=!0:G.value=!1}),{deep:!0,immediate:!0}),(0,n.watch)((()=>s.data),(()=>{(0,n.nextTick)((()=>{K()}))}),{immediate:!0,deep:!0}),(0,n.watch)((()=>m.value),(()=>{(0,n.nextTick)((()=>{K()}))}),{immediate:!0,deep:!0}),(0,n.watch)((()=>s.pullDownDisabled),(()=>{!0===s.pullDownDisabled&&(N.value=!1)}),{immediate:!0}),(0,n.onMounted)((()=>{c(),_()})),(t,r)=>{const o=(0,n.resolveComponent)("van-button"),i=(0,n.resolveComponent)("van-checkbox"),u=(0,n.resolveComponent)("van-col"),l=(0,n.resolveComponent)("van-row"),d=(0,n.resolveComponent)("van-swipe-cell"),c=(0,n.resolveComponent)("van-checkbox-group"),h=(0,n.resolveComponent)("van-list"),_=(0,n.resolveComponent)("van-collapse-item"),x=(0,n.resolveComponent)("van-collapse"),P=(0,n.resolveComponent)("van-pull-refresh");return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[e.mainTitle&&""!==e.mainTitle?((0,n.openBlock)(),(0,n.createElementBlock)("div",y,(0,n.toDisplayString)(e.mainTitle),1)):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(P,{class:"pullRefresh",modelValue:H.value,"onUpdate:modelValue":r[7]||(r[7]=e=>H.value=e),disabled:e.pullDisabled,onRefresh:r[8]||(r[8]=e=>t.$emit("pullRefresh"))},{default:(0,n.withCtx)((()=>[m.value.length>0&&e.data.length>0&&0===(0,n.unref)(f).length?((0,n.openBlock)(),(0,n.createBlock)(h,{key:0,loading:N.value,"onUpdate:loading":r[1]||(r[1]=e=>N.value=e),style:{"min-height":"200px"},onLoad:r[2]||(r[2]=e=>t.$emit("pullUpdate")),"immediate-check":!0,finished:e.pullDownDisabled},{default:(0,n.withCtx)((()=>[(0,n.createVNode)(c,{modelValue:B.value,"onUpdate:modelValue":r[0]||(r[0]=e=>B.value=e),ref_key:"checkBoxGroup",ref:F},{default:(0,n.withCtx)((()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.data,((r,a)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)({selected:B.value.indexOf(r)>=0}),onClick:e=>R(r,a)},[(0,n.createVNode)(d,null,{left:(0,n.withCtx)((()=>[(0,n.renderSlot)(t.$slots,"leftButton",{data:{item:r,index:a}},(()=>[(0,n.unref)(U)&&!(0,n.unref)(I)?((0,n.openBlock)(),(0,n.createBlock)(o,{key:0,square:"",type:"primary",text:"开启多选",class:"swiperButton",onClick:q})):(0,n.createCommentVNode)("",!0),(0,n.unref)(U)&&(0,n.unref)(I)?((0,n.openBlock)(),(0,n.createBlock)(o,{key:1,square:"",type:"primary",text:"取消多选",class:"swiperButton",onClick:J})):(0,n.createCommentVNode)("",!0)]))])),right:(0,n.withCtx)((()=>[(0,n.renderSlot)(t.$slots,"rightButton",{data:{item:r,index:a}},(()=>[(0,n.unref)(G)?((0,n.openBlock)(),(0,n.createBlock)(o,{key:0,square:"",type:"danger",text:"删除",class:"swiperButton",onClick:e=>$(a)},null,8,["onClick"])):(0,n.createCommentVNode)("",!0)]))])),default:(0,n.withCtx)((()=>[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)({rowContent:"list"===s.viewType,rowContentCard:"card"===s.viewType})},[e.showLeft||(0,n.unref)(I)?((0,n.openBlock)(),(0,n.createElementBlock)("div",M,[(0,n.unref)(I)?((0,n.openBlock)(),(0,n.createBlock)(i,{key:1,onClick:e=>R(r,a),name:r},null,8,["onClick","name"])):(0,n.renderSlot)(t.$slots,"leftArea",{key:0,data:{item:r,index:a}},(()=>[(0,n.createElementVNode)("img",{src:Z(e.leftIconUrl),style:(0,n.normalizeStyle)("height:"+e.leftIconSize[1]+";width:"+e.leftIconSize[0]),onClick:e=>t.$emit("leftIconClick",r),onMousedown:e=>C(r),onMouseup:e=>E(r),onTouchstart:e=>C(r),onTouchend:e=>E(r)},null,44,v)]))])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",{class:"mainContent",onClick:e=>t.$emit("mainClick",r)},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(m.value,((t,r)=>((0,n.openBlock)(),(0,n.createBlock)(l,null,{default:(0,n.withCtx)((()=>[(0,n.createVNode)(u,{class:"singleRow colDesc",style:(0,n.normalizeStyle)("color:"+t.HEAD_TEXTCOLOR),span:"8"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(t.CUS_COL_CAPTION)+":",1)])),_:2},1032,["style"]),(0,n.createVNode)(u,{class:"singleRow colData",style:(0,n.normalizeStyle)("color:"+t.CELL_TEXTCOLOR),offset:"0",span:"16"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.data[a][t.ITEM_CODE]),1)])),_:2},1032,["style"])])),_:2},1024)))),256))],8,L),e.showRight?((0,n.openBlock)(),(0,n.createElementBlock)("div",w,[(0,n.renderSlot)(t.$slots,"rightArea",{data:{item:r,index:a}},(()=>[(0,n.createElementVNode)("img",{class:"rightIcon",src:Z(e.rightIconUrl),style:(0,n.normalizeStyle)("height:"+e.rightIconSize[1]+";width:"+e.rightIconSize[0]),onClick:e=>t.$emit("rightIconClick",r),onMousedown:e=>j(r),onMouseup:e=>O(r),onTouchstart:e=>j(r),onTouchend:e=>O(r)},null,44,k)]))])):(0,n.createCommentVNode)("",!0)],2)])),_:2},1024)],10,g)))),256))])),_:3},8,["modelValue"])])),_:3},8,["loading","finished"])):(0,n.createCommentVNode)("",!0),m.value.length>0&&e.data.length>0&&(0,n.unref)(f).length>0?((0,n.openBlock)(),(0,n.createBlock)(h,{key:1,loading:N.value,"onUpdate:loading":r[5]||(r[5]=e=>N.value=e),style:{"min-height":"200px"},onLoad:r[6]||(r[6]=e=>t.$emit("pullUpdate")),"immediate-check":!0,finished:e.pullDownDisabled},{default:(0,n.withCtx)((()=>[(0,n.createVNode)(c,{modelValue:B.value,"onUpdate:modelValue":r[4]||(r[4]=e=>B.value=e),ref_key:"checkBoxGroup",ref:F},{default:(0,n.withCtx)((()=>[(0,n.createVNode)(x,{modelValue:a.value,"onUpdate:modelValue":r[3]||(r[3]=e=>a.value=e),"lazy-render":"false"},{default:(0,n.withCtx)((()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.data,((r,a)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)({selected:B.value.indexOf(r)>=0}),onClick:e=>R(r,a)},[(0,n.createVNode)(d,null,{left:(0,n.withCtx)((()=>[(0,n.renderSlot)(t.$slots,"leftButton",{data:{item:r,index:a}},(()=>[(0,n.unref)(U)&&!(0,n.unref)(I)?((0,n.openBlock)(),(0,n.createBlock)(o,{key:0,square:"",type:"primary",text:"开启多选",class:"swiperButton",onClick:q})):(0,n.createCommentVNode)("",!0),(0,n.unref)(U)&&(0,n.unref)(I)?((0,n.openBlock)(),(0,n.createBlock)(o,{key:1,square:"",type:"primary",text:"取消多选",class:"swiperButton",onClick:J})):(0,n.createCommentVNode)("",!0)]))])),right:(0,n.withCtx)((()=>[(0,n.renderSlot)(t.$slots,"rightButton",{data:{item:r,index:a}},(()=>[(0,n.unref)(G)?((0,n.openBlock)(),(0,n.createBlock)(o,{key:0,square:"",type:"danger",text:"删除",class:"swiperButton",onClick:e=>$(a)},null,8,["onClick"])):(0,n.createCommentVNode)("",!0)]))])),default:(0,n.withCtx)((()=>[(0,n.createElementVNode)("div",{id:"列表",class:(0,n.normalizeClass)({rowContent:"list"===s.viewType,rowContentCard:"card"===s.viewType})},[e.showLeft||(0,n.unref)(I)?((0,n.openBlock)(),(0,n.createElementBlock)("div",b,[(0,n.unref)(I)?((0,n.openBlock)(),(0,n.createBlock)(i,{key:1,onClick:e=>R(r,a),name:r},null,8,["onClick","name"])):(0,n.renderSlot)(t.$slots,"leftArea",{key:0,data:{item:r,index:a}},(()=>[(0,n.createElementVNode)("img",{src:Z(e.leftIconUrl),style:(0,n.normalizeStyle)("height:"+e.leftIconSize[1]+";width:"+e.leftIconSize[0]),onClick:e=>t.$emit("leftIconClick",r),onMousedown:e=>C(r),onMouseup:e=>E(r),onTouchstart:e=>C(r),onTouchend:e=>E(r)},null,44,D)]))])):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(_,{name:a,style:{width:"100%"},onClick:e=>{console.log("van-collapse-itemccc"),R(r,a)}},{title:(0,n.withCtx)((()=>[(0,n.createElementVNode)("div",null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(m.value,((t,r)=>((0,n.openBlock)(),(0,n.createBlock)(l,null,{default:(0,n.withCtx)((()=>[(0,n.unref)(f).includes(t.ITEM_CODE)?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createVNode)(u,{class:"singleRow colDesc",style:(0,n.normalizeStyle)("color:"+t.HEAD_TEXTCOLOR),span:"8"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(t.CUS_COL_CAPTION)+":",1)])),_:2},1032,["style"]),(0,n.createVNode)(u,{class:"singleRow colData",style:(0,n.normalizeStyle)("color:"+t.CELL_TEXTCOLOR),offset:"0",span:"16"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.data[a][t.ITEM_CODE]),1)])),_:2},1032,["style"])],64)):(0,n.createCommentVNode)("",!0)])),_:2},1024)))),256))])])),default:(0,n.withCtx)((()=>[(0,n.createElementVNode)("div",{class:"mainContent",onClick:e=>{t.$emit("mainClick",r),R(r,a)}},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(m.value,((t,r)=>((0,n.openBlock)(),(0,n.createBlock)(l,null,{default:(0,n.withCtx)((()=>[(0,n.unref)(f).includes(t.ITEM_CODE)?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createVNode)(u,{class:"singleRow colDesc",style:(0,n.normalizeStyle)("color:"+t.HEAD_TEXTCOLOR),span:"8"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(t.CUS_COL_CAPTION)+":",1)])),_:2},1032,["style"]),(0,n.createVNode)(u,{class:"singleRow colData",style:(0,n.normalizeStyle)("color:"+t.CELL_TEXTCOLOR),offset:"0",span:"16"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.data[a][t.ITEM_CODE]),1)])),_:2},1032,["style"])],64))])),_:2},1024)))),256))],8,T)])),_:2},1032,["name","onClick"]),e.showRight?((0,n.openBlock)(),(0,n.createElementBlock)("div",S,[(0,n.renderSlot)(t.$slots,"rightArea",{data:{item:r,index:a}},(()=>[(0,n.createElementVNode)("img",{class:"rightIcon",src:Z(e.rightIconUrl),style:(0,n.normalizeStyle)("height:"+e.rightIconSize[1]+";width:"+e.rightIconSize[0]),onClick:e=>t.$emit("rightIconClick",r),onMousedown:e=>j(r),onMouseup:e=>O(r),onTouchstart:e=>j(r),onTouchend:e=>O(r)},null,44,A)]))])):(0,n.createCommentVNode)("",!0)],2)])),_:2},1024)],10,Y)))),256))])),_:3},8,["modelValue"])])),_:3},8,["modelValue"])])),_:3},8,["loading","finished"])):(0,n.createCommentVNode)("",!0),0===m.value.length||0===e.data.length?((0,n.openBlock)(),(0,n.createBlock)(p,{key:2})):(0,n.createCommentVNode)("",!0)])),_:3},8,["modelValue","disabled"])],64)}}}),C=(0,h.Z)(x,[["__scopeId","data-v-5fd094a4"]]),E=C,j=e=>(e.install=t=>{const n=e.name||e.__name;t.component(n,e)},e),O=j(E),H=O;var N=r(381),P=r.n(N);const I=(0,n.defineComponent)({__name:"MobileLookUp",props:{data:{type:String},value:{type:String},title:{type:String,default:""},codeSet:{type:o.EI.EiBlock},valueCol:{type:String},displayCol:{type:String},showSearch:{type:Boolean,default:!0},checkFlag:{default:!1},readOnly:{type:Boolean,default:!1}},emits:["input","cancel"],setup(e,{expose:t,emit:r}){const a=e,o=r;t({}),(0,n.watch)((()=>a.data),(()=>{if(a.codeSet){for(let e=0;e<a.codeSet.data.length;e++)if(a.codeSet.data[e][l.value]===a.data)return s.value=Object.assign({},a.codeSet.data[e]),void(u.value=e);s.value[l.text]="",s.value[l.value]=""}o("input",s.value[l.value])}));const s=(0,n.ref)({}),i=(0,n.ref)(!1),u=(0,n.ref)(0);var l={text:"CODE_DESC_1_CONTENT",value:"CODE"};const d=(0,n.ref)([]),c=(0,n.ref)([]);(0,n.watch)((()=>a.valueCol),(()=>{""!==a.displayCol.trim()&&""!==a.valueCol.trim()&&(l.text=a.displayCol,l.value=a.valueCol)}),{immediate:!0,deep:!0}),(0,n.watch)((()=>a.codeSet),(()=>{if(d.value=[],a.codeSet)for(let e=0;e<a.codeSet.data.length;e++){const t=a.codeSet.data[e];!1!==t.showFlag&&d.value.push(t)}c.value=d.value}),{immediate:!0,deep:!0});const m=e=>{e&&(s.value=e,o("input",s.value[l.value])),i.value=!1,y()},h=e=>{},f=()=>{s.value[l.text]="",s.value[l.value]="",console.log(s.value),i.value=!1,o("input",s.value[l.value]),y()},_=(0,n.ref)(""),p=e=>{console.log("keyword",e),console.log("handleSearch1",d);const t=[];c.value.forEach((n=>{n[l.text].indexOf(e)>-1&&t.push(n)})),d.value=t},y=()=>{_.value="",d.value=c.value};return(0,n.onMounted)((()=>{})),(t,r)=>{const a=(0,n.resolveComponent)("van-field"),o=(0,n.resolveComponent)("van-picker"),c=(0,n.resolveComponent)("van-popup");return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.createVNode)(a,{class:(0,n.normalizeClass)({vanField:!0,checkError:e.checkFlag}),modelValue:s.value[(0,n.unref)(l).text],"onUpdate:modelValue":r[0]||(r[0]=e=>s.value[(0,n.unref)(l).text]=e),"is-link":!e.readOnly,placeholder:"点击选择",onClick:r[1]||(r[1]=()=>{e.readOnly||(i.value=!0)}),readonly:!0},null,8,["class","modelValue","is-link"]),(0,n.createVNode)(c,{show:i.value,"onUpdate:show":r[4]||(r[4]=e=>i.value=e),round:"",position:"bottom"},{default:(0,n.withCtx)((()=>[e.showSearch?((0,n.openBlock)(),(0,n.createBlock)(a,{key:0,placeholder:"查询选项",modelValue:_.value,"onUpdate:modelValue":[r[2]||(r[2]=e=>_.value=e),r[3]||(r[3]=e=>p(_.value))],"left-icon":"search",autocomplete:"off",clearable:!0},null,8,["modelValue"])):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(o,{columns:d.value,onCancel:f,onConfirm:m,onChange:h,"default-index":u.value,"cancel-button-text":"清空","columns-field-names":(0,n.unref)(l)},null,8,["columns","default-index","columns-field-names"])])),_:1},8,["show"])],64)}}}),R=I,F=R,B=(0,n.defineComponent)({__name:"MobileSpin",props:{data:{type:Number},scale:{type:String},checkFlag:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1}},emits:["input"],setup(e,{expose:t,emit:r}){const a=e,o=r;var s;function i(e){var t;"-1"===a.scale?"."===e.data&&(e.target.value=e.target.value.replace(".","")):t=a.scale;let r=new RegExp(`^(\\-)*(\\d+)\\.(\\d{0,${t}}).*$`),i="$1$2.$3";e.target.value=e.target.value.replace(r,i),"-"===e.data&&(isNaN(e.target.value)||(e.target.value=-e.target.value)),(0,n.nextTick)((()=>{s=Number(e.target.value),o("input",s)}))}return t({}),(0,n.watch)((()=>a.data),(()=>{s=a.data})),(0,n.onMounted)((()=>{s=a.data})),(t,r)=>{const a=(0,n.resolveComponent)("van-field");return(0,n.openBlock)(),(0,n.createBlock)(a,{class:(0,n.normalizeClass)({vanField:!0,checkError:e.checkFlag}),modelValue:(0,n.unref)(s),"onUpdate:modelValue":r[0]||(r[0]=e=>(0,n.isRef)(s)?s.value=e:s=e),type:"number",onInput:i,placeholder:"请输入",autocomplete:"off",readonly:e.readOnly},null,8,["class","modelValue","readonly"])}}}),W=B,V=W,z=(0,n.defineComponent)({__name:"MobileText",props:{data:{type:String},height:{type:Number,default:1},checkFlag:{default:!1},readOnly:{type:Boolean,default:!1}},emits:["input"],setup(e,{expose:t,emit:r}){const a=e,o=r;t({});var s=(0,n.ref)("");function i(){o("input",s.value)}return(0,n.watch)((()=>a.data),(()=>{s.value=a.data})),(0,n.onMounted)((()=>{s.value=a.data})),(t,r)=>{const a=(0,n.resolveComponent)("van-field");return e.height>1?((0,n.openBlock)(),(0,n.createBlock)(a,{key:0,class:(0,n.normalizeClass)({vanField:!0,checkError:e.checkFlag}),modelValue:(0,n.unref)(s),"onUpdate:modelValue":[r[0]||(r[0]=e=>(0,n.isRef)(s)?s.value=e:s=e),i],type:"textarea",autocomplete:"off",placeholder:"请输入",rows:e.height,clearable:!0,spellcheck:"false",readonly:e.readOnly},null,8,["class","modelValue","rows","readonly"])):((0,n.openBlock)(),(0,n.createBlock)(a,{key:1,class:(0,n.normalizeClass)({vanField:!0,checkError:e.checkFlag}),modelValue:(0,n.unref)(s),"onUpdate:modelValue":[r[1]||(r[1]=e=>(0,n.isRef)(s)?s.value=e:s=e),i],placeholder:"请输入",autocomplete:"off",readonly:e.readOnly,clearable:!0,spellcheck:"false"},null,8,["class","modelValue","readonly"]))}}}),U=z,q=U,J=(0,n.defineComponent)({__name:"DateTimePicker",props:{showPicker:{type:Boolean},type:{type:String,default:"yyyy-MM-dd HH:mm:ss"},title:{type:String,default:" "}},emits:["confirm","cancel","changeValue"],setup(e,{emit:t}){const r=(0,n.reactive)({isPicker:!1,columns:[],Mdays:"",Dindex:null,selectedValues:[]}),a=(0,n.ref)();var o="";const s=e,i=t;function u(){r.columns=[];let e=new Date,t=e.getFullYear(),n=e.getMonth(),a=e.getDate(),i=e.getHours(),u=e.getMinutes(),l=e.getSeconds(),c=[],m=(new Date).getFullYear();for(let r=m-20;r<m+20;r++)c.push(r.toString());t.toString();const h=n+1<10?`0${n+1}`:(n+1).toString(),f=a<10?`0${a}`:a.toString(),_=i<10?`0${i}`:i.toString(),p=u<10?`0${u}`:u.toString(),y=l<10?`0${l}`:l.toString();let g,M=[];M=Object.keys(Array.apply(null,{length:13})).map((function(e){return+e+1<=10?"0"+e:+e+1==11?(+e).toString():(+e+0).toString()})),M.splice(0,1),g=o.length>=6?d(o.substring(0,4),o.substring(4,6)):d(t.toString(),n.toString());let v=[];v=Object.keys(Array.apply(null,{length:g+1})).map((function(e){return+e+1<=10?"0"+e:+e+1==11?(+e).toString():(+e+0).toString()})),v.splice(0,1);let L=[];L=Object.keys(Array.apply(null,{length:24})).map((function(e){return+e+1<=10?"0"+e:+e+1==11?(+e).toString():(+e+0).toString()}));let w=[];w=Object.keys(Array.apply(null,{length:60})).map((function(e){return+e+1<=10?"0"+e:+e+1==11?(+e).toString():(+e+0).toString()}));let k=[];k=Object.keys(Array.apply(null,{length:60})).map((function(e){return+e+1<=10?"0"+e:+e+1==11?(+e).toString():(+e+0).toString()})),r.columns.push({values:c,defaultIndex:c.indexOf(t.toString())}),r.columns.push({values:M,defaultIndex:M.indexOf(h)}),r.columns.push({values:v,defaultIndex:v.indexOf(f)}),r.columns.push({values:L,defaultIndex:L.indexOf(_)}),r.columns.push({values:w,defaultIndex:w.indexOf(p)}),r.columns.push({values:k,defaultIndex:k.indexOf(y)}),"yyyy-mm-dd"===s.type.trim().toLowerCase()&&r.columns.splice(3,3),console.log("columns",r.columns)}function l(){const e=a.value.getValues();o="",e.forEach((e=>{o+=e})),u()}function d(e,t){let n=new Date(e,t,0);return n.getDate()}function c(){i("changeValue")}function m(){r.isPicker=!1,i("cancel")}function h(){const e=a.value.getValues();var t="";e.forEach((e=>{t+=e})),i("confirm",t)}return(0,n.watch)((()=>r.isPicker),(e=>{r.columns=[],u()})),(0,n.watch)((()=>s.showPicker),(e=>{r.isPicker=e})),(e,t)=>{const o=(0,n.resolveComponent)("van-picker"),i=(0,n.resolveComponent)("van-popup");return(0,n.openBlock)(),(0,n.createBlock)(i,{show:r.isPicker,"onUpdate:show":t[1]||(t[1]=e=>r.isPicker=e),position:"bottom",round:"",onClose:c},{default:(0,n.withCtx)((()=>[(0,n.createVNode)(o,{ref_key:"picker",ref:a,columns:r.columns,onChange:l,onCancel:m,onConfirm:h,modelValue:r.selectedValues,"onUpdate:modelValue":t[0]||(t[0]=e=>r.selectedValues=e),"cancel-button-text":"清空",title:s.title},null,8,["columns","modelValue","title"])])),_:1},8,["show"])}}}),G=J,$=G,K=(0,n.defineComponent)({__name:"MobileDate",props:{data:{type:String},type:{type:String},title:{type:String},checkFlag:{default:!1},readOnly:{type:Boolean,default:!1}},emits:["input"],setup(e,{expose:t,emit:r}){const a=e,o=r;t({});var s="";const i=(0,n.ref)(!1);function u(e){return 14===e.length?P()(e,"YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss"):8===e.length?P()(e,"YYYYMMDD").format("YYYY-MM-DD"):e}const l=e=>{i.value=!1,s=e,o("input",s)},d=e=>{i.value=!1,s="",o("input",s)};return(0,n.watch)((()=>a.data),(()=>{s=a.data})),(0,n.onMounted)((()=>{})),(t,r)=>{const o=(0,n.resolveComponent)("van-field");return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.createVNode)(o,{class:(0,n.normalizeClass)({vanField:!0,checkError:e.checkFlag}),modelValue:(0,n.unref)(s),"onUpdate:modelValue":r[0]||(r[0]=e=>(0,n.isRef)(s)?s.value=e:s=e),"is-link":!e.readOnly,name:"datetimePicker",formatter:u,placeholder:"点击选择时间",onClick:r[1]||(r[1]=()=>{e.readOnly||(i.value=!0)}),readonly:!0,autocomplete:"off"},null,8,["class","modelValue","is-link"]),(0,n.createVNode)($,{onChangeValue:r[2]||(r[2]=e=>i.value=!1),showPicker:i.value,type:a.type,onConfirm:l,title:a.title,onCancel:d},null,8,["showPicker","type","title"])],64)}}}),Z=K,X=Z,Q=(0,n.defineComponent)({__name:"MobileButtonEdit",props:{data:{type:String},readOnly:{type:Boolean,default:!1}},emits:["input","btnClick"],setup(e,{expose:t,emit:r}){const a=e,o=r;var s;function i(){o("input",s)}function u(){a.readOnly||o("btnClick")}return t({}),(0,n.watch)((()=>a.data),(()=>{s=a.data})),(0,n.onMounted)((()=>{s=a.data})),(t,r)=>{const a=(0,n.resolveComponent)("van-field");return(0,n.openBlock)(),(0,n.createBlock)(a,{class:"vanField",modelValue:(0,n.unref)(s),"onUpdate:modelValue":r[0]||(r[0]=e=>(0,n.isRef)(s)?s.value=e:s=e),"is-link":!e.readOnly,placeholder:"点击选择",onClick:u,readonly:!0,onInput:i,autocomplete:"false"},null,8,["modelValue","is-link"])}}}),ee=Q,te=ee,ne={key:0,class:"mainTitle"},re={key:1},ae={class:"rowContent"},oe={class:"mainContent"},se={key:0,class:"required"},ie=(0,n.defineComponent)({__name:"ermForm",props:{maxHeight:{type:String,default:"auto"},initSvc:{type:String,require:!0},formName:{type:String,require:!0},functionId:{type:String,require:!0},mainTitle:{type:String,default:!1}},emits:["dataChange","cellValueChange","btnClick"],setup(e,{expose:t,emit:r}){const a=e,s=r;t({getGridData:f,setGridData:_,addRow:h,checkRequireInput:w,resetData:k,getGridCellData:p,mergeDataRow:Y,getTableName:b});a.maxHeight&&a.maxHeight;const i=(0,n.ref)([]);var u=(0,n.reactive)([]);const l=(0,n.ref)({}),d=(0,n.computed)((()=>JSON.parse(JSON.stringify(u))));(0,n.watch)((()=>d.value),((e,t)=>{if(0!==Object.keys(e[0]).length&&s("dataChange",e),null!==l.value&&void 0!==l.value&&0!==Object.keys(l.value).length&&(v(),e.length===t.length))for(let n=0;n<u.length;n++)for(let r=0;r<i.value.length;r++){const a=i.value[r].ITEM_CODE;e[n][a]!==t[n][a]&&void 0!==t[n][a]&&(L.length>0&&(L[n][a]=!1),s("cellValueChange",{ITEM_CODE:a,ROW_NO:n,OLD_VALUE:t[n][a],NEW_VALUE:e[n][a]}))}}),{deep:!0});var c={};async function m(){console.log("erm初始化---formName ",a.formName),console.log("erm初始化---functionId ",a.functionId),console.log("erm初始化---initSvc ",a.initSvc),c={};const e=new o.EI.EIInfo,t=e.addBlock(new o.EI.EiBlock,"");t.pushData({DEFAULT_COMPANY_CODE:"",FORM_NAME:a.formName,TYPE_CODE:"Web",FUNCTION_IDS:a.functionId,DATASET_NAME:"#",TABLE_NAMES:""},!0),console.log("eiblk",t),await o.EIManager.callService("",a.initSvc,e).then((e=>{if(0!==e.sys.status)return void console.log(e.sys.msg);c=e.blocks,console.log("ret",c),l.value=c;var t=c["TSI00GRIDCOLUMN"].data;const n=c["TSI00GRIDVIEW"].data,r=n[0].DATASET_NAME,a=n[0].TABLE_NAME;t.forEach((e=>{if(""!==e.HEAD_TEXTCOLOR.trim()||"16777215"!==e.HEAD_TEXTCOLOR.trim()){var t=e.HEAD_TEXTCOLOR.trim();t="#"+(Number(t)+16777216).toString(16).padStart(6,"0"),e.HEAD_TEXTCOLOR=t}else e.HEAD_TEXTCOLOR="#000000";if(""!==e.CELL_TEXTCOLOR.trim()||"16777215"!==e.CELL_TEXTCOLOR.trim()){t=e.CELL_TEXTCOLOR.trim();t="#"+(Number(t)+16777216).toString(16).padStart(6,"0"),e.CELL_TEXTCOLOR=t}else e.CELL_TEXTCOLOR="#000000";if(e.DATASET_NAME=r,e.TABLE_NAME=a,e.DATA_TYPE="",c.hasOwnProperty("TSI00DATATABLE")){const t=c["TSI00DATATABLE"].data;t.forEach((t=>{e.FIELD_NAME===t.COL_NAME&&(e.DATA_TYPE=t.DATA_TYPE)}))}else"9"===e.COLUMN_EDIT?e.DATA_TYPE="2":e.DATA_TYPE="1";"7"===e.COLUMN_EDIT&&(e.CODE_TABLE_NAME=e.SVC_NAME,"5"===e.ORIGIN_CODE&&(e.CODE_TABLE_NAME="SI->"+e.CODE_TABLE_NAME),"6"===e.ORIGIN_CODE&&(e.CODE_TABLE_NAME="EP->"+e.CODE_TABLE_NAME),"4"===e.ORIGIN_CODE&&(e.CODE_TABLE_NAME=e.FORM_NAME+e.CODE_TABLE_NAME),""!==e.DISPLAY_MEMBER.trim()&&""!==e.VALUE_MEMBER.trim()||(e.VALUE_MEMBER=l.value[e.CODE_TABLE_NAME].columns[0].name,e.DISPLAY_MEMBER=l.value[e.CODE_TABLE_NAME].columns[1].name))})),i.value=t}))}function h(){u.push({}),(0,n.nextTick)((()=>{setTimeout((()=>{y(u[u.length-1]),M()}),500)}))}function f(){return u}function _(e,t,n){u[e][t]=n}function p(e,t){return u[e][t]}function y(e){i.value.forEach((t=>{e[t.ITEM_CODE]=g(t.DEFAULT_VALUE.trim(),t.DATA_TYPE)}))}function g(e,t){var n=e.trim();e.trim().indexOf("yyyy")>0&&(n=e.trim().replace("yyyy","YYYY")),e.trim().indexOf("MMdd")>0&&(n=e.trim().replace("dd","DD"));var r=new Date;if("$USER_ID$"===n)return(0,o.getCurrentUser)().userId;if("$COMPANY_CODE$"===n)return(0,o.getCurrentEnvironment)().companyCode;if("$USER_NAME$"===n)return(0,o.getCurrentUser)().userName;if(n.toUpperCase().indexOf("YYYY")>=0&&n.toUpperCase().indexOf(",ADD")<0){var a=P()(r).format(n);return a}if(n.toUpperCase().indexOf(",ADDDAYS")>0){var s=n.toUpperCase().indexOf(",ADDDAYS"),i=n.substring(0,s),u=n.substring(n.indexOf("(")+1,n.indexOf(")")),l=g(i),d="YYYYMMDDHHmmss";return 14===l.length?d="YYYYMMDDHHmmss":8===l.length&&(d="YYYYMMdd"),P()(l,d).add(Number(u),"days").format("YYYYMMDDHHmmss")}if(n.toUpperCase().indexOf(",ADDMONTHS")>0){s=n.toUpperCase().indexOf(",ADDMONTHS"),i=n.substring(0,s),u=n.substring(n.indexOf("(")+1,n.indexOf(")")),l=g(i),d="YYYYMMDDHHmmss";return 14===l.length?d="YYYYMMDDHHmmss":8===l.length&&(d="YYYYMMdd"),P()(l,d).add(Number(u),"M").format("YYYYMMDDHHmmss")}return"2"===t?Number(e):e}function M(){var e=document.getElementsByClassName("colDesc");for(let t=0;t<e.length;t++){const n=e[t];n.innerHTML=n.innerHTML.replaceAll("<br>","<br>")}}function v(){i.value.forEach((e=>{if(""!==e.FORM_FILTER.trim()&&""!==e.FATHER_FIELD.trim()){var t=e.FORM_FILTER.substring(0,e.FORM_FILTER.indexOf("=")).trim();console.log(t);for(let n=0;n<l.value[e.CODE_TABLE_NAME].data.length;n++){const r=l.value[e.CODE_TABLE_NAME].data[n];l.value[e.CODE_TABLE_NAME].data[n].showFlag=!0,""!==u[0][e.FATHER_FIELD]&&" "!==u[0][e.FATHER_FIELD]&&r[t]!==u[0][e.FATHER_FIELD]?r.showFlag=!1:r.showFlag=!0}}}))}const L=(0,n.reactive)([]);function w(){L.splice(0,L.length),setTimeout((()=>{for(let e=0;e<u.length;e++){L.push({});for(let t=0;t<i.value.length;t++)L[e][i.value[t].ITEM_CODE]=!1}u.forEach(((e,t)=>{i.value.forEach((n=>{"1"===n.ITEM_MUST_FLAG&&("2"===n.DATA_TYPE?0===Number(e[n.ITEM_CODE])&&(L[t][n.ITEM_CODE]=!0):""!==e[n.ITEM_CODE]&&" "!==e[n.ITEM_CODE]||(L[t][n.ITEM_CODE]=!0))}))}))}),300);let e=!1;return u.forEach(((t,n)=>{i.value.forEach((n=>{"1"===n.ITEM_MUST_FLAG&&("2"===n.DATA_TYPE?0===Number(t[n.ITEM_CODE])&&(e=!0):""!==t[n.ITEM_CODE]&&" "!==t[n.ITEM_CODE]||(e=!0))}))})),!e}function k(){u.forEach((e=>{y(e)}))}function Y(e,t){if(u.length<=e)console.log("data中不存在第"+e+"行数据");else for(const n in t)t.hasOwnProperty(n)&&(console.log(`属性名: ${n}, 属性值: ${t[n]}`),u[e].hasOwnProperty(n)&&(u[e][n]=t[n]))}function b(){return c["TSI00GRIDVIEW"].data[0].TABLE_NAME}return(0,n.onMounted)((()=>{m(),h()})),(0,n.watch)((()=>i.value),(()=>{(0,n.nextTick)((()=>{M(),setTimeout((()=>{console.log("codesets--------",l.value)}),1e3)}))}),{deep:!0}),(t,r)=>{const a=(0,n.resolveComponent)("van-col"),o=(0,n.resolveComponent)("van-row"),d=(0,n.resolveComponent)("NoData");return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[e.mainTitle&&""!==e.mainTitle?((0,n.openBlock)(),(0,n.createElementBlock)("div",ne,(0,n.toDisplayString)(e.mainTitle),1)):(0,n.createCommentVNode)("",!0),i.value.length>0&&(0,n.unref)(u).length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",re,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(u),((e,t)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",ae,[(0,n.createElementVNode)("div",oe,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(i.value,((e,r)=>((0,n.openBlock)(),(0,n.createBlock)(o,{justify:"center"},{default:(0,n.withCtx)((()=>[(0,n.createVNode)(a,{class:"singleRow colDesc",style:(0,n.normalizeStyle)("color:"+e.HEAD_TEXTCOLOR),span:"6"},{default:(0,n.withCtx)((()=>["1"===e.ITEM_MUST_FLAG?((0,n.openBlock)(),(0,n.createElementBlock)("div",se,"*")):(0,n.createCommentVNode)("",!0),(0,n.createTextVNode)(" "+(0,n.toDisplayString)(e.CUS_COL_CAPTION)+": ",1)])),_:2},1032,["style"]),(0,n.createVNode)(a,{class:"singleRow colData",style:(0,n.normalizeStyle)("color:"+e.CELL_TEXTCOLOR),span:"16"},{default:(0,n.withCtx)((()=>["0"===e.COLUMN_EDIT?((0,n.openBlock)(),(0,n.createBlock)(q,{key:0,height:e.ROWHIGH,data:(0,n.unref)(u)[t][e.ITEM_CODE],onInput:r=>{(0,n.unref)(u)[t][e.ITEM_CODE]=r},checkFlag:L.length>0&&L[t][e.ITEM_CODE],readOnly:"0"!==e.READ_ONLY},null,8,["height","data","onInput","checkFlag","readOnly"])):(0,n.createCommentVNode)("",!0),"1"===e.COLUMN_EDIT?((0,n.openBlock)(),(0,n.createBlock)(te,{key:1,data:(0,n.unref)(u)[t][e.ITEM_CODE],onInput:r=>{(0,n.unref)(u)[t][e.ITEM_CODE]=r},onBtnClick:n=>s("btnClick",{ITEM_CODE:e.ITEM_CODE,INDEX:t}),checkFlag:L.length>0&&L[t][e.ITEM_CODE],readOnly:"0"!==e.READ_ONLY},null,8,["data","onInput","onBtnClick","checkFlag","readOnly"])):(0,n.createCommentVNode)("",!0),"9"===e.COLUMN_EDIT?((0,n.openBlock)(),(0,n.createBlock)(V,{key:2,data:(0,n.unref)(u)[t][e.ITEM_CODE],scale:e.DATA_ACCU,onInput:r=>{(0,n.unref)(u)[t][e.ITEM_CODE]=r},checkFlag:L.length>0&&L[t][e.ITEM_CODE],readOnly:"0"!==e.READ_ONLY},null,8,["data","scale","onInput","checkFlag","readOnly"])):(0,n.createCommentVNode)("",!0),"5"===e.COLUMN_EDIT?((0,n.openBlock)(),(0,n.createBlock)(X,{key:3,data:(0,n.unref)(u)[t][e.ITEM_CODE],type:e.FORMAT_STRING,onInput:r=>{(0,n.unref)(u)[t][e.ITEM_CODE]=r},title:e.CUS_COL_CAPTION,checkFlag:L.length>0&&L[t][e.ITEM_CODE],readOnly:"0"!==e.READ_ONLY},null,8,["data","type","onInput","title","checkFlag","readOnly"])):(0,n.createCommentVNode)("",!0),"7"===e.COLUMN_EDIT?((0,n.openBlock)(),(0,n.createBlock)(F,{key:4,data:(0,n.unref)(u)[t][e.ITEM_CODE],"code-set":l.value[e.CODE_TABLE_NAME],type:e.FORMAT_STRING,onInput:r=>{(0,n.unref)(u)[t][e.ITEM_CODE]=r},title:e.CUS_COL_CAPTION,"value-col":e.VALUE_MEMBER,"display-col":e.DISPLAY_MEMBER,"show-search":!0,checkFlag:L.length>0&&L[t][e.ITEM_CODE],readOnly:"0"!==e.READ_ONLY},null,8,["data","code-set","type","onInput","title","value-col","display-col","checkFlag","readOnly"])):(0,n.createCommentVNode)("",!0)])),_:2},1032,["style"])])),_:2},1024)))),256))])])))),256))])):(0,n.createCommentVNode)("",!0),0===i.value.length||0===(0,n.unref)(u).length?((0,n.openBlock)(),(0,n.createBlock)(d,{key:2})):(0,n.createCommentVNode)("",!0)],64)}}}),ue=(0,h.Z)(ie,[["__scopeId","data-v-be516f74"]]),le=ue,de=j(le),ce=de;Object.assign;const me=()=>{},he=Array.isArray;function fe(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function _e(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!pe(e[n],t[n]))return!1;return!0}function pe(e,t){return he(e)?ye(e,t):he(t)?ye(t,e):e===t}function ye(e,t){return he(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var ge,Me;(function(e){e["pop"]="pop",e["push"]="push"})(ge||(ge={})),function(e){e["back"]="back",e["forward"]="forward",e["unknown"]=""}(Me||(Me={}));new Map;Symbol("");var ve;(function(e){e[e["aborted"]=4]="aborted",e[e["cancelled"]=8]="cancelled",e[e["duplicated"]=16]="duplicated"})(ve||(ve={}));Symbol(""),Symbol("");const Le=Symbol(""),we=Symbol("");Symbol("");function ke(e){const t=(0,n.inject)(Le),r=(0,n.inject)(we),a=(0,n.computed)((()=>t.resolve((0,n.unref)(e.to)))),o=(0,n.computed)((()=>{const{matched:e}=a.value,{length:t}=e,n=e[t-1],o=r.matched;if(!n||!o.length)return-1;const s=o.findIndex(fe.bind(null,n));if(s>-1)return s;const i=De(e[t-2]);return t>1&&De(n)===i&&o[o.length-1].path!==i?o.findIndex(fe.bind(null,e[t-2])):s})),s=(0,n.computed)((()=>o.value>-1&&be(r.params,a.value.params))),i=(0,n.computed)((()=>o.value>-1&&o.value===r.matched.length-1&&_e(r.params,a.value.params)));function u(r={}){return Ye(r)?t[(0,n.unref)(e.replace)?"replace":"push"]((0,n.unref)(e.to)).catch(me):Promise.resolve()}return{route:a,href:(0,n.computed)((()=>a.value.href)),isActive:s,isExactActive:i,navigate:u}}Boolean,Boolean;function Ye(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function be(e,t){for(const n in t){const r=t[n],a=e[n];if("string"===typeof r){if(r!==a)return!1}else if(!he(a)||a.length!==r.length||r.some(((e,t)=>e!==a[t])))return!1}return!0}function De(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Te=(e,t,n)=>null!=e?e:null!=t?t:n;function Se(){return(0,n.inject)(Le)}const Ae=e=>void 0!==e&&null!==e,xe=e=>"function"===typeof e,Ce=e=>null!==e&&"object"===typeof e,Ee=e=>Ce(e)&&xe(e.then)&&xe(e.catch);const je=e=>"number"===typeof e||/^\d+(\.\d+)?$/.test(e),Oe=()=>!!Pe&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());function He(){}const Ne=Object.assign,Pe="undefined"!==typeof window;function Ie(e,t){const n=t.split(".");let r=e;return n.forEach((e=>{var t;r=Ce(r)&&null!=(t=r[e])?t:""})),r}function Re(e,t,n){return t.reduce(((t,r)=>(n&&void 0===e[r]||(t[r]=e[r]),t)),{})}function Fe(e){if(Ae(e))return je(e)?`${e}px`:String(e)}function Be(e){if(Ae(e)){if(Array.isArray(e))return{width:Fe(e[0]),height:Fe(e[1])};const t=Fe(e);return{width:t,height:t}}}function We(e){const t={};return void 0!==e&&(t.zIndex=+e),t}const Ve=/-(\w)/g,ze=e=>e.replace(Ve,((e,t)=>t.toUpperCase())),Ue=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");const qe=(e,t,n)=>Math.min(Math.max(e,t),n);function Je(e){return e.install=t=>{const{name:n}=e;n&&(t.component(n,e),t.component(ze(`-${n}`),e))},e}function Ge(e){const t=(0,n.getCurrentInstance)();t&&Ne(t.proxy,e)}function $e(){const e=(0,n.reactive)({show:!1}),t=t=>{e.show=t},r=n=>{Ne(e,n,{transitionAppear:!0}),t(!0)},a=()=>t(!1);return Ge({open:r,close:a,toggle:t}),{open:r,close:a,state:e,toggle:t}}function Ke(e){const t=(0,n.createApp)(e),r=document.createElement("div");return document.body.appendChild(r),{instance:t.mount(r),unmount(){t.unmount(),document.body.removeChild(r)}}}const{hasOwnProperty:Ze}=Object.prototype;function Xe(e,t,n){const r=t[n];Ae(r)&&(Ze.call(e,n)&&Ce(r)?e[n]=Qe(Object(e[n]),r):e[n]=r)}function Qe(e,t){return Object.keys(t).forEach((n=>{Xe(e,t,n)})),e}var et={name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,t)=>`${e}年${t}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码不正确",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const tt=(0,n.ref)("zh-CN"),nt=(0,n.reactive)({"zh-CN":et}),rt={messages(){return nt[tt.value]},use(e,t){tt.value=e,this.add({[e]:t})},add(e={}){Qe(nt,e)}};var at=rt;function ot(e){const t=ze(e)+".";return(e,...n)=>{const r=at.messages(),a=Ie(r,t+e)||Ie(r,e);return xe(a)?a(...n):a}}function st(e,t){return t?"string"===typeof t?` ${e}--${t}`:Array.isArray(t)?t.reduce(((t,n)=>t+st(e,n)),""):Object.keys(t).reduce(((n,r)=>n+(t[r]?st(e,r):"")),""):""}function it(e){return(t,n)=>(t&&"string"!==typeof t&&(n=t,t=""),t=t?`${e}__${t}`:e,`${t}${st(t,n)}`)}function ut(e){const t=`van-${e}`;return[t,it(t),ot(t)]}const lt=null,dt=[Number,String],ct={type:Boolean,default:!0},mt=e=>({type:e,required:!0}),ht=()=>({type:Array,default:()=>[]}),ft=e=>({type:Number,default:e}),_t=e=>({type:dt,default:e}),pt=e=>({type:String,default:e});let yt=0;function gt(e){e?(yt||document.body.classList.add("van-toast--unclickable"),yt++):yt&&(yt--,yt||document.body.classList.remove("van-toast--unclickable"))}const[Mt,vt]=ut("badge"),Lt={dot:Boolean,max:dt,tag:pt("div"),color:String,offset:Array,content:dt,showZero:ct,position:pt("top-right")};var wt=(0,n.defineComponent)({name:Mt,props:Lt,setup(e,{slots:t}){const r=()=>{if(t.content)return!0;const{content:n,showZero:r}=e;return Ae(n)&&""!==n&&(r||0!==n&&"0"!==n)},a=()=>{const{dot:n,max:a,content:o}=e;if(!n&&r())return t.content?t.content():Ae(a)&&je(o)&&+o>a?`${a}+`:o},o=(0,n.computed)((()=>{const n={background:e.color};if(e.offset){const[r,a]=e.offset;t.default?(n.top=Fe(a),n.right="number"===typeof r?Fe(-r):r.startsWith("-")?r.replace("-",""):`-${r}`):(n.marginTop=Fe(a),n.marginLeft=Fe(r))}return n})),s=()=>{if(r()||e.dot)return(0,n.createVNode)("div",{class:vt([e.position,{dot:e.dot,fixed:!!t.default}]),style:o.value},[a()])};return()=>{if(t.default){const{tag:r}=e;return(0,n.createVNode)(r,{class:vt("wrapper")},{default:()=>[t.default(),s()]})}return s()}}});const kt=Je(wt);let Yt=2e3;const bt=()=>++Yt,Dt=e=>{Yt=e},[Tt,St]=ut("config-provider"),At=Symbol(Tt),xt={tag:pt("div"),zIndex:Number,themeVars:Object,iconPrefix:String};function Ct(e){const t={};return Object.keys(e).forEach((n=>{t[`--van-${Ue(n)}`]=e[n]})),t}(0,n.defineComponent)({name:Tt,props:xt,setup(e,{slots:t}){const r=(0,n.computed)((()=>{if(e.themeVars)return Ct(e.themeVars)}));return(0,n.provide)(At,e),(0,n.watchEffect)((()=>{void 0!==e.zIndex&&Dt(e.zIndex)})),()=>(0,n.createVNode)(e.tag,{class:St(),style:r.value},{default:()=>{var e;return[null==(e=t.default)?void 0:e.call(t)]}})}});const[Et,jt]=ut("icon"),Ot=e=>null==e?void 0:e.includes("/"),Ht={dot:Boolean,tag:pt("i"),name:String,size:dt,badge:dt,color:String,badgeProps:Object,classPrefix:String};var Nt=(0,n.defineComponent)({name:Et,props:Ht,setup(e,{slots:t}){const r=(0,n.inject)(At,null),a=(0,n.computed)((()=>e.classPrefix||(null==r?void 0:r.iconPrefix)||jt()));return()=>{const{tag:r,dot:o,name:s,size:i,badge:u,color:l}=e,d=Ot(s);return(0,n.createVNode)(kt,(0,n.mergeProps)({dot:o,tag:r,class:[a.value,d?"":`${a.value}-${s}`],style:{color:l,fontSize:Fe(i)},content:u},e.badgeProps),{default:()=>{var e;return[null==(e=t.default)?void 0:e.call(t),d&&(0,n.createVNode)("img",{class:jt("image"),src:s},null)]}})}}});const Pt=Je(Nt);const It={show:Boolean,zIndex:dt,overlay:ct,duration:dt,teleport:[String,Object],lockScroll:ct,lazyRender:ct,beforeClose:Function,overlayStyle:Object,overlayClass:lt,transitionAppear:Boolean,closeOnClickOverlay:ct};Object.keys(It);function Rt(e,{args:t=[],done:n,canceled:r}){if(e){const a=e.apply(null,t);Ee(a)?a.then((e=>{e?n():r&&r()})).catch(He):a?n():r&&r()}else n()}const Ft="van-hairline",Bt=`${Ft}--bottom`,Wt=`${Ft}--surround`,Vt="van-haptics-feedback";Symbol("van-form");var zt="undefined"!==typeof window;function Ut(e){return zt?requestAnimationFrame(e):-1}function qt(e){Ut((()=>Ut(e)))}var Jt=e=>e===window,Gt=(e,t)=>({top:0,left:0,right:e,bottom:t,width:e,height:t}),$t=e=>{const t=(0,n.unref)(e);if(Jt(t)){const e=t.innerWidth,n=t.innerHeight;return Gt(e,n)}return(null==t?void 0:t.getBoundingClientRect)?t.getBoundingClientRect():Gt(0,0)};function Kt(e){const t=(0,n.inject)(e,null);if(t){const e=(0,n.getCurrentInstance)(),{link:r,unlink:a,internalChildren:o}=t;r(e),(0,n.onUnmounted)((()=>a(e)));const s=(0,n.computed)((()=>o.indexOf(e)));return{parent:t,index:s}}return{parent:null,index:(0,n.ref)(-1)}}function Zt(e){const t=[],r=e=>{Array.isArray(e)&&e.forEach((e=>{var a;(0,n.isVNode)(e)&&(t.push(e),(null==(a=e.component)?void 0:a.subTree)&&(t.push(e.component.subTree),r(e.component.subTree.children)),e.children&&r(e.children))}))};return r(e),t}var Xt=(e,t)=>{const n=e.indexOf(t);return-1===n?e.findIndex((e=>void 0!==t.key&&null!==t.key&&e.type===t.type&&e.key===t.key)):n};function Qt(e,t,n){const r=Zt(e.subTree.children);n.sort(((e,t)=>Xt(r,e.vnode)-Xt(r,t.vnode)));const a=n.map((e=>e.proxy));t.sort(((e,t)=>{const n=a.indexOf(e),r=a.indexOf(t);return n-r}))}function en(e){const t=(0,n.reactive)([]),r=(0,n.reactive)([]),a=(0,n.getCurrentInstance)(),o=o=>{const s=e=>{e.proxy&&(r.push(e),t.push(e.proxy),Qt(a,t,r))},i=e=>{const n=r.indexOf(e);t.splice(n,1),r.splice(n,1)};(0,n.provide)(e,Object.assign({link:s,unlink:i,children:t,internalChildren:r},o))};return{children:t,linkChildren:o}}var tn,nn;function rn(e){let t;(0,n.onMounted)((()=>{e(),(0,n.nextTick)((()=>{t=!0}))})),(0,n.onActivated)((()=>{t&&e()}))}function an(e,t,r={}){if(!zt)return;const{target:a=window,passive:o=!1,capture:s=!1}=r;let i,u=!1;const l=r=>{if(u)return;const a=(0,n.unref)(r);a&&!i&&(a.addEventListener(e,t,{capture:s,passive:o}),i=!0)},d=r=>{if(u)return;const a=(0,n.unref)(r);a&&i&&(a.removeEventListener(e,t,s),i=!1)};let c;return(0,n.onUnmounted)((()=>d(a))),(0,n.onDeactivated)((()=>d(a))),rn((()=>l(a))),(0,n.isRef)(a)&&(c=(0,n.watch)(a,((e,t)=>{d(t),l(e)}))),()=>{null==c||c(),d(a),u=!0}}function on(){if(!tn&&(tn=(0,n.ref)(0),nn=(0,n.ref)(0),zt)){const e=()=>{tn.value=window.innerWidth,nn.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:tn,height:nn}}var sn,un=/scroll|auto|overlay/i,ln=zt?window:void 0;function dn(e){const t=1;return"HTML"!==e.tagName&&"BODY"!==e.tagName&&e.nodeType===t}function cn(e,t=ln){let n=e;while(n&&n!==t&&dn(n)){const{overflowY:e}=window.getComputedStyle(n);if(un.test(e))return n;n=n.parentNode}return t}function mn(){if(!sn&&(sn=(0,n.ref)("visible"),zt)){const e=()=>{sn.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return sn}Symbol("van-field");function hn(e,t){return e>t?"horizontal":t>e?"vertical":""}function fn(){const e=(0,n.ref)(0),t=(0,n.ref)(0),r=(0,n.ref)(0),a=(0,n.ref)(0),o=(0,n.ref)(0),s=(0,n.ref)(0),i=(0,n.ref)(""),u=()=>"vertical"===i.value,l=()=>"horizontal"===i.value,d=()=>{r.value=0,a.value=0,o.value=0,s.value=0,i.value=""},c=n=>{d(),e.value=n.touches[0].clientX,t.value=n.touches[0].clientY},m=n=>{const u=n.touches[0];r.value=(u.clientX<0?0:u.clientX)-e.value,a.value=u.clientY-t.value,o.value=Math.abs(r.value),s.value=Math.abs(a.value);const l=10;(!i.value||o.value<l&&s.value<l)&&(i.value=hn(o.value,s.value))};return{move:m,start:c,reset:d,startX:e,startY:t,deltaX:r,deltaY:a,offsetX:o,offsetY:s,direction:i,isVertical:u,isHorizontal:l}}Oe();const _n=e=>e.stopPropagation();function pn(e,t){("boolean"!==typeof e.cancelable||e.cancelable)&&e.preventDefault(),t&&_n(e)}function yn(e){const t=(0,n.unref)(e);if(!t)return!1;const r=window.getComputedStyle(t),a="none"===r.display,o=null===t.offsetParent&&"fixed"!==r.position;return a||o}const{width:gn,height:Mn}=on();let vn=0;const Ln="van-overflow-hidden";function wn(e,t){const r=fn(),a="01",o="10",s=t=>{r.move(t);const n=r.deltaY.value>0?o:a,s=cn(t.target,e.value),{scrollHeight:i,offsetHeight:u,scrollTop:l}=s;let d="11";0===l?d=u>=i?"00":"01":l+u>=i&&(d="10"),"11"===d||!r.isVertical()||parseInt(d,2)&parseInt(n,2)||pn(t,!0)},i=()=>{document.addEventListener("touchstart",r.start),document.addEventListener("touchmove",s,{passive:!1}),vn||document.body.classList.add(Ln),vn++},u=()=>{vn&&(document.removeEventListener("touchstart",r.start),document.removeEventListener("touchmove",s),vn--,vn||document.body.classList.remove(Ln))},l=()=>t()&&i(),d=()=>t()&&u();rn(l),(0,n.onDeactivated)(d),(0,n.onBeforeUnmount)(d),(0,n.watch)(t,(e=>{e?i():u()}))}function kn(e){const t=(0,n.ref)(!1);return(0,n.watch)(e,(e=>{e&&(t.value=e)}),{immediate:!0}),e=>()=>t.value?e():null}const Yn=Symbol();function bn(e){const t=(0,n.inject)(Yn,null);t&&(0,n.watch)(t,(t=>{t&&e()}))}const[Dn,Tn]=ut("overlay"),Sn={show:Boolean,zIndex:dt,duration:dt,className:lt,lockScroll:ct,lazyRender:ct,customStyle:Object};var An=(0,n.defineComponent)({name:Dn,props:Sn,setup(e,{slots:t}){const r=(0,n.ref)(),a=kn((()=>e.show||!e.lazyRender)),o=t=>{e.lockScroll&&pn(t,!0)},s=a((()=>{var a;const o=Ne(We(e.zIndex),e.customStyle);return Ae(e.duration)&&(o.animationDuration=`${e.duration}s`),(0,n.withDirectives)((0,n.createVNode)("div",{ref:r,style:o,class:[Tn(),e.className]},[null==(a=t.default)?void 0:a.call(t)]),[[n.vShow,e.show]])}));return an("touchmove",o,{target:r}),()=>(0,n.createVNode)(n.Transition,{name:"van-fade",appear:!0},{default:s})}});const xn=Je(An);const Cn=Ne({},It,{round:Boolean,position:pt("center"),closeIcon:pt("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:pt("top-right"),safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[En,jn]=ut("popup");var On=(0,n.defineComponent)({name:En,inheritAttrs:!1,props:Cn,emits:["open","close","opened","closed","keydown","update:show","click-overlay","click-close-icon"],setup(e,{emit:t,attrs:r,slots:a}){let o,s;const i=(0,n.ref)(),u=(0,n.ref)(),l=kn((()=>e.show||!e.lazyRender)),d=(0,n.computed)((()=>{const t={zIndex:i.value};if(Ae(e.duration)){const n="center"===e.position?"animationDuration":"transitionDuration";t[n]=`${e.duration}s`}return t})),c=()=>{o||(o=!0,i.value=void 0!==e.zIndex?+e.zIndex:bt(),t("open"))},m=()=>{o&&Rt(e.beforeClose,{done(){o=!1,t("close"),t("update:show",!1)}})},h=n=>{t("click-overlay",n),e.closeOnClickOverlay&&m()},f=()=>{if(e.overlay)return(0,n.createVNode)(xn,{show:e.show,class:e.overlayClass,zIndex:i.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0,onClick:h},{default:a["overlay-content"]})},_=e=>{t("click-close-icon",e),m()},p=()=>{if(e.closeable)return(0,n.createVNode)(Pt,{role:"button",tabindex:0,name:e.closeIcon,class:[jn("close-icon",e.closeIconPosition),Vt],classPrefix:e.iconPrefix,onClick:_},null)},y=()=>t("opened"),g=()=>t("closed"),M=e=>t("keydown",e),v=l((()=>{var t;const{round:o,position:s,safeAreaInsetTop:i,safeAreaInsetBottom:l}=e;return(0,n.withDirectives)((0,n.createVNode)("div",(0,n.mergeProps)({ref:u,style:d.value,role:"dialog",tabindex:0,class:[jn({round:o,[s]:s}),{"van-safe-area-top":i,"van-safe-area-bottom":l}],onKeydown:M},r),[null==(t=a.default)?void 0:t.call(a),p()]),[[n.vShow,e.show]])})),L=()=>{const{position:t,transition:r,transitionAppear:a}=e,o="center"===t?"van-fade":`van-popup-slide-${t}`;return(0,n.createVNode)(n.Transition,{name:r||o,appear:a,onAfterEnter:y,onAfterLeave:g},{default:v})};return(0,n.watch)((()=>e.show),(e=>{e&&!o&&(c(),0===r.tabindex&&(0,n.nextTick)((()=>{var e;null==(e=u.value)||e.focus()}))),!e&&o&&(o=!1,t("close"))})),Ge({popupRef:u}),wn(u,(()=>e.show&&e.lockScroll)),an("popstate",(()=>{e.closeOnPopstate&&(m(),s=!1)})),(0,n.onMounted)((()=>{e.show&&c()})),(0,n.onActivated)((()=>{s&&(t("update:show",!0),s=!1)})),(0,n.onDeactivated)((()=>{e.show&&e.teleport&&(m(),s=!0)})),(0,n.provide)(Yn,(()=>e.show)),()=>e.teleport?(0,n.createVNode)(n.Teleport,{to:e.teleport},{default:()=>[f(),L()]}):(0,n.createVNode)(n.Fragment,null,[f(),L()])}});const Hn=Je(On);const[Nn,Pn]=ut("loading"),In=Array(12).fill(null).map(((e,t)=>(0,n.createVNode)("i",{class:Pn("line",String(t+1))},null))),Rn=(0,n.createVNode)("svg",{class:Pn("circular"),viewBox:"25 25 50 50"},[(0,n.createVNode)("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),Fn={size:dt,type:pt("circular"),color:String,vertical:Boolean,textSize:dt,textColor:String};var Bn=(0,n.defineComponent)({name:Nn,props:Fn,setup(e,{slots:t}){const r=(0,n.computed)((()=>Ne({color:e.color},Be(e.size)))),a=()=>{var r;if(t.default)return(0,n.createVNode)("span",{class:Pn("text"),style:{fontSize:Fe(e.textSize),color:null!=(r=e.textColor)?r:e.color}},[t.default()])};return()=>{const{type:t,vertical:o}=e;return(0,n.createVNode)("div",{class:Pn([t,{vertical:o}]),"aria-live":"polite","aria-busy":!0},[(0,n.createVNode)("span",{class:Pn("spinner",t),style:r.value},["spinner"===t?In:Rn]),a()])}}});const Wn=Je(Bn);const[Vn,zn]=ut("toast"),Un=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay"],qn={icon:String,show:Boolean,type:pt("text"),overlay:Boolean,message:dt,iconSize:dt,duration:ft(2e3),position:pt("middle"),teleport:[String,Object],className:lt,iconPrefix:String,transition:pt("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:lt,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean};var Jn=(0,n.defineComponent)({name:Vn,props:qn,emits:["update:show"],setup(e,{emit:t}){let r,a=!1;const o=()=>{const t=e.show&&e.forbidClick;a!==t&&(a=t,gt(a))},s=e=>t("update:show",e),i=()=>{e.closeOnClick&&s(!1)},u=()=>clearTimeout(r),l=()=>{const{icon:t,type:r,iconSize:a,iconPrefix:o,loadingType:s}=e,i=t||"success"===r||"fail"===r;return i?(0,n.createVNode)(Pt,{name:t||r,size:a,class:zn("icon"),classPrefix:o},null):"loading"===r?(0,n.createVNode)(Wn,{class:zn("loading"),size:a,type:s},null):void 0},d=()=>{const{type:t,message:r}=e;if(Ae(r)&&""!==r)return"html"===t?(0,n.createVNode)("div",{key:0,class:zn("text"),innerHTML:String(r)},null):(0,n.createVNode)("div",{class:zn("text")},[r])};return(0,n.watch)((()=>[e.show,e.forbidClick]),o),(0,n.watch)((()=>[e.show,e.type,e.message,e.duration]),(()=>{u(),e.show&&e.duration>0&&(r=setTimeout((()=>{s(!1)}),e.duration))})),(0,n.onMounted)(o),(0,n.onUnmounted)(o),()=>(0,n.createVNode)(Hn,(0,n.mergeProps)({class:[zn([e.position,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:i,onClosed:u,"onUpdate:show":s},Re(e,Un)),{default:()=>[l(),d()]})}});const Gn={icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1};let $n=[],Kn=!1,Zn=Ne({},Gn);const Xn=new Map;function Qn(e){return Ce(e)?e:{message:e}}function er(){const{instance:e,unmount:t}=Ke({setup(){const r=(0,n.ref)(""),{open:a,state:o,close:s,toggle:i}=$e(),u=()=>{Kn&&($n=$n.filter((t=>t!==e)),t())},l=()=>{const e={onClosed:u,"onUpdate:show":i};return(0,n.createVNode)(Jn,(0,n.mergeProps)(o,e),null)};return(0,n.watch)(r,(e=>{o.message=e})),(0,n.getCurrentInstance)().render=l,{open:a,clear:s,message:r}}});return e}function tr(){if(!$n.length||Kn){const e=er();$n.push(e)}return $n[$n.length-1]}function nr(e={}){if(!Pe)return{};const t=tr(),n=Qn(e);return t.open(Ne({},Zn,Xn.get(n.type||Zn.type),n)),t}const rr=e=>t=>nr(Ne({type:e},Qn(t)));function ar(e,t){"string"===typeof e?Xn.set(e,t):Ne(Zn,e)}nr.loading=rr("loading"),nr.success=rr("success"),nr.fail=rr("fail"),nr.clear=e=>{var t;$n.length&&(e?($n.forEach((e=>{e.clear()})),$n=[]):Kn?null==(t=$n.shift())||t.clear():$n[0].clear())},nr.setDefaultOptions=ar,nr.resetDefaultOptions=e=>{"string"===typeof e?Xn.delete(e):(Zn=Ne({},Gn),Xn.clear())},nr.allowMultiple=(e=!0)=>{Kn=e},nr.install=e=>{e.use(Je(Jn)),e.config.globalProperties.$toast=nr};const or={to:[String,Object],url:String,replace:Boolean};function sr({to:e,url:t,replace:n,$router:r}){e&&r?r[n?"replace":"push"](e):t&&(n?location.replace(t):location.href=t)}function ir(){const e=(0,n.getCurrentInstance)().proxy;return()=>sr(e)}const[ur,lr]=ut("button"),dr=Ne({},or,{tag:pt("button"),text:String,icon:String,type:pt("default"),size:pt("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:pt("button"),loadingSize:dt,loadingText:String,loadingType:String,iconPosition:pt("left")});var cr=(0,n.defineComponent)({name:ur,props:dr,emits:["click"],setup(e,{emit:t,slots:r}){const a=ir(),o=()=>r.loading?r.loading():(0,n.createVNode)(Wn,{size:e.loadingSize,type:e.loadingType,class:lr("loading")},null),s=()=>e.loading?o():r.icon?(0,n.createVNode)("div",{class:lr("icon")},[r.icon()]):e.icon?(0,n.createVNode)(Pt,{name:e.icon,class:lr("icon"),classPrefix:e.iconPrefix},null):void 0,i=()=>{let t;if(t=e.loading?e.loadingText:r.default?r.default():e.text,t)return(0,n.createVNode)("span",{class:lr("text")},[t])},u=()=>{const{color:t,plain:n}=e;if(t){const e={color:n?t:"white"};return n||(e.background=t),t.includes("gradient")?e.border=0:e.borderColor=t,e}},l=n=>{e.loading?pn(n):e.disabled||(t("click",n),a())};return()=>{const{tag:t,type:r,size:a,block:o,round:d,plain:c,square:m,loading:h,disabled:f,hairline:_,nativeType:p,iconPosition:y}=e,g=[lr([r,a,{plain:c,block:o,round:d,square:m,loading:h,disabled:f,hairline:_}]),{[Wt]:_}];return(0,n.createVNode)(t,{type:p,class:g,style:u(),disabled:f,onClick:l},{default:()=>[(0,n.createVNode)("div",{class:lr("content")},["left"===y&&s(),i(),"right"===y&&s()])]})}}});const mr=Je(cr);let hr=0;function fr(){const e=(0,n.getCurrentInstance)(),{name:t="unknown"}=(null==e?void 0:e.type)||{};return`${t}-${++hr}`}const[_r,pr]=ut("empty"),yr={image:pt("default"),imageSize:[Number,String,Array],description:String};var gr=(0,n.defineComponent)({name:_r,props:yr,setup(e,{slots:t}){const r=()=>{const r=t.description?t.description():e.description;if(r)return(0,n.createVNode)("p",{class:pr("description")},[r])},a=()=>{if(t.default)return(0,n.createVNode)("div",{class:pr("bottom")},[t.default()])},o=fr(),s=e=>`${o}-${e}`,i=e=>`url(#${s(e)})`,u=(e,t,r)=>(0,n.createVNode)("stop",{"stop-color":e,offset:`${t}%`,"stop-opacity":r},null),l=(e,t)=>[u(e,0),u(t,100)],d=e=>[(0,n.createVNode)("defs",null,[(0,n.createVNode)("radialGradient",{id:s(e),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[u("#EBEDF0",0),u("#F2F3F5",100,.3)])]),(0,n.createVNode)("ellipse",{fill:i(e),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],c=()=>[(0,n.createVNode)("defs",null,[(0,n.createVNode)("linearGradient",{id:s("a"),x1:"64%",y1:"100%",x2:"64%"},[u("#FFF",0,.5),u("#F2F3F5",100)])]),(0,n.createVNode)("g",{opacity:".8"},[(0,n.createVNode)("path",{d:"M36 131V53H16v20H2v58h34z",fill:i("a")},null),(0,n.createVNode)("path",{d:"M123 15h22v14h9v77h-31V15z",fill:i("a")},null)])],m=()=>[(0,n.createVNode)("defs",null,[(0,n.createVNode)("linearGradient",{id:s("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[u("#F2F3F5",0,.3),u("#F2F3F5",100)])]),(0,n.createVNode)("g",{opacity:".8"},[(0,n.createVNode)("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:i("b")},null),(0,n.createVNode)("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:i("b")},null)])],h=()=>(0,n.createVNode)("svg",{viewBox:"0 0 160 160"},[(0,n.createVNode)("defs",null,[(0,n.createVNode)("linearGradient",{id:s(1),x1:"64%",y1:"100%",x2:"64%"},[u("#FFF",0,.5),u("#F2F3F5",100)]),(0,n.createVNode)("linearGradient",{id:s(2),x1:"50%",x2:"50%",y2:"84%"},[u("#EBEDF0",0),u("#DCDEE0",100,0)]),(0,n.createVNode)("linearGradient",{id:s(3),x1:"100%",x2:"100%",y2:"100%"},[l("#EAEDF0","#DCDEE0")]),(0,n.createVNode)("radialGradient",{id:s(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[u("#EBEDF0",0),u("#FFF",100,0)])]),(0,n.createVNode)("g",{fill:"none"},[c(),(0,n.createVNode)("path",{fill:i(4),d:"M0 139h160v21H0z"},null),(0,n.createVNode)("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:i(2)},null),(0,n.createVNode)("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7"},[(0,n.createVNode)("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:i(3)},null),(0,n.createVNode)("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:i(3)},null),(0,n.createVNode)("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:i(3)},null),(0,n.createVNode)("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:i(3)},null)]),(0,n.createVNode)("g",{transform:"translate(31 105)"},[(0,n.createVNode)("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),(0,n.createVNode)("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),(0,n.createVNode)("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),f=()=>(0,n.createVNode)("svg",{viewBox:"0 0 160 160"},[(0,n.createVNode)("defs",null,[(0,n.createVNode)("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:s(5)},[l("#F2F3F5","#DCDEE0")]),(0,n.createVNode)("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:s(6)},[l("#EAEDF1","#DCDEE0")]),(0,n.createVNode)("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:s(7)},[l("#EAEDF1","#DCDEE0")])]),c(),m(),(0,n.createVNode)("g",{transform:"translate(36 50)",fill:"none"},[(0,n.createVNode)("g",{transform:"translate(8)"},[(0,n.createVNode)("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),(0,n.createVNode)("rect",{fill:i(5),width:"64",height:"66",rx:"2"},null),(0,n.createVNode)("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),(0,n.createVNode)("g",{transform:"translate(15 17)",fill:i(6)},[(0,n.createVNode)("rect",{width:"34",height:"6",rx:"1"},null),(0,n.createVNode)("path",{d:"M0 14h34v6H0z"},null),(0,n.createVNode)("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),(0,n.createVNode)("rect",{fill:i(7),y:"61",width:"88",height:"28",rx:"1"},null),(0,n.createVNode)("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),_=()=>(0,n.createVNode)("svg",{viewBox:"0 0 160 160"},[(0,n.createVNode)("defs",null,[(0,n.createVNode)("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:s(8)},[l("#EAEDF1","#DCDEE0")])]),c(),m(),d("c"),(0,n.createVNode)("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:i(8)},null)]),p=()=>(0,n.createVNode)("svg",{viewBox:"0 0 160 160"},[(0,n.createVNode)("defs",null,[(0,n.createVNode)("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:s(9)},[l("#EEE","#D8D8D8")]),(0,n.createVNode)("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:s(10)},[l("#F2F3F5","#DCDEE0")]),(0,n.createVNode)("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:s(11)},[l("#F2F3F5","#DCDEE0")]),(0,n.createVNode)("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:s(12)},[l("#FFF","#F7F8FA")])]),c(),m(),d("d"),(0,n.createVNode)("g",{transform:"rotate(-45 113 -4)",fill:"none"},[(0,n.createVNode)("rect",{fill:i(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),(0,n.createVNode)("rect",{fill:i(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),(0,n.createVNode)("circle",{stroke:i(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),(0,n.createVNode)("circle",{fill:i(12),cx:"27",cy:"27",r:"16"},null),(0,n.createVNode)("path",{d:"M37 7c-8 0-15 5-16 12",stroke:i(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),y=()=>{var r;if(t.image)return t.image();const a={error:_,search:p,network:h,default:f};return(null==(r=a[e.image])?void 0:r.call(a))||(0,n.createVNode)("img",{src:e.image},null)};return()=>(0,n.createVNode)("div",{class:pr()},[(0,n.createVNode)("div",{class:pr("image"),style:Be(e.imageSize)},[y()]),r(),a()])}});const Mr=Je(gr);const vr=(e,t)=>{const r=(0,n.ref)(),a=()=>{r.value=$t(e).height};return(0,n.onMounted)((()=>{if((0,n.nextTick)(a),t)for(let e=1;e<=3;e++)setTimeout(a,100*e)})),bn((()=>(0,n.nextTick)(a))),r};function Lr(e,t){const r=vr(e,!0);return e=>(0,n.createVNode)("div",{class:t("placeholder"),style:{height:r.value?`${r.value}px`:void 0}},[e()])}const[wr,kr]=ut("nav-bar"),Yr={title:String,fixed:Boolean,zIndex:dt,border:ct,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean};var br=(0,n.defineComponent)({name:wr,props:Yr,emits:["click-left","click-right"],setup(e,{emit:t,slots:r}){const a=(0,n.ref)(),o=Lr(a,kr),s=e=>t("click-left",e),i=e=>t("click-right",e),u=()=>r.left?r.left():[e.leftArrow&&(0,n.createVNode)(Pt,{class:kr("arrow"),name:"arrow-left"},null),e.leftText&&(0,n.createVNode)("span",{class:kr("text")},[e.leftText])],l=()=>r.right?r.right():(0,n.createVNode)("span",{class:kr("text")},[e.rightText]),d=()=>{const{title:t,fixed:o,border:d,zIndex:c}=e,m=We(c),h=e.leftArrow||e.leftText||r.left,f=e.rightText||r.right;return(0,n.createVNode)("div",{ref:a,style:m,class:[kr({fixed:o}),{[Bt]:d,"van-safe-area-top":e.safeAreaInsetTop}]},[(0,n.createVNode)("div",{class:kr("content")},[h&&(0,n.createVNode)("div",{class:[kr("left"),Vt],onClick:s},[u()]),(0,n.createVNode)("div",{class:[kr("title"),"van-ellipsis"]},[r.title?r.title():t]),f&&(0,n.createVNode)("div",{class:[kr("right"),Vt],onClick:i},[l()])])])};return()=>e.fixed&&e.placeholder?o(d):d()}});const Dr=Je(br);var Tr="0123456789abcdefghijklmnopqrstuvwxyz";function Sr(e){return Tr.charAt(e)}function Ar(e,t){return e&t}function xr(e,t){return e|t}function Cr(e,t){return e^t}function Er(e,t){return e&~t}function jr(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function Or(e){var t=0;while(0!=e)e&=e-1,++t;return t}var Hr,Nr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pr="=";function Ir(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=Nr.charAt(n>>6)+Nr.charAt(63&n);t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=Nr.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=Nr.charAt(n>>2)+Nr.charAt((3&n)<<4));while((3&r.length)>0)r+=Pr;return r}function Rr(e){var t,n="",r=0,a=0;for(t=0;t<e.length;++t){if(e.charAt(t)==Pr)break;var o=Nr.indexOf(e.charAt(t));o<0||(0==r?(n+=Sr(o>>2),a=3&o,r=1):1==r?(n+=Sr(a<<2|o>>4),a=15&o,r=2):2==r?(n+=Sr(a),n+=Sr(o>>2),a=3&o,r=3):(n+=Sr(a<<2|o>>4),n+=Sr(15&o),r=0))}return 1==r&&(n+=Sr(a<<2)),n}var Fr,Br={decode:function(e){var t;if(void 0===Hr){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(Hr={},t=0;t<16;++t)Hr[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)Hr[n.charAt(t)]=t;for(t=0;t<r.length;++t)Hr[r.charAt(t)]=-1}var a=[],o=0,s=0;for(t=0;t<e.length;++t){var i=e.charAt(t);if("="==i)break;if(i=Hr[i],-1!=i){if(void 0===i)throw new Error("Illegal character at offset "+t);o|=i,++s>=2?(a[a.length]=o,o=0,s=0):o<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return a}},Wr={decode:function(e){var t;if(void 0===Fr){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="= \f\n\r\t \u2028\u2029";for(Fr=Object.create(null),t=0;t<64;++t)Fr[n.charAt(t)]=t;for(Fr["-"]=62,Fr["_"]=63,t=0;t<r.length;++t)Fr[r.charAt(t)]=-1}var a=[],o=0,s=0;for(t=0;t<e.length;++t){var i=e.charAt(t);if("="==i)break;if(i=Fr[i],-1!=i){if(void 0===i)throw new Error("Illegal character at offset "+t);o|=i,++s>=4?(a[a.length]=o>>16,a[a.length]=o>>8&255,a[a.length]=255&o,o=0,s=0):o<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:a[a.length]=o>>10;break;case 3:a[a.length]=o>>16,a[a.length]=o>>8&255;break}return a},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=Wr.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return Wr.decode(e)}},Vr=1e13,zr=function(){function e(e){this.buf=[+e||0]}return e.prototype.mulAdd=function(e,t){var n,r,a=this.buf,o=a.length;for(n=0;n<o;++n)r=a[n]*e+t,r<Vr?t=0:(t=0|r/Vr,r-=t*Vr),a[n]=r;t>0&&(a[n]=t)},e.prototype.sub=function(e){var t,n,r=this.buf,a=r.length;for(t=0;t<a;++t)n=r[t]-e,n<0?(n+=Vr,e=1):e=0,r[t]=n;while(0===r[r.length-1])r.pop()},e.prototype.toString=function(e){if(10!=(e||10))throw new Error("only base 10 is supported");for(var t=this.buf,n=t[t.length-1].toString(),r=t.length-2;r>=0;--r)n+=(Vr+t[r]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var e=this.buf,t=0,n=e.length-1;n>=0;--n)t=t*Vr+e[n];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),Ur="…",qr=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,Jr=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function Gr(e,t){return e.length>t&&(e=e.substring(0,t)+Ur),e}var $r,Kr=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}return e.prototype.get=function(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return"string"===typeof this.enc?this.enc.charCodeAt(e):this.enc[e]},e.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)},e.prototype.hexDump=function(e,t,n){for(var r="",a=e;a<t;++a)if(r+=this.hexByte(this.get(a)),!0!==n)switch(15&a){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},e.prototype.isASCII=function(e,t){for(var n=e;n<t;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(e,t){for(var n="",r=e;r<t;++r)n+=String.fromCharCode(this.get(r));return n},e.prototype.parseStringUTF=function(e,t){for(var n="",r=e;r<t;){var a=this.get(r++);n+=a<128?String.fromCharCode(a):a>191&&a<224?String.fromCharCode((31&a)<<6|63&this.get(r++)):String.fromCharCode((15&a)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},e.prototype.parseStringBMP=function(e,t){for(var n,r,a="",o=e;o<t;)n=this.get(o++),r=this.get(o++),a+=String.fromCharCode(n<<8|r);return a},e.prototype.parseTime=function(e,t,n){var r=this.parseStringISO(e,t),a=(n?qr:Jr).exec(r);return a?(n&&(a[1]=+a[1],a[1]+=+a[1]<70?2e3:1900),r=a[1]+"-"+a[2]+"-"+a[3]+" "+a[4],a[5]&&(r+=":"+a[5],a[6]&&(r+=":"+a[6],a[7]&&(r+="."+a[7]))),a[8]&&(r+=" UTC","Z"!=a[8]&&(r+=a[8],a[9]&&(r+=":"+a[9]))),r):"Unrecognized time: "+r},e.prototype.parseInteger=function(e,t){var n,r=this.get(e),a=r>127,o=a?255:0,s="";while(r==o&&++e<t)r=this.get(e);if(n=t-e,0===n)return a?-1:0;if(n>4){s=r,n<<=3;while(0==(128&(+s^o)))s=+s<<1,--n;s="("+n+" bit)\n"}a&&(r-=256);for(var i=new zr(r),u=e+1;u<t;++u)i.mulAdd(256,this.get(u));return s+i.toString()},e.prototype.parseBitString=function(e,t,n){for(var r=this.get(e),a=(t-e-1<<3)-r,o="("+a+" bit)\n",s="",i=e+1;i<t;++i){for(var u=this.get(i),l=i==t-1?r:0,d=7;d>=l;--d)s+=u>>d&1?"1":"0";if(s.length>n)return o+Gr(s,n)}return o+s},e.prototype.parseOctetString=function(e,t,n){if(this.isASCII(e,t))return Gr(this.parseStringISO(e,t),n);var r=t-e,a="("+r+" byte)\n";n/=2,r>n&&(t=e+n);for(var o=e;o<t;++o)a+=this.hexByte(this.get(o));return r>n&&(a+=Ur),a},e.prototype.parseOID=function(e,t,n){for(var r="",a=new zr,o=0,s=e;s<t;++s){var i=this.get(s);if(a.mulAdd(128,127&i),o+=7,!(128&i)){if(""===r)if(a=a.simplify(),a instanceof zr)a.sub(80),r="2."+a.toString();else{var u=a<80?a<40?0:1:2;r=u+"."+(a-40*u)}else r+="."+a.toString();if(r.length>n)return Gr(r,n);a=new zr,o=0}}return o>0&&(r+=".incomplete"),r},e}(),Zr=function(){function e(e,t,n,r,a){if(!(r instanceof Xr))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=n,this.tag=r,this.sub=a}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(e){if(void 0===this.tag)return null;void 0===e&&(e=1/0);var t=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);case 6:return this.stream.parseOID(t,t+n,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return Gr(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return Gr(this.stream.parseStringISO(t,t+n),e);case 30:return Gr(this.stream.parseStringBMP(t,t+n),e);case 23:case 24:return this.stream.parseTime(t,t+n,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(e){void 0===e&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+=" ";for(var n=0,r=this.sub.length;n<r;++n)t+=this.sub[n].toPrettyString(e)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(e){var t=e.get(),n=127&t;if(n==t)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===n)return null;t=0;for(var r=0;r<n;++r)t=256*t+e.get();return t},e.prototype.getHexStringValue=function(){var e=this.toHexString(),t=2*this.header,n=2*this.length;return e.substr(t,n)},e.decode=function(t){var n;n=t instanceof Kr?t:new Kr(t,0);var r=new Kr(n),a=new Xr(n),o=e.decodeLength(n),s=n.pos,i=s-r.pos,u=null,l=function(){var t=[];if(null!==o){var r=s+o;while(n.pos<r)t[t.length]=e.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var a=e.decode(n);if(a.tag.isEOC())break;t[t.length]=a}o=s-n.pos}catch(i){throw new Error("Exception while decoding undefined length content: "+i)}return t};if(a.tagConstructed)u=l();else if(a.isUniversal()&&(3==a.tagNumber||4==a.tagNumber))try{if(3==a.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=l();for(var d=0;d<u.length;++d)if(u[d].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(c){u=null}if(null===u){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);n.pos=s+Math.abs(o)}return new e(r,i,o,a,u)},e}(),Xr=function(){function e(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=0!==(32&t),this.tagNumber=31&t,31==this.tagNumber){var n=new zr;do{t=e.get(),n.mulAdd(128,127&t)}while(128&t);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),Qr=0xdeadbeefcafe,ea=15715070==(16777215&Qr),ta=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],na=(1<<26)/ta[ta.length-1],ra=function(){function e(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}return e.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,a=!1,o="",s=this.t,i=this.DB-s*this.DB%t;if(s-- >0){i<this.DB&&(n=this[s]>>i)>0&&(a=!0,o=Sr(n));while(s>=0)i<t?(n=(this[s]&(1<<i)-1)<<t-i,n|=this[--s]>>(i+=this.DB-t)):(n=this[s]>>(i-=t)&r,i<=0&&(i+=this.DB,--s)),n>0&&(a=!0),a&&(o+=Sr(n))}return a?o:"0"},e.prototype.negate=function(){var t=ua();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(t=n-e.t,0!=t)return this.s<0?-t:t;while(--n>=0)if(0!=(t=this[n]-e[n]))return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+ya(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=ua();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new oa(t):new sa(t),this.exp(e,n)},e.prototype.clone=function(){var e=ua();return this.copyTo(e),e},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var n,r=this.DB-e*this.DB%8,a=0;if(e-- >0){r<this.DB&&(n=this[e]>>r)!=(this.s&this.DM)>>r&&(t[a++]=n|this.s<<this.DB-r);while(e>=0)r<8?(n=(this[e]&(1<<r)-1)<<8-r,n|=this[--e]>>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==a&&(128&this.s)!=(128&n)&&++a,(a>0||n!=this.s)&&(t[a++]=n)}return t},e.prototype.equals=function(e){return 0==this.compareTo(e)},e.prototype.min=function(e){return this.compareTo(e)<0?this:e},e.prototype.max=function(e){return this.compareTo(e)>0?this:e},e.prototype.and=function(e){var t=ua();return this.bitwiseTo(e,Ar,t),t},e.prototype.or=function(e){var t=ua();return this.bitwiseTo(e,xr,t),t},e.prototype.xor=function(e){var t=ua();return this.bitwiseTo(e,Cr,t),t},e.prototype.andNot=function(e){var t=ua();return this.bitwiseTo(e,Er,t),t},e.prototype.not=function(){for(var e=ua(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},e.prototype.shiftLeft=function(e){var t=ua();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},e.prototype.shiftRight=function(e){var t=ua();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},e.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+jr(this[e]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=Or(this[n]^t);return e},e.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},e.prototype.setBit=function(e){return this.changeBit(e,xr)},e.prototype.clearBit=function(e){return this.changeBit(e,Er)},e.prototype.flipBit=function(e){return this.changeBit(e,Cr)},e.prototype.add=function(e){var t=ua();return this.addTo(e,t),t},e.prototype.subtract=function(e){var t=ua();return this.subTo(e,t),t},e.prototype.multiply=function(e){var t=ua();return this.multiplyTo(e,t),t},e.prototype.divide=function(e){var t=ua();return this.divRemTo(e,t,null),t},e.prototype.remainder=function(e){var t=ua();return this.divRemTo(e,null,t),t},e.prototype.divideAndRemainder=function(e){var t=ua(),n=ua();return this.divRemTo(e,t,n),[t,n]},e.prototype.modPow=function(e,t){var n,r,a=e.bitLength(),o=pa(1);if(a<=0)return o;n=a<18?1:a<48?3:a<144?4:a<768?5:6,r=a<8?new oa(t):t.isEven()?new ia(t):new sa(t);var s=[],i=3,u=n-1,l=(1<<n)-1;if(s[1]=r.convert(this),n>1){var d=ua();r.sqrTo(s[1],d);while(i<=l)s[i]=ua(),r.mulTo(d,s[i-2],s[i]),i+=2}var c,m,h=e.t-1,f=!0,_=ua();a=ya(e[h])-1;while(h>=0){a>=u?c=e[h]>>a-u&l:(c=(e[h]&(1<<a+1)-1)<<u-a,h>0&&(c|=e[h-1]>>this.DB+a-u)),i=n;while(0==(1&c))c>>=1,--i;if((a-=i)<0&&(a+=this.DB,--h),f)s[c].copyTo(o),f=!1;else{while(i>1)r.sqrTo(o,_),r.sqrTo(_,o),i-=2;i>0?r.sqrTo(o,_):(m=o,o=_,_=m),r.mulTo(_,s[c],o)}while(h>=0&&0==(e[h]&1<<a))r.sqrTo(o,_),m=o,o=_,_=m,--a<0&&(a=this.DB-1,--h)}return r.revert(o)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||0==t.signum())return e.ZERO;var r=t.clone(),a=this.clone(),o=pa(1),s=pa(0),i=pa(0),u=pa(1);while(0!=r.signum()){while(r.isEven())r.rShiftTo(1,r),n?(o.isEven()&&s.isEven()||(o.addTo(this,o),s.subTo(t,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);while(a.isEven())a.rShiftTo(1,a),n?(i.isEven()&&u.isEven()||(i.addTo(this,i),u.subTo(t,u)),i.rShiftTo(1,i)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);r.compareTo(a)>=0?(r.subTo(a,r),n&&o.subTo(i,o),s.subTo(u,s)):(a.subTo(r,a),n&&i.subTo(o,i),u.subTo(s,u))}return 0!=a.compareTo(e.ONE)?e.ZERO:u.compareTo(t)>=0?u.subtract(t):u.signum()<0?(u.addTo(t,u),u.signum()<0?u.add(t):u):u},e.prototype.pow=function(e){return this.exp(e,new aa)},e.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var a=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;a<o&&(o=a),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));while(t.signum()>0)(a=t.getLowestSetBit())>0&&t.rShiftTo(a,t),(a=n.getLowestSetBit())>0&&n.rShiftTo(a,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},e.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=ta[ta.length-1]){for(t=0;t<ta.length;++t)if(n[0]==ta[t])return!0;return!1}if(n.isEven())return!1;t=1;while(t<ta.length){var r=ta[t],a=t+1;while(a<ta.length&&r<na)r*=ta[a++];r=n.modInt(r);while(t<a)if(r%ta[t++]==0)return!1}return n.millerRabin(e)},e.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},e.prototype.fromString=function(t,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(t,n);r=2}this.t=0,this.s=0;var a=t.length,o=!1,s=0;while(--a>=0){var i=8==r?255&+t[a]:_a(t,a);i<0?"-"==t.charAt(a)&&(o=!0):(o=!1,0==s?this[this.t++]=i:s+r>this.DB?(this[this.t-1]|=(i&(1<<this.DB-s)-1)<<s,this[this.t++]=i>>this.DB-s):this[this.t-1]|=i<<s,s+=r,s>=this.DB&&(s-=this.DB))}8==r&&0!=(128&+t[0])&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),o&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){var e=this.s&this.DM;while(this.t>0&&this[this.t-1]==e)--this.t},e.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},e.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},e.prototype.lShiftTo=function(e,t){for(var n=e%this.DB,r=this.DB-n,a=(1<<r)-1,o=Math.floor(e/this.DB),s=this.s<<n&this.DM,i=this.t-1;i>=0;--i)t[i+o+1]=this[i]>>r|s,s=(this[i]&a)<<n;for(i=o-1;i>=0;--i)t[i]=0;t[o]=s,t.t=this.t+o+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,a=this.DB-r,o=(1<<r)-1;t[0]=this[n]>>r;for(var s=n+1;s<this.t;++s)t[s-n-1]|=(this[s]&o)<<a,t[s-n]=this[s]>>r;r>0&&(t[this.t-n-1]|=(this.s&o)<<a),t.t=this.t-n,t.clamp()}},e.prototype.subTo=function(e,t){var n=0,r=0,a=Math.min(e.t,this.t);while(n<a)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){r-=e.s;while(n<this.t)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{r+=this.s;while(n<e.t)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},e.prototype.multiplyTo=function(t,n){var r=this.abs(),a=t.abs(),o=r.t;n.t=o+a.t;while(--o>=0)n[o]=0;for(o=0;o<a.t;++o)n[o+r.t]=r.am(0,a[o],n,o,0,r.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(e){var t=this.abs(),n=e.t=2*t.t;while(--n>=0)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},e.prototype.divRemTo=function(t,n,r){var a=t.abs();if(!(a.t<=0)){var o=this.abs();if(o.t<a.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=ua());var s=ua(),i=this.s,u=t.s,l=this.DB-ya(a[a.t-1]);l>0?(a.lShiftTo(l,s),o.lShiftTo(l,r)):(a.copyTo(s),o.copyTo(r));var d=s.t,c=s[d-1];if(0!=c){var m=c*(1<<this.F1)+(d>1?s[d-2]>>this.F2:0),h=this.FV/m,f=(1<<this.F1)/m,_=1<<this.F2,p=r.t,y=p-d,g=null==n?ua():n;s.dlShiftTo(y,g),r.compareTo(g)>=0&&(r[r.t++]=1,r.subTo(g,r)),e.ONE.dlShiftTo(d,g),g.subTo(s,s);while(s.t<d)s[s.t++]=0;while(--y>=0){var M=r[--p]==c?this.DM:Math.floor(r[p]*h+(r[p-1]+_)*f);if((r[p]+=s.am(0,M,r,y,0,d))<M){s.dlShiftTo(y,g),r.subTo(g,r);while(r[p]<--M)r.subTo(g,r)}}null!=n&&(r.drShiftTo(d,n),i!=u&&e.ZERO.subTo(n,n)),r.t=d,r.clamp(),l>0&&r.rShiftTo(l,r),i<0&&e.ZERO.subTo(r,r)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return t=t*(2-(15&e)*t)&15,t=t*(2-(255&e)*t)&255,t=t*(2-((65535&e)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var r=ua(),a=ua(),o=n.convert(this),s=ya(t)-1;o.copyTo(r);while(--s>=0)if(n.sqrTo(r,a),(t&1<<s)>0)n.mulTo(a,o,r);else{var i=r;r=a,a=i}return n.revert(r)},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),r=pa(n),a=ua(),o=ua(),s="";this.divRemTo(r,a,o);while(a.signum()>0)s=(n+o.intValue()).toString(e).substr(1)+s,a.divRemTo(r,a,o);return o.intValue().toString(e)+s},e.prototype.fromRadix=function(t,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),a=Math.pow(n,r),o=!1,s=0,i=0,u=0;u<t.length;++u){var l=_a(t,u);l<0?"-"==t.charAt(u)&&0==this.signum()&&(o=!0):(i=n*i+l,++s>=r&&(this.dMultiply(a),this.dAddOffset(i,0),s=0,i=0))}s>0&&(this.dMultiply(Math.pow(n,s)),this.dAddOffset(i,0)),o&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,r){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),xr,this),this.isEven()&&this.dAddOffset(1,0);while(!this.isProbablePrime(n))this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this)}else{var a=[],o=7&t;a.length=1+(t>>3),n.nextBytes(a),o>0?a[0]&=(1<<o)-1:a[0]=0,this.fromString(a,256)}},e.prototype.bitwiseTo=function(e,t,n){var r,a,o=Math.min(e.t,this.t);for(r=0;r<o;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(a=e.s&this.DM,r=o;r<this.t;++r)n[r]=t(this[r],a);n.t=this.t}else{for(a=this.s&this.DM,r=o;r<e.t;++r)n[r]=t(a,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},e.prototype.changeBit=function(t,n){var r=e.ONE.shiftLeft(t);return this.bitwiseTo(r,n,r),r},e.prototype.addTo=function(e,t){var n=0,r=0,a=Math.min(e.t,this.t);while(n<a)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){r+=e.s;while(n<this.t)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{r+=this.s;while(n<e.t)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},e.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(e,t){if(0!=e){while(this.t<=t)this[this.t++]=0;this[t]+=e;while(this[t]>=this.DV)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(e,t,n){var r=Math.min(this.t+e.t,t);n.s=0,n.t=r;while(r>0)n[--r]=0;for(var a=n.t-this.t;r<a;++r)n[r+this.t]=this.am(0,e[r],n,r,0,this.t);for(a=Math.min(e.t,t);r<a;++r)this.am(0,e[r],n,r,0,t-r);n.clamp()},e.prototype.multiplyUpperTo=function(e,t,n){--t;var r=n.t=this.t+e.t-t;n.s=0;while(--r>=0)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var a=n.shiftRight(r);t=t+1>>1,t>ta.length&&(t=ta.length);for(var o=ua(),s=0;s<t;++s){o.fromInt(ta[Math.floor(Math.random()*ta.length)]);var i=o.modPow(a,this);if(0!=i.compareTo(e.ONE)&&0!=i.compareTo(n)){var u=1;while(u++<r&&0!=i.compareTo(n))if(i=i.modPowInt(2,this),0==i.compareTo(e.ONE))return!1;if(0!=i.compareTo(n))return!1}}return!0},e.prototype.square=function(){var e=ua();return this.squareTo(e),e},e.prototype.gcda=function(e,t){var n=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(n.compareTo(r)<0){var a=n;n=r,r=a}var o=n.getLowestSetBit(),s=r.getLowestSetBit();if(s<0)t(n);else{o<s&&(s=o),s>0&&(n.rShiftTo(s,n),r.rShiftTo(s,r));var i=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(i,0):(s>0&&r.lShiftTo(s,r),setTimeout((function(){t(r)}),0))};setTimeout(i,10)}},e.prototype.fromNumberAsync=function(t,n,r,a){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),xr,this),this.isEven()&&this.dAddOffset(1,0);var o=this,s=function(){o.dAddOffset(2,0),o.bitLength()>t&&o.subTo(e.ONE.shiftLeft(t-1),o),o.isProbablePrime(n)?setTimeout((function(){a()}),0):setTimeout(s,0)};setTimeout(s,0)}else{var i=[],u=7&t;i.length=1+(t>>3),n.nextBytes(i),u>0?i[0]&=(1<<u)-1:i[0]=0,this.fromString(i,256)}},e}(),aa=function(){function e(){}return e.prototype.convert=function(e){return e},e.prototype.revert=function(e){return e},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},e.prototype.sqrTo=function(e,t){e.squareTo(t)},e}(),oa=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),sa=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return e.prototype.convert=function(e){var t=ua();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(ra.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=ua();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){while(e.t<=this.mt2)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;n=t+this.m.t,e[n]+=this.m.am(0,r,e,t,0,this.m.t);while(e[n]>=e.DV)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),ia=function(){function e(e){this.m=e,this.r2=ua(),this.q3=ua(),ra.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=ua();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(e.compareTo(this.r2)<0)e.dAddOffset(1,this.m.t+1);e.subTo(this.r2,e);while(e.compareTo(this.m)>=0)e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function ua(){return new ra(null)}function la(e,t){return new ra(e,t)}var da="undefined"!==typeof navigator;da&&ea&&"Microsoft Internet Explorer"==navigator.appName?(ra.prototype.am=function(e,t,n,r,a,o){var s=32767&t,i=t>>15;while(--o>=0){var u=32767&this[e],l=this[e++]>>15,d=i*u+l*s;u=s*u+((32767&d)<<15)+n[r]+(1073741823&a),a=(u>>>30)+(d>>>15)+i*l+(a>>>30),n[r++]=1073741823&u}return a},$r=30):da&&ea&&"Netscape"!=navigator.appName?(ra.prototype.am=function(e,t,n,r,a,o){while(--o>=0){var s=t*this[e++]+n[r]+a;a=Math.floor(s/67108864),n[r++]=67108863&s}return a},$r=26):(ra.prototype.am=function(e,t,n,r,a,o){var s=16383&t,i=t>>14;while(--o>=0){var u=16383&this[e],l=this[e++]>>14,d=i*u+l*s;u=s*u+((16383&d)<<14)+n[r]+a,a=(u>>28)+(d>>14)+i*l,n[r++]=268435455&u}return a},$r=28),ra.prototype.DB=$r,ra.prototype.DM=(1<<$r)-1,ra.prototype.DV=1<<$r;var ca=52;ra.prototype.FV=Math.pow(2,ca),ra.prototype.F1=ca-$r,ra.prototype.F2=2*$r-ca;var ma,ha,fa=[];for(ma="0".charCodeAt(0),ha=0;ha<=9;++ha)fa[ma++]=ha;for(ma="a".charCodeAt(0),ha=10;ha<36;++ha)fa[ma++]=ha;for(ma="A".charCodeAt(0),ha=10;ha<36;++ha)fa[ma++]=ha;function _a(e,t){var n=fa[e.charCodeAt(t)];return null==n?-1:n}function pa(e){var t=ua();return t.fromInt(e),t}function ya(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}ra.ZERO=pa(0),ra.ONE=pa(1);var ga=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(e){var t,n,r;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,r=this.S[t],this.S[t]=this.S[n],this.S[n]=r;this.i=0,this.j=0},e.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},e}();function Ma(){return new ga}var va,La,wa=256,ka=null;if(null==ka){ka=[],La=0;var Ya=void 0;if("undefined"!==typeof window&&window.crypto&&window.crypto.getRandomValues){var ba=new Uint32Array(256);for(window.crypto.getRandomValues(ba),Ya=0;Ya<ba.length;++Ya)ka[La++]=255&ba[Ya]}var Da=0,Ta=function(e){if(Da=Da||0,Da>=256||La>=wa)window.removeEventListener?window.removeEventListener("mousemove",Ta,!1):window.detachEvent&&window.detachEvent("onmousemove",Ta);else try{var t=e.x+e.y;ka[La++]=255&t,Da+=1}catch(n){}};"undefined"!==typeof window&&(window.addEventListener?window.addEventListener("mousemove",Ta,!1):window.attachEvent&&window.attachEvent("onmousemove",Ta))}function Sa(){if(null==va){va=Ma();while(La<wa){var e=Math.floor(65536*Math.random());ka[La++]=255&e}for(va.init(ka),La=0;La<ka.length;++La)ka[La]=0;La=0}return va.next()}var Aa=function(){function e(){}return e.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=Sa()},e}();function xa(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var n=t-e.length-6,r="",a=0;a<n;a+=2)r+="ff";var o="0001"+r+"00"+e;return la(o,16)}function Ca(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;var n=[],r=e.length-1;while(r>=0&&t>0){var a=e.charCodeAt(r--);a<128?n[--t]=a:a>127&&a<2048?(n[--t]=63&a|128,n[--t]=a>>6|192):(n[--t]=63&a|128,n[--t]=a>>6&63|128,n[--t]=a>>12|224)}n[--t]=0;var o=new Aa,s=[];while(t>2){s[0]=0;while(0==s[0])o.nextBytes(s);n[--t]=s[0]}return n[--t]=2,n[--t]=0,new ra(n)}var Ea=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);while(t.compareTo(n)<0)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(e,t){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=la(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(e){var t=this.n.bitLength()+7>>3,n=Ca(e,t);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var a=r.toString(16),o=a.length,s=0;s<2*t-o;s++)a="0"+a;return a},e.prototype.setPrivate=function(e,t,n){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=la(e,16),this.e=parseInt(t,16),this.d=la(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(e,t,n,r,a,o,s,i){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=la(e,16),this.e=parseInt(t,16),this.d=la(n,16),this.p=la(r,16),this.q=la(a,16),this.dmp1=la(o,16),this.dmq1=la(s,16),this.coeff=la(i,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(e,t){var n=new Aa,r=e>>1;this.e=parseInt(t,16);for(var a=new ra(t,16);;){for(;;)if(this.p=new ra(e-r,1,n),0==this.p.subtract(ra.ONE).gcd(a).compareTo(ra.ONE)&&this.p.isProbablePrime(10))break;for(;;)if(this.q=new ra(r,1,n),0==this.q.subtract(ra.ONE).gcd(a).compareTo(ra.ONE)&&this.q.isProbablePrime(10))break;if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var s=this.p.subtract(ra.ONE),i=this.q.subtract(ra.ONE),u=s.multiply(i);if(0==u.gcd(a).compareTo(ra.ONE)){this.n=this.p.multiply(this.q),this.d=a.modInverse(u),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(i),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=la(e,16),n=this.doPrivate(t);return null==n?null:ja(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,n){var r=new Aa,a=e>>1;this.e=parseInt(t,16);var o=new ra(t,16),s=this,i=function(){var t=function(){if(s.p.compareTo(s.q)<=0){var e=s.p;s.p=s.q,s.q=e}var t=s.p.subtract(ra.ONE),r=s.q.subtract(ra.ONE),a=t.multiply(r);0==a.gcd(o).compareTo(ra.ONE)?(s.n=s.p.multiply(s.q),s.d=o.modInverse(a),s.dmp1=s.d.mod(t),s.dmq1=s.d.mod(r),s.coeff=s.q.modInverse(s.p),setTimeout((function(){n()}),0)):setTimeout(i,0)},u=function(){s.q=ua(),s.q.fromNumberAsync(a,1,r,(function(){s.q.subtract(ra.ONE).gcda(o,(function(e){0==e.compareTo(ra.ONE)&&s.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(u,0)}))}))},l=function(){s.p=ua(),s.p.fromNumberAsync(e-a,1,r,(function(){s.p.subtract(ra.ONE).gcda(o,(function(e){0==e.compareTo(ra.ONE)&&s.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(l,0)}))}))};setTimeout(l,0)};setTimeout(i,0)},e.prototype.sign=function(e,t,n){var r=Ha(n),a=r+t(e).toString(),o=xa(a,this.n.bitLength()/4);if(null==o)return null;var s=this.doPrivate(o);if(null==s)return null;var i=s.toString(16);return 0==(1&i.length)?i:"0"+i},e.prototype.verify=function(e,t,n){var r=la(t,16),a=this.doPublic(r);if(null==a)return null;var o=a.toString(16).replace(/^1f+00/,""),s=Na(o);return s==n(e).toString()},e}();function ja(e,t){var n=e.toByteArray(),r=0;while(r<n.length&&0==n[r])++r;if(n.length-r!=t-1||2!=n[r])return null;++r;while(0!=n[r])if(++r>=n.length)return null;var a="";while(++r<n.length){var o=255&n[r];o<128?a+=String.fromCharCode(o):o>191&&o<224?(a+=String.fromCharCode((31&o)<<6|63&n[r+1]),++r):(a+=String.fromCharCode((15&o)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return a}var Oa={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Ha(e){return Oa[e]||""}function Na(e){for(var t in Oa)if(Oa.hasOwnProperty(t)){var n=Oa[t],r=n.length;if(e.substr(0,r)==n)return e.substr(r)}return e}
|
|
298
298
|
/*!
|
|
299
299
|
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
|
300
300
|
Code licensed under the BSD License:
|