@soton.ac.uk/cape3 0.0.1 → 0.1.0
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/README.md +31 -31
- package/dist/cape3.es.js +6312 -0
- package/dist/cape3.umd.js +45 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/plugins/CapePlugin.d.ts +7 -0
- package/dist/plugins/CapePlugin.d.ts.map +1 -0
- package/dist/site-data.json +265 -0
- package/dist/site.css +36 -0
- package/dist/style.css +1 -0
- package/dist/styles/cape-homepage-layout.css +30 -0
- package/dist/styles/cape-navigation-tabs.css +34 -0
- package/dist/styles/defaults.css +5 -0
- package/package.json +80 -80
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
(function(Z,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(Z=typeof globalThis<"u"?globalThis:Z||self,a(Z.Cape3={},Z.Vue))})(this,function(Z,a){"use strict";var Ph=Object.defineProperty;var xh=(Z,a,ze)=>a in Z?Ph(Z,a,{enumerable:!0,configurable:!0,writable:!0,value:ze}):Z[a]=ze;var ce=(Z,a,ze)=>(xh(Z,typeof a!="symbol"?a+"":a,ze),ze);function ze(){return Cr().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Cr(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const qo=typeof Proxy=="function",Zo="devtools-plugin:setup",Ko="plugin:settings:set";let nt,bn;function Jo(){var e;return nt!==void 0||(typeof window<"u"&&window.performance?(nt=!0,bn=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(nt=!0,bn=global.perf_hooks.performance):nt=!1),nt}function Qo(){return Jo()?bn.now():Date.now()}class Xo{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const i in t.settings){const l=t.settings[i];r[i]=l.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},r);try{const i=localStorage.getItem(s),l=JSON.parse(i);Object.assign(o,l)}catch{}this.fallbacks={getSettings(){return o},setSettings(i){try{localStorage.setItem(s,JSON.stringify(i))}catch{}o=i},now(){return Qo()}},n&&n.on(Ko,(i,l)=>{i===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(i,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(i,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(d=>{this.targetQueue.push({method:l,args:c,resolve:d})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function On(e,t){const n=e,r=Cr(),s=ze(),o=qo&&n.enableEarlyProxy;if(s&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))s.emit(Zo,e,t);else{const i=o?new Xo(n,s):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*!
|
|
2
|
+
* vue-router v4.2.5
|
|
3
|
+
* (c) 2023 Eduardo San Martin Morote
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/const Me=typeof window<"u";function ea(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const $=Object.assign;function Dn(e,t){const n={};for(const r in t){const s=t[r];n[r]=ie(s)?s.map(e):e(s)}return n}const kt=()=>{},ie=Array.isArray;function x(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const ta=/\/$/,na=e=>e.replace(ta,"");function Nn(e,t,n="/"){let r,s={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l<c&&l>=0&&(c=-1),c>-1&&(r=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),s=e(o)),l>-1&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=oa(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:i}}function ra(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Tr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Pr(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Le(t.matched[r],n.matched[s])&&xr(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Le(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function xr(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!sa(e[n],t[n]))return!1;return!0}function sa(e,t){return ie(e)?Vr(e,t):ie(t)?Vr(t,e):e===t}function Vr(e,t){return ie(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function oa(e,t){if(e.startsWith("/"))return e;if(process.env.NODE_ENV!=="production"&&!t.startsWith("/"))return x(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,l;for(i=0;i<r.length;i++)if(l=r[i],l!==".")if(l==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var St;(function(e){e.pop="pop",e.push="push"})(St||(St={}));var vt;(function(e){e.back="back",e.forward="forward",e.unknown=""})(vt||(vt={}));function aa(e){if(!e)if(Me){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),na(e)}const ia=/^[^#]+#/;function la(e,t){return e.replace(ia,"#")+t}function ca(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Bt=()=>({left:window.pageXOffset,top:window.pageYOffset});function ua(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#");if(process.env.NODE_ENV!=="production"&&typeof e.el=="string"&&(!r||!document.getElementById(e.el.slice(1))))try{const o=document.querySelector(e.el);if(r&&o){x(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{x(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s){process.env.NODE_ENV!=="production"&&x(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=ca(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Ir(e,t){return(history.state?history.state.position-t:-1)+e}const Mn=new Map;function da(e,t){Mn.set(e,t)}function fa(e){const t=Mn.get(e);return Mn.delete(e),t}let ha=()=>location.protocol+"//"+location.host;function Yr(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let l=s.includes(e.slice(o))?e.slice(o).length:1,c=s.slice(l);return c[0]!=="/"&&(c="/"+c),Tr(c,"")}return Tr(n,e)+r+s}function ma(e,t,n,r){let s=[],o=[],i=null;const l=({state:f})=>{const _=Yr(e,location),b=n.value,B=t.value;let F=0;if(f){if(n.value=_,t.value=f,i&&i===b){i=null;return}F=B?f.position-B.position:0}else r(_);s.forEach(N=>{N(n.value,b,{delta:F,type:St.pop,direction:F?F>0?vt.forward:vt.back:vt.unknown})})};function c(){i=n.value}function d(f){s.push(f);const _=()=>{const b=s.indexOf(f);b>-1&&s.splice(b,1)};return o.push(_),_}function u(){const{history:f}=window;f.state&&f.replaceState($({},f.state,{scroll:Bt()}),"")}function h(){for(const f of o)f();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:c,listen:d,destroy:h}}function $r(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Bt():null}}function pa(e){const{history:t,location:n}=window,r={value:Yr(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,d,u){const h=e.indexOf("#"),f=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:ha()+e+c;try{t[u?"replaceState":"pushState"](d,"",f),s.value=d}catch(_){process.env.NODE_ENV!=="production"?x("Error with push/replace State",_):console.error(_),n[u?"replace":"assign"](f)}}function i(c,d){const u=$({},t.state,$r(s.value.back,c,s.value.forward,!0),d,{position:s.value.position});o(c,u,!0),r.value=c}function l(c,d){const u=$({},s.value,t.state,{forward:c,scroll:Bt()});process.env.NODE_ENV!=="production"&&!t.state&&x(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
|
|
6
|
+
|
|
7
|
+
history.replaceState(history.state, '', url)
|
|
8
|
+
|
|
9
|
+
You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.`),o(u.current,u,!0);const h=$({},$r(r.value,c,null),{position:u.position+1},d);o(c,h,!1),r.value=c}return{location:r,state:s,push:l,replace:i}}function _a(e){e=aa(e);const t=pa(e),n=ma(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=$({location:"",base:e,go:r,createHref:la.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function ya(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),process.env.NODE_ENV!=="production"&&!e.endsWith("#/")&&!e.endsWith("#")&&x(`A hash base must end with a "#":
|
|
10
|
+
"${e}" should be "${e.replace(/#.*$/,"#")}".`),_a(e)}function ga(e){return typeof e=="string"||e&&typeof e=="object"}function Ar(e){return typeof e=="string"||typeof e=="symbol"}const We={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Rn=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Fr;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Fr||(Fr={}));const wa={1({location:e,currentLocation:t}){return`No match for
|
|
11
|
+
${JSON.stringify(e)}${t?`
|
|
12
|
+
while being at
|
|
13
|
+
`+JSON.stringify(t):""}`},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${Sa(t)}" via a navigation guard.`},4({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},8({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},16({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function rt(e,t){return process.env.NODE_ENV!=="production"?$(new Error(wa[e](t)),{type:e,[Rn]:!0},t):$(new Error,{type:e,[Rn]:!0},t)}function Re(e,t){return e instanceof Error&&Rn in e&&(t==null||!!(e.type&t))}const ka=["params","query","hash"];function Sa(e){if(typeof e=="string")return e;if("path"in e)return e.path;const t={};for(const n of ka)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const Lr="[^/]+?",va={sensitive:!1,strict:!1,start:!0,end:!0},Ea=/[.+*?^${}()[\]/\\]/g;function ba(e,t){const n=$({},va,t),r=[];let s=n.start?"^":"";const o=[];for(const d of e){const u=d.length?[]:[90];n.strict&&!d.length&&(s+="/");for(let h=0;h<d.length;h++){const f=d[h];let _=40+(n.sensitive?.25:0);if(f.type===0)h||(s+="/"),s+=f.value.replace(Ea,"\\$&"),_+=40;else if(f.type===1){const{value:b,repeatable:B,optional:F,regexp:N}=f;o.push({name:b,repeatable:B,optional:F});const R=N||Lr;if(R!==Lr){_+=10;try{new RegExp(`(${R})`)}catch(te){throw new Error(`Invalid custom RegExp for param "${b}" (${R}): `+te.message)}}let G=B?`((?:${R})(?:/(?:${R}))*)`:`(${R})`;h||(G=F&&d.length<2?`(?:/${G})`:"/"+G),F&&(G+="?"),s+=G,_+=20,F&&(_+=-8),B&&(_+=-20),R===".*"&&(_+=-50)}u.push(_)}r.push(u)}if(n.strict&&n.end){const d=r.length-1;r[d][r[d].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&(s+="(?:/|$)");const i=new RegExp(s,n.sensitive?"":"i");function l(d){const u=d.match(i),h={};if(!u)return null;for(let f=1;f<u.length;f++){const _=u[f]||"",b=o[f-1];h[b.name]=_&&b.repeatable?_.split("/"):_}return h}function c(d){let u="",h=!1;for(const f of e){(!h||!u.endsWith("/"))&&(u+="/"),h=!1;for(const _ of f)if(_.type===0)u+=_.value;else if(_.type===1){const{value:b,repeatable:B,optional:F}=_,N=b in d?d[b]:"";if(ie(N)&&!B)throw new Error(`Provided param "${b}" is an array but it is not repeatable (* or + modifiers)`);const R=ie(N)?N.join("/"):N;if(!R)if(F)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):h=!0);else throw new Error(`Missing required param "${b}"`);u+=R}}return u||"/"}return{re:i,score:r,keys:o,parse:l,stringify:c}}function Oa(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Da(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const o=Oa(r[n],s[n]);if(o)return o;n++}if(Math.abs(s.length-r.length)===1){if(Wr(r))return 1;if(Wr(s))return-1}return s.length-r.length}function Wr(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Na={type:0,value:""},Ma=/[a-zA-Z0-9_]/;function Ra(e){if(!e)return[[]];if(e==="/")return[[Na]];if(!e.startsWith("/"))throw new Error(process.env.NODE_ENV!=="production"?`Route paths should start with a "/": "${e}" should be "/${e}".`:`Invalid path "${e}"`);function t(_){throw new Error(`ERR (${n})/"${d}": ${_}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let l=0,c,d="",u="";function h(){d&&(n===0?o.push({type:0,value:d}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:d,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),d="")}function f(){d+=c}for(;l<e.length;){if(c=e[l++],c==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:c==="/"?(d&&h(),i()):c===":"?(h(),n=1):f();break;case 4:f(),n=r;break;case 1:c==="("?n=2:Ma.test(c)?f():(h(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case 2:c===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:h(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&l--,u="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${d}"`),h(),i(),s}function Ca(e,t,n){const r=ba(Ra(e.path),n);if(process.env.NODE_ENV!=="production"){const o=new Set;for(const i of r.keys)o.has(i.name)&&x(`Found duplicated params with name "${i.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),o.add(i.name)}const s=$(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function Ta(e,t){const n=[],r=new Map;t=jr({strict:!1,end:!0,sensitive:!1},t);function s(u){return r.get(u)}function o(u,h,f){const _=!f,b=Pa(u);process.env.NODE_ENV!=="production"&&Ya(b,h),b.aliasOf=f&&f.record;const B=jr(t,u),F=[b];if("alias"in u){const G=typeof u.alias=="string"?[u.alias]:u.alias;for(const te of G)F.push($({},b,{components:f?f.record.components:b.components,path:te,aliasOf:f?f.record:b}))}let N,R;for(const G of F){const{path:te}=G;if(h&&te[0]!=="/"){const me=h.record.path,pe=me[me.length-1]==="/"?"":"/";G.path=h.record.path+(te&&pe+te)}if(process.env.NODE_ENV!=="production"&&G.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
|
|
14
|
+
See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);if(N=Ca(G,h,B),process.env.NODE_ENV!=="production"&&h&&te[0]==="/"&&$a(N,h),f?(f.alias.push(N),process.env.NODE_ENV!=="production"&&Ia(f,N)):(R=R||N,R!==N&&R.alias.push(N),_&&u.name&&!Br(N)&&i(u.name)),b.children){const me=b.children;for(let pe=0;pe<me.length;pe++)o(me[pe],N,f&&f.children[pe])}f=f||N,(N.record.components&&Object.keys(N.record.components).length||N.record.name||N.record.redirect)&&c(N)}return R?()=>{i(R)}:kt}function i(u){if(Ar(u)){const h=r.get(u);h&&(r.delete(u),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(u);h>-1&&(n.splice(h,1),u.record.name&&r.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function l(){return n}function c(u){let h=0;for(;h<n.length&&Da(u,n[h])>=0&&(u.record.path!==n[h].record.path||!Hr(u,n[h]));)h++;n.splice(h,0,u),u.record.name&&!Br(u)&&r.set(u.record.name,u)}function d(u,h){let f,_={},b,B;if("name"in u&&u.name){if(f=r.get(u.name),!f)throw rt(1,{location:u});if(process.env.NODE_ENV!=="production"){const R=Object.keys(u.params||{}).filter(G=>!f.keys.find(te=>te.name===G));R.length&&x(`Discarded invalid param(s) "${R.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}B=f.record.name,_=$(Ur(h.params,f.keys.filter(R=>!R.optional).map(R=>R.name)),u.params&&Ur(u.params,f.keys.map(R=>R.name))),b=f.stringify(_)}else if("path"in u)b=u.path,process.env.NODE_ENV!=="production"&&!b.startsWith("/")&&x(`The Matcher cannot resolve relative paths but received "${b}". Unless you directly called \`matcher.resolve("${b}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),f=n.find(R=>R.re.test(b)),f&&(_=f.parse(b),B=f.record.name);else{if(f=h.name?r.get(h.name):n.find(R=>R.re.test(h.path)),!f)throw rt(1,{location:u,currentLocation:h});B=f.record.name,_=$({},h.params,u.params),b=f.stringify(_)}const F=[];let N=f;for(;N;)F.unshift(N.record),N=N.parent;return{name:B,path:b,params:_,matched:F,meta:Va(F)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:d,removeRoute:i,getRoutes:l,getRecordMatcher:s}}function Ur(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Pa(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:xa(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function xa(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Br(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Va(e){return e.reduce((t,n)=>$(t,n.meta),{})}function jr(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Cn(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function Ia(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(Cn.bind(null,n)))return x(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const n of t.keys)if(!n.optional&&!e.keys.find(Cn.bind(null,n)))return x(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function Ya(e,t){t&&t.record.name&&!e.name&&!e.path&&x(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function $a(e,t){for(const n of t.keys)if(!e.keys.find(Cn.bind(null,n)))return x(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function Hr(e,t){return t.children.some(n=>n===e||Hr(e,n))}const Gr=/#/g,Aa=/&/g,Fa=/\//g,La=/=/g,Wa=/\?/g,zr=/\+/g,Ua=/%5B/g,Ba=/%5D/g,qr=/%5E/g,ja=/%60/g,Zr=/%7B/g,Ha=/%7C/g,Kr=/%7D/g,Ga=/%20/g;function Tn(e){return encodeURI(""+e).replace(Ha,"|").replace(Ua,"[").replace(Ba,"]")}function za(e){return Tn(e).replace(Zr,"{").replace(Kr,"}").replace(qr,"^")}function Pn(e){return Tn(e).replace(zr,"%2B").replace(Ga,"+").replace(Gr,"%23").replace(Aa,"%26").replace(ja,"`").replace(Zr,"{").replace(Kr,"}").replace(qr,"^")}function qa(e){return Pn(e).replace(La,"%3D")}function Za(e){return Tn(e).replace(Gr,"%23").replace(Wa,"%3F")}function Ka(e){return e==null?"":Za(e).replace(Fa,"%2F")}function Et(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&x(`Error decoding "${e}". Using original value`)}return""+e}function Ja(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<r.length;++s){const o=r[s].replace(zr," "),i=o.indexOf("="),l=Et(i<0?o:o.slice(0,i)),c=i<0?null:Et(o.slice(i+1));if(l in t){let d=t[l];ie(d)||(d=t[l]=[d]),d.push(c)}else t[l]=c}return t}function Jr(e){let t="";for(let n in e){const r=e[n];if(n=qa(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(ie(r)?r.map(o=>o&&Pn(o)):[r&&Pn(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Qa(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ie(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const Xa=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Qr=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),xn=Symbol(process.env.NODE_ENV!=="production"?"router":""),Vn=Symbol(process.env.NODE_ENV!=="production"?"route location":""),In=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function bt(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ue(e,t,n,r,s){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((i,l)=>{const c=h=>{h===!1?l(rt(4,{from:n,to:t})):h instanceof Error?l(h):ga(h)?l(rt(2,{from:t,to:h})):(o&&r.enterCallbacks[s]===o&&typeof h=="function"&&o.push(h),i())},d=e.call(r&&r.instances[s],t,n,process.env.NODE_ENV!=="production"?ei(c,t,n):c);let u=Promise.resolve(d);if(e.length<3&&(u=u.then(c)),process.env.NODE_ENV!=="production"&&e.length>2){const h=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:
|
|
15
|
+
${e.toString()}
|
|
16
|
+
. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof d=="object"&&"then"in d)u=u.then(f=>c._called?f:(x(h),Promise.reject(new Error("Invalid navigation guard"))));else if(d!==void 0&&!c._called){x(h),l(new Error("Invalid navigation guard"));return}}u.catch(h=>l(h))})}function ei(e,t,n){let r=0;return function(){r++===1&&x(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,r===1&&e.apply(null,arguments)}}function Yn(e,t,n,r){const s=[];for(const o of e){process.env.NODE_ENV!=="production"&&!o.components&&!o.children.length&&x(`Record with path "${o.path}" is either missing a "component(s)" or "children" property.`);for(const i in o.components){let l=o.components[i];if(process.env.NODE_ENV!=="production"){if(!l||typeof l!="object"&&typeof l!="function")throw x(`Component "${i}" in record with path "${o.path}" is not a valid component. Received "${String(l)}".`),new Error("Invalid route component");if("then"in l){x(`Component "${i}" in record with path "${o.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const c=l;l=()=>c}else l.__asyncLoader&&!l.__warnedDefineAsync&&(l.__warnedDefineAsync=!0,x(`Component "${i}" in record with path "${o.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(ti(l)){const d=(l.__vccOpts||l)[t];d&&s.push(Ue(d,n,r,o,i))}else{let c=l();process.env.NODE_ENV!=="production"&&!("catch"in c)&&(x(`Component "${i}" in record with path "${o.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),c=Promise.resolve(c)),s.push(()=>c.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const u=ea(d)?d.default:d;o.components[i]=u;const f=(u.__vccOpts||u)[t];return f&&Ue(f,n,r,o,i)()}))}}}return s}function ti(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Xr(e){const t=a.inject(xn),n=a.inject(Vn),r=a.computed(()=>t.resolve(a.unref(e.to))),s=a.computed(()=>{const{matched:c}=r.value,{length:d}=c,u=c[d-1],h=n.matched;if(!u||!h.length)return-1;const f=h.findIndex(Le.bind(null,u));if(f>-1)return f;const _=es(c[d-2]);return d>1&&es(u)===_&&h[h.length-1].path!==_?h.findIndex(Le.bind(null,c[d-2])):f}),o=a.computed(()=>s.value>-1&&si(n.params,r.value.params)),i=a.computed(()=>s.value>-1&&s.value===n.matched.length-1&&xr(n.params,r.value.params));function l(c={}){return ri(c)?t[a.unref(e.replace)?"replace":"push"](a.unref(e.to)).catch(kt):Promise.resolve()}if(process.env.NODE_ENV!=="production"&&Me){const c=a.getCurrentInstance();if(c){const d={route:r.value,isActive:o.value,isExactActive:i.value};c.__vrl_devtools=c.__vrl_devtools||[],c.__vrl_devtools.push(d),a.watchEffect(()=>{d.route=r.value,d.isActive=o.value,d.isExactActive=i.value},{flush:"post"})}}return{route:r,href:a.computed(()=>r.value.href),isActive:o,isExactActive:i,navigate:l}}const ni=a.defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Xr,setup(e,{slots:t}){const n=a.reactive(Xr(e)),{options:r}=a.inject(xn),s=a.computed(()=>({[ts(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ts(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:a.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}});function ri(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){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 si(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!ie(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function es(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ts=(e,t,n)=>e??t??n,oi=a.defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){process.env.NODE_ENV!=="production"&&ii();const r=a.inject(In),s=a.computed(()=>e.route||r.value),o=a.inject(Qr,0),i=a.computed(()=>{let d=a.unref(o);const{matched:u}=s.value;let h;for(;(h=u[d])&&!h.components;)d++;return d}),l=a.computed(()=>s.value.matched[i.value]);a.provide(Qr,a.computed(()=>i.value+1)),a.provide(Xa,l),a.provide(In,s);const c=a.ref();return a.watch(()=>[c.value,l.value,e.name],([d,u,h],[f,_,b])=>{u&&(u.instances[h]=d,_&&_!==u&&d&&d===f&&(u.leaveGuards.size||(u.leaveGuards=_.leaveGuards),u.updateGuards.size||(u.updateGuards=_.updateGuards))),d&&u&&(!_||!Le(u,_)||!f)&&(u.enterCallbacks[h]||[]).forEach(B=>B(d))},{flush:"post"}),()=>{const d=s.value,u=e.name,h=l.value,f=h&&h.components[u];if(!f)return ns(n.default,{Component:f,route:d});const _=h.props[u],b=_?_===!0?d.params:typeof _=="function"?_(d):_:null,B=N=>{N.component.isUnmounted&&(h.instances[u]=null)},F=a.h(f,$({},b,t,{onVnodeUnmounted:B,ref:c}));if(process.env.NODE_ENV!=="production"&&Me&&F.ref){const N={depth:i.value,name:h.name,path:h.path,meta:h.meta};(ie(F.ref)?F.ref.map(G=>G.i):[F.ref.i]).forEach(G=>{G.__vrv_devtools=N})}return ns(n.default,{Component:F,route:d})||F}}});function ns(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ai=oi;function ii(){const e=a.getCurrentInstance(),t=e.parent&&e.parent.type.name,n=e.parent&&e.parent.subTree&&e.parent.subTree.type;if(t&&(t==="KeepAlive"||t.includes("Transition"))&&typeof n=="object"&&n.name==="RouterView"){const r=t==="KeepAlive"?"keep-alive":"transition";x(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
|
|
17
|
+
Use slot props instead:
|
|
18
|
+
|
|
19
|
+
<router-view v-slot="{ Component }">
|
|
20
|
+
<${r}>
|
|
21
|
+
<component :is="Component" />
|
|
22
|
+
</${r}>
|
|
23
|
+
</router-view>`)}}function Ot(e,t){const n=$({},e,{matched:e.matched.map(r=>_i(r,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function jt(e){return{_custom:{display:e}}}let li=0;function ci(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const r=li++;On({id:"org.vuejs.router"+(r?"."+r:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},s=>{typeof s.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),s.on.inspectComponent((u,h)=>{u.instanceData&&u.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Ot(t.currentRoute.value,"Current Route")})}),s.on.visitComponentTree(({treeNode:u,componentInstance:h})=>{if(h.__vrv_devtools){const f=h.__vrv_devtools;u.tags.push({label:(f.name?`${f.name.toString()}: `:"")+f.path,textColor:0,tooltip:"This component is rendered by <router-view>",backgroundColor:rs})}ie(h.__vrl_devtools)&&(h.__devtoolsApi=s,h.__vrl_devtools.forEach(f=>{let _=as,b="";f.isExactActive?(_=os,b="This is exactly active"):f.isActive&&(_=ss,b="This link is active"),u.tags.push({label:f.route.path,textColor:0,tooltip:b,backgroundColor:_})}))}),a.watch(t.currentRoute,()=>{c(),s.notifyComponentUpdate(),s.sendInspectorTree(l),s.sendInspectorState(l)});const o="router:navigations:"+r;s.addTimelineLayer({id:o,label:`Router${r?" "+r:""} Navigations`,color:4237508}),t.onError((u,h)=>{s.addTimelineEvent({layerId:o,event:{title:"Error during Navigation",subtitle:h.fullPath,logType:"error",time:s.now(),data:{error:u},groupId:h.meta.__navigationId}})});let i=0;t.beforeEach((u,h)=>{const f={guard:jt("beforeEach"),from:Ot(h,"Current Location during this navigation"),to:Ot(u,"Target location")};Object.defineProperty(u.meta,"__navigationId",{value:i++}),s.addTimelineEvent({layerId:o,event:{time:s.now(),title:"Start of navigation",subtitle:u.fullPath,data:f,groupId:u.meta.__navigationId}})}),t.afterEach((u,h,f)=>{const _={guard:jt("afterEach")};f?(_.failure={_custom:{type:Error,readOnly:!0,display:f?f.message:"",tooltip:"Navigation Failure",value:f}},_.status=jt("❌")):_.status=jt("✅"),_.from=Ot(h,"Current Location during this navigation"),_.to=Ot(u,"Target location"),s.addTimelineEvent({layerId:o,event:{title:"End of navigation",subtitle:u.fullPath,time:s.now(),data:_,logType:f?"warning":"default",groupId:u.meta.__navigationId}})});const l="router-inspector:"+r;s.addInspector({id:l,label:"Routes"+(r?" "+r:""),icon:"book",treeFilterPlaceholder:"Search routes"});function c(){if(!d)return;const u=d;let h=n.getRoutes().filter(f=>!f.parent||!f.parent.record.components);h.forEach(cs),u.filter&&(h=h.filter(f=>$n(f,u.filter.toLowerCase()))),h.forEach(f=>ls(f,t.currentRoute.value)),u.rootNodes=h.map(is)}let d;s.on.getInspectorTree(u=>{d=u,u.app===e&&u.inspectorId===l&&c()}),s.on.getInspectorState(u=>{if(u.app===e&&u.inspectorId===l){const f=n.getRoutes().find(_=>_.record.__vd_id===u.nodeId);f&&(u.state={options:di(f)})}}),s.sendInspectorTree(l),s.sendInspectorState(l)})}function ui(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function di(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(r=>`${r.name}${ui(r)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(r=>r.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(r=>r.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const rs=15485081,ss=2450411,os=8702998,fi=2282478,as=16486972,hi=6710886;function is(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:fi}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:as}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:rs}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:os}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:ss}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:hi});let r=n.__vd_id;return r==null&&(r=String(mi++),n.__vd_id=r),{id:r,label:n.path,tags:t,children:e.children.map(is)}}let mi=0;const pi=/^\/(.*)\/([a-z]*)$/;function ls(e,t){const n=t.matched.length&&Le(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(r=>Le(r,e.record))),e.children.forEach(r=>ls(r,t))}function cs(e){e.__vd_match=!1,e.children.forEach(cs)}function $n(e,t){const n=String(e.re).match(pi);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach(i=>$n(i,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const s=e.record.path.toLowerCase(),o=Et(s);return!t.startsWith("/")&&(o.includes(t)||s.includes(t))||o.startsWith(t)||s.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(i=>$n(i,t))}function _i(e,t){const n={};for(const r in e)t.includes(r)||(n[r]=e[r]);return n}function yi(e){const t=Ta(e.routes,e),n=e.parseQuery||Ja,r=e.stringifyQuery||Jr,s=e.history;if(process.env.NODE_ENV!=="production"&&!s)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');const o=bt(),i=bt(),l=bt(),c=a.shallowRef(We);let d=We;Me&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Dn.bind(null,m=>""+m),h=Dn.bind(null,Ka),f=Dn.bind(null,Et);function _(m,k){let g,v;return Ar(m)?(g=t.getRecordMatcher(m),v=k):v=m,t.addRoute(v,g)}function b(m){const k=t.getRecordMatcher(m);k?t.removeRoute(k):process.env.NODE_ENV!=="production"&&x(`Cannot remove non-existent route "${String(m)}"`)}function B(){return t.getRoutes().map(m=>m.record)}function F(m){return!!t.getRecordMatcher(m)}function N(m,k){if(k=$({},k||c.value),typeof m=="string"){const C=Nn(n,m,k.path),z=t.resolve({path:C.path},k),tt=s.createHref(C.fullPath);return process.env.NODE_ENV!=="production"&&(tt.startsWith("//")?x(`Location "${m}" resolved to "${tt}". A resolved location cannot start with multiple slashes.`):z.matched.length||x(`No match found for location with path "${m}"`)),$(C,z,{params:f(z.params),hash:Et(C.hash),redirectedFrom:void 0,href:tt})}let g;if("path"in m)process.env.NODE_ENV!=="production"&&"params"in m&&!("name"in m)&&Object.keys(m.params).length&&x(`Path "${m.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),g=$({},m,{path:Nn(n,m.path,k.path).path});else{const C=$({},m.params);for(const z in C)C[z]==null&&delete C[z];g=$({},m,{params:h(C)}),k.params=h(k.params)}const v=t.resolve(g,k),A=m.hash||"";process.env.NODE_ENV!=="production"&&A&&!A.startsWith("#")&&x(`A \`hash\` should always start with the character "#". Replace "${A}" with "#${A}".`),v.params=u(f(v.params));const K=ra(r,$({},m,{hash:za(A),path:v.path})),P=s.createHref(K);return process.env.NODE_ENV!=="production"&&(P.startsWith("//")?x(`Location "${m}" resolved to "${P}". A resolved location cannot start with multiple slashes.`):v.matched.length||x(`No match found for location with path "${"path"in m?m.path:m}"`)),$({fullPath:K,hash:A,query:r===Jr?Qa(m.query):m.query||{}},v,{redirectedFrom:void 0,href:P})}function R(m){return typeof m=="string"?Nn(n,m,c.value.path):$({},m)}function G(m,k){if(d!==m)return rt(8,{from:k,to:m})}function te(m){return D(m)}function me(m){return te($(R(m),{replace:!0}))}function pe(m){const k=m.matched[m.matched.length-1];if(k&&k.redirect){const{redirect:g}=k;let v=typeof g=="function"?g(m):g;if(typeof v=="string"&&(v=v.includes("?")||v.includes("#")?v=R(v):{path:v},v.params={}),process.env.NODE_ENV!=="production"&&!("path"in v)&&!("name"in v))throw x(`Invalid redirect found:
|
|
24
|
+
${JSON.stringify(v,null,2)}
|
|
25
|
+
when navigating to "${m.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return $({query:m.query,hash:m.hash,params:"path"in v?{}:m.params},v)}}function D(m,k){const g=d=N(m),v=c.value,A=m.state,K=m.force,P=m.replace===!0,C=pe(g);if(C)return D($(R(C),{state:typeof C=="object"?$({},A,C.state):A,force:K,replace:P}),k||g);const z=g;z.redirectedFrom=k;let tt;return!K&&Pr(r,v,g)&&(tt=rt(16,{to:z,from:v}),Go(v,v,!0,!1)),(tt?Promise.resolve(tt):O(z,v)).catch(oe=>Re(oe)?Re(oe,2)?oe:Nr(oe):se(oe,z,v)).then(oe=>{if(oe){if(Re(oe,2))return process.env.NODE_ENV!=="production"&&Pr(r,N(oe.to),z)&&k&&(k._count=k._count?k._count+1:1)>30?(x(`Detected a possibly infinite redirection in a navigation guard when going from "${v.fullPath}" to "${z.fullPath}". Aborting to avoid a Stack Overflow.
|
|
26
|
+
Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):D($({replace:P},R(oe.to),{state:typeof oe.to=="object"?$({},A,oe.to.state):A,force:K}),k||z)}else oe=j(z,v,!0,P,A);return S(z,v,oe),oe})}function Ho(m,k){const g=G(m,k);return g?Promise.reject(g):Promise.resolve()}function Se(m){const k=En.values().next().value;return k&&typeof k.runWithContext=="function"?k.runWithContext(m):m()}function O(m,k){let g;const[v,A,K]=gi(m,k);g=Yn(v.reverse(),"beforeRouteLeave",m,k);for(const C of v)C.leaveGuards.forEach(z=>{g.push(Ue(z,m,k))});const P=Ho.bind(null,m,k);return g.push(P),wt(g).then(()=>{g=[];for(const C of o.list())g.push(Ue(C,m,k));return g.push(P),wt(g)}).then(()=>{g=Yn(A,"beforeRouteUpdate",m,k);for(const C of A)C.updateGuards.forEach(z=>{g.push(Ue(z,m,k))});return g.push(P),wt(g)}).then(()=>{g=[];for(const C of K)if(C.beforeEnter)if(ie(C.beforeEnter))for(const z of C.beforeEnter)g.push(Ue(z,m,k));else g.push(Ue(C.beforeEnter,m,k));return g.push(P),wt(g)}).then(()=>(m.matched.forEach(C=>C.enterCallbacks={}),g=Yn(K,"beforeRouteEnter",m,k),g.push(P),wt(g))).then(()=>{g=[];for(const C of i.list())g.push(Ue(C,m,k));return g.push(P),wt(g)}).catch(C=>Re(C,8)?C:Promise.reject(C))}function S(m,k,g){l.list().forEach(v=>Se(()=>v(m,k,g)))}function j(m,k,g,v,A){const K=G(m,k);if(K)return K;const P=k===We,C=Me?history.state:{};g&&(v||P?s.replace(m.fullPath,$({scroll:P&&C&&C.scroll},A)):s.push(m.fullPath,A)),c.value=m,Go(m,k,g,P),Nr()}let X;function et(){X||(X=s.listen((m,k,g)=>{if(!zo.listening)return;const v=N(m),A=pe(v);if(A){D($(A,{replace:!0}),v).catch(kt);return}d=v;const K=c.value;Me&&da(Ir(K.fullPath,g.delta),Bt()),O(v,K).catch(P=>Re(P,12)?P:Re(P,2)?(D(P.to,v).then(C=>{Re(C,20)&&!g.delta&&g.type===St.pop&&s.go(-1,!1)}).catch(kt),Promise.reject()):(g.delta&&s.go(-g.delta,!1),se(P,v,K))).then(P=>{P=P||j(v,K,!1),P&&(g.delta&&!Re(P,8)?s.go(-g.delta,!1):g.type===St.pop&&Re(P,20)&&s.go(-1,!1)),S(v,K,P)}).catch(kt)}))}let Ut=bt(),vn=bt(),Ne;function se(m,k,g){Nr(m);const v=vn.list();return v.length?v.forEach(A=>A(m,k,g)):(process.env.NODE_ENV!=="production"&&x("uncaught error during route navigation:"),console.error(m)),Promise.reject(m)}function Th(){return Ne&&c.value!==We?Promise.resolve():new Promise((m,k)=>{Ut.add([m,k])})}function Nr(m){return Ne||(Ne=!m,et(),Ut.list().forEach(([k,g])=>m?g(m):k()),Ut.reset()),m}function Go(m,k,g,v){const{scrollBehavior:A}=e;if(!Me||!A)return Promise.resolve();const K=!g&&fa(Ir(m.fullPath,0))||(v||!g)&&history.state&&history.state.scroll||null;return a.nextTick().then(()=>A(m,k,K)).then(P=>P&&ua(P)).catch(P=>se(P,m,k))}const Mr=m=>s.go(m);let Rr;const En=new Set,zo={currentRoute:c,listening:!0,addRoute:_,removeRoute:b,hasRoute:F,getRoutes:B,resolve:N,options:e,push:te,replace:me,go:Mr,back:()=>Mr(-1),forward:()=>Mr(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:vn.add,isReady:Th,install(m){const k=this;m.component("RouterLink",ni),m.component("RouterView",ai),m.config.globalProperties.$router=k,Object.defineProperty(m.config.globalProperties,"$route",{enumerable:!0,get:()=>a.unref(c)}),Me&&!Rr&&c.value===We&&(Rr=!0,te(s.location).catch(A=>{process.env.NODE_ENV!=="production"&&x("Unexpected error when starting the router:",A)}));const g={};for(const A in We)Object.defineProperty(g,A,{get:()=>c.value[A],enumerable:!0});m.provide(xn,k),m.provide(Vn,a.shallowReactive(g)),m.provide(In,c);const v=m.unmount;En.add(m),m.unmount=function(){En.delete(m),En.size<1&&(d=We,X&&X(),X=null,c.value=We,Rr=!1,Ne=!1),v()},process.env.NODE_ENV!=="production"&&Me&&ci(m,k,t)}};function wt(m){return m.reduce((k,g)=>k.then(()=>Se(g)),Promise.resolve())}return zo}function gi(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const l=t.matched[i];l&&(e.matched.find(d=>Le(d,l))?r.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(d=>Le(d,c))||s.push(c))}return[n,r,s]}function wi(){return a.inject(Vn)}var us=!1;function Ht(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function An(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}/*!
|
|
27
|
+
* pinia v2.1.7
|
|
28
|
+
* (c) 2023 Eduardo San Martin Morote
|
|
29
|
+
* @license MIT
|
|
30
|
+
*/let Dt;const Nt=e=>Dt=e,ds=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function qe(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ve;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ve||(ve={}));const Gt=typeof window<"u",Mt=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&Gt,fs=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function ki(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(["\uFEFF",e],{type:e.type}):e}function Fn(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){ps(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function hs(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function zt(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{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 qt=typeof navigator=="object"?navigator:{userAgent:""},ms=/Macintosh/.test(qt.userAgent)&&/AppleWebKit/.test(qt.userAgent)&&!/Safari/.test(qt.userAgent),ps=Gt?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!ms?Si:"msSaveOrOpenBlob"in qt?vi:Ei:()=>{};function Si(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener",typeof e=="string"?(r.href=e,r.origin!==location.origin?hs(r.href)?Fn(e,t,n):(r.target="_blank",zt(r)):zt(r)):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){zt(r)},0))}function vi(e,t="download",n){if(typeof e=="string")if(hs(e))Fn(e,t,n);else{const r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){zt(r)})}else navigator.msSaveOrOpenBlob(ki(e,n),t)}function Ei(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return Fn(e,t,n);const s=e.type==="application/octet-stream",o=/constructor/i.test(String(fs.HTMLElement))||"safari"in fs,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||s&&o||ms)&&typeof FileReader<"u"){const l=new FileReader;l.onloadend=function(){let c=l.result;if(typeof c!="string")throw r=null,new Error("Wrong reader.result type");c=i?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=c:location.assign(c),r=null},l.readAsDataURL(e)}else{const l=URL.createObjectURL(e);r?r.location.assign(l):location.href=l,r=null,setTimeout(function(){URL.revokeObjectURL(l)},4e4)}}function ee(e,t){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function Ln(e){return"_a"in e&&"install"in e}function _s(){if(!("clipboard"in navigator))return ee("Your browser doesn't support the Clipboard API","error"),!0}function ys(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(ee('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function bi(e){if(!_s())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),ee("Global state copied to clipboard.")}catch(t){if(ys(t))return;ee("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function Oi(e){if(!_s())try{gs(e,JSON.parse(await navigator.clipboard.readText())),ee("Global state pasted from clipboard.")}catch(t){if(ys(t))return;ee("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function Di(e){try{ps(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){ee("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let Ce;function Ni(){Ce||(Ce=document.createElement("input"),Ce.type="file",Ce.accept=".json");function e(){return new Promise((t,n)=>{Ce.onchange=async()=>{const r=Ce.files;if(!r)return t(null);const s=r.item(0);return t(s?{text:await s.text(),file:s}:null)},Ce.oncancel=()=>t(null),Ce.onerror=n,Ce.click()})}return e}async function Mi(e){try{const n=await Ni()();if(!n)return;const{text:r,file:s}=n;gs(e,JSON.parse(r)),ee(`Global state imported from "${s.name}".`)}catch(t){ee("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function gs(e,t){for(const n in t){const r=e.state.value[n];r?Object.assign(r,t[n]):e.state.value[n]=t[n]}}function _e(e){return{_custom:{display:e}}}const ws="🍍 Pinia (root)",Wn="_root";function Ri(e){return Ln(e)?{id:Wn,label:ws}:{id:e.$id,label:e.$id}}function Ci(e){if(Ln(e)){const n=Array.from(e._s.keys()),r=e._s;return{state:n.map(o=>({editable:!0,key:o,value:e.state.value[o]})),getters:n.filter(o=>r.get(o)._getters).map(o=>{const i=r.get(o);return{editable:!1,key:o,value:i._getters.reduce((l,c)=>(l[c]=i[c],l),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function Ti(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:_e(e.type),key:_e(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Pi(e){switch(e){case ve.direct:return"mutation";case ve.patchFunction:return"$patch";case ve.patchObject:return"$patch";default:return"unknown"}}let st=!0;const Zt=[],Ze="pinia:mutations",ne="pinia",{assign:xi}=Object,Kt=e=>"🍍 "+e;function Vi(e,t){On({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Zt,app:e},n=>{typeof n.now!="function"&&ee("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:Ze,label:"Pinia 🍍",color:15064968}),n.addInspector({id:ne,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{bi(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Oi(t),n.sendInspectorTree(ne),n.sendInspectorState(ne)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Di(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Mi(t),n.sendInspectorTree(ne),n.sendInspectorState(ne)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const s=t._s.get(r);s?typeof s.$reset!="function"?ee(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(s.$reset(),ee(`Store "${r}" reset.`)):ee(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,s)=>{const o=r.componentInstance&&r.componentInstance.proxy;if(o&&o._pStores){const i=r.componentInstance.proxy._pStores;Object.values(i).forEach(l=>{r.instanceData.state.push({type:Kt(l.$id),key:"state",editable:!0,value:l._isOptionsAPI?{_custom:{value:a.toRaw(l.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>l.$reset()}]}}:Object.keys(l.$state).reduce((c,d)=>(c[d]=l.$state[d],c),{})}),l._getters&&l._getters.length&&r.instanceData.state.push({type:Kt(l.$id),key:"getters",editable:!1,value:l._getters.reduce((c,d)=>{try{c[d]=l[d]}catch(u){c[d]=u}return c},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===e&&r.inspectorId===ne){let s=[t];s=s.concat(Array.from(t._s.values())),r.rootNodes=(r.filter?s.filter(o=>"$id"in o?o.$id.toLowerCase().includes(r.filter.toLowerCase()):ws.toLowerCase().includes(r.filter.toLowerCase())):s).map(Ri)}}),n.on.getInspectorState(r=>{if(r.app===e&&r.inspectorId===ne){const s=r.nodeId===Wn?t:t._s.get(r.nodeId);if(!s)return;s&&(r.state=Ci(s))}}),n.on.editInspectorState((r,s)=>{if(r.app===e&&r.inspectorId===ne){const o=r.nodeId===Wn?t:t._s.get(r.nodeId);if(!o)return ee(`store "${r.nodeId}" not found`,"error");const{path:i}=r;Ln(o)?i.unshift("state"):(i.length!==1||!o._customProperties.has(i[0])||i[0]in o.$state)&&i.unshift("$state"),st=!1,r.set(o,i,r.state.value),st=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const s=r.type.replace(/^🍍\s*/,""),o=t._s.get(s);if(!o)return ee(`store "${s}" not found`,"error");const{path:i}=r;if(i[0]!=="state")return ee(`Invalid path for store "${s}":
|
|
31
|
+
${i}
|
|
32
|
+
Only state can be modified.`);i[0]="$state",st=!1,r.set(o,i,r.state.value),st=!0}})})}function Ii(e,t){Zt.includes(Kt(t.$id))||Zt.push(Kt(t.$id)),On({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Zt,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const r=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:i,onError:l,name:c,args:d})=>{const u=ks++;n.addTimelineEvent({layerId:Ze,event:{time:r(),title:"🛫 "+c,subtitle:"start",data:{store:_e(t.$id),action:_e(c),args:d},groupId:u}}),i(h=>{Be=void 0,n.addTimelineEvent({layerId:Ze,event:{time:r(),title:"🛬 "+c,subtitle:"end",data:{store:_e(t.$id),action:_e(c),args:d,result:h},groupId:u}})}),l(h=>{Be=void 0,n.addTimelineEvent({layerId:Ze,event:{time:r(),logType:"error",title:"💥 "+c,subtitle:"end",data:{store:_e(t.$id),action:_e(c),args:d,error:h},groupId:u}})})},!0),t._customProperties.forEach(i=>{a.watch(()=>a.unref(t[i]),(l,c)=>{n.notifyComponentUpdate(),n.sendInspectorState(ne),st&&n.addTimelineEvent({layerId:Ze,event:{time:r(),title:"Change",subtitle:i,data:{newValue:l,oldValue:c},groupId:Be}})},{deep:!0})}),t.$subscribe(({events:i,type:l},c)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(ne),!st)return;const d={time:r(),title:Pi(l),data:xi({store:_e(t.$id)},Ti(i)),groupId:Be};l===ve.patchFunction?d.subtitle="⤵️":l===ve.patchObject?d.subtitle="🧩":i&&!Array.isArray(i)&&(d.subtitle=i.type),i&&(d.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:Ze,event:d})},{detached:!0,flush:"sync"});const s=t._hotUpdate;t._hotUpdate=a.markRaw(i=>{s(i),n.addTimelineEvent({layerId:Ze,event:{time:r(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:_e(t.$id),info:_e("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(ne),n.sendInspectorState(ne)});const{$dispose:o}=t;t.$dispose=()=>{o(),n.notifyComponentUpdate(),n.sendInspectorTree(ne),n.sendInspectorState(ne),n.getSettings().logStoreChanges&&ee(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(ne),n.sendInspectorState(ne),n.getSettings().logStoreChanges&&ee(`"${t.$id}" store installed 🆕`)})}let ks=0,Be;function Ss(e,t,n){const r=t.reduce((s,o)=>(s[o]=a.toRaw(e)[o],s),{});for(const s in r)e[s]=function(){const o=ks,i=n?new Proxy(e,{get(...c){return Be=o,Reflect.get(...c)},set(...c){return Be=o,Reflect.set(...c)}}):e;Be=o;const l=r[s].apply(i,arguments);return Be=void 0,l}}function Yi({app:e,store:t,options:n}){if(t.$id.startsWith("__hot:"))return;t._isOptionsAPI=!!n.state,Ss(t,Object.keys(n.actions),t._isOptionsAPI);const r=t._hotUpdate;a.toRaw(t)._hotUpdate=function(s){r.apply(this,arguments),Ss(t,Object.keys(s._hmrPayload.actions),!!t._isOptionsAPI)},Ii(e,t)}function $i(){const e=a.effectScope(!0),t=e.run(()=>a.ref({}));let n=[],r=[];const s=a.markRaw({install(o){Nt(s),s._a=o,o.provide(ds,s),o.config.globalProperties.$pinia=s,Mt&&Vi(o,s),r.forEach(i=>n.push(i)),r=[]},use(o){return!this._a&&!us?r.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return Mt&&typeof Proxy<"u"&&s.use(Yi),s}function vs(e,t){for(const n in t){const r=t[n];if(!(n in e))continue;const s=e[n];qe(s)&&qe(r)&&!a.isRef(r)&&!a.isReactive(r)?e[n]=vs(s,r):e[n]=r}return e}const Es=()=>{};function bs(e,t,n,r=Es){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&a.getCurrentScope()&&a.onScopeDispose(s),s}function ot(e,...t){e.slice().forEach(n=>{n(...t)})}const Ai=e=>e();function Un(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];qe(s)&&qe(r)&&e.hasOwnProperty(n)&&!a.isRef(r)&&!a.isReactive(r)?e[n]=Un(s,r):e[n]=r}return e}const Fi=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Li(e){return!qe(e)||!e.hasOwnProperty(Fi)}const{assign:ue}=Object;function Os(e){return!!(a.isRef(e)&&e.effect)}function Ds(e,t,n,r){const{state:s,actions:o,getters:i}=t,l=n.state.value[e];let c;function d(){!l&&(process.env.NODE_ENV==="production"||!r)&&(n.state.value[e]=s?s():{});const u=process.env.NODE_ENV!=="production"&&r?a.toRefs(a.ref(s?s():{}).value):a.toRefs(n.state.value[e]);return ue(u,o,Object.keys(i||{}).reduce((h,f)=>(process.env.NODE_ENV!=="production"&&f in u&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`),h[f]=a.markRaw(a.computed(()=>{Nt(n);const _=n._s.get(e);return i[f].call(_,_)})),h),{}))}return c=Bn(e,d,t,n,r,!0),c}function Bn(e,t,n={},r,s,o){let i;const l=ue({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const c={deep:!0};process.env.NODE_ENV!=="production"&&!us&&(c.onTrigger=O=>{d?_=O:d==!1&&!D._hotUpdating&&(Array.isArray(_)?_.push(O):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let d,u,h=[],f=[],_;const b=r.state.value[e];!o&&!b&&(process.env.NODE_ENV==="production"||!s)&&(r.state.value[e]={});const B=a.ref({});let F;function N(O){let S;d=u=!1,process.env.NODE_ENV!=="production"&&(_=[]),typeof O=="function"?(O(r.state.value[e]),S={type:ve.patchFunction,storeId:e,events:_}):(Un(r.state.value[e],O),S={type:ve.patchObject,payload:O,storeId:e,events:_});const j=F=Symbol();a.nextTick().then(()=>{F===j&&(d=!0)}),u=!0,ot(h,S,r.state.value[e])}const R=o?function(){const{state:S}=n,j=S?S():{};this.$patch(X=>{ue(X,j)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Es;function G(){i.stop(),h=[],f=[],r._s.delete(e)}function te(O,S){return function(){Nt(r);const j=Array.from(arguments),X=[],et=[];function Ut(se){X.push(se)}function vn(se){et.push(se)}ot(f,{args:j,name:O,store:D,after:Ut,onError:vn});let Ne;try{Ne=S.apply(this&&this.$id===e?this:D,j)}catch(se){throw ot(et,se),se}return Ne instanceof Promise?Ne.then(se=>(ot(X,se),se)).catch(se=>(ot(et,se),Promise.reject(se))):(ot(X,Ne),Ne)}}const me=a.markRaw({actions:{},getters:{},state:[],hotState:B}),pe={_p:r,$id:e,$onAction:bs.bind(null,f),$patch:N,$reset:R,$subscribe(O,S={}){const j=bs(h,O,S.detached,()=>X()),X=i.run(()=>a.watch(()=>r.state.value[e],et=>{(S.flush==="sync"?u:d)&&O({storeId:e,type:ve.direct,events:_},et)},ue({},c,S)));return j},$dispose:G},D=a.reactive(process.env.NODE_ENV!=="production"||Mt?ue({_hmrPayload:me,_customProperties:a.markRaw(new Set)},pe):pe);r._s.set(e,D);const Se=(r._a&&r._a.runWithContext||Ai)(()=>r._e.run(()=>(i=a.effectScope()).run(t)));for(const O in Se){const S=Se[O];if(a.isRef(S)&&!Os(S)||a.isReactive(S))process.env.NODE_ENV!=="production"&&s?Ht(B.value,O,a.toRef(Se,O)):o||(b&&Li(S)&&(a.isRef(S)?S.value=b[O]:Un(S,b[O])),r.state.value[e][O]=S),process.env.NODE_ENV!=="production"&&me.state.push(O);else if(typeof S=="function"){const j=process.env.NODE_ENV!=="production"&&s?S:te(O,S);Se[O]=j,process.env.NODE_ENV!=="production"&&(me.actions[O]=S),l.actions[O]=S}else process.env.NODE_ENV!=="production"&&Os(S)&&(me.getters[O]=o?n.getters[O]:S,Gt&&(Se._getters||(Se._getters=a.markRaw([]))).push(O))}if(ue(D,Se),ue(a.toRaw(D),Se),Object.defineProperty(D,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?B.value:r.state.value[e],set:O=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");N(S=>{ue(S,O)})}}),process.env.NODE_ENV!=="production"&&(D._hotUpdate=a.markRaw(O=>{D._hotUpdating=!0,O._hmrPayload.state.forEach(S=>{if(S in D.$state){const j=O.$state[S],X=D.$state[S];typeof j=="object"&&qe(j)&&qe(X)?vs(j,X):O.$state[S]=X}Ht(D,S,a.toRef(O.$state,S))}),Object.keys(D.$state).forEach(S=>{S in O.$state||An(D,S)}),d=!1,u=!1,r.state.value[e]=a.toRef(O._hmrPayload,"hotState"),u=!0,a.nextTick().then(()=>{d=!0});for(const S in O._hmrPayload.actions){const j=O[S];Ht(D,S,te(S,j))}for(const S in O._hmrPayload.getters){const j=O._hmrPayload.getters[S],X=o?a.computed(()=>(Nt(r),j.call(D,D))):j;Ht(D,S,X)}Object.keys(D._hmrPayload.getters).forEach(S=>{S in O._hmrPayload.getters||An(D,S)}),Object.keys(D._hmrPayload.actions).forEach(S=>{S in O._hmrPayload.actions||An(D,S)}),D._hmrPayload=O._hmrPayload,D._getters=O._getters,D._hotUpdating=!1})),Mt){const O={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(S=>{Object.defineProperty(D,S,ue({value:D[S]},O))})}return r._p.forEach(O=>{if(Mt){const S=i.run(()=>O({store:D,app:r._a,pinia:r,options:l}));Object.keys(S||{}).forEach(j=>D._customProperties.add(j)),ue(D,S)}else ue(D,i.run(()=>O({store:D,app:r._a,pinia:r,options:l})))}),process.env.NODE_ENV!=="production"&&D.$state&&typeof D.$state=="object"&&typeof D.$state.constructor=="function"&&!D.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
33
|
+
state: () => new MyClass()
|
|
34
|
+
Found in store "${D.$id}".`),b&&o&&n.hydrate&&n.hydrate(D.$state,b),d=!0,u=!0,D}function at(e,t,n){let r,s;const o=typeof t=="function";if(typeof e=="string")r=e,s=o?n:t;else if(s=e,r=e.id,process.env.NODE_ENV!=="production"&&typeof r!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function i(l,c){const d=a.hasInjectionContext();if(l=(process.env.NODE_ENV==="test"&&Dt&&Dt._testing?null:l)||(d?a.inject(ds,null):null),l&&Nt(l),process.env.NODE_ENV!=="production"&&!Dt)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
35
|
+
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
36
|
+
This will fail in production.`);l=Dt,l._s.has(r)||(o?Bn(r,t,s,l):Ds(r,s,l),process.env.NODE_ENV!=="production"&&(i._pinia=l));const u=l._s.get(r);if(process.env.NODE_ENV!=="production"&&c){const h="__hot:"+r,f=o?Bn(h,t,s,l,!0):Ds(h,ue({},s),l,!0);c._hotUpdate(f),delete l.state.value[h],l._s.delete(h)}if(process.env.NODE_ENV!=="production"&&Gt){const h=a.getCurrentInstance();if(h&&h.proxy&&!c){const f=h.proxy,_="_pStores"in f?f._pStores:f._pStores={};_[r]=u}}return u}return i.$id=r,i}class Wi extends Error{constructor(t){super(`The filter '${t}' was not found.`)}}const J=at("filter",()=>{const e=a.ref(!1),t=a.ref([]),n=a.computed(()=>t.value),r=a.computed(()=>n.value.length),s=f=>{t.value.push(f)},o=()=>{t.value=[]};function i(){t.value.forEach(f=>f.reset())}const l=a.computed(()=>u.value.filter(f=>!f.isDefault())),c=a.computed(()=>l.value.length>0),d=a.computed(()=>t.value.sort((f,_)=>f.displayPosition<_.displayPosition?-1:f.displayPosition>_.displayPosition?1:0)),u=a.computed(()=>e.value===!0?d.value:d.value.filter(f=>f.display==="quick"));return{showAdvanced:e,filters:t,all:n,count:r,active:l,hasActive:c,forDisplay:u,byId:f=>{const _=t.value.find(b=>b.id===f);if(_===void 0)throw new Wi(f);return _},reset:i,add:s,clear:o}}),Ns={template:"#templateCapeHomepageLayout",computed:{filterIsActive:()=>J().hasActive,showAllFilters:()=>J().showAdvanced}},Ui={class:"cape-home-page"},Ms=a.defineComponent({__name:"CapeHomePage",setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("form",Ui,[a.createVNode(Ns)]))}});class Bi extends Error{constructor(t){super(`The record ${t} was not found.`)}}const Jt=at("records",()=>{const e=a.ref([]),t=a.computed(()=>e.value.length),n=a.computed(()=>e.value);function r(o){const i=e.value.find(l=>l.record_number.value===o);if(i===void 0)throw new Bi(o);return i}function s(o){e.value=o}return{all:n,count:t,byId:r,set:s,records:e}}),Rs={template:"#templateCapeRecordCard",props:["record"]},ji={key:0,class:"cape-record-page-record-not-found"},Hi={class:"cape-record-page-record-id"},Cs=a.defineComponent({__name:"CapeRecordPage",setup(e){const t=wi(),n=Jt(),r=a.computed(()=>parseInt(t.params.id)),s=a.computed(()=>{try{return n.byId(r.value)}catch{return}});return(o,i)=>s.value===void 0?(a.openBlock(),a.createElementBlock("div",ji,[a.createTextVNode("The record with Record ID "),a.createElementVNode("span",Hi,a.toDisplayString(r.value),1),a.createTextVNode(" does not exist.")])):(a.openBlock(),a.createBlock(Rs,{key:1,record:s.value},null,8,["record"]))}}),Gi=yi({history:ya("/"),routes:[{name:"root",path:"/",component:Ms},{name:"record",path:"/record/:id",component:Cs}],linkActiveClass:"active",linkExactActiveClass:"active"}),Ts={template:"#templateCapeNavigation"},it={SourceDataFile:"./site-data.json",UnknownEnvironment:"UNKNOWN",ShortenedRecordCount:50};class Ps extends Error{constructor(n,r){super(n);ce(this,"innerError");r&&(this.innerError=r)}}class zi{async getData(){try{const t=await fetch(it.SourceDataFile);if(!t.ok)throw new Ps(`Response status not OK. StatusCode: "${t.status}". StatusText: ${t.statusText} `);return await t.json()}catch(t){throw console.error(t),new Ps("Failed to read source data.",t)}}}class Rt extends Error{constructor(t){super(`The field ${t} was not found.`)}}const Qt=at("fields",()=>{const e=Ct(),t=a.computed(()=>{var s;return((s=e.dataset)==null?void 0:s.fields)??[]}),n=a.computed(()=>t.value.length);function r(s){const o=t.value.find(i=>i.id===s);if(o===void 0)throw new Rt(s);return o}return{all:t,count:n,byId:r}});function qi(e){const t={},n=Qt();return Object.keys(e).sort().forEach(r=>{if(n.byId(r)===void 0)throw new Rt(r)}),n.all.forEach(r=>{t[r.id]={value:e[r.id],field:r}}),t}function Zi(e){return e.map(t=>qi(t))}const Ct=at("dataset",()=>{const e=a.ref(!1),t=a.ref(""),n=a.ref(!1),r=a.ref();async function s(){try{e.value=!0;const i=new zi;r.value=await i.getData(),n.value=!0,Jt().set(Zi(r.value.records))}catch{t.value="Failed to fetch site-data.json from the website root. Ensure the file exists and is in the expected CapeDataSet format."}finally{e.value=!1}}const o=a.computed(()=>t.value!=""?"ERROR":e.value?"LOADING":n.value?"OK":"EMPTY");return{errorMessage:t,status:o,loadData:s,dataset:r}}),Ki={class:"cape-load-error cape-error"},Ji=a.createElementVNode("h2",null,"Unable to load data",-1),Qi={class:"cape-load-error-message"},xs=a.defineComponent({__name:"CapeLoadError",setup(e){const t=Ct();return(n,r)=>(a.openBlock(),a.createElementBlock("div",Ki,[Ji,a.createElementVNode("p",null,[a.createTextVNode("An error has occurred. The error was: "),a.createElementVNode("span",Qi,a.toDisplayString(a.unref(t).errorMessage),1),a.createTextVNode(".")])]))}});function Vs(e){const t={A:"[AaªÀ-Åà-åĀ-ąǍǎȀ-ȃȦȧᴬᵃḀḁẚẠ-ảₐ℀℁℻⒜Ⓐⓐ㍱-㍴㎀-㎄㎈㎉㎩-㎯㏂㏊㏟㏿Aa]",B:"[BbᴮᵇḂ-ḇℬ⒝Ⓑⓑ㍴㎅-㎇㏃㏈㏔㏝Bb]",C:"[CcÇçĆ-čᶜ℀ℂ℃℅℆ℭⅭⅽ⒞Ⓒⓒ㍶㎈㎉㎝㎠㎤㏄-㏇Cc]",D:"[DdĎďDŽ-džDZ-dzᴰᵈḊ-ḓⅅⅆⅮⅾ⒟Ⓓⓓ㋏㍲㍷-㍹㎗㎭-㎯㏅㏈Dd]",E:"[EeÈ-Ëè-ëĒ-ěȄ-ȇȨȩᴱᵉḘ-ḛẸ-ẽₑ℡ℯℰⅇ⒠Ⓔⓔ㉐㋍㋎Ee]",F:"[FfᶠḞḟ℉ℱ℻⒡Ⓕⓕ㎊-㎌㎙ff-fflFf]",G:"[GgĜ-ģǦǧǴǵᴳᵍḠḡℊ⒢Ⓖⓖ㋌㋍㎇㎍-㎏㎓㎬㏆㏉㏒㏿Gg]",H:"[HhĤĥȞȟʰᴴḢ-ḫẖℋ-ℎ⒣Ⓗⓗ㋌㍱㎐-㎔㏊㏋㏗Hh]",I:"[IiÌ-Ïì-ïĨ-İIJijǏǐȈ-ȋᴵᵢḬḭỈ-ịⁱℐℑℹⅈⅠ-ⅣⅥ-ⅨⅪⅫⅰ-ⅳⅵ-ⅸⅺⅻ⒤Ⓘⓘ㍺㏌㏕fiffiIi]",J:"[JjIJ-ĵLJ-njǰʲᴶⅉ⒥ⒿⓙⱼJj]",K:"[KkĶķǨǩᴷᵏḰ-ḵK⒦Ⓚⓚ㎄㎅㎉㎏㎑㎘㎞㎢㎦㎪㎸㎾㏀㏆㏍-㏏Kk]",L:"[LlĹ-ŀLJ-ljˡᴸḶḷḺ-ḽℒℓ℡Ⅼⅼ⒧Ⓛⓛ㋏㎈㎉㏐-㏓㏕㏖㏿flfflLl]",M:"[MmᴹᵐḾ-ṃ℠™ℳⅯⅿ⒨Ⓜⓜ㍷-㍹㎃㎆㎎㎒㎖㎙-㎨㎫㎳㎷㎹㎽㎿㏁㏂㏎㏐㏔-㏖㏘㏙㏞㏟Mm]",N:"[NnÑñŃ-ʼnNJ-njǸǹᴺṄ-ṋⁿℕ№⒩Ⓝⓝ㎁㎋㎚㎱㎵㎻㏌㏑Nn]",O:"[OoºÒ-Öò-öŌ-őƠơǑǒǪǫȌ-ȏȮȯᴼᵒỌ-ỏₒ℅№ℴ⒪Ⓞⓞ㍵㏇㏒㏖Oo]",P:"[PpᴾᵖṔ-ṗℙ⒫Ⓟⓟ㉐㍱㍶㎀㎊㎩-㎬㎰㎴㎺㏋㏗-㏚Pp]",Q:"[Qqℚ⒬Ⓠⓠ㏃Qq]",R:"[RrŔ-řȐ-ȓʳᴿᵣṘ-ṛṞṟ₨ℛ-ℝ⒭Ⓡⓡ㋍㍴㎭-㎯㏚㏛Rr]",S:"[SsŚ-šſȘșˢṠ-ṣ₨℁℠⒮Ⓢⓢ㎧㎨㎮-㎳㏛㏜stSs]",T:"[TtŢ-ťȚțᵀᵗṪ-ṱẗ℡™⒯Ⓣⓣ㉐㋏㎔㏏ſtstTt]",U:"[UuÙ-Üù-üŨ-ųƯưǓǔȔ-ȗᵁᵘᵤṲ-ṷỤ-ủ℆⒰Ⓤⓤ㍳㍺Uu]",V:"[VvᵛᵥṼ-ṿⅣ-Ⅷⅳ-ⅷ⒱Ⓥⓥⱽ㋎㍵㎴-㎹㏜㏞Vv]",W:"[WwŴŵʷᵂẀ-ẉẘ⒲Ⓦⓦ㎺-㎿㏝Ww]",X:"[XxˣẊ-ẍₓ℻Ⅸ-Ⅻⅸ-ⅻ⒳Ⓧⓧ㏓Xx]",Y:"[YyÝýÿŶ-ŸȲȳʸẎẏẙỲ-ỹ⒴Ⓨⓨ㏉Yy]",Z:"[ZzŹ-žDZ-dzᶻẐ-ẕℤℨ⒵Ⓩⓩ㎐-㎔Zz]"},n=e.replace(/([|()[{.+*?^$\\])/g,"\\$1"),r=function(o){return t[o.toUpperCase()]??o},s=n.replace(/\S/g,r);return new RegExp(s,"g")}class jn{constructor(t,n,r,s){this.id=t,this.componentId=n,this.displayPosition=r,this.display=s}filterRecords(t){return t.filter(n=>this.matchesRecord(n))}matchesRecord(t){throw new Error("matchesRecord or filterRecords must be overridden!")}}function Xt(e){return Array.isArray(e)?e:[e]}class Xi extends jn{constructor(n,r,s,o,i,l){super(n,r,s,o);ce(this,"term");ce(this,"defaultTerm");ce(this,"placeholder");this.defaultTerm=i,this.placeholder=l,this.term=this.defaultTerm}reset(){this.term=this.defaultTerm}isDefault(){return this.term===this.defaultTerm}matchesRecord(n){return this.term===void 0||this.term.trim()===""?!1:this.term.trim().toLowerCase().split(/\s+/).every(s=>{const o=Vs(s);return this.termRegexpMatchesRecord(o,n)})}termRegexpMatchesRecord(n,r){return Object.values(r).some(s=>this.termRegexpMatchesValue(n,s.value))}termRegexpMatchesValue(n,r){return Xt(r).some(o=>`${o}`.match(n))}}class Is extends jn{constructor(t,n,r,s,o){super(t,n,r,s),this.field=o}matchesRecord(t){const n=t[this.field.id].value;return this.matchesValue(n)}}function el(e,t){if(e===void 0||e==="")return!1;const n=t.trim().toLowerCase().split(/\s+/),r=Xt(e);return n.every(s=>{const o=Vs(s);return r.some(i=>`${i}`.match(o))})}function Hn(e){return!(e===""||e===void 0||Array.isArray(e)&&e.length===0)}function Ys(e){return!Hn(e)}function tl(e,t){return e===""||e===void 0?!1:Xt(e).find(s=>`${s}`.trim().toLowerCase()===t.trim().toLowerCase())!==void 0}class nl extends Is{constructor(n,r,s,o,i,l,c,d){super(n,r,s,o,i);ce(this,"term");ce(this,"defaultTerm");ce(this,"mode");ce(this,"defaultMode");ce(this,"userCanSelectMode");this.defaultMode=c,this.defaultTerm=l,this.userCanSelectMode=d,this.mode=this.defaultMode,this.term=this.defaultTerm}reset(){this.mode=this.defaultMode,this.term=this.defaultTerm}isDefault(){return this.mode===this.defaultMode&&this.term===this.defaultTerm}matchesValue(n){switch(this.mode){case"contains":return el(n,this.term);case"is":return tl(n,this.term);case"set":return Hn(n);case"notSet":return Ys(n)}}}function $s(e,t){return e===""||e===void 0?!1:Xt(e).find(s=>`${s}`===t)!==void 0}function rl(e,t){return t.find(r=>$s(e,r))!==void 0}class sl extends Is{constructor(n,r,s,o,i,l,c,d,u){super(n,r,s,o,i);ce(this,"isTerm");ce(this,"oneOfTerms");ce(this,"mode");this.defaultIsTerm=l,this.defaultOneOfTerms=c,this.defaultMode=d,this.userCanSelectMode=u,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.oneOfTerms=this.defaultOneOfTerms}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.oneOfTerms=this.defaultOneOfTerms}isDefault(){return this.mode===this.defaultMode&&this.isTerm===this.defaultIsTerm&&this.oneOfTerms.toString()===this.defaultOneOfTerms.toString()}matchesValue(n){switch(this.mode){case"oneOf":return rl(n,this.oneOfTerms);case"is":return $s(n,this.isTerm);case"set":return Hn(n);case"notSet":return Ys(n)}}}function ol(e){al(),il(),ll(),dl(e)}function al(){J().clear()}function il(){J().add(new Xi("free-text","CapeFilterFreeText",-100,"quick","","free text search"))}function ll(){const e=Qt();let t=0;e.all.forEach(n=>{if(n.filterDisplay==="hide")return;const r=n.filterDisplay??"advanced";switch(t+=100,n.type){case"text":cl(t,n,r);break;case"enum":ul(t,n,r);break}})}function cl(e,t,n){J().add(new nl("field-"+t.id,"CapeFilterFieldText",e,n,t,"","contains",!0))}function ul(e,t,n){J().add(new sl("field-"+t.id,"CapeFilterFieldEnum",e,n,t,"",[],"is",!0))}function dl(e){const t=J();e.forEach(n=>t.add(n))}const As=a.defineComponent({__name:"CapeRoot",async setup(e){let t,n;const r=Ct();[t,n]=a.withAsyncContext(()=>r.loadData()),await t,n();const s=a.inject("capeOptions");return ol(s.additionalFilters??[]),(o,i)=>(a.openBlock(),a.createElementBlock("div",null,[a.unref(r).status==="ERROR"?(a.openBlock(),a.createBlock(xs,{key:0})):a.createCommentVNode("",!0),a.unref(r).status=="OK"?(a.openBlock(),a.createBlock(Ts,{key:1})):a.createCommentVNode("",!0)]))}}),fl={class:"cape-record-count"},hl=a.defineComponent({__name:"CapeRecordCount",setup(e){const t=Jt();return(n,r)=>(a.openBlock(),a.createElementBlock("span",fl,a.toDisplayString(a.unref(t).count),1))}}),ml={__name:"CapeAdvancedSearchToggle",setup(e){const t=J();return(n,r)=>a.withDirectives((a.openBlock(),a.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=s=>a.unref(t).showAdvanced=s),type:"checkbox",class:"cape-advanced-search-toggle"},null,512)),[[a.vModelCheckbox,a.unref(t).showAdvanced]])}},pl={class:"cape-filters"},_l=a.defineComponent({__name:"CapeFilters",setup(e){const t=J();return(n,r)=>(a.openBlock(),a.createElementBlock("div",pl,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(t).forDisplay,s=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s.componentId),{key:s,filterId:s.id},null,8,["filterId"]))),128))]))}}),Gn=at("properties",()=>{var c;const e=Qt(),n=(c=Ct().dataset)==null?void 0:c.properties,r=a.computed(()=>(n==null?void 0:n.extraPages)??[]),s=a.computed(()=>(n==null?void 0:n.metadata)??void 0),o=a.computed(()=>(n==null?void 0:n.title)??"Loading..."),i=a.computed(()=>n!=null&&n.sortableFields?n==null?void 0:n.sortableFields.map(d=>e.byId(d)):[]),l=a.computed(()=>{if(n!=null&&n.idField)return e.byId(n==null?void 0:n.idField);throw new Rt("UNDEFINED")});return{extraPages:r,metadata:s,title:o,idField:l,sortableFields:i}});var lt=(e=>(e.Ascending="Ascending",e.Descending="Descending",e))(lt||{});function yl(e,t,n,r){var i,l;if(!n||!r)return 0;const s=(i=e[n])==null?void 0:i.value,o=(l=t[n])==null?void 0:l.value;if(!s)throw new Rt(n);if(!o)throw new Rt(n);return s.toString().localeCompare(o.toString())<0?r===lt.Ascending?-1:1:s.toString().localeCompare(o.toString())>0?r===lt.Ascending?1:-1:0}const ct=at("searchResults",()=>{const e=Jt(),t=Gn(),n=J(),r=a.ref(!1),s=a.computed(()=>n.active.reduce((f,_)=>_.filterRecords(f),e.all).sort((f,_)=>yl(f,_,l.value,c.value))),o=a.computed(()=>s.value.length),i=a.computed(()=>t.sortableFields.length>0),l=a.ref(h()),c=a.ref(u());function d(){l.value=h(),c.value=u()}function u(){return i.value?lt.Ascending:void 0}function h(){return i.value?t.sortableFields[0].id:void 0}return{all:s,count:o,showAllResults:r,isSortable:i,sortFieldId:l,sortDirection:c,reset:d}}),gl={__name:"CapeFormResetButton",setup(e){const t=J(),n=ct();function r(){t.reset(),n.reset()}return(s,o)=>(a.openBlock(),a.createElementBlock("button",{"data-test":"new-search-button",onClick:r,type:"button",class:"cape-button cape-reset-button cape-form-reset-button"},[a.renderSlot(s.$slots,"default",{},()=>[a.createTextVNode(" New search ")])]))}},Fs={template:"#templateCapeHeader"},wl=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},kl={},Sl={class:"cape-loading"},vl=[a.createElementVNode("div",{class:"cape-loading-spinner",role:"status"},[a.createElementVNode("span",{class:"cape-loading-spinner-sr-text"},"Loading...")],-1),a.createElementVNode("p",{class:"cape-loading-text"},"Please wait while the data loads.",-1)];function El(e,t){return a.openBlock(),a.createElementBlock("div",Sl,vl)}const Ls=wl(kl,[["render",El]]);var bl={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Ol=function(){const e=bl.VITE_ENVIRONMENT_NAME;return e||(console.warn(`Cannot identify your environment name. Add a "VITE_ENVIRONMENT_NAME" setting to your .env file with one of the following values: "DEV", "PPRD", "PROD", "TEST". Defaulting to "${it.UnknownEnvironment}".`),it.UnknownEnvironment)},Dl={key:0,id:"non-prod-warning","data-test":"non-prod-warning",class:"cape-non-prod-warning cape-warning cape-closeable"},Nl=a.createElementVNode("strong",null,"WARNING",-1),Ml={class:"cape-non-prod-warning-environment"},Rl={key:0,class:"cape-non-prod-warning-instructions","data-test":"env-file-instructions"},Cl=a.createElementVNode("code",null,[a.createTextVNode("VITE_ENVIRONMENT_NAME=["),a.createElementVNode("em",null,"Environment name goes here..."),a.createTextVNode("]")],-1),Ws=a.defineComponent({__name:"CapeNonProdWarning",setup(e){const t=Ol(),n=a.ref(!1),r=a.computed(()=>t!="PROD"&&!n.value),s=a.computed(()=>t===it.UnknownEnvironment),o=function(){n.value=!0};return(i,l)=>r.value?(a.openBlock(),a.createElementBlock("div",Dl,[Nl,a.createTextVNode(": This is a "),a.createElementVNode("span",Ml,a.toDisplayString(a.unref(t)),1),a.createTextVNode(" instance of this service. "),s.value?(a.openBlock(),a.createElementBlock("span",Rl,[a.createTextVNode(" Note: This pane is being displayed because the CAPE environment for this application is not set to 'PROD'. To set the environment create a '.env' file in the application root directory with contents as follows: "),Cl])):a.createCommentVNode("",!0),a.createElementVNode("span",{"aria-label":"Close",role:"button",tabindex:"0",title:"Hide this message",onClick:o,onKeyup:a.withKeys(o,["enter"]),class:"cape-non-prod-warning-close-button cape-close-button"},"X",32)])):a.createCommentVNode("",!0)}}),Us={template:"#templateCapeSummaryCard",props:["record"]},Tl={key:0,class:"cape-results-info"},Pl={key:0},xl={key:1},Vl={key:1,class:"cape-results-count"},Bs=a.defineComponent({__name:"CapeResultsInfo",props:{visibleRecordsCount:{}},setup(e){const t=e,n=a.computed(()=>t.visibleRecordsCount),r=a.computed(()=>t.visibleRecordsCount===s.count),s=ct();return(o,i)=>r.value?(a.openBlock(),a.createElementBlock("div",Tl,[n.value==1?(a.openBlock(),a.createElementBlock("div",Pl,"Showing 1 matching record.")):(a.openBlock(),a.createElementBlock("div",xl,"Showing all "+a.toDisplayString(n.value)+" matching records.",1))])):(a.openBlock(),a.createElementBlock("div",Vl," Showing first "+a.toDisplayString(n.value)+" of "+a.toDisplayString(a.unref(s).count)+" matching records. ",1))}}),js={__name:"CapeShowAllResultsToggle",setup(e){const t=ct();return(n,r)=>a.withDirectives((a.openBlock(),a.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=s=>a.unref(t).showAllResults=s),type:"checkbox",class:"cape-show-all-results-toggle"},null,512)),[[a.vModelCheckbox,a.unref(t).showAllResults]])}},Il={class:"cape-results"},Yl={key:0,"data-test":"no-matches",class:"cape-results-no-matches"},$l={class:"cape-results-controls cape-results-controls-top"},Al={class:"cape-results-all-results-toggle cape-results-all-results-toggle-top"},Fl=a.createElementVNode("label",{for:"cape-results-toggle-top"},"Show All Results",-1),Ll={class:"cape-results-controls cape-results-controls-bottom"},Wl={class:"cape-results-all-results-toggle cape-results-all-results-toggle-bottom"},Ul=a.createElementVNode("label",{for:"cape-results-toggle-bottom"},"Show All Results",-1),Bl=a.defineComponent({__name:"CapeResults",setup(e){const t=ct(),n=a.computed(()=>t.showAllResults||t.count<=it.ShortenedRecordCount?t.all:t.all.slice(0,it.ShortenedRecordCount));return(r,s)=>(a.openBlock(),a.createElementBlock("div",Il,[a.unref(t).count===0?(a.openBlock(),a.createElementBlock("div",Yl,"No matches ")):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",$l,[a.createVNode(Bs,{"visible-records-count":n.value.length},null,8,["visible-records-count"]),a.createElementVNode("div",Al,[a.createVNode(js,{id:"cape-results-toggle-top"}),Fl])]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,(o,i)=>(a.openBlock(),a.createBlock(Us,{key:i,record:o},null,8,["record"]))),128)),a.createElementVNode("div",Ll,[a.createVNode(Bs,{"visible-records-count":n.value.length},null,8,["visible-records-count"]),a.createElementVNode("div",Wl,[a.createVNode(js,{id:"cape-results-toggle-bottom"}),Ul])])],64))]))}});//! moment.js
|
|
37
|
+
//! version : 2.30.1
|
|
38
|
+
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
39
|
+
//! license : MIT
|
|
40
|
+
//! momentjs.com
|
|
41
|
+
var Hs;function y(){return Hs.apply(null,arguments)}function jl(e){Hs=e}function ye(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Ke(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function zn(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(I(e,t))return!1;return!0}function ae(e){return e===void 0}function Te(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Tt(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Gs(e,t){var n=[],r,s=e.length;for(r=0;r<s;++r)n.push(t(e[r],r));return n}function je(e,t){for(var n in t)I(t,n)&&(e[n]=t[n]);return I(t,"toString")&&(e.toString=t.toString),I(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Ee(e,t,n,r){return ko(e,t,n,r,!0).utc()}function Hl(){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 M(e){return e._pf==null&&(e._pf=Hl()),e._pf}var qn;Array.prototype.some?qn=Array.prototype.some:qn=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function Zn(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=M(e),n=qn.call(t.parsedDateParts,function(s){return s!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function en(e){var t=Ee(NaN);return e!=null?je(M(t),e):M(t).userInvalidated=!0,t}var zs=y.momentProperties=[],Kn=!1;function Jn(e,t){var n,r,s,o=zs.length;if(ae(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),ae(t._i)||(e._i=t._i),ae(t._f)||(e._f=t._f),ae(t._l)||(e._l=t._l),ae(t._strict)||(e._strict=t._strict),ae(t._tzm)||(e._tzm=t._tzm),ae(t._isUTC)||(e._isUTC=t._isUTC),ae(t._offset)||(e._offset=t._offset),ae(t._pf)||(e._pf=M(t)),ae(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)r=zs[n],s=t[r],ae(s)||(e[r]=s);return e}function Pt(e){Jn(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Kn===!1&&(Kn=!0,y.updateOffset(this),Kn=!1)}function ge(e){return e instanceof Pt||e!=null&&e._isAMomentObject!=null}function qs(e){y.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function de(e,t){var n=!0;return je(function(){if(y.deprecationHandler!=null&&y.deprecationHandler(null,e),n){var r=[],s,o,i,l=arguments.length;for(o=0;o<l;o++){if(s="",typeof arguments[o]=="object"){s+=`
|
|
42
|
+
[`+o+"] ";for(i in arguments[0])I(arguments[0],i)&&(s+=i+": "+arguments[0][i]+", ");s=s.slice(0,-2)}else s=arguments[o];r.push(s)}qs(e+`
|
|
43
|
+
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
44
|
+
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var Zs={};function Ks(e,t){y.deprecationHandler!=null&&y.deprecationHandler(e,t),Zs[e]||(qs(t),Zs[e]=!0)}y.suppressDeprecationWarnings=!1,y.deprecationHandler=null;function be(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Gl(e){var t,n;for(n in e)I(e,n)&&(t=e[n],be(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 Qn(e,t){var n=je({},e),r;for(r in t)I(t,r)&&(Ke(e[r])&&Ke(t[r])?(n[r]={},je(n[r],e[r]),je(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)I(e,r)&&!I(t,r)&&Ke(e[r])&&(n[r]=je({},n[r]));return n}function Xn(e){e!=null&&this.set(e)}var er;Object.keys?er=Object.keys:er=function(e){var t,n=[];for(t in e)I(e,t)&&n.push(t);return n};var zl={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ql(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return be(r)?r.call(t,n):r}function Oe(e,t,n){var r=""+Math.abs(e),s=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+r}var tr=/(\[[^\[]*\])|(\\)?([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,tn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,nr={},ut={};function E(e,t,n,r){var s=r;typeof r=="string"&&(s=function(){return this[r]()}),e&&(ut[e]=s),t&&(ut[t[0]]=function(){return Oe(s.apply(this,arguments),t[1],t[2])}),n&&(ut[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function Zl(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Kl(e){var t=e.match(tr),n,r;for(n=0,r=t.length;n<r;n++)ut[t[n]]?t[n]=ut[t[n]]:t[n]=Zl(t[n]);return function(s){var o="",i;for(i=0;i<r;i++)o+=be(t[i])?t[i].call(s,e):t[i];return o}}function nn(e,t){return e.isValid()?(t=Js(t,e.localeData()),nr[t]=nr[t]||Kl(t),nr[t](e)):e.localeData().invalidDate()}function Js(e,t){var n=5;function r(s){return t.longDateFormat(s)||s}for(tn.lastIndex=0;n>=0&&tn.test(e);)e=e.replace(tn,r),tn.lastIndex=0,n-=1;return e}var Jl={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 Ql(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(tr).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Xl="Invalid date";function ec(){return this._invalidDate}var tc="%d",nc=/\d{1,2}/;function rc(e){return this._ordinal.replace("%d",e)}var sc={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 oc(e,t,n,r){var s=this._relativeTime[n];return be(s)?s(e,t,n,r):s.replace(/%d/i,e)}function ac(e,t){var n=this._relativeTime[e>0?"future":"past"];return be(n)?n(t):n.replace(/%s/i,t)}var Qs={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function fe(e){return typeof e=="string"?Qs[e]||Qs[e.toLowerCase()]:void 0}function rr(e){var t={},n,r;for(r in e)I(e,r)&&(n=fe(r),n&&(t[n]=e[r]));return t}var ic={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function lc(e){var t=[],n;for(n in e)I(e,n)&&t.push({unit:n,priority:ic[n]});return t.sort(function(r,s){return r.priority-s.priority}),t}var Xs=/\d/,le=/\d\d/,eo=/\d{3}/,sr=/\d{4}/,rn=/[+-]?\d{6}/,W=/\d\d?/,to=/\d\d\d\d?/,no=/\d\d\d\d\d\d?/,sn=/\d{1,3}/,or=/\d{1,4}/,on=/[+-]?\d{1,6}/,dt=/\d+/,an=/[+-]?\d+/,cc=/Z|[+-]\d\d:?\d\d/gi,ln=/Z|[+-]\d\d(?::?\d\d)?/gi,uc=/[+-]?\d+(\.\d{1,3})?/,xt=/[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,ft=/^[1-9]\d?/,ar=/^([1-9]\d|\d)/,cn;cn={};function w(e,t,n){cn[e]=be(t)?t:function(r,s){return r&&n?n:t}}function dc(e,t){return I(cn,e)?cn[e](t._strict,t._locale):new RegExp(fc(e))}function fc(e){return Pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,s,o){return n||r||s||o}))}function Pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function he(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function T(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=he(t)),n}var ir={};function L(e,t){var n,r=t,s;for(typeof e=="string"&&(e=[e]),Te(t)&&(r=function(o,i){i[t]=T(o)}),s=e.length,n=0;n<s;n++)ir[e[n]]=r}function Vt(e,t){L(e,function(n,r,s,o){s._w=s._w||{},t(n,s._w,s,o)})}function hc(e,t,n){t!=null&&I(ir,e)&&ir[e](t,n._a,n,e)}function un(e){return e%4===0&&e%100!==0||e%400===0}var re=0,xe=1,De=2,Q=3,we=4,Ve=5,Je=6,mc=7,pc=8;E("Y",0,0,function(){var e=this.year();return e<=9999?Oe(e,4):"+"+e}),E(0,["YY",2],0,function(){return this.year()%100}),E(0,["YYYY",4],0,"year"),E(0,["YYYYY",5],0,"year"),E(0,["YYYYYY",6,!0],0,"year"),w("Y",an),w("YY",W,le),w("YYYY",or,sr),w("YYYYY",on,rn),w("YYYYYY",on,rn),L(["YYYYY","YYYYYY"],re),L("YYYY",function(e,t){t[re]=e.length===2?y.parseTwoDigitYear(e):T(e)}),L("YY",function(e,t){t[re]=y.parseTwoDigitYear(e)}),L("Y",function(e,t){t[re]=parseInt(e,10)});function It(e){return un(e)?366:365}y.parseTwoDigitYear=function(e){return T(e)+(T(e)>68?1900:2e3)};var ro=ht("FullYear",!0);function _c(){return un(this.year())}function ht(e,t){return function(n){return n!=null?(so(this,e,n),y.updateOffset(this,t),this):Yt(this,e)}}function Yt(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function so(e,t,n){var r,s,o,i,l;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(s?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(s?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(s?r.setUTCHours(n):r.setHours(n));case"Date":return void(s?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,i=e.month(),l=e.date(),l=l===29&&i===1&&!un(o)?28:l,s?r.setUTCFullYear(o,i,l):r.setFullYear(o,i,l)}}function yc(e){return e=fe(e),be(this[e])?this[e]():this}function gc(e,t){if(typeof e=="object"){e=rr(e);var n=lc(e),r,s=n.length;for(r=0;r<s;r++)this[n[r].unit](e[n[r].unit])}else if(e=fe(e),be(this[e]))return this[e](t);return this}function wc(e,t){return(e%t+t)%t}var q;Array.prototype.indexOf?q=Array.prototype.indexOf:q=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function lr(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=wc(t,12);return e+=(t-n)/12,n===1?un(e)?29:28:31-n%7%2}E("M",["MM",2],"Mo",function(){return this.month()+1}),E("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),E("MMMM",0,0,function(e){return this.localeData().months(this,e)}),w("M",W,ft),w("MM",W,le),w("MMM",function(e,t){return t.monthsShortRegex(e)}),w("MMMM",function(e,t){return t.monthsRegex(e)}),L(["M","MM"],function(e,t){t[xe]=T(e)-1}),L(["MMM","MMMM"],function(e,t,n,r){var s=n._locale.monthsParse(e,r,n._strict);s!=null?t[xe]=s:M(n).invalidMonth=e});var kc="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),oo="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ao=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Sc=xt,vc=xt;function Ec(e,t){return e?ye(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ao).test(t)?"format":"standalone"][e.month()]:ye(this._months)?this._months:this._months.standalone}function bc(e,t){return e?ye(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ao.test(t)?"format":"standalone"][e.month()]:ye(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Oc(e,t,n){var r,s,o,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=Ee([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?t==="MMM"?(s=q.call(this._shortMonthsParse,i),s!==-1?s:null):(s=q.call(this._longMonthsParse,i),s!==-1?s:null):t==="MMM"?(s=q.call(this._shortMonthsParse,i),s!==-1?s:(s=q.call(this._longMonthsParse,i),s!==-1?s:null)):(s=q.call(this._longMonthsParse,i),s!==-1?s:(s=q.call(this._shortMonthsParse,i),s!==-1?s:null))}function Dc(e,t,n){var r,s,o;if(this._monthsParseExact)return Oc.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(s=Ee([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(o="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function io(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=T(t);else if(t=e.localeData().monthsParse(t),!Te(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,lr(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function lo(e){return e!=null?(io(this,e),y.updateOffset(this,!0),this):Yt(this,"Month")}function Nc(){return lr(this.year(),this.month())}function Mc(e){return this._monthsParseExact?(I(this,"_monthsRegex")||co.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(I(this,"_monthsShortRegex")||(this._monthsShortRegex=Sc),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Rc(e){return this._monthsParseExact?(I(this,"_monthsRegex")||co.call(this),e?this._monthsStrictRegex:this._monthsRegex):(I(this,"_monthsRegex")||(this._monthsRegex=vc),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function co(){function e(c,d){return d.length-c.length}var t=[],n=[],r=[],s,o,i,l;for(s=0;s<12;s++)o=Ee([2e3,s]),i=Pe(this.monthsShort(o,"")),l=Pe(this.months(o,"")),t.push(i),n.push(l),r.push(l),r.push(i);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Cc(e,t,n,r,s,o,i){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,s,o,i),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,s,o,i),l}function $t(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 dn(e,t,n){var r=7+t-n,s=(7+$t(e,0,r).getUTCDay()-t)%7;return-s+r-1}function uo(e,t,n,r,s){var o=(7+n-r)%7,i=dn(e,r,s),l=1+7*(t-1)+o+i,c,d;return l<=0?(c=e-1,d=It(c)+l):l>It(e)?(c=e+1,d=l-It(e)):(c=e,d=l),{year:c,dayOfYear:d}}function At(e,t,n){var r=dn(e.year(),t,n),s=Math.floor((e.dayOfYear()-r-1)/7)+1,o,i;return s<1?(i=e.year()-1,o=s+Ie(i,t,n)):s>Ie(e.year(),t,n)?(o=s-Ie(e.year(),t,n),i=e.year()+1):(i=e.year(),o=s),{week:o,year:i}}function Ie(e,t,n){var r=dn(e,t,n),s=dn(e+1,t,n);return(It(e)-r+s)/7}E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),w("w",W,ft),w("ww",W,le),w("W",W,ft),w("WW",W,le),Vt(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=T(e)});function Tc(e){return At(e,this._week.dow,this._week.doy).week}var Pc={dow:0,doy:6};function xc(){return this._week.dow}function Vc(){return this._week.doy}function Ic(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Yc(e){var t=At(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}E("d",0,"do","day"),E("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),E("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),E("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),w("d",W),w("e",W),w("E",W),w("dd",function(e,t){return t.weekdaysMinRegex(e)}),w("ddd",function(e,t){return t.weekdaysShortRegex(e)}),w("dddd",function(e,t){return t.weekdaysRegex(e)}),Vt(["dd","ddd","dddd"],function(e,t,n,r){var s=n._locale.weekdaysParse(e,r,n._strict);s!=null?t.d=s:M(n).invalidWeekday=e}),Vt(["d","e","E"],function(e,t,n,r){t[r]=T(e)});function $c(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Ac(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function cr(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Fc="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),fo="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Lc="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Wc=xt,Uc=xt,Bc=xt;function jc(e,t){var n=ye(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?cr(n,this._week.dow):e?n[e.day()]:n}function Hc(e){return e===!0?cr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Gc(e){return e===!0?cr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function zc(e,t,n){var r,s,o,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=Ee([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?t==="dddd"?(s=q.call(this._weekdaysParse,i),s!==-1?s:null):t==="ddd"?(s=q.call(this._shortWeekdaysParse,i),s!==-1?s:null):(s=q.call(this._minWeekdaysParse,i),s!==-1?s:null):t==="dddd"?(s=q.call(this._weekdaysParse,i),s!==-1||(s=q.call(this._shortWeekdaysParse,i),s!==-1)?s:(s=q.call(this._minWeekdaysParse,i),s!==-1?s:null)):t==="ddd"?(s=q.call(this._shortWeekdaysParse,i),s!==-1||(s=q.call(this._weekdaysParse,i),s!==-1)?s:(s=q.call(this._minWeekdaysParse,i),s!==-1?s:null)):(s=q.call(this._minWeekdaysParse,i),s!==-1||(s=q.call(this._weekdaysParse,i),s!==-1)?s:(s=q.call(this._shortWeekdaysParse,i),s!==-1?s:null))}function qc(e,t,n){var r,s,o;if(this._weekdaysParseExact)return zc.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(s=Ee([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Zc(e){if(!this.isValid())return e!=null?this:NaN;var t=Yt(this,"Day");return e!=null?(e=$c(e,this.localeData()),this.add(e-t,"d")):t}function Kc(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Jc(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Ac(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Qc(e){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||ur.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(I(this,"_weekdaysRegex")||(this._weekdaysRegex=Wc),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Xc(e){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||ur.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(I(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Uc),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function eu(e){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||ur.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(I(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Bc),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ur(){function e(u,h){return h.length-u.length}var t=[],n=[],r=[],s=[],o,i,l,c,d;for(o=0;o<7;o++)i=Ee([2e3,1]).day(o),l=Pe(this.weekdaysMin(i,"")),c=Pe(this.weekdaysShort(i,"")),d=Pe(this.weekdays(i,"")),t.push(l),n.push(c),r.push(d),s.push(l),s.push(c),s.push(d);t.sort(e),n.sort(e),r.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function dr(){return this.hours()%12||12}function tu(){return this.hours()||24}E("H",["HH",2],0,"hour"),E("h",["hh",2],0,dr),E("k",["kk",2],0,tu),E("hmm",0,0,function(){return""+dr.apply(this)+Oe(this.minutes(),2)}),E("hmmss",0,0,function(){return""+dr.apply(this)+Oe(this.minutes(),2)+Oe(this.seconds(),2)}),E("Hmm",0,0,function(){return""+this.hours()+Oe(this.minutes(),2)}),E("Hmmss",0,0,function(){return""+this.hours()+Oe(this.minutes(),2)+Oe(this.seconds(),2)});function ho(e,t){E(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ho("a",!0),ho("A",!1);function mo(e,t){return t._meridiemParse}w("a",mo),w("A",mo),w("H",W,ar),w("h",W,ft),w("k",W,ft),w("HH",W,le),w("hh",W,le),w("kk",W,le),w("hmm",to),w("hmmss",no),w("Hmm",to),w("Hmmss",no),L(["H","HH"],Q),L(["k","kk"],function(e,t,n){var r=T(e);t[Q]=r===24?0:r}),L(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),L(["h","hh"],function(e,t,n){t[Q]=T(e),M(n).bigHour=!0}),L("hmm",function(e,t,n){var r=e.length-2;t[Q]=T(e.substr(0,r)),t[we]=T(e.substr(r)),M(n).bigHour=!0}),L("hmmss",function(e,t,n){var r=e.length-4,s=e.length-2;t[Q]=T(e.substr(0,r)),t[we]=T(e.substr(r,2)),t[Ve]=T(e.substr(s)),M(n).bigHour=!0}),L("Hmm",function(e,t,n){var r=e.length-2;t[Q]=T(e.substr(0,r)),t[we]=T(e.substr(r))}),L("Hmmss",function(e,t,n){var r=e.length-4,s=e.length-2;t[Q]=T(e.substr(0,r)),t[we]=T(e.substr(r,2)),t[Ve]=T(e.substr(s))});function nu(e){return(e+"").toLowerCase().charAt(0)==="p"}var ru=/[ap]\.?m?\.?/i,su=ht("Hours",!0);function ou(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var po={calendar:zl,longDateFormat:Jl,invalidDate:Xl,ordinal:tc,dayOfMonthOrdinalParse:nc,relativeTime:sc,months:kc,monthsShort:oo,week:Pc,weekdays:Fc,weekdaysMin:Lc,weekdaysShort:fo,meridiemParse:ru},H={},Ft={},Lt;function au(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 _o(e){return e&&e.toLowerCase().replace("_","-")}function iu(e){for(var t=0,n,r,s,o;t<e.length;){for(o=_o(e[t]).split("-"),n=o.length,r=_o(e[t+1]),r=r?r.split("-"):null;n>0;){if(s=fn(o.slice(0,n).join("-")),s)return s;if(r&&r.length>=n&&au(o,r)>=n-1)break;n--}t++}return Lt}function lu(e){return!!(e&&e.match("^[^/\\\\]*$"))}function fn(e){var t=null,n;if(H[e]===void 0&&typeof module<"u"&&module&&module.exports&&lu(e))try{t=Lt._abbr,n=require,n("./locale/"+e),He(t)}catch{H[e]=null}return H[e]}function He(e,t){var n;return e&&(ae(t)?n=Ye(e):n=fr(e,t),n?Lt=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Lt._abbr}function fr(e,t){if(t!==null){var n,r=po;if(t.abbr=e,H[e]!=null)Ks("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=H[e]._config;else if(t.parentLocale!=null)if(H[t.parentLocale]!=null)r=H[t.parentLocale]._config;else if(n=fn(t.parentLocale),n!=null)r=n._config;else return Ft[t.parentLocale]||(Ft[t.parentLocale]=[]),Ft[t.parentLocale].push({name:e,config:t}),null;return H[e]=new Xn(Qn(r,t)),Ft[e]&&Ft[e].forEach(function(s){fr(s.name,s.config)}),He(e),H[e]}else return delete H[e],null}function cu(e,t){if(t!=null){var n,r,s=po;H[e]!=null&&H[e].parentLocale!=null?H[e].set(Qn(H[e]._config,t)):(r=fn(e),r!=null&&(s=r._config),t=Qn(s,t),r==null&&(t.abbr=e),n=new Xn(t),n.parentLocale=H[e],H[e]=n),He(e)}else H[e]!=null&&(H[e].parentLocale!=null?(H[e]=H[e].parentLocale,e===He()&&He(e)):H[e]!=null&&delete H[e]);return H[e]}function Ye(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Lt;if(!ye(e)){if(t=fn(e),t)return t;e=[e]}return iu(e)}function uu(){return er(H)}function hr(e){var t,n=e._a;return n&&M(e).overflow===-2&&(t=n[xe]<0||n[xe]>11?xe:n[De]<1||n[De]>lr(n[re],n[xe])?De:n[Q]<0||n[Q]>24||n[Q]===24&&(n[we]!==0||n[Ve]!==0||n[Je]!==0)?Q:n[we]<0||n[we]>59?we:n[Ve]<0||n[Ve]>59?Ve:n[Je]<0||n[Je]>999?Je:-1,M(e)._overflowDayOfYear&&(t<re||t>De)&&(t=De),M(e)._overflowWeeks&&t===-1&&(t=mc),M(e)._overflowWeekday&&t===-1&&(t=pc),M(e).overflow=t),e}var du=/^\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)?)?$/,fu=/^\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)?)?$/,hu=/Z|[+-]\d\d(?::?\d\d)?/,hn=[["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]],mr=[["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/]],mu=/^\/?Date\((-?\d+)/i,pu=/^(?:(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}))$/,_u={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function yo(e){var t,n,r=e._i,s=du.exec(r)||fu.exec(r),o,i,l,c,d=hn.length,u=mr.length;if(s){for(M(e).iso=!0,t=0,n=d;t<n;t++)if(hn[t][1].exec(s[1])){i=hn[t][0],o=hn[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(s[3]){for(t=0,n=u;t<n;t++)if(mr[t][1].exec(s[3])){l=(s[2]||" ")+mr[t][0];break}if(l==null){e._isValid=!1;return}}if(!o&&l!=null){e._isValid=!1;return}if(s[4])if(hu.exec(s[4]))c="Z";else{e._isValid=!1;return}e._f=i+(l||"")+(c||""),_r(e)}else e._isValid=!1}function yu(e,t,n,r,s,o){var i=[gu(e),oo.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(s,10)];return o&&i.push(parseInt(o,10)),i}function gu(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function wu(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ku(e,t,n){if(e){var r=fo.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(r!==s)return M(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Su(e,t,n){if(e)return _u[e];if(t)return 0;var r=parseInt(n,10),s=r%100,o=(r-s)/100;return o*60+s}function go(e){var t=pu.exec(wu(e._i)),n;if(t){if(n=yu(t[4],t[3],t[2],t[5],t[6],t[7]),!ku(t[1],n,e))return;e._a=n,e._tzm=Su(t[8],t[9],t[10]),e._d=$t.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),M(e).rfc2822=!0}else e._isValid=!1}function vu(e){var t=mu.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(yo(e),e._isValid===!1)delete e._isValid;else return;if(go(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:y.createFromInputFallback(e)}y.createFromInputFallback=de("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function mt(e,t,n){return e??t??n}function Eu(e){var t=new Date(y.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function pr(e){var t,n,r=[],s,o,i;if(!e._d){for(s=Eu(e),e._w&&e._a[De]==null&&e._a[xe]==null&&bu(e),e._dayOfYear!=null&&(i=mt(e._a[re],s[re]),(e._dayOfYear>It(i)||e._dayOfYear===0)&&(M(e)._overflowDayOfYear=!0),n=$t(i,0,e._dayOfYear),e._a[xe]=n.getUTCMonth(),e._a[De]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=s[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Q]===24&&e._a[we]===0&&e._a[Ve]===0&&e._a[Je]===0&&(e._nextDay=!0,e._a[Q]=0),e._d=(e._useUTC?$t:Cc).apply(null,r),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Q]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(M(e).weekdayMismatch=!0)}}function bu(e){var t,n,r,s,o,i,l,c,d;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,i=4,n=mt(t.GG,e._a[re],At(U(),1,4).year),r=mt(t.W,1),s=mt(t.E,1),(s<1||s>7)&&(c=!0)):(o=e._locale._week.dow,i=e._locale._week.doy,d=At(U(),o,i),n=mt(t.gg,e._a[re],d.year),r=mt(t.w,d.week),t.d!=null?(s=t.d,(s<0||s>6)&&(c=!0)):t.e!=null?(s=t.e+o,(t.e<0||t.e>6)&&(c=!0)):s=o),r<1||r>Ie(n,o,i)?M(e)._overflowWeeks=!0:c!=null?M(e)._overflowWeekday=!0:(l=uo(n,r,s,o,i),e._a[re]=l.year,e._dayOfYear=l.dayOfYear)}y.ISO_8601=function(){},y.RFC_2822=function(){};function _r(e){if(e._f===y.ISO_8601){yo(e);return}if(e._f===y.RFC_2822){go(e);return}e._a=[],M(e).empty=!0;var t=""+e._i,n,r,s,o,i,l=t.length,c=0,d,u;for(s=Js(e._f,e._locale).match(tr)||[],u=s.length,n=0;n<u;n++)o=s[n],r=(t.match(dc(o,e))||[])[0],r&&(i=t.substr(0,t.indexOf(r)),i.length>0&&M(e).unusedInput.push(i),t=t.slice(t.indexOf(r)+r.length),c+=r.length),ut[o]?(r?M(e).empty=!1:M(e).unusedTokens.push(o),hc(o,r,e)):e._strict&&!r&&M(e).unusedTokens.push(o);M(e).charsLeftOver=l-c,t.length>0&&M(e).unusedInput.push(t),e._a[Q]<=12&&M(e).bigHour===!0&&e._a[Q]>0&&(M(e).bigHour=void 0),M(e).parsedDateParts=e._a.slice(0),M(e).meridiem=e._meridiem,e._a[Q]=Ou(e._locale,e._a[Q],e._meridiem),d=M(e).era,d!==null&&(e._a[re]=e._locale.erasConvertYear(d,e._a[re])),pr(e),hr(e)}function Ou(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function Du(e){var t,n,r,s,o,i,l=!1,c=e._f.length;if(c===0){M(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<c;s++)o=0,i=!1,t=Jn({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],_r(t),Zn(t)&&(i=!0),o+=M(t).charsLeftOver,o+=M(t).unusedTokens.length*10,M(t).score=o,l?o<r&&(r=o,n=t):(r==null||o<r||i)&&(r=o,n=t,i&&(l=!0));je(e,n||t)}function Nu(e){if(!e._d){var t=rr(e._i),n=t.day===void 0?t.date:t.day;e._a=Gs([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),pr(e)}}function Mu(e){var t=new Pt(hr(wo(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function wo(e){var t=e._i,n=e._f;return e._locale=e._locale||Ye(e._l),t===null||n===void 0&&t===""?en({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),ge(t)?new Pt(hr(t)):(Tt(t)?e._d=t:ye(n)?Du(e):n?_r(e):Ru(e),Zn(e)||(e._d=null),e))}function Ru(e){var t=e._i;ae(t)?e._d=new Date(y.now()):Tt(t)?e._d=new Date(t.valueOf()):typeof t=="string"?vu(e):ye(t)?(e._a=Gs(t.slice(0),function(n){return parseInt(n,10)}),pr(e)):Ke(t)?Nu(e):Te(t)?e._d=new Date(t):y.createFromInputFallback(e)}function ko(e,t,n,r,s){var o={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Ke(e)&&zn(e)||ye(e)&&e.length===0)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=s,o._l=n,o._i=e,o._f=t,o._strict=r,Mu(o)}function U(e,t,n,r){return ko(e,t,n,r,!1)}var Cu=de("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=U.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:en()}),Tu=de("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=U.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:en()});function So(e,t){var n,r;if(t.length===1&&ye(t[0])&&(t=t[0]),!t.length)return U();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function Pu(){var e=[].slice.call(arguments,0);return So("isBefore",e)}function xu(){var e=[].slice.call(arguments,0);return So("isAfter",e)}var Vu=function(){return Date.now?Date.now():+new Date},Wt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Iu(e){var t,n=!1,r,s=Wt.length;for(t in e)if(I(e,t)&&!(q.call(Wt,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<s;++r)if(e[Wt[r]]){if(n)return!1;parseFloat(e[Wt[r]])!==T(e[Wt[r]])&&(n=!0)}return!0}function Yu(){return this._isValid}function $u(){return ke(NaN)}function mn(e){var t=rr(e),n=t.year||0,r=t.quarter||0,s=t.month||0,o=t.week||t.isoWeek||0,i=t.day||0,l=t.hour||0,c=t.minute||0,d=t.second||0,u=t.millisecond||0;this._isValid=Iu(t),this._milliseconds=+u+d*1e3+c*6e4+l*1e3*60*60,this._days=+i+o*7,this._months=+s+r*3+n*12,this._data={},this._locale=Ye(),this._bubble()}function pn(e){return e instanceof mn}function yr(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Au(e,t,n){var r=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),o=0,i;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&T(e[i])!==T(t[i]))&&o++;return o+s}function vo(e,t){E(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Oe(~~(n/60),2)+t+Oe(~~n%60,2)})}vo("Z",":"),vo("ZZ",""),w("Z",ln),w("ZZ",ln),L(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=gr(ln,e)});var Fu=/([\+\-]|\d\d)/gi;function gr(e,t){var n=(t||"").match(e),r,s,o;return n===null?null:(r=n[n.length-1]||[],s=(r+"").match(Fu)||["-",0,0],o=+(s[1]*60)+T(s[2]),o===0?0:s[0]==="+"?o:-o)}function wr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(ge(e)||Tt(e)?e.valueOf():U(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),y.updateOffset(n,!1),n):U(e).local()}function kr(e){return-Math.round(e._d.getTimezoneOffset())}y.updateOffset=function(){};function Lu(e,t,n){var r=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=gr(ln,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(s=kr(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),r!==e&&(!t||this._changeInProgress?Do(this,ke(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,y.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:kr(this)}function Wu(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Uu(e){return this.utcOffset(0,e)}function Bu(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(kr(this),"m")),this}function ju(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=gr(cc,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Hu(e){return this.isValid()?(e=e?U(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Gu(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function zu(){if(!ae(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Jn(e,this),e=wo(e),e._a?(t=e._isUTC?Ee(e._a):U(e._a),this._isDSTShifted=this.isValid()&&Au(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function qu(){return this.isValid()?!this._isUTC:!1}function Zu(){return this.isValid()?this._isUTC:!1}function Eo(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ku=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ju=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ke(e,t){var n=e,r=null,s,o,i;return pn(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Te(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Ku.exec(e))?(s=r[1]==="-"?-1:1,n={y:0,d:T(r[De])*s,h:T(r[Q])*s,m:T(r[we])*s,s:T(r[Ve])*s,ms:T(yr(r[Je]*1e3))*s}):(r=Ju.exec(e))?(s=r[1]==="-"?-1:1,n={y:Qe(r[2],s),M:Qe(r[3],s),w:Qe(r[4],s),d:Qe(r[5],s),h:Qe(r[6],s),m:Qe(r[7],s),s:Qe(r[8],s)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(i=Qu(U(n.from),U(n.to)),n={},n.ms=i.milliseconds,n.M=i.months),o=new mn(n),pn(e)&&I(e,"_locale")&&(o._locale=e._locale),pn(e)&&I(e,"_isValid")&&(o._isValid=e._isValid),o}ke.fn=mn.prototype,ke.invalid=$u;function Qe(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function bo(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Qu(e,t){var n;return e.isValid()&&t.isValid()?(t=wr(t,e),e.isBefore(t)?n=bo(e,t):(n=bo(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Oo(e,t){return function(n,r){var s,o;return r!==null&&!isNaN(+r)&&(Ks(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),s=ke(n,r),Do(this,s,e),this}}function Do(e,t,n,r){var s=t._milliseconds,o=yr(t._days),i=yr(t._months);e.isValid()&&(r=r??!0,i&&io(e,Yt(e,"Month")+i*n),o&&so(e,"Date",Yt(e,"Date")+o*n),s&&e._d.setTime(e._d.valueOf()+s*n),r&&y.updateOffset(e,o||i))}var Xu=Oo(1,"add"),ed=Oo(-1,"subtract");function No(e){return typeof e=="string"||e instanceof String}function td(e){return ge(e)||Tt(e)||No(e)||Te(e)||rd(e)||nd(e)||e===null||e===void 0}function nd(e){var t=Ke(e)&&!zn(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,o,i=r.length;for(s=0;s<i;s+=1)o=r[s],n=n||I(e,o);return t&&n}function rd(e){var t=ye(e),n=!1;return t&&(n=e.filter(function(r){return!Te(r)&&No(e)}).length===0),t&&n}function sd(e){var t=Ke(e)&&!zn(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,o;for(s=0;s<r.length;s+=1)o=r[s],n=n||I(e,o);return t&&n}function od(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 ad(e,t){arguments.length===1&&(arguments[0]?td(arguments[0])?(e=arguments[0],t=void 0):sd(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||U(),r=wr(n,this).startOf("day"),s=y.calendarFormat(this,r)||"sameElse",o=t&&(be(t[s])?t[s].call(this,n):t[s]);return this.format(o||this.localeData().calendar(s,this,U(n)))}function id(){return new Pt(this)}function ld(e,t){var n=ge(e)?e:U(e);return this.isValid()&&n.isValid()?(t=fe(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function cd(e,t){var n=ge(e)?e:U(e);return this.isValid()&&n.isValid()?(t=fe(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function ud(e,t,n,r){var s=ge(e)?e:U(e),o=ge(t)?t:U(t);return this.isValid()&&s.isValid()&&o.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(s,n):!this.isBefore(s,n))&&(r[1]===")"?this.isBefore(o,n):!this.isAfter(o,n))):!1}function dd(e,t){var n=ge(e)?e:U(e),r;return this.isValid()&&n.isValid()?(t=fe(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function fd(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function hd(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function md(e,t,n){var r,s,o;if(!this.isValid())return NaN;if(r=wr(e,this),!r.isValid())return NaN;switch(s=(r.utcOffset()-this.utcOffset())*6e4,t=fe(t),t){case"year":o=_n(this,r)/12;break;case"month":o=_n(this,r);break;case"quarter":o=_n(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-s)/864e5;break;case"week":o=(this-r-s)/6048e5;break;default:o=this-r}return n?o:he(o)}function _n(e,t){if(e.date()<t.date())return-_n(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),s,o;return t-r<0?(s=e.clone().add(n-1,"months"),o=(t-r)/(r-s)):(s=e.clone().add(n+1,"months"),o=(t-r)/(s-r)),-(n+o)||0}y.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",y.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function pd(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function _d(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?nn(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):be(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",nn(n,"Z")):nn(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function yd(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,s,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(n+r+s+o)}function gd(e){e||(e=this.isUtc()?y.defaultFormatUtc:y.defaultFormat);var t=nn(this,e);return this.localeData().postformat(t)}function wd(e,t){return this.isValid()&&(ge(e)&&e.isValid()||U(e).isValid())?ke({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function kd(e){return this.from(U(),e)}function Sd(e,t){return this.isValid()&&(ge(e)&&e.isValid()||U(e).isValid())?ke({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vd(e){return this.to(U(),e)}function Mo(e){var t;return e===void 0?this._locale._abbr:(t=Ye(e),t!=null&&(this._locale=t),this)}var Ro=de("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Co(){return this._locale}var yn=1e3,pt=60*yn,gn=60*pt,To=(365*400+97)*24*gn;function _t(e,t){return(e%t+t)%t}function Po(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-To:new Date(e,t,n).valueOf()}function xo(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-To:Date.UTC(e,t,n)}function Ed(e){var t,n;if(e=fe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?xo:Po,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-=_t(t+(this._isUTC?0:this.utcOffset()*pt),gn);break;case"minute":t=this._d.valueOf(),t-=_t(t,pt);break;case"second":t=this._d.valueOf(),t-=_t(t,yn);break}return this._d.setTime(t),y.updateOffset(this,!0),this}function bd(e){var t,n;if(e=fe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?xo:Po,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+=gn-_t(t+(this._isUTC?0:this.utcOffset()*pt),gn)-1;break;case"minute":t=this._d.valueOf(),t+=pt-_t(t,pt)-1;break;case"second":t=this._d.valueOf(),t+=yn-_t(t,yn)-1;break}return this._d.setTime(t),y.updateOffset(this,!0),this}function Od(){return this._d.valueOf()-(this._offset||0)*6e4}function Dd(){return Math.floor(this.valueOf()/1e3)}function Nd(){return new Date(this.valueOf())}function Md(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Rd(){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 Cd(){return this.isValid()?this.toISOString():null}function Td(){return Zn(this)}function Pd(){return je({},M(this))}function xd(){return M(this).overflow}function Vd(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}E("N",0,0,"eraAbbr"),E("NN",0,0,"eraAbbr"),E("NNN",0,0,"eraAbbr"),E("NNNN",0,0,"eraName"),E("NNNNN",0,0,"eraNarrow"),E("y",["y",1],"yo","eraYear"),E("y",["yy",2],0,"eraYear"),E("y",["yyy",3],0,"eraYear"),E("y",["yyyy",4],0,"eraYear"),w("N",Sr),w("NN",Sr),w("NNN",Sr),w("NNNN",Hd),w("NNNNN",Gd),L(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var s=n._locale.erasParse(e,r,n._strict);s?M(n).era=s:M(n).invalidEra=e}),w("y",dt),w("yy",dt),w("yyy",dt),w("yyyy",dt),w("yo",zd),L(["y","yy","yyy","yyyy"],re),L(["yo"],function(e,t,n,r){var s;n._locale._eraYearOrdinalRegex&&(s=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[re]=n._locale.eraYearOrdinalParse(e,s):t[re]=parseInt(e,10)});function Id(e,t){var n,r,s,o=this._eras||Ye("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":s=y(o[n].since).startOf("day"),o[n].since=s.valueOf();break}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":s=y(o[n].until).startOf("day").valueOf(),o[n].until=s.valueOf();break}}return o}function Yd(e,t,n){var r,s,o=this.eras(),i,l,c;for(e=e.toUpperCase(),r=0,s=o.length;r<s;++r)if(i=o[r].name.toUpperCase(),l=o[r].abbr.toUpperCase(),c=o[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return o[r];break;case"NNNN":if(i===e)return o[r];break;case"NNNNN":if(c===e)return o[r];break}else if([i,l,c].indexOf(e)>=0)return o[r]}function $d(e,t){var n=e.since<=e.until?1:-1;return t===void 0?y(e.since).year():y(e.since).year()+(t-e.offset)*n}function Ad(){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||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function Fd(){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||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function Ld(){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||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function Wd(){var e,t,n,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=s[e].since<=s[e].until?1:-1,r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return(this.year()-y(s[e].since).year())*n+s[e].offset;return this.year()}function Ud(e){return I(this,"_erasNameRegex")||vr.call(this),e?this._erasNameRegex:this._erasRegex}function Bd(e){return I(this,"_erasAbbrRegex")||vr.call(this),e?this._erasAbbrRegex:this._erasRegex}function jd(e){return I(this,"_erasNarrowRegex")||vr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Sr(e,t){return t.erasAbbrRegex(e)}function Hd(e,t){return t.erasNameRegex(e)}function Gd(e,t){return t.erasNarrowRegex(e)}function zd(e,t){return t._eraYearOrdinalRegex||dt}function vr(){var e=[],t=[],n=[],r=[],s,o,i,l,c,d=this.eras();for(s=0,o=d.length;s<o;++s)i=Pe(d[s].name),l=Pe(d[s].abbr),c=Pe(d[s].narrow),t.push(i),e.push(l),n.push(c),r.push(i),r.push(l),r.push(c);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}E(0,["gg",2],0,function(){return this.weekYear()%100}),E(0,["GG",2],0,function(){return this.isoWeekYear()%100});function wn(e,t){E(0,[e,e.length],0,t)}wn("gggg","weekYear"),wn("ggggg","weekYear"),wn("GGGG","isoWeekYear"),wn("GGGGG","isoWeekYear"),w("G",an),w("g",an),w("GG",W,le),w("gg",W,le),w("GGGG",or,sr),w("gggg",or,sr),w("GGGGG",on,rn),w("ggggg",on,rn),Vt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=T(e)}),Vt(["gg","GG"],function(e,t,n,r){t[r]=y.parseTwoDigitYear(e)});function qd(e){return Vo.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Zd(e){return Vo.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Kd(){return Ie(this.year(),1,4)}function Jd(){return Ie(this.isoWeekYear(),1,4)}function Qd(){var e=this.localeData()._week;return Ie(this.year(),e.dow,e.doy)}function Xd(){var e=this.localeData()._week;return Ie(this.weekYear(),e.dow,e.doy)}function Vo(e,t,n,r,s){var o;return e==null?At(this,r,s).year:(o=Ie(e,r,s),t>o&&(t=o),ef.call(this,e,t,n,r,s))}function ef(e,t,n,r,s){var o=uo(e,t,n,r,s),i=$t(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}E("Q",0,"Qo","quarter"),w("Q",Xs),L("Q",function(e,t){t[xe]=(T(e)-1)*3});function tf(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}E("D",["DD",2],"Do","date"),w("D",W,ft),w("DD",W,le),w("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),L(["D","DD"],De),L("Do",function(e,t){t[De]=T(e.match(W)[0])});var Io=ht("Date",!0);E("DDD",["DDDD",3],"DDDo","dayOfYear"),w("DDD",sn),w("DDDD",eo),L(["DDD","DDDD"],function(e,t,n){n._dayOfYear=T(e)});function nf(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}E("m",["mm",2],0,"minute"),w("m",W,ar),w("mm",W,le),L(["m","mm"],we);var rf=ht("Minutes",!1);E("s",["ss",2],0,"second"),w("s",W,ar),w("ss",W,le),L(["s","ss"],Ve);var sf=ht("Seconds",!1);E("S",0,0,function(){return~~(this.millisecond()/100)}),E(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,function(){return this.millisecond()*10}),E(0,["SSSSS",5],0,function(){return this.millisecond()*100}),E(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),E(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),E(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),E(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),w("S",sn,Xs),w("SS",sn,le),w("SSS",sn,eo);var Ge,Yo;for(Ge="SSSS";Ge.length<=9;Ge+="S")w(Ge,dt);function of(e,t){t[Je]=T(("0."+e)*1e3)}for(Ge="S";Ge.length<=9;Ge+="S")L(Ge,of);Yo=ht("Milliseconds",!1),E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");function af(){return this._isUTC?"UTC":""}function lf(){return this._isUTC?"Coordinated Universal Time":""}var p=Pt.prototype;p.add=Xu,p.calendar=ad,p.clone=id,p.diff=md,p.endOf=bd,p.format=gd,p.from=wd,p.fromNow=kd,p.to=Sd,p.toNow=vd,p.get=yc,p.invalidAt=xd,p.isAfter=ld,p.isBefore=cd,p.isBetween=ud,p.isSame=dd,p.isSameOrAfter=fd,p.isSameOrBefore=hd,p.isValid=Td,p.lang=Ro,p.locale=Mo,p.localeData=Co,p.max=Tu,p.min=Cu,p.parsingFlags=Pd,p.set=gc,p.startOf=Ed,p.subtract=ed,p.toArray=Md,p.toObject=Rd,p.toDate=Nd,p.toISOString=_d,p.inspect=yd,typeof Symbol<"u"&&Symbol.for!=null&&(p[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),p.toJSON=Cd,p.toString=pd,p.unix=Dd,p.valueOf=Od,p.creationData=Vd,p.eraName=Ad,p.eraNarrow=Fd,p.eraAbbr=Ld,p.eraYear=Wd,p.year=ro,p.isLeapYear=_c,p.weekYear=qd,p.isoWeekYear=Zd,p.quarter=p.quarters=tf,p.month=lo,p.daysInMonth=Nc,p.week=p.weeks=Ic,p.isoWeek=p.isoWeeks=Yc,p.weeksInYear=Qd,p.weeksInWeekYear=Xd,p.isoWeeksInYear=Kd,p.isoWeeksInISOWeekYear=Jd,p.date=Io,p.day=p.days=Zc,p.weekday=Kc,p.isoWeekday=Jc,p.dayOfYear=nf,p.hour=p.hours=su,p.minute=p.minutes=rf,p.second=p.seconds=sf,p.millisecond=p.milliseconds=Yo,p.utcOffset=Lu,p.utc=Uu,p.local=Bu,p.parseZone=ju,p.hasAlignedHourOffset=Hu,p.isDST=Gu,p.isLocal=qu,p.isUtcOffset=Zu,p.isUtc=Eo,p.isUTC=Eo,p.zoneAbbr=af,p.zoneName=lf,p.dates=de("dates accessor is deprecated. Use date instead.",Io),p.months=de("months accessor is deprecated. Use month instead",lo),p.years=de("years accessor is deprecated. Use year instead",ro),p.zone=de("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Wu),p.isDSTShifted=de("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",zu);function cf(e){return U(e*1e3)}function uf(){return U.apply(null,arguments).parseZone()}function $o(e){return e}var Y=Xn.prototype;Y.calendar=ql,Y.longDateFormat=Ql,Y.invalidDate=ec,Y.ordinal=rc,Y.preparse=$o,Y.postformat=$o,Y.relativeTime=oc,Y.pastFuture=ac,Y.set=Gl,Y.eras=Id,Y.erasParse=Yd,Y.erasConvertYear=$d,Y.erasAbbrRegex=Bd,Y.erasNameRegex=Ud,Y.erasNarrowRegex=jd,Y.months=Ec,Y.monthsShort=bc,Y.monthsParse=Dc,Y.monthsRegex=Rc,Y.monthsShortRegex=Mc,Y.week=Tc,Y.firstDayOfYear=Vc,Y.firstDayOfWeek=xc,Y.weekdays=jc,Y.weekdaysMin=Gc,Y.weekdaysShort=Hc,Y.weekdaysParse=qc,Y.weekdaysRegex=Qc,Y.weekdaysShortRegex=Xc,Y.weekdaysMinRegex=eu,Y.isPM=nu,Y.meridiem=ou;function kn(e,t,n,r){var s=Ye(),o=Ee().set(r,t);return s[n](o,e)}function Ao(e,t,n){if(Te(e)&&(t=e,e=void 0),e=e||"",t!=null)return kn(e,t,n,"month");var r,s=[];for(r=0;r<12;r++)s[r]=kn(e,r,n,"month");return s}function Er(e,t,n,r){typeof e=="boolean"?(Te(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Te(t)&&(n=t,t=void 0),t=t||"");var s=Ye(),o=e?s._week.dow:0,i,l=[];if(n!=null)return kn(t,(n+o)%7,r,"day");for(i=0;i<7;i++)l[i]=kn(t,(i+o)%7,r,"day");return l}function df(e,t){return Ao(e,t,"months")}function ff(e,t){return Ao(e,t,"monthsShort")}function hf(e,t,n){return Er(e,t,n,"weekdays")}function mf(e,t,n){return Er(e,t,n,"weekdaysShort")}function pf(e,t,n){return Er(e,t,n,"weekdaysMin")}He("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=T(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),y.lang=de("moment.lang is deprecated. Use moment.locale instead.",He),y.langData=de("moment.langData is deprecated. Use moment.localeData instead.",Ye);var $e=Math.abs;function _f(){var e=this._data;return this._milliseconds=$e(this._milliseconds),this._days=$e(this._days),this._months=$e(this._months),e.milliseconds=$e(e.milliseconds),e.seconds=$e(e.seconds),e.minutes=$e(e.minutes),e.hours=$e(e.hours),e.months=$e(e.months),e.years=$e(e.years),this}function Fo(e,t,n,r){var s=ke(t,n);return e._milliseconds+=r*s._milliseconds,e._days+=r*s._days,e._months+=r*s._months,e._bubble()}function yf(e,t){return Fo(this,e,t,1)}function gf(e,t){return Fo(this,e,t,-1)}function Lo(e){return e<0?Math.floor(e):Math.ceil(e)}function wf(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,s,o,i,l,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Lo(br(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,s=he(e/1e3),r.seconds=s%60,o=he(s/60),r.minutes=o%60,i=he(o/60),r.hours=i%24,t+=he(i/24),c=he(Wo(t)),n+=c,t-=Lo(br(c)),l=he(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function Wo(e){return e*4800/146097}function br(e){return e*146097/4800}function kf(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=fe(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Wo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(br(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Ae(e){return function(){return this.as(e)}}var Uo=Ae("ms"),Sf=Ae("s"),vf=Ae("m"),Ef=Ae("h"),bf=Ae("d"),Of=Ae("w"),Df=Ae("M"),Nf=Ae("Q"),Mf=Ae("y"),Rf=Uo;function Cf(){return ke(this)}function Tf(e){return e=fe(e),this.isValid()?this[e+"s"]():NaN}function Xe(e){return function(){return this.isValid()?this._data[e]:NaN}}var Pf=Xe("milliseconds"),xf=Xe("seconds"),Vf=Xe("minutes"),If=Xe("hours"),Yf=Xe("days"),$f=Xe("months"),Af=Xe("years");function Ff(){return he(this.days()/7)}var Fe=Math.round,yt={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Lf(e,t,n,r,s){return s.relativeTime(t||1,!!n,e,r)}function Wf(e,t,n,r){var s=ke(e).abs(),o=Fe(s.as("s")),i=Fe(s.as("m")),l=Fe(s.as("h")),c=Fe(s.as("d")),d=Fe(s.as("M")),u=Fe(s.as("w")),h=Fe(s.as("y")),f=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||i<=1&&["m"]||i<n.m&&["mm",i]||l<=1&&["h"]||l<n.h&&["hh",l]||c<=1&&["d"]||c<n.d&&["dd",c];return n.w!=null&&(f=f||u<=1&&["w"]||u<n.w&&["ww",u]),f=f||d<=1&&["M"]||d<n.M&&["MM",d]||h<=1&&["y"]||["yy",h],f[2]=t,f[3]=+e>0,f[4]=r,Lf.apply(null,f)}function Uf(e){return e===void 0?Fe:typeof e=="function"?(Fe=e,!0):!1}function Bf(e,t){return yt[e]===void 0?!1:t===void 0?yt[e]:(yt[e]=t,e==="s"&&(yt.ss=t-1),!0)}function jf(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=yt,s,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},yt,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),s=this.localeData(),o=Wf(this,!n,r,s),n&&(o=s.pastFuture(+this,o)),s.postformat(o)}var Or=Math.abs;function gt(e){return(e>0)-(e<0)||+e}function Sn(){if(!this.isValid())return this.localeData().invalidDate();var e=Or(this._milliseconds)/1e3,t=Or(this._days),n=Or(this._months),r,s,o,i,l=this.asSeconds(),c,d,u,h;return l?(r=he(e/60),s=he(r/60),e%=60,r%=60,o=he(n/12),n%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",d=gt(this._months)!==gt(l)?"-":"",u=gt(this._days)!==gt(l)?"-":"",h=gt(this._milliseconds)!==gt(l)?"-":"",c+"P"+(o?d+o+"Y":"")+(n?d+n+"M":"")+(t?u+t+"D":"")+(s||r||e?"T":"")+(s?h+s+"H":"")+(r?h+r+"M":"")+(e?h+i+"S":"")):"P0D"}var V=mn.prototype;V.isValid=Yu,V.abs=_f,V.add=yf,V.subtract=gf,V.as=kf,V.asMilliseconds=Uo,V.asSeconds=Sf,V.asMinutes=vf,V.asHours=Ef,V.asDays=bf,V.asWeeks=Of,V.asMonths=Df,V.asQuarters=Nf,V.asYears=Mf,V.valueOf=Rf,V._bubble=wf,V.clone=Cf,V.get=Tf,V.milliseconds=Pf,V.seconds=xf,V.minutes=Vf,V.hours=If,V.days=Yf,V.weeks=Ff,V.months=$f,V.years=Af,V.humanize=jf,V.toISOString=Sn,V.toString=Sn,V.toJSON=Sn,V.locale=Mo,V.localeData=Co,V.toIsoString=de("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Sn),V.lang=Ro,E("X",0,0,"unix"),E("x",0,0,"valueOf"),w("x",an),w("X",uc),L("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),L("x",function(e,t,n){n._d=new Date(T(e))});//! moment.js
|
|
45
|
+
y.version="2.30.1",jl(U),y.fn=p,y.min=Pu,y.max=xu,y.now=Vu,y.utc=Ee,y.unix=cf,y.months=df,y.isDate=Tt,y.locale=He,y.invalid=en,y.duration=ke,y.isMoment=ge,y.weekdays=hf,y.parseZone=uf,y.localeData=Ye,y.isDuration=pn,y.monthsShort=ff,y.weekdaysMin=pf,y.defineLocale=fr,y.updateLocale=cu,y.locales=uu,y.weekdaysShort=mf,y.normalizeUnits=fe,y.relativeTimeRounding=Uf,y.relativeTimeThreshold=Bf,y.calendarFormat=od,y.prototype=p,y.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Hf=["title"],Dr=a.defineComponent({__name:"CapeSingleValue",props:{fieldValuePair:{},link:{}},setup(e){const t=e,n=a.computed(()=>t.fieldValuePair.value),r=a.computed(()=>t.fieldValuePair.field),s=a.computed(()=>{let o=`${t.fieldValuePair.value}`;return t.fieldValuePair.field.type=="date"&&(o=y(o).format("dddd, D MMMM YYYY")),o});return(o,i)=>{const l=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("span",{class:"cape-single-value",title:r.value.description},[o.link?(a.openBlock(),a.createBlock(l,{key:0,to:r.value.id+"/"+n.value},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(s.value),1)]),_:1},8,["to"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(s.value),1)],64))],8,Hf)}}}),Gf={key:0,class:"cape-error cape-value-error"},zf={key:1,class:"cape-value"},qf={key:0,class:"cape-value-null"},Zf={key:0,class:"cape-value-multiple"},Bo=a.defineComponent({__name:"CapeValue",props:{fieldValue:{},link:{},hideIfEmpty:{}},setup(e){const t=e,n=a.computed(()=>{var o;return(o=t.fieldValue)==null?void 0:o.value}),r=a.computed(()=>{var o;return(o=t.fieldValue)==null?void 0:o.field}),s=a.computed(()=>n.value===void 0||n.value===""||Array.isArray(n)&&n.value.length===0);return(o,i)=>!o.fieldValue||!r.value?(a.openBlock(),a.createElementBlock("div",Gf," [Error: field value pair does not exist!] ")):!o.hideIfEmpty||!s.value?(a.openBlock(),a.createElementBlock("div",zf,[s.value?(a.openBlock(),a.createElementBlock("div",qf,"undefined")):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass("cape-value cape-value-field-"+r.value.id)},[r.value.isMultiple?(a.openBlock(),a.createElementBlock("ol",Zf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,(l,c)=>(a.openBlock(),a.createElementBlock("li",{key:c},[a.createVNode(Dr,{"field-value-pair":{field:r.value,value:l},link:o.link},null,8,["field-value-pair","link"])]))),128))])):(a.openBlock(),a.createBlock(Dr,{key:1,"field-value-pair":o.fieldValue,link:o.link},null,8,["field-value-pair","link"]))],2))])):a.createCommentVNode("",!0)}}),Kf={key:0,class:"cape-labelled-value"},Jf={key:0,class:"cape-error cape-labelled-value-error"},Qf=["title"],Xf={key:1,class:"cape-labelled-value-label"},eh=a.defineComponent({__name:"CapeLabelledValue",props:{fieldValue:{},link:{},hideIfEmpty:{}},setup(e){const t=e,n=a.computed(()=>{var o;return(o=t.fieldValue)==null?void 0:o.value}),r=a.computed(()=>{var o;return(o=t.fieldValue)==null?void 0:o.field}),s=a.computed(()=>n.value===void 0||n.value===""||Array.isArray(n)&&n.value.length===0);return(o,i)=>!o.hideIfEmpty||!s.value?(a.openBlock(),a.createElementBlock("div",Kf,[!o.fieldValue||!r.value?(a.openBlock(),a.createElementBlock("div",Jf," [Error, trying to render non-existent field] ")):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[r.value.description!==void 0&&r.value.description!==""?(a.openBlock(),a.createElementBlock("div",{key:0,title:r.value.description,class:"cape-labelled-value-label","data-toggle":"tooltip"},a.toDisplayString(r.value.label),9,Qf)):(a.openBlock(),a.createElementBlock("div",Xf,a.toDisplayString(r.value.label),1)),a.createVNode(Bo,{link:o.link,"field-value":o.fieldValue},null,8,["link","field-value"])],64))])):a.createCommentVNode("",!0)}}),th={class:"cape-filter-label"},nh=["for"],rh={class:"cape-filter-mode"},sh=[a.createElementVNode("option",{value:"contains"},"contains",-1),a.createElementVNode("option",{value:"is"},"is",-1),a.createElementVNode("option",{value:"set"},"is present",-1),a.createElementVNode("option",{value:"notSet"},"is not present",-1)],oh={class:"cape-filter-term"},ah=["id","placeholder"],ih=["id","placeholder"],lh=a.defineComponent({__name:"CapeFilterFieldText",props:{filterId:{}},setup(e){const t=e,n=J(),r=a.computed(()=>n.byId(t.filterId)),s=a.computed(()=>r.value.field);return(o,i)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",th,[a.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},a.toDisplayString(r.value.field.label),9,nh)]),a.createElementVNode("div",rh,[r.value.userCanSelectMode?a.withDirectives((a.openBlock(),a.createElementBlock("select",{key:0,"onUpdate:modelValue":i[0]||(i[0]=l=>r.value.mode=l),"data-test":"filter-mode-select"},sh,512)),[[a.vModelSelect,r.value.mode]]):a.createCommentVNode("",!0)]),a.createElementVNode("div",oh,[r.value.mode==="contains"?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":i[1]||(i[1]=l=>r.value.term=l),placeholder:s.value.placeholderContains,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,ah)),[[a.vModelText,r.value.term]]):a.createCommentVNode("",!0),r.value.mode==="is"?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":i[2]||(i[2]=l=>r.value.term=l),placeholder:s.value.placeholderIs,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,ih)),[[a.vModelText,r.value.term]]):a.createCommentVNode("",!0)])],64))}}),ch={class:"cape-filter-label"},uh=["for"],dh={class:"cape-filter-wide-term"},fh=["id","placeholder"],hh=a.defineComponent({__name:"CapeFilterFreeText",props:{filterId:{}},setup(e){const t=e,n=J(),r=a.computed(()=>n.byId(t.filterId));return(s,o)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",ch,[a.createElementVNode("label",{for:"cape-filter-input-"+r.value.id},"Free text",8,uh)]),a.createElementVNode("div",dh,[a.withDirectives(a.createElementVNode("input",{id:"cape-filter-input-"+r.value.id,"onUpdate:modelValue":o[0]||(o[0]=i=>r.value.term=i),placeholder:r.value.placeholder,class:"cape-filter-freetext-term","data-test":"filter-term-input"},null,8,fh),[[a.vModelText,r.value.term]])])],64))}}),mh={key:0,class:"cape-sort-order","data-test":"cape-sort-order"},ph=["value"],_h=["value"],yh=["value"],gh=a.defineComponent({__name:"CapeSortOrder",setup(e){const t=Gn(),n=ct();return(r,s)=>a.unref(n).isSortable?(a.openBlock(),a.createElementBlock("div",mh,[a.createElementVNode("label",null,[a.createTextVNode("Order results by: "),a.withDirectives(a.createElementVNode("select",{class:"cape-sort-order-field","onUpdate:modelValue":s[0]||(s[0]=o=>a.unref(n).sortFieldId=o)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(t).sortableFields,o=>(a.openBlock(),a.createElementBlock("option",{key:o.id,value:o.id},a.toDisplayString(o.label),9,ph))),128))],512),[[a.vModelSelect,a.unref(n).sortFieldId]])]),a.withDirectives(a.createElementVNode("select",{class:"cape-sort-order-direction","onUpdate:modelValue":s[1]||(s[1]=o=>a.unref(n).sortDirection=o)},[a.createElementVNode("option",{value:a.unref(lt).Ascending},"Ascending",8,_h),a.createElementVNode("option",{value:a.unref(lt).Descending},"Descending",8,yh)],512),[[a.vModelSelect,a.unref(n).sortDirection]])])):a.createCommentVNode("",!0)}}),wh=a.defineComponent({__name:"CapeFilterFieldEnumOneOfCheckbox",props:{filterId:{}},setup(e){const t=e;return J().byId(t.filterId).field,(s,o)=>" [one of/checkbox] "}}),kh=a.defineComponent({__name:"CapeFilterFieldEnumOneOfMultiselect",props:{filterId:{}},setup(e){const t=e;return J().byId(t.filterId).field,(s,o)=>" [one of/multiselect] "}}),Sh=a.defineComponent({__name:"CapeFilterFieldEnumIsSelect",props:{filterId:{}},setup(e){const t=e;return J().byId(t.filterId).field,(s,o)=>" [is/select] "}}),vh=a.defineComponent({__name:"CapeFilterFieldEnumIsRadio",props:{filterId:{}},setup(e){const t=e;return J().byId(t.filterId).field,(s,o)=>" [is/radio] "}}),Eh={class:"cape-filter-label"},bh=["for"],Oh={class:"cape-filter-mode"},Dh=[a.createElementVNode("option",{value:"oneOf"},"is one of",-1),a.createElementVNode("option",{value:"is"},"is",-1),a.createElementVNode("option",{value:"set"},"is present",-1),a.createElementVNode("option",{value:"notSet"},"is not present",-1)],Nh={class:"cape-filter-term"},Mh=a.defineComponent({__name:"CapeFilterFieldEnum",props:{filterId:{}},setup(e){const t=e,r=J().byId(t.filterId),s=r.field;return(o,i)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",Eh,[a.createElementVNode("label",{for:"cape-filter-field-input-"+a.unref(r).id,"data-test":"filter-label"},a.toDisplayString(a.unref(r).field.label),9,bh)]),a.createElementVNode("div",Oh,[a.unref(r).userCanSelectMode?a.withDirectives((a.openBlock(),a.createElementBlock("select",{key:0,"onUpdate:modelValue":i[0]||(i[0]=l=>a.unref(r).mode=l),"data-test":"filter-mode-select"},Dh,512)),[[a.vModelSelect,a.unref(r).mode]]):a.createCommentVNode("",!0)]),a.createElementVNode("div",Nh,[a.unref(r).mode==="oneOf"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.unref(s).filterInputStyleOnOneOf==="checkbox"?(a.openBlock(),a.createBlock(wh,{key:0,"filter-id":o.filterId},null,8,["filter-id"])):(a.openBlock(),a.createBlock(kh,{key:1,"filter-id":o.filterId},null,8,["filter-id"]))],64)):a.createCommentVNode("",!0),a.unref(r).mode==="is"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.unref(s).filterInputStyleOnIs==="select"?(a.openBlock(),a.createBlock(Sh,{key:0,"filter-id":o.filterId},null,8,["filter-id"])):(a.openBlock(),a.createBlock(vh,{key:1,"filter-id":o.filterId},null,8,["filter-id"]))],64)):a.createCommentVNode("",!0)])],64))}}),jo={install:function(e,t){e.use(Gi),e.use($i()),e.provide("capeOptions",t),this.addCapeComponents(e,t),t.additionalComponents!==void 0&&this.addAdditionalComponents(e,t.additionalComponents)},addAdditionalComponents:function(e,t){Object.keys(t).forEach(function(n){e.component(n,t[n])})},addCapeComponents:function(e,t){e.component("CapeRoot",As),e.component("CapeAdvancedSearchToggle",ml),e.component("CapeFilters",_l),e.component("CapeFormResetButton",gl),e.component("CapeHeader",Fs),e.component("CapeHomePage",Ms),e.component("CapeHomepageLayout",Ns),e.component("CapeLoadError",xs),e.component("CapeLoading",Ls),e.component("CapeNavigation",Ts),e.component("CapeNonProdWarning",Ws),e.component("CapeRecordCount",hl),e.component("CapeRecordCard",Rs),e.component("CapeRecordPage",Cs),e.component("CapeResults",Bl),e.component("CapeSummaryCard",Us),e.component("CapeLabelledValue",eh),e.component("CapeValue",Bo),e.component("CapeSingleValue",Dr),e.component("CapeFilterFieldText",lh),e.component("CapeFilterFieldEnum",Mh),e.component("CapeFilterFreeText",hh),e.component("CapeSortOrder",gh),t.additionalComponents!==void 0&&Object.keys(t.additionalComponents).forEach(function(n){t.additionalComponents!==void 0&&e.component(n,t.additionalComponents[n])})}},Rh=a.defineComponent({__name:"App",setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(Fs),a.createVNode(Ws),(a.openBlock(),a.createBlock(a.Suspense,null,{default:a.withCtx(()=>[a.createVNode(As)]),fallback:a.withCtx(()=>[a.createVNode(Ls)]),_:1}))],64))}}),Ch=e=>{const t=a.createApp(Rh);return t.use(jo,e),t};Z.CapePlugin=jo,Z.Filter=jn,Z.createCapeApp=Ch,Z.useDatasetStore=Ct,Z.useFieldStore=Qt,Z.useFilterStore=J,Z.usePropertyStore=Gn,Z.useSearchResultsStore=ct,Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"})});
|
package/dist/favicon.ico
ADDED
|
Binary file
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as createCapeApp } from "./createCapeApp";
|
|
2
|
+
export { default as CapePlugin } from "./plugins/CapePlugin";
|
|
3
|
+
export { useFilterStore } from "./stores/filterStore";
|
|
4
|
+
export { useDatasetStore } from "./stores/datasetStore";
|
|
5
|
+
export { useFieldStore } from "./stores/fieldStore";
|
|
6
|
+
export { usePropertyStore } from "./stores/propertyStore";
|
|
7
|
+
export { useSearchResultsStore } from "./stores/searchResultsStore";
|
|
8
|
+
export { Filter } from "./filters/Filter";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
install: (app: any, options: any) => void;
|
|
3
|
+
addAdditionalComponents: (app: any, additionalComponents: any) => void;
|
|
4
|
+
addCapeComponents: (app: any, options: any) => void;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=CapePlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CapePlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/CapePlugin.ts"],"names":[],"mappings":";;;;;AAyBA,wBAkDE"}
|