@baosight/erm 1.0.68 → 1.0.69
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/ermList/ermList.vue.d.ts +19 -0
- package/lib/index.common.js +146 -99
- 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 +148 -101
- package/lib/index.umd.js.map +1 -1
- package/lib/index.umd.min.js +5 -5
- package/lib/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/lib/index.umd.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["index"]=t(require("vue")):e["index"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(e=>(()=>{var t={3276:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setExpiredHandler=t.setBaseURLHandler=void 0;const a=r(n(9669)),o=n(1539),i=n(8290),s=r(n(8458)),l=n(1267),u={200:"服务器成功返回请求的数据",400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"服务器发生错误,请检查服务器(Internal Server Error)",502:"网关错误(Bad Gateway)",503:"服务不可用,服务器暂时过载或维护(Service Unavailable)",504:"网关超时(Gateway Timeout)"};let d=null,c=null;const m=new Map;function h(e){const{method:t,url:n,params:r,data:a}=e;return[t,n,s.default.stringify(r),s.default.stringify(a)].join("&")}function f(e){const t=h(e);e.url.endsWith("/refreshToken")&&(e.cancelToken=e.cancelToken||new a.default.CancelToken((e=>{m.has(t)||m.set(t,e)})))}function _(e){const t=h(e);if(m.has(t)&&e.url.endsWith("/refreshToken")){const e=m.get(t);e(t),m.delete(t)}}function p(e){c=e}t.setBaseURLHandler=p;const y=async(e,t)=>{const{response:n,message:r}=e;if(n&&n.status){const r=(0,i.getRefreshToken)(),o=(0,i.getToken)(),s=u[n.status]||n.statusText,{status:c,request:m,data:h}=n;if(h)if("string"===typeof h){const t=(0,i.getHtmlTagContent)(h);e.message=t[t.length-1]||s}else e.message=h.message||h.msg||s;else e.message=s;if(e.status=c,401===c||403===c)if(403===c&&r){if(r){const n=(0,i.getCurrentUser)(),s=e.config,l=await t.post("refreshToken",{refreshToken:r,token:o??"",userId:n.userId}).catch((t=>a.default.isCancel(t)?Promise.resolve({data:{flag:0}}):Promise.reject(e))),{signature:u,flag:d,refreshToken:c}=l.data;if(0===d)return u&&(0,i.setToken)(u),c&&(0,i.setRefreshToken)(c),t(s)}}else{if((0,l.getConfig)()?.powerByQianKun){let e=window.location.pathname;const t=(0,l.getConfig)()?.context??"/";e=1===t.length?e:e.substring(t.length-1),"/user/login"!==e&&window.history.pushState(null,"登录",`/user/login?redirect=${e}${window.location.search?window.location.search.replace("?","&"):""}`)}d&&d(e)}}else n||(e.message="您的网络发生异常,无法连接服务器");return Promise.reject(e)},g=e=>{e.headers={...e.headers,"Content-Type":"application/json;charset=UTF-8"};const t=(0,i.getToken)();return t&&(0,i.isPlatJ)()?(e.headers["Accept"]="application/json,*/*",e.headers["x-token"]=t):t&&!e.headers["servicename"]&&(e.headers["signature"]=t),_(e),f(e),e},M=e=>{_(e.config);const{data:t,status:n}=e;if(200===n&&Object.keys(t).includes("__version__")){const n=e.config.url?.substring(e.config.url.lastIndexOf("/")+1);console.time(`service [${n}] deserialization end`);const r=o.EITools.parseJsonObject(t),a=r.toEIInfo();if(console.timeEnd(`service [${n}] deserialization end`),(0,i.isPlatJ)()&&-1===a.status&&"票据过期或请求不合法,请重新登录或获取合法权限!"===a.msg){const t=new Error(r.__sys__.msg);return e.status=401,e.data=a,e.statusText="票据过期或请求不合法,请重新登录或获取合法权限!",t.response=e,Promise.reject(t)}e.data=r}return e},v=e=>(_(e.config||{}),a.default.isCancel(e)?(console.log("已取消的重复请求:"+e.message),Promise.reject(e)):Promise.reject(e));function L(e){const t=a.default.create({baseURL:(0,l.getConfig)()?.baseURL,timeout:0});return t.interceptors.request.use(g),t.interceptors.response.use(M,v),t(e).then((e=>e)).catch((e=>y(e,t)))}function w(e){d=e}t["default"]=L,t.setExpiredHandler=w},468:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EIManager=void 0;const a=r(n(3276)),o=n(8290),i=n(1539),s=n(7466),l=n(1267);class u{constructor(){}handlePost=(e,t,n,r,s)=>{let l={responseType:r};s&&(l={...l,headers:s});const u=JSON.parse(JSON.stringify(t));if("2.0"===u["__version__"]){if(!(0,o.isPlatJ)()){t=(0,o.setContext)(t);const e=s?.uuid;e&&(t.context={...t.context,uuid:e})}const r=e.substring(e.lastIndexOf("/")+1);console.time(`service [${r}] serialization end`),t=t.toJSON(n),t=JSON.stringify(t),console.timeEnd(`service [${r}] serialization end`)}return l={...l,method:"POST",url:e,data:t},(0,a.default)(l).then((e=>(e={...e,data:e.data instanceof i.EITools.__EIInfoJson__?e.data.toEIInfo(n):e.data},e))).catch((e=>Promise.reject(e)))};handleGet=(e,t,n)=>(0,a.default)({method:"GET",url:e,headers:{responseType:n||"json"}}).then((e=>{const n=e.data instanceof i.EITools.__EIInfoJson__?e.data.toEIInfo(t):e.data;return n})).catch((e=>Promise.reject(e)));callService(e,t,n,r,a,i){a=this.initAxiosHeader(a);const s=new Date;console.log(`${(0,o.toIsoString)(s)} call service [${t}] begin.`);const l=this.buildUrl(t,e),u=void 0===i?.show||i?.show,d={value:void 0};return u&&(0,o.loading)(u,d,i?.target,i?.showAnimation,i?.ms),this.handlePost(l,n,r,"json",a).then((e=>{const n=new Date;return console.log(`${(0,o.toIsoString)(n)} call service [${t}] end in ${n.getTime()-s.getTime()} ms.`),u&&(0,o.loading)(!1,d,i?.target,i?.showAnimation,i?.ms),e.data})).catch((e=>{const n=new Date;return console.log(`${(0,o.toIsoString)(n)} failed to call service [${t}]. ${n.getTime()-s.getTime()} ms elapsed.`),u&&(0,o.loading)(!1,d,i?.target,i?.showAnimation,i?.ms),Promise.reject(e)}))}callMasterEPService(e,t,n,r,a){r=this.initAxiosHeader(r);const i=new Date;console.log(`${(0,o.toIsoString)(i)} call service [${e}] begin.`);const s=o.MASTER_EP_NAME,l=this.buildUrl(e,s),u=void 0===a?.show||a?.show,d={value:void 0};return u&&(0,o.loading)(u,d,a?.target,a?.showAnimation,a?.ms),this.handlePost(l,t,n,"json",r).then((t=>{const n=new Date;return console.log(`${(0,o.toIsoString)(n)} call service [${e}] end in ${n.getTime()-i.getTime()} ms.`),u&&(0,o.loading)(!1,d,a?.target,a?.showAnimation,a?.ms),t.data})).catch((t=>{const n=new Date;return console.log(`${(0,o.toIsoString)(n)} failed to call service [${e}]. ${n.getTime()-i.getTime()} ms elapsed.`),u&&(0,o.loading)(!1,d,a?.target,a?.showAnimation,a?.ms),Promise.reject(t)}))}callEPService(e,t,n,r,a){r=this.initAxiosHeader(r);const i=new Date;console.log(`${(0,o.toIsoString)(i)} call service [${e}] begin.`);const s=o.EP_NAME,l=this.buildUrl(e,s),u=void 0===a?.show||a?.show,d={value:void 0};return u&&(0,o.loading)(u,d,a?.target,a?.showAnimation,a?.ms),this.handlePost(l,t,n,"json",r).then((t=>{const n=new Date;return console.log(`${(0,o.toIsoString)(n)} call service [${e}] end in ${n.getTime()-i.getTime()} ms.`),u&&(0,o.loading)(!1,d,a?.target,a?.showAnimation,a?.ms),t.data})).catch((t=>{const n=new Date;return console.log(`${(0,o.toIsoString)(n)} failed to call service [${e}]. ${n.getTime()-i.getTime()} ms elapsed.`),u&&(0,o.loading)(!1,d,a?.target,a?.showAnimation,a?.ms),Promise.reject(t)}))}buildUrl=(e,t)=>(0,o.isPlatJ)()?(t=t||(0,l.getConfig)()?.jAppName||"IPLAT4J",`${t}/service/${e}`):(t=t||"DEFAULT",`${t}/api/CallService/${e}`);initAxiosHeader=e=>(e=e||{},e={...e,uuid:(0,s.v4)()},e)}const d=new u;t.EIManager=d},1539:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EITools=void 0;const r=n(6133),a=n(1050),o=n(7466);(function(e){class t{constructor(){this.company_code="",this.company_name="",this.fore_ip="",this.fore_mac="",this.fore_machine="",this.formname="",this.userid="",this.username="",this.culture="zh_Hans"}company_code;company_name;fore_ip;fore_mac;fore_machine;formname;userid;username;culture}e.Context=t;class n{constructor(){this.descName="",this.msg="",this.status="0",this.msgKey="",this.name="",this.traceId=""}descName;detailMsg;msg;msgKey;name;status;traceId}e.Sys=n;class i{constructor(){this.descName="",this.msg="",this.status=0,this.msgKey="",this.name="",this.traceId=""}descName;detailMsg;msg;msgKey;name;status;traceId}e.SysInfo=i;class s extends Array{constructor(e){super(),e&&e.length>0&&e.forEach((e=>this.push(e)))}}e.DataRow=s;class l{constructor(){this.meta={columns:[]},this.rows=[]}meta;rows;attr;toEiBlock(e){const t=new r.EI.EiBlock;this.attr&&(t.extAttr=new Map(Object.entries(this.attr)));let n=[...this.meta.columns.map((e=>({...e})))];if(e?.autoColumnToUpper&&(n=n.map((e=>({...e,name:e.name.toUpperCase()})))),t.setBlockMeta(n),e?.autoId){const e={pos:n.length,name:a.__IDField__,type:"C",descName:""};n.push(e)}return this.rows.forEach((r=>{const i={};n.forEach(((n,a)=>{if(e?.responseDataHandler){let o=e?.responseDataHandler.call(this,t.name,n.name,r[a]);"D"===n.type&&(o="string"===typeof o&&""!==o.trim()?o&&new Date(o):null),i[n.name]=o}else{let e=r[a];"D"===n.type?e="string"===typeof e&&""!==e.trim()?e&&new Date(e):null:"B"===n.type&&(e=!!e),i[n.name]=e}})),e?.autoId&&(i[a.__IDField__]=(0,o.v4)()),t.data.push(i)})),t}}e.__BlockJson__=l;class u{constructor(e){this.serviceId="",this.__version__="2.0",this.__sys__=new n,this.__context__=new t,this.__blocks__={},e&&(this.__edInfo__=new r.EI.EDInfo)}serviceId;__version__;__sys__;__context__;__blocks__;__edInfo__;addBlock(e,t){this.__blocks__[e]=t}toEIInfo(e){const t=new r.EI.EIInfo;t.context={...this.__context__};const n={...this.__sys__,status:Number(this.__sys__.status)};t.sys=n,this.__edInfo__&&(t.edInfo={fblk_name:[...this.__edInfo__.fblk_name],func_name:[...this.__edInfo__.func_name],pk_name:[...this.__edInfo__.pk_name],pk_val:[...this.__edInfo__.pk_val]});let{descName:a,msg:o,status:i,msgKey:s,name:l}=n;t.descName=a,t.msg=o,t.status=i,t.msgKey=s,t.name=l;const u=Object.keys(this);u.forEach((e=>{e.startsWith("__")||(t.extAttr[e]=this[e])}));for(const r in this.__blocks__){const n=this.__blocks__[r],a=n.toEiBlock(e);t.addBlock(a,r)}return t}}e.__EIInfoJson__=u,e.parseJsonObject=e=>{if("string"===typeof e&&(e=JSON.parse(e)),e&&e.__version__){const t=new u;t.__context__={...e.__context__},t.__sys__={...e.__sys__},t.__version__=e.__version__,e.__edInfo__&&(t.__edInfo__={...e.__edInfo__});const n=Object.keys(e);n.forEach((n=>{n.startsWith("__")||(t[n]=e[n])}));for(const r in e.__blocks__){const n=e.__blocks__[r],a=new l;a.rows=[...n.rows],a.meta={...n.meta},n.attr&&(a.attr={...n.attr}),t.__blocks__[r]=a}return t}return new u}})(t.EITools||(t.EITools={}))},6133:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EI=void 0;const r=n(1050),a=n(1539),o=n(8290);(function(e){const t=e=>"string"===typeof e?"C":"number"===typeof e?"N":"boolean"===typeof e?"B":e instanceof Date?"D":"C",n=e=>void 0===e||null===e?"U":t(e),i=(e,t)=>"C"===e&&"string"===typeof t||("N"===e&&"number"===typeof t||("B"===e&&"boolean"===typeof t||"D"===e&&t instanceof Date)),s=e=>void 0!==e&&(null!==e&&""!==e),l=e=>{const t="N"===e?0:"D"===e?null:"";return t},u=e=>{const t="N"===e?0:"";return t};class d{constructor(e){this.name=e||"Table1",this.data=[],this.columns=[],this.extAttr=new Map}name;data;columns;extAttr;pushData(e,t){if(Array.isArray(e)?this.data=[...this.data,...e]:this.data.push(e),t)if(Array.isArray(e))e.forEach((e=>{const t=Object.keys(e);t.forEach(((t,r)=>{const a=this.columns.find((e=>e.name===t)),o=n(e[t]);if(a){if(""===e[t]&&"D"===a.type)throw new Error("不能将日期类型设置为空字符串");("C"===o&&"N"===a.type||"D"===o&&"C"===a.type)&&(a.type=o)}else{const e=new h;e.name=t,e.pos=this.columns.length,e.descName=`C${t}`,e.type="U"===o?"C":o,this.columns.push(e)}}))}));else{const t=Object.keys(e);t.forEach(((t,r)=>{const a=this.columns.find((e=>e.name===t)),o=n(e[t]);if(a)("C"===o&&"N"===a.type||"D"===o&&"C"===a.type)&&(a.type=o);else{const e=new h;e.name=t,e.pos=this.columns.length,e.descName=`C${t}`,e.type="U"===o?"C":o,this.columns.push(e)}}))}}getBlockMeta(){return this.columns}setBlockMeta(e){this.columns=e.map((e=>({...e})))}getColumn(e){if(""===e.trim())throw new Error("columnName cannot be empty");const t=this.columns.find((t=>t.name===e));return t}removeColumn(e){if(""===e.trim())throw new Error("columnName cannot be empty");if(this.columns){const t=this.columns.findIndex((t=>t.name===e));t>=0&&(this.columns.splice(t,1),this.columns.forEach(((e,n)=>{n>=t&&(e.pos=e.pos-1)})))}return this.data.length?(this.data=this.data.map((t=>{const n={...t};return delete n[e],n})),this):this}containsColumn(e){return void 0!==this.columns.find((t=>t.name===e))}addColumn(e,t,n){if(e instanceof h){const n=this.columns.findIndex((t=>t.name===e.name));if(-1!==n)throw new Error("table ["+this.name+"] already has column ["+e.Name+"]");if(this.columns.push(e),t=void 0===t?l(e.type):t,this.data.length){if(!i(e.type,t))throw new Error(`defaultValue [${t}] not match dataType [${e.type}]`);this.data=this.data.map((n=>({...n,[e.name]:void 0===t?"":t})))}}else{if(""===e.trim())throw new Error("column name cannot be empty");if(n||(n="C"),this.columns){const r=this.columns.findIndex((t=>t.name===e));if(-1==r){t=t||"";const r=new h;r.pos=this.columns.length,r.name=e,r.type=n||"C",r.descName=`C${e}`,this.addColumn(r,t)}}}}addColumns(e,...t){if(Array.isArray(e))e.forEach((e=>this.addColumn(e)));else{const n=[e,...t];n.forEach((e=>this.addColumn(e)))}}renameColumn(e,t){if(""===e.trim()||""===t.trim())throw new Error("columnName cannot be empty");if(this.columns){const n=this.columns.find((t=>t.name===e));n&&(n.name=t)}if(this.data.length){const n=Object.keys(this.data[0]);if(n.includes(t))throw new Error(`column name [${t}] already exists.`);if(!n.includes(e))throw new Error(`column name [${t}] does not exist.`);return this.data=this.data.map((n=>{const r={...n,[t]:n[e]};return delete r[e],r})),this}return this}copy(e){const t=new d;return t.columns=this.columns.map((e=>({...e}))),t.name=e||`${this.name} copy`,t.data=this.data.map((e=>({...e}))),this.extAttr&&(t.extAttr=new Map(this.extAttr)),t}clone(e,t){const n=new d;return n.columns=this.columns.map((e=>({...e}))),n.name=e||`${this.name} copy`,t&&(n.data=this.data.map((e=>({...e})))),this.extAttr&&(n.extAttr=new Map(this.extAttr)),n}addRow(e){if(Object.keys(e).length>0)return this.data.push(e),this;throw new Error("rowData cannot be empty")}deleteRow(e){if(e>=0&&e%1===0){let t=this.data.splice(e,1);return t[0]}throw new Error("index must be an integer")}insertRow(e,t){if(e>=0&&e%1===0&&Object.keys(t).length>0)return this.data.splice(e,0,t),this;throw new Error("please check args data")}toJSON(e){const t=new a.EITools.__BlockJson__;let n=[...this.columns.map((e=>({...e})))];return n.length>0&&(e?.autoId&&(n=n.filter((e=>e.name!==r.__IDField__))),t.meta={columns:n}),this.data.forEach(((r,a)=>{const i=[];n.forEach(((n,a)=>{let s=r[n.name];e?.requestDataHandler&&(s=e?.requestDataHandler.call(this,this.name,n.name,s)),"string"===typeof s&&"D"===n.type&&(t.meta.columns[a].type="C"),s instanceof Date&&(t.meta.columns[a].type="D",s=(0,o.toIsoString)(s)),"boolean"===typeof s?s+="":void 0===s?s=u(n.type):null===s&&(s="D"===t.meta.columns[a].type||"N"===t.meta.columns[a].type?null:""),i.push(s)})),i.length>0&&t.rows.push(i)})),this.extAttr&&(t.attr=Array.from(this.extAttr).reduce(((e,[t,n])=>(e[t]=n,e)),{})),t}static build(e,n){let r=new d,a=!1,o=[];if(r.name=e,Array.isArray(n)){let e=[];if("string"===typeof n[0])o=n;else{for(let e in n[0])o.push(e);a=!0}if(o.forEach(((r,o)=>{let i=new h;a&&(i.type=t(n[0][r])),i.name=r,i.pos=o,e.push(i)})),r.columns=e,a)for(let t=0;t<n.length;t++)r.addRow(n[t])}return r}static buildByNames(e,t,n){let r=new d,a=Array.isArray(n);if(r.name=e,Array.isArray(t)){let e=[];t.forEach(((t,r)=>{let o=new h;o.name=t,o.pos=r,a&&s(n[r])&&(o.descName=n[r]),e.push(o)})),r.columns=e}return r}static buildByColumns(e,t){let n=new d;n.name=e;let r=[];return t.forEach(((e,t)=>{let n=new h;n.name=e["field"];let a=new f;Object.keys(a).forEach(((t,r)=>{t in e&&void 0!=e[t]&&(n[t]=e[t])})),n.descName=e["title"],n.pos=t,r.push(n)})),n.columns=r,n}}e.EiBlock=d;class c{constructor(){this.context=new a.EITools.Context,this.sys=new a.EITools.SysInfo,this.blocks={},this.name="",this.descName="",this.msg="",this.msgKey="",this.detailMsg="",this.status=0,this.extAttr={}}context;sys;blocks;name;descName;msg;msgKey;detailMsg;status;extAttr;edInfo;getName(){return this.name}setName(e){this.name=e}setED(e){this.edInfo=e}addBlock(e,t){const n=t||e.name;if(""===n.trim())throw new Error("block name cannot be empty.");if(Object.keys(this.blocks).includes(n))throw new Error(`block [${n}] already exists.`);return e.name=n,this.blocks[n]=e,e}contains(e){const t=this.blocks[e];return s(t)}remove(e){try{const t=this.blocks[e];return delete this.blocks[e],t}catch(t){throw t}}renameBlock(e,t){if(""===e.trim()||""===t.trim())throw new Error("block name cannot be empty.");if(!Object.keys(this.blocks).includes(e))throw new Error(`block [${e}] does not exist.`);if(Object.keys(this.blocks).includes(t))throw new Error(`block [${e}] already exists.`);const n=this.blocks[e];return n.name=t,this.blocks[t]=n,delete this.blocks[e],n}getBlock(e){const t=Object.keys(this.blocks);if("string"===typeof e){if(""===e.trim())throw new Error("block name cannot be empty.");if(!t.includes(e))throw new Error(`block [${e}] does not exist.`);const n=this.blocks[e];return n}{if(e<0||!Number.isInteger(e))throw new Error("block index must be an integer greater than or equal to 0.");if(e>=t.length)throw new Error(`block [${e}] does not exist.`);const n=this.blocks[t[e]];return n}}clone(){const e=a.EITools.parseJsonObject(this.toJSON()),t=e.toEIInfo();return t}get(e){if(""===e.trim())return new Error("EiInfo function get() str cannot be empty.");let t,n=e.split("-");if(3===n.length){const e=parseInt(n[1]);return this.contains(n[0])?(t=this.getBlock(n[0]),t.data[e][n[2]]??null):null}return 2===n.length?this.contains(n[0])?(t=this.getBlock(n[0]),t.extAttr?.get(n[1])??null):null:this.extAttr[n[0]]}set(...e){let n;switch(e.length>2?(n=e[0],"undefined"==typeof this.blocks[n]&&(this.blocks[n]=new d,this.blocks[n].name=n)):n="",e.length){case 2:if("string"==typeof e[0]){let t=e[0].split("-");1==t.length?this.extAttr[e[0]]=e[1]:2==t.length?this.set(t[0],t[1],e[1]):3==t.length&&this.set(t[0],t[1],t[2],e[1])}break;case 3:this.blocks[n].extAttr||(this.blocks[n].extAttr=new Map),this.blocks[n].extAttr.set(e[1],e[2]);break;case 4:if(!this.blocks[n].containsColumn(e[2])){const r=this.blocks[n];console.log(r);let a=new h;a.name=e[2],a.pos=this.blocks[n].columns.length,a.type=e[3]?t(e[3]):"C",this.blocks[n].columns.push(a)}let r=parseInt(e[1]);if(e[2]&&e[3]){const t=this.blocks[n].data;while("undefined"===typeof t[r])t.push({});t[r][e[2]]=e[3]}break}}toJSON(e){const t=new a.EITools.__EIInfoJson__;t.__context__={...this.context};const n={...this.sys,status:this.sys.status+""};t.__sys__=n,this.edInfo&&(t.__edInfo__={fblk_name:[...this.edInfo.fblk_name],func_name:[...this.edInfo.func_name],pk_name:[...this.edInfo.pk_name],pk_val:[...this.edInfo.pk_val]});for(const r in this.blocks)if(Object.prototype.hasOwnProperty.call(this.blocks,r)){let n=new a.EITools.__BlockJson__;const o=this.blocks[r];n=e?o.toJSON(e):o.toJSON(),t.addBlock(r,n)}if(this.extAttr){const e=Object.keys(this.extAttr);e.forEach((e=>{t[e]=this.extAttr[e]}))}return this.name&&(t.__sys__.name=this.name),t}}e.EIInfo=c;class m{constructor(){this.fblk_name=Array(63).fill(""),this.func_name=Array(63).fill(""),this.pk_name=Array(3).fill(""),this.pk_val=Array(3).fill("")}fblk_name;func_name;pk_name;pk_val}e.EDInfo=m;class h{constructor(){this.pos=0,this.name="",this.type="C",this.descName=""}pos;name;type;descName;regex;formatter;editor;minLength;maxLength;primaryKey;nullable;visible;readonly;displayType;errorPrompt;width;height;align;blockName;sourceName;labelProperty;valueProperty}e.EiColumn=h;class f{constructor(){this.pos=0,this.name="",this.type="C",this.descName="",this.regex="",this.formatter="",this.editor="",this.minLength=0,this.maxLength=0,this.primaryKey=!1,this.nullable=!0,this.visible="",this.readonly="",this.displayType="",this.errorPrompt="",this.width=0,this.height=0,this.align="",this.blockName="",this.sourceName="",this.labelProperty="",this.valueProperty=""}pos;name;type;descName;regex;formatter;editor;minLength;maxLength;primaryKey;nullable;visible;readonly;displayType;errorPrompt;width;height;align;blockName;sourceName;labelProperty;valueProperty}})(t.EI||(t.EI={}))},2321:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EP=void 0;const r=n(8290);class a{constructor(){}get Environment(){return(0,r.getCurrentEnvironment)()}get User(){return(0,r.getCurrentUser)()}}const o=new a;t.EP=o},8222:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(1267),t),a(n(6133),t),a(n(8756),t),a(n(3276),t),a(n(8290),t),a(n(468),t),a(n(2321),t),a(n(1050),t)},8756:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1267:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getConfig=t.init=void 0;let n=null;function r(e){n=Object.freeze(e)}function a(){return n}t.init=r,t.getConfig=a},1050:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__IDField__=void 0,t.__IDField__="ID"},8290:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toIsoString=t.EP_NAME=t.MASTER_EP_NAME=t.isPlatJ=t.PLAT_TYPE=t.getHtmlTagContent=t.isHtmlString=t.isJsonString=t.loading=t.setContext=t.buildEIInfo=t.removeCurrentEnvironment=t.setCurrentEnvironment=t.getCurrentEnvironment=t.removeCurrentUser=t.setCurrentUser=t.getCurrentUser=t.removeRememberMe=t.setRememberMe=t.getRememberMe=t.removeRefreshToken=t.setRefreshToken=t.getRefreshToken=t.removeToken=t.setToken=t.getToken=void 0;const r=n(6133),a=n(1267),o="signature_token",i="refresh_token",s="user_info",l="app_environment_info",u=e=>{const n=(0,t.getRememberMe)()||e;return n?localStorage.getItem(o):sessionStorage.getItem(o)};t.getToken=u;const d=(e,n)=>{try{const r=(0,t.getRememberMe)()||n;return r?(localStorage.setItem(o,e),sessionStorage.removeItem(o)):(sessionStorage.setItem(o,e),localStorage.removeItem(o)),!0}catch(r){return!1}};t.setToken=d;const c=()=>{try{return localStorage.removeItem(o),sessionStorage.removeItem(o),!0}catch(e){return!1}};t.removeToken=c;const m=e=>{const n=(0,t.getRememberMe)()||e;return n?localStorage.getItem(i):sessionStorage.getItem(i)};t.getRefreshToken=m;const h=(e,n)=>{try{const r=(0,t.getRememberMe)()||n;return r?(localStorage.setItem(i,e),sessionStorage.removeItem(i)):(localStorage.removeItem(i),sessionStorage.setItem(i,e)),!0}catch(r){return!1}};t.setRefreshToken=h;const f=()=>{try{return localStorage.removeItem(i),sessionStorage.removeItem(i),!0}catch(e){return!1}};t.removeRefreshToken=f;const _=()=>"true"===localStorage.getItem("remember_me");t.getRememberMe=_;const p=e=>{try{return localStorage.setItem("remember_me",e+""),!0}catch(t){return!1}};t.setRememberMe=p;const y=()=>{try{return localStorage.removeItem("remember_me"),!0}catch(e){return!1}};t.removeRememberMe=y;const g=e=>{const n=(0,t.getRememberMe)()||e,r=n?localStorage.getItem(s):sessionStorage.getItem(s);if(r){const e=JSON.parse(r);return e}return{id:"",userId:"",userName:"",deptId:"",deptEName:"",deptCName:""}};t.getCurrentUser=g;const M=(e,n)=>{try{const r=(0,t.getRememberMe)()||n;return r?(localStorage.setItem(s,JSON.stringify(e)),sessionStorage.removeItem(s)):(sessionStorage.setItem(s,JSON.stringify(e)),localStorage.removeItem(s)),!0}catch(r){return!1}};t.setCurrentUser=M;const v=()=>{try{return localStorage.removeItem(s),sessionStorage.removeItem(s),!0}catch(e){return!1}};t.removeCurrentUser=v;const L=e=>{const n=(0,t.getRememberMe)()||e,r=n?localStorage.getItem(l):sessionStorage.getItem(l);if(r){const e=JSON.parse(r);return e}return{skinName:"",culture:"",companyCode:"",companyName:"",appName:""}};t.getCurrentEnvironment=L;const w=(e,n)=>{try{const r=(0,t.getRememberMe)()||n;return r?(localStorage.setItem(l,JSON.stringify(e)),sessionStorage.removeItem(l)):(sessionStorage.setItem(l,JSON.stringify(e)),localStorage.removeItem(l)),!0}catch(r){return!1}};t.setCurrentEnvironment=w;const k=()=>{try{return localStorage.removeItem(l),sessionStorage.removeItem(l),!0}catch(e){return!1}};t.removeCurrentEnvironment=k;const Y=(e,n)=>{let a=new r.EI.EIInfo;const o=new r.EI.EiBlock,i=n||"Table1";return o.pushData(e,!0),a.addBlock(o,i),a=(0,t.setContext)(a),a};t.buildEIInfo=Y;const b=()=>{const e=(0,a.getConfig)()?.currentRouter.currentRoute.value??{},{query:t,path:n,fullPath:r}=e,o=t?.formName?t?.formName:void 0!==n?n.toString().substring(n.toString().lastIndexOf("/")+1):"HOME";return o},D=e=>{const n=(0,t.getCurrentUser)(),r=(0,t.getCurrentEnvironment)(),o=(0,a.getConfig)();if(n&&""!==n.userId){const t=b(),a={userid:n.userId,username:n.userName,formname:t.toUpperCase(),fore_ip:o?.sysInfo?.fore_ip??"",fore_mac:o?.sysInfo?.fore_mac??"",fore_machine:o?.sysInfo?.fore_machine??"",culture:r.culture||"zh_Hans",company_code:r.companyCode||"",company_name:r.companyName||""};e.context={...a}}return e};t.setContext=D;let T=!1;const S=()=>{const e=document.createElement("style");e.textContent="\n .request-loading {\n position: relative;\n width: 100%;\n height: 100%;\n }\n\n .loading-mask {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(255, 255, 255, 0.1); /* 半透明白色遮罩 */\n mask-image: none; /* 初始设置为无遮罩 */\n }\n\n .loading-svg {\n /*position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;*/\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 12px;\n background: rgba(0, 0, 0, 0.2);\n mask-image: none; /* 初始设置为无遮罩 */\n }\n\n /*.loading-svg svg {\n width: 100%;\n height: 100%;\n }*/\n\n @keyframes loadingAnimation {\n to {\n transform: rotate(360deg);\n }\n }\n ",document.head.appendChild(e)},A=(e,t,n)=>{let r,a=!1;if(e){const t=document.querySelectorAll(e);t.length?r=t[0]:(r=document.body,a=!0)}else r=document.body,a=!0;r?.classList.add("request-loading");const o=document.createElement("div");o.className="loading-mask",r?.appendChild(o);const i=document.createElement("div");i.className="loading-svg";const s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttribute("viewBox","0 0 100 100"),s.setAttribute("width","50px"),s.setAttribute("height","50px");let l=null;return n=n??2e3,l=setTimeout((()=>{const e=document.createElementNS("http://www.w3.org/2000/svg","path");e.setAttribute("d","M67.447 58c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10zm9.448 9.447c0 5.523 4.477 10 10 10 5.522 0 10-4.477 10-10s-4.478-10-10-10c-5.523 0-10 4.477-10 10zm-9.448 9.448c-5.523 0-10 4.477-10 10 0 5.522 4.477 10 10 10s10-4.478 10-10c0-5.523-4.477-10-10-10zM58 67.447c0-5.523-4.477-10-10-10s-10 4.477-10 10 4.477 10 10 10 10-4.477 10-10z"),e.setAttribute("fill","rgb(64, 158, 255)"),s.appendChild(e),i.appendChild(s),r?.appendChild(i);const t=document.createElementNS("http://www.w3.org/2000/svg","animateTransform");t.setAttribute("attributeName","transform"),t.setAttribute("type","rotate"),t.setAttribute("from","-360 67 67"),t.setAttribute("to","0 67 67"),t.setAttribute("dur","1.2s"),t.setAttribute("repeatCount","indefinite"),e.appendChild(t)}),n),T||(S(),T=!0),l},x=(e,t)=>{let n,r=!1;if(e){const t=document.querySelectorAll(e);t.length?n=t[0]:(n=document.body,r=!0)}else n=document.body,r=!0;const a=n?.querySelector(".loading-mask"),o=n?.querySelector(".loading-svg");a&&a.remove(),o&&o.remove(),n?.classList.remove("request-loading"),t&&clearTimeout(t)},E=(e,t,n,r,a)=>{e?t.value=A(n,r,a):x(n,t.value)};t.loading=E;const C=e=>{try{JSON.parse(e);return!0}catch(t){return!1}};t.isJsonString=C;const j=e=>{const t=new RegExp("<[a-zA-Z]+.*?>([\\s\\S]*?)</[a-zA-Z]*?>","g");return t.test(e)};t.isHtmlString=j;const O=e=>{const t=new RegExp("(?<=>)[^<>]+(?=<)","g");return t.test(e)&&e.match(t)||[]};t.getHtmlTagContent=O,t.PLAT_TYPE=(0,a.getConfig)()?.platType??"4C";const H=()=>"4J"===t.PLAT_TYPE;t.isPlatJ=H,t.MASTER_EP_NAME=(0,t.isPlatJ)()?(0,a.getConfig)()?.jAppName??"iplat4j":"MASTER",t.EP_NAME=(0,t.isPlatJ)()?(0,a.getConfig)()?.jAppName??"iplat4j":"EP";const N=e=>{var t=-e.getTimezoneOffset(),n=t>=0?"+":"-",r=function(e){return(e<10?"0":"")+e};return e.getFullYear()+"-"+r(e.getMonth()+1)+"-"+r(e.getDate())+"T"+r(e.getHours())+":"+r(e.getMinutes())+":"+r(e.getSeconds())+n+r(Math.floor(Math.abs(t)/60))+":"+r(Math.abs(t)%60)};t.toIsoString=N},2592:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:r.RFC3986,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986}},8458:(e,t,n)=>{"use strict";var r=n(4554),a=n(6530),o=n(2592);e.exports={formats:o,parse:a,stringify:r}},6530:(e,t,n)=>{"use strict";var r=n(7116),a=Object.prototype.hasOwnProperty,o=Array.isArray,i={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u="utf8=%26%2310003%3B",d="utf8=%E2%9C%93",c=function(e,t){var n,c={__proto__:null},m=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,h=t.parameterLimit===1/0?void 0:t.parameterLimit,f=m.split(t.delimiter,h),_=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&(f[n]===d?p="utf-8":f[n]===u&&(p="iso-8859-1"),_=n,n=f.length);for(n=0;n<f.length;++n)if(n!==_){var y,g,M=f[n],v=M.indexOf("]="),L=-1===v?M.indexOf("="):v+1;-1===L?(y=t.decoder(M,i.decoder,p,"key"),g=t.strictNullHandling?null:""):(y=t.decoder(M.slice(0,L),i.decoder,p,"key"),g=r.maybeMap(l(M.slice(L+1),t),(function(e){return t.decoder(e,i.decoder,p,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===p&&(g=s(g)),M.indexOf("[]=")>-1&&(g=o(g)?[g]:g),a.call(c,y)?c[y]=r.combine(c[y],g):c[y]=g}return c},m=function(e,t,n,r){for(var a=r?t:l(t,n),o=e.length-1;o>=0;--o){var i,s=e[o];if("[]"===s&&n.parseArrays)i=[].concat(a);else{i=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,d=parseInt(u,10);n.parseArrays||""!==u?!isNaN(d)&&s!==u&&String(d)===u&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(i=[],i[d]=a):"__proto__"!==u&&(i[u]=a):i={0:a}}a=i}return a},h=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=n.depth>0&&i.exec(o),u=l?o.slice(0,l.index):o,d=[];if(u){if(!n.plainObjects&&a.call(Object.prototype,u)&&!n.allowPrototypes)return;d.push(u)}var c=0;while(n.depth>0&&null!==(l=s.exec(o))&&c<n.depth){if(c+=1,!n.plainObjects&&a.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(l[1])}return l&&d.push("["+o.slice(l.index)+"]"),m(d,t,n,r)}},f=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?i.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:i.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:i.comma,decoder:"function"===typeof e.decoder?e.decoder:i.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}};e.exports=function(e,t){var n=f(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var a="string"===typeof e?c(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(a),s=0;s<i.length;++s){var l=i[s],u=h(l,a[l],n,"string"===typeof e);o=r.merge(o,u,n)}return!0===n.allowSparse?o:r.compact(o)}},4554:(e,t,n)=>{"use strict";var r=n(7478),a=n(7116),o=n(2592),i=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,d=function(e,t){u.apply(e,l(t)?t:[t])},c=Date.prototype.toISOString,m=o["default"],h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:a.encode,encodeValuesOnly:!1,format:m,formatter:o.formatters[m],indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},f=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},_={},p=function e(t,n,o,i,s,u,c,m,p,y,g,M,v,L,w,k){var Y=t,b=k,D=0,T=!1;while(void 0!==(b=b.get(_))&&!T){var S=b.get(t);if(D+=1,"undefined"!==typeof S){if(S===D)throw new RangeError("Cyclic object value");T=!0}"undefined"===typeof b.get(_)&&(D=0)}if("function"===typeof m?Y=m(n,Y):Y instanceof Date?Y=g(Y):"comma"===o&&l(Y)&&(Y=a.maybeMap(Y,(function(e){return e instanceof Date?g(e):e}))),null===Y){if(s)return c&&!L?c(n,h.encoder,w,"key",M):n;Y=""}if(f(Y)||a.isBuffer(Y)){if(c){var A=L?n:c(n,h.encoder,w,"key",M);return[v(A)+"="+v(c(Y,h.encoder,w,"value",M))]}return[v(n)+"="+v(String(Y))]}var x,E=[];if("undefined"===typeof Y)return E;if("comma"===o&&l(Y))L&&c&&(Y=a.maybeMap(Y,c)),x=[{value:Y.length>0?Y.join(",")||null:void 0}];else if(l(m))x=m;else{var C=Object.keys(Y);x=p?C.sort(p):C}for(var j=i&&l(Y)&&1===Y.length?n+"[]":n,O=0;O<x.length;++O){var H=x[O],N="object"===typeof H&&"undefined"!==typeof H.value?H.value:Y[H];if(!u||null!==N){var P=l(Y)?"function"===typeof o?o(j,H):j:j+(y?"."+H:"["+H+"]");k.set(t,D);var I=r();I.set(_,k),d(E,e(N,P,o,i,s,u,"comma"===o&&L&&l(Y)?null:c,m,p,y,g,M,v,L,w,I))}}return E},y=function(e){if(!e)return h;if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o["default"];if("undefined"!==typeof e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],a=h.filter;return("function"===typeof e.filter||l(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?h.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:h.encode,encoder:"function"===typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:a,format:n,formatter:r,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}};e.exports=function(e,t){var n,a,o=e,i=y(t);"function"===typeof i.filter?(a=i.filter,o=a("",o)):l(i.filter)&&(a=i.filter,n=a);var u,c=[];if("object"!==typeof o||null===o)return"";u=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var m=s[u];if(t&&"commaRoundTrip"in t&&"boolean"!==typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h="comma"===m&&t&&t.commaRoundTrip;n||(n=Object.keys(o)),i.sort&&n.sort(i.sort);for(var f=r(),_=0;_<n.length;++_){var g=n[_];i.skipNulls&&null===o[g]||d(c,p(o[g],g,m,h,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,f))}var M=c.join(i.delimiter),v=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),M.length>0?v+M:""}},7116:(e,t,n)=>{"use strict";var r=n(2592),a=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e){while(e.length>1){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],a=0;a<n.length;++a)"undefined"!==typeof n[a]&&r.push(n[a]);t.obj[t.prop]=r}}},l=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},u=function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(o(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!a.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var i=t;return o(t)&&!o(n)&&(i=l(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(a.call(t,o)){var i=t[o];i&&"object"===typeof i&&n&&"object"===typeof n?t[o]=e(i,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var i=n[o];return a.call(t,o)?t[o]=e(t[o],i,r):t[o]=i,t}),i)},d=function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},c=function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(a){return r}},m=function(e,t,n,a,o){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<s.length;++u){var d=s.charCodeAt(u);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===r.RFC1738&&(40===d||41===d)?l+=s.charAt(u):d<128?l+=i[d]:d<2048?l+=i[192|d>>6]+i[128|63&d]:d<55296||d>=57344?l+=i[224|d>>12]+i[128|d>>6&63]+i[128|63&d]:(u+=1,d=65536+((1023&d)<<10|1023&s.charCodeAt(u)),l+=i[240|d>>18]+i[128|d>>12&63]+i[128|d>>6&63]+i[128|63&d])}return l},h=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var a=t[r],o=a.obj[a.prop],i=Object.keys(o),l=0;l<i.length;++l){var u=i[l],d=o[u];"object"===typeof d&&null!==d&&-1===n.indexOf(d)&&(t.push({obj:o,prop:u}),n.push(d))}return s(t),e},f=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},_=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},p=function(e,t){return[].concat(e,t)},y=function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};e.exports={arrayToObject:l,assign:d,combine:p,compact:h,decode:c,encode:m,isBuffer:_,isRegExp:f,maybeMap:y,merge:u}},9669:(e,t,n)=>{e.exports=n(1609)},5448:(e,t,n)=>{"use strict";var r=n(4867),a=n(6026),o=n(4372),i=n(5327),s=n(4097),l=n(4109),u=n(7985),d=n(5061),c=n(7874),m=n(5263);e.exports=function(e){return new Promise((function(t,n){var h,f=e.data,_=e.headers,p=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(f)&&delete _["Content-Type"];var g=new XMLHttpRequest;if(e.auth){var M=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";_.Authorization="Basic "+btoa(M+":"+v)}var L=s(e.baseURL,e.url);function w(){if(g){var r="getAllResponseHeaders"in g?l(g.getAllResponseHeaders()):null,o=p&&"text"!==p&&"json"!==p?g.response:g.responseText,i={data:o,status:g.status,statusText:g.statusText,headers:r,config:e,request:g};a((function(e){t(e),y()}),(function(e){n(e),y()}),i),g=null}}if(g.open(e.method.toUpperCase(),i(L,e.params,e.paramsSerializer),!0),g.timeout=e.timeout,"onloadend"in g?g.onloadend=w:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(w)},g.onabort=function(){g&&(n(d("Request aborted",e,"ECONNABORTED",g)),g=null)},g.onerror=function(){n(d("Network Error",e,null,g)),g=null},g.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(d(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",g)),g=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||u(L))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(_[e.xsrfHeaderName]=k)}"setRequestHeader"in g&&r.forEach(_,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete _[t]:g.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(g.withCredentials=!!e.withCredentials),p&&"json"!==p&&(g.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&g.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){g&&(n(!e||e&&e.type?new m("canceled"):e),g.abort(),g=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),f||(f=null),g.send(f)}))}},1609:(e,t,n)=>{"use strict";var r=n(4867),a=n(1849),o=n(321),i=n(7185),s=n(5546);function l(e){var t=new o(e),n=a(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n.create=function(t){return l(i(e,t))},n}var u=l(s);u.Axios=o,u.Cancel=n(5263),u.CancelToken=n(4972),u.isCancel=n(6502),u.VERSION=n(7288).version,u.all=function(e){return Promise.all(e)},u.spread=n(8713),u.isAxiosError=n(6268),e.exports=u,e.exports["default"]=u},5263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,n)=>{"use strict";var r=n(5263);function a(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}a.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},a.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},a.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},a.source=function(){var e,t=new a((function(t){e=t}));return{token:t,cancel:e}},e.exports=a},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(4867),a=n(5327),o=n(782),i=n(3572),s=n(7185),l=n(4875),u=l.validators;function d(e){this.defaults=e,this.interceptors={request:new o,response:new o}}d.prototype.request=function(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=s(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&l.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var r=[],a=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,d=[];if(this.interceptors.response.forEach((function(e){d.push(e.fulfilled,e.rejected)})),!a){var c=[i,void 0];Array.prototype.unshift.apply(c,r),c=c.concat(d),o=Promise.resolve(t);while(c.length)o=o.then(c.shift(),c.shift());return o}var m=t;while(r.length){var h=r.shift(),f=r.shift();try{m=h(m)}catch(_){f(_);break}}try{o=i(m)}catch(_){return Promise.reject(_)}while(d.length)o=o.then(d.shift(),d.shift());return o},d.prototype.getUri=function(e){return e=s(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){d.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=d},782:(e,t,n)=>{"use strict";var r=n(4867);function a(){this.handlers=[]}a.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=a},4097:(e,t,n)=>{"use strict";var r=n(1793),a=n(7303);e.exports=function(e,t){return e&&!r(t)?a(e,t):t}},5061:(e,t,n)=>{"use strict";var r=n(481);e.exports=function(e,t,n,a,o){var i=new Error(e);return r(i,t,n,a,o)}},3572:(e,t,n)=>{"use strict";var r=n(4867),a=n(8527),o=n(6502),i=n(5546),s=n(5263);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){l(e),e.headers=e.headers||{},e.data=a.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||i.adapter;return t(e).then((function(t){return l(e),t.data=a.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=a.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,r,a){return e.config=t,n&&(e.code=n),e.request=r,e.response=a,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},7185:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){t=t||{};var n={};function a(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:a(void 0,e[n]):a(e[n],t[n])}function i(e){if(!r.isUndefined(t[e]))return a(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:a(void 0,e[n]):a(void 0,t[n])}function l(n){return n in t?a(e[n],t[n]):n in e?a(void 0,e[n]):void 0}var u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,a=t(e);r.isUndefined(a)&&t!==l||(n[e]=a)})),n}},6026:(e,t,n)=>{"use strict";var r=n(5061);e.exports=function(e,t,n){var a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},8527:(e,t,n)=>{"use strict";var r=n(4867),a=n(5546);e.exports=function(e,t,n){var o=this||a;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},5546:(e,t,n)=>{"use strict";var r=n(4867),a=n(6016),o=n(481),i=n(7874),s={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function u(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(5448)),e}function d(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(a){if("SyntaxError"!==a.name)throw a}return(n||JSON.stringify)(e)}var c={transitional:i,adapter:u(),transformRequest:[function(e,t){return a(t,"Accept"),a(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),d(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,n=t&&t.silentJSONParsing,a=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||a&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(i){if("SyntaxError"===s.name)throw o(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(s)})),e.exports=c},7874:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7288:e=>{e.exports={version:"0.26.1"}},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},5327:(e,t,n)=>{"use strict";var r=n(4867);function a(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var i=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),i.push(a(t)+"="+a(e))})))})),o=i.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,a,o,i){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(a)&&s.push("path="+a),r.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},7985:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function a(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=a(window.location.href),function(t){var n=r.isString(t)?a(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},6016:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},4109:(e,t,n)=>{"use strict";var r=n(4867),a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,i={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(i[t]&&a.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:(e,t,n)=>{"use strict";var r=n(7288).version,a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};function i(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");var r=Object.keys(e),a=r.length;while(a-- >0){var o=r[a],i=t[o];if(i){var s=e[o],l=void 0===s||i(s,o,e);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}}a.transitional=function(e,t,n){function a(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,i){if(!1===e)throw new Error(a(r," has been removed"+(t?" in "+t:"")));return t&&!o[r]&&(o[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}},e.exports={assertOptions:i,validators:a}},4867:(e,t,n)=>{"use strict";var r=n(1849),a=Object.prototype.toString;function o(e){return Array.isArray(e)}function i(e){return"undefined"===typeof e}function s(e){return null!==e&&!i(e)&&null!==e.constructor&&!i(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===a.call(e)}function u(e){return"[object FormData]"===a.call(e)}function d(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer),t}function c(e){return"string"===typeof e}function m(e){return"number"===typeof e}function h(e){return null!==e&&"object"===typeof e}function f(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function _(e){return"[object Date]"===a.call(e)}function p(e){return"[object File]"===a.call(e)}function y(e){return"[object Blob]"===a.call(e)}function g(e){return"[object Function]"===a.call(e)}function M(e){return h(e)&&g(e.pipe)}function v(e){return"[object URLSearchParams]"===a.call(e)}function L(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function w(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function k(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}function Y(){var e={};function t(t,n){f(e[n])&&f(t)?e[n]=Y(e[n],t):f(t)?e[n]=Y({},t):o(t)?e[n]=t.slice():e[n]=t}for(var n=0,r=arguments.length;n<r;n++)k(arguments[n],t);return e}function b(e,t,n){return k(t,(function(t,a){e[a]=n&&"function"===typeof t?r(t,n):t})),e}function D(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:o,isArrayBuffer:l,isBuffer:s,isFormData:u,isArrayBufferView:d,isString:c,isNumber:m,isObject:h,isPlainObject:f,isUndefined:i,isDate:_,isFile:p,isBlob:y,isFunction:g,isStream:M,isURLSearchParams:v,isStandardBrowserEnv:w,forEach:k,merge:Y,extend:b,trim:L,stripBOM:D}},1924:(e,t,n)=>{"use strict";var r=n(210),a=n(5559),o=a(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?a(n):n}},5559:(e,t,n)=>{"use strict";var r=n(8612),a=n(210),o=n(7771),i=a("%TypeError%"),s=a("%Function.prototype.apply%"),l=a("%Function.prototype.call%"),u=a("%Reflect.apply%",!0)||r.call(l,s),d=a("%Object.defineProperty%",!0),c=a("%Math.max%");if(d)try{d({},"a",{value:1})}catch(h){d=null}e.exports=function(e){if("function"!==typeof e)throw new i("a function is required");var t=u(r,l,arguments);return o(t,1+c(0,e.length-(arguments.length-1)),!0)};var m=function(){return u(r,s,arguments)};d?d(e.exports,"apply",{value:m}):e.exports.apply=m},2296:(e,t,n)=>{"use strict";var r=n(1044)(),a=n(210),o=r&&a("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch(u){o=!1}var i=a("%SyntaxError%"),s=a("%TypeError%"),l=n(7296);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new s("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,d=arguments.length>6&&arguments[6],c=!!l&&l(e,t);if(o)o(e,t,{configurable:null===u&&c?c.configurable:!u,enumerable:null===r&&c?c.enumerable:!r,value:n,writable:null===a&&c?c.writable:!a});else{if(!d&&(r||a||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},7648:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,a="[object Function]",o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var a=0;a<t.length;a+=1)n[a+e.length]=t[a];return n},i=function(e,t){for(var n=[],r=t||0,a=0;r<e.length;r+=1,a+=1)n[a]=e[r];return n},s=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var l=this;if("function"!==typeof l||n.apply(l)!==a)throw new TypeError(t+l);for(var u,d=i(arguments,1),c=function(){if(this instanceof u){var t=l.apply(this,o(d,arguments));return Object(t)===t?t:this}return l.apply(e,o(d,arguments))},m=r(0,l.length-d.length),h=[],f=0;f<m;f++)h[f]="$"+f;if(u=Function("binder","return function ("+s(h,",")+"){ return binder.apply(this,arguments); }")(c),l.prototype){var _=function(){};_.prototype=l.prototype,u.prototype=new _,_.prototype=null}return u}},8612:(e,t,n)=>{"use strict";var r=n(7648);e.exports=Function.prototype.bind||r},210:(e,t,n)=>{"use strict";var r,a=SyntaxError,o=Function,i=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(t){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(E){l=null}var u=function(){throw new i},d=l?function(){try{return u}catch(e){try{return l(arguments,"callee").get}catch(t){return u}}}():u,c=n(1405)(),m=n(8185)(),h=Object.getPrototypeOf||(m?function(e){return e.__proto__}:null),f={},_="undefined"!==typeof Uint8Array&&h?h(Uint8Array):r,p={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":c&&h?h([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":f,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c&&h?h(h([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&c&&h?h((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&c&&h?h((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c&&h?h(""[Symbol.iterator]()):r,"%Symbol%":c?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":d,"%TypedArray%":_,"%TypeError%":i,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};if(h)try{null.error}catch(E){var y=h(h(E));p["%Error.prototype%"]=y}var g=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&h&&(n=h(a.prototype))}return p[t]=n,n},M={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=n(8612),L=n(8824),w=v.call(Function.call,Array.prototype.concat),k=v.call(Function.apply,Array.prototype.splice),Y=v.call(Function.call,String.prototype.replace),b=v.call(Function.call,String.prototype.slice),D=v.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,A=function(e){var t=b(e,0,1),n=b(e,-1);if("%"===t&&"%"!==n)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var r=[];return Y(e,T,(function(e,t,n,a){r[r.length]=n?Y(a,S,"$1"):t||e})),r},x=function(e,t){var n,r=e;if(L(M,r)&&(n=M[r],r="%"+n[0]+"%"),L(p,r)){var o=p[r];if(o===f&&(o=g(r)),"undefined"===typeof o&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new a("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new i('"allowMissing" argument must be a boolean');if(null===D(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=A(e),r=n.length>0?n[0]:"",o=x("%"+r+"%",t),s=o.name,u=o.value,d=!1,c=o.alias;c&&(r=c[0],k(n,w([0,1],c)));for(var m=1,h=!0;m<n.length;m+=1){var f=n[m],_=b(f,0,1),y=b(f,-1);if(('"'===_||"'"===_||"`"===_||'"'===y||"'"===y||"`"===y)&&_!==y)throw new a("property names with quotes must have matching quotes");if("constructor"!==f&&h||(d=!0),r+="."+f,s="%"+r+"%",L(p,s))u=p[s];else if(null!=u){if(!(f in u)){if(!t)throw new i("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&m+1>=n.length){var g=l(u,f);h=!!g,u=h&&"get"in g&&!("originalValue"in g.get)?g.get:u[f]}else h=L(u,f),u=u[f];h&&!d&&(p[s]=u)}}return u}},7296:(e,t,n)=>{"use strict";var r=n(210),a=r("%Object.getOwnPropertyDescriptor%",!0);if(a)try{a([],"length")}catch(o){a=null}e.exports=a},1044:(e,t,n)=>{"use strict";var r=n(210),a=r("%Object.defineProperty%",!0),o=function(){if(a)try{return a({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==a([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},8185:e=>{"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},1405:(e,t,n)=>{"use strict";var r="undefined"!==typeof Symbol&&Symbol,a=n(5419);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&a())))}},5419:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(t in e[t]=r,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||!0!==o.enumerable)return!1}return!0}},8824:(e,t,n)=>{"use strict";var r=Function.prototype.call,a=Object.prototype.hasOwnProperty,o=n(8612);e.exports=o.call(r,a)},9755:function(e,t){var n,r;
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["index"]=t(require("vue")):e["index"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(e=>(()=>{var t={3276:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setExpiredHandler=t.setBaseURLHandler=void 0;const a=r(n(9669)),o=n(1539),i=n(8290),s=r(n(8458)),l=n(1267),u={200:"服务器成功返回请求的数据",400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"服务器发生错误,请检查服务器(Internal Server Error)",502:"网关错误(Bad Gateway)",503:"服务不可用,服务器暂时过载或维护(Service Unavailable)",504:"网关超时(Gateway Timeout)"};let d=null,c=null;const m=new Map;function h(e){const{method:t,url:n,params:r,data:a}=e;return[t,n,s.default.stringify(r),s.default.stringify(a)].join("&")}function f(e){const t=h(e);e.url.endsWith("/refreshToken")&&(e.cancelToken=e.cancelToken||new a.default.CancelToken((e=>{m.has(t)||m.set(t,e)})))}function _(e){const t=h(e);if(m.has(t)&&e.url.endsWith("/refreshToken")){const e=m.get(t);e(t),m.delete(t)}}function p(e){c=e}t.setBaseURLHandler=p;const y=async(e,t)=>{const{response:n,message:r}=e;if(n&&n.status){const r=(0,i.getRefreshToken)(),o=(0,i.getToken)(),s=u[n.status]||n.statusText,{status:c,request:m,data:h}=n;if(h)if("string"===typeof h){const t=(0,i.getHtmlTagContent)(h);e.message=t[t.length-1]||s}else e.message=h.message||h.msg||s;else e.message=s;if(e.status=c,401===c||403===c)if(403===c&&r){if(r){const n=(0,i.getCurrentUser)(),s=e.config,l=await t.post("refreshToken",{refreshToken:r,token:o??"",userId:n.userId}).catch((t=>a.default.isCancel(t)?Promise.resolve({data:{flag:0}}):Promise.reject(e))),{signature:u,flag:d,refreshToken:c}=l.data;if(0===d)return u&&(0,i.setToken)(u),c&&(0,i.setRefreshToken)(c),t(s)}}else{if((0,l.getConfig)()?.powerByQianKun){let e=window.location.pathname;const t=(0,l.getConfig)()?.context??"/";e=1===t.length?e:e.substring(t.length-1),"/user/login"!==e&&window.history.pushState(null,"登录",`/user/login?redirect=${e}${window.location.search?window.location.search.replace("?","&"):""}`)}d&&d(e)}}else n||(e.message="您的网络发生异常,无法连接服务器");return Promise.reject(e)},g=e=>{e.headers={...e.headers,"Content-Type":"application/json;charset=UTF-8"};const t=(0,i.getToken)();return t&&(0,i.isPlatJ)()?(e.headers["Accept"]="application/json,*/*",e.headers["x-token"]=t):t&&!e.headers["servicename"]&&(e.headers["signature"]=t),_(e),f(e),e},M=e=>{_(e.config);const{data:t,status:n}=e;if(200===n&&Object.keys(t).includes("__version__")){const n=e.config.url?.substring(e.config.url.lastIndexOf("/")+1);console.time(`service [${n}] deserialization end`);const r=o.EITools.parseJsonObject(t),a=r.toEIInfo();if(console.timeEnd(`service [${n}] deserialization end`),(0,i.isPlatJ)()&&-1===a.status&&"票据过期或请求不合法,请重新登录或获取合法权限!"===a.msg){const t=new Error(r.__sys__.msg);return e.status=401,e.data=a,e.statusText="票据过期或请求不合法,请重新登录或获取合法权限!",t.response=e,Promise.reject(t)}e.data=r}return e},v=e=>(_(e.config||{}),a.default.isCancel(e)?(console.log("已取消的重复请求:"+e.message),Promise.reject(e)):Promise.reject(e));function L(e){const t=a.default.create({baseURL:(0,l.getConfig)()?.baseURL,timeout:0});return t.interceptors.request.use(g),t.interceptors.response.use(M,v),t(e).then((e=>e)).catch((e=>y(e,t)))}function w(e){d=e}t["default"]=L,t.setExpiredHandler=w},468:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EIManager=void 0;const a=r(n(3276)),o=n(8290),i=n(1539),s=n(7466),l=n(1267);class u{constructor(){}handlePost=(e,t,n,r,s)=>{let l={responseType:r};s&&(l={...l,headers:s});const u=JSON.parse(JSON.stringify(t));if("2.0"===u["__version__"]){if(!(0,o.isPlatJ)()){t=(0,o.setContext)(t);const e=s?.uuid;e&&(t.context={...t.context,uuid:e})}const r=e.substring(e.lastIndexOf("/")+1);console.time(`service [${r}] serialization end`),t=t.toJSON(n),t=JSON.stringify(t),console.timeEnd(`service [${r}] serialization end`)}return l={...l,method:"POST",url:e,data:t},(0,a.default)(l).then((e=>(e={...e,data:e.data instanceof i.EITools.__EIInfoJson__?e.data.toEIInfo(n):e.data},e))).catch((e=>Promise.reject(e)))};handleGet=(e,t,n)=>(0,a.default)({method:"GET",url:e,headers:{responseType:n||"json"}}).then((e=>{const n=e.data instanceof i.EITools.__EIInfoJson__?e.data.toEIInfo(t):e.data;return n})).catch((e=>Promise.reject(e)));callService(e,t,n,r,a,i){a=this.initAxiosHeader(a);const s=new Date;console.log(`${(0,o.toIsoString)(s)} call service [${t}] begin.`);const l=this.buildUrl(t,e),u=void 0===i?.show||i?.show,d={value:void 0};return u&&(0,o.loading)(u,d,i?.target,i?.showAnimation,i?.ms),this.handlePost(l,n,r,"json",a).then((e=>{const n=new Date;return console.log(`${(0,o.toIsoString)(n)} call service [${t}] end in ${n.getTime()-s.getTime()} ms.`),u&&(0,o.loading)(!1,d,i?.target,i?.showAnimation,i?.ms),e.data})).catch((e=>{const n=new Date;return console.log(`${(0,o.toIsoString)(n)} failed to call service [${t}]. ${n.getTime()-s.getTime()} ms elapsed.`),u&&(0,o.loading)(!1,d,i?.target,i?.showAnimation,i?.ms),Promise.reject(e)}))}callMasterEPService(e,t,n,r,a){r=this.initAxiosHeader(r);const i=new Date;console.log(`${(0,o.toIsoString)(i)} call service [${e}] begin.`);const s=o.MASTER_EP_NAME,l=this.buildUrl(e,s),u=void 0===a?.show||a?.show,d={value:void 0};return u&&(0,o.loading)(u,d,a?.target,a?.showAnimation,a?.ms),this.handlePost(l,t,n,"json",r).then((t=>{const n=new Date;return console.log(`${(0,o.toIsoString)(n)} call service [${e}] end in ${n.getTime()-i.getTime()} ms.`),u&&(0,o.loading)(!1,d,a?.target,a?.showAnimation,a?.ms),t.data})).catch((t=>{const n=new Date;return console.log(`${(0,o.toIsoString)(n)} failed to call service [${e}]. ${n.getTime()-i.getTime()} ms elapsed.`),u&&(0,o.loading)(!1,d,a?.target,a?.showAnimation,a?.ms),Promise.reject(t)}))}callEPService(e,t,n,r,a){r=this.initAxiosHeader(r);const i=new Date;console.log(`${(0,o.toIsoString)(i)} call service [${e}] begin.`);const s=o.EP_NAME,l=this.buildUrl(e,s),u=void 0===a?.show||a?.show,d={value:void 0};return u&&(0,o.loading)(u,d,a?.target,a?.showAnimation,a?.ms),this.handlePost(l,t,n,"json",r).then((t=>{const n=new Date;return console.log(`${(0,o.toIsoString)(n)} call service [${e}] end in ${n.getTime()-i.getTime()} ms.`),u&&(0,o.loading)(!1,d,a?.target,a?.showAnimation,a?.ms),t.data})).catch((t=>{const n=new Date;return console.log(`${(0,o.toIsoString)(n)} failed to call service [${e}]. ${n.getTime()-i.getTime()} ms elapsed.`),u&&(0,o.loading)(!1,d,a?.target,a?.showAnimation,a?.ms),Promise.reject(t)}))}buildUrl=(e,t)=>(0,o.isPlatJ)()?(t=t||(0,l.getConfig)()?.jAppName||"IPLAT4J",`${t}/service/${e}`):(t=t||"DEFAULT",`${t}/api/CallService/${e}`);initAxiosHeader=e=>(e=e||{},e={...e,uuid:(0,s.v4)()},e)}const d=new u;t.EIManager=d},1539:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EITools=void 0;const r=n(6133),a=n(1050),o=n(7466);(function(e){class t{constructor(){this.company_code="",this.company_name="",this.fore_ip="",this.fore_mac="",this.fore_machine="",this.formname="",this.userid="",this.username="",this.culture="zh_Hans"}company_code;company_name;fore_ip;fore_mac;fore_machine;formname;userid;username;culture}e.Context=t;class n{constructor(){this.descName="",this.msg="",this.status="0",this.msgKey="",this.name="",this.traceId=""}descName;detailMsg;msg;msgKey;name;status;traceId}e.Sys=n;class i{constructor(){this.descName="",this.msg="",this.status=0,this.msgKey="",this.name="",this.traceId=""}descName;detailMsg;msg;msgKey;name;status;traceId}e.SysInfo=i;class s extends Array{constructor(e){super(),e&&e.length>0&&e.forEach((e=>this.push(e)))}}e.DataRow=s;class l{constructor(){this.meta={columns:[]},this.rows=[]}meta;rows;attr;toEiBlock(e){const t=new r.EI.EiBlock;this.attr&&(t.extAttr=new Map(Object.entries(this.attr)));let n=[...this.meta.columns.map((e=>({...e})))];if(e?.autoColumnToUpper&&(n=n.map((e=>({...e,name:e.name.toUpperCase()})))),t.setBlockMeta(n),e?.autoId){const e={pos:n.length,name:a.__IDField__,type:"C",descName:""};n.push(e)}return this.rows.forEach((r=>{const i={};n.forEach(((n,a)=>{if(e?.responseDataHandler){let o=e?.responseDataHandler.call(this,t.name,n.name,r[a]);"D"===n.type&&(o="string"===typeof o&&""!==o.trim()?o&&new Date(o):null),i[n.name]=o}else{let e=r[a];"D"===n.type?e="string"===typeof e&&""!==e.trim()?e&&new Date(e):null:"B"===n.type&&(e=!!e),i[n.name]=e}})),e?.autoId&&(i[a.__IDField__]=(0,o.v4)()),t.data.push(i)})),t}}e.__BlockJson__=l;class u{constructor(e){this.serviceId="",this.__version__="2.0",this.__sys__=new n,this.__context__=new t,this.__blocks__={},e&&(this.__edInfo__=new r.EI.EDInfo)}serviceId;__version__;__sys__;__context__;__blocks__;__edInfo__;addBlock(e,t){this.__blocks__[e]=t}toEIInfo(e){const t=new r.EI.EIInfo;t.context={...this.__context__};const n={...this.__sys__,status:Number(this.__sys__.status)};t.sys=n,this.__edInfo__&&(t.edInfo={fblk_name:[...this.__edInfo__.fblk_name],func_name:[...this.__edInfo__.func_name],pk_name:[...this.__edInfo__.pk_name],pk_val:[...this.__edInfo__.pk_val]});let{descName:a,msg:o,status:i,msgKey:s,name:l}=n;t.descName=a,t.msg=o,t.status=i,t.msgKey=s,t.name=l;const u=Object.keys(this);u.forEach((e=>{e.startsWith("__")||(t.extAttr[e]=this[e])}));for(const r in this.__blocks__){const n=this.__blocks__[r],a=n.toEiBlock(e);t.addBlock(a,r)}return t}}e.__EIInfoJson__=u,e.parseJsonObject=e=>{if("string"===typeof e&&(e=JSON.parse(e)),e&&e.__version__){const t=new u;t.__context__={...e.__context__},t.__sys__={...e.__sys__},t.__version__=e.__version__,e.__edInfo__&&(t.__edInfo__={...e.__edInfo__});const n=Object.keys(e);n.forEach((n=>{n.startsWith("__")||(t[n]=e[n])}));for(const r in e.__blocks__){const n=e.__blocks__[r],a=new l;a.rows=[...n.rows],a.meta={...n.meta},n.attr&&(a.attr={...n.attr}),t.__blocks__[r]=a}return t}return new u}})(t.EITools||(t.EITools={}))},6133:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EI=void 0;const r=n(1050),a=n(1539),o=n(8290);(function(e){const t=e=>"string"===typeof e?"C":"number"===typeof e?"N":"boolean"===typeof e?"B":e instanceof Date?"D":"C",n=e=>void 0===e||null===e?"U":t(e),i=(e,t)=>"C"===e&&"string"===typeof t||("N"===e&&"number"===typeof t||("B"===e&&"boolean"===typeof t||"D"===e&&t instanceof Date)),s=e=>void 0!==e&&(null!==e&&""!==e),l=e=>{const t="N"===e?0:"D"===e?null:"";return t},u=e=>{const t="N"===e?0:"";return t};class d{constructor(e){this.name=e||"Table1",this.data=[],this.columns=[],this.extAttr=new Map}name;data;columns;extAttr;pushData(e,t){if(Array.isArray(e)?this.data=[...this.data,...e]:this.data.push(e),t)if(Array.isArray(e))e.forEach((e=>{const t=Object.keys(e);t.forEach(((t,r)=>{const a=this.columns.find((e=>e.name===t)),o=n(e[t]);if(a){if(""===e[t]&&"D"===a.type)throw new Error("不能将日期类型设置为空字符串");("C"===o&&"N"===a.type||"D"===o&&"C"===a.type)&&(a.type=o)}else{const e=new h;e.name=t,e.pos=this.columns.length,e.descName=`C${t}`,e.type="U"===o?"C":o,this.columns.push(e)}}))}));else{const t=Object.keys(e);t.forEach(((t,r)=>{const a=this.columns.find((e=>e.name===t)),o=n(e[t]);if(a)("C"===o&&"N"===a.type||"D"===o&&"C"===a.type)&&(a.type=o);else{const e=new h;e.name=t,e.pos=this.columns.length,e.descName=`C${t}`,e.type="U"===o?"C":o,this.columns.push(e)}}))}}getBlockMeta(){return this.columns}setBlockMeta(e){this.columns=e.map((e=>({...e})))}getColumn(e){if(""===e.trim())throw new Error("columnName cannot be empty");const t=this.columns.find((t=>t.name===e));return t}removeColumn(e){if(""===e.trim())throw new Error("columnName cannot be empty");if(this.columns){const t=this.columns.findIndex((t=>t.name===e));t>=0&&(this.columns.splice(t,1),this.columns.forEach(((e,n)=>{n>=t&&(e.pos=e.pos-1)})))}return this.data.length?(this.data=this.data.map((t=>{const n={...t};return delete n[e],n})),this):this}containsColumn(e){return void 0!==this.columns.find((t=>t.name===e))}addColumn(e,t,n){if(e instanceof h){const n=this.columns.findIndex((t=>t.name===e.name));if(-1!==n)throw new Error("table ["+this.name+"] already has column ["+e.Name+"]");if(this.columns.push(e),t=void 0===t?l(e.type):t,this.data.length){if(!i(e.type,t))throw new Error(`defaultValue [${t}] not match dataType [${e.type}]`);this.data=this.data.map((n=>({...n,[e.name]:void 0===t?"":t})))}}else{if(""===e.trim())throw new Error("column name cannot be empty");if(n||(n="C"),this.columns){const r=this.columns.findIndex((t=>t.name===e));if(-1==r){t=t||"";const r=new h;r.pos=this.columns.length,r.name=e,r.type=n||"C",r.descName=`C${e}`,this.addColumn(r,t)}}}}addColumns(e,...t){if(Array.isArray(e))e.forEach((e=>this.addColumn(e)));else{const n=[e,...t];n.forEach((e=>this.addColumn(e)))}}renameColumn(e,t){if(""===e.trim()||""===t.trim())throw new Error("columnName cannot be empty");if(this.columns){const n=this.columns.find((t=>t.name===e));n&&(n.name=t)}if(this.data.length){const n=Object.keys(this.data[0]);if(n.includes(t))throw new Error(`column name [${t}] already exists.`);if(!n.includes(e))throw new Error(`column name [${t}] does not exist.`);return this.data=this.data.map((n=>{const r={...n,[t]:n[e]};return delete r[e],r})),this}return this}copy(e){const t=new d;return t.columns=this.columns.map((e=>({...e}))),t.name=e||`${this.name} copy`,t.data=this.data.map((e=>({...e}))),this.extAttr&&(t.extAttr=new Map(this.extAttr)),t}clone(e,t){const n=new d;return n.columns=this.columns.map((e=>({...e}))),n.name=e||`${this.name} copy`,t&&(n.data=this.data.map((e=>({...e})))),this.extAttr&&(n.extAttr=new Map(this.extAttr)),n}addRow(e){if(Object.keys(e).length>0)return this.data.push(e),this;throw new Error("rowData cannot be empty")}deleteRow(e){if(e>=0&&e%1===0){let t=this.data.splice(e,1);return t[0]}throw new Error("index must be an integer")}insertRow(e,t){if(e>=0&&e%1===0&&Object.keys(t).length>0)return this.data.splice(e,0,t),this;throw new Error("please check args data")}toJSON(e){const t=new a.EITools.__BlockJson__;let n=[...this.columns.map((e=>({...e})))];return n.length>0&&(e?.autoId&&(n=n.filter((e=>e.name!==r.__IDField__))),t.meta={columns:n}),this.data.forEach(((r,a)=>{const i=[];n.forEach(((n,a)=>{let s=r[n.name];e?.requestDataHandler&&(s=e?.requestDataHandler.call(this,this.name,n.name,s)),"string"===typeof s&&"D"===n.type&&(t.meta.columns[a].type="C"),s instanceof Date&&(t.meta.columns[a].type="D",s=(0,o.toIsoString)(s)),"boolean"===typeof s?s+="":void 0===s?s=u(n.type):null===s&&(s="D"===t.meta.columns[a].type||"N"===t.meta.columns[a].type?null:""),i.push(s)})),i.length>0&&t.rows.push(i)})),this.extAttr&&(t.attr=Array.from(this.extAttr).reduce(((e,[t,n])=>(e[t]=n,e)),{})),t}static build(e,n){let r=new d,a=!1,o=[];if(r.name=e,Array.isArray(n)){let e=[];if("string"===typeof n[0])o=n;else{for(let e in n[0])o.push(e);a=!0}if(o.forEach(((r,o)=>{let i=new h;a&&(i.type=t(n[0][r])),i.name=r,i.pos=o,e.push(i)})),r.columns=e,a)for(let t=0;t<n.length;t++)r.addRow(n[t])}return r}static buildByNames(e,t,n){let r=new d,a=Array.isArray(n);if(r.name=e,Array.isArray(t)){let e=[];t.forEach(((t,r)=>{let o=new h;o.name=t,o.pos=r,a&&s(n[r])&&(o.descName=n[r]),e.push(o)})),r.columns=e}return r}static buildByColumns(e,t){let n=new d;n.name=e;let r=[];return t.forEach(((e,t)=>{let n=new h;n.name=e["field"];let a=new f;Object.keys(a).forEach(((t,r)=>{t in e&&void 0!=e[t]&&(n[t]=e[t])})),n.descName=e["title"],n.pos=t,r.push(n)})),n.columns=r,n}}e.EiBlock=d;class c{constructor(){this.context=new a.EITools.Context,this.sys=new a.EITools.SysInfo,this.blocks={},this.name="",this.descName="",this.msg="",this.msgKey="",this.detailMsg="",this.status=0,this.extAttr={}}context;sys;blocks;name;descName;msg;msgKey;detailMsg;status;extAttr;edInfo;getName(){return this.name}setName(e){this.name=e}setED(e){this.edInfo=e}addBlock(e,t){const n=t||e.name;if(""===n.trim())throw new Error("block name cannot be empty.");if(Object.keys(this.blocks).includes(n))throw new Error(`block [${n}] already exists.`);return e.name=n,this.blocks[n]=e,e}contains(e){const t=this.blocks[e];return s(t)}remove(e){try{const t=this.blocks[e];return delete this.blocks[e],t}catch(t){throw t}}renameBlock(e,t){if(""===e.trim()||""===t.trim())throw new Error("block name cannot be empty.");if(!Object.keys(this.blocks).includes(e))throw new Error(`block [${e}] does not exist.`);if(Object.keys(this.blocks).includes(t))throw new Error(`block [${e}] already exists.`);const n=this.blocks[e];return n.name=t,this.blocks[t]=n,delete this.blocks[e],n}getBlock(e){const t=Object.keys(this.blocks);if("string"===typeof e){if(""===e.trim())throw new Error("block name cannot be empty.");if(!t.includes(e))throw new Error(`block [${e}] does not exist.`);const n=this.blocks[e];return n}{if(e<0||!Number.isInteger(e))throw new Error("block index must be an integer greater than or equal to 0.");if(e>=t.length)throw new Error(`block [${e}] does not exist.`);const n=this.blocks[t[e]];return n}}clone(){const e=a.EITools.parseJsonObject(this.toJSON()),t=e.toEIInfo();return t}get(e){if(""===e.trim())return new Error("EiInfo function get() str cannot be empty.");let t,n=e.split("-");if(3===n.length){const e=parseInt(n[1]);return this.contains(n[0])?(t=this.getBlock(n[0]),t.data[e][n[2]]??null):null}return 2===n.length?this.contains(n[0])?(t=this.getBlock(n[0]),t.extAttr?.get(n[1])??null):null:this.extAttr[n[0]]}set(...e){let n;switch(e.length>2?(n=e[0],"undefined"==typeof this.blocks[n]&&(this.blocks[n]=new d,this.blocks[n].name=n)):n="",e.length){case 2:if("string"==typeof e[0]){let t=e[0].split("-");1==t.length?this.extAttr[e[0]]=e[1]:2==t.length?this.set(t[0],t[1],e[1]):3==t.length&&this.set(t[0],t[1],t[2],e[1])}break;case 3:this.blocks[n].extAttr||(this.blocks[n].extAttr=new Map),this.blocks[n].extAttr.set(e[1],e[2]);break;case 4:if(!this.blocks[n].containsColumn(e[2])){const r=this.blocks[n];console.log(r);let a=new h;a.name=e[2],a.pos=this.blocks[n].columns.length,a.type=e[3]?t(e[3]):"C",this.blocks[n].columns.push(a)}let r=parseInt(e[1]);if(e[2]&&e[3]){const t=this.blocks[n].data;while("undefined"===typeof t[r])t.push({});t[r][e[2]]=e[3]}break}}toJSON(e){const t=new a.EITools.__EIInfoJson__;t.__context__={...this.context};const n={...this.sys,status:this.sys.status+""};t.__sys__=n,this.edInfo&&(t.__edInfo__={fblk_name:[...this.edInfo.fblk_name],func_name:[...this.edInfo.func_name],pk_name:[...this.edInfo.pk_name],pk_val:[...this.edInfo.pk_val]});for(const r in this.blocks)if(Object.prototype.hasOwnProperty.call(this.blocks,r)){let n=new a.EITools.__BlockJson__;const o=this.blocks[r];n=e?o.toJSON(e):o.toJSON(),t.addBlock(r,n)}if(this.extAttr){const e=Object.keys(this.extAttr);e.forEach((e=>{t[e]=this.extAttr[e]}))}return this.name&&(t.__sys__.name=this.name),t}}e.EIInfo=c;class m{constructor(){this.fblk_name=Array(63).fill(""),this.func_name=Array(63).fill(""),this.pk_name=Array(3).fill(""),this.pk_val=Array(3).fill("")}fblk_name;func_name;pk_name;pk_val}e.EDInfo=m;class h{constructor(){this.pos=0,this.name="",this.type="C",this.descName=""}pos;name;type;descName;regex;formatter;editor;minLength;maxLength;primaryKey;nullable;visible;readonly;displayType;errorPrompt;width;height;align;blockName;sourceName;labelProperty;valueProperty}e.EiColumn=h;class f{constructor(){this.pos=0,this.name="",this.type="C",this.descName="",this.regex="",this.formatter="",this.editor="",this.minLength=0,this.maxLength=0,this.primaryKey=!1,this.nullable=!0,this.visible="",this.readonly="",this.displayType="",this.errorPrompt="",this.width=0,this.height=0,this.align="",this.blockName="",this.sourceName="",this.labelProperty="",this.valueProperty=""}pos;name;type;descName;regex;formatter;editor;minLength;maxLength;primaryKey;nullable;visible;readonly;displayType;errorPrompt;width;height;align;blockName;sourceName;labelProperty;valueProperty}})(t.EI||(t.EI={}))},2321:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EP=void 0;const r=n(8290);class a{constructor(){}get Environment(){return(0,r.getCurrentEnvironment)()}get User(){return(0,r.getCurrentUser)()}}const o=new a;t.EP=o},8222:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(1267),t),a(n(6133),t),a(n(8756),t),a(n(3276),t),a(n(8290),t),a(n(468),t),a(n(2321),t),a(n(1050),t)},8756:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1267:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getConfig=t.init=void 0;let n=null;function r(e){n=Object.freeze(e)}function a(){return n}t.init=r,t.getConfig=a},1050:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__IDField__=void 0,t.__IDField__="ID"},8290:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toIsoString=t.EP_NAME=t.MASTER_EP_NAME=t.isPlatJ=t.PLAT_TYPE=t.getHtmlTagContent=t.isHtmlString=t.isJsonString=t.loading=t.setContext=t.buildEIInfo=t.removeCurrentEnvironment=t.setCurrentEnvironment=t.getCurrentEnvironment=t.removeCurrentUser=t.setCurrentUser=t.getCurrentUser=t.removeRememberMe=t.setRememberMe=t.getRememberMe=t.removeRefreshToken=t.setRefreshToken=t.getRefreshToken=t.removeToken=t.setToken=t.getToken=void 0;const r=n(6133),a=n(1267),o="signature_token",i="refresh_token",s="user_info",l="app_environment_info",u=e=>{const n=(0,t.getRememberMe)()||e;return n?localStorage.getItem(o):sessionStorage.getItem(o)};t.getToken=u;const d=(e,n)=>{try{const r=(0,t.getRememberMe)()||n;return r?(localStorage.setItem(o,e),sessionStorage.removeItem(o)):(sessionStorage.setItem(o,e),localStorage.removeItem(o)),!0}catch(r){return!1}};t.setToken=d;const c=()=>{try{return localStorage.removeItem(o),sessionStorage.removeItem(o),!0}catch(e){return!1}};t.removeToken=c;const m=e=>{const n=(0,t.getRememberMe)()||e;return n?localStorage.getItem(i):sessionStorage.getItem(i)};t.getRefreshToken=m;const h=(e,n)=>{try{const r=(0,t.getRememberMe)()||n;return r?(localStorage.setItem(i,e),sessionStorage.removeItem(i)):(localStorage.removeItem(i),sessionStorage.setItem(i,e)),!0}catch(r){return!1}};t.setRefreshToken=h;const f=()=>{try{return localStorage.removeItem(i),sessionStorage.removeItem(i),!0}catch(e){return!1}};t.removeRefreshToken=f;const _=()=>"true"===localStorage.getItem("remember_me");t.getRememberMe=_;const p=e=>{try{return localStorage.setItem("remember_me",e+""),!0}catch(t){return!1}};t.setRememberMe=p;const y=()=>{try{return localStorage.removeItem("remember_me"),!0}catch(e){return!1}};t.removeRememberMe=y;const g=e=>{const n=(0,t.getRememberMe)()||e,r=n?localStorage.getItem(s):sessionStorage.getItem(s);if(r){const e=JSON.parse(r);return e}return{id:"",userId:"",userName:"",deptId:"",deptEName:"",deptCName:""}};t.getCurrentUser=g;const M=(e,n)=>{try{const r=(0,t.getRememberMe)()||n;return r?(localStorage.setItem(s,JSON.stringify(e)),sessionStorage.removeItem(s)):(sessionStorage.setItem(s,JSON.stringify(e)),localStorage.removeItem(s)),!0}catch(r){return!1}};t.setCurrentUser=M;const v=()=>{try{return localStorage.removeItem(s),sessionStorage.removeItem(s),!0}catch(e){return!1}};t.removeCurrentUser=v;const L=e=>{const n=(0,t.getRememberMe)()||e,r=n?localStorage.getItem(l):sessionStorage.getItem(l);if(r){const e=JSON.parse(r);return e}return{skinName:"",culture:"",companyCode:"",companyName:"",appName:""}};t.getCurrentEnvironment=L;const w=(e,n)=>{try{const r=(0,t.getRememberMe)()||n;return r?(localStorage.setItem(l,JSON.stringify(e)),sessionStorage.removeItem(l)):(sessionStorage.setItem(l,JSON.stringify(e)),localStorage.removeItem(l)),!0}catch(r){return!1}};t.setCurrentEnvironment=w;const k=()=>{try{return localStorage.removeItem(l),sessionStorage.removeItem(l),!0}catch(e){return!1}};t.removeCurrentEnvironment=k;const Y=(e,n)=>{let a=new r.EI.EIInfo;const o=new r.EI.EiBlock,i=n||"Table1";return o.pushData(e,!0),a.addBlock(o,i),a=(0,t.setContext)(a),a};t.buildEIInfo=Y;const b=()=>{const e=(0,a.getConfig)()?.currentRouter.currentRoute.value??{},{query:t,path:n,fullPath:r}=e,o=t?.formName?t?.formName:void 0!==n?n.toString().substring(n.toString().lastIndexOf("/")+1):"HOME";return o},D=e=>{const n=(0,t.getCurrentUser)(),r=(0,t.getCurrentEnvironment)(),o=(0,a.getConfig)();if(n&&""!==n.userId){const t=b(),a={userid:n.userId,username:n.userName,formname:t.toUpperCase(),fore_ip:o?.sysInfo?.fore_ip??"",fore_mac:o?.sysInfo?.fore_mac??"",fore_machine:o?.sysInfo?.fore_machine??"",culture:r.culture||"zh_Hans",company_code:r.companyCode||"",company_name:r.companyName||""};e.context={...a}}return e};t.setContext=D;let T=!1;const S=()=>{const e=document.createElement("style");e.textContent="\n .request-loading {\n position: relative;\n width: 100%;\n height: 100%;\n }\n\n .loading-mask {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(255, 255, 255, 0.1); /* 半透明白色遮罩 */\n mask-image: none; /* 初始设置为无遮罩 */\n }\n\n .loading-svg {\n /*position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;*/\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 12px;\n background: rgba(0, 0, 0, 0.2);\n mask-image: none; /* 初始设置为无遮罩 */\n }\n\n /*.loading-svg svg {\n width: 100%;\n height: 100%;\n }*/\n\n @keyframes loadingAnimation {\n to {\n transform: rotate(360deg);\n }\n }\n ",document.head.appendChild(e)},A=(e,t,n)=>{let r,a=!1;if(e){const t=document.querySelectorAll(e);t.length?r=t[0]:(r=document.body,a=!0)}else r=document.body,a=!0;r?.classList.add("request-loading");const o=document.createElement("div");o.className="loading-mask",r?.appendChild(o);const i=document.createElement("div");i.className="loading-svg";const s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttribute("viewBox","0 0 100 100"),s.setAttribute("width","50px"),s.setAttribute("height","50px");let l=null;return n=n??2e3,l=setTimeout((()=>{const e=document.createElementNS("http://www.w3.org/2000/svg","path");e.setAttribute("d","M67.447 58c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10zm9.448 9.447c0 5.523 4.477 10 10 10 5.522 0 10-4.477 10-10s-4.478-10-10-10c-5.523 0-10 4.477-10 10zm-9.448 9.448c-5.523 0-10 4.477-10 10 0 5.522 4.477 10 10 10s10-4.478 10-10c0-5.523-4.477-10-10-10zM58 67.447c0-5.523-4.477-10-10-10s-10 4.477-10 10 4.477 10 10 10 10-4.477 10-10z"),e.setAttribute("fill","rgb(64, 158, 255)"),s.appendChild(e),i.appendChild(s),r?.appendChild(i);const t=document.createElementNS("http://www.w3.org/2000/svg","animateTransform");t.setAttribute("attributeName","transform"),t.setAttribute("type","rotate"),t.setAttribute("from","-360 67 67"),t.setAttribute("to","0 67 67"),t.setAttribute("dur","1.2s"),t.setAttribute("repeatCount","indefinite"),e.appendChild(t)}),n),T||(S(),T=!0),l},x=(e,t)=>{let n,r=!1;if(e){const t=document.querySelectorAll(e);t.length?n=t[0]:(n=document.body,r=!0)}else n=document.body,r=!0;const a=n?.querySelector(".loading-mask"),o=n?.querySelector(".loading-svg");a&&a.remove(),o&&o.remove(),n?.classList.remove("request-loading"),t&&clearTimeout(t)},C=(e,t,n,r,a)=>{e?t.value=A(n,r,a):x(n,t.value)};t.loading=C;const E=e=>{try{JSON.parse(e);return!0}catch(t){return!1}};t.isJsonString=E;const j=e=>{const t=new RegExp("<[a-zA-Z]+.*?>([\\s\\S]*?)</[a-zA-Z]*?>","g");return t.test(e)};t.isHtmlString=j;const O=e=>{const t=new RegExp("(?<=>)[^<>]+(?=<)","g");return t.test(e)&&e.match(t)||[]};t.getHtmlTagContent=O,t.PLAT_TYPE=(0,a.getConfig)()?.platType??"4C";const H=()=>"4J"===t.PLAT_TYPE;t.isPlatJ=H,t.MASTER_EP_NAME=(0,t.isPlatJ)()?(0,a.getConfig)()?.jAppName??"iplat4j":"MASTER",t.EP_NAME=(0,t.isPlatJ)()?(0,a.getConfig)()?.jAppName??"iplat4j":"EP";const N=e=>{var t=-e.getTimezoneOffset(),n=t>=0?"+":"-",r=function(e){return(e<10?"0":"")+e};return e.getFullYear()+"-"+r(e.getMonth()+1)+"-"+r(e.getDate())+"T"+r(e.getHours())+":"+r(e.getMinutes())+":"+r(e.getSeconds())+n+r(Math.floor(Math.abs(t)/60))+":"+r(Math.abs(t)%60)};t.toIsoString=N},2592:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:r.RFC3986,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986}},8458:(e,t,n)=>{"use strict";var r=n(4554),a=n(6530),o=n(2592);e.exports={formats:o,parse:a,stringify:r}},6530:(e,t,n)=>{"use strict";var r=n(7116),a=Object.prototype.hasOwnProperty,o=Array.isArray,i={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u="utf8=%26%2310003%3B",d="utf8=%E2%9C%93",c=function(e,t){var n,c={__proto__:null},m=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,h=t.parameterLimit===1/0?void 0:t.parameterLimit,f=m.split(t.delimiter,h),_=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&(f[n]===d?p="utf-8":f[n]===u&&(p="iso-8859-1"),_=n,n=f.length);for(n=0;n<f.length;++n)if(n!==_){var y,g,M=f[n],v=M.indexOf("]="),L=-1===v?M.indexOf("="):v+1;-1===L?(y=t.decoder(M,i.decoder,p,"key"),g=t.strictNullHandling?null:""):(y=t.decoder(M.slice(0,L),i.decoder,p,"key"),g=r.maybeMap(l(M.slice(L+1),t),(function(e){return t.decoder(e,i.decoder,p,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===p&&(g=s(g)),M.indexOf("[]=")>-1&&(g=o(g)?[g]:g),a.call(c,y)?c[y]=r.combine(c[y],g):c[y]=g}return c},m=function(e,t,n,r){for(var a=r?t:l(t,n),o=e.length-1;o>=0;--o){var i,s=e[o];if("[]"===s&&n.parseArrays)i=[].concat(a);else{i=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,d=parseInt(u,10);n.parseArrays||""!==u?!isNaN(d)&&s!==u&&String(d)===u&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(i=[],i[d]=a):"__proto__"!==u&&(i[u]=a):i={0:a}}a=i}return a},h=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=n.depth>0&&i.exec(o),u=l?o.slice(0,l.index):o,d=[];if(u){if(!n.plainObjects&&a.call(Object.prototype,u)&&!n.allowPrototypes)return;d.push(u)}var c=0;while(n.depth>0&&null!==(l=s.exec(o))&&c<n.depth){if(c+=1,!n.plainObjects&&a.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(l[1])}return l&&d.push("["+o.slice(l.index)+"]"),m(d,t,n,r)}},f=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?i.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:i.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:i.comma,decoder:"function"===typeof e.decoder?e.decoder:i.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}};e.exports=function(e,t){var n=f(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var a="string"===typeof e?c(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(a),s=0;s<i.length;++s){var l=i[s],u=h(l,a[l],n,"string"===typeof e);o=r.merge(o,u,n)}return!0===n.allowSparse?o:r.compact(o)}},4554:(e,t,n)=>{"use strict";var r=n(7478),a=n(7116),o=n(2592),i=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,d=function(e,t){u.apply(e,l(t)?t:[t])},c=Date.prototype.toISOString,m=o["default"],h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:a.encode,encodeValuesOnly:!1,format:m,formatter:o.formatters[m],indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},f=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},_={},p=function e(t,n,o,i,s,u,c,m,p,y,g,M,v,L,w,k){var Y=t,b=k,D=0,T=!1;while(void 0!==(b=b.get(_))&&!T){var S=b.get(t);if(D+=1,"undefined"!==typeof S){if(S===D)throw new RangeError("Cyclic object value");T=!0}"undefined"===typeof b.get(_)&&(D=0)}if("function"===typeof m?Y=m(n,Y):Y instanceof Date?Y=g(Y):"comma"===o&&l(Y)&&(Y=a.maybeMap(Y,(function(e){return e instanceof Date?g(e):e}))),null===Y){if(s)return c&&!L?c(n,h.encoder,w,"key",M):n;Y=""}if(f(Y)||a.isBuffer(Y)){if(c){var A=L?n:c(n,h.encoder,w,"key",M);return[v(A)+"="+v(c(Y,h.encoder,w,"value",M))]}return[v(n)+"="+v(String(Y))]}var x,C=[];if("undefined"===typeof Y)return C;if("comma"===o&&l(Y))L&&c&&(Y=a.maybeMap(Y,c)),x=[{value:Y.length>0?Y.join(",")||null:void 0}];else if(l(m))x=m;else{var E=Object.keys(Y);x=p?E.sort(p):E}for(var j=i&&l(Y)&&1===Y.length?n+"[]":n,O=0;O<x.length;++O){var H=x[O],N="object"===typeof H&&"undefined"!==typeof H.value?H.value:Y[H];if(!u||null!==N){var P=l(Y)?"function"===typeof o?o(j,H):j:j+(y?"."+H:"["+H+"]");k.set(t,D);var I=r();I.set(_,k),d(C,e(N,P,o,i,s,u,"comma"===o&&L&&l(Y)?null:c,m,p,y,g,M,v,L,w,I))}}return C},y=function(e){if(!e)return h;if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o["default"];if("undefined"!==typeof e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],a=h.filter;return("function"===typeof e.filter||l(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?h.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:h.encode,encoder:"function"===typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:a,format:n,formatter:r,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}};e.exports=function(e,t){var n,a,o=e,i=y(t);"function"===typeof i.filter?(a=i.filter,o=a("",o)):l(i.filter)&&(a=i.filter,n=a);var u,c=[];if("object"!==typeof o||null===o)return"";u=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var m=s[u];if(t&&"commaRoundTrip"in t&&"boolean"!==typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h="comma"===m&&t&&t.commaRoundTrip;n||(n=Object.keys(o)),i.sort&&n.sort(i.sort);for(var f=r(),_=0;_<n.length;++_){var g=n[_];i.skipNulls&&null===o[g]||d(c,p(o[g],g,m,h,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,f))}var M=c.join(i.delimiter),v=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),M.length>0?v+M:""}},7116:(e,t,n)=>{"use strict";var r=n(2592),a=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e){while(e.length>1){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],a=0;a<n.length;++a)"undefined"!==typeof n[a]&&r.push(n[a]);t.obj[t.prop]=r}}},l=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},u=function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(o(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!a.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var i=t;return o(t)&&!o(n)&&(i=l(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(a.call(t,o)){var i=t[o];i&&"object"===typeof i&&n&&"object"===typeof n?t[o]=e(i,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var i=n[o];return a.call(t,o)?t[o]=e(t[o],i,r):t[o]=i,t}),i)},d=function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},c=function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(a){return r}},m=function(e,t,n,a,o){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<s.length;++u){var d=s.charCodeAt(u);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===r.RFC1738&&(40===d||41===d)?l+=s.charAt(u):d<128?l+=i[d]:d<2048?l+=i[192|d>>6]+i[128|63&d]:d<55296||d>=57344?l+=i[224|d>>12]+i[128|d>>6&63]+i[128|63&d]:(u+=1,d=65536+((1023&d)<<10|1023&s.charCodeAt(u)),l+=i[240|d>>18]+i[128|d>>12&63]+i[128|d>>6&63]+i[128|63&d])}return l},h=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var a=t[r],o=a.obj[a.prop],i=Object.keys(o),l=0;l<i.length;++l){var u=i[l],d=o[u];"object"===typeof d&&null!==d&&-1===n.indexOf(d)&&(t.push({obj:o,prop:u}),n.push(d))}return s(t),e},f=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},_=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},p=function(e,t){return[].concat(e,t)},y=function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};e.exports={arrayToObject:l,assign:d,combine:p,compact:h,decode:c,encode:m,isBuffer:_,isRegExp:f,maybeMap:y,merge:u}},9669:(e,t,n)=>{e.exports=n(1609)},5448:(e,t,n)=>{"use strict";var r=n(4867),a=n(6026),o=n(4372),i=n(5327),s=n(4097),l=n(4109),u=n(7985),d=n(5061),c=n(7874),m=n(5263);e.exports=function(e){return new Promise((function(t,n){var h,f=e.data,_=e.headers,p=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(f)&&delete _["Content-Type"];var g=new XMLHttpRequest;if(e.auth){var M=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";_.Authorization="Basic "+btoa(M+":"+v)}var L=s(e.baseURL,e.url);function w(){if(g){var r="getAllResponseHeaders"in g?l(g.getAllResponseHeaders()):null,o=p&&"text"!==p&&"json"!==p?g.response:g.responseText,i={data:o,status:g.status,statusText:g.statusText,headers:r,config:e,request:g};a((function(e){t(e),y()}),(function(e){n(e),y()}),i),g=null}}if(g.open(e.method.toUpperCase(),i(L,e.params,e.paramsSerializer),!0),g.timeout=e.timeout,"onloadend"in g?g.onloadend=w:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(w)},g.onabort=function(){g&&(n(d("Request aborted",e,"ECONNABORTED",g)),g=null)},g.onerror=function(){n(d("Network Error",e,null,g)),g=null},g.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(d(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",g)),g=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||u(L))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(_[e.xsrfHeaderName]=k)}"setRequestHeader"in g&&r.forEach(_,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete _[t]:g.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(g.withCredentials=!!e.withCredentials),p&&"json"!==p&&(g.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&g.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){g&&(n(!e||e&&e.type?new m("canceled"):e),g.abort(),g=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),f||(f=null),g.send(f)}))}},1609:(e,t,n)=>{"use strict";var r=n(4867),a=n(1849),o=n(321),i=n(7185),s=n(5546);function l(e){var t=new o(e),n=a(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n.create=function(t){return l(i(e,t))},n}var u=l(s);u.Axios=o,u.Cancel=n(5263),u.CancelToken=n(4972),u.isCancel=n(6502),u.VERSION=n(7288).version,u.all=function(e){return Promise.all(e)},u.spread=n(8713),u.isAxiosError=n(6268),e.exports=u,e.exports["default"]=u},5263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,n)=>{"use strict";var r=n(5263);function a(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}a.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},a.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},a.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},a.source=function(){var e,t=new a((function(t){e=t}));return{token:t,cancel:e}},e.exports=a},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(4867),a=n(5327),o=n(782),i=n(3572),s=n(7185),l=n(4875),u=l.validators;function d(e){this.defaults=e,this.interceptors={request:new o,response:new o}}d.prototype.request=function(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=s(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&l.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var r=[],a=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,d=[];if(this.interceptors.response.forEach((function(e){d.push(e.fulfilled,e.rejected)})),!a){var c=[i,void 0];Array.prototype.unshift.apply(c,r),c=c.concat(d),o=Promise.resolve(t);while(c.length)o=o.then(c.shift(),c.shift());return o}var m=t;while(r.length){var h=r.shift(),f=r.shift();try{m=h(m)}catch(_){f(_);break}}try{o=i(m)}catch(_){return Promise.reject(_)}while(d.length)o=o.then(d.shift(),d.shift());return o},d.prototype.getUri=function(e){return e=s(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){d.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=d},782:(e,t,n)=>{"use strict";var r=n(4867);function a(){this.handlers=[]}a.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=a},4097:(e,t,n)=>{"use strict";var r=n(1793),a=n(7303);e.exports=function(e,t){return e&&!r(t)?a(e,t):t}},5061:(e,t,n)=>{"use strict";var r=n(481);e.exports=function(e,t,n,a,o){var i=new Error(e);return r(i,t,n,a,o)}},3572:(e,t,n)=>{"use strict";var r=n(4867),a=n(8527),o=n(6502),i=n(5546),s=n(5263);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){l(e),e.headers=e.headers||{},e.data=a.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||i.adapter;return t(e).then((function(t){return l(e),t.data=a.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=a.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,r,a){return e.config=t,n&&(e.code=n),e.request=r,e.response=a,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},7185:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){t=t||{};var n={};function a(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:a(void 0,e[n]):a(e[n],t[n])}function i(e){if(!r.isUndefined(t[e]))return a(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:a(void 0,e[n]):a(void 0,t[n])}function l(n){return n in t?a(e[n],t[n]):n in e?a(void 0,e[n]):void 0}var u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,a=t(e);r.isUndefined(a)&&t!==l||(n[e]=a)})),n}},6026:(e,t,n)=>{"use strict";var r=n(5061);e.exports=function(e,t,n){var a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},8527:(e,t,n)=>{"use strict";var r=n(4867),a=n(5546);e.exports=function(e,t,n){var o=this||a;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},5546:(e,t,n)=>{"use strict";var r=n(4867),a=n(6016),o=n(481),i=n(7874),s={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function u(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(5448)),e}function d(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(a){if("SyntaxError"!==a.name)throw a}return(n||JSON.stringify)(e)}var c={transitional:i,adapter:u(),transformRequest:[function(e,t){return a(t,"Accept"),a(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),d(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,n=t&&t.silentJSONParsing,a=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||a&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(i){if("SyntaxError"===s.name)throw o(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(s)})),e.exports=c},7874:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7288:e=>{e.exports={version:"0.26.1"}},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},5327:(e,t,n)=>{"use strict";var r=n(4867);function a(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var i=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),i.push(a(t)+"="+a(e))})))})),o=i.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,a,o,i){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(a)&&s.push("path="+a),r.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},7985:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function a(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=a(window.location.href),function(t){var n=r.isString(t)?a(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},6016:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},4109:(e,t,n)=>{"use strict";var r=n(4867),a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,i={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(i[t]&&a.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:(e,t,n)=>{"use strict";var r=n(7288).version,a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};function i(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");var r=Object.keys(e),a=r.length;while(a-- >0){var o=r[a],i=t[o];if(i){var s=e[o],l=void 0===s||i(s,o,e);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}}a.transitional=function(e,t,n){function a(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,i){if(!1===e)throw new Error(a(r," has been removed"+(t?" in "+t:"")));return t&&!o[r]&&(o[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}},e.exports={assertOptions:i,validators:a}},4867:(e,t,n)=>{"use strict";var r=n(1849),a=Object.prototype.toString;function o(e){return Array.isArray(e)}function i(e){return"undefined"===typeof e}function s(e){return null!==e&&!i(e)&&null!==e.constructor&&!i(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===a.call(e)}function u(e){return"[object FormData]"===a.call(e)}function d(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer),t}function c(e){return"string"===typeof e}function m(e){return"number"===typeof e}function h(e){return null!==e&&"object"===typeof e}function f(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function _(e){return"[object Date]"===a.call(e)}function p(e){return"[object File]"===a.call(e)}function y(e){return"[object Blob]"===a.call(e)}function g(e){return"[object Function]"===a.call(e)}function M(e){return h(e)&&g(e.pipe)}function v(e){return"[object URLSearchParams]"===a.call(e)}function L(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function w(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function k(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}function Y(){var e={};function t(t,n){f(e[n])&&f(t)?e[n]=Y(e[n],t):f(t)?e[n]=Y({},t):o(t)?e[n]=t.slice():e[n]=t}for(var n=0,r=arguments.length;n<r;n++)k(arguments[n],t);return e}function b(e,t,n){return k(t,(function(t,a){e[a]=n&&"function"===typeof t?r(t,n):t})),e}function D(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:o,isArrayBuffer:l,isBuffer:s,isFormData:u,isArrayBufferView:d,isString:c,isNumber:m,isObject:h,isPlainObject:f,isUndefined:i,isDate:_,isFile:p,isBlob:y,isFunction:g,isStream:M,isURLSearchParams:v,isStandardBrowserEnv:w,forEach:k,merge:Y,extend:b,trim:L,stripBOM:D}},1924:(e,t,n)=>{"use strict";var r=n(210),a=n(5559),o=a(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?a(n):n}},5559:(e,t,n)=>{"use strict";var r=n(8612),a=n(210),o=n(7771),i=a("%TypeError%"),s=a("%Function.prototype.apply%"),l=a("%Function.prototype.call%"),u=a("%Reflect.apply%",!0)||r.call(l,s),d=a("%Object.defineProperty%",!0),c=a("%Math.max%");if(d)try{d({},"a",{value:1})}catch(h){d=null}e.exports=function(e){if("function"!==typeof e)throw new i("a function is required");var t=u(r,l,arguments);return o(t,1+c(0,e.length-(arguments.length-1)),!0)};var m=function(){return u(r,s,arguments)};d?d(e.exports,"apply",{value:m}):e.exports.apply=m},2296:(e,t,n)=>{"use strict";var r=n(1044)(),a=n(210),o=r&&a("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch(u){o=!1}var i=a("%SyntaxError%"),s=a("%TypeError%"),l=n(7296);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new s("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,d=arguments.length>6&&arguments[6],c=!!l&&l(e,t);if(o)o(e,t,{configurable:null===u&&c?c.configurable:!u,enumerable:null===r&&c?c.enumerable:!r,value:n,writable:null===a&&c?c.writable:!a});else{if(!d&&(r||a||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},7648:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,a="[object Function]",o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var a=0;a<t.length;a+=1)n[a+e.length]=t[a];return n},i=function(e,t){for(var n=[],r=t||0,a=0;r<e.length;r+=1,a+=1)n[a]=e[r];return n},s=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var l=this;if("function"!==typeof l||n.apply(l)!==a)throw new TypeError(t+l);for(var u,d=i(arguments,1),c=function(){if(this instanceof u){var t=l.apply(this,o(d,arguments));return Object(t)===t?t:this}return l.apply(e,o(d,arguments))},m=r(0,l.length-d.length),h=[],f=0;f<m;f++)h[f]="$"+f;if(u=Function("binder","return function ("+s(h,",")+"){ return binder.apply(this,arguments); }")(c),l.prototype){var _=function(){};_.prototype=l.prototype,u.prototype=new _,_.prototype=null}return u}},8612:(e,t,n)=>{"use strict";var r=n(7648);e.exports=Function.prototype.bind||r},210:(e,t,n)=>{"use strict";var r,a=SyntaxError,o=Function,i=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(t){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(C){l=null}var u=function(){throw new i},d=l?function(){try{return u}catch(e){try{return l(arguments,"callee").get}catch(t){return u}}}():u,c=n(1405)(),m=n(8185)(),h=Object.getPrototypeOf||(m?function(e){return e.__proto__}:null),f={},_="undefined"!==typeof Uint8Array&&h?h(Uint8Array):r,p={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":c&&h?h([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":f,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c&&h?h(h([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&c&&h?h((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&c&&h?h((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c&&h?h(""[Symbol.iterator]()):r,"%Symbol%":c?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":d,"%TypedArray%":_,"%TypeError%":i,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};if(h)try{null.error}catch(C){var y=h(h(C));p["%Error.prototype%"]=y}var g=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&h&&(n=h(a.prototype))}return p[t]=n,n},M={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=n(8612),L=n(8824),w=v.call(Function.call,Array.prototype.concat),k=v.call(Function.apply,Array.prototype.splice),Y=v.call(Function.call,String.prototype.replace),b=v.call(Function.call,String.prototype.slice),D=v.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,A=function(e){var t=b(e,0,1),n=b(e,-1);if("%"===t&&"%"!==n)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var r=[];return Y(e,T,(function(e,t,n,a){r[r.length]=n?Y(a,S,"$1"):t||e})),r},x=function(e,t){var n,r=e;if(L(M,r)&&(n=M[r],r="%"+n[0]+"%"),L(p,r)){var o=p[r];if(o===f&&(o=g(r)),"undefined"===typeof o&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new a("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new i('"allowMissing" argument must be a boolean');if(null===D(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=A(e),r=n.length>0?n[0]:"",o=x("%"+r+"%",t),s=o.name,u=o.value,d=!1,c=o.alias;c&&(r=c[0],k(n,w([0,1],c)));for(var m=1,h=!0;m<n.length;m+=1){var f=n[m],_=b(f,0,1),y=b(f,-1);if(('"'===_||"'"===_||"`"===_||'"'===y||"'"===y||"`"===y)&&_!==y)throw new a("property names with quotes must have matching quotes");if("constructor"!==f&&h||(d=!0),r+="."+f,s="%"+r+"%",L(p,s))u=p[s];else if(null!=u){if(!(f in u)){if(!t)throw new i("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&m+1>=n.length){var g=l(u,f);h=!!g,u=h&&"get"in g&&!("originalValue"in g.get)?g.get:u[f]}else h=L(u,f),u=u[f];h&&!d&&(p[s]=u)}}return u}},7296:(e,t,n)=>{"use strict";var r=n(210),a=r("%Object.getOwnPropertyDescriptor%",!0);if(a)try{a([],"length")}catch(o){a=null}e.exports=a},1044:(e,t,n)=>{"use strict";var r=n(210),a=r("%Object.defineProperty%",!0),o=function(){if(a)try{return a({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==a([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},8185:e=>{"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},1405:(e,t,n)=>{"use strict";var r="undefined"!==typeof Symbol&&Symbol,a=n(5419);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&a())))}},5419:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(t in e[t]=r,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||!0!==o.enumerable)return!1}return!0}},8824:(e,t,n)=>{"use strict";var r=Function.prototype.call,a=Object.prototype.hasOwnProperty,o=n(8612);e.exports=o.call(r,a)},9755:function(e,t){var n,r;
|
|
2
2
|
/*!
|
|
3
3
|
* jQuery JavaScript Library v3.6.0
|
|
4
4
|
* https://jquery.com/
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* Date: 2021-02-16
|
|
24
24
|
*/
|
|
25
|
-
function(e){var t,n,r,a,o,i,s,l,u,d,c,m,h,f,_,p,y,g,M,v="sizzle"+1*new Date,L=e.document,w=0,k=0,Y=le(),b=le(),D=le(),T=le(),S=function(e,t){return e===t&&(c=!0),0},A={}.hasOwnProperty,x=[],E=x.pop,C=x.push,j=x.push,O=x.slice,H=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\["+P+"*("+I+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+P+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",B=new RegExp(P+"+","g"),W=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),V=new RegExp("^"+P+"*,"+P+"*"),z=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),U=new RegExp(P+"|>"),q=new RegExp(F),J=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},$=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ae=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){m()},ie=ve((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{j.apply(x=O.call(L.childNodes),L.childNodes),x[L.childNodes.length].nodeType}catch(Te){j={apply:x.length?function(e,t){C.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(e,t,r,a){var o,s,u,d,c,f,y,g=t&&t.ownerDocument,L=t?t.nodeType:9;if(r=r||[],"string"!==typeof e||!e||1!==L&&9!==L&&11!==L)return r;if(!a&&(m(t),t=t||h,_)){if(11!==L&&(c=Q.exec(e)))if(o=c[1]){if(9===L){if(!(u=t.getElementById(o)))return r;if(u.id===o)return r.push(u),r}else if(g&&(u=g.getElementById(o))&&M(t,u)&&u.id===o)return r.push(u),r}else{if(c[2])return j.apply(r,t.getElementsByTagName(e)),r;if((o=c[3])&&n.getElementsByClassName&&t.getElementsByClassName)return j.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!T[e+" "]&&(!p||!p.test(e))&&(1!==L||"object"!==t.nodeName.toLowerCase())){if(y=e,g=t,1===L&&(U.test(e)||z.test(e))){g=ee.test(e)&&ye(t.parentNode)||t,g===t&&n.scope||((d=t.getAttribute("id"))?d=d.replace(re,ae):t.setAttribute("id",d=v)),f=i(e),s=f.length;while(s--)f[s]=(d?"#"+d:":scope")+" "+Me(f[s]);y=f.join(",")}try{return j.apply(r,g.querySelectorAll(y)),r}catch(w){T(e,!0)}finally{d===v&&t.removeAttribute("id")}}}return l(e.replace(W,"$1"),t,r,a)}function le(){var e=[];function t(n,a){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=a}return t}function ue(e){return e[v]=!0,e}function de(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(Te){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){var n=e.split("|"),a=n.length;while(a--)r.attrHandle[n[a]]=t}function me(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function he(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function _e(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function pe(e){return ue((function(t){return t=+t,ue((function(n,r){var a,o=e([],n.length,t),i=o.length;while(i--)n[a=o[i]]&&(n[a]=!(r[a]=n[a]))}))}))}function ye(e){return e&&"undefined"!==typeof e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!$.test(t||n&&n.nodeName||"HTML")},m=se.setDocument=function(e){var t,a,i=e?e.ownerDocument||e:L;return i!=h&&9===i.nodeType&&i.documentElement?(h=i,f=h.documentElement,_=!o(h),L!=h&&(a=h.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",oe,!1):a.attachEvent&&a.attachEvent("onunload",oe)),n.scope=de((function(e){return f.appendChild(e).appendChild(h.createElement("div")),"undefined"!==typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=de((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=de((function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=X.test(h.getElementsByClassName),n.getById=de((function(e){return f.appendChild(e).id=v,!h.getElementsByName||!h.getElementsByName(v).length})),n.getById?(r.filter["ID"]=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find["ID"]=function(e,t){if("undefined"!==typeof t.getElementById&&_){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter["ID"]=function(e){var t=e.replace(te,ne);return function(e){var n="undefined"!==typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find["ID"]=function(e,t){if("undefined"!==typeof t.getElementById&&_){var n,r,a,o=t.getElementById(e);if(o){if(n=o.getAttributeNode("id"),n&&n.value===e)return[o];a=t.getElementsByName(e),r=0;while(o=a[r++])if(n=o.getAttributeNode("id"),n&&n.value===e)return[o]}return[]}}),r.find["TAG"]=n.getElementsByTagName?function(e,t){return"undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],a=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[a++])1===n.nodeType&&r.push(n);return r}return o},r.find["CLASS"]=n.getElementsByClassName&&function(e,t){if("undefined"!==typeof t.getElementsByClassName&&_)return t.getElementsByClassName(e)},y=[],p=[],(n.qsa=X.test(h.querySelectorAll))&&(de((function(e){var t;f.appendChild(e).innerHTML="<a id='"+v+"'></a><select id='"+v+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&p.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||p.push("\\["+P+"*(?:value|"+N+")"),e.querySelectorAll("[id~="+v+"-]").length||p.push("~="),t=h.createElement("input"),t.setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||p.push("\\["+P+"*name"+P+"*="+P+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||p.push(":checked"),e.querySelectorAll("a#"+v+"+*").length||p.push(".#.+[+~]"),e.querySelectorAll("\\\f"),p.push("[\\r\\n\\f]")})),de((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&p.push("name"+P+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&p.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),p.push(",.*:")}))),(n.matchesSelector=X.test(g=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&de((function(e){n.disconnectedMatch=g.call(e,"*"),g.call(e,"[s!='']:x"),y.push("!=",F)})),p=p.length&&new RegExp(p.join("|")),y=y.length&&new RegExp(y.join("|")),t=X.test(f.compareDocumentPosition),M=t||X.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},S=t?function(e,t){if(e===t)return c=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==h||e.ownerDocument==L&&M(L,e)?-1:t==h||t.ownerDocument==L&&M(L,t)?1:d?H(d,e)-H(d,t):0:4&r?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,r=0,a=e.parentNode,o=t.parentNode,i=[e],s=[t];if(!a||!o)return e==h?-1:t==h?1:a?-1:o?1:d?H(d,e)-H(d,t):0;if(a===o)return me(e,t);n=e;while(n=n.parentNode)i.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(i[r]===s[r])r++;return r?me(i[r],s[r]):i[r]==L?-1:s[r]==L?1:0},h):h},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(m(e),n.matchesSelector&&_&&!T[t+" "]&&(!y||!y.test(t))&&(!p||!p.test(t)))try{var r=g.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(Te){T(t,!0)}return se(t,h,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=h&&m(e),M(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=h&&m(e);var a=r.attrHandle[t.toLowerCase()],o=a&&A.call(r.attrHandle,t.toLowerCase())?a(e,t,!_):void 0;return void 0!==o?o:n.attributes||!_?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ae)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],a=0,o=0;if(c=!n.detectDuplicates,d=!n.sortStable&&e.slice(0),e.sort(S),c){while(t=e[o++])t===e[o]&&(a=r.push(o));while(a--)e.splice(r[a],1)}return d=null,e},a=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"===typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===o||4===o)return e.nodeValue}else while(t=e[r++])n+=a(t);return n},r=se.selectors={cacheLength:50,createPseudo:ue,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G["CHILD"].test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&q.test(n)&&(t=i(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Y[e+" "];return t||(t=new RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&Y(e,(function(e){return t.test("string"===typeof e.className&&e.className||"undefined"!==typeof e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var a=se.attr(r,e);return null==a?"!="===t:!t||(a+="","="===t?a===n:"!="===t?a!==n:"^="===t?n&&0===a.indexOf(n):"*="===t?n&&a.indexOf(n)>-1:"$="===t?n&&a.slice(-n.length)===n:"~="===t?(" "+a.replace(B," ")+" ").indexOf(n)>-1:"|="===t&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,a){var o="nth"!==e.slice(0,3),i="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===a?function(e){return!!e.parentNode}:function(t,n,l){var u,d,c,m,h,f,_=o!==i?"nextSibling":"previousSibling",p=t.parentNode,y=s&&t.nodeName.toLowerCase(),g=!l&&!s,M=!1;if(p){if(o){while(_){m=t;while(m=m[_])if(s?m.nodeName.toLowerCase()===y:1===m.nodeType)return!1;f=_="only"===e&&!f&&"nextSibling"}return!0}if(f=[i?p.firstChild:p.lastChild],i&&g){m=p,c=m[v]||(m[v]={}),d=c[m.uniqueID]||(c[m.uniqueID]={}),u=d[e]||[],h=u[0]===w&&u[1],M=h&&u[2],m=h&&p.childNodes[h];while(m=++h&&m&&m[_]||(M=h=0)||f.pop())if(1===m.nodeType&&++M&&m===t){d[e]=[w,h,M];break}}else if(g&&(m=t,c=m[v]||(m[v]={}),d=c[m.uniqueID]||(c[m.uniqueID]={}),u=d[e]||[],h=u[0]===w&&u[1],M=h),!1===M)while(m=++h&&m&&m[_]||(M=h=0)||f.pop())if((s?m.nodeName.toLowerCase()===y:1===m.nodeType)&&++M&&(g&&(c=m[v]||(m[v]={}),d=c[m.uniqueID]||(c[m.uniqueID]={}),d[e]=[w,M]),m===t))break;return M-=a,M===r||M%r===0&&M/r>=0}}},PSEUDO:function(e,t){var n,a=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[v]?a(t):a.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ue((function(e,n){var r,o=a(e,t),i=o.length;while(i--)r=H(e,o[i]),e[r]=!(n[r]=o[i])})):function(e){return a(e,0,n)}):a}},pseudos:{not:ue((function(e){var t=[],n=[],r=s(e.replace(W,"$1"));return r[v]?ue((function(e,t,n,a){var o,i=r(e,null,a,[]),s=e.length;while(s--)(o=i[s])&&(e[s]=!(t[s]=o))})):function(e,a,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:ue((function(e){return function(t){return se(e,t).length>0}})),contains:ue((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||a(t)).indexOf(e)>-1}})),lang:ue((function(e){return J.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=_?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:_e(!1),disabled:_e(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos["empty"](e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:pe((function(){return[0]})),last:pe((function(e,t){return[t-1]})),eq:pe((function(e,t,n){return[n<0?n+t:n]})),even:pe((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:pe((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:pe((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:pe((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},r.pseudos["nth"]=r.pseudos["eq"],{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=he(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=fe(t);function ge(){}function Me(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ve(e,t,n){var r=t.dir,a=t.next,o=a||r,i=n&&"parentNode"===o,s=k++;return t.first?function(t,n,a){while(t=t[r])if(1===t.nodeType||i)return e(t,n,a);return!1}:function(t,n,l){var u,d,c,m=[w,s];if(l){while(t=t[r])if((1===t.nodeType||i)&&e(t,n,l))return!0}else while(t=t[r])if(1===t.nodeType||i)if(c=t[v]||(t[v]={}),d=c[t.uniqueID]||(c[t.uniqueID]={}),a&&a===t.nodeName.toLowerCase())t=t[r]||t;else{if((u=d[o])&&u[0]===w&&u[1]===s)return m[2]=u[2];if(d[o]=m,m[2]=e(t,n,l))return!0}return!1}}function Le(e){return e.length>1?function(t,n,r){var a=e.length;while(a--)if(!e[a](t,n,r))return!1;return!0}:e[0]}function we(e,t,n){for(var r=0,a=t.length;r<a;r++)se(e,t[r],n);return n}function ke(e,t,n,r,a){for(var o,i=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,a)||(i.push(o),u&&t.push(s)));return i}function Ye(e,t,n,r,a,o){return r&&!r[v]&&(r=Ye(r)),a&&!a[v]&&(a=Ye(a,o)),ue((function(o,i,s,l){var u,d,c,m=[],h=[],f=i.length,_=o||we(t||"*",s.nodeType?[s]:s,[]),p=!e||!o&&t?_:ke(_,m,e,s,l),y=n?a||(o?e:f||r)?[]:i:p;if(n&&n(p,y,s,l),r){u=ke(y,h),r(u,[],s,l),d=u.length;while(d--)(c=u[d])&&(y[h[d]]=!(p[h[d]]=c))}if(o){if(a||e){if(a){u=[],d=y.length;while(d--)(c=y[d])&&u.push(p[d]=c);a(null,y=[],u,l)}d=y.length;while(d--)(c=y[d])&&(u=a?H(o,c):m[d])>-1&&(o[u]=!(i[u]=c))}}else y=ke(y===i?y.splice(f,y.length):y),a?a(null,i,y,l):j.apply(i,y)}))}function be(e){for(var t,n,a,o=e.length,i=r.relative[e[0].type],s=i||r.relative[" "],l=i?1:0,d=ve((function(e){return e===t}),s,!0),c=ve((function(e){return H(t,e)>-1}),s,!0),m=[function(e,n,r){var a=!i&&(r||n!==u)||((t=n).nodeType?d(e,n,r):c(e,n,r));return t=null,a}];l<o;l++)if(n=r.relative[e[l].type])m=[ve(Le(m),n)];else{if(n=r.filter[e[l].type].apply(null,e[l].matches),n[v]){for(a=++l;a<o;a++)if(r.relative[e[a].type])break;return Ye(l>1&&Le(m),l>1&&Me(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(W,"$1"),n,l<a&&be(e.slice(l,a)),a<o&&be(e=e.slice(a)),a<o&&Me(e))}m.push(n)}return Le(m)}function De(e,t){var n=t.length>0,a=e.length>0,o=function(o,i,s,l,d){var c,f,p,y=0,g="0",M=o&&[],v=[],L=u,k=o||a&&r.find["TAG"]("*",d),Y=w+=null==L?1:Math.random()||.1,b=k.length;for(d&&(u=i==h||i||d);g!==b&&null!=(c=k[g]);g++){if(a&&c){f=0,i||c.ownerDocument==h||(m(c),s=!_);while(p=e[f++])if(p(c,i||h,s)){l.push(c);break}d&&(w=Y)}n&&((c=!p&&c)&&y--,o&&M.push(c))}if(y+=g,n&&g!==y){f=0;while(p=t[f++])p(M,v,i,s);if(o){if(y>0)while(g--)M[g]||v[g]||(v[g]=E.call(l));v=ke(v)}j.apply(l,v),d&&!o&&v.length>0&&y+t.length>1&&se.uniqueSort(l)}return d&&(w=Y,u=L),M};return n?ue(o):o}return ge.prototype=r.filters=r.pseudos,r.setFilters=new ge,i=se.tokenize=function(e,t){var n,a,o,i,s,l,u,d=b[e+" "];if(d)return t?0:d.slice(0);s=e,l=[],u=r.preFilter;while(s){for(i in n&&!(a=V.exec(s))||(a&&(s=s.slice(a[0].length)||s),l.push(o=[])),n=!1,(a=z.exec(s))&&(n=a.shift(),o.push({value:n,type:a[0].replace(W," ")}),s=s.slice(n.length)),r.filter)!(a=G[i].exec(s))||u[i]&&!(a=u[i](a))||(n=a.shift(),o.push({value:n,type:i,matches:a}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):b(e,l).slice(0)},s=se.compile=function(e,t){var n,r=[],a=[],o=D[e+" "];if(!o){t||(t=i(e)),n=t.length;while(n--)o=be(t[n]),o[v]?r.push(o):a.push(o);o=D(e,De(a,r)),o.selector=e}return o},l=se.select=function(e,t,n,a){var o,l,u,d,c,m="function"===typeof e&&e,h=!a&&i(e=m.selector||e);if(n=n||[],1===h.length){if(l=h[0]=h[0].slice(0),l.length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&_&&r.relative[l[1].type]){if(t=(r.find["ID"](u.matches[0].replace(te,ne),t)||[])[0],!t)return n;m&&(t=t.parentNode),e=e.slice(l.shift().value.length)}o=G["needsContext"].test(e)?0:l.length;while(o--){if(u=l[o],r.relative[d=u.type])break;if((c=r.find[d])&&(a=c(u.matches[0].replace(te,ne),ee.test(l[0].type)&&ye(t.parentNode)||t))){if(l.splice(o,1),e=a.length&&Me(l),!e)return j.apply(n,a),n;break}}}return(m||s(e,h))(a,t,!_,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=v.split("").sort(S).join("")===v,n.detectDuplicates=!!c,m(),n.sortDetached=de((function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))})),de((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||ce("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&de((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||ce("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),de((function(e){return null==e.getAttribute("disabled")}))||ce(N,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(a);b.find=T,b.expr=T.selectors,b.expr[":"]=b.expr.pseudos,b.uniqueSort=b.unique=T.uniqueSort,b.text=T.getText,b.isXMLDoc=T.isXML,b.contains=T.contains,b.escapeSelector=T.escape;var S=function(e,t,n){var r=[],a=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(a&&b(e).is(n))break;r.push(e)}return r},A=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},x=b.expr.match.needsContext;function E(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var C=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,t,n){return g(t)?b.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?b.grep(e,(function(e){return e===t!==n})):"string"!==typeof t?b.grep(e,(function(e){return c.call(t,e)>-1!==n})):b.filter(t,e,n)}b.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?b.find.matchesSelector(r,e)?[r]:[]:b.find.matches(e,b.grep(t,(function(e){return 1===e.nodeType})))},b.fn.extend({find:function(e){var t,n,r=this.length,a=this;if("string"!==typeof e)return this.pushStack(b(e).filter((function(){for(t=0;t<r;t++)if(b.contains(a[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)b.find(e,a[t],n);return r>1?b.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"===typeof e&&x.test(e)?b(e):e||[],!1).length}});var O,H=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,N=b.fn.init=function(e,t,n){var r,a;if(!e)return this;if(n=n||O,"string"===typeof e){if(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:H.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof b?t[0]:t,b.merge(this,b.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:v,!0)),C.test(r[1])&&b.isPlainObject(t))for(r in t)g(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return a=v.getElementById(r[2]),a&&(this[0]=a,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(b):b.makeArray(e,this)};N.prototype=b.fn,O=b(v);var P=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){while((e=e[t])&&1!==e.nodeType);return e}b.fn.extend({has:function(e){var t=b(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(b.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,a=this.length,o=[],i="string"!==typeof e&&b(e);if(!x.test(e))for(;r<a;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(i?i.index(n)>-1:1===n.nodeType&&b.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?b.uniqueSort(o):o)},index:function(e){return e?"string"===typeof e?c.call(b(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(b.uniqueSort(b.merge(this.get(),b(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return S(e,"parentNode")},parentsUntil:function(e,t,n){return S(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return S(e,"nextSibling")},prevAll:function(e){return S(e,"previousSibling")},nextUntil:function(e,t,n){return S(e,"nextSibling",n)},prevUntil:function(e,t,n){return S(e,"previousSibling",n)},siblings:function(e){return A((e.parentNode||{}).firstChild,e)},children:function(e){return A(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(E(e,"template")&&(e=e.content||e),b.merge([],e.childNodes))}},(function(e,t){b.fn[e]=function(n,r){var a=b.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"===typeof r&&(a=b.filter(r,a)),this.length>1&&(I[e]||b.uniqueSort(a),P.test(e)&&a.reverse()),this.pushStack(a)}}));var F=/[^\x20\t\r\n\f]+/g;function B(e){var t={};return b.each(e.match(F)||[],(function(e,n){t[n]=!0})),t}function W(e){return e}function V(e){throw e}function z(e,t,n,r){var a;try{e&&g(a=e.promise)?a.call(e).done(t).fail(n):e&&g(a=e.then)?a.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}b.Callbacks=function(e){e="string"===typeof e?B(e):b.extend({},e);var t,n,r,a,o=[],i=[],s=-1,l=function(){for(a=a||e.once,r=t=!0;i.length;s=-1){n=i.shift();while(++s<o.length)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1)}e.memory||(n=!1),t=!1,a&&(o=n?[]:"")},u={add:function(){return o&&(n&&!t&&(s=o.length-1,i.push(n)),function t(n){b.each(n,(function(n,r){g(r)?e.unique&&u.has(r)||o.push(r):r&&r.length&&"string"!==k(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return b.each(arguments,(function(e,t){var n;while((n=b.inArray(t,o,n))>-1)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?b.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return a=i=[],o=n="",this},disabled:function(){return!o},lock:function(){return a=i=[],n||t||(o=n=""),this},locked:function(){return!!a},fireWith:function(e,n){return a||(n=n||[],n=[e,n.slice?n.slice():n],i.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},b.extend({Deferred:function(e){var t=[["notify","progress",b.Callbacks("memory"),b.Callbacks("memory"),2],["resolve","done",b.Callbacks("once memory"),b.Callbacks("once memory"),0,"resolved"],["reject","fail",b.Callbacks("once memory"),b.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return b.Deferred((function(n){b.each(t,(function(t,r){var a=g(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=a&&a.apply(this,arguments);e&&g(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,a?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,r){var o=0;function i(e,t,n,r){return function(){var s=this,l=arguments,u=function(){var a,u;if(!(e<o)){if(a=n.apply(s,l),a===t.promise())throw new TypeError("Thenable self-resolution");u=a&&("object"===typeof a||"function"===typeof a)&&a.then,g(u)?r?u.call(a,i(o,t,W,r),i(o,t,V,r)):(o++,u.call(a,i(o,t,W,r),i(o,t,V,r),i(o,t,W,t.notifyWith))):(n!==W&&(s=void 0,l=[a]),(r||t.resolveWith)(s,l))}},d=r?u:function(){try{u()}catch(r){b.Deferred.exceptionHook&&b.Deferred.exceptionHook(r,d.stackTrace),e+1>=o&&(n!==V&&(s=void 0,l=[r]),t.rejectWith(s,l))}};e?d():(b.Deferred.getStackHook&&(d.stackTrace=b.Deferred.getStackHook()),a.setTimeout(d))}}return b.Deferred((function(a){t[0][3].add(i(0,a,g(r)?r:W,a.notifyWith)),t[1][3].add(i(0,a,g(e)?e:W)),t[2][3].add(i(0,a,g(n)?n:V))})).promise()},promise:function(e){return null!=e?b.extend(e,r):r}},o={};return b.each(t,(function(e,a){var i=a[2],s=a[5];r[a[1]]=i.add,s&&i.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),i.add(a[3].fire),o[a[0]]=function(){return o[a[0]+"With"](this===o?void 0:this,arguments),this},o[a[0]+"With"]=i.fireWith})),r.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),a=l.call(arguments),o=b.Deferred(),i=function(e){return function(n){r[e]=this,a[e]=arguments.length>1?l.call(arguments):n,--t||o.resolveWith(r,a)}};if(t<=1&&(z(e,o.done(i(n)).resolve,o.reject,!t),"pending"===o.state()||g(a[n]&&a[n].then)))return o.then();while(n--)z(a[n],i(n),o.reject);return o.promise()}});var U=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;b.Deferred.exceptionHook=function(e,t){a.console&&a.console.warn&&e&&U.test(e.name)&&a.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},b.readyException=function(e){a.setTimeout((function(){throw e}))};var q=b.Deferred();function J(){v.removeEventListener("DOMContentLoaded",J),a.removeEventListener("load",J),b.ready()}b.fn.ready=function(e){return q.then(e).catch((function(e){b.readyException(e)})),this},b.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--b.readyWait:b.isReady)||(b.isReady=!0,!0!==e&&--b.readyWait>0||q.resolveWith(v,[b]))}}),b.ready.then=q.then,"complete"===v.readyState||"loading"!==v.readyState&&!v.documentElement.doScroll?a.setTimeout(b.ready):(v.addEventListener("DOMContentLoaded",J),a.addEventListener("load",J));var G=function(e,t,n,r,a,o,i){var s=0,l=e.length,u=null==n;if("object"===k(n))for(s in a=!0,n)G(e,t,s,n[s],!0,o,i);else if(void 0!==r&&(a=!0,g(r)||(i=!0),u&&(i?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(b(e),n)})),t))for(;s<l;s++)t(e[s],n,i?r:r.call(e[s],s,t(e[s],n)));return a?e:u?t.call(e):l?t(e[0],n):o},$=/^-ms-/,K=/-([a-z])/g;function Z(e,t){return t.toUpperCase()}function X(e){return e.replace($,"ms-").replace(K,Z)}var Q=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ee(){this.expando=b.expando+ee.uid++}ee.uid=1,ee.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Q(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,a=this.cache(e);if("string"===typeof t)a[X(t)]=n;else for(r in t)a[X(r)]=t[r];return a},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"===typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){Array.isArray(t)?t=t.map(X):(t=X(t),t=t in r?[t]:t.match(F)||[]),n=t.length;while(n--)delete r[t[n]]}(void 0===t||b.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!b.isEmptyObject(t)}};var te=new ee,ne=new ee,re=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ae=/[A-Z]/g;function oe(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:re.test(e)?JSON.parse(e):e)}function ie(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ae,"-$&").toLowerCase(),n=e.getAttribute(r),"string"===typeof n){try{n=oe(n)}catch(a){}ne.set(e,t,n)}else n=void 0;return n}b.extend({hasData:function(e){return ne.hasData(e)||te.hasData(e)},data:function(e,t,n){return ne.access(e,t,n)},removeData:function(e,t){ne.remove(e,t)},_data:function(e,t,n){return te.access(e,t,n)},_removeData:function(e,t){te.remove(e,t)}}),b.fn.extend({data:function(e,t){var n,r,a,o=this[0],i=o&&o.attributes;if(void 0===e){if(this.length&&(a=ne.get(o),1===o.nodeType&&!te.get(o,"hasDataAttrs"))){n=i.length;while(n--)i[n]&&(r=i[n].name,0===r.indexOf("data-")&&(r=X(r.slice(5)),ie(o,r,a[r])));te.set(o,"hasDataAttrs",!0)}return a}return"object"===typeof e?this.each((function(){ne.set(this,e)})):G(this,(function(t){var n;if(o&&void 0===t)return n=ne.get(o,e),void 0!==n?n:(n=ie(o,e),void 0!==n?n:void 0);this.each((function(){ne.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){ne.remove(this,e)}))}}),b.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=te.get(e,t),n&&(!r||Array.isArray(n)?r=te.access(e,t,b.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=b.queue(e,t),r=n.length,a=n.shift(),o=b._queueHooks(e,t),i=function(){b.dequeue(e,t)};"inprogress"===a&&(a=n.shift(),r--),a&&("fx"===t&&n.unshift("inprogress"),delete o.stop,a.call(e,i,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return te.get(e,n)||te.access(e,n,{empty:b.Callbacks("once memory").add((function(){te.remove(e,[t+"queue",n])}))})}}),b.fn.extend({queue:function(e,t){var n=2;return"string"!==typeof e&&(t=e,e="fx",n--),arguments.length<n?b.queue(this[0],e):void 0===t?this:this.each((function(){var n=b.queue(this,e,t);b._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&b.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){b.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,a=b.Deferred(),o=this,i=this.length,s=function(){--r||a.resolveWith(o,[o])};"string"!==typeof e&&(t=e,e=void 0),e=e||"fx";while(i--)n=te.get(o[i],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),a.promise(t)}});var se=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,le=new RegExp("^(?:([+-])=|)("+se+")([a-z%]*)$","i"),ue=["Top","Right","Bottom","Left"],de=v.documentElement,ce=function(e){return b.contains(e.ownerDocument,e)},me={composed:!0};de.getRootNode&&(ce=function(e){return b.contains(e.ownerDocument,e)||e.getRootNode(me)===e.ownerDocument});var he=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&ce(e)&&"none"===b.css(e,"display")};function fe(e,t,n,r){var a,o,i=20,s=r?function(){return r.cur()}:function(){return b.css(e,t,"")},l=s(),u=n&&n[3]||(b.cssNumber[t]?"":"px"),d=e.nodeType&&(b.cssNumber[t]||"px"!==u&&+l)&&le.exec(b.css(e,t));if(d&&d[3]!==u){l/=2,u=u||d[3],d=+l||1;while(i--)b.style(e,t,d+u),(1-o)*(1-(o=s()/l||.5))<=0&&(i=0),d/=o;d*=2,b.style(e,t,d+u),n=n||[]}return n&&(d=+d||+l||0,a=n[1]?d+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=d,r.end=a)),a}var _e={};function pe(e){var t,n=e.ownerDocument,r=e.nodeName,a=_e[r];return a||(t=n.body.appendChild(n.createElement(r)),a=b.css(t,"display"),t.parentNode.removeChild(t),"none"===a&&(a="block"),_e[r]=a,a)}function ye(e,t){for(var n,r,a=[],o=0,i=e.length;o<i;o++)r=e[o],r.style&&(n=r.style.display,t?("none"===n&&(a[o]=te.get(r,"display")||null,a[o]||(r.style.display="")),""===r.style.display&&he(r)&&(a[o]=pe(r))):"none"!==n&&(a[o]="none",te.set(r,"display",n)));for(o=0;o<i;o++)null!=a[o]&&(e[o].style.display=a[o]);return e}b.fn.extend({show:function(){return ye(this,!0)},hide:function(){return ye(this)},toggle:function(e){return"boolean"===typeof e?e?this.show():this.hide():this.each((function(){he(this)?b(this).show():b(this).hide()}))}});var ge=/^(?:checkbox|radio)$/i,Me=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=v.createDocumentFragment(),t=e.appendChild(v.createElement("div")),n=v.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),y.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,t.innerHTML="<option></option>",y.option=!!t.lastChild})();var Le={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function we(e,t){var n;return n="undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!==typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&E(e,t)?b.merge([e],n):n}function ke(e,t){for(var n=0,r=e.length;n<r;n++)te.set(e[n],"globalEval",!t||te.get(t[n],"globalEval"))}Le.tbody=Le.tfoot=Le.colgroup=Le.caption=Le.thead,Le.th=Le.td,y.option||(Le.optgroup=Le.option=[1,"<select multiple='multiple'>","</select>"]);var Ye=/<|&#?\w+;/;function be(e,t,n,r,a){for(var o,i,s,l,u,d,c=t.createDocumentFragment(),m=[],h=0,f=e.length;h<f;h++)if(o=e[h],o||0===o)if("object"===k(o))b.merge(m,o.nodeType?[o]:o);else if(Ye.test(o)){i=i||c.appendChild(t.createElement("div")),s=(Me.exec(o)||["",""])[1].toLowerCase(),l=Le[s]||Le._default,i.innerHTML=l[1]+b.htmlPrefilter(o)+l[2],d=l[0];while(d--)i=i.lastChild;b.merge(m,i.childNodes),i=c.firstChild,i.textContent=""}else m.push(t.createTextNode(o));c.textContent="",h=0;while(o=m[h++])if(r&&b.inArray(o,r)>-1)a&&a.push(o);else if(u=ce(o),i=we(c.appendChild(o),"script"),u&&ke(i),n){d=0;while(o=i[d++])ve.test(o.type||"")&&n.push(o)}return c}var De=/^([^.]*)(?:\.(.+)|)/;function Te(){return!0}function Se(){return!1}function Ae(e,t){return e===xe()===("focus"===t)}function xe(){try{return v.activeElement}catch(e){}}function Ee(e,t,n,r,a,o){var i,s;if("object"===typeof t){for(s in"string"!==typeof n&&(r=r||n,n=void 0),t)Ee(e,s,n,r,t[s],o);return e}if(null==r&&null==a?(a=n,r=n=void 0):null==a&&("string"===typeof n?(a=r,r=void 0):(a=r,r=n,n=void 0)),!1===a)a=Se;else if(!a)return e;return 1===o&&(i=a,a=function(e){return b().off(e),i.apply(this,arguments)},a.guid=i.guid||(i.guid=b.guid++)),e.each((function(){b.event.add(this,t,a,r,n)}))}function Ce(e,t,n){n?(te.set(e,t,!1),b.event.add(e,t,{namespace:!1,handler:function(e){var r,a,o=te.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(b.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=l.call(arguments),te.set(this,t,o),r=n(this,t),this[t](),a=te.get(this,t),o!==a||r?te.set(this,t,!1):a={},o!==a)return e.stopImmediatePropagation(),e.preventDefault(),a&&a.value}else o.length&&(te.set(this,t,{value:b.event.trigger(b.extend(o[0],b.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===te.get(e,t)&&b.event.add(e,t,Te)}b.event={global:{},add:function(e,t,n,r,a){var o,i,s,l,u,d,c,m,h,f,_,p=te.get(e);if(Q(e)){n.handler&&(o=n,n=o.handler,a=o.selector),a&&b.find.matchesSelector(de,a),n.guid||(n.guid=b.guid++),(l=p.events)||(l=p.events=Object.create(null)),(i=p.handle)||(i=p.handle=function(t){return"undefined"!==typeof b&&b.event.triggered!==t.type?b.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(F)||[""],u=t.length;while(u--)s=De.exec(t[u])||[],h=_=s[1],f=(s[2]||"").split(".").sort(),h&&(c=b.event.special[h]||{},h=(a?c.delegateType:c.bindType)||h,c=b.event.special[h]||{},d=b.extend({type:h,origType:_,data:r,handler:n,guid:n.guid,selector:a,needsContext:a&&b.expr.match.needsContext.test(a),namespace:f.join(".")},o),(m=l[h])||(m=l[h]=[],m.delegateCount=0,c.setup&&!1!==c.setup.call(e,r,f,i)||e.addEventListener&&e.addEventListener(h,i)),c.add&&(c.add.call(e,d),d.handler.guid||(d.handler.guid=n.guid)),a?m.splice(m.delegateCount++,0,d):m.push(d),b.event.global[h]=!0)}},remove:function(e,t,n,r,a){var o,i,s,l,u,d,c,m,h,f,_,p=te.hasData(e)&&te.get(e);if(p&&(l=p.events)){t=(t||"").match(F)||[""],u=t.length;while(u--)if(s=De.exec(t[u])||[],h=_=s[1],f=(s[2]||"").split(".").sort(),h){c=b.event.special[h]||{},h=(r?c.delegateType:c.bindType)||h,m=l[h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=o=m.length;while(o--)d=m[o],!a&&_!==d.origType||n&&n.guid!==d.guid||s&&!s.test(d.namespace)||r&&r!==d.selector&&("**"!==r||!d.selector)||(m.splice(o,1),d.selector&&m.delegateCount--,c.remove&&c.remove.call(e,d));i&&!m.length&&(c.teardown&&!1!==c.teardown.call(e,f,p.handle)||b.removeEvent(e,h,p.handle),delete l[h])}else for(h in l)b.event.remove(e,h+t[u],n,r,!0);b.isEmptyObject(l)&&te.remove(e,"handle events")}},dispatch:function(e){var t,n,r,a,o,i,s=new Array(arguments.length),l=b.event.fix(e),u=(te.get(this,"events")||Object.create(null))[l.type]||[],d=b.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,l)){i=b.event.handlers.call(this,l,u),t=0;while((a=i[t++])&&!l.isPropagationStopped()){l.currentTarget=a.elem,n=0;while((o=a.handlers[n++])&&!l.isImmediatePropagationStopped())l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,r=((b.event.special[o.origType]||{}).handle||o.handler).apply(a.elem,s),void 0!==r&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()))}return d.postDispatch&&d.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,a,o,i,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],i={},n=0;n<l;n++)r=t[n],a=r.selector+" ",void 0===i[a]&&(i[a]=r.needsContext?b(a,this).index(u)>-1:b.find(a,this,null,[u]).length),i[a]&&o.push(r);o.length&&s.push({elem:u,handlers:o})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(b.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[b.expando]?e:new b.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ge.test(t.type)&&t.click&&E(t,"input")&&Ce(t,"click",Te),!1},trigger:function(e){var t=this||e;return ge.test(t.type)&&t.click&&E(t,"input")&&Ce(t,"click"),!0},_default:function(e){var t=e.target;return ge.test(t.type)&&t.click&&E(t,"input")&&te.get(t,"click")||E(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},b.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},b.Event=function(e,t){if(!(this instanceof b.Event))return new b.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Te:Se,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&b.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[b.expando]=!0},b.Event.prototype={constructor:b.Event,isDefaultPrevented:Se,isPropagationStopped:Se,isImmediatePropagationStopped:Se,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Te,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Te,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Te,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},b.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},b.event.addProp),b.each({focus:"focusin",blur:"focusout"},(function(e,t){b.event.special[e]={setup:function(){return Ce(this,e,Ae),!1},trigger:function(){return Ce(this,e),!0},_default:function(){return!0},delegateType:t}})),b.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,a=e.relatedTarget,o=e.handleObj;return a&&(a===r||b.contains(r,a))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),b.fn.extend({on:function(e,t,n,r){return Ee(this,e,t,n,r)},one:function(e,t,n,r){return Ee(this,e,t,n,r,1)},off:function(e,t,n){var r,a;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,b(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"===typeof e){for(a in e)this.off(a,t,e[a]);return this}return!1!==t&&"function"!==typeof t||(n=t,t=void 0),!1===n&&(n=Se),this.each((function(){b.event.remove(this,e,n,t)}))}});var je=/<script|<style|<link/i,Oe=/checked\s*(?:[^=]|=\s*.checked.)/i,He=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ne(e,t){return E(e,"table")&&E(11!==t.nodeType?t:t.firstChild,"tr")&&b(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ie(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Re(e,t){var n,r,a,o,i,s,l;if(1===t.nodeType){if(te.hasData(e)&&(o=te.get(e),l=o.events,l))for(a in te.remove(t,"handle events"),l)for(n=0,r=l[a].length;n<r;n++)b.event.add(t,a,l[a][n]);ne.hasData(e)&&(i=ne.access(e),s=b.extend({},i),ne.set(t,s))}}function Fe(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ge.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Be(e,t,n,r){t=u(t);var a,o,i,s,l,d,c=0,m=e.length,h=m-1,f=t[0],_=g(f);if(_||m>1&&"string"===typeof f&&!y.checkClone&&Oe.test(f))return e.each((function(a){var o=e.eq(a);_&&(t[0]=f.call(this,a,o.html())),Be(o,t,n,r)}));if(m&&(a=be(t,e[0].ownerDocument,!1,e,r),o=a.firstChild,1===a.childNodes.length&&(a=o),o||r)){for(i=b.map(we(a,"script"),Pe),s=i.length;c<m;c++)l=a,c!==h&&(l=b.clone(l,!0,!0),s&&b.merge(i,we(l,"script"))),n.call(e[c],l,c);if(s)for(d=i[i.length-1].ownerDocument,b.map(i,Ie),c=0;c<s;c++)l=i[c],ve.test(l.type||"")&&!te.access(l,"globalEval")&&b.contains(d,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?b._evalUrl&&!l.noModule&&b._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},d):w(l.textContent.replace(He,""),l,d))}return e}function We(e,t,n){for(var r,a=t?b.filter(t,e):e,o=0;null!=(r=a[o]);o++)n||1!==r.nodeType||b.cleanData(we(r)),r.parentNode&&(n&&ce(r)&&ke(we(r,"script")),r.parentNode.removeChild(r));return e}b.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,a,o,i,s=e.cloneNode(!0),l=ce(e);if(!y.noCloneChecked&&(1===e.nodeType||11===e.nodeType)&&!b.isXMLDoc(e))for(i=we(s),o=we(e),r=0,a=o.length;r<a;r++)Fe(o[r],i[r]);if(t)if(n)for(o=o||we(e),i=i||we(s),r=0,a=o.length;r<a;r++)Re(o[r],i[r]);else Re(e,s);return i=we(s,"script"),i.length>0&&ke(i,!l&&we(e,"script")),s},cleanData:function(e){for(var t,n,r,a=b.event.special,o=0;void 0!==(n=e[o]);o++)if(Q(n)){if(t=n[te.expando]){if(t.events)for(r in t.events)a[r]?b.event.remove(n,r):b.removeEvent(n,r,t.handle);n[te.expando]=void 0}n[ne.expando]&&(n[ne.expando]=void 0)}}}),b.fn.extend({detach:function(e){return We(this,e,!0)},remove:function(e){return We(this,e)},text:function(e){return G(this,(function(e){return void 0===e?b.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Be(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ne(this,e);t.appendChild(e)}}))},prepend:function(){return Be(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ne(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Be(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Be(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(b.cleanData(we(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return b.clone(this,e,t)}))},html:function(e){return G(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"===typeof e&&!je.test(e)&&!Le[(Me.exec(e)||["",""])[1].toLowerCase()]){e=b.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(b.cleanData(we(t,!1)),t.innerHTML=e);t=0}catch(a){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Be(this,arguments,(function(t){var n=this.parentNode;b.inArray(this,e)<0&&(b.cleanData(we(this)),n&&n.replaceChild(t,this))}),e)}}),b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){b.fn[e]=function(e){for(var n,r=[],a=b(e),o=a.length-1,i=0;i<=o;i++)n=i===o?this:this.clone(!0),b(a[i])[t](n),d.apply(r,n.get());return this.pushStack(r)}}));var Ve=new RegExp("^("+se+")(?!px)[a-z%]+$","i"),ze=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=a),t.getComputedStyle(e)},Ue=function(e,t,n){var r,a,o={};for(a in t)o[a]=e.style[a],e.style[a]=t[a];for(a in r=n.call(e),t)e.style[a]=o[a];return r},qe=new RegExp(ue.join("|"),"i");function Je(e,t,n){var r,a,o,i,s=e.style;return n=n||ze(e),n&&(i=n.getPropertyValue(t)||n[t],""!==i||ce(e)||(i=b.style(e,t)),!y.pixelBoxStyles()&&Ve.test(i)&&qe.test(t)&&(r=s.width,a=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=i,i=n.width,s.width=r,s.minWidth=a,s.maxWidth=o)),void 0!==i?i+"":i}function Ge(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}(function(){function e(){if(d){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",d.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",de.appendChild(u).appendChild(d);var e=a.getComputedStyle(d);n="1%"!==e.top,l=12===t(e.marginLeft),d.style.right="60%",i=36===t(e.right),r=36===t(e.width),d.style.position="absolute",o=12===t(d.offsetWidth/3),de.removeChild(u),d=null}}function t(e){return Math.round(parseFloat(e))}var n,r,o,i,s,l,u=v.createElement("div"),d=v.createElement("div");d.style&&(d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===d.style.backgroundClip,b.extend(y,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),i},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,r;return null==s&&(e=v.createElement("table"),t=v.createElement("tr"),n=v.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",de.appendChild(e).appendChild(t).appendChild(n),r=a.getComputedStyle(t),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,de.removeChild(e)),s}}))})();var $e=["Webkit","Moz","ms"],Ke=v.createElement("div").style,Ze={};function Xe(e){var t=e[0].toUpperCase()+e.slice(1),n=$e.length;while(n--)if(e=$e[n]+t,e in Ke)return e}function Qe(e){var t=b.cssProps[e]||Ze[e];return t||(e in Ke?e:Ze[e]=Xe(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt=/^--/,nt={position:"absolute",visibility:"hidden",display:"block"},rt={letterSpacing:"0",fontWeight:"400"};function at(e,t,n){var r=le.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function ot(e,t,n,r,a,o){var i="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;i<4;i+=2)"margin"===n&&(l+=b.css(e,n+ue[i],!0,a)),r?("content"===n&&(l-=b.css(e,"padding"+ue[i],!0,a)),"margin"!==n&&(l-=b.css(e,"border"+ue[i]+"Width",!0,a))):(l+=b.css(e,"padding"+ue[i],!0,a),"padding"!==n?l+=b.css(e,"border"+ue[i]+"Width",!0,a):s+=b.css(e,"border"+ue[i]+"Width",!0,a));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l}function it(e,t,n){var r=ze(e),a=!y.boxSizingReliable()||n,o=a&&"border-box"===b.css(e,"boxSizing",!1,r),i=o,s=Je(e,t,r),l="offset"+t[0].toUpperCase()+t.slice(1);if(Ve.test(s)){if(!n)return s;s="auto"}return(!y.boxSizingReliable()&&o||!y.reliableTrDimensions()&&E(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===b.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===b.css(e,"boxSizing",!1,r),i=l in e,i&&(s=e[l])),s=parseFloat(s)||0,s+ot(e,t,n||(o?"border":"content"),i,r,s)+"px"}function st(e,t,n,r,a){return new st.prototype.init(e,t,n,r,a)}b.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Je(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,o,i,s=X(t),l=tt.test(t),u=e.style;if(l||(t=Qe(s)),i=b.cssHooks[t]||b.cssHooks[s],void 0===n)return i&&"get"in i&&void 0!==(a=i.get(e,!1,r))?a:u[t];o=typeof n,"string"===o&&(a=le.exec(n))&&a[1]&&(n=fe(e,t,a),o="number"),null!=n&&n===n&&("number"!==o||l||(n+=a&&a[3]||(b.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),i&&"set"in i&&void 0===(n=i.set(e,n,r))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var a,o,i,s=X(t),l=tt.test(t);return l||(t=Qe(s)),i=b.cssHooks[t]||b.cssHooks[s],i&&"get"in i&&(a=i.get(e,!0,n)),void 0===a&&(a=Je(e,t,r)),"normal"===a&&t in rt&&(a=rt[t]),""===n||n?(o=parseFloat(a),!0===n||isFinite(o)?o||0:a):a}}),b.each(["height","width"],(function(e,t){b.cssHooks[t]={get:function(e,n,r){if(n)return!et.test(b.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?it(e,t,r):Ue(e,nt,(function(){return it(e,t,r)}))},set:function(e,n,r){var a,o=ze(e),i=!y.scrollboxSize()&&"absolute"===o.position,s=i||r,l=s&&"border-box"===b.css(e,"boxSizing",!1,o),u=r?ot(e,t,r,l,o):0;return l&&i&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-ot(e,t,"border",!1,o)-.5)),u&&(a=le.exec(n))&&"px"!==(a[3]||"px")&&(e.style[t]=n,n=b.css(e,t)),at(e,n,u)}}})),b.cssHooks.marginLeft=Ge(y.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Je(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),b.each({margin:"",padding:"",border:"Width"},(function(e,t){b.cssHooks[e+t]={expand:function(n){for(var r=0,a={},o="string"===typeof n?n.split(" "):[n];r<4;r++)a[e+ue[r]+t]=o[r]||o[r-2]||o[0];return a}},"margin"!==e&&(b.cssHooks[e+t].set=at)})),b.fn.extend({css:function(e,t){return G(this,(function(e,t,n){var r,a,o={},i=0;if(Array.isArray(t)){for(r=ze(e),a=t.length;i<a;i++)o[t[i]]=b.css(e,t[i],!1,r);return o}return void 0!==n?b.style(e,t,n):b.css(e,t)}),e,t,arguments.length>1)}}),b.Tween=st,st.prototype={constructor:st,init:function(e,t,n,r,a,o){this.elem=e,this.prop=n,this.easing=a||b.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(b.cssNumber[n]?"":"px")},cur:function(){var e=st.propHooks[this.prop];return e&&e.get?e.get(this):st.propHooks._default.get(this)},run:function(e){var t,n=st.propHooks[this.prop];return this.options.duration?this.pos=t=b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):st.propHooks._default.set(this),this}},st.prototype.init.prototype=st.prototype,st.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=b.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):1!==e.elem.nodeType||!b.cssHooks[e.prop]&&null==e.elem.style[Qe(e.prop)]?e.elem[e.prop]=e.now:b.style(e.elem,e.prop,e.now+e.unit)}}},st.propHooks.scrollTop=st.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},b.fx=st.prototype.init,b.fx.step={};var lt,ut,dt=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function mt(){ut&&(!1===v.hidden&&a.requestAnimationFrame?a.requestAnimationFrame(mt):a.setTimeout(mt,b.fx.interval),b.fx.tick())}function ht(){return a.setTimeout((function(){lt=void 0})),lt=Date.now()}function ft(e,t){var n,r=0,a={height:e};for(t=t?1:0;r<4;r+=2-t)n=ue[r],a["margin"+n]=a["padding"+n]=e;return t&&(a.opacity=a.width=e),a}function _t(e,t,n){for(var r,a=(gt.tweeners[t]||[]).concat(gt.tweeners["*"]),o=0,i=a.length;o<i;o++)if(r=a[o].call(n,t,e))return r}function pt(e,t,n){var r,a,o,i,s,l,u,d,c="width"in t||"height"in t,m=this,h={},f=e.style,_=e.nodeType&&he(e),p=te.get(e,"fxshow");for(r in n.queue||(i=b._queueHooks(e,"fx"),null==i.unqueued&&(i.unqueued=0,s=i.empty.fire,i.empty.fire=function(){i.unqueued||s()}),i.unqueued++,m.always((function(){m.always((function(){i.unqueued--,b.queue(e,"fx").length||i.empty.fire()}))}))),t)if(a=t[r],dt.test(a)){if(delete t[r],o=o||"toggle"===a,a===(_?"hide":"show")){if("show"!==a||!p||void 0===p[r])continue;_=!0}h[r]=p&&p[r]||b.style(e,r)}if(l=!b.isEmptyObject(t),l||!b.isEmptyObject(h))for(r in c&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],u=p&&p.display,null==u&&(u=te.get(e,"display")),d=b.css(e,"display"),"none"===d&&(u?d=u:(ye([e],!0),u=e.style.display||u,d=b.css(e,"display"),ye([e]))),("inline"===d||"inline-block"===d&&null!=u)&&"none"===b.css(e,"float")&&(l||(m.done((function(){f.display=u})),null==u&&(d=f.display,u="none"===d?"":d)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",m.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,h)l||(p?"hidden"in p&&(_=p.hidden):p=te.access(e,"fxshow",{display:u}),o&&(p.hidden=!_),_&&ye([e],!0),m.done((function(){for(r in _||ye([e]),te.remove(e,"fxshow"),h)b.style(e,r,h[r])}))),l=_t(_?p[r]:0,r,m),r in p||(p[r]=l.start,_&&(l.end=l.start,l.start=0))}function yt(e,t){var n,r,a,o,i;for(n in e)if(r=X(n),a=t[r],o=e[n],Array.isArray(o)&&(a=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),i=b.cssHooks[r],i&&"expand"in i)for(n in o=i.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=a);else t[r]=a}function gt(e,t,n){var r,a,o=0,i=gt.prefilters.length,s=b.Deferred().always((function(){delete l.elem})),l=function(){if(a)return!1;for(var t=lt||ht(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,o=1-r,i=0,l=u.tweens.length;i<l;i++)u.tweens[i].run(o);return s.notifyWith(e,[u,o,n]),o<1&&l?n:(l||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{},easing:b.easing._default},n),originalProperties:t,originalOptions:n,startTime:lt||ht(),duration:n.duration,tweens:[],createTween:function(t,n){var r=b.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(a)return this;for(a=!0;n<r;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),d=u.props;for(yt(d,u.opts.specialEasing);o<i;o++)if(r=gt.prefilters[o].call(u,e,d,u.opts),r)return g(r.stop)&&(b._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return b.map(d,_t,u),g(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),b.fx.timer(b.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}b.Animation=b.extend(gt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return fe(n.elem,e,le.exec(t),n),n}]},tweener:function(e,t){g(e)?(t=e,e=["*"]):e=e.match(F);for(var n,r=0,a=e.length;r<a;r++)n=e[r],gt.tweeners[n]=gt.tweeners[n]||[],gt.tweeners[n].unshift(t)},prefilters:[pt],prefilter:function(e,t){t?gt.prefilters.unshift(e):gt.prefilters.push(e)}}),b.speed=function(e,t,n){var r=e&&"object"===typeof e?b.extend({},e):{complete:n||!n&&t||g(e)&&e,duration:e,easing:n&&t||t&&!g(t)&&t};return b.fx.off?r.duration=0:"number"!==typeof r.duration&&(r.duration in b.fx.speeds?r.duration=b.fx.speeds[r.duration]:r.duration=b.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){g(r.old)&&r.old.call(this),r.queue&&b.dequeue(this,r.queue)},r},b.fn.extend({fadeTo:function(e,t,n,r){return this.filter(he).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var a=b.isEmptyObject(e),o=b.speed(t,n,r),i=function(){var t=gt(this,b.extend({},e),o);(a||te.get(this,"finish"))&&t.stop(!0)};return i.finish=i,a||!1===o.queue?this.each(i):this.queue(o.queue,i)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!==typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,a=null!=e&&e+"queueHooks",o=b.timers,i=te.get(this);if(a)i[a]&&i[a].stop&&r(i[a]);else for(a in i)i[a]&&i[a].stop&&ct.test(a)&&r(i[a]);for(a=o.length;a--;)o[a].elem!==this||null!=e&&o[a].queue!==e||(o[a].anim.stop(n),t=!1,o.splice(a,1));!t&&n||b.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=te.get(this),r=n[e+"queue"],a=n[e+"queueHooks"],o=b.timers,i=r?r.length:0;for(n.finish=!0,b.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<i;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),b.each(["toggle","show","hide"],(function(e,t){var n=b.fn[t];b.fn[t]=function(e,r,a){return null==e||"boolean"===typeof e?n.apply(this,arguments):this.animate(ft(t,!0),e,r,a)}})),b.each({slideDown:ft("show"),slideUp:ft("hide"),slideToggle:ft("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){b.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),b.timers=[],b.fx.tick=function(){var e,t=0,n=b.timers;for(lt=Date.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||b.fx.stop(),lt=void 0},b.fx.timer=function(e){b.timers.push(e),b.fx.start()},b.fx.interval=13,b.fx.start=function(){ut||(ut=!0,mt())},b.fx.stop=function(){ut=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fn.delay=function(e,t){return e=b.fx&&b.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var r=a.setTimeout(t,e);n.stop=function(){a.clearTimeout(r)}}))},function(){var e=v.createElement("input"),t=v.createElement("select"),n=t.appendChild(v.createElement("option"));e.type="checkbox",y.checkOn=""!==e.value,y.optSelected=n.selected,e=v.createElement("input"),e.value="t",e.type="radio",y.radioValue="t"===e.value}();var Mt,vt=b.expr.attrHandle;b.fn.extend({attr:function(e,t){return G(this,b.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){b.removeAttr(this,e)}))}}),b.extend({attr:function(e,t,n){var r,a,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"===typeof e.getAttribute?b.prop(e,t,n):(1===o&&b.isXMLDoc(e)||(a=b.attrHooks[t.toLowerCase()]||(b.expr.match.bool.test(t)?Mt:void 0)),void 0!==n?null===n?void b.removeAttr(e,t):a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:(e.setAttribute(t,n+""),n):a&&"get"in a&&null!==(r=a.get(e,t))?r:(r=b.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&E(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,a=t&&t.match(F);if(a&&1===e.nodeType)while(n=a[r++])e.removeAttribute(n)}}),Mt={set:function(e,t,n){return!1===t?b.removeAttr(e,n):e.setAttribute(n,n),n}},b.each(b.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=vt[t]||b.find.attr;vt[t]=function(e,t,r){var a,o,i=t.toLowerCase();return r||(o=vt[i],vt[i]=a,a=null!=n(e,t,r)?i:null,vt[i]=o),a}}));var Lt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function kt(e){var t=e.match(F)||[];return t.join(" ")}function Yt(e){return e.getAttribute&&e.getAttribute("class")||""}function bt(e){return Array.isArray(e)?e:"string"===typeof e&&e.match(F)||[]}b.fn.extend({prop:function(e,t){return G(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[b.propFix[e]||e]}))}}),b.extend({prop:function(e,t,n){var r,a,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&b.isXMLDoc(e)||(t=b.propFix[t]||t,a=b.propHooks[t]),void 0!==n?a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:e[t]=n:a&&"get"in a&&null!==(r=a.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=b.find.attr(e,"tabindex");return t?parseInt(t,10):Lt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(b.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),b.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){b.propFix[this.toLowerCase()]=this})),b.fn.extend({addClass:function(e){var t,n,r,a,o,i,s,l=0;if(g(e))return this.each((function(t){b(this).addClass(e.call(this,t,Yt(this)))}));if(t=bt(e),t.length)while(n=this[l++])if(a=Yt(n),r=1===n.nodeType&&" "+kt(a)+" ",r){i=0;while(o=t[i++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");s=kt(r),a!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,a,o,i,s,l=0;if(g(e))return this.each((function(t){b(this).removeClass(e.call(this,t,Yt(this)))}));if(!arguments.length)return this.attr("class","");if(t=bt(e),t.length)while(n=this[l++])if(a=Yt(n),r=1===n.nodeType&&" "+kt(a)+" ",r){i=0;while(o=t[i++])while(r.indexOf(" "+o+" ")>-1)r=r.replace(" "+o+" "," ");s=kt(r),a!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"===typeof t&&r?t?this.addClass(e):this.removeClass(e):g(e)?this.each((function(n){b(this).toggleClass(e.call(this,n,Yt(this),t),t)})):this.each((function(){var t,a,o,i;if(r){a=0,o=b(this),i=bt(e);while(t=i[a++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else void 0!==e&&"boolean"!==n||(t=Yt(this),t&&te.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":te.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&(" "+kt(Yt(n))+" ").indexOf(t)>-1)return!0;return!1}});var Dt=/\r/g;b.fn.extend({val:function(e){var t,n,r,a=this[0];return arguments.length?(r=g(e),this.each((function(n){var a;1===this.nodeType&&(a=r?e.call(this,n,b(this).val()):e,null==a?a="":"number"===typeof a?a+="":Array.isArray(a)&&(a=b.map(a,(function(e){return null==e?"":e+""}))),t=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))}))):a?(t=b.valHooks[a.type]||b.valHooks[a.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(a,"value"))?n:(n=a.value,"string"===typeof n?n.replace(Dt,""):null==n?"":n)):void 0}}),b.extend({valHooks:{option:{get:function(e){var t=b.find.attr(e,"value");return null!=t?t:kt(b.text(e))}},select:{get:function(e){var t,n,r,a=e.options,o=e.selectedIndex,i="select-one"===e.type,s=i?null:[],l=i?o+1:a.length;for(r=o<0?l:i?o:0;r<l;r++)if(n=a[r],(n.selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!E(n.parentNode,"optgroup"))){if(t=b(n).val(),i)return t;s.push(t)}return s},set:function(e,t){var n,r,a=e.options,o=b.makeArray(t),i=a.length;while(i--)r=a[i],(r.selected=b.inArray(b.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),b.each(["radio","checkbox"],(function(){b.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=b.inArray(b(e).val(),t)>-1}},y.checkOn||(b.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),y.focusin="onfocusin"in a;var Tt=/^(?:focusinfocus|focusoutblur)$/,St=function(e){e.stopPropagation()};b.extend(b.event,{trigger:function(e,t,n,r){var o,i,s,l,u,d,c,m,h=[n||v],_=f.call(e,"type")?e.type:e,p=f.call(e,"namespace")?e.namespace.split("."):[];if(i=m=s=n=n||v,3!==n.nodeType&&8!==n.nodeType&&!Tt.test(_+b.event.triggered)&&(_.indexOf(".")>-1&&(p=_.split("."),_=p.shift(),p.sort()),u=_.indexOf(":")<0&&"on"+_,e=e[b.expando]?e:new b.Event(_,"object"===typeof e&&e),e.isTrigger=r?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:b.makeArray(t,[e]),c=b.event.special[_]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!M(n)){for(l=c.delegateType||_,Tt.test(l+_)||(i=i.parentNode);i;i=i.parentNode)h.push(i),s=i;s===(n.ownerDocument||v)&&h.push(s.defaultView||s.parentWindow||a)}o=0;while((i=h[o++])&&!e.isPropagationStopped())m=i,e.type=o>1?l:c.bindType||_,d=(te.get(i,"events")||Object.create(null))[e.type]&&te.get(i,"handle"),d&&d.apply(i,t),d=u&&i[u],d&&d.apply&&Q(i)&&(e.result=d.apply(i,t),!1===e.result&&e.preventDefault());return e.type=_,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(h.pop(),t)||!Q(n)||u&&g(n[_])&&!M(n)&&(s=n[u],s&&(n[u]=null),b.event.triggered=_,e.isPropagationStopped()&&m.addEventListener(_,St),n[_](),e.isPropagationStopped()&&m.removeEventListener(_,St),b.event.triggered=void 0,s&&(n[u]=s)),e.result}},simulate:function(e,t,n){var r=b.extend(new b.Event,n,{type:e,isSimulated:!0});b.event.trigger(r,null,t)}}),b.fn.extend({trigger:function(e,t){return this.each((function(){b.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return b.event.trigger(e,t,n,!0)}}),y.focusin||b.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){b.event.simulate(t,e.target,b.event.fix(e))};b.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,a=te.access(r,t);a||r.addEventListener(e,n,!0),te.access(r,t,(a||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,a=te.access(r,t)-1;a?te.access(r,t,a):(r.removeEventListener(e,n,!0),te.remove(r,t))}}}));var At=a.location,xt={guid:Date.now()},Et=/\?/;b.parseXML=function(e){var t,n;if(!e||"string"!==typeof e)return null;try{t=(new a.DOMParser).parseFromString(e,"text/xml")}catch(r){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||b.error("Invalid XML: "+(n?b.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Ct=/\[\]$/,jt=/\r?\n/g,Ot=/^(?:submit|button|image|reset|file)$/i,Ht=/^(?:input|select|textarea|keygen)/i;function Nt(e,t,n,r){var a;if(Array.isArray(t))b.each(t,(function(t,a){n||Ct.test(e)?r(e,a):Nt(e+"["+("object"===typeof a&&null!=a?t:"")+"]",a,n,r)}));else if(n||"object"!==k(t))r(e,t);else for(a in t)Nt(e+"["+a+"]",t[a],n,r)}b.param=function(e,t){var n,r=[],a=function(e,t){var n=g(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!b.isPlainObject(e))b.each(e,(function(){a(this.name,this.value)}));else for(n in e)Nt(n,e[n],t,a);return r.join("&")},b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=b.prop(this,"elements");return e?b.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!b(this).is(":disabled")&&Ht.test(this.nodeName)&&!Ot.test(e)&&(this.checked||!ge.test(e))})).map((function(e,t){var n=b(this).val();return null==n?null:Array.isArray(n)?b.map(n,(function(e){return{name:t.name,value:e.replace(jt,"\r\n")}})):{name:t.name,value:n.replace(jt,"\r\n")}})).get()}});var Pt=/%20/g,It=/#.*$/,Rt=/([?&])_=[^&]*/,Ft=/^(.*?):[ \t]*([^\r\n]*)$/gm,Bt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Wt=/^(?:GET|HEAD)$/,Vt=/^\/\//,zt={},Ut={},qt="*/".concat("*"),Jt=v.createElement("a");function Gt(e){return function(t,n){"string"!==typeof t&&(n=t,t="*");var r,a=0,o=t.toLowerCase().match(F)||[];if(g(n))while(r=o[a++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function $t(e,t,n,r){var a={},o=e===Ut;function i(s){var l;return a[s]=!0,b.each(e[s]||[],(function(e,s){var u=s(t,n,r);return"string"!==typeof u||o||a[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),i(u),!1)})),l}return i(t.dataTypes[0])||!a["*"]&&i("*")}function Kt(e,t){var n,r,a=b.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((a[n]?e:r||(r={}))[n]=t[n]);return r&&b.extend(!0,e,r),e}function Zt(e,t,n){var r,a,o,i,s=e.contents,l=e.dataTypes;while("*"===l[0])l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(a in s)if(s[a]&&s[a].test(r)){l.unshift(a);break}if(l[0]in n)o=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){o=a;break}i||(i=a)}o=o||i}if(o)return o!==l[0]&&l.unshift(o),n[o]}function Xt(e,t,n,r){var a,o,i,s,l,u={},d=e.dataTypes.slice();if(d[1])for(i in e.converters)u[i.toLowerCase()]=e.converters[i];o=d.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=d.shift(),o)if("*"===o)o=l;else if("*"!==l&&l!==o){if(i=u[l+" "+o]||u["* "+o],!i)for(a in u)if(s=a.split(" "),s[1]===o&&(i=u[l+" "+s[0]]||u["* "+s[0]],i)){!0===i?i=u[a]:!0!==u[a]&&(o=s[0],d.unshift(s[1]));break}if(!0!==i)if(i&&e.throws)t=i(t);else try{t=i(t)}catch(c){return{state:"parsererror",error:i?c:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}Jt.href=At.href,b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:At.href,type:"GET",isLocal:Bt.test(At.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Kt(Kt(e,b.ajaxSettings),t):Kt(b.ajaxSettings,e)},ajaxPrefilter:Gt(zt),ajaxTransport:Gt(Ut),ajax:function(e,t){"object"===typeof e&&(t=e,e=void 0),t=t||{};var n,r,o,i,s,l,u,d,c,m,h=b.ajaxSetup({},t),f=h.context||h,_=h.context&&(f.nodeType||f.jquery)?b(f):b.event,p=b.Deferred(),y=b.Callbacks("once memory"),g=h.statusCode||{},M={},L={},w="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(u){if(!i){i={};while(t=Ft.exec(o))i[t[1].toLowerCase()+" "]=(i[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=i[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=L[e.toLowerCase()]=L[e.toLowerCase()]||e,M[e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)k.always(e[k.status]);else for(t in e)g[t]=[g[t],e[t]];return this},abort:function(e){var t=e||w;return n&&n.abort(t),Y(0,t),this}};if(p.promise(k),h.url=((e||h.url||At.href)+"").replace(Vt,At.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(F)||[""],null==h.crossDomain){l=v.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Jt.protocol+"//"+Jt.host!==l.protocol+"//"+l.host}catch(D){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!==typeof h.data&&(h.data=b.param(h.data,h.traditional)),$t(zt,h,t,k),u)return k;for(c in d=b.event&&h.global,d&&0===b.active++&&b.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Wt.test(h.type),r=h.url.replace(It,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Pt,"+")):(m=h.url.slice(r.length),h.data&&(h.processData||"string"===typeof h.data)&&(r+=(Et.test(r)?"&":"?")+h.data,delete h.data),!1===h.cache&&(r=r.replace(Rt,"$1"),m=(Et.test(r)?"&":"?")+"_="+xt.guid+++m),h.url=r+m),h.ifModified&&(b.lastModified[r]&&k.setRequestHeader("If-Modified-Since",b.lastModified[r]),b.etag[r]&&k.setRequestHeader("If-None-Match",b.etag[r])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&k.setRequestHeader("Content-Type",h.contentType),k.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+qt+"; q=0.01":""):h.accepts["*"]),h.headers)k.setRequestHeader(c,h.headers[c]);if(h.beforeSend&&(!1===h.beforeSend.call(f,k,h)||u))return k.abort();if(w="abort",y.add(h.complete),k.done(h.success),k.fail(h.error),n=$t(Ut,h,t,k),n){if(k.readyState=1,d&&_.trigger("ajaxSend",[k,h]),u)return k;h.async&&h.timeout>0&&(s=a.setTimeout((function(){k.abort("timeout")}),h.timeout));try{u=!1,n.send(M,Y)}catch(D){if(u)throw D;Y(-1,D)}}else Y(-1,"No Transport");function Y(e,t,i,l){var c,m,M,v,L,w=t;u||(u=!0,s&&a.clearTimeout(s),n=void 0,o=l||"",k.readyState=e>0?4:0,c=e>=200&&e<300||304===e,i&&(v=Zt(h,k,i)),!c&&b.inArray("script",h.dataTypes)>-1&&b.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),v=Xt(h,v,k,c),c?(h.ifModified&&(L=k.getResponseHeader("Last-Modified"),L&&(b.lastModified[r]=L),L=k.getResponseHeader("etag"),L&&(b.etag[r]=L)),204===e||"HEAD"===h.type?w="nocontent":304===e?w="notmodified":(w=v.state,m=v.data,M=v.error,c=!M)):(M=w,!e&&w||(w="error",e<0&&(e=0))),k.status=e,k.statusText=(t||w)+"",c?p.resolveWith(f,[m,w,k]):p.rejectWith(f,[k,w,M]),k.statusCode(g),g=void 0,d&&_.trigger(c?"ajaxSuccess":"ajaxError",[k,h,c?m:M]),y.fireWith(f,[k,w]),d&&(_.trigger("ajaxComplete",[k,h]),--b.active||b.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return b.get(e,t,n,"json")},getScript:function(e,t){return b.get(e,void 0,t,"script")}}),b.each(["get","post"],(function(e,t){b[t]=function(e,n,r,a){return g(n)&&(a=a||r,r=n,n=void 0),b.ajax(b.extend({url:e,type:t,dataType:a,data:n,success:r},b.isPlainObject(e)&&e))}})),b.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),b._evalUrl=function(e,t,n){return b.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){b.globalEval(e,t,n)}})},b.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=b(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return g(e)?this.each((function(t){b(this).wrapInner(e.call(this,t))})):this.each((function(){var t=b(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(n){b(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){b(this).replaceWith(this.childNodes)})),this}}),b.expr.pseudos.hidden=function(e){return!b.expr.pseudos.visible(e)},b.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},b.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(e){}};var Qt={0:200,1223:204},en=b.ajaxSettings.xhr();y.cors=!!en&&"withCredentials"in en,y.ajax=en=!!en,b.ajaxTransport((function(e){var t,n;if(y.cors||en&&!e.crossDomain)return{send:function(r,o){var i,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)s[i]=e.xhrFields[i];for(i in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(i,r[i]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!==typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Qt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!==typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&a.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(l){if(t)throw l}},abort:function(){t&&t()}}})),b.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),b.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,a){t=b("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&a("error"===e.type?404:200,e.type)}),v.head.appendChild(t[0])},abort:function(){n&&n()}}}));var tn=[],nn=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||b.expando+"_"+xt.guid++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",(function(e,t,n){var r,o,i,s=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"===typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=g(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(nn,"$1"+r):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return i||b.error(r+" was not called"),i[0]},e.dataTypes[0]="json",o=a[r],a[r]=function(){i=arguments},n.always((function(){void 0===o?b(a).removeProp(r):a[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,tn.push(r)),i&&g(o)&&o(i[0]),i=o=void 0})),"script"})),y.createHTMLDocument=function(){var e=v.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),b.parseHTML=function(e,t,n){return"string"!==typeof e?[]:("boolean"===typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?(t=v.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=v.location.href,t.head.appendChild(r)):t=v),a=C.exec(e),o=!n&&[],a?[t.createElement(a[1])]:(a=be([e],t,o),o&&o.length&&b(o).remove(),b.merge([],a.childNodes)));var r,a,o},b.fn.load=function(e,t,n){var r,a,o,i=this,s=e.indexOf(" ");return s>-1&&(r=kt(e.slice(s)),e=e.slice(0,s)),g(t)?(n=t,t=void 0):t&&"object"===typeof t&&(a="POST"),i.length>0&&b.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done((function(e){o=arguments,i.html(r?b("<div>").append(b.parseHTML(e)).find(r):e)})).always(n&&function(e,t){i.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},b.expr.pseudos.animated=function(e){return b.grep(b.timers,(function(t){return e===t.elem})).length},b.offset={setOffset:function(e,t,n){var r,a,o,i,s,l,u,d=b.css(e,"position"),c=b(e),m={};"static"===d&&(e.style.position="relative"),s=c.offset(),o=b.css(e,"top"),l=b.css(e,"left"),u=("absolute"===d||"fixed"===d)&&(o+l).indexOf("auto")>-1,u?(r=c.position(),i=r.top,a=r.left):(i=parseFloat(o)||0,a=parseFloat(l)||0),g(t)&&(t=t.call(e,n,b.extend({},s))),null!=t.top&&(m.top=t.top-s.top+i),null!=t.left&&(m.left=t.left-s.left+a),"using"in t?t.using.call(e,m):c.css(m)}},b.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){b.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],a={top:0,left:0};if("fixed"===b.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===b.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&(a=b(e).offset(),a.top+=b.css(e,"borderTopWidth",!0),a.left+=b.css(e,"borderLeftWidth",!0))}return{top:t.top-a.top-b.css(r,"marginTop",!0),left:t.left-a.left-b.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){var e=this.offsetParent;while(e&&"static"===b.css(e,"position"))e=e.offsetParent;return e||de}))}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;b.fn[e]=function(r){return G(this,(function(e,r,a){var o;if(M(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===a)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:a,n?a:o.pageYOffset):e[r]=a}),e,r,arguments.length)}})),b.each(["top","left"],(function(e,t){b.cssHooks[t]=Ge(y.pixelPosition,(function(e,n){if(n)return n=Je(e,t),Ve.test(n)?b(e).position()[t]+"px":n}))})),b.each({Height:"height",Width:"width"},(function(e,t){b.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){b.fn[r]=function(a,o){var i=arguments.length&&(n||"boolean"!==typeof a),s=n||(!0===a||!0===o?"margin":"border");return G(this,(function(t,n,a){var o;return M(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===a?b.css(t,n,s):b.style(t,n,a,s)}),t,i?a:void 0,i)}}))})),b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){b.fn[t]=function(e){return this.on(t,e)}})),b.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),b.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){b.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var rn=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;b.proxy=function(e,t){var n,r,a;if("string"===typeof t&&(n=e[t],t=e,e=n),g(e))return r=l.call(arguments,2),a=function(){return e.apply(t||this,r.concat(l.call(arguments)))},a.guid=e.guid=e.guid||b.guid++,a},b.holdReady=function(e){e?b.readyWait++:b.ready(!0)},b.isArray=Array.isArray,b.parseJSON=JSON.parse,b.nodeName=E,b.isFunction=g,b.isWindow=M,b.camelCase=X,b.type=k,b.now=Date.now,b.isNumeric=function(e){var t=b.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},b.trim=function(e){return null==e?"":(e+"").replace(rn,"")},n=[],r=function(){return b}.apply(t,n),void 0===r||(e.exports=r);var an=a.jQuery,on=a.$;return b.noConflict=function(e){return a.$===b&&(a.$=on),e&&a.jQuery===b&&(a.jQuery=an),b},"undefined"===typeof o&&(a.jQuery=a.$=b),b}))},2786:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
|
|
25
|
+
function(e){var t,n,r,a,o,i,s,l,u,d,c,m,h,f,_,p,y,g,M,v="sizzle"+1*new Date,L=e.document,w=0,k=0,Y=le(),b=le(),D=le(),T=le(),S=function(e,t){return e===t&&(c=!0),0},A={}.hasOwnProperty,x=[],C=x.pop,E=x.push,j=x.push,O=x.slice,H=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\["+P+"*("+I+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+P+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",B=new RegExp(P+"+","g"),W=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),V=new RegExp("^"+P+"*,"+P+"*"),z=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),U=new RegExp(P+"|>"),q=new RegExp(F),J=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},$=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ae=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){m()},ie=ve((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{j.apply(x=O.call(L.childNodes),L.childNodes),x[L.childNodes.length].nodeType}catch(Te){j={apply:x.length?function(e,t){E.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(e,t,r,a){var o,s,u,d,c,f,y,g=t&&t.ownerDocument,L=t?t.nodeType:9;if(r=r||[],"string"!==typeof e||!e||1!==L&&9!==L&&11!==L)return r;if(!a&&(m(t),t=t||h,_)){if(11!==L&&(c=Q.exec(e)))if(o=c[1]){if(9===L){if(!(u=t.getElementById(o)))return r;if(u.id===o)return r.push(u),r}else if(g&&(u=g.getElementById(o))&&M(t,u)&&u.id===o)return r.push(u),r}else{if(c[2])return j.apply(r,t.getElementsByTagName(e)),r;if((o=c[3])&&n.getElementsByClassName&&t.getElementsByClassName)return j.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!T[e+" "]&&(!p||!p.test(e))&&(1!==L||"object"!==t.nodeName.toLowerCase())){if(y=e,g=t,1===L&&(U.test(e)||z.test(e))){g=ee.test(e)&&ye(t.parentNode)||t,g===t&&n.scope||((d=t.getAttribute("id"))?d=d.replace(re,ae):t.setAttribute("id",d=v)),f=i(e),s=f.length;while(s--)f[s]=(d?"#"+d:":scope")+" "+Me(f[s]);y=f.join(",")}try{return j.apply(r,g.querySelectorAll(y)),r}catch(w){T(e,!0)}finally{d===v&&t.removeAttribute("id")}}}return l(e.replace(W,"$1"),t,r,a)}function le(){var e=[];function t(n,a){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=a}return t}function ue(e){return e[v]=!0,e}function de(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(Te){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){var n=e.split("|"),a=n.length;while(a--)r.attrHandle[n[a]]=t}function me(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function he(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function _e(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function pe(e){return ue((function(t){return t=+t,ue((function(n,r){var a,o=e([],n.length,t),i=o.length;while(i--)n[a=o[i]]&&(n[a]=!(r[a]=n[a]))}))}))}function ye(e){return e&&"undefined"!==typeof e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!$.test(t||n&&n.nodeName||"HTML")},m=se.setDocument=function(e){var t,a,i=e?e.ownerDocument||e:L;return i!=h&&9===i.nodeType&&i.documentElement?(h=i,f=h.documentElement,_=!o(h),L!=h&&(a=h.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",oe,!1):a.attachEvent&&a.attachEvent("onunload",oe)),n.scope=de((function(e){return f.appendChild(e).appendChild(h.createElement("div")),"undefined"!==typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=de((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=de((function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=X.test(h.getElementsByClassName),n.getById=de((function(e){return f.appendChild(e).id=v,!h.getElementsByName||!h.getElementsByName(v).length})),n.getById?(r.filter["ID"]=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find["ID"]=function(e,t){if("undefined"!==typeof t.getElementById&&_){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter["ID"]=function(e){var t=e.replace(te,ne);return function(e){var n="undefined"!==typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find["ID"]=function(e,t){if("undefined"!==typeof t.getElementById&&_){var n,r,a,o=t.getElementById(e);if(o){if(n=o.getAttributeNode("id"),n&&n.value===e)return[o];a=t.getElementsByName(e),r=0;while(o=a[r++])if(n=o.getAttributeNode("id"),n&&n.value===e)return[o]}return[]}}),r.find["TAG"]=n.getElementsByTagName?function(e,t){return"undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],a=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[a++])1===n.nodeType&&r.push(n);return r}return o},r.find["CLASS"]=n.getElementsByClassName&&function(e,t){if("undefined"!==typeof t.getElementsByClassName&&_)return t.getElementsByClassName(e)},y=[],p=[],(n.qsa=X.test(h.querySelectorAll))&&(de((function(e){var t;f.appendChild(e).innerHTML="<a id='"+v+"'></a><select id='"+v+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&p.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||p.push("\\["+P+"*(?:value|"+N+")"),e.querySelectorAll("[id~="+v+"-]").length||p.push("~="),t=h.createElement("input"),t.setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||p.push("\\["+P+"*name"+P+"*="+P+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||p.push(":checked"),e.querySelectorAll("a#"+v+"+*").length||p.push(".#.+[+~]"),e.querySelectorAll("\\\f"),p.push("[\\r\\n\\f]")})),de((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&p.push("name"+P+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&p.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),p.push(",.*:")}))),(n.matchesSelector=X.test(g=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&de((function(e){n.disconnectedMatch=g.call(e,"*"),g.call(e,"[s!='']:x"),y.push("!=",F)})),p=p.length&&new RegExp(p.join("|")),y=y.length&&new RegExp(y.join("|")),t=X.test(f.compareDocumentPosition),M=t||X.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},S=t?function(e,t){if(e===t)return c=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==h||e.ownerDocument==L&&M(L,e)?-1:t==h||t.ownerDocument==L&&M(L,t)?1:d?H(d,e)-H(d,t):0:4&r?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,r=0,a=e.parentNode,o=t.parentNode,i=[e],s=[t];if(!a||!o)return e==h?-1:t==h?1:a?-1:o?1:d?H(d,e)-H(d,t):0;if(a===o)return me(e,t);n=e;while(n=n.parentNode)i.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(i[r]===s[r])r++;return r?me(i[r],s[r]):i[r]==L?-1:s[r]==L?1:0},h):h},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(m(e),n.matchesSelector&&_&&!T[t+" "]&&(!y||!y.test(t))&&(!p||!p.test(t)))try{var r=g.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(Te){T(t,!0)}return se(t,h,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=h&&m(e),M(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=h&&m(e);var a=r.attrHandle[t.toLowerCase()],o=a&&A.call(r.attrHandle,t.toLowerCase())?a(e,t,!_):void 0;return void 0!==o?o:n.attributes||!_?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ae)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],a=0,o=0;if(c=!n.detectDuplicates,d=!n.sortStable&&e.slice(0),e.sort(S),c){while(t=e[o++])t===e[o]&&(a=r.push(o));while(a--)e.splice(r[a],1)}return d=null,e},a=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"===typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===o||4===o)return e.nodeValue}else while(t=e[r++])n+=a(t);return n},r=se.selectors={cacheLength:50,createPseudo:ue,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G["CHILD"].test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&q.test(n)&&(t=i(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Y[e+" "];return t||(t=new RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&Y(e,(function(e){return t.test("string"===typeof e.className&&e.className||"undefined"!==typeof e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var a=se.attr(r,e);return null==a?"!="===t:!t||(a+="","="===t?a===n:"!="===t?a!==n:"^="===t?n&&0===a.indexOf(n):"*="===t?n&&a.indexOf(n)>-1:"$="===t?n&&a.slice(-n.length)===n:"~="===t?(" "+a.replace(B," ")+" ").indexOf(n)>-1:"|="===t&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,a){var o="nth"!==e.slice(0,3),i="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===a?function(e){return!!e.parentNode}:function(t,n,l){var u,d,c,m,h,f,_=o!==i?"nextSibling":"previousSibling",p=t.parentNode,y=s&&t.nodeName.toLowerCase(),g=!l&&!s,M=!1;if(p){if(o){while(_){m=t;while(m=m[_])if(s?m.nodeName.toLowerCase()===y:1===m.nodeType)return!1;f=_="only"===e&&!f&&"nextSibling"}return!0}if(f=[i?p.firstChild:p.lastChild],i&&g){m=p,c=m[v]||(m[v]={}),d=c[m.uniqueID]||(c[m.uniqueID]={}),u=d[e]||[],h=u[0]===w&&u[1],M=h&&u[2],m=h&&p.childNodes[h];while(m=++h&&m&&m[_]||(M=h=0)||f.pop())if(1===m.nodeType&&++M&&m===t){d[e]=[w,h,M];break}}else if(g&&(m=t,c=m[v]||(m[v]={}),d=c[m.uniqueID]||(c[m.uniqueID]={}),u=d[e]||[],h=u[0]===w&&u[1],M=h),!1===M)while(m=++h&&m&&m[_]||(M=h=0)||f.pop())if((s?m.nodeName.toLowerCase()===y:1===m.nodeType)&&++M&&(g&&(c=m[v]||(m[v]={}),d=c[m.uniqueID]||(c[m.uniqueID]={}),d[e]=[w,M]),m===t))break;return M-=a,M===r||M%r===0&&M/r>=0}}},PSEUDO:function(e,t){var n,a=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[v]?a(t):a.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ue((function(e,n){var r,o=a(e,t),i=o.length;while(i--)r=H(e,o[i]),e[r]=!(n[r]=o[i])})):function(e){return a(e,0,n)}):a}},pseudos:{not:ue((function(e){var t=[],n=[],r=s(e.replace(W,"$1"));return r[v]?ue((function(e,t,n,a){var o,i=r(e,null,a,[]),s=e.length;while(s--)(o=i[s])&&(e[s]=!(t[s]=o))})):function(e,a,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:ue((function(e){return function(t){return se(e,t).length>0}})),contains:ue((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||a(t)).indexOf(e)>-1}})),lang:ue((function(e){return J.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=_?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:_e(!1),disabled:_e(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos["empty"](e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:pe((function(){return[0]})),last:pe((function(e,t){return[t-1]})),eq:pe((function(e,t,n){return[n<0?n+t:n]})),even:pe((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:pe((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:pe((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:pe((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},r.pseudos["nth"]=r.pseudos["eq"],{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=he(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=fe(t);function ge(){}function Me(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ve(e,t,n){var r=t.dir,a=t.next,o=a||r,i=n&&"parentNode"===o,s=k++;return t.first?function(t,n,a){while(t=t[r])if(1===t.nodeType||i)return e(t,n,a);return!1}:function(t,n,l){var u,d,c,m=[w,s];if(l){while(t=t[r])if((1===t.nodeType||i)&&e(t,n,l))return!0}else while(t=t[r])if(1===t.nodeType||i)if(c=t[v]||(t[v]={}),d=c[t.uniqueID]||(c[t.uniqueID]={}),a&&a===t.nodeName.toLowerCase())t=t[r]||t;else{if((u=d[o])&&u[0]===w&&u[1]===s)return m[2]=u[2];if(d[o]=m,m[2]=e(t,n,l))return!0}return!1}}function Le(e){return e.length>1?function(t,n,r){var a=e.length;while(a--)if(!e[a](t,n,r))return!1;return!0}:e[0]}function we(e,t,n){for(var r=0,a=t.length;r<a;r++)se(e,t[r],n);return n}function ke(e,t,n,r,a){for(var o,i=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,a)||(i.push(o),u&&t.push(s)));return i}function Ye(e,t,n,r,a,o){return r&&!r[v]&&(r=Ye(r)),a&&!a[v]&&(a=Ye(a,o)),ue((function(o,i,s,l){var u,d,c,m=[],h=[],f=i.length,_=o||we(t||"*",s.nodeType?[s]:s,[]),p=!e||!o&&t?_:ke(_,m,e,s,l),y=n?a||(o?e:f||r)?[]:i:p;if(n&&n(p,y,s,l),r){u=ke(y,h),r(u,[],s,l),d=u.length;while(d--)(c=u[d])&&(y[h[d]]=!(p[h[d]]=c))}if(o){if(a||e){if(a){u=[],d=y.length;while(d--)(c=y[d])&&u.push(p[d]=c);a(null,y=[],u,l)}d=y.length;while(d--)(c=y[d])&&(u=a?H(o,c):m[d])>-1&&(o[u]=!(i[u]=c))}}else y=ke(y===i?y.splice(f,y.length):y),a?a(null,i,y,l):j.apply(i,y)}))}function be(e){for(var t,n,a,o=e.length,i=r.relative[e[0].type],s=i||r.relative[" "],l=i?1:0,d=ve((function(e){return e===t}),s,!0),c=ve((function(e){return H(t,e)>-1}),s,!0),m=[function(e,n,r){var a=!i&&(r||n!==u)||((t=n).nodeType?d(e,n,r):c(e,n,r));return t=null,a}];l<o;l++)if(n=r.relative[e[l].type])m=[ve(Le(m),n)];else{if(n=r.filter[e[l].type].apply(null,e[l].matches),n[v]){for(a=++l;a<o;a++)if(r.relative[e[a].type])break;return Ye(l>1&&Le(m),l>1&&Me(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(W,"$1"),n,l<a&&be(e.slice(l,a)),a<o&&be(e=e.slice(a)),a<o&&Me(e))}m.push(n)}return Le(m)}function De(e,t){var n=t.length>0,a=e.length>0,o=function(o,i,s,l,d){var c,f,p,y=0,g="0",M=o&&[],v=[],L=u,k=o||a&&r.find["TAG"]("*",d),Y=w+=null==L?1:Math.random()||.1,b=k.length;for(d&&(u=i==h||i||d);g!==b&&null!=(c=k[g]);g++){if(a&&c){f=0,i||c.ownerDocument==h||(m(c),s=!_);while(p=e[f++])if(p(c,i||h,s)){l.push(c);break}d&&(w=Y)}n&&((c=!p&&c)&&y--,o&&M.push(c))}if(y+=g,n&&g!==y){f=0;while(p=t[f++])p(M,v,i,s);if(o){if(y>0)while(g--)M[g]||v[g]||(v[g]=C.call(l));v=ke(v)}j.apply(l,v),d&&!o&&v.length>0&&y+t.length>1&&se.uniqueSort(l)}return d&&(w=Y,u=L),M};return n?ue(o):o}return ge.prototype=r.filters=r.pseudos,r.setFilters=new ge,i=se.tokenize=function(e,t){var n,a,o,i,s,l,u,d=b[e+" "];if(d)return t?0:d.slice(0);s=e,l=[],u=r.preFilter;while(s){for(i in n&&!(a=V.exec(s))||(a&&(s=s.slice(a[0].length)||s),l.push(o=[])),n=!1,(a=z.exec(s))&&(n=a.shift(),o.push({value:n,type:a[0].replace(W," ")}),s=s.slice(n.length)),r.filter)!(a=G[i].exec(s))||u[i]&&!(a=u[i](a))||(n=a.shift(),o.push({value:n,type:i,matches:a}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):b(e,l).slice(0)},s=se.compile=function(e,t){var n,r=[],a=[],o=D[e+" "];if(!o){t||(t=i(e)),n=t.length;while(n--)o=be(t[n]),o[v]?r.push(o):a.push(o);o=D(e,De(a,r)),o.selector=e}return o},l=se.select=function(e,t,n,a){var o,l,u,d,c,m="function"===typeof e&&e,h=!a&&i(e=m.selector||e);if(n=n||[],1===h.length){if(l=h[0]=h[0].slice(0),l.length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&_&&r.relative[l[1].type]){if(t=(r.find["ID"](u.matches[0].replace(te,ne),t)||[])[0],!t)return n;m&&(t=t.parentNode),e=e.slice(l.shift().value.length)}o=G["needsContext"].test(e)?0:l.length;while(o--){if(u=l[o],r.relative[d=u.type])break;if((c=r.find[d])&&(a=c(u.matches[0].replace(te,ne),ee.test(l[0].type)&&ye(t.parentNode)||t))){if(l.splice(o,1),e=a.length&&Me(l),!e)return j.apply(n,a),n;break}}}return(m||s(e,h))(a,t,!_,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=v.split("").sort(S).join("")===v,n.detectDuplicates=!!c,m(),n.sortDetached=de((function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))})),de((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||ce("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&de((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||ce("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),de((function(e){return null==e.getAttribute("disabled")}))||ce(N,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(a);b.find=T,b.expr=T.selectors,b.expr[":"]=b.expr.pseudos,b.uniqueSort=b.unique=T.uniqueSort,b.text=T.getText,b.isXMLDoc=T.isXML,b.contains=T.contains,b.escapeSelector=T.escape;var S=function(e,t,n){var r=[],a=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(a&&b(e).is(n))break;r.push(e)}return r},A=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},x=b.expr.match.needsContext;function C(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var E=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,t,n){return g(t)?b.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?b.grep(e,(function(e){return e===t!==n})):"string"!==typeof t?b.grep(e,(function(e){return c.call(t,e)>-1!==n})):b.filter(t,e,n)}b.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?b.find.matchesSelector(r,e)?[r]:[]:b.find.matches(e,b.grep(t,(function(e){return 1===e.nodeType})))},b.fn.extend({find:function(e){var t,n,r=this.length,a=this;if("string"!==typeof e)return this.pushStack(b(e).filter((function(){for(t=0;t<r;t++)if(b.contains(a[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)b.find(e,a[t],n);return r>1?b.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"===typeof e&&x.test(e)?b(e):e||[],!1).length}});var O,H=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,N=b.fn.init=function(e,t,n){var r,a;if(!e)return this;if(n=n||O,"string"===typeof e){if(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:H.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof b?t[0]:t,b.merge(this,b.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:v,!0)),E.test(r[1])&&b.isPlainObject(t))for(r in t)g(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return a=v.getElementById(r[2]),a&&(this[0]=a,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(b):b.makeArray(e,this)};N.prototype=b.fn,O=b(v);var P=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){while((e=e[t])&&1!==e.nodeType);return e}b.fn.extend({has:function(e){var t=b(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(b.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,a=this.length,o=[],i="string"!==typeof e&&b(e);if(!x.test(e))for(;r<a;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(i?i.index(n)>-1:1===n.nodeType&&b.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?b.uniqueSort(o):o)},index:function(e){return e?"string"===typeof e?c.call(b(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(b.uniqueSort(b.merge(this.get(),b(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return S(e,"parentNode")},parentsUntil:function(e,t,n){return S(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return S(e,"nextSibling")},prevAll:function(e){return S(e,"previousSibling")},nextUntil:function(e,t,n){return S(e,"nextSibling",n)},prevUntil:function(e,t,n){return S(e,"previousSibling",n)},siblings:function(e){return A((e.parentNode||{}).firstChild,e)},children:function(e){return A(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(C(e,"template")&&(e=e.content||e),b.merge([],e.childNodes))}},(function(e,t){b.fn[e]=function(n,r){var a=b.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"===typeof r&&(a=b.filter(r,a)),this.length>1&&(I[e]||b.uniqueSort(a),P.test(e)&&a.reverse()),this.pushStack(a)}}));var F=/[^\x20\t\r\n\f]+/g;function B(e){var t={};return b.each(e.match(F)||[],(function(e,n){t[n]=!0})),t}function W(e){return e}function V(e){throw e}function z(e,t,n,r){var a;try{e&&g(a=e.promise)?a.call(e).done(t).fail(n):e&&g(a=e.then)?a.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}b.Callbacks=function(e){e="string"===typeof e?B(e):b.extend({},e);var t,n,r,a,o=[],i=[],s=-1,l=function(){for(a=a||e.once,r=t=!0;i.length;s=-1){n=i.shift();while(++s<o.length)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1)}e.memory||(n=!1),t=!1,a&&(o=n?[]:"")},u={add:function(){return o&&(n&&!t&&(s=o.length-1,i.push(n)),function t(n){b.each(n,(function(n,r){g(r)?e.unique&&u.has(r)||o.push(r):r&&r.length&&"string"!==k(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return b.each(arguments,(function(e,t){var n;while((n=b.inArray(t,o,n))>-1)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?b.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return a=i=[],o=n="",this},disabled:function(){return!o},lock:function(){return a=i=[],n||t||(o=n=""),this},locked:function(){return!!a},fireWith:function(e,n){return a||(n=n||[],n=[e,n.slice?n.slice():n],i.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},b.extend({Deferred:function(e){var t=[["notify","progress",b.Callbacks("memory"),b.Callbacks("memory"),2],["resolve","done",b.Callbacks("once memory"),b.Callbacks("once memory"),0,"resolved"],["reject","fail",b.Callbacks("once memory"),b.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return b.Deferred((function(n){b.each(t,(function(t,r){var a=g(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=a&&a.apply(this,arguments);e&&g(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,a?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,r){var o=0;function i(e,t,n,r){return function(){var s=this,l=arguments,u=function(){var a,u;if(!(e<o)){if(a=n.apply(s,l),a===t.promise())throw new TypeError("Thenable self-resolution");u=a&&("object"===typeof a||"function"===typeof a)&&a.then,g(u)?r?u.call(a,i(o,t,W,r),i(o,t,V,r)):(o++,u.call(a,i(o,t,W,r),i(o,t,V,r),i(o,t,W,t.notifyWith))):(n!==W&&(s=void 0,l=[a]),(r||t.resolveWith)(s,l))}},d=r?u:function(){try{u()}catch(r){b.Deferred.exceptionHook&&b.Deferred.exceptionHook(r,d.stackTrace),e+1>=o&&(n!==V&&(s=void 0,l=[r]),t.rejectWith(s,l))}};e?d():(b.Deferred.getStackHook&&(d.stackTrace=b.Deferred.getStackHook()),a.setTimeout(d))}}return b.Deferred((function(a){t[0][3].add(i(0,a,g(r)?r:W,a.notifyWith)),t[1][3].add(i(0,a,g(e)?e:W)),t[2][3].add(i(0,a,g(n)?n:V))})).promise()},promise:function(e){return null!=e?b.extend(e,r):r}},o={};return b.each(t,(function(e,a){var i=a[2],s=a[5];r[a[1]]=i.add,s&&i.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),i.add(a[3].fire),o[a[0]]=function(){return o[a[0]+"With"](this===o?void 0:this,arguments),this},o[a[0]+"With"]=i.fireWith})),r.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),a=l.call(arguments),o=b.Deferred(),i=function(e){return function(n){r[e]=this,a[e]=arguments.length>1?l.call(arguments):n,--t||o.resolveWith(r,a)}};if(t<=1&&(z(e,o.done(i(n)).resolve,o.reject,!t),"pending"===o.state()||g(a[n]&&a[n].then)))return o.then();while(n--)z(a[n],i(n),o.reject);return o.promise()}});var U=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;b.Deferred.exceptionHook=function(e,t){a.console&&a.console.warn&&e&&U.test(e.name)&&a.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},b.readyException=function(e){a.setTimeout((function(){throw e}))};var q=b.Deferred();function J(){v.removeEventListener("DOMContentLoaded",J),a.removeEventListener("load",J),b.ready()}b.fn.ready=function(e){return q.then(e).catch((function(e){b.readyException(e)})),this},b.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--b.readyWait:b.isReady)||(b.isReady=!0,!0!==e&&--b.readyWait>0||q.resolveWith(v,[b]))}}),b.ready.then=q.then,"complete"===v.readyState||"loading"!==v.readyState&&!v.documentElement.doScroll?a.setTimeout(b.ready):(v.addEventListener("DOMContentLoaded",J),a.addEventListener("load",J));var G=function(e,t,n,r,a,o,i){var s=0,l=e.length,u=null==n;if("object"===k(n))for(s in a=!0,n)G(e,t,s,n[s],!0,o,i);else if(void 0!==r&&(a=!0,g(r)||(i=!0),u&&(i?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(b(e),n)})),t))for(;s<l;s++)t(e[s],n,i?r:r.call(e[s],s,t(e[s],n)));return a?e:u?t.call(e):l?t(e[0],n):o},$=/^-ms-/,K=/-([a-z])/g;function Z(e,t){return t.toUpperCase()}function X(e){return e.replace($,"ms-").replace(K,Z)}var Q=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ee(){this.expando=b.expando+ee.uid++}ee.uid=1,ee.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Q(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,a=this.cache(e);if("string"===typeof t)a[X(t)]=n;else for(r in t)a[X(r)]=t[r];return a},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"===typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){Array.isArray(t)?t=t.map(X):(t=X(t),t=t in r?[t]:t.match(F)||[]),n=t.length;while(n--)delete r[t[n]]}(void 0===t||b.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!b.isEmptyObject(t)}};var te=new ee,ne=new ee,re=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ae=/[A-Z]/g;function oe(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:re.test(e)?JSON.parse(e):e)}function ie(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ae,"-$&").toLowerCase(),n=e.getAttribute(r),"string"===typeof n){try{n=oe(n)}catch(a){}ne.set(e,t,n)}else n=void 0;return n}b.extend({hasData:function(e){return ne.hasData(e)||te.hasData(e)},data:function(e,t,n){return ne.access(e,t,n)},removeData:function(e,t){ne.remove(e,t)},_data:function(e,t,n){return te.access(e,t,n)},_removeData:function(e,t){te.remove(e,t)}}),b.fn.extend({data:function(e,t){var n,r,a,o=this[0],i=o&&o.attributes;if(void 0===e){if(this.length&&(a=ne.get(o),1===o.nodeType&&!te.get(o,"hasDataAttrs"))){n=i.length;while(n--)i[n]&&(r=i[n].name,0===r.indexOf("data-")&&(r=X(r.slice(5)),ie(o,r,a[r])));te.set(o,"hasDataAttrs",!0)}return a}return"object"===typeof e?this.each((function(){ne.set(this,e)})):G(this,(function(t){var n;if(o&&void 0===t)return n=ne.get(o,e),void 0!==n?n:(n=ie(o,e),void 0!==n?n:void 0);this.each((function(){ne.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){ne.remove(this,e)}))}}),b.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=te.get(e,t),n&&(!r||Array.isArray(n)?r=te.access(e,t,b.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=b.queue(e,t),r=n.length,a=n.shift(),o=b._queueHooks(e,t),i=function(){b.dequeue(e,t)};"inprogress"===a&&(a=n.shift(),r--),a&&("fx"===t&&n.unshift("inprogress"),delete o.stop,a.call(e,i,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return te.get(e,n)||te.access(e,n,{empty:b.Callbacks("once memory").add((function(){te.remove(e,[t+"queue",n])}))})}}),b.fn.extend({queue:function(e,t){var n=2;return"string"!==typeof e&&(t=e,e="fx",n--),arguments.length<n?b.queue(this[0],e):void 0===t?this:this.each((function(){var n=b.queue(this,e,t);b._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&b.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){b.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,a=b.Deferred(),o=this,i=this.length,s=function(){--r||a.resolveWith(o,[o])};"string"!==typeof e&&(t=e,e=void 0),e=e||"fx";while(i--)n=te.get(o[i],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),a.promise(t)}});var se=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,le=new RegExp("^(?:([+-])=|)("+se+")([a-z%]*)$","i"),ue=["Top","Right","Bottom","Left"],de=v.documentElement,ce=function(e){return b.contains(e.ownerDocument,e)},me={composed:!0};de.getRootNode&&(ce=function(e){return b.contains(e.ownerDocument,e)||e.getRootNode(me)===e.ownerDocument});var he=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&ce(e)&&"none"===b.css(e,"display")};function fe(e,t,n,r){var a,o,i=20,s=r?function(){return r.cur()}:function(){return b.css(e,t,"")},l=s(),u=n&&n[3]||(b.cssNumber[t]?"":"px"),d=e.nodeType&&(b.cssNumber[t]||"px"!==u&&+l)&&le.exec(b.css(e,t));if(d&&d[3]!==u){l/=2,u=u||d[3],d=+l||1;while(i--)b.style(e,t,d+u),(1-o)*(1-(o=s()/l||.5))<=0&&(i=0),d/=o;d*=2,b.style(e,t,d+u),n=n||[]}return n&&(d=+d||+l||0,a=n[1]?d+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=d,r.end=a)),a}var _e={};function pe(e){var t,n=e.ownerDocument,r=e.nodeName,a=_e[r];return a||(t=n.body.appendChild(n.createElement(r)),a=b.css(t,"display"),t.parentNode.removeChild(t),"none"===a&&(a="block"),_e[r]=a,a)}function ye(e,t){for(var n,r,a=[],o=0,i=e.length;o<i;o++)r=e[o],r.style&&(n=r.style.display,t?("none"===n&&(a[o]=te.get(r,"display")||null,a[o]||(r.style.display="")),""===r.style.display&&he(r)&&(a[o]=pe(r))):"none"!==n&&(a[o]="none",te.set(r,"display",n)));for(o=0;o<i;o++)null!=a[o]&&(e[o].style.display=a[o]);return e}b.fn.extend({show:function(){return ye(this,!0)},hide:function(){return ye(this)},toggle:function(e){return"boolean"===typeof e?e?this.show():this.hide():this.each((function(){he(this)?b(this).show():b(this).hide()}))}});var ge=/^(?:checkbox|radio)$/i,Me=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=v.createDocumentFragment(),t=e.appendChild(v.createElement("div")),n=v.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),y.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,t.innerHTML="<option></option>",y.option=!!t.lastChild})();var Le={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function we(e,t){var n;return n="undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!==typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&C(e,t)?b.merge([e],n):n}function ke(e,t){for(var n=0,r=e.length;n<r;n++)te.set(e[n],"globalEval",!t||te.get(t[n],"globalEval"))}Le.tbody=Le.tfoot=Le.colgroup=Le.caption=Le.thead,Le.th=Le.td,y.option||(Le.optgroup=Le.option=[1,"<select multiple='multiple'>","</select>"]);var Ye=/<|&#?\w+;/;function be(e,t,n,r,a){for(var o,i,s,l,u,d,c=t.createDocumentFragment(),m=[],h=0,f=e.length;h<f;h++)if(o=e[h],o||0===o)if("object"===k(o))b.merge(m,o.nodeType?[o]:o);else if(Ye.test(o)){i=i||c.appendChild(t.createElement("div")),s=(Me.exec(o)||["",""])[1].toLowerCase(),l=Le[s]||Le._default,i.innerHTML=l[1]+b.htmlPrefilter(o)+l[2],d=l[0];while(d--)i=i.lastChild;b.merge(m,i.childNodes),i=c.firstChild,i.textContent=""}else m.push(t.createTextNode(o));c.textContent="",h=0;while(o=m[h++])if(r&&b.inArray(o,r)>-1)a&&a.push(o);else if(u=ce(o),i=we(c.appendChild(o),"script"),u&&ke(i),n){d=0;while(o=i[d++])ve.test(o.type||"")&&n.push(o)}return c}var De=/^([^.]*)(?:\.(.+)|)/;function Te(){return!0}function Se(){return!1}function Ae(e,t){return e===xe()===("focus"===t)}function xe(){try{return v.activeElement}catch(e){}}function Ce(e,t,n,r,a,o){var i,s;if("object"===typeof t){for(s in"string"!==typeof n&&(r=r||n,n=void 0),t)Ce(e,s,n,r,t[s],o);return e}if(null==r&&null==a?(a=n,r=n=void 0):null==a&&("string"===typeof n?(a=r,r=void 0):(a=r,r=n,n=void 0)),!1===a)a=Se;else if(!a)return e;return 1===o&&(i=a,a=function(e){return b().off(e),i.apply(this,arguments)},a.guid=i.guid||(i.guid=b.guid++)),e.each((function(){b.event.add(this,t,a,r,n)}))}function Ee(e,t,n){n?(te.set(e,t,!1),b.event.add(e,t,{namespace:!1,handler:function(e){var r,a,o=te.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(b.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=l.call(arguments),te.set(this,t,o),r=n(this,t),this[t](),a=te.get(this,t),o!==a||r?te.set(this,t,!1):a={},o!==a)return e.stopImmediatePropagation(),e.preventDefault(),a&&a.value}else o.length&&(te.set(this,t,{value:b.event.trigger(b.extend(o[0],b.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===te.get(e,t)&&b.event.add(e,t,Te)}b.event={global:{},add:function(e,t,n,r,a){var o,i,s,l,u,d,c,m,h,f,_,p=te.get(e);if(Q(e)){n.handler&&(o=n,n=o.handler,a=o.selector),a&&b.find.matchesSelector(de,a),n.guid||(n.guid=b.guid++),(l=p.events)||(l=p.events=Object.create(null)),(i=p.handle)||(i=p.handle=function(t){return"undefined"!==typeof b&&b.event.triggered!==t.type?b.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(F)||[""],u=t.length;while(u--)s=De.exec(t[u])||[],h=_=s[1],f=(s[2]||"").split(".").sort(),h&&(c=b.event.special[h]||{},h=(a?c.delegateType:c.bindType)||h,c=b.event.special[h]||{},d=b.extend({type:h,origType:_,data:r,handler:n,guid:n.guid,selector:a,needsContext:a&&b.expr.match.needsContext.test(a),namespace:f.join(".")},o),(m=l[h])||(m=l[h]=[],m.delegateCount=0,c.setup&&!1!==c.setup.call(e,r,f,i)||e.addEventListener&&e.addEventListener(h,i)),c.add&&(c.add.call(e,d),d.handler.guid||(d.handler.guid=n.guid)),a?m.splice(m.delegateCount++,0,d):m.push(d),b.event.global[h]=!0)}},remove:function(e,t,n,r,a){var o,i,s,l,u,d,c,m,h,f,_,p=te.hasData(e)&&te.get(e);if(p&&(l=p.events)){t=(t||"").match(F)||[""],u=t.length;while(u--)if(s=De.exec(t[u])||[],h=_=s[1],f=(s[2]||"").split(".").sort(),h){c=b.event.special[h]||{},h=(r?c.delegateType:c.bindType)||h,m=l[h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=o=m.length;while(o--)d=m[o],!a&&_!==d.origType||n&&n.guid!==d.guid||s&&!s.test(d.namespace)||r&&r!==d.selector&&("**"!==r||!d.selector)||(m.splice(o,1),d.selector&&m.delegateCount--,c.remove&&c.remove.call(e,d));i&&!m.length&&(c.teardown&&!1!==c.teardown.call(e,f,p.handle)||b.removeEvent(e,h,p.handle),delete l[h])}else for(h in l)b.event.remove(e,h+t[u],n,r,!0);b.isEmptyObject(l)&&te.remove(e,"handle events")}},dispatch:function(e){var t,n,r,a,o,i,s=new Array(arguments.length),l=b.event.fix(e),u=(te.get(this,"events")||Object.create(null))[l.type]||[],d=b.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,l)){i=b.event.handlers.call(this,l,u),t=0;while((a=i[t++])&&!l.isPropagationStopped()){l.currentTarget=a.elem,n=0;while((o=a.handlers[n++])&&!l.isImmediatePropagationStopped())l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,r=((b.event.special[o.origType]||{}).handle||o.handler).apply(a.elem,s),void 0!==r&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()))}return d.postDispatch&&d.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,a,o,i,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],i={},n=0;n<l;n++)r=t[n],a=r.selector+" ",void 0===i[a]&&(i[a]=r.needsContext?b(a,this).index(u)>-1:b.find(a,this,null,[u]).length),i[a]&&o.push(r);o.length&&s.push({elem:u,handlers:o})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(b.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[b.expando]?e:new b.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ge.test(t.type)&&t.click&&C(t,"input")&&Ee(t,"click",Te),!1},trigger:function(e){var t=this||e;return ge.test(t.type)&&t.click&&C(t,"input")&&Ee(t,"click"),!0},_default:function(e){var t=e.target;return ge.test(t.type)&&t.click&&C(t,"input")&&te.get(t,"click")||C(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},b.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},b.Event=function(e,t){if(!(this instanceof b.Event))return new b.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Te:Se,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&b.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[b.expando]=!0},b.Event.prototype={constructor:b.Event,isDefaultPrevented:Se,isPropagationStopped:Se,isImmediatePropagationStopped:Se,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Te,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Te,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Te,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},b.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},b.event.addProp),b.each({focus:"focusin",blur:"focusout"},(function(e,t){b.event.special[e]={setup:function(){return Ee(this,e,Ae),!1},trigger:function(){return Ee(this,e),!0},_default:function(){return!0},delegateType:t}})),b.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,a=e.relatedTarget,o=e.handleObj;return a&&(a===r||b.contains(r,a))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),b.fn.extend({on:function(e,t,n,r){return Ce(this,e,t,n,r)},one:function(e,t,n,r){return Ce(this,e,t,n,r,1)},off:function(e,t,n){var r,a;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,b(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"===typeof e){for(a in e)this.off(a,t,e[a]);return this}return!1!==t&&"function"!==typeof t||(n=t,t=void 0),!1===n&&(n=Se),this.each((function(){b.event.remove(this,e,n,t)}))}});var je=/<script|<style|<link/i,Oe=/checked\s*(?:[^=]|=\s*.checked.)/i,He=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ne(e,t){return C(e,"table")&&C(11!==t.nodeType?t:t.firstChild,"tr")&&b(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ie(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Re(e,t){var n,r,a,o,i,s,l;if(1===t.nodeType){if(te.hasData(e)&&(o=te.get(e),l=o.events,l))for(a in te.remove(t,"handle events"),l)for(n=0,r=l[a].length;n<r;n++)b.event.add(t,a,l[a][n]);ne.hasData(e)&&(i=ne.access(e),s=b.extend({},i),ne.set(t,s))}}function Fe(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ge.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Be(e,t,n,r){t=u(t);var a,o,i,s,l,d,c=0,m=e.length,h=m-1,f=t[0],_=g(f);if(_||m>1&&"string"===typeof f&&!y.checkClone&&Oe.test(f))return e.each((function(a){var o=e.eq(a);_&&(t[0]=f.call(this,a,o.html())),Be(o,t,n,r)}));if(m&&(a=be(t,e[0].ownerDocument,!1,e,r),o=a.firstChild,1===a.childNodes.length&&(a=o),o||r)){for(i=b.map(we(a,"script"),Pe),s=i.length;c<m;c++)l=a,c!==h&&(l=b.clone(l,!0,!0),s&&b.merge(i,we(l,"script"))),n.call(e[c],l,c);if(s)for(d=i[i.length-1].ownerDocument,b.map(i,Ie),c=0;c<s;c++)l=i[c],ve.test(l.type||"")&&!te.access(l,"globalEval")&&b.contains(d,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?b._evalUrl&&!l.noModule&&b._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},d):w(l.textContent.replace(He,""),l,d))}return e}function We(e,t,n){for(var r,a=t?b.filter(t,e):e,o=0;null!=(r=a[o]);o++)n||1!==r.nodeType||b.cleanData(we(r)),r.parentNode&&(n&&ce(r)&&ke(we(r,"script")),r.parentNode.removeChild(r));return e}b.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,a,o,i,s=e.cloneNode(!0),l=ce(e);if(!y.noCloneChecked&&(1===e.nodeType||11===e.nodeType)&&!b.isXMLDoc(e))for(i=we(s),o=we(e),r=0,a=o.length;r<a;r++)Fe(o[r],i[r]);if(t)if(n)for(o=o||we(e),i=i||we(s),r=0,a=o.length;r<a;r++)Re(o[r],i[r]);else Re(e,s);return i=we(s,"script"),i.length>0&&ke(i,!l&&we(e,"script")),s},cleanData:function(e){for(var t,n,r,a=b.event.special,o=0;void 0!==(n=e[o]);o++)if(Q(n)){if(t=n[te.expando]){if(t.events)for(r in t.events)a[r]?b.event.remove(n,r):b.removeEvent(n,r,t.handle);n[te.expando]=void 0}n[ne.expando]&&(n[ne.expando]=void 0)}}}),b.fn.extend({detach:function(e){return We(this,e,!0)},remove:function(e){return We(this,e)},text:function(e){return G(this,(function(e){return void 0===e?b.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Be(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ne(this,e);t.appendChild(e)}}))},prepend:function(){return Be(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ne(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Be(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Be(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(b.cleanData(we(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return b.clone(this,e,t)}))},html:function(e){return G(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"===typeof e&&!je.test(e)&&!Le[(Me.exec(e)||["",""])[1].toLowerCase()]){e=b.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(b.cleanData(we(t,!1)),t.innerHTML=e);t=0}catch(a){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Be(this,arguments,(function(t){var n=this.parentNode;b.inArray(this,e)<0&&(b.cleanData(we(this)),n&&n.replaceChild(t,this))}),e)}}),b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){b.fn[e]=function(e){for(var n,r=[],a=b(e),o=a.length-1,i=0;i<=o;i++)n=i===o?this:this.clone(!0),b(a[i])[t](n),d.apply(r,n.get());return this.pushStack(r)}}));var Ve=new RegExp("^("+se+")(?!px)[a-z%]+$","i"),ze=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=a),t.getComputedStyle(e)},Ue=function(e,t,n){var r,a,o={};for(a in t)o[a]=e.style[a],e.style[a]=t[a];for(a in r=n.call(e),t)e.style[a]=o[a];return r},qe=new RegExp(ue.join("|"),"i");function Je(e,t,n){var r,a,o,i,s=e.style;return n=n||ze(e),n&&(i=n.getPropertyValue(t)||n[t],""!==i||ce(e)||(i=b.style(e,t)),!y.pixelBoxStyles()&&Ve.test(i)&&qe.test(t)&&(r=s.width,a=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=i,i=n.width,s.width=r,s.minWidth=a,s.maxWidth=o)),void 0!==i?i+"":i}function Ge(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}(function(){function e(){if(d){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",d.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",de.appendChild(u).appendChild(d);var e=a.getComputedStyle(d);n="1%"!==e.top,l=12===t(e.marginLeft),d.style.right="60%",i=36===t(e.right),r=36===t(e.width),d.style.position="absolute",o=12===t(d.offsetWidth/3),de.removeChild(u),d=null}}function t(e){return Math.round(parseFloat(e))}var n,r,o,i,s,l,u=v.createElement("div"),d=v.createElement("div");d.style&&(d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===d.style.backgroundClip,b.extend(y,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),i},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,r;return null==s&&(e=v.createElement("table"),t=v.createElement("tr"),n=v.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",de.appendChild(e).appendChild(t).appendChild(n),r=a.getComputedStyle(t),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,de.removeChild(e)),s}}))})();var $e=["Webkit","Moz","ms"],Ke=v.createElement("div").style,Ze={};function Xe(e){var t=e[0].toUpperCase()+e.slice(1),n=$e.length;while(n--)if(e=$e[n]+t,e in Ke)return e}function Qe(e){var t=b.cssProps[e]||Ze[e];return t||(e in Ke?e:Ze[e]=Xe(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt=/^--/,nt={position:"absolute",visibility:"hidden",display:"block"},rt={letterSpacing:"0",fontWeight:"400"};function at(e,t,n){var r=le.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function ot(e,t,n,r,a,o){var i="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;i<4;i+=2)"margin"===n&&(l+=b.css(e,n+ue[i],!0,a)),r?("content"===n&&(l-=b.css(e,"padding"+ue[i],!0,a)),"margin"!==n&&(l-=b.css(e,"border"+ue[i]+"Width",!0,a))):(l+=b.css(e,"padding"+ue[i],!0,a),"padding"!==n?l+=b.css(e,"border"+ue[i]+"Width",!0,a):s+=b.css(e,"border"+ue[i]+"Width",!0,a));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l}function it(e,t,n){var r=ze(e),a=!y.boxSizingReliable()||n,o=a&&"border-box"===b.css(e,"boxSizing",!1,r),i=o,s=Je(e,t,r),l="offset"+t[0].toUpperCase()+t.slice(1);if(Ve.test(s)){if(!n)return s;s="auto"}return(!y.boxSizingReliable()&&o||!y.reliableTrDimensions()&&C(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===b.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===b.css(e,"boxSizing",!1,r),i=l in e,i&&(s=e[l])),s=parseFloat(s)||0,s+ot(e,t,n||(o?"border":"content"),i,r,s)+"px"}function st(e,t,n,r,a){return new st.prototype.init(e,t,n,r,a)}b.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Je(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,o,i,s=X(t),l=tt.test(t),u=e.style;if(l||(t=Qe(s)),i=b.cssHooks[t]||b.cssHooks[s],void 0===n)return i&&"get"in i&&void 0!==(a=i.get(e,!1,r))?a:u[t];o=typeof n,"string"===o&&(a=le.exec(n))&&a[1]&&(n=fe(e,t,a),o="number"),null!=n&&n===n&&("number"!==o||l||(n+=a&&a[3]||(b.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),i&&"set"in i&&void 0===(n=i.set(e,n,r))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var a,o,i,s=X(t),l=tt.test(t);return l||(t=Qe(s)),i=b.cssHooks[t]||b.cssHooks[s],i&&"get"in i&&(a=i.get(e,!0,n)),void 0===a&&(a=Je(e,t,r)),"normal"===a&&t in rt&&(a=rt[t]),""===n||n?(o=parseFloat(a),!0===n||isFinite(o)?o||0:a):a}}),b.each(["height","width"],(function(e,t){b.cssHooks[t]={get:function(e,n,r){if(n)return!et.test(b.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?it(e,t,r):Ue(e,nt,(function(){return it(e,t,r)}))},set:function(e,n,r){var a,o=ze(e),i=!y.scrollboxSize()&&"absolute"===o.position,s=i||r,l=s&&"border-box"===b.css(e,"boxSizing",!1,o),u=r?ot(e,t,r,l,o):0;return l&&i&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-ot(e,t,"border",!1,o)-.5)),u&&(a=le.exec(n))&&"px"!==(a[3]||"px")&&(e.style[t]=n,n=b.css(e,t)),at(e,n,u)}}})),b.cssHooks.marginLeft=Ge(y.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Je(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),b.each({margin:"",padding:"",border:"Width"},(function(e,t){b.cssHooks[e+t]={expand:function(n){for(var r=0,a={},o="string"===typeof n?n.split(" "):[n];r<4;r++)a[e+ue[r]+t]=o[r]||o[r-2]||o[0];return a}},"margin"!==e&&(b.cssHooks[e+t].set=at)})),b.fn.extend({css:function(e,t){return G(this,(function(e,t,n){var r,a,o={},i=0;if(Array.isArray(t)){for(r=ze(e),a=t.length;i<a;i++)o[t[i]]=b.css(e,t[i],!1,r);return o}return void 0!==n?b.style(e,t,n):b.css(e,t)}),e,t,arguments.length>1)}}),b.Tween=st,st.prototype={constructor:st,init:function(e,t,n,r,a,o){this.elem=e,this.prop=n,this.easing=a||b.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(b.cssNumber[n]?"":"px")},cur:function(){var e=st.propHooks[this.prop];return e&&e.get?e.get(this):st.propHooks._default.get(this)},run:function(e){var t,n=st.propHooks[this.prop];return this.options.duration?this.pos=t=b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):st.propHooks._default.set(this),this}},st.prototype.init.prototype=st.prototype,st.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=b.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):1!==e.elem.nodeType||!b.cssHooks[e.prop]&&null==e.elem.style[Qe(e.prop)]?e.elem[e.prop]=e.now:b.style(e.elem,e.prop,e.now+e.unit)}}},st.propHooks.scrollTop=st.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},b.fx=st.prototype.init,b.fx.step={};var lt,ut,dt=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function mt(){ut&&(!1===v.hidden&&a.requestAnimationFrame?a.requestAnimationFrame(mt):a.setTimeout(mt,b.fx.interval),b.fx.tick())}function ht(){return a.setTimeout((function(){lt=void 0})),lt=Date.now()}function ft(e,t){var n,r=0,a={height:e};for(t=t?1:0;r<4;r+=2-t)n=ue[r],a["margin"+n]=a["padding"+n]=e;return t&&(a.opacity=a.width=e),a}function _t(e,t,n){for(var r,a=(gt.tweeners[t]||[]).concat(gt.tweeners["*"]),o=0,i=a.length;o<i;o++)if(r=a[o].call(n,t,e))return r}function pt(e,t,n){var r,a,o,i,s,l,u,d,c="width"in t||"height"in t,m=this,h={},f=e.style,_=e.nodeType&&he(e),p=te.get(e,"fxshow");for(r in n.queue||(i=b._queueHooks(e,"fx"),null==i.unqueued&&(i.unqueued=0,s=i.empty.fire,i.empty.fire=function(){i.unqueued||s()}),i.unqueued++,m.always((function(){m.always((function(){i.unqueued--,b.queue(e,"fx").length||i.empty.fire()}))}))),t)if(a=t[r],dt.test(a)){if(delete t[r],o=o||"toggle"===a,a===(_?"hide":"show")){if("show"!==a||!p||void 0===p[r])continue;_=!0}h[r]=p&&p[r]||b.style(e,r)}if(l=!b.isEmptyObject(t),l||!b.isEmptyObject(h))for(r in c&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],u=p&&p.display,null==u&&(u=te.get(e,"display")),d=b.css(e,"display"),"none"===d&&(u?d=u:(ye([e],!0),u=e.style.display||u,d=b.css(e,"display"),ye([e]))),("inline"===d||"inline-block"===d&&null!=u)&&"none"===b.css(e,"float")&&(l||(m.done((function(){f.display=u})),null==u&&(d=f.display,u="none"===d?"":d)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",m.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,h)l||(p?"hidden"in p&&(_=p.hidden):p=te.access(e,"fxshow",{display:u}),o&&(p.hidden=!_),_&&ye([e],!0),m.done((function(){for(r in _||ye([e]),te.remove(e,"fxshow"),h)b.style(e,r,h[r])}))),l=_t(_?p[r]:0,r,m),r in p||(p[r]=l.start,_&&(l.end=l.start,l.start=0))}function yt(e,t){var n,r,a,o,i;for(n in e)if(r=X(n),a=t[r],o=e[n],Array.isArray(o)&&(a=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),i=b.cssHooks[r],i&&"expand"in i)for(n in o=i.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=a);else t[r]=a}function gt(e,t,n){var r,a,o=0,i=gt.prefilters.length,s=b.Deferred().always((function(){delete l.elem})),l=function(){if(a)return!1;for(var t=lt||ht(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,o=1-r,i=0,l=u.tweens.length;i<l;i++)u.tweens[i].run(o);return s.notifyWith(e,[u,o,n]),o<1&&l?n:(l||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{},easing:b.easing._default},n),originalProperties:t,originalOptions:n,startTime:lt||ht(),duration:n.duration,tweens:[],createTween:function(t,n){var r=b.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(a)return this;for(a=!0;n<r;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),d=u.props;for(yt(d,u.opts.specialEasing);o<i;o++)if(r=gt.prefilters[o].call(u,e,d,u.opts),r)return g(r.stop)&&(b._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return b.map(d,_t,u),g(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),b.fx.timer(b.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}b.Animation=b.extend(gt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return fe(n.elem,e,le.exec(t),n),n}]},tweener:function(e,t){g(e)?(t=e,e=["*"]):e=e.match(F);for(var n,r=0,a=e.length;r<a;r++)n=e[r],gt.tweeners[n]=gt.tweeners[n]||[],gt.tweeners[n].unshift(t)},prefilters:[pt],prefilter:function(e,t){t?gt.prefilters.unshift(e):gt.prefilters.push(e)}}),b.speed=function(e,t,n){var r=e&&"object"===typeof e?b.extend({},e):{complete:n||!n&&t||g(e)&&e,duration:e,easing:n&&t||t&&!g(t)&&t};return b.fx.off?r.duration=0:"number"!==typeof r.duration&&(r.duration in b.fx.speeds?r.duration=b.fx.speeds[r.duration]:r.duration=b.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){g(r.old)&&r.old.call(this),r.queue&&b.dequeue(this,r.queue)},r},b.fn.extend({fadeTo:function(e,t,n,r){return this.filter(he).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var a=b.isEmptyObject(e),o=b.speed(t,n,r),i=function(){var t=gt(this,b.extend({},e),o);(a||te.get(this,"finish"))&&t.stop(!0)};return i.finish=i,a||!1===o.queue?this.each(i):this.queue(o.queue,i)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!==typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,a=null!=e&&e+"queueHooks",o=b.timers,i=te.get(this);if(a)i[a]&&i[a].stop&&r(i[a]);else for(a in i)i[a]&&i[a].stop&&ct.test(a)&&r(i[a]);for(a=o.length;a--;)o[a].elem!==this||null!=e&&o[a].queue!==e||(o[a].anim.stop(n),t=!1,o.splice(a,1));!t&&n||b.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=te.get(this),r=n[e+"queue"],a=n[e+"queueHooks"],o=b.timers,i=r?r.length:0;for(n.finish=!0,b.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<i;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),b.each(["toggle","show","hide"],(function(e,t){var n=b.fn[t];b.fn[t]=function(e,r,a){return null==e||"boolean"===typeof e?n.apply(this,arguments):this.animate(ft(t,!0),e,r,a)}})),b.each({slideDown:ft("show"),slideUp:ft("hide"),slideToggle:ft("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){b.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),b.timers=[],b.fx.tick=function(){var e,t=0,n=b.timers;for(lt=Date.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||b.fx.stop(),lt=void 0},b.fx.timer=function(e){b.timers.push(e),b.fx.start()},b.fx.interval=13,b.fx.start=function(){ut||(ut=!0,mt())},b.fx.stop=function(){ut=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fn.delay=function(e,t){return e=b.fx&&b.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var r=a.setTimeout(t,e);n.stop=function(){a.clearTimeout(r)}}))},function(){var e=v.createElement("input"),t=v.createElement("select"),n=t.appendChild(v.createElement("option"));e.type="checkbox",y.checkOn=""!==e.value,y.optSelected=n.selected,e=v.createElement("input"),e.value="t",e.type="radio",y.radioValue="t"===e.value}();var Mt,vt=b.expr.attrHandle;b.fn.extend({attr:function(e,t){return G(this,b.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){b.removeAttr(this,e)}))}}),b.extend({attr:function(e,t,n){var r,a,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"===typeof e.getAttribute?b.prop(e,t,n):(1===o&&b.isXMLDoc(e)||(a=b.attrHooks[t.toLowerCase()]||(b.expr.match.bool.test(t)?Mt:void 0)),void 0!==n?null===n?void b.removeAttr(e,t):a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:(e.setAttribute(t,n+""),n):a&&"get"in a&&null!==(r=a.get(e,t))?r:(r=b.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&C(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,a=t&&t.match(F);if(a&&1===e.nodeType)while(n=a[r++])e.removeAttribute(n)}}),Mt={set:function(e,t,n){return!1===t?b.removeAttr(e,n):e.setAttribute(n,n),n}},b.each(b.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=vt[t]||b.find.attr;vt[t]=function(e,t,r){var a,o,i=t.toLowerCase();return r||(o=vt[i],vt[i]=a,a=null!=n(e,t,r)?i:null,vt[i]=o),a}}));var Lt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function kt(e){var t=e.match(F)||[];return t.join(" ")}function Yt(e){return e.getAttribute&&e.getAttribute("class")||""}function bt(e){return Array.isArray(e)?e:"string"===typeof e&&e.match(F)||[]}b.fn.extend({prop:function(e,t){return G(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[b.propFix[e]||e]}))}}),b.extend({prop:function(e,t,n){var r,a,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&b.isXMLDoc(e)||(t=b.propFix[t]||t,a=b.propHooks[t]),void 0!==n?a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:e[t]=n:a&&"get"in a&&null!==(r=a.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=b.find.attr(e,"tabindex");return t?parseInt(t,10):Lt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(b.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),b.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){b.propFix[this.toLowerCase()]=this})),b.fn.extend({addClass:function(e){var t,n,r,a,o,i,s,l=0;if(g(e))return this.each((function(t){b(this).addClass(e.call(this,t,Yt(this)))}));if(t=bt(e),t.length)while(n=this[l++])if(a=Yt(n),r=1===n.nodeType&&" "+kt(a)+" ",r){i=0;while(o=t[i++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");s=kt(r),a!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,a,o,i,s,l=0;if(g(e))return this.each((function(t){b(this).removeClass(e.call(this,t,Yt(this)))}));if(!arguments.length)return this.attr("class","");if(t=bt(e),t.length)while(n=this[l++])if(a=Yt(n),r=1===n.nodeType&&" "+kt(a)+" ",r){i=0;while(o=t[i++])while(r.indexOf(" "+o+" ")>-1)r=r.replace(" "+o+" "," ");s=kt(r),a!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"===typeof t&&r?t?this.addClass(e):this.removeClass(e):g(e)?this.each((function(n){b(this).toggleClass(e.call(this,n,Yt(this),t),t)})):this.each((function(){var t,a,o,i;if(r){a=0,o=b(this),i=bt(e);while(t=i[a++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else void 0!==e&&"boolean"!==n||(t=Yt(this),t&&te.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":te.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&(" "+kt(Yt(n))+" ").indexOf(t)>-1)return!0;return!1}});var Dt=/\r/g;b.fn.extend({val:function(e){var t,n,r,a=this[0];return arguments.length?(r=g(e),this.each((function(n){var a;1===this.nodeType&&(a=r?e.call(this,n,b(this).val()):e,null==a?a="":"number"===typeof a?a+="":Array.isArray(a)&&(a=b.map(a,(function(e){return null==e?"":e+""}))),t=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))}))):a?(t=b.valHooks[a.type]||b.valHooks[a.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(a,"value"))?n:(n=a.value,"string"===typeof n?n.replace(Dt,""):null==n?"":n)):void 0}}),b.extend({valHooks:{option:{get:function(e){var t=b.find.attr(e,"value");return null!=t?t:kt(b.text(e))}},select:{get:function(e){var t,n,r,a=e.options,o=e.selectedIndex,i="select-one"===e.type,s=i?null:[],l=i?o+1:a.length;for(r=o<0?l:i?o:0;r<l;r++)if(n=a[r],(n.selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,"optgroup"))){if(t=b(n).val(),i)return t;s.push(t)}return s},set:function(e,t){var n,r,a=e.options,o=b.makeArray(t),i=a.length;while(i--)r=a[i],(r.selected=b.inArray(b.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),b.each(["radio","checkbox"],(function(){b.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=b.inArray(b(e).val(),t)>-1}},y.checkOn||(b.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),y.focusin="onfocusin"in a;var Tt=/^(?:focusinfocus|focusoutblur)$/,St=function(e){e.stopPropagation()};b.extend(b.event,{trigger:function(e,t,n,r){var o,i,s,l,u,d,c,m,h=[n||v],_=f.call(e,"type")?e.type:e,p=f.call(e,"namespace")?e.namespace.split("."):[];if(i=m=s=n=n||v,3!==n.nodeType&&8!==n.nodeType&&!Tt.test(_+b.event.triggered)&&(_.indexOf(".")>-1&&(p=_.split("."),_=p.shift(),p.sort()),u=_.indexOf(":")<0&&"on"+_,e=e[b.expando]?e:new b.Event(_,"object"===typeof e&&e),e.isTrigger=r?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:b.makeArray(t,[e]),c=b.event.special[_]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!M(n)){for(l=c.delegateType||_,Tt.test(l+_)||(i=i.parentNode);i;i=i.parentNode)h.push(i),s=i;s===(n.ownerDocument||v)&&h.push(s.defaultView||s.parentWindow||a)}o=0;while((i=h[o++])&&!e.isPropagationStopped())m=i,e.type=o>1?l:c.bindType||_,d=(te.get(i,"events")||Object.create(null))[e.type]&&te.get(i,"handle"),d&&d.apply(i,t),d=u&&i[u],d&&d.apply&&Q(i)&&(e.result=d.apply(i,t),!1===e.result&&e.preventDefault());return e.type=_,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(h.pop(),t)||!Q(n)||u&&g(n[_])&&!M(n)&&(s=n[u],s&&(n[u]=null),b.event.triggered=_,e.isPropagationStopped()&&m.addEventListener(_,St),n[_](),e.isPropagationStopped()&&m.removeEventListener(_,St),b.event.triggered=void 0,s&&(n[u]=s)),e.result}},simulate:function(e,t,n){var r=b.extend(new b.Event,n,{type:e,isSimulated:!0});b.event.trigger(r,null,t)}}),b.fn.extend({trigger:function(e,t){return this.each((function(){b.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return b.event.trigger(e,t,n,!0)}}),y.focusin||b.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){b.event.simulate(t,e.target,b.event.fix(e))};b.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,a=te.access(r,t);a||r.addEventListener(e,n,!0),te.access(r,t,(a||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,a=te.access(r,t)-1;a?te.access(r,t,a):(r.removeEventListener(e,n,!0),te.remove(r,t))}}}));var At=a.location,xt={guid:Date.now()},Ct=/\?/;b.parseXML=function(e){var t,n;if(!e||"string"!==typeof e)return null;try{t=(new a.DOMParser).parseFromString(e,"text/xml")}catch(r){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||b.error("Invalid XML: "+(n?b.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Et=/\[\]$/,jt=/\r?\n/g,Ot=/^(?:submit|button|image|reset|file)$/i,Ht=/^(?:input|select|textarea|keygen)/i;function Nt(e,t,n,r){var a;if(Array.isArray(t))b.each(t,(function(t,a){n||Et.test(e)?r(e,a):Nt(e+"["+("object"===typeof a&&null!=a?t:"")+"]",a,n,r)}));else if(n||"object"!==k(t))r(e,t);else for(a in t)Nt(e+"["+a+"]",t[a],n,r)}b.param=function(e,t){var n,r=[],a=function(e,t){var n=g(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!b.isPlainObject(e))b.each(e,(function(){a(this.name,this.value)}));else for(n in e)Nt(n,e[n],t,a);return r.join("&")},b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=b.prop(this,"elements");return e?b.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!b(this).is(":disabled")&&Ht.test(this.nodeName)&&!Ot.test(e)&&(this.checked||!ge.test(e))})).map((function(e,t){var n=b(this).val();return null==n?null:Array.isArray(n)?b.map(n,(function(e){return{name:t.name,value:e.replace(jt,"\r\n")}})):{name:t.name,value:n.replace(jt,"\r\n")}})).get()}});var Pt=/%20/g,It=/#.*$/,Rt=/([?&])_=[^&]*/,Ft=/^(.*?):[ \t]*([^\r\n]*)$/gm,Bt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Wt=/^(?:GET|HEAD)$/,Vt=/^\/\//,zt={},Ut={},qt="*/".concat("*"),Jt=v.createElement("a");function Gt(e){return function(t,n){"string"!==typeof t&&(n=t,t="*");var r,a=0,o=t.toLowerCase().match(F)||[];if(g(n))while(r=o[a++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function $t(e,t,n,r){var a={},o=e===Ut;function i(s){var l;return a[s]=!0,b.each(e[s]||[],(function(e,s){var u=s(t,n,r);return"string"!==typeof u||o||a[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),i(u),!1)})),l}return i(t.dataTypes[0])||!a["*"]&&i("*")}function Kt(e,t){var n,r,a=b.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((a[n]?e:r||(r={}))[n]=t[n]);return r&&b.extend(!0,e,r),e}function Zt(e,t,n){var r,a,o,i,s=e.contents,l=e.dataTypes;while("*"===l[0])l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(a in s)if(s[a]&&s[a].test(r)){l.unshift(a);break}if(l[0]in n)o=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){o=a;break}i||(i=a)}o=o||i}if(o)return o!==l[0]&&l.unshift(o),n[o]}function Xt(e,t,n,r){var a,o,i,s,l,u={},d=e.dataTypes.slice();if(d[1])for(i in e.converters)u[i.toLowerCase()]=e.converters[i];o=d.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=d.shift(),o)if("*"===o)o=l;else if("*"!==l&&l!==o){if(i=u[l+" "+o]||u["* "+o],!i)for(a in u)if(s=a.split(" "),s[1]===o&&(i=u[l+" "+s[0]]||u["* "+s[0]],i)){!0===i?i=u[a]:!0!==u[a]&&(o=s[0],d.unshift(s[1]));break}if(!0!==i)if(i&&e.throws)t=i(t);else try{t=i(t)}catch(c){return{state:"parsererror",error:i?c:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}Jt.href=At.href,b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:At.href,type:"GET",isLocal:Bt.test(At.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Kt(Kt(e,b.ajaxSettings),t):Kt(b.ajaxSettings,e)},ajaxPrefilter:Gt(zt),ajaxTransport:Gt(Ut),ajax:function(e,t){"object"===typeof e&&(t=e,e=void 0),t=t||{};var n,r,o,i,s,l,u,d,c,m,h=b.ajaxSetup({},t),f=h.context||h,_=h.context&&(f.nodeType||f.jquery)?b(f):b.event,p=b.Deferred(),y=b.Callbacks("once memory"),g=h.statusCode||{},M={},L={},w="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(u){if(!i){i={};while(t=Ft.exec(o))i[t[1].toLowerCase()+" "]=(i[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=i[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=L[e.toLowerCase()]=L[e.toLowerCase()]||e,M[e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)k.always(e[k.status]);else for(t in e)g[t]=[g[t],e[t]];return this},abort:function(e){var t=e||w;return n&&n.abort(t),Y(0,t),this}};if(p.promise(k),h.url=((e||h.url||At.href)+"").replace(Vt,At.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(F)||[""],null==h.crossDomain){l=v.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Jt.protocol+"//"+Jt.host!==l.protocol+"//"+l.host}catch(D){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!==typeof h.data&&(h.data=b.param(h.data,h.traditional)),$t(zt,h,t,k),u)return k;for(c in d=b.event&&h.global,d&&0===b.active++&&b.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Wt.test(h.type),r=h.url.replace(It,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Pt,"+")):(m=h.url.slice(r.length),h.data&&(h.processData||"string"===typeof h.data)&&(r+=(Ct.test(r)?"&":"?")+h.data,delete h.data),!1===h.cache&&(r=r.replace(Rt,"$1"),m=(Ct.test(r)?"&":"?")+"_="+xt.guid+++m),h.url=r+m),h.ifModified&&(b.lastModified[r]&&k.setRequestHeader("If-Modified-Since",b.lastModified[r]),b.etag[r]&&k.setRequestHeader("If-None-Match",b.etag[r])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&k.setRequestHeader("Content-Type",h.contentType),k.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+qt+"; q=0.01":""):h.accepts["*"]),h.headers)k.setRequestHeader(c,h.headers[c]);if(h.beforeSend&&(!1===h.beforeSend.call(f,k,h)||u))return k.abort();if(w="abort",y.add(h.complete),k.done(h.success),k.fail(h.error),n=$t(Ut,h,t,k),n){if(k.readyState=1,d&&_.trigger("ajaxSend",[k,h]),u)return k;h.async&&h.timeout>0&&(s=a.setTimeout((function(){k.abort("timeout")}),h.timeout));try{u=!1,n.send(M,Y)}catch(D){if(u)throw D;Y(-1,D)}}else Y(-1,"No Transport");function Y(e,t,i,l){var c,m,M,v,L,w=t;u||(u=!0,s&&a.clearTimeout(s),n=void 0,o=l||"",k.readyState=e>0?4:0,c=e>=200&&e<300||304===e,i&&(v=Zt(h,k,i)),!c&&b.inArray("script",h.dataTypes)>-1&&b.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),v=Xt(h,v,k,c),c?(h.ifModified&&(L=k.getResponseHeader("Last-Modified"),L&&(b.lastModified[r]=L),L=k.getResponseHeader("etag"),L&&(b.etag[r]=L)),204===e||"HEAD"===h.type?w="nocontent":304===e?w="notmodified":(w=v.state,m=v.data,M=v.error,c=!M)):(M=w,!e&&w||(w="error",e<0&&(e=0))),k.status=e,k.statusText=(t||w)+"",c?p.resolveWith(f,[m,w,k]):p.rejectWith(f,[k,w,M]),k.statusCode(g),g=void 0,d&&_.trigger(c?"ajaxSuccess":"ajaxError",[k,h,c?m:M]),y.fireWith(f,[k,w]),d&&(_.trigger("ajaxComplete",[k,h]),--b.active||b.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return b.get(e,t,n,"json")},getScript:function(e,t){return b.get(e,void 0,t,"script")}}),b.each(["get","post"],(function(e,t){b[t]=function(e,n,r,a){return g(n)&&(a=a||r,r=n,n=void 0),b.ajax(b.extend({url:e,type:t,dataType:a,data:n,success:r},b.isPlainObject(e)&&e))}})),b.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),b._evalUrl=function(e,t,n){return b.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){b.globalEval(e,t,n)}})},b.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=b(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return g(e)?this.each((function(t){b(this).wrapInner(e.call(this,t))})):this.each((function(){var t=b(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(n){b(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){b(this).replaceWith(this.childNodes)})),this}}),b.expr.pseudos.hidden=function(e){return!b.expr.pseudos.visible(e)},b.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},b.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(e){}};var Qt={0:200,1223:204},en=b.ajaxSettings.xhr();y.cors=!!en&&"withCredentials"in en,y.ajax=en=!!en,b.ajaxTransport((function(e){var t,n;if(y.cors||en&&!e.crossDomain)return{send:function(r,o){var i,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)s[i]=e.xhrFields[i];for(i in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(i,r[i]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!==typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Qt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!==typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&a.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(l){if(t)throw l}},abort:function(){t&&t()}}})),b.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),b.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,a){t=b("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&a("error"===e.type?404:200,e.type)}),v.head.appendChild(t[0])},abort:function(){n&&n()}}}));var tn=[],nn=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||b.expando+"_"+xt.guid++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",(function(e,t,n){var r,o,i,s=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"===typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=g(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(nn,"$1"+r):!1!==e.jsonp&&(e.url+=(Ct.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return i||b.error(r+" was not called"),i[0]},e.dataTypes[0]="json",o=a[r],a[r]=function(){i=arguments},n.always((function(){void 0===o?b(a).removeProp(r):a[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,tn.push(r)),i&&g(o)&&o(i[0]),i=o=void 0})),"script"})),y.createHTMLDocument=function(){var e=v.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),b.parseHTML=function(e,t,n){return"string"!==typeof e?[]:("boolean"===typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?(t=v.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=v.location.href,t.head.appendChild(r)):t=v),a=E.exec(e),o=!n&&[],a?[t.createElement(a[1])]:(a=be([e],t,o),o&&o.length&&b(o).remove(),b.merge([],a.childNodes)));var r,a,o},b.fn.load=function(e,t,n){var r,a,o,i=this,s=e.indexOf(" ");return s>-1&&(r=kt(e.slice(s)),e=e.slice(0,s)),g(t)?(n=t,t=void 0):t&&"object"===typeof t&&(a="POST"),i.length>0&&b.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done((function(e){o=arguments,i.html(r?b("<div>").append(b.parseHTML(e)).find(r):e)})).always(n&&function(e,t){i.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},b.expr.pseudos.animated=function(e){return b.grep(b.timers,(function(t){return e===t.elem})).length},b.offset={setOffset:function(e,t,n){var r,a,o,i,s,l,u,d=b.css(e,"position"),c=b(e),m={};"static"===d&&(e.style.position="relative"),s=c.offset(),o=b.css(e,"top"),l=b.css(e,"left"),u=("absolute"===d||"fixed"===d)&&(o+l).indexOf("auto")>-1,u?(r=c.position(),i=r.top,a=r.left):(i=parseFloat(o)||0,a=parseFloat(l)||0),g(t)&&(t=t.call(e,n,b.extend({},s))),null!=t.top&&(m.top=t.top-s.top+i),null!=t.left&&(m.left=t.left-s.left+a),"using"in t?t.using.call(e,m):c.css(m)}},b.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){b.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],a={top:0,left:0};if("fixed"===b.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===b.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&(a=b(e).offset(),a.top+=b.css(e,"borderTopWidth",!0),a.left+=b.css(e,"borderLeftWidth",!0))}return{top:t.top-a.top-b.css(r,"marginTop",!0),left:t.left-a.left-b.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){var e=this.offsetParent;while(e&&"static"===b.css(e,"position"))e=e.offsetParent;return e||de}))}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;b.fn[e]=function(r){return G(this,(function(e,r,a){var o;if(M(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===a)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:a,n?a:o.pageYOffset):e[r]=a}),e,r,arguments.length)}})),b.each(["top","left"],(function(e,t){b.cssHooks[t]=Ge(y.pixelPosition,(function(e,n){if(n)return n=Je(e,t),Ve.test(n)?b(e).position()[t]+"px":n}))})),b.each({Height:"height",Width:"width"},(function(e,t){b.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){b.fn[r]=function(a,o){var i=arguments.length&&(n||"boolean"!==typeof a),s=n||(!0===a||!0===o?"margin":"border");return G(this,(function(t,n,a){var o;return M(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===a?b.css(t,n,s):b.style(t,n,a,s)}),t,i?a:void 0,i)}}))})),b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){b.fn[t]=function(e){return this.on(t,e)}})),b.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),b.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){b.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var rn=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;b.proxy=function(e,t){var n,r,a;if("string"===typeof t&&(n=e[t],t=e,e=n),g(e))return r=l.call(arguments,2),a=function(){return e.apply(t||this,r.concat(l.call(arguments)))},a.guid=e.guid=e.guid||b.guid++,a},b.holdReady=function(e){e?b.readyWait++:b.ready(!0)},b.isArray=Array.isArray,b.parseJSON=JSON.parse,b.nodeName=C,b.isFunction=g,b.isWindow=M,b.camelCase=X,b.type=k,b.now=Date.now,b.isNumeric=function(e){var t=b.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},b.trim=function(e){return null==e?"":(e+"").replace(rn,"")},n=[],r=function(){return b}.apply(t,n),void 0===r||(e.exports=r);var an=a.jQuery,on=a.$;return b.noConflict=function(e){return a.$===b&&(a.$=on),e&&a.jQuery===b&&(a.jQuery=an),b},"undefined"===typeof o&&(a.jQuery=a.$=b),b}))},2786:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
|
|
26
26
|
//! moment.js locale configuration
|
|
27
27
|
var t=e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return t}))},4130:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
|
|
28
28
|
//! moment.js locale configuration
|
|
@@ -292,9 +292,9 @@ var t=e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_
|
|
|
292
292
|
//! moment.js locale configuration
|
|
293
293
|
var t=e.defineLocale("zh-mo",{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:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",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}))},4152:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
|
|
294
294
|
//! moment.js locale configuration
|
|
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 i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(l(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)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(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,i,s=[],u=arguments.length;for(o=0;o<u;o++){if(r="","object"===typeof arguments[o]){for(i in r+="\n["+o+"] ",arguments[0])l(arguments[0],i)&&(r+=i+": "+arguments[0][i]+", ");r=r.slice(0,-2)}else r=arguments[o];s.push(r)}b(e+"\nArguments: "+Array.prototype.slice.call(s).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 E(e){var t,n;for(n in e)l(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 C(e,t){var n,r=f({},e);for(n in t)l(t,n)&&(s(e[n])&&s(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)l(e,n)&&!l(t,n)&&s(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)l(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)l(e,n)&&(t=ae(n),t&&(r[t]=e[n]));return r}var ie={};function se(e,t){ie[e]=t}function le(e){var t,n=[];for(t in e)l(e,t)&&n.push({unit:t,priority:ie[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function ue(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&&ue(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=le(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+/,Ee=/Z|[+-]\d\d:?\d\d/gi,Ce=/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 l(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&&l(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?ue(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"),se("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 it(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months["standalone"]}function st(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort["standalone"]}function lt(e,t,n){var r,a,o,i=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,i),-1!==a?a:null):(a=Ve.call(this._longMonthsParse,i),-1!==a?a:null):"MMM"===t?(a=Ve.call(this._shortMonthsParse,i),-1!==a?a:(a=Ve.call(this._longMonthsParse,i),-1!==a?a:null)):(a=Ve.call(this._longMonthsParse,i),-1!==a?a:(a=Ve.call(this._shortMonthsParse,i),-1!==a?a:null))}function ut(e,t,n){var r,a,o;if(this._monthsParseExact)return lt.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?(l(this,"_monthsRegex")||_t.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=at),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ft(e){return this._monthsParseExact?(l(this,"_monthsRegex")||_t.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(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 ue(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"),se("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 ue(this.year())}function Mt(e,t,n,r,a,o,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,a,o,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,a,o,i),s}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,i,s=(7+n-r)%7,l=Lt(e,r,a),u=1+7*(t-1)+s+l;return u<=0?(o=e-1,i=pt(o)+u):u>pt(e)?(o=e+1,i=u-pt(e)):(o=e,i=u),{year:o,dayOfYear:i}}function kt(e,t,n){var r,a,o=Lt(e.year(),t,n),i=Math.floor((e.dayOfYear()-o-1)/7)+1;return i<1?(a=e.year()-1,r=i+Yt(a,t,n)):i>Yt(e.year(),t,n)?(r=i-Yt(e.year(),t,n),a=e.year()+1):(a=e.year(),r=i),{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"),se("week",5),se("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 Et(e,t){return"string"!==typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"===typeof e?e:null):parseInt(e,10)}function Ct(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"),se("day",11),se("weekday",11),se("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=i(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,i=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,i),-1!==a?a:null):"ddd"===t?(a=Ve.call(this._shortWeekdaysParse,i),-1!==a?a:null):(a=Ve.call(this._minWeekdaysParse,i),-1!==a?a:null):"dddd"===t?(a=Ve.call(this._weekdaysParse,i),-1!==a?a:(a=Ve.call(this._shortWeekdaysParse,i),-1!==a?a:(a=Ve.call(this._minWeekdaysParse,i),-1!==a?a:null))):"ddd"===t?(a=Ve.call(this._shortWeekdaysParse,i),-1!==a?a:(a=Ve.call(this._weekdaysParse,i),-1!==a?a:(a=Ve.call(this._minWeekdaysParse,i),-1!==a?a:null))):(a=Ve.call(this._minWeekdaysParse,i),-1!==a?a:(a=Ve.call(this._weekdaysParse,i),-1!==a?a:(a=Ve.call(this._shortWeekdaysParse,i),-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=Et(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=Ct(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Gt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Pt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function $t(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=It),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(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,i=[],s=[],l=[],u=[];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,"")),i.push(r),s.push(a),l.push(o),u.push(r),u.push(a),u.push(o);i.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.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"),se("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,ln={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},un={},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===un[t]&&e&&e.exports&&fn(t))try{r=sn._abbr,void 0,n(6700)("./"+t),pn(r)}catch(a){un[t]=null}return un[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=ln;if(t.abbr=e,null!=un[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=un[e]._config;else if(null!=t.parentLocale)if(null!=un[t.parentLocale])r=un[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 un[e]=new j(C(r,t)),dn[e]&&dn[e].forEach((function(e){yn(e.name,e.config)})),pn(e),un[e]}return delete un[e],null}function gn(e,t){if(null!=t){var n,r,a=ln;null!=un[e]&&null!=un[e].parentLocale?un[e].set(C(un[e]._config,t)):(r=_n(e),null!=r&&(a=r._config),t=C(a,t),null==r&&(t.abbr=e),n=new j(t),n.parentLocale=un[e],un[e]=n),pn(e)}else null!=un[e]&&(null!=un[e].parentLocale?(un[e]=un[e].parentLocale,e===pn()&&pn(e)):null!=un[e]&&delete un[e]);return un[e]}function Mn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return sn;if(!i(e)){if(t=_n(e),t)return t;e=[e]}return hn(e)}function vn(){return T(un)}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,i,s=e._i,l=wn.exec(s)||kn.exec(s),u=bn.length,d=Dn.length;if(l){for(y(e).iso=!0,t=0,n=u;t<n;t++)if(bn[t][1].exec(l[1])){a=bn[t][0],r=!1!==bn[t][2];break}if(null==a)return void(e._isValid=!1);if(l[3]){for(t=0,n=d;t<n;t++)if(Dn[t][1].exec(l[3])){o=(l[2]||" ")+Dn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!Yn.exec(l[4]))return void(e._isValid=!1);i="Z"}e._f=a+(o||"")+(i||""),Wn(e)}else e._isValid=!1}function En(e,t,n,r,a,o){var i=[Cn(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return o&&i.push(parseInt(o,10)),i}function Cn(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=En(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,i=[];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]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[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,i),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,i,s,l,u;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(o=1,i=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)&&(l=!0)):(o=e._locale._week.dow,i=e._locale._week.doy,u=kt(Kn(),o,i),n=In(t.gg,e._a[ze],u.year),r=In(t.w,u.week),null!=t.d?(a=t.d,(a<0||a>6)&&(l=!0)):null!=t.e?(a=t.e+o,(t.e<0||t.e>6)&&(l=!0)):a=o),r<1||r>Yt(n,o,i)?y(e)._overflowWeeks=!0:null!=l?y(e)._overflowWeekday=!0:(s=wt(n,r,a,o,i),e._a[ze]=s.year,e._dayOfYear=s.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,i,s,l,u=""+e._i,d=u.length,c=0;for(r=U(e._f,e._locale).match(P)||[],l=r.length,t=0;t<l;t++)o=r[t],n=(u.match(Ne(o,e))||[])[0],n&&(i=u.substr(0,u.indexOf(n)),i.length>0&&y(e).unusedInput.push(i),u=u.slice(u.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,u.length>0&&y(e).unusedInput.push(u),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),s=y(e).era,null!==s&&(e._a[ze]=e._locale.erasConvertYear(s,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,i,s=!1,l=e._f.length;if(0===l)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<l;a++)o=0,i=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],Wn(t),g(t)&&(i=!0),o+=y(t).charsLeftOver,o+=10*y(t).unusedTokens.length,y(t).score=o,s?o<r&&(r=o,n=t):(null==r||o<r||i)&&(r=o,n=t,i&&(s=!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:i(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):i(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),Fn(e)):s(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),(s(e)&&u(e)||i(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&&i(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(l(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 ir(){return Ar(NaN)}function sr(e){var t=oe(e),n=t.year||0,r=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,i=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=ar(t),this._milliseconds=+d+1e3*u+6e4*l+1e3*s*60*60,this._days=+i+7*o,this._months=+a+3*r+12*n,this._data={},this._locale=Mn(),this._bubble()}function lr(e){return e instanceof sr}function ur(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),i=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&ce(e[r])!==ce(t[r]))&&i++;return i+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",Ce),He("ZZ",Ce),Fe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=hr(Ce,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(Ce,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(Ee,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,i=null;return lr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(i=Tr.exec(e))?(n="-"===i[1]?-1:1,o={y:0,d:ce(i[qe])*n,h:ce(i[Je])*n,m:ce(i[Ge])*n,s:ce(i[$e])*n,ms:ce(ur(1e3*i[Ke]))*n}):(i=Sr.exec(e))?(n="-"===i[1]?-1:1,o={y:xr(i[2],n),M:xr(i[3],n),w:xr(i[4],n),d:xr(i[5],n),h:xr(i[6],n),m:xr(i[7],n),s:xr(i[8],n)}):null==o?o={}:"object"===typeof o&&("from"in o||"to"in o)&&(a=Cr(Kn(o.from),Kn(o.to)),o={},o.ms=a.milliseconds,o.M=a.months),r=new sr(o),lr(e)&&l(e,"_locale")&&(r._locale=e._locale),lr(e)&&l(e,"_isValid")&&(r._isValid=e._isValid),r}function xr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Er(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 Cr(e,t){var n;return e.isValid()&&t.isValid()?(t=fr(t,e),e.isBefore(t)?n=Er(e,t):(n=Er(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,i=ur(t._days),s=ur(t._months);e.isValid()&&(r=null==r||r,s&&dt(e,he(e,"Month")+s*n),i&&fe(e,"Date",he(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&a.updateOffset(e,i||s))}Ar.fn=sr.prototype,Ar.invalid=ir;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=s(e)&&!u(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"],i=o.length;for(t=0;t<i;t+=1)n=o[t],a=a||l(e,n);return r&&a}function Fr(e){var t=i(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=s(e)&&!u(e),a=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],a=a||l(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",i=t&&(x(t[o])?t[o].call(this,n):t[o]);return this.format(i||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 ia(e){return this.to(Kn(),e)}function sa(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 la=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 ua(){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,i=this._eras||Mn("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":o=a(i[n].since).startOf("day"),i[n].since=o.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":o=a(i[n].until).startOf("day").valueOf(),i[n].until=o.valueOf();break}}return i}function xa(e,t,n){var r,a,o,i,s,l=this.eras();for(e=e.toUpperCase(),r=0,a=l.length;r<a;++r)if(o=l[r].name.toUpperCase(),i=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(s===e)return l[r];break}else if([o,i,s].indexOf(e)>=0)return l[r]}function Ea(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 Ca(){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 l(this,"_erasNameRegex")||Va.call(this),e?this._erasNameRegex:this._erasRegex}function Pa(e){return l(this,"_erasAbbrRegex")||Va.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ia(e){return l(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=[],i=this.eras();for(e=0,t=i.length;e<t;++e)r.push(Ie(i[e].name)),n.push(Ie(i[e].abbr)),a.push(Ie(i[e].narrow)),o.push(Ie(i[e].name)),o.push(Ie(i[e].abbr)),o.push(Ie(i[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),i=vt(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.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"),se("weekYear",1),se("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"),se("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"),se("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"),se("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"),se("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"),se("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"),se("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 io(e,t){t[Ke]=ce(1e3*("0."+e))}for(ro="S";ro.length<=9;ro+="S")Fe(ro,io);function so(){return this._isUTC?"UTC":""}function lo(){return this._isUTC?"Coordinated Universal Time":""}ao=me("Milliseconds",!1),B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var uo=k.prototype;function co(e){return Kn(1e3*e)}function mo(){return Kn.apply(null,arguments).parseZone()}function ho(e){return e}uo.add=Hr,uo.calendar=Vr,uo.clone=zr,uo.diff=Zr,uo.endOf=ga,uo.format=na,uo.from=ra,uo.fromNow=aa,uo.to=oa,uo.toNow=ia,uo.get=_e,uo.invalidAt=Ta,uo.isAfter=Ur,uo.isBefore=qr,uo.isBetween=Jr,uo.isSame=Gr,uo.isSameOrAfter=$r,uo.isSameOrBefore=Kr,uo.isValid=ba,uo.lang=la,uo.locale=sa,uo.localeData=ua,uo.max=Xn,uo.min=Zn,uo.parsingFlags=Da,uo.set=pe,uo.startOf=ya,uo.subtract=Nr,uo.toArray=wa,uo.toObject=ka,uo.toDate=La,uo.toISOString=ea,uo.inspect=ta,"undefined"!==typeof Symbol&&null!=Symbol.for&&(uo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),uo.toJSON=Ya,uo.toString=Qr,uo.unix=va,uo.valueOf=Ma,uo.creationData=Sa,uo.eraName=Ca,uo.eraNarrow=ja,uo.eraAbbr=Oa,uo.eraYear=Ha,uo.year=yt,uo.isLeapYear=gt,uo.weekYear=Ua,uo.isoWeekYear=qa,uo.quarter=uo.quarters=Qa,uo.month=ct,uo.daysInMonth=mt,uo.week=uo.weeks=At,uo.isoWeek=uo.isoWeeks=xt,uo.weeksInYear=$a,uo.weeksInWeekYear=Ka,uo.isoWeeksInYear=Ja,uo.isoWeeksInISOWeekYear=Ga,uo.date=eo,uo.day=uo.days=Ut,uo.weekday=qt,uo.isoWeekday=Jt,uo.dayOfYear=to,uo.hour=uo.hours=an,uo.minute=uo.minutes=no,uo.second=uo.seconds=oo,uo.millisecond=uo.milliseconds=ao,uo.utcOffset=pr,uo.utc=gr,uo.local=Mr,uo.parseZone=vr,uo.hasAlignedHourOffset=Lr,uo.isDST=wr,uo.isLocal=Yr,uo.isUtcOffset=br,uo.isUtc=Dr,uo.isUTC=Dr,uo.zoneAbbr=so,uo.zoneName=lo,uo.dates=D("dates accessor is deprecated. Use date instead.",eo),uo.months=D("months accessor is deprecated. Use month instead",ct),uo.years=D("years accessor is deprecated. Use year instead",yt),uo.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yr),uo.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(),i=e?o._week.dow:0,s=[];if(null!=n)return _o(t,(n+i)%7,r,"day");for(a=0;a<7;a++)s[a]=_o(t,(a+i)%7,r,"day");return s}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=E,fo.eras=Aa,fo.erasParse=xa,fo.erasConvertYear=Ea,fo.erasAbbrRegex=Pa,fo.erasNameRegex=Na,fo.erasNarrowRegex=Ia,fo.months=it,fo.monthsShort=st,fo.monthsParse=ut,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,i=this._days,s=this._months,l=this._data;return o>=0&&i>=0&&s>=0||o<=0&&i<=0&&s<=0||(o+=864e5*So(Eo(s)+i),i=0,s=0),l.milliseconds=o%1e3,e=de(o/1e3),l.seconds=e%60,t=de(e/60),l.minutes=t%60,n=de(t/60),l.hours=n%24,i+=de(n/24),a=de(xo(i)),s+=a,i-=So(Eo(a)),r=de(s/12),s%=12,l.days=i,l.months=s,l.years=r,this}function xo(e){return 4800*e/146097}function Eo(e){return 146097*e/4800}function Co(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(Eo(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 ei(){return de(this.days()/7)}var ti=Math.round,ni={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ri(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function ai(e,t,n,r){var a=Ar(e).abs(),o=ti(a.as("s")),i=ti(a.as("m")),s=ti(a.as("h")),l=ti(a.as("d")),u=ti(a.as("M")),d=ti(a.as("w")),c=ti(a.as("y")),m=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||i<=1&&["m"]||i<n.m&&["mm",i]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(m=m||d<=1&&["w"]||d<n.w&&["ww",d]),m=m||u<=1&&["M"]||u<n.M&&["MM",u]||c<=1&&["y"]||["yy",c],m[2]=t,m[3]=+e>0,m[4]=r,ri.apply(null,m)}function oi(e){return void 0===e?ti:"function"===typeof e&&(ti=e,!0)}function ii(e,t){return void 0!==ni[e]&&(void 0===t?ni[e]:(ni[e]=t,"s"===e&&(ni.ss=t-1),!0))}function si(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,a=!1,o=ni;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(a=e),"object"===typeof t&&(o=Object.assign({},ni,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=this.localeData(),r=ai(this,!a,o,n),a&&(r=n.pastFuture(+this,r)),n.postformat(r)}var li=Math.abs;function ui(e){return(e>0)-(e<0)||+e}function di(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,o,i,s,l=li(this._milliseconds)/1e3,u=li(this._days),d=li(this._months),c=this.asSeconds();return c?(e=de(l/60),t=de(e/60),l%=60,e%=60,n=de(d/12),d%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",a=c<0?"-":"",o=ui(this._months)!==ui(c)?"-":"",i=ui(this._days)!==ui(c)?"-":"",s=ui(this._milliseconds)!==ui(c)?"-":"",a+"P"+(n?o+n+"Y":"")+(d?o+d+"M":"")+(u?i+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var ci=sr.prototype;return ci.isValid=or,ci.abs=Yo,ci.add=Do,ci.subtract=To,ci.as=Co,ci.asMilliseconds=Ho,ci.asSeconds=No,ci.asMinutes=Po,ci.asHours=Io,ci.asDays=Ro,ci.asWeeks=Fo,ci.asMonths=Bo,ci.asQuarters=Wo,ci.asYears=Vo,ci.valueOf=jo,ci._bubble=Ao,ci.clone=zo,ci.get=Uo,ci.milliseconds=Jo,ci.seconds=Go,ci.minutes=$o,ci.hours=Ko,ci.days=Zo,ci.weeks=ei,ci.months=Xo,ci.years=Qo,ci.humanize=si,ci.toISOString=di,ci.toString=di,ci.toJSON=di,ci.locale=sa,ci.localeData=ua,ci.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",di),ci.lang=la,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))})),
|
|
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 i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(l(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)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(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,i,s=[],u=arguments.length;for(o=0;o<u;o++){if(r="","object"===typeof arguments[o]){for(i in r+="\n["+o+"] ",arguments[0])l(arguments[0],i)&&(r+=i+": "+arguments[0][i]+", ");r=r.slice(0,-2)}else r=arguments[o];s.push(r)}b(e+"\nArguments: "+Array.prototype.slice.call(s).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)l(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)l(t,n)&&(s(e[n])&&s(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)l(e,n)&&!l(t,n)&&s(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)l(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)l(e,n)&&(t=ae(n),t&&(r[t]=e[n]));return r}var ie={};function se(e,t){ie[e]=t}function le(e){var t,n=[];for(t in e)l(e,t)&&n.push({unit:t,priority:ie[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function ue(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&&ue(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=le(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 l(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&&l(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?ue(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"),se("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 it(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months["standalone"]}function st(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort["standalone"]}function lt(e,t,n){var r,a,o,i=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,i),-1!==a?a:null):(a=Ve.call(this._longMonthsParse,i),-1!==a?a:null):"MMM"===t?(a=Ve.call(this._shortMonthsParse,i),-1!==a?a:(a=Ve.call(this._longMonthsParse,i),-1!==a?a:null)):(a=Ve.call(this._longMonthsParse,i),-1!==a?a:(a=Ve.call(this._shortMonthsParse,i),-1!==a?a:null))}function ut(e,t,n){var r,a,o;if(this._monthsParseExact)return lt.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?(l(this,"_monthsRegex")||_t.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=at),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ft(e){return this._monthsParseExact?(l(this,"_monthsRegex")||_t.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(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 ue(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"),se("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 ue(this.year())}function Mt(e,t,n,r,a,o,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,a,o,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,a,o,i),s}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,i,s=(7+n-r)%7,l=Lt(e,r,a),u=1+7*(t-1)+s+l;return u<=0?(o=e-1,i=pt(o)+u):u>pt(e)?(o=e+1,i=u-pt(e)):(o=e,i=u),{year:o,dayOfYear:i}}function kt(e,t,n){var r,a,o=Lt(e.year(),t,n),i=Math.floor((e.dayOfYear()-o-1)/7)+1;return i<1?(a=e.year()-1,r=i+Yt(a,t,n)):i>Yt(e.year(),t,n)?(r=i-Yt(e.year(),t,n),a=e.year()+1):(a=e.year(),r=i),{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"),se("week",5),se("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"),se("day",11),se("weekday",11),se("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=i(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,i=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,i),-1!==a?a:null):"ddd"===t?(a=Ve.call(this._shortWeekdaysParse,i),-1!==a?a:null):(a=Ve.call(this._minWeekdaysParse,i),-1!==a?a:null):"dddd"===t?(a=Ve.call(this._weekdaysParse,i),-1!==a?a:(a=Ve.call(this._shortWeekdaysParse,i),-1!==a?a:(a=Ve.call(this._minWeekdaysParse,i),-1!==a?a:null))):"ddd"===t?(a=Ve.call(this._shortWeekdaysParse,i),-1!==a?a:(a=Ve.call(this._weekdaysParse,i),-1!==a?a:(a=Ve.call(this._minWeekdaysParse,i),-1!==a?a:null))):(a=Ve.call(this._minWeekdaysParse,i),-1!==a?a:(a=Ve.call(this._weekdaysParse,i),-1!==a?a:(a=Ve.call(this._shortWeekdaysParse,i),-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?(l(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Pt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function $t(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=It),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(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,i=[],s=[],l=[],u=[];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,"")),i.push(r),s.push(a),l.push(o),u.push(r),u.push(a),u.push(o);i.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.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"),se("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,ln={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},un={},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===un[t]&&e&&e.exports&&fn(t))try{r=sn._abbr,void 0,n(6700)("./"+t),pn(r)}catch(a){un[t]=null}return un[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=ln;if(t.abbr=e,null!=un[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=un[e]._config;else if(null!=t.parentLocale)if(null!=un[t.parentLocale])r=un[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 un[e]=new j(E(r,t)),dn[e]&&dn[e].forEach((function(e){yn(e.name,e.config)})),pn(e),un[e]}return delete un[e],null}function gn(e,t){if(null!=t){var n,r,a=ln;null!=un[e]&&null!=un[e].parentLocale?un[e].set(E(un[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=un[e],un[e]=n),pn(e)}else null!=un[e]&&(null!=un[e].parentLocale?(un[e]=un[e].parentLocale,e===pn()&&pn(e)):null!=un[e]&&delete un[e]);return un[e]}function Mn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return sn;if(!i(e)){if(t=_n(e),t)return t;e=[e]}return hn(e)}function vn(){return T(un)}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,i,s=e._i,l=wn.exec(s)||kn.exec(s),u=bn.length,d=Dn.length;if(l){for(y(e).iso=!0,t=0,n=u;t<n;t++)if(bn[t][1].exec(l[1])){a=bn[t][0],r=!1!==bn[t][2];break}if(null==a)return void(e._isValid=!1);if(l[3]){for(t=0,n=d;t<n;t++)if(Dn[t][1].exec(l[3])){o=(l[2]||" ")+Dn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!Yn.exec(l[4]))return void(e._isValid=!1);i="Z"}e._f=a+(o||"")+(i||""),Wn(e)}else e._isValid=!1}function Cn(e,t,n,r,a,o){var i=[En(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return o&&i.push(parseInt(o,10)),i}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,i=[];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]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[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,i),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,i,s,l,u;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(o=1,i=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)&&(l=!0)):(o=e._locale._week.dow,i=e._locale._week.doy,u=kt(Kn(),o,i),n=In(t.gg,e._a[ze],u.year),r=In(t.w,u.week),null!=t.d?(a=t.d,(a<0||a>6)&&(l=!0)):null!=t.e?(a=t.e+o,(t.e<0||t.e>6)&&(l=!0)):a=o),r<1||r>Yt(n,o,i)?y(e)._overflowWeeks=!0:null!=l?y(e)._overflowWeekday=!0:(s=wt(n,r,a,o,i),e._a[ze]=s.year,e._dayOfYear=s.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,i,s,l,u=""+e._i,d=u.length,c=0;for(r=U(e._f,e._locale).match(P)||[],l=r.length,t=0;t<l;t++)o=r[t],n=(u.match(Ne(o,e))||[])[0],n&&(i=u.substr(0,u.indexOf(n)),i.length>0&&y(e).unusedInput.push(i),u=u.slice(u.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,u.length>0&&y(e).unusedInput.push(u),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),s=y(e).era,null!==s&&(e._a[ze]=e._locale.erasConvertYear(s,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,i,s=!1,l=e._f.length;if(0===l)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<l;a++)o=0,i=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],Wn(t),g(t)&&(i=!0),o+=y(t).charsLeftOver,o+=10*y(t).unusedTokens.length,y(t).score=o,s?o<r&&(r=o,n=t):(null==r||o<r||i)&&(r=o,n=t,i&&(s=!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:i(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):i(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),Fn(e)):s(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),(s(e)&&u(e)||i(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&&i(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(l(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 ir(){return Ar(NaN)}function sr(e){var t=oe(e),n=t.year||0,r=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,i=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=ar(t),this._milliseconds=+d+1e3*u+6e4*l+1e3*s*60*60,this._days=+i+7*o,this._months=+a+3*r+12*n,this._data={},this._locale=Mn(),this._bubble()}function lr(e){return e instanceof sr}function ur(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),i=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&ce(e[r])!==ce(t[r]))&&i++;return i+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,i=null;return lr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(i=Tr.exec(e))?(n="-"===i[1]?-1:1,o={y:0,d:ce(i[qe])*n,h:ce(i[Je])*n,m:ce(i[Ge])*n,s:ce(i[$e])*n,ms:ce(ur(1e3*i[Ke]))*n}):(i=Sr.exec(e))?(n="-"===i[1]?-1:1,o={y:xr(i[2],n),M:xr(i[3],n),w:xr(i[4],n),d:xr(i[5],n),h:xr(i[6],n),m:xr(i[7],n),s:xr(i[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 sr(o),lr(e)&&l(e,"_locale")&&(r._locale=e._locale),lr(e)&&l(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,i=ur(t._days),s=ur(t._months);e.isValid()&&(r=null==r||r,s&&dt(e,he(e,"Month")+s*n),i&&fe(e,"Date",he(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&a.updateOffset(e,i||s))}Ar.fn=sr.prototype,Ar.invalid=ir;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=s(e)&&!u(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"],i=o.length;for(t=0;t<i;t+=1)n=o[t],a=a||l(e,n);return r&&a}function Fr(e){var t=i(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=s(e)&&!u(e),a=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],a=a||l(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",i=t&&(x(t[o])?t[o].call(this,n):t[o]);return this.format(i||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 ia(e){return this.to(Kn(),e)}function sa(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 la=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 ua(){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,i=this._eras||Mn("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":o=a(i[n].since).startOf("day"),i[n].since=o.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":o=a(i[n].until).startOf("day").valueOf(),i[n].until=o.valueOf();break}}return i}function xa(e,t,n){var r,a,o,i,s,l=this.eras();for(e=e.toUpperCase(),r=0,a=l.length;r<a;++r)if(o=l[r].name.toUpperCase(),i=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(s===e)return l[r];break}else if([o,i,s].indexOf(e)>=0)return l[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 l(this,"_erasNameRegex")||Va.call(this),e?this._erasNameRegex:this._erasRegex}function Pa(e){return l(this,"_erasAbbrRegex")||Va.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ia(e){return l(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=[],i=this.eras();for(e=0,t=i.length;e<t;++e)r.push(Ie(i[e].name)),n.push(Ie(i[e].abbr)),a.push(Ie(i[e].narrow)),o.push(Ie(i[e].name)),o.push(Ie(i[e].abbr)),o.push(Ie(i[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),i=vt(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.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"),se("weekYear",1),se("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"),se("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"),se("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"),se("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"),se("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"),se("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"),se("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 io(e,t){t[Ke]=ce(1e3*("0."+e))}for(ro="S";ro.length<=9;ro+="S")Fe(ro,io);function so(){return this._isUTC?"UTC":""}function lo(){return this._isUTC?"Coordinated Universal Time":""}ao=me("Milliseconds",!1),B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var uo=k.prototype;function co(e){return Kn(1e3*e)}function mo(){return Kn.apply(null,arguments).parseZone()}function ho(e){return e}uo.add=Hr,uo.calendar=Vr,uo.clone=zr,uo.diff=Zr,uo.endOf=ga,uo.format=na,uo.from=ra,uo.fromNow=aa,uo.to=oa,uo.toNow=ia,uo.get=_e,uo.invalidAt=Ta,uo.isAfter=Ur,uo.isBefore=qr,uo.isBetween=Jr,uo.isSame=Gr,uo.isSameOrAfter=$r,uo.isSameOrBefore=Kr,uo.isValid=ba,uo.lang=la,uo.locale=sa,uo.localeData=ua,uo.max=Xn,uo.min=Zn,uo.parsingFlags=Da,uo.set=pe,uo.startOf=ya,uo.subtract=Nr,uo.toArray=wa,uo.toObject=ka,uo.toDate=La,uo.toISOString=ea,uo.inspect=ta,"undefined"!==typeof Symbol&&null!=Symbol.for&&(uo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),uo.toJSON=Ya,uo.toString=Qr,uo.unix=va,uo.valueOf=Ma,uo.creationData=Sa,uo.eraName=Ea,uo.eraNarrow=ja,uo.eraAbbr=Oa,uo.eraYear=Ha,uo.year=yt,uo.isLeapYear=gt,uo.weekYear=Ua,uo.isoWeekYear=qa,uo.quarter=uo.quarters=Qa,uo.month=ct,uo.daysInMonth=mt,uo.week=uo.weeks=At,uo.isoWeek=uo.isoWeeks=xt,uo.weeksInYear=$a,uo.weeksInWeekYear=Ka,uo.isoWeeksInYear=Ja,uo.isoWeeksInISOWeekYear=Ga,uo.date=eo,uo.day=uo.days=Ut,uo.weekday=qt,uo.isoWeekday=Jt,uo.dayOfYear=to,uo.hour=uo.hours=an,uo.minute=uo.minutes=no,uo.second=uo.seconds=oo,uo.millisecond=uo.milliseconds=ao,uo.utcOffset=pr,uo.utc=gr,uo.local=Mr,uo.parseZone=vr,uo.hasAlignedHourOffset=Lr,uo.isDST=wr,uo.isLocal=Yr,uo.isUtcOffset=br,uo.isUtc=Dr,uo.isUTC=Dr,uo.zoneAbbr=so,uo.zoneName=lo,uo.dates=D("dates accessor is deprecated. Use date instead.",eo),uo.months=D("months accessor is deprecated. Use month instead",ct),uo.years=D("years accessor is deprecated. Use year instead",yt),uo.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yr),uo.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(),i=e?o._week.dow:0,s=[];if(null!=n)return _o(t,(n+i)%7,r,"day");for(a=0;a<7;a++)s[a]=_o(t,(a+i)%7,r,"day");return s}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=it,fo.monthsShort=st,fo.monthsParse=ut,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,i=this._days,s=this._months,l=this._data;return o>=0&&i>=0&&s>=0||o<=0&&i<=0&&s<=0||(o+=864e5*So(Co(s)+i),i=0,s=0),l.milliseconds=o%1e3,e=de(o/1e3),l.seconds=e%60,t=de(e/60),l.minutes=t%60,n=de(t/60),l.hours=n%24,i+=de(n/24),a=de(xo(i)),s+=a,i-=So(Co(a)),r=de(s/12),s%=12,l.days=i,l.months=s,l.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 ei(){return de(this.days()/7)}var ti=Math.round,ni={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ri(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function ai(e,t,n,r){var a=Ar(e).abs(),o=ti(a.as("s")),i=ti(a.as("m")),s=ti(a.as("h")),l=ti(a.as("d")),u=ti(a.as("M")),d=ti(a.as("w")),c=ti(a.as("y")),m=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||i<=1&&["m"]||i<n.m&&["mm",i]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(m=m||d<=1&&["w"]||d<n.w&&["ww",d]),m=m||u<=1&&["M"]||u<n.M&&["MM",u]||c<=1&&["y"]||["yy",c],m[2]=t,m[3]=+e>0,m[4]=r,ri.apply(null,m)}function oi(e){return void 0===e?ti:"function"===typeof e&&(ti=e,!0)}function ii(e,t){return void 0!==ni[e]&&(void 0===t?ni[e]:(ni[e]=t,"s"===e&&(ni.ss=t-1),!0))}function si(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,a=!1,o=ni;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(a=e),"object"===typeof t&&(o=Object.assign({},ni,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=this.localeData(),r=ai(this,!a,o,n),a&&(r=n.pastFuture(+this,r)),n.postformat(r)}var li=Math.abs;function ui(e){return(e>0)-(e<0)||+e}function di(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,o,i,s,l=li(this._milliseconds)/1e3,u=li(this._days),d=li(this._months),c=this.asSeconds();return c?(e=de(l/60),t=de(e/60),l%=60,e%=60,n=de(d/12),d%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",a=c<0?"-":"",o=ui(this._months)!==ui(c)?"-":"",i=ui(this._days)!==ui(c)?"-":"",s=ui(this._milliseconds)!==ui(c)?"-":"",a+"P"+(n?o+n+"Y":"")+(d?o+d+"M":"")+(u?i+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var ci=sr.prototype;return ci.isValid=or,ci.abs=Yo,ci.add=Do,ci.subtract=To,ci.as=Eo,ci.asMilliseconds=Ho,ci.asSeconds=No,ci.asMinutes=Po,ci.asHours=Io,ci.asDays=Ro,ci.asWeeks=Fo,ci.asMonths=Bo,ci.asQuarters=Wo,ci.asYears=Vo,ci.valueOf=jo,ci._bubble=Ao,ci.clone=zo,ci.get=Uo,ci.milliseconds=Jo,ci.seconds=Go,ci.minutes=$o,ci.hours=Ko,ci.days=Zo,ci.weeks=ei,ci.months=Xo,ci.years=Qo,ci.humanize=si,ci.toISOString=di,ci.toString=di,ci.toJSON=di,ci.locale=sa,ci.localeData=ua,ci.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",di),ci.lang=la,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=uo,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=lr,a.monthsShort=Mo,a.weekdaysMin=wo,a.defineLocale=yn,a.updateLocale=gn,a.locales=vn,a.weekdaysShort=Lo,a.normalizeUnits=ae,a.relativeTimeRounding=oi,a.relativeTimeThreshold=ii,a.calendarFormat=Wr,a.prototype=uo,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,i=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"===typeof l.get?l.get:null,d=s&&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,E=Object.getOwnPropertySymbols,C="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||!C)return!1;try{return C.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,s){var l=r||{};if(Q(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Q(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!Q(l,"customInspect")||l.customInspect;if("boolean"!==typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Q(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Q(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=l.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 ue(t,l);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 l.depth?5:l.depth;if("undefined"===typeof a&&(a=0),a>=_&&_>0&&"object"===typeof t)return V(t)?"[Array]":"[Object]";var p=_e(l,a);if("undefined"===typeof s)s=[];else if(ne(s,t)>=0)return"[Circular]";function g(t,n,r){if(n&&(s=S.call(s),s.push(n)),r){var o={depth:l.depth};return Q(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),e(t,o,a+1,s)}return e(t,l,a+1,s)}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"):C.call(t);return"object"!==typeof t||j?k:ce(k)}if(le(t)){for(var b="<"+Y.call(String(t.nodeName)),A=t.attributes||[],E=0;E<A.length;E++)b+=" "+A[E].name+"="+B(W(A[E].value),"double",l);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 i&&i.call(t,(function(e,n){de.push(g(n,t,!0)+" => "+g(e,t))})),he("Map",o.call(t),de,p)}if(ie(t)){var ge=[];return d&&d.call(t,(function(e){ge.push(g(e,t))})),he("Set",u.call(t),ge,p)}if(ae(t))return me("WeakMap");if(se(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{u.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 ie(e){if(!u||!e||"object"!==typeof e)return!1;try{u.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}function se(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 le(e){return!(!e||"object"!==typeof e)&&("undefined"!==typeof HTMLElement&&e instanceof HTMLElement||"string"===typeof e.nodeName&&"function"===typeof e.getAttribute)}function ue(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return ue(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,i="function"===typeof E?E(e):[];if(j){o={};for(var s=0;s<i.length;s++)o["$"+i[s]]=i[s]}for(var l in e)Q(e,l)&&(n&&String(Number(l))===l&&l<e.length||j&&o["$"+l]instanceof Symbol||(b.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"===typeof E)for(var u=0;u<i.length;u++)H.call(e,i[u])&&r.push("["+t(i[u])+"]: "+t(e[i[u]],e));return r}},7771:(e,t,n)=>{"use strict";var r=n(210),a=n(2296),o=n(1044)(),i=n(7296),s=r("%TypeError%"),l=r("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,u=!0;if("length"in e&&i){var d=i(e,"length");d&&!d.configurable&&(r=!1),d&&!d.writable&&(u=!1)}return(r||u||!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),i=r("%TypeError%"),s=r("%WeakMap%",!0),l=r("%Map%",!0),u=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 i("Side channel does not contain "+o(e))},get:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return u(e,r)}else if(l){if(t)return m(t,r)}else if(n)return p(n,r)},has:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return c(e,r)}else if(l){if(t)return f(t,r)}else if(n)return g(n,r);return!1},set:function(r,a){s&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new s),d(e,r,a)):l?(t||(t=new l),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:()=>l,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 i=/^(?:[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 s(e){return"string"===typeof e&&i.test(e)}const l=s;for(var u=[],d=0;d<256;++d)u.push((d+256).toString(16).substr(1));function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!l(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 i=e.node||h,s=void 0!==e.clockseq?e.clockseq:f;if(null==i||null==s){var l=e.random||(e.rng||o)();null==i&&(i=h=[1|l[0],l[1],l[2],l[3],l[4],l[5]]),null==s&&(s=f=16383&(l[6]<<8|l[7]))}var u=void 0!==e.msecs?e.msecs:Date.now(),d=void 0!==e.nsecs?e.nsecs:p+1,c=u-_+(d-p)/1e4;if(c<0&&void 0===e.clockseq&&(s=s+1&16383),(c<0||u>_)&&void 0===e.nsecs&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_=u,p=d,f=s,u+=122192928e5;var y=(1e4*(268435455&u)+d)%4294967296;a[r++]=y>>>24&255,a[r++]=y>>>16&255,a[r++]=y>>>8&255,a[r++]=255&y;var g=u/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++]=s>>>8|128,a[r++]=255&s;for(var M=0;M<6;++M)a[r+M]=i[M];return t||m(a)}const g=y;function M(e){if(!l(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 i=new Uint8Array(16+e.length);if(i.set(r),i.set(e,r.length),i=n(i),i[6]=15&i[6]|t,i[8]=63&i[8]|128,a){o=o||0;for(var s=0;s<16;++s)a[o+s]=i[s];return a}return m(i)}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,i=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(i)}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,i=0;i<e.length;i+=16){var s=n,l=r,u=a,d=o;n=j(n,r,a,o,e[i],7,-680876936),o=j(o,n,r,a,e[i+1],12,-389564586),a=j(a,o,n,r,e[i+2],17,606105819),r=j(r,a,o,n,e[i+3],22,-1044525330),n=j(n,r,a,o,e[i+4],7,-176418897),o=j(o,n,r,a,e[i+5],12,1200080426),a=j(a,o,n,r,e[i+6],17,-1473231341),r=j(r,a,o,n,e[i+7],22,-45705983),n=j(n,r,a,o,e[i+8],7,1770035416),o=j(o,n,r,a,e[i+9],12,-1958414417),a=j(a,o,n,r,e[i+10],17,-42063),r=j(r,a,o,n,e[i+11],22,-1990404162),n=j(n,r,a,o,e[i+12],7,1804603682),o=j(o,n,r,a,e[i+13],12,-40341101),a=j(a,o,n,r,e[i+14],17,-1502002290),r=j(r,a,o,n,e[i+15],22,1236535329),n=O(n,r,a,o,e[i+1],5,-165796510),o=O(o,n,r,a,e[i+6],9,-1069501632),a=O(a,o,n,r,e[i+11],14,643717713),r=O(r,a,o,n,e[i],20,-373897302),n=O(n,r,a,o,e[i+5],5,-701558691),o=O(o,n,r,a,e[i+10],9,38016083),a=O(a,o,n,r,e[i+15],14,-660478335),r=O(r,a,o,n,e[i+4],20,-405537848),n=O(n,r,a,o,e[i+9],5,568446438),o=O(o,n,r,a,e[i+14],9,-1019803690),a=O(a,o,n,r,e[i+3],14,-187363961),r=O(r,a,o,n,e[i+8],20,1163531501),n=O(n,r,a,o,e[i+13],5,-1444681467),o=O(o,n,r,a,e[i+2],9,-51403784),a=O(a,o,n,r,e[i+7],14,1735328473),r=O(r,a,o,n,e[i+12],20,-1926607734),n=H(n,r,a,o,e[i+5],4,-378558),o=H(o,n,r,a,e[i+8],11,-2022574463),a=H(a,o,n,r,e[i+11],16,1839030562),r=H(r,a,o,n,e[i+14],23,-35309556),n=H(n,r,a,o,e[i+1],4,-1530992060),o=H(o,n,r,a,e[i+4],11,1272893353),a=H(a,o,n,r,e[i+7],16,-155497632),r=H(r,a,o,n,e[i+10],23,-1094730640),n=H(n,r,a,o,e[i+13],4,681279174),o=H(o,n,r,a,e[i],11,-358537222),a=H(a,o,n,r,e[i+3],16,-722521979),r=H(r,a,o,n,e[i+6],23,76029189),n=H(n,r,a,o,e[i+9],4,-640364487),o=H(o,n,r,a,e[i+12],11,-421815835),a=H(a,o,n,r,e[i+15],16,530742520),r=H(r,a,o,n,e[i+2],23,-995338651),n=N(n,r,a,o,e[i],6,-198630844),o=N(o,n,r,a,e[i+7],10,1126891415),a=N(a,o,n,r,e[i+14],15,-1416354905),r=N(r,a,o,n,e[i+5],21,-57434055),n=N(n,r,a,o,e[i+12],6,1700485571),o=N(o,n,r,a,e[i+3],10,-1894986606),a=N(a,o,n,r,e[i+10],15,-1051523),r=N(r,a,o,n,e[i+1],21,-2054922799),n=N(n,r,a,o,e[i+8],6,1873313359),o=N(o,n,r,a,e[i+15],10,-30611744),a=N(a,o,n,r,e[i+6],15,-1560198380),r=N(r,a,o,n,e[i+13],21,1309151649),n=N(n,r,a,o,e[i+4],6,-145523070),o=N(o,n,r,a,e[i+11],10,-1120210379),a=N(a,o,n,r,e[i+2],15,718787259),r=N(r,a,o,n,e[i+9],21,-343485551),n=x(n,s),r=x(r,l),a=x(a,u),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 E(e,t){return e<<t|e>>>32-t}function C(e,t,n,r,a,o){return x(E(x(x(t,e),x(r,o)),a),n)}function j(e,t,n,r,a,o,i){return C(t&n|~t&r,e,t,a,o,i)}function O(e,t,n,r,a,o,i){return C(t&r|n&~r,e,t,a,o,i)}function H(e,t,n,r,a,o,i){return C(t^n^r,e,t,a,o,i)}function N(e,t,n,r,a,o,i){return C(n^(t|~r),e,t,a,o,i)}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,i=Math.ceil(o/16),s=new Array(i),l=0;l<i;++l){for(var u=new Uint32Array(16),d=0;d<16;++d)u[d]=e[64*l+4*d]<<24|e[64*l+4*d+1]<<16|e[64*l+4*d+2]<<8|e[64*l+4*d+3];s[l]=u}s[i-1][14]=8*(e.length-1)/Math.pow(2,32),s[i-1][14]=Math.floor(s[i-1][14]),s[i-1][15]=8*(e.length-1)&4294967295;for(var c=0;c<i;++c){for(var m=new Uint32Array(80),h=0;h<16;++h)m[h]=s[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(!l(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:()=>ji,ermAttach:()=>Ti,ermForm:()=>ue,ermFormHelper:()=>Ai,ermList:()=>O,ermListHelper:()=>Si}),"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 i="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==",s=e=>((0,n.pushScopeId)("data-v-160fcaec"),e=e(),(0,n.popScopeId)(),e),l={class:"myClass"},u=s((()=>(0,n.createElementVNode)("img",{src:i,style:{width:"150px",height:"150px","border-radius":"50%"}},null,-1))),d=s((()=>(0,n.createElementVNode)("h4",{style:{color:"darkgray","margin-top":"0px"}},"暂无数据",-1))),c=[u,d];function m(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("div",l,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"},blankAfterCaption:{type:Boolean,default:!1},fontSize:{type:String,default:"default"},fontFamily:{type:String,default:"default"}},emits:["leftIconClick","mainClick","rightIconClick","leftIconHold","rightIconHold","pullRefresh","pullUpdate"],setup(e,{expose:t,emit:r}){const a=(0,n.ref)(["1"]),i=e,s=r;t({endLoad:P,selectAll:W,selectNone:V,getSelectedRows:z,getTableName:X});i.maxHeight&&i.maxHeight;var l=(0,n.ref)("0%"),u=(0,n.ref)("100%"),d=(0,n.ref)("0%");function c(){i.showLeft&&i.showRight?(l.value="15%",d.value="15%",u.value="70%"):i.showLeft?(l.value="15%",u.value="85%"):i.showRight&&(d.value="15%",u.value="85%"),console.log(l,d,u)}(0,n.watch)((()=>[i.showLeft,i.showRight]),(([e,t],[n,r])=>{c()}));const m=(0,n.ref)([]);var h={},f=[];async function _(){console.log("erm初始化---formName ",i.formName),console.log("erm初始化---functionId ",i.functionId),console.log("erm初始化---initSvc ",i.initSvc),h={};const e=new o.EI.EIInfo,t=e.addBlock(new o.EI.EiBlock,"");t.pushData({DEFAULT_COMPANY_CODE:"",FORM_NAME:i.formName,TYPE_CODE:"Web",FUNCTION_IDS:i.functionId,DATASET_NAME:"#",TABLE_NAMES:""},!0),console.log("eiblk",t),await o.EIManager.callService("",i.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.HEAD_FONTNAME.toString().trim()&&"系统默认"!==e.HEAD_FONTNAME.toString().trim()||("default"===i.fontFamily?e.HEAD_FONTNAME="阿里巴巴普惠体Regular":e.HEAD_FONTNAME=i.fontFamily),""!==e.CELL_FONTNAME.toString().trim()&&"系统默认"!==e.CELL_FONTNAME.toString().trim()||("default"===i.fontFamily?e.CELL_FONTNAME="阿里巴巴普惠体Regular":e.CELL_FONTNAME=i.fontFamily),"-1"===e.HEAD_FONTSIZE.toString().trim()||""===e.HEAD_FONTSIZE.toString().trim()?"default"===i.fontSize?e.HEAD_FONTSIZE="15px":e.HEAD_FONTSIZE=i.fontSize:e.HEAD_FONTSIZE+="px","-1"===e.CELL_FONTSIZE.toString().trim()||""===e.CELL_FONTSIZE.toString().trim()?"default"===i.fontSize?e.CELL_FONTSIZE="15px":e.CELL_FONTSIZE=i.fontSize:e.CELL_FONTSIZE+="px",e.HEAD_FONTNAME+=",阿里巴巴普惠体Regular",e.CELL_FONTNAME+=",阿里巴巴普惠体Regular",e.DATASET_NAME=n[0]?.DATASET_NAME,e.TABLE_NAME=n[0]?.TABLE_NAME})),t=t.filter((e=>"1"===e.IS_VISIBLE)),m.value=t,f=n[0].MERGE_COLUMN.split(",").filter((e=>" "!=e&&""!=e))}))}var x=null;function E(e){x=setTimeout((()=>{x=null,s("leftIconHold",e)}),1e3)}function C(e){clearTimeout(x),x=null}function j(e){x=setTimeout((()=>{x=null,s("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"===i.selectMode&&(B.value=[]),B.value.push(e)):B.value.splice(B.value.indexOf(e),1))}(0,n.watch)((()=>i.showSelect),(()=>{I.value=i.showSelect}),{immediate:!0});const F=(0,n.ref)(null),B=(0,n.ref)([]);function W(){"multiRow"===i.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];i.data.includes(t)||B.value.splice(e,1)}return(0,n.toRaw)(B.value)}(0,n.watch)((()=>i.showSelect),(()=>{i.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)((()=>i.leftSwiperSelect),(()=>{i.leftSwiperSelect?U.value=!0:U.value=!1}),{deep:!0,immediate:!0});var G=(0,n.ref)(!0);function $(e){i.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)((()=>i.rightSwiperDelete),(()=>{i.rightSwiperDelete?G.value=!0:G.value=!1}),{deep:!0,immediate:!0}),(0,n.watch)((()=>i.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)((()=>i.pullDownDisabled),(()=>{!0===i.pullDownDisabled&&(N.value=!1)}),{immediate:!0}),(0,n.onMounted)((()=>{c(),_()})),(t,r)=>{const o=(0,n.resolveComponent)("van-button"),s=(0,n.resolveComponent)("van-checkbox"),l=(0,n.resolveComponent)("van-col"),u=(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"===i.viewType,rowContentCard:"card"===i.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)(s,{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=>E(r),onMouseup:e=>C(r),onTouchstart:e=>E(r),onTouchend:e=>C(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)(u,null,{default:(0,n.withCtx)((()=>[e.blankAfterCaption?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createVNode)(l,{class:"singleRow colDesc",style:(0,n.normalizeStyle)("color:"+t.HEAD_TEXTCOLOR+";font-size:"+t.HEAD_FONTSIZE+";font-family:"+t.HEAD_FONTNAME),span:"8"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(t.CUS_COL_CAPTION)+":",1)])),_:2},1032,["style"]),(0,n.createVNode)(l,{class:"singleRow colData",style:(0,n.normalizeStyle)("color:"+t.CELL_TEXTCOLOR+";font-size:"+t.CELL_FONTSIZE+";font-family:"+t.CELL_FONTNAME),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.openBlock)(),(0,n.createElementBlock)("div",{key:1,class:"colDataDesc",style:(0,n.normalizeStyle)("color:"+t.HEAD_TEXTCOLOR+";font-size:"+t.HEAD_FONTSIZE+";font-family:"+t.HEAD_FONTNAME),span:"8"},(0,n.toDisplayString)(t.CUS_COL_CAPTION)+": "+(0,n.toDisplayString)(e.data[a][t.ITEM_CODE]),5))])),_: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"===i.viewType,rowContentCard:"card"===i.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)(s,{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=>E(r),onMouseup:e=>C(r),onTouchstart:e=>E(r),onTouchend:e=>C(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)(u,null,{default:(0,n.withCtx)((()=>[(0,n.unref)(f).includes(t.ITEM_CODE)?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[e.blankAfterCaption?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createVNode)(l,{class:"singleRow colDesc",style:(0,n.normalizeStyle)("color:"+t.HEAD_TEXTCOLOR+";font-size:"+t.HEAD_FONTSIZE+";font-family:"+t.HEAD_FONTNAME),span:"8"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(t.CUS_COL_CAPTION)+":",1)])),_:2},1032,["style"]),(0,n.createVNode)(l,{class:"singleRow colData",style:(0,n.normalizeStyle)("color:"+t.CELL_TEXTCOLOR+";font-size:"+t.CELL_FONTSIZE+";font-family:"+t.CELL_FONTNAME),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.openBlock)(),(0,n.createElementBlock)("div",{key:1,class:"colDataDesc",style:(0,n.normalizeStyle)("color:"+t.HEAD_TEXTCOLOR+";font-size:"+t.HEAD_FONTNAME+";font-family:"+t.HEAD_FONTSIZE),span:"8"},(0,n.toDisplayString)(t.CUS_COL_CAPTION)+": "+(0,n.toDisplayString)(e.data[a][t.ITEM_CODE]),5))],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)(u,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},[e.blankAfterCaption?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createVNode)(l,{class:"singleRow colDesc",style:(0,n.normalizeStyle)("color:"+t.HEAD_TEXTCOLOR+";font-size:"+t.HEAD_FONTSIZE+";font-family:"+t.HEAD_FONTNAME),span:"8"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(t.CUS_COL_CAPTION)+":",1)])),_:2},1032,["style"]),(0,n.createVNode)(l,{class:"singleRow colData",style:(0,n.normalizeStyle)("color:"+t.CELL_TEXTCOLOR+";font-size:"+t.CELL_FONTSIZE+";font-family:"+t.CELL_FONTNAME),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.openBlock)(),(0,n.createElementBlock)("div",{key:1,class:"colDataDesc",style:(0,n.normalizeStyle)("color:"+t.HEAD_TEXTCOLOR+";font-size:"+t.HEAD_FONTSIZE+";font-family:"+t.HEAD_FONTNAME),span:"8"},(0,n.toDisplayString)(t.CUS_COL_CAPTION)+": "+(0,n.toDisplayString)(e.data[a][t.ITEM_CODE]),5))],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)}}}),E=(0,h.Z)(x,[["__scopeId","data-v-7224f582"]]),C=E,j=e=>(e.install=t=>{const n=e.name||e.__name;t.component(n,e)},e),O=(j(C),C);var H=r(381),N=r.n(H);const P=(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][u.value]===a.data)return i.value=Object.assign({},a.codeSet.data[e]),void(l.value=e);i.value[u.text]="",i.value[u.value]=""}o("input",i.value[u.value])}));const i=(0,n.ref)({}),s=(0,n.ref)(!1),l=(0,n.ref)(0);var u={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()&&(u.text=a.displayCol,u.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&&(i.value=e,o("input",i.value[u.value])),s.value=!1,y()},h=e=>{},f=()=>{i.value[u.text]="",i.value[u.value]="",console.log(i.value),s.value=!1,o("input",i.value[u.value]),y()},_=(0,n.ref)(""),p=e=>{console.log("keyword",e),console.log("handleSearch1",d);const t=[];c.value.forEach((n=>{n[u.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:i.value[(0,n.unref)(u).text],"onUpdate:modelValue":r[0]||(r[0]=e=>i.value[(0,n.unref)(u).text]=e),"is-link":!e.readOnly,placeholder:"点击选择",onClick:r[1]||(r[1]=()=>{e.readOnly||(s.value=!0)}),readonly:!0},null,8,["class","modelValue","is-link"]),(0,n.createVNode)(c,{show:s.value,"onUpdate:show":r[4]||(r[4]=e=>s.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":l.value,"cancel-button-text":"清空","columns-field-names":(0,n.unref)(u)},null,8,["columns","default-index","columns-field-names"])])),_:1},8,["show"])],64)}}}),I=P,R=I,F=(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 i;function s(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}}).*$`),s="$1$2.$3";e.target.value=e.target.value.replace(r,s),"-"===e.data&&(isNaN(e.target.value)||(e.target.value=-e.target.value)),(0,n.nextTick)((()=>{i=Number(e.target.value),o("input",i)}))}return t({}),(0,n.watch)((()=>a.data),(()=>{i=a.data})),(0,n.onMounted)((()=>{i=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)(i),"onUpdate:modelValue":r[0]||(r[0]=e=>(0,n.isRef)(i)?i.value=e:i=e),type:"number",onInput:s,placeholder:"请输入",autocomplete:"off",readonly:e.readOnly},null,8,["class","modelValue","readonly"])}}}),B=F,W=B,V=(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 i=(0,n.ref)("");function s(){o("input",i.value)}return(0,n.watch)((()=>a.data),(()=>{i.value=a.data})),(0,n.onMounted)((()=>{i.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)(i),"onUpdate:modelValue":[r[0]||(r[0]=e=>(0,n.isRef)(i)?i.value=e:i=e),s],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)(i),"onUpdate:modelValue":[r[1]||(r[1]=e=>(0,n.isRef)(i)?i.value=e:i=e),s],placeholder:"请输入",autocomplete:"off",readonly:e.readOnly,clearable:!0,spellcheck:"false"},null,8,["class","modelValue","readonly"]))}}}),z=V,U=z,q=(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 i=e,s=t;function l(){r.columns=[];let e=new Date,t=e.getFullYear(),n=e.getMonth(),a=e.getDate(),s=e.getHours(),l=e.getMinutes(),u=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(),_=s<10?`0${s}`:s.toString(),p=l<10?`0${l}`:l.toString(),y=u<10?`0${u}`:u.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"===i.type.trim().toLowerCase()&&r.columns.splice(3,3),console.log("columns",r.columns)}function u(){const e=a.value.getValues();o="",e.forEach((e=>{o+=e})),l()}function d(e,t){let n=new Date(e,t,0);return n.getDate()}function c(){s("changeValue")}function m(){r.isPicker=!1,s("cancel")}function h(){const e=a.value.getValues();var t="";e.forEach((e=>{t+=e})),s("confirm",t)}return(0,n.watch)((()=>r.isPicker),(e=>{r.columns=[],l()})),(0,n.watch)((()=>i.showPicker),(e=>{r.isPicker=e})),(e,t)=>{const o=(0,n.resolveComponent)("van-picker"),s=(0,n.resolveComponent)("van-popup");return(0,n.openBlock)(),(0,n.createBlock)(s,{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:u,onCancel:m,onConfirm:h,modelValue:r.selectedValues,"onUpdate:modelValue":t[0]||(t[0]=e=>r.selectedValues=e),"cancel-button-text":"清空",title:i.title},null,8,["columns","modelValue","title"])])),_:1},8,["show"])}}}),J=q,G=J,$=(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 i="";const s=(0,n.ref)(!1);function l(e){return 14===e.length?N()(e,"YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss"):8===e.length?N()(e,"YYYYMMDD").format("YYYY-MM-DD"):e}const u=e=>{s.value=!1,i=e,o("input",i)},d=e=>{s.value=!1,i="",o("input",i)};return(0,n.watch)((()=>a.data),(()=>{i=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)(i),"onUpdate:modelValue":r[0]||(r[0]=e=>(0,n.isRef)(i)?i.value=e:i=e),"is-link":!e.readOnly,name:"datetimePicker",formatter:l,placeholder:"点击选择时间",onClick:r[1]||(r[1]=()=>{e.readOnly||(s.value=!0)}),readonly:!0,autocomplete:"off"},null,8,["class","modelValue","is-link"]),(0,n.createVNode)(G,{onChangeValue:r[2]||(r[2]=e=>s.value=!1),showPicker:s.value,type:a.type,onConfirm:u,title:a.title,onCancel:d},null,8,["showPicker","type","title"])],64)}}}),K=$,Z=K,X=(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 i;function s(){o("input",i)}function l(){a.readOnly||o("btnClick")}return t({}),(0,n.watch)((()=>a.data),(()=>{i=a.data})),(0,n.onMounted)((()=>{i=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)(i),"onUpdate:modelValue":r[0]||(r[0]=e=>(0,n.isRef)(i)?i.value=e:i=e),"is-link":!e.readOnly,placeholder:"点击选择",onClick:l,readonly:!0,onInput:s,autocomplete:"false"},null,8,["modelValue","is-link"])}}}),Q=X,ee=Q,te={key:0,class:"mainTitle"},ne={key:1},re={class:"rowContent"},ae={class:"mainContent"},oe={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},showDeleteButton:{type:Boolean,default:!1}},emits:["dataChange","cellValueChange","btnClick","rowDelete"],setup(e,{expose:t,emit:r}){const a=e,i=r;t({getGridData:f,setGridData:_,addRow:h,checkRequireInput:w,resetData:k,getGridCellData:p,mergeDataRow:Y,getTableName:b,deleteRow:T});a.maxHeight&&a.maxHeight;const s=(0,n.ref)([]);var l=(0,n.reactive)([]);const u=(0,n.ref)({}),d=(0,n.computed)((()=>JSON.parse(JSON.stringify(l))));(0,n.watch)((()=>d.value),((e,t)=>{if(e.length>0){if(0!==Object.keys(e[0]).length&&i("dataChange",e),null===u.value||void 0===u.value||0===Object.keys(u.value).length)return;if(v(),e.length===t.length)for(let n=0;n<l.length;n++)for(let r=0;r<s.value.length;r++){const a=s.value[r].ITEM_CODE;e[n][a]!==t[n][a]&&void 0!==t[n][a]&&(L.length>0&&(L[n][a]=!1),i("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),u.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=u.value[e.CODE_TABLE_NAME].columns[0].name,e.DISPLAY_MEMBER=u.value[e.CODE_TABLE_NAME].columns[1].name))})),t=t.filter((e=>"1"===e.IS_VISIBLE)),s.value=t}))}function h(){l.push({}),(0,n.nextTick)((()=>{setTimeout((()=>{y(l[l.length-1]),M()}),500)}))}function f(){return l}function _(e,t,n){l[e][t]=n}function p(e,t){return l[e][t]}function y(e){s.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=N()(r).format(n);return a}if(n.toUpperCase().indexOf(",ADDDAYS")>0){var i=n.toUpperCase().indexOf(",ADDDAYS"),s=n.substring(0,i),l=n.substring(n.indexOf("(")+1,n.indexOf(")")),u=g(s),d="YYYYMMDDHHmmss";return 14===u.length?d="YYYYMMDDHHmmss":8===u.length&&(d="YYYYMMdd"),N()(u,d).add(Number(l),"days").format("YYYYMMDDHHmmss")}if(n.toUpperCase().indexOf(",ADDMONTHS")>0){i=n.toUpperCase().indexOf(",ADDMONTHS"),s=n.substring(0,i),l=n.substring(n.indexOf("(")+1,n.indexOf(")")),u=g(s),d="YYYYMMDDHHmmss";return 14===u.length?d="YYYYMMDDHHmmss":8===u.length&&(d="YYYYMMdd"),N()(u,d).add(Number(l),"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(){s.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<u.value[e.CODE_TABLE_NAME].data.length;n++){const r=u.value[e.CODE_TABLE_NAME].data[n];u.value[e.CODE_TABLE_NAME].data[n].showFlag=!0,""!==l[0][e.FATHER_FIELD]&&" "!==l[0][e.FATHER_FIELD]&&r[t]!==l[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<l.length;e++){L.push({});for(let t=0;t<s.value.length;t++)L[e][s.value[t].ITEM_CODE]=!1}l.forEach(((e,t)=>{s.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 l.forEach(((t,n)=>{s.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(){l.forEach((e=>{y(e)}))}function Y(e,t){if(l.length<=e)console.log("data中不存在第"+e+"行数据");else for(const n in t)t.hasOwnProperty(n)&&(console.log(`属性名: ${n}, 属性值: ${t[n]}`),l[e].hasOwnProperty(n)&&(l[e][n]=t[n]))}function b(){return c["TSI00GRIDVIEW"].data[0].TABLE_NAME}function D(e){const t=(0,n.toRaw)(l[e]);T(e),i("rowDelete",t)}function T(e){l.splice(e,1)}return(0,n.onMounted)((()=>{m(),h()})),(0,n.watch)((()=>s.value),(()=>{(0,n.nextTick)((()=>{M(),setTimeout((()=>{console.log("codesets--------",u.value)}),1e3)}))}),{deep:!0}),(t,r)=>{const a=(0,n.resolveComponent)("van-col"),o=(0,n.resolveComponent)("van-row"),d=(0,n.resolveComponent)("van-button"),c=(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",te,(0,n.toDisplayString)(e.mainTitle),1)):(0,n.createCommentVNode)("",!0),s.value.length>0&&(0,n.unref)(l).length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",ne,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(l),((t,r)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",re,[(0,n.createElementVNode)("div",ae,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(s.value,((e,t)=>((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",oe,"*")):(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)(U,{key:0,height:e.ROWHIGH,data:(0,n.unref)(l)[r][e.ITEM_CODE],onInput:t=>{(0,n.unref)(l)[r][e.ITEM_CODE]=t},checkFlag:L.length>0&&L[r][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)(ee,{key:1,data:(0,n.unref)(l)[r][e.ITEM_CODE],onInput:t=>{(0,n.unref)(l)[r][e.ITEM_CODE]=t},onBtnClick:t=>i("btnClick",{ITEM_CODE:e.ITEM_CODE,INDEX:r}),checkFlag:L.length>0&&L[r][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)(W,{key:2,data:(0,n.unref)(l)[r][e.ITEM_CODE],scale:e.DATA_ACCU,onInput:t=>{(0,n.unref)(l)[r][e.ITEM_CODE]=t},checkFlag:L.length>0&&L[r][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)(Z,{key:3,data:(0,n.unref)(l)[r][e.ITEM_CODE],type:e.FORMAT_STRING,onInput:t=>{(0,n.unref)(l)[r][e.ITEM_CODE]=t},title:e.CUS_COL_CAPTION,checkFlag:L.length>0&&L[r][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)(R,{key:4,data:(0,n.unref)(l)[r][e.ITEM_CODE],"code-set":u.value[e.CODE_TABLE_NAME],type:e.FORMAT_STRING,onInput:t=>{(0,n.unref)(l)[r][e.ITEM_CODE]=t},title:e.CUS_COL_CAPTION,"value-col":e.VALUE_MEMBER,"display-col":e.DISPLAY_MEMBER,"show-search":!0,checkFlag:L.length>0&&L[r][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)),(0,n.withDirectives)((0,n.createVNode)(d,{type:"danger",size:"small",style:{"font-size":"17px","font-family":"阿里巴巴普惠体Regular"},color:"#FA5251",onClick:e=>D(r)},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)("删 除")])),_:2},1032,["onClick"]),[[n.vShow,e.showDeleteButton]])])])))),256))])):(0,n.createCommentVNode)("",!0),0===s.value.length||0===(0,n.unref)(l).length?((0,n.openBlock)(),(0,n.createBlock)(c,{key:2})):(0,n.createCommentVNode)("",!0)],64)}}}),se=(0,h.Z)(ie,[["__scopeId","data-v-207fa753"]]),le=se,ue=(j(le),le);Object.assign;const de=()=>{},ce=Array.isArray;function me(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function he(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!fe(e[n],t[n]))return!1;return!0}function fe(e,t){return ce(e)?_e(e,t):ce(t)?_e(t,e):e===t}function _e(e,t){return ce(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var pe,ye;(function(e){e["pop"]="pop",e["push"]="push"})(pe||(pe={})),function(e){e["back"]="back",e["forward"]="forward",e["unknown"]=""}(ye||(ye={}));new Map;Symbol("");var ge;(function(e){e[e["aborted"]=4]="aborted",e[e["cancelled"]=8]="cancelled",e[e["duplicated"]=16]="duplicated"})(ge||(ge={}));Symbol(""),Symbol("");const Me=Symbol(""),ve=Symbol("");Symbol("");function Le(e){const t=(0,n.inject)(Me),r=(0,n.inject)(ve),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 i=o.findIndex(me.bind(null,n));if(i>-1)return i;const s=Ye(e[t-2]);return t>1&&Ye(n)===s&&o[o.length-1].path!==s?o.findIndex(me.bind(null,e[t-2])):i})),i=(0,n.computed)((()=>o.value>-1&&ke(r.params,a.value.params))),s=(0,n.computed)((()=>o.value>-1&&o.value===r.matched.length-1&&he(r.params,a.value.params)));function l(r={}){return we(r)?t[(0,n.unref)(e.replace)?"replace":"push"]((0,n.unref)(e.to)).catch(de):Promise.resolve()}return{route:a,href:(0,n.computed)((()=>a.value.href)),isActive:i,isExactActive:s,navigate:l}}Boolean,Boolean;function we(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 ke(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(!ce(a)||a.length!==r.length||r.some(((e,t)=>e!==a[t])))return!1}return!0}function Ye(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const be=(e,t,n)=>null!=e?e:null!=t?t:n;function De(){return(0,n.inject)(Me)}const Te=e=>void 0!==e&&null!==e,Se=e=>"function"===typeof e,Ae=e=>null!==e&&"object"===typeof e,xe=e=>Ae(e)&&Se(e.then)&&Se(e.catch);const Ee=e=>"number"===typeof e||/^\d+(\.\d+)?$/.test(e),Ce=()=>!!He&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());function je(){}const Oe=Object.assign,He="undefined"!==typeof window;function Ne(e,t){const n=t.split(".");let r=e;return n.forEach((e=>{var t;r=Ae(r)&&null!=(t=r[e])?t:""})),r}function Pe(e,t,n){return t.reduce(((t,r)=>(n&&void 0===e[r]||(t[r]=e[r]),t)),{})}function Ie(e){if(Te(e))return Ee(e)?`${e}px`:String(e)}function Re(e){if(Te(e)){if(Array.isArray(e))return{width:Ie(e[0]),height:Ie(e[1])};const t=Ie(e);return{width:t,height:t}}}function Fe(e){const t={};return void 0!==e&&(t.zIndex=+e),t}const Be=/-(\w)/g,We=e=>e.replace(Be,((e,t)=>t.toUpperCase())),Ve=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");const ze=(e,t,n)=>Math.min(Math.max(e,t),n);function Ue(e){return e.install=t=>{const{name:n}=e;n&&(t.component(n,e),t.component(We(`-${n}`),e))},e}function qe(e){const t=(0,n.getCurrentInstance)();t&&Oe(t.proxy,e)}function Je(){const e=(0,n.reactive)({show:!1}),t=t=>{e.show=t},r=n=>{Oe(e,n,{transitionAppear:!0}),t(!0)},a=()=>t(!1);return qe({open:r,close:a,toggle:t}),{open:r,close:a,state:e,toggle:t}}function Ge(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:$e}=Object.prototype;function Ke(e,t,n){const r=t[n];Te(r)&&($e.call(e,n)&&Ae(r)?e[n]=Ze(Object(e[n]),r):e[n]=r)}function Ze(e,t){return Object.keys(t).forEach((n=>{Ke(e,t,n)})),e}var Xe={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 Qe=(0,n.ref)("zh-CN"),et=(0,n.reactive)({"zh-CN":Xe}),tt={messages(){return et[Qe.value]},use(e,t){Qe.value=e,this.add({[e]:t})},add(e={}){Ze(et,e)}};var nt=tt;function rt(e){const t=We(e)+".";return(e,...n)=>{const r=nt.messages(),a=Ne(r,t+e)||Ne(r,e);return Se(a)?a(...n):a}}function at(e,t){return t?"string"===typeof t?` ${e}--${t}`:Array.isArray(t)?t.reduce(((t,n)=>t+at(e,n)),""):Object.keys(t).reduce(((n,r)=>n+(t[r]?at(e,r):"")),""):""}function ot(e){return(t,n)=>(t&&"string"!==typeof t&&(n=t,t=""),t=t?`${e}__${t}`:e,`${t}${at(t,n)}`)}function it(e){const t=`van-${e}`;return[t,ot(t),rt(t)]}const st=null,lt=[Number,String],ut={type:Boolean,default:!0},dt=e=>({type:e,required:!0}),ct=()=>({type:Array,default:()=>[]}),mt=e=>({type:Number,default:e}),ht=e=>({type:lt,default:e}),ft=e=>({type:String,default:e});let _t=0;function pt(e){e?(_t||document.body.classList.add("van-toast--unclickable"),_t++):_t&&(_t--,_t||document.body.classList.remove("van-toast--unclickable"))}const[yt,gt]=it("badge"),Mt={dot:Boolean,max:lt,tag:ft("div"),color:String,offset:Array,content:lt,showZero:ut,position:ft("top-right")};var vt=(0,n.defineComponent)({name:yt,props:Mt,setup(e,{slots:t}){const r=()=>{if(t.content)return!0;const{content:n,showZero:r}=e;return Te(n)&&""!==n&&(r||0!==n&&"0"!==n)},a=()=>{const{dot:n,max:a,content:o}=e;if(!n&&r())return t.content?t.content():Te(a)&&Ee(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=Ie(a),n.right="number"===typeof r?Ie(-r):r.startsWith("-")?r.replace("-",""):`-${r}`):(n.marginTop=Ie(a),n.marginLeft=Ie(r))}return n})),i=()=>{if(r()||e.dot)return(0,n.createVNode)("div",{class:gt([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:gt("wrapper")},{default:()=>[t.default(),i()]})}return i()}}});const Lt=Ue(vt);let wt=2e3;const kt=()=>++wt,Yt=e=>{wt=e},[bt,Dt]=it("config-provider"),Tt=Symbol(bt),St={tag:ft("div"),zIndex:Number,themeVars:Object,iconPrefix:String};function At(e){const t={};return Object.keys(e).forEach((n=>{t[`--van-${Ve(n)}`]=e[n]})),t}(0,n.defineComponent)({name:bt,props:St,setup(e,{slots:t}){const r=(0,n.computed)((()=>{if(e.themeVars)return At(e.themeVars)}));return(0,n.provide)(Tt,e),(0,n.watchEffect)((()=>{void 0!==e.zIndex&&Yt(e.zIndex)})),()=>(0,n.createVNode)(e.tag,{class:Dt(),style:r.value},{default:()=>{var e;return[null==(e=t.default)?void 0:e.call(t)]}})}});const[xt,Et]=it("icon"),Ct=e=>null==e?void 0:e.includes("/"),jt={dot:Boolean,tag:ft("i"),name:String,size:lt,badge:lt,color:String,badgeProps:Object,classPrefix:String};var Ot=(0,n.defineComponent)({name:xt,props:jt,setup(e,{slots:t}){const r=(0,n.inject)(Tt,null),a=(0,n.computed)((()=>e.classPrefix||(null==r?void 0:r.iconPrefix)||Et()));return()=>{const{tag:r,dot:o,name:i,size:s,badge:l,color:u}=e,d=Ct(i);return(0,n.createVNode)(Lt,(0,n.mergeProps)({dot:o,tag:r,class:[a.value,d?"":`${a.value}-${i}`],style:{color:u,fontSize:Ie(s)},content:l},e.badgeProps),{default:()=>{var e;return[null==(e=t.default)?void 0:e.call(t),d&&(0,n.createVNode)("img",{class:Et("image"),src:i},null)]}})}}});const Ht=Ue(Ot);const Nt={show:Boolean,zIndex:lt,overlay:ut,duration:lt,teleport:[String,Object],lockScroll:ut,lazyRender:ut,beforeClose:Function,overlayStyle:Object,overlayClass:st,transitionAppear:Boolean,closeOnClickOverlay:ut};Object.keys(Nt);function Pt(e,{args:t=[],done:n,canceled:r}){if(e){const a=e.apply(null,t);xe(a)?a.then((e=>{e?n():r&&r()})).catch(je):a?n():r&&r()}else n()}const It="van-hairline",Rt=`${It}--bottom`,Ft=`${It}--surround`,Bt="van-haptics-feedback";Symbol("van-form");var Wt="undefined"!==typeof window;function Vt(e){return Wt?requestAnimationFrame(e):-1}function zt(e){Vt((()=>Vt(e)))}var Ut=e=>e===window,qt=(e,t)=>({top:0,left:0,right:e,bottom:t,width:e,height:t}),Jt=e=>{const t=(0,n.unref)(e);if(Ut(t)){const e=t.innerWidth,n=t.innerHeight;return qt(e,n)}return(null==t?void 0:t.getBoundingClientRect)?t.getBoundingClientRect():qt(0,0)};function Gt(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 i=(0,n.computed)((()=>o.indexOf(e)));return{parent:t,index:i}}return{parent:null,index:(0,n.ref)(-1)}}function $t(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 Kt=(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 Zt(e,t,n){const r=$t(e.subTree.children);n.sort(((e,t)=>Kt(r,e.vnode)-Kt(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 Xt(e){const t=(0,n.reactive)([]),r=(0,n.reactive)([]),a=(0,n.getCurrentInstance)(),o=o=>{const i=e=>{e.proxy&&(r.push(e),t.push(e.proxy),Zt(a,t,r))},s=e=>{const n=r.indexOf(e);t.splice(n,1),r.splice(n,1)};(0,n.provide)(e,Object.assign({link:i,unlink:s,children:t,internalChildren:r},o))};return{children:t,linkChildren:o}}var Qt,en;function tn(e){let t;(0,n.onMounted)((()=>{e(),(0,n.nextTick)((()=>{t=!0}))})),(0,n.onActivated)((()=>{t&&e()}))}function nn(e,t,r={}){if(!Wt)return;const{target:a=window,passive:o=!1,capture:i=!1}=r;let s,l=!1;const u=r=>{if(l)return;const a=(0,n.unref)(r);a&&!s&&(a.addEventListener(e,t,{capture:i,passive:o}),s=!0)},d=r=>{if(l)return;const a=(0,n.unref)(r);a&&s&&(a.removeEventListener(e,t,i),s=!1)};let c;return(0,n.onUnmounted)((()=>d(a))),(0,n.onDeactivated)((()=>d(a))),tn((()=>u(a))),(0,n.isRef)(a)&&(c=(0,n.watch)(a,((e,t)=>{d(t),u(e)}))),()=>{null==c||c(),d(a),l=!0}}function rn(){if(!Qt&&(Qt=(0,n.ref)(0),en=(0,n.ref)(0),Wt)){const e=()=>{Qt.value=window.innerWidth,en.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:Qt,height:en}}var an,on=/scroll|auto|overlay/i,sn=Wt?window:void 0;function ln(e){const t=1;return"HTML"!==e.tagName&&"BODY"!==e.tagName&&e.nodeType===t}function un(e,t=sn){let n=e;while(n&&n!==t&&ln(n)){const{overflowY:e}=window.getComputedStyle(n);if(on.test(e))return n;n=n.parentNode}return t}function dn(){if(!an&&(an=(0,n.ref)("visible"),Wt)){const e=()=>{an.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return an}Symbol("van-field");function cn(e,t){return e>t?"horizontal":t>e?"vertical":""}function mn(){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),i=(0,n.ref)(0),s=(0,n.ref)(""),l=()=>"vertical"===s.value,u=()=>"horizontal"===s.value,d=()=>{r.value=0,a.value=0,o.value=0,i.value=0,s.value=""},c=n=>{d(),e.value=n.touches[0].clientX,t.value=n.touches[0].clientY},m=n=>{const l=n.touches[0];r.value=(l.clientX<0?0:l.clientX)-e.value,a.value=l.clientY-t.value,o.value=Math.abs(r.value),i.value=Math.abs(a.value);const u=10;(!s.value||o.value<u&&i.value<u)&&(s.value=cn(o.value,i.value))};return{move:m,start:c,reset:d,startX:e,startY:t,deltaX:r,deltaY:a,offsetX:o,offsetY:i,direction:s,isVertical:l,isHorizontal:u}}Ce();const hn=e=>e.stopPropagation();function fn(e,t){("boolean"!==typeof e.cancelable||e.cancelable)&&e.preventDefault(),t&&hn(e)}function _n(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:pn,height:yn}=rn();let gn=0;const Mn="van-overflow-hidden";function vn(e,t){const r=mn(),a="01",o="10",i=t=>{r.move(t);const n=r.deltaY.value>0?o:a,i=un(t.target,e.value),{scrollHeight:s,offsetHeight:l,scrollTop:u}=i;let d="11";0===u?d=l>=s?"00":"01":u+l>=s&&(d="10"),"11"===d||!r.isVertical()||parseInt(d,2)&parseInt(n,2)||fn(t,!0)},s=()=>{document.addEventListener("touchstart",r.start),document.addEventListener("touchmove",i,{passive:!1}),gn||document.body.classList.add(Mn),gn++},l=()=>{gn&&(document.removeEventListener("touchstart",r.start),document.removeEventListener("touchmove",i),gn--,gn||document.body.classList.remove(Mn))},u=()=>t()&&s(),d=()=>t()&&l();tn(u),(0,n.onDeactivated)(d),(0,n.onBeforeUnmount)(d),(0,n.watch)(t,(e=>{e?s():l()}))}function Ln(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 wn=Symbol();function kn(e){const t=(0,n.inject)(wn,null);t&&(0,n.watch)(t,(t=>{t&&e()}))}const[Yn,bn]=it("overlay"),Dn={show:Boolean,zIndex:lt,duration:lt,className:st,lockScroll:ut,lazyRender:ut,customStyle:Object};var Tn=(0,n.defineComponent)({name:Yn,props:Dn,setup(e,{slots:t}){const r=(0,n.ref)(),a=Ln((()=>e.show||!e.lazyRender)),o=t=>{e.lockScroll&&fn(t,!0)},i=a((()=>{var a;const o=Oe(Fe(e.zIndex),e.customStyle);return Te(e.duration)&&(o.animationDuration=`${e.duration}s`),(0,n.withDirectives)((0,n.createVNode)("div",{ref:r,style:o,class:[bn(),e.className]},[null==(a=t.default)?void 0:a.call(t)]),[[n.vShow,e.show]])}));return nn("touchmove",o,{target:r}),()=>(0,n.createVNode)(n.Transition,{name:"van-fade",appear:!0},{default:i})}});const Sn=Ue(Tn);const An=Oe({},Nt,{round:Boolean,position:ft("center"),closeIcon:ft("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:ft("top-right"),safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[xn,En]=it("popup");var Cn=(0,n.defineComponent)({name:xn,inheritAttrs:!1,props:An,emits:["open","close","opened","closed","keydown","update:show","click-overlay","click-close-icon"],setup(e,{emit:t,attrs:r,slots:a}){let o,i;const s=(0,n.ref)(),l=(0,n.ref)(),u=Ln((()=>e.show||!e.lazyRender)),d=(0,n.computed)((()=>{const t={zIndex:s.value};if(Te(e.duration)){const n="center"===e.position?"animationDuration":"transitionDuration";t[n]=`${e.duration}s`}return t})),c=()=>{o||(o=!0,s.value=void 0!==e.zIndex?+e.zIndex:kt(),t("open"))},m=()=>{o&&Pt(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)(Sn,{show:e.show,class:e.overlayClass,zIndex:s.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)(Ht,{role:"button",tabindex:0,name:e.closeIcon,class:[En("close-icon",e.closeIconPosition),Bt],classPrefix:e.iconPrefix,onClick:_},null)},y=()=>t("opened"),g=()=>t("closed"),M=e=>t("keydown",e),v=u((()=>{var t;const{round:o,position:i,safeAreaInsetTop:s,safeAreaInsetBottom:u}=e;return(0,n.withDirectives)((0,n.createVNode)("div",(0,n.mergeProps)({ref:l,style:d.value,role:"dialog",tabindex:0,class:[En({round:o,[i]:i}),{"van-safe-area-top":s,"van-safe-area-bottom":u}],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=l.value)||e.focus()}))),!e&&o&&(o=!1,t("close"))})),qe({popupRef:l}),vn(l,(()=>e.show&&e.lockScroll)),nn("popstate",(()=>{e.closeOnPopstate&&(m(),i=!1)})),(0,n.onMounted)((()=>{e.show&&c()})),(0,n.onActivated)((()=>{i&&(t("update:show",!0),i=!1)})),(0,n.onDeactivated)((()=>{e.show&&e.teleport&&(m(),i=!0)})),(0,n.provide)(wn,(()=>e.show)),()=>e.teleport?(0,n.createVNode)(n.Teleport,{to:e.teleport},{default:()=>[f(),L()]}):(0,n.createVNode)(n.Fragment,null,[f(),L()])}});const jn=Ue(Cn);const[On,Hn]=it("loading"),Nn=Array(12).fill(null).map(((e,t)=>(0,n.createVNode)("i",{class:Hn("line",String(t+1))},null))),Pn=(0,n.createVNode)("svg",{class:Hn("circular"),viewBox:"25 25 50 50"},[(0,n.createVNode)("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),In={size:lt,type:ft("circular"),color:String,vertical:Boolean,textSize:lt,textColor:String};var Rn=(0,n.defineComponent)({name:On,props:In,setup(e,{slots:t}){const r=(0,n.computed)((()=>Oe({color:e.color},Re(e.size)))),a=()=>{var r;if(t.default)return(0,n.createVNode)("span",{class:Hn("text"),style:{fontSize:Ie(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:Hn([t,{vertical:o}]),"aria-live":"polite","aria-busy":!0},[(0,n.createVNode)("span",{class:Hn("spinner",t),style:r.value},["spinner"===t?Nn:Pn]),a()])}}});const Fn=Ue(Rn);const[Bn,Wn]=it("toast"),Vn=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay"],zn={icon:String,show:Boolean,type:ft("text"),overlay:Boolean,message:lt,iconSize:lt,duration:mt(2e3),position:ft("middle"),teleport:[String,Object],className:st,iconPrefix:String,transition:ft("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:st,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean};var Un=(0,n.defineComponent)({name:Bn,props:zn,emits:["update:show"],setup(e,{emit:t}){let r,a=!1;const o=()=>{const t=e.show&&e.forbidClick;a!==t&&(a=t,pt(a))},i=e=>t("update:show",e),s=()=>{e.closeOnClick&&i(!1)},l=()=>clearTimeout(r),u=()=>{const{icon:t,type:r,iconSize:a,iconPrefix:o,loadingType:i}=e,s=t||"success"===r||"fail"===r;return s?(0,n.createVNode)(Ht,{name:t||r,size:a,class:Wn("icon"),classPrefix:o},null):"loading"===r?(0,n.createVNode)(Fn,{class:Wn("loading"),size:a,type:i},null):void 0},d=()=>{const{type:t,message:r}=e;if(Te(r)&&""!==r)return"html"===t?(0,n.createVNode)("div",{key:0,class:Wn("text"),innerHTML:String(r)},null):(0,n.createVNode)("div",{class:Wn("text")},[r])};return(0,n.watch)((()=>[e.show,e.forbidClick]),o),(0,n.watch)((()=>[e.show,e.type,e.message,e.duration]),(()=>{l(),e.show&&e.duration>0&&(r=setTimeout((()=>{i(!1)}),e.duration))})),(0,n.onMounted)(o),(0,n.onUnmounted)(o),()=>(0,n.createVNode)(jn,(0,n.mergeProps)({class:[Wn([e.position,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:s,onClosed:l,"onUpdate:show":i},Pe(e,Vn)),{default:()=>[u(),d()]})}});const qn={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 Jn=[],Gn=!1,$n=Oe({},qn);const Kn=new Map;function Zn(e){return Ae(e)?e:{message:e}}function Xn(){const{instance:e,unmount:t}=Ge({setup(){const r=(0,n.ref)(""),{open:a,state:o,close:i,toggle:s}=Je(),l=()=>{Gn&&(Jn=Jn.filter((t=>t!==e)),t())},u=()=>{const e={onClosed:l,"onUpdate:show":s};return(0,n.createVNode)(Un,(0,n.mergeProps)(o,e),null)};return(0,n.watch)(r,(e=>{o.message=e})),(0,n.getCurrentInstance)().render=u,{open:a,clear:i,message:r}}});return e}function Qn(){if(!Jn.length||Gn){const e=Xn();Jn.push(e)}return Jn[Jn.length-1]}function er(e={}){if(!He)return{};const t=Qn(),n=Zn(e);return t.open(Oe({},$n,Kn.get(n.type||$n.type),n)),t}const tr=e=>t=>er(Oe({type:e},Zn(t)));function nr(e,t){"string"===typeof e?Kn.set(e,t):Oe($n,e)}er.loading=tr("loading"),er.success=tr("success"),er.fail=tr("fail"),er.clear=e=>{var t;Jn.length&&(e?(Jn.forEach((e=>{e.clear()})),Jn=[]):Gn?null==(t=Jn.shift())||t.clear():Jn[0].clear())},er.setDefaultOptions=nr,er.resetDefaultOptions=e=>{"string"===typeof e?Kn.delete(e):($n=Oe({},qn),Kn.clear())},er.allowMultiple=(e=!0)=>{Gn=e},er.install=e=>{e.use(Ue(Un)),e.config.globalProperties.$toast=er};const rr={to:[String,Object],url:String,replace:Boolean};function ar({to:e,url:t,replace:n,$router:r}){e&&r?r[n?"replace":"push"](e):t&&(n?location.replace(t):location.href=t)}function or(){const e=(0,n.getCurrentInstance)().proxy;return()=>ar(e)}const[ir,sr]=it("button"),lr=Oe({},rr,{tag:ft("button"),text:String,icon:String,type:ft("default"),size:ft("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:ft("button"),loadingSize:lt,loadingText:String,loadingType:String,iconPosition:ft("left")});var ur=(0,n.defineComponent)({name:ir,props:lr,emits:["click"],setup(e,{emit:t,slots:r}){const a=or(),o=()=>r.loading?r.loading():(0,n.createVNode)(Fn,{size:e.loadingSize,type:e.loadingType,class:sr("loading")},null),i=()=>e.loading?o():r.icon?(0,n.createVNode)("div",{class:sr("icon")},[r.icon()]):e.icon?(0,n.createVNode)(Ht,{name:e.icon,class:sr("icon"),classPrefix:e.iconPrefix},null):void 0,s=()=>{let t;if(t=e.loading?e.loadingText:r.default?r.default():e.text,t)return(0,n.createVNode)("span",{class:sr("text")},[t])},l=()=>{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}},u=n=>{e.loading?fn(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=[sr([r,a,{plain:c,block:o,round:d,square:m,loading:h,disabled:f,hairline:_}]),{[Ft]:_}];return(0,n.createVNode)(t,{type:p,class:g,style:l(),disabled:f,onClick:u},{default:()=>[(0,n.createVNode)("div",{class:sr("content")},["left"===y&&i(),s(),"right"===y&&i()])]})}}});const dr=Ue(ur);let cr=0;function mr(){const e=(0,n.getCurrentInstance)(),{name:t="unknown"}=(null==e?void 0:e.type)||{};return`${t}-${++cr}`}const[hr,fr]=it("empty"),_r={image:ft("default"),imageSize:[Number,String,Array],description:String};var pr=(0,n.defineComponent)({name:hr,props:_r,setup(e,{slots:t}){const r=()=>{const r=t.description?t.description():e.description;if(r)return(0,n.createVNode)("p",{class:fr("description")},[r])},a=()=>{if(t.default)return(0,n.createVNode)("div",{class:fr("bottom")},[t.default()])},o=mr(),i=e=>`${o}-${e}`,s=e=>`url(#${i(e)})`,l=(e,t,r)=>(0,n.createVNode)("stop",{"stop-color":e,offset:`${t}%`,"stop-opacity":r},null),u=(e,t)=>[l(e,0),l(t,100)],d=e=>[(0,n.createVNode)("defs",null,[(0,n.createVNode)("radialGradient",{id:i(e),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[l("#EBEDF0",0),l("#F2F3F5",100,.3)])]),(0,n.createVNode)("ellipse",{fill:s(e),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],c=()=>[(0,n.createVNode)("defs",null,[(0,n.createVNode)("linearGradient",{id:i("a"),x1:"64%",y1:"100%",x2:"64%"},[l("#FFF",0,.5),l("#F2F3F5",100)])]),(0,n.createVNode)("g",{opacity:".8"},[(0,n.createVNode)("path",{d:"M36 131V53H16v20H2v58h34z",fill:s("a")},null),(0,n.createVNode)("path",{d:"M123 15h22v14h9v77h-31V15z",fill:s("a")},null)])],m=()=>[(0,n.createVNode)("defs",null,[(0,n.createVNode)("linearGradient",{id:i("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[l("#F2F3F5",0,.3),l("#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:s("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:s("b")},null)])],h=()=>(0,n.createVNode)("svg",{viewBox:"0 0 160 160"},[(0,n.createVNode)("defs",null,[(0,n.createVNode)("linearGradient",{id:i(1),x1:"64%",y1:"100%",x2:"64%"},[l("#FFF",0,.5),l("#F2F3F5",100)]),(0,n.createVNode)("linearGradient",{id:i(2),x1:"50%",x2:"50%",y2:"84%"},[l("#EBEDF0",0),l("#DCDEE0",100,0)]),(0,n.createVNode)("linearGradient",{id:i(3),x1:"100%",x2:"100%",y2:"100%"},[u("#EAEDF0","#DCDEE0")]),(0,n.createVNode)("radialGradient",{id:i(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[l("#EBEDF0",0),l("#FFF",100,0)])]),(0,n.createVNode)("g",{fill:"none"},[c(),(0,n.createVNode)("path",{fill:s(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:s(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:s(3)},null),(0,n.createVNode)("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:s(3)},null),(0,n.createVNode)("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:s(3)},null),(0,n.createVNode)("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:s(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:i(5)},[u("#F2F3F5","#DCDEE0")]),(0,n.createVNode)("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:i(6)},[u("#EAEDF1","#DCDEE0")]),(0,n.createVNode)("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:i(7)},[u("#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:s(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:s(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:s(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:i(8)},[u("#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:s(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:i(9)},[u("#EEE","#D8D8D8")]),(0,n.createVNode)("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:i(10)},[u("#F2F3F5","#DCDEE0")]),(0,n.createVNode)("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(11)},[u("#F2F3F5","#DCDEE0")]),(0,n.createVNode)("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(12)},[u("#FFF","#F7F8FA")])]),c(),m(),d("d"),(0,n.createVNode)("g",{transform:"rotate(-45 113 -4)",fill:"none"},[(0,n.createVNode)("rect",{fill:s(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),(0,n.createVNode)("rect",{fill:s(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),(0,n.createVNode)("circle",{stroke:s(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),(0,n.createVNode)("circle",{fill:s(12),cx:"27",cy:"27",r:"16"},null),(0,n.createVNode)("path",{d:"M37 7c-8 0-15 5-16 12",stroke:s(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:fr()},[(0,n.createVNode)("div",{class:fr("image"),style:Re(e.imageSize)},[y()]),r(),a()])}});const yr=Ue(pr);const gr=(e,t)=>{const r=(0,n.ref)(),a=()=>{r.value=Jt(e).height};return(0,n.onMounted)((()=>{if((0,n.nextTick)(a),t)for(let e=1;e<=3;e++)setTimeout(a,100*e)})),kn((()=>(0,n.nextTick)(a))),r};function Mr(e,t){const r=gr(e,!0);return e=>(0,n.createVNode)("div",{class:t("placeholder"),style:{height:r.value?`${r.value}px`:void 0}},[e()])}const[vr,Lr]=it("nav-bar"),wr={title:String,fixed:Boolean,zIndex:lt,border:ut,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean};var kr=(0,n.defineComponent)({name:vr,props:wr,emits:["click-left","click-right"],setup(e,{emit:t,slots:r}){const a=(0,n.ref)(),o=Mr(a,Lr),i=e=>t("click-left",e),s=e=>t("click-right",e),l=()=>r.left?r.left():[e.leftArrow&&(0,n.createVNode)(Ht,{class:Lr("arrow"),name:"arrow-left"},null),e.leftText&&(0,n.createVNode)("span",{class:Lr("text")},[e.leftText])],u=()=>r.right?r.right():(0,n.createVNode)("span",{class:Lr("text")},[e.rightText]),d=()=>{const{title:t,fixed:o,border:d,zIndex:c}=e,m=Fe(c),h=e.leftArrow||e.leftText||r.left,f=e.rightText||r.right;return(0,n.createVNode)("div",{ref:a,style:m,class:[Lr({fixed:o}),{[Rt]:d,"van-safe-area-top":e.safeAreaInsetTop}]},[(0,n.createVNode)("div",{class:Lr("content")},[h&&(0,n.createVNode)("div",{class:[Lr("left"),Bt],onClick:i},[l()]),(0,n.createVNode)("div",{class:[Lr("title"),"van-ellipsis"]},[r.title?r.title():t]),f&&(0,n.createVNode)("div",{class:[Lr("right"),Bt],onClick:s},[u()])])])};return()=>e.fixed&&e.placeholder?o(d):d()}});const Yr=Ue(kr);var br="0123456789abcdefghijklmnopqrstuvwxyz";function Dr(e){return br.charAt(e)}function Tr(e,t){return e&t}function Sr(e,t){return e|t}function Ar(e,t){return e^t}function xr(e,t){return e&~t}function Er(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 Cr(e){var t=0;while(0!=e)e&=e-1,++t;return t}var jr,Or="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Hr="=";function Nr(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=Or.charAt(n>>6)+Or.charAt(63&n);t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=Or.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=Or.charAt(n>>2)+Or.charAt((3&n)<<4));while((3&r.length)>0)r+=Hr;return r}function Pr(e){var t,n="",r=0,a=0;for(t=0;t<e.length;++t){if(e.charAt(t)==Hr)break;var o=Or.indexOf(e.charAt(t));o<0||(0==r?(n+=Dr(o>>2),a=3&o,r=1):1==r?(n+=Dr(a<<2|o>>4),a=15&o,r=2):2==r?(n+=Dr(a),n+=Dr(o>>2),a=3&o,r=3):(n+=Dr(a<<2|o>>4),n+=Dr(15&o),r=0))}return 1==r&&(n+=Dr(a<<2)),n}var Ir,Rr={decode:function(e){var t;if(void 0===jr){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(jr={},t=0;t<16;++t)jr[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)jr[n.charAt(t)]=t;for(t=0;t<r.length;++t)jr[r.charAt(t)]=-1}var a=[],o=0,i=0;for(t=0;t<e.length;++t){var s=e.charAt(t);if("="==s)break;if(s=jr[s],-1!=s){if(void 0===s)throw new Error("Illegal character at offset "+t);o|=s,++i>=2?(a[a.length]=o,o=0,i=0):o<<=4}}if(i)throw new Error("Hex encoding incomplete: 4 bits missing");return a}},Fr={decode:function(e){var t;if(void 0===Ir){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="= \f\n\r\t \u2028\u2029";for(Ir=Object.create(null),t=0;t<64;++t)Ir[n.charAt(t)]=t;for(Ir["-"]=62,Ir["_"]=63,t=0;t<r.length;++t)Ir[r.charAt(t)]=-1}var a=[],o=0,i=0;for(t=0;t<e.length;++t){var s=e.charAt(t);if("="==s)break;if(s=Ir[s],-1!=s){if(void 0===s)throw new Error("Illegal character at offset "+t);o|=s,++i>=4?(a[a.length]=o>>16,a[a.length]=o>>8&255,a[a.length]=255&o,o=0,i=0):o<<=6}}switch(i){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=Fr.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 Fr.decode(e)}},Br=1e13,Wr=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<Br?t=0:(t=0|r/Br,r-=t*Br),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+=Br,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+=(Br+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*Br+e[n];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),Vr="…",zr=/^(\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)?)?$/,Ur=/^(\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 qr(e,t){return e.length>t&&(e=e.substring(0,t)+Vr),e}var Jr,Gr=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?zr:Ur).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,i="";while(r==o&&++e<t)r=this.get(e);if(n=t-e,0===n)return a?-1:0;if(n>4){i=r,n<<=3;while(0==(128&(+i^o)))i=+i<<1,--n;i="("+n+" bit)\n"}a&&(r-=256);for(var s=new Wr(r),l=e+1;l<t;++l)s.mulAdd(256,this.get(l));return i+s.toString()},e.prototype.parseBitString=function(e,t,n){for(var r=this.get(e),a=(t-e-1<<3)-r,o="("+a+" bit)\n",i="",s=e+1;s<t;++s){for(var l=this.get(s),u=s==t-1?r:0,d=7;d>=u;--d)i+=l>>d&1?"1":"0";if(i.length>n)return o+qr(i,n)}return o+i},e.prototype.parseOctetString=function(e,t,n){if(this.isASCII(e,t))return qr(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+=Vr),a},e.prototype.parseOID=function(e,t,n){for(var r="",a=new Wr,o=0,i=e;i<t;++i){var s=this.get(i);if(a.mulAdd(128,127&s),o+=7,!(128&s)){if(""===r)if(a=a.simplify(),a instanceof Wr)a.sub(80),r="2."+a.toString();else{var l=a<80?a<40?0:1:2;r=l+"."+(a-40*l)}else r+="."+a.toString();if(r.length>n)return qr(r,n);a=new Wr,o=0}}return o>0&&(r+=".incomplete"),r},e}(),$r=function(){function e(e,t,n,r,a){if(!(r instanceof Kr))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 qr(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return qr(this.stream.parseStringISO(t,t+n),e);case 30:return qr(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 Gr?t:new Gr(t,0);var r=new Gr(n),a=new Kr(n),o=e.decodeLength(n),i=n.pos,s=i-r.pos,l=null,u=function(){var t=[];if(null!==o){var r=i+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 "+i)}else try{for(;;){var a=e.decode(n);if(a.tag.isEOC())break;t[t.length]=a}o=i-n.pos}catch(s){throw new Error("Exception while decoding undefined length content: "+s)}return t};if(a.tagConstructed)l=u();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.");l=u();for(var d=0;d<l.length;++d)if(l[d].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(c){l=null}if(null===l){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+i);n.pos=i+Math.abs(o)}return new e(r,s,o,a,l)},e}(),Kr=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 Wr;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}(),Zr=0xdeadbeefcafe,Xr=15715070==(16777215&Zr),Qr=[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],ea=(1<<26)/Qr[Qr.length-1],ta=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="",i=this.t,s=this.DB-i*this.DB%t;if(i-- >0){s<this.DB&&(n=this[i]>>s)>0&&(a=!0,o=Dr(n));while(i>=0)s<t?(n=(this[i]&(1<<s)-1)<<t-s,n|=this[--i]>>(s+=this.DB-t)):(n=this[i]>>(s-=t)&r,s<=0&&(s+=this.DB,--i)),n>0&&(a=!0),a&&(o+=Dr(n))}return a?o:"0"},e.prototype.negate=function(){var t=ia();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)+_a(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=ia();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 ra(t):new aa(t),this.exp(e,n)},e.prototype.clone=function(){var e=ia();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=ia();return this.bitwiseTo(e,Tr,t),t},e.prototype.or=function(e){var t=ia();return this.bitwiseTo(e,Sr,t),t},e.prototype.xor=function(e){var t=ia();return this.bitwiseTo(e,Ar,t),t},e.prototype.andNot=function(e){var t=ia();return this.bitwiseTo(e,xr,t),t},e.prototype.not=function(){for(var e=ia(),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=ia();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},e.prototype.shiftRight=function(e){var t=ia();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+Er(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+=Cr(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,Sr)},e.prototype.clearBit=function(e){return this.changeBit(e,xr)},e.prototype.flipBit=function(e){return this.changeBit(e,Ar)},e.prototype.add=function(e){var t=ia();return this.addTo(e,t),t},e.prototype.subtract=function(e){var t=ia();return this.subTo(e,t),t},e.prototype.multiply=function(e){var t=ia();return this.multiplyTo(e,t),t},e.prototype.divide=function(e){var t=ia();return this.divRemTo(e,t,null),t},e.prototype.remainder=function(e){var t=ia();return this.divRemTo(e,null,t),t},e.prototype.divideAndRemainder=function(e){var t=ia(),n=ia();return this.divRemTo(e,t,n),[t,n]},e.prototype.modPow=function(e,t){var n,r,a=e.bitLength(),o=fa(1);if(a<=0)return o;n=a<18?1:a<48?3:a<144?4:a<768?5:6,r=a<8?new ra(t):t.isEven()?new oa(t):new aa(t);var i=[],s=3,l=n-1,u=(1<<n)-1;if(i[1]=r.convert(this),n>1){var d=ia();r.sqrTo(i[1],d);while(s<=u)i[s]=ia(),r.mulTo(d,i[s-2],i[s]),s+=2}var c,m,h=e.t-1,f=!0,_=ia();a=_a(e[h])-1;while(h>=0){a>=l?c=e[h]>>a-l&u:(c=(e[h]&(1<<a+1)-1)<<l-a,h>0&&(c|=e[h-1]>>this.DB+a-l)),s=n;while(0==(1&c))c>>=1,--s;if((a-=s)<0&&(a+=this.DB,--h),f)i[c].copyTo(o),f=!1;else{while(s>1)r.sqrTo(o,_),r.sqrTo(_,o),s-=2;s>0?r.sqrTo(o,_):(m=o,o=_,_=m),r.mulTo(_,i[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=fa(1),i=fa(0),s=fa(0),l=fa(1);while(0!=r.signum()){while(r.isEven())r.rShiftTo(1,r),n?(o.isEven()&&i.isEven()||(o.addTo(this,o),i.subTo(t,i)),o.rShiftTo(1,o)):i.isEven()||i.subTo(t,i),i.rShiftTo(1,i);while(a.isEven())a.rShiftTo(1,a),n?(s.isEven()&&l.isEven()||(s.addTo(this,s),l.subTo(t,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);r.compareTo(a)>=0?(r.subTo(a,r),n&&o.subTo(s,o),i.subTo(l,i)):(a.subTo(r,a),n&&s.subTo(o,s),l.subTo(i,l))}return 0!=a.compareTo(e.ONE)?e.ZERO:l.compareTo(t)>=0?l.subtract(t):l.signum()<0?(l.addTo(t,l),l.signum()<0?l.add(t):l):l},e.prototype.pow=function(e){return this.exp(e,new na)},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]<=Qr[Qr.length-1]){for(t=0;t<Qr.length;++t)if(n[0]==Qr[t])return!0;return!1}if(n.isEven())return!1;t=1;while(t<Qr.length){var r=Qr[t],a=t+1;while(a<Qr.length&&r<ea)r*=Qr[a++];r=n.modInt(r);while(t<a)if(r%Qr[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,i=0;while(--a>=0){var s=8==r?255&+t[a]:ha(t,a);s<0?"-"==t.charAt(a)&&(o=!0):(o=!1,0==i?this[this.t++]=s:i+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-i)-1)<<i,this[this.t++]=s>>this.DB-i):this[this.t-1]|=s<<i,i+=r,i>=this.DB&&(i-=this.DB))}8==r&&0!=(128&+t[0])&&(this.s=-1,i>0&&(this[this.t-1]|=(1<<this.DB-i)-1<<i)),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),i=this.s<<n&this.DM,s=this.t-1;s>=0;--s)t[s+o+1]=this[s]>>r|i,i=(this[s]&a)<<n;for(s=o-1;s>=0;--s)t[s]=0;t[o]=i,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 i=n+1;i<this.t;++i)t[i-n-1]|=(this[i]&o)<<a,t[i-n]=this[i]>>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=ia());var i=ia(),s=this.s,l=t.s,u=this.DB-_a(a[a.t-1]);u>0?(a.lShiftTo(u,i),o.lShiftTo(u,r)):(a.copyTo(i),o.copyTo(r));var d=i.t,c=i[d-1];if(0!=c){var m=c*(1<<this.F1)+(d>1?i[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?ia():n;i.dlShiftTo(y,g),r.compareTo(g)>=0&&(r[r.t++]=1,r.subTo(g,r)),e.ONE.dlShiftTo(d,g),g.subTo(i,i);while(i.t<d)i[i.t++]=0;while(--y>=0){var M=r[--p]==c?this.DM:Math.floor(r[p]*h+(r[p-1]+_)*f);if((r[p]+=i.am(0,M,r,y,0,d))<M){i.dlShiftTo(y,g),r.subTo(g,r);while(r[p]<--M)r.subTo(g,r)}}null!=n&&(r.drShiftTo(d,n),s!=l&&e.ZERO.subTo(n,n)),r.t=d,r.clamp(),u>0&&r.rShiftTo(u,r),s<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=ia(),a=ia(),o=n.convert(this),i=_a(t)-1;o.copyTo(r);while(--i>=0)if(n.sqrTo(r,a),(t&1<<i)>0)n.mulTo(a,o,r);else{var s=r;r=a,a=s}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=fa(n),a=ia(),o=ia(),i="";this.divRemTo(r,a,o);while(a.signum()>0)i=(n+o.intValue()).toString(e).substr(1)+i,a.divRemTo(r,a,o);return o.intValue().toString(e)+i},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,i=0,s=0,l=0;l<t.length;++l){var u=ha(t,l);u<0?"-"==t.charAt(l)&&0==this.signum()&&(o=!0):(s=n*s+u,++i>=r&&(this.dMultiply(a),this.dAddOffset(s,0),i=0,s=0))}i>0&&(this.dMultiply(Math.pow(n,i)),this.dAddOffset(s,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),Sr,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>Qr.length&&(t=Qr.length);for(var o=ia(),i=0;i<t;++i){o.fromInt(Qr[Math.floor(Math.random()*Qr.length)]);var s=o.modPow(a,this);if(0!=s.compareTo(e.ONE)&&0!=s.compareTo(n)){var l=1;while(l++<r&&0!=s.compareTo(n))if(s=s.modPowInt(2,this),0==s.compareTo(e.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},e.prototype.square=function(){var e=ia();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(),i=r.getLowestSetBit();if(i<0)t(n);else{o<i&&(i=o),i>0&&(n.rShiftTo(i,n),r.rShiftTo(i,r));var s=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(s,0):(i>0&&r.lShiftTo(i,r),setTimeout((function(){t(r)}),0))};setTimeout(s,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),Sr,this),this.isEven()&&this.dAddOffset(1,0);var o=this,i=function(){o.dAddOffset(2,0),o.bitLength()>t&&o.subTo(e.ONE.shiftLeft(t-1),o),o.isProbablePrime(n)?setTimeout((function(){a()}),0):setTimeout(i,0)};setTimeout(i,0)}else{var s=[],l=7&t;s.length=1+(t>>3),n.nextBytes(s),l>0?s[0]&=(1<<l)-1:s[0]=0,this.fromString(s,256)}},e}(),na=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}(),ra=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}(),aa=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=ia();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(ta.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=ia();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}(),oa=function(){function e(e){this.m=e,this.r2=ia(),this.q3=ia(),ta.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=ia();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 ia(){return new ta(null)}function sa(e,t){return new ta(e,t)}var la="undefined"!==typeof navigator;la&&Xr&&"Microsoft Internet Explorer"==navigator.appName?(ta.prototype.am=function(e,t,n,r,a,o){var i=32767&t,s=t>>15;while(--o>=0){var l=32767&this[e],u=this[e++]>>15,d=s*l+u*i;l=i*l+((32767&d)<<15)+n[r]+(1073741823&a),a=(l>>>30)+(d>>>15)+s*u+(a>>>30),n[r++]=1073741823&l}return a},Jr=30):la&&Xr&&"Netscape"!=navigator.appName?(ta.prototype.am=function(e,t,n,r,a,o){while(--o>=0){var i=t*this[e++]+n[r]+a;a=Math.floor(i/67108864),n[r++]=67108863&i}return a},Jr=26):(ta.prototype.am=function(e,t,n,r,a,o){var i=16383&t,s=t>>14;while(--o>=0){var l=16383&this[e],u=this[e++]>>14,d=s*l+u*i;l=i*l+((16383&d)<<14)+n[r]+a,a=(l>>28)+(d>>14)+s*u,n[r++]=268435455&l}return a},Jr=28),ta.prototype.DB=Jr,ta.prototype.DM=(1<<Jr)-1,ta.prototype.DV=1<<Jr;var ua=52;ta.prototype.FV=Math.pow(2,ua),ta.prototype.F1=ua-Jr,ta.prototype.F2=2*Jr-ua;var da,ca,ma=[];for(da="0".charCodeAt(0),ca=0;ca<=9;++ca)ma[da++]=ca;for(da="a".charCodeAt(0),ca=10;ca<36;++ca)ma[da++]=ca;for(da="A".charCodeAt(0),ca=10;ca<36;++ca)ma[da++]=ca;function ha(e,t){var n=ma[e.charCodeAt(t)];return null==n?-1:n}function fa(e){var t=ia();return t.fromInt(e),t}function _a(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}ta.ZERO=fa(0),ta.ONE=fa(1);var pa=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 ya(){return new pa}var ga,Ma,va=256,La=null;if(null==La){La=[],Ma=0;var wa=void 0;if("undefined"!==typeof window&&window.crypto&&window.crypto.getRandomValues){var ka=new Uint32Array(256);for(window.crypto.getRandomValues(ka),wa=0;wa<ka.length;++wa)La[Ma++]=255&ka[wa]}var Ya=0,ba=function(e){if(Ya=Ya||0,Ya>=256||Ma>=va)window.removeEventListener?window.removeEventListener("mousemove",ba,!1):window.detachEvent&&window.detachEvent("onmousemove",ba);else try{var t=e.x+e.y;La[Ma++]=255&t,Ya+=1}catch(n){}};"undefined"!==typeof window&&(window.addEventListener?window.addEventListener("mousemove",ba,!1):window.attachEvent&&window.attachEvent("onmousemove",ba))}function Da(){if(null==ga){ga=ya();while(Ma<va){var e=Math.floor(65536*Math.random());La[Ma++]=255&e}for(ga.init(La),Ma=0;Ma<La.length;++Ma)La[Ma]=0;Ma=0}return ga.next()}var Ta=function(){function e(){}return e.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=Da()},e}();function Sa(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 sa(o,16)}function Aa(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 Ta,i=[];while(t>2){i[0]=0;while(0==i[0])o.nextBytes(i);n[--t]=i[0]}return n[--t]=2,n[--t]=0,new ta(n)}var xa=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=sa(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=Aa(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,i=0;i<2*t-o;i++)a="0"+a;return a},e.prototype.setPrivate=function(e,t,n){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=sa(e,16),this.e=parseInt(t,16),this.d=sa(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(e,t,n,r,a,o,i,s){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=sa(e,16),this.e=parseInt(t,16),this.d=sa(n,16),this.p=sa(r,16),this.q=sa(a,16),this.dmp1=sa(o,16),this.dmq1=sa(i,16),this.coeff=sa(s,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(e,t){var n=new Ta,r=e>>1;this.e=parseInt(t,16);for(var a=new ta(t,16);;){for(;;)if(this.p=new ta(e-r,1,n),0==this.p.subtract(ta.ONE).gcd(a).compareTo(ta.ONE)&&this.p.isProbablePrime(10))break;for(;;)if(this.q=new ta(r,1,n),0==this.q.subtract(ta.ONE).gcd(a).compareTo(ta.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 i=this.p.subtract(ta.ONE),s=this.q.subtract(ta.ONE),l=i.multiply(s);if(0==l.gcd(a).compareTo(ta.ONE)){this.n=this.p.multiply(this.q),this.d=a.modInverse(l),this.dmp1=this.d.mod(i),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=sa(e,16),n=this.doPrivate(t);return null==n?null:Ea(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,n){var r=new Ta,a=e>>1;this.e=parseInt(t,16);var o=new ta(t,16),i=this,s=function(){var t=function(){if(i.p.compareTo(i.q)<=0){var e=i.p;i.p=i.q,i.q=e}var t=i.p.subtract(ta.ONE),r=i.q.subtract(ta.ONE),a=t.multiply(r);0==a.gcd(o).compareTo(ta.ONE)?(i.n=i.p.multiply(i.q),i.d=o.modInverse(a),i.dmp1=i.d.mod(t),i.dmq1=i.d.mod(r),i.coeff=i.q.modInverse(i.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},l=function(){i.q=ia(),i.q.fromNumberAsync(a,1,r,(function(){i.q.subtract(ta.ONE).gcda(o,(function(e){0==e.compareTo(ta.ONE)&&i.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(l,0)}))}))},u=function(){i.p=ia(),i.p.fromNumberAsync(e-a,1,r,(function(){i.p.subtract(ta.ONE).gcda(o,(function(e){0==e.compareTo(ta.ONE)&&i.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(u,0)}))}))};setTimeout(u,0)};setTimeout(s,0)},e.prototype.sign=function(e,t,n){var r=ja(n),a=r+t(e).toString(),o=Sa(a,this.n.bitLength()/4);if(null==o)return null;var i=this.doPrivate(o);if(null==i)return null;var s=i.toString(16);return 0==(1&s.length)?s:"0"+s},e.prototype.verify=function(e,t,n){var r=sa(t,16),a=this.doPublic(r);if(null==a)return null;var o=a.toString(16).replace(/^1f+00/,""),i=Oa(o);return i==n(e).toString()},e}();function Ea(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 Ca={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function ja(e){return Ca[e]||""}function Oa(e){for(var t in Ca)if(Ca.hasOwnProperty(t)){var n=Ca[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=uo,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=lr,a.monthsShort=Mo,a.weekdaysMin=wo,a.defineLocale=yn,a.updateLocale=gn,a.locales=vn,a.weekdaysShort=Lo,a.normalizeUnits=ae,a.relativeTimeRounding=oi,a.relativeTimeThreshold=ii,a.calendarFormat=Wr,a.prototype=uo,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,i=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"===typeof l.get?l.get:null,d=s&&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,s){var l=r||{};if(Q(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Q(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!Q(l,"customInspect")||l.customInspect;if("boolean"!==typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Q(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Q(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=l.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 ue(t,l);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 l.depth?5:l.depth;if("undefined"===typeof a&&(a=0),a>=_&&_>0&&"object"===typeof t)return V(t)?"[Array]":"[Object]";var p=_e(l,a);if("undefined"===typeof s)s=[];else if(ne(s,t)>=0)return"[Circular]";function g(t,n,r){if(n&&(s=S.call(s),s.push(n)),r){var o={depth:l.depth};return Q(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),e(t,o,a+1,s)}return e(t,l,a+1,s)}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(le(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",l);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 i&&i.call(t,(function(e,n){de.push(g(n,t,!0)+" => "+g(e,t))})),he("Map",o.call(t),de,p)}if(ie(t)){var ge=[];return d&&d.call(t,(function(e){ge.push(g(e,t))})),he("Set",u.call(t),ge,p)}if(ae(t))return me("WeakMap");if(se(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{u.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 ie(e){if(!u||!e||"object"!==typeof e)return!1;try{u.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}function se(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 le(e){return!(!e||"object"!==typeof e)&&("undefined"!==typeof HTMLElement&&e instanceof HTMLElement||"string"===typeof e.nodeName&&"function"===typeof e.getAttribute)}function ue(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return ue(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,i="function"===typeof C?C(e):[];if(j){o={};for(var s=0;s<i.length;s++)o["$"+i[s]]=i[s]}for(var l in e)Q(e,l)&&(n&&String(Number(l))===l&&l<e.length||j&&o["$"+l]instanceof Symbol||(b.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"===typeof C)for(var u=0;u<i.length;u++)H.call(e,i[u])&&r.push("["+t(i[u])+"]: "+t(e[i[u]],e));return r}},7771:(e,t,n)=>{"use strict";var r=n(210),a=n(2296),o=n(1044)(),i=n(7296),s=r("%TypeError%"),l=r("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,u=!0;if("length"in e&&i){var d=i(e,"length");d&&!d.configurable&&(r=!1),d&&!d.writable&&(u=!1)}return(r||u||!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),i=r("%TypeError%"),s=r("%WeakMap%",!0),l=r("%Map%",!0),u=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 i("Side channel does not contain "+o(e))},get:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return u(e,r)}else if(l){if(t)return m(t,r)}else if(n)return p(n,r)},has:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return c(e,r)}else if(l){if(t)return f(t,r)}else if(n)return g(n,r);return!1},set:function(r,a){s&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new s),d(e,r,a)):l?(t||(t=new l),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:()=>l,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 i=/^(?:[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 s(e){return"string"===typeof e&&i.test(e)}const l=s;for(var u=[],d=0;d<256;++d)u.push((d+256).toString(16).substr(1));function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!l(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 i=e.node||h,s=void 0!==e.clockseq?e.clockseq:f;if(null==i||null==s){var l=e.random||(e.rng||o)();null==i&&(i=h=[1|l[0],l[1],l[2],l[3],l[4],l[5]]),null==s&&(s=f=16383&(l[6]<<8|l[7]))}var u=void 0!==e.msecs?e.msecs:Date.now(),d=void 0!==e.nsecs?e.nsecs:p+1,c=u-_+(d-p)/1e4;if(c<0&&void 0===e.clockseq&&(s=s+1&16383),(c<0||u>_)&&void 0===e.nsecs&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_=u,p=d,f=s,u+=122192928e5;var y=(1e4*(268435455&u)+d)%4294967296;a[r++]=y>>>24&255,a[r++]=y>>>16&255,a[r++]=y>>>8&255,a[r++]=255&y;var g=u/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++]=s>>>8|128,a[r++]=255&s;for(var M=0;M<6;++M)a[r+M]=i[M];return t||m(a)}const g=y;function M(e){if(!l(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 i=new Uint8Array(16+e.length);if(i.set(r),i.set(e,r.length),i=n(i),i[6]=15&i[6]|t,i[8]=63&i[8]|128,a){o=o||0;for(var s=0;s<16;++s)a[o+s]=i[s];return a}return m(i)}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,i=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(i)}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,i=0;i<e.length;i+=16){var s=n,l=r,u=a,d=o;n=j(n,r,a,o,e[i],7,-680876936),o=j(o,n,r,a,e[i+1],12,-389564586),a=j(a,o,n,r,e[i+2],17,606105819),r=j(r,a,o,n,e[i+3],22,-1044525330),n=j(n,r,a,o,e[i+4],7,-176418897),o=j(o,n,r,a,e[i+5],12,1200080426),a=j(a,o,n,r,e[i+6],17,-1473231341),r=j(r,a,o,n,e[i+7],22,-45705983),n=j(n,r,a,o,e[i+8],7,1770035416),o=j(o,n,r,a,e[i+9],12,-1958414417),a=j(a,o,n,r,e[i+10],17,-42063),r=j(r,a,o,n,e[i+11],22,-1990404162),n=j(n,r,a,o,e[i+12],7,1804603682),o=j(o,n,r,a,e[i+13],12,-40341101),a=j(a,o,n,r,e[i+14],17,-1502002290),r=j(r,a,o,n,e[i+15],22,1236535329),n=O(n,r,a,o,e[i+1],5,-165796510),o=O(o,n,r,a,e[i+6],9,-1069501632),a=O(a,o,n,r,e[i+11],14,643717713),r=O(r,a,o,n,e[i],20,-373897302),n=O(n,r,a,o,e[i+5],5,-701558691),o=O(o,n,r,a,e[i+10],9,38016083),a=O(a,o,n,r,e[i+15],14,-660478335),r=O(r,a,o,n,e[i+4],20,-405537848),n=O(n,r,a,o,e[i+9],5,568446438),o=O(o,n,r,a,e[i+14],9,-1019803690),a=O(a,o,n,r,e[i+3],14,-187363961),r=O(r,a,o,n,e[i+8],20,1163531501),n=O(n,r,a,o,e[i+13],5,-1444681467),o=O(o,n,r,a,e[i+2],9,-51403784),a=O(a,o,n,r,e[i+7],14,1735328473),r=O(r,a,o,n,e[i+12],20,-1926607734),n=H(n,r,a,o,e[i+5],4,-378558),o=H(o,n,r,a,e[i+8],11,-2022574463),a=H(a,o,n,r,e[i+11],16,1839030562),r=H(r,a,o,n,e[i+14],23,-35309556),n=H(n,r,a,o,e[i+1],4,-1530992060),o=H(o,n,r,a,e[i+4],11,1272893353),a=H(a,o,n,r,e[i+7],16,-155497632),r=H(r,a,o,n,e[i+10],23,-1094730640),n=H(n,r,a,o,e[i+13],4,681279174),o=H(o,n,r,a,e[i],11,-358537222),a=H(a,o,n,r,e[i+3],16,-722521979),r=H(r,a,o,n,e[i+6],23,76029189),n=H(n,r,a,o,e[i+9],4,-640364487),o=H(o,n,r,a,e[i+12],11,-421815835),a=H(a,o,n,r,e[i+15],16,530742520),r=H(r,a,o,n,e[i+2],23,-995338651),n=N(n,r,a,o,e[i],6,-198630844),o=N(o,n,r,a,e[i+7],10,1126891415),a=N(a,o,n,r,e[i+14],15,-1416354905),r=N(r,a,o,n,e[i+5],21,-57434055),n=N(n,r,a,o,e[i+12],6,1700485571),o=N(o,n,r,a,e[i+3],10,-1894986606),a=N(a,o,n,r,e[i+10],15,-1051523),r=N(r,a,o,n,e[i+1],21,-2054922799),n=N(n,r,a,o,e[i+8],6,1873313359),o=N(o,n,r,a,e[i+15],10,-30611744),a=N(a,o,n,r,e[i+6],15,-1560198380),r=N(r,a,o,n,e[i+13],21,1309151649),n=N(n,r,a,o,e[i+4],6,-145523070),o=N(o,n,r,a,e[i+11],10,-1120210379),a=N(a,o,n,r,e[i+2],15,718787259),r=N(r,a,o,n,e[i+9],21,-343485551),n=x(n,s),r=x(r,l),a=x(a,u),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,i){return E(t&n|~t&r,e,t,a,o,i)}function O(e,t,n,r,a,o,i){return E(t&r|n&~r,e,t,a,o,i)}function H(e,t,n,r,a,o,i){return E(t^n^r,e,t,a,o,i)}function N(e,t,n,r,a,o,i){return E(n^(t|~r),e,t,a,o,i)}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,i=Math.ceil(o/16),s=new Array(i),l=0;l<i;++l){for(var u=new Uint32Array(16),d=0;d<16;++d)u[d]=e[64*l+4*d]<<24|e[64*l+4*d+1]<<16|e[64*l+4*d+2]<<8|e[64*l+4*d+3];s[l]=u}s[i-1][14]=8*(e.length-1)/Math.pow(2,32),s[i-1][14]=Math.floor(s[i-1][14]),s[i-1][15]=8*(e.length-1)&4294967295;for(var c=0;c<i;++c){for(var m=new Uint32Array(80),h=0;h<16;++h)m[h]=s[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(!l(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:()=>ji,ermAttach:()=>Ti,ermForm:()=>ue,ermFormHelper:()=>Ai,ermList:()=>O,ermListHelper:()=>Si}),"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 i="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==",s=e=>((0,n.pushScopeId)("data-v-160fcaec"),e=e(),(0,n.popScopeId)(),e),l={class:"myClass"},u=s((()=>(0,n.createElementVNode)("img",{src:i,style:{width:"150px",height:"150px","border-radius":"50%"}},null,-1))),d=s((()=>(0,n.createElementVNode)("h4",{style:{color:"darkgray","margin-top":"0px"}},"暂无数据",-1))),c=[u,d];function m(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("div",l,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"},blankAfterCaption:{type:Boolean,default:!1},fontSize:{type:String,default:"default"},fontFamily:{type:String,default:"default"},controlsInRow:{type:Number,default:1}},emits:["leftIconClick","mainClick","rightIconClick","leftIconHold","rightIconHold","pullRefresh","pullUpdate"],setup(e,{expose:t,emit:r}){const a=(0,n.ref)(["1"]),i=e,s=r;t({endLoad:P,selectAll:W,selectNone:V,getSelectedRows:z,getTableName:X});i.maxHeight&&i.maxHeight;var l=(0,n.ref)("0%"),u=(0,n.ref)("100%"),d=(0,n.ref)("0%");function c(){i.showLeft&&i.showRight?(l.value="15%",d.value="15%",u.value="70%"):i.showLeft?(l.value="15%",u.value="85%"):i.showRight&&(d.value="15%",u.value="85%"),console.log(l,d,u)}(0,n.watch)((()=>[i.showLeft,i.showRight]),(([e,t],[n,r])=>{c()}));const m=(0,n.ref)([]);var h={},f=[];async function _(){console.log("erm初始化---formName ",i.formName),console.log("erm初始化---functionId ",i.functionId),console.log("erm初始化---initSvc ",i.initSvc),h={};const e=new o.EI.EIInfo,t=e.addBlock(new o.EI.EiBlock,"");t.pushData({DEFAULT_COMPANY_CODE:"",FORM_NAME:i.formName,TYPE_CODE:"Web",FUNCTION_IDS:i.functionId,DATASET_NAME:"#",TABLE_NAMES:""},!0),console.log("eiblk",t),await o.EIManager.callService("",i.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;for(let a=0;a<t.length;a++){const e=t[a];if(""!==e.HEAD_TEXTCOLOR.trim()||"16777215"!==e.HEAD_TEXTCOLOR.trim()){var r=e.HEAD_TEXTCOLOR.trim();r="#"+(Number(r)+16777216).toString(16).padStart(6,"0"),e.HEAD_TEXTCOLOR=r}else e.HEAD_TEXTCOLOR="#000000";if(""!==e.CELL_TEXTCOLOR.trim()||"16777215"!==e.CELL_TEXTCOLOR.trim()){r=e.CELL_TEXTCOLOR.trim();r="#"+(Number(r)+16777216).toString(16).padStart(6,"0"),e.CELL_TEXTCOLOR=r}else e.CELL_TEXTCOLOR="#000000";""!==e.HEAD_FONTNAME.toString().trim()&&"系统默认"!==e.HEAD_FONTNAME.toString().trim()||("default"===i.fontFamily?e.HEAD_FONTNAME="阿里巴巴普惠体Regular":e.HEAD_FONTNAME=i.fontFamily),""!==e.CELL_FONTNAME.toString().trim()&&"系统默认"!==e.CELL_FONTNAME.toString().trim()||("default"===i.fontFamily?e.CELL_FONTNAME="阿里巴巴普惠体Regular":e.CELL_FONTNAME=i.fontFamily),"-1"===e.HEAD_FONTSIZE.toString().trim()||""===e.HEAD_FONTSIZE.toString().trim()||"0"===e.HEAD_FONTSIZE.toString().trim()?"default"===i.fontSize?e.HEAD_FONTSIZE="15px":e.HEAD_FONTSIZE=i.fontSize:e.HEAD_FONTSIZE+="px","-1"===e.CELL_FONTSIZE.toString().trim()||""===e.CELL_FONTSIZE.toString().trim()||"0"===e.CELL_FONTSIZE.toString().trim()?"default"===i.fontSize?e.CELL_FONTSIZE="15px":e.CELL_FONTSIZE=i.fontSize:e.CELL_FONTSIZE+="px",e.HEAD_FONTNAME+=",阿里巴巴普惠体Regular",e.CELL_FONTNAME+=",阿里巴巴普惠体Regular",e.DATASET_NAME=n[0]?.DATASET_NAME,e.TABLE_NAME=n[0]?.TABLE_NAME,e.COL_WIDTH<1?e.COL_WIDTH=1:e.COL_WIDTH>i.controlsInRow&&(e.COL_WIDTH=i.controlsInRow),e.TOTAL_WIDTH=24/i.controlsInRow*e.COL_WIDTH}t=t.filter((e=>"1"===e.IS_VISIBLE)),m.value=t,f=n[0].MERGE_COLUMN.split(",").filter((e=>" "!=e&&""!=e))}))}var x=null;function C(e){x=setTimeout((()=>{x=null,s("leftIconHold",e)}),1e3)}function E(e){clearTimeout(x),x=null}function j(e){x=setTimeout((()=>{x=null,s("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"===i.selectMode&&(B.value=[]),B.value.push(e)):B.value.splice(B.value.indexOf(e),1))}(0,n.watch)((()=>i.showSelect),(()=>{I.value=i.showSelect}),{immediate:!0});const F=(0,n.ref)(null),B=(0,n.ref)([]);function W(){"multiRow"===i.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];i.data.includes(t)||B.value.splice(e,1)}return(0,n.toRaw)(B.value)}(0,n.watch)((()=>i.showSelect),(()=>{i.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)((()=>i.leftSwiperSelect),(()=>{i.leftSwiperSelect?U.value=!0:U.value=!1}),{deep:!0,immediate:!0});var G=(0,n.ref)(!0);function $(e){i.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)((()=>i.rightSwiperDelete),(()=>{i.rightSwiperDelete?G.value=!0:G.value=!1}),{deep:!0,immediate:!0}),(0,n.watch)((()=>i.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)((()=>i.pullDownDisabled),(()=>{!0===i.pullDownDisabled&&(N.value=!1)}),{immediate:!0}),(0,n.onMounted)((()=>{c(),_()})),(t,r)=>{const o=(0,n.resolveComponent)("van-button"),s=(0,n.resolveComponent)("van-checkbox"),l=(0,n.resolveComponent)("van-col"),u=(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"===i.viewType,rowContentCard:"card"===i.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)(s,{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.createVNode)(u,null,{default:(0,n.withCtx)((()=>[e.blankAfterCaption?((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,{key:0},(0,n.renderList)(m.value,((t,r)=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.createVNode)(l,{class:"singleRow colDesc",style:(0,n.normalizeStyle)("color:"+t.HEAD_TEXTCOLOR+";font-size:"+t.HEAD_FONTSIZE+";font-family:"+t.HEAD_FONTNAME),span:"8"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(t.CUS_COL_CAPTION)+":",1)])),_:2},1032,["style"]),(0,n.createVNode)(l,{class:"singleRow colData",style:(0,n.normalizeStyle)("color:"+t.CELL_TEXTCOLOR+";font-size:"+t.CELL_FONTSIZE+";font-family:"+t.CELL_FONTNAME),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)))),256)):((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,{key:1},(0,n.renderList)(m.value,((t,r)=>((0,n.openBlock)(),(0,n.createBlock)(l,{span:t.TOTAL_WIDTH,class:"colDataDesc",style:(0,n.normalizeStyle)("color:"+t.HEAD_TEXTCOLOR+";font-size:"+t.HEAD_FONTSIZE+";font-family:"+t.HEAD_FONTNAME)},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(t.CUS_COL_CAPTION)+": "+(0,n.toDisplayString)(e.data[a][t.ITEM_CODE]),1)])),_:2},1032,["span","style"])))),256))])),_:2},1024)],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"===i.viewType,rowContentCard:"card"===i.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)(s,{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)(u,null,{default:(0,n.withCtx)((()=>[(0,n.unref)(f).includes(t.ITEM_CODE)?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[e.blankAfterCaption?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createVNode)(l,{class:"singleRow colDesc",style:(0,n.normalizeStyle)("color:"+t.HEAD_TEXTCOLOR+";font-size:"+t.HEAD_FONTSIZE+";font-family:"+t.HEAD_FONTNAME),span:"8"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(t.CUS_COL_CAPTION)+":",1)])),_:2},1032,["style"]),(0,n.createVNode)(l,{class:"singleRow colData",style:(0,n.normalizeStyle)("color:"+t.CELL_TEXTCOLOR+";font-size:"+t.CELL_FONTSIZE+";font-family:"+t.CELL_FONTNAME),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.openBlock)(),(0,n.createElementBlock)("div",{key:1,class:"colDataDesc",style:(0,n.normalizeStyle)("color:"+t.HEAD_TEXTCOLOR+";font-size:"+t.HEAD_FONTNAME+";font-family:"+t.HEAD_FONTSIZE),span:"8"},(0,n.toDisplayString)(t.CUS_COL_CAPTION)+": "+(0,n.toDisplayString)(e.data[a][t.ITEM_CODE]),5))],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)(u,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},[e.blankAfterCaption?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createVNode)(l,{class:"singleRow colDesc",style:(0,n.normalizeStyle)("color:"+t.HEAD_TEXTCOLOR+";font-size:"+t.HEAD_FONTSIZE+";font-family:"+t.HEAD_FONTNAME),span:"8"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(t.CUS_COL_CAPTION)+":",1)])),_:2},1032,["style"]),(0,n.createVNode)(l,{class:"singleRow colData",style:(0,n.normalizeStyle)("color:"+t.CELL_TEXTCOLOR+";font-size:"+t.CELL_FONTSIZE+";font-family:"+t.CELL_FONTNAME),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.openBlock)(),(0,n.createElementBlock)("div",{key:1,class:"colDataDesc",style:(0,n.normalizeStyle)("color:"+t.HEAD_TEXTCOLOR+";font-size:"+t.HEAD_FONTSIZE+";font-family:"+t.HEAD_FONTNAME),span:"8"},(0,n.toDisplayString)(t.CUS_COL_CAPTION)+": "+(0,n.toDisplayString)(e.data[a][t.ITEM_CODE]),5))],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-1766224b"]]),E=C,j=e=>(e.install=t=>{const n=e.name||e.__name;t.component(n,e)},e),O=(j(E),E);var H=r(381),N=r.n(H);const P=(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][u.value]===a.data)return i.value=Object.assign({},a.codeSet.data[e]),void(l.value=e);i.value[u.text]="",i.value[u.value]=""}o("input",i.value[u.value])}));const i=(0,n.ref)({}),s=(0,n.ref)(!1),l=(0,n.ref)(0);var u={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()&&(u.text=a.displayCol,u.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&&(i.value=e,o("input",i.value[u.value])),s.value=!1,y()},h=e=>{},f=()=>{i.value[u.text]="",i.value[u.value]="",console.log(i.value),s.value=!1,o("input",i.value[u.value]),y()},_=(0,n.ref)(""),p=e=>{console.log("keyword",e),console.log("handleSearch1",d);const t=[];c.value.forEach((n=>{n[u.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:i.value[(0,n.unref)(u).text],"onUpdate:modelValue":r[0]||(r[0]=e=>i.value[(0,n.unref)(u).text]=e),"is-link":!e.readOnly,placeholder:"点击选择",onClick:r[1]||(r[1]=()=>{e.readOnly||(s.value=!0)}),readonly:!0},null,8,["class","modelValue","is-link"]),(0,n.createVNode)(c,{show:s.value,"onUpdate:show":r[4]||(r[4]=e=>s.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":l.value,"cancel-button-text":"清空","columns-field-names":(0,n.unref)(u)},null,8,["columns","default-index","columns-field-names"])])),_:1},8,["show"])],64)}}}),I=P,R=I,F=(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 i;function s(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}}).*$`),s="$1$2.$3";e.target.value=e.target.value.replace(r,s),"-"===e.data&&(isNaN(e.target.value)||(e.target.value=-e.target.value)),(0,n.nextTick)((()=>{i=Number(e.target.value),o("input",i)}))}return t({}),(0,n.watch)((()=>a.data),(()=>{i=a.data})),(0,n.onMounted)((()=>{i=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)(i),"onUpdate:modelValue":r[0]||(r[0]=e=>(0,n.isRef)(i)?i.value=e:i=e),type:"number",onInput:s,placeholder:"请输入",autocomplete:"off",readonly:e.readOnly},null,8,["class","modelValue","readonly"])}}}),B=F,W=B,V=(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 i=(0,n.ref)("");function s(){o("input",i.value)}return(0,n.watch)((()=>a.data),(()=>{i.value=a.data})),(0,n.onMounted)((()=>{i.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)(i),"onUpdate:modelValue":[r[0]||(r[0]=e=>(0,n.isRef)(i)?i.value=e:i=e),s],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)(i),"onUpdate:modelValue":[r[1]||(r[1]=e=>(0,n.isRef)(i)?i.value=e:i=e),s],placeholder:"请输入",autocomplete:"off",readonly:e.readOnly,clearable:!0,spellcheck:"false"},null,8,["class","modelValue","readonly"]))}}}),z=V,U=z,q=(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 i=e,s=t;function l(){r.columns=[];let e=new Date,t=e.getFullYear(),n=e.getMonth(),a=e.getDate(),s=e.getHours(),l=e.getMinutes(),u=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(),_=s<10?`0${s}`:s.toString(),p=l<10?`0${l}`:l.toString(),y=u<10?`0${u}`:u.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"===i.type.trim().toLowerCase()&&r.columns.splice(3,3),console.log("columns",r.columns)}function u(){const e=a.value.getValues();o="",e.forEach((e=>{o+=e})),l()}function d(e,t){let n=new Date(e,t,0);return n.getDate()}function c(){s("changeValue")}function m(){r.isPicker=!1,s("cancel")}function h(){const e=a.value.getValues();var t="";e.forEach((e=>{t+=e})),s("confirm",t)}return(0,n.watch)((()=>r.isPicker),(e=>{r.columns=[],l()})),(0,n.watch)((()=>i.showPicker),(e=>{r.isPicker=e})),(e,t)=>{const o=(0,n.resolveComponent)("van-picker"),s=(0,n.resolveComponent)("van-popup");return(0,n.openBlock)(),(0,n.createBlock)(s,{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:u,onCancel:m,onConfirm:h,modelValue:r.selectedValues,"onUpdate:modelValue":t[0]||(t[0]=e=>r.selectedValues=e),"cancel-button-text":"清空",title:i.title},null,8,["columns","modelValue","title"])])),_:1},8,["show"])}}}),J=q,G=J,$=(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 i="";const s=(0,n.ref)(!1);function l(e){return 14===e.length?N()(e,"YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss"):8===e.length?N()(e,"YYYYMMDD").format("YYYY-MM-DD"):e}const u=e=>{s.value=!1,i=e,o("input",i)},d=e=>{s.value=!1,i="",o("input",i)};return(0,n.watch)((()=>a.data),(()=>{i=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)(i),"onUpdate:modelValue":r[0]||(r[0]=e=>(0,n.isRef)(i)?i.value=e:i=e),"is-link":!e.readOnly,name:"datetimePicker",formatter:l,placeholder:"点击选择时间",onClick:r[1]||(r[1]=()=>{e.readOnly||(s.value=!0)}),readonly:!0,autocomplete:"off"},null,8,["class","modelValue","is-link"]),(0,n.createVNode)(G,{onChangeValue:r[2]||(r[2]=e=>s.value=!1),showPicker:s.value,type:a.type,onConfirm:u,title:a.title,onCancel:d},null,8,["showPicker","type","title"])],64)}}}),K=$,Z=K,X=(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 i;function s(){o("input",i)}function l(){a.readOnly||o("btnClick")}return t({}),(0,n.watch)((()=>a.data),(()=>{i=a.data})),(0,n.onMounted)((()=>{i=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)(i),"onUpdate:modelValue":r[0]||(r[0]=e=>(0,n.isRef)(i)?i.value=e:i=e),"is-link":!e.readOnly,placeholder:"点击选择",onClick:l,readonly:!0,onInput:s,autocomplete:"false"},null,8,["modelValue","is-link"])}}}),Q=X,ee=Q,te={key:0,class:"mainTitle"},ne={key:1},re={class:"rowContent"},ae={class:"mainContent"},oe={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},showDeleteButton:{type:Boolean,default:!1}},emits:["dataChange","cellValueChange","btnClick","rowDelete"],setup(e,{expose:t,emit:r}){const a=e,i=r;t({getGridData:f,setGridData:_,addRow:h,checkRequireInput:w,resetData:k,getGridCellData:p,mergeDataRow:Y,getTableName:b,deleteRow:T});a.maxHeight&&a.maxHeight;const s=(0,n.ref)([]);var l=(0,n.reactive)([]);const u=(0,n.ref)({}),d=(0,n.computed)((()=>JSON.parse(JSON.stringify(l))));(0,n.watch)((()=>d.value),((e,t)=>{if(e.length>0){if(0!==Object.keys(e[0]).length&&i("dataChange",e),null===u.value||void 0===u.value||0===Object.keys(u.value).length)return;if(v(),e.length===t.length)for(let n=0;n<l.length;n++)for(let r=0;r<s.value.length;r++){const a=s.value[r].ITEM_CODE;e[n][a]!==t[n][a]&&void 0!==t[n][a]&&(L.length>0&&(L[n][a]=!1),i("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),u.value=c;var t=c["TSI00GRIDCOLUMN"].data;const n=c["TSI00GRIDVIEW"].data,r=n[0].DATASET_NAME,a=n[0].TABLE_NAME;var o=n[0].DISPLAY_WIDTH;-1===o&&(o=1),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=u.value[e.CODE_TABLE_NAME].columns[0].name,e.DISPLAY_MEMBER=u.value[e.CODE_TABLE_NAME].columns[1].name)),e.COL_WIDTH<1?e.COL_WIDTH=1:e.COL_WIDTH>o&&(e.COL_WIDTH=o),e.TOTAL_WIDTH=24/o*e.COL_WIDTH})),t=t.filter((e=>"1"===e.IS_VISIBLE)),s.value=t}))}function h(){l.push({}),(0,n.nextTick)((()=>{setTimeout((()=>{y(l[l.length-1]),M()}),500)}))}function f(){return l}function _(e,t,n){l[e][t]=n}function p(e,t){return l[e][t]}function y(e){s.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=N()(r).format(n);return a}if(n.toUpperCase().indexOf(",ADDDAYS")>0){var i=n.toUpperCase().indexOf(",ADDDAYS"),s=n.substring(0,i),l=n.substring(n.indexOf("(")+1,n.indexOf(")")),u=g(s),d="YYYYMMDDHHmmss";return 14===u.length?d="YYYYMMDDHHmmss":8===u.length&&(d="YYYYMMdd"),N()(u,d).add(Number(l),"days").format("YYYYMMDDHHmmss")}if(n.toUpperCase().indexOf(",ADDMONTHS")>0){i=n.toUpperCase().indexOf(",ADDMONTHS"),s=n.substring(0,i),l=n.substring(n.indexOf("(")+1,n.indexOf(")")),u=g(s),d="YYYYMMDDHHmmss";return 14===u.length?d="YYYYMMDDHHmmss":8===u.length&&(d="YYYYMMdd"),N()(u,d).add(Number(l),"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(){s.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<u.value[e.CODE_TABLE_NAME].data.length;n++){const r=u.value[e.CODE_TABLE_NAME].data[n];u.value[e.CODE_TABLE_NAME].data[n].showFlag=!0,""!==l[0][e.FATHER_FIELD]&&" "!==l[0][e.FATHER_FIELD]&&r[t]!==l[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<l.length;e++){L.push({});for(let t=0;t<s.value.length;t++)L[e][s.value[t].ITEM_CODE]=!1}l.forEach(((e,t)=>{s.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 l.forEach(((t,n)=>{s.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(){l.forEach((e=>{y(e)}))}function Y(e,t){if(l.length<=e)console.log("data中不存在第"+e+"行数据");else for(const n in t)t.hasOwnProperty(n)&&(console.log(`属性名: ${n}, 属性值: ${t[n]}`),l[e].hasOwnProperty(n)&&(l[e][n]=t[n]))}function b(){return c["TSI00GRIDVIEW"].data[0].TABLE_NAME}function D(e){const t=(0,n.toRaw)(l[e]);T(e),i("rowDelete",t)}function T(e){l.splice(e,1)}return(0,n.onMounted)((()=>{m(),h()})),(0,n.watch)((()=>s.value),(()=>{(0,n.nextTick)((()=>{M(),setTimeout((()=>{console.log("codesets--------",u.value)}),1e3)}))}),{deep:!0}),(t,r)=>{const a=(0,n.resolveComponent)("van-col"),o=(0,n.resolveComponent)("van-row"),d=(0,n.resolveComponent)("van-button"),c=(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",te,(0,n.toDisplayString)(e.mainTitle),1)):(0,n.createCommentVNode)("",!0),s.value.length>0&&(0,n.unref)(l).length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",ne,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(l),((t,r)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",re,[(0,n.createElementVNode)("div",ae,[(0,n.createVNode)(o,{justify:"start"},{default:(0,n.withCtx)((()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(s.value,((e,t)=>((0,n.openBlock)(),(0,n.createBlock)(a,{span:e.TOTAL_WIDTH},{default:(0,n.withCtx)((()=>[(0,n.createVNode)(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",oe,"*")):(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)(U,{key:0,height:e.ROWHIGH,data:(0,n.unref)(l)[r][e.ITEM_CODE],onInput:t=>{(0,n.unref)(l)[r][e.ITEM_CODE]=t},checkFlag:L.length>0&&L[r][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)(ee,{key:1,data:(0,n.unref)(l)[r][e.ITEM_CODE],onInput:t=>{(0,n.unref)(l)[r][e.ITEM_CODE]=t},onBtnClick:t=>i("btnClick",{ITEM_CODE:e.ITEM_CODE,INDEX:r}),checkFlag:L.length>0&&L[r][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)(W,{key:2,data:(0,n.unref)(l)[r][e.ITEM_CODE],scale:e.DATA_ACCU,onInput:t=>{(0,n.unref)(l)[r][e.ITEM_CODE]=t},checkFlag:L.length>0&&L[r][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)(Z,{key:3,data:(0,n.unref)(l)[r][e.ITEM_CODE],type:e.FORMAT_STRING,onInput:t=>{(0,n.unref)(l)[r][e.ITEM_CODE]=t},title:e.CUS_COL_CAPTION,checkFlag:L.length>0&&L[r][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)(R,{key:4,data:(0,n.unref)(l)[r][e.ITEM_CODE],"code-set":u.value[e.CODE_TABLE_NAME],type:e.FORMAT_STRING,onInput:t=>{(0,n.unref)(l)[r][e.ITEM_CODE]=t},title:e.CUS_COL_CAPTION,"value-col":e.VALUE_MEMBER,"display-col":e.DISPLAY_MEMBER,"show-search":!0,checkFlag:L.length>0&&L[r][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)])),_:2},1032,["span"])))),256))])),_:2},1024),(0,n.withDirectives)((0,n.createVNode)(d,{type:"danger",size:"small",style:{"font-size":"17px","font-family":"阿里巴巴普惠体Regular"},color:"#FA5251",onClick:e=>D(r)},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)("删 除")])),_:2},1032,["onClick"]),[[n.vShow,e.showDeleteButton]])])])))),256))])):(0,n.createCommentVNode)("",!0),0===s.value.length||0===(0,n.unref)(l).length?((0,n.openBlock)(),(0,n.createBlock)(c,{key:2})):(0,n.createCommentVNode)("",!0)],64)}}}),se=(0,h.Z)(ie,[["__scopeId","data-v-727fda47"]]),le=se,ue=(j(le),le);Object.assign;const de=()=>{},ce=Array.isArray;function me(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function he(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!fe(e[n],t[n]))return!1;return!0}function fe(e,t){return ce(e)?_e(e,t):ce(t)?_e(t,e):e===t}function _e(e,t){return ce(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var pe,ye;(function(e){e["pop"]="pop",e["push"]="push"})(pe||(pe={})),function(e){e["back"]="back",e["forward"]="forward",e["unknown"]=""}(ye||(ye={}));new Map;Symbol("");var ge;(function(e){e[e["aborted"]=4]="aborted",e[e["cancelled"]=8]="cancelled",e[e["duplicated"]=16]="duplicated"})(ge||(ge={}));Symbol(""),Symbol("");const Me=Symbol(""),ve=Symbol("");Symbol("");function Le(e){const t=(0,n.inject)(Me),r=(0,n.inject)(ve),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 i=o.findIndex(me.bind(null,n));if(i>-1)return i;const s=Ye(e[t-2]);return t>1&&Ye(n)===s&&o[o.length-1].path!==s?o.findIndex(me.bind(null,e[t-2])):i})),i=(0,n.computed)((()=>o.value>-1&&ke(r.params,a.value.params))),s=(0,n.computed)((()=>o.value>-1&&o.value===r.matched.length-1&&he(r.params,a.value.params)));function l(r={}){return we(r)?t[(0,n.unref)(e.replace)?"replace":"push"]((0,n.unref)(e.to)).catch(de):Promise.resolve()}return{route:a,href:(0,n.computed)((()=>a.value.href)),isActive:i,isExactActive:s,navigate:l}}Boolean,Boolean;function we(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 ke(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(!ce(a)||a.length!==r.length||r.some(((e,t)=>e!==a[t])))return!1}return!0}function Ye(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const be=(e,t,n)=>null!=e?e:null!=t?t:n;function De(){return(0,n.inject)(Me)}const Te=e=>void 0!==e&&null!==e,Se=e=>"function"===typeof e,Ae=e=>null!==e&&"object"===typeof e,xe=e=>Ae(e)&&Se(e.then)&&Se(e.catch);const Ce=e=>"number"===typeof e||/^\d+(\.\d+)?$/.test(e),Ee=()=>!!He&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());function je(){}const Oe=Object.assign,He="undefined"!==typeof window;function Ne(e,t){const n=t.split(".");let r=e;return n.forEach((e=>{var t;r=Ae(r)&&null!=(t=r[e])?t:""})),r}function Pe(e,t,n){return t.reduce(((t,r)=>(n&&void 0===e[r]||(t[r]=e[r]),t)),{})}function Ie(e){if(Te(e))return Ce(e)?`${e}px`:String(e)}function Re(e){if(Te(e)){if(Array.isArray(e))return{width:Ie(e[0]),height:Ie(e[1])};const t=Ie(e);return{width:t,height:t}}}function Fe(e){const t={};return void 0!==e&&(t.zIndex=+e),t}const Be=/-(\w)/g,We=e=>e.replace(Be,((e,t)=>t.toUpperCase())),Ve=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");const ze=(e,t,n)=>Math.min(Math.max(e,t),n);function Ue(e){return e.install=t=>{const{name:n}=e;n&&(t.component(n,e),t.component(We(`-${n}`),e))},e}function qe(e){const t=(0,n.getCurrentInstance)();t&&Oe(t.proxy,e)}function Je(){const e=(0,n.reactive)({show:!1}),t=t=>{e.show=t},r=n=>{Oe(e,n,{transitionAppear:!0}),t(!0)},a=()=>t(!1);return qe({open:r,close:a,toggle:t}),{open:r,close:a,state:e,toggle:t}}function Ge(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:$e}=Object.prototype;function Ke(e,t,n){const r=t[n];Te(r)&&($e.call(e,n)&&Ae(r)?e[n]=Ze(Object(e[n]),r):e[n]=r)}function Ze(e,t){return Object.keys(t).forEach((n=>{Ke(e,t,n)})),e}var Xe={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 Qe=(0,n.ref)("zh-CN"),et=(0,n.reactive)({"zh-CN":Xe}),tt={messages(){return et[Qe.value]},use(e,t){Qe.value=e,this.add({[e]:t})},add(e={}){Ze(et,e)}};var nt=tt;function rt(e){const t=We(e)+".";return(e,...n)=>{const r=nt.messages(),a=Ne(r,t+e)||Ne(r,e);return Se(a)?a(...n):a}}function at(e,t){return t?"string"===typeof t?` ${e}--${t}`:Array.isArray(t)?t.reduce(((t,n)=>t+at(e,n)),""):Object.keys(t).reduce(((n,r)=>n+(t[r]?at(e,r):"")),""):""}function ot(e){return(t,n)=>(t&&"string"!==typeof t&&(n=t,t=""),t=t?`${e}__${t}`:e,`${t}${at(t,n)}`)}function it(e){const t=`van-${e}`;return[t,ot(t),rt(t)]}const st=null,lt=[Number,String],ut={type:Boolean,default:!0},dt=e=>({type:e,required:!0}),ct=()=>({type:Array,default:()=>[]}),mt=e=>({type:Number,default:e}),ht=e=>({type:lt,default:e}),ft=e=>({type:String,default:e});let _t=0;function pt(e){e?(_t||document.body.classList.add("van-toast--unclickable"),_t++):_t&&(_t--,_t||document.body.classList.remove("van-toast--unclickable"))}const[yt,gt]=it("badge"),Mt={dot:Boolean,max:lt,tag:ft("div"),color:String,offset:Array,content:lt,showZero:ut,position:ft("top-right")};var vt=(0,n.defineComponent)({name:yt,props:Mt,setup(e,{slots:t}){const r=()=>{if(t.content)return!0;const{content:n,showZero:r}=e;return Te(n)&&""!==n&&(r||0!==n&&"0"!==n)},a=()=>{const{dot:n,max:a,content:o}=e;if(!n&&r())return t.content?t.content():Te(a)&&Ce(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=Ie(a),n.right="number"===typeof r?Ie(-r):r.startsWith("-")?r.replace("-",""):`-${r}`):(n.marginTop=Ie(a),n.marginLeft=Ie(r))}return n})),i=()=>{if(r()||e.dot)return(0,n.createVNode)("div",{class:gt([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:gt("wrapper")},{default:()=>[t.default(),i()]})}return i()}}});const Lt=Ue(vt);let wt=2e3;const kt=()=>++wt,Yt=e=>{wt=e},[bt,Dt]=it("config-provider"),Tt=Symbol(bt),St={tag:ft("div"),zIndex:Number,themeVars:Object,iconPrefix:String};function At(e){const t={};return Object.keys(e).forEach((n=>{t[`--van-${Ve(n)}`]=e[n]})),t}(0,n.defineComponent)({name:bt,props:St,setup(e,{slots:t}){const r=(0,n.computed)((()=>{if(e.themeVars)return At(e.themeVars)}));return(0,n.provide)(Tt,e),(0,n.watchEffect)((()=>{void 0!==e.zIndex&&Yt(e.zIndex)})),()=>(0,n.createVNode)(e.tag,{class:Dt(),style:r.value},{default:()=>{var e;return[null==(e=t.default)?void 0:e.call(t)]}})}});const[xt,Ct]=it("icon"),Et=e=>null==e?void 0:e.includes("/"),jt={dot:Boolean,tag:ft("i"),name:String,size:lt,badge:lt,color:String,badgeProps:Object,classPrefix:String};var Ot=(0,n.defineComponent)({name:xt,props:jt,setup(e,{slots:t}){const r=(0,n.inject)(Tt,null),a=(0,n.computed)((()=>e.classPrefix||(null==r?void 0:r.iconPrefix)||Ct()));return()=>{const{tag:r,dot:o,name:i,size:s,badge:l,color:u}=e,d=Et(i);return(0,n.createVNode)(Lt,(0,n.mergeProps)({dot:o,tag:r,class:[a.value,d?"":`${a.value}-${i}`],style:{color:u,fontSize:Ie(s)},content:l},e.badgeProps),{default:()=>{var e;return[null==(e=t.default)?void 0:e.call(t),d&&(0,n.createVNode)("img",{class:Ct("image"),src:i},null)]}})}}});const Ht=Ue(Ot);const Nt={show:Boolean,zIndex:lt,overlay:ut,duration:lt,teleport:[String,Object],lockScroll:ut,lazyRender:ut,beforeClose:Function,overlayStyle:Object,overlayClass:st,transitionAppear:Boolean,closeOnClickOverlay:ut};Object.keys(Nt);function Pt(e,{args:t=[],done:n,canceled:r}){if(e){const a=e.apply(null,t);xe(a)?a.then((e=>{e?n():r&&r()})).catch(je):a?n():r&&r()}else n()}const It="van-hairline",Rt=`${It}--bottom`,Ft=`${It}--surround`,Bt="van-haptics-feedback";Symbol("van-form");var Wt="undefined"!==typeof window;function Vt(e){return Wt?requestAnimationFrame(e):-1}function zt(e){Vt((()=>Vt(e)))}var Ut=e=>e===window,qt=(e,t)=>({top:0,left:0,right:e,bottom:t,width:e,height:t}),Jt=e=>{const t=(0,n.unref)(e);if(Ut(t)){const e=t.innerWidth,n=t.innerHeight;return qt(e,n)}return(null==t?void 0:t.getBoundingClientRect)?t.getBoundingClientRect():qt(0,0)};function Gt(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 i=(0,n.computed)((()=>o.indexOf(e)));return{parent:t,index:i}}return{parent:null,index:(0,n.ref)(-1)}}function $t(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 Kt=(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 Zt(e,t,n){const r=$t(e.subTree.children);n.sort(((e,t)=>Kt(r,e.vnode)-Kt(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 Xt(e){const t=(0,n.reactive)([]),r=(0,n.reactive)([]),a=(0,n.getCurrentInstance)(),o=o=>{const i=e=>{e.proxy&&(r.push(e),t.push(e.proxy),Zt(a,t,r))},s=e=>{const n=r.indexOf(e);t.splice(n,1),r.splice(n,1)};(0,n.provide)(e,Object.assign({link:i,unlink:s,children:t,internalChildren:r},o))};return{children:t,linkChildren:o}}var Qt,en;function tn(e){let t;(0,n.onMounted)((()=>{e(),(0,n.nextTick)((()=>{t=!0}))})),(0,n.onActivated)((()=>{t&&e()}))}function nn(e,t,r={}){if(!Wt)return;const{target:a=window,passive:o=!1,capture:i=!1}=r;let s,l=!1;const u=r=>{if(l)return;const a=(0,n.unref)(r);a&&!s&&(a.addEventListener(e,t,{capture:i,passive:o}),s=!0)},d=r=>{if(l)return;const a=(0,n.unref)(r);a&&s&&(a.removeEventListener(e,t,i),s=!1)};let c;return(0,n.onUnmounted)((()=>d(a))),(0,n.onDeactivated)((()=>d(a))),tn((()=>u(a))),(0,n.isRef)(a)&&(c=(0,n.watch)(a,((e,t)=>{d(t),u(e)}))),()=>{null==c||c(),d(a),l=!0}}function rn(){if(!Qt&&(Qt=(0,n.ref)(0),en=(0,n.ref)(0),Wt)){const e=()=>{Qt.value=window.innerWidth,en.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:Qt,height:en}}var an,on=/scroll|auto|overlay/i,sn=Wt?window:void 0;function ln(e){const t=1;return"HTML"!==e.tagName&&"BODY"!==e.tagName&&e.nodeType===t}function un(e,t=sn){let n=e;while(n&&n!==t&&ln(n)){const{overflowY:e}=window.getComputedStyle(n);if(on.test(e))return n;n=n.parentNode}return t}function dn(){if(!an&&(an=(0,n.ref)("visible"),Wt)){const e=()=>{an.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return an}Symbol("van-field");function cn(e,t){return e>t?"horizontal":t>e?"vertical":""}function mn(){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),i=(0,n.ref)(0),s=(0,n.ref)(""),l=()=>"vertical"===s.value,u=()=>"horizontal"===s.value,d=()=>{r.value=0,a.value=0,o.value=0,i.value=0,s.value=""},c=n=>{d(),e.value=n.touches[0].clientX,t.value=n.touches[0].clientY},m=n=>{const l=n.touches[0];r.value=(l.clientX<0?0:l.clientX)-e.value,a.value=l.clientY-t.value,o.value=Math.abs(r.value),i.value=Math.abs(a.value);const u=10;(!s.value||o.value<u&&i.value<u)&&(s.value=cn(o.value,i.value))};return{move:m,start:c,reset:d,startX:e,startY:t,deltaX:r,deltaY:a,offsetX:o,offsetY:i,direction:s,isVertical:l,isHorizontal:u}}Ee();const hn=e=>e.stopPropagation();function fn(e,t){("boolean"!==typeof e.cancelable||e.cancelable)&&e.preventDefault(),t&&hn(e)}function _n(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:pn,height:yn}=rn();let gn=0;const Mn="van-overflow-hidden";function vn(e,t){const r=mn(),a="01",o="10",i=t=>{r.move(t);const n=r.deltaY.value>0?o:a,i=un(t.target,e.value),{scrollHeight:s,offsetHeight:l,scrollTop:u}=i;let d="11";0===u?d=l>=s?"00":"01":u+l>=s&&(d="10"),"11"===d||!r.isVertical()||parseInt(d,2)&parseInt(n,2)||fn(t,!0)},s=()=>{document.addEventListener("touchstart",r.start),document.addEventListener("touchmove",i,{passive:!1}),gn||document.body.classList.add(Mn),gn++},l=()=>{gn&&(document.removeEventListener("touchstart",r.start),document.removeEventListener("touchmove",i),gn--,gn||document.body.classList.remove(Mn))},u=()=>t()&&s(),d=()=>t()&&l();tn(u),(0,n.onDeactivated)(d),(0,n.onBeforeUnmount)(d),(0,n.watch)(t,(e=>{e?s():l()}))}function Ln(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 wn=Symbol();function kn(e){const t=(0,n.inject)(wn,null);t&&(0,n.watch)(t,(t=>{t&&e()}))}const[Yn,bn]=it("overlay"),Dn={show:Boolean,zIndex:lt,duration:lt,className:st,lockScroll:ut,lazyRender:ut,customStyle:Object};var Tn=(0,n.defineComponent)({name:Yn,props:Dn,setup(e,{slots:t}){const r=(0,n.ref)(),a=Ln((()=>e.show||!e.lazyRender)),o=t=>{e.lockScroll&&fn(t,!0)},i=a((()=>{var a;const o=Oe(Fe(e.zIndex),e.customStyle);return Te(e.duration)&&(o.animationDuration=`${e.duration}s`),(0,n.withDirectives)((0,n.createVNode)("div",{ref:r,style:o,class:[bn(),e.className]},[null==(a=t.default)?void 0:a.call(t)]),[[n.vShow,e.show]])}));return nn("touchmove",o,{target:r}),()=>(0,n.createVNode)(n.Transition,{name:"van-fade",appear:!0},{default:i})}});const Sn=Ue(Tn);const An=Oe({},Nt,{round:Boolean,position:ft("center"),closeIcon:ft("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:ft("top-right"),safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[xn,Cn]=it("popup");var En=(0,n.defineComponent)({name:xn,inheritAttrs:!1,props:An,emits:["open","close","opened","closed","keydown","update:show","click-overlay","click-close-icon"],setup(e,{emit:t,attrs:r,slots:a}){let o,i;const s=(0,n.ref)(),l=(0,n.ref)(),u=Ln((()=>e.show||!e.lazyRender)),d=(0,n.computed)((()=>{const t={zIndex:s.value};if(Te(e.duration)){const n="center"===e.position?"animationDuration":"transitionDuration";t[n]=`${e.duration}s`}return t})),c=()=>{o||(o=!0,s.value=void 0!==e.zIndex?+e.zIndex:kt(),t("open"))},m=()=>{o&&Pt(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)(Sn,{show:e.show,class:e.overlayClass,zIndex:s.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)(Ht,{role:"button",tabindex:0,name:e.closeIcon,class:[Cn("close-icon",e.closeIconPosition),Bt],classPrefix:e.iconPrefix,onClick:_},null)},y=()=>t("opened"),g=()=>t("closed"),M=e=>t("keydown",e),v=u((()=>{var t;const{round:o,position:i,safeAreaInsetTop:s,safeAreaInsetBottom:u}=e;return(0,n.withDirectives)((0,n.createVNode)("div",(0,n.mergeProps)({ref:l,style:d.value,role:"dialog",tabindex:0,class:[Cn({round:o,[i]:i}),{"van-safe-area-top":s,"van-safe-area-bottom":u}],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=l.value)||e.focus()}))),!e&&o&&(o=!1,t("close"))})),qe({popupRef:l}),vn(l,(()=>e.show&&e.lockScroll)),nn("popstate",(()=>{e.closeOnPopstate&&(m(),i=!1)})),(0,n.onMounted)((()=>{e.show&&c()})),(0,n.onActivated)((()=>{i&&(t("update:show",!0),i=!1)})),(0,n.onDeactivated)((()=>{e.show&&e.teleport&&(m(),i=!0)})),(0,n.provide)(wn,(()=>e.show)),()=>e.teleport?(0,n.createVNode)(n.Teleport,{to:e.teleport},{default:()=>[f(),L()]}):(0,n.createVNode)(n.Fragment,null,[f(),L()])}});const jn=Ue(En);const[On,Hn]=it("loading"),Nn=Array(12).fill(null).map(((e,t)=>(0,n.createVNode)("i",{class:Hn("line",String(t+1))},null))),Pn=(0,n.createVNode)("svg",{class:Hn("circular"),viewBox:"25 25 50 50"},[(0,n.createVNode)("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),In={size:lt,type:ft("circular"),color:String,vertical:Boolean,textSize:lt,textColor:String};var Rn=(0,n.defineComponent)({name:On,props:In,setup(e,{slots:t}){const r=(0,n.computed)((()=>Oe({color:e.color},Re(e.size)))),a=()=>{var r;if(t.default)return(0,n.createVNode)("span",{class:Hn("text"),style:{fontSize:Ie(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:Hn([t,{vertical:o}]),"aria-live":"polite","aria-busy":!0},[(0,n.createVNode)("span",{class:Hn("spinner",t),style:r.value},["spinner"===t?Nn:Pn]),a()])}}});const Fn=Ue(Rn);const[Bn,Wn]=it("toast"),Vn=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay"],zn={icon:String,show:Boolean,type:ft("text"),overlay:Boolean,message:lt,iconSize:lt,duration:mt(2e3),position:ft("middle"),teleport:[String,Object],className:st,iconPrefix:String,transition:ft("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:st,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean};var Un=(0,n.defineComponent)({name:Bn,props:zn,emits:["update:show"],setup(e,{emit:t}){let r,a=!1;const o=()=>{const t=e.show&&e.forbidClick;a!==t&&(a=t,pt(a))},i=e=>t("update:show",e),s=()=>{e.closeOnClick&&i(!1)},l=()=>clearTimeout(r),u=()=>{const{icon:t,type:r,iconSize:a,iconPrefix:o,loadingType:i}=e,s=t||"success"===r||"fail"===r;return s?(0,n.createVNode)(Ht,{name:t||r,size:a,class:Wn("icon"),classPrefix:o},null):"loading"===r?(0,n.createVNode)(Fn,{class:Wn("loading"),size:a,type:i},null):void 0},d=()=>{const{type:t,message:r}=e;if(Te(r)&&""!==r)return"html"===t?(0,n.createVNode)("div",{key:0,class:Wn("text"),innerHTML:String(r)},null):(0,n.createVNode)("div",{class:Wn("text")},[r])};return(0,n.watch)((()=>[e.show,e.forbidClick]),o),(0,n.watch)((()=>[e.show,e.type,e.message,e.duration]),(()=>{l(),e.show&&e.duration>0&&(r=setTimeout((()=>{i(!1)}),e.duration))})),(0,n.onMounted)(o),(0,n.onUnmounted)(o),()=>(0,n.createVNode)(jn,(0,n.mergeProps)({class:[Wn([e.position,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:s,onClosed:l,"onUpdate:show":i},Pe(e,Vn)),{default:()=>[u(),d()]})}});const qn={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 Jn=[],Gn=!1,$n=Oe({},qn);const Kn=new Map;function Zn(e){return Ae(e)?e:{message:e}}function Xn(){const{instance:e,unmount:t}=Ge({setup(){const r=(0,n.ref)(""),{open:a,state:o,close:i,toggle:s}=Je(),l=()=>{Gn&&(Jn=Jn.filter((t=>t!==e)),t())},u=()=>{const e={onClosed:l,"onUpdate:show":s};return(0,n.createVNode)(Un,(0,n.mergeProps)(o,e),null)};return(0,n.watch)(r,(e=>{o.message=e})),(0,n.getCurrentInstance)().render=u,{open:a,clear:i,message:r}}});return e}function Qn(){if(!Jn.length||Gn){const e=Xn();Jn.push(e)}return Jn[Jn.length-1]}function er(e={}){if(!He)return{};const t=Qn(),n=Zn(e);return t.open(Oe({},$n,Kn.get(n.type||$n.type),n)),t}const tr=e=>t=>er(Oe({type:e},Zn(t)));function nr(e,t){"string"===typeof e?Kn.set(e,t):Oe($n,e)}er.loading=tr("loading"),er.success=tr("success"),er.fail=tr("fail"),er.clear=e=>{var t;Jn.length&&(e?(Jn.forEach((e=>{e.clear()})),Jn=[]):Gn?null==(t=Jn.shift())||t.clear():Jn[0].clear())},er.setDefaultOptions=nr,er.resetDefaultOptions=e=>{"string"===typeof e?Kn.delete(e):($n=Oe({},qn),Kn.clear())},er.allowMultiple=(e=!0)=>{Gn=e},er.install=e=>{e.use(Ue(Un)),e.config.globalProperties.$toast=er};const rr={to:[String,Object],url:String,replace:Boolean};function ar({to:e,url:t,replace:n,$router:r}){e&&r?r[n?"replace":"push"](e):t&&(n?location.replace(t):location.href=t)}function or(){const e=(0,n.getCurrentInstance)().proxy;return()=>ar(e)}const[ir,sr]=it("button"),lr=Oe({},rr,{tag:ft("button"),text:String,icon:String,type:ft("default"),size:ft("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:ft("button"),loadingSize:lt,loadingText:String,loadingType:String,iconPosition:ft("left")});var ur=(0,n.defineComponent)({name:ir,props:lr,emits:["click"],setup(e,{emit:t,slots:r}){const a=or(),o=()=>r.loading?r.loading():(0,n.createVNode)(Fn,{size:e.loadingSize,type:e.loadingType,class:sr("loading")},null),i=()=>e.loading?o():r.icon?(0,n.createVNode)("div",{class:sr("icon")},[r.icon()]):e.icon?(0,n.createVNode)(Ht,{name:e.icon,class:sr("icon"),classPrefix:e.iconPrefix},null):void 0,s=()=>{let t;if(t=e.loading?e.loadingText:r.default?r.default():e.text,t)return(0,n.createVNode)("span",{class:sr("text")},[t])},l=()=>{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}},u=n=>{e.loading?fn(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=[sr([r,a,{plain:c,block:o,round:d,square:m,loading:h,disabled:f,hairline:_}]),{[Ft]:_}];return(0,n.createVNode)(t,{type:p,class:g,style:l(),disabled:f,onClick:u},{default:()=>[(0,n.createVNode)("div",{class:sr("content")},["left"===y&&i(),s(),"right"===y&&i()])]})}}});const dr=Ue(ur);let cr=0;function mr(){const e=(0,n.getCurrentInstance)(),{name:t="unknown"}=(null==e?void 0:e.type)||{};return`${t}-${++cr}`}const[hr,fr]=it("empty"),_r={image:ft("default"),imageSize:[Number,String,Array],description:String};var pr=(0,n.defineComponent)({name:hr,props:_r,setup(e,{slots:t}){const r=()=>{const r=t.description?t.description():e.description;if(r)return(0,n.createVNode)("p",{class:fr("description")},[r])},a=()=>{if(t.default)return(0,n.createVNode)("div",{class:fr("bottom")},[t.default()])},o=mr(),i=e=>`${o}-${e}`,s=e=>`url(#${i(e)})`,l=(e,t,r)=>(0,n.createVNode)("stop",{"stop-color":e,offset:`${t}%`,"stop-opacity":r},null),u=(e,t)=>[l(e,0),l(t,100)],d=e=>[(0,n.createVNode)("defs",null,[(0,n.createVNode)("radialGradient",{id:i(e),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[l("#EBEDF0",0),l("#F2F3F5",100,.3)])]),(0,n.createVNode)("ellipse",{fill:s(e),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],c=()=>[(0,n.createVNode)("defs",null,[(0,n.createVNode)("linearGradient",{id:i("a"),x1:"64%",y1:"100%",x2:"64%"},[l("#FFF",0,.5),l("#F2F3F5",100)])]),(0,n.createVNode)("g",{opacity:".8"},[(0,n.createVNode)("path",{d:"M36 131V53H16v20H2v58h34z",fill:s("a")},null),(0,n.createVNode)("path",{d:"M123 15h22v14h9v77h-31V15z",fill:s("a")},null)])],m=()=>[(0,n.createVNode)("defs",null,[(0,n.createVNode)("linearGradient",{id:i("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[l("#F2F3F5",0,.3),l("#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:s("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:s("b")},null)])],h=()=>(0,n.createVNode)("svg",{viewBox:"0 0 160 160"},[(0,n.createVNode)("defs",null,[(0,n.createVNode)("linearGradient",{id:i(1),x1:"64%",y1:"100%",x2:"64%"},[l("#FFF",0,.5),l("#F2F3F5",100)]),(0,n.createVNode)("linearGradient",{id:i(2),x1:"50%",x2:"50%",y2:"84%"},[l("#EBEDF0",0),l("#DCDEE0",100,0)]),(0,n.createVNode)("linearGradient",{id:i(3),x1:"100%",x2:"100%",y2:"100%"},[u("#EAEDF0","#DCDEE0")]),(0,n.createVNode)("radialGradient",{id:i(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[l("#EBEDF0",0),l("#FFF",100,0)])]),(0,n.createVNode)("g",{fill:"none"},[c(),(0,n.createVNode)("path",{fill:s(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:s(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:s(3)},null),(0,n.createVNode)("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:s(3)},null),(0,n.createVNode)("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:s(3)},null),(0,n.createVNode)("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:s(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:i(5)},[u("#F2F3F5","#DCDEE0")]),(0,n.createVNode)("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:i(6)},[u("#EAEDF1","#DCDEE0")]),(0,n.createVNode)("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:i(7)},[u("#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:s(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:s(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:s(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:i(8)},[u("#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:s(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:i(9)},[u("#EEE","#D8D8D8")]),(0,n.createVNode)("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:i(10)},[u("#F2F3F5","#DCDEE0")]),(0,n.createVNode)("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(11)},[u("#F2F3F5","#DCDEE0")]),(0,n.createVNode)("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(12)},[u("#FFF","#F7F8FA")])]),c(),m(),d("d"),(0,n.createVNode)("g",{transform:"rotate(-45 113 -4)",fill:"none"},[(0,n.createVNode)("rect",{fill:s(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),(0,n.createVNode)("rect",{fill:s(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),(0,n.createVNode)("circle",{stroke:s(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),(0,n.createVNode)("circle",{fill:s(12),cx:"27",cy:"27",r:"16"},null),(0,n.createVNode)("path",{d:"M37 7c-8 0-15 5-16 12",stroke:s(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:fr()},[(0,n.createVNode)("div",{class:fr("image"),style:Re(e.imageSize)},[y()]),r(),a()])}});const yr=Ue(pr);const gr=(e,t)=>{const r=(0,n.ref)(),a=()=>{r.value=Jt(e).height};return(0,n.onMounted)((()=>{if((0,n.nextTick)(a),t)for(let e=1;e<=3;e++)setTimeout(a,100*e)})),kn((()=>(0,n.nextTick)(a))),r};function Mr(e,t){const r=gr(e,!0);return e=>(0,n.createVNode)("div",{class:t("placeholder"),style:{height:r.value?`${r.value}px`:void 0}},[e()])}const[vr,Lr]=it("nav-bar"),wr={title:String,fixed:Boolean,zIndex:lt,border:ut,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean};var kr=(0,n.defineComponent)({name:vr,props:wr,emits:["click-left","click-right"],setup(e,{emit:t,slots:r}){const a=(0,n.ref)(),o=Mr(a,Lr),i=e=>t("click-left",e),s=e=>t("click-right",e),l=()=>r.left?r.left():[e.leftArrow&&(0,n.createVNode)(Ht,{class:Lr("arrow"),name:"arrow-left"},null),e.leftText&&(0,n.createVNode)("span",{class:Lr("text")},[e.leftText])],u=()=>r.right?r.right():(0,n.createVNode)("span",{class:Lr("text")},[e.rightText]),d=()=>{const{title:t,fixed:o,border:d,zIndex:c}=e,m=Fe(c),h=e.leftArrow||e.leftText||r.left,f=e.rightText||r.right;return(0,n.createVNode)("div",{ref:a,style:m,class:[Lr({fixed:o}),{[Rt]:d,"van-safe-area-top":e.safeAreaInsetTop}]},[(0,n.createVNode)("div",{class:Lr("content")},[h&&(0,n.createVNode)("div",{class:[Lr("left"),Bt],onClick:i},[l()]),(0,n.createVNode)("div",{class:[Lr("title"),"van-ellipsis"]},[r.title?r.title():t]),f&&(0,n.createVNode)("div",{class:[Lr("right"),Bt],onClick:s},[u()])])])};return()=>e.fixed&&e.placeholder?o(d):d()}});const Yr=Ue(kr);var br="0123456789abcdefghijklmnopqrstuvwxyz";function Dr(e){return br.charAt(e)}function Tr(e,t){return e&t}function Sr(e,t){return e|t}function Ar(e,t){return e^t}function xr(e,t){return e&~t}function Cr(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 Er(e){var t=0;while(0!=e)e&=e-1,++t;return t}var jr,Or="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Hr="=";function Nr(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=Or.charAt(n>>6)+Or.charAt(63&n);t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=Or.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=Or.charAt(n>>2)+Or.charAt((3&n)<<4));while((3&r.length)>0)r+=Hr;return r}function Pr(e){var t,n="",r=0,a=0;for(t=0;t<e.length;++t){if(e.charAt(t)==Hr)break;var o=Or.indexOf(e.charAt(t));o<0||(0==r?(n+=Dr(o>>2),a=3&o,r=1):1==r?(n+=Dr(a<<2|o>>4),a=15&o,r=2):2==r?(n+=Dr(a),n+=Dr(o>>2),a=3&o,r=3):(n+=Dr(a<<2|o>>4),n+=Dr(15&o),r=0))}return 1==r&&(n+=Dr(a<<2)),n}var Ir,Rr={decode:function(e){var t;if(void 0===jr){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(jr={},t=0;t<16;++t)jr[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)jr[n.charAt(t)]=t;for(t=0;t<r.length;++t)jr[r.charAt(t)]=-1}var a=[],o=0,i=0;for(t=0;t<e.length;++t){var s=e.charAt(t);if("="==s)break;if(s=jr[s],-1!=s){if(void 0===s)throw new Error("Illegal character at offset "+t);o|=s,++i>=2?(a[a.length]=o,o=0,i=0):o<<=4}}if(i)throw new Error("Hex encoding incomplete: 4 bits missing");return a}},Fr={decode:function(e){var t;if(void 0===Ir){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="= \f\n\r\t \u2028\u2029";for(Ir=Object.create(null),t=0;t<64;++t)Ir[n.charAt(t)]=t;for(Ir["-"]=62,Ir["_"]=63,t=0;t<r.length;++t)Ir[r.charAt(t)]=-1}var a=[],o=0,i=0;for(t=0;t<e.length;++t){var s=e.charAt(t);if("="==s)break;if(s=Ir[s],-1!=s){if(void 0===s)throw new Error("Illegal character at offset "+t);o|=s,++i>=4?(a[a.length]=o>>16,a[a.length]=o>>8&255,a[a.length]=255&o,o=0,i=0):o<<=6}}switch(i){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=Fr.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 Fr.decode(e)}},Br=1e13,Wr=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<Br?t=0:(t=0|r/Br,r-=t*Br),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+=Br,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+=(Br+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*Br+e[n];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),Vr="…",zr=/^(\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)?)?$/,Ur=/^(\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 qr(e,t){return e.length>t&&(e=e.substring(0,t)+Vr),e}var Jr,Gr=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?zr:Ur).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,i="";while(r==o&&++e<t)r=this.get(e);if(n=t-e,0===n)return a?-1:0;if(n>4){i=r,n<<=3;while(0==(128&(+i^o)))i=+i<<1,--n;i="("+n+" bit)\n"}a&&(r-=256);for(var s=new Wr(r),l=e+1;l<t;++l)s.mulAdd(256,this.get(l));return i+s.toString()},e.prototype.parseBitString=function(e,t,n){for(var r=this.get(e),a=(t-e-1<<3)-r,o="("+a+" bit)\n",i="",s=e+1;s<t;++s){for(var l=this.get(s),u=s==t-1?r:0,d=7;d>=u;--d)i+=l>>d&1?"1":"0";if(i.length>n)return o+qr(i,n)}return o+i},e.prototype.parseOctetString=function(e,t,n){if(this.isASCII(e,t))return qr(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+=Vr),a},e.prototype.parseOID=function(e,t,n){for(var r="",a=new Wr,o=0,i=e;i<t;++i){var s=this.get(i);if(a.mulAdd(128,127&s),o+=7,!(128&s)){if(""===r)if(a=a.simplify(),a instanceof Wr)a.sub(80),r="2."+a.toString();else{var l=a<80?a<40?0:1:2;r=l+"."+(a-40*l)}else r+="."+a.toString();if(r.length>n)return qr(r,n);a=new Wr,o=0}}return o>0&&(r+=".incomplete"),r},e}(),$r=function(){function e(e,t,n,r,a){if(!(r instanceof Kr))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 qr(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return qr(this.stream.parseStringISO(t,t+n),e);case 30:return qr(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 Gr?t:new Gr(t,0);var r=new Gr(n),a=new Kr(n),o=e.decodeLength(n),i=n.pos,s=i-r.pos,l=null,u=function(){var t=[];if(null!==o){var r=i+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 "+i)}else try{for(;;){var a=e.decode(n);if(a.tag.isEOC())break;t[t.length]=a}o=i-n.pos}catch(s){throw new Error("Exception while decoding undefined length content: "+s)}return t};if(a.tagConstructed)l=u();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.");l=u();for(var d=0;d<l.length;++d)if(l[d].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(c){l=null}if(null===l){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+i);n.pos=i+Math.abs(o)}return new e(r,s,o,a,l)},e}(),Kr=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 Wr;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}(),Zr=0xdeadbeefcafe,Xr=15715070==(16777215&Zr),Qr=[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],ea=(1<<26)/Qr[Qr.length-1],ta=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="",i=this.t,s=this.DB-i*this.DB%t;if(i-- >0){s<this.DB&&(n=this[i]>>s)>0&&(a=!0,o=Dr(n));while(i>=0)s<t?(n=(this[i]&(1<<s)-1)<<t-s,n|=this[--i]>>(s+=this.DB-t)):(n=this[i]>>(s-=t)&r,s<=0&&(s+=this.DB,--i)),n>0&&(a=!0),a&&(o+=Dr(n))}return a?o:"0"},e.prototype.negate=function(){var t=ia();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)+_a(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=ia();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 ra(t):new aa(t),this.exp(e,n)},e.prototype.clone=function(){var e=ia();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=ia();return this.bitwiseTo(e,Tr,t),t},e.prototype.or=function(e){var t=ia();return this.bitwiseTo(e,Sr,t),t},e.prototype.xor=function(e){var t=ia();return this.bitwiseTo(e,Ar,t),t},e.prototype.andNot=function(e){var t=ia();return this.bitwiseTo(e,xr,t),t},e.prototype.not=function(){for(var e=ia(),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=ia();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},e.prototype.shiftRight=function(e){var t=ia();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+Cr(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+=Er(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,Sr)},e.prototype.clearBit=function(e){return this.changeBit(e,xr)},e.prototype.flipBit=function(e){return this.changeBit(e,Ar)},e.prototype.add=function(e){var t=ia();return this.addTo(e,t),t},e.prototype.subtract=function(e){var t=ia();return this.subTo(e,t),t},e.prototype.multiply=function(e){var t=ia();return this.multiplyTo(e,t),t},e.prototype.divide=function(e){var t=ia();return this.divRemTo(e,t,null),t},e.prototype.remainder=function(e){var t=ia();return this.divRemTo(e,null,t),t},e.prototype.divideAndRemainder=function(e){var t=ia(),n=ia();return this.divRemTo(e,t,n),[t,n]},e.prototype.modPow=function(e,t){var n,r,a=e.bitLength(),o=fa(1);if(a<=0)return o;n=a<18?1:a<48?3:a<144?4:a<768?5:6,r=a<8?new ra(t):t.isEven()?new oa(t):new aa(t);var i=[],s=3,l=n-1,u=(1<<n)-1;if(i[1]=r.convert(this),n>1){var d=ia();r.sqrTo(i[1],d);while(s<=u)i[s]=ia(),r.mulTo(d,i[s-2],i[s]),s+=2}var c,m,h=e.t-1,f=!0,_=ia();a=_a(e[h])-1;while(h>=0){a>=l?c=e[h]>>a-l&u:(c=(e[h]&(1<<a+1)-1)<<l-a,h>0&&(c|=e[h-1]>>this.DB+a-l)),s=n;while(0==(1&c))c>>=1,--s;if((a-=s)<0&&(a+=this.DB,--h),f)i[c].copyTo(o),f=!1;else{while(s>1)r.sqrTo(o,_),r.sqrTo(_,o),s-=2;s>0?r.sqrTo(o,_):(m=o,o=_,_=m),r.mulTo(_,i[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=fa(1),i=fa(0),s=fa(0),l=fa(1);while(0!=r.signum()){while(r.isEven())r.rShiftTo(1,r),n?(o.isEven()&&i.isEven()||(o.addTo(this,o),i.subTo(t,i)),o.rShiftTo(1,o)):i.isEven()||i.subTo(t,i),i.rShiftTo(1,i);while(a.isEven())a.rShiftTo(1,a),n?(s.isEven()&&l.isEven()||(s.addTo(this,s),l.subTo(t,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);r.compareTo(a)>=0?(r.subTo(a,r),n&&o.subTo(s,o),i.subTo(l,i)):(a.subTo(r,a),n&&s.subTo(o,s),l.subTo(i,l))}return 0!=a.compareTo(e.ONE)?e.ZERO:l.compareTo(t)>=0?l.subtract(t):l.signum()<0?(l.addTo(t,l),l.signum()<0?l.add(t):l):l},e.prototype.pow=function(e){return this.exp(e,new na)},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]<=Qr[Qr.length-1]){for(t=0;t<Qr.length;++t)if(n[0]==Qr[t])return!0;return!1}if(n.isEven())return!1;t=1;while(t<Qr.length){var r=Qr[t],a=t+1;while(a<Qr.length&&r<ea)r*=Qr[a++];r=n.modInt(r);while(t<a)if(r%Qr[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,i=0;while(--a>=0){var s=8==r?255&+t[a]:ha(t,a);s<0?"-"==t.charAt(a)&&(o=!0):(o=!1,0==i?this[this.t++]=s:i+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-i)-1)<<i,this[this.t++]=s>>this.DB-i):this[this.t-1]|=s<<i,i+=r,i>=this.DB&&(i-=this.DB))}8==r&&0!=(128&+t[0])&&(this.s=-1,i>0&&(this[this.t-1]|=(1<<this.DB-i)-1<<i)),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),i=this.s<<n&this.DM,s=this.t-1;s>=0;--s)t[s+o+1]=this[s]>>r|i,i=(this[s]&a)<<n;for(s=o-1;s>=0;--s)t[s]=0;t[o]=i,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 i=n+1;i<this.t;++i)t[i-n-1]|=(this[i]&o)<<a,t[i-n]=this[i]>>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=ia());var i=ia(),s=this.s,l=t.s,u=this.DB-_a(a[a.t-1]);u>0?(a.lShiftTo(u,i),o.lShiftTo(u,r)):(a.copyTo(i),o.copyTo(r));var d=i.t,c=i[d-1];if(0!=c){var m=c*(1<<this.F1)+(d>1?i[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?ia():n;i.dlShiftTo(y,g),r.compareTo(g)>=0&&(r[r.t++]=1,r.subTo(g,r)),e.ONE.dlShiftTo(d,g),g.subTo(i,i);while(i.t<d)i[i.t++]=0;while(--y>=0){var M=r[--p]==c?this.DM:Math.floor(r[p]*h+(r[p-1]+_)*f);if((r[p]+=i.am(0,M,r,y,0,d))<M){i.dlShiftTo(y,g),r.subTo(g,r);while(r[p]<--M)r.subTo(g,r)}}null!=n&&(r.drShiftTo(d,n),s!=l&&e.ZERO.subTo(n,n)),r.t=d,r.clamp(),u>0&&r.rShiftTo(u,r),s<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=ia(),a=ia(),o=n.convert(this),i=_a(t)-1;o.copyTo(r);while(--i>=0)if(n.sqrTo(r,a),(t&1<<i)>0)n.mulTo(a,o,r);else{var s=r;r=a,a=s}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=fa(n),a=ia(),o=ia(),i="";this.divRemTo(r,a,o);while(a.signum()>0)i=(n+o.intValue()).toString(e).substr(1)+i,a.divRemTo(r,a,o);return o.intValue().toString(e)+i},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,i=0,s=0,l=0;l<t.length;++l){var u=ha(t,l);u<0?"-"==t.charAt(l)&&0==this.signum()&&(o=!0):(s=n*s+u,++i>=r&&(this.dMultiply(a),this.dAddOffset(s,0),i=0,s=0))}i>0&&(this.dMultiply(Math.pow(n,i)),this.dAddOffset(s,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),Sr,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>Qr.length&&(t=Qr.length);for(var o=ia(),i=0;i<t;++i){o.fromInt(Qr[Math.floor(Math.random()*Qr.length)]);var s=o.modPow(a,this);if(0!=s.compareTo(e.ONE)&&0!=s.compareTo(n)){var l=1;while(l++<r&&0!=s.compareTo(n))if(s=s.modPowInt(2,this),0==s.compareTo(e.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},e.prototype.square=function(){var e=ia();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(),i=r.getLowestSetBit();if(i<0)t(n);else{o<i&&(i=o),i>0&&(n.rShiftTo(i,n),r.rShiftTo(i,r));var s=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(s,0):(i>0&&r.lShiftTo(i,r),setTimeout((function(){t(r)}),0))};setTimeout(s,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),Sr,this),this.isEven()&&this.dAddOffset(1,0);var o=this,i=function(){o.dAddOffset(2,0),o.bitLength()>t&&o.subTo(e.ONE.shiftLeft(t-1),o),o.isProbablePrime(n)?setTimeout((function(){a()}),0):setTimeout(i,0)};setTimeout(i,0)}else{var s=[],l=7&t;s.length=1+(t>>3),n.nextBytes(s),l>0?s[0]&=(1<<l)-1:s[0]=0,this.fromString(s,256)}},e}(),na=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}(),ra=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}(),aa=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=ia();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(ta.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=ia();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}(),oa=function(){function e(e){this.m=e,this.r2=ia(),this.q3=ia(),ta.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=ia();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 ia(){return new ta(null)}function sa(e,t){return new ta(e,t)}var la="undefined"!==typeof navigator;la&&Xr&&"Microsoft Internet Explorer"==navigator.appName?(ta.prototype.am=function(e,t,n,r,a,o){var i=32767&t,s=t>>15;while(--o>=0){var l=32767&this[e],u=this[e++]>>15,d=s*l+u*i;l=i*l+((32767&d)<<15)+n[r]+(1073741823&a),a=(l>>>30)+(d>>>15)+s*u+(a>>>30),n[r++]=1073741823&l}return a},Jr=30):la&&Xr&&"Netscape"!=navigator.appName?(ta.prototype.am=function(e,t,n,r,a,o){while(--o>=0){var i=t*this[e++]+n[r]+a;a=Math.floor(i/67108864),n[r++]=67108863&i}return a},Jr=26):(ta.prototype.am=function(e,t,n,r,a,o){var i=16383&t,s=t>>14;while(--o>=0){var l=16383&this[e],u=this[e++]>>14,d=s*l+u*i;l=i*l+((16383&d)<<14)+n[r]+a,a=(l>>28)+(d>>14)+s*u,n[r++]=268435455&l}return a},Jr=28),ta.prototype.DB=Jr,ta.prototype.DM=(1<<Jr)-1,ta.prototype.DV=1<<Jr;var ua=52;ta.prototype.FV=Math.pow(2,ua),ta.prototype.F1=ua-Jr,ta.prototype.F2=2*Jr-ua;var da,ca,ma=[];for(da="0".charCodeAt(0),ca=0;ca<=9;++ca)ma[da++]=ca;for(da="a".charCodeAt(0),ca=10;ca<36;++ca)ma[da++]=ca;for(da="A".charCodeAt(0),ca=10;ca<36;++ca)ma[da++]=ca;function ha(e,t){var n=ma[e.charCodeAt(t)];return null==n?-1:n}function fa(e){var t=ia();return t.fromInt(e),t}function _a(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}ta.ZERO=fa(0),ta.ONE=fa(1);var pa=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 ya(){return new pa}var ga,Ma,va=256,La=null;if(null==La){La=[],Ma=0;var wa=void 0;if("undefined"!==typeof window&&window.crypto&&window.crypto.getRandomValues){var ka=new Uint32Array(256);for(window.crypto.getRandomValues(ka),wa=0;wa<ka.length;++wa)La[Ma++]=255&ka[wa]}var Ya=0,ba=function(e){if(Ya=Ya||0,Ya>=256||Ma>=va)window.removeEventListener?window.removeEventListener("mousemove",ba,!1):window.detachEvent&&window.detachEvent("onmousemove",ba);else try{var t=e.x+e.y;La[Ma++]=255&t,Ya+=1}catch(n){}};"undefined"!==typeof window&&(window.addEventListener?window.addEventListener("mousemove",ba,!1):window.attachEvent&&window.attachEvent("onmousemove",ba))}function Da(){if(null==ga){ga=ya();while(Ma<va){var e=Math.floor(65536*Math.random());La[Ma++]=255&e}for(ga.init(La),Ma=0;Ma<La.length;++Ma)La[Ma]=0;Ma=0}return ga.next()}var Ta=function(){function e(){}return e.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=Da()},e}();function Sa(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 sa(o,16)}function Aa(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 Ta,i=[];while(t>2){i[0]=0;while(0==i[0])o.nextBytes(i);n[--t]=i[0]}return n[--t]=2,n[--t]=0,new ta(n)}var xa=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=sa(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=Aa(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,i=0;i<2*t-o;i++)a="0"+a;return a},e.prototype.setPrivate=function(e,t,n){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=sa(e,16),this.e=parseInt(t,16),this.d=sa(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(e,t,n,r,a,o,i,s){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=sa(e,16),this.e=parseInt(t,16),this.d=sa(n,16),this.p=sa(r,16),this.q=sa(a,16),this.dmp1=sa(o,16),this.dmq1=sa(i,16),this.coeff=sa(s,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(e,t){var n=new Ta,r=e>>1;this.e=parseInt(t,16);for(var a=new ta(t,16);;){for(;;)if(this.p=new ta(e-r,1,n),0==this.p.subtract(ta.ONE).gcd(a).compareTo(ta.ONE)&&this.p.isProbablePrime(10))break;for(;;)if(this.q=new ta(r,1,n),0==this.q.subtract(ta.ONE).gcd(a).compareTo(ta.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 i=this.p.subtract(ta.ONE),s=this.q.subtract(ta.ONE),l=i.multiply(s);if(0==l.gcd(a).compareTo(ta.ONE)){this.n=this.p.multiply(this.q),this.d=a.modInverse(l),this.dmp1=this.d.mod(i),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=sa(e,16),n=this.doPrivate(t);return null==n?null:Ca(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,n){var r=new Ta,a=e>>1;this.e=parseInt(t,16);var o=new ta(t,16),i=this,s=function(){var t=function(){if(i.p.compareTo(i.q)<=0){var e=i.p;i.p=i.q,i.q=e}var t=i.p.subtract(ta.ONE),r=i.q.subtract(ta.ONE),a=t.multiply(r);0==a.gcd(o).compareTo(ta.ONE)?(i.n=i.p.multiply(i.q),i.d=o.modInverse(a),i.dmp1=i.d.mod(t),i.dmq1=i.d.mod(r),i.coeff=i.q.modInverse(i.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},l=function(){i.q=ia(),i.q.fromNumberAsync(a,1,r,(function(){i.q.subtract(ta.ONE).gcda(o,(function(e){0==e.compareTo(ta.ONE)&&i.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(l,0)}))}))},u=function(){i.p=ia(),i.p.fromNumberAsync(e-a,1,r,(function(){i.p.subtract(ta.ONE).gcda(o,(function(e){0==e.compareTo(ta.ONE)&&i.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(u,0)}))}))};setTimeout(u,0)};setTimeout(s,0)},e.prototype.sign=function(e,t,n){var r=ja(n),a=r+t(e).toString(),o=Sa(a,this.n.bitLength()/4);if(null==o)return null;var i=this.doPrivate(o);if(null==i)return null;var s=i.toString(16);return 0==(1&s.length)?s:"0"+s},e.prototype.verify=function(e,t,n){var r=sa(t,16),a=this.doPublic(r);if(null==a)return null;var o=a.toString(16).replace(/^1f+00/,""),i=Oa(o);return i==n(e).toString()},e}();function Ca(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 Ea={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function ja(e){return Ea[e]||""}function Oa(e){for(var t in Ea)if(Ea.hasOwnProperty(t)){var n=Ea[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:
|
|
@@ -316,5 +316,5 @@ var Na={};"undefined"!=typeof Na.asn1&&Na.asn1||(Na.asn1={}),Na.asn1.ASN1Util=ne
|
|
|
316
316
|
* (c) 2023 Eduardo San Martin Morote
|
|
317
317
|
* @license MIT
|
|
318
318
|
*/
|
|
319
|
-
let za;const Ua=e=>za=e,qa=Symbol();function Ja(e){return e&&"object"===typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!==typeof e.toJSON}var Ga;(function(e){e["direct"]="direct",e["patchObject"]="patch object",e["patchFunction"]="patch function"})(Ga||(Ga={}));const $a="undefined"!==typeof window,Ka=!1,Za=(()=>"object"===typeof window&&window.window===window?window:"object"===typeof self&&self.self===self?self:"object"===typeof global&&global.global===global?global:"object"===typeof globalThis?globalThis:{HTMLElement:null})();function Xa(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}function Qa(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){ao(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function eo(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(n){}return t.status>=200&&t.status<=299}function to(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const no="object"===typeof navigator?navigator:{userAgent:""},ro=(()=>/Macintosh/.test(no.userAgent)&&/AppleWebKit/.test(no.userAgent)&&!/Safari/.test(no.userAgent))(),ao=$a?"undefined"!==typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!ro?oo:"msSaveOrOpenBlob"in no?io:so:()=>{};function oo(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener","string"===typeof e?(r.href=e,r.origin!==location.origin?eo(r.href)?Qa(e,t,n):(r.target="_blank",to(r)):to(r)):(r.href=URL.createObjectURL(e),setTimeout((function(){URL.revokeObjectURL(r.href)}),4e4),setTimeout((function(){to(r)}),0))}function io(e,t="download",n){if("string"===typeof e)if(eo(e))Qa(e,t,n);else{const t=document.createElement("a");t.href=e,t.target="_blank",setTimeout((function(){to(t)}))}else navigator.msSaveOrOpenBlob(Xa(e,n),t)}function so(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),"string"===typeof e)return Qa(e,t,n);const a="application/octet-stream"===e.type,o=/constructor/i.test(String(Za.HTMLElement))||"safari"in Za,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||a&&o||ro)&&"undefined"!==typeof FileReader){const t=new FileReader;t.onloadend=function(){let e=t.result;if("string"!==typeof e)throw r=null,new Error("Wrong reader.result type");e=i?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{const t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout((function(){URL.revokeObjectURL(t)}),4e4)}}const{assign:lo}=Object;const uo=()=>{};function co(e,t,r,a=uo){e.push(t);const o=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),a())};return!r&&(0,n.getCurrentScope)()&&(0,n.onScopeDispose)(o),o}function mo(e,...t){e.slice().forEach((e=>{e(...t)}))}const ho=e=>e();function fo(e,t){e instanceof Map&&t instanceof Map&&t.forEach(((t,n)=>e.set(n,t))),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const a=t[r],o=e[r];Ja(o)&&Ja(a)&&e.hasOwnProperty(r)&&!(0,n.isRef)(a)&&!(0,n.isReactive)(a)?e[r]=fo(o,a):e[r]=a}return e}const _o=Symbol(),po=new WeakMap;function yo(e){return Wa?!po.has(e):!Ja(e)||!e.hasOwnProperty(_o)}const{assign:go}=Object;function Mo(e){return!(!(0,n.isRef)(e)||!e.effect)}function vo(e,t,r,a){const{state:o,actions:i,getters:s}=t,l=r.state.value[e];let u;function d(){l||(Wa?Va(r.state.value,e,o?o():{}):r.state.value[e]=o?o():{});const t=(0,n.toRefs)(r.state.value[e]);return go(t,i,Object.keys(s||{}).reduce(((t,a)=>(t[a]=(0,n.markRaw)((0,n.computed)((()=>{Ua(r);const t=r._s.get(e);if(!Wa||t._r)return s[a].call(t,t)}))),t)),{}))}return u=Lo(e,d,t,r,a,!0),u}function Lo(e,t,r={},a,o,i){let s;const l=go({actions:{}},r);const u={deep:!0};let d,c;let m,h=[],f=[];const _=a.state.value[e];i||_||(Wa?Va(a.state.value,e,{}):a.state.value[e]={});const p=(0,n.ref)({});let y;function g(t){let r;d=c=!1,"function"===typeof t?(t(a.state.value[e]),r={type:Ga.patchFunction,storeId:e,events:m}):(fo(a.state.value[e],t),r={type:Ga.patchObject,payload:t,storeId:e,events:m});const o=y=Symbol();(0,n.nextTick)().then((()=>{y===o&&(d=!0)})),c=!0,mo(h,r,a.state.value[e])}const M=i?function(){const{state:e}=r,t=e?e():{};this.$patch((e=>{go(e,t)}))}:uo;function v(){s.stop(),h=[],f=[],a._s.delete(e)}function L(t,n){return function(){Ua(a);const r=Array.from(arguments),o=[],i=[];function s(e){o.push(e)}function l(e){i.push(e)}let u;mo(f,{args:r,name:t,store:Y,after:s,onError:l});try{u=n.apply(this&&this.$id===e?this:Y,r)}catch(d){throw mo(i,d),d}return u instanceof Promise?u.then((e=>(mo(o,e),e))).catch((e=>(mo(i,e),Promise.reject(e)))):(mo(o,u),u)}}const w=(0,n.markRaw)({actions:{},getters:{},state:[],hotState:p}),k={_p:a,$id:e,$onAction:co.bind(null,f),$patch:g,$reset:M,$subscribe(t,r={}){const o=co(h,t,r.detached,(()=>i())),i=s.run((()=>(0,n.watch)((()=>a.state.value[e]),(n=>{("sync"===r.flush?c:d)&&t({storeId:e,type:Ga.direct,events:m},n)}),go({},u,r))));return o},$dispose:v};Wa&&(k._r=!1);const Y=(0,n.reactive)(Ka?go({_hmrPayload:w,_customProperties:(0,n.markRaw)(new Set)},k):k);a._s.set(e,Y);const b=a._a&&a._a.runWithContext||ho,D=b((()=>a._e.run((()=>(s=(0,n.effectScope)()).run(t)))));for(const T in D){const t=D[T];if((0,n.isRef)(t)&&!Mo(t)||(0,n.isReactive)(t))i||(_&&yo(t)&&((0,n.isRef)(t)?t.value=_[T]:fo(t,_[T])),Wa?Va(a.state.value[e],T,t):a.state.value[e][T]=t);else if("function"===typeof t){const e=L(T,t);Wa?Va(D,T,e):D[T]=e,l.actions[T]=t}else 0}if(Wa?Object.keys(D).forEach((e=>{Va(Y,e,D[e])})):(go(Y,D),go((0,n.toRaw)(Y),D)),Object.defineProperty(Y,"$state",{get:()=>a.state.value[e],set:e=>{g((t=>{go(t,e)}))}}),Ka){const e={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach((t=>{Object.defineProperty(Y,t,go({value:Y[t]},e))}))}return Wa&&(Y._r=!0),a._p.forEach((e=>{if(Ka){const t=s.run((()=>e({store:Y,app:a._a,pinia:a,options:l})));Object.keys(t||{}).forEach((e=>Y._customProperties.add(e))),go(Y,t)}else go(Y,s.run((()=>e({store:Y,app:a._a,pinia:a,options:l}))))})),_&&i&&r.hydrate&&r.hydrate(Y.$state,_),d=!0,c=!0,Y}function wo(e,t,r){let a,o;const i="function"===typeof t;function s(e,r){const s=(0,n.hasInjectionContext)();e=e||(s?(0,n.inject)(qa,null):null),e&&Ua(e),e=za,e._s.has(a)||(i?Lo(a,t,o,e):vo(a,o,e));const l=e._s.get(a);return l}return"string"===typeof e?(a=e,o=i?r:t):(o=e,a=e.id),s.$id=a,s}var ko=r(9755),Yo=r.n(ko),bo=r(9669),Do=r.n(bo);const To={NODE_ENV:"production",VUE_APP_APPLICATION_NAME:"BM2A",VUE_APP_COMPANY_CODE:"BS",BASE_URL:"/"}.VUE_LOGIN_CONFIG,So={NODE_ENV:"production",VUE_APP_APPLICATION_NAME:"BM2A",VUE_APP_COMPANY_CODE:"BS",BASE_URL:"/"}.VITE_APP_COMPANY_CODE,Ao={NODE_ENV:"production",VUE_APP_APPLICATION_NAME:"BM2A",VUE_APP_COMPANY_CODE:"BS",BASE_URL:"/"}.VITE_APP_APPLICATION_NAME;class xo{static apps=[];static companies=[];static currentEnvironment=(0,o.getCurrentEnvironment)()||{skinName:"",culture:"",companyCode:"",companyName:"",appName:""};static loginStatus="";static formState={authButtons:void 0,formInfo:void 0,formParamInfo:void 0,formData:void 0,buttonData:void 0,buttonLoaded:!1,hasAuthority:!1};static setLoginStatus(e){this.loginStatus=e,localStorage.setItem("login_status",e)}static getCurLoginStatus(){return this.loginStatus=(0,o.getRememberMe)()?localStorage.getItem("login_status"):this.loginStatus,this.loginStatus}static changeLoginStatus(e){this.loginStatus=e,localStorage.setItem("login_status",e)}static LOGIN(e){const t=To.ENABLE_ENCRYPTED?"EX/encryptLogin":"EX/Login";if(e={...e,RememberMeTime:24*(e.RememberMeTime||1)},To.ENABLE_ENCRYPTED){const t=new Ba({});t.setPublicKey(To.PUBLIC_KEY);const n=t.encrypt(e.Password),r=t.encrypt(e.UserName);e.UserName=r,e.Password=n}return o.EIManager.handlePost(t,e).then((t=>{let n,r,a=!0,i=!1;const s=t.headers,l=s.signature,u=s.refresh_token,d=t.data,{status:c,msg:m}=d;if(0===c||20003===c){const e=d.getBlock("UserInfo");e||er({message:"获取用户信息失败",duration:1e3});const t=e.data.length?e.data[0]:{};r={id:t.ID,userId:t.ENAME,userName:t.CNAME,deptId:t.DEPTID,deptEName:t.DEPT_ENAME,deptCName:t.DEPT_CNAME},a=!1,i=20003===c}return n={code:c,token:l,refreshToken:u,userInfo:r,msg:m,isError:a,pwdOut:i},e.RememberMe&&(0,o.setRememberMe)(!0),l&&(this.setLoginStatus("LOGIN"),(0,o.setToken)(l)),u&&(0,o.setRefreshToken)(u),n})).catch((e=>Promise.reject(e)))}static GET_USER(e){return o.EIManager.handlePost("EX/api/GetUserInfo",e).then((e=>{let t;const n=e.data,{status:r,msg:a}=n;if(0===r){const e=n.getBlock("UserInfo");e||er({message:"获取用户信息失败",duration:1e3});const r=e.data.length?e.data[0]:{};return t={id:r.ID,userId:r.ENAME,userName:r.CNAME,deptId:r.DEPTID,deptEName:r.DEPT_ENAME,deptCName:r.DEPT_CNAME},(0,o.setCurrentUser)(t),!0}return er({message:`${a}`,duration:1e3}),!1})).catch((e=>Promise.reject(e)))}static GET_MENUS(e){const t=(0,o.buildEIInfo)(e);return o.EIManager.callEPService("epesloadinit_vue",t).then((e=>{let t=[];try{const{msg:n,status:r}=e;return 0===r?(t=e.blocks.MENUTREE.data,t):(er({message:`调用菜单服务失败,错误信息:${n}.`,duration:1e3}),t)}catch(e){return er({message:`调用菜单服务失败,错误信息:${e}.`,duration:1e3}),e}}))}static GET_COMPANIES(){return o.EIManager.handleGet("EX/GetCompanies").then((e=>{const t=e.blocks.COMPANYINFO.data;return this.companies=t,t})).catch((e=>Promise.reject(e)))}static GET_APPS(){return o.EIManager.handleGet("EX/GetApps").then((e=>{const t=e.blocks.APPINFO.data;return this.apps=t,t})).catch((e=>Promise.reject(e)))}static INITAPP_CONFIG(){let e={COMPANYCODE:"",COMPANYNAME:""},t="";Promise.all([this.GET_COMPANIES(),this.GET_APPS()]).then((([n,r])=>{if(n.length){const t=this.companies;let n=t.length>0?t[0]:{COMPANYID:"",COMPANYCODE:"",COMPANYNAME:""};if(So){const e=t.filter((e=>e.COMPANYCODE===So));n=e.length?e[0]:t[0]}e={...n}}if(r.length){const e=this.apps;let n=e.length>0?e[0].ENAME:"";if(Ao){const t=e.filter((e=>e.ENAME===Ao));n=t.length>0?t[0].ENAME:e.length>0?e[0].ENAME:""}t=n}if(t&&e){let n=(0,o.getCurrentEnvironment)();n={...n,culture:"zh_Hans",companyCode:e.COMPANYCODE,companyName:e.COMPANYNAME,appName:t,skinName:"default"},(0,o.setRememberMe)(!0),(0,o.setCurrentEnvironment)(n,!0),this.currentEnvironment=n}})).catch((e=>{const{message:t,status:n}=e;t&&er({message:`获取账套或子系统失败,错误信息:${t}.`,duration:1e3})}))}static LOGOUT(){return new Promise(((e,t)=>{this.changeLoginStatus("LOGOUT"),(0,o.removeToken)(),(0,o.removeRefreshToken)(),(0,o.removeCurrentUser)(),e(!0)}))}static exchangeSignature(e){return o.EIManager.handlePost("/proxyEx/exchangeSignature_BW",e).then((e=>{const t=e.data,{flag:n,signature:r}=t;if(0!==n)return Promise.reject({message:"宝武交换token出错啦"});(0,o.setRememberMe)(!0),(0,o.setToken)(r)})).catch((e=>Promise.reject(e)))}static CHECK_AUTH(e){return new Promise((async(t,n)=>{e.formname.toLowerCase();const r=new o.EI.EIInfo;r.addBlock(new o.EI.EiBlock,"Table1").pushData(e,!0),o.EIManager.callEPService("epescheckdll",r).then((e=>{const{status:n,msg:r}=e;let a=!1;if(0!==n){const e=new Error(`${r}`);throw e.status=100401,e}{const n=e.blocks.AUTH_INFO,r=e.blocks.BUTTON_INFO,o=e.blocks.FORMPARA_INFO,i=e.blocks.FORMDLL_INFO.data,s=i.length?i[0]:void 0;if(s){const e={formName:s.NAME,formCaption:s.DESCRIPTION,formPartition:s.ABBREV,appName:s.APPNAME,formPath:s.DLLPATH,dllName:s.DLLNAME,formCallMode:s.FORM_CALL_MODE};let t=r.data.map((e=>({name:e.NAME.trim(),desc:e.DESCRIPTION,opType:e.OPTYPE})));t=[...new Map(t.map((e=>[e.name,e]))).values()];const[{DLLMARK:i}]=n.data;a=Number(i?.toString().trim())>=1;const l=o.data.length&&o.data[0];let u;if(l&&l.FORM_NAME&&""!==l.FORM_NAME.trim()){u={params:{},baseFormName:l.FORM_BASE_NAME};for(let e=1;e<=10;e++){const t=l[`PK${e}_NAME`];null!==t&&""!==t.trim()&&(u.params[l[`PK${e}_NAME`]+""]=l[`PK${e}`])}}this.formState.formInfo=e,this.formState.authButtons=t,this.formState.hasAuthority=a,this.formState.formParamInfo=u,this.formState.buttonLoaded=!0}t(this.formState)}})).catch((e=>{n(e)}))}))}static LOGIN_CHECK(e){const t=(0,o.buildEIInfo)(e);return o.EIManager.handlePost("/MASTER/api/CallService/epeslogincheck",t).then((e=>{const t=e.data;console.log(t);const{status:n,sys:r}=t;return console.log(n),0===n?Promise.resolve(t):Promise.reject(r)})).catch((e=>Promise.reject(e)))}}var Eo=(0,n.defineComponent)({name:"CPage",components:{"van-button":dr,"van-empty":yr,"van-nav-bar":Yr},props:{title:{type:String,default:""},hideBack:{type:Boolean,default:!1},rightText:{type:String,default:""},hideHeader:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},backClick:{type:Function,default:()=>!0}},emits:["click-right","ready"],setup(e,{attrs:t,emit:r}){let a=(0,n.ref)("");(0,n.watch)((()=>a),(e=>{document.title=e}));let i=(0,n.ref)("");const s=De();let l=(0,n.ref)(!1),u=s.currentRoute.value,d=s.currentRoute.value.path;const c=(0,n.ref)({appName:"",formName:"",formPath:"",dllName:"",formCallMode:"",formCaption:"",formPartition:"",formParams:{},baseFormName:"",buttonInfo:[]});let m="";m=u.query?.formName?u.query?.formName:d.substring(d.lastIndexOf("/")+1);let h=(0,n.ref)(null);(0,n.provide)("buttons",h);const f=xo.formState;f.authButtons=[],async function(){const e=(0,o.getCurrentUser)();await xo.CHECK_AUTH({formname:m,appname:(0,o.getCurrentEnvironment)().appName,path:d,loginName:e.userId}).then((e=>{l.value=!1,a.value=f.formInfo.formCaption,h.value=f.authButtons,c.value.appName=e.formInfo.appName,c.value.formName=e.formInfo.formName,c.value.formPath=e.formInfo.formPath,c.value.dllName=e.formInfo.dllName,c.value.formCallMode=e.formInfo.formCallMode,c.value.formCaption=e.formInfo.formCaption,c.value.formPartition=e.formInfo.formPartition,c.value.baseFormName=e.formParamInfo?e.formParamInfo.baseFormName:void 0,c.value.formParams=e.formParamInfo?e.formParamInfo.params:void 0,c.value.buttonInfo=h.value,r("ready",{formInfo:c.value})})).catch((e=>{l.value=!0,a.value="404";const{message:t,status:n}=e;401===n||403===n?i.value="凭据过期,请重新认证登录信息":void 0!==t&&(i.value=`${t}`)}))}();const _=(0,n.useAttrs)(),p={};Object.entries(_).forEach((([e,t])=>{"class"!==e&&(p[e]=t)}));const y=(0,n.ref)(!1),g=(0,n.useSlots)();g&&g.default&&g.default().forEach((e=>{const t=e.type;t.name&&"x-navigation"===t.name&&(y.value=!0)}));const M=(0,n.computed)((()=>({height:"calc(100vh - 46)px"})));return{title:a,clickLeft:()=>{e.backClick?e.backClick()&&s.back():(console.log("no back"),s.back())},newAttr:p,onClickRight:()=>{r("click-right")},noAuthDesc:i,show404Panel:l,containerStyle:M}}});const Co={key:1,style:{"text-align":"center","margin-top":"20%"}},jo=(e=>((0,n.pushScopeId)("data-v-7700e381"),e=e(),(0,n.popScopeId)(),e))((()=>(0,n.createElementVNode)("img",{src:"/src/assets/img/404.png",style:{width:"100%"}},null,-1)));Eo.render=function(e,t,r,a,o,i){const s=(0,n.resolveComponent)("van-nav-bar");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(e.show404Panel?"not-found":"c-page")},[(0,n.renderSlot)(e.$slots,"header",{},(()=>[e.hideHeader?(0,n.createCommentVNode)("v-if",!0):((0,n.openBlock)(),(0,n.createBlock)(s,(0,n.mergeProps)({key:0,class:"xm-title",title:e.title,onClickLeft:e.clickLeft},e.newAttr,{"left-arrow":!e.hideBack,"right-text":e.rightText,onClickRight:e.onClickRight,"safe-area-inset-top":""}),null,16,["title","onClickLeft","left-arrow","right-text","onClickRight"]))])),e.show404Panel?(0,n.createCommentVNode)("v-if",!0):((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(["page-container",{"safe-area-bottom":e.safeAreaInsetBottom}])},[(0,n.renderSlot)(e.$slots,"default")],2)),e.show404Panel?((0,n.openBlock)(),(0,n.createElementBlock)("div",Co,[jo,(0,n.createElementVNode)("h3",null,(0,n.toDisplayString)(e.noAuthDesc),1)])):(0,n.createCommentVNode)("v-if",!0)],2)},Eo.__scopeId="data-v-7700e381",Eo.__file="packages/CPage/CPage.vue";const Oo=e=>(e.install=t=>{const n=e.name||e.__name;t.component(n,e)},e);Oo(Eo);var Ho=(0,n.defineComponent)({name:"CButton",components:{"van-button":dr},props:{name:{required:!0,type:String},disabled:{type:Boolean,default:!1,required:!1},size:{type:String,default:"small",required:!1}},setup(e,{attrs:t,emit:r}){let a=(0,n.inject)("buttons",[]);console.log(a.value);let o=(0,n.ref)(!1);const i=(0,n.ref)("");return(0,n.watch)(a,(t=>{const n=t?.find((t=>t.name.trim()===e.name.trim()));n&&(i.value=n.desc,o.value=!0)})),{visible:o,clickHandle:()=>{r("c-click")},buttonDesc:i}}});Ho.render=function(e,t,r,a,o,i){const s=(0,n.resolveComponent)("van-button");return e.visible?((0,n.openBlock)(),(0,n.createBlock)(s,{key:0,type:"primary",disabled:e.disabled,size:e.size,onClick:e.clickHandle},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.buttonDesc),1)])),_:1},8,["disabled","size","onClick"])):(0,n.createCommentVNode)("v-if",!0)},Ho.__file="packages/CButton/CButton.vue";Oo(Ho);var No=(0,n.defineComponent)({name:"CButtonAuth",props:{name:{required:!0,type:String}},setup(e){let t=(0,n.inject)("buttons",[]);console.log(t.value);let r=(0,n.ref)(!1);return(0,n.watch)(t,(t=>{const n=t?.find((t=>t.name.trim()===e.name.trim()));n&&(console.log(n),r.value=!0)})),{visible:r}}});const Po={key:0};No.render=function(e,t,r,a,o,i){return e.visible?((0,n.openBlock)(),(0,n.createElementBlock)("div",Po,[(0,n.renderSlot)(e.$slots,"default")])):(0,n.createCommentVNode)("v-if",!0)},No.__file="packages/CButtonAuth/CButtonAuth.vue";Oo(No);const Io={authButtons:void 0,formInfo:void 0,formParamInfo:void 0,formData:void 0,buttonData:void 0,buttonLoaded:!1,hasAuthority:!1},Ro=(wo("form",{state:()=>Io,actions:{async checkAuth(e){return new Promise((async(t,n)=>{e.formname.toLowerCase();const r=new o.EI.EIInfo;r.addBlock(new o.EI.EiBlock,"Table1").pushData(e,!0),o.EIManager.callEPService("epescheckdll",r).then((e=>{const{status:n,msg:r}=e;let a=!1;if(0!==n){const e=new Error(`${r}`);throw e.status=100401,e}{const n=e.blocks.AUTH_INFO,r=e.blocks.BUTTON_INFO,o=e.blocks.FORMPARA_INFO,i=e.blocks.FORMDLL_INFO.data,s=i.length?i[0]:void 0;if(s){const e={formName:s.NAME,formCaption:s.DESCRIPTION,formPartition:s.ABBREV,appName:s.APPNAME,formPath:s.DLLPATH,dllName:s.DLLNAME,formCallMode:s.FORM_CALL_MODE};let t=r.data.map((e=>({name:e.NAME,desc:e.DESCRIPTION,opType:e.OPTYPE})));t=[...new Map(t.map((e=>[e.name,e]))).values()];const[{DLLMARK:i}]=n.data;a=Number(i?.toString().trim())>=1;const l=o.data.length&&o.data[0];let u;if(l&&l.FORM_NAME&&""!==l.FORM_NAME.trim()){u={params:{},baseFormName:l.FORM_BASE_NAME};for(let e=1;e<=10;e++){const t=l[`PK${e}_NAME`];null!==t&&""!==t.trim()&&(u.params[l[`PK${e}_NAME`]+""]=l[`PK${e}`])}}this.$patch((n=>{n.formInfo=e,n.authButtons=t,n.hasPermission=a,n.formParamInfo=u,n.buttonLoaded=!0}))}t(a)}})).catch((e=>{n(e)}))}))},checkDll:async e=>new Promise(((t,n)=>{let r="";r=e.query?.formName?e.query?.formName:e.path.substring(e.path.lastIndexOf("/")+1);const a={formname:r&&r.toString().toUpperCase()||"",appname:(0,o.getCurrentEnvironment)().appName},i=new o.EI.EIInfo;i.addBlock(new o.EI.EiBlock,"Table1").pushData(a,!0),o.EIManager.callEPService("epescheckdll",i).then((e=>{const{status:r,msg:a}=e;0===r?t(e):n(`调用校验权限服务出现错误,${a}`)})).catch((e=>n(e)))}))}}),2e5);let Fo=0,Bo=Fo+Ro,Wo="",Vo="",zo="";class Uo{static getServerInfo(e){return new Promise(((t,n)=>{const r=new o.EI.EIInfo;r.addBlock(new o.EI.EiBlock,"Table0").pushData({CODE_CLASS:"EPTF"},!0),o.EIManager.callMasterEPService("epep01_inq3",r).then((r=>{r.blocks.EPTF.data.forEach((async r=>{if(e){if(r.CODE===e){Wo=r.CODE_DESC_1_CONTENT,Vo=r.CODE_DESC_3_CONTENT;const e={serverUrl:r.CODE_DESC_1_CONTENT,rootPath:r.CODE_DESC_3_CONTENT};t(e)}}else n("数据中没有匹配到传入的小代码号")}))})).catch((()=>{n("小代码请求失败")}))}))}static cutFile=e=>{const t=e.slice(Fo,Bo);return Fo=Bo,Bo=Fo+Ro,t};static callServerUpd=e=>{const t=(0,o.buildEIInfo)(e,"INS");o.EIManager.callMasterEPService("eptf01_ins",t).then((e=>{}))};static fileUpload=async(e,t,n,r,a,o)=>{const i=2e5;a||(a=Wo),o||(o=Vo);const s=a+"file-manager";if(r>i){const a=e.type,l=((e,t,n)=>new File([e],t,{type:n}))(e,n.substring(0,n.lastIndexOf(".")),a),u=Math.ceil(r/i),d=[];let c=!1;const m={errorCode:null,errorText:"",result:null,success:!0};for(let h=0;h<u;h++){const a=h,c=h*i,m=Math.min((h+1)*i,r);""===zo&&(zo=(new Date).valueOf());const f={destinationPathInfo:[{key:t,name:t}],chunkMetadata:{UploadId:zo,FileName:n,Index:a,TotalCount:u,FileSize:l.size}},_=l.slice(c,m),p=new FormData;p.append("command","UploadChunk"),p.append("arguments",JSON.stringify(f)),p.append("chunk",_),p.append("rootDirectory",o);try{const e=await Do().post(s,p,{headers:{"Content-Type":"multipart/form-data"}});d.push(e.data)}catch(e){return console.error("error",e),e}}for(let e=0;e<d.length;e++){if(1!=d[e].success)return c=!1,d[e];c=!0}if(1==c)return m}else{const a={destinationPathInfo:[{key:t,name:t}],chunkMetadata:{UploadId:(new Date).valueOf(),FileName:n,Index:0,TotalCount:1,FileSize:r}},i=new FormData;i.append("command","UploadChunk"),i.append("arguments",JSON.stringify(a)),i.append("chunk",e),i.append("rootDirectory",o);try{return(await Do().post(s,i,{headers:{"Content-Type":"multipart/form-data"}})).data}catch(e){return console.error("error",e),e}}};static fileDownload(e,t,n,r,a){return new Promise(((o,i)=>{n||(n=Wo),r||(r=Vo);let s="",l=0;const u={pathInfoList:[]},d={pathInfo:[{name:t,key:t}]},c=JSON.stringify(d),m=(new Date).valueOf(),h=`${n}file-manager?command=GetDirContents&arguments=${c}&_=${m}&rootDirectory=${r}`;Yo().ajax({url:h,async:!1}).then((d=>{e.forEach(((e,n)=>{let r=!1;if(d.result.forEach(((t,n)=>{e===t.name&&(r=!0)})),r){const n=(t+"/"+e).split("/"),r=[];n.forEach(((e,t)=>{const a={key:n.slice(0,t+1).join("/"),name:e};""!==a.key&&""!==a.name&&r.push(a)})),0===l?(s=e,l+=1):1===l&&(s+="等.zip",l+=1),u.pathInfoList.push(r)}else i(e+"文件不存在")}));const c=new URLSearchParams;c.append("command","Download"),c.append("arguments",JSON.stringify(u)),c.append("rootDirectory",r),Yo().ajax({url:n+"file-manager",type:"POST",data:c,contentType:"application/x-www-form-urlencoded",processData:!1,xhrFields:{responseType:"blob"},success:function(e){o(e)},error:function(e){i(e)}}).done((e=>{if(a){const t=document.createElement("a");t.style.display="none",t.href=URL.createObjectURL(e),t.setAttribute("download",decodeURI(s)),document.body.appendChild(t),t.click(),document.body.removeChild(t)}}))}))}))}static fileDelete(e,t,n,r){return new Promise(((a,o)=>{n||(n=Wo),r||(r=Vo);const i=(t+"/"+e).split("/"),s=[];i.forEach(((t,n)=>{const r={key:i.slice(0,n+1).join("/"),name:t};""!==e&&s.push(r)}));const l={pathInfo:s,isDirectory:!1},u={_:(new Date).valueOf()};Yo().ajax({url:`${n}file-manager?command=Remove&arguments=${encodeURI(JSON.stringify(l))}&rootDirectory=${r}`,type:"POST",data:JSON.stringify(u),dataType:"json",contentType:"text/plain;charset=UTF-8",processData:!1,success:function(e){e.success,a(e)},error:function(){}})}))}static filePreview(e,t,n){return new Promise(((r,a)=>{t||(t=Wo),n||(n=Vo);const o=`${t}FilePriview?rootDirectory=${n}&filePath=${e}`;r(Yo().ajax({url:o,async:!1}))}))}static getFilesInfo(e,t,n){return new Promise(((r,a)=>{t||(t=Wo),n||(n=Vo);const o={pathInfo:[{name:e,key:e}]},i=JSON.stringify(o),s=(new Date).valueOf(),l=`${t}file-manager?command=GetDirContents&arguments=${i}&_=${s}&rootDirectory=${n}`,u=Yo().ajax({url:l,async:!1}),d=u.responseJSON.result,c=n.split("/"),m=c[c.length-2],h=t.replace(/(^|\/)api\/?/,"/");d.forEach((async e=>{if(0==e.isDirectory){let t=e.name.substring(e.name.lastIndexOf(".")+1,e.length).toLowerCase();if("png"==t||"jpg"==t||"jpeg"==t||"jif"==t||"svg"==t||"pdf"==t||"bmp"==t||"psd"==t){let t=h+m+"/"+e.key;e["previewUrl"]=t}}})),r(u)}))}}const[qo,Jo]=it("swipe"),Go={loop:ut,width:lt,height:lt,vertical:Boolean,autoplay:ht(0),duration:ht(500),touchable:ut,lazyRender:Boolean,initialSwipe:ht(0),indicatorColor:String,showIndicators:ut,stopPropagation:ut},$o=Symbol(qo);var Ko=(0,n.defineComponent)({name:qo,props:Go,emits:["change"],setup(e,{emit:t,slots:r}){const a=(0,n.ref)(),o=(0,n.ref)(),i=(0,n.reactive)({rect:null,width:0,height:0,offset:0,active:0,swiping:!1}),s=mn(),{children:l,linkChildren:u}=Xt($o),d=(0,n.computed)((()=>l.length)),c=(0,n.computed)((()=>i[e.vertical?"height":"width"])),m=(0,n.computed)((()=>e.vertical?s.deltaY.value:s.deltaX.value)),h=(0,n.computed)((()=>{if(i.rect){const t=e.vertical?i.rect.height:i.rect.width;return t-c.value*d.value}return 0})),f=(0,n.computed)((()=>Math.ceil(Math.abs(h.value)/c.value))),_=(0,n.computed)((()=>d.value*c.value)),p=(0,n.computed)((()=>(i.active+d.value)%d.value)),y=(0,n.computed)((()=>{const t=e.vertical?"vertical":"horizontal";return s.direction.value===t})),g=(0,n.computed)((()=>{const t={transitionDuration:`${i.swiping?0:e.duration}ms`,transform:`translate${e.vertical?"Y":"X"}(${i.offset}px)`};if(c.value){const n=e.vertical?"height":"width",r=e.vertical?"width":"height";t[n]=`${_.value}px`,t[r]=e[r]?`${e[r]}px`:""}return t})),M=t=>{const{active:n}=i;return t?e.loop?ze(n+t,-1,d.value):ze(n+t,0,f.value):n},v=(t,n=0)=>{let r=t*c.value;e.loop||(r=Math.min(r,-h.value));let a=n-r;return e.loop||(a=ze(a,h.value,0)),a},L=({pace:n=0,offset:r=0,emitChange:a})=>{if(d.value<=1)return;const{active:o}=i,s=M(n),u=v(s,r);if(e.loop){if(l[0]&&u!==h.value){const e=u<h.value;l[0].setOffset(e?_.value:0)}if(l[d.value-1]&&0!==u){const e=u>0;l[d.value-1].setOffset(e?-_.value:0)}}i.active=s,i.offset=u,a&&s!==o&&t("change",p.value)},w=()=>{i.swiping=!0,i.active<=-1?L({pace:d.value}):i.active>=d.value&&L({pace:-d.value})},k=()=>{w(),s.reset(),zt((()=>{i.swiping=!1,L({pace:-1,emitChange:!0})}))},Y=()=>{w(),s.reset(),zt((()=>{i.swiping=!1,L({pace:1,emitChange:!0})}))};let b;const D=()=>clearTimeout(b),T=()=>{D(),e.autoplay>0&&d.value>1&&(b=setTimeout((()=>{Y(),T()}),+e.autoplay))},S=(t=+e.initialSwipe)=>{if(!a.value)return;const r=()=>{var n,r;if(!_n(a)){const t={width:a.value.offsetWidth,height:a.value.offsetHeight};i.rect=t,i.width=+(null!=(n=e.width)?n:t.width),i.height=+(null!=(r=e.height)?r:t.height)}d.value&&(t=Math.min(d.value-1,t)),i.active=t,i.swiping=!0,i.offset=v(t),l.forEach((e=>{e.setOffset(0)})),T()};_n(a)?(0,n.nextTick)().then(r):r()},A=()=>S(i.active);let x;const E=t=>{e.touchable&&(s.start(t),x=Date.now(),D(),w())},C=t=>{if(e.touchable&&i.swiping&&(s.move(t),y.value)){const n=!e.loop&&(0===i.active&&m.value>0||i.active===d.value-1&&m.value<0);n||(fn(t,e.stopPropagation),L({offset:m.value}))}},j=()=>{if(!e.touchable||!i.swiping)return;const t=Date.now()-x,n=m.value/t,r=Math.abs(n)>.25||Math.abs(m.value)>c.value/2;if(r&&y.value){const t=e.vertical?s.offsetY.value:s.offsetX.value;let n=0;n=e.loop?t>0?m.value>0?-1:1:0:-Math[m.value>0?"ceil":"floor"](m.value/c.value),L({pace:n,emitChange:!0})}else m.value&&L({pace:0});i.swiping=!1,T()},O=(t,n={})=>{w(),s.reset(),zt((()=>{let r;r=e.loop&&t===d.value?0===i.active?0:t:t%d.value,n.immediate?zt((()=>{i.swiping=!1})):i.swiping=!1,L({pace:r-i.active,emitChange:!0})}))},H=(t,r)=>{const a=r===p.value,o=a?{backgroundColor:e.indicatorColor}:void 0;return(0,n.createVNode)("i",{style:o,class:Jo("indicator",{active:a})},null)},N=()=>r.indicator?r.indicator({active:p.value,total:d.value}):e.showIndicators&&d.value>1?(0,n.createVNode)("div",{class:Jo("indicators",{vertical:e.vertical})},[Array(d.value).fill("").map(H)]):void 0;return qe({prev:k,next:Y,state:i,resize:A,swipeTo:O}),u({size:c,props:e,count:d,activeIndicator:p}),(0,n.watch)((()=>e.initialSwipe),(e=>S(+e))),(0,n.watch)(d,(()=>S(i.active))),(0,n.watch)((()=>e.autoplay),T),(0,n.watch)([pn,yn],A),(0,n.watch)(dn(),(e=>{"visible"===e?T():D()})),(0,n.onMounted)(S),(0,n.onActivated)((()=>S(i.active))),kn((()=>S(i.active))),(0,n.onDeactivated)(D),(0,n.onBeforeUnmount)(D),nn("touchmove",C,{target:o}),()=>{var t;return(0,n.createVNode)("div",{ref:a,class:Jo()},[(0,n.createVNode)("div",{ref:o,style:g.value,class:Jo("track",{vertical:e.vertical}),onTouchstartPassive:E,onTouchend:j,onTouchcancel:j},[null==(t=r.default)?void 0:t.call(r)]),N()])}}});const Zo=Ue(Ko);const[Xo,Qo]=it("image"),ei={src:String,alt:String,fit:String,position:String,round:Boolean,block:Boolean,width:lt,height:lt,radius:lt,lazyLoad:Boolean,iconSize:lt,showError:ut,errorIcon:ft("photo-fail"),iconPrefix:String,showLoading:ut,loadingIcon:ft("photo")};var ti=(0,n.defineComponent)({name:Xo,props:ei,emits:["load","error"],setup(e,{emit:t,slots:r}){const a=(0,n.ref)(!1),o=(0,n.ref)(!0),i=(0,n.ref)(),{$Lazyload:s}=(0,n.getCurrentInstance)().proxy,l=(0,n.computed)((()=>{const t={width:Ie(e.width),height:Ie(e.height)};return Te(e.radius)&&(t.overflow="hidden",t.borderRadius=Ie(e.radius)),t}));(0,n.watch)((()=>e.src),(()=>{a.value=!1,o.value=!0}));const u=e=>{o.value=!1,t("load",e)},d=e=>{a.value=!0,o.value=!1,t("error",e)},c=(t,r,a)=>a?a():(0,n.createVNode)(Ht,{name:t,size:e.iconSize,class:r,classPrefix:e.iconPrefix},null),m=()=>o.value&&e.showLoading?(0,n.createVNode)("div",{class:Qo("loading")},[c(e.loadingIcon,Qo("loading-icon"),r.loading)]):a.value&&e.showError?(0,n.createVNode)("div",{class:Qo("error")},[c(e.errorIcon,Qo("error-icon"),r.error)]):void 0,h=()=>{if(a.value||!e.src)return;const t={alt:e.alt,class:Qo("img"),style:{objectFit:e.fit,objectPosition:e.position}};return e.lazyLoad?(0,n.withDirectives)((0,n.createVNode)("img",(0,n.mergeProps)({ref:i},t),null),[[(0,n.resolveDirective)("lazy"),e.src]]):(0,n.createVNode)("img",(0,n.mergeProps)({src:e.src,onLoad:u,onError:d},t),null)},f=({el:e})=>{const t=()=>{e===i.value&&o.value&&u()};i.value?t():(0,n.nextTick)(t)},_=({el:e})=>{e!==i.value||a.value||d()};return s&&He&&(s.$on("loaded",f),s.$on("error",_),(0,n.onBeforeUnmount)((()=>{s.$off("loaded",f),s.$off("error",_)}))),()=>{var t;return(0,n.createVNode)("div",{class:Qo({round:e.round,block:e.block}),style:l.value},[h(),m(),null==(t=r.default)?void 0:t.call(r)])}}});const ni=Ue(ti);const[ri,ai]=it("swipe-item");var oi=(0,n.defineComponent)({name:ri,setup(e,{slots:t}){let r;const a=(0,n.reactive)({offset:0,inited:!1,mounted:!1}),{parent:o,index:i}=Gt($o);if(!o)return void 0;const s=(0,n.computed)((()=>{const e={},{vertical:t}=o.props;return o.size.value&&(e[t?"height":"width"]=`${o.size.value}px`),a.offset&&(e.transform=`translate${t?"Y":"X"}(${a.offset}px)`),e})),l=(0,n.computed)((()=>{const{loop:e,lazyRender:t}=o.props;if(!t||r)return!0;if(!a.mounted)return!1;const n=o.activeIndicator.value,s=o.count.value-1,l=0===n&&e?s:n-1,u=n===s&&e?0:n+1;return r=i.value===n||i.value===l||i.value===u,r})),u=e=>{a.offset=e};return(0,n.onMounted)((()=>{(0,n.nextTick)((()=>{a.mounted=!0}))})),qe({setOffset:u}),()=>{var e;return(0,n.createVNode)("div",{class:ai(),style:s.value},[l.value?null==(e=t.default)?void 0:e.call(t):null])}}});const ii=Ue(oi);const si=e=>Math.sqrt((e[0].clientX-e[1].clientX)**2+(e[0].clientY-e[1].clientY)**2),li=it("image-preview")[1];var ui=(0,n.defineComponent)({props:{src:String,show:Boolean,active:Number,minZoom:dt(lt),maxZoom:dt(lt),rootWidth:dt(Number),rootHeight:dt(Number)},emits:["scale","close"],setup(e,{emit:t,slots:r}){const a=(0,n.reactive)({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),o=mn(),i=(0,n.ref)(),s=(0,n.computed)((()=>{const{rootWidth:t,rootHeight:n}=e,r=n/t;return a.imageRatio>r})),l=(0,n.computed)((()=>{const{scale:e,moveX:t,moveY:n,moving:r,zooming:o}=a,i={transitionDuration:o||r?"0s":".3s"};if(1!==e){const r=t/e,a=n/e;i.transform=`scale(${e}, ${e}) translate(${r}px, ${a}px)`}return i})),u=(0,n.computed)((()=>{if(a.imageRatio){const{rootWidth:t,rootHeight:n}=e,r=s.value?n/a.imageRatio:t;return Math.max(0,(a.scale*r-t)/2)}return 0})),d=(0,n.computed)((()=>{if(a.imageRatio){const{rootWidth:t,rootHeight:n}=e,r=s.value?n:t*a.imageRatio;return Math.max(0,(a.scale*r-n)/2)}return 0})),c=n=>{n=ze(n,+e.minZoom,+e.maxZoom+1),n!==a.scale&&(a.scale=n,t("scale",{scale:n,index:e.active}))},m=()=>{c(1),a.moveX=0,a.moveY=0},h=()=>{const e=a.scale>1?1:2;c(e),a.moveX=0,a.moveY=0};let f,_,p,y,g,M,v;const L=e=>{const{touches:t}=e,{offsetX:n}=o;o.start(e),f=t.length,_=a.moveX,p=a.moveY,v=Date.now(),a.moving=1===f&&1!==a.scale,a.zooming=2===f&&!n.value,a.zooming&&(y=a.scale,g=si(e.touches))},w=e=>{const{touches:t}=e;if(o.move(e),(a.moving||a.zooming)&&fn(e,!0),a.moving){const{deltaX:e,deltaY:t}=o,n=e.value+_,r=t.value+p;a.moveX=ze(n,-u.value,u.value),a.moveY=ze(r,-d.value,d.value)}if(a.zooming&&2===t.length){const e=si(t),n=y*e/g;c(n)}},k=()=>{if(f>1)return;const{offsetX:e,offsetY:n}=o,r=Date.now()-v,a=250,i=5;e.value<i&&n.value<i&&r<a&&(M?(clearTimeout(M),M=null,h()):M=setTimeout((()=>{t("close"),M=null}),a))},Y=t=>{let n=!1;(a.moving||a.zooming)&&(n=!0,a.moving&&_===a.moveX&&p===a.moveY&&(n=!1),t.touches.length||(a.zooming&&(a.moveX=ze(a.moveX,-u.value,u.value),a.moveY=ze(a.moveY,-d.value,d.value),a.zooming=!1),a.moving=!1,_=0,p=0,y=1,a.scale<1&&m(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),fn(t,n),k(),o.reset()},b=e=>{const{naturalWidth:t,naturalHeight:n}=e.target;a.imageRatio=n/t};return(0,n.watch)((()=>e.active),m),(0,n.watch)((()=>e.show),(e=>{e||m()})),nn("touchmove",w,{target:(0,n.computed)((()=>{var e;return null==(e=i.value)?void 0:e.$el}))}),()=>{const t={loading:()=>(0,n.createVNode)(Fn,{type:"spinner"},null)};return(0,n.createVNode)(ii,{ref:i,class:li("swipe-item"),onTouchstartPassive:L,onTouchend:Y,onTouchcancel:Y},{default:()=>[r.image?(0,n.createVNode)("div",{class:li("image-wrap")},[r.image({src:e.src})]):(0,n.createVNode)(ni,{src:e.src,fit:"contain",class:li("image",{vertical:s.value}),style:l.value,onLoad:b},t)]})}}});const[di,ci]=it("image-preview"),mi=["show","transition","overlayStyle","closeOnPopstate"],hi={show:Boolean,loop:ut,images:ct(),minZoom:ht(1/3),maxZoom:ht(3),overlay:ut,closeable:Boolean,showIndex:ut,className:st,closeIcon:ft("clear"),transition:String,beforeClose:Function,overlayClass:st,overlayStyle:Object,swipeDuration:ht(300),startPosition:ht(0),showIndicators:Boolean,closeOnPopstate:ut,closeIconPosition:ft("top-right")};var fi=(0,n.defineComponent)({name:di,props:hi,emits:["scale","close","closed","change","update:show"],setup(e,{emit:t,slots:r}){const a=(0,n.ref)(),o=(0,n.reactive)({active:0,rootWidth:0,rootHeight:0}),i=()=>{if(a.value){const e=Jt(a.value.$el);o.rootWidth=e.width,o.rootHeight=e.height,a.value.resize()}},s=e=>t("scale",e),l=e=>t("update:show",e),u=()=>{Pt(e.beforeClose,{args:[o.active],done:()=>l(!1)})},d=e=>{e!==o.active&&(o.active=e,t("change",e))},c=()=>{if(e.showIndex)return(0,n.createVNode)("div",{class:ci("index")},[r.index?r.index({index:o.active}):`${o.active+1} / ${e.images.length}`])},m=()=>{if(r.cover)return(0,n.createVNode)("div",{class:ci("cover")},[r.cover()])},h=()=>(0,n.createVNode)(Zo,{ref:a,lazyRender:!0,loop:e.loop,class:ci("swipe"),duration:e.swipeDuration,initialSwipe:e.startPosition,showIndicators:e.showIndicators,indicatorColor:"white",onChange:d},{default:()=>[e.images.map((t=>(0,n.createVNode)(ui,{src:t,show:e.show,active:o.active,maxZoom:e.maxZoom,minZoom:e.minZoom,rootWidth:o.rootWidth,rootHeight:o.rootHeight,onScale:s,onClose:u},{image:r.image})))]}),f=()=>{if(e.closeable)return(0,n.createVNode)(Ht,{role:"button",name:e.closeIcon,class:[ci("close-icon",e.closeIconPosition),Bt],onClick:u},null)},_=()=>t("closed"),p=(e,t)=>{var n;return null==(n=a.value)?void 0:n.swipeTo(e,t)};return qe({swipeTo:p}),(0,n.onMounted)(i),(0,n.watch)([pn,yn],i),(0,n.watch)((()=>e.startPosition),(e=>d(+e))),(0,n.watch)((()=>e.show),(r=>{const{images:a,startPosition:s}=e;r?(d(+s),(0,n.nextTick)((()=>{i(),p(+s,{immediate:!0})}))):t("close",{index:o.active,url:a[o.active]})})),()=>(0,n.createVNode)(jn,(0,n.mergeProps)({class:[ci(),e.className],overlayClass:[ci("overlay"),e.overlayClass],onClosed:_,"onUpdate:show":l},Pe(e,mi)),{default:()=>[f(),h(),c(),m()]})}});let _i;const pi={loop:!0,images:[],maxZoom:3,minZoom:1/3,onScale:void 0,onClose:void 0,onChange:void 0,teleport:"body",className:"",showIndex:!0,closeable:!1,closeIcon:"clear",transition:void 0,beforeClose:void 0,overlayStyle:void 0,overlayClass:void 0,startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeIconPosition:"top-right"};function yi(){({instance:_i}=Ge({setup(){const{state:e,toggle:t}=Je(),r=()=>{e.images=[]};return()=>(0,n.createVNode)(fi,(0,n.mergeProps)(e,{onClosed:r,"onUpdate:show":t}),null)}}))}const gi=(e,t=0)=>{if(He)return _i||yi(),e=Array.isArray(e)?{images:e,startPosition:t}:e,_i.open(Oe({},pi,e)),_i};gi.Component=Ue(fi),gi.install=e=>{e.use(gi.Component)};const Mi={class:"container"},vi={key:0,class:"button-area"},Li={class:"box",style:{width:"100%",height:"100%"}},wi=["src"],ki=5242880,Yi=(0,n.defineComponent)({__name:"ermAttach",props:{recId:{type:String,require:!0},code:{type:String,require:!0},isSort:{type:Boolean,require:!1,default:!1},isOnlyPreview:{type:Boolean,require:!1,default:!1}},setup(e){let t="",r="";const a=(0,n.ref)(),o=(0,n.ref)([]);let i="";const s=(0,n.ref)(!1),l=(0,n.ref)([]),u=(0,n.ref)([]),d=(0,n.ref)([]),c=(0,n.ref)(),m=(0,n.ref)(!1),h=(0,n.ref)(!1);let f=[];(0,n.onBeforeUpdate)((()=>{d.value=[]})),(0,n.onMounted)((()=>{setTimeout((()=>{_()}),1e3)}));const _=()=>{Uo.getServerInfo(S.code).then((e=>{console.log("服务器信息:",e),console.log("isOnlyPreview",S.isOnlyPreview),er({message:"服务信息初始化成功",duration:2e3}),t=e.serverUrl,r=e.rootPath,p()})).catch((e=>{console.error("error",e),er({message:e,duration:2e3})}))},p=()=>{Uo.getFilesInfo(S.recId,t,r).then((e=>{console.log("获取文件:",e),!0===e.success?(o.value=e.result,console.log("fileInfo",o.value),S.isSort&&(console.log("排序前",o.value),o.value.reverse(),console.log("排序后",o.value)),f=[],o.value.forEach((e=>{const t=e.name.lastIndexOf("."),n=e.name.substring(t+1);"jpg"!==n&&"jpeg"!==n&&"png"!==n||(console.log("item",e),f.push(e.previewUrl))})),console.log("imgsUrl",f)):er({message:e.result,duration:0,closeOnClick:!0})}))},y=(e,n)=>{console.log("e",e),console.log("index",n);const o=L(e);if(e.previewUrl===o){const e=f.findIndex((e=>e===o));console.log("indexOfImg",e),gi(f,e)}else a.value="",Uo.filePreview(e.key,t,r).then((e=>{console.log("预览后台返回:",e),s.value=!0,a.value=e})).catch((e=>{console.error("error",e),er({message:e,closeOnClick:!0})}))},g=e=>{if(console.log("file",e),0!==e?.length&&e)if(Array.isArray(e)){const n=Array.from(e);console.log("fileArray",n),n.forEach(((e,n)=>{console.log("file",e);const a=e.file;console.log("blobData",a);const o=e.file.name,i=e.file.size;Uo.fileUpload(a,S.recId,o,i,t,r).then((e=>{console.log("文件上传:",e),!0===e.success?(er.success({message:"上传成功",duration:2e3}),p()):er.fail({message:e[0].result,closeOnClick:!0,duration:0})}))}))}else{console.log("file",e);const n=e.file;console.log("blobData",n);const a=e.file.name,o=e.file.size;Uo.fileUpload(n,S.recId,a,o,t,r).then((e=>{console.log("文件上传:",e),!0===e.success?(er.success({message:"上传成功",duration:2e3}),p()):er.fail({message:e[0].result,closeOnClick:!0,duration:0})}))}else er({message:"请选择文件",duration:2e3})},M=e=>{console.log("e",e);const n=e.name;Uo.fileDelete(n,S.recId,t,r).then((e=>{console.log("删除文件:",e),!0===e.success?(er({message:"删除成功",duration:2e3}),p()):er.fail({message:e.result,closeOnClick:!0,duration:0})}))},v=()=>{console.log("批量删除"),console.log("checkboxRefs",d),d.value.forEach(((e,t)=>{e&&e.checked.value&&(console.log("index",t),console.log(o.value[t]),M(o.value[t]))})),k()},L=e=>{console.log("item",e),console.log("item.name",e.name);const t=e.name.lastIndexOf("."),n=e.name.substring(t+1);return i="jpg"===n||"jpeg"===n||"png"===n?e.previewUrl:"doc"===n||"docx"===n?"src/assets/img/BM2A_ATTACH/docx.png":"xls"===n||"xlsx"===n?"src/assets/img/BM2A_ATTACH/xlsx.png":"ppt"===n||"pptx"===n?"src/assets/img/BM2A_ATTACH/ppt.png":"pdf"===n?"src/assets/img/BM2A_ATTACH/pdf.png":"txt"===n?"src/assets/img/BM2A_ATTACH/txt.png":"zip"===n||"rar"===n?"src/assets/img/BM2A_ATTACH/zip.png":"src/assets/img/BM2A_ATTACH/未知类型.png",i},w=e=>{const t=new Date(e),n=t.getFullYear(),r=t.getMonth()+1<10?`0${t.getMonth()+1}`:t.getMonth()+1,a=t.getDate()<10?`0${t.getDate()}`:t.getDate();return`${n}-${r}-${a}`},k=()=>{m.value?(m.value=!1,(0,n.nextTick)((()=>{l.value.forEach((e=>{e.close("left")}))}))):(m.value=!0,(0,n.nextTick)((()=>{l.value.forEach((e=>{e.open("left")}))})))},Y=()=>{console.log("checkboxGroupRef",c),console.log("isSelectAll",h.value),h.value?(c?.value.toggleAll(!1),h.value=!1):(c?.value.toggleAll(!0),h.value=!0)},b=({position:e})=>{switch(e){case"left":return!m.value;case"right":return!0;case"cell":return!1;case"outside":return!m.value}},D=async e=>{console.log(e),er.fail({message:"文件大小不能超过 "+ki/1024+"kb",closeOnClick:!0,duration:0})},T=e=>{console.log("index",e),d.value[e].toggle()};(0,n.onBeforeUpdate)((()=>{d.value=[]}));const S=e;return(e,t)=>{const r=(0,n.resolveComponent)("van-button"),i=(0,n.resolveComponent)("van-uploader"),h=(0,n.resolveComponent)("van-cell"),f=(0,n.resolveComponent)("van-card"),_=(0,n.resolveComponent)("van-checkbox"),p=(0,n.resolveComponent)("van-swipe-cell"),A=(0,n.resolveComponent)("van-checkbox-group"),x=(0,n.resolveComponent)("van-list"),E=(0,n.resolveComponent)("van-image"),C=(0,n.resolveComponent)("van-grid-item"),j=(0,n.resolveComponent)("van-grid"),O=(0,n.resolveComponent)("van-popup");return(0,n.openBlock)(),(0,n.createElementBlock)("div",Mi,[S.isOnlyPreview?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("div",vi,[(0,n.createVNode)(i,{disabled:m.value,"preview-image":!1,"after-read":g,multiple:!0,"max-size":ki,onOversize:D,accept:".jpg,.png,.jpeg,.doc,.docx,.pdf,.ppt,.pptx,.xlsx,.xls"},{default:(0,n.withCtx)((()=>[(0,n.createVNode)(r,{icon:"plus",type:"primary",size:"small",class:"button-type"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)("上传")])),_:1})])),_:1},8,["disabled"]),m.value?((0,n.openBlock)(),(0,n.createBlock)(r,{key:0,icon:"success",type:"success",size:"small",class:"button-type",onClick:Y},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)("全选")])),_:1})):(0,n.createCommentVNode)("",!0),m.value?((0,n.openBlock)(),(0,n.createBlock)(r,{key:1,icon:"minus",type:"danger",size:"small",class:"button-type",onClick:v},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)("删除")])),_:1})):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(r,{plain:"",type:"success",size:"small",class:"button-type",onClick:k},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)("批量管理")])),_:1})])),S.isOnlyPreview?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createBlock)(x,{key:1},{default:(0,n.withCtx)((()=>[(0,n.createVNode)(A,{modelValue:u.value,"onUpdate:modelValue":t[1]||(t[1]=e=>u.value=e),ref_key:"checkboxGroupRef",ref:c},{default:(0,n.withCtx)((()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(o.value,((e,a)=>((0,n.openBlock)(),(0,n.createBlock)(p,{key:a,ref_for:!0,ref_key:"swipeCell",ref:l,"before-close":b},(0,n.createSlots)({default:(0,n.withCtx)((()=>[(0,n.createVNode)(f,{desc:e.dateModified,class:"goods-card",clickable:"",onClick:e=>T(a),thumb:L(e),onClickThumb:t=>y(e,a)},{title:(0,n.withCtx)((()=>[(0,n.createVNode)(h,{class:"card-desc"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)("文件名称: "+(0,n.toDisplayString)(e.name),1)])),_:2},1024)])),desc:(0,n.withCtx)((()=>[(0,n.createVNode)(h,{class:"card-desc"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)("上传时间: "+(0,n.toDisplayString)(w(e.dateModified)),1)])),_:2},1024)])),_:2},1032,["desc","onClick","thumb","onClickThumb"])])),_:2},[m.value?{name:"left",fn:(0,n.withCtx)((()=>[(0,n.createVNode)(_,{name:e,ref_for:!0,ref:e=>d.value[a]=e,class:"slot-left",onClick:t[0]||(t[0]=(0,n.withModifiers)((()=>{}),["stop"]))},null,8,["name"])])),key:"0"}:void 0,m.value?void 0:{name:"right",fn:(0,n.withCtx)((()=>[(0,n.createVNode)(r,{text:"删除",type:"danger",class:"slot-right",onClick:t=>M(e)},null,8,["onClick"])])),key:"1"}]),1024)))),128))])),_:1},8,["modelValue"])])),_:1})),S.isOnlyPreview?((0,n.openBlock)(),(0,n.createBlock)(x,{key:2},{default:(0,n.withCtx)((()=>[(0,n.createVNode)(j,{gutter:10,border:!1,"column-num":2},{default:(0,n.withCtx)((()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(o.value,((e,t)=>((0,n.openBlock)(),(0,n.createBlock)(C,{key:t},{default:(0,n.withCtx)((()=>[(0,n.createVNode)(E,{fit:"fill",src:L(e),onClick:n=>y(e,t)},null,8,["src","onClick"])])),_:2},1024)))),128))])),_:1})])),_:1})):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",Li,[(0,n.createVNode)(O,{"v-model:show":s.value,position:"bottom",style:{height:"92%"}},{default:(0,n.withCtx)((()=>[(0,n.createElementVNode)("iframe",{src:a.value,width:"100%",height:"800",scrolling:"no",frameborder:"0"},null,8,wi)])),_:1},8,["v-model:show"])])])}}}),bi=(0,h.Z)(Yi,[["__scopeId","data-v-0a9b23b3"]]),Di=bi,Ti=(j(Di),Di);class Si{static getTableName(e){return e.value.getTableName()}static endLoad(e){return e.value.endLoad()}static selectAll(e){return e.value.selectAll()}static selectNone(e){return e.value.selectNone()}static getSelectedRows(e){return e.value.getSelectedRows()}}class Ai{static getGridData(e){return e.value.getGridData()}static getGridCellData(e,t,n){return e.value.getGridCellData(t,n)}static setGridData(e,t,n,r){return e.value.setGridData(t,n,r)}static checkRequireInput(e){return e.value.checkRequireInput()}static resetData(e){return e.value.resetData()}static mergeDataRow(e,t,n){return e.value.mergeDataRow(t,n)}static getTableName(e){return e.value.getTableName()}static addRow(e){return e.value.addRow()}static deleteRow(e,t){return e.value.deleteRow(t)}}const xi=[O,ue,Ti],Ei=e=>{xi.map((t=>{const n=t.name||t.__name;return e.component(n,t)}))},Ci={install:Ei},ji=Ci})(),a})()));
|
|
319
|
+
let za;const Ua=e=>za=e,qa=Symbol();function Ja(e){return e&&"object"===typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!==typeof e.toJSON}var Ga;(function(e){e["direct"]="direct",e["patchObject"]="patch object",e["patchFunction"]="patch function"})(Ga||(Ga={}));const $a="undefined"!==typeof window,Ka=!1,Za=(()=>"object"===typeof window&&window.window===window?window:"object"===typeof self&&self.self===self?self:"object"===typeof global&&global.global===global?global:"object"===typeof globalThis?globalThis:{HTMLElement:null})();function Xa(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}function Qa(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){ao(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function eo(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(n){}return t.status>=200&&t.status<=299}function to(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const no="object"===typeof navigator?navigator:{userAgent:""},ro=(()=>/Macintosh/.test(no.userAgent)&&/AppleWebKit/.test(no.userAgent)&&!/Safari/.test(no.userAgent))(),ao=$a?"undefined"!==typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!ro?oo:"msSaveOrOpenBlob"in no?io:so:()=>{};function oo(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener","string"===typeof e?(r.href=e,r.origin!==location.origin?eo(r.href)?Qa(e,t,n):(r.target="_blank",to(r)):to(r)):(r.href=URL.createObjectURL(e),setTimeout((function(){URL.revokeObjectURL(r.href)}),4e4),setTimeout((function(){to(r)}),0))}function io(e,t="download",n){if("string"===typeof e)if(eo(e))Qa(e,t,n);else{const t=document.createElement("a");t.href=e,t.target="_blank",setTimeout((function(){to(t)}))}else navigator.msSaveOrOpenBlob(Xa(e,n),t)}function so(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),"string"===typeof e)return Qa(e,t,n);const a="application/octet-stream"===e.type,o=/constructor/i.test(String(Za.HTMLElement))||"safari"in Za,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||a&&o||ro)&&"undefined"!==typeof FileReader){const t=new FileReader;t.onloadend=function(){let e=t.result;if("string"!==typeof e)throw r=null,new Error("Wrong reader.result type");e=i?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{const t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout((function(){URL.revokeObjectURL(t)}),4e4)}}const{assign:lo}=Object;const uo=()=>{};function co(e,t,r,a=uo){e.push(t);const o=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),a())};return!r&&(0,n.getCurrentScope)()&&(0,n.onScopeDispose)(o),o}function mo(e,...t){e.slice().forEach((e=>{e(...t)}))}const ho=e=>e();function fo(e,t){e instanceof Map&&t instanceof Map&&t.forEach(((t,n)=>e.set(n,t))),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const a=t[r],o=e[r];Ja(o)&&Ja(a)&&e.hasOwnProperty(r)&&!(0,n.isRef)(a)&&!(0,n.isReactive)(a)?e[r]=fo(o,a):e[r]=a}return e}const _o=Symbol(),po=new WeakMap;function yo(e){return Wa?!po.has(e):!Ja(e)||!e.hasOwnProperty(_o)}const{assign:go}=Object;function Mo(e){return!(!(0,n.isRef)(e)||!e.effect)}function vo(e,t,r,a){const{state:o,actions:i,getters:s}=t,l=r.state.value[e];let u;function d(){l||(Wa?Va(r.state.value,e,o?o():{}):r.state.value[e]=o?o():{});const t=(0,n.toRefs)(r.state.value[e]);return go(t,i,Object.keys(s||{}).reduce(((t,a)=>(t[a]=(0,n.markRaw)((0,n.computed)((()=>{Ua(r);const t=r._s.get(e);if(!Wa||t._r)return s[a].call(t,t)}))),t)),{}))}return u=Lo(e,d,t,r,a,!0),u}function Lo(e,t,r={},a,o,i){let s;const l=go({actions:{}},r);const u={deep:!0};let d,c;let m,h=[],f=[];const _=a.state.value[e];i||_||(Wa?Va(a.state.value,e,{}):a.state.value[e]={});const p=(0,n.ref)({});let y;function g(t){let r;d=c=!1,"function"===typeof t?(t(a.state.value[e]),r={type:Ga.patchFunction,storeId:e,events:m}):(fo(a.state.value[e],t),r={type:Ga.patchObject,payload:t,storeId:e,events:m});const o=y=Symbol();(0,n.nextTick)().then((()=>{y===o&&(d=!0)})),c=!0,mo(h,r,a.state.value[e])}const M=i?function(){const{state:e}=r,t=e?e():{};this.$patch((e=>{go(e,t)}))}:uo;function v(){s.stop(),h=[],f=[],a._s.delete(e)}function L(t,n){return function(){Ua(a);const r=Array.from(arguments),o=[],i=[];function s(e){o.push(e)}function l(e){i.push(e)}let u;mo(f,{args:r,name:t,store:Y,after:s,onError:l});try{u=n.apply(this&&this.$id===e?this:Y,r)}catch(d){throw mo(i,d),d}return u instanceof Promise?u.then((e=>(mo(o,e),e))).catch((e=>(mo(i,e),Promise.reject(e)))):(mo(o,u),u)}}const w=(0,n.markRaw)({actions:{},getters:{},state:[],hotState:p}),k={_p:a,$id:e,$onAction:co.bind(null,f),$patch:g,$reset:M,$subscribe(t,r={}){const o=co(h,t,r.detached,(()=>i())),i=s.run((()=>(0,n.watch)((()=>a.state.value[e]),(n=>{("sync"===r.flush?c:d)&&t({storeId:e,type:Ga.direct,events:m},n)}),go({},u,r))));return o},$dispose:v};Wa&&(k._r=!1);const Y=(0,n.reactive)(Ka?go({_hmrPayload:w,_customProperties:(0,n.markRaw)(new Set)},k):k);a._s.set(e,Y);const b=a._a&&a._a.runWithContext||ho,D=b((()=>a._e.run((()=>(s=(0,n.effectScope)()).run(t)))));for(const T in D){const t=D[T];if((0,n.isRef)(t)&&!Mo(t)||(0,n.isReactive)(t))i||(_&&yo(t)&&((0,n.isRef)(t)?t.value=_[T]:fo(t,_[T])),Wa?Va(a.state.value[e],T,t):a.state.value[e][T]=t);else if("function"===typeof t){const e=L(T,t);Wa?Va(D,T,e):D[T]=e,l.actions[T]=t}else 0}if(Wa?Object.keys(D).forEach((e=>{Va(Y,e,D[e])})):(go(Y,D),go((0,n.toRaw)(Y),D)),Object.defineProperty(Y,"$state",{get:()=>a.state.value[e],set:e=>{g((t=>{go(t,e)}))}}),Ka){const e={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach((t=>{Object.defineProperty(Y,t,go({value:Y[t]},e))}))}return Wa&&(Y._r=!0),a._p.forEach((e=>{if(Ka){const t=s.run((()=>e({store:Y,app:a._a,pinia:a,options:l})));Object.keys(t||{}).forEach((e=>Y._customProperties.add(e))),go(Y,t)}else go(Y,s.run((()=>e({store:Y,app:a._a,pinia:a,options:l}))))})),_&&i&&r.hydrate&&r.hydrate(Y.$state,_),d=!0,c=!0,Y}function wo(e,t,r){let a,o;const i="function"===typeof t;function s(e,r){const s=(0,n.hasInjectionContext)();e=e||(s?(0,n.inject)(qa,null):null),e&&Ua(e),e=za,e._s.has(a)||(i?Lo(a,t,o,e):vo(a,o,e));const l=e._s.get(a);return l}return"string"===typeof e?(a=e,o=i?r:t):(o=e,a=e.id),s.$id=a,s}var ko=r(9755),Yo=r.n(ko),bo=r(9669),Do=r.n(bo);const To={NODE_ENV:"production",VUE_APP_APPLICATION_NAME:"BM2A",VUE_APP_COMPANY_CODE:"BS",BASE_URL:"/"}.VUE_LOGIN_CONFIG,So={NODE_ENV:"production",VUE_APP_APPLICATION_NAME:"BM2A",VUE_APP_COMPANY_CODE:"BS",BASE_URL:"/"}.VITE_APP_COMPANY_CODE,Ao={NODE_ENV:"production",VUE_APP_APPLICATION_NAME:"BM2A",VUE_APP_COMPANY_CODE:"BS",BASE_URL:"/"}.VITE_APP_APPLICATION_NAME;class xo{static apps=[];static companies=[];static currentEnvironment=(0,o.getCurrentEnvironment)()||{skinName:"",culture:"",companyCode:"",companyName:"",appName:""};static loginStatus="";static formState={authButtons:void 0,formInfo:void 0,formParamInfo:void 0,formData:void 0,buttonData:void 0,buttonLoaded:!1,hasAuthority:!1};static setLoginStatus(e){this.loginStatus=e,localStorage.setItem("login_status",e)}static getCurLoginStatus(){return this.loginStatus=(0,o.getRememberMe)()?localStorage.getItem("login_status"):this.loginStatus,this.loginStatus}static changeLoginStatus(e){this.loginStatus=e,localStorage.setItem("login_status",e)}static LOGIN(e){const t=To.ENABLE_ENCRYPTED?"EX/encryptLogin":"EX/Login";if(e={...e,RememberMeTime:24*(e.RememberMeTime||1)},To.ENABLE_ENCRYPTED){const t=new Ba({});t.setPublicKey(To.PUBLIC_KEY);const n=t.encrypt(e.Password),r=t.encrypt(e.UserName);e.UserName=r,e.Password=n}return o.EIManager.handlePost(t,e).then((t=>{let n,r,a=!0,i=!1;const s=t.headers,l=s.signature,u=s.refresh_token,d=t.data,{status:c,msg:m}=d;if(0===c||20003===c){const e=d.getBlock("UserInfo");e||er({message:"获取用户信息失败",duration:1e3});const t=e.data.length?e.data[0]:{};r={id:t.ID,userId:t.ENAME,userName:t.CNAME,deptId:t.DEPTID,deptEName:t.DEPT_ENAME,deptCName:t.DEPT_CNAME},a=!1,i=20003===c}return n={code:c,token:l,refreshToken:u,userInfo:r,msg:m,isError:a,pwdOut:i},e.RememberMe&&(0,o.setRememberMe)(!0),l&&(this.setLoginStatus("LOGIN"),(0,o.setToken)(l)),u&&(0,o.setRefreshToken)(u),n})).catch((e=>Promise.reject(e)))}static GET_USER(e){return o.EIManager.handlePost("EX/api/GetUserInfo",e).then((e=>{let t;const n=e.data,{status:r,msg:a}=n;if(0===r){const e=n.getBlock("UserInfo");e||er({message:"获取用户信息失败",duration:1e3});const r=e.data.length?e.data[0]:{};return t={id:r.ID,userId:r.ENAME,userName:r.CNAME,deptId:r.DEPTID,deptEName:r.DEPT_ENAME,deptCName:r.DEPT_CNAME},(0,o.setCurrentUser)(t),!0}return er({message:`${a}`,duration:1e3}),!1})).catch((e=>Promise.reject(e)))}static GET_MENUS(e){const t=(0,o.buildEIInfo)(e);return o.EIManager.callEPService("epesloadinit_vue",t).then((e=>{let t=[];try{const{msg:n,status:r}=e;return 0===r?(t=e.blocks.MENUTREE.data,t):(er({message:`调用菜单服务失败,错误信息:${n}.`,duration:1e3}),t)}catch(e){return er({message:`调用菜单服务失败,错误信息:${e}.`,duration:1e3}),e}}))}static GET_COMPANIES(){return o.EIManager.handleGet("EX/GetCompanies").then((e=>{const t=e.blocks.COMPANYINFO.data;return this.companies=t,t})).catch((e=>Promise.reject(e)))}static GET_APPS(){return o.EIManager.handleGet("EX/GetApps").then((e=>{const t=e.blocks.APPINFO.data;return this.apps=t,t})).catch((e=>Promise.reject(e)))}static INITAPP_CONFIG(){let e={COMPANYCODE:"",COMPANYNAME:""},t="";Promise.all([this.GET_COMPANIES(),this.GET_APPS()]).then((([n,r])=>{if(n.length){const t=this.companies;let n=t.length>0?t[0]:{COMPANYID:"",COMPANYCODE:"",COMPANYNAME:""};if(So){const e=t.filter((e=>e.COMPANYCODE===So));n=e.length?e[0]:t[0]}e={...n}}if(r.length){const e=this.apps;let n=e.length>0?e[0].ENAME:"";if(Ao){const t=e.filter((e=>e.ENAME===Ao));n=t.length>0?t[0].ENAME:e.length>0?e[0].ENAME:""}t=n}if(t&&e){let n=(0,o.getCurrentEnvironment)();n={...n,culture:"zh_Hans",companyCode:e.COMPANYCODE,companyName:e.COMPANYNAME,appName:t,skinName:"default"},(0,o.setRememberMe)(!0),(0,o.setCurrentEnvironment)(n,!0),this.currentEnvironment=n}})).catch((e=>{const{message:t,status:n}=e;t&&er({message:`获取账套或子系统失败,错误信息:${t}.`,duration:1e3})}))}static LOGOUT(){return new Promise(((e,t)=>{this.changeLoginStatus("LOGOUT"),(0,o.removeToken)(),(0,o.removeRefreshToken)(),(0,o.removeCurrentUser)(),e(!0)}))}static exchangeSignature(e){return o.EIManager.handlePost("/proxyEx/exchangeSignature_BW",e).then((e=>{const t=e.data,{flag:n,signature:r}=t;if(0!==n)return Promise.reject({message:"宝武交换token出错啦"});(0,o.setRememberMe)(!0),(0,o.setToken)(r)})).catch((e=>Promise.reject(e)))}static CHECK_AUTH(e){return new Promise((async(t,n)=>{e.formname.toLowerCase();const r=new o.EI.EIInfo;r.addBlock(new o.EI.EiBlock,"Table1").pushData(e,!0),o.EIManager.callEPService("epescheckdll",r).then((e=>{const{status:n,msg:r}=e;let a=!1;if(0!==n){const e=new Error(`${r}`);throw e.status=100401,e}{const n=e.blocks.AUTH_INFO,r=e.blocks.BUTTON_INFO,o=e.blocks.FORMPARA_INFO,i=e.blocks.FORMDLL_INFO.data,s=i.length?i[0]:void 0;if(s){const e={formName:s.NAME,formCaption:s.DESCRIPTION,formPartition:s.ABBREV,appName:s.APPNAME,formPath:s.DLLPATH,dllName:s.DLLNAME,formCallMode:s.FORM_CALL_MODE};let t=r.data.map((e=>({name:e.NAME.trim(),desc:e.DESCRIPTION,opType:e.OPTYPE})));t=[...new Map(t.map((e=>[e.name,e]))).values()];const[{DLLMARK:i}]=n.data;a=Number(i?.toString().trim())>=1;const l=o.data.length&&o.data[0];let u;if(l&&l.FORM_NAME&&""!==l.FORM_NAME.trim()){u={params:{},baseFormName:l.FORM_BASE_NAME};for(let e=1;e<=10;e++){const t=l[`PK${e}_NAME`];null!==t&&""!==t.trim()&&(u.params[l[`PK${e}_NAME`]+""]=l[`PK${e}`])}}this.formState.formInfo=e,this.formState.authButtons=t,this.formState.hasAuthority=a,this.formState.formParamInfo=u,this.formState.buttonLoaded=!0}t(this.formState)}})).catch((e=>{n(e)}))}))}static LOGIN_CHECK(e){const t=(0,o.buildEIInfo)(e);return o.EIManager.handlePost("/MASTER/api/CallService/epeslogincheck",t).then((e=>{const t=e.data;console.log(t);const{status:n,sys:r}=t;return console.log(n),0===n?Promise.resolve(t):Promise.reject(r)})).catch((e=>Promise.reject(e)))}}var Co=(0,n.defineComponent)({name:"CPage",components:{"van-button":dr,"van-empty":yr,"van-nav-bar":Yr},props:{title:{type:String,default:""},hideBack:{type:Boolean,default:!1},rightText:{type:String,default:""},hideHeader:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},backClick:{type:Function,default:()=>!0}},emits:["click-right","ready"],setup(e,{attrs:t,emit:r}){let a=(0,n.ref)("");(0,n.watch)((()=>a),(e=>{document.title=e}));let i=(0,n.ref)("");const s=De();let l=(0,n.ref)(!1),u=s.currentRoute.value,d=s.currentRoute.value.path;const c=(0,n.ref)({appName:"",formName:"",formPath:"",dllName:"",formCallMode:"",formCaption:"",formPartition:"",formParams:{},baseFormName:"",buttonInfo:[]});let m="";m=u.query?.formName?u.query?.formName:d.substring(d.lastIndexOf("/")+1);let h=(0,n.ref)(null);(0,n.provide)("buttons",h);const f=xo.formState;f.authButtons=[],async function(){const e=(0,o.getCurrentUser)();await xo.CHECK_AUTH({formname:m,appname:(0,o.getCurrentEnvironment)().appName,path:d,loginName:e.userId}).then((e=>{l.value=!1,a.value=f.formInfo.formCaption,h.value=f.authButtons,c.value.appName=e.formInfo.appName,c.value.formName=e.formInfo.formName,c.value.formPath=e.formInfo.formPath,c.value.dllName=e.formInfo.dllName,c.value.formCallMode=e.formInfo.formCallMode,c.value.formCaption=e.formInfo.formCaption,c.value.formPartition=e.formInfo.formPartition,c.value.baseFormName=e.formParamInfo?e.formParamInfo.baseFormName:void 0,c.value.formParams=e.formParamInfo?e.formParamInfo.params:void 0,c.value.buttonInfo=h.value,r("ready",{formInfo:c.value})})).catch((e=>{l.value=!0,a.value="404";const{message:t,status:n}=e;401===n||403===n?i.value="凭据过期,请重新认证登录信息":void 0!==t&&(i.value=`${t}`)}))}();const _=(0,n.useAttrs)(),p={};Object.entries(_).forEach((([e,t])=>{"class"!==e&&(p[e]=t)}));const y=(0,n.ref)(!1),g=(0,n.useSlots)();g&&g.default&&g.default().forEach((e=>{const t=e.type;t.name&&"x-navigation"===t.name&&(y.value=!0)}));const M=(0,n.computed)((()=>({height:"calc(100vh - 46)px"})));return{title:a,clickLeft:()=>{e.backClick?e.backClick()&&s.back():(console.log("no back"),s.back())},newAttr:p,onClickRight:()=>{r("click-right")},noAuthDesc:i,show404Panel:l,containerStyle:M}}});const Eo={key:1,style:{"text-align":"center","margin-top":"20%"}},jo=(e=>((0,n.pushScopeId)("data-v-7700e381"),e=e(),(0,n.popScopeId)(),e))((()=>(0,n.createElementVNode)("img",{src:"/src/assets/img/404.png",style:{width:"100%"}},null,-1)));Co.render=function(e,t,r,a,o,i){const s=(0,n.resolveComponent)("van-nav-bar");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(e.show404Panel?"not-found":"c-page")},[(0,n.renderSlot)(e.$slots,"header",{},(()=>[e.hideHeader?(0,n.createCommentVNode)("v-if",!0):((0,n.openBlock)(),(0,n.createBlock)(s,(0,n.mergeProps)({key:0,class:"xm-title",title:e.title,onClickLeft:e.clickLeft},e.newAttr,{"left-arrow":!e.hideBack,"right-text":e.rightText,onClickRight:e.onClickRight,"safe-area-inset-top":""}),null,16,["title","onClickLeft","left-arrow","right-text","onClickRight"]))])),e.show404Panel?(0,n.createCommentVNode)("v-if",!0):((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(["page-container",{"safe-area-bottom":e.safeAreaInsetBottom}])},[(0,n.renderSlot)(e.$slots,"default")],2)),e.show404Panel?((0,n.openBlock)(),(0,n.createElementBlock)("div",Eo,[jo,(0,n.createElementVNode)("h3",null,(0,n.toDisplayString)(e.noAuthDesc),1)])):(0,n.createCommentVNode)("v-if",!0)],2)},Co.__scopeId="data-v-7700e381",Co.__file="packages/CPage/CPage.vue";const Oo=e=>(e.install=t=>{const n=e.name||e.__name;t.component(n,e)},e);Oo(Co);var Ho=(0,n.defineComponent)({name:"CButton",components:{"van-button":dr},props:{name:{required:!0,type:String},disabled:{type:Boolean,default:!1,required:!1},size:{type:String,default:"small",required:!1}},setup(e,{attrs:t,emit:r}){let a=(0,n.inject)("buttons",[]);console.log(a.value);let o=(0,n.ref)(!1);const i=(0,n.ref)("");return(0,n.watch)(a,(t=>{const n=t?.find((t=>t.name.trim()===e.name.trim()));n&&(i.value=n.desc,o.value=!0)})),{visible:o,clickHandle:()=>{r("c-click")},buttonDesc:i}}});Ho.render=function(e,t,r,a,o,i){const s=(0,n.resolveComponent)("van-button");return e.visible?((0,n.openBlock)(),(0,n.createBlock)(s,{key:0,type:"primary",disabled:e.disabled,size:e.size,onClick:e.clickHandle},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.buttonDesc),1)])),_:1},8,["disabled","size","onClick"])):(0,n.createCommentVNode)("v-if",!0)},Ho.__file="packages/CButton/CButton.vue";Oo(Ho);var No=(0,n.defineComponent)({name:"CButtonAuth",props:{name:{required:!0,type:String}},setup(e){let t=(0,n.inject)("buttons",[]);console.log(t.value);let r=(0,n.ref)(!1);return(0,n.watch)(t,(t=>{const n=t?.find((t=>t.name.trim()===e.name.trim()));n&&(console.log(n),r.value=!0)})),{visible:r}}});const Po={key:0};No.render=function(e,t,r,a,o,i){return e.visible?((0,n.openBlock)(),(0,n.createElementBlock)("div",Po,[(0,n.renderSlot)(e.$slots,"default")])):(0,n.createCommentVNode)("v-if",!0)},No.__file="packages/CButtonAuth/CButtonAuth.vue";Oo(No);const Io={authButtons:void 0,formInfo:void 0,formParamInfo:void 0,formData:void 0,buttonData:void 0,buttonLoaded:!1,hasAuthority:!1},Ro=(wo("form",{state:()=>Io,actions:{async checkAuth(e){return new Promise((async(t,n)=>{e.formname.toLowerCase();const r=new o.EI.EIInfo;r.addBlock(new o.EI.EiBlock,"Table1").pushData(e,!0),o.EIManager.callEPService("epescheckdll",r).then((e=>{const{status:n,msg:r}=e;let a=!1;if(0!==n){const e=new Error(`${r}`);throw e.status=100401,e}{const n=e.blocks.AUTH_INFO,r=e.blocks.BUTTON_INFO,o=e.blocks.FORMPARA_INFO,i=e.blocks.FORMDLL_INFO.data,s=i.length?i[0]:void 0;if(s){const e={formName:s.NAME,formCaption:s.DESCRIPTION,formPartition:s.ABBREV,appName:s.APPNAME,formPath:s.DLLPATH,dllName:s.DLLNAME,formCallMode:s.FORM_CALL_MODE};let t=r.data.map((e=>({name:e.NAME,desc:e.DESCRIPTION,opType:e.OPTYPE})));t=[...new Map(t.map((e=>[e.name,e]))).values()];const[{DLLMARK:i}]=n.data;a=Number(i?.toString().trim())>=1;const l=o.data.length&&o.data[0];let u;if(l&&l.FORM_NAME&&""!==l.FORM_NAME.trim()){u={params:{},baseFormName:l.FORM_BASE_NAME};for(let e=1;e<=10;e++){const t=l[`PK${e}_NAME`];null!==t&&""!==t.trim()&&(u.params[l[`PK${e}_NAME`]+""]=l[`PK${e}`])}}this.$patch((n=>{n.formInfo=e,n.authButtons=t,n.hasPermission=a,n.formParamInfo=u,n.buttonLoaded=!0}))}t(a)}})).catch((e=>{n(e)}))}))},checkDll:async e=>new Promise(((t,n)=>{let r="";r=e.query?.formName?e.query?.formName:e.path.substring(e.path.lastIndexOf("/")+1);const a={formname:r&&r.toString().toUpperCase()||"",appname:(0,o.getCurrentEnvironment)().appName},i=new o.EI.EIInfo;i.addBlock(new o.EI.EiBlock,"Table1").pushData(a,!0),o.EIManager.callEPService("epescheckdll",i).then((e=>{const{status:r,msg:a}=e;0===r?t(e):n(`调用校验权限服务出现错误,${a}`)})).catch((e=>n(e)))}))}}),2e5);let Fo=0,Bo=Fo+Ro,Wo="",Vo="",zo="";class Uo{static getServerInfo(e){return new Promise(((t,n)=>{const r=new o.EI.EIInfo;r.addBlock(new o.EI.EiBlock,"Table0").pushData({CODE_CLASS:"EPTF"},!0),o.EIManager.callMasterEPService("epep01_inq3",r).then((r=>{r.blocks.EPTF.data.forEach((async r=>{if(e){if(r.CODE===e){Wo=r.CODE_DESC_1_CONTENT,Vo=r.CODE_DESC_3_CONTENT;const e={serverUrl:r.CODE_DESC_1_CONTENT,rootPath:r.CODE_DESC_3_CONTENT};t(e)}}else n("数据中没有匹配到传入的小代码号")}))})).catch((()=>{n("小代码请求失败")}))}))}static cutFile=e=>{const t=e.slice(Fo,Bo);return Fo=Bo,Bo=Fo+Ro,t};static callServerUpd=e=>{const t=(0,o.buildEIInfo)(e,"INS");o.EIManager.callMasterEPService("eptf01_ins",t).then((e=>{}))};static fileUpload=async(e,t,n,r,a,o)=>{const i=2e5;a||(a=Wo),o||(o=Vo);const s=a+"file-manager";if(r>i){const a=e.type,l=((e,t,n)=>new File([e],t,{type:n}))(e,n.substring(0,n.lastIndexOf(".")),a),u=Math.ceil(r/i),d=[];let c=!1;const m={errorCode:null,errorText:"",result:null,success:!0};for(let h=0;h<u;h++){const a=h,c=h*i,m=Math.min((h+1)*i,r);""===zo&&(zo=(new Date).valueOf());const f={destinationPathInfo:[{key:t,name:t}],chunkMetadata:{UploadId:zo,FileName:n,Index:a,TotalCount:u,FileSize:l.size}},_=l.slice(c,m),p=new FormData;p.append("command","UploadChunk"),p.append("arguments",JSON.stringify(f)),p.append("chunk",_),p.append("rootDirectory",o);try{const e=await Do().post(s,p,{headers:{"Content-Type":"multipart/form-data"}});d.push(e.data)}catch(e){return console.error("error",e),e}}for(let e=0;e<d.length;e++){if(1!=d[e].success)return c=!1,d[e];c=!0}if(1==c)return m}else{const a={destinationPathInfo:[{key:t,name:t}],chunkMetadata:{UploadId:(new Date).valueOf(),FileName:n,Index:0,TotalCount:1,FileSize:r}},i=new FormData;i.append("command","UploadChunk"),i.append("arguments",JSON.stringify(a)),i.append("chunk",e),i.append("rootDirectory",o);try{return(await Do().post(s,i,{headers:{"Content-Type":"multipart/form-data"}})).data}catch(e){return console.error("error",e),e}}};static fileDownload(e,t,n,r,a){return new Promise(((o,i)=>{n||(n=Wo),r||(r=Vo);let s="",l=0;const u={pathInfoList:[]},d={pathInfo:[{name:t,key:t}]},c=JSON.stringify(d),m=(new Date).valueOf(),h=`${n}file-manager?command=GetDirContents&arguments=${c}&_=${m}&rootDirectory=${r}`;Yo().ajax({url:h,async:!1}).then((d=>{e.forEach(((e,n)=>{let r=!1;if(d.result.forEach(((t,n)=>{e===t.name&&(r=!0)})),r){const n=(t+"/"+e).split("/"),r=[];n.forEach(((e,t)=>{const a={key:n.slice(0,t+1).join("/"),name:e};""!==a.key&&""!==a.name&&r.push(a)})),0===l?(s=e,l+=1):1===l&&(s+="等.zip",l+=1),u.pathInfoList.push(r)}else i(e+"文件不存在")}));const c=new URLSearchParams;c.append("command","Download"),c.append("arguments",JSON.stringify(u)),c.append("rootDirectory",r),Yo().ajax({url:n+"file-manager",type:"POST",data:c,contentType:"application/x-www-form-urlencoded",processData:!1,xhrFields:{responseType:"blob"},success:function(e){o(e)},error:function(e){i(e)}}).done((e=>{if(a){const t=document.createElement("a");t.style.display="none",t.href=URL.createObjectURL(e),t.setAttribute("download",decodeURI(s)),document.body.appendChild(t),t.click(),document.body.removeChild(t)}}))}))}))}static fileDelete(e,t,n,r){return new Promise(((a,o)=>{n||(n=Wo),r||(r=Vo);const i=(t+"/"+e).split("/"),s=[];i.forEach(((t,n)=>{const r={key:i.slice(0,n+1).join("/"),name:t};""!==e&&s.push(r)}));const l={pathInfo:s,isDirectory:!1},u={_:(new Date).valueOf()};Yo().ajax({url:`${n}file-manager?command=Remove&arguments=${encodeURI(JSON.stringify(l))}&rootDirectory=${r}`,type:"POST",data:JSON.stringify(u),dataType:"json",contentType:"text/plain;charset=UTF-8",processData:!1,success:function(e){e.success,a(e)},error:function(){}})}))}static filePreview(e,t,n){return new Promise(((r,a)=>{t||(t=Wo),n||(n=Vo);const o=`${t}FilePriview?rootDirectory=${n}&filePath=${e}`;r(Yo().ajax({url:o,async:!1}))}))}static getFilesInfo(e,t,n){return new Promise(((r,a)=>{t||(t=Wo),n||(n=Vo);const o={pathInfo:[{name:e,key:e}]},i=JSON.stringify(o),s=(new Date).valueOf(),l=`${t}file-manager?command=GetDirContents&arguments=${i}&_=${s}&rootDirectory=${n}`,u=Yo().ajax({url:l,async:!1}),d=u.responseJSON.result,c=n.split("/"),m=c[c.length-2],h=t.replace(/(^|\/)api\/?/,"/");d.forEach((async e=>{if(0==e.isDirectory){let t=e.name.substring(e.name.lastIndexOf(".")+1,e.length).toLowerCase();if("png"==t||"jpg"==t||"jpeg"==t||"jif"==t||"svg"==t||"pdf"==t||"bmp"==t||"psd"==t){let t=h+m+"/"+e.key;e["previewUrl"]=t}}})),r(u)}))}}const[qo,Jo]=it("swipe"),Go={loop:ut,width:lt,height:lt,vertical:Boolean,autoplay:ht(0),duration:ht(500),touchable:ut,lazyRender:Boolean,initialSwipe:ht(0),indicatorColor:String,showIndicators:ut,stopPropagation:ut},$o=Symbol(qo);var Ko=(0,n.defineComponent)({name:qo,props:Go,emits:["change"],setup(e,{emit:t,slots:r}){const a=(0,n.ref)(),o=(0,n.ref)(),i=(0,n.reactive)({rect:null,width:0,height:0,offset:0,active:0,swiping:!1}),s=mn(),{children:l,linkChildren:u}=Xt($o),d=(0,n.computed)((()=>l.length)),c=(0,n.computed)((()=>i[e.vertical?"height":"width"])),m=(0,n.computed)((()=>e.vertical?s.deltaY.value:s.deltaX.value)),h=(0,n.computed)((()=>{if(i.rect){const t=e.vertical?i.rect.height:i.rect.width;return t-c.value*d.value}return 0})),f=(0,n.computed)((()=>Math.ceil(Math.abs(h.value)/c.value))),_=(0,n.computed)((()=>d.value*c.value)),p=(0,n.computed)((()=>(i.active+d.value)%d.value)),y=(0,n.computed)((()=>{const t=e.vertical?"vertical":"horizontal";return s.direction.value===t})),g=(0,n.computed)((()=>{const t={transitionDuration:`${i.swiping?0:e.duration}ms`,transform:`translate${e.vertical?"Y":"X"}(${i.offset}px)`};if(c.value){const n=e.vertical?"height":"width",r=e.vertical?"width":"height";t[n]=`${_.value}px`,t[r]=e[r]?`${e[r]}px`:""}return t})),M=t=>{const{active:n}=i;return t?e.loop?ze(n+t,-1,d.value):ze(n+t,0,f.value):n},v=(t,n=0)=>{let r=t*c.value;e.loop||(r=Math.min(r,-h.value));let a=n-r;return e.loop||(a=ze(a,h.value,0)),a},L=({pace:n=0,offset:r=0,emitChange:a})=>{if(d.value<=1)return;const{active:o}=i,s=M(n),u=v(s,r);if(e.loop){if(l[0]&&u!==h.value){const e=u<h.value;l[0].setOffset(e?_.value:0)}if(l[d.value-1]&&0!==u){const e=u>0;l[d.value-1].setOffset(e?-_.value:0)}}i.active=s,i.offset=u,a&&s!==o&&t("change",p.value)},w=()=>{i.swiping=!0,i.active<=-1?L({pace:d.value}):i.active>=d.value&&L({pace:-d.value})},k=()=>{w(),s.reset(),zt((()=>{i.swiping=!1,L({pace:-1,emitChange:!0})}))},Y=()=>{w(),s.reset(),zt((()=>{i.swiping=!1,L({pace:1,emitChange:!0})}))};let b;const D=()=>clearTimeout(b),T=()=>{D(),e.autoplay>0&&d.value>1&&(b=setTimeout((()=>{Y(),T()}),+e.autoplay))},S=(t=+e.initialSwipe)=>{if(!a.value)return;const r=()=>{var n,r;if(!_n(a)){const t={width:a.value.offsetWidth,height:a.value.offsetHeight};i.rect=t,i.width=+(null!=(n=e.width)?n:t.width),i.height=+(null!=(r=e.height)?r:t.height)}d.value&&(t=Math.min(d.value-1,t)),i.active=t,i.swiping=!0,i.offset=v(t),l.forEach((e=>{e.setOffset(0)})),T()};_n(a)?(0,n.nextTick)().then(r):r()},A=()=>S(i.active);let x;const C=t=>{e.touchable&&(s.start(t),x=Date.now(),D(),w())},E=t=>{if(e.touchable&&i.swiping&&(s.move(t),y.value)){const n=!e.loop&&(0===i.active&&m.value>0||i.active===d.value-1&&m.value<0);n||(fn(t,e.stopPropagation),L({offset:m.value}))}},j=()=>{if(!e.touchable||!i.swiping)return;const t=Date.now()-x,n=m.value/t,r=Math.abs(n)>.25||Math.abs(m.value)>c.value/2;if(r&&y.value){const t=e.vertical?s.offsetY.value:s.offsetX.value;let n=0;n=e.loop?t>0?m.value>0?-1:1:0:-Math[m.value>0?"ceil":"floor"](m.value/c.value),L({pace:n,emitChange:!0})}else m.value&&L({pace:0});i.swiping=!1,T()},O=(t,n={})=>{w(),s.reset(),zt((()=>{let r;r=e.loop&&t===d.value?0===i.active?0:t:t%d.value,n.immediate?zt((()=>{i.swiping=!1})):i.swiping=!1,L({pace:r-i.active,emitChange:!0})}))},H=(t,r)=>{const a=r===p.value,o=a?{backgroundColor:e.indicatorColor}:void 0;return(0,n.createVNode)("i",{style:o,class:Jo("indicator",{active:a})},null)},N=()=>r.indicator?r.indicator({active:p.value,total:d.value}):e.showIndicators&&d.value>1?(0,n.createVNode)("div",{class:Jo("indicators",{vertical:e.vertical})},[Array(d.value).fill("").map(H)]):void 0;return qe({prev:k,next:Y,state:i,resize:A,swipeTo:O}),u({size:c,props:e,count:d,activeIndicator:p}),(0,n.watch)((()=>e.initialSwipe),(e=>S(+e))),(0,n.watch)(d,(()=>S(i.active))),(0,n.watch)((()=>e.autoplay),T),(0,n.watch)([pn,yn],A),(0,n.watch)(dn(),(e=>{"visible"===e?T():D()})),(0,n.onMounted)(S),(0,n.onActivated)((()=>S(i.active))),kn((()=>S(i.active))),(0,n.onDeactivated)(D),(0,n.onBeforeUnmount)(D),nn("touchmove",E,{target:o}),()=>{var t;return(0,n.createVNode)("div",{ref:a,class:Jo()},[(0,n.createVNode)("div",{ref:o,style:g.value,class:Jo("track",{vertical:e.vertical}),onTouchstartPassive:C,onTouchend:j,onTouchcancel:j},[null==(t=r.default)?void 0:t.call(r)]),N()])}}});const Zo=Ue(Ko);const[Xo,Qo]=it("image"),ei={src:String,alt:String,fit:String,position:String,round:Boolean,block:Boolean,width:lt,height:lt,radius:lt,lazyLoad:Boolean,iconSize:lt,showError:ut,errorIcon:ft("photo-fail"),iconPrefix:String,showLoading:ut,loadingIcon:ft("photo")};var ti=(0,n.defineComponent)({name:Xo,props:ei,emits:["load","error"],setup(e,{emit:t,slots:r}){const a=(0,n.ref)(!1),o=(0,n.ref)(!0),i=(0,n.ref)(),{$Lazyload:s}=(0,n.getCurrentInstance)().proxy,l=(0,n.computed)((()=>{const t={width:Ie(e.width),height:Ie(e.height)};return Te(e.radius)&&(t.overflow="hidden",t.borderRadius=Ie(e.radius)),t}));(0,n.watch)((()=>e.src),(()=>{a.value=!1,o.value=!0}));const u=e=>{o.value=!1,t("load",e)},d=e=>{a.value=!0,o.value=!1,t("error",e)},c=(t,r,a)=>a?a():(0,n.createVNode)(Ht,{name:t,size:e.iconSize,class:r,classPrefix:e.iconPrefix},null),m=()=>o.value&&e.showLoading?(0,n.createVNode)("div",{class:Qo("loading")},[c(e.loadingIcon,Qo("loading-icon"),r.loading)]):a.value&&e.showError?(0,n.createVNode)("div",{class:Qo("error")},[c(e.errorIcon,Qo("error-icon"),r.error)]):void 0,h=()=>{if(a.value||!e.src)return;const t={alt:e.alt,class:Qo("img"),style:{objectFit:e.fit,objectPosition:e.position}};return e.lazyLoad?(0,n.withDirectives)((0,n.createVNode)("img",(0,n.mergeProps)({ref:i},t),null),[[(0,n.resolveDirective)("lazy"),e.src]]):(0,n.createVNode)("img",(0,n.mergeProps)({src:e.src,onLoad:u,onError:d},t),null)},f=({el:e})=>{const t=()=>{e===i.value&&o.value&&u()};i.value?t():(0,n.nextTick)(t)},_=({el:e})=>{e!==i.value||a.value||d()};return s&&He&&(s.$on("loaded",f),s.$on("error",_),(0,n.onBeforeUnmount)((()=>{s.$off("loaded",f),s.$off("error",_)}))),()=>{var t;return(0,n.createVNode)("div",{class:Qo({round:e.round,block:e.block}),style:l.value},[h(),m(),null==(t=r.default)?void 0:t.call(r)])}}});const ni=Ue(ti);const[ri,ai]=it("swipe-item");var oi=(0,n.defineComponent)({name:ri,setup(e,{slots:t}){let r;const a=(0,n.reactive)({offset:0,inited:!1,mounted:!1}),{parent:o,index:i}=Gt($o);if(!o)return void 0;const s=(0,n.computed)((()=>{const e={},{vertical:t}=o.props;return o.size.value&&(e[t?"height":"width"]=`${o.size.value}px`),a.offset&&(e.transform=`translate${t?"Y":"X"}(${a.offset}px)`),e})),l=(0,n.computed)((()=>{const{loop:e,lazyRender:t}=o.props;if(!t||r)return!0;if(!a.mounted)return!1;const n=o.activeIndicator.value,s=o.count.value-1,l=0===n&&e?s:n-1,u=n===s&&e?0:n+1;return r=i.value===n||i.value===l||i.value===u,r})),u=e=>{a.offset=e};return(0,n.onMounted)((()=>{(0,n.nextTick)((()=>{a.mounted=!0}))})),qe({setOffset:u}),()=>{var e;return(0,n.createVNode)("div",{class:ai(),style:s.value},[l.value?null==(e=t.default)?void 0:e.call(t):null])}}});const ii=Ue(oi);const si=e=>Math.sqrt((e[0].clientX-e[1].clientX)**2+(e[0].clientY-e[1].clientY)**2),li=it("image-preview")[1];var ui=(0,n.defineComponent)({props:{src:String,show:Boolean,active:Number,minZoom:dt(lt),maxZoom:dt(lt),rootWidth:dt(Number),rootHeight:dt(Number)},emits:["scale","close"],setup(e,{emit:t,slots:r}){const a=(0,n.reactive)({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),o=mn(),i=(0,n.ref)(),s=(0,n.computed)((()=>{const{rootWidth:t,rootHeight:n}=e,r=n/t;return a.imageRatio>r})),l=(0,n.computed)((()=>{const{scale:e,moveX:t,moveY:n,moving:r,zooming:o}=a,i={transitionDuration:o||r?"0s":".3s"};if(1!==e){const r=t/e,a=n/e;i.transform=`scale(${e}, ${e}) translate(${r}px, ${a}px)`}return i})),u=(0,n.computed)((()=>{if(a.imageRatio){const{rootWidth:t,rootHeight:n}=e,r=s.value?n/a.imageRatio:t;return Math.max(0,(a.scale*r-t)/2)}return 0})),d=(0,n.computed)((()=>{if(a.imageRatio){const{rootWidth:t,rootHeight:n}=e,r=s.value?n:t*a.imageRatio;return Math.max(0,(a.scale*r-n)/2)}return 0})),c=n=>{n=ze(n,+e.minZoom,+e.maxZoom+1),n!==a.scale&&(a.scale=n,t("scale",{scale:n,index:e.active}))},m=()=>{c(1),a.moveX=0,a.moveY=0},h=()=>{const e=a.scale>1?1:2;c(e),a.moveX=0,a.moveY=0};let f,_,p,y,g,M,v;const L=e=>{const{touches:t}=e,{offsetX:n}=o;o.start(e),f=t.length,_=a.moveX,p=a.moveY,v=Date.now(),a.moving=1===f&&1!==a.scale,a.zooming=2===f&&!n.value,a.zooming&&(y=a.scale,g=si(e.touches))},w=e=>{const{touches:t}=e;if(o.move(e),(a.moving||a.zooming)&&fn(e,!0),a.moving){const{deltaX:e,deltaY:t}=o,n=e.value+_,r=t.value+p;a.moveX=ze(n,-u.value,u.value),a.moveY=ze(r,-d.value,d.value)}if(a.zooming&&2===t.length){const e=si(t),n=y*e/g;c(n)}},k=()=>{if(f>1)return;const{offsetX:e,offsetY:n}=o,r=Date.now()-v,a=250,i=5;e.value<i&&n.value<i&&r<a&&(M?(clearTimeout(M),M=null,h()):M=setTimeout((()=>{t("close"),M=null}),a))},Y=t=>{let n=!1;(a.moving||a.zooming)&&(n=!0,a.moving&&_===a.moveX&&p===a.moveY&&(n=!1),t.touches.length||(a.zooming&&(a.moveX=ze(a.moveX,-u.value,u.value),a.moveY=ze(a.moveY,-d.value,d.value),a.zooming=!1),a.moving=!1,_=0,p=0,y=1,a.scale<1&&m(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),fn(t,n),k(),o.reset()},b=e=>{const{naturalWidth:t,naturalHeight:n}=e.target;a.imageRatio=n/t};return(0,n.watch)((()=>e.active),m),(0,n.watch)((()=>e.show),(e=>{e||m()})),nn("touchmove",w,{target:(0,n.computed)((()=>{var e;return null==(e=i.value)?void 0:e.$el}))}),()=>{const t={loading:()=>(0,n.createVNode)(Fn,{type:"spinner"},null)};return(0,n.createVNode)(ii,{ref:i,class:li("swipe-item"),onTouchstartPassive:L,onTouchend:Y,onTouchcancel:Y},{default:()=>[r.image?(0,n.createVNode)("div",{class:li("image-wrap")},[r.image({src:e.src})]):(0,n.createVNode)(ni,{src:e.src,fit:"contain",class:li("image",{vertical:s.value}),style:l.value,onLoad:b},t)]})}}});const[di,ci]=it("image-preview"),mi=["show","transition","overlayStyle","closeOnPopstate"],hi={show:Boolean,loop:ut,images:ct(),minZoom:ht(1/3),maxZoom:ht(3),overlay:ut,closeable:Boolean,showIndex:ut,className:st,closeIcon:ft("clear"),transition:String,beforeClose:Function,overlayClass:st,overlayStyle:Object,swipeDuration:ht(300),startPosition:ht(0),showIndicators:Boolean,closeOnPopstate:ut,closeIconPosition:ft("top-right")};var fi=(0,n.defineComponent)({name:di,props:hi,emits:["scale","close","closed","change","update:show"],setup(e,{emit:t,slots:r}){const a=(0,n.ref)(),o=(0,n.reactive)({active:0,rootWidth:0,rootHeight:0}),i=()=>{if(a.value){const e=Jt(a.value.$el);o.rootWidth=e.width,o.rootHeight=e.height,a.value.resize()}},s=e=>t("scale",e),l=e=>t("update:show",e),u=()=>{Pt(e.beforeClose,{args:[o.active],done:()=>l(!1)})},d=e=>{e!==o.active&&(o.active=e,t("change",e))},c=()=>{if(e.showIndex)return(0,n.createVNode)("div",{class:ci("index")},[r.index?r.index({index:o.active}):`${o.active+1} / ${e.images.length}`])},m=()=>{if(r.cover)return(0,n.createVNode)("div",{class:ci("cover")},[r.cover()])},h=()=>(0,n.createVNode)(Zo,{ref:a,lazyRender:!0,loop:e.loop,class:ci("swipe"),duration:e.swipeDuration,initialSwipe:e.startPosition,showIndicators:e.showIndicators,indicatorColor:"white",onChange:d},{default:()=>[e.images.map((t=>(0,n.createVNode)(ui,{src:t,show:e.show,active:o.active,maxZoom:e.maxZoom,minZoom:e.minZoom,rootWidth:o.rootWidth,rootHeight:o.rootHeight,onScale:s,onClose:u},{image:r.image})))]}),f=()=>{if(e.closeable)return(0,n.createVNode)(Ht,{role:"button",name:e.closeIcon,class:[ci("close-icon",e.closeIconPosition),Bt],onClick:u},null)},_=()=>t("closed"),p=(e,t)=>{var n;return null==(n=a.value)?void 0:n.swipeTo(e,t)};return qe({swipeTo:p}),(0,n.onMounted)(i),(0,n.watch)([pn,yn],i),(0,n.watch)((()=>e.startPosition),(e=>d(+e))),(0,n.watch)((()=>e.show),(r=>{const{images:a,startPosition:s}=e;r?(d(+s),(0,n.nextTick)((()=>{i(),p(+s,{immediate:!0})}))):t("close",{index:o.active,url:a[o.active]})})),()=>(0,n.createVNode)(jn,(0,n.mergeProps)({class:[ci(),e.className],overlayClass:[ci("overlay"),e.overlayClass],onClosed:_,"onUpdate:show":l},Pe(e,mi)),{default:()=>[f(),h(),c(),m()]})}});let _i;const pi={loop:!0,images:[],maxZoom:3,minZoom:1/3,onScale:void 0,onClose:void 0,onChange:void 0,teleport:"body",className:"",showIndex:!0,closeable:!1,closeIcon:"clear",transition:void 0,beforeClose:void 0,overlayStyle:void 0,overlayClass:void 0,startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeIconPosition:"top-right"};function yi(){({instance:_i}=Ge({setup(){const{state:e,toggle:t}=Je(),r=()=>{e.images=[]};return()=>(0,n.createVNode)(fi,(0,n.mergeProps)(e,{onClosed:r,"onUpdate:show":t}),null)}}))}const gi=(e,t=0)=>{if(He)return _i||yi(),e=Array.isArray(e)?{images:e,startPosition:t}:e,_i.open(Oe({},pi,e)),_i};gi.Component=Ue(fi),gi.install=e=>{e.use(gi.Component)};const Mi={class:"container"},vi={key:0,class:"button-area"},Li={class:"box",style:{width:"100%",height:"100%"}},wi=["src"],ki=5242880,Yi=(0,n.defineComponent)({__name:"ermAttach",props:{recId:{type:String,require:!0},code:{type:String,require:!0},isSort:{type:Boolean,require:!1,default:!1},isOnlyPreview:{type:Boolean,require:!1,default:!1}},setup(e){let t="",r="";const a=(0,n.ref)(),o=(0,n.ref)([]);let i="";const s=(0,n.ref)(!1),l=(0,n.ref)([]),u=(0,n.ref)([]),d=(0,n.ref)([]),c=(0,n.ref)(),m=(0,n.ref)(!1),h=(0,n.ref)(!1);let f=[];(0,n.onBeforeUpdate)((()=>{d.value=[]})),(0,n.onMounted)((()=>{setTimeout((()=>{_()}),1e3)}));const _=()=>{Uo.getServerInfo(S.code).then((e=>{console.log("服务器信息:",e),console.log("isOnlyPreview",S.isOnlyPreview),er({message:"服务信息初始化成功",duration:2e3}),t=e.serverUrl,r=e.rootPath,p()})).catch((e=>{console.error("error",e),er({message:e,duration:2e3})}))},p=()=>{Uo.getFilesInfo(S.recId,t,r).then((e=>{console.log("获取文件:",e),!0===e.success?(o.value=e.result,console.log("fileInfo",o.value),S.isSort&&(console.log("排序前",o.value),o.value.reverse(),console.log("排序后",o.value)),f=[],o.value.forEach((e=>{const t=e.name.lastIndexOf("."),n=e.name.substring(t+1);"jpg"!==n&&"jpeg"!==n&&"png"!==n||(console.log("item",e),f.push(e.previewUrl))})),console.log("imgsUrl",f)):er({message:e.result,duration:0,closeOnClick:!0})}))},y=(e,n)=>{console.log("e",e),console.log("index",n);const o=L(e);if(e.previewUrl===o){const e=f.findIndex((e=>e===o));console.log("indexOfImg",e),gi(f,e)}else a.value="",Uo.filePreview(e.key,t,r).then((e=>{console.log("预览后台返回:",e),s.value=!0,a.value=e})).catch((e=>{console.error("error",e),er({message:e,closeOnClick:!0})}))},g=e=>{if(console.log("file",e),0!==e?.length&&e)if(Array.isArray(e)){const n=Array.from(e);console.log("fileArray",n),n.forEach(((e,n)=>{console.log("file",e);const a=e.file;console.log("blobData",a);const o=e.file.name,i=e.file.size;Uo.fileUpload(a,S.recId,o,i,t,r).then((e=>{console.log("文件上传:",e),!0===e.success?(er.success({message:"上传成功",duration:2e3}),p()):er.fail({message:e[0].result,closeOnClick:!0,duration:0})}))}))}else{console.log("file",e);const n=e.file;console.log("blobData",n);const a=e.file.name,o=e.file.size;Uo.fileUpload(n,S.recId,a,o,t,r).then((e=>{console.log("文件上传:",e),!0===e.success?(er.success({message:"上传成功",duration:2e3}),p()):er.fail({message:e[0].result,closeOnClick:!0,duration:0})}))}else er({message:"请选择文件",duration:2e3})},M=e=>{console.log("e",e);const n=e.name;Uo.fileDelete(n,S.recId,t,r).then((e=>{console.log("删除文件:",e),!0===e.success?(er({message:"删除成功",duration:2e3}),p()):er.fail({message:e.result,closeOnClick:!0,duration:0})}))},v=()=>{console.log("批量删除"),console.log("checkboxRefs",d),d.value.forEach(((e,t)=>{e&&e.checked.value&&(console.log("index",t),console.log(o.value[t]),M(o.value[t]))})),k()},L=e=>{console.log("item",e),console.log("item.name",e.name);const t=e.name.lastIndexOf("."),n=e.name.substring(t+1);return i="jpg"===n||"jpeg"===n||"png"===n?e.previewUrl:"doc"===n||"docx"===n?"src/assets/img/BM2A_ATTACH/docx.png":"xls"===n||"xlsx"===n?"src/assets/img/BM2A_ATTACH/xlsx.png":"ppt"===n||"pptx"===n?"src/assets/img/BM2A_ATTACH/ppt.png":"pdf"===n?"src/assets/img/BM2A_ATTACH/pdf.png":"txt"===n?"src/assets/img/BM2A_ATTACH/txt.png":"zip"===n||"rar"===n?"src/assets/img/BM2A_ATTACH/zip.png":"src/assets/img/BM2A_ATTACH/未知类型.png",i},w=e=>{const t=new Date(e),n=t.getFullYear(),r=t.getMonth()+1<10?`0${t.getMonth()+1}`:t.getMonth()+1,a=t.getDate()<10?`0${t.getDate()}`:t.getDate();return`${n}-${r}-${a}`},k=()=>{m.value?(m.value=!1,(0,n.nextTick)((()=>{l.value.forEach((e=>{e.close("left")}))}))):(m.value=!0,(0,n.nextTick)((()=>{l.value.forEach((e=>{e.open("left")}))})))},Y=()=>{console.log("checkboxGroupRef",c),console.log("isSelectAll",h.value),h.value?(c?.value.toggleAll(!1),h.value=!1):(c?.value.toggleAll(!0),h.value=!0)},b=({position:e})=>{switch(e){case"left":return!m.value;case"right":return!0;case"cell":return!1;case"outside":return!m.value}},D=async e=>{console.log(e),er.fail({message:"文件大小不能超过 "+ki/1024+"kb",closeOnClick:!0,duration:0})},T=e=>{console.log("index",e),d.value[e].toggle()};(0,n.onBeforeUpdate)((()=>{d.value=[]}));const S=e;return(e,t)=>{const r=(0,n.resolveComponent)("van-button"),i=(0,n.resolveComponent)("van-uploader"),h=(0,n.resolveComponent)("van-cell"),f=(0,n.resolveComponent)("van-card"),_=(0,n.resolveComponent)("van-checkbox"),p=(0,n.resolveComponent)("van-swipe-cell"),A=(0,n.resolveComponent)("van-checkbox-group"),x=(0,n.resolveComponent)("van-list"),C=(0,n.resolveComponent)("van-image"),E=(0,n.resolveComponent)("van-grid-item"),j=(0,n.resolveComponent)("van-grid"),O=(0,n.resolveComponent)("van-popup");return(0,n.openBlock)(),(0,n.createElementBlock)("div",Mi,[S.isOnlyPreview?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("div",vi,[(0,n.createVNode)(i,{disabled:m.value,"preview-image":!1,"after-read":g,multiple:!0,"max-size":ki,onOversize:D,accept:".jpg,.png,.jpeg,.doc,.docx,.pdf,.ppt,.pptx,.xlsx,.xls"},{default:(0,n.withCtx)((()=>[(0,n.createVNode)(r,{icon:"plus",type:"primary",size:"small",class:"button-type"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)("上传")])),_:1})])),_:1},8,["disabled"]),m.value?((0,n.openBlock)(),(0,n.createBlock)(r,{key:0,icon:"success",type:"success",size:"small",class:"button-type",onClick:Y},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)("全选")])),_:1})):(0,n.createCommentVNode)("",!0),m.value?((0,n.openBlock)(),(0,n.createBlock)(r,{key:1,icon:"minus",type:"danger",size:"small",class:"button-type",onClick:v},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)("删除")])),_:1})):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(r,{plain:"",type:"success",size:"small",class:"button-type",onClick:k},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)("批量管理")])),_:1})])),S.isOnlyPreview?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createBlock)(x,{key:1},{default:(0,n.withCtx)((()=>[(0,n.createVNode)(A,{modelValue:u.value,"onUpdate:modelValue":t[1]||(t[1]=e=>u.value=e),ref_key:"checkboxGroupRef",ref:c},{default:(0,n.withCtx)((()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(o.value,((e,a)=>((0,n.openBlock)(),(0,n.createBlock)(p,{key:a,ref_for:!0,ref_key:"swipeCell",ref:l,"before-close":b},(0,n.createSlots)({default:(0,n.withCtx)((()=>[(0,n.createVNode)(f,{desc:e.dateModified,class:"goods-card",clickable:"",onClick:e=>T(a),thumb:L(e),onClickThumb:t=>y(e,a)},{title:(0,n.withCtx)((()=>[(0,n.createVNode)(h,{class:"card-desc"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)("文件名称: "+(0,n.toDisplayString)(e.name),1)])),_:2},1024)])),desc:(0,n.withCtx)((()=>[(0,n.createVNode)(h,{class:"card-desc"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)("上传时间: "+(0,n.toDisplayString)(w(e.dateModified)),1)])),_:2},1024)])),_:2},1032,["desc","onClick","thumb","onClickThumb"])])),_:2},[m.value?{name:"left",fn:(0,n.withCtx)((()=>[(0,n.createVNode)(_,{name:e,ref_for:!0,ref:e=>d.value[a]=e,class:"slot-left",onClick:t[0]||(t[0]=(0,n.withModifiers)((()=>{}),["stop"]))},null,8,["name"])])),key:"0"}:void 0,m.value?void 0:{name:"right",fn:(0,n.withCtx)((()=>[(0,n.createVNode)(r,{text:"删除",type:"danger",class:"slot-right",onClick:t=>M(e)},null,8,["onClick"])])),key:"1"}]),1024)))),128))])),_:1},8,["modelValue"])])),_:1})),S.isOnlyPreview?((0,n.openBlock)(),(0,n.createBlock)(x,{key:2},{default:(0,n.withCtx)((()=>[(0,n.createVNode)(j,{gutter:10,border:!1,"column-num":2},{default:(0,n.withCtx)((()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(o.value,((e,t)=>((0,n.openBlock)(),(0,n.createBlock)(E,{key:t},{default:(0,n.withCtx)((()=>[(0,n.createVNode)(C,{fit:"fill",src:L(e),onClick:n=>y(e,t)},null,8,["src","onClick"])])),_:2},1024)))),128))])),_:1})])),_:1})):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",Li,[(0,n.createVNode)(O,{"v-model:show":s.value,position:"bottom",style:{height:"92%"}},{default:(0,n.withCtx)((()=>[(0,n.createElementVNode)("iframe",{src:a.value,width:"100%",height:"800",scrolling:"no",frameborder:"0"},null,8,wi)])),_:1},8,["v-model:show"])])])}}}),bi=(0,h.Z)(Yi,[["__scopeId","data-v-0a9b23b3"]]),Di=bi,Ti=(j(Di),Di);class Si{static getTableName(e){return e.value.getTableName()}static endLoad(e){return e.value.endLoad()}static selectAll(e){return e.value.selectAll()}static selectNone(e){return e.value.selectNone()}static getSelectedRows(e){return e.value.getSelectedRows()}}class Ai{static getGridData(e){return e.value.getGridData()}static getGridCellData(e,t,n){return e.value.getGridCellData(t,n)}static setGridData(e,t,n,r){return e.value.setGridData(t,n,r)}static checkRequireInput(e){return e.value.checkRequireInput()}static resetData(e){return e.value.resetData()}static mergeDataRow(e,t,n){return e.value.mergeDataRow(t,n)}static getTableName(e){return e.value.getTableName()}static addRow(e){return e.value.addRow()}static deleteRow(e,t){return e.value.deleteRow(t)}}const xi=[O,ue,Ti],Ci=e=>{xi.map((t=>{const n=t.name||t.__name;return e.component(n,t)}))},Ei={install:Ci},ji=Ei})(),a})()));
|
|
320
320
|
//# sourceMappingURL=index.umd.min.js.map
|